@devschile/chucao 2.7.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-d1e9f563.entry.js → p-01b6c7bf.entry.js} +2 -2
- package/dist/chucao/{p-39815ee2.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-339e3c30.entry.js → p-15d27bb7.entry.js} +2 -2
- package/dist/chucao/{p-afe45116.entry.js → p-1b70e3f1.entry.js} +2 -2
- package/dist/chucao/{p-d2077ae4.entry.js → p-1e4cd3aa.entry.js} +2 -2
- package/dist/chucao/{p-36c59ad1.entry.js → p-2e37c61b.entry.js} +2 -2
- package/dist/chucao/{p-999dba28.entry.js → p-42028c97.entry.js} +2 -2
- package/dist/chucao/{p-14184080.entry.js → p-472ec451.entry.js} +2 -2
- package/dist/chucao/{p-3f9894a4.entry.js → p-5240f5ac.entry.js} +2 -2
- package/dist/chucao/{p-62e762f7.entry.js → p-60e1c1df.entry.js} +2 -2
- package/dist/chucao/{p-e2fe7c5d.entry.js → p-7cdc71cc.entry.js} +2 -2
- package/dist/chucao/{p-4c8838a0.entry.js → p-8ae680a4.entry.js} +2 -2
- package/dist/chucao/{p-3e6614ee.entry.js → p-90284ebe.entry.js} +2 -2
- package/dist/chucao/{p-93f25dd5.entry.js → p-9db118d9.entry.js} +2 -2
- package/dist/chucao/{p-a84d4493.entry.js → p-9ebcc7be.entry.js} +2 -2
- package/dist/chucao/{p-507d4b69.entry.js → p-a7c674b7.entry.js} +2 -2
- package/dist/chucao/{p-4cda7f71.entry.js → p-c4b2bd1f.entry.js} +2 -2
- package/dist/chucao/{p-1852dfdb.entry.js → p-c90da3c0.entry.js} +2 -2
- package/dist/chucao/{p-08d90a3d.entry.js → p-d8b71751.entry.js} +2 -2
- package/dist/chucao/{p-10109256.entry.js → p-deb2571b.entry.js} +2 -2
- package/dist/chucao/{p-f17b186f.entry.js → p-e77d35c3.entry.js} +2 -2
- package/dist/chucao/{p-1e8d921d.entry.js → p-f6ab0a11.entry.js} +2 -2
- package/dist/chucao/{p-afacd489.entry.js → p-f917d34f.entry.js} +2 -2
- package/dist/chucao/{p-bf036509.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 +2 -2
- 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 +1 -1
- 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/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.js +2 -2
- 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.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.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-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.js +1 -1
- 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.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/ch-tooltip.js.map +1 -1
- package/dist/components/{p-CuczWSQU.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 +2 -2
- 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 +1 -1
- 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/types/components/ch-tooltip/ch-tooltip.d.ts +7 -0
- package/dist/types/utils/overlay.d.ts +1 -1
- package/hydrate/index.js +57 -40
- package/hydrate/index.mjs +57 -40
- package/package.json +1 -1
- package/dist/chucao/p-5c253fa0.entry.js +0 -2
- package/dist/chucao/p-5c253fa0.entry.js.map +0 -1
- /package/dist/chucao/{p-d1e9f563.entry.js.map → p-01b6c7bf.entry.js.map} +0 -0
- /package/dist/chucao/{p-39815ee2.entry.js.map → p-0c7f6f8d.entry.js.map} +0 -0
- /package/dist/chucao/{p-339e3c30.entry.js.map → p-15d27bb7.entry.js.map} +0 -0
- /package/dist/chucao/{p-afe45116.entry.js.map → p-1b70e3f1.entry.js.map} +0 -0
- /package/dist/chucao/{p-d2077ae4.entry.js.map → p-1e4cd3aa.entry.js.map} +0 -0
- /package/dist/chucao/{p-36c59ad1.entry.js.map → p-2e37c61b.entry.js.map} +0 -0
- /package/dist/chucao/{p-999dba28.entry.js.map → p-42028c97.entry.js.map} +0 -0
- /package/dist/chucao/{p-14184080.entry.js.map → p-472ec451.entry.js.map} +0 -0
- /package/dist/chucao/{p-3f9894a4.entry.js.map → p-5240f5ac.entry.js.map} +0 -0
- /package/dist/chucao/{p-62e762f7.entry.js.map → p-60e1c1df.entry.js.map} +0 -0
- /package/dist/chucao/{p-e2fe7c5d.entry.js.map → p-7cdc71cc.entry.js.map} +0 -0
- /package/dist/chucao/{p-4c8838a0.entry.js.map → p-8ae680a4.entry.js.map} +0 -0
- /package/dist/chucao/{p-3e6614ee.entry.js.map → p-90284ebe.entry.js.map} +0 -0
- /package/dist/chucao/{p-93f25dd5.entry.js.map → p-9db118d9.entry.js.map} +0 -0
- /package/dist/chucao/{p-a84d4493.entry.js.map → p-9ebcc7be.entry.js.map} +0 -0
- /package/dist/chucao/{p-507d4b69.entry.js.map → p-a7c674b7.entry.js.map} +0 -0
- /package/dist/chucao/{p-4cda7f71.entry.js.map → p-c4b2bd1f.entry.js.map} +0 -0
- /package/dist/chucao/{p-1852dfdb.entry.js.map → p-c90da3c0.entry.js.map} +0 -0
- /package/dist/chucao/{p-08d90a3d.entry.js.map → p-d8b71751.entry.js.map} +0 -0
- /package/dist/chucao/{p-10109256.entry.js.map → p-deb2571b.entry.js.map} +0 -0
- /package/dist/chucao/{p-f17b186f.entry.js.map → p-e77d35c3.entry.js.map} +0 -0
- /package/dist/chucao/{p-1e8d921d.entry.js.map → p-f6ab0a11.entry.js.map} +0 -0
- /package/dist/chucao/{p-afacd489.entry.js.map → p-f917d34f.entry.js.map} +0 -0
- /package/dist/chucao/{p-bf036509.entry.js.map → p-ffecdf25.entry.js.map} +0 -0
- /package/dist/components/{p-CuczWSQU.js.map → p-DiUN1WGc.js.map} +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{r as e,c as t,a as r,h as a,H as s}from"./p-CIV5Gg1o.js";const o=()=>`: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)}`;let i=0;const l=class{constructor(r){e(this,r);this.chSort=t(this,"chSort")}captionId=`ch-table-${++i}-caption`;emptyId=`${this.captionId}-empty`;get host(){return r(this)}columns=[];sortable=false;sortKey;sortDirection="ascending";label;empty="unmeasured";filtered=false;chSort;onFiltered(){this.measure()}rerenderHeaders(){this.rerender=!this.rerender}rerender=false;observer;componentDidLoad(){this.measure();if(typeof MutationObserver==="function"){this.observer=new MutationObserver(this.measure);this.observer.observe(this.host,{childList:true})}}disconnectedCallback(){this.observer?.disconnect();this.observer=undefined}measure=()=>{const e=Array.from(this.host.children).filter((e=>e.tagName==="TR"));this.empty=e.length===0?"true":"none"};get emptyState(){if(this.filtered){return"filtered"}return this.empty}sortCue(e){if(!e){return"⇅"}return this.sortDirection==="ascending"?"▲":"▼"}emptyMessage(e){return e==="filtered"?"No results for these filters.":"Nothing here yet."}nextDirection(e){if(this.sortKey!==e){return"ascending"}return this.sortDirection==="ascending"?"descending":"ascending"}handleSort=e=>{this.chSort.emit({key:e,direction:this.nextDirection(e)})};handleHeaderKeydown=(e,t)=>{if(e.key!=="Enter"&&e.key!==" "){return}e.preventDefault();this.handleSort(t)};renderHeaderCell(e){const t=this.sortable&&e.sortable!==false;if(!t){return a("th",{scope:"col",class:"cell cell--header"},e.label)}const r=this.sortKey===e.key;const s=r?this.sortDirection:"none";return a("th",{scope:"col",class:"cell cell--header","aria-sort":s},a("button",{type:"button",class:"sort",onClick:()=>this.handleSort(e.key),onKeyDown:t=>this.handleHeaderKeydown(t,e.key)},a("span",null,e.label),a("span",{class:"sort__cue","aria-hidden":"true"},this.sortCue(r))))}render(){const e=this.emptyState;return a(s,{key:"
|
|
2
|
-
//# sourceMappingURL=p-
|
|
1
|
+
import{r as e,c as t,a as r,h as a,H as s}from"./p-CIV5Gg1o.js";const o=()=>`: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)}`;let i=0;const l=class{constructor(r){e(this,r);this.chSort=t(this,"chSort")}captionId=`ch-table-${++i}-caption`;emptyId=`${this.captionId}-empty`;get host(){return r(this)}columns=[];sortable=false;sortKey;sortDirection="ascending";label;empty="unmeasured";filtered=false;chSort;onFiltered(){this.measure()}rerenderHeaders(){this.rerender=!this.rerender}rerender=false;observer;componentDidLoad(){this.measure();if(typeof MutationObserver==="function"){this.observer=new MutationObserver(this.measure);this.observer.observe(this.host,{childList:true})}}disconnectedCallback(){this.observer?.disconnect();this.observer=undefined}measure=()=>{const e=Array.from(this.host.children).filter((e=>e.tagName==="TR"));this.empty=e.length===0?"true":"none"};get emptyState(){if(this.filtered){return"filtered"}return this.empty}sortCue(e){if(!e){return"⇅"}return this.sortDirection==="ascending"?"▲":"▼"}emptyMessage(e){return e==="filtered"?"No results for these filters.":"Nothing here yet."}nextDirection(e){if(this.sortKey!==e){return"ascending"}return this.sortDirection==="ascending"?"descending":"ascending"}handleSort=e=>{this.chSort.emit({key:e,direction:this.nextDirection(e)})};handleHeaderKeydown=(e,t)=>{if(e.key!=="Enter"&&e.key!==" "){return}e.preventDefault();this.handleSort(t)};renderHeaderCell(e){const t=this.sortable&&e.sortable!==false;if(!t){return a("th",{scope:"col",class:"cell cell--header"},e.label)}const r=this.sortKey===e.key;const s=r?this.sortDirection:"none";return a("th",{scope:"col",class:"cell cell--header","aria-sort":s},a("button",{type:"button",class:"sort",onClick:()=>this.handleSort(e.key),onKeyDown:t=>this.handleHeaderKeydown(t,e.key)},a("span",null,e.label),a("span",{class:"sort__cue","aria-hidden":"true"},this.sortCue(r))))}render(){const e=this.emptyState;return a(s,{key:"f4511d753b9140b08eee0e50041ba4e7408930ec",class:{table:true,"table--empty":e==="true"||e==="filtered"}},a("div",{key:"8cc987803f5d000d7efbbc6b605561d2c6ca1c46",class:"table__scroll",tabIndex:0,role:"group","aria-labelledby":this.captionId},a("table",{key:"9eff6abfe0fecfd3559bfe397db3957fa60e288a"},a("caption",{key:"35d88e56267aff1ae9753326ffc807cf6e04bfba",id:this.captionId,class:"caption"},this.label),a("thead",{key:"0b01e865f3c0f40e9e86634f701b77886713e2e3"},a("tr",{key:"92ded28a12867b8a2a372a9b04e8fd251870a5c7"},this.columns.map((e=>this.renderHeaderCell(e))))),a("tbody",{key:"68d7a49aa51cf1e958f1af7ebc36cdb5f6acfdd0"},a("slot",{key:"79e296699379971e93b8a91b7823987be835ce8e"})))),(e==="true"||e==="filtered")&&a("div",{key:"b7b2734f3d83ced393377fbe6f2911d2466ce714",class:"table__empty",id:this.emptyId},a("slot",{key:"926191c01eef1f1898ad7fc800824021a697da35",name:"empty"},a("p",{key:"6302a52795029b3d31200ae3c1c4ff53af3ab81c",class:"table__empty-message"},this.emptyMessage(e)))))}static get watchers(){return{filtered:[{onFiltered:0}],sortKey:[{rerenderHeaders:0}],sortDirection:[{rerenderHeaders:0}],sortable:[{rerenderHeaders:0}]}}};l.style=o();export{l as ch_table};
|
|
2
|
+
//# sourceMappingURL=p-d8b71751.entry.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{r as t,c as a,a as r,h as e,H as i}from"./p-CIV5Gg1o.js";import{r as s}from"./p-BXzZsX2r.js";const o=()=>`: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)}.textarea{box-sizing:border-box;width:100%;min-height:var(--spacing-6xl);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;line-height:var(--spacing-5xl);resize:vertical;transition:border-color var(--duration-normal) var(--easing-default), box-shadow var(--duration-normal) var(--easing-default)}.textarea::placeholder{color:var(--text-muted)}.textarea:focus{border-color:var(--accent);box-shadow:var(--shadow-focus-ring);outline:none}.textarea--invalid{border-color:var(--color-status-warning)}.textarea--invalid:focus{border-color:var(--color-status-warning);box-shadow:0 0 0 3px var(--color-status-warning-background)}:host([data-touched]:invalid) .textarea,:host(:user-invalid) .textarea{border-color:var(--color-status-warning)}:host([data-touched]:invalid) .textarea:focus,:host(:user-invalid) .textarea:focus{border-color:var(--color-status-warning);box-shadow:0 0 0 3px var(--color-status-warning-background)}.textarea: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)}`;let h=0;const n=4;const d=class{constructor(r){t(this,r);this.chInput=a(this,"chInput");this.chChange=a(this,"chChange");if(r.$hostElement$["s-ei"]){this.internals=r.$hostElement$["s-ei"]}else{this.internals=r.$hostElement$.attachInternals();r.$hostElement$["s-ei"]=this.internals}}textareaId=`ch-textarea-${++h}`;hintId=`${this.textareaId}-hint`;errorId=`${this.textareaId}-error`;initialValue="";internals;formDisabled=false;get host(){return r(this)}label;value="";placeholder;rows=n;name;disabled=false;required=false;hint;errorMessage;invalid=false;chInput;chChange;handleInput=t=>{this.value=t.target.value;this.chInput.emit(this.value)};handleChange=t=>{this.value=t.target.value;this.chChange.emit(this.value)};syncForm(){const t=this.internals;if(typeof t?.setFormValue!=="function"){return}t.setFormValue(this.value);const{flags:a,message:r}=s({required:this.required,empty:this.value==="",invalid:this.invalid,errorMessage:this.errorMessage});t.setValidity(a,r)}componentDidLoad(){this.initialValue=this.value;this.syncForm();this.host.addEventListener("change",this.markTouched);this.host.addEventListener("focusout",this.markTouched);this.host.addEventListener("invalid",this.markTouched)}markTouched=()=>{this.host.setAttribute("data-touched","")};formResetCallback(){this.value=this.initialValue}formDisabledCallback(t){this.formDisabled=t}get describedBy(){if(this.invalid&&this.errorMessage){return this.errorId}if(this.hint){return this.hintId}return undefined}render(){return e(i,{key:"
|
|
2
|
-
//# sourceMappingURL=p-
|
|
1
|
+
import{r as t,c as a,a as r,h as e,H as i}from"./p-CIV5Gg1o.js";import{r as s}from"./p-BXzZsX2r.js";const o=()=>`: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)}.textarea{box-sizing:border-box;width:100%;min-height:var(--spacing-6xl);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;line-height:var(--spacing-5xl);resize:vertical;transition:border-color var(--duration-normal) var(--easing-default), box-shadow var(--duration-normal) var(--easing-default)}.textarea::placeholder{color:var(--text-muted)}.textarea:focus{border-color:var(--accent);box-shadow:var(--shadow-focus-ring);outline:none}.textarea--invalid{border-color:var(--color-status-warning)}.textarea--invalid:focus{border-color:var(--color-status-warning);box-shadow:0 0 0 3px var(--color-status-warning-background)}:host([data-touched]:invalid) .textarea,:host(:user-invalid) .textarea{border-color:var(--color-status-warning)}:host([data-touched]:invalid) .textarea:focus,:host(:user-invalid) .textarea:focus{border-color:var(--color-status-warning);box-shadow:0 0 0 3px var(--color-status-warning-background)}.textarea: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)}`;let h=0;const n=4;const d=class{constructor(r){t(this,r);this.chInput=a(this,"chInput");this.chChange=a(this,"chChange");if(r.$hostElement$["s-ei"]){this.internals=r.$hostElement$["s-ei"]}else{this.internals=r.$hostElement$.attachInternals();r.$hostElement$["s-ei"]=this.internals}}textareaId=`ch-textarea-${++h}`;hintId=`${this.textareaId}-hint`;errorId=`${this.textareaId}-error`;initialValue="";internals;formDisabled=false;get host(){return r(this)}label;value="";placeholder;rows=n;name;disabled=false;required=false;hint;errorMessage;invalid=false;chInput;chChange;handleInput=t=>{this.value=t.target.value;this.chInput.emit(this.value)};handleChange=t=>{this.value=t.target.value;this.chChange.emit(this.value)};syncForm(){const t=this.internals;if(typeof t?.setFormValue!=="function"){return}t.setFormValue(this.value);const{flags:a,message:r}=s({required:this.required,empty:this.value==="",invalid:this.invalid,errorMessage:this.errorMessage});t.setValidity(a,r)}componentDidLoad(){this.initialValue=this.value;this.syncForm();this.host.addEventListener("change",this.markTouched);this.host.addEventListener("focusout",this.markTouched);this.host.addEventListener("invalid",this.markTouched)}markTouched=()=>{this.host.setAttribute("data-touched","")};formResetCallback(){this.value=this.initialValue}formDisabledCallback(t){this.formDisabled=t}get describedBy(){if(this.invalid&&this.errorMessage){return this.errorId}if(this.hint){return this.hintId}return undefined}render(){return e(i,{key:"0f2b76444b3bff5d37d069bf1fe307781c5e59d1"},this.label&&e("label",{key:"08b83be70f33dc2c9b93a6d748564aad4eb63d76",class:"label",htmlFor:this.textareaId},this.label),e("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)&&e("p",{key:"36e41249852346df559bd278256cc89a79371a88",class:"hint",id:this.hintId},this.hint),this.invalid&&this.errorMessage&&e("p",{key:"90bda1f377da78e07eae82ee13069813c7ed1e8b",class:"error",id:this.errorId,role:"alert"},this.errorMessage))}static get formAssociated(){return true}static get watchers(){return{value:[{syncForm:0}],required:[{syncForm:0}],invalid:[{syncForm:0}],errorMessage:[{syncForm:0}]}}};d.style=o();export{d as ch_textarea};
|
|
2
|
+
//# sourceMappingURL=p-deb2571b.entry.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{r as e,h as t,H as a}from"./p-CIV5Gg1o.js";const s=()=>`:host{display:block;font-family:var(--typography-body);color:var(--color-text-secondary);text-align:center}:host([hidden]){display:none}.empty-state__inner{display:flex;flex-direction:column;align-items:center;gap:var(--spacing-sm);padding:var(--spacing-6xl) var(--spacing-2xl);border:var(--border-width) dashed var(--color-border-default);border-radius:var(--radius-md);background:var(--color-surface-default)}.empty-state--sm .empty-state__inner{padding:var(--spacing-3xl) var(--spacing-xl);gap:var(--spacing-xs)}.empty-state__icon{display:contents;font-size:var(--typography-size-xl);line-height:1}.empty-state__icon:empty{display:none}.empty-state__title{margin:0;font-family:var(--typography-heading);font-size:var(--typography-size-md);font-weight:var(--typography-weight-semibold);color:var(--color-text-primary)}.empty-state--md .empty-state__title{font-size:var(--typography-size-lg)}.empty-state__description{margin:0;max-width:36ch;font-size:var(--typography-size-sm);line-height:1.5}.empty-state__actions:empty{display:none}.empty-state__actions{display:flex;flex-wrap:wrap;gap:var(--spacing-sm);justify-content:center;margin-top:var(--spacing-xs)}`;const i=class{constructor(t){e(this,t)}title;description;size="md";render(){return t(a,{key:"
|
|
2
|
-
//# sourceMappingURL=p-
|
|
1
|
+
import{r as e,h as t,H as a}from"./p-CIV5Gg1o.js";const s=()=>`:host{display:block;font-family:var(--typography-body);color:var(--color-text-secondary);text-align:center}:host([hidden]){display:none}.empty-state__inner{display:flex;flex-direction:column;align-items:center;gap:var(--spacing-sm);padding:var(--spacing-6xl) var(--spacing-2xl);border:var(--border-width) dashed var(--color-border-default);border-radius:var(--radius-md);background:var(--color-surface-default)}.empty-state--sm .empty-state__inner{padding:var(--spacing-3xl) var(--spacing-xl);gap:var(--spacing-xs)}.empty-state__icon{display:contents;font-size:var(--typography-size-xl);line-height:1}.empty-state__icon:empty{display:none}.empty-state__title{margin:0;font-family:var(--typography-heading);font-size:var(--typography-size-md);font-weight:var(--typography-weight-semibold);color:var(--color-text-primary)}.empty-state--md .empty-state__title{font-size:var(--typography-size-lg)}.empty-state__description{margin:0;max-width:36ch;font-size:var(--typography-size-sm);line-height:1.5}.empty-state__actions:empty{display:none}.empty-state__actions{display:flex;flex-wrap:wrap;gap:var(--spacing-sm);justify-content:center;margin-top:var(--spacing-xs)}`;const i=class{constructor(t){e(this,t)}title;description;size="md";render(){return t(a,{key:"8ed0e4e1712c415ccc38050011af09c778a6bb48",class:{"empty-state":true,[`empty-state--${this.size}`]:true}},t("div",{key:"63a6dd1e1678c48da81af7e89dc90fd2288fdbfa",class:"empty-state__inner"},t("div",{key:"3753c28a9268eff9ebb936f3b8f9d4257e63ca41",class:"empty-state__icon","aria-hidden":"true"},t("slot",{key:"abc7a5a2b84d7d4d5be3cd5dcfa3da217e480a4f",name:"icon"})),t("h3",{key:"c6be0381802f307f35ea81a58fe8571d0799b97a",class:"empty-state__title"},this.title),this.description&&t("p",{key:"e8c953d3ed017ed9fd06c572a7d601217be317e3",class:"empty-state__description"},this.description),t("div",{key:"da062b6ceabc34cced61ed900f09025a83f401f4",class:"empty-state__actions"},t("slot",{key:"18930706af315dfbb2da7a492c79d3a468be3574"}))))}};i.style=s();export{i as ch_empty_state};
|
|
2
|
+
//# sourceMappingURL=p-e77d35c3.entry.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{r as i,h as e,H as n}from"./p-CIV5Gg1o.js";import{c as o}from"./p-CnivhwvG.js";const s=()=>`:host{display:inline-flex;line-height:0}.icon{display:block;flex:none;color:inherit}.icon--sm{width:var(--icon-size-sm);height:var(--icon-size-sm)}.icon--md{width:var(--icon-size-md);height:var(--icon-size-md)}.icon--lg{width:var(--icon-size-lg);height:var(--icon-size-lg)}`;const r=class{constructor(e){i(this,e)}name;size="md";label;render(){const i=this.name?o[this.name]:undefined;const s=!this.label;return e(n,{key:"
|
|
2
|
-
//# sourceMappingURL=p-
|
|
1
|
+
import{r as i,h as e,H as n}from"./p-CIV5Gg1o.js";import{c as o}from"./p-CnivhwvG.js";const s=()=>`:host{display:inline-flex;line-height:0}.icon{display:block;flex:none;color:inherit}.icon--sm{width:var(--icon-size-sm);height:var(--icon-size-sm)}.icon--md{width:var(--icon-size-md);height:var(--icon-size-md)}.icon--lg{width:var(--icon-size-lg);height:var(--icon-size-lg)}`;const r=class{constructor(e){i(this,e)}name;size="md";label;render(){const i=this.name?o[this.name]:undefined;const s=!this.label;return e(n,{key:"f45fcd8a7f620f12942e3c1dd1c68a16009905ad"},e("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:s?undefined:"img","aria-label":this.label,"aria-hidden":s?"true":undefined,focusable:"false"},(i??[]).map((i=>e(i.tag,i.attrs)))))}};r.style=s();export{r as ch_icon};
|
|
2
|
+
//# sourceMappingURL=p-f6ab0a11.entry.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{r as e,c as a,a as r,h as t,H as i}from"./p-CIV5Gg1o.js";import{l as o,u as n}from"./p-d8DfpzMR.js";const s=()=>`.drawer{position:fixed;inset:0;margin:0;box-sizing:border-box;flex-direction:column;gap:var(--spacing-2xl);width:min(24rem, 100vw);height:100vh;height:100dvh;max-width:100vw;max-height:100dvh;padding:var(--spacing-5xl);border:var(--border-width) solid var(--border);border-radius:0;background:var(--color-background-base);color:var(--text);font-family:var(--font-body);font-size:var(--typography-size-md);overflow:hidden}.drawer[open]{display:flex}.drawer--start{inset:0 auto 0 0;border-inline-start:none;animation:drawer-in-start var(--duration-normal) var(--easing-default)}.drawer--end{inset:0 0 0 auto;border-inline-end:none;animation:drawer-in-end var(--duration-normal) var(--easing-default)}.drawer--top{inset:0 0 auto 0;width:100vw;height:auto;max-height:80dvh;border-block-start:none;animation:drawer-in-top var(--duration-normal) var(--easing-default)}.drawer--bottom{inset:auto 0 0 0;width:100vw;height:auto;max-height:80dvh;border-block-end:none;animation:drawer-in-bottom var(--duration-normal) var(--easing-default)}.drawer::backdrop{background:var(--color-scrim-default);backdrop-filter:blur(var(--effect-blur))}.drawer-head{display:flex;align-items:flex-start;justify-content:space-between;gap:var(--spacing-2xl);flex:none}.drawer-body{flex:1;min-height:0;overflow-y:auto}::slotted([slot='footer']){display:flex;align-items:center;justify-content:flex-end;gap:var(--spacing-md);flex:none;padding-top:var(--spacing-2xl);border-top:var(--border-width) solid var(--border)}.drawer-close{display:inline-flex;align-items:center;justify-content:center;flex:none;padding:var(--spacing-2xs) var(--spacing-md);border:0;border-radius:var(--radius);background:none;color:var(--text-muted);cursor:pointer;font-family:var(--font-heading);font-size:var(--typography-size-lg);line-height:1;transition:background-color var(--duration-normal) var(--easing-default)}.drawer-close:hover{background:var(--surface-hover);color:var(--text)}.drawer-close:focus-visible{outline:var(--focus-outline-width) solid var(--accent);outline-offset:var(--focus-outline-offset)}@keyframes drawer-in-start{from{transform:translateX(-100%)}}@keyframes drawer-in-end{from{transform:translateX(100%)}}@keyframes drawer-in-top{from{transform:translateY(-100%)}}@keyframes drawer-in-bottom{from{transform:translateY(100%)}}@media (pointer: coarse){.drawer-close{min-width:44px;min-height:44px}}@media (prefers-reduced-motion: reduce){.drawer{animation:none}.drawer-close{transition:none}}`;const d=class{constructor(r){e(this,r);this.chOpen=a(this,"chOpen");this.chClose=a(this,"chClose")}get el(){return r(this)}open=false;side="end";label;closeLabel;chOpen;chClose;dialog;scrollLocked=false;pointerDownedOutside=false;componentDidLoad(){this.dialog?.addEventListener("close",this.handleNativeClose);this.dialog?.addEventListener("pointerdown",this.handlePointerDown);this.dialog?.addEventListener("click",this.handleClick);if(this.open){this.showDialog()}}disconnectedCallback(){this.dialog?.removeEventListener("close",this.handleNativeClose);this.dialog?.removeEventListener("pointerdown",this.handlePointerDown);this.dialog?.removeEventListener("click",this.handleClick);this.unlockScroll()}handleOpenChange(e){if(e){this.showDialog()}else{this.closeDialog()}}showDialog(){if(typeof this.dialog?.showModal!=="function"){return}this.lockScroll();this.dialog.showModal();this.chOpen.emit()}closeDialog(){if(typeof this.dialog?.close==="function"&&this.dialog.open){this.dialog.close()}}lockScroll(){if(this.scrollLocked){return}this.scrollLocked=true;o()}unlockScroll(){if(!this.scrollLocked){return}this.scrollLocked=false;n()}isOnBackdrop(e){if(!this.dialog||e.target!==this.dialog){return false}const a=this.dialog.getBoundingClientRect();return e.clientX<a.left||e.clientX>a.right||e.clientY<a.top||e.clientY>a.bottom}handlePointerDown=e=>{this.pointerDownedOutside=this.isOnBackdrop(e)};handleClick=e=>{const a=this.pointerDownedOutside&&this.isOnBackdrop(e);this.pointerDownedOutside=false;if(a){this.closeDialog()}};handleNativeClose=()=>{this.unlockScroll();if(this.open){this.open=false}this.chClose.emit()};handleCloseClick=()=>{if(typeof this.dialog?.close==="function"&&this.dialog.open){this.dialog.close();return}this.open=false;this.chClose.emit()};render(){return t(i,{key:"
|
|
2
|
-
//# sourceMappingURL=p-
|
|
1
|
+
import{r as e,c as a,a as r,h as t,H as i}from"./p-CIV5Gg1o.js";import{l as o,u as n}from"./p-d8DfpzMR.js";const s=()=>`.drawer{position:fixed;inset:0;margin:0;box-sizing:border-box;flex-direction:column;gap:var(--spacing-2xl);width:min(24rem, 100vw);height:100vh;height:100dvh;max-width:100vw;max-height:100dvh;padding:var(--spacing-5xl);border:var(--border-width) solid var(--border);border-radius:0;background:var(--color-background-base);color:var(--text);font-family:var(--font-body);font-size:var(--typography-size-md);overflow:hidden}.drawer[open]{display:flex}.drawer--start{inset:0 auto 0 0;border-inline-start:none;animation:drawer-in-start var(--duration-normal) var(--easing-default)}.drawer--end{inset:0 0 0 auto;border-inline-end:none;animation:drawer-in-end var(--duration-normal) var(--easing-default)}.drawer--top{inset:0 0 auto 0;width:100vw;height:auto;max-height:80dvh;border-block-start:none;animation:drawer-in-top var(--duration-normal) var(--easing-default)}.drawer--bottom{inset:auto 0 0 0;width:100vw;height:auto;max-height:80dvh;border-block-end:none;animation:drawer-in-bottom var(--duration-normal) var(--easing-default)}.drawer::backdrop{background:var(--color-scrim-default);backdrop-filter:blur(var(--effect-blur))}.drawer-head{display:flex;align-items:flex-start;justify-content:space-between;gap:var(--spacing-2xl);flex:none}.drawer-body{flex:1;min-height:0;overflow-y:auto}::slotted([slot='footer']){display:flex;align-items:center;justify-content:flex-end;gap:var(--spacing-md);flex:none;padding-top:var(--spacing-2xl);border-top:var(--border-width) solid var(--border)}.drawer-close{display:inline-flex;align-items:center;justify-content:center;flex:none;padding:var(--spacing-2xs) var(--spacing-md);border:0;border-radius:var(--radius);background:none;color:var(--text-muted);cursor:pointer;font-family:var(--font-heading);font-size:var(--typography-size-lg);line-height:1;transition:background-color var(--duration-normal) var(--easing-default)}.drawer-close:hover{background:var(--surface-hover);color:var(--text)}.drawer-close:focus-visible{outline:var(--focus-outline-width) solid var(--accent);outline-offset:var(--focus-outline-offset)}@keyframes drawer-in-start{from{transform:translateX(-100%)}}@keyframes drawer-in-end{from{transform:translateX(100%)}}@keyframes drawer-in-top{from{transform:translateY(-100%)}}@keyframes drawer-in-bottom{from{transform:translateY(100%)}}@media (pointer: coarse){.drawer-close{min-width:44px;min-height:44px}}@media (prefers-reduced-motion: reduce){.drawer{animation:none}.drawer-close{transition:none}}`;const d=class{constructor(r){e(this,r);this.chOpen=a(this,"chOpen");this.chClose=a(this,"chClose")}get el(){return r(this)}open=false;side="end";label;closeLabel;chOpen;chClose;dialog;scrollLocked=false;pointerDownedOutside=false;componentDidLoad(){this.dialog?.addEventListener("close",this.handleNativeClose);this.dialog?.addEventListener("pointerdown",this.handlePointerDown);this.dialog?.addEventListener("click",this.handleClick);if(this.open){this.showDialog()}}disconnectedCallback(){this.dialog?.removeEventListener("close",this.handleNativeClose);this.dialog?.removeEventListener("pointerdown",this.handlePointerDown);this.dialog?.removeEventListener("click",this.handleClick);this.unlockScroll()}handleOpenChange(e){if(e){this.showDialog()}else{this.closeDialog()}}showDialog(){if(typeof this.dialog?.showModal!=="function"){return}this.lockScroll();this.dialog.showModal();this.chOpen.emit()}closeDialog(){if(typeof this.dialog?.close==="function"&&this.dialog.open){this.dialog.close()}}lockScroll(){if(this.scrollLocked){return}this.scrollLocked=true;o()}unlockScroll(){if(!this.scrollLocked){return}this.scrollLocked=false;n()}isOnBackdrop(e){if(!this.dialog||e.target!==this.dialog){return false}const a=this.dialog.getBoundingClientRect();return e.clientX<a.left||e.clientX>a.right||e.clientY<a.top||e.clientY>a.bottom}handlePointerDown=e=>{this.pointerDownedOutside=this.isOnBackdrop(e)};handleClick=e=>{const a=this.pointerDownedOutside&&this.isOnBackdrop(e);this.pointerDownedOutside=false;if(a){this.closeDialog()}};handleNativeClose=()=>{this.unlockScroll();if(this.open){this.open=false}this.chClose.emit()};handleCloseClick=()=>{if(typeof this.dialog?.close==="function"&&this.dialog.open){this.dialog.close();return}this.open=false;this.chClose.emit()};render(){return t(i,{key:"871af03f0944e4272be64c1452cc28a0a39ac0f2"},t("dialog",{key:"540da9d2bff68d5528e65146b2a049adbc9723c2",class:{drawer:true,[`drawer--${this.side}`]:true},"aria-label":this.label,ref:e=>this.dialog=e},t("div",{key:"de569a4d239dd5e2bf6b2741b77307eb70ddced1",class:"drawer-head"},t("slot",{key:"e28ade42e0835a919aa5447dafbbbfff2de903d7",name:"header"}),this.closeLabel&&t("button",{key:"5cf29d8b791652fce663459f479826564637d6ca",class:"drawer-close",type:"button","aria-label":this.closeLabel,onClick:this.handleCloseClick},t("span",{key:"06a24d8b140db10b9d543530ea5dfbd8dd991019","aria-hidden":"true"},"×"))),t("div",{key:"b593bac5fb45234d501d3ec540f00d804ae5e066",class:"drawer-body"},t("slot",{key:"854cb053b30234aa31d59fcf27bb7d2820311eb3"})),t("slot",{key:"5c1fb51d3636af1762b26d72f5eaa79c5f779a60",name:"footer"})))}static get watchers(){return{open:[{handleOpenChange:0}]}}};d.style=s();export{d as ch_drawer};
|
|
2
|
+
//# sourceMappingURL=p-f917d34f.entry.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{r as i,h as r,H as e}from"./p-CIV5Gg1o.js";const t=()=>`:host{display:block}:host(.divider--vertical){display:inline-block;height:100%;align-self:stretch}.divider{margin:0;border:none;background:var(--border)}.divider--horizontal{width:100%;height:var(--border-width)}.divider--vertical{width:var(--border-width);height:100%}`;const d=class{constructor(r){i(this,r)}orientation="horizontal";render(){return r(e,{key:"
|
|
2
|
-
//# sourceMappingURL=p-
|
|
1
|
+
import{r as i,h as r,H as e}from"./p-CIV5Gg1o.js";const t=()=>`:host{display:block}:host(.divider--vertical){display:inline-block;height:100%;align-self:stretch}.divider{margin:0;border:none;background:var(--border)}.divider--horizontal{width:100%;height:var(--border-width)}.divider--vertical{width:var(--border-width);height:100%}`;const d=class{constructor(r){i(this,r)}orientation="horizontal";render(){return r(e,{key:"0ae19c8f91c810836781f7dac098b49b99c01389",class:{"divider--vertical":this.orientation==="vertical"}},r("hr",{key:"f5b782f7d67da28ec659fceef32ebf0f4d8ca521",class:{divider:true,[`divider--${this.orientation}`]:true},"aria-orientation":this.orientation}))}};d.style=t();export{d as ch_divider};
|
|
2
|
+
//# sourceMappingURL=p-ffecdf25.entry.js.map
|
|
@@ -34,7 +34,7 @@ const ChAccordion = class {
|
|
|
34
34
|
this.chChange.emit(this.value);
|
|
35
35
|
};
|
|
36
36
|
render() {
|
|
37
|
-
return (index.h(index.Host, { key: '
|
|
37
|
+
return (index.h(index.Host, { key: 'f147314134464f7455ac179fad62c1b9318efc92' }, this.items.map(item => {
|
|
38
38
|
const open = this.value === item.value;
|
|
39
39
|
return (index.h("div", { key: item.value, class: { 'item': true, 'item--open': open } }, index.h("h3", { class: "item-head" }, index.h("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)), index.h("div", { class: "item-panel", id: this.panelId(item.value), role: "region", "aria-labelledby": this.headerId(item.value), hidden: !open }, index.h("slot", { name: `panel-${item.value}` }))));
|
|
40
40
|
})));
|
|
@@ -52,7 +52,7 @@ const ChAlert = class {
|
|
|
52
52
|
render() {
|
|
53
53
|
const role = this.variant === 'warning' ? 'alert' : 'status';
|
|
54
54
|
const shapes = this.statusCue ? icons.chIcons[VARIANT_ICON[this.variant]] : undefined;
|
|
55
|
-
return (index.h(index.Host, { key: '
|
|
55
|
+
return (index.h(index.Host, { key: 'a223f49acce9b1336d1791c547be15e76e6fd740' }, index.h("div", { key: role, class: { alert: true, [`alert--${this.variant}`]: true }, role: role }, shapes && (index.h("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 => index.h(shape.tag, shape.attrs)))), index.h("div", { key: 'be4eb0acb06ba3b95eae29a08911f4e3a76a5998', class: "alert-content" }, index.h("slot", { key: '1ebb312baa833210658003113d6aee562a05cb50' })), this.dismissLabel && (index.h("button", { key: '388986c78e41cf66e74071a27c0ffa9a146fcacb', class: "alert-dismiss", type: "button", "aria-label": this.dismissLabel, onClick: this.handleDismiss }, index.h("span", { key: '24c24edbee8549bb64a6e9dcc381ebdae8d5d72d', "aria-hidden": "true" }, "\u00D7"))))));
|
|
56
56
|
}
|
|
57
57
|
};
|
|
58
58
|
ChAlert.style = chAlertCss();
|
|
@@ -74,7 +74,7 @@ const ChBadge = class {
|
|
|
74
74
|
*/
|
|
75
75
|
statusCue = true;
|
|
76
76
|
render() {
|
|
77
|
-
return (index.h(index.Host, { key: '
|
|
77
|
+
return (index.h(index.Host, { key: '8d92a45ab1f2932deb6a316d20e3aecd59d35498' }, index.h("span", { key: '16e499ffe26d47e2da057fd49fa214fba0dc9277', class: { badge: true, [`badge--${this.variant}`]: true } }, this.statusCue && index.h("span", { key: '040dbe5203403812ed98f84b03029ae38071f533', class: "badge-dot", "aria-hidden": "true" }), index.h("slot", { key: '89c1c35f937bc141bad71a9bee0f76d8b2d28666' }))));
|
|
78
78
|
}
|
|
79
79
|
};
|
|
80
80
|
ChBadge.style = chBadgeCss();
|
|
@@ -178,7 +178,7 @@ const ChCard = class {
|
|
|
178
178
|
index.registerInstance(this, hostRef);
|
|
179
179
|
}
|
|
180
180
|
render() {
|
|
181
|
-
return (index.h(index.Host, { key: '
|
|
181
|
+
return (index.h(index.Host, { key: '2857d45b454709a8285fd52dbaa0943d571908b1' }, index.h("div", { key: 'a252222f7d25a697b4d6e8cd240564668a908652', class: "card" }, index.h("slot", { key: '4cadc2ad7fdbb2141d2a77bc19d5e6344e574b7a' }))));
|
|
182
182
|
}
|
|
183
183
|
};
|
|
184
184
|
ChCard.style = chCardCss();
|
|
@@ -304,7 +304,7 @@ const ChInput = class {
|
|
|
304
304
|
return undefined;
|
|
305
305
|
}
|
|
306
306
|
render() {
|
|
307
|
-
return (index.h(index.Host, { key: '
|
|
307
|
+
return (index.h(index.Host, { key: '2b6755db381eeecb5c7c15730f351b5a28b2f89a' }, this.label && (index.h("label", { key: 'a4c4be2f9ca0dddc175597a12d2e48c3a5030131', class: "label", htmlFor: this.inputId }, this.label)), index.h("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) && (index.h("p", { key: '857edf91f7b9657b34763fa06bae3d57e07d861c', class: "hint", id: this.hintId }, this.hint)), this.invalid && this.errorMessage && (index.h("p", { key: '4516a30cd0d40e3b9e53430416934497c92b1f88', class: "error", id: this.errorId, role: "alert" }, this.errorMessage))));
|
|
308
308
|
}
|
|
309
309
|
static get formAssociated() { return true; }
|
|
310
310
|
static get watchers() { return {
|
|
@@ -436,7 +436,7 @@ const ChSelect = class {
|
|
|
436
436
|
return undefined;
|
|
437
437
|
}
|
|
438
438
|
render() {
|
|
439
|
-
return (index.h(index.Host, { key: '
|
|
439
|
+
return (index.h(index.Host, { key: 'f57fbcbfaaf64a9cbf1f201edd2f9f714db9afee' }, this.label && (index.h("label", { key: 'e7a4a802ff85cd597e5bdb9a54858e3cbbbcf73b', class: "label", htmlFor: this.selectId }, this.label)), index.h("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 && (index.h("option", { key: '9a002af8f52ab2bb2d2c762417cad071b7dd06c7', value: "", disabled: true, hidden: true, selected: !this.value }, this.placeholder)), this.options.map(option => (index.h("option", { value: option.value, disabled: option.disabled, selected: option.value === this.value }, option.label)))), this.hint && !(this.invalid && this.errorMessage) && (index.h("p", { key: '0224ab6e0a54b925e0754c43bb15ceaab84c34a4', class: "hint", id: this.hintId }, this.hint)), this.invalid && this.errorMessage && (index.h("p", { key: '1624ae9938d47971ee8195f986c45454dad7f846', class: "error", id: this.errorId, role: "alert" }, this.errorMessage))));
|
|
440
440
|
}
|
|
441
441
|
static get formAssociated() { return true; }
|
|
442
442
|
static get watchers() { return {
|
|
@@ -477,7 +477,7 @@ const ChSpinner = class {
|
|
|
477
477
|
label;
|
|
478
478
|
render() {
|
|
479
479
|
const labelled = Boolean(this.label);
|
|
480
|
-
return (index.h(index.Host, { key: '
|
|
480
|
+
return (index.h(index.Host, { key: '1d8ef18f03d7a52d61854cc84fb39994ee8ce0a9' }, index.h("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' })));
|
|
481
481
|
}
|
|
482
482
|
};
|
|
483
483
|
ChSpinner.style = chSpinnerCss();
|
|
@@ -590,7 +590,7 @@ const ChSwitch = class {
|
|
|
590
590
|
return undefined;
|
|
591
591
|
}
|
|
592
592
|
render() {
|
|
593
|
-
return (index.h(index.Host, { key: '
|
|
593
|
+
return (index.h(index.Host, { key: '8bafcbe9b03858f278f0884d43b9ce579a98c84e' }, index.h("label", { key: '8783c0e8ce0bb9c03a3772a08afb383e338b5be4', class: { 'control': true, 'control--disabled': this.disabled || this.formDisabled }, htmlFor: this.switchId }, index.h("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 }), index.h("span", { key: 'eea728ebbf6c6fefd761415bf8cb00765e5c2e76', class: "track" }, index.h("span", { key: '4d18d8c9ed871bbf6e537b93bcce14c0f00f00e9', class: "thumb" })), this.label && index.h("span", { key: '048657735d8fdf9a03a89b83cf3f3d65a466d886', class: "label-text" }, this.label)), this.hint && !(this.invalid && this.errorMessage) && (index.h("p", { key: '869a40f9ce8bd2f93d918426f119c637039ac5e9', class: "hint", id: this.hintId }, this.hint)), this.invalid && this.errorMessage && (index.h("p", { key: '08d947e2909706290b7efbb3e8af6999ad249dea', class: "error", id: this.errorId, role: "alert" }, this.errorMessage))));
|
|
594
594
|
}
|
|
595
595
|
static get formAssociated() { return true; }
|
|
596
596
|
static get watchers() { return {
|
|
@@ -111,7 +111,7 @@ const ChCheckbox = class {
|
|
|
111
111
|
return undefined;
|
|
112
112
|
}
|
|
113
113
|
render() {
|
|
114
|
-
return (index.h(index.Host, { key: '
|
|
114
|
+
return (index.h(index.Host, { key: 'b3ea4a0cfad08ea8c00ac1fbdb54f130a76943b4' }, index.h("label", { key: '7e1736c41138ab6b73ee30590f290768feb786a1', class: { 'control': true, 'control--disabled': this.disabled || this.formDisabled }, htmlFor: this.checkboxId }, index.h("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 && index.h("span", { key: '581b62c2a907bc9634d8c137f2539e47c90f79e1', class: "label-text" }, this.label)), this.hint && !(this.invalid && this.errorMessage) && (index.h("p", { key: '51ea863dd984d90fdf70a6f6d8dabdffa92d7340', class: "hint", id: this.hintId }, this.hint)), this.invalid && this.errorMessage && (index.h("p", { key: '561ef3469af4bbf8f4eef568a0372f78618c047b', class: "error", id: this.errorId, role: "alert" }, this.errorMessage))));
|
|
115
115
|
}
|
|
116
116
|
static get formAssociated() { return true; }
|
|
117
117
|
static get watchers() { return {
|
|
@@ -30,13 +30,13 @@ const ChCluster = class {
|
|
|
30
30
|
return GAPS.has(this.gap) ? this.gap : 'md';
|
|
31
31
|
}
|
|
32
32
|
render() {
|
|
33
|
-
return (index.h(index.Host, { key: '
|
|
33
|
+
return (index.h(index.Host, { key: '63f10662f55078a9aec2680653c040c8411cd80f', class: {
|
|
34
34
|
'cluster': true,
|
|
35
35
|
[`cluster--gap-${this.gapStep}`]: true,
|
|
36
36
|
[`cluster--align-${this.align}`]: true,
|
|
37
37
|
[`cluster--justify-${this.justify}`]: true,
|
|
38
38
|
'cluster--nowrap': !this.wrap,
|
|
39
|
-
} }, index.h("slot", { key: '
|
|
39
|
+
} }, index.h("slot", { key: '60f9896089d707fe0ef1980dcb9115bcf3308a2f' })));
|
|
40
40
|
}
|
|
41
41
|
};
|
|
42
42
|
ChCluster.style = chClusterCss();
|
|
@@ -18,7 +18,7 @@ const ChDescriptionList = class {
|
|
|
18
18
|
return COLUMNS.has(this.columns) ? this.columns : '1';
|
|
19
19
|
}
|
|
20
20
|
render() {
|
|
21
|
-
return (index.h(index.Host, { key: '
|
|
21
|
+
return (index.h(index.Host, { key: '2f349aa14dc442e4e531dacc2d9f6b02fc2b141a' }, index.h("dl", { key: 'de4bf1b60c31f0319bc5e169304134c8e0046912', class: `list list--columns-${this.columnCount}` }, index.h("slot", { key: '4ef568fa3e64048ba6e586ae9e8d10c21ad326aa' }))));
|
|
22
22
|
}
|
|
23
23
|
};
|
|
24
24
|
ChDescriptionList.style = chDescriptionListCss();
|
|
@@ -13,7 +13,7 @@ const ChDivider = class {
|
|
|
13
13
|
*/
|
|
14
14
|
orientation = 'horizontal';
|
|
15
15
|
render() {
|
|
16
|
-
return (index.h(index.Host, { key: '
|
|
16
|
+
return (index.h(index.Host, { key: '0ae19c8f91c810836781f7dac098b49b99c01389', class: { 'divider--vertical': this.orientation === 'vertical' } }, index.h("hr", { key: 'f5b782f7d67da28ec659fceef32ebf0f4d8ca521', class: { divider: true, [`divider--${this.orientation}`]: true }, "aria-orientation": this.orientation })));
|
|
17
17
|
}
|
|
18
18
|
};
|
|
19
19
|
ChDivider.style = chDividerCss();
|
|
@@ -138,7 +138,7 @@ const ChDrawer = class {
|
|
|
138
138
|
this.chClose.emit();
|
|
139
139
|
};
|
|
140
140
|
render() {
|
|
141
|
-
return (index.h(index.Host, { key: '
|
|
141
|
+
return (index.h(index.Host, { key: '871af03f0944e4272be64c1452cc28a0a39ac0f2' }, index.h("dialog", { key: '540da9d2bff68d5528e65146b2a049adbc9723c2', class: { drawer: true, [`drawer--${this.side}`]: true }, "aria-label": this.label, ref: el => (this.dialog = el) }, index.h("div", { key: 'de569a4d239dd5e2bf6b2741b77307eb70ddced1', class: "drawer-head" }, index.h("slot", { key: 'e28ade42e0835a919aa5447dafbbbfff2de903d7', name: "header" }), this.closeLabel && (index.h("button", { key: '5cf29d8b791652fce663459f479826564637d6ca', class: "drawer-close", type: "button", "aria-label": this.closeLabel, onClick: this.handleCloseClick }, index.h("span", { key: '06a24d8b140db10b9d543530ea5dfbd8dd991019', "aria-hidden": "true" }, "\u00D7")))), index.h("div", { key: 'b593bac5fb45234d501d3ec540f00d804ae5e066', class: "drawer-body" }, index.h("slot", { key: '854cb053b30234aa31d59fcf27bb7d2820311eb3' })), index.h("slot", { key: '5c1fb51d3636af1762b26d72f5eaa79c5f779a60', name: "footer" }))));
|
|
142
142
|
}
|
|
143
143
|
static get watchers() { return {
|
|
144
144
|
"open": [{
|
|
@@ -84,7 +84,7 @@ const ChEmoji = class {
|
|
|
84
84
|
this.loaded = true;
|
|
85
85
|
};
|
|
86
86
|
render() {
|
|
87
|
-
return (index.h(index.Host, { key: '
|
|
87
|
+
return (index.h(index.Host, { key: '8444f71f1c84fd8b1940503c5e7bf5ff62bbb9e6' }, index.h("img", { key: 'ce9c083238c87557f71838ab8de50038fc43a2bd', class: {
|
|
88
88
|
'emoji': true,
|
|
89
89
|
[`emoji--${this.size}`]: true,
|
|
90
90
|
'emoji--hidden': !this.loaded,
|
|
@@ -23,7 +23,7 @@ const ChEmptyState = class {
|
|
|
23
23
|
*/
|
|
24
24
|
size = 'md';
|
|
25
25
|
render() {
|
|
26
|
-
return (index.h(index.Host, { key: '
|
|
26
|
+
return (index.h(index.Host, { key: '8ed0e4e1712c415ccc38050011af09c778a6bb48', class: { 'empty-state': true, [`empty-state--${this.size}`]: true } }, index.h("div", { key: '63a6dd1e1678c48da81af7e89dc90fd2288fdbfa', class: "empty-state__inner" }, index.h("div", { key: '3753c28a9268eff9ebb936f3b8f9d4257e63ca41', class: "empty-state__icon", "aria-hidden": "true" }, index.h("slot", { key: 'abc7a5a2b84d7d4d5be3cd5dcfa3da217e480a4f', name: "icon" })), index.h("h3", { key: 'c6be0381802f307f35ea81a58fe8571d0799b97a', class: "empty-state__title" }, this.title), this.description && index.h("p", { key: 'e8c953d3ed017ed9fd06c572a7d601217be317e3', class: "empty-state__description" }, this.description), index.h("div", { key: 'da062b6ceabc34cced61ed900f09025a83f401f4', class: "empty-state__actions" }, index.h("slot", { key: '18930706af315dfbb2da7a492c79d3a468be3574' })))));
|
|
27
27
|
}
|
|
28
28
|
};
|
|
29
29
|
ChEmptyState.style = chEmptyStateCss();
|
|
@@ -48,7 +48,7 @@ const ChGrid = class {
|
|
|
48
48
|
this.el.style.setProperty('--ch-grid-columns', template);
|
|
49
49
|
}
|
|
50
50
|
render() {
|
|
51
|
-
return (index.h(index.Host, { key: '
|
|
51
|
+
return (index.h(index.Host, { key: 'de6c2d15da9a5d735327df077c6b58abe9775267', class: { grid: true, [`grid--gap-${this.gapStep}`]: true } }, index.h("slot", { key: '348289bcf2f46fb07e7392afa00c4619d6614fef' })));
|
|
52
52
|
}
|
|
53
53
|
};
|
|
54
54
|
ChGrid.style = chGridCss();
|
|
@@ -40,7 +40,7 @@ const ChIconButton = class {
|
|
|
40
40
|
};
|
|
41
41
|
render() {
|
|
42
42
|
const shapes = this.name ? icons.chIcons[this.name] : undefined;
|
|
43
|
-
return (index.h(index.Host, { key: '
|
|
43
|
+
return (index.h(index.Host, { key: 'cdef3ba2a7577cb7119aa943138746905de21dbb' }, index.h("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 }, index.h("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 => index.h(shape.tag, shape.attrs))))));
|
|
44
44
|
}
|
|
45
45
|
};
|
|
46
46
|
ChIconButton.style = chIconButtonCss();
|
|
@@ -27,7 +27,7 @@ const ChIcon = class {
|
|
|
27
27
|
render() {
|
|
28
28
|
const shapes = this.name ? icons.chIcons[this.name] : undefined;
|
|
29
29
|
const decorative = !this.label;
|
|
30
|
-
return (index.h(index.Host, { key: '
|
|
30
|
+
return (index.h(index.Host, { key: 'f45fcd8a7f620f12942e3c1dd1c68a16009905ad' }, index.h("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 => index.h(shape.tag, shape.attrs)))));
|
|
31
31
|
}
|
|
32
32
|
};
|
|
33
33
|
ChIcon.style = chIconCss();
|
|
@@ -140,7 +140,7 @@ const ChModal = class {
|
|
|
140
140
|
this.chClose.emit();
|
|
141
141
|
};
|
|
142
142
|
render() {
|
|
143
|
-
return (index.h(index.Host, { key: '
|
|
143
|
+
return (index.h(index.Host, { key: 'b0fced593159cc6e6952831f9460cce1efd532d4' }, index.h("dialog", { key: '81180fe5cdd62df43f5aa35a8358b4e86cc8dc40', class: { modal: true, [`modal--${this.size}`]: true }, "aria-label": this.label, ref: el => (this.dialog = el) }, index.h("div", { key: '4c13adb1131ee26978f607b86e7eb8a9e65ce3a7', class: "modal-head" }, index.h("slot", { key: '4cb35bd7f0c290ef0c7aec5df60a839f8c383e66', name: "heading" }), this.closeLabel && (index.h("button", { key: 'f967cf89873760e1156081a77402d12252cbc20d', class: "modal-close", type: "button", "aria-label": this.closeLabel, onClick: this.handleCloseClick }, index.h("span", { key: '719e26b74726be28f50587dca769c257db3ecdec', "aria-hidden": "true" }, "\u00D7")))), index.h("div", { key: 'b6a44ef698e580031aa9efa5b5a177c9c1218488', class: "modal-body" }, index.h("slot", { key: '27c107491182196ee3ea3aa8d6746da0a9be40a6' })))));
|
|
144
144
|
}
|
|
145
145
|
static get watchers() { return {
|
|
146
146
|
"open": [{
|
|
@@ -205,10 +205,10 @@ const ChNumberInput = class {
|
|
|
205
205
|
}
|
|
206
206
|
render() {
|
|
207
207
|
const showError = this.isInvalid && this.errorMessage;
|
|
208
|
-
return (index.h(index.Host, { key: '
|
|
208
|
+
return (index.h(index.Host, { key: '1c424d9d76ec39e6cc6018d6ba483f95bd203d32' }, this.label && (index.h("label", { key: '4fc03334128c33cc425da773df063cd99fee215c', class: "label", htmlFor: this.inputId }, this.label)), index.h("input", { key: 'ece15737f83c181d615e906aba5cce80c0bcb8ba', id: this.label ? this.inputId : undefined, class: { 'input': true, 'input--invalid': this.isInvalid },
|
|
209
209
|
// `text` with `inputmode`, not `type="number"`: a number input drops
|
|
210
210
|
// partial values and cannot show grouped digits.
|
|
211
|
-
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 && (index.h("p", { key: '
|
|
211
|
+
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 && (index.h("p", { key: '7a2e3031b8bfebf26857dd60eb18340f21a01f3d', class: "hint", id: this.hintId }, this.hint)), showError && (index.h("p", { key: 'f90492532d27088f18b258f885d5d471f31d27cb', class: "error", id: this.errorId, role: "alert" }, this.errorMessage))));
|
|
212
212
|
}
|
|
213
213
|
static get formAssociated() { return true; }
|
|
214
214
|
static get watchers() { return {
|
|
@@ -34,7 +34,7 @@ const ChPageHeader = class {
|
|
|
34
34
|
actionsStacked = false;
|
|
35
35
|
render() {
|
|
36
36
|
const Heading = this.headingLevel;
|
|
37
|
-
return (index.h(index.Host, { key: '
|
|
37
|
+
return (index.h(index.Host, { key: '3d8de76e3df7fba8be55d0708861c7d136b05722' }, index.h("div", { key: '057d2b4359b9faff34b9fbf6886b04d5d89dc9ac', class: { 'header': true, 'header--stacked': this.actionsStacked } }, index.h("div", { key: '1ff40b1cd100d41a72d80ab35e619f93b4a43633', class: "header-text" }, this.eyebrow && index.h("p", { key: '6c2538bf1d450a6dca25fd2815968a9622f7fcbf', class: "header-eyebrow" }, this.eyebrow), index.h(Heading, { key: '54cdf8e62468e11cf9fe084023e4fe624f958452', class: "header-title" }, this.title), this.description && index.h("p", { key: 'fe9c6cc78354b38b8833871ddc53d412007abe29', class: "header-description" }, this.description)), index.h("div", { key: 'e91a66715e2c23478c375ce9ddcf29c04f85b3eb', class: "header-actions" }, index.h("slot", { key: '06654c2a28d004791ed5b9c213cd66ef80bbcc85', name: "actions" })))));
|
|
38
38
|
}
|
|
39
39
|
};
|
|
40
40
|
ChPageHeader.style = chPageHeaderCss();
|
|
@@ -114,7 +114,7 @@ const ChRadio = class {
|
|
|
114
114
|
}
|
|
115
115
|
render() {
|
|
116
116
|
const groupName = this.name || `${this.groupId}-group`;
|
|
117
|
-
return (index.h(index.Host, { key: '
|
|
117
|
+
return (index.h(index.Host, { key: 'a027da2d803a6e8a2a35afa1920dd3b0f8e06b01' }, this.label && (index.h("span", { key: '28e11cd1148a89a4f3e85d331f00e39f1d7751ce', class: "group-label", id: this.labelId }, this.label)), index.h("div", { key: '43d8a53c9bec1dc129b6588c0118ebe2109b4b7e', class: "radio-group", role: "radiogroup", "aria-labelledby": this.label ? this.labelId : undefined }, this.options.map(option => (index.h("label", { class: { 'control': true, 'control--disabled': this.disabled || this.formDisabled || option.disabled } }, index.h("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 }), index.h("span", { class: "mark" }), index.h("span", { class: "label-text" }, option.label))))), this.hint && !(this.invalid && this.errorMessage) && (index.h("p", { key: '27335cc50f8b280f93857eea370aa37e2290b46b', class: "hint", id: this.hintId }, this.hint)), this.invalid && this.errorMessage && (index.h("p", { key: '83f93bdc0739961136062acb784a3d6e666de349', class: "error", id: this.errorId, role: "alert" }, this.errorMessage))));
|
|
118
118
|
}
|
|
119
119
|
static get formAssociated() { return true; }
|
|
120
120
|
static get watchers() { return {
|
|
@@ -93,7 +93,7 @@ const ChSegmentedControl = class {
|
|
|
93
93
|
}
|
|
94
94
|
render() {
|
|
95
95
|
const groupName = this.name || `${this.groupId}-group`;
|
|
96
|
-
return (index.h(index.Host, { key: '
|
|
96
|
+
return (index.h(index.Host, { key: '59e0782a5c120cd243bbd67eb727ba1a7755d45f' }, this.label && (index.h("span", { key: 'f1faf9b240224e4c2b10059ed7bf667e24e5997d', class: "group-label", id: this.labelId }, this.label)), index.h("div", { key: 'b9e59c0fbd4af04ad4d079415497440ec0a60801', class: { segmented: true, [`segmented--${this.size}`]: true }, role: "radiogroup", "aria-labelledby": this.label ? this.labelId : undefined }, this.options.map(option => (index.h("label", { class: { 'control': true, 'control--disabled': this.disabled || this.formDisabled || option.disabled } }, index.h("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 }), index.h("span", { class: "label-text" }, option.label)))))));
|
|
97
97
|
}
|
|
98
98
|
static get formAssociated() { return true; }
|
|
99
99
|
static get watchers() { return {
|
|
@@ -47,7 +47,7 @@ const ChSkeleton = class {
|
|
|
47
47
|
return { width: this.width, height: this.height };
|
|
48
48
|
}
|
|
49
49
|
render() {
|
|
50
|
-
return (index.h(index.Host, { key: '
|
|
50
|
+
return (index.h(index.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$1) => (index.h("span", { class: "skeleton__item", style: this.sizeStyle, key: index$1, "data-index": String(value) })))));
|
|
51
51
|
}
|
|
52
52
|
};
|
|
53
53
|
ChSkeleton.style = chSkeletonCss();
|
|
@@ -26,7 +26,7 @@ const ChStack = class {
|
|
|
26
26
|
return GAPS.has(this.gap) ? this.gap : 'md';
|
|
27
27
|
}
|
|
28
28
|
render() {
|
|
29
|
-
return (index.h(index.Host, { key: '
|
|
29
|
+
return (index.h(index.Host, { key: '1c70344ce291ba78a533f99ac6c4c135296251e1', class: { stack: true, [`stack--gap-${this.gapStep}`]: true, [`stack--align-${this.align}`]: true, [`stack--justify-${this.justify}`]: true } }, index.h("slot", { key: 'f4167e47a2fdee42f97611fba5907d79f8d0448d' })));
|
|
30
30
|
}
|
|
31
31
|
};
|
|
32
32
|
ChStack.style = chStackCss();
|
|
@@ -32,10 +32,10 @@ const ChStat = class {
|
|
|
32
32
|
}
|
|
33
33
|
render() {
|
|
34
34
|
const cue = this.toneClass === 'positive' ? '+' : this.toneClass === 'negative' ? '−' : null;
|
|
35
|
-
return (index.h(index.Host, { key: '
|
|
35
|
+
return (index.h(index.Host, { key: '76d71c964efeb4e5a07aabff0b895f1ded21b345', class: "stat" }, index.h("div", { key: '103db766f21c91c8406e8d3368049f4e4a018007', class: "stat__inner" }, index.h("span", { key: '74e45654072a92ba4f894aee5366852561f8f352', class: "stat__label" }, this.label), index.h("span", { key: 'deb8d0d20c70d7fbab392641fd9d0e617ab8daf5', class: {
|
|
36
36
|
stat__value: true,
|
|
37
37
|
[`stat__value--${this.toneClass}`]: this.toneClass !== 'default',
|
|
38
|
-
} }, cue && (index.h("span", { key: '
|
|
38
|
+
} }, cue && (index.h("span", { key: '82b83cb7182f10ceca5172fc790aad01882645cc', class: "stat__cue", "aria-hidden": "true" }, cue)), index.h("slot", { key: 'e9c3095eca4ed3907fc0e95395f3cc62bfd4158a', name: "value" }, this.value)), this.hint && index.h("span", { key: '4b892b35299def40a62c386e6af7c5f19aebe44b', class: "stat__hint" }, this.hint), index.h("div", { key: '0535d9fb62ddf5ed1ee2b5993689cb080f753ff9', class: "stat__footer" }, index.h("slot", { key: '1d8e09fa8db2d4a6e188f8deaa93631df9cc2a36', name: "footer" })))));
|
|
39
39
|
}
|
|
40
40
|
};
|
|
41
41
|
ChStat.style = chStatCss();
|
|
@@ -120,7 +120,7 @@ const ChTable = class {
|
|
|
120
120
|
const empty = this.emptyState;
|
|
121
121
|
// Before the first measurement the table is rendered as non-empty, so a
|
|
122
122
|
// consumer never sees the empty message flash over real rows.
|
|
123
|
-
return (index.h(index.Host, { key: '
|
|
123
|
+
return (index.h(index.Host, { key: 'f4511d753b9140b08eee0e50041ba4e7408930ec', class: { 'table': true, 'table--empty': empty === 'true' || empty === 'filtered' } }, index.h("div", { key: '8cc987803f5d000d7efbbc6b605561d2c6ca1c46', class: "table__scroll", tabIndex: 0, role: "group", "aria-labelledby": this.captionId }, index.h("table", { key: '9eff6abfe0fecfd3559bfe397db3957fa60e288a' }, index.h("caption", { key: '35d88e56267aff1ae9753326ffc807cf6e04bfba', id: this.captionId, class: "caption" }, this.label), index.h("thead", { key: '0b01e865f3c0f40e9e86634f701b77886713e2e3' }, index.h("tr", { key: '92ded28a12867b8a2a372a9b04e8fd251870a5c7' }, this.columns.map(column => this.renderHeaderCell(column)))), index.h("tbody", { key: '68d7a49aa51cf1e958f1af7ebc36cdb5f6acfdd0' }, index.h("slot", { key: '79e296699379971e93b8a91b7823987be835ce8e' })))), (empty === 'true' || empty === 'filtered') && (index.h("div", { key: 'b7b2734f3d83ced393377fbe6f2911d2466ce714', class: "table__empty", id: this.emptyId }, index.h("slot", { key: '926191c01eef1f1898ad7fc800824021a697da35', name: "empty" }, index.h("p", { key: '6302a52795029b3d31200ae3c1c4ff53af3ab81c', class: "table__empty-message" }, this.emptyMessage(empty)))))));
|
|
124
124
|
}
|
|
125
125
|
static get watchers() { return {
|
|
126
126
|
"filtered": [{
|
|
@@ -86,7 +86,7 @@ const ChTabs = class {
|
|
|
86
86
|
}
|
|
87
87
|
render() {
|
|
88
88
|
const active = this.activeValue;
|
|
89
|
-
return (index.h(index.Host, { key: '
|
|
89
|
+
return (index.h(index.Host, { key: '5fd5208bb1b9b75f13b9d3830d042f623aaca651' }, index.h("div", { key: '8d602a604a8315db01f3e4d28a39e866efabdb48', class: "tablist", role: "tablist", "aria-label": this.label, onKeyDown: this.handleKeyDown, ref: el => (this.tablistEl = el) }, this.tabs.map(tab => {
|
|
90
90
|
const selected = tab.value === active;
|
|
91
91
|
return (index.h("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));
|
|
92
92
|
})), this.tabs.map(tab => (index.h("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 }, index.h("slot", { name: `panel-${tab.value}` }))))));
|
|
@@ -125,7 +125,7 @@ const ChTextarea = class {
|
|
|
125
125
|
return undefined;
|
|
126
126
|
}
|
|
127
127
|
render() {
|
|
128
|
-
return (index.h(index.Host, { key: '
|
|
128
|
+
return (index.h(index.Host, { key: '0f2b76444b3bff5d37d069bf1fe307781c5e59d1' }, this.label && (index.h("label", { key: '08b83be70f33dc2c9b93a6d748564aad4eb63d76', class: "label", htmlFor: this.textareaId }, this.label)), index.h("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) && (index.h("p", { key: '36e41249852346df559bd278256cc89a79371a88', class: "hint", id: this.hintId }, this.hint)), this.invalid && this.errorMessage && (index.h("p", { key: '90bda1f377da78e07eae82ee13069813c7ed1e8b', class: "error", id: this.errorId, role: "alert" }, this.errorMessage))));
|
|
129
129
|
}
|
|
130
130
|
static get formAssociated() { return true; }
|
|
131
131
|
static get watchers() { return {
|
|
@@ -9,7 +9,7 @@ const ChTimeline = class {
|
|
|
9
9
|
index.registerInstance(this, hostRef);
|
|
10
10
|
}
|
|
11
11
|
render() {
|
|
12
|
-
return (index.h(index.Host, { key: '
|
|
12
|
+
return (index.h(index.Host, { key: '50b3a225915e4223fa3eaf560cb1e15898026ec0', class: "timeline" }, index.h("ol", { key: '5b5e218a419f63990deca2d1a7e0f8f36f63cc09', class: "list" }, index.h("slot", { key: '69ff4592e898cdecb078437b6633e5e24c626e61' }))));
|
|
13
13
|
}
|
|
14
14
|
};
|
|
15
15
|
ChTimeline.style = chTimelineCss();
|