@statistikzh/leu 0.5.1 → 0.6.0
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/.husky/commit-msg +0 -3
- package/.husky/pre-commit +0 -3
- package/CHANGELOG.md +40 -0
- package/dist/Accordion.d.ts +10 -9
- package/dist/Accordion.d.ts.map +1 -1
- package/dist/Accordion.js +12 -11
- package/dist/Breadcrumb.d.ts +4 -4
- package/dist/Breadcrumb.d.ts.map +1 -1
- package/dist/Breadcrumb.js +28 -26
- package/dist/{Button-5326c982.d.ts → Button-9692e403.d.ts} +10 -11
- package/dist/Button-9692e403.d.ts.map +1 -0
- package/dist/{Button-5326c982.js → Button-9692e403.js} +57 -67
- package/dist/Button.d.ts +1 -1
- package/dist/Button.js +3 -3
- package/dist/ButtonGroup.d.ts +2 -2
- package/dist/ButtonGroup.d.ts.map +1 -1
- package/dist/ButtonGroup.js +3 -3
- package/dist/Checkbox.d.ts +4 -3
- package/dist/Checkbox.d.ts.map +1 -1
- package/dist/Checkbox.js +14 -19
- package/dist/CheckboxGroup.d.ts +2 -2
- package/dist/CheckboxGroup.d.ts.map +1 -1
- package/dist/CheckboxGroup.js +4 -6
- package/dist/Chip.d.ts +2 -2
- package/dist/Chip.d.ts.map +1 -1
- package/dist/Chip.js +6 -13
- package/dist/ChipGroup.d.ts +9 -7
- package/dist/ChipGroup.d.ts.map +1 -1
- package/dist/ChipGroup.js +8 -5
- package/dist/ChipLink.d.ts +2 -1
- package/dist/ChipLink.d.ts.map +1 -1
- package/dist/ChipLink.js +4 -7
- package/dist/ChipRemovable.d.ts +0 -2
- package/dist/ChipRemovable.d.ts.map +1 -1
- package/dist/ChipRemovable.js +8 -11
- package/dist/ChipSelectable.d.ts +9 -1
- package/dist/ChipSelectable.d.ts.map +1 -1
- package/dist/ChipSelectable.js +12 -16
- package/dist/Dropdown.d.ts +9 -5
- package/dist/Dropdown.d.ts.map +1 -1
- package/dist/Dropdown.js +68 -32
- package/dist/Icon.d.ts +20 -0
- package/dist/Icon.d.ts.map +1 -0
- package/dist/{icon-03e86700.js → Icon.js} +61 -32
- package/dist/Input.d.ts +7 -16
- package/dist/Input.d.ts.map +1 -1
- package/dist/Input.js +24 -28
- package/dist/LeuElement-6de6f209.d.ts +7 -0
- package/dist/LeuElement-6de6f209.d.ts.map +1 -0
- package/dist/LeuElement-6de6f209.js +43 -0
- package/dist/Menu.d.ts +24 -2
- package/dist/Menu.d.ts.map +1 -1
- package/dist/Menu.js +120 -3
- package/dist/MenuItem.d.ts +28 -11
- package/dist/MenuItem.d.ts.map +1 -1
- package/dist/MenuItem.js +110 -63
- package/dist/Pagination.d.ts +10 -3
- package/dist/Pagination.d.ts.map +1 -1
- package/dist/Pagination.js +24 -21
- package/dist/Popup.d.ts +21 -3
- package/dist/Popup.d.ts.map +1 -1
- package/dist/Popup.js +44 -19
- package/dist/Radio.d.ts +4 -2
- package/dist/Radio.d.ts.map +1 -1
- package/dist/Radio.js +9 -16
- package/dist/RadioGroup.d.ts +2 -2
- package/dist/RadioGroup.d.ts.map +1 -1
- package/dist/RadioGroup.js +4 -6
- package/dist/ScrollTop.d.ts +2 -2
- package/dist/ScrollTop.d.ts.map +1 -1
- package/dist/ScrollTop.js +10 -8
- package/dist/Select.d.ts +75 -37
- package/dist/Select.d.ts.map +1 -1
- package/dist/Select.js +279 -183
- package/dist/Table.d.ts +2 -6
- package/dist/Table.d.ts.map +1 -1
- package/dist/Table.js +17 -18
- package/dist/VisuallyHidden.d.ts +2 -2
- package/dist/VisuallyHidden.d.ts.map +1 -1
- package/dist/VisuallyHidden.js +5 -7
- package/dist/index.d.ts +2 -2
- package/dist/index.js +5 -14
- package/dist/leu-accordion.d.ts.map +1 -1
- package/dist/leu-accordion.js +2 -3
- package/dist/leu-breadcrumb.d.ts.map +1 -1
- package/dist/leu-breadcrumb.js +4 -10
- package/dist/leu-button-group.d.ts.map +1 -1
- package/dist/leu-button-group.js +2 -3
- package/dist/leu-button.d.ts +1 -1
- package/dist/leu-button.d.ts.map +1 -1
- package/dist/leu-button.js +4 -5
- package/dist/leu-checkbox-group.d.ts.map +1 -1
- package/dist/leu-checkbox-group.js +2 -3
- package/dist/leu-checkbox.d.ts.map +1 -1
- package/dist/leu-checkbox.js +3 -4
- package/dist/leu-chip-group.d.ts.map +1 -1
- package/dist/leu-chip-group.js +2 -3
- package/dist/leu-chip-link.d.ts.map +1 -1
- package/dist/leu-chip-link.js +2 -3
- package/dist/leu-chip-removable.d.ts.map +1 -1
- package/dist/leu-chip-removable.js +3 -4
- package/dist/leu-chip-selectable.d.ts.map +1 -1
- package/dist/leu-chip-selectable.js +2 -3
- package/dist/leu-dropdown.d.ts.map +1 -1
- package/dist/leu-dropdown.js +5 -10
- package/dist/leu-icon.d.ts +3 -0
- package/dist/leu-icon.d.ts.map +1 -0
- package/dist/leu-icon.js +7 -0
- package/dist/leu-input.d.ts.map +1 -1
- package/dist/leu-input.js +3 -4
- package/dist/leu-menu-item.d.ts.map +1 -1
- package/dist/leu-menu-item.js +3 -5
- package/dist/leu-menu.d.ts.map +1 -1
- package/dist/leu-menu.js +5 -3
- package/dist/leu-pagination.d.ts.map +1 -1
- package/dist/leu-pagination.js +4 -7
- package/dist/leu-popup.d.ts.map +1 -1
- package/dist/leu-popup.js +2 -3
- package/dist/leu-radio-group.d.ts.map +1 -1
- package/dist/leu-radio-group.js +2 -3
- package/dist/leu-radio.d.ts.map +1 -1
- package/dist/leu-radio.js +2 -3
- package/dist/leu-scroll-top.d.ts.map +1 -1
- package/dist/leu-scroll-top.js +4 -6
- package/dist/leu-select.d.ts.map +1 -1
- package/dist/leu-select.js +5 -13
- package/dist/leu-table.d.ts.map +1 -1
- package/dist/leu-table.js +4 -8
- package/dist/leu-visually-hidden.d.ts.map +1 -1
- package/dist/leu-visually-hidden.js +2 -3
- package/dist/theme.css +2 -0
- package/dist/vscode.html-custom-data.json +116 -79
- package/dist/vue/index.d.ts +80 -76
- package/dist/web-types.json +405 -270
- package/package.json +9 -12
- package/scripts/generate-component/templates/[Name].js +6 -3
- package/scripts/generate-component/templates/test/[name].test.js +1 -1
- package/src/components/accordion/Accordion.js +13 -10
- package/src/components/accordion/leu-accordion.js +1 -2
- package/src/components/breadcrumb/Breadcrumb.js +31 -18
- package/src/components/breadcrumb/leu-breadcrumb.js +1 -2
- package/src/components/button/Button.js +45 -71
- package/src/components/button/button.css +11 -9
- package/src/components/button/leu-button.js +1 -2
- package/src/components/button/stories/button.stories.js +60 -19
- package/src/components/button/test/button.test.js +26 -63
- package/src/components/button-group/ButtonGroup.js +4 -2
- package/src/components/button-group/leu-button-group.js +1 -2
- package/src/components/checkbox/Checkbox.js +17 -11
- package/src/components/checkbox/CheckboxGroup.js +6 -3
- package/src/components/checkbox/leu-checkbox-group.js +1 -2
- package/src/components/checkbox/leu-checkbox.js +1 -2
- package/src/components/checkbox/stories/checkbox-group.stories.js +10 -26
- package/src/components/checkbox/stories/checkbox.stories.js +2 -7
- package/src/components/checkbox/test/checkbox-group.test.js +6 -21
- package/src/components/checkbox/test/checkbox.test.js +1 -12
- package/src/components/chip/Chip.js +5 -4
- package/src/components/chip/ChipGroup.js +10 -4
- package/src/components/chip/ChipLink.js +3 -7
- package/src/components/chip/ChipRemovable.js +8 -11
- package/src/components/chip/ChipSelectable.js +11 -17
- package/src/components/chip/chip.css +3 -4
- package/src/components/chip/leu-chip-group.js +1 -2
- package/src/components/chip/leu-chip-link.js +1 -2
- package/src/components/chip/leu-chip-removable.js +1 -2
- package/src/components/chip/leu-chip-selectable.js +1 -2
- package/src/components/chip/stories/chip-link.stories.js +3 -5
- package/src/components/chip/stories/chip-removable.stories.js +3 -4
- package/src/components/chip/stories/chip-selectable.stories.js +2 -2
- package/src/components/chip/test/chip-group.test.js +15 -30
- package/src/components/chip/test/chip-link.test.js +2 -6
- package/src/components/chip/test/chip-removable.test.js +4 -10
- package/src/components/chip/test/chip-selectable.test.js +3 -5
- package/src/components/dropdown/Dropdown.js +79 -26
- package/src/components/dropdown/leu-dropdown.js +1 -2
- package/src/components/dropdown/stories/dropdown.stories.js +30 -7
- package/src/components/dropdown/test/dropdown.test.js +5 -5
- package/src/components/icon/Icon.js +55 -0
- package/src/components/icon/icon.css +6 -0
- package/src/components/icon/leu-icon.js +5 -0
- package/src/components/icon/{icon.js → paths.js} +4 -37
- package/src/components/icon/stories/icon.stories.js +47 -0
- package/src/components/icon/test/icon.test.js +23 -40
- package/src/components/input/Input.js +21 -23
- package/src/components/input/input.css +4 -2
- package/src/components/input/leu-input.js +1 -2
- package/src/components/input/stories/input.stories.js +2 -2
- package/src/components/input/test/input.test.js +2 -0
- package/src/components/menu/Menu.js +143 -2
- package/src/components/menu/MenuItem.js +104 -52
- package/src/components/menu/leu-menu-item.js +1 -2
- package/src/components/menu/leu-menu.js +1 -2
- package/src/components/menu/menu-item.css +11 -4
- package/src/components/menu/stories/menu-item.stories.js +15 -4
- package/src/components/menu/stories/menu.stories.js +34 -7
- package/src/components/menu/test/menu-item.test.js +88 -82
- package/src/components/menu/test/menu.test.js +101 -8
- package/src/components/pagination/Pagination.js +27 -18
- package/src/components/pagination/leu-pagination.js +1 -2
- package/src/components/popup/Popup.js +39 -16
- package/src/components/popup/leu-popup.js +1 -2
- package/src/components/popup/popup.css +1 -0
- package/src/components/radio/Radio.js +12 -7
- package/src/components/radio/RadioGroup.js +6 -3
- package/src/components/radio/leu-radio-group.js +1 -2
- package/src/components/radio/leu-radio.js +1 -2
- package/src/components/radio/stories/radio-group.stories.js +5 -19
- package/src/components/radio/stories/radio.stories.js +2 -7
- package/src/components/radio/test/radio-group.test.js +6 -9
- package/src/components/radio/test/radio.test.js +3 -13
- package/src/components/scroll-top/ScrollTop.js +15 -5
- package/src/components/scroll-top/leu-scroll-top.js +1 -2
- package/src/components/select/Select.js +279 -175
- package/src/components/select/leu-select.js +1 -2
- package/src/components/select/select.css +20 -12
- package/src/components/select/stories/select.stories.js +16 -2
- package/src/components/select/test/select.test.js +191 -37
- package/src/components/table/Table.js +15 -9
- package/src/components/table/leu-table.js +1 -2
- package/src/components/table/table.css +3 -1
- package/src/components/visually-hidden/VisuallyHidden.js +6 -2
- package/src/components/visually-hidden/leu-visually-hidden.js +1 -2
- package/src/lib/LeuElement.js +23 -0
- package/src/lib/a11y.js +26 -0
- package/src/styles/custom-properties.css +2 -0
- package/web-test-runner.config.mjs +2 -0
- package/dist/Button-5326c982.d.ts.map +0 -1
- package/dist/_rollupPluginBabelHelpers-20f659f4.d.ts +0 -3
- package/dist/_rollupPluginBabelHelpers-20f659f4.d.ts.map +0 -1
- package/dist/_rollupPluginBabelHelpers-20f659f4.js +0 -30
- package/dist/defineElement-40372b4b.d.ts +0 -9
- package/dist/defineElement-40372b4b.d.ts.map +0 -1
- package/dist/defineElement-40372b4b.js +0 -15
- package/dist/icon-03e86700.d.ts +0 -11
- package/dist/icon-03e86700.d.ts.map +0 -1
- package/src/lib/defineElement.js +0 -13
package/dist/web-types.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
|
|
3
3
|
"name": "@statistikzh/leu",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.6.0",
|
|
5
5
|
"description-markup": "markdown",
|
|
6
6
|
"contributions": {
|
|
7
7
|
"html": {
|
|
@@ -14,22 +14,22 @@
|
|
|
14
14
|
{
|
|
15
15
|
"name": "heading-level",
|
|
16
16
|
"description": "The heading level of the accordion title. Must be between 1 and 6.",
|
|
17
|
-
"value": { "type": "
|
|
17
|
+
"value": { "type": "number", "default": "2" }
|
|
18
18
|
},
|
|
19
19
|
{
|
|
20
20
|
"name": "label-prefix",
|
|
21
21
|
"description": "The prefix of the accordion label. e.g. \"01\"",
|
|
22
|
-
"value": { "type": "
|
|
22
|
+
"value": { "type": "string", "default": "\"\"" }
|
|
23
23
|
},
|
|
24
24
|
{
|
|
25
25
|
"name": "open",
|
|
26
26
|
"description": "The expanded state of the accordion.",
|
|
27
|
-
"value": { "type": "
|
|
27
|
+
"value": { "type": "boolean", "default": "false" }
|
|
28
28
|
},
|
|
29
29
|
{
|
|
30
30
|
"name": "label",
|
|
31
31
|
"description": "The label (title) of the accordion.",
|
|
32
|
-
"value": { "type": "
|
|
32
|
+
"value": { "type": "string", "default": "\"\"" }
|
|
33
33
|
}
|
|
34
34
|
],
|
|
35
35
|
"slots": [
|
|
@@ -42,24 +42,24 @@
|
|
|
42
42
|
"js": {
|
|
43
43
|
"properties": [
|
|
44
44
|
{
|
|
45
|
-
"name": "
|
|
45
|
+
"name": "headingLevel",
|
|
46
46
|
"description": "The heading level of the accordion title. Must be between 1 and 6.",
|
|
47
|
-
"
|
|
48
|
-
},
|
|
49
|
-
{
|
|
50
|
-
"name": "label-prefix",
|
|
51
|
-
"description": "The prefix of the accordion label. e.g. \"01\"",
|
|
52
|
-
"value": { "type": "String" }
|
|
47
|
+
"type": "number"
|
|
53
48
|
},
|
|
54
49
|
{
|
|
55
50
|
"name": "open",
|
|
56
51
|
"description": "The expanded state of the accordion.",
|
|
57
|
-
"
|
|
52
|
+
"type": "boolean"
|
|
58
53
|
},
|
|
59
54
|
{
|
|
60
55
|
"name": "label",
|
|
61
56
|
"description": "The label (title) of the accordion.",
|
|
62
|
-
"
|
|
57
|
+
"type": "string"
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"name": "labelPrefix",
|
|
61
|
+
"description": "The prefix of the accordion label. e.g. \"01\"",
|
|
62
|
+
"type": "string"
|
|
63
63
|
}
|
|
64
64
|
],
|
|
65
65
|
"events": []
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
{
|
|
79
79
|
"name": "inverted",
|
|
80
80
|
"description": "invert color on dark background",
|
|
81
|
-
"value": { "type": "
|
|
81
|
+
"value": { "type": "boolean", "default": "false" }
|
|
82
82
|
},
|
|
83
83
|
{ "name": "_hiddenItems", "value": { "type": "string" } },
|
|
84
84
|
{ "name": "_showBackOnly", "value": { "type": "string" } },
|
|
@@ -88,45 +88,36 @@
|
|
|
88
88
|
"events": [],
|
|
89
89
|
"js": {
|
|
90
90
|
"properties": [
|
|
91
|
+
{ "name": "_handleResize" },
|
|
92
|
+
{ "name": "_closeDropdown" },
|
|
91
93
|
{
|
|
92
94
|
"name": "items",
|
|
93
95
|
"description": "Object array with { label, href }",
|
|
94
|
-
"
|
|
96
|
+
"type": "Array"
|
|
95
97
|
},
|
|
96
98
|
{
|
|
97
99
|
"name": "inverted",
|
|
98
|
-
"description": "
|
|
99
|
-
"
|
|
100
|
+
"description": "will be used on dark Background",
|
|
101
|
+
"type": "boolean"
|
|
100
102
|
},
|
|
101
|
-
{ "name": "
|
|
102
|
-
{ "name": "
|
|
103
|
-
{ "name": "
|
|
104
|
-
{ "name": "
|
|
103
|
+
{ "name": "resizeObserver" },
|
|
104
|
+
{ "name": "_hiddenItems", "type": "number" },
|
|
105
|
+
{ "name": "_showBackOnly", "type": "null" },
|
|
106
|
+
{ "name": "_isRecalculating", "type": "boolean" },
|
|
107
|
+
{ "name": "_isDropdownOpen", "type": "boolean" }
|
|
105
108
|
],
|
|
106
109
|
"events": []
|
|
107
110
|
}
|
|
108
111
|
},
|
|
109
112
|
{
|
|
110
113
|
"name": "leu-button",
|
|
111
|
-
"description": "\n---\n",
|
|
114
|
+
"description": "\n---\n\n\n### **Slots:**\n - **before** - The icon to display before the label\n- **after** - The icon to display after the label\n- _default_ - The label of the button or the icon if no label is set",
|
|
112
115
|
"doc-url": "",
|
|
113
116
|
"attributes": [
|
|
114
117
|
{
|
|
115
118
|
"name": "label",
|
|
116
119
|
"value": { "type": "string", "default": "null" }
|
|
117
120
|
},
|
|
118
|
-
{
|
|
119
|
-
"name": "icon",
|
|
120
|
-
"value": { "type": "string", "default": "null" }
|
|
121
|
-
},
|
|
122
|
-
{
|
|
123
|
-
"name": "iconPosition",
|
|
124
|
-
"description": "Only taken into account if Label and no Icon is set",
|
|
125
|
-
"value": {
|
|
126
|
-
"type": "(\"before\" | \"after\")",
|
|
127
|
-
"default": "\"before\""
|
|
128
|
-
}
|
|
129
|
-
},
|
|
130
121
|
{
|
|
131
122
|
"name": "size",
|
|
132
123
|
"value": { "type": "string", "default": "\"regular\"" }
|
|
@@ -142,7 +133,10 @@
|
|
|
142
133
|
"default": "\"button\""
|
|
143
134
|
}
|
|
144
135
|
},
|
|
145
|
-
{
|
|
136
|
+
{
|
|
137
|
+
"name": "componentRole",
|
|
138
|
+
"value": { "type": "string", "default": "undefined" }
|
|
139
|
+
},
|
|
146
140
|
{
|
|
147
141
|
"name": "disabled",
|
|
148
142
|
"value": { "type": "boolean", "default": "false" }
|
|
@@ -175,44 +169,49 @@
|
|
|
175
169
|
"value": { "type": "boolean", "default": "false" }
|
|
176
170
|
}
|
|
177
171
|
],
|
|
172
|
+
"slots": [
|
|
173
|
+
{
|
|
174
|
+
"name": "before",
|
|
175
|
+
"description": "The icon to display before the label"
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
"name": "after",
|
|
179
|
+
"description": "The icon to display after the label"
|
|
180
|
+
},
|
|
181
|
+
{
|
|
182
|
+
"name": "",
|
|
183
|
+
"description": "The label of the button or the icon if no label is set"
|
|
184
|
+
}
|
|
185
|
+
],
|
|
178
186
|
"events": [],
|
|
179
187
|
"js": {
|
|
180
188
|
"properties": [
|
|
181
|
-
{ "name": "label", "
|
|
182
|
-
{ "name": "
|
|
183
|
-
{
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
},
|
|
188
|
-
{ "name": "size", "value": { "type": "string" } },
|
|
189
|
-
{ "name": "variant", "value": { "type": "string" } },
|
|
190
|
-
{
|
|
191
|
-
"name": "type",
|
|
192
|
-
"value": { "type": "\"button\" | \"submit\" | \"reset\"" }
|
|
193
|
-
},
|
|
194
|
-
{ "name": "componentRole", "value": { "type": "string" } },
|
|
195
|
-
{ "name": "disabled", "value": { "type": "boolean" } },
|
|
189
|
+
{ "name": "label", "type": "string" },
|
|
190
|
+
{ "name": "size", "type": "string" },
|
|
191
|
+
{ "name": "variant", "type": "string" },
|
|
192
|
+
{ "name": "type", "type": "\"button\" | \"submit\" | \"reset\"" },
|
|
193
|
+
{ "name": "componentRole", "type": "string" },
|
|
194
|
+
{ "name": "disabled", "type": "boolean" },
|
|
196
195
|
{
|
|
197
196
|
"name": "round",
|
|
198
197
|
"description": "Only taken into account if no Label and an Icon is set",
|
|
199
|
-
"
|
|
198
|
+
"type": "boolean"
|
|
200
199
|
},
|
|
201
|
-
{ "name": "active", "
|
|
200
|
+
{ "name": "active", "type": "boolean" },
|
|
202
201
|
{
|
|
203
202
|
"name": "inverted",
|
|
204
203
|
"description": "will be used on dark Background",
|
|
205
|
-
"
|
|
206
|
-
},
|
|
207
|
-
{
|
|
208
|
-
"name": "expanded",
|
|
209
|
-
"description": "Only taken into account if variant is \"ghost\"",
|
|
210
|
-
"value": { "type": "(\"true\" | \"false\" | undefined)" }
|
|
204
|
+
"type": "boolean"
|
|
211
205
|
},
|
|
212
206
|
{
|
|
213
207
|
"name": "fluid",
|
|
214
208
|
"description": "Alters the shape of the button to be full width of its parent container",
|
|
215
|
-
"
|
|
209
|
+
"type": "boolean"
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
"name": "expanded",
|
|
213
|
+
"description": "Only taken into account if variant is \"ghost\"",
|
|
214
|
+
"type": "(\"true\" | \"false\" | undefined)"
|
|
216
215
|
}
|
|
217
216
|
],
|
|
218
217
|
"events": []
|
|
@@ -227,24 +226,23 @@
|
|
|
227
226
|
"events": [
|
|
228
227
|
{
|
|
229
228
|
"name": "input",
|
|
229
|
+
"type": "CustomEvent",
|
|
230
230
|
"description": "When the value of the group changes by clicking a button"
|
|
231
231
|
}
|
|
232
232
|
],
|
|
233
233
|
"js": {
|
|
234
234
|
"properties": [
|
|
235
|
-
{ "name": "getButtonValue", "value": {} },
|
|
236
235
|
{
|
|
237
236
|
"name": "value",
|
|
238
237
|
"description": "The value of the currenty selected (active) button",
|
|
239
|
-
"
|
|
238
|
+
"type": "string"
|
|
240
239
|
},
|
|
241
|
-
{ "name": "
|
|
242
|
-
{ "name": "_handleButtonClick", "value": {} },
|
|
243
|
-
{ "name": "_items", "value": { "type": "array" } }
|
|
240
|
+
{ "name": "_items", "type": "array" }
|
|
244
241
|
],
|
|
245
242
|
"events": [
|
|
246
243
|
{
|
|
247
244
|
"name": "input",
|
|
245
|
+
"type": "CustomEvent",
|
|
248
246
|
"description": "When the value of the group changes by clicking a button"
|
|
249
247
|
}
|
|
250
248
|
]
|
|
@@ -263,20 +261,19 @@
|
|
|
263
261
|
"name": "disabled",
|
|
264
262
|
"value": { "type": "boolean", "default": "false" }
|
|
265
263
|
},
|
|
266
|
-
{
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
264
|
+
{
|
|
265
|
+
"name": "value",
|
|
266
|
+
"value": { "type": "string", "default": "\"\"" }
|
|
267
|
+
},
|
|
268
|
+
{ "name": "name", "value": { "type": "string", "default": "\"\"" } }
|
|
270
269
|
],
|
|
271
270
|
"events": [],
|
|
272
271
|
"js": {
|
|
273
272
|
"properties": [
|
|
274
|
-
{ "name": "checked", "
|
|
275
|
-
{ "name": "disabled", "
|
|
276
|
-
{ "name": "
|
|
277
|
-
{ "name": "value", "
|
|
278
|
-
{ "name": "name", "value": { "type": "string" } },
|
|
279
|
-
{ "name": "label", "value": { "type": "string" } }
|
|
273
|
+
{ "name": "checked", "type": "boolean" },
|
|
274
|
+
{ "name": "disabled", "type": "boolean" },
|
|
275
|
+
{ "name": "name", "type": "string" },
|
|
276
|
+
{ "name": "value", "type": "string" }
|
|
280
277
|
],
|
|
281
278
|
"events": []
|
|
282
279
|
}
|
|
@@ -295,8 +292,10 @@
|
|
|
295
292
|
"events": [],
|
|
296
293
|
"js": {
|
|
297
294
|
"properties": [
|
|
298
|
-
{ "name": "
|
|
299
|
-
{ "name": "
|
|
295
|
+
{ "name": "value" },
|
|
296
|
+
{ "name": "orientation", "type": "string" },
|
|
297
|
+
{ "name": "items", "type": "array" },
|
|
298
|
+
{ "name": "label", "type": "string" }
|
|
300
299
|
],
|
|
301
300
|
"events": []
|
|
302
301
|
}
|
|
@@ -310,7 +309,10 @@
|
|
|
310
309
|
"name": "inverted",
|
|
311
310
|
"value": { "type": "boolean", "default": "false" }
|
|
312
311
|
},
|
|
313
|
-
{
|
|
312
|
+
{
|
|
313
|
+
"name": "selection-mode",
|
|
314
|
+
"value": { "type": "\"single\" | \"multiple\" | \"none\"" }
|
|
315
|
+
},
|
|
314
316
|
{
|
|
315
317
|
"name": "heading-level",
|
|
316
318
|
"value": { "type": "number", "default": "2" }
|
|
@@ -329,10 +331,14 @@
|
|
|
329
331
|
"events": [],
|
|
330
332
|
"js": {
|
|
331
333
|
"properties": [
|
|
332
|
-
{ "name": "
|
|
333
|
-
{ "name": "
|
|
334
|
-
{ "name": "
|
|
335
|
-
{ "name": "label", "
|
|
334
|
+
{ "name": "value" },
|
|
335
|
+
{ "name": "inverted", "type": "boolean" },
|
|
336
|
+
{ "name": "headingLevel", "type": "number" },
|
|
337
|
+
{ "name": "label", "type": "string" },
|
|
338
|
+
{
|
|
339
|
+
"name": "selectionMode",
|
|
340
|
+
"type": "\"single\" | \"multiple\" | \"none\""
|
|
341
|
+
}
|
|
336
342
|
],
|
|
337
343
|
"events": []
|
|
338
344
|
}
|
|
@@ -342,7 +348,6 @@
|
|
|
342
348
|
"description": "\n---\n\n\n### **Slots:**\n - _default_ - The content of the chip",
|
|
343
349
|
"doc-url": "",
|
|
344
350
|
"attributes": [
|
|
345
|
-
{ "name": "", "value": { "type": "string" } },
|
|
346
351
|
{
|
|
347
352
|
"name": "size",
|
|
348
353
|
"description": "The size of the chip",
|
|
@@ -355,22 +360,19 @@
|
|
|
355
360
|
{
|
|
356
361
|
"name": "inverted",
|
|
357
362
|
"value": { "type": "boolean", "default": "false" }
|
|
358
|
-
}
|
|
359
|
-
{ "name": "label", "value": { "type": "string" } }
|
|
363
|
+
}
|
|
360
364
|
],
|
|
361
365
|
"slots": [{ "name": "", "description": "The content of the chip" }],
|
|
362
366
|
"events": [],
|
|
363
367
|
"js": {
|
|
364
368
|
"properties": [
|
|
365
|
-
{ "name": "", "
|
|
369
|
+
{ "name": "inverted", "type": "boolean" },
|
|
366
370
|
{
|
|
367
371
|
"name": "size",
|
|
368
372
|
"description": "The size of the chip",
|
|
369
|
-
"
|
|
373
|
+
"type": "keyof typeof SIZES"
|
|
370
374
|
},
|
|
371
|
-
{ "name": "href", "
|
|
372
|
-
{ "name": "inverted", "value": { "type": "boolean" } },
|
|
373
|
-
{ "name": "label", "value": { "type": "string" } }
|
|
375
|
+
{ "name": "href", "type": "string" }
|
|
374
376
|
],
|
|
375
377
|
"events": []
|
|
376
378
|
}
|
|
@@ -380,12 +382,10 @@
|
|
|
380
382
|
"description": "\n---\n\n\n### **Events:**\n - **remove** - Dispatched when the user clicks on the chip\n\n### **Slots:**\n - _default_ - The content of the chip",
|
|
381
383
|
"doc-url": "",
|
|
382
384
|
"attributes": [
|
|
383
|
-
{ "name": "", "value": { "type": "string" } },
|
|
384
385
|
{
|
|
385
386
|
"name": "inverted",
|
|
386
387
|
"value": { "type": "boolean", "default": "false" }
|
|
387
|
-
}
|
|
388
|
-
{ "name": "label", "value": { "type": "string" } }
|
|
388
|
+
}
|
|
389
389
|
],
|
|
390
390
|
"slots": [{ "name": "", "description": "The content of the chip" }],
|
|
391
391
|
"events": [
|
|
@@ -395,11 +395,7 @@
|
|
|
395
395
|
}
|
|
396
396
|
],
|
|
397
397
|
"js": {
|
|
398
|
-
"properties": [
|
|
399
|
-
{ "name": "", "value": {} },
|
|
400
|
-
{ "name": "inverted", "value": { "type": "boolean" } },
|
|
401
|
-
{ "name": "label", "value": { "type": "string" } }
|
|
402
|
-
],
|
|
398
|
+
"properties": [{ "name": "inverted", "type": "boolean" }],
|
|
403
399
|
"events": [
|
|
404
400
|
{
|
|
405
401
|
"name": "remove",
|
|
@@ -410,21 +406,17 @@
|
|
|
410
406
|
},
|
|
411
407
|
{
|
|
412
408
|
"name": "leu-chip-selectable",
|
|
413
|
-
"description": "A chip component that can be selected.\n---\n\n\n### **Events:**\n - **input
|
|
409
|
+
"description": "A chip component that can be selected.\n---\n\n\n### **Events:**\n - **input**\n\n### **Slots:**\n - _default_ - The content of the chip",
|
|
414
410
|
"doc-url": "",
|
|
415
411
|
"attributes": [
|
|
416
|
-
{ "name": "", "value": { "type": "string" } },
|
|
417
412
|
{
|
|
418
413
|
"name": "size",
|
|
419
414
|
"description": "The size of the chip. Not supported for radio variant.",
|
|
420
|
-
"value": {
|
|
421
|
-
"type": "keyof typeof SIZES",
|
|
422
|
-
"default": "\"regular\""
|
|
423
|
-
}
|
|
415
|
+
"value": { "type": "keyof typeof SIZES" }
|
|
424
416
|
},
|
|
425
417
|
{
|
|
426
418
|
"name": "variant",
|
|
427
|
-
"description": "
|
|
419
|
+
"description": "`toggle` or `radio`. Determines if only one or multiple chips can be selected.",
|
|
428
420
|
"value": {
|
|
429
421
|
"type": "keyof typeof VARIANTS",
|
|
430
422
|
"default": "\"toggle\""
|
|
@@ -438,30 +430,27 @@
|
|
|
438
430
|
{
|
|
439
431
|
"name": "inverted",
|
|
440
432
|
"value": { "type": "boolean", "default": "false" }
|
|
441
|
-
}
|
|
442
|
-
{ "name": "label", "value": { "type": "string" } }
|
|
433
|
+
}
|
|
443
434
|
],
|
|
444
435
|
"slots": [{ "name": "", "description": "The content of the chip" }],
|
|
445
|
-
"events": [{ "name": "input" }],
|
|
436
|
+
"events": [{ "name": "input", "type": "CustomEvent" }],
|
|
446
437
|
"js": {
|
|
447
438
|
"properties": [
|
|
448
|
-
{ "name": "", "value": {} },
|
|
449
439
|
{
|
|
450
440
|
"name": "size",
|
|
451
441
|
"description": "The size of the chip. Not supported for radio variant.",
|
|
452
|
-
"
|
|
442
|
+
"type": "keyof typeof SIZES"
|
|
453
443
|
},
|
|
454
444
|
{
|
|
455
445
|
"name": "variant",
|
|
456
446
|
"description": "The variant of the chip. Has an effect not only on the visual appearance but also on the behavior.\n- `toggle`: The chip behaves like a toggle button.\n- `radio`: The chip behaves like a radio button.",
|
|
457
|
-
"
|
|
447
|
+
"type": "keyof typeof VARIANTS"
|
|
458
448
|
},
|
|
459
|
-
{ "name": "selected", "
|
|
460
|
-
{ "name": "value", "
|
|
461
|
-
{ "name": "inverted", "
|
|
462
|
-
{ "name": "label", "value": { "type": "string" } }
|
|
449
|
+
{ "name": "selected", "type": "boolean" },
|
|
450
|
+
{ "name": "value", "type": "string" },
|
|
451
|
+
{ "name": "inverted", "type": "boolean" }
|
|
463
452
|
],
|
|
464
|
-
"events": [{ "name": "input" }]
|
|
453
|
+
"events": [{ "name": "input", "type": "CustomEvent" }]
|
|
465
454
|
}
|
|
466
455
|
},
|
|
467
456
|
{
|
|
@@ -481,15 +470,46 @@
|
|
|
481
470
|
"events": [],
|
|
482
471
|
"js": {
|
|
483
472
|
"properties": [
|
|
484
|
-
{ "name": "
|
|
485
|
-
{ "name": "
|
|
473
|
+
{ "name": "hasSlotController" },
|
|
474
|
+
{ "name": "_documentClickHandler" },
|
|
475
|
+
{ "name": "_menuItemClickHandler" },
|
|
476
|
+
{
|
|
477
|
+
"name": "_keyDownMenuHandler",
|
|
478
|
+
"description": "Close the dropdown when the user presses the Escape or the Tab key.\nNavigating the menu with the arrow keys is handled by the menu itself."
|
|
479
|
+
},
|
|
480
|
+
{ "name": "label", "type": "string" },
|
|
481
|
+
{ "name": "expanded", "type": "boolean" },
|
|
482
|
+
{ "name": "_toggleRef", "type": "Ref<HTMLButtonElement>" }
|
|
483
|
+
],
|
|
484
|
+
"events": []
|
|
485
|
+
}
|
|
486
|
+
},
|
|
487
|
+
{
|
|
488
|
+
"name": "leu-icon",
|
|
489
|
+
"description": "A component to render all defined zhWeb icons.\nThe `fill` of the icon is set to `currentColor` and\ncan be overriden by setting the css `color` property.\nIf the icon name is not found, a placeholder will be displayed.\n---\n\n\n### **CSS Properties:**\n - **--leu-icon-size** - The size of the icon. _(default: undefined)_",
|
|
490
|
+
"doc-url": "",
|
|
491
|
+
"attributes": [
|
|
492
|
+
{
|
|
493
|
+
"name": "name",
|
|
494
|
+
"description": "The name of the icon to display.",
|
|
495
|
+
"value": { "type": "IconPathName", "default": "\"\"" }
|
|
496
|
+
}
|
|
497
|
+
],
|
|
498
|
+
"events": [],
|
|
499
|
+
"js": {
|
|
500
|
+
"properties": [
|
|
501
|
+
{
|
|
502
|
+
"name": "name",
|
|
503
|
+
"description": "The name of the icon to display.",
|
|
504
|
+
"type": "IconPathName | \"\""
|
|
505
|
+
}
|
|
486
506
|
],
|
|
487
507
|
"events": []
|
|
488
508
|
}
|
|
489
509
|
},
|
|
490
510
|
{
|
|
491
511
|
"name": "leu-input",
|
|
492
|
-
"description": "A text input element.\n---\n\n\n### **Events:**\n - **input** - Dispatched when the value of the input element changes.\n- **change** - Dispatched when the value of the input element changes and the input element loses focus.\n\n### **Methods:**\n - **getValidationMessages(): _Object_** - Merge custom and default validation messages.\nA validation message can be a function or a string.\nIf it s a function, the function is called with the corresponding\nattribute value as argument.\ne.g.\n`tooLong(this.maxlength)`\nThis way the framework user can create reasonable validation messages\n- **renderErrorMessages(
|
|
512
|
+
"description": "A text input element.\n---\n\n\n### **Events:**\n - **input** - Dispatched when the value of the input element changes.\n- **change** - Dispatched when the value of the input element changes and the input element loses focus.\n\n### **Methods:**\n - **getValidationMessages(): _Object_** - Merge custom and default validation messages.\nA validation message can be a function or a string.\nIf it s a function, the function is called with the corresponding\nattribute value as argument.\ne.g.\n`tooLong(this.maxlength)`\nThis way the framework user can create reasonable validation messages\n- **renderErrorMessages(): _TemplateResult | nothing_** - Creates an error list with an item for the given validity state.",
|
|
493
513
|
"doc-url": "",
|
|
494
514
|
"attributes": [
|
|
495
515
|
{
|
|
@@ -540,7 +560,7 @@
|
|
|
540
560
|
{
|
|
541
561
|
"name": "size",
|
|
542
562
|
"description": "The size of the input element.",
|
|
543
|
-
"value": { "type": "string" }
|
|
563
|
+
"value": { "type": "string", "default": "\"regular\"" }
|
|
544
564
|
},
|
|
545
565
|
{
|
|
546
566
|
"name": "icon",
|
|
@@ -600,10 +620,12 @@
|
|
|
600
620
|
"events": [
|
|
601
621
|
{
|
|
602
622
|
"name": "input",
|
|
623
|
+
"type": "CustomEvent",
|
|
603
624
|
"description": "Dispatched when the value of the input element changes."
|
|
604
625
|
},
|
|
605
626
|
{
|
|
606
627
|
"name": "change",
|
|
628
|
+
"type": "CustomEvent",
|
|
607
629
|
"description": "Dispatched when the value of the input element changes and the input element loses focus."
|
|
608
630
|
}
|
|
609
631
|
],
|
|
@@ -612,112 +634,114 @@
|
|
|
612
634
|
{
|
|
613
635
|
"name": "disabled",
|
|
614
636
|
"description": "Disables the input element.",
|
|
615
|
-
"
|
|
637
|
+
"type": "boolean"
|
|
616
638
|
},
|
|
617
639
|
{
|
|
618
640
|
"name": "required",
|
|
619
641
|
"description": "Marks the input element as required.",
|
|
620
|
-
"
|
|
642
|
+
"type": "boolean"
|
|
621
643
|
},
|
|
622
644
|
{
|
|
623
645
|
"name": "clearable",
|
|
624
646
|
"description": "Adds a button to clear the input element.",
|
|
625
|
-
"
|
|
647
|
+
"type": "boolean"
|
|
648
|
+
},
|
|
649
|
+
{
|
|
650
|
+
"name": "size",
|
|
651
|
+
"description": "The size of the input element.",
|
|
652
|
+
"type": "\"small\" | \"regular\""
|
|
653
|
+
},
|
|
654
|
+
{
|
|
655
|
+
"name": "type",
|
|
656
|
+
"description": "The type of the input element.",
|
|
657
|
+
"type": "string"
|
|
658
|
+
},
|
|
659
|
+
{ "name": "_validity", "type": "null" },
|
|
660
|
+
{
|
|
661
|
+
"name": "validationMessages",
|
|
662
|
+
"description": "Custom validation messages. The key is the name of the validity state and the value is the message.",
|
|
663
|
+
"type": "object"
|
|
664
|
+
},
|
|
665
|
+
{
|
|
666
|
+
"name": "novalidate",
|
|
667
|
+
"description": "Disables the browser's validation.",
|
|
668
|
+
"type": "boolean"
|
|
626
669
|
},
|
|
627
670
|
{
|
|
628
671
|
"name": "value",
|
|
629
672
|
"description": "The value of the input element.",
|
|
630
|
-
"
|
|
673
|
+
"type": "string"
|
|
631
674
|
},
|
|
632
675
|
{
|
|
633
676
|
"name": "name",
|
|
634
677
|
"description": "The name of the input element.",
|
|
635
|
-
"
|
|
678
|
+
"type": "string"
|
|
679
|
+
},
|
|
680
|
+
{
|
|
681
|
+
"name": "label",
|
|
682
|
+
"description": "The label of the input element.",
|
|
683
|
+
"type": "string"
|
|
636
684
|
},
|
|
637
685
|
{
|
|
638
686
|
"name": "error",
|
|
639
687
|
"description": "A custom error that is completely independent of the validity state. Useful for displaying server side errors.",
|
|
640
|
-
"
|
|
688
|
+
"type": "string"
|
|
641
689
|
},
|
|
642
690
|
{
|
|
643
|
-
"name": "
|
|
644
|
-
"description": "The
|
|
645
|
-
"
|
|
691
|
+
"name": "icon",
|
|
692
|
+
"description": "The icon that is displayed at the end of the input element.",
|
|
693
|
+
"type": "string"
|
|
646
694
|
},
|
|
647
695
|
{
|
|
648
696
|
"name": "prefix",
|
|
649
697
|
"description": "A prefix that relates to the value of the input (e.g. CHF).",
|
|
650
|
-
"
|
|
698
|
+
"type": "string"
|
|
651
699
|
},
|
|
652
700
|
{
|
|
653
701
|
"name": "suffix",
|
|
654
702
|
"description": "A suffix that relates to the value of the input (e.g. mm).",
|
|
655
|
-
"
|
|
656
|
-
},
|
|
657
|
-
{
|
|
658
|
-
"name": "size",
|
|
659
|
-
"description": "The size of the input element.",
|
|
660
|
-
"value": { "type": "string" }
|
|
661
|
-
},
|
|
662
|
-
{
|
|
663
|
-
"name": "icon",
|
|
664
|
-
"description": "The icon that is displayed at the end of the input element.",
|
|
665
|
-
"value": { "type": "string" }
|
|
703
|
+
"type": "string"
|
|
666
704
|
},
|
|
667
705
|
{
|
|
668
706
|
"name": "pattern",
|
|
669
707
|
"description": "A regular expression that the value is checked against.",
|
|
670
|
-
"
|
|
671
|
-
},
|
|
672
|
-
{
|
|
673
|
-
"name": "type",
|
|
674
|
-
"description": "The type of the input element.",
|
|
675
|
-
"value": { "type": "string" }
|
|
708
|
+
"type": "string"
|
|
676
709
|
},
|
|
677
710
|
{
|
|
678
711
|
"name": "min",
|
|
679
712
|
"description": "The minimum value of the input element.",
|
|
680
|
-
"
|
|
713
|
+
"type": "string"
|
|
681
714
|
},
|
|
682
715
|
{
|
|
683
716
|
"name": "max",
|
|
684
717
|
"description": "The maximum value of the input element.",
|
|
685
|
-
"
|
|
686
|
-
},
|
|
687
|
-
{
|
|
688
|
-
"name": "maxlength",
|
|
689
|
-
"description": "The maximum length of the input element.",
|
|
690
|
-
"value": { "type": "string" }
|
|
718
|
+
"type": "string"
|
|
691
719
|
},
|
|
692
720
|
{
|
|
693
721
|
"name": "minlength",
|
|
694
722
|
"description": "The minimum length of the input element.",
|
|
695
|
-
"
|
|
696
|
-
},
|
|
697
|
-
{
|
|
698
|
-
"name": "validationMessages",
|
|
699
|
-
"description": "Custom validation messages. The key is the name of the validity state and the value is the message.",
|
|
700
|
-
"value": { "type": "object" }
|
|
723
|
+
"type": "string"
|
|
701
724
|
},
|
|
702
725
|
{
|
|
703
|
-
"name": "
|
|
704
|
-
"description": "
|
|
705
|
-
"
|
|
726
|
+
"name": "maxlength",
|
|
727
|
+
"description": "The maximum length of the input element.",
|
|
728
|
+
"type": "string"
|
|
706
729
|
},
|
|
707
730
|
{
|
|
708
731
|
"name": "step",
|
|
709
732
|
"description": "The step value of the input element.",
|
|
710
|
-
"
|
|
711
|
-
}
|
|
712
|
-
{ "name": "_validity", "value": { "type": "null" } }
|
|
733
|
+
"type": "string"
|
|
734
|
+
}
|
|
713
735
|
],
|
|
714
736
|
"events": [
|
|
715
737
|
{
|
|
716
738
|
"name": "input",
|
|
739
|
+
"type": "CustomEvent",
|
|
717
740
|
"description": "Dispatched when the value of the input element changes."
|
|
718
741
|
},
|
|
719
742
|
{
|
|
720
743
|
"name": "change",
|
|
744
|
+
"type": "CustomEvent",
|
|
721
745
|
"description": "Dispatched when the value of the input element changes and the input element loses focus."
|
|
722
746
|
}
|
|
723
747
|
]
|
|
@@ -727,40 +751,61 @@
|
|
|
727
751
|
"name": "leu-menu",
|
|
728
752
|
"description": "\n---\n",
|
|
729
753
|
"doc-url": "",
|
|
730
|
-
"attributes": [
|
|
754
|
+
"attributes": [
|
|
755
|
+
{
|
|
756
|
+
"name": "selects",
|
|
757
|
+
"description": "This has only an effect when the role is 'menu'. It defines which role the menu items will get. Default is 'none'.",
|
|
758
|
+
"value": { "type": "SelectsType", "default": "\"none\"" }
|
|
759
|
+
}
|
|
760
|
+
],
|
|
731
761
|
"events": [],
|
|
732
|
-
"js": {
|
|
762
|
+
"js": {
|
|
763
|
+
"properties": [
|
|
764
|
+
{
|
|
765
|
+
"name": "selects",
|
|
766
|
+
"description": "This has only an effect when the role is 'menu'. It defines which role the menu items will get. Default is 'none'.",
|
|
767
|
+
"type": "SelectsType"
|
|
768
|
+
},
|
|
769
|
+
{ "name": "value" }
|
|
770
|
+
],
|
|
771
|
+
"events": []
|
|
772
|
+
}
|
|
733
773
|
},
|
|
734
774
|
{
|
|
735
775
|
"name": "leu-menu-item",
|
|
736
|
-
"description": "\n---\n\n\n### **Slots:**\n - _default_ - The label of the menu item",
|
|
776
|
+
"description": "\n---\n\n\n### **Methods:**\n - **getValue(): _string_** - Returns the value of the item. If `value` is not set, it will return the inner text\n\n### **Slots:**\n - _default_ - The label of the menu item",
|
|
737
777
|
"doc-url": "",
|
|
738
778
|
"attributes": [
|
|
739
779
|
{
|
|
740
|
-
"name": "
|
|
741
|
-
"description": "
|
|
742
|
-
"value": { "type": "
|
|
780
|
+
"name": "active",
|
|
781
|
+
"description": "Defines if the item is selected or checked",
|
|
782
|
+
"value": { "type": "boolean", "default": "false" }
|
|
743
783
|
},
|
|
744
784
|
{
|
|
745
|
-
"name": "
|
|
746
|
-
"description": "
|
|
747
|
-
"value": { "type": "
|
|
785
|
+
"name": "disabled",
|
|
786
|
+
"description": "Disables the underlying button or link",
|
|
787
|
+
"value": { "type": "boolean", "default": "false" }
|
|
748
788
|
},
|
|
749
789
|
{
|
|
750
|
-
"name": "
|
|
751
|
-
"
|
|
790
|
+
"name": "tabbable",
|
|
791
|
+
"description": "If the item should be focusable. Will be reflected as `tabindex` to the underlying button or link",
|
|
792
|
+
"value": { "type": "boolean", "default": "undefined" }
|
|
752
793
|
},
|
|
753
794
|
{
|
|
754
|
-
"name": "
|
|
755
|
-
"description": "
|
|
756
|
-
"value": { "type": "
|
|
795
|
+
"name": "href",
|
|
796
|
+
"description": "The href of the underlying link",
|
|
797
|
+
"value": { "type": "string", "default": "undefined" }
|
|
757
798
|
},
|
|
758
799
|
{
|
|
759
|
-
"name": "
|
|
760
|
-
"
|
|
800
|
+
"name": "value",
|
|
801
|
+
"description": "The value of the item. It must not contain commas. See `getValue()`",
|
|
802
|
+
"value": { "type": "string", "default": "undefined" }
|
|
761
803
|
},
|
|
762
|
-
{
|
|
763
|
-
|
|
804
|
+
{
|
|
805
|
+
"name": "componentRole",
|
|
806
|
+
"description": "The role of the item. This will be reflected as `role` to the underlying button or link. Default is `'menuitem'.`",
|
|
807
|
+
"value": { "type": "MenuItemRole", "default": "\"menuitem\"" }
|
|
808
|
+
}
|
|
764
809
|
],
|
|
765
810
|
"slots": [
|
|
766
811
|
{ "name": "", "description": "The label of the menu item" }
|
|
@@ -769,31 +814,42 @@
|
|
|
769
814
|
"js": {
|
|
770
815
|
"properties": [
|
|
771
816
|
{
|
|
772
|
-
"name": "
|
|
773
|
-
"description": "
|
|
774
|
-
"
|
|
817
|
+
"name": "active",
|
|
818
|
+
"description": "Defines if the item is selected or checked",
|
|
819
|
+
"type": "boolean"
|
|
820
|
+
},
|
|
821
|
+
{
|
|
822
|
+
"name": "disabled",
|
|
823
|
+
"description": "Disables the underlying button or link",
|
|
824
|
+
"type": "boolean"
|
|
825
|
+
},
|
|
826
|
+
{
|
|
827
|
+
"name": "value",
|
|
828
|
+
"description": "The value of the item. It must not contain commas. See `getValue()`",
|
|
829
|
+
"type": "string"
|
|
775
830
|
},
|
|
776
831
|
{
|
|
777
|
-
"name": "
|
|
778
|
-
"description": "
|
|
779
|
-
"
|
|
832
|
+
"name": "href",
|
|
833
|
+
"description": "The href of the underlying link",
|
|
834
|
+
"type": "string"
|
|
780
835
|
},
|
|
781
|
-
{ "name": "active", "value": { "type": "boolean" } },
|
|
782
836
|
{
|
|
783
|
-
"name": "
|
|
784
|
-
"description": "
|
|
785
|
-
"
|
|
837
|
+
"name": "tabbable",
|
|
838
|
+
"description": "If the item should be focusable. Will be reflected as `tabindex` to the underlying button or link",
|
|
839
|
+
"type": "boolean"
|
|
786
840
|
},
|
|
787
|
-
{
|
|
788
|
-
|
|
789
|
-
|
|
841
|
+
{
|
|
842
|
+
"name": "componentRole",
|
|
843
|
+
"description": "The role of the item. This will be reflected as `role` to the underlying button or link. Default is `'menuitem'.`",
|
|
844
|
+
"type": "MenuItemRole"
|
|
845
|
+
}
|
|
790
846
|
],
|
|
791
847
|
"events": []
|
|
792
848
|
}
|
|
793
849
|
},
|
|
794
850
|
{
|
|
795
851
|
"name": "leu-pagination",
|
|
796
|
-
"description": "\n---\n\n\n### **Events:**\n - **leu:pagechange**
|
|
852
|
+
"description": "\n---\n\n\n### **Events:**\n - **leu:pagechange**",
|
|
797
853
|
"doc-url": "",
|
|
798
854
|
"attributes": [
|
|
799
855
|
{ "name": "defaultPage", "value": { "type": "number" } },
|
|
@@ -805,25 +861,25 @@
|
|
|
805
861
|
"name": "numOfItems",
|
|
806
862
|
"value": { "type": "Number", "default": "1" }
|
|
807
863
|
},
|
|
808
|
-
{
|
|
809
|
-
"name": "_page",
|
|
810
|
-
"description": "Internal page state that contains an\nalready clamped page number. Should only\nbe accessed through the `page` getter and\nsetter.",
|
|
811
|
-
"value": { "type": "Number", "default": "1" }
|
|
812
|
-
}
|
|
864
|
+
{ "name": "_page", "value": { "type": "string" } }
|
|
813
865
|
],
|
|
814
|
-
"events": [{ "name": "leu:pagechange" }],
|
|
866
|
+
"events": [{ "name": "leu:pagechange", "type": "CustomEvent" }],
|
|
815
867
|
"js": {
|
|
816
868
|
"properties": [
|
|
817
|
-
{ "name": "
|
|
818
|
-
{ "name": "
|
|
819
|
-
{ "name": "
|
|
869
|
+
{ "name": "page" },
|
|
870
|
+
{ "name": "startIndex" },
|
|
871
|
+
{ "name": "endIndex" },
|
|
872
|
+
{ "name": "_maxPage" },
|
|
873
|
+
{ "name": "numOfItems", "type": "Number" },
|
|
874
|
+
{ "name": "itemsPerPage", "type": "Number" },
|
|
875
|
+
{ "name": "defaultPage", "type": "number" },
|
|
820
876
|
{
|
|
821
877
|
"name": "_page",
|
|
822
878
|
"description": "Internal page state that contains an\nalready clamped page number. Should only\nbe accessed through the `page` getter and\nsetter.",
|
|
823
|
-
"
|
|
879
|
+
"type": "Number"
|
|
824
880
|
}
|
|
825
881
|
],
|
|
826
|
-
"events": [{ "name": "leu:pagechange" }]
|
|
882
|
+
"events": [{ "name": "leu:pagechange", "type": "CustomEvent" }]
|
|
827
883
|
}
|
|
828
884
|
},
|
|
829
885
|
{
|
|
@@ -831,14 +887,21 @@
|
|
|
831
887
|
"description": "\n---\n",
|
|
832
888
|
"doc-url": "",
|
|
833
889
|
"attributes": [
|
|
834
|
-
{ "name": "anchor", "value": { "type": "string" } },
|
|
835
|
-
{ "name": "active", "value": { "type": "boolean" } },
|
|
836
890
|
{
|
|
837
|
-
"name": "
|
|
891
|
+
"name": "anchor",
|
|
838
892
|
"value": {
|
|
839
|
-
"type": "
|
|
893
|
+
"type": "string | HTMLElement",
|
|
894
|
+
"default": "undefined"
|
|
840
895
|
}
|
|
841
896
|
},
|
|
897
|
+
{
|
|
898
|
+
"name": "active",
|
|
899
|
+
"value": { "type": "boolean", "default": "false" }
|
|
900
|
+
},
|
|
901
|
+
{
|
|
902
|
+
"name": "placement",
|
|
903
|
+
"value": { "type": "Placement", "default": "undefined" }
|
|
904
|
+
},
|
|
842
905
|
{
|
|
843
906
|
"name": "flip",
|
|
844
907
|
"value": { "type": "boolean", "default": "false" }
|
|
@@ -847,40 +910,50 @@
|
|
|
847
910
|
"name": "shift",
|
|
848
911
|
"value": { "type": "boolean", "default": "false" }
|
|
849
912
|
},
|
|
850
|
-
{
|
|
913
|
+
{
|
|
914
|
+
"name": "shiftPadding",
|
|
915
|
+
"value": { "type": "number", "default": "0" }
|
|
916
|
+
},
|
|
851
917
|
{
|
|
852
918
|
"name": "matchSize",
|
|
853
|
-
"value": {
|
|
919
|
+
"value": {
|
|
920
|
+
"type": "\"width\" | \"height\" | \"both\"",
|
|
921
|
+
"default": "undefined"
|
|
922
|
+
}
|
|
854
923
|
},
|
|
855
924
|
{
|
|
856
925
|
"name": "autoSize",
|
|
857
|
-
"value": {
|
|
926
|
+
"value": {
|
|
927
|
+
"type": "\"width\" | \"height\" | \"both\"",
|
|
928
|
+
"default": "undefined"
|
|
929
|
+
}
|
|
858
930
|
},
|
|
859
|
-
{
|
|
931
|
+
{
|
|
932
|
+
"name": "autoSizePadding",
|
|
933
|
+
"value": { "type": "number", "default": "0" }
|
|
934
|
+
}
|
|
860
935
|
],
|
|
861
936
|
"events": [],
|
|
862
937
|
"js": {
|
|
863
938
|
"properties": [
|
|
864
|
-
{ "name": "
|
|
865
|
-
{ "name": "
|
|
866
|
-
{
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
},
|
|
872
|
-
{ "name": "flip", "value": { "type": "boolean" } },
|
|
873
|
-
{ "name": "shift", "value": { "type": "boolean" } },
|
|
874
|
-
{ "name": "shiftPadding", "value": { "type": "number" } },
|
|
939
|
+
{ "name": "popupEl" },
|
|
940
|
+
{ "name": "anchorEl", "type": "null" },
|
|
941
|
+
{ "name": "cleanup" },
|
|
942
|
+
{ "name": "flip", "type": "boolean" },
|
|
943
|
+
{ "name": "shift", "type": "boolean" },
|
|
944
|
+
{ "name": "active", "type": "boolean" },
|
|
945
|
+
{ "name": "placement", "type": "Placement" },
|
|
875
946
|
{
|
|
876
947
|
"name": "matchSize",
|
|
877
|
-
"
|
|
948
|
+
"type": "\"width\" | \"height\" | \"both\""
|
|
878
949
|
},
|
|
879
950
|
{
|
|
880
951
|
"name": "autoSize",
|
|
881
|
-
"
|
|
952
|
+
"type": "\"width\" | \"height\" | \"both\""
|
|
882
953
|
},
|
|
883
|
-
{ "name": "
|
|
954
|
+
{ "name": "shiftPadding", "type": "number" },
|
|
955
|
+
{ "name": "autoSizePadding", "type": "number" },
|
|
956
|
+
{ "name": "anchor", "type": "string | HTMLElement" }
|
|
884
957
|
],
|
|
885
958
|
"events": []
|
|
886
959
|
}
|
|
@@ -898,20 +971,19 @@
|
|
|
898
971
|
"name": "disabled",
|
|
899
972
|
"value": { "type": "boolean", "default": "false" }
|
|
900
973
|
},
|
|
901
|
-
{
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
974
|
+
{
|
|
975
|
+
"name": "value",
|
|
976
|
+
"value": { "type": "string", "default": "\"\"" }
|
|
977
|
+
},
|
|
978
|
+
{ "name": "name", "value": { "type": "string", "default": "\"\"" } }
|
|
905
979
|
],
|
|
906
980
|
"events": [],
|
|
907
981
|
"js": {
|
|
908
982
|
"properties": [
|
|
909
|
-
{ "name": "checked", "
|
|
910
|
-
{ "name": "disabled", "
|
|
911
|
-
{ "name": "
|
|
912
|
-
{ "name": "value", "
|
|
913
|
-
{ "name": "name", "value": { "type": "string" } },
|
|
914
|
-
{ "name": "label", "value": { "type": "string" } }
|
|
983
|
+
{ "name": "checked", "type": "boolean" },
|
|
984
|
+
{ "name": "disabled", "type": "boolean" },
|
|
985
|
+
{ "name": "name", "type": "string" },
|
|
986
|
+
{ "name": "value", "type": "string" }
|
|
915
987
|
],
|
|
916
988
|
"events": []
|
|
917
989
|
}
|
|
@@ -930,8 +1002,14 @@
|
|
|
930
1002
|
"events": [],
|
|
931
1003
|
"js": {
|
|
932
1004
|
"properties": [
|
|
933
|
-
{ "name": "
|
|
934
|
-
{ "name": "
|
|
1005
|
+
{ "name": "value" },
|
|
1006
|
+
{ "name": "handleFocusIn" },
|
|
1007
|
+
{ "name": "handleKeyDown" },
|
|
1008
|
+
{ "name": "handleInput" },
|
|
1009
|
+
{ "name": "orientation", "type": "string" },
|
|
1010
|
+
{ "name": "_currentIndex", "type": "number" },
|
|
1011
|
+
{ "name": "items", "type": "array" },
|
|
1012
|
+
{ "name": "label", "type": "string" }
|
|
935
1013
|
],
|
|
936
1014
|
"events": []
|
|
937
1015
|
}
|
|
@@ -945,45 +1023,61 @@
|
|
|
945
1023
|
],
|
|
946
1024
|
"events": [],
|
|
947
1025
|
"js": {
|
|
948
|
-
"properties": [
|
|
1026
|
+
"properties": [
|
|
1027
|
+
{ "name": "scroll" },
|
|
1028
|
+
{ "name": "_showButton", "type": "boolean" }
|
|
1029
|
+
],
|
|
949
1030
|
"events": []
|
|
950
1031
|
}
|
|
951
1032
|
},
|
|
952
1033
|
{
|
|
953
1034
|
"name": "leu-select",
|
|
954
|
-
"description": "\n---\n\n\n### **Methods:**\n - **
|
|
1035
|
+
"description": "\n---\n\n\n### **Methods:**\n - **_updateMenuItems(changed)** - Apply the current state to the menu items.\n- Set the active property when the value property has changed.\n- Hide menu items that do not match the filter.\n- **_getDisplayValue(): _String | nothing_** - Determines the value or label that should be displayed inside the toggle button.\n- **_isSelected(menuItemValue: _String_): _Boolean_** - Checks if the given value is selected.\n- **_handlePopupFocusOut(event)** - Close the dropdown if the focus moves outside the component.\n\n### **Slots:**\n - **before** - Optional content the appears before the option list\n- **after** - Optional content the appears after the option list",
|
|
955
1036
|
"doc-url": "",
|
|
956
1037
|
"attributes": [
|
|
1038
|
+
{
|
|
1039
|
+
"name": "value",
|
|
1040
|
+
"description": "List of selected values. If they're set from outside the component, the select element tries to find all the options with the given values and selects them.",
|
|
1041
|
+
"value": { "type": "array", "default": "[]" }
|
|
1042
|
+
},
|
|
1043
|
+
{
|
|
1044
|
+
"name": "name",
|
|
1045
|
+
"description": "Reflects to the name attribute of the hidden input field that would be used in a form",
|
|
1046
|
+
"value": { "type": "string", "default": "\"\"" }
|
|
1047
|
+
},
|
|
957
1048
|
{
|
|
958
1049
|
"name": "open",
|
|
1050
|
+
"description": "The expanded state of the popup",
|
|
959
1051
|
"value": { "type": "boolean", "default": "false" }
|
|
960
1052
|
},
|
|
961
1053
|
{
|
|
962
1054
|
"name": "label",
|
|
1055
|
+
"description": "The label of the select",
|
|
963
1056
|
"value": { "type": "string", "default": "\"\"" }
|
|
964
1057
|
},
|
|
965
|
-
{
|
|
966
|
-
"name": "options",
|
|
967
|
-
"value": { "type": "array", "default": "[]" }
|
|
968
|
-
},
|
|
969
|
-
{ "name": "value", "value": { "type": "array", "default": "[]" } },
|
|
970
1058
|
{
|
|
971
1059
|
"name": "clearable",
|
|
1060
|
+
"description": "Show a clearable button to reset the value",
|
|
972
1061
|
"value": { "type": "boolean", "default": "false" }
|
|
973
1062
|
},
|
|
974
1063
|
{
|
|
975
1064
|
"name": "disabled",
|
|
1065
|
+
"description": "If the select should be disabled",
|
|
976
1066
|
"value": { "type": "boolean", "default": "false" }
|
|
977
1067
|
},
|
|
978
1068
|
{
|
|
979
1069
|
"name": "filterable",
|
|
1070
|
+
"description": "Show an input field to filter the options inside the popup",
|
|
980
1071
|
"value": { "type": "boolean", "default": "false" }
|
|
981
1072
|
},
|
|
982
1073
|
{
|
|
983
1074
|
"name": "multiple",
|
|
1075
|
+
"description": "Allow multiple selections",
|
|
984
1076
|
"value": { "type": "boolean", "default": "false" }
|
|
985
1077
|
},
|
|
986
|
-
{ "name": "
|
|
1078
|
+
{ "name": "_optionFilter", "value": { "type": "string" } },
|
|
1079
|
+
{ "name": "_hasFilterResults", "value": { "type": "string" } },
|
|
1080
|
+
{ "name": "_displayValue", "value": { "type": "string" } }
|
|
987
1081
|
],
|
|
988
1082
|
"slots": [
|
|
989
1083
|
{
|
|
@@ -998,15 +1092,52 @@
|
|
|
998
1092
|
"events": [],
|
|
999
1093
|
"js": {
|
|
1000
1094
|
"properties": [
|
|
1001
|
-
{
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
{
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1095
|
+
{
|
|
1096
|
+
"name": "open",
|
|
1097
|
+
"description": "The expanded state of the popup",
|
|
1098
|
+
"type": "boolean"
|
|
1099
|
+
},
|
|
1100
|
+
{
|
|
1101
|
+
"name": "disabled",
|
|
1102
|
+
"description": "If the select should be disabled",
|
|
1103
|
+
"type": "boolean"
|
|
1104
|
+
},
|
|
1105
|
+
{
|
|
1106
|
+
"name": "multiple",
|
|
1107
|
+
"description": "Allow multiple selections",
|
|
1108
|
+
"type": "boolean"
|
|
1109
|
+
},
|
|
1110
|
+
{
|
|
1111
|
+
"name": "clearable",
|
|
1112
|
+
"description": "Show a clearable button to reset the value",
|
|
1113
|
+
"type": "boolean"
|
|
1114
|
+
},
|
|
1115
|
+
{
|
|
1116
|
+
"name": "filterable",
|
|
1117
|
+
"description": "Show an input field to filter the options inside the popup",
|
|
1118
|
+
"type": "boolean"
|
|
1119
|
+
},
|
|
1120
|
+
{
|
|
1121
|
+
"name": "value",
|
|
1122
|
+
"description": "List of selected values. If they're set from outside the component, the select element tries to find all the options with the given values and selects them.",
|
|
1123
|
+
"type": "array"
|
|
1124
|
+
},
|
|
1125
|
+
{
|
|
1126
|
+
"name": "label",
|
|
1127
|
+
"description": "The label of the select",
|
|
1128
|
+
"type": "string"
|
|
1129
|
+
},
|
|
1130
|
+
{
|
|
1131
|
+
"name": "name",
|
|
1132
|
+
"description": "Reflects to the name attribute of the hidden input field that would be used in a form",
|
|
1133
|
+
"type": "string"
|
|
1134
|
+
},
|
|
1135
|
+
{ "name": "_optionFilterRef", "type": "Ref<LeuInput>" },
|
|
1136
|
+
{ "name": "_toggleButtonRef", "type": "Ref<HTMLButtonElement>" },
|
|
1137
|
+
{ "name": "_menuRef", "type": "Ref<LeuMenu>" },
|
|
1138
|
+
{ "name": "_optionFilter", "type": "string" },
|
|
1139
|
+
{ "name": "_hasFilterResults", "type": "boolean" },
|
|
1140
|
+
{ "name": "_displayValue", "type": "string" }
|
|
1010
1141
|
],
|
|
1011
1142
|
"events": []
|
|
1012
1143
|
}
|
|
@@ -1048,16 +1179,20 @@
|
|
|
1048
1179
|
"events": [],
|
|
1049
1180
|
"js": {
|
|
1050
1181
|
"properties": [
|
|
1051
|
-
{ "name": "
|
|
1052
|
-
{ "name": "
|
|
1053
|
-
{ "name": "
|
|
1054
|
-
{ "name": "
|
|
1055
|
-
{ "name": "
|
|
1056
|
-
{ "name": "
|
|
1057
|
-
{ "name": "
|
|
1058
|
-
{ "name": "
|
|
1059
|
-
{ "name": "
|
|
1060
|
-
{ "name": "
|
|
1182
|
+
{ "name": "_columns" },
|
|
1183
|
+
{ "name": "_sortedData" },
|
|
1184
|
+
{ "name": "_data" },
|
|
1185
|
+
{ "name": "columns", "type": "array" },
|
|
1186
|
+
{ "name": "data", "type": "array" },
|
|
1187
|
+
{ "name": "firstColumnSticky", "type": "boolean" },
|
|
1188
|
+
{ "name": "itemsPerPage", "type": "number" },
|
|
1189
|
+
{ "name": "sortIndex", "type": "number" },
|
|
1190
|
+
{ "name": "sortOrderAsc", "type": "boolean" },
|
|
1191
|
+
{ "name": "width", "type": "number" },
|
|
1192
|
+
{ "name": "_resizeObserver" },
|
|
1193
|
+
{ "name": "_shadowLeft", "type": "boolean" },
|
|
1194
|
+
{ "name": "_shadowRight", "type": "boolean" },
|
|
1195
|
+
{ "name": "_page", "type": "number" }
|
|
1061
1196
|
],
|
|
1062
1197
|
"events": []
|
|
1063
1198
|
}
|