@baloise/ds-core 20.0.0-next.6 → 20.0.0-next.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/all.d.ts +2 -0
- package/components/all.js +3 -0
- package/components/ds-accordion.js +1 -1
- package/components/ds-app.js +1 -1
- package/components/ds-badge.js +1 -1
- package/components/ds-button-group.js +1 -1
- package/components/ds-button.js +1 -1
- package/components/ds-card-actions.js +1 -1
- package/components/ds-card-content.js +1 -1
- package/components/ds-card-subtitle.js +1 -1
- package/components/ds-card-title.js +1 -1
- package/components/ds-card.js +1 -1
- package/components/ds-carousel.js +1 -1
- package/components/ds-checkbox-group.js +1 -1
- package/components/ds-checkbox.js +1 -1
- package/components/ds-close.js +1 -1
- package/components/ds-content.js +1 -1
- package/components/ds-data-item.js +1 -1
- package/components/ds-date.js +1 -1
- package/components/ds-drawer.js +1 -1
- package/components/ds-file-upload.js +1 -1
- package/components/ds-footer.js +1 -1
- package/components/ds-heading.js +1 -1
- package/components/ds-hint.js +1 -1
- package/components/ds-icon.js +1 -1
- package/components/ds-input-slider.d.ts +11 -0
- package/components/ds-input-slider.js +4 -0
- package/components/ds-input.js +1 -1
- package/components/ds-item.js +1 -1
- package/components/ds-label.js +1 -1
- package/components/ds-list.js +1 -1
- package/components/ds-logo.js +1 -1
- package/components/ds-modal-body.js +1 -1
- package/components/ds-modal-header.js +1 -1
- package/components/ds-modal.js +1 -1
- package/components/ds-navbar.js +1 -1
- package/components/ds-notification.js +1 -1
- package/components/ds-number-input.js +1 -1
- package/components/ds-pagination.js +1 -1
- package/components/ds-popup.js +1 -1
- package/components/ds-progress-bar.js +1 -1
- package/components/ds-radio-group.js +1 -1
- package/components/ds-radio.js +1 -1
- package/components/ds-segment-item.js +1 -1
- package/components/ds-segment.js +1 -1
- package/components/ds-select-optgroup.js +1 -1
- package/components/ds-select-option.js +1 -1
- package/components/ds-select.js +1 -1
- package/components/ds-shape.js +1 -1
- package/components/ds-snackbar.js +1 -1
- package/components/ds-spinner.js +1 -1
- package/components/ds-stack.js +1 -1
- package/components/ds-step-panel.js +1 -1
- package/components/ds-step.js +1 -1
- package/components/ds-tab-panel.js +1 -1
- package/components/ds-tabs.js +1 -1
- package/components/ds-tag-group.js +1 -1
- package/components/ds-tag.js +1 -1
- package/components/ds-text.js +1 -1
- package/components/ds-textarea.js +1 -1
- package/components/ds-toast.js +1 -1
- package/components/ds-toggle.js +1 -1
- package/components/ds-tooltip.js +1 -1
- package/components/index.js +1 -1
- package/components/{p-DenZRIeA.js → p-BXJT6RzI.js} +1 -1
- package/components/p-BdLq-Ecc.js +4 -0
- package/components/{p-CjIxf5zy.js → p-BmKEBYP4.js} +1 -1
- package/components/p-BoWAkGY5.js +4 -0
- package/components/{p-DYTOWDAA.js → p-CTbJFS-e.js} +1 -1
- package/components/{p-DokkRjWC.js → p-CaMOovXn.js} +1 -1
- package/components/p-Ce8PV2ZO.js +4 -0
- package/components/p-CmBtAxar.js +4 -0
- package/components/p-D8gpyiFZ.js +4 -0
- package/components/{p-ng5ZzTOj.js → p-DBX_haol.js} +1 -1
- package/components/{p-BfXZJ1Fe.js → p-DPbhygsR.js} +1 -1
- package/components/{p-BU0dY8pq.js → p-DZzsZ_YH.js} +1 -1
- package/components/p-DbUsvqrz.js +4 -0
- package/components/p-Dbqy6lZU.js +5 -0
- package/{dist/design-system/p-BATOumsf.js → components/p-fS80bKHo.js} +1 -1
- package/components/{p-bGV2P6rT.js → p-hPpcXLRP.js} +1 -1
- package/components/p-o0H7eIVX.js +4 -0
- package/components/p-std0LSH2.js +4 -0
- package/components/{p-Btdh3fq7.js → p-u5aa74vh.js} +1 -1
- package/components/p-wud2RGEy.js +4 -0
- package/dist/cjs/{_getTag-B468r9bu.js → _getTag-DxZgmSPS.js} +1 -1
- package/dist/cjs/{array-CioNm_V1.js → array-CYn4ALBt.js} +10 -9
- package/dist/cjs/{breakpoints.decorator-C-Qm21UK.js → breakpoints.decorator-DbttiLa9.js} +1 -1
- package/dist/cjs/{breakpoints.subject-XNcGwhzh.js → breakpoints.subject-CNyiZaBe.js} +3 -3
- package/dist/cjs/{button.interfaces-CqlUGR-N.js → button.interfaces-BKyK0H_f.js} +0 -1
- package/dist/cjs/{config.decorator-ThGLtT-3.js → config.decorator-bU7c6ybP.js} +1 -1
- package/dist/cjs/{config.utils-MhZvq4Qm.js → config.utils-BhJig3l5.js} +1 -1
- package/dist/cjs/{create-validator-decorator-BIgFqrMJ.js → create-validator-decorator-CiRieHJL.js} +1 -1
- package/dist/cjs/design-system.cjs.js +2 -2
- package/dist/cjs/{device-BnjBOLnP.js → device-DM1GXL99.js} +1 -1
- package/dist/cjs/ds-accordion.cjs.entry.js +9 -9
- package/dist/cjs/ds-alert-container.cjs.entry.js +6 -6
- package/dist/cjs/ds-app.cjs.entry.js +35 -8
- package/dist/cjs/ds-badge.cjs.entry.js +20 -39
- package/dist/cjs/ds-button-group.cjs.entry.js +7 -7
- package/dist/cjs/ds-button_2.cjs.entry.js +20 -20
- package/dist/cjs/ds-card-actions.cjs.entry.js +4 -4
- package/dist/cjs/ds-card-content.cjs.entry.js +3 -3
- package/dist/cjs/ds-card-header.cjs.entry.js +5 -5
- package/dist/cjs/ds-card-subtitle.cjs.entry.js +10 -14
- package/dist/cjs/ds-card-title.cjs.entry.js +8 -14
- package/dist/cjs/ds-card.cjs.entry.js +14 -13
- package/dist/cjs/ds-carousel-item.cjs.entry.js +6 -6
- package/dist/cjs/ds-carousel.cjs.entry.js +8 -8
- package/dist/cjs/ds-checkbox-group.cjs.entry.js +44 -19
- package/dist/cjs/ds-checkbox.cjs.entry.js +19 -10
- package/dist/cjs/ds-content_2.cjs.entry.js +18 -68
- package/dist/cjs/ds-data-item.cjs.entry.js +6 -6
- package/dist/cjs/ds-data-label.cjs.entry.js +4 -4
- package/dist/cjs/ds-data-value.cjs.entry.js +2 -2
- package/dist/cjs/ds-data.cjs.entry.js +4 -4
- package/dist/cjs/ds-date.cjs.entry.js +18 -12
- package/dist/cjs/ds-divider_2.cjs.entry.js +14 -14
- package/dist/cjs/ds-drawer_2.cjs.entry.js +10 -10
- package/dist/cjs/ds-file-upload.cjs.entry.js +22 -14
- package/dist/cjs/ds-footer.cjs.entry.js +7 -7
- package/dist/cjs/ds-heading.cjs.entry.js +21 -37
- package/dist/cjs/ds-hint-text.cjs.entry.js +2 -2
- package/dist/cjs/ds-hint-title.cjs.entry.js +2 -2
- package/dist/cjs/ds-hint.cjs.entry.js +11 -11
- package/dist/cjs/ds-icon_2.cjs.entry.js +23 -26
- package/dist/cjs/ds-input-slider.cjs.entry.js +2892 -0
- package/dist/cjs/ds-input.cjs.entry.js +20 -11
- package/dist/cjs/ds-item.cjs.entry.js +7 -7
- package/dist/cjs/ds-label.cjs.entry.js +11 -11
- package/dist/cjs/ds-list.cjs.entry.js +5 -5
- package/dist/cjs/ds-modal-body.cjs.entry.js +3 -3
- package/dist/cjs/ds-modal-header.cjs.entry.js +3 -3
- package/dist/cjs/ds-modal.cjs.entry.js +9 -9
- package/dist/cjs/ds-navbar.cjs.entry.js +17 -17
- package/dist/cjs/ds-notification.cjs.entry.js +11 -11
- package/dist/cjs/ds-number-input.cjs.entry.js +31 -117
- package/dist/cjs/ds-pagination.cjs.entry.js +17 -17
- package/dist/cjs/ds-progress-bar.cjs.entry.js +14 -14
- package/dist/cjs/ds-radio-group.cjs.entry.js +39 -15
- package/dist/cjs/ds-radio.cjs.entry.js +19 -10
- package/dist/cjs/ds-segment-item.cjs.entry.js +5 -5
- package/dist/cjs/ds-segment.cjs.entry.js +21 -15
- package/dist/cjs/ds-select-optgroup.cjs.entry.js +5 -5
- package/dist/cjs/ds-select-option.cjs.entry.js +5 -5
- package/dist/cjs/ds-select.cjs.entry.js +18 -13
- package/dist/cjs/ds-shape.cjs.entry.js +5 -5
- package/dist/cjs/ds-snackbar.cjs.entry.js +14 -14
- package/dist/cjs/ds-step-panel.cjs.entry.js +6 -6
- package/dist/cjs/ds-step.cjs.entry.js +5 -5
- package/dist/cjs/ds-steps.cjs.entry.js +6 -6
- package/dist/cjs/ds-tab-panel.cjs.entry.js +6 -6
- package/dist/cjs/ds-tab.cjs.entry.js +5 -5
- package/dist/cjs/ds-tabs.cjs.entry.js +12 -12
- package/dist/cjs/ds-tag-group.cjs.entry.js +3 -3
- package/dist/cjs/ds-tag.cjs.entry.js +9 -9
- package/dist/cjs/ds-text.cjs.entry.js +10 -10
- package/dist/cjs/ds-textarea.cjs.entry.js +19 -10
- package/dist/cjs/ds-toast.cjs.entry.js +12 -12
- package/dist/cjs/ds-toggle.cjs.entry.js +7 -7
- package/dist/cjs/ds-tooltip.cjs.entry.js +5 -5
- package/dist/cjs/{field.util-L-DkeMVk.js → field.util-C7hgA41e.js} +32 -2
- package/dist/cjs/{focus-D3VVgpM7.js → focus-CHzvkERd.js} +1 -1
- package/dist/cjs/{form-control-CtMcJUuC.js → form-control-CmRONWa7.js} +1 -1
- package/dist/cjs/{has-value-DK0oRqXI.js → has-value-3s9rhB3K.js} +1 -1
- package/dist/cjs/{heading.interfaces-B5NJ2yjL.js → heading.interfaces-CAc5LNKb.js} +2 -3
- package/dist/cjs/{index-sC3JnTlJ.js → index-DD7qcaNz.js} +80 -1
- package/dist/cjs/index.cjs.js +7 -7
- package/dist/cjs/isArray-DvQst6zQ.js +42 -0
- package/dist/cjs/isNaN-DOSPWDkt.js +106 -0
- package/dist/cjs/{isObjectLike-h-ta_ikf.js → isObjectLike-BNz6hnAu.js} +0 -37
- package/dist/cjs/{listener-BwB_xent.js → listener-CAzIWSXQ.js} +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{one-of-BZGRIMtQ.js → one-of-xdIxH9e7.js} +1 -1
- package/dist/cjs/{required-COz3Unzu.js → required-Dh6TQNa1.js} +1 -1
- package/dist/cjs/{resize.decorator-DWM_fQgv.js → resize.decorator-C53-TjuS.js} +2 -2
- package/dist/cjs/{scroll-CUuEh4xd.js → scroll-BOeiw1-E.js} +1 -1
- package/dist/cjs/{svg-D9RbiR8R.js → svg-B9eUbG7a.js} +96 -33
- package/dist/cjs/{tslib.es6-CxyosZMg.js → tslib.es6-DMgN1vwG.js} +1 -1
- package/dist/cjs/{type-hmc4CJcO.js → type-BcP2cAG-.js} +1 -1
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/accordion/accordion.host.css +1 -1
- package/dist/collection/components/alert/snackbar/snackbar.host.css +1 -1
- package/dist/collection/components/alert/toast/toast.host.css +1 -1
- package/dist/collection/components/app/app.js +30 -3
- package/dist/collection/components/badge/badge.host.css +1 -1
- package/dist/collection/components/badge/badge.interfaces.js +3 -3
- package/dist/collection/components/badge/badge.js +20 -42
- package/dist/collection/components/button/button.interfaces.js +0 -1
- package/dist/collection/components/button/button.js +1 -1
- package/dist/collection/components/card/card-content/card-content.host.css +1 -1
- package/dist/collection/components/card/card-subtitle/card-subtitle.js +6 -11
- package/dist/collection/components/card/card-title/card-title.js +4 -11
- package/dist/collection/components/card/card.host.css +1 -1
- package/dist/collection/components/card/card.js +10 -9
- package/dist/collection/components/checkbox/checkbox-group/checkbox-group.js +54 -8
- package/dist/collection/components/checkbox/checkbox.host.css +1 -1
- package/dist/collection/components/checkbox/checkbox.js +31 -2
- package/dist/collection/components/checkbox/test/checkbox.visual.play.js +4 -0
- package/dist/collection/components/close/close.host.css +1 -1
- package/dist/collection/components/close/close.interfaces.js +1 -1
- package/dist/collection/components/close/close.js +14 -16
- package/dist/collection/components/content/content.host.css +1 -1
- package/dist/collection/components/content/content.interfaces.js +2 -3
- package/dist/collection/components/content/content.js +21 -60
- package/dist/collection/components/date/date.js +12 -4
- package/dist/collection/components/date/test/date.visual.play.js +1 -0
- package/dist/collection/components/file-upload/file-upload.js +13 -4
- package/dist/collection/components/file-upload/test/file-upload.visual.play.js +10 -1
- package/dist/collection/components/heading/heading.host.css +1 -1
- package/dist/collection/components/heading/heading.interfaces.js +2 -3
- package/dist/collection/components/heading/heading.js +25 -45
- package/dist/collection/components/input/field.util.js +1 -1
- package/dist/collection/components/input/input.js +14 -3
- package/dist/collection/components/input/test/input.visual.play.js +2 -1
- package/dist/collection/components/input-slider/input-slider.host.css +1 -0
- package/dist/collection/components/input-slider/input-slider.interfaces.js +4 -0
- package/dist/collection/components/input-slider/input-slider.js +970 -0
- package/dist/collection/components/input-slider/input-slider.picker.js +124 -0
- package/dist/collection/components/input-slider/input-slider.utils.js +32 -0
- package/dist/collection/components/input-slider/test/input-slider.a11y.play.js +36 -0
- package/dist/collection/components/input-slider/test/input-slider.component.play.js +87 -0
- package/dist/collection/components/input-slider/test/input-slider.visual.play.js +28 -0
- package/dist/collection/components/label/label.host.css +1 -1
- package/dist/collection/components/label/label.js +2 -2
- package/dist/collection/components/list/item/item.host.css +1 -1
- package/dist/collection/components/list/list.js +1 -1
- package/dist/collection/components/logo/logo.js +2 -2
- package/dist/collection/components/modal/modal-body/modal-body.js +1 -1
- package/dist/collection/components/modal/modal-header/modal-header.js +1 -1
- package/dist/collection/components/modal/modal.js +2 -2
- package/dist/collection/components/navbar/navbar.js +3 -3
- package/dist/collection/components/notification/notification.host.css +1 -1
- package/dist/collection/components/notification/notification.js +3 -3
- package/dist/collection/components/number-input/number-input.js +13 -2
- package/dist/collection/components/number-input/test/number-input.visual.play.js +1 -1
- package/dist/collection/components/pagination/pagination.js +5 -5
- package/dist/collection/components/popup/popup.js +1 -1
- package/dist/collection/components/progress-bar/progress-bar.js +2 -2
- package/dist/collection/components/radio/radio-group/radio-group.js +54 -8
- package/dist/collection/components/radio/radio.host.css +1 -1
- package/dist/collection/components/radio/radio.js +31 -2
- package/dist/collection/components/radio/test/radio.visual.play.js +4 -0
- package/dist/collection/components/segment/segment/segment.js +15 -7
- package/dist/collection/components/segment/segment-item.js +1 -1
- package/dist/collection/components/segment/test/segment.visual.play.js +1 -0
- package/dist/collection/components/select/select-optgroup.js +1 -1
- package/dist/collection/components/select/select-option.js +1 -1
- package/dist/collection/components/select/select.host.css +1 -1
- package/dist/collection/components/select/select.js +11 -4
- package/dist/collection/components/select/test/select.visual.play.js +2 -2
- package/dist/collection/components/shape/shape.js +1 -1
- package/dist/collection/components/spinner/spinner.host.css +1 -1
- package/dist/collection/components/spinner/spinner.interfaces.js +1 -1
- package/dist/collection/components/spinner/spinner.js +12 -16
- package/dist/collection/components/stack/stack.host.css +1 -1
- package/dist/collection/components/stack/stack.interfaces.js +1 -2
- package/dist/collection/components/stack/stack.js +13 -33
- package/dist/collection/components/steps/step-panel/step-panel.js +1 -1
- package/dist/collection/components/tabs/tab-panel/tab-panel.js +1 -1
- package/dist/collection/components/tabs/tabs/tabs.js +4 -4
- package/dist/collection/components/tag/tag-group/tag-group.js +1 -1
- package/dist/collection/components/tag/tag.host.css +1 -1
- package/dist/collection/components/tag/tag.js +2 -2
- package/dist/collection/components/text/text.host.css +1 -1
- package/dist/collection/components/text/text.js +3 -3
- package/dist/collection/components/textarea/test/textarea.visual.play.js +2 -2
- package/dist/collection/components/textarea/textarea.js +13 -2
- package/dist/collection/components/toggle/toggle.js +2 -2
- package/dist/collection/components/tooltip/tooltip.js +1 -1
- package/dist/collection/global/constants/tags.constant.js +1 -0
- package/dist/collection/global/constants/version.constant.js +1 -1
- package/dist/collection/global/global.js +2 -0
- package/dist/collection/global/token-preview.js +75 -0
- package/dist/collection/global/token-preview.types.js +1 -0
- package/dist/collection/utils/index.js +1 -0
- package/dist/collection/utils/invalid-text-slot.js +31 -0
- package/dist/design-system/design-system.esm.js +1 -1
- package/dist/design-system/index.esm.js +1 -1
- package/dist/design-system/{p-5d17209d91.entry.js → p-001b20140b.entry.js} +1 -1
- package/dist/design-system/p-0c031d8d90.entry.js +4 -0
- package/dist/design-system/p-0c18812daa.entry.js +4 -0
- package/dist/design-system/p-19e0638e5c.entry.js +4 -0
- package/dist/design-system/{p-10c136d00d.entry.js → p-1dc3406415.entry.js} +1 -1
- package/dist/design-system/{p-53dda5d400.entry.js → p-200a0ea72c.entry.js} +1 -1
- package/dist/design-system/p-2516721737.entry.js +4 -0
- package/dist/design-system/p-2a67e9b4eb.entry.js +4 -0
- package/dist/design-system/p-2cc9740eb6.entry.js +4 -0
- package/dist/design-system/p-33165c2b03.entry.js +4 -0
- package/dist/design-system/p-37295c3a5d.entry.js +4 -0
- package/dist/design-system/p-3d1f15112e.entry.js +4 -0
- package/dist/design-system/p-3de8e2b6c9.entry.js +4 -0
- package/dist/design-system/{p-774b89ed0b.entry.js → p-4042b35fee.entry.js} +1 -1
- package/dist/design-system/{p-afd8bbe699.entry.js → p-40b3d4d0f9.entry.js} +1 -1
- package/dist/design-system/{p-f0119fe693.entry.js → p-45af50a69f.entry.js} +1 -1
- package/dist/design-system/p-4df80c06f8.entry.js +4 -0
- package/dist/design-system/p-4f12c6449d.entry.js +4 -0
- package/dist/design-system/p-4f95f06b86.entry.js +4 -0
- package/dist/design-system/{p-c37f266740.entry.js → p-662983c8bd.entry.js} +1 -1
- package/dist/design-system/p-68693c06a1.entry.js +4 -0
- package/dist/design-system/{p-7c353652a9.entry.js → p-69784a200e.entry.js} +1 -1
- package/dist/design-system/{p-BhdSNuGP.js → p-6Iq8BM7N.js} +1 -1
- package/dist/design-system/p-6ba71ce374.entry.js +4 -0
- package/dist/design-system/{p-13d1ce3158.entry.js → p-72c08ce551.entry.js} +1 -1
- package/dist/design-system/p-72fe1ab876.entry.js +4 -0
- package/dist/design-system/p-73b26207bf.entry.js +4 -0
- package/dist/design-system/{p-4e6638d14e.entry.js → p-7576fb01bf.entry.js} +1 -1
- package/dist/design-system/p-819d71abe1.entry.js +4 -0
- package/dist/design-system/p-88682a66d5.entry.js +4 -0
- package/dist/design-system/{p-6ef31a3c07.entry.js → p-8a7c2f5b0a.entry.js} +1 -1
- package/dist/design-system/{p-0bd2ce2da3.entry.js → p-8bfcfd7b07.entry.js} +1 -1
- package/dist/design-system/p-9537ebc880.entry.js +4 -0
- package/dist/design-system/{p-e7472337ed.entry.js → p-96d37205c9.entry.js} +1 -1
- package/dist/design-system/{p-0663d7c0f1.entry.js → p-97ad0e648a.entry.js} +1 -1
- package/dist/design-system/p-9e0f190f06.entry.js +4 -0
- package/dist/design-system/p-9f746ea4e3.entry.js +4 -0
- package/dist/design-system/{p-B1e0kNRJ.js → p-B2dqoehY.js} +2 -2
- package/dist/design-system/p-B8PCdo6e.js +4 -0
- package/dist/design-system/p-B9ddSbbe.js +4 -0
- package/dist/design-system/p-BDcIydUK.js +4 -0
- package/dist/design-system/p-BdLq-Ecc.js +4 -0
- package/dist/design-system/{p-HwbqEzpk.js → p-BjaiDrCD.js} +1 -1
- package/dist/design-system/{p-CvTcEsXg.js → p-BnJgNfen.js} +1 -1
- package/dist/design-system/{p-78NZc8PM.js → p-Bnpwi9iD.js} +1 -1
- package/dist/design-system/p-C6AmBSV7.js +4 -0
- package/dist/design-system/{p-hLAmwHiq.js → p-CBGYLNZZ.js} +1 -1
- package/dist/design-system/p-CDhvZoCt.js +4 -0
- package/dist/design-system/p-CGHN-3RC.js +4 -0
- package/dist/design-system/{p-BkTv_bQR.js → p-CR2JnhVY.js} +1 -1
- package/dist/design-system/{p-Dm2lqE3-.js → p-ClSAXeZN.js} +1 -1
- package/dist/design-system/p-CziF75uh.js +4 -0
- package/dist/design-system/p-D-_px2sY.js +5 -0
- package/dist/design-system/{p-ij4OEkzJ.js → p-DNQg2PVW.js} +1 -1
- package/dist/design-system/p-DQGbRzw_.js +4 -0
- package/dist/design-system/{p-LCY5n5tq.js → p-DWdcUUdS.js} +1 -1
- package/dist/design-system/{p-C7i6xLTJ.js → p-DuKlHFAK.js} +1 -1
- package/dist/design-system/p-MUUOiuTm.js +5 -0
- package/dist/design-system/{p-BvEM6oCl.js → p-_Ywzmi-B.js} +1 -1
- package/dist/design-system/{p-DgVaaZT_.js → p-_rk5qARQ.js} +1 -1
- package/dist/design-system/{p-8406f6faf1.entry.js → p-a343b84e8a.entry.js} +1 -1
- package/dist/design-system/p-a3ed278181.entry.js +4 -0
- package/dist/design-system/{p-650289138a.entry.js → p-a71c22bc50.entry.js} +1 -1
- package/dist/design-system/{p-DTxLRTYr.js → p-aPnyJLhr.js} +1 -1
- package/dist/design-system/{p-f4958b9e97.entry.js → p-abcc8edf7e.entry.js} +1 -1
- package/dist/design-system/{p-372bf379f9.entry.js → p-ac55e3783c.entry.js} +1 -1
- package/dist/design-system/{p-7e702193fc.entry.js → p-ac7f3f89be.entry.js} +1 -1
- package/dist/design-system/{p-3134821ac6.entry.js → p-ae8753bf2a.entry.js} +1 -1
- package/dist/design-system/{p-60d29d8b8e.entry.js → p-afea3755c2.entry.js} +1 -1
- package/dist/design-system/{p-dcb749efc7.entry.js → p-bd31b396d8.entry.js} +1 -1
- package/dist/design-system/p-bd740897a1.entry.js +4 -0
- package/dist/design-system/{p-d5f8d8f5e1.entry.js → p-bf03129378.entry.js} +1 -1
- package/dist/design-system/p-bfd0557b47.entry.js +4 -0
- package/dist/design-system/{p-01430d5c28.entry.js → p-c07aa25e4d.entry.js} +1 -1
- package/dist/design-system/p-c19c74c2b1.entry.js +4 -0
- package/dist/design-system/{p-dd38f8f206.entry.js → p-d5d7700fd3.entry.js} +1 -1
- package/dist/design-system/p-d727654ec3.entry.js +4 -0
- package/dist/design-system/{p-a465c1acce.entry.js → p-dadd7a84bc.entry.js} +1 -1
- package/dist/design-system/p-dd5e815ef3.entry.js +4 -0
- package/dist/design-system/p-dfebad2acc.entry.js +4 -0
- package/{components/p-D9YYP2SG.js → dist/design-system/p-dziB1ufg.js} +1 -1
- package/dist/design-system/p-e16572468e.entry.js +4 -0
- package/dist/design-system/p-e23b6d59c0.entry.js +4 -0
- package/dist/design-system/p-e743fa4c17.entry.js +4 -0
- package/dist/design-system/p-e94b66c13e.entry.js +4 -0
- package/dist/design-system/{p-a8de98dd7b.entry.js → p-ec3f2ded29.entry.js} +1 -1
- package/dist/design-system/p-ed3f364d1f.entry.js +4 -0
- package/dist/design-system/{p-a62b7985a0.entry.js → p-eedaf7fe85.entry.js} +1 -1
- package/dist/design-system/p-ef1bf78788.entry.js +4 -0
- package/dist/design-system/{p-9f2dd0b55b.entry.js → p-f0b0376beb.entry.js} +1 -1
- package/dist/design-system/p-f7787fca37.entry.js +4 -0
- package/dist/design-system/p-fd868dc1f5.entry.js +4 -0
- package/dist/esm/{_getTag-DFxL3s3h.js → _getTag-BkweuRJc.js} +1 -1
- package/dist/esm/{array-dJH4dfMr.js → array-BJZA868l.js} +3 -2
- package/dist/esm/{breakpoints.decorator-DZ0xN4Np.js → breakpoints.decorator-CIweMjJQ.js} +1 -1
- package/dist/esm/{breakpoints.subject-BNnXcKMw.js → breakpoints.subject-CUVOWezN.js} +3 -3
- package/dist/esm/{button.interfaces-BPGfTrrM.js → button.interfaces-C6AmBSV7.js} +0 -1
- package/dist/esm/{config.decorator-ZQ0_Zx5y.js → config.decorator-CyvsD1EY.js} +1 -1
- package/dist/esm/{config.utils-D9o7rffC.js → config.utils-Db2OSTX3.js} +1 -1
- package/dist/esm/{create-validator-decorator-DovxquEu.js → create-validator-decorator-g9TfAa1g.js} +1 -1
- package/dist/esm/design-system.js +3 -3
- package/dist/esm/{device-CRuIJzXR.js → device-CtidwsPr.js} +1 -1
- package/dist/esm/ds-accordion.entry.js +9 -9
- package/dist/esm/ds-alert-container.entry.js +6 -6
- package/dist/esm/ds-app.entry.js +35 -8
- package/dist/esm/ds-badge.entry.js +20 -39
- package/dist/esm/ds-button-group.entry.js +7 -7
- package/dist/esm/ds-button_2.entry.js +20 -20
- package/dist/esm/ds-card-actions.entry.js +4 -4
- package/dist/esm/ds-card-content.entry.js +3 -3
- package/dist/esm/ds-card-header.entry.js +5 -5
- package/dist/esm/ds-card-subtitle.entry.js +10 -14
- package/dist/esm/ds-card-title.entry.js +8 -14
- package/dist/esm/ds-card.entry.js +14 -13
- package/dist/esm/ds-carousel-item.entry.js +6 -6
- package/dist/esm/ds-carousel.entry.js +8 -8
- package/dist/esm/ds-checkbox-group.entry.js +44 -19
- package/dist/esm/ds-checkbox.entry.js +19 -10
- package/dist/esm/ds-content_2.entry.js +18 -68
- package/dist/esm/ds-data-item.entry.js +6 -6
- package/dist/esm/ds-data-label.entry.js +4 -4
- package/dist/esm/ds-data-value.entry.js +2 -2
- package/dist/esm/ds-data.entry.js +4 -4
- package/dist/esm/ds-date.entry.js +18 -12
- package/dist/esm/ds-divider_2.entry.js +14 -14
- package/dist/esm/ds-drawer_2.entry.js +10 -10
- package/dist/esm/ds-file-upload.entry.js +22 -14
- package/dist/esm/ds-footer.entry.js +7 -7
- package/dist/esm/ds-heading.entry.js +21 -37
- package/dist/esm/ds-hint-text.entry.js +2 -2
- package/dist/esm/ds-hint-title.entry.js +2 -2
- package/dist/esm/ds-hint.entry.js +11 -11
- package/dist/esm/ds-icon_2.entry.js +21 -24
- package/dist/esm/ds-input-slider.entry.js +2890 -0
- package/dist/esm/ds-input.entry.js +20 -11
- package/dist/esm/ds-item.entry.js +7 -7
- package/dist/esm/ds-label.entry.js +11 -11
- package/dist/esm/ds-list.entry.js +5 -5
- package/dist/esm/ds-modal-body.entry.js +3 -3
- package/dist/esm/ds-modal-header.entry.js +3 -3
- package/dist/esm/ds-modal.entry.js +9 -9
- package/dist/esm/ds-navbar.entry.js +17 -17
- package/dist/esm/ds-notification.entry.js +11 -11
- package/dist/esm/ds-number-input.entry.js +24 -110
- package/dist/esm/ds-pagination.entry.js +17 -17
- package/dist/esm/ds-progress-bar.entry.js +14 -14
- package/dist/esm/ds-radio-group.entry.js +39 -15
- package/dist/esm/ds-radio.entry.js +19 -10
- package/dist/esm/ds-segment-item.entry.js +5 -5
- package/dist/esm/ds-segment.entry.js +21 -15
- package/dist/esm/ds-select-optgroup.entry.js +5 -5
- package/dist/esm/ds-select-option.entry.js +5 -5
- package/dist/esm/ds-select.entry.js +18 -13
- package/dist/esm/ds-shape.entry.js +5 -5
- package/dist/esm/ds-snackbar.entry.js +14 -14
- package/dist/esm/ds-step-panel.entry.js +6 -6
- package/dist/esm/ds-step.entry.js +5 -5
- package/dist/esm/ds-steps.entry.js +6 -6
- package/dist/esm/ds-tab-panel.entry.js +6 -6
- package/dist/esm/ds-tab.entry.js +5 -5
- package/dist/esm/ds-tabs.entry.js +12 -12
- package/dist/esm/ds-tag-group.entry.js +3 -3
- package/dist/esm/ds-tag.entry.js +9 -9
- package/dist/esm/ds-text.entry.js +10 -10
- package/dist/esm/ds-textarea.entry.js +19 -10
- package/dist/esm/ds-toast.entry.js +12 -12
- package/dist/esm/ds-toggle.entry.js +7 -7
- package/dist/esm/ds-tooltip.entry.js +5 -5
- package/dist/esm/{field.util-BjZzAi09.js → field.util-Dl02gvlr.js} +32 -3
- package/dist/esm/{focus-ZxHImoOj.js → focus-C1_jVoAm.js} +1 -1
- package/dist/esm/{form-control-DvJo0GKN.js → form-control-BAP86QSm.js} +1 -1
- package/dist/esm/{has-value-DU9L2JaI.js → has-value-CADjf9QZ.js} +1 -1
- package/dist/esm/{heading.interfaces-Ceu7FIWM.js → heading.interfaces-BdLq-Ecc.js} +2 -3
- package/dist/esm/{index-C6MVahkC.js → index-MUUOiuTm.js} +80 -1
- package/dist/esm/index.js +10 -10
- package/dist/esm/isArray-B8PCdo6e.js +40 -0
- package/dist/esm/isNaN-BrbqGXXw.js +104 -0
- package/dist/esm/{isObjectLike-BAYao9w7.js → isObjectLike-BnBXjF_n.js} +1 -37
- package/dist/esm/{listener-DHP2OPMZ.js → listener-DiVrGAqj.js} +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{one-of-CKPv0Nqm.js → one-of-rLykP5eX.js} +1 -1
- package/dist/esm/{required-Dqsbx5fH.js → required-BsfIY-qW.js} +1 -1
- package/dist/esm/{resize.decorator-B8h8D676.js → resize.decorator-BNy5tJCt.js} +2 -2
- package/dist/esm/{scroll-CsH7NHo5.js → scroll-D4cC-Fsr.js} +1 -1
- package/dist/esm/{svg-B8KVoKrH.js → svg-D-_px2sY.js} +96 -33
- package/dist/esm/{tslib.es6-C9GKXw-5.js → tslib.es6-C7vR-gMn.js} +1 -1
- package/dist/esm/{type-DzkhLOG_.js → type-Bqge296W.js} +1 -1
- package/dist/types/components/app/app.d.ts +23 -0
- package/dist/types/components/badge/badge.d.ts +12 -4
- package/dist/types/components/badge/badge.interfaces.d.ts +3 -3
- package/dist/types/components/button/button.interfaces.d.ts +1 -1
- package/dist/types/components/card/card-subtitle/card-subtitle.d.ts +1 -1
- package/dist/types/components/card/card-title/card-title.d.ts +1 -1
- package/dist/types/components/card/card.d.ts +1 -1
- package/dist/types/components/checkbox/checkbox-group/checkbox-group.d.ts +10 -0
- package/dist/types/components/checkbox/checkbox.d.ts +4 -0
- package/dist/types/components/close/close.d.ts +14 -2
- package/dist/types/components/close/close.interfaces.d.ts +1 -1
- package/dist/types/components/content/content.d.ts +6 -6
- package/dist/types/components/content/content.interfaces.d.ts +3 -3
- package/dist/types/components/date/date.d.ts +3 -0
- package/dist/types/components/file-upload/file-upload.d.ts +3 -0
- package/dist/types/components/heading/heading.d.ts +10 -10
- package/dist/types/components/heading/heading.interfaces.d.ts +3 -3
- package/dist/types/components/input/input.d.ts +4 -0
- package/dist/types/components/input-slider/input-slider.d.ts +189 -0
- package/dist/types/components/input-slider/input-slider.interfaces.d.ts +18 -0
- package/dist/types/components/input-slider/input-slider.picker.d.ts +37 -0
- package/dist/types/components/input-slider/input-slider.utils.d.ts +18 -0
- package/dist/types/components/input-slider/test/input-slider.a11y.play.d.ts +1 -0
- package/dist/types/components/input-slider/test/input-slider.component.play.d.ts +1 -0
- package/dist/types/components/input-slider/test/input-slider.visual.play.d.ts +1 -0
- package/dist/types/components/number-input/number-input.d.ts +4 -0
- package/dist/types/components/radio/radio-group/radio-group.d.ts +10 -0
- package/dist/types/components/radio/radio.d.ts +4 -0
- package/dist/types/components/segment/segment/segment.d.ts +3 -0
- package/dist/types/components/select/select.d.ts +3 -0
- package/dist/types/components/spinner/spinner.d.ts +8 -7
- package/dist/types/components/spinner/spinner.interfaces.d.ts +1 -1
- package/dist/types/components/stack/stack.d.ts +3 -3
- package/dist/types/components/stack/stack.interfaces.d.ts +2 -2
- package/dist/types/components/textarea/textarea.d.ts +4 -0
- package/dist/types/components.d.ts +334 -70
- package/dist/types/global/token-preview.d.ts +8 -0
- package/dist/types/global/token-preview.types.d.ts +20 -0
- package/dist/types/home/runner/work/design-system/design-system/packages/core/.stencil/packages/playwright/src/lib/components/index.d.ts +1 -0
- package/dist/types/home/runner/work/design-system/design-system/packages/core/.stencil/packages/playwright/src/lib/components/input-slider.po.d.ts +18 -0
- package/dist/types/utils/index.d.ts +1 -0
- package/dist/types/utils/invalid-text-slot.d.ts +9 -0
- package/docs/cem.json +792 -211
- package/docs/components.json +2434 -1559
- package/docs/html.html-data.json +124 -1
- package/docs/tags.json +1 -0
- package/docs/visual-pages.json +51 -0
- package/package.json +10 -9
- package/sbom.cdx.json +41369 -18745
- package/components/p-B1gnrQ9b.js +0 -4
- package/components/p-CA7G72wZ.js +0 -4
- package/components/p-CYWn3X22.js +0 -4
- package/components/p-Ceu7FIWM.js +0 -4
- package/components/p-Ctnm_MBD.js +0 -4
- package/components/p-DQBzmbR6.js +0 -4
- package/components/p-DsvYY32v.js +0 -4
- package/components/p-Du7QOHtz.js +0 -5
- package/components/p-FBQaJyH0.js +0 -4
- package/dist/design-system/p-014d464627.entry.js +0 -4
- package/dist/design-system/p-0ff0be5b83.entry.js +0 -4
- package/dist/design-system/p-11f34d0c7d.entry.js +0 -4
- package/dist/design-system/p-163d606781.entry.js +0 -4
- package/dist/design-system/p-1VXOIrN2.js +0 -4
- package/dist/design-system/p-202ecb8f01.entry.js +0 -4
- package/dist/design-system/p-27d181c5ac.entry.js +0 -4
- package/dist/design-system/p-2a35e0b9b0.entry.js +0 -4
- package/dist/design-system/p-2f51e1d39b.entry.js +0 -4
- package/dist/design-system/p-3292ae6a05.entry.js +0 -4
- package/dist/design-system/p-3895178b39.entry.js +0 -4
- package/dist/design-system/p-3c6b7a2967.entry.js +0 -4
- package/dist/design-system/p-3ef4bd1c59.entry.js +0 -4
- package/dist/design-system/p-493b18cc46.entry.js +0 -4
- package/dist/design-system/p-4a99464dae.entry.js +0 -4
- package/dist/design-system/p-5e51fa8df4.entry.js +0 -4
- package/dist/design-system/p-62cb503015.entry.js +0 -4
- package/dist/design-system/p-65c221261c.entry.js +0 -4
- package/dist/design-system/p-68c9f4f630.entry.js +0 -4
- package/dist/design-system/p-68ebed7eee.entry.js +0 -4
- package/dist/design-system/p-6b6531379b.entry.js +0 -4
- package/dist/design-system/p-6d168ba9ad.entry.js +0 -4
- package/dist/design-system/p-787bd92bcc.entry.js +0 -4
- package/dist/design-system/p-7c8bf0f33e.entry.js +0 -4
- package/dist/design-system/p-8353961d39.entry.js +0 -4
- package/dist/design-system/p-B8KVoKrH.js +0 -5
- package/dist/design-system/p-BLGVE-7Z.js +0 -4
- package/dist/design-system/p-BPGfTrrM.js +0 -4
- package/dist/design-system/p-C6MVahkC.js +0 -5
- package/dist/design-system/p-Ceu7FIWM.js +0 -4
- package/dist/design-system/p-CwCAiaMq.js +0 -4
- package/dist/design-system/p-DHeVI6dR.js +0 -4
- package/dist/design-system/p-ad2b17b0a0.entry.js +0 -4
- package/dist/design-system/p-b68bc14064.entry.js +0 -4
- package/dist/design-system/p-b955a93959.entry.js +0 -4
- package/dist/design-system/p-caad93b943.entry.js +0 -4
- package/dist/design-system/p-cca79bfeb1.entry.js +0 -4
- package/dist/design-system/p-ddf2a7dfee.entry.js +0 -4
- package/dist/design-system/p-df5899b930.entry.js +0 -4
- package/dist/design-system/p-e85c92ca1a.entry.js +0 -4
- package/dist/design-system/p-f62643c33d.entry.js +0 -4
- package/dist/design-system/p-fa9568abce.entry.js +0 -4
- package/dist/design-system/p-fcd98f22b7.entry.js +0 -4
- package/dist/design-system/p-feeef4a8cb.entry.js +0 -4
- package/dist/design-system/p-tl_BegdE.js +0 -4
|
@@ -12,23 +12,6 @@ import { STACK_SPACES, STACK_PADDINGS, STACK_ALIGNMENTS, STACK_DIRECTIONS, } fro
|
|
|
12
12
|
*/
|
|
13
13
|
export class Stack {
|
|
14
14
|
constructor() {
|
|
15
|
-
/**
|
|
16
|
-
* PUBLIC PROPERTY API
|
|
17
|
-
* ------------------------------------------------------
|
|
18
|
-
*/
|
|
19
|
-
/**
|
|
20
|
-
* Defines the text positioning like center, right or default to start.
|
|
21
|
-
*/
|
|
22
|
-
this.align = '';
|
|
23
|
-
/**
|
|
24
|
-
* @internal
|
|
25
|
-
* Please use align instead.
|
|
26
|
-
*/
|
|
27
|
-
this.alignment = '';
|
|
28
|
-
/**
|
|
29
|
-
* Defines the direction of the child elements. Default is column.
|
|
30
|
-
*/
|
|
31
|
-
this.direction = '';
|
|
32
15
|
/**
|
|
33
16
|
* Defines the width of the stack to be exactly the width of the content.
|
|
34
17
|
*/
|
|
@@ -62,11 +45,11 @@ export class Stack {
|
|
|
62
45
|
const p = normalizeDeprecatedTShirtSize(this.p) || '';
|
|
63
46
|
const px = normalizeDeprecatedTShirtSize(this.px) || '';
|
|
64
47
|
const py = normalizeDeprecatedTShirtSize(this.py) || '';
|
|
65
|
-
let alignValue =
|
|
66
|
-
if (
|
|
48
|
+
let alignValue = this.align ? this.align.split(' ').join('-') : undefined;
|
|
49
|
+
if (this.alignment) {
|
|
67
50
|
alignValue = this.alignment.split(' ').join('-');
|
|
68
51
|
}
|
|
69
|
-
return (h(Host, { key: '
|
|
52
|
+
return (h(Host, { key: 'dd0bd9e7c80b67577eb65ff49703788eff026835', class: {
|
|
70
53
|
'stack': true,
|
|
71
54
|
'as-row': this.direction === 'row',
|
|
72
55
|
'as-col': this.direction === 'column',
|
|
@@ -79,7 +62,7 @@ export class Stack {
|
|
|
79
62
|
[`p-${p}`]: hasValue(this.p),
|
|
80
63
|
[`px-${px}`]: hasValue(this.px),
|
|
81
64
|
[`py-${py}`]: hasValue(this.py),
|
|
82
|
-
} }, h("slot", { key: '
|
|
65
|
+
} }, h("slot", { key: 'efab6583321216d1b9674b3d959ca347d9aacfb6' })));
|
|
83
66
|
}
|
|
84
67
|
static get is() { return "ds-stack"; }
|
|
85
68
|
static get originalStyleUrls() {
|
|
@@ -99,7 +82,7 @@ export class Stack {
|
|
|
99
82
|
"mutable": false,
|
|
100
83
|
"complexType": {
|
|
101
84
|
"original": "StackAlignment",
|
|
102
|
-
"resolved": "\"
|
|
85
|
+
"resolved": "\"bottom center\" | \"bottom end\" | \"bottom start\" | \"center\" | \"end\" | \"start\" | \"top center\" | \"top end\" | \"top start\" | undefined",
|
|
103
86
|
"references": {
|
|
104
87
|
"StackAlignment": {
|
|
105
88
|
"location": "import",
|
|
@@ -110,7 +93,7 @@ export class Stack {
|
|
|
110
93
|
}
|
|
111
94
|
},
|
|
112
95
|
"required": false,
|
|
113
|
-
"optional":
|
|
96
|
+
"optional": true,
|
|
114
97
|
"docs": {
|
|
115
98
|
"tags": [],
|
|
116
99
|
"text": "Defines the text positioning like center, right or default to start."
|
|
@@ -118,15 +101,14 @@ export class Stack {
|
|
|
118
101
|
"getter": false,
|
|
119
102
|
"setter": false,
|
|
120
103
|
"reflect": false,
|
|
121
|
-
"attribute": "align"
|
|
122
|
-
"defaultValue": "''"
|
|
104
|
+
"attribute": "align"
|
|
123
105
|
},
|
|
124
106
|
"alignment": {
|
|
125
107
|
"type": "string",
|
|
126
108
|
"mutable": false,
|
|
127
109
|
"complexType": {
|
|
128
110
|
"original": "StackAlignment",
|
|
129
|
-
"resolved": "\"
|
|
111
|
+
"resolved": "\"bottom center\" | \"bottom end\" | \"bottom start\" | \"center\" | \"end\" | \"start\" | \"top center\" | \"top end\" | \"top start\" | undefined",
|
|
130
112
|
"references": {
|
|
131
113
|
"StackAlignment": {
|
|
132
114
|
"location": "import",
|
|
@@ -137,7 +119,7 @@ export class Stack {
|
|
|
137
119
|
}
|
|
138
120
|
},
|
|
139
121
|
"required": false,
|
|
140
|
-
"optional":
|
|
122
|
+
"optional": true,
|
|
141
123
|
"docs": {
|
|
142
124
|
"tags": [{
|
|
143
125
|
"name": "internal",
|
|
@@ -148,15 +130,14 @@ export class Stack {
|
|
|
148
130
|
"getter": false,
|
|
149
131
|
"setter": false,
|
|
150
132
|
"reflect": false,
|
|
151
|
-
"attribute": "alignment"
|
|
152
|
-
"defaultValue": "''"
|
|
133
|
+
"attribute": "alignment"
|
|
153
134
|
},
|
|
154
135
|
"direction": {
|
|
155
136
|
"type": "string",
|
|
156
137
|
"mutable": true,
|
|
157
138
|
"complexType": {
|
|
158
139
|
"original": "StackDirection",
|
|
159
|
-
"resolved": "\"
|
|
140
|
+
"resolved": "\"column\" | \"column-reverse\" | \"row\" | \"row-reverse\" | undefined",
|
|
160
141
|
"references": {
|
|
161
142
|
"StackDirection": {
|
|
162
143
|
"location": "import",
|
|
@@ -167,7 +148,7 @@ export class Stack {
|
|
|
167
148
|
}
|
|
168
149
|
},
|
|
169
150
|
"required": false,
|
|
170
|
-
"optional":
|
|
151
|
+
"optional": true,
|
|
171
152
|
"docs": {
|
|
172
153
|
"tags": [],
|
|
173
154
|
"text": "Defines the direction of the child elements. Default is column."
|
|
@@ -175,8 +156,7 @@ export class Stack {
|
|
|
175
156
|
"getter": false,
|
|
176
157
|
"setter": false,
|
|
177
158
|
"reflect": false,
|
|
178
|
-
"attribute": "direction"
|
|
179
|
-
"defaultValue": "''"
|
|
159
|
+
"attribute": "direction"
|
|
180
160
|
},
|
|
181
161
|
"fitContent": {
|
|
182
162
|
"type": "boolean",
|
|
@@ -28,7 +28,7 @@ export class StepPanel {
|
|
|
28
28
|
* ------------------------------------------------------
|
|
29
29
|
*/
|
|
30
30
|
render() {
|
|
31
|
-
return (h(Host, { key: '
|
|
31
|
+
return (h(Host, { key: '069c37c16fab0a456e81b3994a5f130f555a1943', role: "tabpanel", class: { 'is-selected': this.selected }, "aria-hidden": this.selected ? null : 'true', tabIndex: this.selected ? 0 : -1 }, h("slot", { key: 'd5e51ed65c86e3b1f50f7978918ca48a760594bf' })));
|
|
32
32
|
}
|
|
33
33
|
static get is() { return "ds-step-panel"; }
|
|
34
34
|
static get encapsulation() { return "shadow"; }
|
|
@@ -28,7 +28,7 @@ export class TabPanel {
|
|
|
28
28
|
* ------------------------------------------------------
|
|
29
29
|
*/
|
|
30
30
|
render() {
|
|
31
|
-
return (h(Host, { key: '
|
|
31
|
+
return (h(Host, { key: '86e6f7c744c989963959401612dcee1e962bdb02', role: "tabpanel", class: { 'is-selected': this.selected }, "aria-hidden": this.selected ? null : 'true', tabIndex: this.selected ? 0 : -1 }, h("slot", { key: '9ddf8ff34a1293622f32abbcd7c40a6607aa59e3' })));
|
|
32
32
|
}
|
|
33
33
|
static get is() { return "ds-tab-panel"; }
|
|
34
34
|
static get encapsulation() { return "shadow"; }
|
|
@@ -240,14 +240,14 @@ export class Tabs {
|
|
|
240
240
|
*/
|
|
241
241
|
render() {
|
|
242
242
|
const isNav = this.isNavigation();
|
|
243
|
-
const tablistDiv = (h("div", { key: '
|
|
243
|
+
const tablistDiv = (h("div", { key: 'b3b8934a8997c4ee17e2738c000b9df17e2db0c2', id: "tablist", part: "tablist", role: isNav ? undefined : 'tablist', "aria-orientation": !isNav && this.vertical ? 'vertical' : undefined, onKeyDown: this.handleKeyDown, ref: el => {
|
|
244
244
|
this.tablistEl = el;
|
|
245
|
-
} }, h("slot", { key: '
|
|
245
|
+
} }, h("slot", { key: 'dd98a77986591a17f0b627019dd5f2076dfcc4c6', name: "tab", onSlotchange: this.handleSlotChange }), h("div", { key: '34697c2c75688748ea5b2c2ea3ad83a4ee40efcf', class: "indicator", "aria-hidden": "true", ref: el => {
|
|
246
246
|
this.indicatorEl = el;
|
|
247
247
|
} })));
|
|
248
248
|
const i18n = i18nDsTabs[this.language];
|
|
249
249
|
const tablistContainer = this.vertical ? (tablistDiv) : (h("div", { class: "tablist-outer" }, h("button", { class: "scroll-btn scroll-btn--prev", "aria-label": i18n.scrollLeft, "aria-hidden": "true", tabIndex: -1, onClick: this.scrollPrev }, h("ds-icon", { name: "caret-left", size: "sm" })), tablistDiv, h("button", { class: "scroll-btn scroll-btn--next", "aria-label": i18n.scrollRight, "aria-hidden": "true", tabIndex: -1, onClick: this.scrollNext }, h("ds-icon", { name: "caret-right", size: "sm" }))));
|
|
250
|
-
return (h(Host, { key: '
|
|
250
|
+
return (h(Host, { key: 'a4509a1ab21b938602815e4d928a9c5925250472', class: {
|
|
251
251
|
'is-fullwidth': this.fullwidth,
|
|
252
252
|
'is-inverted': this.inverted,
|
|
253
253
|
'is-purple': this.color === 'purple',
|
|
@@ -260,7 +260,7 @@ export class Tabs {
|
|
|
260
260
|
'has-overflow': this.canScrollLeft || this.canScrollRight,
|
|
261
261
|
'can-scroll-left': this.canScrollLeft,
|
|
262
262
|
'can-scroll-right': this.canScrollRight,
|
|
263
|
-
} }, isNav ? h("nav", { "aria-label": this.label || undefined }, tablistContainer) : tablistContainer, h("slot", { key: '
|
|
263
|
+
} }, isNav ? h("nav", { "aria-label": this.label || undefined }, tablistContainer) : tablistContainer, h("slot", { key: '1d7f1a3897cd57c4f1fdc72aa581373f24c80637', onSlotchange: this.handleSlotChange })));
|
|
264
264
|
}
|
|
265
265
|
static get is() { return "ds-tabs"; }
|
|
266
266
|
static get encapsulation() { return "shadow"; }
|
|
@@ -18,7 +18,7 @@ export class TagGroup {
|
|
|
18
18
|
* ------------------------------------------------------
|
|
19
19
|
*/
|
|
20
20
|
render() {
|
|
21
|
-
return (h(Host, { key: '
|
|
21
|
+
return (h(Host, { key: 'a96c877fa4249aacb365574331462b5269347506' }, h("slot", { key: '7d0a574edd2fc4b6d2e7e64b309ccbfe6b3bc86f' })));
|
|
22
22
|
}
|
|
23
23
|
static get is() { return "ds-tag-group"; }
|
|
24
24
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1 +1 @@
|
|
|
1
|
-
:host{--_tag-position: var(--tag-position, var(--mod-tag-position, static));--_tag-top: var(--tag-top, var(--mod-tag-top));--_tag-right: var(--tag-right, var(--mod-tag-right));--_tag-bottom: var(--tag-bottom, var(--mod-tag-bottom));--_tag-left: var(--tag-left, var(--mod-tag-left));position:var(--_tag-position);top:var(--_tag-top);right:var(--_tag-right);bottom:var(--_tag-bottom);left:var(--_tag-left);--_tag-m: var(--tag-m, var(--mod-tag-m, 0));--_tag-my: var(--tag-my, var(--mod-tag-my));--_tag-mx: var(--tag-mx, var(--mod-tag-mx));--_tag-ml: var(--tag-ml, var(--mod-tag-ml));--_tag-mr: var(--tag-mr, var(--mod-tag-mr));--_tag-mt: var(--tag-mt, var(--mod-tag-mt));--_tag-mb: var(--tag-mb, var(--mod-tag-mb));margin:var(--_tag-m);margin-inline:var(--_tag-mx);margin-block:var(--_tag-my);margin-left:var(--_tag-ml);margin-right:var(--_tag-mr);margin-top:var(--_tag-mt);margin-bottom:var(--_tag-mb);--_tag-min-height: var(--tag-min-height, var(--mod-tag-min-height, 2rem));--_tag-gap: var(--tag-gap, var(--mod-tag-gap, 0.25rem));--_tag-px: var(--tag-px, var(--mod-tag-px, var(--ds-tag-space-padding-x-base)));--_tag-py: var(--tag-py, var(--mod-tag-py, var(--ds-tag-space-padding-y-base)));--_tag-radius: var(--tag-radius, var(--mod-tag-radius, var(--ds-tag-radius-base)));--_tag-color: var(--tag-color, var(--mod-tag-color, var(--ds-tag-
|
|
1
|
+
:host{--_tag-position: var(--tag-position, var(--mod-tag-position, static));--_tag-top: var(--tag-top, var(--mod-tag-top));--_tag-right: var(--tag-right, var(--mod-tag-right));--_tag-bottom: var(--tag-bottom, var(--mod-tag-bottom));--_tag-left: var(--tag-left, var(--mod-tag-left));position:var(--_tag-position);top:var(--_tag-top);right:var(--_tag-right);bottom:var(--_tag-bottom);left:var(--_tag-left);--_tag-m: var(--tag-m, var(--mod-tag-m, 0));--_tag-my: var(--tag-my, var(--mod-tag-my));--_tag-mx: var(--tag-mx, var(--mod-tag-mx));--_tag-ml: var(--tag-ml, var(--mod-tag-ml));--_tag-mr: var(--tag-mr, var(--mod-tag-mr));--_tag-mt: var(--tag-mt, var(--mod-tag-mt));--_tag-mb: var(--tag-mb, var(--mod-tag-mb));margin:var(--_tag-m);margin-inline:var(--_tag-mx);margin-block:var(--_tag-my);margin-left:var(--_tag-ml);margin-right:var(--_tag-mr);margin-top:var(--_tag-mt);margin-bottom:var(--_tag-mb);--_tag-min-height: var(--tag-min-height, var(--mod-tag-min-height, 2rem));--_tag-gap: var(--tag-gap, var(--mod-tag-gap, 0.25rem));--_tag-px: var(--tag-px, var(--mod-tag-px, var(--ds-tag-space-padding-x-base)));--_tag-py: var(--tag-py, var(--mod-tag-py, var(--ds-tag-space-padding-y-base)));--_tag-radius: var(--tag-radius, var(--mod-tag-radius, var(--ds-tag-radius-base)));--_tag-color: var(--tag-color, var(--mod-tag-color, var(--ds-tag-base-color-text-base)));--_tag-bg: var(--tag-bg, var(--mod-tag-bg, var(--ds-tag-base-color-bg-base)));--_tag-line-height: var(--tag-line-height, var(--mod-tag-line-height, 1));--_tag-font-family: var(--tag-font-family, var(--mod-tag-font-family, var(--ds-tag-font-family)));--_tag-font-size: var(--tag-font-size, var(--mod-tag-font-size, var(--ds-tag-font-size-base)));--_tag-font-weight: var(--tag-font-weight, var(--mod-tag-font-weight, var(--ds-tag-font-weight-base)));--_tag-close-mr: var(--tag-close-mr, var(--mod-tag-close-mr, -0.25rem))}:host{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-user-drag:none;user-drag:none;display:inline-flex;align-items:center;justify-content:center;vertical-align:bottom;box-sizing:border-box;gap:var(--_tag-gap);width:fit-content;min-height:var(--_tag-min-height);padding-block:var(--_tag-py);padding-inline:var(--_tag-px);border-radius:var(--_tag-radius);color:var(--_tag-color);background-color:var(--_tag-bg);font-family:var(--_tag-font-family);line-height:var(--_tag-line-height);font-size:var(--_tag-font-size);font-weight:var(--_tag-font-weight)}:host>.close,:host>ds-close{--close-mr: var(--_tag-close-mr)}:host>ds-icon{--icon-size: 0.875rem}:host::part(label){display:inline-flex;justify-content:center;align-items:center;vertical-align:middle;gap:var(--_tag-gap)}:host(.is-primary){--icon-color: var(--ds-tag-primary-color-text-base);--mod-tag-color: var(--ds-tag-primary-color-text-base);--mod-tag-bg: var(--ds-tag-primary-color-bg-base)}:host(.is-grey){--icon-color: var(--ds-tag-grey-color-text-base);--mod-tag-color: var(--ds-tag-grey-color-text-base);--mod-tag-bg: var(--ds-tag-grey-color-bg-base)}:host(.is-success){--icon-color: var(--ds-tag-success-color-text-base);--mod-tag-color: var(--ds-tag-success-color-text-base);--mod-tag-bg: var(--ds-tag-success-color-bg-base)}:host(.is-info){--icon-color: var(--ds-tag-info-color-text-base);--mod-tag-color: var(--ds-tag-info-color-text-base);--mod-tag-bg: var(--ds-tag-info-color-bg-base)}:host(.is-warning){--icon-color: var(--ds-tag-warning-color-text-base);--mod-tag-color: var(--ds-tag-warning-color-text-base);--mod-tag-bg: var(--ds-tag-warning-color-bg-base)}:host(.is-danger){--icon-color: var(--ds-tag-danger-color-text-base);--mod-tag-color: var(--ds-tag-danger-color-text-base);--mod-tag-bg: var(--ds-tag-danger-color-bg-base)}:host(.is-purple){--icon-color: var(--ds-tag-purple-color-text-base);--mod-tag-color: var(--ds-tag-purple-color-text-base);--mod-tag-bg: var(--ds-tag-purple-color-bg-base)}:host(.is-red){--icon-color: var(--ds-tag-red-color-text-base);--mod-tag-color: var(--ds-tag-red-color-text-base);--mod-tag-bg: var(--ds-tag-red-color-bg-base)}:host(.is-yellow){--icon-color: var(--ds-tag-yellow-color-text-base);--mod-tag-color: var(--ds-tag-yellow-color-text-base);--mod-tag-bg: var(--ds-tag-yellow-color-bg-base)}:host(.is-green){--icon-color: var(--ds-tag-green-color-text-base);--mod-tag-color: var(--ds-tag-green-color-text-base);--mod-tag-bg: var(--ds-tag-green-color-bg-base)}:host(.is-purple-dark){--icon-color: var(--ds-tag-purple-dark-color-text-base);--mod-tag-color: var(--ds-tag-purple-dark-color-text-base);--mod-tag-bg: var(--ds-tag-purple-dark-color-bg-base)}:host(.is-red-dark){--icon-color: var(--ds-tag-red-dark-color-text-base);--mod-tag-color: var(--ds-tag-red-dark-color-text-base);--mod-tag-bg: var(--ds-tag-red-dark-color-bg-base)}:host(.is-yellow-dark){--icon-color: var(--ds-tag-yellow-dark-color-text-base);--mod-tag-color: var(--ds-tag-yellow-dark-color-text-base);--mod-tag-bg: var(--ds-tag-yellow-dark-color-bg-base)}:host(.is-green-dark){--icon-color: var(--ds-tag-green-dark-color-text-base);--mod-tag-color: var(--ds-tag-green-dark-color-text-base);--mod-tag-bg: var(--ds-tag-green-dark-color-bg-base)}:host(.is-purple-light){--icon-color: var(--ds-tag-purple-light-color-text-base);--mod-tag-color: var(--ds-tag-purple-light-color-text-base);--mod-tag-bg: var(--ds-tag-purple-light-color-bg-base)}:host(.is-red-light){--icon-color: var(--ds-tag-red-light-color-text-base);--mod-tag-color: var(--ds-tag-red-light-color-text-base);--mod-tag-bg: var(--ds-tag-red-light-color-bg-base)}:host(.is-yellow-light){--icon-color: var(--ds-tag-yellow-light-color-text-base);--mod-tag-color: var(--ds-tag-yellow-light-color-text-base);--mod-tag-bg: var(--ds-tag-yellow-light-color-bg-base)}:host(.is-green-light){--icon-color: var(--ds-tag-green-light-color-text-base);--mod-tag-color: var(--ds-tag-green-light-color-text-base);--mod-tag-bg: var(--ds-tag-green-light-color-bg-base)}:host(.is-primary){--close-color-icon: var(--ds-close-inverted-icon-color-base);--close-color-background-hover: var(--ds-close-inverted-color-background-hover);--close-color-background-active: var(--ds-close-inverted-color-background-active);--close-color-focus: var(--ds-alias-interaction-focus-color-inverted)}:host(.is-grey){--close-color-icon: var(--ds-close-inverted-icon-color-base);--close-color-background-hover: var(--ds-close-inverted-color-background-hover);--close-color-background-active: var(--ds-close-inverted-color-background-active);--close-color-focus: var(--ds-alias-interaction-focus-color-inverted)}:host(.is-info){--close-color-icon: var(--ds-close-inverted-icon-color-base);--close-color-background-hover: var(--ds-close-inverted-color-background-hover);--close-color-background-active: var(--ds-close-inverted-color-background-active);--close-color-focus: var(--ds-alias-interaction-focus-color-inverted)}:host(.is-success){--close-color-icon: var(--ds-close-inverted-icon-color-base);--close-color-background-hover: var(--ds-close-inverted-color-background-hover);--close-color-background-active: var(--ds-close-inverted-color-background-active);--close-color-focus: var(--ds-alias-interaction-focus-color-inverted)}:host(.is-danger){--close-color-icon: var(--ds-close-inverted-icon-color-base);--close-color-background-hover: var(--ds-close-inverted-color-background-hover);--close-color-background-active: var(--ds-close-inverted-color-background-active);--close-color-focus: var(--ds-alias-interaction-focus-color-inverted)}:host(.is-purple-dark){--close-color-icon: var(--ds-close-inverted-icon-color-base);--close-color-background-hover: var(--ds-close-inverted-color-background-hover);--close-color-background-active: var(--ds-close-inverted-color-background-active);--close-color-focus: var(--ds-alias-interaction-focus-color-inverted)}:host(.is-red-dark){--close-color-icon: var(--ds-close-inverted-icon-color-base);--close-color-background-hover: var(--ds-close-inverted-color-background-hover);--close-color-background-active: var(--ds-close-inverted-color-background-active);--close-color-focus: var(--ds-alias-interaction-focus-color-inverted)}:host(.is-yellow-dark){--close-color-icon: var(--ds-close-inverted-icon-color-base);--close-color-background-hover: var(--ds-close-inverted-color-background-hover);--close-color-background-active: var(--ds-close-inverted-color-background-active);--close-color-focus: var(--ds-alias-interaction-focus-color-inverted)}:host(.is-green-dark){--close-color-icon: var(--ds-close-inverted-icon-color-base);--close-color-background-hover: var(--ds-close-inverted-color-background-hover);--close-color-background-active: var(--ds-close-inverted-color-background-active);--close-color-focus: var(--ds-alias-interaction-focus-color-inverted)}:host(.is-square){--mod-tag-radius: var(--ds-tag-radius-square)}:host(.is-pill){--mod-tag-radius: var(--ds-tag-radius-pill)}:host(.is-sm){--mod-tag-min-height: 1.5rem;--mod-tag-py: var(--ds-tag-space-padding-y-sm);--mod-tag-px: var(--ds-tag-space-padding-x-sm);--mod-tag-font-size: var(--ds-tag-font-size-sm);--mod-tag-font-weight: var(--ds-tag-font-weight-sm)}:host(.is-sm)>.close,:host(.is-sm)>ds-close{--close-padding: 0.25rem;--close-size-icon: 10px}:host(.is-md){--mod-tag-min-height: 2.5rem;--mod-tag-py: var(--ds-tag-space-padding-y-md);--mod-tag-px: var(--ds-tag-space-padding-x-md);--mod-tag-font-size: var(--ds-tag-font-size-md);--mod-tag-font-weight: var(--ds-tag-font-weight-md)}:host(.is-lg){--mod-tag-min-height: 3rem;--mod-tag-py: var(--ds-tag-space-padding-y-lg);--mod-tag-px: var(--ds-tag-space-padding-x-lg);--mod-tag-font-size: var(--ds-tag-font-size-lg);--mod-tag-font-weight: var(--ds-tag-font-weight-lg)}:host{display:inline-flex}
|
|
@@ -63,14 +63,14 @@ export class Tag {
|
|
|
63
63
|
*/
|
|
64
64
|
render() {
|
|
65
65
|
const size = normalizeDeprecatedTShirtSize(this.size) || '';
|
|
66
|
-
return (h(Host, { key: '
|
|
66
|
+
return (h(Host, { key: 'b5661eb0f112158f6322cb7f68e8b2bc70b5539d', class: {
|
|
67
67
|
[`is-${this.color}`]: hasValue(this.color),
|
|
68
68
|
[`is-${size}`]: hasValue(this.size),
|
|
69
69
|
[`is-shape-${this.shape}`]: hasValue(this.shape),
|
|
70
70
|
'is-closable': this.closable,
|
|
71
71
|
'is-disabled': this.disabled,
|
|
72
72
|
'is-invalid': this.invalid,
|
|
73
|
-
} }, h("span", { key: '
|
|
73
|
+
} }, h("span", { key: '79a20487f389ed804a44e1a85596e7499a755282', part: "label" }, h("slot", { key: '012168b23c6da831bdaca31a514156da9d618b8d' })), this.closable && !this.disabled ? (h("ds-close", Object.assign({}, this.inheritedAttributesClose, { onClick: (ev) => this.dsCloseClick.emit(ev) }))) : ('')));
|
|
74
74
|
}
|
|
75
75
|
static get is() { return "ds-tag"; }
|
|
76
76
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1 +1 @@
|
|
|
1
|
-
:host{--_text-position: var(--text-position, var(--mod-text-position, static));--_text-top: var(--text-top, var(--mod-text-top));--_text-right: var(--text-right, var(--mod-text-right));--_text-bottom: var(--text-bottom, var(--mod-text-bottom));--_text-left: var(--text-left, var(--mod-text-left));position:var(--_text-position);top:var(--_text-top);right:var(--_text-right);bottom:var(--_text-bottom);left:var(--_text-left);--_text-m: var(--text-m, var(--mod-text-m, 0));--_text-my: var(--text-my, var(--mod-text-my));--_text-mx: var(--text-mx, var(--mod-text-mx));--_text-ml: var(--text-ml, var(--mod-text-ml));--_text-mr: var(--text-mr, var(--mod-text-mr));--_text-mt: var(--text-mt, var(--mod-text-mt));--_text-mb: var(--text-mb, var(--mod-text-mb));margin:var(--_text-m);margin-inline:var(--_text-mx);margin-block:var(--_text-my);margin-left:var(--_text-ml);margin-right:var(--_text-mr);margin-top:var(--_text-mt);margin-bottom:var(--_text-mb);--_text-color: var(--text-color, var(--mod-text-color, inherit));--_text-align: var(--text-align, var(--mod-text-align, inherit));--_text-family: var(--text-family, var(--mod-text-family, var(--ds-body-family)));--_text-weight: var(--text-weight, var(--mod-text-weight, var(--ds-body-weight)));--_text-line-height: var(--text-line-height, var(--mod-text-line-height, var(--ds-body-line-height)));--_text-size: var(--text-size, var(--mod-text-size, var(--ds-text-size-base-device)));--_text-shadow: var(--text-shadow, var(--mod-text-shadow, var(--ds-alias-shadow-text)));--_text-space: var(--text-space, var(--mod-text-space, var(--ds-body-space)));--_text-shadow: var(--text-shadow, var(--mod-text-shadow, none))}#text{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:block;box-sizing:content-box;hyphens:auto;overflow-wrap:break-word;text-wrap:balance;text-align:var(--_text-align);color:var(--_text-color);font-family:var(--_text-family);font-weight:var(--_text-weight);line-height:var(--_text-line-height);font-size:var(--_text-size);text-shadow:var(--_text-shadow)}#text b,#text strong,#text .is-bold{font-weight:var(--ds-text-weight-bold)}:host(.has-no-wrap) #text.is-centered{--mod-text-align: center}:host(.has-no-wrap) #text.is-right{--mod-text-align: right}:host(.has-no-wrap) #text.is-justified{--mod-text-align: justify}:host(.has-no-wrap) #text{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}:host(.is-bold){--mod-text-weight: var(--ds-text-weight-bold)}:host(.has-shadow){--mod-text-shadow: var(--ds-text-shadow)}:host(.is-inline){display:inline}:host(.is-white){--mod-text-color: var(--ds-text-color-white)}:host(.is-black){--mod-text-color: var(--ds-text-color-black)}:host(.is-primary){--mod-text-color: var(--ds-text-color-primary)}:host(.is-primary-hover){--mod-text-color: var(--ds-text-color-primary-hover)}:host(.is-primary-active){--mod-text-color: var(--ds-text-color-primary-active)}:host(.is-inverted-primary){--mod-text-color: var(--ds-text-color-inverted-primary)}:host(.is-inverted-primary-hover){--mod-text-color: var(--ds-text-color-inverted-primary-hover)}:host(.is-inverted-primary-active){--mod-text-color: var(--ds-text-color-inverted-primary-active)}:host(.is-primary-light){--mod-text-color: var(--ds-text-color-primary-light)}:host(.is-hint){--mod-text-color: var(--ds-text-color-hint)}:host(.is-grey-light){--mod-text-color: var(--ds-text-color-grey-light)}:host(.is-grey){--mod-text-color: var(--ds-text-color-grey)}:host(.is-grey-dark){--mod-text-color: var(--ds-text-color-grey-dark)}:host(.is-disabled){--mod-text-color: var(--ds-text-color-disabled)}:host(.is-inverted-disabled){--mod-text-color: var(--ds-text-color-inverted-disabled)}:host(.is-info){--mod-text-color: var(--ds-text-color-info)}:host(.is-warning){--mod-text-color: var(--ds-text-color-warning)}:host(.is-success){--mod-text-color: var(--ds-text-color-success)}:host(.is-danger){--mod-text-color: var(--ds-text-color-danger)}:host(.is-danger-hover){--mod-text-color: var(--ds-text-color-danger-hover)}:host(.is-danger-active){--mod-text-color: var(--ds-text-color-danger-active)}:host(.is-xs){--mod-text-size: var(--ds-text-size-xs-device)}:host(.is-sm){--mod-text-size: var(--ds-text-size-sm-device)}:host(.is-base){--mod-text-size: var(--ds-text-size-base-device)}:host(.is-md){--mod-text-size: var(--ds-text-size-md-device)}:host(.is-lg){--mod-text-size: var(--ds-text-size-lg-device)}:host(.is-xl){--mod-text-size: var(--ds-text-size-xl-device)}:host(.is-2xl){--mod-text-size: var(--ds-text-size-2xl-device)}:host(.is-3xl){--mod-text-size: var(--ds-text-size-3xl-device)}:host(.is-4xl){--mod-text-size: var(--ds-text-size-4xl-device)}:host(.is-5xl){--mod-text-size: var(--ds-text-size-5xl-device)}:host(.is-small){--mod-text-size: var(--ds-text-size-sm-device)}:host(.is-lead){--mod-text-size: var(--ds-text-size-lg-device)}:host(.is-block){--mod-text-size: var(--ds-text-size-md-device)}:host(.is-heading){--mod-text-family: var(--ds-text-family-heading);--mod-text-weight: var(--ds-text-weight-bold);--mod-text-line-height: var(--ds-text-line-height-heading)}:host(.is-subtitle){--mod-text-family: var(--ds-text-family-heading);--mod-text-weight: var(--ds-text-weight-light);--mod-text-line-height: var(--ds-text-line-height-heading)}:host(.has-space-all){--text-mt: var(--_text-space);--text-mb: var(--_text-space)}:host(.has-space-top){--text-mt: var(--_text-space);--text-mb: 0}:host(.has-space-bottom){--text-mt: 0;--text-mb: var(--_text-space)}:host(.has-space-none){--text-mt: 0;--text-mb: 0}:host{display:block}
|
|
1
|
+
:host{--_text-position: var(--text-position, var(--mod-text-position, static));--_text-top: var(--text-top, var(--mod-text-top));--_text-right: var(--text-right, var(--mod-text-right));--_text-bottom: var(--text-bottom, var(--mod-text-bottom));--_text-left: var(--text-left, var(--mod-text-left));position:var(--_text-position);top:var(--_text-top);right:var(--_text-right);bottom:var(--_text-bottom);left:var(--_text-left);--_text-m: var(--text-m, var(--mod-text-m, 0));--_text-my: var(--text-my, var(--mod-text-my));--_text-mx: var(--text-mx, var(--mod-text-mx));--_text-ml: var(--text-ml, var(--mod-text-ml));--_text-mr: var(--text-mr, var(--mod-text-mr));--_text-mt: var(--text-mt, var(--mod-text-mt));--_text-mb: var(--text-mb, var(--mod-text-mb));margin:var(--_text-m);margin-inline:var(--_text-mx);margin-block:var(--_text-my);margin-left:var(--_text-ml);margin-right:var(--_text-mr);margin-top:var(--_text-mt);margin-bottom:var(--_text-mb);--_text-color: var(--text-color, var(--mod-text-color, inherit));--_text-align: var(--text-align, var(--mod-text-align, inherit));--_text-family: var(--text-family, var(--mod-text-family, var(--ds-body-family)));--_text-weight: var(--text-weight, var(--mod-text-weight, var(--ds-body-weight)));--_text-line-height: var(--text-line-height, var(--mod-text-line-height, var(--ds-body-line-height)));--_text-size: var(--text-size, var(--mod-text-size, var(--ds-alias-text-size-base-device)));--_text-shadow: var(--text-shadow, var(--mod-text-shadow, var(--ds-alias-shadow-text)));--_text-space: var(--text-space, var(--mod-text-space, var(--ds-body-space)));--_text-shadow: var(--text-shadow, var(--mod-text-shadow, none))}#text{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:block;box-sizing:content-box;hyphens:auto;overflow-wrap:break-word;text-wrap:balance;text-align:var(--_text-align);color:var(--_text-color);font-family:var(--_text-family);font-weight:var(--_text-weight);line-height:var(--_text-line-height);font-size:var(--_text-size);text-shadow:var(--_text-shadow)}#text b,#text strong,#text .is-bold{font-weight:var(--ds-alias-text-weight-bold)}:host(.has-no-wrap) #text.is-centered{--mod-text-align: center}:host(.has-no-wrap) #text.is-right{--mod-text-align: right}:host(.has-no-wrap) #text.is-justified{--mod-text-align: justify}:host(.has-no-wrap) #text{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}:host(.is-bold){--mod-text-weight: var(--ds-alias-text-weight-bold)}:host(.has-shadow){--mod-text-shadow: var(--ds-alias-text-shadow)}:host(.is-inline){display:inline}:host(.is-white){--mod-text-color: var(--ds-alias-text-color-white)}:host(.is-black){--mod-text-color: var(--ds-alias-text-color-black)}:host(.is-primary){--mod-text-color: var(--ds-alias-text-color-primary)}:host(.is-primary-hover){--mod-text-color: var(--ds-alias-text-color-primary-hover)}:host(.is-primary-active){--mod-text-color: var(--ds-alias-text-color-primary-active)}:host(.is-inverted-primary){--mod-text-color: var(--ds-alias-text-color-inverted-primary)}:host(.is-inverted-primary-hover){--mod-text-color: var(--ds-alias-text-color-inverted-primary-hover)}:host(.is-inverted-primary-active){--mod-text-color: var(--ds-alias-text-color-inverted-primary-active)}:host(.is-primary-light){--mod-text-color: var(--ds-alias-text-color-primary-light)}:host(.is-hint){--mod-text-color: var(--ds-alias-text-color-hint)}:host(.is-grey-light){--mod-text-color: var(--ds-alias-text-color-grey-light)}:host(.is-grey){--mod-text-color: var(--ds-alias-text-color-grey)}:host(.is-grey-dark){--mod-text-color: var(--ds-alias-text-color-grey-dark)}:host(.is-disabled){--mod-text-color: var(--ds-alias-text-color-disabled)}:host(.is-inverted-disabled){--mod-text-color: var(--ds-alias-text-color-inverted-disabled)}:host(.is-info){--mod-text-color: var(--ds-alias-text-color-info)}:host(.is-warning){--mod-text-color: var(--ds-alias-text-color-warning)}:host(.is-success){--mod-text-color: var(--ds-alias-text-color-success)}:host(.is-danger){--mod-text-color: var(--ds-alias-text-color-danger)}:host(.is-danger-hover){--mod-text-color: var(--ds-alias-text-color-danger-hover)}:host(.is-danger-active){--mod-text-color: var(--ds-alias-text-color-danger-active)}:host(.is-xs){--mod-text-size: var(--ds-alias-text-size-xs-device)}:host(.is-sm){--mod-text-size: var(--ds-alias-text-size-sm-device)}:host(.is-base){--mod-text-size: var(--ds-alias-text-size-base-device)}:host(.is-md){--mod-text-size: var(--ds-alias-text-size-md-device)}:host(.is-lg){--mod-text-size: var(--ds-alias-text-size-lg-device)}:host(.is-xl){--mod-text-size: var(--ds-alias-text-size-xl-device)}:host(.is-2xl){--mod-text-size: var(--ds-alias-text-size-2xl-device)}:host(.is-3xl){--mod-text-size: var(--ds-alias-text-size-3xl-device)}:host(.is-4xl){--mod-text-size: var(--ds-alias-text-size-4xl-device)}:host(.is-5xl){--mod-text-size: var(--ds-alias-text-size-5xl-device)}:host(.is-small){--mod-text-size: var(--ds-alias-text-size-sm-device)}:host(.is-lead){--mod-text-size: var(--ds-alias-text-size-lg-device)}:host(.is-block){--mod-text-size: var(--ds-alias-text-size-md-device)}:host(.is-heading){--mod-text-family: var(--ds-alias-text-family-heading);--mod-text-weight: var(--ds-alias-text-weight-bold);--mod-text-line-height: var(--ds-alias-text-line-height-heading)}:host(.is-subtitle){--mod-text-family: var(--ds-alias-text-family-heading);--mod-text-weight: var(--ds-alias-text-weight-light);--mod-text-line-height: var(--ds-alias-text-line-height-heading)}:host(.has-space-all){--text-mt: var(--_text-space);--text-mb: var(--_text-space)}:host(.has-space-top){--text-mt: var(--_text-space);--text-mb: 0}:host(.has-space-bottom){--text-mt: 0;--text-mb: var(--_text-space)}:host(.has-space-none){--text-mt: 0;--text-mb: 0}:host{display:block}
|
|
@@ -112,7 +112,7 @@ export class Text {
|
|
|
112
112
|
render() {
|
|
113
113
|
const Text = this.inline ? 'span' : 'p';
|
|
114
114
|
const color = this.parseColor();
|
|
115
|
-
return (h(Host, { key: '
|
|
115
|
+
return (h(Host, { key: 'aeb2a4c195c26472a6b220e9bf6b467fbb3c08b7', class: {
|
|
116
116
|
[`is-${color}`]: hasValue(color),
|
|
117
117
|
'is-bold': this.bold,
|
|
118
118
|
'has-shadow': this.shadow,
|
|
@@ -122,9 +122,9 @@ export class Text {
|
|
|
122
122
|
'has-no-wrap': this.noWrap,
|
|
123
123
|
[`has-space-${this.space}`]: hasValue(this.space),
|
|
124
124
|
[`is-${this.size}`]: hasValue(this.size),
|
|
125
|
-
} }, h(Text, { key: '
|
|
125
|
+
} }, h(Text, { key: '89cd8bb57e660ea18a684bb5e39722db7c488083', id: "text", part: "text", class: {
|
|
126
126
|
[`is-${this.align}`]: hasValue(this.align),
|
|
127
|
-
} }, h("slot", { key: '
|
|
127
|
+
} }, h("slot", { key: '27869591db1ec7e90acfcca7630f2bc3955f32be' }))));
|
|
128
128
|
}
|
|
129
129
|
static get is() { return "ds-text"; }
|
|
130
130
|
static get encapsulation() { return "shadow"; }
|
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import { expectScreenshot, screenshot, test } from "../../../../../../playwright/src/index";
|
|
5
5
|
const TAG = 'textarea';
|
|
6
|
-
const VARIANTS = ['basic', 'disabled', 'invalid', 'valid', 'warning', 'rows', 'long-content'];
|
|
6
|
+
const VARIANTS = ['basic', 'disabled', 'invalid', 'invalid-slot', 'valid', 'warning', 'rows', 'long-content'];
|
|
7
7
|
const image = screenshot(TAG);
|
|
8
8
|
test.describe('style', () => {
|
|
9
9
|
test.beforeEach('Setup', async ({ page }) => {
|
|
10
10
|
await page.setupVisualTest(`/components/${TAG}/test/${TAG}.style.html`);
|
|
11
11
|
});
|
|
12
|
-
VARIANTS.filter(v => !['rows', 'long-content'].includes(v)).forEach(variant => {
|
|
12
|
+
VARIANTS.filter(v => !['rows', 'long-content', 'invalid-slot'].includes(v)).forEach(variant => {
|
|
13
13
|
test(variant, async ({ page }) => {
|
|
14
14
|
const el = page.getByTestId(variant);
|
|
15
15
|
await expectScreenshot(el, image(`style-${variant}`));
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import { __decorate, __metadata } from "tslib";
|
|
5
5
|
import { h, } from "@stencil/core";
|
|
6
|
-
import { inheritAttributes, FormControl, debounceEvent, Logger, OneOf, Type, } from "../../utils/index";
|
|
6
|
+
import { inheritAttributes, FormControl, debounceEvent, Logger, OneOf, Type, watchInvalidTextSlot, } from "../../utils/index";
|
|
7
7
|
import { defaultConfig, ListenToConfig } from "../../global/index";
|
|
8
8
|
import { Field } from "../input/field.util";
|
|
9
9
|
import { INPUT_COLORS, INPUT_INPUT_MODES } from "../input/input.interfaces";
|
|
@@ -12,6 +12,7 @@ import { TEXTAREA_WRAPS, } from "./textarea.interfaces";
|
|
|
12
12
|
* Textarea renders a multi-line text input field with validation, resizing, and optional help/error messaging.
|
|
13
13
|
*
|
|
14
14
|
* @slot - The textarea field content and surrounding elements.
|
|
15
|
+
* @slot invalid-text - Overrides the `invalidText` prop with custom markup, shown instead of the description when `invalid` is `true`.
|
|
15
16
|
* @part textarea - The native HTML textarea element.
|
|
16
17
|
* @part prefix - The prefix wrapper (if used).
|
|
17
18
|
* @part suffix - The suffix wrapper (if used).
|
|
@@ -22,6 +23,7 @@ export class Textarea {
|
|
|
22
23
|
this.inheritedAttributes = {};
|
|
23
24
|
this.control = new FormControl(this);
|
|
24
25
|
this.focused = false;
|
|
26
|
+
this.hasInvalidTextSlotContent = false;
|
|
25
27
|
this.language = defaultConfig.language;
|
|
26
28
|
this.region = defaultConfig.region;
|
|
27
29
|
/**
|
|
@@ -130,6 +132,13 @@ export class Textarea {
|
|
|
130
132
|
connectedCallback() {
|
|
131
133
|
this.debounceChanged();
|
|
132
134
|
this.control.connectedCallback();
|
|
135
|
+
this.disconnectInvalidTextSlotWatcher = watchInvalidTextSlot(this.el, hasContent => {
|
|
136
|
+
this.hasInvalidTextSlotContent = hasContent;
|
|
137
|
+
});
|
|
138
|
+
}
|
|
139
|
+
disconnectedCallback() {
|
|
140
|
+
var _a;
|
|
141
|
+
(_a = this.disconnectInvalidTextSlotWatcher) === null || _a === void 0 ? void 0 : _a.call(this);
|
|
133
142
|
}
|
|
134
143
|
componentWillLoad() {
|
|
135
144
|
this.inheritedAttributes = inheritAttributes(this.el, ['aria-label', 'tabindex', 'title', 'data-hj-allow']);
|
|
@@ -182,7 +191,8 @@ export class Textarea {
|
|
|
182
191
|
* ------------------------------------------------------
|
|
183
192
|
*/
|
|
184
193
|
render() {
|
|
185
|
-
|
|
194
|
+
const isInvalid = this.invalid || this.hasInvalidTextSlotContent;
|
|
195
|
+
return (h(Field, { key: '49d0b6396fe85413e395b50d5e09efca92db51f8', inputId: 'textarea', disabled: this.disabled, color: this.color, invalid: isInvalid, label: this.label, description: this.description, invalidText: this.invalidText, required: this.required, language: this.language }, h("textarea", Object.assign({ key: '0a963e803a8e9341869b3b25336c092d8f25b65e', id: "textarea", part: "textarea", name: this.name, ref: el => (this.control.nativeEl = el), "aria-describedby": "description", "aria-invalid": isInvalid ? 'true' : 'false', disabled: this.disabled, autoCapitalize: this.autocapitalize, autocomplete: this.autocomplete, autofocus: this.autofocus, minLength: this.minLength, maxLength: this.maxLength, placeholder: this.placeholder || '', readonly: this.readonly, required: this.required, inputMode: this.inputmode, cols: this.cols, rows: this.rows, wrap: this.wrap ? this.wrap : undefined, onClick: ev => this.handleClick(ev), onFocus: ev => this.handleFocus(ev), onBlur: ev => this.handleBlur(ev), onInput: ev => this.handleInput(ev), onKeyPress: ev => this.dsKeyPress.emit(ev) }, this.inheritedAttributes))));
|
|
186
196
|
}
|
|
187
197
|
static get is() { return "ds-textarea"; }
|
|
188
198
|
static get encapsulation() { return "shadow"; }
|
|
@@ -668,6 +678,7 @@ export class Textarea {
|
|
|
668
678
|
static get states() {
|
|
669
679
|
return {
|
|
670
680
|
"focused": {},
|
|
681
|
+
"hasInvalidTextSlotContent": {},
|
|
671
682
|
"language": {},
|
|
672
683
|
"region": {}
|
|
673
684
|
};
|
|
@@ -142,7 +142,7 @@ export class Toggle {
|
|
|
142
142
|
* ------------------------------------------------------
|
|
143
143
|
*/
|
|
144
144
|
render() {
|
|
145
|
-
return (h(Host, { key: '
|
|
145
|
+
return (h(Host, { key: '82e0075aa3e76cc231d0e507de6f6abbc6947fbd', "aria-disabled": this.disabled ? 'true' : null, "aria-checked": `${this.checked}`, "aria-invalid": this.invalid ? 'true' : null, class: {
|
|
146
146
|
'is-disabled': this.disabled || this.readonly,
|
|
147
147
|
'is-invalid': this.invalid,
|
|
148
148
|
'is-checked': this.checked,
|
|
@@ -153,7 +153,7 @@ export class Toggle {
|
|
|
153
153
|
[`has-cols-${this.cols}`]: this.tile && this.cols > 1,
|
|
154
154
|
[`has-cols-${this.colsTablet}-tablet`]: this.tile && this.colsTablet > 1,
|
|
155
155
|
[`has-cols-${this.colsMobile}-mobile`]: this.tile && this.colsMobile > 1,
|
|
156
|
-
} }, h("label", { key: '
|
|
156
|
+
} }, h("label", { key: '0a6ec1155840f00f9cba605ed1436744d7ea5c44', id: "label", part: "label" }, h("input", Object.assign({ key: 'fce712af56287d341b3e096b87338e75aa078e7e', type: "checkbox", part: "input", id: this.inputId, name: this.name, value: this.value, checked: this.checked, disabled: this.disabled || this.readonly, required: this.required, "aria-invalid": this.invalid ? 'true' : null, onChange: ev => this.handleChange(ev), onFocus: this.handleFocus, onBlur: this.handleBlur, ref: inputEl => (this.nativeInput = inputEl) }, this.inheritAttributes)), h("div", { key: 'ddabd79fa0110eb5d3bf25023814af1cd75c4c28', id: "slot", part: "slot" }, h("slot", { key: '05f2ca777a6d522ecc30e5bff1fba852ef32b3a5' })))));
|
|
157
157
|
}
|
|
158
158
|
static get is() { return "ds-toggle"; }
|
|
159
159
|
static get encapsulation() { return "shadow"; }
|
|
@@ -155,7 +155,7 @@ export class Tooltip {
|
|
|
155
155
|
* ------------------------------------------------------
|
|
156
156
|
*/
|
|
157
157
|
render() {
|
|
158
|
-
return (h(Host, { key: '
|
|
158
|
+
return (h(Host, { key: '70f12c4635b8547887442ac1be6a3384f0754f01', id: this.tooltipId, role: "tooltip", "aria-hidden": `${!this.presented}` }, h("div", { key: '6934ecd48ac24eabd34e190c9d00f7c40346102e', part: "container", ref: el => (this.containerEl = el) }, h("div", { key: 'c85391dbfa57c220d5176c6a65ccad6d88ecb135', part: "content", "data-testid": "ds-tooltip-content" }, h("slot", { key: '88af144938af076f3278e0a8579c75dccd71f36f' })))));
|
|
159
159
|
}
|
|
160
160
|
static get is() { return "ds-tooltip"; }
|
|
161
161
|
static get encapsulation() { return "shadow"; }
|
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
* (C) Helvetia Design System https://design.baloise.dev/ - Apache License 2.0
|
|
3
3
|
*/
|
|
4
4
|
import { initializeDesignSystem } from "./initialize";
|
|
5
|
+
import { initializeTokenPreview } from "./token-preview";
|
|
5
6
|
export default function () {
|
|
6
7
|
initializeDesignSystem();
|
|
8
|
+
initializeTokenPreview();
|
|
7
9
|
}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* (C) Helvetia Design System https://design.baloise.dev/ - Apache License 2.0
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Live token preview: applies token changes posted by an embedding parent window (Toky's live
|
|
6
|
+
* preview sidebar) directly to `document.documentElement.style`, so a component's rendered
|
|
7
|
+
* output reflects in-progress token edits without a rebuild. No-ops outside an iframe, so it
|
|
8
|
+
* never activates during normal component consumption or Playwright visual-regression runs.
|
|
9
|
+
* No origin allowlist yet - MVP is localhost-only (see packages/core/CONTEXT.md).
|
|
10
|
+
*/
|
|
11
|
+
export const initializeTokenPreview = (win = window) => {
|
|
12
|
+
if (win.parent === win) {
|
|
13
|
+
return;
|
|
14
|
+
}
|
|
15
|
+
const appliedProperties = new Set();
|
|
16
|
+
const injectedBrandStylesheets = new Set();
|
|
17
|
+
const applyTokens = (tokens) => {
|
|
18
|
+
for (const { name, value } of tokens) {
|
|
19
|
+
if (value === null) {
|
|
20
|
+
win.document.documentElement.style.removeProperty(name);
|
|
21
|
+
appliedProperties.delete(name);
|
|
22
|
+
}
|
|
23
|
+
else {
|
|
24
|
+
win.document.documentElement.style.setProperty(name, value);
|
|
25
|
+
appliedProperties.add(name);
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
const applyBrand = (brand) => {
|
|
30
|
+
if (!brand || brand === 'Base') {
|
|
31
|
+
delete win.document.documentElement.dataset['theme'];
|
|
32
|
+
return;
|
|
33
|
+
}
|
|
34
|
+
const href = `/assets/tokens/${brand.toLowerCase()}.tokens.css`;
|
|
35
|
+
if (!injectedBrandStylesheets.has(href)) {
|
|
36
|
+
const link = win.document.createElement('link');
|
|
37
|
+
link.rel = 'stylesheet';
|
|
38
|
+
link.href = href;
|
|
39
|
+
win.document.head.appendChild(link);
|
|
40
|
+
injectedBrandStylesheets.add(href);
|
|
41
|
+
}
|
|
42
|
+
// packages/tokens emits the brand stylesheet's selector lowercased (config.brand.ts:
|
|
43
|
+
// `[data-theme="${mode.toLowerCase()}"]`) - matching that here is what makes the injected
|
|
44
|
+
// stylesheet above actually apply.
|
|
45
|
+
win.document.documentElement.dataset['theme'] = brand.toLowerCase();
|
|
46
|
+
};
|
|
47
|
+
const reset = () => {
|
|
48
|
+
for (const name of appliedProperties) {
|
|
49
|
+
win.document.documentElement.style.removeProperty(name);
|
|
50
|
+
}
|
|
51
|
+
appliedProperties.clear();
|
|
52
|
+
delete win.document.documentElement.dataset['theme'];
|
|
53
|
+
};
|
|
54
|
+
win.addEventListener('message', (event) => {
|
|
55
|
+
if (event.source !== win.parent) {
|
|
56
|
+
return;
|
|
57
|
+
}
|
|
58
|
+
const message = event.data;
|
|
59
|
+
if (!message || message.source !== 'ds-token-preview') {
|
|
60
|
+
return;
|
|
61
|
+
}
|
|
62
|
+
switch (message.type) {
|
|
63
|
+
case 'set-tokens':
|
|
64
|
+
applyTokens(message.tokens);
|
|
65
|
+
break;
|
|
66
|
+
case 'set-brand':
|
|
67
|
+
applyBrand(message.brand);
|
|
68
|
+
break;
|
|
69
|
+
case 'reset':
|
|
70
|
+
reset();
|
|
71
|
+
break;
|
|
72
|
+
}
|
|
73
|
+
});
|
|
74
|
+
win.parent.postMessage({ source: 'ds-token-preview', type: 'ready' }, '*');
|
|
75
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* (C) Helvetia Design System https://design.baloise.dev/ - Apache License 2.0
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Watches the host's `slot="invalid-text"` light-DOM child for content, calling
|
|
6
|
+
* `onChange` whenever "has non-empty content" flips. Covers both the node being
|
|
7
|
+
* added/removed/replaced and its text being mutated in place (e.g. AEM writing a
|
|
8
|
+
* validation message into an otherwise-empty node it owns).
|
|
9
|
+
*
|
|
10
|
+
* Returns a disconnect function to call from `disconnectedCallback`.
|
|
11
|
+
*/
|
|
12
|
+
export function watchInvalidTextSlot(el, onChange) {
|
|
13
|
+
let contentObserver;
|
|
14
|
+
const check = () => {
|
|
15
|
+
var _a;
|
|
16
|
+
const slotted = el.querySelector(':scope > [slot="invalid-text"]');
|
|
17
|
+
onChange(!!slotted && ((_a = slotted.textContent) !== null && _a !== void 0 ? _a : '').trim().length > 0);
|
|
18
|
+
contentObserver === null || contentObserver === void 0 ? void 0 : contentObserver.disconnect();
|
|
19
|
+
if (slotted) {
|
|
20
|
+
contentObserver = new MutationObserver(check);
|
|
21
|
+
contentObserver.observe(slotted, { childList: true, characterData: true, subtree: true });
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
const hostObserver = new MutationObserver(check);
|
|
25
|
+
hostObserver.observe(el, { childList: true });
|
|
26
|
+
check();
|
|
27
|
+
return () => {
|
|
28
|
+
hostObserver.disconnect();
|
|
29
|
+
contentObserver === null || contentObserver === void 0 ? void 0 : contentObserver.disconnect();
|
|
30
|
+
};
|
|
31
|
+
}
|