@lion/ui 0.7.3 → 0.7.5
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/combobox/src/LionCombobox.js +35 -22
- package/components/combobox/test/lion-combobox.test.js +109 -66
- package/components/form/src/LionForm.js +11 -2
- package/components/form/test/lion-form.test.js +21 -2
- 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 +1 -1
- 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/input-amount/test/lion-input-amount.test.js +3 -0
- package/components/input-file/src/LionInputFile.js +88 -30
- package/components/input-file/test/lion-input-file.test.js +102 -6
- 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/overlays/src/OverlayMixin.js +8 -1
- package/components/switch/src/LionSwitch.js +10 -0
- package/components/tabs/src/LionTabs.js +10 -0
- package/components/tabs/test/lion-tabs.test.js +49 -38
- package/custom-elements.json +85378 -74680
- 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/form/src/LionForm.d.ts.map +1 -1
- package/dist-types/components/form/test/lion-form.test.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/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/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/listbox/src/LionOption.d.ts +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/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/overview.md +1 -1
- package/docs/components/combobox/api-table.md +256 -0
- package/docs/components/combobox/overview.md +1 -1
- package/docs/components/combobox/use-cases.md +1 -1
- 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-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/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/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/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/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 +2 -2
- package/docs/fundamentals/systems/localize/api-table.md +65 -0
- package/docs/fundamentals/systems/localize/overview.md +4 -4
- 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 +2 -2
- package/docs/fundamentals/tools/helpers/overview.md +1 -1
- package/docs/fundamentals/tools/singleton-manager/overview.md +4 -4
- package/docs/guides/how-to/create-a-custom-field.md +5 -5
- package/docs/guides/how-to/create-a-form.md +4 -4
- package/docs/guides/how-to/extend-a-native-input.md +2 -2
- package/docs/guides/index.md +8 -8
- package/docs/guides/principles/index.md +5 -5
- package/docs/guides/principles/styling.md +1 -1
- package/package.json +5 -4
|
@@ -34,7 +34,7 @@ export const main = () => html`
|
|
|
34
34
|
`;
|
|
35
35
|
```
|
|
36
36
|
|
|
37
|
-
[...show more](https://github.com/ing-bank/lion/blob/
|
|
37
|
+
[...show more](https://github.com/ing-bank/lion/blob/b15d2aae1a8d40d3551822279e1a650633dba428/docs/components/combobox/extensions.md)
|
|
38
38
|
|
|
39
39
|
## Features
|
|
40
40
|
|
|
@@ -458,4 +458,4 @@ export const complexObjectChoiceValue = () =>
|
|
|
458
458
|
## Listbox compatibility
|
|
459
459
|
|
|
460
460
|
All configurations that can be applied to `lion-listbox`, can be applied to `lion-combobox` as well.
|
|
461
|
-
See the [listbox documentation](https://github.com/ing-bank/lion/blob/
|
|
461
|
+
See the [listbox documentation](https://github.com/ing-bank/lion/blob/b15d2aae1a8d40d3551822279e1a650633dba428/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/b15d2aae1a8d40d3551822279e1a650633dba428/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/>
|
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
# Fieldset >> API Table ||90
|
|
2
|
+
|
|
3
|
+
## class: `LionFieldset`, `lion-fieldset`
|
|
4
|
+
|
|
5
|
+
### Fields
|
|
6
|
+
|
|
7
|
+
| Name | Privacy | Type | Default | Description | Inherited From |
|
|
8
|
+
| ------------------------------------ | --------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------ |
|
|
9
|
+
| `_isFormOrFieldset` | protected | `boolean` | `true` | Flag that determines how ".formElements" should behave.
For a regular fieldset (see LionFieldset) we expect ".formElements"
to be accessible as an object.
In case of a radio-group, a checkbox-group or a select/listbox,
it should act like an array (see ChoiceGroupMixin).
Usually, when false, we deal with a choice-group (radio-group, checkbox-group,
(multi)select) | FormRegistrarMixin |
|
|
10
|
+
| `_repropagationRole` | public | `'child'\|'choice-group'\|'fieldset'` | `'fieldset'` | Based on the role, details of handling model-value-changed repropagation differ. | FormControlMixin |
|
|
11
|
+
| `_inputNode` | protected | | | The host element with role group (or radio-group or form) containing necessary aria attributes | FormControlMixin |
|
|
12
|
+
| `modelValue` | public | | | Object keyed by formElements names, containing formElements' modelValues | FormControlMixin |
|
|
13
|
+
| `serializedValue` | public | | | Object keyed by formElements names, containing formElements' serializedValues | FormGroupMixin |
|
|
14
|
+
| `formattedValue` | public | | | Object keyed by formElements names, containing formElements' formattedValues | FormGroupMixin |
|
|
15
|
+
| `prefilled` | public | `boolean` | | True when all of the children are prefilled (see InteractionStateMixin for more details.) | FormGroupMixin |
|
|
16
|
+
| `_initialModelValue` | protected | | | Gathers initial model values of all children. Used when resetGroup() is called. | FormGroupMixin |
|
|
17
|
+
| `value` | public | `string` | `''` | | FormGroupMixin |
|
|
18
|
+
| `disabled` | public | `boolean` | `false` | Disables all formElements in group | DisabledMixin |
|
|
19
|
+
| `submitted` | public | `boolean` | `false` | True when parent form is submitted | FormGroupMixin |
|
|
20
|
+
| `dirty` | public | `boolean` | `false` | True when any of the children is dirty (see InteractionStateMixin for more details.) | FormGroupMixin |
|
|
21
|
+
| `touched` | public | `boolean` | `false` | True when the group as a whole is blurred (see InteractionStateMixin for more details.) | FormGroupMixin |
|
|
22
|
+
| `focused` | public | `boolean` | `false` | True when any of the children is focused. | FormGroupMixin |
|
|
23
|
+
| `defaultValidators` | public | `Validator[]` | `[new FormElementsHaveNoError()]` | Used by Subclassers to add default Validators to a particular FormControl.
A date input for instance, always needs the isDate validator. | ValidateMixin |
|
|
24
|
+
| `__descriptionElementsInParentChain` | protected | | `new Set()` | | FormGroupMixin |
|
|
25
|
+
| `__pendingValues` | protected | `{modelValue?:{[key:string]: any}, serializedValue?:{[key:string]: any}}` | `{ modelValue: {}, serializedValue: {} }` | | FormGroupMixin |
|
|
26
|
+
| `formElements` | public | `FormControlsCollection` | `new FormControlsCollection()` | Closely mimics the natively supported HTMLFormControlsCollection. It can be accessed
both like an array and an object (based on control/element names). | FormRegistrarMixin |
|
|
27
|
+
| `initComplete` | public | `Promise<any>` | `new Promise((resolve, reject) => {
|
|
28
|
+
this.__resolveInitComplete = resolve;
|
|
29
|
+
this.__rejectInitComplete = reject;
|
|
30
|
+
})` | initComplete resolves after all pending initialization logic
(for instance \`\<form-group .serializedValue=${{ child1: 'a', child2: 'b' }}>\`)
is executed | FormRegistrarMixin |
|
|
31
|
+
| `registrationComplete` | public | `Promise<any> & {done?:boolean}` | `new Promise((resolve, reject) => {
|
|
32
|
+
this.__resolveRegistrationComplete = resolve;
|
|
33
|
+
this.__rejectRegistrationComplete = reject;
|
|
34
|
+
})` | registrationComplete waits for all children formElements to have registered | FormRegistrarMixin |
|
|
35
|
+
| `done` | public | `boolean` | `false` | | FormRegistrarMixin |
|
|
36
|
+
| `label` | public | `string` | `''` | The label text for the input node.
When no value is defined, textContent of \[slot=label] will be used | FormControlMixin |
|
|
37
|
+
| `helpText` | public | `string` | `''` | The helpt text for the input node.
When no value is defined, textContent of \[slot=help-text] will be used | FormControlMixin |
|
|
38
|
+
| `fieldName` | public | `string` | | Will be used in validation messages to refer to the current field | FormControlMixin |
|
|
39
|
+
| `_labelNode` | protected | | | Element where label will be rendered to | FormControlMixin |
|
|
40
|
+
| `_helpTextNode` | protected | | | Element where help text will be rendered to | FormControlMixin |
|
|
41
|
+
| `_feedbackNode` | protected | | | Element where validation feedback will be rendered to | FormControlMixin |
|
|
42
|
+
| `readOnly` | public | `boolean` | `false` | A Boolean attribute which, if present, indicates that the user should not be able to edit
the value of the input. The difference between disabled and readonly is that read-only
controls can still function, whereas disabled controls generally do not function as
controls until they are enabled.
(From: https\://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#attr-readonly) | FormControlMixin |
|
|
43
|
+
| `labelSrOnly` | public | `boolean` | `false` | The label will only be visible for srceen readers when true | FormControlMixin |
|
|
44
|
+
| `_inputId` | protected | `string` | | Unique id that can be used in all light dom | FormControlMixin |
|
|
45
|
+
| `_ariaLabelledNodes` | public | `HTMLElement[]` | `[]` | Contains all elements that should end up in aria-labelledby of \`.\_inputNode\` | FormControlMixin |
|
|
46
|
+
| `_ariaDescribedNodes` | public | `HTMLElement[]` | `[]` | Contains all elements that should end up in aria-describedby of \`.\_inputNode\` | FormControlMixin |
|
|
47
|
+
| `_isRepropagationEndpoint` | public | `boolean` | `false` | By default, a field with \_repropagationRole 'choice-group' will act as an
'endpoint'. This means it will be considered as an individual field: for
a select, individual options will not be part of the formPath. They
will.
Similarly, components that (a11y wise) need to be fieldsets, but 'interaction wise'
(from Application Developer perspective) need to be more like fields
(think of an amount-input with a currency select box next to it), can set this
to true to hide private internals in the formPath. | FormControlMixin |
|
|
48
|
+
| `operationMode` | public | `OperationMode` | | Types of input interaction of the FormControl (for instance 'enter'\|'select'\|'upload') | ValidateMixin |
|
|
49
|
+
| `_allValidators` | protected | `Validator[]` | | Combination of validators provided by Application Developer and the default validators | ValidateMixin |
|
|
50
|
+
| `_feedbackConditionMeta` | protected | | | Allows Subclassers to add meta info for feedbackCondition | ValidateMixin |
|
|
51
|
+
| `hasFeedbackFor` | public | `ValidationType[]` | `[]` | As soon as validation happens (after modelValue/validators/validator param change), this
array is updated with the active ValidationTypes ('error'\|'warning'\|'success'\|'info' etc.).
Notice the difference with \`.showsFeedbackFor\`, which filters \`.hasFeedbackFor\` based on
\`.feedbackCondition()\`.

For styling purposes, will be reflected to \[has-feedback-for="error warning"]. This can
be useful for subtle visual feedback on keyup, like a red/green border around an input. | ValidateMixin |
|
|
52
|
+
| `showsFeedbackFor` | public | `ValidationType[]` | `[]` | Based on outcome of feedbackCondition, this array decides what ValidationTypes should be
shown in validationFeedback, based on meta data like interaction states.

For styling purposes, it reflects it \`\[shows-feedback-for="error warning"]\` | ValidateMixin |
|
|
53
|
+
| `validationStates` | public | `ValidationStates` | `{}` | The outcome of a validation 'round'. Keyed by ValidationType and Validator name | ValidateMixin |
|
|
54
|
+
| `isPending` | public | `boolean` | `false` | Flag indicating whether async validation is pending.
Creates attribute \[is-pending] as a styling hook | ValidateMixin |
|
|
55
|
+
| `validators` | public | `Validator[]` | `[]` | Used by Application Developers to add Validators to a FormControl. | ValidateMixin |
|
|
56
|
+
| `_visibleMessagesAmount` | protected | `number` | `1` | The amount of feedback messages that will visible in LionValidationFeedback | ValidateMixin |
|
|
57
|
+
| `_requestedToBeDisabled` | protected | `boolean` | `false` | | DisabledMixin |
|
|
58
|
+
|
|
59
|
+
### Methods
|
|
60
|
+
|
|
61
|
+
| Name | Privacy | Description | Parameters | Return | Inherited From |
|
|
62
|
+
| -------------------------------------------- | --------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | --------------------------- | ------------------ |
|
|
63
|
+
| `__initInteractionStates` | protected | | | | FormGroupMixin |
|
|
64
|
+
| `_triggerInitialModelValueChangedEvent` | protected | | | | FormControlMixin |
|
|
65
|
+
| `__setupOutsideClickHandling` | protected | | | | FormGroupMixin |
|
|
66
|
+
| `_checkForOutsideClick` | protected | | `event: Event` | | FormGroupMixin |
|
|
67
|
+
| `__requestChildrenToBeDisabled` | protected | | | | FormGroupMixin |
|
|
68
|
+
| `__retractRequestChildrenToBeDisabled` | protected | | | | FormGroupMixin |
|
|
69
|
+
| `_inputGroupTemplate` | protected | | | `TemplateResult` | FormControlMixin |
|
|
70
|
+
| `submitGroup` | public | Handles interaction state 'submitted'.
This allows children to enable visibility of validation feedback | | | FormGroupMixin |
|
|
71
|
+
| `resetGroup` | public | Resets to initial/prefilled values and interaction states of all FormControls in group, | | | FormGroupMixin |
|
|
72
|
+
| `clearGroup` | public | Clears all values and resets all interaction states of all FormControls in group, | | | FormGroupMixin |
|
|
73
|
+
| `resetInteractionState` | public | Resets all interaction states for all formElements | | | FormGroupMixin |
|
|
74
|
+
| `_getFromAllFormElementsFilter` | protected | A filter function which will exclude a form field when returning false
By default, exclude form fields which are disabled

The type is be passed as well for more fine grained control, e.g.
distinguish the filter when fetching modelValue versus serializedValue | `el: FormControl, type: string` | `boolean` | FormGroupMixin |
|
|
75
|
+
| `_getFromAllFormElements` | protected | Gets a keyed be name object for requested property (like modelValue/serializedValue) | `property: string, filterFn: (el: FormControl, property?: string) => boolean` | `{[name:string]: any}` | FormGroupMixin |
|
|
76
|
+
| `_setValueForAllFormElements` | protected | Sets the same value for requested property in all formElements | `property: string \| number, value: any` | | FormGroupMixin |
|
|
77
|
+
| `_setValueMapForAllFormElements` | protected | Allows to set formElements values via a keyed object structure | `property: string, values: { [x: string]: any; }` | | FormGroupMixin |
|
|
78
|
+
| `_anyFormElementHas` | protected | Returns true when one of the formElements has requested | `property: string` | | FormGroupMixin |
|
|
79
|
+
| `_anyFormElementHasFeedbackFor` | protected | | `state: string` | | FormGroupMixin |
|
|
80
|
+
| `_everyFormElementHas` | protected | Returns true when all of the formElements have requested property | `property: string` | | FormGroupMixin |
|
|
81
|
+
| `__onChildValidatePerformed` | protected | Gets triggered by event 'validate-performed' which enabled us to handle 2 different situations
 \- react on modelValue change, which says something about the validity as a whole
 (at least two checkboxes for instance) and nothing about the children's values
 \- children validity states have changed, so fieldset needs to update itself based on that | `ev: Event` | | FormGroupMixin |
|
|
82
|
+
| `_syncFocused` | protected | | | | FormGroupMixin |
|
|
83
|
+
| `_onFocusOut` | protected | | `ev: Event` | | FormGroupMixin |
|
|
84
|
+
| `_syncDirty` | protected | | | | FormGroupMixin |
|
|
85
|
+
| `__storeAllDescriptionElementsInParentChain` | protected | Traverses the \_parentFormGroup tree, and gathers all aria description elements
(feedback) that should be provided to children.

In the example below, when the input for 'street' has focus, a screenreader user
would hear the #group-error.
In case one of the inputs was in error state as well, the SR user would
first hear the local error, followed by #group-error | | | FormGroupMixin |
|
|
86
|
+
| `__linkParentMessages` | protected | | `child: FormControl` | | FormGroupMixin |
|
|
87
|
+
| `__unlinkParentMessages` | protected | | `child: FormControl` | | FormGroupMixin |
|
|
88
|
+
| `addFormElement` | public | | `child: FormControl & {serializedValue:string\|object}, indexToInsertAt: number` | | FormRegistrarMixin |
|
|
89
|
+
| `removeFormElement` | public | | `el: FormRegisteringHost & FormControl` | | FormRegistrarMixin |
|
|
90
|
+
| `_isEmpty` | protected | Used for Required validation and computation of interaction states | `modelValue: any` | `boolean` | FormControlMixin |
|
|
91
|
+
| `_completeRegistration` | protected | Resolves the registrationComplete promise. Subclassers can delay if needed | | | FormRegistrarMixin |
|
|
92
|
+
| `isRegisteredFormElement` | public | | `el: ElementWithParentFormGroup` | | FormRegistrarMixin |
|
|
93
|
+
| `_onRequestToAddFormElement` | protected | Hook for Subclassers to perform logic before an element is added | `ev: CustomEvent` | | FormRegistrarMixin |
|
|
94
|
+
| `_onRequestToChangeFormElementName` | protected | | `ev: CustomEvent` | | FormRegistrarMixin |
|
|
95
|
+
| `_onRequestToRemoveFormElement` | protected | | `ev: CustomEvent` | | FormRegistrarMixin |
|
|
96
|
+
| `_enhanceLightDomClasses` | protected | | | | FormControlMixin |
|
|
97
|
+
| `_enhanceLightDomA11y` | protected | | | | FormControlMixin |
|
|
98
|
+
| `_enhanceLightDomA11yForAdditionalSlots` | protected | Enhances additional slots(prefix, suffix, before, after) defined by developer.

When boolean attribute data-label or data-description is found,
the slot element will be connected to the input via aria-labelledby or aria-describedby | `additionalSlots: string[]` | | FormControlMixin |
|
|
99
|
+
| `__reflectAriaAttr` | protected | Will handle help text, validation feedback and character counter,
prefix/suffix/before/after (if they contain data-description flag attr).
Also, contents of id references that will be put in the \<lion-field>.\_ariaDescribedby property
from an external context, will be read by a screen reader. | `attrName: string, nodes: Element[], reorder: boolean\|undefined` | | FormControlMixin |
|
|
100
|
+
| `_groupOneTemplate` | protected | | | `TemplateResult` | FormControlMixin |
|
|
101
|
+
| `_groupTwoTemplate` | protected | | | `TemplateResult` | FormControlMixin |
|
|
102
|
+
| `_labelTemplate` | protected | | | `TemplateResult` | FormControlMixin |
|
|
103
|
+
| `_helpTextTemplate` | protected | | | `TemplateResult` | FormControlMixin |
|
|
104
|
+
| `_inputGroupBeforeTemplate` | protected | | | `TemplateResult` | FormControlMixin |
|
|
105
|
+
| `_inputGroupPrefixTemplate` | protected | | | `TemplateResult \| nothing` | FormControlMixin |
|
|
106
|
+
| `_inputGroupInputTemplate` | protected | | | `TemplateResult` | FormControlMixin |
|
|
107
|
+
| `_inputGroupSuffixTemplate` | protected | | | `TemplateResult \| nothing` | FormControlMixin |
|
|
108
|
+
| `_inputGroupAfterTemplate` | protected | | | `TemplateResult` | FormControlMixin |
|
|
109
|
+
| `_feedbackTemplate` | protected | | | `TemplateResult` | FormControlMixin |
|
|
110
|
+
| `_getAriaDescriptionElements` | protected | This function exposes descripion elements that a FormGroup should expose to its
children. See FormGroupMixin.\_\_getAllDescriptionElementsInParentChain() | | `Array.<HTMLElement>` | FormControlMixin |
|
|
111
|
+
| `addToAriaLabelledBy` | public | Allows to add extra element references to aria-labelledby attribute. | `element: HTMLElement, { idPrefix = '', reorder = true }, customConfig: {idPrefix?:string; reorder?: boolean}` | | FormControlMixin |
|
|
112
|
+
| `removeFromAriaLabelledBy` | public | Allows to remove element references from aria-labelledby attribute. | `element: HTMLElement` | | FormControlMixin |
|
|
113
|
+
| `addToAriaDescribedBy` | public | Allows to add element references to aria-describedby attribute. | `element: HTMLElement, { idPrefix = '', reorder = true }, customConfig: {idPrefix?:string; reorder?: boolean}` | | FormControlMixin |
|
|
114
|
+
| `removeFromAriaDescribedBy` | public | Allows to remove element references from aria-describedby attribute. | `element: HTMLElement` | | FormControlMixin |
|
|
115
|
+
| `__getDirectSlotChild` | protected | | `slotName: string` | `HTMLElement \| undefined` | FormControlMixin |
|
|
116
|
+
| `_dispatchInitialModelValueChangedEvent` | protected | | | | FormControlMixin |
|
|
117
|
+
| `_onBeforeRepropagateChildrenValues` | protected | Hook for Subclassers to add logic before repropagation | `ev: CustomEvent` | | FormControlMixin |
|
|
118
|
+
| `__repropagateChildrenValues` | protected | | `ev: CustomEvent` | | FormControlMixin |
|
|
119
|
+
| `_repropagationCondition` | protected | Based on provided target, this condition determines whether received model-value-changed
event should be repropagated | `target: FormControlHost` | | FormControlMixin |
|
|
120
|
+
| `_onLabelClick` | protected | | | | FormControlMixin |
|
|
121
|
+
| `updateSync` | public | | `name: string, oldValue: ?` | | ValidateMixin |
|
|
122
|
+
| `validate` | public | Triggered by:
 \- modelValue change
 \- change in the 'validators' array
 \- change in the config of an individual Validator

Three situations are handled:
- a1) the FormControl is empty: further execution is halted. When the Required Validator
(being mutually exclusive to the other Validators) is applied, it will end up in the
validation result (as the only Validator, since further execution was halted).
- a2) there are synchronous Validators: this is the most common flow. When modelValue hasn't
changed since last async results were generated, 'sync results' are merged with the
'async results'.
- a3) there are asynchronous Validators: for instance when server side evaluation is needed.
Executions are scheduled and awaited and the 'async results' are merged with the
'sync results'.

- b) there are MetaValidators. After steps a1, a2, or a3 are finished, the holistic
MetaValidators (evaluating the total result of the 'regular' (a1, a2 and a3) validators)
will be run...

Situations a2 and a3 are not mutually exclusive and can be triggered within one \`validate()\`
call. Situation b will occur after every call. | `{ clearCurrentResult = false }, opts: { clearCurrentResult?: boolean }` | | ValidateMixin |
|
|
123
|
+
| `__executeValidators` | protected | | | | ValidateMixin |
|
|
124
|
+
| `_onValidatorUpdated` | protected | | `e: Event\|CustomEvent` | | ValidateMixin |
|
|
125
|
+
| `_updateFeedbackComponent` | protected | Responsible for retrieving messages from Validators and
(delegation of) rendering them.

For \`.\_feedbackNode\` (extension of LionValidationFeedback):
- retrieve messages from highest prio Validators
- provide the result to custom feedback node and let the
custom node decide on their renderings

In both cases:
- we compute the 'show' flag (like 'hasErrorVisible') for all types
- we set the customValidity message of the highest prio Validator
- we set aria-invalid="true" in case hasErrorVisible is true | | | ValidateMixin |
|
|
126
|
+
| `_showFeedbackConditionFor` | protected | Default feedbackCondition condition, used by Subclassers, that will be used when
\`feedbackCondition()\` is not overridden by Application Developer.
Show the validity feedback when returning true, don't show when false | `type: string, meta: object` | | ValidateMixin |
|
|
127
|
+
| `feedbackCondition` | public | Allows the Application Developer to specify when a feedback message should be shown | `type: string, meta: object, currentCondition: ((type: string, meta: object) => boolean)` | `boolean` | ValidateMixin |
|
|
128
|
+
| `_hasFeedbackVisibleFor` | protected | Used to translate \`.hasFeedbackFor\` and \`.shouldShowFeedbackFor\` to \`.showsFeedbackFor\` | `type: string` | | ValidateMixin |
|
|
129
|
+
| `_updateShouldShowFeedbackFor` | protected | | | | ValidateMixin |
|
|
130
|
+
| `_prioritizeAndFilterFeedback` | protected | Orders all active validators in this.\_\_validationResult.
Can also filter out occurrences (based on interaction states) | `{ validationResult }, opts: { validationResult: Validator[] }` | `Validator[]` | ValidateMixin |
|
|
131
|
+
| `makeRequestToBeDisabled` | public | | | | DisabledMixin |
|
|
132
|
+
| `retractRequestToBeDisabled` | public | | | | DisabledMixin |
|
|
133
|
+
|
|
134
|
+
### Events
|
|
135
|
+
|
|
136
|
+
| Name | Type | Description | Inherited From |
|
|
137
|
+
| ------------------------------ | ------------- | -------------------------------------------------------- | ---------------- |
|
|
138
|
+
| `form-element-name-changed` | `CustomEvent` | | FormControlMixin |
|
|
139
|
+
| `model-value-changed` | `CustomEvent` | | FormControlMixin |
|
|
140
|
+
| `showsFeedbackForChanged` | `Event` | | ValidateMixin |
|
|
141
|
+
| | `Event` | | ValidateMixin |
|
|
142
|
+
| `shouldShowFeedbackForChanged` | `Event` | | ValidateMixin |
|
|
143
|
+
| `validate-performed` | `Event` | private event that should be listened to by LionFieldSet | ValidateMixin |
|
|
144
|
+
|
|
145
|
+
### Attributes
|
|
146
|
+
|
|
147
|
+
| Name | Field | Inherited From |
|
|
148
|
+
| -------------------- | ------------------ | ------------------ |
|
|
149
|
+
| `submitted` | submitted | FormGroupMixin |
|
|
150
|
+
| `focused` | focused | FormGroupMixin |
|
|
151
|
+
| `dirty` | dirty | FormGroupMixin |
|
|
152
|
+
| `touched` | touched | FormGroupMixin |
|
|
153
|
+
| `prefilled` | prefilled | FormGroupMixin |
|
|
154
|
+
| `_isFormOrFieldset` | \_isFormOrFieldset | FormRegistrarMixin |
|
|
155
|
+
| `readonly` | readOnly | FormControlMixin |
|
|
156
|
+
| `label` | label | FormControlMixin |
|
|
157
|
+
| `label-sr-only` | labelSrOnly | FormControlMixin |
|
|
158
|
+
| `help-text` | helpText | FormControlMixin |
|
|
159
|
+
| `shows-feedback-for` | showsFeedbackFor | ValidateMixin |
|
|
160
|
+
| `is-pending` | isPending | ValidateMixin |
|
|
161
|
+
| `disabled` | disabled | DisabledMixin |
|
|
162
|
+
|
|
163
|
+
<hr/>
|