@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
|
@@ -3,317 +3,318 @@ import { h, Host } from "@stencil/core";
|
|
|
3
3
|
import isTouchScreen from "../../utils/is-touch-screen";
|
|
4
4
|
let nextUniqueId = 0;
|
|
5
5
|
export class CatTooltip {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
}
|
|
24
|
-
handleKeyDown({ key }) {
|
|
25
|
-
key === 'Escape' && this.hideTooltip();
|
|
26
|
-
}
|
|
27
|
-
componentDidLoad() {
|
|
28
|
-
const slot = this.hostElement.shadowRoot?.querySelector('slot');
|
|
29
|
-
this.trigger = slot?.assignedElements?.()?.[0];
|
|
30
|
-
if (this.trigger && !this.trigger.hasAttribute('aria-describedby')) {
|
|
31
|
-
this.trigger.setAttribute('aria-describedby', this.id);
|
|
6
|
+
constructor() {
|
|
7
|
+
this.id = `cat-tooltip-${nextUniqueId++}`;
|
|
8
|
+
this.inactive = false;
|
|
9
|
+
this.open = false;
|
|
10
|
+
this.content = '';
|
|
11
|
+
this.disabled = false;
|
|
12
|
+
this.placement = 'top';
|
|
13
|
+
this.round = false;
|
|
14
|
+
this.size = 'm';
|
|
15
|
+
this.showDelay = 250;
|
|
16
|
+
this.hideDelay = 0;
|
|
17
|
+
this.longTouchDuration = 1000;
|
|
18
|
+
this.boundShowListener = this.showListener.bind(this);
|
|
19
|
+
this.boundHideListener = this.hideListener.bind(this);
|
|
20
|
+
this.boundWindowTouchStartListener = this.windowTouchStartListener.bind(this);
|
|
21
|
+
this.boundTouchStartListener = this.touchStartListener.bind(this);
|
|
22
|
+
this.boundTouchEndListener = this.touchEndListener.bind(this);
|
|
32
23
|
}
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
this.trigger?.addEventListener('touchstart', this.boundTouchStartListener);
|
|
36
|
-
this.trigger?.addEventListener('touchend', this.boundTouchEndListener);
|
|
24
|
+
handleKeyDown({ key }) {
|
|
25
|
+
key === 'Escape' && this.hideTooltip();
|
|
37
26
|
}
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
27
|
+
componentDidLoad() {
|
|
28
|
+
const slot = this.hostElement.shadowRoot?.querySelector('slot');
|
|
29
|
+
this.trigger = slot?.assignedElements?.()?.[0];
|
|
30
|
+
if (this.trigger && !this.trigger.hasAttribute('aria-describedby')) {
|
|
31
|
+
this.trigger.setAttribute('aria-describedby', this.id);
|
|
32
|
+
}
|
|
33
|
+
if (isTouchScreen) {
|
|
34
|
+
window.addEventListener('touchstart', this.boundWindowTouchStartListener);
|
|
35
|
+
this.trigger?.addEventListener('touchstart', this.boundTouchStartListener);
|
|
36
|
+
this.trigger?.addEventListener('touchend', this.boundTouchEndListener);
|
|
37
|
+
}
|
|
38
|
+
else {
|
|
39
|
+
this.trigger?.addEventListener('focusin', this.boundShowListener);
|
|
40
|
+
this.trigger?.addEventListener('focusout', this.boundHideListener);
|
|
41
|
+
this.trigger?.addEventListener('mouseenter', this.boundShowListener);
|
|
42
|
+
this.trigger?.addEventListener('mouseleave', this.boundHideListener);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
componentWillRender() {
|
|
46
|
+
this.inactive = this.disabled || (!this.content && !this.hostElement.querySelector('[slot="content"]'));
|
|
47
|
+
}
|
|
48
|
+
disconnectedCallback() {
|
|
49
|
+
if (isTouchScreen) {
|
|
50
|
+
window.removeEventListener('touchstart', this.boundWindowTouchStartListener);
|
|
51
|
+
this.trigger?.removeEventListener('touchstart', this.boundTouchStartListener);
|
|
52
|
+
this.trigger?.removeEventListener('touchend', this.boundTouchEndListener);
|
|
53
|
+
}
|
|
54
|
+
else {
|
|
55
|
+
this.trigger?.removeEventListener('mouseenter', this.boundShowListener);
|
|
56
|
+
this.trigger?.removeEventListener('mouseleave', this.boundHideListener);
|
|
57
|
+
this.trigger?.removeEventListener('focusin', this.boundShowListener);
|
|
58
|
+
this.trigger?.removeEventListener('focusout', this.boundHideListener);
|
|
59
|
+
}
|
|
43
60
|
}
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
window.removeEventListener('touchstart', this.boundWindowTouchStartListener);
|
|
52
|
-
this.trigger?.removeEventListener('touchstart', this.boundTouchStartListener);
|
|
53
|
-
this.trigger?.removeEventListener('touchend', this.boundTouchEndListener);
|
|
61
|
+
render() {
|
|
62
|
+
return (h(Host, null, h("slot", null), h("div", { ref: el => (this.tooltip = el), id: this.id, role: "tooltip", "aria-hidden": !this.open, "aria-live": this.open ? 'polite' : 'off', class: {
|
|
63
|
+
tooltip: true,
|
|
64
|
+
'tooltip-hidden': this.inactive,
|
|
65
|
+
'tooltip-round': this.round,
|
|
66
|
+
[`tooltip-${this.size}`]: Boolean(this.size)
|
|
67
|
+
} }, h("slot", { name: "content" }, h("p", null, this.content)))));
|
|
54
68
|
}
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
69
|
+
async update() {
|
|
70
|
+
if (this.trigger && this.tooltip) {
|
|
71
|
+
await computePosition(this.trigger, this.tooltip, {
|
|
72
|
+
strategy: 'fixed',
|
|
73
|
+
placement: this.placement,
|
|
74
|
+
middleware: [offset(CatTooltip.OFFSET), flip(), shift({ padding: CatTooltip.SHIFT_PADDING })]
|
|
75
|
+
}).then(({ x, y }) => {
|
|
76
|
+
if (this.tooltip) {
|
|
77
|
+
Object.assign(this.tooltip.style, {
|
|
78
|
+
left: `${Math.max(0, x)}px`,
|
|
79
|
+
top: `${y}px`
|
|
80
|
+
});
|
|
81
|
+
}
|
|
82
|
+
});
|
|
83
|
+
}
|
|
60
84
|
}
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
}
|
|
70
|
-
async update() {
|
|
71
|
-
if (this.trigger && this.tooltip) {
|
|
72
|
-
await computePosition(this.trigger, this.tooltip, {
|
|
73
|
-
strategy: 'fixed',
|
|
74
|
-
placement: this.placement,
|
|
75
|
-
middleware: [offset(CatTooltip.OFFSET), flip(), shift({ padding: CatTooltip.SHIFT_PADDING })]
|
|
76
|
-
}).then(({ x, y }) => {
|
|
77
|
-
if (this.tooltip) {
|
|
78
|
-
Object.assign(this.tooltip.style, {
|
|
79
|
-
left: `${Math.max(0, x)}px`,
|
|
80
|
-
top: `${y}px`
|
|
81
|
-
});
|
|
85
|
+
showListener() {
|
|
86
|
+
window.clearTimeout(this.hideTimeout);
|
|
87
|
+
this.hideTimeout = undefined;
|
|
88
|
+
if (!this.showTimeout) {
|
|
89
|
+
this.showTimeout = window.setTimeout(() => {
|
|
90
|
+
this.showTimeout = undefined;
|
|
91
|
+
this.showTooltip();
|
|
92
|
+
}, this.showDelay);
|
|
82
93
|
}
|
|
83
|
-
});
|
|
84
94
|
}
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
window.clearTimeout(this.hideTimeout);
|
|
88
|
-
this.hideTimeout = undefined;
|
|
89
|
-
if (!this.showTimeout) {
|
|
90
|
-
this.showTimeout = window.setTimeout(() => {
|
|
95
|
+
hideListener() {
|
|
96
|
+
window.clearTimeout(this.showTimeout);
|
|
91
97
|
this.showTimeout = undefined;
|
|
92
|
-
this.
|
|
93
|
-
|
|
98
|
+
if (!this.hideTimeout) {
|
|
99
|
+
this.hideTimeout = window.setTimeout(() => {
|
|
100
|
+
this.hideTimeout = undefined;
|
|
101
|
+
this.hideTooltip();
|
|
102
|
+
}, this.hideDelay);
|
|
103
|
+
}
|
|
94
104
|
}
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
}, this.hideDelay);
|
|
105
|
+
touchStartListener(event) {
|
|
106
|
+
event.stopPropagation();
|
|
107
|
+
if (!this.touchTimeout) {
|
|
108
|
+
this.touchTimeout = window.setTimeout(() => {
|
|
109
|
+
this.touchTimeout = undefined;
|
|
110
|
+
this.showTooltip();
|
|
111
|
+
}, this.longTouchDuration);
|
|
112
|
+
}
|
|
104
113
|
}
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
event.stopPropagation();
|
|
108
|
-
if (!this.touchTimeout) {
|
|
109
|
-
this.touchTimeout = window.setTimeout(() => {
|
|
114
|
+
touchEndListener() {
|
|
115
|
+
window.clearTimeout(this.touchTimeout);
|
|
110
116
|
this.touchTimeout = undefined;
|
|
111
|
-
this.
|
|
112
|
-
|
|
117
|
+
this.hideTooltip();
|
|
118
|
+
}
|
|
119
|
+
windowTouchStartListener() {
|
|
120
|
+
this.hideTooltip();
|
|
113
121
|
}
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
}
|
|
123
|
-
showTooltip() {
|
|
124
|
-
if (this.trigger && this.tooltip) {
|
|
125
|
-
this.cleanupFloatingUi = autoUpdate(this.trigger, this.tooltip, () => this.update());
|
|
122
|
+
showTooltip() {
|
|
123
|
+
if (this.trigger && this.tooltip) {
|
|
124
|
+
this.cleanupFloatingUi = autoUpdate(this.trigger, this.tooltip, () => this.update());
|
|
125
|
+
}
|
|
126
|
+
if (!this.inactive) {
|
|
127
|
+
this.open = true;
|
|
128
|
+
this.tooltip?.classList.add('tooltip-show');
|
|
129
|
+
}
|
|
126
130
|
}
|
|
127
|
-
|
|
128
|
-
|
|
131
|
+
hideTooltip() {
|
|
132
|
+
this.open = false;
|
|
133
|
+
this.tooltip?.classList.remove('tooltip-show');
|
|
134
|
+
this.cleanupFloatingUi?.();
|
|
135
|
+
this.cleanupFloatingUi = undefined;
|
|
129
136
|
}
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
137
|
+
static get is() { return "cat-tooltip"; }
|
|
138
|
+
static get encapsulation() { return "shadow"; }
|
|
139
|
+
static get originalStyleUrls() {
|
|
140
|
+
return {
|
|
141
|
+
"$": ["cat-tooltip.scss"]
|
|
142
|
+
};
|
|
143
|
+
}
|
|
144
|
+
static get styleUrls() {
|
|
145
|
+
return {
|
|
146
|
+
"$": ["cat-tooltip.css"]
|
|
147
|
+
};
|
|
148
|
+
}
|
|
149
|
+
static get properties() {
|
|
150
|
+
return {
|
|
151
|
+
"content": {
|
|
152
|
+
"type": "string",
|
|
153
|
+
"mutable": false,
|
|
154
|
+
"complexType": {
|
|
155
|
+
"original": "string",
|
|
156
|
+
"resolved": "string",
|
|
157
|
+
"references": {}
|
|
158
|
+
},
|
|
159
|
+
"required": false,
|
|
160
|
+
"optional": false,
|
|
161
|
+
"docs": {
|
|
162
|
+
"tags": [],
|
|
163
|
+
"text": "The content of the tooltip."
|
|
164
|
+
},
|
|
165
|
+
"attribute": "content",
|
|
166
|
+
"reflect": false,
|
|
167
|
+
"defaultValue": "''"
|
|
168
|
+
},
|
|
169
|
+
"disabled": {
|
|
170
|
+
"type": "boolean",
|
|
171
|
+
"mutable": false,
|
|
172
|
+
"complexType": {
|
|
173
|
+
"original": "boolean",
|
|
174
|
+
"resolved": "boolean",
|
|
175
|
+
"references": {}
|
|
176
|
+
},
|
|
177
|
+
"required": false,
|
|
178
|
+
"optional": false,
|
|
179
|
+
"docs": {
|
|
180
|
+
"tags": [],
|
|
181
|
+
"text": "Specifies that the tooltip should be disabled. A disabled tooltip is unusable,\nand invisible. Corresponds with the native HTML disabled attribute."
|
|
182
|
+
},
|
|
183
|
+
"attribute": "disabled",
|
|
184
|
+
"reflect": false,
|
|
185
|
+
"defaultValue": "false"
|
|
186
|
+
},
|
|
187
|
+
"placement": {
|
|
188
|
+
"type": "string",
|
|
189
|
+
"mutable": false,
|
|
190
|
+
"complexType": {
|
|
191
|
+
"original": "Placement",
|
|
192
|
+
"resolved": "\"bottom\" | \"bottom-end\" | \"bottom-start\" | \"left\" | \"left-end\" | \"left-start\" | \"right\" | \"right-end\" | \"right-start\" | \"top\" | \"top-end\" | \"top-start\"",
|
|
193
|
+
"references": {
|
|
194
|
+
"Placement": {
|
|
195
|
+
"location": "import",
|
|
196
|
+
"path": "@floating-ui/dom",
|
|
197
|
+
"id": "../node_modules/.pnpm/@floating-ui+dom@1.5.3/node_modules/@floating-ui/dom/src/types.d.ts::Placement"
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
},
|
|
201
|
+
"required": false,
|
|
202
|
+
"optional": false,
|
|
203
|
+
"docs": {
|
|
204
|
+
"tags": [],
|
|
205
|
+
"text": "The placement of the tooltip."
|
|
206
|
+
},
|
|
207
|
+
"attribute": "placement",
|
|
208
|
+
"reflect": false,
|
|
209
|
+
"defaultValue": "'top'"
|
|
210
|
+
},
|
|
211
|
+
"round": {
|
|
212
|
+
"type": "boolean",
|
|
213
|
+
"mutable": false,
|
|
214
|
+
"complexType": {
|
|
215
|
+
"original": "boolean",
|
|
216
|
+
"resolved": "boolean",
|
|
217
|
+
"references": {}
|
|
218
|
+
},
|
|
219
|
+
"required": false,
|
|
220
|
+
"optional": false,
|
|
221
|
+
"docs": {
|
|
222
|
+
"tags": [],
|
|
223
|
+
"text": "Use round tooltip edges."
|
|
224
|
+
},
|
|
225
|
+
"attribute": "round",
|
|
226
|
+
"reflect": false,
|
|
227
|
+
"defaultValue": "false"
|
|
228
|
+
},
|
|
229
|
+
"size": {
|
|
230
|
+
"type": "string",
|
|
231
|
+
"mutable": false,
|
|
232
|
+
"complexType": {
|
|
233
|
+
"original": "'s' | 'm' | 'l'",
|
|
234
|
+
"resolved": "\"l\" | \"m\" | \"s\"",
|
|
235
|
+
"references": {}
|
|
236
|
+
},
|
|
237
|
+
"required": false,
|
|
238
|
+
"optional": false,
|
|
239
|
+
"docs": {
|
|
240
|
+
"tags": [],
|
|
241
|
+
"text": "The size of the tooltip."
|
|
242
|
+
},
|
|
243
|
+
"attribute": "size",
|
|
244
|
+
"reflect": false,
|
|
245
|
+
"defaultValue": "'m'"
|
|
246
|
+
},
|
|
247
|
+
"showDelay": {
|
|
248
|
+
"type": "number",
|
|
249
|
+
"mutable": false,
|
|
250
|
+
"complexType": {
|
|
251
|
+
"original": "number",
|
|
252
|
+
"resolved": "number",
|
|
253
|
+
"references": {}
|
|
254
|
+
},
|
|
255
|
+
"required": false,
|
|
256
|
+
"optional": false,
|
|
257
|
+
"docs": {
|
|
258
|
+
"tags": [],
|
|
259
|
+
"text": "The delay time for showing tooltip in ms."
|
|
260
|
+
},
|
|
261
|
+
"attribute": "show-delay",
|
|
262
|
+
"reflect": false,
|
|
263
|
+
"defaultValue": "250"
|
|
264
|
+
},
|
|
265
|
+
"hideDelay": {
|
|
266
|
+
"type": "number",
|
|
267
|
+
"mutable": false,
|
|
268
|
+
"complexType": {
|
|
269
|
+
"original": "number",
|
|
270
|
+
"resolved": "number",
|
|
271
|
+
"references": {}
|
|
272
|
+
},
|
|
273
|
+
"required": false,
|
|
274
|
+
"optional": false,
|
|
275
|
+
"docs": {
|
|
276
|
+
"tags": [],
|
|
277
|
+
"text": "The delay time for hiding tooltip in ms."
|
|
278
|
+
},
|
|
279
|
+
"attribute": "hide-delay",
|
|
280
|
+
"reflect": false,
|
|
281
|
+
"defaultValue": "0"
|
|
282
|
+
},
|
|
283
|
+
"longTouchDuration": {
|
|
284
|
+
"type": "number",
|
|
285
|
+
"mutable": false,
|
|
286
|
+
"complexType": {
|
|
287
|
+
"original": "number",
|
|
288
|
+
"resolved": "number",
|
|
289
|
+
"references": {}
|
|
290
|
+
},
|
|
291
|
+
"required": false,
|
|
292
|
+
"optional": false,
|
|
293
|
+
"docs": {
|
|
294
|
+
"tags": [],
|
|
295
|
+
"text": "The duration of tap to show the tooltip."
|
|
296
|
+
},
|
|
297
|
+
"attribute": "long-touch-duration",
|
|
298
|
+
"reflect": false,
|
|
299
|
+
"defaultValue": "1000"
|
|
197
300
|
}
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
"resolved": "boolean",
|
|
216
|
-
"references": {}
|
|
217
|
-
},
|
|
218
|
-
"required": false,
|
|
219
|
-
"optional": false,
|
|
220
|
-
"docs": {
|
|
221
|
-
"tags": [],
|
|
222
|
-
"text": "Use round tooltip edges."
|
|
223
|
-
},
|
|
224
|
-
"attribute": "round",
|
|
225
|
-
"reflect": false,
|
|
226
|
-
"defaultValue": "false"
|
|
227
|
-
},
|
|
228
|
-
"size": {
|
|
229
|
-
"type": "string",
|
|
230
|
-
"mutable": false,
|
|
231
|
-
"complexType": {
|
|
232
|
-
"original": "'s' | 'm' | 'l'",
|
|
233
|
-
"resolved": "\"l\" | \"m\" | \"s\"",
|
|
234
|
-
"references": {}
|
|
235
|
-
},
|
|
236
|
-
"required": false,
|
|
237
|
-
"optional": false,
|
|
238
|
-
"docs": {
|
|
239
|
-
"tags": [],
|
|
240
|
-
"text": "The size of the tooltip."
|
|
241
|
-
},
|
|
242
|
-
"attribute": "size",
|
|
243
|
-
"reflect": false,
|
|
244
|
-
"defaultValue": "'m'"
|
|
245
|
-
},
|
|
246
|
-
"showDelay": {
|
|
247
|
-
"type": "number",
|
|
248
|
-
"mutable": false,
|
|
249
|
-
"complexType": {
|
|
250
|
-
"original": "number",
|
|
251
|
-
"resolved": "number",
|
|
252
|
-
"references": {}
|
|
253
|
-
},
|
|
254
|
-
"required": false,
|
|
255
|
-
"optional": false,
|
|
256
|
-
"docs": {
|
|
257
|
-
"tags": [],
|
|
258
|
-
"text": "The delay time for showing tooltip in ms."
|
|
259
|
-
},
|
|
260
|
-
"attribute": "show-delay",
|
|
261
|
-
"reflect": false,
|
|
262
|
-
"defaultValue": "250"
|
|
263
|
-
},
|
|
264
|
-
"hideDelay": {
|
|
265
|
-
"type": "number",
|
|
266
|
-
"mutable": false,
|
|
267
|
-
"complexType": {
|
|
268
|
-
"original": "number",
|
|
269
|
-
"resolved": "number",
|
|
270
|
-
"references": {}
|
|
271
|
-
},
|
|
272
|
-
"required": false,
|
|
273
|
-
"optional": false,
|
|
274
|
-
"docs": {
|
|
275
|
-
"tags": [],
|
|
276
|
-
"text": "The delay time for hiding tooltip in ms."
|
|
277
|
-
},
|
|
278
|
-
"attribute": "hide-delay",
|
|
279
|
-
"reflect": false,
|
|
280
|
-
"defaultValue": "0"
|
|
281
|
-
},
|
|
282
|
-
"longTouchDuration": {
|
|
283
|
-
"type": "number",
|
|
284
|
-
"mutable": false,
|
|
285
|
-
"complexType": {
|
|
286
|
-
"original": "number",
|
|
287
|
-
"resolved": "number",
|
|
288
|
-
"references": {}
|
|
289
|
-
},
|
|
290
|
-
"required": false,
|
|
291
|
-
"optional": false,
|
|
292
|
-
"docs": {
|
|
293
|
-
"tags": [],
|
|
294
|
-
"text": "The duration of tap to show the tooltip."
|
|
295
|
-
},
|
|
296
|
-
"attribute": "long-touch-duration",
|
|
297
|
-
"reflect": false,
|
|
298
|
-
"defaultValue": "1000"
|
|
299
|
-
}
|
|
300
|
-
};
|
|
301
|
-
}
|
|
302
|
-
static get states() {
|
|
303
|
-
return {
|
|
304
|
-
"hasSlottedContent": {}
|
|
305
|
-
};
|
|
306
|
-
}
|
|
307
|
-
static get elementRef() { return "hostElement"; }
|
|
308
|
-
static get listeners() {
|
|
309
|
-
return [{
|
|
310
|
-
"name": "keydown",
|
|
311
|
-
"method": "handleKeyDown",
|
|
312
|
-
"target": undefined,
|
|
313
|
-
"capture": false,
|
|
314
|
-
"passive": false
|
|
315
|
-
}];
|
|
316
|
-
}
|
|
301
|
+
};
|
|
302
|
+
}
|
|
303
|
+
static get states() {
|
|
304
|
+
return {
|
|
305
|
+
"open": {}
|
|
306
|
+
};
|
|
307
|
+
}
|
|
308
|
+
static get elementRef() { return "hostElement"; }
|
|
309
|
+
static get listeners() {
|
|
310
|
+
return [{
|
|
311
|
+
"name": "keydown",
|
|
312
|
+
"method": "handleKeyDown",
|
|
313
|
+
"target": undefined,
|
|
314
|
+
"capture": false,
|
|
315
|
+
"passive": false
|
|
316
|
+
}];
|
|
317
|
+
}
|
|
317
318
|
}
|
|
318
319
|
CatTooltip.OFFSET = 4;
|
|
319
320
|
CatTooltip.SHIFT_PADDING = 4;
|