@breadstone/mosaik-elements-foundation 0.1.35 → 0.1.36
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Controls/Components/Inputs/Calendar/CalendarElement.d.ts +1 -1
- package/Controls/Components/Inputs/Calendar/CalendarElement.d.ts.map +1 -1
- package/Controls/Components/Inputs/Calendar/CalendarElement.js +1 -1
- package/Controls/Components/Inputs/Calendar/CalendarElement.js.map +1 -1
- package/Controls/Components/Inputs/Calendar/Views/Abstracts/CalendarViewBase.d.ts +1 -1
- package/Controls/Components/Inputs/Calendar/Views/Abstracts/CalendarViewBase.d.ts.map +1 -1
- package/Controls/Components/Inputs/Calendar/Views/Abstracts/CalendarViewBase.js +1 -1
- package/Controls/Components/Inputs/Calendar/Views/Abstracts/CalendarViewBase.js.map +1 -1
- package/Controls/Components/Inputs/Calendar/intl2/CalendarElementIntl.d.ts +101 -0
- package/Controls/Components/Inputs/Calendar/intl2/CalendarElementIntl.d.ts.map +1 -0
- package/Controls/Components/Inputs/Calendar/intl2/CalendarElementIntl.js +168 -0
- package/Controls/Components/Inputs/Calendar/intl2/CalendarElementIntl.js.map +1 -0
- package/Controls/Components/Inputs/FileUpload/FileUploadElement.d.ts +1 -1
- package/Controls/Components/Inputs/FileUpload/FileUploadElement.d.ts.map +1 -1
- package/Controls/Components/Inputs/FileUpload/FileUploadElement.js +1 -1
- package/Controls/Components/Inputs/FileUpload/FileUploadElement.js.map +1 -1
- package/Controls/Components/Inputs/FileUpload/intl2/FileUploadElementIntl.d.ts +24 -0
- package/Controls/Components/Inputs/FileUpload/intl2/FileUploadElementIntl.d.ts.map +1 -0
- package/Controls/Components/Inputs/FileUpload/intl2/FileUploadElementIntl.js +38 -0
- package/Controls/Components/Inputs/FileUpload/intl2/FileUploadElementIntl.js.map +1 -0
- package/Controls/Components/Inputs/RichTextBox/RichTextBoxElement.d.ts +1 -1
- package/Controls/Components/Inputs/RichTextBox/RichTextBoxElement.d.ts.map +1 -1
- package/Controls/Components/Inputs/RichTextBox/RichTextBoxElement.js +1 -1
- package/Controls/Components/Inputs/RichTextBox/RichTextBoxElement.js.map +1 -1
- package/Controls/Components/Inputs/RichTextBox/RichTextBoxToolboxElement.d.ts +1 -1
- package/Controls/Components/Inputs/RichTextBox/RichTextBoxToolboxElement.d.ts.map +1 -1
- package/Controls/Components/Inputs/RichTextBox/RichTextBoxToolboxElement.js +1 -1
- package/Controls/Components/Inputs/RichTextBox/RichTextBoxToolboxElement.js.map +1 -1
- package/Controls/Components/Inputs/RichTextBox/intl2/RichTextBoxElementIntl.d.ts +47 -0
- package/Controls/Components/Inputs/RichTextBox/intl2/RichTextBoxElementIntl.d.ts.map +1 -0
- package/Controls/Components/Inputs/RichTextBox/intl2/RichTextBoxElementIntl.js +76 -0
- package/Controls/Components/Inputs/RichTextBox/intl2/RichTextBoxElementIntl.js.map +1 -0
- package/Controls/Components/Media/Chat/ChatElement.d.ts +1 -1
- package/Controls/Components/Media/Chat/ChatElement.d.ts.map +1 -1
- package/Controls/Components/Media/Chat/ChatElement.js +1 -1
- package/Controls/Components/Media/Chat/ChatElement.js.map +1 -1
- package/Controls/Components/Media/Chat/ChatInheritanceContext.d.ts +1 -1
- package/Controls/Components/Media/Chat/ChatInheritanceContext.d.ts.map +1 -1
- package/Controls/Components/Media/Chat/intl2/ChatElementIntl.d.ts +23 -0
- package/Controls/Components/Media/Chat/intl2/ChatElementIntl.d.ts.map +1 -0
- package/Controls/Components/Media/Chat/intl2/ChatElementIntl.js +37 -0
- package/Controls/Components/Media/Chat/intl2/ChatElementIntl.js.map +1 -0
- package/Controls/Components/Misc/CookieConsent/CookiesConsentElement.d.ts +1 -1
- package/Controls/Components/Misc/CookieConsent/CookiesConsentElement.d.ts.map +1 -1
- package/Controls/Components/Misc/CookieConsent/CookiesConsentElement.js +1 -1
- package/Controls/Components/Misc/CookieConsent/CookiesConsentElement.js.map +1 -1
- package/Controls/Components/Misc/CookieConsent/intl2/CookiesConsentElementIntl.d.ts +42 -0
- package/Controls/Components/Misc/CookieConsent/intl2/CookiesConsentElementIntl.d.ts.map +1 -0
- package/Controls/Components/Misc/CookieConsent/intl2/CookiesConsentElementIntl.js +66 -0
- package/Controls/Components/Misc/CookieConsent/intl2/CookiesConsentElementIntl.js.map +1 -0
- package/Controls/Components/Primitives/Dropdown/DropdownAnchorElement.d.ts +66 -0
- package/Controls/Components/Primitives/Dropdown/DropdownAnchorElement.d.ts.map +1 -0
- package/Controls/Components/Primitives/Dropdown/DropdownAnchorElement.js +91 -0
- package/Controls/Components/Primitives/Dropdown/DropdownAnchorElement.js.map +1 -0
- package/Controls/Components/Primitives/Dropdown/DropdownAnchorElementTemplate.d.ts +9 -0
- package/Controls/Components/Primitives/Dropdown/DropdownAnchorElementTemplate.d.ts.map +1 -0
- package/Controls/Components/Primitives/Dropdown/DropdownAnchorElementTemplate.js +14 -0
- package/Controls/Components/Primitives/Dropdown/DropdownAnchorElementTemplate.js.map +1 -0
- package/Controls/Components/Primitives/Dropdown/DropdownElement.d.ts +536 -0
- package/Controls/Components/Primitives/Dropdown/DropdownElement.d.ts.map +1 -0
- package/Controls/Components/Primitives/Dropdown/DropdownElement.js +1450 -0
- package/Controls/Components/Primitives/Dropdown/DropdownElement.js.map +1 -0
- package/Controls/Components/Primitives/Dropdown/DropdownElementTemplate.d.ts +9 -0
- package/Controls/Components/Primitives/Dropdown/DropdownElementTemplate.d.ts.map +1 -0
- package/Controls/Components/Primitives/Dropdown/DropdownElementTemplate.js +29 -0
- package/Controls/Components/Primitives/Dropdown/DropdownElementTemplate.js.map +1 -0
- package/Controls/Components/Primitives/Dropdown/DropdownPanelElement.d.ts +66 -0
- package/Controls/Components/Primitives/Dropdown/DropdownPanelElement.d.ts.map +1 -0
- package/Controls/Components/Primitives/Dropdown/DropdownPanelElement.js +91 -0
- package/Controls/Components/Primitives/Dropdown/DropdownPanelElement.js.map +1 -0
- package/Controls/Components/Primitives/Dropdown/DropdownPanelElementTemplate.d.ts +9 -0
- package/Controls/Components/Primitives/Dropdown/DropdownPanelElementTemplate.d.ts.map +1 -0
- package/Controls/Components/Primitives/Dropdown/DropdownPanelElementTemplate.js +14 -0
- package/Controls/Components/Primitives/Dropdown/DropdownPanelElementTemplate.js.map +1 -0
- package/Controls/Components/Primitives/Dropdown/IDropdownAnchorElementProps.d.ts +6 -0
- package/Controls/Components/Primitives/Dropdown/IDropdownAnchorElementProps.d.ts.map +1 -0
- package/Controls/Components/Primitives/Dropdown/IDropdownAnchorElementProps.js +5 -0
- package/Controls/Components/Primitives/Dropdown/IDropdownAnchorElementProps.js.map +1 -0
- package/Controls/Components/Primitives/Dropdown/IDropdownElementProps.d.ts +118 -0
- package/Controls/Components/Primitives/Dropdown/IDropdownElementProps.d.ts.map +1 -0
- package/Controls/Components/Primitives/Dropdown/IDropdownElementProps.js +34 -0
- package/Controls/Components/Primitives/Dropdown/IDropdownElementProps.js.map +1 -0
- package/Controls/Components/Primitives/Dropdown/IDropdownPanelElementProps.d.ts +6 -0
- package/Controls/Components/Primitives/Dropdown/IDropdownPanelElementProps.d.ts.map +1 -0
- package/Controls/Components/Primitives/Dropdown/IDropdownPanelElementProps.js +5 -0
- package/Controls/Components/Primitives/Dropdown/IDropdownPanelElementProps.js.map +1 -0
- package/Controls/Components/Primitives/Dropdown/Themes/DropdownAnchorElement.Cosmopolitan.d.ts +6 -0
- package/Controls/Components/Primitives/Dropdown/Themes/DropdownAnchorElement.Cosmopolitan.d.ts.map +1 -0
- package/Controls/Components/Primitives/Dropdown/Themes/DropdownAnchorElement.Cosmopolitan.js +48 -0
- package/Controls/Components/Primitives/Dropdown/Themes/DropdownAnchorElement.Cosmopolitan.js.map +1 -0
- package/Controls/Components/Primitives/Dropdown/Themes/DropdownAnchorElement.Joy.d.ts +6 -0
- package/Controls/Components/Primitives/Dropdown/Themes/DropdownAnchorElement.Joy.d.ts.map +1 -0
- package/Controls/Components/Primitives/Dropdown/Themes/DropdownAnchorElement.Joy.js +48 -0
- package/Controls/Components/Primitives/Dropdown/Themes/DropdownAnchorElement.Joy.js.map +1 -0
- package/Controls/Components/Primitives/Dropdown/Themes/DropdownAnchorElement.Memphis.d.ts +6 -0
- package/Controls/Components/Primitives/Dropdown/Themes/DropdownAnchorElement.Memphis.d.ts.map +1 -0
- package/Controls/Components/Primitives/Dropdown/Themes/DropdownAnchorElement.Memphis.js +48 -0
- package/Controls/Components/Primitives/Dropdown/Themes/DropdownAnchorElement.Memphis.js.map +1 -0
- package/Controls/Components/Primitives/Dropdown/Themes/DropdownElement.Cosmopolitan.d.ts +6 -0
- package/Controls/Components/Primitives/Dropdown/Themes/DropdownElement.Cosmopolitan.d.ts.map +1 -0
- package/Controls/Components/Primitives/Dropdown/Themes/DropdownElement.Cosmopolitan.js +116 -0
- package/Controls/Components/Primitives/Dropdown/Themes/DropdownElement.Cosmopolitan.js.map +1 -0
- package/Controls/Components/Primitives/Dropdown/Themes/DropdownElement.Joy.d.ts +6 -0
- package/Controls/Components/Primitives/Dropdown/Themes/DropdownElement.Joy.d.ts.map +1 -0
- package/Controls/Components/Primitives/Dropdown/Themes/DropdownElement.Joy.js +116 -0
- package/Controls/Components/Primitives/Dropdown/Themes/DropdownElement.Joy.js.map +1 -0
- package/Controls/Components/Primitives/Dropdown/Themes/DropdownElement.Memphis.d.ts +6 -0
- package/Controls/Components/Primitives/Dropdown/Themes/DropdownElement.Memphis.d.ts.map +1 -0
- package/Controls/Components/Primitives/Dropdown/Themes/DropdownElement.Memphis.js +116 -0
- package/Controls/Components/Primitives/Dropdown/Themes/DropdownElement.Memphis.js.map +1 -0
- package/Controls/Components/Primitives/Dropdown/Themes/DropdownPanelElement.Cosmopolitan.d.ts +6 -0
- package/Controls/Components/Primitives/Dropdown/Themes/DropdownPanelElement.Cosmopolitan.d.ts.map +1 -0
- package/Controls/Components/Primitives/Dropdown/Themes/DropdownPanelElement.Cosmopolitan.js +48 -0
- package/Controls/Components/Primitives/Dropdown/Themes/DropdownPanelElement.Cosmopolitan.js.map +1 -0
- package/Controls/Components/Primitives/Dropdown/Themes/DropdownPanelElement.Joy.d.ts +6 -0
- package/Controls/Components/Primitives/Dropdown/Themes/DropdownPanelElement.Joy.d.ts.map +1 -0
- package/Controls/Components/Primitives/Dropdown/Themes/DropdownPanelElement.Joy.js +48 -0
- package/Controls/Components/Primitives/Dropdown/Themes/DropdownPanelElement.Joy.js.map +1 -0
- package/Controls/Components/Primitives/Dropdown/Themes/DropdownPanelElement.Memphis.d.ts +6 -0
- package/Controls/Components/Primitives/Dropdown/Themes/DropdownPanelElement.Memphis.d.ts.map +1 -0
- package/Controls/Components/Primitives/Dropdown/Themes/DropdownPanelElement.Memphis.js +48 -0
- package/Controls/Components/Primitives/Dropdown/Themes/DropdownPanelElement.Memphis.js.map +1 -0
- package/Controls/Directives/DateAgo/DateAgoDirective.js +1 -1
- package/Controls/Directives/DateAgo/DateAgoDirective.js.map +1 -1
- package/Controls/Directives/DateAgo/intl2/DateAgoIntl.d.ts +45 -0
- package/Controls/Directives/DateAgo/intl2/DateAgoIntl.d.ts.map +1 -0
- package/Controls/Directives/DateAgo/intl2/DateAgoIntl.js +106 -0
- package/Controls/Directives/DateAgo/intl2/DateAgoIntl.js.map +1 -0
- package/Controls/Directives/TimeAgo/TimeAgoDirective.js +1 -1
- package/Controls/Directives/TimeAgo/TimeAgoDirective.js.map +1 -1
- package/Controls/Directives/TimeAgo/intl2/TimeAgoIntl.d.ts +52 -0
- package/Controls/Directives/TimeAgo/intl2/TimeAgoIntl.d.ts.map +1 -0
- package/Controls/Directives/TimeAgo/intl2/TimeAgoIntl.js +125 -0
- package/Controls/Directives/TimeAgo/intl2/TimeAgoIntl.js.map +1 -0
- package/Controls/Types/DropdownChangeReason.d.ts +24 -0
- package/Controls/Types/DropdownChangeReason.d.ts.map +1 -0
- package/Controls/Types/DropdownChangeReason.js +21 -0
- package/Controls/Types/DropdownChangeReason.js.map +1 -0
- package/Controls/Types/DropdownTrigger.d.ts +29 -0
- package/Controls/Types/DropdownTrigger.d.ts.map +1 -0
- package/Controls/Types/DropdownTrigger.js +26 -0
- package/Controls/Types/DropdownTrigger.js.map +1 -0
- package/Controls/events/OpenCloseEvents.d.ts +23 -1
- package/Controls/events/OpenCloseEvents.d.ts.map +1 -1
- package/Controls/events/index.d.ts +1 -1
- package/Controls/events/index.d.ts.map +1 -1
- package/Index.d.ts +17 -11
- package/Index.d.ts.map +1 -1
- package/Index.js +16 -11
- package/Index.js.map +1 -1
- package/custom-elements.json +1788 -5
- package/package.json +3 -3
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
// ------------------------------------------------------------------------------
|
|
2
|
+
// <auto-generated>
|
|
3
|
+
// This code was generated by a tool.
|
|
4
|
+
// Changes to this file may cause incorrect behavior and will be lost if the code is regenerated.
|
|
5
|
+
// </auto-generated>
|
|
6
|
+
// ------------------------------------------------------------------------------
|
|
7
|
+
// #region Imports
|
|
8
|
+
import { css } from '../../../../../Dom/Css';
|
|
9
|
+
// #endregion
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*/
|
|
13
|
+
export function dropdownPanelElementMemphisStyle() {
|
|
14
|
+
return css `
|
|
15
|
+
@media screen and (prefers-reduced-motion: reduce) {
|
|
16
|
+
:host {
|
|
17
|
+
transition-duration: .01ms;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
:host {
|
|
22
|
+
box-sizing: border-box;
|
|
23
|
+
display: block;
|
|
24
|
+
position: relative;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
:host *, :host :before, :host :after {
|
|
28
|
+
box-sizing: border-box;
|
|
29
|
+
background-repeat: no-repeat;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
:host :before, :host :after {
|
|
33
|
+
text-decoration: inherit;
|
|
34
|
+
vertical-align: inherit;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
:host {
|
|
38
|
+
box-sizing: border-box;
|
|
39
|
+
display: block;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
:host([hidden]) {
|
|
43
|
+
display: none !important;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
`;
|
|
47
|
+
}
|
|
48
|
+
//# sourceMappingURL=DropdownPanelElement.Memphis.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DropdownPanelElement.Memphis.js","sourceRoot":"","sources":["../../../../../../src/Controls/Components/Primitives/Dropdown/Themes/DropdownPanelElement.Memphis.ts"],"names":[],"mappings":"AAAA,iFAAiF;AACjF,mBAAmB;AACnB,yCAAyC;AACzC,qGAAqG;AACrG,oBAAoB;AACpB,iFAAiF;AAEjF,kBAAkB;AAElB,OAAO,EAAE,GAAG,EAAkB,MAAM,wBAAwB,CAAC;AAE7D,aAAa;AAEb;;GAEG;AACH,MAAM,UAAU,gCAAgC;IAC5C,OAAO,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAgCT,CAAC;AACN,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// #region Imports
|
|
2
2
|
import { directive, PartType } from 'lit/directive.js';
|
|
3
3
|
import { AsyncDirectiveBase } from '../Abstracts/AsyncDirectiveBase';
|
|
4
|
-
import { DateAgoIntl } from './
|
|
4
|
+
import { DateAgoIntl } from './intl2/DateAgoIntl';
|
|
5
5
|
// #endregion
|
|
6
6
|
/**
|
|
7
7
|
* The `DateAgoDirective` class transforms a date into a "date ago" string.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DateAgoDirective.js","sourceRoot":"","sources":["../../../../src/Controls/Directives/DateAgo/DateAgoDirective.ts"],"names":[],"mappings":"AAAA,kBAAkB;AAElB,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,EAAE,kBAAkB,EAA2B,MAAM,iCAAiC,CAAC;AAC9F,OAAO,EAAE,WAAW,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"DateAgoDirective.js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AAO,IAAI,CAAC,KAAK,CAAC,mBAAmB,CAAC,KAAK,CAAC,CAAC;QACjD,CAAC;QACD,IAAI,cAAc,IAAI,EAAE,EAAE,CAAC;YACvB,OAAO,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC;QACrC,CAAC;QACD,IAAI,cAAc,IAAI,GAAG,EAAE,CAAC;YACxB,MAAM,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,cAAc,GAAG,MAAM,CAAC,CAAC;YACnD,OAAO,IAAI,CAAC,KAAK,CAAC,oBAAoB,CAAC,MAAM,CAAC,CAAC;QACnD,CAAC;QACD,IAAI,cAAc,IAAI,GAAG,EAAE,CAAC;YACxB,OAAO,IAAI,CAAC,KAAK,CAAC,aAAa,CAAC;QACpC,CAAC;QAED,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,cAAc,GAAG,GAAG,CAAC,CAAC;QAC/C,OAAO,IAAI,CAAC,KAAK,CAAC,mBAAmB,CAAC,KAAK,CAAC,CAAC;IACjD,CAAC;IAEe,YAAY;QACxB,KAAK,CAAC,YAAY,EAAE,CAAC;QACrB,IAAI,CAAC,WAAW,EAAE,CAAC;IACvB,CAAC;IAEO,WAAW;QACf,IAAI,IAAI,CAAC,MAAM,KAAK,IAAI,EAAE,CAAC;YACvB,MAAM,CAAC,YAAY,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;YACjC,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC;QACvB,CAAC;IACL,CAAC;CAIJ;AAED;;GAEG;AACH,8DAA8D;AAC9D,MAAM,CAAC,MAAM,OAAO,GAAG,SAAS,CAAC,gBAAuB,CAA+D,CAAC"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The `DateAgoIntl` class provides labels for the `DateAgoDirective`.
|
|
3
|
+
*
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
export declare class DateAgoIntl {
|
|
7
|
+
private _todayLabel;
|
|
8
|
+
private _yesterdayLabel;
|
|
9
|
+
private _daysAgoLabel;
|
|
10
|
+
private _lastWeekLabel;
|
|
11
|
+
private _weeksAgoLabel;
|
|
12
|
+
private _lastMonthLabel;
|
|
13
|
+
private _monthsAgoLabel;
|
|
14
|
+
private _lastYearLabel;
|
|
15
|
+
private _yearsAgoLabel;
|
|
16
|
+
/**
|
|
17
|
+
* Constructs a new instance of the `DateAgoIntl` class.
|
|
18
|
+
*
|
|
19
|
+
* @public
|
|
20
|
+
*/
|
|
21
|
+
constructor();
|
|
22
|
+
get todayLabel(): string;
|
|
23
|
+
set todayLabel(value: string);
|
|
24
|
+
get yesterdayLabel(): string;
|
|
25
|
+
set yesterdayLabel(value: string);
|
|
26
|
+
get daysAgoLabel(): string;
|
|
27
|
+
set daysAgoLabel(value: string);
|
|
28
|
+
get lastWeekLabel(): string;
|
|
29
|
+
set lastWeekLabel(value: string);
|
|
30
|
+
get weeksAgoLabel(): string;
|
|
31
|
+
set weeksAgoLabel(value: string);
|
|
32
|
+
get lastMonthLabel(): string;
|
|
33
|
+
set lastMonthLabel(value: string);
|
|
34
|
+
get monthsAgoLabel(): string;
|
|
35
|
+
set monthsAgoLabel(value: string);
|
|
36
|
+
get lastYearLabel(): string;
|
|
37
|
+
set lastYearLabel(value: string);
|
|
38
|
+
get yearsAgoLabel(): string;
|
|
39
|
+
set yearsAgoLabel(value: string);
|
|
40
|
+
formatDaysAgoLabel(days: number): string;
|
|
41
|
+
formatWeeksAgoLabel(weeks: number): string;
|
|
42
|
+
formatMonthsAgoLabel(months: number): string;
|
|
43
|
+
formatYearsAgoLabel(years: number): string;
|
|
44
|
+
}
|
|
45
|
+
//# sourceMappingURL=DateAgoIntl.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DateAgoIntl.d.ts","sourceRoot":"","sources":["../../../../../src/Controls/Directives/DateAgo/intl2/DateAgoIntl.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,qBAAa,WAAW;IAIpB,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,GAAG,MAAM;CAMpD"}
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The `DateAgoIntl` class provides labels for the `DateAgoDirective`.
|
|
3
|
+
*
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
export class DateAgoIntl {
|
|
7
|
+
// #region Fields
|
|
8
|
+
_todayLabel;
|
|
9
|
+
_yesterdayLabel;
|
|
10
|
+
_daysAgoLabel;
|
|
11
|
+
_lastWeekLabel;
|
|
12
|
+
_weeksAgoLabel;
|
|
13
|
+
_lastMonthLabel;
|
|
14
|
+
_monthsAgoLabel;
|
|
15
|
+
_lastYearLabel;
|
|
16
|
+
_yearsAgoLabel;
|
|
17
|
+
// #endregion
|
|
18
|
+
// #region Ctor
|
|
19
|
+
/**
|
|
20
|
+
* Constructs a new instance of the `DateAgoIntl` class.
|
|
21
|
+
*
|
|
22
|
+
* @public
|
|
23
|
+
*/
|
|
24
|
+
constructor() {
|
|
25
|
+
this._todayLabel = 'today';
|
|
26
|
+
this._yesterdayLabel = 'yesterday';
|
|
27
|
+
this._daysAgoLabel = '{0} days ago';
|
|
28
|
+
this._lastWeekLabel = 'last week';
|
|
29
|
+
this._weeksAgoLabel = '{0} weeks ago';
|
|
30
|
+
this._lastMonthLabel = 'last month';
|
|
31
|
+
this._monthsAgoLabel = '{0} months ago';
|
|
32
|
+
this._lastYearLabel = 'last year';
|
|
33
|
+
this._yearsAgoLabel = '{0} years ago';
|
|
34
|
+
}
|
|
35
|
+
// #endregion
|
|
36
|
+
// #region Properties
|
|
37
|
+
get todayLabel() {
|
|
38
|
+
return this._todayLabel;
|
|
39
|
+
}
|
|
40
|
+
set todayLabel(value) {
|
|
41
|
+
this._todayLabel = value;
|
|
42
|
+
}
|
|
43
|
+
get yesterdayLabel() {
|
|
44
|
+
return this._yesterdayLabel;
|
|
45
|
+
}
|
|
46
|
+
set yesterdayLabel(value) {
|
|
47
|
+
this._yesterdayLabel = value;
|
|
48
|
+
}
|
|
49
|
+
get daysAgoLabel() {
|
|
50
|
+
return this._daysAgoLabel;
|
|
51
|
+
}
|
|
52
|
+
set daysAgoLabel(value) {
|
|
53
|
+
this._daysAgoLabel = value;
|
|
54
|
+
}
|
|
55
|
+
get lastWeekLabel() {
|
|
56
|
+
return this._lastWeekLabel;
|
|
57
|
+
}
|
|
58
|
+
set lastWeekLabel(value) {
|
|
59
|
+
this._lastWeekLabel = value;
|
|
60
|
+
}
|
|
61
|
+
get weeksAgoLabel() {
|
|
62
|
+
return this._weeksAgoLabel;
|
|
63
|
+
}
|
|
64
|
+
set weeksAgoLabel(value) {
|
|
65
|
+
this._weeksAgoLabel = value;
|
|
66
|
+
}
|
|
67
|
+
get lastMonthLabel() {
|
|
68
|
+
return this._lastMonthLabel;
|
|
69
|
+
}
|
|
70
|
+
set lastMonthLabel(value) {
|
|
71
|
+
this._lastMonthLabel = value;
|
|
72
|
+
}
|
|
73
|
+
get monthsAgoLabel() {
|
|
74
|
+
return this._monthsAgoLabel;
|
|
75
|
+
}
|
|
76
|
+
set monthsAgoLabel(value) {
|
|
77
|
+
this._monthsAgoLabel = value;
|
|
78
|
+
}
|
|
79
|
+
get lastYearLabel() {
|
|
80
|
+
return this._lastYearLabel;
|
|
81
|
+
}
|
|
82
|
+
set lastYearLabel(value) {
|
|
83
|
+
this._lastYearLabel = value;
|
|
84
|
+
}
|
|
85
|
+
get yearsAgoLabel() {
|
|
86
|
+
return this._yearsAgoLabel;
|
|
87
|
+
}
|
|
88
|
+
set yearsAgoLabel(value) {
|
|
89
|
+
this._yearsAgoLabel = value;
|
|
90
|
+
}
|
|
91
|
+
// #endregion
|
|
92
|
+
// #region Methods
|
|
93
|
+
formatDaysAgoLabel(days) {
|
|
94
|
+
return this._daysAgoLabel.replace('{0}', String(days));
|
|
95
|
+
}
|
|
96
|
+
formatWeeksAgoLabel(weeks) {
|
|
97
|
+
return this._weeksAgoLabel.replace('{0}', String(weeks));
|
|
98
|
+
}
|
|
99
|
+
formatMonthsAgoLabel(months) {
|
|
100
|
+
return this._monthsAgoLabel.replace('{0}', String(months));
|
|
101
|
+
}
|
|
102
|
+
formatYearsAgoLabel(years) {
|
|
103
|
+
return this._yearsAgoLabel.replace('{0}', String(years));
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
//# sourceMappingURL=DateAgoIntl.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DateAgoIntl.js","sourceRoot":"","sources":["../../../../../src/Controls/Directives/DateAgo/intl2/DateAgoIntl.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,OAAO,WAAW;IAEpB,iBAAiB;IAET,WAAW,CAAS;IACpB,eAAe,CAAS;IACxB,aAAa,CAAS;IACtB,cAAc,CAAS;IACvB,cAAc,CAAS;IACvB,eAAe,CAAS;IACxB,eAAe,CAAS;IACxB,cAAc,CAAS;IACvB,cAAc,CAAS;IAE/B,aAAa;IAEb,eAAe;IAEf;;;;OAIG;IACH;QACI,IAAI,CAAC,WAAW,GAAG,OAAO,CAAC;QAC3B,IAAI,CAAC,eAAe,GAAG,WAAW,CAAC;QACnC,IAAI,CAAC,aAAa,GAAG,cAAc,CAAC;QACpC,IAAI,CAAC,cAAc,GAAG,WAAW,CAAC;QAClC,IAAI,CAAC,cAAc,GAAG,eAAe,CAAC;QACtC,IAAI,CAAC,eAAe,GAAG,YAAY,CAAC;QACpC,IAAI,CAAC,eAAe,GAAG,gBAAgB,CAAC;QACxC,IAAI,CAAC,cAAc,GAAG,WAAW,CAAC;QAClC,IAAI,CAAC,cAAc,GAAG,eAAe,CAAC;IAC1C,CAAC;IAED,aAAa;IAEb,qBAAqB;IAErB,IAAW,UAAU;QACjB,OAAO,IAAI,CAAC,WAAW,CAAC;IAC5B,CAAC;IAED,IAAW,UAAU,CAAC,KAAa;QAC/B,IAAI,CAAC,WAAW,GAAG,KAAK,CAAC;IAC7B,CAAC;IAED,IAAW,cAAc;QACrB,OAAO,IAAI,CAAC,eAAe,CAA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O,CAAC,KAAK,EAAE,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC;IAC3D,CAAC;IAEM,mBAAmB,CAAC,KAAa;QACpC,OAAO,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,KAAK,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;IAC7D,CAAC;IAEM,oBAAoB,CAAC,MAAc;QACtC,OAAO,IAAI,CAAC,eAAe,CAAC,OAAO,CAAC,KAAK,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC;IAC/D,CAAC;IAEM,mBAAmB,CAAC,KAAa;QACpC,OAAO,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,KAAK,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;IAC7D,CAAC;CAIJ"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// #region Imports
|
|
2
2
|
import { directive, PartType } from 'lit/directive.js';
|
|
3
3
|
import { AsyncDirectiveBase } from '../Abstracts/AsyncDirectiveBase';
|
|
4
|
-
import { TimeAgoIntl } from './
|
|
4
|
+
import { TimeAgoIntl } from './intl2/TimeAgoIntl';
|
|
5
5
|
// #endregion
|
|
6
6
|
/**
|
|
7
7
|
* The `TimeAgoDirective` class transforms a date into a "time ago" string.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TimeAgoDirective.js","sourceRoot":"","sources":["../../../../src/Controls/Directives/TimeAgo/TimeAgoDirective.ts"],"names":[],"mappings":"AAAA,kBAAkB;AAElB,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,EAAE,kBAAkB,EAA2B,MAAM,iCAAiC,CAAC;AAC9F,OAAO,EAAE,WAAW,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"TimeAgoDirective.js","sourceRoot":"","sources":["../../../../src/Controls/Directives/TimeAgo/TimeAgoDirective.ts"],"names":[],"mappings":"AAAA,kBAAkB;AAElB,OAAO,EAAE,SA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,gBAAuB,CAA+D,CAAC"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The `TimeAgoIntl` class provides labels for the `TimeAgoDirective`.
|
|
3
|
+
*
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
export declare class TimeAgoIntl {
|
|
7
|
+
private _fewSecondsLabel;
|
|
8
|
+
private _minuteLabel;
|
|
9
|
+
private _minutesLabel;
|
|
10
|
+
private _hourLabel;
|
|
11
|
+
private _hoursLabel;
|
|
12
|
+
private _dayLabel;
|
|
13
|
+
private _daysLabel;
|
|
14
|
+
private _monthLabel;
|
|
15
|
+
private _monthsLabel;
|
|
16
|
+
private _yearLabel;
|
|
17
|
+
private _yearsLabel;
|
|
18
|
+
/**
|
|
19
|
+
* Constructs a new instance of the `TimeAgoIntl` class.
|
|
20
|
+
*
|
|
21
|
+
* @public
|
|
22
|
+
*/
|
|
23
|
+
constructor();
|
|
24
|
+
get fewSecondsLabel(): string;
|
|
25
|
+
set fewSecondsLabel(value: string);
|
|
26
|
+
get minuteLabel(): string;
|
|
27
|
+
set minuteLabel(value: string);
|
|
28
|
+
get minutesLabel(): string;
|
|
29
|
+
set minutesLabel(value: string);
|
|
30
|
+
get hourLabel(): string;
|
|
31
|
+
set hourLabel(value: string);
|
|
32
|
+
get hoursLabel(): string;
|
|
33
|
+
set hoursLabel(value: string);
|
|
34
|
+
get dayLabel(): string;
|
|
35
|
+
set dayLabel(value: string);
|
|
36
|
+
get daysLabel(): string;
|
|
37
|
+
set daysLabel(value: string);
|
|
38
|
+
get monthLabel(): string;
|
|
39
|
+
set monthLabel(value: string);
|
|
40
|
+
get monthsLabel(): string;
|
|
41
|
+
set monthsLabel(value: string);
|
|
42
|
+
get yearLabel(): string;
|
|
43
|
+
set yearLabel(value: string);
|
|
44
|
+
get yearsLabel(): string;
|
|
45
|
+
set yearsLabel(value: string);
|
|
46
|
+
formatMinutesLabel(minutes: number): string;
|
|
47
|
+
formatHoursLabel(hours: number): string;
|
|
48
|
+
formatDaysLabel(days: number): string;
|
|
49
|
+
formatMonthsLabel(months: number): string;
|
|
50
|
+
formatYearsLabel(years: number): string;
|
|
51
|
+
}
|
|
52
|
+
//# sourceMappingURL=TimeAgoIntl.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TimeAgoIntl.d.ts","sourceRoot":"","sources":["../../../../../src/Controls/Directives/TimeAgo/intl2/TimeAgoIntl.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,qBAAa,WAAW;IAIpB,OAAO,CAAC,gBAAgB,CAAS;IACjC,OAAO,CAAC,YAAY,CAAS;IAC7B,OAAO,CAAC,aAAa,CAAS;IAC9B,OAAO,CAAC,UAAU,CAAS;IAC3B,OAAO,CAAC,WAAW,CAAS;IAC5B,OAAO,CAAC,SAAS,CAAS;IAC1B,OAAO,CAAC,UAAU,CAAS;IAC3B,OAAO,CAAC,WAAW,CAAS;IAC5B,OAAO,CAAC,YAAY,CAAS;IAC7B,OAAO,CAAC,UAAU,CAAS;IAC3B,OAAO,CAAC,WAAW,CAAS;IAM5B;;;;OAIG;;IAmBH,IAAW,eAAe,IAAI,MAAM,CAEnC;IAED,IAAW,eAAe,CAAC,KAAK,EAAE,MAAM,EAEvC;IAED,IAAW,WAAW,IAAI,MAAM,CAE/B;IAED,IAAW,WAAW,CAAC,KAAK,EAAE,MAAM,EAEnC;IAED,IAAW,YAAY,IAAI,MAAM,CAEhC;IAED,IAAW,YAAY,CAAC,KAAK,EAAE,MAAM,EAEpC;IAED,IAAW,SAAS,IAAI,MAAM,CAE7B;IAED,IAAW,SAAS,CAAC,KAAK,EAAE,MAAM,EAEjC;IAED,IAAW,UAAU,IAAI,MAAM,CAE9B;IAED,IAAW,UAAU,CAAC,KAAK,EAAE,MAAM,EAElC;IAED,IAAW,QAAQ,IAAI,MAAM,CAE5B;IAED,IAAW,QAAQ,CAAC,KAAK,EAAE,MAAM,EAEhC;IAED,IAAW,SAAS,IAAI,MAAM,CAE7B;IAED,IAAW,SAAS,CAAC,KAAK,EAAE,MAAM,EAEjC;IAED,IAAW,UAAU,IAAI,MAAM,CAE9B;IAED,IAAW,UAAU,CAAC,KAAK,EAAE,MAAM,EAElC;IAED,IAAW,WAAW,IAAI,MAAM,CAE/B;IAED,IAAW,WAAW,CAAC,KAAK,EAAE,MAAM,EAEnC;IAED,IAAW,SAAS,IAAI,MAAM,CAE7B;IAED,IAAW,SAAS,CAAC,KAAK,EAAE,MAAM,EAEjC;IAED,IAAW,UAAU,IAAI,MAAM,CAE9B;IAED,IAAW,UAAU,CAAC,KAAK,EAAE,MAAM,EAElC;IAMM,kBAAkB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM;IAI3C,gBAAgB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM;IAIvC,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM;IAIrC,iBAAiB,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM;IAIzC,gBAAgB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM;CAMjD"}
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The `TimeAgoIntl` class provides labels for the `TimeAgoDirective`.
|
|
3
|
+
*
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
export class TimeAgoIntl {
|
|
7
|
+
// #region Fields
|
|
8
|
+
_fewSecondsLabel;
|
|
9
|
+
_minuteLabel;
|
|
10
|
+
_minutesLabel;
|
|
11
|
+
_hourLabel;
|
|
12
|
+
_hoursLabel;
|
|
13
|
+
_dayLabel;
|
|
14
|
+
_daysLabel;
|
|
15
|
+
_monthLabel;
|
|
16
|
+
_monthsLabel;
|
|
17
|
+
_yearLabel;
|
|
18
|
+
_yearsLabel;
|
|
19
|
+
// #endregion
|
|
20
|
+
// #region Ctor
|
|
21
|
+
/**
|
|
22
|
+
* Constructs a new instance of the `TimeAgoIntl` class.
|
|
23
|
+
*
|
|
24
|
+
* @public
|
|
25
|
+
*/
|
|
26
|
+
constructor() {
|
|
27
|
+
this._fewSecondsLabel = 'a few seconds ago';
|
|
28
|
+
this._minuteLabel = 'a minute ago';
|
|
29
|
+
this._minutesLabel = '{0} minutes ago';
|
|
30
|
+
this._hourLabel = 'an hour ago';
|
|
31
|
+
this._hoursLabel = '{0} hours ago';
|
|
32
|
+
this._dayLabel = 'a day ago';
|
|
33
|
+
this._daysLabel = '{0} days ago';
|
|
34
|
+
this._monthLabel = 'a month ago';
|
|
35
|
+
this._monthsLabel = '{0} months ago';
|
|
36
|
+
this._yearLabel = 'a year ago';
|
|
37
|
+
this._yearsLabel = '{0} years ago';
|
|
38
|
+
}
|
|
39
|
+
// #endregion
|
|
40
|
+
// #region Properties
|
|
41
|
+
get fewSecondsLabel() {
|
|
42
|
+
return this._fewSecondsLabel;
|
|
43
|
+
}
|
|
44
|
+
set fewSecondsLabel(value) {
|
|
45
|
+
this._fewSecondsLabel = value;
|
|
46
|
+
}
|
|
47
|
+
get minuteLabel() {
|
|
48
|
+
return this._minuteLabel;
|
|
49
|
+
}
|
|
50
|
+
set minuteLabel(value) {
|
|
51
|
+
this._minuteLabel = value;
|
|
52
|
+
}
|
|
53
|
+
get minutesLabel() {
|
|
54
|
+
return this._minutesLabel;
|
|
55
|
+
}
|
|
56
|
+
set minutesLabel(value) {
|
|
57
|
+
this._minutesLabel = value;
|
|
58
|
+
}
|
|
59
|
+
get hourLabel() {
|
|
60
|
+
return this._hourLabel;
|
|
61
|
+
}
|
|
62
|
+
set hourLabel(value) {
|
|
63
|
+
this._hourLabel = value;
|
|
64
|
+
}
|
|
65
|
+
get hoursLabel() {
|
|
66
|
+
return this._hoursLabel;
|
|
67
|
+
}
|
|
68
|
+
set hoursLabel(value) {
|
|
69
|
+
this._hoursLabel = value;
|
|
70
|
+
}
|
|
71
|
+
get dayLabel() {
|
|
72
|
+
return this._dayLabel;
|
|
73
|
+
}
|
|
74
|
+
set dayLabel(value) {
|
|
75
|
+
this._dayLabel = value;
|
|
76
|
+
}
|
|
77
|
+
get daysLabel() {
|
|
78
|
+
return this._daysLabel;
|
|
79
|
+
}
|
|
80
|
+
set daysLabel(value) {
|
|
81
|
+
this._daysLabel = value;
|
|
82
|
+
}
|
|
83
|
+
get monthLabel() {
|
|
84
|
+
return this._monthLabel;
|
|
85
|
+
}
|
|
86
|
+
set monthLabel(value) {
|
|
87
|
+
this._monthLabel = value;
|
|
88
|
+
}
|
|
89
|
+
get monthsLabel() {
|
|
90
|
+
return this._monthsLabel;
|
|
91
|
+
}
|
|
92
|
+
set monthsLabel(value) {
|
|
93
|
+
this._monthsLabel = value;
|
|
94
|
+
}
|
|
95
|
+
get yearLabel() {
|
|
96
|
+
return this._yearLabel;
|
|
97
|
+
}
|
|
98
|
+
set yearLabel(value) {
|
|
99
|
+
this._yearLabel = value;
|
|
100
|
+
}
|
|
101
|
+
get yearsLabel() {
|
|
102
|
+
return this._yearsLabel;
|
|
103
|
+
}
|
|
104
|
+
set yearsLabel(value) {
|
|
105
|
+
this._yearsLabel = value;
|
|
106
|
+
}
|
|
107
|
+
// #endregion
|
|
108
|
+
// #region Methods
|
|
109
|
+
formatMinutesLabel(minutes) {
|
|
110
|
+
return this._minutesLabel.replace('{0}', String(minutes));
|
|
111
|
+
}
|
|
112
|
+
formatHoursLabel(hours) {
|
|
113
|
+
return this._hoursLabel.replace('{0}', String(hours));
|
|
114
|
+
}
|
|
115
|
+
formatDaysLabel(days) {
|
|
116
|
+
return this._daysLabel.replace('{0}', String(days));
|
|
117
|
+
}
|
|
118
|
+
formatMonthsLabel(months) {
|
|
119
|
+
return this._monthsLabel.replace('{0}', String(months));
|
|
120
|
+
}
|
|
121
|
+
formatYearsLabel(years) {
|
|
122
|
+
return this._yearsLabel.replace('{0}', String(years));
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
//# sourceMappingURL=TimeAgoIntl.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TimeAgoIntl.js","sour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AAC;IAED,IAAW,UAAU,CAAC,KAAa;QAC/B,IAAI,CAAC,WAAW,GAAG,KAAK,CAAC;IAC7B,CAAC;IAED,aAAa;IAEb,kBAAkB;IAEX,kBAAkB,CAAC,OAAe;QACrC,OAAO,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,KAAK,EAAE,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC;IAC9D,CAAC;IAEM,gBAAgB,CAAC,KAAa;QACjC,OAAO,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,KAAK,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;IAC1D,CAAC;IAEM,eAAe,CAAC,IAAY;QAC/B,OAAO,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,KAAK,EAAE,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC;IACxD,CAAC;IAEM,iBAAiB,CAAC,MAAc;QACnC,OAAO,IAAI,CAAC,YAAY,CAAC,OAAO,CAAC,KAAK,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC;IAC5D,CAAC;IAEM,gBAAgB,CAAC,KAAa;QACjC,OAAO,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,KAAK,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;IAC1D,CAAC;CAIJ"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { ValuesOf } from '../../Types/ValuesOf';
|
|
2
|
+
/**
|
|
3
|
+
* `DropdownChangeReason` - Describes why a dropdown changed its open state.
|
|
4
|
+
*
|
|
5
|
+
* @public
|
|
6
|
+
*/
|
|
7
|
+
export declare const DropdownChangeReason: {
|
|
8
|
+
readonly AnchorClick: "anchor-click";
|
|
9
|
+
readonly AnchorHover: "anchor-hover";
|
|
10
|
+
readonly AnchorFocus: "anchor-focus";
|
|
11
|
+
readonly OutsideClick: "outside-click";
|
|
12
|
+
readonly Escape: "escape";
|
|
13
|
+
readonly Selection: "selection";
|
|
14
|
+
readonly Programmatic: "programmatic";
|
|
15
|
+
readonly Disabled: "disabled";
|
|
16
|
+
readonly NativePopoverClose: "native-popover-close";
|
|
17
|
+
readonly Connected: "connected";
|
|
18
|
+
readonly Disconnected: "disconnected";
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* @public
|
|
22
|
+
*/
|
|
23
|
+
export type DropdownChangeReason = ValuesOf<typeof DropdownChangeReason>;
|
|
24
|
+
//# sourceMappingURL=DropdownChangeReason.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DropdownChangeReason.d.ts","sourceRoot":"","sources":["../../../src/Controls/Types/DropdownChangeReason.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAIrD;;;;GAIG;AACH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;CAYvB,CAAC;AAEX;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAAG,QAAQ,CAAC,OAAO,oBAAoB,CAAC,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
// #region Imports
|
|
2
|
+
// #endregion
|
|
3
|
+
/**
|
|
4
|
+
* `DropdownChangeReason` - Describes why a dropdown changed its open state.
|
|
5
|
+
*
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export const DropdownChangeReason = {
|
|
9
|
+
AnchorClick: 'anchor-click',
|
|
10
|
+
AnchorHover: 'anchor-hover',
|
|
11
|
+
AnchorFocus: 'anchor-focus',
|
|
12
|
+
OutsideClick: 'outside-click',
|
|
13
|
+
Escape: 'escape',
|
|
14
|
+
Selection: 'selection',
|
|
15
|
+
Programmatic: 'programmatic',
|
|
16
|
+
Disabled: 'disabled',
|
|
17
|
+
NativePopoverClose: 'native-popover-close',
|
|
18
|
+
Connected: 'connected',
|
|
19
|
+
Disconnected: 'disconnected'
|
|
20
|
+
};
|
|
21
|
+
//# sourceMappingURL=DropdownChangeReason.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DropdownChangeReason.js","sourceRoot":"","sources":["../../../src/Controls/Types/DropdownChangeReason.ts"],"names":[],"mappings":"AAAA,kBAAkB;AAIlB,aAAa;AAEb;;;;GAIG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG;IAChC,WAAW,EAAE,cAAc;IAC3B,WAAW,EAAE,cAAc;IAC3B,WAAW,EAAE,cAAc;IAC3B,YAAY,EAAE,eAAe;IAC7B,MAAM,EAAE,QAAQ;IAChB,SAAS,EAAE,WAAW;IACtB,YAAY,EAAE,cAAc;IAC5B,QAAQ,EAAE,UAAU;IACpB,kBAAkB,EAAE,sBAAsB;IAC1C,SAAS,EAAE,WAAW;IACtB,YAAY,EAAE,cAAc;CACtB,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { ValuesOf } from '../../Types/ValuesOf';
|
|
2
|
+
/**
|
|
3
|
+
* `DropdownTrigger` - Defines how a dropdown is opened and closed.
|
|
4
|
+
*
|
|
5
|
+
* @public
|
|
6
|
+
*/
|
|
7
|
+
export declare const DropdownTrigger: {
|
|
8
|
+
/**
|
|
9
|
+
* Toggles the dropdown when the anchor is clicked.
|
|
10
|
+
*/
|
|
11
|
+
readonly Click: "click";
|
|
12
|
+
/**
|
|
13
|
+
* Opens the dropdown while the anchor has hover intent.
|
|
14
|
+
*/
|
|
15
|
+
readonly Hover: "hover";
|
|
16
|
+
/**
|
|
17
|
+
* Opens the dropdown while the anchor has focus.
|
|
18
|
+
*/
|
|
19
|
+
readonly Focus: "focus";
|
|
20
|
+
/**
|
|
21
|
+
* Leaves opening and closing to application code.
|
|
22
|
+
*/
|
|
23
|
+
readonly Manual: "manual";
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* @public
|
|
27
|
+
*/
|
|
28
|
+
export type DropdownTrigger = ValuesOf<typeof DropdownTrigger>;
|
|
29
|
+
//# sourceMappingURL=DropdownTrigger.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DropdownTrigger.d.ts","sourceRoot":"","sources":["../../../src/Controls/Types/DropdownTrigger.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAIrD;;;;GAIG;AACH,eAAO,MAAM,eAAe;IAExB;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;CAEG,CAAC;AAEX;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,QAAQ,CAAC,OAAO,eAAe,CAAC,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
// #region Imports
|
|
2
|
+
// #endregion
|
|
3
|
+
/**
|
|
4
|
+
* `DropdownTrigger` - Defines how a dropdown is opened and closed.
|
|
5
|
+
*
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export const DropdownTrigger = {
|
|
9
|
+
/**
|
|
10
|
+
* Toggles the dropdown when the anchor is clicked.
|
|
11
|
+
*/
|
|
12
|
+
Click: 'click',
|
|
13
|
+
/**
|
|
14
|
+
* Opens the dropdown while the anchor has hover intent.
|
|
15
|
+
*/
|
|
16
|
+
Hover: 'hover',
|
|
17
|
+
/**
|
|
18
|
+
* Opens the dropdown while the anchor has focus.
|
|
19
|
+
*/
|
|
20
|
+
Focus: 'focus',
|
|
21
|
+
/**
|
|
22
|
+
* Leaves opening and closing to application code.
|
|
23
|
+
*/
|
|
24
|
+
Manual: 'manual'
|
|
25
|
+
};
|
|
26
|
+
//# sourceMappingURL=DropdownTrigger.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DropdownTrigger.js","sourceRoot":"","sources":["../../../src/Controls/Types/DropdownTrigger.ts"],"names":[],"mappings":"AAAA,kBAAkB;AAIlB,aAAa;AAEb;;;;GAIG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG;IAE3B;;OAEG;IACH,KAAK,EAAE,OAAO;IAEd;;OAEG;IACH,KAAK,EAAE,OAAO;IAEd;;OAEG;IACH,KAAK,EAAE,OAAO;IAEd;;OAEG;IACH,MAAM,EAAE,QAAQ;CACV,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ICancelEventDetail } from '@breadstone/mosaik-elements';
|
|
1
|
+
import type { ICancelEventDetail, IEventDetail } from '@breadstone/mosaik-elements';
|
|
2
2
|
/**
|
|
3
3
|
* Represents the event detail for opened events.
|
|
4
4
|
*
|
|
@@ -25,10 +25,32 @@ export interface IClosedEventDetail extends ICancelEventDetail {
|
|
|
25
25
|
* @public
|
|
26
26
|
*/
|
|
27
27
|
export type ClosedEvent = CustomEvent<IClosedEventDetail>;
|
|
28
|
+
/**
|
|
29
|
+
* Represents the event detail for open state changed events.
|
|
30
|
+
*
|
|
31
|
+
* @public
|
|
32
|
+
*/
|
|
33
|
+
export interface IOpenChangedEventDetail extends IEventDetail {
|
|
34
|
+
/**
|
|
35
|
+
* Whether the element is open.
|
|
36
|
+
*/
|
|
37
|
+
readonly open: boolean;
|
|
38
|
+
/**
|
|
39
|
+
* The reason why the open state changed.
|
|
40
|
+
*/
|
|
41
|
+
readonly reason?: string;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Event fired when an element's open state changes.
|
|
45
|
+
*
|
|
46
|
+
* @public
|
|
47
|
+
*/
|
|
48
|
+
export type OpenChangedEvent = CustomEvent<IOpenChangedEventDetail>;
|
|
28
49
|
declare global {
|
|
29
50
|
interface HTMLElementEventMap {
|
|
30
51
|
opened: OpenedEvent;
|
|
31
52
|
closed: ClosedEvent;
|
|
53
|
+
openChanged: OpenChangedEvent;
|
|
32
54
|
}
|
|
33
55
|
}
|
|
34
56
|
//# sourceMappingURL=OpenCloseEvents.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OpenCloseEvents.d.ts","sourceRoot":"","sources":["../../../src/Controls/events/OpenCloseEvents.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,
|
|
1
|
+
{"version":3,"file":"OpenCloseEvents.d.ts","sourceRoot":"","sources":["../../../src/Controls/events/OpenCloseEvents.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAuB,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAIzG;;;;GAIG;AACH,MAAM,WAAW,kBAAmB,SAAQ,kBAAkB;CAC7D;AAED;;;;GAIG;AACH,MAAM,MAAM,WAAW,GAAG,WAAW,CAAC,kBAAkB,CAAC,CAAC;AAE1D;;;;GAIG;AACH,MAAM,WAAW,kBAAmB,SAAQ,kBAAkB;CAC7D;AAED;;;;GAIG;AACH,MAAM,MAAM,WAAW,GAAG,WAAW,CAAC,kBAAkB,CAAC,CAAC;AAE1D;;;;GAIG;AACH,MAAM,WAAW,uBAAwB,SAAQ,YAAY;IAIzD;;OAEG;IACH,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAC;IAEvB;;OAEG;IACH,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;CAI5B;AAED;;;;GAIG;AACH,MAAM,MAAM,gBAAgB,GAAG,WAAW,CAAC,uBAAuB,CAAC,CAAC;AAEpE,OAAO,CAAC,MAAM,CAAC;IACX,UAAU,mBAAmB;QACzB,MAAM,EAAE,WAAW,CAAC;QACpB,MAAM,EAAE,WAAW,CAAC;QACpB,WAAW,EAAE,gBAAgB,CAAC;KACjC;CACJ"}
|
|
@@ -19,7 +19,7 @@ export type { IImageFailedEventDetail, IImageLoadedEventDetail, ImageFailedEvent
|
|
|
19
19
|
export type { AppMenuToggledEvent, DrawerMarginChangedEvent, IAppMenuToggledEventDetail, IDrawerMarginChangedEventDetail, ILayoutChangedEventDetail, ISplitRepositionEventDetail, LayoutChangedEvent, SplitRepositionEvent } from './LayoutEvents';
|
|
20
20
|
export type { ConnectedEvent, DisconnectedEvent, IConnectedEventDetail, IDisconnectedEventDetail } from './LifecycleEvents';
|
|
21
21
|
export type { BreakpointMatchedEvent, IBreakpointMatchedEventDetail, IRouterNavigatedEventDetail, IRoutesConnectedEventDetail, RouterNavigatedEvent, RoutesConnectedEvent } from './NavigationEvents';
|
|
22
|
-
export type { ClosedEvent, IClosedEventDetail, IOpenedEventDetail, OpenedEvent } from './OpenCloseEvents';
|
|
22
|
+
export type { ClosedEvent, IClosedEventDetail, IOpenChangedEventDetail, IOpenedEventDetail, OpenChangedEvent, OpenedEvent } from './OpenCloseEvents';
|
|
23
23
|
export type { IPaginatedEventDetail, PageChangedEvent, PageSizeChangedEvent } from './PaginatorEvents';
|
|
24
24
|
export type { IPasswordConcealedEventDetail, IPasswordRevealedEventDetail, PasswordConcealedEvent, PasswordRevealedEvent } from './PasswordEvents';
|
|
25
25
|
export type { IPortalAttachedEventDetail, IPortalDetachedEventDetail, PortalAttachedEvent, PortalDetachedEvent } from './PortalEvents';
|