-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'development' into fix-typeahead-accessibility
- Loading branch information
Showing
24 changed files
with
510 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<button type="button" class="btn btn-primary" | ||
popover="Vivamus sagittis lacus vel augue laoreet rutrum faucibus." [delay]="500"> | ||
Popover with 0.5sec delay | ||
</button> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import { Component } from '@angular/core'; | ||
|
||
@Component({ | ||
selector: 'demo-popover-delay', | ||
templateUrl: './delay.html' | ||
}) | ||
export class DemoPopoverDelayComponent {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
docs/spec/popover/popover.examples.popover-with-delay.use-case.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
9.17: Popover with delay example | ||
================================== | ||
**Primary Actor**: User | ||
|
||
**Scope**: Ngx-bootstrap DEMO / BS version 3&4 | ||
|
||
**Goal**: | ||
|
||
Main success scenario: | ||
---------------------- | ||
1. User opens Popover demo page | ||
2. User clicks on Popover with delay sub-menu | ||
3. User see button "Popover with 0.5sec delay" | ||
4. When user clicks on "Popover with 0.5sec delay", then popover-container appear above the button with 0.5sec delay | ||
5. When user clicks on "Popover with 0.5sec delay" again, then popover-container disappeared | ||
6. Template src should be written with [delay]="500" | ||
|
||
Variations: | ||
----------- | ||
2*. User scroll to Popover with delay sub-menu |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
// tslint:disable:comment-format binary-expression-operand-order max-line-length | ||
// tslint:disable:no-bitwise prefer-template cyclomatic-complexity | ||
// tslint:disable:no-shadowed-variable switch-default prefer-const | ||
// tslint:disable:one-variable-per-declaration newline-before-return | ||
|
||
import { LocaleData } from '../locale/locale.class'; | ||
|
||
//! moment.js locale configuration | ||
//! locale : Georgian [ka] | ||
//! author : Irakli Janiashvili : https://github.com/irakli-janiashvili | ||
//! author : Levan Tskipuri : https://github.com/tskipa | ||
|
||
export const kaLocale: LocaleData = { | ||
abbr: 'ka', | ||
months : { | ||
format: 'იანვარს_თებერვალს_მარტს_აპრილის_მაისს_ივნისს_ივლისს_აგვისტს_სექტემბერს_ოქტომბერს_ნოემბერს_დეკემბერს'.split('_'), | ||
standalone: 'იანვარი_თებერვალი_მარტი_აპრილი_მაისი_ივნისი_ივლისი_აგვისტო_სექტემბერი_ოქტომბერი_ნოემბერი_დეკემბერი'.split('_') | ||
}, | ||
monthsShort : 'იან_თებ_მარ_აპრ_მაი_ივნ_ივლ_აგვ_სექ_ოქტ_ნოე_დეკ'.split('_'), | ||
weekdays : { | ||
standalone: 'კვირა_ორშაბათი_სამშაბათი_ოთხშაბათი_ხუთშაბათი_პარასკევი_შაბათი'.split('_'), | ||
format: 'კვირას_ორშაბათს_სამშაბათს_ოთხშაბათს_ხუთშაბათს_პარასკევს_შაბათს'.split('_'), | ||
isFormat: /(წინა|შემდეგ)/ | ||
}, | ||
weekdaysShort : 'კვი_ორშ_სამ_ოთხ_ხუთ_პარ_შაბ'.split('_'), | ||
weekdaysMin : 'კვ_ორ_სა_ოთ_ხუ_პა_შა'.split('_'), | ||
longDateFormat : { | ||
LT : 'h:mm A', | ||
LTS : 'h:mm:ss A', | ||
L : 'DD/MM/YYYY', | ||
LL : 'D MMMM YYYY', | ||
LLL : 'D MMMM YYYY h:mm A', | ||
LLLL : 'dddd, D MMMM YYYY h:mm A' | ||
}, | ||
calendar : { | ||
sameDay : '[დღეს] LT[-ზე]', | ||
nextDay : '[ხვალ] LT[-ზე]', | ||
lastDay : '[გუშინ] LT[-ზე]', | ||
nextWeek : '[შემდეგ] dddd LT[-ზე]', | ||
lastWeek : '[წინა] dddd LT-ზე', | ||
sameElse : 'L' | ||
}, | ||
relativeTime : { | ||
future(s: number): string { | ||
var st = s.toString(); | ||
return (/(წამი|წუთი|საათი|წელი)/).test(st) ? | ||
st.replace(/ი$/, 'ში') : | ||
st + 'ში'; | ||
}, | ||
past(s: number): string { | ||
var st = s.toString(); | ||
if ((/(წამი|წუთი|საათი|დღე|თვე)/).test(st)) { | ||
return st.replace(/(ი|ე)$/, 'ის წინ'); | ||
} | ||
if ((/წელი/).test(st)) { | ||
return st.replace(/წელი$/, 'წლის წინ'); | ||
} | ||
}, | ||
s : 'რამდენიმე წამი', | ||
ss : '%d წამი', | ||
m : 'წუთი', | ||
mm : '%d წუთი', | ||
h : 'საათი', | ||
hh : '%d საათი', | ||
d : 'დღე', | ||
dd : '%d დღე', | ||
M : 'თვე', | ||
MM : '%d თვე', | ||
y : 'წელი', | ||
yy : '%d წელი' | ||
}, | ||
dayOfMonthOrdinalParse: /0|1-ლი|მე-\d{1,2}|\d{1,2}-ე/, | ||
ordinal(_num: number, _period: string): string { | ||
const num = Number(_num); | ||
if (num === 0) { | ||
return num.toString(); | ||
} | ||
if (num === 1) { | ||
return num + '-ლი'; | ||
} | ||
if ((num < 20) || (num <= 100 && (num % 20 === 0)) || (num % 100 === 0)) { | ||
return 'მე-' + num; | ||
} | ||
return num + '-ე'; | ||
}, | ||
week : { | ||
dow : 1, | ||
doy : 4 | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.