@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
|
@@ -2,27 +2,16 @@
|
|
|
2
2
|
|
|
3
3
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
return module = {
|
|
7
|
-
path: basedir,
|
|
8
|
-
exports: {},
|
|
9
|
-
require: function (path, base) {
|
|
10
|
-
return commonjsRequire();
|
|
11
|
-
}
|
|
12
|
-
}, fn(module, module.exports), module.exports;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
function commonjsRequire () {
|
|
16
|
-
throw new Error('Dynamic requires are not currently supported by @rollup/plugin-commonjs');
|
|
17
|
-
}
|
|
5
|
+
var loglevel = {exports: {}};
|
|
18
6
|
|
|
19
|
-
var loglevel = createCommonjsModule(function (module) {
|
|
20
7
|
/*
|
|
21
8
|
* loglevel - https://github.com/pimterry/loglevel
|
|
22
9
|
*
|
|
23
10
|
* Copyright (c) 2013 Tim Perry
|
|
24
11
|
* Licensed under the MIT license.
|
|
25
12
|
*/
|
|
13
|
+
|
|
14
|
+
(function (module) {
|
|
26
15
|
(function (root, definition) {
|
|
27
16
|
if (module.exports) {
|
|
28
17
|
module.exports = definition();
|
|
@@ -46,6 +35,9 @@ var loglevel = createCommonjsModule(function (module) {
|
|
|
46
35
|
"error"
|
|
47
36
|
];
|
|
48
37
|
|
|
38
|
+
var _loggersByName = {};
|
|
39
|
+
var defaultLogger = null;
|
|
40
|
+
|
|
49
41
|
// Cross-browser bind equivalent that works at least back to IE6
|
|
50
42
|
function bindMethod(obj, methodName) {
|
|
51
43
|
var method = obj[methodName];
|
|
@@ -98,25 +90,33 @@ var loglevel = createCommonjsModule(function (module) {
|
|
|
98
90
|
|
|
99
91
|
// These private functions always need `this` to be set properly
|
|
100
92
|
|
|
101
|
-
function replaceLoggingMethods(
|
|
93
|
+
function replaceLoggingMethods() {
|
|
102
94
|
/*jshint validthis:true */
|
|
95
|
+
var level = this.getLevel();
|
|
96
|
+
|
|
97
|
+
// Replace the actual methods.
|
|
103
98
|
for (var i = 0; i < logMethods.length; i++) {
|
|
104
99
|
var methodName = logMethods[i];
|
|
105
100
|
this[methodName] = (i < level) ?
|
|
106
101
|
noop :
|
|
107
|
-
this.methodFactory(methodName, level,
|
|
102
|
+
this.methodFactory(methodName, level, this.name);
|
|
108
103
|
}
|
|
109
104
|
|
|
110
105
|
// Define log.log as an alias for log.debug
|
|
111
106
|
this.log = this.debug;
|
|
107
|
+
|
|
108
|
+
// Return any important warnings.
|
|
109
|
+
if (typeof console === undefinedType && level < this.levels.SILENT) {
|
|
110
|
+
return "No console available for logging";
|
|
111
|
+
}
|
|
112
112
|
}
|
|
113
113
|
|
|
114
114
|
// In old IE versions, the console isn't present until you first open it.
|
|
115
115
|
// We build realMethod() replacements here that regenerate logging methods
|
|
116
|
-
function enableLoggingWhenConsoleArrives(methodName
|
|
116
|
+
function enableLoggingWhenConsoleArrives(methodName) {
|
|
117
117
|
return function () {
|
|
118
118
|
if (typeof console !== undefinedType) {
|
|
119
|
-
replaceLoggingMethods.call(this
|
|
119
|
+
replaceLoggingMethods.call(this);
|
|
120
120
|
this[methodName].apply(this, arguments);
|
|
121
121
|
}
|
|
122
122
|
};
|
|
@@ -124,16 +124,36 @@ var loglevel = createCommonjsModule(function (module) {
|
|
|
124
124
|
|
|
125
125
|
// By default, we use closely bound real methods wherever possible, and
|
|
126
126
|
// otherwise we wait for a console to appear, and then try again.
|
|
127
|
-
function defaultMethodFactory(methodName,
|
|
127
|
+
function defaultMethodFactory(methodName, _level, _loggerName) {
|
|
128
128
|
/*jshint validthis:true */
|
|
129
129
|
return realMethod(methodName) ||
|
|
130
130
|
enableLoggingWhenConsoleArrives.apply(this, arguments);
|
|
131
131
|
}
|
|
132
132
|
|
|
133
|
-
function Logger(name,
|
|
133
|
+
function Logger(name, factory) {
|
|
134
|
+
// Private instance variables.
|
|
134
135
|
var self = this;
|
|
135
|
-
|
|
136
|
-
|
|
136
|
+
/**
|
|
137
|
+
* The level inherited from a parent logger (or a global default). We
|
|
138
|
+
* cache this here rather than delegating to the parent so that it stays
|
|
139
|
+
* in sync with the actual logging methods that we have installed (the
|
|
140
|
+
* parent could change levels but we might not have rebuilt the loggers
|
|
141
|
+
* in this child yet).
|
|
142
|
+
* @type {number}
|
|
143
|
+
*/
|
|
144
|
+
var inheritedLevel;
|
|
145
|
+
/**
|
|
146
|
+
* The default level for this logger, if any. If set, this overrides
|
|
147
|
+
* `inheritedLevel`.
|
|
148
|
+
* @type {number|null}
|
|
149
|
+
*/
|
|
150
|
+
var defaultLevel;
|
|
151
|
+
/**
|
|
152
|
+
* A user-specific level for this logger. If set, this overrides
|
|
153
|
+
* `defaultLevel`.
|
|
154
|
+
* @type {number|null}
|
|
155
|
+
*/
|
|
156
|
+
var userLevel;
|
|
137
157
|
|
|
138
158
|
var storageKey = "loglevel";
|
|
139
159
|
if (typeof name === "string") {
|
|
@@ -173,10 +193,12 @@ var loglevel = createCommonjsModule(function (module) {
|
|
|
173
193
|
if (typeof storedLevel === undefinedType) {
|
|
174
194
|
try {
|
|
175
195
|
var cookie = window.document.cookie;
|
|
176
|
-
var
|
|
177
|
-
|
|
196
|
+
var cookieName = encodeURIComponent(storageKey);
|
|
197
|
+
var location = cookie.indexOf(cookieName + "=");
|
|
178
198
|
if (location !== -1) {
|
|
179
|
-
storedLevel = /^([^;]+)/.exec(
|
|
199
|
+
storedLevel = /^([^;]+)/.exec(
|
|
200
|
+
cookie.slice(location + cookieName.length + 1)
|
|
201
|
+
)[1];
|
|
180
202
|
}
|
|
181
203
|
} catch (ignore) {}
|
|
182
204
|
}
|
|
@@ -195,7 +217,6 @@ var loglevel = createCommonjsModule(function (module) {
|
|
|
195
217
|
// Use localStorage if available
|
|
196
218
|
try {
|
|
197
219
|
window.localStorage.removeItem(storageKey);
|
|
198
|
-
return;
|
|
199
220
|
} catch (ignore) {}
|
|
200
221
|
|
|
201
222
|
// Use session cookie as fallback
|
|
@@ -205,6 +226,18 @@ var loglevel = createCommonjsModule(function (module) {
|
|
|
205
226
|
} catch (ignore) {}
|
|
206
227
|
}
|
|
207
228
|
|
|
229
|
+
function normalizeLevel(input) {
|
|
230
|
+
var level = input;
|
|
231
|
+
if (typeof level === "string" && self.levels[level.toUpperCase()] !== undefined) {
|
|
232
|
+
level = self.levels[level.toUpperCase()];
|
|
233
|
+
}
|
|
234
|
+
if (typeof level === "number" && level >= 0 && level <= self.levels.SILENT) {
|
|
235
|
+
return level;
|
|
236
|
+
} else {
|
|
237
|
+
throw new TypeError("log.setLevel() called with invalid level: " + input);
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
|
|
208
241
|
/*
|
|
209
242
|
*
|
|
210
243
|
* Public logger API - see https://github.com/pimterry/loglevel for details
|
|
@@ -219,37 +252,36 @@ var loglevel = createCommonjsModule(function (module) {
|
|
|
219
252
|
self.methodFactory = factory || defaultMethodFactory;
|
|
220
253
|
|
|
221
254
|
self.getLevel = function () {
|
|
222
|
-
|
|
255
|
+
if (userLevel != null) {
|
|
256
|
+
return userLevel;
|
|
257
|
+
} else if (defaultLevel != null) {
|
|
258
|
+
return defaultLevel;
|
|
259
|
+
} else {
|
|
260
|
+
return inheritedLevel;
|
|
261
|
+
}
|
|
223
262
|
};
|
|
224
263
|
|
|
225
264
|
self.setLevel = function (level, persist) {
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
if (typeof level === "number" && level >= 0 && level <= self.levels.SILENT) {
|
|
230
|
-
currentLevel = level;
|
|
231
|
-
if (persist !== false) { // defaults to true
|
|
232
|
-
persistLevelIfPossible(level);
|
|
233
|
-
}
|
|
234
|
-
replaceLoggingMethods.call(self, level, name);
|
|
235
|
-
if (typeof console === undefinedType && level < self.levels.SILENT) {
|
|
236
|
-
return "No console available for logging";
|
|
237
|
-
}
|
|
238
|
-
} else {
|
|
239
|
-
throw "log.setLevel() called with invalid level: " + level;
|
|
265
|
+
userLevel = normalizeLevel(level);
|
|
266
|
+
if (persist !== false) { // defaults to true
|
|
267
|
+
persistLevelIfPossible(userLevel);
|
|
240
268
|
}
|
|
269
|
+
|
|
270
|
+
// NOTE: in v2, this should call rebuild(), which updates children.
|
|
271
|
+
return replaceLoggingMethods.call(self);
|
|
241
272
|
};
|
|
242
273
|
|
|
243
274
|
self.setDefaultLevel = function (level) {
|
|
244
|
-
defaultLevel = level;
|
|
275
|
+
defaultLevel = normalizeLevel(level);
|
|
245
276
|
if (!getPersistedLevel()) {
|
|
246
277
|
self.setLevel(level, false);
|
|
247
278
|
}
|
|
248
279
|
};
|
|
249
280
|
|
|
250
281
|
self.resetLevel = function () {
|
|
251
|
-
|
|
282
|
+
userLevel = null;
|
|
252
283
|
clearPersistedLevel();
|
|
284
|
+
replaceLoggingMethods.call(self);
|
|
253
285
|
};
|
|
254
286
|
|
|
255
287
|
self.enableAll = function(persist) {
|
|
@@ -260,12 +292,28 @@ var loglevel = createCommonjsModule(function (module) {
|
|
|
260
292
|
self.setLevel(self.levels.SILENT, persist);
|
|
261
293
|
};
|
|
262
294
|
|
|
263
|
-
|
|
295
|
+
self.rebuild = function () {
|
|
296
|
+
if (defaultLogger !== self) {
|
|
297
|
+
inheritedLevel = normalizeLevel(defaultLogger.getLevel());
|
|
298
|
+
}
|
|
299
|
+
replaceLoggingMethods.call(self);
|
|
300
|
+
|
|
301
|
+
if (defaultLogger === self) {
|
|
302
|
+
for (var childName in _loggersByName) {
|
|
303
|
+
_loggersByName[childName].rebuild();
|
|
304
|
+
}
|
|
305
|
+
}
|
|
306
|
+
};
|
|
307
|
+
|
|
308
|
+
// Initialize all the internal levels.
|
|
309
|
+
inheritedLevel = normalizeLevel(
|
|
310
|
+
defaultLogger ? defaultLogger.getLevel() : "WARN"
|
|
311
|
+
);
|
|
264
312
|
var initialLevel = getPersistedLevel();
|
|
265
|
-
if (initialLevel
|
|
266
|
-
|
|
313
|
+
if (initialLevel != null) {
|
|
314
|
+
userLevel = normalizeLevel(initialLevel);
|
|
267
315
|
}
|
|
268
|
-
|
|
316
|
+
replaceLoggingMethods.call(self);
|
|
269
317
|
}
|
|
270
318
|
|
|
271
319
|
/*
|
|
@@ -274,18 +322,19 @@ var loglevel = createCommonjsModule(function (module) {
|
|
|
274
322
|
*
|
|
275
323
|
*/
|
|
276
324
|
|
|
277
|
-
|
|
325
|
+
defaultLogger = new Logger();
|
|
278
326
|
|
|
279
|
-
var _loggersByName = {};
|
|
280
327
|
defaultLogger.getLogger = function getLogger(name) {
|
|
281
328
|
if ((typeof name !== "symbol" && typeof name !== "string") || name === "") {
|
|
282
|
-
|
|
329
|
+
throw new TypeError("You must supply a name when creating a logger.");
|
|
283
330
|
}
|
|
284
331
|
|
|
285
332
|
var logger = _loggersByName[name];
|
|
286
333
|
if (!logger) {
|
|
287
|
-
|
|
288
|
-
|
|
334
|
+
logger = _loggersByName[name] = new Logger(
|
|
335
|
+
name,
|
|
336
|
+
defaultLogger.methodFactory
|
|
337
|
+
);
|
|
289
338
|
}
|
|
290
339
|
return logger;
|
|
291
340
|
};
|
|
@@ -310,7 +359,9 @@ var loglevel = createCommonjsModule(function (module) {
|
|
|
310
359
|
|
|
311
360
|
return defaultLogger;
|
|
312
361
|
}));
|
|
313
|
-
});
|
|
362
|
+
}(loglevel));
|
|
363
|
+
|
|
364
|
+
const log = loglevel.exports;
|
|
314
365
|
|
|
315
366
|
class CatI18nRegistry {
|
|
316
367
|
constructor() {
|
|
@@ -355,35 +406,35 @@ class CatI18nRegistry {
|
|
|
355
406
|
setLocale(locale, silent = false) {
|
|
356
407
|
try {
|
|
357
408
|
this._locale = Intl.getCanonicalLocales(locale)[0];
|
|
358
|
-
|
|
409
|
+
log.info(`[CatI18nRegistry::${this.id}] Set locale: ${this._locale}`);
|
|
359
410
|
!silent && window.dispatchEvent(this.buildEvent('cat-i18n-setLocale', { locale, id: this.id }));
|
|
360
411
|
}
|
|
361
412
|
catch (err) {
|
|
362
|
-
|
|
413
|
+
log.error(`[CatI18nRegistry::${this.id}] Invalid locale: ${locale}`);
|
|
363
414
|
}
|
|
364
415
|
}
|
|
365
416
|
set(i18n, silent = false) {
|
|
366
417
|
if (typeof i18n === 'function') {
|
|
367
418
|
this._translator = i18n;
|
|
368
|
-
|
|
419
|
+
log.info(`[CatI18nRegistry::${this.id}] Registered translator`);
|
|
369
420
|
}
|
|
370
421
|
else {
|
|
371
422
|
const i18nEntries = Object.entries(i18n);
|
|
372
423
|
i18nEntries.forEach(([key, message]) => this.i18n.set(key, message));
|
|
373
|
-
|
|
424
|
+
log.info(`[CatI18nRegistry::${this.id}] Registered ${i18nEntries.length !== 1 ? 'messages' : 'message'}`);
|
|
374
425
|
}
|
|
375
426
|
!silent && window.dispatchEvent(this.buildEvent('cat-i18n-set', { i18n, id: this.id }));
|
|
376
427
|
}
|
|
377
428
|
clear(silent = false) {
|
|
378
429
|
this.i18n.clear();
|
|
379
|
-
|
|
430
|
+
log.info(`[CatI18nRegistry::${this.id}] Cleared messages`);
|
|
380
431
|
!silent && window.dispatchEvent(this.buildEvent('cat-i18n-clear'));
|
|
381
432
|
}
|
|
382
433
|
t(key, params) {
|
|
383
434
|
const message = this._translator?.(key, params) ??
|
|
384
435
|
this.i18n.get(key)?.replace(/{{\s*([-a-zA-Z._]+)\s*}}/g, (_match, key) => `${params?.[key] ?? ''}`);
|
|
385
436
|
if (message === undefined) {
|
|
386
|
-
|
|
437
|
+
log.error(`[CatI18nRegistry::${this.id}] Unknown message key: ${key}`);
|
|
387
438
|
return key;
|
|
388
439
|
}
|
|
389
440
|
return message;
|
|
@@ -398,38 +449,47 @@ class CatI18nRegistry {
|
|
|
398
449
|
}
|
|
399
450
|
const catI18nRegistry = CatI18nRegistry.getInstance();
|
|
400
451
|
|
|
401
|
-
const
|
|
452
|
+
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>`;
|
|
402
453
|
|
|
403
|
-
const
|
|
404
|
-
`;
|
|
454
|
+
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>`;
|
|
405
455
|
|
|
406
|
-
const
|
|
456
|
+
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>`;
|
|
407
457
|
|
|
408
|
-
const
|
|
458
|
+
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>`;
|
|
409
459
|
|
|
410
|
-
const
|
|
460
|
+
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>`;
|
|
411
461
|
|
|
412
|
-
const
|
|
462
|
+
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>`;
|
|
413
463
|
|
|
414
|
-
const
|
|
464
|
+
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>`;
|
|
415
465
|
|
|
416
|
-
const
|
|
466
|
+
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>`;
|
|
417
467
|
|
|
418
|
-
const
|
|
468
|
+
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>`;
|
|
419
469
|
|
|
420
|
-
const
|
|
470
|
+
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>`;
|
|
421
471
|
|
|
422
|
-
const
|
|
472
|
+
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>`;
|
|
423
473
|
|
|
424
|
-
const
|
|
474
|
+
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>`;
|
|
425
475
|
|
|
426
|
-
const
|
|
427
|
-
`;
|
|
476
|
+
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>`;
|
|
428
477
|
|
|
429
|
-
const
|
|
430
|
-
`;
|
|
478
|
+
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>`;
|
|
431
479
|
|
|
432
|
-
const
|
|
480
|
+
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>`;
|
|
481
|
+
|
|
482
|
+
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>`;
|
|
483
|
+
|
|
484
|
+
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>`;
|
|
485
|
+
|
|
486
|
+
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>`;
|
|
487
|
+
|
|
488
|
+
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>`;
|
|
489
|
+
|
|
490
|
+
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>`;
|
|
491
|
+
|
|
492
|
+
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>`;
|
|
433
493
|
|
|
434
494
|
class CatIconRegistry {
|
|
435
495
|
constructor() {
|
|
@@ -444,6 +504,12 @@ class CatIconRegistry {
|
|
|
444
504
|
'alert-success': checkCircleFilled,
|
|
445
505
|
'alert-warning': dangerFilled,
|
|
446
506
|
'alert-danger': crossCircleFilled,
|
|
507
|
+
'datepicker-month-prev': chevronLeft16,
|
|
508
|
+
'datepicker-month-next': chevronRight16,
|
|
509
|
+
'datepicker-year-prev': chevronDoubleLeft16,
|
|
510
|
+
'datepicker-year-next': chevronDoubleRight16,
|
|
511
|
+
'datepicker-calendar': calendarOutlined,
|
|
512
|
+
'timepicker-clock': clockOutlined,
|
|
447
513
|
'dialog-close': crossOutlined,
|
|
448
514
|
'input-close': crossCircleOutlined,
|
|
449
515
|
'input-error': alertCircleOutlined,
|
|
@@ -484,7 +550,7 @@ class CatIconRegistry {
|
|
|
484
550
|
getIcon(name, setName) {
|
|
485
551
|
const icon = this.icons.get(this.buildName(name, setName));
|
|
486
552
|
if (!icon) {
|
|
487
|
-
|
|
553
|
+
log.error(`[CatIconRegistry::${this.id}] Unknown icon${setName ? ` in set ${setName}` : ''}: ${name}`);
|
|
488
554
|
}
|
|
489
555
|
return icon;
|
|
490
556
|
}
|
|
@@ -492,14 +558,14 @@ class CatIconRegistry {
|
|
|
492
558
|
const iconEntries = Object.entries(icons);
|
|
493
559
|
const iconSize = iconEntries.length;
|
|
494
560
|
iconEntries.forEach(([name, data]) => this.icons.set(this.buildName(name, setName), data));
|
|
495
|
-
|
|
561
|
+
log.info(`[CatIconRegistry::${this.id}] Added ${iconSize !== 1 ? 'icons' : 'icon'}${setName ? ` to set ${setName}` : ''}`);
|
|
496
562
|
!silent && window.dispatchEvent(this.buildEvent('cat-icons-added', { id: this.id, icons, setName }));
|
|
497
563
|
return this;
|
|
498
564
|
}
|
|
499
565
|
removeIcons(names, setName, silent = false) {
|
|
500
566
|
const iconSize = names.length;
|
|
501
567
|
names.forEach(name => this.icons.delete(this.buildName(name, setName)));
|
|
502
|
-
|
|
568
|
+
log.info(`[CatIconRegistry::${this.id}] Removed ${iconSize !== 1 ? 'icons' : 'icon'}${setName ? ` from set ${setName}` : ''}`);
|
|
503
569
|
!silent && window.dispatchEvent(this.buildEvent('cat-icons-removed', { id: this.id, names, setName }));
|
|
504
570
|
return this;
|
|
505
571
|
}
|
|
@@ -716,8 +782,23 @@ function createNotification(kind, value, error) {
|
|
|
716
782
|
};
|
|
717
783
|
}
|
|
718
784
|
|
|
785
|
+
let context = null;
|
|
719
786
|
function errorContext(cb) {
|
|
720
|
-
{
|
|
787
|
+
if (config.useDeprecatedSynchronousErrorHandling) {
|
|
788
|
+
const isRoot = !context;
|
|
789
|
+
if (isRoot) {
|
|
790
|
+
context = { errorThrown: false, error: null };
|
|
791
|
+
}
|
|
792
|
+
cb();
|
|
793
|
+
if (isRoot) {
|
|
794
|
+
const { errorThrown, error } = context;
|
|
795
|
+
context = null;
|
|
796
|
+
if (errorThrown) {
|
|
797
|
+
throw error;
|
|
798
|
+
}
|
|
799
|
+
}
|
|
800
|
+
}
|
|
801
|
+
else {
|
|
721
802
|
cb();
|
|
722
803
|
}
|
|
723
804
|
}
|
|
@@ -1439,7 +1520,6 @@ exports.arrRemove = arrRemove;
|
|
|
1439
1520
|
exports.catI18nRegistry = catI18nRegistry;
|
|
1440
1521
|
exports.catIconRegistry = catIconRegistry;
|
|
1441
1522
|
exports.commonjsGlobal = commonjsGlobal;
|
|
1442
|
-
exports.createCommonjsModule = createCommonjsModule;
|
|
1443
1523
|
exports.createErrorClass = createErrorClass;
|
|
1444
1524
|
exports.createOperatorSubscriber = createOperatorSubscriber;
|
|
1445
1525
|
exports.errorContext = errorContext;
|
|
@@ -1450,11 +1530,11 @@ exports.innerFrom = innerFrom;
|
|
|
1450
1530
|
exports.isArrayLike = isArrayLike;
|
|
1451
1531
|
exports.isFunction = isFunction;
|
|
1452
1532
|
exports.isScheduler = isScheduler;
|
|
1453
|
-
exports.
|
|
1533
|
+
exports.log = log;
|
|
1454
1534
|
exports.noop = noop;
|
|
1455
1535
|
exports.of = of;
|
|
1456
1536
|
exports.operate = operate;
|
|
1457
1537
|
exports.popNumber = popNumber;
|
|
1458
1538
|
exports.popScheduler = popScheduler;
|
|
1459
1539
|
|
|
1460
|
-
//# sourceMappingURL=of-
|
|
1540
|
+
//# sourceMappingURL=of-45281229.js.map
|