@haiilo/catalyst 10.1.1 → 10.3.1
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/assets/fonts/Lato-Black.ttf +0 -0
- package/dist/catalyst/assets/fonts/Lato-Black.woff +0 -0
- package/dist/catalyst/assets/fonts/Lato-Black.woff2 +0 -0
- package/dist/catalyst/assets/fonts/Lato-BlackItalic.ttf +0 -0
- package/dist/catalyst/assets/fonts/Lato-BlackItalic.woff +0 -0
- package/dist/catalyst/assets/fonts/Lato-BlackItalic.woff2 +0 -0
- package/dist/catalyst/assets/fonts/Lato-Bold.ttf +0 -0
- package/dist/catalyst/assets/fonts/Lato-Bold.woff +0 -0
- package/dist/catalyst/assets/fonts/Lato-Bold.woff2 +0 -0
- package/dist/catalyst/assets/fonts/Lato-BoldItalic.ttf +0 -0
- package/dist/catalyst/assets/fonts/Lato-BoldItalic.woff +0 -0
- package/dist/catalyst/assets/fonts/Lato-BoldItalic.woff2 +0 -0
- package/dist/catalyst/assets/fonts/Lato-Hairline.ttf +0 -0
- package/dist/catalyst/assets/fonts/Lato-Hairline.woff +0 -0
- package/dist/catalyst/assets/fonts/Lato-Hairline.woff2 +0 -0
- package/dist/catalyst/assets/fonts/Lato-HairlineItalic.ttf +0 -0
- package/dist/catalyst/assets/fonts/Lato-HairlineItalic.woff +0 -0
- package/dist/catalyst/assets/fonts/Lato-HairlineItalic.woff2 +0 -0
- package/dist/catalyst/assets/fonts/Lato-Heavy.ttf +0 -0
- package/dist/catalyst/assets/fonts/Lato-Heavy.woff +0 -0
- package/dist/catalyst/assets/fonts/Lato-Heavy.woff2 +0 -0
- package/dist/catalyst/assets/fonts/Lato-HeavyItalic.ttf +0 -0
- package/dist/catalyst/assets/fonts/Lato-HeavyItalic.woff +0 -0
- package/dist/catalyst/assets/fonts/Lato-HeavyItalic.woff2 +0 -0
- package/dist/catalyst/assets/fonts/Lato-Italic.ttf +0 -0
- package/dist/catalyst/assets/fonts/Lato-Italic.woff +0 -0
- package/dist/catalyst/assets/fonts/Lato-Italic.woff2 +0 -0
- package/dist/catalyst/assets/fonts/Lato-Light.ttf +0 -0
- package/dist/catalyst/assets/fonts/Lato-Light.woff +0 -0
- package/dist/catalyst/assets/fonts/Lato-Light.woff2 +0 -0
- package/dist/catalyst/assets/fonts/Lato-LightItalic.ttf +0 -0
- package/dist/catalyst/assets/fonts/Lato-LightItalic.woff +0 -0
- package/dist/catalyst/assets/fonts/Lato-LightItalic.woff2 +0 -0
- package/dist/catalyst/assets/fonts/Lato-Medium.ttf +0 -0
- package/dist/catalyst/assets/fonts/Lato-Medium.woff +0 -0
- package/dist/catalyst/assets/fonts/Lato-Medium.woff2 +0 -0
- package/dist/catalyst/assets/fonts/Lato-MediumItalic.ttf +0 -0
- package/dist/catalyst/assets/fonts/Lato-MediumItalic.woff +0 -0
- package/dist/catalyst/assets/fonts/Lato-MediumItalic.woff2 +0 -0
- package/dist/catalyst/assets/fonts/Lato-Regular.ttf +0 -0
- package/dist/catalyst/assets/fonts/Lato-Regular.woff +0 -0
- package/dist/catalyst/assets/fonts/Lato-Regular.woff2 +0 -0
- package/dist/catalyst/assets/fonts/Lato-Semibold.ttf +0 -0
- package/dist/catalyst/assets/fonts/Lato-Semibold.woff +0 -0
- package/dist/catalyst/assets/fonts/Lato-Semibold.woff2 +0 -0
- package/dist/catalyst/assets/fonts/Lato-SemiboldItalic.ttf +0 -0
- package/dist/catalyst/assets/fonts/Lato-SemiboldItalic.woff +0 -0
- package/dist/catalyst/assets/fonts/Lato-SemiboldItalic.woff2 +0 -0
- package/dist/catalyst/assets/fonts/Lato-Thin.ttf +0 -0
- package/dist/catalyst/assets/fonts/Lato-Thin.woff +0 -0
- package/dist/catalyst/assets/fonts/Lato-Thin.woff2 +0 -0
- package/dist/catalyst/assets/fonts/Lato-ThinItalic.ttf +0 -0
- package/dist/catalyst/assets/fonts/Lato-ThinItalic.woff +0 -0
- package/dist/catalyst/assets/fonts/Lato-ThinItalic.woff2 +0 -0
- package/dist/catalyst/catalyst.css +23 -14
- package/dist/catalyst/catalyst.esm.js +1 -1
- package/dist/catalyst/catalyst.esm.js.map +1 -1
- package/dist/catalyst/index.esm.js +2 -3
- package/dist/catalyst/index.esm.js.map +1 -1
- package/dist/catalyst/p-20919029.js +3 -0
- package/dist/catalyst/p-20919029.js.map +1 -0
- package/dist/catalyst/p-81800b65.js +2 -0
- package/dist/catalyst/p-81800b65.js.map +1 -0
- package/dist/catalyst/p-8a1d505d.entry.js +10 -0
- package/dist/catalyst/p-8a1d505d.entry.js.map +1 -0
- package/dist/catalyst/p-e1255160.js +2 -0
- package/dist/catalyst/p-e1255160.js.map +1 -0
- package/dist/catalyst/scss/core/_form.scss +12 -3
- package/dist/cjs/app-globals-3a1e7e63.js +7 -0
- package/dist/cjs/app-globals-3a1e7e63.js.map +1 -0
- package/dist/cjs/{cat-alert_26.cjs.entry.js → cat-alert_28.cjs.entry.js} +2435 -189
- package/dist/cjs/cat-alert_28.cjs.entry.js.map +1 -0
- package/dist/cjs/catalyst.cjs.js +6 -4
- package/dist/cjs/catalyst.cjs.js.map +1 -1
- package/dist/cjs/{index-eb056d5e.js → index-13aff0b4.js} +93 -38
- package/dist/cjs/index-13aff0b4.js.map +1 -0
- package/dist/cjs/index.cjs.js +9 -4
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/cjs/loader.cjs.js +5 -3
- package/dist/cjs/loader.cjs.js.map +1 -1
- package/dist/cjs/{of-30c47b72.js → of-45281229.js} +164 -84
- package/dist/cjs/of-45281229.js.map +1 -0
- package/dist/collection/assets/fonts/Lato-Black.ttf +0 -0
- package/dist/collection/assets/fonts/Lato-Black.woff +0 -0
- package/dist/collection/assets/fonts/Lato-Black.woff2 +0 -0
- package/dist/collection/assets/fonts/Lato-BlackItalic.ttf +0 -0
- package/dist/collection/assets/fonts/Lato-BlackItalic.woff +0 -0
- package/dist/collection/assets/fonts/Lato-BlackItalic.woff2 +0 -0
- package/dist/collection/assets/fonts/Lato-Bold.ttf +0 -0
- package/dist/collection/assets/fonts/Lato-Bold.woff +0 -0
- package/dist/collection/assets/fonts/Lato-Bold.woff2 +0 -0
- package/dist/collection/assets/fonts/Lato-BoldItalic.ttf +0 -0
- package/dist/collection/assets/fonts/Lato-BoldItalic.woff +0 -0
- package/dist/collection/assets/fonts/Lato-BoldItalic.woff2 +0 -0
- package/dist/collection/assets/fonts/Lato-Hairline.ttf +0 -0
- package/dist/collection/assets/fonts/Lato-Hairline.woff +0 -0
- package/dist/collection/assets/fonts/Lato-Hairline.woff2 +0 -0
- package/dist/collection/assets/fonts/Lato-HairlineItalic.ttf +0 -0
- package/dist/collection/assets/fonts/Lato-HairlineItalic.woff +0 -0
- package/dist/collection/assets/fonts/Lato-HairlineItalic.woff2 +0 -0
- package/dist/collection/assets/fonts/Lato-Heavy.ttf +0 -0
- package/dist/collection/assets/fonts/Lato-Heavy.woff +0 -0
- package/dist/collection/assets/fonts/Lato-Heavy.woff2 +0 -0
- package/dist/collection/assets/fonts/Lato-HeavyItalic.ttf +0 -0
- package/dist/collection/assets/fonts/Lato-HeavyItalic.woff +0 -0
- package/dist/collection/assets/fonts/Lato-HeavyItalic.woff2 +0 -0
- package/dist/collection/assets/fonts/Lato-Italic.ttf +0 -0
- package/dist/collection/assets/fonts/Lato-Italic.woff +0 -0
- package/dist/collection/assets/fonts/Lato-Italic.woff2 +0 -0
- package/dist/collection/assets/fonts/Lato-Light.ttf +0 -0
- package/dist/collection/assets/fonts/Lato-Light.woff +0 -0
- package/dist/collection/assets/fonts/Lato-Light.woff2 +0 -0
- package/dist/collection/assets/fonts/Lato-LightItalic.ttf +0 -0
- package/dist/collection/assets/fonts/Lato-LightItalic.woff +0 -0
- package/dist/collection/assets/fonts/Lato-LightItalic.woff2 +0 -0
- package/dist/collection/assets/fonts/Lato-Medium.ttf +0 -0
- package/dist/collection/assets/fonts/Lato-Medium.woff +0 -0
- package/dist/collection/assets/fonts/Lato-Medium.woff2 +0 -0
- package/dist/collection/assets/fonts/Lato-MediumItalic.ttf +0 -0
- package/dist/collection/assets/fonts/Lato-MediumItalic.woff +0 -0
- package/dist/collection/assets/fonts/Lato-MediumItalic.woff2 +0 -0
- package/dist/collection/assets/fonts/Lato-Regular.ttf +0 -0
- package/dist/collection/assets/fonts/Lato-Regular.woff +0 -0
- package/dist/collection/assets/fonts/Lato-Regular.woff2 +0 -0
- package/dist/collection/assets/fonts/Lato-Semibold.ttf +0 -0
- package/dist/collection/assets/fonts/Lato-Semibold.woff +0 -0
- package/dist/collection/assets/fonts/Lato-Semibold.woff2 +0 -0
- package/dist/collection/assets/fonts/Lato-SemiboldItalic.ttf +0 -0
- package/dist/collection/assets/fonts/Lato-SemiboldItalic.woff +0 -0
- package/dist/collection/assets/fonts/Lato-SemiboldItalic.woff2 +0 -0
- package/dist/collection/assets/fonts/Lato-Thin.ttf +0 -0
- package/dist/collection/assets/fonts/Lato-Thin.woff +0 -0
- package/dist/collection/assets/fonts/Lato-Thin.woff2 +0 -0
- package/dist/collection/assets/fonts/Lato-ThinItalic.ttf +0 -0
- package/dist/collection/assets/fonts/Lato-ThinItalic.woff +0 -0
- package/dist/collection/assets/fonts/Lato-ThinItalic.woff2 +0 -0
- package/dist/collection/collection-manifest.json +5 -3
- package/dist/collection/components/cat-alert/cat-alert.css +5 -5
- package/dist/collection/components/cat-alert/cat-alert.js +1 -1
- package/dist/collection/components/cat-alert/cat-alert.js.map +1 -1
- package/dist/collection/components/cat-alert/cat-alert.spec.js +2 -9
- package/dist/collection/components/cat-alert/cat-alert.spec.js.map +1 -1
- package/dist/collection/components/cat-avatar/cat-avatar.js.map +1 -1
- package/dist/collection/components/cat-avatar/cat-avatar.spec.js +3 -7
- package/dist/collection/components/cat-avatar/cat-avatar.spec.js.map +1 -1
- package/dist/collection/components/cat-badge/cat-badge.css +3 -3
- package/dist/collection/components/cat-badge/cat-badge.js +1 -1
- package/dist/collection/components/cat-badge/cat-badge.js.map +1 -1
- package/dist/collection/components/cat-badge/cat-badge.spec.js +2 -6
- package/dist/collection/components/cat-badge/cat-badge.spec.js.map +1 -1
- package/dist/collection/components/cat-button/cat-button.css +39 -10
- package/dist/collection/components/cat-button/cat-button.js +3 -5
- package/dist/collection/components/cat-button/cat-button.js.map +1 -1
- package/dist/collection/components/cat-button/cat-button.spec.js +1 -1
- package/dist/collection/components/cat-button/cat-button.spec.js.map +1 -1
- package/dist/collection/components/cat-button-group/cat-button-group.js +1 -1
- 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 +2 -6
- package/dist/collection/components/cat-button-group/cat-button-group.spec.js.map +1 -1
- package/dist/collection/components/cat-card/cat-card.js +1 -1
- package/dist/collection/components/cat-card/cat-card.js.map +1 -1
- package/dist/collection/components/cat-card/cat-card.spec.js +2 -6
- package/dist/collection/components/cat-card/cat-card.spec.js.map +1 -1
- package/dist/collection/components/cat-checkbox/cat-checkbox.js +4 -6
- package/dist/collection/components/cat-checkbox/cat-checkbox.js.map +1 -1
- package/dist/collection/components/cat-checkbox/cat-checkbox.spec.js +2 -17
- package/dist/collection/components/cat-checkbox/cat-checkbox.spec.js.map +1 -1
- package/dist/collection/components/cat-date/cat-date-locale.js +54 -0
- package/dist/collection/components/cat-date/cat-date-locale.js.map +1 -0
- package/dist/collection/components/cat-date/cat-date-math.js +28 -0
- package/dist/collection/components/cat-date/cat-date-math.js.map +1 -0
- package/dist/collection/components/cat-date/cat-date.css +122 -0
- package/dist/collection/components/cat-date/cat-date.e2e.js +11 -0
- package/dist/collection/components/cat-date/cat-date.e2e.js.map +1 -0
- package/dist/collection/components/cat-date/cat-date.js +923 -0
- package/dist/collection/components/cat-date/cat-date.js.map +1 -0
- package/dist/collection/components/cat-date/cat-date.spec.js +16 -0
- package/dist/collection/components/cat-date/cat-date.spec.js.map +1 -0
- package/dist/collection/components/cat-datepicker/cat-datepicker.config.js.map +1 -1
- package/dist/collection/components/cat-datepicker/cat-datepicker.js +7 -9
- package/dist/collection/components/cat-datepicker/cat-datepicker.js.map +1 -1
- package/dist/collection/components/cat-datepicker/cat-datepicker.spec.js +3 -8
- package/dist/collection/components/cat-datepicker/cat-datepicker.spec.js.map +1 -1
- package/dist/collection/components/cat-datepicker-inline/cat-datepicker-inline.js +2 -2
- 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 +2 -8
- package/dist/collection/components/cat-datepicker-inline/cat-datepicker-inline.spec.js.map +1 -1
- package/dist/collection/components/cat-dropdown/cat-dropdown.js +101 -31
- package/dist/collection/components/cat-dropdown/cat-dropdown.js.map +1 -1
- package/dist/collection/components/cat-dropdown/cat-dropdown.spec.js +2 -8
- package/dist/collection/components/cat-dropdown/cat-dropdown.spec.js.map +1 -1
- package/dist/collection/components/cat-form-group/cat-form-group.js +1 -1
- 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 +2 -6
- 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.spec.js +1 -1
- 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.map +1 -1
- package/dist/collection/components/cat-icon/cat-icon-registry.js +27 -15
- package/dist/collection/components/cat-icon/cat-icon-registry.js.map +1 -1
- package/dist/collection/components/cat-icon/cat-icon.js +1 -1
- package/dist/collection/components/cat-icon/cat-icon.js.map +1 -1
- package/dist/collection/components/cat-icon/cat-icon.spec.js +1 -1
- package/dist/collection/components/cat-icon/cat-icon.spec.js.map +1 -1
- package/dist/collection/components/cat-input/cat-input.css +28 -13
- package/dist/collection/components/cat-input/cat-input.js +47 -11
- package/dist/collection/components/cat-input/cat-input.js.map +1 -1
- package/dist/collection/components/cat-input/cat-input.spec.js +2 -23
- package/dist/collection/components/cat-input/cat-input.spec.js.map +1 -1
- package/dist/collection/components/cat-notification/cat-notification.js.map +1 -1
- package/dist/collection/components/cat-pagination/cat-pagination.js +2 -2
- package/dist/collection/components/cat-pagination/cat-pagination.js.map +1 -1
- package/dist/collection/components/cat-pagination/cat-pagination.spec.js +2 -18
- package/dist/collection/components/cat-pagination/cat-pagination.spec.js.map +1 -1
- package/dist/collection/components/cat-radio/cat-radio.js +4 -6
- package/dist/collection/components/cat-radio/cat-radio.js.map +1 -1
- package/dist/collection/components/cat-radio/cat-radio.spec.js +3 -13
- package/dist/collection/components/cat-radio/cat-radio.spec.js.map +1 -1
- package/dist/collection/components/cat-radio-group/cat-radio-group.js +1 -1
- 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 +2 -8
- package/dist/collection/components/cat-radio-group/cat-radio-group.spec.js.map +1 -1
- package/dist/collection/components/cat-scrollable/cat-scrollable.js +3 -3
- package/dist/collection/components/cat-scrollable/cat-scrollable.js.map +1 -1
- package/dist/collection/components/cat-scrollable/cat-scrollable.spec.js +2 -13
- package/dist/collection/components/cat-scrollable/cat-scrollable.spec.js.map +1 -1
- package/dist/collection/components/cat-select/cat-select.css +13 -13
- package/dist/collection/components/cat-select/cat-select.js +15 -19
- package/dist/collection/components/cat-select/cat-select.js.map +1 -1
- package/dist/collection/components/cat-select/cat-select.spec.js +2 -28
- package/dist/collection/components/cat-select/cat-select.spec.js.map +1 -1
- package/dist/collection/components/cat-select-demo/cat-select-demo.js +1 -1
- package/dist/collection/components/cat-select-demo/cat-select-demo.js.map +1 -1
- package/dist/collection/components/cat-skeleton/cat-skeleton.js +1 -1
- package/dist/collection/components/cat-skeleton/cat-skeleton.js.map +1 -1
- package/dist/collection/components/cat-skeleton/cat-skeleton.spec.js +2 -6
- package/dist/collection/components/cat-skeleton/cat-skeleton.spec.js.map +1 -1
- package/dist/collection/components/cat-spinner/cat-spinner.js +2 -2
- package/dist/collection/components/cat-spinner/cat-spinner.js.map +1 -1
- package/dist/collection/components/cat-spinner/cat-spinner.spec.js +1 -1
- package/dist/collection/components/cat-spinner/cat-spinner.spec.js.map +1 -1
- package/dist/collection/components/cat-tab/cat-tab.js +1 -1
- package/dist/collection/components/cat-tab/cat-tab.js.map +1 -1
- package/dist/collection/components/cat-tab/cat-tab.spec.js +2 -5
- package/dist/collection/components/cat-tab/cat-tab.spec.js.map +1 -1
- package/dist/collection/components/cat-tabs/cat-tabs.js +7 -11
- package/dist/collection/components/cat-tabs/cat-tabs.js.map +1 -1
- package/dist/collection/components/cat-tabs/cat-tabs.spec.js +2 -5
- package/dist/collection/components/cat-tabs/cat-tabs.spec.js.map +1 -1
- package/dist/collection/components/cat-textarea/cat-textarea.css +13 -13
- package/dist/collection/components/cat-textarea/cat-textarea.js +6 -8
- package/dist/collection/components/cat-textarea/cat-textarea.js.map +1 -1
- package/dist/collection/components/cat-textarea/cat-textarea.spec.js +2 -21
- package/dist/collection/components/cat-textarea/cat-textarea.spec.js.map +1 -1
- package/dist/collection/components/cat-time/cat-time-locale.js +15 -0
- package/dist/collection/components/cat-time/cat-time-locale.js.map +1 -0
- package/dist/collection/components/cat-time/cat-time-math.js +28 -0
- package/dist/collection/components/cat-time/cat-time-math.js.map +1 -0
- package/dist/collection/components/cat-time/cat-time.css +41 -0
- package/dist/collection/components/cat-time/cat-time.e2e.js +11 -0
- package/dist/collection/components/cat-time/cat-time.e2e.js.map +1 -0
- package/dist/collection/components/cat-time/cat-time.js +801 -0
- package/dist/collection/components/cat-time/cat-time.js.map +1 -0
- package/dist/collection/components/cat-time/cat-time.spec.js +16 -0
- package/dist/collection/components/cat-time/cat-time.spec.js.map +1 -0
- package/dist/collection/components/cat-toggle/cat-toggle.js +4 -6
- package/dist/collection/components/cat-toggle/cat-toggle.js.map +1 -1
- package/dist/collection/components/cat-toggle/cat-toggle.spec.js +2 -10
- package/dist/collection/components/cat-toggle/cat-toggle.spec.js.map +1 -1
- package/dist/collection/components/cat-tooltip/cat-tooltip.js +3 -3
- package/dist/collection/components/cat-tooltip/cat-tooltip.js.map +1 -1
- package/dist/collection/components/cat-tooltip/cat-tooltip.spec.js +1 -9
- package/dist/collection/components/cat-tooltip/cat-tooltip.spec.js.map +1 -1
- package/dist/collection/scss/core/_form.scss +12 -3
- package/dist/collection/utils/find-closest.js.map +1 -1
- package/dist/collection/utils/media-matcher.js.map +1 -1
- package/dist/collection/utils/platform.js.map +1 -1
- package/dist/collection/utils/setDefault.js.map +1 -1
- package/dist/components/cat-alert.js +4 -3
- package/dist/components/cat-alert.js.map +1 -1
- package/dist/components/cat-avatar2.js +4 -3
- package/dist/components/cat-avatar2.js.map +1 -1
- package/dist/components/cat-badge.js +4 -3
- package/dist/components/cat-badge.js.map +1 -1
- package/dist/components/cat-button-group.js +3 -2
- package/dist/components/cat-button-group.js.map +1 -1
- package/dist/components/cat-button2.js +6 -5
- package/dist/components/cat-button2.js.map +1 -1
- package/dist/components/cat-card.js +3 -2
- package/dist/components/cat-card.js.map +1 -1
- package/dist/components/cat-checkbox2.js +5 -4
- package/dist/components/cat-checkbox2.js.map +1 -1
- package/dist/components/cat-date.d.ts +11 -0
- package/dist/components/cat-date.js +469 -0
- package/dist/components/cat-date.js.map +1 -0
- package/dist/components/cat-datepicker-inline.js +4 -3
- package/dist/components/cat-datepicker-inline.js.map +1 -1
- package/dist/components/cat-datepicker.js +4 -3
- package/dist/components/cat-datepicker.js.map +1 -1
- package/dist/components/cat-datepicker.locale.js +8 -4
- package/dist/components/cat-datepicker.locale.js.map +1 -1
- package/dist/components/cat-dropdown2.js +37 -31
- package/dist/components/cat-dropdown2.js.map +1 -1
- package/dist/components/cat-form-group.js +3 -2
- package/dist/components/cat-form-group.js.map +1 -1
- package/dist/components/cat-i18n-registry.js +7 -7
- package/dist/components/cat-i18n-registry.js.map +1 -1
- package/dist/components/cat-icon-registry.js +37 -22
- package/dist/components/cat-icon-registry.js.map +1 -1
- package/dist/components/cat-icon2.js +3 -2
- package/dist/components/cat-icon2.js.map +1 -1
- package/dist/components/cat-input2.js +1576 -9
- package/dist/components/cat-input2.js.map +1 -1
- package/dist/components/cat-pagination.js +4 -3
- package/dist/components/cat-pagination.js.map +1 -1
- package/dist/components/cat-radio-group.js +3 -2
- package/dist/components/cat-radio-group.js.map +1 -1
- package/dist/components/cat-radio.js +5 -4
- package/dist/components/cat-radio.js.map +1 -1
- package/dist/components/cat-scrollable2.js +5 -4
- package/dist/components/cat-scrollable2.js.map +1 -1
- package/dist/components/cat-select-demo.js +1 -1
- package/dist/components/cat-select-demo.js.map +1 -1
- package/dist/components/cat-select2.js +10 -9
- package/dist/components/cat-select2.js.map +1 -1
- package/dist/components/cat-skeleton2.js +3 -2
- package/dist/components/cat-skeleton2.js.map +1 -1
- package/dist/components/cat-spinner2.js +4 -3
- package/dist/components/cat-spinner2.js.map +1 -1
- package/dist/components/cat-tab.js +3 -2
- package/dist/components/cat-tab.js.map +1 -1
- package/dist/components/cat-tabs.js +3 -2
- package/dist/components/cat-tabs.js.map +1 -1
- package/dist/components/cat-textarea.js +8 -7
- package/dist/components/cat-textarea.js.map +1 -1
- package/dist/components/cat-time.d.ts +11 -0
- package/dist/components/cat-time.js +303 -0
- package/dist/components/cat-time.js.map +1 -0
- package/dist/components/cat-toggle.js +5 -4
- package/dist/components/cat-toggle.js.map +1 -1
- package/dist/components/cat-tooltip.js +5 -4
- package/dist/components/cat-tooltip.js.map +1 -1
- package/dist/components/floating-ui.dom.esm.js +97 -45
- package/dist/components/floating-ui.dom.esm.js.map +1 -1
- package/dist/components/from.js +16 -1
- package/dist/components/from.js.map +1 -1
- package/dist/components/index.js +9 -4
- package/dist/components/index.js.map +1 -1
- package/dist/components/loglevel.js +106 -55
- package/dist/components/loglevel.js.map +1 -1
- package/dist/esm/app-globals-0f993ce5.js +5 -0
- package/dist/esm/app-globals-0f993ce5.js.map +1 -0
- package/dist/esm/{cat-alert_26.entry.js → cat-alert_28.entry.js} +2435 -191
- package/dist/esm/cat-alert_28.entry.js.map +1 -0
- package/dist/esm/catalyst.js +7 -5
- package/dist/esm/catalyst.js.map +1 -1
- package/dist/esm/{index-acddba36.js → index-ecb4a974.js} +93 -38
- package/dist/esm/index-ecb4a974.js.map +1 -0
- package/dist/esm/index.js +10 -5
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/loader.js +6 -4
- package/dist/esm/loader.js.map +1 -1
- package/dist/esm/{of-4b71dda1.js → of-19888f3b.js} +164 -83
- package/dist/esm/of-19888f3b.js.map +1 -0
- package/dist/types/components/cat-date/cat-date-locale.d.ts +24 -0
- package/dist/types/components/cat-date/cat-date-math.d.ts +7 -0
- package/dist/types/components/cat-date/cat-date.d.ts +180 -0
- package/dist/types/components/cat-dropdown/cat-dropdown.d.ts +9 -3
- package/dist/types/components/cat-input/cat-input.d.ts +9 -2
- package/dist/types/components/cat-time/cat-time-locale.d.ts +6 -0
- package/dist/types/components/cat-time/cat-time-math.d.ts +3 -0
- package/dist/types/components/cat-time/cat-time.d.ts +168 -0
- package/dist/types/components.d.ts +551 -8
- package/package.json +20 -18
- package/dist/catalyst/p-2a5b4714.entry.js +0 -10
- package/dist/catalyst/p-2a5b4714.entry.js.map +0 -1
- package/dist/catalyst/p-6cd4fa1e.js +0 -3
- package/dist/catalyst/p-6cd4fa1e.js.map +0 -1
- package/dist/catalyst/p-f5febe1f.js +0 -2
- package/dist/catalyst/p-f5febe1f.js.map +0 -1
- package/dist/cjs/cat-alert_26.cjs.entry.js.map +0 -1
- package/dist/cjs/index-eb056d5e.js.map +0 -1
- package/dist/cjs/of-30c47b72.js.map +0 -1
- package/dist/esm/cat-alert_26.entry.js.map +0 -1
- package/dist/esm/index-acddba36.js.map +0 -1
- package/dist/esm/of-4b71dda1.js.map +0 -1
|
@@ -1,26 +1,15 @@
|
|
|
1
1
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
return module = {
|
|
5
|
-
path: basedir,
|
|
6
|
-
exports: {},
|
|
7
|
-
require: function (path, base) {
|
|
8
|
-
return commonjsRequire();
|
|
9
|
-
}
|
|
10
|
-
}, fn(module, module.exports), module.exports;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
function commonjsRequire () {
|
|
14
|
-
throw new Error('Dynamic requires are not currently supported by @rollup/plugin-commonjs');
|
|
15
|
-
}
|
|
3
|
+
var loglevel = {exports: {}};
|
|
16
4
|
|
|
17
|
-
var loglevel = createCommonjsModule(function (module) {
|
|
18
5
|
/*
|
|
19
6
|
* loglevel - https://github.com/pimterry/loglevel
|
|
20
7
|
*
|
|
21
8
|
* Copyright (c) 2013 Tim Perry
|
|
22
9
|
* Licensed under the MIT license.
|
|
23
10
|
*/
|
|
11
|
+
|
|
12
|
+
(function (module) {
|
|
24
13
|
(function (root, definition) {
|
|
25
14
|
if (module.exports) {
|
|
26
15
|
module.exports = definition();
|
|
@@ -44,6 +33,9 @@ var loglevel = createCommonjsModule(function (module) {
|
|
|
44
33
|
"error"
|
|
45
34
|
];
|
|
46
35
|
|
|
36
|
+
var _loggersByName = {};
|
|
37
|
+
var defaultLogger = null;
|
|
38
|
+
|
|
47
39
|
// Cross-browser bind equivalent that works at least back to IE6
|
|
48
40
|
function bindMethod(obj, methodName) {
|
|
49
41
|
var method = obj[methodName];
|
|
@@ -96,25 +88,33 @@ var loglevel = createCommonjsModule(function (module) {
|
|
|
96
88
|
|
|
97
89
|
// These private functions always need `this` to be set properly
|
|
98
90
|
|
|
99
|
-
function replaceLoggingMethods(
|
|
91
|
+
function replaceLoggingMethods() {
|
|
100
92
|
/*jshint validthis:true */
|
|
93
|
+
var level = this.getLevel();
|
|
94
|
+
|
|
95
|
+
// Replace the actual methods.
|
|
101
96
|
for (var i = 0; i < logMethods.length; i++) {
|
|
102
97
|
var methodName = logMethods[i];
|
|
103
98
|
this[methodName] = (i < level) ?
|
|
104
99
|
noop :
|
|
105
|
-
this.methodFactory(methodName, level,
|
|
100
|
+
this.methodFactory(methodName, level, this.name);
|
|
106
101
|
}
|
|
107
102
|
|
|
108
103
|
// Define log.log as an alias for log.debug
|
|
109
104
|
this.log = this.debug;
|
|
105
|
+
|
|
106
|
+
// Return any important warnings.
|
|
107
|
+
if (typeof console === undefinedType && level < this.levels.SILENT) {
|
|
108
|
+
return "No console available for logging";
|
|
109
|
+
}
|
|
110
110
|
}
|
|
111
111
|
|
|
112
112
|
// In old IE versions, the console isn't present until you first open it.
|
|
113
113
|
// We build realMethod() replacements here that regenerate logging methods
|
|
114
|
-
function enableLoggingWhenConsoleArrives(methodName
|
|
114
|
+
function enableLoggingWhenConsoleArrives(methodName) {
|
|
115
115
|
return function () {
|
|
116
116
|
if (typeof console !== undefinedType) {
|
|
117
|
-
replaceLoggingMethods.call(this
|
|
117
|
+
replaceLoggingMethods.call(this);
|
|
118
118
|
this[methodName].apply(this, arguments);
|
|
119
119
|
}
|
|
120
120
|
};
|
|
@@ -122,16 +122,36 @@ var loglevel = createCommonjsModule(function (module) {
|
|
|
122
122
|
|
|
123
123
|
// By default, we use closely bound real methods wherever possible, and
|
|
124
124
|
// otherwise we wait for a console to appear, and then try again.
|
|
125
|
-
function defaultMethodFactory(methodName,
|
|
125
|
+
function defaultMethodFactory(methodName, _level, _loggerName) {
|
|
126
126
|
/*jshint validthis:true */
|
|
127
127
|
return realMethod(methodName) ||
|
|
128
128
|
enableLoggingWhenConsoleArrives.apply(this, arguments);
|
|
129
129
|
}
|
|
130
130
|
|
|
131
|
-
function Logger(name,
|
|
131
|
+
function Logger(name, factory) {
|
|
132
|
+
// Private instance variables.
|
|
132
133
|
var self = this;
|
|
133
|
-
|
|
134
|
-
|
|
134
|
+
/**
|
|
135
|
+
* The level inherited from a parent logger (or a global default). We
|
|
136
|
+
* cache this here rather than delegating to the parent so that it stays
|
|
137
|
+
* in sync with the actual logging methods that we have installed (the
|
|
138
|
+
* parent could change levels but we might not have rebuilt the loggers
|
|
139
|
+
* in this child yet).
|
|
140
|
+
* @type {number}
|
|
141
|
+
*/
|
|
142
|
+
var inheritedLevel;
|
|
143
|
+
/**
|
|
144
|
+
* The default level for this logger, if any. If set, this overrides
|
|
145
|
+
* `inheritedLevel`.
|
|
146
|
+
* @type {number|null}
|
|
147
|
+
*/
|
|
148
|
+
var defaultLevel;
|
|
149
|
+
/**
|
|
150
|
+
* A user-specific level for this logger. If set, this overrides
|
|
151
|
+
* `defaultLevel`.
|
|
152
|
+
* @type {number|null}
|
|
153
|
+
*/
|
|
154
|
+
var userLevel;
|
|
135
155
|
|
|
136
156
|
var storageKey = "loglevel";
|
|
137
157
|
if (typeof name === "string") {
|
|
@@ -171,10 +191,12 @@ var loglevel = createCommonjsModule(function (module) {
|
|
|
171
191
|
if (typeof storedLevel === undefinedType) {
|
|
172
192
|
try {
|
|
173
193
|
var cookie = window.document.cookie;
|
|
174
|
-
var
|
|
175
|
-
|
|
194
|
+
var cookieName = encodeURIComponent(storageKey);
|
|
195
|
+
var location = cookie.indexOf(cookieName + "=");
|
|
176
196
|
if (location !== -1) {
|
|
177
|
-
storedLevel = /^([^;]+)/.exec(
|
|
197
|
+
storedLevel = /^([^;]+)/.exec(
|
|
198
|
+
cookie.slice(location + cookieName.length + 1)
|
|
199
|
+
)[1];
|
|
178
200
|
}
|
|
179
201
|
} catch (ignore) {}
|
|
180
202
|
}
|
|
@@ -193,7 +215,6 @@ var loglevel = createCommonjsModule(function (module) {
|
|
|
193
215
|
// Use localStorage if available
|
|
194
216
|
try {
|
|
195
217
|
window.localStorage.removeItem(storageKey);
|
|
196
|
-
return;
|
|
197
218
|
} catch (ignore) {}
|
|
198
219
|
|
|
199
220
|
// Use session cookie as fallback
|
|
@@ -203,6 +224,18 @@ var loglevel = createCommonjsModule(function (module) {
|
|
|
203
224
|
} catch (ignore) {}
|
|
204
225
|
}
|
|
205
226
|
|
|
227
|
+
function normalizeLevel(input) {
|
|
228
|
+
var level = input;
|
|
229
|
+
if (typeof level === "string" && self.levels[level.toUpperCase()] !== undefined) {
|
|
230
|
+
level = self.levels[level.toUpperCase()];
|
|
231
|
+
}
|
|
232
|
+
if (typeof level === "number" && level >= 0 && level <= self.levels.SILENT) {
|
|
233
|
+
return level;
|
|
234
|
+
} else {
|
|
235
|
+
throw new TypeError("log.setLevel() called with invalid level: " + input);
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
|
|
206
239
|
/*
|
|
207
240
|
*
|
|
208
241
|
* Public logger API - see https://github.com/pimterry/loglevel for details
|
|
@@ -217,37 +250,36 @@ var loglevel = createCommonjsModule(function (module) {
|
|
|
217
250
|
self.methodFactory = factory || defaultMethodFactory;
|
|
218
251
|
|
|
219
252
|
self.getLevel = function () {
|
|
220
|
-
|
|
253
|
+
if (userLevel != null) {
|
|
254
|
+
return userLevel;
|
|
255
|
+
} else if (defaultLevel != null) {
|
|
256
|
+
return defaultLevel;
|
|
257
|
+
} else {
|
|
258
|
+
return inheritedLevel;
|
|
259
|
+
}
|
|
221
260
|
};
|
|
222
261
|
|
|
223
262
|
self.setLevel = function (level, persist) {
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
if (typeof level === "number" && level >= 0 && level <= self.levels.SILENT) {
|
|
228
|
-
currentLevel = level;
|
|
229
|
-
if (persist !== false) { // defaults to true
|
|
230
|
-
persistLevelIfPossible(level);
|
|
231
|
-
}
|
|
232
|
-
replaceLoggingMethods.call(self, level, name);
|
|
233
|
-
if (typeof console === undefinedType && level < self.levels.SILENT) {
|
|
234
|
-
return "No console available for logging";
|
|
235
|
-
}
|
|
236
|
-
} else {
|
|
237
|
-
throw "log.setLevel() called with invalid level: " + level;
|
|
263
|
+
userLevel = normalizeLevel(level);
|
|
264
|
+
if (persist !== false) { // defaults to true
|
|
265
|
+
persistLevelIfPossible(userLevel);
|
|
238
266
|
}
|
|
267
|
+
|
|
268
|
+
// NOTE: in v2, this should call rebuild(), which updates children.
|
|
269
|
+
return replaceLoggingMethods.call(self);
|
|
239
270
|
};
|
|
240
271
|
|
|
241
272
|
self.setDefaultLevel = function (level) {
|
|
242
|
-
defaultLevel = level;
|
|
273
|
+
defaultLevel = normalizeLevel(level);
|
|
243
274
|
if (!getPersistedLevel()) {
|
|
244
275
|
self.setLevel(level, false);
|
|
245
276
|
}
|
|
246
277
|
};
|
|
247
278
|
|
|
248
279
|
self.resetLevel = function () {
|
|
249
|
-
|
|
280
|
+
userLevel = null;
|
|
250
281
|
clearPersistedLevel();
|
|
282
|
+
replaceLoggingMethods.call(self);
|
|
251
283
|
};
|
|
252
284
|
|
|
253
285
|
self.enableAll = function(persist) {
|
|
@@ -258,12 +290,28 @@ var loglevel = createCommonjsModule(function (module) {
|
|
|
258
290
|
self.setLevel(self.levels.SILENT, persist);
|
|
259
291
|
};
|
|
260
292
|
|
|
261
|
-
|
|
293
|
+
self.rebuild = function () {
|
|
294
|
+
if (defaultLogger !== self) {
|
|
295
|
+
inheritedLevel = normalizeLevel(defaultLogger.getLevel());
|
|
296
|
+
}
|
|
297
|
+
replaceLoggingMethods.call(self);
|
|
298
|
+
|
|
299
|
+
if (defaultLogger === self) {
|
|
300
|
+
for (var childName in _loggersByName) {
|
|
301
|
+
_loggersByName[childName].rebuild();
|
|
302
|
+
}
|
|
303
|
+
}
|
|
304
|
+
};
|
|
305
|
+
|
|
306
|
+
// Initialize all the internal levels.
|
|
307
|
+
inheritedLevel = normalizeLevel(
|
|
308
|
+
defaultLogger ? defaultLogger.getLevel() : "WARN"
|
|
309
|
+
);
|
|
262
310
|
var initialLevel = getPersistedLevel();
|
|
263
|
-
if (initialLevel
|
|
264
|
-
|
|
311
|
+
if (initialLevel != null) {
|
|
312
|
+
userLevel = normalizeLevel(initialLevel);
|
|
265
313
|
}
|
|
266
|
-
|
|
314
|
+
replaceLoggingMethods.call(self);
|
|
267
315
|
}
|
|
268
316
|
|
|
269
317
|
/*
|
|
@@ -272,18 +320,19 @@ var loglevel = createCommonjsModule(function (module) {
|
|
|
272
320
|
*
|
|
273
321
|
*/
|
|
274
322
|
|
|
275
|
-
|
|
323
|
+
defaultLogger = new Logger();
|
|
276
324
|
|
|
277
|
-
var _loggersByName = {};
|
|
278
325
|
defaultLogger.getLogger = function getLogger(name) {
|
|
279
326
|
if ((typeof name !== "symbol" && typeof name !== "string") || name === "") {
|
|
280
|
-
|
|
327
|
+
throw new TypeError("You must supply a name when creating a logger.");
|
|
281
328
|
}
|
|
282
329
|
|
|
283
330
|
var logger = _loggersByName[name];
|
|
284
331
|
if (!logger) {
|
|
285
|
-
|
|
286
|
-
|
|
332
|
+
logger = _loggersByName[name] = new Logger(
|
|
333
|
+
name,
|
|
334
|
+
defaultLogger.methodFactory
|
|
335
|
+
);
|
|
287
336
|
}
|
|
288
337
|
return logger;
|
|
289
338
|
};
|
|
@@ -308,7 +357,9 @@ var loglevel = createCommonjsModule(function (module) {
|
|
|
308
357
|
|
|
309
358
|
return defaultLogger;
|
|
310
359
|
}));
|
|
311
|
-
});
|
|
360
|
+
}(loglevel));
|
|
361
|
+
|
|
362
|
+
const log = loglevel.exports;
|
|
312
363
|
|
|
313
364
|
class CatI18nRegistry {
|
|
314
365
|
constructor() {
|
|
@@ -353,35 +404,35 @@ class CatI18nRegistry {
|
|
|
353
404
|
setLocale(locale, silent = false) {
|
|
354
405
|
try {
|
|
355
406
|
this._locale = Intl.getCanonicalLocales(locale)[0];
|
|
356
|
-
|
|
407
|
+
log.info(`[CatI18nRegistry::${this.id}] Set locale: ${this._locale}`);
|
|
357
408
|
!silent && window.dispatchEvent(this.buildEvent('cat-i18n-setLocale', { locale, id: this.id }));
|
|
358
409
|
}
|
|
359
410
|
catch (err) {
|
|
360
|
-
|
|
411
|
+
log.error(`[CatI18nRegistry::${this.id}] Invalid locale: ${locale}`);
|
|
361
412
|
}
|
|
362
413
|
}
|
|
363
414
|
set(i18n, silent = false) {
|
|
364
415
|
if (typeof i18n === 'function') {
|
|
365
416
|
this._translator = i18n;
|
|
366
|
-
|
|
417
|
+
log.info(`[CatI18nRegistry::${this.id}] Registered translator`);
|
|
367
418
|
}
|
|
368
419
|
else {
|
|
369
420
|
const i18nEntries = Object.entries(i18n);
|
|
370
421
|
i18nEntries.forEach(([key, message]) => this.i18n.set(key, message));
|
|
371
|
-
|
|
422
|
+
log.info(`[CatI18nRegistry::${this.id}] Registered ${i18nEntries.length !== 1 ? 'messages' : 'message'}`);
|
|
372
423
|
}
|
|
373
424
|
!silent && window.dispatchEvent(this.buildEvent('cat-i18n-set', { i18n, id: this.id }));
|
|
374
425
|
}
|
|
375
426
|
clear(silent = false) {
|
|
376
427
|
this.i18n.clear();
|
|
377
|
-
|
|
428
|
+
log.info(`[CatI18nRegistry::${this.id}] Cleared messages`);
|
|
378
429
|
!silent && window.dispatchEvent(this.buildEvent('cat-i18n-clear'));
|
|
379
430
|
}
|
|
380
431
|
t(key, params) {
|
|
381
432
|
const message = this._translator?.(key, params) ??
|
|
382
433
|
this.i18n.get(key)?.replace(/{{\s*([-a-zA-Z._]+)\s*}}/g, (_match, key) => `${params?.[key] ?? ''}`);
|
|
383
434
|
if (message === undefined) {
|
|
384
|
-
|
|
435
|
+
log.error(`[CatI18nRegistry::${this.id}] Unknown message key: ${key}`);
|
|
385
436
|
return key;
|
|
386
437
|
}
|
|
387
438
|
return message;
|
|
@@ -396,38 +447,47 @@ class CatI18nRegistry {
|
|
|
396
447
|
}
|
|
397
448
|
const catI18nRegistry = CatI18nRegistry.getInstance();
|
|
398
449
|
|
|
399
|
-
const
|
|
450
|
+
const chevronDoubleLeft16 = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path d="M7.53 4.53a.75.75 0 0 0-1.06-1.06l-4 4a.75.75 0 0 0 0 1.06l4 4a.75.75 0 0 0 1.06-1.06L4.06 8l3.47-3.47Z"/><path d="M12.53 4.53a.75.75 0 0 0-1.06-1.06l-4 4a.75.75 0 0 0 0 1.06l4 4a.75.75 0 1 0 1.06-1.06L9.06 8l3.47-3.47Z"/></svg>`;
|
|
400
451
|
|
|
401
|
-
const
|
|
402
|
-
`;
|
|
452
|
+
const chevronDoubleRight16 = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path d="M4.53 3.47a.75.75 0 0 0-1.06 1.06L6.94 8l-3.47 3.47a.75.75 0 1 0 1.06 1.06l4-4a.75.75 0 0 0 0-1.06l-4-4Z"/><path d="M9.53 3.47a.75.75 0 0 0-1.06 1.06L11.94 8l-3.47 3.47a.75.75 0 1 0 1.06 1.06l4-4a.75.75 0 0 0 0-1.06l-4-4Z"/></svg>`;
|
|
403
453
|
|
|
404
|
-
const
|
|
454
|
+
const chevronLeft16 = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path fill-rule="evenodd" d="M10.53 3.47a.75.75 0 0 1 0 1.06L7.06 8l3.47 3.47a.75.75 0 1 1-1.06 1.06l-4-4a.75.75 0 0 1 0-1.06l4-4a.75.75 0 0 1 1.06 0Z" clip-rule="evenodd"/></svg>`;
|
|
405
455
|
|
|
406
|
-
const
|
|
456
|
+
const chevronRight16 = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path fill-rule="evenodd" d="M5.47 3.47a.75.75 0 0 1 1.06 0l4 4a.75.75 0 0 1 0 1.06l-4 4a.75.75 0 0 1-1.06-1.06L8.94 8 5.47 4.53a.75.75 0 0 1 0-1.06Z" clip-rule="evenodd"/></svg>`;
|
|
407
457
|
|
|
408
|
-
const
|
|
458
|
+
const cross16 = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path d="M4.53 3.47a.75.75 0 0 0-1.06 1.06L6.94 8l-3.47 3.47a.75.75 0 1 0 1.06 1.06L8 9.06l3.47 3.47a.75.75 0 1 0 1.06-1.06L9.06 8l3.47-3.47a.75.75 0 0 0-1.06-1.06L8 6.94 4.53 3.47Z"/></svg>`;
|
|
409
459
|
|
|
410
|
-
const
|
|
460
|
+
const alertCircleOutlined = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M13 16a1 1 0 1 1-2 0 1 1 0 0 1 2 0Zm-.25-8a.75.75 0 0 0-1.5 0v4.5a.75.75 0 0 0 1.5 0V8Z"/><path fill-rule="evenodd" d="M2.25 12c0-5.385 4.365-9.75 9.75-9.75s9.75 4.365 9.75 9.75-4.365 9.75-9.75 9.75S2.25 17.385 2.25 12ZM12 3.75a8.25 8.25 0 1 0 0 16.5 8.25 8.25 0 0 0 0-16.5Z" clip-rule="evenodd"/></svg>`;
|
|
411
461
|
|
|
412
|
-
const
|
|
462
|
+
const calendarOutlined = `<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24"><path fill="#000" fill-rule="evenodd" d="M17 2.25a.75.75 0 0 1 .75.75v.25H18A2.75 2.75 0 0 1 20.75 6v12A2.75 2.75 0 0 1 18 20.75H6A2.75 2.75 0 0 1 3.25 18V6A2.75 2.75 0 0 1 6 3.25h.25V3a.75.75 0 0 1 1.5 0v.25h8.5V3a.75.75 0 0 1 .75-.75ZM6 4.75c-.69 0-1.25.56-1.25 1.25v2.25h14.5V6c0-.69-.56-1.25-1.25-1.25H6Zm-1.25 5V18c0 .69.56 1.25 1.25 1.25h12c.69 0 1.25-.56 1.25-1.25V9.75H4.75Z" clip-rule="evenodd"/></svg>`;
|
|
413
463
|
|
|
414
|
-
const
|
|
464
|
+
const checkCircleFilled = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10Zm4.768-12.36a1 1 0 1 0-1.536-1.28l-4.3 5.159-2.225-2.226a1 1 0 0 0-1.414 1.414l3 3a1 1 0 0 0 1.475-.067l5-6Z" clip-rule="evenodd"/></svg>`;
|
|
415
465
|
|
|
416
|
-
const
|
|
466
|
+
const chevronDownOutlined = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M6.47 9.47a.75.75 0 0 1 1.06 0L12 13.94l4.47-4.47a.75.75 0 1 1 1.06 1.06l-5 5a.75.75 0 0 1-1.06 0l-5-5a.75.75 0 0 1 0-1.06Z" clip-rule="evenodd"/></svg>`;
|
|
417
467
|
|
|
418
|
-
const
|
|
468
|
+
const chevronLeftOutlined = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M14.53 6.47a.75.75 0 0 1 0 1.06L10.06 12l4.47 4.47a.75.75 0 1 1-1.06 1.06l-5-5a.75.75 0 0 1 0-1.06l5-5a.75.75 0 0 1 1.06 0Z" clip-rule="evenodd"/></svg>`;
|
|
419
469
|
|
|
420
|
-
const
|
|
470
|
+
const chevronRightOutlined = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M9.47 6.47a.75.75 0 0 1 1.06 0l5 5a.75.75 0 0 1 0 1.06l-5 5a.75.75 0 1 1-1.06-1.06L13.94 12 9.47 7.53a.75.75 0 0 1 0-1.06Z" clip-rule="evenodd"/></svg>`;
|
|
421
471
|
|
|
422
|
-
const
|
|
472
|
+
const clockFilled = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10Zm1-15a1 1 0 1 0-2 0v5a1 1 0 0 0 1 1h5a1 1 0 1 0 0-2h-4V7Z" clip-rule="evenodd"/></svg>`;
|
|
423
473
|
|
|
424
|
-
const
|
|
425
|
-
`;
|
|
474
|
+
const clockOutlined = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12.75 7a.75.75 0 0 0-1.5 0v5c0 .414.336.75.75.75h5a.75.75 0 0 0 0-1.5h-4.25V7Z"/><path fill-rule="evenodd" d="M12 2.25c-5.385 0-9.75 4.365-9.75 9.75s4.365 9.75 9.75 9.75 9.75-4.365 9.75-9.75S17.385 2.25 12 2.25ZM3.75 12a8.25 8.25 0 1 1 16.5 0 8.25 8.25 0 0 1-16.5 0Z" clip-rule="evenodd"/></svg>`;
|
|
426
475
|
|
|
427
|
-
const
|
|
428
|
-
`;
|
|
476
|
+
const crossCircleFilled = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10ZM8.293 8.293a1 1 0 0 1 1.414 0L12 10.586l2.293-2.293a1 1 0 1 1 1.414 1.414L13.414 12l2.293 2.293a1 1 0 0 1-1.414 1.414L12 13.414l-2.293 2.293a1 1 0 0 1-1.414-1.414L10.586 12 8.293 9.707a1 1 0 0 1 0-1.414Z" clip-rule="evenodd"/></svg>`;
|
|
429
477
|
|
|
430
|
-
const
|
|
478
|
+
const crossCircleOutlined = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M8.47 8.47a.75.75 0 0 1 1.06 0L12 10.94l2.47-2.47a.75.75 0 1 1 1.06 1.06L13.06 12l2.47 2.47a.75.75 0 1 1-1.06 1.06L12 13.06l-2.47 2.47a.75.75 0 0 1-1.06-1.06L10.94 12 8.47 9.53a.75.75 0 0 1 0-1.06Z"/><path fill-rule="evenodd" d="M12 2.25c-5.385 0-9.75 4.365-9.75 9.75s4.365 9.75 9.75 9.75 9.75-4.365 9.75-9.75S17.385 2.25 12 2.25ZM3.75 12a8.25 8.25 0 1 1 16.5 0 8.25 8.25 0 0 1-16.5 0Z" clip-rule="evenodd"/></svg>`;
|
|
479
|
+
|
|
480
|
+
const crossOutlined = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M7.53 6.47a.75.75 0 0 0-1.06 1.06L10.94 12l-4.47 4.47a.75.75 0 1 0 1.06 1.06L12 13.06l4.47 4.47a.75.75 0 1 0 1.06-1.06L13.06 12l4.47-4.47a.75.75 0 0 0-1.06-1.06L12 10.94 7.53 6.47Z"/></svg>`;
|
|
481
|
+
|
|
482
|
+
const dangerFilled = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M12 3.25c-.429 0-.85.113-1.22.328a2.5 2.5 0 0 0-.899.891L2.577 16.981a2.554 2.554 0 0 0-.007 2.491c.212.381.519.7.891.926a2.44 2.44 0 0 0 1.234.352h14.61a2.44 2.44 0 0 0 1.233-.352 2.5 2.5 0 0 0 .892-.926 2.553 2.553 0 0 0-.007-2.491L14.119 4.469a2.494 2.494 0 0 0-.899-.891A2.439 2.439 0 0 0 12 3.25ZM12 8a1 1 0 0 1 1 1v3.5a1 1 0 1 1-2 0V9a1 1 0 0 1 1-1Zm1 8a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z" clip-rule="evenodd"/></svg>`;
|
|
483
|
+
|
|
484
|
+
const eyeClosedOutlined = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M4.608 7.948a.75.75 0 1 0-1.234.853 12.396 12.396 0 0 0 2.255 2.438l-2.574 2.574a.75.75 0 0 0 1.061 1.06l2.738-2.737c1.283.824 2.777 1.433 4.396 1.58V17a.75.75 0 0 0 1.5 0v-3.284c1.618-.148 3.11-.76 4.392-1.584l2.742 2.742a.75.75 0 0 0 1.06-1.06l-2.579-2.58a12.5 12.5 0 0 0 2.251-2.432.75.75 0 0 0-1.232-.855C17.965 9.99 15.144 12.25 12 12.25c-3.153 0-5.978-2.255-7.392-4.302Z"/></svg>`;
|
|
485
|
+
|
|
486
|
+
const eyeOpenOutlined = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M12 8.25a3.75 3.75 0 1 0 0 7.5 3.75 3.75 0 0 0 0-7.5ZM9.75 12a2.25 2.25 0 1 1 4.5 0 2.25 2.25 0 0 1-4.5 0Z" clip-rule="evenodd"/><path fill-rule="evenodd" d="M12 4.25c-2.735 0-5.158 1.37-6.872 2.948-.862.794-1.567 1.66-2.062 2.475-.479.79-.816 1.62-.816 2.327 0 .707.337 1.538.816 2.327.495.815 1.2 1.68 2.062 2.475C6.842 18.38 9.265 19.75 12 19.75c2.737 0 5.16-1.379 6.873-2.96.861-.795 1.566-1.662 2.06-2.475.479-.786.817-1.614.817-2.315 0-.7-.338-1.529-.817-2.315-.494-.813-1.199-1.68-2.06-2.475C17.16 5.629 14.737 4.25 12 4.25ZM3.75 12c0-.293.167-.837.598-1.548.416-.685 1.03-1.444 1.796-2.15C7.688 6.88 9.764 5.75 12 5.75c2.234 0 4.31 1.136 5.855 2.562.767.708 1.38 1.468 1.797 2.153.433.71.598 1.25.598 1.535 0 .285-.165.824-.598 1.535-.416.685-1.03 1.445-1.797 2.153-1.544 1.426-3.621 2.562-5.855 2.562-2.235 0-4.312-1.13-5.856-2.552-.767-.706-1.38-1.465-1.796-2.15-.431-.71-.598-1.255-.598-1.548Z" clip-rule="evenodd"/></svg>`;
|
|
487
|
+
|
|
488
|
+
const infoCircleFilled = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M2.25 12c0-5.385 4.365-9.75 9.75-9.75s9.75 4.365 9.75 9.75-4.365 9.75-9.75 9.75S2.25 17.385 2.25 12ZM13 8a1 1 0 1 1-2 0 1 1 0 0 1 2 0Zm0 3.5a1 1 0 1 0-2 0V16a1 1 0 1 0 2 0v-4.5Z" clip-rule="evenodd"/></svg>`;
|
|
489
|
+
|
|
490
|
+
const starCircleFilled = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10Zm-7.82-3.001L12 5 9.82 8.999l-4.477.838 3.129 3.31-.587 4.516L12 15.71l4.114 1.953-.586-4.517 3.13-3.31L14.18 9Z" clip-rule="evenodd"/></svg>`;
|
|
431
491
|
|
|
432
492
|
class CatIconRegistry {
|
|
433
493
|
constructor() {
|
|
@@ -442,6 +502,12 @@ class CatIconRegistry {
|
|
|
442
502
|
'alert-success': checkCircleFilled,
|
|
443
503
|
'alert-warning': dangerFilled,
|
|
444
504
|
'alert-danger': crossCircleFilled,
|
|
505
|
+
'datepicker-month-prev': chevronLeft16,
|
|
506
|
+
'datepicker-month-next': chevronRight16,
|
|
507
|
+
'datepicker-year-prev': chevronDoubleLeft16,
|
|
508
|
+
'datepicker-year-next': chevronDoubleRight16,
|
|
509
|
+
'datepicker-calendar': calendarOutlined,
|
|
510
|
+
'timepicker-clock': clockOutlined,
|
|
445
511
|
'dialog-close': crossOutlined,
|
|
446
512
|
'input-close': crossCircleOutlined,
|
|
447
513
|
'input-error': alertCircleOutlined,
|
|
@@ -482,7 +548,7 @@ class CatIconRegistry {
|
|
|
482
548
|
getIcon(name, setName) {
|
|
483
549
|
const icon = this.icons.get(this.buildName(name, setName));
|
|
484
550
|
if (!icon) {
|
|
485
|
-
|
|
551
|
+
log.error(`[CatIconRegistry::${this.id}] Unknown icon${setName ? ` in set ${setName}` : ''}: ${name}`);
|
|
486
552
|
}
|
|
487
553
|
return icon;
|
|
488
554
|
}
|
|
@@ -490,14 +556,14 @@ class CatIconRegistry {
|
|
|
490
556
|
const iconEntries = Object.entries(icons);
|
|
491
557
|
const iconSize = iconEntries.length;
|
|
492
558
|
iconEntries.forEach(([name, data]) => this.icons.set(this.buildName(name, setName), data));
|
|
493
|
-
|
|
559
|
+
log.info(`[CatIconRegistry::${this.id}] Added ${iconSize !== 1 ? 'icons' : 'icon'}${setName ? ` to set ${setName}` : ''}`);
|
|
494
560
|
!silent && window.dispatchEvent(this.buildEvent('cat-icons-added', { id: this.id, icons, setName }));
|
|
495
561
|
return this;
|
|
496
562
|
}
|
|
497
563
|
removeIcons(names, setName, silent = false) {
|
|
498
564
|
const iconSize = names.length;
|
|
499
565
|
names.forEach(name => this.icons.delete(this.buildName(name, setName)));
|
|
500
|
-
|
|
566
|
+
log.info(`[CatIconRegistry::${this.id}] Removed ${iconSize !== 1 ? 'icons' : 'icon'}${setName ? ` from set ${setName}` : ''}`);
|
|
501
567
|
!silent && window.dispatchEvent(this.buildEvent('cat-icons-removed', { id: this.id, names, setName }));
|
|
502
568
|
return this;
|
|
503
569
|
}
|
|
@@ -714,8 +780,23 @@ function createNotification(kind, value, error) {
|
|
|
714
780
|
};
|
|
715
781
|
}
|
|
716
782
|
|
|
783
|
+
let context = null;
|
|
717
784
|
function errorContext(cb) {
|
|
718
|
-
{
|
|
785
|
+
if (config.useDeprecatedSynchronousErrorHandling) {
|
|
786
|
+
const isRoot = !context;
|
|
787
|
+
if (isRoot) {
|
|
788
|
+
context = { errorThrown: false, error: null };
|
|
789
|
+
}
|
|
790
|
+
cb();
|
|
791
|
+
if (isRoot) {
|
|
792
|
+
const { errorThrown, error } = context;
|
|
793
|
+
context = null;
|
|
794
|
+
if (errorThrown) {
|
|
795
|
+
throw error;
|
|
796
|
+
}
|
|
797
|
+
}
|
|
798
|
+
}
|
|
799
|
+
else {
|
|
719
800
|
cb();
|
|
720
801
|
}
|
|
721
802
|
}
|
|
@@ -1428,6 +1509,6 @@ function of(...args) {
|
|
|
1428
1509
|
return from(args, scheduler);
|
|
1429
1510
|
}
|
|
1430
1511
|
|
|
1431
|
-
export { CatI18nRegistry as C, EMPTY_SUBSCRIPTION as E, Observable as O, Subscription as S,
|
|
1512
|
+
export { CatI18nRegistry as C, EMPTY_SUBSCRIPTION as E, Observable as O, Subscription as S, catI18nRegistry as a, CatIconRegistry as b, commonjsGlobal as c, catIconRegistry as d, createErrorClass as e, errorContext as f, arrRemove as g, operate as h, createOperatorSubscriber as i, innerFrom as j, executeSchedule as k, isFunction as l, identity as m, from as n, of as o, popScheduler as p, isArrayLike as q, isScheduler as r, popNumber as s, noop as t, log as u };
|
|
1432
1513
|
|
|
1433
|
-
//# sourceMappingURL=of-
|
|
1514
|
+
//# sourceMappingURL=of-19888f3b.js.map
|