@baloise/ds-core 20.0.0-next.4 → 20.0.0-next.7
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/LICENSE +9 -0
- package/components/all.d.ts +58 -0
- package/components/all.js +87 -0
- package/components/ds-accordion.js +1 -1
- package/components/ds-alert-container.js +1 -1
- package/components/ds-app.js +1 -1
- package/components/ds-badge.js +1 -1
- package/components/ds-button-group.js +1 -1
- package/components/ds-button.js +1 -1
- package/components/ds-card-actions.js +1 -1
- package/components/ds-card-content.js +1 -1
- package/components/ds-card-header.js +1 -1
- package/components/ds-card-subtitle.js +1 -1
- package/components/ds-card-title.js +1 -1
- package/components/ds-card.js +1 -1
- package/components/ds-carousel-item.d.ts +11 -0
- package/components/ds-carousel-item.js +4 -0
- package/components/ds-carousel.d.ts +11 -0
- package/components/ds-carousel.js +4 -0
- package/components/ds-checkbox-group.js +1 -1
- package/components/ds-checkbox.js +1 -1
- package/components/ds-close.js +1 -1
- package/components/ds-content.js +1 -1
- package/components/ds-data-item.d.ts +11 -0
- package/components/ds-data-item.js +4 -0
- package/components/ds-data-label.d.ts +11 -0
- package/components/ds-data-label.js +4 -0
- package/components/ds-data-value.d.ts +11 -0
- package/components/ds-data-value.js +4 -0
- package/components/ds-data.d.ts +11 -0
- package/components/ds-data.js +4 -0
- package/components/ds-date.d.ts +11 -0
- package/components/ds-date.js +4 -0
- package/components/ds-divider.js +1 -1
- package/components/ds-drawer.d.ts +11 -0
- package/components/ds-drawer.js +4 -0
- package/components/ds-file-upload.d.ts +11 -0
- package/components/ds-file-upload.js +4 -0
- package/components/ds-footer.d.ts +11 -0
- package/components/ds-footer.js +4 -0
- package/components/ds-heading.js +1 -1
- package/components/ds-hint-text.d.ts +11 -0
- package/components/ds-hint-text.js +4 -0
- package/components/ds-hint-title.d.ts +11 -0
- package/components/ds-hint-title.js +4 -0
- package/components/ds-hint.d.ts +11 -0
- package/components/ds-hint.js +4 -0
- package/components/ds-icon.js +1 -1
- package/components/ds-input-slider.d.ts +11 -0
- package/components/ds-input-slider.js +4 -0
- package/components/ds-input.js +1 -1
- package/components/ds-item.js +1 -1
- package/components/ds-label.js +1 -1
- package/components/ds-list.js +1 -1
- package/components/ds-logo.js +1 -1
- package/components/ds-modal-body.d.ts +11 -0
- package/components/ds-modal-body.js +4 -0
- package/components/ds-modal-header.d.ts +11 -0
- package/components/ds-modal-header.js +4 -0
- package/components/ds-modal.d.ts +11 -0
- package/components/ds-modal.js +4 -0
- package/components/ds-navbar.d.ts +11 -0
- package/components/ds-navbar.js +4 -0
- package/components/ds-notification.js +1 -1
- package/components/ds-number-input.js +1 -1
- package/components/ds-pagination.js +1 -1
- package/components/ds-popup.d.ts +11 -0
- package/components/ds-popup.js +4 -0
- package/components/ds-progress-bar.js +1 -1
- package/components/ds-radio-group.js +1 -1
- package/components/ds-radio.js +1 -1
- package/components/ds-segment-item.js +1 -1
- package/components/ds-segment.js +1 -1
- package/components/ds-select-optgroup.d.ts +11 -0
- package/components/ds-select-optgroup.js +4 -0
- package/components/ds-select-option.d.ts +11 -0
- package/components/ds-select-option.js +4 -0
- package/components/ds-select.d.ts +11 -0
- package/components/ds-select.js +4 -0
- package/components/ds-shape.js +1 -1
- package/components/ds-snackbar.js +1 -1
- package/components/ds-spinner.js +1 -1
- package/components/ds-stack.js +1 -1
- package/components/ds-step-panel.d.ts +11 -0
- package/components/ds-step-panel.js +4 -0
- package/components/ds-step.d.ts +11 -0
- package/components/ds-step.js +4 -0
- package/components/ds-steps.d.ts +11 -0
- package/components/ds-steps.js +4 -0
- package/components/ds-tab-panel.d.ts +11 -0
- package/components/ds-tab-panel.js +4 -0
- package/components/ds-tab.d.ts +11 -0
- package/components/ds-tab.js +4 -0
- package/components/ds-tabs.d.ts +11 -0
- package/components/ds-tabs.js +4 -0
- package/components/ds-tag-group.js +1 -1
- package/components/ds-tag.js +1 -1
- package/components/ds-text.js +1 -1
- package/components/ds-textarea.js +1 -1
- package/components/ds-toast.js +1 -1
- package/components/ds-toggle.js +1 -1
- package/components/ds-tooltip.d.ts +11 -0
- package/components/ds-tooltip.js +4 -0
- package/components/index.js +1 -1
- package/components/p--EKmxaBS.js +4 -0
- package/components/p-3Mi9vpmB.js +4 -0
- package/components/p-ABj0eATe.js +4 -0
- package/components/p-B-en4B17.js +4 -0
- package/components/p-BgzU1loG.js +4 -0
- package/components/p-BhbWmCTu.js +4 -0
- package/components/p-BqY0KzJC.js +4 -0
- package/components/p-BrIcCcce.js +4 -0
- package/components/p-BrJFPhMA.js +4 -0
- package/components/{p-Urcs7-vS.js → p-BwfAXfmz.js} +1 -1
- package/components/p-BwwAKEvn.js +4 -0
- package/components/p-ByX1_7SF.js +4 -0
- package/components/p-C1jqbZdf.js +4 -0
- package/{dist/design-system/p-15bc012833.entry.js → components/p-CA7G72wZ.js} +1 -1
- package/components/p-CQHwI4iD.js +4 -0
- package/components/p-CWDuQL1i.js +4 -0
- package/components/p-CvaNxQtw.js +4 -0
- package/components/p-D5zw5ezD.js +4 -0
- package/components/p-D9ILiUgm.js +4 -0
- package/{dist/design-system/p-BATOumsf.js → components/p-D9YYP2SG.js} +1 -1
- package/components/p-DAYd9ty0.js +4 -0
- package/components/p-DIK6Zkg6.js +4 -0
- package/{dist/design-system/p-BkESlUMc.js → components/p-DQBzmbR6.js} +1 -1
- package/components/p-DSeYzuO7.js +4 -0
- package/components/{p-z1jJgtep.js → p-DU7t9H9h.js} +1 -1
- package/components/p-DY0y8uLL.js +4 -0
- package/components/p-DYTOWDAA.js +4 -0
- package/components/p-DYlqkAWn.js +4 -0
- package/components/p-DbM7ALm9.js +14 -0
- package/{dist/design-system/p-D2tr7015.js → components/p-DbY6Pfeh.js} +1 -1
- package/components/{p-DZqqelPH.js → p-DcSNuA8W.js} +1 -1
- package/components/p-DenZRIeA.js +4 -0
- package/{dist/design-system/p-BwrOVItb.js → components/p-Dr4MUfss.js} +1 -1
- package/components/p-Du7QOHtz.js +5 -0
- package/components/{p-E8U6M5ii.js → p-FBQaJyH0.js} +1 -1
- package/components/{p-Dr4dquer.js → p-J0mxIuTt.js} +1 -1
- package/{dist/design-system/p-DJxr2Dcd.js → components/p-UCeQ1JCs.js} +1 -1
- package/components/p-Uy_dVz21.js +4 -0
- package/components/p-VsWv65bD.js +4 -0
- package/components/p-WO0X5Vmy.js +4 -0
- package/components/p-gz0Nxl39.js +4 -0
- package/components/{p-Bt20CEww.js → p-n3_2KEz0.js} +1 -1
- package/components/p-qaSW94OG.js +4 -0
- package/components/p-u5aa74vh.js +4 -0
- package/dist/cjs/{_getTag-B468r9bu.js → _getTag-DxZgmSPS.js} +1 -1
- package/dist/cjs/array-CYn4ALBt.js +1986 -0
- package/dist/cjs/{breakpoints.decorator-qaoHOU6Q.js → breakpoints.decorator-DY5iYsA5.js} +1 -1
- package/dist/cjs/{breakpoints.subject-DhAN_ZAn.js → breakpoints.subject-CzhLlIwN.js} +3 -3
- package/dist/cjs/{button.interfaces-BueDWsuH.js → button.interfaces-CqlUGR-N.js} +1 -1
- package/dist/cjs/carousel.interfaces-BFQpUNrw.js +12 -0
- package/dist/cjs/{config.decorator-Qmrq4ZYj.js → config.decorator-C64wi-MA.js} +1 -1
- package/dist/cjs/{config.utils-Cv4cx_Xa.js → config.utils-BhWbrVRz.js} +1 -1
- package/dist/cjs/create-validator-decorator-Ctd288ve.js +212 -0
- package/dist/cjs/design-system.cjs.js +3 -3
- package/dist/cjs/{device-CptgCtVc.js → device-CIliLOe9.js} +1 -1
- package/dist/cjs/ds-accordion.cjs.entry.js +30 -34
- package/dist/cjs/ds-alert-container.cjs.entry.js +12 -15
- package/dist/cjs/ds-app.cjs.entry.js +16 -6
- package/dist/cjs/ds-badge.cjs.entry.js +33 -26
- package/dist/cjs/ds-button-group.cjs.entry.js +14 -17
- package/dist/cjs/ds-button_2.cjs.entry.js +58 -73
- package/dist/cjs/ds-card-actions.cjs.entry.js +6 -8
- package/dist/cjs/ds-card-content.cjs.entry.js +3 -3
- package/dist/cjs/ds-card-header.cjs.entry.js +8 -5
- package/dist/cjs/ds-card-subtitle.cjs.entry.js +13 -13
- package/dist/cjs/ds-card-title.cjs.entry.js +11 -7
- package/dist/cjs/ds-card.cjs.entry.js +32 -43
- package/dist/cjs/ds-carousel-item.cjs.entry.js +128 -0
- package/dist/cjs/ds-carousel.cjs.entry.js +473 -0
- package/dist/cjs/ds-checkbox-group.cjs.entry.js +60 -2013
- package/dist/cjs/ds-checkbox.cjs.entry.js +33 -20
- package/dist/cjs/ds-content_2.cjs.entry.js +330 -0
- package/dist/cjs/ds-data-item.cjs.entry.js +146 -0
- package/dist/cjs/ds-data-label.cjs.entry.js +41 -0
- package/dist/cjs/ds-data-value.cjs.entry.js +31 -0
- package/dist/cjs/ds-data.cjs.entry.js +43 -0
- package/dist/cjs/ds-date.cjs.entry.js +5334 -0
- package/dist/cjs/{ds-logo.cjs.entry.js → ds-divider_2.cjs.entry.js} +130 -25
- package/dist/cjs/ds-drawer_2.cjs.entry.js +602 -0
- package/dist/cjs/ds-file-upload.cjs.entry.js +516 -0
- package/dist/cjs/ds-footer.cjs.entry.js +159 -0
- package/dist/cjs/ds-heading.cjs.entry.js +22 -20
- package/dist/cjs/ds-hint-text.cjs.entry.js +28 -0
- package/dist/cjs/ds-hint-title.cjs.entry.js +31 -0
- package/dist/cjs/ds-hint.cjs.entry.js +243 -0
- package/dist/cjs/ds-icon_2.cjs.entry.js +82 -73
- package/dist/cjs/ds-input-slider.cjs.entry.js +2885 -0
- package/dist/cjs/ds-input.cjs.entry.js +45 -43
- package/dist/cjs/ds-item.cjs.entry.js +29 -34
- package/dist/cjs/ds-label.cjs.entry.js +23 -31
- package/dist/cjs/ds-list.cjs.entry.js +6 -12
- package/dist/cjs/ds-modal-body.cjs.entry.js +34 -0
- package/dist/cjs/ds-modal-header.cjs.entry.js +31 -0
- package/dist/cjs/ds-modal.cjs.entry.js +201 -0
- package/dist/cjs/ds-navbar.cjs.entry.js +359 -0
- package/dist/cjs/ds-notification.cjs.entry.js +20 -28
- package/dist/cjs/ds-number-input.cjs.entry.js +107 -119
- package/dist/cjs/ds-pagination.cjs.entry.js +41 -37
- package/dist/cjs/ds-progress-bar.cjs.entry.js +25 -29
- package/dist/cjs/ds-radio-group.cjs.entry.js +48 -30
- package/dist/cjs/ds-radio.cjs.entry.js +36 -34
- package/dist/cjs/ds-segment-item.cjs.entry.js +9 -9
- package/dist/cjs/ds-segment.cjs.entry.js +29 -117
- package/dist/cjs/ds-select-optgroup.cjs.entry.js +49 -0
- package/dist/cjs/ds-select-option.cjs.entry.js +57 -0
- package/dist/cjs/ds-select.cjs.entry.js +2772 -0
- package/dist/cjs/ds-shape.cjs.entry.js +10 -16
- package/dist/cjs/ds-snackbar.cjs.entry.js +41 -58
- package/dist/cjs/ds-step-panel.cjs.entry.js +55 -0
- package/dist/cjs/ds-step.cjs.entry.js +170 -0
- package/dist/cjs/ds-steps.cjs.entry.js +227 -0
- package/dist/cjs/ds-tab-panel.cjs.entry.js +55 -0
- package/dist/cjs/ds-tab.cjs.entry.js +120 -0
- package/dist/cjs/ds-tabs.cjs.entry.js +364 -0
- package/dist/cjs/ds-tag-group.cjs.entry.js +3 -3
- package/dist/cjs/ds-tag.cjs.entry.js +19 -26
- package/dist/cjs/ds-text.cjs.entry.js +29 -33
- package/dist/cjs/ds-textarea.cjs.entry.js +32 -31
- package/dist/cjs/ds-toast.cjs.entry.js +41 -55
- package/dist/cjs/ds-toggle.cjs.entry.js +22 -21
- package/dist/cjs/ds-tooltip.cjs.entry.js +182 -0
- package/dist/cjs/{field.util-RjuvTLNZ.js → field.util-g9nhtuZH.js} +1 -1
- package/dist/cjs/floating-ui.dom-Cu3dZdFD.js +1628 -0
- package/dist/cjs/focus-BUszBnbl.js +1958 -0
- package/dist/cjs/footer.i18n-CpGxizgm.js +162 -0
- package/dist/cjs/{form-control-Bno2tBGf.js → form-control-B4Qf8fg-.js} +2 -2
- package/dist/cjs/has-value-rj502MLA.js +12 -0
- package/dist/cjs/{index-CdD-TT_n.js → index-CqInh7Vc.js} +502 -175
- package/dist/cjs/index.cjs.js +26 -8283
- package/dist/cjs/isArray-DvQst6zQ.js +42 -0
- package/dist/cjs/isNaN-DOSPWDkt.js +106 -0
- package/dist/cjs/{isObjectLike-h-ta_ikf.js → isObjectLike-BNz6hnAu.js} +0 -37
- package/dist/cjs/keyboard-C7y0jXYb.js +23 -0
- package/dist/cjs/{listener-DgVWqfa1.js → listener-1PZJDuOW.js} +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/luxon-q23LOWrr.js +8137 -0
- package/dist/cjs/one-of-BotLfpAZ.js +30 -0
- package/dist/cjs/popup.interfaces-B-mwd9rh.js +23 -0
- package/dist/cjs/required-BAhZ8oRM.js +38 -0
- package/dist/cjs/resize.decorator-Sqefy8ta.js +98 -0
- package/dist/cjs/scroll--5tnvpG1.js +89 -0
- package/dist/cjs/svg-D9RbiR8R.js +2443 -0
- package/dist/cjs/{tslib.es6-BTi-SLnA.js → tslib.es6-BIB10hMZ.js} +1 -1
- package/dist/cjs/type-Br_NbeTX.js +33 -0
- package/dist/collection/collection-manifest.json +31 -2
- package/dist/collection/components/accordion/accordion.host.css +1 -1
- package/dist/collection/components/accordion/accordion.js +22 -29
- package/dist/collection/components/alert/alert-container.js +8 -14
- package/dist/collection/components/alert/alert.controller.js +1 -1
- package/dist/collection/components/alert/snackbar/snackbar.host.css +1 -1
- package/dist/collection/components/alert/snackbar/snackbar.js +30 -53
- package/dist/collection/components/alert/toast/toast.host.css +1 -1
- package/dist/collection/components/alert/toast/toast.js +32 -53
- package/dist/collection/components/app/app.js +11 -3
- package/dist/collection/components/badge/badge.host.css +1 -1
- package/dist/collection/components/badge/badge.interfaces.js +1 -1
- package/dist/collection/components/badge/badge.js +28 -25
- package/dist/collection/components/button/button-group/button-group.js +8 -14
- package/dist/collection/components/button/button.host.css +1 -1
- package/dist/collection/components/button/button.interfaces.js +1 -1
- package/dist/collection/components/button/button.js +44 -54
- package/dist/collection/components/card/card-actions/card-actions.js +3 -6
- package/dist/collection/components/card/card-content/card-content.host.css +1 -1
- package/dist/collection/components/card/card-header/card-header.js +4 -3
- package/dist/collection/components/card/card-subtitle/card-subtitle.js +8 -11
- package/dist/collection/components/card/card-title/card-title.js +6 -5
- package/dist/collection/components/card/card.host.css +1 -1
- package/dist/collection/components/card/card.js +30 -42
- package/dist/collection/components/carousel/carousel/carousel.host.css +1 -0
- package/dist/collection/components/carousel/carousel/carousel.i18n.js +65 -0
- package/dist/collection/components/carousel/carousel/carousel.js +631 -0
- package/dist/collection/components/carousel/carousel-item/carousel-item.host.css +1 -0
- package/dist/collection/components/carousel/carousel-item/carousel-item.js +313 -0
- package/dist/collection/components/carousel/carousel.interfaces.js +6 -0
- package/dist/collection/components/carousel/test/carousel.a11y.play.js +34 -0
- package/dist/collection/components/carousel/test/carousel.component.play.js +57 -0
- package/dist/collection/components/carousel/test/carousel.visual.play.js +24 -0
- package/dist/collection/components/checkbox/checkbox-group/checkbox-group.host.css +1 -1
- package/dist/collection/components/checkbox/checkbox-group/checkbox-group.js +63 -27
- package/dist/collection/components/checkbox/checkbox.host.css +1 -1
- package/dist/collection/components/checkbox/checkbox.js +47 -18
- package/dist/collection/components/checkbox/test/checkbox.visual.play.js +3 -0
- package/dist/collection/components/close/close.js +10 -21
- package/dist/collection/components/content/content.js +38 -52
- package/dist/collection/components/data/data-item.host.css +1 -0
- package/dist/collection/components/data/data-item.i18n.js +35 -0
- package/dist/collection/components/data/data-item.js +244 -0
- package/dist/collection/components/data/data-label.host.css +1 -0
- package/dist/collection/components/data/data-label.js +72 -0
- package/dist/collection/components/data/data-value.host.css +1 -0
- package/dist/collection/components/data/data-value.js +38 -0
- package/dist/collection/components/data/data.host.css +1 -0
- package/dist/collection/components/data/data.js +75 -0
- package/dist/collection/components/data/test/data.a11y.play.js +31 -0
- package/dist/collection/components/data/test/data.component.play.js +104 -0
- package/dist/collection/components/data/test/data.visual.play.js +25 -0
- package/dist/collection/components/date/date.host.css +1 -0
- package/dist/collection/components/date/date.i18n.js +105 -0
- package/dist/collection/components/date/date.interfaces.js +4 -0
- package/dist/collection/components/date/date.js +1241 -0
- package/dist/collection/components/date/date.mask.js +189 -0
- package/dist/collection/components/date/date.picker.js +536 -0
- package/dist/collection/components/date/test/date.a11y.play.js +27 -0
- package/dist/collection/components/date/test/date.component.play.js +69 -0
- package/dist/collection/components/date/test/date.visual.play.js +43 -0
- package/dist/collection/components/divider/divider.host.css +1 -1
- package/dist/collection/components/divider/divider.js +11 -24
- package/dist/collection/components/drawer/drawer.host.css +1 -0
- package/dist/collection/{utils/property-checkers/constants.js → components/drawer/drawer.interfaces.js} +1 -1
- package/dist/collection/components/drawer/drawer.js +492 -0
- package/dist/collection/components/drawer/test/drawer.a11y.play.js +39 -0
- package/dist/collection/components/drawer/test/drawer.component.play.js +131 -0
- package/dist/collection/components/drawer/test/drawer.visual.play.js +31 -0
- package/dist/collection/components/file-upload/file-upload.host.css +1 -0
- package/dist/collection/components/file-upload/file-upload.i18n.js +55 -0
- package/dist/collection/components/file-upload/file-upload.interfaces.js +10 -0
- package/dist/collection/components/file-upload/file-upload.js +1030 -0
- package/dist/collection/components/file-upload/test/file-upload.a11y.play.js +52 -0
- package/dist/collection/components/file-upload/test/file-upload.component.play.js +124 -0
- package/dist/collection/components/file-upload/test/file-upload.visual.play.js +18 -0
- package/dist/collection/components/file-upload/utils/file-list.util.js +13 -0
- package/dist/collection/components/file-upload/utils/file-size.util.js +10 -0
- package/dist/collection/components/file-upload/utils/file-validation.util.js +48 -0
- package/dist/collection/components/footer/footer.host.css +1 -0
- package/dist/collection/components/footer/footer.i18n.js +155 -0
- package/dist/collection/components/footer/footer.interfaces.js +4 -0
- package/dist/collection/components/footer/footer.js +350 -0
- package/dist/collection/components/footer/test/footer.a11y.play.js +17 -0
- package/dist/collection/components/footer/test/footer.component.play.js +74 -0
- package/dist/collection/components/footer/test/footer.visual.play.js +16 -0
- package/dist/collection/components/form/test/form.visual.play.js +13 -1
- package/dist/collection/components/heading/heading.host.css +1 -1
- package/dist/collection/components/heading/heading.js +16 -17
- package/dist/collection/components/hint/hint-text/hint-text.js +28 -0
- package/dist/collection/components/hint/hint-title/hint-title.js +31 -0
- package/dist/collection/components/hint/hint.host.css +1 -0
- package/dist/collection/components/hint/hint.i18n.js +35 -0
- package/dist/collection/components/hint/hint.interfaces.js +1 -0
- package/dist/collection/components/hint/hint.js +410 -0
- package/dist/collection/components/hint/test/hint.a11y.play.js +41 -0
- package/dist/collection/components/hint/test/hint.component.play.js +110 -0
- package/dist/collection/components/hint/test/hint.visual.play.js +39 -0
- package/dist/collection/components/icon/icon.host.css +1 -1
- package/dist/collection/components/icon/icon.interfaces.js +1 -0
- package/dist/collection/components/icon/icon.js +73 -42
- package/dist/collection/components/icon/test/icon.component.play.js +23 -1
- package/dist/collection/components/input/clear-button.i18n.js +35 -0
- package/dist/collection/components/input/clear-button.util.js +11 -0
- package/dist/collection/components/input/input.host.css +1 -1
- package/dist/collection/components/input/input.js +36 -37
- package/dist/collection/components/input/test/input.component.play.js +1 -1
- package/dist/collection/components/input/trigger-button.i18n.js +45 -0
- package/dist/collection/components/input-slider/input-slider.host.css +1 -0
- package/dist/collection/components/input-slider/input-slider.interfaces.js +4 -0
- package/dist/collection/components/input-slider/input-slider.js +961 -0
- package/dist/collection/components/input-slider/input-slider.picker.js +124 -0
- package/dist/collection/components/input-slider/input-slider.utils.js +32 -0
- package/dist/collection/components/input-slider/test/input-slider.a11y.play.js +36 -0
- package/dist/collection/components/input-slider/test/input-slider.component.play.js +87 -0
- package/dist/collection/components/input-slider/test/input-slider.visual.play.js +27 -0
- package/dist/collection/components/label/label.host.css +1 -1
- package/dist/collection/components/label/label.js +16 -28
- package/dist/collection/components/list/item/item.host.css +1 -1
- package/dist/collection/components/list/item/item.interfaces.js +1 -1
- package/dist/collection/components/list/item/item.js +27 -34
- package/dist/collection/components/list/list.js +3 -10
- package/dist/collection/components/list/test/list.visual.play.js +30 -0
- package/dist/collection/components/logo/logo.js +11 -18
- package/dist/collection/components/modal/modal-body/modal-body.host.css +1 -0
- package/dist/collection/components/modal/modal-body/modal-body.js +41 -0
- package/dist/collection/components/modal/modal-header/modal-header.js +32 -0
- package/dist/collection/components/modal/modal.controller.js +31 -0
- package/dist/collection/components/modal/modal.host.css +1 -0
- package/dist/collection/components/modal/modal.interfaces.js +1 -0
- package/dist/collection/components/modal/modal.js +461 -0
- package/dist/collection/components/modal/test/modal.a11y.play.js +59 -0
- package/dist/collection/components/modal/test/modal.component.play.js +196 -0
- package/dist/collection/components/modal/test/modal.visual.play.js +36 -0
- package/dist/collection/components/navbar/navbar.host.css +1 -0
- package/dist/collection/components/navbar/navbar.i18n.js +65 -0
- package/dist/collection/components/navbar/navbar.interfaces.js +6 -0
- package/dist/collection/components/navbar/navbar.js +544 -0
- package/dist/collection/components/navbar/test/navbar.a11y.play.js +26 -0
- package/dist/collection/components/navbar/test/navbar.component.play.js +76 -0
- package/dist/collection/components/navbar/test/navbar.visual.play.js +14 -0
- package/dist/collection/components/notification/notification.host.css +1 -1
- package/dist/collection/components/notification/notification.js +14 -26
- package/dist/collection/components/number-input/number-input.host.css +1 -1
- package/dist/collection/components/number-input/number-input.js +23 -24
- package/dist/collection/components/pagination/pagination.host.css +1 -1
- package/dist/collection/components/pagination/pagination.js +29 -28
- package/dist/collection/components/popup/popup.host.css +1 -0
- package/dist/collection/components/popup/popup.interfaces.js +18 -0
- package/dist/collection/components/popup/popup.js +869 -0
- package/dist/collection/components/popup/test/popup.a11y.play.js +50 -0
- package/dist/collection/components/popup/test/popup.component.play.js +168 -0
- package/dist/collection/components/popup/test/popup.visual.play.js +33 -0
- package/dist/collection/components/progress-bar/progress-bar.host.css +1 -1
- package/dist/collection/components/progress-bar/progress-bar.js +13 -20
- package/dist/collection/components/radio/radio-group/radio-group.host.css +1 -1
- package/dist/collection/components/radio/radio-group/radio-group.js +60 -24
- package/dist/collection/components/radio/radio.host.css +1 -1
- package/dist/collection/components/radio/radio.js +48 -20
- package/dist/collection/components/radio/test/radio.visual.play.js +3 -0
- package/dist/collection/components/segment/segment/segment.host.css +1 -1
- package/dist/collection/components/segment/segment/segment.js +19 -20
- package/dist/collection/components/segment/segment-item.js +6 -7
- package/dist/collection/components/select/select-optgroup.host.css +1 -0
- package/dist/collection/components/select/select-optgroup.js +82 -0
- package/dist/collection/components/select/select-option.host.css +1 -0
- package/dist/collection/components/select/select-option.js +112 -0
- package/dist/collection/components/select/select.host.css +1 -0
- package/dist/collection/components/select/select.i18n.js +45 -0
- package/dist/collection/components/select/select.interfaces.js +4 -0
- package/dist/collection/components/select/select.js +1024 -0
- package/dist/collection/components/select/select.picker.js +276 -0
- package/dist/collection/components/select/test/select.a11y.play.js +81 -0
- package/dist/collection/components/select/test/select.component.play.js +184 -0
- package/dist/collection/components/select/test/select.visual.play.js +70 -0
- package/dist/collection/components/shape/shape.js +7 -14
- package/dist/collection/components/spinner/spinner.js +18 -26
- package/dist/collection/components/stack/stack.host.css +1 -1
- package/dist/collection/components/stack/stack.js +41 -153
- package/dist/collection/components/steps/step/step.host.css +1 -0
- package/dist/collection/components/steps/step/step.js +431 -0
- package/dist/collection/components/steps/step-panel/step-panel.host.css +1 -0
- package/dist/collection/components/steps/step-panel/step-panel.js +104 -0
- package/dist/collection/components/steps/steps/steps.host.css +1 -0
- package/dist/collection/components/steps/steps/steps.js +356 -0
- package/dist/collection/components/steps/steps.interfaces.js +4 -0
- package/dist/collection/components/steps/test/steps.a11y.play.js +73 -0
- package/dist/collection/components/steps/test/steps.component.play.js +182 -0
- package/dist/collection/components/steps/test/steps.visual.play.js +18 -0
- package/dist/collection/components/tabs/tab/tab.host.css +1 -0
- package/dist/collection/components/tabs/tab/tab.js +278 -0
- package/dist/collection/components/tabs/tab-panel/tab-panel.host.css +1 -0
- package/dist/collection/components/tabs/tab-panel/tab-panel.js +104 -0
- package/dist/collection/components/tabs/tabs/tabs.host.css +1 -0
- package/dist/collection/components/tabs/tabs/tabs.i18n.js +45 -0
- package/dist/collection/components/tabs/tabs/tabs.js +552 -0
- package/dist/collection/components/tabs/tabs.interfaces.js +12 -0
- package/dist/collection/components/tabs/test/tabs.a11y.play.js +60 -0
- package/dist/collection/components/tabs/test/tabs.component.play.js +129 -0
- package/dist/collection/components/tabs/test/tabs.visual.play.js +31 -0
- package/dist/collection/components/tag/tag-group/tag-group.js +1 -1
- package/dist/collection/components/tag/tag.js +15 -26
- package/dist/collection/components/text/text.host.css +1 -1
- package/dist/collection/components/text/text.js +23 -30
- package/dist/collection/components/textarea/textarea.host.css +1 -1
- package/dist/collection/components/textarea/textarea.js +24 -25
- package/dist/collection/components/time-input/test/time-input.visual.play.js +18 -0
- package/dist/collection/components/toggle/toggle.js +19 -20
- package/dist/collection/components/tooltip/test/tooltip.a11y.play.js +32 -0
- package/dist/collection/components/tooltip/test/tooltip.component.play.js +51 -0
- package/dist/collection/components/tooltip/test/tooltip.visual.play.js +16 -0
- package/dist/collection/components/tooltip/tooltip.host.css +1 -0
- package/dist/collection/components/tooltip/tooltip.interfaces.js +4 -0
- package/dist/collection/components/tooltip/tooltip.js +407 -0
- package/dist/collection/foundation/colors.visual.play.js +18 -0
- package/dist/collection/global/config/config.const.js +11 -0
- package/dist/collection/global/config/config.default.js +92 -42
- package/dist/collection/global/config/config.js +1 -1
- package/dist/collection/global/config/config.meta.js +27 -0
- package/dist/collection/global/config/index.js +1 -0
- package/dist/collection/global/config/initialize.js +2 -1
- package/dist/collection/global/constants/tags.constant.js +30 -1
- package/dist/collection/global/constants/version.constant.js +1 -1
- package/dist/collection/global/index.js +0 -1
- package/dist/collection/global/initialize.js +2 -0
- package/dist/collection/index.js +5 -20
- package/dist/collection/utils/attributes.js +0 -15
- package/dist/collection/utils/focus.js +72 -0
- package/dist/collection/utils/form-control.js +1 -1
- package/dist/collection/utils/has-value.js +7 -0
- package/dist/collection/utils/helpers.js +14 -74
- package/dist/collection/utils/index.js +7 -5
- package/dist/collection/utils/{property-checkers/is-value-empty.js → is-value-empty.js} +1 -1
- package/dist/collection/utils/number.js +6 -25
- package/dist/collection/utils/property-decorators/array-of.js +25 -0
- package/dist/collection/utils/property-decorators/bound.js +79 -0
- package/dist/collection/utils/property-decorators/create-validator-decorator.js +212 -0
- package/dist/collection/utils/property-decorators/date.js +24 -0
- package/dist/collection/utils/property-decorators/index.js +12 -0
- package/dist/collection/utils/property-decorators/iso-date.js +24 -0
- package/dist/collection/utils/property-decorators/one-of.js +25 -0
- package/dist/collection/utils/property-decorators/pattern.js +25 -0
- package/dist/collection/utils/property-decorators/required.js +44 -0
- package/dist/collection/utils/property-decorators/type.js +28 -0
- package/dist/collection/utils/property-decorators/url.js +32 -0
- package/dist/collection/utils/property-types.js +1 -0
- package/dist/collection/utils/svg.js +19 -0
- package/dist/design-system/design-system.esm.js +1 -1
- package/dist/design-system/index.esm.js +1 -1
- package/dist/design-system/p-00e6b1b780.entry.js +4 -0
- package/dist/design-system/p-0bf3d4d939.entry.js +4 -0
- package/dist/design-system/p-0ea6cdd218.entry.js +4 -0
- package/dist/design-system/p-0f2a87fa39.entry.js +4 -0
- package/dist/design-system/p-138be1f0cc.entry.js +4 -0
- package/dist/design-system/p-16b03e0b02.entry.js +4 -0
- package/dist/design-system/p-1750b3c4f1.entry.js +4 -0
- package/dist/design-system/p-1A9jKraP.js +4 -0
- package/dist/design-system/p-1b1e3ad99c.entry.js +4 -0
- package/dist/design-system/p-24c85e99f5.entry.js +4 -0
- package/dist/design-system/p-2b038255c5.entry.js +4 -0
- package/dist/design-system/p-2bb98dfa2f.entry.js +4 -0
- package/dist/design-system/p-2eb6067210.entry.js +4 -0
- package/dist/design-system/p-32e156bc72.entry.js +4 -0
- package/dist/design-system/p-3824068ae7.entry.js +4 -0
- package/dist/design-system/p-3aa3841834.entry.js +4 -0
- package/dist/design-system/p-3d2539929c.entry.js +4 -0
- package/dist/design-system/p-3d675c6507.entry.js +4 -0
- package/dist/design-system/p-3e3a6799d6.entry.js +4 -0
- package/dist/design-system/p-3e43fa2bc6.entry.js +4 -0
- package/dist/design-system/p-4284d6d646.entry.js +4 -0
- package/dist/design-system/{p-1d312498a6.entry.js → p-44981aaf8d.entry.js} +1 -1
- package/dist/design-system/p-4b2a59576c.entry.js +4 -0
- package/dist/design-system/p-4bfc094a03.entry.js +4 -0
- package/dist/design-system/p-53d9a40010.entry.js +4 -0
- package/dist/design-system/p-564ee4d78f.entry.js +4 -0
- package/dist/design-system/p-599a693db3.entry.js +4 -0
- package/dist/design-system/p-5a6c6959fa.entry.js +4 -0
- package/dist/design-system/p-5d4a5d0b61.entry.js +4 -0
- package/dist/design-system/p-5ded2b6438.entry.js +4 -0
- package/dist/design-system/p-5f1a8be21c.entry.js +4 -0
- package/dist/design-system/p-5f28436626.entry.js +4 -0
- package/dist/design-system/p-6c60833550.entry.js +4 -0
- package/dist/design-system/p-7246bfb9a0.entry.js +4 -0
- package/dist/design-system/p-77e7a6a068.entry.js +4 -0
- package/dist/design-system/p-78112e7b35.entry.js +4 -0
- package/dist/design-system/p-7ebdd14afc.entry.js +4 -0
- package/dist/design-system/p-7f42c18249.entry.js +4 -0
- package/dist/design-system/p-85bf3794f9.entry.js +4 -0
- package/dist/design-system/p-8a9d617f75.entry.js +4 -0
- package/dist/design-system/p-908e7b073a.entry.js +4 -0
- package/dist/design-system/p-9f9364d7df.entry.js +4 -0
- package/dist/design-system/p-B-en4B17.js +4 -0
- package/dist/design-system/p-B-v2Wm-V.js +5 -0
- package/dist/design-system/p-B8KVoKrH.js +5 -0
- package/dist/design-system/p-B8PCdo6e.js +4 -0
- package/dist/design-system/p-BAY6Z8bT.js +4 -0
- package/dist/design-system/{p-C7EnKCpl.js → p-BMM6Nxeh.js} +1 -1
- package/{components/p-Diz11uvt.js → dist/design-system/p-BPGfTrrM.js} +1 -1
- package/dist/design-system/p-BqY0KzJC.js +4 -0
- package/dist/design-system/p-BrJFPhMA.js +4 -0
- package/dist/design-system/p-C1jqbZdf.js +4 -0
- package/dist/design-system/{p-DCf2fJmI.js → p-C5Rtikeh.js} +1 -1
- package/dist/design-system/p-CDhvZoCt.js +4 -0
- package/dist/design-system/p-CGHN-3RC.js +4 -0
- package/dist/design-system/{p-CAcwu8uP.js → p-CfgwSore.js} +1 -1
- package/dist/design-system/p-ChSKXFK5.js +4 -0
- package/dist/design-system/{p-BLPSziW-.js → p-Chgme2NJ.js} +1 -1
- package/{components/p-5Sp1eJOt.js → dist/design-system/p-CrYAd3JT.js} +1 -1
- package/dist/design-system/p-CziF75uh.js +4 -0
- package/dist/design-system/p-DJBD4skP.js +14 -0
- package/{components/p-E1SnOz0L.js → dist/design-system/p-DOvdnojj.js} +1 -1
- package/dist/design-system/p-DYPX3A8m.js +4 -0
- package/dist/design-system/p-DiUgZKWs.js +4 -0
- package/dist/design-system/p-Dk0GEN2t.js +4 -0
- package/dist/design-system/p-DkhJaoXg.js +4 -0
- package/dist/design-system/p-DoHCSvjl.js +4 -0
- package/dist/design-system/p-DypNSUAh.js +4 -0
- package/dist/design-system/p-Uy_dVz21.js +4 -0
- package/dist/design-system/{p-Dnjznncd.js → p-Y0rKqVvm.js} +1 -1
- package/dist/design-system/p-Z0zrglhd.js +4 -0
- package/dist/design-system/p-a42ecb68a0.entry.js +4 -0
- package/dist/design-system/p-a782c877ea.entry.js +4 -0
- package/dist/design-system/p-a8df8f067b.entry.js +4 -0
- package/dist/design-system/p-aa3aee2591.entry.js +4 -0
- package/dist/design-system/p-aa3c0ff536.entry.js +4 -0
- package/dist/design-system/p-ab8bee7022.entry.js +4 -0
- package/dist/design-system/p-adc58b2821.entry.js +4 -0
- package/dist/design-system/p-b390490b0d.entry.js +4 -0
- package/dist/design-system/p-b44641ec28.entry.js +4 -0
- package/dist/design-system/p-b4738dc266.entry.js +4 -0
- package/dist/design-system/p-b851a43fff.entry.js +4 -0
- package/dist/design-system/p-b8669a617c.entry.js +4 -0
- package/dist/design-system/p-b8f626bf28.entry.js +4 -0
- package/dist/design-system/p-bd543e1baf.entry.js +4 -0
- package/dist/design-system/p-ce67cbbed5.entry.js +4 -0
- package/dist/design-system/p-d3a80b8422.entry.js +4 -0
- package/dist/design-system/p-d4d9205dda.entry.js +4 -0
- package/dist/design-system/p-dbd3d3b3d3.entry.js +4 -0
- package/{components/p-BATOumsf.js → dist/design-system/p-dziB1ufg.js} +1 -1
- package/dist/design-system/p-e0b2d6e296.entry.js +4 -0
- package/dist/design-system/p-e94ee7391c.entry.js +4 -0
- package/dist/design-system/p-ee76bf354e.entry.js +4 -0
- package/dist/design-system/p-f7be5b6114.entry.js +4 -0
- package/dist/design-system/p-fa613cd0d1.entry.js +4 -0
- package/dist/design-system/p-faf75173db.entry.js +4 -0
- package/dist/design-system/p-fff38e1ca7.entry.js +4 -0
- package/dist/design-system/p-x2KazRjl.js +4 -0
- package/dist/esm/{_getTag-DFxL3s3h.js → _getTag-BkweuRJc.js} +1 -1
- package/dist/esm/array-BJZA868l.js +1984 -0
- package/dist/esm/{breakpoints.decorator-L2xeP46f.js → breakpoints.decorator-D9M4v98c.js} +1 -1
- package/dist/esm/{breakpoints.subject-BhbzG-rl.js → breakpoints.subject-DHZ7TzYV.js} +3 -3
- package/dist/esm/{button.interfaces-BkESlUMc.js → button.interfaces-BPGfTrrM.js} +1 -1
- package/dist/esm/carousel.interfaces-B-en4B17.js +8 -0
- package/dist/esm/{config.decorator-BQNIja4k.js → config.decorator-CRYVBTkX.js} +1 -1
- package/dist/esm/{config.utils-COlKFRlV.js → config.utils-CR4Xudpz.js} +1 -1
- package/dist/esm/create-validator-decorator-fUav5byo.js +208 -0
- package/dist/esm/design-system.js +4 -4
- package/dist/esm/{device-Dhwt3m7W.js → device-CapioAfe.js} +1 -1
- package/dist/esm/ds-accordion.entry.js +30 -34
- package/dist/esm/ds-alert-container.entry.js +12 -15
- package/dist/esm/ds-app.entry.js +16 -6
- package/dist/esm/ds-badge.entry.js +33 -26
- package/dist/esm/ds-button-group.entry.js +14 -17
- package/dist/esm/ds-button_2.entry.js +58 -73
- package/dist/esm/ds-card-actions.entry.js +6 -8
- package/dist/esm/ds-card-content.entry.js +3 -3
- package/dist/esm/ds-card-header.entry.js +8 -5
- package/dist/esm/ds-card-subtitle.entry.js +13 -13
- package/dist/esm/ds-card-title.entry.js +11 -7
- package/dist/esm/ds-card.entry.js +32 -43
- package/dist/esm/ds-carousel-item.entry.js +126 -0
- package/dist/esm/ds-carousel.entry.js +471 -0
- package/dist/esm/ds-checkbox-group.entry.js +59 -2012
- package/dist/esm/ds-checkbox.entry.js +33 -20
- package/dist/esm/ds-content_2.entry.js +327 -0
- package/dist/esm/ds-data-item.entry.js +144 -0
- package/dist/esm/ds-data-label.entry.js +39 -0
- package/dist/esm/ds-data-value.entry.js +29 -0
- package/dist/esm/ds-data.entry.js +41 -0
- package/dist/esm/ds-date.entry.js +5332 -0
- package/dist/esm/{ds-logo.entry.js → ds-divider_2.entry.js} +130 -26
- package/dist/esm/ds-drawer_2.entry.js +599 -0
- package/dist/esm/ds-file-upload.entry.js +514 -0
- package/dist/esm/ds-footer.entry.js +157 -0
- package/dist/esm/ds-heading.entry.js +22 -20
- package/dist/esm/ds-hint-text.entry.js +26 -0
- package/dist/esm/ds-hint-title.entry.js +29 -0
- package/dist/esm/ds-hint.entry.js +241 -0
- package/dist/esm/ds-icon_2.entry.js +80 -71
- package/dist/esm/ds-input-slider.entry.js +2883 -0
- package/dist/esm/ds-input.entry.js +46 -44
- package/dist/esm/ds-item.entry.js +29 -34
- package/dist/esm/ds-label.entry.js +23 -31
- package/dist/esm/ds-list.entry.js +6 -12
- package/dist/esm/ds-modal-body.entry.js +32 -0
- package/dist/esm/ds-modal-header.entry.js +29 -0
- package/dist/esm/ds-modal.entry.js +199 -0
- package/dist/esm/ds-navbar.entry.js +357 -0
- package/dist/esm/ds-notification.entry.js +20 -28
- package/dist/esm/ds-number-input.entry.js +102 -114
- package/dist/esm/ds-pagination.entry.js +41 -37
- package/dist/esm/ds-progress-bar.entry.js +25 -29
- package/dist/esm/ds-radio-group.entry.js +49 -31
- package/dist/esm/ds-radio.entry.js +35 -33
- package/dist/esm/ds-segment-item.entry.js +9 -9
- package/dist/esm/ds-segment.entry.js +28 -116
- package/dist/esm/ds-select-optgroup.entry.js +47 -0
- package/dist/esm/ds-select-option.entry.js +55 -0
- package/dist/esm/ds-select.entry.js +2770 -0
- package/dist/esm/ds-shape.entry.js +10 -16
- package/dist/esm/ds-snackbar.entry.js +41 -58
- package/dist/esm/ds-step-panel.entry.js +53 -0
- package/dist/esm/ds-step.entry.js +168 -0
- package/dist/esm/ds-steps.entry.js +225 -0
- package/dist/esm/ds-tab-panel.entry.js +53 -0
- package/dist/esm/ds-tab.entry.js +118 -0
- package/dist/esm/ds-tabs.entry.js +362 -0
- package/dist/esm/ds-tag-group.entry.js +3 -3
- package/dist/esm/ds-tag.entry.js +19 -26
- package/dist/esm/ds-text.entry.js +29 -33
- package/dist/esm/ds-textarea.entry.js +33 -32
- package/dist/esm/ds-toast.entry.js +41 -55
- package/dist/esm/ds-toggle.entry.js +22 -21
- package/dist/esm/ds-tooltip.entry.js +180 -0
- package/dist/esm/{field.util-BXxRO7CD.js → field.util-neIQBS-h.js} +1 -1
- package/dist/esm/floating-ui.dom-BqY0KzJC.js +1621 -0
- package/dist/esm/focus-6OAqvfus.js +1956 -0
- package/dist/esm/footer.i18n-BrJFPhMA.js +159 -0
- package/dist/esm/{form-control-D2O-sb65.js → form-control-DhinyMa9.js} +2 -2
- package/dist/esm/has-value-Dmsj8ZQw.js +10 -0
- package/dist/esm/{index-CuwLeg-T.js → index-B-v2Wm-V.js} +501 -175
- package/dist/esm/index.js +13 -8273
- package/dist/esm/{input.interfaces-C7EnKCpl.js → input.interfaces-BMM6Nxeh.js} +1 -1
- package/dist/esm/isArray-B8PCdo6e.js +40 -0
- package/dist/esm/isNaN-BrbqGXXw.js +104 -0
- package/dist/esm/{isObjectLike-BAYao9w7.js → isObjectLike-BnBXjF_n.js} +1 -37
- package/dist/esm/keyboard-Uy_dVz21.js +20 -0
- package/dist/esm/{listener-C_kjUVTE.js → listener-DIZDQOuO.js} +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/luxon-C1jqbZdf.js +8133 -0
- package/dist/esm/one-of-CjRvS2Tk.js +28 -0
- package/dist/esm/popup.interfaces-BAY6Z8bT.js +20 -0
- package/dist/esm/required-Dtml5IID.js +36 -0
- package/dist/esm/resize.decorator-eogZBBk6.js +96 -0
- package/dist/esm/scroll-v2MaEkiZ.js +87 -0
- package/dist/esm/svg-B8KVoKrH.js +2440 -0
- package/dist/esm/{tslib.es6-tdchDLyb.js → tslib.es6-n47B6oUi.js} +1 -1
- package/dist/esm/type-7qEQcw90.js +31 -0
- package/dist/types/components/accordion/accordion.d.ts +0 -5
- package/dist/types/components/alert/alert-container.d.ts +0 -5
- package/dist/types/components/alert/snackbar/snackbar.d.ts +0 -5
- package/dist/types/components/alert/toast/toast.d.ts +0 -5
- package/dist/types/components/badge/badge.d.ts +1 -3
- package/dist/types/components/badge/badge.interfaces.d.ts +1 -1
- package/dist/types/components/button/button-group/button-group.d.ts +0 -5
- package/dist/types/components/button/button.d.ts +1 -3
- package/dist/types/components/button/button.interfaces.d.ts +1 -1
- package/dist/types/components/card/card-actions/card-actions.d.ts +0 -1
- package/dist/types/components/card/card-subtitle/card-subtitle.d.ts +0 -1
- package/dist/types/components/card/card.d.ts +2 -4
- package/dist/types/components/carousel/carousel/carousel.d.ts +114 -0
- package/dist/types/components/carousel/carousel/carousel.i18n.d.ts +9 -0
- package/dist/types/components/carousel/carousel-item/carousel-item.d.ts +70 -0
- package/dist/types/components/carousel/carousel.interfaces.d.ts +14 -0
- package/dist/types/components/carousel/test/carousel.a11y.play.d.ts +1 -0
- package/dist/types/components/carousel/test/carousel.component.play.d.ts +1 -0
- package/dist/types/components/carousel/test/carousel.visual.play.d.ts +1 -0
- package/dist/types/components/checkbox/checkbox-group/checkbox-group.d.ts +6 -0
- package/dist/types/components/checkbox/checkbox.d.ts +4 -0
- package/dist/types/components/close/close.d.ts +1 -3
- package/dist/types/components/content/content.d.ts +2 -5
- package/dist/types/components/data/data-item.d.ts +43 -0
- package/dist/types/components/data/data-item.i18n.d.ts +6 -0
- package/dist/types/components/data/data-item.interfaces.d.ts +4 -0
- package/dist/types/components/data/data-label.d.ts +19 -0
- package/dist/types/components/data/data-label.interfaces.d.ts +3 -0
- package/dist/types/components/data/data-value.d.ts +15 -0
- package/dist/types/components/data/data-value.interfaces.d.ts +5 -0
- package/dist/types/components/data/data.d.ts +19 -0
- package/dist/types/components/data/data.interfaces.d.ts +4 -0
- package/dist/types/components/data/test/data.a11y.play.d.ts +1 -0
- package/dist/types/components/data/test/data.component.play.d.ts +1 -0
- package/dist/types/components/data/test/data.visual.play.d.ts +1 -0
- package/dist/types/components/date/date.d.ts +214 -0
- package/dist/types/components/date/date.i18n.d.ts +13 -0
- package/dist/types/components/date/date.interfaces.d.ts +18 -0
- package/dist/types/components/date/date.mask.d.ts +29 -0
- package/dist/types/components/date/date.picker.d.ts +67 -0
- package/dist/types/components/date/test/date.a11y.play.d.ts +1 -0
- package/dist/types/components/date/test/date.component.play.d.ts +1 -0
- package/dist/types/components/date/test/date.visual.play.d.ts +1 -0
- package/dist/types/components/divider/divider.d.ts +1 -3
- package/dist/types/components/drawer/drawer.d.ts +102 -0
- package/dist/types/components/drawer/drawer.interfaces.d.ts +8 -0
- package/dist/types/components/drawer/test/drawer.a11y.play.d.ts +1 -0
- package/dist/types/components/drawer/test/drawer.component.play.d.ts +1 -0
- package/dist/types/components/drawer/test/drawer.visual.play.d.ts +1 -0
- package/dist/types/components/file-upload/file-upload.d.ts +192 -0
- package/dist/types/components/file-upload/file-upload.i18n.d.ts +8 -0
- package/dist/types/components/file-upload/file-upload.interfaces.d.ts +24 -0
- package/dist/types/components/file-upload/test/file-upload.a11y.play.d.ts +1 -0
- package/dist/types/components/file-upload/test/file-upload.component.play.d.ts +1 -0
- package/dist/types/components/file-upload/test/file-upload.visual.play.d.ts +1 -0
- package/dist/types/components/file-upload/utils/file-list.util.d.ts +2 -0
- package/dist/types/components/file-upload/utils/file-size.util.d.ts +1 -0
- package/dist/types/components/file-upload/utils/file-validation.util.d.ts +13 -0
- package/dist/types/components/footer/footer.d.ts +68 -0
- package/dist/types/components/footer/footer.i18n.d.ts +7 -0
- package/dist/types/components/footer/footer.interfaces.d.ts +19 -0
- package/dist/types/components/footer/test/footer.a11y.play.d.ts +1 -0
- package/dist/types/components/footer/test/footer.component.play.d.ts +1 -0
- package/dist/types/components/footer/test/footer.visual.play.d.ts +1 -0
- package/dist/types/components/hint/hint-text/hint-text.d.ts +15 -0
- package/dist/types/components/hint/hint-title/hint-title.d.ts +16 -0
- package/dist/types/components/hint/hint.d.ts +87 -0
- package/dist/types/components/hint/hint.i18n.d.ts +6 -0
- package/dist/types/components/hint/hint.interfaces.d.ts +4 -0
- package/dist/types/components/hint/test/hint.a11y.play.d.ts +1 -0
- package/dist/types/components/hint/test/hint.component.play.d.ts +1 -0
- package/dist/types/components/hint/test/hint.visual.play.d.ts +1 -0
- package/dist/types/components/icon/icon.d.ts +7 -3
- package/dist/types/components/icon/icon.interfaces.d.ts +1 -1
- package/dist/types/components/input/clear-button.i18n.d.ts +6 -0
- package/dist/types/components/input/clear-button.util.d.ts +10 -0
- package/dist/types/components/input/trigger-button.i18n.d.ts +7 -0
- package/dist/types/components/input-slider/input-slider.d.ts +186 -0
- package/dist/types/components/input-slider/input-slider.interfaces.d.ts +18 -0
- package/dist/types/components/input-slider/input-slider.picker.d.ts +37 -0
- package/dist/types/components/input-slider/input-slider.utils.d.ts +18 -0
- package/dist/types/components/input-slider/test/input-slider.a11y.play.d.ts +1 -0
- package/dist/types/components/input-slider/test/input-slider.component.play.d.ts +1 -0
- package/dist/types/components/input-slider/test/input-slider.visual.play.d.ts +1 -0
- package/dist/types/components/label/label.d.ts +3 -5
- package/dist/types/components/list/item/item.d.ts +0 -5
- package/dist/types/components/list/item/item.interfaces.d.ts +1 -1
- package/dist/types/components/list/list.d.ts +0 -5
- package/dist/types/components/list/test/list.visual.play.d.ts +1 -0
- package/dist/types/components/logo/logo.d.ts +1 -2
- package/dist/types/components/modal/modal-body/modal-body.d.ts +15 -0
- package/dist/types/components/modal/modal-header/modal-header.d.ts +17 -0
- package/dist/types/components/modal/modal.controller.d.ts +3 -0
- package/dist/types/components/modal/modal.d.ts +97 -0
- package/dist/types/components/modal/modal.interfaces.d.ts +15 -0
- package/dist/types/components/modal/test/modal.a11y.play.d.ts +1 -0
- package/dist/types/components/modal/test/modal.component.play.d.ts +1 -0
- package/dist/types/components/modal/test/modal.visual.play.d.ts +1 -0
- package/dist/types/components/navbar/navbar.d.ts +128 -0
- package/dist/types/components/navbar/navbar.i18n.d.ts +9 -0
- package/dist/types/components/navbar/navbar.interfaces.d.ts +10 -0
- package/dist/types/components/navbar/test/navbar.a11y.play.d.ts +1 -0
- package/dist/types/components/navbar/test/navbar.component.play.d.ts +1 -0
- package/dist/types/components/navbar/test/navbar.visual.play.d.ts +1 -0
- package/dist/types/components/notification/notification.d.ts +1 -3
- package/dist/types/components/pagination/pagination.d.ts +0 -5
- package/dist/types/components/popup/popup.d.ts +152 -0
- package/dist/types/components/popup/popup.interfaces.d.ts +14 -0
- package/dist/types/components/popup/test/popup.a11y.play.d.ts +1 -0
- package/dist/types/components/popup/test/popup.component.play.d.ts +1 -0
- package/dist/types/components/popup/test/popup.visual.play.d.ts +1 -0
- package/dist/types/components/progress-bar/progress-bar.d.ts +0 -5
- package/dist/types/components/radio/radio-group/radio-group.d.ts +6 -0
- package/dist/types/components/radio/radio.d.ts +4 -0
- package/dist/types/components/select/select-optgroup.d.ts +28 -0
- package/dist/types/components/select/select-option.d.ts +34 -0
- package/dist/types/components/select/select.d.ts +193 -0
- package/dist/types/components/select/select.i18n.d.ts +7 -0
- package/dist/types/components/select/select.interfaces.d.ts +16 -0
- package/dist/types/components/select/select.picker.d.ts +57 -0
- package/dist/types/components/select/test/select.a11y.play.d.ts +1 -0
- package/dist/types/components/select/test/select.component.play.d.ts +1 -0
- package/dist/types/components/select/test/select.visual.play.d.ts +1 -0
- package/dist/types/components/shape/shape.d.ts +2 -7
- package/dist/types/components/spinner/spinner.d.ts +0 -2
- package/dist/types/components/stack/stack.d.ts +7 -19
- package/dist/types/components/steps/step/step.d.ts +89 -0
- package/dist/types/components/steps/step-panel/step-panel.d.ts +34 -0
- package/dist/types/components/steps/steps/steps.d.ts +77 -0
- package/dist/types/components/steps/steps.interfaces.d.ts +10 -0
- package/dist/types/components/steps/test/steps.a11y.play.d.ts +1 -0
- package/dist/types/components/steps/test/steps.component.play.d.ts +1 -0
- package/dist/types/components/steps/test/steps.visual.play.d.ts +1 -0
- package/dist/types/components/tabs/tab/tab.d.ts +67 -0
- package/dist/types/components/tabs/tab-panel/tab-panel.d.ts +34 -0
- package/dist/types/components/tabs/tabs/tabs.d.ts +97 -0
- package/dist/types/components/tabs/tabs/tabs.i18n.d.ts +7 -0
- package/dist/types/components/tabs/tabs.interfaces.d.ts +12 -0
- package/dist/types/components/tabs/test/tabs.a11y.play.d.ts +1 -0
- package/dist/types/components/tabs/test/tabs.component.play.d.ts +1 -0
- package/dist/types/components/tabs/test/tabs.visual.play.d.ts +1 -0
- package/dist/types/components/tag/tag.d.ts +1 -3
- package/dist/types/components/text/text.d.ts +2 -7
- package/dist/types/components/time-input/test/time-input.visual.play.d.ts +1 -0
- package/dist/types/components/tooltip/test/tooltip.a11y.play.d.ts +1 -0
- package/dist/types/components/tooltip/test/tooltip.component.play.d.ts +1 -0
- package/dist/types/components/tooltip/test/tooltip.visual.play.d.ts +1 -0
- package/dist/types/components/tooltip/tooltip.d.ts +85 -0
- package/dist/types/components/tooltip/tooltip.interfaces.d.ts +10 -0
- package/dist/types/components.d.ts +5162 -1870
- package/dist/types/foundation/colors.visual.play.d.ts +1 -0
- package/dist/types/global/config/config.const.d.ts +3 -0
- package/dist/types/global/config/config.default.d.ts +0 -40
- package/dist/types/global/config/config.meta.d.ts +2 -0
- package/dist/types/global/config/config.types.d.ts +27 -0
- package/dist/types/global/config/index.d.ts +1 -0
- package/dist/types/global/index.d.ts +0 -1
- package/dist/types/home/runner/work/design-system/design-system/packages/core/.stencil/packages/playwright/src/lib/components/carousel.po.d.ts +12 -0
- package/dist/types/home/runner/work/design-system/design-system/packages/core/.stencil/packages/playwright/src/lib/components/data-item.po.d.ts +16 -0
- package/dist/types/home/runner/work/design-system/design-system/packages/core/.stencil/packages/playwright/src/lib/components/data.po.d.ts +12 -0
- package/dist/types/home/runner/work/design-system/design-system/packages/core/.stencil/packages/playwright/src/lib/components/date.po.d.ts +15 -0
- package/dist/types/home/runner/work/design-system/design-system/packages/core/.stencil/packages/playwright/src/lib/components/drawer.po.d.ts +11 -0
- package/dist/types/home/runner/work/design-system/design-system/packages/core/.stencil/packages/playwright/src/lib/components/file-upload.po.d.ts +16 -0
- package/dist/types/home/runner/work/design-system/design-system/packages/core/.stencil/packages/playwright/src/lib/components/footer.po.d.ts +16 -0
- package/dist/types/home/runner/work/design-system/design-system/packages/core/.stencil/packages/playwright/src/lib/components/hint.po.d.ts +10 -0
- package/dist/types/home/runner/work/design-system/design-system/packages/core/.stencil/packages/playwright/src/lib/components/index.d.ts +16 -0
- package/dist/types/home/runner/work/design-system/design-system/packages/core/.stencil/packages/playwright/src/lib/components/input-slider.po.d.ts +18 -0
- package/dist/types/home/runner/work/design-system/design-system/packages/core/.stencil/packages/playwright/src/lib/components/modal.po.d.ts +15 -0
- package/dist/types/home/runner/work/design-system/design-system/packages/core/.stencil/packages/playwright/src/lib/components/navbar.po.d.ts +13 -0
- package/dist/types/home/runner/work/design-system/design-system/packages/core/.stencil/packages/playwright/src/lib/components/popup.po.d.ts +11 -0
- package/dist/types/home/runner/work/design-system/design-system/packages/core/.stencil/packages/playwright/src/lib/components/select.po.d.ts +24 -0
- package/dist/types/home/runner/work/design-system/design-system/packages/core/.stencil/packages/playwright/src/lib/components/steps.po.d.ts +13 -0
- package/dist/types/home/runner/work/design-system/design-system/packages/core/.stencil/packages/playwright/src/lib/components/tabs.po.d.ts +13 -0
- package/dist/types/home/runner/work/design-system/design-system/packages/core/.stencil/packages/playwright/src/lib/components/tooltip.po.d.ts +6 -0
- package/dist/types/home/runner/work/design-system/design-system/packages/core/.stencil/packages/playwright/src/lib/page/utils/goto.d.ts +1 -1
- package/dist/types/index.d.ts +4 -1
- package/dist/types/stencil-public-runtime.d.ts +1 -0
- package/dist/types/utils/attributes.d.ts +0 -8
- package/dist/types/utils/focus.d.ts +18 -0
- package/dist/types/utils/form-control.d.ts +2 -2
- package/dist/types/utils/has-value.d.ts +1 -0
- package/dist/types/utils/index.d.ts +7 -5
- package/dist/types/utils/number.d.ts +0 -3
- package/dist/types/utils/property-decorators/array-of.d.ts +9 -0
- package/dist/types/utils/property-decorators/bound.d.ts +36 -0
- package/dist/types/utils/property-decorators/create-validator-decorator.d.ts +48 -0
- package/dist/types/utils/property-decorators/date.d.ts +6 -0
- package/dist/types/utils/property-decorators/index.d.ts +9 -0
- package/dist/types/utils/property-decorators/iso-date.d.ts +6 -0
- package/dist/types/utils/property-decorators/one-of.d.ts +8 -0
- package/dist/types/utils/property-decorators/pattern.d.ts +8 -0
- package/dist/types/utils/property-decorators/required.d.ts +17 -0
- package/dist/types/utils/property-decorators/type.d.ts +9 -0
- package/dist/types/utils/property-decorators/url.d.ts +6 -0
- package/dist/types/utils/svg.d.ts +2 -0
- package/docs/cem.json +18228 -0
- package/docs/components.json +39621 -17240
- package/docs/html.html-data.json +1664 -159
- package/docs/tags.json +30 -1
- package/package.json +46 -38
- package/sbom.cdx.json +58887 -0
- package/README.md +0 -33
- package/components/p-82RSSk25.js +0 -4
- package/components/p-BEngECpF.js +0 -4
- package/components/p-BMBthpLd.js +0 -4
- package/components/p-BNY3JzuV.js +0 -4
- package/components/p-BOTkpyFe.js +0 -5
- package/components/p-BOgMmRCt.js +0 -4
- package/components/p-CDYlUuhB.js +0 -4
- package/components/p-Cb75Rr6o.js +0 -4
- package/components/p-CojUmpFm.js +0 -4
- package/components/p-DHeVI6dR.js +0 -4
- package/components/p-DTPbL3uY.js +0 -4
- package/components/p-DnnGnukM.js +0 -4
- package/components/p-DtuTnY5l.js +0 -4
- package/components/p-JZ1uDtZv.js +0 -4
- package/components/p-cSbDziZm.js +0 -4
- package/components/p-gA-94RPS.js +0 -4
- package/components/p-xDEngwqW.js +0 -4
- package/dist/cjs/contact-SPfz2A_q.js +0 -1647
- package/dist/cjs/ds-content.cjs.entry.js +0 -154
- package/dist/cjs/ds-divider.cjs.entry.js +0 -131
- package/dist/cjs/ds-stack.cjs.entry.js +0 -224
- package/dist/cjs/isEmpty-BmKp4bH4.js +0 -99
- package/dist/cjs/stack.interfaces-6vlKvBmb.js +0 -68
- package/dist/cjs/svg-D7Mwbcvp.js +0 -1482
- package/dist/cjs/validate.decorator-C9-9HA0Y.js +0 -115
- package/dist/collection/global/constants/icons.constant.js +0 -42
- package/dist/collection/utils/element-states/element-states.decorator.js +0 -23
- package/dist/collection/utils/element-states/element-states.listener.js +0 -55
- package/dist/collection/utils/element-states/element-states.subject.js +0 -24
- package/dist/collection/utils/element-states/index.js +0 -5
- package/dist/collection/utils/keyboard/index.js +0 -6
- package/dist/collection/utils/keyboard/keyboard.decorator.js +0 -23
- package/dist/collection/utils/keyboard/keyboard.listener.js +0 -34
- package/dist/collection/utils/keyboard/keyboard.subject.js +0 -24
- package/dist/collection/utils/property-checkers/check-array-of.js +0 -13
- package/dist/collection/utils/property-checkers/check-date.js +0 -18
- package/dist/collection/utils/property-checkers/check-iso-date.js +0 -14
- package/dist/collection/utils/property-checkers/check-one-of.js +0 -13
- package/dist/collection/utils/property-checkers/check-pattern.js +0 -13
- package/dist/collection/utils/property-checkers/check-type.js +0 -20
- package/dist/collection/utils/property-checkers/check-url.js +0 -20
- package/dist/collection/utils/property-checkers/empty-or.js +0 -15
- package/dist/collection/utils/property-checkers/index.js +0 -57
- package/dist/collection/utils/property-checkers/required-and.js +0 -20
- package/dist/collection/utils/swipe/index.js +0 -6
- package/dist/collection/utils/swipe/swipe.decorator.js +0 -23
- package/dist/collection/utils/swipe/swipe.listener.js +0 -33
- package/dist/collection/utils/swipe/swipe.subject.js +0 -28
- package/dist/collection/utils/validate.decorator.js +0 -203
- package/dist/design-system/p-03bbcdf9de.entry.js +0 -4
- package/dist/design-system/p-1154323457.entry.js +0 -4
- package/dist/design-system/p-1f0601a4f4.entry.js +0 -4
- package/dist/design-system/p-21b080a49a.entry.js +0 -4
- package/dist/design-system/p-27c34c4e5f.entry.js +0 -4
- package/dist/design-system/p-2b91de302f.entry.js +0 -4
- package/dist/design-system/p-31c1235ac5.entry.js +0 -4
- package/dist/design-system/p-3259acaa64.entry.js +0 -4
- package/dist/design-system/p-339d85cca0.entry.js +0 -4
- package/dist/design-system/p-35e63b52e7.entry.js +0 -4
- package/dist/design-system/p-363f3a7ab4.entry.js +0 -4
- package/dist/design-system/p-3d901720f7.entry.js +0 -4
- package/dist/design-system/p-40ba8b9812.entry.js +0 -4
- package/dist/design-system/p-432430e14f.entry.js +0 -4
- package/dist/design-system/p-487807f228.entry.js +0 -4
- package/dist/design-system/p-4a049d1b7f.entry.js +0 -4
- package/dist/design-system/p-4f4cce8ce4.entry.js +0 -4
- package/dist/design-system/p-5a901a9b8e.entry.js +0 -4
- package/dist/design-system/p-5d3330bf93.entry.js +0 -4
- package/dist/design-system/p-640223834c.entry.js +0 -4
- package/dist/design-system/p-6b9aab417f.entry.js +0 -4
- package/dist/design-system/p-799705af3a.entry.js +0 -4
- package/dist/design-system/p-7e6ed497e7.entry.js +0 -4
- package/dist/design-system/p-82RSSk25.js +0 -4
- package/dist/design-system/p-8e0872fef0.entry.js +0 -4
- package/dist/design-system/p-9617d56181.entry.js +0 -4
- package/dist/design-system/p-BaIoYrFa.js +0 -5
- package/dist/design-system/p-Cb75Rr6o.js +0 -4
- package/dist/design-system/p-CqZ6YSy9.js +0 -4
- package/dist/design-system/p-CqzM3doy.js +0 -4
- package/dist/design-system/p-CuwLeg-T.js +0 -5
- package/dist/design-system/p-DHeVI6dR.js +0 -4
- package/dist/design-system/p-DTPbL3uY.js +0 -4
- package/dist/design-system/p-aff68865ee.entry.js +0 -4
- package/dist/design-system/p-b3c6327744.entry.js +0 -4
- package/dist/design-system/p-be9023a38b.entry.js +0 -4
- package/dist/design-system/p-c031d1dce5.entry.js +0 -4
- package/dist/design-system/p-c3ae96e220.entry.js +0 -4
- package/dist/design-system/p-d430812a57.entry.js +0 -4
- package/dist/design-system/p-de1354f022.entry.js +0 -4
- package/dist/design-system/p-e3d0c82e2a.entry.js +0 -4
- package/dist/design-system/p-ea1a5e1f75.entry.js +0 -4
- package/dist/design-system/p-ea7169501c.entry.js +0 -4
- package/dist/design-system/p-eab397e041.entry.js +0 -4
- package/dist/design-system/p-ecba4deb9a.entry.js +0 -4
- package/dist/design-system/p-fe0dbd4b03.entry.js +0 -4
- package/dist/design-system/p-ng5ZzTOj.js +0 -4
- package/dist/esm/contact-Cb75Rr6o.js +0 -1636
- package/dist/esm/ds-content.entry.js +0 -152
- package/dist/esm/ds-divider.entry.js +0 -129
- package/dist/esm/ds-stack.entry.js +0 -222
- package/dist/esm/isEmpty-DmZYZqE9.js +0 -97
- package/dist/esm/stack.interfaces-ng5ZzTOj.js +0 -62
- package/dist/esm/svg-BaIoYrFa.js +0 -1480
- package/dist/esm/validate.decorator-82RSSk25.js +0 -110
- package/dist/types/global/constants/icons.constant.d.ts +0 -38
- package/dist/types/utils/element-states/element-states.decorator.d.ts +0 -3
- package/dist/types/utils/element-states/element-states.interfaces.d.ts +0 -10
- package/dist/types/utils/element-states/element-states.listener.d.ts +0 -15
- package/dist/types/utils/element-states/element-states.subject.d.ts +0 -8
- package/dist/types/utils/element-states/index.d.ts +0 -2
- package/dist/types/utils/keyboard/index.d.ts +0 -3
- package/dist/types/utils/keyboard/keyboard.decorator.d.ts +0 -3
- package/dist/types/utils/keyboard/keyboard.interfaces.d.ts +0 -8
- package/dist/types/utils/keyboard/keyboard.listener.d.ts +0 -9
- package/dist/types/utils/keyboard/keyboard.subject.d.ts +0 -8
- package/dist/types/utils/property-checkers/check-array-of.d.ts +0 -2
- package/dist/types/utils/property-checkers/check-date.d.ts +0 -1
- package/dist/types/utils/property-checkers/check-iso-date.d.ts +0 -1
- package/dist/types/utils/property-checkers/check-one-of.d.ts +0 -1
- package/dist/types/utils/property-checkers/check-pattern.d.ts +0 -1
- package/dist/types/utils/property-checkers/check-type.d.ts +0 -2
- package/dist/types/utils/property-checkers/check-url.d.ts +0 -1
- package/dist/types/utils/property-checkers/constants.d.ts +0 -1
- package/dist/types/utils/property-checkers/empty-or.d.ts +0 -1
- package/dist/types/utils/property-checkers/index.d.ts +0 -19
- package/dist/types/utils/property-checkers/required-and.d.ts +0 -1
- package/dist/types/utils/swipe/index.d.ts +0 -3
- package/dist/types/utils/swipe/swipe.decorator.d.ts +0 -5
- package/dist/types/utils/swipe/swipe.interfaces.d.ts +0 -10
- package/dist/types/utils/swipe/swipe.listener.d.ts +0 -10
- package/dist/types/utils/swipe/swipe.subject.d.ts +0 -11
- package/dist/types/utils/validate.decorator.d.ts +0 -114
- /package/dist/collection/{utils/element-states/element-states.interfaces.js → components/data/data-item.interfaces.js} +0 -0
- /package/dist/collection/{utils/keyboard/keyboard.interfaces.js → components/data/data-label.interfaces.js} +0 -0
- /package/dist/collection/{utils/property-checkers/property-types.js → components/data/data-value.interfaces.js} +0 -0
- /package/dist/collection/{utils/swipe/swipe.interfaces.js → components/data/data.interfaces.js} +0 -0
- /package/dist/collection/utils/{property-checkers/is-iso-date.js → is-iso-date.js} +0 -0
- /package/dist/collection/utils/{keyboard/keyboard.helpers.js → keyboard.js} +0 -0
- /package/dist/types/utils/{property-checkers/is-iso-date.d.ts → is-iso-date.d.ts} +0 -0
- /package/dist/types/utils/{property-checkers/is-value-empty.d.ts → is-value-empty.d.ts} +0 -0
- /package/dist/types/utils/{keyboard/keyboard.helpers.d.ts → keyboard.d.ts} +0 -0
- /package/dist/types/utils/{property-checkers/property-types.d.ts → property-types.d.ts} +0 -0
package/components/ds-toggle.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* (C) Helvetia Design System https://design.baloise.dev/ - Apache License 2.0
|
|
3
3
|
*/
|
|
4
|
-
import{p as e,H as o,f as l,h as a,e as t,t as r}from"./p-BNY3JzuV.js";import{_ as c,L as i,a as s}from"./p-Dr4dquer.js";import{i as d}from"./p-B62ocg4Q.js";import{s as g,V as n,a as h}from"./p-82RSSk25.js";const b=[1,2,3,4],v=e(class extends o{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.dsBlur=l(this,"dsBlur"),this.dsChange=l(this,"dsChange"),this.dsFocus=l(this,"dsFocus"),this.internals=this.attachInternals(),this.inputId="ds-tg-"+k++,this.inheritAttributes={},this.initialValue=!1,this.focused=!1,this.autoInvalidOff=!1,this.checked=!1,this.dense=!1,this.color="",this.cols=1,this.colsMobile=1,this.colsTablet=1,this.disabled=!1,this.invalid=!1,this.label="",this.labelPosition="right",this.name=this.inputId,this.readonly=!1,this.required=!1,this.tile=!1,this.value="on",this.handleBlur=e=>{this.disabled||this.readonly||(this.focused=!1,this.dsBlur.emit(e))},this.handleChange=e=>{this.checked=e.target.checked,this.dsChange.emit(this.checked),this.internals.setFormValue(this.checked?this.value:null)},this.handleFocus=e=>{this.disabled||this.readonly||(this.focused=!0,this.dsFocus.emit(e))}}createLogger(e){this.log=e}connectedCallback(){g(this),this.initialValue=this.checked,this.internals.setFormValue(this.checked?this.value:null)}componentWillLoad(){this.internals.setFormValue(this.checked?this.value:null),this.inheritAttributes=d(this.el,["aria-label","tabindex","title"])}listenToReset(e){const o=e.target;(null==o?void 0:o.contains(this.el))&&(this.checked=this.initialValue)}render(){return a(t,{key:"477607550417767f9998d45960e40debe1eb6078","aria-disabled":this.disabled?"true":null,"aria-checked":""+this.checked,"aria-invalid":this.invalid?"true":null,class:{"is-disabled":this.disabled||this.readonly,"is-invalid":this.invalid,"is-checked":this.checked,"is-dense":this.dense,"is-tile":this.tile,"has-label-left":"left"===this.labelPosition,"has-label-top":"top"===this.labelPosition,["has-cols-"+this.cols]:this.tile&&this.cols>1,[`has-cols-${this.colsTablet}-tablet`]:this.tile&&this.colsTablet>1,[`has-cols-${this.colsMobile}-mobile`]:this.tile&&this.colsMobile>1}},a("label",{key:"1087df9af44ad5d09af803670718f3e58135ea0d",id:"label",part:"label"},a("input",Object.assign({key:"95058b33011e865731dc90210768689361f38506",type:"checkbox",part:"input",id:this.inputId,name:this.name,value:this.value,checked:this.checked,disabled:this.disabled||this.readonly,required:this.required,"aria-invalid":this.invalid?"true":null,onChange:e=>this.handleChange(e),onFocus:this.handleFocus,onBlur:this.handleBlur,ref:e=>this.nativeInput=e},this.inheritAttributes)),a("div",{key:"72fa6a4159f5d589808a216af264a34cd1d9a5ba",id:"slot",part:"slot"},a("slot",{key:"87c7705b319de57d26d38aa11f61567984be7e69"}))))}static get formAssociated(){return!0}get el(){return this}static get style(){return":host{--_toggle-gap:var(--toggle-gap, var(--mod-toggle-gap, 0.5rem));--_toggle-label-base-color:var(--toggle-label-base-color, var(--mod-toggle-label-base-color, inherit));--_toggle-label-hover-color:var(--toggle-label-hover-color, var(--mod-toggle-label-hover-color, var(--ds-global-color-sky-5)));--_toggle-label-active-color:var(--toggle-label-active-color, var(--mod-toggle-label-active-color, var(--ds-global-color-primary-6)));--_toggle-height:var(--toggle-height, var(--mod-toggle-height, 1.5rem));--_toggle-width:var(--toggle-width, var(--mod-toggle-width, 2.5rem));--_toggle-border-width:var(--toggle-border-width, var(--mod-toggle-border-width, var(--ds-alias-border-width-base)));--_toggle-radius:var(--toggle-radius, var(--mod-toggle-radius, var(--ds-alias-radius-rounded)));--_toggle-padding-y:var(--toggle-padding-y, var(--mod-toggle-padding-y, 0.25rem));--_toggle-min-height:var(--toggle-min-height, var(--mod-toggle-min-height, 3rem));--_toggle-tile-radius:var(--toggle-tile-radius, var(--mod-toggle-tile-radius, var(--ds-alias-radius-base)));--_toggle-tile-padding:var(--toggle-tile-padding, var(--mod-toggle-tile-padding, 1rem));--_toggle-tile-border-width:var(--toggle-tile-border-width, var(--mod-toggle-tile-border-width, var(--ds-alias-border-width-base)));--_toggle-tile-base-background-color:var(--toggle-tile-base-background-color, var(--mod-toggle-tile-base-background-color, inherit));--_toggle-tile-base-border-color:var(--toggle-tile-base-border-color, var(--mod-toggle-tile-base-border-color, var(--ds-global-color-grey-3)));--_toggle-tile-hover-background-color:var(--toggle-tile-hover-background-color, var(--mod-toggle-tile-hover-background-color, var(--ds-global-color-grey-2)));--_toggle-tile-hover-border-color:var(--toggle-tile-hover-border-color, var(--mod-toggle-tile-hover-border-color, var(--ds-global-color-sky-5)));--_toggle-tile-active-background-color:var(--toggle-tile-active-background-color, var(--mod-toggle-tile-active-background-color, var(--ds-global-color-grey-2)));--_toggle-tile-active-border-color:var(--toggle-tile-active-border-color, var(--mod-toggle-tile-active-border-color, var(--ds-global-color-primary-6)));--_toggle-unchecked-base-color-background:var(--toggle-unchecked-base-color-background, var(--mod-toggle-unchecked-base-color-background, var(--ds-global-color-grey-3)));--_toggle-unchecked-base-color-tick:var(--toggle-unchecked-base-color-tick, var(--mod-toggle-unchecked-base-color-tick, var(--ds-global-color-primary-5)));--_toggle-unchecked-hover-color-background:var(--toggle-unchecked-hover-color-background, var(--mod-toggle-unchecked-hover-color-background, var(--ds-global-color-grey-3)));--_toggle-unchecked-hover-color-tick:var(--toggle-unchecked-hover-color-tick, var(--mod-toggle-unchecked-hover-color-tick, var(--ds-global-color-sky-5)));--_toggle-unchecked-active-color-background:var(--toggle-unchecked-active-color-background, var(--mod-toggle-unchecked-active-color-background, var(--ds-global-color-grey-3)));--_toggle-unchecked-active-color-tick:var(--toggle-unchecked-active-color-tick, var(--mod-toggle-unchecked-active-color-tick, var(--ds-global-color-primary-6)));--_toggle-checked-base-color-background:var(--toggle-checked-base-color-background, var(--mod-toggle-checked-base-color-background, var(--ds-global-color-success-4)));--_toggle-checked-base-color-tick:var(--toggle-checked-base-color-tick, var(--mod-toggle-checked-base-color-tick, var(--ds-global-color-white)));--_toggle-checked-base-color-icon:var(--toggle-checked-base-color-icon, var(--mod-toggle-checked-base-color-icon, var(--ds-global-color-white)));--_toggle-checked-hover-color-background:var(--toggle-checked-hover-color-background, var(--mod-toggle-checked-hover-color-background, var(--ds-global-color-success-5)));--_toggle-checked-hover-color-tick:var(--toggle-checked-hover-color-tick, var(--mod-toggle-checked-hover-color-tick, var(--ds-global-color-white)));--_toggle-checked-active-color-background:var(--toggle-checked-active-color-background, var(--mod-toggle-checked-active-color-background, var(--ds-global-color-success-6)));--_toggle-checked-active-color-tick:var(--toggle-checked-active-color-tick, var(--mod-toggle-checked-active-color-tick, var(--ds-global-color-white)))}:host{display:inline-block;-webkit-box-sizing:border-box !important;box-sizing:border-box !important;outline:none}label{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-user-drag:none;user-drag:none;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;gap:var(--_toggle-gap);cursor:pointer;user-select:none;color:var(--_toggle-label-base-color);font-family:var(--ds-global-font-family-text);line-height:var(--ds-typography-line-height-base);padding-top:var(--_toggle-padding-y);padding-bottom:var(--_toggle-padding-y);min-height:var(--_toggle-min-height)}@media (hover: hover)and (pointer: fine){label:hover{color:var(--_toggle-label-hover-color)}}label:active{color:var(--_toggle-label-active-color)}:host input[type=checkbox]{position:relative;-ms-flex-pack:start;justify-content:flex-start;-ms-flex-align:center;align-items:center;padding:4px;-webkit-appearance:none;-moz-appearance:none;appearance:none;-ms-flex:none;flex:none;display:-ms-inline-flexbox;display:inline-flex;width:var(--_toggle-width);height:var(--_toggle-height);background:var(--_toggle-unchecked-base-color-background);border:var(--_toggle-border-width) solid var(--_toggle-unchecked-base-color-border);border-radius:var(--_toggle-radius);vertical-align:top;cursor:pointer}:host input[type=checkbox]:disabled{cursor:default}:host input[type=checkbox]:focus-visible{outline:var(--ds-alias-interaction-focus-width, 2px) solid var(--ds-alias-interaction-focus-color-base);outline-offset:2px;border-radius:var(--_toggle-radius)}:host input[type=checkbox]:not(:disabled):hover,:host:hover input[type=checkbox]:not(:disabled):not(:checked){background:var(--_toggle-unchecked-hover-color-background)}:host input[type=checkbox]:not(:disabled):hover::before,:host:hover input[type=checkbox]:not(:disabled):not(:checked)::before{background:var(--_toggle-unchecked-hover-color-tick)}:host input[type=checkbox]:not(:disabled):active,:host:active input[type=checkbox]:not(:disabled):not(:checked){background:var(--_toggle-unchecked-active-color-background)}:host input[type=checkbox]:not(:disabled):active::before,:host:active input[type=checkbox]:not(:disabled):not(:checked)::before{background:var(--_toggle-unchecked-active-color-tick)}:host input[type=checkbox]:checked{background:var(--_toggle-checked-base-color-background)}:host input[type=checkbox]:checked::before{background:var(--_toggle-checked-base-color-tick)}:host input[type=checkbox]:checked:not(:disabled):hover,:host:hover input[type=checkbox]:checked:not(:disabled){background:var(--_toggle-checked-hover-color-background)}:host input[type=checkbox]:checked:not(:disabled):hover::before,:host:hover input[type=checkbox]:checked:not(:disabled)::before{background:var(--_toggle-checked-hover-color-tick)}:host input[type=checkbox]:checked:not(:disabled):active,:host:active input[type=checkbox]:checked:not(:disabled){background:var(--_toggle-checked-active-color-background)}:host input[type=checkbox]:checked:not(:disabled):active::before,:host:active input[type=checkbox]:checked:not(:disabled)::before{background:var(--_toggle-checked-active-color-tick)}:host input[type=checkbox]::before{display:block;content:\"\";width:1rem;height:1rem;background:var(--_toggle-unchecked-base-color-tick);border-radius:var(--_toggle-radius);-webkit-transition:-webkit-transform .3s ease-in-out;transition:-webkit-transform .3s ease-in-out;transition:transform .3s ease-in-out;transition:transform .3s ease-in-out, -webkit-transform .3s ease-in-out;z-index:1}:host input[type=checkbox]:checked::before{-webkit-transform:translateX(100%);transform:translateX(100%)}:host input[type=checkbox]::after{position:absolute;display:block;content:\"\";-webkit-mask-size:100%;mask-size:100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-position:center;mask-position:center;left:5px;width:12px;height:12px;-webkit-transition:opacity .3s ease-in-out;transition:opacity .3s ease-in-out;opacity:0;z-index:0}:host input[type=checkbox]:checked::after{opacity:1;background-color:var(--_toggle-checked-base-color-icon);-webkit-mask-image:url(\"data:image/svg+xml,<svg viewBox='0 0 14 14' xmlns='http://www.w3.org/2000/svg'><path fill-rule='evenodd' clip-rule='evenodd' d='M13.637 1.19792C14.0627 1.54974 14.1227 2.18006 13.7708 2.60579L5.73084 12.335L5.72842 12.3379C5.54554 12.5575 5.31602 12.7336 5.05655 12.8534C4.79707 12.9731 4.51417 13.0336 4.22842 13.0302L4.22752 13.0302C3.93709 13.0266 3.65125 12.9573 3.39146 12.8274C3.13254 12.6979 2.9062 12.5117 2.72931 12.2826C2.72871 12.2818 2.72812 12.281 2.72752 12.2802L0.210633 9.04426C-0.128437 8.60831 -0.0499029 7.98003 0.386044 7.64096C0.821992 7.30189 1.45027 7.38043 1.78934 7.81638L4.25291 10.9838L12.2291 1.33176C12.5809 0.906034 13.2113 0.846112 13.637 1.19792Z'/></svg>\");mask-image:url(\"data:image/svg+xml,<svg viewBox='0 0 14 14' xmlns='http://www.w3.org/2000/svg'><path fill-rule='evenodd' clip-rule='evenodd' d='M13.637 1.19792C14.0627 1.54974 14.1227 2.18006 13.7708 2.60579L5.73084 12.335L5.72842 12.3379C5.54554 12.5575 5.31602 12.7336 5.05655 12.8534C4.79707 12.9731 4.51417 13.0336 4.22842 13.0302L4.22752 13.0302C3.93709 13.0266 3.65125 12.9573 3.39146 12.8274C3.13254 12.6979 2.9062 12.5117 2.72931 12.2826C2.72871 12.2818 2.72812 12.281 2.72752 12.2802L0.210633 9.04426C-0.128437 8.60831 -0.0499029 7.98003 0.386044 7.64096C0.821992 7.30189 1.45027 7.38043 1.78934 7.81638L4.25291 10.9838L12.2291 1.33176C12.5809 0.906034 13.2113 0.846112 13.637 1.19792Z'/></svg>\")}:host(.is-dense){--mod-toggle-min-height:2rem;--mod-toggle-padding-y:0}:host(.is-invalid:not(.is-disabled)){--mod-toggle-label-base-color:var(--ds-global-color-danger-4);--mod-toggle-label-hover-color:var(--ds-global-color-danger-5);--mod-toggle-label-active-color:var(--ds-global-color-danger-6);--mod-toggle-unchecked-base-color-background:var(--ds-global-color-danger-1);--mod-toggle-unchecked-base-color-tick:var(--ds-global-color-danger-4);--mod-toggle-unchecked-hover-color-background:var(--ds-global-color-danger-1);--mod-toggle-unchecked-hover-color-tick:var(--ds-global-color-danger-5);--mod-toggle-unchecked-active-color-background:var(--ds-global-color-danger-1);--mod-toggle-unchecked-active-color-tick:var(--ds-global-color-danger-6);--mod-toggle-checked-base-color-background:var(--ds-global-color-danger-4);--mod-toggle-checked-base-color-tick:var(--ds-global-color-white);--mod-toggle-checked-hover-color-background:var(--ds-global-color-danger-5);--mod-toggle-checked-hover-color-tick:var(--ds-global-color-white);--mod-toggle-checked-active-color-background:var(--ds-global-color-danger-6);--mod-toggle-checked-active-color-tick:var(--ds-global-color-white)}:host(.is-disabled){cursor:default;pointer-events:none;--mod-toggle-label-base-color:var(--ds-global-color-grey-5);--mod-toggle-label-hover-color:var(--ds-global-color-grey-5);--mod-toggle-label-active-color:var(--ds-global-color-grey-5);--mod-toggle-unchecked-base-color-background:var(--ds-global-color-grey-3);--mod-toggle-unchecked-base-color-tick:var(--ds-global-color-grey-5);--mod-toggle-checked-base-color-background:var(--ds-global-color-grey-5);--mod-toggle-checked-base-color-tick:var(--ds-global-color-grey-3)}:host(.has-label-left) label{-ms-flex-direction:row-reverse;flex-direction:row-reverse}:host(.has-label-top) label{-ms-flex-direction:column-reverse;flex-direction:column-reverse}:host(.is-tile){display:block;-ms-flex:0 0 100%;flex:0 0 100%}:host(.is-tile) label{width:100%;height:100%;padding:var(--_toggle-tile-padding);border-style:solid;border-width:var(--_toggle-tile-border-width);border-radius:var(--_toggle-tile-radius);border-color:var(--_toggle-tile-base-border-color);background:var(--_toggle-tile-base-background-color)}@media (hover: hover)and (pointer: fine){:host(.is-tile) label:hover{border-color:var(--_toggle-tile-hover-border-color);background:var(--_toggle-tile-hover-background-color)}}:host(.is-tile) label:active{border-color:var(--_toggle-tile-active-border-color);background:var(--_toggle-tile-active-background-color)}:host(.is-tile.is-checked){--mod-toggle-tile-base-border-color:var(--_toggle-checked-base-color-background)}:host(.is-tile.is-disabled){--icon-brand-color:var(--ds-global-color-grey-5)}:host(.is-tile.is-invalid){--mod-toggle-tile-hover-background-color:var(--ds-global-color-danger-1);--mod-toggle-tile-active-background-color:var(--ds-global-color-danger-1);--mod-toggle-tile-hover-border-color:var(--ds-global-color-danger-5);--mod-toggle-tile-active-border-color:var(--ds-global-color-danger-6)}:host(.is-tile.is-invalid) label{--icon-brand-color:var(--ds-global-color-danger-4)}@media (hover: hover)and (pointer: fine){:host(.is-tile.is-invalid) label:hover{--icon-brand-color:var(--ds-global-color-danger-5)}}:host(.is-tile.is-invalid) label:active{--icon-brand-color:var(--ds-global-color-danger-6)}@media screen and (min-width: 769px){:host(.is-tile.has-cols-2){-ms-flex:0 0 calc(50% - var(--ds-alias-space-base)*1/2);flex:0 0 calc(50% - var(--ds-alias-space-base)*1/2)}:host(.is-tile.has-cols-3){-ms-flex:0 0 calc(33.3333333333% - var(--ds-alias-space-base)*2/3);flex:0 0 calc(33.3333333333% - var(--ds-alias-space-base)*2/3)}:host(.is-tile.has-cols-4){-ms-flex:0 0 calc(25% - var(--ds-alias-space-base)*3/4);flex:0 0 calc(25% - var(--ds-alias-space-base)*3/4)}}@media screen and (max-width: 768px){:host(.is-tile.has-cols-2-mobile){-ms-flex:0 0 calc(50% - var(--ds-alias-space-base)*1/2);flex:0 0 calc(50% - var(--ds-alias-space-base)*1/2)}:host(.is-tile.has-cols-3-mobile){-ms-flex:0 0 calc(33.3333333333% - var(--ds-alias-space-base)*2/3);flex:0 0 calc(33.3333333333% - var(--ds-alias-space-base)*2/3)}:host(.is-tile.has-cols-4-mobile){-ms-flex:0 0 calc(25% - var(--ds-alias-space-base)*3/4);flex:0 0 calc(25% - var(--ds-alias-space-base)*3/4)}}@media screen and (min-width: 769px){:host(.is-tile.has-cols-2-tablet){-ms-flex:0 0 calc(50% - var(--ds-alias-space-base)*1/2);flex:0 0 calc(50% - var(--ds-alias-space-base)*1/2)}:host(.is-tile.has-cols-3-tablet){-ms-flex:0 0 calc(33.3333333333% - var(--ds-alias-space-base)*2/3);flex:0 0 calc(33.3333333333% - var(--ds-alias-space-base)*2/3)}:host(.is-tile.has-cols-4-tablet){-ms-flex:0 0 calc(25% - var(--ds-alias-space-base)*3/4);flex:0 0 calc(25% - var(--ds-alias-space-base)*3/4)}}@media screen and (min-width: 1024px){:host(.is-tile.has-cols-2-desktop){-ms-flex:0 0 calc(50% - var(--ds-alias-space-base)*1/2);flex:0 0 calc(50% - var(--ds-alias-space-base)*1/2)}:host(.is-tile.has-cols-3-desktop){-ms-flex:0 0 calc(33.3333333333% - var(--ds-alias-space-base)*2/3);flex:0 0 calc(33.3333333333% - var(--ds-alias-space-base)*2/3)}:host(.is-tile.has-cols-4-desktop){-ms-flex:0 0 calc(25% - var(--ds-alias-space-base)*3/4);flex:0 0 calc(25% - var(--ds-alias-space-base)*3/4)}}"}},[321,"ds-toggle",{autoInvalidOff:[4,"auto-invalid-off"],checked:[1540],dense:[4],color:[1],cols:[2],colsMobile:[2,"cols-mobile"],colsTablet:[2,"cols-tablet"],disabled:[516],invalid:[516],label:[1],labelPosition:[1,"label-position"],name:[1],readonly:[516],required:[516],tile:[4],value:[8],focused:[32]},[[6,"reset","listenToReset"]]]);c([i("toggle"),s("design:type",Function),s("design:paramtypes",[Function]),s("design:returntype",void 0)],v.prototype,"createLogger",null),c([n("boolean"),s("design:type",Boolean)],v.prototype,"autoInvalidOff",void 0),c([n("boolean"),s("design:type",Boolean)],v.prototype,"checked",void 0),c([n("boolean"),s("design:type",Boolean)],v.prototype,"dense",void 0),c([h("","purple","green","yellow","red"),s("design:type",String)],v.prototype,"color",void 0),c([h(...b),s("design:type",Number)],v.prototype,"cols",void 0),c([h(...b),s("design:type",Number)],v.prototype,"colsMobile",void 0),c([h(...b),s("design:type",Number)],v.prototype,"colsTablet",void 0),c([n("boolean"),s("design:type",Boolean)],v.prototype,"disabled",void 0),c([n("boolean"),s("design:type",Boolean)],v.prototype,"invalid",void 0),c([n("string"),s("design:type",String)],v.prototype,"label",void 0),c([h("left","top","right"),s("design:type",String)],v.prototype,"labelPosition",void 0),c([n("string"),s("design:type",String)],v.prototype,"name",void 0),c([n("boolean"),s("design:type",Boolean)],v.prototype,"readonly",void 0),c([n("boolean"),s("design:type",Boolean)],v.prototype,"required",void 0),c([n("boolean"),s("design:type",Boolean)],v.prototype,"tile",void 0);let k=0;const u=v,p=function(){"undefined"!=typeof customElements&&["ds-toggle"].forEach((e=>{"ds-toggle"===e&&(customElements.get(r(e))||customElements.define(r(e),v))}))};export{u as DsToggle,p as defineCustomElement}
|
|
4
|
+
import{p as e,H as o,f as l,h as a,e as t,t as r}from"./p-WO0X5Vmy.js";import{_ as c,L as i,a as s}from"./p-J0mxIuTt.js";import{i as d}from"./p-B62ocg4Q.js";import{T as g}from"./p-DAYd9ty0.js";import{O as n}from"./p-BhbWmCTu.js";const h=[1,2,3,4],b=e(class extends o{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.dsBlur=l(this,"dsBlur"),this.dsChange=l(this,"dsChange"),this.dsFocus=l(this,"dsFocus"),this.internals=this.attachInternals(),this.inputId="ds-tg-"+v++,this.inheritAttributes={},this.initialValue=!1,this.focused=!1,this.autoInvalidOff=!1,this.checked=!1,this.dense=!1,this.color="",this.cols=1,this.colsMobile=1,this.colsTablet=1,this.disabled=!1,this.invalid=!1,this.label="",this.labelPosition="right",this.name=this.inputId,this.readonly=!1,this.required=!1,this.tile=!1,this.value="on",this.handleBlur=e=>{this.disabled||this.readonly||(this.focused=!1,this.dsBlur.emit(e))},this.handleChange=e=>{this.checked=e.target.checked,this.dsChange.emit(this.checked),this.internals.setFormValue(this.checked?this.value:null)},this.handleFocus=e=>{this.disabled||this.readonly||(this.focused=!0,this.dsFocus.emit(e))}}createLogger(e){this.log=e}connectedCallback(){this.initialValue=this.checked,this.internals.setFormValue(this.checked?this.value:null)}componentWillLoad(){this.internals.setFormValue(this.checked?this.value:null),this.inheritAttributes=d(this.el,["aria-label","tabindex","title"])}listenToReset(e){const o=e.target;(null==o?void 0:o.contains(this.el))&&(this.checked=this.initialValue)}render(){return a(t,{key:"82e0075aa3e76cc231d0e507de6f6abbc6947fbd","aria-disabled":this.disabled?"true":null,"aria-checked":""+this.checked,"aria-invalid":this.invalid?"true":null,class:{"is-disabled":this.disabled||this.readonly,"is-invalid":this.invalid,"is-checked":this.checked,"is-dense":this.dense,"is-tile":this.tile,"has-label-left":"left"===this.labelPosition,"has-label-top":"top"===this.labelPosition,["has-cols-"+this.cols]:this.tile&&this.cols>1,[`has-cols-${this.colsTablet}-tablet`]:this.tile&&this.colsTablet>1,[`has-cols-${this.colsMobile}-mobile`]:this.tile&&this.colsMobile>1}},a("label",{key:"0a6ec1155840f00f9cba605ed1436744d7ea5c44",id:"label",part:"label"},a("input",Object.assign({key:"fce712af56287d341b3e096b87338e75aa078e7e",type:"checkbox",part:"input",id:this.inputId,name:this.name,value:this.value,checked:this.checked,disabled:this.disabled||this.readonly,required:this.required,"aria-invalid":this.invalid?"true":null,onChange:e=>this.handleChange(e),onFocus:this.handleFocus,onBlur:this.handleBlur,ref:e=>this.nativeInput=e},this.inheritAttributes)),a("div",{key:"ddabd79fa0110eb5d3bf25023814af1cd75c4c28",id:"slot",part:"slot"},a("slot",{key:"05f2ca777a6d522ecc30e5bff1fba852ef32b3a5"}))))}static get formAssociated(){return!0}get el(){return this}static get style(){return":host{--_toggle-gap:var(--toggle-gap, var(--mod-toggle-gap, 0.5rem));--_toggle-label-base-color:var(--toggle-label-base-color, var(--mod-toggle-label-base-color, inherit));--_toggle-label-hover-color:var(--toggle-label-hover-color, var(--mod-toggle-label-hover-color, var(--ds-global-color-sky-5)));--_toggle-label-active-color:var(--toggle-label-active-color, var(--mod-toggle-label-active-color, var(--ds-global-color-primary-6)));--_toggle-height:var(--toggle-height, var(--mod-toggle-height, 1.5rem));--_toggle-width:var(--toggle-width, var(--mod-toggle-width, 2.5rem));--_toggle-border-width:var(--toggle-border-width, var(--mod-toggle-border-width, var(--ds-alias-border-width-base)));--_toggle-radius:var(--toggle-radius, var(--mod-toggle-radius, var(--ds-alias-radius-rounded)));--_toggle-padding-y:var(--toggle-padding-y, var(--mod-toggle-padding-y, 0.25rem));--_toggle-min-height:var(--toggle-min-height, var(--mod-toggle-min-height, 3rem));--_toggle-tile-radius:var(--toggle-tile-radius, var(--mod-toggle-tile-radius, var(--ds-alias-radius-base)));--_toggle-tile-padding:var(--toggle-tile-padding, var(--mod-toggle-tile-padding, 1rem));--_toggle-tile-border-width:var(--toggle-tile-border-width, var(--mod-toggle-tile-border-width, var(--ds-alias-border-width-base)));--_toggle-tile-base-background-color:var(--toggle-tile-base-background-color, var(--mod-toggle-tile-base-background-color, inherit));--_toggle-tile-base-border-color:var(--toggle-tile-base-border-color, var(--mod-toggle-tile-base-border-color, var(--ds-global-color-grey-3)));--_toggle-tile-hover-background-color:var(--toggle-tile-hover-background-color, var(--mod-toggle-tile-hover-background-color, var(--ds-global-color-grey-2)));--_toggle-tile-hover-border-color:var(--toggle-tile-hover-border-color, var(--mod-toggle-tile-hover-border-color, var(--ds-global-color-sky-5)));--_toggle-tile-active-background-color:var(--toggle-tile-active-background-color, var(--mod-toggle-tile-active-background-color, var(--ds-global-color-grey-2)));--_toggle-tile-active-border-color:var(--toggle-tile-active-border-color, var(--mod-toggle-tile-active-border-color, var(--ds-global-color-primary-6)));--_toggle-unchecked-base-color-background:var(--toggle-unchecked-base-color-background, var(--mod-toggle-unchecked-base-color-background, var(--ds-global-color-grey-3)));--_toggle-unchecked-base-color-tick:var(--toggle-unchecked-base-color-tick, var(--mod-toggle-unchecked-base-color-tick, var(--ds-global-color-primary-5)));--_toggle-unchecked-hover-color-background:var(--toggle-unchecked-hover-color-background, var(--mod-toggle-unchecked-hover-color-background, var(--ds-global-color-grey-3)));--_toggle-unchecked-hover-color-tick:var(--toggle-unchecked-hover-color-tick, var(--mod-toggle-unchecked-hover-color-tick, var(--ds-global-color-sky-5)));--_toggle-unchecked-active-color-background:var(--toggle-unchecked-active-color-background, var(--mod-toggle-unchecked-active-color-background, var(--ds-global-color-grey-3)));--_toggle-unchecked-active-color-tick:var(--toggle-unchecked-active-color-tick, var(--mod-toggle-unchecked-active-color-tick, var(--ds-global-color-primary-6)));--_toggle-checked-base-color-background:var(--toggle-checked-base-color-background, var(--mod-toggle-checked-base-color-background, var(--ds-global-color-success-4)));--_toggle-checked-base-color-tick:var(--toggle-checked-base-color-tick, var(--mod-toggle-checked-base-color-tick, var(--ds-global-color-white)));--_toggle-checked-base-color-icon:var(--toggle-checked-base-color-icon, var(--mod-toggle-checked-base-color-icon, var(--ds-global-color-white)));--_toggle-checked-hover-color-background:var(--toggle-checked-hover-color-background, var(--mod-toggle-checked-hover-color-background, var(--ds-global-color-success-5)));--_toggle-checked-hover-color-tick:var(--toggle-checked-hover-color-tick, var(--mod-toggle-checked-hover-color-tick, var(--ds-global-color-white)));--_toggle-checked-active-color-background:var(--toggle-checked-active-color-background, var(--mod-toggle-checked-active-color-background, var(--ds-global-color-success-6)));--_toggle-checked-active-color-tick:var(--toggle-checked-active-color-tick, var(--mod-toggle-checked-active-color-tick, var(--ds-global-color-white)))}:host{display:inline-block;-webkit-box-sizing:border-box !important;box-sizing:border-box !important;outline:none}label{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-user-drag:none;user-drag:none;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;gap:var(--_toggle-gap);cursor:pointer;user-select:none;color:var(--_toggle-label-base-color);font-family:var(--ds-global-font-family-text);line-height:var(--ds-typography-line-height-base);padding-top:var(--_toggle-padding-y);padding-bottom:var(--_toggle-padding-y);min-height:var(--_toggle-min-height)}@media (hover: hover)and (pointer: fine){label:hover{color:var(--_toggle-label-hover-color)}}label:active{color:var(--_toggle-label-active-color)}:host input[type=checkbox]{position:relative;-ms-flex-pack:start;justify-content:flex-start;-ms-flex-align:center;align-items:center;padding:4px;-webkit-appearance:none;-moz-appearance:none;appearance:none;-ms-flex:none;flex:none;display:-ms-inline-flexbox;display:inline-flex;width:var(--_toggle-width);height:var(--_toggle-height);background:var(--_toggle-unchecked-base-color-background);border:var(--_toggle-border-width) solid var(--_toggle-unchecked-base-color-border);border-radius:var(--_toggle-radius);vertical-align:top;cursor:pointer}:host input[type=checkbox]:disabled{cursor:default}:host input[type=checkbox]:focus-visible{outline:var(--ds-alias-interaction-focus-width, 2px) solid var(--ds-alias-interaction-focus-color-base);outline-offset:2px;border-radius:var(--_toggle-radius)}:host input[type=checkbox]:not(:disabled):hover,:host:hover input[type=checkbox]:not(:disabled):not(:checked){background:var(--_toggle-unchecked-hover-color-background)}:host input[type=checkbox]:not(:disabled):hover::before,:host:hover input[type=checkbox]:not(:disabled):not(:checked)::before{background:var(--_toggle-unchecked-hover-color-tick)}:host input[type=checkbox]:not(:disabled):active,:host:active input[type=checkbox]:not(:disabled):not(:checked){background:var(--_toggle-unchecked-active-color-background)}:host input[type=checkbox]:not(:disabled):active::before,:host:active input[type=checkbox]:not(:disabled):not(:checked)::before{background:var(--_toggle-unchecked-active-color-tick)}:host input[type=checkbox]:checked{background:var(--_toggle-checked-base-color-background)}:host input[type=checkbox]:checked::before{background:var(--_toggle-checked-base-color-tick)}:host input[type=checkbox]:checked:not(:disabled):hover,:host:hover input[type=checkbox]:checked:not(:disabled){background:var(--_toggle-checked-hover-color-background)}:host input[type=checkbox]:checked:not(:disabled):hover::before,:host:hover input[type=checkbox]:checked:not(:disabled)::before{background:var(--_toggle-checked-hover-color-tick)}:host input[type=checkbox]:checked:not(:disabled):active,:host:active input[type=checkbox]:checked:not(:disabled){background:var(--_toggle-checked-active-color-background)}:host input[type=checkbox]:checked:not(:disabled):active::before,:host:active input[type=checkbox]:checked:not(:disabled)::before{background:var(--_toggle-checked-active-color-tick)}:host input[type=checkbox]::before{display:block;content:\"\";width:1rem;height:1rem;background:var(--_toggle-unchecked-base-color-tick);border-radius:var(--_toggle-radius);-webkit-transition:-webkit-transform .3s ease-in-out;transition:-webkit-transform .3s ease-in-out;transition:transform .3s ease-in-out;transition:transform .3s ease-in-out, -webkit-transform .3s ease-in-out;z-index:1}:host input[type=checkbox]:checked::before{-webkit-transform:translateX(100%);transform:translateX(100%)}:host input[type=checkbox]::after{position:absolute;display:block;content:\"\";-webkit-mask-size:100%;mask-size:100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-position:center;mask-position:center;left:5px;width:12px;height:12px;-webkit-transition:opacity .3s ease-in-out;transition:opacity .3s ease-in-out;opacity:0;z-index:0}:host input[type=checkbox]:checked::after{opacity:1;background-color:var(--_toggle-checked-base-color-icon);-webkit-mask-image:url(\"data:image/svg+xml,<svg viewBox='0 0 14 14' xmlns='http://www.w3.org/2000/svg'><path fill-rule='evenodd' clip-rule='evenodd' d='M13.637 1.19792C14.0627 1.54974 14.1227 2.18006 13.7708 2.60579L5.73084 12.335L5.72842 12.3379C5.54554 12.5575 5.31602 12.7336 5.05655 12.8534C4.79707 12.9731 4.51417 13.0336 4.22842 13.0302L4.22752 13.0302C3.93709 13.0266 3.65125 12.9573 3.39146 12.8274C3.13254 12.6979 2.9062 12.5117 2.72931 12.2826C2.72871 12.2818 2.72812 12.281 2.72752 12.2802L0.210633 9.04426C-0.128437 8.60831 -0.0499029 7.98003 0.386044 7.64096C0.821992 7.30189 1.45027 7.38043 1.78934 7.81638L4.25291 10.9838L12.2291 1.33176C12.5809 0.906034 13.2113 0.846112 13.637 1.19792Z'/></svg>\");mask-image:url(\"data:image/svg+xml,<svg viewBox='0 0 14 14' xmlns='http://www.w3.org/2000/svg'><path fill-rule='evenodd' clip-rule='evenodd' d='M13.637 1.19792C14.0627 1.54974 14.1227 2.18006 13.7708 2.60579L5.73084 12.335L5.72842 12.3379C5.54554 12.5575 5.31602 12.7336 5.05655 12.8534C4.79707 12.9731 4.51417 13.0336 4.22842 13.0302L4.22752 13.0302C3.93709 13.0266 3.65125 12.9573 3.39146 12.8274C3.13254 12.6979 2.9062 12.5117 2.72931 12.2826C2.72871 12.2818 2.72812 12.281 2.72752 12.2802L0.210633 9.04426C-0.128437 8.60831 -0.0499029 7.98003 0.386044 7.64096C0.821992 7.30189 1.45027 7.38043 1.78934 7.81638L4.25291 10.9838L12.2291 1.33176C12.5809 0.906034 13.2113 0.846112 13.637 1.19792Z'/></svg>\")}:host(.is-dense){--mod-toggle-min-height:2rem;--mod-toggle-padding-y:0}:host(.is-invalid:not(.is-disabled)){--mod-toggle-label-base-color:var(--ds-global-color-danger-4);--mod-toggle-label-hover-color:var(--ds-global-color-danger-5);--mod-toggle-label-active-color:var(--ds-global-color-danger-6);--mod-toggle-unchecked-base-color-background:var(--ds-global-color-danger-1);--mod-toggle-unchecked-base-color-tick:var(--ds-global-color-danger-4);--mod-toggle-unchecked-hover-color-background:var(--ds-global-color-danger-1);--mod-toggle-unchecked-hover-color-tick:var(--ds-global-color-danger-5);--mod-toggle-unchecked-active-color-background:var(--ds-global-color-danger-1);--mod-toggle-unchecked-active-color-tick:var(--ds-global-color-danger-6);--mod-toggle-checked-base-color-background:var(--ds-global-color-danger-4);--mod-toggle-checked-base-color-tick:var(--ds-global-color-white);--mod-toggle-checked-hover-color-background:var(--ds-global-color-danger-5);--mod-toggle-checked-hover-color-tick:var(--ds-global-color-white);--mod-toggle-checked-active-color-background:var(--ds-global-color-danger-6);--mod-toggle-checked-active-color-tick:var(--ds-global-color-white)}:host(.is-disabled){cursor:default;pointer-events:none;--mod-toggle-label-base-color:var(--ds-global-color-grey-5);--mod-toggle-label-hover-color:var(--ds-global-color-grey-5);--mod-toggle-label-active-color:var(--ds-global-color-grey-5);--mod-toggle-unchecked-base-color-background:var(--ds-global-color-grey-3);--mod-toggle-unchecked-base-color-tick:var(--ds-global-color-grey-5);--mod-toggle-checked-base-color-background:var(--ds-global-color-grey-5);--mod-toggle-checked-base-color-tick:var(--ds-global-color-grey-3)}:host(.has-label-left) label{-ms-flex-direction:row-reverse;flex-direction:row-reverse}:host(.has-label-top) label{-ms-flex-direction:column-reverse;flex-direction:column-reverse}:host(.is-tile){display:block;-ms-flex:0 0 100%;flex:0 0 100%}:host(.is-tile) label{width:100%;height:100%;padding:var(--_toggle-tile-padding);border-style:solid;border-width:var(--_toggle-tile-border-width);border-radius:var(--_toggle-tile-radius);border-color:var(--_toggle-tile-base-border-color);background:var(--_toggle-tile-base-background-color)}@media (hover: hover)and (pointer: fine){:host(.is-tile) label:hover{border-color:var(--_toggle-tile-hover-border-color);background:var(--_toggle-tile-hover-background-color)}}:host(.is-tile) label:active{border-color:var(--_toggle-tile-active-border-color);background:var(--_toggle-tile-active-background-color)}:host(.is-tile.is-checked){--mod-toggle-tile-base-border-color:var(--_toggle-checked-base-color-background)}:host(.is-tile.is-disabled){--icon-brand-color:var(--ds-global-color-grey-5)}:host(.is-tile.is-invalid){--mod-toggle-tile-hover-background-color:var(--ds-global-color-danger-1);--mod-toggle-tile-active-background-color:var(--ds-global-color-danger-1);--mod-toggle-tile-hover-border-color:var(--ds-global-color-danger-5);--mod-toggle-tile-active-border-color:var(--ds-global-color-danger-6)}:host(.is-tile.is-invalid) label{--icon-brand-color:var(--ds-global-color-danger-4)}@media (hover: hover)and (pointer: fine){:host(.is-tile.is-invalid) label:hover{--icon-brand-color:var(--ds-global-color-danger-5)}}:host(.is-tile.is-invalid) label:active{--icon-brand-color:var(--ds-global-color-danger-6)}@media screen and (min-width: 769px){:host(.is-tile.has-cols-2){-ms-flex:0 0 calc(50% - var(--ds-alias-space-base)*1/2);flex:0 0 calc(50% - var(--ds-alias-space-base)*1/2)}:host(.is-tile.has-cols-3){-ms-flex:0 0 calc(33.3333333333% - var(--ds-alias-space-base)*2/3);flex:0 0 calc(33.3333333333% - var(--ds-alias-space-base)*2/3)}:host(.is-tile.has-cols-4){-ms-flex:0 0 calc(25% - var(--ds-alias-space-base)*3/4);flex:0 0 calc(25% - var(--ds-alias-space-base)*3/4)}}@media screen and (max-width: 768px){:host(.is-tile.has-cols-2-mobile){-ms-flex:0 0 calc(50% - var(--ds-alias-space-base)*1/2);flex:0 0 calc(50% - var(--ds-alias-space-base)*1/2)}:host(.is-tile.has-cols-3-mobile){-ms-flex:0 0 calc(33.3333333333% - var(--ds-alias-space-base)*2/3);flex:0 0 calc(33.3333333333% - var(--ds-alias-space-base)*2/3)}:host(.is-tile.has-cols-4-mobile){-ms-flex:0 0 calc(25% - var(--ds-alias-space-base)*3/4);flex:0 0 calc(25% - var(--ds-alias-space-base)*3/4)}}@media screen and (min-width: 769px){:host(.is-tile.has-cols-2-tablet){-ms-flex:0 0 calc(50% - var(--ds-alias-space-base)*1/2);flex:0 0 calc(50% - var(--ds-alias-space-base)*1/2)}:host(.is-tile.has-cols-3-tablet){-ms-flex:0 0 calc(33.3333333333% - var(--ds-alias-space-base)*2/3);flex:0 0 calc(33.3333333333% - var(--ds-alias-space-base)*2/3)}:host(.is-tile.has-cols-4-tablet){-ms-flex:0 0 calc(25% - var(--ds-alias-space-base)*3/4);flex:0 0 calc(25% - var(--ds-alias-space-base)*3/4)}}@media screen and (min-width: 1024px){:host(.is-tile.has-cols-2-desktop){-ms-flex:0 0 calc(50% - var(--ds-alias-space-base)*1/2);flex:0 0 calc(50% - var(--ds-alias-space-base)*1/2)}:host(.is-tile.has-cols-3-desktop){-ms-flex:0 0 calc(33.3333333333% - var(--ds-alias-space-base)*2/3);flex:0 0 calc(33.3333333333% - var(--ds-alias-space-base)*2/3)}:host(.is-tile.has-cols-4-desktop){-ms-flex:0 0 calc(25% - var(--ds-alias-space-base)*3/4);flex:0 0 calc(25% - var(--ds-alias-space-base)*3/4)}}"}},[321,"ds-toggle",{autoInvalidOff:[4,"auto-invalid-off"],checked:[1540],dense:[4],color:[1],cols:[2],colsMobile:[2,"cols-mobile"],colsTablet:[2,"cols-tablet"],disabled:[516],invalid:[516],label:[1],labelPosition:[1,"label-position"],name:[513],readonly:[516],required:[516],tile:[4],value:[8],focused:[32]},[[6,"reset","listenToReset"]]]);c([i("toggle"),s("design:type",Function),s("design:paramtypes",[Function]),s("design:returntype",void 0)],b.prototype,"createLogger",null),c([g("boolean"),s("design:type",Boolean)],b.prototype,"autoInvalidOff",void 0),c([g("boolean"),s("design:type",Boolean)],b.prototype,"checked",void 0),c([g("boolean"),s("design:type",Boolean)],b.prototype,"dense",void 0),c([n(["","purple","green","yellow","red"]),s("design:type",String)],b.prototype,"color",void 0),c([n(h),s("design:type",Number)],b.prototype,"cols",void 0),c([n(h),s("design:type",Number)],b.prototype,"colsMobile",void 0),c([n(h),s("design:type",Number)],b.prototype,"colsTablet",void 0),c([g("boolean"),s("design:type",Boolean)],b.prototype,"disabled",void 0),c([g("boolean"),s("design:type",Boolean)],b.prototype,"invalid",void 0),c([g("string"),s("design:type",String)],b.prototype,"label",void 0),c([n(["left","top","right"]),s("design:type",String)],b.prototype,"labelPosition",void 0),c([g("string"),s("design:type",String)],b.prototype,"name",void 0),c([g("boolean"),s("design:type",Boolean)],b.prototype,"readonly",void 0),c([g("boolean"),s("design:type",Boolean)],b.prototype,"required",void 0),c([g("boolean"),s("design:type",Boolean)],b.prototype,"tile",void 0);let v=0;const k=b,u=function(){"undefined"!=typeof customElements&&["ds-toggle"].forEach((e=>{"ds-toggle"===e&&(customElements.get(r(e))||customElements.define(r(e),b))}))};export{k as DsToggle,u as defineCustomElement}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../dist/types/components";
|
|
2
|
+
|
|
3
|
+
interface DsTooltip extends Components.DsTooltip, HTMLElement {}
|
|
4
|
+
export const DsTooltip: {
|
|
5
|
+
prototype: DsTooltip;
|
|
6
|
+
new (): DsTooltip;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* (C) Helvetia Design System https://design.baloise.dev/ - Apache License 2.0
|
|
3
|
+
*/
|
|
4
|
+
import{p as t,H as i,f as o,d as e,h as a,e as r,t as s}from"./p-WO0X5Vmy.js";import{_ as n,L as l,a as p}from"./p-J0mxIuTt.js";import{a as m,c as d,s as c,f as h,o as b}from"./p-BqY0KzJC.js";import{O as v}from"./p-BhbWmCTu.js";let f=0;const u=t(class extends i{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.dsWillAnimate=o(this,"dsWillAnimate"),this.dsDidAnimate=o(this,"dsDidAnimate"),this.tooltipId="ds-tooltip-"+f++,this.presented=!1,this.reference="",this.placement="bottom",this.offset=8,this.contentWidth=void 0,this.open=!1}createLogger(t){this.log=t}contentWidthChanged(t){void 0===t?this.el.style.removeProperty("--tooltip-max-width"):this.el.style.setProperty("--tooltip-max-width",t+"px")}componentDidLoad(){this.contentWidthChanged(this.contentWidth);const t=this.triggerElement;t&&(t.setAttribute("aria-describedby",this.tooltipId),t.addEventListener("mouseenter",(()=>this.present())),t.addEventListener("focus",(()=>this.present())),t.addEventListener("mouseleave",(()=>this.dismiss())),t.addEventListener("blur",(()=>this.dismiss())),this.open&&this.present())}disconnectedCallback(){this.cleanup&&this.cleanup();const t=this.triggerElement;t&&t.removeAttribute("aria-describedby")}async present(){const t=this.triggerElement;return!(!t||!this.containerEl||(this.dsWillAnimate.emit(!0),this.presented=!0,this.cleanup=m(t,this.containerEl,(()=>this.update()),{ancestorScroll:!0,ancestorResize:!0,elementResize:!1,layoutShift:!0,animationFrame:!1}),this.dsDidAnimate.emit(!0),0))}async dismiss(){return!!this.containerEl&&(this.dsWillAnimate.emit(!1),this.cleanup&&(this.cleanup(),this.cleanup=void 0),this.presented=!1,this.dsDidAnimate.emit(!1),!0)}async update(){const t=this.triggerElement;if(!t||!this.containerEl)return!1;const{x:i,y:o,placement:a}=await d(t,this.containerEl,{placement:this.placement,strategy:"fixed",middleware:[e.hasWindow&&!window.frameElement?c():void 0,h(),b(this.offset)].filter(Boolean)});return Object.assign(this.containerEl.style,{left:i+"px",top:o+"px"}),this.containerEl.dataset.placement=a.split("-")[0],!0}get triggerElement(){return e.hasDocument?document.querySelector(`[id="${this.reference}"]`):null}render(){return a(r,{key:"70f12c4635b8547887442ac1be6a3384f0754f01",id:this.tooltipId,role:"tooltip","aria-hidden":""+!this.presented},a("div",{key:"6934ecd48ac24eabd34e190c9d00f7c40346102e",part:"container",ref:t=>this.containerEl=t},a("div",{key:"c85391dbfa57c220d5176c6a65ccad6d88ecb135",part:"content","data-testid":"ds-tooltip-content"},a("slot",{key:"88af144938af076f3278e0a8579c75dccd71f36f"}))))}get el(){return this}static get watchers(){return{contentWidth:[{contentWidthChanged:0}]}}static get style(){return":host{--_tooltip-position:var(--tooltip-position, var(--mod-tooltip-position, static));--_tooltip-top:var(--tooltip-top, var(--mod-tooltip-top));--_tooltip-right:var(--tooltip-right, var(--mod-tooltip-right));--_tooltip-bottom:var(--tooltip-bottom, var(--mod-tooltip-bottom));--_tooltip-left:var(--tooltip-left, var(--mod-tooltip-left));position:var(--_tooltip-position);top:var(--_tooltip-top);right:var(--_tooltip-right);bottom:var(--_tooltip-bottom);left:var(--_tooltip-left);--_tooltip-m:var(--tooltip-m, var(--mod-tooltip-m, 0));--_tooltip-my:var(--tooltip-my, var(--mod-tooltip-my));--_tooltip-mx:var(--tooltip-mx, var(--mod-tooltip-mx));--_tooltip-ml:var(--tooltip-ml, var(--mod-tooltip-ml));--_tooltip-mr:var(--tooltip-mr, var(--mod-tooltip-mr));--_tooltip-mt:var(--tooltip-mt, var(--mod-tooltip-mt));--_tooltip-mb:var(--tooltip-mb, var(--mod-tooltip-mb));margin:var(--_tooltip-m);margin-inline:var(--_tooltip-mx);margin-block:var(--_tooltip-my);margin-left:var(--_tooltip-ml);margin-right:var(--_tooltip-mr);margin-top:var(--_tooltip-mt);margin-bottom:var(--_tooltip-mb);--_tooltip-bg:var(--tooltip-bg, var(--mod-tooltip-bg, var(--ds-tooltip-bg)));--_tooltip-color:var(--tooltip-color, var(--mod-tooltip-color, var(--ds-tooltip-color)));--_tooltip-max-width:var(--tooltip-max-width, var(--mod-tooltip-max-width, auto));--_tooltip-radius:var(--tooltip-radius, var(--mod-tooltip-radius, var(--ds-tooltip-radius)));--_tooltip-shadow:var(--tooltip-shadow, var(--mod-tooltip-shadow, var(--ds-tooltip-shadow)));--_tooltip-px:var(--tooltip-px, var(--mod-tooltip-px, var(--ds-tooltip-px)));--_tooltip-py:var(--tooltip-py, var(--mod-tooltip-py, var(--ds-tooltip-py)));--_tooltip-font-family:var(--tooltip-font-family, var(--mod-tooltip-font-family, var(--ds-tooltip-font-family)));--_tooltip-font-size:var(--tooltip-font-size, var(--mod-tooltip-font-size, var(--ds-tooltip-font-size)));--_tooltip-line-height:var(--tooltip-line-height, var(--mod-tooltip-line-height, var(--ds-tooltip-line-height)));--_tooltip-z-index:var(--tooltip-z-index, var(--mod-tooltip-z-index, var(--ds-tooltip-z-index)))}:host{position:static;display:inline;z-index:var(--_tooltip-z-index)}::slotted(*){all:initial}[part=container]{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-user-drag:none;user-drag:none;opacity:0;visibility:hidden;pointer-events:none;-webkit-transform:translateY(-4px);transform:translateY(-4px);-webkit-transition:opacity 120ms cubic-bezier(0.4, 0, 1, 1),visibility 0ms linear 120ms,-webkit-transform 120ms cubic-bezier(0.4, 0, 1, 1);transition:opacity 120ms cubic-bezier(0.4, 0, 1, 1),visibility 0ms linear 120ms,-webkit-transform 120ms cubic-bezier(0.4, 0, 1, 1);transition:opacity 120ms cubic-bezier(0.4, 0, 1, 1),transform 120ms cubic-bezier(0.4, 0, 1, 1),visibility 0ms linear 120ms;transition:opacity 120ms cubic-bezier(0.4, 0, 1, 1),transform 120ms cubic-bezier(0.4, 0, 1, 1),visibility 0ms linear 120ms,-webkit-transform 120ms cubic-bezier(0.4, 0, 1, 1);will-change:opacity,transform;position:fixed;top:0;left:0;-webkit-box-sizing:border-box;box-sizing:border-box;width:-webkit-max-content;width:-moz-max-content;width:max-content;max-width:var(--_tooltip-max-width);background-color:var(--_tooltip-bg);border-radius:var(--_tooltip-radius);-webkit-box-shadow:var(--_tooltip-shadow);box-shadow:var(--_tooltip-shadow);color:var(--_tooltip-color);font-family:var(--_tooltip-font-family);font-size:var(--_tooltip-font-size);line-height:var(--_tooltip-line-height);z-index:var(--_tooltip-z-index)}:host([aria-hidden=false]) [part=container]{opacity:1;visibility:visible;pointer-events:auto;-webkit-transform:translate(0, 0);transform:translate(0, 0);-webkit-transition:opacity 200ms cubic-bezier(0, 0, 0.2, 1),visibility 0ms linear 0ms,-webkit-transform 200ms cubic-bezier(0, 0, 0.2, 1);transition:opacity 200ms cubic-bezier(0, 0, 0.2, 1),visibility 0ms linear 0ms,-webkit-transform 200ms cubic-bezier(0, 0, 0.2, 1);transition:opacity 200ms cubic-bezier(0, 0, 0.2, 1),transform 200ms cubic-bezier(0, 0, 0.2, 1),visibility 0ms linear 0ms;transition:opacity 200ms cubic-bezier(0, 0, 0.2, 1),transform 200ms cubic-bezier(0, 0, 0.2, 1),visibility 0ms linear 0ms,-webkit-transform 200ms cubic-bezier(0, 0, 0.2, 1)}[part=container][data-placement=top]{-webkit-transform:translateY(4px);transform:translateY(4px)}[part=container][data-placement=right]{-webkit-transform:translateX(-4px);transform:translateX(-4px)}[part=container][data-placement=left]{-webkit-transform:translateX(4px);transform:translateX(4px)}[part=content]{position:relative;padding-block:var(--_tooltip-py);padding-inline:var(--_tooltip-px);overflow-y:auto;max-height:calc(100svh - 8rem)}"}},[257,"ds-tooltip",{reference:[1],placement:[1],offset:[2],contentWidth:[2,"content-width"],open:[4],presented:[32],present:[64],dismiss:[64],update:[64]},void 0,{contentWidth:[{contentWidthChanged:0}]}]);n([l("tooltip"),p("design:type",Function),p("design:paramtypes",[Function]),p("design:returntype",void 0)],u.prototype,"createLogger",null),n([v(["top","right","bottom","left"]),p("design:type",String)],u.prototype,"placement",void 0);const y=u,g=function(){"undefined"!=typeof customElements&&["ds-tooltip"].forEach((t=>{"ds-tooltip"===t&&(customElements.get(s(t))||customElements.define(s(t),u))}))};export{y as DsTooltip,g as defineCustomElement}
|
package/components/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* (C) Helvetia Design System https://design.baloise.dev/ - Apache License 2.0
|
|
3
3
|
*/
|
|
4
|
-
import{d as t,s as n}from"./p-BNY3JzuV.js";export{g as getAssetPath,r as render,a as setAssetPath,b as setNonce,c as setPlatformOptions}from"./p-BNY3JzuV.js";export{i as i18nDsClose}from"./p-Bbn3sYo5.js";export{I as I18nDsLabel}from"./p-C7I7OlaM.js";export{i as i18nControlLabel}from"./p-BR1SYpQO.js";import{r as u,g as l}from"./p-BOgMmRCt.js";export{c as componentOnReady,d as deepReady,i as isDescendant,s as shallowReady,w as wait,a as waitAfterFramePaint,b as waitAfterIdleCallback,e as waitAfterLargestContentfulPaintCallback,f as waitForComponent,h as waitForDesignSystem,j as waitOnLoadEventCallback}from"./p-BOgMmRCt.js";import{d as m}from"./p-BEngECpF.js";export{a as defaultIcons,b as defaultLocale}from"./p-BEngECpF.js";import{d as y}from"./p-E1SnOz0L.js";export{D as DsDevice}from"./p-E1SnOz0L.js";import{W as p}from"./p-Bt20CEww.js";export{D as DsBreakpointSubject,b as DsBreakpointsUtil,a as dsBreakpointSubject,d as dsBreakpoints}from"./p-Bt20CEww.js";import{u as S}from"./p-5Sp1eJOt.js";export{b as attachComponentToConfig,a as attachToConfig,c as detachComponentFromConfig,d as detachFromConfig,o as onDsConfigChange,g as updateDsAllowedLanguages,i as updateDsAnimated,h as updateDsIcons,e as updateDsLanguage,j as updateDsLogger,f as updateDsRegion}from"./p-5Sp1eJOt.js";import{S as k,L as M,a as N}from"./p-DZqqelPH.js";export{L as ListenToConfig}from"./p-cSbDziZm.js";const v=["ds-accordion","ds-alert-container","ds-app","ds-badge","ds-button","ds-button-group","ds-card","ds-card-actions","ds-card-content","ds-card-header","ds-card-subtitle","ds-card-title","ds-checkbox","ds-checkbox-group","ds-close","ds-content","ds-divider","ds-heading","ds-icon","ds-input","ds-item","ds-label","ds-list","ds-logo","ds-notification","ds-number-input","ds-pagination","ds-progress-bar","ds-radio","ds-radio-group","ds-segment","ds-segment-item","ds-shape","ds-snackbar","ds-spinner","ds-stack","ds-tag","ds-tag-group","ds-text","ds-textarea","ds-toast","ds-toggle"];class T extends Error{}class O extends T{constructor(t){super("Invalid DateTime: "+t.toMessage())}}class E extends T{constructor(t){super("Invalid Interval: "+t.toMessage())}}class $ extends T{constructor(t){super("Invalid Duration: "+t.toMessage())}}class x extends T{}class C extends T{constructor(t){super("Invalid unit "+t)}}class F extends T{}class Z extends T{constructor(){super("Zone is an abstract class")}}const W="numeric",A="short",_="long",H={year:W,month:W,day:W},q={year:W,month:A,day:W},R={year:W,month:A,day:W,weekday:A},z={year:W,month:_,day:W},J={year:W,month:_,day:W,weekday:_},U={hour:W,minute:W},P={hour:W,minute:W,second:W},Y={hour:W,minute:W,second:W,timeZoneName:A},B={hour:W,minute:W,second:W,timeZoneName:_},G={hour:W,minute:W,hourCycle:"h23"},V={hour:W,minute:W,second:W,hourCycle:"h23"},Q={hour:W,minute:W,second:W,hourCycle:"h23",timeZoneName:A},K={hour:W,minute:W,second:W,hourCycle:"h23",timeZoneName:_},X={year:W,month:W,day:W,hour:W,minute:W},tt={year:W,month:W,day:W,hour:W,minute:W,second:W},et={year:W,month:A,day:W,hour:W,minute:W},nt={year:W,month:A,day:W,hour:W,minute:W,second:W},st={year:W,month:A,day:W,weekday:A,hour:W,minute:W},rt={year:W,month:_,day:W,hour:W,minute:W,timeZoneName:A},it={year:W,month:_,day:W,hour:W,minute:W,second:W,timeZoneName:A},ot={year:W,month:_,day:W,weekday:_,hour:W,minute:W,timeZoneName:_},at={year:W,month:_,day:W,weekday:_,hour:W,minute:W,second:W,timeZoneName:_};class ut{get type(){throw new Z}get name(){throw new Z}get ianaName(){return this.name}get isUniversal(){throw new Z}offsetName(t,e){throw new Z}formatOffset(t,e){throw new Z}offset(t){throw new Z}equals(t){throw new Z}get isValid(){throw new Z}}let ct=null;class ht extends ut{static get instance(){return null===ct&&(ct=new ht),ct}get type(){return"system"}get name(){return(new Intl.DateTimeFormat).resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(t,{format:e,locale:n}){return Ie(t,e,n)}formatOffset(t,e){return Le(this.offset(t),e)}offset(t){return-new Date(t).getTimezoneOffset()}equals(t){return"system"===t.type}get isValid(){return!0}}const lt=new Map,dt={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6},mt=new Map;class ft extends ut{static create(t){let e=mt.get(t);return void 0===e&&mt.set(t,e=new ft(t)),e}static resetCache(){mt.clear(),lt.clear()}static isValidSpecifier(t){return this.isValidZone(t)}static isValidZone(t){if(!t)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:t}).format(),!0}catch(t){return!1}}constructor(t){super(),this.zoneName=t,this.valid=ft.isValidZone(t)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(t,{format:e,locale:n}){return Ie(t,e,n,this.name)}formatOffset(t,e){return Le(this.offset(t),e)}offset(t){if(!this.valid)return NaN;const e=new Date(t);if(isNaN(e))return NaN;const n=function(t){let e=lt.get(t);return void 0===e&&(e=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:t,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"}),lt.set(t,e)),e}(this.name);let[s,r,i,o,a,u,c]=n.formatToParts?function(t,e){const n=t.formatToParts(e),s=[];for(let t=0;t<n.length;t++){const{type:e,value:r}=n[t],i=dt[e];"era"===e?s[i]=r:ce(i)||(s[i]=parseInt(r,10))}return s}(n,e):function(t,e){const n=t.format(e).replace(/\u200E/g,""),s=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(n),[,r,i,o,a,u,c,h]=s;return[o,r,i,a,u,c,h]}(n,e);"BC"===o&&(s=1-Math.abs(s));let h=+e;const l=h%1e3;return h-=l>=0?l:1e3+l,(Oe({year:s,month:r,day:i,hour:24===a?0:a,minute:u,second:c,millisecond:0})-h)/6e4}equals(t){return"iana"===t.type&&t.name===this.name}get isValid(){return this.valid}}let yt={};const gt=new Map;function wt(t,e={}){const n=JSON.stringify([t,e]);let s=gt.get(n);return void 0===s&&(s=new Intl.DateTimeFormat(t,e),gt.set(n,s)),s}const pt=new Map,bt=new Map;let St=null;const kt=new Map;function Mt(t){let e=kt.get(t);return void 0===e&&(e=new Intl.DateTimeFormat(t).resolvedOptions(),kt.set(t,e)),e}const Nt=new Map;function vt(t,e,n,s){const r=t.listingMode();return"error"===r?null:"en"===r?n(e):s(e)}class Tt{constructor(t,e,n){this.padTo=n.padTo||0,this.floor=n.floor||!1;const{padTo:s,floor:r,...i}=n;if(!e||Object.keys(i).length>0){const e={useGrouping:!1,...n};n.padTo>0&&(e.minimumIntegerDigits=n.padTo),this.inf=function(t,e={}){const n=JSON.stringify([t,e]);let s=pt.get(n);return void 0===s&&(s=new Intl.NumberFormat(t,e),pt.set(n,s)),s}(t,e)}}format(t){return this.inf?this.inf.format(this.floor?Math.floor(t):t):pe(this.floor?Math.floor(t):Me(t,3),this.padTo)}}class Ot{constructor(t,e,n){let s;if(this.opts=n,this.originalZone=void 0,this.opts.timeZone)this.dt=t;else if("fixed"===t.zone.type){const e=t.offset/60*-1,n=e>=0?"Etc/GMT+"+e:"Etc/GMT"+e;0!==t.offset&&ft.create(n).valid?(s=n,this.dt=t):(s="UTC",this.dt=0===t.offset?t:t.setZone("UTC").plus({minutes:t.offset}),this.originalZone=t.zone)}else"system"===t.zone.type?this.dt=t:"iana"===t.zone.type?(this.dt=t,s=t.zone.name):(s="UTC",this.dt=t.setZone("UTC").plus({minutes:t.offset}),this.originalZone=t.zone);const r={...this.opts};r.timeZone=r.timeZone||s,this.dtf=wt(e,r)}format(){return this.originalZone?this.formatToParts().map((({value:t})=>t)).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){const t=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?t.map((t=>{if("timeZoneName"===t.type){const e=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...t,value:e}}return t})):t}resolvedOptions(){return this.dtf.resolvedOptions()}}class Et{constructor(t,e,n){this.opts={style:"long",...n},!e&&de()&&(this.rtf=function(t,e={}){const{base:n,...s}=e,r=JSON.stringify([t,s]);let i=bt.get(r);return void 0===i&&(i=new Intl.RelativeTimeFormat(t,e),bt.set(r,i)),i}(t,n))}format(t,e){return this.rtf?this.rtf.format(t,e):function(t,e,n="always",s=!1){const r={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]};if("auto"===n&&-1===["hours","minutes","seconds"].indexOf(t)){const n="days"===t;switch(e){case 1:return n?"tomorrow":"next "+r[t][0];case-1:return n?"yesterday":"last "+r[t][0];case 0:return n?"today":"this "+r[t][0]}}const i=Object.is(e,-0)||e<0,o=Math.abs(e),a=1===o,u=r[t],c=s?a?u[1]:u[2]||u[1]:a?r[t][0]:t;return i?`${o} ${c} ago`:`in ${o} ${c}`}(e,t,this.opts.numeric,"long"!==this.opts.style)}formatToParts(t,e){return this.rtf?this.rtf.formatToParts(t,e):[]}}const Dt={firstDay:1,minimalDays:4,weekend:[6,7]};class $t{static fromOpts(t){return $t.create(t.locale,t.numberingSystem,t.outputCalendar,t.weekSettings,t.defaultToEN)}static create(t,e,n,s,r=!1){const i=t||Yt.defaultLocale,o=i||(r?"en-US":St||(St=(new Intl.DateTimeFormat).resolvedOptions().locale,St)),a=e||Yt.defaultNumberingSystem,u=n||Yt.defaultOutputCalendar,c=ge(s)||Yt.defaultWeekSettings;return new $t(o,a,u,c,i)}static resetCache(){St=null,gt.clear(),pt.clear(),bt.clear(),kt.clear(),Nt.clear()}static fromObject({locale:t,numberingSystem:e,outputCalendar:n,weekSettings:s}={}){return $t.create(t,e,n,s)}constructor(t,e,n,s,r){const[i,o,a]=function(t){const e=t.indexOf("-x-");-1!==e&&(t=t.substring(0,e));const n=t.indexOf("-u-");if(-1===n)return[t];{let e,s;try{e=wt(t).resolvedOptions(),s=t}catch(r){const i=t.substring(0,n);e=wt(i).resolvedOptions(),s=i}const{numberingSystem:r,calendar:i}=e;return[s,r,i]}}(t);this.locale=i,this.numberingSystem=e||o||null,this.outputCalendar=n||a||null,this.weekSettings=s,this.intl=function(t,e,n){return n||e?(t.includes("-u-")||(t+="-u"),n&&(t+="-ca-"+n),e&&(t+="-nu-"+e),t):t}(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=r,this.fastNumbersCached=null}get fastNumbers(){return null==this.fastNumbersCached&&(this.fastNumbersCached=function(t){return(!t.numberingSystem||"latn"===t.numberingSystem)&&("latn"===t.numberingSystem||!t.locale||t.locale.startsWith("en")||"latn"===Mt(t.locale).numberingSystem)}(this)),this.fastNumbersCached}listingMode(){return this.isEnglish()&&!(null!==this.numberingSystem&&"latn"!==this.numberingSystem||null!==this.outputCalendar&&"gregory"!==this.outputCalendar)?"en":"intl"}clone(t){return t&&0!==Object.getOwnPropertyNames(t).length?$t.create(t.locale||this.specifiedLocale,t.numberingSystem||this.numberingSystem,t.outputCalendar||this.outputCalendar,ge(t.weekSettings)||this.weekSettings,t.defaultToEN||!1):this}redefaultToEN(t={}){return this.clone({...t,defaultToEN:!0})}redefaultToSystem(t={}){return this.clone({...t,defaultToEN:!1})}months(t,e=!1){return vt(this,t,_e,(()=>{const n="ja"===this.intl||this.intl.startsWith("ja-"),s=(e&=!n)?{month:t,day:"numeric"}:{month:t},r=e?"format":"standalone";return this.monthsCache[r][t]||(this.monthsCache[r][t]=function(t){const e=[];for(let n=1;n<=12;n++){const s=zs.utc(2009,n,1);e.push(t(s))}return e}(n?t=>this.dtFormatter(t,s).format():t=>this.extract(t,s,"month"))),this.monthsCache[r][t]}))}weekdays(t,e=!1){return vt(this,t,ze,(()=>{const n=e?{weekday:t,year:"numeric",month:"long",day:"numeric"}:{weekday:t},s=e?"format":"standalone";return this.weekdaysCache[s][t]||(this.weekdaysCache[s][t]=function(t){const e=[];for(let n=1;n<=7;n++){const s=zs.utc(2016,11,13+n);e.push(t(s))}return e}((t=>this.extract(t,n,"weekday")))),this.weekdaysCache[s][t]}))}meridiems(){return vt(this,void 0,(()=>Je),(()=>{if(!this.meridiemCache){const t={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[zs.utc(2016,11,13,9),zs.utc(2016,11,13,19)].map((e=>this.extract(e,t,"dayperiod")))}return this.meridiemCache}))}eras(t){return vt(this,t,Be,(()=>{const e={era:t};return this.eraCache[t]||(this.eraCache[t]=[zs.utc(-40,1,1),zs.utc(2017,1,1)].map((t=>this.extract(t,e,"era")))),this.eraCache[t]}))}extract(t,e,n){const s=this.dtFormatter(t,e).formatToParts().find((t=>t.type.toLowerCase()===n));return s?s.value:null}numberFormatter(t={}){return new Tt(this.intl,t.forceSimple||this.fastNumbers,t)}dtFormatter(t,e={}){return new Ot(t,this.intl,e)}relFormatter(t={}){return new Et(this.intl,this.isEnglish(),t)}listFormatter(t={}){return function(t,e={}){const n=JSON.stringify([t,e]);let s=yt[n];return s||(s=new Intl.ListFormat(t,e),yt[n]=s),s}(this.intl,t)}isEnglish(){return"en"===this.locale||"en-us"===this.locale.toLowerCase()||Mt(this.intl).locale.startsWith("en-us")}getWeekSettings(){return this.weekSettings?this.weekSettings:me()?function(t){let e=Nt.get(t);if(!e){const n=new Intl.Locale(t);e="getWeekInfo"in n?n.getWeekInfo():n.weekInfo,"minimalDays"in e||(e={...Dt,...e}),Nt.set(t,e)}return e}(this.locale):Dt}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(t){return this.locale===t.locale&&this.numberingSystem===t.numberingSystem&&this.outputCalendar===t.outputCalendar}toString(){return`Locale(${this.locale}, ${this.numberingSystem}, ${this.outputCalendar})`}}let It=null;class xt extends ut{static get utcInstance(){return null===It&&(It=new xt(0)),It}static instance(t){return 0===t?xt.utcInstance:new xt(t)}static parseSpecifier(t){if(t){const e=t.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(e)return new xt(xe(e[1],e[2]))}return null}constructor(t){super(),this.fixed=t}get type(){return"fixed"}get name(){return 0===this.fixed?"UTC":"UTC"+Le(this.fixed,"narrow")}get ianaName(){return 0===this.fixed?"Etc/UTC":"Etc/GMT"+Le(-this.fixed,"narrow")}offsetName(){return this.name}formatOffset(t,e){return Le(this.fixed,e)}get isUniversal(){return!0}offset(){return this.fixed}equals(t){return"fixed"===t.type&&t.fixed===this.fixed}get isValid(){return!0}}class Ct extends ut{constructor(t){super(),this.zoneName=t}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}function jt(t,e){if(ce(t)||null===t)return e;if(t instanceof ut)return t;if(function(t){return"string"==typeof t}(t)){const n=t.toLowerCase();return"default"===n?e:"local"===n||"system"===n?ht.instance:"utc"===n||"gmt"===n?xt.utcInstance:xt.parseSpecifier(n)||ft.create(t)}return he(t)?xt.instance(t):"object"==typeof t&&"offset"in t&&"function"==typeof t.offset?t:new Ct(t)}const Lt={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},Ft={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},Zt=Lt.hanidec.replace(/[\[|\]]/g,"").split(""),Wt=new Map;function At({numberingSystem:t},e=""){const n=t||"latn";let s=Wt.get(n);void 0===s&&(s=new Map,Wt.set(n,s));let r=s.get(e);return void 0===r&&(r=RegExp(`${Lt[n]}${e}`),s.set(e,r)),r}let _t,Ht=()=>Date.now(),qt="system",Rt=null,zt=null,Jt=null,Ut=60,Pt=null;class Yt{static get now(){return Ht}static set now(t){Ht=t}static set defaultZone(t){qt=t}static get defaultZone(){return jt(qt,ht.instance)}static get defaultLocale(){return Rt}static set defaultLocale(t){Rt=t}static get defaultNumberingSystem(){return zt}static set defaultNumberingSystem(t){zt=t}static get defaultOutputCalendar(){return Jt}static set defaultOutputCalendar(t){Jt=t}static get defaultWeekSettings(){return Pt}static set defaultWeekSettings(t){Pt=ge(t)}static get twoDigitCutoffYear(){return Ut}static set twoDigitCutoffYear(t){Ut=t%100}static get throwOnInvalid(){return _t}static set throwOnInvalid(t){_t=t}static resetCaches(){$t.resetCache(),ft.resetCache(),zs.resetCache(),Wt.clear()}}class Bt{constructor(t,e){this.reason=t,this.explanation=e}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}const Gt=[0,31,59,90,120,151,181,212,243,273,304,334],Vt=[0,31,60,91,121,152,182,213,244,274,305,335];function Qt(t,e){return new Bt("unit out of range",`you specified ${e} (of type ${typeof e}) as a ${t}, which is invalid`)}function Kt(t,e,n){const s=new Date(Date.UTC(t,e-1,n));t<100&&t>=0&&s.setUTCFullYear(s.getUTCFullYear()-1900);const r=s.getUTCDay();return 0===r?7:r}function Xt(t,e,n){return n+(Ne(t)?Vt:Gt)[e-1]}function te(t,e){const n=Ne(t)?Vt:Gt,s=n.findIndex((t=>t<e));return{month:s+1,day:e-n[s]}}function ee(t,e){return(t-e+7)%7+1}function ne(t,e=4,n=1){const{year:s,month:r,day:i}=t,o=Xt(s,r,i),a=ee(Kt(s,r,i),n);let u,c=Math.floor((o-a+14-e)/7);return c<1?(u=s-1,c=De(u,e,n)):c>De(s,e,n)?(u=s+1,c=1):u=s,{weekYear:u,weekNumber:c,weekday:a,...Fe(t)}}function se(t,e=4,n=1){const{weekYear:s,weekNumber:r,weekday:i}=t,o=ee(Kt(s,1,e),n),a=ve(s);let u,c=7*r+i-o-7+e;c<1?(u=s-1,c+=ve(u)):c>a?(u=s+1,c-=ve(s)):u=s;const{month:h,day:l}=te(u,c);return{year:u,month:h,day:l,...Fe(t)}}function re(t){const{year:e,month:n,day:s}=t;return{year:e,ordinal:Xt(e,n,s),...Fe(t)}}function ie(t){const{year:e,ordinal:n}=t,{month:s,day:r}=te(e,n);return{year:e,month:s,day:r,...Fe(t)}}function oe(t,e){if(!ce(t.localWeekday)||!ce(t.localWeekNumber)||!ce(t.localWeekYear)){if(!ce(t.weekday)||!ce(t.weekNumber)||!ce(t.weekYear))throw new x("Cannot mix locale-based week fields with ISO-based week fields");return ce(t.localWeekday)||(t.weekday=t.localWeekday),ce(t.localWeekNumber)||(t.weekNumber=t.localWeekNumber),ce(t.localWeekYear)||(t.weekYear=t.localWeekYear),delete t.localWeekday,delete t.localWeekNumber,delete t.localWeekYear,{minDaysInFirstWeek:e.getMinDaysInFirstWeek(),startOfWeek:e.getStartOfWeek()}}return{minDaysInFirstWeek:4,startOfWeek:1}}function ae(t){const e=le(t.year),n=we(t.month,1,12),s=we(t.day,1,Te(t.year,t.month));return e?n?!s&&Qt("day",t.day):Qt("month",t.month):Qt("year",t.year)}function ue(t){const{hour:e,minute:n,second:s,millisecond:r}=t,i=we(e,0,23)||24===e&&0===n&&0===s&&0===r,o=we(n,0,59),a=we(s,0,59),u=we(r,0,999);return i?o?a?!u&&Qt("millisecond",r):Qt("second",s):Qt("minute",n):Qt("hour",e)}function ce(t){return void 0===t}function he(t){return"number"==typeof t}function le(t){return"number"==typeof t&&t%1==0}function de(){try{return"undefined"!=typeof Intl&&!!Intl.RelativeTimeFormat}catch(t){return!1}}function me(){try{return"undefined"!=typeof Intl&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch(t){return!1}}function fe(t,e,n){if(0!==t.length)return t.reduce(((t,s)=>{const r=[e(s),s];return t&&n(t[0],r[0])===t[0]?t:r}),null)[1]}function ye(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function ge(t){if(null==t)return null;if("object"!=typeof t)throw new F("Week settings must be an object");if(!we(t.firstDay,1,7)||!we(t.minimalDays,1,7)||!Array.isArray(t.weekend)||t.weekend.some((t=>!we(t,1,7))))throw new F("Invalid week settings");return{firstDay:t.firstDay,minimalDays:t.minimalDays,weekend:Array.from(t.weekend)}}function we(t,e,n){return le(t)&&t>=e&&t<=n}function pe(t,e=2){let n;return n=t<0?"-"+(""+-t).padStart(e,"0"):(""+t).padStart(e,"0"),n}function be(t){return ce(t)||null===t||""===t?void 0:parseInt(t,10)}function Se(t){return ce(t)||null===t||""===t?void 0:parseFloat(t)}function ke(t){if(!ce(t)&&null!==t&&""!==t)return Math.floor(1e3*parseFloat("0."+t))}function Me(t,e,n="round"){const s=10**e;switch(n){case"expand":return t>0?Math.ceil(t*s)/s:Math.floor(t*s)/s;case"trunc":return Math.trunc(t*s)/s;case"round":return Math.round(t*s)/s;case"floor":return Math.floor(t*s)/s;case"ceil":return Math.ceil(t*s)/s;default:throw new RangeError(`Value rounding ${n} is out of range`)}}function Ne(t){return t%4==0&&(t%100!=0||t%400==0)}function ve(t){return Ne(t)?366:365}function Te(t,e){const n=function(t){return t-12*Math.floor(t/12)}(e-1)+1;return 2===n?Ne(t+(e-n)/12)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][n-1]}function Oe(t){let e=Date.UTC(t.year,t.month-1,t.day,t.hour,t.minute,t.second,t.millisecond);return t.year<100&&t.year>=0&&(e=new Date(e),e.setUTCFullYear(t.year,t.month-1,t.day)),+e}function Ee(t,e,n){return-ee(Kt(t,1,e),n)+e-1}function De(t,e=4,n=1){const s=Ee(t,e,n),r=Ee(t+1,e,n);return(ve(t)-s+r)/7}function $e(t){return t>99?t:t>Yt.twoDigitCutoffYear?1900+t:2e3+t}function Ie(t,e,n,s=null){const r=new Date(t),i={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};s&&(i.timeZone=s);const o={timeZoneName:e,...i},a=new Intl.DateTimeFormat(n,o).formatToParts(r).find((t=>"timezonename"===t.type.toLowerCase()));return a?a.value:null}function xe(t,e){let n=parseInt(t,10);Number.isNaN(n)&&(n=0);const s=parseInt(e,10)||0;return 60*n+(n<0||Object.is(n,-0)?-s:s)}function Ce(t){const e=Number(t);if("boolean"==typeof t||""===t||!Number.isFinite(e))throw new F("Invalid unit value "+t);return e}function je(t,e){const n={};for(const s in t)if(ye(t,s)){const r=t[s];if(null==r)continue;n[e(s)]=Ce(r)}return n}function Le(t,e){const n=Math.trunc(Math.abs(t/60)),s=Math.trunc(Math.abs(t%60)),r=t>=0?"+":"-";switch(e){case"short":return`${r}${pe(n,2)}:${pe(s,2)}`;case"narrow":return`${r}${n}${s>0?":"+s:""}`;case"techie":return`${r}${pe(n,2)}${pe(s,2)}`;default:throw new RangeError(`Value format ${e} is out of range for property format`)}}function Fe(t){return function(t){return["hour","minute","second","millisecond"].reduce(((e,n)=>(e[n]=t[n],e)),{})}(t)}const Ze=["January","February","March","April","May","June","July","August","September","October","November","December"],We=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],Ae=["J","F","M","A","M","J","J","A","S","O","N","D"];function _e(t){switch(t){case"narrow":return[...Ae];case"short":return[...We];case"long":return[...Ze];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}const He=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],qe=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],Re=["M","T","W","T","F","S","S"];function ze(t){switch(t){case"narrow":return[...Re];case"short":return[...qe];case"long":return[...He];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const Je=["AM","PM"],Ue=["Before Christ","Anno Domini"],Pe=["BC","AD"],Ye=["B","A"];function Be(t){switch(t){case"narrow":return[...Ye];case"short":return[...Pe];case"long":return[...Ue];default:return null}}function Ge(t,e){let n="";for(const s of t)n+=s.literal?s.val:e(s.val);return n}const Ve={D:H,DD:q,DDD:z,DDDD:J,t:U,tt:P,ttt:Y,tttt:B,T:G,TT:V,TTT:Q,TTTT:K,f:X,ff:et,fff:rt,ffff:ot,F:tt,FF:nt,FFF:it,FFFF:at};class Qe{static create(t,e={}){return new Qe(t,e)}static parseFormat(t){let e=null,n="",s=!1;const r=[];for(let i=0;i<t.length;i++){const o=t.charAt(i);"'"===o?((n.length>0||s)&&r.push({literal:s||/^\s+$/.test(n),val:""===n?"'":n}),e=null,n="",s=!s):s||o===e?n+=o:(n.length>0&&r.push({literal:/^\s+$/.test(n),val:n}),n=o,e=o)}return n.length>0&&r.push({literal:s||/^\s+$/.test(n),val:n}),r}static macroTokenToFormatOpts(t){return Ve[t]}constructor(t,e){this.opts=e,this.loc=t,this.systemLoc=null}formatWithSystemDefault(t,e){return null===this.systemLoc&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(t,{...this.opts,...e}).format()}dtFormatter(t,e={}){return this.loc.dtFormatter(t,{...this.opts,...e})}formatDateTime(t,e){return this.dtFormatter(t,e).format()}formatDateTimeParts(t,e){return this.dtFormatter(t,e).formatToParts()}formatInterval(t,e){return this.dtFormatter(t.start,e).dtf.formatRange(t.start.toJSDate(),t.end.toJSDate())}resolvedOptions(t,e){return this.dtFormatter(t,e).resolvedOptions()}num(t,e=0,n){if(this.opts.forceSimple)return pe(t,e);const s={...this.opts};return e>0&&(s.padTo=e),n&&(s.signDisplay=n),this.loc.numberFormatter(s).format(t)}formatDateTimeFromString(t,e){const n="en"===this.loc.listingMode(),s=this.loc.outputCalendar&&"gregory"!==this.loc.outputCalendar,r=(e,n)=>this.loc.extract(t,e,n),i=e=>t.isOffsetFixed&&0===t.offset&&e.allowZ?"Z":t.isValid?t.zone.formatOffset(t.ts,e.format):"",o=(e,s)=>n?function(t,e){return _e(e)[t.month-1]}(t,e):r(s?{month:e}:{month:e,day:"numeric"},"month"),a=(e,s)=>n?function(t,e){return ze(e)[t.weekday-1]}(t,e):r(s?{weekday:e}:{weekday:e,month:"long",day:"numeric"},"weekday"),u=e=>{const n=Qe.macroTokenToFormatOpts(e);return n?this.formatWithSystemDefault(t,n):e},c=e=>n?function(t,e){return Be(e)[t.year<0?0:1]}(t,e):r({era:e},"era");return Ge(Qe.parseFormat(e),(e=>{switch(e){case"S":return this.num(t.millisecond);case"u":case"SSS":return this.num(t.millisecond,3);case"s":return this.num(t.second);case"ss":return this.num(t.second,2);case"uu":return this.num(Math.floor(t.millisecond/10),2);case"uuu":return this.num(Math.floor(t.millisecond/100));case"m":return this.num(t.minute);case"mm":return this.num(t.minute,2);case"h":return this.num(t.hour%12==0?12:t.hour%12);case"hh":return this.num(t.hour%12==0?12:t.hour%12,2);case"H":return this.num(t.hour);case"HH":return this.num(t.hour,2);case"Z":return i({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return i({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return i({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return t.zone.offsetName(t.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return t.zone.offsetName(t.ts,{format:"long",locale:this.loc.locale});case"z":return t.zoneName;case"a":return n?function(t){return Je[t.hour<12?0:1]}(t):r({hour:"numeric",hourCycle:"h12"},"dayperiod");case"d":return s?r({day:"numeric"},"day"):this.num(t.day);case"dd":return s?r({day:"2-digit"},"day"):this.num(t.day,2);case"c":case"E":return this.num(t.weekday);case"ccc":return a("short",!0);case"cccc":return a("long",!0);case"ccccc":return a("narrow",!0);case"EEE":return a("short",!1);case"EEEE":return a("long",!1);case"EEEEE":return a("narrow",!1);case"L":return s?r({month:"numeric",day:"numeric"},"month"):this.num(t.month);case"LL":return s?r({month:"2-digit",day:"numeric"},"month"):this.num(t.month,2);case"LLL":return o("short",!0);case"LLLL":return o("long",!0);case"LLLLL":return o("narrow",!0);case"M":return s?r({month:"numeric"},"month"):this.num(t.month);case"MM":return s?r({month:"2-digit"},"month"):this.num(t.month,2);case"MMM":return o("short",!1);case"MMMM":return o("long",!1);case"MMMMM":return o("narrow",!1);case"y":return s?r({year:"numeric"},"year"):this.num(t.year);case"yy":return s?r({year:"2-digit"},"year"):this.num((""+t.year).slice(-2),2);case"yyyy":return s?r({year:"numeric"},"year"):this.num(t.year,4);case"yyyyyy":return s?r({year:"numeric"},"year"):this.num(t.year,6);case"G":return c("short");case"GG":return c("long");case"GGGGG":return c("narrow");case"kk":return this.num((""+t.weekYear).slice(-2),2);case"kkkk":return this.num(t.weekYear,4);case"W":return this.num(t.weekNumber);case"WW":return this.num(t.weekNumber,2);case"n":return this.num(t.localWeekNumber);case"nn":return this.num(t.localWeekNumber,2);case"ii":return this.num((""+t.localWeekYear).slice(-2),2);case"iiii":return this.num(t.localWeekYear,4);case"o":return this.num(t.ordinal);case"ooo":return this.num(t.ordinal,3);case"q":return this.num(t.quarter);case"qq":return this.num(t.quarter,2);case"X":return this.num(Math.floor(t.ts/1e3));case"x":return this.num(t.ts);default:return u(e)}}))}formatDurationFromString(t,e){const n="negativeLargestOnly"===this.opts.signMode?-1:1,s=t=>{switch(t[0]){case"S":return"milliseconds";case"s":return"seconds";case"m":return"minutes";case"h":return"hours";case"d":return"days";case"w":return"weeks";case"M":return"months";case"y":return"years";default:return null}},r=Qe.parseFormat(e),i=r.reduce(((t,{literal:e,val:n})=>e?t:t.concat(n)),[]),o=t.shiftTo(...i.map(s).filter((t=>t)));return Ge(r,((t,e)=>r=>{const i=s(r);if(i){const s=e.isNegativeDuration&&i!==e.largestUnit?n:1;let o;return o="negativeLargestOnly"===this.opts.signMode&&i!==e.largestUnit?"never":"all"===this.opts.signMode?"always":"auto",this.num(t.get(i)*s,r.length,o)}return r})(o,{isNegativeDuration:o<0,largestUnit:Object.keys(o.values)[0]}))}}const Ke=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function Xe(...t){const e=t.reduce(((t,e)=>t+e.source),"");return RegExp(`^${e}$`)}function tn(...t){return e=>t.reduce((([t,n,s],r)=>{const[i,o,a]=r(e,s);return[{...t,...i},o||n,a]}),[{},null,1]).slice(0,2)}function en(t,...e){if(null==t)return[null,null];for(const[n,s]of e){const e=n.exec(t);if(e)return s(e)}return[null,null]}function nn(...t){return(e,n)=>{const s={};let r;for(r=0;r<t.length;r++)s[t[r]]=be(e[n+r]);return[s,null,n+r]}}const sn=/(?:([Zz])|([+-]\d\d)(?::?(\d\d))?)/,rn=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,on=RegExp(`${rn.source}(?:${sn.source}?(?:\\[(${Ke.source})\\])?)?`),an=RegExp(`(?:[Tt]${on.source})?`),un=nn("weekYear","weekNumber","weekDay"),cn=nn("year","ordinal"),hn=RegExp(`${rn.source} ?(?:${sn.source}|(${Ke.source}))?`),ln=RegExp(`(?: ${hn.source})?`);function dn(t,e,n){const s=t[e];return ce(s)?n:be(s)}function mn(t,e){return[{hours:dn(t,e,0),minutes:dn(t,e+1,0),seconds:dn(t,e+2,0),milliseconds:ke(t[e+3])},null,e+4]}function fn(t,e){const n=!t[e]&&!t[e+1],s=xe(t[e+1],t[e+2]);return[{},n?null:xt.instance(s),e+3]}function yn(t,e){return[{},t[e]?ft.create(t[e]):null,e+1]}const gn=RegExp(`^T?${rn.source}$`),wn=/^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;function pn(t){const[e,n,s,r,i,o,a,u,c]=t,h="-"===e[0],l=u&&"-"===u[0],d=(t,e=!1)=>void 0!==t&&(e||t&&h)?-t:t;return[{years:d(Se(n)),months:d(Se(s)),weeks:d(Se(r)),days:d(Se(i)),hours:d(Se(o)),minutes:d(Se(a)),seconds:d(Se(u),"-0"===u),milliseconds:d(ke(c),l)}]}const bn={GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Sn(t,e,n,s,r,i,o){const a={year:2===e.length?$e(be(e)):be(e),month:We.indexOf(n)+1,day:be(s),hour:be(r),minute:be(i)};return o&&(a.second=be(o)),t&&(a.weekday=t.length>3?He.indexOf(t)+1:qe.indexOf(t)+1),a}const kn=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function Mn(t){const[,e,n,s,r,i,o,a,u,c,h,l]=t,d=Sn(e,r,s,n,i,o,a);let m;return m=u?bn[u]:c?0:xe(h,l),[d,new xt(m)]}const Nn=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,vn=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,Tn=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function On(t){const[,e,n,s,r,i,o,a]=t;return[Sn(e,r,s,n,i,o,a),xt.utcInstance]}function En(t){const[,e,n,s,r,i,o,a]=t;return[Sn(e,a,n,s,r,i,o),xt.utcInstance]}const Dn=Xe(/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,an),$n=Xe(/(\d{4})-?W(\d\d)(?:-?(\d))?/,an),In=Xe(/(\d{4})-?(\d{3})/,an),xn=Xe(on),Cn=tn((function(t,e){return[{year:dn(t,e),month:dn(t,e+1,1),day:dn(t,e+2,1)},null,e+3]}),mn,fn,yn),jn=tn(un,mn,fn,yn),Ln=tn(cn,mn,fn,yn),Fn=tn(mn,fn,yn),Zn=tn(mn),Wn=Xe(/(\d{4})-(\d\d)-(\d\d)/,ln),An=Xe(hn),_n=tn(mn,fn,yn),Hn="Invalid Duration",qn={weeks:{days:7,hours:168,minutes:10080,seconds:604800,milliseconds:6048e5},days:{hours:24,minutes:1440,seconds:86400,milliseconds:864e5},hours:{minutes:60,seconds:3600,milliseconds:36e5},minutes:{seconds:60,milliseconds:6e4},seconds:{milliseconds:1e3}},Rn={years:{quarters:4,months:12,weeks:52,days:365,hours:8760,minutes:525600,seconds:31536e3,milliseconds:31536e6},quarters:{months:3,weeks:13,days:91,hours:2184,minutes:131040,seconds:7862400,milliseconds:78624e5},months:{weeks:4,days:30,hours:720,minutes:43200,seconds:2592e3,milliseconds:2592e6},...qn},zn={years:{quarters:4,months:12,weeks:52.1775,days:365.2425,hours:8765.82,minutes:525949.2,seconds:525949.2*60,milliseconds:525949.2*60*1e3},quarters:{months:3,weeks:13.044375,days:91.310625,hours:2191.455,minutes:131487.3,seconds:525949.2*60/4,milliseconds:7889237999.999999},months:{weeks:4.3481250000000005,days:30.436875,hours:730.485,minutes:43829.1,seconds:2629746,milliseconds:2629746e3},...qn},Jn=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],Un=Jn.slice(0).reverse();function Pn(t,e,n=!1){const s={values:n?e.values:{...t.values,...e.values||{}},loc:t.loc.clone(e.loc),conversionAccuracy:e.conversionAccuracy||t.conversionAccuracy,matrix:e.matrix||t.matrix};return new Vn(s)}function Yn(t,e){let n=e.milliseconds??0;for(const s of Un.slice(1))e[s]&&(n+=e[s]*t[s].milliseconds);return n}function Bn(t,e){const n=Yn(t,e)<0?-1:1;Jn.reduceRight(((s,r)=>{if(ce(e[r]))return s;if(s){const i=t[r][s],o=Math.floor(e[s]*n/i);e[r]+=o*n,e[s]-=o*i*n}return r}),null),Jn.reduce(((n,s)=>{if(ce(e[s]))return n;if(n){const r=e[n]%1;e[n]-=r,e[s]+=r*t[n][s]}return s}),null)}function Gn(t){const e={};for(const[n,s]of Object.entries(t))0!==s&&(e[n]=s);return e}class Vn{constructor(t){const e="longterm"===t.conversionAccuracy||!1;let n=e?zn:Rn;t.matrix&&(n=t.matrix),this.values=t.values,this.loc=t.loc||$t.create(),this.conversionAccuracy=e?"longterm":"casual",this.invalid=t.invalid||null,this.matrix=n,this.isLuxonDuration=!0}static fromMillis(t,e){return Vn.fromObject({milliseconds:t},e)}static fromObject(t,e={}){if(null==t||"object"!=typeof t)throw new F("Duration.fromObject: argument expected to be an object, got "+(null===t?"null":typeof t));return new Vn({values:je(t,Vn.normalizeUnit),loc:$t.fromObject(e),conversionAccuracy:e.conversionAccuracy,matrix:e.matrix})}static fromDurationLike(t){if(he(t))return Vn.fromMillis(t);if(Vn.isDuration(t))return t;if("object"==typeof t)return Vn.fromObject(t);throw new F(`Unknown duration argument ${t} of type ${typeof t}`)}static fromISO(t,e){const[n]=function(t){return en(t,[wn,pn])}(t);return n?Vn.fromObject(n,e):Vn.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static fromISOTime(t,e){const[n]=function(t){return en(t,[gn,Zn])}(t);return n?Vn.fromObject(n,e):Vn.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static invalid(t,e=null){if(!t)throw new F("need to specify a reason the Duration is invalid");const n=t instanceof Bt?t:new Bt(t,e);if(Yt.throwOnInvalid)throw new $(n);return new Vn({invalid:n})}static normalizeUnit(t){const e={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[t?t.toLowerCase():t];if(!e)throw new C(t);return e}static isDuration(t){return t&&t.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(t,e={}){const n={...e,floor:!1!==e.round&&!1!==e.floor};return this.isValid?Qe.create(this.loc,n).formatDurationFromString(this,t):Hn}toHuman(t={}){if(!this.isValid)return Hn;const e=!1!==t.showZeros,n=Jn.map((n=>{const s=this.values[n];return ce(s)||0===s&&!e?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...t,unit:n.slice(0,-1)}).format(s)})).filter((t=>t));return this.loc.listFormatter({type:"conjunction",style:t.listStyle||"narrow",...t}).format(n)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let t="P";return 0!==this.years&&(t+=this.years+"Y"),0===this.months&&0===this.quarters||(t+=this.months+3*this.quarters+"M"),0!==this.weeks&&(t+=this.weeks+"W"),0!==this.days&&(t+=this.days+"D"),0===this.hours&&0===this.minutes&&0===this.seconds&&0===this.milliseconds||(t+="T"),0!==this.hours&&(t+=this.hours+"H"),0!==this.minutes&&(t+=this.minutes+"M"),0===this.seconds&&0===this.milliseconds||(t+=Me(this.seconds+this.milliseconds/1e3,3)+"S"),"P"===t&&(t+="T0S"),t}toISOTime(t={}){if(!this.isValid)return null;const e=this.toMillis();return e<0||e>=864e5?null:(t={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...t,includeOffset:!1},zs.fromMillis(e,{zone:"UTC"}).toISOTime(t))}toJSON(){return this.toISO()}toString(){return this.toISO()}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Duration { values: ${JSON.stringify(this.values)} }`:`Duration { Invalid, reason: ${this.invalidReason} }`}toMillis(){return this.isValid?Yn(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(t){if(!this.isValid)return this;const e=Vn.fromDurationLike(t),n={};for(const t of Jn)(ye(e.values,t)||ye(this.values,t))&&(n[t]=e.get(t)+this.get(t));return Pn(this,{values:n},!0)}minus(t){if(!this.isValid)return this;const e=Vn.fromDurationLike(t);return this.plus(e.negate())}mapUnits(t){if(!this.isValid)return this;const e={};for(const n of Object.keys(this.values))e[n]=Ce(t(this.values[n],n));return Pn(this,{values:e},!0)}get(t){return this[Vn.normalizeUnit(t)]}set(t){return this.isValid?Pn(this,{values:{...this.values,...je(t,Vn.normalizeUnit)}}):this}reconfigure({locale:t,numberingSystem:e,conversionAccuracy:n,matrix:s}={}){return Pn(this,{loc:this.loc.clone({locale:t,numberingSystem:e}),matrix:s,conversionAccuracy:n})}as(t){return this.isValid?this.shiftTo(t).get(t):NaN}normalize(){if(!this.isValid)return this;const t=this.toObject();return Bn(this.matrix,t),Pn(this,{values:t},!0)}rescale(){return this.isValid?Pn(this,{values:Gn(this.normalize().shiftToAll().toObject())},!0):this}shiftTo(...t){if(!this.isValid)return this;if(0===t.length)return this;t=t.map((t=>Vn.normalizeUnit(t)));const e={},n={},s=this.toObject();let r;for(const i of Jn)if(t.indexOf(i)>=0){r=i;let t=0;for(const e in n)t+=this.matrix[e][i]*n[e],n[e]=0;he(s[i])&&(t+=s[i]);const o=Math.trunc(t);e[i]=o,n[i]=(1e3*t-1e3*o)/1e3}else he(s[i])&&(n[i]=s[i]);for(const t in n)0!==n[t]&&(e[r]+=t===r?n[t]:n[t]/this.matrix[r][t]);return Bn(this.matrix,e),Pn(this,{values:e},!0)}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;const t={};for(const e of Object.keys(this.values))t[e]=0===this.values[e]?0:-this.values[e];return Pn(this,{values:t},!0)}removeZeros(){return this.isValid?Pn(this,{values:Gn(this.values)},!0):this}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return null===this.invalid}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(t){if(!this.isValid||!t.isValid)return!1;if(!this.loc.equals(t.loc))return!1;function e(t,e){return void 0===t||0===t?void 0===e||0===e:t===e}for(const n of Jn)if(!e(this.values[n],t.values[n]))return!1;return!0}}const Qn="Invalid Interval";class Kn{constructor(t){this.s=t.start,this.e=t.end,this.invalid=t.invalid||null,this.isLuxonInterval=!0}static invalid(t,e=null){if(!t)throw new F("need to specify a reason the Interval is invalid");const n=t instanceof Bt?t:new Bt(t,e);if(Yt.throwOnInvalid)throw new E(n);return new Kn({invalid:n})}static fromDateTimes(t,e){const n=Js(t),s=Js(e),r=function(t,e){return t&&t.isValid?e&&e.isValid?e<t?Kn.invalid("end before start",`The end of an interval must be after its start, but you had start=${t.toISO()} and end=${e.toISO()}`):null:Kn.invalid("missing or invalid end"):Kn.invalid("missing or invalid start")}(n,s);return null==r?new Kn({start:n,end:s}):r}static after(t,e){const n=Vn.fromDurationLike(e),s=Js(t);return Kn.fromDateTimes(s,s.plus(n))}static before(t,e){const n=Vn.fromDurationLike(e),s=Js(t);return Kn.fromDateTimes(s.minus(n),s)}static fromISO(t,e){const[n,s]=(t||"").split("/",2);if(n&&s){let t,r,i,o;try{t=zs.fromISO(n,e),r=t.isValid}catch(s){r=!1}try{i=zs.fromISO(s,e),o=i.isValid}catch(s){o=!1}if(r&&o)return Kn.fromDateTimes(t,i);if(r){const n=Vn.fromISO(s,e);if(n.isValid)return Kn.after(t,n)}else if(o){const t=Vn.fromISO(n,e);if(t.isValid)return Kn.before(i,t)}}return Kn.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static isInterval(t){return t&&t.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get lastDateTime(){return this.isValid&&this.e?this.e.minus(1):null}get isValid(){return null===this.invalidReason}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(t="milliseconds"){return this.isValid?this.toDuration(t).get(t):NaN}count(t="milliseconds",e){if(!this.isValid)return NaN;const n=this.start.startOf(t,e);let s;return s=e?.useLocaleWeeks?this.end.reconfigure({locale:n.locale}):this.end,s=s.startOf(t,e),Math.floor(s.diff(n,t).get(t))+(s.valueOf()!==this.end.valueOf())}hasSame(t){return!!this.isValid&&(this.isEmpty()||this.e.minus(1).hasSame(this.s,t))}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(t){return!!this.isValid&&this.s>t}isBefore(t){return!!this.isValid&&this.e<=t}contains(t){return!!this.isValid&&this.s<=t&&this.e>t}set({start:t,end:e}={}){return this.isValid?Kn.fromDateTimes(t||this.s,e||this.e):this}splitAt(...t){if(!this.isValid)return[];const e=t.map(Js).filter((t=>this.contains(t))).sort(((t,e)=>t.toMillis()-e.toMillis())),n=[];let{s}=this,r=0;for(;s<this.e;){const t=e[r]||this.e,i=+t>+this.e?this.e:t;n.push(Kn.fromDateTimes(s,i)),s=i,r+=1}return n}splitBy(t){const e=Vn.fromDurationLike(t);if(!this.isValid||!e.isValid||0===e.as("milliseconds"))return[];let n,{s}=this,r=1;const i=[];for(;s<this.e;){const t=this.start.plus(e.mapUnits((t=>t*r)));n=+t>+this.e?this.e:t,i.push(Kn.fromDateTimes(s,n)),s=n,r+=1}return i}divideEqually(t){return this.isValid?this.splitBy(this.length()/t).slice(0,t):[]}overlaps(t){return this.e>t.s&&this.s<t.e}abutsStart(t){return!!this.isValid&&+this.e==+t.s}abutsEnd(t){return!!this.isValid&&+t.e==+this.s}engulfs(t){return!!this.isValid&&this.s<=t.s&&this.e>=t.e}equals(t){return!(!this.isValid||!t.isValid)&&this.s.equals(t.s)&&this.e.equals(t.e)}intersection(t){if(!this.isValid)return this;const e=this.s>t.s?this.s:t.s,n=this.e<t.e?this.e:t.e;return e>=n?null:Kn.fromDateTimes(e,n)}union(t){return this.isValid?Kn.fromDateTimes(this.s<t.s?this.s:t.s,this.e>t.e?this.e:t.e):this}static merge(t){const[e,n]=t.sort(((t,e)=>t.s-e.s)).reduce((([t,e],n)=>e?e.overlaps(n)||e.abutsStart(n)?[t,e.union(n)]:[t.concat([e]),n]:[t,n]),[[],null]);return n&&e.push(n),e}static xor(t){let e=null,n=0;const s=[],r=t.map((t=>[{time:t.s,type:"s"},{time:t.e,type:"e"}])),i=Array.prototype.concat(...r).sort(((t,e)=>t.time-e.time));for(const t of i)n+="s"===t.type?1:-1,1===n?e=t.time:(e&&+e!=+t.time&&s.push(Kn.fromDateTimes(e,t.time)),e=null);return Kn.merge(s)}difference(...t){return Kn.xor([this].concat(t)).map((t=>this.intersection(t))).filter((t=>t&&!t.isEmpty()))}toString(){return this.isValid?`[${this.s.toISO()} – ${this.e.toISO()})`:Qn}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`:`Interval { Invalid, reason: ${this.invalidReason} }`}toLocaleString(t=H,e={}){return this.isValid?Qe.create(this.s.loc.clone(e),t).formatInterval(this):Qn}toISO(t){return this.isValid?`${this.s.toISO(t)}/${this.e.toISO(t)}`:Qn}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:Qn}toISOTime(t){return this.isValid?`${this.s.toISOTime(t)}/${this.e.toISOTime(t)}`:Qn}toFormat(t,{separator:e=" – "}={}){return this.isValid?`${this.s.toFormat(t)}${e}${this.e.toFormat(t)}`:Qn}toDuration(t,e){return this.isValid?this.e.diff(this.s,t,e):Vn.invalid(this.invalidReason)}mapEndpoints(t){return Kn.fromDateTimes(t(this.s),t(this.e))}}class Xn{static hasDST(t=Yt.defaultZone){const e=zs.now().setZone(t).set({month:12});return!t.isUniversal&&e.offset!==e.set({month:6}).offset}static isValidIANAZone(t){return ft.isValidZone(t)}static normalizeZone(t){return jt(t,Yt.defaultZone)}static getStartOfWeek({locale:t=null,locObj:e=null}={}){return(e||$t.create(t)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:t=null,locObj:e=null}={}){return(e||$t.create(t)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:t=null,locObj:e=null}={}){return(e||$t.create(t)).getWeekendDays().slice()}static months(t="long",{locale:e=null,numberingSystem:n=null,locObj:s=null,outputCalendar:r="gregory"}={}){return(s||$t.create(e,n,r)).months(t)}static monthsFormat(t="long",{locale:e=null,numberingSystem:n=null,locObj:s=null,outputCalendar:r="gregory"}={}){return(s||$t.create(e,n,r)).months(t,!0)}static weekdays(t="long",{locale:e=null,numberingSystem:n=null,locObj:s=null}={}){return(s||$t.create(e,n,null)).weekdays(t)}static weekdaysFormat(t="long",{locale:e=null,numberingSystem:n=null,locObj:s=null}={}){return(s||$t.create(e,n,null)).weekdays(t,!0)}static meridiems({locale:t=null}={}){return $t.create(t).meridiems()}static eras(t="short",{locale:e=null}={}){return $t.create(e,null,"gregory").eras(t)}static features(){return{relative:de(),localeWeek:me()}}}function ts(t,e){const n=t=>t.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),s=n(e)-n(t);return Math.floor(Vn.fromMillis(s).as("days"))}function es(t,e=t=>t){return{regex:t,deser:([t])=>e(function(t){let e=parseInt(t,10);if(isNaN(e)){e="";for(let n=0;n<t.length;n++){const s=t.charCodeAt(n);if(-1!==t[n].search(Lt.hanidec))e+=Zt.indexOf(t[n]);else for(const t in Ft){const[n,r]=Ft[t];s>=n&&s<=r&&(e+=s-n)}}return parseInt(e,10)}return e}(t))}}const ns="[ ]",ss=RegExp(ns,"g");function rs(t){return t.replace(/\./g,"\\.?").replace(ss,ns)}function is(t){return t.replace(/\./g,"").replace(ss," ").toLowerCase()}function os(t,e){return null===t?null:{regex:RegExp(t.map(rs).join("|")),deser:([n])=>t.findIndex((t=>is(n)===is(t)))+e}}function as(t,e){return{regex:t,deser:([,t,e])=>xe(t,e),groups:e}}function us(t){return{regex:t,deser:([t])=>t}}function cs(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}const hs={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};let ls=null;function ds(t,e){return Array.prototype.concat(...t.map((t=>function(t,e){if(t.literal)return t;const n=ys(Qe.macroTokenToFormatOpts(t.val),e);return null==n||n.includes(void 0)?t:n}(t,e))))}class ms{constructor(t,e){if(this.locale=t,this.format=e,this.tokens=ds(Qe.parseFormat(e),t),this.units=this.tokens.map((e=>function(t,e){const n=At(e),s=At(e,"{2}"),r=At(e,"{3}"),i=At(e,"{4}"),o=At(e,"{6}"),a=At(e,"{1,2}"),u=At(e,"{1,3}"),c=At(e,"{1,6}"),h=At(e,"{1,9}"),l=At(e,"{2,4}"),d=At(e,"{4,6}"),m=t=>({regex:RegExp(cs(t.val)),deser:([t])=>t,literal:!0}),f=(f=>{if(t.literal)return m(f);switch(f.val){case"G":return os(e.eras("short"),0);case"GG":return os(e.eras("long"),0);case"y":return es(c);case"yy":case"kk":return es(l,$e);case"yyyy":case"kkkk":return es(i);case"yyyyy":return es(d);case"yyyyyy":return es(o);case"M":case"L":case"d":case"H":case"h":case"m":case"q":case"s":case"W":return es(a);case"MM":case"LL":case"dd":case"HH":case"hh":case"mm":case"qq":case"ss":case"WW":return es(s);case"MMM":return os(e.months("short",!0),1);case"MMMM":return os(e.months("long",!0),1);case"LLL":return os(e.months("short",!1),1);case"LLLL":return os(e.months("long",!1),1);case"o":case"S":return es(u);case"ooo":case"SSS":return es(r);case"u":return us(h);case"uu":return us(a);case"uuu":case"E":case"c":return es(n);case"a":return os(e.meridiems(),0);case"EEE":return os(e.weekdays("short",!1),1);case"EEEE":return os(e.weekdays("long",!1),1);case"ccc":return os(e.weekdays("short",!0),1);case"cccc":return os(e.weekdays("long",!0),1);case"Z":case"ZZ":return as(RegExp(`([+-]${a.source})(?::(${s.source}))?`),2);case"ZZZ":return as(RegExp(`([+-]${a.source})(${s.source})?`),2);case"z":return us(/[a-z_+-/]{1,256}?/i);case" ":return us(/[^\S\n\r]/);default:return m(f)}})(t)||{invalidReason:"missing Intl.DateTimeFormat.formatToParts support"};return f.token=t,f}(e,t))),this.disqualifyingUnit=this.units.find((t=>t.invalidReason)),!this.disqualifyingUnit){const[t,e]=function(t){return[`^${t.map((t=>t.regex)).reduce(((t,e)=>`${t}(${e.source})`),"")}$`,t]}(this.units);this.regex=RegExp(t,"i"),this.handlers=e}}explainFromTokens(t){if(this.isValid){const[e,n]=function(t,e,n){const s=t.match(e);if(s){const t={};let e=1;for(const r in n)if(ye(n,r)){const i=n[r],o=i.groups?i.groups+1:1;!i.literal&&i.token&&(t[i.token.val[0]]=i.deser(s.slice(e,e+o))),e+=o}return[s,t]}return[s,{}]}(t,this.regex,this.handlers),[s,r,i]=n?function(t){let e,n=null;return ce(t.z)||(n=ft.create(t.z)),ce(t.Z)||(n||(n=new xt(t.Z)),e=t.Z),ce(t.q)||(t.M=3*(t.q-1)+1),ce(t.h)||(t.h<12&&1===t.a?t.h+=12:12===t.h&&0===t.a&&(t.h=0)),0===t.G&&t.y&&(t.y=-t.y),ce(t.u)||(t.S=ke(t.u)),[Object.keys(t).reduce(((e,n)=>{const s=(t=>{switch(t){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}})(n);return s&&(e[s]=t[n]),e}),{}),n,e]}(n):[null,null,void 0];if(ye(n,"a")&&ye(n,"H"))throw new x("Can't include meridiem when specifying 24-hour format");return{input:t,tokens:this.tokens,regex:this.regex,rawMatches:e,matches:n,result:s,zone:r,specificOffset:i}}return{input:t,tokens:this.tokens,invalidReason:this.invalidReason}}get isValid(){return!this.disqualifyingUnit}get invalidReason(){return this.disqualifyingUnit?this.disqualifyingUnit.invalidReason:null}}function fs(t,e,n){return new ms(t,n).explainFromTokens(e)}function ys(t,e){if(!t)return null;const n=Qe.create(e,t).dtFormatter((ls||(ls=zs.fromMillis(1555555555555)),ls)),s=n.formatToParts(),r=n.resolvedOptions();return s.map((e=>function(t,e,n){const{type:s,value:r}=t;if("literal"===s){const t=/^\s+$/.test(r);return{literal:!t,val:t?" ":r}}let i=s;"hour"===s&&(i=null!=e.hour12?e.hour12?"hour12":"hour24":null!=e.hourCycle?"h11"===e.hourCycle||"h12"===e.hourCycle?"hour12":"hour24":n.hour12?"hour12":"hour24");let o=hs[i];if("object"==typeof o&&(o=o[e[s]]),o)return{literal:!1,val:o}}(e,t,r)))}const gs="Invalid DateTime",ws=864e13;function ps(t){return new Bt("unsupported zone",`the zone "${t.name}" is not supported`)}function bs(t){return null===t.weekData&&(t.weekData=ne(t.c)),t.weekData}function Ss(t){return null===t.localWeekData&&(t.localWeekData=ne(t.c,t.loc.getMinDaysInFirstWeek(),t.loc.getStartOfWeek())),t.localWeekData}function ks(t,e){const n={ts:t.ts,zone:t.zone,c:t.c,o:t.o,loc:t.loc,invalid:t.invalid};return new zs({...n,...e,old:n})}function Ms(t,e,n){let s=t-60*e*1e3;const r=n.offset(s);if(e===r)return[s,e];s-=60*(r-e)*1e3;const i=n.offset(s);return r===i?[s,r]:[t-60*Math.min(r,i)*1e3,Math.max(r,i)]}function Ns(t,e){const n=new Date(t+=60*e*1e3);return{year:n.getUTCFullYear(),month:n.getUTCMonth()+1,day:n.getUTCDate(),hour:n.getUTCHours(),minute:n.getUTCMinutes(),second:n.getUTCSeconds(),millisecond:n.getUTCMilliseconds()}}function vs(t,e,n){return Ms(Oe(t),e,n)}function Ts(t,e){const n=t.o,s=t.c.year+Math.trunc(e.years),r=t.c.month+Math.trunc(e.months)+3*Math.trunc(e.quarters),i={...t.c,year:s,month:r,day:Math.min(t.c.day,Te(s,r))+Math.trunc(e.days)+7*Math.trunc(e.weeks)},o=Vn.fromObject({years:e.years-Math.trunc(e.years),quarters:e.quarters-Math.trunc(e.quarters),months:e.months-Math.trunc(e.months),weeks:e.weeks-Math.trunc(e.weeks),days:e.days-Math.trunc(e.days),hours:e.hours,minutes:e.minutes,seconds:e.seconds,milliseconds:e.milliseconds}).as("milliseconds"),a=Oe(i);let[u,c]=Ms(a,n,t.zone);return 0!==o&&(u+=o,c=t.zone.offset(u)),{ts:u,o:c}}function Os(t,e,n,s,r,i){const{setZone:o,zone:a}=n;if(t&&0!==Object.keys(t).length||e){const s=e||a,r=zs.fromObject(t,{...n,zone:s,specificOffset:i});return o?r:r.setZone(a)}return zs.invalid(new Bt("unparsable",`the input "${r}" can't be parsed as ${s}`))}function Es(t,e,n=!0){return t.isValid?Qe.create($t.create("en-US"),{allowZ:n,forceSimple:!0}).formatDateTimeFromString(t,e):null}function Ds(t,e,n){const s=t.c.year>9999||t.c.year<0;let r="";if(s&&t.c.year>=0&&(r+="+"),r+=pe(t.c.year,s?6:4),"year"===n)return r;if(e){if(r+="-",r+=pe(t.c.month),"month"===n)return r;r+="-"}else if(r+=pe(t.c.month),"month"===n)return r;return r+=pe(t.c.day),r}function $s(t,e,n,s,r,i,o){let a=!n||0!==t.c.millisecond||0!==t.c.second,u="";switch(o){case"day":case"month":case"year":break;default:if(u+=pe(t.c.hour),"hour"===o)break;if(e){if(u+=":",u+=pe(t.c.minute),"minute"===o)break;a&&(u+=":",u+=pe(t.c.second))}else{if(u+=pe(t.c.minute),"minute"===o)break;a&&(u+=pe(t.c.second))}if("second"===o)break;!a||s&&0===t.c.millisecond||(u+=".",u+=pe(t.c.millisecond,3))}return r&&(t.isOffsetFixed&&0===t.offset&&!i?u+="Z":t.o<0?(u+="-",u+=pe(Math.trunc(-t.o/60)),u+=":",u+=pe(Math.trunc(-t.o%60))):(u+="+",u+=pe(Math.trunc(t.o/60)),u+=":",u+=pe(Math.trunc(t.o%60)))),i&&(u+="["+t.zone.ianaName+"]"),u}const Is={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},xs={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},Cs={ordinal:1,hour:0,minute:0,second:0,millisecond:0},js=["year","month","day","hour","minute","second","millisecond"],Ls=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],Fs=["year","ordinal","hour","minute","second","millisecond"];function Zs(t){const e={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[t.toLowerCase()];if(!e)throw new C(t);return e}function Ws(t){switch(t.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return Zs(t)}}function As(t,e){const n=jt(e.zone,Yt.defaultZone);if(!n.isValid)return zs.invalid(ps(n));const s=$t.fromObject(e);let r,i;if(ce(t.year))r=Yt.now();else{for(const e of js)ce(t[e])&&(t[e]=Is[e]);const e=ae(t)||ue(t);if(e)return zs.invalid(e);const s=function(t){if(void 0===qs&&(qs=Yt.now()),"iana"!==t.type)return t.offset(qs);const e=t.name;let n=Rs.get(e);return void 0===n&&(n=t.offset(qs),Rs.set(e,n)),n}(n);[r,i]=vs(t,s,n)}return new zs({ts:r,zone:n,loc:s,o:i})}function _s(t,e,n){const s=!!ce(n.round)||n.round,r=ce(n.rounding)?"trunc":n.rounding,i=(t,i)=>(t=Me(t,s||n.calendary?0:2,n.calendary?"round":r),e.loc.clone(n).relFormatter(n).format(t,i)),o=s=>n.calendary?e.hasSame(t,s)?0:e.startOf(s).diff(t.startOf(s),s).get(s):e.diff(t,s).get(s);if(n.unit)return i(o(n.unit),n.unit);for(const t of n.units){const e=o(t);if(Math.abs(e)>=1)return i(e,t)}return i(t>e?-0:0,n.units[n.units.length-1])}function Hs(t){let e,n={};return t.length>0&&"object"==typeof t[t.length-1]?(n=t[t.length-1],e=Array.from(t).slice(0,t.length-1)):e=Array.from(t),[n,e]}let qs;const Rs=new Map;class zs{constructor(t){const e=t.zone||Yt.defaultZone;let n=t.invalid||(Number.isNaN(t.ts)?new Bt("invalid input"):null)||(e.isValid?null:ps(e));this.ts=ce(t.ts)?Yt.now():t.ts;let s=null,r=null;if(!n)if(t.old&&t.old.ts===this.ts&&t.old.zone.equals(e))[s,r]=[t.old.c,t.old.o];else{const i=he(t.o)&&!t.old?t.o:e.offset(this.ts);s=Ns(this.ts,i),n=Number.isNaN(s.year)?new Bt("invalid input"):null,s=n?null:s,r=n?null:i}this._zone=e,this.loc=t.loc||$t.create(),this.invalid=n,this.weekData=null,this.localWeekData=null,this.c=s,this.o=r,this.isLuxonDateTime=!0}static now(){return new zs({})}static local(){const[t,e]=Hs(arguments),[n,s,r,i,o,a,u]=e;return As({year:n,month:s,day:r,hour:i,minute:o,second:a,millisecond:u},t)}static utc(){const[t,e]=Hs(arguments),[n,s,r,i,o,a,u]=e;return t.zone=xt.utcInstance,As({year:n,month:s,day:r,hour:i,minute:o,second:a,millisecond:u},t)}static fromJSDate(t,e={}){const n=function(t){return"[object Date]"===Object.prototype.toString.call(t)}(t)?t.valueOf():NaN;if(Number.isNaN(n))return zs.invalid("invalid input");const s=jt(e.zone,Yt.defaultZone);return s.isValid?new zs({ts:n,zone:s,loc:$t.fromObject(e)}):zs.invalid(ps(s))}static fromMillis(t,e={}){if(he(t))return t<-ws||t>ws?zs.invalid("Timestamp out of range"):new zs({ts:t,zone:jt(e.zone,Yt.defaultZone),loc:$t.fromObject(e)});throw new F(`fromMillis requires a numerical input, but received a ${typeof t} with value ${t}`)}static fromSeconds(t,e={}){if(he(t))return new zs({ts:1e3*t,zone:jt(e.zone,Yt.defaultZone),loc:$t.fromObject(e)});throw new F("fromSeconds requires a numerical input")}static fromObject(t,e={}){t=t||{};const n=jt(e.zone,Yt.defaultZone);if(!n.isValid)return zs.invalid(ps(n));const s=$t.fromObject(e),r=je(t,Ws),{minDaysInFirstWeek:i,startOfWeek:o}=oe(r,s),a=Yt.now(),u=ce(e.specificOffset)?n.offset(a):e.specificOffset,c=!ce(r.ordinal),h=!ce(r.year),l=!ce(r.month)||!ce(r.day),d=h||l,m=r.weekYear||r.weekNumber;if((d||c)&&m)throw new x("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(l&&c)throw new x("Can't mix ordinal dates with month/day");const f=m||r.weekday&&!d;let y,g,w=Ns(a,u);f?(y=Ls,g=xs,w=ne(w,i,o)):c?(y=Fs,g=Cs,w=re(w)):(y=js,g=Is);let p=!1;for(const t of y)ce(r[t])?r[t]=p?g[t]:w[t]:p=!0;const b=f?function(t,e=4,n=1){const s=le(t.weekYear),r=we(t.weekNumber,1,De(t.weekYear,e,n)),i=we(t.weekday,1,7);return s?r?!i&&Qt("weekday",t.weekday):Qt("week",t.weekNumber):Qt("weekYear",t.weekYear)}(r,i,o):c?function(t){const e=le(t.year),n=we(t.ordinal,1,ve(t.year));return e?!n&&Qt("ordinal",t.ordinal):Qt("year",t.year)}(r):ae(r),S=b||ue(r);if(S)return zs.invalid(S);const k=f?se(r,i,o):c?ie(r):r,[M,N]=vs(k,u,n),v=new zs({ts:M,zone:n,o:N,loc:s});return r.weekday&&d&&t.weekday!==v.weekday?zs.invalid("mismatched weekday",`you can't specify both a weekday of ${r.weekday} and a date of ${v.toISO()}`):v.isValid?v:zs.invalid(v.invalid)}static fromISO(t,e={}){const[n,s]=function(t){return en(t,[Dn,Cn],[$n,jn],[In,Ln],[xn,Fn])}(t);return Os(n,s,e,"ISO 8601",t)}static fromRFC2822(t,e={}){const[n,s]=function(t){return en(function(t){return t.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}(t),[kn,Mn])}(t);return Os(n,s,e,"RFC 2822",t)}static fromHTTP(t,e={}){const[n,s]=function(t){return en(t,[Nn,On],[vn,On],[Tn,En])}(t);return Os(n,s,e,"HTTP",e)}static fromFormat(t,e,n={}){if(ce(t)||ce(e))throw new F("fromFormat requires an input string and a format");const{locale:s=null,numberingSystem:r=null}=n,i=$t.fromOpts({locale:s,numberingSystem:r,defaultToEN:!0}),[o,a,u,c]=function(t,e,n){const{result:s,zone:r,specificOffset:i,invalidReason:o}=fs(t,e,n);return[s,r,i,o]}(i,t,e);return c?zs.invalid(c):Os(o,a,n,"format "+e,t,u)}static fromString(t,e,n={}){return zs.fromFormat(t,e,n)}static fromSQL(t,e={}){const[n,s]=function(t){return en(t,[Wn,Cn],[An,_n])}(t);return Os(n,s,e,"SQL",t)}static invalid(t,e=null){if(!t)throw new F("need to specify a reason the DateTime is invalid");const n=t instanceof Bt?t:new Bt(t,e);if(Yt.throwOnInvalid)throw new O(n);return new zs({invalid:n})}static isDateTime(t){return t&&t.isLuxonDateTime||!1}static parseFormatForOpts(t,e={}){const n=ys(t,$t.fromObject(e));return n?n.map((t=>t?t.val:null)).join(""):null}static expandFormat(t,e={}){return ds(Qe.parseFormat(t),$t.fromObject(e)).map((t=>t.val)).join("")}static resetCache(){qs=void 0,Rs.clear()}get(t){return this[t]}get isValid(){return null===this.invalid}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?bs(this).weekYear:NaN}get weekNumber(){return this.isValid?bs(this).weekNumber:NaN}get weekday(){return this.isValid?bs(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?Ss(this).weekday:NaN}get localWeekNumber(){return this.isValid?Ss(this).weekNumber:NaN}get localWeekYear(){return this.isValid?Ss(this).weekYear:NaN}get ordinal(){return this.isValid?re(this.c).ordinal:NaN}get monthShort(){return this.isValid?Xn.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?Xn.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?Xn.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?Xn.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return!this.isOffsetFixed&&(this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset)}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];const t=864e5,e=6e4,n=Oe(this.c),s=this.zone.offset(n-t),r=this.zone.offset(n+t),i=this.zone.offset(n-s*e),o=this.zone.offset(n-r*e);if(i===o)return[this];const a=n-i*e,u=n-o*e,c=Ns(a,i),h=Ns(u,o);return c.hour===h.hour&&c.minute===h.minute&&c.second===h.second&&c.millisecond===h.millisecond?[ks(this,{ts:a}),ks(this,{ts:u})]:[this]}get isInLeapYear(){return Ne(this.year)}get daysInMonth(){return Te(this.year,this.month)}get daysInYear(){return this.isValid?ve(this.year):NaN}get weeksInWeekYear(){return this.isValid?De(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?De(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(t={}){const{locale:e,numberingSystem:n,calendar:s}=Qe.create(this.loc.clone(t),t).resolvedOptions(this);return{locale:e,numberingSystem:n,outputCalendar:s}}toUTC(t=0,e={}){return this.setZone(xt.instance(t),e)}toLocal(){return this.setZone(Yt.defaultZone)}setZone(t,{keepLocalTime:e=!1,keepCalendarTime:n=!1}={}){if((t=jt(t,Yt.defaultZone)).equals(this.zone))return this;if(t.isValid){let s=this.ts;if(e||n){const e=t.offset(this.ts),n=this.toObject();[s]=vs(n,e,t)}return ks(this,{ts:s,zone:t})}return zs.invalid(ps(t))}reconfigure({locale:t,numberingSystem:e,outputCalendar:n}={}){return ks(this,{loc:this.loc.clone({locale:t,numberingSystem:e,outputCalendar:n})})}setLocale(t){return this.reconfigure({locale:t})}set(t){if(!this.isValid)return this;const e=je(t,Ws),{minDaysInFirstWeek:n,startOfWeek:s}=oe(e,this.loc),r=!ce(e.weekYear)||!ce(e.weekNumber)||!ce(e.weekday),i=!ce(e.ordinal),o=!ce(e.year),a=!ce(e.month)||!ce(e.day);if((o||a||i)&&(e.weekYear||e.weekNumber))throw new x("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(a&&i)throw new x("Can't mix ordinal dates with month/day");let u;r?u=se({...ne(this.c,n,s),...e},n,s):ce(e.ordinal)?(u={...this.toObject(),...e},ce(e.day)&&(u.day=Math.min(Te(u.year,u.month),u.day))):u=ie({...re(this.c),...e});const[c,h]=vs(u,this.o,this.zone);return ks(this,{ts:c,o:h})}plus(t){return this.isValid?ks(this,Ts(this,Vn.fromDurationLike(t))):this}minus(t){return this.isValid?ks(this,Ts(this,Vn.fromDurationLike(t).negate())):this}startOf(t,{useLocaleWeeks:e=!1}={}){if(!this.isValid)return this;const n={},s=Vn.normalizeUnit(t);switch(s){case"years":n.month=1;case"quarters":case"months":n.day=1;case"weeks":case"days":n.hour=0;case"hours":n.minute=0;case"minutes":n.second=0;case"seconds":n.millisecond=0}if("weeks"===s)if(e){const t=this.loc.getStartOfWeek(),{weekday:e}=this;e<t&&(n.weekNumber=this.weekNumber-1),n.weekday=t}else n.weekday=1;return"quarters"===s&&(n.month=3*(Math.ceil(this.month/3)-1)+1),this.set(n)}endOf(t,e){return this.isValid?this.plus({[t]:1}).startOf(t,e).minus(1):this}toFormat(t,e={}){return this.isValid?Qe.create(this.loc.redefaultToEN(e)).formatDateTimeFromString(this,t):gs}toLocaleString(t=H,e={}){return this.isValid?Qe.create(this.loc.clone(e),t).formatDateTime(this):gs}toLocaleParts(t={}){return this.isValid?Qe.create(this.loc.clone(t),t).formatDateTimeParts(this):[]}toISO({format:t="extended",suppressSeconds:e=!1,suppressMilliseconds:n=!1,includeOffset:s=!0,extendedZone:r=!1,precision:i="milliseconds"}={}){if(!this.isValid)return null;const o="extended"===t;let a=Ds(this,o,i=Zs(i));return js.indexOf(i)>=3&&(a+="T"),a+=$s(this,o,e,n,s,r,i),a}toISODate({format:t="extended",precision:e="day"}={}){return this.isValid?Ds(this,"extended"===t,Zs(e)):null}toISOWeekDate(){return Es(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:t=!1,suppressSeconds:e=!1,includeOffset:n=!0,includePrefix:s=!1,extendedZone:r=!1,format:i="extended",precision:o="milliseconds"}={}){return this.isValid?(o=Zs(o),(s&&js.indexOf(o)>=3?"T":"")+$s(this,"extended"===i,e,t,n,r,o)):null}toRFC2822(){return Es(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return Es(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?Ds(this,!0):null}toSQLTime({includeOffset:t=!0,includeZone:e=!1,includeOffsetSpace:n=!0}={}){let s="HH:mm:ss.SSS";return(e||t)&&(n&&(s+=" "),e?s+="z":t&&(s+="ZZ")),Es(this,s,!0)}toSQL(t={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(t)}`:null}toString(){return this.isValid?this.toISO():gs}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`DateTime { ts: ${this.toISO()}, zone: ${this.zone.name}, locale: ${this.locale} }`:`DateTime { Invalid, reason: ${this.invalidReason} }`}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(t={}){if(!this.isValid)return{};const e={...this.c};return t.includeConfig&&(e.outputCalendar=this.outputCalendar,e.numberingSystem=this.loc.numberingSystem,e.locale=this.loc.locale),e}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(t,e="milliseconds",n={}){if(!this.isValid||!t.isValid)return Vn.invalid("created by diffing an invalid DateTime");const s={locale:this.locale,numberingSystem:this.numberingSystem,...n},r=function(t){return Array.isArray(t)?t:[t]}(e).map(Vn.normalizeUnit),i=t.valueOf()>this.valueOf(),o=function(t,e,n,s){let[r,i,o,a]=function(t,e,n){const s=[["years",(t,e)=>e.year-t.year],["quarters",(t,e)=>e.quarter-t.quarter+4*(e.year-t.year)],["months",(t,e)=>e.month-t.month+12*(e.year-t.year)],["weeks",(t,e)=>{const n=ts(t,e);return(n-n%7)/7}],["days",ts]],r={},i=t;let o,a;for(const[u,c]of s)n.indexOf(u)>=0&&(o=u,r[u]=c(t,e),a=i.plus(r),a>e?(r[u]--,(t=i.plus(r))>e&&(a=t,r[u]--,t=i.plus(r))):t=a);return[t,r,a,o]}(t,e,n);const u=e-r,c=n.filter((t=>["hours","minutes","seconds","milliseconds"].indexOf(t)>=0));0===c.length&&(o<e&&(o=r.plus({[a]:1})),o!==r&&(i[a]=(i[a]||0)+u/(o-r)));const h=Vn.fromObject(i,s);return c.length>0?Vn.fromMillis(u,s).shiftTo(...c).plus(h):h}(i?this:t,i?t:this,r,s);return i?o.negate():o}diffNow(t="milliseconds",e={}){return this.diff(zs.now(),t,e)}until(t){return this.isValid?Kn.fromDateTimes(this,t):this}hasSame(t,e,n){if(!this.isValid)return!1;const s=t.valueOf(),r=this.setZone(t.zone,{keepLocalTime:!0});return r.startOf(e,n)<=s&&s<=r.endOf(e,n)}equals(t){return this.isValid&&t.isValid&&this.valueOf()===t.valueOf()&&this.zone.equals(t.zone)&&this.loc.equals(t.loc)}toRelative(t={}){if(!this.isValid)return null;const e=t.base||zs.fromObject({},{zone:this.zone}),n=t.padding?this<e?-t.padding:t.padding:0;let s=["years","months","days","hours","minutes","seconds"],r=t.unit;return Array.isArray(t.unit)&&(s=t.unit,r=void 0),_s(e,this.plus(n),{...t,numeric:"always",units:s,unit:r})}toRelativeCalendar(t={}){return this.isValid?_s(t.base||zs.fromObject({},{zone:this.zone}),this,{...t,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...t){if(!t.every(zs.isDateTime))throw new F("min requires all arguments be DateTimes");return fe(t,(t=>t.valueOf()),Math.min)}static max(...t){if(!t.every(zs.isDateTime))throw new F("max requires all arguments be DateTimes");return fe(t,(t=>t.valueOf()),Math.max)}static fromFormatExplain(t,e,n={}){const{locale:s=null,numberingSystem:r=null}=n;return fs($t.fromOpts({locale:s,numberingSystem:r,defaultToEN:!0}),t,e)}static fromStringExplain(t,e,n={}){return zs.fromFormatExplain(t,e,n)}static buildFormatParser(t,e={}){const{locale:n=null,numberingSystem:s=null}=e,r=$t.fromOpts({locale:n,numberingSystem:s,defaultToEN:!0});return new ms(r,t)}static fromFormatParser(t,e,n={}){if(ce(t)||ce(e))throw new F("fromFormatParser requires an input string and a format parser");const{locale:s=null,numberingSystem:r=null}=n,i=$t.fromOpts({locale:s,numberingSystem:r,defaultToEN:!0});if(!i.equals(e.locale))throw new F(`fromFormatParser called with a locale of ${i}, but the format parser was created for `+e.locale);const{result:o,zone:a,specificOffset:u,invalidReason:c}=e.explainFromTokens(t);return c?zs.invalid(c):Os(o,a,n,"format "+e.format,t,u)}static get DATE_SHORT(){return H}static get DATE_MED(){return q}static get DATE_MED_WITH_WEEKDAY(){return R}static get DATE_FULL(){return z}static get DATE_HUGE(){return J}static get TIME_SIMPLE(){return U}static get TIME_WITH_SECONDS(){return P}static get TIME_WITH_SHORT_OFFSET(){return Y}static get TIME_WITH_LONG_OFFSET(){return B}static get TIME_24_SIMPLE(){return G}static get TIME_24_WITH_SECONDS(){return V}static get TIME_24_WITH_SHORT_OFFSET(){return Q}static get TIME_24_WITH_LONG_OFFSET(){return K}static get DATETIME_SHORT(){return X}static get DATETIME_SHORT_WITH_SECONDS(){return tt}static get DATETIME_MED(){return et}static get DATETIME_MED_WITH_SECONDS(){return nt}static get DATETIME_MED_WITH_WEEKDAY(){return st}static get DATETIME_FULL(){return rt}static get DATETIME_FULL_WITH_SECONDS(){return it}static get DATETIME_HUGE(){return ot}static get DATETIME_HUGE_WITH_SECONDS(){return at}}function Js(t){if(zs.isDateTime(t))return t;if(t&&t.valueOf&&he(t.valueOf()))return zs.fromJSDate(t);if(t&&"object"==typeof t)return zs.fromObject(t);throw new F(`Unknown datetime argument: ${t}, of type ${typeof t}`)}class Us{static setTwoDigitCutoffYear(t=10){Yt.twoDigitCutoffYear=(new Date).getFullYear()%100+t}static fromAnyFormat(t){const e=t.replace(/[0-9]/g,"").charAt(0),n=S(),s=(null==n?void 0:n.locale)||"de-CH",r=t.split(e),i=r.length;if(2===i){const t=(new Date).getFullYear();return new Us(zs.fromFormat(`${r[0]}${e}${r[1]}${e}${t}`,`d${e}M${e}yy`,{locale:s}))}if(3===i){if(1===r[2].length)return new Us(zs.fromFormat(`${r[0]}${e}${r[1]}${e}${2e3+parseInt(r[2],10)}`,`d${e}M${e}yy`,{locale:s}));if(""===r[2]){const t=(new Date).getFullYear();return new Us(zs.fromFormat(`${r[0]}${e}${r[1]}${e}${t}`,`d${e}M${e}yy`,{locale:s}))}}return new Us(zs.fromFormat(t,`d${e}M${e}yy`,{locale:s}))}static fromISO(t){return new Us(zs.fromISO(t||""))}static infoMonths({format:t,locale:e}={}){const n=S();return Xn.months(t||"long",{locale:e||(null==n?void 0:n.locale)||"de-CH"})}static infoWeekdays({format:t,locale:e}={}){const n=S();return Xn.weekdays(t,{locale:e||(null==n?void 0:n.locale)||"de-CH"})}constructor(t){this.dt=t}get isValid(){return this.dt.isValid}toISO(){return this.isValid?this.dt.toISO():""}toISODate(){return this.isValid?this.dt.toISODate():""}toFormat(){if(this.isValid){const t=S(),e=function(t="de-CH"){return new Intl.DateTimeFormat(function(t="de-CH"){const[,e]=t.split("-");return"CH"===e?"fr-CH":"BE"===e?"fr-BE":"LU"===e?"fr-LU":t}(t)).format(new Date).replace(/\p{Number}/gu,"").charAt(0)}((null==t?void 0:t.locale)||"de-CH");return this.dt.toFormat(`dd${e}MM${e}yyyy`)}return""}isBefore(t){const e=zs.fromISO(t||"");return!!e.isValid&&this.dt<e}isBeforeOrEqual(t){const e=zs.fromISO(t||"");return!!e.isValid&&this.dt<=e}isAfter(t){const e=zs.fromISO(t||"");return!!e.isValid&&this.dt>e}isAfterOrEqual(t){const e=zs.fromISO(t||"");return!!e.isValid&&this.dt>=e}get month(){if(this.isValid)return this.dt.month}get year(){if(this.isValid)return this.dt.year}}Us.setTwoDigitCutoffYear();class Ps extends k{constructor(){super((t=>t.listenToOrientation(this.state))),this.listener=new p,this.state=y.orientation.toObject(),this.listener.connect(),this.listener.add((()=>{const t=y.orientation.toObject();this.isEqual(t)||(this.state=t,this.notify(void 0))}))}attach(t){super.attach(t),t.listenToOrientation(this.state)}isEqual(t){return t.landscape===this.state.landscape&&t.portrait===this.state.portrait}}const Ys=new Ps;class Bs{constructor(){this.x=void 0,this.y=void 0,this.disabled=!1}static disableSmoothScrolling(){this.setScrollBehavior("auto")}static enableSmoothScrolling(){this.setScrollBehavior("smooth")}static setScrollBehavior(e){var n;if(t.hasDocument){const t=document;document.body.style.scrollBehavior=e;const s=null===(n=t.firstChild)||void 0===n?void 0:n.nextSibling;"smooth"===getComputedStyle(s).scrollBehavior&&(s.style.scrollBehavior=e)}}connect(e){e?this.target=e:t.hasDocument&&(this.target=document),onscroll=null,onkeydown=null}disconnect(){this.disabled&&this.enable(),this.target=void 0,onscroll=null,onkeydown=null}isDisabled(){return this.disabled}enable(){this.target&&t.hasWindow&&t.hasDocument&&(document.documentElement.style.overflow="",document.body.classList.remove("noscroll"),document.body.style.position="",document.body.style.top="",document.body.style.width="",void 0!==this.x&&void 0!==this.y&&(window.scrollTo(this.x,this.y),this.x=void 0,this.y=void 0),this.disabled=!1)}disable(){!this.disabled&&this.target&&t.hasWindow&&t.hasDocument&&(this.x=window.pageXOffset||document.documentElement.scrollLeft,this.y=window.pageYOffset||document.documentElement.scrollTop,document.documentElement.style.overflow="hidden",document.body.classList.add("noscroll"),document.body.style.position="fixed",document.body.style.top=`-${this.y}px`,document.body.style.width="100%",this.disabled=!0)}}class Gs extends M{async connect(t){super.connect(t),await this.loadLib(),this.PointerListenerLib&&(this.pointerListener=new this.PointerListenerLib(t,{handleTouchEvents:!1}),this.pointerListener.on("swipeleft",(()=>this.notify({left:!0,right:!1}))),this.pointerListener.on("swiperight",(()=>this.notify({left:!1,right:!0}))))}disconnect(){var t;super.disconnect(),null===(t=this.pointerListener)||void 0===t||t.destroy()}async loadLib(){return new Promise(((t,e)=>{u((async()=>{import("./p-Cb75Rr6o.js").then((e=>{this.PointerListenerLib=e.PointerListener,t()})).catch(e)}))}))}}class Vs extends N{constructor(t={mobileOnly:!1}){super(((t,e)=>{e&&t.listenToSwipe(e)})),this.options=t,this.listener=new Gs}attach(t){(!0===this.options.mobileOnly&&y.isMobile||!0!==this.options.mobileOnly)&&(super.attach(t),this.listener.connect(t.el),this.listener.add((t=>super.notify(t))))}detach(){super.detach(),this.listener.disconnect()}}class Qs{constructor(){this._componentObservers=[],this._observers=[],this._config=m}get brand(){return this._config.brand}set brand(t){t!==this._config.brand&&(this._config.brand=t,this._notify())}get locale(){return`${this._config.language}-${this._config.region}`}get region(){return this._config.region}set region(t){t!==this._config.region&&(this._config.region=t,this._notify())}get language(){return this._config.language}set language(t){t!==this._config.language&&(this._config.language=this._config.allowedLanguages.includes(t)?t:this._config.fallbackLanguage,this._notify())}get allowedLanguages(){return this._config.allowedLanguages}set allowedLanguages(t){t!==this._config.allowedLanguages&&(this._config.allowedLanguages=t,this._notify())}get icons(){return this._config.icons}set icons(t){this._config.icons=Object.assign(Object.assign({},this._config.icons),t),this._notify()}get logger(){return this._config.logger}set logger(t){this._config.logger=Object.assign({},t),this._notify()}get animated(){return this._config.animated}set animated(t){this._config.animated=t,this._notify()}get httpFormSubmit(){return this._config.httpFormSubmit}set httpFormSubmit(t){this._config.httpFormSubmit=t,this._notify()}attach(t){if(this._observers.includes(t))return console.log("Subject: Observer has been attached already.");this._observers.push(t),t.configChanged(this._config)}detach(t){const e=this._observers.indexOf(t);if(-1===e)return console.log("Subject: Nonexistent observer.");this._observers.splice(e,1)}attachComponent(t){if(this._componentObservers.includes(t))return console.log("Subject: Observer has been attached already.");this._componentObservers.push(t),t.configChanged(this._config)}detachComponent(t){const e=this._componentObservers.indexOf(t);if(-1===e)return console.log("Subject: Nonexistent observer.");this._componentObservers.splice(e,1)}toString(){return JSON.stringify(this._config)}reset(t){this._config=Object.assign(Object.assign(Object.assign({},this._config),t),{icons:Object.assign(Object.assign({},this._config.icons),t.icons)}),this._notify(!1)}_notify(t=!0){for(const t of this._componentObservers)t.configChanged(this._config);if(t)for(const t of this._observers)t.configChanged(this._config)}}const Ks=new Qs,Xs=t=>{try{const e=JSON.parse(t.localStorage.getItem("ds-animated")||"true");return null!==e?{animated:e}:{}}catch(t){return{}}},tr=(e={},n={})=>{0===Object.keys(n).length&&t.hasWindow&&(n=window),n.DesignSystem=n.DesignSystem||{},Ks.reset(Object.assign(Object.assign(Object.assign({},Xs(n)),e),{icons:Object.assign({},e.icons)})),n.DesignSystem.config=Ks};class er{constructor(t){this.type=t,this.container=null}async create(t){var e;return this.setupContainer(t),null===(e=this.container)||void 0===e?void 0:e.addAlert(t)}async remove(t){var e;await(null===(e=this.container)||void 0===e?void 0:e.removeAlert(t))}async removeAll(){var t;await(null===(t=this.container)||void 0===t?void 0:t.removeAll())}setupContainer(t){const e=`ds-${this.type}-container`;this.container=document.getElementById(e),this.container||this.container||(this.container=document.createElement("ds-alert-container"),this.container.id=e,this.container.setAttribute("type",this.type),l(document).appendChild(this.container))}}const nr=t=>new er(t),sr=nr("toast"),rr=nr("snackbar"),ir=(e={},s,r={})=>{0===Object.keys(r).length&&t.hasWindow&&(r=window),r.DesignSystem=r.DesignSystem||{},s&&n(s),tr(Object.assign(Object.assign({},e),s),r),r.DesignSystem.toastController=sr,r.DesignSystem.snackbarController=rr,r.DesignSystem.initialize=()=>tr(r.DesignSystem.config,r),r.DesignSystem.version="20.0.0-next.4",e._generateHydrateForCustomElementsOutput&&or(v)},or=(t=[])=>{const e="undefined"!=typeof window?window:{};if(!e.document)return void console.warn("Stencil: No document found. Skipping bootstrapping lazy components.");const n=e.document.head,s=n.querySelector("meta[charset]"),r=e.document.createElement("style");t.length>0&&(r.textContent+="slot-fb{display:contents}slot-fb[hidden]{display:none}",r.textContent+=t.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",r.innerHTML.length&&(r.setAttribute("data-styles",""),n.insertBefore(r,s?s.nextSibling:n.firstChild)))};export{Qs as Config,Us as DsDate,Ps as DsOrientationSubject,Vs as DsSwipeSubject,Bs as ScrollHandler,Ks as config,Xs as configFromLocalStorage,m as defaultConfig,t as dsBrowser,y as dsDevice,Ys as dsOrientationSubject,rr as dsSnackbarController,sr as dsToastController,l as getAppRoot,ir as initialize,ir as initializeDesignSystem,tr as setupDsConfig,S as useDsConfig}
|
|
4
|
+
import{d as t,s as n}from"./p-WO0X5Vmy.js";export{g as getAssetPath,r as render,a as setAssetPath,b as setNonce,c as setPlatformOptions}from"./p-WO0X5Vmy.js";export{F as FOOTER_CONTAINERS,i as i18nDsFooter}from"./p-BrJFPhMA.js";export{i as i18nDsClose}from"./p-Bbn3sYo5.js";export{I as I18nDsLabel}from"./p-C7I7OlaM.js";export{i as i18nControlLabel}from"./p-BR1SYpQO.js";import{g as l}from"./p-BgzU1loG.js";export{c as componentOnReady,d as deepReady,i as isDescendant,s as shallowReady,w as wait,a as waitAfterFramePaint,b as waitAfterIdleCallback,e as waitAfterLargestContentfulPaintCallback,f as waitForComponent,h as waitForDesignSystem,j as waitOnLoadEventCallback}from"./p-BgzU1loG.js";import{d as u}from"./p-CvaNxQtw.js";export{a as defaultLocale}from"./p-CvaNxQtw.js";import{d as p}from"./p-UCeQ1JCs.js";export{D as DsDevice}from"./p-UCeQ1JCs.js";export{S as ScrollHandler}from"./p-3Mi9vpmB.js";import{W as m}from"./p-n3_2KEz0.js";export{D as DsBreakpointSubject,b as DsBreakpointsUtil,a as dsBreakpointSubject,d as dsBreakpoints}from"./p-n3_2KEz0.js";import{D as y,I as O,S as C}from"./p-C1jqbZdf.js";import{u as v}from"./p-Dr4MUfss.js";export{b as attachComponentToConfig,a as attachToConfig,c as detachComponentFromConfig,d as detachFromConfig,o as onDsConfigChange,g as updateDsAllowedLanguages,i as updateDsAnimated,h as updateDsIcons,e as updateDsLanguage,j as updateDsLogger,f as updateDsRegion}from"./p-Dr4MUfss.js";import{S as $}from"./p-DcSNuA8W.js";export{L as ListenToConfig}from"./p-DIK6Zkg6.js";const x=["ds-accordion","ds-alert-container","ds-app","ds-badge","ds-button","ds-button-group","ds-card","ds-card-actions","ds-card-content","ds-card-header","ds-card-subtitle","ds-card-title","ds-carousel","ds-carousel-item","ds-checkbox","ds-checkbox-group","ds-close","ds-content","ds-data","ds-data-item","ds-data-label","ds-data-value","ds-date","ds-divider","ds-drawer","ds-file-upload","ds-footer","ds-heading","ds-hint","ds-hint-text","ds-hint-title","ds-icon","ds-input","ds-input-slider","ds-item","ds-label","ds-list","ds-logo","ds-modal","ds-modal-body","ds-modal-header","ds-navbar","ds-notification","ds-number-input","ds-pagination","ds-popup","ds-progress-bar","ds-radio","ds-radio-group","ds-segment","ds-segment-item","ds-select","ds-select-optgroup","ds-select-option","ds-shape","ds-snackbar","ds-spinner","ds-stack","ds-step","ds-step-panel","ds-steps","ds-tab","ds-tab-panel","ds-tabs","ds-tag","ds-tag-group","ds-text","ds-textarea","ds-toast","ds-toggle","ds-tooltip"];class k{static setTwoDigitCutoffYear(t=10){C.twoDigitCutoffYear=(new Date).getFullYear()%100+t}static fromAnyFormat(t){const s=t.replace(/[0-9]/g,"").charAt(0),e=v(),a=(null==e?void 0:e.locale)||"de-CH",o=t.split(s),i=o.length;if(2===i){const t=(new Date).getFullYear();return new k(y.fromFormat(`${o[0]}${s}${o[1]}${s}${t}`,`d${s}M${s}yy`,{locale:a}))}if(3===i){if(1===o[2].length)return new k(y.fromFormat(`${o[0]}${s}${o[1]}${s}${2e3+parseInt(o[2],10)}`,`d${s}M${s}yy`,{locale:a}));if(""===o[2]){const t=(new Date).getFullYear();return new k(y.fromFormat(`${o[0]}${s}${o[1]}${s}${t}`,`d${s}M${s}yy`,{locale:a}))}}return new k(y.fromFormat(t,`d${s}M${s}yy`,{locale:a}))}static fromISO(t){return new k(y.fromISO(t||""))}static infoMonths({format:t,locale:s}={}){const e=v();return O.months(t||"long",{locale:s||(null==e?void 0:e.locale)||"de-CH"})}static infoWeekdays({format:t,locale:s}={}){const e=v();return O.weekdays(t,{locale:s||(null==e?void 0:e.locale)||"de-CH"})}constructor(t){this.dt=t}get isValid(){return this.dt.isValid}toISO(){return this.isValid?this.dt.toISO():""}toISODate(){return this.isValid?this.dt.toISODate():""}toFormat(){if(this.isValid){const t=v(),s=function(t="de-CH"){return new Intl.DateTimeFormat(function(t="de-CH"){const[,s]=t.split("-");return"CH"===s?"fr-CH":"BE"===s?"fr-BE":"LU"===s?"fr-LU":t}(t)).format(new Date).replace(/\p{Number}/gu,"").charAt(0)}((null==t?void 0:t.locale)||"de-CH");return this.dt.toFormat(`dd${s}MM${s}yyyy`)}return""}isBefore(t){const s=y.fromISO(t||"");return!!s.isValid&&this.dt<s}isBeforeOrEqual(t){const s=y.fromISO(t||"");return!!s.isValid&&this.dt<=s}isAfter(t){const s=y.fromISO(t||"");return!!s.isValid&&this.dt>s}isAfterOrEqual(t){const s=y.fromISO(t||"");return!!s.isValid&&this.dt>=s}get month(){if(this.isValid)return this.dt.month}get year(){if(this.isValid)return this.dt.year}}k.setTwoDigitCutoffYear();class A extends ${constructor(){super((t=>t.listenToOrientation(this.state))),this.listener=new m,this.state=p.orientation.toObject(),this.listener.connect(),this.listener.add((()=>{const t=p.orientation.toObject();this.isEqual(t)||(this.state=t,this.notify(void 0))}))}attach(t){super.attach(t),t.listenToOrientation(this.state)}isEqual(t){return t.landscape===this.state.landscape&&t.portrait===this.state.portrait}}const B=new A,N={brand:(t,s)=>t.brand=s,region:(t,s)=>t.region=s,language:(t,s)=>t.language=s,fallbackLanguage:(t,s)=>t.fallbackLanguage=s,allowedLanguages:(t,s)=>t.allowedLanguages=s.split(",").map((t=>t.trim())),animated:(t,s)=>t.animated="false"!==s};class E{constructor(){this._componentObservers=[],this._observers=[],this._config=u}get brand(){return this._config.brand}set brand(t){t!==this._config.brand&&(this._config.brand=t,this._notify())}get locale(){return`${this._config.language}-${this._config.region}`}get region(){return this._config.region}set region(t){t!==this._config.region&&(this._config.region=t,this._notify())}get language(){return this._config.language}set language(t){t!==this._config.language&&(this._config.language=this._config.allowedLanguages.includes(t)?t:this._config.fallbackLanguage,this._notify())}get allowedLanguages(){return this._config.allowedLanguages}set allowedLanguages(t){t!==this._config.allowedLanguages&&(this._config.allowedLanguages=t,this._notify())}get icons(){return this._config.icons}set icons(t){this._config.icons=Object.assign(Object.assign({},this._config.icons),t),this._notify()}get logger(){return this._config.logger}set logger(t){this._config.logger=Object.assign({},t),this._notify()}get animated(){return this._config.animated}set animated(t){this._config.animated=t,this._notify()}get httpFormSubmit(){return this._config.httpFormSubmit}set httpFormSubmit(t){this._config.httpFormSubmit=t,this._notify()}attach(t){if(this._observers.includes(t))return console.log("Subject: Observer has been attached already.");this._observers.push(t),t.configChanged(this._config)}detach(t){const s=this._observers.indexOf(t);if(-1===s)return console.log("Subject: Nonexistent observer.");this._observers.splice(s,1)}attachComponent(t){if(this._componentObservers.includes(t))return console.log("Subject: Observer has been attached already.");this._componentObservers.push(t),t.configChanged(this._config)}detachComponent(t){const s=this._componentObservers.indexOf(t);if(-1===s)return console.log("Subject: Nonexistent observer.");this._componentObservers.splice(s,1)}toString(){return JSON.stringify(this._config)}reset(t){this._config=Object.assign(Object.assign(Object.assign({},this._config),t),{icons:Object.assign(Object.assign({},this._config.icons),t.icons)}),this._notify(!1)}_notify(t=!0){for(const t of this._componentObservers)t.configChanged(this._config);if(t)for(const t of this._observers)t.configChanged(this._config)}}const M=new E,H=t=>{try{const s=JSON.parse(t.localStorage.getItem("ds-animated")||"true");return null!==s?{animated:s}:{}}catch(t){return{}}},U=t=>{try{const s=t.document;if(!s)return{};const e=s.querySelector('meta[name="design-system-config"]');if(!e)return{};const a={};for(const[t,s]of Object.entries(N)){const o=e.dataset[t];void 0!==o&&s(a,o)}return a}catch(t){return{}}},R=(s={},e={})=>{0===Object.keys(e).length&&t.hasWindow&&(e=window),e.DesignSystem=e.DesignSystem||{},M.reset(Object.assign(Object.assign(Object.assign(Object.assign({},U(e)),H(e)),s),{icons:Object.assign({},s.icons)})),e.DesignSystem.config=M};class P{constructor(t){this.type=t,this.container=null}async create(t){var s;return this.setupContainer(t),null===(s=this.container)||void 0===s?void 0:s.addAlert(t)}async remove(t){var s;await(null===(s=this.container)||void 0===s?void 0:s.removeAlert(t))}async removeAll(){var t;await(null===(t=this.container)||void 0===t?void 0:t.removeAll())}setupContainer(t){const s=`ds-${this.type}-container`;this.container=document.getElementById(s),this.container||this.container||(this.container=document.createElement("ds-alert-container"),this.container.id=s,this.container.setAttribute("type",this.type),l(document).appendChild(this.container))}}const z=t=>new P(t),T=z("toast"),_=z("snackbar"),J=new class{async create(t={}){const s=document.createElement("ds-modal");return void 0!==t.modalWidth&&(s.modalWidth=t.modalWidth),void 0!==t.closable&&(s.closable=t.closable),l(document).appendChild(s),await s.present(),s}async dismiss(s){if(!t.hasDocument)return;const e=document.querySelector(s?"ds-modal#"+s:"ds-modal[open]");await(null==e?void 0:e.dismiss())}async dismissAll(){if(!t.hasDocument)return;const s=Array.from(document.querySelectorAll("ds-modal[open]"));await Promise.all(s.map((t=>t.dismiss())))}},Q=(s={},e,a={})=>{0===Object.keys(a).length&&t.hasWindow&&(a=window),a.DesignSystem=a.DesignSystem||{},e&&n(e),R(Object.assign(Object.assign({},s),e),a),a.DesignSystem.toastController=T,a.DesignSystem.snackbarController=_,a.DesignSystem.modalController=J,a.DesignSystem.initialize=()=>R(a.DesignSystem.config,a),a.DesignSystem.version="20.0.0-next.7",s._generateHydrateForCustomElementsOutput&&V(x)},V=(t=[])=>{const s="undefined"!=typeof window?window:{};if(!s.document)return void console.warn("Stencil: No document found. Skipping bootstrapping lazy components.");const e=s.document.head,a=e.querySelector("meta[charset]"),o=s.document.createElement("style");t.length>0&&(o.textContent+="slot-fb{display:contents}slot-fb[hidden]{display:none}",o.textContent+=t.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",o.innerHTML.length&&(o.setAttribute("data-styles",""),e.insertBefore(o,a?a.nextSibling:e.firstChild)))};export{E as Config,k as DsDate,A as DsOrientationSubject,M as config,H as configFromLocalStorage,U as configFromMetaTag,u as defaultConfig,t as dsBrowser,p as dsDevice,J as dsModalController,B as dsOrientationSubject,_ as dsSnackbarController,T as dsToastController,l as getAppRoot,Q as initialize,Q as initializeDesignSystem,R as setupDsConfig,v as useDsConfig}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* (C) Helvetia Design System https://design.baloise.dev/ - Apache License 2.0
|
|
3
|
+
*/
|
|
4
|
+
import{p as e,H as a,d as i,h,e as d,t as n}from"./p-WO0X5Vmy.js";import{_ as s,L as t,a as o}from"./p-J0mxIuTt.js";import{h as g}from"./p-BrIcCcce.js";import{c as r,b as l,d as v,H as m}from"./p-Ceu7FIWM.js";import{O as c}from"./p-BhbWmCTu.js";import{T as p}from"./p-DAYd9ty0.js";const b={display:"h1","display-2":"h1",h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",span:"span",p:"p","5xl":"h1","4xl":"h1","3xl":"h1","2xl":"h1",xl:"h2",lg:"h3",md:"h4",base:"h5"},f=["5xl","4xl","3xl","2xl","xl","lg","md","base"],u={display:"5xl","display-2":"4xl",h1:"3xl",h2:"2xl",h3:"xl",h4:"lg",h5:"base",p:"base",span:"base","5xl":"5xl","4xl":"4xl","3xl":"3xl","2xl":"2xl",xl:"xl",lg:"lg",md:"md",base:"base"},w={primary:"primary",info:"primary",blue:"primary",success:"success",warning:"warning",danger:"danger",white:"white"},x=e(class extends a{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.level="h1",this.visualLevel="",this.autoLevel="",this.noWrap=!1,this.subtitle=!1,this.space="",this.color="",this.inverted=!1,this.shadow=!1}createLogger(e){this.log=e}levelChanged(){this.updateAutoFontSize()}visualLevelChanged(){this.updateAutoFontSize()}autoLevelChanged(){this.updateAutoFontSize()}connectedCallback(){this.updateAutoFontSize()}componentDidRender(){if(g(this.autoLevel)&&this.autoFontSize&&this.rows>1&&u[this.autoLevel]!==this.autoFontSize){const e=f.indexOf(this.autoFontSize)+1;this.autoFontSize=f[e]}}updateAutoFontSize(){this.autoFontSize=this.fontSize}get rows(){if(this.headingEl&&i.hasWindow){const e=window.getComputedStyle(this.headingEl),a=parseInt(e.lineHeight.slice(0,-2),10);return this.headingEl.offsetHeight/a}return 1}get fontColor(){return this.inverted?"white":g(this.color)?w[this.color]:""}get fontSize(){return u[this.visualLevel?this.visualLevel:this.level]}get tag(){return b[this.level]}render(){const e=this.tag;return h(d,{key:"dd9df7b068c6a489c4a56437a19e6f7a27a1c1ea",class:{[`is-${this.autoFontSize}`]:void 0!==this.autoFontSize,[`is-${this.fontColor}`]:g(this.fontColor),"is-subtitle":this.subtitle,"has-no-wrap":this.noWrap,"has-shadow":this.shadow,[`has-space-${this.space}`]:g(this.space)}},h(e,{key:"e437b9f774f324b5628d002210b1af6763cc9dc8",id:"heading",part:"heading",ref:e=>this.headingEl=e},h("slot",{key:"61234ad53aa55043c4982b94e40155fb5b40b69b"})))}get el(){return this}static get watchers(){return{level:[{levelChanged:0}],visualLevel:[{visualLevelChanged:0}],autoLevel:[{autoLevelChanged:0}]}}static get style(){return":host{--_heading-position:var(--heading-position, var(--mod-heading-position, static));--_heading-top:var(--heading-top, var(--mod-heading-top));--_heading-right:var(--heading-right, var(--mod-heading-right));--_heading-bottom:var(--heading-bottom, var(--mod-heading-bottom));--_heading-left:var(--heading-left, var(--mod-heading-left));position:var(--_heading-position);top:var(--_heading-top);right:var(--_heading-right);bottom:var(--_heading-bottom);left:var(--_heading-left);--_heading-m:var(--heading-m, var(--mod-heading-m, 0));--_heading-my:var(--heading-my, var(--mod-heading-my));--_heading-mx:var(--heading-mx, var(--mod-heading-mx));--_heading-ml:var(--heading-ml, var(--mod-heading-ml));--_heading-mr:var(--heading-mr, var(--mod-heading-mr));--_heading-mt:var(--heading-mt, var(--mod-heading-mt));--_heading-mb:var(--heading-mb, var(--mod-heading-mb));margin:var(--_heading-m);margin-inline:var(--_heading-mx);margin-block:var(--_heading-my);margin-left:var(--_heading-ml);margin-right:var(--_heading-mr);margin-top:var(--_heading-mt);margin-bottom:var(--_heading-mb);--_heading-color:var(--heading-color, var(--mod-heading-color, inherit));--_heading-family:var(--heading-family, var(--mod-heading-family, var(--ds-heading-family)));--_heading-weight:var(--heading-weight, var(--mod-heading-weight, var(--ds-heading-weight)));--_heading-line-height:var(--heading-line-height, var(--mod-heading-line-height, var(--ds-heading-line-height)));--_heading-font-size:var(--heading-font-size, var(--mod-heading-font-size, var(--ds-heading-1-size-device)));--_heading-space:var(--heading-space, var(--mod-heading-space, var(--ds-heading-1-space)));--_heading-shadow:var(--heading-shadow, var(--mod-heading-shadow, none));--_heading-text-align:var(--heading-text-align, var(--mod-heading-text-align, inherit))}:host{--_heading-color:var(--heading-color, var(--mod-heading-color, inherit));--_heading-family:var(--heading-family, var(--mod-heading-family, var(--ds-heading-family)));--_heading-weight:var(--heading-weight, var(--mod-heading-weight, var(--ds-heading-weight)));--_heading-line-height:var(--heading-line-height, var(--mod-heading-line-height, var(--ds-heading-line-height)));--_heading-font-size:var(--heading-font-size, var(--mod-heading-font-size, var(--_heading-font-size, var(--ds-heading-1-size-device))));--_heading-shadow:var(--heading-shadow, var(--mod-heading-shadow, none));--_heading-text-align:var(--heading-text-align, var(--mod-heading-text-align, inherit))}#heading{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:block;-webkit-box-sizing:content-box;box-sizing:content-box;-webkit-hyphens:auto;-ms-hyphens:auto;hyphens:auto;overflow-wrap:break-word;text-wrap:balance;color:var(--_heading-color);font-family:var(--_heading-family);font-weight:var(--_heading-weight);font-size:var(--_heading-font-size);line-height:var(--_heading-line-height);text-align:var(--_heading-text-align);text-shadow:var(--_heading-shadow)}#heading em:not(.text),#heading span:not(.text){font-weight:inherit}#heading b,#heading strong,#heading .is-bold{font-weight:var(--ds-alias-text-weight-bold)}:host(.has-no-wrap) #heading{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}:host(.has-shadow){--mod-heading-shadow:var(--ds-heading-shadow)}:host(.is-subtitle){--mod-heading-family:var(--ds-heading-subtitle-family);--mod-heading-weight:var(--ds-heading-subtitle-weight);--mod-heading-line-height:var(--ds-heading-subtitle-line-height)}:host(.is-primary){--mod-heading-color:var(--ds-heading-color-primary)}:host(.is-success){--mod-heading-color:var(--ds-heading-color-success)}:host(.is-warning){--mod-heading-color:var(--ds-heading-color-warning)}:host(.is-danger){--mod-heading-color:var(--ds-heading-color-danger)}:host(.is-white){--mod-heading-color:var(--ds-heading-color-white)}:host(.is-black){--mod-heading-color:var(--ds-heading-color-black)}:host(.is-3xl){--mod-heading-font-size:var(--ds-heading-1-size-device);--mod-heading-space:var(--ds-heading-1-space)}:host(.is-2xl){--mod-heading-font-size:var(--ds-heading-2-size-device);--mod-heading-space:var(--ds-heading-2-space)}:host(.is-xl){--mod-heading-font-size:var(--ds-heading-3-size-device);--mod-heading-space:var(--ds-heading-3-space)}:host(.is-lg){--mod-heading-font-size:var(--ds-heading-4-size-device);--mod-heading-space:var(--ds-heading-4-space)}:host(.is-base){--mod-heading-font-size:var(--ds-heading-5-size-device);--mod-heading-space:var(--ds-heading-5-space)}:host(.is-5xl){--mod-heading-font-size:var(--ds-heading-display1-size-device);--mod-heading-space:var(--ds-heading-display1-space)}:host(.is-4xl){--mod-heading-font-size:var(--ds-heading-display2-size-device);--mod-heading-space:var(--ds-heading-display2-space)}:host(.has-space-all){--heading-mt:var(--_heading-space);--heading-mb:var(--_heading-space)}:host(.has-space-top){--heading-mt:var(--_heading-space);--heading-mb:0}:host(.has-space-bottom){--heading-mt:0;--heading-mb:var(--_heading-space)}:host(.has-space-none){--heading-mt:0;--heading-mb:0}:host{display:block}"}},[257,"ds-heading",{level:[513],visualLevel:[513,"visual-level"],autoLevel:[513,"auto-level"],noWrap:[516,"no-wrap"],subtitle:[516],space:[513],color:[513],inverted:[516],shadow:[516],autoFontSize:[32]},void 0,{level:[{levelChanged:0}],visualLevel:[{visualLevelChanged:0}],autoLevel:[{autoLevelChanged:0}]}]);function y(){"undefined"!=typeof customElements&&["ds-heading"].forEach((e=>{"ds-heading"===e&&(customElements.get(n(e))||customElements.define(n(e),x))}))}s([t("heading"),o("design:type",Function),o("design:paramtypes",[Function]),o("design:returntype",void 0)],x.prototype,"createLogger",null),s([c(r),o("design:type",String)],x.prototype,"level",void 0),s([c(l),o("design:type",String)],x.prototype,"visualLevel",void 0),s([c(l),o("design:type",String)],x.prototype,"autoLevel",void 0),s([p("boolean"),o("design:type",Boolean)],x.prototype,"noWrap",void 0),s([p("boolean"),o("design:type",Boolean)],x.prototype,"subtitle",void 0),s([c(v),o("design:type",String)],x.prototype,"space",void 0),s([c(m),o("design:type",String)],x.prototype,"color",void 0),s([p("boolean"),o("design:type",Boolean)],x.prototype,"inverted",void 0),s([p("boolean"),o("design:type",Boolean)],x.prototype,"shadow",void 0);export{x as H,y as d}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* (C) Helvetia Design System https://design.baloise.dev/ - Apache License 2.0
|
|
3
|
+
*/
|
|
4
|
+
import{d as t}from"./p-WO0X5Vmy.js";class o{constructor(){this.x=void 0,this.y=void 0,this.disabled=!1}static disableSmoothScrolling(){this.setScrollBehavior("auto")}static enableSmoothScrolling(){this.setScrollBehavior("smooth")}static setScrollBehavior(o){var i;if(t.hasDocument){const t=document;document.body.style.scrollBehavior=o;const s=null===(i=t.firstChild)||void 0===i?void 0:i.nextSibling;"smooth"===getComputedStyle(s).scrollBehavior&&(s.style.scrollBehavior=o)}}connect(o){o?this.target=o:t.hasDocument&&(this.target=document),onscroll=null,onkeydown=null}disconnect(){this.disabled&&this.enable(),this.target=void 0,onscroll=null,onkeydown=null}isDisabled(){return this.disabled}enable(){this.target&&t.hasWindow&&t.hasDocument&&(document.documentElement.style.overflow="",document.body.classList.remove("noscroll"),document.body.style.position="",document.body.style.top="",document.body.style.width="",void 0!==this.x&&void 0!==this.y&&(window.scrollTo(this.x,this.y),this.x=void 0,this.y=void 0),this.disabled=!1)}disable(){!this.disabled&&this.target&&t.hasWindow&&t.hasDocument&&(this.x=window.pageXOffset||document.documentElement.scrollLeft,this.y=window.pageYOffset||document.documentElement.scrollTop,document.documentElement.style.overflow="hidden",document.body.classList.add("noscroll"),document.body.style.position="fixed",document.body.style.top=`-${this.y}px`,document.body.style.width="100%",this.disabled=!0)}}export{o as S}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* (C) Helvetia Design System https://design.baloise.dev/ - Apache License 2.0
|
|
3
|
+
*/
|
|
4
|
+
import{p as t,H as i,f as s,h as a,e,t as o,d as p}from"./p-WO0X5Vmy.js";import{_ as r,L as n,a as d}from"./p-J0mxIuTt.js";import{a as h,c,s as l,f as u,o as m,b}from"./p-BqY0KzJC.js";import{F as g}from"./p-DbM7ALm9.js";import{w as v}from"./p-BgzU1loG.js";import{i as f}from"./p-Uy_dVz21.js";import{d as y}from"./p-DSeYzuO7.js";import{d as w}from"./p-DY0y8uLL.js";import{d as k}from"./p-Du7QOHtz.js";import{d as x}from"./p-qaSW94OG.js";import{T as _}from"./p-DAYd9ty0.js";import{O as z}from"./p-BhbWmCTu.js";import{L as j}from"./p-DIK6Zkg6.js";const D=["top","top-start","top-end","right","right-start","right-end","bottom","bottom-start","bottom-end","left","left-start","left-end"],C=new Map,O=t(class extends i{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.dsWillPresent=s(this,"dsWillPresent"),this.dsDidPresent=s(this,"dsDidPresent"),this.dsWillDismiss=s(this,"dsWillDismiss"),this.dsDidDismiss=s(this,"dsDidDismiss"),this.currentTrigger=void 0,this.focusHandler=new g,this.transitionQueue=Promise.resolve(),this.animated=!0,this.isOpen=!1,this.open=!1,this.trigger=void 0,this.placement="bottom",this.offset=8,this.role="dialog",this.closable=!1,this.backdropDismiss=!1,this.backdrop=!1,this.group=void 0,this.label="",this.arrow=!1,this.trapFocus=void 0,this.handleCloseClick=()=>{this.dismiss()}}createLogger(t){this.log=t}openChanged(t){t?this.runPresent():this.runDismiss()}triggerChanged(t,i){i&&(i.removeAttribute("aria-haspopup"),i.removeAttribute("aria-expanded")),t&&(t.setAttribute("aria-haspopup",this.role),t.setAttribute("aria-expanded","false"))}connectedCallback(){this.registerGroup()}componentDidLoad(){this.trigger&&(this.trigger.setAttribute("aria-haspopup",this.role),this.trigger.setAttribute("aria-expanded","false")),this.open&&this.runPresent()}disconnectedCallback(){var t;null===(t=this.cleanupPositioner)||void 0===t||t.call(this),this.focusHandler.disconnect(),this.trigger&&(this.trigger.removeAttribute("aria-haspopup"),this.trigger.removeAttribute("aria-expanded")),this.unregisterGroup()}async present(){this.open=!0}async dismiss(){this.open=!1}async toggle(){this.open?this.dismiss():this.present()}async configChanged(t){this.animated=t.animated}async listenToClick(t){var i;if(this.el.id){const i=t.target.closest(`[data-popup="${this.el.id}"]`);if(i)return this.currentTrigger=i,void await this.toggle()}if(this.backdropDismiss&&this.isOpen){const s=t.composedPath(),a=s.includes(this.panelEl),e=null!==(i=this.currentTrigger)&&void 0!==i?i:this.trigger,o=!!e&&s.includes(e);a||o||await this.dismiss()}}listenToKeyDown(t){this.isOpen&&this.closable&&f(t)&&(t.stopPropagation(),this.dismiss())}get shouldTrapFocus(){return void 0!==this.trapFocus?this.trapFocus:this.backdrop}runPresent(){this.transitionQueue=this.transitionQueue.then((()=>this.doPresent())).catch((()=>{}))}runDismiss(){this.transitionQueue=this.transitionQueue.then((()=>this.doDismiss())).catch((()=>{}))}async doPresent(){var t;if(this.isOpen)return;const i=null!==(t=this.currentTrigger)&&void 0!==t?t:this.trigger;await this.dismissGroupSiblings(),this.dsWillPresent.emit({trigger:i}),i&&(i.setAttribute("aria-expanded","true"),await this.updatePosition(i),this.startPositioner(i)),this.isOpen=!0,this.animated&&await v(300),this.shouldTrapFocus?this.focusHandler.enable({target:this.panelEl,restoreElement:null!=i?i:null}):this.focusPanel(),this.dsDidPresent.emit({trigger:i})}async doDismiss(){var t,i;if(!this.isOpen)return;const s=null!==(t=this.currentTrigger)&&void 0!==t?t:this.trigger;this.dsWillDismiss.emit({trigger:s}),null===(i=this.cleanupPositioner)||void 0===i||i.call(this),this.cleanupPositioner=void 0,s&&s.setAttribute("aria-expanded","false"),this.isOpen=!1,this.animated&&await v(300),this.shouldTrapFocus?(this.focusHandler.disable(),this.focusHandler.restoreFocus()):null==s||s.focus(),this.dsDidDismiss.emit({trigger:s})}startPositioner(t){this.panelEl&&(this.cleanupPositioner=h(t,this.panelEl,(()=>this.updatePosition(t)),{ancestorScroll:!0,ancestorResize:!0,elementResize:!0,layoutShift:!0,animationFrame:!1}))}async updatePosition(t){if(!this.panelEl)return;const{x:i,y:s,placement:a,middlewareData:e}=await c(t,this.panelEl,{placement:this.placement,strategy:"fixed",middleware:[p.hasWindow&&!window.frameElement?l():void 0,u(),m(this.offset),this.arrow&&this.arrowEl?b({element:this.arrowEl}):void 0].filter(Boolean)});if(Object.assign(this.panelEl.style,{left:`${i}px`,top:`${s}px`}),this.panelEl.dataset.placement=a.split("-")[0],this.arrow&&this.arrowEl&&e.arrow){const{x:t,y:i}=e.arrow;Object.assign(this.arrowEl.style,{left:null!=t?`${t}px`:"",top:null!=i?`${i}px`:""})}}focusPanel(){if(!this.panelEl)return;const t=Array.from(this.panelEl.querySelectorAll('button:not([disabled]):not([tabindex^="-"]),input:not([type=hidden]):not([disabled]):not([tabindex^="-"]),select:not([disabled]):not([tabindex^="-"]),textarea:not([disabled]):not([tabindex^="-"]),a[href]:not([tabindex^="-"]),[tabindex]:not([tabindex^="-"])'));t.length>0?t[0].focus({preventScroll:!0}):this.panelEl.focus({preventScroll:!0})}registerGroup(){this.group&&(C.has(this.group)||C.set(this.group,new Set),C.get(this.group).add(this.el))}unregisterGroup(){var t;this.group&&(null===(t=C.get(this.group))||void 0===t||t.delete(this.el))}async dismissGroupSiblings(){if(!this.group)return;const t=C.get(this.group);if(t)for(const i of t)i!==this.el&&await i.dismiss()}render(){return a(e,{key:"63b4cf37af2e73b271f9c7fee523e7c68986081f",class:{"is-open":this.isOpen,"is-animated":this.animated,"is-closable":this.closable}},this.backdrop&&a("div",{key:"208a95330c83c4dd2328ce9e87a06b7aab7ab404",part:"backdrop"}),a("div",{key:"969fde6073490ce0803c0cadcaa9ec06a7704361",part:"panel",ref:t=>this.panelEl=t,role:this.role,"aria-modal":"dialog"===this.role?"true":void 0,"aria-label":this.label||void 0,tabindex:"-1","data-testid":"ds-popup-panel"},this.arrow&&a("div",{key:"228d1a47041090c57e395e240f2ebb5678f9c8e1",part:"arrow",ref:t=>this.arrowEl=t}),this.closable&&a("ds-close",{key:"d18c4ac4848e7ee31256384be4e7e8dd2b8b5a49",part:"close",onClick:this.handleCloseClick}),a("slot",{key:"ad9430d619bccde71bfeee2faffd1dde34dc43bd"})))}get el(){return this}static get watchers(){return{open:[{openChanged:0}],trigger:[{triggerChanged:0}]}}static get style(){return":host{--_popup-background:var(--popup-background, var(--mod-popup-background, var(--ds-popup-background)));--_popup-radius:var(--popup-radius, var(--mod-popup-radius, var(--ds-popup-radius)));--_popup-shadow:var(--popup-shadow, var(--mod-popup-shadow, var(--ds-popup-shadow)));--_popup-padding:var(--popup-padding, var(--mod-popup-padding, var(--ds-popup-padding)));--_popup-min-width:var(--popup-min-width, var(--mod-popup-min-width, var(--ds-popup-min-width)));--_popup-max-width:var(--popup-max-width, var(--mod-popup-max-width, none));--_popup-z-index:var(--popup-z-index, var(--mod-popup-z-index, var(--ds-popup-z-index)));--_popup-backdrop-opacity:var(--popup-backdrop-opacity, var(--mod-popup-backdrop-opacity, var(--ds-backdrop-opacity)));--_popup-arrow-size:var(--popup-arrow-size, var(--mod-popup-arrow-size, var(--ds-popup-arrow-size, 8px)));display:contents}[part=backdrop]{background-color:rgba(0,7,57,.5);-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);position:fixed;inset:0;z-index:calc(var(--_popup-z-index) - 1);opacity:0;pointer-events:none;-webkit-transition:opacity 200ms ease;transition:opacity 200ms ease}:host(.is-open) [part=backdrop]{opacity:var(--_popup-backdrop-opacity);pointer-events:auto}:host(.is-animated) [part=backdrop]{-webkit-transition:opacity 200ms ease;transition:opacity 200ms ease}[part=panel]{position:fixed;z-index:var(--_popup-z-index);background:var(--_popup-background);border-radius:var(--_popup-radius);-webkit-box-shadow:var(--_popup-shadow);box-shadow:var(--_popup-shadow);padding:var(--_popup-padding);min-width:var(--_popup-min-width);max-width:var(--_popup-max-width);opacity:0;visibility:hidden;pointer-events:none;outline:none !important}[part=panel]::-moz-focus-inner{border:0}:host(.is-open) [part=panel]{opacity:1;visibility:visible;pointer-events:auto}:host(.is-animated) [part=panel]{-webkit-transition:opacity 200ms ease,visibility 200ms ease;transition:opacity 200ms ease,visibility 200ms ease}[part=close]{position:absolute;top:.5rem;right:.5rem}:host(.is-closable) [part=panel]{padding-right:calc(var(--_popup-padding) + var(--_popup-padding))}[part=arrow]{position:absolute;width:var(--_popup-arrow-size);height:var(--_popup-arrow-size);background:var(--_popup-background);-webkit-transform:rotate(45deg);transform:rotate(45deg);pointer-events:none}[part=panel][data-placement=bottom] [part=arrow]{top:calc(var(--_popup-arrow-size)/-2)}[part=panel][data-placement=top] [part=arrow]{bottom:calc(var(--_popup-arrow-size)/-2)}[part=panel][data-placement=right] [part=arrow]{left:calc(var(--_popup-arrow-size)/-2)}[part=panel][data-placement=left] [part=arrow]{right:calc(var(--_popup-arrow-size)/-2)}@media (prefers-reduced-motion: reduce){:host(.is-animated) [part=panel],:host(.is-animated) [part=backdrop]{-webkit-transition:none !important;transition:none !important}}"}},[257,"ds-popup",{open:[1540],trigger:[16],placement:[1],offset:[2],role:[1],closable:[4],backdropDismiss:[4,"backdrop-dismiss"],backdrop:[4],group:[1],label:[1],arrow:[4],trapFocus:[4,"trap-focus"],animated:[32],isOpen:[32],present:[64],dismiss:[64],toggle:[64],configChanged:[64]},[[4,"click","listenToClick"],[4,"keydown","listenToKeyDown"]],{open:[{openChanged:0}],trigger:[{triggerChanged:0}]}]);function S(){"undefined"!=typeof customElements&&["ds-popup","ds-button","ds-close","ds-icon","ds-spinner"].forEach((t=>{switch(t){case"ds-popup":customElements.get(o(t))||customElements.define(o(t),O);break;case"ds-button":customElements.get(o(t))||y();break;case"ds-close":customElements.get(o(t))||w();break;case"ds-icon":customElements.get(o(t))||k();break;case"ds-spinner":customElements.get(o(t))||x()}}))}r([n("popup"),d("design:type",Function),d("design:paramtypes",[Function]),d("design:returntype",void 0)],O.prototype,"createLogger",null),r([_("boolean"),d("design:type",Boolean)],O.prototype,"open",void 0),r([z(D),d("design:type",String)],O.prototype,"placement",void 0),r([_("number"),d("design:type",Number)],O.prototype,"offset",void 0),r([z(["dialog","listbox","menu","tree","grid"]),d("design:type",String)],O.prototype,"role",void 0),r([_("boolean"),d("design:type",Boolean)],O.prototype,"closable",void 0),r([_("boolean"),d("design:type",Boolean)],O.prototype,"backdropDismiss",void 0),r([_("boolean"),d("design:type",Boolean)],O.prototype,"backdrop",void 0),r([_("string"),d("design:type",Object)],O.prototype,"group",void 0),r([_("string"),d("design:type",String)],O.prototype,"label",void 0),r([_("boolean"),d("design:type",Boolean)],O.prototype,"arrow",void 0),r([_("boolean"),d("design:type",Object)],O.prototype,"trapFocus",void 0),r([j(),d("design:type",Function),d("design:paramtypes",[Object]),d("design:returntype",Promise)],O.prototype,"configChanged",null);export{D as P,O as a,S as d}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* (C) Helvetia Design System https://design.baloise.dev/ - Apache License 2.0
|
|
3
|
+
*/
|
|
4
|
+
import{d as e}from"./p-WO0X5Vmy.js";const t=()=>{const e=window;return e&&e.DesignSystem&&e.DesignSystem.config},n=(t,n=32)=>{let s=!1;const i=()=>{s||(s=!0,t())};if(e.hasWindow){const e=setTimeout(i,n);window.addEventListener("load",(()=>{clearTimeout(e),i()}))}else setTimeout(i,32)},s=(t,n=5e3)=>{e.hasWindow&&"requestIdleCallback"in window?window.requestIdleCallback(t,{timeout:n}):setTimeout(t,32)},i=(e=0)=>new Promise((t=>{setTimeout((()=>t()),e)})),a=(e,t)=>{const n=e._original||e;return{_original:e,emit:o(n.emit.bind(n),t)}},o=(e,t=0)=>{let n;return(...s)=>{clearTimeout(n),n=setTimeout(e,t,...s)}},r=(e,t)=>e&&e.tagName&&e.tagName===t.toUpperCase(),m=(e,t)=>{let n=t.parentNode;for(;null!=n;){if(n==e)return!0;n=n.parentNode}return!1},u=e=>e.querySelector("ds-app")||e.body,l=(e,t)=>{null!=e.componentOnReady?e.componentOnReady().then((e=>t(e))):w((()=>t(e)))},w=e=>"function"==typeof __zone_symbol__requestAnimationFrame?__zone_symbol__requestAnimationFrame(e):"function"==typeof requestAnimationFrame?requestAnimationFrame(e):setTimeout(e),c=(n,s,i,a)=>{if(e.hasWindow){const e=t();if(e&&e._ael)return e._ael(n,s,i,a)}return n.addEventListener(s,i,a)},f=(n,s,i,a)=>{if(e.hasWindow){const e=t();if(e&&e._rel)return e._rel(n,s,i,a)}return n.removeEventListener(s,i,a)},d=e=>e?new Promise((t=>l(e,t))):Promise.resolve(),P=async(e,t=!1)=>{const n=e;if(n){if(null!=n.componentOnReady){const e=await n.componentOnReady();if(!t&&null!=e)return}await Promise.all(Array.from(n.children).map((e=>P(e,t))))}},y=async e=>{await P(e,!0),await _(),await p()},T=async(e,t)=>{const n=Object.assign({animated:!1},t),s=e;if(null!=s){await P(s,!0);const e=Array.prototype.slice.call(s.querySelectorAll("*")).filter((e=>e.tagName.match(/^bal/i)));await Promise.all(e.map((e=>{if(null!=e.configChanged)return e.configChanged(n)})))}await Promise.all([_(),b(),p()])},_=()=>new Promise((e=>w((()=>A(e))))),p=()=>new Promise((e=>s((()=>A(e))))),b=()=>new Promise((t=>((t,n=3e3)=>{let i=!1;if(!e.isSafari&&e.hasWindow&&"PerformanceObserver"in window){const e=new PerformanceObserver((n=>{const a=n.getEntries();a[a.length-1]&&(e.disconnect(),i=!0,s((()=>t())))}));e.observe({type:"largest-contentful-paint",buffered:!0}),setTimeout((()=>{i||(e.disconnect(),t())}),n)}else setTimeout(t,32)})((()=>A(t))))),q=()=>new Promise((e=>n((()=>A(e))))),A=t=>{if(e.hasWindow&&"MessageChannel"in window){const e=new window.MessageChannel;e.port1.onmessage=t,e.port2.postMessage(void 0)}else setTimeout(t,32)};export{_ as a,p as b,l as c,P as d,b as e,y as f,u as g,T as h,m as i,q as j,o as k,s as l,n as m,r as n,a as o,c as p,f as q,w as r,d as s,i as w}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* (C) Helvetia Design System https://design.baloise.dev/ - Apache License 2.0
|
|
3
|
+
*/
|
|
4
|
+
import{c as r,g as o}from"./p-CQHwI4iD.js";function n(n){return r({priority:1,blocking:!1,run(r,t){const{value:s,showError:e}=o(r,t);return!!n.includes(s)||(e(`must be one of [${n.join(", ")}]`),!1)}})}export{n as O}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* (C) Helvetia Design System https://design.baloise.dev/ - Apache License 2.0
|
|
3
|
+
*/
|
|
4
|
+
const t=Math.min,n=Math.max,e=Math.round,o=Math.floor,r=t=>({x:t,y:t}),i={left:"right",right:"left",bottom:"top",top:"bottom"};function l(e,o,r){return n(e,t(o,r))}function c(t,n){return"function"==typeof t?t(n):t}function a(t){return t.split("-")[0]}function u(t){return t.split("-")[1]}function s(t){return"x"===t?"y":"x"}function f(t){return"y"===t?"height":"width"}function d(t){const n=t[0];return"t"===n||"b"===n?"y":"x"}function m(t){return s(d(t))}function y(t){return t.includes("start")?t.replace("start","end"):t.replace("end","start")}const h=["left","right"],p=["right","left"],w=["top","bottom"],g=["bottom","top"];function x(t){const n=a(t);return i[n]+t.slice(n.length)}function v(t){return"number"!=typeof t?function(t){var n,e,o,r;return{top:null!=(n=t.top)?n:0,right:null!=(e=t.right)?e:0,bottom:null!=(o=t.bottom)?o:0,left:null!=(r=t.left)?r:0}}(t):{top:t,right:t,bottom:t,left:t}}function b(t){const{x:n,y:e,width:o,height:r}=t;return{width:o,height:r,top:e,left:n,right:n+o,bottom:e+r,x:n,y:e}}function A(t,n,e){let{reference:o,floating:r}=t;const i=d(n),l=m(n),c=f(l),s=a(n),y="y"===i,h=o.x+o.width/2-r.width/2,p=o.y+o.height/2-r.height/2,w=o[c]/2-r[c]/2;let g;switch(s){case"top":g={x:h,y:o.y-r.height};break;case"bottom":g={x:h,y:o.y+o.height};break;case"right":g={x:o.x+o.width,y:p};break;case"left":g={x:o.x-r.width,y:p};break;default:g={x:o.x,y:o.y}}const x=u(n);return x&&(g[l]+=w*("end"===x?1:-1)*(e&&y?-1:1)),g}async function S(t,n){var e;void 0===n&&(n={});const{x:o,y:r,platform:i,rects:l,elements:a,strategy:u}=t,{boundary:s="clippingAncestors",rootBoundary:f="viewport",elementContext:d="floating",altBoundary:m=!1,padding:y=0}=c(n,t),h=v(y),p=a[m?"floating"===d?"reference":"floating":d],w=b(await i.getClippingRect({element:null==(e=await(null==i.isElement?void 0:i.isElement(p)))||e?p:p.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(a.floating)),boundary:s,rootBoundary:f,strategy:u})),g="floating"===d?{x:o,y:r,width:l.floating.width,height:l.floating.height}:l.reference,x=await(null==i.getOffsetParent?void 0:i.getOffsetParent(a.floating)),A=await(null==i.isElement?void 0:i.isElement(x))&&await(null==i.getScale?void 0:i.getScale(x))||{x:1,y:1},S=b(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:g,offsetParent:x,strategy:u}):g);return{top:(w.top-S.top+h.top)/A.y,bottom:(S.bottom-w.bottom+h.bottom)/A.y,left:(w.left-S.left+h.left)/A.x,right:(S.right-w.right+h.right)/A.x}}const R=new Set(["left","top"]);function F(){return"undefined"!=typeof window}function O(t){return T(t)?(t.nodeName||"").toLowerCase():"#document"}function k(t){var n;return(null==t||null==(n=t.ownerDocument)?void 0:n.defaultView)||window}function C(t){var n;return null==(n=(T(t)?t.ownerDocument:t.document)||window.document)?void 0:n.documentElement}function T(t){return!!F()&&(t instanceof Node||t instanceof k(t).Node)}function z(t){return!!F()&&(t instanceof Element||t instanceof k(t).Element)}function D(t){return!!F()&&(t instanceof HTMLElement||t instanceof k(t).HTMLElement)}function M(t){return!(!F()||"undefined"==typeof ShadowRoot)&&(t instanceof ShadowRoot||t instanceof k(t).ShadowRoot)}function P(t){const{overflow:n,overflowX:e,overflowY:o,display:r}=H(t);return/auto|scroll|overlay|hidden|clip/.test(n+o+e)&&"inline"!==r&&"contents"!==r}function L(t){return/^(table|td|th)$/.test(O(t))}function E(t){try{if(t.matches(":popover-open"))return!0}catch(t){}try{return t.matches(":modal")}catch(t){return!1}}const B=/transform|translate|scale|rotate|perspective|filter/,$=/paint|layout|strict|content/,I=t=>!!t&&"none"!==t;let N;function V(t){const n=z(t)?H(t):t;return I(n.transform)||I(n.translate)||I(n.scale)||I(n.rotate)||I(n.perspective)||!j()&&(I(n.backdropFilter)||I(n.filter))||B.test(n.willChange||"")||$.test(n.contain||"")}function j(){return null==N&&(N="undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),N}function q(t){return/^(html|body|#document)$/.test(O(t))}function H(t){return k(t).getComputedStyle(t)}function W(t){return z(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function X(t){if("html"===O(t))return t;const n=t.assignedSlot||t.parentNode||M(t)&&t.host||C(t);return M(n)?n.host:n}function Y(t){const n=X(t);return q(n)?(t.ownerDocument||t).body:D(n)&&P(n)?n:Y(n)}function _(t,n,e){var o;void 0===n&&(n=[]),void 0===e&&(e=!0);const r=Y(t),i=r===(null==(o=t.ownerDocument)?void 0:o.body),l=k(r);if(i){const t=G(l);return n.concat(l,l.visualViewport||[],P(r)?r:[],t&&e?_(t):[])}return n.concat(r,_(r,[],e))}function G(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function J(t){const n=H(t);let o=parseFloat(n.width)||0,r=parseFloat(n.height)||0;const i=D(t),l=i?t.offsetWidth:o,c=i?t.offsetHeight:r,a=e(o)!==l||e(r)!==c;return a&&(o=l,r=c),{width:o,height:r,$:a}}function K(t){return z(t)?t:t.contextElement}function Q(t){const n=K(t);if(!D(n))return r(1);const o=n.getBoundingClientRect(),{width:i,height:l,$:c}=J(n);let a=(c?e(o.width):o.width)/i,u=(c?e(o.height):o.height)/l;return a&&Number.isFinite(a)||(a=1),u&&Number.isFinite(u)||(u=1),{x:a,y:u}}const U=r(0);function Z(t){const n=k(t);return j()&&n.visualViewport?{x:n.visualViewport.offsetLeft,y:n.visualViewport.offsetTop}:U}function tt(t,n,e,o){void 0===n&&(n=!1),void 0===e&&(e=!1);const i=t.getBoundingClientRect(),l=K(t);let c=r(1);n&&(o?z(o)&&(c=Q(o)):c=Q(t));const a=function(t,n,e){return void 0===n&&(n=!1),!!e&&n&&e===k(t)}(l,e,o)?Z(l):r(0);let u=(i.left+a.x)/c.x,s=(i.top+a.y)/c.y,f=i.width/c.x,d=i.height/c.y;if(l&&o){const t=k(l),n=z(o)?k(o):o;let e=t,r=G(e);for(;r&&n!==e;){const t=Q(r),n=r.getBoundingClientRect(),o=H(r),i=n.left+(r.clientLeft+parseFloat(o.paddingLeft))*t.x,l=n.top+(r.clientTop+parseFloat(o.paddingTop))*t.y;u*=t.x,s*=t.y,f*=t.x,d*=t.y,u+=i,s+=l,e=k(r),r=G(e)}}return b({width:f,height:d,x:u,y:s})}function nt(t,n){const e=W(t).scrollLeft;return n?n.left+e:tt(C(t)).left+e}function et(t,n){const e=t.getBoundingClientRect();return{x:e.left+n.scrollLeft-nt(t,e),y:e.top+n.scrollTop}}function ot(t,e,o){let r;if("viewport"===e||"layoutViewport"===e)r=function(t,n,e){void 0===e&&(e="viewport");const o="layoutViewport"===e,r=k(t),i=C(t),l=r.visualViewport;let c=i.clientWidth,a=i.clientHeight,u=0,s=0;if(l){const t=!j()||"fixed"===n;o?t||(u=-l.offsetLeft,s=-l.offsetTop):(c=l.width,a=l.height,t&&(u=l.offsetLeft,s=l.offsetTop))}if(nt(i)<=0){const t=i.ownerDocument,n=t.body,e=getComputedStyle(n),o="CSS1Compat"===t.compatMode&&parseFloat(e.marginLeft)+parseFloat(e.marginRight)||0,r=Math.abs(i.clientWidth-n.clientWidth-o),l="stable both-edges"===getComputedStyle(i).scrollbarGutter?r/2:r;l<=25&&(c-=l)}return{width:c,height:a,x:u,y:s}}(t,o,e);else if("document"===e)r=function(t){const e=W(t),o=t.ownerDocument.body,r=n(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),i=n(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight);let l=-e.scrollLeft+nt(t);const c=-e.scrollTop;return"rtl"===H(o).direction&&(l+=n(t.clientWidth,o.clientWidth)-r),{width:r,height:i,x:l,y:c}}(C(t));else if(z(e))r=function(t,n){const e=tt(t,!0,"fixed"===n),o=e.top+t.clientTop,r=e.left+t.clientLeft,i=Q(t);return{width:t.clientWidth*i.x,height:t.clientHeight*i.y,x:r*i.x,y:o*i.y}}(e,o);else{const n=Z(t);r={x:e.x-n.x,y:e.y-n.y,width:e.width,height:e.height}}return b(r)}function rt(t,n,e){const o=D(n),i=C(n),l="fixed"===e,c=tt(t,!0,l,n);let a={scrollLeft:0,scrollTop:0};const u=r(0);if((o||!l)&&(("body"!==O(n)||P(i))&&(a=W(n)),o)){const t=tt(n,!0,l,n);u.x=t.x+n.clientLeft,u.y=t.y+n.clientTop}!o&&i&&(u.x=nt(i));const s=!i||o||l?r(0):et(i,a);return{x:c.left+a.scrollLeft-u.x-s.x,y:c.top+a.scrollTop-u.y-s.y,width:c.width,height:c.height}}function it(t){return"static"===H(t).position}function lt(t,n){if(!D(t)||"fixed"===H(t).position)return null;if(n)return n(t);let e=t.offsetParent;return C(t)===e&&(e=e.ownerDocument.body),e}function ct(t,n){const e=k(t);if(E(t))return e;if(!D(t)){let n=X(t);for(;n&&!q(n);){if(z(n)&&!it(n))return n;n=X(n)}return e}let o=lt(t,n);for(;o&&L(o)&&it(o);)o=lt(o,n);return o&&q(o)&&it(o)&&!V(o)?e:o||function(t){let n=X(t);for(;D(n)&&!q(n);){if(V(n))return n;if(E(n))return null;n=X(n)}return null}(t)||e}const at={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{elements:n,rect:e,offsetParent:o,strategy:i}=t;const l="fixed"===i,c=C(o),a=!!n&&E(n.floating);if(o===c||a&&l)return e;let u={scrollLeft:0,scrollTop:0},s=r(1);const f=r(0),d=D(o);if((d||!l)&&(("body"!==O(o)||P(c))&&(u=W(o)),d)){const t=tt(o);s=Q(o),f.x=t.x+o.clientLeft,f.y=t.y+o.clientTop}const m=!c||d||l?r(0):et(c,u);return{width:e.width*s.x,height:e.height*s.y,x:e.x*s.x-u.scrollLeft*s.x+f.x+m.x,y:e.y*s.y-u.scrollTop*s.y+f.y+m.y}},getDocumentElement:C,getClippingRect:function(e){let{element:o,boundary:r,rootBoundary:i,strategy:l}=e;const c=[..."clippingAncestors"===r?E(o)?[]:function(t,n){const e=n.get(t);if(e)return e;let o=_(t,[],!1).filter((t=>z(t)&&"body"!==O(t))),r=null;const i="fixed"===H(t).position;let l=i?X(t):t;for(;z(l)&&!q(l);){const t=H(l),n=V(l),e=r?r.position:i?"fixed":"";n||"fixed"!==e&&("absolute"!==e||"static"!==t.position)?r=t:o=o.filter((t=>t!==l)),l=X(l)}return n.set(t,o),o}(o,this._c):[].concat(r),i],a=ot(o,c[0],l);let u=a.top,s=a.right,f=a.bottom,d=a.left;for(let e=1;e<c.length;e++){const r=ot(o,c[e],l);u=n(r.top,u),s=t(r.right,s),f=t(r.bottom,f),d=n(r.left,d)}return{width:s-d,height:f-u,x:d,y:u}},getOffsetParent:ct,getElementRects:async function(t){const n=this.getOffsetParent||ct,e=this.getDimensions,o=await e(t.floating);return{reference:rt(t.reference,await n(t.floating),t.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}},getClientRects:function(t){return t.getClientRects?Array.from(t.getClientRects()):[]},getDimensions:function(t){const{width:n,height:e}=J(t);return{width:n,height:e}},getScale:Q,isElement:z,isRTL:function(t){return"rtl"===H(t).direction}};function ut(t,n){return t.x===n.x&&t.y===n.y&&t.width===n.width&&t.height===n.height}function st(e,r,i,l){void 0===l&&(l={});const{ancestorScroll:c=!0,ancestorResize:a=!0,elementResize:u="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:f=!1}=l,d=K(e),m=c||a?[...d?_(d):[],...r?_(r):[]]:[];m.forEach((t=>{c&&t.addEventListener("scroll",i),a&&t.addEventListener("resize",i)}));const y=d&&s?function(e,r,i){let l,c=null;const a=C(e);function u(){var t;clearTimeout(l),null==(t=c)||t.disconnect(),c=null}function s(i,f){void 0===i&&(i=!1),void 0===f&&(f=1),u();const d=e.getBoundingClientRect(),{left:m,top:y,width:h,height:p}=d;if(i||r(),!h||!p)return;const w={rootMargin:-o(y)+"px "+-o(a.clientWidth-(m+h))+"px "+-o(a.clientHeight-(y+p))+"px "+-o(m)+"px",threshold:n(0,t(1,f))||1};let g=!0;function x(t){const n=t[0].intersectionRatio;if(!ut(d,e.getBoundingClientRect()))return s();if(n!==f){if(!g)return s();n?s(!1,n):l=setTimeout((()=>{s(!1,1e-7)}),1e3)}g=!1}try{c=new IntersectionObserver(x,{...w,root:a.ownerDocument})}catch(t){c=new IntersectionObserver(x,w)}c.observe(e)}const f=k(e),d=()=>s(i);return f.addEventListener("resize",d),s(!0),()=>{f.removeEventListener("resize",d),u()}}(d,i,a):null;let h,p=-1,w=null;u&&(w=new ResizeObserver((t=>{let[n]=t;n&&n.target===d&&w&&r&&(w.unobserve(r),cancelAnimationFrame(p),p=requestAnimationFrame((()=>{var t;null==(t=w)||t.observe(r)}))),i()})),d&&!f&&w.observe(d),r&&w.observe(r));let g=f?tt(e):null;return f&&function t(){const n=tt(e);g&&!ut(g,n)&&i(),g=n,h=requestAnimationFrame(t)}(),i(),()=>{var t;m.forEach((t=>{c&&t.removeEventListener("scroll",i),a&&t.removeEventListener("resize",i)})),null==y||y(),null==(t=w)||t.disconnect(),w=null,f&&cancelAnimationFrame(h)}}const ft=function(t){return void 0===t&&(t=0),{name:"offset",options:t,async fn(n){var e,o;const{x:r,y:i,placement:l,middlewareData:s}=n,f=await async function(t,n){const{placement:e,platform:o,elements:r}=t,i=await(null==o.isRTL?void 0:o.isRTL(r.floating)),l=a(e),s=u(e),f="y"===d(e),m=R.has(l)?-1:1,y=i&&f?-1:1,h=c(n,t);let{mainAxis:p,crossAxis:w,alignmentAxis:g}="number"==typeof h?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return s&&"number"==typeof g&&(w="end"===s?-1*g:g),f?{x:w*y,y:p*m}:{x:p*m,y:w*y}}(n,t);return l===(null==(e=s.offset)?void 0:e.placement)&&null!=(o=s.arrow)&&o.alignmentOffset?{}:{x:r+f.x,y:i+f.y,data:{...f,placement:l}}}}},dt=function(t){return void 0===t&&(t={}),{name:"shift",options:t,async fn(n){const{x:e,y:o,placement:r,platform:i}=n,{mainAxis:a=!0,crossAxis:u=!1,limiter:f={fn:t=>{let{x:n,y:e}=t;return{x:n,y:e}}},...m}=c(t,n),y={x:e,y:o},h=await i.detectOverflow(n,m),p=d(r),w=s(p);let g=y[w],x=y[p];const v=(t,n)=>l(n+h["y"===t?"top":"left"],n,n-h["y"===t?"bottom":"right"]);a&&(g=v(w,g)),u&&(x=v(p,x));const b=f.fn({...n,[w]:g,[p]:x});return{...b,data:{x:b.x-e,y:b.y-o,enabled:{[w]:a,[p]:u}}}}}},mt=function(t){return void 0===t&&(t={}),{name:"flip",options:t,async fn(n){var e,o;const{placement:r,middlewareData:i,rects:l,initialPlacement:s,platform:v,elements:b}=n,{mainAxis:A=!0,crossAxis:S=!0,fallbackPlacements:R,fallbackStrategy:F="bestFit",fallbackAxisSideDirection:O="none",flipAlignment:k=!0,...C}=c(t,n);if(null!=(e=i.arrow)&&e.alignmentOffset)return{};const T=a(r),z=d(s),D=a(s)===s,M=await(null==v.isRTL?void 0:v.isRTL(b.floating)),P=R||(D||!k?[x(s)]:function(t){const n=x(t);return[y(t),n,y(n)]}(s)),L="none"!==O;!R&&L&&P.push(...function(t,n,e,o){const r=u(t);let i=function(t,n,e){switch(t){case"top":case"bottom":return e?n?p:h:n?h:p;case"left":case"right":return n?w:g;default:return[]}}(a(t),"start"===e,o);return r&&(i=i.map((t=>t+"-"+r)),n&&(i=i.concat(i.map(y)))),i}(s,k,O,M));const E=[s,...P],B=await v.detectOverflow(n,C),$=[];let I=(null==(o=i.flip)?void 0:o.overflows)||[];if(A&&$.push(B[T]),S){const t=function(t,n,e){void 0===e&&(e=!1);const o=u(t),r=m(t),i=f(r);let l="x"===r?o===(e?"end":"start")?"right":"left":"start"===o?"bottom":"top";return n.reference[i]>n.floating[i]&&(l=x(l)),[l,x(l)]}(r,l,M);$.push(B[t[0]],B[t[1]])}if(I=[...I,{placement:r,overflows:$}],!$.every((t=>t<=0))){var N,V;const t=((null==(N=i.flip)?void 0:N.index)||0)+1,n=E[t];if(n&&("alignment"!==S||z===d(n)||I.every((t=>d(t.placement)!==z||t.overflows[0]>0))))return{data:{index:t,overflows:I},reset:{placement:n}};let e=null==(V=I.filter((t=>t.overflows[0]<=0)).sort(((t,n)=>t.overflows[1]-n.overflows[1]))[0])?void 0:V.placement;if(!e)switch(F){case"bestFit":{var j;const t=null==(j=I.filter((t=>{if(L){const n=d(t.placement);return n===z||"y"===n}return!0})).map((t=>[t.placement,t.overflows.filter((t=>t>0)).reduce(((t,n)=>t+n),0)])).sort(((t,n)=>t[1]-n[1]))[0])?void 0:j[0];t&&(e=t);break}case"initialPlacement":e=s}if(r!==e)return{reset:{placement:e}}}return{}}}},yt=n=>({name:"arrow",options:n,async fn(e){const{x:o,y:r,placement:i,rects:a,platform:s,elements:d,middlewareData:y}=e,{element:h,padding:p=0}=c(n,e)||{};if(null==h)return{};const w=v(p),g={x:o,y:r},x=m(i),b=f(x),A=await s.getDimensions(h),S="y"===x,R=S?"top":"left",F=S?"bottom":"right",O=S?"clientHeight":"clientWidth",k=a.reference[b]+a.reference[x]-g[x]-a.floating[b],C=g[x]-a.reference[x],T=await(null==s.getOffsetParent?void 0:s.getOffsetParent(h));let z=T?T[O]:0;z&&await(null==s.isElement?void 0:s.isElement(T))||(z=d.floating[O]||a.floating[b]);const D=k/2-C/2,M=z/2-A[b]/2-1,P=t(w[R],M),L=t(w[F],M),E=z-A[b]-L,B=z/2-A[b]/2+D,$=l(P,B,E),I=!y.arrow&&null!=u(i)&&B!==$&&a.reference[b]/2-(B<P?P:L)-A[b]/2<0,N=I?B<P?B-P:B-E:0;return{[x]:g[x]+N,data:{[x]:$,centerOffset:B-$-N,...I&&{alignmentOffset:N}},reset:I}}}),ht=(t,n,e)=>{const o=new Map,r=null!=e?e:{},i={...at,...r.platform,_c:o};return(async(t,n,e)=>{const{placement:o="bottom",strategy:r="absolute",middleware:i=[],platform:l}=e,c=l.detectOverflow?l:{...l,detectOverflow:S},a=await(null==l.isRTL?void 0:l.isRTL(n));let u=await l.getElementRects({reference:t,floating:n,strategy:r}),{x:s,y:f}=A(u,o,a),d=o,m=0;const y={};for(let e=0;e<i.length;e++){const h=i[e];if(!h)continue;const{name:p,fn:w}=h,{x:g,y:x,data:v,reset:b}=await w({x:s,y:f,initialPlacement:o,placement:d,strategy:r,middlewareData:y,rects:u,platform:c,elements:{reference:t,floating:n}});s=null!=g?g:s,f=null!=x?x:f,y[p]={...y[p],...v},b&&m<50&&(m++,"object"==typeof b&&(b.placement&&(d=b.placement),b.rects&&(u=!0===b.rects?await l.getElementRects({reference:t,floating:n,strategy:r}):b.rects),({x:s,y:f}=A(u,d,a))),e=-1)}return{x:s,y:f,placement:d,strategy:r,middlewareData:y}})(t,n,{...r,platform:i})};export{st as a,yt as b,ht as c,mt as f,ft as o,dt as s}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* (C) Helvetia Design System https://design.baloise.dev/ - Apache License 2.0
|
|
3
|
+
*/
|
|
4
|
+
const e=["default","fluid","compact",""],a={de:{languageSelector:"Sprache waehlen",languageLabels:{de:"DE - Deutsch",fr:"FR - Francais",it:"IT - Italiano",en:"EN - English",nl:"NL - Nederlands",es:"ES - Espanol",pl:"PL - Polski",pt:"PT - Portugues",sv:"SV - Svenska",fi:"FI - Suomi"}},en:{languageSelector:"Select language",languageLabels:{de:"DE - German",fr:"FR - French",it:"IT - Italian",en:"EN - English",nl:"NL - Dutch",es:"ES - Spanish",pl:"PL - Polish",pt:"PT - Portuguese",sv:"SV - Swedish",fi:"FI - Finnish"}},fr:{languageSelector:"Choisir la langue",languageLabels:{de:"DE - Allemand",fr:"FR - Francais",it:"IT - Italien",en:"EN - Anglais",nl:"NL - Neerlandais",es:"ES - Espagnol",pl:"PL - Polonais",pt:"PT - Portugais",sv:"SV - Suedois",fi:"FI - Finnois"}},it:{languageSelector:"Seleziona lingua",languageLabels:{de:"DE - Tedesco",fr:"FR - Francese",it:"IT - Italiano",en:"EN - Inglese",nl:"NL - Olandese",es:"ES - Spagnolo",pl:"PL - Polacco",pt:"PT - Portoghese",sv:"SV - Svedese",fi:"FI - Finlandese"}},nl:{languageSelector:"Selecteer taal",languageLabels:{de:"DE - Duits",fr:"FR - Frans",it:"IT - Italiaans",en:"EN - Engels",nl:"NL - Nederlands",es:"ES - Spaans",pl:"PL - Pools",pt:"PT - Portugees",sv:"SV - Zweeds",fi:"FI - Fins"}},es:{languageSelector:"Seleccionar idioma",languageLabels:{de:"DE - Aleman",fr:"FR - Frances",it:"IT - Italiano",en:"EN - Ingles",nl:"NL - Neerlandes",es:"ES - Espanol",pl:"PL - Polaco",pt:"PT - Portugues",sv:"SV - Sueco",fi:"FI - Fines"}},pl:{languageSelector:"Wybierz jezyk",languageLabels:{de:"DE - Niemiecki",fr:"FR - Francuski",it:"IT - Wloski",en:"EN - Angielski",nl:"NL - Holenderski",es:"ES - Hiszpanski",pl:"PL - Polski",pt:"PT - Portugalski",sv:"SV - Szwedzki",fi:"FI - Finski"}},pt:{languageSelector:"Selecionar idioma",languageLabels:{de:"DE - Alemao",fr:"FR - Frances",it:"IT - Italiano",en:"EN - Ingles",nl:"NL - Neerlandes",es:"ES - Espanhol",pl:"PL - Polones",pt:"PT - Portugues",sv:"SV - Sueco",fi:"FI - Finlandes"}},sv:{languageSelector:"Valj sprak",languageLabels:{de:"DE - Tyska",fr:"FR - Franska",it:"IT - Italienska",en:"EN - Engelska",nl:"NL - Nederlandska",es:"ES - Spanska",pl:"PL - Polska",pt:"PT - Portugisiska",sv:"SV - Svenska",fi:"FI - Finska"}},fi:{languageSelector:"Valitse kieli",languageLabels:{de:"DE - Saksa",fr:"FR - Ranska",it:"IT - Italia",en:"EN - Englanti",nl:"NL - Hollanti",es:"ES - Espanja",pl:"PL - Puola",pt:"PT - Portugali",sv:"SV - Ruotsi",fi:"FI - Suomi"}}};export{e as F,a as i}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* (C) Helvetia Design System https://design.baloise.dev/ - Apache License 2.0
|
|
3
3
|
*/
|
|
4
|
-
import{b as i}from"./p-
|
|
4
|
+
import{b as i}from"./p-BgzU1loG.js";class s{constructor(s){this.component=s,this.initialValue=null,this.inputValue=null,this.listenOnClick=i=>{(this.component.disabled||this.component.readonly)&&i.target&&i.target===this.component.el&&l(i)},this.listenOnReset=i=>{const s=i.target;(null==s?void 0:s.contains(this.component.el))&&(this.setValue(this.initialValue),clearTimeout(this.resetHandlerTimer),this.resetHandlerTimer=setTimeout((()=>{this.nativeEl&&(this.nativeEl.value=this.component.value)})))},this.onClick=i=>{var s;this.component.disabled||this.component.readonly||null===(s=this.component)||void 0===s||s.dsClick.emit(i)},this.onFocus=i=>{var s;this.component.focused=!0,this.inputValue=this.component.value,this.component.disabled||null===(s=this.component)||void 0===s||s.dsFocus.emit(i)},this.onBlur=i=>{var s;this.component.focused=!1,this.component.disabled||(null===(s=this.component)||void 0===s||s.dsBlur.emit(i),this.setValue(this.inputValue))},this.onInput=()=>{var i;this.inputValue=(null===(i=this.nativeEl)||void 0===i?void 0:i.value)||null,this.component.dsInput.emit(this.inputValue||void 0)},this.setValue=i=>{h(this.component.value,i)&&(this.component.value=i,this.inputValue=i,this.component.internals.setFormValue(this.inputValue),this.component.dsChange.emit(this.component.value))},this.setBlur=async()=>{var i;null===(i=null==this?void 0:this.nativeEl)||void 0===i||i.blur()},this.setFocus=async()=>{var s;await i(),null===(s=null==this?void 0:this.nativeEl)||void 0===s||s.focus()}}connectedCallback(){this.initialValue=this.component.value}componentDidLoad(){this.inputValue=this.component.value,this.component.internals.setFormValue(this.inputValue)}}const t=i=>(i=>""===i||null==i||Array.isArray(i)&&!i.length||"number"==typeof i&&isNaN(i))(i)?void 0:i,h=(i,s)=>t(i)!==t(s),l=i=>{i&&(i.preventDefault(),i.stopPropagation())};export{s as F,l as s}
|