@florid-kit/components 0.9.14 → 0.9.15
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/index.js +14 -13
- package/index.mjs +43 -42
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -10,9 +10,9 @@
|
|
|
10
10
|
* @license
|
|
11
11
|
* Copyright 2017 Google LLC
|
|
12
12
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
13
|
-
*/const ht=globalThis,_t=ht.trustedTypes,oe=_t?_t.createPolicy("lit-html",{createHTML:o=>o}):void 0,de="$lit$",K=`lit$${Math.random().toFixed(9).slice(2)}$`,pe="?"+K,
|
|
13
|
+
*/const ht=globalThis,_t=ht.trustedTypes,oe=_t?_t.createPolicy("lit-html",{createHTML:o=>o}):void 0,de="$lit$",K=`lit$${Math.random().toFixed(9).slice(2)}$`,pe="?"+K,Ae=`<${pe}>`,tt=document,pt=()=>tt.createComment(""),ut=o=>o===null||typeof o!="object"&&typeof o!="function",Rt=Array.isArray,Ee=o=>Rt(o)||typeof(o==null?void 0:o[Symbol.iterator])=="function",Pt=`[
|
|
14
14
|
\f\r]`,lt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,ie=/-->/g,ne=/>/g,J=RegExp(`>|${Pt}(?:([^\\s"'>=/]+)(${Pt}*=${Pt}*(?:[^
|
|
15
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),re=/'/g,se=/"/g,ue=/^(?:script|style|textarea|title)$/i,Le=o=>(t,...e)=>({_$litType$:o,strings:t,values:e}),l=Le(1),G=Symbol.for("lit-noChange"),d=Symbol.for("lit-nothing"),ae=new WeakMap,Q=tt.createTreeWalker(tt,129);function ve(o,t){if(!Rt(o)||!o.hasOwnProperty("raw"))throw Error("invalid template strings array");return oe!==void 0?oe.createHTML(t):t}const Pe=(o,t)=>{const e=o.length-1,n=[];let i,r=t===2?"<svg>":t===3?"<math>":"",s=lt;for(let h=0;h<e;h++){const c=o[h];let m,w,v=-1,R=0;for(;R<c.length&&(s.lastIndex=R,w=s.exec(c),w!==null);)R=s.lastIndex,s===lt?w[1]==="!--"?s=ie:w[1]!==void 0?s=ne:w[2]!==void 0?(ue.test(w[2])&&(i=RegExp("</"+w[2],"g")),s=J):w[3]!==void 0&&(s=J):s===J?w[0]===">"?(s=i??lt,v=-1):w[1]===void 0?v=-2:(v=s.lastIndex-w[2].length,m=w[1],s=w[3]===void 0?J:w[3]==='"'?se:re):s===se||s===re?s=J:s===ie||s===ne?s=lt:(s=J,i=void 0);const Z=s===J&&o[h+1].startsWith("/>")?" ":"";r+=s===lt?c+
|
|
15
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),re=/'/g,se=/"/g,ue=/^(?:script|style|textarea|title)$/i,Le=o=>(t,...e)=>({_$litType$:o,strings:t,values:e}),l=Le(1),G=Symbol.for("lit-noChange"),d=Symbol.for("lit-nothing"),ae=new WeakMap,Q=tt.createTreeWalker(tt,129);function ve(o,t){if(!Rt(o)||!o.hasOwnProperty("raw"))throw Error("invalid template strings array");return oe!==void 0?oe.createHTML(t):t}const Pe=(o,t)=>{const e=o.length-1,n=[];let i,r=t===2?"<svg>":t===3?"<math>":"",s=lt;for(let h=0;h<e;h++){const c=o[h];let m,w,v=-1,R=0;for(;R<c.length&&(s.lastIndex=R,w=s.exec(c),w!==null);)R=s.lastIndex,s===lt?w[1]==="!--"?s=ie:w[1]!==void 0?s=ne:w[2]!==void 0?(ue.test(w[2])&&(i=RegExp("</"+w[2],"g")),s=J):w[3]!==void 0&&(s=J):s===J?w[0]===">"?(s=i??lt,v=-1):w[1]===void 0?v=-2:(v=s.lastIndex-w[2].length,m=w[1],s=w[3]===void 0?J:w[3]==='"'?se:re):s===se||s===re?s=J:s===ie||s===ne?s=lt:(s=J,i=void 0);const Z=s===J&&o[h+1].startsWith("/>")?" ":"";r+=s===lt?c+Ae:v>=0?(n.push(m),c.slice(0,v)+de+c.slice(v)+K+Z):c+K+(v===-2?h:Z)}return[ve(o,r+(o[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),n]};class vt{constructor({strings:t,_$litType$:e},n){let i;this.parts=[];let r=0,s=0;const h=t.length-1,c=this.parts,[m,w]=Pe(t,e);if(this.el=vt.createElement(m,n),Q.currentNode=this.el.content,e===2||e===3){const v=this.el.content.firstChild;v.replaceWith(...v.childNodes)}for(;(i=Q.nextNode())!==null&&c.length<h;){if(i.nodeType===1){if(i.hasAttributes())for(const v of i.getAttributeNames())if(v.endsWith(de)){const R=w[s++],Z=i.getAttribute(v).split(K),wt=/([.?@])?(.*)/.exec(R);c.push({type:1,index:r,name:wt[2],strings:Z,ctor:wt[1]==="."?Oe:wt[1]==="?"?ze:wt[1]==="@"?Be:St}),i.removeAttribute(v)}else v.startsWith(K)&&(c.push({type:6,index:r}),i.removeAttribute(v));if(ue.test(i.tagName)){const v=i.textContent.split(K),R=v.length-1;if(R>0){i.textContent=_t?_t.emptyScript:"";for(let Z=0;Z<R;Z++)i.append(v[Z],pt()),Q.nextNode(),c.push({type:2,index:++r});i.append(v[R],pt())}}}else if(i.nodeType===8)if(i.data===pe)c.push({type:2,index:r});else{let v=-1;for(;(v=i.data.indexOf(K,v+1))!==-1;)c.push({type:7,index:r}),v+=K.length-1}r++}}static createElement(t,e){const n=tt.createElement("template");return n.innerHTML=t,n}}function nt(o,t,e=o,n){var s,h;if(t===G)return t;let i=n!==void 0?(s=e._$Co)==null?void 0:s[n]:e._$Cl;const r=ut(t)?void 0:t._$litDirective$;return(i==null?void 0:i.constructor)!==r&&((h=i==null?void 0:i._$AO)==null||h.call(i,!1),r===void 0?i=void 0:(i=new r(o),i._$AT(o,e,n)),n!==void 0?(e._$Co??(e._$Co=[]))[n]=i:e._$Cl=i),i!==void 0&&(t=nt(o,i._$AS(o,t.values),i,n)),t}class Ie{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:n}=this._$AD,i=((t==null?void 0:t.creationScope)??tt).importNode(e,!0);Q.currentNode=i;let r=Q.nextNode(),s=0,h=0,c=n[0];for(;c!==void 0;){if(s===c.index){let m;c.type===2?m=new xt(r,r.nextSibling,this,t):c.type===1?m=new c.ctor(r,c.name,c.strings,this,t):c.type===6&&(m=new De(r,this,t)),this._$AV.push(m),c=n[++h]}s!==(c==null?void 0:c.index)&&(r=Q.nextNode(),s++)}return Q.currentNode=tt,i}p(t){let e=0;for(const n of this._$AV)n!==void 0&&(n.strings!==void 0?(n._$AI(t,n,e),e+=n.strings.length-2):n._$AI(t[e])),e++}}class xt{get _$AU(){var t;return((t=this._$AM)==null?void 0:t._$AU)??this._$Cv}constructor(t,e,n,i){this.type=2,this._$AH=d,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=n,this.options=i,this._$Cv=(i==null?void 0:i.isConnected)??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return e!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=nt(this,t,e),ut(t)?t===d||t==null||t===""?(this._$AH!==d&&this._$AR(),this._$AH=d):t!==this._$AH&&t!==G&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):Ee(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==d&&ut(this._$AH)?this._$AA.nextSibling.data=t:this.T(tt.createTextNode(t)),this._$AH=t}$(t){var r;const{values:e,_$litType$:n}=t,i=typeof n=="number"?this._$AC(t):(n.el===void 0&&(n.el=vt.createElement(ve(n.h,n.h[0]),this.options)),n);if(((r=this._$AH)==null?void 0:r._$AD)===i)this._$AH.p(e);else{const s=new Ie(i,this),h=s.u(this.options);s.p(e),this.T(h),this._$AH=s}}_$AC(t){let e=ae.get(t.strings);return e===void 0&&ae.set(t.strings,e=new vt(t)),e}k(t){Rt(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let n,i=0;for(const r of t)i===e.length?e.push(n=new xt(this.O(pt()),this.O(pt()),this,this.options)):n=e[i],n._$AI(r),i++;i<e.length&&(this._$AR(n&&n._$AB.nextSibling,i),e.length=i)}_$AR(t=this._$AA.nextSibling,e){var n;for((n=this._$AP)==null?void 0:n.call(this,!1,!0,e);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i}}setConnected(t){var e;this._$AM===void 0&&(this._$Cv=t,(e=this._$AP)==null||e.call(this,t))}}class St{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,n,i,r){this.type=1,this._$AH=d,this._$AN=void 0,this.element=t,this.name=e,this._$AM=i,this.options=r,n.length>2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=d}_$AI(t,e=this,n,i){const r=this.strings;let s=!1;if(r===void 0)t=nt(this,t,e,0),s=!ut(t)||t!==this._$AH&&t!==G,s&&(this._$AH=t);else{const h=t;let c,m;for(t=r[0],c=0;c<r.length-1;c++)m=nt(this,h[n+c],e,c),m===G&&(m=this._$AH[c]),s||(s=!ut(m)||m!==this._$AH[c]),m===d?t=d:t!==d&&(t+=(m??"")+r[c+1]),this._$AH[c]=m}s&&!i&&this.j(t)}j(t){t===d?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class Oe extends St{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===d?void 0:t}}class ze extends St{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==d)}}class Be extends St{constructor(t,e,n,i,r){super(t,e,n,i,r),this.type=5}_$AI(t,e=this){if((t=nt(this,t,e,0)??d)===G)return;const n=this._$AH,i=t===d&&n!==d||t.capture!==n.capture||t.once!==n.once||t.passive!==n.passive,r=t!==d&&(n===d||i);i&&this.element.removeEventListener(this.name,this,n),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e;typeof this._$AH=="function"?this._$AH.call(((e=this.options)==null?void 0:e.host)??this.element,t):this._$AH.handleEvent(t)}}class De{constructor(t,e,n){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(t){nt(this,t)}}const It=ht.litHtmlPolyfillSupport;It==null||It(vt,xt),(ht.litHtmlVersions??(ht.litHtmlVersions=[])).push("3.3.0");const He=(o,t,e)=>{const n=(e==null?void 0:e.renderBefore)??t;let i=n._$litPart$;if(i===void 0){const r=(e==null?void 0:e.renderBefore)??null;n._$litPart$=i=new xt(t.insertBefore(pt(),r),r,void 0,e??{})}return i._$AI(o),i};/**
|
|
16
16
|
* @license
|
|
17
17
|
* Copyright 2017 Google LLC
|
|
18
18
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
@@ -177,6 +177,7 @@
|
|
|
177
177
|
role="button"
|
|
178
178
|
@click=${this.handleClick}
|
|
179
179
|
@keydown=${this.handleClick}
|
|
180
|
+
aria-describedby=${this.getAttribute("aria-describedby")||d}
|
|
180
181
|
>
|
|
181
182
|
${this.startIcon?this.renderIcon("start"):d}
|
|
182
183
|
${o?l`
|
|
@@ -386,7 +387,7 @@
|
|
|
386
387
|
transform: translateX(4px);
|
|
387
388
|
}
|
|
388
389
|
//End icon movment on hover
|
|
389
|
-
`;x([a()],b.prototype,"type",2);x([a({reflect:!0})],b.prototype,"value",2);x([a({type:String,reflect:!0})],b.prototype,"variant",2);x([a({type:String})],b.prototype,"text",2);x([a({type:String})],b.prototype,"textsecond",2);x([a({type:Boolean,reflect:!0})],b.prototype,"fullwidth",2);x([a({type:Boolean,reflect:!0})],b.prototype,"disabled",2);x([a({type:String,reflect:!0})],b.prototype,"startIconModel",2);x([a({type:String,reflect:!0})],b.prototype,"endIconModel",2);x([a({type:Boolean,reflect:!0,attribute:"starticon"})],b.prototype,"startIcon",2);x([a({type:Boolean,reflect:!0,attribute:"endicon"})],b.prototype,"endIcon",2);x([a({type:String,attribute:"paneltarget",reflect:!0})],b.prototype,"panelTarget",2);x([a({type:String})],b.prototype,"href",2);x([a({type:String})],b.prototype,"target",2);x([a({type:Boolean,reflect:!0})],b.prototype,"underlined",2);x([a({type:Boolean,reflect:!0})],b.prototype,"withbadge",2);b=x([y("o-button")],b);var $o=Object.defineProperty,Co=Object.getOwnPropertyDescriptor,
|
|
390
|
+
`;x([a()],b.prototype,"type",2);x([a({reflect:!0})],b.prototype,"value",2);x([a({type:String,reflect:!0})],b.prototype,"variant",2);x([a({type:String})],b.prototype,"text",2);x([a({type:String})],b.prototype,"textsecond",2);x([a({type:Boolean,reflect:!0})],b.prototype,"fullwidth",2);x([a({type:Boolean,reflect:!0})],b.prototype,"disabled",2);x([a({type:String,reflect:!0})],b.prototype,"startIconModel",2);x([a({type:String,reflect:!0})],b.prototype,"endIconModel",2);x([a({type:Boolean,reflect:!0,attribute:"starticon"})],b.prototype,"startIcon",2);x([a({type:Boolean,reflect:!0,attribute:"endicon"})],b.prototype,"endIcon",2);x([a({type:String,attribute:"paneltarget",reflect:!0})],b.prototype,"panelTarget",2);x([a({type:String})],b.prototype,"href",2);x([a({type:String})],b.prototype,"target",2);x([a({type:Boolean,reflect:!0})],b.prototype,"underlined",2);x([a({type:Boolean,reflect:!0})],b.prototype,"withbadge",2);b=x([y("o-button")],b);var $o=Object.defineProperty,Co=Object.getOwnPropertyDescriptor,At=(o,t,e,n)=>{for(var i=n>1?void 0:n?Co(t,e):t,r=o.length-1,s;r>=0;r--)(s=o[r])&&(i=(n?s(t,e,i):s(i))||i);return n&&i&&$o(t,e,i),i};let rt=class extends u{constructor(){super(...arguments),this.status="empty",this.ariaDescribedBy="a-product-name",this.label="Add to wishlist",this.toggleStatus=()=>{this.status=this.status==="empty"?"filled":"empty",this.setAttribute("aria-pressed",String(this.status==="filled")),this.dispatchEvent(new CustomEvent("wishlist-toggle",{detail:{status:this.status},bubbles:!0,composed:!0}))}}connectedCallback(){super.connectedCallback(),this.setAttribute("role","button"),this.setAttribute("aria-pressed",String(this.status==="filled"))}firstUpdated(){this.addEventListener("click",this.toggleStatus),this.addEventListener("keydown",this.handleKeydown)}handleKeydown(o){(o.key==="Enter"||o.key===" ")&&(o.preventDefault(),this.toggleStatus())}render(){const o=N.wishlist.replace("<svg",'<svg aria-hidden="true" focusable="false" part="svg"');return l`
|
|
390
391
|
<button type="button" aria-describedby="${this.ariaDescribedBy}" class="wishlist-button">
|
|
391
392
|
<span class="sr-only">${this.label}</span>
|
|
392
393
|
${C(o)}
|
|
@@ -455,7 +456,7 @@
|
|
|
455
456
|
width: 0.1rem !important;
|
|
456
457
|
white-space: nowrap !important;
|
|
457
458
|
}
|
|
458
|
-
`;
|
|
459
|
+
`;At([a({type:String,reflect:!0})],rt.prototype,"status",2);At([a({type:String,reflect:!0})],rt.prototype,"ariaDescribedBy",2);At([a({type:String,reflect:!0})],rt.prototype,"label",2);rt=At([y("o-wishlist-button")],rt);/**
|
|
459
460
|
* @license
|
|
460
461
|
* Copyright 2018 Google LLC
|
|
461
462
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
@@ -686,7 +687,7 @@
|
|
|
686
687
|
.sr-only {
|
|
687
688
|
display: none;
|
|
688
689
|
}
|
|
689
|
-
`;H([a({type:String,reflect:!0})],S.prototype,"bgstyle",2);H([a({type:String,reflect:!0})],S.prototype,"size",2);H([a({type:String,reflect:!0})],S.prototype,"status",2);H([a({type:String,reflect:!0})],S.prototype,"type",2);H([a({type:String})],S.prototype,"strokewidth",2);H([a({type:String})],S.prototype,"icon",2);H([a({type:Boolean,reflect:!0})],S.prototype,"disabled",2);H([a({type:Boolean})],S.prototype,"showSrLabel",2);H([a({type:String})],S.prototype,"srLabel",2);S=H([y("o-icon-button")],S);var So=Object.defineProperty,
|
|
690
|
+
`;H([a({type:String,reflect:!0})],S.prototype,"bgstyle",2);H([a({type:String,reflect:!0})],S.prototype,"size",2);H([a({type:String,reflect:!0})],S.prototype,"status",2);H([a({type:String,reflect:!0})],S.prototype,"type",2);H([a({type:String})],S.prototype,"strokewidth",2);H([a({type:String})],S.prototype,"icon",2);H([a({type:Boolean,reflect:!0})],S.prototype,"disabled",2);H([a({type:Boolean})],S.prototype,"showSrLabel",2);H([a({type:String})],S.prototype,"srLabel",2);S=H([y("o-icon-button")],S);var So=Object.defineProperty,Ao=Object.getOwnPropertyDescriptor,ot=(o,t,e,n)=>{for(var i=n>1?void 0:n?Ao(t,e):t,r=o.length-1,s;r>=0;r--)(s=o[r])&&(i=(n?s(t,e,i):s(i))||i);return n&&i&&So(t,e,i),i};let F=class extends u{constructor(){super(...arguments),this.href="",this.target="",this.template="standard",this.inverse=!1,this.endIcon=!1,this.reverseEndIcon=!1}_handleClick(o){(!this.href||this.href==="#")&&o.preventDefault()}render(){const o=this.href||"#";return l`
|
|
690
691
|
<a
|
|
691
692
|
href="${o}"
|
|
692
693
|
target="${k(this.target||void 0)}"
|
|
@@ -799,7 +800,7 @@
|
|
|
799
800
|
height: 1px;
|
|
800
801
|
}
|
|
801
802
|
/* End of underline effect */
|
|
802
|
-
`;ot([a({type:String})],F.prototype,"href",2);ot([a({type:String})],F.prototype,"target",2);ot([a({type:String,reflect:!0})],F.prototype,"template",2);ot([a({type:Boolean,reflect:!0})],F.prototype,"inverse",2);ot([a({type:Boolean,reflect:!0})],F.prototype,"endIcon",2);ot([a({type:Boolean,reflect:!0})],F.prototype,"reverseEndIcon",2);F=ot([y("o-link")],F);var
|
|
803
|
+
`;ot([a({type:String})],F.prototype,"href",2);ot([a({type:String})],F.prototype,"target",2);ot([a({type:String,reflect:!0})],F.prototype,"template",2);ot([a({type:Boolean,reflect:!0})],F.prototype,"inverse",2);ot([a({type:Boolean,reflect:!0})],F.prototype,"endIcon",2);ot([a({type:Boolean,reflect:!0})],F.prototype,"reverseEndIcon",2);F=ot([y("o-link")],F);var Eo=Object.defineProperty,Lo=Object.getOwnPropertyDescriptor,Et=(o,t,e,n)=>{for(var i=n>1?void 0:n?Lo(t,e):t,r=o.length-1,s;r>=0;r--)(s=o[r])&&(i=(n?s(t,e,i):s(i))||i);return n&&i&&Eo(t,e,i),i};let st=class extends u{constructor(){super(...arguments),this.rating=0}getStarKeys(){const o=[];for(let t=0;t<5;t++){const e=this.rating-t;let n;e>=1?n=100:e<=0?n=0:n=Math.round(e*100/25)*25,o.push(`star-${n}`)}return o}render(){const o=this.getStarKeys();return l`
|
|
803
804
|
<div class="rating">
|
|
804
805
|
<div class="stars">
|
|
805
806
|
${o.map(t=>l`<span class="star">${C(N[t]??"")}</span>`)}
|
|
@@ -839,7 +840,7 @@
|
|
|
839
840
|
text-decoration: underline;
|
|
840
841
|
cursor: pointer;
|
|
841
842
|
}
|
|
842
|
-
`;
|
|
843
|
+
`;Et([a({type:Number})],st.prototype,"rating",2);Et([a({type:String})],st.prototype,"reviewCount",2);Et([a({type:String})],st.prototype,"href",2);st=Et([y("o-rating")],st);/**
|
|
843
844
|
* @license
|
|
844
845
|
* Copyright 2020 Google LLC
|
|
845
846
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
@@ -1645,7 +1646,7 @@
|
|
|
1645
1646
|
background-color: var(--color-container-action-primary-pressed);
|
|
1646
1647
|
}
|
|
1647
1648
|
}
|
|
1648
|
-
`;Ht=Go([y("o-dots")],Ht);var Xo=Object.defineProperty,Jo=Object.getOwnPropertyDescriptor,M=(o,t,e,n)=>{for(var i=n>1?void 0:n?Jo(t,e):t,r=o.length-1,s;r>=0;r--)(s=o[r])&&(i=(n?s(t,e,i):s(i))||i);return n&&i&&Xo(t,e,i),i};let
|
|
1649
|
+
`;Ht=Go([y("o-dots")],Ht);var Xo=Object.defineProperty,Jo=Object.getOwnPropertyDescriptor,M=(o,t,e,n)=>{for(var i=n>1?void 0:n?Jo(t,e):t,r=o.length-1,s;r>=0;r--)(s=o[r])&&(i=(n?s(t,e,i):s(i))||i);return n&&i&&Xo(t,e,i),i};let A=class extends u{constructor(){super(...arguments),this.options=[],this.value="",this.name="",this.additionaltext="+X variant(s)",this.disabled=!1,this.width="100%",this.open=!1,this.activeIndex=-1,this.menuWidth="",this._handleOutsideClick=o=>{this.contains(o.target)||(this.open=!1,this.activeIndex=-1)}}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this._handleOutsideClick)}disconnectedCallback(){document.removeEventListener("click",this._handleOutsideClick),super.disconnectedCallback()}toggle(){var o;if(!this.disabled){if(this.open=!this.open,this.activeIndex=this.open?this.options.findIndex(t=>t.value===this.value):-1,this.open&&this.width==="auto"){const t=(o=this.renderRoot)==null?void 0:o.querySelector("button");t&&(this.menuWidth=`${t.getBoundingClientRect().width}px`)}this.open&&this.updateComplete.then(()=>this._focusActiveOption())}}_focusActiveOption(){var t;const o=(t=this.renderRoot)==null?void 0:t.querySelector(`#option-${this.activeIndex}`);o==null||o.focus()}selectOption(o){this.value=o.value,this.dispatchEvent(new CustomEvent("change",{detail:{value:this.value,url:o.url}})),this.open=!1,this.activeIndex=-1}handleKeydown(o){if(this.disabled){o.preventDefault();return}if(!this.open){(o.key==="ArrowDown"||o.key==="ArrowUp")&&(o.preventDefault(),this.open=!0,this.activeIndex=this.options.findIndex(t=>t.value===this.value),this.updateComplete.then(()=>this._focusActiveOption()));return}switch(o.key){case"ArrowDown":o.preventDefault(),this.activeIndex=(this.activeIndex+1)%this.options.length,this.updateComplete.then(()=>this._focusActiveOption());break;case"ArrowUp":o.preventDefault(),this.activeIndex=(this.activeIndex-1+this.options.length)%this.options.length,this.updateComplete.then(()=>this._focusActiveOption());break;case"Home":o.preventDefault(),this.activeIndex=0,this.updateComplete.then(()=>this._focusActiveOption());break;case"End":o.preventDefault(),this.activeIndex=this.options.length-1,this.updateComplete.then(()=>this._focusActiveOption());break;case"Enter":o.preventDefault(),this.activeIndex>=0&&this.selectOption(this.options[this.activeIndex]);break;case"Escape":o.preventDefault(),this.open=!1,this.activeIndex=-1;break}}updated(){this.options.length>0&&(this.options.some(t=>t.value===this.value)||(this.value=this.options[0].value))}render(){const o=N.checkstroke.replace("<svg",'<svg aria-hidden="true" focusable="false" part="svg"'),t=this.options.find(e=>e.value===this.value);return l`
|
|
1649
1650
|
<button
|
|
1650
1651
|
role="combobox"
|
|
1651
1652
|
aria-haspopup="listbox"
|
|
@@ -1707,7 +1708,7 @@
|
|
|
1707
1708
|
</ul>`:null}
|
|
1708
1709
|
|
|
1709
1710
|
<input type="hidden" name="${this.name}" .value="${this.value}" />
|
|
1710
|
-
`}};
|
|
1711
|
+
`}};A.styles=f`
|
|
1711
1712
|
:host {
|
|
1712
1713
|
display: inline-block;
|
|
1713
1714
|
position: relative;
|
|
@@ -1882,7 +1883,7 @@
|
|
|
1882
1883
|
input[type="hidden"] {
|
|
1883
1884
|
display: none;
|
|
1884
1885
|
}
|
|
1885
|
-
`;M([a({type:Array,reflect:!0})],
|
|
1886
|
+
`;M([a({type:Array,reflect:!0})],A.prototype,"options",2);M([a({type:String,reflect:!0})],A.prototype,"value",2);M([a({type:String,reflect:!0})],A.prototype,"name",2);M([a({type:String,reflect:!0})],A.prototype,"additionaltext",2);M([a({type:Boolean,reflect:!0})],A.prototype,"disabled",2);M([a({type:String,reflect:!0})],A.prototype,"width",2);M([et()],A.prototype,"open",2);M([et()],A.prototype,"activeIndex",2);M([et()],A.prototype,"menuWidth",2);A=M([y("o-dropdown-variant")],A);/**
|
|
1886
1887
|
* @license
|
|
1887
1888
|
* Copyright 2018 Google LLC
|
|
1888
1889
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
@@ -1973,7 +1974,7 @@
|
|
|
1973
1974
|
overflow: hidden;
|
|
1974
1975
|
}
|
|
1975
1976
|
}
|
|
1976
|
-
`;Wt([a({type:Object,reflect:!0})],gt.prototype,"option",2);Wt([a({type:Number,reflect:!0})],gt.prototype,"imageSize",2);gt=Wt([y("o-reassurance")],gt);var oi=Object.defineProperty,ii=Object.getOwnPropertyDescriptor,V=(o,t,e,n)=>{for(var i=n>1?void 0:n?ii(t,e):t,r=o.length-1,s;r>=0;r--)(s=o[r])&&(i=(n?s(t,e,i):s(i))||i);return n&&i&&oi(t,e,i),i};const ni=Ft(u);let
|
|
1977
|
+
`;Wt([a({type:Object,reflect:!0})],gt.prototype,"option",2);Wt([a({type:Number,reflect:!0})],gt.prototype,"imageSize",2);gt=Wt([y("o-reassurance")],gt);var oi=Object.defineProperty,ii=Object.getOwnPropertyDescriptor,V=(o,t,e,n)=>{for(var i=n>1?void 0:n?ii(t,e):t,r=o.length-1,s;r>=0;r--)(s=o[r])&&(i=(n?s(t,e,i):s(i))||i);return n&&i&&oi(t,e,i),i};const ni=Ft(u);let E=class extends ni{constructor(){super(...arguments),this.link="",this.name="",this.value="",this.text="",this.size="standard",this.selected=!1,this.fullwidth=!1,this.inactive=!1}handleClick(o){this.selected||(this.selected=!0);const t={selected:this.selected},e=new CustomEvent("selected",{detail:t,bubbles:!0,composed:!0,cancelable:!0});this.dispatchEvent(e),e.defaultPrevented&&o.preventDefault(),this.selected=t.selected}render(){const o=this.text;return this.link?l`
|
|
1977
1978
|
<a href="${this.link}" class="o-chip" tabindex="${this.inactive?"-1":"0"}" aria-hidden="${this.inactive?"true":"false"}">
|
|
1978
1979
|
${o?this.text:l`<slot></slot>`}
|
|
1979
1980
|
</a>
|
|
@@ -1982,7 +1983,7 @@
|
|
|
1982
1983
|
aria-label=${this.ariaLabel} aria-pressed=${this.selected}>
|
|
1983
1984
|
${o?this.text:l`<slot></slot>`}
|
|
1984
1985
|
</button>
|
|
1985
|
-
`}};
|
|
1986
|
+
`}};E.styles=f`
|
|
1986
1987
|
:host {
|
|
1987
1988
|
cursor: pointer;
|
|
1988
1989
|
display: inline-flex;
|
|
@@ -2071,7 +2072,7 @@
|
|
|
2071
2072
|
display: inline-flex;
|
|
2072
2073
|
align-items: center;
|
|
2073
2074
|
}
|
|
2074
|
-
`;V([a({type:String,reflect:!0})],
|
|
2075
|
+
`;V([a({type:String,reflect:!0})],E.prototype,"link",2);V([a({reflect:!0})],E.prototype,"name",2);V([a({reflect:!0})],E.prototype,"value",2);V([a({type:String})],E.prototype,"text",2);V([a({type:String,reflect:!0})],E.prototype,"size",2);V([a({type:Boolean,reflect:!0})],E.prototype,"selected",2);V([a({type:Boolean,reflect:!0})],E.prototype,"fullwidth",2);V([a({type:Boolean,reflect:!0})],E.prototype,"inactive",2);E=V([y("o-chip")],E);var ri=Object.defineProperty,si=Object.getOwnPropertyDescriptor,Gt=(o,t,e,n)=>{for(var i=n>1?void 0:n?si(t,e):t,r=o.length-1,s;r>=0;r--)(s=o[r])&&(i=(n?s(t,e,i):s(i))||i);return n&&i&&ri(t,e,i),i};let yt=class extends u{constructor(){super(),this.name="",this.value="",this.addEventListener("selected",this.onChipSelected)}onChipSelected(o){const t=o.target instanceof E?o.target:null;t!=null&&t.link||(this.name=(t==null?void 0:t.name)||"",this.value=(t==null?void 0:t.value)||"",this.querySelectorAll("o-chip").forEach(e=>{e!==t&&(e.selected=!1)}))}render(){return l`
|
|
2075
2076
|
<slot></slot>
|
|
2076
2077
|
`}};yt.styles=f`
|
|
2077
2078
|
:host {
|
package/index.mjs
CHANGED
|
@@ -282,7 +282,7 @@ it.elementStyles = [], it.shadowRootOptions = { mode: "open" }, it[ct("elementPr
|
|
|
282
282
|
* Copyright 2017 Google LLC
|
|
283
283
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
284
284
|
*/
|
|
285
|
-
const ht = globalThis, _t = ht.trustedTypes, oe = _t ? _t.createPolicy("lit-html", { createHTML: (o) => o }) : void 0, de = "$lit$", K = `lit$${Math.random().toFixed(9).slice(2)}$`, pe = "?" + K,
|
|
285
|
+
const ht = globalThis, _t = ht.trustedTypes, oe = _t ? _t.createPolicy("lit-html", { createHTML: (o) => o }) : void 0, de = "$lit$", K = `lit$${Math.random().toFixed(9).slice(2)}$`, pe = "?" + K, Ae = `<${pe}>`, tt = document, pt = () => tt.createComment(""), ut = (o) => o === null || typeof o != "object" && typeof o != "function", Rt = Array.isArray, Ee = (o) => Rt(o) || typeof (o == null ? void 0 : o[Symbol.iterator]) == "function", Pt = `[
|
|
286
286
|
\f\r]`, lt = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, ie = /-->/g, ne = />/g, J = RegExp(`>|${Pt}(?:([^\\s"'>=/]+)(${Pt}*=${Pt}*(?:[^
|
|
287
287
|
\f\r"'\`<>=]|("|')|))|$)`, "g"), re = /'/g, se = /"/g, ue = /^(?:script|style|textarea|title)$/i, Le = (o) => (t, ...e) => ({ _$litType$: o, strings: t, values: e }), l = Le(1), G = Symbol.for("lit-noChange"), d = Symbol.for("lit-nothing"), ae = /* @__PURE__ */ new WeakMap(), Q = tt.createTreeWalker(tt, 129);
|
|
288
288
|
function ve(o, t) {
|
|
@@ -297,7 +297,7 @@ const Pe = (o, t) => {
|
|
|
297
297
|
let m, w, v = -1, R = 0;
|
|
298
298
|
for (; R < c.length && (s.lastIndex = R, w = s.exec(c), w !== null); ) R = s.lastIndex, s === lt ? w[1] === "!--" ? s = ie : w[1] !== void 0 ? s = ne : w[2] !== void 0 ? (ue.test(w[2]) && (i = RegExp("</" + w[2], "g")), s = J) : w[3] !== void 0 && (s = J) : s === J ? w[0] === ">" ? (s = i ?? lt, v = -1) : w[1] === void 0 ? v = -2 : (v = s.lastIndex - w[2].length, m = w[1], s = w[3] === void 0 ? J : w[3] === '"' ? se : re) : s === se || s === re ? s = J : s === ie || s === ne ? s = lt : (s = J, i = void 0);
|
|
299
299
|
const Z = s === J && o[h + 1].startsWith("/>") ? " " : "";
|
|
300
|
-
r += s === lt ? c +
|
|
300
|
+
r += s === lt ? c + Ae : v >= 0 ? (n.push(m), c.slice(0, v) + de + c.slice(v) + K + Z) : c + K + (v === -2 ? h : Z);
|
|
301
301
|
}
|
|
302
302
|
return [ve(o, r + (o[e] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), n];
|
|
303
303
|
};
|
|
@@ -393,7 +393,7 @@ class xt {
|
|
|
393
393
|
return this._$AB;
|
|
394
394
|
}
|
|
395
395
|
_$AI(t, e = this) {
|
|
396
|
-
t = nt(this, t, e), ut(t) ? t === d || t == null || t === "" ? (this._$AH !== d && this._$AR(), this._$AH = d) : t !== this._$AH && t !== G && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) :
|
|
396
|
+
t = nt(this, t, e), ut(t) ? t === d || t == null || t === "" ? (this._$AH !== d && this._$AR(), this._$AH = d) : t !== this._$AH && t !== G && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) : Ee(t) ? this.k(t) : this._(t);
|
|
397
397
|
}
|
|
398
398
|
O(t) {
|
|
399
399
|
return this._$AA.parentNode.insertBefore(t, this._$AB);
|
|
@@ -918,6 +918,7 @@ let b = class extends wo {
|
|
|
918
918
|
role="button"
|
|
919
919
|
@click=${this.handleClick}
|
|
920
920
|
@keydown=${this.handleClick}
|
|
921
|
+
aria-describedby=${this.getAttribute("aria-describedby") || d}
|
|
921
922
|
>
|
|
922
923
|
${this.startIcon ? this.renderIcon("start") : d}
|
|
923
924
|
${o ? l`
|
|
@@ -1184,7 +1185,7 @@ x([
|
|
|
1184
1185
|
b = x([
|
|
1185
1186
|
y("o-button")
|
|
1186
1187
|
], b);
|
|
1187
|
-
var $o = Object.defineProperty, Co = Object.getOwnPropertyDescriptor,
|
|
1188
|
+
var $o = Object.defineProperty, Co = Object.getOwnPropertyDescriptor, At = (o, t, e, n) => {
|
|
1188
1189
|
for (var i = n > 1 ? void 0 : n ? Co(t, e) : t, r = o.length - 1, s; r >= 0; r--)
|
|
1189
1190
|
(s = o[r]) && (i = (n ? s(t, e, i) : s(i)) || i);
|
|
1190
1191
|
return n && i && $o(t, e, i), i;
|
|
@@ -1295,16 +1296,16 @@ rt.styles = f`
|
|
|
1295
1296
|
white-space: nowrap !important;
|
|
1296
1297
|
}
|
|
1297
1298
|
`;
|
|
1298
|
-
|
|
1299
|
+
At([
|
|
1299
1300
|
a({ type: String, reflect: !0 })
|
|
1300
1301
|
], rt.prototype, "status", 2);
|
|
1301
|
-
|
|
1302
|
+
At([
|
|
1302
1303
|
a({ type: String, reflect: !0 })
|
|
1303
1304
|
], rt.prototype, "ariaDescribedBy", 2);
|
|
1304
|
-
|
|
1305
|
+
At([
|
|
1305
1306
|
a({ type: String, reflect: !0 })
|
|
1306
1307
|
], rt.prototype, "label", 2);
|
|
1307
|
-
rt =
|
|
1308
|
+
rt = At([
|
|
1308
1309
|
y("o-wishlist-button")
|
|
1309
1310
|
], rt);
|
|
1310
1311
|
/**
|
|
@@ -1588,8 +1589,8 @@ H([
|
|
|
1588
1589
|
S = H([
|
|
1589
1590
|
y("o-icon-button")
|
|
1590
1591
|
], S);
|
|
1591
|
-
var So = Object.defineProperty,
|
|
1592
|
-
for (var i = n > 1 ? void 0 : n ?
|
|
1592
|
+
var So = Object.defineProperty, Ao = Object.getOwnPropertyDescriptor, ot = (o, t, e, n) => {
|
|
1593
|
+
for (var i = n > 1 ? void 0 : n ? Ao(t, e) : t, r = o.length - 1, s; r >= 0; r--)
|
|
1593
1594
|
(s = o[r]) && (i = (n ? s(t, e, i) : s(i)) || i);
|
|
1594
1595
|
return n && i && So(t, e, i), i;
|
|
1595
1596
|
};
|
|
@@ -1740,10 +1741,10 @@ ot([
|
|
|
1740
1741
|
F = ot([
|
|
1741
1742
|
y("o-link")
|
|
1742
1743
|
], F);
|
|
1743
|
-
var
|
|
1744
|
+
var Eo = Object.defineProperty, Lo = Object.getOwnPropertyDescriptor, Et = (o, t, e, n) => {
|
|
1744
1745
|
for (var i = n > 1 ? void 0 : n ? Lo(t, e) : t, r = o.length - 1, s; r >= 0; r--)
|
|
1745
1746
|
(s = o[r]) && (i = (n ? s(t, e, i) : s(i)) || i);
|
|
1746
|
-
return n && i &&
|
|
1747
|
+
return n && i && Eo(t, e, i), i;
|
|
1747
1748
|
};
|
|
1748
1749
|
let st = class extends u {
|
|
1749
1750
|
constructor() {
|
|
@@ -1806,16 +1807,16 @@ st.styles = f`
|
|
|
1806
1807
|
cursor: pointer;
|
|
1807
1808
|
}
|
|
1808
1809
|
`;
|
|
1809
|
-
|
|
1810
|
+
Et([
|
|
1810
1811
|
a({ type: Number })
|
|
1811
1812
|
], st.prototype, "rating", 2);
|
|
1812
|
-
|
|
1813
|
+
Et([
|
|
1813
1814
|
a({ type: String })
|
|
1814
1815
|
], st.prototype, "reviewCount", 2);
|
|
1815
|
-
|
|
1816
|
+
Et([
|
|
1816
1817
|
a({ type: String })
|
|
1817
1818
|
], st.prototype, "href", 2);
|
|
1818
|
-
st =
|
|
1819
|
+
st = Et([
|
|
1819
1820
|
y("o-rating")
|
|
1820
1821
|
], st);
|
|
1821
1822
|
/**
|
|
@@ -3315,7 +3316,7 @@ var Xo = Object.defineProperty, Jo = Object.getOwnPropertyDescriptor, M = (o, t,
|
|
|
3315
3316
|
(s = o[r]) && (i = (n ? s(t, e, i) : s(i)) || i);
|
|
3316
3317
|
return n && i && Xo(t, e, i), i;
|
|
3317
3318
|
};
|
|
3318
|
-
let
|
|
3319
|
+
let A = class extends u {
|
|
3319
3320
|
constructor() {
|
|
3320
3321
|
super(...arguments), this.options = [], this.value = "", this.name = "", this.additionaltext = "+X variant(s)", this.disabled = !1, this.width = "100%", this.open = !1, this.activeIndex = -1, this.menuWidth = "", this._handleOutsideClick = (o) => {
|
|
3321
3322
|
this.contains(o.target) || (this.open = !1, this.activeIndex = -1);
|
|
@@ -3452,7 +3453,7 @@ let E = class extends u {
|
|
|
3452
3453
|
`;
|
|
3453
3454
|
}
|
|
3454
3455
|
};
|
|
3455
|
-
|
|
3456
|
+
A.styles = f`
|
|
3456
3457
|
:host {
|
|
3457
3458
|
display: inline-block;
|
|
3458
3459
|
position: relative;
|
|
@@ -3630,34 +3631,34 @@ E.styles = f`
|
|
|
3630
3631
|
`;
|
|
3631
3632
|
M([
|
|
3632
3633
|
a({ type: Array, reflect: !0 })
|
|
3633
|
-
],
|
|
3634
|
+
], A.prototype, "options", 2);
|
|
3634
3635
|
M([
|
|
3635
3636
|
a({ type: String, reflect: !0 })
|
|
3636
|
-
],
|
|
3637
|
+
], A.prototype, "value", 2);
|
|
3637
3638
|
M([
|
|
3638
3639
|
a({ type: String, reflect: !0 })
|
|
3639
|
-
],
|
|
3640
|
+
], A.prototype, "name", 2);
|
|
3640
3641
|
M([
|
|
3641
3642
|
a({ type: String, reflect: !0 })
|
|
3642
|
-
],
|
|
3643
|
+
], A.prototype, "additionaltext", 2);
|
|
3643
3644
|
M([
|
|
3644
3645
|
a({ type: Boolean, reflect: !0 })
|
|
3645
|
-
],
|
|
3646
|
+
], A.prototype, "disabled", 2);
|
|
3646
3647
|
M([
|
|
3647
3648
|
a({ type: String, reflect: !0 })
|
|
3648
|
-
],
|
|
3649
|
+
], A.prototype, "width", 2);
|
|
3649
3650
|
M([
|
|
3650
3651
|
et()
|
|
3651
|
-
],
|
|
3652
|
+
], A.prototype, "open", 2);
|
|
3652
3653
|
M([
|
|
3653
3654
|
et()
|
|
3654
|
-
],
|
|
3655
|
+
], A.prototype, "activeIndex", 2);
|
|
3655
3656
|
M([
|
|
3656
3657
|
et()
|
|
3657
|
-
],
|
|
3658
|
-
|
|
3658
|
+
], A.prototype, "menuWidth", 2);
|
|
3659
|
+
A = M([
|
|
3659
3660
|
y("o-dropdown-variant")
|
|
3660
|
-
],
|
|
3661
|
+
], A);
|
|
3661
3662
|
/**
|
|
3662
3663
|
* @license
|
|
3663
3664
|
* Copyright 2018 Google LLC
|
|
@@ -3809,7 +3810,7 @@ var oi = Object.defineProperty, ii = Object.getOwnPropertyDescriptor, V = (o, t,
|
|
|
3809
3810
|
return n && i && oi(t, e, i), i;
|
|
3810
3811
|
};
|
|
3811
3812
|
const ni = Ft(u);
|
|
3812
|
-
let
|
|
3813
|
+
let E = class extends ni {
|
|
3813
3814
|
constructor() {
|
|
3814
3815
|
super(...arguments), this.link = "", this.name = "", this.value = "", this.text = "", this.size = "standard", this.selected = !1, this.fullwidth = !1, this.inactive = !1;
|
|
3815
3816
|
}
|
|
@@ -3832,7 +3833,7 @@ let A = class extends ni {
|
|
|
3832
3833
|
`;
|
|
3833
3834
|
}
|
|
3834
3835
|
};
|
|
3835
|
-
|
|
3836
|
+
E.styles = f`
|
|
3836
3837
|
:host {
|
|
3837
3838
|
cursor: pointer;
|
|
3838
3839
|
display: inline-flex;
|
|
@@ -3924,31 +3925,31 @@ A.styles = f`
|
|
|
3924
3925
|
`;
|
|
3925
3926
|
V([
|
|
3926
3927
|
a({ type: String, reflect: !0 })
|
|
3927
|
-
],
|
|
3928
|
+
], E.prototype, "link", 2);
|
|
3928
3929
|
V([
|
|
3929
3930
|
a({ reflect: !0 })
|
|
3930
|
-
],
|
|
3931
|
+
], E.prototype, "name", 2);
|
|
3931
3932
|
V([
|
|
3932
3933
|
a({ reflect: !0 })
|
|
3933
|
-
],
|
|
3934
|
+
], E.prototype, "value", 2);
|
|
3934
3935
|
V([
|
|
3935
3936
|
a({ type: String })
|
|
3936
|
-
],
|
|
3937
|
+
], E.prototype, "text", 2);
|
|
3937
3938
|
V([
|
|
3938
3939
|
a({ type: String, reflect: !0 })
|
|
3939
|
-
],
|
|
3940
|
+
], E.prototype, "size", 2);
|
|
3940
3941
|
V([
|
|
3941
3942
|
a({ type: Boolean, reflect: !0 })
|
|
3942
|
-
],
|
|
3943
|
+
], E.prototype, "selected", 2);
|
|
3943
3944
|
V([
|
|
3944
3945
|
a({ type: Boolean, reflect: !0 })
|
|
3945
|
-
],
|
|
3946
|
+
], E.prototype, "fullwidth", 2);
|
|
3946
3947
|
V([
|
|
3947
3948
|
a({ type: Boolean, reflect: !0 })
|
|
3948
|
-
],
|
|
3949
|
-
|
|
3949
|
+
], E.prototype, "inactive", 2);
|
|
3950
|
+
E = V([
|
|
3950
3951
|
y("o-chip")
|
|
3951
|
-
],
|
|
3952
|
+
], E);
|
|
3952
3953
|
var ri = Object.defineProperty, si = Object.getOwnPropertyDescriptor, Gt = (o, t, e, n) => {
|
|
3953
3954
|
for (var i = n > 1 ? void 0 : n ? si(t, e) : t, r = o.length - 1, s; r >= 0; r--)
|
|
3954
3955
|
(s = o[r]) && (i = (n ? s(t, e, i) : s(i)) || i);
|
|
@@ -3959,7 +3960,7 @@ let yt = class extends u {
|
|
|
3959
3960
|
super(), this.name = "", this.value = "", this.addEventListener("selected", this.onChipSelected);
|
|
3960
3961
|
}
|
|
3961
3962
|
onChipSelected(o) {
|
|
3962
|
-
const t = o.target instanceof
|
|
3963
|
+
const t = o.target instanceof E ? o.target : null;
|
|
3963
3964
|
t != null && t.link || (this.name = (t == null ? void 0 : t.name) || "", this.value = (t == null ? void 0 : t.value) || "", this.querySelectorAll("o-chip").forEach((e) => {
|
|
3964
3965
|
e !== t && (e.selected = !1);
|
|
3965
3966
|
}));
|