@baloise/ds-core 20.0.0-next.6 → 20.0.0-next.8
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/components/all.d.ts +2 -0
- package/components/all.js +3 -0
- package/components/ds-accordion.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-subtitle.js +1 -1
- package/components/ds-card-title.js +1 -1
- package/components/ds-card.js +1 -1
- package/components/ds-carousel.js +1 -1
- 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.js +1 -1
- package/components/ds-date.js +1 -1
- package/components/ds-drawer.js +1 -1
- package/components/ds-file-upload.js +1 -1
- package/components/ds-footer.js +1 -1
- package/components/ds-heading.js +1 -1
- package/components/ds-hint.js +1 -1
- 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.js +1 -1
- package/components/ds-modal-header.js +1 -1
- package/components/ds-modal.js +1 -1
- package/components/ds-navbar.js +1 -1
- 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.js +1 -1
- 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.js +1 -1
- package/components/ds-select-option.js +1 -1
- package/components/ds-select.js +1 -1
- 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.js +1 -1
- package/components/ds-step.js +1 -1
- package/components/ds-tab-panel.js +1 -1
- package/components/ds-tabs.js +1 -1
- 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.js +1 -1
- package/components/index.js +1 -1
- package/components/{p-DenZRIeA.js → p-BXJT6RzI.js} +1 -1
- package/components/p-BdLq-Ecc.js +4 -0
- package/components/{p-CjIxf5zy.js → p-BmKEBYP4.js} +1 -1
- package/components/p-BoWAkGY5.js +4 -0
- package/components/{p-DYTOWDAA.js → p-CTbJFS-e.js} +1 -1
- package/components/{p-DokkRjWC.js → p-CaMOovXn.js} +1 -1
- package/components/p-Ce8PV2ZO.js +4 -0
- package/components/p-CmBtAxar.js +4 -0
- package/components/p-D8gpyiFZ.js +4 -0
- package/components/{p-ng5ZzTOj.js → p-DBX_haol.js} +1 -1
- package/components/{p-BfXZJ1Fe.js → p-DPbhygsR.js} +1 -1
- package/components/{p-BU0dY8pq.js → p-DZzsZ_YH.js} +1 -1
- package/components/p-DbUsvqrz.js +4 -0
- package/components/p-Dbqy6lZU.js +5 -0
- package/{dist/design-system/p-BATOumsf.js → components/p-fS80bKHo.js} +1 -1
- package/components/{p-bGV2P6rT.js → p-hPpcXLRP.js} +1 -1
- package/components/p-o0H7eIVX.js +4 -0
- package/components/p-std0LSH2.js +4 -0
- package/components/{p-Btdh3fq7.js → p-u5aa74vh.js} +1 -1
- package/components/p-wud2RGEy.js +4 -0
- package/dist/cjs/{_getTag-B468r9bu.js → _getTag-DxZgmSPS.js} +1 -1
- package/dist/cjs/{array-CioNm_V1.js → array-CYn4ALBt.js} +10 -9
- package/dist/cjs/{breakpoints.decorator-C-Qm21UK.js → breakpoints.decorator-DbttiLa9.js} +1 -1
- package/dist/cjs/{breakpoints.subject-XNcGwhzh.js → breakpoints.subject-CNyiZaBe.js} +3 -3
- package/dist/cjs/{button.interfaces-CqlUGR-N.js → button.interfaces-BKyK0H_f.js} +0 -1
- package/dist/cjs/{config.decorator-ThGLtT-3.js → config.decorator-bU7c6ybP.js} +1 -1
- package/dist/cjs/{config.utils-MhZvq4Qm.js → config.utils-BhJig3l5.js} +1 -1
- package/dist/cjs/{create-validator-decorator-BIgFqrMJ.js → create-validator-decorator-CiRieHJL.js} +1 -1
- package/dist/cjs/design-system.cjs.js +2 -2
- package/dist/cjs/{device-BnjBOLnP.js → device-DM1GXL99.js} +1 -1
- package/dist/cjs/ds-accordion.cjs.entry.js +9 -9
- package/dist/cjs/ds-alert-container.cjs.entry.js +6 -6
- package/dist/cjs/ds-app.cjs.entry.js +35 -8
- package/dist/cjs/ds-badge.cjs.entry.js +20 -39
- package/dist/cjs/ds-button-group.cjs.entry.js +7 -7
- package/dist/cjs/ds-button_2.cjs.entry.js +20 -20
- package/dist/cjs/ds-card-actions.cjs.entry.js +4 -4
- package/dist/cjs/ds-card-content.cjs.entry.js +3 -3
- package/dist/cjs/ds-card-header.cjs.entry.js +5 -5
- package/dist/cjs/ds-card-subtitle.cjs.entry.js +10 -14
- package/dist/cjs/ds-card-title.cjs.entry.js +8 -14
- package/dist/cjs/ds-card.cjs.entry.js +14 -13
- package/dist/cjs/ds-carousel-item.cjs.entry.js +6 -6
- package/dist/cjs/ds-carousel.cjs.entry.js +8 -8
- package/dist/cjs/ds-checkbox-group.cjs.entry.js +44 -19
- package/dist/cjs/ds-checkbox.cjs.entry.js +19 -10
- package/dist/cjs/ds-content_2.cjs.entry.js +18 -68
- package/dist/cjs/ds-data-item.cjs.entry.js +6 -6
- package/dist/cjs/ds-data-label.cjs.entry.js +4 -4
- package/dist/cjs/ds-data-value.cjs.entry.js +2 -2
- package/dist/cjs/ds-data.cjs.entry.js +4 -4
- package/dist/cjs/ds-date.cjs.entry.js +18 -12
- package/dist/cjs/ds-divider_2.cjs.entry.js +14 -14
- package/dist/cjs/ds-drawer_2.cjs.entry.js +10 -10
- package/dist/cjs/ds-file-upload.cjs.entry.js +22 -14
- package/dist/cjs/ds-footer.cjs.entry.js +7 -7
- package/dist/cjs/ds-heading.cjs.entry.js +21 -37
- package/dist/cjs/ds-hint-text.cjs.entry.js +2 -2
- package/dist/cjs/ds-hint-title.cjs.entry.js +2 -2
- package/dist/cjs/ds-hint.cjs.entry.js +11 -11
- package/dist/cjs/ds-icon_2.cjs.entry.js +23 -26
- package/dist/cjs/ds-input-slider.cjs.entry.js +2892 -0
- package/dist/cjs/ds-input.cjs.entry.js +20 -11
- package/dist/cjs/ds-item.cjs.entry.js +7 -7
- package/dist/cjs/ds-label.cjs.entry.js +11 -11
- package/dist/cjs/ds-list.cjs.entry.js +5 -5
- package/dist/cjs/ds-modal-body.cjs.entry.js +3 -3
- package/dist/cjs/ds-modal-header.cjs.entry.js +3 -3
- package/dist/cjs/ds-modal.cjs.entry.js +9 -9
- package/dist/cjs/ds-navbar.cjs.entry.js +17 -17
- package/dist/cjs/ds-notification.cjs.entry.js +11 -11
- package/dist/cjs/ds-number-input.cjs.entry.js +31 -117
- package/dist/cjs/ds-pagination.cjs.entry.js +17 -17
- package/dist/cjs/ds-progress-bar.cjs.entry.js +14 -14
- package/dist/cjs/ds-radio-group.cjs.entry.js +39 -15
- package/dist/cjs/ds-radio.cjs.entry.js +19 -10
- package/dist/cjs/ds-segment-item.cjs.entry.js +5 -5
- package/dist/cjs/ds-segment.cjs.entry.js +21 -15
- package/dist/cjs/ds-select-optgroup.cjs.entry.js +5 -5
- package/dist/cjs/ds-select-option.cjs.entry.js +5 -5
- package/dist/cjs/ds-select.cjs.entry.js +18 -13
- package/dist/cjs/ds-shape.cjs.entry.js +5 -5
- package/dist/cjs/ds-snackbar.cjs.entry.js +14 -14
- package/dist/cjs/ds-step-panel.cjs.entry.js +6 -6
- package/dist/cjs/ds-step.cjs.entry.js +5 -5
- package/dist/cjs/ds-steps.cjs.entry.js +6 -6
- package/dist/cjs/ds-tab-panel.cjs.entry.js +6 -6
- package/dist/cjs/ds-tab.cjs.entry.js +5 -5
- package/dist/cjs/ds-tabs.cjs.entry.js +12 -12
- package/dist/cjs/ds-tag-group.cjs.entry.js +3 -3
- package/dist/cjs/ds-tag.cjs.entry.js +9 -9
- package/dist/cjs/ds-text.cjs.entry.js +10 -10
- package/dist/cjs/ds-textarea.cjs.entry.js +19 -10
- package/dist/cjs/ds-toast.cjs.entry.js +12 -12
- package/dist/cjs/ds-toggle.cjs.entry.js +7 -7
- package/dist/cjs/ds-tooltip.cjs.entry.js +5 -5
- package/dist/cjs/{field.util-L-DkeMVk.js → field.util-C7hgA41e.js} +32 -2
- package/dist/cjs/{focus-D3VVgpM7.js → focus-CHzvkERd.js} +1 -1
- package/dist/cjs/{form-control-CtMcJUuC.js → form-control-CmRONWa7.js} +1 -1
- package/dist/cjs/{has-value-DK0oRqXI.js → has-value-3s9rhB3K.js} +1 -1
- package/dist/cjs/{heading.interfaces-B5NJ2yjL.js → heading.interfaces-CAc5LNKb.js} +2 -3
- package/dist/cjs/{index-sC3JnTlJ.js → index-DD7qcaNz.js} +80 -1
- package/dist/cjs/index.cjs.js +7 -7
- 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/{listener-BwB_xent.js → listener-CAzIWSXQ.js} +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{one-of-BZGRIMtQ.js → one-of-xdIxH9e7.js} +1 -1
- package/dist/cjs/{required-COz3Unzu.js → required-Dh6TQNa1.js} +1 -1
- package/dist/cjs/{resize.decorator-DWM_fQgv.js → resize.decorator-C53-TjuS.js} +2 -2
- package/dist/cjs/{scroll-CUuEh4xd.js → scroll-BOeiw1-E.js} +1 -1
- package/dist/cjs/{svg-D9RbiR8R.js → svg-B9eUbG7a.js} +96 -33
- package/dist/cjs/{tslib.es6-CxyosZMg.js → tslib.es6-DMgN1vwG.js} +1 -1
- package/dist/cjs/{type-hmc4CJcO.js → type-BcP2cAG-.js} +1 -1
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/accordion/accordion.host.css +1 -1
- package/dist/collection/components/alert/snackbar/snackbar.host.css +1 -1
- package/dist/collection/components/alert/toast/toast.host.css +1 -1
- package/dist/collection/components/app/app.js +30 -3
- package/dist/collection/components/badge/badge.host.css +1 -1
- package/dist/collection/components/badge/badge.interfaces.js +3 -3
- package/dist/collection/components/badge/badge.js +20 -42
- package/dist/collection/components/button/button.interfaces.js +0 -1
- package/dist/collection/components/button/button.js +1 -1
- package/dist/collection/components/card/card-content/card-content.host.css +1 -1
- package/dist/collection/components/card/card-subtitle/card-subtitle.js +6 -11
- package/dist/collection/components/card/card-title/card-title.js +4 -11
- package/dist/collection/components/card/card.host.css +1 -1
- package/dist/collection/components/card/card.js +10 -9
- package/dist/collection/components/checkbox/checkbox-group/checkbox-group.js +54 -8
- package/dist/collection/components/checkbox/checkbox.host.css +1 -1
- package/dist/collection/components/checkbox/checkbox.js +31 -2
- package/dist/collection/components/checkbox/test/checkbox.visual.play.js +4 -0
- package/dist/collection/components/close/close.host.css +1 -1
- package/dist/collection/components/close/close.interfaces.js +1 -1
- package/dist/collection/components/close/close.js +14 -16
- package/dist/collection/components/content/content.host.css +1 -1
- package/dist/collection/components/content/content.interfaces.js +2 -3
- package/dist/collection/components/content/content.js +21 -60
- package/dist/collection/components/date/date.js +12 -4
- package/dist/collection/components/date/test/date.visual.play.js +1 -0
- package/dist/collection/components/file-upload/file-upload.js +13 -4
- package/dist/collection/components/file-upload/test/file-upload.visual.play.js +10 -1
- package/dist/collection/components/heading/heading.host.css +1 -1
- package/dist/collection/components/heading/heading.interfaces.js +2 -3
- package/dist/collection/components/heading/heading.js +25 -45
- package/dist/collection/components/input/field.util.js +1 -1
- package/dist/collection/components/input/input.js +14 -3
- package/dist/collection/components/input/test/input.visual.play.js +2 -1
- 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 +970 -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 +28 -0
- package/dist/collection/components/label/label.host.css +1 -1
- package/dist/collection/components/label/label.js +2 -2
- package/dist/collection/components/list/item/item.host.css +1 -1
- package/dist/collection/components/list/list.js +1 -1
- package/dist/collection/components/logo/logo.js +2 -2
- package/dist/collection/components/modal/modal-body/modal-body.js +1 -1
- package/dist/collection/components/modal/modal-header/modal-header.js +1 -1
- package/dist/collection/components/modal/modal.js +2 -2
- package/dist/collection/components/navbar/navbar.js +3 -3
- package/dist/collection/components/notification/notification.host.css +1 -1
- package/dist/collection/components/notification/notification.js +3 -3
- package/dist/collection/components/number-input/number-input.js +13 -2
- package/dist/collection/components/number-input/test/number-input.visual.play.js +1 -1
- package/dist/collection/components/pagination/pagination.js +5 -5
- package/dist/collection/components/popup/popup.js +1 -1
- package/dist/collection/components/progress-bar/progress-bar.js +2 -2
- package/dist/collection/components/radio/radio-group/radio-group.js +54 -8
- package/dist/collection/components/radio/radio.host.css +1 -1
- package/dist/collection/components/radio/radio.js +31 -2
- package/dist/collection/components/radio/test/radio.visual.play.js +4 -0
- package/dist/collection/components/segment/segment/segment.js +15 -7
- package/dist/collection/components/segment/segment-item.js +1 -1
- package/dist/collection/components/segment/test/segment.visual.play.js +1 -0
- package/dist/collection/components/select/select-optgroup.js +1 -1
- package/dist/collection/components/select/select-option.js +1 -1
- package/dist/collection/components/select/select.host.css +1 -1
- package/dist/collection/components/select/select.js +11 -4
- package/dist/collection/components/select/test/select.visual.play.js +2 -2
- package/dist/collection/components/shape/shape.js +1 -1
- package/dist/collection/components/spinner/spinner.host.css +1 -1
- package/dist/collection/components/spinner/spinner.interfaces.js +1 -1
- package/dist/collection/components/spinner/spinner.js +12 -16
- package/dist/collection/components/stack/stack.host.css +1 -1
- package/dist/collection/components/stack/stack.interfaces.js +1 -2
- package/dist/collection/components/stack/stack.js +13 -33
- package/dist/collection/components/steps/step-panel/step-panel.js +1 -1
- package/dist/collection/components/tabs/tab-panel/tab-panel.js +1 -1
- package/dist/collection/components/tabs/tabs/tabs.js +4 -4
- package/dist/collection/components/tag/tag-group/tag-group.js +1 -1
- package/dist/collection/components/tag/tag.host.css +1 -1
- package/dist/collection/components/tag/tag.js +2 -2
- package/dist/collection/components/text/text.host.css +1 -1
- package/dist/collection/components/text/text.js +3 -3
- package/dist/collection/components/textarea/test/textarea.visual.play.js +2 -2
- package/dist/collection/components/textarea/textarea.js +13 -2
- package/dist/collection/components/toggle/toggle.js +2 -2
- package/dist/collection/components/tooltip/tooltip.js +1 -1
- package/dist/collection/global/constants/tags.constant.js +1 -0
- package/dist/collection/global/constants/version.constant.js +1 -1
- package/dist/collection/global/global.js +2 -0
- package/dist/collection/global/token-preview.js +75 -0
- package/dist/collection/global/token-preview.types.js +1 -0
- package/dist/collection/utils/index.js +1 -0
- package/dist/collection/utils/invalid-text-slot.js +31 -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-5d17209d91.entry.js → p-001b20140b.entry.js} +1 -1
- package/dist/design-system/p-0c031d8d90.entry.js +4 -0
- package/dist/design-system/p-0c18812daa.entry.js +4 -0
- package/dist/design-system/p-19e0638e5c.entry.js +4 -0
- package/dist/design-system/{p-10c136d00d.entry.js → p-1dc3406415.entry.js} +1 -1
- package/dist/design-system/{p-53dda5d400.entry.js → p-200a0ea72c.entry.js} +1 -1
- package/dist/design-system/p-2516721737.entry.js +4 -0
- package/dist/design-system/p-2a67e9b4eb.entry.js +4 -0
- package/dist/design-system/p-2cc9740eb6.entry.js +4 -0
- package/dist/design-system/p-33165c2b03.entry.js +4 -0
- package/dist/design-system/p-37295c3a5d.entry.js +4 -0
- package/dist/design-system/p-3d1f15112e.entry.js +4 -0
- package/dist/design-system/p-3de8e2b6c9.entry.js +4 -0
- package/dist/design-system/{p-774b89ed0b.entry.js → p-4042b35fee.entry.js} +1 -1
- package/dist/design-system/{p-afd8bbe699.entry.js → p-40b3d4d0f9.entry.js} +1 -1
- package/dist/design-system/{p-f0119fe693.entry.js → p-45af50a69f.entry.js} +1 -1
- package/dist/design-system/p-4df80c06f8.entry.js +4 -0
- package/dist/design-system/p-4f12c6449d.entry.js +4 -0
- package/dist/design-system/p-4f95f06b86.entry.js +4 -0
- package/dist/design-system/{p-c37f266740.entry.js → p-662983c8bd.entry.js} +1 -1
- package/dist/design-system/p-68693c06a1.entry.js +4 -0
- package/dist/design-system/{p-7c353652a9.entry.js → p-69784a200e.entry.js} +1 -1
- package/dist/design-system/{p-BhdSNuGP.js → p-6Iq8BM7N.js} +1 -1
- package/dist/design-system/p-6ba71ce374.entry.js +4 -0
- package/dist/design-system/{p-13d1ce3158.entry.js → p-72c08ce551.entry.js} +1 -1
- package/dist/design-system/p-72fe1ab876.entry.js +4 -0
- package/dist/design-system/p-73b26207bf.entry.js +4 -0
- package/dist/design-system/{p-4e6638d14e.entry.js → p-7576fb01bf.entry.js} +1 -1
- package/dist/design-system/p-819d71abe1.entry.js +4 -0
- package/dist/design-system/p-88682a66d5.entry.js +4 -0
- package/dist/design-system/{p-6ef31a3c07.entry.js → p-8a7c2f5b0a.entry.js} +1 -1
- package/dist/design-system/{p-0bd2ce2da3.entry.js → p-8bfcfd7b07.entry.js} +1 -1
- package/dist/design-system/p-9537ebc880.entry.js +4 -0
- package/dist/design-system/{p-e7472337ed.entry.js → p-96d37205c9.entry.js} +1 -1
- package/dist/design-system/{p-0663d7c0f1.entry.js → p-97ad0e648a.entry.js} +1 -1
- package/dist/design-system/p-9e0f190f06.entry.js +4 -0
- package/dist/design-system/p-9f746ea4e3.entry.js +4 -0
- package/dist/design-system/{p-B1e0kNRJ.js → p-B2dqoehY.js} +2 -2
- package/dist/design-system/p-B8PCdo6e.js +4 -0
- package/dist/design-system/p-B9ddSbbe.js +4 -0
- package/dist/design-system/p-BDcIydUK.js +4 -0
- package/dist/design-system/p-BdLq-Ecc.js +4 -0
- package/dist/design-system/{p-HwbqEzpk.js → p-BjaiDrCD.js} +1 -1
- package/dist/design-system/{p-CvTcEsXg.js → p-BnJgNfen.js} +1 -1
- package/dist/design-system/{p-78NZc8PM.js → p-Bnpwi9iD.js} +1 -1
- package/dist/design-system/p-C6AmBSV7.js +4 -0
- package/dist/design-system/{p-hLAmwHiq.js → p-CBGYLNZZ.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-BkTv_bQR.js → p-CR2JnhVY.js} +1 -1
- package/dist/design-system/{p-Dm2lqE3-.js → p-ClSAXeZN.js} +1 -1
- package/dist/design-system/p-CziF75uh.js +4 -0
- package/dist/design-system/p-D-_px2sY.js +5 -0
- package/dist/design-system/{p-ij4OEkzJ.js → p-DNQg2PVW.js} +1 -1
- package/dist/design-system/p-DQGbRzw_.js +4 -0
- package/dist/design-system/{p-LCY5n5tq.js → p-DWdcUUdS.js} +1 -1
- package/dist/design-system/{p-C7i6xLTJ.js → p-DuKlHFAK.js} +1 -1
- package/dist/design-system/p-MUUOiuTm.js +5 -0
- package/dist/design-system/{p-BvEM6oCl.js → p-_Ywzmi-B.js} +1 -1
- package/dist/design-system/{p-DgVaaZT_.js → p-_rk5qARQ.js} +1 -1
- package/dist/design-system/{p-8406f6faf1.entry.js → p-a343b84e8a.entry.js} +1 -1
- package/dist/design-system/p-a3ed278181.entry.js +4 -0
- package/dist/design-system/{p-650289138a.entry.js → p-a71c22bc50.entry.js} +1 -1
- package/dist/design-system/{p-DTxLRTYr.js → p-aPnyJLhr.js} +1 -1
- package/dist/design-system/{p-f4958b9e97.entry.js → p-abcc8edf7e.entry.js} +1 -1
- package/dist/design-system/{p-372bf379f9.entry.js → p-ac55e3783c.entry.js} +1 -1
- package/dist/design-system/{p-7e702193fc.entry.js → p-ac7f3f89be.entry.js} +1 -1
- package/dist/design-system/{p-3134821ac6.entry.js → p-ae8753bf2a.entry.js} +1 -1
- package/dist/design-system/{p-60d29d8b8e.entry.js → p-afea3755c2.entry.js} +1 -1
- package/dist/design-system/{p-dcb749efc7.entry.js → p-bd31b396d8.entry.js} +1 -1
- package/dist/design-system/p-bd740897a1.entry.js +4 -0
- package/dist/design-system/{p-d5f8d8f5e1.entry.js → p-bf03129378.entry.js} +1 -1
- package/dist/design-system/p-bfd0557b47.entry.js +4 -0
- package/dist/design-system/{p-01430d5c28.entry.js → p-c07aa25e4d.entry.js} +1 -1
- package/dist/design-system/p-c19c74c2b1.entry.js +4 -0
- package/dist/design-system/{p-dd38f8f206.entry.js → p-d5d7700fd3.entry.js} +1 -1
- package/dist/design-system/p-d727654ec3.entry.js +4 -0
- package/dist/design-system/{p-a465c1acce.entry.js → p-dadd7a84bc.entry.js} +1 -1
- package/dist/design-system/p-dd5e815ef3.entry.js +4 -0
- package/dist/design-system/p-dfebad2acc.entry.js +4 -0
- package/{components/p-D9YYP2SG.js → dist/design-system/p-dziB1ufg.js} +1 -1
- package/dist/design-system/p-e16572468e.entry.js +4 -0
- package/dist/design-system/p-e23b6d59c0.entry.js +4 -0
- package/dist/design-system/p-e743fa4c17.entry.js +4 -0
- package/dist/design-system/p-e94b66c13e.entry.js +4 -0
- package/dist/design-system/{p-a8de98dd7b.entry.js → p-ec3f2ded29.entry.js} +1 -1
- package/dist/design-system/p-ed3f364d1f.entry.js +4 -0
- package/dist/design-system/{p-a62b7985a0.entry.js → p-eedaf7fe85.entry.js} +1 -1
- package/dist/design-system/p-ef1bf78788.entry.js +4 -0
- package/dist/design-system/{p-9f2dd0b55b.entry.js → p-f0b0376beb.entry.js} +1 -1
- package/dist/design-system/p-f7787fca37.entry.js +4 -0
- package/dist/design-system/p-fd868dc1f5.entry.js +4 -0
- package/dist/esm/{_getTag-DFxL3s3h.js → _getTag-BkweuRJc.js} +1 -1
- package/dist/esm/{array-dJH4dfMr.js → array-BJZA868l.js} +3 -2
- package/dist/esm/{breakpoints.decorator-DZ0xN4Np.js → breakpoints.decorator-CIweMjJQ.js} +1 -1
- package/dist/esm/{breakpoints.subject-BNnXcKMw.js → breakpoints.subject-CUVOWezN.js} +3 -3
- package/dist/esm/{button.interfaces-BPGfTrrM.js → button.interfaces-C6AmBSV7.js} +0 -1
- package/dist/esm/{config.decorator-ZQ0_Zx5y.js → config.decorator-CyvsD1EY.js} +1 -1
- package/dist/esm/{config.utils-D9o7rffC.js → config.utils-Db2OSTX3.js} +1 -1
- package/dist/esm/{create-validator-decorator-DovxquEu.js → create-validator-decorator-g9TfAa1g.js} +1 -1
- package/dist/esm/design-system.js +3 -3
- package/dist/esm/{device-CRuIJzXR.js → device-CtidwsPr.js} +1 -1
- package/dist/esm/ds-accordion.entry.js +9 -9
- package/dist/esm/ds-alert-container.entry.js +6 -6
- package/dist/esm/ds-app.entry.js +35 -8
- package/dist/esm/ds-badge.entry.js +20 -39
- package/dist/esm/ds-button-group.entry.js +7 -7
- package/dist/esm/ds-button_2.entry.js +20 -20
- package/dist/esm/ds-card-actions.entry.js +4 -4
- package/dist/esm/ds-card-content.entry.js +3 -3
- package/dist/esm/ds-card-header.entry.js +5 -5
- package/dist/esm/ds-card-subtitle.entry.js +10 -14
- package/dist/esm/ds-card-title.entry.js +8 -14
- package/dist/esm/ds-card.entry.js +14 -13
- package/dist/esm/ds-carousel-item.entry.js +6 -6
- package/dist/esm/ds-carousel.entry.js +8 -8
- package/dist/esm/ds-checkbox-group.entry.js +44 -19
- package/dist/esm/ds-checkbox.entry.js +19 -10
- package/dist/esm/ds-content_2.entry.js +18 -68
- package/dist/esm/ds-data-item.entry.js +6 -6
- package/dist/esm/ds-data-label.entry.js +4 -4
- package/dist/esm/ds-data-value.entry.js +2 -2
- package/dist/esm/ds-data.entry.js +4 -4
- package/dist/esm/ds-date.entry.js +18 -12
- package/dist/esm/ds-divider_2.entry.js +14 -14
- package/dist/esm/ds-drawer_2.entry.js +10 -10
- package/dist/esm/ds-file-upload.entry.js +22 -14
- package/dist/esm/ds-footer.entry.js +7 -7
- package/dist/esm/ds-heading.entry.js +21 -37
- package/dist/esm/ds-hint-text.entry.js +2 -2
- package/dist/esm/ds-hint-title.entry.js +2 -2
- package/dist/esm/ds-hint.entry.js +11 -11
- package/dist/esm/ds-icon_2.entry.js +21 -24
- package/dist/esm/ds-input-slider.entry.js +2890 -0
- package/dist/esm/ds-input.entry.js +20 -11
- package/dist/esm/ds-item.entry.js +7 -7
- package/dist/esm/ds-label.entry.js +11 -11
- package/dist/esm/ds-list.entry.js +5 -5
- package/dist/esm/ds-modal-body.entry.js +3 -3
- package/dist/esm/ds-modal-header.entry.js +3 -3
- package/dist/esm/ds-modal.entry.js +9 -9
- package/dist/esm/ds-navbar.entry.js +17 -17
- package/dist/esm/ds-notification.entry.js +11 -11
- package/dist/esm/ds-number-input.entry.js +24 -110
- package/dist/esm/ds-pagination.entry.js +17 -17
- package/dist/esm/ds-progress-bar.entry.js +14 -14
- package/dist/esm/ds-radio-group.entry.js +39 -15
- package/dist/esm/ds-radio.entry.js +19 -10
- package/dist/esm/ds-segment-item.entry.js +5 -5
- package/dist/esm/ds-segment.entry.js +21 -15
- package/dist/esm/ds-select-optgroup.entry.js +5 -5
- package/dist/esm/ds-select-option.entry.js +5 -5
- package/dist/esm/ds-select.entry.js +18 -13
- package/dist/esm/ds-shape.entry.js +5 -5
- package/dist/esm/ds-snackbar.entry.js +14 -14
- package/dist/esm/ds-step-panel.entry.js +6 -6
- package/dist/esm/ds-step.entry.js +5 -5
- package/dist/esm/ds-steps.entry.js +6 -6
- package/dist/esm/ds-tab-panel.entry.js +6 -6
- package/dist/esm/ds-tab.entry.js +5 -5
- package/dist/esm/ds-tabs.entry.js +12 -12
- package/dist/esm/ds-tag-group.entry.js +3 -3
- package/dist/esm/ds-tag.entry.js +9 -9
- package/dist/esm/ds-text.entry.js +10 -10
- package/dist/esm/ds-textarea.entry.js +19 -10
- package/dist/esm/ds-toast.entry.js +12 -12
- package/dist/esm/ds-toggle.entry.js +7 -7
- package/dist/esm/ds-tooltip.entry.js +5 -5
- package/dist/esm/{field.util-BjZzAi09.js → field.util-Dl02gvlr.js} +32 -3
- package/dist/esm/{focus-ZxHImoOj.js → focus-C1_jVoAm.js} +1 -1
- package/dist/esm/{form-control-DvJo0GKN.js → form-control-BAP86QSm.js} +1 -1
- package/dist/esm/{has-value-DU9L2JaI.js → has-value-CADjf9QZ.js} +1 -1
- package/dist/esm/{heading.interfaces-Ceu7FIWM.js → heading.interfaces-BdLq-Ecc.js} +2 -3
- package/dist/esm/{index-C6MVahkC.js → index-MUUOiuTm.js} +80 -1
- package/dist/esm/index.js +10 -10
- 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/{listener-DHP2OPMZ.js → listener-DiVrGAqj.js} +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{one-of-CKPv0Nqm.js → one-of-rLykP5eX.js} +1 -1
- package/dist/esm/{required-Dqsbx5fH.js → required-BsfIY-qW.js} +1 -1
- package/dist/esm/{resize.decorator-B8h8D676.js → resize.decorator-BNy5tJCt.js} +2 -2
- package/dist/esm/{scroll-CsH7NHo5.js → scroll-D4cC-Fsr.js} +1 -1
- package/dist/esm/{svg-B8KVoKrH.js → svg-D-_px2sY.js} +96 -33
- package/dist/esm/{tslib.es6-C9GKXw-5.js → tslib.es6-C7vR-gMn.js} +1 -1
- package/dist/esm/{type-DzkhLOG_.js → type-Bqge296W.js} +1 -1
- package/dist/types/components/app/app.d.ts +23 -0
- package/dist/types/components/badge/badge.d.ts +12 -4
- package/dist/types/components/badge/badge.interfaces.d.ts +3 -3
- package/dist/types/components/button/button.interfaces.d.ts +1 -1
- package/dist/types/components/card/card-subtitle/card-subtitle.d.ts +1 -1
- package/dist/types/components/card/card-title/card-title.d.ts +1 -1
- package/dist/types/components/card/card.d.ts +1 -1
- package/dist/types/components/checkbox/checkbox-group/checkbox-group.d.ts +10 -0
- package/dist/types/components/checkbox/checkbox.d.ts +4 -0
- package/dist/types/components/close/close.d.ts +14 -2
- package/dist/types/components/close/close.interfaces.d.ts +1 -1
- package/dist/types/components/content/content.d.ts +6 -6
- package/dist/types/components/content/content.interfaces.d.ts +3 -3
- package/dist/types/components/date/date.d.ts +3 -0
- package/dist/types/components/file-upload/file-upload.d.ts +3 -0
- package/dist/types/components/heading/heading.d.ts +10 -10
- package/dist/types/components/heading/heading.interfaces.d.ts +3 -3
- package/dist/types/components/input/input.d.ts +4 -0
- package/dist/types/components/input-slider/input-slider.d.ts +189 -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/number-input/number-input.d.ts +4 -0
- package/dist/types/components/radio/radio-group/radio-group.d.ts +10 -0
- package/dist/types/components/radio/radio.d.ts +4 -0
- package/dist/types/components/segment/segment/segment.d.ts +3 -0
- package/dist/types/components/select/select.d.ts +3 -0
- package/dist/types/components/spinner/spinner.d.ts +8 -7
- package/dist/types/components/spinner/spinner.interfaces.d.ts +1 -1
- package/dist/types/components/stack/stack.d.ts +3 -3
- package/dist/types/components/stack/stack.interfaces.d.ts +2 -2
- package/dist/types/components/textarea/textarea.d.ts +4 -0
- package/dist/types/components.d.ts +334 -70
- package/dist/types/global/token-preview.d.ts +8 -0
- package/dist/types/global/token-preview.types.d.ts +20 -0
- package/dist/types/home/runner/work/design-system/design-system/packages/core/.stencil/packages/playwright/src/lib/components/index.d.ts +1 -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/utils/index.d.ts +1 -0
- package/dist/types/utils/invalid-text-slot.d.ts +9 -0
- package/docs/cem.json +792 -211
- package/docs/components.json +2434 -1559
- package/docs/html.html-data.json +124 -1
- package/docs/tags.json +1 -0
- package/docs/visual-pages.json +51 -0
- package/package.json +10 -9
- package/sbom.cdx.json +41369 -18745
- package/components/p-B1gnrQ9b.js +0 -4
- package/components/p-CA7G72wZ.js +0 -4
- package/components/p-CYWn3X22.js +0 -4
- package/components/p-Ceu7FIWM.js +0 -4
- package/components/p-Ctnm_MBD.js +0 -4
- package/components/p-DQBzmbR6.js +0 -4
- package/components/p-DsvYY32v.js +0 -4
- package/components/p-Du7QOHtz.js +0 -5
- package/components/p-FBQaJyH0.js +0 -4
- package/dist/design-system/p-014d464627.entry.js +0 -4
- package/dist/design-system/p-0ff0be5b83.entry.js +0 -4
- package/dist/design-system/p-11f34d0c7d.entry.js +0 -4
- package/dist/design-system/p-163d606781.entry.js +0 -4
- package/dist/design-system/p-1VXOIrN2.js +0 -4
- package/dist/design-system/p-202ecb8f01.entry.js +0 -4
- package/dist/design-system/p-27d181c5ac.entry.js +0 -4
- package/dist/design-system/p-2a35e0b9b0.entry.js +0 -4
- package/dist/design-system/p-2f51e1d39b.entry.js +0 -4
- package/dist/design-system/p-3292ae6a05.entry.js +0 -4
- package/dist/design-system/p-3895178b39.entry.js +0 -4
- package/dist/design-system/p-3c6b7a2967.entry.js +0 -4
- package/dist/design-system/p-3ef4bd1c59.entry.js +0 -4
- package/dist/design-system/p-493b18cc46.entry.js +0 -4
- package/dist/design-system/p-4a99464dae.entry.js +0 -4
- package/dist/design-system/p-5e51fa8df4.entry.js +0 -4
- package/dist/design-system/p-62cb503015.entry.js +0 -4
- package/dist/design-system/p-65c221261c.entry.js +0 -4
- package/dist/design-system/p-68c9f4f630.entry.js +0 -4
- package/dist/design-system/p-68ebed7eee.entry.js +0 -4
- package/dist/design-system/p-6b6531379b.entry.js +0 -4
- package/dist/design-system/p-6d168ba9ad.entry.js +0 -4
- package/dist/design-system/p-787bd92bcc.entry.js +0 -4
- package/dist/design-system/p-7c8bf0f33e.entry.js +0 -4
- package/dist/design-system/p-8353961d39.entry.js +0 -4
- package/dist/design-system/p-B8KVoKrH.js +0 -5
- package/dist/design-system/p-BLGVE-7Z.js +0 -4
- package/dist/design-system/p-BPGfTrrM.js +0 -4
- package/dist/design-system/p-C6MVahkC.js +0 -5
- package/dist/design-system/p-Ceu7FIWM.js +0 -4
- package/dist/design-system/p-CwCAiaMq.js +0 -4
- package/dist/design-system/p-DHeVI6dR.js +0 -4
- package/dist/design-system/p-ad2b17b0a0.entry.js +0 -4
- package/dist/design-system/p-b68bc14064.entry.js +0 -4
- package/dist/design-system/p-b955a93959.entry.js +0 -4
- package/dist/design-system/p-caad93b943.entry.js +0 -4
- package/dist/design-system/p-cca79bfeb1.entry.js +0 -4
- package/dist/design-system/p-ddf2a7dfee.entry.js +0 -4
- package/dist/design-system/p-df5899b930.entry.js +0 -4
- package/dist/design-system/p-e85c92ca1a.entry.js +0 -4
- package/dist/design-system/p-f62643c33d.entry.js +0 -4
- package/dist/design-system/p-fa9568abce.entry.js +0 -4
- package/dist/design-system/p-fcd98f22b7.entry.js +0 -4
- package/dist/design-system/p-feeef4a8cb.entry.js +0 -4
- package/dist/design-system/p-tl_BegdE.js +0 -4
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* (C) Helvetia Design System https://design.baloise.dev/ - Apache License 2.0
|
|
3
3
|
*/
|
|
4
|
-
import { B as registerInstance, E as h, F as Host, G as getElement, L as rOnLoad } from './index-
|
|
5
|
-
import { _ as __decorate, L as Logger, a as __metadata } from './tslib.es6-
|
|
6
|
-
import { h as hasValue } from './has-value-
|
|
4
|
+
import { B as registerInstance, E as h, F as Host, G as getElement, L as rOnLoad } from './index-MUUOiuTm.js';
|
|
5
|
+
import { _ as __decorate, L as Logger, a as __metadata } from './tslib.es6-C7vR-gMn.js';
|
|
6
|
+
import { h as hasValue } from './has-value-CADjf9QZ.js';
|
|
7
7
|
import { n as normalizeDeprecatedTShirtSize } from './t-shirt-DR5LIaCn.js';
|
|
8
|
-
import { O as OneOf } from './one-of-
|
|
9
|
-
import { T as Type } from './type-
|
|
10
|
-
import { d as dsBreakpoints } from './breakpoints.subject-
|
|
11
|
-
import { L as ListenToBreakpoints } from './breakpoints.decorator-
|
|
12
|
-
import { L as ListenToConfig } from './config.decorator-
|
|
13
|
-
import './create-validator-decorator-
|
|
14
|
-
import './listener-
|
|
15
|
-
import './device-
|
|
16
|
-
import './config.utils-
|
|
8
|
+
import { O as OneOf } from './one-of-rLykP5eX.js';
|
|
9
|
+
import { T as Type } from './type-Bqge296W.js';
|
|
10
|
+
import { d as dsBreakpoints } from './breakpoints.subject-CUVOWezN.js';
|
|
11
|
+
import { L as ListenToBreakpoints } from './breakpoints.decorator-CIweMjJQ.js';
|
|
12
|
+
import { L as ListenToConfig } from './config.decorator-CyvsD1EY.js';
|
|
13
|
+
import './create-validator-decorator-g9TfAa1g.js';
|
|
14
|
+
import './listener-DiVrGAqj.js';
|
|
15
|
+
import './device-CtidwsPr.js';
|
|
16
|
+
import './config.utils-Db2OSTX3.js';
|
|
17
17
|
|
|
18
18
|
const DIVIDER_LAYOUTS = ['horizontal', 'vertical', ''];
|
|
19
19
|
const DIVIDER_COLORS = [
|
|
@@ -268,12 +268,12 @@ const Logo = class {
|
|
|
268
268
|
render() {
|
|
269
269
|
const size = normalizeDeprecatedTShirtSize(this.size) || '';
|
|
270
270
|
const LogoElement = this.brand === 'helvetia' || (this.brand === '' && this.configBrand === 'helvetia') ? (h(LogoHelvetia, { onlyText: this.animated, height: this.getHeight() })) : (h(LogoBaloise, { onlyText: this.animated, height: this.getHeight() }));
|
|
271
|
-
return (h(Host, { key: '
|
|
271
|
+
return (h(Host, { key: '49c188a3abc26836396e1b81abcc1afde8f27b80', class: {
|
|
272
272
|
'is-animated': this.isAnimated,
|
|
273
273
|
'is-white': this.color === 'white',
|
|
274
274
|
'is-sm': size === 'sm',
|
|
275
275
|
'is-lg': size === 'lg',
|
|
276
|
-
} }, h("div", { key: '
|
|
276
|
+
} }, h("div", { key: 'b7658409d4580d88a45744c608790b76fa21983e', id: "animated", part: "animated", ref: el => (this.animatedLogoElement = el), "aria-hidden": "true", style: {
|
|
277
277
|
display: this.isAnimated ? 'block' : 'none',
|
|
278
278
|
width: this.getHeight() + 'px',
|
|
279
279
|
height: this.getHeight() + 'px',
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* (C) Helvetia Design System https://design.baloise.dev/ - Apache License 2.0
|
|
3
3
|
*/
|
|
4
|
-
import { B as registerInstance, I as createEvent, w as wait, E as h, F as Host, G as getElement, d as dsBrowser } from './index-
|
|
5
|
-
import { _ as __decorate, L as Logger, a as __metadata } from './tslib.es6-
|
|
6
|
-
import { S as ScrollHandler } from './scroll-
|
|
7
|
-
import { T as Type } from './type-
|
|
8
|
-
import { O as OneOf } from './one-of-
|
|
9
|
-
import { L as ListenToConfig } from './config.decorator-
|
|
4
|
+
import { B as registerInstance, I as createEvent, w as wait, E as h, F as Host, G as getElement, d as dsBrowser } from './index-MUUOiuTm.js';
|
|
5
|
+
import { _ as __decorate, L as Logger, a as __metadata } from './tslib.es6-C7vR-gMn.js';
|
|
6
|
+
import { S as ScrollHandler } from './scroll-D4cC-Fsr.js';
|
|
7
|
+
import { T as Type } from './type-Bqge296W.js';
|
|
8
|
+
import { O as OneOf } from './one-of-rLykP5eX.js';
|
|
9
|
+
import { L as ListenToConfig } from './config.decorator-CyvsD1EY.js';
|
|
10
10
|
import { a as autoUpdate, c as computePosition, s as shift, f as flip, o as offset, b as arrow } from './floating-ui.dom-BqY0KzJC.js';
|
|
11
|
-
import { F as FocusHandler } from './focus-
|
|
11
|
+
import { F as FocusHandler } from './focus-C1_jVoAm.js';
|
|
12
12
|
import { i as isEscapeKey } from './keyboard-Uy_dVz21.js';
|
|
13
13
|
import { P as POPUP_PLACEMENTS, a as POPUP_ROLES } from './popup.interfaces-BAY6Z8bT.js';
|
|
14
|
-
import './create-validator-decorator-
|
|
15
|
-
import './config.utils-
|
|
14
|
+
import './create-validator-decorator-g9TfAa1g.js';
|
|
15
|
+
import './config.utils-Db2OSTX3.js';
|
|
16
16
|
|
|
17
17
|
const DRAWER_CONTAINERS = ['default', 'fluid', 'compact'];
|
|
18
18
|
|
|
@@ -526,7 +526,7 @@ const Popup = class {
|
|
|
526
526
|
* ------------------------------------------------------
|
|
527
527
|
*/
|
|
528
528
|
render() {
|
|
529
|
-
return (h(Host, { key: '
|
|
529
|
+
return (h(Host, { key: '63b4cf37af2e73b271f9c7fee523e7c68986081f', class: { 'is-open': this.isOpen, 'is-animated': this.animated, 'is-closable': this.closable } }, this.backdrop && h("div", { key: '208a95330c83c4dd2328ce9e87a06b7aab7ab404', part: "backdrop" }), h("div", { key: '969fde6073490ce0803c0cadcaa9ec06a7704361', part: "panel", ref: el => (this.panelEl = el), role: this.role, "aria-modal": this.role === 'dialog' ? 'true' : undefined, "aria-label": this.label || undefined, tabindex: "-1", "data-testid": "ds-popup-panel" }, this.arrow && h("div", { key: '228d1a47041090c57e395e240f2ebb5678f9c8e1', part: "arrow", ref: el => (this.arrowEl = el) }), this.closable && h("ds-close", { key: 'd18c4ac4848e7ee31256384be4e7e8dd2b8b5a49', part: "close", onClick: this.handleCloseClick }), h("slot", { key: 'ad9430d619bccde71bfeee2faffd1dde34dc43bd' }))));
|
|
530
530
|
}
|
|
531
531
|
get el() { return getElement(this); }
|
|
532
532
|
static get watchers() { return {
|
|
@@ -1,23 +1,24 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* (C) Helvetia Design System https://design.baloise.dev/ - Apache License 2.0
|
|
3
3
|
*/
|
|
4
|
-
import { B as registerInstance, I as createEvent, v as defaultConfig, E as h, G as getElement } from './index-
|
|
5
|
-
import { _ as __decorate, L as Logger, a as __metadata } from './tslib.es6-
|
|
6
|
-
import { a as areArraysEqual } from './array-
|
|
7
|
-
import { s as stopEventBubbling } from './form-control-
|
|
8
|
-
import { F as Field } from './field.util-
|
|
4
|
+
import { B as registerInstance, I as createEvent, v as defaultConfig, E as h, G as getElement } from './index-MUUOiuTm.js';
|
|
5
|
+
import { _ as __decorate, L as Logger, a as __metadata } from './tslib.es6-C7vR-gMn.js';
|
|
6
|
+
import { a as areArraysEqual } from './array-BJZA868l.js';
|
|
7
|
+
import { s as stopEventBubbling } from './form-control-BAP86QSm.js';
|
|
8
|
+
import { w as watchInvalidTextSlot, F as Field } from './field.util-Dl02gvlr.js';
|
|
9
9
|
import { I as INPUT_COLORS } from './input.interfaces-BMM6Nxeh.js';
|
|
10
|
-
import { T as Type } from './type-
|
|
11
|
-
import { O as OneOf } from './one-of-
|
|
12
|
-
import { L as ListenToConfig } from './config.decorator-
|
|
10
|
+
import { T as Type } from './type-Bqge296W.js';
|
|
11
|
+
import { O as OneOf } from './one-of-rLykP5eX.js';
|
|
12
|
+
import { L as ListenToConfig } from './config.decorator-CyvsD1EY.js';
|
|
13
13
|
import './_commonjsHelpers-Duhf3ymL.js';
|
|
14
|
-
import './_getTag-
|
|
15
|
-
import './isObjectLike-
|
|
14
|
+
import './_getTag-BkweuRJc.js';
|
|
15
|
+
import './isObjectLike-BnBXjF_n.js';
|
|
16
|
+
import './isArray-B8PCdo6e.js';
|
|
16
17
|
import './isNil--HeEBNs3.js';
|
|
17
18
|
import './aria-DYfTMCkl.js';
|
|
18
19
|
import './label.i18n-C7I7OlaM.js';
|
|
19
|
-
import './create-validator-decorator-
|
|
20
|
-
import './config.utils-
|
|
20
|
+
import './create-validator-decorator-g9TfAa1g.js';
|
|
21
|
+
import './config.utils-Db2OSTX3.js';
|
|
21
22
|
|
|
22
23
|
const toFileArray = (list) => {
|
|
23
24
|
return Array.from(list !== null && list !== void 0 ? list : []);
|
|
@@ -156,6 +157,7 @@ const FileUpload = class {
|
|
|
156
157
|
this.isDragOver = false;
|
|
157
158
|
this.language = defaultConfig.language;
|
|
158
159
|
this.region = defaultConfig.region;
|
|
160
|
+
this.hasInvalidTextSlotContent = false;
|
|
159
161
|
/**
|
|
160
162
|
* PUBLIC PROPERTY API
|
|
161
163
|
* ------------------------------------------------------
|
|
@@ -346,12 +348,17 @@ const FileUpload = class {
|
|
|
346
348
|
}
|
|
347
349
|
connectedCallback() {
|
|
348
350
|
this.initialValue = [...(this.value || [])];
|
|
351
|
+
this.disconnectInvalidTextSlotWatcher = watchInvalidTextSlot(this.el, hasContent => {
|
|
352
|
+
this.hasInvalidTextSlotContent = hasContent;
|
|
353
|
+
});
|
|
349
354
|
}
|
|
350
355
|
componentDidLoad() {
|
|
351
356
|
this.addDragListeners();
|
|
352
357
|
}
|
|
353
358
|
disconnectedCallback() {
|
|
359
|
+
var _a;
|
|
354
360
|
this.removeDragListeners();
|
|
361
|
+
(_a = this.disconnectInvalidTextSlotWatcher) === null || _a === void 0 ? void 0 : _a.call(this);
|
|
355
362
|
}
|
|
356
363
|
/**
|
|
357
364
|
* LISTENERS
|
|
@@ -399,11 +406,12 @@ const FileUpload = class {
|
|
|
399
406
|
const dropZoneLabel = this.dropZoneLabel || i18nDsFileUpload[this.language].dropZoneLabel;
|
|
400
407
|
const selectedFilesLabel = i18nDsFileUpload[this.language].selectedFilesLabel;
|
|
401
408
|
const removeFileLabel = i18nDsFileUpload[this.language].removeFileLabel;
|
|
402
|
-
|
|
409
|
+
const isInvalid = this.invalid || this.hasInvalidTextSlotContent;
|
|
410
|
+
return (h(Field, { key: '264facee2060dc2a63d529c762384c93539994d3', color: this.color, disabled: this.disabled, invalid: isInvalid, label: this.label, description: this.description, invalidText: this.invalidText, required: this.required, language: this.language, inputId: this.fileUploadId }, h("div", { key: '16930c2a8604287d7d4514b0faabb7afabc213f6', id: "drop-zone", part: "drop-zone", ref: el => (this.dropZoneEl = el), class: {
|
|
403
411
|
'file-upload-drop-zone': true,
|
|
404
412
|
'is-dragover': this.isDragOver,
|
|
405
413
|
'is-disabled': isDisabled,
|
|
406
|
-
}, onClick: () => { var _a; return !isDisabled && ((_a = this.nativeInput) === null || _a === void 0 ? void 0 : _a.click()); } }, h("span", { key: '
|
|
414
|
+
}, onClick: () => { var _a; return !isDisabled && ((_a = this.nativeInput) === null || _a === void 0 ? void 0 : _a.click()); } }, h("span", { key: 'daf3fe680737e74fadd0304123b567fb29ddb677', id: "drop-zone-status", role: "status", "aria-live": "polite" }, this.isDragOver ? 'Drop files here' : ''), h("input", { key: 'b47ca36b002f49964c5dbacd01fba6726ac5d1ec', part: "input", ref: el => (this.nativeInput = el), id: this.fileUploadId, type: "file", name: this.name, multiple: this.multiple, disabled: isDisabled, required: this.required, accept: this.accept || undefined, "aria-invalid": isInvalid ? 'true' : 'false', "aria-describedby": "description", onClick: this.handleInputClick, onChange: this.handleInputChange, onFocus: this.handleInputFocus, onBlur: this.handleInputBlur, "data-testid": "ds-file-upload-input" }), h("div", { key: '26354b7f63a925ad4a9d9bf55636a16a53a14d97', id: "drop-zone-content", class: { 'is-disabled': isDisabled } }, h("slot", { key: '56d73b20cbf45122db3dbed32a3fc97b7e622fc1' }, h("div", { key: 'd295ffa0e196e8bd99a743b648c443fe8414f413', id: "drop-zone-placeholder", class: { 'is-disabled': isDisabled } }, !this.loading && h("ds-icon", { key: '6cb31c32f06b44142ff48a0f9a9bb9b088af26e6', name: "upload", size: "lg" }), this.loading && h("ds-spinner", { key: 'c7b165be814544ac85a80c34d260c03a7e416d5e', variation: "circle" }), h("span", { key: 'd9b6c717c0fc6891d53e76e53686ef3e402b3257' }, dropZoneLabel))))), this.hasFileList && this.files.length > 0 && (h("ul", { key: 'a9669c46401067ba400c9080f2907f43e66e7419', id: "file-list", part: "file-list", role: "list", "aria-label": selectedFilesLabel, class: {
|
|
407
415
|
'file-list': true,
|
|
408
416
|
'is-disabled': isDisabled,
|
|
409
417
|
} }, this.files.map((file, index) => (h("li", { id: `file-list-item-${index}`, key: file.name, class: "file-list-item" }, h("ds-stack", { direction: "row", align: "center" }, h("ds-icon", { name: "document", size: "md" }), h("ds-content", { space: "none" }, h("span", { class: "file-name", title: file.name }, file.name), h("span", { class: "file-size" }, formatFileSize(file.size))), h("ds-button", { size: "sm", icon: "trash", square: true, color: "secondary", a11yLabel: `${removeFileLabel} ${file.name}`, disabled: isDisabled, onKeyDown: (ev) => {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* (C) Helvetia Design System https://design.baloise.dev/ - Apache License 2.0
|
|
3
3
|
*/
|
|
4
|
-
import { B as registerInstance, I as createEvent, v as defaultConfig, E as h, F as Host, G as getElement } from './index-
|
|
5
|
-
import { _ as __decorate, L as Logger, a as __metadata } from './tslib.es6-
|
|
4
|
+
import { B as registerInstance, I as createEvent, v as defaultConfig, E as h, F as Host, G as getElement } from './index-MUUOiuTm.js';
|
|
5
|
+
import { _ as __decorate, L as Logger, a as __metadata } from './tslib.es6-C7vR-gMn.js';
|
|
6
6
|
import { i as i18nDsFooter, F as FOOTER_CONTAINERS } from './footer.i18n-BrJFPhMA.js';
|
|
7
|
-
import { O as OneOf } from './one-of-
|
|
8
|
-
import { T as Type } from './type-
|
|
9
|
-
import { L as ListenToConfig } from './config.decorator-
|
|
10
|
-
import './create-validator-decorator-
|
|
11
|
-
import './config.utils-
|
|
7
|
+
import { O as OneOf } from './one-of-rLykP5eX.js';
|
|
8
|
+
import { T as Type } from './type-Bqge296W.js';
|
|
9
|
+
import { L as ListenToConfig } from './config.decorator-CyvsD1EY.js';
|
|
10
|
+
import './create-validator-decorator-g9TfAa1g.js';
|
|
11
|
+
import './config.utils-Db2OSTX3.js';
|
|
12
12
|
|
|
13
13
|
const footerHostCss = () => `:host{--_footer-position:var(--footer-position, var(--mod-footer-position, static));--_footer-top:var(--footer-top, var(--mod-footer-top));--_footer-right:var(--footer-right, var(--mod-footer-right));--_footer-bottom:var(--footer-bottom, var(--mod-footer-bottom));--_footer-left:var(--footer-left, var(--mod-footer-left));position:var(--_footer-position);top:var(--_footer-top);right:var(--_footer-right);bottom:var(--_footer-bottom);left:var(--_footer-left);--_footer-m:var(--footer-m, var(--mod-footer-m, 0));--_footer-my:var(--footer-my, var(--mod-footer-my));--_footer-mx:var(--footer-mx, var(--mod-footer-mx));--_footer-ml:var(--footer-ml, var(--mod-footer-ml));--_footer-mr:var(--footer-mr, var(--mod-footer-mr));--_footer-mt:var(--footer-mt, var(--mod-footer-mt));--_footer-mb:var(--footer-mb, var(--mod-footer-mb));margin:var(--_footer-m);margin-inline:var(--_footer-mx);margin-block:var(--_footer-my);margin-left:var(--_footer-ml);margin-right:var(--_footer-mr);margin-top:var(--_footer-mt);margin-bottom:var(--_footer-mb);--_footer-background:var(--footer-background, var(--mod-footer-background, var(--ds-footer-color-background)));--_footer-color:var(--footer-color, var(--mod-footer-color, var(--ds-footer-color-text)));--_footer-link-color:var(--footer-link-color, var(--mod-footer-link-color, var(--ds-footer-color-link-base)));--_footer-link-color-hover:var(--footer-link-color-hover, var(--mod-footer-link-color-hover, var(--ds-footer-color-link-hover)));--_footer-divider-color:var(--footer-divider-color, var(--mod-footer-divider-color, var(--ds-footer-color-divider)));--_footer-content-max-width:var(--footer-content-max-width, var(--mod-footer-content-max-width, var(--ds-footer-space-content-max-width)));--_footer-padding:var(--footer-padding, var(--mod-footer-padding, var(--ds-footer-space-padding-base)));--_footer-content-padding-top:var(--footer-content-padding-top, var(--mod-footer-content-padding-top, var(--ds-footer-space-content-padding-top)));--_footer-gap-row:var(--footer-gap-row, var(--mod-footer-gap-row, var(--ds-footer-space-gap-row)));--_footer-gap-column:var(--footer-gap-column, var(--mod-footer-gap-column, var(--ds-footer-space-gap-column)));--_footer-language-font-family:var(--footer-language-font-family, var(--mod-footer-language-font-family, var(--ds-footer-typography-language-family)));--_footer-language-font-weight:var(--footer-language-font-weight, var(--mod-footer-language-font-weight, var(--ds-footer-typography-language-weight)));--_footer-language-gap:var(--footer-language-gap, var(--mod-footer-language-gap, var(--ds-footer-space-language-gap)));--_footer-bottom-gap:var(--footer-bottom-gap, var(--mod-footer-bottom-gap, var(--ds-footer-space-bottom-gap)));--_footer-link-gap:var(--footer-link-gap, var(--mod-footer-link-gap, var(--ds-footer-space-link-gap)));--_footer-social-gap:var(--footer-social-gap, var(--mod-footer-social-gap, var(--ds-footer-space-social-gap)));--_footer-font-size:var(--footer-font-size, var(--mod-footer-font-size, var(--ds-footer-typography-font-size)));--_footer-line-height:var(--footer-line-height, var(--mod-footer-line-height, var(--ds-footer-typography-line-height)));--_footer-social-icon-size:var(--footer-social-icon-size, var(--mod-footer-social-icon-size, var(--ds-footer-space-social-icon-size)));--_footer-social-icon-gap:var(--footer-social-icon-gap, var(--mod-footer-social-icon-gap, var(--ds-footer-space-social-icon-gap)));--_footer-slotted-margin-right:var(--footer-slotted-margin-right, var(--mod-footer-slotted-margin-right, var(--ds-footer-space-slotted-margin-right)));margin:var(--_footer-m);margin-inline:var(--_footer-mx);margin-block:var(--_footer-my);margin-left:var(--_footer-ml);margin-right:var(--_footer-mr);margin-top:var(--_footer-mt);margin-bottom:var(--_footer-mb);position:var(--_footer-position);top:var(--_footer-top);right:var(--_footer-right);bottom:var(--_footer-bottom);left:var(--_footer-left);display:block;color:var(--_footer-color);background:var(--_footer-background)}footer{margin:0 auto;padding-block:var(--_footer-padding);padding-inline:var(--ds-alias-container-space-device);width:100%;max-width:var(--ds-alias-container-width-base)}footer.is-fluid{max-width:var(--ds-alias-container-width-fluid)}footer.is-compact{max-width:var(--ds-alias-container-width-compact)}.top-row{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;gap:var(--_footer-gap-row) var(--_footer-gap-column);-ms-flex-pack:justify;justify-content:space-between;-ms-flex-align:start;align-items:flex-start}.logo-area{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.logo-link{display:-ms-inline-flexbox;display:inline-flex;color:inherit}.logo-svg{display:-ms-inline-flexbox;display:inline-flex}.language-picker{-ms-flex-align:center;align-items:center;border:0;color:var(--_footer-color);display:-ms-inline-flexbox;display:inline-flex;font-family:var(--_footer-language-font-family);font-weight:var(--_footer-language-font-weight);gap:var(--_footer-language-gap);margin:0 0 0 auto;max-width:100%;width:auto}.language-picker ds-icon{--icon-color:currentColor;-ms-flex-negative:0;flex-shrink:0}.language-picker select{-webkit-appearance:auto;-moz-appearance:auto;appearance:auto;background:rgba(0,0,0,0);border:0;border-radius:0;color:inherit;cursor:pointer;-ms-flex:0 0 auto;flex:0 0 auto;font:inherit;line-height:1.3;min-width:auto;padding:0}.language-picker select:hover,.language-picker select:focus-visible{color:var(--_footer-link-color-hover)}.content{padding-top:var(--_footer-content-padding-top)}.bottom-row{display:grid;font-size:var(--_footer-font-size);gap:var(--_footer-bottom-gap);grid-template-columns:1fr;line-height:var(--_footer-line-height)}.legal{margin:0;font-size:var(--_footer-font-size);line-height:var(--_footer-line-height)}.links,.social{min-width:0}.link-list,.social-list{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;gap:var(--_footer-link-gap);margin:0;padding:0}.social-list{gap:var(--_footer-social-gap)}.link-list li,.social-list li{list-style:none}.links a,::slotted([slot=links]){color:var(--_footer-link-color);text-decoration:none}.links a:hover,::slotted([slot=links]:hover){color:var(--_footer-link-color-hover);text-decoration:underline}.social a,::slotted([slot=social-links]){--icon-color:var(--ds-alias-text-color-white);--icon-size:var(--ds-icon-size-sm);-ms-flex-align:center;align-items:center;color:var(--_footer-link-color);display:-ms-inline-flexbox;display:inline-flex;height:var(--_footer-social-icon-size);-ms-flex-pack:center;justify-content:center;text-decoration:none;width:var(--_footer-social-icon-size)}.social a:hover,::slotted([slot=social-links]:hover){--icon-color:var(--_footer-link-color-hover);color:var(--_footer-link-color-hover)}::slotted([slot=links]),::slotted([slot=social-links]){margin-right:var(--_footer-slotted-margin-right)}@media screen and (min-width: 769px){.bottom-row{-ms-flex-align:start;align-items:start;grid-template-columns:1fr}.social,.links{justify-self:start}}@media screen and (min-width: 1024px){.bottom-row{-ms-flex-align:center;align-items:center;grid-template-columns:1fr auto;grid-template-areas:"legal social" "links links"}.legal{align-self:center;grid-area:legal}.social{align-self:center;grid-area:social;justify-self:end}.links{grid-area:links;justify-self:stretch;width:100%}}`;
|
|
14
14
|
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* (C) Helvetia Design System https://design.baloise.dev/ - Apache License 2.0
|
|
3
3
|
*/
|
|
4
|
-
import { B as registerInstance, d as dsBrowser, E as h, F as Host, G as getElement } from './index-
|
|
5
|
-
import { _ as __decorate, L as Logger, a as __metadata } from './tslib.es6-
|
|
6
|
-
import { h as hasValue } from './has-value-
|
|
7
|
-
import { c as HEADING_LEVELS, b as HEADING_VISUAL_LEVELS, d as HEADING_SPACES, H as HEADING_COLORS } from './heading.interfaces-
|
|
8
|
-
import { O as OneOf } from './one-of-
|
|
9
|
-
import { T as Type } from './type-
|
|
10
|
-
import './create-validator-decorator-
|
|
4
|
+
import { B as registerInstance, d as dsBrowser, E as h, F as Host, G as getElement } from './index-MUUOiuTm.js';
|
|
5
|
+
import { _ as __decorate, L as Logger, a as __metadata } from './tslib.es6-C7vR-gMn.js';
|
|
6
|
+
import { h as hasValue } from './has-value-CADjf9QZ.js';
|
|
7
|
+
import { c as HEADING_LEVELS, b as HEADING_VISUAL_LEVELS, d as HEADING_SPACES, H as HEADING_COLORS } from './heading.interfaces-BdLq-Ecc.js';
|
|
8
|
+
import { O as OneOf } from './one-of-rLykP5eX.js';
|
|
9
|
+
import { T as Type } from './type-Bqge296W.js';
|
|
10
|
+
import './create-validator-decorator-g9TfAa1g.js';
|
|
11
11
|
|
|
12
12
|
const HEADING_TAG_MAP = {
|
|
13
13
|
'display': 'h1',
|
|
@@ -58,29 +58,19 @@ const HEADING_COLOR_MAP = {
|
|
|
58
58
|
white: 'white',
|
|
59
59
|
};
|
|
60
60
|
|
|
61
|
-
const headingHostCss = () => `: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))}#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-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-
|
|
61
|
+
const headingHostCss = () => `: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-font-family)));--_heading-weight:var(--heading-weight, var(--mod-heading-weight, var(--ds-heading-font-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))}#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-font-family);--mod-heading-weight:var(--ds-heading-subtitle-font-weight);--mod-heading-line-height:var(--ds-heading-subtitle-line-height)}:host(.is-primary){--mod-heading-color:var(--ds-heading-primary-color-base)}:host(.is-success){--mod-heading-color:var(--ds-heading-success-color-base)}:host(.is-warning){--mod-heading-color:var(--ds-heading-warning-color-base)}:host(.is-danger){--mod-heading-color:var(--ds-heading-danger-color-base)}:host(.is-white){--mod-heading-color:var(--ds-heading-white-color-base)}:host(.is-black){--mod-heading-color:var(--ds-heading-black-color-base)}: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-display-1-size-device);--mod-heading-space:var(--ds-heading-display-1-space)}:host(.is-4xl){--mod-heading-font-size:var(--ds-heading-display-2-size-device);--mod-heading-space:var(--ds-heading-display-2-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}`;
|
|
62
62
|
|
|
63
63
|
const Heading = class {
|
|
64
64
|
constructor(hostRef) {
|
|
65
65
|
registerInstance(this, hostRef);
|
|
66
66
|
/**
|
|
67
67
|
* PUBLIC PROPERTY API
|
|
68
|
-
*
|
|
68
|
+
* ─────────────────────────────────────────────────────
|
|
69
69
|
*/
|
|
70
70
|
/**
|
|
71
71
|
* The actual heading level used in the HTML markup.
|
|
72
72
|
*/
|
|
73
73
|
this.level = 'h1';
|
|
74
|
-
/**
|
|
75
|
-
* Make the visual style mimic a specific heading level.
|
|
76
|
-
* This option allows you to make e.g. h1 visually look like h3,
|
|
77
|
-
* but still keep it h1 in the markup.
|
|
78
|
-
*/
|
|
79
|
-
this.visualLevel = '';
|
|
80
|
-
/**
|
|
81
|
-
* The actual heading level used in the HTML markup.
|
|
82
|
-
*/
|
|
83
|
-
this.autoLevel = '';
|
|
84
74
|
/**
|
|
85
75
|
* When true, the text will be truncated with a text overflow ellipsis instead of wrapping.
|
|
86
76
|
* Please note that text overflow can only occur in block or inline-block level elements,
|
|
@@ -91,14 +81,6 @@ const Heading = class {
|
|
|
91
81
|
* If `true` the heading gets displayed slimmer.
|
|
92
82
|
*/
|
|
93
83
|
this.subtitle = false;
|
|
94
|
-
/**
|
|
95
|
-
* Defines at which position the heading has spacing.
|
|
96
|
-
*/
|
|
97
|
-
this.space = '';
|
|
98
|
-
/**
|
|
99
|
-
* The theme type of the toast.
|
|
100
|
-
*/
|
|
101
|
-
this.color = '';
|
|
102
84
|
/**
|
|
103
85
|
* If `true` the color gets inverted for dark backgrounds
|
|
104
86
|
*/
|
|
@@ -122,16 +104,17 @@ const Heading = class {
|
|
|
122
104
|
}
|
|
123
105
|
/**
|
|
124
106
|
* LIFECYCLE
|
|
125
|
-
*
|
|
107
|
+
* ─────────────────────────────────────────────────────
|
|
126
108
|
*/
|
|
127
|
-
|
|
109
|
+
componentWillLoad() {
|
|
128
110
|
this.updateAutoFontSize();
|
|
129
111
|
}
|
|
130
112
|
componentDidRender() {
|
|
131
|
-
|
|
113
|
+
const autoLevel = this.autoLevel;
|
|
114
|
+
if (autoLevel && this.autoFontSize) {
|
|
132
115
|
const rows = this.rows;
|
|
133
116
|
if (rows > 1) {
|
|
134
|
-
const minSize = HEADING_SIZES[
|
|
117
|
+
const minSize = HEADING_SIZES[autoLevel];
|
|
135
118
|
if (minSize !== this.autoFontSize) {
|
|
136
119
|
const nextIndex = HEADING_ORDER.indexOf(this.autoFontSize) + 1;
|
|
137
120
|
this.autoFontSize = HEADING_ORDER[nextIndex];
|
|
@@ -143,8 +126,8 @@ const Heading = class {
|
|
|
143
126
|
this.autoFontSize = this.fontSize;
|
|
144
127
|
}
|
|
145
128
|
/**
|
|
146
|
-
*
|
|
147
|
-
*
|
|
129
|
+
* PRIVATE METHODS
|
|
130
|
+
* ─────────────────────────────────────────────────────
|
|
148
131
|
*/
|
|
149
132
|
get rows() {
|
|
150
133
|
if (this.headingEl && dsBrowser.hasWindow) {
|
|
@@ -159,7 +142,8 @@ const Heading = class {
|
|
|
159
142
|
if (this.inverted) {
|
|
160
143
|
return 'white';
|
|
161
144
|
}
|
|
162
|
-
|
|
145
|
+
const color = this.color;
|
|
146
|
+
return color ? HEADING_COLOR_MAP[color] : undefined;
|
|
163
147
|
}
|
|
164
148
|
get fontSize() {
|
|
165
149
|
return HEADING_SIZES[this.visualLevel ? this.visualLevel : this.level];
|
|
@@ -169,18 +153,18 @@ const Heading = class {
|
|
|
169
153
|
}
|
|
170
154
|
/**
|
|
171
155
|
* RENDER
|
|
172
|
-
*
|
|
156
|
+
* ─────────────────────────────────────────────────────
|
|
173
157
|
*/
|
|
174
158
|
render() {
|
|
175
159
|
const Heading = this.tag;
|
|
176
|
-
return (h(Host, { key: '
|
|
160
|
+
return (h(Host, { key: 'dd934a29bc764a7970f7c59a356d67f570631036', class: {
|
|
177
161
|
[`is-${this.autoFontSize}`]: this.autoFontSize !== undefined,
|
|
178
162
|
[`is-${this.fontColor}`]: hasValue(this.fontColor),
|
|
179
163
|
'is-subtitle': this.subtitle,
|
|
180
164
|
'has-no-wrap': this.noWrap,
|
|
181
165
|
'has-shadow': this.shadow,
|
|
182
166
|
[`has-space-${this.space}`]: hasValue(this.space),
|
|
183
|
-
} }, h(Heading, { key: '
|
|
167
|
+
} }, h(Heading, { key: 'b468e6437329a02b4878120e06d102abb8732cd3', id: "heading", part: "heading", ref: (headingEl) => (this.headingEl = headingEl) }, h("slot", { key: '594a1766c31537f993ae8af98b402f097834750b' }))));
|
|
184
168
|
}
|
|
185
169
|
get el() { return getElement(this); }
|
|
186
170
|
static get watchers() { return {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* (C) Helvetia Design System https://design.baloise.dev/ - Apache License 2.0
|
|
3
3
|
*/
|
|
4
|
-
import { B as registerInstance, E as h, F as Host, G as getElement } from './index-
|
|
5
|
-
import { _ as __decorate, L as Logger, a as __metadata } from './tslib.es6-
|
|
4
|
+
import { B as registerInstance, E as h, F as Host, G as getElement } from './index-MUUOiuTm.js';
|
|
5
|
+
import { _ as __decorate, L as Logger, a as __metadata } from './tslib.es6-C7vR-gMn.js';
|
|
6
6
|
|
|
7
7
|
const HintText = class {
|
|
8
8
|
constructor(hostRef) {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* (C) Helvetia Design System https://design.baloise.dev/ - Apache License 2.0
|
|
3
3
|
*/
|
|
4
|
-
import { B as registerInstance, E as h, F as Host, G as getElement } from './index-
|
|
5
|
-
import { _ as __decorate, L as Logger, a as __metadata } from './tslib.es6-
|
|
4
|
+
import { B as registerInstance, E as h, F as Host, G as getElement } from './index-MUUOiuTm.js';
|
|
5
|
+
import { _ as __decorate, L as Logger, a as __metadata } from './tslib.es6-C7vR-gMn.js';
|
|
6
6
|
|
|
7
7
|
const HintTitle = class {
|
|
8
8
|
constructor(hostRef) {
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* (C) Helvetia Design System https://design.baloise.dev/ - Apache License 2.0
|
|
3
3
|
*/
|
|
4
|
-
import { B as registerInstance, v as defaultConfig, E as h, F as Host, G as getElement } from './index-
|
|
5
|
-
import { _ as __decorate, L as Logger, a as __metadata } from './tslib.es6-
|
|
4
|
+
import { B as registerInstance, v as defaultConfig, E as h, F as Host, G as getElement } from './index-MUUOiuTm.js';
|
|
5
|
+
import { _ as __decorate, L as Logger, a as __metadata } from './tslib.es6-C7vR-gMn.js';
|
|
6
6
|
import { i as isEscapeKey } from './keyboard-Uy_dVz21.js';
|
|
7
7
|
import { P as POPUP_PLACEMENTS } from './popup.interfaces-BAY6Z8bT.js';
|
|
8
|
-
import { L as ListenToBreakpoints } from './breakpoints.decorator-
|
|
9
|
-
import { O as OneOf } from './one-of-
|
|
10
|
-
import { T as Type } from './type-
|
|
11
|
-
import { L as ListenToConfig } from './config.decorator-
|
|
12
|
-
import './breakpoints.subject-
|
|
13
|
-
import './listener-
|
|
14
|
-
import './device-
|
|
15
|
-
import './create-validator-decorator-
|
|
16
|
-
import './config.utils-
|
|
8
|
+
import { L as ListenToBreakpoints } from './breakpoints.decorator-CIweMjJQ.js';
|
|
9
|
+
import { O as OneOf } from './one-of-rLykP5eX.js';
|
|
10
|
+
import { T as Type } from './type-Bqge296W.js';
|
|
11
|
+
import { L as ListenToConfig } from './config.decorator-CyvsD1EY.js';
|
|
12
|
+
import './breakpoints.subject-CUVOWezN.js';
|
|
13
|
+
import './listener-DiVrGAqj.js';
|
|
14
|
+
import './device-CtidwsPr.js';
|
|
15
|
+
import './create-validator-decorator-g9TfAa1g.js';
|
|
16
|
+
import './config.utils-Db2OSTX3.js';
|
|
17
17
|
|
|
18
18
|
const i18nDsHint = {
|
|
19
19
|
de: {
|
|
@@ -1,18 +1,19 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* (C) Helvetia Design System https://design.baloise.dev/ - Apache License 2.0
|
|
3
3
|
*/
|
|
4
|
-
import { B as registerInstance, v as defaultConfig, E as h, F as Host, G as getElement, D as raf, L as rOnLoad } from './index-
|
|
5
|
-
import { _ as __decorate, L as Logger, a as __metadata } from './tslib.es6-
|
|
4
|
+
import { B as registerInstance, v as defaultConfig, E as h, F as Host, G as getElement, D as raf, L as rOnLoad } from './index-MUUOiuTm.js';
|
|
5
|
+
import { _ as __decorate, L as Logger, a as __metadata } from './tslib.es6-C7vR-gMn.js';
|
|
6
6
|
import { g as getDefaultExportFromCjs } from './_commonjsHelpers-Duhf3ymL.js';
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
7
|
+
import { c as require_baseGetTag, b as requireIsObjectLike, a as require_Symbol } from './isObjectLike-BnBXjF_n.js';
|
|
8
|
+
import { r as requireIsArray } from './isArray-B8PCdo6e.js';
|
|
9
|
+
import { h as hasValue } from './has-value-CADjf9QZ.js';
|
|
10
|
+
import { f as fetchSvg, s as sanitizeSvg } from './svg-D-_px2sY.js';
|
|
10
11
|
import { n as normalizeDeprecatedTShirtSize } from './t-shirt-DR5LIaCn.js';
|
|
11
|
-
import { T as Type } from './type-
|
|
12
|
-
import { O as OneOf } from './one-of-
|
|
13
|
-
import { L as ListenToConfig } from './config.decorator-
|
|
14
|
-
import './create-validator-decorator-
|
|
15
|
-
import './config.utils-
|
|
12
|
+
import { T as Type } from './type-Bqge296W.js';
|
|
13
|
+
import { O as OneOf } from './one-of-rLykP5eX.js';
|
|
14
|
+
import { L as ListenToConfig } from './config.decorator-CyvsD1EY.js';
|
|
15
|
+
import './create-validator-decorator-g9TfAa1g.js';
|
|
16
|
+
import './config.utils-Db2OSTX3.js';
|
|
16
17
|
|
|
17
18
|
/**
|
|
18
19
|
* A specialized version of `_.map` for arrays without support for iteratee
|
|
@@ -1183,7 +1184,7 @@ Icon.style = iconHostCss();
|
|
|
1183
1184
|
|
|
1184
1185
|
const SPINNER_COLORS = ['blue', 'white'];
|
|
1185
1186
|
const SPINNER_VARIATIONS = ['logo', 'circle'];
|
|
1186
|
-
const SPINNER_SIZES = ['sm'
|
|
1187
|
+
const SPINNER_SIZES = ['sm'];
|
|
1187
1188
|
const SPINNER_LABEL_POSITIONS = ['right', 'bottom'];
|
|
1188
1189
|
|
|
1189
1190
|
const i18nDsSpinner = {
|
|
@@ -1219,7 +1220,7 @@ const i18nDsSpinner = {
|
|
|
1219
1220
|
},
|
|
1220
1221
|
};
|
|
1221
1222
|
|
|
1222
|
-
const spinnerHostCss = () => `:host{--_spinner-position:var(--spinner-position, var(--mod-spinner-position, static));--_spinner-top:var(--spinner-top, var(--mod-spinner-top));--_spinner-right:var(--spinner-right, var(--mod-spinner-right));--_spinner-bottom:var(--spinner-bottom, var(--mod-spinner-bottom));--_spinner-left:var(--spinner-left, var(--mod-spinner-left));position:var(--_spinner-position);top:var(--_spinner-top);right:var(--_spinner-right);bottom:var(--_spinner-bottom);left:var(--_spinner-left);--_spinner-m:var(--spinner-m, var(--mod-spinner-m, 0));--_spinner-my:var(--spinner-my, var(--mod-spinner-my));--_spinner-mx:var(--spinner-mx, var(--mod-spinner-mx));--_spinner-ml:var(--spinner-ml, var(--mod-spinner-ml));--_spinner-mr:var(--spinner-mr, var(--mod-spinner-mr));--_spinner-mt:var(--spinner-mt, var(--mod-spinner-mt));--_spinner-mb:var(--spinner-mb, var(--mod-spinner-mb));margin:var(--_spinner-m);margin-inline:var(--_spinner-mx);margin-block:var(--_spinner-my);margin-left:var(--_spinner-ml);margin-right:var(--_spinner-mr);margin-top:var(--_spinner-mt);margin-bottom:var(--_spinner-mb);--_spinner-size:var(--spinner-size, var(--mod-spinner-size, var(--ds-spinner-size)));--_spinner-circle-size:var(--spinner-circle-size, var(--mod-spinner-circle-size, var(--ds-spinner-circle-size)));--_spinner-circle-border-width:var(--spinner-circle-border-width, var(--mod-spinner-circle-border-width, var(--ds-spinner-circle-border-width)));--_spinner-circle-color-border-background:var(--spinner-circle-color-border-background, var(--mod-spinner-circle-color-border-background, var(--ds-spinner-circle-color-background)));--_spinner-circle-color-border-progress:var(--spinner-circle-color-border-progress, var(--mod-spinner-circle-color-border-progress, var(--ds-spinner-circle-color-progress)))}:host{-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}:host,:host>div{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-line-pack:center;align-content:center;text-align:center}:host svg{-webkit-transform:unset !important;transform:unset !important}:host(:not(.is-circle))>div{width:var(--_spinner-size)}:host(.is-circle) #inner{border-radius:50%;border-style:solid;border-width:var(--_spinner-circle-border-width);border-color:var(--_spinner-circle-color-border-background);border-top-color:var(--_spinner-circle-color-border-progress);width:var(--_spinner-circle-size);height:var(--_spinner-circle-size)}:host(.is-animated) #inner{-webkit-animation:spinner 1.6s linear infinite;animation:spinner 1.6s linear infinite}:host(.is-sm){--mod-spinner-size:2rem;--mod-spinner-circle-size:1.125rem;--mod-spinner-circle-border-width:0.2rem}:host(.is-white){--mod-spinner-circle-color-border-background:var(--ds-spinner-circle-color-
|
|
1223
|
+
const spinnerHostCss = () => `:host{--_spinner-position:var(--spinner-position, var(--mod-spinner-position, static));--_spinner-top:var(--spinner-top, var(--mod-spinner-top));--_spinner-right:var(--spinner-right, var(--mod-spinner-right));--_spinner-bottom:var(--spinner-bottom, var(--mod-spinner-bottom));--_spinner-left:var(--spinner-left, var(--mod-spinner-left));position:var(--_spinner-position);top:var(--_spinner-top);right:var(--_spinner-right);bottom:var(--_spinner-bottom);left:var(--_spinner-left);--_spinner-m:var(--spinner-m, var(--mod-spinner-m, 0));--_spinner-my:var(--spinner-my, var(--mod-spinner-my));--_spinner-mx:var(--spinner-mx, var(--mod-spinner-mx));--_spinner-ml:var(--spinner-ml, var(--mod-spinner-ml));--_spinner-mr:var(--spinner-mr, var(--mod-spinner-mr));--_spinner-mt:var(--spinner-mt, var(--mod-spinner-mt));--_spinner-mb:var(--spinner-mb, var(--mod-spinner-mb));margin:var(--_spinner-m);margin-inline:var(--_spinner-mx);margin-block:var(--_spinner-my);margin-left:var(--_spinner-ml);margin-right:var(--_spinner-mr);margin-top:var(--_spinner-mt);margin-bottom:var(--_spinner-mb);--_spinner-size:var(--spinner-size, var(--mod-spinner-size, var(--ds-spinner-size)));--_spinner-circle-size:var(--spinner-circle-size, var(--mod-spinner-circle-size, var(--ds-spinner-circle-size)));--_spinner-circle-border-width:var(--spinner-circle-border-width, var(--mod-spinner-circle-border-width, var(--ds-spinner-circle-border-width)));--_spinner-circle-color-border-background:var(--spinner-circle-color-border-background, var(--mod-spinner-circle-color-border-background, var(--ds-spinner-circle-color-background)));--_spinner-circle-color-border-progress:var(--spinner-circle-color-border-progress, var(--mod-spinner-circle-color-border-progress, var(--ds-spinner-circle-color-progress)))}:host{-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}:host,:host>div{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-line-pack:center;align-content:center;text-align:center}:host svg{-webkit-transform:unset !important;transform:unset !important}:host(:not(.is-circle))>div{width:var(--_spinner-size)}:host(.is-circle) #inner{border-radius:50%;border-style:solid;border-width:var(--_spinner-circle-border-width);border-color:var(--_spinner-circle-color-border-background);border-top-color:var(--_spinner-circle-color-border-progress);width:var(--_spinner-circle-size);height:var(--_spinner-circle-size)}:host(.is-animated) #inner{-webkit-animation:spinner 1.6s linear infinite;animation:spinner 1.6s linear infinite}:host(.is-sm){--mod-spinner-size:2rem;--mod-spinner-circle-size:1.125rem;--mod-spinner-circle-border-width:0.2rem}:host(.is-white){--mod-spinner-circle-color-border-background:var(--ds-spinner-inverted-circle-color-background);--mod-spinner-circle-color-border-progress:var(--ds-spinner-inverted-circle-color-progress)}:host(.is-label-right){-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;gap:.5rem;width:auto}:host(.is-label-bottom){-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;align-items:center;gap:.25rem;width:auto}::part(label){font-family:var(--ds-global-font-family-text);line-height:var(--ds-typography-line-height-base)}@-webkit-keyframes spinner{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes spinner{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}`;
|
|
1223
1224
|
|
|
1224
1225
|
const Spinner = class {
|
|
1225
1226
|
constructor(hostRef) {
|
|
@@ -1229,7 +1230,7 @@ const Spinner = class {
|
|
|
1229
1230
|
this.region = defaultConfig.region;
|
|
1230
1231
|
/**
|
|
1231
1232
|
* PUBLIC PROPERTY API
|
|
1232
|
-
*
|
|
1233
|
+
* ─────────────────────────────────────────────────────
|
|
1233
1234
|
*/
|
|
1234
1235
|
/**
|
|
1235
1236
|
* **Deprecated:** Use inverted="true" for white spinner instead.
|
|
@@ -1243,10 +1244,6 @@ const Spinner = class {
|
|
|
1243
1244
|
* If `true` the component can be used on dark background
|
|
1244
1245
|
*/
|
|
1245
1246
|
this.inverted = false;
|
|
1246
|
-
/**
|
|
1247
|
-
* Defines the size of the spinner. If `sm` the spinner is smaller.
|
|
1248
|
-
*/
|
|
1249
|
-
this.size = '';
|
|
1250
1247
|
/**
|
|
1251
1248
|
* **Deprecated:** Use size="sm" instead.
|
|
1252
1249
|
*/
|
|
@@ -1265,7 +1262,7 @@ const Spinner = class {
|
|
|
1265
1262
|
this.variation = 'logo';
|
|
1266
1263
|
/**
|
|
1267
1264
|
* PRIVATE METHODS
|
|
1268
|
-
*
|
|
1265
|
+
* ─────────────────────────────────────────────────────
|
|
1269
1266
|
*/
|
|
1270
1267
|
this.animate = async () => {
|
|
1271
1268
|
if (!this.animated) {
|
|
@@ -1346,7 +1343,7 @@ const Spinner = class {
|
|
|
1346
1343
|
}
|
|
1347
1344
|
/**
|
|
1348
1345
|
* LIFECYCLE
|
|
1349
|
-
*
|
|
1346
|
+
* ─────────────────────────────────────────────────────
|
|
1350
1347
|
*/
|
|
1351
1348
|
componentDidLoad() {
|
|
1352
1349
|
if (this.variation === 'logo') {
|
|
@@ -1362,8 +1359,8 @@ const Spinner = class {
|
|
|
1362
1359
|
}
|
|
1363
1360
|
}
|
|
1364
1361
|
/**
|
|
1365
|
-
* PUBLIC
|
|
1366
|
-
*
|
|
1362
|
+
* PUBLIC METHODS
|
|
1363
|
+
* ─────────────────────────────────────────────────────
|
|
1367
1364
|
*/
|
|
1368
1365
|
/**
|
|
1369
1366
|
* @internal define config for the component
|
|
@@ -1392,7 +1389,7 @@ const Spinner = class {
|
|
|
1392
1389
|
}
|
|
1393
1390
|
/**
|
|
1394
1391
|
* RENDER
|
|
1395
|
-
*
|
|
1392
|
+
* ─────────────────────────────────────────────────────
|
|
1396
1393
|
*/
|
|
1397
1394
|
render() {
|
|
1398
1395
|
const ariaLabel = this.label || i18nDsSpinner[this.language].loading;
|
|
@@ -1400,14 +1397,14 @@ const Spinner = class {
|
|
|
1400
1397
|
if (this.small === true) {
|
|
1401
1398
|
size = 'sm';
|
|
1402
1399
|
}
|
|
1403
|
-
return (h(Host, { key: '
|
|
1400
|
+
return (h(Host, { key: 'c11982bbe6a51010b4cefd97da2636ce308eddcf', role: "progressbar", "aria-label": ariaLabel, class: {
|
|
1404
1401
|
'is-animated': this.animated,
|
|
1405
1402
|
'is-circle': this.variation === 'circle',
|
|
1406
1403
|
'is-sm': size === 'sm',
|
|
1407
1404
|
'is-white': this.color === 'white',
|
|
1408
1405
|
'is-label-right': hasValue(this.label) && this.labelPosition === 'right',
|
|
1409
1406
|
'is-label-bottom': hasValue(this.label) && this.labelPosition === 'bottom',
|
|
1410
|
-
} }, h("div", { key: '
|
|
1407
|
+
} }, h("div", { key: 'ee9d575d084dd4232309bb2e0dcf9e7b404b8e63' }, h("div", { key: 'f65ca901cb36d8503fdd55ab6f2d920bc2a0368d', id: "inner", part: "inner", ref: el => (this.innerEl = el) })), hasValue(this.label) && h("span", { key: '63e189e67f42307211fcf4300f8ba854f2cbe41c', part: "label" }, this.label)));
|
|
1411
1408
|
}
|
|
1412
1409
|
get el() { return getElement(this); }
|
|
1413
1410
|
static get watchers() { return {
|