@baloise/ds-core 20.0.0-next.4 → 20.0.0-next.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +9 -0
- package/components/all.d.ts +58 -0
- package/components/all.js +87 -0
- package/components/ds-accordion.js +1 -1
- package/components/ds-alert-container.js +1 -1
- package/components/ds-app.js +1 -1
- package/components/ds-badge.js +1 -1
- package/components/ds-button-group.js +1 -1
- package/components/ds-button.js +1 -1
- package/components/ds-card-actions.js +1 -1
- package/components/ds-card-content.js +1 -1
- package/components/ds-card-header.js +1 -1
- package/components/ds-card-subtitle.js +1 -1
- package/components/ds-card-title.js +1 -1
- package/components/ds-card.js +1 -1
- package/components/ds-carousel-item.d.ts +11 -0
- package/components/ds-carousel-item.js +4 -0
- package/components/ds-carousel.d.ts +11 -0
- package/components/ds-carousel.js +4 -0
- package/components/ds-checkbox-group.js +1 -1
- package/components/ds-checkbox.js +1 -1
- package/components/ds-close.js +1 -1
- package/components/ds-content.js +1 -1
- package/components/ds-data-item.d.ts +11 -0
- package/components/ds-data-item.js +4 -0
- package/components/ds-data-label.d.ts +11 -0
- package/components/ds-data-label.js +4 -0
- package/components/ds-data-value.d.ts +11 -0
- package/components/ds-data-value.js +4 -0
- package/components/ds-data.d.ts +11 -0
- package/components/ds-data.js +4 -0
- package/components/ds-date.d.ts +11 -0
- package/components/ds-date.js +4 -0
- package/components/ds-divider.js +1 -1
- package/components/ds-drawer.d.ts +11 -0
- package/components/ds-drawer.js +4 -0
- package/components/ds-file-upload.d.ts +11 -0
- package/components/ds-file-upload.js +4 -0
- package/components/ds-footer.d.ts +11 -0
- package/components/ds-footer.js +4 -0
- package/components/ds-heading.js +1 -1
- package/components/ds-hint-text.d.ts +11 -0
- package/components/ds-hint-text.js +4 -0
- package/components/ds-hint-title.d.ts +11 -0
- package/components/ds-hint-title.js +4 -0
- package/components/ds-hint.d.ts +11 -0
- package/components/ds-hint.js +4 -0
- package/components/ds-icon.js +1 -1
- package/components/ds-input-slider.d.ts +11 -0
- package/components/ds-input-slider.js +4 -0
- package/components/ds-input.js +1 -1
- package/components/ds-item.js +1 -1
- package/components/ds-label.js +1 -1
- package/components/ds-list.js +1 -1
- package/components/ds-logo.js +1 -1
- package/components/ds-modal-body.d.ts +11 -0
- package/components/ds-modal-body.js +4 -0
- package/components/ds-modal-header.d.ts +11 -0
- package/components/ds-modal-header.js +4 -0
- package/components/ds-modal.d.ts +11 -0
- package/components/ds-modal.js +4 -0
- package/components/ds-navbar.d.ts +11 -0
- package/components/ds-navbar.js +4 -0
- package/components/ds-notification.js +1 -1
- package/components/ds-number-input.js +1 -1
- package/components/ds-pagination.js +1 -1
- package/components/ds-popup.d.ts +11 -0
- package/components/ds-popup.js +4 -0
- package/components/ds-progress-bar.js +1 -1
- package/components/ds-radio-group.js +1 -1
- package/components/ds-radio.js +1 -1
- package/components/ds-segment-item.js +1 -1
- package/components/ds-segment.js +1 -1
- package/components/ds-select-optgroup.d.ts +11 -0
- package/components/ds-select-optgroup.js +4 -0
- package/components/ds-select-option.d.ts +11 -0
- package/components/ds-select-option.js +4 -0
- package/components/ds-select.d.ts +11 -0
- package/components/ds-select.js +4 -0
- package/components/ds-shape.js +1 -1
- package/components/ds-snackbar.js +1 -1
- package/components/ds-spinner.js +1 -1
- package/components/ds-stack.js +1 -1
- package/components/ds-step-panel.d.ts +11 -0
- package/components/ds-step-panel.js +4 -0
- package/components/ds-step.d.ts +11 -0
- package/components/ds-step.js +4 -0
- package/components/ds-steps.d.ts +11 -0
- package/components/ds-steps.js +4 -0
- package/components/ds-tab-panel.d.ts +11 -0
- package/components/ds-tab-panel.js +4 -0
- package/components/ds-tab.d.ts +11 -0
- package/components/ds-tab.js +4 -0
- package/components/ds-tabs.d.ts +11 -0
- package/components/ds-tabs.js +4 -0
- package/components/ds-tag-group.js +1 -1
- package/components/ds-tag.js +1 -1
- package/components/ds-text.js +1 -1
- package/components/ds-textarea.js +1 -1
- package/components/ds-toast.js +1 -1
- package/components/ds-toggle.js +1 -1
- package/components/ds-tooltip.d.ts +11 -0
- package/components/ds-tooltip.js +4 -0
- package/components/index.js +1 -1
- package/components/p--EKmxaBS.js +4 -0
- package/components/p-3Mi9vpmB.js +4 -0
- package/components/p-ABj0eATe.js +4 -0
- package/components/p-B-en4B17.js +4 -0
- package/components/p-BgzU1loG.js +4 -0
- package/components/p-BhbWmCTu.js +4 -0
- package/components/p-BqY0KzJC.js +4 -0
- package/components/p-BrIcCcce.js +4 -0
- package/components/p-BrJFPhMA.js +4 -0
- package/components/{p-Urcs7-vS.js → p-BwfAXfmz.js} +1 -1
- package/components/p-BwwAKEvn.js +4 -0
- package/components/p-ByX1_7SF.js +4 -0
- package/components/p-C1jqbZdf.js +4 -0
- package/{dist/design-system/p-15bc012833.entry.js → components/p-CA7G72wZ.js} +1 -1
- package/components/p-CQHwI4iD.js +4 -0
- package/components/p-CWDuQL1i.js +4 -0
- package/components/p-CvaNxQtw.js +4 -0
- package/components/p-D5zw5ezD.js +4 -0
- package/components/p-D9ILiUgm.js +4 -0
- package/{dist/design-system/p-BATOumsf.js → components/p-D9YYP2SG.js} +1 -1
- package/components/p-DAYd9ty0.js +4 -0
- package/components/p-DIK6Zkg6.js +4 -0
- package/{dist/design-system/p-BkESlUMc.js → components/p-DQBzmbR6.js} +1 -1
- package/components/p-DSeYzuO7.js +4 -0
- package/components/{p-z1jJgtep.js → p-DU7t9H9h.js} +1 -1
- package/components/p-DY0y8uLL.js +4 -0
- package/components/p-DYTOWDAA.js +4 -0
- package/components/p-DYlqkAWn.js +4 -0
- package/components/p-DbM7ALm9.js +14 -0
- package/{dist/design-system/p-D2tr7015.js → components/p-DbY6Pfeh.js} +1 -1
- package/components/{p-DZqqelPH.js → p-DcSNuA8W.js} +1 -1
- package/components/p-DenZRIeA.js +4 -0
- package/{dist/design-system/p-BwrOVItb.js → components/p-Dr4MUfss.js} +1 -1
- package/components/p-Du7QOHtz.js +5 -0
- package/components/{p-E8U6M5ii.js → p-FBQaJyH0.js} +1 -1
- package/components/{p-Dr4dquer.js → p-J0mxIuTt.js} +1 -1
- package/{dist/design-system/p-DJxr2Dcd.js → components/p-UCeQ1JCs.js} +1 -1
- package/components/p-Uy_dVz21.js +4 -0
- package/components/p-VsWv65bD.js +4 -0
- package/components/p-WO0X5Vmy.js +4 -0
- package/components/p-gz0Nxl39.js +4 -0
- package/components/{p-Bt20CEww.js → p-n3_2KEz0.js} +1 -1
- package/components/p-qaSW94OG.js +4 -0
- package/components/p-u5aa74vh.js +4 -0
- package/dist/cjs/{_getTag-B468r9bu.js → _getTag-DxZgmSPS.js} +1 -1
- package/dist/cjs/array-CYn4ALBt.js +1986 -0
- package/dist/cjs/{breakpoints.decorator-qaoHOU6Q.js → breakpoints.decorator-DY5iYsA5.js} +1 -1
- package/dist/cjs/{breakpoints.subject-DhAN_ZAn.js → breakpoints.subject-CzhLlIwN.js} +3 -3
- package/dist/cjs/{button.interfaces-BueDWsuH.js → button.interfaces-CqlUGR-N.js} +1 -1
- package/dist/cjs/carousel.interfaces-BFQpUNrw.js +12 -0
- package/dist/cjs/{config.decorator-Qmrq4ZYj.js → config.decorator-C64wi-MA.js} +1 -1
- package/dist/cjs/{config.utils-Cv4cx_Xa.js → config.utils-BhWbrVRz.js} +1 -1
- package/dist/cjs/create-validator-decorator-Ctd288ve.js +212 -0
- package/dist/cjs/design-system.cjs.js +3 -3
- package/dist/cjs/{device-CptgCtVc.js → device-CIliLOe9.js} +1 -1
- package/dist/cjs/ds-accordion.cjs.entry.js +30 -34
- package/dist/cjs/ds-alert-container.cjs.entry.js +12 -15
- package/dist/cjs/ds-app.cjs.entry.js +16 -6
- package/dist/cjs/ds-badge.cjs.entry.js +33 -26
- package/dist/cjs/ds-button-group.cjs.entry.js +14 -17
- package/dist/cjs/ds-button_2.cjs.entry.js +58 -73
- package/dist/cjs/ds-card-actions.cjs.entry.js +6 -8
- package/dist/cjs/ds-card-content.cjs.entry.js +3 -3
- package/dist/cjs/ds-card-header.cjs.entry.js +8 -5
- package/dist/cjs/ds-card-subtitle.cjs.entry.js +13 -13
- package/dist/cjs/ds-card-title.cjs.entry.js +11 -7
- package/dist/cjs/ds-card.cjs.entry.js +32 -43
- package/dist/cjs/ds-carousel-item.cjs.entry.js +128 -0
- package/dist/cjs/ds-carousel.cjs.entry.js +473 -0
- package/dist/cjs/ds-checkbox-group.cjs.entry.js +60 -2013
- package/dist/cjs/ds-checkbox.cjs.entry.js +33 -20
- package/dist/cjs/ds-content_2.cjs.entry.js +330 -0
- package/dist/cjs/ds-data-item.cjs.entry.js +146 -0
- package/dist/cjs/ds-data-label.cjs.entry.js +41 -0
- package/dist/cjs/ds-data-value.cjs.entry.js +31 -0
- package/dist/cjs/ds-data.cjs.entry.js +43 -0
- package/dist/cjs/ds-date.cjs.entry.js +5334 -0
- package/dist/cjs/{ds-logo.cjs.entry.js → ds-divider_2.cjs.entry.js} +130 -25
- package/dist/cjs/ds-drawer_2.cjs.entry.js +602 -0
- package/dist/cjs/ds-file-upload.cjs.entry.js +516 -0
- package/dist/cjs/ds-footer.cjs.entry.js +159 -0
- package/dist/cjs/ds-heading.cjs.entry.js +22 -20
- package/dist/cjs/ds-hint-text.cjs.entry.js +28 -0
- package/dist/cjs/ds-hint-title.cjs.entry.js +31 -0
- package/dist/cjs/ds-hint.cjs.entry.js +243 -0
- package/dist/cjs/ds-icon_2.cjs.entry.js +82 -73
- package/dist/cjs/ds-input-slider.cjs.entry.js +2885 -0
- package/dist/cjs/ds-input.cjs.entry.js +45 -43
- package/dist/cjs/ds-item.cjs.entry.js +29 -34
- package/dist/cjs/ds-label.cjs.entry.js +23 -31
- package/dist/cjs/ds-list.cjs.entry.js +6 -12
- package/dist/cjs/ds-modal-body.cjs.entry.js +34 -0
- package/dist/cjs/ds-modal-header.cjs.entry.js +31 -0
- package/dist/cjs/ds-modal.cjs.entry.js +201 -0
- package/dist/cjs/ds-navbar.cjs.entry.js +359 -0
- package/dist/cjs/ds-notification.cjs.entry.js +20 -28
- package/dist/cjs/ds-number-input.cjs.entry.js +107 -119
- package/dist/cjs/ds-pagination.cjs.entry.js +41 -37
- package/dist/cjs/ds-progress-bar.cjs.entry.js +25 -29
- package/dist/cjs/ds-radio-group.cjs.entry.js +48 -30
- package/dist/cjs/ds-radio.cjs.entry.js +36 -34
- package/dist/cjs/ds-segment-item.cjs.entry.js +9 -9
- package/dist/cjs/ds-segment.cjs.entry.js +29 -117
- package/dist/cjs/ds-select-optgroup.cjs.entry.js +49 -0
- package/dist/cjs/ds-select-option.cjs.entry.js +57 -0
- package/dist/cjs/ds-select.cjs.entry.js +2772 -0
- package/dist/cjs/ds-shape.cjs.entry.js +10 -16
- package/dist/cjs/ds-snackbar.cjs.entry.js +41 -58
- package/dist/cjs/ds-step-panel.cjs.entry.js +55 -0
- package/dist/cjs/ds-step.cjs.entry.js +170 -0
- package/dist/cjs/ds-steps.cjs.entry.js +227 -0
- package/dist/cjs/ds-tab-panel.cjs.entry.js +55 -0
- package/dist/cjs/ds-tab.cjs.entry.js +120 -0
- package/dist/cjs/ds-tabs.cjs.entry.js +364 -0
- package/dist/cjs/ds-tag-group.cjs.entry.js +3 -3
- package/dist/cjs/ds-tag.cjs.entry.js +19 -26
- package/dist/cjs/ds-text.cjs.entry.js +29 -33
- package/dist/cjs/ds-textarea.cjs.entry.js +32 -31
- package/dist/cjs/ds-toast.cjs.entry.js +41 -55
- package/dist/cjs/ds-toggle.cjs.entry.js +22 -21
- package/dist/cjs/ds-tooltip.cjs.entry.js +182 -0
- package/dist/cjs/{field.util-RjuvTLNZ.js → field.util-g9nhtuZH.js} +1 -1
- package/dist/cjs/floating-ui.dom-Cu3dZdFD.js +1628 -0
- package/dist/cjs/focus-BUszBnbl.js +1958 -0
- package/dist/cjs/footer.i18n-CpGxizgm.js +162 -0
- package/dist/cjs/{form-control-Bno2tBGf.js → form-control-B4Qf8fg-.js} +2 -2
- package/dist/cjs/has-value-rj502MLA.js +12 -0
- package/dist/cjs/{index-CdD-TT_n.js → index-CqInh7Vc.js} +502 -175
- package/dist/cjs/index.cjs.js +26 -8283
- package/dist/cjs/isArray-DvQst6zQ.js +42 -0
- package/dist/cjs/isNaN-DOSPWDkt.js +106 -0
- package/dist/cjs/{isObjectLike-h-ta_ikf.js → isObjectLike-BNz6hnAu.js} +0 -37
- package/dist/cjs/keyboard-C7y0jXYb.js +23 -0
- package/dist/cjs/{listener-DgVWqfa1.js → listener-1PZJDuOW.js} +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/luxon-q23LOWrr.js +8137 -0
- package/dist/cjs/one-of-BotLfpAZ.js +30 -0
- package/dist/cjs/popup.interfaces-B-mwd9rh.js +23 -0
- package/dist/cjs/required-BAhZ8oRM.js +38 -0
- package/dist/cjs/resize.decorator-Sqefy8ta.js +98 -0
- package/dist/cjs/scroll--5tnvpG1.js +89 -0
- package/dist/cjs/svg-D9RbiR8R.js +2443 -0
- package/dist/cjs/{tslib.es6-BTi-SLnA.js → tslib.es6-BIB10hMZ.js} +1 -1
- package/dist/cjs/type-Br_NbeTX.js +33 -0
- package/dist/collection/collection-manifest.json +31 -2
- package/dist/collection/components/accordion/accordion.host.css +1 -1
- package/dist/collection/components/accordion/accordion.js +22 -29
- package/dist/collection/components/alert/alert-container.js +8 -14
- package/dist/collection/components/alert/alert.controller.js +1 -1
- package/dist/collection/components/alert/snackbar/snackbar.host.css +1 -1
- package/dist/collection/components/alert/snackbar/snackbar.js +30 -53
- package/dist/collection/components/alert/toast/toast.host.css +1 -1
- package/dist/collection/components/alert/toast/toast.js +32 -53
- package/dist/collection/components/app/app.js +11 -3
- package/dist/collection/components/badge/badge.host.css +1 -1
- package/dist/collection/components/badge/badge.interfaces.js +1 -1
- package/dist/collection/components/badge/badge.js +28 -25
- package/dist/collection/components/button/button-group/button-group.js +8 -14
- package/dist/collection/components/button/button.host.css +1 -1
- package/dist/collection/components/button/button.interfaces.js +1 -1
- package/dist/collection/components/button/button.js +44 -54
- package/dist/collection/components/card/card-actions/card-actions.js +3 -6
- package/dist/collection/components/card/card-content/card-content.host.css +1 -1
- package/dist/collection/components/card/card-header/card-header.js +4 -3
- package/dist/collection/components/card/card-subtitle/card-subtitle.js +8 -11
- package/dist/collection/components/card/card-title/card-title.js +6 -5
- package/dist/collection/components/card/card.host.css +1 -1
- package/dist/collection/components/card/card.js +30 -42
- package/dist/collection/components/carousel/carousel/carousel.host.css +1 -0
- package/dist/collection/components/carousel/carousel/carousel.i18n.js +65 -0
- package/dist/collection/components/carousel/carousel/carousel.js +631 -0
- package/dist/collection/components/carousel/carousel-item/carousel-item.host.css +1 -0
- package/dist/collection/components/carousel/carousel-item/carousel-item.js +313 -0
- package/dist/collection/components/carousel/carousel.interfaces.js +6 -0
- package/dist/collection/components/carousel/test/carousel.a11y.play.js +34 -0
- package/dist/collection/components/carousel/test/carousel.component.play.js +57 -0
- package/dist/collection/components/carousel/test/carousel.visual.play.js +24 -0
- package/dist/collection/components/checkbox/checkbox-group/checkbox-group.host.css +1 -1
- package/dist/collection/components/checkbox/checkbox-group/checkbox-group.js +63 -27
- package/dist/collection/components/checkbox/checkbox.host.css +1 -1
- package/dist/collection/components/checkbox/checkbox.js +47 -18
- package/dist/collection/components/checkbox/test/checkbox.visual.play.js +3 -0
- package/dist/collection/components/close/close.js +10 -21
- package/dist/collection/components/content/content.js +38 -52
- package/dist/collection/components/data/data-item.host.css +1 -0
- package/dist/collection/components/data/data-item.i18n.js +35 -0
- package/dist/collection/components/data/data-item.js +244 -0
- package/dist/collection/components/data/data-label.host.css +1 -0
- package/dist/collection/components/data/data-label.js +72 -0
- package/dist/collection/components/data/data-value.host.css +1 -0
- package/dist/collection/components/data/data-value.js +38 -0
- package/dist/collection/components/data/data.host.css +1 -0
- package/dist/collection/components/data/data.js +75 -0
- package/dist/collection/components/data/test/data.a11y.play.js +31 -0
- package/dist/collection/components/data/test/data.component.play.js +104 -0
- package/dist/collection/components/data/test/data.visual.play.js +25 -0
- package/dist/collection/components/date/date.host.css +1 -0
- package/dist/collection/components/date/date.i18n.js +105 -0
- package/dist/collection/components/date/date.interfaces.js +4 -0
- package/dist/collection/components/date/date.js +1241 -0
- package/dist/collection/components/date/date.mask.js +189 -0
- package/dist/collection/components/date/date.picker.js +536 -0
- package/dist/collection/components/date/test/date.a11y.play.js +27 -0
- package/dist/collection/components/date/test/date.component.play.js +69 -0
- package/dist/collection/components/date/test/date.visual.play.js +43 -0
- package/dist/collection/components/divider/divider.host.css +1 -1
- package/dist/collection/components/divider/divider.js +11 -24
- package/dist/collection/components/drawer/drawer.host.css +1 -0
- package/dist/collection/{utils/property-checkers/constants.js → components/drawer/drawer.interfaces.js} +1 -1
- package/dist/collection/components/drawer/drawer.js +492 -0
- package/dist/collection/components/drawer/test/drawer.a11y.play.js +39 -0
- package/dist/collection/components/drawer/test/drawer.component.play.js +131 -0
- package/dist/collection/components/drawer/test/drawer.visual.play.js +31 -0
- package/dist/collection/components/file-upload/file-upload.host.css +1 -0
- package/dist/collection/components/file-upload/file-upload.i18n.js +55 -0
- package/dist/collection/components/file-upload/file-upload.interfaces.js +10 -0
- package/dist/collection/components/file-upload/file-upload.js +1030 -0
- package/dist/collection/components/file-upload/test/file-upload.a11y.play.js +52 -0
- package/dist/collection/components/file-upload/test/file-upload.component.play.js +124 -0
- package/dist/collection/components/file-upload/test/file-upload.visual.play.js +18 -0
- package/dist/collection/components/file-upload/utils/file-list.util.js +13 -0
- package/dist/collection/components/file-upload/utils/file-size.util.js +10 -0
- package/dist/collection/components/file-upload/utils/file-validation.util.js +48 -0
- package/dist/collection/components/footer/footer.host.css +1 -0
- package/dist/collection/components/footer/footer.i18n.js +155 -0
- package/dist/collection/components/footer/footer.interfaces.js +4 -0
- package/dist/collection/components/footer/footer.js +350 -0
- package/dist/collection/components/footer/test/footer.a11y.play.js +17 -0
- package/dist/collection/components/footer/test/footer.component.play.js +74 -0
- package/dist/collection/components/footer/test/footer.visual.play.js +16 -0
- package/dist/collection/components/form/test/form.visual.play.js +13 -1
- package/dist/collection/components/heading/heading.host.css +1 -1
- package/dist/collection/components/heading/heading.js +16 -17
- package/dist/collection/components/hint/hint-text/hint-text.js +28 -0
- package/dist/collection/components/hint/hint-title/hint-title.js +31 -0
- package/dist/collection/components/hint/hint.host.css +1 -0
- package/dist/collection/components/hint/hint.i18n.js +35 -0
- package/dist/collection/components/hint/hint.interfaces.js +1 -0
- package/dist/collection/components/hint/hint.js +410 -0
- package/dist/collection/components/hint/test/hint.a11y.play.js +41 -0
- package/dist/collection/components/hint/test/hint.component.play.js +110 -0
- package/dist/collection/components/hint/test/hint.visual.play.js +39 -0
- package/dist/collection/components/icon/icon.host.css +1 -1
- package/dist/collection/components/icon/icon.interfaces.js +1 -0
- package/dist/collection/components/icon/icon.js +73 -42
- package/dist/collection/components/icon/test/icon.component.play.js +23 -1
- package/dist/collection/components/input/clear-button.i18n.js +35 -0
- package/dist/collection/components/input/clear-button.util.js +11 -0
- package/dist/collection/components/input/input.host.css +1 -1
- package/dist/collection/components/input/input.js +36 -37
- package/dist/collection/components/input/test/input.component.play.js +1 -1
- package/dist/collection/components/input/trigger-button.i18n.js +45 -0
- package/dist/collection/components/input-slider/input-slider.host.css +1 -0
- package/dist/collection/components/input-slider/input-slider.interfaces.js +4 -0
- package/dist/collection/components/input-slider/input-slider.js +961 -0
- package/dist/collection/components/input-slider/input-slider.picker.js +124 -0
- package/dist/collection/components/input-slider/input-slider.utils.js +32 -0
- package/dist/collection/components/input-slider/test/input-slider.a11y.play.js +36 -0
- package/dist/collection/components/input-slider/test/input-slider.component.play.js +87 -0
- package/dist/collection/components/input-slider/test/input-slider.visual.play.js +27 -0
- package/dist/collection/components/label/label.host.css +1 -1
- package/dist/collection/components/label/label.js +16 -28
- package/dist/collection/components/list/item/item.host.css +1 -1
- package/dist/collection/components/list/item/item.interfaces.js +1 -1
- package/dist/collection/components/list/item/item.js +27 -34
- package/dist/collection/components/list/list.js +3 -10
- package/dist/collection/components/list/test/list.visual.play.js +30 -0
- package/dist/collection/components/logo/logo.js +11 -18
- package/dist/collection/components/modal/modal-body/modal-body.host.css +1 -0
- package/dist/collection/components/modal/modal-body/modal-body.js +41 -0
- package/dist/collection/components/modal/modal-header/modal-header.js +32 -0
- package/dist/collection/components/modal/modal.controller.js +31 -0
- package/dist/collection/components/modal/modal.host.css +1 -0
- package/dist/collection/components/modal/modal.interfaces.js +1 -0
- package/dist/collection/components/modal/modal.js +461 -0
- package/dist/collection/components/modal/test/modal.a11y.play.js +59 -0
- package/dist/collection/components/modal/test/modal.component.play.js +196 -0
- package/dist/collection/components/modal/test/modal.visual.play.js +36 -0
- package/dist/collection/components/navbar/navbar.host.css +1 -0
- package/dist/collection/components/navbar/navbar.i18n.js +65 -0
- package/dist/collection/components/navbar/navbar.interfaces.js +6 -0
- package/dist/collection/components/navbar/navbar.js +544 -0
- package/dist/collection/components/navbar/test/navbar.a11y.play.js +26 -0
- package/dist/collection/components/navbar/test/navbar.component.play.js +76 -0
- package/dist/collection/components/navbar/test/navbar.visual.play.js +14 -0
- package/dist/collection/components/notification/notification.host.css +1 -1
- package/dist/collection/components/notification/notification.js +14 -26
- package/dist/collection/components/number-input/number-input.host.css +1 -1
- package/dist/collection/components/number-input/number-input.js +23 -24
- package/dist/collection/components/pagination/pagination.host.css +1 -1
- package/dist/collection/components/pagination/pagination.js +29 -28
- package/dist/collection/components/popup/popup.host.css +1 -0
- package/dist/collection/components/popup/popup.interfaces.js +18 -0
- package/dist/collection/components/popup/popup.js +869 -0
- package/dist/collection/components/popup/test/popup.a11y.play.js +50 -0
- package/dist/collection/components/popup/test/popup.component.play.js +168 -0
- package/dist/collection/components/popup/test/popup.visual.play.js +33 -0
- package/dist/collection/components/progress-bar/progress-bar.host.css +1 -1
- package/dist/collection/components/progress-bar/progress-bar.js +13 -20
- package/dist/collection/components/radio/radio-group/radio-group.host.css +1 -1
- package/dist/collection/components/radio/radio-group/radio-group.js +60 -24
- package/dist/collection/components/radio/radio.host.css +1 -1
- package/dist/collection/components/radio/radio.js +48 -20
- package/dist/collection/components/radio/test/radio.visual.play.js +3 -0
- package/dist/collection/components/segment/segment/segment.host.css +1 -1
- package/dist/collection/components/segment/segment/segment.js +19 -20
- package/dist/collection/components/segment/segment-item.js +6 -7
- package/dist/collection/components/select/select-optgroup.host.css +1 -0
- package/dist/collection/components/select/select-optgroup.js +82 -0
- package/dist/collection/components/select/select-option.host.css +1 -0
- package/dist/collection/components/select/select-option.js +112 -0
- package/dist/collection/components/select/select.host.css +1 -0
- package/dist/collection/components/select/select.i18n.js +45 -0
- package/dist/collection/components/select/select.interfaces.js +4 -0
- package/dist/collection/components/select/select.js +1024 -0
- package/dist/collection/components/select/select.picker.js +276 -0
- package/dist/collection/components/select/test/select.a11y.play.js +81 -0
- package/dist/collection/components/select/test/select.component.play.js +184 -0
- package/dist/collection/components/select/test/select.visual.play.js +70 -0
- package/dist/collection/components/shape/shape.js +7 -14
- package/dist/collection/components/spinner/spinner.js +18 -26
- package/dist/collection/components/stack/stack.host.css +1 -1
- package/dist/collection/components/stack/stack.js +41 -153
- package/dist/collection/components/steps/step/step.host.css +1 -0
- package/dist/collection/components/steps/step/step.js +431 -0
- package/dist/collection/components/steps/step-panel/step-panel.host.css +1 -0
- package/dist/collection/components/steps/step-panel/step-panel.js +104 -0
- package/dist/collection/components/steps/steps/steps.host.css +1 -0
- package/dist/collection/components/steps/steps/steps.js +356 -0
- package/dist/collection/components/steps/steps.interfaces.js +4 -0
- package/dist/collection/components/steps/test/steps.a11y.play.js +73 -0
- package/dist/collection/components/steps/test/steps.component.play.js +182 -0
- package/dist/collection/components/steps/test/steps.visual.play.js +18 -0
- package/dist/collection/components/tabs/tab/tab.host.css +1 -0
- package/dist/collection/components/tabs/tab/tab.js +278 -0
- package/dist/collection/components/tabs/tab-panel/tab-panel.host.css +1 -0
- package/dist/collection/components/tabs/tab-panel/tab-panel.js +104 -0
- package/dist/collection/components/tabs/tabs/tabs.host.css +1 -0
- package/dist/collection/components/tabs/tabs/tabs.i18n.js +45 -0
- package/dist/collection/components/tabs/tabs/tabs.js +552 -0
- package/dist/collection/components/tabs/tabs.interfaces.js +12 -0
- package/dist/collection/components/tabs/test/tabs.a11y.play.js +60 -0
- package/dist/collection/components/tabs/test/tabs.component.play.js +129 -0
- package/dist/collection/components/tabs/test/tabs.visual.play.js +31 -0
- package/dist/collection/components/tag/tag-group/tag-group.js +1 -1
- package/dist/collection/components/tag/tag.js +15 -26
- package/dist/collection/components/text/text.host.css +1 -1
- package/dist/collection/components/text/text.js +23 -30
- package/dist/collection/components/textarea/textarea.host.css +1 -1
- package/dist/collection/components/textarea/textarea.js +24 -25
- package/dist/collection/components/time-input/test/time-input.visual.play.js +18 -0
- package/dist/collection/components/toggle/toggle.js +19 -20
- package/dist/collection/components/tooltip/test/tooltip.a11y.play.js +32 -0
- package/dist/collection/components/tooltip/test/tooltip.component.play.js +51 -0
- package/dist/collection/components/tooltip/test/tooltip.visual.play.js +16 -0
- package/dist/collection/components/tooltip/tooltip.host.css +1 -0
- package/dist/collection/components/tooltip/tooltip.interfaces.js +4 -0
- package/dist/collection/components/tooltip/tooltip.js +407 -0
- package/dist/collection/foundation/colors.visual.play.js +18 -0
- package/dist/collection/global/config/config.const.js +11 -0
- package/dist/collection/global/config/config.default.js +92 -42
- package/dist/collection/global/config/config.js +1 -1
- package/dist/collection/global/config/config.meta.js +27 -0
- package/dist/collection/global/config/index.js +1 -0
- package/dist/collection/global/config/initialize.js +2 -1
- package/dist/collection/global/constants/tags.constant.js +30 -1
- package/dist/collection/global/constants/version.constant.js +1 -1
- package/dist/collection/global/index.js +0 -1
- package/dist/collection/global/initialize.js +2 -0
- package/dist/collection/index.js +5 -20
- package/dist/collection/utils/attributes.js +0 -15
- package/dist/collection/utils/focus.js +72 -0
- package/dist/collection/utils/form-control.js +1 -1
- package/dist/collection/utils/has-value.js +7 -0
- package/dist/collection/utils/helpers.js +14 -74
- package/dist/collection/utils/index.js +7 -5
- package/dist/collection/utils/{property-checkers/is-value-empty.js → is-value-empty.js} +1 -1
- package/dist/collection/utils/number.js +6 -25
- package/dist/collection/utils/property-decorators/array-of.js +25 -0
- package/dist/collection/utils/property-decorators/bound.js +79 -0
- package/dist/collection/utils/property-decorators/create-validator-decorator.js +212 -0
- package/dist/collection/utils/property-decorators/date.js +24 -0
- package/dist/collection/utils/property-decorators/index.js +12 -0
- package/dist/collection/utils/property-decorators/iso-date.js +24 -0
- package/dist/collection/utils/property-decorators/one-of.js +25 -0
- package/dist/collection/utils/property-decorators/pattern.js +25 -0
- package/dist/collection/utils/property-decorators/required.js +44 -0
- package/dist/collection/utils/property-decorators/type.js +28 -0
- package/dist/collection/utils/property-decorators/url.js +32 -0
- package/dist/collection/utils/property-types.js +1 -0
- package/dist/collection/utils/svg.js +19 -0
- package/dist/design-system/design-system.esm.js +1 -1
- package/dist/design-system/index.esm.js +1 -1
- package/dist/design-system/p-00e6b1b780.entry.js +4 -0
- package/dist/design-system/p-0bf3d4d939.entry.js +4 -0
- package/dist/design-system/p-0ea6cdd218.entry.js +4 -0
- package/dist/design-system/p-0f2a87fa39.entry.js +4 -0
- package/dist/design-system/p-138be1f0cc.entry.js +4 -0
- package/dist/design-system/p-16b03e0b02.entry.js +4 -0
- package/dist/design-system/p-1750b3c4f1.entry.js +4 -0
- package/dist/design-system/p-1A9jKraP.js +4 -0
- package/dist/design-system/p-1b1e3ad99c.entry.js +4 -0
- package/dist/design-system/p-24c85e99f5.entry.js +4 -0
- package/dist/design-system/p-2b038255c5.entry.js +4 -0
- package/dist/design-system/p-2bb98dfa2f.entry.js +4 -0
- package/dist/design-system/p-2eb6067210.entry.js +4 -0
- package/dist/design-system/p-32e156bc72.entry.js +4 -0
- package/dist/design-system/p-3824068ae7.entry.js +4 -0
- package/dist/design-system/p-3aa3841834.entry.js +4 -0
- package/dist/design-system/p-3d2539929c.entry.js +4 -0
- package/dist/design-system/p-3d675c6507.entry.js +4 -0
- package/dist/design-system/p-3e3a6799d6.entry.js +4 -0
- package/dist/design-system/p-3e43fa2bc6.entry.js +4 -0
- package/dist/design-system/p-4284d6d646.entry.js +4 -0
- package/dist/design-system/{p-1d312498a6.entry.js → p-44981aaf8d.entry.js} +1 -1
- package/dist/design-system/p-4b2a59576c.entry.js +4 -0
- package/dist/design-system/p-4bfc094a03.entry.js +4 -0
- package/dist/design-system/p-53d9a40010.entry.js +4 -0
- package/dist/design-system/p-564ee4d78f.entry.js +4 -0
- package/dist/design-system/p-599a693db3.entry.js +4 -0
- package/dist/design-system/p-5a6c6959fa.entry.js +4 -0
- package/dist/design-system/p-5d4a5d0b61.entry.js +4 -0
- package/dist/design-system/p-5ded2b6438.entry.js +4 -0
- package/dist/design-system/p-5f1a8be21c.entry.js +4 -0
- package/dist/design-system/p-5f28436626.entry.js +4 -0
- package/dist/design-system/p-6c60833550.entry.js +4 -0
- package/dist/design-system/p-7246bfb9a0.entry.js +4 -0
- package/dist/design-system/p-77e7a6a068.entry.js +4 -0
- package/dist/design-system/p-78112e7b35.entry.js +4 -0
- package/dist/design-system/p-7ebdd14afc.entry.js +4 -0
- package/dist/design-system/p-7f42c18249.entry.js +4 -0
- package/dist/design-system/p-85bf3794f9.entry.js +4 -0
- package/dist/design-system/p-8a9d617f75.entry.js +4 -0
- package/dist/design-system/p-908e7b073a.entry.js +4 -0
- package/dist/design-system/p-9f9364d7df.entry.js +4 -0
- package/dist/design-system/p-B-en4B17.js +4 -0
- package/dist/design-system/p-B-v2Wm-V.js +5 -0
- package/dist/design-system/p-B8KVoKrH.js +5 -0
- package/dist/design-system/p-B8PCdo6e.js +4 -0
- package/dist/design-system/p-BAY6Z8bT.js +4 -0
- package/dist/design-system/{p-C7EnKCpl.js → p-BMM6Nxeh.js} +1 -1
- package/{components/p-Diz11uvt.js → dist/design-system/p-BPGfTrrM.js} +1 -1
- package/dist/design-system/p-BqY0KzJC.js +4 -0
- package/dist/design-system/p-BrJFPhMA.js +4 -0
- package/dist/design-system/p-C1jqbZdf.js +4 -0
- package/dist/design-system/{p-DCf2fJmI.js → p-C5Rtikeh.js} +1 -1
- package/dist/design-system/p-CDhvZoCt.js +4 -0
- package/dist/design-system/p-CGHN-3RC.js +4 -0
- package/dist/design-system/{p-CAcwu8uP.js → p-CfgwSore.js} +1 -1
- package/dist/design-system/p-ChSKXFK5.js +4 -0
- package/dist/design-system/{p-BLPSziW-.js → p-Chgme2NJ.js} +1 -1
- package/{components/p-5Sp1eJOt.js → dist/design-system/p-CrYAd3JT.js} +1 -1
- package/dist/design-system/p-CziF75uh.js +4 -0
- package/dist/design-system/p-DJBD4skP.js +14 -0
- package/{components/p-E1SnOz0L.js → dist/design-system/p-DOvdnojj.js} +1 -1
- package/dist/design-system/p-DYPX3A8m.js +4 -0
- package/dist/design-system/p-DiUgZKWs.js +4 -0
- package/dist/design-system/p-Dk0GEN2t.js +4 -0
- package/dist/design-system/p-DkhJaoXg.js +4 -0
- package/dist/design-system/p-DoHCSvjl.js +4 -0
- package/dist/design-system/p-DypNSUAh.js +4 -0
- package/dist/design-system/p-Uy_dVz21.js +4 -0
- package/dist/design-system/{p-Dnjznncd.js → p-Y0rKqVvm.js} +1 -1
- package/dist/design-system/p-Z0zrglhd.js +4 -0
- package/dist/design-system/p-a42ecb68a0.entry.js +4 -0
- package/dist/design-system/p-a782c877ea.entry.js +4 -0
- package/dist/design-system/p-a8df8f067b.entry.js +4 -0
- package/dist/design-system/p-aa3aee2591.entry.js +4 -0
- package/dist/design-system/p-aa3c0ff536.entry.js +4 -0
- package/dist/design-system/p-ab8bee7022.entry.js +4 -0
- package/dist/design-system/p-adc58b2821.entry.js +4 -0
- package/dist/design-system/p-b390490b0d.entry.js +4 -0
- package/dist/design-system/p-b44641ec28.entry.js +4 -0
- package/dist/design-system/p-b4738dc266.entry.js +4 -0
- package/dist/design-system/p-b851a43fff.entry.js +4 -0
- package/dist/design-system/p-b8669a617c.entry.js +4 -0
- package/dist/design-system/p-b8f626bf28.entry.js +4 -0
- package/dist/design-system/p-bd543e1baf.entry.js +4 -0
- package/dist/design-system/p-ce67cbbed5.entry.js +4 -0
- package/dist/design-system/p-d3a80b8422.entry.js +4 -0
- package/dist/design-system/p-d4d9205dda.entry.js +4 -0
- package/dist/design-system/p-dbd3d3b3d3.entry.js +4 -0
- package/{components/p-BATOumsf.js → dist/design-system/p-dziB1ufg.js} +1 -1
- package/dist/design-system/p-e0b2d6e296.entry.js +4 -0
- package/dist/design-system/p-e94ee7391c.entry.js +4 -0
- package/dist/design-system/p-ee76bf354e.entry.js +4 -0
- package/dist/design-system/p-f7be5b6114.entry.js +4 -0
- package/dist/design-system/p-fa613cd0d1.entry.js +4 -0
- package/dist/design-system/p-faf75173db.entry.js +4 -0
- package/dist/design-system/p-fff38e1ca7.entry.js +4 -0
- package/dist/design-system/p-x2KazRjl.js +4 -0
- package/dist/esm/{_getTag-DFxL3s3h.js → _getTag-BkweuRJc.js} +1 -1
- package/dist/esm/array-BJZA868l.js +1984 -0
- package/dist/esm/{breakpoints.decorator-L2xeP46f.js → breakpoints.decorator-D9M4v98c.js} +1 -1
- package/dist/esm/{breakpoints.subject-BhbzG-rl.js → breakpoints.subject-DHZ7TzYV.js} +3 -3
- package/dist/esm/{button.interfaces-BkESlUMc.js → button.interfaces-BPGfTrrM.js} +1 -1
- package/dist/esm/carousel.interfaces-B-en4B17.js +8 -0
- package/dist/esm/{config.decorator-BQNIja4k.js → config.decorator-CRYVBTkX.js} +1 -1
- package/dist/esm/{config.utils-COlKFRlV.js → config.utils-CR4Xudpz.js} +1 -1
- package/dist/esm/create-validator-decorator-fUav5byo.js +208 -0
- package/dist/esm/design-system.js +4 -4
- package/dist/esm/{device-Dhwt3m7W.js → device-CapioAfe.js} +1 -1
- package/dist/esm/ds-accordion.entry.js +30 -34
- package/dist/esm/ds-alert-container.entry.js +12 -15
- package/dist/esm/ds-app.entry.js +16 -6
- package/dist/esm/ds-badge.entry.js +33 -26
- package/dist/esm/ds-button-group.entry.js +14 -17
- package/dist/esm/ds-button_2.entry.js +58 -73
- package/dist/esm/ds-card-actions.entry.js +6 -8
- package/dist/esm/ds-card-content.entry.js +3 -3
- package/dist/esm/ds-card-header.entry.js +8 -5
- package/dist/esm/ds-card-subtitle.entry.js +13 -13
- package/dist/esm/ds-card-title.entry.js +11 -7
- package/dist/esm/ds-card.entry.js +32 -43
- package/dist/esm/ds-carousel-item.entry.js +126 -0
- package/dist/esm/ds-carousel.entry.js +471 -0
- package/dist/esm/ds-checkbox-group.entry.js +59 -2012
- package/dist/esm/ds-checkbox.entry.js +33 -20
- package/dist/esm/ds-content_2.entry.js +327 -0
- package/dist/esm/ds-data-item.entry.js +144 -0
- package/dist/esm/ds-data-label.entry.js +39 -0
- package/dist/esm/ds-data-value.entry.js +29 -0
- package/dist/esm/ds-data.entry.js +41 -0
- package/dist/esm/ds-date.entry.js +5332 -0
- package/dist/esm/{ds-logo.entry.js → ds-divider_2.entry.js} +130 -26
- package/dist/esm/ds-drawer_2.entry.js +599 -0
- package/dist/esm/ds-file-upload.entry.js +514 -0
- package/dist/esm/ds-footer.entry.js +157 -0
- package/dist/esm/ds-heading.entry.js +22 -20
- package/dist/esm/ds-hint-text.entry.js +26 -0
- package/dist/esm/ds-hint-title.entry.js +29 -0
- package/dist/esm/ds-hint.entry.js +241 -0
- package/dist/esm/ds-icon_2.entry.js +80 -71
- package/dist/esm/ds-input-slider.entry.js +2883 -0
- package/dist/esm/ds-input.entry.js +46 -44
- package/dist/esm/ds-item.entry.js +29 -34
- package/dist/esm/ds-label.entry.js +23 -31
- package/dist/esm/ds-list.entry.js +6 -12
- package/dist/esm/ds-modal-body.entry.js +32 -0
- package/dist/esm/ds-modal-header.entry.js +29 -0
- package/dist/esm/ds-modal.entry.js +199 -0
- package/dist/esm/ds-navbar.entry.js +357 -0
- package/dist/esm/ds-notification.entry.js +20 -28
- package/dist/esm/ds-number-input.entry.js +102 -114
- package/dist/esm/ds-pagination.entry.js +41 -37
- package/dist/esm/ds-progress-bar.entry.js +25 -29
- package/dist/esm/ds-radio-group.entry.js +49 -31
- package/dist/esm/ds-radio.entry.js +35 -33
- package/dist/esm/ds-segment-item.entry.js +9 -9
- package/dist/esm/ds-segment.entry.js +28 -116
- package/dist/esm/ds-select-optgroup.entry.js +47 -0
- package/dist/esm/ds-select-option.entry.js +55 -0
- package/dist/esm/ds-select.entry.js +2770 -0
- package/dist/esm/ds-shape.entry.js +10 -16
- package/dist/esm/ds-snackbar.entry.js +41 -58
- package/dist/esm/ds-step-panel.entry.js +53 -0
- package/dist/esm/ds-step.entry.js +168 -0
- package/dist/esm/ds-steps.entry.js +225 -0
- package/dist/esm/ds-tab-panel.entry.js +53 -0
- package/dist/esm/ds-tab.entry.js +118 -0
- package/dist/esm/ds-tabs.entry.js +362 -0
- package/dist/esm/ds-tag-group.entry.js +3 -3
- package/dist/esm/ds-tag.entry.js +19 -26
- package/dist/esm/ds-text.entry.js +29 -33
- package/dist/esm/ds-textarea.entry.js +33 -32
- package/dist/esm/ds-toast.entry.js +41 -55
- package/dist/esm/ds-toggle.entry.js +22 -21
- package/dist/esm/ds-tooltip.entry.js +180 -0
- package/dist/esm/{field.util-BXxRO7CD.js → field.util-neIQBS-h.js} +1 -1
- package/dist/esm/floating-ui.dom-BqY0KzJC.js +1621 -0
- package/dist/esm/focus-6OAqvfus.js +1956 -0
- package/dist/esm/footer.i18n-BrJFPhMA.js +159 -0
- package/dist/esm/{form-control-D2O-sb65.js → form-control-DhinyMa9.js} +2 -2
- package/dist/esm/has-value-Dmsj8ZQw.js +10 -0
- package/dist/esm/{index-CuwLeg-T.js → index-B-v2Wm-V.js} +501 -175
- package/dist/esm/index.js +13 -8273
- package/dist/esm/{input.interfaces-C7EnKCpl.js → input.interfaces-BMM6Nxeh.js} +1 -1
- package/dist/esm/isArray-B8PCdo6e.js +40 -0
- package/dist/esm/isNaN-BrbqGXXw.js +104 -0
- package/dist/esm/{isObjectLike-BAYao9w7.js → isObjectLike-BnBXjF_n.js} +1 -37
- package/dist/esm/keyboard-Uy_dVz21.js +20 -0
- package/dist/esm/{listener-C_kjUVTE.js → listener-DIZDQOuO.js} +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/luxon-C1jqbZdf.js +8133 -0
- package/dist/esm/one-of-CjRvS2Tk.js +28 -0
- package/dist/esm/popup.interfaces-BAY6Z8bT.js +20 -0
- package/dist/esm/required-Dtml5IID.js +36 -0
- package/dist/esm/resize.decorator-eogZBBk6.js +96 -0
- package/dist/esm/scroll-v2MaEkiZ.js +87 -0
- package/dist/esm/svg-B8KVoKrH.js +2440 -0
- package/dist/esm/{tslib.es6-tdchDLyb.js → tslib.es6-n47B6oUi.js} +1 -1
- package/dist/esm/type-7qEQcw90.js +31 -0
- package/dist/types/components/accordion/accordion.d.ts +0 -5
- package/dist/types/components/alert/alert-container.d.ts +0 -5
- package/dist/types/components/alert/snackbar/snackbar.d.ts +0 -5
- package/dist/types/components/alert/toast/toast.d.ts +0 -5
- package/dist/types/components/badge/badge.d.ts +1 -3
- package/dist/types/components/badge/badge.interfaces.d.ts +1 -1
- package/dist/types/components/button/button-group/button-group.d.ts +0 -5
- package/dist/types/components/button/button.d.ts +1 -3
- package/dist/types/components/button/button.interfaces.d.ts +1 -1
- package/dist/types/components/card/card-actions/card-actions.d.ts +0 -1
- package/dist/types/components/card/card-subtitle/card-subtitle.d.ts +0 -1
- package/dist/types/components/card/card.d.ts +2 -4
- package/dist/types/components/carousel/carousel/carousel.d.ts +114 -0
- package/dist/types/components/carousel/carousel/carousel.i18n.d.ts +9 -0
- package/dist/types/components/carousel/carousel-item/carousel-item.d.ts +70 -0
- package/dist/types/components/carousel/carousel.interfaces.d.ts +14 -0
- package/dist/types/components/carousel/test/carousel.a11y.play.d.ts +1 -0
- package/dist/types/components/carousel/test/carousel.component.play.d.ts +1 -0
- package/dist/types/components/carousel/test/carousel.visual.play.d.ts +1 -0
- package/dist/types/components/checkbox/checkbox-group/checkbox-group.d.ts +6 -0
- package/dist/types/components/checkbox/checkbox.d.ts +4 -0
- package/dist/types/components/close/close.d.ts +1 -3
- package/dist/types/components/content/content.d.ts +2 -5
- package/dist/types/components/data/data-item.d.ts +43 -0
- package/dist/types/components/data/data-item.i18n.d.ts +6 -0
- package/dist/types/components/data/data-item.interfaces.d.ts +4 -0
- package/dist/types/components/data/data-label.d.ts +19 -0
- package/dist/types/components/data/data-label.interfaces.d.ts +3 -0
- package/dist/types/components/data/data-value.d.ts +15 -0
- package/dist/types/components/data/data-value.interfaces.d.ts +5 -0
- package/dist/types/components/data/data.d.ts +19 -0
- package/dist/types/components/data/data.interfaces.d.ts +4 -0
- package/dist/types/components/data/test/data.a11y.play.d.ts +1 -0
- package/dist/types/components/data/test/data.component.play.d.ts +1 -0
- package/dist/types/components/data/test/data.visual.play.d.ts +1 -0
- package/dist/types/components/date/date.d.ts +214 -0
- package/dist/types/components/date/date.i18n.d.ts +13 -0
- package/dist/types/components/date/date.interfaces.d.ts +18 -0
- package/dist/types/components/date/date.mask.d.ts +29 -0
- package/dist/types/components/date/date.picker.d.ts +67 -0
- package/dist/types/components/date/test/date.a11y.play.d.ts +1 -0
- package/dist/types/components/date/test/date.component.play.d.ts +1 -0
- package/dist/types/components/date/test/date.visual.play.d.ts +1 -0
- package/dist/types/components/divider/divider.d.ts +1 -3
- package/dist/types/components/drawer/drawer.d.ts +102 -0
- package/dist/types/components/drawer/drawer.interfaces.d.ts +8 -0
- package/dist/types/components/drawer/test/drawer.a11y.play.d.ts +1 -0
- package/dist/types/components/drawer/test/drawer.component.play.d.ts +1 -0
- package/dist/types/components/drawer/test/drawer.visual.play.d.ts +1 -0
- package/dist/types/components/file-upload/file-upload.d.ts +192 -0
- package/dist/types/components/file-upload/file-upload.i18n.d.ts +8 -0
- package/dist/types/components/file-upload/file-upload.interfaces.d.ts +24 -0
- package/dist/types/components/file-upload/test/file-upload.a11y.play.d.ts +1 -0
- package/dist/types/components/file-upload/test/file-upload.component.play.d.ts +1 -0
- package/dist/types/components/file-upload/test/file-upload.visual.play.d.ts +1 -0
- package/dist/types/components/file-upload/utils/file-list.util.d.ts +2 -0
- package/dist/types/components/file-upload/utils/file-size.util.d.ts +1 -0
- package/dist/types/components/file-upload/utils/file-validation.util.d.ts +13 -0
- package/dist/types/components/footer/footer.d.ts +68 -0
- package/dist/types/components/footer/footer.i18n.d.ts +7 -0
- package/dist/types/components/footer/footer.interfaces.d.ts +19 -0
- package/dist/types/components/footer/test/footer.a11y.play.d.ts +1 -0
- package/dist/types/components/footer/test/footer.component.play.d.ts +1 -0
- package/dist/types/components/footer/test/footer.visual.play.d.ts +1 -0
- package/dist/types/components/hint/hint-text/hint-text.d.ts +15 -0
- package/dist/types/components/hint/hint-title/hint-title.d.ts +16 -0
- package/dist/types/components/hint/hint.d.ts +87 -0
- package/dist/types/components/hint/hint.i18n.d.ts +6 -0
- package/dist/types/components/hint/hint.interfaces.d.ts +4 -0
- package/dist/types/components/hint/test/hint.a11y.play.d.ts +1 -0
- package/dist/types/components/hint/test/hint.component.play.d.ts +1 -0
- package/dist/types/components/hint/test/hint.visual.play.d.ts +1 -0
- package/dist/types/components/icon/icon.d.ts +7 -3
- package/dist/types/components/icon/icon.interfaces.d.ts +1 -1
- package/dist/types/components/input/clear-button.i18n.d.ts +6 -0
- package/dist/types/components/input/clear-button.util.d.ts +10 -0
- package/dist/types/components/input/trigger-button.i18n.d.ts +7 -0
- package/dist/types/components/input-slider/input-slider.d.ts +186 -0
- package/dist/types/components/input-slider/input-slider.interfaces.d.ts +18 -0
- package/dist/types/components/input-slider/input-slider.picker.d.ts +37 -0
- package/dist/types/components/input-slider/input-slider.utils.d.ts +18 -0
- package/dist/types/components/input-slider/test/input-slider.a11y.play.d.ts +1 -0
- package/dist/types/components/input-slider/test/input-slider.component.play.d.ts +1 -0
- package/dist/types/components/input-slider/test/input-slider.visual.play.d.ts +1 -0
- package/dist/types/components/label/label.d.ts +3 -5
- package/dist/types/components/list/item/item.d.ts +0 -5
- package/dist/types/components/list/item/item.interfaces.d.ts +1 -1
- package/dist/types/components/list/list.d.ts +0 -5
- package/dist/types/components/list/test/list.visual.play.d.ts +1 -0
- package/dist/types/components/logo/logo.d.ts +1 -2
- package/dist/types/components/modal/modal-body/modal-body.d.ts +15 -0
- package/dist/types/components/modal/modal-header/modal-header.d.ts +17 -0
- package/dist/types/components/modal/modal.controller.d.ts +3 -0
- package/dist/types/components/modal/modal.d.ts +97 -0
- package/dist/types/components/modal/modal.interfaces.d.ts +15 -0
- package/dist/types/components/modal/test/modal.a11y.play.d.ts +1 -0
- package/dist/types/components/modal/test/modal.component.play.d.ts +1 -0
- package/dist/types/components/modal/test/modal.visual.play.d.ts +1 -0
- package/dist/types/components/navbar/navbar.d.ts +128 -0
- package/dist/types/components/navbar/navbar.i18n.d.ts +9 -0
- package/dist/types/components/navbar/navbar.interfaces.d.ts +10 -0
- package/dist/types/components/navbar/test/navbar.a11y.play.d.ts +1 -0
- package/dist/types/components/navbar/test/navbar.component.play.d.ts +1 -0
- package/dist/types/components/navbar/test/navbar.visual.play.d.ts +1 -0
- package/dist/types/components/notification/notification.d.ts +1 -3
- package/dist/types/components/pagination/pagination.d.ts +0 -5
- package/dist/types/components/popup/popup.d.ts +152 -0
- package/dist/types/components/popup/popup.interfaces.d.ts +14 -0
- package/dist/types/components/popup/test/popup.a11y.play.d.ts +1 -0
- package/dist/types/components/popup/test/popup.component.play.d.ts +1 -0
- package/dist/types/components/popup/test/popup.visual.play.d.ts +1 -0
- package/dist/types/components/progress-bar/progress-bar.d.ts +0 -5
- package/dist/types/components/radio/radio-group/radio-group.d.ts +6 -0
- package/dist/types/components/radio/radio.d.ts +4 -0
- package/dist/types/components/select/select-optgroup.d.ts +28 -0
- package/dist/types/components/select/select-option.d.ts +34 -0
- package/dist/types/components/select/select.d.ts +193 -0
- package/dist/types/components/select/select.i18n.d.ts +7 -0
- package/dist/types/components/select/select.interfaces.d.ts +16 -0
- package/dist/types/components/select/select.picker.d.ts +57 -0
- package/dist/types/components/select/test/select.a11y.play.d.ts +1 -0
- package/dist/types/components/select/test/select.component.play.d.ts +1 -0
- package/dist/types/components/select/test/select.visual.play.d.ts +1 -0
- package/dist/types/components/shape/shape.d.ts +2 -7
- package/dist/types/components/spinner/spinner.d.ts +0 -2
- package/dist/types/components/stack/stack.d.ts +7 -19
- package/dist/types/components/steps/step/step.d.ts +89 -0
- package/dist/types/components/steps/step-panel/step-panel.d.ts +34 -0
- package/dist/types/components/steps/steps/steps.d.ts +77 -0
- package/dist/types/components/steps/steps.interfaces.d.ts +10 -0
- package/dist/types/components/steps/test/steps.a11y.play.d.ts +1 -0
- package/dist/types/components/steps/test/steps.component.play.d.ts +1 -0
- package/dist/types/components/steps/test/steps.visual.play.d.ts +1 -0
- package/dist/types/components/tabs/tab/tab.d.ts +67 -0
- package/dist/types/components/tabs/tab-panel/tab-panel.d.ts +34 -0
- package/dist/types/components/tabs/tabs/tabs.d.ts +97 -0
- package/dist/types/components/tabs/tabs/tabs.i18n.d.ts +7 -0
- package/dist/types/components/tabs/tabs.interfaces.d.ts +12 -0
- package/dist/types/components/tabs/test/tabs.a11y.play.d.ts +1 -0
- package/dist/types/components/tabs/test/tabs.component.play.d.ts +1 -0
- package/dist/types/components/tabs/test/tabs.visual.play.d.ts +1 -0
- package/dist/types/components/tag/tag.d.ts +1 -3
- package/dist/types/components/text/text.d.ts +2 -7
- package/dist/types/components/time-input/test/time-input.visual.play.d.ts +1 -0
- package/dist/types/components/tooltip/test/tooltip.a11y.play.d.ts +1 -0
- package/dist/types/components/tooltip/test/tooltip.component.play.d.ts +1 -0
- package/dist/types/components/tooltip/test/tooltip.visual.play.d.ts +1 -0
- package/dist/types/components/tooltip/tooltip.d.ts +85 -0
- package/dist/types/components/tooltip/tooltip.interfaces.d.ts +10 -0
- package/dist/types/components.d.ts +5162 -1870
- package/dist/types/foundation/colors.visual.play.d.ts +1 -0
- package/dist/types/global/config/config.const.d.ts +3 -0
- package/dist/types/global/config/config.default.d.ts +0 -40
- package/dist/types/global/config/config.meta.d.ts +2 -0
- package/dist/types/global/config/config.types.d.ts +27 -0
- package/dist/types/global/config/index.d.ts +1 -0
- package/dist/types/global/index.d.ts +0 -1
- package/dist/types/home/runner/work/design-system/design-system/packages/core/.stencil/packages/playwright/src/lib/components/carousel.po.d.ts +12 -0
- package/dist/types/home/runner/work/design-system/design-system/packages/core/.stencil/packages/playwright/src/lib/components/data-item.po.d.ts +16 -0
- package/dist/types/home/runner/work/design-system/design-system/packages/core/.stencil/packages/playwright/src/lib/components/data.po.d.ts +12 -0
- package/dist/types/home/runner/work/design-system/design-system/packages/core/.stencil/packages/playwright/src/lib/components/date.po.d.ts +15 -0
- package/dist/types/home/runner/work/design-system/design-system/packages/core/.stencil/packages/playwright/src/lib/components/drawer.po.d.ts +11 -0
- package/dist/types/home/runner/work/design-system/design-system/packages/core/.stencil/packages/playwright/src/lib/components/file-upload.po.d.ts +16 -0
- package/dist/types/home/runner/work/design-system/design-system/packages/core/.stencil/packages/playwright/src/lib/components/footer.po.d.ts +16 -0
- package/dist/types/home/runner/work/design-system/design-system/packages/core/.stencil/packages/playwright/src/lib/components/hint.po.d.ts +10 -0
- package/dist/types/home/runner/work/design-system/design-system/packages/core/.stencil/packages/playwright/src/lib/components/index.d.ts +16 -0
- package/dist/types/home/runner/work/design-system/design-system/packages/core/.stencil/packages/playwright/src/lib/components/input-slider.po.d.ts +18 -0
- package/dist/types/home/runner/work/design-system/design-system/packages/core/.stencil/packages/playwright/src/lib/components/modal.po.d.ts +15 -0
- package/dist/types/home/runner/work/design-system/design-system/packages/core/.stencil/packages/playwright/src/lib/components/navbar.po.d.ts +13 -0
- package/dist/types/home/runner/work/design-system/design-system/packages/core/.stencil/packages/playwright/src/lib/components/popup.po.d.ts +11 -0
- package/dist/types/home/runner/work/design-system/design-system/packages/core/.stencil/packages/playwright/src/lib/components/select.po.d.ts +24 -0
- package/dist/types/home/runner/work/design-system/design-system/packages/core/.stencil/packages/playwright/src/lib/components/steps.po.d.ts +13 -0
- package/dist/types/home/runner/work/design-system/design-system/packages/core/.stencil/packages/playwright/src/lib/components/tabs.po.d.ts +13 -0
- package/dist/types/home/runner/work/design-system/design-system/packages/core/.stencil/packages/playwright/src/lib/components/tooltip.po.d.ts +6 -0
- package/dist/types/home/runner/work/design-system/design-system/packages/core/.stencil/packages/playwright/src/lib/page/utils/goto.d.ts +1 -1
- package/dist/types/index.d.ts +4 -1
- package/dist/types/stencil-public-runtime.d.ts +1 -0
- package/dist/types/utils/attributes.d.ts +0 -8
- package/dist/types/utils/focus.d.ts +18 -0
- package/dist/types/utils/form-control.d.ts +2 -2
- package/dist/types/utils/has-value.d.ts +1 -0
- package/dist/types/utils/index.d.ts +7 -5
- package/dist/types/utils/number.d.ts +0 -3
- package/dist/types/utils/property-decorators/array-of.d.ts +9 -0
- package/dist/types/utils/property-decorators/bound.d.ts +36 -0
- package/dist/types/utils/property-decorators/create-validator-decorator.d.ts +48 -0
- package/dist/types/utils/property-decorators/date.d.ts +6 -0
- package/dist/types/utils/property-decorators/index.d.ts +9 -0
- package/dist/types/utils/property-decorators/iso-date.d.ts +6 -0
- package/dist/types/utils/property-decorators/one-of.d.ts +8 -0
- package/dist/types/utils/property-decorators/pattern.d.ts +8 -0
- package/dist/types/utils/property-decorators/required.d.ts +17 -0
- package/dist/types/utils/property-decorators/type.d.ts +9 -0
- package/dist/types/utils/property-decorators/url.d.ts +6 -0
- package/dist/types/utils/svg.d.ts +2 -0
- package/docs/cem.json +18228 -0
- package/docs/components.json +39621 -17240
- package/docs/html.html-data.json +1664 -159
- package/docs/tags.json +30 -1
- package/package.json +46 -38
- package/sbom.cdx.json +58887 -0
- package/README.md +0 -33
- package/components/p-82RSSk25.js +0 -4
- package/components/p-BEngECpF.js +0 -4
- package/components/p-BMBthpLd.js +0 -4
- package/components/p-BNY3JzuV.js +0 -4
- package/components/p-BOTkpyFe.js +0 -5
- package/components/p-BOgMmRCt.js +0 -4
- package/components/p-CDYlUuhB.js +0 -4
- package/components/p-Cb75Rr6o.js +0 -4
- package/components/p-CojUmpFm.js +0 -4
- package/components/p-DHeVI6dR.js +0 -4
- package/components/p-DTPbL3uY.js +0 -4
- package/components/p-DnnGnukM.js +0 -4
- package/components/p-DtuTnY5l.js +0 -4
- package/components/p-JZ1uDtZv.js +0 -4
- package/components/p-cSbDziZm.js +0 -4
- package/components/p-gA-94RPS.js +0 -4
- package/components/p-xDEngwqW.js +0 -4
- package/dist/cjs/contact-SPfz2A_q.js +0 -1647
- package/dist/cjs/ds-content.cjs.entry.js +0 -154
- package/dist/cjs/ds-divider.cjs.entry.js +0 -131
- package/dist/cjs/ds-stack.cjs.entry.js +0 -224
- package/dist/cjs/isEmpty-BmKp4bH4.js +0 -99
- package/dist/cjs/stack.interfaces-6vlKvBmb.js +0 -68
- package/dist/cjs/svg-D7Mwbcvp.js +0 -1482
- package/dist/cjs/validate.decorator-C9-9HA0Y.js +0 -115
- package/dist/collection/global/constants/icons.constant.js +0 -42
- package/dist/collection/utils/element-states/element-states.decorator.js +0 -23
- package/dist/collection/utils/element-states/element-states.listener.js +0 -55
- package/dist/collection/utils/element-states/element-states.subject.js +0 -24
- package/dist/collection/utils/element-states/index.js +0 -5
- package/dist/collection/utils/keyboard/index.js +0 -6
- package/dist/collection/utils/keyboard/keyboard.decorator.js +0 -23
- package/dist/collection/utils/keyboard/keyboard.listener.js +0 -34
- package/dist/collection/utils/keyboard/keyboard.subject.js +0 -24
- package/dist/collection/utils/property-checkers/check-array-of.js +0 -13
- package/dist/collection/utils/property-checkers/check-date.js +0 -18
- package/dist/collection/utils/property-checkers/check-iso-date.js +0 -14
- package/dist/collection/utils/property-checkers/check-one-of.js +0 -13
- package/dist/collection/utils/property-checkers/check-pattern.js +0 -13
- package/dist/collection/utils/property-checkers/check-type.js +0 -20
- package/dist/collection/utils/property-checkers/check-url.js +0 -20
- package/dist/collection/utils/property-checkers/empty-or.js +0 -15
- package/dist/collection/utils/property-checkers/index.js +0 -57
- package/dist/collection/utils/property-checkers/required-and.js +0 -20
- package/dist/collection/utils/swipe/index.js +0 -6
- package/dist/collection/utils/swipe/swipe.decorator.js +0 -23
- package/dist/collection/utils/swipe/swipe.listener.js +0 -33
- package/dist/collection/utils/swipe/swipe.subject.js +0 -28
- package/dist/collection/utils/validate.decorator.js +0 -203
- package/dist/design-system/p-03bbcdf9de.entry.js +0 -4
- package/dist/design-system/p-1154323457.entry.js +0 -4
- package/dist/design-system/p-1f0601a4f4.entry.js +0 -4
- package/dist/design-system/p-21b080a49a.entry.js +0 -4
- package/dist/design-system/p-27c34c4e5f.entry.js +0 -4
- package/dist/design-system/p-2b91de302f.entry.js +0 -4
- package/dist/design-system/p-31c1235ac5.entry.js +0 -4
- package/dist/design-system/p-3259acaa64.entry.js +0 -4
- package/dist/design-system/p-339d85cca0.entry.js +0 -4
- package/dist/design-system/p-35e63b52e7.entry.js +0 -4
- package/dist/design-system/p-363f3a7ab4.entry.js +0 -4
- package/dist/design-system/p-3d901720f7.entry.js +0 -4
- package/dist/design-system/p-40ba8b9812.entry.js +0 -4
- package/dist/design-system/p-432430e14f.entry.js +0 -4
- package/dist/design-system/p-487807f228.entry.js +0 -4
- package/dist/design-system/p-4a049d1b7f.entry.js +0 -4
- package/dist/design-system/p-4f4cce8ce4.entry.js +0 -4
- package/dist/design-system/p-5a901a9b8e.entry.js +0 -4
- package/dist/design-system/p-5d3330bf93.entry.js +0 -4
- package/dist/design-system/p-640223834c.entry.js +0 -4
- package/dist/design-system/p-6b9aab417f.entry.js +0 -4
- package/dist/design-system/p-799705af3a.entry.js +0 -4
- package/dist/design-system/p-7e6ed497e7.entry.js +0 -4
- package/dist/design-system/p-82RSSk25.js +0 -4
- package/dist/design-system/p-8e0872fef0.entry.js +0 -4
- package/dist/design-system/p-9617d56181.entry.js +0 -4
- package/dist/design-system/p-BaIoYrFa.js +0 -5
- package/dist/design-system/p-Cb75Rr6o.js +0 -4
- package/dist/design-system/p-CqZ6YSy9.js +0 -4
- package/dist/design-system/p-CqzM3doy.js +0 -4
- package/dist/design-system/p-CuwLeg-T.js +0 -5
- package/dist/design-system/p-DHeVI6dR.js +0 -4
- package/dist/design-system/p-DTPbL3uY.js +0 -4
- package/dist/design-system/p-aff68865ee.entry.js +0 -4
- package/dist/design-system/p-b3c6327744.entry.js +0 -4
- package/dist/design-system/p-be9023a38b.entry.js +0 -4
- package/dist/design-system/p-c031d1dce5.entry.js +0 -4
- package/dist/design-system/p-c3ae96e220.entry.js +0 -4
- package/dist/design-system/p-d430812a57.entry.js +0 -4
- package/dist/design-system/p-de1354f022.entry.js +0 -4
- package/dist/design-system/p-e3d0c82e2a.entry.js +0 -4
- package/dist/design-system/p-ea1a5e1f75.entry.js +0 -4
- package/dist/design-system/p-ea7169501c.entry.js +0 -4
- package/dist/design-system/p-eab397e041.entry.js +0 -4
- package/dist/design-system/p-ecba4deb9a.entry.js +0 -4
- package/dist/design-system/p-fe0dbd4b03.entry.js +0 -4
- package/dist/design-system/p-ng5ZzTOj.js +0 -4
- package/dist/esm/contact-Cb75Rr6o.js +0 -1636
- package/dist/esm/ds-content.entry.js +0 -152
- package/dist/esm/ds-divider.entry.js +0 -129
- package/dist/esm/ds-stack.entry.js +0 -222
- package/dist/esm/isEmpty-DmZYZqE9.js +0 -97
- package/dist/esm/stack.interfaces-ng5ZzTOj.js +0 -62
- package/dist/esm/svg-BaIoYrFa.js +0 -1480
- package/dist/esm/validate.decorator-82RSSk25.js +0 -110
- package/dist/types/global/constants/icons.constant.d.ts +0 -38
- package/dist/types/utils/element-states/element-states.decorator.d.ts +0 -3
- package/dist/types/utils/element-states/element-states.interfaces.d.ts +0 -10
- package/dist/types/utils/element-states/element-states.listener.d.ts +0 -15
- package/dist/types/utils/element-states/element-states.subject.d.ts +0 -8
- package/dist/types/utils/element-states/index.d.ts +0 -2
- package/dist/types/utils/keyboard/index.d.ts +0 -3
- package/dist/types/utils/keyboard/keyboard.decorator.d.ts +0 -3
- package/dist/types/utils/keyboard/keyboard.interfaces.d.ts +0 -8
- package/dist/types/utils/keyboard/keyboard.listener.d.ts +0 -9
- package/dist/types/utils/keyboard/keyboard.subject.d.ts +0 -8
- package/dist/types/utils/property-checkers/check-array-of.d.ts +0 -2
- package/dist/types/utils/property-checkers/check-date.d.ts +0 -1
- package/dist/types/utils/property-checkers/check-iso-date.d.ts +0 -1
- package/dist/types/utils/property-checkers/check-one-of.d.ts +0 -1
- package/dist/types/utils/property-checkers/check-pattern.d.ts +0 -1
- package/dist/types/utils/property-checkers/check-type.d.ts +0 -2
- package/dist/types/utils/property-checkers/check-url.d.ts +0 -1
- package/dist/types/utils/property-checkers/constants.d.ts +0 -1
- package/dist/types/utils/property-checkers/empty-or.d.ts +0 -1
- package/dist/types/utils/property-checkers/index.d.ts +0 -19
- package/dist/types/utils/property-checkers/required-and.d.ts +0 -1
- package/dist/types/utils/swipe/index.d.ts +0 -3
- package/dist/types/utils/swipe/swipe.decorator.d.ts +0 -5
- package/dist/types/utils/swipe/swipe.interfaces.d.ts +0 -10
- package/dist/types/utils/swipe/swipe.listener.d.ts +0 -10
- package/dist/types/utils/swipe/swipe.subject.d.ts +0 -11
- package/dist/types/utils/validate.decorator.d.ts +0 -114
- /package/dist/collection/{utils/element-states/element-states.interfaces.js → components/data/data-item.interfaces.js} +0 -0
- /package/dist/collection/{utils/keyboard/keyboard.interfaces.js → components/data/data-label.interfaces.js} +0 -0
- /package/dist/collection/{utils/property-checkers/property-types.js → components/data/data-value.interfaces.js} +0 -0
- /package/dist/collection/{utils/swipe/swipe.interfaces.js → components/data/data.interfaces.js} +0 -0
- /package/dist/collection/utils/{property-checkers/is-iso-date.js → is-iso-date.js} +0 -0
- /package/dist/collection/utils/{keyboard/keyboard.helpers.js → keyboard.js} +0 -0
- /package/dist/types/utils/{property-checkers/is-iso-date.d.ts → is-iso-date.d.ts} +0 -0
- /package/dist/types/utils/{property-checkers/is-value-empty.d.ts → is-value-empty.d.ts} +0 -0
- /package/dist/types/utils/{keyboard/keyboard.helpers.d.ts → keyboard.d.ts} +0 -0
- /package/dist/types/utils/{property-checkers/property-types.d.ts → property-types.d.ts} +0 -0
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import { __decorate, __metadata } from "tslib";
|
|
5
5
|
import { h, Host } from "@stencil/core";
|
|
6
|
-
import { ListenToBreakpoints, dsBreakpoints, stopEventBubbling, sanitizeSvg, raf, Logger,
|
|
6
|
+
import { ListenToBreakpoints, dsBreakpoints, stopEventBubbling, sanitizeSvg, raf, Logger, hasValue, OneOf, Type, } from "../../../utils/index";
|
|
7
7
|
import { SNACKBAR_COLORS, } from "./snackbar.interfaces";
|
|
8
8
|
import { BUTTON_TARGETS } from "../../button/button.interfaces";
|
|
9
9
|
/**
|
|
@@ -83,30 +83,27 @@ export class Snackbar {
|
|
|
83
83
|
* ------------------------------------------------------
|
|
84
84
|
*/
|
|
85
85
|
this.generateSvgContent = () => {
|
|
86
|
-
if (this.svg
|
|
87
|
-
|
|
86
|
+
if (hasValue(this.svg) && this.svg.length > 0) {
|
|
87
|
+
return sanitizeSvg(this.svg);
|
|
88
88
|
}
|
|
89
|
+
return undefined;
|
|
89
90
|
};
|
|
90
91
|
this.generateIconName = () => {
|
|
91
|
-
if (this.icon
|
|
92
|
-
|
|
92
|
+
if (hasValue(this.icon) && this.icon.length > 0) {
|
|
93
|
+
return this.icon;
|
|
93
94
|
}
|
|
94
95
|
else {
|
|
95
96
|
switch (this.color) {
|
|
96
97
|
case 'info':
|
|
97
|
-
|
|
98
|
-
break;
|
|
98
|
+
return 'information';
|
|
99
99
|
case 'success':
|
|
100
|
-
|
|
101
|
-
break;
|
|
100
|
+
return 'check';
|
|
102
101
|
case 'warning':
|
|
103
|
-
|
|
104
|
-
break;
|
|
102
|
+
return 'alert';
|
|
105
103
|
case 'danger':
|
|
106
|
-
|
|
107
|
-
break;
|
|
104
|
+
return 'alert';
|
|
108
105
|
default:
|
|
109
|
-
|
|
106
|
+
return 'bell';
|
|
110
107
|
}
|
|
111
108
|
}
|
|
112
109
|
};
|
|
@@ -114,21 +111,10 @@ export class Snackbar {
|
|
|
114
111
|
createLogger(log) {
|
|
115
112
|
this.log = log;
|
|
116
113
|
}
|
|
117
|
-
iconChanged() {
|
|
118
|
-
this.generateIconName();
|
|
119
|
-
}
|
|
120
|
-
svgChanged() {
|
|
121
|
-
this.generateSvgContent();
|
|
122
|
-
}
|
|
123
114
|
/**
|
|
124
115
|
* LIFECYCLE
|
|
125
116
|
* ------------------------------------------------------
|
|
126
117
|
*/
|
|
127
|
-
connectedCallback() {
|
|
128
|
-
setupValidation(this);
|
|
129
|
-
this.generateIconName();
|
|
130
|
-
this.generateSvgContent();
|
|
131
|
-
}
|
|
132
118
|
componentDidLoad() {
|
|
133
119
|
raf(() => {
|
|
134
120
|
this.didLoad = true;
|
|
@@ -158,22 +144,24 @@ export class Snackbar {
|
|
|
158
144
|
* ------------------------------------------------------
|
|
159
145
|
*/
|
|
160
146
|
render() {
|
|
161
|
-
|
|
147
|
+
const iconName = this.generateIconName();
|
|
148
|
+
const svgContent = this.generateSvgContent();
|
|
149
|
+
return (h(Host, { key: '66c571295c3931b071bb104e339febfac87db6df', role: "status", "aria-live": "polite", "aria-atomic": "true", class: {
|
|
162
150
|
[`is-ready`]: this.didLoad,
|
|
163
151
|
[`is-visible`]: this.visible,
|
|
164
152
|
[`is-closable`]: this.closable,
|
|
165
153
|
[`is-mobile-open`]: this.isMobile && this.mobileOpenState,
|
|
166
154
|
[`is-mobile-closed`]: this.isMobile && !this.mobileOpenState,
|
|
167
|
-
[`is-${this.color}`]: this.color
|
|
168
|
-
} }, this.isMobile && !this.mobileOpenState && (h("ds-button", { key: '
|
|
155
|
+
[`is-${this.color}`]: hasValue(this.color),
|
|
156
|
+
} }, this.isMobile && !this.mobileOpenState && (h("ds-button", { key: '9f9cedbf2fed42189e302a0aebc9852a2771136e', id: "mobile-button", color: this.color === 'base' ? 'primary' : this.color, square: true, icon: iconName, onClick: () => (this.mobileOpenState = true) })), iconName && !svgContent && (h("ds-icon", { key: 'a4c826d95d2041345bf4cee0540cb172f5336c79', part: "icon", id: "icon", name: iconName, color: this.color, size: 'xl', shape: this.color === 'warning'
|
|
169
157
|
? 'triangle'
|
|
170
158
|
: this.color === 'danger' || this.color === 'success' || this.color === 'info'
|
|
171
159
|
? 'circle'
|
|
172
|
-
: undefined })),
|
|
160
|
+
: undefined })), svgContent && h("ds-icon", { key: 'cdb9be5a9499d7ffad58c8c2e5a9096963b67f69', id: "icon", part: "icon", svg: svgContent, size: 'xl' }), h("span", { key: '52810e3cb684318ce4fd8ec8be8529f63a8e8e8b', part: "content", id: "content" }, this.heading && h("h2", { key: '8ae2906a4ffabbc970c9c995c5d9efb0cc94fbc8', part: "heading" }, this.heading), h("span", { key: 'affd6a8d4ce4c19274a8c760f00f0a051bbae56e', part: "message" }, this.message, h("slot", { key: '75fd4ab26f8f6f8d1d89d2c1e0428b53bb3d75c5' }))), h("ds-button-group", { key: '0c644ee957e3a615e2c7fa030d537bea002e72ca', part: "action", id: "action" }, h("slot", { key: '840fb7d2be9fcf41ffa5b4eeff53d4a1b26d209a', name: "action" }), this.action && (h("ds-button", { key: '18d900d559bd085b5732ec37484622ee9da199ff', color: "primary", size: "sm", part: "button", icon: this.actionIcon, target: this.actionTarget, href: this.actionHref, onClick: ev => {
|
|
173
161
|
stopEventBubbling(ev);
|
|
174
162
|
this.dsActionClick.emit(ev);
|
|
175
163
|
this.actionHandler(this.alertId);
|
|
176
|
-
} }, this.action)), this.closable && (h("ds-close", { key: '
|
|
164
|
+
} }, this.action)), this.closable && (h("ds-close", { key: 'd8c8c528cff2edbfac7a23488271c2071d5a84df', button: true, "button-color": "secondary", part: "close", size: "sm", onClick: ev => {
|
|
177
165
|
stopEventBubbling(ev);
|
|
178
166
|
this.close();
|
|
179
167
|
} })))));
|
|
@@ -364,7 +352,7 @@ export class Snackbar {
|
|
|
364
352
|
"mutable": false,
|
|
365
353
|
"complexType": {
|
|
366
354
|
"original": "ButtonTarget",
|
|
367
|
-
"resolved": "\"_blank\" | \"_parent\" | \"_self\" | \"_top\"",
|
|
355
|
+
"resolved": "\"\" | \"_blank\" | \"_parent\" | \"_self\" | \"_top\"",
|
|
368
356
|
"references": {
|
|
369
357
|
"ButtonTarget": {
|
|
370
358
|
"location": "import",
|
|
@@ -500,9 +488,7 @@ export class Snackbar {
|
|
|
500
488
|
return {
|
|
501
489
|
"isMobile": {},
|
|
502
490
|
"mobileOpenState": {},
|
|
503
|
-
"didLoad": {}
|
|
504
|
-
"svgContent": {},
|
|
505
|
-
"iconName": {}
|
|
491
|
+
"didLoad": {}
|
|
506
492
|
};
|
|
507
493
|
}
|
|
508
494
|
static get events() {
|
|
@@ -592,15 +578,6 @@ export class Snackbar {
|
|
|
592
578
|
};
|
|
593
579
|
}
|
|
594
580
|
static get elementRef() { return "el"; }
|
|
595
|
-
static get watchers() {
|
|
596
|
-
return [{
|
|
597
|
-
"propName": "icon",
|
|
598
|
-
"methodName": "iconChanged"
|
|
599
|
-
}, {
|
|
600
|
-
"propName": "svg",
|
|
601
|
-
"methodName": "svgChanged"
|
|
602
|
-
}];
|
|
603
|
-
}
|
|
604
581
|
}
|
|
605
582
|
__decorate([
|
|
606
583
|
Logger('snackbar'),
|
|
@@ -609,43 +586,43 @@ __decorate([
|
|
|
609
586
|
__metadata("design:returntype", void 0)
|
|
610
587
|
], Snackbar.prototype, "createLogger", null);
|
|
611
588
|
__decorate([
|
|
612
|
-
|
|
589
|
+
OneOf(SNACKBAR_COLORS),
|
|
613
590
|
__metadata("design:type", String)
|
|
614
591
|
], Snackbar.prototype, "color", void 0);
|
|
615
592
|
__decorate([
|
|
616
|
-
|
|
593
|
+
Type('boolean'),
|
|
617
594
|
__metadata("design:type", Boolean)
|
|
618
595
|
], Snackbar.prototype, "closable", void 0);
|
|
619
596
|
__decorate([
|
|
620
|
-
|
|
597
|
+
Type('string'),
|
|
621
598
|
__metadata("design:type", String)
|
|
622
599
|
], Snackbar.prototype, "heading", void 0);
|
|
623
600
|
__decorate([
|
|
624
|
-
|
|
601
|
+
Type('string'),
|
|
625
602
|
__metadata("design:type", String)
|
|
626
603
|
], Snackbar.prototype, "message", void 0);
|
|
627
604
|
__decorate([
|
|
628
|
-
|
|
605
|
+
Type('string'),
|
|
629
606
|
__metadata("design:type", String)
|
|
630
607
|
], Snackbar.prototype, "icon", void 0);
|
|
631
608
|
__decorate([
|
|
632
|
-
|
|
609
|
+
Type('string'),
|
|
633
610
|
__metadata("design:type", String)
|
|
634
611
|
], Snackbar.prototype, "svg", void 0);
|
|
635
612
|
__decorate([
|
|
636
|
-
|
|
613
|
+
Type('string'),
|
|
637
614
|
__metadata("design:type", String)
|
|
638
615
|
], Snackbar.prototype, "action", void 0);
|
|
639
616
|
__decorate([
|
|
640
|
-
|
|
617
|
+
Type('string'),
|
|
641
618
|
__metadata("design:type", String)
|
|
642
619
|
], Snackbar.prototype, "actionIcon", void 0);
|
|
643
620
|
__decorate([
|
|
644
|
-
|
|
621
|
+
OneOf(BUTTON_TARGETS),
|
|
645
622
|
__metadata("design:type", String)
|
|
646
623
|
], Snackbar.prototype, "actionTarget", void 0);
|
|
647
624
|
__decorate([
|
|
648
|
-
|
|
625
|
+
Type('string'),
|
|
649
626
|
__metadata("design:type", String)
|
|
650
627
|
], Snackbar.prototype, "actionHref", void 0);
|
|
651
628
|
__decorate([
|
|
@@ -1 +1 @@
|
|
|
1
|
-
:host{--_toast-position: var(--toast-position, var(--mod-toast-position, static));--_toast-top: var(--toast-top, var(--mod-toast-top));--_toast-right: var(--toast-right, var(--mod-toast-right));--_toast-bottom: var(--toast-bottom, var(--mod-toast-bottom));--_toast-left: var(--toast-left, var(--mod-toast-left));position:var(--_toast-position);top:var(--_toast-top);right:var(--_toast-right);bottom:var(--_toast-bottom);left:var(--_toast-left);--_toast-m: var(--toast-m, var(--mod-toast-m, 0));--_toast-my: var(--toast-my, var(--mod-toast-my));--_toast-mx: var(--toast-mx, var(--mod-toast-mx));--_toast-ml: var(--toast-ml, var(--mod-toast-ml));--_toast-mr: var(--toast-mr, var(--mod-toast-mr));--_toast-mt: var(--toast-mt, var(--mod-toast-mt));--_toast-mb: var(--toast-mb, var(--mod-toast-mb));margin:var(--_toast-m);margin-inline:var(--_toast-mx);margin-block:var(--_toast-my);margin-left:var(--_toast-ml);margin-right:var(--_toast-mr);margin-top:var(--_toast-mt);margin-bottom:var(--_toast-mb);--_toast-shadow: var(--toast-shadow, var(--mod-toast-shadow, var(--ds-alias-shadow-box-base)));--_toast-radius: var(--toast-radius, var(--mod-toast-radius, var(--ds-toast-radius)));--_toast-bg: var(--toast-bg, var(--mod-toast-bg, var(--ds-toast-default-color-bg-base)));--_toast-color: var(--toast-color, var(--mod-toast-color, var(--ds-toast-default-color-text-base)));--_toast-icon-color: var(--toast-icon-color, var(--mod-toast-icon-color, var(--ds-toast-default-color-icon-base)));--_toast-progress-duration: var(--toast-progress-duration, var(--mod-toast-progress-duration, 0));--_toast-progress-bar-bg: var(--toast-progress-bar-bg, var(--mod-toast-progress-bar-bg, var(--ds-toast-default-color-progress-bar-base)));--_toast-progress-bg: var(--toast-progress-bg, var(--mod-toast-progress-bg, var(--ds-toast-default-color-progress-bg-base)));--_toast-heading-font-family: var(--toast-heading-font-family, var(--mod-toast-heading-font-family, var(--ds-text-family-heading)));--_toast-heading-font-weight: var(--toast-heading-font-weight, var(--mod-toast-heading-font-weight, var(--ds-text-weight-bold)));--_toast-heading-font-size: var(--toast-heading-font-size, var(--mod-toast-heading-font-size, var(--ds-text-size-base-device)));--_toast-heading-line-height: var(--toast-heading-line-height, var(--mod-toast-heading-line-height, var(--ds-text-line-height-heading)));--_toast-content-font-family: var(--toast-content-font-family, var(--mod-toast-content-font-family, var(--ds-text-family-body)));--_toast-content-font-weight: var(--toast-content-font-weight, var(--mod-toast-content-font-weight, inherit));--_toast-content-font-size: var(--toast-content-font-size, var(--mod-toast-content-font-size, var(--ds-text-size-sm-device)));--_toast-content-line-height: var(--toast-content-line-height, var(--mod-toast-content-line-height, var(--ds-text-line-height-body)));--_toast-gap: var(--toast-gap, var(--mod-toast-gap, 0.125rem));--_toast-p: var(--toast-p, var(--mod-toast-p, 1rem));--_toast-animation-start-opacity: var(--toast-animation-start-opacity, var(--mod-toast-animation-start-opacity, 1));--_toast-animation-start-transform: var(--toast-animation-start-transform, var(--mod-toast-animation-start-transform, none));--_toast-animation-transition: var(--toast-animation-transition, var(--mod-toast-animation-transition, none));--_toast-animation-end-opacity: var(--toast-animation-end-opacity, var(--mod-toast-animation-end-opacity, 1));--_toast-animation-end-transform: var(--toast-animation-end-transform, var(--mod-toast-animation-end-transform, none))}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-user-drag:none;user-drag:none}@media print{:host{display:none !important}}:host{opacity:var(--_toast-animation-start-opacity);transform:var(--_toast-animation-start-transform);flex:1;position:relative;hyphens:auto;color:var(--_toast-color);background:var(--_toast-bg);border-radius:var(--_toast-radius);box-shadow:var(--_toast-shadow);padding:var(--_toast-p);column-gap:calc(var(--_toast-gap)*4);row-gap:var(--_toast-gap);align-items:center;width:100%}:host ds-icon:not([name]){--icon-color: null;--icon-size: var(--ds-icon-size-lg)}:host #icon{grid-area:icon}:host #content{margin:0 !important;grid-area:content;display:flex;flex-direction:column}:host #content>strong,:host #content>b,:host #content>h2{font-family:var(--_toast-heading-font-family);font-weight:var(--_toast-heading-font-weight);line-height:var(--_toast-heading-line-height);font-size:var(--_toast-heading-font-size);margin:0 !important}:host #content,:host #content>span,:host #content>p{font-family:var(--_toast-content-font-family);font-size:var(--_toast-content-font-size);font-weight:var(--_toast-content-font-weight);line-height:var(--_toast-content-line-height)}:host ds-button,:host .button{--button-mt: 0;grid-area:action;align-self:center}:host .close,:host ds-close{grid-area:close;align-self:center}:host{display:grid;grid-template-columns:auto 1fr;grid-template-areas:"icon content"}:host(.is-closable:not(.is-action)){grid-template-columns:auto 1fr auto;grid-template-areas:"icon content close"}:host(.is-action:not(.is-closable)){grid-template-columns:auto 1fr auto;grid-template-areas:"icon content action"}:host(.is-action.is-closable){grid-template-columns:auto 1fr auto auto;grid-template-areas:"icon content action close"}:host(.is-ready){transition:var(--_toast-animation-transition)}:host(.is-visible){opacity:var(--_toast-animation-end-opacity);transform:var(--_toast-animation-end-transform)}:host(.has-progress-bar)::before{display:block;position:absolute;bottom:0;left:0;height:.25rem;width:100%;content:"";background-color:var(--_toast-progress-bg);border-bottom-left-radius:var(--_toast-radius);border-bottom-right-radius:var(--_toast-radius)}:host(.has-progress-bar)::after{display:block;position:absolute;bottom:0;left:0;height:.25rem;width:16px;content:"";background-color:var(--_toast-progress-bar-bg);border-bottom-left-radius:var(--_toast-radius);animation:progress var(--_toast-progress-duration) linear forwards}:host(.is-info){--mod-toast-color: var(--ds-toast-info-color-text-base);--mod-toast-border-color: var(--ds-toast-info-color-border-base);--mod-toast-bg: var(--ds-toast-info-color-bg-base);--mod-toast-icon-color: var(--ds-toast-info-color-icon-base);--mod-toast-progress-bar-bg: var(--ds-toast-info-color-progress-bar-base);--mod-toast-progress-bg: var(--ds-toast-info-color-progress-bg-base)}:host(.is-success){--mod-toast-color: var(--ds-toast-success-color-text-base);--mod-toast-border-color: var(--ds-toast-success-color-border-base);--mod-toast-bg: var(--ds-toast-success-color-bg-base);--mod-toast-icon-color: var(--ds-toast-success-color-icon-base);--mod-toast-progress-bar-bg: var(--ds-toast-success-color-progress-bar-base);--mod-toast-progress-bg: var(--ds-toast-success-color-progress-bg-base)}:host(.is-warning){--mod-toast-color: var(--ds-toast-warning-color-text-base);--mod-toast-border-color: var(--ds-toast-warning-color-border-base);--mod-toast-bg: var(--ds-toast-warning-color-bg-base);--mod-toast-icon-color: var(--ds-toast-warning-color-icon-base);--mod-toast-progress-bar-bg: var(--ds-toast-warning-color-progress-bar-base);--mod-toast-progress-bg: var(--ds-toast-warning-color-progress-bg-base)}:host(.is-danger){--mod-toast-color: var(--ds-toast-danger-color-text-base);--mod-toast-border-color: var(--ds-toast-danger-color-border-base);--mod-toast-bg: var(--ds-toast-danger-color-bg-base);--mod-toast-icon-color: var(--ds-toast-danger-color-icon-base);--mod-toast-progress-bar-bg: var(--ds-toast-danger-color-progress-bar-base);--mod-toast-progress-bg: var(--ds-toast-danger-color-progress-bg-base)}:host(.has-progress-bar)::after{display:block;position:absolute;bottom:0;left:0;height:.25rem;width:16px;content:"";background-color:var(--_toast-progress-bar-bg);border-bottom-left-radius:var(--_toast-radius);animation:progress var(--_toast-progress-duration) linear forwards}:host(.is-paused)::after{animation-play-state:paused}@keyframes progress{0%{width:0}99%{width:99%}100%{width:100%;border-bottom-right-radius:var(--_toast-radius)}}
|
|
1
|
+
:host{--_toast-position: var(--toast-position, var(--mod-toast-position, static));--_toast-top: var(--toast-top, var(--mod-toast-top));--_toast-right: var(--toast-right, var(--mod-toast-right));--_toast-bottom: var(--toast-bottom, var(--mod-toast-bottom));--_toast-left: var(--toast-left, var(--mod-toast-left));position:var(--_toast-position);top:var(--_toast-top);right:var(--_toast-right);bottom:var(--_toast-bottom);left:var(--_toast-left);--_toast-m: var(--toast-m, var(--mod-toast-m, 0));--_toast-my: var(--toast-my, var(--mod-toast-my));--_toast-mx: var(--toast-mx, var(--mod-toast-mx));--_toast-ml: var(--toast-ml, var(--mod-toast-ml));--_toast-mr: var(--toast-mr, var(--mod-toast-mr));--_toast-mt: var(--toast-mt, var(--mod-toast-mt));--_toast-mb: var(--toast-mb, var(--mod-toast-mb));margin:var(--_toast-m);margin-inline:var(--_toast-mx);margin-block:var(--_toast-my);margin-left:var(--_toast-ml);margin-right:var(--_toast-mr);margin-top:var(--_toast-mt);margin-bottom:var(--_toast-mb);--_toast-shadow: var(--toast-shadow, var(--mod-toast-shadow, var(--ds-alias-shadow-box-base)));--_toast-radius: var(--toast-radius, var(--mod-toast-radius, var(--ds-toast-radius)));--_toast-bg: var(--toast-bg, var(--mod-toast-bg, var(--ds-toast-default-color-bg-base)));--_toast-color: var(--toast-color, var(--mod-toast-color, var(--ds-toast-default-color-text-base)));--_toast-icon-color: var(--toast-icon-color, var(--mod-toast-icon-color, var(--ds-toast-default-color-icon-base)));--_toast-progress-duration: var(--toast-progress-duration, var(--mod-toast-progress-duration, 0));--_toast-progress-bar-bg: var(--toast-progress-bar-bg, var(--mod-toast-progress-bar-bg, var(--ds-toast-default-color-progress-bar-base)));--_toast-progress-bg: var(--toast-progress-bg, var(--mod-toast-progress-bg, var(--ds-toast-default-color-progress-bg-base)));--_toast-heading-font-family: var(--toast-heading-font-family, var(--mod-toast-heading-font-family, var(--ds-alias-text-family-heading)));--_toast-heading-font-weight: var(--toast-heading-font-weight, var(--mod-toast-heading-font-weight, var(--ds-alias-text-weight-bold)));--_toast-heading-font-size: var(--toast-heading-font-size, var(--mod-toast-heading-font-size, var(--ds-alias-text-size-base-device)));--_toast-heading-line-height: var(--toast-heading-line-height, var(--mod-toast-heading-line-height, var(--ds-alias-text-line-height-heading)));--_toast-content-font-family: var(--toast-content-font-family, var(--mod-toast-content-font-family, var(--ds-alias-text-family-body)));--_toast-content-font-weight: var(--toast-content-font-weight, var(--mod-toast-content-font-weight, inherit));--_toast-content-font-size: var(--toast-content-font-size, var(--mod-toast-content-font-size, var(--ds-alias-text-size-sm-device)));--_toast-content-line-height: var(--toast-content-line-height, var(--mod-toast-content-line-height, var(--ds-alias-text-line-height-body)));--_toast-gap: var(--toast-gap, var(--mod-toast-gap, 0.125rem));--_toast-p: var(--toast-p, var(--mod-toast-p, 1rem));--_toast-animation-start-opacity: var(--toast-animation-start-opacity, var(--mod-toast-animation-start-opacity, 1));--_toast-animation-start-transform: var(--toast-animation-start-transform, var(--mod-toast-animation-start-transform, none));--_toast-animation-transition: var(--toast-animation-transition, var(--mod-toast-animation-transition, none));--_toast-animation-end-opacity: var(--toast-animation-end-opacity, var(--mod-toast-animation-end-opacity, 1));--_toast-animation-end-transform: var(--toast-animation-end-transform, var(--mod-toast-animation-end-transform, none))}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-user-drag:none;user-drag:none}@media print{:host{display:none !important}}:host{opacity:var(--_toast-animation-start-opacity);transform:var(--_toast-animation-start-transform);flex:1;position:relative;hyphens:auto;color:var(--_toast-color);background:var(--_toast-bg);border-radius:var(--_toast-radius);box-shadow:var(--_toast-shadow);padding:var(--_toast-p);column-gap:calc(var(--_toast-gap)*4);row-gap:var(--_toast-gap);align-items:center;width:100%}:host ds-icon:not([name]){--icon-color: null;--icon-size: var(--ds-icon-size-lg)}:host #icon{grid-area:icon}:host #content{margin:0 !important;grid-area:content;display:flex;flex-direction:column}:host #content>strong,:host #content>b,:host #content>h2{font-family:var(--_toast-heading-font-family);font-weight:var(--_toast-heading-font-weight);line-height:var(--_toast-heading-line-height);font-size:var(--_toast-heading-font-size);margin:0 !important}:host #content,:host #content>span,:host #content>p{font-family:var(--_toast-content-font-family);font-size:var(--_toast-content-font-size);font-weight:var(--_toast-content-font-weight);line-height:var(--_toast-content-line-height)}:host ds-button,:host .button{--button-mt: 0;grid-area:action;align-self:center}:host .close,:host ds-close{grid-area:close;align-self:center}:host{display:grid;grid-template-columns:auto 1fr;grid-template-areas:"icon content"}:host(.is-closable:not(.is-action)){grid-template-columns:auto 1fr auto;grid-template-areas:"icon content close"}:host(.is-action:not(.is-closable)){grid-template-columns:auto 1fr auto;grid-template-areas:"icon content action"}:host(.is-action.is-closable){grid-template-columns:auto 1fr auto auto;grid-template-areas:"icon content action close"}:host(.is-ready){transition:var(--_toast-animation-transition)}:host(.is-visible){opacity:var(--_toast-animation-end-opacity);transform:var(--_toast-animation-end-transform)}:host(.has-progress-bar)::before{display:block;position:absolute;bottom:0;left:0;height:.25rem;width:100%;content:"";background-color:var(--_toast-progress-bg);border-bottom-left-radius:var(--_toast-radius);border-bottom-right-radius:var(--_toast-radius)}:host(.has-progress-bar)::after{display:block;position:absolute;bottom:0;left:0;height:.25rem;width:16px;content:"";background-color:var(--_toast-progress-bar-bg);border-bottom-left-radius:var(--_toast-radius);animation:progress var(--_toast-progress-duration) linear forwards}:host(.is-info){--mod-toast-color: var(--ds-toast-info-color-text-base);--mod-toast-border-color: var(--ds-toast-info-color-border-base);--mod-toast-bg: var(--ds-toast-info-color-bg-base);--mod-toast-icon-color: var(--ds-toast-info-color-icon-base);--mod-toast-progress-bar-bg: var(--ds-toast-info-color-progress-bar-base);--mod-toast-progress-bg: var(--ds-toast-info-color-progress-bg-base)}:host(.is-success){--mod-toast-color: var(--ds-toast-success-color-text-base);--mod-toast-border-color: var(--ds-toast-success-color-border-base);--mod-toast-bg: var(--ds-toast-success-color-bg-base);--mod-toast-icon-color: var(--ds-toast-success-color-icon-base);--mod-toast-progress-bar-bg: var(--ds-toast-success-color-progress-bar-base);--mod-toast-progress-bg: var(--ds-toast-success-color-progress-bg-base)}:host(.is-warning){--mod-toast-color: var(--ds-toast-warning-color-text-base);--mod-toast-border-color: var(--ds-toast-warning-color-border-base);--mod-toast-bg: var(--ds-toast-warning-color-bg-base);--mod-toast-icon-color: var(--ds-toast-warning-color-icon-base);--mod-toast-progress-bar-bg: var(--ds-toast-warning-color-progress-bar-base);--mod-toast-progress-bg: var(--ds-toast-warning-color-progress-bg-base)}:host(.is-danger){--mod-toast-color: var(--ds-toast-danger-color-text-base);--mod-toast-border-color: var(--ds-toast-danger-color-border-base);--mod-toast-bg: var(--ds-toast-danger-color-bg-base);--mod-toast-icon-color: var(--ds-toast-danger-color-icon-base);--mod-toast-progress-bar-bg: var(--ds-toast-danger-color-progress-bar-base);--mod-toast-progress-bg: var(--ds-toast-danger-color-progress-bg-base)}:host(.has-progress-bar)::after{display:block;position:absolute;bottom:0;left:0;height:.25rem;width:16px;content:"";background-color:var(--_toast-progress-bar-bg);border-bottom-left-radius:var(--_toast-radius);animation:progress var(--_toast-progress-duration) linear forwards}:host(.is-paused)::after{animation-play-state:paused}@keyframes progress{0%{width:0}99%{width:99%}100%{width:100%;border-bottom-right-radius:var(--_toast-radius)}}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import { __decorate, __metadata } from "tslib";
|
|
5
5
|
import { h, Host } from "@stencil/core";
|
|
6
|
-
import { stopEventBubbling, raf, sanitizeSvg, Logger,
|
|
6
|
+
import { stopEventBubbling, raf, sanitizeSvg, Logger, hasValue, OneOf, Required, Type } from "../../../utils/index";
|
|
7
7
|
import { ListenToConfig } from "../../../global/index";
|
|
8
8
|
import { TOAST_COLORS, TOAST_TARGETS, } from "./toast.interfaces";
|
|
9
9
|
/**
|
|
@@ -80,30 +80,27 @@ export class Toast {
|
|
|
80
80
|
* ------------------------------------------------------
|
|
81
81
|
*/
|
|
82
82
|
this.generateSvgContent = () => {
|
|
83
|
-
if (this.svg
|
|
84
|
-
|
|
83
|
+
if (hasValue(this.svg)) {
|
|
84
|
+
return sanitizeSvg(this.svg);
|
|
85
85
|
}
|
|
86
|
+
return undefined;
|
|
86
87
|
};
|
|
87
88
|
this.generateIconName = () => {
|
|
88
|
-
if (this.icon
|
|
89
|
-
|
|
89
|
+
if (hasValue(this.icon)) {
|
|
90
|
+
return this.icon;
|
|
90
91
|
}
|
|
91
92
|
else {
|
|
92
93
|
switch (this.color) {
|
|
93
94
|
case 'info':
|
|
94
|
-
|
|
95
|
-
break;
|
|
95
|
+
return 'information';
|
|
96
96
|
case 'success':
|
|
97
|
-
|
|
98
|
-
break;
|
|
97
|
+
return 'check';
|
|
99
98
|
case 'warning':
|
|
100
|
-
|
|
101
|
-
break;
|
|
99
|
+
return 'alert';
|
|
102
100
|
case 'danger':
|
|
103
|
-
|
|
104
|
-
break;
|
|
101
|
+
return 'alert';
|
|
105
102
|
default:
|
|
106
|
-
|
|
103
|
+
return 'bell';
|
|
107
104
|
}
|
|
108
105
|
}
|
|
109
106
|
};
|
|
@@ -111,21 +108,10 @@ export class Toast {
|
|
|
111
108
|
createLogger(log) {
|
|
112
109
|
this.log = log;
|
|
113
110
|
}
|
|
114
|
-
iconChanged() {
|
|
115
|
-
this.generateIconName();
|
|
116
|
-
}
|
|
117
|
-
svgChanged() {
|
|
118
|
-
this.generateSvgContent();
|
|
119
|
-
}
|
|
120
111
|
/**
|
|
121
112
|
* LIFECYCLE
|
|
122
113
|
* ------------------------------------------------------
|
|
123
114
|
*/
|
|
124
|
-
connectedCallback() {
|
|
125
|
-
setupValidation(this);
|
|
126
|
-
this.generateIconName();
|
|
127
|
-
this.generateSvgContent();
|
|
128
|
-
}
|
|
129
115
|
componentDidLoad() {
|
|
130
116
|
raf(() => {
|
|
131
117
|
this.didLoad = true;
|
|
@@ -154,6 +140,8 @@ export class Toast {
|
|
|
154
140
|
* ------------------------------------------------------
|
|
155
141
|
*/
|
|
156
142
|
render() {
|
|
143
|
+
const iconName = this.generateIconName();
|
|
144
|
+
const svgContent = this.generateSvgContent();
|
|
157
145
|
const hasDuration = this.duration !== undefined && this.duration !== 'infinite' && this.duration > 0;
|
|
158
146
|
const hasProgressBar = this.visible && this.didLoad && hasDuration;
|
|
159
147
|
const durationVariable = hasDuration
|
|
@@ -161,13 +149,13 @@ export class Toast {
|
|
|
161
149
|
'--toast-progress-duration': `${this.duration}ms`,
|
|
162
150
|
}
|
|
163
151
|
: {};
|
|
164
|
-
return (h(Host, { key: '
|
|
152
|
+
return (h(Host, { key: 'f38cb2cdb7460f866c5c9f7d14a6b2565cba63f9', role: "alert", "aria-live": "assertive", "aria-atomic": "true", class: {
|
|
165
153
|
[`is-ready`]: this.didLoad,
|
|
166
154
|
[`is-paused`]: this.didPause,
|
|
167
155
|
[`is-visible`]: this.visible,
|
|
168
156
|
[`has-progress-bar`]: hasProgressBar && this.animated,
|
|
169
157
|
[`is-closable`]: this.closable,
|
|
170
|
-
[`is-action`]: this.action
|
|
158
|
+
[`is-action`]: hasValue(this.action),
|
|
171
159
|
[`is-${this.color}`]: this.color !== undefined,
|
|
172
160
|
}, style: durationVariable, onMouseEnter: () => {
|
|
173
161
|
this.didPause = true;
|
|
@@ -175,7 +163,7 @@ export class Toast {
|
|
|
175
163
|
}, onMouseLeave: () => {
|
|
176
164
|
this.didPause = false;
|
|
177
165
|
this.dsDidResume.emit();
|
|
178
|
-
} }, !
|
|
166
|
+
} }, !hasValue(svgContent) && (h("ds-icon", { key: 'a3533c4ad23fcfeeb13628cce8292c877010d31d', id: "icon", part: "icon", name: iconName || this.color === 'warning'
|
|
179
167
|
? 'alert'
|
|
180
168
|
: this.color === 'danger'
|
|
181
169
|
? 'alert'
|
|
@@ -187,11 +175,11 @@ export class Toast {
|
|
|
187
175
|
? 'triangle'
|
|
188
176
|
: this.color === 'danger' || this.color === 'success' || this.color === 'info'
|
|
189
177
|
? 'circle'
|
|
190
|
-
: undefined })),
|
|
178
|
+
: undefined })), hasValue(svgContent) && h("ds-icon", { key: '206dbb5cd3673773eb5a9327679676ad9a0d15f9', id: "icon", part: "icon", svg: svgContent }), h("span", { key: 'f7f7fb5c0071f6cb35a005e9a843cfc527d96e3f', part: "content", id: "content" }, this.heading && h("h2", { key: '073902110e1777b279e829e05bcc040e24b8251e', part: "heading" }, this.heading), h("span", { key: '677a6c7b3bb849376cd47b8449e8cab982c396b6', part: "message" }, this.message, h("slot", { key: '722ebc769eb27196aef924c2028a5b0c04590d25' }))), hasValue(this.action) && (h("ds-button", { key: '814a491f7657a3ad56021a3607651244afafc2af', id: "action", color: "primary", size: "sm", part: "button", icon: this.actionIcon, target: this.actionTarget, href: this.actionHref, onClick: ev => {
|
|
191
179
|
stopEventBubbling(ev);
|
|
192
180
|
this.dsActionClick.emit(ev);
|
|
193
181
|
this.actionHandler(this.alertId);
|
|
194
|
-
} }, this.action)), this.closable && (h("ds-close", { key: '
|
|
182
|
+
} }, this.action)), this.closable && (h("ds-close", { key: 'e1c6e38442650af9321ba62e43a94fc2e10cbb6f', part: "close", onClick: ev => {
|
|
195
183
|
stopEventBubbling(ev);
|
|
196
184
|
this.close();
|
|
197
185
|
} }))));
|
|
@@ -380,7 +368,7 @@ export class Toast {
|
|
|
380
368
|
"mutable": false,
|
|
381
369
|
"complexType": {
|
|
382
370
|
"original": "ButtonTarget",
|
|
383
|
-
"resolved": "\"_blank\" | \"_parent\" | \"_self\" | \"_top\"",
|
|
371
|
+
"resolved": "\"\" | \"_blank\" | \"_parent\" | \"_self\" | \"_top\"",
|
|
384
372
|
"references": {
|
|
385
373
|
"ButtonTarget": {
|
|
386
374
|
"location": "import",
|
|
@@ -546,9 +534,7 @@ export class Toast {
|
|
|
546
534
|
return {
|
|
547
535
|
"animated": {},
|
|
548
536
|
"didLoad": {},
|
|
549
|
-
"didPause": {}
|
|
550
|
-
"svgContent": {},
|
|
551
|
-
"iconName": {}
|
|
537
|
+
"didPause": {}
|
|
552
538
|
};
|
|
553
539
|
}
|
|
554
540
|
static get events() {
|
|
@@ -704,15 +690,6 @@ export class Toast {
|
|
|
704
690
|
};
|
|
705
691
|
}
|
|
706
692
|
static get elementRef() { return "el"; }
|
|
707
|
-
static get watchers() {
|
|
708
|
-
return [{
|
|
709
|
-
"propName": "icon",
|
|
710
|
-
"methodName": "iconChanged"
|
|
711
|
-
}, {
|
|
712
|
-
"propName": "svg",
|
|
713
|
-
"methodName": "svgChanged"
|
|
714
|
-
}];
|
|
715
|
-
}
|
|
716
693
|
}
|
|
717
694
|
__decorate([
|
|
718
695
|
Logger('toast'),
|
|
@@ -721,43 +698,45 @@ __decorate([
|
|
|
721
698
|
__metadata("design:returntype", void 0)
|
|
722
699
|
], Toast.prototype, "createLogger", null);
|
|
723
700
|
__decorate([
|
|
724
|
-
|
|
701
|
+
OneOf(TOAST_COLORS),
|
|
725
702
|
__metadata("design:type", String)
|
|
726
703
|
], Toast.prototype, "color", void 0);
|
|
727
704
|
__decorate([
|
|
728
|
-
|
|
705
|
+
Type('boolean'),
|
|
729
706
|
__metadata("design:type", Boolean)
|
|
730
707
|
], Toast.prototype, "closable", void 0);
|
|
731
708
|
__decorate([
|
|
732
|
-
|
|
709
|
+
Required(),
|
|
710
|
+
Type('string'),
|
|
733
711
|
__metadata("design:type", String)
|
|
734
712
|
], Toast.prototype, "heading", void 0);
|
|
735
713
|
__decorate([
|
|
736
|
-
|
|
714
|
+
Required(),
|
|
715
|
+
Type('string'),
|
|
737
716
|
__metadata("design:type", String)
|
|
738
717
|
], Toast.prototype, "message", void 0);
|
|
739
718
|
__decorate([
|
|
740
|
-
|
|
719
|
+
Type('string'),
|
|
741
720
|
__metadata("design:type", String)
|
|
742
721
|
], Toast.prototype, "icon", void 0);
|
|
743
722
|
__decorate([
|
|
744
|
-
|
|
723
|
+
Type('string'),
|
|
745
724
|
__metadata("design:type", String)
|
|
746
725
|
], Toast.prototype, "svg", void 0);
|
|
747
726
|
__decorate([
|
|
748
|
-
|
|
727
|
+
Type('string'),
|
|
749
728
|
__metadata("design:type", String)
|
|
750
729
|
], Toast.prototype, "action", void 0);
|
|
751
730
|
__decorate([
|
|
752
|
-
|
|
731
|
+
Type('string'),
|
|
753
732
|
__metadata("design:type", String)
|
|
754
733
|
], Toast.prototype, "actionIcon", void 0);
|
|
755
734
|
__decorate([
|
|
756
|
-
|
|
735
|
+
OneOf(TOAST_TARGETS),
|
|
757
736
|
__metadata("design:type", String)
|
|
758
737
|
], Toast.prototype, "actionTarget", void 0);
|
|
759
738
|
__decorate([
|
|
760
|
-
|
|
739
|
+
Type('string'),
|
|
761
740
|
__metadata("design:type", String)
|
|
762
741
|
], Toast.prototype, "actionHref", void 0);
|
|
763
742
|
__decorate([
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import { __decorate, __metadata } from "tslib";
|
|
5
5
|
import { h, Host } from "@stencil/core";
|
|
6
|
-
import { dsBrowser, dsDevice, debounce, rIC, rOnLoad, Logger } from "../../utils/index";
|
|
6
|
+
import { dsBrowser, dsDevice, debounce, rIC, rOnLoad, Logger, Type } from "../../utils/index";
|
|
7
7
|
import { updateDsAnimated, updateDsLogger } from "../../global/index";
|
|
8
8
|
import { startFocusVisible } from "./app.focus.util";
|
|
9
9
|
/**
|
|
@@ -73,11 +73,11 @@ export class App {
|
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
75
|
render() {
|
|
76
|
-
return (h(Host, { key: '
|
|
76
|
+
return (h(Host, { key: '1eaae424ed6f20db8d0d6a0c7c485f4d620d20bf', class: {
|
|
77
77
|
'ds-app': true,
|
|
78
78
|
'ds-app--safari': dsBrowser.isSafari,
|
|
79
79
|
'ds-app--touch': dsDevice.hasTouchScreen,
|
|
80
|
-
} }, h("slot", { key: '
|
|
80
|
+
} }, h("slot", { key: 'c80d99b79ee378c003a130f35beb688f746edb69' })));
|
|
81
81
|
}
|
|
82
82
|
static get is() { return "ds-app"; }
|
|
83
83
|
static get originalStyleUrls() {
|
|
@@ -215,3 +215,11 @@ __decorate([
|
|
|
215
215
|
__metadata("design:paramtypes", [Function]),
|
|
216
216
|
__metadata("design:returntype", void 0)
|
|
217
217
|
], App.prototype, "createLogger", null);
|
|
218
|
+
__decorate([
|
|
219
|
+
Type('boolean'),
|
|
220
|
+
__metadata("design:type", Boolean)
|
|
221
|
+
], App.prototype, "animated", void 0);
|
|
222
|
+
__decorate([
|
|
223
|
+
Type('boolean'),
|
|
224
|
+
__metadata("design:type", Boolean)
|
|
225
|
+
], App.prototype, "ready", void 0);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
:host{--_badge-position: var(--badge-position, var(--mod-badge-position, static));--_badge-top: var(--badge-top, var(--mod-badge-top));--_badge-right: var(--badge-right, var(--mod-badge-right));--_badge-bottom: var(--badge-bottom, var(--mod-badge-bottom));--_badge-left: var(--badge-left, var(--mod-badge-left));position:var(--_badge-position);top:var(--_badge-top);right:var(--_badge-right);bottom:var(--_badge-bottom);left:var(--_badge-left);--_badge-m: var(--badge-m, var(--mod-badge-m, 0));--_badge-my: var(--badge-my, var(--mod-badge-my));--_badge-mx: var(--badge-mx, var(--mod-badge-mx));--_badge-ml: var(--badge-ml, var(--mod-badge-ml));--_badge-mr: var(--badge-mr, var(--mod-badge-mr));--_badge-mt: var(--badge-mt, var(--mod-badge-mt));--_badge-mb: var(--badge-mb, var(--mod-badge-mb));margin:var(--_badge-m);margin-inline:var(--_badge-mx);margin-block:var(--_badge-my);margin-left:var(--_badge-ml);margin-right:var(--_badge-mr);margin-top:var(--_badge-mt);margin-bottom:var(--_badge-mb);--_badge-font-family: var(--badge-font-family, var(--mod-badge-font-family, var(--ds-badge-text-family)));--_badge-font-weight: var(--badge-font-weight, var(--mod-badge-font-weight, var(--ds-badge-text-weight)));--_badge-min-width: var(--badge-min-width, var(--mod-badge-min-width, var(--ds-badge-size-base)));--_badge-height: var(--badge-height, var(--mod-badge-height, var(--ds-badge-size-base)));--_badge-radius: var(--badge-radius, var(--mod-badge-radius, calc(var(--ds-badge-size-base) / 2)));--_badge-color-background: var(--badge-color-background, var(--mod-badge-color-background, var(--ds-badge-color-base-background)));--_badge-color-text: var(--badge-color-text, var(--mod-badge-color-text, var(--ds-badge-color-base-text)));--_badge-pulse-color: var(--badge-pulse-color, var(--mod-badge-pulse-color, var(--ds-badge-color-base-background)));--_badge-font-size: var(--badge-font-size, var(--mod-badge-font-size, 85%));--_badge-icon-size: var(--badge-icon-size, var(--mod-badge-icon-size, 0.
|
|
1
|
+
:host{--_badge-position: var(--badge-position, var(--mod-badge-position, static));--_badge-top: var(--badge-top, var(--mod-badge-top));--_badge-right: var(--badge-right, var(--mod-badge-right));--_badge-bottom: var(--badge-bottom, var(--mod-badge-bottom));--_badge-left: var(--badge-left, var(--mod-badge-left));position:var(--_badge-position);top:var(--_badge-top);right:var(--_badge-right);bottom:var(--_badge-bottom);left:var(--_badge-left);--_badge-m: var(--badge-m, var(--mod-badge-m, 0));--_badge-my: var(--badge-my, var(--mod-badge-my));--_badge-mx: var(--badge-mx, var(--mod-badge-mx));--_badge-ml: var(--badge-ml, var(--mod-badge-ml));--_badge-mr: var(--badge-mr, var(--mod-badge-mr));--_badge-mt: var(--badge-mt, var(--mod-badge-mt));--_badge-mb: var(--badge-mb, var(--mod-badge-mb));margin:var(--_badge-m);margin-inline:var(--_badge-mx);margin-block:var(--_badge-my);margin-left:var(--_badge-ml);margin-right:var(--_badge-mr);margin-top:var(--_badge-mt);margin-bottom:var(--_badge-mb);--_badge-font-family: var(--badge-font-family, var(--mod-badge-font-family, var(--ds-badge-text-family)));--_badge-font-weight: var(--badge-font-weight, var(--mod-badge-font-weight, var(--ds-badge-text-weight)));--_badge-min-width: var(--badge-min-width, var(--mod-badge-min-width, var(--ds-badge-size-base)));--_badge-height: var(--badge-height, var(--mod-badge-height, var(--ds-badge-size-base)));--_badge-radius: var(--badge-radius, var(--mod-badge-radius, calc(var(--ds-badge-size-base) / 2)));--_badge-color-background: var(--badge-color-background, var(--mod-badge-color-background, var(--ds-badge-color-base-background)));--_badge-color-text: var(--badge-color-text, var(--mod-badge-color-text, var(--ds-badge-color-base-text)));--_badge-pulse-color: var(--badge-pulse-color, var(--mod-badge-pulse-color, var(--ds-badge-color-base-background)));--_badge-font-size: var(--badge-font-size, var(--mod-badge-font-size, 85%));--_badge-icon-size: var(--badge-icon-size, var(--mod-badge-icon-size, 0.75rem));--_badge-icon-color: var(--badge-icon-color, var(--mod-badge-icon-color, var(--ds-badge-color-base-text)));--_badge-gap: var(--badge-gap, var(--mod-badge-gap, 4px));--_badge-padding-inline: var(--badge-padding-inline, var(--mod-badge-padding-inline, 4px));--_badge-padding-block: var(--badge-padding-block, var(--mod-badge-padding-block, 4px))}: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;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:inline-flex;vertical-align:text-top;justify-content:center;align-items:center;hyphens:auto;font-size:var(--_badge-font-size);white-space:nowrap;line-height:1;z-index:1;cursor:inherit;min-width:var(--_badge-min-width);height:var(--_badge-height);border-radius:var(--_badge-radius);background:var(--_badge-color-background);color:var(--_badge-color-text);font-family:var(--_badge-font-family);font-weight:var(--_badge-font-weight);gap:var(--_badge-gap);padding-inline:var(--_badge-padding-inline);padding-block:var(--_badge-padding-block)}:host ds-icon{--icon-size: var(--_badge-icon-size);--icon-inner-size: var(--_badge-icon-size);--icon-color: var(--_badge-icon-color)}:host(.is-red){--mod-badge-color-text: var(--ds-badge-color-red-text);--mod-badge-color-background: var(--ds-badge-color-red-background);--mod-badge-pulse-color: var(--ds-badge-color-red-background);--mod-badge-icon-color: var(--ds-badge-color-red-text);--icon-color: var(--ds-badge-color-red-text)}:host(.is-green){--mod-badge-color-text: var(--ds-badge-color-green-text);--mod-badge-color-background: var(--ds-badge-color-green-background);--mod-badge-pulse-color: var(--ds-badge-color-green-background);--mod-badge-icon-color: var(--ds-badge-color-green-text);--icon-color: var(--ds-badge-color-green-text)}:host(.is-yellow){--mod-badge-color-text: var(--ds-badge-color-yellow-text);--mod-badge-color-background: var(--ds-badge-color-yellow-background);--mod-badge-pulse-color: var(--ds-badge-color-yellow-background);--mod-badge-icon-color: var(--ds-badge-color-yellow-text);--icon-color: var(--ds-badge-color-yellow-text)}:host(.is-purple){--mod-badge-color-text: var(--ds-badge-color-purple-text);--mod-badge-color-background: var(--ds-badge-color-purple-background);--mod-badge-pulse-color: var(--ds-badge-color-purple-background);--mod-badge-icon-color: var(--ds-badge-color-purple-text);--icon-color: var(--ds-badge-color-purple-text)}:host(.is-grey){--mod-badge-color-text: var(--ds-badge-color-grey-text);--mod-badge-color-background: var(--ds-badge-color-grey-background);--mod-badge-pulse-color: var(--ds-badge-color-grey-background);--mod-badge-icon-color: var(--ds-badge-color-grey-text);--icon-color: var(--ds-badge-color-grey-text)}:host(.is-success){--mod-badge-color-text: var(--ds-badge-color-success-text);--mod-badge-color-background: var(--ds-badge-color-success-background);--mod-badge-pulse-color: var(--ds-badge-color-success-background);--mod-badge-icon-color: var(--ds-badge-color-success-text);--icon-color: var(--ds-badge-color-success-text)}:host(.is-warning){--mod-badge-color-text: var(--ds-badge-color-warning-text);--mod-badge-color-background: var(--ds-badge-color-warning-background);--mod-badge-pulse-color: var(--ds-badge-color-warning-background);--mod-badge-icon-color: var(--ds-badge-color-warning-text);--icon-color: var(--ds-badge-color-warning-text)}:host(.is-danger){--mod-badge-color-text: var(--ds-badge-color-danger-text);--mod-badge-color-background: var(--ds-badge-color-danger-background);--mod-badge-pulse-color: var(--ds-badge-color-danger-background);--mod-badge-icon-color: var(--ds-badge-color-danger-text);--icon-color: var(--ds-badge-color-danger-text)}:host(.is-sm){--mod-badge-radius: calc(var(--ds-badge-size-sm) / 2);--mod-badge-height: var(--ds-badge-size-sm);--mod-badge-min-width: var(--ds-badge-size-sm);--mod-badge-padding-inline: 0;--mod-badge-padding-block: 0;--mod-badge-font-size: 0;max-width:var(--ds-badge-size-sm);padding:0;overflow:hidden}:host(.is-sm)>*{display:none}:host(.is-lg){--mod-badge-min-width: var(--ds-badge-size-lg);--mod-badge-height: var(--ds-badge-size-lg);--mod-badge-radius: calc(var(--ds-badge-size-lg) / 2);--mod-badge-font-size: 1rem;--mod-badge-icon-size: 1.125rem}:host(.is-pulse){animation:pulse 2s infinite}@keyframes pulse{0%{box-shadow:0 0 0 0 var(--_badge-pulse-color)}70%{box-shadow:0 0 0 .5rem rgba(0,0,0,0)}100%{box-shadow:0 0 0 0 rgba(0,0,0,0)}}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* (C) Helvetia Design System https://design.baloise.dev/ - Apache License 2.0
|
|
3
3
|
*/
|
|
4
|
-
export const BADGE_SIZES = ['small', 'large', ''];
|
|
4
|
+
export const BADGE_SIZES = ['sm', 'lg', 'small', 'large', ''];
|
|
5
5
|
export const BADGE_COLORS = ['grey', 'danger', 'warning', 'success', 'red', 'yellow', 'green', 'purple', ''];
|
|
6
6
|
export const BADGE_POSITIONS = ['card', 'button', 'tabs', ''];
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import { __decorate, __metadata } from "tslib";
|
|
5
5
|
import { h, Host } from "@stencil/core";
|
|
6
|
-
import {
|
|
6
|
+
import { Logger, normalizeDeprecatedTShirtSize, hasValue, OneOf, Type } from "../../utils/index";
|
|
7
7
|
import { BADGE_SIZES, BADGE_COLORS, BADGE_POSITIONS, } from "./badge.interfaces";
|
|
8
8
|
/**
|
|
9
9
|
* Badge displays a small indicator or counter on a child component to highlight notifications, counts, or status information.
|
|
@@ -14,6 +14,9 @@ import { BADGE_SIZES, BADGE_COLORS, BADGE_POSITIONS, } from "./badge.interfaces"
|
|
|
14
14
|
*/
|
|
15
15
|
export class Badge {
|
|
16
16
|
constructor() {
|
|
17
|
+
// ========================================================================
|
|
18
|
+
// PUBLIC PROPERTY API
|
|
19
|
+
// ========================================================================
|
|
17
20
|
/**
|
|
18
21
|
* Name of the icon to show. If an icon is present, text should be hidden.
|
|
19
22
|
*/
|
|
@@ -38,19 +41,25 @@ export class Badge {
|
|
|
38
41
|
createLogger(log) {
|
|
39
42
|
this.log = log;
|
|
40
43
|
}
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
44
|
+
// ========================================================================
|
|
45
|
+
// LIFECYCLE
|
|
46
|
+
// ========================================================================
|
|
47
|
+
// ========================================================================
|
|
48
|
+
// PROPERTY VALIDATION
|
|
49
|
+
// ========================================================================
|
|
50
|
+
// ========================================================================
|
|
51
|
+
// PRIVATE METHODS
|
|
52
|
+
// ========================================================================
|
|
53
|
+
// ========================================================================
|
|
54
|
+
// RENDER
|
|
55
|
+
// ========================================================================
|
|
48
56
|
render() {
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
[`is-${this.
|
|
57
|
+
const size = normalizeDeprecatedTShirtSize(this.size) || '';
|
|
58
|
+
return (h(Host, { key: '96172084445525ad98729b13be73fd5608f20c3f', class: {
|
|
59
|
+
[`is-${this.color}`]: hasValue(this.color),
|
|
60
|
+
[`is-${size}`]: hasValue(this.size),
|
|
52
61
|
'is-pulse': this.pulse,
|
|
53
|
-
} }, h("span", { key: '
|
|
62
|
+
} }, h("span", { key: '23c0d0ddfd7be982b9d3538e5a6fba39993b3a99', id: "badge", part: "badge" }, h("slot", { key: 'c477848d6d4cb7079c12dfc667e3d63c15041ef9' }), size !== 'sm' && hasValue(this.icon) ? h("ds-icon", { part: "icon", name: this.icon }) : '')));
|
|
54
63
|
}
|
|
55
64
|
static get is() { return "ds-badge"; }
|
|
56
65
|
static get encapsulation() { return "shadow"; }
|
|
@@ -88,10 +97,10 @@ export class Badge {
|
|
|
88
97
|
},
|
|
89
98
|
"size": {
|
|
90
99
|
"type": "string",
|
|
91
|
-
"mutable":
|
|
100
|
+
"mutable": false,
|
|
92
101
|
"complexType": {
|
|
93
102
|
"original": "BadgeSize",
|
|
94
|
-
"resolved": "\"\" | \"large\" | \"small\"",
|
|
103
|
+
"resolved": "\"\" | \"large\" | \"lg\" | \"sm\" | \"small\"",
|
|
95
104
|
"references": {
|
|
96
105
|
"BadgeSize": {
|
|
97
106
|
"location": "import",
|
|
@@ -190,12 +199,6 @@ export class Badge {
|
|
|
190
199
|
};
|
|
191
200
|
}
|
|
192
201
|
static get elementRef() { return "el"; }
|
|
193
|
-
static get watchers() {
|
|
194
|
-
return [{
|
|
195
|
-
"propName": "size",
|
|
196
|
-
"methodName": "sizeChanged"
|
|
197
|
-
}];
|
|
198
|
-
}
|
|
199
202
|
}
|
|
200
203
|
__decorate([
|
|
201
204
|
Logger('badge'),
|
|
@@ -204,22 +207,22 @@ __decorate([
|
|
|
204
207
|
__metadata("design:returntype", void 0)
|
|
205
208
|
], Badge.prototype, "createLogger", null);
|
|
206
209
|
__decorate([
|
|
207
|
-
|
|
210
|
+
Type('string'),
|
|
208
211
|
__metadata("design:type", String)
|
|
209
212
|
], Badge.prototype, "icon", void 0);
|
|
210
213
|
__decorate([
|
|
211
|
-
|
|
214
|
+
OneOf(BADGE_SIZES),
|
|
212
215
|
__metadata("design:type", String)
|
|
213
216
|
], Badge.prototype, "size", void 0);
|
|
214
217
|
__decorate([
|
|
215
|
-
|
|
218
|
+
OneOf(BADGE_COLORS),
|
|
216
219
|
__metadata("design:type", String)
|
|
217
220
|
], Badge.prototype, "color", void 0);
|
|
218
221
|
__decorate([
|
|
219
|
-
|
|
222
|
+
OneOf(BADGE_POSITIONS),
|
|
220
223
|
__metadata("design:type", String)
|
|
221
224
|
], Badge.prototype, "position", void 0);
|
|
222
225
|
__decorate([
|
|
223
|
-
|
|
226
|
+
Type('boolean'),
|
|
224
227
|
__metadata("design:type", Boolean)
|
|
225
228
|
], Badge.prototype, "pulse", void 0);
|