@florid-kit/components 0.8.46 → 0.8.48
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/side-panel.d.ts +2 -0
- package/index.js +106 -53
- package/index.mjs +172 -113
- package/package.json +1 -1
|
@@ -19,6 +19,7 @@ export declare class OccitaneSidePanel extends LitElement {
|
|
|
19
19
|
disablePortal: boolean;
|
|
20
20
|
zIndex: number;
|
|
21
21
|
initialized: boolean;
|
|
22
|
+
showDetail: boolean;
|
|
22
23
|
private previousFocusedElement;
|
|
23
24
|
private innerFocusedElement;
|
|
24
25
|
static styles: import('lit').CSSResult;
|
|
@@ -26,6 +27,7 @@ export declare class OccitaneSidePanel extends LitElement {
|
|
|
26
27
|
static focusablesCustomElementsSelector: string;
|
|
27
28
|
connectedCallback(): void;
|
|
28
29
|
disconnectedCallback(): void;
|
|
30
|
+
private _onOpenDetail;
|
|
29
31
|
private handleKeyDown;
|
|
30
32
|
private trapFocus;
|
|
31
33
|
private getFocusableElements;
|
package/index.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @license
|
|
3
3
|
* Copyright 2019 Google LLC
|
|
4
4
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
5
|
-
*/const ft=globalThis,Pt=ft.ShadowRoot&&(ft.ShadyCSS===void 0||ft.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,It=Symbol(),Vt=new WeakMap;let oe=class{constructor(t,e,n){if(this._$cssResult$=!0,n!==It)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(Pt&&t===void 0){const n=e!==void 0&&e.length===1;n&&(t=Vt.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),n&&Vt.set(e,t))}return t}toString(){return this.cssText}};const ce=o=>new oe(typeof o=="string"?o:o+"",void 0,It),
|
|
5
|
+
*/const ft=globalThis,Pt=ft.ShadowRoot&&(ft.ShadyCSS===void 0||ft.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,It=Symbol(),Vt=new WeakMap;let oe=class{constructor(t,e,n){if(this._$cssResult$=!0,n!==It)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(Pt&&t===void 0){const n=e!==void 0&&e.length===1;n&&(t=Vt.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),n&&Vt.set(e,t))}return t}toString(){return this.cssText}};const ce=o=>new oe(typeof o=="string"?o:o+"",void 0,It),m=(o,...t)=>{const e=o.length===1?o[0]:t.reduce((n,i,r)=>n+(s=>{if(s._$cssResult$===!0)return s.cssText;if(typeof s=="number")return s;throw Error("Value passed to 'css' function must be a 'css' function result: "+s+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+o[r+1],o[0]);return new oe(e,o,It)},he=(o,t)=>{if(Pt)o.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(const e of t){const n=document.createElement("style"),i=ft.litNonce;i!==void 0&&n.setAttribute("nonce",i),n.textContent=e.cssText,o.appendChild(n)}},Zt=Pt?o=>o:o=>o instanceof CSSStyleSheet?(t=>{let e="";for(const n of t.cssRules)e+=n.cssText;return ce(e)})(o):o;/**
|
|
6
6
|
* @license
|
|
7
7
|
* Copyright 2017 Google LLC
|
|
8
8
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
13
13
|
*/const it=globalThis,gt=it.trustedTypes,Kt=gt?gt.createPolicy("lit-html",{createHTML:o=>o}):void 0,ie="$lit$",j=`lit$${Math.random().toFixed(9).slice(2)}$`,ne="?"+j,ye=`<${ne}>`,W=document,rt=()=>W.createComment(""),st=o=>o===null||typeof o!="object"&&typeof o!="function",Bt=Array.isArray,me=o=>Bt(o)||typeof(o==null?void 0:o[Symbol.iterator])=="function",_t=`[
|
|
14
14
|
\f\r]`,et=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Gt=/-->/g,Xt=/>/g,V=RegExp(`>|${_t}(?:([^\\s"'>=/]+)(${_t}*=${_t}*(?:[^
|
|
15
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),Jt=/'/g,Qt=/"/g,re=/^(?:script|style|textarea|title)$/i,
|
|
15
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),Jt=/'/g,Qt=/"/g,re=/^(?:script|style|textarea|title)$/i,we=o=>(t,...e)=>({_$litType$:o,strings:t,values:e}),l=we(1),F=Symbol.for("lit-noChange"),d=Symbol.for("lit-nothing"),Yt=new WeakMap,Z=W.createTreeWalker(W,129);function se(o,t){if(!Bt(o)||!o.hasOwnProperty("raw"))throw Error("invalid template strings array");return Kt!==void 0?Kt.createHTML(t):t}const xe=(o,t)=>{const e=o.length-1,n=[];let i,r=t===2?"<svg>":t===3?"<math>":"",s=et;for(let h=0;h<e;h++){const c=o[h];let v,y,p=-1,$=0;for(;$<c.length&&(s.lastIndex=$,y=s.exec(c),y!==null);)$=s.lastIndex,s===et?y[1]==="!--"?s=Gt:y[1]!==void 0?s=Xt:y[2]!==void 0?(re.test(y[2])&&(i=RegExp("</"+y[2],"g")),s=V):y[3]!==void 0&&(s=V):s===V?y[0]===">"?(s=i??et,p=-1):y[1]===void 0?p=-2:(p=s.lastIndex-y[2].length,v=y[1],s=y[3]===void 0?V:y[3]==='"'?Qt:Jt):s===Qt||s===Jt?s=V:s===Gt||s===Xt?s=et:(s=V,i=void 0);const E=s===V&&o[h+1].startsWith("/>")?" ":"";r+=s===et?c+ye:p>=0?(n.push(v),c.slice(0,p)+ie+c.slice(p)+j+E):c+j+(p===-2?h:E)}return[se(o,r+(o[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),n]};class at{constructor({strings:t,_$litType$:e},n){let i;this.parts=[];let r=0,s=0;const h=t.length-1,c=this.parts,[v,y]=xe(t,e);if(this.el=at.createElement(v,n),Z.currentNode=this.el.content,e===2||e===3){const p=this.el.content.firstChild;p.replaceWith(...p.childNodes)}for(;(i=Z.nextNode())!==null&&c.length<h;){if(i.nodeType===1){if(i.hasAttributes())for(const p of i.getAttributeNames())if(p.endsWith(ie)){const $=y[s++],E=i.getAttribute(p).split(j),vt=/([.?@])?(.*)/.exec($);c.push({type:1,index:r,name:vt[2],strings:E,ctor:vt[1]==="."?_e:vt[1]==="?"?Ce:vt[1]==="@"?ke:mt}),i.removeAttribute(p)}else p.startsWith(j)&&(c.push({type:6,index:r}),i.removeAttribute(p));if(re.test(i.tagName)){const p=i.textContent.split(j),$=p.length-1;if($>0){i.textContent=gt?gt.emptyScript:"";for(let E=0;E<$;E++)i.append(p[E],rt()),Z.nextNode(),c.push({type:2,index:++r});i.append(p[$],rt())}}}else if(i.nodeType===8)if(i.data===ne)c.push({type:2,index:r});else{let p=-1;for(;(p=i.data.indexOf(j,p+1))!==-1;)c.push({type:7,index:r}),p+=j.length-1}r++}}static createElement(t,e){const n=W.createElement("template");return n.innerHTML=t,n}}function Q(o,t,e=o,n){var s,h;if(t===F)return t;let i=n!==void 0?(s=e._$Co)==null?void 0:s[n]:e._$Cl;const r=st(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=Q(o,i._$AS(o,t.values),i,n)),t}class $e{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)??W).importNode(e,!0);Z.currentNode=i;let r=Z.nextNode(),s=0,h=0,c=n[0];for(;c!==void 0;){if(s===c.index){let v;c.type===2?v=new pt(r,r.nextSibling,this,t):c.type===1?v=new c.ctor(r,c.name,c.strings,this,t):c.type===6&&(v=new Ae(r,this,t)),this._$AV.push(v),c=n[++h]}s!==(c==null?void 0:c.index)&&(r=Z.nextNode(),s++)}return Z.currentNode=W,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 pt{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=Q(this,t,e),st(t)?t===d||t==null||t===""?(this._$AH!==d&&this._$AR(),this._$AH=d):t!==this._$AH&&t!==F&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):me(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&&st(this._$AH)?this._$AA.nextSibling.data=t:this.T(W.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=at.createElement(se(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 $e(i,this),h=s.u(this.options);s.p(e),this.T(h),this._$AH=s}}_$AC(t){let e=Yt.get(t.strings);return e===void 0&&Yt.set(t.strings,e=new at(t)),e}k(t){Bt(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 pt(this.O(rt()),this.O(rt()),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 mt{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=Q(this,t,e,0),s=!st(t)||t!==this._$AH&&t!==F,s&&(this._$AH=t);else{const h=t;let c,v;for(t=r[0],c=0;c<r.length-1;c++)v=Q(this,h[n+c],e,c),v===F&&(v=this._$AH[c]),s||(s=!st(v)||v!==this._$AH[c]),v===d?t=d:t!==d&&(t+=(v??"")+r[c+1]),this._$AH[c]=v}s&&!i&&this.j(t)}j(t){t===d?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class _e extends mt{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===d?void 0:t}}class Ce extends mt{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==d)}}class ke extends mt{constructor(t,e,n,i,r){super(t,e,n,i,r),this.type=5}_$AI(t,e=this){if((t=Q(this,t,e,0)??d)===F)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 Ae{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){Q(this,t)}}const Ct=it.litHtmlPolyfillSupport;Ct==null||Ct(at,pt),(it.litHtmlVersions??(it.litHtmlVersions=[])).push("3.3.0");const Ee=(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 pt(t.insertBefore(rt(),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
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
* @license
|
|
21
21
|
* Copyright 2017 Google LLC
|
|
22
22
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
23
|
-
*/const
|
|
23
|
+
*/const w=o=>(t,e)=>{e!==void 0?e.addInitializer(()=>{customElements.define(o,t)}):customElements.define(o,t)};/**
|
|
24
24
|
* @license
|
|
25
25
|
* Copyright 2017 Google LLC
|
|
26
26
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
@@ -28,10 +28,10 @@
|
|
|
28
28
|
* @license
|
|
29
29
|
* Copyright 2017 Google LLC
|
|
30
30
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
31
|
-
*/function K(o){return a({...o,state:!0,attribute:!1})}const ut=
|
|
31
|
+
*/function K(o){return a({...o,state:!0,attribute:!1})}const ut=m`
|
|
32
32
|
outline: 1px dashed var(--color-border-primary);
|
|
33
33
|
outline-offset: 2px;
|
|
34
|
-
`;
|
|
34
|
+
`;m`
|
|
35
35
|
:host * {
|
|
36
36
|
box-sizing: border-box;
|
|
37
37
|
}
|
|
@@ -142,7 +142,7 @@
|
|
|
142
142
|
* @license
|
|
143
143
|
* Copyright 2017 Google LLC
|
|
144
144
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
145
|
-
*/class St extends Et{}St.directiveName="unsafeSVG",St.resultType=2;const I=Mt(St);var oo=Object.defineProperty,io=Object.getOwnPropertyDescriptor,
|
|
145
|
+
*/class St extends Et{}St.directiveName="unsafeSVG",St.resultType=2;const I=Mt(St);var oo=Object.defineProperty,io=Object.getOwnPropertyDescriptor,x=(o,t,e,n)=>{for(var i=n>1?void 0:n?io(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&&oo(t,e,i),i};const no=Dt(f);let b=class extends no{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}get name(){return this.getAttribute("name")??""}set name(o){this.setAttribute("name",o)}get form(){return this[zt].form}handleClick(){if(this.panelTarget){const o=document.getElementById(this.panelTarget);o!=null&&o.openPanel&&typeof o.openPanel=="function"?o.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=G[t].replace("<svg",'<svg aria-hidden="true" focusable="false" part="svg"');return l`<span class="${o==="start"?"icon-start":"icon-end"}">${I(e)}</span>`}renderButton(){const o=this.text||this.textsecond;return l`
|
|
146
146
|
<button type=${this.type} class="button" ?disabled=${this.disabled} @click=${this.handleClick}>
|
|
147
147
|
${this.startIcon?this.renderIcon("start"):d}
|
|
148
148
|
${o?l`
|
|
@@ -165,7 +165,7 @@
|
|
|
165
165
|
`:l`<slot></slot>`}
|
|
166
166
|
${this.endIcon?this.renderIcon("end"):d}
|
|
167
167
|
</a>
|
|
168
|
-
`}};Pe(b);b.formAssociated=!0;b.styles=
|
|
168
|
+
`}};Pe(b);b.formAssociated=!0;b.styles=m`
|
|
169
169
|
:host {
|
|
170
170
|
--button-border: transparent;
|
|
171
171
|
cursor: pointer;
|
|
@@ -353,12 +353,12 @@
|
|
|
353
353
|
transform: translateX(4px);
|
|
354
354
|
}
|
|
355
355
|
//End icon movment on hover
|
|
356
|
-
`;
|
|
356
|
+
`;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);b=x([w("o-button")],b);var ro=Object.defineProperty,so=Object.getOwnPropertyDescriptor,wt=(o,t,e,n)=>{for(var i=n>1?void 0:n?so(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&&ro(t,e,i),i};let Y=class extends f{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("tabindex","0"),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=G.wishlist.replace("<svg",'<svg aria-hidden="true" focusable="false" part="svg"');return l`
|
|
357
357
|
<button type="button" aria-describedby="${this.ariaDescribedBy}" class="wishlist-button">
|
|
358
358
|
<span class="sr-only">${this.label}</span>
|
|
359
359
|
${I(o)}
|
|
360
360
|
</button>
|
|
361
|
-
`}setStatus(o){this.status=o,this.setAttribute("aria-pressed",String(this.status==="filled")),this.requestUpdate()}setAriaDescribedBy(o){this.ariaDescribedBy=o,this.requestUpdate()}setLabel(o){this.label=o,this.requestUpdate()}};Y.styles=
|
|
361
|
+
`}setStatus(o){this.status=o,this.setAttribute("aria-pressed",String(this.status==="filled")),this.requestUpdate()}setAriaDescribedBy(o){this.ariaDescribedBy=o,this.requestUpdate()}setLabel(o){this.label=o,this.requestUpdate()}};Y.styles=m`
|
|
362
362
|
:host {
|
|
363
363
|
display: inline-flex;
|
|
364
364
|
justify-content: center;
|
|
@@ -423,7 +423,7 @@
|
|
|
423
423
|
width: 0.1rem !important;
|
|
424
424
|
white-space: nowrap !important;
|
|
425
425
|
}
|
|
426
|
-
`;
|
|
426
|
+
`;wt([a({type:String,reflect:!0})],Y.prototype,"status",2);wt([a({type:String,reflect:!0})],Y.prototype,"ariaDescribedBy",2);wt([a({type:String,reflect:!0})],Y.prototype,"label",2);Y=wt([w("o-wishlist-button")],Y);/**
|
|
427
427
|
* @license
|
|
428
428
|
* Copyright 2018 Google LLC
|
|
429
429
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
@@ -443,7 +443,7 @@
|
|
|
443
443
|
${n}
|
|
444
444
|
</button>
|
|
445
445
|
`}
|
|
446
|
-
`}};C.styles=
|
|
446
|
+
`}};C.styles=m`
|
|
447
447
|
:host {
|
|
448
448
|
display: inline-flex;
|
|
449
449
|
justify-content: center;
|
|
@@ -654,7 +654,7 @@
|
|
|
654
654
|
.sr-only {
|
|
655
655
|
display: none;
|
|
656
656
|
}
|
|
657
|
-
`;B([a({type:String,reflect:!0})],C.prototype,"bgstyle",2);B([a({type:String,reflect:!0})],C.prototype,"size",2);B([a({type:String,reflect:!0})],C.prototype,"status",2);B([a({type:String,reflect:!0})],C.prototype,"type",2);B([a({type:String})],C.prototype,"strokewidth",2);B([a({type:String})],C.prototype,"icon",2);B([a({type:Boolean,reflect:!0})],C.prototype,"disabled",2);B([a({type:Boolean})],C.prototype,"showSrLabel",2);B([a({type:String})],C.prototype,"srLabel",2);C=B([
|
|
657
|
+
`;B([a({type:String,reflect:!0})],C.prototype,"bgstyle",2);B([a({type:String,reflect:!0})],C.prototype,"size",2);B([a({type:String,reflect:!0})],C.prototype,"status",2);B([a({type:String,reflect:!0})],C.prototype,"type",2);B([a({type:String})],C.prototype,"strokewidth",2);B([a({type:String})],C.prototype,"icon",2);B([a({type:Boolean,reflect:!0})],C.prototype,"disabled",2);B([a({type:Boolean})],C.prototype,"showSrLabel",2);B([a({type:String})],C.prototype,"srLabel",2);C=B([w("o-icon-button")],C);var co=Object.defineProperty,ho=Object.getOwnPropertyDescriptor,X=(o,t,e,n)=>{for(var i=n>1?void 0:n?ho(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&&co(t,e,i),i};let D=class extends f{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`
|
|
658
658
|
<a
|
|
659
659
|
href="${o}"
|
|
660
660
|
target="${_(this.target||void 0)}"
|
|
@@ -680,7 +680,7 @@
|
|
|
680
680
|
></o-icon-button>
|
|
681
681
|
`:null}
|
|
682
682
|
</a>
|
|
683
|
-
`}};D.styles=
|
|
683
|
+
`}};D.styles=m`
|
|
684
684
|
:host([template="standard"]) a {
|
|
685
685
|
color: var(--color-content-action-secondary);
|
|
686
686
|
font-size: var(--font-size-200);
|
|
@@ -767,14 +767,14 @@
|
|
|
767
767
|
height: 1px;
|
|
768
768
|
}
|
|
769
769
|
/* End of underline effect */
|
|
770
|
-
`;X([a({type:String})],D.prototype,"href",2);X([a({type:String})],D.prototype,"target",2);X([a({type:String,reflect:!0})],D.prototype,"template",2);X([a({type:Boolean,reflect:!0})],D.prototype,"inverse",2);X([a({type:Boolean,reflect:!0})],D.prototype,"endIcon",2);X([a({type:Boolean,reflect:!0})],D.prototype,"reverseEndIcon",2);D=X([
|
|
770
|
+
`;X([a({type:String})],D.prototype,"href",2);X([a({type:String})],D.prototype,"target",2);X([a({type:String,reflect:!0})],D.prototype,"template",2);X([a({type:Boolean,reflect:!0})],D.prototype,"inverse",2);X([a({type:Boolean,reflect:!0})],D.prototype,"endIcon",2);X([a({type:Boolean,reflect:!0})],D.prototype,"reverseEndIcon",2);D=X([w("o-link")],D);var po=Object.defineProperty,uo=Object.getOwnPropertyDescriptor,xt=(o,t,e,n)=>{for(var i=n>1?void 0:n?uo(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&&po(t,e,i),i};let tt=class extends f{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`
|
|
771
771
|
<div class="rating">
|
|
772
772
|
<div class="stars">
|
|
773
773
|
${o.map(t=>l`<span class="star">${I(G[t]??"")}</span>`)}
|
|
774
774
|
</div>
|
|
775
775
|
${this.reviewCount!=null&&this.href!=null?l`<o-link template="review" href="${this.href}">${this.reviewCount}</o-link>`:null}
|
|
776
776
|
</div>
|
|
777
|
-
`}};tt.styles=
|
|
777
|
+
`}};tt.styles=m`
|
|
778
778
|
svg {
|
|
779
779
|
width: 12px;
|
|
780
780
|
height: 12px;
|
|
@@ -807,7 +807,7 @@
|
|
|
807
807
|
text-decoration: underline;
|
|
808
808
|
cursor: pointer;
|
|
809
809
|
}
|
|
810
|
-
`;
|
|
810
|
+
`;xt([a({type:Number})],tt.prototype,"rating",2);xt([a({type:String})],tt.prototype,"reviewCount",2);xt([a({type:String})],tt.prototype,"href",2);tt=xt([w("o-rating")],tt);/**
|
|
811
811
|
* @license
|
|
812
812
|
* Copyright 2020 Google LLC
|
|
813
813
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
@@ -815,7 +815,33 @@
|
|
|
815
815
|
* @license
|
|
816
816
|
* Copyright 2017 Google LLC
|
|
817
817
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
818
|
-
*/const nt=(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),nt(i,t);return!0},yt=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)},ae=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),go(t)}};function fo(o){this._$AN!==void 0?(yt(this),this._$AM=o,ae(this)):this._$AM=o}function bo(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++)nt(n[r],!1),yt(n[r]);else n!=null&&(nt(n,!1),yt(n));else nt(this,o)}const go=o=>{o.type==Ht.CHILD&&(o._$AP??(o._$AP=bo),o._$AQ??(o._$AQ=fo))};class yo extends Tt{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,e,n){super._$AT(t,e,n),ae(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&&(nt(this,t),yt(this))}setValue(t){if(vo(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 mo extends yo{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
|
|
818
|
+
*/const nt=(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),nt(i,t);return!0},yt=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)},ae=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),go(t)}};function fo(o){this._$AN!==void 0?(yt(this),this._$AM=o,ae(this)):this._$AM=o}function bo(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++)nt(n[r],!1),yt(n[r]);else n!=null&&(nt(n,!1),yt(n));else nt(this,o)}const go=o=>{o.type==Ht.CHILD&&(o._$AP??(o._$AP=bo),o._$AQ??(o._$AQ=fo))};class yo extends Tt{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,e,n){super._$AT(t,e,n),ae(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&&(nt(this,t),yt(this))}setValue(t){if(vo(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 mo extends yo{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 wo extends mo{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 xo extends wo{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 te=Mt(xo);var $o=Object.defineProperty,_o=Object.getOwnPropertyDescriptor,g=(o,t,e,n)=>{for(var i=n>1?void 0:n?_o(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 u=class extends f{constructor(){super(...arguments),this.open=!1,this.showHeader=!0,this.showFooter=!1,this.showHeaderStartIcon=!1,this.headerTitle="",this.headerTitleClassName="panel-title",this.closeButtonLabel="Close the modal",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.previousFocusedElement=null,this.innerFocusedElement=null,this._onOpenDetail=()=>{this.showDetail=!0},this.handleKeyDown=o=>{this.open&&(o.key==="Escape"?this.closePanel():o.key==="Tab"&&this.trapFocus(o))},this.handleClosePanel=o=>{o instanceof KeyboardEvent&&o.key!=="Enter"&&o.key!==" "||(o.preventDefault(),o.stopPropagation(),this.closePanel())}}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)}disconnectedCallback(){document.body.style.overflow="",document.body.removeAttribute("data-side-panel"),this.removeEventListener("keydown",this.handleKeyDown),super.disconnectedCallback(),this.removeEventListener("open-detail",this._onOpenDetail)}trapFocus(o){var i,r,s,h,c,v,y,p,$,E;this.innerFocusedElement=document.activeElement||null,this.innerFocusedElement=((r=(i=this.innerFocusedElement)==null?void 0:i.shadowRoot)==null?void 0:r.activeElement)||this.innerFocusedElement;const t=this.getFocusableElements();if(t.length===0)return;const e=t[0],n=t[t.length-1];o.shiftKey&&this.innerFocusedElement===e?(o.preventDefault(),n.shadowRoot?(c=(h=(s=n.shadowRoot)==null?void 0:s.querySelector(u.focusablesSelector))==null?void 0:h.focus)==null||c.call(h):(v=n.focus)==null||v.call(n)):!o.shiftKey&&this.innerFocusedElement===n&&(o.preventDefault(),e.shadowRoot?($=(p=(y=e.shadowRoot)==null?void 0:y.querySelector(u.focusablesSelector))==null?void 0:p.focus)==null||$.call(p):(E=e.focus)==null||E.call(e))}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(u.focusablesSelector)?i:[]];if(!["o-icon-button","o-button"].includes(i.tagName.toLowerCase())){const h=Array.from(i instanceof HTMLSlotElement?i.assignedElements({flatten:!0}):[]).filter(t).flatMap(e),c=Array.from(((s=i.shadowRoot)==null?void 0:s.querySelectorAll("*"))||[]).filter(t).flatMap(e);r.push(...h,...c)}return r.flat()}return Array.from(o.querySelectorAll("*")).filter(t).flatMap(e)}openPanel(){this.previousFocusedElement=document.activeElement,this.open=!0,document.body.style.overflow="hidden",document.body.setAttribute("data-side-panel","open"),this.updateComplete.then(()=>{var o,t,e,n;if(this.showHeader){const i=((o=this.shadowRoot)==null?void 0:o.querySelector(".panel .close-btn"))||null,r=((t=i==null?void 0:i.shadowRoot)==null?void 0:t.querySelector("button"))||null;r&&((e=r.focus)==null||e.call(r))}else{const i=this.getFocusableElements()[0];(n=i==null?void 0:i.focus)==null||n.call(i)}}),this.dispatchEvent(new CustomEvent("open",{bubbles:!0,composed:!0}))}closePanel(){var o;this.open=!1,this.showDetail=!1,document.body.style.overflow="",document.body.removeAttribute("data-side-panel"),(o=this.previousFocusedElement)==null||o.focus(),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}`)}render(){const o=this.showHeader?l`
|
|
819
|
+
<div class="header">
|
|
820
|
+
${this.showHeaderStartIcon?l`
|
|
821
|
+
<o-icon-button
|
|
822
|
+
icon="arrowLeft"
|
|
823
|
+
size="small"
|
|
824
|
+
class="return-btn"
|
|
825
|
+
bgstyle="background-light"
|
|
826
|
+
@click=${this.handleClosePanel}
|
|
827
|
+
@keydown=${this.handleClosePanel}
|
|
828
|
+
aria-label="${this.closeButtonLabel}"
|
|
829
|
+
></o-icon-button>
|
|
830
|
+
`:null}
|
|
831
|
+
<h2 id="panel-title" class="${this.headerTitleClassName}">
|
|
832
|
+
${this.headerTitle}
|
|
833
|
+
</h2>
|
|
834
|
+
<o-icon-button
|
|
835
|
+
icon="cross"
|
|
836
|
+
size="small"
|
|
837
|
+
class="close-btn"
|
|
838
|
+
bgstyle="background-light"
|
|
839
|
+
@click=${this.handleClosePanel}
|
|
840
|
+
@keydown=${this.handleClosePanel}
|
|
841
|
+
aria-label="${this.closeButtonLabel}"
|
|
842
|
+
></o-icon-button>
|
|
843
|
+
</div>
|
|
844
|
+
`:null;return l`
|
|
819
845
|
<div class="overlay" style="z-index: ${this.zIndex}" @click=${this.handleClosePanel}></div>
|
|
820
846
|
<div
|
|
821
847
|
class="panel"
|
|
@@ -826,18 +852,18 @@
|
|
|
826
852
|
tabindex="-1"
|
|
827
853
|
>
|
|
828
854
|
|
|
829
|
-
${
|
|
830
|
-
<div class="header">
|
|
831
|
-
${this.showHeaderStartIcon?l`
|
|
832
|
-
<o-icon-button icon="arrowLeft" size="small" class="return-btn" bgstyle="background-light" @click=${this.handleClosePanel} @keydown=${this.handleClosePanel} aria-label="${this.closeButtonLabel}"></o-icon-button>
|
|
833
|
-
`:null}
|
|
834
|
-
<h2 id="panel-title" class="${this.headerTitleClassName}">${this.headerTitle}</h2>
|
|
835
|
-
<o-icon-button icon="cross" size="small" class="close-btn" bgstyle="background-light" @click=${this.handleClosePanel} @keydown=${this.handleClosePanel} aria-label="${this.closeButtonLabel}"></o-icon-button>
|
|
836
|
-
</div>
|
|
837
|
-
`:null}
|
|
855
|
+
${o}
|
|
838
856
|
|
|
839
|
-
<div class="content">
|
|
840
|
-
|
|
857
|
+
<div class="content ${this.showDetail?"with-detail":""}">
|
|
858
|
+
|
|
859
|
+
${this.showDetail?l`
|
|
860
|
+
<div class="detail-view">
|
|
861
|
+
${o}
|
|
862
|
+
<div class="detail-content">
|
|
863
|
+
<slot name="detail"></slot>
|
|
864
|
+
</div>
|
|
865
|
+
</div>
|
|
866
|
+
`:l`<slot></slot>`}
|
|
841
867
|
</div>
|
|
842
868
|
|
|
843
869
|
${this.showFooter?l`
|
|
@@ -866,7 +892,7 @@
|
|
|
866
892
|
</div>
|
|
867
893
|
`:null}
|
|
868
894
|
</div>
|
|
869
|
-
`}};u.styles=
|
|
895
|
+
`}};u.styles=m`
|
|
870
896
|
:host {
|
|
871
897
|
--z-overlay: 99;
|
|
872
898
|
--z-panel: 100;
|
|
@@ -977,12 +1003,23 @@
|
|
|
977
1003
|
flex: 1 1 auto;
|
|
978
1004
|
overflow-y: auto;
|
|
979
1005
|
overflow-x: hidden;
|
|
980
|
-
padding:
|
|
1006
|
+
padding: var(--spacing-xl);
|
|
1007
|
+
|
|
1008
|
+
&.with-detail {
|
|
1009
|
+
width: 100%;
|
|
1010
|
+
height: 100%;
|
|
1011
|
+
position: absolute;
|
|
1012
|
+
top: 0;
|
|
1013
|
+
left: 0;
|
|
1014
|
+
background: var(--color-container-bg-white);
|
|
1015
|
+
z-index: 3;
|
|
1016
|
+
padding: var(--spacing-4-xs);
|
|
1017
|
+
}
|
|
981
1018
|
}
|
|
982
1019
|
|
|
983
1020
|
.footer {
|
|
984
1021
|
flex: 0 0 auto;
|
|
985
|
-
padding:
|
|
1022
|
+
padding: var(--spacing-xl);
|
|
986
1023
|
border-top: var(--border-050) solid var(--color-border-tertiary);
|
|
987
1024
|
display: flex;
|
|
988
1025
|
flex-direction: column;
|
|
@@ -1014,7 +1051,23 @@
|
|
|
1014
1051
|
--line-height: var(--line-height-280);
|
|
1015
1052
|
}
|
|
1016
1053
|
}
|
|
1017
|
-
|
|
1054
|
+
|
|
1055
|
+
@keyframes slideInRight {
|
|
1056
|
+
from {
|
|
1057
|
+
transform: translateX(100%);
|
|
1058
|
+
}
|
|
1059
|
+
to {
|
|
1060
|
+
transform: translateX(0%);
|
|
1061
|
+
}
|
|
1062
|
+
}
|
|
1063
|
+
|
|
1064
|
+
.detail-view {
|
|
1065
|
+
animation: slideInRight 0.3s ease-out both;
|
|
1066
|
+
}
|
|
1067
|
+
.detail-content {
|
|
1068
|
+
padding: var(--spacing-xl);
|
|
1069
|
+
}
|
|
1070
|
+
`;u.focusablesSelector='button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"]), o-icon-button, o-button';u.focusablesCustomElementsSelector="o-icon-button, o-button";g([a({type:Boolean,reflect:!0})],u.prototype,"open",2);g([a({type:Boolean,reflect:!0})],u.prototype,"showHeader",2);g([a({type:Boolean,reflect:!0})],u.prototype,"showFooter",2);g([a({type:Boolean,reflect:!0})],u.prototype,"showHeaderStartIcon",2);g([a({type:String,reflect:!0})],u.prototype,"headerTitle",2);g([a({type:String,reflect:!0})],u.prototype,"headerTitleClassName",2);g([a({type:String,reflect:!0})],u.prototype,"closeButtonLabel",2);g([a({type:String,reflect:!0})],u.prototype,"firstButtonLabel",2);g([a({type:String,reflect:!0})],u.prototype,"firstButtonVariant",2);g([a({type:Object,reflect:!0})],u.prototype,"firstButtonProps",2);g([a({type:Boolean,reflect:!0})],u.prototype,"onFirstButtonClickClose",2);g([a({type:String,reflect:!0})],u.prototype,"secondButtonLabel",2);g([a({type:String,reflect:!0})],u.prototype,"secondButtonVariant",2);g([a({type:Object,reflect:!0})],u.prototype,"secondButtonProps",2);g([a({type:Boolean,reflect:!0})],u.prototype,"onSecondButtonClickClose",2);g([a({type:Boolean,reflect:!0})],u.prototype,"disablePortal",2);g([a({type:Number,reflect:!0})],u.prototype,"zIndex",2);g([a({type:Boolean,reflect:!0})],u.prototype,"initialized",2);g([a({type:Boolean})],u.prototype,"showDetail",2);u=g([w("o-side-panel")],u);var Co=Object.defineProperty,ko=Object.getOwnPropertyDescriptor,N=(o,t,e,n)=>{for(var i=n>1?void 0:n?ko(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&&Co(t,e,i),i};let O=class extends f{constructor(){super(...arguments),this.thumbnails=[],this.activeIndex=0,this.disabledIndexes=[],this.maxWidth="100%",this.altressource="visual",this.focusedIndex=0,this.playerIconTemplate=l`
|
|
1018
1071
|
<o-icon-button
|
|
1019
1072
|
icon="playerv"
|
|
1020
1073
|
size="xsmall"
|
|
@@ -1045,7 +1098,7 @@
|
|
|
1045
1098
|
</li>
|
|
1046
1099
|
`})}
|
|
1047
1100
|
</ul>
|
|
1048
|
-
`}};O.styles=
|
|
1101
|
+
`}};O.styles=m`
|
|
1049
1102
|
:host {
|
|
1050
1103
|
display: flex;
|
|
1051
1104
|
gap: 5px;
|
|
@@ -1150,9 +1203,9 @@
|
|
|
1150
1203
|
height: 0;
|
|
1151
1204
|
width: 0;
|
|
1152
1205
|
}
|
|
1153
|
-
`;N([a({type:Array})],O.prototype,"thumbnails",2);N([a({type:Number})],O.prototype,"activeIndex",2);N([a({type:Array})],O.prototype,"disabledIndexes",2);N([a({type:String})],O.prototype,"maxWidth",2);N([a({type:String})],O.prototype,"altressource",2);N([a({type:Object})],O.prototype,"swiperInstance",2);N([K()],O.prototype,"focusedIndex",2);O=N([
|
|
1206
|
+
`;N([a({type:Array})],O.prototype,"thumbnails",2);N([a({type:Number})],O.prototype,"activeIndex",2);N([a({type:Array})],O.prototype,"disabledIndexes",2);N([a({type:String})],O.prototype,"maxWidth",2);N([a({type:String})],O.prototype,"altressource",2);N([a({type:Object})],O.prototype,"swiperInstance",2);N([K()],O.prototype,"focusedIndex",2);O=N([w("thumbnail-navigation")],O);var Ao=Object.defineProperty,Eo=Object.getOwnPropertyDescriptor,jt=(o,t,e,n)=>{for(var i=n>1?void 0:n?Eo(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&&Ao(t,e,i),i};let lt=class extends f{constructor(){super(...arguments),this.type="",this.bgstyle="background-white"}render(){return l`
|
|
1154
1207
|
<span class="tag ${this.bgstyle}"><slot></slot></span>
|
|
1155
|
-
`}};lt.styles=
|
|
1208
|
+
`}};lt.styles=m`
|
|
1156
1209
|
.tag {
|
|
1157
1210
|
display: inline-block;
|
|
1158
1211
|
padding: var(--spacing-2-xs) var(--spacing-s);
|
|
@@ -1209,12 +1262,12 @@
|
|
|
1209
1262
|
}
|
|
1210
1263
|
}
|
|
1211
1264
|
|
|
1212
|
-
`;jt([a({type:String,reflect:!0})],lt.prototype,"type",2);jt([a({type:String,reflect:!0})],lt.prototype,"bgstyle",2);lt=jt([
|
|
1265
|
+
`;jt([a({type:String,reflect:!0})],lt.prototype,"type",2);jt([a({type:String,reflect:!0})],lt.prototype,"bgstyle",2);lt=jt([w("o-tag")],lt);var So=Object.defineProperty,Lo=Object.getOwnPropertyDescriptor,Ut=(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&&So(t,e,i),i};let ct=class extends f{constructor(){super(...arguments),this.type="top",this.text=""}render(){return l`
|
|
1213
1266
|
<div class="tooltip">
|
|
1214
1267
|
<span class="tooltiptext">${this.text}</span>
|
|
1215
1268
|
<slot></slot>
|
|
1216
1269
|
</div>
|
|
1217
|
-
`}};ct.styles=
|
|
1270
|
+
`}};ct.styles=m`
|
|
1218
1271
|
.tooltip {
|
|
1219
1272
|
position: relative;
|
|
1220
1273
|
display: inline-block;
|
|
@@ -1306,7 +1359,7 @@
|
|
|
1306
1359
|
border-color: transparent var(--color-alpha-dark-strongest) transparent transparent;
|
|
1307
1360
|
}
|
|
1308
1361
|
|
|
1309
|
-
`;Ut([a({type:String,reflect:!0})],ct.prototype,"type",2);Ut([a({type:String,reflect:!0})],ct.prototype,"text",2);ct=Ut([
|
|
1362
|
+
`;Ut([a({type:String,reflect:!0})],ct.prototype,"type",2);Ut([a({type:String,reflect:!0})],ct.prototype,"text",2);ct=Ut([w("o-tooltip")],ct);var Po=Object.defineProperty,Io=Object.getOwnPropertyDescriptor,H=(o,t,e,n)=>{for(var i=n>1?void 0:n?Io(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&&Po(t,e,i),i};let S=class extends f{constructor(){super(...arguments),this.options=[],this.value="",this.name="",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(o){this.options.length>0&&(this.options.some(e=>e.value===this.value)||(this.value=this.options[0].value))}render(){const o=G.checkstroke.replace("<svg",'<svg aria-hidden="true" focusable="false" part="svg"'),t=this.options.find(e=>e.value===this.value);return l`
|
|
1310
1363
|
<button
|
|
1311
1364
|
role="combobox"
|
|
1312
1365
|
aria-haspopup="listbox"
|
|
@@ -1354,7 +1407,7 @@
|
|
|
1354
1407
|
</ul>`:null}
|
|
1355
1408
|
|
|
1356
1409
|
<input type="hidden" name="${this.name}" .value="${this.value}" />
|
|
1357
|
-
`}};S.styles=
|
|
1410
|
+
`}};S.styles=m`
|
|
1358
1411
|
:host {
|
|
1359
1412
|
display: inline-block;
|
|
1360
1413
|
position: relative;
|
|
@@ -1493,7 +1546,7 @@
|
|
|
1493
1546
|
input[type="hidden"] {
|
|
1494
1547
|
display: none;
|
|
1495
1548
|
}
|
|
1496
|
-
`;H([a({type:Array,reflect:!0})],S.prototype,"options",2);H([a({type:String,reflect:!0})],S.prototype,"value",2);H([a({type:String,reflect:!0})],S.prototype,"name",2);H([a({type:Boolean,reflect:!0})],S.prototype,"disabled",2);H([a({type:String,reflect:!0})],S.prototype,"width",2);H([K()],S.prototype,"open",2);H([K()],S.prototype,"activeIndex",2);H([K()],S.prototype,"menuWidth",2);S=H([
|
|
1549
|
+
`;H([a({type:Array,reflect:!0})],S.prototype,"options",2);H([a({type:String,reflect:!0})],S.prototype,"value",2);H([a({type:String,reflect:!0})],S.prototype,"name",2);H([a({type:Boolean,reflect:!0})],S.prototype,"disabled",2);H([a({type:String,reflect:!0})],S.prototype,"width",2);H([K()],S.prototype,"open",2);H([K()],S.prototype,"activeIndex",2);H([K()],S.prototype,"menuWidth",2);S=H([w("o-dropdown")],S);var Oo=Object.getOwnPropertyDescriptor,Bo=(o,t,e,n)=>{for(var i=n>1?void 0:n?Oo(t,e):t,r=o.length-1,s;r>=0;r--)(s=o[r])&&(i=s(i)||i);return i};let Lt=class extends f{render(){return l` <span class="dots"></span> `}};Lt.styles=m`
|
|
1497
1550
|
:host {
|
|
1498
1551
|
display: flex;
|
|
1499
1552
|
align-items: center;
|
|
@@ -1544,7 +1597,7 @@
|
|
|
1544
1597
|
background-color: var(--color-container-action-primary-pressed);
|
|
1545
1598
|
}
|
|
1546
1599
|
}
|
|
1547
|
-
`;Lt=Bo([
|
|
1600
|
+
`;Lt=Bo([w("o-dots")],Lt);var zo=Object.defineProperty,Do=Object.getOwnPropertyDescriptor,z=(o,t,e,n)=>{for(var i=n>1?void 0:n?Do(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&&zo(t,e,i),i};let k=class extends f{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=G.checkstroke.replace("<svg",'<svg aria-hidden="true" focusable="false" part="svg"'),t=this.options.find(e=>e.value===this.value);return l`
|
|
1548
1601
|
<button
|
|
1549
1602
|
role="combobox"
|
|
1550
1603
|
aria-haspopup="listbox"
|
|
@@ -1606,7 +1659,7 @@
|
|
|
1606
1659
|
</ul>`:null}
|
|
1607
1660
|
|
|
1608
1661
|
<input type="hidden" name="${this.name}" .value="${this.value}" />
|
|
1609
|
-
`}};k.styles=
|
|
1662
|
+
`}};k.styles=m`
|
|
1610
1663
|
:host {
|
|
1611
1664
|
display: inline-block;
|
|
1612
1665
|
position: relative;
|
|
@@ -1781,7 +1834,7 @@
|
|
|
1781
1834
|
input[type="hidden"] {
|
|
1782
1835
|
display: none;
|
|
1783
1836
|
}
|
|
1784
|
-
`;z([a({type:Array,reflect:!0})],k.prototype,"options",2);z([a({type:String,reflect:!0})],k.prototype,"value",2);z([a({type:String,reflect:!0})],k.prototype,"name",2);z([a({type:String,reflect:!0})],k.prototype,"additionaltext",2);z([a({type:Boolean,reflect:!0})],k.prototype,"disabled",2);z([a({type:String,reflect:!0})],k.prototype,"width",2);z([K()],k.prototype,"open",2);z([K()],k.prototype,"activeIndex",2);z([K()],k.prototype,"menuWidth",2);k=z([
|
|
1837
|
+
`;z([a({type:Array,reflect:!0})],k.prototype,"options",2);z([a({type:String,reflect:!0})],k.prototype,"value",2);z([a({type:String,reflect:!0})],k.prototype,"name",2);z([a({type:String,reflect:!0})],k.prototype,"additionaltext",2);z([a({type:Boolean,reflect:!0})],k.prototype,"disabled",2);z([a({type:String,reflect:!0})],k.prototype,"width",2);z([K()],k.prototype,"open",2);z([K()],k.prototype,"activeIndex",2);z([K()],k.prototype,"menuWidth",2);k=z([w("o-dropdown-variant")],k);/**
|
|
1785
1838
|
* @license
|
|
1786
1839
|
* Copyright 2018 Google LLC
|
|
1787
1840
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
@@ -1791,7 +1844,7 @@
|
|
|
1791
1844
|
<h3 class="a-reassurance-text">${_(this.option.title)}</h3>
|
|
1792
1845
|
<p class="a-reassurance-description">${_(this.option.description)}</p>
|
|
1793
1846
|
</div>
|
|
1794
|
-
`;return o?l`<a href="${_(this.option.url)}" class="reassurance-item clickable">${e}</a>`:l`<div class="reassurance-item">${e}</div>`}};ht.styles=
|
|
1847
|
+
`;return o?l`<a href="${_(this.option.url)}" class="reassurance-item clickable">${e}</a>`:l`<div class="reassurance-item">${e}</div>`}};ht.styles=m`
|
|
1795
1848
|
:host {
|
|
1796
1849
|
display: inline-block;
|
|
1797
1850
|
position: relative;
|
|
@@ -1872,7 +1925,7 @@
|
|
|
1872
1925
|
overflow: hidden;
|
|
1873
1926
|
}
|
|
1874
1927
|
}
|
|
1875
|
-
`;Ft([a({type:Object,reflect:!0})],ht.prototype,"option",2);Ft([a({type:Number,reflect:!0})],ht.prototype,"imageSize",2);ht=Ft([
|
|
1928
|
+
`;Ft([a({type:Object,reflect:!0})],ht.prototype,"option",2);Ft([a({type:Number,reflect:!0})],ht.prototype,"imageSize",2);ht=Ft([w("o-reassurance")],ht);var Uo=Object.defineProperty,Fo=Object.getOwnPropertyDescriptor,M=(o,t,e,n)=>{for(var i=n>1?void 0:n?Fo(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};const No=Dt(f);let A=class extends No{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`
|
|
1876
1929
|
<a href="${this.link}" class="o-chip" tabindex="${this.inactive?"-1":"0"}" aria-hidden="${this.inactive?"true":"false"}">
|
|
1877
1930
|
${o?this.text:l`<slot></slot>`}
|
|
1878
1931
|
</a>
|
|
@@ -1881,7 +1934,7 @@
|
|
|
1881
1934
|
aria-label=${this.ariaLabel} aria-pressed=${this.selected}>
|
|
1882
1935
|
${o?this.text:l`<slot></slot>`}
|
|
1883
1936
|
</button>
|
|
1884
|
-
`}};A.styles=
|
|
1937
|
+
`}};A.styles=m`
|
|
1885
1938
|
:host {
|
|
1886
1939
|
cursor: pointer;
|
|
1887
1940
|
display: inline-flex;
|
|
@@ -1970,16 +2023,16 @@
|
|
|
1970
2023
|
display: inline-flex;
|
|
1971
2024
|
align-items: center;
|
|
1972
2025
|
}
|
|
1973
|
-
`;M([a({type:String,reflect:!0})],A.prototype,"link",2);M([a({reflect:!0})],A.prototype,"name",2);M([a({reflect:!0})],A.prototype,"value",2);M([a({type:String})],A.prototype,"text",2);M([a({type:String,reflect:!0})],A.prototype,"size",2);M([a({type:Boolean,reflect:!0})],A.prototype,"selected",2);M([a({type:Boolean,reflect:!0})],A.prototype,"fullwidth",2);M([a({type:Boolean,reflect:!0})],A.prototype,"inactive",2);A=M([
|
|
2026
|
+
`;M([a({type:String,reflect:!0})],A.prototype,"link",2);M([a({reflect:!0})],A.prototype,"name",2);M([a({reflect:!0})],A.prototype,"value",2);M([a({type:String})],A.prototype,"text",2);M([a({type:String,reflect:!0})],A.prototype,"size",2);M([a({type:Boolean,reflect:!0})],A.prototype,"selected",2);M([a({type:Boolean,reflect:!0})],A.prototype,"fullwidth",2);M([a({type:Boolean,reflect:!0})],A.prototype,"inactive",2);A=M([w("o-chip")],A);var Ro=Object.defineProperty,Vo=Object.getOwnPropertyDescriptor,Nt=(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&&Ro(t,e,i),i};let dt=class extends f{constructor(){super(),this.name="",this.value="",this.addEventListener("selected",this.onChipSelected)}onChipSelected(o){const t=o.target instanceof A?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`
|
|
1974
2027
|
<slot></slot>
|
|
1975
|
-
`}};dt.styles=
|
|
2028
|
+
`}};dt.styles=m`
|
|
1976
2029
|
:host {
|
|
1977
2030
|
display: flex;
|
|
1978
2031
|
flex-direction: row;
|
|
1979
2032
|
flex-wrap: wrap;
|
|
1980
2033
|
gap: var(--spacing-s);
|
|
1981
2034
|
}
|
|
1982
|
-
`;Nt([a({reflect:!0})],dt.prototype,"name",2);Nt([a({reflect:!0})],dt.prototype,"value",2);dt=Nt([
|
|
2035
|
+
`;Nt([a({reflect:!0})],dt.prototype,"name",2);Nt([a({reflect:!0})],dt.prototype,"value",2);dt=Nt([w("o-chipset")],dt);var Zo=Object.defineProperty,qo=Object.getOwnPropertyDescriptor,T=(o,t,e,n)=>{for(var i=n>1?void 0:n?qo(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&&Zo(t,e,i),i};const Wo=Dt(f);let L=class extends Wo{constructor(){super(...arguments),this.name="",this.value="",this.type="",this.dataHref="",this.text="",this.selected=!1,this.disabled=!1,this.fullwidth=!1,this.crossIconName="cross",this.strikethroughImgName="strikeDiagonal"}handleClick(o){if(o instanceof KeyboardEvent&&o.key!=="Enter"&&o.key!==" ")return;this.selected=!this.selected;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}crossIcon(){const o=G[this.crossIconName].replace("<svg",'<svg aria-hidden="true" focusable="false" part="svg"').replace(/stroke=[#"'a-z1-9]*/gi,"");return l`<span class="cross-icon">${I(o)}</span>`}strikeThroughImg(){const o=eo[this.strikethroughImgName].replace("<svg",'<svg aria-hidden="true" focusable="false" part="strikethrough"').replace(/stroke=[#"'a-z1-9]*/gi,"");return I(o)}render(){const o=this.text;return l`${this.type==="link"?l`
|
|
1983
2036
|
<a role="button" tabindex="0" class="button" href=${this.dataHref} ?disabled=${this.disabled} @click=${this.handleClick} @keydown=${this.handleClick}
|
|
1984
2037
|
aria-label=${this.ariaLabel} aria-pressed=${this.selected}>
|
|
1985
2038
|
${o?l`
|
|
@@ -1999,7 +2052,7 @@
|
|
|
1999
2052
|
</button>
|
|
2000
2053
|
`}
|
|
2001
2054
|
${this.disabled?this.strikeThroughImg():d}
|
|
2002
|
-
`}};L.styles=
|
|
2055
|
+
`}};L.styles=m`
|
|
2003
2056
|
:host {
|
|
2004
2057
|
cursor: pointer;
|
|
2005
2058
|
display: inline-flex;
|
|
@@ -2124,7 +2177,7 @@
|
|
|
2124
2177
|
stroke-linecap: round;
|
|
2125
2178
|
}
|
|
2126
2179
|
}
|
|
2127
|
-
`;T([a({reflect:!0})],L.prototype,"name",2);T([a({reflect:!0})],L.prototype,"value",2);T([a({type:String,reflect:!0})],L.prototype,"type",2);T([a({type:String,reflect:!0,attribute:"data-href"})],L.prototype,"dataHref",2);T([a({type:String})],L.prototype,"text",2);T([a({type:Boolean,reflect:!0})],L.prototype,"selected",2);T([a({type:Boolean,reflect:!0})],L.prototype,"disabled",2);T([a({type:Boolean,reflect:!0})],L.prototype,"fullwidth",2);L=T([
|
|
2180
|
+
`;T([a({reflect:!0})],L.prototype,"name",2);T([a({reflect:!0})],L.prototype,"value",2);T([a({type:String,reflect:!0})],L.prototype,"type",2);T([a({type:String,reflect:!0,attribute:"data-href"})],L.prototype,"dataHref",2);T([a({type:String})],L.prototype,"text",2);T([a({type:Boolean,reflect:!0})],L.prototype,"selected",2);T([a({type:Boolean,reflect:!0})],L.prototype,"disabled",2);T([a({type:Boolean,reflect:!0})],L.prototype,"fullwidth",2);L=T([w("o-filter-chip")],L);var Ko=Object.defineProperty,R=(o,t,e,n)=>{for(var i=void 0,r=o.length-1,s;r>=0;r--)(s=o[r])&&(i=s(t,e,i)||i);return i&&Ko(t,e,i),i};const Rt=class Rt extends f{constructor(){super(...arguments),this.type="cart | chevron",this.titleProduct="",this.volume="",this.perLiter="",this.mainPrice="",this.imageUrl="https://placehold.co/56x70",this.altImage=""}onClick(){typeof this.onClickTile=="function"&&this.onClickTile()}get icons(){return this.type==="chevron"?l`
|
|
2128
2181
|
<o-icon-button
|
|
2129
2182
|
@click=${this.onClick}
|
|
2130
2183
|
icon="chevronRight"
|
|
@@ -2156,13 +2209,13 @@
|
|
|
2156
2209
|
</div>
|
|
2157
2210
|
${this.icons}
|
|
2158
2211
|
</div>
|
|
2159
|
-
`}};Rt.styles=
|
|
2212
|
+
`}};Rt.styles=m`
|
|
2160
2213
|
.tile {
|
|
2161
2214
|
display: flex;
|
|
2162
2215
|
align-items: center;
|
|
2163
2216
|
justify-content: space-between;
|
|
2164
2217
|
border-radius: var(--radius-xs);
|
|
2165
|
-
background: var(--
|
|
2218
|
+
background: var(--color-container-bg-white);
|
|
2166
2219
|
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
|
|
2167
2220
|
font-family: var(--font-family-loccitane-sans);
|
|
2168
2221
|
height: 70px;
|