@devschile/chucao 2.2.0 → 2.4.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/chucao/chucao.esm.js +1 -1
- package/dist/chucao/chucao.esm.js.map +1 -1
- package/dist/chucao/p-0e3c83a6.entry.js +2 -0
- package/dist/chucao/p-0e3c83a6.entry.js.map +1 -0
- package/dist/chucao/p-17451d92.entry.js +2 -0
- package/dist/chucao/p-17451d92.entry.js.map +1 -0
- package/dist/chucao/p-1778a313.entry.js +2 -0
- package/dist/chucao/p-1778a313.entry.js.map +1 -0
- package/dist/chucao/p-1ebd9dc4.entry.js +2 -0
- package/dist/chucao/p-1ebd9dc4.entry.js.map +1 -0
- package/dist/chucao/p-34a9d1f4.entry.js +2 -0
- package/dist/chucao/p-34a9d1f4.entry.js.map +1 -0
- package/dist/chucao/p-449e1ba0.entry.js +2 -0
- package/dist/chucao/p-449e1ba0.entry.js.map +1 -0
- package/dist/chucao/p-56d64d84.entry.js +2 -0
- package/dist/chucao/p-56d64d84.entry.js.map +1 -0
- package/dist/chucao/{p-04dbcfa0.entry.js → p-6e95f31f.entry.js} +2 -2
- package/dist/chucao/p-7c85f5fe.entry.js +2 -0
- package/dist/chucao/p-7c85f5fe.entry.js.map +1 -0
- package/dist/chucao/p-82216381.entry.js +2 -0
- package/dist/chucao/p-82216381.entry.js.map +1 -0
- package/dist/chucao/p-84d875e9.entry.js +2 -0
- package/dist/chucao/p-84d875e9.entry.js.map +1 -0
- package/dist/chucao/p-85db779c.entry.js +2 -0
- package/dist/chucao/p-85db779c.entry.js.map +1 -0
- package/dist/chucao/{p-bb2445d1.entry.js → p-907195ff.entry.js} +2 -2
- package/dist/chucao/p-BXzZsX2r.js +2 -0
- package/dist/chucao/p-BXzZsX2r.js.map +1 -0
- package/dist/chucao/{p-DWC12BJ-.js → p-DVKZbUp9.js} +2 -2
- package/dist/chucao/p-DVKZbUp9.js.map +1 -0
- package/dist/chucao/{p-ff5f5c1f.entry.js → p-a07e0e97.entry.js} +2 -2
- package/dist/chucao/{p-077dc2a6.entry.js → p-b392021c.entry.js} +2 -2
- package/dist/chucao/{p-5ae89a19.entry.js → p-b5552b50.entry.js} +2 -2
- package/dist/chucao/p-d0533af6.entry.js +2 -0
- package/dist/chucao/p-d0533af6.entry.js.map +1 -0
- package/dist/chucao/p-d776b092.entry.js +2 -0
- package/dist/cjs/ch-accordion.cjs.entry.js +1 -1
- package/dist/cjs/ch-alert_8.cjs.entry.js +41 -34
- package/dist/cjs/ch-alert_8.cjs.entry.js.map +1 -1
- package/dist/cjs/ch-checkbox.cjs.entry.js +9 -11
- package/dist/cjs/ch-checkbox.cjs.entry.js.map +1 -1
- package/dist/cjs/ch-cluster.cjs.entry.js +47 -0
- package/dist/cjs/ch-cluster.cjs.entry.js.map +1 -0
- package/dist/cjs/ch-divider.cjs.entry.js +2 -2
- package/dist/cjs/ch-drawer.cjs.entry.js +4 -3
- package/dist/cjs/ch-drawer.cjs.entry.js.map +1 -1
- package/dist/cjs/ch-emoji.cjs.entry.js +2 -2
- package/dist/cjs/ch-empty-state.cjs.entry.js +34 -0
- package/dist/cjs/ch-empty-state.cjs.entry.js.map +1 -0
- package/dist/cjs/ch-grid.cjs.entry.js +59 -0
- package/dist/cjs/ch-grid.cjs.entry.js.map +1 -0
- package/dist/cjs/ch-link.cjs.entry.js +1 -1
- package/dist/cjs/ch-modal.cjs.entry.js +12 -4
- package/dist/cjs/ch-modal.cjs.entry.js.map +1 -1
- package/dist/cjs/ch-radio.cjs.entry.js +9 -11
- package/dist/cjs/ch-radio.cjs.entry.js.map +1 -1
- package/dist/cjs/ch-segmented-control.cjs.entry.js +8 -7
- package/dist/cjs/ch-segmented-control.cjs.entry.js.map +1 -1
- package/dist/cjs/ch-skeleton.cjs.entry.js +58 -0
- package/dist/cjs/ch-skeleton.cjs.entry.js.map +1 -0
- package/dist/cjs/ch-stack.cjs.entry.js +37 -0
- package/dist/cjs/ch-stack.cjs.entry.js.map +1 -0
- package/dist/cjs/ch-tabs.cjs.entry.js +2 -2
- package/dist/cjs/ch-textarea.cjs.entry.js +9 -11
- package/dist/cjs/ch-textarea.cjs.entry.js.map +1 -1
- package/dist/cjs/ch-tooltip.cjs.entry.js +2 -2
- package/dist/cjs/chucao.cjs.js +3 -3
- package/dist/cjs/chucao.cjs.js.map +1 -1
- package/dist/cjs/{index-C9cpLteP.js → index-ysucLiAq.js} +40 -13
- package/dist/cjs/index-ysucLiAq.js.map +1 -0
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/validation-message-bbtJ2sa_.js +26 -0
- package/dist/cjs/validation-message-bbtJ2sa_.js.map +1 -0
- package/dist/collection/collection-manifest.json +7 -2
- package/dist/collection/components/ch-button/ch-button.js +9 -2
- package/dist/collection/components/ch-button/ch-button.js.map +1 -1
- package/dist/collection/components/ch-card/ch-card.js +1 -1
- package/dist/collection/components/ch-checkbox/ch-checkbox.js +8 -10
- package/dist/collection/components/ch-checkbox/ch-checkbox.js.map +1 -1
- package/dist/collection/components/ch-cluster/ch-cluster.css +93 -0
- package/dist/collection/components/ch-cluster/ch-cluster.js +152 -0
- package/dist/collection/components/ch-cluster/ch-cluster.js.map +1 -0
- package/dist/collection/components/ch-divider/ch-divider.js +1 -1
- package/dist/collection/components/ch-drawer/ch-drawer.js +9 -3
- package/dist/collection/components/ch-drawer/ch-drawer.js.map +1 -1
- package/dist/collection/components/ch-emoji/ch-emoji.js +1 -1
- package/dist/collection/components/ch-empty-state/ch-empty-state.css +67 -0
- package/dist/collection/components/ch-empty-state/ch-empty-state.js +108 -0
- package/dist/collection/components/ch-empty-state/ch-empty-state.js.map +1 -0
- package/dist/collection/components/ch-grid/ch-grid.css +47 -0
- package/dist/collection/components/ch-grid/ch-grid.js +137 -0
- package/dist/collection/components/ch-grid/ch-grid.js.map +1 -0
- package/dist/collection/components/ch-input/ch-input.js +8 -10
- package/dist/collection/components/ch-input/ch-input.js.map +1 -1
- package/dist/collection/components/ch-modal/ch-modal.css +12 -1
- package/dist/collection/components/ch-modal/ch-modal.js +42 -3
- package/dist/collection/components/ch-modal/ch-modal.js.map +1 -1
- package/dist/collection/components/ch-radio/ch-radio.js +8 -10
- package/dist/collection/components/ch-radio/ch-radio.js.map +1 -1
- package/dist/collection/components/ch-segmented-control/ch-segmented-control.js +7 -6
- package/dist/collection/components/ch-segmented-control/ch-segmented-control.js.map +1 -1
- package/dist/collection/components/ch-select/ch-select.js +8 -10
- package/dist/collection/components/ch-select/ch-select.js.map +1 -1
- package/dist/collection/components/ch-skeleton/ch-skeleton.css +50 -0
- package/dist/collection/components/ch-skeleton/ch-skeleton.js +175 -0
- package/dist/collection/components/ch-skeleton/ch-skeleton.js.map +1 -0
- package/dist/collection/components/ch-spinner/ch-spinner.js +1 -1
- package/dist/collection/components/ch-stack/ch-stack.css +83 -0
- package/dist/collection/components/ch-stack/ch-stack.js +124 -0
- package/dist/collection/components/ch-stack/ch-stack.js.map +1 -0
- package/dist/collection/components/ch-switch/ch-switch.js +8 -10
- package/dist/collection/components/ch-switch/ch-switch.js.map +1 -1
- package/dist/collection/components/ch-tabs/ch-tabs.js +1 -1
- package/dist/collection/components/ch-textarea/ch-textarea.js +8 -10
- package/dist/collection/components/ch-textarea/ch-textarea.js.map +1 -1
- package/dist/collection/components/ch-tooltip/ch-tooltip.js +1 -1
- package/dist/collection/utils/accessibility.js +24 -0
- package/dist/collection/utils/accessibility.js.map +1 -0
- package/dist/collection/utils/validation-message.js +20 -0
- package/dist/collection/utils/validation-message.js.map +1 -0
- package/dist/components/ch-accordion.js +1 -1
- package/dist/components/ch-alert.js +1 -1
- package/dist/components/ch-badge.js +1 -1
- package/dist/components/ch-button.js +1 -1
- package/dist/components/ch-button.js.map +1 -1
- package/dist/components/ch-card.js +1 -1
- package/dist/components/ch-card.js.map +1 -1
- package/dist/components/ch-checkbox.js +1 -1
- package/dist/components/ch-checkbox.js.map +1 -1
- package/dist/components/ch-cluster.d.ts +11 -0
- package/dist/components/ch-cluster.js +2 -0
- package/dist/components/ch-cluster.js.map +1 -0
- package/dist/components/ch-divider.js +1 -1
- package/dist/components/ch-drawer.js +1 -1
- package/dist/components/ch-drawer.js.map +1 -1
- package/dist/components/ch-emoji.js +1 -1
- package/dist/components/ch-empty-state.d.ts +11 -0
- package/dist/components/ch-empty-state.js +2 -0
- package/dist/components/ch-empty-state.js.map +1 -0
- package/dist/components/ch-grid.d.ts +11 -0
- package/dist/components/ch-grid.js +2 -0
- package/dist/components/ch-grid.js.map +1 -0
- package/dist/components/ch-input.js +1 -1
- package/dist/components/ch-input.js.map +1 -1
- package/dist/components/ch-link.js +1 -1
- package/dist/components/ch-modal.js +1 -1
- package/dist/components/ch-modal.js.map +1 -1
- package/dist/components/ch-radio.js +1 -1
- package/dist/components/ch-radio.js.map +1 -1
- package/dist/components/ch-segmented-control.js +1 -1
- package/dist/components/ch-segmented-control.js.map +1 -1
- package/dist/components/ch-select.js +1 -1
- package/dist/components/ch-select.js.map +1 -1
- package/dist/components/ch-skeleton.d.ts +11 -0
- package/dist/components/ch-skeleton.js +2 -0
- package/dist/components/ch-skeleton.js.map +1 -0
- package/dist/components/ch-spinner.js +1 -1
- package/dist/components/ch-stack.d.ts +11 -0
- package/dist/components/ch-stack.js +2 -0
- package/dist/components/ch-stack.js.map +1 -0
- package/dist/components/ch-switch.js +1 -1
- package/dist/components/ch-switch.js.map +1 -1
- package/dist/components/ch-tabs.js +1 -1
- package/dist/components/ch-textarea.js +1 -1
- package/dist/components/ch-textarea.js.map +1 -1
- package/dist/components/ch-tooltip.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/p-BXzZsX2r.js +2 -0
- package/dist/components/p-BXzZsX2r.js.map +1 -0
- package/dist/components/{p-BhAZrOxf.js → p-DQOKq7af.js} +2 -2
- package/dist/components/p-DQOKq7af.js.map +1 -0
- package/dist/components/{p-C4eGmLcE.js → p-no2_9Jk-.js} +2 -2
- package/dist/esm/ch-accordion.entry.js +1 -1
- package/dist/esm/ch-alert_8.entry.js +41 -34
- package/dist/esm/ch-alert_8.entry.js.map +1 -1
- package/dist/esm/ch-checkbox.entry.js +9 -11
- package/dist/esm/ch-checkbox.entry.js.map +1 -1
- package/dist/esm/ch-cluster.entry.js +45 -0
- package/dist/esm/ch-cluster.entry.js.map +1 -0
- package/dist/esm/ch-divider.entry.js +2 -2
- package/dist/esm/ch-drawer.entry.js +4 -3
- package/dist/esm/ch-drawer.entry.js.map +1 -1
- package/dist/esm/ch-emoji.entry.js +2 -2
- package/dist/esm/ch-empty-state.entry.js +32 -0
- package/dist/esm/ch-empty-state.entry.js.map +1 -0
- package/dist/esm/ch-grid.entry.js +57 -0
- package/dist/esm/ch-grid.entry.js.map +1 -0
- package/dist/esm/ch-link.entry.js +1 -1
- package/dist/esm/ch-modal.entry.js +12 -4
- package/dist/esm/ch-modal.entry.js.map +1 -1
- package/dist/esm/ch-radio.entry.js +9 -11
- package/dist/esm/ch-radio.entry.js.map +1 -1
- package/dist/esm/ch-segmented-control.entry.js +8 -7
- package/dist/esm/ch-segmented-control.entry.js.map +1 -1
- package/dist/esm/ch-skeleton.entry.js +56 -0
- package/dist/esm/ch-skeleton.entry.js.map +1 -0
- package/dist/esm/ch-stack.entry.js +35 -0
- package/dist/esm/ch-stack.entry.js.map +1 -0
- package/dist/esm/ch-tabs.entry.js +2 -2
- package/dist/esm/ch-textarea.entry.js +9 -11
- package/dist/esm/ch-textarea.entry.js.map +1 -1
- package/dist/esm/ch-tooltip.entry.js +2 -2
- package/dist/esm/chucao.js +4 -4
- package/dist/esm/chucao.js.map +1 -1
- package/dist/esm/{index-DWC12BJ-.js → index-DVKZbUp9.js} +40 -13
- package/dist/esm/index-DVKZbUp9.js.map +1 -0
- package/dist/esm/loader.js +3 -3
- package/dist/esm/validation-message-BXzZsX2r.js +24 -0
- package/dist/esm/validation-message-BXzZsX2r.js.map +1 -0
- package/dist/types/components/ch-button/ch-button.d.ts +3 -1
- package/dist/types/components/ch-cluster/ch-cluster.d.ts +28 -0
- package/dist/types/components/ch-drawer/ch-drawer.d.ts +2 -1
- package/dist/types/components/ch-empty-state/ch-empty-state.d.ts +25 -0
- package/dist/types/components/ch-grid/ch-grid.d.ts +38 -0
- package/dist/types/components/ch-modal/ch-modal.d.ts +10 -1
- package/dist/types/components/ch-skeleton/ch-skeleton.d.ts +39 -0
- package/dist/types/components/ch-stack/ch-stack.d.ts +26 -0
- package/dist/types/components.d.ts +414 -6
- package/dist/types/stencil-public-runtime.d.ts +61 -55
- package/dist/types/utils/accessibility.d.ts +2 -0
- package/dist/types/utils/validation-message.d.ts +20 -0
- package/dist-react/components.d.ts +15 -0
- package/dist-react/components.js +45 -0
- package/dist-react/components.ts +60 -0
- package/dist-vue/index.d.ts +5 -0
- package/dist-vue/index.js +34 -0
- package/dist-vue/index.ts +44 -0
- package/hydrate/index.js +544 -121
- package/hydrate/index.mjs +544 -121
- package/package.json +22 -2
- package/dist/chucao/p-079c2017.entry.js +0 -2
- package/dist/chucao/p-079c2017.entry.js.map +0 -1
- package/dist/chucao/p-37e7f9cc.entry.js +0 -2
- package/dist/chucao/p-37e7f9cc.entry.js.map +0 -1
- package/dist/chucao/p-70285203.entry.js +0 -2
- package/dist/chucao/p-70285203.entry.js.map +0 -1
- package/dist/chucao/p-9c072600.entry.js +0 -2
- package/dist/chucao/p-9c072600.entry.js.map +0 -1
- package/dist/chucao/p-DWC12BJ-.js.map +0 -1
- package/dist/chucao/p-b678a7e2.entry.js +0 -2
- package/dist/chucao/p-b678a7e2.entry.js.map +0 -1
- package/dist/chucao/p-b8bd0310.entry.js +0 -2
- package/dist/chucao/p-b8bd0310.entry.js.map +0 -1
- package/dist/chucao/p-c986036f.entry.js +0 -2
- package/dist/chucao/p-e3265e38.entry.js +0 -2
- package/dist/chucao/p-e3265e38.entry.js.map +0 -1
- package/dist/cjs/index-C9cpLteP.js.map +0 -1
- package/dist/components/p-BhAZrOxf.js.map +0 -1
- package/dist/esm/index-DWC12BJ-.js.map +0 -1
- /package/dist/chucao/{p-04dbcfa0.entry.js.map → p-6e95f31f.entry.js.map} +0 -0
- /package/dist/chucao/{p-bb2445d1.entry.js.map → p-907195ff.entry.js.map} +0 -0
- /package/dist/chucao/{p-ff5f5c1f.entry.js.map → p-a07e0e97.entry.js.map} +0 -0
- /package/dist/chucao/{p-077dc2a6.entry.js.map → p-b392021c.entry.js.map} +0 -0
- /package/dist/chucao/{p-5ae89a19.entry.js.map → p-b5552b50.entry.js.map} +0 -0
- /package/dist/chucao/{p-c986036f.entry.js.map → p-d776b092.entry.js.map} +0 -0
- /package/dist/components/{p-C4eGmLcE.js.map → p-no2_9Jk-.js.map} +0 -0
package/dist/esm/loader.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { g as globalScripts, b as bootstrapLazy } from './index-
|
|
2
|
-
export { s as setNonce } from './index-
|
|
1
|
+
import { g as globalScripts, b as bootstrapLazy } from './index-DVKZbUp9.js';
|
|
2
|
+
export { s as setNonce } from './index-DVKZbUp9.js';
|
|
3
3
|
|
|
4
4
|
const defineCustomElements = async (win, options) => {
|
|
5
5
|
if (typeof window === 'undefined') return undefined;
|
|
6
6
|
await globalScripts();
|
|
7
|
-
return bootstrapLazy([["ch-accordion",[[769,"ch-accordion",{"items":[16],"value":[1025]}]]],["ch-checkbox",[[577,"ch-checkbox",{"label":[1],"name":[513],"value":[1],"checked":[1028],"disabled":[516],"required":[516],"hint":[1],"errorMessage":[1,"error-message"],"invalid":[4],"formDisabled":[32]},null,{"checked":[{"syncForm":0}],"required":[{"syncForm":0}],"invalid":[{"syncForm":0}],"errorMessage":[{"syncForm":0}]}]]],["ch-divider",[[513,"ch-divider",{"orientation":[1]}]]],["ch-drawer",[[769,"ch-drawer",{"open":[1028],"side":[1],"label":[1],"closeLabel":[1,"close-label"]},null,{"open":[{"handleOpenChange":0}]}]]],["ch-emoji",[[513,"ch-emoji",{"name":[1],"alt":[1],"size":[1],"extIndex":[32],"loaded":[32]},null,{"name":[{"handleNameChange":0}]}]]],["ch-link",[[769,"ch-link",{"href":[1],"target":[1],"variant":[1],"disabled":[4]}]]],["ch-modal",[[769,"ch-modal",{"open":[1028],"label":[1],"closeLabel":[1,"close-label"]},null,{"open":[{"handleOpenChange":0}]}]]],["ch-radio",[[577,"ch-radio",{"label":[1],"options":[16],"value":[1025],"name":[513],"disabled":[516],"required":[516],"hint":[1],"errorMessage":[1,"error-message"],"invalid":[4],"formDisabled":[32]},null,{"value":[{"syncForm":0}],"required":[{"syncForm":0}],"invalid":[{"syncForm":0}],"errorMessage":[{"syncForm":0}]}]]],["ch-segmented-control",[[577,"ch-segmented-control",{"label":[1],"options":[16],"value":[1025],"size":[1],"name":[513],"disabled":[516],"required":[516],"formDisabled":[32]},null,{"value":[{"syncForm":0}],"required":[{"syncForm":0}]}]]],["ch-tabs",[[769,"ch-tabs",{"tabs":[16],"value":[1025],"label":[1]}]]],["ch-textarea",[[577,"ch-textarea",{"label":[1],"value":[1025],"placeholder":[1],"rows":[2],"name":[513],"disabled":[516],"required":[516],"hint":[1],"errorMessage":[1,"error-message"],"invalid":[4],"formDisabled":[32]},null,{"value":[{"syncForm":0}],"required":[{"syncForm":0}],"invalid":[{"syncForm":0}],"errorMessage":[{"syncForm":0}]}]]],["ch-tooltip",[[769,"ch-tooltip",{"placement":[1],"hovered":[32],"focused":[32],"dismissed":[32]},[[1,"mouseenter","handleMouseEnter"],[1,"mouseleave","handleMouseLeave"],[0,"focusin","handleFocusIn"],[0,"focusout","handleFocusOut"],[4,"keydown","handleKeyDown"]]]]],["ch-alert_8",[[769,"ch-button",{"variant":[1],"size":[1],"disabled":[4],"loading":[4],"href":[1],"target":[1],"label":[1]}],[769,"ch-alert",{"variant":[1],"dismissLabel":[1,"dismiss-label"]}],[769,"ch-badge",{"variant":[1]}],[257,"ch-card"],[577,"ch-input",{"label":[1],"type":[1],"value":[1025],"placeholder":[1],"name":[513],"disabled":[516],"required":[516],"hint":[1],"errorMessage":[1,"error-message"],"invalid":[4],"formDisabled":[32]},null,{"value":[{"syncForm":0}],"required":[{"syncForm":0}],"invalid":[{"syncForm":0}],"errorMessage":[{"syncForm":0}]}],[577,"ch-select",{"label":[1],"options":[16],"value":[1025],"placeholder":[1],"name":[513],"disabled":[516],"required":[516],"hint":[1],"errorMessage":[1,"error-message"],"invalid":[4],"formDisabled":[32]},null,{"value":[{"syncForm":0}],"required":[{"syncForm":0}],"invalid":[{"syncForm":0}],"errorMessage":[{"syncForm":0}]}],[577,"ch-switch",{"label":[1],"name":[513],"value":[1],"checked":[1028],"disabled":[516],"required":[516],"hint":[1],"errorMessage":[1,"error-message"],"invalid":[4],"formDisabled":[32]},null,{"checked":[{"syncForm":0}],"required":[{"syncForm":0}],"invalid":[{"syncForm":0}],"errorMessage":[{"syncForm":0}]}],[513,"ch-spinner",{"size":[1],"label":[1]}]]]], options);
|
|
7
|
+
return bootstrapLazy([["ch-accordion",[[769,"ch-accordion",{"items":[16],"value":[1025]}]]],["ch-checkbox",[[577,"ch-checkbox",{"label":[1],"name":[513],"value":[1],"checked":[1028],"disabled":[516],"required":[516],"hint":[1],"errorMessage":[1,"error-message"],"invalid":[4],"formDisabled":[32]},null,{"checked":[{"syncForm":0}],"required":[{"syncForm":0}],"invalid":[{"syncForm":0}],"errorMessage":[{"syncForm":0}]}]]],["ch-cluster",[[769,"ch-cluster",{"gap":[1],"align":[1],"justify":[1],"wrap":[4]}]]],["ch-divider",[[513,"ch-divider",{"orientation":[1]}]]],["ch-drawer",[[769,"ch-drawer",{"open":[1028],"side":[1],"label":[1],"closeLabel":[1,"close-label"]},null,{"open":[{"handleOpenChange":0}]}]]],["ch-emoji",[[513,"ch-emoji",{"name":[1],"alt":[1],"size":[1],"extIndex":[32],"loaded":[32]},null,{"name":[{"handleNameChange":0}]}]]],["ch-empty-state",[[769,"ch-empty-state",{"title":[1],"description":[1],"size":[1]}]]],["ch-grid",[[769,"ch-grid",{"columns":[1],"gap":[1],"minItemWidth":[1,"min-item-width"]}]]],["ch-link",[[769,"ch-link",{"href":[1],"target":[1],"variant":[1],"disabled":[4]}]]],["ch-modal",[[769,"ch-modal",{"open":[1028],"label":[1],"closeLabel":[1,"close-label"],"size":[1]},null,{"open":[{"handleOpenChange":0}]}]]],["ch-radio",[[577,"ch-radio",{"label":[1],"options":[16],"value":[1025],"name":[513],"disabled":[516],"required":[516],"hint":[1],"errorMessage":[1,"error-message"],"invalid":[4],"formDisabled":[32]},null,{"value":[{"syncForm":0}],"required":[{"syncForm":0}],"invalid":[{"syncForm":0}],"errorMessage":[{"syncForm":0}]}]]],["ch-segmented-control",[[577,"ch-segmented-control",{"label":[1],"options":[16],"value":[1025],"size":[1],"name":[513],"disabled":[516],"required":[516],"formDisabled":[32]},null,{"value":[{"syncForm":0}],"required":[{"syncForm":0}]}]]],["ch-skeleton",[[513,"ch-skeleton",{"width":[1],"height":[1],"shape":[1],"count":[2],"animated":[4]}]]],["ch-stack",[[769,"ch-stack",{"gap":[1],"align":[1],"justify":[1]}]]],["ch-tabs",[[769,"ch-tabs",{"tabs":[16],"value":[1025],"label":[1]}]]],["ch-textarea",[[577,"ch-textarea",{"label":[1],"value":[1025],"placeholder":[1],"rows":[2],"name":[513],"disabled":[516],"required":[516],"hint":[1],"errorMessage":[1,"error-message"],"invalid":[4],"formDisabled":[32]},null,{"value":[{"syncForm":0}],"required":[{"syncForm":0}],"invalid":[{"syncForm":0}],"errorMessage":[{"syncForm":0}]}]]],["ch-tooltip",[[769,"ch-tooltip",{"placement":[1],"hovered":[32],"focused":[32],"dismissed":[32]},[[1,"mouseenter","handleMouseEnter"],[1,"mouseleave","handleMouseLeave"],[0,"focusin","handleFocusIn"],[0,"focusout","handleFocusOut"],[4,"keydown","handleKeyDown"]]]]],["ch-alert_8",[[769,"ch-button",{"variant":[1],"size":[1],"disabled":[4],"loading":[4],"href":[1],"target":[1],"label":[1]}],[769,"ch-alert",{"variant":[1],"dismissLabel":[1,"dismiss-label"]}],[769,"ch-badge",{"variant":[1]}],[257,"ch-card"],[577,"ch-input",{"label":[1],"type":[1],"value":[1025],"placeholder":[1],"name":[513],"disabled":[516],"required":[516],"hint":[1],"errorMessage":[1,"error-message"],"invalid":[4],"formDisabled":[32]},null,{"value":[{"syncForm":0}],"required":[{"syncForm":0}],"invalid":[{"syncForm":0}],"errorMessage":[{"syncForm":0}]}],[577,"ch-select",{"label":[1],"options":[16],"value":[1025],"placeholder":[1],"name":[513],"disabled":[516],"required":[516],"hint":[1],"errorMessage":[1,"error-message"],"invalid":[4],"formDisabled":[32]},null,{"value":[{"syncForm":0}],"required":[{"syncForm":0}],"invalid":[{"syncForm":0}],"errorMessage":[{"syncForm":0}]}],[577,"ch-switch",{"label":[1],"name":[513],"value":[1],"checked":[1028],"disabled":[516],"required":[516],"hint":[1],"errorMessage":[1,"error-message"],"invalid":[4],"formDisabled":[32]},null,{"checked":[{"syncForm":0}],"required":[{"syncForm":0}],"invalid":[{"syncForm":0}],"errorMessage":[{"syncForm":0}]}],[513,"ch-spinner",{"size":[1],"label":[1]}]]]], options);
|
|
8
8
|
};
|
|
9
9
|
|
|
10
10
|
export { defineCustomElements };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
const VALUE_MISSING_MESSAGE = 'Please fill out this field.';
|
|
2
|
+
/**
|
|
3
|
+
* Turns a form control's state into the flags and message passed to
|
|
4
|
+
* `ElementInternals.setValidity()`, so the six controls that mirror their
|
|
5
|
+
* props into constraint validation cannot drift apart.
|
|
6
|
+
*
|
|
7
|
+
* A custom error wins over `valueMissing` for the message, matching the native
|
|
8
|
+
* rule order, while both flags are reported when both apply.
|
|
9
|
+
*/
|
|
10
|
+
function resolveValidity({ required, empty, invalid, errorMessage }) {
|
|
11
|
+
const flags = {};
|
|
12
|
+
if (required && empty) {
|
|
13
|
+
flags.valueMissing = true;
|
|
14
|
+
}
|
|
15
|
+
if (invalid && errorMessage) {
|
|
16
|
+
flags.customError = true;
|
|
17
|
+
}
|
|
18
|
+
return { flags, message: errorMessage || (flags.valueMissing ? VALUE_MISSING_MESSAGE : undefined) };
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export { resolveValidity as r };
|
|
22
|
+
//# sourceMappingURL=validation-message-BXzZsX2r.js.map
|
|
23
|
+
|
|
24
|
+
//# sourceMappingURL=validation-message-BXzZsX2r.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"validation-message-BXzZsX2r.js","sources":["src/utils/validation-message.ts"],"sourcesContent":["const VALUE_MISSING_MESSAGE = 'Please fill out this field.';\n\ninterface ValidationState {\n required: boolean;\n empty: boolean;\n invalid?: boolean;\n errorMessage?: string;\n}\n\ninterface ValidationResult {\n flags: ValidityStateFlags;\n message?: string;\n}\n\n/**\n * Turns a form control's state into the flags and message passed to\n * `ElementInternals.setValidity()`, so the six controls that mirror their\n * props into constraint validation cannot drift apart.\n *\n * A custom error wins over `valueMissing` for the message, matching the native\n * rule order, while both flags are reported when both apply.\n */\nexport function resolveValidity({ required, empty, invalid, errorMessage }: ValidationState): ValidationResult {\n const flags: ValidityStateFlags = {};\n if (required && empty) {\n flags.valueMissing = true;\n }\n if (invalid && errorMessage) {\n flags.customError = true;\n }\n return { flags, message: errorMessage || (flags.valueMissing ? VALUE_MISSING_MESSAGE : undefined) };\n}\n"],"names":[],"mappings":"AAAA,MAAM,qBAAqB,GAAG,6BAA6B;AAc3D;;;;;;;AAOG;AACG,SAAU,eAAe,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,OAAO,EAAE,YAAY,EAAmB,EAAA;IACzF,MAAM,KAAK,GAAuB,EAAE;AACpC,IAAA,IAAI,QAAQ,IAAI,KAAK,EAAE;AACrB,QAAA,KAAK,CAAC,YAAY,GAAG,IAAI;;AAE3B,IAAA,IAAI,OAAO,IAAI,YAAY,EAAE;AAC3B,QAAA,KAAK,CAAC,WAAW,GAAG,IAAI;;IAE1B,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,YAAY,KAAK,KAAK,CAAC,YAAY,GAAG,qBAAqB,GAAG,SAAS,CAAC,EAAE;AACrG;;;;"}
|
|
@@ -2,6 +2,7 @@ import { type EventEmitter } from '../../stencil-public-runtime';
|
|
|
2
2
|
export type ChButtonVariant = 'primary' | 'secondary' | 'ghost' | 'danger';
|
|
3
3
|
export type ChButtonSize = 'sm' | 'md' | 'lg';
|
|
4
4
|
export declare class ChButton {
|
|
5
|
+
el: HTMLChButtonElement;
|
|
5
6
|
/**
|
|
6
7
|
* The visual style of the button. One of `primary`, `secondary`, `ghost`,
|
|
7
8
|
* or `danger`.
|
|
@@ -34,7 +35,8 @@ export declare class ChButton {
|
|
|
34
35
|
/**
|
|
35
36
|
* Accessible label set as `aria-label` on the native element. Use it when
|
|
36
37
|
* the button's content doesn't convey its purpose on its own (e.g. an
|
|
37
|
-
* icon-only button).
|
|
38
|
+
* icon-only button). Omitting it on an icon-only button logs a warning in
|
|
39
|
+
* development builds.
|
|
38
40
|
*/
|
|
39
41
|
label?: string;
|
|
40
42
|
/**
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export type ChClusterGap = 'none' | '2xs' | 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl' | '3xl' | '4xl' | '5xl' | '6xl';
|
|
2
|
+
export type ChClusterAlign = 'stretch' | 'start' | 'center' | 'end' | 'baseline';
|
|
3
|
+
export type ChClusterJustify = 'start' | 'center' | 'end' | 'between' | 'around';
|
|
4
|
+
/**
|
|
5
|
+
* Horizontal flow that wraps when it runs out of room, with a token-driven
|
|
6
|
+
* gap in both axes — the layout a toolbar, a tag list or a button row needs.
|
|
7
|
+
*/
|
|
8
|
+
export declare class ChCluster {
|
|
9
|
+
/**
|
|
10
|
+
* Space between children in both axes, as a step of the spacing scale
|
|
11
|
+
* (`2xs` … `6xl`), or `none`. An unknown value falls back to `md`.
|
|
12
|
+
*/
|
|
13
|
+
gap: ChClusterGap;
|
|
14
|
+
/**
|
|
15
|
+
* Cross-axis alignment of the children.
|
|
16
|
+
*/
|
|
17
|
+
align: ChClusterAlign;
|
|
18
|
+
/**
|
|
19
|
+
* Main-axis distribution of the children.
|
|
20
|
+
*/
|
|
21
|
+
justify: ChClusterJustify;
|
|
22
|
+
/**
|
|
23
|
+
* Whether the children wrap onto a new line when they run out of room.
|
|
24
|
+
*/
|
|
25
|
+
wrap: boolean;
|
|
26
|
+
private get gapStep();
|
|
27
|
+
render(): any;
|
|
28
|
+
}
|
|
@@ -14,6 +14,7 @@ export type ChDrawerSide = 'start' | 'end' | 'top' | 'bottom';
|
|
|
14
14
|
* drawer and a modal opened together cannot unlock the page early.
|
|
15
15
|
*/
|
|
16
16
|
export declare class ChDrawer {
|
|
17
|
+
el: HTMLChDrawerElement;
|
|
17
18
|
/**
|
|
18
19
|
* Whether the drawer is open. Kept in sync when the user closes it with
|
|
19
20
|
* `Escape`, the close button or a click outside.
|
|
@@ -28,7 +29,7 @@ export declare class ChDrawer {
|
|
|
28
29
|
* Accessible name for the drawer, set as `aria-label`. A slotted heading
|
|
29
30
|
* cannot be referenced with `aria-labelledby` across the shadow boundary, so
|
|
30
31
|
* the name comes through this prop — and a modal dialog needs one, so pass
|
|
31
|
-
* the same text as the heading.
|
|
32
|
+
* the same text as the heading. Omitting it logs a warning in development builds.
|
|
32
33
|
*/
|
|
33
34
|
label?: string;
|
|
34
35
|
/**
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export type ChEmptyStateSize = 'sm' | 'md';
|
|
2
|
+
/**
|
|
3
|
+
* The standard "there is nothing here" block: an optional visual, a title, a
|
|
4
|
+
* description and an action, laid out the same way everywhere.
|
|
5
|
+
*
|
|
6
|
+
* It works both inside a table cell and as a whole-page view: it fills its
|
|
7
|
+
* container but never claims a fixed height.
|
|
8
|
+
*/
|
|
9
|
+
export declare class ChEmptyState {
|
|
10
|
+
/**
|
|
11
|
+
* Short heading stating what is missing, used as the accessible name of the
|
|
12
|
+
* block.
|
|
13
|
+
*/
|
|
14
|
+
title: string;
|
|
15
|
+
/**
|
|
16
|
+
* One or two sentences explaining what the user can do about it.
|
|
17
|
+
*/
|
|
18
|
+
description?: string;
|
|
19
|
+
/**
|
|
20
|
+
* Visual density. `sm` is for a region inside a page (a card, a table cell),
|
|
21
|
+
* `md` for a whole view.
|
|
22
|
+
*/
|
|
23
|
+
size: ChEmptyStateSize;
|
|
24
|
+
render(): any;
|
|
25
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
export type ChGridGap = 'none' | '2xs' | 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl' | '3xl' | '4xl' | '5xl' | '6xl';
|
|
2
|
+
/**
|
|
3
|
+
* Responsive grid of equal cells.
|
|
4
|
+
*
|
|
5
|
+
* `columns` takes a fixed count (`1`…`12`) or `auto-fit`, which fits as many
|
|
6
|
+
* columns as `min-item-width` allows into the available width. That second mode
|
|
7
|
+
* is the one a card list almost always wants: it needs no breakpoints and no
|
|
8
|
+
* media queries of its own.
|
|
9
|
+
*/
|
|
10
|
+
export declare class ChGrid {
|
|
11
|
+
el: HTMLChGridElement;
|
|
12
|
+
/**
|
|
13
|
+
* Number of equal columns (`1`…`12`), or `auto-fit` to fit as many as
|
|
14
|
+
* `min-item-width` allows. An unknown value falls back to `auto-fit`.
|
|
15
|
+
*/
|
|
16
|
+
columns: string;
|
|
17
|
+
/**
|
|
18
|
+
* Space between cells in both axes, as a step of the spacing scale
|
|
19
|
+
* (`2xs` … `6xl`), or `none`. An unknown value falls back to `md`.
|
|
20
|
+
*/
|
|
21
|
+
gap: ChGridGap;
|
|
22
|
+
/**
|
|
23
|
+
* Smallest width a cell may take in `auto-fit` mode, as a CSS length. It also
|
|
24
|
+
* caps the column count in fixed mode, so a cell never gets narrower than it.
|
|
25
|
+
*/
|
|
26
|
+
minItemWidth: string;
|
|
27
|
+
private get gapStep();
|
|
28
|
+
private get fixedColumns();
|
|
29
|
+
componentWillLoad(): void;
|
|
30
|
+
componentDidUpdate(): void;
|
|
31
|
+
/**
|
|
32
|
+
* The column template is written as a CSS custom property rather than an
|
|
33
|
+
* inline style: the template carries a comma and an internal `1fr`, and a
|
|
34
|
+
* custom property keeps it out of the style string Stencil parses.
|
|
35
|
+
*/
|
|
36
|
+
private applyColumns;
|
|
37
|
+
render(): any;
|
|
38
|
+
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { type EventEmitter } from '../../stencil-public-runtime';
|
|
2
|
+
export type ChModalSize = 'sm' | 'md' | 'lg';
|
|
2
3
|
/**
|
|
3
4
|
* Modal dialog, built on the native `<dialog>` element and opened with
|
|
4
5
|
* `showModal()`.
|
|
@@ -18,6 +19,7 @@ import { type EventEmitter } from '../../stencil-public-runtime';
|
|
|
18
19
|
* than only for some.
|
|
19
20
|
*/
|
|
20
21
|
export declare class ChModal {
|
|
22
|
+
el: HTMLChModalElement;
|
|
21
23
|
/**
|
|
22
24
|
* Whether the dialog is open. Kept in sync when the user closes it with
|
|
23
25
|
* `Escape`, the close button or a click outside.
|
|
@@ -27,7 +29,7 @@ export declare class ChModal {
|
|
|
27
29
|
* Accessible name for the dialog, set as `aria-label`. A slotted heading
|
|
28
30
|
* cannot be referenced with `aria-labelledby` across the shadow boundary, so
|
|
29
31
|
* the name comes through this prop — and a modal dialog needs one, so pass
|
|
30
|
-
* the same text as the heading.
|
|
32
|
+
* the same text as the heading. Omitting it logs a warning in development builds.
|
|
31
33
|
*/
|
|
32
34
|
label?: string;
|
|
33
35
|
/**
|
|
@@ -36,6 +38,13 @@ export declare class ChModal {
|
|
|
36
38
|
* label it would have no accessible name.
|
|
37
39
|
*/
|
|
38
40
|
closeLabel?: string;
|
|
41
|
+
/**
|
|
42
|
+
* The maximum width of the dialog. One of `sm` (24rem), `md` (32rem), or
|
|
43
|
+
* `lg` (48rem). The `--ch-modal-width` custom property overrides it for a
|
|
44
|
+
* width none of the three cover. Either way the dialog never exceeds the
|
|
45
|
+
* viewport.
|
|
46
|
+
*/
|
|
47
|
+
size: ChModalSize;
|
|
39
48
|
/**
|
|
40
49
|
* Emitted after the dialog opens.
|
|
41
50
|
*/
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
export type ChSkeletonShape = 'line' | 'circle' | 'rect';
|
|
2
|
+
/**
|
|
3
|
+
* Decorative loading placeholder that reserves the space real content will
|
|
4
|
+
* take, so the page does not jump when the data arrives.
|
|
5
|
+
*
|
|
6
|
+
* It stays out of the accessibility tree on purpose: a screen reader should
|
|
7
|
+
* hear nothing about a placeholder. Mark the region that is actually loading
|
|
8
|
+
* with `aria-busy="true"` yourself, and announce the result when it lands.
|
|
9
|
+
*/
|
|
10
|
+
export declare class ChSkeleton {
|
|
11
|
+
/**
|
|
12
|
+
* Width of a placeholder. For `line` and `rect` it is a CSS length or a
|
|
13
|
+
* percentage; `circle` is square, so this sets its diameter too.
|
|
14
|
+
*/
|
|
15
|
+
width: string;
|
|
16
|
+
/**
|
|
17
|
+
* Height of a placeholder, as a CSS length. Ignored by `circle`, which is
|
|
18
|
+
* square.
|
|
19
|
+
*/
|
|
20
|
+
height: string;
|
|
21
|
+
/**
|
|
22
|
+
* Shape of the placeholder: `line` for text, `circle` for avatars and
|
|
23
|
+
* icons, `rect` for images and cards.
|
|
24
|
+
*/
|
|
25
|
+
shape: ChSkeletonShape;
|
|
26
|
+
/**
|
|
27
|
+
* How many placeholders to render in a row, for multi-line text blocks. A
|
|
28
|
+
* value below 1 renders one.
|
|
29
|
+
*/
|
|
30
|
+
count: number;
|
|
31
|
+
/**
|
|
32
|
+
* Whether the shimmer runs. It is also disabled automatically for people who
|
|
33
|
+
* asked for reduced motion.
|
|
34
|
+
*/
|
|
35
|
+
animated: boolean;
|
|
36
|
+
private get items();
|
|
37
|
+
private get sizeStyle();
|
|
38
|
+
render(): any;
|
|
39
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export type ChStackGap = 'none' | '2xs' | 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl' | '3xl' | '4xl' | '5xl' | '6xl';
|
|
2
|
+
export type ChStackAlign = 'stretch' | 'start' | 'center' | 'end';
|
|
3
|
+
export type ChStackJustify = 'start' | 'center' | 'end' | 'between' | 'around';
|
|
4
|
+
/**
|
|
5
|
+
* Vertical flow: children stack top to bottom with a token-driven gap.
|
|
6
|
+
*
|
|
7
|
+
* It is a real host with `display: flex`, not `display: contents`, so a
|
|
8
|
+
* consumer's own classes and attributes on `<ch-stack>` keep working.
|
|
9
|
+
*/
|
|
10
|
+
export declare class ChStack {
|
|
11
|
+
/**
|
|
12
|
+
* Space between children, as a step of the spacing scale (`2xs` … `6xl`),
|
|
13
|
+
* or `none` for no gap. An unknown value falls back to `md`.
|
|
14
|
+
*/
|
|
15
|
+
gap: ChStackGap;
|
|
16
|
+
/**
|
|
17
|
+
* Cross-axis alignment of the children.
|
|
18
|
+
*/
|
|
19
|
+
align: ChStackAlign;
|
|
20
|
+
/**
|
|
21
|
+
* Main-axis distribution of the children.
|
|
22
|
+
*/
|
|
23
|
+
justify: ChStackJustify;
|
|
24
|
+
private get gapStep();
|
|
25
|
+
render(): any;
|
|
26
|
+
}
|