@haiilo/catalyst 8.1.0 → 8.2.0
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/dist/catalyst/catalyst.css +4 -9
- package/dist/catalyst/catalyst.esm.js +1 -1
- package/dist/catalyst/catalyst.esm.js.map +1 -1
- package/dist/catalyst/index.esm.js +2 -2
- package/dist/catalyst/{p-85d057f0.js → p-6ae13953.js} +1 -1
- package/dist/catalyst/p-6cd4fa1e.js +3 -0
- package/dist/catalyst/p-6cd4fa1e.js.map +1 -0
- package/dist/catalyst/p-a05fbea3.entry.js +10 -0
- package/dist/catalyst/p-a05fbea3.entry.js.map +1 -0
- package/dist/catalyst/scss/core/_dialog.scss +1 -1
- package/dist/catalyst/scss/core/_form.scss +2 -1
- package/dist/catalyst/scss/core/_typography.scss +1 -7
- package/dist/cjs/cat-alert_26.cjs.entry.js +3899 -3883
- package/dist/cjs/cat-alert_26.cjs.entry.js.map +1 -1
- package/dist/cjs/catalyst.cjs.js +3 -3
- package/dist/cjs/catalyst.cjs.js.map +1 -1
- package/dist/cjs/{index-1e7eef7e.js → index-eb056d5e.js} +51 -13
- package/dist/cjs/index-eb056d5e.js.map +1 -0
- package/dist/cjs/index.cjs.js +73 -73
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{of-395b2f57.js → of-2b7161d2.js} +155 -155
- package/dist/cjs/of-2b7161d2.js.map +1 -0
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/cat-alert/cat-alert.e2e.js +7 -7
- package/dist/collection/components/cat-alert/cat-alert.e2e.js.map +1 -1
- package/dist/collection/components/cat-alert/cat-alert.js +98 -98
- package/dist/collection/components/cat-alert/cat-alert.js.map +1 -1
- package/dist/collection/components/cat-alert/cat-alert.spec.js +7 -7
- package/dist/collection/components/cat-alert/cat-alert.spec.js.map +1 -1
- package/dist/collection/components/cat-avatar/cat-avatar.e2e.js +6 -6
- package/dist/collection/components/cat-avatar/cat-avatar.e2e.js.map +1 -1
- package/dist/collection/components/cat-avatar/cat-avatar.js +218 -218
- package/dist/collection/components/cat-avatar/cat-avatar.js.map +1 -1
- package/dist/collection/components/cat-avatar/cat-avatar.spec.js +7 -7
- package/dist/collection/components/cat-avatar/cat-avatar.spec.js.map +1 -1
- package/dist/collection/components/cat-badge/cat-badge.e2e.js +6 -6
- package/dist/collection/components/cat-badge/cat-badge.e2e.js.map +1 -1
- package/dist/collection/components/cat-badge/cat-badge.js +117 -117
- package/dist/collection/components/cat-badge/cat-badge.js.map +1 -1
- package/dist/collection/components/cat-badge/cat-badge.spec.js +7 -7
- package/dist/collection/components/cat-badge/cat-badge.spec.js.map +1 -1
- package/dist/collection/components/cat-button/cat-button.css +2 -1
- package/dist/collection/components/cat-button/cat-button.e2e.js +6 -6
- package/dist/collection/components/cat-button/cat-button.e2e.js.map +1 -1
- package/dist/collection/components/cat-button/cat-button.js +693 -693
- package/dist/collection/components/cat-button/cat-button.js.map +1 -1
- package/dist/collection/components/cat-button/cat-button.spec.js +7 -7
- package/dist/collection/components/cat-button/cat-button.spec.js.map +1 -1
- package/dist/collection/components/cat-button-group/cat-button-group.e2e.js +6 -6
- package/dist/collection/components/cat-button-group/cat-button-group.e2e.js.map +1 -1
- package/dist/collection/components/cat-button-group/cat-button-group.js +47 -47
- package/dist/collection/components/cat-button-group/cat-button-group.js.map +1 -1
- package/dist/collection/components/cat-button-group/cat-button-group.spec.js +7 -7
- package/dist/collection/components/cat-button-group/cat-button-group.spec.js.map +1 -1
- package/dist/collection/components/cat-card/cat-card.e2e.js +6 -6
- package/dist/collection/components/cat-card/cat-card.e2e.js.map +1 -1
- package/dist/collection/components/cat-card/cat-card.js +15 -15
- package/dist/collection/components/cat-card/cat-card.js.map +1 -1
- package/dist/collection/components/cat-card/cat-card.spec.js +7 -7
- package/dist/collection/components/cat-card/cat-card.spec.js.map +1 -1
- package/dist/collection/components/cat-checkbox/cat-checkbox.css +2 -1
- package/dist/collection/components/cat-checkbox/cat-checkbox.e2e.js +6 -6
- package/dist/collection/components/cat-checkbox/cat-checkbox.e2e.js.map +1 -1
- package/dist/collection/components/cat-checkbox/cat-checkbox.js +441 -441
- package/dist/collection/components/cat-checkbox/cat-checkbox.js.map +1 -1
- package/dist/collection/components/cat-checkbox/cat-checkbox.spec.js +7 -7
- package/dist/collection/components/cat-checkbox/cat-checkbox.spec.js.map +1 -1
- package/dist/collection/components/cat-datepicker/cat-datepicker.config.js +62 -62
- package/dist/collection/components/cat-datepicker/cat-datepicker.config.js.map +1 -1
- package/dist/collection/components/cat-datepicker/cat-datepicker.e2e.js +7 -7
- package/dist/collection/components/cat-datepicker/cat-datepicker.e2e.js.map +1 -1
- package/dist/collection/components/cat-datepicker/cat-datepicker.format.js +20 -20
- package/dist/collection/components/cat-datepicker/cat-datepicker.format.js.map +1 -1
- package/dist/collection/components/cat-datepicker/cat-datepicker.js +720 -707
- package/dist/collection/components/cat-datepicker/cat-datepicker.js.map +1 -1
- package/dist/collection/components/cat-datepicker/cat-datepicker.locale.js +39 -39
- package/dist/collection/components/cat-datepicker/cat-datepicker.locale.js.map +1 -1
- package/dist/collection/components/cat-datepicker/cat-datepicker.spec.js +7 -7
- package/dist/collection/components/cat-datepicker/cat-datepicker.spec.js.map +1 -1
- package/dist/collection/components/cat-datepicker-inline/cat-datepicker-inline.e2e.js +7 -7
- package/dist/collection/components/cat-datepicker-inline/cat-datepicker-inline.e2e.js.map +1 -1
- package/dist/collection/components/cat-datepicker-inline/cat-datepicker-inline.js +244 -244
- package/dist/collection/components/cat-datepicker-inline/cat-datepicker-inline.js.map +1 -1
- package/dist/collection/components/cat-datepicker-inline/cat-datepicker-inline.spec.js +7 -7
- package/dist/collection/components/cat-datepicker-inline/cat-datepicker-inline.spec.js.map +1 -1
- package/dist/collection/components/cat-dropdown/cat-dropdown.e2e.js +6 -6
- package/dist/collection/components/cat-dropdown/cat-dropdown.e2e.js.map +1 -1
- package/dist/collection/components/cat-dropdown/cat-dropdown.js +300 -300
- package/dist/collection/components/cat-dropdown/cat-dropdown.js.map +1 -1
- package/dist/collection/components/cat-dropdown/cat-dropdown.spec.js +7 -7
- package/dist/collection/components/cat-dropdown/cat-dropdown.spec.js.map +1 -1
- package/dist/collection/components/cat-form-group/cat-form-group.e2e.js +6 -6
- package/dist/collection/components/cat-form-group/cat-form-group.e2e.js.map +1 -1
- package/dist/collection/components/cat-form-group/cat-form-group.js +107 -107
- package/dist/collection/components/cat-form-group/cat-form-group.js.map +1 -1
- package/dist/collection/components/cat-form-group/cat-form-group.spec.js +7 -7
- package/dist/collection/components/cat-form-group/cat-form-group.spec.js.map +1 -1
- package/dist/collection/components/cat-form-hint/cat-form-hint.js +9 -9
- package/dist/collection/components/cat-form-hint/cat-form-hint.js.map +1 -1
- package/dist/collection/components/cat-form-hint/cat-form-hint.spec.js +7 -7
- package/dist/collection/components/cat-form-hint/cat-form-hint.spec.js.map +1 -1
- package/dist/collection/components/cat-i18n/cat-i18n-registry.js +71 -71
- package/dist/collection/components/cat-i18n/cat-i18n-registry.js.map +1 -1
- package/dist/collection/components/cat-i18n/cat-i18n-registry.spec.js +3 -3
- package/dist/collection/components/cat-i18n/cat-i18n-registry.spec.js.map +1 -1
- package/dist/collection/components/cat-icon/cat-icon-registry.js +77 -77
- package/dist/collection/components/cat-icon/cat-icon-registry.js.map +1 -1
- package/dist/collection/components/cat-icon/cat-icon-registry.spec.js +3 -3
- package/dist/collection/components/cat-icon/cat-icon-registry.spec.js.map +1 -1
- package/dist/collection/components/cat-icon/cat-icon.e2e.js +7 -7
- package/dist/collection/components/cat-icon/cat-icon.e2e.js.map +1 -1
- package/dist/collection/components/cat-icon/cat-icon.js +97 -97
- package/dist/collection/components/cat-icon/cat-icon.js.map +1 -1
- package/dist/collection/components/cat-icon/cat-icon.spec.js +7 -7
- package/dist/collection/components/cat-icon/cat-icon.spec.js.map +1 -1
- package/dist/collection/components/cat-input/cat-input.e2e.js +7 -7
- package/dist/collection/components/cat-input/cat-input.e2e.js.map +1 -1
- package/dist/collection/components/cat-input/cat-input.js +768 -768
- package/dist/collection/components/cat-input/cat-input.js.map +1 -1
- package/dist/collection/components/cat-input/cat-input.spec.js +7 -7
- package/dist/collection/components/cat-input/cat-input.spec.js.map +1 -1
- package/dist/collection/components/cat-notification/cat-notification.js +59 -59
- package/dist/collection/components/cat-notification/cat-notification.js.map +1 -1
- package/dist/collection/components/cat-notification/cat-notification.spec.js +3 -3
- package/dist/collection/components/cat-notification/cat-notification.spec.js.map +1 -1
- package/dist/collection/components/cat-pagination/cat-pagination.e2e.js +10 -10
- package/dist/collection/components/cat-pagination/cat-pagination.e2e.js.map +1 -1
- package/dist/collection/components/cat-pagination/cat-pagination.js +274 -274
- package/dist/collection/components/cat-pagination/cat-pagination.js.map +1 -1
- package/dist/collection/components/cat-pagination/cat-pagination.spec.js +7 -7
- package/dist/collection/components/cat-pagination/cat-pagination.spec.js.map +1 -1
- package/dist/collection/components/cat-radio/cat-radio.e2e.js +6 -6
- package/dist/collection/components/cat-radio/cat-radio.e2e.js.map +1 -1
- package/dist/collection/components/cat-radio/cat-radio.js +378 -378
- package/dist/collection/components/cat-radio/cat-radio.js.map +1 -1
- package/dist/collection/components/cat-radio/cat-radio.spec.js +7 -7
- package/dist/collection/components/cat-radio/cat-radio.spec.js.map +1 -1
- package/dist/collection/components/cat-radio-group/cat-radio-group.e2e.js +6 -6
- package/dist/collection/components/cat-radio-group/cat-radio-group.e2e.js.map +1 -1
- package/dist/collection/components/cat-radio-group/cat-radio-group.js +278 -278
- package/dist/collection/components/cat-radio-group/cat-radio-group.js.map +1 -1
- package/dist/collection/components/cat-radio-group/cat-radio-group.spec.js +7 -7
- package/dist/collection/components/cat-radio-group/cat-radio-group.spec.js.map +1 -1
- package/dist/collection/components/cat-scrollable/cat-scrollable.e2e.js +6 -6
- package/dist/collection/components/cat-scrollable/cat-scrollable.e2e.js.map +1 -1
- package/dist/collection/components/cat-scrollable/cat-scrollable.js +287 -287
- package/dist/collection/components/cat-scrollable/cat-scrollable.js.map +1 -1
- package/dist/collection/components/cat-scrollable/cat-scrollable.spec.js +7 -7
- package/dist/collection/components/cat-scrollable/cat-scrollable.spec.js.map +1 -1
- package/dist/collection/components/cat-select/cat-select.e2e.js +10 -10
- package/dist/collection/components/cat-select/cat-select.e2e.js.map +1 -1
- package/dist/collection/components/cat-select/cat-select.js +1143 -1143
- package/dist/collection/components/cat-select/cat-select.js.map +1 -1
- package/dist/collection/components/cat-select/cat-select.spec.js +7 -7
- package/dist/collection/components/cat-select/cat-select.spec.js.map +1 -1
- package/dist/collection/components/cat-select/connectors.js +13 -13
- package/dist/collection/components/cat-select/connectors.js.map +1 -1
- package/dist/collection/components/cat-select-demo/cat-select-demo.js +1379 -1379
- package/dist/collection/components/cat-select-demo/cat-select-demo.js.map +1 -1
- package/dist/collection/components/cat-skeleton/cat-skeleton.e2e.js +6 -6
- package/dist/collection/components/cat-skeleton/cat-skeleton.e2e.js.map +1 -1
- package/dist/collection/components/cat-skeleton/cat-skeleton.js +120 -120
- package/dist/collection/components/cat-skeleton/cat-skeleton.js.map +1 -1
- package/dist/collection/components/cat-skeleton/cat-skeleton.spec.js +7 -7
- package/dist/collection/components/cat-skeleton/cat-skeleton.spec.js.map +1 -1
- package/dist/collection/components/cat-spinner/cat-spinner.e2e.js +6 -6
- package/dist/collection/components/cat-spinner/cat-spinner.e2e.js.map +1 -1
- package/dist/collection/components/cat-spinner/cat-spinner.js +60 -60
- package/dist/collection/components/cat-spinner/cat-spinner.js.map +1 -1
- package/dist/collection/components/cat-spinner/cat-spinner.spec.js +7 -7
- package/dist/collection/components/cat-spinner/cat-spinner.spec.js.map +1 -1
- package/dist/collection/components/cat-tab/cat-tab.e2e.js +6 -6
- package/dist/collection/components/cat-tab/cat-tab.e2e.js.map +1 -1
- package/dist/collection/components/cat-tab/cat-tab.js +230 -211
- package/dist/collection/components/cat-tab/cat-tab.js.map +1 -1
- package/dist/collection/components/cat-tab/cat-tab.spec.js +7 -7
- package/dist/collection/components/cat-tab/cat-tab.spec.js.map +1 -1
- package/dist/collection/components/cat-tabs/cat-tabs.css +3 -0
- package/dist/collection/components/cat-tabs/cat-tabs.e2e.js +6 -6
- package/dist/collection/components/cat-tabs/cat-tabs.e2e.js.map +1 -1
- package/dist/collection/components/cat-tabs/cat-tabs.js +222 -215
- package/dist/collection/components/cat-tabs/cat-tabs.js.map +1 -1
- package/dist/collection/components/cat-tabs/cat-tabs.spec.js +7 -7
- package/dist/collection/components/cat-tabs/cat-tabs.spec.js.map +1 -1
- package/dist/collection/components/cat-textarea/cat-textarea.e2e.js +7 -7
- package/dist/collection/components/cat-textarea/cat-textarea.e2e.js.map +1 -1
- package/dist/collection/components/cat-textarea/cat-textarea.js +586 -586
- package/dist/collection/components/cat-textarea/cat-textarea.js.map +1 -1
- package/dist/collection/components/cat-textarea/cat-textarea.spec.js +7 -7
- package/dist/collection/components/cat-textarea/cat-textarea.spec.js.map +1 -1
- package/dist/collection/components/cat-toggle/cat-toggle.e2e.js +6 -6
- package/dist/collection/components/cat-toggle/cat-toggle.e2e.js.map +1 -1
- package/dist/collection/components/cat-toggle/cat-toggle.js +421 -421
- package/dist/collection/components/cat-toggle/cat-toggle.js.map +1 -1
- package/dist/collection/components/cat-toggle/cat-toggle.spec.js +7 -7
- package/dist/collection/components/cat-toggle/cat-toggle.spec.js.map +1 -1
- package/dist/collection/components/cat-tooltip/cat-tooltip.css +3 -0
- package/dist/collection/components/cat-tooltip/cat-tooltip.e2e.js +6 -6
- package/dist/collection/components/cat-tooltip/cat-tooltip.e2e.js.map +1 -1
- package/dist/collection/components/cat-tooltip/cat-tooltip.js +297 -296
- package/dist/collection/components/cat-tooltip/cat-tooltip.js.map +1 -1
- package/dist/collection/components/cat-tooltip/cat-tooltip.spec.js +12 -8
- package/dist/collection/components/cat-tooltip/cat-tooltip.spec.js.map +1 -1
- package/dist/collection/scss/core/_dialog.scss +1 -1
- package/dist/collection/scss/core/_form.scss +2 -1
- package/dist/collection/scss/core/_typography.scss +1 -7
- package/dist/collection/utils/breakpoints.js +6 -6
- package/dist/collection/utils/breakpoints.js.map +1 -1
- package/dist/collection/utils/coerce.js +3 -3
- package/dist/collection/utils/coerce.js.map +1 -1
- package/dist/collection/utils/find-closest.js +6 -6
- package/dist/collection/utils/find-closest.js.map +1 -1
- package/dist/collection/utils/first-tabbable.js +1 -1
- package/dist/collection/utils/first-tabbable.js.map +1 -1
- package/dist/collection/utils/load-img.js +6 -6
- package/dist/collection/utils/load-img.js.map +1 -1
- package/dist/collection/utils/media-matcher.js +30 -30
- package/dist/collection/utils/media-matcher.js.map +1 -1
- package/dist/collection/utils/media-matcher.spec.js +32 -32
- package/dist/collection/utils/media-matcher.spec.js.map +1 -1
- package/dist/collection/utils/platform.js +34 -34
- package/dist/collection/utils/platform.js.map +1 -1
- package/dist/collection/utils/setDefault.js +4 -4
- package/dist/collection/utils/setDefault.js.map +1 -1
- package/dist/components/cat-alert.d.ts +2 -2
- package/dist/components/cat-alert.js +56 -56
- package/dist/components/cat-alert.js.map +1 -1
- package/dist/components/cat-avatar.d.ts +2 -2
- package/dist/components/cat-avatar2.js +93 -93
- package/dist/components/cat-avatar2.js.map +1 -1
- package/dist/components/cat-badge.d.ts +2 -2
- package/dist/components/cat-badge.js +32 -32
- package/dist/components/cat-badge.js.map +1 -1
- package/dist/components/cat-button-group.d.ts +2 -2
- package/dist/components/cat-button-group.js +31 -31
- package/dist/components/cat-button-group.js.map +1 -1
- package/dist/components/cat-button.d.ts +2 -2
- package/dist/components/cat-button2.js +277 -277
- package/dist/components/cat-button2.js.map +1 -1
- package/dist/components/cat-card.d.ts +2 -2
- package/dist/components/cat-card.js +20 -20
- package/dist/components/cat-card.js.map +1 -1
- package/dist/components/cat-checkbox.d.ts +2 -2
- package/dist/components/cat-checkbox2.js +108 -108
- package/dist/components/cat-checkbox2.js.map +1 -1
- package/dist/components/cat-datepicker-inline.d.ts +2 -2
- package/dist/components/cat-datepicker-inline.js +89 -89
- package/dist/components/cat-datepicker-inline.js.map +1 -1
- package/dist/components/cat-datepicker.d.ts +2 -2
- package/dist/components/cat-datepicker.js +203 -194
- package/dist/components/cat-datepicker.js.map +1 -1
- package/dist/components/cat-datepicker.locale.js +121 -121
- package/dist/components/cat-datepicker.locale.js.map +1 -1
- package/dist/components/cat-dropdown.d.ts +2 -2
- package/dist/components/cat-dropdown2.js +177 -177
- package/dist/components/cat-dropdown2.js.map +1 -1
- package/dist/components/cat-form-group.d.ts +2 -2
- package/dist/components/cat-form-group.js +55 -55
- package/dist/components/cat-form-group.js.map +1 -1
- package/dist/components/cat-form-hint.js +9 -9
- package/dist/components/cat-form-hint.js.map +1 -1
- package/dist/components/cat-i18n-registry.js +71 -71
- package/dist/components/cat-i18n-registry.js.map +1 -1
- package/dist/components/cat-icon-registry.js +77 -77
- package/dist/components/cat-icon-registry.js.map +1 -1
- package/dist/components/cat-icon.d.ts +2 -2
- package/dist/components/cat-icon2.js +32 -32
- package/dist/components/cat-icon2.js.map +1 -1
- package/dist/components/cat-input.d.ts +2 -2
- package/dist/components/cat-input2.js +219 -219
- package/dist/components/cat-input2.js.map +1 -1
- package/dist/components/cat-pagination.d.ts +2 -2
- package/dist/components/cat-pagination.js +103 -103
- package/dist/components/cat-pagination.js.map +1 -1
- package/dist/components/cat-radio-group.d.ts +2 -2
- package/dist/components/cat-radio-group.js +113 -113
- package/dist/components/cat-radio-group.js.map +1 -1
- package/dist/components/cat-radio.d.ts +2 -2
- package/dist/components/cat-radio.js +93 -93
- package/dist/components/cat-radio.js.map +1 -1
- package/dist/components/cat-scrollable.d.ts +2 -2
- package/dist/components/cat-scrollable2.js +118 -118
- package/dist/components/cat-scrollable2.js.map +1 -1
- package/dist/components/cat-select-demo.d.ts +2 -2
- package/dist/components/cat-select-demo.js +1438 -1438
- package/dist/components/cat-select-demo.js.map +1 -1
- package/dist/components/cat-select.d.ts +2 -2
- package/dist/components/cat-select2.js +666 -666
- package/dist/components/cat-select2.js.map +1 -1
- package/dist/components/cat-skeleton.d.ts +2 -2
- package/dist/components/cat-skeleton2.js +53 -53
- package/dist/components/cat-skeleton2.js.map +1 -1
- package/dist/components/cat-spinner.d.ts +2 -2
- package/dist/components/cat-spinner2.js +27 -27
- package/dist/components/cat-spinner2.js.map +1 -1
- package/dist/components/cat-tab.d.ts +2 -2
- package/dist/components/cat-tab.js +48 -46
- package/dist/components/cat-tab.js.map +1 -1
- package/dist/components/cat-tabs.d.ts +2 -2
- package/dist/components/cat-tabs.js +120 -113
- package/dist/components/cat-tabs.js.map +1 -1
- package/dist/components/cat-textarea.d.ts +2 -2
- package/dist/components/cat-textarea.js +178 -178
- package/dist/components/cat-textarea.js.map +1 -1
- package/dist/components/cat-toggle.d.ts +2 -2
- package/dist/components/cat-toggle.js +104 -104
- package/dist/components/cat-toggle.js.map +1 -1
- package/dist/components/cat-tooltip.d.ts +2 -2
- package/dist/components/cat-tooltip.js +144 -143
- package/dist/components/cat-tooltip.js.map +1 -1
- package/dist/components/coerce.js +3 -3
- package/dist/components/coerce.js.map +1 -1
- package/dist/components/index.js +72 -72
- package/dist/components/index.js.map +1 -1
- package/dist/esm/cat-alert_26.entry.js +3899 -3883
- package/dist/esm/cat-alert_26.entry.js.map +1 -1
- package/dist/esm/catalyst.js +4 -4
- package/dist/esm/catalyst.js.map +1 -1
- package/dist/esm/{index-30a221a3.js → index-acddba36.js} +51 -13
- package/dist/esm/index-acddba36.js.map +1 -0
- package/dist/esm/index.js +74 -74
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{of-04d3d9e1.js → of-4f92b30b.js} +155 -155
- package/dist/esm/of-4f92b30b.js.map +1 -0
- package/dist/types/components/cat-alert/cat-alert.d.ts +17 -17
- package/dist/types/components/cat-avatar/cat-avatar.d.ts +41 -41
- package/dist/types/components/cat-badge/cat-badge.d.ts +22 -22
- package/dist/types/components/cat-button/cat-button.d.ts +151 -151
- package/dist/types/components/cat-button-group/cat-button-group.d.ts +9 -9
- package/dist/types/components/cat-card/cat-card.d.ts +1 -1
- package/dist/types/components/cat-checkbox/cat-checkbox.d.ts +97 -97
- package/dist/types/components/cat-datepicker/cat-datepicker.config.d.ts +12 -12
- package/dist/types/components/cat-datepicker/cat-datepicker.d.ts +153 -149
- package/dist/types/components/cat-datepicker-inline/cat-datepicker-inline.d.ts +45 -45
- package/dist/types/components/cat-dropdown/cat-dropdown.d.ts +49 -49
- package/dist/types/components/cat-form-group/cat-form-group.d.ts +23 -23
- package/dist/types/components/cat-form-hint/cat-form-hint.d.ts +6 -6
- package/dist/types/components/cat-i18n/cat-i18n-registry.d.ts +17 -17
- package/dist/types/components/cat-icon/cat-icon-registry.d.ts +12 -12
- package/dist/types/components/cat-icon/cat-icon.d.ts +18 -18
- package/dist/types/components/cat-input/cat-input.d.ts +167 -167
- package/dist/types/components/cat-notification/cat-notification.d.ts +31 -31
- package/dist/types/components/cat-pagination/cat-pagination.d.ts +52 -52
- package/dist/types/components/cat-radio/cat-radio.d.ts +83 -83
- package/dist/types/components/cat-radio-group/cat-radio-group.d.ts +49 -49
- package/dist/types/components/cat-scrollable/cat-scrollable.d.ts +49 -49
- package/dist/types/components/cat-select/cat-select.d.ts +221 -221
- package/dist/types/components/cat-select/connectors.d.ts +5 -5
- package/dist/types/components/cat-select-demo/cat-select-demo.d.ts +11 -11
- package/dist/types/components/cat-skeleton/cat-skeleton.d.ts +23 -23
- package/dist/types/components/cat-spinner/cat-spinner.d.ts +10 -10
- package/dist/types/components/cat-tab/cat-tab.d.ts +48 -42
- package/dist/types/components/cat-tabs/cat-tabs.d.ts +40 -39
- package/dist/types/components/cat-textarea/cat-textarea.d.ts +131 -131
- package/dist/types/components/cat-toggle/cat-toggle.d.ts +93 -93
- package/dist/types/components/cat-tooltip/cat-tooltip.d.ts +64 -64
- package/dist/types/components.d.ts +10 -2
- package/dist/types/stencil-public-runtime.d.ts +8 -0
- package/dist/types/utils/breakpoints.d.ts +1 -1
- package/dist/types/utils/media-matcher.d.ts +10 -10
- package/dist/types/utils/platform.d.ts +16 -16
- package/dist/types/utils/setDefault.d.ts +2 -2
- package/package.json +18 -18
- package/dist/catalyst/p-1bd44896.js +0 -3
- package/dist/catalyst/p-1bd44896.js.map +0 -1
- package/dist/catalyst/p-dc953306.entry.js +0 -10
- package/dist/catalyst/p-dc953306.entry.js.map +0 -1
- package/dist/cjs/index-1e7eef7e.js.map +0 -1
- package/dist/cjs/of-395b2f57.js.map +0 -1
- package/dist/esm/index-30a221a3.js.map +0 -1
- package/dist/esm/of-04d3d9e1.js.map +0 -1
- /package/dist/catalyst/{p-85d057f0.js.map → p-6ae13953.js.map} +0 -0
|
@@ -6,722 +6,735 @@ import { getConfig } from "./cat-datepicker.config";
|
|
|
6
6
|
import { getFormat } from "./cat-datepicker.format";
|
|
7
7
|
import { getLocale } from "./cat-datepicker.locale";
|
|
8
8
|
export class CatDatepickerFlat {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
return this._input?.shadowRoot?.querySelector('input') ?? undefined;
|
|
39
|
-
}
|
|
40
|
-
onValueChanged(value) {
|
|
41
|
-
if (value) {
|
|
42
|
-
this.pickr?.setDate(value, false);
|
|
43
|
-
if (this.mode !== 'daterange' || value.includes(' - ')) {
|
|
44
|
-
this.catChange.emit(value);
|
|
45
|
-
}
|
|
9
|
+
constructor() {
|
|
10
|
+
this.hasSlottedLabel = false;
|
|
11
|
+
this.hasSlottedHint = false;
|
|
12
|
+
this.requiredMarker = 'optional';
|
|
13
|
+
this.horizontal = false;
|
|
14
|
+
this.autoComplete = undefined;
|
|
15
|
+
this.clearable = false;
|
|
16
|
+
this.disabled = false;
|
|
17
|
+
this.hint = undefined;
|
|
18
|
+
this.icon = undefined;
|
|
19
|
+
this.iconRight = false;
|
|
20
|
+
this.identifier = undefined;
|
|
21
|
+
this.label = '';
|
|
22
|
+
this.labelHidden = false;
|
|
23
|
+
this.max = undefined;
|
|
24
|
+
this.min = undefined;
|
|
25
|
+
this.mode = 'date';
|
|
26
|
+
this.name = undefined;
|
|
27
|
+
this.placeholder = undefined;
|
|
28
|
+
this.textPrefix = undefined;
|
|
29
|
+
this.textSuffix = undefined;
|
|
30
|
+
this.readonly = false;
|
|
31
|
+
this.required = false;
|
|
32
|
+
this.step = 5;
|
|
33
|
+
this.value = undefined;
|
|
34
|
+
this.errors = undefined;
|
|
35
|
+
this.errorUpdate = 0;
|
|
36
|
+
this.nativeAttributes = undefined;
|
|
37
|
+
this.nativePickerAttributes = undefined;
|
|
46
38
|
}
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
this.catChange.emit(undefined);
|
|
39
|
+
get input() {
|
|
40
|
+
return this._input?.shadowRoot?.querySelector('input') ?? undefined;
|
|
50
41
|
}
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
this.pickr?.destroy();
|
|
57
|
-
this.pickr = undefined;
|
|
58
|
-
setTimeout(() => (this.pickr = this.initDatepicker(this.input)));
|
|
59
|
-
}
|
|
60
|
-
componentDidLoad() {
|
|
61
|
-
this.pickr = this.initDatepicker(this.input);
|
|
62
|
-
}
|
|
63
|
-
onMinChanged() {
|
|
64
|
-
this.pickr?.set('minDate', this.min);
|
|
65
|
-
this.pickr?.set('maxDate', this.max);
|
|
66
|
-
if (this.value && !this.pickr?.selectedDates?.length) {
|
|
67
|
-
// Dynamically changing 'minDate' or 'maxDate' does not emit a change if
|
|
68
|
-
// the value is cleared due to an invalid date.
|
|
69
|
-
this.pickr?.clear();
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
/**
|
|
73
|
-
* Programmatically move focus to the datepicker. Use this method instead of
|
|
74
|
-
* `input.focus()`.
|
|
75
|
-
*
|
|
76
|
-
* @param options An optional object providing options to control aspects of
|
|
77
|
-
* the focusing process.
|
|
78
|
-
*/
|
|
79
|
-
async doFocus(options) {
|
|
80
|
-
this._input?.doFocus(options);
|
|
81
|
-
}
|
|
82
|
-
/**
|
|
83
|
-
* Programmatically remove focus from the datepicker. Use this method instead of
|
|
84
|
-
* `input.blur()`.
|
|
85
|
-
*/
|
|
86
|
-
async doBlur() {
|
|
87
|
-
this._input?.doBlur();
|
|
88
|
-
}
|
|
89
|
-
render() {
|
|
90
|
-
return (h("cat-input", { ref: el => (this._input = el), requiredMarker: this.requiredMarker, horizontal: this.horizontal, autoComplete: this.autoComplete, clearable: this.clearable, disabled: this.disabled, hint: this.hint, icon: this.icon, iconRight: this.iconRight, identifier: this.identifier, label: this.label, labelHidden: this.labelHidden, name: this.name, placeholder: this.placeholder, textPrefix: this.textPrefix, textSuffix: this.textSuffix, readonly: this.readonly, required: this.required, value: this.value, errors: this.errors, errorUpdate: this.errorUpdate, nativeAttributes: this.nativeAttributes, onCatChange: e => {
|
|
91
|
-
e.stopPropagation();
|
|
92
|
-
this.value = e.detail || undefined;
|
|
93
|
-
}, onCatFocus: e => {
|
|
94
|
-
e.stopPropagation();
|
|
95
|
-
this.catFocus.emit(e.detail);
|
|
96
|
-
}, onCatBlur: e => {
|
|
97
|
-
e.stopPropagation();
|
|
98
|
-
this.catBlur.emit(e.detail);
|
|
99
|
-
} }));
|
|
100
|
-
}
|
|
101
|
-
initDatepicker(input) {
|
|
102
|
-
if (this.disabled || this.readonly || !input) {
|
|
103
|
-
return;
|
|
104
|
-
}
|
|
105
|
-
// avoid dropdown closing if datepicker is part of a dropdown
|
|
106
|
-
const withinDropdown = !!findClosest('cat-dropdown', input);
|
|
107
|
-
const nativePickerAttributes = withinDropdown ? { 'data-dropdown-no-close': '' } : {};
|
|
108
|
-
return flatpickr(input, getConfig({
|
|
109
|
-
locale: getLocale(i18n.getLocale()),
|
|
110
|
-
format: getFormat(i18n.getLocale(), this.mode),
|
|
111
|
-
mode: this.mode,
|
|
112
|
-
min: this.min,
|
|
113
|
-
max: this.max,
|
|
114
|
-
step: this.step,
|
|
115
|
-
disabled: this.disabled,
|
|
116
|
-
readonly: this.readonly,
|
|
117
|
-
nativePickerAttributes: { ...nativePickerAttributes, ...this.nativePickerAttributes },
|
|
118
|
-
applyChange: value => (this.value = value)
|
|
119
|
-
}));
|
|
120
|
-
}
|
|
121
|
-
static get is() { return "cat-datepicker"; }
|
|
122
|
-
static get encapsulation() { return "shadow"; }
|
|
123
|
-
static get originalStyleUrls() {
|
|
124
|
-
return {
|
|
125
|
-
"$": ["cat-datepicker.scss"]
|
|
126
|
-
};
|
|
127
|
-
}
|
|
128
|
-
static get styleUrls() {
|
|
129
|
-
return {
|
|
130
|
-
"$": ["cat-datepicker.css"]
|
|
131
|
-
};
|
|
132
|
-
}
|
|
133
|
-
static get properties() {
|
|
134
|
-
return {
|
|
135
|
-
"requiredMarker": {
|
|
136
|
-
"type": "string",
|
|
137
|
-
"mutable": false,
|
|
138
|
-
"complexType": {
|
|
139
|
-
"original": "'none' | 'required' | 'optional' | 'none!' | 'optional!' | 'required!'",
|
|
140
|
-
"resolved": "\"none!\" | \"none\" | \"optional!\" | \"optional\" | \"required!\" | \"required\" | undefined",
|
|
141
|
-
"references": {}
|
|
142
|
-
},
|
|
143
|
-
"required": false,
|
|
144
|
-
"optional": true,
|
|
145
|
-
"docs": {
|
|
146
|
-
"tags": [],
|
|
147
|
-
"text": "Whether the label need a marker to shown if the input is required or optional."
|
|
148
|
-
},
|
|
149
|
-
"attribute": "required-marker",
|
|
150
|
-
"reflect": false,
|
|
151
|
-
"defaultValue": "'optional'"
|
|
152
|
-
},
|
|
153
|
-
"horizontal": {
|
|
154
|
-
"type": "boolean",
|
|
155
|
-
"mutable": false,
|
|
156
|
-
"complexType": {
|
|
157
|
-
"original": "boolean",
|
|
158
|
-
"resolved": "boolean",
|
|
159
|
-
"references": {}
|
|
160
|
-
},
|
|
161
|
-
"required": false,
|
|
162
|
-
"optional": false,
|
|
163
|
-
"docs": {
|
|
164
|
-
"tags": [],
|
|
165
|
-
"text": "Whether the label is on top or left."
|
|
166
|
-
},
|
|
167
|
-
"attribute": "horizontal",
|
|
168
|
-
"reflect": false,
|
|
169
|
-
"defaultValue": "false"
|
|
170
|
-
},
|
|
171
|
-
"autoComplete": {
|
|
172
|
-
"type": "string",
|
|
173
|
-
"mutable": false,
|
|
174
|
-
"complexType": {
|
|
175
|
-
"original": "string",
|
|
176
|
-
"resolved": "string | undefined",
|
|
177
|
-
"references": {}
|
|
178
|
-
},
|
|
179
|
-
"required": false,
|
|
180
|
-
"optional": true,
|
|
181
|
-
"docs": {
|
|
182
|
-
"tags": [],
|
|
183
|
-
"text": "Hint for form autofill feature."
|
|
184
|
-
},
|
|
185
|
-
"attribute": "auto-complete",
|
|
186
|
-
"reflect": false
|
|
187
|
-
},
|
|
188
|
-
"clearable": {
|
|
189
|
-
"type": "boolean",
|
|
190
|
-
"mutable": false,
|
|
191
|
-
"complexType": {
|
|
192
|
-
"original": "boolean",
|
|
193
|
-
"resolved": "boolean",
|
|
194
|
-
"references": {}
|
|
195
|
-
},
|
|
196
|
-
"required": false,
|
|
197
|
-
"optional": false,
|
|
198
|
-
"docs": {
|
|
199
|
-
"tags": [],
|
|
200
|
-
"text": "Whether the input should show a clear button."
|
|
201
|
-
},
|
|
202
|
-
"attribute": "clearable",
|
|
203
|
-
"reflect": false,
|
|
204
|
-
"defaultValue": "false"
|
|
205
|
-
},
|
|
206
|
-
"disabled": {
|
|
207
|
-
"type": "boolean",
|
|
208
|
-
"mutable": false,
|
|
209
|
-
"complexType": {
|
|
210
|
-
"original": "boolean",
|
|
211
|
-
"resolved": "boolean",
|
|
212
|
-
"references": {}
|
|
213
|
-
},
|
|
214
|
-
"required": false,
|
|
215
|
-
"optional": false,
|
|
216
|
-
"docs": {
|
|
217
|
-
"tags": [],
|
|
218
|
-
"text": "Whether the input is disabled."
|
|
219
|
-
},
|
|
220
|
-
"attribute": "disabled",
|
|
221
|
-
"reflect": false,
|
|
222
|
-
"defaultValue": "false"
|
|
223
|
-
},
|
|
224
|
-
"hint": {
|
|
225
|
-
"type": "string",
|
|
226
|
-
"mutable": false,
|
|
227
|
-
"complexType": {
|
|
228
|
-
"original": "string | string[]",
|
|
229
|
-
"resolved": "string | string[] | undefined",
|
|
230
|
-
"references": {}
|
|
231
|
-
},
|
|
232
|
-
"required": false,
|
|
233
|
-
"optional": true,
|
|
234
|
-
"docs": {
|
|
235
|
-
"tags": [],
|
|
236
|
-
"text": "Optional hint text(s) to be displayed with the input."
|
|
237
|
-
},
|
|
238
|
-
"attribute": "hint",
|
|
239
|
-
"reflect": false
|
|
240
|
-
},
|
|
241
|
-
"icon": {
|
|
242
|
-
"type": "string",
|
|
243
|
-
"mutable": false,
|
|
244
|
-
"complexType": {
|
|
245
|
-
"original": "string",
|
|
246
|
-
"resolved": "string | undefined",
|
|
247
|
-
"references": {}
|
|
248
|
-
},
|
|
249
|
-
"required": false,
|
|
250
|
-
"optional": true,
|
|
251
|
-
"docs": {
|
|
252
|
-
"tags": [],
|
|
253
|
-
"text": "The name of an icon to be displayed in the input."
|
|
254
|
-
},
|
|
255
|
-
"attribute": "icon",
|
|
256
|
-
"reflect": false
|
|
257
|
-
},
|
|
258
|
-
"iconRight": {
|
|
259
|
-
"type": "boolean",
|
|
260
|
-
"mutable": false,
|
|
261
|
-
"complexType": {
|
|
262
|
-
"original": "boolean",
|
|
263
|
-
"resolved": "boolean",
|
|
264
|
-
"references": {}
|
|
265
|
-
},
|
|
266
|
-
"required": false,
|
|
267
|
-
"optional": false,
|
|
268
|
-
"docs": {
|
|
269
|
-
"tags": [],
|
|
270
|
-
"text": "Display the icon on the right."
|
|
271
|
-
},
|
|
272
|
-
"attribute": "icon-right",
|
|
273
|
-
"reflect": false,
|
|
274
|
-
"defaultValue": "false"
|
|
275
|
-
},
|
|
276
|
-
"identifier": {
|
|
277
|
-
"type": "string",
|
|
278
|
-
"mutable": false,
|
|
279
|
-
"complexType": {
|
|
280
|
-
"original": "string",
|
|
281
|
-
"resolved": "string | undefined",
|
|
282
|
-
"references": {}
|
|
283
|
-
},
|
|
284
|
-
"required": false,
|
|
285
|
-
"optional": true,
|
|
286
|
-
"docs": {
|
|
287
|
-
"tags": [],
|
|
288
|
-
"text": "A unique identifier for the input."
|
|
289
|
-
},
|
|
290
|
-
"attribute": "identifier",
|
|
291
|
-
"reflect": false
|
|
292
|
-
},
|
|
293
|
-
"label": {
|
|
294
|
-
"type": "string",
|
|
295
|
-
"mutable": false,
|
|
296
|
-
"complexType": {
|
|
297
|
-
"original": "string",
|
|
298
|
-
"resolved": "string",
|
|
299
|
-
"references": {}
|
|
300
|
-
},
|
|
301
|
-
"required": false,
|
|
302
|
-
"optional": false,
|
|
303
|
-
"docs": {
|
|
304
|
-
"tags": [],
|
|
305
|
-
"text": "The label for the input."
|
|
306
|
-
},
|
|
307
|
-
"attribute": "label",
|
|
308
|
-
"reflect": false,
|
|
309
|
-
"defaultValue": "''"
|
|
310
|
-
},
|
|
311
|
-
"labelHidden": {
|
|
312
|
-
"type": "boolean",
|
|
313
|
-
"mutable": false,
|
|
314
|
-
"complexType": {
|
|
315
|
-
"original": "boolean",
|
|
316
|
-
"resolved": "boolean",
|
|
317
|
-
"references": {}
|
|
318
|
-
},
|
|
319
|
-
"required": false,
|
|
320
|
-
"optional": false,
|
|
321
|
-
"docs": {
|
|
322
|
-
"tags": [],
|
|
323
|
-
"text": "Visually hide the label, but still show it to assistive technologies like screen readers."
|
|
324
|
-
},
|
|
325
|
-
"attribute": "label-hidden",
|
|
326
|
-
"reflect": false,
|
|
327
|
-
"defaultValue": "false"
|
|
328
|
-
},
|
|
329
|
-
"max": {
|
|
330
|
-
"type": "string",
|
|
331
|
-
"mutable": false,
|
|
332
|
-
"complexType": {
|
|
333
|
-
"original": "string",
|
|
334
|
-
"resolved": "string | undefined",
|
|
335
|
-
"references": {}
|
|
336
|
-
},
|
|
337
|
-
"required": false,
|
|
338
|
-
"optional": true,
|
|
339
|
-
"docs": {
|
|
340
|
-
"tags": [],
|
|
341
|
-
"text": "A maximum value as ISO Date string, e.g. 2017-03-04T01:23:43.000Z."
|
|
342
|
-
},
|
|
343
|
-
"attribute": "max",
|
|
344
|
-
"reflect": false
|
|
345
|
-
},
|
|
346
|
-
"min": {
|
|
347
|
-
"type": "string",
|
|
348
|
-
"mutable": false,
|
|
349
|
-
"complexType": {
|
|
350
|
-
"original": "string",
|
|
351
|
-
"resolved": "string | undefined",
|
|
352
|
-
"references": {}
|
|
353
|
-
},
|
|
354
|
-
"required": false,
|
|
355
|
-
"optional": true,
|
|
356
|
-
"docs": {
|
|
357
|
-
"tags": [],
|
|
358
|
-
"text": "A minimum value as ISO Date string, e.g. 2017-03-04T01:23:43.000Z."
|
|
359
|
-
},
|
|
360
|
-
"attribute": "min",
|
|
361
|
-
"reflect": false
|
|
362
|
-
},
|
|
363
|
-
"mode": {
|
|
364
|
-
"type": "string",
|
|
365
|
-
"mutable": false,
|
|
366
|
-
"complexType": {
|
|
367
|
-
"original": "CatDatepickerMode",
|
|
368
|
-
"resolved": "\"date\" | \"daterange\" | \"datetime\" | \"time\" | \"week\"",
|
|
369
|
-
"references": {
|
|
370
|
-
"CatDatepickerMode": {
|
|
371
|
-
"location": "import",
|
|
372
|
-
"path": "./cat-datepicker.mode",
|
|
373
|
-
"id": "src/components/cat-datepicker/cat-datepicker.mode.ts::CatDatepickerMode"
|
|
42
|
+
onValueChanged(value) {
|
|
43
|
+
if (value) {
|
|
44
|
+
this.pickr?.setDate(value, false);
|
|
45
|
+
if (this.mode !== 'daterange' || value.includes(' - ')) {
|
|
46
|
+
this.catChange.emit(value);
|
|
374
47
|
}
|
|
375
|
-
}
|
|
376
|
-
},
|
|
377
|
-
"required": false,
|
|
378
|
-
"optional": false,
|
|
379
|
-
"docs": {
|
|
380
|
-
"tags": [],
|
|
381
|
-
"text": "The mode of the datepicker, to select a date, time, both, a date range or a week number."
|
|
382
|
-
},
|
|
383
|
-
"attribute": "mode",
|
|
384
|
-
"reflect": false,
|
|
385
|
-
"defaultValue": "'date'"
|
|
386
|
-
},
|
|
387
|
-
"name": {
|
|
388
|
-
"type": "string",
|
|
389
|
-
"mutable": false,
|
|
390
|
-
"complexType": {
|
|
391
|
-
"original": "string",
|
|
392
|
-
"resolved": "string | undefined",
|
|
393
|
-
"references": {}
|
|
394
|
-
},
|
|
395
|
-
"required": false,
|
|
396
|
-
"optional": true,
|
|
397
|
-
"docs": {
|
|
398
|
-
"tags": [],
|
|
399
|
-
"text": "The name of the form control. Submitted with the form as part of a name/value pair."
|
|
400
|
-
},
|
|
401
|
-
"attribute": "name",
|
|
402
|
-
"reflect": false
|
|
403
|
-
},
|
|
404
|
-
"placeholder": {
|
|
405
|
-
"type": "string",
|
|
406
|
-
"mutable": false,
|
|
407
|
-
"complexType": {
|
|
408
|
-
"original": "string",
|
|
409
|
-
"resolved": "string | undefined",
|
|
410
|
-
"references": {}
|
|
411
|
-
},
|
|
412
|
-
"required": false,
|
|
413
|
-
"optional": true,
|
|
414
|
-
"docs": {
|
|
415
|
-
"tags": [],
|
|
416
|
-
"text": "The placeholder text to display within the input."
|
|
417
|
-
},
|
|
418
|
-
"attribute": "placeholder",
|
|
419
|
-
"reflect": false
|
|
420
|
-
},
|
|
421
|
-
"textPrefix": {
|
|
422
|
-
"type": "string",
|
|
423
|
-
"mutable": false,
|
|
424
|
-
"complexType": {
|
|
425
|
-
"original": "string",
|
|
426
|
-
"resolved": "string | undefined",
|
|
427
|
-
"references": {}
|
|
428
|
-
},
|
|
429
|
-
"required": false,
|
|
430
|
-
"optional": true,
|
|
431
|
-
"docs": {
|
|
432
|
-
"tags": [],
|
|
433
|
-
"text": "A textual prefix to be displayed in the input."
|
|
434
|
-
},
|
|
435
|
-
"attribute": "text-prefix",
|
|
436
|
-
"reflect": false
|
|
437
|
-
},
|
|
438
|
-
"textSuffix": {
|
|
439
|
-
"type": "string",
|
|
440
|
-
"mutable": false,
|
|
441
|
-
"complexType": {
|
|
442
|
-
"original": "string",
|
|
443
|
-
"resolved": "string | undefined",
|
|
444
|
-
"references": {}
|
|
445
|
-
},
|
|
446
|
-
"required": false,
|
|
447
|
-
"optional": true,
|
|
448
|
-
"docs": {
|
|
449
|
-
"tags": [],
|
|
450
|
-
"text": "A textual suffix to be displayed in the input."
|
|
451
|
-
},
|
|
452
|
-
"attribute": "text-suffix",
|
|
453
|
-
"reflect": false
|
|
454
|
-
},
|
|
455
|
-
"readonly": {
|
|
456
|
-
"type": "boolean",
|
|
457
|
-
"mutable": false,
|
|
458
|
-
"complexType": {
|
|
459
|
-
"original": "boolean",
|
|
460
|
-
"resolved": "boolean",
|
|
461
|
-
"references": {}
|
|
462
|
-
},
|
|
463
|
-
"required": false,
|
|
464
|
-
"optional": false,
|
|
465
|
-
"docs": {
|
|
466
|
-
"tags": [],
|
|
467
|
-
"text": "The value is not editable."
|
|
468
|
-
},
|
|
469
|
-
"attribute": "readonly",
|
|
470
|
-
"reflect": false,
|
|
471
|
-
"defaultValue": "false"
|
|
472
|
-
},
|
|
473
|
-
"required": {
|
|
474
|
-
"type": "boolean",
|
|
475
|
-
"mutable": false,
|
|
476
|
-
"complexType": {
|
|
477
|
-
"original": "boolean",
|
|
478
|
-
"resolved": "boolean",
|
|
479
|
-
"references": {}
|
|
480
|
-
},
|
|
481
|
-
"required": false,
|
|
482
|
-
"optional": false,
|
|
483
|
-
"docs": {
|
|
484
|
-
"tags": [],
|
|
485
|
-
"text": "A value is required or must be check for the form to be submittable."
|
|
486
|
-
},
|
|
487
|
-
"attribute": "required",
|
|
488
|
-
"reflect": false,
|
|
489
|
-
"defaultValue": "false"
|
|
490
|
-
},
|
|
491
|
-
"step": {
|
|
492
|
-
"type": "number",
|
|
493
|
-
"mutable": false,
|
|
494
|
-
"complexType": {
|
|
495
|
-
"original": "number",
|
|
496
|
-
"resolved": "number",
|
|
497
|
-
"references": {}
|
|
498
|
-
},
|
|
499
|
-
"required": false,
|
|
500
|
-
"optional": false,
|
|
501
|
-
"docs": {
|
|
502
|
-
"tags": [],
|
|
503
|
-
"text": "The step size to use when changing the time."
|
|
504
|
-
},
|
|
505
|
-
"attribute": "step",
|
|
506
|
-
"reflect": false,
|
|
507
|
-
"defaultValue": "5"
|
|
508
|
-
},
|
|
509
|
-
"value": {
|
|
510
|
-
"type": "string",
|
|
511
|
-
"mutable": true,
|
|
512
|
-
"complexType": {
|
|
513
|
-
"original": "string",
|
|
514
|
-
"resolved": "string | undefined",
|
|
515
|
-
"references": {}
|
|
516
|
-
},
|
|
517
|
-
"required": false,
|
|
518
|
-
"optional": true,
|
|
519
|
-
"docs": {
|
|
520
|
-
"tags": [],
|
|
521
|
-
"text": "The value as ISO Date string, e.g. 2017-03-04T01:23:43.000Z or as a week number string."
|
|
522
|
-
},
|
|
523
|
-
"attribute": "value",
|
|
524
|
-
"reflect": false
|
|
525
|
-
},
|
|
526
|
-
"errors": {
|
|
527
|
-
"type": "boolean",
|
|
528
|
-
"mutable": false,
|
|
529
|
-
"complexType": {
|
|
530
|
-
"original": "boolean | string[] | ErrorMap",
|
|
531
|
-
"resolved": "boolean | string[] | undefined | { [key: string]: any; }",
|
|
532
|
-
"references": {
|
|
533
|
-
"ErrorMap": {
|
|
534
|
-
"location": "import",
|
|
535
|
-
"path": "../cat-form-hint/cat-form-hint",
|
|
536
|
-
"id": "src/components/cat-form-hint/cat-form-hint.tsx::ErrorMap"
|
|
537
|
-
}
|
|
538
|
-
}
|
|
539
|
-
},
|
|
540
|
-
"required": false,
|
|
541
|
-
"optional": true,
|
|
542
|
-
"docs": {
|
|
543
|
-
"tags": [],
|
|
544
|
-
"text": "The validation errors for this input. Will render a hint under the input\nwith the translated error message(s) `error.${key}`. If an object is\npassed, the keys will be used as error keys and the values translation\nparameters.\nIf the value is `true`, the input will be marked as invalid without any\nhints under the input."
|
|
545
|
-
},
|
|
546
|
-
"attribute": "errors",
|
|
547
|
-
"reflect": false
|
|
548
|
-
},
|
|
549
|
-
"errorUpdate": {
|
|
550
|
-
"type": "any",
|
|
551
|
-
"mutable": false,
|
|
552
|
-
"complexType": {
|
|
553
|
-
"original": "boolean | number",
|
|
554
|
-
"resolved": "boolean | number",
|
|
555
|
-
"references": {}
|
|
556
|
-
},
|
|
557
|
-
"required": false,
|
|
558
|
-
"optional": false,
|
|
559
|
-
"docs": {
|
|
560
|
-
"tags": [],
|
|
561
|
-
"text": "Fine-grained control over when the errors are shown. Can be `false` to\nnever show errors, `true` to show errors on blur, or a number to show\nerrors on change with the given delay in milliseconds."
|
|
562
|
-
},
|
|
563
|
-
"attribute": "error-update",
|
|
564
|
-
"reflect": false,
|
|
565
|
-
"defaultValue": "0"
|
|
566
|
-
},
|
|
567
|
-
"nativeAttributes": {
|
|
568
|
-
"type": "unknown",
|
|
569
|
-
"mutable": false,
|
|
570
|
-
"complexType": {
|
|
571
|
-
"original": "{ [key: string]: string }",
|
|
572
|
-
"resolved": "undefined | { [key: string]: string; }",
|
|
573
|
-
"references": {}
|
|
574
|
-
},
|
|
575
|
-
"required": false,
|
|
576
|
-
"optional": true,
|
|
577
|
-
"docs": {
|
|
578
|
-
"tags": [],
|
|
579
|
-
"text": "Attributes that will be added to the native HTML input element."
|
|
580
|
-
}
|
|
581
|
-
},
|
|
582
|
-
"nativePickerAttributes": {
|
|
583
|
-
"type": "unknown",
|
|
584
|
-
"mutable": false,
|
|
585
|
-
"complexType": {
|
|
586
|
-
"original": "{ [key: string]: string }",
|
|
587
|
-
"resolved": "undefined | { [key: string]: string; }",
|
|
588
|
-
"references": {}
|
|
589
|
-
},
|
|
590
|
-
"required": false,
|
|
591
|
-
"optional": true,
|
|
592
|
-
"docs": {
|
|
593
|
-
"tags": [],
|
|
594
|
-
"text": "Attributes that will be added to the rendered HTML datepicker element."
|
|
595
48
|
}
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
static get events() {
|
|
600
|
-
return [{
|
|
601
|
-
"method": "catChange",
|
|
602
|
-
"name": "catChange",
|
|
603
|
-
"bubbles": true,
|
|
604
|
-
"cancelable": true,
|
|
605
|
-
"composed": true,
|
|
606
|
-
"docs": {
|
|
607
|
-
"tags": [],
|
|
608
|
-
"text": "Emitted when the value is changed."
|
|
609
|
-
},
|
|
610
|
-
"complexType": {
|
|
611
|
-
"original": "string",
|
|
612
|
-
"resolved": "string",
|
|
613
|
-
"references": {}
|
|
49
|
+
else {
|
|
50
|
+
this.pickr?.clear(false);
|
|
51
|
+
this.catChange.emit(undefined);
|
|
614
52
|
}
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
53
|
+
}
|
|
54
|
+
onDisabledChanged() {
|
|
55
|
+
// Dynamically changing 'disabled' value is not working due to a bug in the
|
|
56
|
+
// library. We thus need to fully recreate the date picker after the value
|
|
57
|
+
// has been updated.
|
|
58
|
+
this.pickr?.destroy();
|
|
59
|
+
this.pickr = undefined;
|
|
60
|
+
setTimeout(() => (this.pickr = this.initDatepicker(this.input)));
|
|
61
|
+
}
|
|
62
|
+
componentDidLoad() {
|
|
63
|
+
this.pickr = this.initDatepicker(this.input);
|
|
64
|
+
}
|
|
65
|
+
componentWillRender() {
|
|
66
|
+
this.hasSlottedLabel = !!this.hostElement.querySelector('[slot="label"]');
|
|
67
|
+
this.hasSlottedHint = !!this.hostElement.querySelector('[slot="hint"]');
|
|
68
|
+
}
|
|
69
|
+
onMinChanged() {
|
|
70
|
+
this.pickr?.set('minDate', this.min);
|
|
71
|
+
this.pickr?.set('maxDate', this.max);
|
|
72
|
+
if (this.value && !this.pickr?.selectedDates?.length) {
|
|
73
|
+
// Dynamically changing 'minDate' or 'maxDate' does not emit a change if
|
|
74
|
+
// the value is cleared due to an invalid date.
|
|
75
|
+
this.pickr?.clear();
|
|
634
76
|
}
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* Programmatically move focus to the datepicker. Use this method instead of
|
|
80
|
+
* `input.focus()`.
|
|
81
|
+
*
|
|
82
|
+
* @param options An optional object providing options to control aspects of
|
|
83
|
+
* the focusing process.
|
|
84
|
+
*/
|
|
85
|
+
async doFocus(options) {
|
|
86
|
+
this._input?.doFocus(options);
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* Programmatically remove focus from the datepicker. Use this method instead of
|
|
90
|
+
* `input.blur()`.
|
|
91
|
+
*/
|
|
92
|
+
async doBlur() {
|
|
93
|
+
this._input?.doBlur();
|
|
94
|
+
}
|
|
95
|
+
render() {
|
|
96
|
+
return (h("cat-input", { ref: el => (this._input = el), requiredMarker: this.requiredMarker, horizontal: this.horizontal, autoComplete: this.autoComplete, clearable: this.clearable, disabled: this.disabled, hint: this.hint, icon: this.icon, iconRight: this.iconRight, identifier: this.identifier, label: this.label, labelHidden: this.labelHidden, name: this.name, placeholder: this.placeholder, textPrefix: this.textPrefix, textSuffix: this.textSuffix, readonly: this.readonly, required: this.required, value: this.value, errors: this.errors, errorUpdate: this.errorUpdate, nativeAttributes: this.nativeAttributes, onCatChange: e => {
|
|
97
|
+
e.stopPropagation();
|
|
98
|
+
this.value = e.detail || undefined;
|
|
99
|
+
}, onCatFocus: e => {
|
|
100
|
+
e.stopPropagation();
|
|
101
|
+
this.catFocus.emit(e.detail);
|
|
102
|
+
}, onCatBlur: e => {
|
|
103
|
+
e.stopPropagation();
|
|
104
|
+
this.catBlur.emit(e.detail);
|
|
105
|
+
} }, this.hasSlottedLabel && (h("span", { slot: "label" }, h("slot", { name: "label" }))), this.hasSlottedHint && (h("span", { slot: "hint" }, h("slot", { name: "hint" })))));
|
|
106
|
+
}
|
|
107
|
+
initDatepicker(input) {
|
|
108
|
+
if (this.disabled || this.readonly || !input) {
|
|
109
|
+
return;
|
|
654
110
|
}
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
111
|
+
// avoid dropdown closing if datepicker is part of a dropdown
|
|
112
|
+
const withinDropdown = !!findClosest('cat-dropdown', input);
|
|
113
|
+
const nativePickerAttributes = withinDropdown ? { 'data-dropdown-no-close': '' } : {};
|
|
114
|
+
return flatpickr(input, getConfig({
|
|
115
|
+
locale: getLocale(i18n.getLocale()),
|
|
116
|
+
format: getFormat(i18n.getLocale(), this.mode),
|
|
117
|
+
mode: this.mode,
|
|
118
|
+
min: this.min,
|
|
119
|
+
max: this.max,
|
|
120
|
+
step: this.step,
|
|
121
|
+
disabled: this.disabled,
|
|
122
|
+
readonly: this.readonly,
|
|
123
|
+
nativePickerAttributes: { ...nativePickerAttributes, ...this.nativePickerAttributes },
|
|
124
|
+
applyChange: value => (this.value = value)
|
|
125
|
+
}));
|
|
126
|
+
}
|
|
127
|
+
static get is() { return "cat-datepicker"; }
|
|
128
|
+
static get encapsulation() { return "shadow"; }
|
|
129
|
+
static get originalStyleUrls() {
|
|
130
|
+
return {
|
|
131
|
+
"$": ["cat-datepicker.scss"]
|
|
132
|
+
};
|
|
133
|
+
}
|
|
134
|
+
static get styleUrls() {
|
|
135
|
+
return {
|
|
136
|
+
"$": ["cat-datepicker.css"]
|
|
137
|
+
};
|
|
138
|
+
}
|
|
139
|
+
static get properties() {
|
|
140
|
+
return {
|
|
141
|
+
"requiredMarker": {
|
|
142
|
+
"type": "string",
|
|
143
|
+
"mutable": false,
|
|
144
|
+
"complexType": {
|
|
145
|
+
"original": "'none' | 'required' | 'optional' | 'none!' | 'optional!' | 'required!'",
|
|
146
|
+
"resolved": "\"none!\" | \"none\" | \"optional!\" | \"optional\" | \"required!\" | \"required\" | undefined",
|
|
147
|
+
"references": {}
|
|
148
|
+
},
|
|
149
|
+
"required": false,
|
|
150
|
+
"optional": true,
|
|
151
|
+
"docs": {
|
|
152
|
+
"tags": [],
|
|
153
|
+
"text": "Whether the label need a marker to shown if the input is required or optional."
|
|
154
|
+
},
|
|
155
|
+
"attribute": "required-marker",
|
|
156
|
+
"reflect": false,
|
|
157
|
+
"defaultValue": "'optional'"
|
|
158
|
+
},
|
|
159
|
+
"horizontal": {
|
|
160
|
+
"type": "boolean",
|
|
161
|
+
"mutable": false,
|
|
162
|
+
"complexType": {
|
|
163
|
+
"original": "boolean",
|
|
164
|
+
"resolved": "boolean",
|
|
165
|
+
"references": {}
|
|
166
|
+
},
|
|
167
|
+
"required": false,
|
|
168
|
+
"optional": false,
|
|
169
|
+
"docs": {
|
|
170
|
+
"tags": [],
|
|
171
|
+
"text": "Whether the label is on top or left."
|
|
172
|
+
},
|
|
173
|
+
"attribute": "horizontal",
|
|
174
|
+
"reflect": false,
|
|
175
|
+
"defaultValue": "false"
|
|
176
|
+
},
|
|
177
|
+
"autoComplete": {
|
|
178
|
+
"type": "string",
|
|
179
|
+
"mutable": false,
|
|
180
|
+
"complexType": {
|
|
181
|
+
"original": "string",
|
|
182
|
+
"resolved": "string | undefined",
|
|
183
|
+
"references": {}
|
|
184
|
+
},
|
|
185
|
+
"required": false,
|
|
186
|
+
"optional": true,
|
|
187
|
+
"docs": {
|
|
188
|
+
"tags": [],
|
|
189
|
+
"text": "Hint for form autofill feature."
|
|
190
|
+
},
|
|
191
|
+
"attribute": "auto-complete",
|
|
192
|
+
"reflect": false
|
|
193
|
+
},
|
|
194
|
+
"clearable": {
|
|
195
|
+
"type": "boolean",
|
|
196
|
+
"mutable": false,
|
|
197
|
+
"complexType": {
|
|
198
|
+
"original": "boolean",
|
|
199
|
+
"resolved": "boolean",
|
|
200
|
+
"references": {}
|
|
201
|
+
},
|
|
202
|
+
"required": false,
|
|
203
|
+
"optional": false,
|
|
204
|
+
"docs": {
|
|
205
|
+
"tags": [],
|
|
206
|
+
"text": "Whether the input should show a clear button."
|
|
207
|
+
},
|
|
208
|
+
"attribute": "clearable",
|
|
209
|
+
"reflect": false,
|
|
210
|
+
"defaultValue": "false"
|
|
211
|
+
},
|
|
212
|
+
"disabled": {
|
|
213
|
+
"type": "boolean",
|
|
214
|
+
"mutable": false,
|
|
215
|
+
"complexType": {
|
|
216
|
+
"original": "boolean",
|
|
217
|
+
"resolved": "boolean",
|
|
218
|
+
"references": {}
|
|
219
|
+
},
|
|
220
|
+
"required": false,
|
|
221
|
+
"optional": false,
|
|
222
|
+
"docs": {
|
|
223
|
+
"tags": [],
|
|
224
|
+
"text": "Whether the input is disabled."
|
|
225
|
+
},
|
|
226
|
+
"attribute": "disabled",
|
|
227
|
+
"reflect": false,
|
|
228
|
+
"defaultValue": "false"
|
|
229
|
+
},
|
|
230
|
+
"hint": {
|
|
231
|
+
"type": "string",
|
|
232
|
+
"mutable": false,
|
|
233
|
+
"complexType": {
|
|
234
|
+
"original": "string | string[]",
|
|
235
|
+
"resolved": "string | string[] | undefined",
|
|
236
|
+
"references": {}
|
|
237
|
+
},
|
|
238
|
+
"required": false,
|
|
239
|
+
"optional": true,
|
|
240
|
+
"docs": {
|
|
241
|
+
"tags": [],
|
|
242
|
+
"text": "Optional hint text(s) to be displayed with the input."
|
|
243
|
+
},
|
|
244
|
+
"attribute": "hint",
|
|
245
|
+
"reflect": false
|
|
246
|
+
},
|
|
247
|
+
"icon": {
|
|
248
|
+
"type": "string",
|
|
249
|
+
"mutable": false,
|
|
250
|
+
"complexType": {
|
|
251
|
+
"original": "string",
|
|
252
|
+
"resolved": "string | undefined",
|
|
253
|
+
"references": {}
|
|
254
|
+
},
|
|
255
|
+
"required": false,
|
|
256
|
+
"optional": true,
|
|
257
|
+
"docs": {
|
|
258
|
+
"tags": [],
|
|
259
|
+
"text": "The name of an icon to be displayed in the input."
|
|
260
|
+
},
|
|
261
|
+
"attribute": "icon",
|
|
262
|
+
"reflect": false
|
|
263
|
+
},
|
|
264
|
+
"iconRight": {
|
|
265
|
+
"type": "boolean",
|
|
266
|
+
"mutable": false,
|
|
267
|
+
"complexType": {
|
|
268
|
+
"original": "boolean",
|
|
269
|
+
"resolved": "boolean",
|
|
270
|
+
"references": {}
|
|
271
|
+
},
|
|
272
|
+
"required": false,
|
|
273
|
+
"optional": false,
|
|
274
|
+
"docs": {
|
|
275
|
+
"tags": [],
|
|
276
|
+
"text": "Display the icon on the right."
|
|
277
|
+
},
|
|
278
|
+
"attribute": "icon-right",
|
|
279
|
+
"reflect": false,
|
|
280
|
+
"defaultValue": "false"
|
|
281
|
+
},
|
|
282
|
+
"identifier": {
|
|
283
|
+
"type": "string",
|
|
284
|
+
"mutable": false,
|
|
285
|
+
"complexType": {
|
|
286
|
+
"original": "string",
|
|
287
|
+
"resolved": "string | undefined",
|
|
288
|
+
"references": {}
|
|
289
|
+
},
|
|
290
|
+
"required": false,
|
|
291
|
+
"optional": true,
|
|
292
|
+
"docs": {
|
|
293
|
+
"tags": [],
|
|
294
|
+
"text": "A unique identifier for the input."
|
|
295
|
+
},
|
|
296
|
+
"attribute": "identifier",
|
|
297
|
+
"reflect": false
|
|
673
298
|
},
|
|
674
|
-
"
|
|
675
|
-
|
|
676
|
-
|
|
299
|
+
"label": {
|
|
300
|
+
"type": "string",
|
|
301
|
+
"mutable": false,
|
|
302
|
+
"complexType": {
|
|
303
|
+
"original": "string",
|
|
304
|
+
"resolved": "string",
|
|
305
|
+
"references": {}
|
|
306
|
+
},
|
|
307
|
+
"required": false,
|
|
308
|
+
"optional": false,
|
|
309
|
+
"docs": {
|
|
310
|
+
"tags": [],
|
|
311
|
+
"text": "The label for the input."
|
|
312
|
+
},
|
|
313
|
+
"attribute": "label",
|
|
314
|
+
"reflect": false,
|
|
315
|
+
"defaultValue": "''"
|
|
316
|
+
},
|
|
317
|
+
"labelHidden": {
|
|
318
|
+
"type": "boolean",
|
|
319
|
+
"mutable": false,
|
|
320
|
+
"complexType": {
|
|
321
|
+
"original": "boolean",
|
|
322
|
+
"resolved": "boolean",
|
|
323
|
+
"references": {}
|
|
324
|
+
},
|
|
325
|
+
"required": false,
|
|
326
|
+
"optional": false,
|
|
327
|
+
"docs": {
|
|
328
|
+
"tags": [],
|
|
329
|
+
"text": "Visually hide the label, but still show it to assistive technologies like screen readers."
|
|
330
|
+
},
|
|
331
|
+
"attribute": "label-hidden",
|
|
332
|
+
"reflect": false,
|
|
333
|
+
"defaultValue": "false"
|
|
334
|
+
},
|
|
335
|
+
"max": {
|
|
336
|
+
"type": "string",
|
|
337
|
+
"mutable": false,
|
|
338
|
+
"complexType": {
|
|
339
|
+
"original": "string",
|
|
340
|
+
"resolved": "string | undefined",
|
|
341
|
+
"references": {}
|
|
342
|
+
},
|
|
343
|
+
"required": false,
|
|
344
|
+
"optional": true,
|
|
345
|
+
"docs": {
|
|
346
|
+
"tags": [],
|
|
347
|
+
"text": "A maximum value as ISO Date string, e.g. 2017-03-04T01:23:43.000Z."
|
|
348
|
+
},
|
|
349
|
+
"attribute": "max",
|
|
350
|
+
"reflect": false
|
|
351
|
+
},
|
|
352
|
+
"min": {
|
|
353
|
+
"type": "string",
|
|
354
|
+
"mutable": false,
|
|
355
|
+
"complexType": {
|
|
356
|
+
"original": "string",
|
|
357
|
+
"resolved": "string | undefined",
|
|
358
|
+
"references": {}
|
|
359
|
+
},
|
|
360
|
+
"required": false,
|
|
361
|
+
"optional": true,
|
|
362
|
+
"docs": {
|
|
363
|
+
"tags": [],
|
|
364
|
+
"text": "A minimum value as ISO Date string, e.g. 2017-03-04T01:23:43.000Z."
|
|
365
|
+
},
|
|
366
|
+
"attribute": "min",
|
|
367
|
+
"reflect": false
|
|
368
|
+
},
|
|
369
|
+
"mode": {
|
|
370
|
+
"type": "string",
|
|
371
|
+
"mutable": false,
|
|
372
|
+
"complexType": {
|
|
373
|
+
"original": "CatDatepickerMode",
|
|
374
|
+
"resolved": "\"date\" | \"daterange\" | \"datetime\" | \"time\" | \"week\"",
|
|
375
|
+
"references": {
|
|
376
|
+
"CatDatepickerMode": {
|
|
377
|
+
"location": "import",
|
|
378
|
+
"path": "./cat-datepicker.mode",
|
|
379
|
+
"id": "src/components/cat-datepicker/cat-datepicker.mode.ts::CatDatepickerMode"
|
|
380
|
+
}
|
|
381
|
+
}
|
|
382
|
+
},
|
|
383
|
+
"required": false,
|
|
384
|
+
"optional": false,
|
|
385
|
+
"docs": {
|
|
386
|
+
"tags": [],
|
|
387
|
+
"text": "The mode of the datepicker, to select a date, time, both, a date range or a week number."
|
|
388
|
+
},
|
|
389
|
+
"attribute": "mode",
|
|
390
|
+
"reflect": false,
|
|
391
|
+
"defaultValue": "'date'"
|
|
392
|
+
},
|
|
393
|
+
"name": {
|
|
394
|
+
"type": "string",
|
|
395
|
+
"mutable": false,
|
|
396
|
+
"complexType": {
|
|
397
|
+
"original": "string",
|
|
398
|
+
"resolved": "string | undefined",
|
|
399
|
+
"references": {}
|
|
400
|
+
},
|
|
401
|
+
"required": false,
|
|
402
|
+
"optional": true,
|
|
403
|
+
"docs": {
|
|
404
|
+
"tags": [],
|
|
405
|
+
"text": "The name of the form control. Submitted with the form as part of a name/value pair."
|
|
406
|
+
},
|
|
407
|
+
"attribute": "name",
|
|
408
|
+
"reflect": false
|
|
409
|
+
},
|
|
410
|
+
"placeholder": {
|
|
411
|
+
"type": "string",
|
|
412
|
+
"mutable": false,
|
|
413
|
+
"complexType": {
|
|
414
|
+
"original": "string",
|
|
415
|
+
"resolved": "string | undefined",
|
|
416
|
+
"references": {}
|
|
417
|
+
},
|
|
418
|
+
"required": false,
|
|
419
|
+
"optional": true,
|
|
420
|
+
"docs": {
|
|
421
|
+
"tags": [],
|
|
422
|
+
"text": "The placeholder text to display within the input."
|
|
423
|
+
},
|
|
424
|
+
"attribute": "placeholder",
|
|
425
|
+
"reflect": false
|
|
426
|
+
},
|
|
427
|
+
"textPrefix": {
|
|
428
|
+
"type": "string",
|
|
429
|
+
"mutable": false,
|
|
430
|
+
"complexType": {
|
|
431
|
+
"original": "string",
|
|
432
|
+
"resolved": "string | undefined",
|
|
433
|
+
"references": {}
|
|
434
|
+
},
|
|
435
|
+
"required": false,
|
|
436
|
+
"optional": true,
|
|
437
|
+
"docs": {
|
|
438
|
+
"tags": [],
|
|
439
|
+
"text": "A textual prefix to be displayed in the input."
|
|
440
|
+
},
|
|
441
|
+
"attribute": "text-prefix",
|
|
442
|
+
"reflect": false
|
|
443
|
+
},
|
|
444
|
+
"textSuffix": {
|
|
445
|
+
"type": "string",
|
|
446
|
+
"mutable": false,
|
|
447
|
+
"complexType": {
|
|
448
|
+
"original": "string",
|
|
449
|
+
"resolved": "string | undefined",
|
|
450
|
+
"references": {}
|
|
451
|
+
},
|
|
452
|
+
"required": false,
|
|
453
|
+
"optional": true,
|
|
454
|
+
"docs": {
|
|
455
|
+
"tags": [],
|
|
456
|
+
"text": "A textual suffix to be displayed in the input."
|
|
457
|
+
},
|
|
458
|
+
"attribute": "text-suffix",
|
|
459
|
+
"reflect": false
|
|
460
|
+
},
|
|
461
|
+
"readonly": {
|
|
462
|
+
"type": "boolean",
|
|
463
|
+
"mutable": false,
|
|
464
|
+
"complexType": {
|
|
465
|
+
"original": "boolean",
|
|
466
|
+
"resolved": "boolean",
|
|
467
|
+
"references": {}
|
|
468
|
+
},
|
|
469
|
+
"required": false,
|
|
470
|
+
"optional": false,
|
|
471
|
+
"docs": {
|
|
472
|
+
"tags": [],
|
|
473
|
+
"text": "The value is not editable."
|
|
474
|
+
},
|
|
475
|
+
"attribute": "readonly",
|
|
476
|
+
"reflect": false,
|
|
477
|
+
"defaultValue": "false"
|
|
478
|
+
},
|
|
479
|
+
"required": {
|
|
480
|
+
"type": "boolean",
|
|
481
|
+
"mutable": false,
|
|
482
|
+
"complexType": {
|
|
483
|
+
"original": "boolean",
|
|
484
|
+
"resolved": "boolean",
|
|
485
|
+
"references": {}
|
|
486
|
+
},
|
|
487
|
+
"required": false,
|
|
488
|
+
"optional": false,
|
|
489
|
+
"docs": {
|
|
490
|
+
"tags": [],
|
|
491
|
+
"text": "A value is required or must be check for the form to be submittable."
|
|
492
|
+
},
|
|
493
|
+
"attribute": "required",
|
|
494
|
+
"reflect": false,
|
|
495
|
+
"defaultValue": "false"
|
|
496
|
+
},
|
|
497
|
+
"step": {
|
|
498
|
+
"type": "number",
|
|
499
|
+
"mutable": false,
|
|
500
|
+
"complexType": {
|
|
501
|
+
"original": "number",
|
|
502
|
+
"resolved": "number",
|
|
503
|
+
"references": {}
|
|
504
|
+
},
|
|
505
|
+
"required": false,
|
|
506
|
+
"optional": false,
|
|
507
|
+
"docs": {
|
|
508
|
+
"tags": [],
|
|
509
|
+
"text": "The step size to use when changing the time."
|
|
510
|
+
},
|
|
511
|
+
"attribute": "step",
|
|
512
|
+
"reflect": false,
|
|
513
|
+
"defaultValue": "5"
|
|
514
|
+
},
|
|
515
|
+
"value": {
|
|
516
|
+
"type": "string",
|
|
517
|
+
"mutable": true,
|
|
518
|
+
"complexType": {
|
|
519
|
+
"original": "string",
|
|
520
|
+
"resolved": "string | undefined",
|
|
521
|
+
"references": {}
|
|
522
|
+
},
|
|
523
|
+
"required": false,
|
|
524
|
+
"optional": true,
|
|
525
|
+
"docs": {
|
|
526
|
+
"tags": [],
|
|
527
|
+
"text": "The value as ISO Date string, e.g. 2017-03-04T01:23:43.000Z or as a week number string."
|
|
528
|
+
},
|
|
529
|
+
"attribute": "value",
|
|
530
|
+
"reflect": false
|
|
531
|
+
},
|
|
532
|
+
"errors": {
|
|
533
|
+
"type": "boolean",
|
|
534
|
+
"mutable": false,
|
|
535
|
+
"complexType": {
|
|
536
|
+
"original": "boolean | string[] | ErrorMap",
|
|
537
|
+
"resolved": "boolean | string[] | undefined | { [key: string]: any; }",
|
|
538
|
+
"references": {
|
|
539
|
+
"ErrorMap": {
|
|
540
|
+
"location": "import",
|
|
541
|
+
"path": "../cat-form-hint/cat-form-hint",
|
|
542
|
+
"id": "src/components/cat-form-hint/cat-form-hint.tsx::ErrorMap"
|
|
543
|
+
}
|
|
544
|
+
}
|
|
545
|
+
},
|
|
546
|
+
"required": false,
|
|
547
|
+
"optional": true,
|
|
548
|
+
"docs": {
|
|
549
|
+
"tags": [],
|
|
550
|
+
"text": "The validation errors for this input. Will render a hint under the input\nwith the translated error message(s) `error.${key}`. If an object is\npassed, the keys will be used as error keys and the values translation\nparameters.\nIf the value is `true`, the input will be marked as invalid without any\nhints under the input."
|
|
551
|
+
},
|
|
552
|
+
"attribute": "errors",
|
|
553
|
+
"reflect": false
|
|
554
|
+
},
|
|
555
|
+
"errorUpdate": {
|
|
556
|
+
"type": "any",
|
|
557
|
+
"mutable": false,
|
|
558
|
+
"complexType": {
|
|
559
|
+
"original": "boolean | number",
|
|
560
|
+
"resolved": "boolean | number",
|
|
561
|
+
"references": {}
|
|
562
|
+
},
|
|
563
|
+
"required": false,
|
|
564
|
+
"optional": false,
|
|
565
|
+
"docs": {
|
|
566
|
+
"tags": [],
|
|
567
|
+
"text": "Fine-grained control over when the errors are shown. Can be `false` to\nnever show errors, `true` to show errors on blur, or a number to show\nerrors on change with the given delay in milliseconds."
|
|
568
|
+
},
|
|
569
|
+
"attribute": "error-update",
|
|
570
|
+
"reflect": false,
|
|
571
|
+
"defaultValue": "0"
|
|
572
|
+
},
|
|
573
|
+
"nativeAttributes": {
|
|
574
|
+
"type": "unknown",
|
|
575
|
+
"mutable": false,
|
|
576
|
+
"complexType": {
|
|
577
|
+
"original": "{ [key: string]: string }",
|
|
578
|
+
"resolved": "undefined | { [key: string]: string; }",
|
|
579
|
+
"references": {}
|
|
580
|
+
},
|
|
581
|
+
"required": false,
|
|
582
|
+
"optional": true,
|
|
583
|
+
"docs": {
|
|
584
|
+
"tags": [],
|
|
585
|
+
"text": "Attributes that will be added to the native HTML input element."
|
|
586
|
+
}
|
|
587
|
+
},
|
|
588
|
+
"nativePickerAttributes": {
|
|
589
|
+
"type": "unknown",
|
|
590
|
+
"mutable": false,
|
|
591
|
+
"complexType": {
|
|
592
|
+
"original": "{ [key: string]: string }",
|
|
593
|
+
"resolved": "undefined | { [key: string]: string; }",
|
|
594
|
+
"references": {}
|
|
595
|
+
},
|
|
596
|
+
"required": false,
|
|
597
|
+
"optional": true,
|
|
598
|
+
"docs": {
|
|
599
|
+
"tags": [],
|
|
600
|
+
"text": "Attributes that will be added to the rendered HTML datepicker element."
|
|
601
|
+
}
|
|
677
602
|
}
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
603
|
+
};
|
|
604
|
+
}
|
|
605
|
+
static get states() {
|
|
606
|
+
return {
|
|
607
|
+
"hasSlottedLabel": {},
|
|
608
|
+
"hasSlottedHint": {}
|
|
609
|
+
};
|
|
610
|
+
}
|
|
611
|
+
static get events() {
|
|
612
|
+
return [{
|
|
613
|
+
"method": "catChange",
|
|
614
|
+
"name": "catChange",
|
|
615
|
+
"bubbles": true,
|
|
616
|
+
"cancelable": true,
|
|
617
|
+
"composed": true,
|
|
618
|
+
"docs": {
|
|
619
|
+
"tags": [],
|
|
620
|
+
"text": "Emitted when the value is changed."
|
|
621
|
+
},
|
|
622
|
+
"complexType": {
|
|
623
|
+
"original": "string",
|
|
624
|
+
"resolved": "string",
|
|
625
|
+
"references": {}
|
|
626
|
+
}
|
|
627
|
+
}, {
|
|
628
|
+
"method": "catFocus",
|
|
629
|
+
"name": "catFocus",
|
|
630
|
+
"bubbles": true,
|
|
631
|
+
"cancelable": true,
|
|
632
|
+
"composed": true,
|
|
633
|
+
"docs": {
|
|
634
|
+
"tags": [],
|
|
635
|
+
"text": "Emitted when the input received focus."
|
|
636
|
+
},
|
|
637
|
+
"complexType": {
|
|
638
|
+
"original": "FocusEvent",
|
|
639
|
+
"resolved": "FocusEvent",
|
|
640
|
+
"references": {
|
|
641
|
+
"FocusEvent": {
|
|
642
|
+
"location": "global",
|
|
643
|
+
"id": "global::FocusEvent"
|
|
644
|
+
}
|
|
645
|
+
}
|
|
646
|
+
}
|
|
647
|
+
}, {
|
|
648
|
+
"method": "catBlur",
|
|
649
|
+
"name": "catBlur",
|
|
650
|
+
"bubbles": true,
|
|
651
|
+
"cancelable": true,
|
|
652
|
+
"composed": true,
|
|
653
|
+
"docs": {
|
|
654
|
+
"tags": [],
|
|
655
|
+
"text": "Emitted when the input loses focus."
|
|
656
|
+
},
|
|
657
|
+
"complexType": {
|
|
658
|
+
"original": "FocusEvent",
|
|
659
|
+
"resolved": "FocusEvent",
|
|
660
|
+
"references": {
|
|
661
|
+
"FocusEvent": {
|
|
662
|
+
"location": "global",
|
|
663
|
+
"id": "global::FocusEvent"
|
|
664
|
+
}
|
|
665
|
+
}
|
|
666
|
+
}
|
|
667
|
+
}];
|
|
668
|
+
}
|
|
669
|
+
static get methods() {
|
|
670
|
+
return {
|
|
671
|
+
"doFocus": {
|
|
672
|
+
"complexType": {
|
|
673
|
+
"signature": "(options?: FocusOptions) => Promise<void>",
|
|
674
|
+
"parameters": [{
|
|
675
|
+
"tags": [{
|
|
676
|
+
"name": "param",
|
|
677
|
+
"text": "options An optional object providing options to control aspects of\nthe focusing process."
|
|
678
|
+
}],
|
|
679
|
+
"text": "An optional object providing options to control aspects of\nthe focusing process."
|
|
680
|
+
}],
|
|
681
|
+
"references": {
|
|
682
|
+
"Promise": {
|
|
683
|
+
"location": "global",
|
|
684
|
+
"id": "global::Promise"
|
|
685
|
+
},
|
|
686
|
+
"FocusOptions": {
|
|
687
|
+
"location": "global",
|
|
688
|
+
"id": "global::FocusOptions"
|
|
689
|
+
}
|
|
690
|
+
},
|
|
691
|
+
"return": "Promise<void>"
|
|
692
|
+
},
|
|
693
|
+
"docs": {
|
|
694
|
+
"text": "Programmatically move focus to the datepicker. Use this method instead of\n`input.focus()`.",
|
|
695
|
+
"tags": [{
|
|
696
|
+
"name": "param",
|
|
697
|
+
"text": "options An optional object providing options to control aspects of\nthe focusing process."
|
|
698
|
+
}]
|
|
699
|
+
}
|
|
700
|
+
},
|
|
701
|
+
"doBlur": {
|
|
702
|
+
"complexType": {
|
|
703
|
+
"signature": "() => Promise<void>",
|
|
704
|
+
"parameters": [],
|
|
705
|
+
"references": {
|
|
706
|
+
"Promise": {
|
|
707
|
+
"location": "global",
|
|
708
|
+
"id": "global::Promise"
|
|
709
|
+
}
|
|
710
|
+
},
|
|
711
|
+
"return": "Promise<void>"
|
|
712
|
+
},
|
|
713
|
+
"docs": {
|
|
714
|
+
"text": "Programmatically remove focus from the datepicker. Use this method instead of\n`input.blur()`.",
|
|
715
|
+
"tags": []
|
|
716
|
+
}
|
|
697
717
|
}
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
"propName": "min",
|
|
720
|
-
"methodName": "onMinChanged"
|
|
721
|
-
}, {
|
|
722
|
-
"propName": "max",
|
|
723
|
-
"methodName": "onMinChanged"
|
|
724
|
-
}];
|
|
725
|
-
}
|
|
718
|
+
};
|
|
719
|
+
}
|
|
720
|
+
static get elementRef() { return "hostElement"; }
|
|
721
|
+
static get watchers() {
|
|
722
|
+
return [{
|
|
723
|
+
"propName": "value",
|
|
724
|
+
"methodName": "onValueChanged"
|
|
725
|
+
}, {
|
|
726
|
+
"propName": "disabled",
|
|
727
|
+
"methodName": "onDisabledChanged"
|
|
728
|
+
}, {
|
|
729
|
+
"propName": "readonly",
|
|
730
|
+
"methodName": "onDisabledChanged"
|
|
731
|
+
}, {
|
|
732
|
+
"propName": "min",
|
|
733
|
+
"methodName": "onMinChanged"
|
|
734
|
+
}, {
|
|
735
|
+
"propName": "max",
|
|
736
|
+
"methodName": "onMinChanged"
|
|
737
|
+
}];
|
|
738
|
+
}
|
|
726
739
|
}
|
|
727
740
|
//# sourceMappingURL=cat-datepicker.js.map
|