@commmerce/ui 1.11.0 → 1.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cdn.js +11 -5
- package/dist/components/spinner.d.ts +11 -0
- package/dist/components/spinner.js +28 -5
- package/dist/custom-elements.json +40 -1
- package/package.json +3 -3
package/dist/cdn.js
CHANGED
|
@@ -108,15 +108,18 @@ var Ju=o=>{throw TypeError(o)};var lm=(o,n,e)=>n.has(o)||Ju("Cannot "+e);var r=(
|
|
|
108
108
|
}
|
|
109
109
|
`];$("cm-button",Ji);var ea=class extends S{constructor(){super(...arguments);this.value="";this.icon="";this.href="";this.disabled=!1;this.critical=!1;this.heading=!1;this.shortcut=""}render(){return null}toItem(){let e=(this.textContent??"").trim();return{label:e,value:this.value||e,icon:this.icon||void 0,href:this.href||void 0,disabled:this.disabled||void 0,critical:this.critical||void 0,heading:this.heading||void 0,shortcut:this.shortcut||void 0}}};ea.properties={value:{reflect:!0},icon:{reflect:!0},href:{reflect:!0},disabled:{type:Boolean,reflect:!0},critical:{type:Boolean,reflect:!0},heading:{type:Boolean,reflect:!0},shortcut:{reflect:!0}},ea.styles=x`:host { display: none; }`;$("cm-menu-item",ea);function ro(o){let n=[];for(let e of Array.from(o.children))if(e.localName==="cm-menu-item"){let t=(e.textContent??"").trim(),i=a=>e.getAttribute(a)||void 0;n.push({label:t,value:i("value")??t,icon:i("icon"),href:i("href"),disabled:e.hasAttribute("disabled")||void 0,critical:e.hasAttribute("critical")||void 0,heading:e.hasAttribute("heading")||void 0,shortcut:i("shortcut")})}else e.localName==="hr"&&n.push({divider:!0});return n}function Hc(o,n){let e=new MutationObserver(n);return e.observe(o,{childList:!0,subtree:!0,attributes:!0,characterData:!0}),e}var Xe=x`
|
|
110
110
|
:where([popover]) { margin: 0; padding: 0; border: 0; color: inherit; background: none; overflow: visible; }
|
|
111
|
-
`,ao=8,dt,ta,ia,ra,Zi,$e=class{constructor(){p(this,dt,null);p(this,ta,null);p(this,ia,{});p(this,ra,"");p(this,Zi,()=>this.place())}get active(){return!!r(this,dt)}open(n,e,t={}){if(!n||!e||typeof n.showPopover!="function")return!1;r(this,dt)&&r(this,dt)!==n&&this.close(),n.hasAttribute("popover")||n.setAttribute("popover","manual");let i=n.matches(":popover-open");if(!i){if(getComputedStyle(n).position==="static")return n.removeAttribute("popover"),!1;try{n.showPopover()}catch{return!1}}return n.matches(":popover-open")?(r(this,dt)||f(this,ra,n.style.maxHeight),f(this,dt,n),f(this,ta,e),f(this,ia,t),Object.assign(n.style,{position:"fixed",inset:"auto",margin:"0"}),this.place(),i||(window.addEventListener("scroll",r(this,Zi),!0),window.addEventListener("resize",r(this,Zi))),!0):!1}place(){let n=r(this,dt),e=r(this,ta);if(!n||!e)return;let t=e.getBoundingClientRect(),i=document.documentElement.clientWidth,a=document.documentElement.clientHeight,l=r(this,ia).gap??4,d=r(this,ia).align??"start";n.style.maxHeight=r(this,ra),d==="stretch"&&(n.style.minWidth=`${Math.round(t.width)}px`);let m=n.getBoundingClientRect(),u=m.width,v=m.height,g=getComputedStyle(e).direction==="rtl",w=g?t.right-u:t.left,y=g?t.left:t.right-u,k=d==="end"?y:w;k+u>i-ao&&(k=g?w:y);let L=Math.max(0,Math.min(ao,t.left)),A=Math.min(i,Math.max(i-ao,t.right))-u;k=Math.max(L,Math.min(k,A));let O=a-t.bottom-l-ao,B=t.top-l-ao,K;if(v<=O||O>=B)K=t.bottom+l,v>O&&(n.style.maxHeight=`${Math.max(80,Math.floor(O))}px`);else{let Ye=Math.min(v,Math.floor(B));v>B&&(n.style.maxHeight=`${Math.max(80,Ye)}px`),K=t.top-l-Ye}n.style.left=`${k}px`,n.style.top=`${K}px`}close(){let n=r(this,dt);if(window.removeEventListener("scroll",r(this,Zi),!0),window.removeEventListener("resize",r(this,Zi)),f(this,dt,null),f(this,ta,null),!!n){try{n.matches(":popover-open")&&n.hidePopover()}catch{}for(let e of["position","inset","margin","left","top","minWidth"])n.style[e]="";n.style.maxHeight=r(this,ra)}}};dt=new WeakMap,ta=new WeakMap,ia=new WeakMap,ra=new WeakMap,Zi=new WeakMap;var aa=class extends T{constructor(){super(...arguments);this.size="large"}render(){let e=this.size==="small"?2.5:3;return c`<span class="spinner" part="spinner" role="status">
|
|
112
|
-
|
|
111
|
+
`,ao=8,dt,ta,ia,ra,Zi,$e=class{constructor(){p(this,dt,null);p(this,ta,null);p(this,ia,{});p(this,ra,"");p(this,Zi,()=>this.place())}get active(){return!!r(this,dt)}open(n,e,t={}){if(!n||!e||typeof n.showPopover!="function")return!1;r(this,dt)&&r(this,dt)!==n&&this.close(),n.hasAttribute("popover")||n.setAttribute("popover","manual");let i=n.matches(":popover-open");if(!i){if(getComputedStyle(n).position==="static")return n.removeAttribute("popover"),!1;try{n.showPopover()}catch{return!1}}return n.matches(":popover-open")?(r(this,dt)||f(this,ra,n.style.maxHeight),f(this,dt,n),f(this,ta,e),f(this,ia,t),Object.assign(n.style,{position:"fixed",inset:"auto",margin:"0"}),this.place(),i||(window.addEventListener("scroll",r(this,Zi),!0),window.addEventListener("resize",r(this,Zi))),!0):!1}place(){let n=r(this,dt),e=r(this,ta);if(!n||!e)return;let t=e.getBoundingClientRect(),i=document.documentElement.clientWidth,a=document.documentElement.clientHeight,l=r(this,ia).gap??4,d=r(this,ia).align??"start";n.style.maxHeight=r(this,ra),d==="stretch"&&(n.style.minWidth=`${Math.round(t.width)}px`);let m=n.getBoundingClientRect(),u=m.width,v=m.height,g=getComputedStyle(e).direction==="rtl",w=g?t.right-u:t.left,y=g?t.left:t.right-u,k=d==="end"?y:w;k+u>i-ao&&(k=g?w:y);let L=Math.max(0,Math.min(ao,t.left)),A=Math.min(i,Math.max(i-ao,t.right))-u;k=Math.max(L,Math.min(k,A));let O=a-t.bottom-l-ao,B=t.top-l-ao,K;if(v<=O||O>=B)K=t.bottom+l,v>O&&(n.style.maxHeight=`${Math.max(80,Math.floor(O))}px`);else{let Ye=Math.min(v,Math.floor(B));v>B&&(n.style.maxHeight=`${Math.max(80,Ye)}px`),K=t.top-l-Ye}n.style.left=`${k}px`,n.style.top=`${K}px`}close(){let n=r(this,dt);if(window.removeEventListener("scroll",r(this,Zi),!0),window.removeEventListener("resize",r(this,Zi)),f(this,dt,null),f(this,ta,null),!!n){try{n.matches(":popover-open")&&n.hidePopover()}catch{}for(let e of["position","inset","margin","left","top","minWidth"])n.style[e]="";n.style.maxHeight=r(this,ra)}}};dt=new WeakMap,ta=new WeakMap,ia=new WeakMap,ra=new WeakMap,Zi=new WeakMap;var aa=class extends T{constructor(){super(...arguments);this.size="large";this.custom=!1}onSlotChange(e){let t=e.target.assignedElements().length>0;t!==this.custom&&(this.custom=t,this.requestUpdate())}render(){let e=this.size==="small"?2.5:3;return c`<span class="spinner" part="spinner" role="status">
|
|
112
|
+
${this.custom?h:c`<svg viewBox="0 0 24 24" aria-hidden="true" focusable="false">
|
|
113
113
|
<circle class="track" cx="12" cy="12" r="10" fill="none" stroke-width=${e}></circle>
|
|
114
114
|
<path class="arc" d="M12 2a10 10 0 0 1 10 10" fill="none" stroke-width=${e} stroke-linecap="round"></path>
|
|
115
|
-
</svg
|
|
115
|
+
</svg>`}
|
|
116
|
+
<slot @slotchange=${this.onSlotChange}></slot>
|
|
116
117
|
<span class="vh">${this.accessibleLabel||this.t("loading")}</span>
|
|
117
118
|
</span>`}};aa.properties={size:{reflect:!0},accessibleLabel:{attribute:"accessible-label",string:"loading"}},aa.styles=[E,x`
|
|
118
119
|
:host { display: inline-flex; vertical-align: middle; color: var(--cm-border-strong); }
|
|
119
|
-
.spinner { display: inline-flex; }
|
|
120
|
+
.spinner { display: inline-flex; align-items: center; --cm-spinner-duration: 0.8s; --cm-spinner-play-state: running; }
|
|
121
|
+
::slotted(*) { display: block; block-size: 20px; inline-size: auto; }
|
|
122
|
+
:host([size='small']) ::slotted(*) { block-size: 12px; }
|
|
120
123
|
svg { inline-size: 44px; block-size: 44px; animation: spin 0.8s linear infinite; }
|
|
121
124
|
:host([size='small']) svg { inline-size: 20px; block-size: 20px; }
|
|
122
125
|
.track { stroke: var(--cm-border-subtle); }
|
|
@@ -126,7 +129,10 @@ var Ju=o=>{throw TypeError(o)};var lm=(o,n,e)=>n.has(o)||Ju("Cannot "+e);var r=(
|
|
|
126
129
|
clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
|
|
127
130
|
}
|
|
128
131
|
@keyframes spin { to { transform: rotate(360deg); } }
|
|
129
|
-
@media (prefers-reduced-motion: reduce) {
|
|
132
|
+
@media (prefers-reduced-motion: reduce) {
|
|
133
|
+
svg { animation-duration: 2.4s; }
|
|
134
|
+
.spinner { --cm-spinner-play-state: paused; }
|
|
135
|
+
}
|
|
130
136
|
`];$("cm-spinner",aa);var Jx=z("actionMenu",{label:"Actions"}),so,Qi,er,no,U,Nc,oo,Ic,Pc,Oc,qc,wg,na,oa,la,sa,Bc,$g,km,kg,xt=class extends T{constructor(){super(...arguments);p(this,U);this.items=[];this.open=!1;this.triggerLabel="";this.iconOnly=!1;this.icon="more";this.align="start";this.heading="";this.subheading="";this.loading=!1;this.disabled=!1;this._slotted=[];this._active=-1;this._custom=!1;p(this,so);p(this,Qi,R("cm-menu"));p(this,er,"");p(this,no,0);p(this,oo,e=>{this.open&&!e.composedPath().includes(this)&&s(this,U,Oc).call(this,!1)});p(this,na,new $e);p(this,oa,e=>{this.disabled||(e.key==="ArrowDown"?(e.preventDefault(),this.show("first")):e.key==="ArrowUp"?(e.preventDefault(),this.show("last")):e.key==="Escape"&&this.open&&(e.preventDefault(),e.stopPropagation(),this.hide(!0)))});p(this,la,()=>{this.disabled||(this.open?this.hide():this.show())});p(this,Bc,e=>{let t=s(this,U,Pc).call(this),i=t.indexOf(this._active);switch(e.key){case"ArrowDown":e.preventDefault(),s(this,U,sa).call(this,t[(i+1)%t.length]);break;case"ArrowUp":e.preventDefault(),s(this,U,sa).call(this,t[(i-1+t.length)%t.length]);break;case"Home":e.preventDefault(),s(this,U,sa).call(this,t[0]);break;case"End":e.preventDefault(),s(this,U,sa).call(this,t[t.length-1]);break;case"Escape":e.preventDefault(),e.stopPropagation(),this.hide(!0);break;case"Tab":this.hide();break;default:if(e.key.length===1&&/\S/.test(e.key)&&!e.ctrlKey&&!e.metaKey&&!e.altKey){let a=Date.now();f(this,er,(a-r(this,no)<600?r(this,er):"")+e.key.toLowerCase()),f(this,no,a);let l=this.menuItems,d=r(this,er).length>1?i:i+1,u=[...t.slice(Math.max(d,0)),...t.slice(0,Math.max(d,0))].find(v=>(l[v].label??"").toLowerCase().startsWith(r(this,er)));u!==void 0&&s(this,U,sa).call(this,u)}}})}connectedCallback(){super.connectedCallback(),s(this,U,Nc).call(this),f(this,so,Hc(this,()=>s(this,U,Nc).call(this))),document.addEventListener("pointerdown",r(this,oo),!0)}disconnectedCallback(){super.disconnectedCallback(),r(this,so)?.disconnect(),document.removeEventListener("pointerdown",r(this,oo),!0),r(this,na).close()}get menuItems(){return this.items.length?this.items:this._slotted}show(e="first"){let t=s(this,U,Pc).call(this);this._active=e==="first"?t[0]??-1:t[t.length-1]??-1,s(this,U,Oc).call(this,!0),this.updateComplete.then(()=>s(this,U,qc).call(this))}hide(e=!1){s(this,U,Oc).call(this,!1),e&&s(this,U,Ic).call(this)?.focus()}updated(e){if(e.has("open")&&this.open&&s(this,U,wg).call(this),e.has("open")&&!this.open&&r(this,na).close(),this._custom){let t=s(this,U,Ic).call(this);if(t){let i=(a,l)=>{t.getAttribute(a)!==l&&t.setAttribute(a,l)};i("aria-haspopup","menu"),i("aria-expanded",String(this.open)),i("aria-controls",`${r(this,Qi)}-m`)}}if((e.has("open")||e.has("loading"))&&this.open&&this._active<0){let t=s(this,U,Pc).call(this);this._active=t[0]??-1,this.updateComplete.then(()=>s(this,U,qc).call(this))}}triggerTemplate(e,t){}headTemplate(){}render(){let e=this.menuItems,t=this.triggerLabel||this.label,i=this._custom?c`<slot name="trigger" @click=${r(this,la)} @keydown=${r(this,oa)} @slotchange=${()=>s(this,U,Nc).call(this)}></slot>`:this.triggerTemplate(r(this,la),r(this,oa))??c`<button type="button" class="trigger ${this.iconOnly?"icon":""}" part="trigger" aria-haspopup="menu"
|
|
131
137
|
aria-expanded=${String(this.open)} aria-controls="${r(this,Qi)}-m" aria-label=${this.iconOnly?t:h}
|
|
132
138
|
?disabled=${this.disabled} @click=${r(this,la)} @keydown=${r(this,oa)}>${this.iconOnly?c`<cm-icon name=${this.icon} size="18"></cm-icon>`:c`<span>${t}</span><cm-icon name="chevron-down" size="14"></cm-icon>`}</button>`;return c`${i}
|
|
@@ -2,7 +2,15 @@ import { CmLocalizedElement } from '../localize.js';
|
|
|
2
2
|
/**
|
|
3
3
|
* Shows that something is loading when the wait is short or its length unknown. Announced to screen readers
|
|
4
4
|
* through a status role with a text label.
|
|
5
|
+
*
|
|
6
|
+
* A product can show its own loading graphic instead of the arc by putting it inside (since 1.12). The spinner
|
|
7
|
+
* keeps the status role, the label and the size, and passes `--cm-spinner-duration` (one cycle) and
|
|
8
|
+
* `--cm-spinner-play-state` (`paused` under reduced motion) to the graphic, which animates itself with them.
|
|
5
9
|
* @element cm-spinner
|
|
10
|
+
* @slot - Optional graphic shown instead of the arc, such as an inline SVG. Decorative: give it `aria-hidden="true"`.
|
|
11
|
+
* Drawn 12px tall (`small`) or 20px (`large`) with its own width; colour it with `currentColor`.
|
|
12
|
+
* @cssprop --cm-spinner-duration - One animation cycle for a slotted graphic. Default 0.8s.
|
|
13
|
+
* @cssprop --cm-spinner-play-state - `running`, or `paused` when the person prefers reduced motion.
|
|
6
14
|
*/
|
|
7
15
|
export declare class CmSpinner extends CmLocalizedElement {
|
|
8
16
|
static properties: {
|
|
@@ -18,7 +26,10 @@ export declare class CmSpinner extends CmLocalizedElement {
|
|
|
18
26
|
size: 'small' | 'large';
|
|
19
27
|
/** What screen readers announce. Name what is loading when it helps: "Loading orders". Default: the built-in string `loading` ("Loading"). */
|
|
20
28
|
accessibleLabel: string;
|
|
29
|
+
/** True while a graphic is slotted in place of the arc. */
|
|
30
|
+
private custom;
|
|
21
31
|
static styles: import("lit").CSSResult[];
|
|
32
|
+
private onSlotChange;
|
|
22
33
|
render(): import("lit-html").TemplateResult<1>;
|
|
23
34
|
}
|
|
24
35
|
declare global {
|
|
@@ -1,24 +1,42 @@
|
|
|
1
|
-
import { html, css } from 'lit';
|
|
1
|
+
import { html, css, nothing } from 'lit';
|
|
2
2
|
import { base, define } from '../base.js';
|
|
3
3
|
import { CmLocalizedElement } from '../localize.js';
|
|
4
4
|
/**
|
|
5
5
|
* Shows that something is loading when the wait is short or its length unknown. Announced to screen readers
|
|
6
6
|
* through a status role with a text label.
|
|
7
|
+
*
|
|
8
|
+
* A product can show its own loading graphic instead of the arc by putting it inside (since 1.12). The spinner
|
|
9
|
+
* keeps the status role, the label and the size, and passes `--cm-spinner-duration` (one cycle) and
|
|
10
|
+
* `--cm-spinner-play-state` (`paused` under reduced motion) to the graphic, which animates itself with them.
|
|
7
11
|
* @element cm-spinner
|
|
12
|
+
* @slot - Optional graphic shown instead of the arc, such as an inline SVG. Decorative: give it `aria-hidden="true"`.
|
|
13
|
+
* Drawn 12px tall (`small`) or 20px (`large`) with its own width; colour it with `currentColor`.
|
|
14
|
+
* @cssprop --cm-spinner-duration - One animation cycle for a slotted graphic. Default 0.8s.
|
|
15
|
+
* @cssprop --cm-spinner-play-state - `running`, or `paused` when the person prefers reduced motion.
|
|
8
16
|
*/
|
|
9
17
|
export class CmSpinner extends CmLocalizedElement {
|
|
10
18
|
constructor() {
|
|
11
19
|
super(...arguments);
|
|
12
20
|
/** `small` (20px) for inline use in buttons, rows and fields; `large` (44px) for a section or page. */
|
|
13
21
|
this.size = 'large';
|
|
22
|
+
/** True while a graphic is slotted in place of the arc. */
|
|
23
|
+
this.custom = false;
|
|
24
|
+
}
|
|
25
|
+
onSlotChange(e) {
|
|
26
|
+
const has = e.target.assignedElements().length > 0;
|
|
27
|
+
if (has !== this.custom) {
|
|
28
|
+
this.custom = has;
|
|
29
|
+
this.requestUpdate();
|
|
30
|
+
}
|
|
14
31
|
}
|
|
15
32
|
render() {
|
|
16
33
|
const sw = this.size === 'small' ? 2.5 : 3;
|
|
17
34
|
return html `<span class="spinner" part="spinner" role="status">
|
|
18
|
-
|
|
35
|
+
${this.custom ? nothing : html `<svg viewBox="0 0 24 24" aria-hidden="true" focusable="false">
|
|
19
36
|
<circle class="track" cx="12" cy="12" r="10" fill="none" stroke-width=${sw}></circle>
|
|
20
37
|
<path class="arc" d="M12 2a10 10 0 0 1 10 10" fill="none" stroke-width=${sw} stroke-linecap="round"></path>
|
|
21
|
-
</svg
|
|
38
|
+
</svg>`}
|
|
39
|
+
<slot @slotchange=${this.onSlotChange}></slot>
|
|
22
40
|
<span class="vh">${this.accessibleLabel || this.t('loading')}</span>
|
|
23
41
|
</span>`;
|
|
24
42
|
}
|
|
@@ -31,7 +49,9 @@ CmSpinner.styles = [
|
|
|
31
49
|
base,
|
|
32
50
|
css `
|
|
33
51
|
:host { display: inline-flex; vertical-align: middle; color: var(--cm-border-strong); }
|
|
34
|
-
.spinner { display: inline-flex; }
|
|
52
|
+
.spinner { display: inline-flex; align-items: center; --cm-spinner-duration: 0.8s; --cm-spinner-play-state: running; }
|
|
53
|
+
::slotted(*) { display: block; block-size: 20px; inline-size: auto; }
|
|
54
|
+
:host([size='small']) ::slotted(*) { block-size: 12px; }
|
|
35
55
|
svg { inline-size: 44px; block-size: 44px; animation: spin 0.8s linear infinite; }
|
|
36
56
|
:host([size='small']) svg { inline-size: 20px; block-size: 20px; }
|
|
37
57
|
.track { stroke: var(--cm-border-subtle); }
|
|
@@ -41,7 +61,10 @@ CmSpinner.styles = [
|
|
|
41
61
|
clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
|
|
42
62
|
}
|
|
43
63
|
@keyframes spin { to { transform: rotate(360deg); } }
|
|
44
|
-
@media (prefers-reduced-motion: reduce) {
|
|
64
|
+
@media (prefers-reduced-motion: reduce) {
|
|
65
|
+
svg { animation-duration: 2.4s; }
|
|
66
|
+
.spinner { --cm-spinner-play-state: paused; }
|
|
67
|
+
}
|
|
45
68
|
`,
|
|
46
69
|
];
|
|
47
70
|
define('cm-spinner', CmSpinner);
|
|
@@ -32577,8 +32577,24 @@
|
|
|
32577
32577
|
"declarations": [
|
|
32578
32578
|
{
|
|
32579
32579
|
"kind": "class",
|
|
32580
|
-
"description": "Shows that something is loading when the wait is short or its length unknown. Announced to screen readers\nthrough a status role with a text label.",
|
|
32580
|
+
"description": "Shows that something is loading when the wait is short or its length unknown. Announced to screen readers\nthrough a status role with a text label.\n\nA product can show its own loading graphic instead of the arc by putting it inside (since 1.12). The spinner\nkeeps the status role, the label and the size, and passes `--cm-spinner-duration` (one cycle) and\n`--cm-spinner-play-state` (`paused` under reduced motion) to the graphic, which animates itself with them.",
|
|
32581
32581
|
"name": "CmSpinner",
|
|
32582
|
+
"cssProperties": [
|
|
32583
|
+
{
|
|
32584
|
+
"description": "One animation cycle for a slotted graphic. Default 0.8s.",
|
|
32585
|
+
"name": "--cm-spinner-duration"
|
|
32586
|
+
},
|
|
32587
|
+
{
|
|
32588
|
+
"description": "`running`, or `paused` when the person prefers reduced motion.",
|
|
32589
|
+
"name": "--cm-spinner-play-state"
|
|
32590
|
+
}
|
|
32591
|
+
],
|
|
32592
|
+
"slots": [
|
|
32593
|
+
{
|
|
32594
|
+
"description": "Optional graphic shown instead of the arc, such as an inline SVG. Decorative: give it `aria-hidden=\"true\"`. Drawn 12px tall (`small`) or 20px (`large`) with its own width; colour it with `currentColor`.",
|
|
32595
|
+
"name": ""
|
|
32596
|
+
}
|
|
32597
|
+
],
|
|
32582
32598
|
"members": [
|
|
32583
32599
|
{
|
|
32584
32600
|
"kind": "field",
|
|
@@ -32602,6 +32618,29 @@
|
|
|
32602
32618
|
"description": "What screen readers announce. Name what is loading when it helps: \"Loading orders\". Default: the built-in string `loading` (\"Loading\").",
|
|
32603
32619
|
"attribute": "accessible-label"
|
|
32604
32620
|
},
|
|
32621
|
+
{
|
|
32622
|
+
"kind": "field",
|
|
32623
|
+
"name": "custom",
|
|
32624
|
+
"type": {
|
|
32625
|
+
"text": "boolean"
|
|
32626
|
+
},
|
|
32627
|
+
"privacy": "private",
|
|
32628
|
+
"default": "false",
|
|
32629
|
+
"description": "True while a graphic is slotted in place of the arc."
|
|
32630
|
+
},
|
|
32631
|
+
{
|
|
32632
|
+
"kind": "method",
|
|
32633
|
+
"name": "onSlotChange",
|
|
32634
|
+
"privacy": "private",
|
|
32635
|
+
"parameters": [
|
|
32636
|
+
{
|
|
32637
|
+
"name": "e",
|
|
32638
|
+
"type": {
|
|
32639
|
+
"text": "Event"
|
|
32640
|
+
}
|
|
32641
|
+
}
|
|
32642
|
+
]
|
|
32643
|
+
},
|
|
32605
32644
|
{
|
|
32606
32645
|
"kind": "method",
|
|
32607
32646
|
"name": "finalize",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@commmerce/ui",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.12.0",
|
|
4
4
|
"description": "Commmerce UI web components: build apps that feel native to the Commmerce admin. Works in plain HTML, React, Vue and server-rendered pages.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"web-components",
|
|
@@ -50,8 +50,8 @@
|
|
|
50
50
|
"test": "vitest run"
|
|
51
51
|
},
|
|
52
52
|
"dependencies": {
|
|
53
|
-
"@commmerce/icons": "1.
|
|
54
|
-
"@commmerce/tokens": "1.
|
|
53
|
+
"@commmerce/icons": "1.12.0",
|
|
54
|
+
"@commmerce/tokens": "1.12.0",
|
|
55
55
|
"lit": "3.2.1"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|