@statistikzh/leu 0.24.2 → 0.25.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/.release-please-manifest.json +1 -1
- package/.storybook/main.ts +18 -53
- package/.storybook/manager.ts +1 -4
- package/.storybook/preview.ts +23 -16
- package/.storybook/theme.ts +1 -1
- package/CHANGELOG.md +14 -0
- package/dist/Accordion-CDNyrB8d.js +241 -0
- package/dist/Accordion.d.ts +44 -44
- package/dist/Accordion.js +2 -249
- package/dist/Button-DSGPIcjm.d.ts +93 -0
- package/dist/Button-EdS9xr2J.js +524 -0
- package/dist/Button.d.ts +2 -85
- package/dist/Button.js +4 -504
- package/dist/ButtonGroup-BQqf8o_d.js +88 -0
- package/dist/ButtonGroup.d.ts +19 -19
- package/dist/ButtonGroup.js +5 -101
- package/dist/ChartWrapper-LiNHTNRw.js +158 -0
- package/dist/ChartWrapper.d.ts +26 -26
- package/dist/ChartWrapper.js +3 -163
- package/dist/Checkbox-BtDWmPab.js +198 -0
- package/dist/Checkbox.d.ts +35 -27
- package/dist/Checkbox.js +4 -157
- package/dist/CheckboxGroup-C8MbwW9u.js +81 -0
- package/dist/CheckboxGroup.d.ts +18 -18
- package/dist/CheckboxGroup.js +5 -82
- package/dist/Chip-Ch09jjYi.js +171 -0
- package/dist/Chip-DLKM9P7v.d.ts +18 -0
- package/dist/Chip.d.ts +2 -18
- package/dist/Chip.js +2 -166
- package/dist/ChipGroup-PvqVW-tm.js +125 -0
- package/dist/ChipGroup-Ta8Ht4jc.d.ts +42 -0
- package/dist/ChipGroup.d.ts +2 -43
- package/dist/ChipGroup.js +3 -132
- package/dist/ChipLink-BAxyQO2M.d.ts +17 -0
- package/dist/ChipLink.d.ts +2 -18
- package/dist/ChipLink.js +28 -28
- package/dist/ChipRemovable-DBjwt0CH.d.ts +25 -0
- package/dist/ChipRemovable.d.ts +2 -26
- package/dist/ChipRemovable.js +42 -43
- package/dist/ChipSelectable-CMJNcE4U.d.ts +32 -0
- package/dist/ChipSelectable.d.ts +2 -33
- package/dist/ChipSelectable.js +63 -72
- package/dist/Dialog-CV1JTkCn.js +241 -0
- package/dist/Dialog.d.ts +28 -28
- package/dist/Dialog.js +3 -240
- package/dist/Dropdown-DpFdFbA1.js +155 -0
- package/dist/Dropdown.d.ts +39 -41
- package/dist/Dropdown.js +8 -157
- package/dist/FileInput-5apX17JT.js +344 -0
- package/dist/FileInput.d.ts +56 -57
- package/dist/FileInput.js +6 -383
- package/dist/FormAssociatedMixin-BbFlza53.js +58 -0
- package/dist/FormAssociatedMixin-Cc74LjbC.d.ts +22 -0
- package/dist/Icon-DhAvH0XM.js +186 -0
- package/dist/Icon-Op80LrrO.d.ts +151 -0
- package/dist/Icon.d.ts +2 -4
- package/dist/Icon.js +2 -188
- package/dist/Input-CnEz-2dK.js +610 -0
- package/dist/Input-D2THgo7c.d.ts +169 -0
- package/dist/Input.d.ts +2 -166
- package/dist/Input.js +4 -626
- package/dist/LeuElement-B7NJzWwP.js +46 -0
- package/dist/LeuElement-pJFU18Xm.d.ts +11 -0
- package/dist/Menu-CQdx1ef3.d.ts +43 -0
- package/dist/Menu-DpiheIPk.js +136 -0
- package/dist/Menu.d.ts +2 -44
- package/dist/Menu.js +4 -157
- package/dist/MenuItem-CZTqGg5R.js +219 -0
- package/dist/MenuItem-QcgnRk_7.d.ts +63 -0
- package/dist/MenuItem.d.ts +2 -64
- package/dist/MenuItem.js +3 -227
- package/dist/Message-J4Kj7yHE.js +252 -0
- package/dist/Message.d.ts +53 -53
- package/dist/Message.js +3 -267
- package/dist/Pagination-Be8TcBoC.d.ts +76 -0
- package/dist/Pagination-CWqgusWZ.js +226 -0
- package/dist/Pagination.d.ts +2 -76
- package/dist/Pagination.js +6 -240
- package/dist/Placeholder-DMN6sMbp.js +95 -0
- package/dist/Placeholder.d.ts +15 -15
- package/dist/Placeholder.js +2 -89
- package/dist/Popup-Btgm2a3D.d.ts +61 -0
- package/dist/Popup-JQjuj26v.js +195 -0
- package/dist/Popup.d.ts +2 -62
- package/dist/Popup.js +2 -233
- package/dist/ProgressBar-CzN3fqiH.js +167 -0
- package/dist/ProgressBar.d.ts +21 -21
- package/dist/ProgressBar.js +2 -165
- package/dist/Radio-CX8aCsff.js +160 -0
- package/dist/Radio.d.ts +22 -22
- package/dist/Radio.js +2 -151
- package/dist/RadioGroup-CgEWQnC4.js +171 -0
- package/dist/RadioGroup.d.ts +35 -35
- package/dist/RadioGroup.js +3 -182
- package/dist/Range-DoW_ZdKm.js +496 -0
- package/dist/Range.d.ts +112 -112
- package/dist/Range.js +2 -586
- package/dist/ScrollTop-DxChetWq.js +130 -0
- package/dist/ScrollTop.d.ts +21 -21
- package/dist/ScrollTop.js +5 -134
- package/dist/Select-BCx79gOH.js +618 -0
- package/dist/Select.d.ts +130 -132
- package/dist/Select.js +9 -675
- package/dist/Spinner-CMo_o6Fy.d.ts +14 -0
- package/dist/Spinner-DJR4gv3Y.js +56 -0
- package/dist/Spinner.d.ts +2 -14
- package/dist/Spinner.js +2 -52
- package/dist/Table-DZz1ic3j.js +392 -0
- package/dist/Table.d.ts +61 -63
- package/dist/Table.js +7 -427
- package/dist/Tag-DsZS_8pl.js +76 -0
- package/dist/Tag.d.ts +8 -8
- package/dist/Tag.js +2 -74
- package/dist/VisuallyHidden-BkllVjlz.js +29 -0
- package/dist/VisuallyHidden-OeQvhxYn.d.ts +13 -0
- package/dist/VisuallyHidden.d.ts +2 -13
- package/dist/VisuallyHidden.js +2 -25
- package/dist/decorate-DwpAc4D0.js +9 -0
- package/dist/hasSlotController-BLtZurRh.d.ts +19 -0
- package/dist/hasSlotController-DjdfnOQp.js +38 -0
- package/dist/index.d.ts +33 -30
- package/dist/index.js +35 -45
- package/dist/leu-accordion.d.ts +7 -10
- package/dist/leu-accordion.js +4 -8
- package/dist/leu-button-group.d.ts +7 -10
- package/dist/leu-button-group.js +7 -12
- package/dist/leu-button.d.ts +7 -11
- package/dist/leu-button.js +6 -11
- package/dist/leu-chart-wrapper.d.ts +7 -12
- package/dist/leu-chart-wrapper.js +5 -9
- package/dist/leu-checkbox-group.d.ts +7 -10
- package/dist/leu-checkbox-group.js +7 -10
- package/dist/leu-checkbox.d.ts +7 -11
- package/dist/leu-checkbox.js +6 -8
- package/dist/leu-chip-group.d.ts +7 -12
- package/dist/leu-chip-group.js +5 -10
- package/dist/leu-chip-link.d.ts +7 -11
- package/dist/leu-chip-link.js +5 -8
- package/dist/leu-chip-removable.d.ts +7 -12
- package/dist/leu-chip-removable.js +6 -9
- package/dist/leu-chip-selectable.d.ts +7 -11
- package/dist/leu-chip-selectable.js +5 -8
- package/dist/leu-dialog.d.ts +7 -13
- package/dist/leu-dialog.js +5 -11
- package/dist/leu-dropdown.d.ts +7 -18
- package/dist/leu-dropdown.js +10 -17
- package/dist/leu-file-input.d.ts +7 -13
- package/dist/leu-file-input.js +8 -13
- package/dist/leu-icon.d.ts +7 -10
- package/dist/leu-icon.js +4 -7
- package/dist/leu-input.d.ts +7 -12
- package/dist/leu-input.js +6 -12
- package/dist/leu-menu-item.d.ts +7 -11
- package/dist/leu-menu-item.js +5 -9
- package/dist/leu-menu.d.ts +7 -12
- package/dist/leu-menu.js +6 -10
- package/dist/leu-message.d.ts +7 -11
- package/dist/leu-message.js +5 -10
- package/dist/leu-pagination.d.ts +7 -13
- package/dist/leu-pagination.js +8 -14
- package/dist/leu-placeholder.d.ts +7 -10
- package/dist/leu-placeholder.js +4 -5
- package/dist/leu-popup.d.ts +7 -11
- package/dist/leu-popup.js +4 -8
- package/dist/leu-progress-bar.d.ts +7 -10
- package/dist/leu-progress-bar.js +4 -8
- package/dist/leu-radio-group.d.ts +7 -10
- package/dist/leu-radio-group.js +5 -9
- package/dist/leu-radio.d.ts +7 -10
- package/dist/leu-radio.js +4 -7
- package/dist/leu-range.d.ts +7 -10
- package/dist/leu-range.js +4 -9
- package/dist/leu-scroll-top.d.ts +7 -12
- package/dist/leu-scroll-top.js +7 -13
- package/dist/leu-select.d.ts +7 -19
- package/dist/leu-select.js +11 -19
- package/dist/leu-spinner.d.ts +7 -10
- package/dist/leu-spinner.js +4 -5
- package/dist/leu-table.d.ts +7 -14
- package/dist/leu-table.js +9 -17
- package/dist/leu-tag.d.ts +7 -10
- package/dist/leu-tag.js +4 -7
- package/dist/leu-visually-hidden.d.ts +7 -10
- package/dist/leu-visually-hidden.js +4 -5
- package/dist/utils-hfk5Nwy8.js +28 -0
- package/dist/vscode.html-custom-data.json +2 -8
- package/dist/vue/index.d.ts +3 -9
- package/dist/web-types.json +8 -24
- package/eslint.config.mjs +79 -0
- package/package.json +44 -60
- package/scripts/generate-component/templates/stories/[name].stories.ts +1 -1
- package/src/components/accordion/Accordion.ts +1 -1
- package/src/components/button/Button.ts +62 -3
- package/src/components/button/test/button.test.ts +185 -7
- package/src/components/button-group/ButtonGroup.ts +1 -6
- package/src/components/button-group/stories/button-group.stories.ts +1 -1
- package/src/components/chart-wrapper/ChartWrapper.ts +1 -1
- package/src/components/chart-wrapper/stories/chart-wrapper.stories.ts +1 -1
- package/src/components/checkbox/Checkbox.ts +76 -12
- package/src/components/checkbox/CheckboxGroup.ts +1 -1
- package/src/components/checkbox/checkbox.css +4 -0
- package/src/components/checkbox/stories/checkbox.stories.ts +26 -3
- package/src/components/checkbox/test/checkbox.test.ts +147 -3
- package/src/components/chip/Chip.ts +1 -1
- package/src/components/chip/ChipGroup.ts +2 -2
- package/src/components/chip/stories/chip-removable.stories.ts +1 -1
- package/src/components/chip/test/chip-removable.test.ts +2 -2
- package/src/components/dialog/Dialog.ts +1 -1
- package/src/components/dialog/stories/dialog.stories.ts +0 -2
- package/src/components/dropdown/Dropdown.ts +1 -1
- package/src/components/dropdown/stories/dropdown.stories.ts +1 -1
- package/src/components/file-input/FileInput.ts +18 -20
- package/src/components/file-input/stories/file-input.stories.ts +2 -2
- package/src/components/file-input/test/file-input.test.ts +14 -1
- package/src/components/icon/Icon.ts +1 -1
- package/src/components/input/Input.ts +18 -7
- package/src/components/input/stories/input.stories.ts +24 -21
- package/src/components/menu/Menu.ts +4 -4
- package/src/components/menu/MenuItem.ts +1 -1
- package/src/components/menu/stories/menu-item.stories.ts +0 -2
- package/src/components/message/Message.ts +1 -1
- package/src/components/message/stories/message.stories.ts +2 -2
- package/src/components/pagination/Pagination.ts +1 -1
- package/src/components/pagination/stories/pagination.stories.ts +3 -3
- package/src/components/pagination/test/pagination.test.ts +1 -1
- package/src/components/placeholder/Placeholder.ts +1 -1
- package/src/components/placeholder/stories/placeholder.stories.ts +1 -1
- package/src/components/popup/Popup.ts +1 -1
- package/src/components/progress-bar/ProgressBar.ts +1 -1
- package/src/components/progress-bar/stories/progress-bar.stories.ts +1 -1
- package/src/components/radio/Radio.ts +1 -1
- package/src/components/radio/RadioGroup.ts +5 -5
- package/src/components/range/Range.ts +1 -1
- package/src/components/range/stories/range.stories.ts +2 -2
- package/src/components/scroll-top/ScrollTop.ts +1 -1
- package/src/components/select/Select.ts +2 -5
- package/src/components/spinner/Spinner.ts +1 -1
- package/src/components/table/Table.ts +1 -1
- package/src/components/tag/Tag.ts +1 -1
- package/src/components/tag/stories/tag.stories.ts +1 -1
- package/src/components/visually-hidden/VisuallyHidden.ts +1 -1
- package/src/docs/contributing.mdx +1 -1
- package/src/docs/installation.mdx +1 -1
- package/src/docs/theme.mdx +1 -1
- package/src/docs/usage.mdx +1 -1
- package/src/global.d.ts +1 -1
- package/src/lib/LeuElement.ts +1 -1
- package/src/lib/mixins/FormAssociatedMixin.ts +115 -0
- package/src/lib/styleMap.ts +1 -1
- package/tsdown.config.ts +35 -0
- package/web-test-runner.config.mjs +20 -2
- package/.eslintrc.json +0 -57
- package/dist/Icon.d-itcQ94ym.d.ts +0 -151
- package/dist/LeuElement-BfXSO7MN.js +0 -42
- package/dist/LeuElement.d-BevHqLUu.d.ts +0 -10
- package/dist/_tslib-CNEFicEt.js +0 -30
- package/dist/components/accordion/Accordion.d.ts +0 -49
- package/dist/components/accordion/Accordion.d.ts.map +0 -1
- package/dist/components/accordion/leu-accordion.d.ts +0 -8
- package/dist/components/accordion/leu-accordion.d.ts.map +0 -1
- package/dist/components/accordion/stories/accordion.stories.d.ts +0 -26
- package/dist/components/accordion/stories/accordion.stories.d.ts.map +0 -1
- package/dist/components/accordion/test/accordion.test.d.ts +0 -2
- package/dist/components/accordion/test/accordion.test.d.ts.map +0 -1
- package/dist/components/button/Button.d.ts +0 -81
- package/dist/components/button/Button.d.ts.map +0 -1
- package/dist/components/button/leu-button.d.ts +0 -8
- package/dist/components/button/leu-button.d.ts.map +0 -1
- package/dist/components/button/stories/button.stories.d.ts +0 -19
- package/dist/components/button/stories/button.stories.d.ts.map +0 -1
- package/dist/components/button/test/button.test.d.ts +0 -3
- package/dist/components/button/test/button.test.d.ts.map +0 -1
- package/dist/components/button-group/ButtonGroup.d.ts +0 -25
- package/dist/components/button-group/ButtonGroup.d.ts.map +0 -1
- package/dist/components/button-group/leu-button-group.d.ts +0 -8
- package/dist/components/button-group/leu-button-group.d.ts.map +0 -1
- package/dist/components/button-group/stories/button-group.stories.d.ts +0 -15
- package/dist/components/button-group/stories/button-group.stories.d.ts.map +0 -1
- package/dist/components/button-group/test/button-group.test.d.ts +0 -3
- package/dist/components/button-group/test/button-group.test.d.ts.map +0 -1
- package/dist/components/chart-wrapper/ChartWrapper.d.ts +0 -34
- package/dist/components/chart-wrapper/ChartWrapper.d.ts.map +0 -1
- package/dist/components/chart-wrapper/leu-chart-wrapper.d.ts +0 -8
- package/dist/components/chart-wrapper/leu-chart-wrapper.d.ts.map +0 -1
- package/dist/components/chart-wrapper/stories/chart-wrapper.stories.d.ts +0 -47
- package/dist/components/chart-wrapper/stories/chart-wrapper.stories.d.ts.map +0 -1
- package/dist/components/chart-wrapper/test/chart-wrapper.test.d.ts +0 -2
- package/dist/components/chart-wrapper/test/chart-wrapper.test.d.ts.map +0 -1
- package/dist/components/checkbox/Checkbox.d.ts +0 -28
- package/dist/components/checkbox/Checkbox.d.ts.map +0 -1
- package/dist/components/checkbox/CheckboxGroup.d.ts +0 -22
- package/dist/components/checkbox/CheckboxGroup.d.ts.map +0 -1
- package/dist/components/checkbox/leu-checkbox-group.d.ts +0 -8
- package/dist/components/checkbox/leu-checkbox-group.d.ts.map +0 -1
- package/dist/components/checkbox/leu-checkbox.d.ts +0 -8
- package/dist/components/checkbox/leu-checkbox.d.ts.map +0 -1
- package/dist/components/checkbox/stories/checkbox-group.stories.d.ts +0 -29
- package/dist/components/checkbox/stories/checkbox-group.stories.d.ts.map +0 -1
- package/dist/components/checkbox/stories/checkbox.stories.d.ts +0 -22
- package/dist/components/checkbox/stories/checkbox.stories.d.ts.map +0 -1
- package/dist/components/checkbox/test/checkbox-group.test.d.ts +0 -3
- package/dist/components/checkbox/test/checkbox-group.test.d.ts.map +0 -1
- package/dist/components/checkbox/test/checkbox.test.d.ts +0 -2
- package/dist/components/checkbox/test/checkbox.test.d.ts.map +0 -1
- package/dist/components/chip/Chip.d.ts +0 -15
- package/dist/components/chip/Chip.d.ts.map +0 -1
- package/dist/components/chip/ChipGroup.d.ts +0 -38
- package/dist/components/chip/ChipGroup.d.ts.map +0 -1
- package/dist/components/chip/ChipLink.d.ts +0 -13
- package/dist/components/chip/ChipLink.d.ts.map +0 -1
- package/dist/components/chip/ChipRemovable.d.ts +0 -21
- package/dist/components/chip/ChipRemovable.d.ts.map +0 -1
- package/dist/components/chip/ChipSelectable.d.ts +0 -28
- package/dist/components/chip/ChipSelectable.d.ts.map +0 -1
- package/dist/components/chip/exports.d.ts +0 -5
- package/dist/components/chip/exports.d.ts.map +0 -1
- package/dist/components/chip/leu-chip-group.d.ts +0 -8
- package/dist/components/chip/leu-chip-group.d.ts.map +0 -1
- package/dist/components/chip/leu-chip-link.d.ts +0 -8
- package/dist/components/chip/leu-chip-link.d.ts.map +0 -1
- package/dist/components/chip/leu-chip-removable.d.ts +0 -8
- package/dist/components/chip/leu-chip-removable.d.ts.map +0 -1
- package/dist/components/chip/leu-chip-selectable.d.ts +0 -8
- package/dist/components/chip/leu-chip-selectable.d.ts.map +0 -1
- package/dist/components/chip/stories/chip-group.stories.d.ts +0 -40
- package/dist/components/chip/stories/chip-group.stories.d.ts.map +0 -1
- package/dist/components/chip/stories/chip-link.stories.d.ts +0 -27
- package/dist/components/chip/stories/chip-link.stories.d.ts.map +0 -1
- package/dist/components/chip/stories/chip-removable.stories.d.ts +0 -21
- package/dist/components/chip/stories/chip-removable.stories.d.ts.map +0 -1
- package/dist/components/chip/stories/chip-selectable.stories.d.ts +0 -35
- package/dist/components/chip/stories/chip-selectable.stories.d.ts.map +0 -1
- package/dist/components/chip/test/chip-group.test.d.ts +0 -4
- package/dist/components/chip/test/chip-group.test.d.ts.map +0 -1
- package/dist/components/chip/test/chip-link.test.d.ts +0 -2
- package/dist/components/chip/test/chip-link.test.d.ts.map +0 -1
- package/dist/components/chip/test/chip-removable.test.d.ts +0 -2
- package/dist/components/chip/test/chip-removable.test.d.ts.map +0 -1
- package/dist/components/chip/test/chip-selectable.test.d.ts +0 -2
- package/dist/components/chip/test/chip-selectable.test.d.ts.map +0 -1
- package/dist/components/chip/test/chip.test.d.ts +0 -2
- package/dist/components/chip/test/chip.test.d.ts.map +0 -1
- package/dist/components/dialog/Dialog.d.ts +0 -29
- package/dist/components/dialog/Dialog.d.ts.map +0 -1
- package/dist/components/dialog/leu-dialog.d.ts +0 -8
- package/dist/components/dialog/leu-dialog.d.ts.map +0 -1
- package/dist/components/dialog/stories/dialog.stories.d.ts +0 -19
- package/dist/components/dialog/stories/dialog.stories.d.ts.map +0 -1
- package/dist/components/dialog/test/dialog.test.d.ts +0 -2
- package/dist/components/dialog/test/dialog.test.d.ts.map +0 -1
- package/dist/components/dropdown/Dropdown.d.ts +0 -40
- package/dist/components/dropdown/Dropdown.d.ts.map +0 -1
- package/dist/components/dropdown/leu-dropdown.d.ts +0 -8
- package/dist/components/dropdown/leu-dropdown.d.ts.map +0 -1
- package/dist/components/dropdown/stories/dropdown.stories.d.ts +0 -25
- package/dist/components/dropdown/stories/dropdown.stories.d.ts.map +0 -1
- package/dist/components/dropdown/test/dropdown.test.d.ts +0 -2
- package/dist/components/dropdown/test/dropdown.test.d.ts.map +0 -1
- package/dist/components/file-input/FileInput.d.ts +0 -62
- package/dist/components/file-input/FileInput.d.ts.map +0 -1
- package/dist/components/file-input/leu-file-input.d.ts +0 -8
- package/dist/components/file-input/leu-file-input.d.ts.map +0 -1
- package/dist/components/file-input/stories/file-input.stories.d.ts +0 -34
- package/dist/components/file-input/stories/file-input.stories.d.ts.map +0 -1
- package/dist/components/file-input/test/file-input.test.d.ts +0 -2
- package/dist/components/file-input/test/file-input.test.d.ts.map +0 -1
- package/dist/components/icon/Icon.d.ts +0 -20
- package/dist/components/icon/Icon.d.ts.map +0 -1
- package/dist/components/icon/leu-icon.d.ts +0 -8
- package/dist/components/icon/leu-icon.d.ts.map +0 -1
- package/dist/components/icon/paths.d.ts +0 -127
- package/dist/components/icon/paths.d.ts.map +0 -1
- package/dist/components/icon/stories/icon.stories.d.ts +0 -32
- package/dist/components/icon/stories/icon.stories.d.ts.map +0 -1
- package/dist/components/icon/test/icon.test.d.ts +0 -2
- package/dist/components/icon/test/icon.test.d.ts.map +0 -1
- package/dist/components/input/Input.d.ts +0 -163
- package/dist/components/input/Input.d.ts.map +0 -1
- package/dist/components/input/leu-input.d.ts +0 -8
- package/dist/components/input/leu-input.d.ts.map +0 -1
- package/dist/components/input/stories/input.stories.d.ts +0 -35
- package/dist/components/input/stories/input.stories.d.ts.map +0 -1
- package/dist/components/input/test/input.test.d.ts +0 -2
- package/dist/components/input/test/input.test.d.ts.map +0 -1
- package/dist/components/menu/Menu.d.ts +0 -39
- package/dist/components/menu/Menu.d.ts.map +0 -1
- package/dist/components/menu/MenuItem.d.ts +0 -61
- package/dist/components/menu/MenuItem.d.ts.map +0 -1
- package/dist/components/menu/leu-menu-item.d.ts +0 -8
- package/dist/components/menu/leu-menu-item.d.ts.map +0 -1
- package/dist/components/menu/leu-menu.d.ts +0 -8
- package/dist/components/menu/leu-menu.d.ts.map +0 -1
- package/dist/components/menu/stories/menu-item.stories.d.ts +0 -24
- package/dist/components/menu/stories/menu-item.stories.d.ts.map +0 -1
- package/dist/components/menu/stories/menu.stories.d.ts +0 -26
- package/dist/components/menu/stories/menu.stories.d.ts.map +0 -1
- package/dist/components/menu/test/menu-item.test.d.ts +0 -3
- package/dist/components/menu/test/menu-item.test.d.ts.map +0 -1
- package/dist/components/menu/test/menu.test.d.ts +0 -4
- package/dist/components/menu/test/menu.test.d.ts.map +0 -1
- package/dist/components/message/Message.d.ts +0 -59
- package/dist/components/message/Message.d.ts.map +0 -1
- package/dist/components/message/leu-message.d.ts +0 -8
- package/dist/components/message/leu-message.d.ts.map +0 -1
- package/dist/components/message/stories/message.stories.d.ts +0 -179
- package/dist/components/message/stories/message.stories.d.ts.map +0 -1
- package/dist/components/message/test/message.test.d.ts +0 -2
- package/dist/components/message/test/message.test.d.ts.map +0 -1
- package/dist/components/pagination/Pagination.d.ts +0 -72
- package/dist/components/pagination/Pagination.d.ts.map +0 -1
- package/dist/components/pagination/leu-pagination.d.ts +0 -8
- package/dist/components/pagination/leu-pagination.d.ts.map +0 -1
- package/dist/components/pagination/stories/pagination.stories.d.ts +0 -25
- package/dist/components/pagination/stories/pagination.stories.d.ts.map +0 -1
- package/dist/components/pagination/test/pagination.test.d.ts +0 -2
- package/dist/components/pagination/test/pagination.test.d.ts.map +0 -1
- package/dist/components/placeholder/Placeholder.d.ts +0 -23
- package/dist/components/placeholder/Placeholder.d.ts.map +0 -1
- package/dist/components/placeholder/leu-placeholder.d.ts +0 -8
- package/dist/components/placeholder/leu-placeholder.d.ts.map +0 -1
- package/dist/components/placeholder/stories/placeholder.stories.d.ts +0 -27
- package/dist/components/placeholder/stories/placeholder.stories.d.ts.map +0 -1
- package/dist/components/placeholder/test/placeholder.test.d.ts +0 -2
- package/dist/components/placeholder/test/placeholder.test.d.ts.map +0 -1
- package/dist/components/popup/Popup.d.ts +0 -57
- package/dist/components/popup/Popup.d.ts.map +0 -1
- package/dist/components/popup/leu-popup.d.ts +0 -8
- package/dist/components/popup/leu-popup.d.ts.map +0 -1
- package/dist/components/popup/stories/popup.stories.d.ts +0 -28
- package/dist/components/popup/stories/popup.stories.d.ts.map +0 -1
- package/dist/components/popup/test/popup.test.d.ts +0 -2
- package/dist/components/popup/test/popup.test.d.ts.map +0 -1
- package/dist/components/progress-bar/ProgressBar.d.ts +0 -25
- package/dist/components/progress-bar/ProgressBar.d.ts.map +0 -1
- package/dist/components/progress-bar/leu-progress-bar.d.ts +0 -8
- package/dist/components/progress-bar/leu-progress-bar.d.ts.map +0 -1
- package/dist/components/progress-bar/stories/progress-bar.stories.d.ts +0 -48
- package/dist/components/progress-bar/stories/progress-bar.stories.d.ts.map +0 -1
- package/dist/components/progress-bar/test/progress-bar.test.d.ts +0 -2
- package/dist/components/progress-bar/test/progress-bar.test.d.ts.map +0 -1
- package/dist/components/radio/Radio.d.ts +0 -24
- package/dist/components/radio/Radio.d.ts.map +0 -1
- package/dist/components/radio/RadioGroup.d.ts +0 -39
- package/dist/components/radio/RadioGroup.d.ts.map +0 -1
- package/dist/components/radio/leu-radio-group.d.ts +0 -8
- package/dist/components/radio/leu-radio-group.d.ts.map +0 -1
- package/dist/components/radio/leu-radio.d.ts +0 -8
- package/dist/components/radio/leu-radio.d.ts.map +0 -1
- package/dist/components/radio/stories/radio-group.stories.d.ts +0 -29
- package/dist/components/radio/stories/radio-group.stories.d.ts.map +0 -1
- package/dist/components/radio/stories/radio.stories.d.ts +0 -22
- package/dist/components/radio/stories/radio.stories.d.ts.map +0 -1
- package/dist/components/radio/test/radio-group.test.d.ts +0 -3
- package/dist/components/radio/test/radio-group.test.d.ts.map +0 -1
- package/dist/components/radio/test/radio.test.d.ts +0 -2
- package/dist/components/radio/test/radio.test.d.ts.map +0 -1
- package/dist/components/range/Range.d.ts +0 -116
- package/dist/components/range/Range.d.ts.map +0 -1
- package/dist/components/range/leu-range.d.ts +0 -8
- package/dist/components/range/leu-range.d.ts.map +0 -1
- package/dist/components/range/stories/range.stories.d.ts +0 -231
- package/dist/components/range/stories/range.stories.d.ts.map +0 -1
- package/dist/components/range/test/range.test.d.ts +0 -2
- package/dist/components/range/test/range.test.d.ts.map +0 -1
- package/dist/components/scroll-top/ScrollTop.d.ts +0 -23
- package/dist/components/scroll-top/ScrollTop.d.ts.map +0 -1
- package/dist/components/scroll-top/leu-scroll-top.d.ts +0 -8
- package/dist/components/scroll-top/leu-scroll-top.d.ts.map +0 -1
- package/dist/components/scroll-top/stories/scroll-top.stories.d.ts +0 -8
- package/dist/components/scroll-top/stories/scroll-top.stories.d.ts.map +0 -1
- package/dist/components/scroll-top/test/scroll-top.test.d.ts +0 -2
- package/dist/components/scroll-top/test/scroll-top.test.d.ts.map +0 -1
- package/dist/components/select/Select.d.ts +0 -145
- package/dist/components/select/Select.d.ts.map +0 -1
- package/dist/components/select/leu-select.d.ts +0 -8
- package/dist/components/select/leu-select.d.ts.map +0 -1
- package/dist/components/select/stories/select.stories.d.ts +0 -23
- package/dist/components/select/stories/select.stories.d.ts.map +0 -1
- package/dist/components/select/test/fixtures.d.ts +0 -2
- package/dist/components/select/test/fixtures.d.ts.map +0 -1
- package/dist/components/select/test/select.test.d.ts +0 -3
- package/dist/components/select/test/select.test.d.ts.map +0 -1
- package/dist/components/spinner/Spinner.d.ts +0 -10
- package/dist/components/spinner/Spinner.d.ts.map +0 -1
- package/dist/components/spinner/leu-spinner.d.ts +0 -8
- package/dist/components/spinner/leu-spinner.d.ts.map +0 -1
- package/dist/components/spinner/stories/spinner.stories.d.ts +0 -16
- package/dist/components/spinner/stories/spinner.stories.d.ts.map +0 -1
- package/dist/components/spinner/test/spinner.test.d.ts +0 -2
- package/dist/components/spinner/test/spinner.test.d.ts.map +0 -1
- package/dist/components/table/Table.d.ts +0 -65
- package/dist/components/table/Table.d.ts.map +0 -1
- package/dist/components/table/leu-table.d.ts +0 -8
- package/dist/components/table/leu-table.d.ts.map +0 -1
- package/dist/components/table/stories/table.stories.d.ts +0 -15
- package/dist/components/table/stories/table.stories.d.ts.map +0 -1
- package/dist/components/table/test/table.test.d.ts +0 -2
- package/dist/components/table/test/table.test.d.ts.map +0 -1
- package/dist/components/tag/Tag.d.ts +0 -13
- package/dist/components/tag/Tag.d.ts.map +0 -1
- package/dist/components/tag/leu-tag.d.ts +0 -8
- package/dist/components/tag/leu-tag.d.ts.map +0 -1
- package/dist/components/tag/stories/tag.stories.d.ts +0 -136
- package/dist/components/tag/stories/tag.stories.d.ts.map +0 -1
- package/dist/components/tag/test/tag.test.d.ts +0 -2
- package/dist/components/tag/test/tag.test.d.ts.map +0 -1
- package/dist/components/visually-hidden/VisuallyHidden.d.ts +0 -9
- package/dist/components/visually-hidden/VisuallyHidden.d.ts.map +0 -1
- package/dist/components/visually-hidden/leu-visually-hidden.d.ts +0 -8
- package/dist/components/visually-hidden/leu-visually-hidden.d.ts.map +0 -1
- package/dist/components/visually-hidden/stories/visually-hidden.stories.d.ts +0 -13
- package/dist/components/visually-hidden/stories/visually-hidden.stories.d.ts.map +0 -1
- package/dist/components/visually-hidden/test/visually-hidden.test.d.ts +0 -2
- package/dist/components/visually-hidden/test/visually-hidden.test.d.ts.map +0 -1
- package/dist/hasSlotController-Bm2tipvG.js +0 -53
- package/dist/hasSlotController.d-emXwVXWF.d.ts +0 -23
- package/dist/index.d.ts.map +0 -1
- package/dist/lib/LeuElement.d.ts +0 -8
- package/dist/lib/LeuElement.d.ts.map +0 -1
- package/dist/lib/a11y.d.ts +0 -11
- package/dist/lib/a11y.d.ts.map +0 -1
- package/dist/lib/hasSlotController.d.ts +0 -20
- package/dist/lib/hasSlotController.d.ts.map +0 -1
- package/dist/lib/styleMap.d.ts +0 -61
- package/dist/lib/styleMap.d.ts.map +0 -1
- package/dist/lib/utils.d.ts +0 -23
- package/dist/lib/utils.d.ts.map +0 -1
- package/dist/styles/style.stories.d.ts +0 -6
- package/dist/styles/style.stories.d.ts.map +0 -1
- package/dist/utils-DBGsNSJW.js +0 -33
- package/rollup.config.js +0 -94
- package/web-dev-server.config.mjs +0 -30
|
@@ -1,163 +0,0 @@
|
|
|
1
|
-
import { nothing } from "lit";
|
|
2
|
-
import { LeuElement } from "../../lib/LeuElement.js";
|
|
3
|
-
import { LeuIcon } from "../icon/Icon.js";
|
|
4
|
-
import { IconPathName } from "../icon/paths.js";
|
|
5
|
-
export declare const SIZES: Readonly<{
|
|
6
|
-
SMALL: "small";
|
|
7
|
-
REGULAR: "regular";
|
|
8
|
-
}>;
|
|
9
|
-
type InputType = "date" | "datetime-local" | "email" | "month" | "number" | "password" | "search" | "tel" | "text" | "time" | "week";
|
|
10
|
-
/**
|
|
11
|
-
* A text input element.
|
|
12
|
-
*
|
|
13
|
-
* @fires {CustomEvent} input - Dispatched when the value of the input element changes.
|
|
14
|
-
* @fires {CustomEvent} change - Dispatched when the value of the input element changes and the input element loses focus.
|
|
15
|
-
*
|
|
16
|
-
* @tagname leu-input
|
|
17
|
-
*/
|
|
18
|
-
export declare class LeuInput extends LeuElement {
|
|
19
|
-
static dependencies: {
|
|
20
|
-
"leu-icon": typeof LeuIcon;
|
|
21
|
-
};
|
|
22
|
-
static styles: import("lit").CSSResultGroup[];
|
|
23
|
-
/**
|
|
24
|
-
* @internal
|
|
25
|
-
*/
|
|
26
|
-
static shadowRootOptions: {
|
|
27
|
-
delegatesFocus: boolean;
|
|
28
|
-
mode: ShadowRootMode;
|
|
29
|
-
serializable?: boolean;
|
|
30
|
-
slotAssignment?: SlotAssignmentMode;
|
|
31
|
-
customElements?: CustomElementRegistry;
|
|
32
|
-
registry?: CustomElementRegistry;
|
|
33
|
-
};
|
|
34
|
-
/** Disables the input element. */
|
|
35
|
-
disabled: boolean;
|
|
36
|
-
/** Marks the input element as required */
|
|
37
|
-
required: boolean;
|
|
38
|
-
/** Adds a button to clear the input element */
|
|
39
|
-
clearable: boolean;
|
|
40
|
-
/** The value of the input element. */
|
|
41
|
-
value: string;
|
|
42
|
-
/** The name of the input element. */
|
|
43
|
-
name: string;
|
|
44
|
-
/** A custom error that is completely independent of the validity state. Useful for displaying server side errors. */
|
|
45
|
-
error: string;
|
|
46
|
-
/** The label of the input element */
|
|
47
|
-
label: string;
|
|
48
|
-
/** A prefix that relates to the value of the input (e.g. CHF) */
|
|
49
|
-
prefix: string;
|
|
50
|
-
/** A suffix that relates to the value of the input (e.g. mm). */
|
|
51
|
-
suffix: string;
|
|
52
|
-
/** The size of the input element */
|
|
53
|
-
size: "small" | "regular";
|
|
54
|
-
/** The icon that is displayed at the end of the input element */
|
|
55
|
-
icon: IconPathName;
|
|
56
|
-
/** A regular expression that the value is checked against. */
|
|
57
|
-
pattern: string;
|
|
58
|
-
/** The type of the input element. */
|
|
59
|
-
type: InputType;
|
|
60
|
-
/** The minimum value of the input element. */
|
|
61
|
-
min: number;
|
|
62
|
-
/** The maximum value of the input element. */
|
|
63
|
-
max: number;
|
|
64
|
-
/** The step value of the input element. */
|
|
65
|
-
step: number;
|
|
66
|
-
/** The maximum length of the input element. */
|
|
67
|
-
maxlength: number;
|
|
68
|
-
/** The minimum length of the input element. */
|
|
69
|
-
minlength: number;
|
|
70
|
-
/** Custom validation messages. The key is the name of the validity state and the value is the message. */
|
|
71
|
-
validationMessages: Record<string, string>;
|
|
72
|
-
/** Disables the browser's validation. */
|
|
73
|
-
novalidate: boolean;
|
|
74
|
-
_validity: ValidityState | null;
|
|
75
|
-
static resolveErrorMessage(message: any, refernceValue: any): any;
|
|
76
|
-
protected _inputRef: import("lit-html/directives/ref.js").Ref<HTMLInputElement>;
|
|
77
|
-
get valueAsNumber(): number;
|
|
78
|
-
/**
|
|
79
|
-
* Method for handling the click event of the wrapper element.
|
|
80
|
-
* Redirect every click on the wrapper to the input element.
|
|
81
|
-
* This is only necessary for click events because the wrapper element
|
|
82
|
-
* looks like the input element. But the actual input field does not
|
|
83
|
-
* completely fill the wrapper element. Keyboard events don't need to be
|
|
84
|
-
* handled because the actual input element is focusable.
|
|
85
|
-
*/
|
|
86
|
-
protected handleWrapperClick(event: MouseEvent | PointerEvent): void;
|
|
87
|
-
/**
|
|
88
|
-
* Method for handling the blur event of the input element.
|
|
89
|
-
* Checks validity of the input element and sets the validity state.
|
|
90
|
-
*/
|
|
91
|
-
protected handleBlur(event: FocusEvent & {
|
|
92
|
-
target: HTMLInputElement;
|
|
93
|
-
}): void;
|
|
94
|
-
/**
|
|
95
|
-
* Method for handling the invalid event of the input element.
|
|
96
|
-
* Sets the validity state.
|
|
97
|
-
*/
|
|
98
|
-
protected handleInvalid(event: Event & {
|
|
99
|
-
target: HTMLInputElement;
|
|
100
|
-
}): void;
|
|
101
|
-
/**
|
|
102
|
-
* Method for handling the change event of the input element.
|
|
103
|
-
* Sets the value property and dispatches a change event so that
|
|
104
|
-
* the event can be handled outside the shadow DOM.
|
|
105
|
-
* @fires {CustomEvent} change
|
|
106
|
-
*/
|
|
107
|
-
protected handleChange(event: Event & {
|
|
108
|
-
target: HTMLInputElement;
|
|
109
|
-
}): void;
|
|
110
|
-
/**
|
|
111
|
-
* Method for handling the input event of the input element.
|
|
112
|
-
* Sets the value property and dispatches an input event so that
|
|
113
|
-
* the event can be handled outside the shadow DOM.
|
|
114
|
-
*/
|
|
115
|
-
protected handleInput(event: Event & {
|
|
116
|
-
target: HTMLInputElement;
|
|
117
|
-
}): void;
|
|
118
|
-
/**
|
|
119
|
-
* Method for clearing the input element.
|
|
120
|
-
* Sets the value property to an empty string and dispatches
|
|
121
|
-
* an input and a change event.
|
|
122
|
-
* @fires {CustomEvent} input
|
|
123
|
-
* @fires {CustomEvent} change
|
|
124
|
-
*/
|
|
125
|
-
protected clear(): void;
|
|
126
|
-
/**
|
|
127
|
-
* Merge custom and default validation messages.
|
|
128
|
-
* A validation message can be a function or a string.
|
|
129
|
-
* If it s a function, the function is called with the corresponding
|
|
130
|
-
* attribute value as argument.
|
|
131
|
-
* e.g.
|
|
132
|
-
* `tooLong(this.maxlength)`
|
|
133
|
-
* This way the framework user can create reasonable validation messages
|
|
134
|
-
*/
|
|
135
|
-
protected getValidationMessages(): {
|
|
136
|
-
badInput: string;
|
|
137
|
-
patternMismatch: string;
|
|
138
|
-
rangeOverflow: (max: any) => string;
|
|
139
|
-
rangeUnderflow: (min: any) => string;
|
|
140
|
-
stepMismatch: string;
|
|
141
|
-
tooLong: (maxlength: any) => string;
|
|
142
|
-
tooShort: (minlength: any) => string;
|
|
143
|
-
typeMismatch: string;
|
|
144
|
-
valueMissing: string;
|
|
145
|
-
};
|
|
146
|
-
isInvalid(): boolean;
|
|
147
|
-
/**
|
|
148
|
-
* Check input validation
|
|
149
|
-
*/
|
|
150
|
-
checkValidity(): boolean;
|
|
151
|
-
/**
|
|
152
|
-
* Creates an error list with an item for the given validity state.
|
|
153
|
-
*/
|
|
154
|
-
protected renderErrorMessages(): typeof nothing | import("lit-html").TemplateResult<1>;
|
|
155
|
-
/**
|
|
156
|
-
* Determines the content that is displayed after the input element.
|
|
157
|
-
* This can be either an icon, a clear button or an error indicator icon.
|
|
158
|
-
*/
|
|
159
|
-
protected renderAfterContent(): typeof nothing | import("lit-html").TemplateResult<1>;
|
|
160
|
-
render(): import("lit-html").TemplateResult<1>;
|
|
161
|
-
}
|
|
162
|
-
export {};
|
|
163
|
-
//# sourceMappingURL=Input.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Input.d.ts","sourceRoot":"","sources":["../../../src/components/input/Input.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,OAAO,EAAE,MAAM,KAAK,CAAA;AAOnC,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAA;AACpD,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAA;AAGzC,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAA;AAE/C,eAAO,MAAM,KAAK;;;EAGhB,CAAA;AAEF,KAAK,SAAS,GACV,MAAM,GACN,gBAAgB,GAChB,OAAO,GACP,OAAO,GACP,QAAQ,GACR,UAAU,GACV,QAAQ,GACR,KAAK,GACL,MAAM,GACN,MAAM,GACN,MAAM,CAAA;AAuBV;;;;;;;GAOG;AACH,qBAAa,QAAS,SAAQ,UAAU;IACtC,MAAM,CAAC,YAAY;;MAElB;IAED,MAAM,CAAC,MAAM,iCAA8B;IAE3C;;OAEG;IACH,MAAM,CAAC,iBAAiB;;;;;;;MAGvB;IAED,kCAAkC;IAElC,QAAQ,EAAE,OAAO,CAAQ;IAEzB,0CAA0C;IAE1C,QAAQ,EAAE,OAAO,CAAQ;IAEzB,+CAA+C;IAE/C,SAAS,EAAE,OAAO,CAAQ;IAE1B,sCAAsC;IAEtC,KAAK,EAAE,MAAM,CAAK;IAElB,qCAAqC;IAErC,IAAI,EAAE,MAAM,CAAK;IAEjB,qHAAqH;IAErH,KAAK,EAAE,MAAM,CAAK;IAElB,qCAAqC;IAErC,KAAK,EAAE,MAAM,CAAK;IAElB,kEAAkE;IAElE,MAAM,EAAE,MAAM,CAAA;IAEd,iEAAiE;IAEjE,MAAM,EAAE,MAAM,CAAA;IAEd,oCAAoC;IAEpC,IAAI,EAAE,OAAO,GAAG,SAAS,CAAY;IAErC,iEAAiE;IAEjE,IAAI,EAAE,YAAY,CAAA;IAElB,8DAA8D;IAE9D,OAAO,EAAE,MAAM,CAAA;IAEf,qCAAqC;IAErC,IAAI,EAAE,SAAS,CAAS;IAExB,8CAA8C;IAE9C,GAAG,EAAE,MAAM,CAAA;IAEX,8CAA8C;IAE9C,GAAG,EAAE,MAAM,CAAA;IAEX,2CAA2C;IAE3C,IAAI,EAAE,MAAM,CAAA;IAEZ,+CAA+C;IAE/C,SAAS,EAAE,MAAM,CAAA;IAEjB,+CAA+C;IAE/C,SAAS,EAAE,MAAM,CAAA;IAEjB,0GAA0G;IAE1G,kBAAkB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAK;IAE/C,yCAAyC;IAEzC,UAAU,EAAE,OAAO,CAAQ;IAG3B,SAAS,EAAE,aAAa,GAAG,IAAI,CAAO;IAEtC,MAAM,CAAC,mBAAmB,CAAC,OAAO,KAAA,EAAE,aAAa,KAAA;IAQjD,SAAS,CAAC,SAAS,6DAAgC;IAEnD,IAAI,aAAa,WAKhB;IAED;;;;;;;OAOG;IACH,SAAS,CAAC,kBAAkB,CAAC,KAAK,EAAE,UAAU,GAAG,YAAY;IAM7D;;;OAGG;IACH,SAAS,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,GAAG;QAAE,MAAM,EAAE,gBAAgB,CAAA;KAAE;IAQrE;;;OAGG;IACH,SAAS,CAAC,aAAa,CAAC,KAAK,EAAE,KAAK,GAAG;QAAE,MAAM,EAAE,gBAAgB,CAAA;KAAE;IAInE;;;;;OAKG;IACH,SAAS,CAAC,YAAY,CAAC,KAAK,EAAE,KAAK,GAAG;QAAE,MAAM,EAAE,gBAAgB,CAAA;KAAE;IASlE;;;;OAIG;IACH,SAAS,CAAC,WAAW,CAAC,KAAK,EAAE,KAAK,GAAG;QAAE,MAAM,EAAE,gBAAgB,CAAA;KAAE;IAUjE;;;;;;OAMG;IACH,SAAS,CAAC,KAAK;IAaf;;;;;;;;OAQG;IACH,SAAS,CAAC,qBAAqB;;;;;;;;;;;IA6B/B,SAAS;IAUT;;OAEG;IACH,aAAa;IAIb;;OAEG;IACH,SAAS,CAAC,mBAAmB;IAyB7B;;;OAGG;IACH,SAAS,CAAC,kBAAkB;IA2B5B,MAAM;CAiDP"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"leu-input.d.ts","sourceRoot":"","sources":["../../../src/components/input/leu-input.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AAErC,OAAO,EAAE,QAAQ,EAAE,CAAA;AAInB,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,WAAW,EAAE,QAAQ,CAAA;KACtB;CACF"}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import "../leu-input.js";
|
|
2
|
-
declare const _default: {
|
|
3
|
-
title: string;
|
|
4
|
-
component: string;
|
|
5
|
-
argTypes: {
|
|
6
|
-
size: {
|
|
7
|
-
control: {
|
|
8
|
-
type: string;
|
|
9
|
-
};
|
|
10
|
-
options: ("small" | "regular")[];
|
|
11
|
-
};
|
|
12
|
-
icon: {
|
|
13
|
-
control: string;
|
|
14
|
-
options: string[];
|
|
15
|
-
};
|
|
16
|
-
};
|
|
17
|
-
parameters: {
|
|
18
|
-
design: {
|
|
19
|
-
type: string;
|
|
20
|
-
url: string;
|
|
21
|
-
};
|
|
22
|
-
};
|
|
23
|
-
};
|
|
24
|
-
export default _default;
|
|
25
|
-
export declare const Regular: any;
|
|
26
|
-
export declare const Filled: any;
|
|
27
|
-
export declare const PrefixedNumber: any;
|
|
28
|
-
export declare const SuffixedNumber: any;
|
|
29
|
-
export declare const Disabled: any;
|
|
30
|
-
export declare const FilledDisabled: any;
|
|
31
|
-
export declare const Clearable: any;
|
|
32
|
-
export declare const Search: any;
|
|
33
|
-
export declare const CustomError: any;
|
|
34
|
-
export declare const Step: any;
|
|
35
|
-
//# sourceMappingURL=input.stories.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"input.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/input/stories/input.stories.ts"],"names":[],"mappings":"AAGA,OAAO,iBAAiB,CAAA;;;;;;;;;;;;;;;;;;;;;;;AAKxB,wBAkBC;AAiDD,eAAO,MAAM,OAAO,KAAoB,CAAA;AAaxC,eAAO,MAAM,MAAM,KAAoB,CAAA;AAavC,eAAO,MAAM,cAAc,KAAoB,CAAA;AAe/C,eAAO,MAAM,cAAc,KAAoB,CAAA;AAiB/C,eAAO,MAAM,QAAQ,KAAoB,CAAA;AAMzC,eAAO,MAAM,cAAc,KAAoB,CAAA;AAO/C,eAAO,MAAM,SAAS,KAAoB,CAAA;AAc1C,eAAO,MAAM,MAAM,KAAoB,CAAA;AAiBvC,eAAO,MAAM,WAAW,KAAoB,CAAA;AAgB5C,eAAO,MAAM,IAAI,KAAoB,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"input.test.d.ts","sourceRoot":"","sources":["../../../../src/components/input/test/input.test.ts"],"names":[],"mappings":"AAMA,OAAO,iBAAiB,CAAA"}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { PropertyValues } from "lit";
|
|
2
|
-
import { LeuElement } from "../../lib/LeuElement.js";
|
|
3
|
-
import { LeuMenuItem } from "./MenuItem.js";
|
|
4
|
-
/**
|
|
5
|
-
* @typedef {'single' | 'multiple' | 'none'} SelectsType
|
|
6
|
-
*/
|
|
7
|
-
/**
|
|
8
|
-
* @tagname leu-menu
|
|
9
|
-
* @property {SelectsType} selects - This has only an effect when the role is 'menu'. It defines which role the menu items will get. Default is 'none'.
|
|
10
|
-
*/
|
|
11
|
-
export declare class LeuMenu extends LeuElement {
|
|
12
|
-
static styles: import("lit").CSSResultGroup[];
|
|
13
|
-
static shadowRootOptions: {
|
|
14
|
-
delegatesFocus: boolean;
|
|
15
|
-
mode: ShadowRootMode;
|
|
16
|
-
serializable?: boolean;
|
|
17
|
-
slotAssignment?: SlotAssignmentMode;
|
|
18
|
-
customElements?: CustomElementRegistry;
|
|
19
|
-
registry?: CustomElementRegistry;
|
|
20
|
-
};
|
|
21
|
-
selects: "single" | "multiple" | "none";
|
|
22
|
-
connectedCallback(): void;
|
|
23
|
-
disconnectedCallback(): void;
|
|
24
|
-
_handleSlotChange(): void;
|
|
25
|
-
_setMenuItemRoles(): void;
|
|
26
|
-
/**
|
|
27
|
-
*
|
|
28
|
-
* @returns {import("./MenuItem").LeuMenuItem[]}
|
|
29
|
-
*/
|
|
30
|
-
getMenuItems(): LeuMenuItem[];
|
|
31
|
-
getVisibleMenuItems(): LeuMenuItem[];
|
|
32
|
-
_handleKeyDown(event: any): void;
|
|
33
|
-
setCurrentItem(index: any): any;
|
|
34
|
-
focusItem(index: any): void;
|
|
35
|
-
firstUpdated(): void;
|
|
36
|
-
updated(changedProperties: PropertyValues<this>): void;
|
|
37
|
-
render(): import("lit-html").TemplateResult<1>;
|
|
38
|
-
}
|
|
39
|
-
//# sourceMappingURL=Menu.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Menu.d.ts","sourceRoot":"","sources":["../../../src/components/menu/Menu.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,cAAc,EAAE,MAAM,KAAK,CAAA;AAG1C,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAA;AAEpD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAI3C;;GAEG;AAEH;;;GAGG;AACH,qBAAa,OAAQ,SAAQ,UAAU;IACrC,MAAM,CAAC,MAAM,iCAA8B;IAE3C,MAAM,CAAC,iBAAiB;;;;;;;MAGvB;IAGD,OAAO,EAAE,QAAQ,GAAG,UAAU,GAAG,MAAM,CAAS;IAEhD,iBAAiB;IAUjB,oBAAoB;IAKpB,iBAAiB;IAKjB,iBAAiB;IAuBjB;;;OAGG;IACH,YAAY;IAOZ,mBAAmB;IAInB,cAAc,CAAC,KAAK,KAAA;IAqBpB,cAAc,CAAC,KAAK,KAAA;IAkBpB,SAAS,CAAC,KAAK,KAAA;IAMf,YAAY;IAIZ,OAAO,CAAC,iBAAiB,EAAE,cAAc,CAAC,IAAI,CAAC;IAM/C,MAAM;CAOP"}
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import { nothing, TemplateResult } from "lit";
|
|
2
|
-
import { LeuElement } from "../../lib/LeuElement.js";
|
|
3
|
-
import { LeuIcon } from "../icon/Icon.js";
|
|
4
|
-
type MenuItemRole = "menuitem" | "menuitemcheckbox" | "menuitemradio" | "option" | "none";
|
|
5
|
-
/**
|
|
6
|
-
* @tagname leu-menu-item
|
|
7
|
-
* @slot - The label of the menu item
|
|
8
|
-
*/
|
|
9
|
-
export declare class LeuMenuItem extends LeuElement {
|
|
10
|
-
static dependencies: {
|
|
11
|
-
"leu-icon": typeof LeuIcon;
|
|
12
|
-
};
|
|
13
|
-
static styles: import("lit").CSSResultGroup[];
|
|
14
|
-
/**
|
|
15
|
-
* @internal
|
|
16
|
-
*/
|
|
17
|
-
static shadowRootOptions: {
|
|
18
|
-
delegatesFocus: boolean;
|
|
19
|
-
mode: ShadowRootMode;
|
|
20
|
-
serializable?: boolean;
|
|
21
|
-
slotAssignment?: SlotAssignmentMode;
|
|
22
|
-
customElements?: CustomElementRegistry;
|
|
23
|
-
registry?: CustomElementRegistry;
|
|
24
|
-
};
|
|
25
|
-
/** Defines if the item is selected or checked */
|
|
26
|
-
active: boolean;
|
|
27
|
-
/** If the item is part of a multiple selection. Renders a checkmark before the label when active */
|
|
28
|
-
multipleSelection: boolean;
|
|
29
|
-
/** Disables the underlying button or link */
|
|
30
|
-
disabled: boolean;
|
|
31
|
-
/** If the item should be focusable. Will be reflected as `tabindex` to the underlying button or link */
|
|
32
|
-
tabbable: boolean;
|
|
33
|
-
/** The href of the underlying link */
|
|
34
|
-
href: string;
|
|
35
|
-
/** The value of the item. It must not contain commas. See `getValue()` */
|
|
36
|
-
value: string;
|
|
37
|
-
/** The role of the item. This will be reflected as `role` to the underlying button or link. Default is `'menuitem'.` */
|
|
38
|
-
componentRole: MenuItemRole;
|
|
39
|
-
connectedCallback(): void;
|
|
40
|
-
disconnectedCallback(): void;
|
|
41
|
-
protected _handleClick(event: MouseEvent): void;
|
|
42
|
-
/**
|
|
43
|
-
* Returns the value of the item. If `value` is not set, it will return the inner text
|
|
44
|
-
*/
|
|
45
|
-
getValue(): string;
|
|
46
|
-
protected _getAria(): {
|
|
47
|
-
disabled: boolean;
|
|
48
|
-
} | {
|
|
49
|
-
checked: boolean;
|
|
50
|
-
selected: boolean;
|
|
51
|
-
role: "option" | "menuitem" | "menuitemcheckbox" | "menuitemradio";
|
|
52
|
-
disabled: boolean;
|
|
53
|
-
};
|
|
54
|
-
protected _getTabIndex(): 0 | -1;
|
|
55
|
-
protected _renderLink(content: TemplateResult): TemplateResult<1>;
|
|
56
|
-
protected _renderButton(content: TemplateResult): TemplateResult<1>;
|
|
57
|
-
_renderBeforeSlotDefault(): typeof nothing | TemplateResult<1>;
|
|
58
|
-
render(): TemplateResult<1>;
|
|
59
|
-
}
|
|
60
|
-
export {};
|
|
61
|
-
//# sourceMappingURL=MenuItem.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"MenuItem.d.ts","sourceRoot":"","sources":["../../../src/components/menu/MenuItem.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,OAAO,EAAE,cAAc,EAAE,MAAM,KAAK,CAAA;AAInD,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAA;AACpD,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAA;AAIzC,KAAK,YAAY,GACb,UAAU,GACV,kBAAkB,GAClB,eAAe,GACf,QAAQ,GACR,MAAM,CAAA;AAEV;;;GAGG;AACH,qBAAa,WAAY,SAAQ,UAAU;IACzC,MAAM,CAAC,YAAY;;MAElB;IAED,MAAM,CAAC,MAAM,iCAA8B;IAE3C;;OAEG;IACH,MAAM,CAAC,iBAAiB;;;;;;;MAGvB;IAED,iDAAiD;IAEjD,MAAM,EAAE,OAAO,CAAQ;IAEvB,oGAAoG;IAEpG,iBAAiB,EAAE,OAAO,CAAQ;IAElC,6CAA6C;IAE7C,QAAQ,EAAE,OAAO,CAAQ;IAEzB,wGAAwG;IAExG,QAAQ,EAAE,OAAO,CAAA;IAEjB,sCAAsC;IAEtC,IAAI,EAAE,MAAM,CAAA;IAEZ,0EAA0E;IAE1E,KAAK,EAAE,MAAM,CAAA;IAEb,wHAAwH;IAExH,aAAa,EAAE,YAAY,CAAa;IAExC,iBAAiB;IAKjB,oBAAoB;IAKpB,SAAS,CAAC,YAAY,CAAC,KAAK,EAAE,UAAU;IAOxC;;OAEG;IACH,QAAQ;IAIR,SAAS,CAAC,QAAQ;;;;;;;;IAqBlB,SAAS,CAAC,YAAY;IAQtB,SAAS,CAAC,WAAW,CAAC,OAAO,EAAE,cAAc;IAe7C,SAAS,CAAC,aAAa,CAAC,OAAO,EAAE,cAAc;IAe/C,wBAAwB;IAUxB,MAAM;CAWP"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"leu-menu-item.d.ts","sourceRoot":"","sources":["../../../src/components/menu/leu-menu-item.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAE3C,OAAO,EAAE,WAAW,EAAE,CAAA;AAItB,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,eAAe,EAAE,WAAW,CAAA;KAC7B;CACF"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"leu-menu.d.ts","sourceRoot":"","sources":["../../../src/components/menu/leu-menu.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AAEnC,OAAO,EAAE,OAAO,EAAE,CAAA;AAIlB,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,UAAU,EAAE,OAAO,CAAA;KACpB;CACF"}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import "../leu-menu-item.js";
|
|
2
|
-
import "../../icon/leu-icon.js";
|
|
3
|
-
declare const _default: {
|
|
4
|
-
title: string;
|
|
5
|
-
component: string;
|
|
6
|
-
args: {
|
|
7
|
-
label: string;
|
|
8
|
-
};
|
|
9
|
-
parameters: {
|
|
10
|
-
design: {
|
|
11
|
-
type: string;
|
|
12
|
-
url: string;
|
|
13
|
-
};
|
|
14
|
-
};
|
|
15
|
-
};
|
|
16
|
-
export default _default;
|
|
17
|
-
export declare const Regular: any;
|
|
18
|
-
export declare const Active: any;
|
|
19
|
-
export declare const IconBefore: any;
|
|
20
|
-
export declare const IconAfterLink: any;
|
|
21
|
-
export declare const IconAndTextLabel: any;
|
|
22
|
-
export declare const IconPlaceholder: any;
|
|
23
|
-
export declare const MultipleSelection: any;
|
|
24
|
-
//# sourceMappingURL=menu-item.stories.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"menu-item.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/menu/stories/menu-item.stories.ts"],"names":[],"mappings":"AAGA,OAAO,qBAAqB,CAAA;AAC5B,OAAO,wBAAwB,CAAA;;;;;;;;;;;;;;AAO/B,wBAYC;AA2BD,eAAO,MAAM,OAAO,KAAoB,CAAA;AAExC,eAAO,MAAM,MAAM,KAAoB,CAAA;AAKvC,eAAO,MAAM,UAAU,KAAoB,CAAA;AAK3C,eAAO,MAAM,aAAa,KAAoB,CAAA;AAM9C,eAAO,MAAM,gBAAgB,KAAoB,CAAA;AAMjD,eAAO,MAAM,eAAe,KAAoB,CAAA;AAKhD,eAAO,MAAM,iBAAiB,KAAoB,CAAA"}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import "../leu-menu.js";
|
|
2
|
-
import "../leu-menu-item.js";
|
|
3
|
-
import "../../icon/leu-icon.js";
|
|
4
|
-
declare const _default: {
|
|
5
|
-
title: string;
|
|
6
|
-
component: string;
|
|
7
|
-
parameters: {
|
|
8
|
-
design: {
|
|
9
|
-
type: string;
|
|
10
|
-
url: string;
|
|
11
|
-
};
|
|
12
|
-
};
|
|
13
|
-
argTypes: {
|
|
14
|
-
selects: {
|
|
15
|
-
control: string;
|
|
16
|
-
options: string[];
|
|
17
|
-
};
|
|
18
|
-
role: {
|
|
19
|
-
control: string;
|
|
20
|
-
options: string[];
|
|
21
|
-
};
|
|
22
|
-
};
|
|
23
|
-
};
|
|
24
|
-
export default _default;
|
|
25
|
-
export declare const Menu: any;
|
|
26
|
-
//# sourceMappingURL=menu.stories.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"menu.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/menu/stories/menu.stories.ts"],"names":[],"mappings":"AACA,OAAO,gBAAgB,CAAA;AACvB,OAAO,qBAAqB,CAAA;AAC5B,OAAO,wBAAwB,CAAA;;;;;;;;;;;;;;;;;;;;;AAG/B,wBAmBC;AA4BD,eAAO,MAAM,IAAI,KAAoB,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"menu-item.test.d.ts","sourceRoot":"","sources":["../../../../src/components/menu/test/menu-item.test.ts"],"names":[],"mappings":"AAKA,OAAO,gBAAgB,CAAA;AACvB,OAAO,qBAAqB,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"menu.test.d.ts","sourceRoot":"","sources":["../../../../src/components/menu/test/menu.test.ts"],"names":[],"mappings":"AAKA,OAAO,gBAAgB,CAAA;AACvB,OAAO,qBAAqB,CAAA;AAC5B,OAAO,wBAAwB,CAAA"}
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { LeuElement } from "../../lib/LeuElement.js";
|
|
2
|
-
import { LeuIcon } from "../icon/Icon.js";
|
|
3
|
-
/**
|
|
4
|
-
* @tagname leu-message
|
|
5
|
-
* @cssprop --leu-message-accent-color - Sets the color of the message. According to the design system, it is only allowd for `info`
|
|
6
|
-
* @slot [default] - The content of the message. The title of the message should marked up with a `<strong>` tag.
|
|
7
|
-
* @slot cta - A call to action button that is only allowed for `size=large`
|
|
8
|
-
* @fires leu:remove - Fired when the close button is clicked.
|
|
9
|
-
*/
|
|
10
|
-
export declare class LeuMessage extends LeuElement {
|
|
11
|
-
static styles: import("lit").CSSResultGroup[];
|
|
12
|
-
/**
|
|
13
|
-
* @internal
|
|
14
|
-
*/
|
|
15
|
-
static shadowRootOptions: {
|
|
16
|
-
delegatesFocus: boolean;
|
|
17
|
-
mode: ShadowRootMode;
|
|
18
|
-
serializable?: boolean;
|
|
19
|
-
slotAssignment?: SlotAssignmentMode;
|
|
20
|
-
customElements?: CustomElementRegistry;
|
|
21
|
-
registry?: CustomElementRegistry;
|
|
22
|
-
};
|
|
23
|
-
/**
|
|
24
|
-
* @internal
|
|
25
|
-
*/
|
|
26
|
-
static dependencies: {
|
|
27
|
-
"leu-icon": typeof LeuIcon;
|
|
28
|
-
};
|
|
29
|
-
/**
|
|
30
|
-
* @internal
|
|
31
|
-
*/
|
|
32
|
-
static iconToTypeMap: {
|
|
33
|
-
info: string;
|
|
34
|
-
error: string;
|
|
35
|
-
success: string;
|
|
36
|
-
warning: string;
|
|
37
|
-
};
|
|
38
|
-
/**
|
|
39
|
-
* The type of the message. `error` and `success` will be displayed as filled boxes.
|
|
40
|
-
*/
|
|
41
|
-
type: "error" | "success" | "info" | "warning";
|
|
42
|
-
/**
|
|
43
|
-
* The size of the message. A call to action button is only allowed for `large` messages.
|
|
44
|
-
*/
|
|
45
|
-
size: "regular" | "large";
|
|
46
|
-
/**
|
|
47
|
-
* Wheter the message is removable or not. The component will not remove itself when the close button is clicked.
|
|
48
|
-
*/
|
|
49
|
-
removable: boolean;
|
|
50
|
-
/**
|
|
51
|
-
* Wheter the message is used as a popup or not. This will add a drop shadow but will not position the message absolutely.
|
|
52
|
-
*/
|
|
53
|
-
popup: boolean;
|
|
54
|
-
private hasSlotController;
|
|
55
|
-
protected renderIcon(): import("lit-html").TemplateResult<1>;
|
|
56
|
-
protected handleRemove(): void;
|
|
57
|
-
render(): import("lit-html").TemplateResult<1>;
|
|
58
|
-
}
|
|
59
|
-
//# sourceMappingURL=Message.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Message.d.ts","sourceRoot":"","sources":["../../../src/components/message/Message.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAA;AAGpD,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAA;AAGzC;;;;;;GAMG;AACH,qBAAa,UAAW,SAAQ,UAAU;IACxC,MAAM,CAAC,MAAM,iCAA8B;IAE3C;;OAEG;IACH,MAAM,CAAC,iBAAiB;;;;;;;MAGvB;IAED;;OAEG;IACH,MAAM,CAAC,YAAY;;MAElB;IAED;;OAEG;IACH,MAAM,CAAC,aAAa;;;;;MAKnB;IAED;;OAEG;IAEH,IAAI,EAAE,OAAO,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,CAAY;IAE1D;;OAEG;IAEH,IAAI,EAAE,SAAS,GAAG,OAAO,CAAY;IAErC;;OAEG;IAEH,SAAS,EAAE,OAAO,CAAQ;IAE1B;;OAEG;IAEH,KAAK,EAAE,OAAO,CAAQ;IAEtB,OAAO,CAAC,iBAAiB,CAAuC;IAEhE,SAAS,CAAC,UAAU;IAMpB,SAAS,CAAC,YAAY;IAStB,MAAM;CA+BP"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"leu-message.d.ts","sourceRoot":"","sources":["../../../src/components/message/leu-message.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAEzC,OAAO,EAAE,UAAU,EAAE,CAAA;AAIrB,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,aAAa,EAAE,UAAU,CAAA;KAC1B;CACF"}
|