@florid-kit/components 0.10.36 → 0.10.37
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/components/mediumtile.d.ts +1 -0
- package/index.js +28 -28
- package/index.mjs +127 -124
- package/package.json +2 -2
package/index.js
CHANGED
|
@@ -6,13 +6,13 @@
|
|
|
6
6
|
* @license
|
|
7
7
|
* Copyright 2017 Google LLC
|
|
8
8
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
9
|
-
*/const{is:Be,defineProperty:
|
|
9
|
+
*/const{is:Be,defineProperty:Oe,getOwnPropertyDescriptor:ze,getOwnPropertyNames:Ie,getOwnPropertySymbols:De,getPrototypeOf:He}=Object,Q=globalThis,de=Q.trustedTypes,Te=de?de.emptyScript:"",Tt=Q.reactiveElementPolyfillSupport,gt=(o,t)=>o,Pt={toAttribute(o,t){switch(t){case Boolean:o=o?Te:null;break;case Object:case Array:o=o==null?o:JSON.stringify(o)}return o},fromAttribute(o,t){let e=o;switch(t){case Boolean:e=o!==null;break;case Number:e=o===null?null:Number(o);break;case Object:case Array:try{e=JSON.parse(o)}catch{e=null}}return e}},Wt=(o,t)=>!Be(o,t),pe={attribute:!0,type:String,converter:Pt,reflect:!1,useDefault:!1,hasChanged:Wt};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),Q.litPropertyMetadata??(Q.litPropertyMetadata=new WeakMap);let ct=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??(this.l=[])).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=pe){if(e.state&&(e.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((e=Object.create(e)).wrapped=!0),this.elementProperties.set(t,e),!e.noAccessor){const n=Symbol(),i=this.getPropertyDescriptor(t,n,e);i!==void 0&&Oe(this.prototype,t,i)}}static getPropertyDescriptor(t,e,n){const{get:i,set:r}=ze(this.prototype,t)??{get(){return this[e]},set(s){this[e]=s}};return{get:i,set(s){const c=i==null?void 0:i.call(this);r==null||r.call(this,s),this.requestUpdate(t,c,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??pe}static _$Ei(){if(this.hasOwnProperty(gt("elementProperties")))return;const t=He(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(gt("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(gt("properties"))){const e=this.properties,n=[...Ie(e),...De(e)];for(const i of n)this.createProperty(i,e[i])}const t=this[Symbol.metadata];if(t!==null){const e=litPropertyMetadata.get(t);if(e!==void 0)for(const[n,i]of e)this.elementProperties.set(n,i)}this._$Eh=new Map;for(const[e,n]of this.elementProperties){const i=this._$Eu(e,n);i!==void 0&&this._$Eh.set(i,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const n=new Set(t.flat(1/0).reverse());for(const i of n)e.unshift(he(i))}else t!==void 0&&e.push(he(t));return e}static _$Eu(t,e){const n=e.attribute;return n===!1?void 0:typeof n=="string"?n:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var t;this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),(t=this.constructor.l)==null||t.forEach(e=>e(this))}addController(t){var e;(this._$EO??(this._$EO=new Set)).add(t),this.renderRoot!==void 0&&this.isConnected&&((e=t.hostConnected)==null||e.call(t))}removeController(t){var e;(e=this._$EO)==null||e.delete(t)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const n of e.keys())this.hasOwnProperty(n)&&(t.set(n,this[n]),delete this[n]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Pe(t,this.constructor.elementStyles),t}connectedCallback(){var t;this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$EO)==null||t.forEach(e=>{var n;return(n=e.hostConnected)==null?void 0:n.call(e)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$EO)==null||t.forEach(e=>{var n;return(n=e.hostDisconnected)==null?void 0:n.call(e)})}attributeChangedCallback(t,e,n){this._$AK(t,n)}_$ET(t,e){var r;const n=this.constructor.elementProperties.get(t),i=this.constructor._$Eu(t,n);if(i!==void 0&&n.reflect===!0){const s=(((r=n.converter)==null?void 0:r.toAttribute)!==void 0?n.converter:Pt).toAttribute(e,n.type);this._$Em=t,s==null?this.removeAttribute(i):this.setAttribute(i,s),this._$Em=null}}_$AK(t,e){var r,s;const n=this.constructor,i=n._$Eh.get(t);if(i!==void 0&&this._$Em!==i){const c=n.getPropertyOptions(i),h=typeof c.converter=="function"?{fromAttribute:c.converter}:((r=c.converter)==null?void 0:r.fromAttribute)!==void 0?c.converter:Pt;this._$Em=i,this[i]=h.fromAttribute(e,c.type)??((s=this._$Ej)==null?void 0:s.get(i))??null,this._$Em=null}}requestUpdate(t,e,n){var i;if(t!==void 0){const r=this.constructor,s=this[t];if(n??(n=r.getPropertyOptions(t)),!((n.hasChanged??Wt)(s,e)||n.useDefault&&n.reflect&&s===((i=this._$Ej)==null?void 0:i.get(t))&&!this.hasAttribute(r._$Eu(t,n))))return;this.C(t,e,n)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(t,e,{useDefault:n,reflect:i,wrapped:r},s){n&&!(this._$Ej??(this._$Ej=new Map)).has(t)&&(this._$Ej.set(t,s??e??this[t]),r!==!0||s!==void 0)||(this._$AL.has(t)||(this.hasUpdated||n||(e=void 0),this._$AL.set(t,e)),i===!0&&this._$Em!==t&&(this._$Eq??(this._$Eq=new Set)).add(t))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}const t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var n;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[r,s]of this._$Ep)this[r]=s;this._$Ep=void 0}const i=this.constructor.elementProperties;if(i.size>0)for(const[r,s]of i){const{wrapped:c}=s,h=this[r];c!==!0||this._$AL.has(r)||h===void 0||this.C(r,void 0,s,h)}}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),(n=this._$EO)==null||n.forEach(i=>{var r;return(r=i.hostUpdate)==null?void 0:r.call(i)}),this.update(e)):this._$EM()}catch(i){throw t=!1,this._$EM(),i}t&&this._$AE(e)}willUpdate(t){}_$AE(t){var e;(e=this._$EO)==null||e.forEach(n=>{var i;return(i=n.hostUpdated)==null?void 0:i.call(n)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&(this._$Eq=this._$Eq.forEach(e=>this._$ET(e,this[e]))),this._$EM()}updated(t){}firstUpdated(t){}};ct.elementStyles=[],ct.shadowRootOptions={mode:"open"},ct[gt("elementProperties")]=new Map,ct[gt("finalized")]=new Map,Tt==null||Tt({ReactiveElement:ct}),(Q.reactiveElementVersions??(Q.reactiveElementVersions=[])).push("2.1.0");/**
|
|
10
10
|
* @license
|
|
11
11
|
* Copyright 2017 Google LLC
|
|
12
12
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
13
13
|
*/const bt=globalThis,Bt=bt.trustedTypes,ue=Bt?Bt.createPolicy("lit-html",{createHTML:o=>o}):void 0,$e="$lit$",J=`lit$${Math.random().toFixed(9).slice(2)}$`,ke="?"+J,Me=`<${ke}>`,st=document,mt=()=>st.createComment(""),xt=o=>o===null||typeof o!="object"&&typeof o!="function",Gt=Array.isArray,je=o=>Gt(o)||typeof(o==null?void 0:o[Symbol.iterator])=="function",Mt=`[
|
|
14
14
|
\f\r]`,vt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,fe=/-->/g,ve=/>/g,it=RegExp(`>|${Mt}(?:([^\\s"'>=/]+)(${Mt}*=${Mt}*(?:[^
|
|
15
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),ge=/'/g,be=/"/g,_e=/^(?:script|style|textarea|title)$/i,Fe=o=>(t,...e)=>({_$litType$:o,strings:t,values:e}),l=Fe(1),tt=Symbol.for("lit-noChange"),d=Symbol.for("lit-nothing"),ye=new WeakMap,nt=st.createTreeWalker(st,129);function Ce(o,t){if(!Gt(o)||!o.hasOwnProperty("raw"))throw Error("invalid template strings array");return ue!==void 0?ue.createHTML(t):t}const Re=(o,t)=>{const e=o.length-1,n=[];let i,r=t===2?"<svg>":t===3?"<math>":"",s=vt;for(let c=0;c<e;c++){const h=o[c];let v,
|
|
15
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),ge=/'/g,be=/"/g,_e=/^(?:script|style|textarea|title)$/i,Fe=o=>(t,...e)=>({_$litType$:o,strings:t,values:e}),l=Fe(1),tt=Symbol.for("lit-noChange"),d=Symbol.for("lit-nothing"),ye=new WeakMap,nt=st.createTreeWalker(st,129);function Ce(o,t){if(!Gt(o)||!o.hasOwnProperty("raw"))throw Error("invalid template strings array");return ue!==void 0?ue.createHTML(t):t}const Re=(o,t)=>{const e=o.length-1,n=[];let i,r=t===2?"<svg>":t===3?"<math>":"",s=vt;for(let c=0;c<e;c++){const h=o[c];let v,w,g=-1,V=0;for(;V<h.length&&(s.lastIndex=V,w=s.exec(h),w!==null);)V=s.lastIndex,s===vt?w[1]==="!--"?s=fe:w[1]!==void 0?s=ve:w[2]!==void 0?(_e.test(w[2])&&(i=RegExp("</"+w[2],"g")),s=it):w[3]!==void 0&&(s=it):s===it?w[0]===">"?(s=i??vt,g=-1):w[1]===void 0?g=-2:(g=s.lastIndex-w[2].length,v=w[1],s=w[3]===void 0?it:w[3]==='"'?be:ge):s===be||s===ge?s=it:s===fe||s===ve?s=vt:(s=it,i=void 0);const Y=s===it&&o[c+1].startsWith("/>")?" ":"";r+=s===vt?h+Me:g>=0?(n.push(v),h.slice(0,g)+$e+h.slice(g)+J+Y):h+J+(g===-2?c:Y)}return[Ce(o,r+(o[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),n]};class wt{constructor({strings:t,_$litType$:e},n){let i;this.parts=[];let r=0,s=0;const c=t.length-1,h=this.parts,[v,w]=Re(t,e);if(this.el=wt.createElement(v,n),nt.currentNode=this.el.content,e===2||e===3){const g=this.el.content.firstChild;g.replaceWith(...g.childNodes)}for(;(i=nt.nextNode())!==null&&h.length<c;){if(i.nodeType===1){if(i.hasAttributes())for(const g of i.getAttributeNames())if(g.endsWith($e)){const V=w[s++],Y=i.getAttribute(g).split(J),At=/([.?@])?(.*)/.exec(V);h.push({type:1,index:r,name:At[2],strings:Y,ctor:At[1]==="."?Ne:At[1]==="?"?qe:At[1]==="@"?Ve:zt}),i.removeAttribute(g)}else g.startsWith(J)&&(h.push({type:6,index:r}),i.removeAttribute(g));if(_e.test(i.tagName)){const g=i.textContent.split(J),V=g.length-1;if(V>0){i.textContent=Bt?Bt.emptyScript:"";for(let Y=0;Y<V;Y++)i.append(g[Y],mt()),nt.nextNode(),h.push({type:2,index:++r});i.append(g[V],mt())}}}else if(i.nodeType===8)if(i.data===ke)h.push({type:2,index:r});else{let g=-1;for(;(g=i.data.indexOf(J,g+1))!==-1;)h.push({type:7,index:r}),g+=J.length-1}r++}}static createElement(t,e){const n=st.createElement("template");return n.innerHTML=t,n}}function ht(o,t,e=o,n){var s,c;if(t===tt)return t;let i=n!==void 0?(s=e._$Co)==null?void 0:s[n]:e._$Cl;const r=xt(t)?void 0:t._$litDirective$;return(i==null?void 0:i.constructor)!==r&&((c=i==null?void 0:i._$AO)==null||c.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=ht(o,i._$AS(o,t.values),i,n)),t}class Ue{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)??st).importNode(e,!0);nt.currentNode=i;let r=nt.nextNode(),s=0,c=0,h=n[0];for(;h!==void 0;){if(s===h.index){let v;h.type===2?v=new Et(r,r.nextSibling,this,t):h.type===1?v=new h.ctor(r,h.name,h.strings,this,t):h.type===6&&(v=new Ze(r,this,t)),this._$AV.push(v),h=n[++c]}s!==(h==null?void 0:h.index)&&(r=nt.nextNode(),s++)}return nt.currentNode=st,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 Et{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=ht(this,t,e),xt(t)?t===d||t==null||t===""?(this._$AH!==d&&this._$AR(),this._$AH=d):t!==this._$AH&&t!==tt&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):je(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&&xt(this._$AH)?this._$AA.nextSibling.data=t:this.T(st.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=wt.createElement(Ce(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 Ue(i,this),c=s.u(this.options);s.p(e),this.T(c),this._$AH=s}}_$AC(t){let e=ye.get(t.strings);return e===void 0&&ye.set(t.strings,e=new wt(t)),e}k(t){Gt(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 Et(this.O(mt()),this.O(mt()),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 zt{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=ht(this,t,e,0),s=!xt(t)||t!==this._$AH&&t!==tt,s&&(this._$AH=t);else{const c=t;let h,v;for(t=r[0],h=0;h<r.length-1;h++)v=ht(this,c[n+h],e,h),v===tt&&(v=this._$AH[h]),s||(s=!xt(v)||v!==this._$AH[h]),v===d?t=d:t!==d&&(t+=(v??"")+r[h+1]),this._$AH[h]=v}s&&!i&&this.j(t)}j(t){t===d?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class Ne extends zt{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===d?void 0:t}}class qe extends zt{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==d)}}class Ve extends zt{constructor(t,e,n,i,r){super(t,e,n,i,r),this.type=5}_$AI(t,e=this){if((t=ht(this,t,e,0)??d)===tt)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 Ze{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){ht(this,t)}}const jt=bt.litHtmlPolyfillSupport;jt==null||jt(wt,Et),(bt.litHtmlVersions??(bt.litHtmlVersions=[])).push("3.3.0");const Ke=(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 Et(t.insertBefore(mt(),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
|
|
@@ -180,11 +180,11 @@
|
|
|
180
180
|
* @license
|
|
181
181
|
* Copyright 2020 Google LLC
|
|
182
182
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
183
|
-
*/const
|
|
183
|
+
*/const Oo=o=>o.strings===void 0;/**
|
|
184
184
|
* @license
|
|
185
185
|
* Copyright 2017 Google LLC
|
|
186
186
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
187
|
-
*/const yt=(o,t)=>{var n;const e=o._$AN;if(e===void 0)return!1;for(const i of e)(n=i._$AO)==null||n.call(i,t,!1),yt(i,t);return!0},
|
|
187
|
+
*/const yt=(o,t)=>{var n;const e=o._$AN;if(e===void 0)return!1;for(const i of e)(n=i._$AO)==null||n.call(i,t,!1),yt(i,t);return!0},Ot=o=>{let t,e;do{if((t=o._$AM)===void 0)break;e=t._$AN,e.delete(o),o=t}while((e==null?void 0:e.size)===0)},Ee=o=>{for(let t;t=o._$AM;o=t){let e=t._$AN;if(e===void 0)t._$AN=e=new Set;else if(e.has(o))break;e.add(o),Do(t)}};function zo(o){this._$AN!==void 0?(Ot(this),this._$AM=o,Ee(this)):this._$AM=o}function Io(o,t=!1,e=0){const n=this._$AH,i=this._$AN;if(i!==void 0&&i.size!==0)if(t)if(Array.isArray(n))for(let r=e;r<n.length;r++)yt(n[r],!1),Ot(n[r]);else n!=null&&(yt(n,!1),Ot(n));else yt(this,o)}const Do=o=>{o.type==Qt.CHILD&&(o._$AP??(o._$AP=Io),o._$AQ??(o._$AQ=zo))};class Ho extends ee{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,e,n){super._$AT(t,e,n),Ee(this),this.isConnected=t._$AU}_$AO(t,e=!0){var n,i;t!==this.isConnected&&(this.isConnected=t,t?(n=this.reconnected)==null||n.call(this):(i=this.disconnected)==null||i.call(this)),e&&(yt(this,t),Ot(this))}setValue(t){if(Oo(this._$Ct))this._$Ct._$AI(t,this);else{const e=[...this._$Ct._$AH];e[this._$Ci]=t,this._$Ct._$AI(e,this,0)}}disconnected(){}reconnected(){}}class To extends Ho{constructor(){super(...arguments),this.prevData={}}render(t){return d}update(t,[e]){var n;this.element!==t.element&&(this.element=t.element),this.host=((n=t.options)===null||n===void 0?void 0:n.host)||this.element,this.apply(e),this.groom(e),this.prevData={...e}}apply(t){if(!t)return;const{prevData:e,element:n}=this;for(const i in t){const r=t[i];r!==e[i]&&(n[i]=r)}}groom(t){const{prevData:e,element:n}=this;if(e)for(const i in e)(!t||!(i in t)&&n[i]===e[i])&&(n[i]=void 0)}}class Mo extends To{constructor(){super(...arguments),this.eventData={}}apply(t){if(t)for(const e in t){const n=t[e];n!==this.eventData[e]&&this.applyEvent(e,n)}}applyEvent(t,e){const{prevData:n,element:i}=this;this.eventData[t]=e,n[t]&&i.removeEventListener(t,this,e),i.addEventListener(t,this,e)}groom(t){const{prevData:e,element:n}=this;if(e)for(const i in e)(!t||!(i in t)&&n[i]===e[i])&&this.groomEvent(i,e[i])}groomEvent(t,e){const{element:n}=this;delete this.eventData[t],n.removeEventListener(t,this,e)}handleEvent(t){const e=this.eventData[t.type];typeof e=="function"?e.call(this.host,t):e.handleEvent(t)}disconnected(){const{eventData:t,element:e}=this;for(const n in t){const i=n.slice(1),r=t[n];e.removeEventListener(i,this,r)}}reconnected(){const{eventData:t,element:e}=this;for(const n in t){const i=n.slice(1),r=t[n];e.addEventListener(i,this,r)}}}class jo extends Mo{apply(t){if(!t)return;const{prevData:e,element:n}=this;for(const i in t){const r=t[i];if(r===e[i])continue;const s=i.slice(1);switch(i[0]){case"@":this.eventData[s]=r,this.applyEvent(s,r);break;case".":n[s]=r;break;case"?":r?n.setAttribute(s,""):n.removeAttribute(s);break;default:r!=null?n.setAttribute(i,String(r)):n.removeAttribute(i);break}}}groom(t){const{prevData:e,element:n}=this;if(e)for(const i in e){const r=i.slice(1);if(!t||!(i in t)&&n[r]===e[i])switch(i[0]){case"@":this.groomEvent(r,e[i]);break;case".":n[r]=void 0;break;case"?":n.removeAttribute(r);break;default:n.removeAttribute(i);break}}}}const me=te(jo);/**
|
|
188
188
|
* @license
|
|
189
189
|
* Copyright 2018 Google LLC
|
|
190
190
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
@@ -387,7 +387,7 @@
|
|
|
387
387
|
.sr-only {
|
|
388
388
|
${Xt}
|
|
389
389
|
}
|
|
390
|
-
`;R([a({type:String,reflect:!0})],B.prototype,"bgstyle",2);R([a({type:String,reflect:!0})],B.prototype,"size",2);R([a({type:String,reflect:!0})],B.prototype,"status",2);R([a({type:String,reflect:!0})],B.prototype,"type",2);R([a({type:String})],B.prototype,"strokewidth",2);R([a({type:String})],B.prototype,"icon",2);R([a({type:Boolean,reflect:!0})],B.prototype,"disabled",2);R([a({type:Boolean})],B.prototype,"showSrLabel",2);R([a({type:String})],B.prototype,"srLabel",2);B=R([y("o-icon-button")],B);var Uo=Object.defineProperty,No=Object.getOwnPropertyDescriptor,b=(o,t,e,n)=>{for(var i=n>1?void 0:n?No(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&&Uo(t,e,i),i};let p=class extends u{constructor(){super(...arguments),this.open=!1,this.showHeader=!0,this.showFooter=!1,this.showHeaderStartIcon=!1,this.headerTitle="",this.headerTitleClassName="panel-title",this.labelDialog="",this.labelAriaDialogPanel="",this.addToBagProductCount="",this.closeButtonLabel="Close the modal",this.goBackButtonLabel="Go back to",this.firstButtonLabel="Close",this.firstButtonVariant="primary",this.firstButtonProps={},this.onFirstButtonClickClose=!1,this.secondButtonLabel="",this.secondButtonVariant="secondary",this.secondButtonProps={},this.onSecondButtonClickClose=!1,this.disablePortal=!1,this.zIndex=99,this.initialized=!1,this.showDetail=!1,this.isHidingDetail=!1,this.previousFocusedElement=null,this.previousFocusedSelector=null,this._onOpenDetail=async o=>{var e,n;const t=((e=o.detail)==null?void 0:e.origin)??document.activeElement;if(this._detailOriginEl=t,this._detailOriginClass=(t==null?void 0:t.className)??"",this.showDetail=!0,this.showHeaderStartIcon=!0,await this.updateComplete,this._detailOriginClass){const i=(n=this.shadowRoot)==null?void 0:n.querySelector(".detail-view");i&&i.setAttribute("fromelement",this._detailOriginClass)}await this.focusDetailReturnBtn()},this._detailOriginEl=null,this._detailOriginClass="",this.handleKeyDown=o=>{this.open&&(o.key==="Escape"?this.closePanel():o.key==="Tab"&&this.trapFocus(o))},this.handleClosePanel=o=>{if(o instanceof KeyboardEvent&&o.key!=="Enter"&&o.key!==" ")return;o.preventDefault(),o.stopPropagation();const t=o.currentTarget,e=(t==null?void 0:t.getAttribute("data-role"))==="back";if(this.showDetail&&e){this.isHidingDetail=!0;const n=this.renderRoot.querySelector(".content"),i=async()=>{this.showDetail=!1,this.isHidingDetail=!1,this.showHeaderStartIcon=!1,await this.updateComplete,this._restoreFocusToOrigin()};if(n){this.showHeaderStartIcon=!1;const r=()=>{this.showDetail=!1,this.isHidingDetail=!1,n.removeEventListener("animationend",r),i()};n.addEventListener("animationend",r)}else this.showDetail=!1,this.isHidingDetail=!1,this.showHeaderStartIcon=!1;return}this.closePanel()}}focusFirstInPanel(){var t,e,n;(n=this.getFocusableElements().map(i=>this.resolveFocusable(i)).filter(i=>!!i&&!i.hasAttribute("disabled"))[0]??((t=this.shadowRoot)==null?void 0:t.querySelector(".close-btn"))??((e=this.shadowRoot)==null?void 0:e.querySelector(".panel")))==null||n.focus({preventScroll:!0})}resolveFocusable(o){var e;const t=o.tagName.toLowerCase();return t==="o-icon-button"||t==="o-button"?((e=o.shadowRoot)==null?void 0:e.querySelector("button, .button"))??o:o}connectedCallback(){super.connectedCallback(),!this.disablePortal&&this.parentElement!==document.body&&document.body.appendChild(this),this.addEventListener("keydown",this.handleKeyDown),this.updateComplete.then(()=>{this.initialized=!0}),this.addEventListener("open-detail",this._onOpenDetail),this.addEventListener("focusin",o=>{o.composedPath()[0]===this&&this.focusFirstInPanel()})}disconnectedCallback(){document.body.style.overflow="",document.body.removeAttribute("data-side-panel"),this.removeEventListener("keydown",this.handleKeyDown),super.disconnectedCallback(),this.removeEventListener("open-detail",this._onOpenDetail)}async focusDetailReturnBtn(){var i,r,s,c,h;await this.updateComplete;const o=this.getDeepActiveElement(document);if(o&&o!==document.body)try{o.blur()}catch{}await new Promise(requestAnimationFrame);const t=(i=this.shadowRoot)==null?void 0:i.querySelector(".detail-view .return-btn");if(!t)return;t.updateComplete&&await t.updateComplete,(c=(s=((r=t.shadowRoot)==null?void 0:r.querySelector("button"))??t)==null?void 0:s.focus)==null||c.call(s,{preventScroll:!0});const n=(h=this.shadowRoot)==null?void 0:h.querySelector('.panel[role="dialog"]');n&&n.setAttribute("aria-label",this.labelAriaDialogPanel||"panel-title")}_restoreFocusToOrigin(){var t,e;const o=this._detailOriginEl;!o||!document.contains(o)||((e=(t=document.activeElement)==null?void 0:t.blur)==null||e.call(t),requestAnimationFrame(()=>{var i;o.classList.add("a--tabfocus"),(((i=o.shadowRoot)==null?void 0:i.querySelector('button, .button, [tabindex]:not([tabindex="-1"])'))??null??o).focus({preventScroll:!0})}))}getDeepActiveElement(o=this.shadowRoot){let t=o.activeElement;for(;t&&t.shadowRoot&&t.shadowRoot.activeElement;)t=t.shadowRoot.activeElement;return t}trapFocus(o){var r;if(o.key!=="Tab")return;const t=this.shadowRoot;if(!t)return;const e=this.getDeepActiveElement();if(this.showDetail){const s=t.querySelector(".detail-view .return-btn"),c=t.querySelector(".detail-view .close-btn"),h=s?this.resolveFocusable(s):null,v=c?this.resolveFocusable(c):null;if(o.shiftKey&&h&&e===h&&v){o.preventDefault(),o.stopPropagation(),v.focus({preventScroll:!0});return}if(!o.shiftKey&&v&&e===v){o.preventDefault(),o.stopPropagation(),(((r=t.querySelector(".detail-scroller"))==null?void 0:r.querySelector(p.focusablesSelector))??h??v).focus({preventScroll:!0});return}}if(document.querySelector("#refineandsortpopin")){const s=t.querySelector(".close-btn"),c=s?this.resolveFocusable(s):null,h=t.querySelector(".js-clear-refinements"),v=h?this.resolveFocusable(h):null,
|
|
390
|
+
`;R([a({type:String,reflect:!0})],B.prototype,"bgstyle",2);R([a({type:String,reflect:!0})],B.prototype,"size",2);R([a({type:String,reflect:!0})],B.prototype,"status",2);R([a({type:String,reflect:!0})],B.prototype,"type",2);R([a({type:String})],B.prototype,"strokewidth",2);R([a({type:String})],B.prototype,"icon",2);R([a({type:Boolean,reflect:!0})],B.prototype,"disabled",2);R([a({type:Boolean})],B.prototype,"showSrLabel",2);R([a({type:String})],B.prototype,"srLabel",2);B=R([y("o-icon-button")],B);var Uo=Object.defineProperty,No=Object.getOwnPropertyDescriptor,b=(o,t,e,n)=>{for(var i=n>1?void 0:n?No(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&&Uo(t,e,i),i};let p=class extends u{constructor(){super(...arguments),this.open=!1,this.showHeader=!0,this.showFooter=!1,this.showHeaderStartIcon=!1,this.headerTitle="",this.headerTitleClassName="panel-title",this.labelDialog="",this.labelAriaDialogPanel="",this.addToBagProductCount="",this.closeButtonLabel="Close the modal",this.goBackButtonLabel="Go back to",this.firstButtonLabel="Close",this.firstButtonVariant="primary",this.firstButtonProps={},this.onFirstButtonClickClose=!1,this.secondButtonLabel="",this.secondButtonVariant="secondary",this.secondButtonProps={},this.onSecondButtonClickClose=!1,this.disablePortal=!1,this.zIndex=99,this.initialized=!1,this.showDetail=!1,this.isHidingDetail=!1,this.previousFocusedElement=null,this.previousFocusedSelector=null,this._onOpenDetail=async o=>{var e,n;const t=((e=o.detail)==null?void 0:e.origin)??document.activeElement;if(this._detailOriginEl=t,this._detailOriginClass=(t==null?void 0:t.className)??"",this.showDetail=!0,this.showHeaderStartIcon=!0,await this.updateComplete,this._detailOriginClass){const i=(n=this.shadowRoot)==null?void 0:n.querySelector(".detail-view");i&&i.setAttribute("fromelement",this._detailOriginClass)}await this.focusDetailReturnBtn()},this._detailOriginEl=null,this._detailOriginClass="",this.handleKeyDown=o=>{this.open&&(o.key==="Escape"?this.closePanel():o.key==="Tab"&&this.trapFocus(o))},this.handleClosePanel=o=>{if(o instanceof KeyboardEvent&&o.key!=="Enter"&&o.key!==" ")return;o.preventDefault(),o.stopPropagation();const t=o.currentTarget,e=(t==null?void 0:t.getAttribute("data-role"))==="back";if(this.showDetail&&e){this.isHidingDetail=!0;const n=this.renderRoot.querySelector(".content"),i=async()=>{this.showDetail=!1,this.isHidingDetail=!1,this.showHeaderStartIcon=!1,await this.updateComplete,this._restoreFocusToOrigin()};if(n){this.showHeaderStartIcon=!1;const r=()=>{this.showDetail=!1,this.isHidingDetail=!1,n.removeEventListener("animationend",r),i()};n.addEventListener("animationend",r)}else this.showDetail=!1,this.isHidingDetail=!1,this.showHeaderStartIcon=!1;return}this.closePanel()}}focusFirstInPanel(){var t,e,n;(n=this.getFocusableElements().map(i=>this.resolveFocusable(i)).filter(i=>!!i&&!i.hasAttribute("disabled"))[0]??((t=this.shadowRoot)==null?void 0:t.querySelector(".close-btn"))??((e=this.shadowRoot)==null?void 0:e.querySelector(".panel")))==null||n.focus({preventScroll:!0})}resolveFocusable(o){var e;const t=o.tagName.toLowerCase();return t==="o-icon-button"||t==="o-button"?((e=o.shadowRoot)==null?void 0:e.querySelector("button, .button"))??o:o}connectedCallback(){super.connectedCallback(),!this.disablePortal&&this.parentElement!==document.body&&document.body.appendChild(this),this.addEventListener("keydown",this.handleKeyDown),this.updateComplete.then(()=>{this.initialized=!0}),this.addEventListener("open-detail",this._onOpenDetail),this.addEventListener("focusin",o=>{o.composedPath()[0]===this&&this.focusFirstInPanel()})}disconnectedCallback(){document.body.style.overflow="",document.body.removeAttribute("data-side-panel"),this.removeEventListener("keydown",this.handleKeyDown),super.disconnectedCallback(),this.removeEventListener("open-detail",this._onOpenDetail)}async focusDetailReturnBtn(){var i,r,s,c,h;await this.updateComplete;const o=this.getDeepActiveElement(document);if(o&&o!==document.body)try{o.blur()}catch{}await new Promise(requestAnimationFrame);const t=(i=this.shadowRoot)==null?void 0:i.querySelector(".detail-view .return-btn");if(!t)return;t.updateComplete&&await t.updateComplete,(c=(s=((r=t.shadowRoot)==null?void 0:r.querySelector("button"))??t)==null?void 0:s.focus)==null||c.call(s,{preventScroll:!0});const n=(h=this.shadowRoot)==null?void 0:h.querySelector('.panel[role="dialog"]');n&&n.setAttribute("aria-label",this.labelAriaDialogPanel||"panel-title")}_restoreFocusToOrigin(){var t,e;const o=this._detailOriginEl;!o||!document.contains(o)||((e=(t=document.activeElement)==null?void 0:t.blur)==null||e.call(t),requestAnimationFrame(()=>{var i;o.classList.add("a--tabfocus"),(((i=o.shadowRoot)==null?void 0:i.querySelector('button, .button, [tabindex]:not([tabindex="-1"])'))??null??o).focus({preventScroll:!0})}))}getDeepActiveElement(o=this.shadowRoot){let t=o.activeElement;for(;t&&t.shadowRoot&&t.shadowRoot.activeElement;)t=t.shadowRoot.activeElement;return t}trapFocus(o){var r;if(o.key!=="Tab")return;const t=this.shadowRoot;if(!t)return;const e=this.getDeepActiveElement();if(this.showDetail){const s=t.querySelector(".detail-view .return-btn"),c=t.querySelector(".detail-view .close-btn"),h=s?this.resolveFocusable(s):null,v=c?this.resolveFocusable(c):null;if(o.shiftKey&&h&&e===h&&v){o.preventDefault(),o.stopPropagation(),v.focus({preventScroll:!0});return}if(!o.shiftKey&&v&&e===v){o.preventDefault(),o.stopPropagation(),(((r=t.querySelector(".detail-scroller"))==null?void 0:r.querySelector(p.focusablesSelector))??h??v).focus({preventScroll:!0});return}}if(document.querySelector("#refineandsortpopin")){const s=t.querySelector(".close-btn"),c=s?this.resolveFocusable(s):null,h=t.querySelector(".js-clear-refinements"),v=h?this.resolveFocusable(h):null,w=g=>{o.preventDefault(),o.stopPropagation(),g.focus()};if(c&&v){if(!o.shiftKey&&e===v)return w(c);if(o.shiftKey&&e===c)return w(v)}}const i=this.renderRoot.querySelector(".close-btn");if(!o.shiftKey&&i&&i.contains(e)){o.preventDefault();const s=this.renderRoot.querySelector(".o-whats-inside--content p");s==null||s.focus()}}getFocusableElements(){const o=this.renderRoot.querySelector(".panel");if(!o)return[];function t(i){return!(i.disabled||i.hasAttribute("disabled")||i.hasAttribute("tabindex")&&i.getAttribute("tabindex")==="-1")}function e(i){var s;const r=[i.matches(p.focusablesSelector)?i:[]];if(!["o-icon-button","o-button"].includes(i.tagName.toLowerCase())){const c=Array.from(i instanceof HTMLSlotElement?i.assignedElements({flatten:!0}):[]).filter(t).flatMap(e),h=Array.from(((s=i.shadowRoot)==null?void 0:s.querySelectorAll("*"))||[]).filter(t).flatMap(e);r.push(...c,...h)}return r.flat()}return Array.from(o.querySelectorAll("*")).filter(t).flatMap(e)}openPanel(){var t;this.removeAttribute("hidden"),this.getBoundingClientRect(),this.previousFocusedElement=document.activeElement,this.previousFocusedSelector=(t=this.previousFocusedElement)==null?void 0:t.getAttribute("paneltarget"),this.open=!0,document.body.style.overflow="hidden",document.body.setAttribute("data-side-panel","open");const o=this.renderRoot.querySelector(".panel");o&&o.setAttribute("aria-modal","true"),this.updateComplete.then(()=>{var e,n;if(this.showHeader){const i=(e=this.shadowRoot)==null?void 0:e.querySelector(".panel .close-btn"),r=this.resolveFocusable(i);(n=r==null?void 0:r.focus)==null||n.call(r,{preventScroll:!0})}else this.focusFirstInPanel()}),this.dispatchEvent(new CustomEvent("open",{bubbles:!0,composed:!0}))}closePanel(){var e,n,i;this.open=!1,this.showDetail=!1,document.body.style.overflow="",document.body.removeAttribute("data-side-panel");let o=this.previousFocusedElement;o!=null&&o.isConnected||(o=document.querySelector(`[paneltarget="${this.previousFocusedSelector}"]`)),(o==null?void 0:o.tagName.toLowerCase())==="o-button"?(i=(n=(e=o.shadowRoot)==null?void 0:e.querySelector(".button"))==null?void 0:n.focus)==null||i.call(n):o==null||o.focus();const t=this.renderRoot.querySelector(".panel");t&&t.removeAttribute("aria-modal"),this.dispatchEvent(new CustomEvent("close",{bubbles:!0,composed:!0}))}handleFirstClick(o){o instanceof KeyboardEvent&&o.key!=="Enter"&&o.key!==" "||(o.preventDefault(),o.stopPropagation(),this.onFirstButtonClickClose&&this.closePanel(),this.dispatchEvent(new CustomEvent("firstbuttonclick",{bubbles:!0,composed:!0,cancelable:!0,detail:{button:"first",target:o.target}})))}handleSecondClick(o){o instanceof KeyboardEvent&&o.key!=="Enter"&&o.key!==" "||(o.preventDefault(),o.stopPropagation(),this.onSecondButtonClickClose&&this.closePanel(),this.dispatchEvent(new CustomEvent("secondbuttonclick",{bubbles:!0,composed:!0,cancelable:!0,detail:{button:"second",target:o.target}})))}updated(){this.style.setProperty("--z-overlay",`${this.zIndex||99}`),this.style.setProperty("--z-panel",`${this.zIndex?this.zIndex+1:99}`),this.open||setTimeout(()=>{this.setAttribute("hidden","hidden")},500)}render(){const o=this.showHeader?l`
|
|
391
391
|
<div tabindex="-1" class="header ${this.showDetail?"detail-view-header":""}">
|
|
392
392
|
${this.showHeaderStartIcon?l`
|
|
393
393
|
<o-icon-button
|
|
@@ -709,7 +709,7 @@
|
|
|
709
709
|
overflow: auto;
|
|
710
710
|
box-sizing: border-box;
|
|
711
711
|
}
|
|
712
|
-
`;p.focusablesSelector='button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"]), o-icon-button, o-button';p.focusablesCustomElementsSelector="o-icon-button, o-button";p.shadowRootOptions={...u.shadowRootOptions,delegatesFocus:!0};b([a({type:Boolean,reflect:!0})],p.prototype,"open",2);b([a({type:Boolean,reflect:!0})],p.prototype,"showHeader",2);b([a({type:Boolean,reflect:!0})],p.prototype,"showFooter",2);b([a({type:Boolean,reflect:!0})],p.prototype,"showHeaderStartIcon",2);b([a({type:String,reflect:!0})],p.prototype,"headerTitle",2);b([a({type:String,reflect:!0})],p.prototype,"headerTitleClassName",2);b([a({type:String,reflect:!0})],p.prototype,"labelDialog",2);b([a({type:String,reflect:!0})],p.prototype,"labelAriaDialogPanel",2);b([a({type:String,reflect:!0})],p.prototype,"addToBagProductCount",2);b([a({type:String,reflect:!0})],p.prototype,"closeButtonLabel",2);b([a({type:String,reflect:!0})],p.prototype,"goBackButtonLabel",2);b([a({type:String,reflect:!0})],p.prototype,"firstButtonLabel",2);b([a({type:String,reflect:!0})],p.prototype,"firstButtonVariant",2);b([a({type:Object,reflect:!0})],p.prototype,"firstButtonProps",2);b([a({type:Boolean,reflect:!0})],p.prototype,"onFirstButtonClickClose",2);b([a({type:String,reflect:!0})],p.prototype,"secondButtonLabel",2);b([a({type:String,reflect:!0})],p.prototype,"secondButtonVariant",2);b([a({type:Object,reflect:!0})],p.prototype,"secondButtonProps",2);b([a({type:Boolean,reflect:!0})],p.prototype,"onSecondButtonClickClose",2);b([a({type:Boolean,reflect:!0})],p.prototype,"disablePortal",2);b([a({type:Number,reflect:!0})],p.prototype,"zIndex",2);b([a({type:Boolean,reflect:!0})],p.prototype,"initialized",2);b([a({type:Boolean})],p.prototype,"showDetail",2);b([a({type:Boolean})],p.prototype,"isHidingDetail",2);p=b([y("o-side-panel")],p);var qo=Object.defineProperty,Vo=Object.getOwnPropertyDescriptor,
|
|
712
|
+
`;p.focusablesSelector='button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"]), o-icon-button, o-button';p.focusablesCustomElementsSelector="o-icon-button, o-button";p.shadowRootOptions={...u.shadowRootOptions,delegatesFocus:!0};b([a({type:Boolean,reflect:!0})],p.prototype,"open",2);b([a({type:Boolean,reflect:!0})],p.prototype,"showHeader",2);b([a({type:Boolean,reflect:!0})],p.prototype,"showFooter",2);b([a({type:Boolean,reflect:!0})],p.prototype,"showHeaderStartIcon",2);b([a({type:String,reflect:!0})],p.prototype,"headerTitle",2);b([a({type:String,reflect:!0})],p.prototype,"headerTitleClassName",2);b([a({type:String,reflect:!0})],p.prototype,"labelDialog",2);b([a({type:String,reflect:!0})],p.prototype,"labelAriaDialogPanel",2);b([a({type:String,reflect:!0})],p.prototype,"addToBagProductCount",2);b([a({type:String,reflect:!0})],p.prototype,"closeButtonLabel",2);b([a({type:String,reflect:!0})],p.prototype,"goBackButtonLabel",2);b([a({type:String,reflect:!0})],p.prototype,"firstButtonLabel",2);b([a({type:String,reflect:!0})],p.prototype,"firstButtonVariant",2);b([a({type:Object,reflect:!0})],p.prototype,"firstButtonProps",2);b([a({type:Boolean,reflect:!0})],p.prototype,"onFirstButtonClickClose",2);b([a({type:String,reflect:!0})],p.prototype,"secondButtonLabel",2);b([a({type:String,reflect:!0})],p.prototype,"secondButtonVariant",2);b([a({type:Object,reflect:!0})],p.prototype,"secondButtonProps",2);b([a({type:Boolean,reflect:!0})],p.prototype,"onSecondButtonClickClose",2);b([a({type:Boolean,reflect:!0})],p.prototype,"disablePortal",2);b([a({type:Number,reflect:!0})],p.prototype,"zIndex",2);b([a({type:Boolean,reflect:!0})],p.prototype,"initialized",2);b([a({type:Boolean})],p.prototype,"showDetail",2);b([a({type:Boolean})],p.prototype,"isHidingDetail",2);p=b([y("o-side-panel")],p);var qo=Object.defineProperty,Vo=Object.getOwnPropertyDescriptor,_=(o,t,e,n)=>{for(var i=n>1?void 0:n?Vo(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&&qo(t,e,i),i};const Zo=Jt(u);let m=class extends Zo{constructor(){super(...arguments),this.type="submit",this.value="",this.variant="primary",this.text="",this.textsecond="",this.fullwidth=!1,this.disabled=!1,this.startIconModel="",this.endIconModel="",this.startIcon=!1,this.endIcon=!1,this.panelTarget="",this.href="",this.target="",this.underlined=!1,this.withbadge=!1,this.hideRoleButton=!1}get name(){return this.getAttribute("name")??""}set name(o){this.setAttribute("name",o)}get form(){return this[Yt].form}handleClick(o){if(!(o instanceof KeyboardEvent&&!["Enter"," "].includes(o.key))&&this.panelTarget){const t=document.getElementById(this.panelTarget);t instanceof p&&(t!=null&&t.openPanel)&&typeof t.openPanel=="function"?(o.preventDefault(),t.openPanel()):console.warn(`[o-button] No side panel with id="${this.panelTarget}" found or it does not have an openPanel method.`)}}render(){return this.href?this.renderLink():this.renderButton()}renderIcon(o){const t=o==="start"?this.startIconModel:this.endIconModel;if(!t)return d;const e=Z[t].replace("<svg",'<svg aria-hidden="true" focusable="false" part="svg"');return l`<span class="${o==="start"?"icon-start":"icon-end"}">${S(e)}</span>`}renderButton(){const o=this.text||this.textsecond;return l`
|
|
713
713
|
<button type=${this.type} class="button" ?disabled=${this.disabled} @click=${this.handleClick} @keydown=${this.handleClick}
|
|
714
714
|
aria-describedby=${this.getAttribute("aria-describedby")||d} >
|
|
715
715
|
${this.startIcon?this.renderIcon("start"):d}
|
|
@@ -944,7 +944,7 @@
|
|
|
944
944
|
transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
|
|
945
945
|
transform: translateX(4px);
|
|
946
946
|
}
|
|
947
|
-
`;
|
|
947
|
+
`;_([a()],m.prototype,"type",2);_([a()],m.prototype,"value",2);_([a({type:String,reflect:!0})],m.prototype,"variant",2);_([a({type:String})],m.prototype,"text",2);_([a({type:String})],m.prototype,"textsecond",2);_([a({type:Boolean,reflect:!0})],m.prototype,"fullwidth",2);_([a({type:Boolean,reflect:!0})],m.prototype,"disabled",2);_([a({type:String})],m.prototype,"startIconModel",2);_([a({type:String})],m.prototype,"endIconModel",2);_([a({type:Boolean,reflect:!0,attribute:"starticon"})],m.prototype,"startIcon",2);_([a({type:Boolean,reflect:!0,attribute:"endicon"})],m.prototype,"endIcon",2);_([a({type:String,attribute:"paneltarget"})],m.prototype,"panelTarget",2);_([a({type:String})],m.prototype,"href",2);_([a({type:String})],m.prototype,"target",2);_([a({type:Boolean,reflect:!0})],m.prototype,"underlined",2);_([a({type:Boolean,reflect:!0})],m.prototype,"withbadge",2);_([a({type:Boolean,reflect:!0})],m.prototype,"hideRoleButton",2);m=_([y("o-button")],m);var Ko=Object.defineProperty,Wo=Object.getOwnPropertyDescriptor,It=(o,t,e,n)=>{for(var i=n>1?void 0:n?Wo(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&&Ko(t,e,i),i};let dt=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=Z.wishlist.replace("<svg",'<svg aria-hidden="true" focusable="false" part="svg"');return l`
|
|
948
948
|
<button type="button" aria-describedby="${this.ariaDescribedBy}" class="wishlist-button">
|
|
949
949
|
<span class="sr-only">${this.label}</span>
|
|
950
950
|
${S(o)}
|
|
@@ -1502,7 +1502,7 @@
|
|
|
1502
1502
|
background-color: var(--color-container-bg-default);
|
|
1503
1503
|
cursor: pointer;
|
|
1504
1504
|
border-radius: var(--radius-m);
|
|
1505
|
-
border: var(--border-m) solid var(--color-border-
|
|
1505
|
+
border: var(--border-m) solid var(--color-border-secondary);
|
|
1506
1506
|
display: flex;
|
|
1507
1507
|
justify-content: space-between;
|
|
1508
1508
|
width: 100%;
|
|
@@ -1544,7 +1544,7 @@
|
|
|
1544
1544
|
list-style: none;
|
|
1545
1545
|
margin: 4px 0 0 0;
|
|
1546
1546
|
padding: 0;
|
|
1547
|
-
border: var(--border-m) solid var(--color-border-
|
|
1547
|
+
border: var(--border-m) solid var(--color-border-secondary);
|
|
1548
1548
|
position: absolute;
|
|
1549
1549
|
background: white;
|
|
1550
1550
|
height: auto;
|
|
@@ -1561,7 +1561,7 @@
|
|
|
1561
1561
|
align-items: center;
|
|
1562
1562
|
padding: var(--spacing-s) var(--spacing-l) var(--spacing-s) var(--spacing-s);
|
|
1563
1563
|
cursor: pointer;
|
|
1564
|
-
border-bottom: var(--border-s) solid var(--color-border-
|
|
1564
|
+
border-bottom: var(--border-s) solid var(--color-border-secondary);
|
|
1565
1565
|
}
|
|
1566
1566
|
|
|
1567
1567
|
li a {
|
|
@@ -1658,7 +1658,7 @@
|
|
|
1658
1658
|
|
|
1659
1659
|
:host([aria-current="true"]) .dots {
|
|
1660
1660
|
background-color: var(--color-container-action-primary-default);
|
|
1661
|
-
border: 0.5px solid var(--color-border-
|
|
1661
|
+
border: 0.5px solid var(--color-border-light);
|
|
1662
1662
|
width: 8px;
|
|
1663
1663
|
height: 8px;
|
|
1664
1664
|
}
|
|
@@ -1670,7 +1670,7 @@
|
|
|
1670
1670
|
:host([aria-current="true"]:active) .dots {
|
|
1671
1671
|
background-color: var(--color-container-action-primary-pressed);
|
|
1672
1672
|
}
|
|
1673
|
-
`;qt=li([y("o-dots")],qt);var ci=Object.defineProperty,hi=Object.getOwnPropertyDescriptor,U=(o,t,e,n)=>{for(var i=n>1?void 0:n?hi(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&&ci(t,e,i),i};let
|
|
1673
|
+
`;qt=li([y("o-dots")],qt);var ci=Object.defineProperty,hi=Object.getOwnPropertyDescriptor,U=(o,t,e,n)=>{for(var i=n>1?void 0:n?hi(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&&ci(t,e,i),i};let O=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=Z.checkstroke.replace("<svg",'<svg aria-hidden="true" focusable="false" part="svg"'),t=this.options.find(e=>e.value===this.value);return l`
|
|
1674
1674
|
<button
|
|
1675
1675
|
role="combobox"
|
|
1676
1676
|
aria-haspopup="listbox"
|
|
@@ -1732,7 +1732,7 @@
|
|
|
1732
1732
|
</ul>`:null}
|
|
1733
1733
|
|
|
1734
1734
|
<input type="hidden" name="${this.name}" .value="${this.value}" />
|
|
1735
|
-
`}};
|
|
1735
|
+
`}};O.styles=f`
|
|
1736
1736
|
:host {
|
|
1737
1737
|
display: inline-block;
|
|
1738
1738
|
position: relative;
|
|
@@ -1748,7 +1748,7 @@
|
|
|
1748
1748
|
background-color: var(--color-container-bg-default);
|
|
1749
1749
|
cursor: pointer;
|
|
1750
1750
|
border-radius: var(--radius-m);
|
|
1751
|
-
border: var(--border-m) solid var(--color-border-
|
|
1751
|
+
border: var(--border-m) solid var(--color-border-secondary);
|
|
1752
1752
|
padding: 0;
|
|
1753
1753
|
overflow: hidden;
|
|
1754
1754
|
}
|
|
@@ -1803,7 +1803,7 @@
|
|
|
1803
1803
|
list-style: none;
|
|
1804
1804
|
margin: 4px 0 0 0;
|
|
1805
1805
|
padding: 0;
|
|
1806
|
-
border: var(--border-m) solid var(--color-border-
|
|
1806
|
+
border: var(--border-m) solid var(--color-border-secondary);
|
|
1807
1807
|
position: absolute;
|
|
1808
1808
|
background: white;
|
|
1809
1809
|
height: auto;
|
|
@@ -1819,7 +1819,7 @@
|
|
|
1819
1819
|
justify-content: space-between;
|
|
1820
1820
|
align-items: center;
|
|
1821
1821
|
cursor: pointer;
|
|
1822
|
-
border-bottom: var(--border-s) solid var(--color-border-
|
|
1822
|
+
border-bottom: var(--border-s) solid var(--color-border-secondary);
|
|
1823
1823
|
gap: var(--spacing-l);
|
|
1824
1824
|
padding-right: var(--spacing-l);
|
|
1825
1825
|
}
|
|
@@ -1907,7 +1907,7 @@
|
|
|
1907
1907
|
input[type="hidden"] {
|
|
1908
1908
|
display: none;
|
|
1909
1909
|
}
|
|
1910
|
-
`;U([a({type:Array,reflect:!0})],
|
|
1910
|
+
`;U([a({type:Array,reflect:!0})],O.prototype,"options",2);U([a({type:String,reflect:!0})],O.prototype,"value",2);U([a({type:String,reflect:!0})],O.prototype,"name",2);U([a({type:String,reflect:!0})],O.prototype,"additionaltext",2);U([a({type:Boolean,reflect:!0})],O.prototype,"disabled",2);U([a({type:String,reflect:!0})],O.prototype,"width",2);U([W()],O.prototype,"open",2);U([W()],O.prototype,"activeIndex",2);U([W()],O.prototype,"menuWidth",2);O=U([y("o-dropdown-variant")],O);/**
|
|
1911
1911
|
* @license
|
|
1912
1912
|
* Copyright 2018 Google LLC
|
|
1913
1913
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
@@ -1998,7 +1998,7 @@
|
|
|
1998
1998
|
-webkit-box-orient: vertical;
|
|
1999
1999
|
overflow: hidden;
|
|
2000
2000
|
}
|
|
2001
|
-
`;ne([a({type:Object,reflect:!0})],_t.prototype,"option",2);ne([a({type:Number,reflect:!0})],_t.prototype,"imageSize",2);_t=ne([y("o-reassurance")],_t);var vi=Object.defineProperty,gi=Object.getOwnPropertyDescriptor,X=(o,t,e,n)=>{for(var i=n>1?void 0:n?gi(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&&vi(t,e,i),i};const bi=Jt(u);let
|
|
2001
|
+
`;ne([a({type:Object,reflect:!0})],_t.prototype,"option",2);ne([a({type:Number,reflect:!0})],_t.prototype,"imageSize",2);_t=ne([y("o-reassurance")],_t);var vi=Object.defineProperty,gi=Object.getOwnPropertyDescriptor,X=(o,t,e,n)=>{for(var i=n>1?void 0:n?gi(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&&vi(t,e,i),i};const bi=Jt(u);let z=class extends bi{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`
|
|
2002
2002
|
<a href="${this.link}" class="o-chip" tabindex="${this.inactive?"-1":d}"
|
|
2003
2003
|
aria-current="${this.selected?"true":d}">
|
|
2004
2004
|
${o?this.text:l`<slot></slot>`}
|
|
@@ -2008,7 +2008,7 @@
|
|
|
2008
2008
|
aria-label=${this.ariaLabel||d} aria-pressed=${this.selected}>
|
|
2009
2009
|
${o?this.text:l`<slot></slot>`}
|
|
2010
2010
|
</button>
|
|
2011
|
-
`}};
|
|
2011
|
+
`}};z.styles=f`
|
|
2012
2012
|
:host {
|
|
2013
2013
|
cursor: pointer;
|
|
2014
2014
|
display: inline-flex;
|
|
@@ -2101,7 +2101,7 @@
|
|
|
2101
2101
|
display: inline-flex;
|
|
2102
2102
|
align-items: center;
|
|
2103
2103
|
}
|
|
2104
|
-
`;X([a({type:String,reflect:!0})],
|
|
2104
|
+
`;X([a({type:String,reflect:!0})],z.prototype,"link",2);X([a({reflect:!0})],z.prototype,"name",2);X([a({reflect:!0})],z.prototype,"value",2);X([a({type:String})],z.prototype,"text",2);X([a({type:String,reflect:!0})],z.prototype,"size",2);X([a({type:Boolean,reflect:!0})],z.prototype,"selected",2);X([a({type:Boolean,reflect:!0})],z.prototype,"fullwidth",2);X([a({type:Boolean,reflect:!0})],z.prototype,"inactive",2);z=X([y("o-chip")],z);var yi=Object.defineProperty,mi=Object.getOwnPropertyDescriptor,re=(o,t,e,n)=>{for(var i=n>1?void 0:n?mi(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&&yi(t,e,i),i};let Ct=class extends u{constructor(){super(),this.name="",this.value="",this.addEventListener("selected",this.onChipSelected)}onChipSelected(o){const t=o.target instanceof z?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`
|
|
2105
2105
|
<slot></slot>
|
|
2106
2106
|
`}};Ct.styles=f`
|
|
2107
2107
|
:host {
|
|
@@ -2161,7 +2161,7 @@
|
|
|
2161
2161
|
--button-text: var(--color-content-action-primary);
|
|
2162
2162
|
--button-text-hover: var(--color-content-action-primary);
|
|
2163
2163
|
--button-border: var(--color-container-filter-default);
|
|
2164
|
-
--button-strikethrough-stroke: var(--color-border-
|
|
2164
|
+
--button-strikethrough-stroke: var(--color-border-light);
|
|
2165
2165
|
}
|
|
2166
2166
|
|
|
2167
2167
|
:host([disabled]),
|
|
@@ -2652,13 +2652,13 @@
|
|
|
2652
2652
|
}
|
|
2653
2653
|
|
|
2654
2654
|
.indeterminate path {
|
|
2655
|
-
fill: var(--color-border-
|
|
2655
|
+
fill: var(--color-border-light);
|
|
2656
2656
|
}
|
|
2657
2657
|
|
|
2658
2658
|
svg path {
|
|
2659
|
-
stroke: var(--color-border-
|
|
2659
|
+
stroke: var(--color-border-light);
|
|
2660
2660
|
}
|
|
2661
|
-
`;j([a({type:Boolean,reflect:!0})],L.prototype,"checked",2);j([a({type:Boolean,reflect:!0})],L.prototype,"indeterminate",2);j([a({type:Boolean,reflect:!0})],L.prototype,"disabled",2);j([a({type:String,reflect:!0})],L.prototype,"size",2);j([a({type:Boolean})],L.prototype,"showLabel",2);j([a({type:String})],L.prototype,"label",2);j([a({type:String})],L.prototype,"name",2);j([a({type:String})],L.prototype,"value",2);j([a({type:String,reflect:!0})],L.prototype,"inputId",2);j([Se("input")],L.prototype,"inputEl",2);L=j([y("o-checkbox")],L);var Bi=Object.defineProperty,
|
|
2661
|
+
`;j([a({type:Boolean,reflect:!0})],L.prototype,"checked",2);j([a({type:Boolean,reflect:!0})],L.prototype,"indeterminate",2);j([a({type:Boolean,reflect:!0})],L.prototype,"disabled",2);j([a({type:String,reflect:!0})],L.prototype,"size",2);j([a({type:Boolean})],L.prototype,"showLabel",2);j([a({type:String})],L.prototype,"label",2);j([a({type:String})],L.prototype,"name",2);j([a({type:String})],L.prototype,"value",2);j([a({type:String,reflect:!0})],L.prototype,"inputId",2);j([Se("input")],L.prototype,"inputEl",2);L=j([y("o-checkbox")],L);var Bi=Object.defineProperty,Oi=Object.getOwnPropertyDescriptor,q=(o,t,e,n)=>{for(var i=n>1?void 0:n?Oi(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&&Bi(t,e,i),i};let zi=0,D=class extends u{constructor(){super(),this.checked=!1,this.disabled=!1,this.size="S",this.showLabel=!0,this.label="Radio button",this.name="",this.value="on",this.inputId="",this.inputId||(this.inputId=`o-radio-${++zi}`)}handleClick(){this.disabled||this.checked||(this.checked=!0,this.syncInput(),this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0})))}syncInput(){this.inputEl&&(this.inputEl.checked=this.checked)}updated(o){if(o.has("checked")&&this.checked){const t=this.parentElement;t&&Array.from(t.querySelectorAll(`o-radio[name="${this.name}"]`)).forEach(n=>{n!==this&&(n.checked=!1)})}this.syncInput()}handleKeyDown(o){this.disabled||(o.key===" "||o.key==="Enter")&&(o.preventDefault(),this.handleClick())}render(){return l`
|
|
2662
2662
|
<input type="radio" id=${this.inputId} ?checked=${this.checked} ?disabled=${this.disabled} name=${this.name} value=${this.value} />
|
|
2663
2663
|
|
|
2664
2664
|
<div class="box" role="radio" tabindex=${this.disabled?-1:0} aria-checked=${String(this.checked)} aria-disabled=${String(this.disabled)} @click=${this.handleClick} @keydown=${this.handleKeyDown}>
|
|
@@ -3173,7 +3173,7 @@
|
|
|
3173
3173
|
from { transform: translateY(10px) scale(.98); opacity: 0; }
|
|
3174
3174
|
to { transform: translateY(0) scale(1); opacity: 1; }
|
|
3175
3175
|
}
|
|
3176
|
-
`;let $=le;C([a({type:Boolean,reflect:!0})],$.prototype,"ispagedesigner",2);C([a({type:String,reflect:!0})],$.prototype,"classPopin",1);C([a({type:Boolean,reflect:!0})],$.prototype,"open",2);C([a({type:String,reflect:!0})],$.prototype,"background",2);C([a({type:String,attribute:"background-url",reflect:!0})],$.prototype,"backgroundUrl",2);C([a({type:Boolean,attribute:"close-on-esc"})],$.prototype,"closeOnEsc",2);C([a({type:Boolean,attribute:"close-on-backdrop"})],$.prototype,"closeOnBackdrop",2);C([a({type:Boolean,attribute:"lock-scroll"})],$.prototype,"lockScroll",2);C([a({type:String,reflect:!0})],$.prototype,"variant",2);C([a({type:String,attribute:"max-width"})],$.prototype,"maxWidth",2);C([a({type:Boolean,reflect:!0})],$.prototype,"showBackButton",2);C([a({type:Boolean,reflect:!0})],$.prototype,"contrast",2);C([a({type:String,reflect:!0})],$.prototype,"iconSize",2);C([a({type:Boolean,attribute:"hide-header-on-scroll"})],$.prototype,"hideHeaderOnScroll",2);C([W()],$.prototype,"_labelId",2);C([W()],$.prototype,"_headerHidden",2);customElements.define("o-popin",$);var Ni=Object.defineProperty,qi=Object.getOwnPropertyDescriptor,
|
|
3176
|
+
`;let $=le;C([a({type:Boolean,reflect:!0})],$.prototype,"ispagedesigner",2);C([a({type:String,reflect:!0})],$.prototype,"classPopin",1);C([a({type:Boolean,reflect:!0})],$.prototype,"open",2);C([a({type:String,reflect:!0})],$.prototype,"background",2);C([a({type:String,attribute:"background-url",reflect:!0})],$.prototype,"backgroundUrl",2);C([a({type:Boolean,attribute:"close-on-esc"})],$.prototype,"closeOnEsc",2);C([a({type:Boolean,attribute:"close-on-backdrop"})],$.prototype,"closeOnBackdrop",2);C([a({type:Boolean,attribute:"lock-scroll"})],$.prototype,"lockScroll",2);C([a({type:String,reflect:!0})],$.prototype,"variant",2);C([a({type:String,attribute:"max-width"})],$.prototype,"maxWidth",2);C([a({type:Boolean,reflect:!0})],$.prototype,"showBackButton",2);C([a({type:Boolean,reflect:!0})],$.prototype,"contrast",2);C([a({type:String,reflect:!0})],$.prototype,"iconSize",2);C([a({type:Boolean,attribute:"hide-header-on-scroll"})],$.prototype,"hideHeaderOnScroll",2);C([W()],$.prototype,"_labelId",2);C([W()],$.prototype,"_headerHidden",2);customElements.define("o-popin",$);var Ni=Object.defineProperty,qi=Object.getOwnPropertyDescriptor,k=(o,t,e,n)=>{for(var i=n>1?void 0:n?qi(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&&Ni(t,e,i),i};let x=class extends u{constructor(){super(...arguments),this.type="cart | notifyme",this.titleProduct="",this.descriptionProduct="",this.volume="",this.perLiter="",this.mainPrice="",this.salesPercentage="",this.oldPrice="",this.imageUrl="https://placehold.co/112x140",this.outOfStock=!1,this.outOfStockText="Out of stock",this.altImage="",this.fullwidth=!1,this.current=!1,this.hideIcon=!1,this.tagText=""}onClick(o){var e,n,i;const t=o.target;(e=t==null?void 0:t.classList)!=null&&e.contains("add-to-bag")||(n=t==null?void 0:t.classList)!=null&&n.contains("js-availability-notify-details-routine")||((i=this.onClickTile)==null||i.call(this),this.dispatchEvent(new CustomEvent("tile-click",{bubbles:!0,composed:!0})))}onClickIcons(){var o;(o=this.onClickIcon)==null||o.call(this),this.dispatchEvent(new CustomEvent("tile-icon-click",{bubbles:!0,composed:!0}))}get icons(){return this.hideIcon?"":l`
|
|
3177
3177
|
<o-icon-button
|
|
3178
3178
|
@click=${this.onClickIcons}
|
|
3179
3179
|
icon=${this.type==="notifyme"?"notifyme":"cart"}
|
|
@@ -3194,7 +3194,7 @@
|
|
|
3194
3194
|
<div class="info">
|
|
3195
3195
|
${this.tagText?l`<o-tag bgstyle="background-emphasis">${this.tagText}</o-tag>`:""}
|
|
3196
3196
|
${this.outOfStock?l`<o-tag type="nostock" role="status" aria-live="polite"
|
|
3197
|
-
|
|
3197
|
+
>${this.outOfStockText}</o-tag
|
|
3198
3198
|
>`:""}
|
|
3199
3199
|
<div class="title-volume">
|
|
3200
3200
|
${this.titleProduct?l`<div class="title">${this.titleProduct}</div>`:""}
|
|
@@ -3218,7 +3218,7 @@
|
|
|
3218
3218
|
</div>
|
|
3219
3219
|
</div>
|
|
3220
3220
|
</button>
|
|
3221
|
-
`}};
|
|
3221
|
+
`}};x.styles=f`
|
|
3222
3222
|
:host {
|
|
3223
3223
|
display: block;
|
|
3224
3224
|
max-width: 100%;
|
|
@@ -3386,4 +3386,4 @@
|
|
|
3386
3386
|
.fullpointer {
|
|
3387
3387
|
cursor: pointer;
|
|
3388
3388
|
}
|
|
3389
|
-
`;
|
|
3389
|
+
`;k([a({type:String})],x.prototype,"type",2);k([a({type:String})],x.prototype,"titleProduct",2);k([a({type:String})],x.prototype,"descriptionProduct",2);k([a({type:String})],x.prototype,"volume",2);k([a({type:String})],x.prototype,"perLiter",2);k([a({type:String})],x.prototype,"mainPrice",2);k([a({type:String})],x.prototype,"salesPercentage",2);k([a({type:String})],x.prototype,"oldPrice",2);k([a({type:String})],x.prototype,"imageUrl",2);k([a({type:Boolean})],x.prototype,"outOfStock",2);k([a({type:String})],x.prototype,"outOfStockText",2);k([a({type:String})],x.prototype,"altImage",2);k([a({type:Boolean})],x.prototype,"fullwidth",2);k([a({type:Boolean})],x.prototype,"current",2);k([a({type:Boolean})],x.prototype,"hideIcon",2);k([a({type:String})],x.prototype,"tagText",2);k([a({attribute:!1})],x.prototype,"onClickTile",2);k([a({attribute:!1})],x.prototype,"onClickIcon",2);x=k([y("o-medium-tile")],x);
|
package/index.mjs
CHANGED
|
@@ -45,7 +45,7 @@ const Le = (o) => new we(typeof o == "string" ? o : o + "", void 0, Kt), f = (o,
|
|
|
45
45
|
* Copyright 2017 Google LLC
|
|
46
46
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
47
47
|
*/
|
|
48
|
-
const { is: Be, defineProperty:
|
|
48
|
+
const { is: Be, defineProperty: Oe, getOwnPropertyDescriptor: ze, getOwnPropertyNames: Ie, getOwnPropertySymbols: De, getPrototypeOf: He } = Object, Q = globalThis, de = Q.trustedTypes, Te = de ? de.emptyScript : "", Tt = Q.reactiveElementPolyfillSupport, gt = (o, t) => o, Pt = { toAttribute(o, t) {
|
|
49
49
|
switch (t) {
|
|
50
50
|
case Boolean:
|
|
51
51
|
o = o ? Te : null;
|
|
@@ -85,11 +85,11 @@ let ct = class extends HTMLElement {
|
|
|
85
85
|
static createProperty(t, e = pe) {
|
|
86
86
|
if (e.state && (e.attribute = !1), this._$Ei(), this.prototype.hasOwnProperty(t) && ((e = Object.create(e)).wrapped = !0), this.elementProperties.set(t, e), !e.noAccessor) {
|
|
87
87
|
const n = Symbol(), i = this.getPropertyDescriptor(t, n, e);
|
|
88
|
-
i !== void 0 &&
|
|
88
|
+
i !== void 0 && Oe(this.prototype, t, i);
|
|
89
89
|
}
|
|
90
90
|
}
|
|
91
91
|
static getPropertyDescriptor(t, e, n) {
|
|
92
|
-
const { get: i, set: r } =
|
|
92
|
+
const { get: i, set: r } = ze(this.prototype, t) ?? { get() {
|
|
93
93
|
return this[e];
|
|
94
94
|
}, set(s) {
|
|
95
95
|
this[e] = s;
|
|
@@ -294,8 +294,8 @@ const Re = (o, t) => {
|
|
|
294
294
|
let i, r = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", s = vt;
|
|
295
295
|
for (let c = 0; c < e; c++) {
|
|
296
296
|
const h = o[c];
|
|
297
|
-
let v,
|
|
298
|
-
for (; V < h.length && (s.lastIndex = V,
|
|
297
|
+
let v, w, g = -1, V = 0;
|
|
298
|
+
for (; V < h.length && (s.lastIndex = V, w = s.exec(h), w !== null); ) V = s.lastIndex, s === vt ? w[1] === "!--" ? s = fe : w[1] !== void 0 ? s = ve : w[2] !== void 0 ? (_e.test(w[2]) && (i = RegExp("</" + w[2], "g")), s = it) : w[3] !== void 0 && (s = it) : s === it ? w[0] === ">" ? (s = i ?? vt, g = -1) : w[1] === void 0 ? g = -2 : (g = s.lastIndex - w[2].length, v = w[1], s = w[3] === void 0 ? it : w[3] === '"' ? be : ge) : s === be || s === ge ? s = it : s === fe || s === ve ? s = vt : (s = it, i = void 0);
|
|
299
299
|
const Y = s === it && o[c + 1].startsWith("/>") ? " " : "";
|
|
300
300
|
r += s === vt ? h + Me : g >= 0 ? (n.push(v), h.slice(0, g) + $e + h.slice(g) + J + Y) : h + J + (g === -2 ? c : Y);
|
|
301
301
|
}
|
|
@@ -306,7 +306,7 @@ class wt {
|
|
|
306
306
|
let i;
|
|
307
307
|
this.parts = [];
|
|
308
308
|
let r = 0, s = 0;
|
|
309
|
-
const c = t.length - 1, h = this.parts, [v,
|
|
309
|
+
const c = t.length - 1, h = this.parts, [v, w] = Re(t, e);
|
|
310
310
|
if (this.el = wt.createElement(v, n), nt.currentNode = this.el.content, e === 2 || e === 3) {
|
|
311
311
|
const g = this.el.content.firstChild;
|
|
312
312
|
g.replaceWith(...g.childNodes);
|
|
@@ -314,8 +314,8 @@ class wt {
|
|
|
314
314
|
for (; (i = nt.nextNode()) !== null && h.length < c; ) {
|
|
315
315
|
if (i.nodeType === 1) {
|
|
316
316
|
if (i.hasAttributes()) for (const g of i.getAttributeNames()) if (g.endsWith($e)) {
|
|
317
|
-
const V =
|
|
318
|
-
h.push({ type: 1, index: r, name: At[2], strings: Y, ctor: At[1] === "." ? Ne : At[1] === "?" ? qe : At[1] === "@" ? Ve :
|
|
317
|
+
const V = w[s++], Y = i.getAttribute(g).split(J), At = /([.?@])?(.*)/.exec(V);
|
|
318
|
+
h.push({ type: 1, index: r, name: At[2], strings: Y, ctor: At[1] === "." ? Ne : At[1] === "?" ? qe : At[1] === "@" ? Ve : zt }), i.removeAttribute(g);
|
|
319
319
|
} else g.startsWith(J) && (h.push({ type: 6, index: r }), i.removeAttribute(g));
|
|
320
320
|
if (_e.test(i.tagName)) {
|
|
321
321
|
const g = i.textContent.split(J), V = g.length - 1;
|
|
@@ -436,7 +436,7 @@ class Et {
|
|
|
436
436
|
this._$AM === void 0 && (this._$Cv = t, (e = this._$AP) == null || e.call(this, t));
|
|
437
437
|
}
|
|
438
438
|
}
|
|
439
|
-
class
|
|
439
|
+
class zt {
|
|
440
440
|
get tagName() {
|
|
441
441
|
return this.element.tagName;
|
|
442
442
|
}
|
|
@@ -461,7 +461,7 @@ class Ot {
|
|
|
461
461
|
t === d ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
|
|
462
462
|
}
|
|
463
463
|
}
|
|
464
|
-
class Ne extends
|
|
464
|
+
class Ne extends zt {
|
|
465
465
|
constructor() {
|
|
466
466
|
super(...arguments), this.type = 3;
|
|
467
467
|
}
|
|
@@ -469,7 +469,7 @@ class Ne extends Ot {
|
|
|
469
469
|
this.element[this.name] = t === d ? void 0 : t;
|
|
470
470
|
}
|
|
471
471
|
}
|
|
472
|
-
class qe extends
|
|
472
|
+
class qe extends zt {
|
|
473
473
|
constructor() {
|
|
474
474
|
super(...arguments), this.type = 4;
|
|
475
475
|
}
|
|
@@ -477,7 +477,7 @@ class qe extends Ot {
|
|
|
477
477
|
this.element.toggleAttribute(this.name, !!t && t !== d);
|
|
478
478
|
}
|
|
479
479
|
}
|
|
480
|
-
class Ve extends
|
|
480
|
+
class Ve extends zt {
|
|
481
481
|
constructor(t, e, n, i, r) {
|
|
482
482
|
super(t, e, n, i, r), this.type = 5;
|
|
483
483
|
}
|
|
@@ -882,7 +882,7 @@ const S = te(Nt);
|
|
|
882
882
|
* Copyright 2020 Google LLC
|
|
883
883
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
884
884
|
*/
|
|
885
|
-
const
|
|
885
|
+
const Oo = (o) => o.strings === void 0;
|
|
886
886
|
/**
|
|
887
887
|
* @license
|
|
888
888
|
* Copyright 2017 Google LLC
|
|
@@ -894,7 +894,7 @@ const yt = (o, t) => {
|
|
|
894
894
|
if (e === void 0) return !1;
|
|
895
895
|
for (const i of e) (n = i._$AO) == null || n.call(i, t, !1), yt(i, t);
|
|
896
896
|
return !0;
|
|
897
|
-
},
|
|
897
|
+
}, Ot = (o) => {
|
|
898
898
|
let t, e;
|
|
899
899
|
do {
|
|
900
900
|
if ((t = o._$AM) === void 0) break;
|
|
@@ -908,17 +908,17 @@ const yt = (o, t) => {
|
|
|
908
908
|
e.add(o), Do(t);
|
|
909
909
|
}
|
|
910
910
|
};
|
|
911
|
-
function
|
|
912
|
-
this._$AN !== void 0 ? (
|
|
911
|
+
function zo(o) {
|
|
912
|
+
this._$AN !== void 0 ? (Ot(this), this._$AM = o, Ee(this)) : this._$AM = o;
|
|
913
913
|
}
|
|
914
914
|
function Io(o, t = !1, e = 0) {
|
|
915
915
|
const n = this._$AH, i = this._$AN;
|
|
916
|
-
if (i !== void 0 && i.size !== 0) if (t) if (Array.isArray(n)) for (let r = e; r < n.length; r++) yt(n[r], !1),
|
|
917
|
-
else n != null && (yt(n, !1),
|
|
916
|
+
if (i !== void 0 && i.size !== 0) if (t) if (Array.isArray(n)) for (let r = e; r < n.length; r++) yt(n[r], !1), Ot(n[r]);
|
|
917
|
+
else n != null && (yt(n, !1), Ot(n));
|
|
918
918
|
else yt(this, o);
|
|
919
919
|
}
|
|
920
920
|
const Do = (o) => {
|
|
921
|
-
o.type == Qt.CHILD && (o._$AP ?? (o._$AP = Io), o._$AQ ?? (o._$AQ =
|
|
921
|
+
o.type == Qt.CHILD && (o._$AP ?? (o._$AP = Io), o._$AQ ?? (o._$AQ = zo));
|
|
922
922
|
};
|
|
923
923
|
class Ho extends ee {
|
|
924
924
|
constructor() {
|
|
@@ -929,10 +929,10 @@ class Ho extends ee {
|
|
|
929
929
|
}
|
|
930
930
|
_$AO(t, e = !0) {
|
|
931
931
|
var n, i;
|
|
932
|
-
t !== this.isConnected && (this.isConnected = t, t ? (n = this.reconnected) == null || n.call(this) : (i = this.disconnected) == null || i.call(this)), e && (yt(this, t),
|
|
932
|
+
t !== this.isConnected && (this.isConnected = t, t ? (n = this.reconnected) == null || n.call(this) : (i = this.disconnected) == null || i.call(this)), e && (yt(this, t), Ot(this));
|
|
933
933
|
}
|
|
934
934
|
setValue(t) {
|
|
935
|
-
if (
|
|
935
|
+
if (Oo(this._$Ct)) this._$Ct._$AI(t, this);
|
|
936
936
|
else {
|
|
937
937
|
const e = [...this._$Ct._$AH];
|
|
938
938
|
e[this._$Ci] = t, this._$Ct._$AI(e, this, 0);
|
|
@@ -1426,12 +1426,12 @@ let p = class extends u {
|
|
|
1426
1426
|
}
|
|
1427
1427
|
}
|
|
1428
1428
|
if (document.querySelector("#refineandsortpopin")) {
|
|
1429
|
-
const s = t.querySelector(".close-btn"), c = s ? this.resolveFocusable(s) : null, h = t.querySelector(".js-clear-refinements"), v = h ? this.resolveFocusable(h) : null,
|
|
1429
|
+
const s = t.querySelector(".close-btn"), c = s ? this.resolveFocusable(s) : null, h = t.querySelector(".js-clear-refinements"), v = h ? this.resolveFocusable(h) : null, w = (g) => {
|
|
1430
1430
|
o.preventDefault(), o.stopPropagation(), g.focus();
|
|
1431
1431
|
};
|
|
1432
1432
|
if (c && v) {
|
|
1433
|
-
if (!o.shiftKey && e === v) return
|
|
1434
|
-
if (o.shiftKey && e === c) return
|
|
1433
|
+
if (!o.shiftKey && e === v) return w(c);
|
|
1434
|
+
if (o.shiftKey && e === c) return w(v);
|
|
1435
1435
|
}
|
|
1436
1436
|
}
|
|
1437
1437
|
const i = this.renderRoot.querySelector(".close-btn");
|
|
@@ -1930,7 +1930,7 @@ b([
|
|
|
1930
1930
|
p = b([
|
|
1931
1931
|
y("o-side-panel")
|
|
1932
1932
|
], p);
|
|
1933
|
-
var qo = Object.defineProperty, Vo = Object.getOwnPropertyDescriptor,
|
|
1933
|
+
var qo = Object.defineProperty, Vo = Object.getOwnPropertyDescriptor, _ = (o, t, e, n) => {
|
|
1934
1934
|
for (var i = n > 1 ? void 0 : n ? Vo(t, e) : t, r = o.length - 1, s; r >= 0; r--)
|
|
1935
1935
|
(s = o[r]) && (i = (n ? s(t, e, i) : s(i)) || i);
|
|
1936
1936
|
return n && i && qo(t, e, i), i;
|
|
@@ -2214,58 +2214,58 @@ m.styles = f`
|
|
|
2214
2214
|
transform: translateX(4px);
|
|
2215
2215
|
}
|
|
2216
2216
|
`;
|
|
2217
|
-
|
|
2217
|
+
_([
|
|
2218
2218
|
a()
|
|
2219
2219
|
], m.prototype, "type", 2);
|
|
2220
|
-
|
|
2220
|
+
_([
|
|
2221
2221
|
a()
|
|
2222
2222
|
], m.prototype, "value", 2);
|
|
2223
|
-
|
|
2223
|
+
_([
|
|
2224
2224
|
a({ type: String, reflect: !0 })
|
|
2225
2225
|
], m.prototype, "variant", 2);
|
|
2226
|
-
|
|
2226
|
+
_([
|
|
2227
2227
|
a({ type: String })
|
|
2228
2228
|
], m.prototype, "text", 2);
|
|
2229
|
-
|
|
2229
|
+
_([
|
|
2230
2230
|
a({ type: String })
|
|
2231
2231
|
], m.prototype, "textsecond", 2);
|
|
2232
|
-
|
|
2232
|
+
_([
|
|
2233
2233
|
a({ type: Boolean, reflect: !0 })
|
|
2234
2234
|
], m.prototype, "fullwidth", 2);
|
|
2235
|
-
|
|
2235
|
+
_([
|
|
2236
2236
|
a({ type: Boolean, reflect: !0 })
|
|
2237
2237
|
], m.prototype, "disabled", 2);
|
|
2238
|
-
|
|
2238
|
+
_([
|
|
2239
2239
|
a({ type: String })
|
|
2240
2240
|
], m.prototype, "startIconModel", 2);
|
|
2241
|
-
|
|
2241
|
+
_([
|
|
2242
2242
|
a({ type: String })
|
|
2243
2243
|
], m.prototype, "endIconModel", 2);
|
|
2244
|
-
|
|
2244
|
+
_([
|
|
2245
2245
|
a({ type: Boolean, reflect: !0, attribute: "starticon" })
|
|
2246
2246
|
], m.prototype, "startIcon", 2);
|
|
2247
|
-
|
|
2247
|
+
_([
|
|
2248
2248
|
a({ type: Boolean, reflect: !0, attribute: "endicon" })
|
|
2249
2249
|
], m.prototype, "endIcon", 2);
|
|
2250
|
-
|
|
2250
|
+
_([
|
|
2251
2251
|
a({ type: String, attribute: "paneltarget" })
|
|
2252
2252
|
], m.prototype, "panelTarget", 2);
|
|
2253
|
-
|
|
2253
|
+
_([
|
|
2254
2254
|
a({ type: String })
|
|
2255
2255
|
], m.prototype, "href", 2);
|
|
2256
|
-
|
|
2256
|
+
_([
|
|
2257
2257
|
a({ type: String })
|
|
2258
2258
|
], m.prototype, "target", 2);
|
|
2259
|
-
|
|
2259
|
+
_([
|
|
2260
2260
|
a({ type: Boolean, reflect: !0 })
|
|
2261
2261
|
], m.prototype, "underlined", 2);
|
|
2262
|
-
|
|
2262
|
+
_([
|
|
2263
2263
|
a({ type: Boolean, reflect: !0 })
|
|
2264
2264
|
], m.prototype, "withbadge", 2);
|
|
2265
|
-
|
|
2265
|
+
_([
|
|
2266
2266
|
a({ type: Boolean, reflect: !0 })
|
|
2267
2267
|
], m.prototype, "hideRoleButton", 2);
|
|
2268
|
-
m =
|
|
2268
|
+
m = _([
|
|
2269
2269
|
y("o-button")
|
|
2270
2270
|
], m);
|
|
2271
2271
|
var Ko = Object.defineProperty, Wo = Object.getOwnPropertyDescriptor, It = (o, t, e, n) => {
|
|
@@ -3175,7 +3175,7 @@ T.styles = f`
|
|
|
3175
3175
|
background-color: var(--color-container-bg-default);
|
|
3176
3176
|
cursor: pointer;
|
|
3177
3177
|
border-radius: var(--radius-m);
|
|
3178
|
-
border: var(--border-m) solid var(--color-border-
|
|
3178
|
+
border: var(--border-m) solid var(--color-border-secondary);
|
|
3179
3179
|
display: flex;
|
|
3180
3180
|
justify-content: space-between;
|
|
3181
3181
|
width: 100%;
|
|
@@ -3217,7 +3217,7 @@ T.styles = f`
|
|
|
3217
3217
|
list-style: none;
|
|
3218
3218
|
margin: 4px 0 0 0;
|
|
3219
3219
|
padding: 0;
|
|
3220
|
-
border: var(--border-m) solid var(--color-border-
|
|
3220
|
+
border: var(--border-m) solid var(--color-border-secondary);
|
|
3221
3221
|
position: absolute;
|
|
3222
3222
|
background: white;
|
|
3223
3223
|
height: auto;
|
|
@@ -3234,7 +3234,7 @@ T.styles = f`
|
|
|
3234
3234
|
align-items: center;
|
|
3235
3235
|
padding: var(--spacing-s) var(--spacing-l) var(--spacing-s) var(--spacing-s);
|
|
3236
3236
|
cursor: pointer;
|
|
3237
|
-
border-bottom: var(--border-s) solid var(--color-border-
|
|
3237
|
+
border-bottom: var(--border-s) solid var(--color-border-secondary);
|
|
3238
3238
|
}
|
|
3239
3239
|
|
|
3240
3240
|
li a {
|
|
@@ -3369,7 +3369,7 @@ qt.styles = f`
|
|
|
3369
3369
|
|
|
3370
3370
|
:host([aria-current="true"]) .dots {
|
|
3371
3371
|
background-color: var(--color-container-action-primary-default);
|
|
3372
|
-
border: 0.5px solid var(--color-border-
|
|
3372
|
+
border: 0.5px solid var(--color-border-light);
|
|
3373
3373
|
width: 8px;
|
|
3374
3374
|
height: 8px;
|
|
3375
3375
|
}
|
|
@@ -3390,7 +3390,7 @@ var ci = Object.defineProperty, hi = Object.getOwnPropertyDescriptor, U = (o, t,
|
|
|
3390
3390
|
(s = o[r]) && (i = (n ? s(t, e, i) : s(i)) || i);
|
|
3391
3391
|
return n && i && ci(t, e, i), i;
|
|
3392
3392
|
};
|
|
3393
|
-
let
|
|
3393
|
+
let O = class extends u {
|
|
3394
3394
|
constructor() {
|
|
3395
3395
|
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) => {
|
|
3396
3396
|
this.contains(o.target) || (this.open = !1, this.activeIndex = -1);
|
|
@@ -3527,7 +3527,7 @@ let z = class extends u {
|
|
|
3527
3527
|
`;
|
|
3528
3528
|
}
|
|
3529
3529
|
};
|
|
3530
|
-
|
|
3530
|
+
O.styles = f`
|
|
3531
3531
|
:host {
|
|
3532
3532
|
display: inline-block;
|
|
3533
3533
|
position: relative;
|
|
@@ -3543,7 +3543,7 @@ z.styles = f`
|
|
|
3543
3543
|
background-color: var(--color-container-bg-default);
|
|
3544
3544
|
cursor: pointer;
|
|
3545
3545
|
border-radius: var(--radius-m);
|
|
3546
|
-
border: var(--border-m) solid var(--color-border-
|
|
3546
|
+
border: var(--border-m) solid var(--color-border-secondary);
|
|
3547
3547
|
padding: 0;
|
|
3548
3548
|
overflow: hidden;
|
|
3549
3549
|
}
|
|
@@ -3598,7 +3598,7 @@ z.styles = f`
|
|
|
3598
3598
|
list-style: none;
|
|
3599
3599
|
margin: 4px 0 0 0;
|
|
3600
3600
|
padding: 0;
|
|
3601
|
-
border: var(--border-m) solid var(--color-border-
|
|
3601
|
+
border: var(--border-m) solid var(--color-border-secondary);
|
|
3602
3602
|
position: absolute;
|
|
3603
3603
|
background: white;
|
|
3604
3604
|
height: auto;
|
|
@@ -3614,7 +3614,7 @@ z.styles = f`
|
|
|
3614
3614
|
justify-content: space-between;
|
|
3615
3615
|
align-items: center;
|
|
3616
3616
|
cursor: pointer;
|
|
3617
|
-
border-bottom: var(--border-s) solid var(--color-border-
|
|
3617
|
+
border-bottom: var(--border-s) solid var(--color-border-secondary);
|
|
3618
3618
|
gap: var(--spacing-l);
|
|
3619
3619
|
padding-right: var(--spacing-l);
|
|
3620
3620
|
}
|
|
@@ -3705,34 +3705,34 @@ z.styles = f`
|
|
|
3705
3705
|
`;
|
|
3706
3706
|
U([
|
|
3707
3707
|
a({ type: Array, reflect: !0 })
|
|
3708
|
-
],
|
|
3708
|
+
], O.prototype, "options", 2);
|
|
3709
3709
|
U([
|
|
3710
3710
|
a({ type: String, reflect: !0 })
|
|
3711
|
-
],
|
|
3711
|
+
], O.prototype, "value", 2);
|
|
3712
3712
|
U([
|
|
3713
3713
|
a({ type: String, reflect: !0 })
|
|
3714
|
-
],
|
|
3714
|
+
], O.prototype, "name", 2);
|
|
3715
3715
|
U([
|
|
3716
3716
|
a({ type: String, reflect: !0 })
|
|
3717
|
-
],
|
|
3717
|
+
], O.prototype, "additionaltext", 2);
|
|
3718
3718
|
U([
|
|
3719
3719
|
a({ type: Boolean, reflect: !0 })
|
|
3720
|
-
],
|
|
3720
|
+
], O.prototype, "disabled", 2);
|
|
3721
3721
|
U([
|
|
3722
3722
|
a({ type: String, reflect: !0 })
|
|
3723
|
-
],
|
|
3723
|
+
], O.prototype, "width", 2);
|
|
3724
3724
|
U([
|
|
3725
3725
|
W()
|
|
3726
|
-
],
|
|
3726
|
+
], O.prototype, "open", 2);
|
|
3727
3727
|
U([
|
|
3728
3728
|
W()
|
|
3729
|
-
],
|
|
3729
|
+
], O.prototype, "activeIndex", 2);
|
|
3730
3730
|
U([
|
|
3731
3731
|
W()
|
|
3732
|
-
],
|
|
3733
|
-
|
|
3732
|
+
], O.prototype, "menuWidth", 2);
|
|
3733
|
+
O = U([
|
|
3734
3734
|
y("o-dropdown-variant")
|
|
3735
|
-
],
|
|
3735
|
+
], O);
|
|
3736
3736
|
/**
|
|
3737
3737
|
* @license
|
|
3738
3738
|
* Copyright 2018 Google LLC
|
|
@@ -3887,7 +3887,7 @@ var vi = Object.defineProperty, gi = Object.getOwnPropertyDescriptor, X = (o, t,
|
|
|
3887
3887
|
return n && i && vi(t, e, i), i;
|
|
3888
3888
|
};
|
|
3889
3889
|
const bi = Jt(u);
|
|
3890
|
-
let
|
|
3890
|
+
let z = class extends bi {
|
|
3891
3891
|
constructor() {
|
|
3892
3892
|
super(...arguments), this.link = "", this.name = "", this.value = "", this.text = "", this.size = "standard", this.selected = !1, this.fullwidth = !1, this.inactive = !1;
|
|
3893
3893
|
}
|
|
@@ -3911,7 +3911,7 @@ let O = class extends bi {
|
|
|
3911
3911
|
`;
|
|
3912
3912
|
}
|
|
3913
3913
|
};
|
|
3914
|
-
|
|
3914
|
+
z.styles = f`
|
|
3915
3915
|
:host {
|
|
3916
3916
|
cursor: pointer;
|
|
3917
3917
|
display: inline-flex;
|
|
@@ -4007,31 +4007,31 @@ O.styles = f`
|
|
|
4007
4007
|
`;
|
|
4008
4008
|
X([
|
|
4009
4009
|
a({ type: String, reflect: !0 })
|
|
4010
|
-
],
|
|
4010
|
+
], z.prototype, "link", 2);
|
|
4011
4011
|
X([
|
|
4012
4012
|
a({ reflect: !0 })
|
|
4013
|
-
],
|
|
4013
|
+
], z.prototype, "name", 2);
|
|
4014
4014
|
X([
|
|
4015
4015
|
a({ reflect: !0 })
|
|
4016
|
-
],
|
|
4016
|
+
], z.prototype, "value", 2);
|
|
4017
4017
|
X([
|
|
4018
4018
|
a({ type: String })
|
|
4019
|
-
],
|
|
4019
|
+
], z.prototype, "text", 2);
|
|
4020
4020
|
X([
|
|
4021
4021
|
a({ type: String, reflect: !0 })
|
|
4022
|
-
],
|
|
4022
|
+
], z.prototype, "size", 2);
|
|
4023
4023
|
X([
|
|
4024
4024
|
a({ type: Boolean, reflect: !0 })
|
|
4025
|
-
],
|
|
4025
|
+
], z.prototype, "selected", 2);
|
|
4026
4026
|
X([
|
|
4027
4027
|
a({ type: Boolean, reflect: !0 })
|
|
4028
|
-
],
|
|
4028
|
+
], z.prototype, "fullwidth", 2);
|
|
4029
4029
|
X([
|
|
4030
4030
|
a({ type: Boolean, reflect: !0 })
|
|
4031
|
-
],
|
|
4032
|
-
|
|
4031
|
+
], z.prototype, "inactive", 2);
|
|
4032
|
+
z = X([
|
|
4033
4033
|
y("o-chip")
|
|
4034
|
-
],
|
|
4034
|
+
], z);
|
|
4035
4035
|
var yi = Object.defineProperty, mi = Object.getOwnPropertyDescriptor, re = (o, t, e, n) => {
|
|
4036
4036
|
for (var i = n > 1 ? void 0 : n ? mi(t, e) : t, r = o.length - 1, s; r >= 0; r--)
|
|
4037
4037
|
(s = o[r]) && (i = (n ? s(t, e, i) : s(i)) || i);
|
|
@@ -4042,7 +4042,7 @@ let Ct = class extends u {
|
|
|
4042
4042
|
super(), this.name = "", this.value = "", this.addEventListener("selected", this.onChipSelected);
|
|
4043
4043
|
}
|
|
4044
4044
|
onChipSelected(o) {
|
|
4045
|
-
const t = o.target instanceof
|
|
4045
|
+
const t = o.target instanceof z ? o.target : null;
|
|
4046
4046
|
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) => {
|
|
4047
4047
|
e !== t && (e.selected = !1);
|
|
4048
4048
|
}));
|
|
@@ -4157,7 +4157,7 @@ I.styles = f`
|
|
|
4157
4157
|
--button-text: var(--color-content-action-primary);
|
|
4158
4158
|
--button-text-hover: var(--color-content-action-primary);
|
|
4159
4159
|
--button-border: var(--color-container-filter-default);
|
|
4160
|
-
--button-strikethrough-stroke: var(--color-border-
|
|
4160
|
+
--button-strikethrough-stroke: var(--color-border-light);
|
|
4161
4161
|
}
|
|
4162
4162
|
|
|
4163
4163
|
:host([disabled]),
|
|
@@ -4889,11 +4889,11 @@ L.styles = f`
|
|
|
4889
4889
|
}
|
|
4890
4890
|
|
|
4891
4891
|
.indeterminate path {
|
|
4892
|
-
fill: var(--color-border-
|
|
4892
|
+
fill: var(--color-border-light);
|
|
4893
4893
|
}
|
|
4894
4894
|
|
|
4895
4895
|
svg path {
|
|
4896
|
-
stroke: var(--color-border-
|
|
4896
|
+
stroke: var(--color-border-light);
|
|
4897
4897
|
}
|
|
4898
4898
|
`;
|
|
4899
4899
|
j([
|
|
@@ -4929,14 +4929,14 @@ j([
|
|
|
4929
4929
|
L = j([
|
|
4930
4930
|
y("o-checkbox")
|
|
4931
4931
|
], L);
|
|
4932
|
-
var Bi = Object.defineProperty,
|
|
4933
|
-
for (var i = n > 1 ? void 0 : n ?
|
|
4932
|
+
var Bi = Object.defineProperty, Oi = Object.getOwnPropertyDescriptor, q = (o, t, e, n) => {
|
|
4933
|
+
for (var i = n > 1 ? void 0 : n ? Oi(t, e) : t, r = o.length - 1, s; r >= 0; r--)
|
|
4934
4934
|
(s = o[r]) && (i = (n ? s(t, e, i) : s(i)) || i);
|
|
4935
4935
|
return n && i && Bi(t, e, i), i;
|
|
4936
4936
|
};
|
|
4937
|
-
let
|
|
4937
|
+
let zi = 0, D = class extends u {
|
|
4938
4938
|
constructor() {
|
|
4939
|
-
super(), this.checked = !1, this.disabled = !1, this.size = "S", this.showLabel = !0, this.label = "Radio button", this.name = "", this.value = "on", this.inputId = "", this.inputId || (this.inputId = `o-radio-${++
|
|
4939
|
+
super(), this.checked = !1, this.disabled = !1, this.size = "S", this.showLabel = !0, this.label = "Radio button", this.name = "", this.value = "on", this.inputId = "", this.inputId || (this.inputId = `o-radio-${++zi}`);
|
|
4940
4940
|
}
|
|
4941
4941
|
handleClick() {
|
|
4942
4942
|
this.disabled || this.checked || (this.checked = !0, this.syncInput(), this.dispatchEvent(new Event("change", { bubbles: !0, composed: !0 })));
|
|
@@ -5712,14 +5712,14 @@ C([
|
|
|
5712
5712
|
W()
|
|
5713
5713
|
], $.prototype, "_headerHidden", 2);
|
|
5714
5714
|
customElements.define("o-popin", $);
|
|
5715
|
-
var Ni = Object.defineProperty, qi = Object.getOwnPropertyDescriptor,
|
|
5715
|
+
var Ni = Object.defineProperty, qi = Object.getOwnPropertyDescriptor, k = (o, t, e, n) => {
|
|
5716
5716
|
for (var i = n > 1 ? void 0 : n ? qi(t, e) : t, r = o.length - 1, s; r >= 0; r--)
|
|
5717
5717
|
(s = o[r]) && (i = (n ? s(t, e, i) : s(i)) || i);
|
|
5718
5718
|
return n && i && Ni(t, e, i), i;
|
|
5719
5719
|
};
|
|
5720
|
-
let
|
|
5720
|
+
let x = class extends u {
|
|
5721
5721
|
constructor() {
|
|
5722
|
-
super(...arguments), this.type = "cart | notifyme", this.titleProduct = "", this.descriptionProduct = "", this.volume = "", this.perLiter = "", this.mainPrice = "", this.salesPercentage = "", this.oldPrice = "", this.imageUrl = "https://placehold.co/112x140", this.outOfStock = !1, this.altImage = "", this.fullwidth = !1, this.current = !1, this.hideIcon = !1, this.tagText = "";
|
|
5722
|
+
super(...arguments), this.type = "cart | notifyme", this.titleProduct = "", this.descriptionProduct = "", this.volume = "", this.perLiter = "", this.mainPrice = "", this.salesPercentage = "", this.oldPrice = "", this.imageUrl = "https://placehold.co/112x140", this.outOfStock = !1, this.outOfStockText = "Out of stock", this.altImage = "", this.fullwidth = !1, this.current = !1, this.hideIcon = !1, this.tagText = "";
|
|
5723
5723
|
}
|
|
5724
5724
|
onClick(o) {
|
|
5725
5725
|
var e, n, i;
|
|
@@ -5759,7 +5759,7 @@ let w = class extends u {
|
|
|
5759
5759
|
<div class="info">
|
|
5760
5760
|
${this.tagText ? l`<o-tag bgstyle="background-emphasis">${this.tagText}</o-tag>` : ""}
|
|
5761
5761
|
${this.outOfStock ? l`<o-tag type="nostock" role="status" aria-live="polite"
|
|
5762
|
-
|
|
5762
|
+
>${this.outOfStockText}</o-tag
|
|
5763
5763
|
>` : ""}
|
|
5764
5764
|
<div class="title-volume">
|
|
5765
5765
|
${this.titleProduct ? l`<div class="title">${this.titleProduct}</div>` : ""}
|
|
@@ -5786,7 +5786,7 @@ let w = class extends u {
|
|
|
5786
5786
|
`;
|
|
5787
5787
|
}
|
|
5788
5788
|
};
|
|
5789
|
-
|
|
5789
|
+
x.styles = f`
|
|
5790
5790
|
:host {
|
|
5791
5791
|
display: block;
|
|
5792
5792
|
max-width: 100%;
|
|
@@ -5955,57 +5955,60 @@ w.styles = f`
|
|
|
5955
5955
|
cursor: pointer;
|
|
5956
5956
|
}
|
|
5957
5957
|
`;
|
|
5958
|
-
|
|
5958
|
+
k([
|
|
5959
5959
|
a({ type: String })
|
|
5960
|
-
],
|
|
5961
|
-
|
|
5960
|
+
], x.prototype, "type", 2);
|
|
5961
|
+
k([
|
|
5962
5962
|
a({ type: String })
|
|
5963
|
-
],
|
|
5964
|
-
|
|
5963
|
+
], x.prototype, "titleProduct", 2);
|
|
5964
|
+
k([
|
|
5965
5965
|
a({ type: String })
|
|
5966
|
-
],
|
|
5967
|
-
|
|
5966
|
+
], x.prototype, "descriptionProduct", 2);
|
|
5967
|
+
k([
|
|
5968
5968
|
a({ type: String })
|
|
5969
|
-
],
|
|
5970
|
-
|
|
5969
|
+
], x.prototype, "volume", 2);
|
|
5970
|
+
k([
|
|
5971
5971
|
a({ type: String })
|
|
5972
|
-
],
|
|
5973
|
-
|
|
5972
|
+
], x.prototype, "perLiter", 2);
|
|
5973
|
+
k([
|
|
5974
5974
|
a({ type: String })
|
|
5975
|
-
],
|
|
5976
|
-
|
|
5975
|
+
], x.prototype, "mainPrice", 2);
|
|
5976
|
+
k([
|
|
5977
5977
|
a({ type: String })
|
|
5978
|
-
],
|
|
5979
|
-
|
|
5978
|
+
], x.prototype, "salesPercentage", 2);
|
|
5979
|
+
k([
|
|
5980
5980
|
a({ type: String })
|
|
5981
|
-
],
|
|
5982
|
-
|
|
5981
|
+
], x.prototype, "oldPrice", 2);
|
|
5982
|
+
k([
|
|
5983
5983
|
a({ type: String })
|
|
5984
|
-
],
|
|
5985
|
-
|
|
5984
|
+
], x.prototype, "imageUrl", 2);
|
|
5985
|
+
k([
|
|
5986
5986
|
a({ type: Boolean })
|
|
5987
|
-
],
|
|
5988
|
-
|
|
5987
|
+
], x.prototype, "outOfStock", 2);
|
|
5988
|
+
k([
|
|
5989
5989
|
a({ type: String })
|
|
5990
|
-
],
|
|
5991
|
-
|
|
5990
|
+
], x.prototype, "outOfStockText", 2);
|
|
5991
|
+
k([
|
|
5992
|
+
a({ type: String })
|
|
5993
|
+
], x.prototype, "altImage", 2);
|
|
5994
|
+
k([
|
|
5992
5995
|
a({ type: Boolean })
|
|
5993
|
-
],
|
|
5994
|
-
|
|
5996
|
+
], x.prototype, "fullwidth", 2);
|
|
5997
|
+
k([
|
|
5995
5998
|
a({ type: Boolean })
|
|
5996
|
-
],
|
|
5997
|
-
|
|
5999
|
+
], x.prototype, "current", 2);
|
|
6000
|
+
k([
|
|
5998
6001
|
a({ type: Boolean })
|
|
5999
|
-
],
|
|
6000
|
-
|
|
6002
|
+
], x.prototype, "hideIcon", 2);
|
|
6003
|
+
k([
|
|
6001
6004
|
a({ type: String })
|
|
6002
|
-
],
|
|
6003
|
-
|
|
6005
|
+
], x.prototype, "tagText", 2);
|
|
6006
|
+
k([
|
|
6004
6007
|
a({ attribute: !1 })
|
|
6005
|
-
],
|
|
6006
|
-
|
|
6008
|
+
], x.prototype, "onClickTile", 2);
|
|
6009
|
+
k([
|
|
6007
6010
|
a({ attribute: !1 })
|
|
6008
|
-
],
|
|
6009
|
-
|
|
6011
|
+
], x.prototype, "onClickIcon", 2);
|
|
6012
|
+
x = k([
|
|
6010
6013
|
y("o-medium-tile")
|
|
6011
|
-
],
|
|
6014
|
+
], x);
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@florid-kit/components",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.37",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"module": "index.mjs",
|
|
6
6
|
"typings": "index.d.ts",
|
|
7
7
|
"description": "This library was generated with [Nx](https://nx.dev).",
|
|
8
8
|
"dependencies": {
|
|
9
|
-
"@florid-kit/tokens": "^0.1.
|
|
9
|
+
"@florid-kit/tokens": "^0.1.17"
|
|
10
10
|
},
|
|
11
11
|
"devDependencies": {
|
|
12
12
|
"@storybook/addon-a11y": "8.6.14",
|