@florid-kit/components 0.10.41 → 0.10.43
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/minitile.d.ts +1 -0
- package/components/popin.d.ts +3 -1
- package/index.js +27 -25
- package/index.mjs +80 -72
- package/package.json +1 -1
package/components/minitile.d.ts
CHANGED
package/components/popin.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { LitElement } from 'lit';
|
|
2
|
+
import { IconLogicalSize } from '../assets/icons/icons';
|
|
2
3
|
|
|
3
4
|
export declare class OPopin extends LitElement {
|
|
4
5
|
ispagedesigner: boolean;
|
|
@@ -15,7 +16,7 @@ export declare class OPopin extends LitElement {
|
|
|
15
16
|
maxWidth: string;
|
|
16
17
|
showBackButton: boolean;
|
|
17
18
|
contrast: boolean;
|
|
18
|
-
iconSize:
|
|
19
|
+
iconSize: IconLogicalSize;
|
|
19
20
|
hideHeaderOnScroll: boolean;
|
|
20
21
|
private _labelId;
|
|
21
22
|
private _headerHidden;
|
|
@@ -28,6 +29,7 @@ export declare class OPopin extends LitElement {
|
|
|
28
29
|
private _setupScrollListener;
|
|
29
30
|
private _removeScrollListener;
|
|
30
31
|
private _onBackClick;
|
|
32
|
+
private _resolvedIconSize;
|
|
31
33
|
private _requestClose;
|
|
32
34
|
private _renderCloseButton;
|
|
33
35
|
private _renderBackButton;
|
package/index.js
CHANGED
|
@@ -176,7 +176,7 @@
|
|
|
176
176
|
* @license
|
|
177
177
|
* Copyright 2017 Google LLC
|
|
178
178
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
179
|
-
*/class Nt extends Ut{}Nt.directiveName="unsafeSVG",Nt.resultType=2;const
|
|
179
|
+
*/class Nt extends Ut{}Nt.directiveName="unsafeSVG",Nt.resultType=2;const E=te(Nt);/**
|
|
180
180
|
* @license
|
|
181
181
|
* Copyright 2020 Google LLC
|
|
182
182
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
@@ -191,7 +191,7 @@
|
|
|
191
191
|
*/const P=o=>o??d;var No=Object.defineProperty,qo=Object.getOwnPropertyDescriptor,R=(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&&No(t,e,i),i};let B=class extends u{constructor(){super(...arguments),this.bgstyle="background-light",this.size="medium",this.status="empty",this.type="button",this.strokewidth="1",this.icon="",this.disabled=!1,this.showSrLabel=!1,this.srLabel=""}updated(o){super.updated(o),this.style.setProperty("--icon-stroke-width",this.strokewidth)}render(){if(!this.icon)return d;const{svg:o,pixelSize:t,shouldApplyLogicalSize:e}=zo(this.icon,{size:this.size,bgstyle:this.bgstyle}),n=`icon-${this.icon}`,i=e?` width="${t}" height="${t}"`:"",r=o.replace("<svg",`<svg aria-hidden="true" focusable="false" part="svg"${i}`).replace(/<path\b/g,'<path part="icon-path"').replace(/<g\b/g,'<g part="icon-group"').replace(/<circle\b/g,'<circle part="icon-circle"'),s=this.showSrLabel?l`<span class="sr-only">${this.srLabel}</span>`:null,c=this.showSrLabel?null:"icon";return l`
|
|
192
192
|
${this.type==="span"?l`
|
|
193
193
|
<span class="icon icon-button ${this.size} ${this.bgstyle} ${this.status} ${n}" ?disabled="${this.disabled}">
|
|
194
|
-
${
|
|
194
|
+
${E(r)}
|
|
195
195
|
</span>
|
|
196
196
|
`:l`
|
|
197
197
|
<button
|
|
@@ -201,7 +201,7 @@
|
|
|
201
201
|
class="icon-button ${this.size} ${this.bgstyle} ${this.status} ${n}"
|
|
202
202
|
?disabled="${this.disabled}"
|
|
203
203
|
>
|
|
204
|
-
${
|
|
204
|
+
${E(r)}
|
|
205
205
|
${s}
|
|
206
206
|
</button>
|
|
207
207
|
`}
|
|
@@ -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 Ko=Object.defineProperty,Wo=Object.getOwnPropertyDescriptor,_=(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};const Go=Jt(u);let m=class extends Go{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=et[t].replace("<svg",'<svg aria-hidden="true" focusable="false" part="svg"');return l`<span class="${o==="start"?"icon-start":"icon-end"}">${
|
|
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 Ko=Object.defineProperty,Wo=Object.getOwnPropertyDescriptor,_=(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};const Go=Jt(u);let m=class extends Go{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=et[t].replace("<svg",'<svg aria-hidden="true" focusable="false" part="svg"');return l`<span class="${o==="start"?"icon-start":"icon-end"}">${E(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}
|
|
@@ -947,7 +947,7 @@
|
|
|
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 Xo=Object.defineProperty,Yo=Object.getOwnPropertyDescriptor,It=(o,t,e,n)=>{for(var i=n>1?void 0:n?Yo(t,e):t,r=o.length-1,s;r>=0;r--)(s=o[r])&&(i=(n?s(t,e,i):s(i))||i);return n&&i&&Xo(t,e,i),i};let pt=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=et.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
|
+
${E(o)}
|
|
951
951
|
</button>
|
|
952
952
|
`}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()}};pt.styles=f`
|
|
953
953
|
:host {
|
|
@@ -1121,7 +1121,7 @@
|
|
|
1121
1121
|
`;lt([a({type:String})],Z.prototype,"href",2);lt([a({type:String})],Z.prototype,"target",2);lt([a({type:String,reflect:!0})],Z.prototype,"template",2);lt([a({type:Boolean,reflect:!0})],Z.prototype,"inverse",2);lt([a({type:Boolean,reflect:!0})],Z.prototype,"endIcon",2);lt([a({type:Boolean,reflect:!0})],Z.prototype,"reverseEndIcon",2);Z=lt([y("o-link")],Z);var ti=Object.defineProperty,ei=Object.getOwnPropertyDescriptor,Dt=(o,t,e,n)=>{for(var i=n>1?void 0:n?ei(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&&ti(t,e,i),i};let ut=class extends u{constructor(){super(...arguments),this.rating=0}getStarKeys(){const o=[];for(let t=0;t<5;t++){const e=this.rating-t;let n;e>=1?n=100:e<=0?n=0:n=Math.round(e*100/25)*25,o.push(`star-${n}`)}return o}render(){const o=this.getStarKeys();return l`
|
|
1122
1122
|
<div class="rating">
|
|
1123
1123
|
<div class="stars">
|
|
1124
|
-
${o.map(t=>l`<span class="star">${
|
|
1124
|
+
${o.map(t=>l`<span class="star">${E(et[t]??"")}</span>`)}
|
|
1125
1125
|
</div>
|
|
1126
1126
|
${this.reviewCount!=null&&this.href!=null?l`<o-link template="review" href="${this.href}">${this.reviewCount}</o-link>`:null}
|
|
1127
1127
|
</div>
|
|
@@ -1446,7 +1446,7 @@
|
|
|
1446
1446
|
border-color: transparent var(--color-alpha-dark-strongest) transparent transparent;
|
|
1447
1447
|
}
|
|
1448
1448
|
|
|
1449
|
-
`;ie([a({type:String,reflect:!0})],kt.prototype,"type",2);ie([a({type:String,reflect:!0})],kt.prototype,"text",2);kt=ie([y("o-tooltip")],kt);var li=Object.defineProperty,ci=Object.getOwnPropertyDescriptor,G=(o,t,e,n)=>{for(var i=n>1?void 0:n?ci(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&&li(t,e,i),i};let
|
|
1449
|
+
`;ie([a({type:String,reflect:!0})],kt.prototype,"type",2);ie([a({type:String,reflect:!0})],kt.prototype,"text",2);kt=ie([y("o-tooltip")],kt);var li=Object.defineProperty,ci=Object.getOwnPropertyDescriptor,G=(o,t,e,n)=>{for(var i=n>1?void 0:n?ci(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&&li(t,e,i),i};let M=class extends u{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=et.checkstroke.replace("<svg",'<svg aria-hidden="true" focusable="false" part="svg"'),t=this.options.find(e=>e.value===this.value);return l`
|
|
1450
1450
|
<button
|
|
1451
1451
|
role="combobox"
|
|
1452
1452
|
aria-haspopup="listbox"
|
|
@@ -1486,15 +1486,15 @@
|
|
|
1486
1486
|
${e.url?l`
|
|
1487
1487
|
<a href="${e.url}">
|
|
1488
1488
|
<span>${e.label}</span>
|
|
1489
|
-
${e.value===this.value?l`<span class="check">${
|
|
1489
|
+
${e.value===this.value?l`<span class="check">${E(o)}</span>`:null}
|
|
1490
1490
|
</a>`:l`
|
|
1491
1491
|
<span>${e.label}</span>
|
|
1492
|
-
${e.value===this.value?l`<span class="check">${
|
|
1492
|
+
${e.value===this.value?l`<span class="check">${E(o)}</span>`:null}`}
|
|
1493
1493
|
</li>`)}
|
|
1494
1494
|
</ul>`:null}
|
|
1495
1495
|
|
|
1496
1496
|
<input type="hidden" name="${this.name}" .value="${this.value}" />
|
|
1497
|
-
`}};
|
|
1497
|
+
`}};M.styles=f`
|
|
1498
1498
|
:host {
|
|
1499
1499
|
display: inline-block;
|
|
1500
1500
|
position: relative;
|
|
@@ -1632,7 +1632,7 @@
|
|
|
1632
1632
|
input[type="hidden"] {
|
|
1633
1633
|
display: none;
|
|
1634
1634
|
}
|
|
1635
|
-
`;G([a({type:Array,reflect:!0})],
|
|
1635
|
+
`;G([a({type:Array,reflect:!0})],M.prototype,"options",2);G([a({type:String,reflect:!0})],M.prototype,"value",2);G([a({type:String,reflect:!0})],M.prototype,"name",2);G([a({type:Boolean,reflect:!0})],M.prototype,"disabled",2);G([a({type:String,reflect:!0})],M.prototype,"width",2);G([W()],M.prototype,"open",2);G([W()],M.prototype,"activeIndex",2);G([W()],M.prototype,"menuWidth",2);M=G([y("o-dropdown")],M);var hi=Object.getOwnPropertyDescriptor,di=(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=s(i)||i);return i};let qt=class extends u{render(){return l` <span class="dots"></span> `}};qt.styles=f`
|
|
1636
1636
|
:host {
|
|
1637
1637
|
display: flex;
|
|
1638
1638
|
align-items: center;
|
|
@@ -1728,7 +1728,7 @@
|
|
|
1728
1728
|
<div class="right">
|
|
1729
1729
|
<span class="additional-text">${P(e.additionaltext)}</span>
|
|
1730
1730
|
${e.value===this.value&&!e.additionaltext?l`
|
|
1731
|
-
<span class="check">${
|
|
1731
|
+
<span class="check">${E(o)}</span>`:null}
|
|
1732
1732
|
</div>
|
|
1733
1733
|
</a>
|
|
1734
1734
|
</li>
|
|
@@ -2115,7 +2115,7 @@
|
|
|
2115
2115
|
flex-wrap: wrap;
|
|
2116
2116
|
gap: var(--spacing-s);
|
|
2117
2117
|
}
|
|
2118
|
-
`;re([a({reflect:!0})],Ct.prototype,"name",2);re([a({reflect:!0})],Ct.prototype,"value",2);Ct=re([y("o-chipset")],Ct);var ki=Object.defineProperty,_i=Object.getOwnPropertyDescriptor,N=(o,t,e,n)=>{for(var i=n>1?void 0:n?_i(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&&ki(t,e,i),i};const Ci=Jt(u);let I=class extends Ci{constructor(){super(...arguments),this.name="",this.value="",this.type="",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=et[this.crossIconName].replace("<svg",'<svg aria-hidden="true" focusable="false" part="svg"').replace(/stroke=[#"'a-z1-9]*/gi,"");return l`<span class="cross-icon">${
|
|
2118
|
+
`;re([a({reflect:!0})],Ct.prototype,"name",2);re([a({reflect:!0})],Ct.prototype,"value",2);Ct=re([y("o-chipset")],Ct);var ki=Object.defineProperty,_i=Object.getOwnPropertyDescriptor,N=(o,t,e,n)=>{for(var i=n>1?void 0:n?_i(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&&ki(t,e,i),i};const Ci=Jt(u);let I=class extends Ci{constructor(){super(...arguments),this.name="",this.value="",this.type="",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=et[this.crossIconName].replace("<svg",'<svg aria-hidden="true" focusable="false" part="svg"').replace(/stroke=[#"'a-z1-9]*/gi,"");return l`<span class="cross-icon">${E(o)}</span>`}strikeThroughImg(){const o=Oo[this.strikethroughImgName].replace("<svg",'<svg aria-hidden="true" focusable="false" part="strikethrough"').replace(/stroke=[#"'a-z1-9]*/gi,"");return E(o)}render(){const o=this.text;return l`${this.type==="link"?l`
|
|
2119
2119
|
<a role="button" tabindex="0" class="button" href=${this.href} ?disabled=${this.disabled} @click=${this.handleClick} @keydown=${this.handleClick}
|
|
2120
2120
|
aria-label=${this.ariaLabel||d} aria-pressed=${this.selected}>
|
|
2121
2121
|
${o?l`
|
|
@@ -2257,7 +2257,7 @@
|
|
|
2257
2257
|
stroke-width: 4px;
|
|
2258
2258
|
stroke-linecap: round;
|
|
2259
2259
|
}
|
|
2260
|
-
`;N([a({reflect:!0})],I.prototype,"name",2);N([a({reflect:!0})],I.prototype,"value",2);N([a({type:String,reflect:!0})],I.prototype,"type",2);N([a({type:String,reflect:!0})],I.prototype,"href",2);N([a({type:String,reflect:!0,attribute:"data-href"})],I.prototype,"dataHref",2);N([a({type:String})],I.prototype,"text",2);N([a({type:Boolean,reflect:!0})],I.prototype,"selected",2);N([a({type:Boolean,reflect:!0})],I.prototype,"disabled",2);N([a({type:Boolean,reflect:!0})],I.prototype,"fullwidth",2);I=N([y("o-filter-chip")],I);var Si=Object.defineProperty,
|
|
2260
|
+
`;N([a({reflect:!0})],I.prototype,"name",2);N([a({reflect:!0})],I.prototype,"value",2);N([a({type:String,reflect:!0})],I.prototype,"type",2);N([a({type:String,reflect:!0})],I.prototype,"href",2);N([a({type:String,reflect:!0,attribute:"data-href"})],I.prototype,"dataHref",2);N([a({type:String})],I.prototype,"text",2);N([a({type:Boolean,reflect:!0})],I.prototype,"selected",2);N([a({type:Boolean,reflect:!0})],I.prototype,"disabled",2);N([a({type:Boolean,reflect:!0})],I.prototype,"fullwidth",2);I=N([y("o-filter-chip")],I);var Si=Object.defineProperty,H=(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&&Si(t,e,i),i};const ae=class ae extends u{constructor(){super(...arguments),this.type="cart | chevron",this.titleProduct="",this.volume="",this.perLiter="",this.mainPrice="",this.imageUrl="https://placehold.co/56x70",this.altImage="",this.fullwidth=!1,this.tagText="",this.outOfStock=!1}onClick(t){var n,i,r;const e=t.target;(n=e==null?void 0:e.classList)!=null&&n.contains("add-to-bag")||(i=e==null?void 0:e.classList)!=null&&i.contains("js-availability-notify-details-cart")||((r=this.onClickTile)==null||r.call(this),this.dispatchEvent(new CustomEvent("tile-click",{bubbles:!0,composed:!0})))}onClickIcons(){var t;(t=this.onClickIcon)==null||t.call(this),this.dispatchEvent(new CustomEvent("tile-icon-click",{bubbles:!0,composed:!0}))}get icons(){return this.type==="chevron"?l`
|
|
2261
2261
|
<o-icon-button
|
|
2262
2262
|
@click=${this.onClickIcons}
|
|
2263
2263
|
icon="chevronRight"
|
|
@@ -2273,13 +2273,13 @@
|
|
|
2273
2273
|
`:l`
|
|
2274
2274
|
<o-icon-button
|
|
2275
2275
|
@click=${this.onClickIcons}
|
|
2276
|
-
icon
|
|
2276
|
+
icon=${this.outOfStock?"notifyme":"cart"}
|
|
2277
2277
|
size="small"
|
|
2278
2278
|
bgstyle="background-contrast"
|
|
2279
2279
|
type="span"
|
|
2280
2280
|
status="empty"
|
|
2281
2281
|
strokewidth="0"
|
|
2282
|
-
class
|
|
2282
|
+
class=${this.outOfStock?"js-availability-notify-details-cart":"add-to-bag"}
|
|
2283
2283
|
></o-icon-button>
|
|
2284
2284
|
`}render(){return l`
|
|
2285
2285
|
<button
|
|
@@ -2289,7 +2289,9 @@
|
|
|
2289
2289
|
>
|
|
2290
2290
|
${this.imageUrl?l`<img src="${this.imageUrl}" alt="${this.altImage||""}" />`:""}
|
|
2291
2291
|
<div class="info">
|
|
2292
|
-
${this.
|
|
2292
|
+
${this.outOfStock?l`<o-tag type="nostock" role="status" aria-live="polite"
|
|
2293
|
+
>${this.tagText}</o-tag
|
|
2294
|
+
>`:this.tagText?l`<o-tag bgstyle="background-emphasis">${this.tagText}</o-tag>`:""}
|
|
2293
2295
|
${this.titleProduct?l`<div class="title">${this.titleProduct}</div>`:""}
|
|
2294
2296
|
<div class="details">
|
|
2295
2297
|
${this.volume?l`<span class="volume-info">${this.volume}</span>`:""}
|
|
@@ -2411,7 +2413,7 @@
|
|
|
2411
2413
|
.fullpointer {
|
|
2412
2414
|
cursor: pointer;
|
|
2413
2415
|
}
|
|
2414
|
-
`;let
|
|
2416
|
+
`;let S=ae;H([a({type:String})],S.prototype,"type");H([a({type:String})],S.prototype,"titleProduct");H([a({type:String})],S.prototype,"volume");H([a({type:String})],S.prototype,"perLiter");H([a({type:String})],S.prototype,"mainPrice");H([a({type:String})],S.prototype,"imageUrl");H([a({type:String})],S.prototype,"altImage");H([a({type:Boolean})],S.prototype,"fullwidth");H([a({type:String})],S.prototype,"tagText");H([a({type:Boolean})],S.prototype,"outOfStock");H([a({attribute:!1})],S.prototype,"onClickTile");H([a({attribute:!1})],S.prototype,"onClickIcon");customElements.define("mini-tile",S);var Ei=Object.defineProperty,Ai=Object.getOwnPropertyDescriptor,Ht=(o,t,e,n)=>{for(var i=n>1?void 0:n?Ai(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&&Ei(t,e,i),i};let ft=class extends u{constructor(){super(...arguments),this.variant="cart",this.text=0,this.srlabel=""}render(){return l`
|
|
2415
2417
|
<span class="badge">
|
|
2416
2418
|
${this.text?l`${this.text} <span class="sr-only">${this.srlabel}</span>`:l`<slot></slot>`}
|
|
2417
2419
|
</span>
|
|
@@ -2452,10 +2454,10 @@
|
|
|
2452
2454
|
.sr-only {
|
|
2453
2455
|
${Xt}
|
|
2454
2456
|
}
|
|
2455
|
-
`;Ht([a({type:String,reflect:!0})],ft.prototype,"variant",2);Ht([a({type:Number})],ft.prototype,"text",2);Ht([a({type:String})],ft.prototype,"srlabel",2);ft=Ht([y("o-badge")],ft);var Li=Object.defineProperty,Pi=Object.getOwnPropertyDescriptor,
|
|
2457
|
+
`;Ht([a({type:String,reflect:!0})],ft.prototype,"variant",2);Ht([a({type:Number})],ft.prototype,"text",2);Ht([a({type:String})],ft.prototype,"srlabel",2);ft=Ht([y("o-badge")],ft);var Li=Object.defineProperty,Pi=Object.getOwnPropertyDescriptor,T=(o,t,e,n)=>{for(var i=n>1?void 0:n?Pi(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&&Li(t,e,i),i};let A=class extends u{constructor(){super(...arguments),this.icon="info",this.text="Sample text",this.verticalanchor="top",this.horizontalanchor="right",this.verticaloffset=24,this.horizontaloffset=24,this.animationduration=500,this.animationaxis="horizontal",this.animated=!0,this.lifeduration=5e3,this.multiline=!1}attributeChangedCallback(o,t,e){super.attributeChangedCallback(o,t,e),o=="verticaloffset"&&this.style.setProperty("--vertical-offset",e+"px"),o=="horizontaloffset"&&this.style.setProperty("--horizontal-offset",e+"px"),o=="animationduration"&&this.style.setProperty("--animation-duration",e+"ms")}selfCloseAfterDelay(){var o=this;setTimeout(function(){o.animated=!0,o.selfClose()},this.lifeduration)}selfClose(){var o=this;setTimeout(function(){o.remove()},this.animationduration+200)}connectedCallback(){var o=this;super.connectedCallback(),setTimeout(()=>{o.animated=!1,this.selfCloseAfterDelay()},600)}firstUpdated(){var n,i;var o=this;const t=(n=this.renderRoot)==null?void 0:n.querySelector("o-icon-button"),e=(i=this.renderRoot)==null?void 0:i.querySelector(".o-toast-text");if(e!=null){const r=window.getComputedStyle(e),s=parseInt(r.getPropertyValue("line-height").replace("px","")),c=parseInt(r.getPropertyValue("height").replace("px",""));!isNaN(s)&&!isNaN(c)&&c>s&&(this.multiline=!0)}t!=null&&t.addEventListener("click",function(){o.remove()})}render(){const t=Io[this.icon].replace("<svg",'<svg aria-hidden="true" focusable="false" part="svg"').replace(/<path\b/g,'<path part="icon-path"').replace(/<g\b/g,'<g part="icon-group"').replace(/<circle\b/g,'<circle part="icon-circle"');return l`
|
|
2456
2458
|
<div class="o-toast">
|
|
2457
2459
|
<div class="o-toast-icon">
|
|
2458
|
-
${
|
|
2460
|
+
${E(t)}
|
|
2459
2461
|
</div>
|
|
2460
2462
|
<div class="o-toast-text">
|
|
2461
2463
|
${this.text}
|
|
@@ -2545,7 +2547,7 @@
|
|
|
2545
2547
|
.o-toast-icon {
|
|
2546
2548
|
height: 16px;
|
|
2547
2549
|
}
|
|
2548
|
-
`;
|
|
2550
|
+
`;T([a({type:String,reflect:!0})],A.prototype,"icon",2);T([a({type:String,reflect:!0})],A.prototype,"text",2);T([a({type:String,reflect:!0})],A.prototype,"verticalanchor",2);T([a({type:String,reflect:!0})],A.prototype,"horizontalanchor",2);T([a({type:Number,reflect:!0})],A.prototype,"verticaloffset",2);T([a({type:Number,reflect:!0})],A.prototype,"horizontaloffset",2);T([a({type:Number,reflect:!0})],A.prototype,"animationduration",2);T([a({type:String,reflect:!0})],A.prototype,"animationaxis",2);T([a({type:Boolean,reflect:!0})],A.prototype,"animated",2);T([a({type:Number,reflect:!0})],A.prototype,"lifeduration",2);T([a({type:Boolean,reflect:!0})],A.prototype,"multiline",2);A=T([y("o-toast")],A);var Bi=Object.defineProperty,zi=Object.getOwnPropertyDescriptor,j=(o,t,e,n)=>{for(var i=n>1?void 0:n?zi(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 Oi=0,L=class extends u{constructor(){super(),this.checked=!1,this.indeterminate=!1,this.disabled=!1,this.size="S",this.showLabel=!0,this.label="Checkbox",this.name="",this.value="on",this.inputId="",this.inputId||(this.inputId=`o-checkbox-${++Oi}`)}toggle(){this.disabled||(this.indeterminate?(this.indeterminate=!1,this.checked=!0):this.checked=!this.checked,this.syncInput(),this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0})))}syncInput(){this.inputEl&&(this.inputEl.checked=this.checked,this.inputEl.indeterminate=this.indeterminate)}updated(o){this.syncInput()}handleKeyDown(o){this.disabled||(o.key===" "||o.key==="Enter")&&(o.preventDefault(),this.toggle())}render(){const o=E(et.checkbox.replace("<svg",'<svg aria-hidden="true" focusable="false" part="svg"')),t=E(et.icoMinus.replace("<svg",'<svg class="indeterminate" aria-hidden="true" focusable="false" part="svg"'));return l`
|
|
2549
2551
|
<input
|
|
2550
2552
|
type="checkbox"
|
|
2551
2553
|
id=${this.inputId}
|
|
@@ -3003,11 +3005,11 @@
|
|
|
3003
3005
|
d="m 1237.15,72.3984 c -3.61,1.5625 -7.64,0.6211 -10.76,-1.5898 -3.47,-2.4688 -6.01,-6.207 -8.42,-9.6484 l -2.61,-3.7305 c -3.58,-5.1094 -9.55,-13.6992 -12.29,-16.1094 -5.74,-5.1289 -9.34,-6.6094 -53,-6.6094 -33.15,0 -37.81,0.9883 -43.8,4.1602 -5.52,2.7891 -7.77,10.7773 -7.77,13.6484 0,3.3594 -0.2,14.711 -0.45,28.7422 -0.39,22.6093 -0.93,52.2383 -0.93,66.5083 v 2.082 c 61.53,-0.032 57.15,-0.524 65,-2.762 2.14,-0.75 4.31,-3.918 6.04,-9.07 0,0 1.62,-4.02 1.63,-4.032 1.32,-3.277 2.66,-6.867 5.45,-9.207 3.1,-2.609 8.34,-2.961 11.82,-0.832 2.53,1.551 4.41,4.86 5.34,7.641 1.18,3.469 1.06,7.031 0.47,10.601 -0.42,2.528 -1.65,14.649 -0.88,22.661 0.36,3.359 0.91,7.339 1.4,11.039 0.81,5.937 1.45,11.25 1.45,13.039 0,10.769 -6.83,13.64 -10.87,13.64 -7.45,0 -10.98,-7.148 -12.29,-9.8 -5.17,-10.34 -7.99,-12.258 -8.92,-12.77 -1.75,-1.09 -4.81,-1.93 -26.44,-1.93 h -39.2 v 107.52 c 0,4.422 0.17,7.101 0.34,8.738 15.96,0.774 76.93,0.524 87.71,-1.476 3.62,-0.602 9.08,-1.5 17.68,-21.911 1.36,-3.211 3.03,-6.711 5.7,-9.043 3,-2.609 7.9,-3.558 11.48,-1.648 3.15,1.672 4.77,5.262 5.42,8.621 0.48,2.52 0.57,5.379 0.02,7.899 -1.68,7.71 -2.32,17.339 -2.74,23.718 l -0.42,5.41 c -1.6,9.993 -5.84,15.063 -12.6,15.063 -1.95,0 -3.97,-0.121 -6.59,-0.27 -4.29,-0.261 -10.36,-0.652 -21.14,-0.652 -8.99,0 -29.44,-0.219 -50.5,-0.437 -22.25,-0.231 -45.19,-0.493 -55.89,-0.493 -7.8,0 -14.28,0.411 -20.23,0.77 -5.38,0.32 -10.33,0.621 -15.39,0.621 -8.85,0 -15.02,-4.461 -15.02,-10.859 0,-3.692 1.73,-10.231 13.17,-12.532 11.25,-2.488 15.05,-3.339 15.05,-28.168 0,-97.863 -0.47,-142.242 -2.32,-215.7808 -0.34,-15.5196 -5.21,-19.0821 -18.87,-21.3594 C 1027,30.8984 1016.62,29 1016.62,19.6719 c 0,-1.9727 0.81,-11.80081 16.89,-11.80081 1.95,0 6.58,0.3086 12.45,0.71875 9.5,0.67969 22.45,1.60156 31.94,1.60156 17.71,0 38.65,-0.41015 60.92,-0.83984 25.46,-0.49218 52.62,-1.01172 78.73,-1.01172 4,0 9.62,1.69926 13.67,9.76956 2.26,4.4687 4.54,12.8906 7.15,22.6094 1.18,4.4218 2.39,8.9531 3.55,12.8203 0.89,2.9804 1.73,5.9726 1.57,9.1211 -0.2,3.9804 -2.49,7.9804 -6.34,9.7382" /><path
|
|
3004
3006
|
id="path52"
|
|
3005
3007
|
style="fill:#3F2B2E;fill-opacity:1;fill-rule:nonzero;stroke:none"
|
|
3006
|
-
d="m 1647.15,320.5 c -2.07,0 -4.94,-0.199 -8.49,-0.469 -8.68,-0.64 -23.5,-1.062 -37.41,-0.172 -20.4,1.282 -32.01,-0.589 -32.01,-10.687 0,-8.66 8.46,-10.781 15.19,-12.461 11.42,-2.949 17.17,-4.422 17.17,-27.402 l 0.93,-77.731 c 0.5,-38.668 1.03,-80.199 1.26,-103.4296 -51.33,57.4726 -160.86,181.7736 -188.51,217.5116 -6.78,8.68 -10.53,13.449 -17.38,13.449 -9.28,0 -20.13,0.743 -29.55,1.379 -7.55,0.5 -14.21,0.934 -18.55,0.934 -12.43,0 -18.72,-3.953 -18.72,-11.781 0,-10.34 10.9,-11.911 15.93,-12.621 10.36,-1.731 14.33,-3.668 18.82,-7.11 2.1,-1.629 5.01,-3.879 5.01,-26.988 0,-29.461 -3.75,-186.1837 -5.06,-201.8126 -2.12,-24.4688 -4.58,-25.168 -18.72,-29.1485 -6.17,-1.6718 -14.6,-3.9609 -14.6,-12.7421 0,-5.1797 2.84,-11.34771 16.4,-11.34771 1.21,0 3.75,0.23829 7.15,0.61719 11.38,1.22266 33.32,1.64062 46.82,0.3125 25.84,-2.53125 30.46,3.93752 30.46,10.41802 0,9.3593 -9.18,11.8515 -14.53,13.3203 -8.73,2.4922 -15.61,6.5195 -17.27,10.1992 -3.05,6.5234 -4.31,16.8515 -4.31,35.6719 0,10.1093 0.37,54.9488 0.74,98.9808 0.25,28.839 0.47,57.359 0.59,75.558 25.28,-29.508 56.38,-65.5 86.72,-100.609 49.5,-57.2697 96.26,-111.3712 113.23,-132.09 l 1.93,-2.3516 c 3.93,-4.8203 7.75,-9.97652 12.34,-14.19918 3.35,-3.089845 8.47,-4.83985 12.86,-2.871095 3.52,1.570315 5.52,5.300785 6.26,8.941405 0.88,4.26177 0.44,8.69927 0.28,13.01177 -0.59,15.3281 -0.42,31.5898 -0.25,52.0703 0.12,12.1172 0.25,25.7184 0.25,41.4684 0,49.141 1.03,147.141 2.98,161.66 1.58,10.52 2.25,14.879 14.31,18.891 l 2.09,0.75 c 4.07,1.41 11.6,4.027 11.6,12.02 0,4.949 -2.76,10.859 -15.96,10.859" /></g></g></svg>`;var qi=Object.defineProperty,Vi=Object.getOwnPropertyDescriptor,C=(o,t,e,n)=>{for(var i=n>1?void 0:n?Vi(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&&qi(t,e,i),i};const le=class le extends u{constructor(){super(...arguments),this.ispagedesigner=!1,this._classPopin="",this.open=!1,this.background="",this.backgroundUrl="",this.closeOnEsc=!0,this.closeOnBackdrop=!0,this.lockScroll=!0,this.variant="fullscreen",this.maxWidth="640px",this.showBackButton=!1,this.contrast=!1,this.iconSize="large",this.hideHeaderOnScroll=!1,this._labelId=`title-${Math.random().toString(36).slice(2)}`,this._headerHidden=!1,this._onBackdropClick=t=>{var n;if(!this.open||!this.closeOnBackdrop)return;const e=t.composedPath()[0];(n=e==null?void 0:e.classList)!=null&&n.contains("backdrop")&&this._requestClose("backdrop")},this._onScroll=t=>{if(!this.hideHeaderOnScroll||!this.open)return;const i=t.target.scrollTop>50;i!==this._headerHidden&&(this._headerHidden=i,this.requestUpdate())}}get classPopin(){return this.ispagedesigner?"pagedesigner-popin "+this._classPopin:this._classPopin}set classPopin(t){this._classPopin=t}connectedCallback(){super.connectedCallback(),this._onKeydown=this._onKeydown.bind(this),this._onScroll=this._onScroll.bind(this),document.addEventListener("keydown",this._onKeydown)}disconnectedCallback(){document.removeEventListener("keydown",this._onKeydown),this._removeScrollListener(),super.disconnectedCallback()}updated(t){if(t.has("background")||t.has("backgroundUrl")){let e="";this.background&&this.background.trim()?e=this.background.trim():this.backgroundUrl&&this.backgroundUrl.trim()&&(e=`url('${this.backgroundUrl.trim()}') center/cover no-repeat`),this.style.setProperty("--_bg",e)}if(t.has("open")){if(this.lockScroll){const e=document==null?void 0:document.body;e&&(e.style.overflow=this.open&&!this.ispagedesigner?"hidden":"")}this.open?this.updateComplete.then(()=>{var n;(n=this.renderRoot.querySelector("[data-close-btn]")??this.renderRoot.querySelector('[role="dialog"]'))==null||n.focus(),this._setupScrollListener(),this.dispatchEvent(new CustomEvent("open",{bubbles:!0,composed:!0}))}):(this._removeScrollListener(),this._headerHidden=!1,this.dispatchEvent(new CustomEvent("close",{bubbles:!0,composed:!0})))}(t.has("hideHeaderOnScroll")||t.has("open"))&&(this.open?this._setupScrollListener():this._removeScrollListener())}_onKeydown(t){this.open&&this.closeOnEsc&&t.key==="Escape"&&(t.preventDefault(),this._requestClose("esc"))}_setupScrollListener(){this.hideHeaderOnScroll&&(this._removeScrollListener(),this.updateComplete.then(()=>{const t=this.renderRoot.querySelector('main[part="body"]');t&&t.addEventListener("scroll",this._onScroll,{passive:!0})}))}_removeScrollListener(){const t=this.renderRoot.querySelector('main[part="body"]');t&&t.removeEventListener("scroll",this._onScroll)}_onBackClick(){this.dispatchEvent(new CustomEvent("back",{bubbles:!0,composed:!0}))}_requestClose(t){const e=new CustomEvent("request-close",{bubbles:!0,composed:!0,detail:{reason:t}});this.dispatchEvent(e),e.defaultPrevented||(this.open=!1)}_renderCloseButton(){return customElements.get("o-icon-button")?l`
|
|
3008
|
+
d="m 1647.15,320.5 c -2.07,0 -4.94,-0.199 -8.49,-0.469 -8.68,-0.64 -23.5,-1.062 -37.41,-0.172 -20.4,1.282 -32.01,-0.589 -32.01,-10.687 0,-8.66 8.46,-10.781 15.19,-12.461 11.42,-2.949 17.17,-4.422 17.17,-27.402 l 0.93,-77.731 c 0.5,-38.668 1.03,-80.199 1.26,-103.4296 -51.33,57.4726 -160.86,181.7736 -188.51,217.5116 -6.78,8.68 -10.53,13.449 -17.38,13.449 -9.28,0 -20.13,0.743 -29.55,1.379 -7.55,0.5 -14.21,0.934 -18.55,0.934 -12.43,0 -18.72,-3.953 -18.72,-11.781 0,-10.34 10.9,-11.911 15.93,-12.621 10.36,-1.731 14.33,-3.668 18.82,-7.11 2.1,-1.629 5.01,-3.879 5.01,-26.988 0,-29.461 -3.75,-186.1837 -5.06,-201.8126 -2.12,-24.4688 -4.58,-25.168 -18.72,-29.1485 -6.17,-1.6718 -14.6,-3.9609 -14.6,-12.7421 0,-5.1797 2.84,-11.34771 16.4,-11.34771 1.21,0 3.75,0.23829 7.15,0.61719 11.38,1.22266 33.32,1.64062 46.82,0.3125 25.84,-2.53125 30.46,3.93752 30.46,10.41802 0,9.3593 -9.18,11.8515 -14.53,13.3203 -8.73,2.4922 -15.61,6.5195 -17.27,10.1992 -3.05,6.5234 -4.31,16.8515 -4.31,35.6719 0,10.1093 0.37,54.9488 0.74,98.9808 0.25,28.839 0.47,57.359 0.59,75.558 25.28,-29.508 56.38,-65.5 86.72,-100.609 49.5,-57.2697 96.26,-111.3712 113.23,-132.09 l 1.93,-2.3516 c 3.93,-4.8203 7.75,-9.97652 12.34,-14.19918 3.35,-3.089845 8.47,-4.83985 12.86,-2.871095 3.52,1.570315 5.52,5.300785 6.26,8.941405 0.88,4.26177 0.44,8.69927 0.28,13.01177 -0.59,15.3281 -0.42,31.5898 -0.25,52.0703 0.12,12.1172 0.25,25.7184 0.25,41.4684 0,49.141 1.03,147.141 2.98,161.66 1.58,10.52 2.25,14.879 14.31,18.891 l 2.09,0.75 c 4.07,1.41 11.6,4.027 11.6,12.02 0,4.949 -2.76,10.859 -15.96,10.859" /></g></g></svg>`;var qi=Object.defineProperty,Vi=Object.getOwnPropertyDescriptor,C=(o,t,e,n)=>{for(var i=n>1?void 0:n?Vi(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&&qi(t,e,i),i};const le=class le extends u{constructor(){super(...arguments),this.ispagedesigner=!1,this._classPopin="",this.open=!1,this.background="",this.backgroundUrl="",this.closeOnEsc=!0,this.closeOnBackdrop=!0,this.lockScroll=!0,this.variant="fullscreen",this.maxWidth="640px",this.showBackButton=!1,this.contrast=!1,this.iconSize="large",this.hideHeaderOnScroll=!1,this._labelId=`title-${Math.random().toString(36).slice(2)}`,this._headerHidden=!1,this._onBackdropClick=t=>{var n;if(!this.open||!this.closeOnBackdrop)return;const e=t.composedPath()[0];(n=e==null?void 0:e.classList)!=null&&n.contains("backdrop")&&this._requestClose("backdrop")},this._onScroll=t=>{if(!this.hideHeaderOnScroll||!this.open)return;const i=t.target.scrollTop>50;i!==this._headerHidden&&(this._headerHidden=i,this.requestUpdate())}}get classPopin(){return this.ispagedesigner?"pagedesigner-popin "+this._classPopin:this._classPopin}set classPopin(t){this._classPopin=t}connectedCallback(){super.connectedCallback(),this._onKeydown=this._onKeydown.bind(this),this._onScroll=this._onScroll.bind(this),document.addEventListener("keydown",this._onKeydown)}disconnectedCallback(){document.removeEventListener("keydown",this._onKeydown),this._removeScrollListener(),super.disconnectedCallback()}updated(t){if(t.has("background")||t.has("backgroundUrl")){let e="";this.background&&this.background.trim()?e=this.background.trim():this.backgroundUrl&&this.backgroundUrl.trim()&&(e=`url('${this.backgroundUrl.trim()}') center/cover no-repeat`),this.style.setProperty("--_bg",e)}if(t.has("open")){if(this.lockScroll){const e=document==null?void 0:document.body;e&&(e.style.overflow=this.open&&!this.ispagedesigner?"hidden":"")}this.open?this.updateComplete.then(()=>{var n;(n=this.renderRoot.querySelector("[data-close-btn]")??this.renderRoot.querySelector('[role="dialog"]'))==null||n.focus(),this._setupScrollListener(),this.dispatchEvent(new CustomEvent("open",{bubbles:!0,composed:!0}))}):(this._removeScrollListener(),this._headerHidden=!1,this.dispatchEvent(new CustomEvent("close",{bubbles:!0,composed:!0})))}(t.has("hideHeaderOnScroll")||t.has("open"))&&(this.open?this._setupScrollListener():this._removeScrollListener())}_onKeydown(t){this.open&&this.closeOnEsc&&t.key==="Escape"&&(t.preventDefault(),this._requestClose("esc"))}_setupScrollListener(){this.hideHeaderOnScroll&&(this._removeScrollListener(),this.updateComplete.then(()=>{const t=this.renderRoot.querySelector('main[part="body"]');t&&t.addEventListener("scroll",this._onScroll,{passive:!0})}))}_removeScrollListener(){const t=this.renderRoot.querySelector('main[part="body"]');t&&t.removeEventListener("scroll",this._onScroll)}_onBackClick(){this.dispatchEvent(new CustomEvent("back",{bubbles:!0,composed:!0}))}_resolvedIconSize(){return["xsmall","small","medium","large"].includes(this.iconSize)?this.iconSize:"large"}_requestClose(t){const e=new CustomEvent("request-close",{bubbles:!0,composed:!0,detail:{reason:t}});this.dispatchEvent(e),e.defaultPrevented||(this.open=!1)}_renderCloseButton(){return customElements.get("o-icon-button")?l`
|
|
3007
3009
|
<o-icon-button
|
|
3008
3010
|
data-close-btn
|
|
3009
3011
|
icon="cross"
|
|
3010
|
-
size="${this.
|
|
3012
|
+
size="${this._resolvedIconSize()}"
|
|
3011
3013
|
bgstyle="none-${this.contrast?"contrast":"light"}"
|
|
3012
3014
|
status="empty"
|
|
3013
3015
|
type="button"
|
|
@@ -3020,7 +3022,7 @@
|
|
|
3020
3022
|
<div part="back">
|
|
3021
3023
|
<o-icon-button
|
|
3022
3024
|
icon="arrowLeft"
|
|
3023
|
-
size="${this.
|
|
3025
|
+
size="${this._resolvedIconSize()}"
|
|
3024
3026
|
status="empty"
|
|
3025
3027
|
class="return-btn"
|
|
3026
3028
|
bgstyle="none-${this.contrast?"contrast":"light"}"
|
|
@@ -3046,7 +3048,7 @@
|
|
|
3046
3048
|
<header part="header" class="${e}">
|
|
3047
3049
|
${this.showBackButton?this._renderBackButton():null}
|
|
3048
3050
|
<div class="brand">
|
|
3049
|
-
<span slot="logo${this.contrast?"-contrast":""}">${
|
|
3051
|
+
<span slot="logo${this.contrast?"-contrast":""}">${E(Ni)}</span>
|
|
3050
3052
|
</div>
|
|
3051
3053
|
<div part="close${this.contrast?"-contrast":""}">${this._renderCloseButton()}</div>
|
|
3052
3054
|
</header>
|
package/index.mjs
CHANGED
|
@@ -888,7 +888,7 @@ Ut.directiveName = "unsafeHTML", Ut.resultType = 1;
|
|
|
888
888
|
class Nt extends Ut {
|
|
889
889
|
}
|
|
890
890
|
Nt.directiveName = "unsafeSVG", Nt.resultType = 2;
|
|
891
|
-
const
|
|
891
|
+
const E = te(Nt);
|
|
892
892
|
/**
|
|
893
893
|
* @license
|
|
894
894
|
* Copyright 2020 Google LLC
|
|
@@ -1104,7 +1104,7 @@ let B = class extends u {
|
|
|
1104
1104
|
return l`
|
|
1105
1105
|
${this.type === "span" ? l`
|
|
1106
1106
|
<span class="icon icon-button ${this.size} ${this.bgstyle} ${this.status} ${n}" ?disabled="${this.disabled}">
|
|
1107
|
-
${
|
|
1107
|
+
${E(r)}
|
|
1108
1108
|
</span>
|
|
1109
1109
|
` : l`
|
|
1110
1110
|
<button
|
|
@@ -1114,7 +1114,7 @@ let B = class extends u {
|
|
|
1114
1114
|
class="icon-button ${this.size} ${this.bgstyle} ${this.status} ${n}"
|
|
1115
1115
|
?disabled="${this.disabled}"
|
|
1116
1116
|
>
|
|
1117
|
-
${
|
|
1117
|
+
${E(r)}
|
|
1118
1118
|
${s}
|
|
1119
1119
|
</button>
|
|
1120
1120
|
`}
|
|
@@ -1982,7 +1982,7 @@ let m = class extends Go {
|
|
|
1982
1982
|
"<svg",
|
|
1983
1983
|
'<svg aria-hidden="true" focusable="false" part="svg"'
|
|
1984
1984
|
);
|
|
1985
|
-
return l`<span class="${o === "start" ? "icon-start" : "icon-end"}">${
|
|
1985
|
+
return l`<span class="${o === "start" ? "icon-start" : "icon-end"}">${E(e)}</span>`;
|
|
1986
1986
|
}
|
|
1987
1987
|
renderButton() {
|
|
1988
1988
|
const o = this.text || this.textsecond;
|
|
@@ -2317,7 +2317,7 @@ let pt = class extends u {
|
|
|
2317
2317
|
return l`
|
|
2318
2318
|
<button type="button" aria-describedby="${this.ariaDescribedBy}" class="wishlist-button">
|
|
2319
2319
|
<span class="sr-only">${this.label}</span>
|
|
2320
|
-
${
|
|
2320
|
+
${E(o)}
|
|
2321
2321
|
</button>
|
|
2322
2322
|
`;
|
|
2323
2323
|
}
|
|
@@ -2576,7 +2576,7 @@ let ut = class extends u {
|
|
|
2576
2576
|
<div class="rating">
|
|
2577
2577
|
<div class="stars">
|
|
2578
2578
|
${o.map(
|
|
2579
|
-
(t) => l`<span class="star">${
|
|
2579
|
+
(t) => l`<span class="star">${E(et[t] ?? "")}</span>`
|
|
2580
2580
|
)}
|
|
2581
2581
|
</div>
|
|
2582
2582
|
${this.reviewCount != null && this.href != null ? l`<o-link template="review" href="${this.href}">${this.reviewCount}</o-link>` : null}
|
|
@@ -3061,7 +3061,7 @@ var li = Object.defineProperty, ci = Object.getOwnPropertyDescriptor, G = (o, t,
|
|
|
3061
3061
|
(s = o[r]) && (i = (n ? s(t, e, i) : s(i)) || i);
|
|
3062
3062
|
return n && i && li(t, e, i), i;
|
|
3063
3063
|
};
|
|
3064
|
-
let
|
|
3064
|
+
let M = class extends u {
|
|
3065
3065
|
constructor() {
|
|
3066
3066
|
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) => {
|
|
3067
3067
|
this.contains(o.target) || (this.open = !1, this.activeIndex = -1);
|
|
@@ -3172,10 +3172,10 @@ let T = class extends u {
|
|
|
3172
3172
|
${e.url ? l`
|
|
3173
3173
|
<a href="${e.url}">
|
|
3174
3174
|
<span>${e.label}</span>
|
|
3175
|
-
${e.value === this.value ? l`<span class="check">${
|
|
3175
|
+
${e.value === this.value ? l`<span class="check">${E(o)}</span>` : null}
|
|
3176
3176
|
</a>` : l`
|
|
3177
3177
|
<span>${e.label}</span>
|
|
3178
|
-
${e.value === this.value ? l`<span class="check">${
|
|
3178
|
+
${e.value === this.value ? l`<span class="check">${E(o)}</span>` : null}`}
|
|
3179
3179
|
</li>`
|
|
3180
3180
|
)}
|
|
3181
3181
|
</ul>` : null}
|
|
@@ -3184,7 +3184,7 @@ let T = class extends u {
|
|
|
3184
3184
|
`;
|
|
3185
3185
|
}
|
|
3186
3186
|
};
|
|
3187
|
-
|
|
3187
|
+
M.styles = f`
|
|
3188
3188
|
:host {
|
|
3189
3189
|
display: inline-block;
|
|
3190
3190
|
position: relative;
|
|
@@ -3325,31 +3325,31 @@ T.styles = f`
|
|
|
3325
3325
|
`;
|
|
3326
3326
|
G([
|
|
3327
3327
|
a({ type: Array, reflect: !0 })
|
|
3328
|
-
],
|
|
3328
|
+
], M.prototype, "options", 2);
|
|
3329
3329
|
G([
|
|
3330
3330
|
a({ type: String, reflect: !0 })
|
|
3331
|
-
],
|
|
3331
|
+
], M.prototype, "value", 2);
|
|
3332
3332
|
G([
|
|
3333
3333
|
a({ type: String, reflect: !0 })
|
|
3334
|
-
],
|
|
3334
|
+
], M.prototype, "name", 2);
|
|
3335
3335
|
G([
|
|
3336
3336
|
a({ type: Boolean, reflect: !0 })
|
|
3337
|
-
],
|
|
3337
|
+
], M.prototype, "disabled", 2);
|
|
3338
3338
|
G([
|
|
3339
3339
|
a({ type: String, reflect: !0 })
|
|
3340
|
-
],
|
|
3340
|
+
], M.prototype, "width", 2);
|
|
3341
3341
|
G([
|
|
3342
3342
|
W()
|
|
3343
|
-
],
|
|
3343
|
+
], M.prototype, "open", 2);
|
|
3344
3344
|
G([
|
|
3345
3345
|
W()
|
|
3346
|
-
],
|
|
3346
|
+
], M.prototype, "activeIndex", 2);
|
|
3347
3347
|
G([
|
|
3348
3348
|
W()
|
|
3349
|
-
],
|
|
3350
|
-
|
|
3349
|
+
], M.prototype, "menuWidth", 2);
|
|
3350
|
+
M = G([
|
|
3351
3351
|
y("o-dropdown")
|
|
3352
|
-
],
|
|
3352
|
+
], M);
|
|
3353
3353
|
var hi = Object.getOwnPropertyDescriptor, di = (o, t, e, n) => {
|
|
3354
3354
|
for (var i = n > 1 ? void 0 : n ? hi(t, e) : t, r = o.length - 1, s; r >= 0; r--)
|
|
3355
3355
|
(s = o[r]) && (i = s(i) || i);
|
|
@@ -3536,7 +3536,7 @@ let z = class extends u {
|
|
|
3536
3536
|
<div class="right">
|
|
3537
3537
|
<span class="additional-text">${P(e.additionaltext)}</span>
|
|
3538
3538
|
${e.value === this.value && !e.additionaltext ? l`
|
|
3539
|
-
<span class="check">${
|
|
3539
|
+
<span class="check">${E(o)}</span>` : null}
|
|
3540
3540
|
</div>
|
|
3541
3541
|
</a>
|
|
3542
3542
|
</li>
|
|
@@ -4114,14 +4114,14 @@ let I = class extends Ci {
|
|
|
4114
4114
|
"<svg",
|
|
4115
4115
|
'<svg aria-hidden="true" focusable="false" part="svg"'
|
|
4116
4116
|
).replace(/stroke=[#"'a-z1-9]*/gi, "");
|
|
4117
|
-
return l`<span class="cross-icon">${
|
|
4117
|
+
return l`<span class="cross-icon">${E(o)}</span>`;
|
|
4118
4118
|
}
|
|
4119
4119
|
strikeThroughImg() {
|
|
4120
4120
|
const o = Oo[this.strikethroughImgName].replace(
|
|
4121
4121
|
"<svg",
|
|
4122
4122
|
'<svg aria-hidden="true" focusable="false" part="strikethrough"'
|
|
4123
4123
|
).replace(/stroke=[#"'a-z1-9]*/gi, "");
|
|
4124
|
-
return
|
|
4124
|
+
return E(o);
|
|
4125
4125
|
}
|
|
4126
4126
|
render() {
|
|
4127
4127
|
const o = this.text;
|
|
@@ -4301,19 +4301,19 @@ N([
|
|
|
4301
4301
|
I = N([
|
|
4302
4302
|
y("o-filter-chip")
|
|
4303
4303
|
], I);
|
|
4304
|
-
var Si = Object.defineProperty,
|
|
4304
|
+
var Si = Object.defineProperty, H = (o, t, e, n) => {
|
|
4305
4305
|
for (var i = void 0, r = o.length - 1, s; r >= 0; r--)
|
|
4306
4306
|
(s = o[r]) && (i = s(t, e, i) || i);
|
|
4307
4307
|
return i && Si(t, e, i), i;
|
|
4308
4308
|
};
|
|
4309
4309
|
const ae = class ae extends u {
|
|
4310
4310
|
constructor() {
|
|
4311
|
-
super(...arguments), this.type = "cart | chevron", this.titleProduct = "", this.volume = "", this.perLiter = "", this.mainPrice = "", this.imageUrl = "https://placehold.co/56x70", this.altImage = "", this.fullwidth = !1, this.tagText = "";
|
|
4311
|
+
super(...arguments), this.type = "cart | chevron", this.titleProduct = "", this.volume = "", this.perLiter = "", this.mainPrice = "", this.imageUrl = "https://placehold.co/56x70", this.altImage = "", this.fullwidth = !1, this.tagText = "", this.outOfStock = !1;
|
|
4312
4312
|
}
|
|
4313
4313
|
onClick(t) {
|
|
4314
|
-
var n, i;
|
|
4314
|
+
var n, i, r;
|
|
4315
4315
|
const e = t.target;
|
|
4316
|
-
(n = e == null ? void 0 : e.classList) != null && n.contains("add-to-bag") || (
|
|
4316
|
+
(n = e == null ? void 0 : e.classList) != null && n.contains("add-to-bag") || (i = e == null ? void 0 : e.classList) != null && i.contains("js-availability-notify-details-cart") || ((r = this.onClickTile) == null || r.call(this), this.dispatchEvent(
|
|
4317
4317
|
new CustomEvent("tile-click", { bubbles: !0, composed: !0 })
|
|
4318
4318
|
));
|
|
4319
4319
|
}
|
|
@@ -4340,13 +4340,13 @@ const ae = class ae extends u {
|
|
|
4340
4340
|
` : l`
|
|
4341
4341
|
<o-icon-button
|
|
4342
4342
|
@click=${this.onClickIcons}
|
|
4343
|
-
icon
|
|
4343
|
+
icon=${this.outOfStock ? "notifyme" : "cart"}
|
|
4344
4344
|
size="small"
|
|
4345
4345
|
bgstyle="background-contrast"
|
|
4346
4346
|
type="span"
|
|
4347
4347
|
status="empty"
|
|
4348
4348
|
strokewidth="0"
|
|
4349
|
-
class
|
|
4349
|
+
class=${this.outOfStock ? "js-availability-notify-details-cart" : "add-to-bag"}
|
|
4350
4350
|
></o-icon-button>
|
|
4351
4351
|
`;
|
|
4352
4352
|
}
|
|
@@ -4359,7 +4359,9 @@ const ae = class ae extends u {
|
|
|
4359
4359
|
>
|
|
4360
4360
|
${this.imageUrl ? l`<img src="${this.imageUrl}" alt="${this.altImage || ""}" />` : ""}
|
|
4361
4361
|
<div class="info">
|
|
4362
|
-
${this.
|
|
4362
|
+
${this.outOfStock ? l`<o-tag type="nostock" role="status" aria-live="polite"
|
|
4363
|
+
>${this.tagText}</o-tag
|
|
4364
|
+
>` : this.tagText ? l`<o-tag bgstyle="background-emphasis">${this.tagText}</o-tag>` : ""}
|
|
4363
4365
|
${this.titleProduct ? l`<div class="title">${this.titleProduct}</div>` : ""}
|
|
4364
4366
|
<div class="details">
|
|
4365
4367
|
${this.volume ? l`<span class="volume-info">${this.volume}</span>` : ""}
|
|
@@ -4485,41 +4487,44 @@ ae.styles = f`
|
|
|
4485
4487
|
cursor: pointer;
|
|
4486
4488
|
}
|
|
4487
4489
|
`;
|
|
4488
|
-
let
|
|
4489
|
-
|
|
4490
|
+
let S = ae;
|
|
4491
|
+
H([
|
|
4490
4492
|
a({ type: String })
|
|
4491
|
-
],
|
|
4492
|
-
|
|
4493
|
+
], S.prototype, "type");
|
|
4494
|
+
H([
|
|
4493
4495
|
a({ type: String })
|
|
4494
|
-
],
|
|
4495
|
-
|
|
4496
|
+
], S.prototype, "titleProduct");
|
|
4497
|
+
H([
|
|
4496
4498
|
a({ type: String })
|
|
4497
|
-
],
|
|
4498
|
-
|
|
4499
|
+
], S.prototype, "volume");
|
|
4500
|
+
H([
|
|
4499
4501
|
a({ type: String })
|
|
4500
|
-
],
|
|
4501
|
-
|
|
4502
|
+
], S.prototype, "perLiter");
|
|
4503
|
+
H([
|
|
4502
4504
|
a({ type: String })
|
|
4503
|
-
],
|
|
4504
|
-
|
|
4505
|
+
], S.prototype, "mainPrice");
|
|
4506
|
+
H([
|
|
4505
4507
|
a({ type: String })
|
|
4506
|
-
],
|
|
4507
|
-
|
|
4508
|
+
], S.prototype, "imageUrl");
|
|
4509
|
+
H([
|
|
4508
4510
|
a({ type: String })
|
|
4509
|
-
],
|
|
4510
|
-
|
|
4511
|
+
], S.prototype, "altImage");
|
|
4512
|
+
H([
|
|
4511
4513
|
a({ type: Boolean })
|
|
4512
|
-
],
|
|
4513
|
-
|
|
4514
|
+
], S.prototype, "fullwidth");
|
|
4515
|
+
H([
|
|
4514
4516
|
a({ type: String })
|
|
4515
|
-
],
|
|
4516
|
-
|
|
4517
|
+
], S.prototype, "tagText");
|
|
4518
|
+
H([
|
|
4519
|
+
a({ type: Boolean })
|
|
4520
|
+
], S.prototype, "outOfStock");
|
|
4521
|
+
H([
|
|
4517
4522
|
a({ attribute: !1 })
|
|
4518
|
-
],
|
|
4519
|
-
|
|
4523
|
+
], S.prototype, "onClickTile");
|
|
4524
|
+
H([
|
|
4520
4525
|
a({ attribute: !1 })
|
|
4521
|
-
],
|
|
4522
|
-
customElements.define("mini-tile",
|
|
4526
|
+
], S.prototype, "onClickIcon");
|
|
4527
|
+
customElements.define("mini-tile", S);
|
|
4523
4528
|
var Ei = Object.defineProperty, Ai = Object.getOwnPropertyDescriptor, Ht = (o, t, e, n) => {
|
|
4524
4529
|
for (var i = n > 1 ? void 0 : n ? Ai(t, e) : t, r = o.length - 1, s; r >= 0; r--)
|
|
4525
4530
|
(s = o[r]) && (i = (n ? s(t, e, i) : s(i)) || i);
|
|
@@ -4587,7 +4592,7 @@ Ht([
|
|
|
4587
4592
|
ft = Ht([
|
|
4588
4593
|
y("o-badge")
|
|
4589
4594
|
], ft);
|
|
4590
|
-
var Li = Object.defineProperty, Pi = Object.getOwnPropertyDescriptor,
|
|
4595
|
+
var Li = Object.defineProperty, Pi = Object.getOwnPropertyDescriptor, T = (o, t, e, n) => {
|
|
4591
4596
|
for (var i = n > 1 ? void 0 : n ? Pi(t, e) : t, r = o.length - 1, s; r >= 0; r--)
|
|
4592
4597
|
(s = o[r]) && (i = (n ? s(t, e, i) : s(i)) || i);
|
|
4593
4598
|
return n && i && Li(t, e, i), i;
|
|
@@ -4640,7 +4645,7 @@ let A = class extends u {
|
|
|
4640
4645
|
return l`
|
|
4641
4646
|
<div class="o-toast">
|
|
4642
4647
|
<div class="o-toast-icon">
|
|
4643
|
-
${
|
|
4648
|
+
${E(t)}
|
|
4644
4649
|
</div>
|
|
4645
4650
|
<div class="o-toast-text">
|
|
4646
4651
|
${this.text}
|
|
@@ -4734,40 +4739,40 @@ A.styles = f`
|
|
|
4734
4739
|
height: 16px;
|
|
4735
4740
|
}
|
|
4736
4741
|
`;
|
|
4737
|
-
|
|
4742
|
+
T([
|
|
4738
4743
|
a({ type: String, reflect: !0 })
|
|
4739
4744
|
], A.prototype, "icon", 2);
|
|
4740
|
-
|
|
4745
|
+
T([
|
|
4741
4746
|
a({ type: String, reflect: !0 })
|
|
4742
4747
|
], A.prototype, "text", 2);
|
|
4743
|
-
|
|
4748
|
+
T([
|
|
4744
4749
|
a({ type: String, reflect: !0 })
|
|
4745
4750
|
], A.prototype, "verticalanchor", 2);
|
|
4746
|
-
|
|
4751
|
+
T([
|
|
4747
4752
|
a({ type: String, reflect: !0 })
|
|
4748
4753
|
], A.prototype, "horizontalanchor", 2);
|
|
4749
|
-
|
|
4754
|
+
T([
|
|
4750
4755
|
a({ type: Number, reflect: !0 })
|
|
4751
4756
|
], A.prototype, "verticaloffset", 2);
|
|
4752
|
-
|
|
4757
|
+
T([
|
|
4753
4758
|
a({ type: Number, reflect: !0 })
|
|
4754
4759
|
], A.prototype, "horizontaloffset", 2);
|
|
4755
|
-
|
|
4760
|
+
T([
|
|
4756
4761
|
a({ type: Number, reflect: !0 })
|
|
4757
4762
|
], A.prototype, "animationduration", 2);
|
|
4758
|
-
|
|
4763
|
+
T([
|
|
4759
4764
|
a({ type: String, reflect: !0 })
|
|
4760
4765
|
], A.prototype, "animationaxis", 2);
|
|
4761
|
-
|
|
4766
|
+
T([
|
|
4762
4767
|
a({ type: Boolean, reflect: !0 })
|
|
4763
4768
|
], A.prototype, "animated", 2);
|
|
4764
|
-
|
|
4769
|
+
T([
|
|
4765
4770
|
a({ type: Number, reflect: !0 })
|
|
4766
4771
|
], A.prototype, "lifeduration", 2);
|
|
4767
|
-
|
|
4772
|
+
T([
|
|
4768
4773
|
a({ type: Boolean, reflect: !0 })
|
|
4769
4774
|
], A.prototype, "multiline", 2);
|
|
4770
|
-
A =
|
|
4775
|
+
A = T([
|
|
4771
4776
|
y("o-toast")
|
|
4772
4777
|
], A);
|
|
4773
4778
|
var Bi = Object.defineProperty, zi = Object.getOwnPropertyDescriptor, j = (o, t, e, n) => {
|
|
@@ -4792,7 +4797,7 @@ let Oi = 0, L = class extends u {
|
|
|
4792
4797
|
this.disabled || (o.key === " " || o.key === "Enter") && (o.preventDefault(), this.toggle());
|
|
4793
4798
|
}
|
|
4794
4799
|
render() {
|
|
4795
|
-
const o =
|
|
4800
|
+
const o = E(et.checkbox.replace("<svg", '<svg aria-hidden="true" focusable="false" part="svg"')), t = E(et.icoMinus.replace("<svg", '<svg class="indeterminate" aria-hidden="true" focusable="false" part="svg"'));
|
|
4796
4801
|
return l`
|
|
4797
4802
|
<input
|
|
4798
4803
|
type="checkbox"
|
|
@@ -5492,6 +5497,9 @@ const le = class le extends u {
|
|
|
5492
5497
|
_onBackClick() {
|
|
5493
5498
|
this.dispatchEvent(new CustomEvent("back", { bubbles: !0, composed: !0 }));
|
|
5494
5499
|
}
|
|
5500
|
+
_resolvedIconSize() {
|
|
5501
|
+
return ["xsmall", "small", "medium", "large"].includes(this.iconSize) ? this.iconSize : "large";
|
|
5502
|
+
}
|
|
5495
5503
|
_requestClose(t) {
|
|
5496
5504
|
const e = new CustomEvent("request-close", {
|
|
5497
5505
|
bubbles: !0,
|
|
@@ -5505,7 +5513,7 @@ const le = class le extends u {
|
|
|
5505
5513
|
<o-icon-button
|
|
5506
5514
|
data-close-btn
|
|
5507
5515
|
icon="cross"
|
|
5508
|
-
size="${this.
|
|
5516
|
+
size="${this._resolvedIconSize()}"
|
|
5509
5517
|
bgstyle="none-${this.contrast ? "contrast" : "light"}"
|
|
5510
5518
|
status="empty"
|
|
5511
5519
|
type="button"
|
|
@@ -5521,7 +5529,7 @@ const le = class le extends u {
|
|
|
5521
5529
|
<div part="back">
|
|
5522
5530
|
<o-icon-button
|
|
5523
5531
|
icon="arrowLeft"
|
|
5524
|
-
size="${this.
|
|
5532
|
+
size="${this._resolvedIconSize()}"
|
|
5525
5533
|
status="empty"
|
|
5526
5534
|
class="return-btn"
|
|
5527
5535
|
bgstyle="none-${this.contrast ? "contrast" : "light"}"
|
|
@@ -5551,7 +5559,7 @@ const le = class le extends u {
|
|
|
5551
5559
|
<header part="header" class="${e}">
|
|
5552
5560
|
${this.showBackButton ? this._renderBackButton() : null}
|
|
5553
5561
|
<div class="brand">
|
|
5554
|
-
<span slot="logo${this.contrast ? "-contrast" : ""}">${
|
|
5562
|
+
<span slot="logo${this.contrast ? "-contrast" : ""}">${E(Ni)}</span>
|
|
5555
5563
|
</div>
|
|
5556
5564
|
<div part="close${this.contrast ? "-contrast" : ""}">${this._renderCloseButton()}</div>
|
|
5557
5565
|
</header>
|