@lion/ui 0.7.2 → 0.7.4
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/button/test-suites/LionButtonReset.suite.js +7 -9
- package/components/calendar/test/lion-calendar.test.js +26 -30
- package/components/checkbox-group/test-suites/CheckboxIndeterminate.suite.js +3 -0
- package/components/combobox/src/LionCombobox.js +35 -22
- package/components/combobox/test/lion-combobox.test.js +141 -98
- package/components/core/src/SlotMixin.js +7 -1
- package/components/form/test/lion-form.test.js +4 -4
- package/components/form-core/src/FormControlMixin.js +0 -9
- package/components/form-core/src/localizeNamespaceLoader.js +75 -0
- package/components/form-core/src/registration/FormRegisteringMixin.js +28 -0
- package/components/form-core/src/validate/LionValidationFeedback.js +36 -2
- package/components/form-core/test/validate/lion-validation-feedback.test.js +30 -2
- package/components/form-core/test-suites/FormRegistrationMixins.suite.js +17 -0
- package/components/form-core/test-suites/ValidateMixin.suite.js +2 -1
- package/components/form-core/test-suites/form-group/FormGroupMixin.suite.js +18 -18
- package/components/form-core/translations/bg-BG.js +5 -0
- package/components/form-core/translations/bg.js +6 -0
- package/components/form-core/translations/cs-CZ.js +5 -0
- package/components/form-core/translations/cs.js +6 -0
- package/components/form-core/translations/de-DE.js +5 -0
- package/components/form-core/translations/de.js +6 -0
- package/components/form-core/translations/en-AU.js +5 -0
- package/components/form-core/translations/en-GB.js +5 -0
- package/components/form-core/translations/en-US.js +5 -0
- package/components/form-core/translations/en.js +6 -0
- package/components/form-core/translations/es-ES.js +5 -0
- package/components/form-core/translations/es.js +6 -0
- package/components/form-core/translations/fr-BE.js +5 -0
- package/components/form-core/translations/fr-FR.js +5 -0
- package/components/form-core/translations/fr.js +6 -0
- package/components/form-core/translations/hu-HU.js +5 -0
- package/components/form-core/translations/hu.js +6 -0
- package/components/form-core/translations/it-IT.js +5 -0
- package/components/form-core/translations/it.js +6 -0
- package/components/form-core/translations/nl-BE.js +5 -0
- package/components/form-core/translations/nl-NL.js +5 -0
- package/components/form-core/translations/nl.js +6 -0
- package/components/form-core/translations/pl-PL.js +5 -0
- package/components/form-core/translations/pl.js +6 -0
- package/components/form-core/translations/ro-RO.js +5 -0
- package/components/form-core/translations/ro.js +6 -0
- package/components/form-core/translations/ru-RU.js +5 -0
- package/components/form-core/translations/ru.js +6 -0
- package/components/form-core/translations/sk-SK.js +5 -0
- package/components/form-core/translations/sk.js +6 -0
- package/components/form-core/translations/uk-UA.js +5 -0
- package/components/form-core/translations/uk.js +6 -0
- package/components/form-core/translations/zh.js +6 -0
- package/components/form-core/types/FormControlMixinTypes.ts +0 -4
- package/components/form-core/types/registration/FormRegisteringMixinTypes.ts +17 -4
- package/components/form-integrations/test/dialog-integrations.test.js +6 -4
- package/components/helpers/src/SbActionLogger.js +11 -2
- package/components/icon/test/lion-icon.test.js +12 -14
- package/components/input-amount/test/lion-input-amount.test.js +13 -14
- package/components/input-datepicker/test/lion-input-datepicker.test.js +4 -4
- package/components/input-file/src/LionInputFile.js +88 -30
- package/components/input-file/test/lion-input-file.test.js +105 -9
- package/components/input-file/test/lion-selected-file-list.test.js +2 -1
- package/components/input-file/translations/bg.js +3 -0
- package/components/input-file/translations/cs.js +3 -0
- package/components/input-file/translations/de.js +3 -0
- package/components/input-file/translations/en.js +3 -0
- package/components/input-file/translations/es.js +3 -0
- package/components/input-file/translations/fr.js +3 -0
- package/components/input-file/translations/hu.js +3 -0
- package/components/input-file/translations/it.js +3 -0
- package/components/input-file/translations/nl.js +3 -0
- package/components/input-file/translations/pl.js +3 -0
- package/components/input-file/translations/ro.js +3 -0
- package/components/input-file/translations/ru.js +3 -0
- package/components/input-file/translations/sk.js +3 -0
- package/components/input-file/translations/uk.js +3 -0
- package/components/input-file/translations/zh.js +3 -0
- package/components/input-tel-dropdown/test/LionInputTelDropdown.test.js +23 -23
- package/components/listbox/test-suites/ListboxMixin.suite.js +10 -3
- package/components/localize/src/date/utils/normalizeIntlDate.js +13 -2
- package/components/overlays/src/OverlayMixin.js +8 -1
- package/components/progress-indicator/test/lion-progress-indicator.test.js +42 -46
- package/components/select-rich/test/lion-select-rich.test.js +6 -8
- package/components/steps/test/lion-step.test.js +5 -7
- package/components/switch/src/LionSwitch.js +10 -0
- package/components/switch/test/lion-switch.test.js +5 -7
- package/components/tabs/src/LionTabs.js +10 -0
- package/components/tabs/test/lion-tabs.test.js +49 -38
- package/custom-elements.json +83073 -76992
- package/dist-types/components/button/test-suites/LionButtonReset.suite.d.ts.map +1 -1
- package/dist-types/components/checkbox-group/test-suites/CheckboxIndeterminate.suite.d.ts.map +1 -1
- package/dist-types/components/combobox/src/LionCombobox.d.ts +12 -8
- package/dist-types/components/combobox/src/LionCombobox.d.ts.map +1 -1
- package/dist-types/components/core/src/SlotMixin.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/LionField.d.ts +1 -1
- package/dist-types/components/form-core/src/localizeNamespaceLoader.d.ts +2 -0
- package/dist-types/components/form-core/src/localizeNamespaceLoader.d.ts.map +1 -0
- package/dist-types/components/form-core/src/registration/FormRegisteringMixin.d.ts.map +1 -1
- package/dist-types/components/form-core/src/validate/LionValidationFeedback.d.ts +5 -6
- package/dist-types/components/form-core/src/validate/LionValidationFeedback.d.ts.map +1 -1
- package/dist-types/components/form-core/test-suites/FormRegistrationMixins.suite.d.ts.map +1 -1
- package/dist-types/components/form-core/test-suites/ValidateMixin.suite.d.ts.map +1 -1
- package/dist-types/components/form-core/translations/bg-BG.d.ts +8 -0
- package/dist-types/components/form-core/translations/bg-BG.d.ts.map +1 -0
- package/dist-types/components/form-core/translations/bg.d.ts +8 -0
- package/dist-types/components/form-core/translations/bg.d.ts.map +1 -0
- package/dist-types/components/form-core/translations/cs-CZ.d.ts +8 -0
- package/dist-types/components/form-core/translations/cs-CZ.d.ts.map +1 -0
- package/dist-types/components/form-core/translations/cs.d.ts +8 -0
- package/dist-types/components/form-core/translations/cs.d.ts.map +1 -0
- package/dist-types/components/form-core/translations/de-DE.d.ts +8 -0
- package/dist-types/components/form-core/translations/de-DE.d.ts.map +1 -0
- package/dist-types/components/form-core/translations/de.d.ts +8 -0
- package/dist-types/components/form-core/translations/de.d.ts.map +1 -0
- package/dist-types/components/form-core/translations/en-AU.d.ts +8 -0
- package/dist-types/components/form-core/translations/en-AU.d.ts.map +1 -0
- package/dist-types/components/form-core/translations/en-GB.d.ts +8 -0
- package/dist-types/components/form-core/translations/en-GB.d.ts.map +1 -0
- package/dist-types/components/form-core/translations/en-US.d.ts +8 -0
- package/dist-types/components/form-core/translations/en-US.d.ts.map +1 -0
- package/dist-types/components/form-core/translations/en.d.ts +8 -0
- package/dist-types/components/form-core/translations/en.d.ts.map +1 -0
- package/dist-types/components/form-core/translations/es-ES.d.ts +8 -0
- package/dist-types/components/form-core/translations/es-ES.d.ts.map +1 -0
- package/dist-types/components/form-core/translations/es.d.ts +8 -0
- package/dist-types/components/form-core/translations/es.d.ts.map +1 -0
- package/dist-types/components/form-core/translations/fr-BE.d.ts +8 -0
- package/dist-types/components/form-core/translations/fr-BE.d.ts.map +1 -0
- package/dist-types/components/form-core/translations/fr-FR.d.ts +8 -0
- package/dist-types/components/form-core/translations/fr-FR.d.ts.map +1 -0
- package/dist-types/components/form-core/translations/fr.d.ts +8 -0
- package/dist-types/components/form-core/translations/fr.d.ts.map +1 -0
- package/dist-types/components/form-core/translations/hu-HU.d.ts +8 -0
- package/dist-types/components/form-core/translations/hu-HU.d.ts.map +1 -0
- package/dist-types/components/form-core/translations/hu.d.ts +8 -0
- package/dist-types/components/form-core/translations/hu.d.ts.map +1 -0
- package/dist-types/components/form-core/translations/it-IT.d.ts +8 -0
- package/dist-types/components/form-core/translations/it-IT.d.ts.map +1 -0
- package/dist-types/components/form-core/translations/it.d.ts +8 -0
- package/dist-types/components/form-core/translations/it.d.ts.map +1 -0
- package/dist-types/components/form-core/translations/nl-BE.d.ts +8 -0
- package/dist-types/components/form-core/translations/nl-BE.d.ts.map +1 -0
- package/dist-types/components/form-core/translations/nl-NL.d.ts +8 -0
- package/dist-types/components/form-core/translations/nl-NL.d.ts.map +1 -0
- package/dist-types/components/form-core/translations/nl.d.ts +8 -0
- package/dist-types/components/form-core/translations/nl.d.ts.map +1 -0
- package/dist-types/components/form-core/translations/pl-PL.d.ts +8 -0
- package/dist-types/components/form-core/translations/pl-PL.d.ts.map +1 -0
- package/dist-types/components/form-core/translations/pl.d.ts +8 -0
- package/dist-types/components/form-core/translations/pl.d.ts.map +1 -0
- package/dist-types/components/form-core/translations/ro-RO.d.ts +8 -0
- package/dist-types/components/form-core/translations/ro-RO.d.ts.map +1 -0
- package/dist-types/components/form-core/translations/ro.d.ts +8 -0
- package/dist-types/components/form-core/translations/ro.d.ts.map +1 -0
- package/dist-types/components/form-core/translations/ru-RU.d.ts +8 -0
- package/dist-types/components/form-core/translations/ru-RU.d.ts.map +1 -0
- package/dist-types/components/form-core/translations/ru.d.ts +8 -0
- package/dist-types/components/form-core/translations/ru.d.ts.map +1 -0
- package/dist-types/components/form-core/translations/sk-SK.d.ts +8 -0
- package/dist-types/components/form-core/translations/sk-SK.d.ts.map +1 -0
- package/dist-types/components/form-core/translations/sk.d.ts +8 -0
- package/dist-types/components/form-core/translations/sk.d.ts.map +1 -0
- package/dist-types/components/form-core/translations/uk-UA.d.ts +8 -0
- package/dist-types/components/form-core/translations/uk-UA.d.ts.map +1 -0
- package/dist-types/components/form-core/translations/uk.d.ts +8 -0
- package/dist-types/components/form-core/translations/uk.d.ts.map +1 -0
- package/dist-types/components/form-core/translations/zh.d.ts +8 -0
- package/dist-types/components/form-core/translations/zh.d.ts.map +1 -0
- package/dist-types/components/form-core/types/FormControlMixinTypes.d.ts +0 -4
- package/dist-types/components/form-core/types/FormControlMixinTypes.d.ts.map +1 -1
- package/dist-types/components/form-core/types/registration/FormRegisteringMixinTypes.d.ts +14 -4
- package/dist-types/components/form-core/types/registration/FormRegisteringMixinTypes.d.ts.map +1 -1
- package/dist-types/components/helpers/src/SbActionLogger.d.ts.map +1 -1
- package/dist-types/components/input-file/src/LionInputFile.d.ts +12 -6
- package/dist-types/components/input-file/src/LionInputFile.d.ts.map +1 -1
- package/dist-types/components/input-file/translations/bg-BG.d.ts +3 -0
- package/dist-types/components/input-file/translations/bg.d.ts +3 -0
- package/dist-types/components/input-file/translations/cs-CZ.d.ts +3 -0
- package/dist-types/components/input-file/translations/cs.d.ts +3 -0
- package/dist-types/components/input-file/translations/de-DE.d.ts +3 -0
- package/dist-types/components/input-file/translations/de.d.ts +3 -0
- package/dist-types/components/input-file/translations/en-AU.d.ts +3 -0
- package/dist-types/components/input-file/translations/en-GB.d.ts +3 -0
- package/dist-types/components/input-file/translations/en-PH.d.ts +3 -0
- package/dist-types/components/input-file/translations/en-US.d.ts +3 -0
- package/dist-types/components/input-file/translations/en.d.ts +3 -0
- package/dist-types/components/input-file/translations/es-ES.d.ts +3 -0
- package/dist-types/components/input-file/translations/es.d.ts +3 -0
- package/dist-types/components/input-file/translations/fr-BE.d.ts +3 -0
- package/dist-types/components/input-file/translations/fr-FR.d.ts +3 -0
- package/dist-types/components/input-file/translations/fr.d.ts +3 -0
- package/dist-types/components/input-file/translations/hu-HU.d.ts +3 -0
- package/dist-types/components/input-file/translations/hu.d.ts +3 -0
- package/dist-types/components/input-file/translations/it-IT.d.ts +3 -0
- package/dist-types/components/input-file/translations/it.d.ts +3 -0
- package/dist-types/components/input-file/translations/nl-BE.d.ts +3 -0
- package/dist-types/components/input-file/translations/nl-NL.d.ts +3 -0
- package/dist-types/components/input-file/translations/nl.d.ts +3 -0
- package/dist-types/components/input-file/translations/pl-PL.d.ts +3 -0
- package/dist-types/components/input-file/translations/pl.d.ts +3 -0
- package/dist-types/components/input-file/translations/ro-RO.d.ts +3 -0
- package/dist-types/components/input-file/translations/ro.d.ts +3 -0
- package/dist-types/components/input-file/translations/ru-RU.d.ts +3 -0
- package/dist-types/components/input-file/translations/ru.d.ts +3 -0
- package/dist-types/components/input-file/translations/sk-SK.d.ts +3 -0
- package/dist-types/components/input-file/translations/sk.d.ts +3 -0
- package/dist-types/components/input-file/translations/uk-UA.d.ts +3 -0
- package/dist-types/components/input-file/translations/uk.d.ts +3 -0
- package/dist-types/components/input-file/translations/zh-CN.d.ts +3 -0
- package/dist-types/components/input-file/translations/zh.d.ts +3 -0
- package/dist-types/components/input-tel-dropdown/test/LionInputTelDropdown.test.d.ts.map +1 -1
- package/dist-types/components/listbox/src/LionOption.d.ts +1 -1
- package/dist-types/components/listbox/test-suites/ListboxMixin.suite.d.ts.map +1 -1
- package/dist-types/components/localize/src/date/utils/normalizeIntlDate.d.ts.map +1 -1
- package/dist-types/components/overlays/src/OverlayMixin.d.ts.map +1 -1
- package/dist-types/components/switch/src/LionSwitch.d.ts.map +1 -1
- package/dist-types/components/tabs/src/LionTabs.d.ts.map +1 -1
- package/dist-types/tsconfig.tsbuildinfo +1 -1
- package/docs/components/accordion/api-table.md +31 -0
- package/docs/components/button/api-table.md +104 -0
- package/docs/components/button/use-cases.md +11 -10
- package/docs/components/calendar/api-table.md +44 -0
- package/docs/components/checkbox-group/api-table.md +564 -0
- package/docs/components/checkbox-group/overview.md +2 -2
- package/docs/components/collapsible/api-table.md +36 -0
- package/docs/components/collapsible/assets/applyDemoCollapsibleStyles.js +6 -2
- package/docs/components/collapsible/overview.md +1 -1
- package/docs/components/combobox/api-table.md +256 -0
- package/docs/components/combobox/overview.md +4 -3
- package/docs/components/combobox/src/gh-combobox/gh-button.js +3 -1
- package/docs/components/combobox/src/gh-combobox/gh-combobox.js +9 -2
- package/docs/components/combobox/src/google-combobox/google-combobox.js +6 -8
- package/docs/components/combobox/src/md-combobox/MdFieldMixin.js +7 -3
- package/docs/components/combobox/src/md-combobox/style/md-ripple.js +1 -0
- package/docs/components/combobox/src/wa-combobox/wa-combobox.js +15 -3
- package/docs/components/combobox/use-cases.md +19 -17
- package/docs/components/dialog/api-table.md +45 -0
- package/docs/components/dialog/overview.md +1 -1
- package/docs/components/drawer/api-table.md +45 -0
- package/docs/components/fieldset/api-table.md +163 -0
- package/docs/components/fieldset/overview.md +5 -5
- package/docs/components/form/api-table.md +1 -0
- package/docs/components/form/overview.md +3 -3
- package/docs/components/icon/api-table.md +29 -0
- package/docs/components/icon/use-cases.md +1 -1
- package/docs/components/input/api-table.md +187 -0
- package/docs/components/input/overview.md +1 -1
- package/docs/components/input/use-cases.md +3 -2
- package/docs/components/input-amount/api-table.md +196 -0
- package/docs/components/input-amount/overview.md +3 -3
- package/docs/components/input-date/api-table.md +188 -0
- package/docs/components/input-date/overview.md +3 -3
- package/docs/components/input-datepicker/api-table.md +234 -0
- package/docs/components/input-datepicker/overview.md +5 -5
- package/docs/components/input-email/api-table.md +187 -0
- package/docs/components/input-email/overview.md +2 -2
- package/docs/components/input-file/api-table.md +272 -0
- package/docs/components/input-file/overview.md +1 -1
- package/docs/components/input-iban/api-table.md +187 -0
- package/docs/components/input-iban/overview.md +2 -2
- package/docs/components/input-range/api-table.md +198 -0
- package/docs/components/input-range/overview.md +2 -2
- package/docs/components/input-stepper/api-table.md +205 -0
- package/docs/components/input-stepper/overview.md +1 -1
- package/docs/components/input-tel/api-table.md +202 -0
- 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 +213 -0
- package/docs/components/input-tel-dropdown/overview.md +1 -1
- package/docs/components/input-tel-dropdown/src/intl-input-tel-dropdown.js +15 -5
- package/docs/components/listbox/api-table.md +293 -0
- package/docs/components/listbox/use-cases.md +1 -1
- package/docs/components/pagination/api-table.md +33 -0
- package/docs/components/progress-indicator/api-table.md +36 -0
- package/docs/components/progress-indicator/examples.md +11 -11
- package/docs/components/radio-group/api-table.md +378 -0
- package/docs/components/radio-group/overview.md +3 -3
- package/docs/components/select/api-table.md +181 -0
- package/docs/components/select/use-cases.md +1 -1
- package/docs/components/select-rich/api-table.md +288 -0
- package/docs/components/select-rich/use-cases.md +1 -1
- package/docs/components/steps/api-table.md +80 -0
- package/docs/components/switch/api-table.md +229 -0
- package/docs/components/tabs/api-table.md +32 -0
- package/docs/components/tabs/examples.md +1 -1
- package/docs/components/tabs/src/lea-tab-panel.js +3 -1
- package/docs/components/tabs/src/lea-tab.js +7 -2
- package/docs/components/textarea/api-table.md +192 -0
- package/docs/components/tooltip/api-table.md +53 -0
- 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/assets/_mermaid.svg.js +32 -8
- 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/api-table.md +34 -0
- package/docs/fundamentals/systems/core/overview.md +1 -1
- package/docs/fundamentals/systems/form/api-table.md +166 -0
- 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 +3 -3
- package/docs/fundamentals/systems/localize/api-table.md +65 -0
- package/docs/fundamentals/systems/localize/overview.md +4 -4
- package/docs/fundamentals/systems/overlays/_configuration-positioning.md +0 -9
- package/docs/fundamentals/systems/overlays/_edge-cases.md +74 -80
- package/docs/fundamentals/systems/overlays/api-table.md +168 -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 +5 -8
- package/docs/fundamentals/tools/helpers/action-logger.md +3 -6
- package/docs/fundamentals/tools/helpers/overview.md +1 -1
- package/docs/fundamentals/tools/singleton-manager/example-complex/demo-app.js +3 -1
- package/docs/fundamentals/tools/singleton-manager/example-fail/demo-app.js +3 -1
- package/docs/fundamentals/tools/singleton-manager/example-success/demo-app.js +3 -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 +6 -5
|
@@ -25,15 +25,16 @@ export const main = () => html`
|
|
|
25
25
|
<lion-combobox name="combo" label="Default">
|
|
26
26
|
${lazyRender(
|
|
27
27
|
listboxData.map(
|
|
28
|
-
(entry, i) =>
|
|
29
|
-
|
|
28
|
+
(entry, i) => html`
|
|
29
|
+
<lion-option .checked="${i === 0}" .choiceValue="${entry}">${entry}</lion-option>
|
|
30
|
+
`,
|
|
30
31
|
),
|
|
31
32
|
)}
|
|
32
33
|
</lion-combobox>
|
|
33
34
|
`;
|
|
34
35
|
```
|
|
35
36
|
|
|
36
|
-
[...show more](https://github.com/ing-bank/lion/blob/
|
|
37
|
+
[...show more](https://github.com/ing-bank/lion/blob/15a9d70cb690d26e6a2af8a6b5dbdda7e7b0112e/docs/components/combobox/extensions.md)
|
|
37
38
|
|
|
38
39
|
## Features
|
|
39
40
|
|
|
@@ -35,7 +35,9 @@ export class GhButton extends LionButton {
|
|
|
35
35
|
color: #24292e;
|
|
36
36
|
background-color: #fafbfc;
|
|
37
37
|
border-color: rgba(27, 31, 35, 0.15);
|
|
38
|
-
box-shadow:
|
|
38
|
+
box-shadow:
|
|
39
|
+
0 1px 0 rgba(27, 31, 35, 0.04),
|
|
40
|
+
inset 0 1px 0 hsla(0, 0%, 100%, 0.25);
|
|
39
41
|
transition: background-color 0.2s cubic-bezier(0.3, 0, 0.5, 1);
|
|
40
42
|
}
|
|
41
43
|
|
|
@@ -123,8 +123,15 @@ export class GhCombobox extends LionCombobox {
|
|
|
123
123
|
/** @configure LionCombobox */
|
|
124
124
|
|
|
125
125
|
:host {
|
|
126
|
-
font-family:
|
|
127
|
-
|
|
126
|
+
font-family:
|
|
127
|
+
apple-system,
|
|
128
|
+
BlinkMacSystemFont,
|
|
129
|
+
Segoe UI,
|
|
130
|
+
Helvetica,
|
|
131
|
+
Arial,
|
|
132
|
+
sans-serif,
|
|
133
|
+
Apple Color Emoji,
|
|
134
|
+
Segoe UI Emoji;
|
|
128
135
|
font-size: 14px;
|
|
129
136
|
}
|
|
130
137
|
|
|
@@ -403,15 +403,13 @@ export class GoogleCombobox extends LionCombobox {
|
|
|
403
403
|
),
|
|
404
404
|
prefix: () => renderLitAsNode(html` <span>${googleSearchIcon}</span> `),
|
|
405
405
|
suffix: () =>
|
|
406
|
-
renderLitAsNode(
|
|
407
|
-
|
|
408
|
-
),
|
|
406
|
+
renderLitAsNode(html`
|
|
407
|
+
<button aria-label="Search by voice">${googleVoiceSearchIcon}</button>
|
|
408
|
+
`),
|
|
409
409
|
'clear-btn': () =>
|
|
410
|
-
renderLitAsNode(
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
`,
|
|
414
|
-
),
|
|
410
|
+
renderLitAsNode(html`
|
|
411
|
+
<button @click="${this.__clearText}" aria-label="Clear text">${googleClearIcon}</button>
|
|
412
|
+
`),
|
|
415
413
|
};
|
|
416
414
|
}
|
|
417
415
|
|
|
@@ -48,7 +48,8 @@ export const MdFieldMixin = dedupeMixin(
|
|
|
48
48
|
transform: perspective(100px);
|
|
49
49
|
-ms-transform: none;
|
|
50
50
|
transform-origin: 0 0;
|
|
51
|
-
transition:
|
|
51
|
+
transition:
|
|
52
|
+
transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1),
|
|
52
53
|
color 0.4s cubic-bezier(0.25, 0.8, 0.25, 1),
|
|
53
54
|
width 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
|
|
54
55
|
/* z-index: 1; */
|
|
@@ -205,7 +206,9 @@ export const MdFieldMixin = dedupeMixin(
|
|
|
205
206
|
background-position: 50%;
|
|
206
207
|
transform: scale(10, 10);
|
|
207
208
|
opacity: 0;
|
|
208
|
-
transition:
|
|
209
|
+
transition:
|
|
210
|
+
transform 0.25s,
|
|
211
|
+
opacity 0.5s;
|
|
209
212
|
}
|
|
210
213
|
|
|
211
214
|
.input-group__container > .input-group__prefix ::slotted(button:active)::after,
|
|
@@ -288,7 +291,8 @@ export const MdFieldMixin = dedupeMixin(
|
|
|
288
291
|
visibility: visible;
|
|
289
292
|
opacity: 1;
|
|
290
293
|
transform: scaleX(1);
|
|
291
|
-
transition:
|
|
294
|
+
transition:
|
|
295
|
+
transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1),
|
|
292
296
|
opacity 0.1s cubic-bezier(0.25, 0.8, 0.25, 1),
|
|
293
297
|
background-color 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
|
|
294
298
|
}
|
|
@@ -28,7 +28,9 @@ class WaOption extends LionOption {
|
|
|
28
28
|
cursor: pointer;
|
|
29
29
|
color: rgb(74, 74, 74);
|
|
30
30
|
padding: 0;
|
|
31
|
-
transition:
|
|
31
|
+
transition:
|
|
32
|
+
max-height 0.4s ease,
|
|
33
|
+
opacity 0.3s ease;
|
|
32
34
|
max-height: 500px;
|
|
33
35
|
}
|
|
34
36
|
|
|
@@ -287,8 +289,18 @@ class WaCombobox extends LionCombobox {
|
|
|
287
289
|
...super.styles,
|
|
288
290
|
css`
|
|
289
291
|
:host {
|
|
290
|
-
font-family:
|
|
291
|
-
|
|
292
|
+
font-family:
|
|
293
|
+
SF Pro Text,
|
|
294
|
+
SF Pro Icons,
|
|
295
|
+
system,
|
|
296
|
+
-apple-system,
|
|
297
|
+
system-ui,
|
|
298
|
+
BlinkMacSystemFont,
|
|
299
|
+
Helvetica Neue,
|
|
300
|
+
Helvetica,
|
|
301
|
+
Lucida Grande,
|
|
302
|
+
Kohinoor Devanagari,
|
|
303
|
+
sans-serif;
|
|
292
304
|
}
|
|
293
305
|
|
|
294
306
|
.input-group__container {
|
|
@@ -242,8 +242,9 @@ export const multipleChoice = () => html`
|
|
|
242
242
|
></demo-selection-display>
|
|
243
243
|
${lazyRender(
|
|
244
244
|
listboxData.map(
|
|
245
|
-
(entry, i) =>
|
|
246
|
-
|
|
245
|
+
(entry, i) => html`
|
|
246
|
+
<lion-option .choiceValue="${entry}" ?checked=${i === 0}>${entry}</lion-option>
|
|
247
|
+
`,
|
|
247
248
|
),
|
|
248
249
|
)}
|
|
249
250
|
</lion-combobox>
|
|
@@ -264,8 +265,9 @@ export const multipleCustomizableChoice = () => html`
|
|
|
264
265
|
></demo-selection-display>
|
|
265
266
|
${lazyRender(
|
|
266
267
|
listboxData.map(
|
|
267
|
-
(entry, i) =>
|
|
268
|
-
|
|
268
|
+
(entry, i) => html`
|
|
269
|
+
<lion-option .choiceValue="${entry}" ?checked=${i === 0}>${entry}</lion-option>
|
|
270
|
+
`,
|
|
269
271
|
),
|
|
270
272
|
)}
|
|
271
273
|
</lion-combobox>
|
|
@@ -434,26 +436,26 @@ const onModelValueChanged = event => {
|
|
|
434
436
|
console.log(`event.target.modelValue: ${JSON.stringify(event.target.modelValue)}`);
|
|
435
437
|
};
|
|
436
438
|
|
|
437
|
-
export const complexObjectChoiceValue = () =>
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
html`
|
|
439
|
+
export const complexObjectChoiceValue = () =>
|
|
440
|
+
html` <complex-object-combobox
|
|
441
|
+
name="combo"
|
|
442
|
+
label="Display only the label once selected"
|
|
443
|
+
@model-value-changed="${onModelValueChanged}"
|
|
444
|
+
>
|
|
445
|
+
${lazyRender(
|
|
446
|
+
listboxComplexData.map(
|
|
447
|
+
entry => html`
|
|
446
448
|
<lion-option .choiceValue="${entry.label}">
|
|
447
449
|
<div data-key>${entry.label}</div>
|
|
448
450
|
<small>${entry.description}</small>
|
|
449
451
|
</lion-option>
|
|
450
452
|
`,
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
</complex-object-combobox>`;
|
|
453
|
+
),
|
|
454
|
+
)}
|
|
455
|
+
</complex-object-combobox>`;
|
|
454
456
|
```
|
|
455
457
|
|
|
456
458
|
## Listbox compatibility
|
|
457
459
|
|
|
458
460
|
All configurations that can be applied to `lion-listbox`, can be applied to `lion-combobox` as well.
|
|
459
|
-
See the [listbox documentation](https://github.com/ing-bank/lion/blob/
|
|
461
|
+
See the [listbox documentation](https://github.com/ing-bank/lion/blob/15a9d70cb690d26e6a2af8a6b5dbdda7e7b0112e/docs/components/listbox/overview.md) for more information.
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
# Dialog >> API Table ||90
|
|
2
|
+
|
|
3
|
+
## class: `LionDialog`, `lion-dialog`
|
|
4
|
+
|
|
5
|
+
### Fields
|
|
6
|
+
|
|
7
|
+
| Name | Privacy | Type | Default | Description | Inherited From |
|
|
8
|
+
| ---------------------------- | --------- | ------------------------ | ------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------- |
|
|
9
|
+
| `config` | public | `Partial<OverlayConfig>` | `{}` | Configure the many options of the \`OverlayController\` | OverlayMixin |
|
|
10
|
+
| `_overlayInvokerNode` | protected | | | | OverlayMixin |
|
|
11
|
+
| `_overlayReferenceNode` | protected | | | | OverlayMixin |
|
|
12
|
+
| `_overlayBackdropNode` | protected | | | | OverlayMixin |
|
|
13
|
+
| `_overlayContentNode` | protected | | | | OverlayMixin |
|
|
14
|
+
| `_overlayContentWrapperNode` | protected | | | | OverlayMixin |
|
|
15
|
+
| `opened` | public | `boolean` | `false` | If you add the opened attribute a dialog will be opened on page load. The invoker can be left out
in case the user does not need to be able to reopen the dialog. | OverlayMixin |
|
|
16
|
+
|
|
17
|
+
### Methods
|
|
18
|
+
|
|
19
|
+
| Name | Privacy | Description | Parameters | Return | Inherited From |
|
|
20
|
+
| ---------------------------------- | --------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------ | ------------------- | -------------- |
|
|
21
|
+
| `_defineOverlayConfig` | protected | | | `OverlayConfig` | OverlayMixin |
|
|
22
|
+
| `_defineOverlay` | protected | | `{ contentNode, invokerNode, referenceNode, backdropNode, contentWrapperNode }, config: DefineOverlayConfig` | `OverlayController` | OverlayMixin |
|
|
23
|
+
| `_setupOpenCloseListeners` | protected | | | | OverlayMixin |
|
|
24
|
+
| `_teardownOpenCloseListeners` | protected | | | | OverlayMixin |
|
|
25
|
+
| `_setupOverlayCtrl` | protected | | | | OverlayMixin |
|
|
26
|
+
| `_teardownOverlayCtrl` | protected | | | | OverlayMixin |
|
|
27
|
+
| `_setOpenedWithoutPropertyEffects` | protected | When the opened state is changed by an Application Developer,cthe OverlayController is
requested to show/hide. It might happen that this request is not honoured
(intercepted in before-hide for instance), so that we need to sync the controller state
to this webcomponent again, preventing eternal loops. | `newOpened: boolean` | | OverlayMixin |
|
|
28
|
+
| `toggle` | public | Toggles the overlay | | | OverlayMixin |
|
|
29
|
+
| `open` | public | Shows the overlay | | | OverlayMixin |
|
|
30
|
+
| `close` | public | Hides the overlay | | | OverlayMixin |
|
|
31
|
+
| `repositionOverlay` | public | Sometimes it's needed to recompute Popper position of an overlay, for instance when we have
an opened combobox and the surrounding context changes (the space consumed by the textbox
increases vertically) | | | OverlayMixin |
|
|
32
|
+
|
|
33
|
+
### Events
|
|
34
|
+
|
|
35
|
+
| Name | Type | Description | Inherited From |
|
|
36
|
+
| ---------------- | ------- | ----------- | -------------- |
|
|
37
|
+
| `opened-changed` | `Event` | | OverlayMixin |
|
|
38
|
+
|
|
39
|
+
### Attributes
|
|
40
|
+
|
|
41
|
+
| Name | Field | Inherited From |
|
|
42
|
+
| -------- | ------ | -------------- |
|
|
43
|
+
| `opened` | opened | OverlayMixin |
|
|
44
|
+
|
|
45
|
+
<hr/>
|
|
@@ -54,6 +54,6 @@ import '@lion/ui/define/lion-dialog.js';
|
|
|
54
54
|
## Changing the configuration
|
|
55
55
|
|
|
56
56
|
You can use the `.config` property on the dialog to change the configuration.
|
|
57
|
-
The documentation of the full config object can be found in the `overlays` folder or here in [Overlay System - Configuration](https://github.com/ing-bank/lion/blob/
|
|
57
|
+
The documentation of the full config object can be found in the `overlays` folder or here in [Overlay System - Configuration](https://github.com/ing-bank/lion/blob/15a9d70cb690d26e6a2af8a6b5dbdda7e7b0112e/docs/fundamentals/systems/overlays/configuration.md).
|
|
58
58
|
|
|
59
59
|
The `config` property uses a setter to merge the passed configuration with the current, so you only **overwrite what you pass** when updating `config`.
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
# Drawer >> API Table ||90
|
|
2
|
+
|
|
3
|
+
## class: `LionDrawer`, `lion-drawer`
|
|
4
|
+
|
|
5
|
+
### Fields
|
|
6
|
+
|
|
7
|
+
| Name | Privacy | Type | Default | Description | Inherited From |
|
|
8
|
+
| ---------------- | --------- | --------- | ------- | ---------------------------------------------------------------------------- | --------------- |
|
|
9
|
+
| `position` | public | `string` | | Setter for position property, available values are 'top', 'left' and 'right' | |
|
|
10
|
+
| `_contentWidth` | protected | | | | |
|
|
11
|
+
| `_contentHeight` | protected | | | | LionCollapsible |
|
|
12
|
+
| `transitioning` | public | `boolean` | | | |
|
|
13
|
+
| `opened` | public | `boolean` | `false` | | LionCollapsible |
|
|
14
|
+
| `_invokerNode` | protected | | | | LionCollapsible |
|
|
15
|
+
| `_contentNode` | protected | | | | LionCollapsible |
|
|
16
|
+
|
|
17
|
+
### Methods
|
|
18
|
+
|
|
19
|
+
| Name | Privacy | Description | Parameters | Return | Inherited From |
|
|
20
|
+
| -------------------- | --------- | -------------------------------------------------------------- | -------------------------------------------------------------------------- | --------------- | --------------- |
|
|
21
|
+
| `__setBoundaries` | protected | | | | |
|
|
22
|
+
| `_showAnimation` | protected | Trigger show animation and wait for transition to be finished. | `{ contentNode }, options: @param {HTMLElement} options.contentNode * ` | | LionCollapsible |
|
|
23
|
+
| `_hideAnimation` | protected | Trigger hide animation and wait for transition to be finished. | `{ contentNode }, options: @param {HTMLElement} options.contentNode * ` | | LionCollapsible |
|
|
24
|
+
| `_waitForTransition` | protected | Wait until the transition event is finished. | `{ contentNode }, options: @param {HTMLElement} options.contentNode * ` | `Promise<void>` | |
|
|
25
|
+
| `_openedChanged` | protected | | | | |
|
|
26
|
+
| `_updateContentSize` | protected | | | | |
|
|
27
|
+
| `show` | public | Show extra content. | | | LionCollapsible |
|
|
28
|
+
| `hide` | public | Hide extra content. | | | LionCollapsible |
|
|
29
|
+
| `toggle` | public | Toggle the current(opened/closed) state. | | | LionCollapsible |
|
|
30
|
+
|
|
31
|
+
### Events
|
|
32
|
+
|
|
33
|
+
| Name | Type | Description | Inherited From |
|
|
34
|
+
| ---------------- | ------------- | ----------- | --------------- |
|
|
35
|
+
| `opened-changed` | `CustomEvent` | | LionCollapsible |
|
|
36
|
+
|
|
37
|
+
### Attributes
|
|
38
|
+
|
|
39
|
+
| Name | Field | Inherited From |
|
|
40
|
+
| --------------- | ------------- | --------------- |
|
|
41
|
+
| `transitioning` | transitioning | |
|
|
42
|
+
| `opened` | opened | LionCollapsible |
|
|
43
|
+
| `position` | position | |
|
|
44
|
+
|
|
45
|
+
<hr/>
|