@haiilo/catalyst 6.4.7 → 6.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/catalyst/catalyst.css +1 -1
- package/dist/catalyst/catalyst.esm.js +1 -1
- package/dist/catalyst/catalyst.esm.js.map +1 -1
- package/dist/catalyst/index.esm.js +1 -1
- package/dist/catalyst/index.esm.js.map +1 -1
- package/dist/catalyst/p-19fad7af.js +2 -0
- package/dist/catalyst/p-19fad7af.js.map +1 -0
- package/dist/catalyst/p-376b504c.js +3 -0
- package/dist/catalyst/p-376b504c.js.map +1 -0
- package/dist/catalyst/p-d303131e.entry.js +10 -0
- package/dist/catalyst/p-d303131e.entry.js.map +1 -0
- package/dist/cjs/cat-alert_26.cjs.entry.js +118 -52
- package/dist/cjs/cat-alert_26.cjs.entry.js.map +1 -1
- package/dist/cjs/catalyst.cjs.js +3 -3
- package/dist/cjs/catalyst.cjs.js.map +1 -1
- package/dist/cjs/{index-6ec4ef6d.js → index-329a3380.js} +111 -29
- package/dist/cjs/index-329a3380.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 -2
- package/dist/cjs/{of-eda6baf8.js → of-8545b523.js} +2 -2
- package/dist/cjs/of-8545b523.js.map +1 -0
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/collection/components/cat-alert/cat-alert.css +10 -20
- package/dist/collection/components/cat-avatar/cat-avatar.css +2 -2
- package/dist/collection/components/cat-badge/cat-badge.css +6 -11
- package/dist/collection/components/cat-checkbox/cat-checkbox.js +4 -1
- package/dist/collection/components/cat-checkbox/cat-checkbox.js.map +1 -1
- package/dist/collection/components/cat-datepicker/cat-datepicker.config.js +1 -0
- package/dist/collection/components/cat-datepicker/cat-datepicker.config.js.map +1 -1
- package/dist/collection/components/cat-dropdown/cat-dropdown.js +2 -4
- package/dist/collection/components/cat-dropdown/cat-dropdown.js.map +1 -1
- package/dist/collection/components/cat-form-hint/cat-form-hint.js +1 -1
- package/dist/collection/components/cat-form-hint/cat-form-hint.js.map +1 -1
- package/dist/collection/components/cat-form-hint/cat-form-hint.spec.js +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 +1 -1
- package/dist/collection/components/cat-i18n/cat-i18n-registry.js.map +1 -1
- package/dist/collection/components/cat-input/cat-input.js +20 -4
- package/dist/collection/components/cat-input/cat-input.js.map +1 -1
- package/dist/collection/components/cat-notification/cat-notification.js +1 -2
- package/dist/collection/components/cat-notification/cat-notification.js.map +1 -1
- package/dist/collection/components/cat-radio/cat-radio.js +4 -1
- package/dist/collection/components/cat-radio/cat-radio.js.map +1 -1
- package/dist/collection/components/cat-scrollable/cat-scrollable.js +1 -3
- package/dist/collection/components/cat-scrollable/cat-scrollable.js.map +1 -1
- package/dist/collection/components/cat-select/cat-select.css +3 -0
- package/dist/collection/components/cat-select/cat-select.js +13 -8
- package/dist/collection/components/cat-select/cat-select.js.map +1 -1
- package/dist/collection/components/cat-textarea/cat-textarea.js +5 -2
- package/dist/collection/components/cat-textarea/cat-textarea.js.map +1 -1
- package/dist/collection/components/cat-toggle/cat-toggle.js +4 -1
- package/dist/collection/components/cat-toggle/cat-toggle.js.map +1 -1
- package/dist/collection/components/cat-tooltip/cat-tooltip.js +2 -4
- package/dist/collection/components/cat-tooltip/cat-tooltip.js.map +1 -1
- package/dist/components/cat-alert.js +1 -1
- package/dist/components/cat-alert.js.map +1 -1
- package/dist/components/cat-avatar2.js +3 -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-button2.js +3 -1
- package/dist/components/cat-button2.js.map +1 -1
- package/dist/components/cat-checkbox2.js +4 -1
- package/dist/components/cat-checkbox2.js.map +1 -1
- package/dist/components/cat-datepicker-inline.js +4 -0
- package/dist/components/cat-datepicker-inline.js.map +1 -1
- package/dist/components/cat-datepicker.js +6 -0
- package/dist/components/cat-datepicker.js.map +1 -1
- package/dist/components/cat-datepicker.locale.js +1 -0
- package/dist/components/cat-datepicker.locale.js.map +1 -1
- package/dist/components/cat-dropdown2.js +44 -25
- package/dist/components/cat-dropdown2.js.map +1 -1
- package/dist/components/cat-form-group.js +3 -0
- package/dist/components/cat-form-group.js.map +1 -1
- package/dist/components/cat-form-hint.js +1 -1
- package/dist/components/cat-form-hint.js.map +1 -1
- package/dist/components/cat-i18n-registry.js +1 -1
- package/dist/components/cat-i18n-registry.js.map +1 -1
- package/dist/components/cat-input2.js +22 -4
- package/dist/components/cat-input2.js.map +1 -1
- package/dist/components/cat-radio-group.js +6 -1
- package/dist/components/cat-radio-group.js.map +1 -1
- package/dist/components/cat-radio.js +4 -1
- package/dist/components/cat-radio.js.map +1 -1
- package/dist/components/cat-select2.js +18 -6
- package/dist/components/cat-select2.js.map +1 -1
- package/dist/components/cat-tabs.js +3 -1
- package/dist/components/cat-tabs.js.map +1 -1
- package/dist/components/cat-textarea.js +7 -2
- package/dist/components/cat-textarea.js.map +1 -1
- package/dist/components/cat-toggle.js +4 -1
- package/dist/components/cat-toggle.js.map +1 -1
- package/dist/components/floating-ui.dom.esm.js +16 -5
- package/dist/components/floating-ui.dom.esm.js.map +1 -1
- package/dist/components/index.d.ts +6 -0
- package/dist/components/index.js +1 -1
- package/dist/components/index.js.map +1 -1
- package/dist/esm/cat-alert_26.entry.js +118 -52
- package/dist/esm/cat-alert_26.entry.js.map +1 -1
- package/dist/esm/catalyst.js +4 -4
- package/dist/esm/catalyst.js.map +1 -1
- package/dist/esm/{index-b424aa97.js → index-6af09649.js} +111 -29
- package/dist/esm/index-6af09649.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 -3
- package/dist/esm/{of-246f9b35.js → of-a965d8fb.js} +2 -2
- package/dist/esm/of-a965d8fb.js.map +1 -0
- package/dist/types/components/cat-checkbox/cat-checkbox.d.ts +1 -0
- package/dist/types/components/cat-i18n/cat-i18n-registry.d.ts +1 -0
- package/dist/types/components/cat-input/cat-input.d.ts +2 -0
- package/dist/types/components/cat-radio/cat-radio.d.ts +1 -0
- package/dist/types/components/cat-select/cat-select.d.ts +1 -0
- package/dist/types/components/cat-textarea/cat-textarea.d.ts +1 -0
- package/dist/types/components/cat-toggle/cat-toggle.d.ts +1 -0
- package/dist/types/stencil-public-runtime.d.ts +5 -3
- package/package.json +18 -18
- package/dist/catalyst/p-77eee134.entry.js +0 -10
- package/dist/catalyst/p-77eee134.entry.js.map +0 -1
- package/dist/catalyst/p-8929f28a.js +0 -2
- package/dist/catalyst/p-8929f28a.js.map +0 -1
- package/dist/catalyst/p-f0bcebed.js +0 -3
- package/dist/catalyst/p-f0bcebed.js.map +0 -1
- package/dist/cjs/index-6ec4ef6d.js.map +0 -1
- package/dist/cjs/of-eda6baf8.js.map +0 -1
- package/dist/esm/index-b424aa97.js.map +0 -1
- package/dist/esm/of-246f9b35.js.map +0 -1
package/dist/esm/catalyst.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { p as promiseResolve, b as bootstrapLazy } from './index-
|
|
2
|
-
export { s as setNonce } from './index-
|
|
1
|
+
import { p as promiseResolve, b as bootstrapLazy } from './index-6af09649.js';
|
|
2
|
+
export { s as setNonce } from './index-6af09649.js';
|
|
3
3
|
|
|
4
4
|
/*
|
|
5
|
-
Stencil Client Patch Browser v4.
|
|
5
|
+
Stencil Client Patch Browser v4.4.1 | MIT Licensed | https://stenciljs.com
|
|
6
6
|
*/
|
|
7
7
|
const patchBrowser = () => {
|
|
8
8
|
const importMeta = import.meta.url;
|
|
@@ -14,7 +14,7 @@ const patchBrowser = () => {
|
|
|
14
14
|
};
|
|
15
15
|
|
|
16
16
|
patchBrowser().then(options => {
|
|
17
|
-
return bootstrapLazy([["cat-alert_26",[[1,"cat-select-demo"],[1,"cat-datepicker",{"requiredMarker":[1,"required-marker"],"horizontal":[4],"autoComplete":[1,"auto-complete"],"clearable":[4],"disabled":[4],"hint":[1],"icon":[1],"iconRight":[4,"icon-right"],"identifier":[1],"label":[1],"labelHidden":[4,"label-hidden"],"max":[1],"min":[1],"mode":[1],"name":[1],"placeholder":[1],"textPrefix":[1,"text-prefix"],"textSuffix":[1,"text-suffix"],"readonly":[4],"required":[4],"step":[2],"value":[1025],"errors":[4],"errorUpdate":[8,"error-update"],"nativeAttributes":[16],"nativePickerAttributes":[16],"doFocus":[64],"doBlur":[64]}],[1,"cat-pagination",{"page":[1026],"pageCount":[2,"page-count"],"activePadding":[2,"active-padding"],"sidePadding":[2,"side-padding"],"size":[1],"variant":[1],"round":[4],"compact":[4],"iconPrev":[1,"icon-prev"],"iconNext":[1,"icon-next"]}],[1,"cat-tabs",{"activeTab":[1,"active-tab"],"tabsAlign":[1,"tabs-align"],"tabs":[32],"activeTabId":[32]},[[0,"keydown","onKeydown"]]],[1,"cat-alert",{"color":[513],"icon":[1],"noIcon":[4,"no-icon"]}],[1,"cat-textarea",{"requiredMarker":[1,"required-marker"],"horizontal":[4],"disabled":[4],"hint":[1],"identifier":[1],"label":[1],"labelHidden":[4,"label-hidden"],"maxLength":[2,"max-length"],"minLength":[2,"min-length"],"name":[1],"placeholder":[1],"readonly":[4],"required":[4],"rows":[2],"value":[1025],"errors":[4],"errorUpdate":[8,"error-update"],"nativeAttributes":[16],"hasSlottedLabel":[32],"hasSlottedHint":[32],"errorMap":[32],"doFocus":[64],"doBlur":[64],"clear":[64]}],[1,"cat-badge",{"variant":[513],"color":[513],"size":[513],"round":[516],"pulse":[516]}],[1,"cat-button-group",{"a11yLabel":[1,"a11y-label"]}],[1,"cat-card"],[1,"cat-datepicker-inline",{"disabled":[4],"max":[1],"min":[1],"mode":[1],"readonly":[4],"step":[2],"value":[1025],"nativePickerAttributes":[16]}],[1,"cat-form-group",{"requiredMarker":[1,"required-marker"],"horizontal":[4],"labelSize":[1,"label-size"]}],[1,"cat-radio",{"checked":[1028],"disabled":[4],"identifier":[1],"label":[1],"labelHidden":[4,"label-hidden"],"name":[1],"required":[4],"value":[1],"hint":[1],"labelLeft":[4,"label-left"],"nativeAttributes":[16],"hasSlottedLabel":[32],"hasSlottedHint":[32],"doFocus":[64],"doBlur":[64]}],[1,"cat-radio-group",{"name":[1],"value":[1025],"disabled":[4],"a11yLabel":[1,"a11y-label"],"labelLeft":[4,"label-left"]},[[0,"keydown","onKeydown"],[0,"input","onInput"],[2,"focus","onFocus"],[2,"blur","onBlur"]]],[1,"cat-tab",{"label":[513],"icon":[513],"iconOnly":[520,"icon-only"],"iconRight":[516,"icon-right"],"url":[513],"urlTarget":[513,"url-target"],"deactivated":[516],"nativeAttributes":[16]},[[0,"click","onClick"]]],[1,"cat-toggle",{"checked":[1028],"disabled":[4],"identifier":[1],"label":[1],"labelHidden":[4,"label-hidden"],"name":[1],"required":[4],"value":[1],"resolvedValue":[1032,"resolved-value"],"hint":[1],"labelLeft":[4,"label-left"],"nativeAttributes":[16],"hasSlottedLabel":[32],"hasSlottedHint":[32],"doFocus":[64],"doBlur":[64]}],[1,"cat-tooltip",{"content":[1],"disabled":[4],"placement":[1],"round":[4],"size":[1],"showDelay":[2,"show-delay"],"hideDelay":[2,"hide-delay"],"longTouchDuration":[2,"long-touch-duration"],"hasSlottedContent":[32]},[[0,"keydown","handleKeyDown"]]],[1,"cat-select",{"requiredMarker":[1,"required-marker"],"horizontal":[4],"multiple":[4],"debounce":[2],"placement":[1],"value":[1025],"disabled":[4],"placeholder":[1],"hint":[1],"identifier":[1],"label":[1],"name":[1],"labelHidden":[4,"label-hidden"],"required":[4],"clearable":[4],"tags":[4],"tagHint":[1,"tag-hint"],"noItems":[1,"no-items"],"errors":[4],"errorUpdate":[8,"error-update"],"nativeAttributes":[16],"connector":[32],"state":[32],"hasSlottedLabel":[32],"hasSlottedHint":[32],"errorMap":[32],"connect":[64]},[[0,"blur","onBlur"],[0,"keydown","onKeyDown"],[0,"keyup","onKeyUp"]]],[1,"cat-input",{"requiredMarker":[1,"required-marker"],"horizontal":[4],"autoComplete":[1,"auto-complete"],"clearable":[4],"disabled":[4],"hint":[1],"icon":[1],"iconRight":[4,"icon-right"],"identifier":[1],"label":[1],"labelHidden":[4,"label-hidden"],"max":[8],"maxLength":[2,"max-length"],"min":[8],"minLength":[2,"min-length"],"name":[1],"placeholder":[1],"textPrefix":[1,"text-prefix"],"textSuffix":[1,"text-suffix"],"readonly":[4],"required":[4],"round":[4],"type":[1],"value":[1025],"errors":[4],"errorUpdate":[8,"error-update"],"nativeAttributes":[16],"hasSlottedLabel":[32],"hasSlottedHint":[32],"errorMap":[32],"doFocus":[64],"doBlur":[64],"clear":[64]}],[1,"cat-dropdown",{"placement":[1],"noAutoClose":[4,"no-auto-close"],"overflow":[4],"close":[64]},[[0,"catClick","clickHandler"]]],[1,"cat-avatar",{"size":[1],"round":[4],"label":[1],"initials":[1],"src":[1],"icon":[1],"url":[1],"urlTarget":[1,"url-target"],"backgroundImage":[32]}],[1,"cat-checkbox",{"checked":[1028],"indeterminate":[1028],"disabled":[4],"identifier":[1],"label":[1],"labelHidden":[4,"label-hidden"],"name":[1],"required":[4],"value":[1],"resolvedValue":[1032,"resolved-value"],"hint":[1],"labelLeft":[4,"label-left"],"nativeAttributes":[16],"hasSlottedLabel":[32],"hasSlottedHint":[32],"doFocus":[64],"doBlur":[64]}],[1,"cat-scrollable",{"noShadowX":[4,"no-shadow-x"],"noShadowY":[4,"no-shadow-y"],"noOverflowX":[4,"no-overflow-x"],"noOverflowY":[4,"no-overflow-y"],"noOverscroll":[4,"no-overscroll"],"noScrolledInit":[4,"no-scrolled-init"],"scrolledBuffer":[2,"scrolled-buffer"]}],[1,"cat-skeleton",{"effect":[1],"variant":[1],"size":[1],"lines":[2]}],[1,"cat-button",{"variant":[1],"color":[1],"active":[4],"size":[1],"name":[1],"value":[1],"disabled":[4],"loading":[4],"submit":[4],"noEllipsis":[4,"no-ellipsis"],"round":[4],"url":[1],"urlTarget":[1,"url-target"],"icon":[1],"iconOnly":[8,"icon-only"],"iconRight":[4,"icon-right"],"buttonId":[1,"button-id"],"a11yLabel":[1,"a11y-label"],"a11yCurrent":[1,"a11y-current"],"nativeAttributes":[16],"nativeContentAttributes":[16],"buttonGroupPosition":[1,"button-group-position"],"_iconOnly":[32],"doFocus":[64],"doBlur":[64],"doClick":[64]},[[0,"click","haltDisabledEvents"]]],[1,"cat-spinner",{"size":[1],"a11yLabel":[1,"a11y-label"]}],[1,"cat-icon",{"icon":[1],"iconSrc":[1,"icon-src"],"size":[1],"a11yLabel":[1,"a11y-label"]}]]]], options);
|
|
17
|
+
return bootstrapLazy([["cat-alert_26",[[1,"cat-select-demo"],[1,"cat-datepicker",{"requiredMarker":[1,"required-marker"],"horizontal":[4],"autoComplete":[1,"auto-complete"],"clearable":[4],"disabled":[4],"hint":[1],"icon":[1],"iconRight":[4,"icon-right"],"identifier":[1],"label":[1],"labelHidden":[4,"label-hidden"],"max":[1],"min":[1],"mode":[1],"name":[1],"placeholder":[1],"textPrefix":[1,"text-prefix"],"textSuffix":[1,"text-suffix"],"readonly":[4],"required":[4],"step":[2],"value":[1025],"errors":[4],"errorUpdate":[8,"error-update"],"nativeAttributes":[16],"nativePickerAttributes":[16],"doFocus":[64],"doBlur":[64]},null,{"value":["onValueChanged"],"disabled":["onDisabledChanged"],"readonly":["onDisabledChanged"],"min":["onMinChanged"],"max":["onMinChanged"]}],[1,"cat-pagination",{"page":[1026],"pageCount":[2,"page-count"],"activePadding":[2,"active-padding"],"sidePadding":[2,"side-padding"],"size":[1],"variant":[1],"round":[4],"compact":[4],"iconPrev":[1,"icon-prev"],"iconNext":[1,"icon-next"]}],[1,"cat-tabs",{"activeTab":[1,"active-tab"],"tabsAlign":[1,"tabs-align"],"tabs":[32],"activeTabId":[32]},[[0,"keydown","onKeydown"]],{"activeTabId":["onActiveTabIdChanged"]}],[1,"cat-alert",{"color":[513],"icon":[1],"noIcon":[4,"no-icon"]}],[1,"cat-textarea",{"requiredMarker":[1,"required-marker"],"horizontal":[4],"disabled":[4],"hint":[1],"identifier":[1],"label":[1],"labelHidden":[4,"label-hidden"],"maxLength":[2,"max-length"],"minLength":[2,"min-length"],"name":[1],"placeholder":[1],"readonly":[4],"required":[4],"rows":[2],"value":[1025],"errors":[4],"errorUpdate":[8,"error-update"],"nativeAttributes":[16],"hasSlottedLabel":[32],"hasSlottedHint":[32],"errorMap":[32],"doFocus":[64],"doBlur":[64],"clear":[64]},null,{"errors":["onErrorsChanged"]}],[1,"cat-badge",{"variant":[513],"color":[513],"size":[513],"round":[516],"pulse":[516]}],[1,"cat-button-group",{"a11yLabel":[1,"a11y-label"]}],[1,"cat-card"],[1,"cat-datepicker-inline",{"disabled":[4],"max":[1],"min":[1],"mode":[1],"readonly":[4],"step":[2],"value":[1025],"nativePickerAttributes":[16]},null,{"value":["onValueChanged"],"disabled":["onDisabledChanged"],"readonly":["onDisabledChanged"]}],[1,"cat-form-group",{"requiredMarker":[1,"required-marker"],"horizontal":[4],"labelSize":[1,"label-size"]},null,{"requiredMarker":["onRequiredMarkerChanged"],"horizontal":["onHorizontalChanged"]}],[1,"cat-radio",{"checked":[1028],"disabled":[4],"identifier":[1],"label":[1],"labelHidden":[4,"label-hidden"],"name":[1],"required":[4],"value":[1],"hint":[1],"labelLeft":[4,"label-left"],"nativeAttributes":[16],"hasSlottedLabel":[32],"hasSlottedHint":[32],"doFocus":[64],"doBlur":[64]}],[1,"cat-radio-group",{"name":[1],"value":[1025],"disabled":[4],"a11yLabel":[1,"a11y-label"],"labelLeft":[4,"label-left"]},[[0,"keydown","onKeydown"],[0,"input","onInput"],[2,"focus","onFocus"],[2,"blur","onBlur"]],{"name":["onNameChanged"],"value":["onValueChanged"],"disabled":["onDisabledChanged"],"labelLeft":["onLabelLeftChanged"]}],[1,"cat-tab",{"label":[513],"icon":[513],"iconOnly":[520,"icon-only"],"iconRight":[516,"icon-right"],"url":[513],"urlTarget":[513,"url-target"],"deactivated":[516],"nativeAttributes":[16]},[[0,"click","onClick"]]],[1,"cat-toggle",{"checked":[1028],"disabled":[4],"identifier":[1],"label":[1],"labelHidden":[4,"label-hidden"],"name":[1],"required":[4],"value":[1],"resolvedValue":[1032,"resolved-value"],"hint":[1],"labelLeft":[4,"label-left"],"nativeAttributes":[16],"hasSlottedLabel":[32],"hasSlottedHint":[32],"doFocus":[64],"doBlur":[64]}],[1,"cat-tooltip",{"content":[1],"disabled":[4],"placement":[1],"round":[4],"size":[1],"showDelay":[2,"show-delay"],"hideDelay":[2,"hide-delay"],"longTouchDuration":[2,"long-touch-duration"],"hasSlottedContent":[32]},[[0,"keydown","handleKeyDown"]]],[1,"cat-select",{"requiredMarker":[1,"required-marker"],"horizontal":[4],"multiple":[4],"debounce":[2],"placement":[1],"value":[1025],"disabled":[4],"placeholder":[1],"hint":[1],"identifier":[1],"label":[1],"name":[1],"labelHidden":[4,"label-hidden"],"required":[4],"clearable":[4],"tags":[4],"tagHint":[1,"tag-hint"],"noItems":[1,"no-items"],"errors":[4],"errorUpdate":[8,"error-update"],"nativeAttributes":[16],"connector":[32],"state":[32],"hasSlottedLabel":[32],"hasSlottedHint":[32],"errorMap":[32],"connect":[64]},[[0,"blur","onBlur"],[0,"keydown","onKeyDown"],[0,"keyup","onKeyUp"]],{"connector":["onConnectorChanged"],"value":["onValueChanged"],"errors":["onErrorsChanged"],"state":["onStateChanged"]}],[1,"cat-input",{"requiredMarker":[1,"required-marker"],"horizontal":[4],"autoComplete":[1,"auto-complete"],"clearable":[4],"disabled":[4],"hint":[1],"icon":[1],"iconRight":[4,"icon-right"],"identifier":[1],"label":[1],"labelHidden":[4,"label-hidden"],"max":[8],"maxLength":[2,"max-length"],"min":[8],"minLength":[2,"min-length"],"name":[1],"placeholder":[1],"textPrefix":[1,"text-prefix"],"textSuffix":[1,"text-suffix"],"readonly":[4],"required":[4],"round":[4],"type":[1],"value":[1025],"errors":[4],"errorUpdate":[8,"error-update"],"nativeAttributes":[16],"hasSlottedLabel":[32],"hasSlottedHint":[32],"errorMap":[32],"doFocus":[64],"doBlur":[64],"clear":[64]},null,{"errors":["onErrorsChanged"]}],[1,"cat-dropdown",{"placement":[1],"noAutoClose":[4,"no-auto-close"],"overflow":[4],"close":[64]},[[0,"catClick","clickHandler"]]],[1,"cat-avatar",{"size":[1],"round":[4],"label":[1],"initials":[1],"src":[1],"icon":[1],"url":[1],"urlTarget":[1,"url-target"],"backgroundImage":[32]},null,{"src":["onSrcChanged"]}],[1,"cat-checkbox",{"checked":[1028],"indeterminate":[1028],"disabled":[4],"identifier":[1],"label":[1],"labelHidden":[4,"label-hidden"],"name":[1],"required":[4],"value":[1],"resolvedValue":[1032,"resolved-value"],"hint":[1],"labelLeft":[4,"label-left"],"nativeAttributes":[16],"hasSlottedLabel":[32],"hasSlottedHint":[32],"doFocus":[64],"doBlur":[64]}],[1,"cat-scrollable",{"noShadowX":[4,"no-shadow-x"],"noShadowY":[4,"no-shadow-y"],"noOverflowX":[4,"no-overflow-x"],"noOverflowY":[4,"no-overflow-y"],"noOverscroll":[4,"no-overscroll"],"noScrolledInit":[4,"no-scrolled-init"],"scrolledBuffer":[2,"scrolled-buffer"]}],[1,"cat-skeleton",{"effect":[1],"variant":[1],"size":[1],"lines":[2]}],[1,"cat-button",{"variant":[1],"color":[1],"active":[4],"size":[1],"name":[1],"value":[1],"disabled":[4],"loading":[4],"submit":[4],"noEllipsis":[4,"no-ellipsis"],"round":[4],"url":[1],"urlTarget":[1,"url-target"],"icon":[1],"iconOnly":[8,"icon-only"],"iconRight":[4,"icon-right"],"buttonId":[1,"button-id"],"a11yLabel":[1,"a11y-label"],"a11yCurrent":[1,"a11y-current"],"nativeAttributes":[16],"nativeContentAttributes":[16],"buttonGroupPosition":[1,"button-group-position"],"_iconOnly":[32],"doFocus":[64],"doBlur":[64],"doClick":[64]},[[0,"click","haltDisabledEvents"]],{"iconOnly":["onIconOnlyChanged"]}],[1,"cat-spinner",{"size":[1],"a11yLabel":[1,"a11y-label"]}],[1,"cat-icon",{"icon":[1],"iconSrc":[1,"icon-src"],"size":[1],"a11yLabel":[1,"a11y-label"]}]]]], options);
|
|
18
18
|
});
|
|
19
19
|
|
|
20
20
|
//# sourceMappingURL=catalyst.js.map
|
package/dist/esm/catalyst.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"file":"catalyst.js","mappings":";;;AAAA;AACA;AACA;AAGA,MAAM,YAAY,GAAG,MAAM;AAyB3B,IAAI,MAAM,UAAU,GAAG,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC;AACvC,IAAI,MAAM,IAAI,GAAiE,EAAE,CAAC;AAClF,IAAI,IAAI,UAAU,KAAK,EAAE,EAAE;AAC3B,QAAQ,IAAI,CAAC,YAAY,GAAG,IAAI,GAAG,CAAC,GAAG,EAAE,UAAU,CAAC,CAAC,IAAI,CAAC;AAC1D,KAAK;AACL,IAAI,OAAO,cAAc,CAAC,IAAI,CAAC,CAAC;AAChC,CAAC;;AChCD,YAAY,EAAE,CAAC,IAAI,CAAC,OAAO,IAAI;AAE/B,EAAE,OAAO,aAAa,CAAC,4BAA4B,EAAE,OAAO,CAAC,CAAC;AAC9D,CAAC,CAAC","names":[],"sources":["../node_modules/.pnpm/@stencil+core@4.
|
|
1
|
+
{"file":"catalyst.js","mappings":";;;AAAA;AACA;AACA;AAGA,MAAM,YAAY,GAAG,MAAM;AAyB3B,IAAI,MAAM,UAAU,GAAG,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC;AACvC,IAAI,MAAM,IAAI,GAAiE,EAAE,CAAC;AAClF,IAAI,IAAI,UAAU,KAAK,EAAE,EAAE;AAC3B,QAAQ,IAAI,CAAC,YAAY,GAAG,IAAI,GAAG,CAAC,GAAG,EAAE,UAAU,CAAC,CAAC,IAAI,CAAC;AAC1D,KAAK;AACL,IAAI,OAAO,cAAc,CAAC,IAAI,CAAC,CAAC;AAChC,CAAC;;AChCD,YAAY,EAAE,CAAC,IAAI,CAAC,OAAO,IAAI;AAE/B,EAAE,OAAO,aAAa,CAAC,4BAA4B,EAAE,OAAO,CAAC,CAAC;AAC9D,CAAC,CAAC","names":[],"sources":["../node_modules/.pnpm/@stencil+core@4.4.1/node_modules/@stencil/core/internal/client/patch-browser.js","@lazy-browser-entrypoint?app-data=conditional"],"sourcesContent":["/*\n Stencil Client Patch Browser v4.4.1 | MIT Licensed | https://stenciljs.com\n */\nimport { BUILD, NAMESPACE } from '@stencil/core/internal/app-data';\nimport { consoleDevInfo, doc, promiseResolve, H } from '@stencil/core';\nconst patchBrowser = () => {\n // NOTE!! This fn cannot use async/await!\n if (BUILD.isDev && !BUILD.isTesting) {\n consoleDevInfo('Running in development mode.');\n }\n if (BUILD.cloneNodeFix) {\n // opted-in to polyfill cloneNode() for slot polyfilled components\n patchCloneNodeFix(H.prototype);\n }\n if (BUILD.profile && !performance.mark) {\n // not all browsers support performance.mark/measure (Safari 10)\n // because the mark/measure APIs are designed to write entries to a buffer in the browser that does not exist,\n // simply stub the implementations out.\n // TODO(STENCIL-323): Remove this patch when support for older browsers is removed (breaking)\n // @ts-ignore\n performance.mark = performance.measure = () => {\n /*noop*/\n };\n performance.getEntriesByName = () => [];\n }\n // @ts-ignore\n const scriptElm = BUILD.scriptDataOpts\n ? Array.from(doc.querySelectorAll('script')).find((s) => new RegExp(`\\/${NAMESPACE}(\\\\.esm)?\\\\.js($|\\\\?|#)`).test(s.src) ||\n s.getAttribute('data-stencil-namespace') === NAMESPACE)\n : null;\n const importMeta = import.meta.url;\n const opts = BUILD.scriptDataOpts ? (scriptElm || {})['data-opts'] || {} : {};\n if (importMeta !== '') {\n opts.resourcesUrl = new URL('.', importMeta).href;\n }\n return promiseResolve(opts);\n};\nconst patchCloneNodeFix = (HTMLElementPrototype) => {\n const nativeCloneNodeFn = HTMLElementPrototype.cloneNode;\n HTMLElementPrototype.cloneNode = function (deep) {\n if (this.nodeName === 'TEMPLATE') {\n return nativeCloneNodeFn.call(this, deep);\n }\n const clonedNode = nativeCloneNodeFn.call(this, false);\n const srcChildNodes = this.childNodes;\n if (deep) {\n for (let i = 0; i < srcChildNodes.length; i++) {\n // Node.ATTRIBUTE_NODE === 2, and checking because IE11\n if (srcChildNodes[i].nodeType !== 2) {\n clonedNode.appendChild(srcChildNodes[i].cloneNode(true));\n }\n }\n }\n return clonedNode;\n };\n};\nexport { patchBrowser };\n","export { setNonce } from '@stencil/core';\nimport { bootstrapLazy } from '@stencil/core';\nimport { patchBrowser } from '@stencil/core/internal/client/patch-browser';\nimport { globalScripts } from '@stencil/core/internal/app-globals';\npatchBrowser().then(options => {\n globalScripts();\n return bootstrapLazy([/*!__STENCIL_LAZY_DATA__*/], options);\n});\n"],"version":3}
|
|
@@ -106,10 +106,10 @@ const h = (nodeName, vnodeData, ...children) => {
|
|
|
106
106
|
};
|
|
107
107
|
walk(children);
|
|
108
108
|
if (vnodeData) {
|
|
109
|
-
// normalize class / classname attributes
|
|
110
109
|
if (vnodeData.key) {
|
|
111
110
|
key = vnodeData.key;
|
|
112
111
|
}
|
|
112
|
+
// normalize class / className attributes
|
|
113
113
|
{
|
|
114
114
|
const classData = vnodeData.className || vnodeData.class;
|
|
115
115
|
if (classData) {
|
|
@@ -969,9 +969,9 @@ const patch = (oldVNode, newVNode) => {
|
|
|
969
969
|
}
|
|
970
970
|
};
|
|
971
971
|
/**
|
|
972
|
-
* 'Nullify' any VDom `ref` callbacks on a VDom node or its children by
|
|
973
|
-
*
|
|
974
|
-
*
|
|
972
|
+
* 'Nullify' any VDom `ref` callbacks on a VDom node or its children by calling
|
|
973
|
+
* them with `null`. This signals that the DOM element corresponding to the VDom
|
|
974
|
+
* node has been removed from the DOM.
|
|
975
975
|
*
|
|
976
976
|
* @param vNode a virtual DOM node
|
|
977
977
|
*/
|
|
@@ -1197,6 +1197,10 @@ const updateComponent = async (hostRef, instance, isInitialLoad) => {
|
|
|
1197
1197
|
*/
|
|
1198
1198
|
const callRender = (hostRef, instance, elm, isInitialLoad) => {
|
|
1199
1199
|
try {
|
|
1200
|
+
/**
|
|
1201
|
+
* minification optimization: `allRenderFn` is `true` if all components have a `render`
|
|
1202
|
+
* method, so we can call the method immediately. If not, check before calling it.
|
|
1203
|
+
*/
|
|
1200
1204
|
instance = instance.render() ;
|
|
1201
1205
|
{
|
|
1202
1206
|
hostRef.$flags$ &= ~16 /* HOST_FLAGS.isQueuedForUpdate */;
|
|
@@ -1276,6 +1280,16 @@ const appDidLoad = (who) => {
|
|
|
1276
1280
|
}
|
|
1277
1281
|
nextTick(() => emitEvent(win, 'appload', { detail: { namespace: NAMESPACE } }));
|
|
1278
1282
|
};
|
|
1283
|
+
/**
|
|
1284
|
+
* Allows to safely call a method, e.g. `componentDidLoad`, on an instance,
|
|
1285
|
+
* e.g. custom element node. If a build figures out that e.g. no component
|
|
1286
|
+
* has a `componentDidLoad` method, the instance method gets removed from the
|
|
1287
|
+
* output bundle and this function returns `undefined`.
|
|
1288
|
+
* @param instance any object that may or may not contain methods
|
|
1289
|
+
* @param method method name
|
|
1290
|
+
* @param arg single arbitrary argument
|
|
1291
|
+
* @returns result of method call if it exists, otherwise `undefined`
|
|
1292
|
+
*/
|
|
1279
1293
|
const safeCall = (instance, method, arg) => {
|
|
1280
1294
|
if (instance && instance[method]) {
|
|
1281
1295
|
try {
|
|
@@ -1343,6 +1357,7 @@ const setValue = (ref, propName, newVal, cmpMeta) => {
|
|
|
1343
1357
|
* @returns a reference to the same constructor passed in (but now mutated)
|
|
1344
1358
|
*/
|
|
1345
1359
|
const proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
1360
|
+
var _a;
|
|
1346
1361
|
if (cmpMeta.$members$) {
|
|
1347
1362
|
if (Cstr.watchers) {
|
|
1348
1363
|
cmpMeta.$watchers$ = Cstr.watchers;
|
|
@@ -1380,7 +1395,7 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1380
1395
|
});
|
|
1381
1396
|
if ((flags & 1 /* PROXY_FLAGS.isElementConstructor */)) {
|
|
1382
1397
|
const attrNameToPropName = new Map();
|
|
1383
|
-
prototype.attributeChangedCallback = function (attrName,
|
|
1398
|
+
prototype.attributeChangedCallback = function (attrName, oldValue, newValue) {
|
|
1384
1399
|
plt.jmp(() => {
|
|
1385
1400
|
const propName = attrNameToPropName.get(attrName);
|
|
1386
1401
|
// In a web component lifecycle the attributeChangedCallback runs prior to connectedCallback
|
|
@@ -1403,12 +1418,12 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1403
1418
|
// customElements.define('my-component', MyComponent);
|
|
1404
1419
|
// </script>
|
|
1405
1420
|
// ```
|
|
1406
|
-
// In this case if we do not
|
|
1421
|
+
// In this case if we do not un-shadow here and use the value of the shadowing property, attributeChangedCallback
|
|
1407
1422
|
// will be called with `newValue = "some-value"` and will set the shadowed property (this.someAttribute = "another-value")
|
|
1408
1423
|
// to the value that was set inline i.e. "some-value" from above example. When
|
|
1409
|
-
// the connectedCallback attempts to
|
|
1424
|
+
// the connectedCallback attempts to un-shadow it will use "some-value" as the initial value rather than "another-value"
|
|
1410
1425
|
//
|
|
1411
|
-
// The case where the attribute was NOT set inline but was not set programmatically shall be handled/
|
|
1426
|
+
// The case where the attribute was NOT set inline but was not set programmatically shall be handled/un-shadowed
|
|
1412
1427
|
// by connectedCallback as this attributeChangedCallback will not fire.
|
|
1413
1428
|
//
|
|
1414
1429
|
// https://developers.google.com/web/fundamentals/web-components/best-practices#lazy-properties
|
|
@@ -1428,26 +1443,65 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1428
1443
|
// `propName` to be converted to a `DOMString`, which may not be what we want for other primitive props.
|
|
1429
1444
|
return;
|
|
1430
1445
|
}
|
|
1446
|
+
else if (propName == null) {
|
|
1447
|
+
// At this point we should know this is not a "member", so we can treat it like watching an attribute
|
|
1448
|
+
// on a vanilla web component
|
|
1449
|
+
const hostRef = getHostRef(this);
|
|
1450
|
+
const flags = hostRef === null || hostRef === void 0 ? void 0 : hostRef.$flags$;
|
|
1451
|
+
// We only want to trigger the callback(s) if:
|
|
1452
|
+
// 1. The instance is ready
|
|
1453
|
+
// 2. The watchers are ready
|
|
1454
|
+
// 3. The value has changed
|
|
1455
|
+
if (!(flags & 8 /* HOST_FLAGS.isConstructingInstance */) &&
|
|
1456
|
+
flags & 128 /* HOST_FLAGS.isWatchReady */ &&
|
|
1457
|
+
newValue !== oldValue) {
|
|
1458
|
+
const instance = hostRef.$lazyInstance$ ;
|
|
1459
|
+
const entry = cmpMeta.$watchers$[attrName];
|
|
1460
|
+
entry === null || entry === void 0 ? void 0 : entry.forEach((callbackName) => {
|
|
1461
|
+
if (instance[callbackName] != null) {
|
|
1462
|
+
instance[callbackName].call(instance, newValue, oldValue, attrName);
|
|
1463
|
+
}
|
|
1464
|
+
});
|
|
1465
|
+
}
|
|
1466
|
+
return;
|
|
1467
|
+
}
|
|
1431
1468
|
this[propName] = newValue === null && typeof this[propName] === 'boolean' ? false : newValue;
|
|
1432
1469
|
});
|
|
1433
1470
|
};
|
|
1434
|
-
//
|
|
1435
|
-
//
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1471
|
+
// Create an array of attributes to observe
|
|
1472
|
+
// This list in comprised of all strings used within a `@Watch()` decorator
|
|
1473
|
+
// on a component as well as any Stencil-specific "members" (`@Prop()`s and `@State()`s).
|
|
1474
|
+
// As such, there is no way to guarantee type-safety here that a user hasn't entered
|
|
1475
|
+
// an invalid attribute.
|
|
1476
|
+
Cstr.observedAttributes = Array.from(new Set([
|
|
1477
|
+
...Object.keys((_a = cmpMeta.$watchers$) !== null && _a !== void 0 ? _a : {}),
|
|
1478
|
+
...members
|
|
1479
|
+
.filter(([_, m]) => m[0] & 15 /* MEMBER_FLAGS.HasAttribute */)
|
|
1480
|
+
.map(([propName, m]) => {
|
|
1481
|
+
const attrName = m[1] || propName;
|
|
1482
|
+
attrNameToPropName.set(attrName, propName);
|
|
1483
|
+
if (m[0] & 512 /* MEMBER_FLAGS.ReflectAttr */) {
|
|
1484
|
+
cmpMeta.$attrsToReflect$.push([propName, attrName]);
|
|
1485
|
+
}
|
|
1486
|
+
return attrName;
|
|
1487
|
+
}),
|
|
1488
|
+
]));
|
|
1446
1489
|
}
|
|
1447
1490
|
}
|
|
1448
1491
|
return Cstr;
|
|
1449
1492
|
};
|
|
1450
|
-
|
|
1493
|
+
/**
|
|
1494
|
+
* Initialize a Stencil component given a reference to its host element, its
|
|
1495
|
+
* runtime bookkeeping data structure, runtime metadata about the component,
|
|
1496
|
+
* and (optionally) an HMR version ID.
|
|
1497
|
+
*
|
|
1498
|
+
* @param elm a host element
|
|
1499
|
+
* @param hostRef the element's runtime bookkeeping object
|
|
1500
|
+
* @param cmpMeta runtime metadata for the Stencil component
|
|
1501
|
+
* @param hmrVersionId an (optional) HMR version ID
|
|
1502
|
+
*/
|
|
1503
|
+
const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
1504
|
+
let Cstr;
|
|
1451
1505
|
// initializeComponent
|
|
1452
1506
|
if ((hostRef.$flags$ & 32 /* HOST_FLAGS.hasInitializedComponent */) === 0) {
|
|
1453
1507
|
// Let the runtime know that the component has been initialized
|
|
@@ -1623,6 +1677,7 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1623
1677
|
plt.$resourcesUrl$ = new URL(options.resourcesUrl || './', doc.baseURI).href;
|
|
1624
1678
|
lazyBundles.map((lazyBundle) => {
|
|
1625
1679
|
lazyBundle[1].map((compactMeta) => {
|
|
1680
|
+
var _a;
|
|
1626
1681
|
const cmpMeta = {
|
|
1627
1682
|
$flags$: compactMeta[0],
|
|
1628
1683
|
$tagName$: compactMeta[1],
|
|
@@ -1639,7 +1694,7 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1639
1694
|
cmpMeta.$attrsToReflect$ = [];
|
|
1640
1695
|
}
|
|
1641
1696
|
{
|
|
1642
|
-
cmpMeta.$watchers$ = {};
|
|
1697
|
+
cmpMeta.$watchers$ = (_a = compactMeta[4]) !== null && _a !== void 0 ? _a : {};
|
|
1643
1698
|
}
|
|
1644
1699
|
const tagName = cmpMeta.$tagName$;
|
|
1645
1700
|
const HostElement = class extends HTMLElement {
|
|
@@ -1747,13 +1802,40 @@ const hostListenerOpts = (flags) => (flags & 2 /* LISTENER_FLAGS.Capture */) !==
|
|
|
1747
1802
|
* @returns void
|
|
1748
1803
|
*/
|
|
1749
1804
|
const setNonce = (nonce) => (plt.$nonce$ = nonce);
|
|
1805
|
+
/**
|
|
1806
|
+
* A WeakMap mapping runtime component references to their corresponding host reference
|
|
1807
|
+
* instances.
|
|
1808
|
+
*/
|
|
1750
1809
|
const hostRefs = /*@__PURE__*/ new WeakMap();
|
|
1810
|
+
/**
|
|
1811
|
+
* Given a {@link d.RuntimeRef} retrieve the corresponding {@link d.HostRef}
|
|
1812
|
+
*
|
|
1813
|
+
* @param ref the runtime ref of interest
|
|
1814
|
+
* @returns the Host reference (if found) or undefined
|
|
1815
|
+
*/
|
|
1751
1816
|
const getHostRef = (ref) => hostRefs.get(ref);
|
|
1817
|
+
/**
|
|
1818
|
+
* Register a lazy instance with the {@link hostRefs} object so it's
|
|
1819
|
+
* corresponding {@link d.HostRef} can be retrieved later.
|
|
1820
|
+
*
|
|
1821
|
+
* @param lazyInstance the lazy instance of interest
|
|
1822
|
+
* @param hostRef that instances `HostRef` object
|
|
1823
|
+
* @returns a reference to the host ref WeakMap
|
|
1824
|
+
*/
|
|
1752
1825
|
const registerInstance = (lazyInstance, hostRef) => hostRefs.set((hostRef.$lazyInstance$ = lazyInstance), hostRef);
|
|
1753
|
-
|
|
1826
|
+
/**
|
|
1827
|
+
* Register a host element for a Stencil component, setting up various metadata
|
|
1828
|
+
* and callbacks based on {@link BUILD} flags as well as the component's runtime
|
|
1829
|
+
* metadata.
|
|
1830
|
+
*
|
|
1831
|
+
* @param hostElement the host element to register
|
|
1832
|
+
* @param cmpMeta runtime metadata for that component
|
|
1833
|
+
* @returns a reference to the host ref WeakMap
|
|
1834
|
+
*/
|
|
1835
|
+
const registerHost = (hostElement, cmpMeta) => {
|
|
1754
1836
|
const hostRef = {
|
|
1755
1837
|
$flags$: 0,
|
|
1756
|
-
$hostElement$:
|
|
1838
|
+
$hostElement$: hostElement,
|
|
1757
1839
|
$cmpMeta$: cmpMeta,
|
|
1758
1840
|
$instanceValues$: new Map(),
|
|
1759
1841
|
};
|
|
@@ -1762,11 +1844,11 @@ const registerHost = (elm, cmpMeta) => {
|
|
|
1762
1844
|
}
|
|
1763
1845
|
{
|
|
1764
1846
|
hostRef.$onReadyPromise$ = new Promise((r) => (hostRef.$onReadyResolve$ = r));
|
|
1765
|
-
|
|
1766
|
-
|
|
1847
|
+
hostElement['s-p'] = [];
|
|
1848
|
+
hostElement['s-rc'] = [];
|
|
1767
1849
|
}
|
|
1768
|
-
addHostEventListeners(
|
|
1769
|
-
return hostRefs.set(
|
|
1850
|
+
addHostEventListeners(hostElement, hostRef, cmpMeta.$listeners$);
|
|
1851
|
+
return hostRefs.set(hostElement, hostRef);
|
|
1770
1852
|
};
|
|
1771
1853
|
const isMemberInElement = (elm, memberName) => memberName in elm;
|
|
1772
1854
|
const consoleError = (e, el) => (0, console.error)(e, el);
|
|
@@ -1859,4 +1941,4 @@ const writeTask = /*@__PURE__*/ queueTask(queueDomWrites, true);
|
|
|
1859
1941
|
|
|
1860
1942
|
export { Host as H, bootstrapLazy as b, createEvent as c, getElement as g, h, promiseResolve as p, registerInstance as r, setNonce as s };
|
|
1861
1943
|
|
|
1862
|
-
//# sourceMappingURL=index-
|
|
1944
|
+
//# sourceMappingURL=index-6af09649.js.map
|