@lion/ui 0.10.1 → 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 (108) 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/input-amount/test/lion-input-amount.test.js +48 -1
  7. package/components/input-amount/test/parsers.test.js +1 -1
  8. package/components/localize/src/number/parseNumber.js +21 -12
  9. package/components/localize/test/number/parseNumber.test.js +1 -1
  10. package/components/localize/types/LocalizeMixinTypes.ts +0 -5
  11. package/components/select-rich/src/LionSelectRich.js +18 -2
  12. package/components/select-rich/test/lion-select-rich-interaction.test.js +139 -20
  13. package/components/select-rich/test/lion-select-rich.test.js +13 -1
  14. package/components/validate-messages/translations/pl.js +4 -4
  15. package/custom-elements.json +47661 -47626
  16. package/dist-types/components/checkbox-group/src/LionCheckboxIndeterminate.d.ts +10 -0
  17. package/dist-types/components/checkbox-group/src/LionCheckboxIndeterminate.d.ts.map +1 -1
  18. package/dist-types/components/checkbox-group/test-suites/CheckboxIndeterminate.suite.d.ts.map +1 -1
  19. package/dist-types/components/localize/src/number/parseNumber.d.ts.map +1 -1
  20. package/dist-types/components/localize/types/LocalizeMixinTypes.d.ts +0 -4
  21. package/dist-types/components/localize/types/LocalizeMixinTypes.d.ts.map +1 -1
  22. package/dist-types/components/select-rich/src/LionSelectRich.d.ts.map +1 -1
  23. package/dist-types/tsconfig.tsbuildinfo +1 -1
  24. package/docs/components/accordion/api-table.md +6 -6
  25. package/docs/components/button/api-table.md +27 -30
  26. package/docs/components/calendar/api-table.md +13 -13
  27. package/docs/components/checkbox-group/api-table.md +305 -329
  28. package/docs/components/checkbox-group/overview.md +2 -2
  29. package/docs/components/collapsible/api-table.md +5 -5
  30. package/docs/components/collapsible/overview.md +1 -1
  31. package/docs/components/combobox/api-table.md +150 -154
  32. package/docs/components/combobox/overview.md +1 -1
  33. package/docs/components/combobox/use-cases.md +1 -1
  34. package/docs/components/dialog/api-table.md +12 -12
  35. package/docs/components/dialog/overview.md +1 -1
  36. package/docs/components/drawer/api-table.md +9 -10
  37. package/docs/components/fieldset/api-table.md +104 -118
  38. package/docs/components/fieldset/overview.md +5 -5
  39. package/docs/components/form/overview.md +3 -3
  40. package/docs/components/form/use-cases.md +2 -2
  41. package/docs/components/icon/api-table.md +3 -3
  42. package/docs/components/icon/use-cases.md +1 -1
  43. package/docs/components/input/api-table.md +110 -120
  44. package/docs/components/input/overview.md +1 -1
  45. package/docs/components/input-amount/api-table.md +129 -142
  46. package/docs/components/input-amount/overview.md +3 -3
  47. package/docs/components/input-date/api-table.md +110 -120
  48. package/docs/components/input-date/overview.md +3 -3
  49. package/docs/components/input-datepicker/api-table.md +148 -160
  50. package/docs/components/input-datepicker/overview.md +5 -5
  51. package/docs/components/input-email/api-table.md +110 -120
  52. package/docs/components/input-email/overview.md +2 -2
  53. package/docs/components/input-file/api-table.md +132 -143
  54. package/docs/components/input-file/overview.md +1 -1
  55. package/docs/components/input-iban/api-table.md +110 -120
  56. package/docs/components/input-iban/overview.md +2 -2
  57. package/docs/components/input-range/api-table.md +116 -126
  58. package/docs/components/input-range/overview.md +2 -2
  59. package/docs/components/input-stepper/api-table.md +123 -133
  60. package/docs/components/input-stepper/overview.md +1 -1
  61. package/docs/components/input-tel/api-table.md +118 -128
  62. package/docs/components/input-tel/overview.md +1 -1
  63. package/docs/components/input-tel/use-cases.md +6 -6
  64. package/docs/components/input-tel-dropdown/api-table.md +125 -135
  65. package/docs/components/input-tel-dropdown/overview.md +1 -1
  66. package/docs/components/listbox/api-table.md +126 -131
  67. package/docs/components/listbox/use-cases.md +1 -1
  68. package/docs/components/pagination/api-table.md +5 -5
  69. package/docs/components/progress-indicator/api-table.md +9 -10
  70. package/docs/components/radio-group/api-table.md +234 -258
  71. package/docs/components/radio-group/overview.md +3 -3
  72. package/docs/components/select/api-table.md +106 -116
  73. package/docs/components/select/use-cases.md +1 -1
  74. package/docs/components/select-rich/api-table.md +169 -178
  75. package/docs/components/select-rich/use-cases.md +1 -1
  76. package/docs/components/steps/api-table.md +6 -6
  77. package/docs/components/switch/api-table.md +117 -128
  78. package/docs/components/tabs/api-table.md +1 -1
  79. package/docs/components/tabs/examples.md +1 -1
  80. package/docs/components/textarea/api-table.md +114 -124
  81. package/docs/components/tooltip/api-table.md +13 -13
  82. package/docs/fundamentals/index.md +4 -4
  83. package/docs/fundamentals/node-tools/publish-docs/overview.md +3 -3
  84. package/docs/fundamentals/node-tools/rocket-preset-extend-lion-docs/overview.md +2 -2
  85. package/docs/fundamentals/rationales/accessibility.md +1 -1
  86. package/docs/fundamentals/systems/core/SlotMixin.md +1 -1
  87. package/docs/fundamentals/systems/core/api-table.md +8 -11
  88. package/docs/fundamentals/systems/core/overview.md +1 -1
  89. package/docs/fundamentals/systems/form/api-table.md +77 -82
  90. package/docs/fundamentals/systems/form/formatting-and-parsing.md +4 -4
  91. package/docs/fundamentals/systems/form/model-value.md +1 -1
  92. package/docs/fundamentals/systems/form/overview.md +28 -28
  93. package/docs/fundamentals/systems/form/validate.md +2 -2
  94. package/docs/fundamentals/systems/localize/api-table.md +19 -19
  95. package/docs/fundamentals/systems/localize/overview.md +4 -4
  96. package/docs/fundamentals/systems/overlays/api-table.md +45 -46
  97. package/docs/fundamentals/systems/overlays/configuration.md +2 -2
  98. package/docs/fundamentals/systems/overlays/overview.md +5 -5
  99. package/docs/fundamentals/systems/overlays/use-cases.md +2 -2
  100. package/docs/fundamentals/tools/helpers/overview.md +1 -1
  101. package/docs/fundamentals/tools/singleton-manager/overview.md +4 -4
  102. package/docs/guides/how-to/create-a-custom-field.md +5 -5
  103. package/docs/guides/how-to/create-a-form.md +4 -4
  104. package/docs/guides/how-to/extend-a-native-input.md +2 -2
  105. package/docs/guides/index.md +8 -8
  106. package/docs/guides/principles/index.md +5 -5
  107. package/docs/guides/principles/styling.md +1 -1
  108. package/package.json +1 -1
@@ -6,21 +6,21 @@
6
6
 
7
7
  | Name | Privacy | Type | Default | Description | Inherited From |
8
8
  | -------------- | ------- | --------- | ------- | ---------------------------------------------------------------------- | -------------- |
9
- | `focusedIndex` | public | `number` | | index number of the focused accordion | |
10
- | `expanded` | public | `array` | | array of indices of the expanded accordions | |
11
9
  | `exclusive` | public | `boolean` | `false` | exclusive property allows only one accordion slot to be open at a time | |
10
+ | `expanded` | public | `array` | | array of indices of the expanded accordions | |
11
+ | `focusedIndex` | public | `number` | | index number of the focused accordion | |
12
12
 
13
13
  ### Methods
14
14
 
15
15
  | Name | Privacy | Description | Parameters | Return | Inherited From |
16
16
  | ----------------- | --------- | ----------- | ------------------- | ------ | -------------- |
17
- | `_setupContent` | protected | | `entry: StoreEntry` | | |
18
- | `_setupInvoker` | protected | | `entry: StoreEntry` | | |
19
17
  | `_cleanInvoker` | protected | | `entry: StoreEntry` | | |
20
- | `_focusInvoker` | protected | | `entry: StoreEntry` | | |
21
- | `_unfocusInvoker` | protected | | `entry: StoreEntry` | | |
22
18
  | `_collapse` | protected | | `entry: StoreEntry` | | |
23
19
  | `_expand` | protected | | `entry: StoreEntry` | | |
20
+ | `_focusInvoker` | protected | | `entry: StoreEntry` | | |
21
+ | `_setupContent` | protected | | `entry: StoreEntry` | | |
22
+ | `_setupInvoker` | protected | | `entry: StoreEntry` | | |
23
+ | `_unfocusInvoker` | protected | | `entry: StoreEntry` | | |
24
24
 
25
25
  ### Attributes
26
26
 
@@ -6,20 +6,20 @@
6
6
 
7
7
  | Name | Privacy | Type | Default | Description | Inherited From |
8
8
  | ------------------------ | --------- | --------- | ---------- | ----------- | ------------------------- |
9
- | `type` | public | `string` | `'button'` | | |
10
9
  | `active` | public | `boolean` | `false` | | |
11
- | `_buttonId` | protected | | | | |
10
+ | `disabled` | public | `boolean` | `false` | | DisabledMixin |
12
11
  | `tabIndex` | public | `number` | | | DisabledWithTabIndexMixin |
12
+ | `type` | public | `string` | `'button'` | | |
13
+ | `_buttonId` | protected | | | | |
13
14
  | `_requestedToBeDisabled` | protected | `boolean` | `false` | | DisabledMixin |
14
- | `disabled` | public | `boolean` | `false` | | DisabledMixin |
15
15
 
16
16
  ### Methods
17
17
 
18
18
  | Name | Privacy | Description | Parameters | Return | Inherited From |
19
19
  | ---------------------------- | ------- | ----------- | ---------- | ------ | -------------- |
20
+ | `click` | public | | | | DisabledMixin |
20
21
  | `makeRequestToBeDisabled` | public | | | | DisabledMixin |
21
22
  | `retractRequestToBeDisabled` | public | | | | DisabledMixin |
22
- | `click` | public | | | | DisabledMixin |
23
23
 
24
24
  ### Attributes
25
25
 
@@ -37,25 +37,24 @@
37
37
 
38
38
  ### Fields
39
39
 
40
- | Name | Privacy | Type | Default | Description | Inherited From |
41
- | ------------------------------ | --------- | ------------------- | --------- | ----------- | -------------- |
42
- | `type` | public | `string` | `'reset'` | | LionButton |
43
- | `__submitAndResetHelperButton` | protected | `HTMLButtonElement` | | | |
44
- | `tabIndex` | public | `number` | | | LionButton |
45
- | `_requestedToBeDisabled` | protected | `boolean` | `false` | | LionButton |
46
- | `disabled` | public | `boolean` | `false` | | LionButton |
47
- | `active` | public | `boolean` | `false` | | LionButton |
48
- | `_buttonId` | protected | | | | LionButton |
40
+ | Name | Privacy | Type | Default | Description | Inherited From |
41
+ | ------------------------ | --------- | --------- | --------- | ----------- | -------------- |
42
+ | `active` | public | `boolean` | `false` | | LionButton |
43
+ | `disabled` | public | `boolean` | `false` | | LionButton |
44
+ | `tabIndex` | public | `number` | | | LionButton |
45
+ | `type` | public | `string` | `'reset'` | | LionButton |
46
+ | `_buttonId` | protected | | | | LionButton |
47
+ | `_requestedToBeDisabled` | protected | `boolean` | `false` | | LionButton |
49
48
 
50
49
  ### Methods
51
50
 
52
51
  | Name | Privacy | Description | Parameters | Return | Inherited From |
53
52
  | --------------------------------------------- | --------- | ----------- | ---------- | ------ | -------------- |
54
- | `_setupSubmitAndResetHelperOnConnected` | protected | | | | |
55
- | `_teardownSubmitAndResetHelperOnDisconnected` | protected | | | | |
53
+ | `click` | public | | | | LionButton |
56
54
  | `makeRequestToBeDisabled` | public | | | | LionButton |
57
55
  | `retractRequestToBeDisabled` | public | | | | LionButton |
58
- | `click` | public | | | | LionButton |
56
+ | `_setupSubmitAndResetHelperOnConnected` | protected | | | | |
57
+ | `_teardownSubmitAndResetHelperOnDisconnected` | protected | | | | |
59
58
 
60
59
  ### Attributes
61
60
 
@@ -73,27 +72,25 @@
73
72
 
74
73
  ### Fields
75
74
 
76
- | Name | Privacy | Type | Default | Description | Inherited From |
77
- | ------------------------------ | --------- | ------------------------- | ---------- | ----------- | --------------- |
78
- | `_nativeButtonNode` | protected | `HTMLButtonElement\|null` | | | |
79
- | `type` | public | `string` | `'submit'` | | LionButton |
80
- | `__implicitSubmitHelperButton` | protected | `HTMLButtonElement\|null` | `null` | | |
81
- | `__submitAndResetHelperButton` | protected | `HTMLButtonElement` | | | LionButtonReset |
82
- | `tabIndex` | public | `number` | | | LionButton |
83
- | `_requestedToBeDisabled` | protected | `boolean` | `false` | | LionButton |
84
- | `disabled` | public | `boolean` | `false` | | LionButton |
85
- | `active` | public | `boolean` | `false` | | LionButton |
86
- | `_buttonId` | protected | | | | LionButton |
75
+ | Name | Privacy | Type | Default | Description | Inherited From |
76
+ | ------------------------ | --------- | ------------------------- | ---------- | ----------- | -------------- |
77
+ | `active` | public | `boolean` | `false` | | LionButton |
78
+ | `disabled` | public | `boolean` | `false` | | LionButton |
79
+ | `tabIndex` | public | `number` | | | LionButton |
80
+ | `type` | public | `string` | `'submit'` | | LionButton |
81
+ | `_buttonId` | protected | | | | LionButton |
82
+ | `_nativeButtonNode` | protected | `HTMLButtonElement\|null` | | | |
83
+ | `_requestedToBeDisabled` | protected | `boolean` | `false` | | LionButton |
87
84
 
88
85
  ### Methods
89
86
 
90
87
  | Name | Privacy | Description | Parameters | Return | Inherited From |
91
88
  | --------------------------------------------- | --------- | ----------- | ---------- | ------ | --------------- |
92
- | `_setupSubmitAndResetHelperOnConnected` | protected | | | | LionButtonReset |
93
- | `_teardownSubmitAndResetHelperOnDisconnected` | protected | | | | LionButtonReset |
89
+ | `click` | public | | | | LionButton |
94
90
  | `makeRequestToBeDisabled` | public | | | | LionButton |
95
91
  | `retractRequestToBeDisabled` | public | | | | LionButton |
96
- | `click` | public | | | | LionButton |
92
+ | `_setupSubmitAndResetHelperOnConnected` | protected | | | | LionButtonReset |
93
+ | `_teardownSubmitAndResetHelperOnDisconnected` | protected | | | | LionButtonReset |
97
94
 
98
95
  ### Attributes
99
96
 
@@ -6,34 +6,34 @@
6
6
 
7
7
  | Name | Privacy | Type | Default | Description | Inherited From |
8
8
  | ----------------------- | ------- | -------- | ---------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------- |
9
- | `focusedDate` | public | | | | |
10
- | `minDate` | public | | `new Date(0)` | Minimum date. All dates before will be disabled | |
11
- | `maxDate` | public | | `new Date(8640000000000000)` | Maximum date. All dates after will be disabled | |
9
+ | `centralDate` | public | `Date` | | The date that
1\. determines the currently visible month
2\. will be focused when the month grid gets focused by the keyboard | |
12
10
  | `dayPreprocessor` | public | | | | |
13
11
  | `disableDates` | public | | | Disable certain dates | |
14
12
  | `firstDayOfWeek` | public | `number` | `0` | Weekday that will be displayed in first column of month grid.
0: sunday, 1: monday, 2: tuesday, 3: wednesday , 4: thursday, 5: friday, 6: saturday
Default is 0 | |
15
- | `weekdayHeaderNotation` | public | `string` | `'short'` | Weekday header notation, based on Intl DatetimeFormat:
- 'long' (e.g., Thursday)
- 'short' (e.g., Thu)
- 'narrow' (e.g., T).
Default is 'short' | |
16
- | `centralDate` | public | `Date` | | The date that
1\. determines the currently visible month
2\. will be focused when the month grid gets focused by the keyboard | |
13
+ | `focusedDate` | public | | | | |
17
14
  | `locale` | public | `string` | `''` | Different locale for this component scope | |
15
+ | `maxDate` | public | | `new Date(8640000000000000)` | Maximum date. All dates after will be disabled | |
16
+ | `minDate` | public | | `new Date(0)` | Minimum date. All dates before will be disabled | |
18
17
  | `selectedDate` | public | | | The selected date, usually synchronized with datepicker-input
Not to be confused with the focused date (therefore not necessarily in active month view) | |
18
+ | `weekdayHeaderNotation` | public | `string` | `'short'` | Weekday header notation, based on Intl DatetimeFormat:
- 'long' (e.g., Thursday)
- 'short' (e.g., Thu)
- 'narrow' (e.g., T).
Default is 'short' | |
19
19
 
20
20
  ### Methods
21
21
 
22
22
  | Name | Privacy | Description | Parameters | Return | Inherited From |
23
23
  | ------------------------- | --------- | ----------------------------------------------------------------------------------------------- | ------------ | ------ | -------------- |
24
+ | `findNearestEnabledDate` | public | | `date: Date` | | |
25
+ | `findNextEnabledDate` | public | | `date: Date` | | |
26
+ | `findPreviousEnabledDate` | public | | `date: Date` | | |
27
+ | `focusCentralDate` | public | | | | |
28
+ | `focusDate` | public | | `date: Date` | | |
29
+ | `focusSelectedDate` | public | | | | |
24
30
  | `goToNextMonth` | public | | | | |
25
- | `goToPreviousMonth` | public | | | | |
26
31
  | `goToNextYear` | public | | | | |
32
+ | `goToPreviousMonth` | public | | | | |
27
33
  | `goToPreviousYear` | public | | | | |
28
- | `focusDate` | public | | `date: Date` | | |
29
- | `focusCentralDate` | public | | | | |
30
- | `focusSelectedDate` | public | | | | |
31
34
  | `initCentralDate` | public | This exposes an interface for datepickers that want to
reinitialize when calendar is opened | | | |
32
- | `_previousIconTemplate` | protected | | | | |
33
35
  | `_nextIconTemplate` | protected | | | | |
34
- | `findNextEnabledDate` | public | | `date: Date` | | |
35
- | `findPreviousEnabledDate` | public | | `date: Date` | | |
36
- | `findNearestEnabledDate` | public | | `date: Date` | | |
36
+ | `_previousIconTemplate` | protected | | | | |
37
37
 
38
38
  ### Events
39
39