@baloise/ds-core 20.0.0-next.6 → 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/components/all.d.ts +2 -0
- package/components/all.js +3 -0
- package/components/ds-accordion.js +1 -1
- package/components/ds-badge.js +1 -1
- package/components/ds-button.js +1 -1
- package/components/ds-card-content.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-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-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-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--EKmxaBS.js +4 -0
- package/components/{p-BfXZJ1Fe.js → p-ABj0eATe.js} +1 -1
- package/components/{p-BU0dY8pq.js → p-BwwAKEvn.js} +1 -1
- package/components/{p-B1gnrQ9b.js → p-CWDuQL1i.js} +1 -1
- package/components/{p-bGV2P6rT.js → p-D5zw5ezD.js} +1 -1
- package/components/{p-CjIxf5zy.js → p-DSeYzuO7.js} +1 -1
- package/components/{p-Ctnm_MBD.js → p-DY0y8uLL.js} +1 -1
- package/components/{p-DokkRjWC.js → p-VsWv65bD.js} +1 -1
- package/components/p-gz0Nxl39.js +4 -0
- package/components/{p-CYWn3X22.js → p-qaSW94OG.js} +1 -1
- package/components/{p-Btdh3fq7.js → p-u5aa74vh.js} +1 -1
- 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-DY5iYsA5.js} +1 -1
- package/dist/cjs/{breakpoints.subject-XNcGwhzh.js → breakpoints.subject-CzhLlIwN.js} +3 -3
- package/dist/cjs/{config.decorator-ThGLtT-3.js → config.decorator-C64wi-MA.js} +1 -1
- package/dist/cjs/{config.utils-MhZvq4Qm.js → config.utils-BhWbrVRz.js} +1 -1
- package/dist/cjs/{create-validator-decorator-BIgFqrMJ.js → create-validator-decorator-Ctd288ve.js} +1 -1
- package/dist/cjs/design-system.cjs.js +2 -2
- package/dist/cjs/{device-BnjBOLnP.js → device-CIliLOe9.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 +6 -6
- package/dist/cjs/ds-badge.cjs.entry.js +7 -7
- package/dist/cjs/ds-button-group.cjs.entry.js +6 -6
- package/dist/cjs/ds-button_2.cjs.entry.js +9 -9
- 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 +6 -6
- package/dist/cjs/ds-card-title.cjs.entry.js +6 -6
- 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 +34 -16
- package/dist/cjs/ds-checkbox.cjs.entry.js +19 -10
- package/dist/cjs/ds-content_2.cjs.entry.js +8 -8
- 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 +10 -10
- 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 +13 -12
- package/dist/cjs/ds-footer.cjs.entry.js +7 -7
- package/dist/cjs/ds-heading.cjs.entry.js +7 -7
- 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 +14 -13
- package/dist/cjs/ds-input-slider.cjs.entry.js +2885 -0
- package/dist/cjs/ds-input.cjs.entry.js +10 -10
- package/dist/cjs/ds-item.cjs.entry.js +6 -6
- 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 +22 -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 +29 -12
- 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 +13 -13
- 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 +11 -11
- package/dist/cjs/ds-shape.cjs.entry.js +5 -5
- package/dist/cjs/ds-snackbar.cjs.entry.js +12 -12
- 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 +8 -8
- package/dist/cjs/ds-text.cjs.entry.js +10 -10
- package/dist/cjs/ds-textarea.cjs.entry.js +10 -10
- package/dist/cjs/ds-toast.cjs.entry.js +11 -11
- 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-g9nhtuZH.js} +1 -1
- package/dist/cjs/{focus-D3VVgpM7.js → focus-BUszBnbl.js} +1 -1
- package/dist/cjs/{form-control-CtMcJUuC.js → form-control-B4Qf8fg-.js} +1 -1
- package/dist/cjs/{has-value-DK0oRqXI.js → has-value-rj502MLA.js} +1 -1
- package/dist/cjs/{index-sC3JnTlJ.js → index-CqInh7Vc.js} +6 -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-1PZJDuOW.js} +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{one-of-BZGRIMtQ.js → one-of-BotLfpAZ.js} +1 -1
- package/dist/cjs/{required-COz3Unzu.js → required-BAhZ8oRM.js} +1 -1
- package/dist/cjs/{resize.decorator-DWM_fQgv.js → resize.decorator-Sqefy8ta.js} +2 -2
- package/dist/cjs/{scroll-CUuEh4xd.js → scroll--5tnvpG1.js} +1 -1
- package/dist/cjs/{tslib.es6-CxyosZMg.js → tslib.es6-BIB10hMZ.js} +1 -1
- package/dist/cjs/{type-hmc4CJcO.js → type-Br_NbeTX.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/badge/badge.host.css +1 -1
- package/dist/collection/components/card/card-content/card-content.host.css +1 -1
- 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 +40 -3
- 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 +3 -0
- package/dist/collection/components/heading/heading.host.css +1 -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 +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 +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 +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 +40 -3
- 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 +3 -0
- package/dist/collection/components/segment/segment/segment.js +3 -3
- package/dist/collection/components/segment/segment-item.js +1 -1
- 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.js +2 -2
- package/dist/collection/components/shape/shape.js +1 -1
- package/dist/collection/components/spinner/spinner.js +2 -2
- package/dist/collection/components/stack/stack.js +2 -2
- 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.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/textarea.js +1 -1
- 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/design-system/design-system.esm.js +1 -1
- package/dist/design-system/index.esm.js +1 -1
- package/dist/design-system/{p-afd8bbe699.entry.js → p-00e6b1b780.entry.js} +1 -1
- package/dist/design-system/{p-774b89ed0b.entry.js → p-0bf3d4d939.entry.js} +1 -1
- package/dist/design-system/{p-dcb749efc7.entry.js → p-0ea6cdd218.entry.js} +1 -1
- package/dist/design-system/{p-9f2dd0b55b.entry.js → p-0f2a87fa39.entry.js} +1 -1
- package/dist/design-system/{p-0ff0be5b83.entry.js → p-138be1f0cc.entry.js} +1 -1
- package/dist/design-system/{p-650289138a.entry.js → p-16b03e0b02.entry.js} +1 -1
- package/dist/design-system/{p-d5f8d8f5e1.entry.js → p-1750b3c4f1.entry.js} +1 -1
- package/dist/design-system/{p-BkTv_bQR.js → p-1A9jKraP.js} +1 -1
- package/dist/design-system/{p-3134821ac6.entry.js → p-1b1e3ad99c.entry.js} +1 -1
- 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-6b6531379b.entry.js → p-2bb98dfa2f.entry.js} +1 -1
- package/dist/design-system/{p-c37f266740.entry.js → p-2eb6067210.entry.js} +1 -1
- 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-ad2b17b0a0.entry.js → p-3aa3841834.entry.js} +1 -1
- package/dist/design-system/{p-53dda5d400.entry.js → p-3d2539929c.entry.js} +1 -1
- package/dist/design-system/{p-372bf379f9.entry.js → p-3d675c6507.entry.js} +1 -1
- package/dist/design-system/{p-e7472337ed.entry.js → p-3e3a6799d6.entry.js} +1 -1
- package/dist/design-system/{p-7e702193fc.entry.js → p-3e43fa2bc6.entry.js} +1 -1
- package/dist/design-system/{p-2f51e1d39b.entry.js → p-4284d6d646.entry.js} +1 -1
- package/dist/design-system/{p-8406f6faf1.entry.js → p-44981aaf8d.entry.js} +1 -1
- package/dist/design-system/{p-df5899b930.entry.js → p-4b2a59576c.entry.js} +1 -1
- package/dist/design-system/{p-0663d7c0f1.entry.js → p-4bfc094a03.entry.js} +1 -1
- 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-a62b7985a0.entry.js → p-599a693db3.entry.js} +1 -1
- package/dist/design-system/p-5a6c6959fa.entry.js +4 -0
- package/dist/design-system/{p-0bd2ce2da3.entry.js → p-5d4a5d0b61.entry.js} +1 -1
- package/dist/design-system/{p-13d1ce3158.entry.js → p-5ded2b6438.entry.js} +1 -1
- package/dist/design-system/{p-f0119fe693.entry.js → p-5f1a8be21c.entry.js} +1 -1
- 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-01430d5c28.entry.js → p-7246bfb9a0.entry.js} +1 -1
- package/dist/design-system/p-77e7a6a068.entry.js +4 -0
- package/dist/design-system/{p-a8de98dd7b.entry.js → p-78112e7b35.entry.js} +1 -1
- 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-7c353652a9.entry.js → p-9f9364d7df.entry.js} +1 -1
- package/dist/design-system/p-B-v2Wm-V.js +5 -0
- package/dist/design-system/{p-BhdSNuGP.js → p-B8PCdo6e.js} +1 -1
- package/dist/design-system/{p-C7i6xLTJ.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-Dm2lqE3-.js → p-CfgwSore.js} +1 -1
- package/dist/design-system/p-ChSKXFK5.js +4 -0
- package/dist/design-system/{p-hLAmwHiq.js → p-Chgme2NJ.js} +1 -1
- package/dist/design-system/{p-DTxLRTYr.js → p-CrYAd3JT.js} +1 -1
- package/dist/design-system/p-CziF75uh.js +4 -0
- package/dist/design-system/{p-B1e0kNRJ.js → p-DJBD4skP.js} +2 -2
- package/dist/design-system/{p-78NZc8PM.js → 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-HwbqEzpk.js → p-Dk0GEN2t.js} +1 -1
- package/dist/design-system/p-DkhJaoXg.js +4 -0
- package/dist/design-system/{p-CvTcEsXg.js → p-DoHCSvjl.js} +1 -1
- package/dist/design-system/p-DypNSUAh.js +4 -0
- package/dist/design-system/{p-DgVaaZT_.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-dd38f8f206.entry.js → p-a782c877ea.entry.js} +1 -1
- package/dist/design-system/p-a8df8f067b.entry.js +4 -0
- package/dist/design-system/{p-a465c1acce.entry.js → p-aa3aee2591.entry.js} +1 -1
- package/dist/design-system/p-aa3c0ff536.entry.js +4 -0
- package/dist/design-system/{p-6ef31a3c07.entry.js → p-ab8bee7022.entry.js} +1 -1
- package/dist/design-system/p-adc58b2821.entry.js +4 -0
- package/dist/design-system/{p-8353961d39.entry.js → p-b390490b0d.entry.js} +1 -1
- package/dist/design-system/p-b44641ec28.entry.js +4 -0
- package/dist/design-system/{p-5d17209d91.entry.js → p-b4738dc266.entry.js} +1 -1
- package/dist/design-system/p-b851a43fff.entry.js +4 -0
- package/dist/design-system/{p-4e6638d14e.entry.js → p-b8669a617c.entry.js} +1 -1
- package/dist/design-system/p-b8f626bf28.entry.js +4 -0
- package/dist/design-system/{p-202ecb8f01.entry.js → p-bd543e1baf.entry.js} +1 -1
- package/dist/design-system/p-ce67cbbed5.entry.js +4 -0
- package/dist/design-system/{p-60d29d8b8e.entry.js → p-d3a80b8422.entry.js} +1 -1
- package/dist/design-system/p-d4d9205dda.entry.js +4 -0
- package/dist/design-system/p-dbd3d3b3d3.entry.js +4 -0
- package/dist/design-system/{p-BATOumsf.js → p-dziB1ufg.js} +1 -1
- package/dist/design-system/{p-014d464627.entry.js → p-e0b2d6e296.entry.js} +1 -1
- package/dist/design-system/p-e94ee7391c.entry.js +4 -0
- package/dist/design-system/{p-10c136d00d.entry.js → p-ee76bf354e.entry.js} +1 -1
- package/dist/design-system/p-f7be5b6114.entry.js +4 -0
- package/dist/design-system/{p-f4958b9e97.entry.js → p-fa613cd0d1.entry.js} +1 -1
- package/dist/design-system/p-faf75173db.entry.js +4 -0
- package/dist/design-system/{p-68c9f4f630.entry.js → p-fff38e1ca7.entry.js} +1 -1
- package/dist/design-system/{p-LCY5n5tq.js → p-x2KazRjl.js} +1 -1
- 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-D9M4v98c.js} +1 -1
- package/dist/esm/{breakpoints.subject-BNnXcKMw.js → breakpoints.subject-DHZ7TzYV.js} +3 -3
- package/dist/esm/{config.decorator-ZQ0_Zx5y.js → config.decorator-CRYVBTkX.js} +1 -1
- package/dist/esm/{config.utils-D9o7rffC.js → config.utils-CR4Xudpz.js} +1 -1
- package/dist/esm/{create-validator-decorator-DovxquEu.js → create-validator-decorator-fUav5byo.js} +1 -1
- package/dist/esm/design-system.js +3 -3
- package/dist/esm/{device-CRuIJzXR.js → device-CapioAfe.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 +6 -6
- package/dist/esm/ds-badge.entry.js +7 -7
- package/dist/esm/ds-button-group.entry.js +6 -6
- package/dist/esm/ds-button_2.entry.js +9 -9
- 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 +6 -6
- package/dist/esm/ds-card-title.entry.js +6 -6
- 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 +34 -16
- package/dist/esm/ds-checkbox.entry.js +19 -10
- package/dist/esm/ds-content_2.entry.js +8 -8
- 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 +10 -10
- 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 +13 -12
- package/dist/esm/ds-footer.entry.js +7 -7
- package/dist/esm/ds-heading.entry.js +7 -7
- 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 +12 -11
- package/dist/esm/ds-input-slider.entry.js +2883 -0
- package/dist/esm/ds-input.entry.js +10 -10
- package/dist/esm/ds-item.entry.js +6 -6
- 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 +15 -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 +29 -12
- 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 +13 -13
- 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 +11 -11
- package/dist/esm/ds-shape.entry.js +5 -5
- package/dist/esm/ds-snackbar.entry.js +12 -12
- 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 +8 -8
- package/dist/esm/ds-text.entry.js +10 -10
- package/dist/esm/ds-textarea.entry.js +10 -10
- package/dist/esm/ds-toast.entry.js +11 -11
- 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-neIQBS-h.js} +1 -1
- package/dist/esm/{focus-ZxHImoOj.js → focus-6OAqvfus.js} +1 -1
- package/dist/esm/{form-control-DvJo0GKN.js → form-control-DhinyMa9.js} +1 -1
- package/dist/esm/{has-value-DU9L2JaI.js → has-value-Dmsj8ZQw.js} +1 -1
- package/dist/esm/{index-C6MVahkC.js → index-B-v2Wm-V.js} +6 -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-DIZDQOuO.js} +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{one-of-CKPv0Nqm.js → one-of-CjRvS2Tk.js} +1 -1
- package/dist/esm/{required-Dqsbx5fH.js → required-Dtml5IID.js} +1 -1
- package/dist/esm/{resize.decorator-B8h8D676.js → resize.decorator-eogZBBk6.js} +2 -2
- package/dist/esm/{scroll-CsH7NHo5.js → scroll-v2MaEkiZ.js} +1 -1
- package/dist/esm/{tslib.es6-C9GKXw-5.js → tslib.es6-n47B6oUi.js} +1 -1
- package/dist/esm/{type-DzkhLOG_.js → type-7qEQcw90.js} +1 -1
- package/dist/types/components/card/card.d.ts +1 -1
- 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/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/radio/radio-group/radio-group.d.ts +6 -0
- package/dist/types/components/radio/radio.d.ts +4 -0
- package/dist/types/components.d.ts +308 -3
- 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/docs/cem.json +573 -4
- package/docs/components.json +1471 -448
- package/docs/html.html-data.json +123 -0
- package/docs/tags.json +1 -0
- package/package.json +9 -8
- package/sbom.cdx.json +10768 -6272
- package/components/p-DsvYY32v.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-27d181c5ac.entry.js +0 -4
- package/dist/design-system/p-2a35e0b9b0.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-68ebed7eee.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-BLGVE-7Z.js +0 -4
- package/dist/design-system/p-BvEM6oCl.js +0 -4
- package/dist/design-system/p-C6MVahkC.js +0 -5
- package/dist/design-system/p-CwCAiaMq.js +0 -4
- package/dist/design-system/p-DHeVI6dR.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-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-ij4OEkzJ.js +0 -4
- package/dist/design-system/p-tl_BegdE.js +0 -4
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* (C) Helvetia Design System https://design.baloise.dev/ - Apache License 2.0
|
|
3
|
+
*/
|
|
4
|
+
import noUiSlider from "nouislider";
|
|
5
|
+
import { decimalsFromStep } from "./input-slider.utils";
|
|
6
|
+
export class InputSliderPickerController {
|
|
7
|
+
constructor(config) {
|
|
8
|
+
// Set while a programmatic setValue() is in flight, so the 'update'/'set' listeners it
|
|
9
|
+
// triggers don't echo back out as dsInput/dsChange. Only real user interaction — or a test
|
|
10
|
+
// harness driving the underlying noUiSlider instance directly — should emit those events;
|
|
11
|
+
// an external `el.value = x` assignment (e.g. an Angular CVA writeValue()) must not.
|
|
12
|
+
this.suppressEvents = false;
|
|
13
|
+
this.config = config;
|
|
14
|
+
this.init();
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* PUBLIC API
|
|
18
|
+
* ------------------------------------------------------
|
|
19
|
+
*/
|
|
20
|
+
setValue(value) {
|
|
21
|
+
var _a, _b;
|
|
22
|
+
if (((_a = this.slider) === null || _a === void 0 ? void 0 : _a.get()) === value)
|
|
23
|
+
return;
|
|
24
|
+
this.suppressEvents = true;
|
|
25
|
+
(_b = this.slider) === null || _b === void 0 ? void 0 : _b.set(value);
|
|
26
|
+
this.suppressEvents = false;
|
|
27
|
+
}
|
|
28
|
+
setDisabled(disabled) {
|
|
29
|
+
var _a, _b;
|
|
30
|
+
if (disabled) {
|
|
31
|
+
(_a = this.slider) === null || _a === void 0 ? void 0 : _a.disable();
|
|
32
|
+
}
|
|
33
|
+
else {
|
|
34
|
+
(_b = this.slider) === null || _b === void 0 ? void 0 : _b.enable();
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
setInvalid(invalid) {
|
|
38
|
+
var _a;
|
|
39
|
+
(_a = this.handleEl) === null || _a === void 0 ? void 0 : _a.setAttribute('aria-invalid', invalid ? 'true' : 'false');
|
|
40
|
+
}
|
|
41
|
+
updateRange(min, max, step) {
|
|
42
|
+
var _a;
|
|
43
|
+
(_a = this.slider) === null || _a === void 0 ? void 0 : _a.updateOptions({
|
|
44
|
+
range: { min: Math.min(min, max), max: Math.max(min, max) },
|
|
45
|
+
step: numericStep(step),
|
|
46
|
+
format: buildFormat(step),
|
|
47
|
+
}, false);
|
|
48
|
+
}
|
|
49
|
+
focus() {
|
|
50
|
+
var _a;
|
|
51
|
+
(_a = this.handleEl) === null || _a === void 0 ? void 0 : _a.focus();
|
|
52
|
+
}
|
|
53
|
+
blur() {
|
|
54
|
+
var _a;
|
|
55
|
+
(_a = this.handleEl) === null || _a === void 0 ? void 0 : _a.blur();
|
|
56
|
+
}
|
|
57
|
+
get handleEl() {
|
|
58
|
+
var _a;
|
|
59
|
+
return (_a = this.config.targetEl.querySelector('.noUi-handle')) !== null && _a !== void 0 ? _a : undefined;
|
|
60
|
+
}
|
|
61
|
+
destroy() {
|
|
62
|
+
var _a;
|
|
63
|
+
(_a = this.slider) === null || _a === void 0 ? void 0 : _a.destroy();
|
|
64
|
+
this.slider = undefined;
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* PRIVATE
|
|
68
|
+
* ------------------------------------------------------
|
|
69
|
+
*/
|
|
70
|
+
init() {
|
|
71
|
+
const { targetEl, min, max, step, value, disabled, invalid } = this.config;
|
|
72
|
+
this.slider = noUiSlider.create(targetEl, {
|
|
73
|
+
range: { min: Math.min(min, max), max: Math.max(min, max) },
|
|
74
|
+
start: value,
|
|
75
|
+
step: numericStep(step),
|
|
76
|
+
format: buildFormat(step),
|
|
77
|
+
// 'lower' fills the track from the start to the handle (single-handle "progress" look);
|
|
78
|
+
// the remainder shows the plain track background — see input-slider.host.scss.
|
|
79
|
+
connect: 'lower',
|
|
80
|
+
tooltips: true,
|
|
81
|
+
keyboardSupport: true,
|
|
82
|
+
});
|
|
83
|
+
if (disabled)
|
|
84
|
+
this.slider.disable();
|
|
85
|
+
// 'set' (not 'change') is used for the commit event: noUiSlider's own .set() API call —
|
|
86
|
+
// used by the picker's setValue() and by test helpers driving the widget programmatically —
|
|
87
|
+
// only fires 'update' + 'set', never 'change'. Real user interactions fire both together,
|
|
88
|
+
// so 'set' covers both cases while 'change' alone would miss programmatic commits.
|
|
89
|
+
this.slider.on('update', values => {
|
|
90
|
+
if (this.suppressEvents)
|
|
91
|
+
return;
|
|
92
|
+
this.config.onInput(Number(values[0]));
|
|
93
|
+
});
|
|
94
|
+
this.slider.on('set', values => {
|
|
95
|
+
if (this.suppressEvents)
|
|
96
|
+
return;
|
|
97
|
+
this.config.onChange(Number(values[0]));
|
|
98
|
+
});
|
|
99
|
+
this.connectLabelToHandle();
|
|
100
|
+
this.setInvalid(invalid);
|
|
101
|
+
}
|
|
102
|
+
// A generic noUiSlider handle has no accessible name of its own; connect it to the
|
|
103
|
+
// Field's label/description, same as SelectPickerController.connectLabelToTrigger().
|
|
104
|
+
connectLabelToHandle() {
|
|
105
|
+
const handle = this.handleEl;
|
|
106
|
+
if (!handle)
|
|
107
|
+
return;
|
|
108
|
+
handle.setAttribute('aria-labelledby', this.config.labelId);
|
|
109
|
+
handle.setAttribute('aria-describedby', 'description');
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
function numericStep(step) {
|
|
113
|
+
if (step === 'any')
|
|
114
|
+
return undefined;
|
|
115
|
+
const parsed = Number(step);
|
|
116
|
+
return Number.isFinite(parsed) && parsed > 0 ? parsed : undefined;
|
|
117
|
+
}
|
|
118
|
+
function buildFormat(step) {
|
|
119
|
+
const decimals = decimalsFromStep(step);
|
|
120
|
+
return {
|
|
121
|
+
to: (value) => Number(value.toFixed(decimals)),
|
|
122
|
+
from: (value) => Number(value),
|
|
123
|
+
};
|
|
124
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* (C) Helvetia Design System https://design.baloise.dev/ - Apache License 2.0
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Clamps `value` into `[min, max]`. Degrades sanely when `min > max` by
|
|
6
|
+
* treating the effective range as `[min(min, max), max(min, max)]`.
|
|
7
|
+
*/
|
|
8
|
+
export function clampValue(value, min, max) {
|
|
9
|
+
const lower = Math.min(min, max);
|
|
10
|
+
const upper = Math.max(min, max);
|
|
11
|
+
return Math.min(Math.max(value, lower), upper);
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Resolves the initial value: a range input can never be empty, so an unset
|
|
15
|
+
* (`NaN`, this codebase's "empty number" sentinel — see `isValueEmpty`) value
|
|
16
|
+
* defaults to `min`.
|
|
17
|
+
*/
|
|
18
|
+
export function resolveInitialValue(value, min) {
|
|
19
|
+
return isNaN(value) ? min : value;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Derives the decimal precision implied by a `step` value, so noUiSlider's
|
|
23
|
+
* `format.to` can round away the floating-point noise its internal
|
|
24
|
+
* percentage-based math otherwise produces. `"any"` (continuous mode) falls
|
|
25
|
+
* back to a small fixed precision rather than pretending to be exact.
|
|
26
|
+
*/
|
|
27
|
+
export function decimalsFromStep(step) {
|
|
28
|
+
if (step === 'any')
|
|
29
|
+
return 2;
|
|
30
|
+
const [, fraction = ''] = step.split('.');
|
|
31
|
+
return fraction.length;
|
|
32
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* (C) Helvetia Design System https://design.baloise.dev/ - Apache License 2.0
|
|
3
|
+
*/
|
|
4
|
+
import { test } from "../../../../../../playwright/src/index";
|
|
5
|
+
test('default', async ({ page, a11y }) => {
|
|
6
|
+
await page.mount(`<ds-input-slider label="Label" description="Description"></ds-input-slider>`);
|
|
7
|
+
await a11y('ds-input-slider');
|
|
8
|
+
});
|
|
9
|
+
test('with value', async ({ page, a11y }) => {
|
|
10
|
+
await page.mount(`<ds-input-slider label="Label" value="42"></ds-input-slider>`);
|
|
11
|
+
await a11y('ds-input-slider');
|
|
12
|
+
});
|
|
13
|
+
test('disabled', async ({ page, a11y }) => {
|
|
14
|
+
await page.mount(`<ds-input-slider label="Label" value="42" disabled></ds-input-slider>`);
|
|
15
|
+
await a11y('ds-input-slider');
|
|
16
|
+
});
|
|
17
|
+
test('readonly', async ({ page, a11y }) => {
|
|
18
|
+
await page.mount(`<ds-input-slider label="Label" value="42" readonly></ds-input-slider>`);
|
|
19
|
+
await a11y('ds-input-slider');
|
|
20
|
+
});
|
|
21
|
+
test('invalid', async ({ page, a11y }) => {
|
|
22
|
+
await page.mount(`<ds-input-slider label="Label" value="42" invalid invalid-text="Validation Error"></ds-input-slider>`);
|
|
23
|
+
await a11y('ds-input-slider');
|
|
24
|
+
});
|
|
25
|
+
test('success', async ({ page, a11y }) => {
|
|
26
|
+
await page.mount(`<ds-input-slider label="Label" value="42" color="success"></ds-input-slider>`);
|
|
27
|
+
await a11y('ds-input-slider');
|
|
28
|
+
});
|
|
29
|
+
test('warning', async ({ page, a11y }) => {
|
|
30
|
+
await page.mount(`<ds-input-slider label="Label" value="42" color="warning"></ds-input-slider>`);
|
|
31
|
+
await a11y('ds-input-slider');
|
|
32
|
+
});
|
|
33
|
+
test('with min/max/step', async ({ page, a11y }) => {
|
|
34
|
+
await page.mount(`<ds-input-slider label="Label" min="0" max="10" step="1" value="5"></ds-input-slider>`);
|
|
35
|
+
await a11y('ds-input-slider');
|
|
36
|
+
});
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* (C) Helvetia Design System https://design.baloise.dev/ - Apache License 2.0
|
|
3
|
+
*/
|
|
4
|
+
import { DsInputSlider, expect, test } from "../../../../../../playwright/src/index";
|
|
5
|
+
test.describe('component', () => {
|
|
6
|
+
test('should fire dsInput with numeric value on fill', async ({ page }) => {
|
|
7
|
+
await page.mount(`<ds-input-slider label="Label"></ds-input-slider>`);
|
|
8
|
+
const slider = new DsInputSlider(page.locator('ds-input-slider'));
|
|
9
|
+
const inputSpy = await slider.el.spyOnEvent('dsInput');
|
|
10
|
+
await slider.fill('42');
|
|
11
|
+
expect(inputSpy).toHaveReceivedEventTimes(1);
|
|
12
|
+
expect(inputSpy).toHaveReceivedEventDetail(42);
|
|
13
|
+
});
|
|
14
|
+
test('should fire dsChange with numeric value on fill', async ({ page }) => {
|
|
15
|
+
await page.mount(`<ds-input-slider label="Label"></ds-input-slider>`);
|
|
16
|
+
const slider = new DsInputSlider(page.locator('ds-input-slider'));
|
|
17
|
+
const changeSpy = await slider.el.spyOnEvent('dsChange');
|
|
18
|
+
await slider.fill('75');
|
|
19
|
+
expect(changeSpy).toHaveReceivedEventTimes(1);
|
|
20
|
+
expect(changeSpy).toHaveReceivedEventDetail(75);
|
|
21
|
+
});
|
|
22
|
+
test('should fire dsFocus on focus and dsBlur on blur', async ({ page }) => {
|
|
23
|
+
await page.mount(`<ds-input-slider label="Label"></ds-input-slider>`);
|
|
24
|
+
const slider = new DsInputSlider(page.locator('ds-input-slider'));
|
|
25
|
+
const focusSpy = await slider.el.spyOnEvent('dsFocus');
|
|
26
|
+
const blurSpy = await slider.el.spyOnEvent('dsBlur');
|
|
27
|
+
await slider.handle.focus();
|
|
28
|
+
expect(focusSpy).toHaveReceivedEventTimes(1);
|
|
29
|
+
await slider.blur();
|
|
30
|
+
expect(blurSpy).toHaveReceivedEventTimes(1);
|
|
31
|
+
});
|
|
32
|
+
test('should fire dsClick on click', async ({ page }) => {
|
|
33
|
+
await page.mount(`<ds-input-slider label="Label"></ds-input-slider>`);
|
|
34
|
+
const slider = new DsInputSlider(page.locator('ds-input-slider'));
|
|
35
|
+
const clickSpy = await slider.el.spyOnEvent('dsClick');
|
|
36
|
+
await slider.handle.click();
|
|
37
|
+
expect(clickSpy).toHaveReceivedEventTimes(1);
|
|
38
|
+
});
|
|
39
|
+
});
|
|
40
|
+
test.describe('min/max/step', () => {
|
|
41
|
+
test('defaults to min when value is unset', async ({ page }) => {
|
|
42
|
+
await page.mount(`<ds-input-slider label="Label" min="10" max="50"></ds-input-slider>`);
|
|
43
|
+
const slider = new DsInputSlider(page.locator('ds-input-slider'));
|
|
44
|
+
await slider.assertValue('10');
|
|
45
|
+
});
|
|
46
|
+
test('clamps an out-of-range value to max', async ({ page }) => {
|
|
47
|
+
await page.mount(`<ds-input-slider label="Label" min="0" max="10" value="42"></ds-input-slider>`);
|
|
48
|
+
const slider = new DsInputSlider(page.locator('ds-input-slider'));
|
|
49
|
+
await slider.assertValue('10');
|
|
50
|
+
});
|
|
51
|
+
});
|
|
52
|
+
test.describe('disabled', () => {
|
|
53
|
+
test('slider should be disabled', async ({ page }) => {
|
|
54
|
+
await page.mount(`<ds-input-slider label="Label" value="42" disabled></ds-input-slider>`);
|
|
55
|
+
const slider = new DsInputSlider(page.locator('ds-input-slider'));
|
|
56
|
+
const inputSpy = await slider.el.spyOnEvent('dsInput');
|
|
57
|
+
await slider.assertToBeDisabled();
|
|
58
|
+
expect(inputSpy).toHaveReceivedEventTimes(0);
|
|
59
|
+
});
|
|
60
|
+
});
|
|
61
|
+
test.describe('readonly', () => {
|
|
62
|
+
test('slider should be disabled', async ({ page }) => {
|
|
63
|
+
await page.mount(`<ds-input-slider label="Label" value="42" readonly></ds-input-slider>`);
|
|
64
|
+
const slider = new DsInputSlider(page.locator('ds-input-slider'));
|
|
65
|
+
const inputSpy = await slider.el.spyOnEvent('dsInput');
|
|
66
|
+
await slider.assertToBeDisabled();
|
|
67
|
+
expect(inputSpy).toHaveReceivedEventTimes(0);
|
|
68
|
+
});
|
|
69
|
+
});
|
|
70
|
+
test.describe('form reset', () => {
|
|
71
|
+
test('should reset to initial value', async ({ page }) => {
|
|
72
|
+
await page.mount(`
|
|
73
|
+
<form>
|
|
74
|
+
<ds-input-slider name="volume" label="Volume" value="30"></ds-input-slider>
|
|
75
|
+
<button type="reset" data-testid="reset">Reset</button>
|
|
76
|
+
</form>
|
|
77
|
+
`);
|
|
78
|
+
const slider = new DsInputSlider(page.locator('ds-input-slider'));
|
|
79
|
+
const changeSpy = await slider.el.spyOnEvent('dsChange');
|
|
80
|
+
await slider.fill('90');
|
|
81
|
+
expect(changeSpy).toHaveReceivedEventTimes(1);
|
|
82
|
+
expect(changeSpy).toHaveReceivedEventDetail(90);
|
|
83
|
+
await page.getByTestId('reset').click();
|
|
84
|
+
await page.waitForChanges();
|
|
85
|
+
await slider.assertValue('30');
|
|
86
|
+
});
|
|
87
|
+
});
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* (C) Helvetia Design System https://design.baloise.dev/ - Apache License 2.0
|
|
3
|
+
*/
|
|
4
|
+
import { expectScreenshot, screenshot, test } from "../../../../../../playwright/src/index";
|
|
5
|
+
const TAG = 'input-slider';
|
|
6
|
+
const VARIANTS = [
|
|
7
|
+
'basic',
|
|
8
|
+
'disabled',
|
|
9
|
+
'readonly',
|
|
10
|
+
'invalid',
|
|
11
|
+
'valid',
|
|
12
|
+
'warning',
|
|
13
|
+
'brand-color',
|
|
14
|
+
'step',
|
|
15
|
+
'min-max',
|
|
16
|
+
'form-reset',
|
|
17
|
+
];
|
|
18
|
+
const image = screenshot(TAG);
|
|
19
|
+
test.beforeEach('Setup', async ({ page }) => {
|
|
20
|
+
await page.setupVisualTest(`/components/${TAG}/test/${TAG}.visual.html`);
|
|
21
|
+
});
|
|
22
|
+
VARIANTS.forEach(variant => {
|
|
23
|
+
test(variant, async ({ page }) => {
|
|
24
|
+
const el = page.getByTestId(variant);
|
|
25
|
+
await expectScreenshot(el, image(variant));
|
|
26
|
+
});
|
|
27
|
+
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
:host{--_label-position: var(--label-position, var(--mod-label-position, static));--_label-top: var(--label-top, var(--mod-label-top));--_label-right: var(--label-right, var(--mod-label-right));--_label-bottom: var(--label-bottom, var(--mod-label-bottom));--_label-left: var(--label-left, var(--mod-label-left));position:var(--_label-position);top:var(--_label-top);right:var(--_label-right);bottom:var(--_label-bottom);left:var(--_label-left);--_label-m: var(--label-m, var(--mod-label-m, 0));--_label-my: var(--label-my, var(--mod-label-my));--_label-mx: var(--label-mx, var(--mod-label-mx));--_label-ml: var(--label-ml, var(--mod-label-ml));--_label-mr: var(--label-mr, var(--mod-label-mr));--_label-mt: var(--label-mt, var(--mod-label-mt));--_label-mb: var(--label-mb, var(--mod-label-mb));margin:var(--_label-m);margin-inline:var(--_label-mx);margin-block:var(--_label-my);margin-left:var(--_label-ml);margin-right:var(--_label-mr);margin-top:var(--_label-mt);margin-bottom:var(--_label-mb);--_label-color: var(--label-color, var(--mod-label-color, inherit));--_label-family: var(--label-family, var(--mod-label-family, var(--ds-label-family)));--_label-weight: var(--label-weight, var(--mod-label-weight, var(--ds-label-weight)));--_label-line-height: var(--label-line-height, var(--mod-label-line-height, var(--ds-label-line-height)));--_label-size: var(--label-size, var(--mod-label-size, var(--ds-label-size-base-device)))}:host label{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:block;box-sizing:content-box;hyphens:auto;overflow-wrap:break-word;text-wrap:balance;min-width:0;color:var(--_label-color);font-family:var(--_label-family);font-weight:var(--_label-weight);font-size:var(--_label-size);line-height:var(--_label-line-height)}:host(.has-no-wrap) label{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}:host(.is-lg){--mod-label-family: var(--ds-text-family-heading)}:host(.is-xl){--mod-label-family: var(--ds-text-family-heading)}:host(.is-2xl){--mod-label-family: var(--ds-text-family-heading)}:host(.is-3xl){--mod-label-family: var(--ds-text-family-heading)}:host(.is-sm){--mod-label-size: var(--ds-label-size-sm-device)}:host(.is-base){--mod-label-size: var(--ds-label-size-base-device)}:host(.is-lg){--mod-label-size: var(--ds-label-size-lg-device)}:host(.is-xl){--mod-label-size: var(--ds-label-size-xl-device)}:host(.is-2xl){--mod-label-size: var(--ds-label-size-2xl-device)}:host(.is-3xl){--mod-label-size: var(--ds-label-size-3xl-device)}:host(.is-hovered){--mod-label-color: var(--ds-label-color-base-hover)}:host(.is-pressed){--mod-label-color: var(--ds-label-color-base-active)}:host(.is-valid){--mod-label-color: var(--ds-label-color-success)}:host(.is-invalid){--mod-label-color: var(--ds-label-color-danger)}:host(.is-disabled){--mod-label-color: var(--ds-label-color-disabled) !important}:host{display:block}
|
|
1
|
+
:host{--_label-position: var(--label-position, var(--mod-label-position, static));--_label-top: var(--label-top, var(--mod-label-top));--_label-right: var(--label-right, var(--mod-label-right));--_label-bottom: var(--label-bottom, var(--mod-label-bottom));--_label-left: var(--label-left, var(--mod-label-left));position:var(--_label-position);top:var(--_label-top);right:var(--_label-right);bottom:var(--_label-bottom);left:var(--_label-left);--_label-m: var(--label-m, var(--mod-label-m, 0));--_label-my: var(--label-my, var(--mod-label-my));--_label-mx: var(--label-mx, var(--mod-label-mx));--_label-ml: var(--label-ml, var(--mod-label-ml));--_label-mr: var(--label-mr, var(--mod-label-mr));--_label-mt: var(--label-mt, var(--mod-label-mt));--_label-mb: var(--label-mb, var(--mod-label-mb));margin:var(--_label-m);margin-inline:var(--_label-mx);margin-block:var(--_label-my);margin-left:var(--_label-ml);margin-right:var(--_label-mr);margin-top:var(--_label-mt);margin-bottom:var(--_label-mb);--_label-color: var(--label-color, var(--mod-label-color, inherit));--_label-family: var(--label-family, var(--mod-label-family, var(--ds-label-family)));--_label-weight: var(--label-weight, var(--mod-label-weight, var(--ds-label-weight)));--_label-line-height: var(--label-line-height, var(--mod-label-line-height, var(--ds-label-line-height)));--_label-size: var(--label-size, var(--mod-label-size, var(--ds-label-size-base-device)))}:host label{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:block;box-sizing:content-box;hyphens:auto;overflow-wrap:break-word;text-wrap:balance;min-width:0;color:var(--_label-color);font-family:var(--_label-family);font-weight:var(--_label-weight);font-size:var(--_label-size);line-height:var(--_label-line-height)}:host(.has-no-wrap) label{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}:host(.is-lg){--mod-label-family: var(--ds-alias-text-family-heading)}:host(.is-xl){--mod-label-family: var(--ds-alias-text-family-heading)}:host(.is-2xl){--mod-label-family: var(--ds-alias-text-family-heading)}:host(.is-3xl){--mod-label-family: var(--ds-alias-text-family-heading)}:host(.is-sm){--mod-label-size: var(--ds-label-size-sm-device)}:host(.is-base){--mod-label-size: var(--ds-label-size-base-device)}:host(.is-lg){--mod-label-size: var(--ds-label-size-lg-device)}:host(.is-xl){--mod-label-size: var(--ds-label-size-xl-device)}:host(.is-2xl){--mod-label-size: var(--ds-label-size-2xl-device)}:host(.is-3xl){--mod-label-size: var(--ds-label-size-3xl-device)}:host(.is-hovered){--mod-label-color: var(--ds-label-color-base-hover)}:host(.is-pressed){--mod-label-color: var(--ds-label-color-base-active)}:host(.is-valid){--mod-label-color: var(--ds-label-color-success)}:host(.is-invalid){--mod-label-color: var(--ds-label-color-danger)}:host(.is-disabled){--mod-label-color: var(--ds-label-color-disabled) !important}:host{display:block}
|
|
@@ -90,7 +90,7 @@ export class Label {
|
|
|
90
90
|
const id = this.htmlId;
|
|
91
91
|
const htmlFor = this.htmlFor;
|
|
92
92
|
const size = normalizeDeprecatedTShirtSize(this.size) || '';
|
|
93
|
-
return (h(Host, { key: '
|
|
93
|
+
return (h(Host, { key: 'fc8da311fddaf6d546b260a8bf2ae9cec5f39321', class: {
|
|
94
94
|
'is-hovered': this.hovered,
|
|
95
95
|
'is-pressed': this.pressed,
|
|
96
96
|
'is-disabled': this.disabled,
|
|
@@ -98,7 +98,7 @@ export class Label {
|
|
|
98
98
|
'is-invalid': this.invalid,
|
|
99
99
|
'has-no-wrap': this.noWrap,
|
|
100
100
|
[`is-${size}`]: hasValue(this.size),
|
|
101
|
-
} }, h("label", { key: '
|
|
101
|
+
} }, h("label", { key: '56e31495cbe7d6fd512a0fb5a6b708774116ae25', id: id, part: "label", htmlFor: htmlFor }, h("slot", { key: '062163754a076d54d253c895d5d3d54de0be0127' }), suffix)));
|
|
102
102
|
}
|
|
103
103
|
static get is() { return "ds-label"; }
|
|
104
104
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1 +1 @@
|
|
|
1
|
-
:host{--_list-item-focus: var(--list-item-focus, var(--mod-list-item-focus, var(--ds-alias-interaction-focus-color-base)));--_list-item-grid-template-columns: var(--list-item-grid-template-columns, var(--mod-list-item-grid-template-columns, 1fr));--_list-item-min-height: var(--list-item-min-height, var(--mod-list-item-min-height, 3.5rem));--_list-item-gap: var(--list-item-gap, var(--mod-list-item-gap, 1rem));--_list-item-space: var(--list-item-space, var(--mod-list-item-space, 0.5rem));--_list-item-content-gap: var(--list-item-content-gap, var(--mod-list-item-content-gap, 1px));--_list-item-color: var(--list-item-color, var(--mod-list-item-color, inherit));--_list-item-border-color-base: var(--list-item-border-color-base, var(--mod-list-item-border-color-base, var(--ds-list-item-border-color)));--_list-item-border-color-hover: var(--list-item-border-color-hover, var(--mod-list-item-border-color-hover, var(--ds-link-color-base)));--_list-item-border-color-active: var(--list-item-border-color-active, var(--mod-list-item-border-color-active, var(--ds-link-color-base-active)));--_list-item-border-width: var(--list-item-border-width, var(--mod-list-item-border-width, var(--ds-list-item-border-width, 2px)));--_list-item-border-radius: var(--list-item-border-radius, var(--mod-list-item-border-radius, 12px));--_list-item-background-base: var(--list-item-background-base, var(--mod-list-item-background-base, transparent));--_list-item-background-hover: var(--list-item-background-hover, var(--mod-list-item-background-hover, var(--ds-alias-background-color-primary-lighter)));--_list-item-background-active: var(--list-item-background-active, var(--mod-list-item-background-active, var(--ds-alias-background-color-primary-lighter)));--_list-item-accordion-py: var(--list-item-accordion-py, var(--mod-list-item-accordion-py, var(--ds-alias-space-base-device)));--_list-item-action-icon-size: var(--list-item-action-icon-size, var(--mod-list-item-action-icon-size, var(--ds-icon-size-xs)));--_list-item-title-size: var(--list-item-title-size, var(--mod-list-item-title-size, var(--ds-heading-5-size-device)));--_list-item-title-weight: var(--list-item-title-weight, var(--mod-list-item-title-weight, var(--ds-alias-text-weight-bold)));--_list-item-title-family: var(--list-item-title-family, var(--mod-list-item-title-family, var(--ds-global-font-family-heading)));--_list-item-text-family: var(--list-item-text-family, var(--mod-list-item-text-family, var(--ds-global-font-family-body)));--_list-item-text-weight: var(--list-item-text-weight, var(--mod-list-item-text-weight, var(--ds-alias-text-weight-regular)));--_list-item-text-size: var(--list-item-text-size, var(--mod-list-item-text-size, var(--ds-text-size-sm-device)))}:host{position:relative;display:grid;box-sizing:border-box;grid-template-columns:var(--_list-item-grid-template-columns)}:host ::slotted([slot=content]){min-height:46px}:host #item{display:flex;flex-direction:row;flex-wrap:nowrap;align-items:center;gap:var(--_list-item-gap);width:100%;color:var(--_list-item-color);background:inherit;border:none;align-self:stretch;text-align:left;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--_list-item-title-family);padding:var(--_list-item-space) .25rem;padding-bottom:calc(var(--_list-item-space) + 2px);min-height:var(--_list-item-min-height)}:host #item ds-icon{flex-shrink:0}:host #item #content+ds-icon{--icon-size: var(--_list-item-action-icon-size);--icon-inner-size: var(--_list-item-action-icon-size)}:host #item #content{flex:1;display:flex;flex-direction:column;gap:var(--_list-item-content-gap);font-family:var(--_list-item-text-family);font-weight:var(--_list-item-text-weight)}:host #item #label{font-family:var(--_list-item-title-family);font-weight:var(--_list-item-title-weight);font-size:var(--_list-item-title-size);margin:0}:host #item #description{font-family:var(--_list-item-text-family);font-weight:var(--_list-item-text-weight);font-size:var(--_list-item-text-size);margin:0}:host #item:after{content:"";border-radius:var(--_list-item-border-radius);width:100%;position:absolute;bottom:0;left:0;right:0;height:var(--_list-item-border-width);background:var(--_list-item-border-color-base)}:host(.has-label-h1){--mod-list-item-title-size: var(--ds-heading-1-size-device)}:host(.has-label-3xl){--mod-list-item-title-size: var(--ds-heading-1-size-device)}:host(.has-label-h2){--mod-list-item-title-size: var(--ds-heading-2-size-device)}:host(.has-label-2xl){--mod-list-item-title-size: var(--ds-heading-2-size-device)}:host(.has-label-h3){--mod-list-item-title-size: var(--ds-heading-3-size-device)}:host(.has-label-xl){--mod-list-item-title-size: var(--ds-heading-3-size-device)}:host(.has-label-h4){--mod-list-item-title-size: var(--ds-heading-4-size-device)}:host(.has-label-lg){--mod-list-item-title-size: var(--ds-heading-4-size-device)}:host(.has-label-h5){--mod-list-item-title-size: var(--ds-heading-5-size-device)}:host(.has-label-base){--mod-list-item-title-size: var(--ds-heading-5-size-device)}:host(.is-link) #item,:host(.is-button) #item{-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;text-decoration:none;outline:none;cursor:pointer;background:var(--_list-item-background-base)}:host(.is-link) #item::-moz-focus-inner,:host(.is-button) #item::-moz-focus-inner{border:0}:host(.is-link) #item #content,:host(.is-button) #item #content{hyphens:auto;overflow-wrap:break-word;font-family:var(--_list-item-title-family);font-weight:var(--_list-item-title-weight);font-size:var(--_list-item-title-size);color:var(--ds-link-color-base)}@media(hover: hover)and (pointer: fine){:host(.is-link) #item:hover,:host(.is-link) #item.is-hovered,:host(.is-button) #item:hover,:host(.is-button) #item.is-hovered{background:var(--_list-item-background-hover)}}:host(.is-link) #item:active,:host(.is-link) #item.is-pressed,:host(.is-button) #item:active,:host(.is-button) #item.is-pressed{background:var(--_list-item-background-active);color:var(--ds-link-color-base-active)}:host(.is-link) #item:active #content,:host(.is-link) #item.is-pressed #content,:host(.is-button) #item:active #content,:host(.is-button) #item.is-pressed #content{color:var(--ds-link-color-base-active)}:host(.is-link) #item:active ds-icon,:host(.is-link) #item:active ::slotted(ds-icon),:host(.is-link) #item:active ::slotted(ds-badge),:host(.is-link) #item.is-pressed ds-icon,:host(.is-link) #item.is-pressed ::slotted(ds-icon),:host(.is-link) #item.is-pressed ::slotted(ds-badge),:host(.is-button) #item:active ds-icon,:host(.is-button) #item:active ::slotted(ds-icon),:host(.is-button) #item:active ::slotted(ds-badge),:host(.is-button) #item.is-pressed ds-icon,:host(.is-button) #item.is-pressed ::slotted(ds-icon),:host(.is-button) #item.is-pressed ::slotted(ds-badge){--icon-color: var(--ds-link-color-base-active)}:host(.is-link) #item:before,:host(.is-button) #item:before{content:"";position:absolute;top:0;left:0;right:0;bottom:0;z-index:1;border-radius:var(--ds-alias-radius-base);touch-action:manipulation;transition-property:box-shadow;transition-duration:.2s;transition-timing-function:cubic-bezier(0, 0, 0.2, 1)}:host(.is-link) #item:focus-visible:not(:active):before,:host(.is-link) #item.is-focused:not(:active):before,:host(.is-button) #item:focus-visible:not(:active):before,:host(.is-button) #item.is-focused:not(:active):before{box-shadow:var(--ds-alias-interaction-focus-color-border) 0 0 0 2px,var(--_list-item-focus) 0 0 0 5px !important}@media(hover: hover)and (pointer: fine){:host(.is-link) #item:hover:after,:host(.is-link) #item.is-hovered:after,:host(.is-button) #item:hover:after,:host(.is-button) #item.is-hovered:after,:host(.is-accordion) #item:hover:after,:host(.is-accordion) #item.is-hovered:after{background:var(--_list-item-border-color-hover)}}:host(.is-link) #item:active:after,:host(.is-link) #item.is-pressed:after,:host(.is-button) #item:active:after,:host(.is-button) #item.is-pressed:after,:host(.is-accordion) #item:active:after,:host(.is-accordion) #item.is-pressed:after{background:var(--_list-item-border-color-active)}:host(.is-accordion) ::slotted(p){padding-block:var(--_list-item-accordion-py)}:host(.is-accordion) ds-accordion{--accordion-summary-color-hover: var(--ds-link-color-base)}:host(.is-accordion) ds-accordion::part(header){background:var(--_list-item-background-base)}:host(.is-accordion) ds-accordion::part(summary){padding-right:.25rem}:host(.is-accordion) ds-accordion::part(summary):hover{background:var(--_list-item-background-hover)}:host(.is-accordion) ds-accordion::part(summary):active{background:var(--_list-item-background-active)}:host(.is-accordion) #accordion-content:after{content:"";border-radius:var(--_list-item-border-radius);width:100%;position:absolute;bottom:0;left:0;right:0;height:var(--_list-item-border-width);background:var(--_list-item-border-color-base)}:host(.is-disabled) #item{pointer-events:none !important;cursor:default !important;color:var(--ds-list-item-disabled)}:host(.is-disabled) #item #content{color:var(--ds-list-item-disabled)}:host(.is-disabled) #item ds-icon,:host(.is-disabled) #item ds-badge,:host(.is-disabled) #item ::slotted(ds-icon),:host(.is-disabled) #item ::slotted(ds-badge){--icon-color: var(--ds-list-item-disabled)}:host(.is-disabled) #item ds-badge,:host(.is-disabled) #item ::slotted(ds-badge){--badge-color-background: var(--ds-badge-color-grey-background);--badge-color-text: var(--ds-badge-color-grey-text)}
|
|
1
|
+
:host{--_list-item-focus: var(--list-item-focus, var(--mod-list-item-focus, var(--ds-alias-interaction-focus-color-base)));--_list-item-grid-template-columns: var(--list-item-grid-template-columns, var(--mod-list-item-grid-template-columns, 1fr));--_list-item-min-height: var(--list-item-min-height, var(--mod-list-item-min-height, 3.5rem));--_list-item-gap: var(--list-item-gap, var(--mod-list-item-gap, 1rem));--_list-item-space: var(--list-item-space, var(--mod-list-item-space, 0.5rem));--_list-item-content-gap: var(--list-item-content-gap, var(--mod-list-item-content-gap, 1px));--_list-item-color: var(--list-item-color, var(--mod-list-item-color, inherit));--_list-item-border-color-base: var(--list-item-border-color-base, var(--mod-list-item-border-color-base, var(--ds-list-item-border-color)));--_list-item-border-color-hover: var(--list-item-border-color-hover, var(--mod-list-item-border-color-hover, var(--ds-link-color-base)));--_list-item-border-color-active: var(--list-item-border-color-active, var(--mod-list-item-border-color-active, var(--ds-link-color-base-active)));--_list-item-border-width: var(--list-item-border-width, var(--mod-list-item-border-width, var(--ds-list-item-border-width, 2px)));--_list-item-border-radius: var(--list-item-border-radius, var(--mod-list-item-border-radius, 12px));--_list-item-background-base: var(--list-item-background-base, var(--mod-list-item-background-base, transparent));--_list-item-background-hover: var(--list-item-background-hover, var(--mod-list-item-background-hover, var(--ds-alias-background-color-primary-lighter)));--_list-item-background-active: var(--list-item-background-active, var(--mod-list-item-background-active, var(--ds-alias-background-color-primary-lighter)));--_list-item-accordion-py: var(--list-item-accordion-py, var(--mod-list-item-accordion-py, var(--ds-alias-space-base-device)));--_list-item-action-icon-size: var(--list-item-action-icon-size, var(--mod-list-item-action-icon-size, var(--ds-icon-size-xs)));--_list-item-title-size: var(--list-item-title-size, var(--mod-list-item-title-size, var(--ds-heading-5-size-device)));--_list-item-title-weight: var(--list-item-title-weight, var(--mod-list-item-title-weight, var(--ds-alias-text-weight-bold)));--_list-item-title-family: var(--list-item-title-family, var(--mod-list-item-title-family, var(--ds-global-font-family-heading)));--_list-item-text-family: var(--list-item-text-family, var(--mod-list-item-text-family, var(--ds-global-font-family-body)));--_list-item-text-weight: var(--list-item-text-weight, var(--mod-list-item-text-weight, var(--ds-alias-text-weight-regular)));--_list-item-text-size: var(--list-item-text-size, var(--mod-list-item-text-size, var(--ds-alias-text-size-sm-device)))}:host{position:relative;display:grid;box-sizing:border-box;grid-template-columns:var(--_list-item-grid-template-columns)}:host ::slotted([slot=content]){min-height:46px}:host #item{display:flex;flex-direction:row;flex-wrap:nowrap;align-items:center;gap:var(--_list-item-gap);width:100%;color:var(--_list-item-color);background:inherit;border:none;align-self:stretch;text-align:left;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--_list-item-title-family);padding:var(--_list-item-space) .25rem;padding-bottom:calc(var(--_list-item-space) + 2px);min-height:var(--_list-item-min-height)}:host #item ds-icon{flex-shrink:0}:host #item #content+ds-icon{--icon-size: var(--_list-item-action-icon-size);--icon-inner-size: var(--_list-item-action-icon-size)}:host #item #content{flex:1;display:flex;flex-direction:column;gap:var(--_list-item-content-gap);font-family:var(--_list-item-text-family);font-weight:var(--_list-item-text-weight)}:host #item #label{font-family:var(--_list-item-title-family);font-weight:var(--_list-item-title-weight);font-size:var(--_list-item-title-size);margin:0}:host #item #description{font-family:var(--_list-item-text-family);font-weight:var(--_list-item-text-weight);font-size:var(--_list-item-text-size);margin:0}:host #item:after{content:"";border-radius:var(--_list-item-border-radius);width:100%;position:absolute;bottom:0;left:0;right:0;height:var(--_list-item-border-width);background:var(--_list-item-border-color-base)}:host(.has-label-h1){--mod-list-item-title-size: var(--ds-heading-1-size-device)}:host(.has-label-3xl){--mod-list-item-title-size: var(--ds-heading-1-size-device)}:host(.has-label-h2){--mod-list-item-title-size: var(--ds-heading-2-size-device)}:host(.has-label-2xl){--mod-list-item-title-size: var(--ds-heading-2-size-device)}:host(.has-label-h3){--mod-list-item-title-size: var(--ds-heading-3-size-device)}:host(.has-label-xl){--mod-list-item-title-size: var(--ds-heading-3-size-device)}:host(.has-label-h4){--mod-list-item-title-size: var(--ds-heading-4-size-device)}:host(.has-label-lg){--mod-list-item-title-size: var(--ds-heading-4-size-device)}:host(.has-label-h5){--mod-list-item-title-size: var(--ds-heading-5-size-device)}:host(.has-label-base){--mod-list-item-title-size: var(--ds-heading-5-size-device)}:host(.is-link) #item,:host(.is-button) #item{-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;text-decoration:none;outline:none;cursor:pointer;background:var(--_list-item-background-base)}:host(.is-link) #item::-moz-focus-inner,:host(.is-button) #item::-moz-focus-inner{border:0}:host(.is-link) #item #content,:host(.is-button) #item #content{hyphens:auto;overflow-wrap:break-word;font-family:var(--_list-item-title-family);font-weight:var(--_list-item-title-weight);font-size:var(--_list-item-title-size);color:var(--ds-link-color-base)}@media(hover: hover)and (pointer: fine){:host(.is-link) #item:hover,:host(.is-link) #item.is-hovered,:host(.is-button) #item:hover,:host(.is-button) #item.is-hovered{background:var(--_list-item-background-hover)}}:host(.is-link) #item:active,:host(.is-link) #item.is-pressed,:host(.is-button) #item:active,:host(.is-button) #item.is-pressed{background:var(--_list-item-background-active);color:var(--ds-link-color-base-active)}:host(.is-link) #item:active #content,:host(.is-link) #item.is-pressed #content,:host(.is-button) #item:active #content,:host(.is-button) #item.is-pressed #content{color:var(--ds-link-color-base-active)}:host(.is-link) #item:active ds-icon,:host(.is-link) #item:active ::slotted(ds-icon),:host(.is-link) #item:active ::slotted(ds-badge),:host(.is-link) #item.is-pressed ds-icon,:host(.is-link) #item.is-pressed ::slotted(ds-icon),:host(.is-link) #item.is-pressed ::slotted(ds-badge),:host(.is-button) #item:active ds-icon,:host(.is-button) #item:active ::slotted(ds-icon),:host(.is-button) #item:active ::slotted(ds-badge),:host(.is-button) #item.is-pressed ds-icon,:host(.is-button) #item.is-pressed ::slotted(ds-icon),:host(.is-button) #item.is-pressed ::slotted(ds-badge){--icon-color: var(--ds-link-color-base-active)}:host(.is-link) #item:before,:host(.is-button) #item:before{content:"";position:absolute;top:0;left:0;right:0;bottom:0;z-index:1;border-radius:var(--ds-alias-radius-base);touch-action:manipulation;transition-property:box-shadow;transition-duration:.2s;transition-timing-function:cubic-bezier(0, 0, 0.2, 1)}:host(.is-link) #item:focus-visible:not(:active):before,:host(.is-link) #item.is-focused:not(:active):before,:host(.is-button) #item:focus-visible:not(:active):before,:host(.is-button) #item.is-focused:not(:active):before{box-shadow:var(--ds-alias-interaction-focus-color-border) 0 0 0 2px,var(--_list-item-focus) 0 0 0 5px !important}@media(hover: hover)and (pointer: fine){:host(.is-link) #item:hover:after,:host(.is-link) #item.is-hovered:after,:host(.is-button) #item:hover:after,:host(.is-button) #item.is-hovered:after,:host(.is-accordion) #item:hover:after,:host(.is-accordion) #item.is-hovered:after{background:var(--_list-item-border-color-hover)}}:host(.is-link) #item:active:after,:host(.is-link) #item.is-pressed:after,:host(.is-button) #item:active:after,:host(.is-button) #item.is-pressed:after,:host(.is-accordion) #item:active:after,:host(.is-accordion) #item.is-pressed:after{background:var(--_list-item-border-color-active)}:host(.is-accordion) ::slotted(p){padding-block:var(--_list-item-accordion-py)}:host(.is-accordion) ds-accordion{--accordion-summary-color-hover: var(--ds-link-color-base)}:host(.is-accordion) ds-accordion::part(header){background:var(--_list-item-background-base)}:host(.is-accordion) ds-accordion::part(summary){padding-right:.25rem}:host(.is-accordion) ds-accordion::part(summary):hover{background:var(--_list-item-background-hover)}:host(.is-accordion) ds-accordion::part(summary):active{background:var(--_list-item-background-active)}:host(.is-accordion) #accordion-content:after{content:"";border-radius:var(--_list-item-border-radius);width:100%;position:absolute;bottom:0;left:0;right:0;height:var(--_list-item-border-width);background:var(--_list-item-border-color-base)}:host(.is-disabled) #item{pointer-events:none !important;cursor:default !important;color:var(--ds-list-item-disabled)}:host(.is-disabled) #item #content{color:var(--ds-list-item-disabled)}:host(.is-disabled) #item ds-icon,:host(.is-disabled) #item ds-badge,:host(.is-disabled) #item ::slotted(ds-icon),:host(.is-disabled) #item ::slotted(ds-badge){--icon-color: var(--ds-list-item-disabled)}:host(.is-disabled) #item ds-badge,:host(.is-disabled) #item ::slotted(ds-badge){--badge-color-background: var(--ds-badge-color-grey-background);--badge-color-text: var(--ds-badge-color-grey-text)}
|
|
@@ -30,7 +30,7 @@ export class List {
|
|
|
30
30
|
*/
|
|
31
31
|
render() {
|
|
32
32
|
const ListTag = this.ordered ? 'ol' : 'ul';
|
|
33
|
-
return (h(Host, { key: '
|
|
33
|
+
return (h(Host, { key: '18a1ec534ee775626dd769eab44db3fc34e8081a' }, h(ListTag, { key: '5e79d69a0164b8061841ccaf3900b19eb1260f66', id: "list", part: "list" }, h("slot", { key: '0274b66daeadd3c1675cce77ac75f2e26c69b9c0' }))));
|
|
34
34
|
}
|
|
35
35
|
static get is() { return "ds-list"; }
|
|
36
36
|
static get encapsulation() { return "shadow"; }
|
|
@@ -140,12 +140,12 @@ export class Logo {
|
|
|
140
140
|
render() {
|
|
141
141
|
const size = normalizeDeprecatedTShirtSize(this.size) || '';
|
|
142
142
|
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() }));
|
|
143
|
-
return (h(Host, { key: '
|
|
143
|
+
return (h(Host, { key: '49c188a3abc26836396e1b81abcc1afde8f27b80', class: {
|
|
144
144
|
'is-animated': this.isAnimated,
|
|
145
145
|
'is-white': this.color === 'white',
|
|
146
146
|
'is-sm': size === 'sm',
|
|
147
147
|
'is-lg': size === 'lg',
|
|
148
|
-
} }, h("div", { key: '
|
|
148
|
+
} }, h("div", { key: 'b7658409d4580d88a45744c608790b76fa21983e', id: "animated", part: "animated", ref: el => (this.animatedLogoElement = el), "aria-hidden": "true", style: {
|
|
149
149
|
display: this.isAnimated ? 'block' : 'none',
|
|
150
150
|
width: this.getHeight() + 'px',
|
|
151
151
|
height: this.getHeight() + 'px',
|
|
@@ -17,7 +17,7 @@ export class ModalBody {
|
|
|
17
17
|
this.el.slot = 'body';
|
|
18
18
|
}
|
|
19
19
|
render() {
|
|
20
|
-
return (h(Host, { key: '
|
|
20
|
+
return (h(Host, { key: '17c373c9b96242ab98ec193642582c5418c5a24b' }, h("slot", { key: '459e1ac594f03d23e9c9854501485f91aa148d0a' })));
|
|
21
21
|
}
|
|
22
22
|
static get is() { return "ds-modal-body"; }
|
|
23
23
|
static get encapsulation() { return "shadow"; }
|
|
@@ -19,7 +19,7 @@ export class ModalHeader {
|
|
|
19
19
|
this.el.slot = 'header';
|
|
20
20
|
}
|
|
21
21
|
render() {
|
|
22
|
-
return (h(Host, { key: '
|
|
22
|
+
return (h(Host, { key: 'b164ba40c3979cc9639c0c3adaca67e14effa85e', style: { display: 'contents' } }, h("slot", { key: '20c51614ea66de41b838e7d411542011288c1985' })));
|
|
23
23
|
}
|
|
24
24
|
static get is() { return "ds-modal-header"; }
|
|
25
25
|
static get elementRef() { return "el"; }
|
|
@@ -156,11 +156,11 @@ export class Modal {
|
|
|
156
156
|
* ------------------------------------------------------
|
|
157
157
|
*/
|
|
158
158
|
render() {
|
|
159
|
-
return (h(Host, { key: '
|
|
159
|
+
return (h(Host, { key: '9bbdd2e3675ebcdf8c9307124efd5a6dbf6ed3d2', class: {
|
|
160
160
|
'is-open': this.isOpen,
|
|
161
161
|
'is-animated': this.animated,
|
|
162
162
|
'is-fullscreen': this.fullscreen,
|
|
163
|
-
}, style: { '--_modal-width': `${this.modalWidth}px` } }, h("dialog", { key: '
|
|
163
|
+
}, style: { '--_modal-width': `${this.modalWidth}px` } }, h("dialog", { key: 'dc18ceb8343d55b7a85d8a322d8f47fd2d8533a7', part: "dialog", ref: el => (this.dialogEl = el), "aria-labelledby": "modal-title", "aria-describedby": "modal-body", onClick: this.handleBackdropClick }, this.closable && h("ds-close", { key: '4fcca7c147ab406deb3471c3d4a8c10b8a503c81', part: "close", onClick: () => (this.open = false) }), h("h2", { key: '5ee65427e9c4eeaea3e165bbd822df406b2229dd', id: "modal-title", part: "title" }, h("slot", { key: '618d0ec490196852e4e55e2f6ed984e292c6f944', name: "header" })), h("div", { key: '6ac9a5ab80df8ae47e41867dbeceb8682cd61c0c', id: "modal-body", part: "body" }, h("slot", { key: '65b86fa28a2c5bfb3c95d5a12f185dab36fd7c25', name: "body" })), h("div", { key: '49d632c6b1791c90e1acd89fc3004e0fc6bb3458', id: "modal-actions", part: "actions" }, h("slot", { key: '4b6fb255556a20c37bb79fcab95b0619bdace7a8', name: "actions" })))));
|
|
164
164
|
}
|
|
165
165
|
static get is() { return "ds-modal"; }
|
|
166
166
|
static get encapsulation() { return "shadow"; }
|
|
@@ -229,14 +229,14 @@ export class Navbar {
|
|
|
229
229
|
const isMenuOpen = this.isSidebarOpen;
|
|
230
230
|
const isSidebarMode = isTouch || this.isOverflowing;
|
|
231
231
|
const i18n = i18nDsNavbar[this.language];
|
|
232
|
-
return (h(Host, { key: '
|
|
232
|
+
return (h(Host, { key: '4751141c9276638d58183322206828c49f38d67a', class: {
|
|
233
233
|
'is-open': isMenuOpen,
|
|
234
234
|
'is-sidebar-mode': isSidebarMode,
|
|
235
235
|
'is-light': this.light,
|
|
236
|
-
} }, h("nav", { key: '
|
|
236
|
+
} }, h("nav", { key: 'b142ac6bf25cdd48aff78158ebc49cd79889db0f', ref: el => (this.navEl = el), id: "nav", role: "navigation", "aria-label": i18n.mainNavigation }, h("div", { key: '056bda2d8ba50d01e34f4c000be406cc6ed546fe', id: "container", class: {
|
|
237
237
|
'is-fluid': this.container === 'fluid',
|
|
238
238
|
'is-compact': this.container === 'compact',
|
|
239
|
-
}, ref: el => (this.containerEl = el) }, h("slot", { key: '
|
|
239
|
+
}, ref: el => (this.containerEl = el) }, h("slot", { key: '837d06a2d3205deb6f155322cc5f1a9484835cbb', name: "brand" }), h("slot", { key: 'c50410f1c714b5f6d9aa9603312d3642aae3f342', name: "title" }), h("div", { key: '047cf2da3762320ab02e1ab305b58f3c074c6c0d', id: "content" }, !isSidebarMode && (h("div", { key: '2e0010d0470373050d84d0f099fc73156e3f3099', id: "menu" }, h("div", { key: 'f7b8c0e885f747ae2ee03f1ff223484be8699cf5', id: "menu-start" }, h("slot", { key: 'a7a172470428bfc5668f25d6387c33b281303aa1', name: "menu-start" })), h("div", { key: 'a31d2061cc68cfba618b1f7efd9200bcb88a237a', id: "menu-end" }, h("slot", { key: '2a7aa495db2db5313f84d4f98ab6f52151caaf95', name: "menu-end" })))), h("div", { key: 'c596c26adaa4fdef8063fc36f1470e4b0afc8b9c', id: "actions" }, h("slot", { key: 'a7b4f6c2522715aeb5c536c8f022b74913839969', name: "actions" }), isSidebarMode && (h("button", { key: '844afe3c1617c51f913b2b7b155fadf7dd788caa', ref: el => (this.burgerButton = el), id: "hamburger", type: "button", title: isMenuOpen ? i18n.closeMenu : i18n.openMenu, "aria-label": isMenuOpen ? i18n.closeMenu : i18n.openMenu, "aria-expanded": isMenuOpen, "aria-controls": "sidebar", onClick: () => this.handleHamburgerClick() }, h("ds-icon", { key: 'fea68d648cddd553deaea422f78738ffd33ae329', name: isMenuOpen ? 'close' : 'menu-bars', size: "", color: "white" })))))), isSidebarMode && (h("aside", { key: 'd7cca3a0a9c98262baf322ad17c8480142c4856f', id: "sidebar", role: "dialog", "aria-modal": "true", "aria-label": i18n.navigationMenu, class: { 'is-open': isMenuOpen }, ref: el => (this.sidebarEl = el) }, h("div", { key: 'e59e4562f388c3e17b757be5532292271bf97312', id: "sidebar-backdrop", onClick: this.handleBackdropClick }), h("div", { key: '7e1813c533e5ae1edb40b4a5f3cb89eff9198e2d', id: "sidebar-panel", tabindex: "-1" }, h("div", { key: '20989ff5635db54ec7e6a6e6c4fb8d9f0f95ee01', id: "sidebar-content" }, h("div", { key: '91b497cd27858444399806749434126d508551d7', id: "sidebar-start" }, h("slot", { key: '3666487b26799818741b7e5022a0c90e7485adb3', name: "menu-start" })), h("div", { key: 'f30d9b73f3b706acc184eb39b2e555d58259d813', id: "sidebar-end" }, h("slot", { key: '36d1d16c15f23413a5fcd8af087b4c5a8bf4f2fc', name: "menu-end" })))))))));
|
|
240
240
|
}
|
|
241
241
|
static get is() { return "ds-navbar"; }
|
|
242
242
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1 +1 @@
|
|
|
1
|
-
:host{--_notification-position: var(--notification-position, var(--mod-notification-position, static));--_notification-top: var(--notification-top, var(--mod-notification-top));--_notification-right: var(--notification-right, var(--mod-notification-right));--_notification-bottom: var(--notification-bottom, var(--mod-notification-bottom));--_notification-left: var(--notification-left, var(--mod-notification-left));position:var(--_notification-position);top:var(--_notification-top);right:var(--_notification-right);bottom:var(--_notification-bottom);left:var(--_notification-left);--_notification-m: var(--notification-m, var(--mod-notification-m, 0));--_notification-my: var(--notification-my, var(--mod-notification-my));--_notification-mx: var(--notification-mx, var(--mod-notification-mx));--_notification-ml: var(--notification-ml, var(--mod-notification-ml));--_notification-mr: var(--notification-mr, var(--mod-notification-mr));--_notification-mt: var(--notification-mt, var(--mod-notification-mt));--_notification-mb: var(--notification-mb, var(--mod-notification-mb));margin:var(--_notification-m);margin-inline:var(--_notification-mx);margin-block:var(--_notification-my);margin-left:var(--_notification-ml);margin-right:var(--_notification-mr);margin-top:var(--_notification-mt);margin-bottom:var(--_notification-mb);--_notification-radius: var(--notification-radius, var(--mod-notification-radius, var(--ds-notification-radius)));--_notification-color-background: var(--notification-color-background, var(--mod-notification-color-background, var(--ds-notification-color-base-background)));--_notification-color-border: var(--notification-color-border, var(--mod-notification-color-border, var(--ds-notification-color-base-border)));--_notification-color-text: var(--notification-color-text, var(--mod-notification-color-text, var(--ds-notification-color-base-text)));--_notification-heading-family: var(--notification-heading-family, var(--mod-notification-heading-family, var(--ds-text-family-heading)));--_notification-heading-weight: var(--notification-heading-weight, var(--mod-notification-heading-weight, var(--ds-text-weight-bold)));--_notification-heading-size: var(--notification-heading-size, var(--mod-notification-heading-size, var(--ds-text-size-lg-device)));--_notification-heading-line-height: var(--notification-heading-line-height, var(--mod-notification-heading-line-height, var(--ds-text-line-height-heading)));--_notification-content-family: var(--notification-content-family, var(--mod-notification-content-family, var(--ds-text-family-body)));--_notification-content-weight: var(--notification-content-weight, var(--mod-notification-content-weight, inherit));--_notification-content-size: var(--notification-content-size, var(--mod-notification-content-size, var(--ds-text-size-base-device)));--_notification-content-line-height: var(--notification-content-line-height, var(--mod-notification-content-line-height, var(--ds-text-line-height-body)));--_notification-icon: var(--notification-icon, var(--mod-notification-icon, var(--ds-notification-color-base-icon)));--_notification-icon-display: var(--notification-icon-display, var(--mod-notification-icon-display, block));--_notification-space: var(--notification-space, var(--mod-notification-space, var(--ds-card-space-base-device, 1.5rem)));--_notification-icon-space: var(--notification-icon-space, var(--mod-notification-icon-space, 1.5rem));--_notification-close-offset: var(--notification-close-offset, var(--mod-notification-close-offset, 2rem));--_notification-gap: var(--notification-gap, var(--mod-notification-gap, 0.125rem));--_notification-close-position: var(--notification-close-position, var(--mod-notification-close-position, absolute));--_notification-close-right: var(--notification-close-right, var(--mod-notification-close-right, var(--_notification-space)));--_notification-close-top: var(--notification-close-top, var(--mod-notification-close-top, var(--_notification-space)));--_notification-animation-start-opacity: var(--notification-animation-start-opacity, var(--mod-notification-animation-start-opacity, 1));--_notification-animation-start-transform: var(--notification-animation-start-transform, var(--mod-notification-animation-start-transform, none));--_notification-animation-transition: var(--notification-animation-transition, var(--mod-notification-animation-transition, none));--_notification-animation-end-opacity: var(--notification-animation-end-opacity, var(--mod-notification-animation-end-opacity, 1));--_notification-animation-end-transform: var(--notification-animation-end-transform, var(--mod-notification-animation-end-transform, none))}#notification{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;flex:1;position:relative;hyphens:auto;border:var(--ds-alias-border-width-base) solid var(--_notification-color-border);border-radius:var(--_notification-radius);background:var(--_notification-color-background);color:var(--_notification-color-text);padding-top:var(--_notification-space);padding-right:var(--_notification-space);padding-bottom:var(--_notification-space);padding-left:calc(var(--_notification-space) + var(--_notification-icon-space));display:flex;flex-direction:column;gap:var(--_notification-gap)}#notification ds-close,#notification .close{position:var(--_notification-close-position);top:var(--_notification-close-top);right:var(--_notification-close-right)}#notification>h2{font-family:var(--_notification-heading-family);font-weight:var(--_notification-heading-weight);line-height:var(--_notification-heading-line-height);font-size:var(--_notification-heading-size);margin:0 !important}#notification:has(.close)>h2::before,#notification:has(ds-close)>h2::before{content:"";float:right;width:24px;height:calc(var(--_notification-heading-line-height)*16px)}#notification>span,#notification>p{font-family:var(--_notification-content-family);font-size:var(--_notification-content-size);font-weight:var(--_notification-content-weight);line-height:var(--_notification-content-line-height);margin:0 !important}#notification::before{display:var(--_notification-icon-display);background-color:currentColor;color:currentColor;forced-color-adjust:preserve-parent-color;position:absolute;height:1.5rem;width:1.5rem;left:-0.25rem;top:calc((var(--_notification-space)));transform:translateX(var(--_notification-space));content:"";-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain;mask-image:var(--_notification-icon);-webkit-mask-image:var(--_notification-icon)}:host(.has-no-icon){--mod-notification-icon-display: none;--mod-notification-icon-space: 0rem}:host(.is-info){--mod-notification-color-text: var(--ds-notification-color-info-text);--mod-notification-color-border: var(--ds-notification-color-info-border);--mod-notification-color-background: var(--ds-notification-color-info-background);--mod-notification-icon: var(--ds-notification-color-info-icon)}:host(.is-success){--mod-notification-color-text: var(--ds-notification-color-success-text);--mod-notification-color-border: var(--ds-notification-color-success-border);--mod-notification-color-background: var(--ds-notification-color-success-background);--mod-notification-icon: var(--ds-notification-color-success-icon)}:host(.is-warning){--mod-notification-color-text: var(--ds-notification-color-warning-text);--mod-notification-color-border: var(--ds-notification-color-warning-border);--mod-notification-color-background: var(--ds-notification-color-warning-background);--mod-notification-icon: var(--ds-notification-color-warning-icon)}:host(.is-danger){--mod-notification-color-text: var(--ds-notification-color-danger-text);--mod-notification-color-border: var(--ds-notification-color-danger-border);--mod-notification-color-background: var(--ds-notification-color-danger-background);--mod-notification-icon: var(--ds-notification-color-danger-icon)}:host(.is-outline-base){--mod-notification-color-text: var(--ds-notification-color-outline-base-text);--mod-notification-color-border: var(--ds-notification-color-outline-base-border);--mod-notification-color-background: var(--ds-notification-color-outline-base-background);--mod-notification-icon: var(--ds-notification-color-outline-base-icon)}:host(.is-outline-purple){--mod-notification-color-text: var(--ds-notification-color-outline-purple-text);--mod-notification-color-border: var(--ds-notification-color-outline-purple-border);--mod-notification-color-background: var(--ds-notification-color-outline-purple-background);--mod-notification-icon: var(--ds-notification-color-outline-purple-icon)}:host(.is-outline-green){--mod-notification-color-text: var(--ds-notification-color-outline-green-text);--mod-notification-color-border: var(--ds-notification-color-outline-green-border);--mod-notification-color-background: var(--ds-notification-color-outline-green-background);--mod-notification-icon: var(--ds-notification-color-outline-green-icon)}:host(.is-outline-yellow){--mod-notification-color-text: var(--ds-notification-color-outline-yellow-text);--mod-notification-color-border: var(--ds-notification-color-outline-yellow-border);--mod-notification-color-background: var(--ds-notification-color-outline-yellow-background);--mod-notification-icon: var(--ds-notification-color-outline-yellow-icon)}:host(.is-outline-red){--mod-notification-color-text: var(--ds-notification-color-outline-red-text);--mod-notification-color-border: var(--ds-notification-color-outline-red-border);--mod-notification-color-background: var(--ds-notification-color-outline-red-background);--mod-notification-icon: var(--ds-notification-color-outline-red-icon)}:host(.is-sm){--mod-notification-space: var(--ds-card-space-sm-device)}:host(.is-md){--mod-notification-space: var(--ds-card-space-md-device)}:host(.is-lg){--mod-notification-space: var(--ds-card-space-lg-device)}:host{display:block}
|
|
1
|
+
:host{--_notification-position: var(--notification-position, var(--mod-notification-position, static));--_notification-top: var(--notification-top, var(--mod-notification-top));--_notification-right: var(--notification-right, var(--mod-notification-right));--_notification-bottom: var(--notification-bottom, var(--mod-notification-bottom));--_notification-left: var(--notification-left, var(--mod-notification-left));position:var(--_notification-position);top:var(--_notification-top);right:var(--_notification-right);bottom:var(--_notification-bottom);left:var(--_notification-left);--_notification-m: var(--notification-m, var(--mod-notification-m, 0));--_notification-my: var(--notification-my, var(--mod-notification-my));--_notification-mx: var(--notification-mx, var(--mod-notification-mx));--_notification-ml: var(--notification-ml, var(--mod-notification-ml));--_notification-mr: var(--notification-mr, var(--mod-notification-mr));--_notification-mt: var(--notification-mt, var(--mod-notification-mt));--_notification-mb: var(--notification-mb, var(--mod-notification-mb));margin:var(--_notification-m);margin-inline:var(--_notification-mx);margin-block:var(--_notification-my);margin-left:var(--_notification-ml);margin-right:var(--_notification-mr);margin-top:var(--_notification-mt);margin-bottom:var(--_notification-mb);--_notification-radius: var(--notification-radius, var(--mod-notification-radius, var(--ds-notification-radius)));--_notification-color-background: var(--notification-color-background, var(--mod-notification-color-background, var(--ds-notification-color-base-background)));--_notification-color-border: var(--notification-color-border, var(--mod-notification-color-border, var(--ds-notification-color-base-border)));--_notification-color-text: var(--notification-color-text, var(--mod-notification-color-text, var(--ds-notification-color-base-text)));--_notification-heading-family: var(--notification-heading-family, var(--mod-notification-heading-family, var(--ds-alias-text-family-heading)));--_notification-heading-weight: var(--notification-heading-weight, var(--mod-notification-heading-weight, var(--ds-alias-text-weight-bold)));--_notification-heading-size: var(--notification-heading-size, var(--mod-notification-heading-size, var(--ds-alias-text-size-lg-device)));--_notification-heading-line-height: var(--notification-heading-line-height, var(--mod-notification-heading-line-height, var(--ds-alias-text-line-height-heading)));--_notification-content-family: var(--notification-content-family, var(--mod-notification-content-family, var(--ds-alias-text-family-body)));--_notification-content-weight: var(--notification-content-weight, var(--mod-notification-content-weight, inherit));--_notification-content-size: var(--notification-content-size, var(--mod-notification-content-size, var(--ds-alias-text-size-base-device)));--_notification-content-line-height: var(--notification-content-line-height, var(--mod-notification-content-line-height, var(--ds-alias-text-line-height-body)));--_notification-icon: var(--notification-icon, var(--mod-notification-icon, var(--ds-notification-color-base-icon)));--_notification-icon-display: var(--notification-icon-display, var(--mod-notification-icon-display, block));--_notification-space: var(--notification-space, var(--mod-notification-space, var(--ds-card-space-base-device, 1.5rem)));--_notification-icon-space: var(--notification-icon-space, var(--mod-notification-icon-space, 1.5rem));--_notification-close-offset: var(--notification-close-offset, var(--mod-notification-close-offset, 2rem));--_notification-gap: var(--notification-gap, var(--mod-notification-gap, 0.125rem));--_notification-close-position: var(--notification-close-position, var(--mod-notification-close-position, absolute));--_notification-close-right: var(--notification-close-right, var(--mod-notification-close-right, var(--_notification-space)));--_notification-close-top: var(--notification-close-top, var(--mod-notification-close-top, var(--_notification-space)));--_notification-animation-start-opacity: var(--notification-animation-start-opacity, var(--mod-notification-animation-start-opacity, 1));--_notification-animation-start-transform: var(--notification-animation-start-transform, var(--mod-notification-animation-start-transform, none));--_notification-animation-transition: var(--notification-animation-transition, var(--mod-notification-animation-transition, none));--_notification-animation-end-opacity: var(--notification-animation-end-opacity, var(--mod-notification-animation-end-opacity, 1));--_notification-animation-end-transform: var(--notification-animation-end-transform, var(--mod-notification-animation-end-transform, none))}#notification{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;flex:1;position:relative;hyphens:auto;border:var(--ds-alias-border-width-base) solid var(--_notification-color-border);border-radius:var(--_notification-radius);background:var(--_notification-color-background);color:var(--_notification-color-text);padding-top:var(--_notification-space);padding-right:var(--_notification-space);padding-bottom:var(--_notification-space);padding-left:calc(var(--_notification-space) + var(--_notification-icon-space));display:flex;flex-direction:column;gap:var(--_notification-gap)}#notification ds-close,#notification .close{position:var(--_notification-close-position);top:var(--_notification-close-top);right:var(--_notification-close-right)}#notification>h2{font-family:var(--_notification-heading-family);font-weight:var(--_notification-heading-weight);line-height:var(--_notification-heading-line-height);font-size:var(--_notification-heading-size);margin:0 !important}#notification:has(.close)>h2::before,#notification:has(ds-close)>h2::before{content:"";float:right;width:24px;height:calc(var(--_notification-heading-line-height)*16px)}#notification>span,#notification>p{font-family:var(--_notification-content-family);font-size:var(--_notification-content-size);font-weight:var(--_notification-content-weight);line-height:var(--_notification-content-line-height);margin:0 !important}#notification::before{display:var(--_notification-icon-display);background-color:currentColor;color:currentColor;forced-color-adjust:preserve-parent-color;position:absolute;height:1.5rem;width:1.5rem;left:-0.25rem;top:calc((var(--_notification-space)));transform:translateX(var(--_notification-space));content:"";-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain;mask-image:var(--_notification-icon);-webkit-mask-image:var(--_notification-icon)}:host(.has-no-icon){--mod-notification-icon-display: none;--mod-notification-icon-space: 0rem}:host(.is-info){--mod-notification-color-text: var(--ds-notification-color-info-text);--mod-notification-color-border: var(--ds-notification-color-info-border);--mod-notification-color-background: var(--ds-notification-color-info-background);--mod-notification-icon: var(--ds-notification-color-info-icon)}:host(.is-success){--mod-notification-color-text: var(--ds-notification-color-success-text);--mod-notification-color-border: var(--ds-notification-color-success-border);--mod-notification-color-background: var(--ds-notification-color-success-background);--mod-notification-icon: var(--ds-notification-color-success-icon)}:host(.is-warning){--mod-notification-color-text: var(--ds-notification-color-warning-text);--mod-notification-color-border: var(--ds-notification-color-warning-border);--mod-notification-color-background: var(--ds-notification-color-warning-background);--mod-notification-icon: var(--ds-notification-color-warning-icon)}:host(.is-danger){--mod-notification-color-text: var(--ds-notification-color-danger-text);--mod-notification-color-border: var(--ds-notification-color-danger-border);--mod-notification-color-background: var(--ds-notification-color-danger-background);--mod-notification-icon: var(--ds-notification-color-danger-icon)}:host(.is-outline-base){--mod-notification-color-text: var(--ds-notification-color-outline-base-text);--mod-notification-color-border: var(--ds-notification-color-outline-base-border);--mod-notification-color-background: var(--ds-notification-color-outline-base-background);--mod-notification-icon: var(--ds-notification-color-outline-base-icon)}:host(.is-outline-purple){--mod-notification-color-text: var(--ds-notification-color-outline-purple-text);--mod-notification-color-border: var(--ds-notification-color-outline-purple-border);--mod-notification-color-background: var(--ds-notification-color-outline-purple-background);--mod-notification-icon: var(--ds-notification-color-outline-purple-icon)}:host(.is-outline-green){--mod-notification-color-text: var(--ds-notification-color-outline-green-text);--mod-notification-color-border: var(--ds-notification-color-outline-green-border);--mod-notification-color-background: var(--ds-notification-color-outline-green-background);--mod-notification-icon: var(--ds-notification-color-outline-green-icon)}:host(.is-outline-yellow){--mod-notification-color-text: var(--ds-notification-color-outline-yellow-text);--mod-notification-color-border: var(--ds-notification-color-outline-yellow-border);--mod-notification-color-background: var(--ds-notification-color-outline-yellow-background);--mod-notification-icon: var(--ds-notification-color-outline-yellow-icon)}:host(.is-outline-red){--mod-notification-color-text: var(--ds-notification-color-outline-red-text);--mod-notification-color-border: var(--ds-notification-color-outline-red-border);--mod-notification-color-background: var(--ds-notification-color-outline-red-background);--mod-notification-icon: var(--ds-notification-color-outline-red-icon)}:host(.is-sm){--mod-notification-space: var(--ds-card-space-sm-device)}:host(.is-md){--mod-notification-space: var(--ds-card-space-md-device)}:host(.is-lg){--mod-notification-space: var(--ds-card-space-lg-device)}:host{display:block}
|
|
@@ -77,14 +77,14 @@ export class Notification {
|
|
|
77
77
|
const a11yAttributes = this.alert
|
|
78
78
|
? { 'role': 'alert', 'aria-live': 'assertive', 'aria-atomic': 'true' }
|
|
79
79
|
: { 'role': 'status', 'aria-live': 'polite', 'aria-atomic': 'true' };
|
|
80
|
-
return (h(Host, Object.assign({ key: '
|
|
80
|
+
return (h(Host, Object.assign({ key: 'f3e829a86b22c64fe93b06b2664b398a7248d49f' }, a11yAttributes, { class: {
|
|
81
81
|
'has-no-icon': this.noIcon,
|
|
82
82
|
[`is-${this.color}`]: hasValue(this.color),
|
|
83
83
|
[`is-${size}`]: hasValue(this.size),
|
|
84
|
-
} }), h("section", { key: '
|
|
84
|
+
} }), h("section", { key: 'f8ff4cdc8379ec73ac00a6654478a0039dd746f1', id: "notification", part: "section" }, this.closable && (h("ds-close", { key: 'f72f440db26de1ef40ca24ec9c9f06015ce31126', part: "close", onClick: ev => {
|
|
85
85
|
stopEventBubbling(ev);
|
|
86
86
|
this.close();
|
|
87
|
-
} })), hasValue(this.heading) && h("h2", { key: '
|
|
87
|
+
} })), hasValue(this.heading) && h("h2", { key: 'adae5186e4009153c2d93645bdf8ab49e4da9df7', part: "heading" }, this.heading), h("span", { key: '979fc05e46a6c9220826efeac704f87f23f9ce49' }, h("slot", { key: '88929c8c561498c89755da6bd6d36819a7e6d390' })))));
|
|
88
88
|
}
|
|
89
89
|
static get is() { return "ds-notification"; }
|
|
90
90
|
static get encapsulation() { return "shadow"; }
|
|
@@ -292,7 +292,7 @@ export class NumberInput {
|
|
|
292
292
|
* ------------------------------------------------------
|
|
293
293
|
*/
|
|
294
294
|
render() {
|
|
295
|
-
return (h(Field, { key: '
|
|
295
|
+
return (h(Field, { key: 'a7ccea6d0b98bd447e9fac8af180019eddbaff7b', disabled: this.disabled, color: this.color, invalid: this.invalid, label: this.label, description: this.description, invalidText: this.invalidText, required: this.required, language: this.language }, h("input", Object.assign({ key: '76078e54d6f2dbfa6ad348e09b9987b741b8bdc1', id: "input", part: "input", type: "text", inputMode: "decimal", pattern: this.inputPattern, ref: el => (this.control.nativeEl = el), "aria-describedby": "description", "aria-invalid": this.invalid === true ? 'true' : 'false', name: this.name, disabled: this.disabled, placeholder: this.placeholder || '', readonly: this.readonly, required: this.required, min: this.min, max: this.max, value: this.nativeInputValue, onInput: ev => this.handleInput(ev), onFocus: ev => this.handleFocus(ev), onBlur: ev => this.handleBlur(ev), onClick: ev => this.control.onClick(ev), onKeyDown: ev => this.handleKeydown(ev), onKeyPress: ev => this.dsKeyPress.emit(ev) }, this.inheritedAttributes))));
|
|
296
296
|
}
|
|
297
297
|
static get is() { return "ds-number-input"; }
|
|
298
298
|
static get encapsulation() { return "shadow"; }
|
|
@@ -172,28 +172,28 @@ export class Pagination {
|
|
|
172
172
|
const leftControlTitle = this.textPrevious || i18nControlLabel[this.language].left;
|
|
173
173
|
const rightControlTitle = this.textNext || i18nControlLabel[this.language].right;
|
|
174
174
|
const hasBasicNavigationButtons = !hasValue(this.variant) || (isVariantDots && this.totalPages <= 5);
|
|
175
|
-
const DotsWithText = () => (h("span", { key: '
|
|
176
|
-
return (h(Host, { key: '
|
|
175
|
+
const DotsWithText = () => (h("span", { key: 'e5df59a6b0f2955c7ffe0a1b8ae05828d089a03a', class: "dots" }, h("strong", { key: '8aec14c8f62c54ad23696b7baa6c5214ccc3d625' }, this.value), h("span", { key: 'a3ed5e5e68ea3706cc490f7a859a4d6ecbb38ff5' }, "/"), h("span", { key: 'a621e7f072a7214b7fef82b1672742df94d45ba9' }, this.totalPages)));
|
|
176
|
+
return (h(Host, { key: 'e4fde2b2b21cdd1dd28df93f2e7a137c284760ef', class: {
|
|
177
177
|
'is-sticky': this.sticky,
|
|
178
178
|
'is-disabled': this.disabled,
|
|
179
179
|
[`is-variant-${this.variant}`]: hasValue(this.variant),
|
|
180
180
|
[`is-size-${this.size}`]: hasValue(this.size),
|
|
181
181
|
[`is-align-${this.align}`]: hasValue(this.align),
|
|
182
|
-
} }, h("nav", { key: '
|
|
182
|
+
} }, h("nav", { key: '15343917a6da89b56809ba627398044f25a8a055', class: {}, id: "nav", part: "navigation", role: "navigation", "aria-label": labelControlTitle }, !this.disabled && (h("button", { key: '0b779674998a104b80a81cc9729c53800472815f', id: "previous", part: "previous", "aria-label": leftControlTitle, title: leftControlTitle, class: {
|
|
183
183
|
'button': true,
|
|
184
184
|
'is-square': true,
|
|
185
185
|
'is-disabled': this.value < 2,
|
|
186
186
|
'is-flat': flat,
|
|
187
187
|
[buttonColor]: true,
|
|
188
188
|
[buttonSize]: true,
|
|
189
|
-
}, disabled: this.value < 2, onClick: () => this.previous() }, h("ds-icon", { key: '
|
|
189
|
+
}, disabled: this.value < 2, onClick: () => this.previous() }, h("ds-icon", { key: '297a1a9a9cd53f79a41fcac21d5a1e2abe4621c8', name: "nav-go-left", size: "sm", disabled: this.value < 2 }))), !this.disabled && (h("button", { key: 'b6fc6ce84a9fa1ebc08a1ea1ad10566c369bba71', id: "next", part: "next", "aria-label": rightControlTitle, title: rightControlTitle, class: {
|
|
190
190
|
'button': true,
|
|
191
191
|
'is-square': true,
|
|
192
192
|
'is-disabled': this.value === this.totalPages,
|
|
193
193
|
'is-flat': flat,
|
|
194
194
|
[buttonColor]: true,
|
|
195
195
|
[buttonSize]: true,
|
|
196
|
-
}, disabled: this.value === this.totalPages, onClick: () => this.next() }, h("ds-icon", { key: '
|
|
196
|
+
}, disabled: this.value === this.totalPages, onClick: () => this.next() }, h("ds-icon", { key: '6764ae6b035917963f07f20ae172e23894c1bd32', name: "nav-go-right", size: "sm", disabled: this.value === this.totalPages }))), hasBasicNavigationButtons ? (h("ul", { class: { dots: hasValue(this.variant) }, part: "list" }, items)) : (h(DotsWithText, null)))));
|
|
197
197
|
}
|
|
198
198
|
static get is() { return "ds-pagination"; }
|
|
199
199
|
static get encapsulation() { return "shadow"; }
|