@devschile/chucao 2.6.0 → 2.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chucao/chucao.esm.js +1 -1
- package/dist/chucao/{p-ffaf1a31.entry.js → p-01b6c7bf.entry.js} +2 -2
- package/dist/chucao/{p-2c1bc8bd.entry.js → p-0c7f6f8d.entry.js} +2 -2
- package/dist/chucao/p-10f6801e.entry.js +2 -0
- package/dist/chucao/p-10f6801e.entry.js.map +1 -0
- package/dist/chucao/{p-0409c063.entry.js → p-15d27bb7.entry.js} +2 -2
- package/dist/chucao/{p-e6f959f4.entry.js → p-1b70e3f1.entry.js} +2 -2
- package/dist/chucao/{p-66ae9e2c.entry.js → p-1e4cd3aa.entry.js} +2 -2
- package/dist/chucao/{p-c1b35f1b.entry.js → p-2e37c61b.entry.js} +2 -2
- package/dist/chucao/{p-f7305552.entry.js → p-42028c97.entry.js} +2 -2
- package/dist/chucao/{p-090d26f1.entry.js → p-472ec451.entry.js} +2 -2
- package/dist/chucao/{p-81b6622f.entry.js → p-5240f5ac.entry.js} +2 -2
- package/dist/chucao/p-60e1c1df.entry.js +2 -0
- package/dist/chucao/{p-b56f4a29.entry.js.map → p-60e1c1df.entry.js.map} +1 -1
- package/dist/chucao/{p-b9b47942.entry.js → p-7cdc71cc.entry.js} +2 -2
- package/dist/chucao/{p-50cbea7f.entry.js → p-8ae680a4.entry.js} +2 -2
- package/dist/chucao/{p-20ea1b18.entry.js → p-90284ebe.entry.js} +2 -2
- package/dist/chucao/p-9db118d9.entry.js +2 -0
- package/dist/chucao/p-9ebcc7be.entry.js +2 -0
- package/dist/chucao/p-9ebcc7be.entry.js.map +1 -0
- package/dist/chucao/{p-207648f9.entry.js → p-a7c674b7.entry.js} +2 -2
- package/dist/chucao/{p-79f20bfd.entry.js → p-c4b2bd1f.entry.js} +2 -2
- package/dist/chucao/{p-7d4336bd.entry.js → p-c90da3c0.entry.js} +2 -2
- package/dist/chucao/p-d8b71751.entry.js +2 -0
- package/dist/chucao/p-d8b71751.entry.js.map +1 -0
- package/dist/chucao/{p-925af6b8.entry.js → p-deb2571b.entry.js} +2 -2
- package/dist/chucao/{p-9794a3fa.entry.js → p-e77d35c3.entry.js} +2 -2
- package/dist/chucao/{p-21ca2235.entry.js → p-f6ab0a11.entry.js} +2 -2
- package/dist/chucao/p-f917d34f.entry.js +2 -0
- package/dist/chucao/{p-e2f725bd.entry.js.map → p-f917d34f.entry.js.map} +1 -1
- package/dist/chucao/{p-f0aea6ed.entry.js → p-ffecdf25.entry.js} +2 -2
- package/dist/cjs/ch-accordion.cjs.entry.js +1 -1
- package/dist/cjs/ch-alert_8.cjs.entry.js +7 -7
- package/dist/cjs/ch-checkbox.cjs.entry.js +1 -1
- package/dist/cjs/ch-cluster.cjs.entry.js +2 -2
- package/dist/cjs/ch-description-list.cjs.entry.js +1 -1
- package/dist/cjs/ch-divider.cjs.entry.js +1 -1
- package/dist/cjs/ch-drawer.cjs.entry.js +1 -1
- package/dist/cjs/ch-emoji.cjs.entry.js +1 -1
- package/dist/cjs/ch-empty-state.cjs.entry.js +1 -1
- package/dist/cjs/ch-grid.cjs.entry.js +1 -1
- package/dist/cjs/ch-icon-button.cjs.entry.js +1 -1
- package/dist/cjs/ch-icon.cjs.entry.js +1 -1
- package/dist/cjs/ch-modal.cjs.entry.js +1 -1
- package/dist/cjs/ch-number-input.cjs.entry.js +237 -0
- package/dist/cjs/ch-number-input.cjs.entry.js.map +1 -0
- package/dist/cjs/ch-page-header.cjs.entry.js +1 -1
- package/dist/cjs/ch-radio.cjs.entry.js +1 -1
- package/dist/cjs/ch-segmented-control.cjs.entry.js +1 -1
- package/dist/cjs/ch-skeleton.cjs.entry.js +1 -1
- package/dist/cjs/ch-stack.cjs.entry.js +1 -1
- package/dist/cjs/ch-stat.cjs.entry.js +2 -2
- package/dist/cjs/ch-table.cjs.entry.js +145 -0
- package/dist/cjs/ch-table.cjs.entry.js.map +1 -0
- package/dist/cjs/ch-tabs.cjs.entry.js +1 -1
- package/dist/cjs/ch-textarea.cjs.entry.js +1 -1
- package/dist/cjs/ch-timeline.cjs.entry.js +1 -1
- package/dist/cjs/ch-tooltip.cjs.entry.js +24 -7
- package/dist/cjs/ch-tooltip.cjs.entry.js.map +1 -1
- package/dist/cjs/chucao.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +2 -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-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.css +74 -0
- package/dist/collection/components/ch-number-input/ch-number-input.js +555 -0
- package/dist/collection/components/ch-number-input/ch-number-input.js.map +1 -0
- package/dist/collection/components/ch-page-header/ch-page-header.js +1 -1
- 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.css +107 -0
- package/dist/collection/components/ch-table/ch-table.js +347 -0
- package/dist/collection/components/ch-table/ch-table.js.map +1 -0
- 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.css +11 -0
- package/dist/collection/components/ch-tooltip/ch-tooltip.js +23 -6
- package/dist/collection/components/ch-tooltip/ch-tooltip.js.map +1 -1
- package/dist/collection/utils/overlay.js.map +1 -1
- 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-card.js.map +1 -1
- package/dist/components/ch-checkbox.js +1 -1
- package/dist/components/ch-cluster.js +1 -1
- 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-number-input.d.ts +11 -0
- package/dist/components/ch-number-input.js +2 -0
- package/dist/components/ch-number-input.js.map +1 -0
- package/dist/components/ch-page-header.js +1 -1
- 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.d.ts +11 -0
- package/dist/components/ch-table.js +2 -0
- package/dist/components/ch-table.js.map +1 -0
- 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/ch-tooltip.js.map +1 -1
- package/dist/components/{p-Cw0b4OGc.js → p-DiUN1WGc.js} +2 -2
- package/dist/esm/ch-accordion.entry.js +1 -1
- package/dist/esm/ch-alert_8.entry.js +7 -7
- package/dist/esm/ch-checkbox.entry.js +1 -1
- package/dist/esm/ch-cluster.entry.js +2 -2
- package/dist/esm/ch-description-list.entry.js +1 -1
- package/dist/esm/ch-divider.entry.js +1 -1
- package/dist/esm/ch-drawer.entry.js +1 -1
- package/dist/esm/ch-emoji.entry.js +1 -1
- package/dist/esm/ch-empty-state.entry.js +1 -1
- package/dist/esm/ch-grid.entry.js +1 -1
- package/dist/esm/ch-icon-button.entry.js +1 -1
- package/dist/esm/ch-icon.entry.js +1 -1
- package/dist/esm/ch-modal.entry.js +1 -1
- package/dist/esm/ch-number-input.entry.js +235 -0
- package/dist/esm/ch-number-input.entry.js.map +1 -0
- package/dist/esm/ch-page-header.entry.js +1 -1
- package/dist/esm/ch-radio.entry.js +1 -1
- package/dist/esm/ch-segmented-control.entry.js +1 -1
- package/dist/esm/ch-skeleton.entry.js +1 -1
- package/dist/esm/ch-stack.entry.js +1 -1
- package/dist/esm/ch-stat.entry.js +2 -2
- package/dist/esm/ch-table.entry.js +143 -0
- package/dist/esm/ch-table.entry.js.map +1 -0
- package/dist/esm/ch-tabs.entry.js +1 -1
- package/dist/esm/ch-textarea.entry.js +1 -1
- package/dist/esm/ch-timeline.entry.js +1 -1
- package/dist/esm/ch-tooltip.entry.js +24 -7
- package/dist/esm/ch-tooltip.entry.js.map +1 -1
- package/dist/esm/chucao.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/types/components/ch-number-input/ch-number-input.d.ts +105 -0
- package/dist/types/components/ch-table/ch-table.d.ts +106 -0
- package/dist/types/components/ch-tooltip/ch-tooltip.d.ts +7 -0
- package/dist/types/components.d.ts +459 -0
- package/dist/types/utils/overlay.d.ts +1 -1
- package/dist-react/components.d.ts +15 -1
- package/dist-react/components.js +21 -0
- package/dist-react/components.ts +31 -1
- package/dist-vue/index.d.ts +2 -0
- package/dist-vue/index.js +33 -0
- package/dist-vue/index.ts +37 -0
- package/hydrate/index.js +519 -37
- package/hydrate/index.mjs +519 -37
- package/package.json +9 -1
- package/dist/chucao/p-370d9629.entry.js +0 -2
- package/dist/chucao/p-370d9629.entry.js.map +0 -1
- package/dist/chucao/p-95061461.entry.js +0 -2
- package/dist/chucao/p-b56f4a29.entry.js +0 -2
- package/dist/chucao/p-e2f725bd.entry.js +0 -2
- /package/dist/chucao/{p-ffaf1a31.entry.js.map → p-01b6c7bf.entry.js.map} +0 -0
- /package/dist/chucao/{p-2c1bc8bd.entry.js.map → p-0c7f6f8d.entry.js.map} +0 -0
- /package/dist/chucao/{p-0409c063.entry.js.map → p-15d27bb7.entry.js.map} +0 -0
- /package/dist/chucao/{p-e6f959f4.entry.js.map → p-1b70e3f1.entry.js.map} +0 -0
- /package/dist/chucao/{p-66ae9e2c.entry.js.map → p-1e4cd3aa.entry.js.map} +0 -0
- /package/dist/chucao/{p-c1b35f1b.entry.js.map → p-2e37c61b.entry.js.map} +0 -0
- /package/dist/chucao/{p-f7305552.entry.js.map → p-42028c97.entry.js.map} +0 -0
- /package/dist/chucao/{p-090d26f1.entry.js.map → p-472ec451.entry.js.map} +0 -0
- /package/dist/chucao/{p-81b6622f.entry.js.map → p-5240f5ac.entry.js.map} +0 -0
- /package/dist/chucao/{p-b9b47942.entry.js.map → p-7cdc71cc.entry.js.map} +0 -0
- /package/dist/chucao/{p-50cbea7f.entry.js.map → p-8ae680a4.entry.js.map} +0 -0
- /package/dist/chucao/{p-20ea1b18.entry.js.map → p-90284ebe.entry.js.map} +0 -0
- /package/dist/chucao/{p-95061461.entry.js.map → p-9db118d9.entry.js.map} +0 -0
- /package/dist/chucao/{p-207648f9.entry.js.map → p-a7c674b7.entry.js.map} +0 -0
- /package/dist/chucao/{p-79f20bfd.entry.js.map → p-c4b2bd1f.entry.js.map} +0 -0
- /package/dist/chucao/{p-7d4336bd.entry.js.map → p-c90da3c0.entry.js.map} +0 -0
- /package/dist/chucao/{p-925af6b8.entry.js.map → p-deb2571b.entry.js.map} +0 -0
- /package/dist/chucao/{p-9794a3fa.entry.js.map → p-e77d35c3.entry.js.map} +0 -0
- /package/dist/chucao/{p-21ca2235.entry.js.map → p-f6ab0a11.entry.js.map} +0 -0
- /package/dist/chucao/{p-f0aea6ed.entry.js.map → p-ffecdf25.entry.js.map} +0 -0
- /package/dist/components/{p-Cw0b4OGc.js.map → p-DiUN1WGc.js.map} +0 -0
package/hydrate/index.mjs
CHANGED
|
@@ -5498,7 +5498,7 @@ class ChAccordion {
|
|
|
5498
5498
|
this.chChange.emit(this.value);
|
|
5499
5499
|
};
|
|
5500
5500
|
render() {
|
|
5501
|
-
return (hAsync(Host, { key: '
|
|
5501
|
+
return (hAsync(Host, { key: 'f147314134464f7455ac179fad62c1b9318efc92' }, this.items.map(item => {
|
|
5502
5502
|
const open = this.value === item.value;
|
|
5503
5503
|
return (hAsync("div", { key: item.value, class: { 'item': true, 'item--open': open } }, hAsync("h3", { class: "item-head" }, hAsync("button", { type: "button", class: "item-toggle", id: this.headerId(item.value), "data-value": item.value, "aria-expanded": open ? 'true' : 'false', "aria-controls": this.panelId(item.value), disabled: item.disabled, onClick: () => this.toggle(item.value) }, item.title)), hAsync("div", { class: "item-panel", id: this.panelId(item.value), role: "region", "aria-labelledby": this.headerId(item.value), hidden: !open }, hAsync("slot", { name: `panel-${item.value}` }))));
|
|
5504
5504
|
})));
|
|
@@ -5661,7 +5661,7 @@ class ChAlert {
|
|
|
5661
5661
|
render() {
|
|
5662
5662
|
const role = this.variant === 'warning' ? 'alert' : 'status';
|
|
5663
5663
|
const shapes = this.statusCue ? chIcons[VARIANT_ICON[this.variant]] : undefined;
|
|
5664
|
-
return (hAsync(Host, { key: '
|
|
5664
|
+
return (hAsync(Host, { key: 'a223f49acce9b1336d1791c547be15e76e6fd740' }, hAsync("div", { key: role, class: { alert: true, [`alert--${this.variant}`]: true }, role: role }, shapes && (hAsync("svg", { key: 'd14bf776a7c2c570203d4785c51a7e2e2110a837', class: "alert-icon", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round", "aria-hidden": "true", focusable: "false" }, shapes.map(shape => hAsync(shape.tag, shape.attrs)))), hAsync("div", { key: 'be4eb0acb06ba3b95eae29a08911f4e3a76a5998', class: "alert-content" }, hAsync("slot", { key: '1ebb312baa833210658003113d6aee562a05cb50' })), this.dismissLabel && (hAsync("button", { key: '388986c78e41cf66e74071a27c0ffa9a146fcacb', class: "alert-dismiss", type: "button", "aria-label": this.dismissLabel, onClick: this.handleDismiss }, hAsync("span", { key: '24c24edbee8549bb64a6e9dcc381ebdae8d5d72d', "aria-hidden": "true" }, "\u00D7"))))));
|
|
5665
5665
|
}
|
|
5666
5666
|
static get style() { return chAlertCss(); }
|
|
5667
5667
|
static get cmpMeta() { return {
|
|
@@ -5703,7 +5703,7 @@ class ChBadge {
|
|
|
5703
5703
|
*/
|
|
5704
5704
|
statusCue = true;
|
|
5705
5705
|
render() {
|
|
5706
|
-
return (hAsync(Host, { key: '
|
|
5706
|
+
return (hAsync(Host, { key: '8d92a45ab1f2932deb6a316d20e3aecd59d35498' }, hAsync("span", { key: '16e499ffe26d47e2da057fd49fa214fba0dc9277', class: { badge: true, [`badge--${this.variant}`]: true } }, this.statusCue && hAsync("span", { key: '040dbe5203403812ed98f84b03029ae38071f533', class: "badge-dot", "aria-hidden": "true" }), hAsync("slot", { key: '89c1c35f937bc141bad71a9bee0f76d8b2d28666' }))));
|
|
5707
5707
|
}
|
|
5708
5708
|
static get style() { return chBadgeCss(); }
|
|
5709
5709
|
static get cmpMeta() { return {
|
|
@@ -5834,7 +5834,7 @@ class ChCard {
|
|
|
5834
5834
|
registerInstance(this, hostRef);
|
|
5835
5835
|
}
|
|
5836
5836
|
render() {
|
|
5837
|
-
return (hAsync(Host, { key: '
|
|
5837
|
+
return (hAsync(Host, { key: '2857d45b454709a8285fd52dbaa0943d571908b1' }, hAsync("div", { key: 'a252222f7d25a697b4d6e8cd240564668a908652', class: "card" }, hAsync("slot", { key: '4cadc2ad7fdbb2141d2a77bc19d5e6344e574b7a' }))));
|
|
5838
5838
|
}
|
|
5839
5839
|
static get style() { return chCardCss(); }
|
|
5840
5840
|
static get cmpMeta() { return {
|
|
@@ -5975,7 +5975,7 @@ class ChCheckbox {
|
|
|
5975
5975
|
return undefined;
|
|
5976
5976
|
}
|
|
5977
5977
|
render() {
|
|
5978
|
-
return (hAsync(Host, { key: '
|
|
5978
|
+
return (hAsync(Host, { key: 'b3ea4a0cfad08ea8c00ac1fbdb54f130a76943b4' }, hAsync("label", { key: '7e1736c41138ab6b73ee30590f290768feb786a1', class: { 'control': true, 'control--disabled': this.disabled || this.formDisabled }, htmlFor: this.checkboxId }, hAsync("input", { key: '1d70b3936da371de75a931e3033f08ed05b62101', id: this.checkboxId, class: { 'input': true, 'input--invalid': this.invalid }, type: "checkbox", name: this.name, value: this.value, checked: this.checked, disabled: this.disabled || this.formDisabled, required: this.required, "aria-invalid": this.invalid ? 'true' : undefined, "aria-describedby": this.describedBy, onChange: this.handleChange }), this.label && hAsync("span", { key: '581b62c2a907bc9634d8c137f2539e47c90f79e1', class: "label-text" }, this.label)), this.hint && !(this.invalid && this.errorMessage) && (hAsync("p", { key: '51ea863dd984d90fdf70a6f6d8dabdffa92d7340', class: "hint", id: this.hintId }, this.hint)), this.invalid && this.errorMessage && (hAsync("p", { key: '561ef3469af4bbf8f4eef568a0372f78618c047b', class: "error", id: this.errorId, role: "alert" }, this.errorMessage))));
|
|
5979
5979
|
}
|
|
5980
5980
|
static get formAssociated() { return true; }
|
|
5981
5981
|
static get watchers() { return {
|
|
@@ -6046,13 +6046,13 @@ class ChCluster {
|
|
|
6046
6046
|
return GAPS$2.has(this.gap) ? this.gap : 'md';
|
|
6047
6047
|
}
|
|
6048
6048
|
render() {
|
|
6049
|
-
return (hAsync(Host, { key: '
|
|
6049
|
+
return (hAsync(Host, { key: '63f10662f55078a9aec2680653c040c8411cd80f', class: {
|
|
6050
6050
|
'cluster': true,
|
|
6051
6051
|
[`cluster--gap-${this.gapStep}`]: true,
|
|
6052
6052
|
[`cluster--align-${this.align}`]: true,
|
|
6053
6053
|
[`cluster--justify-${this.justify}`]: true,
|
|
6054
6054
|
'cluster--nowrap': !this.wrap,
|
|
6055
|
-
} }, hAsync("slot", { key: '
|
|
6055
|
+
} }, hAsync("slot", { key: '60f9896089d707fe0ef1980dcb9115bcf3308a2f' })));
|
|
6056
6056
|
}
|
|
6057
6057
|
static get style() { return chClusterCss(); }
|
|
6058
6058
|
static get cmpMeta() { return {
|
|
@@ -6106,7 +6106,7 @@ class ChDescriptionList {
|
|
|
6106
6106
|
return COLUMNS.has(this.columns) ? this.columns : '1';
|
|
6107
6107
|
}
|
|
6108
6108
|
render() {
|
|
6109
|
-
return (hAsync(Host, { key: '
|
|
6109
|
+
return (hAsync(Host, { key: '2f349aa14dc442e4e531dacc2d9f6b02fc2b141a' }, hAsync("dl", { key: 'de4bf1b60c31f0319bc5e169304134c8e0046912', class: `list list--columns-${this.columnCount}` }, hAsync("slot", { key: '4ef568fa3e64048ba6e586ae9e8d10c21ad326aa' }))));
|
|
6110
6110
|
}
|
|
6111
6111
|
static get style() { return chDescriptionListCss(); }
|
|
6112
6112
|
static get cmpMeta() { return {
|
|
@@ -6132,7 +6132,7 @@ class ChDivider {
|
|
|
6132
6132
|
*/
|
|
6133
6133
|
orientation = 'horizontal';
|
|
6134
6134
|
render() {
|
|
6135
|
-
return (hAsync(Host, { key: '
|
|
6135
|
+
return (hAsync(Host, { key: '0ae19c8f91c810836781f7dac098b49b99c01389', class: { 'divider--vertical': this.orientation === 'vertical' } }, hAsync("hr", { key: 'f5b782f7d67da28ec659fceef32ebf0f4d8ca521', class: { divider: true, [`divider--${this.orientation}`]: true }, "aria-orientation": this.orientation })));
|
|
6136
6136
|
}
|
|
6137
6137
|
static get style() { return chDividerCss(); }
|
|
6138
6138
|
static get cmpMeta() { return {
|
|
@@ -6337,7 +6337,7 @@ class ChDrawer {
|
|
|
6337
6337
|
this.chClose.emit();
|
|
6338
6338
|
};
|
|
6339
6339
|
render() {
|
|
6340
|
-
return (hAsync(Host, { key: '
|
|
6340
|
+
return (hAsync(Host, { key: '871af03f0944e4272be64c1452cc28a0a39ac0f2' }, hAsync("dialog", { key: '540da9d2bff68d5528e65146b2a049adbc9723c2', class: { drawer: true, [`drawer--${this.side}`]: true }, "aria-label": this.label, ref: el => (this.dialog = el) }, hAsync("div", { key: 'de569a4d239dd5e2bf6b2741b77307eb70ddced1', class: "drawer-head" }, hAsync("slot", { key: 'e28ade42e0835a919aa5447dafbbbfff2de903d7', name: "header" }), this.closeLabel && (hAsync("button", { key: '5cf29d8b791652fce663459f479826564637d6ca', class: "drawer-close", type: "button", "aria-label": this.closeLabel, onClick: this.handleCloseClick }, hAsync("span", { key: '06a24d8b140db10b9d543530ea5dfbd8dd991019', "aria-hidden": "true" }, "\u00D7")))), hAsync("div", { key: 'b593bac5fb45234d501d3ec540f00d804ae5e066', class: "drawer-body" }, hAsync("slot", { key: '854cb053b30234aa31d59fcf27bb7d2820311eb3' })), hAsync("slot", { key: '5c1fb51d3636af1762b26d72f5eaa79c5f779a60', name: "footer" }))));
|
|
6341
6341
|
}
|
|
6342
6342
|
static get watchers() { return {
|
|
6343
6343
|
"open": [{
|
|
@@ -6449,7 +6449,7 @@ class ChEmoji {
|
|
|
6449
6449
|
this.loaded = true;
|
|
6450
6450
|
};
|
|
6451
6451
|
render() {
|
|
6452
|
-
return (hAsync(Host, { key: '
|
|
6452
|
+
return (hAsync(Host, { key: '8444f71f1c84fd8b1940503c5e7bf5ff62bbb9e6' }, hAsync("img", { key: 'ce9c083238c87557f71838ab8de50038fc43a2bd', class: {
|
|
6453
6453
|
'emoji': true,
|
|
6454
6454
|
[`emoji--${this.size}`]: true,
|
|
6455
6455
|
'emoji--hidden': !this.loaded,
|
|
@@ -6505,7 +6505,7 @@ class ChEmptyState {
|
|
|
6505
6505
|
*/
|
|
6506
6506
|
size = 'md';
|
|
6507
6507
|
render() {
|
|
6508
|
-
return (hAsync(Host, { key: '
|
|
6508
|
+
return (hAsync(Host, { key: '8ed0e4e1712c415ccc38050011af09c778a6bb48', class: { 'empty-state': true, [`empty-state--${this.size}`]: true } }, hAsync("div", { key: '63a6dd1e1678c48da81af7e89dc90fd2288fdbfa', class: "empty-state__inner" }, hAsync("div", { key: '3753c28a9268eff9ebb936f3b8f9d4257e63ca41', class: "empty-state__icon", "aria-hidden": "true" }, hAsync("slot", { key: 'abc7a5a2b84d7d4d5be3cd5dcfa3da217e480a4f', name: "icon" })), hAsync("h3", { key: 'c6be0381802f307f35ea81a58fe8571d0799b97a', class: "empty-state__title" }, this.title), this.description && hAsync("p", { key: 'e8c953d3ed017ed9fd06c572a7d601217be317e3', class: "empty-state__description" }, this.description), hAsync("div", { key: 'da062b6ceabc34cced61ed900f09025a83f401f4', class: "empty-state__actions" }, hAsync("slot", { key: '18930706af315dfbb2da7a492c79d3a468be3574' })))));
|
|
6509
6509
|
}
|
|
6510
6510
|
static get style() { return chEmptyStateCss(); }
|
|
6511
6511
|
static get cmpMeta() { return {
|
|
@@ -6576,7 +6576,7 @@ class ChGrid {
|
|
|
6576
6576
|
this.el.style.setProperty('--ch-grid-columns', template);
|
|
6577
6577
|
}
|
|
6578
6578
|
render() {
|
|
6579
|
-
return (hAsync(Host, { key: '
|
|
6579
|
+
return (hAsync(Host, { key: 'de6c2d15da9a5d735327df077c6b58abe9775267', class: { grid: true, [`grid--gap-${this.gapStep}`]: true } }, hAsync("slot", { key: '348289bcf2f46fb07e7392afa00c4619d6614fef' })));
|
|
6580
6580
|
}
|
|
6581
6581
|
static get style() { return chGridCss(); }
|
|
6582
6582
|
static get cmpMeta() { return {
|
|
@@ -6626,7 +6626,7 @@ class ChIcon {
|
|
|
6626
6626
|
render() {
|
|
6627
6627
|
const shapes = this.name ? chIcons[this.name] : undefined;
|
|
6628
6628
|
const decorative = !this.label;
|
|
6629
|
-
return (hAsync(Host, { key: '
|
|
6629
|
+
return (hAsync(Host, { key: 'f45fcd8a7f620f12942e3c1dd1c68a16009905ad' }, hAsync("svg", { key: 'c529a79b5ae690200fa0f66aa7eb482e26409ed5', class: `icon icon--${this.size}`, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round", role: decorative ? undefined : 'img', "aria-label": this.label, "aria-hidden": decorative ? 'true' : undefined, focusable: "false" }, (shapes ?? []).map(shape => hAsync(shape.tag, shape.attrs)))));
|
|
6630
6630
|
}
|
|
6631
6631
|
static get style() { return chIconCss(); }
|
|
6632
6632
|
static get cmpMeta() { return {
|
|
@@ -6689,7 +6689,7 @@ class ChIconButton {
|
|
|
6689
6689
|
};
|
|
6690
6690
|
render() {
|
|
6691
6691
|
const shapes = this.name ? chIcons[this.name] : undefined;
|
|
6692
|
-
return (hAsync(Host, { key: '
|
|
6692
|
+
return (hAsync(Host, { key: 'cdef3ba2a7577cb7119aa943138746905de21dbb' }, hAsync("button", { key: '2b3afb472d1483b84927a47e997d1f44665f5c62', class: `button button--${this.size}`, type: this.type, "aria-label": this.label, "aria-busy": this.loading ? 'true' : undefined, "aria-disabled": this.disabled ? 'true' : undefined, onClick: this.handleClick }, hAsync("svg", { key: 'cdbe7d1bcb75b9a3bc9c6613a5baf3a7421b20d9', class: "icon", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round", "aria-hidden": "true", focusable: "false" }, (shapes ?? []).map(shape => hAsync(shape.tag, shape.attrs))))));
|
|
6693
6693
|
}
|
|
6694
6694
|
static get style() { return chIconButtonCss(); }
|
|
6695
6695
|
static get cmpMeta() { return {
|
|
@@ -6830,7 +6830,7 @@ class ChInput {
|
|
|
6830
6830
|
return undefined;
|
|
6831
6831
|
}
|
|
6832
6832
|
render() {
|
|
6833
|
-
return (hAsync(Host, { key: '
|
|
6833
|
+
return (hAsync(Host, { key: '2b6755db381eeecb5c7c15730f351b5a28b2f89a' }, this.label && (hAsync("label", { key: 'a4c4be2f9ca0dddc175597a12d2e48c3a5030131', class: "label", htmlFor: this.inputId }, this.label)), hAsync("input", { key: 'b080e37229425a745588d6080bab48cf62be8aa8', id: this.label ? this.inputId : undefined, class: { 'input': true, 'input--invalid': this.invalid }, type: this.type, name: this.name, placeholder: this.placeholder, disabled: this.disabled || this.formDisabled, required: this.required, value: this.value, "aria-invalid": this.invalid ? 'true' : undefined, "aria-describedby": this.describedBy, onInput: this.handleInput, onChange: this.handleChange }), this.hint && !(this.invalid && this.errorMessage) && (hAsync("p", { key: '857edf91f7b9657b34763fa06bae3d57e07d861c', class: "hint", id: this.hintId }, this.hint)), this.invalid && this.errorMessage && (hAsync("p", { key: '4516a30cd0d40e3b9e53430416934497c92b1f88', class: "error", id: this.errorId, role: "alert" }, this.errorMessage))));
|
|
6834
6834
|
}
|
|
6835
6835
|
static get formAssociated() { return true; }
|
|
6836
6836
|
static get watchers() { return {
|
|
@@ -7079,7 +7079,7 @@ class ChModal {
|
|
|
7079
7079
|
this.chClose.emit();
|
|
7080
7080
|
};
|
|
7081
7081
|
render() {
|
|
7082
|
-
return (hAsync(Host, { key: '
|
|
7082
|
+
return (hAsync(Host, { key: 'b0fced593159cc6e6952831f9460cce1efd532d4' }, hAsync("dialog", { key: '81180fe5cdd62df43f5aa35a8358b4e86cc8dc40', class: { modal: true, [`modal--${this.size}`]: true }, "aria-label": this.label, ref: el => (this.dialog = el) }, hAsync("div", { key: '4c13adb1131ee26978f607b86e7eb8a9e65ce3a7', class: "modal-head" }, hAsync("slot", { key: '4cb35bd7f0c290ef0c7aec5df60a839f8c383e66', name: "heading" }), this.closeLabel && (hAsync("button", { key: 'f967cf89873760e1156081a77402d12252cbc20d', class: "modal-close", type: "button", "aria-label": this.closeLabel, onClick: this.handleCloseClick }, hAsync("span", { key: '719e26b74726be28f50587dca769c257db3ecdec', "aria-hidden": "true" }, "\u00D7")))), hAsync("div", { key: 'b6a44ef698e580031aa9efa5b5a177c9c1218488', class: "modal-body" }, hAsync("slot", { key: '27c107491182196ee3ea3aa8d6746da0a9be40a6' })))));
|
|
7083
7083
|
}
|
|
7084
7084
|
static get watchers() { return {
|
|
7085
7085
|
"open": [{
|
|
@@ -7102,6 +7102,275 @@ class ChModal {
|
|
|
7102
7102
|
}; }
|
|
7103
7103
|
}
|
|
7104
7104
|
|
|
7105
|
+
const chNumberInputCss = () => `:host{display:inline-block;width:100%}.label{display:block;margin-bottom:var(--spacing-sm);font-size:var(--typography-size-sm);font-weight:var(--typography-weight-semibold);color:var(--text)}.input{box-sizing:border-box;width:100%;padding:var(--spacing-xl) var(--spacing-3xl);border-radius:var(--radius);border:var(--border-width) solid var(--border);background:var(--surface);color:var(--text);backdrop-filter:blur(var(--effect-blur));font-family:inherit;font-size:inherit;transition:border-color var(--duration-normal) var(--easing-default), box-shadow var(--duration-normal) var(--easing-default)}.input::placeholder{color:var(--text-muted)}.input:focus{border-color:var(--accent);box-shadow:var(--shadow-focus-ring);outline:none}.input--invalid{border-color:var(--color-status-warning)}.input--invalid:focus{border-color:var(--color-status-warning);box-shadow:0 0 0 3px var(--color-status-warning-background)}:host([data-touched]:invalid) .input,:host(:user-invalid) .input{border-color:var(--color-status-warning)}:host([data-touched]:invalid) .input:focus,:host(:user-invalid) .input:focus{border-color:var(--color-status-warning);box-shadow:0 0 0 3px var(--color-status-warning-background)}.input:disabled{opacity:var(--opacity-disabled);cursor:not-allowed}.hint,.error{margin:var(--spacing-sm) 0 0;font-size:var(--typography-size-sm);color:var(--text-muted)}.error{color:var(--color-status-warning)}`;
|
|
7106
|
+
|
|
7107
|
+
let numberInputIds = 0;
|
|
7108
|
+
/**
|
|
7109
|
+
* Numeric input that keeps what the user is typing separate from the value the
|
|
7110
|
+
* form submits.
|
|
7111
|
+
*
|
|
7112
|
+
* The display is formatted (`1.234.567` for CLP) while `value` and `FormData`
|
|
7113
|
+
* carry a canonical machine-readable string: digits only for CLP, the plain
|
|
7114
|
+
* decimal for `plain`. Parsing on every keystroke cannot represent the
|
|
7115
|
+
* intermediate states people actually type — `-`, `1.`, `0,` — so those stay as
|
|
7116
|
+
* text and are validated at the end.
|
|
7117
|
+
*
|
|
7118
|
+
* Empty is not zero. A cleared field submits `''` and reports `valueMissing`
|
|
7119
|
+
* when required; it never becomes `0`.
|
|
7120
|
+
*
|
|
7121
|
+
* There is no separate currency component: `format="clp"` is the currency
|
|
7122
|
+
* boundary for Chilean pesos, the only case with a real consumer.
|
|
7123
|
+
*/
|
|
7124
|
+
class ChNumberInput {
|
|
7125
|
+
constructor(hostRef) {
|
|
7126
|
+
registerInstance(this, hostRef);
|
|
7127
|
+
this.chInput = createEvent(this, "chInput");
|
|
7128
|
+
this.chChange = createEvent(this, "chChange");
|
|
7129
|
+
if (hostRef.$hostElement$["s-ei"]) {
|
|
7130
|
+
this.internals = hostRef.$hostElement$["s-ei"];
|
|
7131
|
+
}
|
|
7132
|
+
else {
|
|
7133
|
+
this.internals = hostRef.$hostElement$.attachInternals();
|
|
7134
|
+
hostRef.$hostElement$["s-ei"] = this.internals;
|
|
7135
|
+
}
|
|
7136
|
+
}
|
|
7137
|
+
inputId = `ch-number-input-${++numberInputIds}`;
|
|
7138
|
+
hintId = `${this.inputId}-hint`;
|
|
7139
|
+
errorId = `${this.inputId}-error`;
|
|
7140
|
+
initialValue = '';
|
|
7141
|
+
internals;
|
|
7142
|
+
formDisabled = false;
|
|
7143
|
+
get host() { return getElement(this); }
|
|
7144
|
+
/** Visible label, associated with the input via `for`/`id`. */
|
|
7145
|
+
label;
|
|
7146
|
+
/**
|
|
7147
|
+
* Canonical value: digits only for `clp`, a plain decimal string for `plain`.
|
|
7148
|
+
* Never formatted — formatting lives in the rendered text.
|
|
7149
|
+
*/
|
|
7150
|
+
value = '';
|
|
7151
|
+
/** How the number is displayed while typing. */
|
|
7152
|
+
format = 'plain';
|
|
7153
|
+
/** Placeholder shown when the field is empty. */
|
|
7154
|
+
placeholder;
|
|
7155
|
+
/** Name submitted with the form. */
|
|
7156
|
+
name;
|
|
7157
|
+
/** Whether the field is disabled. */
|
|
7158
|
+
disabled = false;
|
|
7159
|
+
/** Whether a value is required; an empty field is then invalid. */
|
|
7160
|
+
required = false;
|
|
7161
|
+
/** Minimum accepted value. */
|
|
7162
|
+
min;
|
|
7163
|
+
/** Maximum accepted value. */
|
|
7164
|
+
max;
|
|
7165
|
+
/** Stepping increment. `'any'` disables stepping validation. */
|
|
7166
|
+
step = 'any';
|
|
7167
|
+
/** Helper text, replaced by `errorMessage` when invalid. */
|
|
7168
|
+
hint;
|
|
7169
|
+
/** Custom error message; wins over the built-in range messages. */
|
|
7170
|
+
errorMessage;
|
|
7171
|
+
/** Whether the field is marked invalid by the consumer. */
|
|
7172
|
+
invalid = false;
|
|
7173
|
+
/** Emitted on every keystroke with the canonical value. */
|
|
7174
|
+
chInput;
|
|
7175
|
+
/** Emitted on commit (native `change`) with the canonical value. */
|
|
7176
|
+
chChange;
|
|
7177
|
+
/**
|
|
7178
|
+
* The text in the input, which may be a partial number like `-` or `1.`.
|
|
7179
|
+
* This is the only thing rendered, so it is also what a reset must restore.
|
|
7180
|
+
*/
|
|
7181
|
+
draft = '';
|
|
7182
|
+
/**
|
|
7183
|
+
* Whether the user has typed since the last commit. While false the input
|
|
7184
|
+
* renders `value` directly, which is what makes `formResetCallback` and a
|
|
7185
|
+
* consumer assigning `.value` repaint without extra bookkeeping.
|
|
7186
|
+
*/
|
|
7187
|
+
typing = false;
|
|
7188
|
+
componentWillLoad() {
|
|
7189
|
+
this.draft = this.formatDisplay(this.value);
|
|
7190
|
+
}
|
|
7191
|
+
get decimals() {
|
|
7192
|
+
return this.format !== 'clp';
|
|
7193
|
+
}
|
|
7194
|
+
/** Formats a canonical value for display. */
|
|
7195
|
+
formatDisplay(value) {
|
|
7196
|
+
if (value === '') {
|
|
7197
|
+
return '';
|
|
7198
|
+
}
|
|
7199
|
+
if (this.format === 'clp') {
|
|
7200
|
+
const digits = value.replace(/\D/gu, '');
|
|
7201
|
+
return digits === '' ? '' : Number(digits).toLocaleString('es-CL');
|
|
7202
|
+
}
|
|
7203
|
+
return value;
|
|
7204
|
+
}
|
|
7205
|
+
/**
|
|
7206
|
+
* Strips display formatting back to the canonical string: digits only for
|
|
7207
|
+
* CLP; a leading sign, digits and one decimal separator for `plain`.
|
|
7208
|
+
*/
|
|
7209
|
+
toCanonical(text) {
|
|
7210
|
+
if (this.format === 'clp') {
|
|
7211
|
+
return text.replace(/\D/gu, '');
|
|
7212
|
+
}
|
|
7213
|
+
const normalised = text.replace(/\s/gu, '').replace(',', '.');
|
|
7214
|
+
const match = /^-?\d*(?:\.\d*)?/u.exec(normalised);
|
|
7215
|
+
return match ? match[0] : '';
|
|
7216
|
+
}
|
|
7217
|
+
/**
|
|
7218
|
+
* Whether the field holds a real number. A draft that is only a sign or a
|
|
7219
|
+
* separator (`-`, `.`) is still being typed and submits as empty.
|
|
7220
|
+
*/
|
|
7221
|
+
get isEmpty() {
|
|
7222
|
+
return !/^-?\d/u.test(this.toCanonical(this.draft));
|
|
7223
|
+
}
|
|
7224
|
+
/** What the form receives and `value` exposes. */
|
|
7225
|
+
get canonical() {
|
|
7226
|
+
return this.isEmpty ? '' : this.toCanonical(this.draft);
|
|
7227
|
+
}
|
|
7228
|
+
get numericValue() {
|
|
7229
|
+
return Number(this.canonical);
|
|
7230
|
+
}
|
|
7231
|
+
/** The message for a value outside `min`/`max`, if there is one. */
|
|
7232
|
+
outOfRange(parsed) {
|
|
7233
|
+
const { min, max } = this;
|
|
7234
|
+
if (min !== undefined && parsed < min) {
|
|
7235
|
+
return `Enter a value of at least ${min}.`;
|
|
7236
|
+
}
|
|
7237
|
+
if (max !== undefined && parsed > max) {
|
|
7238
|
+
return `Enter a value of at most ${max}.`;
|
|
7239
|
+
}
|
|
7240
|
+
return undefined;
|
|
7241
|
+
}
|
|
7242
|
+
rangeError() {
|
|
7243
|
+
if (this.errorMessage || this.isEmpty || this.invalid) {
|
|
7244
|
+
return undefined;
|
|
7245
|
+
}
|
|
7246
|
+
const parsed = this.numericValue;
|
|
7247
|
+
return Number.isNaN(parsed) ? 'Enter a valid number.' : this.outOfRange(parsed);
|
|
7248
|
+
}
|
|
7249
|
+
syncForm() {
|
|
7250
|
+
const { internals, required, invalid, errorMessage, canonical } = this;
|
|
7251
|
+
if (typeof internals?.setFormValue !== 'function') {
|
|
7252
|
+
return;
|
|
7253
|
+
}
|
|
7254
|
+
internals.setFormValue(canonical);
|
|
7255
|
+
const base = resolveValidity({ required, empty: canonical === '', invalid, errorMessage });
|
|
7256
|
+
const rangeMessage = this.rangeError();
|
|
7257
|
+
if (rangeMessage) {
|
|
7258
|
+
internals.setValidity({ ...base.flags, badInput: true }, rangeMessage);
|
|
7259
|
+
return;
|
|
7260
|
+
}
|
|
7261
|
+
internals.setValidity(base.flags, base.message);
|
|
7262
|
+
}
|
|
7263
|
+
componentDidLoad() {
|
|
7264
|
+
this.initialValue = this.value;
|
|
7265
|
+
this.syncForm();
|
|
7266
|
+
this.host.addEventListener('change', this.markTouched);
|
|
7267
|
+
this.host.addEventListener('focusout', this.markTouched);
|
|
7268
|
+
this.host.addEventListener('invalid', this.markTouched);
|
|
7269
|
+
}
|
|
7270
|
+
markTouched = () => {
|
|
7271
|
+
this.host.setAttribute('data-touched', '');
|
|
7272
|
+
};
|
|
7273
|
+
formResetCallback() {
|
|
7274
|
+
this.value = this.initialValue;
|
|
7275
|
+
this.draft = this.formatDisplay(this.initialValue);
|
|
7276
|
+
this.typing = false;
|
|
7277
|
+
this.syncForm();
|
|
7278
|
+
// The vdom does not push a re-rendered `value` onto a live `<input>`: the
|
|
7279
|
+
// property is set by the browser's own typing and the diff sees no change.
|
|
7280
|
+
// A reset restores the text directly.
|
|
7281
|
+
const input = this.host.shadowRoot?.querySelector('input');
|
|
7282
|
+
if (input) {
|
|
7283
|
+
input.value = this.formatDisplay(this.initialValue);
|
|
7284
|
+
}
|
|
7285
|
+
}
|
|
7286
|
+
formDisabledCallback(isDisabled) {
|
|
7287
|
+
this.formDisabled = isDisabled;
|
|
7288
|
+
}
|
|
7289
|
+
commit(text) {
|
|
7290
|
+
this.typing = true;
|
|
7291
|
+
this.draft = text;
|
|
7292
|
+
this.value = this.canonical;
|
|
7293
|
+
this.chInput.emit(this.value);
|
|
7294
|
+
this.syncForm();
|
|
7295
|
+
}
|
|
7296
|
+
handleInput = (ev) => {
|
|
7297
|
+
this.commit(ev.target.value);
|
|
7298
|
+
};
|
|
7299
|
+
handleChange = (ev) => {
|
|
7300
|
+
this.commit(ev.target.value);
|
|
7301
|
+
this.chChange.emit(this.value);
|
|
7302
|
+
};
|
|
7303
|
+
/** Reformats grouped CLP digits once the field loses focus. */
|
|
7304
|
+
handleBlur = () => {
|
|
7305
|
+
if (this.format === 'clp') {
|
|
7306
|
+
this.draft = this.formatDisplay(this.canonical);
|
|
7307
|
+
}
|
|
7308
|
+
};
|
|
7309
|
+
get isInvalid() {
|
|
7310
|
+
return this.invalid || this.rangeError() !== undefined;
|
|
7311
|
+
}
|
|
7312
|
+
get describedBy() {
|
|
7313
|
+
if (this.isInvalid && this.errorMessage) {
|
|
7314
|
+
return this.errorId;
|
|
7315
|
+
}
|
|
7316
|
+
if (this.hint) {
|
|
7317
|
+
return this.hintId;
|
|
7318
|
+
}
|
|
7319
|
+
return undefined;
|
|
7320
|
+
}
|
|
7321
|
+
render() {
|
|
7322
|
+
const showError = this.isInvalid && this.errorMessage;
|
|
7323
|
+
return (hAsync(Host, { key: '1c424d9d76ec39e6cc6018d6ba483f95bd203d32' }, this.label && (hAsync("label", { key: '4fc03334128c33cc425da773df063cd99fee215c', class: "label", htmlFor: this.inputId }, this.label)), hAsync("input", { key: 'ece15737f83c181d615e906aba5cce80c0bcb8ba', id: this.label ? this.inputId : undefined, class: { 'input': true, 'input--invalid': this.isInvalid },
|
|
7324
|
+
// `text` with `inputmode`, not `type="number"`: a number input drops
|
|
7325
|
+
// partial values and cannot show grouped digits.
|
|
7326
|
+
type: "text", inputMode: this.decimals ? 'decimal' : 'numeric', name: this.name, placeholder: this.placeholder, disabled: this.disabled || this.formDisabled, required: this.required, value: this.typing ? this.draft : this.formatDisplay(this.value), "aria-invalid": this.isInvalid ? 'true' : undefined, "aria-describedby": this.describedBy, onInput: this.handleInput, onChange: this.handleChange, onBlur: this.handleBlur }), this.hint && !showError && (hAsync("p", { key: '7a2e3031b8bfebf26857dd60eb18340f21a01f3d', class: "hint", id: this.hintId }, this.hint)), showError && (hAsync("p", { key: 'f90492532d27088f18b258f885d5d471f31d27cb', class: "error", id: this.errorId, role: "alert" }, this.errorMessage))));
|
|
7327
|
+
}
|
|
7328
|
+
static get formAssociated() { return true; }
|
|
7329
|
+
static get watchers() { return {
|
|
7330
|
+
"required": [{
|
|
7331
|
+
"syncForm": 0
|
|
7332
|
+
}],
|
|
7333
|
+
"invalid": [{
|
|
7334
|
+
"syncForm": 0
|
|
7335
|
+
}],
|
|
7336
|
+
"errorMessage": [{
|
|
7337
|
+
"syncForm": 0
|
|
7338
|
+
}],
|
|
7339
|
+
"min": [{
|
|
7340
|
+
"syncForm": 0
|
|
7341
|
+
}],
|
|
7342
|
+
"max": [{
|
|
7343
|
+
"syncForm": 0
|
|
7344
|
+
}]
|
|
7345
|
+
}; }
|
|
7346
|
+
static get style() { return chNumberInputCss(); }
|
|
7347
|
+
static get cmpMeta() { return {
|
|
7348
|
+
"$flags$": 585,
|
|
7349
|
+
"$tagName$": "ch-number-input",
|
|
7350
|
+
"$members$": {
|
|
7351
|
+
"label": [1],
|
|
7352
|
+
"value": [1025],
|
|
7353
|
+
"format": [1],
|
|
7354
|
+
"placeholder": [1],
|
|
7355
|
+
"name": [513],
|
|
7356
|
+
"disabled": [516],
|
|
7357
|
+
"required": [516],
|
|
7358
|
+
"min": [2],
|
|
7359
|
+
"max": [2],
|
|
7360
|
+
"step": [8],
|
|
7361
|
+
"hint": [1],
|
|
7362
|
+
"errorMessage": [1, "error-message"],
|
|
7363
|
+
"invalid": [4],
|
|
7364
|
+
"formDisabled": [32],
|
|
7365
|
+
"draft": [32],
|
|
7366
|
+
"typing": [32]
|
|
7367
|
+
},
|
|
7368
|
+
"$listeners$": undefined,
|
|
7369
|
+
"$lazyBundleId$": "-",
|
|
7370
|
+
"$attrsToReflect$": [["name", "name"], ["disabled", "disabled"], ["required", "required"]]
|
|
7371
|
+
}; }
|
|
7372
|
+
}
|
|
7373
|
+
|
|
7105
7374
|
const chPageHeaderCss = () => `:host{display:block}.header{display:flex;flex-wrap:wrap;align-items:flex-start;justify-content:space-between;gap:var(--spacing-2xl);padding-bottom:var(--spacing-2xl);border-bottom:var(--border-width) solid var(--border)}.header-text{display:flex;flex-direction:column;gap:var(--spacing-xs);flex:1 1 20rem;min-width:0}.header-eyebrow{margin:0;color:var(--text-secondary);font-family:var(--font-heading);font-size:var(--typography-size-xs);letter-spacing:var(--typography-tracking-badge);text-transform:uppercase}.header-title{margin:0;color:var(--text);font-family:var(--font-heading);font-size:var(--typography-size-xl);font-weight:var(--typography-weight-bold);line-height:1.2;overflow-wrap:anywhere}.header-description{margin:0;color:var(--text-secondary);font-size:var(--typography-size-sm);line-height:1.5;overflow-wrap:anywhere}.header-actions{display:flex;flex-wrap:wrap;align-items:center;gap:var(--spacing-md);max-width:100%}.header-actions:empty{display:none}.header--stacked .header-actions{flex-basis:100%}@media (max-width: 30rem){.header{flex-direction:column}.header-actions{width:100%}}@media (forced-colors: active){.header{border-bottom-color:CanvasText}}`;
|
|
7106
7375
|
|
|
7107
7376
|
/**
|
|
@@ -7145,7 +7414,7 @@ class ChPageHeader {
|
|
|
7145
7414
|
actionsStacked = false;
|
|
7146
7415
|
render() {
|
|
7147
7416
|
const Heading = this.headingLevel;
|
|
7148
|
-
return (hAsync(Host, { key: '
|
|
7417
|
+
return (hAsync(Host, { key: '3d8de76e3df7fba8be55d0708861c7d136b05722' }, hAsync("div", { key: '057d2b4359b9faff34b9fbf6886b04d5d89dc9ac', class: { 'header': true, 'header--stacked': this.actionsStacked } }, hAsync("div", { key: '1ff40b1cd100d41a72d80ab35e619f93b4a43633', class: "header-text" }, this.eyebrow && hAsync("p", { key: '6c2538bf1d450a6dca25fd2815968a9622f7fcbf', class: "header-eyebrow" }, this.eyebrow), hAsync(Heading, { key: '54cdf8e62468e11cf9fe084023e4fe624f958452', class: "header-title" }, this.title), this.description && hAsync("p", { key: 'fe9c6cc78354b38b8833871ddc53d412007abe29', class: "header-description" }, this.description)), hAsync("div", { key: 'e91a66715e2c23478c375ce9ddcf29c04f85b3eb', class: "header-actions" }, hAsync("slot", { key: '06654c2a28d004791ed5b9c213cd66ef80bbcc85', name: "actions" })))));
|
|
7149
7418
|
}
|
|
7150
7419
|
static get style() { return chPageHeaderCss(); }
|
|
7151
7420
|
static get cmpMeta() { return {
|
|
@@ -7275,7 +7544,7 @@ class ChRadio {
|
|
|
7275
7544
|
}
|
|
7276
7545
|
render() {
|
|
7277
7546
|
const groupName = this.name || `${this.groupId}-group`;
|
|
7278
|
-
return (hAsync(Host, { key: '
|
|
7547
|
+
return (hAsync(Host, { key: 'a027da2d803a6e8a2a35afa1920dd3b0f8e06b01' }, this.label && (hAsync("span", { key: '28e11cd1148a89a4f3e85d331f00e39f1d7751ce', class: "group-label", id: this.labelId }, this.label)), hAsync("div", { key: '43d8a53c9bec1dc129b6588c0118ebe2109b4b7e', class: "radio-group", role: "radiogroup", "aria-labelledby": this.label ? this.labelId : undefined }, this.options.map(option => (hAsync("label", { class: { 'control': true, 'control--disabled': this.disabled || this.formDisabled || option.disabled } }, hAsync("input", { class: { 'input': true, 'input--invalid': this.invalid }, type: "radio", name: groupName, value: option.value, checked: option.value === this.value, disabled: this.disabled || this.formDisabled || option.disabled, "aria-invalid": this.invalid ? 'true' : undefined, "aria-describedby": this.describedBy, onChange: this.handleChange }), hAsync("span", { class: "mark" }), hAsync("span", { class: "label-text" }, option.label))))), this.hint && !(this.invalid && this.errorMessage) && (hAsync("p", { key: '27335cc50f8b280f93857eea370aa37e2290b46b', class: "hint", id: this.hintId }, this.hint)), this.invalid && this.errorMessage && (hAsync("p", { key: '83f93bdc0739961136062acb784a3d6e666de349', class: "error", id: this.errorId, role: "alert" }, this.errorMessage))));
|
|
7279
7548
|
}
|
|
7280
7549
|
static get formAssociated() { return true; }
|
|
7281
7550
|
static get watchers() { return {
|
|
@@ -7419,7 +7688,7 @@ class ChSegmentedControl {
|
|
|
7419
7688
|
}
|
|
7420
7689
|
render() {
|
|
7421
7690
|
const groupName = this.name || `${this.groupId}-group`;
|
|
7422
|
-
return (hAsync(Host, { key: '
|
|
7691
|
+
return (hAsync(Host, { key: '59e0782a5c120cd243bbd67eb727ba1a7755d45f' }, this.label && (hAsync("span", { key: 'f1faf9b240224e4c2b10059ed7bf667e24e5997d', class: "group-label", id: this.labelId }, this.label)), hAsync("div", { key: 'b9e59c0fbd4af04ad4d079415497440ec0a60801', class: { segmented: true, [`segmented--${this.size}`]: true }, role: "radiogroup", "aria-labelledby": this.label ? this.labelId : undefined }, this.options.map(option => (hAsync("label", { class: { 'control': true, 'control--disabled': this.disabled || this.formDisabled || option.disabled } }, hAsync("input", { class: "input", type: "radio", name: groupName, value: option.value, checked: option.value === this.value, disabled: this.disabled || this.formDisabled || option.disabled, onChange: this.handleChange }), hAsync("span", { class: "label-text" }, option.label)))))));
|
|
7423
7692
|
}
|
|
7424
7693
|
static get formAssociated() { return true; }
|
|
7425
7694
|
static get watchers() { return {
|
|
@@ -7562,7 +7831,7 @@ class ChSelect {
|
|
|
7562
7831
|
return undefined;
|
|
7563
7832
|
}
|
|
7564
7833
|
render() {
|
|
7565
|
-
return (hAsync(Host, { key: '
|
|
7834
|
+
return (hAsync(Host, { key: 'f57fbcbfaaf64a9cbf1f201edd2f9f714db9afee' }, this.label && (hAsync("label", { key: 'e7a4a802ff85cd597e5bdb9a54858e3cbbbcf73b', class: "label", htmlFor: this.selectId }, this.label)), hAsync("select", { key: '5d70a598757d9440d90351e8639a876388b5f7a7', id: this.label ? this.selectId : undefined, class: { 'select': true, 'select--invalid': this.invalid }, name: this.name, disabled: this.disabled || this.formDisabled, required: this.required, "aria-invalid": this.invalid ? 'true' : undefined, "aria-describedby": this.describedBy, onChange: this.handleChange }, this.placeholder && (hAsync("option", { key: '9a002af8f52ab2bb2d2c762417cad071b7dd06c7', value: "", disabled: true, hidden: true, selected: !this.value }, this.placeholder)), this.options.map(option => (hAsync("option", { value: option.value, disabled: option.disabled, selected: option.value === this.value }, option.label)))), this.hint && !(this.invalid && this.errorMessage) && (hAsync("p", { key: '0224ab6e0a54b925e0754c43bb15ceaab84c34a4', class: "hint", id: this.hintId }, this.hint)), this.invalid && this.errorMessage && (hAsync("p", { key: '1624ae9938d47971ee8195f986c45454dad7f846', class: "error", id: this.errorId, role: "alert" }, this.errorMessage))));
|
|
7566
7835
|
}
|
|
7567
7836
|
static get formAssociated() { return true; }
|
|
7568
7837
|
static get watchers() { return {
|
|
@@ -7655,7 +7924,7 @@ class ChSkeleton {
|
|
|
7655
7924
|
return { width: this.width, height: this.height };
|
|
7656
7925
|
}
|
|
7657
7926
|
render() {
|
|
7658
|
-
return (hAsync(Host, { key: '
|
|
7927
|
+
return (hAsync(Host, { key: 'b28cd1be6da1721ff6b93ed1e4bab119ea066ad4', "aria-hidden": "true", class: { 'skeleton': true, [`skeleton--${this.shape}`]: true, 'skeleton--animated': this.animated } }, Array.from({ length: this.items }).map((value, index) => (hAsync("span", { class: "skeleton__item", style: this.sizeStyle, key: index, "data-index": String(value) })))));
|
|
7659
7928
|
}
|
|
7660
7929
|
static get style() { return chSkeletonCss(); }
|
|
7661
7930
|
static get cmpMeta() { return {
|
|
@@ -7703,7 +7972,7 @@ class ChSpinner {
|
|
|
7703
7972
|
label;
|
|
7704
7973
|
render() {
|
|
7705
7974
|
const labelled = Boolean(this.label);
|
|
7706
|
-
return (hAsync(Host, { key: '
|
|
7975
|
+
return (hAsync(Host, { key: '1d8ef18f03d7a52d61854cc84fb39994ee8ce0a9' }, hAsync("span", { key: '28ec4657d1a0de9181f9d31742fc6bd26b284b14', class: { spinner: true, [`spinner--${this.size}`]: true }, role: labelled ? 'status' : undefined, "aria-label": labelled ? this.label : undefined, "aria-hidden": labelled ? undefined : 'true' })));
|
|
7707
7976
|
}
|
|
7708
7977
|
static get style() { return chSpinnerCss(); }
|
|
7709
7978
|
static get cmpMeta() { return {
|
|
@@ -7749,7 +8018,7 @@ class ChStack {
|
|
|
7749
8018
|
return GAPS.has(this.gap) ? this.gap : 'md';
|
|
7750
8019
|
}
|
|
7751
8020
|
render() {
|
|
7752
|
-
return (hAsync(Host, { key: '
|
|
8021
|
+
return (hAsync(Host, { key: '1c70344ce291ba78a533f99ac6c4c135296251e1', class: { stack: true, [`stack--gap-${this.gapStep}`]: true, [`stack--align-${this.align}`]: true, [`stack--justify-${this.justify}`]: true } }, hAsync("slot", { key: 'f4167e47a2fdee42f97611fba5907d79f8d0448d' })));
|
|
7753
8022
|
}
|
|
7754
8023
|
static get style() { return chStackCss(); }
|
|
7755
8024
|
static get cmpMeta() { return {
|
|
@@ -7815,10 +8084,10 @@ class ChStat {
|
|
|
7815
8084
|
}
|
|
7816
8085
|
render() {
|
|
7817
8086
|
const cue = this.toneClass === 'positive' ? '+' : this.toneClass === 'negative' ? '−' : null;
|
|
7818
|
-
return (hAsync(Host, { key: '
|
|
8087
|
+
return (hAsync(Host, { key: '76d71c964efeb4e5a07aabff0b895f1ded21b345', class: "stat" }, hAsync("div", { key: '103db766f21c91c8406e8d3368049f4e4a018007', class: "stat__inner" }, hAsync("span", { key: '74e45654072a92ba4f894aee5366852561f8f352', class: "stat__label" }, this.label), hAsync("span", { key: 'deb8d0d20c70d7fbab392641fd9d0e617ab8daf5', class: {
|
|
7819
8088
|
stat__value: true,
|
|
7820
8089
|
[`stat__value--${this.toneClass}`]: this.toneClass !== 'default',
|
|
7821
|
-
} }, cue && (hAsync("span", { key: '
|
|
8090
|
+
} }, cue && (hAsync("span", { key: '82b83cb7182f10ceca5172fc790aad01882645cc', class: "stat__cue", "aria-hidden": "true" }, cue)), hAsync("slot", { key: 'e9c3095eca4ed3907fc0e95395f3cc62bfd4158a', name: "value" }, this.value)), this.hint && hAsync("span", { key: '4b892b35299def40a62c386e6af7c5f19aebe44b', class: "stat__hint" }, this.hint), hAsync("div", { key: '0535d9fb62ddf5ed1ee2b5993689cb080f753ff9', class: "stat__footer" }, hAsync("slot", { key: '1d8e09fa8db2d4a6e188f8deaa93631df9cc2a36', name: "footer" })))));
|
|
7822
8091
|
}
|
|
7823
8092
|
static get style() { return chStatCss(); }
|
|
7824
8093
|
static get cmpMeta() { return {
|
|
@@ -7944,7 +8213,7 @@ class ChSwitch {
|
|
|
7944
8213
|
return undefined;
|
|
7945
8214
|
}
|
|
7946
8215
|
render() {
|
|
7947
|
-
return (hAsync(Host, { key: '
|
|
8216
|
+
return (hAsync(Host, { key: '8bafcbe9b03858f278f0884d43b9ce579a98c84e' }, hAsync("label", { key: '8783c0e8ce0bb9c03a3772a08afb383e338b5be4', class: { 'control': true, 'control--disabled': this.disabled || this.formDisabled }, htmlFor: this.switchId }, hAsync("input", { key: '4093d398ed167ede08749050b6a9c9d5b25f2470', id: this.switchId, class: { 'input': true, 'input--invalid': this.invalid }, type: "checkbox", role: "switch", name: this.name, value: this.value, checked: this.checked, disabled: this.disabled || this.formDisabled, required: this.required, "aria-checked": this.checked ? 'true' : 'false', "aria-invalid": this.invalid ? 'true' : undefined, "aria-describedby": this.describedBy, onChange: this.handleChange }), hAsync("span", { key: 'eea728ebbf6c6fefd761415bf8cb00765e5c2e76', class: "track" }, hAsync("span", { key: '4d18d8c9ed871bbf6e537b93bcce14c0f00f00e9', class: "thumb" })), this.label && hAsync("span", { key: '048657735d8fdf9a03a89b83cf3f3d65a466d886', class: "label-text" }, this.label)), this.hint && !(this.invalid && this.errorMessage) && (hAsync("p", { key: '869a40f9ce8bd2f93d918426f119c637039ac5e9', class: "hint", id: this.hintId }, this.hint)), this.invalid && this.errorMessage && (hAsync("p", { key: '08d947e2909706290b7efbb3e8af6999ad249dea', class: "error", id: this.errorId, role: "alert" }, this.errorMessage))));
|
|
7948
8217
|
}
|
|
7949
8218
|
static get formAssociated() { return true; }
|
|
7950
8219
|
static get watchers() { return {
|
|
@@ -7983,6 +8252,200 @@ class ChSwitch {
|
|
|
7983
8252
|
}; }
|
|
7984
8253
|
}
|
|
7985
8254
|
|
|
8255
|
+
const chTableCss = () => `:host{display:block;font-family:var(--typography-body);color:var(--color-text-primary)}:host([hidden]){display:none}.table__scroll{overflow-x:auto;min-width:0;border:var(--border-width) solid var(--color-border-default);border-radius:var(--radius-md);background:var(--color-surface-default)}.table__scroll:focus-visible{outline:2px solid var(--color-accent-default);outline-offset:2px}.table{width:100%;border-collapse:collapse;font-size:var(--typography-size-sm)}.cell{min-width:8rem}.caption{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}.cell{padding:var(--spacing-md) var(--spacing-lg);text-align:left;vertical-align:top;border-bottom:var(--border-width) solid var(--color-border-default)}.cell--header{font-weight:var(--typography-weight-semibold);color:var(--color-text-secondary);white-space:nowrap;background:var(--color-surface-hover)}tbody tr:last-child td{border-bottom:0}.sort{all:unset;display:inline-flex;align-items:center;gap:var(--spacing-xs);cursor:pointer;border-radius:var(--radius-sm)}.sort:focus-visible{outline:2px solid var(--color-accent-default);outline-offset:2px}.sort__cue{font-size:var(--typography-size-xs);color:var(--color-text-secondary)}.table__empty{padding:var(--spacing-2xl) var(--spacing-lg);text-align:center}.table__empty-message{margin:0;font-size:var(--typography-size-sm);color:var(--color-text-secondary)}`;
|
|
8256
|
+
|
|
8257
|
+
let tableIds = 0;
|
|
8258
|
+
/**
|
|
8259
|
+
* Presentation-only data grid over a native `<table>`.
|
|
8260
|
+
*
|
|
8261
|
+
* The component renders the table skeleton and the header row; the consumer
|
|
8262
|
+
* slots the body as **native** `<tr>` elements. It does not hold the rows, sort
|
|
8263
|
+
* them, paginate them or fetch anything — it reports intent and the consumer
|
|
8264
|
+
* decides. Sorting is controlled: the table reflects the `sortKey` and
|
|
8265
|
+
* `sortDirection` it is given, so a consumer that ignores `chSort` leaves the
|
|
8266
|
+
* `aria-sort` that matches its own data.
|
|
8267
|
+
*
|
|
8268
|
+
* ```html
|
|
8269
|
+
* <ch-table sortable sort-key="name" sort-direction="ascending">
|
|
8270
|
+
* <tr><td>Aurora SpA</td><td>En despacho</td></tr>
|
|
8271
|
+
* <tr><td>Bosque Ltda</td><td>Pendiente</td></tr>
|
|
8272
|
+
* </ch-table>
|
|
8273
|
+
* ```
|
|
8274
|
+
*
|
|
8275
|
+
* ```js
|
|
8276
|
+
* table.columns = [
|
|
8277
|
+
* { key: 'name', label: 'Cliente' },
|
|
8278
|
+
* { key: 'status', label: 'Estado' },
|
|
8279
|
+
* ];
|
|
8280
|
+
* ```
|
|
8281
|
+
*
|
|
8282
|
+
* Columns come from the `columns` prop, like `ch-select`'s `options` — there is
|
|
8283
|
+
* no `ch-table-column` element, and an unknown element inside a component is
|
|
8284
|
+
* never rendered.
|
|
8285
|
+
*
|
|
8286
|
+
* Rows must be real `<tr>` elements created as DOM nodes, not written as
|
|
8287
|
+
* HTML inside the tag: the parser rejects a `<tr>` outside a `<table>`, so
|
|
8288
|
+
* `<ch-table><tr>…</tr></ch-table>` in an HTML string parses to a text node
|
|
8289
|
+
* and the table correctly reports itself empty. Framework templates and
|
|
8290
|
+
* `createElement` are unaffected.
|
|
8291
|
+
*
|
|
8292
|
+
* The shape is the one approved on #77: `table`/`thead`/`tbody` live in the
|
|
8293
|
+
* shadow DOM and the consumer slots native rows. Custom row and cell elements
|
|
8294
|
+
* are not possible — the HTML parser foster-parents them out of a native
|
|
8295
|
+
* table, which the spike in `tests/browser/semantic-shapes.browser.spec.ts`
|
|
8296
|
+
* measured in real Chromium.
|
|
8297
|
+
*/
|
|
8298
|
+
class ChTable {
|
|
8299
|
+
constructor(hostRef) {
|
|
8300
|
+
registerInstance(this, hostRef);
|
|
8301
|
+
this.chSort = createEvent(this, "chSort");
|
|
8302
|
+
}
|
|
8303
|
+
captionId = `ch-table-${++tableIds}-caption`;
|
|
8304
|
+
emptyId = `${this.captionId}-empty`;
|
|
8305
|
+
get host() { return getElement(this); }
|
|
8306
|
+
/** Columns, in display order. Rendered as the header row. */
|
|
8307
|
+
columns = [];
|
|
8308
|
+
/** Whether the header offers sorting. Individual columns can opt out. */
|
|
8309
|
+
sortable = false;
|
|
8310
|
+
/** Key of the column currently used for sorting. Controlled by the consumer. */
|
|
8311
|
+
sortKey;
|
|
8312
|
+
/** Direction of the current sort. Defaults to `ascending`. */
|
|
8313
|
+
sortDirection = 'ascending';
|
|
8314
|
+
/**
|
|
8315
|
+
* Accessible name for the table. Always rendered as a caption, visually
|
|
8316
|
+
* hidden, because a data table without a name is announced as a bare grid.
|
|
8317
|
+
*/
|
|
8318
|
+
label;
|
|
8319
|
+
/**
|
|
8320
|
+
* Shown in place of the rows when the body is empty. `filtered` distinguishes
|
|
8321
|
+
* "nothing matched your filters" from "there is nothing yet", which are
|
|
8322
|
+
* different messages and different next actions.
|
|
8323
|
+
*/
|
|
8324
|
+
empty = 'unmeasured';
|
|
8325
|
+
/**
|
|
8326
|
+
* Marks the body as empty *because of filtering* rather than because there is
|
|
8327
|
+
* no data at all. Both look like zero rows, and they need different messages
|
|
8328
|
+
* and different next actions.
|
|
8329
|
+
*/
|
|
8330
|
+
filtered = false;
|
|
8331
|
+
/** Emitted when a sortable header is activated. The consumer applies the sort. */
|
|
8332
|
+
chSort;
|
|
8333
|
+
onFiltered() {
|
|
8334
|
+
this.measure();
|
|
8335
|
+
}
|
|
8336
|
+
rerenderHeaders() {
|
|
8337
|
+
// Header attributes are derived from controlled props, so a prop change
|
|
8338
|
+
// has to repaint them; `columns` and the slot repaint on their own.
|
|
8339
|
+
this.rerender = !this.rerender;
|
|
8340
|
+
}
|
|
8341
|
+
rerender = false;
|
|
8342
|
+
observer;
|
|
8343
|
+
componentDidLoad() {
|
|
8344
|
+
this.measure();
|
|
8345
|
+
// `slotchange` does not fire for native `<tr>` children, and it only fires
|
|
8346
|
+
// at all once the element is upgraded, so a row added later would leave the
|
|
8347
|
+
// table stuck on its first measurement. Observing the host covers both
|
|
8348
|
+
// orders plus a consumer that swaps rows on refresh. `MutationObserver` is
|
|
8349
|
+
// absent in the mock-doc test environment, where the slot behaviour is
|
|
8350
|
+
// exercised through an explicit `slotchange` instead.
|
|
8351
|
+
if (typeof MutationObserver === 'function') {
|
|
8352
|
+
this.observer = new MutationObserver(this.measure);
|
|
8353
|
+
this.observer.observe(this.host, { childList: true });
|
|
8354
|
+
}
|
|
8355
|
+
}
|
|
8356
|
+
disconnectedCallback() {
|
|
8357
|
+
this.observer?.disconnect();
|
|
8358
|
+
this.observer = undefined;
|
|
8359
|
+
}
|
|
8360
|
+
measure = () => {
|
|
8361
|
+
const rows = Array.from(this.host.children).filter(child => child.tagName === 'TR');
|
|
8362
|
+
this.empty = rows.length === 0 ? 'true' : 'none';
|
|
8363
|
+
};
|
|
8364
|
+
/**
|
|
8365
|
+
* A filtered-empty body and a truly empty one both have zero rows; only the
|
|
8366
|
+
* consumer knows which, since `filtered` is a prop it controls.
|
|
8367
|
+
*/
|
|
8368
|
+
get emptyState() {
|
|
8369
|
+
if (this.filtered) {
|
|
8370
|
+
return 'filtered';
|
|
8371
|
+
}
|
|
8372
|
+
return this.empty;
|
|
8373
|
+
}
|
|
8374
|
+
/** Direction glyph. Not colour: the arrow is the cue in greyscale. */
|
|
8375
|
+
sortCue(active) {
|
|
8376
|
+
if (!active) {
|
|
8377
|
+
return '⇅';
|
|
8378
|
+
}
|
|
8379
|
+
return this.sortDirection === 'ascending' ? '▲' : '▼';
|
|
8380
|
+
}
|
|
8381
|
+
emptyMessage(state) {
|
|
8382
|
+
return state === 'filtered' ? 'No results for these filters.' : 'Nothing here yet.';
|
|
8383
|
+
}
|
|
8384
|
+
nextDirection(key) {
|
|
8385
|
+
if (this.sortKey !== key) {
|
|
8386
|
+
return 'ascending';
|
|
8387
|
+
}
|
|
8388
|
+
return this.sortDirection === 'ascending' ? 'descending' : 'ascending';
|
|
8389
|
+
}
|
|
8390
|
+
handleSort = (key) => {
|
|
8391
|
+
this.chSort.emit({ key, direction: this.nextDirection(key) });
|
|
8392
|
+
};
|
|
8393
|
+
handleHeaderKeydown = (ev, key) => {
|
|
8394
|
+
if (ev.key !== 'Enter' && ev.key !== ' ') {
|
|
8395
|
+
return;
|
|
8396
|
+
}
|
|
8397
|
+
ev.preventDefault();
|
|
8398
|
+
this.handleSort(key);
|
|
8399
|
+
};
|
|
8400
|
+
renderHeaderCell(column) {
|
|
8401
|
+
const sortable = this.sortable && column.sortable !== false;
|
|
8402
|
+
if (!sortable) {
|
|
8403
|
+
return (hAsync("th", { scope: "col", class: "cell cell--header" }, column.label));
|
|
8404
|
+
}
|
|
8405
|
+
const active = this.sortKey === column.key;
|
|
8406
|
+
const direction = active ? this.sortDirection : 'none';
|
|
8407
|
+
return (hAsync("th", { scope: "col", class: "cell cell--header", "aria-sort": direction }, hAsync("button", { type: "button", class: "sort", onClick: () => this.handleSort(column.key), onKeyDown: ev => this.handleHeaderKeydown(ev, column.key) }, hAsync("span", null, column.label), hAsync("span", { class: "sort__cue", "aria-hidden": "true" }, this.sortCue(active)))));
|
|
8408
|
+
}
|
|
8409
|
+
render() {
|
|
8410
|
+
const empty = this.emptyState;
|
|
8411
|
+
// Before the first measurement the table is rendered as non-empty, so a
|
|
8412
|
+
// consumer never sees the empty message flash over real rows.
|
|
8413
|
+
return (hAsync(Host, { key: 'f4511d753b9140b08eee0e50041ba4e7408930ec', class: { 'table': true, 'table--empty': empty === 'true' || empty === 'filtered' } }, hAsync("div", { key: '8cc987803f5d000d7efbbc6b605561d2c6ca1c46', class: "table__scroll", tabIndex: 0, role: "group", "aria-labelledby": this.captionId }, hAsync("table", { key: '9eff6abfe0fecfd3559bfe397db3957fa60e288a' }, hAsync("caption", { key: '35d88e56267aff1ae9753326ffc807cf6e04bfba', id: this.captionId, class: "caption" }, this.label), hAsync("thead", { key: '0b01e865f3c0f40e9e86634f701b77886713e2e3' }, hAsync("tr", { key: '92ded28a12867b8a2a372a9b04e8fd251870a5c7' }, this.columns.map(column => this.renderHeaderCell(column)))), hAsync("tbody", { key: '68d7a49aa51cf1e958f1af7ebc36cdb5f6acfdd0' }, hAsync("slot", { key: '79e296699379971e93b8a91b7823987be835ce8e' })))), (empty === 'true' || empty === 'filtered') && (hAsync("div", { key: 'b7b2734f3d83ced393377fbe6f2911d2466ce714', class: "table__empty", id: this.emptyId }, hAsync("slot", { key: '926191c01eef1f1898ad7fc800824021a697da35', name: "empty" }, hAsync("p", { key: '6302a52795029b3d31200ae3c1c4ff53af3ab81c', class: "table__empty-message" }, this.emptyMessage(empty)))))));
|
|
8414
|
+
}
|
|
8415
|
+
static get watchers() { return {
|
|
8416
|
+
"filtered": [{
|
|
8417
|
+
"onFiltered": 0
|
|
8418
|
+
}],
|
|
8419
|
+
"sortKey": [{
|
|
8420
|
+
"rerenderHeaders": 0
|
|
8421
|
+
}],
|
|
8422
|
+
"sortDirection": [{
|
|
8423
|
+
"rerenderHeaders": 0
|
|
8424
|
+
}],
|
|
8425
|
+
"sortable": [{
|
|
8426
|
+
"rerenderHeaders": 0
|
|
8427
|
+
}]
|
|
8428
|
+
}; }
|
|
8429
|
+
static get style() { return chTableCss(); }
|
|
8430
|
+
static get cmpMeta() { return {
|
|
8431
|
+
"$flags$": 777,
|
|
8432
|
+
"$tagName$": "ch-table",
|
|
8433
|
+
"$members$": {
|
|
8434
|
+
"columns": [16],
|
|
8435
|
+
"sortable": [516],
|
|
8436
|
+
"sortKey": [1, "sort-key"],
|
|
8437
|
+
"sortDirection": [1, "sort-direction"],
|
|
8438
|
+
"label": [1],
|
|
8439
|
+
"filtered": [516],
|
|
8440
|
+
"empty": [32],
|
|
8441
|
+
"rerender": [32]
|
|
8442
|
+
},
|
|
8443
|
+
"$listeners$": undefined,
|
|
8444
|
+
"$lazyBundleId$": "-",
|
|
8445
|
+
"$attrsToReflect$": [["sortable", "sortable"], ["filtered", "filtered"]]
|
|
8446
|
+
}; }
|
|
8447
|
+
}
|
|
8448
|
+
|
|
7986
8449
|
const chTabsCss = () => `:host{display:block}.tablist{display:flex;gap:var(--spacing-2xl);border-bottom:var(--border-width) solid var(--border)}.tab{appearance:none;position:relative;background:transparent;border:none;padding:var(--spacing-md) 0 var(--spacing-xl);margin-bottom:calc(-1 * var(--border-width));color:var(--text-muted);font-family:inherit;font-size:inherit;font-weight:var(--typography-weight-semibold);cursor:pointer;transition:color var(--duration-normal) var(--easing-default), border-color var(--duration-normal) var(--easing-default)}.tab::after{content:'';position:absolute;left:0;right:0;bottom:0;height:var(--border-accent-bar);background:var(--accent);opacity:0;transition:opacity var(--duration-normal) var(--easing-default)}.tab:hover{color:var(--text)}.tab:focus-visible{outline:var(--focus-outline-width) solid var(--accent);outline-offset:var(--focus-outline-offset)}.tab--active{color:var(--text)}.tab--active::after{opacity:1}.tab--disabled{opacity:var(--opacity-disabled);cursor:not-allowed}.tabpanel{padding-top:var(--spacing-2xl);color:var(--text)}.tabpanel[hidden]{display:none}`;
|
|
7987
8450
|
|
|
7988
8451
|
const FIRST_TAB_INDEX = 0;
|
|
@@ -8067,7 +8530,7 @@ class ChTabs {
|
|
|
8067
8530
|
}
|
|
8068
8531
|
render() {
|
|
8069
8532
|
const active = this.activeValue;
|
|
8070
|
-
return (hAsync(Host, { key: '
|
|
8533
|
+
return (hAsync(Host, { key: '5fd5208bb1b9b75f13b9d3830d042f623aaca651' }, hAsync("div", { key: '8d602a604a8315db01f3e4d28a39e866efabdb48', class: "tablist", role: "tablist", "aria-label": this.label, onKeyDown: this.handleKeyDown, ref: el => (this.tablistEl = el) }, this.tabs.map(tab => {
|
|
8071
8534
|
const selected = tab.value === active;
|
|
8072
8535
|
return (hAsync("button", { key: tab.value, type: "button", class: { 'tab': true, 'tab--active': selected, 'tab--disabled': Boolean(tab.disabled) }, role: "tab", id: this.tabId(tab.value), "data-value": tab.value, "aria-selected": selected ? 'true' : 'false', "aria-controls": this.panelId(tab.value), tabIndex: selected ? FIRST_TAB_INDEX : LAST_TAB_INDEX, disabled: tab.disabled, onClick: () => this.select(tab.value) }, tab.label));
|
|
8073
8536
|
})), this.tabs.map(tab => (hAsync("div", { key: `${tab.value}-panel`, class: "tabpanel", id: this.panelId(tab.value), role: "tabpanel", "aria-labelledby": this.tabId(tab.value), tabIndex: FIRST_TAB_INDEX, hidden: tab.value !== active }, hAsync("slot", { name: `panel-${tab.value}` }))))));
|
|
@@ -8209,7 +8672,7 @@ class ChTextarea {
|
|
|
8209
8672
|
return undefined;
|
|
8210
8673
|
}
|
|
8211
8674
|
render() {
|
|
8212
|
-
return (hAsync(Host, { key: '
|
|
8675
|
+
return (hAsync(Host, { key: '0f2b76444b3bff5d37d069bf1fe307781c5e59d1' }, this.label && (hAsync("label", { key: '08b83be70f33dc2c9b93a6d748564aad4eb63d76', class: "label", htmlFor: this.textareaId }, this.label)), hAsync("textarea", { key: '749876530342e5ff9d70ab7039dded1a4f0faa5a', id: this.label ? this.textareaId : undefined, class: { 'textarea': true, 'textarea--invalid': this.invalid }, rows: this.rows, name: this.name, placeholder: this.placeholder, disabled: this.disabled || this.formDisabled, required: this.required, value: this.value, "aria-invalid": this.invalid ? 'true' : undefined, "aria-describedby": this.describedBy, onInput: this.handleInput, onChange: this.handleChange }), this.hint && !(this.invalid && this.errorMessage) && (hAsync("p", { key: '36e41249852346df559bd278256cc89a79371a88', class: "hint", id: this.hintId }, this.hint)), this.invalid && this.errorMessage && (hAsync("p", { key: '90bda1f377da78e07eae82ee13069813c7ed1e8b', class: "error", id: this.errorId, role: "alert" }, this.errorMessage))));
|
|
8213
8676
|
}
|
|
8214
8677
|
static get formAssociated() { return true; }
|
|
8215
8678
|
static get watchers() { return {
|
|
@@ -8280,7 +8743,7 @@ class ChTimeline {
|
|
|
8280
8743
|
registerInstance(this, hostRef);
|
|
8281
8744
|
}
|
|
8282
8745
|
render() {
|
|
8283
|
-
return (hAsync(Host, { key: '
|
|
8746
|
+
return (hAsync(Host, { key: '50b3a225915e4223fa3eaf560cb1e15898026ec0', class: "timeline" }, hAsync("ol", { key: '5b5e218a419f63990deca2d1a7e0f8f36f63cc09', class: "list" }, hAsync("slot", { key: '69ff4592e898cdecb078437b6633e5e24c626e61' }))));
|
|
8284
8747
|
}
|
|
8285
8748
|
static get style() { return chTimelineCss(); }
|
|
8286
8749
|
static get cmpMeta() { return {
|
|
@@ -8394,7 +8857,7 @@ function correction(before, after) {
|
|
|
8394
8857
|
return 0;
|
|
8395
8858
|
}
|
|
8396
8859
|
|
|
8397
|
-
const chTooltipCss = () => `:host{display:inline-block}.anchor{position:relative;display:inline-flex}.bubble{position:absolute;z-index:var(--z-index-dropdown);width:max-content;max-width:min(16rem, calc(100vw - 2 * var(--spacing-2xl)));padding:var(--spacing-md) var(--spacing-2xl);border:var(--border-width) solid var(--border);border-radius:var(--radius-sm);background:var(--color-background-base);color:var(--text);font-family:var(--font-body);font-size:var(--typography-size-sm);line-height:1.4;opacity:0;visibility:hidden;transition:opacity var(--duration-fast) var(--easing-default), visibility var(--duration-fast) var(--easing-default)}.bubble--visible{opacity:1;visibility:visible}.bubble::before{content:'';position:absolute}.bubble--positioned{position:fixed;top:var(--ch-tooltip-offset-top);left:var(--ch-tooltip-offset-left);transform:none;margin:0}.bubble--top{bottom:100%;left:50%;transform:translateX(-50%);margin-bottom:var(--spacing-md)}.bubble.bubble--positioned.bubble--top,.bubble.bubble--positioned.bubble--bottom,.bubble.bubble--positioned.bubble--left,.bubble.bubble--positioned.bubble--right{inset:auto;top:var(--ch-tooltip-offset-top);left:var(--ch-tooltip-offset-left);right:auto;bottom:auto;transform:none;margin:0}.bubble--top::before{top:100%;left:0;right:0;height:var(--spacing-md)}.bubble--bottom{top:100%;left:50%;transform:translateX(-50%);margin-top:var(--spacing-md)}.bubble--bottom::before{bottom:100%;left:0;right:0;height:var(--spacing-md)}.bubble--left{right:100%;top:50%;transform:translateY(-50%);margin-right:var(--spacing-md)}.bubble--left::before{left:100%;top:0;bottom:0;width:var(--spacing-md)}.bubble--right{left:100%;top:50%;transform:translateY(-50%);margin-left:var(--spacing-md)}.bubble--right::before{right:100%;top:0;bottom:0;width:var(--spacing-md)}@media (prefers-reduced-motion: reduce){.bubble{transition:none}}`;
|
|
8860
|
+
const chTooltipCss = () => `:host{display:inline-block}.anchor{position:relative;display:inline-flex}.probe{position:fixed;top:0;left:0;width:1px;height:1px;visibility:hidden;pointer-events:none}.bubble{position:absolute;z-index:var(--z-index-dropdown);width:max-content;max-width:min(16rem, calc(100vw - 2 * var(--spacing-2xl)));padding:var(--spacing-md) var(--spacing-2xl);border:var(--border-width) solid var(--border);border-radius:var(--radius-sm);background:var(--color-background-base);color:var(--text);font-family:var(--font-body);font-size:var(--typography-size-sm);line-height:1.4;opacity:0;visibility:hidden;transition:opacity var(--duration-fast) var(--easing-default), visibility var(--duration-fast) var(--easing-default)}.bubble--visible{opacity:1;visibility:visible}.bubble::before{content:'';position:absolute}.bubble--positioned{position:fixed;top:var(--ch-tooltip-offset-top);left:var(--ch-tooltip-offset-left);transform:none;margin:0}.bubble--top{bottom:100%;left:50%;transform:translateX(-50%);margin-bottom:var(--spacing-md)}.bubble.bubble--positioned.bubble--top,.bubble.bubble--positioned.bubble--bottom,.bubble.bubble--positioned.bubble--left,.bubble.bubble--positioned.bubble--right{inset:auto;top:var(--ch-tooltip-offset-top);left:var(--ch-tooltip-offset-left);right:auto;bottom:auto;transform:none;margin:0}.bubble--top::before{top:100%;left:0;right:0;height:var(--spacing-md)}.bubble--bottom{top:100%;left:50%;transform:translateX(-50%);margin-top:var(--spacing-md)}.bubble--bottom::before{bottom:100%;left:0;right:0;height:var(--spacing-md)}.bubble--left{right:100%;top:50%;transform:translateY(-50%);margin-right:var(--spacing-md)}.bubble--left::before{left:100%;top:0;bottom:0;width:var(--spacing-md)}.bubble--right{left:100%;top:50%;transform:translateY(-50%);margin-left:var(--spacing-md)}.bubble--right::before{right:100%;top:0;bottom:0;width:var(--spacing-md)}@media (prefers-reduced-motion: reduce){.bubble{transition:none}}`;
|
|
8398
8861
|
|
|
8399
8862
|
let tooltipIds = 0;
|
|
8400
8863
|
/** Space between the trigger and the bubble, matching `--spacing-md`. */
|
|
@@ -8429,6 +8892,7 @@ class ChTooltip {
|
|
|
8429
8892
|
get el() { return getElement(this); }
|
|
8430
8893
|
fallbackId = `ch-tooltip-${++tooltipIds}`;
|
|
8431
8894
|
bubbleEl;
|
|
8895
|
+
probeEl;
|
|
8432
8896
|
cleanup;
|
|
8433
8897
|
/**
|
|
8434
8898
|
* The side the bubble is placed on. It is a preference: when that side has no
|
|
@@ -8520,30 +8984,46 @@ class ChTooltip {
|
|
|
8520
8984
|
* Measures the anchor and the bubble and stores the offset that keeps the
|
|
8521
8985
|
* bubble inside the viewport. Nothing is measured before the bubble has a
|
|
8522
8986
|
* box to measure, so the pre-paint render uses plain CSS.
|
|
8987
|
+
*
|
|
8988
|
+
* A fixed bubble is positioned against the nearest ancestor that establishes
|
|
8989
|
+
* a containing block (a `transform`, `filter`, `backdrop-filter`, `contain`
|
|
8990
|
+
* or `will-change`), not necessarily the viewport. The probe is fixed at the
|
|
8991
|
+
* containing block's origin, so both the anchor and the viewport are
|
|
8992
|
+
* converted into that same space before `placeOverlay` does its maths.
|
|
8523
8993
|
*/
|
|
8524
8994
|
position() {
|
|
8525
8995
|
if (typeof window === 'undefined') {
|
|
8526
8996
|
return;
|
|
8527
8997
|
}
|
|
8528
8998
|
const bubble = this.bubbleEl ?? (this.bubbleEl = this.el.shadowRoot?.querySelector('.bubble') ?? undefined);
|
|
8529
|
-
|
|
8999
|
+
const probe = this.probeEl ?? (this.probeEl = this.el.shadowRoot?.querySelector('.probe') ?? undefined);
|
|
9000
|
+
if (!bubble || !probe || bubble.offsetWidth === 0) {
|
|
8530
9001
|
return;
|
|
8531
9002
|
}
|
|
8532
9003
|
const anchorRect = this.slotted('trigger')?.getBoundingClientRect?.();
|
|
8533
9004
|
if (!anchorRect) {
|
|
8534
9005
|
return;
|
|
8535
9006
|
}
|
|
9007
|
+
const probeRect = probe.getBoundingClientRect();
|
|
9008
|
+
const scaleX = probeRect.width || 1;
|
|
9009
|
+
const scaleY = probeRect.height || 1;
|
|
9010
|
+
const inContainingBlock = (rect) => ({
|
|
9011
|
+
top: (rect.top - probeRect.top) / scaleY,
|
|
9012
|
+
left: (rect.left - probeRect.left) / scaleX,
|
|
9013
|
+
width: rect.width / scaleX,
|
|
9014
|
+
height: rect.height / scaleY,
|
|
9015
|
+
});
|
|
8536
9016
|
const surface = {
|
|
8537
9017
|
width: bubble.offsetWidth + horizontalMargin(bubble),
|
|
8538
9018
|
height: bubble.offsetHeight,
|
|
8539
9019
|
};
|
|
8540
9020
|
const viewport = window.visualViewport;
|
|
8541
9021
|
const { placement, top, left } = placeOverlay({
|
|
8542
|
-
anchor:
|
|
9022
|
+
anchor: inContainingBlock(anchorRect),
|
|
8543
9023
|
surface,
|
|
8544
|
-
viewport: viewport
|
|
9024
|
+
viewport: inContainingBlock(viewport
|
|
8545
9025
|
? { top: viewport.offsetTop, left: viewport.offsetLeft, width: viewport.width, height: viewport.height }
|
|
8546
|
-
: { top: 0, left: 0, width: window.innerWidth, height: window.innerHeight },
|
|
9026
|
+
: { top: 0, left: 0, width: window.innerWidth, height: window.innerHeight }),
|
|
8547
9027
|
preferred: this.placement,
|
|
8548
9028
|
gap: GAP,
|
|
8549
9029
|
});
|
|
@@ -8569,7 +9049,7 @@ class ChTooltip {
|
|
|
8569
9049
|
};
|
|
8570
9050
|
render() {
|
|
8571
9051
|
const { offset } = this;
|
|
8572
|
-
return (hAsync(Host, { key: '
|
|
9052
|
+
return (hAsync(Host, { key: 'c88fafd18dfa217051213dc510d7c3edd7e6fa45' }, hAsync("span", { key: '97b027bccda9cfcfed684556ed11211317ca97b3', class: "anchor" }, hAsync("span", { key: '30f76981b7d295b4459f3ca4045168e24ec1ee65', class: "probe", "aria-hidden": "true", ref: el => (this.probeEl = el) }), hAsync("slot", { key: 'f99a7e5b4ca3775e7af26edf9a9e9d76e7c7a292', name: "trigger", onSlotchange: this.associate }), hAsync("span", { key: '17b396847c0be20c03fc010b57dfe3c299dbf3c1', ref: el => (this.bubbleEl = el), style: {
|
|
8573
9053
|
'--ch-tooltip-offset-top': offset ? `${offset.top}px` : null,
|
|
8574
9054
|
'--ch-tooltip-offset-left': offset ? `${offset.left}px` : null,
|
|
8575
9055
|
}, class: {
|
|
@@ -8577,7 +9057,7 @@ class ChTooltip {
|
|
|
8577
9057
|
'bubble--positioned': Boolean(this.offset),
|
|
8578
9058
|
[`bubble--${this.resolvedPlacement ?? this.placement}`]: true,
|
|
8579
9059
|
'bubble--visible': this.visible,
|
|
8580
|
-
} }, hAsync("slot", { key: '
|
|
9060
|
+
} }, hAsync("slot", { key: 'd11e591c095b29033db96242dbeafa4347ee4326', name: "content", onSlotchange: this.associate })))));
|
|
8581
9061
|
}
|
|
8582
9062
|
static get style() { return chTooltipCss(); }
|
|
8583
9063
|
static get cmpMeta() { return {
|
|
@@ -8619,6 +9099,7 @@ registerComponents([
|
|
|
8619
9099
|
ChInput,
|
|
8620
9100
|
ChLink,
|
|
8621
9101
|
ChModal,
|
|
9102
|
+
ChNumberInput,
|
|
8622
9103
|
ChPageHeader,
|
|
8623
9104
|
ChRadio,
|
|
8624
9105
|
ChSegmentedControl,
|
|
@@ -8628,6 +9109,7 @@ registerComponents([
|
|
|
8628
9109
|
ChStack,
|
|
8629
9110
|
ChStat,
|
|
8630
9111
|
ChSwitch,
|
|
9112
|
+
ChTable,
|
|
8631
9113
|
ChTabs,
|
|
8632
9114
|
ChTextarea,
|
|
8633
9115
|
ChTimeline,
|