@statistikzh/leu 0.18.1 → 0.19.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/.release-please-manifest.json +1 -1
- package/CHANGELOG.md +15 -0
- package/dist/Accordion.js +1 -1
- package/dist/Button.js +1 -1
- package/dist/ButtonGroup.js +1 -1
- package/dist/ChartWrapper.js +1 -1
- package/dist/Checkbox.js +1 -1
- package/dist/CheckboxGroup.js +1 -1
- package/dist/Chip.js +1 -1
- package/dist/ChipGroup.js +1 -1
- package/dist/ChipLink.js +1 -1
- package/dist/ChipRemovable.js +1 -1
- package/dist/ChipSelectable.js +1 -1
- package/dist/Dialog.js +1 -1
- package/dist/Dropdown.js +1 -1
- package/dist/FileInput.d.ts +60 -0
- package/dist/FileInput.js +387 -0
- package/dist/Icon.js +1 -1
- package/dist/Input.js +1 -3
- package/dist/{LeuElement-DgiuzsX9.js → LeuElement-CRdVLttR.js} +1 -1
- package/dist/Menu.js +1 -1
- package/dist/MenuItem.js +1 -1
- package/dist/Message.js +1 -1
- package/dist/Pagination.js +1 -1
- package/dist/Placeholder.js +1 -1
- package/dist/Popup.js +1 -1
- package/dist/ProgressBar.d.ts +29 -0
- package/dist/ProgressBar.js +166 -0
- package/dist/Radio.js +1 -1
- package/dist/RadioGroup.js +1 -1
- package/dist/Range.js +1 -1
- package/dist/ScrollTop.js +1 -1
- package/dist/Select.js +1 -1
- package/dist/Spinner.js +1 -1
- package/dist/Table.js +1 -1
- package/dist/Tag.js +1 -1
- package/dist/VisuallyHidden.js +1 -1
- package/dist/components/file-input/FileInput.d.ts +55 -0
- package/dist/components/file-input/FileInput.d.ts.map +1 -0
- package/dist/components/file-input/leu-file-input.d.ts +3 -0
- package/dist/components/file-input/leu-file-input.d.ts.map +1 -0
- package/dist/components/file-input/stories/file-input.stories.d.ts +30 -0
- package/dist/components/file-input/stories/file-input.stories.d.ts.map +1 -0
- package/dist/components/file-input/test/file-input.test.d.ts +2 -0
- package/dist/components/file-input/test/file-input.test.d.ts.map +1 -0
- package/dist/components/input/Input.d.ts.map +1 -1
- package/dist/components/progress-bar/ProgressBar.d.ts +25 -0
- package/dist/components/progress-bar/ProgressBar.d.ts.map +1 -0
- package/dist/components/progress-bar/leu-progress-bar.d.ts +3 -0
- package/dist/components/progress-bar/leu-progress-bar.d.ts.map +1 -0
- package/dist/components/progress-bar/stories/progress-bar.stories.d.ts +48 -0
- package/dist/components/progress-bar/stories/progress-bar.stories.d.ts.map +1 -0
- package/dist/components/progress-bar/test/progress-bar.test.d.ts +2 -0
- package/dist/components/progress-bar/test/progress-bar.test.d.ts.map +1 -0
- package/dist/index.js +1 -1
- package/dist/leu-accordion.js +1 -1
- package/dist/leu-button-group.js +1 -1
- package/dist/leu-button.js +1 -1
- package/dist/leu-chart-wrapper.js +1 -1
- package/dist/leu-checkbox-group.js +1 -1
- package/dist/leu-checkbox.js +1 -1
- package/dist/leu-chip-group.js +1 -1
- package/dist/leu-chip-link.js +1 -1
- package/dist/leu-chip-removable.js +1 -1
- package/dist/leu-chip-selectable.js +1 -1
- package/dist/leu-dialog.js +1 -1
- package/dist/leu-dropdown.js +1 -1
- package/dist/leu-file-input.d.ts +8 -0
- package/dist/leu-file-input.js +42 -0
- package/dist/leu-icon.js +1 -1
- package/dist/leu-input.js +1 -1
- package/dist/leu-menu-item.js +1 -1
- package/dist/leu-menu.js +1 -1
- package/dist/leu-message.js +1 -1
- package/dist/leu-pagination.js +1 -1
- package/dist/leu-placeholder.js +1 -1
- package/dist/leu-popup.js +1 -1
- package/dist/leu-progress-bar.d.ts +4 -0
- package/dist/leu-progress-bar.js +10 -0
- package/dist/leu-radio-group.js +1 -1
- package/dist/leu-radio.js +1 -1
- package/dist/leu-range.js +1 -1
- package/dist/leu-scroll-top.js +1 -1
- package/dist/leu-select.js +1 -1
- package/dist/leu-spinner.js +1 -1
- package/dist/leu-table.js +1 -1
- package/dist/leu-tag.js +1 -1
- package/dist/leu-visually-hidden.js +1 -1
- package/dist/vscode.html-custom-data.json +65 -0
- package/dist/vue/index.d.ts +48 -0
- package/dist/web-types.json +119 -1
- package/package.json +1 -1
- package/scripts/generate-component/templates/test/[name].test.ts +4 -3
- package/src/components/file-input/FileInput.ts +271 -0
- package/src/components/file-input/file-input.css +118 -0
- package/src/components/file-input/leu-file-input.ts +5 -0
- package/src/components/file-input/stories/file-input.stories.ts +38 -0
- package/src/components/file-input/test/file-input.test.ts +25 -0
- package/src/components/input/Input.ts +0 -3
- package/src/components/progress-bar/ProgressBar.ts +52 -0
- package/src/components/progress-bar/leu-progress-bar.ts +5 -0
- package/src/components/progress-bar/progress-bar.css +97 -0
- package/src/components/progress-bar/stories/progress-bar.stories.ts +39 -0
- package/src/components/progress-bar/test/progress-bar.test.ts +61 -0
package/dist/leu-dropdown.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { LeuDropdown } from './Dropdown.js';
|
|
2
2
|
import 'lit';
|
|
3
3
|
import 'lit/directives/ref.js';
|
|
4
|
-
import './LeuElement-
|
|
4
|
+
import './LeuElement-CRdVLttR.js';
|
|
5
5
|
import './hasSlotController-Bm2tipvG.js';
|
|
6
6
|
import './Button.js';
|
|
7
7
|
import './_tslib-CNEFicEt.js';
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { LeuFileInput } from './FileInput.js';
|
|
2
|
+
import './_tslib-CNEFicEt.js';
|
|
3
|
+
import 'lit';
|
|
4
|
+
import 'lit/decorators.js';
|
|
5
|
+
import 'lit/directives/if-defined.js';
|
|
6
|
+
import 'lit/directives/class-map.js';
|
|
7
|
+
import './LeuElement-CRdVLttR.js';
|
|
8
|
+
import './Accordion.js';
|
|
9
|
+
import 'lit/static-html.js';
|
|
10
|
+
import './Button.js';
|
|
11
|
+
import './Icon.js';
|
|
12
|
+
import './hasSlotController-Bm2tipvG.js';
|
|
13
|
+
import './ButtonGroup.js';
|
|
14
|
+
import './ChartWrapper.js';
|
|
15
|
+
import './Spinner.js';
|
|
16
|
+
import './Checkbox.js';
|
|
17
|
+
import './CheckboxGroup.js';
|
|
18
|
+
import './ChipGroup.js';
|
|
19
|
+
import './ChipLink.js';
|
|
20
|
+
import './Chip.js';
|
|
21
|
+
import './ChipRemovable.js';
|
|
22
|
+
import './ChipSelectable.js';
|
|
23
|
+
import './Dropdown.js';
|
|
24
|
+
import 'lit/directives/ref.js';
|
|
25
|
+
import './Menu.js';
|
|
26
|
+
import './MenuItem.js';
|
|
27
|
+
import './Popup.js';
|
|
28
|
+
import '@floating-ui/dom';
|
|
29
|
+
import './Input.js';
|
|
30
|
+
import 'lit/directives/live.js';
|
|
31
|
+
import './Pagination.js';
|
|
32
|
+
import './VisuallyHidden.js';
|
|
33
|
+
import './Radio.js';
|
|
34
|
+
import './RadioGroup.js';
|
|
35
|
+
import './Select.js';
|
|
36
|
+
import './Table.js';
|
|
37
|
+
import 'lit/directives/style-map.js';
|
|
38
|
+
import './leu-icon.js';
|
|
39
|
+
|
|
40
|
+
LeuFileInput.define("leu-file-input");
|
|
41
|
+
|
|
42
|
+
export { LeuFileInput };
|
package/dist/leu-icon.js
CHANGED
package/dist/leu-input.js
CHANGED
|
@@ -4,7 +4,7 @@ import 'lit/directives/class-map.js';
|
|
|
4
4
|
import 'lit/directives/if-defined.js';
|
|
5
5
|
import 'lit/directives/live.js';
|
|
6
6
|
import 'lit/directives/ref.js';
|
|
7
|
-
import './LeuElement-
|
|
7
|
+
import './LeuElement-CRdVLttR.js';
|
|
8
8
|
import './Icon.js';
|
|
9
9
|
import './_tslib-CNEFicEt.js';
|
|
10
10
|
import 'lit/decorators.js';
|
package/dist/leu-menu-item.js
CHANGED
package/dist/leu-menu.js
CHANGED
package/dist/leu-message.js
CHANGED
package/dist/leu-pagination.js
CHANGED
|
@@ -3,7 +3,7 @@ import './_tslib-CNEFicEt.js';
|
|
|
3
3
|
import 'lit';
|
|
4
4
|
import 'lit/directives/live.js';
|
|
5
5
|
import 'lit/decorators.js';
|
|
6
|
-
import './LeuElement-
|
|
6
|
+
import './LeuElement-CRdVLttR.js';
|
|
7
7
|
import './Button.js';
|
|
8
8
|
import 'lit/directives/class-map.js';
|
|
9
9
|
import 'lit/directives/if-defined.js';
|
package/dist/leu-placeholder.js
CHANGED
package/dist/leu-popup.js
CHANGED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { LeuProgressBar } from './ProgressBar.js';
|
|
2
|
+
import './_tslib-CNEFicEt.js';
|
|
3
|
+
import 'lit';
|
|
4
|
+
import 'lit/directives/if-defined.js';
|
|
5
|
+
import 'lit/decorators.js';
|
|
6
|
+
import './LeuElement-CRdVLttR.js';
|
|
7
|
+
|
|
8
|
+
LeuProgressBar.define("leu-progress-bar");
|
|
9
|
+
|
|
10
|
+
export { LeuProgressBar };
|
package/dist/leu-radio-group.js
CHANGED
package/dist/leu-radio.js
CHANGED
package/dist/leu-range.js
CHANGED
package/dist/leu-scroll-top.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { LeuScrollTop } from './ScrollTop.js';
|
|
2
2
|
import 'lit';
|
|
3
3
|
import 'lit/directives/class-map.js';
|
|
4
|
-
import './LeuElement-
|
|
4
|
+
import './LeuElement-CRdVLttR.js';
|
|
5
5
|
import './Button.js';
|
|
6
6
|
import './_tslib-CNEFicEt.js';
|
|
7
7
|
import 'lit/directives/if-defined.js';
|
package/dist/leu-select.js
CHANGED
|
@@ -3,7 +3,7 @@ import 'lit';
|
|
|
3
3
|
import 'lit/directives/class-map.js';
|
|
4
4
|
import 'lit/directives/ref.js';
|
|
5
5
|
import 'lit/directives/if-defined.js';
|
|
6
|
-
import './LeuElement-
|
|
6
|
+
import './LeuElement-CRdVLttR.js';
|
|
7
7
|
import './hasSlotController-Bm2tipvG.js';
|
|
8
8
|
import './Button.js';
|
|
9
9
|
import './_tslib-CNEFicEt.js';
|
package/dist/leu-spinner.js
CHANGED
package/dist/leu-table.js
CHANGED
|
@@ -3,7 +3,7 @@ import 'lit';
|
|
|
3
3
|
import 'lit/directives/class-map.js';
|
|
4
4
|
import 'lit/directives/style-map.js';
|
|
5
5
|
import 'lit/directives/ref.js';
|
|
6
|
-
import './LeuElement-
|
|
6
|
+
import './LeuElement-CRdVLttR.js';
|
|
7
7
|
import './Icon.js';
|
|
8
8
|
import './_tslib-CNEFicEt.js';
|
|
9
9
|
import 'lit/decorators.js';
|
package/dist/leu-tag.js
CHANGED
|
@@ -297,6 +297,44 @@
|
|
|
297
297
|
}
|
|
298
298
|
]
|
|
299
299
|
},
|
|
300
|
+
{
|
|
301
|
+
"name": "leu-file-input",
|
|
302
|
+
"description": "\n---\n",
|
|
303
|
+
"attributes": [
|
|
304
|
+
{ "name": "label", "values": [] },
|
|
305
|
+
{
|
|
306
|
+
"name": "accept",
|
|
307
|
+
"description": "A list of acceptable file types. Must be a comma-separated list of [unique file type specifiers](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/file#unique_file_type_specifiers).",
|
|
308
|
+
"values": []
|
|
309
|
+
},
|
|
310
|
+
{
|
|
311
|
+
"name": "disabled",
|
|
312
|
+
"description": "Whether the file input is disabled.",
|
|
313
|
+
"values": []
|
|
314
|
+
},
|
|
315
|
+
{
|
|
316
|
+
"name": "multiple",
|
|
317
|
+
"description": "Whether the file input allows multiple files.",
|
|
318
|
+
"values": []
|
|
319
|
+
},
|
|
320
|
+
{
|
|
321
|
+
"name": "required",
|
|
322
|
+
"description": "Whether the file input is required.",
|
|
323
|
+
"values": []
|
|
324
|
+
},
|
|
325
|
+
{
|
|
326
|
+
"name": "variant",
|
|
327
|
+
"description": "The variant of the file list item. `filled` renders a gray background.",
|
|
328
|
+
"values": [{ "name": "filled" }, { "name": "transparent" }]
|
|
329
|
+
}
|
|
330
|
+
],
|
|
331
|
+
"references": [
|
|
332
|
+
{
|
|
333
|
+
"name": "Documentation",
|
|
334
|
+
"url": "https://statistikzh.github.io/leu/?path=/story/file-input"
|
|
335
|
+
}
|
|
336
|
+
]
|
|
337
|
+
},
|
|
300
338
|
{
|
|
301
339
|
"name": "leu-icon",
|
|
302
340
|
"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)_",
|
|
@@ -597,6 +635,33 @@
|
|
|
597
635
|
}
|
|
598
636
|
]
|
|
599
637
|
},
|
|
638
|
+
{
|
|
639
|
+
"name": "leu-progress-bar",
|
|
640
|
+
"description": "An indicator showing the completion progress of a task\n---\n",
|
|
641
|
+
"attributes": [
|
|
642
|
+
{
|
|
643
|
+
"name": "value",
|
|
644
|
+
"description": "Progress as a percentage from 0 to 100",
|
|
645
|
+
"values": []
|
|
646
|
+
},
|
|
647
|
+
{
|
|
648
|
+
"name": "label",
|
|
649
|
+
"description": "Label that is displayed below the progress bar",
|
|
650
|
+
"values": []
|
|
651
|
+
},
|
|
652
|
+
{
|
|
653
|
+
"name": "indeterminate",
|
|
654
|
+
"description": "Whether the progress bar is in indeterminate state.",
|
|
655
|
+
"values": []
|
|
656
|
+
}
|
|
657
|
+
],
|
|
658
|
+
"references": [
|
|
659
|
+
{
|
|
660
|
+
"name": "Documentation",
|
|
661
|
+
"url": "https://statistikzh.github.io/leu/?path=/story/progress-bar"
|
|
662
|
+
}
|
|
663
|
+
]
|
|
664
|
+
},
|
|
600
665
|
{
|
|
601
666
|
"name": "leu-radio",
|
|
602
667
|
"description": "\n---\n",
|
package/dist/vue/index.d.ts
CHANGED
|
@@ -12,6 +12,7 @@ import type { LeuChipRemovable } from "../ChipRemovable.js";
|
|
|
12
12
|
import type { LeuChipSelectable, CustomEvent } from "../ChipSelectable.js";
|
|
13
13
|
import type { LeuDialog } from "../Dialog.js";
|
|
14
14
|
import type { LeuDropdown } from "../Dropdown.js";
|
|
15
|
+
import type { LeuFileInput } from "../FileInput.js";
|
|
15
16
|
import type { LeuIcon } from "../Icon.js";
|
|
16
17
|
import type { LeuInput, CustomEvent } from "../Input.js";
|
|
17
18
|
import type { LeuMenu } from "../Menu.js";
|
|
@@ -20,6 +21,7 @@ import type { LeuMessage, CustomEvent } from "../Message.js";
|
|
|
20
21
|
import type { LeuPagination, CustomEvent } from "../Pagination.js";
|
|
21
22
|
import type { LeuPlaceholder } from "../Placeholder.js";
|
|
22
23
|
import type { LeuPopup } from "../Popup.js";
|
|
24
|
+
import type { LeuProgressBar } from "../ProgressBar.js";
|
|
23
25
|
import type { LeuRadio } from "../Radio.js";
|
|
24
26
|
import type { LeuRadioGroup } from "../RadioGroup.js";
|
|
25
27
|
import type { LeuRange } from "../Range.js";
|
|
@@ -185,6 +187,29 @@ Navigating the menu with the arrow keys is handled by the menu itself. */
|
|
|
185
187
|
_toggleRef?: LeuDropdown["_toggleRef"];
|
|
186
188
|
};
|
|
187
189
|
|
|
190
|
+
type LeuFileInputProps = {
|
|
191
|
+
/** */
|
|
192
|
+
label?: LeuFileInput["label"];
|
|
193
|
+
/** A list of acceptable file types. Must be a comma-separated list of [unique file type specifiers](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/file#unique_file_type_specifiers). */
|
|
194
|
+
accept?: LeuFileInput["accept"];
|
|
195
|
+
/** Whether the file input is disabled. */
|
|
196
|
+
disabled?: LeuFileInput["disabled"];
|
|
197
|
+
/** Whether the file input allows multiple files. */
|
|
198
|
+
multiple?: LeuFileInput["multiple"];
|
|
199
|
+
/** Whether the file input is required. */
|
|
200
|
+
required?: LeuFileInput["required"];
|
|
201
|
+
/** The variant of the file list item. `filled` renders a gray background. */
|
|
202
|
+
variant?: LeuFileInput["variant"];
|
|
203
|
+
/** */
|
|
204
|
+
files?: LeuFileInput["files"];
|
|
205
|
+
/** */
|
|
206
|
+
input?: LeuFileInput["input"];
|
|
207
|
+
/** */
|
|
208
|
+
form?: LeuFileInput["form"];
|
|
209
|
+
/** */
|
|
210
|
+
name?: LeuFileInput["name"];
|
|
211
|
+
};
|
|
212
|
+
|
|
188
213
|
type LeuIconProps = {
|
|
189
214
|
/** The name of the icon to display. */
|
|
190
215
|
name?: LeuIcon["name"];
|
|
@@ -330,6 +355,15 @@ type LeuPopupProps = {
|
|
|
330
355
|
cleanup?: LeuPopup["cleanup"];
|
|
331
356
|
};
|
|
332
357
|
|
|
358
|
+
type LeuProgressBarProps = {
|
|
359
|
+
/** Progress as a percentage from 0 to 100 */
|
|
360
|
+
value?: LeuProgressBar["value"];
|
|
361
|
+
/** Label that is displayed below the progress bar */
|
|
362
|
+
label?: LeuProgressBar["label"];
|
|
363
|
+
/** Whether the progress bar is in indeterminate state. */
|
|
364
|
+
indeterminate?: LeuProgressBar["indeterminate"];
|
|
365
|
+
};
|
|
366
|
+
|
|
333
367
|
type LeuRadioProps = {
|
|
334
368
|
/** */
|
|
335
369
|
checked?: LeuRadio["checked"];
|
|
@@ -594,6 +628,13 @@ export type CustomElements = {
|
|
|
594
628
|
*/
|
|
595
629
|
"leu-dropdown": DefineComponent<LeuDropdownProps>;
|
|
596
630
|
|
|
631
|
+
/**
|
|
632
|
+
*
|
|
633
|
+
* ---
|
|
634
|
+
*
|
|
635
|
+
*/
|
|
636
|
+
"leu-file-input": DefineComponent<LeuFileInputProps>;
|
|
637
|
+
|
|
597
638
|
/**
|
|
598
639
|
* A component to render all defined zhWeb icons.
|
|
599
640
|
* The `fill` of the icon is set to `currentColor` and
|
|
@@ -695,6 +736,13 @@ export type CustomElements = {
|
|
|
695
736
|
*/
|
|
696
737
|
"leu-popup": DefineComponent<LeuPopupProps>;
|
|
697
738
|
|
|
739
|
+
/**
|
|
740
|
+
* An indicator showing the completion progress of a task
|
|
741
|
+
* ---
|
|
742
|
+
*
|
|
743
|
+
*/
|
|
744
|
+
"leu-progress-bar": DefineComponent<LeuProgressBarProps>;
|
|
745
|
+
|
|
698
746
|
/**
|
|
699
747
|
*
|
|
700
748
|
* ---
|
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.19.1",
|
|
5
5
|
"description-markup": "markdown",
|
|
6
6
|
"contributions": {
|
|
7
7
|
"html": {
|
|
@@ -595,6 +595,81 @@
|
|
|
595
595
|
"events": []
|
|
596
596
|
}
|
|
597
597
|
},
|
|
598
|
+
{
|
|
599
|
+
"name": "leu-file-input",
|
|
600
|
+
"description": "\n---\n",
|
|
601
|
+
"doc-url": "",
|
|
602
|
+
"attributes": [
|
|
603
|
+
{
|
|
604
|
+
"name": "label",
|
|
605
|
+
"value": { "type": "string", "default": "\"\"" }
|
|
606
|
+
},
|
|
607
|
+
{
|
|
608
|
+
"name": "accept",
|
|
609
|
+
"description": "A list of acceptable file types. Must be a comma-separated list of [unique file type specifiers](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/file#unique_file_type_specifiers).",
|
|
610
|
+
"value": { "type": "string", "default": "\"\"" }
|
|
611
|
+
},
|
|
612
|
+
{
|
|
613
|
+
"name": "disabled",
|
|
614
|
+
"description": "Whether the file input is disabled.",
|
|
615
|
+
"value": { "type": "boolean", "default": "false" }
|
|
616
|
+
},
|
|
617
|
+
{
|
|
618
|
+
"name": "multiple",
|
|
619
|
+
"description": "Whether the file input allows multiple files.",
|
|
620
|
+
"value": { "type": "boolean", "default": "false" }
|
|
621
|
+
},
|
|
622
|
+
{
|
|
623
|
+
"name": "required",
|
|
624
|
+
"description": "Whether the file input is required.",
|
|
625
|
+
"value": { "type": "boolean", "default": "false" }
|
|
626
|
+
},
|
|
627
|
+
{
|
|
628
|
+
"name": "variant",
|
|
629
|
+
"description": "The variant of the file list item. `filled` renders a gray background.",
|
|
630
|
+
"value": {
|
|
631
|
+
"type": "\"filled\" | \"transparent\"",
|
|
632
|
+
"default": "\"filled\""
|
|
633
|
+
}
|
|
634
|
+
}
|
|
635
|
+
],
|
|
636
|
+
"events": [],
|
|
637
|
+
"js": {
|
|
638
|
+
"properties": [
|
|
639
|
+
{ "name": "label", "type": "string" },
|
|
640
|
+
{
|
|
641
|
+
"name": "accept",
|
|
642
|
+
"description": "A list of acceptable file types. Must be a comma-separated list of [unique file type specifiers](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/file#unique_file_type_specifiers).",
|
|
643
|
+
"type": "string"
|
|
644
|
+
},
|
|
645
|
+
{
|
|
646
|
+
"name": "disabled",
|
|
647
|
+
"description": "Whether the file input is disabled.",
|
|
648
|
+
"type": "boolean"
|
|
649
|
+
},
|
|
650
|
+
{
|
|
651
|
+
"name": "multiple",
|
|
652
|
+
"description": "Whether the file input allows multiple files.",
|
|
653
|
+
"type": "boolean"
|
|
654
|
+
},
|
|
655
|
+
{
|
|
656
|
+
"name": "required",
|
|
657
|
+
"description": "Whether the file input is required.",
|
|
658
|
+
"type": "boolean"
|
|
659
|
+
},
|
|
660
|
+
{
|
|
661
|
+
"name": "variant",
|
|
662
|
+
"description": "The variant of the file list item. `filled` renders a gray background.",
|
|
663
|
+
"type": "\"filled\" | \"transparent\""
|
|
664
|
+
},
|
|
665
|
+
{ "name": "files", "type": "File[]" },
|
|
666
|
+
{ "name": "input", "type": "HTMLInputElement" },
|
|
667
|
+
{ "name": "form" },
|
|
668
|
+
{ "name": "name" }
|
|
669
|
+
],
|
|
670
|
+
"events": []
|
|
671
|
+
}
|
|
672
|
+
},
|
|
598
673
|
{
|
|
599
674
|
"name": "leu-icon",
|
|
600
675
|
"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)_",
|
|
@@ -1199,6 +1274,49 @@
|
|
|
1199
1274
|
"events": []
|
|
1200
1275
|
}
|
|
1201
1276
|
},
|
|
1277
|
+
{
|
|
1278
|
+
"name": "leu-progress-bar",
|
|
1279
|
+
"description": "An indicator showing the completion progress of a task\n---\n",
|
|
1280
|
+
"doc-url": "",
|
|
1281
|
+
"attributes": [
|
|
1282
|
+
{
|
|
1283
|
+
"name": "value",
|
|
1284
|
+
"description": "Progress as a percentage from 0 to 100",
|
|
1285
|
+
"value": { "type": "number", "default": "0" }
|
|
1286
|
+
},
|
|
1287
|
+
{
|
|
1288
|
+
"name": "label",
|
|
1289
|
+
"description": "Label that is displayed below the progress bar",
|
|
1290
|
+
"value": { "type": "string", "default": "\"\"" }
|
|
1291
|
+
},
|
|
1292
|
+
{
|
|
1293
|
+
"name": "indeterminate",
|
|
1294
|
+
"description": "Whether the progress bar is in indeterminate state.",
|
|
1295
|
+
"value": { "type": "boolean", "default": "false" }
|
|
1296
|
+
}
|
|
1297
|
+
],
|
|
1298
|
+
"events": [],
|
|
1299
|
+
"js": {
|
|
1300
|
+
"properties": [
|
|
1301
|
+
{
|
|
1302
|
+
"name": "value",
|
|
1303
|
+
"description": "Progress as a percentage from 0 to 100",
|
|
1304
|
+
"type": "number"
|
|
1305
|
+
},
|
|
1306
|
+
{
|
|
1307
|
+
"name": "label",
|
|
1308
|
+
"description": "Label that is displayed below the progress bar",
|
|
1309
|
+
"type": "string"
|
|
1310
|
+
},
|
|
1311
|
+
{
|
|
1312
|
+
"name": "indeterminate",
|
|
1313
|
+
"description": "Whether the progress bar is in indeterminate state.",
|
|
1314
|
+
"type": "boolean"
|
|
1315
|
+
}
|
|
1316
|
+
],
|
|
1317
|
+
"events": []
|
|
1318
|
+
}
|
|
1319
|
+
},
|
|
1202
1320
|
{
|
|
1203
1321
|
"name": "leu-radio",
|
|
1204
1322
|
"description": "\n---\n",
|
package/package.json
CHANGED
|
@@ -2,16 +2,17 @@ import { html } from "lit"
|
|
|
2
2
|
import { fixture, expect } from "@open-wc/testing"
|
|
3
3
|
|
|
4
4
|
import "../[namespace]-[name].js"
|
|
5
|
+
import { type [Namespace][Name] } from "../[Name].js"
|
|
5
6
|
|
|
6
7
|
async function defaultFixture() {
|
|
7
|
-
return fixture(html`<[namespace]-[name]></[namespace]-[name]>`)
|
|
8
|
+
return fixture<[Namespace][Name]>(html`<[namespace]-[name]></[namespace]-[name]>`)
|
|
8
9
|
}
|
|
9
10
|
|
|
10
11
|
describe("[Namespace][Name]", () => {
|
|
11
12
|
it("is a defined element", async () => {
|
|
12
|
-
const el =
|
|
13
|
+
const el = customElements.get("[namespace]-[name]")
|
|
13
14
|
|
|
14
|
-
|
|
15
|
+
expect(el).not.to.be.undefined
|
|
15
16
|
})
|
|
16
17
|
|
|
17
18
|
it("passes the a11y audit", async () => {
|