@baloise/ds-core 20.0.0-next.4 → 20.0.0-next.6
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 +56 -0
- package/components/all.js +84 -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.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-3Mi9vpmB.js +4 -0
- package/components/p-B-en4B17.js +4 -0
- package/components/p-B1gnrQ9b.js +4 -0
- package/components/p-BU0dY8pq.js +4 -0
- package/components/p-BfXZJ1Fe.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-Btdh3fq7.js +4 -0
- package/components/{p-Urcs7-vS.js → p-BwfAXfmz.js} +1 -1
- 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-CYWn3X22.js +4 -0
- package/components/p-CjIxf5zy.js +4 -0
- package/components/p-Ctnm_MBD.js +4 -0
- package/components/p-CvaNxQtw.js +4 -0
- package/components/p-D9ILiUgm.js +4 -0
- package/components/{p-BATOumsf.js → 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-z1jJgtep.js → p-DU7t9H9h.js} +1 -1
- 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/components/p-DokkRjWC.js +4 -0
- package/{dist/design-system/p-BwrOVItb.js → components/p-Dr4MUfss.js} +1 -1
- package/components/p-DsvYY32v.js +4 -0
- 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-WO0X5Vmy.js +4 -0
- package/components/p-bGV2P6rT.js +4 -0
- package/components/{p-Bt20CEww.js → p-n3_2KEz0.js} +1 -1
- package/dist/cjs/array-CioNm_V1.js +1985 -0
- package/dist/cjs/{breakpoints.decorator-qaoHOU6Q.js → breakpoints.decorator-C-Qm21UK.js} +1 -1
- package/dist/cjs/{breakpoints.subject-DhAN_ZAn.js → breakpoints.subject-XNcGwhzh.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-ThGLtT-3.js} +1 -1
- package/dist/cjs/{config.utils-Cv4cx_Xa.js → config.utils-MhZvq4Qm.js} +1 -1
- package/dist/cjs/create-validator-decorator-BIgFqrMJ.js +212 -0
- package/dist/cjs/design-system.cjs.js +3 -3
- package/dist/cjs/{device-CptgCtVc.js → device-BnjBOLnP.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 +32 -25
- 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 +2 -2
- 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 +30 -42
- 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 +41 -2012
- package/dist/cjs/ds-checkbox.cjs.entry.js +23 -19
- 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 +515 -0
- package/dist/cjs/ds-footer.cjs.entry.js +159 -0
- package/dist/cjs/ds-heading.cjs.entry.js +21 -19
- 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 +78 -70
- 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 +22 -30
- 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 +19 -27
- package/dist/cjs/ds-number-input.cjs.entry.js +128 -45
- 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 +30 -29
- package/dist/cjs/ds-radio.cjs.entry.js +26 -33
- 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 +40 -57
- 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 +28 -32
- package/dist/cjs/ds-textarea.cjs.entry.js +32 -31
- package/dist/cjs/ds-toast.cjs.entry.js +40 -54
- 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-L-DkeMVk.js} +1 -1
- package/dist/cjs/floating-ui.dom-Cu3dZdFD.js +1628 -0
- package/dist/cjs/focus-D3VVgpM7.js +1958 -0
- package/dist/cjs/footer.i18n-CpGxizgm.js +162 -0
- package/dist/cjs/{form-control-Bno2tBGf.js → form-control-CtMcJUuC.js} +2 -2
- package/dist/cjs/has-value-DK0oRqXI.js +12 -0
- package/dist/cjs/{index-CdD-TT_n.js → index-sC3JnTlJ.js} +497 -175
- package/dist/cjs/index.cjs.js +26 -8283
- package/dist/cjs/keyboard-C7y0jXYb.js +23 -0
- package/dist/cjs/{listener-DgVWqfa1.js → listener-BwB_xent.js} +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/luxon-q23LOWrr.js +8137 -0
- package/dist/cjs/one-of-BZGRIMtQ.js +30 -0
- package/dist/cjs/popup.interfaces-B-mwd9rh.js +23 -0
- package/dist/cjs/required-COz3Unzu.js +38 -0
- package/dist/cjs/resize.decorator-DWM_fQgv.js +98 -0
- package/dist/cjs/scroll-CUuEh4xd.js +89 -0
- package/dist/cjs/svg-D9RbiR8R.js +2443 -0
- package/dist/cjs/{tslib.es6-BTi-SLnA.js → tslib.es6-CxyosZMg.js} +1 -1
- package/dist/cjs/type-hmc4CJcO.js +33 -0
- package/dist/collection/collection-manifest.json +30 -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.js +30 -53
- 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.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-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 +25 -38
- 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 +25 -26
- package/dist/collection/components/checkbox/checkbox.js +18 -18
- 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.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/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.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 +22 -23
- package/dist/collection/components/radio/radio.js +19 -20
- 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.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 +29 -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-01430d5c28.entry.js +4 -0
- package/dist/design-system/p-014d464627.entry.js +4 -0
- package/dist/design-system/p-0663d7c0f1.entry.js +4 -0
- package/dist/design-system/p-0bd2ce2da3.entry.js +4 -0
- package/dist/design-system/p-0ff0be5b83.entry.js +4 -0
- package/dist/design-system/p-10c136d00d.entry.js +4 -0
- package/dist/design-system/p-11f34d0c7d.entry.js +4 -0
- package/dist/design-system/p-13d1ce3158.entry.js +4 -0
- package/dist/design-system/p-163d606781.entry.js +4 -0
- package/dist/design-system/p-1VXOIrN2.js +4 -0
- package/dist/design-system/p-202ecb8f01.entry.js +4 -0
- package/dist/design-system/p-27d181c5ac.entry.js +4 -0
- package/dist/design-system/p-2a35e0b9b0.entry.js +4 -0
- package/dist/design-system/p-2f51e1d39b.entry.js +4 -0
- package/dist/design-system/p-3134821ac6.entry.js +4 -0
- package/dist/design-system/p-3292ae6a05.entry.js +4 -0
- package/dist/design-system/p-372bf379f9.entry.js +4 -0
- package/dist/design-system/p-3895178b39.entry.js +4 -0
- package/dist/design-system/p-3c6b7a2967.entry.js +4 -0
- package/dist/design-system/p-3ef4bd1c59.entry.js +4 -0
- package/dist/design-system/p-493b18cc46.entry.js +4 -0
- package/dist/design-system/p-4a99464dae.entry.js +4 -0
- package/dist/design-system/p-4e6638d14e.entry.js +4 -0
- package/dist/design-system/p-53dda5d400.entry.js +4 -0
- package/dist/design-system/p-5d17209d91.entry.js +4 -0
- package/dist/design-system/p-5e51fa8df4.entry.js +4 -0
- package/dist/design-system/p-60d29d8b8e.entry.js +4 -0
- package/dist/design-system/p-62cb503015.entry.js +4 -0
- package/dist/design-system/p-650289138a.entry.js +4 -0
- package/dist/design-system/p-65c221261c.entry.js +4 -0
- package/dist/design-system/p-68c9f4f630.entry.js +4 -0
- package/dist/design-system/p-68ebed7eee.entry.js +4 -0
- package/dist/design-system/p-6b6531379b.entry.js +4 -0
- package/dist/design-system/p-6d168ba9ad.entry.js +4 -0
- package/dist/design-system/p-6ef31a3c07.entry.js +4 -0
- package/dist/design-system/p-774b89ed0b.entry.js +4 -0
- package/dist/design-system/p-787bd92bcc.entry.js +4 -0
- package/{components/p-E1SnOz0L.js → dist/design-system/p-78NZc8PM.js} +1 -1
- package/dist/design-system/p-7c353652a9.entry.js +4 -0
- package/dist/design-system/p-7c8bf0f33e.entry.js +4 -0
- package/dist/design-system/p-7e702193fc.entry.js +4 -0
- package/dist/design-system/p-8353961d39.entry.js +4 -0
- package/dist/design-system/{p-1d312498a6.entry.js → p-8406f6faf1.entry.js} +1 -1
- package/dist/design-system/p-9f2dd0b55b.entry.js +4 -0
- package/dist/design-system/p-B-en4B17.js +4 -0
- package/dist/design-system/p-B1e0kNRJ.js +14 -0
- package/dist/design-system/p-B8KVoKrH.js +5 -0
- package/dist/design-system/p-BAY6Z8bT.js +4 -0
- package/dist/design-system/p-BLGVE-7Z.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-BhdSNuGP.js +4 -0
- package/dist/design-system/p-BkTv_bQR.js +4 -0
- package/dist/design-system/p-BqY0KzJC.js +4 -0
- package/dist/design-system/p-BrJFPhMA.js +4 -0
- package/dist/design-system/p-BvEM6oCl.js +4 -0
- package/dist/design-system/p-C1jqbZdf.js +4 -0
- package/dist/design-system/p-C6MVahkC.js +5 -0
- package/dist/design-system/{p-DCf2fJmI.js → p-C7i6xLTJ.js} +1 -1
- package/dist/design-system/p-CvTcEsXg.js +4 -0
- package/dist/design-system/p-CwCAiaMq.js +4 -0
- package/{components/p-5Sp1eJOt.js → dist/design-system/p-DTxLRTYr.js} +1 -1
- package/dist/design-system/{p-Dnjznncd.js → p-DgVaaZT_.js} +1 -1
- package/dist/design-system/{p-CAcwu8uP.js → p-Dm2lqE3-.js} +1 -1
- package/dist/design-system/p-HwbqEzpk.js +4 -0
- package/dist/design-system/p-LCY5n5tq.js +4 -0
- package/dist/design-system/p-Uy_dVz21.js +4 -0
- package/dist/design-system/p-a465c1acce.entry.js +4 -0
- package/dist/design-system/p-a62b7985a0.entry.js +4 -0
- package/dist/design-system/p-a8de98dd7b.entry.js +4 -0
- package/dist/design-system/p-ad2b17b0a0.entry.js +4 -0
- package/dist/design-system/p-afd8bbe699.entry.js +4 -0
- package/dist/design-system/{p-7e6ed497e7.entry.js → p-b68bc14064.entry.js} +1 -1
- package/dist/design-system/p-b955a93959.entry.js +4 -0
- package/dist/design-system/p-c37f266740.entry.js +4 -0
- package/dist/design-system/p-caad93b943.entry.js +4 -0
- package/dist/design-system/p-cca79bfeb1.entry.js +4 -0
- package/dist/design-system/p-d5f8d8f5e1.entry.js +4 -0
- package/dist/design-system/p-dcb749efc7.entry.js +4 -0
- package/dist/design-system/p-dd38f8f206.entry.js +4 -0
- package/dist/design-system/p-ddf2a7dfee.entry.js +4 -0
- package/dist/design-system/p-df5899b930.entry.js +4 -0
- package/dist/design-system/p-e7472337ed.entry.js +4 -0
- package/dist/design-system/p-e85c92ca1a.entry.js +4 -0
- package/dist/design-system/p-f0119fe693.entry.js +4 -0
- package/dist/design-system/p-f4958b9e97.entry.js +4 -0
- package/dist/design-system/p-f62643c33d.entry.js +4 -0
- package/dist/design-system/p-fa9568abce.entry.js +4 -0
- package/dist/design-system/p-fcd98f22b7.entry.js +4 -0
- package/dist/design-system/p-feeef4a8cb.entry.js +4 -0
- package/dist/design-system/{p-BLPSziW-.js → p-hLAmwHiq.js} +1 -1
- package/dist/design-system/p-ij4OEkzJ.js +4 -0
- package/dist/design-system/p-tl_BegdE.js +4 -0
- package/dist/esm/array-dJH4dfMr.js +1983 -0
- package/dist/esm/{breakpoints.decorator-L2xeP46f.js → breakpoints.decorator-DZ0xN4Np.js} +1 -1
- package/dist/esm/{breakpoints.subject-BhbzG-rl.js → breakpoints.subject-BNnXcKMw.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-ZQ0_Zx5y.js} +1 -1
- package/dist/esm/{config.utils-COlKFRlV.js → config.utils-D9o7rffC.js} +1 -1
- package/dist/esm/create-validator-decorator-DovxquEu.js +208 -0
- package/dist/esm/design-system.js +4 -4
- package/dist/esm/{device-Dhwt3m7W.js → device-CRuIJzXR.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 +32 -25
- 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 +2 -2
- 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 +30 -42
- 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 +40 -2011
- package/dist/esm/ds-checkbox.entry.js +23 -19
- 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 +513 -0
- package/dist/esm/ds-footer.entry.js +157 -0
- package/dist/esm/ds-heading.entry.js +21 -19
- 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 +78 -70
- 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 +22 -30
- 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 +19 -27
- package/dist/esm/ds-number-input.entry.js +129 -46
- 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 +31 -30
- package/dist/esm/ds-radio.entry.js +25 -32
- 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 +40 -57
- 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 +28 -32
- package/dist/esm/ds-textarea.entry.js +33 -32
- package/dist/esm/ds-toast.entry.js +40 -54
- 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-BjZzAi09.js} +1 -1
- package/dist/esm/floating-ui.dom-BqY0KzJC.js +1621 -0
- package/dist/esm/focus-ZxHImoOj.js +1956 -0
- package/dist/esm/footer.i18n-BrJFPhMA.js +159 -0
- package/dist/esm/{form-control-D2O-sb65.js → form-control-DvJo0GKN.js} +2 -2
- package/dist/esm/has-value-DU9L2JaI.js +10 -0
- package/dist/esm/{index-CuwLeg-T.js → index-C6MVahkC.js} +496 -175
- package/dist/esm/index.js +13 -8273
- package/dist/esm/{input.interfaces-C7EnKCpl.js → input.interfaces-BMM6Nxeh.js} +1 -1
- package/dist/esm/keyboard-Uy_dVz21.js +20 -0
- package/dist/esm/{listener-C_kjUVTE.js → listener-DHP2OPMZ.js} +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/luxon-C1jqbZdf.js +8133 -0
- package/dist/esm/one-of-CKPv0Nqm.js +28 -0
- package/dist/esm/popup.interfaces-BAY6Z8bT.js +20 -0
- package/dist/esm/required-Dqsbx5fH.js +36 -0
- package/dist/esm/resize.decorator-B8h8D676.js +96 -0
- package/dist/esm/scroll-CsH7NHo5.js +87 -0
- package/dist/esm/svg-B8KVoKrH.js +2440 -0
- package/dist/esm/{tslib.es6-tdchDLyb.js → tslib.es6-C9GKXw-5.js} +1 -1
- package/dist/esm/type-DzkhLOG_.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 +1 -3
- 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/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/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/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 +4913 -1926
- 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 +15 -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 +17659 -0
- package/docs/components.json +38767 -17409
- package/docs/html.html-data.json +1529 -147
- package/docs/tags.json +29 -1
- package/package.json +45 -38
- package/sbom.cdx.json +54391 -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-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-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
|
@@ -0,0 +1,1241 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* (C) Helvetia Design System https://design.baloise.dev/ - Apache License 2.0
|
|
3
|
+
*/
|
|
4
|
+
import { __decorate, __metadata } from "tslib";
|
|
5
|
+
import { h } from "@stencil/core";
|
|
6
|
+
import { inheritAttributes, FormControl, FocusHandler, debounceEvent, Logger, isEscapeKey, OneOf, Type, raf, } from "../../utils/index";
|
|
7
|
+
import { defaultConfig, ListenToConfig } from "../../global/index";
|
|
8
|
+
import { Field } from "../input/field.util";
|
|
9
|
+
import { ClearButton } from "../input/clear-button.util";
|
|
10
|
+
import { INPUT_AUTOCOMPLETES } from "../input/input.interfaces";
|
|
11
|
+
import { DATE_COLORS, } from "./date.interfaces";
|
|
12
|
+
import { createDateMask, getDisplayFormat, isoToDisplay } from "./date.mask";
|
|
13
|
+
import { checkIsWithinRange, DatePickerController } from "./date.picker";
|
|
14
|
+
import { i18nDsTriggerButton } from "../input/trigger-button.i18n";
|
|
15
|
+
/**
|
|
16
|
+
* Date renders a masked date input field with an interactive calendar popup for date selection.
|
|
17
|
+
*
|
|
18
|
+
* @part input - The native HTML input element.
|
|
19
|
+
* @part clear - The clear button that removes the selected date.
|
|
20
|
+
* @part trigger - The calendar icon button that opens the date picker popup.
|
|
21
|
+
*/
|
|
22
|
+
export class DsDate {
|
|
23
|
+
constructor() {
|
|
24
|
+
this.inheritedAttributes = {};
|
|
25
|
+
this.control = new FormControl(this);
|
|
26
|
+
this.focusHandler = new FocusHandler();
|
|
27
|
+
this.updatingFromMask = false;
|
|
28
|
+
this.dateId = `ds-date-${DateIds++}`;
|
|
29
|
+
this.focused = false;
|
|
30
|
+
this.language = defaultConfig.language;
|
|
31
|
+
this.region = defaultConfig.region;
|
|
32
|
+
this.isOpen = false;
|
|
33
|
+
/**
|
|
34
|
+
* PUBLIC PROPERTY API
|
|
35
|
+
* ------------------------------------------------------
|
|
36
|
+
*/
|
|
37
|
+
/**
|
|
38
|
+
* The value of the date input in ISO format (YYYY-MM-DD).
|
|
39
|
+
*/
|
|
40
|
+
this.value = null;
|
|
41
|
+
/**
|
|
42
|
+
* The name of the control, which is submitted with the form data.
|
|
43
|
+
*/
|
|
44
|
+
this.name = this.dateId;
|
|
45
|
+
/**
|
|
46
|
+
* The label of the date input, which is displayed above the field.
|
|
47
|
+
*/
|
|
48
|
+
this.label = '';
|
|
49
|
+
/**
|
|
50
|
+
* The description of the date input, which is displayed below the field.
|
|
51
|
+
*/
|
|
52
|
+
this.description = '';
|
|
53
|
+
/**
|
|
54
|
+
* Defines the color of the date input. The default value is `primary`.
|
|
55
|
+
*/
|
|
56
|
+
this.color = 'primary';
|
|
57
|
+
/**
|
|
58
|
+
* If `true` the component gets an invalid style.
|
|
59
|
+
*/
|
|
60
|
+
this.invalid = false;
|
|
61
|
+
/**
|
|
62
|
+
* The text to display when the input is in an invalid state.
|
|
63
|
+
*/
|
|
64
|
+
this.invalidText = '';
|
|
65
|
+
/**
|
|
66
|
+
* If `true`, the user must fill in a value before submitting a form.
|
|
67
|
+
*/
|
|
68
|
+
this.required = true;
|
|
69
|
+
/**
|
|
70
|
+
* If `true`, the element is not mutable, focusable, or even submitted with the form.
|
|
71
|
+
*/
|
|
72
|
+
this.disabled = false;
|
|
73
|
+
/**
|
|
74
|
+
* If `true` the element can not be mutated, meaning the user can not edit the control.
|
|
75
|
+
*/
|
|
76
|
+
this.readonly = false;
|
|
77
|
+
/**
|
|
78
|
+
* Instructional text that shows before the input has a value.
|
|
79
|
+
*/
|
|
80
|
+
this.placeholder = '';
|
|
81
|
+
/**
|
|
82
|
+
* This Boolean attribute lets you specify that the control should have input focus when the page loads.
|
|
83
|
+
*/
|
|
84
|
+
this.autofocus = false;
|
|
85
|
+
/**
|
|
86
|
+
* Indicates whether the value of the control can be automatically completed by the browser.
|
|
87
|
+
*/
|
|
88
|
+
this.autocomplete = 'off';
|
|
89
|
+
/**
|
|
90
|
+
* Set the amount of time, in milliseconds, to wait to trigger the `dsChange` event after each keystroke.
|
|
91
|
+
*/
|
|
92
|
+
this.debounce = 0;
|
|
93
|
+
/**
|
|
94
|
+
* If `true`, in Angular reactive forms the control will not be set invalid.
|
|
95
|
+
*/
|
|
96
|
+
this.autoInvalidOff = false;
|
|
97
|
+
/**
|
|
98
|
+
* Shows a loading indicator at the end of the input and replaces the trigger button.
|
|
99
|
+
*/
|
|
100
|
+
this.loading = false;
|
|
101
|
+
/**
|
|
102
|
+
* The minimum ISO date string allowed (YYYY-MM-DD). Dates before this are disabled in the calendar and rejected from typed input.
|
|
103
|
+
*/
|
|
104
|
+
this.min = undefined;
|
|
105
|
+
/**
|
|
106
|
+
* The maximum ISO date string allowed (YYYY-MM-DD). Dates after this are disabled in the calendar and rejected from typed input.
|
|
107
|
+
*/
|
|
108
|
+
this.max = undefined;
|
|
109
|
+
/**
|
|
110
|
+
* Earliest year available for selection. Takes precedence over `min` when both are set.
|
|
111
|
+
*/
|
|
112
|
+
this.minYearProp = undefined;
|
|
113
|
+
/**
|
|
114
|
+
* Latest year available for selection. Takes precedence over `max` when both are set.
|
|
115
|
+
*/
|
|
116
|
+
this.maxYearProp = undefined;
|
|
117
|
+
/**
|
|
118
|
+
* The ISO date string (YYYY-MM-DD) where the calendar opens when no value is set.
|
|
119
|
+
* The date is not selected — only the view navigates to it.
|
|
120
|
+
*/
|
|
121
|
+
this.defaultDate = undefined;
|
|
122
|
+
/**
|
|
123
|
+
* If `true`, the calendar trigger icon and popup are hidden. The component behaves as a plain masked text input with no date picker UX.
|
|
124
|
+
*/
|
|
125
|
+
this.freeSolo = false;
|
|
126
|
+
/**
|
|
127
|
+
* Callback to determine which dates in the calendar are selectable.
|
|
128
|
+
* Receives an ISO date string (YYYY-MM-DD) and should return `true` to allow the date or `false` to disable it.
|
|
129
|
+
* Typed input that resolves to a disallowed date is also rejected.
|
|
130
|
+
*/
|
|
131
|
+
this.allowedDates = undefined;
|
|
132
|
+
this.handleClick = (ev) => {
|
|
133
|
+
this.control.onClick(ev);
|
|
134
|
+
};
|
|
135
|
+
this.handleFocus = (ev) => {
|
|
136
|
+
var _a;
|
|
137
|
+
(_a = this.dateMask) === null || _a === void 0 ? void 0 : _a.setLazy(false);
|
|
138
|
+
this.control.onFocus(ev);
|
|
139
|
+
};
|
|
140
|
+
this.handleBlur = (ev) => {
|
|
141
|
+
var _a, _b;
|
|
142
|
+
(_a = this.dateMask) === null || _a === void 0 ? void 0 : _a.clearIfIncomplete();
|
|
143
|
+
(_b = this.dateMask) === null || _b === void 0 ? void 0 : _b.setLazy(!this.value);
|
|
144
|
+
this.control.onBlur(ev);
|
|
145
|
+
};
|
|
146
|
+
this.handleTriggerClick = () => {
|
|
147
|
+
if (this.disabled || this.readonly)
|
|
148
|
+
return;
|
|
149
|
+
this.isOpen = !this.isOpen;
|
|
150
|
+
};
|
|
151
|
+
this.handleClearClick = () => {
|
|
152
|
+
var _a, _b;
|
|
153
|
+
this.updatingFromMask = true;
|
|
154
|
+
this.value = null;
|
|
155
|
+
this.control.inputValue = null;
|
|
156
|
+
(_a = this.dateMask) === null || _a === void 0 ? void 0 : _a.syncFromISO(null);
|
|
157
|
+
(_b = this.datePicker) === null || _b === void 0 ? void 0 : _b.clear({ silent: true });
|
|
158
|
+
this.dsChange.emit(null);
|
|
159
|
+
this.updatingFromMask = false;
|
|
160
|
+
};
|
|
161
|
+
}
|
|
162
|
+
createLogger(log) {
|
|
163
|
+
this.log = log;
|
|
164
|
+
}
|
|
165
|
+
isOpenChanged(open) {
|
|
166
|
+
var _a, _b, _c;
|
|
167
|
+
if (open) {
|
|
168
|
+
this.focusHandler.enable({ target: this.popupHostEl, restoreElement: (_a = this.triggerEl) !== null && _a !== void 0 ? _a : null });
|
|
169
|
+
(_b = this.datePicker) === null || _b === void 0 ? void 0 : _b.open();
|
|
170
|
+
}
|
|
171
|
+
else {
|
|
172
|
+
(_c = this.datePicker) === null || _c === void 0 ? void 0 : _c.close();
|
|
173
|
+
this.focusHandler.disable();
|
|
174
|
+
this.focusHandler.restoreFocus(this.triggerEl);
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
valueChanged() {
|
|
178
|
+
var _a, _b;
|
|
179
|
+
if (!this.updatingFromMask) {
|
|
180
|
+
(_a = this.dateMask) === null || _a === void 0 ? void 0 : _a.syncFromISO(this.value);
|
|
181
|
+
(_b = this.datePicker) === null || _b === void 0 ? void 0 : _b.syncFromValue(this.value);
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
debounceChanged() {
|
|
185
|
+
this.dsChange = debounceEvent(this.dsChange, this.debounce);
|
|
186
|
+
}
|
|
187
|
+
freeSoloChanged(isFree) {
|
|
188
|
+
if (isFree && this.isOpen)
|
|
189
|
+
this.isOpen = false;
|
|
190
|
+
}
|
|
191
|
+
minChanged() {
|
|
192
|
+
var _a;
|
|
193
|
+
(_a = this.datePicker) === null || _a === void 0 ? void 0 : _a.updateMin(this.min, this.minYearProp);
|
|
194
|
+
}
|
|
195
|
+
maxChanged() {
|
|
196
|
+
var _a;
|
|
197
|
+
(_a = this.datePicker) === null || _a === void 0 ? void 0 : _a.updateMax(this.max, this.maxYearProp);
|
|
198
|
+
}
|
|
199
|
+
/**
|
|
200
|
+
* PUBLIC LISTENERS
|
|
201
|
+
* ------------------------------------------------------
|
|
202
|
+
*/
|
|
203
|
+
listenToClick(ev) {
|
|
204
|
+
var _a;
|
|
205
|
+
this.control.listenOnClick(ev);
|
|
206
|
+
// Close popup on outside-click using composedPath for shadow-DOM awareness.
|
|
207
|
+
if (this.isOpen) {
|
|
208
|
+
const path = ev.composedPath();
|
|
209
|
+
const insideCalendar = path.includes((_a = this.popupHostEl) !== null && _a !== void 0 ? _a : this.el);
|
|
210
|
+
if (!insideCalendar) {
|
|
211
|
+
raf(() => {
|
|
212
|
+
this.isOpen = false;
|
|
213
|
+
});
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
listenToKeyDown(ev) {
|
|
218
|
+
if (!this.isOpen)
|
|
219
|
+
return;
|
|
220
|
+
if (isEscapeKey(ev)) {
|
|
221
|
+
ev.stopPropagation();
|
|
222
|
+
this.isOpen = false;
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
listenToReset(ev) {
|
|
226
|
+
var _a;
|
|
227
|
+
this.control.listenOnReset(ev);
|
|
228
|
+
(_a = this.datePicker) === null || _a === void 0 ? void 0 : _a.clear({ silent: true });
|
|
229
|
+
// FormControl schedules a setTimeout that writes the raw ISO value into nativeEl,
|
|
230
|
+
// bypassing IMask. IMask's internal _value is already correct but the DOM is wrong.
|
|
231
|
+
// We queue a fix that directly restores the display format to the DOM input.
|
|
232
|
+
setTimeout(() => {
|
|
233
|
+
var _a;
|
|
234
|
+
const nativeEl = this.control.nativeEl;
|
|
235
|
+
if (nativeEl) {
|
|
236
|
+
nativeEl.value = isoToDisplay(this.value, getDisplayFormat(this.region));
|
|
237
|
+
}
|
|
238
|
+
(_a = this.datePicker) === null || _a === void 0 ? void 0 : _a.syncFromValue(this.value);
|
|
239
|
+
});
|
|
240
|
+
}
|
|
241
|
+
/**
|
|
242
|
+
* LIFECYCLE
|
|
243
|
+
* ------------------------------------------------------
|
|
244
|
+
*/
|
|
245
|
+
connectedCallback() {
|
|
246
|
+
this.debounceChanged();
|
|
247
|
+
this.control.connectedCallback();
|
|
248
|
+
}
|
|
249
|
+
componentWillLoad() {
|
|
250
|
+
this.inheritedAttributes = inheritAttributes(this.el, ['aria-label', 'tabindex', 'title', 'data-hj-allow']);
|
|
251
|
+
}
|
|
252
|
+
componentDidLoad() {
|
|
253
|
+
this.control.componentDidLoad();
|
|
254
|
+
this.initMask();
|
|
255
|
+
if (this.popupHostEl && this.el.shadowRoot) {
|
|
256
|
+
this.datePicker = new DatePickerController({
|
|
257
|
+
popupHostEl: this.popupHostEl,
|
|
258
|
+
shadowRoot: this.el.shadowRoot,
|
|
259
|
+
language: this.language,
|
|
260
|
+
region: this.region,
|
|
261
|
+
min: this.min,
|
|
262
|
+
max: this.max,
|
|
263
|
+
minYear: this.minYearProp,
|
|
264
|
+
maxYear: this.maxYearProp,
|
|
265
|
+
defaultDate: this.defaultDate,
|
|
266
|
+
allowedDates: this.allowedDates,
|
|
267
|
+
initialValue: this.value,
|
|
268
|
+
onSelect: iso => {
|
|
269
|
+
var _a, _b;
|
|
270
|
+
this.updatingFromMask = true;
|
|
271
|
+
this.value = iso;
|
|
272
|
+
this.control.inputValue = iso;
|
|
273
|
+
(_a = this.dateMask) === null || _a === void 0 ? void 0 : _a.syncFromISO(iso);
|
|
274
|
+
this.dsChange.emit(iso);
|
|
275
|
+
this.updatingFromMask = false;
|
|
276
|
+
this.isOpen = false;
|
|
277
|
+
(_b = this.triggerEl) === null || _b === void 0 ? void 0 : _b.focus();
|
|
278
|
+
},
|
|
279
|
+
onClose: () => {
|
|
280
|
+
this.isOpen = false;
|
|
281
|
+
},
|
|
282
|
+
});
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
disconnectedCallback() {
|
|
286
|
+
var _a, _b;
|
|
287
|
+
this.focusHandler.disconnect();
|
|
288
|
+
(_a = this.dateMask) === null || _a === void 0 ? void 0 : _a.destroy();
|
|
289
|
+
this.dateMask = undefined;
|
|
290
|
+
(_b = this.datePicker) === null || _b === void 0 ? void 0 : _b.destroy();
|
|
291
|
+
this.datePicker = undefined;
|
|
292
|
+
}
|
|
293
|
+
/**
|
|
294
|
+
* PUBLIC METHODS
|
|
295
|
+
* ------------------------------------------------------
|
|
296
|
+
*/
|
|
297
|
+
/**
|
|
298
|
+
* @internal define config for the component
|
|
299
|
+
*/
|
|
300
|
+
async configChanged(state) {
|
|
301
|
+
var _a, _b;
|
|
302
|
+
this.language = state.language;
|
|
303
|
+
this.region = state.region;
|
|
304
|
+
(_a = this.dateMask) === null || _a === void 0 ? void 0 : _a.updateFormat(getDisplayFormat(state.region));
|
|
305
|
+
(_b = this.datePicker) === null || _b === void 0 ? void 0 : _b.updateLocale(state.language, state.region);
|
|
306
|
+
}
|
|
307
|
+
/**
|
|
308
|
+
* Sets focus on the native `input` in `ds-date`.
|
|
309
|
+
*/
|
|
310
|
+
async setFocus() {
|
|
311
|
+
return this.control.setFocus();
|
|
312
|
+
}
|
|
313
|
+
/**
|
|
314
|
+
* Sets blur on the native `input` in `ds-date`.
|
|
315
|
+
* @internal
|
|
316
|
+
*/
|
|
317
|
+
async setBlur() {
|
|
318
|
+
return this.control.setBlur();
|
|
319
|
+
}
|
|
320
|
+
/**
|
|
321
|
+
* Returns the native `<input>` element used under the hood.
|
|
322
|
+
*/
|
|
323
|
+
async getInputElement() {
|
|
324
|
+
return this.control.nativeEl;
|
|
325
|
+
}
|
|
326
|
+
/**
|
|
327
|
+
* PRIVATE METHODS
|
|
328
|
+
* ------------------------------------------------------
|
|
329
|
+
*/
|
|
330
|
+
initMask() {
|
|
331
|
+
const inputEl = this.control.nativeEl;
|
|
332
|
+
if (!inputEl)
|
|
333
|
+
return;
|
|
334
|
+
this.dateMask = createDateMask({
|
|
335
|
+
inputEl,
|
|
336
|
+
format: getDisplayFormat(this.region),
|
|
337
|
+
initialValue: this.value,
|
|
338
|
+
onAccept: isoValue => {
|
|
339
|
+
this.dsInput.emit(isoValue);
|
|
340
|
+
},
|
|
341
|
+
onComplete: isoValue => {
|
|
342
|
+
var _a;
|
|
343
|
+
if (!checkIsWithinRange(isoValue, this.min, this.max, this.minYearProp, this.maxYearProp, this.allowedDates)) {
|
|
344
|
+
raf(() => { var _a; return (_a = this.dateMask) === null || _a === void 0 ? void 0 : _a.syncFromISO(null); });
|
|
345
|
+
return;
|
|
346
|
+
}
|
|
347
|
+
this.updatingFromMask = true;
|
|
348
|
+
this.value = isoValue;
|
|
349
|
+
this.control.inputValue = isoValue;
|
|
350
|
+
(_a = this.datePicker) === null || _a === void 0 ? void 0 : _a.syncFromValue(isoValue);
|
|
351
|
+
this.dsChange.emit(isoValue);
|
|
352
|
+
this.updatingFromMask = false;
|
|
353
|
+
},
|
|
354
|
+
});
|
|
355
|
+
}
|
|
356
|
+
/**
|
|
357
|
+
* RENDER
|
|
358
|
+
* ------------------------------------------------------
|
|
359
|
+
*/
|
|
360
|
+
render() {
|
|
361
|
+
const displayValue = isoToDisplay(this.value, getDisplayFormat(this.region));
|
|
362
|
+
const triggerLabel = i18nDsTriggerButton[this.language].openCalendar;
|
|
363
|
+
const chooseDateLabel = i18nDsTriggerButton[this.language].chooseDate;
|
|
364
|
+
return (h(Field, { key: '859a54d8d31278c3fec25f00ac9929181cd7a7b5', disabled: this.disabled, color: this.color, invalid: this.invalid, loading: this.loading, label: this.label, description: this.description, invalidText: this.invalidText, required: this.required, language: this.language, inputId: "input" }, h("input", Object.assign({ key: '4ad6e0bae869a59beb72ed72e5d90e58efbab930', id: "input", part: "input", name: this.name, type: "text", inputMode: "numeric", ref: inputEl => (this.control.nativeEl = inputEl), "aria-describedby": "description", "aria-invalid": this.invalid === true ? 'true' : 'false', disabled: this.disabled, autofocus: this.autofocus, autocomplete: this.autocomplete, placeholder: this.placeholder || '', readonly: this.readonly, required: this.required, value: displayValue, onClick: ev => this.handleClick(ev), onFocus: ev => this.handleFocus(ev), onBlur: ev => this.handleBlur(ev), onKeyPress: ev => this.dsKeyPress.emit(ev) }, this.inheritedAttributes)), h(ClearButton, { key: 'cb317335e4e6053cc2dc3f45c59bb7c8b3418bd4', value: this.value, disabled: this.disabled, readonly: this.readonly, language: this.language, onClick: this.handleClearClick }), !this.freeSolo && !this.disabled && !this.readonly && (h("button", { key: 'ba6176e8c753d5055e0cd67eb0d8f973e4c06ce3', id: "trigger", part: "trigger", type: "button", ref: el => (this.triggerEl = el), "aria-label": triggerLabel, title: triggerLabel, "aria-haspopup": "dialog", "aria-expanded": this.isOpen ? 'true' : 'false', "aria-controls": "popup", onClick: this.handleTriggerClick }, h("ds-icon", { key: 'e5753c5a882058c816cf1feb1d73d2fb2043d027', name: "date" }))), !this.freeSolo && (h("div", { key: 'ceafaa1297f32cf6d6614ecbe21230c5bee7327d', id: "popup", role: "dialog", "aria-modal": "true", "aria-label": chooseDateLabel, "aria-hidden": this.isOpen ? 'false' : 'true', inert: this.isOpen ? undefined : true, ref: el => (this.popupHostEl = el) }))));
|
|
365
|
+
}
|
|
366
|
+
static get is() { return "ds-date"; }
|
|
367
|
+
static get encapsulation() { return "shadow"; }
|
|
368
|
+
static get formAssociated() { return true; }
|
|
369
|
+
static get originalStyleUrls() {
|
|
370
|
+
return {
|
|
371
|
+
"$": ["date.host.scss"]
|
|
372
|
+
};
|
|
373
|
+
}
|
|
374
|
+
static get styleUrls() {
|
|
375
|
+
return {
|
|
376
|
+
"$": ["date.host.css"]
|
|
377
|
+
};
|
|
378
|
+
}
|
|
379
|
+
static get properties() {
|
|
380
|
+
return {
|
|
381
|
+
"value": {
|
|
382
|
+
"type": "string",
|
|
383
|
+
"mutable": true,
|
|
384
|
+
"complexType": {
|
|
385
|
+
"original": "string | null",
|
|
386
|
+
"resolved": "null | string",
|
|
387
|
+
"references": {}
|
|
388
|
+
},
|
|
389
|
+
"required": false,
|
|
390
|
+
"optional": false,
|
|
391
|
+
"docs": {
|
|
392
|
+
"tags": [],
|
|
393
|
+
"text": "The value of the date input in ISO format (YYYY-MM-DD)."
|
|
394
|
+
},
|
|
395
|
+
"getter": false,
|
|
396
|
+
"setter": false,
|
|
397
|
+
"reflect": true,
|
|
398
|
+
"attribute": "value",
|
|
399
|
+
"defaultValue": "null"
|
|
400
|
+
},
|
|
401
|
+
"name": {
|
|
402
|
+
"type": "string",
|
|
403
|
+
"mutable": false,
|
|
404
|
+
"complexType": {
|
|
405
|
+
"original": "string",
|
|
406
|
+
"resolved": "string",
|
|
407
|
+
"references": {}
|
|
408
|
+
},
|
|
409
|
+
"required": false,
|
|
410
|
+
"optional": false,
|
|
411
|
+
"docs": {
|
|
412
|
+
"tags": [],
|
|
413
|
+
"text": "The name of the control, which is submitted with the form data."
|
|
414
|
+
},
|
|
415
|
+
"getter": false,
|
|
416
|
+
"setter": false,
|
|
417
|
+
"reflect": true,
|
|
418
|
+
"attribute": "name",
|
|
419
|
+
"defaultValue": "this.dateId"
|
|
420
|
+
},
|
|
421
|
+
"label": {
|
|
422
|
+
"type": "string",
|
|
423
|
+
"mutable": false,
|
|
424
|
+
"complexType": {
|
|
425
|
+
"original": "string",
|
|
426
|
+
"resolved": "string",
|
|
427
|
+
"references": {}
|
|
428
|
+
},
|
|
429
|
+
"required": false,
|
|
430
|
+
"optional": false,
|
|
431
|
+
"docs": {
|
|
432
|
+
"tags": [],
|
|
433
|
+
"text": "The label of the date input, which is displayed above the field."
|
|
434
|
+
},
|
|
435
|
+
"getter": false,
|
|
436
|
+
"setter": false,
|
|
437
|
+
"reflect": false,
|
|
438
|
+
"attribute": "label",
|
|
439
|
+
"defaultValue": "''"
|
|
440
|
+
},
|
|
441
|
+
"description": {
|
|
442
|
+
"type": "string",
|
|
443
|
+
"mutable": false,
|
|
444
|
+
"complexType": {
|
|
445
|
+
"original": "string",
|
|
446
|
+
"resolved": "string",
|
|
447
|
+
"references": {}
|
|
448
|
+
},
|
|
449
|
+
"required": false,
|
|
450
|
+
"optional": false,
|
|
451
|
+
"docs": {
|
|
452
|
+
"tags": [],
|
|
453
|
+
"text": "The description of the date input, which is displayed below the field."
|
|
454
|
+
},
|
|
455
|
+
"getter": false,
|
|
456
|
+
"setter": false,
|
|
457
|
+
"reflect": false,
|
|
458
|
+
"attribute": "description",
|
|
459
|
+
"defaultValue": "''"
|
|
460
|
+
},
|
|
461
|
+
"color": {
|
|
462
|
+
"type": "string",
|
|
463
|
+
"mutable": false,
|
|
464
|
+
"complexType": {
|
|
465
|
+
"original": "DateColor",
|
|
466
|
+
"resolved": "\"\" | \"danger\" | \"primary\" | \"success\" | \"warning\"",
|
|
467
|
+
"references": {
|
|
468
|
+
"DateColor": {
|
|
469
|
+
"location": "import",
|
|
470
|
+
"path": "./date.interfaces",
|
|
471
|
+
"id": "src/components/date/date.interfaces.ts::DateColor",
|
|
472
|
+
"referenceLocation": "DateColor"
|
|
473
|
+
}
|
|
474
|
+
}
|
|
475
|
+
},
|
|
476
|
+
"required": false,
|
|
477
|
+
"optional": false,
|
|
478
|
+
"docs": {
|
|
479
|
+
"tags": [],
|
|
480
|
+
"text": "Defines the color of the date input. The default value is `primary`."
|
|
481
|
+
},
|
|
482
|
+
"getter": false,
|
|
483
|
+
"setter": false,
|
|
484
|
+
"reflect": false,
|
|
485
|
+
"attribute": "color",
|
|
486
|
+
"defaultValue": "'primary'"
|
|
487
|
+
},
|
|
488
|
+
"invalid": {
|
|
489
|
+
"type": "boolean",
|
|
490
|
+
"mutable": false,
|
|
491
|
+
"complexType": {
|
|
492
|
+
"original": "boolean",
|
|
493
|
+
"resolved": "boolean",
|
|
494
|
+
"references": {}
|
|
495
|
+
},
|
|
496
|
+
"required": false,
|
|
497
|
+
"optional": false,
|
|
498
|
+
"docs": {
|
|
499
|
+
"tags": [],
|
|
500
|
+
"text": "If `true` the component gets an invalid style."
|
|
501
|
+
},
|
|
502
|
+
"getter": false,
|
|
503
|
+
"setter": false,
|
|
504
|
+
"reflect": false,
|
|
505
|
+
"attribute": "invalid",
|
|
506
|
+
"defaultValue": "false"
|
|
507
|
+
},
|
|
508
|
+
"invalidText": {
|
|
509
|
+
"type": "string",
|
|
510
|
+
"mutable": false,
|
|
511
|
+
"complexType": {
|
|
512
|
+
"original": "string",
|
|
513
|
+
"resolved": "string",
|
|
514
|
+
"references": {}
|
|
515
|
+
},
|
|
516
|
+
"required": false,
|
|
517
|
+
"optional": false,
|
|
518
|
+
"docs": {
|
|
519
|
+
"tags": [],
|
|
520
|
+
"text": "The text to display when the input is in an invalid state."
|
|
521
|
+
},
|
|
522
|
+
"getter": false,
|
|
523
|
+
"setter": false,
|
|
524
|
+
"reflect": false,
|
|
525
|
+
"attribute": "invalid-text",
|
|
526
|
+
"defaultValue": "''"
|
|
527
|
+
},
|
|
528
|
+
"required": {
|
|
529
|
+
"type": "boolean",
|
|
530
|
+
"mutable": false,
|
|
531
|
+
"complexType": {
|
|
532
|
+
"original": "boolean",
|
|
533
|
+
"resolved": "boolean",
|
|
534
|
+
"references": {}
|
|
535
|
+
},
|
|
536
|
+
"required": false,
|
|
537
|
+
"optional": false,
|
|
538
|
+
"docs": {
|
|
539
|
+
"tags": [],
|
|
540
|
+
"text": "If `true`, the user must fill in a value before submitting a form."
|
|
541
|
+
},
|
|
542
|
+
"getter": false,
|
|
543
|
+
"setter": false,
|
|
544
|
+
"reflect": false,
|
|
545
|
+
"attribute": "required",
|
|
546
|
+
"defaultValue": "true"
|
|
547
|
+
},
|
|
548
|
+
"disabled": {
|
|
549
|
+
"type": "boolean",
|
|
550
|
+
"mutable": false,
|
|
551
|
+
"complexType": {
|
|
552
|
+
"original": "boolean",
|
|
553
|
+
"resolved": "boolean",
|
|
554
|
+
"references": {}
|
|
555
|
+
},
|
|
556
|
+
"required": false,
|
|
557
|
+
"optional": false,
|
|
558
|
+
"docs": {
|
|
559
|
+
"tags": [],
|
|
560
|
+
"text": "If `true`, the element is not mutable, focusable, or even submitted with the form."
|
|
561
|
+
},
|
|
562
|
+
"getter": false,
|
|
563
|
+
"setter": false,
|
|
564
|
+
"reflect": false,
|
|
565
|
+
"attribute": "disabled",
|
|
566
|
+
"defaultValue": "false"
|
|
567
|
+
},
|
|
568
|
+
"readonly": {
|
|
569
|
+
"type": "boolean",
|
|
570
|
+
"mutable": false,
|
|
571
|
+
"complexType": {
|
|
572
|
+
"original": "boolean",
|
|
573
|
+
"resolved": "boolean",
|
|
574
|
+
"references": {}
|
|
575
|
+
},
|
|
576
|
+
"required": false,
|
|
577
|
+
"optional": false,
|
|
578
|
+
"docs": {
|
|
579
|
+
"tags": [],
|
|
580
|
+
"text": "If `true` the element can not be mutated, meaning the user can not edit the control."
|
|
581
|
+
},
|
|
582
|
+
"getter": false,
|
|
583
|
+
"setter": false,
|
|
584
|
+
"reflect": false,
|
|
585
|
+
"attribute": "readonly",
|
|
586
|
+
"defaultValue": "false"
|
|
587
|
+
},
|
|
588
|
+
"placeholder": {
|
|
589
|
+
"type": "string",
|
|
590
|
+
"mutable": false,
|
|
591
|
+
"complexType": {
|
|
592
|
+
"original": "string",
|
|
593
|
+
"resolved": "string",
|
|
594
|
+
"references": {}
|
|
595
|
+
},
|
|
596
|
+
"required": false,
|
|
597
|
+
"optional": false,
|
|
598
|
+
"docs": {
|
|
599
|
+
"tags": [],
|
|
600
|
+
"text": "Instructional text that shows before the input has a value."
|
|
601
|
+
},
|
|
602
|
+
"getter": false,
|
|
603
|
+
"setter": false,
|
|
604
|
+
"reflect": false,
|
|
605
|
+
"attribute": "placeholder",
|
|
606
|
+
"defaultValue": "''"
|
|
607
|
+
},
|
|
608
|
+
"autofocus": {
|
|
609
|
+
"type": "boolean",
|
|
610
|
+
"mutable": false,
|
|
611
|
+
"complexType": {
|
|
612
|
+
"original": "boolean",
|
|
613
|
+
"resolved": "boolean",
|
|
614
|
+
"references": {}
|
|
615
|
+
},
|
|
616
|
+
"required": false,
|
|
617
|
+
"optional": false,
|
|
618
|
+
"docs": {
|
|
619
|
+
"tags": [],
|
|
620
|
+
"text": "This Boolean attribute lets you specify that the control should have input focus when the page loads."
|
|
621
|
+
},
|
|
622
|
+
"getter": false,
|
|
623
|
+
"setter": false,
|
|
624
|
+
"reflect": false,
|
|
625
|
+
"attribute": "autofocus",
|
|
626
|
+
"defaultValue": "false"
|
|
627
|
+
},
|
|
628
|
+
"autocomplete": {
|
|
629
|
+
"type": "string",
|
|
630
|
+
"mutable": false,
|
|
631
|
+
"complexType": {
|
|
632
|
+
"original": "InputAutocomplete",
|
|
633
|
+
"resolved": "\"\" | \"additional-name\" | \"address-level1\" | \"address-level2\" | \"address-level3\" | \"address-level4\" | \"address-line1\" | \"address-line2\" | \"address-line3\" | \"bday\" | \"bday-day\" | \"bday-month\" | \"bday-year\" | \"cc-additional-name\" | \"cc-csc\" | \"cc-exp\" | \"cc-exp-month\" | \"cc-exp-year\" | \"cc-family-name\" | \"cc-given-name\" | \"cc-name\" | \"cc-number\" | \"cc-type\" | \"country\" | \"country-name\" | \"current-password\" | \"email\" | \"family-name\" | \"given-name\" | \"honorific-prefix\" | \"honorific-suffix\" | \"impp\" | \"language\" | \"name\" | \"new-password\" | \"nickname\" | \"off\" | \"on\" | \"one-time-code\" | \"organization\" | \"organization-title\" | \"photo\" | \"postal-code\" | \"sex\" | \"street-address\" | \"tel\" | \"tel-area-code\" | \"tel-country-code\" | \"tel-extension\" | \"tel-local\" | \"tel-national\" | \"transaction-amount\" | \"transaction-currency\" | \"url\" | \"username\"",
|
|
634
|
+
"references": {
|
|
635
|
+
"InputAutocomplete": {
|
|
636
|
+
"location": "import",
|
|
637
|
+
"path": "../input/input.interfaces",
|
|
638
|
+
"id": "src/components/input/input.interfaces.ts::InputAutocomplete",
|
|
639
|
+
"referenceLocation": "InputAutocomplete"
|
|
640
|
+
}
|
|
641
|
+
}
|
|
642
|
+
},
|
|
643
|
+
"required": false,
|
|
644
|
+
"optional": false,
|
|
645
|
+
"docs": {
|
|
646
|
+
"tags": [],
|
|
647
|
+
"text": "Indicates whether the value of the control can be automatically completed by the browser."
|
|
648
|
+
},
|
|
649
|
+
"getter": false,
|
|
650
|
+
"setter": false,
|
|
651
|
+
"reflect": false,
|
|
652
|
+
"attribute": "autocomplete",
|
|
653
|
+
"defaultValue": "'off'"
|
|
654
|
+
},
|
|
655
|
+
"debounce": {
|
|
656
|
+
"type": "number",
|
|
657
|
+
"mutable": false,
|
|
658
|
+
"complexType": {
|
|
659
|
+
"original": "number",
|
|
660
|
+
"resolved": "number",
|
|
661
|
+
"references": {}
|
|
662
|
+
},
|
|
663
|
+
"required": false,
|
|
664
|
+
"optional": false,
|
|
665
|
+
"docs": {
|
|
666
|
+
"tags": [],
|
|
667
|
+
"text": "Set the amount of time, in milliseconds, to wait to trigger the `dsChange` event after each keystroke."
|
|
668
|
+
},
|
|
669
|
+
"getter": false,
|
|
670
|
+
"setter": false,
|
|
671
|
+
"reflect": false,
|
|
672
|
+
"attribute": "debounce",
|
|
673
|
+
"defaultValue": "0"
|
|
674
|
+
},
|
|
675
|
+
"autoInvalidOff": {
|
|
676
|
+
"type": "boolean",
|
|
677
|
+
"mutable": false,
|
|
678
|
+
"complexType": {
|
|
679
|
+
"original": "boolean",
|
|
680
|
+
"resolved": "boolean",
|
|
681
|
+
"references": {}
|
|
682
|
+
},
|
|
683
|
+
"required": false,
|
|
684
|
+
"optional": false,
|
|
685
|
+
"docs": {
|
|
686
|
+
"tags": [],
|
|
687
|
+
"text": "If `true`, in Angular reactive forms the control will not be set invalid."
|
|
688
|
+
},
|
|
689
|
+
"getter": false,
|
|
690
|
+
"setter": false,
|
|
691
|
+
"reflect": true,
|
|
692
|
+
"attribute": "auto-invalid-off",
|
|
693
|
+
"defaultValue": "false"
|
|
694
|
+
},
|
|
695
|
+
"loading": {
|
|
696
|
+
"type": "boolean",
|
|
697
|
+
"mutable": false,
|
|
698
|
+
"complexType": {
|
|
699
|
+
"original": "boolean",
|
|
700
|
+
"resolved": "boolean",
|
|
701
|
+
"references": {}
|
|
702
|
+
},
|
|
703
|
+
"required": false,
|
|
704
|
+
"optional": false,
|
|
705
|
+
"docs": {
|
|
706
|
+
"tags": [],
|
|
707
|
+
"text": "Shows a loading indicator at the end of the input and replaces the trigger button."
|
|
708
|
+
},
|
|
709
|
+
"getter": false,
|
|
710
|
+
"setter": false,
|
|
711
|
+
"reflect": false,
|
|
712
|
+
"attribute": "loading",
|
|
713
|
+
"defaultValue": "false"
|
|
714
|
+
},
|
|
715
|
+
"min": {
|
|
716
|
+
"type": "string",
|
|
717
|
+
"mutable": false,
|
|
718
|
+
"complexType": {
|
|
719
|
+
"original": "string | undefined",
|
|
720
|
+
"resolved": "string | undefined",
|
|
721
|
+
"references": {}
|
|
722
|
+
},
|
|
723
|
+
"required": false,
|
|
724
|
+
"optional": false,
|
|
725
|
+
"docs": {
|
|
726
|
+
"tags": [],
|
|
727
|
+
"text": "The minimum ISO date string allowed (YYYY-MM-DD). Dates before this are disabled in the calendar and rejected from typed input."
|
|
728
|
+
},
|
|
729
|
+
"getter": false,
|
|
730
|
+
"setter": false,
|
|
731
|
+
"reflect": false,
|
|
732
|
+
"attribute": "min",
|
|
733
|
+
"defaultValue": "undefined"
|
|
734
|
+
},
|
|
735
|
+
"max": {
|
|
736
|
+
"type": "string",
|
|
737
|
+
"mutable": false,
|
|
738
|
+
"complexType": {
|
|
739
|
+
"original": "string | undefined",
|
|
740
|
+
"resolved": "string | undefined",
|
|
741
|
+
"references": {}
|
|
742
|
+
},
|
|
743
|
+
"required": false,
|
|
744
|
+
"optional": false,
|
|
745
|
+
"docs": {
|
|
746
|
+
"tags": [],
|
|
747
|
+
"text": "The maximum ISO date string allowed (YYYY-MM-DD). Dates after this are disabled in the calendar and rejected from typed input."
|
|
748
|
+
},
|
|
749
|
+
"getter": false,
|
|
750
|
+
"setter": false,
|
|
751
|
+
"reflect": false,
|
|
752
|
+
"attribute": "max",
|
|
753
|
+
"defaultValue": "undefined"
|
|
754
|
+
},
|
|
755
|
+
"minYearProp": {
|
|
756
|
+
"type": "number",
|
|
757
|
+
"mutable": false,
|
|
758
|
+
"complexType": {
|
|
759
|
+
"original": "number | undefined",
|
|
760
|
+
"resolved": "number | undefined",
|
|
761
|
+
"references": {}
|
|
762
|
+
},
|
|
763
|
+
"required": false,
|
|
764
|
+
"optional": false,
|
|
765
|
+
"docs": {
|
|
766
|
+
"tags": [],
|
|
767
|
+
"text": "Earliest year available for selection. Takes precedence over `min` when both are set."
|
|
768
|
+
},
|
|
769
|
+
"getter": false,
|
|
770
|
+
"setter": false,
|
|
771
|
+
"reflect": false,
|
|
772
|
+
"attribute": "min-year",
|
|
773
|
+
"defaultValue": "undefined"
|
|
774
|
+
},
|
|
775
|
+
"maxYearProp": {
|
|
776
|
+
"type": "number",
|
|
777
|
+
"mutable": false,
|
|
778
|
+
"complexType": {
|
|
779
|
+
"original": "number | undefined",
|
|
780
|
+
"resolved": "number | undefined",
|
|
781
|
+
"references": {}
|
|
782
|
+
},
|
|
783
|
+
"required": false,
|
|
784
|
+
"optional": false,
|
|
785
|
+
"docs": {
|
|
786
|
+
"tags": [],
|
|
787
|
+
"text": "Latest year available for selection. Takes precedence over `max` when both are set."
|
|
788
|
+
},
|
|
789
|
+
"getter": false,
|
|
790
|
+
"setter": false,
|
|
791
|
+
"reflect": false,
|
|
792
|
+
"attribute": "max-year",
|
|
793
|
+
"defaultValue": "undefined"
|
|
794
|
+
},
|
|
795
|
+
"defaultDate": {
|
|
796
|
+
"type": "string",
|
|
797
|
+
"mutable": false,
|
|
798
|
+
"complexType": {
|
|
799
|
+
"original": "string | undefined",
|
|
800
|
+
"resolved": "string | undefined",
|
|
801
|
+
"references": {}
|
|
802
|
+
},
|
|
803
|
+
"required": false,
|
|
804
|
+
"optional": false,
|
|
805
|
+
"docs": {
|
|
806
|
+
"tags": [],
|
|
807
|
+
"text": "The ISO date string (YYYY-MM-DD) where the calendar opens when no value is set.\nThe date is not selected \u2014 only the view navigates to it."
|
|
808
|
+
},
|
|
809
|
+
"getter": false,
|
|
810
|
+
"setter": false,
|
|
811
|
+
"reflect": false,
|
|
812
|
+
"attribute": "default-date",
|
|
813
|
+
"defaultValue": "undefined"
|
|
814
|
+
},
|
|
815
|
+
"freeSolo": {
|
|
816
|
+
"type": "boolean",
|
|
817
|
+
"mutable": false,
|
|
818
|
+
"complexType": {
|
|
819
|
+
"original": "boolean",
|
|
820
|
+
"resolved": "boolean",
|
|
821
|
+
"references": {}
|
|
822
|
+
},
|
|
823
|
+
"required": false,
|
|
824
|
+
"optional": false,
|
|
825
|
+
"docs": {
|
|
826
|
+
"tags": [],
|
|
827
|
+
"text": "If `true`, the calendar trigger icon and popup are hidden. The component behaves as a plain masked text input with no date picker UX."
|
|
828
|
+
},
|
|
829
|
+
"getter": false,
|
|
830
|
+
"setter": false,
|
|
831
|
+
"reflect": false,
|
|
832
|
+
"attribute": "free-solo",
|
|
833
|
+
"defaultValue": "false"
|
|
834
|
+
},
|
|
835
|
+
"allowedDates": {
|
|
836
|
+
"type": "unknown",
|
|
837
|
+
"mutable": false,
|
|
838
|
+
"complexType": {
|
|
839
|
+
"original": "((dateString: string) => boolean) | undefined",
|
|
840
|
+
"resolved": "((dateString: string) => boolean) | undefined",
|
|
841
|
+
"references": {}
|
|
842
|
+
},
|
|
843
|
+
"required": false,
|
|
844
|
+
"optional": false,
|
|
845
|
+
"docs": {
|
|
846
|
+
"tags": [],
|
|
847
|
+
"text": "Callback to determine which dates in the calendar are selectable.\nReceives an ISO date string (YYYY-MM-DD) and should return `true` to allow the date or `false` to disable it.\nTyped input that resolves to a disallowed date is also rejected."
|
|
848
|
+
},
|
|
849
|
+
"getter": false,
|
|
850
|
+
"setter": false,
|
|
851
|
+
"defaultValue": "undefined"
|
|
852
|
+
}
|
|
853
|
+
};
|
|
854
|
+
}
|
|
855
|
+
static get states() {
|
|
856
|
+
return {
|
|
857
|
+
"focused": {},
|
|
858
|
+
"language": {},
|
|
859
|
+
"region": {},
|
|
860
|
+
"isOpen": {}
|
|
861
|
+
};
|
|
862
|
+
}
|
|
863
|
+
static get events() {
|
|
864
|
+
return [{
|
|
865
|
+
"method": "dsBlur",
|
|
866
|
+
"name": "dsBlur",
|
|
867
|
+
"bubbles": true,
|
|
868
|
+
"cancelable": true,
|
|
869
|
+
"composed": true,
|
|
870
|
+
"docs": {
|
|
871
|
+
"tags": [],
|
|
872
|
+
"text": "Emitted when the input loses focus."
|
|
873
|
+
},
|
|
874
|
+
"complexType": {
|
|
875
|
+
"original": "DateBlurDetail",
|
|
876
|
+
"resolved": "FocusEvent",
|
|
877
|
+
"references": {
|
|
878
|
+
"DateBlurDetail": {
|
|
879
|
+
"location": "import",
|
|
880
|
+
"path": "./date.interfaces",
|
|
881
|
+
"id": "src/components/date/date.interfaces.ts::DateBlurDetail",
|
|
882
|
+
"referenceLocation": "DateBlurDetail"
|
|
883
|
+
}
|
|
884
|
+
}
|
|
885
|
+
}
|
|
886
|
+
}, {
|
|
887
|
+
"method": "dsKeyPress",
|
|
888
|
+
"name": "dsKeyPress",
|
|
889
|
+
"bubbles": true,
|
|
890
|
+
"cancelable": true,
|
|
891
|
+
"composed": true,
|
|
892
|
+
"docs": {
|
|
893
|
+
"tags": [],
|
|
894
|
+
"text": "Emitted when a keyboard key has been pressed."
|
|
895
|
+
},
|
|
896
|
+
"complexType": {
|
|
897
|
+
"original": "DateKeyPressDetail",
|
|
898
|
+
"resolved": "KeyboardEvent",
|
|
899
|
+
"references": {
|
|
900
|
+
"DateKeyPressDetail": {
|
|
901
|
+
"location": "import",
|
|
902
|
+
"path": "./date.interfaces",
|
|
903
|
+
"id": "src/components/date/date.interfaces.ts::DateKeyPressDetail",
|
|
904
|
+
"referenceLocation": "DateKeyPressDetail"
|
|
905
|
+
}
|
|
906
|
+
}
|
|
907
|
+
}
|
|
908
|
+
}, {
|
|
909
|
+
"method": "dsFocus",
|
|
910
|
+
"name": "dsFocus",
|
|
911
|
+
"bubbles": true,
|
|
912
|
+
"cancelable": true,
|
|
913
|
+
"composed": true,
|
|
914
|
+
"docs": {
|
|
915
|
+
"tags": [],
|
|
916
|
+
"text": "Emitted when the input receives focus."
|
|
917
|
+
},
|
|
918
|
+
"complexType": {
|
|
919
|
+
"original": "DateFocusDetail",
|
|
920
|
+
"resolved": "FocusEvent",
|
|
921
|
+
"references": {
|
|
922
|
+
"DateFocusDetail": {
|
|
923
|
+
"location": "import",
|
|
924
|
+
"path": "./date.interfaces",
|
|
925
|
+
"id": "src/components/date/date.interfaces.ts::DateFocusDetail",
|
|
926
|
+
"referenceLocation": "DateFocusDetail"
|
|
927
|
+
}
|
|
928
|
+
}
|
|
929
|
+
}
|
|
930
|
+
}, {
|
|
931
|
+
"method": "dsClick",
|
|
932
|
+
"name": "dsClick",
|
|
933
|
+
"bubbles": true,
|
|
934
|
+
"cancelable": true,
|
|
935
|
+
"composed": true,
|
|
936
|
+
"docs": {
|
|
937
|
+
"tags": [],
|
|
938
|
+
"text": "Emitted when the input is clicked."
|
|
939
|
+
},
|
|
940
|
+
"complexType": {
|
|
941
|
+
"original": "DateClickDetail",
|
|
942
|
+
"resolved": "MouseEvent",
|
|
943
|
+
"references": {
|
|
944
|
+
"DateClickDetail": {
|
|
945
|
+
"location": "import",
|
|
946
|
+
"path": "./date.interfaces",
|
|
947
|
+
"id": "src/components/date/date.interfaces.ts::DateClickDetail",
|
|
948
|
+
"referenceLocation": "DateClickDetail"
|
|
949
|
+
}
|
|
950
|
+
}
|
|
951
|
+
}
|
|
952
|
+
}, {
|
|
953
|
+
"method": "dsInput",
|
|
954
|
+
"name": "dsInput",
|
|
955
|
+
"bubbles": true,
|
|
956
|
+
"cancelable": true,
|
|
957
|
+
"composed": true,
|
|
958
|
+
"docs": {
|
|
959
|
+
"tags": [],
|
|
960
|
+
"text": "Emitted when a keyboard input occurred (ISO value or null if incomplete)."
|
|
961
|
+
},
|
|
962
|
+
"complexType": {
|
|
963
|
+
"original": "DateInputDetail",
|
|
964
|
+
"resolved": "null | string",
|
|
965
|
+
"references": {
|
|
966
|
+
"DateInputDetail": {
|
|
967
|
+
"location": "import",
|
|
968
|
+
"path": "./date.interfaces",
|
|
969
|
+
"id": "src/components/date/date.interfaces.ts::DateInputDetail",
|
|
970
|
+
"referenceLocation": "DateInputDetail"
|
|
971
|
+
}
|
|
972
|
+
}
|
|
973
|
+
}
|
|
974
|
+
}, {
|
|
975
|
+
"method": "dsChange",
|
|
976
|
+
"name": "dsChange",
|
|
977
|
+
"bubbles": true,
|
|
978
|
+
"cancelable": true,
|
|
979
|
+
"composed": true,
|
|
980
|
+
"docs": {
|
|
981
|
+
"tags": [],
|
|
982
|
+
"text": "Emitted when the date value has changed (ISO value or null)."
|
|
983
|
+
},
|
|
984
|
+
"complexType": {
|
|
985
|
+
"original": "DateChangeDetail",
|
|
986
|
+
"resolved": "null | string",
|
|
987
|
+
"references": {
|
|
988
|
+
"DateChangeDetail": {
|
|
989
|
+
"location": "import",
|
|
990
|
+
"path": "./date.interfaces",
|
|
991
|
+
"id": "src/components/date/date.interfaces.ts::DateChangeDetail",
|
|
992
|
+
"referenceLocation": "DateChangeDetail"
|
|
993
|
+
}
|
|
994
|
+
}
|
|
995
|
+
}
|
|
996
|
+
}];
|
|
997
|
+
}
|
|
998
|
+
static get methods() {
|
|
999
|
+
return {
|
|
1000
|
+
"configChanged": {
|
|
1001
|
+
"complexType": {
|
|
1002
|
+
"signature": "(state: DsConfigState) => Promise<void>",
|
|
1003
|
+
"parameters": [{
|
|
1004
|
+
"name": "state",
|
|
1005
|
+
"type": "DsConfigState",
|
|
1006
|
+
"docs": ""
|
|
1007
|
+
}],
|
|
1008
|
+
"references": {
|
|
1009
|
+
"Promise": {
|
|
1010
|
+
"location": "global",
|
|
1011
|
+
"id": "global::Promise"
|
|
1012
|
+
},
|
|
1013
|
+
"DsConfigState": {
|
|
1014
|
+
"location": "import",
|
|
1015
|
+
"path": "@global",
|
|
1016
|
+
"id": "src/global/index.ts::DsConfigState",
|
|
1017
|
+
"referenceLocation": "DsConfigState"
|
|
1018
|
+
}
|
|
1019
|
+
},
|
|
1020
|
+
"return": "Promise<void>"
|
|
1021
|
+
},
|
|
1022
|
+
"docs": {
|
|
1023
|
+
"text": "",
|
|
1024
|
+
"tags": [{
|
|
1025
|
+
"name": "internal",
|
|
1026
|
+
"text": "define config for the component"
|
|
1027
|
+
}]
|
|
1028
|
+
}
|
|
1029
|
+
},
|
|
1030
|
+
"setFocus": {
|
|
1031
|
+
"complexType": {
|
|
1032
|
+
"signature": "() => Promise<void>",
|
|
1033
|
+
"parameters": [],
|
|
1034
|
+
"references": {
|
|
1035
|
+
"Promise": {
|
|
1036
|
+
"location": "global",
|
|
1037
|
+
"id": "global::Promise"
|
|
1038
|
+
}
|
|
1039
|
+
},
|
|
1040
|
+
"return": "Promise<void>"
|
|
1041
|
+
},
|
|
1042
|
+
"docs": {
|
|
1043
|
+
"text": "Sets focus on the native `input` in `ds-date`.",
|
|
1044
|
+
"tags": []
|
|
1045
|
+
}
|
|
1046
|
+
},
|
|
1047
|
+
"setBlur": {
|
|
1048
|
+
"complexType": {
|
|
1049
|
+
"signature": "() => Promise<void>",
|
|
1050
|
+
"parameters": [],
|
|
1051
|
+
"references": {
|
|
1052
|
+
"Promise": {
|
|
1053
|
+
"location": "global",
|
|
1054
|
+
"id": "global::Promise"
|
|
1055
|
+
}
|
|
1056
|
+
},
|
|
1057
|
+
"return": "Promise<void>"
|
|
1058
|
+
},
|
|
1059
|
+
"docs": {
|
|
1060
|
+
"text": "Sets blur on the native `input` in `ds-date`.",
|
|
1061
|
+
"tags": [{
|
|
1062
|
+
"name": "internal",
|
|
1063
|
+
"text": undefined
|
|
1064
|
+
}]
|
|
1065
|
+
}
|
|
1066
|
+
},
|
|
1067
|
+
"getInputElement": {
|
|
1068
|
+
"complexType": {
|
|
1069
|
+
"signature": "() => Promise<HTMLInputElement>",
|
|
1070
|
+
"parameters": [],
|
|
1071
|
+
"references": {
|
|
1072
|
+
"Promise": {
|
|
1073
|
+
"location": "global",
|
|
1074
|
+
"id": "global::Promise"
|
|
1075
|
+
},
|
|
1076
|
+
"HTMLInputElement": {
|
|
1077
|
+
"location": "global",
|
|
1078
|
+
"id": "global::HTMLInputElement"
|
|
1079
|
+
}
|
|
1080
|
+
},
|
|
1081
|
+
"return": "Promise<HTMLInputElement>"
|
|
1082
|
+
},
|
|
1083
|
+
"docs": {
|
|
1084
|
+
"text": "Returns the native `<input>` element used under the hood.",
|
|
1085
|
+
"tags": []
|
|
1086
|
+
}
|
|
1087
|
+
}
|
|
1088
|
+
};
|
|
1089
|
+
}
|
|
1090
|
+
static get elementRef() { return "el"; }
|
|
1091
|
+
static get watchers() {
|
|
1092
|
+
return [{
|
|
1093
|
+
"propName": "isOpen",
|
|
1094
|
+
"methodName": "isOpenChanged"
|
|
1095
|
+
}, {
|
|
1096
|
+
"propName": "value",
|
|
1097
|
+
"methodName": "valueChanged"
|
|
1098
|
+
}, {
|
|
1099
|
+
"propName": "debounce",
|
|
1100
|
+
"methodName": "debounceChanged"
|
|
1101
|
+
}, {
|
|
1102
|
+
"propName": "freeSolo",
|
|
1103
|
+
"methodName": "freeSoloChanged"
|
|
1104
|
+
}, {
|
|
1105
|
+
"propName": "min",
|
|
1106
|
+
"methodName": "minChanged"
|
|
1107
|
+
}, {
|
|
1108
|
+
"propName": "minYearProp",
|
|
1109
|
+
"methodName": "minChanged"
|
|
1110
|
+
}, {
|
|
1111
|
+
"propName": "max",
|
|
1112
|
+
"methodName": "maxChanged"
|
|
1113
|
+
}, {
|
|
1114
|
+
"propName": "maxYearProp",
|
|
1115
|
+
"methodName": "maxChanged"
|
|
1116
|
+
}];
|
|
1117
|
+
}
|
|
1118
|
+
static get listeners() {
|
|
1119
|
+
return [{
|
|
1120
|
+
"name": "click",
|
|
1121
|
+
"method": "listenToClick",
|
|
1122
|
+
"target": "document",
|
|
1123
|
+
"capture": true,
|
|
1124
|
+
"passive": false
|
|
1125
|
+
}, {
|
|
1126
|
+
"name": "keydown",
|
|
1127
|
+
"method": "listenToKeyDown",
|
|
1128
|
+
"target": "document",
|
|
1129
|
+
"capture": false,
|
|
1130
|
+
"passive": false
|
|
1131
|
+
}, {
|
|
1132
|
+
"name": "reset",
|
|
1133
|
+
"method": "listenToReset",
|
|
1134
|
+
"target": "document",
|
|
1135
|
+
"capture": true,
|
|
1136
|
+
"passive": false
|
|
1137
|
+
}];
|
|
1138
|
+
}
|
|
1139
|
+
static get attachInternalsMemberName() { return "internals"; }
|
|
1140
|
+
}
|
|
1141
|
+
__decorate([
|
|
1142
|
+
Logger('date'),
|
|
1143
|
+
__metadata("design:type", Function),
|
|
1144
|
+
__metadata("design:paramtypes", [Function]),
|
|
1145
|
+
__metadata("design:returntype", void 0)
|
|
1146
|
+
], DsDate.prototype, "createLogger", null);
|
|
1147
|
+
__decorate([
|
|
1148
|
+
Type('string'),
|
|
1149
|
+
__metadata("design:type", Object)
|
|
1150
|
+
], DsDate.prototype, "value", void 0);
|
|
1151
|
+
__decorate([
|
|
1152
|
+
Type('string'),
|
|
1153
|
+
__metadata("design:type", String)
|
|
1154
|
+
], DsDate.prototype, "name", void 0);
|
|
1155
|
+
__decorate([
|
|
1156
|
+
Type('string'),
|
|
1157
|
+
__metadata("design:type", String)
|
|
1158
|
+
], DsDate.prototype, "label", void 0);
|
|
1159
|
+
__decorate([
|
|
1160
|
+
Type('string'),
|
|
1161
|
+
__metadata("design:type", String)
|
|
1162
|
+
], DsDate.prototype, "description", void 0);
|
|
1163
|
+
__decorate([
|
|
1164
|
+
OneOf(DATE_COLORS),
|
|
1165
|
+
__metadata("design:type", String)
|
|
1166
|
+
], DsDate.prototype, "color", void 0);
|
|
1167
|
+
__decorate([
|
|
1168
|
+
Type('boolean'),
|
|
1169
|
+
__metadata("design:type", Boolean)
|
|
1170
|
+
], DsDate.prototype, "invalid", void 0);
|
|
1171
|
+
__decorate([
|
|
1172
|
+
Type('string'),
|
|
1173
|
+
__metadata("design:type", String)
|
|
1174
|
+
], DsDate.prototype, "invalidText", void 0);
|
|
1175
|
+
__decorate([
|
|
1176
|
+
Type('boolean'),
|
|
1177
|
+
__metadata("design:type", Boolean)
|
|
1178
|
+
], DsDate.prototype, "required", void 0);
|
|
1179
|
+
__decorate([
|
|
1180
|
+
Type('boolean'),
|
|
1181
|
+
__metadata("design:type", Boolean)
|
|
1182
|
+
], DsDate.prototype, "disabled", void 0);
|
|
1183
|
+
__decorate([
|
|
1184
|
+
Type('boolean'),
|
|
1185
|
+
__metadata("design:type", Boolean)
|
|
1186
|
+
], DsDate.prototype, "readonly", void 0);
|
|
1187
|
+
__decorate([
|
|
1188
|
+
Type('string'),
|
|
1189
|
+
__metadata("design:type", String)
|
|
1190
|
+
], DsDate.prototype, "placeholder", void 0);
|
|
1191
|
+
__decorate([
|
|
1192
|
+
Type('boolean'),
|
|
1193
|
+
__metadata("design:type", Boolean)
|
|
1194
|
+
], DsDate.prototype, "autofocus", void 0);
|
|
1195
|
+
__decorate([
|
|
1196
|
+
OneOf(INPUT_AUTOCOMPLETES),
|
|
1197
|
+
__metadata("design:type", String)
|
|
1198
|
+
], DsDate.prototype, "autocomplete", void 0);
|
|
1199
|
+
__decorate([
|
|
1200
|
+
Type('number'),
|
|
1201
|
+
__metadata("design:type", Number)
|
|
1202
|
+
], DsDate.prototype, "debounce", void 0);
|
|
1203
|
+
__decorate([
|
|
1204
|
+
Type('boolean'),
|
|
1205
|
+
__metadata("design:type", Boolean)
|
|
1206
|
+
], DsDate.prototype, "autoInvalidOff", void 0);
|
|
1207
|
+
__decorate([
|
|
1208
|
+
Type('boolean'),
|
|
1209
|
+
__metadata("design:type", Boolean)
|
|
1210
|
+
], DsDate.prototype, "loading", void 0);
|
|
1211
|
+
__decorate([
|
|
1212
|
+
Type('string'),
|
|
1213
|
+
__metadata("design:type", Object)
|
|
1214
|
+
], DsDate.prototype, "min", void 0);
|
|
1215
|
+
__decorate([
|
|
1216
|
+
Type('string'),
|
|
1217
|
+
__metadata("design:type", Object)
|
|
1218
|
+
], DsDate.prototype, "max", void 0);
|
|
1219
|
+
__decorate([
|
|
1220
|
+
Type('number'),
|
|
1221
|
+
__metadata("design:type", Object)
|
|
1222
|
+
], DsDate.prototype, "minYearProp", void 0);
|
|
1223
|
+
__decorate([
|
|
1224
|
+
Type('number'),
|
|
1225
|
+
__metadata("design:type", Object)
|
|
1226
|
+
], DsDate.prototype, "maxYearProp", void 0);
|
|
1227
|
+
__decorate([
|
|
1228
|
+
Type('string'),
|
|
1229
|
+
__metadata("design:type", Object)
|
|
1230
|
+
], DsDate.prototype, "defaultDate", void 0);
|
|
1231
|
+
__decorate([
|
|
1232
|
+
Type('boolean'),
|
|
1233
|
+
__metadata("design:type", Boolean)
|
|
1234
|
+
], DsDate.prototype, "freeSolo", void 0);
|
|
1235
|
+
__decorate([
|
|
1236
|
+
ListenToConfig(),
|
|
1237
|
+
__metadata("design:type", Function),
|
|
1238
|
+
__metadata("design:paramtypes", [Object]),
|
|
1239
|
+
__metadata("design:returntype", Promise)
|
|
1240
|
+
], DsDate.prototype, "configChanged", null);
|
|
1241
|
+
let DateIds = 0;
|