@lion/ui 0.11.0 → 0.11.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (100) hide show
  1. package/README.md +2 -2
  2. package/components/checkbox-group/src/LionCheckboxIndeterminate.js +39 -16
  3. package/components/checkbox-group/test-suites/CheckboxIndeterminate.suite.js +189 -1
  4. package/components/form-core/src/FocusMixin.js +4 -4
  5. package/components/form-core/src/LionField.js +1 -1
  6. package/components/localize/types/LocalizeMixinTypes.ts +0 -5
  7. package/components/select-rich/src/LionSelectRich.js +1 -1
  8. package/components/select-rich/test/lion-select-rich.test.js +13 -1
  9. package/custom-elements.json +47661 -47626
  10. package/dist-types/components/checkbox-group/src/LionCheckboxIndeterminate.d.ts +10 -0
  11. package/dist-types/components/checkbox-group/src/LionCheckboxIndeterminate.d.ts.map +1 -1
  12. package/dist-types/components/checkbox-group/test-suites/CheckboxIndeterminate.suite.d.ts.map +1 -1
  13. package/dist-types/components/localize/types/LocalizeMixinTypes.d.ts +0 -4
  14. package/dist-types/components/localize/types/LocalizeMixinTypes.d.ts.map +1 -1
  15. package/dist-types/tsconfig.tsbuildinfo +1 -1
  16. package/docs/components/accordion/api-table.md +6 -6
  17. package/docs/components/button/api-table.md +27 -30
  18. package/docs/components/calendar/api-table.md +13 -13
  19. package/docs/components/checkbox-group/api-table.md +305 -329
  20. package/docs/components/checkbox-group/overview.md +2 -2
  21. package/docs/components/collapsible/api-table.md +5 -5
  22. package/docs/components/collapsible/overview.md +1 -1
  23. package/docs/components/combobox/api-table.md +150 -154
  24. package/docs/components/combobox/overview.md +1 -1
  25. package/docs/components/combobox/use-cases.md +1 -1
  26. package/docs/components/dialog/api-table.md +12 -12
  27. package/docs/components/dialog/overview.md +1 -1
  28. package/docs/components/drawer/api-table.md +9 -10
  29. package/docs/components/fieldset/api-table.md +104 -118
  30. package/docs/components/fieldset/overview.md +5 -5
  31. package/docs/components/form/overview.md +3 -3
  32. package/docs/components/form/use-cases.md +2 -2
  33. package/docs/components/icon/api-table.md +3 -3
  34. package/docs/components/icon/use-cases.md +1 -1
  35. package/docs/components/input/api-table.md +110 -120
  36. package/docs/components/input/overview.md +1 -1
  37. package/docs/components/input-amount/api-table.md +129 -142
  38. package/docs/components/input-amount/overview.md +3 -3
  39. package/docs/components/input-date/api-table.md +110 -120
  40. package/docs/components/input-date/overview.md +3 -3
  41. package/docs/components/input-datepicker/api-table.md +148 -160
  42. package/docs/components/input-datepicker/overview.md +5 -5
  43. package/docs/components/input-email/api-table.md +110 -120
  44. package/docs/components/input-email/overview.md +2 -2
  45. package/docs/components/input-file/api-table.md +132 -143
  46. package/docs/components/input-file/overview.md +1 -1
  47. package/docs/components/input-iban/api-table.md +110 -120
  48. package/docs/components/input-iban/overview.md +2 -2
  49. package/docs/components/input-range/api-table.md +116 -126
  50. package/docs/components/input-range/overview.md +2 -2
  51. package/docs/components/input-stepper/api-table.md +123 -133
  52. package/docs/components/input-stepper/overview.md +1 -1
  53. package/docs/components/input-tel/api-table.md +118 -128
  54. package/docs/components/input-tel/overview.md +1 -1
  55. package/docs/components/input-tel/use-cases.md +6 -6
  56. package/docs/components/input-tel-dropdown/api-table.md +125 -135
  57. package/docs/components/input-tel-dropdown/overview.md +1 -1
  58. package/docs/components/listbox/api-table.md +126 -131
  59. package/docs/components/listbox/use-cases.md +1 -1
  60. package/docs/components/pagination/api-table.md +5 -5
  61. package/docs/components/progress-indicator/api-table.md +9 -10
  62. package/docs/components/radio-group/api-table.md +234 -258
  63. package/docs/components/radio-group/overview.md +3 -3
  64. package/docs/components/select/api-table.md +106 -116
  65. package/docs/components/select/use-cases.md +1 -1
  66. package/docs/components/select-rich/api-table.md +169 -178
  67. package/docs/components/select-rich/use-cases.md +1 -1
  68. package/docs/components/steps/api-table.md +6 -6
  69. package/docs/components/switch/api-table.md +117 -128
  70. package/docs/components/tabs/api-table.md +1 -1
  71. package/docs/components/tabs/examples.md +1 -1
  72. package/docs/components/textarea/api-table.md +114 -124
  73. package/docs/components/tooltip/api-table.md +13 -13
  74. package/docs/fundamentals/index.md +4 -4
  75. package/docs/fundamentals/node-tools/publish-docs/overview.md +3 -3
  76. package/docs/fundamentals/node-tools/rocket-preset-extend-lion-docs/overview.md +2 -2
  77. package/docs/fundamentals/rationales/accessibility.md +1 -1
  78. package/docs/fundamentals/systems/core/SlotMixin.md +1 -1
  79. package/docs/fundamentals/systems/core/api-table.md +8 -11
  80. package/docs/fundamentals/systems/core/overview.md +1 -1
  81. package/docs/fundamentals/systems/form/api-table.md +77 -82
  82. package/docs/fundamentals/systems/form/formatting-and-parsing.md +4 -4
  83. package/docs/fundamentals/systems/form/model-value.md +1 -1
  84. package/docs/fundamentals/systems/form/overview.md +28 -28
  85. package/docs/fundamentals/systems/form/validate.md +2 -2
  86. package/docs/fundamentals/systems/localize/api-table.md +19 -19
  87. package/docs/fundamentals/systems/localize/overview.md +4 -4
  88. package/docs/fundamentals/systems/overlays/api-table.md +45 -46
  89. package/docs/fundamentals/systems/overlays/configuration.md +2 -2
  90. package/docs/fundamentals/systems/overlays/overview.md +5 -5
  91. package/docs/fundamentals/systems/overlays/use-cases.md +2 -2
  92. package/docs/fundamentals/tools/helpers/overview.md +1 -1
  93. package/docs/fundamentals/tools/singleton-manager/overview.md +4 -4
  94. package/docs/guides/how-to/create-a-custom-field.md +5 -5
  95. package/docs/guides/how-to/create-a-form.md +4 -4
  96. package/docs/guides/how-to/extend-a-native-input.md +2 -2
  97. package/docs/guides/index.md +8 -8
  98. package/docs/guides/principles/index.md +5 -5
  99. package/docs/guides/principles/styling.md +1 -1
  100. package/package.json +1 -1
@@ -14,9 +14,9 @@
14
14
 
15
15
  | Name | Privacy | Description | Parameters | Return | Inherited From |
16
16
  | ----------------------- | --------- | ----------- | ------------------ | -------- | -------------- |
17
- | `_getFileNameExtension` | protected | | `fileName: string` | `string` | |
18
- | `uploadFileStatus` | public | | | | |
19
17
  | `createDownloadUrl` | public | | `file: SystemFile` | | |
18
+ | `uploadFileStatus` | public | | | | |
19
+ | `_getFileNameExtension` | protected | | `fileName: string` | `string` | |
20
20
 
21
21
  <hr/>
22
22
 
@@ -27,161 +27,150 @@
27
27
 
28
28
  | Name | Privacy | Type | Default | Description | Inherited From |
29
29
  | ---------------------------- | --------- | ------------------------------------- | ----------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------- |
30
- | `slots` | public | | | Adds ".\_feedbackNode" as described below | LionField |
31
- | `_inputNode` | protected | `HTMLInputElement` | | The interactive (form) element. Can be a native element like input/textarea/select or&#xA;an element with tabindex > -1 | LionField |
32
- | `_buttonNode` | protected | | | | |
33
- | `buttonLabel` | public | `string` | | The label of the button | |
34
- | `_focusableNode` | protected | `HTMLElement` | | The focusable element:&#xA;could be an input, textarea, select, button or any other element with tabindex > -1 | LionField |
35
- | `_isDragAndDropSupported` | protected | | | | |
36
- | `_fileListNode` | protected | `LionSelectedFileList` | | | |
37
- | `operationMode` | public | `OperationMode` | | Types of input interaction of the FormControl (for instance 'enter'\|'select'\|'upload') | LionField |
38
- | `_acceptCriteria` | protected | | | | |
39
- | `type` | public | `string` | `'file'` | | |
40
- | `_selectedFilesMetaData` | protected | `InputFile[]` | `[]` | | |
41
- | `uploadResponse` | public | `UploadResponse[]` | `[]` | | |
42
- | `uploadOnSelect` | public | `boolean` | `false` | | |
43
- | `multiple` | public | `boolean` | `false` | | |
44
- | `enableDropZone` | public | `boolean` | `false` | | |
45
- | `maxFileSize` | public | `number` | `MAX_FILE_SIZE` | | |
46
30
  | `accept` | public | `string` | `''` | | |
47
- | `modelValue` | public | `InputFile[]` | `[]` | | LionField |
48
- | `isDragging` | public | `boolean` | | | |
49
- | `label` | public | `string` | `''` | The label text for the input node.&#xA;When no value is defined, textContent of \[slot=label] will be used | LionField |
50
- | `helpText` | public | `string` | `''` | The helpt text for the input node.&#xA;When no value is defined, textContent of \[slot=help-text] will be used | LionField |
51
- | `fieldName` | public | `string` | | Will be used in validation messages to refer to the current field | LionField |
52
- | `_labelNode` | protected | | | Element where label will be rendered to | LionField |
53
- | `_helpTextNode` | protected | | | Element where help text will be rendered to | LionField |
54
- | `_feedbackNode` | protected | | | Element where validation feedback will be rendered to | LionField |
55
- | `readOnly` | public | `boolean` | `false` | A Boolean attribute which, if present, indicates that the user should not be able to edit&#xA;the value of the input. The difference between disabled and readonly is that read-only&#xA;controls can still function, whereas disabled controls generally do not function as&#xA;controls until they are enabled.&#xA;(From: https\://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#attr-readonly) | LionField |
56
- | `labelSrOnly` | public | `boolean` | `false` | The label will only be visible for srceen readers when true | LionField |
57
- | `_inputId` | protected | `string` | | Unique id that can be used in all light dom | LionField |
58
- | `_ariaLabelledNodes` | public | `HTMLElement[]` | `[]` | Contains all elements that should end up in aria-labelledby of \`.\_inputNode\` | LionField |
59
- | `_ariaDescribedNodes` | public | `HTMLElement[]` | `[]` | Contains all elements that should end up in aria-describedby of \`.\_inputNode\` | LionField |
60
- | `_repropagationRole` | public | `'child'\|'choice-group'\|'fieldset'` | `'child'` | Based on the role, details of handling model-value-changed repropagation differ. | LionField |
61
- | `_isRepropagationEndpoint` | public | `boolean` | `false` | By default, a field with \_repropagationRole 'choice-group' will act as an&#xA;'endpoint'. This means it will be considered as an individual field: for&#xA;a select, individual options will not be part of the formPath. They&#xA;will.&#xA;Similarly, components that (a11y wise) need to be fieldsets, but 'interaction wise'&#xA;(from Application Developer perspective) need to be more like fields&#xA;(think of an amount-input with a currency select box next to it), can set this&#xA;to true to hide private internals in the formPath. | LionField |
62
- | `name` | public | `string` | `''` | The name the element will be registered with to the .formElements collection&#xA;of the parent. Also, it serves as the key of key/value pairs in&#xA; modelValue/serializedValue objects | LionField |
63
- | `_parentFormGroup` | protected | `FormRegistrarHost \| undefined` | `undefined` | The registrar this FormControl registers to, Usually a descendant of FormGroup or&#xA;ChoiceGroup | LionField |
64
31
  | `allowCrossRootRegistration` | public | `boolean` | `false` | To encourage accessibility best practices, \`form-element-register\` events&#xA;do not pierce through shadow roots. This forces the developer to create form groups and fieldsets that automatically allow the creation of accessible relationships in the same dom tree.&#xA;Use this option if you know what you're doing. It will then be possible to nest FormControls&#xA;inside shadow dom. See https\://lion.js.org/fundamentals/rationales/accessibility/#shadow-roots-and-accessibility | LionField |
65
- | `_requestedToBeDisabled` | protected | `boolean` | `false` | | LionField |
66
- | `disabled` | public | `boolean` | `false` | | LionField |
67
- | `_feedbackConditionMeta` | protected | | | Allows Subclassers to add meta info for feedbackCondition | LionField |
68
- | `touched` | public | `boolean` | `false` | True when user has focused and left(blurred) the field. | LionField |
32
+ | `autofocus` | public | `boolean` | `false` | | LionField |
33
+ | `buttonLabel` | public | `string` | | The label of the button | |
34
+ | `defaultValidators` | public | `Validator[]` | `[]` | Used by Subclassers to add default Validators to a particular FormControl.&#xA;A date input for instance, always needs the isDate validator. | LionField |
69
35
  | `dirty` | public | `boolean` | `false` | True when user has changed the value of the field. | LionField |
70
- | `prefilled` | public | `boolean` | `false` | True when user has left non-empty field or input is prefilled.&#xA;The name must be seen from the point of view of the input field:&#xA;once the user enters the input field, the value is non-empty. | LionField |
36
+ | `disabled` | public | `boolean` | `false` | | LionField |
37
+ | `enableDropZone` | public | `boolean` | `false` | | |
38
+ | `fieldName` | public | `string` | | Will be used in validation messages to refer to the current field | LionField |
71
39
  | `filled` | public | `boolean` | `false` | True when the modelValue is non-empty (see \_isEmpty in FormControlMixin) | LionField |
72
- | `_leaveEvent` | protected | `string` | `'blur'` | The event that triggers the touched state | LionField |
73
- | `_valueChangedEvent` | protected | `string` | `'model-value-changed'` | The event that triggers the dirty state | LionField |
74
- | `submitted` | public | | | | LionField |
75
40
  | `focused` | public | `boolean` | `false` | Whether the focusable element within (\`.\_focusableNode\`) is focused.&#xA;Reflects to attribute '\[focused]' as a styling hook | LionField |
76
41
  | `focusedVisible` | public | `boolean` | `false` | Whether the focusable element within (\`.\_focusableNode\`) matches ':focus-visible'&#xA;Reflects to attribute '\[focused-visible]' as a styling hook&#xA;See: https\://developer.mozilla.org/en-US/docs/Web/CSS/:focus-visible | LionField |
77
- | `autofocus` | public | `boolean` | `false` | | LionField |
78
- | `value` | public | | | The view value. Will be delegated to \`.\_inputNode.value\` | LionField |
79
42
  | `formatOn` | protected | `string` | `'change'` | Event that will trigger formatting (more precise, visual update of the view, so the&#xA;user sees the formatted value)&#xA;Default: 'change' | LionField |
80
43
  | `formatOptions` | public | | `({ mode: 'auto' })` | Configuration object that will be available inside the formatter function | LionField |
81
44
  | `formattedValue` | public | `string\|undefined` | `undefined` | The view value is the result of the formatter function (when available).&#xA;The result will be stored in the native \_inputNode (usually an input\[type=text]).&#xA;&#xA;Examples:&#xA;- For a date input, this would be '20/01/1999' (dependent on locale).&#xA;- For a number input, this could be '1,234.56' (a String representation of modelValue&#xA;1234.56) | LionField |
82
- | `serializedValue` | public | `string\|undefined` | `undefined` | The serialized version of the model value.&#xA;This value exists for maximal compatibility with the platform API.&#xA;The serialized value can be an interface in context where data binding is not&#xA;supported and a serialized string needs to be set.&#xA;&#xA;Examples:&#xA;- For a date input, this would be the iso format of a date, e.g. '1999-01-20'.&#xA;- For a number input this would be the String representation of a float ('1234.56'&#xA; instead of 1234.56)&#xA;&#xA;When no parser is available, the value is usually the same as the formattedValue&#xA;(being \_inputNode.value) | LionField |
83
- | `_isPasting` | protected | `boolean` | `false` | Whether the user is pasting content. Allows Subclassers to do this in their subclass: | LionField |
84
- | `_isHandlingUserInput` | protected | `boolean` | `false` | Flag that will be set when user interaction takes place (for instance after an 'input'&#xA;event). Will be added as meta info to the \`model-value-changed\` event. Depending on&#xA;whether a user is interacting, formatting logic will be handled differently. | LionField |
85
- | `_allValidators` | protected | `Validator[]` | | Combination of validators provided by Application Developer and the default validators | LionField |
86
45
  | `hasFeedbackFor` | public | `ValidationType[]` | `[]` | As soon as validation happens (after modelValue/validators/validator param change), this&#xA;array is updated with the active ValidationTypes ('error'\|'warning'\|'success'\|'info' etc.).&#xA;Notice the difference with \`.showsFeedbackFor\`, which filters \`.hasFeedbackFor\` based on&#xA;\`.feedbackCondition()\`.&#xA;&#xA;For styling purposes, will be reflected to \[has-feedback-for="error warning"]. This can&#xA;be useful for subtle visual feedback on keyup, like a red/green border around an input. | LionField |
46
+ | `helpText` | public | `string` | `''` | The helpt text for the input node.&#xA;When no value is defined, textContent of \[slot=help-text] will be used | LionField |
47
+ | `isDragging` | public | `boolean` | | | |
48
+ | `isPending` | public | `boolean` | `false` | Flag indicating whether async validation is pending.&#xA;Creates attribute \[is-pending] as a styling hook | LionField |
49
+ | `label` | public | `string` | `''` | The label text for the input node.&#xA;When no value is defined, textContent of \[slot=label] will be used | LionField |
50
+ | `labelSrOnly` | public | `boolean` | `false` | The label will only be visible for srceen readers when true | LionField |
51
+ | `maxFileSize` | public | `number` | `MAX_FILE_SIZE` | | |
52
+ | `modelValue` | public | `InputFile[]` | `[]` | | LionField |
53
+ | `multiple` | public | `boolean` | `false` | | |
54
+ | `name` | public | `string` | `''` | The name the element will be registered with to the .formElements collection&#xA;of the parent. Also, it serves as the key of key/value pairs in&#xA; modelValue/serializedValue objects | LionField |
55
+ | `operationMode` | public | `OperationMode` | | Types of input interaction of the FormControl (for instance 'enter'\|'select'\|'upload') | LionField |
56
+ | `prefilled` | public | `boolean` | `false` | True when user has left non-empty field or input is prefilled.&#xA;The name must be seen from the point of view of the input field:&#xA;once the user enters the input field, the value is non-empty. | LionField |
57
+ | `readOnly` | public | `boolean` | `false` | A Boolean attribute which, if present, indicates that the user should not be able to edit&#xA;the value of the input. The difference between disabled and readonly is that read-only&#xA;controls can still function, whereas disabled controls generally do not function as&#xA;controls until they are enabled.&#xA;(From: https\://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#attr-readonly) | LionField |
58
+ | `serializedValue` | public | `string\|undefined` | `undefined` | The serialized version of the model value.&#xA;This value exists for maximal compatibility with the platform API.&#xA;The serialized value can be an interface in context where data binding is not&#xA;supported and a serialized string needs to be set.&#xA;&#xA;Examples:&#xA;- For a date input, this would be the iso format of a date, e.g. '1999-01-20'.&#xA;- For a number input this would be the String representation of a float ('1234.56'&#xA; instead of 1234.56)&#xA;&#xA;When no parser is available, the value is usually the same as the formattedValue&#xA;(being \_inputNode.value) | LionField |
87
59
  | `showsFeedbackFor` | public | `ValidationType[]` | `[]` | Based on outcome of feedbackCondition, this array decides what ValidationTypes should be&#xA;shown in validationFeedback, based on meta data like interaction states.&#xA;&#xA;For styling purposes, it reflects it \`\[shows-feedback-for="error warning"]\` | LionField |
60
+ | `slots` | public | | | Adds ".\_feedbackNode" as described below | LionField |
61
+ | `submitted` | public | | | | LionField |
62
+ | `touched` | public | `boolean` | `false` | True when user has focused and left(blurred) the field. | LionField |
63
+ | `type` | public | `string` | `'file'` | | |
64
+ | `uploadOnSelect` | public | `boolean` | `false` | | |
65
+ | `uploadResponse` | public | `UploadResponse[]` | `[]` | | |
88
66
  | `validationStates` | public | `ValidationStates` | `{}` | The outcome of a validation 'round'. Keyed by ValidationType and Validator name | LionField |
89
- | `isPending` | public | `boolean` | `false` | Flag indicating whether async validation is pending.&#xA;Creates attribute \[is-pending] as a styling hook | LionField |
90
67
  | `validators` | public | `Validator[]` | `[]` | Used by Application Developers to add Validators to a FormControl. | LionField |
91
- | `defaultValidators` | public | `Validator[]` | `[]` | Used by Subclassers to add default Validators to a particular FormControl.&#xA;A date input for instance, always needs the isDate validator. | LionField |
68
+ | `value` | public | | | The view value. Will be delegated to \`.\_inputNode.value\` | LionField |
69
+ | `_acceptCriteria` | protected | | | | |
70
+ | `_allValidators` | protected | `Validator[]` | | Combination of validators provided by Application Developer and the default validators | LionField |
71
+ | `_ariaDescribedNodes` | public | `HTMLElement[]` | `[]` | Contains all elements that should end up in aria-describedby of \`.\_inputNode\` | LionField |
72
+ | `_ariaLabelledNodes` | public | `HTMLElement[]` | `[]` | Contains all elements that should end up in aria-labelledby of \`.\_inputNode\` | LionField |
73
+ | `_buttonNode` | protected | | | | |
74
+ | `_feedbackConditionMeta` | protected | | | Allows Subclassers to add meta info for feedbackCondition | LionField |
75
+ | `_feedbackNode` | protected | | | Element where validation feedback will be rendered to | LionField |
76
+ | `_fileListNode` | protected | `LionSelectedFileList` | | | |
77
+ | `_focusableNode` | protected | `HTMLElement` | | The focusable element:&#xA;could be an input, textarea, select, button or any other element with tabindex > -1 | LionField |
78
+ | `_helpTextNode` | protected | | | Element where help text will be rendered to | LionField |
79
+ | `_inputId` | protected | `string` | | Unique id that can be used in all light dom | LionField |
80
+ | `_inputNode` | protected | `HTMLInputElement` | | The interactive (form) element. Can be a native element like input/textarea/select or&#xA;an element with tabindex > -1 | LionField |
81
+ | `_isDragAndDropSupported` | protected | | | | |
82
+ | `_isHandlingUserInput` | protected | `boolean` | `false` | Flag that will be set when user interaction takes place (for instance after an 'input'&#xA;event). Will be added as meta info to the \`model-value-changed\` event. Depending on&#xA;whether a user is interacting, formatting logic will be handled differently. | LionField |
83
+ | `_isPasting` | protected | `boolean` | `false` | Whether the user is pasting content. Allows Subclassers to do this in their subclass: | LionField |
84
+ | `_isRepropagationEndpoint` | public | `boolean` | `false` | By default, a field with \_repropagationRole 'choice-group' will act as an&#xA;'endpoint'. This means it will be considered as an individual field: for&#xA;a select, individual options will not be part of the formPath. They&#xA;will.&#xA;Similarly, components that (a11y wise) need to be fieldsets, but 'interaction wise'&#xA;(from Application Developer perspective) need to be more like fields&#xA;(think of an amount-input with a currency select box next to it), can set this&#xA;to true to hide private internals in the formPath. | LionField |
85
+ | `_labelNode` | protected | | | Element where label will be rendered to | LionField |
86
+ | `_leaveEvent` | protected | `string` | `'blur'` | The event that triggers the touched state | LionField |
87
+ | `_parentFormGroup` | protected | `FormRegistrarHost \| undefined` | `undefined` | The registrar this FormControl registers to, Usually a descendant of FormGroup or&#xA;ChoiceGroup | LionField |
88
+ | `_repropagationRole` | public | `'child'\|'choice-group'\|'fieldset'` | `'child'` | Based on the role, details of handling model-value-changed repropagation differ. | LionField |
89
+ | `_requestedToBeDisabled` | protected | `boolean` | `false` | | LionField |
90
+ | `_selectedFilesMetaData` | protected | `InputFile[]` | `[]` | | |
91
+ | `_valueChangedEvent` | protected | `string` | `'model-value-changed'` | The event that triggers the dirty state | LionField |
92
92
  | `_visibleMessagesAmount` | protected | `number` | `1` | The amount of feedback messages that will visible in LionValidationFeedback | LionField |
93
- | `__SyncUpdatableNamespace` | protected | `SyncUpdatableNamespace` | `{}` | Namespace for this mixin that guarantees naming clashes will not occur... | LionField |
94
93
 
95
94
  ### Methods
96
95
 
97
- | Name | Privacy | Description | Parameters | Return | Inherited From |
98
- | ---------------------------------------- | --------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------- | -------------- |
99
- | `reset` | public | Resets modelValue to initial value.&#xA;Interaction states are cleared | | | LionField |
100
- | `clear` | public | Clears modelValue.&#xA;Interaction states are not cleared (use resetInteractionState for this) | | | LionField |
101
- | `_showFeedbackConditionFor` | protected | Default feedbackCondition condition, used by Subclassers, that will be used when&#xA;\`feedbackCondition()\` is not overridden by Application Developer.&#xA;Show the validity feedback when returning true, don't show when false | `type: string, meta: object` | | LionField |
102
- | `parser` | public | Converts viewValue to modelValue&#xA;For instance, a localized date to a Date Object | `v: string, opts: FormatOptions` | `InputFile[]` | LionField |
103
- | `formatter` | public | Converts modelValue to formattedValue (formattedValue will be synced with&#xA;\`.\_inputNode.value\`)&#xA;For instance, a Date object to a localized date. | `v: InputFile[]` | `string` | LionField |
104
- | `_processDroppedFiles` | protected | | `ev: DragEvent` | | |
105
- | `_onChange` | protected | Dispatches custom bubble event | `ev: Event=` | | LionField |
106
- | `_onClick` | protected | Clear \_inputNode.value to make sure onChange is called even for duplicate files | `ev: Event` | | |
107
- | `_processFiles` | protected | Runs on drag or change event | `selectedFiles: InputFile[]` | | |
108
- | `_dispatchFileListChangeEvent` | protected | | `newFiles: InputFile[]` | | |
109
- | `_handleErrors` | protected | | | | |
110
- | `_handleErroredFiles` | protected | | `fileObj: InputFile` | | |
111
- | `_updateUploadButtonDescription` | protected | Description for screen readers connected to the button about how many files have been updated | | | |
112
- | `_onRemoveFile` | protected | | `ev: CustomEvent` | | |
113
- | `_removeFile` | protected | | `removedFile: InputFile` | | |
114
- | `_reflectBackOn` | protected | Every time .formattedValue is attempted to sync to the view value (on change/blur and on&#xA;modelValue change), this condition is checked. In case of the input-file we don't want&#xA;this sync to happen, since the view value is already correct. | | `boolean` | LionField |
115
- | `_isEmpty` | protected | Helper method for the mutually exclusive Required Validator | `modelValue: any` | `boolean` | LionField |
116
- | `_dropZoneTemplate` | protected | | | `TemplateResult` | |
117
- | `_inputGroupAfterTemplate` | protected | | | `TemplateResult` | LionField |
118
- | `_inputGroupInputTemplate` | protected | | | `TemplateResult` | LionField |
119
- | `__openDialogOnBtnClick` | protected | | `ev: MouseEvent` | | |
120
- | `createScopedElement` | public | | `tagName` | | LionField |
121
- | `defineScopedElement` | public | Defines a scoped element. | `tagName: string, classToBeRegistered: typeof HTMLElement` | | LionField |
122
- | `attachShadow` | public | | `options: ShadowRootInit` | `ShadowRoot` | LionField |
123
- | `_triggerInitialModelValueChangedEvent` | protected | | | | LionField |
124
- | `_enhanceLightDomClasses` | protected | | | | LionField |
125
- | `_enhanceLightDomA11y` | protected | | | | LionField |
126
- | `_enhanceLightDomA11yForAdditionalSlots` | protected | Enhances additional slots(prefix, suffix, before, after) defined by developer.&#xA;&#xA;When boolean attribute data-label or data-description is found,&#xA;the slot element will be connected to the input via aria-labelledby or aria-describedby | `additionalSlots: string[]` | | LionField |
127
- | `__reflectAriaAttr` | protected | Will handle help text, validation feedback and character counter,&#xA;prefix/suffix/before/after (if they contain data-description flag attr).&#xA;Also, contents of id references that will be put in the \<lion-field>.\_ariaDescribedby property&#xA;from an external context, will be read by a screen reader. | `attrName: string, nodes: Element[], reorder: boolean\|undefined` | | LionField |
128
- | `_groupOneTemplate` | protected | | | `TemplateResult` | LionField |
129
- | `_groupTwoTemplate` | protected | | | `TemplateResult` | LionField |
130
- | `_labelTemplate` | protected | | | `TemplateResult` | LionField |
131
- | `_helpTextTemplate` | protected | | | `TemplateResult` | LionField |
132
- | `_inputGroupTemplate` | protected | | | `TemplateResult` | LionField |
133
- | `_inputGroupBeforeTemplate` | protected | | | `TemplateResult` | LionField |
134
- | `_inputGroupPrefixTemplate` | protected | | | `TemplateResult \| nothing` | LionField |
135
- | `_inputGroupSuffixTemplate` | protected | | | `TemplateResult \| nothing` | LionField |
136
- | `_feedbackTemplate` | protected | | | `TemplateResult` | LionField |
137
- | `_getAriaDescriptionElements` | protected | This function exposes descripion elements that a FormGroup should expose to its&#xA;children. See FormGroupMixin.\_\_getAllDescriptionElementsInParentChain() | | `Array.<HTMLElement>` | LionField |
138
- | `addToAriaLabelledBy` | public | Allows to add extra element references to aria-labelledby attribute. | `element: HTMLElement, { idPrefix = '', reorder = true }, customConfig: {idPrefix?:string; reorder?: boolean}` | | LionField |
139
- | `removeFromAriaLabelledBy` | public | Allows to remove element references from aria-labelledby attribute. | `element: HTMLElement` | | LionField |
140
- | `addToAriaDescribedBy` | public | Allows to add element references to aria-describedby attribute. | `element: HTMLElement, { idPrefix = '', reorder = true }, customConfig: {idPrefix?:string; reorder?: boolean}` | | LionField |
141
- | `removeFromAriaDescribedBy` | public | Allows to remove element references from aria-describedby attribute. | `element: HTMLElement` | | LionField |
142
- | `__getDirectSlotChild` | protected | | `slotName: string` | `HTMLElement \| undefined` | LionField |
143
- | `_dispatchInitialModelValueChangedEvent` | protected | | | | LionField |
144
- | `_onBeforeRepropagateChildrenValues` | protected | Hook for Subclassers to add logic before repropagation | `ev: CustomEvent` | | LionField |
145
- | `__repropagateChildrenValues` | protected | | `ev: CustomEvent` | | LionField |
146
- | `_repropagationCondition` | protected | Based on provided target, this condition determines whether received model-value-changed&#xA;event should be repropagated | `target: FormControlHost` | | LionField |
147
- | `_onLabelClick` | protected | | | | LionField |
148
- | `makeRequestToBeDisabled` | public | | | | LionField |
149
- | `retractRequestToBeDisabled` | public | | | | LionField |
150
- | `click` | public | | | | LionField |
151
- | `__rerenderSlot` | protected | | `slotName: string` | | LionField |
152
- | `__appendNodes` | protected | | `{ nodes, renderParent = this, slotName }, options: @param {Node[]} options.nodes * @param {Element} [options.renderParent] It's recommended to create a render target in light dom (like <div slot=myslot>), * which can be used as a render target for most * @param {string} options.slotName For the first render, it's best to use slotName
153
- ` | | LionField |
154
- | `__initSlots` | protected | Here we look what's inside our \`get slots\`.&#xA;Rerenderable slots get scheduled and "one time slots" get rendered once on connected | `slotNames: string[]` | | LionField |
155
- | `_connectSlotMixin` | protected | | | | LionField |
156
- | `_isPrivateSlot` | protected | | `slotName: string` | `boolean` | LionField |
157
- | `initInteractionState` | public | Evaluations performed on connectedCallback.&#xA;This method is public, so it can be called at a later moment (when we need to wait for&#xA;registering children for instance) as well.&#xA;Since this method will be called twice in last mentioned scenario, it must stay idempotent. | | | LionField |
158
- | `_iStateOnLeave` | protected | Sets touched value to true and reevaluates prefilled state.&#xA;When false, on next interaction, user will start with a clean state. | | | LionField |
159
- | `_iStateOnValueChange` | protected | Sets dirty value and validates when already touched or invalid | | | LionField |
160
- | `resetInteractionState` | public | Resets touched and dirty, and recomputes prefilled | | | LionField |
161
- | `_onTouchedChanged` | protected | Dispatches event on touched state change | | | LionField |
162
- | `_onDirtyChanged` | protected | Dispatches event on touched state change | | | LionField |
163
- | `focus` | public | Calls \`focus()\` on focusable element within | | | LionField |
164
- | `blur` | public | Calls \`blur()\` on focusable element within | | | LionField |
165
- | `preprocessor` | public | Preprocessors could be considered 'live formatters'. Their result is shown to the user&#xA;on keyup instead of after blurring the field. The biggest difference between preprocessors&#xA;and formatters is their moment of execution: preprocessors are run before modelValue is&#xA;computed (and work based on view value), whereas formatters are run after the parser (and&#xA;are based on modelValue)&#xA;Automatically formats code while typing. It depends on a preprocessro that smartly&#xA;updates the viewValue and caret position for best UX. | `v: string, opts: FormatOptions & { prevViewValue: string; currentCaretIndex: number }` | `{ viewValue:string; caretIndex:number; }\|string\|undefined` | LionField |
166
- | `serializer` | public | Converts \`.modelValue\` to \`.serializedValue\`&#xA;For instance, a Date object to an iso formatted date string | `v: ?` | `string` | LionField |
167
- | `deserializer` | public | Converts \`.serializedValue\` to \`.modelValue\`&#xA;For instance, an iso formatted date string to a Date object | `v: ?` | `?` | LionField |
168
- | `_calculateValues` | protected | Responsible for storing all representations(modelValue, serializedValue, formattedValue&#xA;and value) of the input value. Prevents infinite loops, so all value observers can be&#xA;treated like they will only be called once, without indirectly calling other observers.&#xA;(in fact, some are called twice, but the \_\_preventRecursiveTrigger lock prevents the&#xA;second call from having effect). | `{ source }, config: {source:'model'\|'serialized'\|'formatted'\|null}` | | LionField |
169
- | `_onModelValueChanged` | protected | Responds to modelValue changes in the synchronous cycle (most subclassers should listen to&#xA;the asynchronous cycle ('modelValue' in the .updated lifecycle)) | `args: { modelValue: unknown; }[]` | | LionField |
170
- | `_dispatchModelValueChangedEvent` | protected | This is wrapped in a distinct method, so that parents can control when the changed event&#xA;is fired. For objects, a deep comparison might be needed. | `args: { modelValue: unknown; }[]` | | LionField |
171
- | `_syncValueUpwards` | protected | Synchronization from \`.\_inputNode.value\` to \`LionField\` (flow \[2])&#xA;Downwards syncing should only happen for \`LionField\`.value changes from 'above'.&#xA;This triggers \_onModelValueChanged and connects user input&#xA;to the parsing/formatting/serializing loop. | | | LionField |
172
- | `_reflectBackFormattedValueToUser` | protected | Synchronization from \`LionField.value\` to \`.\_inputNode.value\`&#xA;- flow \[1] will always be reflected back&#xA;- flow \[2] will not be reflected back when this flow was triggered via&#xA; \`@user-input-changed\` (this will happen later, when \`formatOn\` condition is met) | | | LionField |
173
- | `_proxyInputEvent` | protected | This can be called whenever the view value should be updated. Dependent on component type&#xA;("input" for \<input> or "change" for \<select>(mainly for IE)) a different event should be&#xA;used as source for the "user-input-changed" event (which can be seen as an abstraction&#xA;layer on top of other events (input, change, whatever)) | | | LionField |
174
- | `_onUserInputChanged` | protected | | | | LionField |
175
- | `__onCompositionEvent` | protected | | `{ type }, event: Event` | | LionField |
176
- | `updateSync` | public | An abstraction that has the exact same api as \`requestUpdate\`, but taking&#xA;into account:&#xA;- \[member order independence]\(https\://github.com/webcomponents/gold-standard/wiki/Member-Order-Independence)&#xA;- property effects start when all (light) dom has initialized (on firstUpdated)&#xA;- property effects don't interrupt the first meaningful paint&#xA;- compatible with propertyAccessor.\`hasChanged\`: no manual checks needed or accidentally&#xA;run property effects / events when no change happened&#xA;effects when values didn't change&#xA;All code previously present in requestUpdate can be placed in this method. | `name: string, oldValue: ?` | | LionField |
177
- | `validate` | public | Triggered by:&#xA; \- modelValue change&#xA; \- change in the 'validators' array&#xA; \- change in the config of an individual Validator&#xA;&#xA;Three situations are handled:&#xA;- a1) the FormControl is empty: further execution is halted. When the Required Validator&#xA;(being mutually exclusive to the other Validators) is applied, it will end up in the&#xA;validation result (as the only Validator, since further execution was halted).&#xA;- a2) there are synchronous Validators: this is the most common flow. When modelValue hasn't&#xA;changed since last async results were generated, 'sync results' are merged with the&#xA;'async results'.&#xA;- a3) there are asynchronous Validators: for instance when server side evaluation is needed.&#xA;Executions are scheduled and awaited and the 'async results' are merged with the&#xA;'sync results'.&#xA;&#xA;- b) there are MetaValidators. After steps a1, a2, or a3 are finished, the holistic&#xA;MetaValidators (evaluating the total result of the 'regular' (a1, a2 and a3) validators)&#xA;will be run...&#xA;&#xA;Situations a2 and a3 are not mutually exclusive and can be triggered within one \`validate()\`&#xA;call. Situation b will occur after every call. | `{ clearCurrentResult = false }, opts: { clearCurrentResult?: boolean }` | | LionField |
178
- | `__executeValidators` | protected | | | | LionField |
179
- | `_onValidatorUpdated` | protected | | `e: Event\|CustomEvent` | | LionField |
180
- | `_updateFeedbackComponent` | protected | Responsible for retrieving messages from Validators and&#xA;(delegation of) rendering them.&#xA;&#xA;For \`.\_feedbackNode\` (extension of LionValidationFeedback):&#xA;- retrieve messages from highest prio Validators&#xA;- provide the result to custom feedback node and let the&#xA;custom node decide on their renderings&#xA;&#xA;In both cases:&#xA;- we compute the 'show' flag (like 'hasErrorVisible') for all types&#xA;- we set the customValidity message of the highest prio Validator&#xA;- we set aria-invalid="true" in case hasErrorVisible is true | | | LionField |
181
- | `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` | LionField |
182
- | `_hasFeedbackVisibleFor` | protected | Used to translate \`.hasFeedbackFor\` and \`.shouldShowFeedbackFor\` to \`.showsFeedbackFor\` | `type: string` | | LionField |
183
- | `_updateShouldShowFeedbackFor` | protected | | | | LionField |
184
- | `_prioritizeAndFilterFeedback` | protected | Orders all active validators in this.\_\_validationResult.&#xA;Can also filter out occurrences (based on interaction states) | `{ validationResult }, opts: { validationResult: Validator[] }` | `Validator[]` | LionField |
96
+ | Name | Privacy | Description | Parameters | Return | Inherited From |
97
+ | ---------------------------------------- | --------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------- | -------------- |
98
+ | `addToAriaDescribedBy` | public | Allows to add element references to aria-describedby attribute. | `element: HTMLElement, { idPrefix = '', reorder = true }, customConfig: {idPrefix?:string; reorder?: boolean}` | | LionField |
99
+ | `addToAriaLabelledBy` | public | Allows to add extra element references to aria-labelledby attribute. | `element: HTMLElement, { idPrefix = '', reorder = true }, customConfig: {idPrefix?:string; reorder?: boolean}` | | LionField |
100
+ | `attachShadow` | public | | `options: ShadowRootInit` | `ShadowRoot` | LionField |
101
+ | `blur` | public | Calls \`blur()\` on focusable element within | | | LionField |
102
+ | `clear` | public | Clears modelValue.&#xA;Interaction states are not cleared (use resetInteractionState for this) | | | LionField |
103
+ | `click` | public | | | | LionField |
104
+ | `createScopedElement` | public | | `tagName` | | LionField |
105
+ | `defineScopedElement` | public | Defines a scoped element. | `tagName: string, classToBeRegistered: typeof HTMLElement` | | LionField |
106
+ | `deserializer` | public | Converts \`.serializedValue\` to \`.modelValue\`&#xA;For instance, an iso formatted date string to a Date object | `v: ?` | `?` | LionField |
107
+ | `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` | LionField |
108
+ | `focus` | public | Calls \`focus()\` on focusable element within | | | LionField |
109
+ | `formatter` | public | Converts modelValue to formattedValue (formattedValue will be synced with&#xA;\`.\_inputNode.value\`)&#xA;For instance, a Date object to a localized date. | `v: InputFile[]` | `string` | LionField |
110
+ | `initInteractionState` | public | Evaluations performed on connectedCallback.&#xA;This method is public, so it can be called at a later moment (when we need to wait for&#xA;registering children for instance) as well.&#xA;Since this method will be called twice in last mentioned scenario, it must stay idempotent. | | | LionField |
111
+ | `makeRequestToBeDisabled` | public | | | | LionField |
112
+ | `parser` | public | Converts viewValue to modelValue&#xA;For instance, a localized date to a Date Object | `v: string, opts: FormatOptions` | `InputFile[]` | LionField |
113
+ | `preprocessor` | public | Preprocessors could be considered 'live formatters'. Their result is shown to the user&#xA;on keyup instead of after blurring the field. The biggest difference between preprocessors&#xA;and formatters is their moment of execution: preprocessors are run before modelValue is&#xA;computed (and work based on view value), whereas formatters are run after the parser (and&#xA;are based on modelValue)&#xA;Automatically formats code while typing. It depends on a preprocessro that smartly&#xA;updates the viewValue and caret position for best UX. | `v: string, opts: FormatOptions & { prevViewValue: string; currentCaretIndex: number }` | `{ viewValue:string; caretIndex:number; }\|string\|undefined` | LionField |
114
+ | `removeFromAriaDescribedBy` | public | Allows to remove element references from aria-describedby attribute. | `element: HTMLElement` | | LionField |
115
+ | `removeFromAriaLabelledBy` | public | Allows to remove element references from aria-labelledby attribute. | `element: HTMLElement` | | LionField |
116
+ | `reset` | public | Resets modelValue to initial value.&#xA;Interaction states are cleared | | | LionField |
117
+ | `resetInteractionState` | public | Resets touched and dirty, and recomputes prefilled | | | LionField |
118
+ | `retractRequestToBeDisabled` | public | | | | LionField |
119
+ | `serializer` | public | Converts \`.modelValue\` to \`.serializedValue\`&#xA;For instance, a Date object to an iso formatted date string | `v: ?` | `string` | LionField |
120
+ | `updateSync` | public | An abstraction that has the exact same api as \`requestUpdate\`, but taking&#xA;into account:&#xA;- \[member order independence]\(https\://github.com/webcomponents/gold-standard/wiki/Member-Order-Independence)&#xA;- property effects start when all (light) dom has initialized (on firstUpdated)&#xA;- property effects don't interrupt the first meaningful paint&#xA;- compatible with propertyAccessor.\`hasChanged\`: no manual checks needed or accidentally&#xA;run property effects / events when no change happened&#xA;effects when values didn't change&#xA;All code previously present in requestUpdate can be placed in this method. | `name: string, oldValue: ?` | | LionField |
121
+ | `validate` | public | Triggered by:&#xA; \- modelValue change&#xA; \- change in the 'validators' array&#xA; \- change in the config of an individual Validator&#xA;&#xA;Three situations are handled:&#xA;- a1) the FormControl is empty: further execution is halted. When the Required Validator&#xA;(being mutually exclusive to the other Validators) is applied, it will end up in the&#xA;validation result (as the only Validator, since further execution was halted).&#xA;- a2) there are synchronous Validators: this is the most common flow. When modelValue hasn't&#xA;changed since last async results were generated, 'sync results' are merged with the&#xA;'async results'.&#xA;- a3) there are asynchronous Validators: for instance when server side evaluation is needed.&#xA;Executions are scheduled and awaited and the 'async results' are merged with the&#xA;'sync results'.&#xA;&#xA;- b) there are MetaValidators. After steps a1, a2, or a3 are finished, the holistic&#xA;MetaValidators (evaluating the total result of the 'regular' (a1, a2 and a3) validators)&#xA;will be run...&#xA;&#xA;Situations a2 and a3 are not mutually exclusive and can be triggered within one \`validate()\`&#xA;call. Situation b will occur after every call. | `{ clearCurrentResult = false }, opts: { clearCurrentResult?: boolean }` | | LionField |
122
+ | `_calculateValues` | protected | Responsible for storing all representations(modelValue, serializedValue, formattedValue&#xA;and value) of the input value. Prevents infinite loops, so all value observers can be&#xA;treated like they will only be called once, without indirectly calling other observers.&#xA;(in fact, some are called twice, but the \_\_preventRecursiveTrigger lock prevents the&#xA;second call from having effect). | `{ source }, config: {source:'model'\|'serialized'\|'formatted'\|null}` | | LionField |
123
+ | `_connectSlotMixin` | protected | | | | LionField |
124
+ | `_dispatchFileListChangeEvent` | protected | | `newFiles: InputFile[]` | | |
125
+ | `_dispatchInitialModelValueChangedEvent` | protected | | | | LionField |
126
+ | `_dispatchModelValueChangedEvent` | protected | This is wrapped in a distinct method, so that parents can control when the changed event&#xA;is fired. For objects, a deep comparison might be needed. | `args: { modelValue: unknown; }[]` | | LionField |
127
+ | `_dropZoneTemplate` | protected | | | `TemplateResult` | |
128
+ | `_enhanceLightDomA11y` | protected | | | | LionField |
129
+ | `_enhanceLightDomA11yForAdditionalSlots` | protected | Enhances additional slots(prefix, suffix, before, after) defined by developer.&#xA;&#xA;When boolean attribute data-label or data-description is found,&#xA;the slot element will be connected to the input via aria-labelledby or aria-describedby | `additionalSlots: string[]` | | LionField |
130
+ | `_enhanceLightDomClasses` | protected | | | | LionField |
131
+ | `_feedbackTemplate` | protected | | | `TemplateResult` | LionField |
132
+ | `_getAriaDescriptionElements` | protected | This function exposes descripion elements that a FormGroup should expose to its&#xA;children. See FormGroupMixin.\_\_getAllDescriptionElementsInParentChain() | | `Array.<HTMLElement>` | LionField |
133
+ | `_groupOneTemplate` | protected | | | `TemplateResult` | LionField |
134
+ | `_groupTwoTemplate` | protected | | | `TemplateResult` | LionField |
135
+ | `_handleErroredFiles` | protected | | `fileObj: InputFile` | | |
136
+ | `_handleErrors` | protected | | | | |
137
+ | `_hasFeedbackVisibleFor` | protected | Used to translate \`.hasFeedbackFor\` and \`.shouldShowFeedbackFor\` to \`.showsFeedbackFor\` | `type: string` | | LionField |
138
+ | `_helpTextTemplate` | protected | | | `TemplateResult` | LionField |
139
+ | `_inputGroupAfterTemplate` | protected | | | `TemplateResult` | LionField |
140
+ | `_inputGroupBeforeTemplate` | protected | | | `TemplateResult` | LionField |
141
+ | `_inputGroupInputTemplate` | protected | | | `TemplateResult` | LionField |
142
+ | `_inputGroupPrefixTemplate` | protected | | | `TemplateResult \| nothing` | LionField |
143
+ | `_inputGroupSuffixTemplate` | protected | | | `TemplateResult \| nothing` | LionField |
144
+ | `_inputGroupTemplate` | protected | | | `TemplateResult` | LionField |
145
+ | `_isEmpty` | protected | Helper method for the mutually exclusive Required Validator | `modelValue: any` | `boolean` | LionField |
146
+ | `_isPrivateSlot` | protected | | `slotName: string` | `boolean` | LionField |
147
+ | `_iStateOnLeave` | protected | Sets touched value to true and reevaluates prefilled state.&#xA;When false, on next interaction, user will start with a clean state. | | | LionField |
148
+ | `_iStateOnValueChange` | protected | Sets dirty value and validates when already touched or invalid | | | LionField |
149
+ | `_labelTemplate` | protected | | | `TemplateResult` | LionField |
150
+ | `_onBeforeRepropagateChildrenValues` | protected | Hook for Subclassers to add logic before repropagation | `ev: CustomEvent` | | LionField |
151
+ | `_onChange` | protected | Dispatches custom bubble event | `ev: Event=` | | LionField |
152
+ | `_onClick` | protected | Clear \_inputNode.value to make sure onChange is called even for duplicate files | `ev: Event` | | |
153
+ | `_onDirtyChanged` | protected | Dispatches event on touched state change | | | LionField |
154
+ | `_onLabelClick` | protected | | | | LionField |
155
+ | `_onModelValueChanged` | protected | Responds to modelValue changes in the synchronous cycle (most subclassers should listen to&#xA;the asynchronous cycle ('modelValue' in the .updated lifecycle)) | `args: { modelValue: unknown; }[]` | | LionField |
156
+ | `_onRemoveFile` | protected | | `ev: CustomEvent` | | |
157
+ | `_onTouchedChanged` | protected | Dispatches event on touched state change | | | LionField |
158
+ | `_onUserInputChanged` | protected | | | | LionField |
159
+ | `_onValidatorUpdated` | protected | | `e: Event\|CustomEvent` | | LionField |
160
+ | `_prioritizeAndFilterFeedback` | protected | Orders all active validators in this.\_\_validationResult.&#xA;Can also filter out occurrences (based on interaction states) | `{ validationResult }, opts: { validationResult: Validator[] }` | `Validator[]` | LionField |
161
+ | `_processDroppedFiles` | protected | | `ev: DragEvent` | | |
162
+ | `_processFiles` | protected | Runs on drag or change event | `selectedFiles: InputFile[]` | | |
163
+ | `_proxyInputEvent` | protected | This can be called whenever the view value should be updated. Dependent on component type&#xA;("input" for \<input> or "change" for \<select>(mainly for IE)) a different event should be&#xA;used as source for the "user-input-changed" event (which can be seen as an abstraction&#xA;layer on top of other events (input, change, whatever)) | | | LionField |
164
+ | `_reflectBackFormattedValueToUser` | protected | Synchronization from \`LionField.value\` to \`.\_inputNode.value\`&#xA;- flow \[1] will always be reflected back&#xA;- flow \[2] will not be reflected back when this flow was triggered via&#xA; \`@user-input-changed\` (this will happen later, when \`formatOn\` condition is met) | | | LionField |
165
+ | `_reflectBackOn` | protected | Every time .formattedValue is attempted to sync to the view value (on change/blur and on&#xA;modelValue change), this condition is checked. In case of the input-file we don't want&#xA;this sync to happen, since the view value is already correct. | | `boolean` | LionField |
166
+ | `_removeFile` | protected | | `removedFile: InputFile` | | |
167
+ | `_repropagationCondition` | protected | Based on provided target, this condition determines whether received model-value-changed&#xA;event should be repropagated | `target: FormControlHost` | | LionField |
168
+ | `_showFeedbackConditionFor` | protected | Default feedbackCondition condition, used by Subclassers, that will be used when&#xA;\`feedbackCondition()\` is not overridden by Application Developer.&#xA;Show the validity feedback when returning true, don't show when false | `type: string, meta: object` | | LionField |
169
+ | `_syncValueUpwards` | protected | Synchronization from \`.\_inputNode.value\` to \`LionField\` (flow \[2])&#xA;Downwards syncing should only happen for \`LionField\`.value changes from 'above'.&#xA;This triggers \_onModelValueChanged and connects user input&#xA;to the parsing/formatting/serializing loop. | | | LionField |
170
+ | `_triggerInitialModelValueChangedEvent` | protected | | | | LionField |
171
+ | `_updateFeedbackComponent` | protected | Responsible for retrieving messages from Validators and&#xA;(delegation of) rendering them.&#xA;&#xA;For \`.\_feedbackNode\` (extension of LionValidationFeedback):&#xA;- retrieve messages from highest prio Validators&#xA;- provide the result to custom feedback node and let the&#xA;custom node decide on their renderings&#xA;&#xA;In both cases:&#xA;- we compute the 'show' flag (like 'hasErrorVisible') for all types&#xA;- we set the customValidity message of the highest prio Validator&#xA;- we set aria-invalid="true" in case hasErrorVisible is true | | | LionField |
172
+ | `_updateShouldShowFeedbackFor` | protected | | | | LionField |
173
+ | `_updateUploadButtonDescription` | protected | Description for screen readers connected to the button about how many files have been updated | | | |
185
174
 
186
175
  ### Events
187
176
 
@@ -250,12 +239,12 @@
250
239
  | Name | Privacy | Description | Parameters | Return | Inherited From |
251
240
  | ------------------------------ | --------- | ----------- | -------------------------------------------------------------- | ------------------------- | -------------- |
252
241
  | `_enhanceLightDomA11y` | protected | | | | |
253
- | `_removeFile` | protected | | `removedFile: InputFile` | | |
254
- | `_validationFeedbackTemplate` | protected | | `validationFeedback: Array<FeedbackMessage>, fileUuid: string` | `TemplateResult` | |
255
- | `_listItemBeforeTemplate` | protected | | `file: InputFile` | `TemplateResult\|nothing` | |
256
242
  | `_listItemAfterTemplate` | protected | | `file: InputFile, fileUuid: string` | `TemplateResult` | |
243
+ | `_listItemBeforeTemplate` | protected | | `file: InputFile` | `TemplateResult\|nothing` | |
257
244
  | `_removeButtonContentTemplate` | protected | | | `TemplateResult` | |
245
+ | `_removeFile` | protected | | `removedFile: InputFile` | | |
258
246
  | `_selectedListItemTemplate` | protected | | `file: InputFile` | `TemplateResult` | |
247
+ | `_validationFeedbackTemplate` | protected | | `validationFeedback: Array<FeedbackMessage>, fileUuid: string` | `TemplateResult` | |
259
248
 
260
249
  ### Events
261
250