@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.
- package/README.md +2 -2
- package/components/checkbox-group/src/LionCheckboxIndeterminate.js +39 -16
- package/components/checkbox-group/test-suites/CheckboxIndeterminate.suite.js +189 -1
- package/components/form-core/src/FocusMixin.js +4 -4
- package/components/form-core/src/LionField.js +1 -1
- package/components/input-amount/test/lion-input-amount.test.js +48 -1
- package/components/input-amount/test/parsers.test.js +1 -1
- package/components/localize/src/number/parseNumber.js +21 -12
- package/components/localize/test/number/parseNumber.test.js +1 -1
- package/components/localize/types/LocalizeMixinTypes.ts +0 -5
- package/components/select-rich/src/LionSelectRich.js +18 -2
- package/components/select-rich/test/lion-select-rich-interaction.test.js +139 -20
- package/components/select-rich/test/lion-select-rich.test.js +13 -1
- package/components/validate-messages/translations/pl.js +4 -4
- package/custom-elements.json +47661 -47626
- package/dist-types/components/checkbox-group/src/LionCheckboxIndeterminate.d.ts +10 -0
- package/dist-types/components/checkbox-group/src/LionCheckboxIndeterminate.d.ts.map +1 -1
- package/dist-types/components/checkbox-group/test-suites/CheckboxIndeterminate.suite.d.ts.map +1 -1
- package/dist-types/components/localize/src/number/parseNumber.d.ts.map +1 -1
- package/dist-types/components/localize/types/LocalizeMixinTypes.d.ts +0 -4
- package/dist-types/components/localize/types/LocalizeMixinTypes.d.ts.map +1 -1
- package/dist-types/components/select-rich/src/LionSelectRich.d.ts.map +1 -1
- package/dist-types/tsconfig.tsbuildinfo +1 -1
- package/docs/components/accordion/api-table.md +6 -6
- package/docs/components/button/api-table.md +27 -30
- package/docs/components/calendar/api-table.md +13 -13
- package/docs/components/checkbox-group/api-table.md +305 -329
- package/docs/components/checkbox-group/overview.md +2 -2
- package/docs/components/collapsible/api-table.md +5 -5
- package/docs/components/collapsible/overview.md +1 -1
- package/docs/components/combobox/api-table.md +150 -154
- package/docs/components/combobox/overview.md +1 -1
- package/docs/components/combobox/use-cases.md +1 -1
- package/docs/components/dialog/api-table.md +12 -12
- package/docs/components/dialog/overview.md +1 -1
- package/docs/components/drawer/api-table.md +9 -10
- package/docs/components/fieldset/api-table.md +104 -118
- package/docs/components/fieldset/overview.md +5 -5
- package/docs/components/form/overview.md +3 -3
- package/docs/components/form/use-cases.md +2 -2
- package/docs/components/icon/api-table.md +3 -3
- package/docs/components/icon/use-cases.md +1 -1
- package/docs/components/input/api-table.md +110 -120
- package/docs/components/input/overview.md +1 -1
- package/docs/components/input-amount/api-table.md +129 -142
- package/docs/components/input-amount/overview.md +3 -3
- package/docs/components/input-date/api-table.md +110 -120
- package/docs/components/input-date/overview.md +3 -3
- package/docs/components/input-datepicker/api-table.md +148 -160
- package/docs/components/input-datepicker/overview.md +5 -5
- package/docs/components/input-email/api-table.md +110 -120
- package/docs/components/input-email/overview.md +2 -2
- package/docs/components/input-file/api-table.md +132 -143
- package/docs/components/input-file/overview.md +1 -1
- package/docs/components/input-iban/api-table.md +110 -120
- package/docs/components/input-iban/overview.md +2 -2
- package/docs/components/input-range/api-table.md +116 -126
- package/docs/components/input-range/overview.md +2 -2
- package/docs/components/input-stepper/api-table.md +123 -133
- package/docs/components/input-stepper/overview.md +1 -1
- package/docs/components/input-tel/api-table.md +118 -128
- 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 +125 -135
- package/docs/components/input-tel-dropdown/overview.md +1 -1
- package/docs/components/listbox/api-table.md +126 -131
- package/docs/components/listbox/use-cases.md +1 -1
- package/docs/components/pagination/api-table.md +5 -5
- package/docs/components/progress-indicator/api-table.md +9 -10
- package/docs/components/radio-group/api-table.md +234 -258
- package/docs/components/radio-group/overview.md +3 -3
- package/docs/components/select/api-table.md +106 -116
- package/docs/components/select/use-cases.md +1 -1
- package/docs/components/select-rich/api-table.md +169 -178
- package/docs/components/select-rich/use-cases.md +1 -1
- package/docs/components/steps/api-table.md +6 -6
- package/docs/components/switch/api-table.md +117 -128
- package/docs/components/tabs/api-table.md +1 -1
- package/docs/components/tabs/examples.md +1 -1
- package/docs/components/textarea/api-table.md +114 -124
- package/docs/components/tooltip/api-table.md +13 -13
- package/docs/fundamentals/index.md +4 -4
- package/docs/fundamentals/node-tools/publish-docs/overview.md +3 -3
- package/docs/fundamentals/node-tools/rocket-preset-extend-lion-docs/overview.md +2 -2
- package/docs/fundamentals/rationales/accessibility.md +1 -1
- package/docs/fundamentals/systems/core/SlotMixin.md +1 -1
- package/docs/fundamentals/systems/core/api-table.md +8 -11
- package/docs/fundamentals/systems/core/overview.md +1 -1
- package/docs/fundamentals/systems/form/api-table.md +77 -82
- 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 +19 -19
- package/docs/fundamentals/systems/localize/overview.md +4 -4
- package/docs/fundamentals/systems/overlays/api-table.md +45 -46
- 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 +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
|
-
| `
|
|
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
|
|
41
|
-
|
|
|
42
|
-
| `
|
|
43
|
-
| `
|
|
44
|
-
| `tabIndex`
|
|
45
|
-
| `
|
|
46
|
-
| `
|
|
47
|
-
| `
|
|
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
|
-
| `
|
|
55
|
-
| `_teardownSubmitAndResetHelperOnDisconnected` | protected | | | | |
|
|
53
|
+
| `click` | public | | | | LionButton |
|
|
56
54
|
| `makeRequestToBeDisabled` | public | | | | LionButton |
|
|
57
55
|
| `retractRequestToBeDisabled` | public | | | | LionButton |
|
|
58
|
-
| `
|
|
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
|
|
77
|
-
|
|
|
78
|
-
| `
|
|
79
|
-
| `
|
|
80
|
-
| `
|
|
81
|
-
| `
|
|
82
|
-
| `
|
|
83
|
-
| `
|
|
84
|
-
| `
|
|
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
|
-
| `
|
|
93
|
-
| `_teardownSubmitAndResetHelperOnDisconnected` | protected | | | | LionButtonReset |
|
|
89
|
+
| `click` | public | | | | LionButton |
|
|
94
90
|
| `makeRequestToBeDisabled` | public | | | | LionButton |
|
|
95
91
|
| `retractRequestToBeDisabled` | public | | | | LionButton |
|
|
96
|
-
| `
|
|
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
|
-
| `
|
|
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
|
-
| `
|
|
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
|
-
| `
|
|
35
|
-
| `findPreviousEnabledDate` | public | | `date: Date` | | |
|
|
36
|
-
| `findNearestEnabledDate` | public | | `date: Date` | | |
|
|
36
|
+
| `_previousIconTemplate` | protected | | | | |
|
|
37
37
|
|
|
38
38
|
### Events
|
|
39
39
|
|