@devschile/chucao 2.7.1 → 2.9.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/{p-01b6c7bf.entry.js → p-03acf096.entry.js} +2 -2
- package/dist/chucao/{p-10f6801e.entry.js → p-0ce2b15d.entry.js} +2 -2
- package/dist/chucao/p-10e37157.entry.js +2 -0
- package/dist/chucao/p-10e37157.entry.js.map +1 -0
- package/dist/chucao/{p-f917d34f.entry.js → p-12043dc1.entry.js} +2 -2
- package/dist/chucao/p-1dca55d6.entry.js +2 -0
- package/dist/chucao/{p-deb2571b.entry.js.map → p-1dca55d6.entry.js.map} +1 -1
- package/dist/chucao/{p-0c7f6f8d.entry.js → p-244d8e96.entry.js} +2 -2
- package/dist/chucao/{p-a7c674b7.entry.js → p-29841714.entry.js} +2 -2
- package/dist/chucao/{p-ffecdf25.entry.js → p-302ec527.entry.js} +2 -2
- package/dist/chucao/{p-337d7f68.entry.js → p-51f6327c.entry.js} +2 -2
- package/dist/chucao/{p-1b70e3f1.entry.js → p-5a62951e.entry.js} +2 -2
- package/dist/chucao/{p-472ec451.entry.js → p-5d0ac17a.entry.js} +2 -2
- package/dist/chucao/{p-d8b71751.entry.js → p-5e0e1012.entry.js} +2 -2
- package/dist/chucao/{p-15d27bb7.entry.js → p-61a94a4e.entry.js} +2 -2
- package/dist/chucao/p-649c2cef.entry.js +2 -0
- package/dist/chucao/p-649c2cef.entry.js.map +1 -0
- package/dist/chucao/p-674c0f61.entry.js +2 -0
- package/dist/chucao/p-674c0f61.entry.js.map +1 -0
- package/dist/chucao/{p-c4b2bd1f.entry.js → p-67f0fc77.entry.js} +2 -2
- package/dist/chucao/{p-5240f5ac.entry.js → p-68e4a129.entry.js} +2 -2
- package/dist/chucao/{p-2e37c61b.entry.js → p-6e345b3f.entry.js} +2 -2
- package/dist/chucao/{p-f6ab0a11.entry.js → p-72d4dacf.entry.js} +2 -2
- package/dist/chucao/{p-8ae680a4.entry.js → p-74d9b7e5.entry.js} +2 -2
- package/dist/chucao/p-791ce537.entry.js +2 -0
- package/dist/chucao/p-791ce537.entry.js.map +1 -0
- package/dist/chucao/{p-c90da3c0.entry.js → p-79e8c10b.entry.js} +2 -2
- package/dist/chucao/{p-90284ebe.entry.js → p-7e13f725.entry.js} +2 -2
- package/dist/chucao/{p-9ebcc7be.entry.js → p-8b23d072.entry.js} +2 -2
- package/dist/chucao/{p-CIV5Gg1o.js → p-8l_6qAY9.js} +3 -3
- package/dist/chucao/p-8l_6qAY9.js.map +1 -0
- package/dist/chucao/{p-1e4cd3aa.entry.js → p-a5430e95.entry.js} +2 -2
- package/dist/chucao/{p-e77d35c3.entry.js → p-a7c66879.entry.js} +2 -2
- package/dist/chucao/p-b452d6cb.entry.js +2 -0
- package/dist/chucao/p-b7332faf.entry.js +2 -0
- package/dist/chucao/{p-60e1c1df.entry.js.map → p-b7332faf.entry.js.map} +1 -1
- package/dist/chucao/{p-42028c97.entry.js → p-f3d03388.entry.js} +2 -2
- package/dist/chucao/{p-7cdc71cc.entry.js → p-f925d45c.entry.js} +2 -2
- package/dist/cjs/ch-accordion.cjs.entry.js +2 -2
- package/dist/cjs/ch-alert_8.cjs.entry.js +8 -8
- package/dist/cjs/ch-checkbox.cjs.entry.js +2 -2
- package/dist/cjs/ch-cluster.cjs.entry.js +3 -3
- package/dist/cjs/ch-combobox.cjs.entry.js +304 -0
- package/dist/cjs/ch-combobox.cjs.entry.js.map +1 -0
- package/dist/cjs/ch-confirm-dialog.cjs.entry.js +138 -0
- package/dist/cjs/ch-confirm-dialog.cjs.entry.js.map +1 -0
- package/dist/cjs/ch-description-list.cjs.entry.js +2 -2
- package/dist/cjs/ch-divider.cjs.entry.js +2 -2
- package/dist/cjs/ch-drawer.cjs.entry.js +2 -2
- package/dist/cjs/ch-emoji.cjs.entry.js +2 -2
- package/dist/cjs/ch-empty-state.cjs.entry.js +2 -2
- package/dist/cjs/ch-grid.cjs.entry.js +2 -2
- package/dist/cjs/ch-icon-button.cjs.entry.js +2 -2
- package/dist/cjs/ch-icon.cjs.entry.js +2 -2
- package/dist/cjs/ch-link.cjs.entry.js +1 -1
- package/dist/cjs/ch-modal.cjs.entry.js +2 -2
- package/dist/cjs/ch-number-input.cjs.entry.js +3 -3
- package/dist/cjs/ch-otp-input.cjs.entry.js +196 -0
- package/dist/cjs/ch-otp-input.cjs.entry.js.map +1 -0
- package/dist/cjs/ch-page-header.cjs.entry.js +2 -2
- package/dist/cjs/ch-pagination.cjs.entry.js +67 -0
- package/dist/cjs/ch-pagination.cjs.entry.js.map +1 -0
- package/dist/cjs/ch-radio.cjs.entry.js +2 -2
- package/dist/cjs/ch-segmented-control.cjs.entry.js +2 -2
- package/dist/cjs/ch-skeleton.cjs.entry.js +2 -2
- package/dist/cjs/ch-stack.cjs.entry.js +2 -2
- package/dist/cjs/ch-stat.cjs.entry.js +3 -3
- package/dist/cjs/ch-table.cjs.entry.js +2 -2
- package/dist/cjs/ch-tabs.cjs.entry.js +2 -2
- package/dist/cjs/ch-textarea.cjs.entry.js +2 -2
- package/dist/cjs/ch-timeline.cjs.entry.js +2 -2
- package/dist/cjs/ch-tooltip.cjs.entry.js +3 -3
- package/dist/cjs/chucao.cjs.js +2 -2
- package/dist/cjs/{index-ByZY6aTj.js → index-C6khqyw3.js} +19 -2
- package/dist/cjs/index-C6khqyw3.js.map +1 -0
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +4 -0
- package/dist/collection/components/ch-accordion/ch-accordion.js +1 -1
- package/dist/collection/components/ch-alert/ch-alert.js +1 -1
- package/dist/collection/components/ch-badge/ch-badge.js +1 -1
- package/dist/collection/components/ch-card/ch-card.js +1 -1
- package/dist/collection/components/ch-checkbox/ch-checkbox.js +1 -1
- package/dist/collection/components/ch-cluster/ch-cluster.js +2 -2
- package/dist/collection/components/ch-combobox/ch-combobox.css +153 -0
- package/dist/collection/components/ch-combobox/ch-combobox.js +577 -0
- package/dist/collection/components/ch-combobox/ch-combobox.js.map +1 -0
- package/dist/collection/components/ch-confirm-dialog/ch-confirm-dialog.css +71 -0
- package/dist/collection/components/ch-confirm-dialog/ch-confirm-dialog.js +382 -0
- package/dist/collection/components/ch-confirm-dialog/ch-confirm-dialog.js.map +1 -0
- package/dist/collection/components/ch-description-list/ch-description-list.js +1 -1
- package/dist/collection/components/ch-divider/ch-divider.js +1 -1
- package/dist/collection/components/ch-drawer/ch-drawer.js +1 -1
- package/dist/collection/components/ch-emoji/ch-emoji.js +1 -1
- package/dist/collection/components/ch-empty-state/ch-empty-state.js +1 -1
- package/dist/collection/components/ch-grid/ch-grid.js +1 -1
- package/dist/collection/components/ch-icon/ch-icon.js +1 -1
- package/dist/collection/components/ch-icon-button/ch-icon-button.js +1 -1
- package/dist/collection/components/ch-input/ch-input.js +1 -1
- package/dist/collection/components/ch-modal/ch-modal.js +1 -1
- package/dist/collection/components/ch-number-input/ch-number-input.js +2 -2
- package/dist/collection/components/ch-otp-input/ch-otp-input.css +86 -0
- package/dist/collection/components/ch-otp-input/ch-otp-input.js +478 -0
- package/dist/collection/components/ch-otp-input/ch-otp-input.js.map +1 -0
- package/dist/collection/components/ch-page-header/ch-page-header.js +1 -1
- package/dist/collection/components/ch-pagination/ch-pagination.css +63 -0
- package/dist/collection/components/ch-pagination/ch-pagination.js +228 -0
- package/dist/collection/components/ch-pagination/ch-pagination.js.map +1 -0
- package/dist/collection/components/ch-radio/ch-radio.js +1 -1
- package/dist/collection/components/ch-segmented-control/ch-segmented-control.js +1 -1
- package/dist/collection/components/ch-select/ch-select.js +1 -1
- package/dist/collection/components/ch-skeleton/ch-skeleton.js +1 -1
- package/dist/collection/components/ch-spinner/ch-spinner.js +1 -1
- package/dist/collection/components/ch-stack/ch-stack.js +1 -1
- package/dist/collection/components/ch-stat/ch-stat.js +2 -2
- package/dist/collection/components/ch-switch/ch-switch.js +1 -1
- package/dist/collection/components/ch-table/ch-table.js +1 -1
- package/dist/collection/components/ch-tabs/ch-tabs.js +1 -1
- package/dist/collection/components/ch-textarea/ch-textarea.js +1 -1
- package/dist/collection/components/ch-timeline/ch-timeline.js +1 -1
- package/dist/collection/components/ch-tooltip/ch-tooltip.js +2 -2
- 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-card.js +1 -1
- package/dist/components/ch-checkbox.js +1 -1
- package/dist/components/ch-cluster.js +1 -1
- package/dist/components/ch-combobox.d.ts +11 -0
- package/dist/components/ch-combobox.js +2 -0
- package/dist/components/ch-combobox.js.map +1 -0
- package/dist/components/ch-confirm-dialog.d.ts +11 -0
- package/dist/components/ch-confirm-dialog.js +2 -0
- package/dist/components/ch-confirm-dialog.js.map +1 -0
- package/dist/components/ch-description-list.js +1 -1
- package/dist/components/ch-divider.js +1 -1
- package/dist/components/ch-drawer.js +1 -1
- package/dist/components/ch-emoji.js +1 -1
- package/dist/components/ch-empty-state.js +1 -1
- package/dist/components/ch-grid.js +1 -1
- package/dist/components/ch-icon-button.js +1 -1
- package/dist/components/ch-icon.js +1 -1
- package/dist/components/ch-input.js +1 -1
- package/dist/components/ch-modal.js +1 -1
- package/dist/components/ch-modal.js.map +1 -1
- package/dist/components/ch-number-input.js +1 -1
- package/dist/components/ch-otp-input.d.ts +11 -0
- package/dist/components/ch-otp-input.js +2 -0
- package/dist/components/ch-otp-input.js.map +1 -0
- package/dist/components/ch-page-header.js +1 -1
- package/dist/components/ch-pagination.d.ts +11 -0
- package/dist/components/ch-pagination.js +2 -0
- package/dist/components/ch-pagination.js.map +1 -0
- package/dist/components/ch-radio.js +1 -1
- package/dist/components/ch-segmented-control.js +1 -1
- package/dist/components/ch-select.js +1 -1
- package/dist/components/ch-skeleton.js +1 -1
- package/dist/components/ch-spinner.js +1 -1
- package/dist/components/ch-stack.js +1 -1
- package/dist/components/ch-stat.js +1 -1
- package/dist/components/ch-switch.js +1 -1
- package/dist/components/ch-table.js +1 -1
- package/dist/components/ch-tabs.js +1 -1
- package/dist/components/ch-textarea.js +1 -1
- package/dist/components/ch-timeline.js +1 -1
- package/dist/components/ch-tooltip.js +1 -1
- package/dist/components/{p-DiUN1WGc.js → p-CuSstsTP.js} +2 -2
- package/dist/components/p-MBLhKofG.js +2 -0
- package/dist/components/p-MBLhKofG.js.map +1 -0
- package/dist/components/p-qP_9qshx.js.map +1 -1
- package/dist/esm/ch-accordion.entry.js +2 -2
- package/dist/esm/ch-alert_8.entry.js +8 -8
- package/dist/esm/ch-checkbox.entry.js +2 -2
- package/dist/esm/ch-cluster.entry.js +3 -3
- package/dist/esm/ch-combobox.entry.js +302 -0
- package/dist/esm/ch-combobox.entry.js.map +1 -0
- package/dist/esm/ch-confirm-dialog.entry.js +136 -0
- package/dist/esm/ch-confirm-dialog.entry.js.map +1 -0
- package/dist/esm/ch-description-list.entry.js +2 -2
- package/dist/esm/ch-divider.entry.js +2 -2
- package/dist/esm/ch-drawer.entry.js +2 -2
- package/dist/esm/ch-emoji.entry.js +2 -2
- package/dist/esm/ch-empty-state.entry.js +2 -2
- package/dist/esm/ch-grid.entry.js +2 -2
- package/dist/esm/ch-icon-button.entry.js +2 -2
- package/dist/esm/ch-icon.entry.js +2 -2
- package/dist/esm/ch-link.entry.js +1 -1
- package/dist/esm/ch-modal.entry.js +2 -2
- package/dist/esm/ch-number-input.entry.js +3 -3
- package/dist/esm/ch-otp-input.entry.js +194 -0
- package/dist/esm/ch-otp-input.entry.js.map +1 -0
- package/dist/esm/ch-page-header.entry.js +2 -2
- package/dist/esm/ch-pagination.entry.js +65 -0
- package/dist/esm/ch-pagination.entry.js.map +1 -0
- package/dist/esm/ch-radio.entry.js +2 -2
- package/dist/esm/ch-segmented-control.entry.js +2 -2
- package/dist/esm/ch-skeleton.entry.js +2 -2
- package/dist/esm/ch-stack.entry.js +2 -2
- package/dist/esm/ch-stat.entry.js +3 -3
- package/dist/esm/ch-table.entry.js +2 -2
- package/dist/esm/ch-tabs.entry.js +2 -2
- package/dist/esm/ch-textarea.entry.js +2 -2
- package/dist/esm/ch-timeline.entry.js +2 -2
- package/dist/esm/ch-tooltip.entry.js +3 -3
- package/dist/esm/chucao.js +3 -3
- package/dist/esm/{index-CIV5Gg1o.js → index-8l_6qAY9.js} +19 -2
- package/dist/esm/index-8l_6qAY9.js.map +1 -0
- package/dist/esm/loader.js +3 -3
- package/dist/types/components/ch-combobox/ch-combobox.d.ts +98 -0
- package/dist/types/components/ch-confirm-dialog/ch-confirm-dialog.d.ts +81 -0
- package/dist/types/components/ch-otp-input/ch-otp-input.d.ts +79 -0
- package/dist/types/components/ch-pagination/ch-pagination.d.ts +44 -0
- package/dist/types/components.d.ts +757 -0
- package/dist-react/components.d.ts +27 -1
- package/dist-react/components.js +45 -0
- package/dist-react/components.ts +67 -1
- package/dist-vue/index.d.ts +4 -0
- package/dist-vue/index.js +67 -0
- package/dist-vue/index.ts +75 -0
- package/hydrate/index.js +855 -35
- package/hydrate/index.mjs +855 -35
- package/package.json +17 -1
- package/dist/chucao/p-60e1c1df.entry.js +0 -2
- package/dist/chucao/p-9db118d9.entry.js +0 -2
- package/dist/chucao/p-CIV5Gg1o.js.map +0 -1
- package/dist/chucao/p-deb2571b.entry.js +0 -2
- package/dist/cjs/index-ByZY6aTj.js.map +0 -1
- package/dist/esm/index-CIV5Gg1o.js.map +0 -1
- /package/dist/chucao/{p-01b6c7bf.entry.js.map → p-03acf096.entry.js.map} +0 -0
- /package/dist/chucao/{p-10f6801e.entry.js.map → p-0ce2b15d.entry.js.map} +0 -0
- /package/dist/chucao/{p-f917d34f.entry.js.map → p-12043dc1.entry.js.map} +0 -0
- /package/dist/chucao/{p-0c7f6f8d.entry.js.map → p-244d8e96.entry.js.map} +0 -0
- /package/dist/chucao/{p-a7c674b7.entry.js.map → p-29841714.entry.js.map} +0 -0
- /package/dist/chucao/{p-ffecdf25.entry.js.map → p-302ec527.entry.js.map} +0 -0
- /package/dist/chucao/{p-337d7f68.entry.js.map → p-51f6327c.entry.js.map} +0 -0
- /package/dist/chucao/{p-1b70e3f1.entry.js.map → p-5a62951e.entry.js.map} +0 -0
- /package/dist/chucao/{p-472ec451.entry.js.map → p-5d0ac17a.entry.js.map} +0 -0
- /package/dist/chucao/{p-d8b71751.entry.js.map → p-5e0e1012.entry.js.map} +0 -0
- /package/dist/chucao/{p-15d27bb7.entry.js.map → p-61a94a4e.entry.js.map} +0 -0
- /package/dist/chucao/{p-c4b2bd1f.entry.js.map → p-67f0fc77.entry.js.map} +0 -0
- /package/dist/chucao/{p-5240f5ac.entry.js.map → p-68e4a129.entry.js.map} +0 -0
- /package/dist/chucao/{p-2e37c61b.entry.js.map → p-6e345b3f.entry.js.map} +0 -0
- /package/dist/chucao/{p-f6ab0a11.entry.js.map → p-72d4dacf.entry.js.map} +0 -0
- /package/dist/chucao/{p-8ae680a4.entry.js.map → p-74d9b7e5.entry.js.map} +0 -0
- /package/dist/chucao/{p-c90da3c0.entry.js.map → p-79e8c10b.entry.js.map} +0 -0
- /package/dist/chucao/{p-90284ebe.entry.js.map → p-7e13f725.entry.js.map} +0 -0
- /package/dist/chucao/{p-9ebcc7be.entry.js.map → p-8b23d072.entry.js.map} +0 -0
- /package/dist/chucao/{p-1e4cd3aa.entry.js.map → p-a5430e95.entry.js.map} +0 -0
- /package/dist/chucao/{p-e77d35c3.entry.js.map → p-a7c66879.entry.js.map} +0 -0
- /package/dist/chucao/{p-9db118d9.entry.js.map → p-b452d6cb.entry.js.map} +0 -0
- /package/dist/chucao/{p-42028c97.entry.js.map → p-f3d03388.entry.js.map} +0 -0
- /package/dist/chucao/{p-7cdc71cc.entry.js.map → p-f925d45c.entry.js.map} +0 -0
- /package/dist/components/{p-DiUN1WGc.js.map → p-CuSstsTP.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-8l_6qAY9.js';
|
|
2
|
+
export { s as setNonce } from './index-8l_6qAY9.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-cluster",[[769,"ch-cluster",{"gap":[1],"align":[1],"justify":[1],"wrap":[4]}]]],["ch-description-list",[[769,"ch-description-list",{"columns":[1]}]]],["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-icon",[[513,"ch-icon",{"name":[1],"size":[1],"label":[1]}]]],["ch-icon-button",[[513,"ch-icon-button",{"name":[1],"label":[1],"size":[1],"type":[1],"disabled":[4],"loading":[4]}]]],["ch-link",[[769,"ch-link",{"href":[1],"target":[1],"variant":[1],"disabled":[4]}]]],["ch-
|
|
7
|
+
return bootstrapLazy([["ch-confirm-dialog",[[513,"ch-confirm-dialog",{"open":[1028],"heading":[1],"message":[1],"confirmLabel":[1,"confirm-label"],"cancelLabel":[1,"cancel-label"],"tone":[1],"pending":[4],"dismissible":[4],"settled":[32],"focusCancel":[64]},null,{"open":[{"handleOpenChange":0}]}]]],["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-combobox",[[577,"ch-combobox",{"label":[1],"options":[16],"value":[1025],"multiple":[516],"placeholder":[1],"name":[513],"disabled":[516],"required":[516],"hint":[1],"errorMessage":[1,"error-message"],"invalid":[4],"formDisabled":[32],"query":[32],"expanded":[32],"activeIndex":[32]},null,{"value":[{"syncForm":0}],"required":[{"syncForm":0}],"invalid":[{"syncForm":0}],"errorMessage":[{"syncForm":0}],"multiple":[{"syncForm":0}]}]]],["ch-description-list",[[769,"ch-description-list",{"columns":[1]}]]],["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-icon",[[513,"ch-icon",{"name":[1],"size":[1],"label":[1]}]]],["ch-icon-button",[[513,"ch-icon-button",{"name":[1],"label":[1],"size":[1],"type":[1],"disabled":[4],"loading":[4]}]]],["ch-link",[[769,"ch-link",{"href":[1],"target":[1],"variant":[1],"disabled":[4]}]]],["ch-number-input",[[577,"ch-number-input",{"label":[1],"value":[1025],"format":[1],"placeholder":[1],"name":[513],"disabled":[516],"required":[516],"min":[2],"max":[2],"step":[8],"hint":[1],"errorMessage":[1,"error-message"],"invalid":[4],"formDisabled":[32],"draft":[32],"typing":[32]},null,{"required":[{"syncForm":0}],"invalid":[{"syncForm":0}],"errorMessage":[{"syncForm":0}],"min":[{"syncForm":0}],"max":[{"syncForm":0}]}]]],["ch-otp-input",[[577,"ch-otp-input",{"label":[1],"value":[1025],"length":[2],"inputMode":[1,"input-mode"],"secret":[4],"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}],"length":[{"syncForm":0}],"inputMode":[{"syncForm":0}]}]]],["ch-page-header",[[769,"ch-page-header",{"title":[1],"headingLevel":[1,"heading-level"],"eyebrow":[1],"description":[1],"actionsStacked":[4,"actions-stacked"]}]]],["ch-pagination",[[513,"ch-pagination",{"page":[2],"pageSize":[2,"page-size"],"total":[2],"label":[1],"size":[1],"disabled":[516]}]]],["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-stat",[[769,"ch-stat",{"label":[1],"value":[1],"hint":[1],"tone":[1]}]]],["ch-table",[[769,"ch-table",{"columns":[16],"sortable":[516],"sortKey":[1,"sort-key"],"sortDirection":[1,"sort-direction"],"label":[1],"filtered":[516],"empty":[32],"rerender":[32]},null,{"filtered":[{"onFiltered":0}],"sortKey":[{"rerenderHeaders":0}],"sortDirection":[{"rerenderHeaders":0}],"sortable":[{"rerenderHeaders":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-timeline",[[257,"ch-timeline"]]],["ch-tooltip",[[769,"ch-tooltip",{"placement":[1],"hovered":[32],"focused":[32],"dismissed":[32],"resolvedPlacement":[32]},[[1,"mouseenter","handleMouseEnter"],[1,"mouseleave","handleMouseLeave"],[0,"focusin","handleFocusIn"],[0,"focusout","handleFocusOut"],[4,"keydown","handleKeyDown"],[11,"scroll","handleScroll"],[9,"resize","handleResize"]]]]],["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"],"statusCue":[4,"status-cue"]}],[769,"ch-badge",{"variant":[1],"statusCue":[4,"status-cue"]}],[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]}]]],["ch-modal",[[769,"ch-modal",{"open":[1028],"label":[1],"closeLabel":[1,"close-label"],"size":[1]},null,{"open":[{"handleOpenChange":0}]}]]]], options);
|
|
8
8
|
};
|
|
9
9
|
|
|
10
10
|
export { defineCustomElements };
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import { type EventEmitter } from '../../stencil-public-runtime';
|
|
2
|
+
export interface ChComboboxOption {
|
|
3
|
+
label: string;
|
|
4
|
+
value: string;
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
/** Optional grouping label; consecutive options with the same group are announced together. */
|
|
7
|
+
group?: string;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* A text field that filters a list of options and commits a choice.
|
|
11
|
+
*
|
|
12
|
+
* The input is a native `<input>` rather than `ch-input`: the combobox role
|
|
13
|
+
* and its `aria-*` state have to sit on the element that owns the interaction,
|
|
14
|
+
* and ARIA does not forward through a wrapper component.
|
|
15
|
+
*
|
|
16
|
+
* Single and multiple are one component. `multiple` changes the value shape
|
|
17
|
+
* (`string` vs `string[]`), renders the chosen values as removable chips, and
|
|
18
|
+
* keeps the list open after a pick; single commits and closes. Everything else
|
|
19
|
+
* — filtering, the active option, keyboard behaviour, validity — is shared, so
|
|
20
|
+
* the two cannot drift apart.
|
|
21
|
+
*
|
|
22
|
+
* The consumer owns the options and, if it fetches them, their ordering: this
|
|
23
|
+
* component never sorts, debounces or requests anything. It filters what it is
|
|
24
|
+
* given, and reports what the user asked for.
|
|
25
|
+
*/
|
|
26
|
+
export declare class ChCombobox {
|
|
27
|
+
private readonly inputId;
|
|
28
|
+
private readonly listId;
|
|
29
|
+
private readonly hintId;
|
|
30
|
+
private readonly errorId;
|
|
31
|
+
private initialValue;
|
|
32
|
+
internals: ElementInternals;
|
|
33
|
+
formDisabled: boolean;
|
|
34
|
+
private host;
|
|
35
|
+
/** Visible label, associated with the input via `for`/`id`. */
|
|
36
|
+
label?: string;
|
|
37
|
+
/** The options to filter and choose from. */
|
|
38
|
+
options: ChComboboxOption[];
|
|
39
|
+
/** The committed value. An array when `multiple`. */
|
|
40
|
+
value?: string | string[];
|
|
41
|
+
/** Whether the user can pick more than one option. */
|
|
42
|
+
multiple: boolean;
|
|
43
|
+
/** Placeholder shown while the field is empty. */
|
|
44
|
+
placeholder?: string;
|
|
45
|
+
/** Name submitted with the form. Repeated once per value when `multiple`. */
|
|
46
|
+
name?: string;
|
|
47
|
+
/** Whether the field is disabled. */
|
|
48
|
+
disabled: boolean;
|
|
49
|
+
/** Whether at least one value is required. */
|
|
50
|
+
required: boolean;
|
|
51
|
+
/** Helper text, replaced by `errorMessage` when invalid. */
|
|
52
|
+
hint?: string;
|
|
53
|
+
/** Custom error message; wins over the built-in messages. */
|
|
54
|
+
errorMessage?: string;
|
|
55
|
+
/** Whether the field is marked invalid by the consumer. */
|
|
56
|
+
invalid: boolean;
|
|
57
|
+
/** Text the user has typed to filter with. */
|
|
58
|
+
private query;
|
|
59
|
+
/** Whether the list is rendered. */
|
|
60
|
+
private expanded;
|
|
61
|
+
/** Index into `visibleOptions` of the option under the keyboard cursor. */
|
|
62
|
+
private activeIndex;
|
|
63
|
+
/** Emitted whenever the committed value changes. */
|
|
64
|
+
chChange: EventEmitter<string | string[]>;
|
|
65
|
+
/** Emitted as the user types, with the raw query, so a consumer can filter remotely. */
|
|
66
|
+
chFilter: EventEmitter<string>;
|
|
67
|
+
/** The committed values as an array, whatever the mode. */
|
|
68
|
+
private get selected();
|
|
69
|
+
/** Options that match the current query. */
|
|
70
|
+
private get visibleOptions();
|
|
71
|
+
/** Options that are still choosable: already-picked ones drop out in multiple mode. */
|
|
72
|
+
private get choosable();
|
|
73
|
+
private labelFor;
|
|
74
|
+
componentDidLoad(): void;
|
|
75
|
+
disconnectedCallback(): void;
|
|
76
|
+
private markTouched;
|
|
77
|
+
/**
|
|
78
|
+
* Closing on blur is deferred: clicking an option also blurs the input, and
|
|
79
|
+
* the click must be allowed to land first.
|
|
80
|
+
*/
|
|
81
|
+
private handleFocusOut;
|
|
82
|
+
protected syncForm(): void;
|
|
83
|
+
formResetCallback(): void;
|
|
84
|
+
formDisabledCallback(isDisabled: boolean): void;
|
|
85
|
+
private commit;
|
|
86
|
+
private remove;
|
|
87
|
+
private open;
|
|
88
|
+
private moveActive;
|
|
89
|
+
private handleInput;
|
|
90
|
+
private handleKeyDown;
|
|
91
|
+
private handleFocus;
|
|
92
|
+
private handleBlur;
|
|
93
|
+
private get isInvalid();
|
|
94
|
+
private get describedBy();
|
|
95
|
+
/** The option id for `aria-activedescendant`. */
|
|
96
|
+
private optionId;
|
|
97
|
+
render(): any;
|
|
98
|
+
}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { type EventEmitter } from '../../stencil-public-runtime';
|
|
2
|
+
export type ChConfirmDialogTone = 'default' | 'danger';
|
|
3
|
+
/**
|
|
4
|
+
* A confirmation dialog over `ch-modal`.
|
|
5
|
+
*
|
|
6
|
+
* Declarative only: the consumer opens it with `open` and handles the outcome.
|
|
7
|
+
* The imperative `confirm()` helper is a separate concern and a separate issue,
|
|
8
|
+
* because a promise-returning helper has to own mounting, focus and unhandled
|
|
9
|
+
* rejection, none of which a component should decide for its consumer.
|
|
10
|
+
*
|
|
11
|
+
* The guarantees this adds over a plain `ch-modal` are the ones that make a
|
|
12
|
+
* confirmation safe:
|
|
13
|
+
*
|
|
14
|
+
* - exactly one outcome per interaction — a double click on Confirm emits once;
|
|
15
|
+
* - every dismissal path (Cancel, Escape, backdrop, confirm) is reported, so a
|
|
16
|
+
* consumer awaiting an answer cannot hang;
|
|
17
|
+
* - focus lands on Cancel for a destructive action, so the absent-minded Enter
|
|
18
|
+
* does not destroy anything;
|
|
19
|
+
* - `pending` is not a cancellation: a slow request keeps the dialog open.
|
|
20
|
+
*/
|
|
21
|
+
export declare class ChConfirmDialog {
|
|
22
|
+
el: HTMLElement;
|
|
23
|
+
/** Whether the dialog is open. Kept in sync when it is dismissed. */
|
|
24
|
+
open: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* The question, set as the dialog's accessible name. Required: a dialog
|
|
27
|
+
* without a name is announced as an unlabelled group.
|
|
28
|
+
*/
|
|
29
|
+
heading: string;
|
|
30
|
+
/** Supporting text, rendered under the heading. */
|
|
31
|
+
message?: string;
|
|
32
|
+
/** Label of the confirming action. */
|
|
33
|
+
confirmLabel: string;
|
|
34
|
+
/** Label of the dismissing action. */
|
|
35
|
+
cancelLabel: string;
|
|
36
|
+
/**
|
|
37
|
+
* `danger` styles the confirm action as destructive and moves the initial
|
|
38
|
+
* focus to Cancel, so the safe choice is the default one.
|
|
39
|
+
*/
|
|
40
|
+
tone: ChConfirmDialogTone;
|
|
41
|
+
/** Whether the confirm action is in flight; both buttons are then disabled. */
|
|
42
|
+
pending: boolean;
|
|
43
|
+
/**
|
|
44
|
+
* Whether Escape and the backdrop dismiss the dialog. When false, the only
|
|
45
|
+
* way out is one of the two buttons — use it only for a decision that must
|
|
46
|
+
* be answered rather than abandoned.
|
|
47
|
+
*/
|
|
48
|
+
dismissible: boolean;
|
|
49
|
+
/** Emitted once when the user confirms. */
|
|
50
|
+
chConfirm: EventEmitter<void>;
|
|
51
|
+
/** Emitted once when the dialog is dismissed without confirming. */
|
|
52
|
+
chCancel: EventEmitter<void>;
|
|
53
|
+
/** `true` once an outcome has been emitted for the current opening. */
|
|
54
|
+
private settled;
|
|
55
|
+
private cancelButton?;
|
|
56
|
+
private confirmButton?;
|
|
57
|
+
componentDidLoad(): void;
|
|
58
|
+
handleOpenChange(open: boolean): void;
|
|
59
|
+
private onOpening;
|
|
60
|
+
private settle;
|
|
61
|
+
private handleConfirm;
|
|
62
|
+
private handleCancel;
|
|
63
|
+
/**
|
|
64
|
+
* `ch-modal` reports every close that was not requested by the consumer —
|
|
65
|
+
* Escape and the backdrop. A close while `pending` is the consumer's own
|
|
66
|
+
* doing and is not a cancellation.
|
|
67
|
+
*/
|
|
68
|
+
private handleModalClose;
|
|
69
|
+
/**
|
|
70
|
+
* Escape is a platform close request on the inner `<dialog>`, so a
|
|
71
|
+
* non-dismissible dialog cancels it before it takes effect. The backdrop is
|
|
72
|
+
* handled by `ch-modal` and is suppressed the same way.
|
|
73
|
+
*/
|
|
74
|
+
private handleKeyDown;
|
|
75
|
+
/**
|
|
76
|
+
* Focus the safe action. Exposed so a consumer can return focus deliberately
|
|
77
|
+
* after a request settles.
|
|
78
|
+
*/
|
|
79
|
+
focusCancel(): Promise<void>;
|
|
80
|
+
render(): any;
|
|
81
|
+
}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { type EventEmitter } from '../../stencil-public-runtime';
|
|
2
|
+
/**
|
|
3
|
+
* One-time-code input.
|
|
4
|
+
*
|
|
5
|
+
* One native `<input>` holds the whole code, not a box per digit. Per-digit
|
|
6
|
+
* inputs break paste, break SMS autofill (the platform fills a single field
|
|
7
|
+
* carrying `autocomplete="one-time-code"`), and give a keyboard user several
|
|
8
|
+
* tab stops for what is one value. The segmented look is drawn by the shadow
|
|
9
|
+
* CSS over the single field.
|
|
10
|
+
*
|
|
11
|
+
* It never submits on completion: a code entered is not a decision to send it,
|
|
12
|
+
* so the consumer listens to `chComplete` and submits when it decides to.
|
|
13
|
+
*/
|
|
14
|
+
export declare class ChOtpInput {
|
|
15
|
+
private readonly inputId;
|
|
16
|
+
private readonly hintId;
|
|
17
|
+
private readonly errorId;
|
|
18
|
+
private initialValue;
|
|
19
|
+
internals: ElementInternals;
|
|
20
|
+
formDisabled: boolean;
|
|
21
|
+
private host;
|
|
22
|
+
/** Visible label, associated with the input via `for`/`id`. */
|
|
23
|
+
label?: string;
|
|
24
|
+
/** The code without separators. Filtered to alphanumerics on every change. */
|
|
25
|
+
value: string;
|
|
26
|
+
/** How many characters make a complete code. */
|
|
27
|
+
length: number;
|
|
28
|
+
/**
|
|
29
|
+
* `numeric` restricts input to digits, which is the shape of nearly every
|
|
30
|
+
* one-time code and lets a phone open the number pad.
|
|
31
|
+
*/
|
|
32
|
+
inputMode: 'numeric' | 'text';
|
|
33
|
+
/** Whether the codes are masked, as for a short-lived secret. */
|
|
34
|
+
secret: boolean;
|
|
35
|
+
/** Placeholder shown when empty. */
|
|
36
|
+
placeholder?: string;
|
|
37
|
+
/** Name submitted with the form. */
|
|
38
|
+
name?: string;
|
|
39
|
+
/** Whether the field is disabled. */
|
|
40
|
+
disabled: boolean;
|
|
41
|
+
/** Whether a complete code is required for the field to be valid. */
|
|
42
|
+
required: boolean;
|
|
43
|
+
/** Helper text, replaced by `errorMessage` when invalid. */
|
|
44
|
+
hint?: string;
|
|
45
|
+
/** Custom error message; wins over the built-in incomplete-code message. */
|
|
46
|
+
errorMessage?: string;
|
|
47
|
+
/** Whether the field is marked invalid by the consumer. */
|
|
48
|
+
invalid: boolean;
|
|
49
|
+
/** Emitted on every change with the current (possibly partial) code. */
|
|
50
|
+
chInput: EventEmitter<string>;
|
|
51
|
+
/**
|
|
52
|
+
* Emitted once, when the code becomes complete and valid after not being so.
|
|
53
|
+
* Never fires again while it stays complete, so holding a code cannot
|
|
54
|
+
* resubmit it.
|
|
55
|
+
*/
|
|
56
|
+
chComplete: EventEmitter<string>;
|
|
57
|
+
private wasComplete;
|
|
58
|
+
componentDidLoad(): void;
|
|
59
|
+
/**
|
|
60
|
+
* Leaving the field is what turns an unfinished code into an error. The
|
|
61
|
+
* validity has to be recomputed here: `syncForm` reads the attribute, and
|
|
62
|
+
* setting it alone would not update `ElementInternals`.
|
|
63
|
+
*/
|
|
64
|
+
private markTouched;
|
|
65
|
+
/** Whether the value is a complete, correctly shaped code. */
|
|
66
|
+
private get isComplete();
|
|
67
|
+
/** The message for an incomplete code, which is what makes it invalid. */
|
|
68
|
+
private get incompleteMessage();
|
|
69
|
+
protected syncForm(): void;
|
|
70
|
+
formResetCallback(): void;
|
|
71
|
+
formDisabledCallback(isDisabled: boolean): void;
|
|
72
|
+
/** Strips everything the input mode does not allow, then caps the length. */
|
|
73
|
+
private sanitize;
|
|
74
|
+
private handleInput;
|
|
75
|
+
private handleBlur;
|
|
76
|
+
private get isInvalid();
|
|
77
|
+
private get describedBy();
|
|
78
|
+
render(): any;
|
|
79
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { type EventEmitter } from '../../stencil-public-runtime';
|
|
2
|
+
export type ChPaginationSize = 'sm' | 'md';
|
|
3
|
+
/**
|
|
4
|
+
* Controlled pagination for a known total.
|
|
5
|
+
*
|
|
6
|
+
* It holds no page state: `page` and `pageSize` come from the consumer and
|
|
7
|
+
* every action emits `chPageChange` with the page it wants. That matches
|
|
8
|
+
* `ch-table`, so a consumer wiring the two together has one model to reason
|
|
9
|
+
* about — the table shows the rows for `page`, the pagination asks for the
|
|
10
|
+
* next one, and nothing moves until the consumer's data does.
|
|
11
|
+
*
|
|
12
|
+
* No numbered page list. A list of numbers is wrong more often than it is
|
|
13
|
+
* right (it depends on how many pages fit, which depends on the font, the
|
|
14
|
+
* locale and the container), and it is the part consumers most often need to
|
|
15
|
+
* replace with their own. Prev/next plus a position summary covers the
|
|
16
|
+
* default case; the summary is what tells a screen-reader user where they are.
|
|
17
|
+
*/
|
|
18
|
+
export declare class ChPagination {
|
|
19
|
+
private readonly labelId;
|
|
20
|
+
/** The current page, 1-based. Controlled by the consumer. */
|
|
21
|
+
page: number;
|
|
22
|
+
/** How many rows a page holds. Controlled by the consumer. */
|
|
23
|
+
pageSize: number;
|
|
24
|
+
/** How many rows exist in total. Zero renders a disabled, empty pager. */
|
|
25
|
+
total: number;
|
|
26
|
+
/** Accessible name for the navigation landmark. */
|
|
27
|
+
label: string;
|
|
28
|
+
/** Size of the controls. */
|
|
29
|
+
size: ChPaginationSize;
|
|
30
|
+
/** Whether the whole control is disabled. */
|
|
31
|
+
disabled: boolean;
|
|
32
|
+
/** Emitted when the user asks for another page. The consumer applies it. */
|
|
33
|
+
chPageChange: EventEmitter<{
|
|
34
|
+
page: number;
|
|
35
|
+
pageSize: number;
|
|
36
|
+
}>;
|
|
37
|
+
private get pageCount();
|
|
38
|
+
/** How many rows this page shows, which is short on the last page. */
|
|
39
|
+
private get rowsOnPage();
|
|
40
|
+
private get firstRow();
|
|
41
|
+
private get lastRow();
|
|
42
|
+
private go;
|
|
43
|
+
render(): any;
|
|
44
|
+
}
|