@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
|
@@ -12,431 +12,431 @@ let nextUniqueId = 0;
|
|
|
12
12
|
* @part input - The native input element.
|
|
13
13
|
*/
|
|
14
14
|
export class CatToggle {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
}
|
|
33
|
-
get id() {
|
|
34
|
-
return this.identifier || this._id;
|
|
35
|
-
}
|
|
36
|
-
componentWillLoad() {
|
|
37
|
-
this.updateResolved();
|
|
38
|
-
}
|
|
39
|
-
componentWillRender() {
|
|
40
|
-
this.hasSlottedLabel = !!this.hostElement.querySelector('[slot="label"]');
|
|
41
|
-
this.hasSlottedHint = !!this.hostElement.querySelector('[slot="hint"]');
|
|
42
|
-
if (!this.label && !this.hasSlottedLabel) {
|
|
43
|
-
log.warn('[A11y] Missing ARIA label on toggle', this);
|
|
15
|
+
constructor() {
|
|
16
|
+
this._id = `cat-toggle-${nextUniqueId++}`;
|
|
17
|
+
this.hasSlottedLabel = false;
|
|
18
|
+
this.hasSlottedHint = false;
|
|
19
|
+
this.checked = false;
|
|
20
|
+
this.disabled = false;
|
|
21
|
+
this.identifier = undefined;
|
|
22
|
+
this.label = '';
|
|
23
|
+
this.labelHidden = false;
|
|
24
|
+
this.name = undefined;
|
|
25
|
+
this.required = false;
|
|
26
|
+
this.value = undefined;
|
|
27
|
+
this.noValue = undefined;
|
|
28
|
+
this.resolvedValue = null;
|
|
29
|
+
this.hint = undefined;
|
|
30
|
+
this.labelLeft = false;
|
|
31
|
+
this.nativeAttributes = undefined;
|
|
44
32
|
}
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
/**
|
|
57
|
-
* Programmatically remove focus from the toggle. Use this method instead of
|
|
58
|
-
* `input.blur()`.
|
|
59
|
-
*/
|
|
60
|
-
async doBlur() {
|
|
61
|
-
this.input.blur();
|
|
62
|
-
}
|
|
63
|
-
render() {
|
|
64
|
-
return (h(Host, null, h("label", { htmlFor: this.id, class: { 'is-hidden': this.labelHidden, 'is-disabled': this.disabled, 'label-left': this.labelLeft } }, h("input", { ...this.nativeAttributes, part: "input", ref: el => (this.input = el), id: this.id, type: "checkbox", name: this.name, value: this.value, checked: this.checked, required: this.required, disabled: this.disabled, class: "form-check-input", role: "switch", onInput: this.onInput.bind(this), onFocus: this.onFocus.bind(this), onBlur: this.onBlur.bind(this), "aria-describedby": this.hasHint ? this.id + '-hint' : undefined }), h("span", { class: "toggle" }), h("span", { class: "label", part: "label" }, (this.hasSlottedLabel && h("slot", { name: "label" })) || this.label)), this.hasHint && (h("div", { class: { 'hint-wrapper': true, 'label-left': this.labelLeft } }, h("div", { class: "toggle-placeholder" }), h(CatFormHint, { id: this.id, hint: this.hint, slottedHint: this.hasSlottedHint && h("slot", { name: "hint" }) })))));
|
|
65
|
-
}
|
|
66
|
-
get hasHint() {
|
|
67
|
-
return !!this.hint || !!this.hasSlottedHint;
|
|
68
|
-
}
|
|
69
|
-
onInput() {
|
|
70
|
-
this.checked = this.input.checked;
|
|
71
|
-
this.updateResolved();
|
|
72
|
-
this.catChange.emit(this.resolvedValue);
|
|
73
|
-
}
|
|
74
|
-
onFocus(event) {
|
|
75
|
-
this.catFocus.emit(event);
|
|
76
|
-
}
|
|
77
|
-
onBlur(event) {
|
|
78
|
-
this.catBlur.emit(event);
|
|
79
|
-
}
|
|
80
|
-
updateResolved() {
|
|
81
|
-
this.resolvedValue = this.checked ? this.value ?? true : this.noValue ?? false;
|
|
82
|
-
}
|
|
83
|
-
static get is() { return "cat-toggle"; }
|
|
84
|
-
static get encapsulation() { return "shadow"; }
|
|
85
|
-
static get originalStyleUrls() {
|
|
86
|
-
return {
|
|
87
|
-
"$": ["cat-toggle.scss"]
|
|
88
|
-
};
|
|
89
|
-
}
|
|
90
|
-
static get styleUrls() {
|
|
91
|
-
return {
|
|
92
|
-
"$": ["cat-toggle.css"]
|
|
93
|
-
};
|
|
94
|
-
}
|
|
95
|
-
static get properties() {
|
|
96
|
-
return {
|
|
97
|
-
"checked": {
|
|
98
|
-
"type": "boolean",
|
|
99
|
-
"mutable": true,
|
|
100
|
-
"complexType": {
|
|
101
|
-
"original": "boolean",
|
|
102
|
-
"resolved": "boolean",
|
|
103
|
-
"references": {}
|
|
104
|
-
},
|
|
105
|
-
"required": false,
|
|
106
|
-
"optional": false,
|
|
107
|
-
"docs": {
|
|
108
|
-
"tags": [],
|
|
109
|
-
"text": "Checked state of the toggle."
|
|
110
|
-
},
|
|
111
|
-
"attribute": "checked",
|
|
112
|
-
"reflect": false,
|
|
113
|
-
"defaultValue": "false"
|
|
114
|
-
},
|
|
115
|
-
"disabled": {
|
|
116
|
-
"type": "boolean",
|
|
117
|
-
"mutable": false,
|
|
118
|
-
"complexType": {
|
|
119
|
-
"original": "boolean",
|
|
120
|
-
"resolved": "boolean",
|
|
121
|
-
"references": {}
|
|
122
|
-
},
|
|
123
|
-
"required": false,
|
|
124
|
-
"optional": false,
|
|
125
|
-
"docs": {
|
|
126
|
-
"tags": [],
|
|
127
|
-
"text": "Disabled state of the toggle."
|
|
128
|
-
},
|
|
129
|
-
"attribute": "disabled",
|
|
130
|
-
"reflect": false,
|
|
131
|
-
"defaultValue": "false"
|
|
132
|
-
},
|
|
133
|
-
"identifier": {
|
|
134
|
-
"type": "string",
|
|
135
|
-
"mutable": false,
|
|
136
|
-
"complexType": {
|
|
137
|
-
"original": "string",
|
|
138
|
-
"resolved": "string | undefined",
|
|
139
|
-
"references": {}
|
|
140
|
-
},
|
|
141
|
-
"required": false,
|
|
142
|
-
"optional": true,
|
|
143
|
-
"docs": {
|
|
144
|
-
"tags": [],
|
|
145
|
-
"text": "A unique identifier for the input."
|
|
146
|
-
},
|
|
147
|
-
"attribute": "identifier",
|
|
148
|
-
"reflect": false
|
|
149
|
-
},
|
|
150
|
-
"label": {
|
|
151
|
-
"type": "string",
|
|
152
|
-
"mutable": false,
|
|
153
|
-
"complexType": {
|
|
154
|
-
"original": "string",
|
|
155
|
-
"resolved": "string",
|
|
156
|
-
"references": {}
|
|
157
|
-
},
|
|
158
|
-
"required": false,
|
|
159
|
-
"optional": false,
|
|
160
|
-
"docs": {
|
|
161
|
-
"tags": [],
|
|
162
|
-
"text": "The label of the toggle that is visible."
|
|
163
|
-
},
|
|
164
|
-
"attribute": "label",
|
|
165
|
-
"reflect": false,
|
|
166
|
-
"defaultValue": "''"
|
|
167
|
-
},
|
|
168
|
-
"labelHidden": {
|
|
169
|
-
"type": "boolean",
|
|
170
|
-
"mutable": false,
|
|
171
|
-
"complexType": {
|
|
172
|
-
"original": "boolean",
|
|
173
|
-
"resolved": "boolean",
|
|
174
|
-
"references": {}
|
|
175
|
-
},
|
|
176
|
-
"required": false,
|
|
177
|
-
"optional": false,
|
|
178
|
-
"docs": {
|
|
179
|
-
"tags": [],
|
|
180
|
-
"text": "Visually hide the label, but still show it to assistive technologies like screen readers."
|
|
181
|
-
},
|
|
182
|
-
"attribute": "label-hidden",
|
|
183
|
-
"reflect": false,
|
|
184
|
-
"defaultValue": "false"
|
|
185
|
-
},
|
|
186
|
-
"name": {
|
|
187
|
-
"type": "string",
|
|
188
|
-
"mutable": false,
|
|
189
|
-
"complexType": {
|
|
190
|
-
"original": "string",
|
|
191
|
-
"resolved": "string | undefined",
|
|
192
|
-
"references": {}
|
|
193
|
-
},
|
|
194
|
-
"required": false,
|
|
195
|
-
"optional": true,
|
|
196
|
-
"docs": {
|
|
197
|
-
"tags": [],
|
|
198
|
-
"text": "The name of the input."
|
|
199
|
-
},
|
|
200
|
-
"attribute": "name",
|
|
201
|
-
"reflect": false
|
|
202
|
-
},
|
|
203
|
-
"required": {
|
|
204
|
-
"type": "boolean",
|
|
205
|
-
"mutable": false,
|
|
206
|
-
"complexType": {
|
|
207
|
-
"original": "boolean",
|
|
208
|
-
"resolved": "boolean",
|
|
209
|
-
"references": {}
|
|
210
|
-
},
|
|
211
|
-
"required": false,
|
|
212
|
-
"optional": false,
|
|
213
|
-
"docs": {
|
|
214
|
-
"tags": [],
|
|
215
|
-
"text": "Required state of the toggle."
|
|
216
|
-
},
|
|
217
|
-
"attribute": "required",
|
|
218
|
-
"reflect": false,
|
|
219
|
-
"defaultValue": "false"
|
|
220
|
-
},
|
|
221
|
-
"value": {
|
|
222
|
-
"type": "any",
|
|
223
|
-
"mutable": false,
|
|
224
|
-
"complexType": {
|
|
225
|
-
"original": "any",
|
|
226
|
-
"resolved": "any",
|
|
227
|
-
"references": {}
|
|
228
|
-
},
|
|
229
|
-
"required": false,
|
|
230
|
-
"optional": true,
|
|
231
|
-
"docs": {
|
|
232
|
-
"tags": [],
|
|
233
|
-
"text": "The value of the checked toggle."
|
|
234
|
-
},
|
|
235
|
-
"attribute": "value",
|
|
236
|
-
"reflect": false
|
|
237
|
-
},
|
|
238
|
-
"noValue": {
|
|
239
|
-
"type": "any",
|
|
240
|
-
"mutable": false,
|
|
241
|
-
"complexType": {
|
|
242
|
-
"original": "any",
|
|
243
|
-
"resolved": "any",
|
|
244
|
-
"references": {}
|
|
245
|
-
},
|
|
246
|
-
"required": false,
|
|
247
|
-
"optional": true,
|
|
248
|
-
"docs": {
|
|
249
|
-
"tags": [],
|
|
250
|
-
"text": "The value of the unchecked toggle."
|
|
251
|
-
},
|
|
252
|
-
"attribute": "no-value",
|
|
253
|
-
"reflect": false
|
|
254
|
-
},
|
|
255
|
-
"resolvedValue": {
|
|
256
|
-
"type": "any",
|
|
257
|
-
"mutable": true,
|
|
258
|
-
"complexType": {
|
|
259
|
-
"original": "any",
|
|
260
|
-
"resolved": "any",
|
|
261
|
-
"references": {}
|
|
262
|
-
},
|
|
263
|
-
"required": false,
|
|
264
|
-
"optional": false,
|
|
265
|
-
"docs": {
|
|
266
|
-
"tags": [],
|
|
267
|
-
"text": "The resolved value of the toggle, based on the checked state, value and noValue."
|
|
268
|
-
},
|
|
269
|
-
"attribute": "resolved-value",
|
|
270
|
-
"reflect": false,
|
|
271
|
-
"defaultValue": "null"
|
|
272
|
-
},
|
|
273
|
-
"hint": {
|
|
274
|
-
"type": "string",
|
|
275
|
-
"mutable": false,
|
|
276
|
-
"complexType": {
|
|
277
|
-
"original": "string | string[]",
|
|
278
|
-
"resolved": "string | string[] | undefined",
|
|
279
|
-
"references": {}
|
|
280
|
-
},
|
|
281
|
-
"required": false,
|
|
282
|
-
"optional": true,
|
|
283
|
-
"docs": {
|
|
284
|
-
"tags": [],
|
|
285
|
-
"text": "Optional hint text(s) to be displayed with the toggle."
|
|
286
|
-
},
|
|
287
|
-
"attribute": "hint",
|
|
288
|
-
"reflect": false
|
|
289
|
-
},
|
|
290
|
-
"labelLeft": {
|
|
291
|
-
"type": "boolean",
|
|
292
|
-
"mutable": false,
|
|
293
|
-
"complexType": {
|
|
294
|
-
"original": "boolean",
|
|
295
|
-
"resolved": "boolean",
|
|
296
|
-
"references": {}
|
|
297
|
-
},
|
|
298
|
-
"required": false,
|
|
299
|
-
"optional": false,
|
|
300
|
-
"docs": {
|
|
301
|
-
"tags": [],
|
|
302
|
-
"text": "Whether the label should appear to the left of the toggle."
|
|
303
|
-
},
|
|
304
|
-
"attribute": "label-left",
|
|
305
|
-
"reflect": false,
|
|
306
|
-
"defaultValue": "false"
|
|
307
|
-
},
|
|
308
|
-
"nativeAttributes": {
|
|
309
|
-
"type": "unknown",
|
|
310
|
-
"mutable": false,
|
|
311
|
-
"complexType": {
|
|
312
|
-
"original": "{ [key: string]: string }",
|
|
313
|
-
"resolved": "undefined | { [key: string]: string; }",
|
|
314
|
-
"references": {}
|
|
315
|
-
},
|
|
316
|
-
"required": false,
|
|
317
|
-
"optional": true,
|
|
318
|
-
"docs": {
|
|
319
|
-
"tags": [],
|
|
320
|
-
"text": "Attributes that will be added to the native HTML input element."
|
|
321
|
-
}
|
|
322
|
-
}
|
|
323
|
-
};
|
|
324
|
-
}
|
|
325
|
-
static get states() {
|
|
326
|
-
return {
|
|
327
|
-
"hasSlottedLabel": {},
|
|
328
|
-
"hasSlottedHint": {}
|
|
329
|
-
};
|
|
330
|
-
}
|
|
331
|
-
static get events() {
|
|
332
|
-
return [{
|
|
333
|
-
"method": "catChange",
|
|
334
|
-
"name": "catChange",
|
|
335
|
-
"bubbles": true,
|
|
336
|
-
"cancelable": true,
|
|
337
|
-
"composed": true,
|
|
338
|
-
"docs": {
|
|
339
|
-
"tags": [],
|
|
340
|
-
"text": "Emitted when the checked status of the toggle is changed."
|
|
341
|
-
},
|
|
342
|
-
"complexType": {
|
|
343
|
-
"original": "any",
|
|
344
|
-
"resolved": "any",
|
|
345
|
-
"references": {}
|
|
346
|
-
}
|
|
347
|
-
}, {
|
|
348
|
-
"method": "catFocus",
|
|
349
|
-
"name": "catFocus",
|
|
350
|
-
"bubbles": true,
|
|
351
|
-
"cancelable": true,
|
|
352
|
-
"composed": true,
|
|
353
|
-
"docs": {
|
|
354
|
-
"tags": [],
|
|
355
|
-
"text": "Emitted when the toggle received focus."
|
|
356
|
-
},
|
|
357
|
-
"complexType": {
|
|
358
|
-
"original": "FocusEvent",
|
|
359
|
-
"resolved": "FocusEvent",
|
|
360
|
-
"references": {
|
|
361
|
-
"FocusEvent": {
|
|
362
|
-
"location": "global",
|
|
363
|
-
"id": "global::FocusEvent"
|
|
364
|
-
}
|
|
365
|
-
}
|
|
366
|
-
}
|
|
367
|
-
}, {
|
|
368
|
-
"method": "catBlur",
|
|
369
|
-
"name": "catBlur",
|
|
370
|
-
"bubbles": true,
|
|
371
|
-
"cancelable": true,
|
|
372
|
-
"composed": true,
|
|
373
|
-
"docs": {
|
|
374
|
-
"tags": [],
|
|
375
|
-
"text": "Emitted when the toggle loses focus."
|
|
376
|
-
},
|
|
377
|
-
"complexType": {
|
|
378
|
-
"original": "FocusEvent",
|
|
379
|
-
"resolved": "FocusEvent",
|
|
380
|
-
"references": {
|
|
381
|
-
"FocusEvent": {
|
|
382
|
-
"location": "global",
|
|
383
|
-
"id": "global::FocusEvent"
|
|
384
|
-
}
|
|
385
|
-
}
|
|
33
|
+
get id() {
|
|
34
|
+
return this.identifier || this._id;
|
|
35
|
+
}
|
|
36
|
+
componentWillLoad() {
|
|
37
|
+
this.updateResolved();
|
|
38
|
+
}
|
|
39
|
+
componentWillRender() {
|
|
40
|
+
this.hasSlottedLabel = !!this.hostElement.querySelector('[slot="label"]');
|
|
41
|
+
this.hasSlottedHint = !!this.hostElement.querySelector('[slot="hint"]');
|
|
42
|
+
if (!this.label && !this.hasSlottedLabel) {
|
|
43
|
+
log.warn('[A11y] Missing ARIA label on toggle', this);
|
|
386
44
|
}
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Programmatically move focus to the toggle. Use this method instead of
|
|
48
|
+
* `input.focus()`.
|
|
49
|
+
*
|
|
50
|
+
* @param options An optional object providing options to control aspects of
|
|
51
|
+
* the focusing process.
|
|
52
|
+
*/
|
|
53
|
+
async doFocus(options) {
|
|
54
|
+
this.input.focus(options);
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Programmatically remove focus from the toggle. Use this method instead of
|
|
58
|
+
* `input.blur()`.
|
|
59
|
+
*/
|
|
60
|
+
async doBlur() {
|
|
61
|
+
this.input.blur();
|
|
62
|
+
}
|
|
63
|
+
render() {
|
|
64
|
+
return (h(Host, null, h("label", { htmlFor: this.id, class: { 'is-hidden': this.labelHidden, 'is-disabled': this.disabled, 'label-left': this.labelLeft } }, h("input", { ...this.nativeAttributes, part: "input", ref: el => (this.input = el), id: this.id, type: "checkbox", name: this.name, value: this.value, checked: this.checked, required: this.required, disabled: this.disabled, class: "form-check-input", role: "switch", onInput: this.onInput.bind(this), onFocus: this.onFocus.bind(this), onBlur: this.onBlur.bind(this), "aria-describedby": this.hasHint ? this.id + '-hint' : undefined }), h("span", { class: "toggle" }), h("span", { class: "label", part: "label" }, (this.hasSlottedLabel && h("slot", { name: "label" })) || this.label)), this.hasHint && (h("div", { class: { 'hint-wrapper': true, 'label-left': this.labelLeft } }, h("div", { class: "toggle-placeholder" }), h(CatFormHint, { id: this.id, hint: this.hint, slottedHint: this.hasSlottedHint && h("slot", { name: "hint" }) })))));
|
|
65
|
+
}
|
|
66
|
+
get hasHint() {
|
|
67
|
+
return !!this.hint || !!this.hasSlottedHint;
|
|
68
|
+
}
|
|
69
|
+
onInput() {
|
|
70
|
+
this.checked = this.input.checked;
|
|
71
|
+
this.updateResolved();
|
|
72
|
+
this.catChange.emit(this.resolvedValue);
|
|
73
|
+
}
|
|
74
|
+
onFocus(event) {
|
|
75
|
+
this.catFocus.emit(event);
|
|
76
|
+
}
|
|
77
|
+
onBlur(event) {
|
|
78
|
+
this.catBlur.emit(event);
|
|
79
|
+
}
|
|
80
|
+
updateResolved() {
|
|
81
|
+
this.resolvedValue = this.checked ? this.value ?? true : this.noValue ?? false;
|
|
82
|
+
}
|
|
83
|
+
static get is() { return "cat-toggle"; }
|
|
84
|
+
static get encapsulation() { return "shadow"; }
|
|
85
|
+
static get originalStyleUrls() {
|
|
86
|
+
return {
|
|
87
|
+
"$": ["cat-toggle.scss"]
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
static get styleUrls() {
|
|
91
|
+
return {
|
|
92
|
+
"$": ["cat-toggle.css"]
|
|
93
|
+
};
|
|
94
|
+
}
|
|
95
|
+
static get properties() {
|
|
96
|
+
return {
|
|
97
|
+
"checked": {
|
|
98
|
+
"type": "boolean",
|
|
99
|
+
"mutable": true,
|
|
100
|
+
"complexType": {
|
|
101
|
+
"original": "boolean",
|
|
102
|
+
"resolved": "boolean",
|
|
103
|
+
"references": {}
|
|
104
|
+
},
|
|
105
|
+
"required": false,
|
|
106
|
+
"optional": false,
|
|
107
|
+
"docs": {
|
|
108
|
+
"tags": [],
|
|
109
|
+
"text": "Checked state of the toggle."
|
|
110
|
+
},
|
|
111
|
+
"attribute": "checked",
|
|
112
|
+
"reflect": false,
|
|
113
|
+
"defaultValue": "false"
|
|
405
114
|
},
|
|
406
|
-
"
|
|
407
|
-
|
|
408
|
-
|
|
115
|
+
"disabled": {
|
|
116
|
+
"type": "boolean",
|
|
117
|
+
"mutable": false,
|
|
118
|
+
"complexType": {
|
|
119
|
+
"original": "boolean",
|
|
120
|
+
"resolved": "boolean",
|
|
121
|
+
"references": {}
|
|
122
|
+
},
|
|
123
|
+
"required": false,
|
|
124
|
+
"optional": false,
|
|
125
|
+
"docs": {
|
|
126
|
+
"tags": [],
|
|
127
|
+
"text": "Disabled state of the toggle."
|
|
128
|
+
},
|
|
129
|
+
"attribute": "disabled",
|
|
130
|
+
"reflect": false,
|
|
131
|
+
"defaultValue": "false"
|
|
132
|
+
},
|
|
133
|
+
"identifier": {
|
|
134
|
+
"type": "string",
|
|
135
|
+
"mutable": false,
|
|
136
|
+
"complexType": {
|
|
137
|
+
"original": "string",
|
|
138
|
+
"resolved": "string | undefined",
|
|
139
|
+
"references": {}
|
|
140
|
+
},
|
|
141
|
+
"required": false,
|
|
142
|
+
"optional": true,
|
|
143
|
+
"docs": {
|
|
144
|
+
"tags": [],
|
|
145
|
+
"text": "A unique identifier for the input."
|
|
146
|
+
},
|
|
147
|
+
"attribute": "identifier",
|
|
148
|
+
"reflect": false
|
|
149
|
+
},
|
|
150
|
+
"label": {
|
|
151
|
+
"type": "string",
|
|
152
|
+
"mutable": false,
|
|
153
|
+
"complexType": {
|
|
154
|
+
"original": "string",
|
|
155
|
+
"resolved": "string",
|
|
156
|
+
"references": {}
|
|
157
|
+
},
|
|
158
|
+
"required": false,
|
|
159
|
+
"optional": false,
|
|
160
|
+
"docs": {
|
|
161
|
+
"tags": [],
|
|
162
|
+
"text": "The label of the toggle that is visible."
|
|
163
|
+
},
|
|
164
|
+
"attribute": "label",
|
|
165
|
+
"reflect": false,
|
|
166
|
+
"defaultValue": "''"
|
|
167
|
+
},
|
|
168
|
+
"labelHidden": {
|
|
169
|
+
"type": "boolean",
|
|
170
|
+
"mutable": false,
|
|
171
|
+
"complexType": {
|
|
172
|
+
"original": "boolean",
|
|
173
|
+
"resolved": "boolean",
|
|
174
|
+
"references": {}
|
|
175
|
+
},
|
|
176
|
+
"required": false,
|
|
177
|
+
"optional": false,
|
|
178
|
+
"docs": {
|
|
179
|
+
"tags": [],
|
|
180
|
+
"text": "Visually hide the label, but still show it to assistive technologies like screen readers."
|
|
181
|
+
},
|
|
182
|
+
"attribute": "label-hidden",
|
|
183
|
+
"reflect": false,
|
|
184
|
+
"defaultValue": "false"
|
|
185
|
+
},
|
|
186
|
+
"name": {
|
|
187
|
+
"type": "string",
|
|
188
|
+
"mutable": false,
|
|
189
|
+
"complexType": {
|
|
190
|
+
"original": "string",
|
|
191
|
+
"resolved": "string | undefined",
|
|
192
|
+
"references": {}
|
|
193
|
+
},
|
|
194
|
+
"required": false,
|
|
195
|
+
"optional": true,
|
|
196
|
+
"docs": {
|
|
197
|
+
"tags": [],
|
|
198
|
+
"text": "The name of the input."
|
|
199
|
+
},
|
|
200
|
+
"attribute": "name",
|
|
201
|
+
"reflect": false
|
|
202
|
+
},
|
|
203
|
+
"required": {
|
|
204
|
+
"type": "boolean",
|
|
205
|
+
"mutable": false,
|
|
206
|
+
"complexType": {
|
|
207
|
+
"original": "boolean",
|
|
208
|
+
"resolved": "boolean",
|
|
209
|
+
"references": {}
|
|
210
|
+
},
|
|
211
|
+
"required": false,
|
|
212
|
+
"optional": false,
|
|
213
|
+
"docs": {
|
|
214
|
+
"tags": [],
|
|
215
|
+
"text": "Required state of the toggle."
|
|
216
|
+
},
|
|
217
|
+
"attribute": "required",
|
|
218
|
+
"reflect": false,
|
|
219
|
+
"defaultValue": "false"
|
|
220
|
+
},
|
|
221
|
+
"value": {
|
|
222
|
+
"type": "any",
|
|
223
|
+
"mutable": false,
|
|
224
|
+
"complexType": {
|
|
225
|
+
"original": "any",
|
|
226
|
+
"resolved": "any",
|
|
227
|
+
"references": {}
|
|
228
|
+
},
|
|
229
|
+
"required": false,
|
|
230
|
+
"optional": true,
|
|
231
|
+
"docs": {
|
|
232
|
+
"tags": [],
|
|
233
|
+
"text": "The value of the checked toggle."
|
|
234
|
+
},
|
|
235
|
+
"attribute": "value",
|
|
236
|
+
"reflect": false
|
|
237
|
+
},
|
|
238
|
+
"noValue": {
|
|
239
|
+
"type": "any",
|
|
240
|
+
"mutable": false,
|
|
241
|
+
"complexType": {
|
|
242
|
+
"original": "any",
|
|
243
|
+
"resolved": "any",
|
|
244
|
+
"references": {}
|
|
245
|
+
},
|
|
246
|
+
"required": false,
|
|
247
|
+
"optional": true,
|
|
248
|
+
"docs": {
|
|
249
|
+
"tags": [],
|
|
250
|
+
"text": "The value of the unchecked toggle."
|
|
251
|
+
},
|
|
252
|
+
"attribute": "no-value",
|
|
253
|
+
"reflect": false
|
|
254
|
+
},
|
|
255
|
+
"resolvedValue": {
|
|
256
|
+
"type": "any",
|
|
257
|
+
"mutable": true,
|
|
258
|
+
"complexType": {
|
|
259
|
+
"original": "any",
|
|
260
|
+
"resolved": "any",
|
|
261
|
+
"references": {}
|
|
262
|
+
},
|
|
263
|
+
"required": false,
|
|
264
|
+
"optional": false,
|
|
265
|
+
"docs": {
|
|
266
|
+
"tags": [],
|
|
267
|
+
"text": "The resolved value of the toggle, based on the checked state, value and noValue."
|
|
268
|
+
},
|
|
269
|
+
"attribute": "resolved-value",
|
|
270
|
+
"reflect": false,
|
|
271
|
+
"defaultValue": "null"
|
|
272
|
+
},
|
|
273
|
+
"hint": {
|
|
274
|
+
"type": "string",
|
|
275
|
+
"mutable": false,
|
|
276
|
+
"complexType": {
|
|
277
|
+
"original": "string | string[]",
|
|
278
|
+
"resolved": "string | string[] | undefined",
|
|
279
|
+
"references": {}
|
|
280
|
+
},
|
|
281
|
+
"required": false,
|
|
282
|
+
"optional": true,
|
|
283
|
+
"docs": {
|
|
284
|
+
"tags": [],
|
|
285
|
+
"text": "Optional hint text(s) to be displayed with the toggle."
|
|
286
|
+
},
|
|
287
|
+
"attribute": "hint",
|
|
288
|
+
"reflect": false
|
|
289
|
+
},
|
|
290
|
+
"labelLeft": {
|
|
291
|
+
"type": "boolean",
|
|
292
|
+
"mutable": false,
|
|
293
|
+
"complexType": {
|
|
294
|
+
"original": "boolean",
|
|
295
|
+
"resolved": "boolean",
|
|
296
|
+
"references": {}
|
|
297
|
+
},
|
|
298
|
+
"required": false,
|
|
299
|
+
"optional": false,
|
|
300
|
+
"docs": {
|
|
301
|
+
"tags": [],
|
|
302
|
+
"text": "Whether the label should appear to the left of the toggle."
|
|
303
|
+
},
|
|
304
|
+
"attribute": "label-left",
|
|
305
|
+
"reflect": false,
|
|
306
|
+
"defaultValue": "false"
|
|
307
|
+
},
|
|
308
|
+
"nativeAttributes": {
|
|
309
|
+
"type": "unknown",
|
|
310
|
+
"mutable": false,
|
|
311
|
+
"complexType": {
|
|
312
|
+
"original": "{ [key: string]: string }",
|
|
313
|
+
"resolved": "undefined | { [key: string]: string; }",
|
|
314
|
+
"references": {}
|
|
315
|
+
},
|
|
316
|
+
"required": false,
|
|
317
|
+
"optional": true,
|
|
318
|
+
"docs": {
|
|
319
|
+
"tags": [],
|
|
320
|
+
"text": "Attributes that will be added to the native HTML input element."
|
|
321
|
+
}
|
|
409
322
|
}
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
323
|
+
};
|
|
324
|
+
}
|
|
325
|
+
static get states() {
|
|
326
|
+
return {
|
|
327
|
+
"hasSlottedLabel": {},
|
|
328
|
+
"hasSlottedHint": {}
|
|
329
|
+
};
|
|
330
|
+
}
|
|
331
|
+
static get events() {
|
|
332
|
+
return [{
|
|
333
|
+
"method": "catChange",
|
|
334
|
+
"name": "catChange",
|
|
335
|
+
"bubbles": true,
|
|
336
|
+
"cancelable": true,
|
|
337
|
+
"composed": true,
|
|
338
|
+
"docs": {
|
|
339
|
+
"tags": [],
|
|
340
|
+
"text": "Emitted when the checked status of the toggle is changed."
|
|
341
|
+
},
|
|
342
|
+
"complexType": {
|
|
343
|
+
"original": "any",
|
|
344
|
+
"resolved": "any",
|
|
345
|
+
"references": {}
|
|
346
|
+
}
|
|
347
|
+
}, {
|
|
348
|
+
"method": "catFocus",
|
|
349
|
+
"name": "catFocus",
|
|
350
|
+
"bubbles": true,
|
|
351
|
+
"cancelable": true,
|
|
352
|
+
"composed": true,
|
|
353
|
+
"docs": {
|
|
354
|
+
"tags": [],
|
|
355
|
+
"text": "Emitted when the toggle received focus."
|
|
356
|
+
},
|
|
357
|
+
"complexType": {
|
|
358
|
+
"original": "FocusEvent",
|
|
359
|
+
"resolved": "FocusEvent",
|
|
360
|
+
"references": {
|
|
361
|
+
"FocusEvent": {
|
|
362
|
+
"location": "global",
|
|
363
|
+
"id": "global::FocusEvent"
|
|
364
|
+
}
|
|
365
|
+
}
|
|
366
|
+
}
|
|
367
|
+
}, {
|
|
368
|
+
"method": "catBlur",
|
|
369
|
+
"name": "catBlur",
|
|
370
|
+
"bubbles": true,
|
|
371
|
+
"cancelable": true,
|
|
372
|
+
"composed": true,
|
|
373
|
+
"docs": {
|
|
374
|
+
"tags": [],
|
|
375
|
+
"text": "Emitted when the toggle loses focus."
|
|
376
|
+
},
|
|
377
|
+
"complexType": {
|
|
378
|
+
"original": "FocusEvent",
|
|
379
|
+
"resolved": "FocusEvent",
|
|
380
|
+
"references": {
|
|
381
|
+
"FocusEvent": {
|
|
382
|
+
"location": "global",
|
|
383
|
+
"id": "global::FocusEvent"
|
|
384
|
+
}
|
|
385
|
+
}
|
|
386
|
+
}
|
|
387
|
+
}];
|
|
388
|
+
}
|
|
389
|
+
static get methods() {
|
|
390
|
+
return {
|
|
391
|
+
"doFocus": {
|
|
392
|
+
"complexType": {
|
|
393
|
+
"signature": "(options?: FocusOptions) => Promise<void>",
|
|
394
|
+
"parameters": [{
|
|
395
|
+
"tags": [{
|
|
396
|
+
"name": "param",
|
|
397
|
+
"text": "options An optional object providing options to control aspects of\nthe focusing process."
|
|
398
|
+
}],
|
|
399
|
+
"text": "An optional object providing options to control aspects of\nthe focusing process."
|
|
400
|
+
}],
|
|
401
|
+
"references": {
|
|
402
|
+
"Promise": {
|
|
403
|
+
"location": "global",
|
|
404
|
+
"id": "global::Promise"
|
|
405
|
+
},
|
|
406
|
+
"FocusOptions": {
|
|
407
|
+
"location": "global",
|
|
408
|
+
"id": "global::FocusOptions"
|
|
409
|
+
}
|
|
410
|
+
},
|
|
411
|
+
"return": "Promise<void>"
|
|
412
|
+
},
|
|
413
|
+
"docs": {
|
|
414
|
+
"text": "Programmatically move focus to the toggle. Use this method instead of\n`input.focus()`.",
|
|
415
|
+
"tags": [{
|
|
416
|
+
"name": "param",
|
|
417
|
+
"text": "options An optional object providing options to control aspects of\nthe focusing process."
|
|
418
|
+
}]
|
|
419
|
+
}
|
|
420
|
+
},
|
|
421
|
+
"doBlur": {
|
|
422
|
+
"complexType": {
|
|
423
|
+
"signature": "() => Promise<void>",
|
|
424
|
+
"parameters": [],
|
|
425
|
+
"references": {
|
|
426
|
+
"Promise": {
|
|
427
|
+
"location": "global",
|
|
428
|
+
"id": "global::Promise"
|
|
429
|
+
}
|
|
430
|
+
},
|
|
431
|
+
"return": "Promise<void>"
|
|
432
|
+
},
|
|
433
|
+
"docs": {
|
|
434
|
+
"text": "Programmatically remove focus from the toggle. Use this method instead of\n`input.blur()`.",
|
|
435
|
+
"tags": []
|
|
436
|
+
}
|
|
429
437
|
}
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
"docs": {
|
|
434
|
-
"text": "Programmatically remove focus from the toggle. Use this method instead of\n`input.blur()`.",
|
|
435
|
-
"tags": []
|
|
436
|
-
}
|
|
437
|
-
}
|
|
438
|
-
};
|
|
439
|
-
}
|
|
440
|
-
static get elementRef() { return "hostElement"; }
|
|
438
|
+
};
|
|
439
|
+
}
|
|
440
|
+
static get elementRef() { return "hostElement"; }
|
|
441
441
|
}
|
|
442
442
|
//# sourceMappingURL=cat-toggle.js.map
|