@florid-kit/components 0.10.12 → 0.10.13
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 +2 -0
- package/index.js +152 -145
- package/index.mjs +248 -228
- package/package.json +1 -1
package/components/minitile.d.ts
CHANGED
|
@@ -11,7 +11,9 @@ export declare class MiniTile extends LitElement {
|
|
|
11
11
|
fullwidth: boolean;
|
|
12
12
|
tagText: string;
|
|
13
13
|
onClickTile?: () => void;
|
|
14
|
+
onClickIcon?: () => void;
|
|
14
15
|
private onClick;
|
|
16
|
+
private onClickIcons;
|
|
15
17
|
get icons(): import('lit').TemplateResult<1>;
|
|
16
18
|
static styles: import('lit').CSSResult;
|
|
17
19
|
render(): import('lit').TemplateResult<1>;
|
package/index.js
CHANGED
|
@@ -176,7 +176,7 @@
|
|
|
176
176
|
* @license
|
|
177
177
|
* Copyright 2018 Google LLC
|
|
178
178
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
179
|
-
*/const P=o=>o??d;var jo=Object.defineProperty,Fo=Object.getOwnPropertyDescriptor,
|
|
179
|
+
*/const P=o=>o??d;var jo=Object.defineProperty,Fo=Object.getOwnPropertyDescriptor,R=(o,t,e,r)=>{for(var i=r>1?void 0:r?Fo(t,e):t,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(t,e,i):s(i))||i);return r&&i&&jo(t,e,i),i};let B=class extends p{constructor(){super(...arguments),this.bgstyle="background-light",this.size="medium",this.status="empty",this.type="button",this.strokewidth="1",this.icon="wishlist",this.disabled=!1,this.showSrLabel=!1,this.srLabel=""}updated(o){super.updated(o),this.style.setProperty("--icon-stroke-width",this.strokewidth)}render(){const o=Z[this.icon]??"",t=`icon-${this.icon}`,e=o.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"'),r=this.showSrLabel?l`<span class="sr-only">${this.srLabel}</span>`:null,i=this.showSrLabel?null:"icon";return l`
|
|
180
180
|
${this.type==="span"?l`
|
|
181
181
|
<span class="icon icon-button ${this.size} ${this.bgstyle} ${this.status} ${t}" ?disabled="${this.disabled}">
|
|
182
182
|
${S(e)}
|
|
@@ -403,7 +403,7 @@
|
|
|
403
403
|
.sr-only {
|
|
404
404
|
display: none;
|
|
405
405
|
}
|
|
406
|
-
`;
|
|
406
|
+
`;R([a({type:String,reflect:!0})],B.prototype,"bgstyle",2);R([a({type:String,reflect:!0})],B.prototype,"size",2);R([a({type:String,reflect:!0})],B.prototype,"status",2);R([a({type:String,reflect:!0})],B.prototype,"type",2);R([a({type:String})],B.prototype,"strokewidth",2);R([a({type:String})],B.prototype,"icon",2);R([a({type:Boolean,reflect:!0})],B.prototype,"disabled",2);R([a({type:Boolean})],B.prototype,"showSrLabel",2);R([a({type:String})],B.prototype,"srLabel",2);B=R([g("o-icon-button")],B);var Ro=Object.defineProperty,Uo=Object.getOwnPropertyDescriptor,b=(o,t,e,r)=>{for(var i=r>1?void 0:r?Uo(t,e):t,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(t,e,i):s(i))||i);return r&&i&&Ro(t,e,i),i};let u=class extends p{constructor(){super(...arguments),this.open=!1,this.showHeader=!0,this.showFooter=!1,this.showHeaderStartIcon=!1,this.headerTitle="",this.headerTitleClassName="panel-title",this.labelDialog="",this.addToBagProductCount="",this.closeButtonLabel="Close the modal",this.goBackButtonLabel="Go back to",this.firstButtonLabel="Close",this.firstButtonVariant="primary",this.firstButtonProps={},this.onFirstButtonClickClose=!1,this.secondButtonLabel="",this.secondButtonVariant="secondary",this.secondButtonProps={},this.onSecondButtonClickClose=!1,this.disablePortal=!1,this.zIndex=99,this.initialized=!1,this.showDetail=!1,this.isHidingDetail=!1,this.previousFocusedElement=null,this._onOpenDetail=async o=>{var e,r;const t=((e=o.detail)==null?void 0:e.origin)??document.activeElement;if(this._detailOriginEl=t,this._detailOriginClass=(t==null?void 0:t.className)??"",this.showDetail=!0,this.showHeaderStartIcon=!0,await this.updateComplete,this._detailOriginClass){const i=(r=this.shadowRoot)==null?void 0:r.querySelector(".detail-view");i&&i.setAttribute("fromelement",this._detailOriginClass)}await this.focusDetailReturnBtn()},this._detailOriginEl=null,this._detailOriginClass="",this.handleKeyDown=o=>{this.open&&(o.key==="Escape"?this.closePanel():o.key==="Tab"&&this.trapFocus(o))},this.handleClosePanel=o=>{if(o instanceof KeyboardEvent&&o.key!=="Enter"&&o.key!==" ")return;o.preventDefault(),o.stopPropagation();const t=o.currentTarget,e=(t==null?void 0:t.getAttribute("data-role"))==="back";if(this.showDetail&&e){this.isHidingDetail=!0;const r=this.renderRoot.querySelector(".content"),i=async()=>{this.showDetail=!1,this.isHidingDetail=!1,this.showHeaderStartIcon=!1,await this.updateComplete,this._restoreFocusToOrigin()};if(r){this.showHeaderStartIcon=!1;const n=()=>{this.showDetail=!1,this.isHidingDetail=!1,r.removeEventListener("animationend",n),i()};r.addEventListener("animationend",n)}else this.showDetail=!1,this.isHidingDetail=!1,this.showHeaderStartIcon=!1;return}this.closePanel()}}focusFirstInPanel(){var t,e,r;(r=this.getFocusableElements().map(i=>this.resolveFocusable(i)).filter(i=>!!i&&!i.hasAttribute("disabled"))[0]??((t=this.shadowRoot)==null?void 0:t.querySelector(".close-btn"))??((e=this.shadowRoot)==null?void 0:e.querySelector(".panel")))==null||r.focus({preventScroll:!0})}resolveFocusable(o){var e;const t=o.tagName.toLowerCase();return t==="o-icon-button"||t==="o-button"?((e=o.shadowRoot)==null?void 0:e.querySelector("button, .button"))??o:o}connectedCallback(){super.connectedCallback(),!this.disablePortal&&this.parentElement!==document.body&&document.body.appendChild(this),this.addEventListener("keydown",this.handleKeyDown),this.updateComplete.then(()=>{this.initialized=!0}),this.addEventListener("open-detail",this._onOpenDetail),this.addEventListener("focusin",o=>{o.composedPath()[0]===this&&this.focusFirstInPanel()})}disconnectedCallback(){document.body.style.overflow="",document.body.removeAttribute("data-side-panel"),this.removeEventListener("keydown",this.handleKeyDown),super.disconnectedCallback(),this.removeEventListener("open-detail",this._onOpenDetail)}async focusDetailReturnBtn(){var i,n,s,c,h;await this.updateComplete;const o=this.getDeepActiveElement(document);if(o&&o!==document.body)try{o.blur()}catch{}await new Promise(requestAnimationFrame);const t=(i=this.shadowRoot)==null?void 0:i.querySelector(".detail-view .return-btn");if(!t)return;t.updateComplete&&await t.updateComplete,(c=(s=((n=t.shadowRoot)==null?void 0:n.querySelector("button"))??t)==null?void 0:s.focus)==null||c.call(s,{preventScroll:!0});const r=(h=this.shadowRoot)==null?void 0:h.querySelector('.panel[role="dialog"]');r&&r.setAttribute("aria-label",this.headerTitle)}_restoreFocusToOrigin(){var t,e;const o=this._detailOriginEl;!o||!document.contains(o)||((e=(t=document.activeElement)==null?void 0:t.blur)==null||e.call(t),requestAnimationFrame(()=>{var i;o.classList.add("a--tabfocus"),(((i=o.shadowRoot)==null?void 0:i.querySelector('button, .button, [tabindex]:not([tabindex="-1"])'))??null??o).focus({preventScroll:!0})}))}getDeepActiveElement(o=this.shadowRoot){let t=o.activeElement;for(;t&&t.shadowRoot&&t.shadowRoot.activeElement;)t=t.shadowRoot.activeElement;return t}trapFocus(o){if(o.key!=="Tab")return;const t=this.getDeepActiveElement(),e=this.renderRoot.querySelector(".close-btn");if(!o.shiftKey&&e&&e.contains(t)){o.preventDefault();const r=this.renderRoot.querySelector(".o-whats-inside--content p");r==null||r.focus()}}getFocusableElements(){const o=this.renderRoot.querySelector(".panel");if(!o)return[];function t(i){return!(i.disabled||i.hasAttribute("disabled")||i.hasAttribute("tabindex")&&i.getAttribute("tabindex")==="-1")}function e(i){var s;const n=[i.matches(u.focusablesSelector)?i:[]];if(!["o-icon-button","o-button"].includes(i.tagName.toLowerCase())){const c=Array.from(i instanceof HTMLSlotElement?i.assignedElements({flatten:!0}):[]).filter(t).flatMap(e),h=Array.from(((s=i.shadowRoot)==null?void 0:s.querySelectorAll("*"))||[]).filter(t).flatMap(e);n.push(...c,...h)}return n.flat()}return Array.from(o.querySelectorAll("*")).filter(t).flatMap(e)}openPanel(){this.removeAttribute("hidden"),this.getBoundingClientRect(),this.previousFocusedElement=document.activeElement,this.open=!0,document.body.style.overflow="hidden",document.body.setAttribute("data-side-panel","open");const o=this.renderRoot.querySelector(".panel");o&&o.setAttribute("aria-modal","true"),this.updateComplete.then(()=>{var t,e;if(this.showHeader){const r=(t=this.shadowRoot)==null?void 0:t.querySelector(".panel .close-btn"),i=this.resolveFocusable(r);(e=i==null?void 0:i.focus)==null||e.call(i,{preventScroll:!0})}else this.focusFirstInPanel()}),this.dispatchEvent(new CustomEvent("open",{bubbles:!0,composed:!0}))}closePanel(){var t,e,r,i,n;this.open=!1,this.showDetail=!1,document.body.style.overflow="",document.body.removeAttribute("data-side-panel"),((t=this.previousFocusedElement)==null?void 0:t.tagName.toLowerCase())==="o-button"?(i=(r=(e=this.previousFocusedElement.shadowRoot)==null?void 0:e.querySelector(".button"))==null?void 0:r.focus)==null||i.call(r):(n=this.previousFocusedElement)==null||n.focus();const o=this.renderRoot.querySelector(".panel");o&&o.removeAttribute("aria-modal"),this.dispatchEvent(new CustomEvent("close",{bubbles:!0,composed:!0}))}handleFirstClick(o){o instanceof KeyboardEvent&&o.key!=="Enter"&&o.key!==" "||(o.preventDefault(),o.stopPropagation(),this.onFirstButtonClickClose&&this.closePanel(),this.dispatchEvent(new CustomEvent("firstbuttonclick",{bubbles:!0,composed:!0,cancelable:!0,detail:{button:"first",target:o.target}})))}handleSecondClick(o){o instanceof KeyboardEvent&&o.key!=="Enter"&&o.key!==" "||(o.preventDefault(),o.stopPropagation(),this.onSecondButtonClickClose&&this.closePanel(),this.dispatchEvent(new CustomEvent("secondbuttonclick",{bubbles:!0,composed:!0,cancelable:!0,detail:{button:"second",target:o.target}})))}updated(){this.style.setProperty("--z-overlay",`${this.zIndex||99}`),this.style.setProperty("--z-panel",`${this.zIndex?this.zIndex+1:99}`),this.open||setTimeout(()=>{this.setAttribute("hidden","hidden")},500)}render(){const o=this.showHeader?l`
|
|
407
407
|
<div tabindex="-1" class="header ${this.showDetail?"detail-view-header":""}">
|
|
408
408
|
${this.showHeaderStartIcon?l`
|
|
409
409
|
<o-icon-button
|
|
@@ -1179,7 +1179,7 @@
|
|
|
1179
1179
|
text-decoration: underline;
|
|
1180
1180
|
cursor: pointer;
|
|
1181
1181
|
}
|
|
1182
|
-
`;Dt([a({type:Number})],pt.prototype,"rating",2);Dt([a({type:String})],pt.prototype,"reviewCount",2);Dt([a({type:String})],pt.prototype,"href",2);pt=Dt([g("o-rating")],pt);var Jo=Object.defineProperty,Qo=Object.getOwnPropertyDescriptor,ot=(o,t,e,r)=>{for(var i=r>1?void 0:r?Qo(t,e):t,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(t,e,i):s(i))||i);return r&&i&&Jo(t,e,i),i};let
|
|
1182
|
+
`;Dt([a({type:Number})],pt.prototype,"rating",2);Dt([a({type:String})],pt.prototype,"reviewCount",2);Dt([a({type:String})],pt.prototype,"href",2);pt=Dt([g("o-rating")],pt);var Jo=Object.defineProperty,Qo=Object.getOwnPropertyDescriptor,ot=(o,t,e,r)=>{for(var i=r>1?void 0:r?Qo(t,e):t,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(t,e,i):s(i))||i);return r&&i&&Jo(t,e,i),i};let F=class extends p{constructor(){super(...arguments),this.thumbnails=[],this.activeIndex=0,this.disabledIndexes=[],this.maxWidth="100%",this.altressource="visual",this.focusedIndex=0,this.playerIconTemplate=l`
|
|
1183
1183
|
<o-icon-button
|
|
1184
1184
|
icon="playerv"
|
|
1185
1185
|
size="xsmall"
|
|
@@ -1208,7 +1208,7 @@
|
|
|
1208
1208
|
</li>
|
|
1209
1209
|
`})}
|
|
1210
1210
|
</ul>
|
|
1211
|
-
`}};
|
|
1211
|
+
`}};F.styles=f`
|
|
1212
1212
|
:host {
|
|
1213
1213
|
display: flex;
|
|
1214
1214
|
gap: 5px;
|
|
@@ -1313,7 +1313,7 @@
|
|
|
1313
1313
|
height: 0;
|
|
1314
1314
|
width: 0;
|
|
1315
1315
|
}
|
|
1316
|
-
`;ot([a({type:Array})],
|
|
1316
|
+
`;ot([a({type:Array})],F.prototype,"thumbnails",2);ot([a({type:Number})],F.prototype,"activeIndex",2);ot([a({type:Array})],F.prototype,"disabledIndexes",2);ot([a({type:String})],F.prototype,"maxWidth",2);ot([a({type:String})],F.prototype,"altressource",2);ot([a({type:Object})],F.prototype,"swiperInstance",2);ot([W()],F.prototype,"focusedIndex",2);F=ot([g("thumbnail-navigation")],F);var ti=Object.defineProperty,ei=Object.getOwnPropertyDescriptor,te=(o,t,e,r)=>{for(var i=r>1?void 0:r?ei(t,e):t,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(t,e,i):s(i))||i);return r&&i&&ti(t,e,i),i};let wt=class extends p{constructor(){super(...arguments),this.type="",this.bgstyle="background-white"}render(){return l`
|
|
1317
1317
|
<span class="tag ${this.bgstyle}"><slot></slot></span>
|
|
1318
1318
|
`}};wt.styles=f`
|
|
1319
1319
|
.tag {
|
|
@@ -1709,7 +1709,7 @@
|
|
|
1709
1709
|
background-color: var(--color-container-action-primary-pressed);
|
|
1710
1710
|
}
|
|
1711
1711
|
}
|
|
1712
|
-
`;Nt=ai([g("o-dots")],Nt);var li=Object.defineProperty,ci=Object.getOwnPropertyDescriptor,
|
|
1712
|
+
`;Nt=ai([g("o-dots")],Nt);var li=Object.defineProperty,ci=Object.getOwnPropertyDescriptor,U=(o,t,e,r)=>{for(var i=r>1?void 0:r?ci(t,e):t,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(t,e,i):s(i))||i);return r&&i&&li(t,e,i),i};let z=class extends p{constructor(){super(...arguments),this.options=[],this.value="",this.name="",this.additionaltext="+X variant(s)",this.disabled=!1,this.width="100%",this.open=!1,this.activeIndex=-1,this.menuWidth="",this._handleOutsideClick=o=>{this.contains(o.target)||(this.open=!1,this.activeIndex=-1)}}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this._handleOutsideClick)}disconnectedCallback(){document.removeEventListener("click",this._handleOutsideClick),super.disconnectedCallback()}toggle(){var o;if(!this.disabled){if(this.open=!this.open,this.activeIndex=this.open?this.options.findIndex(t=>t.value===this.value):-1,this.open&&this.width==="auto"){const t=(o=this.renderRoot)==null?void 0:o.querySelector("button");t&&(this.menuWidth=`${t.getBoundingClientRect().width}px`)}this.open&&this.updateComplete.then(()=>this._focusActiveOption())}}_focusActiveOption(){var t;const o=(t=this.renderRoot)==null?void 0:t.querySelector(`#option-${this.activeIndex}`);o==null||o.focus()}selectOption(o){this.value=o.value,this.dispatchEvent(new CustomEvent("change",{detail:{value:this.value,url:o.url}})),this.open=!1,this.activeIndex=-1}handleKeydown(o){if(this.disabled){o.preventDefault();return}if(!this.open){(o.key==="ArrowDown"||o.key==="ArrowUp")&&(o.preventDefault(),this.open=!0,this.activeIndex=this.options.findIndex(t=>t.value===this.value),this.updateComplete.then(()=>this._focusActiveOption()));return}switch(o.key){case"ArrowDown":o.preventDefault(),this.activeIndex=(this.activeIndex+1)%this.options.length,this.updateComplete.then(()=>this._focusActiveOption());break;case"ArrowUp":o.preventDefault(),this.activeIndex=(this.activeIndex-1+this.options.length)%this.options.length,this.updateComplete.then(()=>this._focusActiveOption());break;case"Home":o.preventDefault(),this.activeIndex=0,this.updateComplete.then(()=>this._focusActiveOption());break;case"End":o.preventDefault(),this.activeIndex=this.options.length-1,this.updateComplete.then(()=>this._focusActiveOption());break;case"Enter":o.preventDefault(),this.activeIndex>=0&&this.selectOption(this.options[this.activeIndex]);break;case"Escape":o.preventDefault(),this.open=!1,this.activeIndex=-1;break}}updated(){this.options.length>0&&(this.options.some(t=>t.value===this.value)||(this.value=this.options[0].value))}render(){const o=Z.checkstroke.replace("<svg",'<svg aria-hidden="true" focusable="false" part="svg"'),t=this.options.find(e=>e.value===this.value);return l`
|
|
1713
1713
|
<button
|
|
1714
1714
|
role="combobox"
|
|
1715
1715
|
aria-haspopup="listbox"
|
|
@@ -1946,7 +1946,7 @@
|
|
|
1946
1946
|
input[type="hidden"] {
|
|
1947
1947
|
display: none;
|
|
1948
1948
|
}
|
|
1949
|
-
`;
|
|
1949
|
+
`;U([a({type:Array,reflect:!0})],z.prototype,"options",2);U([a({type:String,reflect:!0})],z.prototype,"value",2);U([a({type:String,reflect:!0})],z.prototype,"name",2);U([a({type:String,reflect:!0})],z.prototype,"additionaltext",2);U([a({type:Boolean,reflect:!0})],z.prototype,"disabled",2);U([a({type:String,reflect:!0})],z.prototype,"width",2);U([W()],z.prototype,"open",2);U([W()],z.prototype,"activeIndex",2);U([W()],z.prototype,"menuWidth",2);z=U([g("o-dropdown-variant")],z);/**
|
|
1950
1950
|
* @license
|
|
1951
1951
|
* Copyright 2018 Google LLC
|
|
1952
1952
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
@@ -2144,7 +2144,7 @@
|
|
|
2144
2144
|
flex-wrap: wrap;
|
|
2145
2145
|
gap: var(--spacing-s);
|
|
2146
2146
|
}
|
|
2147
|
-
`;ie([a({reflect:!0})],_t.prototype,"name",2);ie([a({reflect:!0})],_t.prototype,"value",2);_t=ie([g("o-chipset")],_t);var mi=Object.defineProperty,xi=Object.getOwnPropertyDescriptor,
|
|
2147
|
+
`;ie([a({reflect:!0})],_t.prototype,"name",2);ie([a({reflect:!0})],_t.prototype,"value",2);_t=ie([g("o-chipset")],_t);var mi=Object.defineProperty,xi=Object.getOwnPropertyDescriptor,N=(o,t,e,r)=>{for(var i=r>1?void 0:r?xi(t,e):t,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(t,e,i):s(i))||i);return r&&i&&mi(t,e,i),i};const wi=Xt(p);let I=class extends wi{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=Z[this.crossIconName].replace("<svg",'<svg aria-hidden="true" focusable="false" part="svg"').replace(/stroke=[#"'a-z1-9]*/gi,"");return l`<span class="cross-icon">${S(o)}</span>`}strikeThroughImg(){const o=Lo[this.strikethroughImgName].replace("<svg",'<svg aria-hidden="true" focusable="false" part="strikethrough"').replace(/stroke=[#"'a-z1-9]*/gi,"");return S(o)}render(){const o=this.text;return l`${this.type==="link"?l`
|
|
2148
2148
|
<a role="button" tabindex="0" class="button" href=${this.href} ?disabled=${this.disabled} @click=${this.handleClick} @keydown=${this.handleClick}
|
|
2149
2149
|
aria-label=${this.ariaLabel} aria-pressed=${this.selected}>
|
|
2150
2150
|
${o?l`
|
|
@@ -2289,156 +2289,163 @@
|
|
|
2289
2289
|
stroke-linecap: round;
|
|
2290
2290
|
}
|
|
2291
2291
|
}
|
|
2292
|
-
`;
|
|
2293
|
-
|
|
2294
|
-
|
|
2295
|
-
|
|
2296
|
-
|
|
2297
|
-
|
|
2298
|
-
|
|
2299
|
-
|
|
2300
|
-
|
|
2301
|
-
|
|
2302
|
-
|
|
2303
|
-
|
|
2304
|
-
|
|
2305
|
-
|
|
2306
|
-
|
|
2307
|
-
|
|
2308
|
-
|
|
2309
|
-
|
|
2310
|
-
|
|
2311
|
-
|
|
2312
|
-
|
|
2313
|
-
|
|
2314
|
-
|
|
2315
|
-
|
|
2316
|
-
|
|
2317
|
-
|
|
2318
|
-
|
|
2319
|
-
|
|
2320
|
-
|
|
2321
|
-
|
|
2322
|
-
|
|
2323
|
-
|
|
2324
|
-
|
|
2325
|
-
|
|
2326
|
-
|
|
2327
|
-
</
|
|
2292
|
+
`;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([g("o-filter-chip")],I);var $i=Object.defineProperty,M=(o,t,e,r)=>{for(var i=void 0,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=s(t,e,i)||i);return i&&$i(t,e,i),i};const se=class se extends p{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=""}onClick(t){var r,i;const e=t.target;(r=e==null?void 0:e.classList)!=null&&r.contains("add-to-bag")||((i=this.onClickTile)==null||i.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`
|
|
2293
|
+
<o-icon-button
|
|
2294
|
+
@click=${this.onClickIcons}
|
|
2295
|
+
icon="chevronRight"
|
|
2296
|
+
size="small"
|
|
2297
|
+
bgstyle="background-contrast"
|
|
2298
|
+
type="span"
|
|
2299
|
+
status="filled"
|
|
2300
|
+
strokewidth="0"
|
|
2301
|
+
aria-hidden="true"
|
|
2302
|
+
tabindex="-1"
|
|
2303
|
+
class="chevron-icon"
|
|
2304
|
+
></o-icon-button>
|
|
2305
|
+
`:l`
|
|
2306
|
+
<o-icon-button
|
|
2307
|
+
@click=${this.onClickIcons}
|
|
2308
|
+
icon="cart"
|
|
2309
|
+
size="small"
|
|
2310
|
+
bgstyle="background-contrast"
|
|
2311
|
+
type="span"
|
|
2312
|
+
status="empty"
|
|
2313
|
+
strokewidth="0"
|
|
2314
|
+
class="add-to-bag"
|
|
2315
|
+
></o-icon-button>
|
|
2316
|
+
`}render(){return l`
|
|
2317
|
+
<button
|
|
2318
|
+
type="button"
|
|
2319
|
+
class="tile fullpointer ${this.fullwidth?"fullwidth":""}"
|
|
2320
|
+
@click=${this.onClick}
|
|
2321
|
+
>
|
|
2322
|
+
${this.imageUrl?l`<img src="${this.imageUrl}" alt="${this.altImage||""}" />`:""}
|
|
2323
|
+
<div class="info">
|
|
2324
|
+
${this.tagText?l`<o-tag bgstyle="background-emphasis">${this.tagText}</o-tag>`:""}
|
|
2325
|
+
${this.titleProduct?l`<div class="title">${this.titleProduct}</div>`:""}
|
|
2326
|
+
<div class="details">
|
|
2327
|
+
${this.volume?l`<span class="volume-info">${this.volume}</span>`:""}
|
|
2328
|
+
${this.type==="cart"&&this.mainPrice?l`<span class="main-price">${this.mainPrice}</span>`:""}
|
|
2329
|
+
${this.type==="cart"&&this.perLiter?l`<span class="per-liter">${this.perLiter}</span>`:""}
|
|
2330
|
+
</div>
|
|
2331
|
+
</div>
|
|
2332
|
+
${this.icons}
|
|
2333
|
+
</button>
|
|
2328
2334
|
`}};se.styles=f`
|
|
2329
2335
|
:host {
|
|
2330
|
-
|
|
2331
|
-
|
|
2336
|
+
display: block;
|
|
2337
|
+
max-width: 100%;
|
|
2332
2338
|
}
|
|
2333
|
-
|
|
2339
|
+
|
|
2334
2340
|
.tile {
|
|
2335
|
-
|
|
2336
|
-
|
|
2337
|
-
|
|
2338
|
-
|
|
2339
|
-
|
|
2340
|
-
|
|
2341
|
-
|
|
2342
|
-
|
|
2343
|
-
|
|
2344
|
-
|
|
2345
|
-
|
|
2346
|
-
|
|
2347
|
-
|
|
2348
|
-
|
|
2349
|
-
|
|
2350
|
-
o-icon-button {
|
|
2351
|
-
margin-left: var(--spacing-xl);
|
|
2352
|
-
}
|
|
2353
|
-
}
|
|
2341
|
+
display: flex;
|
|
2342
|
+
align-items: center;
|
|
2343
|
+
justify-content: space-between;
|
|
2344
|
+
border-radius: var(--radius-xs);
|
|
2345
|
+
background: var(--color-container-bg-white);
|
|
2346
|
+
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
|
|
2347
|
+
font-family: var(--font-family-loccitane-sans);
|
|
2348
|
+
height: 70px;
|
|
2349
|
+
width: 356px;
|
|
2350
|
+
max-width: 356px;
|
|
2351
|
+
padding: var(--spacing-2-xs) var(--spacing-s) var(--spacing-2-xs)
|
|
2352
|
+
var(--spacing-2-xs);
|
|
2353
|
+
margin: 0;
|
|
2354
|
+
border: 0 none;
|
|
2355
|
+
box-sizing: content-box;
|
|
2354
2356
|
|
|
2355
|
-
|
|
2356
|
-
|
|
2357
|
-
|
|
2358
|
-
|
|
2357
|
+
o-icon-button {
|
|
2358
|
+
margin-left: var(--spacing-xl);
|
|
2359
|
+
}
|
|
2360
|
+
}
|
|
2359
2361
|
|
|
2360
|
-
|
|
2361
|
-
|
|
2362
|
-
|
|
2363
|
-
|
|
2364
|
-
background: linear-gradient(to bottom, #F9F5F0, #F7F2EA);
|
|
2365
|
-
}
|
|
2362
|
+
.tile.fullwidth {
|
|
2363
|
+
width: 100%;
|
|
2364
|
+
max-width: 100%;
|
|
2365
|
+
}
|
|
2366
2366
|
|
|
2367
|
-
|
|
2368
|
-
|
|
2369
|
-
|
|
2370
|
-
|
|
2367
|
+
.tile img {
|
|
2368
|
+
object-fit: cover;
|
|
2369
|
+
width: 56px;
|
|
2370
|
+
height: 70px;
|
|
2371
|
+
background: linear-gradient(to bottom, #f9f5f0, #f7f2ea);
|
|
2372
|
+
}
|
|
2371
2373
|
|
|
2372
|
-
|
|
2373
|
-
|
|
2374
|
-
|
|
2375
|
-
|
|
2376
|
-
color: var(--colors-noir-des-terres-500);
|
|
2377
|
-
line-height: var(--line-height-160);
|
|
2378
|
-
letter-spacing: var(--letter-spacing-100);
|
|
2379
|
-
text-align: left;
|
|
2380
|
-
max-height: 32px;
|
|
2381
|
-
overflow: hidden;
|
|
2382
|
-
text-overflow: ellipsis;
|
|
2383
|
-
display: -webkit-box;
|
|
2384
|
-
-webkit-line-clamp: 2;
|
|
2385
|
-
-webkit-box-orient: vertical;
|
|
2386
|
-
|
|
2387
|
-
+.details {
|
|
2388
|
-
padding-top: var(--spacing-s);
|
|
2389
|
-
overflow: hidden;
|
|
2390
|
-
text-overflow: ellipsis;
|
|
2391
|
-
display: -webkit-box;
|
|
2392
|
-
-webkit-line-clamp: 1;
|
|
2393
|
-
-webkit-box-orient: vertical;
|
|
2394
|
-
text-align: left;
|
|
2395
|
-
}
|
|
2396
|
-
}
|
|
2374
|
+
.info {
|
|
2375
|
+
flex-grow: 1;
|
|
2376
|
+
margin-left: 10px;
|
|
2377
|
+
}
|
|
2397
2378
|
|
|
2398
|
-
|
|
2399
|
-
|
|
2400
|
-
|
|
2401
|
-
|
|
2379
|
+
.info .title {
|
|
2380
|
+
font-family: var(--font-family-loccitane-serif);
|
|
2381
|
+
font-size: var(--font-size-150);
|
|
2382
|
+
font-weight: var(--font-weight-400);
|
|
2383
|
+
color: var(--colors-noir-des-terres-500);
|
|
2384
|
+
line-height: var(--line-height-160);
|
|
2385
|
+
letter-spacing: var(--letter-spacing-100);
|
|
2386
|
+
text-align: left;
|
|
2387
|
+
max-height: 32px;
|
|
2388
|
+
overflow: hidden;
|
|
2389
|
+
text-overflow: ellipsis;
|
|
2390
|
+
display: -webkit-box;
|
|
2391
|
+
-webkit-line-clamp: 2;
|
|
2392
|
+
-webkit-box-orient: vertical;
|
|
2402
2393
|
|
|
2403
|
-
|
|
2404
|
-
|
|
2405
|
-
|
|
2406
|
-
|
|
2407
|
-
|
|
2394
|
+
+ .details {
|
|
2395
|
+
padding-top: var(--spacing-s);
|
|
2396
|
+
overflow: hidden;
|
|
2397
|
+
text-overflow: ellipsis;
|
|
2398
|
+
display: -webkit-box;
|
|
2399
|
+
-webkit-line-clamp: 1;
|
|
2400
|
+
-webkit-box-orient: vertical;
|
|
2401
|
+
text-align: left;
|
|
2402
|
+
}
|
|
2403
|
+
}
|
|
2408
2404
|
|
|
2409
|
-
|
|
2410
|
-
|
|
2411
|
-
|
|
2412
|
-
|
|
2413
|
-
color: var(--colors-noir-des-terres-500);
|
|
2414
|
-
}
|
|
2415
|
-
}
|
|
2416
|
-
}
|
|
2405
|
+
.info .details {
|
|
2406
|
+
display: flex;
|
|
2407
|
+
align-items: center;
|
|
2408
|
+
}
|
|
2417
2409
|
|
|
2418
|
-
|
|
2419
|
-
|
|
2420
|
-
|
|
2421
|
-
|
|
2410
|
+
.info .volume-info {
|
|
2411
|
+
font-size: var(--font-size-100);
|
|
2412
|
+
color: var(--colors-noir-des-terres-500);
|
|
2413
|
+
font-family: var(--font-family-loccitane-sans);
|
|
2414
|
+
line-height: var(--line-height-160);
|
|
2422
2415
|
|
|
2423
|
-
|
|
2424
|
-
|
|
2416
|
+
+ .main-price {
|
|
2417
|
+
&::before {
|
|
2418
|
+
content: "•";
|
|
2419
|
+
padding: 0 var(--spacing-xs) 0 var(--spacing-2-xs);
|
|
2425
2420
|
color: var(--colors-noir-des-terres-500);
|
|
2426
|
-
font-size: var(--font-size-100);
|
|
2427
|
-
padding: 0 var(--spacing-xs) 0 0;
|
|
2428
|
-
font-weight: var(--font-weight-400);
|
|
2429
2421
|
}
|
|
2422
|
+
}
|
|
2423
|
+
}
|
|
2430
2424
|
|
|
2431
|
-
|
|
2432
|
-
|
|
2433
|
-
|
|
2434
|
-
|
|
2435
|
-
line-height: var(--line-height-160);
|
|
2436
|
-
}
|
|
2425
|
+
.info o-tag {
|
|
2426
|
+
margin-bottom: var(--spacing-xs);
|
|
2427
|
+
display: flex;
|
|
2428
|
+
}
|
|
2437
2429
|
|
|
2438
|
-
|
|
2439
|
-
|
|
2440
|
-
|
|
2441
|
-
|
|
2430
|
+
.main-price {
|
|
2431
|
+
font-family: var(--font-family-loccitane-sans);
|
|
2432
|
+
color: var(--colors-noir-des-terres-500);
|
|
2433
|
+
font-size: var(--font-size-100);
|
|
2434
|
+
padding: 0 var(--spacing-xs) 0 0;
|
|
2435
|
+
font-weight: var(--font-weight-400);
|
|
2436
|
+
}
|
|
2437
|
+
|
|
2438
|
+
.per-liter {
|
|
2439
|
+
font-size: var(--font-size-100);
|
|
2440
|
+
color: var(--color-content-description);
|
|
2441
|
+
letter-spacing: var(--letter-spacing-absolute);
|
|
2442
|
+
line-height: var(--line-height-160);
|
|
2443
|
+
}
|
|
2444
|
+
|
|
2445
|
+
.fullpointer {
|
|
2446
|
+
cursor: pointer;
|
|
2447
|
+
}
|
|
2448
|
+
`;let E=se;M([a({type:String})],E.prototype,"type");M([a({type:String})],E.prototype,"titleProduct");M([a({type:String})],E.prototype,"volume");M([a({type:String})],E.prototype,"perLiter");M([a({type:String})],E.prototype,"mainPrice");M([a({type:String})],E.prototype,"imageUrl");M([a({type:String})],E.prototype,"altImage");M([a({type:Boolean})],E.prototype,"fullwidth");M([a({type:String})],E.prototype,"tagText");M([a({attribute:!1})],E.prototype,"onClickTile");M([a({attribute:!1})],E.prototype,"onClickIcon");customElements.define("mini-tile",E);var ki=Object.defineProperty,_i=Object.getOwnPropertyDescriptor,re=(o,t,e,r)=>{for(var i=r>1?void 0:r?_i(t,e):t,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(t,e,i):s(i))||i);return r&&i&&ki(t,e,i),i};let Ct=class extends p{constructor(){super(...arguments),this.variant="cart",this.text=""}render(){return l`
|
|
2442
2449
|
<span class="badge">
|
|
2443
2450
|
${this.text?this.text:l`<slot></slot>`}
|
|
2444
2451
|
</span>
|
|
@@ -2476,7 +2483,7 @@
|
|
|
2476
2483
|
color: var(--text-color);
|
|
2477
2484
|
}
|
|
2478
2485
|
|
|
2479
|
-
`;re([a({type:String,reflect:!0})],Ct.prototype,"variant",2);re([a({type:String})],Ct.prototype,"text",2);Ct=re([g("o-badge")],Ct);var Ci=Object.defineProperty,Si=Object.getOwnPropertyDescriptor,H=(o,t,e,r)=>{for(var i=r>1?void 0:r?Si(t,e):t,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(t,e,i):s(i))||i);return r&&i&&Ci(t,e,i),i};let
|
|
2486
|
+
`;re([a({type:String,reflect:!0})],Ct.prototype,"variant",2);re([a({type:String})],Ct.prototype,"text",2);Ct=re([g("o-badge")],Ct);var Ci=Object.defineProperty,Si=Object.getOwnPropertyDescriptor,H=(o,t,e,r)=>{for(var i=r>1?void 0:r?Si(t,e):t,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(t,e,i):s(i))||i);return r&&i&&Ci(t,e,i),i};let A=class extends p{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 r,i;var o=this;const t=(r=this.renderRoot)==null?void 0:r.querySelector("o-icon-button"),e=(i=this.renderRoot)==null?void 0:i.querySelector(".o-toast-text");if(e!=null){const n=window.getComputedStyle(e),s=parseInt(n.getPropertyValue("line-height").replace("px","")),c=parseInt(n.getPropertyValue("height").replace("px",""));!isNaN(s)&&!isNaN(c)&&c>s&&(this.multiline=!0)}t!=null&&t.addEventListener("click",function(){o.remove()})}render(){const t=Po[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`
|
|
2480
2487
|
<div class="o-toast">
|
|
2481
2488
|
<div class="o-toast-icon">
|
|
2482
2489
|
${S(t)}
|
|
@@ -2492,7 +2499,7 @@
|
|
|
2492
2499
|
</o-icon-button>
|
|
2493
2500
|
</div>
|
|
2494
2501
|
</div>
|
|
2495
|
-
`}};
|
|
2502
|
+
`}};A.styles=f`
|
|
2496
2503
|
:host {
|
|
2497
2504
|
--vertical-offset: 24px;
|
|
2498
2505
|
--horizontal-offset: 24px;
|
|
@@ -2569,7 +2576,7 @@
|
|
|
2569
2576
|
.o-toast-icon {
|
|
2570
2577
|
height: 16px;
|
|
2571
2578
|
}
|
|
2572
|
-
`;H([a({type:String,reflect:!0})],
|
|
2579
|
+
`;H([a({type:String,reflect:!0})],A.prototype,"icon",2);H([a({type:String,reflect:!0})],A.prototype,"text",2);H([a({type:String,reflect:!0})],A.prototype,"verticalanchor",2);H([a({type:String,reflect:!0})],A.prototype,"horizontalanchor",2);H([a({type:Number,reflect:!0})],A.prototype,"verticaloffset",2);H([a({type:Number,reflect:!0})],A.prototype,"horizontaloffset",2);H([a({type:Number,reflect:!0})],A.prototype,"animationduration",2);H([a({type:String,reflect:!0})],A.prototype,"animationaxis",2);H([a({type:Boolean,reflect:!0})],A.prototype,"animated",2);H([a({type:Number,reflect:!0})],A.prototype,"lifeduration",2);H([a({type:Boolean,reflect:!0})],A.prototype,"multiline",2);A=H([g("o-toast")],A);var Ei=Object.defineProperty,Ai=Object.getOwnPropertyDescriptor,j=(o,t,e,r)=>{for(var i=r>1?void 0:r?Ai(t,e):t,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(t,e,i):s(i))||i);return r&&i&&Ei(t,e,i),i};let Li=0,L=class extends p{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-${++Li}`)}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=S(Z.checkbox.replace("<svg",'<svg aria-hidden="true" focusable="false" part="svg"')),t=S(Z.icoMinus.replace("<svg",'<svg class="indeterminate" aria-hidden="true" focusable="false" part="svg"'));return l`
|
|
2573
2580
|
<input
|
|
2574
2581
|
type="checkbox"
|
|
2575
2582
|
id=${this.inputId}
|
|
@@ -2688,7 +2695,7 @@
|
|
|
2688
2695
|
svg path {
|
|
2689
2696
|
stroke: var(--color-border-white);
|
|
2690
2697
|
}
|
|
2691
|
-
`;
|
|
2698
|
+
`;j([a({type:Boolean,reflect:!0})],L.prototype,"checked",2);j([a({type:Boolean,reflect:!0})],L.prototype,"indeterminate",2);j([a({type:Boolean,reflect:!0})],L.prototype,"disabled",2);j([a({type:String,reflect:!0})],L.prototype,"size",2);j([a({type:Boolean})],L.prototype,"showLabel",2);j([a({type:String})],L.prototype,"label",2);j([a({type:String})],L.prototype,"name",2);j([a({type:String})],L.prototype,"value",2);j([a({type:String,reflect:!0})],L.prototype,"inputId",2);j([Ce("input")],L.prototype,"inputEl",2);L=j([g("o-checkbox")],L);var Pi=Object.defineProperty,Bi=Object.getOwnPropertyDescriptor,q=(o,t,e,r)=>{for(var i=r>1?void 0:r?Bi(t,e):t,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(t,e,i):s(i))||i);return r&&i&&Pi(t,e,i),i};let zi=0,D=class extends p{constructor(){super(),this.checked=!1,this.disabled=!1,this.size="S",this.showLabel=!0,this.label="Radio button",this.name="",this.value="on",this.inputId="",this.inputId||(this.inputId=`o-radio-${++zi}`)}handleClick(){this.disabled||this.checked||(this.checked=!0,this.syncInput(),this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0})))}syncInput(){this.inputEl&&(this.inputEl.checked=this.checked)}updated(o){if(o.has("checked")&&this.checked){const t=this.parentElement;t&&Array.from(t.querySelectorAll(`o-radio[name="${this.name}"]`)).forEach(r=>{r!==this&&(r.checked=!1)})}this.syncInput()}handleKeyDown(o){this.disabled||(o.key===" "||o.key==="Enter")&&(o.preventDefault(),this.handleClick())}render(){return l`
|
|
2692
2699
|
<input type="radio" id=${this.inputId} ?checked=${this.checked} ?disabled=${this.disabled} name=${this.name} value=${this.value} />
|
|
2693
2700
|
|
|
2694
2701
|
<div class="box" role="radio" tabindex=${this.disabled?-1:0} aria-checked=${String(this.checked)} aria-disabled=${String(this.disabled)} @click=${this.handleClick} @keydown=${this.handleKeyDown}>
|
package/index.mjs
CHANGED
|
@@ -1057,7 +1057,7 @@ const ye = Jt(Mo);
|
|
|
1057
1057
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1058
1058
|
*/
|
|
1059
1059
|
const P = (o) => o ?? d;
|
|
1060
|
-
var jo = Object.defineProperty, Fo = Object.getOwnPropertyDescriptor,
|
|
1060
|
+
var jo = Object.defineProperty, Fo = Object.getOwnPropertyDescriptor, R = (o, t, e, r) => {
|
|
1061
1061
|
for (var i = r > 1 ? void 0 : r ? Fo(t, e) : t, n = o.length - 1, s; n >= 0; n--)
|
|
1062
1062
|
(s = o[n]) && (i = (r ? s(t, e, i) : s(i)) || i);
|
|
1063
1063
|
return r && i && jo(t, e, i), i;
|
|
@@ -1302,34 +1302,34 @@ B.styles = f`
|
|
|
1302
1302
|
display: none;
|
|
1303
1303
|
}
|
|
1304
1304
|
`;
|
|
1305
|
-
|
|
1305
|
+
R([
|
|
1306
1306
|
a({ type: String, reflect: !0 })
|
|
1307
1307
|
], B.prototype, "bgstyle", 2);
|
|
1308
|
-
|
|
1308
|
+
R([
|
|
1309
1309
|
a({ type: String, reflect: !0 })
|
|
1310
1310
|
], B.prototype, "size", 2);
|
|
1311
|
-
|
|
1311
|
+
R([
|
|
1312
1312
|
a({ type: String, reflect: !0 })
|
|
1313
1313
|
], B.prototype, "status", 2);
|
|
1314
|
-
|
|
1314
|
+
R([
|
|
1315
1315
|
a({ type: String, reflect: !0 })
|
|
1316
1316
|
], B.prototype, "type", 2);
|
|
1317
|
-
|
|
1317
|
+
R([
|
|
1318
1318
|
a({ type: String })
|
|
1319
1319
|
], B.prototype, "strokewidth", 2);
|
|
1320
|
-
|
|
1320
|
+
R([
|
|
1321
1321
|
a({ type: String })
|
|
1322
1322
|
], B.prototype, "icon", 2);
|
|
1323
|
-
|
|
1323
|
+
R([
|
|
1324
1324
|
a({ type: Boolean, reflect: !0 })
|
|
1325
1325
|
], B.prototype, "disabled", 2);
|
|
1326
|
-
|
|
1326
|
+
R([
|
|
1327
1327
|
a({ type: Boolean })
|
|
1328
1328
|
], B.prototype, "showSrLabel", 2);
|
|
1329
|
-
|
|
1329
|
+
R([
|
|
1330
1330
|
a({ type: String })
|
|
1331
1331
|
], B.prototype, "srLabel", 2);
|
|
1332
|
-
B =
|
|
1332
|
+
B = R([
|
|
1333
1333
|
g("o-icon-button")
|
|
1334
1334
|
], B);
|
|
1335
1335
|
var Ro = Object.defineProperty, Uo = Object.getOwnPropertyDescriptor, b = (o, t, e, r) => {
|
|
@@ -2603,7 +2603,7 @@ var Jo = Object.defineProperty, Qo = Object.getOwnPropertyDescriptor, ot = (o, t
|
|
|
2603
2603
|
(s = o[n]) && (i = (r ? s(t, e, i) : s(i)) || i);
|
|
2604
2604
|
return r && i && Jo(t, e, i), i;
|
|
2605
2605
|
};
|
|
2606
|
-
let
|
|
2606
|
+
let F = class extends p {
|
|
2607
2607
|
constructor() {
|
|
2608
2608
|
super(...arguments), this.thumbnails = [], this.activeIndex = 0, this.disabledIndexes = [], this.maxWidth = "100%", this.altressource = "visual", this.focusedIndex = 0, this.playerIconTemplate = l`
|
|
2609
2609
|
<o-icon-button
|
|
@@ -2694,7 +2694,7 @@ let j = class extends p {
|
|
|
2694
2694
|
`;
|
|
2695
2695
|
}
|
|
2696
2696
|
};
|
|
2697
|
-
|
|
2697
|
+
F.styles = f`
|
|
2698
2698
|
:host {
|
|
2699
2699
|
display: flex;
|
|
2700
2700
|
gap: 5px;
|
|
@@ -2802,28 +2802,28 @@ j.styles = f`
|
|
|
2802
2802
|
`;
|
|
2803
2803
|
ot([
|
|
2804
2804
|
a({ type: Array })
|
|
2805
|
-
],
|
|
2805
|
+
], F.prototype, "thumbnails", 2);
|
|
2806
2806
|
ot([
|
|
2807
2807
|
a({ type: Number })
|
|
2808
|
-
],
|
|
2808
|
+
], F.prototype, "activeIndex", 2);
|
|
2809
2809
|
ot([
|
|
2810
2810
|
a({ type: Array })
|
|
2811
|
-
],
|
|
2811
|
+
], F.prototype, "disabledIndexes", 2);
|
|
2812
2812
|
ot([
|
|
2813
2813
|
a({ type: String })
|
|
2814
|
-
],
|
|
2814
|
+
], F.prototype, "maxWidth", 2);
|
|
2815
2815
|
ot([
|
|
2816
2816
|
a({ type: String })
|
|
2817
|
-
],
|
|
2817
|
+
], F.prototype, "altressource", 2);
|
|
2818
2818
|
ot([
|
|
2819
2819
|
a({ type: Object })
|
|
2820
|
-
],
|
|
2820
|
+
], F.prototype, "swiperInstance", 2);
|
|
2821
2821
|
ot([
|
|
2822
2822
|
W()
|
|
2823
|
-
],
|
|
2824
|
-
|
|
2823
|
+
], F.prototype, "focusedIndex", 2);
|
|
2824
|
+
F = ot([
|
|
2825
2825
|
g("thumbnail-navigation")
|
|
2826
|
-
],
|
|
2826
|
+
], F);
|
|
2827
2827
|
var ti = Object.defineProperty, ei = Object.getOwnPropertyDescriptor, te = (o, t, e, r) => {
|
|
2828
2828
|
for (var i = r > 1 ? void 0 : r ? ei(t, e) : t, n = o.length - 1, s; n >= 0; n--)
|
|
2829
2829
|
(s = o[n]) && (i = (r ? s(t, e, i) : s(i)) || i);
|
|
@@ -3388,7 +3388,7 @@ Nt.styles = f`
|
|
|
3388
3388
|
Nt = ai([
|
|
3389
3389
|
g("o-dots")
|
|
3390
3390
|
], Nt);
|
|
3391
|
-
var li = Object.defineProperty, ci = Object.getOwnPropertyDescriptor,
|
|
3391
|
+
var li = Object.defineProperty, ci = Object.getOwnPropertyDescriptor, U = (o, t, e, r) => {
|
|
3392
3392
|
for (var i = r > 1 ? void 0 : r ? ci(t, e) : t, n = o.length - 1, s; n >= 0; n--)
|
|
3393
3393
|
(s = o[n]) && (i = (r ? s(t, e, i) : s(i)) || i);
|
|
3394
3394
|
return r && i && li(t, e, i), i;
|
|
@@ -3706,34 +3706,34 @@ z.styles = f`
|
|
|
3706
3706
|
display: none;
|
|
3707
3707
|
}
|
|
3708
3708
|
`;
|
|
3709
|
-
|
|
3709
|
+
U([
|
|
3710
3710
|
a({ type: Array, reflect: !0 })
|
|
3711
3711
|
], z.prototype, "options", 2);
|
|
3712
|
-
|
|
3712
|
+
U([
|
|
3713
3713
|
a({ type: String, reflect: !0 })
|
|
3714
3714
|
], z.prototype, "value", 2);
|
|
3715
|
-
|
|
3715
|
+
U([
|
|
3716
3716
|
a({ type: String, reflect: !0 })
|
|
3717
3717
|
], z.prototype, "name", 2);
|
|
3718
|
-
|
|
3718
|
+
U([
|
|
3719
3719
|
a({ type: String, reflect: !0 })
|
|
3720
3720
|
], z.prototype, "additionaltext", 2);
|
|
3721
|
-
|
|
3721
|
+
U([
|
|
3722
3722
|
a({ type: Boolean, reflect: !0 })
|
|
3723
3723
|
], z.prototype, "disabled", 2);
|
|
3724
|
-
|
|
3724
|
+
U([
|
|
3725
3725
|
a({ type: String, reflect: !0 })
|
|
3726
3726
|
], z.prototype, "width", 2);
|
|
3727
|
-
|
|
3727
|
+
U([
|
|
3728
3728
|
W()
|
|
3729
3729
|
], z.prototype, "open", 2);
|
|
3730
|
-
|
|
3730
|
+
U([
|
|
3731
3731
|
W()
|
|
3732
3732
|
], z.prototype, "activeIndex", 2);
|
|
3733
|
-
|
|
3733
|
+
U([
|
|
3734
3734
|
W()
|
|
3735
3735
|
], z.prototype, "menuWidth", 2);
|
|
3736
|
-
z =
|
|
3736
|
+
z = U([
|
|
3737
3737
|
g("o-dropdown-variant")
|
|
3738
3738
|
], z);
|
|
3739
3739
|
/**
|
|
@@ -4068,7 +4068,7 @@ ie([
|
|
|
4068
4068
|
_t = ie([
|
|
4069
4069
|
g("o-chipset")
|
|
4070
4070
|
], _t);
|
|
4071
|
-
var mi = Object.defineProperty, xi = Object.getOwnPropertyDescriptor,
|
|
4071
|
+
var mi = Object.defineProperty, xi = Object.getOwnPropertyDescriptor, N = (o, t, e, r) => {
|
|
4072
4072
|
for (var i = r > 1 ? void 0 : r ? xi(t, e) : t, n = o.length - 1, s; n >= 0; n--)
|
|
4073
4073
|
(s = o[n]) && (i = (r ? s(t, e, i) : s(i)) || i);
|
|
4074
4074
|
return r && i && mi(t, e, i), i;
|
|
@@ -4250,37 +4250,37 @@ I.styles = f`
|
|
|
4250
4250
|
}
|
|
4251
4251
|
}
|
|
4252
4252
|
`;
|
|
4253
|
-
|
|
4253
|
+
N([
|
|
4254
4254
|
a({ reflect: !0 })
|
|
4255
4255
|
], I.prototype, "name", 2);
|
|
4256
|
-
|
|
4256
|
+
N([
|
|
4257
4257
|
a({ reflect: !0 })
|
|
4258
4258
|
], I.prototype, "value", 2);
|
|
4259
|
-
|
|
4259
|
+
N([
|
|
4260
4260
|
a({ type: String, reflect: !0 })
|
|
4261
4261
|
], I.prototype, "type", 2);
|
|
4262
|
-
|
|
4262
|
+
N([
|
|
4263
4263
|
a({ type: String, reflect: !0 })
|
|
4264
4264
|
], I.prototype, "href", 2);
|
|
4265
|
-
|
|
4265
|
+
N([
|
|
4266
4266
|
a({ type: String, reflect: !0, attribute: "data-href" })
|
|
4267
4267
|
], I.prototype, "dataHref", 2);
|
|
4268
|
-
|
|
4268
|
+
N([
|
|
4269
4269
|
a({ type: String })
|
|
4270
4270
|
], I.prototype, "text", 2);
|
|
4271
|
-
|
|
4271
|
+
N([
|
|
4272
4272
|
a({ type: Boolean, reflect: !0 })
|
|
4273
4273
|
], I.prototype, "selected", 2);
|
|
4274
|
-
|
|
4274
|
+
N([
|
|
4275
4275
|
a({ type: Boolean, reflect: !0 })
|
|
4276
4276
|
], I.prototype, "disabled", 2);
|
|
4277
|
-
|
|
4277
|
+
N([
|
|
4278
4278
|
a({ type: Boolean, reflect: !0 })
|
|
4279
4279
|
], I.prototype, "fullwidth", 2);
|
|
4280
|
-
I =
|
|
4280
|
+
I = N([
|
|
4281
4281
|
g("o-filter-chip")
|
|
4282
4282
|
], I);
|
|
4283
|
-
var $i = Object.defineProperty,
|
|
4283
|
+
var $i = Object.defineProperty, M = (o, t, e, r) => {
|
|
4284
4284
|
for (var i = void 0, n = o.length - 1, s; n >= 0; n--)
|
|
4285
4285
|
(s = o[n]) && (i = s(t, e, i) || i);
|
|
4286
4286
|
return i && $i(t, e, i), i;
|
|
@@ -4289,198 +4289,218 @@ const se = class se extends p {
|
|
|
4289
4289
|
constructor() {
|
|
4290
4290
|
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 = "";
|
|
4291
4291
|
}
|
|
4292
|
-
onClick() {
|
|
4293
|
-
|
|
4292
|
+
onClick(t) {
|
|
4293
|
+
var r, i;
|
|
4294
|
+
const e = t.target;
|
|
4295
|
+
(r = e == null ? void 0 : e.classList) != null && r.contains("add-to-bag") || ((i = this.onClickTile) == null || i.call(this), this.dispatchEvent(
|
|
4296
|
+
new CustomEvent("tile-click", { bubbles: !0, composed: !0 })
|
|
4297
|
+
));
|
|
4298
|
+
}
|
|
4299
|
+
onClickIcons() {
|
|
4300
|
+
var t;
|
|
4301
|
+
(t = this.onClickIcon) == null || t.call(this), this.dispatchEvent(
|
|
4302
|
+
new CustomEvent("tile-icon-click", { bubbles: !0, composed: !0 })
|
|
4303
|
+
);
|
|
4294
4304
|
}
|
|
4295
4305
|
get icons() {
|
|
4296
4306
|
return this.type === "chevron" ? l`
|
|
4297
|
-
|
|
4298
|
-
|
|
4299
|
-
|
|
4300
|
-
|
|
4301
|
-
|
|
4302
|
-
|
|
4303
|
-
|
|
4304
|
-
|
|
4305
|
-
|
|
4306
|
-
|
|
4307
|
-
|
|
4308
|
-
|
|
4309
|
-
|
|
4310
|
-
|
|
4311
|
-
|
|
4312
|
-
|
|
4313
|
-
|
|
4314
|
-
|
|
4315
|
-
|
|
4316
|
-
|
|
4317
|
-
|
|
4307
|
+
<o-icon-button
|
|
4308
|
+
@click=${this.onClickIcons}
|
|
4309
|
+
icon="chevronRight"
|
|
4310
|
+
size="small"
|
|
4311
|
+
bgstyle="background-contrast"
|
|
4312
|
+
type="span"
|
|
4313
|
+
status="filled"
|
|
4314
|
+
strokewidth="0"
|
|
4315
|
+
aria-hidden="true"
|
|
4316
|
+
tabindex="-1"
|
|
4317
|
+
class="chevron-icon"
|
|
4318
|
+
></o-icon-button>
|
|
4319
|
+
` : l`
|
|
4320
|
+
<o-icon-button
|
|
4321
|
+
@click=${this.onClickIcons}
|
|
4322
|
+
icon="cart"
|
|
4323
|
+
size="small"
|
|
4324
|
+
bgstyle="background-contrast"
|
|
4325
|
+
type="span"
|
|
4326
|
+
status="empty"
|
|
4327
|
+
strokewidth="0"
|
|
4328
|
+
class="add-to-bag"
|
|
4329
|
+
></o-icon-button>
|
|
4330
|
+
`;
|
|
4318
4331
|
}
|
|
4319
4332
|
render() {
|
|
4320
4333
|
return l`
|
|
4321
|
-
|
|
4322
|
-
|
|
4323
|
-
|
|
4324
|
-
|
|
4325
|
-
|
|
4326
|
-
|
|
4327
|
-
|
|
4328
|
-
|
|
4329
|
-
|
|
4330
|
-
|
|
4331
|
-
|
|
4332
|
-
|
|
4333
|
-
|
|
4334
|
-
|
|
4334
|
+
<button
|
|
4335
|
+
type="button"
|
|
4336
|
+
class="tile fullpointer ${this.fullwidth ? "fullwidth" : ""}"
|
|
4337
|
+
@click=${this.onClick}
|
|
4338
|
+
>
|
|
4339
|
+
${this.imageUrl ? l`<img src="${this.imageUrl}" alt="${this.altImage || ""}" />` : ""}
|
|
4340
|
+
<div class="info">
|
|
4341
|
+
${this.tagText ? l`<o-tag bgstyle="background-emphasis">${this.tagText}</o-tag>` : ""}
|
|
4342
|
+
${this.titleProduct ? l`<div class="title">${this.titleProduct}</div>` : ""}
|
|
4343
|
+
<div class="details">
|
|
4344
|
+
${this.volume ? l`<span class="volume-info">${this.volume}</span>` : ""}
|
|
4345
|
+
${this.type === "cart" && this.mainPrice ? l`<span class="main-price">${this.mainPrice}</span>` : ""}
|
|
4346
|
+
${this.type === "cart" && this.perLiter ? l`<span class="per-liter">${this.perLiter}</span>` : ""}
|
|
4347
|
+
</div>
|
|
4348
|
+
</div>
|
|
4349
|
+
${this.icons}
|
|
4350
|
+
</button>
|
|
4335
4351
|
`;
|
|
4336
4352
|
}
|
|
4337
4353
|
};
|
|
4338
4354
|
se.styles = f`
|
|
4339
4355
|
:host {
|
|
4340
|
-
|
|
4341
|
-
|
|
4356
|
+
display: block;
|
|
4357
|
+
max-width: 100%;
|
|
4342
4358
|
}
|
|
4343
|
-
|
|
4359
|
+
|
|
4344
4360
|
.tile {
|
|
4345
|
-
|
|
4346
|
-
|
|
4347
|
-
|
|
4348
|
-
|
|
4349
|
-
|
|
4350
|
-
|
|
4351
|
-
|
|
4352
|
-
|
|
4353
|
-
|
|
4354
|
-
|
|
4355
|
-
|
|
4356
|
-
|
|
4357
|
-
|
|
4358
|
-
|
|
4359
|
-
|
|
4360
|
-
o-icon-button {
|
|
4361
|
-
margin-left: var(--spacing-xl);
|
|
4362
|
-
}
|
|
4363
|
-
}
|
|
4361
|
+
display: flex;
|
|
4362
|
+
align-items: center;
|
|
4363
|
+
justify-content: space-between;
|
|
4364
|
+
border-radius: var(--radius-xs);
|
|
4365
|
+
background: var(--color-container-bg-white);
|
|
4366
|
+
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
|
|
4367
|
+
font-family: var(--font-family-loccitane-sans);
|
|
4368
|
+
height: 70px;
|
|
4369
|
+
width: 356px;
|
|
4370
|
+
max-width: 356px;
|
|
4371
|
+
padding: var(--spacing-2-xs) var(--spacing-s) var(--spacing-2-xs)
|
|
4372
|
+
var(--spacing-2-xs);
|
|
4373
|
+
margin: 0;
|
|
4374
|
+
border: 0 none;
|
|
4375
|
+
box-sizing: content-box;
|
|
4364
4376
|
|
|
4365
|
-
|
|
4366
|
-
|
|
4367
|
-
|
|
4368
|
-
|
|
4377
|
+
o-icon-button {
|
|
4378
|
+
margin-left: var(--spacing-xl);
|
|
4379
|
+
}
|
|
4380
|
+
}
|
|
4369
4381
|
|
|
4370
|
-
|
|
4371
|
-
|
|
4372
|
-
|
|
4373
|
-
|
|
4374
|
-
background: linear-gradient(to bottom, #F9F5F0, #F7F2EA);
|
|
4375
|
-
}
|
|
4382
|
+
.tile.fullwidth {
|
|
4383
|
+
width: 100%;
|
|
4384
|
+
max-width: 100%;
|
|
4385
|
+
}
|
|
4376
4386
|
|
|
4377
|
-
|
|
4378
|
-
|
|
4379
|
-
|
|
4380
|
-
|
|
4387
|
+
.tile img {
|
|
4388
|
+
object-fit: cover;
|
|
4389
|
+
width: 56px;
|
|
4390
|
+
height: 70px;
|
|
4391
|
+
background: linear-gradient(to bottom, #f9f5f0, #f7f2ea);
|
|
4392
|
+
}
|
|
4381
4393
|
|
|
4382
|
-
|
|
4383
|
-
|
|
4384
|
-
|
|
4385
|
-
|
|
4386
|
-
color: var(--colors-noir-des-terres-500);
|
|
4387
|
-
line-height: var(--line-height-160);
|
|
4388
|
-
letter-spacing: var(--letter-spacing-100);
|
|
4389
|
-
text-align: left;
|
|
4390
|
-
max-height: 32px;
|
|
4391
|
-
overflow: hidden;
|
|
4392
|
-
text-overflow: ellipsis;
|
|
4393
|
-
display: -webkit-box;
|
|
4394
|
-
-webkit-line-clamp: 2;
|
|
4395
|
-
-webkit-box-orient: vertical;
|
|
4396
|
-
|
|
4397
|
-
+.details {
|
|
4398
|
-
padding-top: var(--spacing-s);
|
|
4399
|
-
overflow: hidden;
|
|
4400
|
-
text-overflow: ellipsis;
|
|
4401
|
-
display: -webkit-box;
|
|
4402
|
-
-webkit-line-clamp: 1;
|
|
4403
|
-
-webkit-box-orient: vertical;
|
|
4404
|
-
text-align: left;
|
|
4405
|
-
}
|
|
4406
|
-
}
|
|
4394
|
+
.info {
|
|
4395
|
+
flex-grow: 1;
|
|
4396
|
+
margin-left: 10px;
|
|
4397
|
+
}
|
|
4407
4398
|
|
|
4408
|
-
|
|
4409
|
-
|
|
4410
|
-
|
|
4411
|
-
|
|
4399
|
+
.info .title {
|
|
4400
|
+
font-family: var(--font-family-loccitane-serif);
|
|
4401
|
+
font-size: var(--font-size-150);
|
|
4402
|
+
font-weight: var(--font-weight-400);
|
|
4403
|
+
color: var(--colors-noir-des-terres-500);
|
|
4404
|
+
line-height: var(--line-height-160);
|
|
4405
|
+
letter-spacing: var(--letter-spacing-100);
|
|
4406
|
+
text-align: left;
|
|
4407
|
+
max-height: 32px;
|
|
4408
|
+
overflow: hidden;
|
|
4409
|
+
text-overflow: ellipsis;
|
|
4410
|
+
display: -webkit-box;
|
|
4411
|
+
-webkit-line-clamp: 2;
|
|
4412
|
+
-webkit-box-orient: vertical;
|
|
4412
4413
|
|
|
4413
|
-
|
|
4414
|
-
|
|
4415
|
-
|
|
4416
|
-
|
|
4417
|
-
|
|
4414
|
+
+ .details {
|
|
4415
|
+
padding-top: var(--spacing-s);
|
|
4416
|
+
overflow: hidden;
|
|
4417
|
+
text-overflow: ellipsis;
|
|
4418
|
+
display: -webkit-box;
|
|
4419
|
+
-webkit-line-clamp: 1;
|
|
4420
|
+
-webkit-box-orient: vertical;
|
|
4421
|
+
text-align: left;
|
|
4422
|
+
}
|
|
4423
|
+
}
|
|
4418
4424
|
|
|
4419
|
-
|
|
4420
|
-
|
|
4421
|
-
|
|
4422
|
-
|
|
4423
|
-
color: var(--colors-noir-des-terres-500);
|
|
4424
|
-
}
|
|
4425
|
-
}
|
|
4426
|
-
}
|
|
4425
|
+
.info .details {
|
|
4426
|
+
display: flex;
|
|
4427
|
+
align-items: center;
|
|
4428
|
+
}
|
|
4427
4429
|
|
|
4428
|
-
|
|
4429
|
-
|
|
4430
|
-
|
|
4431
|
-
|
|
4430
|
+
.info .volume-info {
|
|
4431
|
+
font-size: var(--font-size-100);
|
|
4432
|
+
color: var(--colors-noir-des-terres-500);
|
|
4433
|
+
font-family: var(--font-family-loccitane-sans);
|
|
4434
|
+
line-height: var(--line-height-160);
|
|
4432
4435
|
|
|
4433
|
-
|
|
4434
|
-
|
|
4436
|
+
+ .main-price {
|
|
4437
|
+
&::before {
|
|
4438
|
+
content: "•";
|
|
4439
|
+
padding: 0 var(--spacing-xs) 0 var(--spacing-2-xs);
|
|
4435
4440
|
color: var(--colors-noir-des-terres-500);
|
|
4436
|
-
font-size: var(--font-size-100);
|
|
4437
|
-
padding: 0 var(--spacing-xs) 0 0;
|
|
4438
|
-
font-weight: var(--font-weight-400);
|
|
4439
4441
|
}
|
|
4442
|
+
}
|
|
4443
|
+
}
|
|
4440
4444
|
|
|
4441
|
-
|
|
4442
|
-
|
|
4443
|
-
|
|
4444
|
-
|
|
4445
|
-
line-height: var(--line-height-160);
|
|
4446
|
-
}
|
|
4445
|
+
.info o-tag {
|
|
4446
|
+
margin-bottom: var(--spacing-xs);
|
|
4447
|
+
display: flex;
|
|
4448
|
+
}
|
|
4447
4449
|
|
|
4448
|
-
|
|
4449
|
-
|
|
4450
|
-
|
|
4450
|
+
.main-price {
|
|
4451
|
+
font-family: var(--font-family-loccitane-sans);
|
|
4452
|
+
color: var(--colors-noir-des-terres-500);
|
|
4453
|
+
font-size: var(--font-size-100);
|
|
4454
|
+
padding: 0 var(--spacing-xs) 0 0;
|
|
4455
|
+
font-weight: var(--font-weight-400);
|
|
4456
|
+
}
|
|
4457
|
+
|
|
4458
|
+
.per-liter {
|
|
4459
|
+
font-size: var(--font-size-100);
|
|
4460
|
+
color: var(--color-content-description);
|
|
4461
|
+
letter-spacing: var(--letter-spacing-absolute);
|
|
4462
|
+
line-height: var(--line-height-160);
|
|
4463
|
+
}
|
|
4464
|
+
|
|
4465
|
+
.fullpointer {
|
|
4466
|
+
cursor: pointer;
|
|
4467
|
+
}
|
|
4451
4468
|
`;
|
|
4452
|
-
let
|
|
4453
|
-
|
|
4469
|
+
let E = se;
|
|
4470
|
+
M([
|
|
4454
4471
|
a({ type: String })
|
|
4455
|
-
],
|
|
4456
|
-
|
|
4472
|
+
], E.prototype, "type");
|
|
4473
|
+
M([
|
|
4457
4474
|
a({ type: String })
|
|
4458
|
-
],
|
|
4459
|
-
|
|
4475
|
+
], E.prototype, "titleProduct");
|
|
4476
|
+
M([
|
|
4460
4477
|
a({ type: String })
|
|
4461
|
-
],
|
|
4462
|
-
|
|
4478
|
+
], E.prototype, "volume");
|
|
4479
|
+
M([
|
|
4463
4480
|
a({ type: String })
|
|
4464
|
-
],
|
|
4465
|
-
|
|
4481
|
+
], E.prototype, "perLiter");
|
|
4482
|
+
M([
|
|
4466
4483
|
a({ type: String })
|
|
4467
|
-
],
|
|
4468
|
-
|
|
4484
|
+
], E.prototype, "mainPrice");
|
|
4485
|
+
M([
|
|
4469
4486
|
a({ type: String })
|
|
4470
|
-
],
|
|
4471
|
-
|
|
4487
|
+
], E.prototype, "imageUrl");
|
|
4488
|
+
M([
|
|
4472
4489
|
a({ type: String })
|
|
4473
|
-
],
|
|
4474
|
-
|
|
4490
|
+
], E.prototype, "altImage");
|
|
4491
|
+
M([
|
|
4475
4492
|
a({ type: Boolean })
|
|
4476
|
-
],
|
|
4477
|
-
|
|
4493
|
+
], E.prototype, "fullwidth");
|
|
4494
|
+
M([
|
|
4478
4495
|
a({ type: String })
|
|
4479
|
-
],
|
|
4480
|
-
|
|
4481
|
-
a({
|
|
4482
|
-
],
|
|
4483
|
-
|
|
4496
|
+
], E.prototype, "tagText");
|
|
4497
|
+
M([
|
|
4498
|
+
a({ attribute: !1 })
|
|
4499
|
+
], E.prototype, "onClickTile");
|
|
4500
|
+
M([
|
|
4501
|
+
a({ attribute: !1 })
|
|
4502
|
+
], E.prototype, "onClickIcon");
|
|
4503
|
+
customElements.define("mini-tile", E);
|
|
4484
4504
|
var ki = Object.defineProperty, _i = Object.getOwnPropertyDescriptor, re = (o, t, e, r) => {
|
|
4485
4505
|
for (var i = r > 1 ? void 0 : r ? _i(t, e) : t, n = o.length - 1, s; n >= 0; n--)
|
|
4486
4506
|
(s = o[n]) && (i = (r ? s(t, e, i) : s(i)) || i);
|
|
@@ -4547,7 +4567,7 @@ var Ci = Object.defineProperty, Si = Object.getOwnPropertyDescriptor, H = (o, t,
|
|
|
4547
4567
|
(s = o[n]) && (i = (r ? s(t, e, i) : s(i)) || i);
|
|
4548
4568
|
return r && i && Ci(t, e, i), i;
|
|
4549
4569
|
};
|
|
4550
|
-
let
|
|
4570
|
+
let A = class extends p {
|
|
4551
4571
|
constructor() {
|
|
4552
4572
|
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;
|
|
4553
4573
|
}
|
|
@@ -4611,7 +4631,7 @@ let E = class extends p {
|
|
|
4611
4631
|
`;
|
|
4612
4632
|
}
|
|
4613
4633
|
};
|
|
4614
|
-
|
|
4634
|
+
A.styles = f`
|
|
4615
4635
|
:host {
|
|
4616
4636
|
--vertical-offset: 24px;
|
|
4617
4637
|
--horizontal-offset: 24px;
|
|
@@ -4691,41 +4711,41 @@ E.styles = f`
|
|
|
4691
4711
|
`;
|
|
4692
4712
|
H([
|
|
4693
4713
|
a({ type: String, reflect: !0 })
|
|
4694
|
-
],
|
|
4714
|
+
], A.prototype, "icon", 2);
|
|
4695
4715
|
H([
|
|
4696
4716
|
a({ type: String, reflect: !0 })
|
|
4697
|
-
],
|
|
4717
|
+
], A.prototype, "text", 2);
|
|
4698
4718
|
H([
|
|
4699
4719
|
a({ type: String, reflect: !0 })
|
|
4700
|
-
],
|
|
4720
|
+
], A.prototype, "verticalanchor", 2);
|
|
4701
4721
|
H([
|
|
4702
4722
|
a({ type: String, reflect: !0 })
|
|
4703
|
-
],
|
|
4723
|
+
], A.prototype, "horizontalanchor", 2);
|
|
4704
4724
|
H([
|
|
4705
4725
|
a({ type: Number, reflect: !0 })
|
|
4706
|
-
],
|
|
4726
|
+
], A.prototype, "verticaloffset", 2);
|
|
4707
4727
|
H([
|
|
4708
4728
|
a({ type: Number, reflect: !0 })
|
|
4709
|
-
],
|
|
4729
|
+
], A.prototype, "horizontaloffset", 2);
|
|
4710
4730
|
H([
|
|
4711
4731
|
a({ type: Number, reflect: !0 })
|
|
4712
|
-
],
|
|
4732
|
+
], A.prototype, "animationduration", 2);
|
|
4713
4733
|
H([
|
|
4714
4734
|
a({ type: String, reflect: !0 })
|
|
4715
|
-
],
|
|
4735
|
+
], A.prototype, "animationaxis", 2);
|
|
4716
4736
|
H([
|
|
4717
4737
|
a({ type: Boolean, reflect: !0 })
|
|
4718
|
-
],
|
|
4738
|
+
], A.prototype, "animated", 2);
|
|
4719
4739
|
H([
|
|
4720
4740
|
a({ type: Number, reflect: !0 })
|
|
4721
|
-
],
|
|
4741
|
+
], A.prototype, "lifeduration", 2);
|
|
4722
4742
|
H([
|
|
4723
4743
|
a({ type: Boolean, reflect: !0 })
|
|
4724
|
-
],
|
|
4725
|
-
|
|
4744
|
+
], A.prototype, "multiline", 2);
|
|
4745
|
+
A = H([
|
|
4726
4746
|
g("o-toast")
|
|
4727
|
-
],
|
|
4728
|
-
var Ei = Object.defineProperty, Ai = Object.getOwnPropertyDescriptor,
|
|
4747
|
+
], A);
|
|
4748
|
+
var Ei = Object.defineProperty, Ai = Object.getOwnPropertyDescriptor, j = (o, t, e, r) => {
|
|
4729
4749
|
for (var i = r > 1 ? void 0 : r ? Ai(t, e) : t, n = o.length - 1, s; n >= 0; n--)
|
|
4730
4750
|
(s = o[n]) && (i = (r ? s(t, e, i) : s(i)) || i);
|
|
4731
4751
|
return r && i && Ei(t, e, i), i;
|
|
@@ -4874,37 +4894,37 @@ L.styles = f`
|
|
|
4874
4894
|
stroke: var(--color-border-white);
|
|
4875
4895
|
}
|
|
4876
4896
|
`;
|
|
4877
|
-
|
|
4897
|
+
j([
|
|
4878
4898
|
a({ type: Boolean, reflect: !0 })
|
|
4879
4899
|
], L.prototype, "checked", 2);
|
|
4880
|
-
|
|
4900
|
+
j([
|
|
4881
4901
|
a({ type: Boolean, reflect: !0 })
|
|
4882
4902
|
], L.prototype, "indeterminate", 2);
|
|
4883
|
-
|
|
4903
|
+
j([
|
|
4884
4904
|
a({ type: Boolean, reflect: !0 })
|
|
4885
4905
|
], L.prototype, "disabled", 2);
|
|
4886
|
-
|
|
4906
|
+
j([
|
|
4887
4907
|
a({ type: String, reflect: !0 })
|
|
4888
4908
|
], L.prototype, "size", 2);
|
|
4889
|
-
|
|
4909
|
+
j([
|
|
4890
4910
|
a({ type: Boolean })
|
|
4891
4911
|
], L.prototype, "showLabel", 2);
|
|
4892
|
-
|
|
4912
|
+
j([
|
|
4893
4913
|
a({ type: String })
|
|
4894
4914
|
], L.prototype, "label", 2);
|
|
4895
|
-
|
|
4915
|
+
j([
|
|
4896
4916
|
a({ type: String })
|
|
4897
4917
|
], L.prototype, "name", 2);
|
|
4898
|
-
|
|
4918
|
+
j([
|
|
4899
4919
|
a({ type: String })
|
|
4900
4920
|
], L.prototype, "value", 2);
|
|
4901
|
-
|
|
4921
|
+
j([
|
|
4902
4922
|
a({ type: String, reflect: !0 })
|
|
4903
4923
|
], L.prototype, "inputId", 2);
|
|
4904
|
-
|
|
4924
|
+
j([
|
|
4905
4925
|
Ce("input")
|
|
4906
4926
|
], L.prototype, "inputEl", 2);
|
|
4907
|
-
L =
|
|
4927
|
+
L = j([
|
|
4908
4928
|
g("o-checkbox")
|
|
4909
4929
|
], L);
|
|
4910
4930
|
var Pi = Object.defineProperty, Bi = Object.getOwnPropertyDescriptor, q = (o, t, e, r) => {
|