@lion/ui 0.1.0 → 0.1.1
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 +2 -3
- package/components/calendar/test/lion-calendar.test.js +5 -3
- package/components/form-core/src/validate/ValidateMixin.js +7 -3
- package/components/form-core/src/validate/validators/DateValidators.js +1 -1
- package/components/form-core/test/lion-field.test.js +4 -2
- package/components/form-core/test/validate/DateValidators.test.js +1 -1
- package/components/form-core/test-suites/FormatMixin.suite.js +1 -1
- package/components/form-core/test-suites/ValidateMixinFeedbackPart.suite.js +6 -4
- package/components/form-integrations/test/form-validation-integrations.test.js +11 -10
- package/components/input-amount/src/LionInputAmount.js +2 -2
- package/components/input-amount/src/formatters.js +5 -1
- package/components/input-amount/src/parsers.js +1 -1
- package/components/input-amount/test/formatters.test.js +5 -3
- package/components/input-date/src/LionInputDate.js +1 -1
- package/components/input-date/test/lion-input-date.test.js +91 -43
- package/components/input-datepicker/src/LionInputDatepicker.js +1 -1
- package/components/input-email/src/LionInputEmail.js +1 -1
- package/components/input-iban/src/LionInputIban.js +1 -1
- package/components/input-iban/src/validators.js +14 -8
- package/components/input-range/src/LionInputRange.js +1 -1
- package/components/input-tel/src/LionInputTel.js +3 -3
- package/components/input-tel/test-suites/LionInputTel.suite.js +3 -2
- package/components/input-tel-dropdown/src/LionInputTelDropdown.js +7 -4
- package/components/localize/src/LocalizeMixin.js +24 -9
- package/components/localize/src/date/formatDate.js +4 -3
- package/components/localize/src/date/parseDate.js +5 -3
- package/components/localize/src/getLocalizeManager.js +74 -0
- package/components/localize/src/number/formatNumber.js +5 -4
- package/components/localize/src/number/getCurrencyName.js +3 -2
- package/components/localize/src/number/parseNumber.js +3 -2
- package/components/localize/src/number/utils/emptyStringWhenNumberNan.js +3 -2
- package/components/localize/src/singleton.js +6 -9
- package/components/localize/src/utils/getLocale.js +3 -8
- package/components/localize/test/LocalizeManager.test.js +1 -1
- package/components/localize/test/LocalizeMixin.test.js +17 -15
- package/components/localize/test/date/formatDate.test.js +25 -24
- package/components/localize/test/date/getDateFormatBasedOnLocale.test.js +8 -3
- package/components/localize/test/date/parseDate.test.js +22 -7
- package/components/localize/test/getLocalizeManager.test.js +31 -0
- package/components/localize/test/localize.test.js +5 -4
- package/components/localize/test/number/formatNumber.test.js +31 -29
- package/components/localize/test/number/formatNumberToParts.test.js +5 -3
- package/components/localize/test/number/getCurrencyName.test.js +1 -1
- package/components/localize/test/number/parseNumber.test.js +37 -19
- package/components/localize/test/side-effect-free-entrypoint.test.js +38 -0
- package/components/localize/test-helpers/localizeTearDown.js +5 -4
- package/components/localize/types/LocalizeMixinTypes.ts +8 -1
- package/components/pagination/src/LionPagination.js +1 -1
- package/components/progress-indicator/src/LionProgressIndicator.js +3 -2
- package/components/select/src/LionSelect.js +15 -0
- package/components/select/test/lion-select.test.js +25 -0
- package/components/validate-messages/src/loadDefaultFeedbackMessages.js +2 -2
- package/components/validate-messages/test/loadDefaultFeedbackMessagesNoSideEffects.js +6 -4
- package/custom-elements.json +393 -15
- package/dist-types/components/calendar/src/LionCalendar.d.ts.map +1 -1
- package/dist-types/components/form-core/src/validate/ValidateMixin.d.ts.map +1 -1
- package/dist-types/components/form-core/test-suites/ValidateMixinFeedbackPart.suite.d.ts.map +1 -1
- package/dist-types/components/input-amount/src/formatters.d.ts.map +1 -1
- package/dist-types/components/input-date/src/LionInputDate.d.ts +1 -1
- package/dist-types/components/input-iban/src/validators.d.ts.map +1 -1
- package/dist-types/components/input-tel/test-suites/LionInputTel.suite.d.ts.map +1 -1
- package/dist-types/components/input-tel-dropdown/src/LionInputTelDropdown.d.ts.map +1 -1
- package/dist-types/components/localize/src/LocalizeMixin.d.ts.map +1 -1
- package/dist-types/components/localize/src/date/formatDate.d.ts.map +1 -1
- package/dist-types/components/localize/src/date/parseDate.d.ts.map +1 -1
- package/dist-types/components/localize/src/getLocalizeManager.d.ts +60 -0
- package/dist-types/components/localize/src/getLocalizeManager.d.ts.map +1 -0
- package/dist-types/components/localize/src/number/formatNumber.d.ts.map +1 -1
- package/dist-types/components/localize/src/number/getCurrencyName.d.ts.map +1 -1
- package/dist-types/components/localize/src/number/parseNumber.d.ts.map +1 -1
- package/dist-types/components/localize/src/number/utils/emptyStringWhenNumberNan.d.ts.map +1 -1
- package/dist-types/components/localize/src/singleton.d.ts +5 -3
- package/dist-types/components/localize/src/singleton.d.ts.map +1 -1
- package/dist-types/components/localize/src/utils/getLocale.d.ts.map +1 -1
- package/dist-types/components/localize/test/getLocalizeManager.test.d.ts +2 -0
- package/dist-types/components/localize/test/getLocalizeManager.test.d.ts.map +1 -0
- package/dist-types/components/localize/test/side-effect-free-entrypoint.test.d.ts +2 -0
- package/dist-types/components/localize/test/side-effect-free-entrypoint.test.d.ts.map +1 -0
- package/dist-types/components/localize/test-helpers/localizeTearDown.d.ts.map +1 -1
- package/dist-types/components/localize/types/LocalizeMixinTypes.d.ts +2 -0
- package/dist-types/components/localize/types/LocalizeMixinTypes.d.ts.map +1 -1
- package/dist-types/components/progress-indicator/src/LionProgressIndicator.d.ts.map +1 -1
- package/dist-types/components/select/src/LionSelect.d.ts +1 -0
- package/dist-types/components/select/src/LionSelect.d.ts.map +1 -1
- package/dist-types/exports/localize-no-side-effects.d.ts +18 -0
- 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/overview.md +1 -1
- package/docs/components/input-amount/overview.md +3 -3
- package/docs/components/input-date/overview.md +3 -3
- package/docs/components/input-datepicker/overview.md +5 -5
- package/docs/components/input-email/overview.md +2 -2
- package/docs/components/input-iban/overview.md +2 -2
- package/docs/components/input-range/overview.md +2 -2
- package/docs/components/input-stepper/overview.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/overview.md +1 -1
- package/docs/components/radio-group/overview.md +3 -3
- package/docs/components/select-rich/use-cases.md +1 -1
- package/docs/components/tabs/examples.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/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 +1 -1
- package/docs/fundamentals/systems/localize/overview.md +4 -4
- 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/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/exports/localize-no-side-effects.js +19 -0
- package/package.json +1 -1
|
@@ -23,6 +23,6 @@ export class LionInputDate extends LionInputDate_base {
|
|
|
23
23
|
deserializer(serializedValue: string): Date;
|
|
24
24
|
}
|
|
25
25
|
import { LionInput } from "../../../exports/input.js";
|
|
26
|
-
import { formatDate } from "../../../exports/localize.js";
|
|
26
|
+
import { formatDate } from "../../../exports/localize-no-side-effects.js";
|
|
27
27
|
export {};
|
|
28
28
|
//# sourceMappingURL=LionInputDate.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validators.d.ts","sourceRoot":"","sources":["../../../../components/input-iban/src/validators.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"validators.d.ts","sourceRoot":"","sources":["../../../../components/input-iban/src/validators.js"],"names":[],"mappings":"AA8FA;IACE,mCAEC;IAQD;;;;;;;;;OASG;IACH;;;;;;;;;oBAFa,QAAQ,MAAM,GAAC,OAAO,CAAC,CAMnC;IApBD,4BAA4B;IAE5B,eAFY,MAAM,WAIjB;CAiBF;AAED;CA8CC;AAED;CAoDC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LionInputTel.suite.d.ts","sourceRoot":"","sources":["../../../../components/input-tel/test-suites/LionInputTel.suite.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"LionInputTel.suite.d.ts","sourceRoot":"","sources":["../../../../components/input-tel/test-suites/LionInputTel.suite.js"],"names":[],"mappings":"AAwJA;;GAEG;AAEH,6CAHW;IAAE,KAAK,EAAC,YAAY,CAAA;CAAE,QAkThC;6BA1bY,OAAO,KAAK,EAAE,cAAc;yBAC5B,OAAO,mBAAmB,EAAE,UAAU"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LionInputTelDropdown.d.ts","sourceRoot":"","sources":["../../../../components/input-tel-dropdown/src/LionInputTelDropdown.js"],"names":[],"mappings":"AAOA;;;;;;;;;;;GAWG;AAEH;;;;;;;;;;;;GAYG;AAEH;;;;;;;GAOG;AACH;IACE;;;OAGG;IACH,mBAFU,GAAG,CAIX;
|
|
1
|
+
{"version":3,"file":"LionInputTelDropdown.d.ts","sourceRoot":"","sources":["../../../../components/input-tel-dropdown/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|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LocalizeMixin.d.ts","sourceRoot":"","sources":["../../../../components/localize/src/LocalizeMixin.js"],"names":[],"mappings":"4BAOa,OAAO,gCAAgC,EAAE,aAAa;
|
|
1
|
+
{"version":3,"file":"LocalizeMixin.d.ts","sourceRoot":"","sources":["../../../../components/localize/src/LocalizeMixin.js"],"names":[],"mappings":"4BAOa,OAAO,gCAAgC,EAAE,aAAa;AA6KnE,srBAAsE;8BA9KzD,OAAO,kBAAkB,EAAE,eAAe;8BAE1C,OAAO,gCAAgC,EAAE,eAAe"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"formatDate.d.ts","sourceRoot":"","sources":["../../../../../components/localize/src/date/formatDate.js"],"names":[],"mappings":"AAIA,iGAAiG;AAEjG;;;;;;GAMG;AACH,iCAJW,IAAI,wFAEF,MAAM,
|
|
1
|
+
{"version":3,"file":"formatDate.d.ts","sourceRoot":"","sources":["../../../../../components/localize/src/date/formatDate.js"],"names":[],"mappings":"AAIA,iGAAiG;AAEjG;;;;;;GAMG;AACH,iCAJW,IAAI,wFAEF,MAAM,CA6ClB;gCApDa,OAAO,mCAAmC,EAAE,iBAAiB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parseDate.d.ts","sourceRoot":"","sources":["../../../../../components/localize/src/date/parseDate.js"],"names":[],"mappings":"AAwBA;;;;;GAKG;AACH,sCAHW,MAAM,GACJ,IAAI,GAAG,SAAS,
|
|
1
|
+
{"version":3,"file":"parseDate.d.ts","sourceRoot":"","sources":["../../../../../components/localize/src/date/parseDate.js"],"names":[],"mappings":"AAwBA;;;;;GAKG;AACH,sCAHW,MAAM,GACJ,IAAI,GAAG,SAAS,CA6C5B"}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Side-effect-free alternative for `localize` (the globally shared instance of LocalizeManager).
|
|
3
|
+
* When this function is imported, no side-effect happened yet, i.e. no global instance was registered yet.
|
|
4
|
+
* The side effect-free approach generates:
|
|
5
|
+
* - smaller, optimized bundles
|
|
6
|
+
* - a predictable loading order, that allows for:
|
|
7
|
+
* - deduping strategies when multiple instances of the localizeManager are on a page
|
|
8
|
+
* - providing a customized extension of LocalizeManager
|
|
9
|
+
*
|
|
10
|
+
* Use it like this:
|
|
11
|
+
*
|
|
12
|
+
* ```js
|
|
13
|
+
* function myFunction() {
|
|
14
|
+
* // note that 'localizeManager' is the same as former 'localize'
|
|
15
|
+
* const localizeManager = getLocalizeManger();
|
|
16
|
+
* // ...
|
|
17
|
+
* }
|
|
18
|
+
* ```
|
|
19
|
+
*
|
|
20
|
+
* In a class, we advise a shared instance:
|
|
21
|
+
* ```js
|
|
22
|
+
* class MyClass {
|
|
23
|
+
* constructor() {
|
|
24
|
+
* this._localizeManager = getLocalizeManger();
|
|
25
|
+
* }
|
|
26
|
+
* // ...
|
|
27
|
+
* }
|
|
28
|
+
* ```
|
|
29
|
+
*
|
|
30
|
+
* Make sure to always call this method inside a function or class (otherwise side effects are created)
|
|
31
|
+
*
|
|
32
|
+
* Do you want to register your own LocalizeManager?
|
|
33
|
+
* Make sure it's registered before anyone called `getLocalizeManager()`
|
|
34
|
+
*
|
|
35
|
+
* ```js
|
|
36
|
+
* import { singletonManager } from 'singleton-manager';
|
|
37
|
+
* import { getLocalizeManger } from '@lion/ui/localize-no-side-effects.js';
|
|
38
|
+
*
|
|
39
|
+
* // First register your own LocalizeManager (for deduping or other reasons)
|
|
40
|
+
* singletonManager.set('lion/ui::localize::0.x', class MyLocalizeManager extends LocalizeManager {});
|
|
41
|
+
*
|
|
42
|
+
* // Now, all your code gets the right instance
|
|
43
|
+
* function myFuntion() {
|
|
44
|
+
* const localizeManager = getLocalizeManager();
|
|
45
|
+
* // ...
|
|
46
|
+
* }
|
|
47
|
+
*
|
|
48
|
+
* class myClass() {
|
|
49
|
+
* constructor() {
|
|
50
|
+
* this._localizeManager = getLocalizeManager();
|
|
51
|
+
* // ...
|
|
52
|
+
* }
|
|
53
|
+
* }
|
|
54
|
+
* ```
|
|
55
|
+
*
|
|
56
|
+
* @returns {LocalizeManager}
|
|
57
|
+
*/
|
|
58
|
+
export function getLocalizeManager(): LocalizeManager;
|
|
59
|
+
import { LocalizeManager } from "./LocalizeManager.js";
|
|
60
|
+
//# sourceMappingURL=getLocalizeManager.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getLocalizeManager.d.ts","sourceRoot":"","sources":["../../../../components/localize/src/getLocalizeManager.js"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwDG;AACH,sCAFa,eAAe,CAc3B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"formatNumber.d.ts","sourceRoot":"","sources":["../../../../../components/localize/src/number/formatNumber.js"],"names":[],"mappings":"AAMA;;;;;;;;GAQG;AACH,qCAJW,MAAM,0FAEJ,MAAM,
|
|
1
|
+
{"version":3,"file":"formatNumber.d.ts","sourceRoot":"","sources":["../../../../../components/localize/src/number/formatNumber.js"],"names":[],"mappings":"AAMA;;;;;;;;GAQG;AACH,qCAJW,MAAM,0FAEJ,MAAM,CAwClB;;;;+BA5CY,OAAO,mCAAmC,EAAE,gBAAgB;;;;4BAC5D,OAAO,mCAAmC,EAAE,mBAAmB;kCAV9D,OAAO,mCAAmC,EAAE,mBAAmB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getCurrencyName.d.ts","sourceRoot":"","sources":["../../../../../components/localize/src/number/getCurrencyName.js"],"names":[],"mappings":"AAIA;;;;;;;GAOG;AACH,6CAJW,MAAM,0FAEJ,MAAM,
|
|
1
|
+
{"version":3,"file":"getCurrencyName.d.ts","sourceRoot":"","sources":["../../../../../components/localize/src/number/getCurrencyName.js"],"names":[],"mappings":"AAIA;;;;;;;GAOG;AACH,6CAJW,MAAM,0FAEJ,MAAM,CAqBlB;;;;+BAxBY,OAAO,mCAAmC,EAAE,gBAAgB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parseNumber.d.ts","sourceRoot":"","sources":["../../../../../components/localize/src/number/parseNumber.js"],"names":[],"mappings":"AAkFA;;;;;;;;;;;;;;;;;;GAkBG;AACH,mCAHW,MAAM,
|
|
1
|
+
{"version":3,"file":"parseNumber.d.ts","sourceRoot":"","sources":["../../../../../components/localize/src/number/parseNumber.js"],"names":[],"mappings":"AAkFA;;;;;;;;;;;;;;;;;;GAkBG;AACH,mCAHW,MAAM,6GA8BhB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"emptyStringWhenNumberNan.d.ts","sourceRoot":"","sources":["../../../../../../components/localize/src/number/utils/emptyStringWhenNumberNan.js"],"names":[],"mappings":"AAEA;;;;;GAKG;AACH,sDAHW,MAAM,GAAC,SAAS,GACd,MAAM,
|
|
1
|
+
{"version":3,"file":"emptyStringWhenNumberNan.d.ts","sourceRoot":"","sources":["../../../../../../components/localize/src/number/utils/emptyStringWhenNumberNan.js"],"names":[],"mappings":"AAEA;;;;;GAKG;AACH,sDAHW,MAAM,GAAC,SAAS,GACd,MAAM,CAKlB"}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
/**
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Use the side-effect-free `const localizeManager = getLocalizeManager()` instead.
|
|
3
|
+
* @deprecated
|
|
4
|
+
*/
|
|
5
|
+
export const localize: import("./LocalizeManager.js").LocalizeManager;
|
|
4
6
|
//# sourceMappingURL=singleton.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"singleton.d.ts","sourceRoot":"","sources":["../../../../components/localize/src/singleton.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"singleton.d.ts","sourceRoot":"","sources":["../../../../components/localize/src/singleton.js"],"names":[],"mappings":"AAEA;;;GAGG;AAEH,sEAA6C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getLocale.d.ts","sourceRoot":"","sources":["../../../../../components/localize/src/utils/getLocale.js"],"names":[],"mappings":"AAEA;;;;;GAKG;AACH,wDAFa,MAAM,
|
|
1
|
+
{"version":3,"file":"getLocale.d.ts","sourceRoot":"","sources":["../../../../../components/localize/src/utils/getLocale.js"],"names":[],"mappings":"AAEA;;;;;GAKG;AACH,wDAFa,MAAM,CAKlB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getLocalizeManager.test.d.ts","sourceRoot":"","sources":["../../../../components/localize/test/getLocalizeManager.test.js"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"side-effect-free-entrypoint.test.d.ts","sourceRoot":"","sources":["../../../../components/localize/test/side-effect-free-entrypoint.test.js"],"names":[],"mappings":"gCAMa,OAAO,gCAAgC,EAAE,aAAa"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"localizeTearDown.d.ts","sourceRoot":"","sources":["../../../../components/localize/test-helpers/localizeTearDown.js"],"names":[],"mappings":"AAEO,
|
|
1
|
+
{"version":3,"file":"localizeTearDown.d.ts","sourceRoot":"","sources":["../../../../components/localize/test-helpers/localizeTearDown.js"],"names":[],"mappings":"AAEO,yCASN"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Constructor } from '@open-wc/dedupe-mixin';
|
|
2
2
|
import { LitElement } from 'lit';
|
|
3
3
|
import { DirectiveResult } from 'lit/directive.js';
|
|
4
|
+
import { LocalizeManager } from '../src/LocalizeManager.js';
|
|
4
5
|
export interface FormatNumberPart {
|
|
5
6
|
type: string;
|
|
6
7
|
value: string;
|
|
@@ -53,6 +54,7 @@ export declare class LocalizeMixinHost {
|
|
|
53
54
|
connectedCallback(): void;
|
|
54
55
|
disconnectedCallback(): void;
|
|
55
56
|
msgLit(keys: string | string[], variables?: msgVariables, options?: msgOptions): string | DirectiveResult;
|
|
57
|
+
protected _localizeManager: LocalizeManager;
|
|
56
58
|
private __boundLocalizeOnLocaleChanged;
|
|
57
59
|
private __boundLocalizeOnLocaleChanging;
|
|
58
60
|
private __getUniqueNamespaces;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LocalizeMixinTypes.d.ts","sourceRoot":"","sources":["../../../../components/localize/types/LocalizeMixinTypes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACpD,OAAO,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AACjC,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"LocalizeMixinTypes.d.ts","sourceRoot":"","sources":["../../../../components/localize/types/LocalizeMixinTypes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACpD,OAAO,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AACjC,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAE5D,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;CACf;AAED,OAAO,UAAU,+BAA+B,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAAC;AAEvE,oBAAY,iBAAiB,GAAG,OAAO,+BAA+B,CAAC;AAGvE,MAAM,CAAC,OAAO,WAAW,iBAAkB,SAAQ,IAAI,CAAC,qBAAqB;IAC3E,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,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AO,CAAC,IAAI,CAAC;IAE9B,aAAa,IAAI,IAAI;IACrB,eAAe,CAAC,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,IAAI;IAC3D,eAAe,IAAI,IAAI;IACvB,iBAAiB,IAAI,IAAI;IACzB,oBAAoB,IAAI,IAAI;IAC5B,MAAM,CACX,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,EACvB,SAAS,CAAC,EAAE,YAAY,EACxB,OAAO,CAAC,EAAE,UAAU,GACnB,MAAM,GAAG,eAAe;IAE3B,SAAS,CAAC,gBAAgB,EAAE,eAAe,CAAC;IAE5C,OAAO,CAAC,8BAA8B;IACtC,OAAO,CAAC,+BAA+B;IACvC,OAAO,CAAC,qBAAqB;IAC7B,OAAO,CAAC,yBAAyB;IACjC,OAAO,CAAC,qBAAqB,CAAU;IACvC,OAAO,CAAC,gCAAgC;IACxC,OAAO,CAAC,0BAA0B;CACnC;AAED,OAAO,UAAU,2BAA2B,CAAC,CAAC,SAAS,WAAW,CAAC,UAAU,CAAC,EAC5E,UAAU,EAAE,CAAC,GACZ,CAAC,GACF,WAAW,CAAC,iBAAiB,CAAC,GAC9B,IAAI,CAAC,OAAO,iBAAiB,EAAE,MAAM,OAAO,iBAAiB,CAAC,GAC9D,IAAI,CAAC,OAAO,UAAU,EAAE,MAAM,OAAO,UAAU,CAAC,CAAC;AAEnD,oBAAY,aAAa,GAAG,OAAO,2BAA2B,CAAC"}
|
|
@@ -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;IAED;;;OAGG;IACH,sCAEC;IAED;;;;;;;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,
|
|
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;IAED;;;OAGG;IACH,sCAEC;IAED;;;;;;;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;6BAxMY,OAAO,KAAK,EAAE,cAAc"}
|
|
@@ -25,6 +25,7 @@
|
|
|
25
25
|
* @customElement lion-select
|
|
26
26
|
*/
|
|
27
27
|
export class LionSelect extends LionFieldWithSelect {
|
|
28
|
+
__selectObserver: MutationObserver | undefined;
|
|
28
29
|
/** @param {import('lit').PropertyValues } changedProperties */
|
|
29
30
|
updated(changedProperties: import('lit').PropertyValues): void;
|
|
30
31
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LionSelect.d.ts","sourceRoot":"","sources":["../../../../components/select/src/LionSelect.js"],"names":[],"mappings":"AAgCA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH;
|
|
1
|
+
{"version":3,"file":"LionSelect.d.ts","sourceRoot":"","sources":["../../../../components/select/src/LionSelect.js"],"names":[],"mappings":"AAgCA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH;IAKI,+CAME;IASJ,+DAA+D;IAC/D,2BADY,OAAO,KAAK,EAAE,cAAc,QAevC;IAQD;;;;;OAKG;IACH,4BAFa,MAAM,CAMlB;IAYD,iBAAiB;IACjB,oCAOC;CACF;4BAhIY,OAAO,4CAA4C,EAAE,mBAAmB;AADrF;;GAEG;AACH;IACE,kBAAkB;IAClB,6BAEC;IAKC;;;OAGG;IACH,cAFU,MAAM,GAAC,SAAS,CAEG;IAG/B;;OAEG;IACH,oCAIC;CACF"}
|
|
@@ -1,2 +1,20 @@
|
|
|
1
1
|
export { LocalizeManager } from "../components/localize/src/LocalizeManager.js";
|
|
2
|
+
export { formatDate } from "../components/localize/src/date/formatDate.js";
|
|
3
|
+
export { getDateFormatBasedOnLocale } from "../components/localize/src/date/getDateFormatBasedOnLocale.js";
|
|
4
|
+
export { getMonthNames } from "../components/localize/src/date/getMonthNames.js";
|
|
5
|
+
export { getWeekdayNames } from "../components/localize/src/date/getWeekdayNames.js";
|
|
6
|
+
export { normalizeDateTime } from "../components/localize/src/date/normalizeDateTime.js";
|
|
7
|
+
export { parseDate } from "../components/localize/src/date/parseDate.js";
|
|
8
|
+
export { LocalizeMixin } from "../components/localize/src/LocalizeMixin.js";
|
|
9
|
+
export { formatNumber } from "../components/localize/src/number/formatNumber.js";
|
|
10
|
+
export { formatNumberToParts } from "../components/localize/src/number/formatNumberToParts.js";
|
|
11
|
+
export { getCurrencyName } from "../components/localize/src/number/getCurrencyName.js";
|
|
12
|
+
export { getDecimalSeparator } from "../components/localize/src/number/getDecimalSeparator.js";
|
|
13
|
+
export { getFractionDigits } from "../components/localize/src/number/getFractionDigits.js";
|
|
14
|
+
export { getGroupSeparator } from "../components/localize/src/number/getGroupSeparator.js";
|
|
15
|
+
export { getSeparatorsFromNumber } from "../components/localize/src/number/getSeparatorsFromNumber.js";
|
|
16
|
+
export { normalizeCurrencyLabel } from "../components/localize/src/number/normalizeCurrencyLabel.js";
|
|
17
|
+
export { parseNumber } from "../components/localize/src/number/parseNumber.js";
|
|
18
|
+
export { getLocale } from "../components/localize/src/utils/getLocale.js";
|
|
19
|
+
export { getLocalizeManager } from "../components/localize/src/getLocalizeManager.js";
|
|
2
20
|
//# sourceMappingURL=localize-no-side-effects.d.ts.map
|