@statistikzh/leu 0.26.0 → 0.28.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 +1 -1
- package/.storybook/preview.ts +6 -4
- package/.storybook/static/global.css +5 -0
- package/CHANGELOG.md +44 -0
- package/dist/{Accordion-B04QkmHz.js → Accordion-D9kLsiBW.js} +1 -1
- package/dist/Accordion.d.ts +1 -1
- package/dist/Accordion.js +2 -2
- package/dist/{Button-BgNUxmo_.d.ts → Button-DcuvEVkC.d.ts} +14 -12
- package/dist/{Button-BkhqVjug.js → Button-DyNVOHCd.js} +90 -82
- package/dist/Button.d.ts +1 -1
- package/dist/Button.js +4 -4
- package/dist/{ButtonGroup-B8U9fDvM.js → ButtonGroup-MEh4vb5a.js} +2 -2
- package/dist/ButtonGroup.d.ts +1 -1
- package/dist/ButtonGroup.js +5 -5
- package/dist/{ChartWrapper-CSMFwz9e.js → ChartWrapper-DAl91BIN.js} +2 -2
- package/dist/ChartWrapper.d.ts +3 -3
- package/dist/ChartWrapper.js +3 -3
- package/dist/{Checkbox-Dd1QLpfn.js → Checkbox-CGGyUW9U.js} +2 -2
- package/dist/Checkbox.d.ts +3 -3
- package/dist/Checkbox.js +3 -3
- package/dist/{CheckboxGroup-Bz2eWEFL.js → CheckboxGroup-DXt5iMdj.js} +2 -2
- package/dist/CheckboxGroup.d.ts +1 -1
- package/dist/CheckboxGroup.js +4 -4
- package/dist/{Chip-XAQIIsXq.js → Chip-BGs71WGH.js} +1 -1
- package/dist/{Chip-DLKM9P7v.d.ts → Chip-DVGjEPJE.d.ts} +1 -1
- package/dist/Chip.d.ts +1 -1
- package/dist/Chip.js +2 -2
- package/dist/{ChipGroup-Ta8Ht4jc.d.ts → ChipGroup-BK5BYM0X.d.ts} +2 -2
- package/dist/{ChipGroup-DLqfK2kn.js → ChipGroup-BcGyusP-.js} +1 -1
- package/dist/ChipGroup.d.ts +1 -1
- package/dist/ChipGroup.js +3 -3
- package/dist/{ChipLink-BAxyQO2M.d.ts → ChipLink-BdG2o-nk.d.ts} +1 -1
- package/dist/ChipLink.d.ts +1 -1
- package/dist/ChipLink.js +2 -2
- package/dist/{ChipRemovable-DBjwt0CH.d.ts → ChipRemovable-CCwSQTAL.d.ts} +2 -2
- package/dist/ChipRemovable.d.ts +1 -1
- package/dist/ChipRemovable.js +3 -3
- package/dist/{ChipSelectable-CMJNcE4U.d.ts → ChipSelectable-BQ3VLVi5.d.ts} +1 -1
- package/dist/ChipSelectable.d.ts +1 -1
- package/dist/ChipSelectable.js +2 -2
- package/dist/{Dialog-DHuXR_oo.js → Dialog-BzuyL1U3.js} +2 -2
- package/dist/Dialog.d.ts +3 -3
- package/dist/Dialog.js +3 -3
- package/dist/{Dropdown-DtFTePbc.js → Dropdown-plyBTM15.js} +5 -5
- package/dist/Dropdown.d.ts +6 -6
- package/dist/Dropdown.js +8 -8
- package/dist/{FileInput-b8sbLDPI.js → FileInput-BT3Fe-0J.js} +22 -7
- package/dist/FileInput.d.ts +16 -5
- package/dist/FileInput.js +6 -6
- package/dist/{Icon-Op80LrrO.d.ts → Icon-CUfh3eb3.d.ts} +1 -1
- package/dist/{Icon-C_yYuynf.js → Icon-D83qesg5.js} +1 -1
- package/dist/Icon.d.ts +1 -1
- package/dist/Icon.js +2 -2
- package/dist/{Input-DEOVocTa.js → Input-D7zS50oz.js} +32 -11
- package/dist/{Input-D2THgo7c.d.ts → Input-fEiQvGDF.d.ts} +9 -5
- package/dist/Input.d.ts +1 -1
- package/dist/Input.js +3 -3
- package/dist/{LeuElement-BeFrgKes.js → LeuElement-DQI8cqZV.js} +1 -1
- package/dist/{Menu-BeqqtCw6.js → Menu-DRU1LiMM.js} +2 -2
- package/dist/{Menu-CQdx1ef3.d.ts → Menu-Z2b7dsB5.d.ts} +2 -2
- package/dist/Menu.d.ts +1 -1
- package/dist/Menu.js +4 -4
- package/dist/{MenuItem-DVg8-1Bq.js → MenuItem-DCttylRO.js} +2 -2
- package/dist/{MenuItem-QcgnRk_7.d.ts → MenuItem-LY4TRIho.d.ts} +2 -2
- package/dist/MenuItem.d.ts +1 -1
- package/dist/MenuItem.js +3 -3
- package/dist/{Message-BhknWvAF.js → Message-0NxnKEqw.js} +2 -2
- package/dist/Message.d.ts +2 -2
- package/dist/Message.js +3 -3
- package/dist/{Pagination-CqkHh-Vd.d.ts → Pagination-9eZ8WMvR.d.ts} +4 -4
- package/dist/{Pagination-DJI5MIi_.js → Pagination-CIy7YvWE.js} +4 -4
- package/dist/Pagination.d.ts +1 -1
- package/dist/Pagination.js +6 -6
- package/dist/{Placeholder-BJybFwSg.js → Placeholder-Dol_X5Hp.js} +1 -1
- package/dist/Placeholder.d.ts +1 -1
- package/dist/Placeholder.js +2 -2
- package/dist/{Popup-Btgm2a3D.d.ts → Popup-B5iDSLIO.d.ts} +1 -1
- package/dist/{Popup-DNlm_9AA.js → Popup-nJrJHGSy.js} +1 -1
- package/dist/Popup.d.ts +1 -1
- package/dist/Popup.js +2 -2
- package/dist/{ProgressBar-B0wYj1KF.js → ProgressBar-Dmq9veqU.js} +1 -1
- package/dist/ProgressBar.d.ts +1 -1
- package/dist/ProgressBar.js +2 -2
- package/dist/{Radio-DMCL8c4D.js → Radio-W5ck_IJI.js} +1 -1
- package/dist/Radio.d.ts +1 -1
- package/dist/Radio.js +2 -2
- package/dist/{RadioGroup-CM6IyBlq.js → RadioGroup-De5x2YCO.js} +2 -2
- package/dist/RadioGroup.d.ts +1 -1
- package/dist/RadioGroup.js +3 -3
- package/dist/{Range-B72rtfln.js → Range-NCdfDkeD.js} +1 -1
- package/dist/Range.d.ts +1 -1
- package/dist/Range.js +2 -2
- package/dist/{ScrollTop-BFAqBVDR.js → ScrollTop-DwcNIKmN.js} +20 -20
- package/dist/ScrollTop.d.ts +8 -8
- package/dist/ScrollTop.js +5 -5
- package/dist/{Select-vxl3BvD4.js → Select-Bpicra9q.js} +153 -134
- package/dist/Select.d.ts +80 -78
- package/dist/Select.js +9 -9
- package/dist/{Spinner-DDTqijTO.js → Spinner-BBiVZxFH.js} +1 -1
- package/dist/{Spinner-CrM1enM0.d.ts → Spinner-DHYaX6-Y.d.ts} +1 -1
- package/dist/Spinner.d.ts +1 -1
- package/dist/Spinner.js +2 -2
- package/dist/Tab-CN97q0nj.d.ts +30 -0
- package/dist/Tab-Ce9nrDok.js +117 -0
- package/dist/Tab.d.ts +2 -0
- package/dist/Tab.js +3 -0
- package/dist/TabGroup-C-cd4Wcx.js +248 -0
- package/dist/TabGroup.d.ts +64 -0
- package/dist/TabGroup.js +5 -0
- package/dist/TabPanel-BW1ydVBT.js +65 -0
- package/dist/TabPanel-DQgWP7LO.d.ts +26 -0
- package/dist/TabPanel.d.ts +2 -0
- package/dist/TabPanel.js +3 -0
- package/dist/{Table-BgCxfBcm.js → Table-DiYqIzBu.js} +3 -3
- package/dist/Table.d.ts +3 -3
- package/dist/Table.js +7 -7
- package/dist/{Tag-DK2KkPIQ.js → Tag-Ct8Hhv7W.js} +1 -1
- package/dist/Tag.d.ts +1 -1
- package/dist/Tag.js +2 -2
- package/dist/{VisuallyHidden-OeQvhxYn.d.ts → VisuallyHidden-CB7aRJzF.d.ts} +1 -1
- package/dist/{VisuallyHidden-pll3amXE.js → VisuallyHidden-CpYXyuC7.js} +1 -1
- package/dist/VisuallyHidden.d.ts +1 -1
- package/dist/VisuallyHidden.js +2 -2
- package/dist/index.d.ts +14 -14
- package/dist/index.js +30 -30
- package/dist/leu-accordion.js +2 -2
- package/dist/leu-button-group.js +5 -5
- package/dist/leu-button.d.ts +1 -1
- package/dist/leu-button.js +4 -4
- package/dist/leu-chart-wrapper.js +3 -3
- package/dist/leu-checkbox-group.js +4 -4
- package/dist/leu-checkbox.js +3 -3
- package/dist/leu-chip-group.d.ts +1 -1
- package/dist/leu-chip-group.js +3 -3
- package/dist/leu-chip-link.d.ts +1 -1
- package/dist/leu-chip-link.js +2 -2
- package/dist/leu-chip-removable.d.ts +1 -1
- package/dist/leu-chip-removable.js +3 -3
- package/dist/leu-chip-selectable.d.ts +1 -1
- package/dist/leu-chip-selectable.js +2 -2
- package/dist/leu-dialog.js +3 -3
- package/dist/leu-dropdown.js +8 -8
- package/dist/leu-file-input.js +6 -6
- package/dist/leu-icon.d.ts +1 -1
- package/dist/leu-icon.js +2 -2
- package/dist/leu-input.d.ts +1 -1
- package/dist/leu-input.js +3 -3
- package/dist/leu-menu-item.d.ts +1 -1
- package/dist/leu-menu-item.js +3 -3
- package/dist/leu-menu.d.ts +1 -1
- package/dist/leu-menu.js +4 -4
- package/dist/leu-message.js +3 -3
- package/dist/leu-pagination.d.ts +1 -1
- package/dist/leu-pagination.js +6 -6
- package/dist/leu-placeholder.js +2 -2
- package/dist/leu-popup.d.ts +1 -1
- package/dist/leu-popup.js +2 -2
- package/dist/leu-progress-bar.js +2 -2
- package/dist/leu-radio-group.js +3 -3
- package/dist/leu-radio.js +2 -2
- package/dist/leu-range.js +2 -2
- package/dist/leu-scroll-top.js +5 -5
- package/dist/leu-select.js +9 -9
- package/dist/leu-spinner.d.ts +1 -1
- package/dist/leu-spinner.js +2 -2
- package/dist/leu-tab-group.d.ts +10 -0
- package/dist/leu-tab-group.js +8 -0
- package/dist/leu-tab-panel.d.ts +10 -0
- package/dist/leu-tab-panel.js +6 -0
- package/dist/leu-tab.d.ts +10 -0
- package/dist/leu-tab.js +6 -0
- package/dist/leu-table.js +7 -7
- package/dist/leu-tag.js +2 -2
- package/dist/leu-visually-hidden.d.ts +1 -1
- package/dist/leu-visually-hidden.js +2 -2
- package/dist/vscode.html-custom-data.json +90 -35
- package/dist/vue/index.d.ts +89 -29
- package/dist/web-types.json +182 -76
- package/package.json +1 -2
- package/src/components/button/Button.ts +45 -30
- package/src/components/button/button.css +55 -54
- package/src/components/button/stories/button.stories.ts +17 -20
- package/src/components/button/test/button.test.ts +46 -0
- package/src/components/file-input/FileInput.ts +24 -5
- package/src/components/input/Input.ts +43 -8
- package/src/components/input/test/input.test.ts +106 -1
- package/src/components/scroll-top/ScrollTop.ts +18 -16
- package/src/components/select/Select.ts +198 -125
- package/src/components/select/select.css +4 -0
- package/src/components/select/stories/select.stories.ts +10 -0
- package/src/components/select/test/select.test.ts +440 -35
- package/src/components/tab/Tab.ts +72 -0
- package/src/components/tab/TabGroup.ts +267 -0
- package/src/components/tab/TabPanel.ts +59 -0
- package/src/components/tab/leu-tab-group.ts +11 -0
- package/src/components/tab/leu-tab-panel.ts +11 -0
- package/src/components/tab/leu-tab.ts +11 -0
- package/src/components/tab/stories/tab.stories.ts +97 -0
- package/src/components/tab/tab-group.css +63 -0
- package/src/components/tab/tab-panel.css +10 -0
- package/src/components/tab/tab.css +54 -0
- package/src/components/tab/test/tab-group.test.ts +426 -0
- package/src/components/tab/test/tab-panel.test.ts +102 -0
- package/src/components/tab/test/tab.test.ts +139 -0
- package/tsconfig.json +1 -0
- /package/dist/{FormAssociatedMixin-Cc74LjbC.d.ts → FormAssociatedMixin-Cw7LsSUE.d.ts} +0 -0
- /package/dist/{LeuElement-pJFU18Xm.d.ts → LeuElement-DK1jntuu.d.ts} +0 -0
- /package/dist/{hasSlotController-DWPyZ52b.d.ts → hasSlotController-BjKyhJm-.d.ts} +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as LeuElement } from "./LeuElement-
|
|
2
|
-
import { t as LeuMenuItem } from "./MenuItem-
|
|
1
|
+
import { t as LeuElement } from "./LeuElement-DK1jntuu.js";
|
|
2
|
+
import { t as LeuMenuItem } from "./MenuItem-LY4TRIho.js";
|
|
3
3
|
import { PropertyValues } from "lit";
|
|
4
4
|
import * as lit_html0 from "lit-html";
|
|
5
5
|
|
package/dist/Menu.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as LeuMenu } from "./Menu-
|
|
1
|
+
import { t as LeuMenu } from "./Menu-Z2b7dsB5.js";
|
|
2
2
|
export { LeuMenu };
|
package/dist/Menu.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "./LeuElement-
|
|
2
|
-
import "./Icon-
|
|
3
|
-
import "./MenuItem-
|
|
4
|
-
import { t as LeuMenu } from "./Menu-
|
|
1
|
+
import "./LeuElement-DQI8cqZV.js";
|
|
2
|
+
import "./Icon-D83qesg5.js";
|
|
3
|
+
import "./MenuItem-DCttylRO.js";
|
|
4
|
+
import { t as LeuMenu } from "./Menu-DRU1LiMM.js";
|
|
5
5
|
export { LeuMenu };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as LeuElement } from "./LeuElement-
|
|
1
|
+
import { t as LeuElement } from "./LeuElement-DQI8cqZV.js";
|
|
2
2
|
import { t as __decorate } from "./decorate-DwpAc4D0.js";
|
|
3
|
-
import { t as LeuIcon } from "./Icon-
|
|
3
|
+
import { t as LeuIcon } from "./Icon-D83qesg5.js";
|
|
4
4
|
import { css, html, nothing } from "lit";
|
|
5
5
|
import { property } from "lit/decorators.js";
|
|
6
6
|
import { ifDefined } from "lit/directives/if-defined.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as LeuElement } from "./LeuElement-
|
|
2
|
-
import { t as LeuIcon } from "./Icon-
|
|
1
|
+
import { t as LeuElement } from "./LeuElement-DK1jntuu.js";
|
|
2
|
+
import { t as LeuIcon } from "./Icon-CUfh3eb3.js";
|
|
3
3
|
import { TemplateResult, nothing } from "lit";
|
|
4
4
|
|
|
5
5
|
//#region src/components/menu/MenuItem.d.ts
|
package/dist/MenuItem.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as LeuMenuItem } from "./MenuItem-
|
|
1
|
+
import { t as LeuMenuItem } from "./MenuItem-LY4TRIho.js";
|
|
2
2
|
export { LeuMenuItem };
|
package/dist/MenuItem.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "./LeuElement-
|
|
2
|
-
import "./Icon-
|
|
3
|
-
import { t as LeuMenuItem } from "./MenuItem-
|
|
1
|
+
import "./LeuElement-DQI8cqZV.js";
|
|
2
|
+
import "./Icon-D83qesg5.js";
|
|
3
|
+
import { t as LeuMenuItem } from "./MenuItem-DCttylRO.js";
|
|
4
4
|
export { LeuMenuItem };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as LeuElement } from "./LeuElement-
|
|
1
|
+
import { t as LeuElement } from "./LeuElement-DQI8cqZV.js";
|
|
2
2
|
import { t as __decorate } from "./decorate-DwpAc4D0.js";
|
|
3
|
-
import { t as LeuIcon } from "./Icon-
|
|
3
|
+
import { t as LeuIcon } from "./Icon-D83qesg5.js";
|
|
4
4
|
import { t as HasSlotController } from "./hasSlotController-DSBCVzPD.js";
|
|
5
5
|
import { css, html, nothing } from "lit";
|
|
6
6
|
import { property } from "lit/decorators.js";
|
package/dist/Message.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as LeuElement } from "./LeuElement-
|
|
2
|
-
import { t as LeuIcon } from "./Icon-
|
|
1
|
+
import { t as LeuElement } from "./LeuElement-DK1jntuu.js";
|
|
2
|
+
import { t as LeuIcon } from "./Icon-CUfh3eb3.js";
|
|
3
3
|
import * as lit_html0 from "lit-html";
|
|
4
4
|
|
|
5
5
|
//#region src/components/message/Message.d.ts
|
package/dist/Message.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "./LeuElement-
|
|
2
|
-
import "./Icon-
|
|
3
|
-
import { t as LeuMessage } from "./Message-
|
|
1
|
+
import "./LeuElement-DQI8cqZV.js";
|
|
2
|
+
import "./Icon-D83qesg5.js";
|
|
3
|
+
import { t as LeuMessage } from "./Message-0NxnKEqw.js";
|
|
4
4
|
export { LeuMessage };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { t as LeuElement } from "./LeuElement-
|
|
2
|
-
import { t as LeuIcon } from "./Icon-
|
|
3
|
-
import { t as LeuButton } from "./Button-
|
|
4
|
-
import { t as LeuVisuallyHidden } from "./VisuallyHidden-
|
|
1
|
+
import { t as LeuElement } from "./LeuElement-DK1jntuu.js";
|
|
2
|
+
import { t as LeuIcon } from "./Icon-CUfh3eb3.js";
|
|
3
|
+
import { t as LeuButton } from "./Button-DcuvEVkC.js";
|
|
4
|
+
import { t as LeuVisuallyHidden } from "./VisuallyHidden-CB7aRJzF.js";
|
|
5
5
|
import * as lit_html0 from "lit-html";
|
|
6
6
|
|
|
7
7
|
//#region src/components/pagination/Pagination.d.ts
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { t as LeuElement } from "./LeuElement-
|
|
1
|
+
import { t as LeuElement } from "./LeuElement-DQI8cqZV.js";
|
|
2
2
|
import { t as __decorate } from "./decorate-DwpAc4D0.js";
|
|
3
|
-
import { t as LeuIcon } from "./Icon-
|
|
4
|
-
import { t as LeuButton } from "./Button-
|
|
5
|
-
import { t as LeuVisuallyHidden } from "./VisuallyHidden-
|
|
3
|
+
import { t as LeuIcon } from "./Icon-D83qesg5.js";
|
|
4
|
+
import { t as LeuButton } from "./Button-DyNVOHCd.js";
|
|
5
|
+
import { t as LeuVisuallyHidden } from "./VisuallyHidden-CpYXyuC7.js";
|
|
6
6
|
import { css, html } from "lit";
|
|
7
7
|
import { property, state } from "lit/decorators.js";
|
|
8
8
|
import { live } from "lit/directives/live.js";
|
package/dist/Pagination.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as LeuPagination } from "./Pagination-
|
|
1
|
+
import { t as LeuPagination } from "./Pagination-9eZ8WMvR.js";
|
|
2
2
|
export { LeuPagination };
|
package/dist/Pagination.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import "./LeuElement-
|
|
2
|
-
import "./Icon-
|
|
3
|
-
import "./Spinner-
|
|
4
|
-
import "./Button-
|
|
1
|
+
import "./LeuElement-DQI8cqZV.js";
|
|
2
|
+
import "./Icon-D83qesg5.js";
|
|
3
|
+
import "./Spinner-BBiVZxFH.js";
|
|
4
|
+
import "./Button-DyNVOHCd.js";
|
|
5
5
|
import "./FormAssociatedMixin-DLPvFtbT.js";
|
|
6
|
-
import "./VisuallyHidden-
|
|
7
|
-
import { t as LeuPagination } from "./Pagination-
|
|
6
|
+
import "./VisuallyHidden-CpYXyuC7.js";
|
|
7
|
+
import { t as LeuPagination } from "./Pagination-CIy7YvWE.js";
|
|
8
8
|
export { LeuPagination };
|
package/dist/Placeholder.d.ts
CHANGED
package/dist/Placeholder.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import "./LeuElement-
|
|
2
|
-
import { t as LeuPlaceholder } from "./Placeholder-
|
|
1
|
+
import "./LeuElement-DQI8cqZV.js";
|
|
2
|
+
import { t as LeuPlaceholder } from "./Placeholder-Dol_X5Hp.js";
|
|
3
3
|
export { LeuPlaceholder };
|
package/dist/Popup.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as VirtualElement, t as LeuPopup } from "./Popup-
|
|
1
|
+
import { n as VirtualElement, t as LeuPopup } from "./Popup-B5iDSLIO.js";
|
|
2
2
|
export { LeuPopup, VirtualElement };
|
package/dist/Popup.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import "./LeuElement-
|
|
2
|
-
import { t as LeuPopup } from "./Popup-
|
|
1
|
+
import "./LeuElement-DQI8cqZV.js";
|
|
2
|
+
import { t as LeuPopup } from "./Popup-nJrJHGSy.js";
|
|
3
3
|
export { LeuPopup };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as LeuElement } from "./LeuElement-
|
|
1
|
+
import { t as LeuElement } from "./LeuElement-DQI8cqZV.js";
|
|
2
2
|
import { t as __decorate } from "./decorate-DwpAc4D0.js";
|
|
3
3
|
import { css, html, nothing } from "lit";
|
|
4
4
|
import { property } from "lit/decorators.js";
|
package/dist/ProgressBar.d.ts
CHANGED
package/dist/ProgressBar.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import "./LeuElement-
|
|
2
|
-
import { t as LeuProgressBar } from "./ProgressBar-
|
|
1
|
+
import "./LeuElement-DQI8cqZV.js";
|
|
2
|
+
import { t as LeuProgressBar } from "./ProgressBar-Dmq9veqU.js";
|
|
3
3
|
export { LeuProgressBar };
|
package/dist/Radio.d.ts
CHANGED
package/dist/Radio.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import "./LeuElement-
|
|
2
|
-
import { t as LeuRadio } from "./Radio-
|
|
1
|
+
import "./LeuElement-DQI8cqZV.js";
|
|
2
|
+
import { t as LeuRadio } from "./Radio-W5ck_IJI.js";
|
|
3
3
|
export { LeuRadio };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as LeuElement } from "./LeuElement-
|
|
1
|
+
import { t as LeuElement } from "./LeuElement-DQI8cqZV.js";
|
|
2
2
|
import { t as __decorate } from "./decorate-DwpAc4D0.js";
|
|
3
|
-
import { t as LeuRadio } from "./Radio-
|
|
3
|
+
import { t as LeuRadio } from "./Radio-W5ck_IJI.js";
|
|
4
4
|
import { css, html } from "lit";
|
|
5
5
|
import { property } from "lit/decorators.js";
|
|
6
6
|
import { classMap } from "lit/directives/class-map.js";
|
package/dist/RadioGroup.d.ts
CHANGED
package/dist/RadioGroup.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "./LeuElement-
|
|
2
|
-
import "./Radio-
|
|
3
|
-
import { t as LeuRadioGroup } from "./RadioGroup-
|
|
1
|
+
import "./LeuElement-DQI8cqZV.js";
|
|
2
|
+
import "./Radio-W5ck_IJI.js";
|
|
3
|
+
import { t as LeuRadioGroup } from "./RadioGroup-De5x2YCO.js";
|
|
4
4
|
export { LeuRadioGroup };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as LeuElement } from "./LeuElement-
|
|
1
|
+
import { t as LeuElement } from "./LeuElement-DQI8cqZV.js";
|
|
2
2
|
import { t as __decorate } from "./decorate-DwpAc4D0.js";
|
|
3
3
|
import { n as isNumber, t as clamp } from "./utils-hfk5Nwy8.js";
|
|
4
4
|
import { css, html, nothing } from "lit";
|
package/dist/Range.d.ts
CHANGED
package/dist/Range.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import "./LeuElement-
|
|
2
|
-
import { t as LeuRange } from "./Range-
|
|
1
|
+
import "./LeuElement-DQI8cqZV.js";
|
|
2
|
+
import { t as LeuRange } from "./Range-NCdfDkeD.js";
|
|
3
3
|
export { LeuRange };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { t as LeuElement } from "./LeuElement-
|
|
1
|
+
import { t as LeuElement } from "./LeuElement-DQI8cqZV.js";
|
|
2
2
|
import { t as __decorate } from "./decorate-DwpAc4D0.js";
|
|
3
|
-
import { t as LeuIcon } from "./Icon-
|
|
4
|
-
import { t as LeuButton } from "./Button-
|
|
3
|
+
import { t as LeuIcon } from "./Icon-D83qesg5.js";
|
|
4
|
+
import { t as LeuButton } from "./Button-DyNVOHCd.js";
|
|
5
5
|
import { r as throttle } from "./utils-hfk5Nwy8.js";
|
|
6
6
|
import { css, html } from "lit";
|
|
7
7
|
import { state } from "lit/decorators.js";
|
|
@@ -63,24 +63,24 @@ var scroll_top_default = css`.scroll-top {
|
|
|
63
63
|
/**
|
|
64
64
|
* @tagname leu-scroll-top
|
|
65
65
|
*/
|
|
66
|
-
var LeuScrollTop = class
|
|
66
|
+
var LeuScrollTop = class extends LeuElement {
|
|
67
67
|
constructor(..._args) {
|
|
68
68
|
super(..._args);
|
|
69
|
-
this.
|
|
70
|
-
this.
|
|
71
|
-
this.
|
|
69
|
+
this.showButton = false;
|
|
70
|
+
this.prevYPos = 0;
|
|
71
|
+
this.hasScrolledDown = false;
|
|
72
72
|
this.scroll = () => {
|
|
73
|
-
const delta = window.scrollY - this.
|
|
74
|
-
if (this.
|
|
75
|
-
if (delta < 0) this.
|
|
76
|
-
} else if (delta > 0) this.
|
|
73
|
+
const delta = window.scrollY - this.prevYPos;
|
|
74
|
+
if (this.hasScrolledDown) {
|
|
75
|
+
if (delta < 0) this.hasScrolledDown = false;
|
|
76
|
+
} else if (delta > 0) this.hasScrolledDown = true;
|
|
77
77
|
/**
|
|
78
78
|
* Only show the button when
|
|
79
79
|
* ... the current scroll position is greater than the window height (below-the-fold) and when
|
|
80
80
|
* ... scrolling up
|
|
81
81
|
*/
|
|
82
|
-
this.
|
|
83
|
-
this.
|
|
82
|
+
this.showButton = window.scrollY > window.innerHeight && !this.hasScrolledDown;
|
|
83
|
+
this.prevYPos = window.scrollY;
|
|
84
84
|
};
|
|
85
85
|
}
|
|
86
86
|
static {
|
|
@@ -94,14 +94,14 @@ var LeuScrollTop = class LeuScrollTop extends LeuElement {
|
|
|
94
94
|
}
|
|
95
95
|
connectedCallback() {
|
|
96
96
|
super.connectedCallback();
|
|
97
|
-
this.
|
|
98
|
-
document.addEventListener("scroll", this.
|
|
97
|
+
this.scrollListener = throttle(this.scroll, 100);
|
|
98
|
+
document.addEventListener("scroll", this.scrollListener, true);
|
|
99
99
|
}
|
|
100
100
|
disconnectedCallback() {
|
|
101
|
-
document.removeEventListener("scroll", this.
|
|
101
|
+
document.removeEventListener("scroll", this.scrollListener, true);
|
|
102
102
|
super.disconnectedCallback();
|
|
103
103
|
}
|
|
104
|
-
|
|
104
|
+
scrollToTop() {
|
|
105
105
|
window.scrollTo({
|
|
106
106
|
top: 0,
|
|
107
107
|
left: 0,
|
|
@@ -112,12 +112,12 @@ var LeuScrollTop = class LeuScrollTop extends LeuElement {
|
|
|
112
112
|
return html`
|
|
113
113
|
<div class=${classMap({
|
|
114
114
|
"scroll-top": true,
|
|
115
|
-
hide: !this.
|
|
115
|
+
hide: !this.showButton
|
|
116
116
|
})}>
|
|
117
117
|
<leu-button
|
|
118
118
|
label="Zum Seitenanfang"
|
|
119
119
|
round
|
|
120
|
-
@click="${() =>
|
|
120
|
+
@click="${() => this.scrollToTop()}"
|
|
121
121
|
>
|
|
122
122
|
<leu-icon name="arrowUp"></leu-icon>
|
|
123
123
|
</leu-button>
|
|
@@ -125,6 +125,6 @@ var LeuScrollTop = class LeuScrollTop extends LeuElement {
|
|
|
125
125
|
`;
|
|
126
126
|
}
|
|
127
127
|
};
|
|
128
|
-
__decorate([state()], LeuScrollTop.prototype, "
|
|
128
|
+
__decorate([state()], LeuScrollTop.prototype, "showButton", void 0);
|
|
129
129
|
//#endregion
|
|
130
130
|
export { LeuScrollTop as t };
|
package/dist/ScrollTop.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as LeuElement } from "./LeuElement-
|
|
2
|
-
import { t as LeuIcon } from "./Icon-
|
|
3
|
-
import { t as LeuButton } from "./Button-
|
|
1
|
+
import { t as LeuElement } from "./LeuElement-DK1jntuu.js";
|
|
2
|
+
import { t as LeuIcon } from "./Icon-CUfh3eb3.js";
|
|
3
|
+
import { t as LeuButton } from "./Button-DcuvEVkC.js";
|
|
4
4
|
import * as lit_html0 from "lit-html";
|
|
5
5
|
|
|
6
6
|
//#region src/components/scroll-top/ScrollTop.d.ts
|
|
@@ -13,14 +13,14 @@ declare class LeuScrollTop extends LeuElement {
|
|
|
13
13
|
"leu-icon": typeof LeuIcon;
|
|
14
14
|
};
|
|
15
15
|
static styles: any[];
|
|
16
|
-
protected
|
|
17
|
-
protected
|
|
18
|
-
protected
|
|
19
|
-
protected
|
|
16
|
+
protected showButton: boolean;
|
|
17
|
+
protected prevYPos: number;
|
|
18
|
+
protected hasScrolledDown: boolean;
|
|
19
|
+
protected scrollListener: EventListener;
|
|
20
20
|
scroll: () => void;
|
|
21
21
|
connectedCallback(): void;
|
|
22
22
|
disconnectedCallback(): void;
|
|
23
|
-
|
|
23
|
+
scrollToTop(): void;
|
|
24
24
|
render(): lit_html0.TemplateResult<1>;
|
|
25
25
|
}
|
|
26
26
|
//#endregion
|
package/dist/ScrollTop.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import "./LeuElement-
|
|
2
|
-
import "./Icon-
|
|
3
|
-
import "./Spinner-
|
|
4
|
-
import "./Button-
|
|
1
|
+
import "./LeuElement-DQI8cqZV.js";
|
|
2
|
+
import "./Icon-D83qesg5.js";
|
|
3
|
+
import "./Spinner-BBiVZxFH.js";
|
|
4
|
+
import "./Button-DyNVOHCd.js";
|
|
5
5
|
import "./FormAssociatedMixin-DLPvFtbT.js";
|
|
6
|
-
import { t as LeuScrollTop } from "./ScrollTop-
|
|
6
|
+
import { t as LeuScrollTop } from "./ScrollTop-DwcNIKmN.js";
|
|
7
7
|
export { LeuScrollTop };
|