@lion/ui 0.13.0 → 0.14.0
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/accordion/src/LionAccordion.js +3 -2
- package/components/button/src/LionButton.js +6 -10
- package/components/button/src/LionButtonReset.js +2 -0
- package/components/button/src/LionButtonSubmit.js +2 -0
- package/components/button/test-suites/LionButton.suite.js +0 -14
- package/components/checkbox-group/src/LionCheckbox.js +3 -0
- package/components/checkbox-group/src/LionCheckboxGroup.js +2 -0
- package/components/checkbox-group/src/LionCheckboxIndeterminate.js +3 -0
- package/components/collapsible/src/LionCollapsible.js +4 -1
- package/components/combobox/src/LionCombobox.js +5 -0
- package/components/dialog/src/LionDialog.js +3 -0
- package/components/drawer/src/LionDrawer.js +9 -0
- package/components/fieldset/src/LionFieldset.js +1 -1
- package/components/form/src/LionForm.js +0 -1
- package/components/form-core/src/FormControlMixin.js +10 -0
- package/components/form-core/src/FormatMixin.js +1 -1
- package/components/form-core/src/validate/LionValidationFeedback.js +8 -10
- package/components/form-core/src/validate/ValidateMixin.js +23 -3
- package/components/form-core/test/validate/lion-validation-feedback.test.js +0 -22
- package/components/form-core/test-suites/ValidateMixinFeedbackPart.suite.js +119 -0
- package/components/form-core/types/validate/validate.ts +1 -0
- package/components/icon/src/LionIcon.js +2 -0
- package/components/input-amount-dropdown/src/LionInputAmountDropdown.js +557 -0
- package/components/input-amount-dropdown/src/currencyUtil.js +324 -0
- package/components/input-amount-dropdown/src/formatters.js +24 -0
- package/components/input-amount-dropdown/src/localizeNamespaceLoader.js +7 -0
- package/components/input-amount-dropdown/src/parsers.js +23 -0
- package/components/input-amount-dropdown/src/serializers.js +24 -0
- package/components/input-amount-dropdown/src/validators.js +22 -0
- package/components/input-amount-dropdown/test/LionInputAmountDropdown.test.js +199 -0
- package/components/input-amount-dropdown/test-helpers/mimicUserChangingDropdown.js +22 -0
- package/components/input-amount-dropdown/test-suites/LionInputAmountDropdown.suite.js +322 -0
- package/components/input-amount-dropdown/translations/en.js +5 -0
- package/components/input-amount-dropdown/types/index.ts +234 -0
- package/components/input-file/src/LionInputFile.js +9 -0
- package/components/input-tel/src/LionInputTel.js +3 -0
- package/components/input-tel/types/index.ts +6 -0
- package/components/input-tel-dropdown/src/LionInputTelDropdown.js +2 -0
- package/components/listbox/src/LionListbox.js +2 -0
- package/components/localize/src/number/getFractionDigits.js +1 -1
- package/components/overlays/src/OverlayMixin.js +4 -0
- package/components/progress-indicator/src/LionProgressIndicator.js +4 -0
- package/components/radio-group/src/LionRadioGroup.js +3 -1
- package/components/select/src/LionSelect.js +4 -0
- package/components/select-rich/src/LionSelectInvoker.js +2 -0
- package/components/select-rich/src/LionSelectRich.js +2 -0
- package/components/steps/src/LionStep.js +0 -1
- package/components/steps/src/LionSteps.js +0 -1
- package/components/switch/src/LionSwitch.js +3 -0
- package/components/switch/src/LionSwitchButton.js +5 -0
- package/components/tabs/src/LionTabs.js +8 -0
- package/custom-elements.json +5581 -1475
- package/dist-types/components/accordion/src/LionAccordion.d.ts +3 -2
- package/dist-types/components/accordion/src/LionAccordion.d.ts.map +1 -1
- package/dist-types/components/button/src/LionButton.d.ts +2 -1
- package/dist-types/components/button/src/LionButton.d.ts.map +1 -1
- package/dist-types/components/button/src/LionButtonReset.d.ts +2 -0
- package/dist-types/components/button/src/LionButtonReset.d.ts.map +1 -1
- package/dist-types/components/button/src/LionButtonSubmit.d.ts +2 -0
- package/dist-types/components/button/src/LionButtonSubmit.d.ts.map +1 -1
- package/dist-types/components/button/test-suites/LionButton.suite.d.ts.map +1 -1
- package/dist-types/components/checkbox-group/src/LionCheckbox.d.ts +3 -0
- package/dist-types/components/checkbox-group/src/LionCheckbox.d.ts.map +1 -1
- package/dist-types/components/checkbox-group/src/LionCheckboxGroup.d.ts +2 -0
- package/dist-types/components/checkbox-group/src/LionCheckboxGroup.d.ts.map +1 -1
- package/dist-types/components/checkbox-group/src/LionCheckboxIndeterminate.d.ts +3 -0
- package/dist-types/components/checkbox-group/src/LionCheckboxIndeterminate.d.ts.map +1 -1
- package/dist-types/components/collapsible/src/LionCollapsible.d.ts +3 -1
- package/dist-types/components/collapsible/src/LionCollapsible.d.ts.map +1 -1
- package/dist-types/components/combobox/src/LionCombobox.d.ts +5 -0
- package/dist-types/components/combobox/src/LionCombobox.d.ts.map +1 -1
- package/dist-types/components/dialog/src/LionDialog.d.ts +3 -0
- package/dist-types/components/dialog/src/LionDialog.d.ts.map +1 -1
- package/dist-types/components/drawer/src/LionDrawer.d.ts +9 -0
- package/dist-types/components/drawer/src/LionDrawer.d.ts.map +1 -1
- package/dist-types/components/fieldset/src/LionFieldset.d.ts +1 -1
- package/dist-types/components/form/src/LionForm.d.ts.map +1 -1
- package/dist-types/components/form-core/src/FormControlMixin.d.ts.map +1 -1
- package/dist-types/components/form-core/src/validate/LionValidationFeedback.d.ts +4 -3
- package/dist-types/components/form-core/src/validate/LionValidationFeedback.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/form-core/types/validate/validate.d.ts +1 -0
- package/dist-types/components/form-core/types/validate/validate.d.ts.map +1 -1
- package/dist-types/components/icon/src/LionIcon.d.ts +2 -0
- package/dist-types/components/icon/src/LionIcon.d.ts.map +1 -1
- package/dist-types/components/input-amount-dropdown/src/LionInputAmountDropdown.d.ts +221 -0
- package/dist-types/components/input-amount-dropdown/src/LionInputAmountDropdown.d.ts.map +1 -0
- package/dist-types/components/input-amount-dropdown/src/currencyUtil.d.ts +24 -0
- package/dist-types/components/input-amount-dropdown/src/currencyUtil.d.ts.map +1 -0
- package/dist-types/components/input-amount-dropdown/src/formatters.d.ts +4 -0
- package/dist-types/components/input-amount-dropdown/src/formatters.d.ts.map +1 -0
- package/dist-types/components/input-amount-dropdown/src/localizeNamespaceLoader.d.ts +2 -0
- package/dist-types/components/input-amount-dropdown/src/localizeNamespaceLoader.d.ts.map +1 -0
- package/dist-types/components/input-amount-dropdown/src/parsers.d.ts +2 -0
- package/dist-types/components/input-amount-dropdown/src/parsers.d.ts.map +1 -0
- package/dist-types/components/input-amount-dropdown/src/serializers.d.ts +3 -0
- package/dist-types/components/input-amount-dropdown/src/serializers.d.ts.map +1 -0
- package/dist-types/components/input-amount-dropdown/src/validators.d.ts +12 -0
- package/dist-types/components/input-amount-dropdown/src/validators.d.ts.map +1 -0
- package/dist-types/components/input-amount-dropdown/test/LionInputAmountDropdown.test.d.ts +7 -0
- package/dist-types/components/input-amount-dropdown/test/LionInputAmountDropdown.test.d.ts.map +1 -0
- package/dist-types/components/input-amount-dropdown/test-helpers/mimicUserChangingDropdown.d.ts +12 -0
- package/dist-types/components/input-amount-dropdown/test-helpers/mimicUserChangingDropdown.d.ts.map +1 -0
- package/dist-types/components/input-amount-dropdown/test-suites/LionInputAmountDropdown.suite.d.ts +13 -0
- package/dist-types/components/input-amount-dropdown/test-suites/LionInputAmountDropdown.suite.d.ts.map +1 -0
- package/dist-types/components/input-amount-dropdown/translations/en.d.ts +7 -0
- package/dist-types/components/input-amount-dropdown/translations/en.d.ts.map +1 -0
- package/dist-types/components/input-amount-dropdown/types/index.d.ts +86 -0
- package/dist-types/components/input-amount-dropdown/types/index.d.ts.map +1 -0
- package/dist-types/components/input-file/src/LionInputFile.d.ts +9 -0
- package/dist-types/components/input-file/src/LionInputFile.d.ts.map +1 -1
- package/dist-types/components/input-tel/src/LionInputTel.d.ts +3 -0
- package/dist-types/components/input-tel/src/LionInputTel.d.ts.map +1 -1
- package/dist-types/components/input-tel/types/index.d.ts +1 -1
- package/dist-types/components/input-tel/types/index.d.ts.map +1 -1
- package/dist-types/components/input-tel-dropdown/src/LionInputTelDropdown.d.ts +2 -0
- package/dist-types/components/input-tel-dropdown/src/LionInputTelDropdown.d.ts.map +1 -1
- package/dist-types/components/listbox/src/LionListbox.d.ts +2 -0
- package/dist-types/components/listbox/src/LionListbox.d.ts.map +1 -1
- package/dist-types/components/localize/src/number/getFractionDigits.d.ts +1 -1
- package/dist-types/components/overlays/src/OverlayMixin.d.ts +4 -0
- package/dist-types/components/overlays/src/OverlayMixin.d.ts.map +1 -1
- package/dist-types/components/progress-indicator/src/LionProgressIndicator.d.ts +3 -0
- package/dist-types/components/progress-indicator/src/LionProgressIndicator.d.ts.map +1 -1
- package/dist-types/components/radio-group/src/LionRadioGroup.d.ts +3 -1
- package/dist-types/components/radio-group/src/LionRadioGroup.d.ts.map +1 -1
- package/dist-types/components/select/src/LionSelect.d.ts +3 -0
- package/dist-types/components/select/src/LionSelect.d.ts.map +1 -1
- package/dist-types/components/select-rich/src/LionSelectInvoker.d.ts +2 -0
- package/dist-types/components/select-rich/src/LionSelectInvoker.d.ts.map +1 -1
- package/dist-types/components/select-rich/src/LionSelectRich.d.ts +3 -1
- package/dist-types/components/select-rich/src/LionSelectRich.d.ts.map +1 -1
- package/dist-types/components/steps/src/LionStep.d.ts +0 -1
- package/dist-types/components/steps/src/LionStep.d.ts.map +1 -1
- package/dist-types/components/steps/src/LionSteps.d.ts +0 -1
- package/dist-types/components/steps/src/LionSteps.d.ts.map +1 -1
- package/dist-types/components/switch/src/LionSwitch.d.ts +3 -0
- package/dist-types/components/switch/src/LionSwitch.d.ts.map +1 -1
- package/dist-types/components/switch/src/LionSwitchButton.d.ts +5 -0
- package/dist-types/components/switch/src/LionSwitchButton.d.ts.map +1 -1
- package/dist-types/components/tabs/src/LionTabs.d.ts +8 -0
- package/dist-types/components/tabs/src/LionTabs.d.ts.map +1 -1
- package/dist-types/exports/define/lion-input-amount-dropdown.d.ts +2 -0
- package/dist-types/exports/define/lion-input-amount-dropdown.d.ts.map +1 -0
- package/dist-types/exports/input-amount-dropdown-test-helpers.d.ts +2 -0
- package/dist-types/exports/input-amount-dropdown-test-helpers.d.ts.map +1 -0
- package/dist-types/exports/input-amount-dropdown-test-suites.d.ts +2 -0
- package/dist-types/exports/input-amount-dropdown-test-suites.d.ts.map +1 -0
- package/dist-types/exports/input-amount-dropdown.d.ts +2 -0
- package/dist-types/exports/input-amount-dropdown.d.ts.map +1 -0
- package/dist-types/tsconfig.tsbuildinfo +1 -1
- package/docs/components/accordion/api-table.md +8 -0
- package/docs/components/button/api-table.md +0 -3
- package/docs/components/checkbox-group/overview.md +2 -2
- package/docs/components/collapsible/api-table.md +7 -0
- package/docs/components/collapsible/overview.md +1 -1
- package/docs/components/combobox/api-table.md +7 -0
- 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/drawer/api-table.md +8 -0
- package/docs/components/fieldset/overview.md +5 -5
- package/docs/components/form/overview.md +3 -3
- package/docs/components/form/use-cases.md +2 -2
- 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-amount-dropdown/api-table.md +210 -0
- package/docs/components/input-amount-dropdown/index.md +13 -0
- package/docs/components/input-amount-dropdown/use-cases.md +103 -0
- 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-file/api-table.md +7 -0
- package/docs/components/input-file/overview.md +1 -1
- 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/listbox/use-cases.md +1 -1
- package/docs/components/radio-group/overview.md +3 -3
- package/docs/components/select/use-cases.md +1 -1
- package/docs/components/select-rich/api-table.md +0 -1
- package/docs/components/select-rich/use-cases.md +1 -1
- package/docs/components/tabs/api-table.md +7 -0
- package/docs/components/tabs/examples.md +1 -1
- package/docs/fundamentals/index.md +4 -4
- 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 +19 -3
- 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/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/exports/define/lion-input-amount-dropdown.js +3 -0
- package/exports/input-amount-dropdown-test-helpers.js +1 -0
- package/exports/input-amount-dropdown-test-suites.js +1 -0
- package/exports/input-amount-dropdown.js +1 -0
- package/input-amount-dropdown-test-helpers.js +1 -0
- package/input-amount-dropdown-test-suites.js +1 -0
- package/input-amount-dropdown.js +1 -0
- package/package.json +2 -1
|
@@ -9,10 +9,11 @@
|
|
|
9
9
|
* @property {(event: Event) => unknown} focusHandler executed on focusin event
|
|
10
10
|
*/
|
|
11
11
|
/**
|
|
12
|
-
*
|
|
12
|
+
* @slot invoker - The invoker element for the accordion
|
|
13
|
+
* @slot content - The content element for the accordion
|
|
14
|
+
* @slot _accordion - The slot for the accordion, used to rearrange invokers and content
|
|
13
15
|
*
|
|
14
16
|
* @customElement lion-accordion
|
|
15
|
-
* @extends LitElement
|
|
16
17
|
*/
|
|
17
18
|
export class LionAccordion extends LitElement {
|
|
18
19
|
static get properties(): {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LionAccordion.d.ts","sourceRoot":"","sources":["../../../../components/accordion/src/LionAccordion.js"],"names":[],"mappings":"AAIA;;;;;;;;;GASG;AAEH
|
|
1
|
+
{"version":3,"file":"LionAccordion.d.ts","sourceRoot":"","sources":["../../../../components/accordion/src/LionAccordion.js"],"names":[],"mappings":"AAIA;;;;;;;;;GASG;AAEH;;;;;;GAMG;AACH;IACE;QAEI;;WAEG;;;;QAEH;;WAEG;;;;QAEH;;WAEG;;;;MAGN;IAED,+CA4BC;IAED;;OAEG;IACH,8BAMC;IAED,2BAEC;IARC,gBAyCU,MAAM,CAzCW;IAU7B;;OAEG;IACH,4BAMC;IAED,yBAEC;IARC,YAgCU,MAAM,EAAE,CAhCK;IAYvB,WAAgB;IAEhB;;OAEG;IACH,WAFU,OAAO,CAEK;IAEtB;;;OAGG;IACH,gBAAiB;IAqBnB,+CAQC;IAED;;OAEG;IACH,qBAeC;IAED;;OAEG;IACH,qBAiDC;IAED;;;;;OAKG;IACH,sCAqBC;IAED;;;OAGG;IACH,oCAKC;IAED;;;OAGG;IACH,oCAOC;IAED;;;OAGG;IACH,+BA2BC;IAED;;OAEG;IACH,yBAEC;IAED;;;OAGG;IACH,+BAHW,UAAU,QAQpB;IAED;;;OAGG;IACH,+BAHW,UAAU,QAcpB;IAED;;;OAGG;IACH,+BAHW,UAAU,QAapB;IAED;;;OAGG;IACH,+BAHW,UAAU,QAUpB;IAED;;;OAGG;IACH,iCAHW,UAAU,QASpB;IAED;;;OAGG;IACH,2BAHW,UAAU,QAYpB;IAED;;;OAGG;IACH,yBAHW,UAAU,QAYpB;IAED;;OAEG;IACH,wBAWC;IAED;;OAEG;IACH,yBAaC;IAED;;;OAGG;IACH,yBAYC;IAED;;OAEG;IACH,qBAQC;CACF;;;;;SApda,MAAM;;;;WACN,MAAM;;;;aACN,WAAW;;;;aACX,WAAW;;;;0BACH,KAAK,KAAK,OAAO;;;;4BACjB,KAAK,KAAK,OAAO;;;;0BACjB,KAAK,KAAK,OAAO"}
|
|
@@ -19,6 +19,8 @@ declare const LionButton_base: typeof LitElement & import("@open-wc/dedupe-mixin
|
|
|
19
19
|
* `<form>` support is needed:
|
|
20
20
|
* - When type="reset|submit" should be supported, use LionButtonReset.
|
|
21
21
|
* - When implicit form submission should be supported on top, use LionButtonSubmit.
|
|
22
|
+
*
|
|
23
|
+
* @customElement lion-button
|
|
22
24
|
*/
|
|
23
25
|
export class LionButton extends LionButton_base {
|
|
24
26
|
static get properties(): {
|
|
@@ -35,7 +37,6 @@ export class LionButton extends LionButton_base {
|
|
|
35
37
|
render(): import("lit-html").TemplateResult<1>;
|
|
36
38
|
type: string;
|
|
37
39
|
active: boolean;
|
|
38
|
-
_buttonId: string;
|
|
39
40
|
/**
|
|
40
41
|
* @private
|
|
41
42
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LionButton.d.ts","sourceRoot":"","sources":["../../../../components/button/src/LionButton.js"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"LionButton.d.ts","sourceRoot":"","sources":["../../../../components/button/src/LionButton.js"],"names":[],"mappings":";AAQA;;GAEG;AAEH;;;;;;;;;;;;;;;;;;;GAmBG;AACH;IACE;;;;;;;;;MAKC;IAMD,+CA+EC;IAnFD,+CAEC;IAqFC,aAAoB;IACpB,gBAAmB;IA2BrB;;OAEG;IACH,sBAIC;IAED;;OAEG;IACH,2BASC;IAED;;;OAGG;IACH,yBAuBC;IAED;;;OAGG;IACH,uBASC;CACF;6BApNY,OAAO,KAAK,EAAE,cAAc"}
|
|
@@ -14,6 +14,8 @@
|
|
|
14
14
|
* implicit form submission logic), but LionButtonReset is an easier to grasp name for
|
|
15
15
|
* Application Developers: for reset buttons, always use LionButtonReset, for submit
|
|
16
16
|
* buttons always use LionButtonSubmit.
|
|
17
|
+
*
|
|
18
|
+
* @customElement lion-button-reset
|
|
17
19
|
*/
|
|
18
20
|
export class LionButtonReset extends LionButton {
|
|
19
21
|
/** @type {HTMLButtonElement} */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LionButtonReset.d.ts","sourceRoot":"","sources":["../../../../components/button/src/LionButtonReset.js"],"names":[],"mappings":"AAEA;;GAEG;AAEH
|
|
1
|
+
{"version":3,"file":"LionButtonReset.d.ts","sourceRoot":"","sources":["../../../../components/button/src/LionButtonReset.js"],"names":[],"mappings":"AAEA;;GAEG;AAEH;;;;;;;;;;;;;;;GAeG;AACH;IAMI,gCAAgC;IAChC,8BADW,iBAAiB,CACwC;IAoBtE;;;;OAIG;IACH,8BAIC;IAED;;OAEG;IACH,wDAUC;IAPC,mCAAmC;IACnC,0CAAmD;IAQrD;;OAEG;IACH,8DAIC;IAED;;;;;;;OAOG;IAEH,uCALW,KAAK,GAEH,QAAQ,IAAI,CAAC,CAyBzB;IAED;;OAEG;IACH,uCAIC;CACF;6BA1HY,OAAO,KAAK,EAAE,cAAc"}
|
|
@@ -6,6 +6,8 @@
|
|
|
6
6
|
* - the Application Developer should be able to switch types between 'submit'|'reset'|'button'
|
|
7
7
|
* (this is similar to how native HTMLButtonElement works)
|
|
8
8
|
* - a submit button with native form support is needed
|
|
9
|
+
*
|
|
10
|
+
* @customElement lion-button-submit
|
|
9
11
|
*/
|
|
10
12
|
export class LionButtonSubmit extends LionButtonReset {
|
|
11
13
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LionButtonSubmit.d.ts","sourceRoot":"","sources":["../../../../components/button/src/LionButtonSubmit.js"],"names":[],"mappings":"AAiCA
|
|
1
|
+
{"version":3,"file":"LionButtonSubmit.d.ts","sourceRoot":"","sources":["../../../../components/button/src/LionButtonSubmit.js"],"names":[],"mappings":"AAiCA;;;;;;;;;;GAUG;AACH;IACE;;;OAGG;IACH,4DAEC;IAMC,qCAAqC;IACrC,8BADW,iBAAiB,GAAC,IAAI,CACO;CAoD3C;6BA3GY,OAAO,KAAK,EAAE,cAAc;iCAC5B;IAAC,WAAW,EAAE,IAAI,gBAAgB,CAAC,CAAC;IAAC,MAAM,EAAC,iBAAiB,CAAC;IAAC,QAAQ,EAAC,gBAAgB,CAAA;CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LionButton.suite.d.ts","sourceRoot":"","sources":["../../../../components/button/test-suites/LionButton.suite.js"],"names":[],"mappings":"AAcA;;
|
|
1
|
+
{"version":3,"file":"LionButton.suite.d.ts","sourceRoot":"","sources":["../../../../components/button/test-suites/LionButton.suite.js"],"names":[],"mappings":"AAcA;;SAoWC"}
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
declare const LionCheckbox_base: typeof LionInput & import("@open-wc/dedupe-mixin").Constructor<import("../../form-core/types/choice-group/ChoiceInputMixinTypes.js").ChoiceInputHost> & Pick<typeof import("../../form-core/types/choice-group/ChoiceInputMixinTypes.js").ChoiceInputHost, "prototype" | "styles"> & import("@open-wc/dedupe-mixin").Constructor<import("../../form-core/types/FormatMixinTypes.js").FormatHost> & Pick<typeof import("../../form-core/types/FormatMixinTypes.js").FormatHost, "prototype"> & Pick<typeof import("lit").LitElement, typeof Symbol.metadata | "prototype" | "_$litElement$" | "enabledWarnings" | "enableWarning" | "disableWarning" | "addInitializer" | "_initializers" | "elementProperties" | "properties" | "elementStyles" | "styles" | "observedAttributes" | "createProperty" | "getPropertyOptions" | "shadowRootOptions">;
|
|
2
|
+
/**
|
|
3
|
+
* @customElement lion-checkbox
|
|
4
|
+
*/
|
|
2
5
|
export class LionCheckbox extends LionCheckbox_base {
|
|
3
6
|
}
|
|
4
7
|
import { LionInput } from "../../../exports/input.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LionCheckbox.d.ts","sourceRoot":"","sources":["../../../../components/checkbox-group/src/LionCheckbox.js"],"names":[],"mappings":";AAGA;CAKC"}
|
|
1
|
+
{"version":3,"file":"LionCheckbox.d.ts","sourceRoot":"","sources":["../../../../components/checkbox-group/src/LionCheckbox.js"],"names":[],"mappings":";AAGA;;GAEG;AACH;CAKC"}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
declare const LionCheckboxGroup_base: typeof LitElement & import("@open-wc/dedupe-mixin").Constructor<import("../../form-core/types/form-group/FormGroupMixinTypes.js").FormGroupHost> & Pick<typeof import("../../form-core/types/form-group/FormGroupMixinTypes.js").FormGroupHost, "prototype"> & import("@open-wc/dedupe-mixin").Constructor<import("../../form-core/types/registration/FormRegistrarMixinTypes.js").FormRegistrarHost> & Pick<typeof import("../../form-core/types/registration/FormRegistrarMixinTypes.js").FormRegistrarHost, "prototype"> & import("@open-wc/dedupe-mixin").Constructor<import("../../form-core/types/FormControlMixinTypes.js").FormControlHost> & Pick<typeof import("../../form-core/types/FormControlMixinTypes.js").FormControlHost, "prototype" | "properties" | "styles"> & import("@open-wc/dedupe-mixin").Constructor<import("../../form-core/types/validate/ValidateMixinTypes.js").ValidateHost> & Pick<typeof import("../../form-core/types/validate/ValidateMixinTypes.js").ValidateHost, "prototype" | "validationTypes"> & import("@open-wc/dedupe-mixin").Constructor<import("../../core/types/DisabledMixinTypes.js").DisabledHost> & Pick<typeof import("../../core/types/DisabledMixinTypes.js").DisabledHost, "prototype"> & import("@open-wc/dedupe-mixin").Constructor<import("../../core/types/SlotMixinTypes.js").SlotHost> & Pick<typeof import("../../core/types/SlotMixinTypes.js").SlotHost, "prototype"> & Pick<typeof 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("../../form-core/types/choice-group/ChoiceGroupMixinTypes.js").ChoiceGroupHost> & Pick<typeof import("../../form-core/types/choice-group/ChoiceGroupMixinTypes.js").ChoiceGroupHost, "prototype"> & import("@open-wc/dedupe-mixin").Constructor<import("../../form-core/types/InteractionStateMixinTypes.js").InteractionStateHost> & Pick<typeof import("../../form-core/types/InteractionStateMixinTypes.js").InteractionStateHost, "prototype">;
|
|
2
2
|
/**
|
|
3
3
|
* A wrapper around multiple checkboxes
|
|
4
|
+
*
|
|
5
|
+
* @customElement lion-checkbox-group
|
|
4
6
|
*/
|
|
5
7
|
export class LionCheckboxGroup extends LionCheckboxGroup_base {
|
|
6
8
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LionCheckboxGroup.d.ts","sourceRoot":"","sources":["../../../../components/checkbox-group/src/LionCheckboxGroup.js"],"names":[],"mappings":";AAGA
|
|
1
|
+
{"version":3,"file":"LionCheckboxGroup.d.ts","sourceRoot":"","sources":["../../../../components/checkbox-group/src/LionCheckboxGroup.js"],"names":[],"mappings":";AAGA;;;;GAIG;AACH;CAKC"}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @typedef {import('./LionCheckboxGroup.js').LionCheckboxGroup} LionCheckboxGroup
|
|
3
3
|
*/
|
|
4
|
+
/**
|
|
5
|
+
* @customElement lion-checkbox-indeterminate
|
|
6
|
+
*/
|
|
4
7
|
export class LionCheckboxIndeterminate extends LionCheckbox {
|
|
5
8
|
static get styles(): (import("lit").CSSResultOrNative | import("lit").CSSResultArray)[];
|
|
6
9
|
/** @type {any} */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LionCheckboxIndeterminate.d.ts","sourceRoot":"","sources":["../../../../components/checkbox-group/src/LionCheckboxIndeterminate.js"],"names":[],"mappings":"AAGA;;GAEG;AAEH;IACE,wFAYC;IAED,kBAAkB;IAClB,6BAeC;IAED;;OAEG;IACH,uFAEC;IAED;;OAEG;IACH,+CAEC;IAED,iCAEC;IADC,yBAkMW,OAAO,EAAE,CAlMgE;IAGtF,qBAMC;IAJG,8BAAgC;IAMpC;;OAEG;IACH,sCAgCC;IA1BC,yCAA+B;IAM3B,uBAA0B;IAsBhC,8BAmBC;IAED;;;OAGG;IACH,8BAyDC;IA1CG,sCAA4B;IA4ChC;;OAEG;IAEH,iEAMC;IAED;;;OAGG;IACH,yCAHW,KAAK,QASf;IAED;;;OAGG;IAEH,4CAJW,KAAK,QASf;IAED;;OAEG;IACH,8BAFW,WAAW,QAMrB;IAED;;OAEG;IACH,mCAFW,WAAW,QAOrB;IAOC,4BAA4B;IAC5B,iBADW,WAAW,EAAE,CACC;IAGzB,oBAAuB;CAqC1B;
|
|
1
|
+
{"version":3,"file":"LionCheckboxIndeterminate.d.ts","sourceRoot":"","sources":["../../../../components/checkbox-group/src/LionCheckboxIndeterminate.js"],"names":[],"mappings":"AAGA;;GAEG;AAEH;;GAEG;AACH;IACE,wFAYC;IAED,kBAAkB;IAClB,6BAeC;IAED;;OAEG;IACH,uFAEC;IAED;;OAEG;IACH,+CAEC;IAED,iCAEC;IADC,yBAkMW,OAAO,EAAE,CAlMgE;IAGtF,qBAMC;IAJG,8BAAgC;IAMpC;;OAEG;IACH,sCAgCC;IA1BC,yCAA+B;IAM3B,uBAA0B;IAsBhC,8BAmBC;IAED;;;OAGG;IACH,8BAyDC;IA1CG,sCAA4B;IA4ChC;;OAEG;IAEH,iEAMC;IAED;;;OAGG;IACH,yCAHW,KAAK,QASf;IAED;;;OAGG;IAEH,4CAJW,KAAK,QASf;IAED;;OAEG;IACH,8BAFW,WAAW,QAMrB;IAED;;OAEG;IACH,mCAFW,WAAW,QAOrB;IAOC,4BAA4B;IAC5B,iBADW,WAAW,EAAE,CACC;IAGzB,oBAAuB;CAqC1B;gCA/RY,OAAO,wBAAwB,EAAE,iBAAiB"}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* `LionCollapsible` is a class for custom collapsible element (`<lion-collapsible>` web component).
|
|
3
3
|
*
|
|
4
|
+
* @slot invoker - The invoker element for the collapsible
|
|
5
|
+
* @slot content - The content element for the collapsible
|
|
6
|
+
*
|
|
4
7
|
* @customElement lion-collapsible
|
|
5
|
-
* @extends LitElement
|
|
6
8
|
*/
|
|
7
9
|
export class LionCollapsible extends LitElement {
|
|
8
10
|
static get styles(): import("lit").CSSResult[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LionCollapsible.d.ts","sourceRoot":"","sources":["../../../../components/collapsible/src/LionCollapsible.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"LionCollapsible.d.ts","sourceRoot":"","sources":["../../../../components/collapsible/src/LionCollapsible.js"],"names":[],"mappings":"AAGA;;;;;;;GAOG;AACH;IACE,+CAYC;IAED;;;;;MAOC;IAED,+CAKC;IAIC,gBAAmB;IA8DrB;;;OAGG;IACH,sBAGC;IA3BD;;;OAGG;IACH,oBAIC;IAED;;;OAGG;IACH,oBAIC;IAWD;;;;OAIG;IAEH,+BAJW,MAAM,iBAIY;IAE7B;;;;OAIG;IAEH,+BAJW,MAAM,iBAIY;IAE7B;;OAEG;IACH,sDAIC;IAED;;OAEG;IACH,sDAIC;IAED;;OAEG;IACH,uCAGC;IAED;;;OAGG;IACH,wBAMC;IAED;;;OAGG;IACH,4BAUC;IAED;;;OAGG;IACH,0BAIC;CACF"}
|
|
@@ -12,6 +12,11 @@ declare const LionCombobox_base: typeof LionListbox & import("@open-wc/dedupe-mi
|
|
|
12
12
|
/**
|
|
13
13
|
* LionCombobox: implements the wai-aria combobox design pattern and integrates it as a Lion
|
|
14
14
|
* FormControl
|
|
15
|
+
*
|
|
16
|
+
* @slot listbox - The listbox element for the combobox, e.g. <lion-options>
|
|
17
|
+
* @slot selection-display - The selection display element for the combobox, e.g. <lion-selection-display>
|
|
18
|
+
*
|
|
19
|
+
* @customElement lion-combobox
|
|
15
20
|
*/
|
|
16
21
|
export class LionCombobox extends LionCombobox_base {
|
|
17
22
|
/** @type {any} */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LionCombobox.d.ts","sourceRoot":"","sources":["../../../../components/combobox/src/LionCombobox.js"],"names":[],"mappings":";AAgBA;;;;;;;;;GASG;AAEH
|
|
1
|
+
{"version":3,"file":"LionCombobox.d.ts","sourceRoot":"","sources":["../../../../components/combobox/src/LionCombobox.js"],"names":[],"mappings":";AAgBA;;;;;;;;;GASG;AAEH;;;;;;;;GAQG;AACH;IACE,kBAAkB;IAClB,6BAoBC;IAED,wFAgCC;IAuGD,4BAA4B;IAC5B,uBASC;IAtBD;;;;;;;OAOG;IACH,oBAEC;IAOG,iCAAiC;IACjC,SADW,MAAM,GAAG,SAAS,CACL;IAe5B;;OAEG;IACH,uCAcC;IAED;;;OAGG;IAEH,2EAOC;IAED;;OAEG;IAEH,0EAWC;IAED;;;OAGG;IACH,oEAEC;IAsDD;;;;OAIG;IACH,2CAEC;IAED;;;OAGG;IACH,sGAEC;IAED;;;;;OAKG;IACH,6CAOC;IAED;;;OAGG;IACH,4FAEC;IAED;;;OAGG;IACH,sDAEC;IAED;;;OAGG;IACH,sDAEC;IAaD;;;OAGG;IACH,6DAEC;IASD;;OAEG;IACH,qCAEC;IAZD;;OAEG;IACH,kCAEC;IAWC;;;;OAIG;IACH,cAFU,MAAM,GAAC,MAAM,GAAC,QAAQ,GAAC,MAAM,CAEb;IAC1B;;;;;;;OAOG;IACH,WAFU,OAAO,GAAC,KAAK,CAED;IACtB;;;OAGG;IACH,wBAA2B;IAM3B;;OAEG;IACH,kCAAoC;IACpC;;OAEG;IACH,+BAAiC;IAEjC;;;;OAIG;IACH,wBAHU,KAAK,GAAC,KAAK,CAG0C;IAW/D;;OAEG;IACH,mCAAoC;IACpC;;OAEG;IACH,wBAAyB;IACzB;;;OAGG;IACH,uCAA2C;IAC3C;;;OAGG;IACH,gCAAoC;IA0xBtC;;;OAGG;IACH,yDAMC;IAED;;;OAGG;IAEH,6DAEC;IAtkBD;;;OAGG;IAEH,8BAJW,KAAK,QAOf;IAED;;;OAGG;IAEH,gCAJW,aAAa,QAUvB;IAxOD,0BASC;IAED;;;;;OAKG;IACH,oDAJW,OAAO,sEAEL,IAAI,CAmBhB;IAED;;;;;OAKG;IACH,uBAHW,MAAM,GAAC,MAAM,EAAE,OAazB;IAED;;;OAGG;IACH,oDASC;IAED;;OAEG;IACH,2BAFW,OAAO,KAAK,EAAE,cAAc,QA0CtC;IAPG,oDAA2C;IAS/C;;;;;;;OAOG;IACH,uBAHW,UAAU,gBACV,MAAM,WAahB;IAED;;;;;;;;;;;;;;;;;;;;;;OAsBG;IAGH,6CANW;QAAE,YAAY,CAAC,EAAE,MAAM,CAAC;QAAC,OAAO,CAAC,EAAE,MAAM,CAAA;KAAE,GAEzC,OAAO,CAyBnB;IAED;;;;;OAKG;IAEH,mCAJW,UAAU,GACR,MAAM,CAWlB;IAoDD;;;OAGG;IACH,8BAHW,MAAM,QAQhB;IAED;;OAEG;IACH,yBAeC;IAqBD;;;;;OAKG;IACH,iCAJW,UAAU,GAAG;QAAC,mBAAmB,CAAC,EAAC,MAAM,CAAA;KAAC,kBAC1C,MAAM,QAQhB;IAED;;;;;OAKG;IAEH,0CALW,OAAO,kBACP,MAAM,QAyBhB;IAED;;;;;;OAMG;IAEH,mCANW,UAAU,GAAG;QAAC,mBAAmB,CAAC,EAAC,MAAM,CAAA;KAAC,uEAWpD;IAED;;;;OAIG;IAEH,4CAJW,OAAO,QAUjB;IAGD;;;;OAIG;IAEH,qCAWC;IAID;;;;;;;;;;;OAWG;IACH,wCA4HC;IARC,gDACiE;IASnE;;OAEG;IACH,gCAUC;IAED;;;;;;OAMG;IACH,0CAEC;IAsHD;;;;;;OAMG;IAEH,8CANW,MAAM,GAAC,MAAM,EAAE,iBACf,MAAM,GAAC,MAAM,EAAE,cACf;QAAC,KAAK,CAAC,EAAC,MAAM,CAAA;KAAC,WAMzB;IAED;;;;;;OAMG;IAEH,6CALW,MAAM,EAAE,kBACR,MAAM,EAAE,QAalB;IAYD;;OAEG;IACH,yCAmBC;IAED;;OAEG;IACH,wBAqBC;IAED;;OAEG;IACH,2BAIC;IAuBD,cAIC;CACF;yBAvwCY,OAAO,qBAAqB,EAAE,UAAU;0BACxC,OAAO,qBAAqB,EAAE,WAAW;4BACzC,OAAO,4BAA4B,EAAE,aAAa;uBAClD,OAAO,wBAAwB,EAAE,QAAQ;8BACzC,OAAO,6BAA6B,EAAE,eAAe;8BACrD,OAAO,6BAA6B,EAAE,eAAe;+BACrD,OAAO,8BAA8B,EAAE,gBAAgB;iCACvD,UAAU,GAAG;IAAE,eAAe,CAAC,WAAU;IAAC,aAAa,CAAC,WAAS;CAAE"}
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
declare const LionDialog_base: typeof LitElement & import("@open-wc/dedupe-mixin").Constructor<import("../../overlays/types/OverlayMixinTypes.js").OverlayHost> & Pick<typeof import("../../overlays/types/OverlayMixinTypes.js").OverlayHost, "prototype"> & Pick<typeof LitElement, typeof Symbol.metadata | "prototype" | "_$litElement$" | "enabledWarnings" | "enableWarning" | "disableWarning" | "addInitializer" | "_initializers" | "elementProperties" | "properties" | "elementStyles" | "styles" | "observedAttributes" | "createProperty" | "getPropertyOptions" | "shadowRootOptions">;
|
|
2
|
+
/**
|
|
3
|
+
* @customElement lion-dialog
|
|
4
|
+
*/
|
|
2
5
|
export class LionDialog extends LionDialog_base {
|
|
3
6
|
/** @type {any} */
|
|
4
7
|
static get properties(): any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LionDialog.d.ts","sourceRoot":"","sources":["../../../../components/dialog/src/LionDialog.js"],"names":[],"mappings":";AAGA;IACE,kBAAkB;IAClB,6BAIC;IAIC,uBAA0B;IAG5B;;OAEG;IAEH;;;;;;;;;;;;;;;;;;;;;;;;;MAKC;IAED,+CAOC;CACF"}
|
|
1
|
+
{"version":3,"file":"LionDialog.d.ts","sourceRoot":"","sources":["../../../../components/dialog/src/LionDialog.js"],"names":[],"mappings":";AAGA;;GAEG;AACH;IACE,kBAAkB;IAClB,6BAIC;IAIC,uBAA0B;IAG5B;;OAEG;IAEH;;;;;;;;;;;;;;;;;;;;;;;;;MAKC;IAED,+CAOC;CACF"}
|
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* LionDrawer: extension of lion-collapsible with drawer specific styles and animations
|
|
3
|
+
*
|
|
4
|
+
* @slot invoker - The invoker element for the drawer
|
|
5
|
+
* @slot content - The content element for the drawer
|
|
6
|
+
* @slot headline - The headline element for the drawer
|
|
7
|
+
*
|
|
8
|
+
* @customElement lion-drawer
|
|
9
|
+
*/
|
|
1
10
|
export class LionDrawer extends LionCollapsible {
|
|
2
11
|
static get properties(): {
|
|
3
12
|
transitioning: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LionDrawer.d.ts","sourceRoot":"","sources":["../../../../components/drawer/src/LionDrawer.js"],"names":[],"mappings":"AASA;IACE;;;;;;;;;;;;;MAeC;IAKC,eAAe;IACf,iBAEC;IAwDH;;;OAGG;IACH,0BAOC;IAED,uBAEC;IAvCD,wBAsBC;IAlBG,8BAAuF;IACvF,8BAAuF;IACvF,6BAAqB;IACrB,6BAAsB;IAuBxB,8BAAyB;IAW3B;;;;;OAKG;IACH;QAHgC,WAAW,EAAhC,WAAW;sBAarB;IAED;;;;;OAKG;IACH;QAHgC,WAAW,EAAhC,WAAW;sBAiBrB;IAED;;;;;OAKG;IACH;QAHgC,WAAW,EAAhC,WAAW;QACT,QAAQ,IAAI,CAAC,CAiBzB;IAXK,mCAAyB;IAa/B;;OAEG;IACH,2CAEC;IAED,4BAGC;IAOD,uBAOC;IAED,oCAQC;CAeF"}
|
|
1
|
+
{"version":3,"file":"LionDrawer.d.ts","sourceRoot":"","sources":["../../../../components/drawer/src/LionDrawer.js"],"names":[],"mappings":"AASA;;;;;;;;GAQG;AACH;IACE;;;;;;;;;;;;;MAeC;IAKC,eAAe;IACf,iBAEC;IAwDH;;;OAGG;IACH,0BAOC;IAED,uBAEC;IAvCD,wBAsBC;IAlBG,8BAAuF;IACvF,8BAAuF;IACvF,6BAAqB;IACrB,6BAAsB;IAuBxB,8BAAyB;IAW3B;;;;;OAKG;IACH;QAHgC,WAAW,EAAhC,WAAW;sBAarB;IAED;;;;;OAKG;IACH;QAHgC,WAAW,EAAhC,WAAW;sBAiBrB;IAED;;;;;OAKG;IACH;QAHgC,WAAW,EAAhC,WAAW;QACT,QAAQ,IAAI,CAAC,CAiBzB;IAXK,mCAAyB;IAa/B;;OAEG;IACH,2CAEC;IAED,4BAGC;IAOD,uBAOC;IAED,oCAQC;CAeF"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
declare const LionFieldset_base: typeof LitElement & import("@open-wc/dedupe-mixin").Constructor<import("../../form-core/types/form-group/FormGroupMixinTypes.js").FormGroupHost> & Pick<typeof import("../../form-core/types/form-group/FormGroupMixinTypes.js").FormGroupHost, "prototype"> & import("@open-wc/dedupe-mixin").Constructor<import("../../form-core/types/registration/FormRegistrarMixinTypes.js").FormRegistrarHost> & Pick<typeof import("../../form-core/types/registration/FormRegistrarMixinTypes.js").FormRegistrarHost, "prototype"> & import("@open-wc/dedupe-mixin").Constructor<import("../../form-core/types/FormControlMixinTypes.js").FormControlHost> & Pick<typeof import("../../form-core/types/FormControlMixinTypes.js").FormControlHost, "prototype" | "properties" | "styles"> & import("@open-wc/dedupe-mixin").Constructor<import("../../form-core/types/validate/ValidateMixinTypes.js").ValidateHost> & Pick<typeof import("../../form-core/types/validate/ValidateMixinTypes.js").ValidateHost, "prototype" | "validationTypes"> & import("@open-wc/dedupe-mixin").Constructor<import("../../core/types/DisabledMixinTypes.js").DisabledHost> & Pick<typeof import("../../core/types/DisabledMixinTypes.js").DisabledHost, "prototype"> & import("@open-wc/dedupe-mixin").Constructor<import("../../core/types/SlotMixinTypes.js").SlotHost> & Pick<typeof import("../../core/types/SlotMixinTypes.js").SlotHost, "prototype"> & 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
|
+
* LionFieldset is basically a 'sub form' and can have its own nested sub forms.
|
|
4
4
|
* It mimics the native <fieldset> element in this sense, but has all the functionality of
|
|
5
5
|
* a FormControl (advanced styling, validation, interaction states etc.) Also see
|
|
6
6
|
* FormGroupMixin it depends on.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LionForm.d.ts","sourceRoot":"","sources":["../../../../components/form/src/LionForm.js"],"names":[],"mappings":"AAYA;;;;GAIG;
|
|
1
|
+
{"version":3,"file":"LionForm.d.ts","sourceRoot":"","sources":["../../../../components/form/src/LionForm.js"],"names":[],"mappings":"AAYA;;;;GAIG;AACH;IAoCE;;;OAGG;IACH,sBAHW,KAAK,QAYf;IAUD;;;OAGG;IACH,qBAHW,KAAK,QAQf;IA3DD,0BAMC;IAOD,iCAEC;IAED,eAQC;IAiBD,cAMC;IAaD;;;OAGG;IACH,wDAHW,iBAAiB,QAa3B;IAED,eAAe;IACf,oCAGC;IAED,eAAe;IACf,oCAGC;CACF;gCA/GY,OAAO,+DAA+D,EAAE,iBAAiB"}
|
|
@@ -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;AA88BzE,4GAA4E;6BAt9B/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"}
|
|
@@ -11,6 +11,10 @@ export class LionValidationFeedback extends LionValidationFeedback_base {
|
|
|
11
11
|
};
|
|
12
12
|
static localizeNamespaces: import("../../../localize/types/LocalizeMixinTypes.js").NamespaceObject[];
|
|
13
13
|
static get styles(): import("lit").CSSResult[];
|
|
14
|
+
/**
|
|
15
|
+
* @type {FeedbackMessage[] | undefined}
|
|
16
|
+
*/
|
|
17
|
+
feedbackData: FeedbackMessage[] | undefined;
|
|
14
18
|
/**
|
|
15
19
|
* @overridable
|
|
16
20
|
* @param {Object} opts
|
|
@@ -25,9 +29,6 @@ export class LionValidationFeedback extends LionValidationFeedback_base {
|
|
|
25
29
|
validator?: import("./Validator.js").Validator | undefined;
|
|
26
30
|
}): string | Node | TemplateResult;
|
|
27
31
|
currentType: string | undefined;
|
|
28
|
-
removeMessage: number | undefined;
|
|
29
|
-
/** @type {FeedbackMessage[]} */
|
|
30
|
-
feedbackData: import("../../types/validate/ValidateMixinTypes.js").FeedbackMessage[] | undefined;
|
|
31
32
|
render(): import("lit-html").TemplateResult<1>;
|
|
32
33
|
}
|
|
33
34
|
export type Validator = import('./Validator.js').Validator;
|
|
@@ -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;
|
|
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;IAIC;;OAEG;IACH,cAFU,eAAe,EAAE,GAAG,SAAS,CAEV;IAG/B;;;;;;;OAOG;IAEH;QANiD,OAAO,EAA7C,MAAM,GAAG,IAAI,GAAG,cAAc;QAChB,IAAI;QACD,SAAS;uCAMpC;IASG,gCAA4C;IAMhD,+CAcC;CACF;wBA9FY,OAAO,gBAAgB,EAAE,SAAS;6BAClC,OAAO,KAAK,EAAE,cAAc;8BAC5B,OAAO,4CAA4C,EAAE,eAAe"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ValidateMixin.d.ts","sourceRoot":"","sources":["../../../../../components/form-core/src/validate/ValidateMixin.js"],"names":[],"mappings":"AA8CA;;;;;;GAMG;AACH,0CAHU,aAAa,
|
|
1
|
+
{"version":3,"file":"ValidateMixin.d.ts","sourceRoot":"","sources":["../../../../../components/form-core/src/validate/ValidateMixin.js"],"names":[],"mappings":"AA8CA;;;;;;GAMG;AACH,0CAHU,aAAa,CA68BnB;4BA5+BS,OAAO,4CAA4C,EAAE,aAAa;AA8+B/E,+GAAsE;6BA7+BzD,OAAO,4CAA4C,EAAE,cAAc;2BACnE,OAAO,4CAA4C,EAAE,YAAY;4BACjE,OAAO,4CAA4C,EAAE,aAAa;+BAClE,OAAO,+BAA+B,EAAE,gBAAgB;sCACxD,cAAc,4CAA4C,EAAE,YAAY;oCACxE;IAAC,SAAS,EAAC,SAAS,CAAC;IAAC,OAAO,EAAC,OAAO,GAAC,MAAM,CAAA;CAAC"}
|
package/dist-types/components/form-core/test-suites/ValidateMixinFeedbackPart.suite.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ValidateMixinFeedbackPart.suite.d.ts","sourceRoot":"","sources":["../../../../components/form-core/test-suites/ValidateMixinFeedbackPart.suite.js"],"names":[],"mappings":"AAeA;;GAEG;AAEH,
|
|
1
|
+
{"version":3,"file":"ValidateMixinFeedbackPart.suite.d.ts","sourceRoot":"","sources":["../../../../components/form-core/test-suites/ValidateMixinFeedbackPart.suite.js"],"names":[],"mappings":"AAeA;;GAEG;AAEH,qDAivBC;kCApvBY,OAAO,+BAA+B,EAAE,mBAAmB"}
|
|
@@ -28,6 +28,7 @@ export type ValidatorConfig = {
|
|
|
28
28
|
type?: ValidationType;
|
|
29
29
|
node?: FormControlHost;
|
|
30
30
|
fieldName?: string | Promise<string>;
|
|
31
|
+
visibilityDuration?: number;
|
|
31
32
|
};
|
|
32
33
|
/**
|
|
33
34
|
* Output of the `execute` function that returns a validity outcome. When we need to show feedback,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validate.d.ts","sourceRoot":"","sources":["../../../../../components/form-core/types/validate/validate.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAChE,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAEzD;;;;;;;;;;;GAWG;AACH,MAAM,MAAM,aAAa,GAAG,MAAM,CAAC;AAEnC;;;GAGG;AACH,MAAM,MAAM,cAAc,GAAG,GAAG,CAAC;AAEjC;;;;GAIG;AACH,MAAM,MAAM,eAAe,GAAG;IAC5B,UAAU,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,CAAC,mBAAmB,CAAC,KAAK,OAAO,CAAC,MAAM,GAAG,OAAO,CAAC,GAAG,MAAM,GAAG,OAAO,CAAC;IAClG,IAAI,CAAC,EAAE,cAAc,CAAC;IACtB,IAAI,CAAC,EAAE,eAAe,CAAC;IACvB,SAAS,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"validate.d.ts","sourceRoot":"","sources":["../../../../../components/form-core/types/validate/validate.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAChE,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAEzD;;;;;;;;;;;GAWG;AACH,MAAM,MAAM,aAAa,GAAG,MAAM,CAAC;AAEnC;;;GAGG;AACH,MAAM,MAAM,cAAc,GAAG,GAAG,CAAC;AAEjC;;;;GAIG;AACH,MAAM,MAAM,eAAe,GAAG;IAC5B,UAAU,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,CAAC,mBAAmB,CAAC,KAAK,OAAO,CAAC,MAAM,GAAG,OAAO,CAAC,GAAG,MAAM,GAAG,OAAO,CAAC;IAClG,IAAI,CAAC,EAAE,cAAc,CAAC;IACtB,IAAI,CAAC,EAAE,eAAe,CAAC;IACvB,SAAS,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;IACrC,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B,CAAC;AAEF;;;;;;;GAOG;AACH,MAAM,MAAM,gBAAgB,GAAG,MAAM,GAAG,OAAO,CAAC;AAEhD;;GAEG;AACH,MAAM,MAAM,mBAAmB,GAAG;IAChC,UAAU,EAAE,GAAG,CAAC;IAChB,0FAA0F;IAC1F,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,aAAa,CAAC;IACpB,WAAW,EAAE,eAAe,CAAC;IAC7B,IAAI,EAAE,cAAc,CAAC;IAErB,OAAO,EAAE,gBAAgB,CAAC;IAC1B,MAAM,EAAE,eAAe,CAAC;IACxB,MAAM,EAAE,cAAc,CAAC;CACxB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LionIcon.d.ts","sourceRoot":"","sources":["../../../../components/icon/src/LionIcon.js"],"names":[],"mappings":"AA6BA
|
|
1
|
+
{"version":3,"file":"LionIcon.d.ts","sourceRoot":"","sources":["../../../../components/icon/src/LionIcon.js"],"names":[],"mappings":"AA6BA;;;;GAIG;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;6BA9MY,OAAO,KAAK,EAAE,cAAc;0CACZ,oBAAoB,WAAY,MAAM,EAAE,KAAK,MAAM,KAAK,MAAM"}
|
|
@@ -0,0 +1,221 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Note: one could consider to implement LionInputAmountDropdown as a
|
|
3
|
+
* [combobox](https://www.w3.org/TR/wai-aria-practices-1.2/#combobox).
|
|
4
|
+
* However, the currency dropdown does not directly set the textbox value, it only determines
|
|
5
|
+
* its region code. Therefore it does not comply to this criterium:
|
|
6
|
+
* "A combobox is an input widget with an associated popup that enables users to select a value for
|
|
7
|
+
* the combobox from a collection of possible values. In some implementations,
|
|
8
|
+
* the popup presents allowed values, while in other implementations, the popup presents suggested
|
|
9
|
+
* values, and users may either select one of the suggestions or type a value".
|
|
10
|
+
* We therefore decided to consider the dropdown a helper mechanism that does not set, but
|
|
11
|
+
* contributes to and helps format and validate the actual value.
|
|
12
|
+
*/
|
|
13
|
+
/**
|
|
14
|
+
* @typedef {import('lit/directives/ref.js').Ref} Ref
|
|
15
|
+
* @typedef {import('lit').RenderOptions} RenderOptions
|
|
16
|
+
* @typedef {import('../../form-core/types/FormatMixinTypes.js').FormatHost} FormatHost
|
|
17
|
+
* @typedef {import('../../input-tel/types/index.js').RegionCode} RegionCode
|
|
18
|
+
* @typedef {import('../types/index.js').TemplateDataForDropdownInputAmount} TemplateDataForDropdownInputAmount
|
|
19
|
+
* @typedef {import('../types/index.js').OnDropdownChangeEvent} OnDropdownChangeEvent
|
|
20
|
+
* @typedef {import('../types/index.js').DropdownRef} DropdownRef
|
|
21
|
+
* @typedef {import('../types/index.js').RegionMeta} RegionMeta
|
|
22
|
+
* @typedef {import('../types/index.js').CurrencyCode} CurrencyCode
|
|
23
|
+
* @typedef {import('../../select-rich/src/LionSelectRich.js').LionSelectRich} LionSelectRich
|
|
24
|
+
* @typedef {import('../../overlays/src/OverlayController.js').OverlayController} OverlayController
|
|
25
|
+
* @typedef {import('../../form-core/types/FormatMixinTypes.js').FormatOptions} FormatOptions
|
|
26
|
+
* @typedef {FormatOptions & {locale?:string;currency:string|undefined}} AmountFormatOptions
|
|
27
|
+
* @typedef {TemplateDataForDropdownInputAmount & {data: {regionMetaList:RegionMeta[]}}} TemplateDataForIntlInputAmount
|
|
28
|
+
*/
|
|
29
|
+
/**
|
|
30
|
+
* LionInputAmountDropdown renders a dropdown like element next to the text field, inside the
|
|
31
|
+
* prefix, or suffix, slot. This could be a LionSelect, a LionSelectRich or a native select.
|
|
32
|
+
* By default, the native `<select>` element is used for this, so that it's as lightweight as
|
|
33
|
+
* possible. Also, it doesn't need to be a `FormControl`, because it's purely a helper element
|
|
34
|
+
* to provide better UX: the modelValue (the text field) contains all needed info:
|
|
35
|
+
* the currency code following ISO 4217 and its corresponding currency symbol using Intl.
|
|
36
|
+
*
|
|
37
|
+
* @customElement lion-input-amount-dropdown
|
|
38
|
+
*/
|
|
39
|
+
export class LionInputAmountDropdown extends LionInputAmount {
|
|
40
|
+
/**
|
|
41
|
+
* @configure LitElement
|
|
42
|
+
* @type {any}
|
|
43
|
+
*/
|
|
44
|
+
static properties: any;
|
|
45
|
+
static localizeNamespaces: import("../../localize/types/LocalizeMixinTypes.js").NamespaceObject[];
|
|
46
|
+
static templates: {
|
|
47
|
+
dropdown: (templateDataForDropdown: TemplateDataForDropdownInputAmount) => import("lit-html").TemplateResult<1>;
|
|
48
|
+
/**
|
|
49
|
+
* @param {TemplateDataForDropdownInputAmount} templateDataForDropdown
|
|
50
|
+
* @param {RegionMeta} contextData
|
|
51
|
+
*/
|
|
52
|
+
dropdownOption: (templateDataForDropdown: TemplateDataForDropdownInputAmount, { currencyCode, nameForLocale, currencySymbol }: RegionMeta) => import("lit-html").TemplateResult<1>;
|
|
53
|
+
};
|
|
54
|
+
/**
|
|
55
|
+
* @configure LitElement
|
|
56
|
+
* @enhance LionInputAmountDropdown
|
|
57
|
+
*/
|
|
58
|
+
static styles: (import("lit").CSSResult | (import("lit").CSSResultOrNative | import("lit").CSSResultArray)[])[];
|
|
59
|
+
refs: {
|
|
60
|
+
/** @type {DropdownRef} */
|
|
61
|
+
dropdown: DropdownRef;
|
|
62
|
+
};
|
|
63
|
+
/**
|
|
64
|
+
* This method provides a TemplateData object to be fed to pure template functions, a.k.a.
|
|
65
|
+
* Pure Templates™. The goal is to totally decouple presentation from logic here, so that
|
|
66
|
+
* Subclassers can override all content without having to loose private info contained
|
|
67
|
+
* within the template function that was overridden.
|
|
68
|
+
*
|
|
69
|
+
* Subclassers would need to make sure all the contents of the TemplateData object are implemented
|
|
70
|
+
* by making sure they are coupled to the right 'ref' ([data-ref=dropdown] in this example),
|
|
71
|
+
* with the help of lit's spread operator directive.
|
|
72
|
+
* To enhance this process, the TemplateData object is completely typed. Ideally, this would be
|
|
73
|
+
* enhanced by providing linters that make sure all of their required members are implemented by
|
|
74
|
+
* a Subclasser.
|
|
75
|
+
* When a Subclasser wants to add more data, this can be done via:
|
|
76
|
+
* @example
|
|
77
|
+
* ```js
|
|
78
|
+
* get _templateDataDropdown() {
|
|
79
|
+
* return {
|
|
80
|
+
* ...super._templateDataDropdown,
|
|
81
|
+
* myExtraData: { x: 1, y: 2 },
|
|
82
|
+
* }
|
|
83
|
+
* }
|
|
84
|
+
* ```
|
|
85
|
+
* @overridable
|
|
86
|
+
* @type {TemplateDataForDropdownInputAmount}
|
|
87
|
+
*/
|
|
88
|
+
get _templateDataDropdown(): import("../types/index.js").TemplateDataForDropdownInputAmount;
|
|
89
|
+
set _dropdownSlot(arg: string);
|
|
90
|
+
/**
|
|
91
|
+
* @returns {string}
|
|
92
|
+
*/
|
|
93
|
+
get _dropdownSlot(): string;
|
|
94
|
+
__dropdownSlot: string;
|
|
95
|
+
/**
|
|
96
|
+
* @protected
|
|
97
|
+
* @type {RegionCode}
|
|
98
|
+
*/
|
|
99
|
+
protected _langIso: import("../../input-tel/types/index.js").RegionCode | undefined;
|
|
100
|
+
__namesForLocale: Intl.DisplayNames | undefined;
|
|
101
|
+
parser: (value: string, givenOptions?: import("../../localize/types/LocalizeMixinTypes.js").FormatNumberOptions | undefined) => import("../types/index.js").AmountDropdownModelValue;
|
|
102
|
+
/**
|
|
103
|
+
* @param {import("../types/index.js").AmountDropdownModelValue} modelValue
|
|
104
|
+
* @param {import('../../localize/types/LocalizeMixinTypes.js').FormatNumberOptions} [givenOptions] Locale Options
|
|
105
|
+
*/
|
|
106
|
+
formatter: (modelValue: import("../types/index.js").AmountDropdownModelValue, givenOptions?: import("../../localize/types/LocalizeMixinTypes.js").FormatNumberOptions | undefined) => string;
|
|
107
|
+
serializer: (modelValue: import("../types/index.js").AmountDropdownModelValue) => string;
|
|
108
|
+
deserializer: (serializedValue: string) => import("../types/index.js").AmountDropdownModelValue;
|
|
109
|
+
defaultValidators: CurrencyAndAmount[];
|
|
110
|
+
/**
|
|
111
|
+
* Regions that will be shown on top of the dropdown
|
|
112
|
+
* @type {CurrencyCode[]}
|
|
113
|
+
*/
|
|
114
|
+
preferredCurrencies: CurrencyCode[];
|
|
115
|
+
/**
|
|
116
|
+
* Regions that are allowed to be selected in the dropdown.
|
|
117
|
+
* @type {CurrencyCode[]}
|
|
118
|
+
*/
|
|
119
|
+
allowedCurrencies: CurrencyCode[];
|
|
120
|
+
/**
|
|
121
|
+
* Group label for all countries, when preferredCountries are shown
|
|
122
|
+
* @protected
|
|
123
|
+
*/
|
|
124
|
+
protected _allCurrenciesLabel: string;
|
|
125
|
+
/**
|
|
126
|
+
* Group label for preferred countries, when preferredCountries are shown
|
|
127
|
+
* @protected
|
|
128
|
+
*/
|
|
129
|
+
protected _preferredCurrenciesLabel: string;
|
|
130
|
+
/**
|
|
131
|
+
* Contains everything needed for rendering region options:
|
|
132
|
+
* region code, currency code, display name according to locale, display name
|
|
133
|
+
* @private
|
|
134
|
+
* @type {RegionMeta[]}
|
|
135
|
+
*/
|
|
136
|
+
private __regionMetaList;
|
|
137
|
+
/**
|
|
138
|
+
* A filtered `this.__regionMetaList`, containing all regions provided in `preferredCurrencies`
|
|
139
|
+
* @private
|
|
140
|
+
* @type {RegionMeta[]}
|
|
141
|
+
*/
|
|
142
|
+
private __regionMetaListPreferred;
|
|
143
|
+
/**
|
|
144
|
+
* @protected
|
|
145
|
+
* @param {OnDropdownChangeEvent} event
|
|
146
|
+
*/
|
|
147
|
+
protected _onDropdownValueChange(event: OnDropdownChangeEvent): void;
|
|
148
|
+
/**
|
|
149
|
+
* @private
|
|
150
|
+
*/
|
|
151
|
+
private __syncCurrencyWithDropdown;
|
|
152
|
+
_currencyUtil: {
|
|
153
|
+
countryToCurrencyMap: import("../types/index.js").RegionToCurrencyMap;
|
|
154
|
+
allCurrencies: import("../types/index.js").AllCurrenciesSet;
|
|
155
|
+
getCurrencySymbol: (currency: import("../types/index.js").CurrencyCode, locale: string) => string;
|
|
156
|
+
};
|
|
157
|
+
/**
|
|
158
|
+
* @protected
|
|
159
|
+
*/
|
|
160
|
+
protected _initModelValueBasedOnDropdown(): void;
|
|
161
|
+
__initializedCurrencyCode: string | undefined;
|
|
162
|
+
/**
|
|
163
|
+
* Used for Required validation and computation of interaction states.
|
|
164
|
+
* We need to override this, because we prefill the input with the currency code, but for proper UX,
|
|
165
|
+
* we don't consider this as having interaction state `prefilled`
|
|
166
|
+
* @param {string} modelValue
|
|
167
|
+
* @return {boolean}
|
|
168
|
+
* @protected
|
|
169
|
+
*/
|
|
170
|
+
protected _isEmpty(modelValue?: string): boolean;
|
|
171
|
+
/**
|
|
172
|
+
* Prepares data for options, like "Greece (Ελλάδα)", where "Greece" is `nameForLocale` and
|
|
173
|
+
* "Ελλάδα" `nameForRegion`.
|
|
174
|
+
* This should be run on change of:
|
|
175
|
+
* - allowedCurrencies
|
|
176
|
+
* - locale
|
|
177
|
+
* @private
|
|
178
|
+
*/
|
|
179
|
+
private __createCurrencyMeta;
|
|
180
|
+
/**
|
|
181
|
+
* Usually, we don't use composition in regular LionFields (non choice-groups). Here we use a LionSelect(Rich) inside.
|
|
182
|
+
* We don't want to repropagate any children, since an Application Developer is not concerned with these internals (see repropate logic in FormControlMixin)
|
|
183
|
+
* Also, we don't want to give (wrong) info to InteractionStateMixin, that will set the wrong interaction states based on child info.
|
|
184
|
+
* TODO: Make "this._repropagationRole !== 'child'" the default for FormControlMixin
|
|
185
|
+
* (so that FormControls used within are never repropagated for LionFields)
|
|
186
|
+
* @protected
|
|
187
|
+
* @configure FormControlMixin: don't repropagate any children
|
|
188
|
+
*/
|
|
189
|
+
protected _repropagationCondition(): boolean;
|
|
190
|
+
__calculateActiveCurrency(): void;
|
|
191
|
+
/**
|
|
192
|
+
* Used for rendering the region/currency list
|
|
193
|
+
* @property _allowedOrAllRegions
|
|
194
|
+
* @type {CurrencyCode[]}
|
|
195
|
+
*/
|
|
196
|
+
get _allowedOrAllCurrencies(): import("../types/index.js").CurrencyCode[];
|
|
197
|
+
}
|
|
198
|
+
export type Ref = import('lit/directives/ref.js').Ref;
|
|
199
|
+
export type RenderOptions = import('lit').RenderOptions;
|
|
200
|
+
export type FormatHost = import('../../form-core/types/FormatMixinTypes.js').FormatHost;
|
|
201
|
+
export type RegionCode = import('../../input-tel/types/index.js').RegionCode;
|
|
202
|
+
export type TemplateDataForDropdownInputAmount = import('../types/index.js').TemplateDataForDropdownInputAmount;
|
|
203
|
+
export type OnDropdownChangeEvent = import('../types/index.js').OnDropdownChangeEvent;
|
|
204
|
+
export type DropdownRef = import('../types/index.js').DropdownRef;
|
|
205
|
+
export type RegionMeta = import('../types/index.js').RegionMeta;
|
|
206
|
+
export type CurrencyCode = import('../types/index.js').CurrencyCode;
|
|
207
|
+
export type LionSelectRich = import('../../select-rich/src/LionSelectRich.js').LionSelectRich;
|
|
208
|
+
export type OverlayController = import('../../overlays/src/OverlayController.js').OverlayController;
|
|
209
|
+
export type FormatOptions = import('../../form-core/types/FormatMixinTypes.js').FormatOptions;
|
|
210
|
+
export type AmountFormatOptions = FormatOptions & {
|
|
211
|
+
locale?: string;
|
|
212
|
+
currency: string | undefined;
|
|
213
|
+
};
|
|
214
|
+
export type TemplateDataForIntlInputAmount = TemplateDataForDropdownInputAmount & {
|
|
215
|
+
data: {
|
|
216
|
+
regionMetaList: RegionMeta[];
|
|
217
|
+
};
|
|
218
|
+
};
|
|
219
|
+
import { LionInputAmount } from "../../../exports/input-amount.js";
|
|
220
|
+
import { CurrencyAndAmount } from "./validators.js";
|
|
221
|
+
//# sourceMappingURL=LionInputAmountDropdown.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LionInputAmountDropdown.d.ts","sourceRoot":"","sources":["../../../../components/input-amount-dropdown/src/LionInputAmountDropdown.js"],"names":[],"mappings":"AAYA;;;;;;;;;;;GAWG;AAEH;;;;;;;;;;;;;;;GAeG;AAEH;;;;;;;;;GASG;AAEH;IACE;;;OAGG;IACH,mBAFU,GAAG,CAMX;IAEF,kGAGE;IAkFF;4CACwB,kCAAkC;QA0BxD;;;WAGG;kDAFQ,kCAAkC,mDAClC,UAAU;MAgBrB;IAEF;;;OAGG;IACH,gHA4BE;IA/JF;QACE,0BAA0B;kBAAf,WAAW;MAEtB;IAEF;;;;;;;;;;;;;;;;;;;;;;;;OAwBG;IACH,4FAiCC;IASD,+BAMC;IAbD;;OAEG;IACH,4BAEC;IAOC,gBAiJU,MAAM,CAjJc;IA6G9B;;;OAGG;IACH,oFAEC;IAED,gDAEE;IAYF,qLAAyB;IAEzB;;;OAGG;IACH,wBAHW,OAAO,mBAAmB,EAAE,wBAAwB,iHAG4B;IAC3F,yFAA4B;IAC5B,gGAAgC;IAEhC,uCAAkD;IAQlD;;;OAGG;IACH,qBAFU,YAAY,EAAE,CAEK;IAE7B;;;OAGG;IACH,mBAFU,YAAY,EAAE,CAEG;IAE3B;;;OAGG;IACH,sCAA6B;IAC7B;;;OAGG;IACH,4CAAmC;IAEnC;;;;;OAKG;IACH,yBAA0B;IAE1B;;;;OAIG;IACH,kCAAmC;IAkFrC;;;OAGG;IACH,wCAFW,qBAAqB,QA0B/B;IAED;;OAEG;IACH,mCAmBC;IAzHC;;;;MAAiC;IA6CnC;;OAEG;IACH,iDAOC;IALG,8CAA8C;IAOlD;;;;;;;OAOG;IACH,gCAJW,MAAM,GACL,OAAO,CAKlB;IAwDD;;;;;;;OAOG;IACH,6BAmBC;IAED;;;;;;;;OAQG;IAEH,6CAEC;IAED,kCAkCC;IAED;;;;OAIG;IACH,0EAIC;CACF;kBAlhBY,OAAO,uBAAuB,EAAE,GAAG;4BACnC,OAAO,KAAK,EAAE,aAAa;yBAC3B,OAAO,2CAA2C,EAAE,UAAU;yBAC9D,OAAO,gCAAgC,EAAE,UAAU;iDACnD,OAAO,mBAAmB,EAAE,kCAAkC;oCAC9D,OAAO,mBAAmB,EAAE,qBAAqB;0BACjD,OAAO,mBAAmB,EAAE,WAAW;yBACvC,OAAO,mBAAmB,EAAE,UAAU;2BACtC,OAAO,mBAAmB,EAAE,YAAY;6BACxC,OAAO,yCAAyC,EAAE,cAAc;gCAChE,OAAO,yCAAyC,EAAE,iBAAiB;4BACnE,OAAO,2CAA2C,EAAE,aAAa;kCACjE,aAAa,GAAG;IAAC,MAAM,CAAC,EAAC,MAAM,CAAC;IAAA,QAAQ,EAAC,MAAM,GAAC,SAAS,CAAA;CAAC;6CAC1D,kCAAkC,GAAG;IAAC,IAAI,EAAE;QAAC,cAAc,EAAC,UAAU,EAAE,CAAA;KAAC,CAAA;CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export namespace currencyUtil {
|
|
2
|
+
export { countryToCurrencyMap };
|
|
3
|
+
export { allCurrencies };
|
|
4
|
+
export { getCurrencySymbol };
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* Map containing all countries and its corresponding currency, following the i18n standard.
|
|
8
|
+
* @type {import("../types/index.js").RegionToCurrencyMap}
|
|
9
|
+
*/
|
|
10
|
+
declare const countryToCurrencyMap: import("../types/index.js").RegionToCurrencyMap;
|
|
11
|
+
/**
|
|
12
|
+
* Set with all possible currencies derived from the i18n standard.
|
|
13
|
+
* @type {import("../types/index.js").AllCurrenciesSet}
|
|
14
|
+
*/
|
|
15
|
+
declare const allCurrencies: import("../types/index.js").AllCurrenciesSet;
|
|
16
|
+
/**
|
|
17
|
+
* Matches a currency symbol to a currency code, with a given locale based on Intl.numberFormat.
|
|
18
|
+
* @param {import("./LionInputAmountDropdown.js").CurrencyCode} currency
|
|
19
|
+
* @param {string} locale
|
|
20
|
+
* @returns {string}
|
|
21
|
+
*/
|
|
22
|
+
declare function getCurrencySymbol(currency: import("./LionInputAmountDropdown.js").CurrencyCode, locale: string): string;
|
|
23
|
+
export {};
|
|
24
|
+
//# sourceMappingURL=currencyUtil.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"currencyUtil.d.ts","sourceRoot":"","sources":["../../../../components/input-amount-dropdown/src/currencyUtil.js"],"names":[],"mappings":";;;;;AA+RA;;;GAGG;AACH,oCAFU,OAAO,mBAAmB,EAAE,mBAAmB,CAIvD;AAEF;;;GAGG;AACH,6BAFU,OAAO,mBAAmB,EAAE,gBAAgB,CAEqB;AAE3E;;;;;GAKG;AACH,6CAJW,OAAO,8BAA8B,EAAE,YAAY,UACnD,MAAM,GACJ,MAAM,CAYlB"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export function formatAmount(modelValue: import('../types/index.js').AmountDropdownModelValue, givenOptions?: import("../../localize/types/LocalizeMixinTypes.js").FormatNumberOptions | undefined, context?: AmountDropdownModelValue | undefined): string;
|
|
2
|
+
export type FormatOptions = import('../../localize/types/LocalizeMixinTypes.js').FormatNumberOptions;
|
|
3
|
+
export type AmountDropdownModelValue = import('../types/index.js').AmountDropdownModelValue;
|
|
4
|
+
//# sourceMappingURL=formatters.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"formatters.d.ts","sourceRoot":"","sources":["../../../../components/input-amount-dropdown/src/formatters.js"],"names":[],"mappings":"AAeO,yCAJI,OAAO,mBAAmB,EAAE,wBAAwB,iHAEpD,wBAAwB,GAAC,SAAS,UAU5C;4BAnBY,OAAO,4CAA4C,EAAE,mBAAmB;uCACxE,OAAO,mBAAmB,EAAE,wBAAwB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"localizeNamespaceLoader.d.ts","sourceRoot":"","sources":["../../../../components/input-amount-dropdown/src/localizeNamespaceLoader.js"],"names":[],"mappings":"AACO,gDAA4C,MAAM,mDAKxD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"parsers.d.ts","sourceRoot":"","sources":["../../../../components/input-amount-dropdown/src/parsers.js"],"names":[],"mappings":"AAeO,mCAJI,MAAM,wGAEJ,OAAO,mBAAmB,EAAE,wBAAwB,CAShE"}
|