@haiilo/catalyst 6.1.0 → 6.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/catalyst/catalyst.esm.js +1 -1
- package/dist/catalyst/catalyst.esm.js.map +1 -1
- package/dist/catalyst/index.esm.js +2 -2
- package/dist/catalyst/index.esm.js.map +1 -1
- package/dist/catalyst/{p-d7dc291a.js → p-42e63e08.js} +1 -1
- package/dist/catalyst/p-42e63e08.js.map +1 -0
- package/dist/catalyst/p-570a1382.entry.js +10 -0
- package/dist/catalyst/p-570a1382.entry.js.map +1 -0
- package/dist/catalyst/p-897412f2.js +3 -0
- package/dist/catalyst/p-897412f2.js.map +1 -0
- package/dist/cjs/cat-alert_25.cjs.entry.js +15 -19
- package/dist/cjs/cat-alert_25.cjs.entry.js.map +1 -1
- package/dist/cjs/{cat-icon-registry-6161e2ee.js → cat-icon-registry-5c292d3f.js} +1 -1
- package/dist/cjs/cat-icon-registry-5c292d3f.js.map +1 -0
- package/dist/cjs/catalyst.cjs.js +3 -6
- package/dist/cjs/catalyst.cjs.js.map +1 -1
- package/dist/cjs/{index-4258b31e.js → index-8d1f4d8e.js} +89 -32
- package/dist/cjs/index-8d1f4d8e.js.map +1 -0
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/cjs/loader.cjs.js +2 -11
- package/dist/cjs/loader.cjs.js.map +1 -1
- package/dist/collection/collection-manifest.json +27 -27
- package/dist/collection/components/cat-alert/cat-alert.e2e.js +11 -0
- package/dist/collection/components/cat-alert/cat-alert.e2e.js.map +1 -0
- package/dist/collection/components/cat-alert/cat-alert.js +2 -2
- package/dist/collection/components/cat-alert/cat-alert.spec.js +21 -0
- package/dist/collection/components/cat-alert/cat-alert.spec.js.map +1 -0
- package/dist/collection/components/cat-avatar/cat-avatar.e2e.js +10 -0
- package/dist/collection/components/cat-avatar/cat-avatar.e2e.js.map +1 -0
- package/dist/collection/components/cat-avatar/cat-avatar.js +3 -3
- package/dist/collection/components/cat-avatar/cat-avatar.spec.js +18 -0
- package/dist/collection/components/cat-avatar/cat-avatar.spec.js.map +1 -0
- package/dist/collection/components/cat-badge/cat-badge.e2e.js +10 -0
- package/dist/collection/components/cat-badge/cat-badge.e2e.js.map +1 -0
- package/dist/collection/components/cat-badge/cat-badge.js +1 -1
- package/dist/collection/components/cat-badge/cat-badge.spec.js +18 -0
- package/dist/collection/components/cat-badge/cat-badge.spec.js.map +1 -0
- package/dist/collection/components/cat-button/cat-button.e2e.js +10 -0
- package/dist/collection/components/cat-button/cat-button.e2e.js.map +1 -0
- package/dist/collection/components/cat-button/cat-button.js +20 -12
- package/dist/collection/components/cat-button/cat-button.js.map +1 -1
- package/dist/collection/components/cat-button/cat-button.spec.js +18 -0
- package/dist/collection/components/cat-button/cat-button.spec.js.map +1 -0
- package/dist/collection/components/cat-button-group/cat-button-group.e2e.js +10 -0
- package/dist/collection/components/cat-button-group/cat-button-group.e2e.js.map +1 -0
- package/dist/collection/components/cat-button-group/cat-button-group.js +1 -1
- package/dist/collection/components/cat-button-group/cat-button-group.spec.js +18 -0
- package/dist/collection/components/cat-button-group/cat-button-group.spec.js.map +1 -0
- package/dist/collection/components/cat-card/cat-card.e2e.js +10 -0
- package/dist/collection/components/cat-card/cat-card.e2e.js.map +1 -0
- package/dist/collection/components/cat-card/cat-card.js +1 -1
- package/dist/collection/components/cat-card/cat-card.spec.js +18 -0
- package/dist/collection/components/cat-card/cat-card.spec.js.map +1 -0
- package/dist/collection/components/cat-checkbox/cat-checkbox.css +3 -0
- package/dist/collection/components/cat-checkbox/cat-checkbox.e2e.js +10 -0
- package/dist/collection/components/cat-checkbox/cat-checkbox.e2e.js.map +1 -0
- package/dist/collection/components/cat-checkbox/cat-checkbox.js +34 -33
- package/dist/collection/components/cat-checkbox/cat-checkbox.js.map +1 -1
- package/dist/collection/components/cat-checkbox/cat-checkbox.spec.js +29 -0
- package/dist/collection/components/cat-checkbox/cat-checkbox.spec.js.map +1 -0
- package/dist/collection/components/cat-datepicker/cat-datepicker.e2e.js +11 -0
- package/dist/collection/components/cat-datepicker/cat-datepicker.e2e.js.map +1 -0
- package/dist/collection/components/cat-datepicker/cat-datepicker.js +18 -12
- package/dist/collection/components/cat-datepicker/cat-datepicker.js.map +1 -1
- package/dist/collection/components/cat-datepicker/cat-datepicker.locale.js +1 -1
- package/dist/collection/components/cat-datepicker/cat-datepicker.spec.js +19 -0
- package/dist/collection/components/cat-datepicker/cat-datepicker.spec.js.map +1 -0
- package/dist/collection/components/cat-dropdown/cat-dropdown.e2e.js +10 -0
- package/dist/collection/components/cat-dropdown/cat-dropdown.e2e.js.map +1 -0
- package/dist/collection/components/cat-dropdown/cat-dropdown.js +17 -11
- package/dist/collection/components/cat-dropdown/cat-dropdown.js.map +1 -1
- package/dist/collection/components/cat-dropdown/cat-dropdown.spec.js +26 -0
- package/dist/collection/components/cat-dropdown/cat-dropdown.spec.js.map +1 -0
- package/dist/collection/components/cat-form-group/cat-form-group.e2e.js +10 -0
- package/dist/collection/components/cat-form-group/cat-form-group.e2e.js.map +1 -0
- package/dist/collection/components/cat-form-group/cat-form-group.js +1 -1
- package/dist/collection/components/cat-form-group/cat-form-group.spec.js +18 -0
- package/dist/collection/components/cat-form-group/cat-form-group.spec.js.map +1 -0
- package/dist/collection/components/cat-form-hint/cat-form-hint.js +2 -2
- package/dist/collection/components/cat-form-hint/cat-form-hint.spec.js +15 -0
- package/dist/collection/components/cat-form-hint/cat-form-hint.spec.js.map +1 -0
- package/dist/collection/components/cat-i18n/cat-i18n-registry.js +1 -1
- package/dist/collection/components/cat-i18n/cat-i18n-registry.spec.js +7 -0
- package/dist/collection/components/cat-i18n/cat-i18n-registry.spec.js.map +1 -0
- package/dist/collection/components/cat-icon/cat-icon-registry.js +13 -13
- package/dist/collection/components/cat-icon/cat-icon-registry.spec.js +7 -0
- package/dist/collection/components/cat-icon/cat-icon-registry.spec.js.map +1 -0
- package/dist/collection/components/cat-icon/cat-icon.e2e.js +11 -0
- package/dist/collection/components/cat-icon/cat-icon.e2e.js.map +1 -0
- package/dist/collection/components/cat-icon/cat-icon.js +2 -2
- package/dist/collection/components/cat-icon/cat-icon.spec.js +15 -0
- package/dist/collection/components/cat-icon/cat-icon.spec.js.map +1 -0
- package/dist/collection/components/cat-input/cat-input.e2e.js +11 -0
- package/dist/collection/components/cat-input/cat-input.e2e.js.map +1 -0
- package/dist/collection/components/cat-input/cat-input.js +21 -13
- package/dist/collection/components/cat-input/cat-input.js.map +1 -1
- package/dist/collection/components/cat-input/cat-input.spec.js +36 -0
- package/dist/collection/components/cat-input/cat-input.spec.js.map +1 -0
- package/dist/collection/components/cat-notification/cat-notification.js +4 -3
- package/dist/collection/components/cat-notification/cat-notification.js.map +1 -1
- package/dist/collection/components/cat-notification/cat-notification.spec.js +7 -0
- package/dist/collection/components/cat-notification/cat-notification.spec.js.map +1 -0
- package/dist/collection/components/cat-pagination/cat-pagination.e2e.js +14 -0
- package/dist/collection/components/cat-pagination/cat-pagination.e2e.js.map +1 -0
- package/dist/collection/components/cat-pagination/cat-pagination.js +2 -2
- package/dist/collection/components/cat-pagination/cat-pagination.spec.js +31 -0
- package/dist/collection/components/cat-pagination/cat-pagination.spec.js.map +1 -0
- package/dist/collection/components/cat-radio/cat-radio.e2e.js +10 -0
- package/dist/collection/components/cat-radio/cat-radio.e2e.js.map +1 -0
- package/dist/collection/components/cat-radio/cat-radio.js +13 -8
- package/dist/collection/components/cat-radio/cat-radio.js.map +1 -1
- package/dist/collection/components/cat-radio/cat-radio.spec.js +24 -0
- package/dist/collection/components/cat-radio/cat-radio.spec.js.map +1 -0
- package/dist/collection/components/cat-radio-group/cat-radio-group.e2e.js +10 -0
- package/dist/collection/components/cat-radio-group/cat-radio-group.e2e.js.map +1 -0
- package/dist/collection/components/cat-radio-group/cat-radio-group.js +5 -3
- 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 +20 -0
- package/dist/collection/components/cat-radio-group/cat-radio-group.spec.js.map +1 -0
- package/dist/collection/components/cat-scrollable/cat-scrollable.e2e.js +10 -0
- package/dist/collection/components/cat-scrollable/cat-scrollable.e2e.js.map +1 -0
- package/dist/collection/components/cat-scrollable/cat-scrollable.js +6 -4
- package/dist/collection/components/cat-scrollable/cat-scrollable.js.map +1 -1
- package/dist/collection/components/cat-scrollable/cat-scrollable.spec.js +25 -0
- package/dist/collection/components/cat-scrollable/cat-scrollable.spec.js.map +1 -0
- package/dist/collection/components/cat-select/cat-select.e2e.js +14 -0
- package/dist/collection/components/cat-select/cat-select.e2e.js.map +1 -0
- package/dist/collection/components/cat-select/cat-select.js +39 -23
- package/dist/collection/components/cat-select/cat-select.js.map +1 -1
- package/dist/collection/components/cat-select/cat-select.spec.js +41 -0
- package/dist/collection/components/cat-select/cat-select.spec.js.map +1 -0
- package/dist/collection/components/cat-select-demo/cat-select-demo.js +2 -2
- package/dist/collection/components/cat-skeleton/cat-skeleton.e2e.js +10 -0
- package/dist/collection/components/cat-skeleton/cat-skeleton.e2e.js.map +1 -0
- package/dist/collection/components/cat-skeleton/cat-skeleton.js +1 -1
- package/dist/collection/components/cat-skeleton/cat-skeleton.spec.js +18 -0
- package/dist/collection/components/cat-skeleton/cat-skeleton.spec.js.map +1 -0
- package/dist/collection/components/cat-spinner/cat-spinner.e2e.js +10 -0
- package/dist/collection/components/cat-spinner/cat-spinner.e2e.js.map +1 -0
- package/dist/collection/components/cat-spinner/cat-spinner.js +1 -1
- package/dist/collection/components/cat-spinner/cat-spinner.spec.js +18 -0
- package/dist/collection/components/cat-spinner/cat-spinner.spec.js.map +1 -0
- package/dist/collection/components/cat-tab/cat-tab.e2e.js +10 -0
- package/dist/collection/components/cat-tab/cat-tab.e2e.js.map +1 -0
- package/dist/collection/components/cat-tab/cat-tab.js +5 -3
- package/dist/collection/components/cat-tab/cat-tab.js.map +1 -1
- package/dist/collection/components/cat-tab/cat-tab.spec.js +17 -0
- package/dist/collection/components/cat-tab/cat-tab.spec.js.map +1 -0
- package/dist/collection/components/cat-tabs/cat-tabs.e2e.js +10 -0
- package/dist/collection/components/cat-tabs/cat-tabs.e2e.js.map +1 -0
- package/dist/collection/components/cat-tabs/cat-tabs.js +1 -1
- package/dist/collection/components/cat-tabs/cat-tabs.spec.js +17 -0
- package/dist/collection/components/cat-tabs/cat-tabs.spec.js.map +1 -0
- package/dist/collection/components/cat-textarea/cat-textarea.e2e.js +11 -0
- package/dist/collection/components/cat-textarea/cat-textarea.e2e.js.map +1 -0
- package/dist/collection/components/cat-textarea/cat-textarea.js +20 -13
- package/dist/collection/components/cat-textarea/cat-textarea.js.map +1 -1
- package/dist/collection/components/cat-textarea/cat-textarea.spec.js +34 -0
- package/dist/collection/components/cat-textarea/cat-textarea.spec.js.map +1 -0
- package/dist/collection/components/cat-toggle/cat-toggle.e2e.js +10 -0
- package/dist/collection/components/cat-toggle/cat-toggle.e2e.js.map +1 -0
- package/dist/collection/components/cat-toggle/cat-toggle.js +13 -8
- package/dist/collection/components/cat-toggle/cat-toggle.js.map +1 -1
- package/dist/collection/components/cat-toggle/cat-toggle.spec.js +22 -0
- package/dist/collection/components/cat-toggle/cat-toggle.spec.js.map +1 -0
- package/dist/collection/components/cat-tooltip/cat-tooltip.e2e.js +10 -0
- package/dist/collection/components/cat-tooltip/cat-tooltip.e2e.js.map +1 -0
- package/dist/collection/components/cat-tooltip/cat-tooltip.js +8 -5
- package/dist/collection/components/cat-tooltip/cat-tooltip.js.map +1 -1
- package/dist/collection/components/cat-tooltip/cat-tooltip.spec.js +24 -0
- package/dist/collection/components/cat-tooltip/cat-tooltip.spec.js.map +1 -0
- package/dist/collection/utils/first-tabbable.js +1 -1
- package/dist/collection/utils/media-matcher.js +2 -2
- package/dist/collection/utils/media-matcher.spec.js +39 -0
- package/dist/collection/utils/media-matcher.spec.js.map +1 -0
- package/dist/components/cat-alert.js +1 -1
- package/dist/components/cat-alert.js.map +1 -1
- package/dist/components/cat-avatar2.js +1 -1
- package/dist/components/cat-avatar2.js.map +1 -1
- package/dist/components/cat-badge.js +1 -1
- package/dist/components/cat-badge.js.map +1 -1
- package/dist/components/cat-button-group.js +1 -1
- package/dist/components/cat-button-group.js.map +1 -1
- package/dist/components/cat-button2.js +1 -1
- package/dist/components/cat-button2.js.map +1 -1
- package/dist/components/cat-card.js +1 -1
- package/dist/components/cat-card.js.map +1 -1
- package/dist/components/cat-checkbox2.js +6 -10
- package/dist/components/cat-checkbox2.js.map +1 -1
- package/dist/components/cat-datepicker.js +1 -1
- package/dist/components/cat-datepicker.js.map +1 -1
- package/dist/components/cat-dropdown2.js +1 -1
- package/dist/components/cat-dropdown2.js.map +1 -1
- package/dist/components/cat-form-group.js +1 -1
- package/dist/components/cat-form-group.js.map +1 -1
- package/dist/components/cat-form-hint.js.map +1 -1
- package/dist/components/cat-i18n-registry.js.map +1 -1
- package/dist/components/cat-icon-registry.js.map +1 -1
- package/dist/components/cat-icon2.js +1 -1
- package/dist/components/cat-icon2.js.map +1 -1
- package/dist/components/cat-input2.js +1 -1
- package/dist/components/cat-input2.js.map +1 -1
- package/dist/components/cat-pagination.js +1 -1
- package/dist/components/cat-pagination.js.map +1 -1
- package/dist/components/cat-radio-group.js +1 -1
- package/dist/components/cat-radio-group.js.map +1 -1
- package/dist/components/cat-radio.js +1 -1
- package/dist/components/cat-radio.js.map +1 -1
- package/dist/components/cat-scrollable2.js +5 -7
- package/dist/components/cat-scrollable2.js.map +1 -1
- package/dist/components/cat-select-demo.js +3 -3
- package/dist/components/cat-select-demo.js.map +1 -1
- package/dist/components/cat-select2.js +5 -3
- package/dist/components/cat-select2.js.map +1 -1
- package/dist/components/cat-skeleton2.js +1 -1
- package/dist/components/cat-skeleton2.js.map +1 -1
- package/dist/components/cat-spinner2.js +1 -1
- package/dist/components/cat-spinner2.js.map +1 -1
- package/dist/components/cat-tab.js +1 -1
- package/dist/components/cat-tab.js.map +1 -1
- package/dist/components/cat-tabs.js +1 -1
- package/dist/components/cat-tabs.js.map +1 -1
- package/dist/components/cat-textarea.js +1 -1
- package/dist/components/cat-textarea.js.map +1 -1
- package/dist/components/cat-toggle.js +1 -1
- package/dist/components/cat-toggle.js.map +1 -1
- package/dist/components/cat-tooltip.js +2 -2
- package/dist/components/cat-tooltip.js.map +1 -1
- package/dist/components/coerce.js.map +1 -1
- package/dist/components/floating-ui.dom.esm.js.map +1 -1
- package/dist/components/index.js.map +1 -1
- package/dist/components/loglevel.js.map +1 -1
- package/dist/esm/cat-alert_25.entry.js +15 -19
- package/dist/esm/cat-alert_25.entry.js.map +1 -1
- package/dist/esm/{cat-icon-registry-f15b29d9.js → cat-icon-registry-4fc73466.js} +1 -1
- package/dist/esm/cat-icon-registry-4fc73466.js.map +1 -0
- package/dist/esm/catalyst.js +4 -7
- package/dist/esm/catalyst.js.map +1 -1
- package/dist/esm/{index-636ce8d6.js → index-16bd9531.js} +89 -32
- package/dist/esm/index-16bd9531.js.map +1 -0
- package/dist/esm/index.js +2 -2
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/loader.js +3 -12
- package/dist/esm/loader.js.map +1 -1
- package/dist/types/components/cat-checkbox/cat-checkbox.d.ts +4 -5
- package/dist/types/stencil-public-runtime.d.ts +3 -0
- package/loader/index.d.ts +1 -1
- package/package.json +15 -13
- package/dist/catalyst/p-b218a2b0.entry.js +0 -10
- package/dist/catalyst/p-b218a2b0.entry.js.map +0 -1
- package/dist/catalyst/p-ce6a1db2.js +0 -3
- package/dist/catalyst/p-ce6a1db2.js.map +0 -1
- package/dist/catalyst/p-d7dc291a.js.map +0 -1
- package/dist/cjs/cat-icon-registry-6161e2ee.js.map +0 -1
- package/dist/cjs/index-4258b31e.js.map +0 -1
- package/dist/esm/cat-icon-registry-f15b29d9.js.map +0 -1
- package/dist/esm/index-636ce8d6.js.map +0 -1
- package/dist/esm/polyfills/css-shim.js +0 -1
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
6
|
-
const catIconRegistry = require('./cat-icon-registry-
|
|
5
|
+
const index = require('./index-8d1f4d8e.js');
|
|
6
|
+
const catIconRegistry = require('./cat-icon-registry-5c292d3f.js');
|
|
7
7
|
|
|
8
8
|
function setAttributeDefault(host, attr, value) {
|
|
9
9
|
if (!host.hostElement.hasAttribute(attr) && value != null) {
|
|
@@ -477,7 +477,7 @@ const CatFormHint = props => {
|
|
|
477
477
|
]));
|
|
478
478
|
};
|
|
479
479
|
|
|
480
|
-
const catCheckboxCss = ".hint-section{display:flex;gap:0.5rem;flex-direction:column;color:rgb(var(--cat-hint-color, inherit))}.hint-section .input-hint,.hint-section ::slotted([slot=hint]){font-size:0.875rem;line-height:1.125rem;font-weight:var(--cat-font-weight-body, 400);margin:0 !important}.hint-wrapper{flex:0 1 auto;display:flex;gap:0.5rem}.hint-section{flex:1 1 auto;min-width:0}.input-hint,::slotted([slot=hint]){color:rgb(var(--cat-font-color-muted, 81, 92, 108));line-height:1.5;flex:1 1 auto;min-width:0}:host{display:flex;flex-direction:column;gap:0.5rem;margin-bottom:1rem}:host([hidden]){display:none}label{flex:0 1 auto;display:flex;gap:0.5rem;font-size:0.9375rem;line-height:1.25rem;font-weight:var(--cat-font-weight-body, 400);-webkit-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;position:relative}.label-left{flex-direction:row-reverse}.label-left input{right:1px;left:unset}input{position:absolute;width:1.25rem;height:1.25rem;margin:0;opacity:0;cursor:inherit;left:1px;top:0.5px}.box-placeholder{width:calc(1.25rem + 1px)}.box{flex:0 0 auto;display:flex;position:relative;height:1.25rem;width:1.25rem;background-color:white;border:1px solid rgb(var(--cat-border-color-dark, 215, 219, 224));border-radius:var(--cat-border-radius-s, 0.125rem);transition:background-color 0.13s ease, border-color 0.13s ease;pointer-events:none}.box svg{fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:16px;stroke-dashoffset:16px;transition:all 0.13s ease;width:50%;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%) scale(0.99)}:checked+.box{background-color:rgb(var(--cat-primary-bg, 0, 129, 148));border-color:rgb(var(--cat-primary-bg, 0, 129, 148));stroke:rgb(var(--cat-primary-fill, 255, 255, 255))}:checked+.box .check{stroke-dashoffset:0}:indeterminate+.box{background-color:rgb(var(--cat-primary-bg, 0, 129, 148));border-color:rgb(var(--cat-primary-bg, 0, 129, 148));stroke:rgb(var(--cat-primary-fill, 255, 255, 255))}:indeterminate+.box .dash{stroke-dashoffset:0}:focus-visible+.box{outline:2px solid rgb(var(--cat-border-color-focus, 0, 113, 255));outline-offset:1px}.is-disabled .box{background-color:#f2f4f7;border-color:rgb(var(--cat-border-color-dark, 215, 219, 224));stroke:rgb(var(--cat-font-color-muted, 81, 92, 108))}:host(.cat-error) .box{border:1px solid rgb(var(--cat-danger-bg, 217, 52, 13))}:host(.cat-error) :checked+.box,:host(.cat-error) :indeterminate+.box{background-color:rgb(var(--cat-danger-bg, 217, 52, 13));border-color:rgb(var(--cat-danger-bg, 217, 52, 13));stroke:rgb(var(--cat-danger-fill, 255, 255, 255))}.label{flex:1 1 auto;min-width:0}.is-hidden .label{position:absolute !important;width:1px !important;height:1px !important;padding:0 !important;margin:-1px !important;overflow:hidden !important;clip:rect(0, 0, 0, 0) !important;white-space:nowrap !important;border:0 !important}.is-disabled{cursor:not-allowed;color:rgb(var(--cat-font-color-muted, 81, 92, 108))}";
|
|
480
|
+
const catCheckboxCss = ".hint-section{display:flex;gap:0.5rem;flex-direction:column;color:rgb(var(--cat-hint-color, inherit))}.hint-section .input-hint,.hint-section ::slotted([slot=hint]){font-size:0.875rem;line-height:1.125rem;font-weight:var(--cat-font-weight-body, 400);margin:0 !important}.hint-wrapper{flex:0 1 auto;display:flex;gap:0.5rem}.hint-section{flex:1 1 auto;min-width:0}.input-hint,::slotted([slot=hint]){color:rgb(var(--cat-font-color-muted, 81, 92, 108));line-height:1.5;flex:1 1 auto;min-width:0}:host{display:flex;flex-direction:column;gap:0.5rem;margin-bottom:1rem}:host([hidden]){display:none}label{flex:0 1 auto;display:flex;gap:0.5rem;font-size:0.9375rem;line-height:1.25rem;font-weight:var(--cat-font-weight-body, 400);-webkit-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;position:relative}.label-left{flex-direction:row-reverse}.label-left input{right:1px;left:unset}input{position:absolute;width:1.25rem;height:1.25rem;margin:0;opacity:0;cursor:inherit;left:1px;top:0.5px}.box-placeholder{width:calc(1.25rem + 1px)}.box{flex:0 0 auto;display:flex;position:relative;height:1.25rem;width:1.25rem;background-color:white;border:1px solid rgb(var(--cat-border-color-dark, 215, 219, 224));border-radius:var(--cat-border-radius-s, 0.125rem);transition:background-color 0.13s ease, border-color 0.13s ease;pointer-events:none}.box svg{fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:16px;stroke-dashoffset:16px;transition:all 0.13s ease;width:50%;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%) scale(0.99)}:checked+.box{background-color:rgb(var(--cat-primary-bg, 0, 129, 148));border-color:rgb(var(--cat-primary-bg, 0, 129, 148));stroke:rgb(var(--cat-primary-fill, 255, 255, 255))}:checked+.box .check{stroke-dashoffset:0}:indeterminate+.box{background-color:rgb(var(--cat-primary-bg, 0, 129, 148));border-color:rgb(var(--cat-primary-bg, 0, 129, 148));stroke:rgb(var(--cat-primary-fill, 255, 255, 255))}:indeterminate+.box .check{stroke-dashoffset:16px}:indeterminate+.box .dash{stroke-dashoffset:0}:focus-visible+.box{outline:2px solid rgb(var(--cat-border-color-focus, 0, 113, 255));outline-offset:1px}.is-disabled .box{background-color:#f2f4f7;border-color:rgb(var(--cat-border-color-dark, 215, 219, 224));stroke:rgb(var(--cat-font-color-muted, 81, 92, 108))}:host(.cat-error) .box{border:1px solid rgb(var(--cat-danger-bg, 217, 52, 13))}:host(.cat-error) :checked+.box,:host(.cat-error) :indeterminate+.box{background-color:rgb(var(--cat-danger-bg, 217, 52, 13));border-color:rgb(var(--cat-danger-bg, 217, 52, 13));stroke:rgb(var(--cat-danger-fill, 255, 255, 255))}.label{flex:1 1 auto;min-width:0}.is-hidden .label{position:absolute !important;width:1px !important;height:1px !important;padding:0 !important;margin:-1px !important;overflow:hidden !important;clip:rect(0, 0, 0, 0) !important;white-space:nowrap !important;border:0 !important}.is-disabled{cursor:not-allowed;color:rgb(var(--cat-font-color-muted, 81, 92, 108))}";
|
|
481
481
|
|
|
482
482
|
let nextUniqueId$8 = 0;
|
|
483
483
|
const CatCheckbox = class {
|
|
@@ -490,9 +490,9 @@ const CatCheckbox = class {
|
|
|
490
490
|
this.hasSlottedLabel = false;
|
|
491
491
|
this.hasSlottedHint = false;
|
|
492
492
|
this.checked = false;
|
|
493
|
+
this.indeterminate = false;
|
|
493
494
|
this.disabled = false;
|
|
494
495
|
this.identifier = undefined;
|
|
495
|
-
this.indeterminate = false;
|
|
496
496
|
this.label = '';
|
|
497
497
|
this.labelHidden = false;
|
|
498
498
|
this.name = undefined;
|
|
@@ -509,11 +509,6 @@ const CatCheckbox = class {
|
|
|
509
509
|
componentWillLoad() {
|
|
510
510
|
this.updateResolved();
|
|
511
511
|
}
|
|
512
|
-
componentDidLoad() {
|
|
513
|
-
if (this.input && this.indeterminate) {
|
|
514
|
-
this.input.indeterminate = true;
|
|
515
|
-
}
|
|
516
|
-
}
|
|
517
512
|
componentWillRender() {
|
|
518
513
|
this.hasSlottedLabel = !!this.hostElement.querySelector('[slot="label"]');
|
|
519
514
|
this.hasSlottedHint = !!this.hostElement.querySelector('[slot="hint"]');
|
|
@@ -539,10 +534,11 @@ const CatCheckbox = class {
|
|
|
539
534
|
this.input.blur();
|
|
540
535
|
}
|
|
541
536
|
render() {
|
|
542
|
-
return (index.h(index.Host, null, index.h("label", { htmlFor: this.id, class: { 'is-hidden': this.labelHidden, 'is-disabled': this.disabled, 'label-left': this.labelLeft } }, index.h("input", { ...this.nativeAttributes, ref: el => (this.input = el), id: this.id, type: "checkbox", name: this.name, value: this.value, checked: this.checked, required: this.required, disabled: this.disabled, onInput: this.onInput.bind(this), onFocus: this.onFocus.bind(this), onBlur: this.onBlur.bind(this) }), index.h("span", { class: "box", "aria-hidden": "true", part: "checkbox" }, index.h("svg", { class: "check", viewBox: "0 0 12 10" }, index.h("polyline", { points: "1.5 6 4.5 9 10.5 1" })), index.h("svg", { class: "dash", viewBox: "0 0 12 10" }, index.h("polyline", { points: "1.5 5 10.5 5" }))), index.h("span", { class: "label", part: "label" }, (this.hasSlottedLabel && index.h("slot", { name: "label" })) || this.label)), (this.hint || this.hasSlottedHint) && (index.h("div", { class: { 'hint-wrapper': true, 'label-left': this.labelLeft } }, index.h("div", { class: "box-placeholder" }), index.h(CatFormHint, { id: this.id, hint: this.hint, slottedHint: this.hasSlottedHint && index.h("slot", { name: "hint" }) })))));
|
|
537
|
+
return (index.h(index.Host, null, index.h("label", { htmlFor: this.id, class: { 'is-hidden': this.labelHidden, 'is-disabled': this.disabled, 'label-left': this.labelLeft } }, index.h("input", { ...this.nativeAttributes, ref: el => (this.input = el), id: this.id, type: "checkbox", name: this.name, value: this.value, checked: this.checked, required: this.required, disabled: this.disabled, indeterminate: this.indeterminate, onInput: this.onInput.bind(this), onFocus: this.onFocus.bind(this), onBlur: this.onBlur.bind(this) }), index.h("span", { class: "box", "aria-hidden": "true", part: "checkbox" }, index.h("svg", { class: "check", viewBox: "0 0 12 10" }, index.h("polyline", { points: "1.5 6 4.5 9 10.5 1" })), index.h("svg", { class: "dash", viewBox: "0 0 12 10" }, index.h("polyline", { points: "1.5 5 10.5 5" }))), index.h("span", { class: "label", part: "label" }, (this.hasSlottedLabel && index.h("slot", { name: "label" })) || this.label)), (this.hint || this.hasSlottedHint) && (index.h("div", { class: { 'hint-wrapper': true, 'label-left': this.labelLeft } }, index.h("div", { class: "box-placeholder" }), index.h(CatFormHint, { id: this.id, hint: this.hint, slottedHint: this.hasSlottedHint && index.h("slot", { name: "hint" }) })))));
|
|
543
538
|
}
|
|
544
539
|
onInput() {
|
|
545
540
|
this.checked = this.input.checked;
|
|
541
|
+
this.indeterminate = this.input.indeterminate;
|
|
546
542
|
this.updateResolved();
|
|
547
543
|
this.catChange.emit(this.resolvedValue);
|
|
548
544
|
}
|
|
@@ -7012,7 +7008,7 @@ class SafeSubscriber extends Subscriber {
|
|
|
7012
7008
|
let partialObserver;
|
|
7013
7009
|
if (isFunction(observerOrNext) || !observerOrNext) {
|
|
7014
7010
|
partialObserver = {
|
|
7015
|
-
next:
|
|
7011
|
+
next: observerOrNext !== null && observerOrNext !== void 0 ? observerOrNext : undefined,
|
|
7016
7012
|
error: error !== null && error !== void 0 ? error : undefined,
|
|
7017
7013
|
complete: complete !== null && complete !== void 0 ? complete : undefined,
|
|
7018
7014
|
};
|
|
@@ -7406,7 +7402,6 @@ class AsyncAction extends Action {
|
|
|
7406
7402
|
this.pending = false;
|
|
7407
7403
|
}
|
|
7408
7404
|
schedule(state, delay = 0) {
|
|
7409
|
-
var _a;
|
|
7410
7405
|
if (this.closed) {
|
|
7411
7406
|
return this;
|
|
7412
7407
|
}
|
|
@@ -7418,7 +7413,7 @@ class AsyncAction extends Action {
|
|
|
7418
7413
|
}
|
|
7419
7414
|
this.pending = true;
|
|
7420
7415
|
this.delay = delay;
|
|
7421
|
-
this.id =
|
|
7416
|
+
this.id = this.id || this.requestAsyncId(scheduler, this.id, delay);
|
|
7422
7417
|
return this;
|
|
7423
7418
|
}
|
|
7424
7419
|
requestAsyncId(scheduler, _id, delay = 0) {
|
|
@@ -7428,9 +7423,7 @@ class AsyncAction extends Action {
|
|
|
7428
7423
|
if (delay != null && this.delay === delay && this.pending === false) {
|
|
7429
7424
|
return id;
|
|
7430
7425
|
}
|
|
7431
|
-
|
|
7432
|
-
intervalProvider.clearInterval(id);
|
|
7433
|
-
}
|
|
7426
|
+
intervalProvider.clearInterval(id);
|
|
7434
7427
|
return undefined;
|
|
7435
7428
|
}
|
|
7436
7429
|
execute(state, delay) {
|
|
@@ -7493,6 +7486,7 @@ class AsyncScheduler extends Scheduler {
|
|
|
7493
7486
|
super(SchedulerAction, now);
|
|
7494
7487
|
this.actions = [];
|
|
7495
7488
|
this._active = false;
|
|
7489
|
+
this._scheduled = undefined;
|
|
7496
7490
|
}
|
|
7497
7491
|
flush(action) {
|
|
7498
7492
|
const { actions } = this;
|
|
@@ -8249,7 +8243,7 @@ function delayWhen(delayDurationSelector, subscriptionDelay) {
|
|
|
8249
8243
|
if (subscriptionDelay) {
|
|
8250
8244
|
return (source) => concat(subscriptionDelay.pipe(take(1), ignoreElements()), source.pipe(delayWhen(delayDurationSelector)));
|
|
8251
8245
|
}
|
|
8252
|
-
return mergeMap((value, index) =>
|
|
8246
|
+
return mergeMap((value, index) => delayDurationSelector(value, index).pipe(take(1), mapTo(value)));
|
|
8253
8247
|
}
|
|
8254
8248
|
|
|
8255
8249
|
function delay(due, scheduler = asyncScheduler) {
|
|
@@ -8582,6 +8576,7 @@ const INIT_STATE = {
|
|
|
8582
8576
|
activeSelectionIndex: -1
|
|
8583
8577
|
};
|
|
8584
8578
|
let nextUniqueId$4 = 0;
|
|
8579
|
+
let nextTagUniqueId = 0;
|
|
8585
8580
|
const CatSelect = class {
|
|
8586
8581
|
constructor(hostRef) {
|
|
8587
8582
|
index.registerInstance(this, hostRef);
|
|
@@ -8713,7 +8708,8 @@ const CatSelect = class {
|
|
|
8713
8708
|
}
|
|
8714
8709
|
}
|
|
8715
8710
|
this.hide();
|
|
8716
|
-
if
|
|
8711
|
+
// Conditionally remove selection if the option was not manually selected through click or enter key press
|
|
8712
|
+
if (!this.multiple && (!this.tags || !this.state.selection?.length) && this.state.tempSelection?.length) {
|
|
8717
8713
|
this.patchState({
|
|
8718
8714
|
activeSelectionIndex: -1,
|
|
8719
8715
|
selection: this.state.tempSelection,
|
|
@@ -9116,7 +9112,7 @@ const CatSelect = class {
|
|
|
9116
9112
|
if (term.trim().length && !this.isTagSelected(term)) {
|
|
9117
9113
|
const value = this.value;
|
|
9118
9114
|
const tags = value?.tags;
|
|
9119
|
-
const tag = { id: `select-${this.id}-tag-${tags ? tags
|
|
9115
|
+
const tag = { id: `select-${this.id}-tag-${tags?.length ? tags?.length + nextTagUniqueId++ : 0}`, name: term };
|
|
9120
9116
|
this.select({ item: tag, render: { label: tag.name } });
|
|
9121
9117
|
}
|
|
9122
9118
|
this.setTransparentCaret();
|