@lion/ui 0.8.1 → 0.8.3
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/components/calendar/src/LionCalendar.js +6 -0
- package/components/core/src/DisabledWithTabIndexMixin.js +7 -0
- package/components/core/src/ScopedElementsMixin.js +58 -37
- package/components/core/test/ScopedElementsMixin.test.js +131 -0
- package/components/core/test/ssr-definitions/ScopedElementsHost.define.js +1 -0
- package/components/form-core/src/FormControlMixin.js +6 -0
- package/components/form-core/src/utils/SyncUpdatableMixin.js +7 -0
- package/components/form-core/src/validate/LionValidationFeedback.js +4 -2
- package/components/form-core/test/validate/lion-validation-feedback.test.js +12 -0
- package/components/icon/src/LionIcon.js +6 -0
- package/components/localize/src/LocalizeManager.js +258 -178
- package/components/overlays/src/OverlayController.js +40 -13
- package/components/overlays/src/OverlayMixin.js +7 -0
- package/components/overlays/test/OverlayController.test.js +233 -30
- package/components/overlays/test-helpers/mimicClick.js +2 -2
- package/components/progress-indicator/src/LionProgressIndicator.js +6 -0
- package/components/steps/src/LionStep.js +6 -0
- package/components/steps/src/LionSteps.js +6 -0
- package/components/tabs/src/LionTabs.js +6 -0
- package/components/tooltip/src/LionTooltip.js +6 -0
- package/custom-elements.json +716 -163
- package/dist-types/components/calendar/src/LionCalendar.d.ts +5 -0
- package/dist-types/components/calendar/src/LionCalendar.d.ts.map +1 -1
- package/dist-types/components/core/src/DisabledWithTabIndexMixin.d.ts.map +1 -1
- package/dist-types/components/core/src/ScopedElementsMixin.d.ts +43 -6
- package/dist-types/components/core/src/ScopedElementsMixin.d.ts.map +1 -1
- package/dist-types/components/core/test/ScopedElementsMixin.test.d.ts +2 -0
- package/dist-types/components/core/test/ScopedElementsMixin.test.d.ts.map +1 -0
- package/dist-types/components/core/test/ssr-definitions/ScopedElementsHost.define.d.ts +2 -0
- package/dist-types/components/core/test/ssr-definitions/ScopedElementsHost.define.d.ts.map +1 -0
- package/dist-types/components/form-core/src/FormControlMixin.d.ts.map +1 -1
- package/dist-types/components/form-core/src/utils/SyncUpdatableMixin.d.ts.map +1 -1
- package/dist-types/components/form-core/src/validate/LionValidationFeedback.d.ts.map +1 -1
- package/dist-types/components/form-integrations/test/helpers/helpers.d.ts +3 -3
- package/dist-types/components/form-integrations/test/helpers/helpers.d.ts.map +1 -1
- package/dist-types/components/icon/src/LionIcon.d.ts +5 -0
- package/dist-types/components/icon/src/LionIcon.d.ts.map +1 -1
- package/dist-types/components/input-datepicker/src/LionInputDatepicker.d.ts +1 -1
- package/dist-types/components/input-file/src/LionInputFile.d.ts +1 -1
- package/dist-types/components/input-file/src/LionSelectedFileList.d.ts +1 -1
- package/dist-types/components/localize/src/LocalizeManager.d.ts +108 -93
- package/dist-types/components/localize/src/LocalizeManager.d.ts.map +1 -1
- package/dist-types/components/overlays/src/OverlayController.d.ts +9 -5
- package/dist-types/components/overlays/src/OverlayController.d.ts.map +1 -1
- package/dist-types/components/overlays/src/OverlayMixin.d.ts.map +1 -1
- package/dist-types/components/overlays/test/OverlayController.test.d.ts +1 -1
- package/dist-types/components/overlays/test/OverlayController.test.d.ts.map +1 -1
- package/dist-types/components/overlays/test-helpers/mimicClick.d.ts +1 -1
- package/dist-types/components/progress-indicator/src/LionProgressIndicator.d.ts +5 -0
- package/dist-types/components/progress-indicator/src/LionProgressIndicator.d.ts.map +1 -1
- package/dist-types/components/select-rich/src/LionSelectRich.d.ts +1 -1
- package/dist-types/components/steps/src/LionStep.d.ts +5 -0
- package/dist-types/components/steps/src/LionStep.d.ts.map +1 -1
- package/dist-types/components/steps/src/LionSteps.d.ts +5 -0
- package/dist-types/components/steps/src/LionSteps.d.ts.map +1 -1
- package/dist-types/components/switch/src/LionSwitch.d.ts +1 -1
- package/dist-types/components/tabs/src/LionTabs.d.ts +5 -0
- package/dist-types/components/tabs/src/LionTabs.d.ts.map +1 -1
- package/dist-types/components/tooltip/src/LionTooltip.d.ts +5 -0
- package/dist-types/components/tooltip/src/LionTooltip.d.ts.map +1 -1
- package/dist-types/tsconfig.tsbuildinfo +1 -1
- package/docs/components/checkbox-group/overview.md +2 -2
- package/docs/components/collapsible/overview.md +1 -1
- package/docs/components/combobox/overview.md +1 -1
- package/docs/components/combobox/use-cases.md +1 -1
- package/docs/components/dialog/overview.md +1 -1
- package/docs/components/fieldset/overview.md +5 -5
- package/docs/components/form/overview.md +3 -3
- package/docs/components/icon/use-cases.md +1 -1
- package/docs/components/input/api-table.md +1 -1
- package/docs/components/input/overview.md +1 -1
- package/docs/components/input-amount/api-table.md +1 -1
- package/docs/components/input-amount/overview.md +3 -3
- package/docs/components/input-date/api-table.md +1 -1
- package/docs/components/input-date/overview.md +3 -3
- package/docs/components/input-datepicker/api-table.md +1 -1
- package/docs/components/input-datepicker/overview.md +5 -5
- package/docs/components/input-email/api-table.md +1 -1
- package/docs/components/input-email/overview.md +2 -2
- package/docs/components/input-file/api-table.md +1 -1
- package/docs/components/input-file/overview.md +1 -1
- package/docs/components/input-iban/api-table.md +1 -1
- package/docs/components/input-iban/overview.md +2 -2
- package/docs/components/input-range/api-table.md +1 -1
- package/docs/components/input-range/overview.md +2 -2
- package/docs/components/input-stepper/api-table.md +1 -1
- package/docs/components/input-stepper/overview.md +1 -1
- package/docs/components/input-tel/api-table.md +1 -1
- package/docs/components/input-tel/overview.md +1 -1
- package/docs/components/input-tel/use-cases.md +6 -6
- package/docs/components/input-tel-dropdown/api-table.md +1 -1
- package/docs/components/input-tel-dropdown/overview.md +1 -1
- package/docs/components/listbox/use-cases.md +1 -1
- package/docs/components/radio-group/api-table.md +1 -1
- package/docs/components/radio-group/overview.md +3 -3
- package/docs/components/select/api-table.md +1 -1
- package/docs/components/select/use-cases.md +1 -1
- package/docs/components/select-rich/api-table.md +1 -1
- package/docs/components/select-rich/use-cases.md +1 -1
- package/docs/components/switch/api-table.md +1 -1
- package/docs/components/tabs/examples.md +1 -1
- package/docs/components/textarea/api-table.md +1 -1
- package/docs/fundamentals/index.md +4 -4
- package/docs/fundamentals/node-tools/providence-analytics/LocalConfiguration.md +1 -1
- package/docs/fundamentals/node-tools/providence-analytics/QueryResult.md +1 -1
- package/docs/fundamentals/node-tools/providence-analytics/analyzer.md +1 -1
- package/docs/fundamentals/node-tools/providence-analytics/dashboard.md +1 -1
- package/docs/fundamentals/node-tools/providence-analytics/overview.md +3 -3
- package/docs/fundamentals/node-tools/publish-docs/overview.md +3 -3
- package/docs/fundamentals/node-tools/rocket-preset-extend-lion-docs/overview.md +2 -2
- package/docs/fundamentals/rationales/accessibility.md +1 -1
- package/docs/fundamentals/systems/core/SlotMixin.md +1 -1
- package/docs/fundamentals/systems/core/overview.md +1 -1
- package/docs/fundamentals/systems/form/formatting-and-parsing.md +4 -4
- package/docs/fundamentals/systems/form/model-value.md +1 -1
- package/docs/fundamentals/systems/form/overview.md +28 -28
- package/docs/fundamentals/systems/form/validate.md +2 -2
- package/docs/fundamentals/systems/localize/api-table.md +38 -37
- package/docs/fundamentals/systems/localize/overview.md +4 -4
- package/docs/fundamentals/systems/overlays/api-table.md +1 -0
- package/docs/fundamentals/systems/overlays/configuration.md +2 -2
- package/docs/fundamentals/systems/overlays/overview.md +5 -5
- package/docs/fundamentals/systems/overlays/use-cases.md +2 -2
- package/docs/fundamentals/tools/helpers/overview.md +1 -1
- package/docs/fundamentals/tools/singleton-manager/overview.md +4 -4
- package/docs/guides/how-to/create-a-custom-field.md +5 -5
- package/docs/guides/how-to/create-a-form.md +4 -4
- package/docs/guides/how-to/extend-a-native-input.md +2 -2
- package/docs/guides/index.md +8 -8
- package/docs/guides/principles/index.md +5 -5
- package/docs/guides/principles/styling.md +1 -1
- package/package.json +1 -1
|
@@ -75,6 +75,11 @@ export class LionCalendar extends LionCalendar_base {
|
|
|
75
75
|
};
|
|
76
76
|
};
|
|
77
77
|
static get styles(): import("lit").CSSResult[];
|
|
78
|
+
/**
|
|
79
|
+
* // TODO: check if this is a false positive or if we can improve
|
|
80
|
+
* @configure ReactiveElement
|
|
81
|
+
*/
|
|
82
|
+
static enabledWarnings: import("lit").WarningKind[];
|
|
78
83
|
/** @type {{months: Month[]}}
|
|
79
84
|
* @private
|
|
80
85
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LionCalendar.d.ts","sourceRoot":"","sources":["../../../../components/calendar/src/LionCalendar.js"],"names":[],"mappings":";AAoCA;;GAEG;AACH;IAkEE;QAEI;;WAEG;;;;QAGH;;WAEG;;;;QAGH;;WAEG;;;;QAGH;;;WAGG;;;;QAGH;;;;WAIG;;;;QAGH;;;;WAIG;;;;QAGH;;;;;;WAMG;;;;QAGH;;WAEG;;;;QAGH;;WAEG;;;;QAGH;;WAEG;;;;MAGN;IA4CD,+CAEC;
|
|
1
|
+
{"version":3,"file":"LionCalendar.d.ts","sourceRoot":"","sources":["../../../../components/calendar/src/LionCalendar.js"],"names":[],"mappings":";AAoCA;;GAEG;AACH;IAkEE;QAEI;;WAEG;;;;QAGH;;WAEG;;;;QAGH;;WAEG;;;;QAGH;;;WAGG;;;;QAGH;;;;WAIG;;;;QAGH;;;;WAIG;;;;QAGH;;;;;;WAMG;;;;QAGH;;WAEG;;;;QAGH;;WAEG;;;;QAGH;;WAEG;;;;MAGN;IA4CD,+CAEC;IA+JD;;;OAGG;IACH,oDAA4F;IA7M1F;;OAEG;IACH,eAA4B;IAC5B,cAA0B;IAE1B,cAAyC;IACzC,uBAAuB;IACvB,uBADY,GAAG,mCACkB;IAEjC,wBAAwB;IAExB,oBAFY,IAAI,aAEgB;IAEhC,uBAAuB;IACvB,8BAAoC;IACpC,eAAe;IACf,gBAA4C;IAC5C,mBAAmB;IACnB,aADW,IAAI,CACgB;IAC/B;;;OAGG;IACH,sBAAyB;IACzB,eAAe;IACf,gCAAoC;IACpC,eAAe;IACf,sBAA0B;IAC1B,eAAgB;IAChB,eAAe;IACf,uCAA+E;IAC/E,eAAe;IACf,mCAAuE;IACvE,eAAe;IACf,mCAAuE;IACvE,eAAe;IACf,kCAAsE;IAOxE,+CAMC;IAED,+BA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1
|
-
{"version":3,"file":"DisabledWithTabIndexMixin.d.ts","sourceRoot":"","sources":["../../../../components/core/src/DisabledWithTabIndexMixin.js"],"names":[],"mappings":"wCAIa,OAAO,4CAA4C,EAAE,yBAAyB;
|
|
1
|
+
{"version":3,"file":"DisabledWithTabIndexMixin.d.ts","sourceRoot":"","sources":["../../../../components/core/src/DisabledWithTabIndexMixin.js"],"names":[],"mappings":"wCAIa,OAAO,4CAA4C,EAAE,yBAAyB;AAuG3F,4IAA8F"}
|
|
@@ -1,15 +1,52 @@
|
|
|
1
1
|
/**
|
|
2
|
+
* @typedef {import('../../form-core/types/validate/ValidateMixinTypes.js').ScopedElementsMap} ScopedElementsMap
|
|
3
|
+
* @typedef {import('@open-wc/dedupe-mixin').Constructor<ScopedElementsHost>} ScopedElementsHostConstructor
|
|
4
|
+
* @typedef {import('@open-wc/scoped-elements/lit-element.js').ScopedElementsHost} ScopedElementsHost
|
|
5
|
+
* @typedef {import('./types.js').ScopedElementsHostV2Constructor} ScopedElementsHostV2Constructor
|
|
6
|
+
* @typedef {import('@open-wc/dedupe-mixin').Constructor<LitElement>} LitElementConstructor
|
|
7
|
+
* @typedef {import('lit').CSSResultOrNative} CSSResultOrNative
|
|
8
|
+
* @typedef {typeof import('lit').LitElement} TypeofLitElement
|
|
9
|
+
* @typedef {import('lit').LitElement} LitElement
|
|
10
|
+
*/
|
|
11
|
+
export function supportsScopedRegistry(): boolean;
|
|
12
|
+
/**
|
|
13
|
+
* This file is combination of '@open-wc/scoped-elements@v3/lit-element.js' and '@open-wc/scoped-elements@v3/html-element.js'.
|
|
14
|
+
* Then on top of those, some code from '@open-wc/scoped-elements@v2' is brought to to make polyfill not mandatory.
|
|
15
|
+
* This can be a great help for ssr scenarios, allowing elements to be consumed without needing knowledge about internall
|
|
16
|
+
* consumption.
|
|
17
|
+
* (N.B. at this point in time, this is limited to the scenario where there's one version of lion on the page).
|
|
18
|
+
*
|
|
19
|
+
* ## Considerations
|
|
20
|
+
* In its current state, the [scoped-custom-element-registry](https://github.com/webcomponents/polyfills/tree/master/packages/scoped-custom-element-registry) draft spec has uncertainties:
|
|
21
|
+
* - the spec is not yet final; it's not clear how long it will be dependent on a polyfill
|
|
22
|
+
* - the polyfill conflicts with new browser functionality (form-associated custom elements in Safari, ShadowRoot.createElement in Chrome Canary, etc.).
|
|
23
|
+
* - the spsc is not compatible with SSR and it remains unclear if it will be in the future
|
|
24
|
+
*
|
|
25
|
+
* Also see: https://github.com/webcomponents/polyfills/issues?q=scoped-custom-element-registry
|
|
26
|
+
*
|
|
27
|
+
* In previous considerations (last year), we betted on the spec to evolve quickly and the polyfill to be stable.
|
|
28
|
+
* Till this day, little progress has been made. In the meantime. @lit-labs/ssr (incompatible with the spec) is released as well.
|
|
29
|
+
*
|
|
30
|
+
* This file aims to achieve two things:
|
|
31
|
+
* = being up to date with the latest version of @open-wc/scoped-elements (v3)
|
|
32
|
+
* - make the impact of this change for lion as minimal as possible
|
|
33
|
+
*
|
|
34
|
+
* In order to achieve the latter, we keep the ability to opt out of the polyfill.
|
|
35
|
+
* This can be beneficial for performance, bundle size, ease of use and SSR capabilities.
|
|
36
|
+
*
|
|
37
|
+
* We will keep a close eye on developments in spec and polyfill, and will re-evaluate the scoped-elements approach when the time is right.
|
|
38
|
+
*
|
|
2
39
|
* @template {LitElementConstructor} T
|
|
3
40
|
* @param {T} superclass
|
|
4
41
|
* @return {T & ScopedElementsHostConstructor & ScopedElementsHostV2Constructor}
|
|
5
42
|
*/
|
|
6
|
-
export function ScopedElementsMixin<T extends
|
|
7
|
-
export type ScopedElementsHost = import('@open-wc/scoped-elements/lit-element.js').ScopedElementsHost;
|
|
43
|
+
export function ScopedElementsMixin<T extends import("@open-wc/dedupe-mixin").Constructor<import("lit").LitElement>>(superclass: T): T & import("@open-wc/dedupe-mixin").Constructor<import("../../../../../node_modules/@open-wc/scoped-elements/types.js").ScopedElementsHost> & import("./types.js").ScopedElementsHostV2Constructor;
|
|
8
44
|
export type ScopedElementsMap = import('../../form-core/types/validate/ValidateMixinTypes.js').ScopedElementsMap;
|
|
9
|
-
export type CSSResultOrNative = import('lit').CSSResultOrNative;
|
|
10
|
-
export type LitElement = import('lit').LitElement;
|
|
11
|
-
export type TypeofLitElement = typeof import('lit').LitElement;
|
|
12
|
-
export type LitElementConstructor = import('@open-wc/dedupe-mixin').Constructor<LitElement>;
|
|
13
45
|
export type ScopedElementsHostConstructor = import('@open-wc/dedupe-mixin').Constructor<ScopedElementsHost>;
|
|
46
|
+
export type ScopedElementsHost = import('@open-wc/scoped-elements/lit-element.js').ScopedElementsHost;
|
|
14
47
|
export type ScopedElementsHostV2Constructor = import('./types.js').ScopedElementsHostV2Constructor;
|
|
48
|
+
export type LitElementConstructor = import('@open-wc/dedupe-mixin').Constructor<LitElement>;
|
|
49
|
+
export type CSSResultOrNative = import('lit').CSSResultOrNative;
|
|
50
|
+
export type TypeofLitElement = typeof import('lit').LitElement;
|
|
51
|
+
export type LitElement = import('lit').LitElement;
|
|
15
52
|
//# sourceMappingURL=ScopedElementsMixin.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ScopedElementsMixin.d.ts","sourceRoot":"","sources":["../../../../components/core/src/ScopedElementsMixin.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ScopedElementsMixin.d.ts","sourceRoot":"","sources":["../../../../components/core/src/ScopedElementsMixin.js"],"names":[],"mappings":"AAIA;;;;;;;;;GASG;AAEH,kDAKC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,wUAiHG;gCAjKU,OAAO,sDAAsD,EAAE,iBAAiB;4CAChF,OAAO,uBAAuB,EAAE,WAAW,CAAC,kBAAkB,CAAC;iCAC/D,OAAO,yCAAyC,EAAE,kBAAkB;8CACpE,OAAO,YAAY,EAAE,+BAA+B;oCACpD,OAAO,uBAAuB,EAAE,WAAW,CAAC,UAAU,CAAC;gCACvD,OAAO,KAAK,EAAE,iBAAiB;+BAC/B,cAAc,KAAK,EAAE,UAAU;yBAC/B,OAAO,KAAK,EAAE,UAAU"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ScopedElementsMixin.test.d.ts","sourceRoot":"","sources":["../../../../components/core/test/ScopedElementsMixin.test.js"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ScopedElementsHost.define.d.ts","sourceRoot":"","sources":["../../../../../components/core/test/ssr-definitions/ScopedElementsHost.define.js"],"names":[],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FormControlMixin.d.ts","sourceRoot":"","sources":["../../../../components/form-core/src/FormControlMixin.js"],"names":[],"mappings":"+BAgBa,OAAO,mCAAmC,EAAE,gBAAgB;
|
|
1
|
+
{"version":3,"file":"FormControlMixin.d.ts","sourceRoot":"","sources":["../../../../components/form-core/src/FormControlMixin.js"],"names":[],"mappings":"+BAgBa,OAAO,mCAAmC,EAAE,gBAAgB;AA+7BzE,4GAA4E;6BAv8B/D,OAAO,KAAK,EAAE,cAAc;wBAC5B,OAAO,KAAK,EAAE,SAAS;6BACvB,OAAO,KAAK,EAAE,cAAc;uBAC5B,OAAO,oCAAoC,EAAE,QAAQ;qCACrD,OAAO,sCAAsC,EAAE,sBAAsB;8BACrE,OAAO,gDAAgD,EAAE,eAAe;8BACxE,OAAO,mCAAmC,EAAE,eAAe;mCAC3D,OAAO,mCAAmC,EAAE,oBAAoB;qCAEhE,OAAO,mCAAmC,EAAE,sBAAsB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SyncUpdatableMixin.d.ts","sourceRoot":"","sources":["../../../../../components/form-core/src/utils/SyncUpdatableMixin.js"],"names":[],"mappings":"iCAKa,OAAO,8CAA8C,EAAE,kBAAkB;
|
|
1
|
+
{"version":3,"file":"SyncUpdatableMixin.d.ts","sourceRoot":"","sources":["../../../../../components/form-core/src/utils/SyncUpdatableMixin.js"],"names":[],"mappings":"iCAKa,OAAO,8CAA8C,EAAE,kBAAkB;AA+ItF,2HAAgF;qCA9InE,OAAO,8CAA8C,EAAE,sBAAsB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LionValidationFeedback.d.ts","sourceRoot":"","sources":["../../../../../components/form-core/src/validate/LionValidationFeedback.js"],"names":[],"mappings":";AAeA;;;GAGG;AACH;IACE;;;;MAIC;IAED,qGAGE;IAEF,+CAiBC;IAED;;;;;;;OAOG;IAEH;QANiD,OAAO,EAA7C,MAAM,GAAG,IAAI,GAAG,cAAc;QAChB,IAAI;QACD,SAAS;uCAMpC;IASG,gCAA4C;IAK1C,kCAIQ;IAFN,gCAAgC;IAChC,iGAAsB;IAQ9B,+
|
|
1
|
+
{"version":3,"file":"LionValidationFeedback.d.ts","sourceRoot":"","sources":["../../../../../components/form-core/src/validate/LionValidationFeedback.js"],"names":[],"mappings":";AAeA;;;GAGG;AACH;IACE;;;;MAIC;IAED,qGAGE;IAEF,+CAiBC;IAED;;;;;;;OAOG;IAEH;QANiD,OAAO,EAA7C,MAAM,GAAG,IAAI,GAAG,cAAc;QAChB,IAAI;QACD,SAAS;uCAMpC;IASG,gCAA4C;IAK1C,kCAIQ;IAFN,gCAAgC;IAChC,iGAAsB;IAQ9B,+CAcC;CACF;wBAhGY,OAAO,gBAAgB,EAAE,SAAS;6BAClC,OAAO,KAAK,EAAE,cAAc;8BAC5B,OAAO,4CAA4C,EAAE,eAAe"}
|
|
@@ -5,15 +5,15 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @param {LionForm} formGroupEl
|
|
7
7
|
*/
|
|
8
|
-
export function getAllFormElements(formGroupEl: LionForm): any
|
|
8
|
+
export function getAllFormElements(formGroupEl: LionForm): any;
|
|
9
9
|
/**
|
|
10
10
|
* @param {LionForm} formGroupEl
|
|
11
11
|
*/
|
|
12
|
-
export function getAllTagNames(formGroupEl: LionForm): any
|
|
12
|
+
export function getAllTagNames(formGroupEl: LionForm): any;
|
|
13
13
|
/**
|
|
14
14
|
* @param {LionForm} formGroupEl
|
|
15
15
|
*/
|
|
16
|
-
export function getAllFieldsAndFormGroups(formGroupEl: LionForm): any
|
|
16
|
+
export function getAllFieldsAndFormGroups(formGroupEl: LionForm): any;
|
|
17
17
|
export type LionForm = import('../../../form/src/LionForm.js').LionForm;
|
|
18
18
|
export type LionField = import('../../../form-core/src/LionField.js').LionField;
|
|
19
19
|
//# sourceMappingURL=helpers.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../../../components/form-integrations/test/helpers/helpers.js"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;GAEG;AACH,gDAFW,QAAQ,
|
|
1
|
+
{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../../../components/form-integrations/test/helpers/helpers.js"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;GAEG;AACH,gDAFW,QAAQ,OAWlB;AAED;;GAEG;AACH,4CAFW,QAAQ,OAWlB;AAED;;GAEG;AACH,uDAFW,QAAQ,OAKlB;uBAtCY,OAAO,+BAA+B,EAAE,QAAQ;wBAChD,OAAO,qCAAqC,EAAE,SAAS"}
|
|
@@ -29,6 +29,11 @@ export class LionIcon extends LitElement {
|
|
|
29
29
|
};
|
|
30
30
|
};
|
|
31
31
|
static get styles(): import("lit").CSSResult[];
|
|
32
|
+
/**
|
|
33
|
+
* TODO: check if this is a false positive or if we can improve
|
|
34
|
+
* @configure ReactiveElement
|
|
35
|
+
*/
|
|
36
|
+
static enabledWarnings: import("lit").WarningKind[];
|
|
32
37
|
ariaLabel: string;
|
|
33
38
|
iconId: string;
|
|
34
39
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LionIcon.d.ts","sourceRoot":"","sources":["../../../../components/icon/src/LionIcon.js"],"names":[],"mappings":"AA6BA;;GAEG;AACH;IACE;QAEI;;;WAGG;;;;QAIH;;;WAGG;;;;;;QAMH;;;WAGG;;;;;MAMN;IAED,+CA6BC;
|
|
1
|
+
{"version":3,"file":"LionIcon.d.ts","sourceRoot":"","sources":["../../../../components/icon/src/LionIcon.js"],"names":[],"mappings":"AA6BA;;GAEG;AACH;IACE;QAEI;;;WAGG;;;;QAIH;;;WAGG;;;;;;QAMH;;;WAGG;;;;;MAMN;IAED,+CA6BC;IAaD;;;OAGG;IACH,oDAA4F;IAb1F,kBAAmB;IACnB,eAAgB;IAChB;;;OAGG;IACH,cAAoB;IAqBtB,+CAEC;IASD;;;;OAIG;IACH,0FAOC;IAED;;OAEG;IACH,uFAEC;IAED,iBAAiB;IACjB,kCAOC;IAED;;;OAGG;IACH,gCAHW,cAAc,iBAAU,QASlC;IAED,iBAAiB;IAEjB,kCAEC;IAED;;;OAGG;IACH,uCAHW,MAAM,iBAyBhB;CACF;6BA5MY,OAAO,KAAK,EAAE,cAAc;0CACZ,oBAAoB,WAAY,MAAM,EAAE,KAAK,MAAM,KAAK,MAAM"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare const LionInputDatepicker_base: typeof LionInputDate & import("@open-wc/dedupe-mixin").Constructor<import("../../localize/types/LocalizeMixinTypes.js").LocalizeMixinHost> & Pick<typeof import("../../localize/types/LocalizeMixinTypes.js").LocalizeMixinHost, "prototype" | "localizeNamespaces" | "waitForLocalizeNamespaces"> & Pick<typeof import("lit").LitElement, typeof Symbol.metadata | "prototype" | "_$litElement$" | "enabledWarnings" | "enableWarning" | "disableWarning" | "addInitializer" | "_initializers" | "elementProperties" | "properties" | "elementStyles" | "styles" | "observedAttributes" | "createProperty" | "getPropertyOptions" | "shadowRootOptions"> & import("@open-wc/dedupe-mixin").Constructor<import("../../overlays/types/OverlayMixinTypes.js").OverlayHost> & Pick<typeof import("../../overlays/types/OverlayMixinTypes.js").OverlayHost, "prototype"> & import("@open-wc/dedupe-mixin").Constructor<import("../../overlays/types/ArrowMixinTypes.js").ArrowHost> & Pick<typeof import("../../overlays/types/ArrowMixinTypes.js").ArrowHost, "prototype" | "properties" | "styles"> & import("
|
|
1
|
+
declare const LionInputDatepicker_base: typeof LionInputDate & import("@open-wc/dedupe-mixin").Constructor<import("../../localize/types/LocalizeMixinTypes.js").LocalizeMixinHost> & Pick<typeof import("../../localize/types/LocalizeMixinTypes.js").LocalizeMixinHost, "prototype" | "localizeNamespaces" | "waitForLocalizeNamespaces"> & Pick<typeof import("lit").LitElement, typeof Symbol.metadata | "prototype" | "_$litElement$" | "enabledWarnings" | "enableWarning" | "disableWarning" | "addInitializer" | "_initializers" | "elementProperties" | "properties" | "elementStyles" | "styles" | "observedAttributes" | "createProperty" | "getPropertyOptions" | "shadowRootOptions"> & import("@open-wc/dedupe-mixin").Constructor<import("../../overlays/types/OverlayMixinTypes.js").OverlayHost> & Pick<typeof import("../../overlays/types/OverlayMixinTypes.js").OverlayHost, "prototype"> & import("@open-wc/dedupe-mixin").Constructor<import("../../overlays/types/ArrowMixinTypes.js").ArrowHost> & Pick<typeof import("../../overlays/types/ArrowMixinTypes.js").ArrowHost, "prototype" | "properties" | "styles"> & import("@open-wc/dedupe-mixin").Constructor<import("../../../../../node_modules/@open-wc/scoped-elements/types.js").ScopedElementsHost> & import("../../core/src/types.js").ScopedElementsHostV2Constructor;
|
|
2
2
|
/**
|
|
3
3
|
* @typedef {import('../../form-core/src/validate/Validator.js').Validator} Validator
|
|
4
4
|
* @typedef {import('lit').RenderOptions} RenderOptions
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare const LionInputFile_base: typeof LionField & import("@open-wc/dedupe-mixin").Constructor<import("../../localize/types/LocalizeMixinTypes.js").LocalizeMixinHost> & Pick<typeof import("../../localize/types/LocalizeMixinTypes.js").LocalizeMixinHost, "prototype" | "localizeNamespaces" | "waitForLocalizeNamespaces"> & Pick<typeof import("lit").LitElement, typeof Symbol.metadata | "prototype" | "_$litElement$" | "enabledWarnings" | "enableWarning" | "disableWarning" | "addInitializer" | "_initializers" | "elementProperties" | "properties" | "elementStyles" | "styles" | "observedAttributes" | "createProperty" | "getPropertyOptions" | "shadowRootOptions"> & import("
|
|
1
|
+
declare const LionInputFile_base: typeof LionField & import("@open-wc/dedupe-mixin").Constructor<import("../../localize/types/LocalizeMixinTypes.js").LocalizeMixinHost> & Pick<typeof import("../../localize/types/LocalizeMixinTypes.js").LocalizeMixinHost, "prototype" | "localizeNamespaces" | "waitForLocalizeNamespaces"> & Pick<typeof import("lit").LitElement, typeof Symbol.metadata | "prototype" | "_$litElement$" | "enabledWarnings" | "enableWarning" | "disableWarning" | "addInitializer" | "_initializers" | "elementProperties" | "properties" | "elementStyles" | "styles" | "observedAttributes" | "createProperty" | "getPropertyOptions" | "shadowRootOptions"> & import("@open-wc/dedupe-mixin").Constructor<import("../../../../../node_modules/@open-wc/scoped-elements/types.js").ScopedElementsHost> & import("../../core/src/types.js").ScopedElementsHostV2Constructor;
|
|
2
2
|
export class LionInputFile extends LionInputFile_base {
|
|
3
3
|
static get scopedElements(): {
|
|
4
4
|
'lion-selected-file-list': typeof LionSelectedFileList;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare const LionSelectedFileList_base: typeof LitElement & import("
|
|
1
|
+
declare const LionSelectedFileList_base: typeof LitElement & import("@open-wc/dedupe-mixin").Constructor<import("../../../../../node_modules/@open-wc/scoped-elements/types.js").ScopedElementsHost> & import("../../core/src/types.js").ScopedElementsHostV2Constructor & import("@open-wc/dedupe-mixin").Constructor<import("../../localize/types/LocalizeMixinTypes.js").LocalizeMixinHost> & Pick<typeof import("../../localize/types/LocalizeMixinTypes.js").LocalizeMixinHost, "prototype" | "localizeNamespaces" | "waitForLocalizeNamespaces"> & Pick<typeof LitElement, typeof Symbol.metadata | "prototype" | "_$litElement$" | "enabledWarnings" | "enableWarning" | "disableWarning" | "addInitializer" | "_initializers" | "elementProperties" | "properties" | "elementStyles" | "styles" | "observedAttributes" | "createProperty" | "getPropertyOptions" | "shadowRootOptions">;
|
|
2
2
|
/**
|
|
3
3
|
* @typedef {import('lit').TemplateResult} TemplateResult
|
|
4
4
|
* @typedef {import('../types/input-file.js').InputFile} InputFile
|
|
@@ -1,110 +1,71 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @typedef {import('../types/LocalizeMixinTypes.js').NamespaceObject} NamespaceObject
|
|
3
|
-
*/
|
|
4
|
-
/** @typedef {import('../types/LocalizeMixinTypes.js').DatePostProcessor} DatePostProcessor */
|
|
5
|
-
/** @typedef {import('../types/LocalizeMixinTypes.js').NumberPostProcessor} NumberPostProcessor */
|
|
6
1
|
/**
|
|
7
2
|
* `LocalizeManager` manages your translations (includes loading)
|
|
8
3
|
*/
|
|
9
4
|
export class LocalizeManager extends EventTarget {
|
|
10
|
-
constructor({
|
|
5
|
+
constructor({ allowOverridesForExistingNamespaces, autoLoadOnLocaleChange, showKeyAsFallback, fallbackLocale, }?: {
|
|
6
|
+
allowOverridesForExistingNamespaces?: boolean | undefined;
|
|
11
7
|
autoLoadOnLocaleChange?: boolean | undefined;
|
|
12
|
-
fallbackLocale?: string | undefined;
|
|
13
8
|
showKeyAsFallback?: boolean | undefined;
|
|
14
|
-
|
|
9
|
+
fallbackLocale?: string | undefined;
|
|
15
10
|
});
|
|
16
|
-
/** @protected */
|
|
17
|
-
protected _autoLoadOnLocaleChange: boolean;
|
|
18
|
-
/** @protected */
|
|
19
|
-
protected _fallbackLocale: string;
|
|
20
|
-
/** @protected */
|
|
21
|
-
protected _showKeyAsFallback: boolean;
|
|
22
|
-
/** @private */
|
|
23
|
-
private __allowOverridesForExistingNamespaces;
|
|
24
11
|
/**
|
|
25
|
-
*
|
|
12
|
+
* The localize system uses (normalized) Intl for formatting numbers.
|
|
13
|
+
* It's possible to customize this output per locale
|
|
14
|
+
*/
|
|
15
|
+
formatNumberOptions: {
|
|
16
|
+
returnIfNaN: string;
|
|
17
|
+
/** @type {Map<string, NumberPostProcessor>} */
|
|
18
|
+
postProcessors: Map<string, NumberPostProcessor>;
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* The localize system uses (normalized) Intl for formatting dates.
|
|
22
|
+
* It's possible to customize this output per locale
|
|
23
|
+
*/
|
|
24
|
+
formatDateOptions: {
|
|
25
|
+
/** @type {Map<string, DatePostProcessor>} */
|
|
26
|
+
postProcessors: Map<string, DatePostProcessor>;
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* @type {Object<string, Object<string, Object>>}
|
|
26
30
|
* @private
|
|
27
31
|
*/
|
|
28
32
|
private __storage;
|
|
29
33
|
/**
|
|
30
|
-
* @type {Map
|
|
34
|
+
* @type {Map<RegExp|string, function>}
|
|
31
35
|
* @private
|
|
32
36
|
*/
|
|
33
37
|
private __namespacePatternsMap;
|
|
34
38
|
/**
|
|
35
|
-
* @type {Object
|
|
39
|
+
* @type {Object<string, function|null>}
|
|
36
40
|
* @private
|
|
37
41
|
*/
|
|
38
42
|
private __namespaceLoadersCache;
|
|
39
43
|
/**
|
|
40
|
-
* @type {Object
|
|
44
|
+
* @type {Object<string, Object<string, Promise<Object|void>>>}
|
|
41
45
|
* @private
|
|
42
46
|
*/
|
|
43
47
|
private __namespaceLoaderPromisesCache;
|
|
44
|
-
formatNumberOptions: {
|
|
45
|
-
returnIfNaN: string;
|
|
46
|
-
/** @type {Map<string,DatePostProcessor>} */
|
|
47
|
-
postProcessors: Map<string, DatePostProcessor>;
|
|
48
|
-
};
|
|
49
|
-
formatDateOptions: {
|
|
50
|
-
/** @type {Map<string,DatePostProcessor>} */
|
|
51
|
-
postProcessors: Map<string, DatePostProcessor>;
|
|
52
|
-
};
|
|
53
|
-
/** @protected */
|
|
54
|
-
protected _supportExternalTranslationTools: boolean;
|
|
55
48
|
/**
|
|
56
|
-
* @param {string}
|
|
49
|
+
* @param {string} newLocale
|
|
57
50
|
*/
|
|
58
51
|
set locale(arg: string);
|
|
59
52
|
/**
|
|
60
53
|
* @returns {string}
|
|
61
54
|
*/
|
|
62
55
|
get locale(): string;
|
|
63
|
-
/** @protected */
|
|
64
|
-
protected _setupTranslationToolSupport(): void;
|
|
65
|
-
/**
|
|
66
|
-
* This value allows for support for Google Translate (or other 3rd parties taking control
|
|
67
|
-
* of the html[lang] attribute).
|
|
68
|
-
*
|
|
69
|
-
* Have the following scenario in mind:
|
|
70
|
-
* 1. locale is initialized by developer via html[data-localize-lang="en-US"] and
|
|
71
|
-
* html[lang="en-US"]. When localize is loaded (note that this also can be after step 2 below),
|
|
72
|
-
* it will sync its initial state from html[data-localize-lang]
|
|
73
|
-
* 2. Google Translate kicks in for the French language. It will set html[lang="fr"].
|
|
74
|
-
* This new language is not one known by us, so we most likely don't have translations for
|
|
75
|
-
* this file. Therefore, we do NOT sync this value to LocalizeManager. The manager should
|
|
76
|
-
* still ask for known resources (in this case for locale 'en-US')
|
|
77
|
-
* 3. locale is changed (think of a language dropdown)
|
|
78
|
-
* It's a bit of a weird case, because we would not expect an end user to do this. If he/she
|
|
79
|
-
* does, make sure that we do not go against Google Translate, so we maintain accessibility
|
|
80
|
-
* (by not altering html[lang]). We detect this by reading _langAttrSetByTranslationTool:
|
|
81
|
-
* when its value is null, we consider Google translate 'not active'.
|
|
82
|
-
*
|
|
83
|
-
* When Google Translate is turned off by the user (html[lang=auto]),
|
|
84
|
-
* `localize.locale` will be synced to html[lang] again
|
|
85
|
-
*
|
|
86
|
-
* Keep in mind that all of the above also works with other tools than Google Translate,
|
|
87
|
-
* but this is the most widely used tool and therefore used as an example.
|
|
88
|
-
*/
|
|
89
|
-
_langAttrSetByTranslationTool: string | null | undefined;
|
|
90
|
-
teardown(): void;
|
|
91
|
-
__locale: string | undefined;
|
|
92
|
-
/**
|
|
93
|
-
* @param {string} locale
|
|
94
|
-
* @protected
|
|
95
|
-
*/
|
|
96
|
-
protected _setHtmlLangAttribute(locale: string): void;
|
|
97
56
|
/**
|
|
98
|
-
* @
|
|
99
|
-
* @
|
|
100
|
-
* @private
|
|
57
|
+
* @readonly
|
|
58
|
+
* @returns {Promise<Object|void>}
|
|
101
59
|
*/
|
|
102
|
-
|
|
103
|
-
/**
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
60
|
+
readonly get loadingComplete(): Promise<void | Object>;
|
|
61
|
+
/** @private */
|
|
62
|
+
private __allowOverridesForExistingNamespaces;
|
|
63
|
+
/** @protected */
|
|
64
|
+
protected _autoLoadOnLocaleChange: boolean;
|
|
65
|
+
/** @protected */
|
|
66
|
+
protected _showKeyAsFallback: boolean;
|
|
67
|
+
/** @protected */
|
|
68
|
+
protected _fallbackLocale: string;
|
|
108
69
|
/**
|
|
109
70
|
* @param {string} locale
|
|
110
71
|
* @param {string} namespace
|
|
@@ -122,7 +83,7 @@ export class LocalizeManager extends EventTarget {
|
|
|
122
83
|
* @param {NamespaceObject[]} namespaces
|
|
123
84
|
* @param {Object} options
|
|
124
85
|
* @param {string} [options.locale]
|
|
125
|
-
* @returns {Promise
|
|
86
|
+
* @returns {Promise<Object>}
|
|
126
87
|
*/
|
|
127
88
|
loadNamespaces(namespaces: NamespaceObject[], { locale }?: {
|
|
128
89
|
locale?: string | undefined;
|
|
@@ -131,14 +92,14 @@ export class LocalizeManager extends EventTarget {
|
|
|
131
92
|
* @param {NamespaceObject} namespaceObj
|
|
132
93
|
* @param {Object} options
|
|
133
94
|
* @param {string} [options.locale]
|
|
134
|
-
* @returns {Promise
|
|
95
|
+
* @returns {Promise<Object|void>}
|
|
135
96
|
*/
|
|
136
97
|
loadNamespace(namespaceObj: NamespaceObject, { locale }?: {
|
|
137
98
|
locale?: string | undefined;
|
|
138
99
|
}): Promise<Object | void>;
|
|
139
100
|
/**
|
|
140
101
|
* @param {string | string[]} keys
|
|
141
|
-
* @param {Object
|
|
102
|
+
* @param {Object<string,?>} [vars]
|
|
142
103
|
* @param {Object} [opts]
|
|
143
104
|
* @param {string} [opts.locale]
|
|
144
105
|
* @returns {string}
|
|
@@ -148,6 +109,53 @@ export class LocalizeManager extends EventTarget {
|
|
|
148
109
|
} | undefined, opts?: {
|
|
149
110
|
locale?: string | undefined;
|
|
150
111
|
} | undefined): string;
|
|
112
|
+
teardown(): void;
|
|
113
|
+
reset(): void;
|
|
114
|
+
/**
|
|
115
|
+
* @param {{locale:string, postProcessor:DatePostProcessor}} options
|
|
116
|
+
*/
|
|
117
|
+
setDatePostProcessorForLocale({ locale, postProcessor }: {
|
|
118
|
+
locale: string;
|
|
119
|
+
postProcessor: DatePostProcessor;
|
|
120
|
+
}): void;
|
|
121
|
+
/**
|
|
122
|
+
* @param {{locale:string, postProcessor:NumberPostProcessor}} options
|
|
123
|
+
*/
|
|
124
|
+
setNumberPostProcessorForLocale({ locale, postProcessor }: {
|
|
125
|
+
locale: string;
|
|
126
|
+
postProcessor: NumberPostProcessor;
|
|
127
|
+
}): void;
|
|
128
|
+
/**
|
|
129
|
+
* This value allows for support for Google Translate (or other 3rd parties taking control
|
|
130
|
+
* of the html[lang] attribute).
|
|
131
|
+
*
|
|
132
|
+
* Have the following scenario in mind:
|
|
133
|
+
* 1. locale is initialized by developer via html[data-localize-lang="en-US"] and
|
|
134
|
+
* html[lang="en-US"]. When localize is loaded (note that this also can be after step 2 below),
|
|
135
|
+
* it will sync its initial state from html[data-localize-lang]
|
|
136
|
+
* 2. Google Translate kicks in for the French language. It will set html[lang="fr"].
|
|
137
|
+
* This new language is not one known by us, so we most likely don't have translations for
|
|
138
|
+
* this file. Therefore, we do NOT sync this value to LocalizeManager. The manager should
|
|
139
|
+
* still ask for known resources (in this case for locale 'en-US')
|
|
140
|
+
* 3. locale is changed (think of a language dropdown)
|
|
141
|
+
* It's a bit of a weird case, because we would not expect an end user to do this. If he/she
|
|
142
|
+
* does, make sure that we do not go against Google Translate, so we maintain accessibility
|
|
143
|
+
* (by not altering html[lang]). We detect this by reading #localeSetByTranslationTool:
|
|
144
|
+
* when its value is null, we consider Google translate 'not active'.
|
|
145
|
+
*
|
|
146
|
+
* When Google Translate is turned off by the user (html[lang=auto]),
|
|
147
|
+
* `localize.locale` will be synced to html[lang] again
|
|
148
|
+
*
|
|
149
|
+
* Keep in mind that all of the above also works with other tools than Google Translate,
|
|
150
|
+
* but this is the most widely used tool and therefore used as an example.
|
|
151
|
+
* @protected
|
|
152
|
+
*/
|
|
153
|
+
protected _setupTranslationToolSupport(): void;
|
|
154
|
+
/**
|
|
155
|
+
* @param {string} locale
|
|
156
|
+
* @protected
|
|
157
|
+
*/
|
|
158
|
+
protected _setHtmlLangAttribute(locale: string): void;
|
|
151
159
|
/** @protected */
|
|
152
160
|
protected _setupHtmlLangAttributeObserver(): void;
|
|
153
161
|
_htmlLangAttributeObserver: MutationObserver | undefined;
|
|
@@ -170,7 +178,7 @@ export class LocalizeManager extends EventTarget {
|
|
|
170
178
|
* @param {NamespaceObject} namespaceObj
|
|
171
179
|
* @param {boolean} isDynamicImport
|
|
172
180
|
* @param {string} namespace
|
|
173
|
-
* @returns {Promise
|
|
181
|
+
* @returns {Promise<Object|void>}
|
|
174
182
|
* @protected
|
|
175
183
|
*/
|
|
176
184
|
protected _loadNamespaceData(locale: string, namespaceObj: NamespaceObject, isDynamicImport: boolean, namespace: string): Promise<Object | void>;
|
|
@@ -187,7 +195,7 @@ export class LocalizeManager extends EventTarget {
|
|
|
187
195
|
* @param {string} locale
|
|
188
196
|
* @param {string} namespace
|
|
189
197
|
* @param {string} [fallbackLocale]
|
|
190
|
-
* @returns {Promise
|
|
198
|
+
* @returns {Promise<any>}
|
|
191
199
|
* @throws {Error} Data for namespace and (locale or fallback locale) could not be loaded.
|
|
192
200
|
* @protected
|
|
193
201
|
*/
|
|
@@ -195,7 +203,7 @@ export class LocalizeManager extends EventTarget {
|
|
|
195
203
|
/**
|
|
196
204
|
* @param {string} locale
|
|
197
205
|
* @param {string} namespace
|
|
198
|
-
* @param {Promise
|
|
206
|
+
* @param {Promise<Object|void>} promise
|
|
199
207
|
* @protected
|
|
200
208
|
*/
|
|
201
209
|
protected _cacheNamespaceLoaderPromise(locale: string, namespace: string, promise: Promise<Object | void>): void;
|
|
@@ -241,21 +249,28 @@ export class LocalizeManager extends EventTarget {
|
|
|
241
249
|
*/
|
|
242
250
|
protected _getMessageForKey(key: string | undefined, locale: string): string;
|
|
243
251
|
/**
|
|
244
|
-
* @
|
|
252
|
+
* @deprecated
|
|
253
|
+
* @protected
|
|
245
254
|
*/
|
|
246
|
-
|
|
247
|
-
locale: string;
|
|
248
|
-
postProcessor: DatePostProcessor;
|
|
249
|
-
}): void;
|
|
255
|
+
protected set _supportExternalTranslationTools(arg: boolean);
|
|
250
256
|
/**
|
|
251
|
-
* @
|
|
257
|
+
* @deprecated
|
|
258
|
+
* @protected
|
|
252
259
|
*/
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
260
|
+
protected get _supportExternalTranslationTools(): boolean;
|
|
261
|
+
/**
|
|
262
|
+
* @deprecated
|
|
263
|
+
* @protected
|
|
264
|
+
*/
|
|
265
|
+
protected set _langAttrSetByTranslationTool(arg: string);
|
|
266
|
+
/**
|
|
267
|
+
* @deprecated
|
|
268
|
+
* @protected
|
|
269
|
+
*/
|
|
270
|
+
protected get _langAttrSetByTranslationTool(): string;
|
|
271
|
+
#private;
|
|
257
272
|
}
|
|
258
|
-
export type NamespaceObject = import('../types/LocalizeMixinTypes.js').NamespaceObject;
|
|
259
|
-
export type DatePostProcessor = import('../types/LocalizeMixinTypes.js').DatePostProcessor;
|
|
260
273
|
export type NumberPostProcessor = import('../types/LocalizeMixinTypes.js').NumberPostProcessor;
|
|
274
|
+
export type DatePostProcessor = import('../types/LocalizeMixinTypes.js').DatePostProcessor;
|
|
275
|
+
export type NamespaceObject = import('../types/LocalizeMixinTypes.js').NamespaceObject;
|
|
261
276
|
//# sourceMappingURL=LocalizeManager.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LocalizeManager.d.ts","sourceRoot":"","sources":["../../../../components/localize/src/LocalizeManager.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"LocalizeManager.d.ts","sourceRoot":"","sources":["../../../../components/localize/src/LocalizeManager.js"],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ArBG,yDAcE;IASN,iBAAiB;IACjB,qDAIC;IAED;;;;OAIG;IACH,sCAJW,MAAM,aACN,MAAM,WAKhB;IAED;;;;OAIG;IACH,mDAJW,MAAM,aACN,MAAM,iCAQhB;IAED;;;;;;;OAOG;IACH,qCAPW,MAAM,gBACN,eAAe,mBACf,OAAO,aACP,MAAM,GACJ,QAAQ,MAAM,GAAC,IAAI,CAAC,CAuBhC;IAED;;;;;;OAMG;IACH,4CANW,eAAe,mBACf,OAAO,aACP,MAAM,YAwBhB;IAED;;;;;;;;OAQG;IACH,+DAPW,MAAM,aACN,MAAM,wCAEJ,QAAQ,GAAG,CAAC,CAyBxB;IAED;;;;;OAKG;IACH,+CALW,MAAM,aACN,MAAM,WACN,QAAQ,MAAM,GAAC,IAAI,CAAC,QAQ9B;IAED;;;;OAIG;IACH,4CAJW,MAAM,GACJ,WAAS,IAAI,CAezB;IAED;;;;OAIG;IAEH,qCALW,MAAM,GACJ,MAAM,CAMlB;IAED;;;;;OAKG;IACH,sCALW,MAAM,aACN,MAAM,GACJ,SAAS,CAgBrB;IAED;;;;OAIG;IACH,qCAJW,MAAM,aACN,MAAM,QAchB;IAED;;;;;OAKG;IACH,mCALW,MAAM,GAAG,MAAM,EAAE,UACjB,MAAM,GACJ,MAAM,GAAG,SAAS,CAkB9B;IAED;;;;;;;OAOG;IACH,iCAPW,MAAM,GAAG,SAAS,UAClB,MAAM,GACJ,MAAM,CA0BlB;IA2BD;;;OAGG;IACH,6DAEC;IAdD;;;OAGG;IACH,0DAEC;IAkBD;;;OAGG;IACH,yDAEC;IAdD;;;OAGG;IACH,sDAEC;;CASF;kCAtpBY,OAAO,gCAAgC,EAAE,mBAAmB;gCAC5D,OAAO,gCAAgC,EAAE,iBAAiB;8BAC1D,OAAO,gCAAgC,EAAE,eAAe"}
|
|
@@ -31,8 +31,11 @@ export class OverlayController extends EventTarget {
|
|
|
31
31
|
private __hasActiveTrapsKeyboardFocus;
|
|
32
32
|
/** @private */
|
|
33
33
|
private __hasActiveBackdrop;
|
|
34
|
-
/**
|
|
35
|
-
|
|
34
|
+
/**
|
|
35
|
+
* @param {KeyboardEvent} event
|
|
36
|
+
* @returns {void}
|
|
37
|
+
*/
|
|
38
|
+
__escKeyHandler(event: KeyboardEvent): void;
|
|
36
39
|
/**
|
|
37
40
|
* When the overlay is a modal dialog hidesOnEsc works out of the box, so we prevent that.
|
|
38
41
|
*
|
|
@@ -434,17 +437,18 @@ export class OverlayController extends EventTarget {
|
|
|
434
437
|
private __createPopperInstance;
|
|
435
438
|
_popper: any;
|
|
436
439
|
_hasDisabledInvoker(): boolean;
|
|
440
|
+
#private;
|
|
437
441
|
}
|
|
438
442
|
export namespace OverlayController {
|
|
439
443
|
const popperModule: Promise<PopperModule> | undefined;
|
|
440
444
|
}
|
|
441
|
-
export type
|
|
445
|
+
export type OverlayPhase = 'setup' | 'init' | 'teardown' | 'before-show' | 'show' | 'hide' | 'add' | 'remove';
|
|
442
446
|
export type ViewportConfig = import('@lion/ui/types/overlays.js').ViewportConfig;
|
|
443
|
-
export type
|
|
447
|
+
export type OverlayConfig = import('@lion/ui/types/overlays.js').OverlayConfig;
|
|
444
448
|
export type PopperOptions = import('@popperjs/core').Options;
|
|
445
449
|
export type Placement = import('@popperjs/core').Placement;
|
|
450
|
+
export type Popper = any;
|
|
446
451
|
export type PopperModule = {
|
|
447
452
|
createPopper: Popper;
|
|
448
453
|
};
|
|
449
|
-
export type OverlayPhase = 'setup' | 'init' | 'teardown' | 'before-show' | 'show' | 'hide' | 'add' | 'remove';
|
|
450
454
|
//# sourceMappingURL=OverlayController.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OverlayController.d.ts","sourceRoot":"","sources":["../../../../components/overlays/src/OverlayController.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"OverlayController.d.ts","sourceRoot":"","sources":["../../../../components/overlays/src/OverlayController.js"],"names":[],"mappings":"AA4GA;;;;;GAKG;AACH;IACE;;;;O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AED,iBAAiB;IACjB,gDAkBC;IAED;;;OAGG;IACH;eAHoB,YAAY;aAyF/B;IA7DG,iDAAiD;IACjD,oEAGC;IAED,4CAGC;IAED,iDAAiD;IACjD,oEAYC;IAuCL;;;OAGG;IACH;eAHoB,YAAY;aAW/B;IAED,iBAIC;IAED,eAAe;IACf,+BAYC;IATG,aAAwB;IAW5B,+BAQC;;CACF;;wBACU,QAAQ,YAAY,CAAC,GAAG,SAAS;;2BAn1C/B,OAAO,GAAC,MAAM,GAAC,UAAU,GAAC,aAAa,GAAC,MAAM,GAAC,MAAM,GAAC,KAAK,GAAC,QAAQ;6BACpE,OAAO,4BAA4B,EAAE,cAAc;4BACnD,OAAO,4BAA4B,EAAE,aAAa;4BAClD,OAAO,gBAAgB,EAAE,OAAO;wBAChC,OAAO,gBAAgB,EAAE,SAAS;;2BAElC;IAAE,YAAY,EAAE,MAAM,CAAA;CAAE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OverlayMixin.d.ts","sourceRoot":"","sources":["../../../../components/overlays/src/OverlayMixin.js"],"names":[],"mappings":"AAIA;;;;GAIG;AAEH;;;GAGG;AACH,yCAHU,YAAY,
|
|
1
|
+
{"version":3,"file":"OverlayMixin.d.ts","sourceRoot":"","sources":["../../../../components/overlays/src/OverlayMixin.js"],"names":[],"mappings":"AAIA;;;;GAIG;AAEH;;;GAGG;AACH,yCAHU,YAAY,CA0XlB;2BA9XS,OAAO,+BAA+B,EAAE,YAAY;AA+XjE,gGAAoE;4BAjYvD,OAAO,2BAA2B,EAAE,aAAa;kCACjD,OAAO,+BAA+B,EAAE,mBAAmB"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export type OverlayConfig = import('../types/OverlayConfig.js').OverlayConfig;
|
|
2
1
|
export type ViewportPlacement = import('../types/OverlayConfig.js').ViewportPlacement;
|
|
2
|
+
export type OverlayConfig = import('../types/OverlayConfig.js').OverlayConfig;
|
|
3
3
|
//# sourceMappingURL=OverlayController.test.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OverlayController.test.d.ts","sourceRoot":"","sources":["../../../../components/overlays/test/OverlayController.test.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"OverlayController.test.d.ts","sourceRoot":"","sources":["../../../../components/overlays/test/OverlayController.test.js"],"names":[],"mappings":"gCAoBa,OAAO,2BAA2B,EAAE,iBAAiB;4BACrD,OAAO,2BAA2B,EAAE,aAAa"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @param {HTMLElement} el
|
|
3
|
-
* @param {{isAsync?:boolean, releaseElement?: HTMLElement}} config
|
|
3
|
+
* @param {{isAsync?:boolean, releaseElement?: HTMLElement}} config releaseElement can be different when the mouse is dragged before release
|
|
4
4
|
*/
|
|
5
5
|
export function mimicClick(el: HTMLElement, { isAsync, releaseElement }?: {
|
|
6
6
|
isAsync?: boolean;
|
|
@@ -25,6 +25,11 @@ export class LionProgressIndicator extends LionProgressIndicator_base {
|
|
|
25
25
|
static get localizeNamespaces(): {
|
|
26
26
|
'lion-progress-indicator': (locale: string) => Promise<typeof import("../translations/bg.js")>;
|
|
27
27
|
}[];
|
|
28
|
+
/**
|
|
29
|
+
* // TODO: check if this is a false positive or if we can improve
|
|
30
|
+
* @configure ReactiveElement
|
|
31
|
+
*/
|
|
32
|
+
static enabledWarnings: import("lit").WarningKind[];
|
|
28
33
|
/**
|
|
29
34
|
* @readonly
|
|
30
35
|
* @type {boolean}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LionProgressIndicator.d.ts","sourceRoot":"","sources":["../../../../components/progress-indicator/src/LionProgressIndicator.js"],"names":[],"mappings":";AAIA;;GAEG;AACH;IACE;;;;;;;;;;;;;;;;;;MAcC;IAED;4CAG6C,MAAM;QA0DlD;
|
|
1
|
+
{"version":3,"file":"LionProgressIndicator.d.ts","sourceRoot":"","sources":["../../../../components/progress-indicator/src/LionProgressIndicator.js"],"names":[],"mappings":";AAIA;;GAEG;AACH;IACE;;;;;;;;;;;;;;;;;;MAcC;IAED;4CAG6C,MAAM;QA0DlD;IAUD;;;OAGG;IACH,oDAA4F;IAZ5F;;;OAGG;IACH,sCAEC;IAQD;;;;;;;OAOG;IACH,8CAKC;IAIC,cAAc;IACd,YAAY;IACZ,YAAc;IACd,mBAAoB;IACpB,wBAAyB;IACzB,8BAAiC;IAGnC,iBAAiB;IAEjB,qCAEC;IAED,iBAEC;IAED,0BAGC;IAyDD,kCAIC;IAED,yBAQC;CACF;6BA9MY,OAAO,KAAK,EAAE,cAAc"}
|