@florid-kit/components 0.9.20 → 0.9.22
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/aria.d.ts +1 -1
- package/components/side-panel.d.ts +2 -0
- package/index.js +79 -69
- package/index.mjs +213 -191
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Copyright 2019 Google LLC
|
|
4
4
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
5
5
|
*/
|
|
6
|
-
const
|
|
6
|
+
const Ct = globalThis, jt = Ct.ShadowRoot && (Ct.ShadyCSS === void 0 || Ct.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, Rt = Symbol(), ee = /* @__PURE__ */ new WeakMap();
|
|
7
7
|
let ue = class {
|
|
8
8
|
constructor(t, e, r) {
|
|
9
9
|
if (this._$cssResult$ = !0, r !== Rt) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
@@ -32,7 +32,7 @@ const we = (o) => new ue(typeof o == "string" ? o : o + "", void 0, Rt), v = (o,
|
|
|
32
32
|
}, $e = (o, t) => {
|
|
33
33
|
if (jt) o.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
|
|
34
34
|
else for (const e of t) {
|
|
35
|
-
const r = document.createElement("style"), i =
|
|
35
|
+
const r = document.createElement("style"), i = Ct.litNonce;
|
|
36
36
|
i !== void 0 && r.setAttribute("nonce", i), r.textContent = e.cssText, o.appendChild(r);
|
|
37
37
|
}
|
|
38
38
|
}, oe = jt ? (o) => o : (o) => o instanceof CSSStyleSheet ? ((t) => {
|
|
@@ -45,7 +45,7 @@ const we = (o) => new ue(typeof o == "string" ? o : o + "", void 0, Rt), v = (o,
|
|
|
45
45
|
* Copyright 2017 Google LLC
|
|
46
46
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
47
47
|
*/
|
|
48
|
-
const { is:
|
|
48
|
+
const { is: Ce, defineProperty: _e, getOwnPropertyDescriptor: ke, getOwnPropertyNames: Se, getOwnPropertySymbols: Ae, getPrototypeOf: Ee } = Object, W = globalThis, ie = W.trustedTypes, Le = ie ? ie.emptyScript : "", Pt = W.reactiveElementPolyfillSupport, ct = (o, t) => o, _t = { toAttribute(o, t) {
|
|
49
49
|
switch (t) {
|
|
50
50
|
case Boolean:
|
|
51
51
|
o = o ? Le : null;
|
|
@@ -73,7 +73,7 @@ const { is: _e, defineProperty: Ce, getOwnPropertyDescriptor: ke, getOwnProperty
|
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
75
|
return e;
|
|
76
|
-
} }, Nt = (o, t) => !
|
|
76
|
+
} }, Nt = (o, t) => !Ce(o, t), re = { attribute: !0, type: String, converter: _t, reflect: !1, useDefault: !1, hasChanged: Nt };
|
|
77
77
|
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), W.litPropertyMetadata ?? (W.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
|
78
78
|
let rt = class extends HTMLElement {
|
|
79
79
|
static addInitializer(t) {
|
|
@@ -85,7 +85,7 @@ let rt = class extends HTMLElement {
|
|
|
85
85
|
static createProperty(t, e = re) {
|
|
86
86
|
if (e.state && (e.attribute = !1), this._$Ei(), this.prototype.hasOwnProperty(t) && ((e = Object.create(e)).wrapped = !0), this.elementProperties.set(t, e), !e.noAccessor) {
|
|
87
87
|
const r = Symbol(), i = this.getPropertyDescriptor(t, r, e);
|
|
88
|
-
i !== void 0 &&
|
|
88
|
+
i !== void 0 && _e(this.prototype, t, i);
|
|
89
89
|
}
|
|
90
90
|
}
|
|
91
91
|
static getPropertyDescriptor(t, e, r) {
|
|
@@ -184,7 +184,7 @@ let rt = class extends HTMLElement {
|
|
|
184
184
|
var n;
|
|
185
185
|
const r = this.constructor.elementProperties.get(t), i = this.constructor._$Eu(t, r);
|
|
186
186
|
if (i !== void 0 && r.reflect === !0) {
|
|
187
|
-
const s = (((n = r.converter) == null ? void 0 : n.toAttribute) !== void 0 ? r.converter :
|
|
187
|
+
const s = (((n = r.converter) == null ? void 0 : n.toAttribute) !== void 0 ? r.converter : _t).toAttribute(e, r.type);
|
|
188
188
|
this._$Em = t, s == null ? this.removeAttribute(i) : this.setAttribute(i, s), this._$Em = null;
|
|
189
189
|
}
|
|
190
190
|
}
|
|
@@ -192,7 +192,7 @@ let rt = class extends HTMLElement {
|
|
|
192
192
|
var n, s;
|
|
193
193
|
const r = this.constructor, i = r._$Eh.get(t);
|
|
194
194
|
if (i !== void 0 && this._$Em !== i) {
|
|
195
|
-
const h = r.getPropertyOptions(i), c = typeof h.converter == "function" ? { fromAttribute: h.converter } : ((n = h.converter) == null ? void 0 : n.fromAttribute) !== void 0 ? h.converter :
|
|
195
|
+
const h = r.getPropertyOptions(i), c = typeof h.converter == "function" ? { fromAttribute: h.converter } : ((n = h.converter) == null ? void 0 : n.fromAttribute) !== void 0 ? h.converter : _t;
|
|
196
196
|
this._$Em = i, this[i] = c.fromAttribute(e, h.type) ?? ((s = this._$Ej) == null ? void 0 : s.get(i)) ?? null, this._$Em = null;
|
|
197
197
|
}
|
|
198
198
|
}
|
|
@@ -519,7 +519,7 @@ const je = (o, t, e) => {
|
|
|
519
519
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
520
520
|
*/
|
|
521
521
|
const Y = globalThis;
|
|
522
|
-
let
|
|
522
|
+
let u = class extends rt {
|
|
523
523
|
constructor() {
|
|
524
524
|
super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
|
|
525
525
|
}
|
|
@@ -545,16 +545,16 @@ let p = class extends rt {
|
|
|
545
545
|
}
|
|
546
546
|
};
|
|
547
547
|
var pe;
|
|
548
|
-
|
|
548
|
+
u._$litElement$ = !0, u.finalized = !0, (pe = Y.litElementHydrateSupport) == null || pe.call(Y, { LitElement: u });
|
|
549
549
|
const zt = Y.litElementPolyfillSupport;
|
|
550
|
-
zt == null || zt({ LitElement:
|
|
550
|
+
zt == null || zt({ LitElement: u });
|
|
551
551
|
(Y.litElementVersions ?? (Y.litElementVersions = [])).push("4.2.0");
|
|
552
552
|
/**
|
|
553
553
|
* @license
|
|
554
554
|
* Copyright 2017 Google LLC
|
|
555
555
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
556
556
|
*/
|
|
557
|
-
const
|
|
557
|
+
const g = (o) => (t, e) => {
|
|
558
558
|
e !== void 0 ? e.addInitializer(() => {
|
|
559
559
|
customElements.define(o, t);
|
|
560
560
|
}) : customElements.define(o, t);
|
|
@@ -564,7 +564,7 @@ const b = (o) => (t, e) => {
|
|
|
564
564
|
* Copyright 2017 Google LLC
|
|
565
565
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
566
566
|
*/
|
|
567
|
-
const Re = { attribute: !0, type: String, converter:
|
|
567
|
+
const Re = { attribute: !0, type: String, converter: _t, reflect: !1, hasChanged: Nt }, Ne = (o = Re, t, e) => {
|
|
568
568
|
const { kind: r, metadata: i } = e;
|
|
569
569
|
let n = globalThis.litPropertyMetadata.get(i);
|
|
570
570
|
if (n === void 0 && globalThis.litPropertyMetadata.set(i, n = /* @__PURE__ */ new Map()), r === "setter" && ((o = Object.create(o)).wrapped = !0), n.set(e.name, o), r === "accessor") {
|
|
@@ -855,7 +855,7 @@ Dt.directiveName = "unsafeHTML", Dt.resultType = 1;
|
|
|
855
855
|
class Ht extends Dt {
|
|
856
856
|
}
|
|
857
857
|
Ht.directiveName = "unsafeSVG", Ht.resultType = 2;
|
|
858
|
-
const
|
|
858
|
+
const C = Zt(Ht);
|
|
859
859
|
/**
|
|
860
860
|
* @license
|
|
861
861
|
* Copyright 2020 Google LLC
|
|
@@ -887,17 +887,17 @@ const dt = (o, t) => {
|
|
|
887
887
|
e.add(o), ko(t);
|
|
888
888
|
}
|
|
889
889
|
};
|
|
890
|
-
function
|
|
890
|
+
function Co(o) {
|
|
891
891
|
this._$AN !== void 0 ? (St(this), this._$AM = o, me(this)) : this._$AM = o;
|
|
892
892
|
}
|
|
893
|
-
function
|
|
893
|
+
function _o(o, t = !1, e = 0) {
|
|
894
894
|
const r = this._$AH, i = this._$AN;
|
|
895
895
|
if (i !== void 0 && i.size !== 0) if (t) if (Array.isArray(r)) for (let n = e; n < r.length; n++) dt(r[n], !1), St(r[n]);
|
|
896
896
|
else r != null && (dt(r, !1), St(r));
|
|
897
897
|
else dt(this, o);
|
|
898
898
|
}
|
|
899
899
|
const ko = (o) => {
|
|
900
|
-
o.type == qt.CHILD && (o._$AP ?? (o._$AP =
|
|
900
|
+
o.type == qt.CHILD && (o._$AP ?? (o._$AP = _o), o._$AQ ?? (o._$AQ = Co));
|
|
901
901
|
};
|
|
902
902
|
class So extends Kt {
|
|
903
903
|
constructor() {
|
|
@@ -1054,7 +1054,7 @@ var Po = Object.defineProperty, Oo = Object.getOwnPropertyDescriptor, H = (o, t,
|
|
|
1054
1054
|
(s = o[n]) && (i = (r ? s(t, e, i) : s(i)) || i);
|
|
1055
1055
|
return r && i && Po(t, e, i), i;
|
|
1056
1056
|
};
|
|
1057
|
-
let A = class extends
|
|
1057
|
+
let A = class extends u {
|
|
1058
1058
|
constructor() {
|
|
1059
1059
|
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 = "";
|
|
1060
1060
|
}
|
|
@@ -1066,7 +1066,7 @@ let A = class extends p {
|
|
|
1066
1066
|
return l`
|
|
1067
1067
|
${this.type === "span" ? l`
|
|
1068
1068
|
<span class="icon icon-button ${this.size} ${this.bgstyle} ${this.status} ${t}" ?disabled="${this.disabled}">
|
|
1069
|
-
${
|
|
1069
|
+
${C(e)}
|
|
1070
1070
|
</span>
|
|
1071
1071
|
` : l`
|
|
1072
1072
|
<button
|
|
@@ -1075,7 +1075,7 @@ let A = class extends p {
|
|
|
1075
1075
|
class="icon-button ${this.size} ${this.bgstyle} ${this.status} ${t}"
|
|
1076
1076
|
?disabled="${this.disabled}"
|
|
1077
1077
|
>
|
|
1078
|
-
${
|
|
1078
|
+
${C(e)}
|
|
1079
1079
|
${r}
|
|
1080
1080
|
</button>
|
|
1081
1081
|
`}
|
|
@@ -1322,16 +1322,16 @@ H([
|
|
|
1322
1322
|
a({ type: String })
|
|
1323
1323
|
], A.prototype, "srLabel", 2);
|
|
1324
1324
|
A = H([
|
|
1325
|
-
|
|
1325
|
+
g("o-icon-button")
|
|
1326
1326
|
], A);
|
|
1327
|
-
var Io = Object.defineProperty, zo = Object.getOwnPropertyDescriptor,
|
|
1327
|
+
var Io = Object.defineProperty, zo = Object.getOwnPropertyDescriptor, b = (o, t, e, r) => {
|
|
1328
1328
|
for (var i = r > 1 ? void 0 : r ? zo(t, e) : t, n = o.length - 1, s; n >= 0; n--)
|
|
1329
1329
|
(s = o[n]) && (i = (r ? s(t, e, i) : s(i)) || i);
|
|
1330
1330
|
return r && i && Io(t, e, i), i;
|
|
1331
1331
|
};
|
|
1332
|
-
let
|
|
1332
|
+
let p = class extends u {
|
|
1333
1333
|
constructor() {
|
|
1334
|
-
super(...arguments), this.open = !1, this.showHeader = !0, this.showFooter = !1, this.showHeaderStartIcon = !1, this.headerTitle = "", this.headerTitleClassName = "panel-title", this.closeButtonLabel = "Close the modal", this.firstButtonLabel = "Close", this.firstButtonVariant = "primary", this.firstButtonProps = {}, this.onFirstButtonClickClose = !1, this.secondButtonLabel = "", this.secondButtonVariant = "secondary", this.secondButtonProps = {}, this.onSecondButtonClickClose = !1, this.disablePortal = !1, this.zIndex = 99, this.initialized = !1, this.showDetail = !1, this.isHidingDetail = !1, this.previousFocusedElement = null, this._onOpenDetail = async (o) => {
|
|
1334
|
+
super(...arguments), this.open = !1, this.showHeader = !0, this.showFooter = !1, this.showHeaderStartIcon = !1, this.headerTitle = "", this.headerTitleClassName = "panel-title", this.labelDialog = "", 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) => {
|
|
1335
1335
|
var e, r;
|
|
1336
1336
|
const t = ((e = o.detail) == null ? void 0 : e.origin) ?? document.activeElement;
|
|
1337
1337
|
if (this._detailOriginEl = t, this._detailOriginClass = (t == null ? void 0 : t.className) ?? "", this.showDetail = !0, this.showHeaderStartIcon = !0, await this.updateComplete, this._detailOriginClass) {
|
|
@@ -1364,7 +1364,7 @@ let u = class extends p {
|
|
|
1364
1364
|
this.closePanel();
|
|
1365
1365
|
}, this._onDetailSlotChange = (o) => {
|
|
1366
1366
|
const r = o.target.assignedElements({ flatten: !0 }).flatMap((i) => Array.from(i.querySelectorAll("img")))[0];
|
|
1367
|
-
r
|
|
1367
|
+
r && (r.setAttribute("role", "img"), r.hasAttribute("tabindex") || r.setAttribute("tabindex", "-1"));
|
|
1368
1368
|
};
|
|
1369
1369
|
}
|
|
1370
1370
|
connectedCallback() {
|
|
@@ -1376,7 +1376,7 @@ let u = class extends p {
|
|
|
1376
1376
|
document.body.style.overflow = "", document.body.removeAttribute("data-side-panel"), this.removeEventListener("keydown", this.handleKeyDown), super.disconnectedCallback(), this.removeEventListener("open-detail", this._onOpenDetail);
|
|
1377
1377
|
}
|
|
1378
1378
|
async focusDetailReturnBtn() {
|
|
1379
|
-
var
|
|
1379
|
+
var i, n, s, h, c;
|
|
1380
1380
|
await this.updateComplete;
|
|
1381
1381
|
const o = this.getDeepActiveElement(document);
|
|
1382
1382
|
if (o && o !== document.body)
|
|
@@ -1385,9 +1385,11 @@ let u = class extends p {
|
|
|
1385
1385
|
} catch {
|
|
1386
1386
|
}
|
|
1387
1387
|
await new Promise(requestAnimationFrame);
|
|
1388
|
-
const t = (
|
|
1388
|
+
const t = (i = this.shadowRoot) == null ? void 0 : i.querySelector(".detail-view .return-btn");
|
|
1389
1389
|
if (!t) return;
|
|
1390
|
-
t.updateComplete && await t.updateComplete, (
|
|
1390
|
+
t.updateComplete && await t.updateComplete, (h = (s = ((n = t.shadowRoot) == null ? void 0 : n.querySelector("button")) ?? t) == null ? void 0 : s.focus) == null || h.call(s, { preventScroll: !0 });
|
|
1391
|
+
const r = (c = this.shadowRoot) == null ? void 0 : c.querySelector('.panel[role="dialog"]');
|
|
1392
|
+
r && r.setAttribute("aria-label", this.headerTitle);
|
|
1391
1393
|
}
|
|
1392
1394
|
_setPriceTabindex() {
|
|
1393
1395
|
var r;
|
|
@@ -1432,7 +1434,7 @@ let u = class extends p {
|
|
|
1432
1434
|
}
|
|
1433
1435
|
function e(i) {
|
|
1434
1436
|
var s;
|
|
1435
|
-
const n = [i.matches(
|
|
1437
|
+
const n = [i.matches(p.focusablesSelector) ? i : []];
|
|
1436
1438
|
if (!["o-icon-button", "o-button"].includes(i.tagName.toLowerCase())) {
|
|
1437
1439
|
const h = Array.from(
|
|
1438
1440
|
i instanceof HTMLSlotElement ? i.assignedElements({ flatten: !0 }) : []
|
|
@@ -1502,36 +1504,34 @@ let u = class extends p {
|
|
|
1502
1504
|
}
|
|
1503
1505
|
render() {
|
|
1504
1506
|
const o = this.showHeader ? l`
|
|
1505
|
-
<div tabindex="-1" class="header">
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
size="small"
|
|
1510
|
-
class="return-btn"
|
|
1511
|
-
bgstyle="background-light"
|
|
1512
|
-
data-role="back"
|
|
1513
|
-
@click=${this.handleClosePanel}
|
|
1514
|
-
@keydown=${this.handleClosePanel}
|
|
1515
|
-
aria-label="${this.closeButtonLabel}"
|
|
1516
|
-
srlabel="${this.closeButtonLabel}"
|
|
1517
|
-
showsrlabel="true"
|
|
1518
|
-
></o-icon-button>
|
|
1519
|
-
` : null}
|
|
1520
|
-
<p role="heading" aria-level="1" id="panel-title" class="${this.headerTitleClassName}">
|
|
1521
|
-
${this.headerTitle}
|
|
1522
|
-
</p>
|
|
1523
|
-
<o-icon-button
|
|
1524
|
-
icon="cross"
|
|
1507
|
+
<div tabindex="-1" class="header ${this.showDetail ? "detail-view-header" : ""}">
|
|
1508
|
+
${this.showHeaderStartIcon ? l`
|
|
1509
|
+
<o-icon-button
|
|
1510
|
+
icon="arrowLeft"
|
|
1525
1511
|
size="small"
|
|
1526
|
-
class="
|
|
1512
|
+
class="return-btn"
|
|
1527
1513
|
bgstyle="background-light"
|
|
1514
|
+
data-role="back"
|
|
1528
1515
|
@click=${this.handleClosePanel}
|
|
1529
1516
|
@keydown=${this.handleClosePanel}
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1517
|
+
srlabel="${this.goBackButtonLabel} ${this.labelDialog}"
|
|
1518
|
+
showsrlabel="true"
|
|
1519
|
+
tabindex="-1"
|
|
1520
|
+
></o-icon-button>
|
|
1521
|
+
` : null}
|
|
1522
|
+
<p role="heading" aria-level="1" id="panel-title" class="${this.headerTitleClassName}">
|
|
1523
|
+
${this.headerTitle}
|
|
1524
|
+
</p>
|
|
1525
|
+
<o-icon-button
|
|
1526
|
+
icon="cross"
|
|
1527
|
+
size="small"
|
|
1528
|
+
class="close-btn"
|
|
1529
|
+
bgstyle="background-light"
|
|
1530
|
+
@click=${this.handleClosePanel}
|
|
1531
|
+
@keydown=${this.handleClosePanel}
|
|
1532
|
+
srlabel="${this.closeButtonLabel}"
|
|
1533
|
+
showsrlabel="true"
|
|
1534
|
+
></o-icon-button>
|
|
1535
1535
|
</div>
|
|
1536
1536
|
` : null;
|
|
1537
1537
|
return l`
|
|
@@ -1540,7 +1540,7 @@ let u = class extends p {
|
|
|
1540
1540
|
class="panel"
|
|
1541
1541
|
role="dialog"
|
|
1542
1542
|
aria-modal="true"
|
|
1543
|
-
aria-labelledby="
|
|
1543
|
+
aria-labelledby="${this.labelDialog}"
|
|
1544
1544
|
style="z-index: ${this.zIndex + 1}"
|
|
1545
1545
|
tabindex="-1"
|
|
1546
1546
|
>
|
|
@@ -1589,7 +1589,7 @@ let u = class extends p {
|
|
|
1589
1589
|
`;
|
|
1590
1590
|
}
|
|
1591
1591
|
};
|
|
1592
|
-
|
|
1592
|
+
p.styles = v`
|
|
1593
1593
|
:host {
|
|
1594
1594
|
--z-overlay: 99;
|
|
1595
1595
|
--z-panel: 100;
|
|
@@ -1687,6 +1687,18 @@ u.styles = v`
|
|
|
1687
1687
|
.return-btn {
|
|
1688
1688
|
margin-right: 8px;
|
|
1689
1689
|
}
|
|
1690
|
+
|
|
1691
|
+
&.detail-view-header {
|
|
1692
|
+
display: none;
|
|
1693
|
+
}
|
|
1694
|
+
}
|
|
1695
|
+
|
|
1696
|
+
.detail-view {
|
|
1697
|
+
.header {
|
|
1698
|
+
&.detail-view-header {
|
|
1699
|
+
display: flex;
|
|
1700
|
+
}
|
|
1701
|
+
}
|
|
1690
1702
|
}
|
|
1691
1703
|
|
|
1692
1704
|
.panel:focus-visible,
|
|
@@ -1779,78 +1791,84 @@ u.styles = v`
|
|
|
1779
1791
|
padding: var(--spacing-xl);
|
|
1780
1792
|
}
|
|
1781
1793
|
`;
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
|
|
1794
|
+
p.focusablesSelector = 'button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"]), o-icon-button, o-button';
|
|
1795
|
+
p.focusablesCustomElementsSelector = "o-icon-button, o-button";
|
|
1796
|
+
b([
|
|
1785
1797
|
a({ type: Boolean, reflect: !0 })
|
|
1786
|
-
],
|
|
1787
|
-
|
|
1798
|
+
], p.prototype, "open", 2);
|
|
1799
|
+
b([
|
|
1788
1800
|
a({ type: Boolean, reflect: !0 })
|
|
1789
|
-
],
|
|
1790
|
-
|
|
1801
|
+
], p.prototype, "showHeader", 2);
|
|
1802
|
+
b([
|
|
1791
1803
|
a({ type: Boolean, reflect: !0 })
|
|
1792
|
-
],
|
|
1793
|
-
|
|
1804
|
+
], p.prototype, "showFooter", 2);
|
|
1805
|
+
b([
|
|
1794
1806
|
a({ type: Boolean, reflect: !0 })
|
|
1795
|
-
],
|
|
1796
|
-
|
|
1807
|
+
], p.prototype, "showHeaderStartIcon", 2);
|
|
1808
|
+
b([
|
|
1809
|
+
a({ type: String, reflect: !0 })
|
|
1810
|
+
], p.prototype, "headerTitle", 2);
|
|
1811
|
+
b([
|
|
1797
1812
|
a({ type: String, reflect: !0 })
|
|
1798
|
-
],
|
|
1799
|
-
|
|
1813
|
+
], p.prototype, "headerTitleClassName", 2);
|
|
1814
|
+
b([
|
|
1800
1815
|
a({ type: String, reflect: !0 })
|
|
1801
|
-
],
|
|
1802
|
-
|
|
1816
|
+
], p.prototype, "labelDialog", 2);
|
|
1817
|
+
b([
|
|
1803
1818
|
a({ type: String, reflect: !0 })
|
|
1804
|
-
],
|
|
1805
|
-
|
|
1819
|
+
], p.prototype, "closeButtonLabel", 2);
|
|
1820
|
+
b([
|
|
1806
1821
|
a({ type: String, reflect: !0 })
|
|
1807
|
-
],
|
|
1808
|
-
|
|
1822
|
+
], p.prototype, "goBackButtonLabel", 2);
|
|
1823
|
+
b([
|
|
1809
1824
|
a({ type: String, reflect: !0 })
|
|
1810
|
-
],
|
|
1811
|
-
|
|
1825
|
+
], p.prototype, "firstButtonLabel", 2);
|
|
1826
|
+
b([
|
|
1827
|
+
a({ type: String, reflect: !0 })
|
|
1828
|
+
], p.prototype, "firstButtonVariant", 2);
|
|
1829
|
+
b([
|
|
1812
1830
|
a({ type: Object, reflect: !0 })
|
|
1813
|
-
],
|
|
1814
|
-
|
|
1831
|
+
], p.prototype, "firstButtonProps", 2);
|
|
1832
|
+
b([
|
|
1815
1833
|
a({ type: Boolean, reflect: !0 })
|
|
1816
|
-
],
|
|
1817
|
-
|
|
1834
|
+
], p.prototype, "onFirstButtonClickClose", 2);
|
|
1835
|
+
b([
|
|
1818
1836
|
a({ type: String, reflect: !0 })
|
|
1819
|
-
],
|
|
1820
|
-
|
|
1837
|
+
], p.prototype, "secondButtonLabel", 2);
|
|
1838
|
+
b([
|
|
1821
1839
|
a({ type: String, reflect: !0 })
|
|
1822
|
-
],
|
|
1823
|
-
|
|
1840
|
+
], p.prototype, "secondButtonVariant", 2);
|
|
1841
|
+
b([
|
|
1824
1842
|
a({ type: Object, reflect: !0 })
|
|
1825
|
-
],
|
|
1826
|
-
|
|
1843
|
+
], p.prototype, "secondButtonProps", 2);
|
|
1844
|
+
b([
|
|
1827
1845
|
a({ type: Boolean, reflect: !0 })
|
|
1828
|
-
],
|
|
1829
|
-
|
|
1846
|
+
], p.prototype, "onSecondButtonClickClose", 2);
|
|
1847
|
+
b([
|
|
1830
1848
|
a({ type: Boolean, reflect: !0 })
|
|
1831
|
-
],
|
|
1832
|
-
|
|
1849
|
+
], p.prototype, "disablePortal", 2);
|
|
1850
|
+
b([
|
|
1833
1851
|
a({ type: Number, reflect: !0 })
|
|
1834
|
-
],
|
|
1835
|
-
|
|
1852
|
+
], p.prototype, "zIndex", 2);
|
|
1853
|
+
b([
|
|
1836
1854
|
a({ type: Boolean, reflect: !0 })
|
|
1837
|
-
],
|
|
1838
|
-
|
|
1855
|
+
], p.prototype, "initialized", 2);
|
|
1856
|
+
b([
|
|
1839
1857
|
a({ type: Boolean })
|
|
1840
|
-
],
|
|
1841
|
-
|
|
1858
|
+
], p.prototype, "showDetail", 2);
|
|
1859
|
+
b([
|
|
1842
1860
|
a({ type: Boolean })
|
|
1843
|
-
],
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
],
|
|
1861
|
+
], p.prototype, "isHidingDetail", 2);
|
|
1862
|
+
p = b([
|
|
1863
|
+
g("o-side-panel")
|
|
1864
|
+
], p);
|
|
1847
1865
|
var Bo = Object.defineProperty, Do = Object.getOwnPropertyDescriptor, x = (o, t, e, r) => {
|
|
1848
1866
|
for (var i = r > 1 ? void 0 : r ? Do(t, e) : t, n = o.length - 1, s; n >= 0; n--)
|
|
1849
1867
|
(s = o[n]) && (i = (r ? s(t, e, i) : s(i)) || i);
|
|
1850
1868
|
return r && i && Bo(t, e, i), i;
|
|
1851
1869
|
};
|
|
1852
|
-
const Ho = Vt(
|
|
1853
|
-
let
|
|
1870
|
+
const Ho = Vt(u);
|
|
1871
|
+
let y = class extends Ho {
|
|
1854
1872
|
constructor() {
|
|
1855
1873
|
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;
|
|
1856
1874
|
}
|
|
@@ -1866,7 +1884,7 @@ let g = class extends Ho {
|
|
|
1866
1884
|
handleClick(o) {
|
|
1867
1885
|
if (!(o instanceof KeyboardEvent && !["Enter", " "].includes(o.key)) && this.panelTarget) {
|
|
1868
1886
|
const t = document.getElementById(this.panelTarget);
|
|
1869
|
-
t instanceof
|
|
1887
|
+
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.`);
|
|
1870
1888
|
}
|
|
1871
1889
|
}
|
|
1872
1890
|
render() {
|
|
@@ -1879,7 +1897,7 @@ let g = class extends Ho {
|
|
|
1879
1897
|
"<svg",
|
|
1880
1898
|
'<svg aria-hidden="true" focusable="false" part="svg"'
|
|
1881
1899
|
);
|
|
1882
|
-
return l`<span class="${o === "start" ? "icon-start" : "icon-end"}">${
|
|
1900
|
+
return l`<span class="${o === "start" ? "icon-start" : "icon-end"}">${C(e)}</span>`;
|
|
1883
1901
|
}
|
|
1884
1902
|
renderButton() {
|
|
1885
1903
|
const o = this.text || this.textsecond;
|
|
@@ -1918,9 +1936,9 @@ let g = class extends Ho {
|
|
|
1918
1936
|
`;
|
|
1919
1937
|
}
|
|
1920
1938
|
};
|
|
1921
|
-
Ue(
|
|
1922
|
-
|
|
1923
|
-
|
|
1939
|
+
Ue(y);
|
|
1940
|
+
y.formAssociated = !0;
|
|
1941
|
+
y.styles = v`
|
|
1924
1942
|
:host {
|
|
1925
1943
|
--button-border: transparent;
|
|
1926
1944
|
--badge-outer-width: 19px;
|
|
@@ -2124,61 +2142,61 @@ g.styles = v`
|
|
|
2124
2142
|
`;
|
|
2125
2143
|
x([
|
|
2126
2144
|
a()
|
|
2127
|
-
],
|
|
2145
|
+
], y.prototype, "type", 2);
|
|
2128
2146
|
x([
|
|
2129
2147
|
a()
|
|
2130
|
-
],
|
|
2148
|
+
], y.prototype, "value", 2);
|
|
2131
2149
|
x([
|
|
2132
2150
|
a({ type: String, reflect: !0 })
|
|
2133
|
-
],
|
|
2151
|
+
], y.prototype, "variant", 2);
|
|
2134
2152
|
x([
|
|
2135
2153
|
a({ type: String })
|
|
2136
|
-
],
|
|
2154
|
+
], y.prototype, "text", 2);
|
|
2137
2155
|
x([
|
|
2138
2156
|
a({ type: String })
|
|
2139
|
-
],
|
|
2157
|
+
], y.prototype, "textsecond", 2);
|
|
2140
2158
|
x([
|
|
2141
2159
|
a({ type: Boolean, reflect: !0 })
|
|
2142
|
-
],
|
|
2160
|
+
], y.prototype, "fullwidth", 2);
|
|
2143
2161
|
x([
|
|
2144
2162
|
a({ type: Boolean, reflect: !0 })
|
|
2145
|
-
],
|
|
2163
|
+
], y.prototype, "disabled", 2);
|
|
2146
2164
|
x([
|
|
2147
2165
|
a({ type: String })
|
|
2148
|
-
],
|
|
2166
|
+
], y.prototype, "startIconModel", 2);
|
|
2149
2167
|
x([
|
|
2150
2168
|
a({ type: String })
|
|
2151
|
-
],
|
|
2169
|
+
], y.prototype, "endIconModel", 2);
|
|
2152
2170
|
x([
|
|
2153
2171
|
a({ type: Boolean, reflect: !0, attribute: "starticon" })
|
|
2154
|
-
],
|
|
2172
|
+
], y.prototype, "startIcon", 2);
|
|
2155
2173
|
x([
|
|
2156
2174
|
a({ type: Boolean, reflect: !0, attribute: "endicon" })
|
|
2157
|
-
],
|
|
2175
|
+
], y.prototype, "endIcon", 2);
|
|
2158
2176
|
x([
|
|
2159
2177
|
a({ type: String, attribute: "paneltarget" })
|
|
2160
|
-
],
|
|
2178
|
+
], y.prototype, "panelTarget", 2);
|
|
2161
2179
|
x([
|
|
2162
2180
|
a({ type: String })
|
|
2163
|
-
],
|
|
2181
|
+
], y.prototype, "href", 2);
|
|
2164
2182
|
x([
|
|
2165
2183
|
a({ type: String })
|
|
2166
|
-
],
|
|
2184
|
+
], y.prototype, "target", 2);
|
|
2167
2185
|
x([
|
|
2168
2186
|
a({ type: Boolean, reflect: !0 })
|
|
2169
|
-
],
|
|
2187
|
+
], y.prototype, "underlined", 2);
|
|
2170
2188
|
x([
|
|
2171
2189
|
a({ type: Boolean, reflect: !0 })
|
|
2172
|
-
],
|
|
2173
|
-
|
|
2174
|
-
|
|
2175
|
-
],
|
|
2190
|
+
], y.prototype, "withbadge", 2);
|
|
2191
|
+
y = x([
|
|
2192
|
+
g("o-button")
|
|
2193
|
+
], y);
|
|
2176
2194
|
var To = Object.defineProperty, Mo = Object.getOwnPropertyDescriptor, Et = (o, t, e, r) => {
|
|
2177
2195
|
for (var i = r > 1 ? void 0 : r ? Mo(t, e) : t, n = o.length - 1, s; n >= 0; n--)
|
|
2178
2196
|
(s = o[n]) && (i = (r ? s(t, e, i) : s(i)) || i);
|
|
2179
2197
|
return r && i && To(t, e, i), i;
|
|
2180
2198
|
};
|
|
2181
|
-
let st = class extends
|
|
2199
|
+
let st = class extends u {
|
|
2182
2200
|
constructor() {
|
|
2183
2201
|
super(...arguments), this.status = "empty", this.ariaDescribedBy = "a-product-name", this.label = "Add to wishlist", this.toggleStatus = () => {
|
|
2184
2202
|
this.status = this.status === "empty" ? "filled" : "empty", this.setAttribute("aria-pressed", String(this.status === "filled")), this.dispatchEvent(new CustomEvent("wishlist-toggle", {
|
|
@@ -2205,7 +2223,7 @@ let st = class extends p {
|
|
|
2205
2223
|
return l`
|
|
2206
2224
|
<button type="button" aria-describedby="${this.ariaDescribedBy}" class="wishlist-button">
|
|
2207
2225
|
<span class="sr-only">${this.label}</span>
|
|
2208
|
-
${
|
|
2226
|
+
${C(o)}
|
|
2209
2227
|
</button>
|
|
2210
2228
|
`;
|
|
2211
2229
|
}
|
|
@@ -2294,19 +2312,23 @@ Et([
|
|
|
2294
2312
|
a({ type: String, reflect: !0 })
|
|
2295
2313
|
], st.prototype, "label", 2);
|
|
2296
2314
|
st = Et([
|
|
2297
|
-
|
|
2315
|
+
g("o-wishlist-button")
|
|
2298
2316
|
], st);
|
|
2299
2317
|
var jo = Object.defineProperty, Ro = Object.getOwnPropertyDescriptor, it = (o, t, e, r) => {
|
|
2300
2318
|
for (var i = r > 1 ? void 0 : r ? Ro(t, e) : t, n = o.length - 1, s; n >= 0; n--)
|
|
2301
2319
|
(s = o[n]) && (i = (r ? s(t, e, i) : s(i)) || i);
|
|
2302
2320
|
return r && i && jo(t, e, i), i;
|
|
2303
2321
|
};
|
|
2304
|
-
let U = class extends
|
|
2322
|
+
let U = class extends u {
|
|
2305
2323
|
constructor() {
|
|
2306
2324
|
super(...arguments), this.href = "", this.target = "", this.template = "standard", this.inverse = !1, this.endIcon = !1, this.reverseEndIcon = !1;
|
|
2307
2325
|
}
|
|
2308
2326
|
_handleClick(o) {
|
|
2309
|
-
(!this.href || this.href === "#") && o.preventDefault()
|
|
2327
|
+
(!this.href || this.href === "#") && o.preventDefault(), this.dispatchEvent(new CustomEvent("click", {
|
|
2328
|
+
detail: { href: this.href },
|
|
2329
|
+
bubbles: !0,
|
|
2330
|
+
composed: !0
|
|
2331
|
+
}));
|
|
2310
2332
|
}
|
|
2311
2333
|
render() {
|
|
2312
2334
|
const o = this.href || "#";
|
|
@@ -2446,14 +2468,14 @@ it([
|
|
|
2446
2468
|
a({ type: Boolean, reflect: !0 })
|
|
2447
2469
|
], U.prototype, "reverseEndIcon", 2);
|
|
2448
2470
|
U = it([
|
|
2449
|
-
|
|
2471
|
+
g("o-link")
|
|
2450
2472
|
], U);
|
|
2451
2473
|
var No = Object.defineProperty, Fo = Object.getOwnPropertyDescriptor, Lt = (o, t, e, r) => {
|
|
2452
2474
|
for (var i = r > 1 ? void 0 : r ? Fo(t, e) : t, n = o.length - 1, s; n >= 0; n--)
|
|
2453
2475
|
(s = o[n]) && (i = (r ? s(t, e, i) : s(i)) || i);
|
|
2454
2476
|
return r && i && No(t, e, i), i;
|
|
2455
2477
|
};
|
|
2456
|
-
let at = class extends
|
|
2478
|
+
let at = class extends u {
|
|
2457
2479
|
constructor() {
|
|
2458
2480
|
super(...arguments), this.rating = 0;
|
|
2459
2481
|
}
|
|
@@ -2472,7 +2494,7 @@ let at = class extends p {
|
|
|
2472
2494
|
<div class="rating">
|
|
2473
2495
|
<div class="stars">
|
|
2474
2496
|
${o.map(
|
|
2475
|
-
(t) => l`<span class="star">${
|
|
2497
|
+
(t) => l`<span class="star">${C(F[t] ?? "")}</span>`
|
|
2476
2498
|
)}
|
|
2477
2499
|
</div>
|
|
2478
2500
|
${this.reviewCount != null && this.href != null ? l`<o-link template="review" href="${this.href}">${this.reviewCount}</o-link>` : null}
|
|
@@ -2524,14 +2546,14 @@ Lt([
|
|
|
2524
2546
|
a({ type: String })
|
|
2525
2547
|
], at.prototype, "href", 2);
|
|
2526
2548
|
at = Lt([
|
|
2527
|
-
|
|
2549
|
+
g("o-rating")
|
|
2528
2550
|
], at);
|
|
2529
2551
|
var Uo = Object.defineProperty, Vo = Object.getOwnPropertyDescriptor, X = (o, t, e, r) => {
|
|
2530
2552
|
for (var i = r > 1 ? void 0 : r ? Vo(t, e) : t, n = o.length - 1, s; n >= 0; n--)
|
|
2531
2553
|
(s = o[n]) && (i = (r ? s(t, e, i) : s(i)) || i);
|
|
2532
2554
|
return r && i && Uo(t, e, i), i;
|
|
2533
2555
|
};
|
|
2534
|
-
let D = class extends
|
|
2556
|
+
let D = class extends u {
|
|
2535
2557
|
constructor() {
|
|
2536
2558
|
super(...arguments), this.thumbnails = [], this.activeIndex = 0, this.disabledIndexes = [], this.maxWidth = "100%", this.altressource = "visual", this.focusedIndex = 0, this.playerIconTemplate = l`
|
|
2537
2559
|
<o-icon-button
|
|
@@ -2750,14 +2772,14 @@ X([
|
|
|
2750
2772
|
et()
|
|
2751
2773
|
], D.prototype, "focusedIndex", 2);
|
|
2752
2774
|
D = X([
|
|
2753
|
-
|
|
2775
|
+
g("thumbnail-navigation")
|
|
2754
2776
|
], D);
|
|
2755
2777
|
var qo = Object.defineProperty, Zo = Object.getOwnPropertyDescriptor, Wt = (o, t, e, r) => {
|
|
2756
2778
|
for (var i = r > 1 ? void 0 : r ? Zo(t, e) : t, n = o.length - 1, s; n >= 0; n--)
|
|
2757
2779
|
(s = o[n]) && (i = (r ? s(t, e, i) : s(i)) || i);
|
|
2758
2780
|
return r && i && qo(t, e, i), i;
|
|
2759
2781
|
};
|
|
2760
|
-
let ft = class extends
|
|
2782
|
+
let ft = class extends u {
|
|
2761
2783
|
constructor() {
|
|
2762
2784
|
super(...arguments), this.type = "", this.bgstyle = "background-white";
|
|
2763
2785
|
}
|
|
@@ -2832,14 +2854,14 @@ Wt([
|
|
|
2832
2854
|
a({ type: String, reflect: !0 })
|
|
2833
2855
|
], ft.prototype, "bgstyle", 2);
|
|
2834
2856
|
ft = Wt([
|
|
2835
|
-
|
|
2857
|
+
g("o-tag")
|
|
2836
2858
|
], ft);
|
|
2837
2859
|
var Ko = Object.defineProperty, Wo = Object.getOwnPropertyDescriptor, Gt = (o, t, e, r) => {
|
|
2838
2860
|
for (var i = r > 1 ? void 0 : r ? Wo(t, e) : t, n = o.length - 1, s; n >= 0; n--)
|
|
2839
2861
|
(s = o[n]) && (i = (r ? s(t, e, i) : s(i)) || i);
|
|
2840
2862
|
return r && i && Ko(t, e, i), i;
|
|
2841
2863
|
};
|
|
2842
|
-
let bt = class extends
|
|
2864
|
+
let bt = class extends u {
|
|
2843
2865
|
constructor() {
|
|
2844
2866
|
super(...arguments), this.type = "top", this.text = "";
|
|
2845
2867
|
}
|
|
@@ -2952,14 +2974,14 @@ Gt([
|
|
|
2952
2974
|
a({ type: String, reflect: !0 })
|
|
2953
2975
|
], bt.prototype, "text", 2);
|
|
2954
2976
|
bt = Gt([
|
|
2955
|
-
|
|
2977
|
+
g("o-tooltip")
|
|
2956
2978
|
], bt);
|
|
2957
2979
|
var Go = Object.defineProperty, Xo = Object.getOwnPropertyDescriptor, V = (o, t, e, r) => {
|
|
2958
2980
|
for (var i = r > 1 ? void 0 : r ? Xo(t, e) : t, n = o.length - 1, s; n >= 0; n--)
|
|
2959
2981
|
(s = o[n]) && (i = (r ? s(t, e, i) : s(i)) || i);
|
|
2960
2982
|
return r && i && Go(t, e, i), i;
|
|
2961
2983
|
};
|
|
2962
|
-
let z = class extends
|
|
2984
|
+
let z = class extends u {
|
|
2963
2985
|
constructor() {
|
|
2964
2986
|
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) => {
|
|
2965
2987
|
this.contains(o.target) || (this.open = !1, this.activeIndex = -1);
|
|
@@ -3070,10 +3092,10 @@ let z = class extends p {
|
|
|
3070
3092
|
${e.url ? l`
|
|
3071
3093
|
<a href="${e.url}">
|
|
3072
3094
|
<span>${e.label}</span>
|
|
3073
|
-
${e.value === this.value ? l`<span class="check">${
|
|
3095
|
+
${e.value === this.value ? l`<span class="check">${C(o)}</span>` : null}
|
|
3074
3096
|
</a>` : l`
|
|
3075
3097
|
<span>${e.label}</span>
|
|
3076
|
-
${e.value === this.value ? l`<span class="check">${
|
|
3098
|
+
${e.value === this.value ? l`<span class="check">${C(o)}</span>` : null}`}
|
|
3077
3099
|
</li>`
|
|
3078
3100
|
)}
|
|
3079
3101
|
</ul>` : null}
|
|
@@ -3247,14 +3269,14 @@ V([
|
|
|
3247
3269
|
et()
|
|
3248
3270
|
], z.prototype, "menuWidth", 2);
|
|
3249
3271
|
z = V([
|
|
3250
|
-
|
|
3272
|
+
g("o-dropdown")
|
|
3251
3273
|
], z);
|
|
3252
3274
|
var Jo = Object.getOwnPropertyDescriptor, Qo = (o, t, e, r) => {
|
|
3253
3275
|
for (var i = r > 1 ? void 0 : r ? Jo(t, e) : t, n = o.length - 1, s; n >= 0; n--)
|
|
3254
3276
|
(s = o[n]) && (i = s(i) || i);
|
|
3255
3277
|
return i;
|
|
3256
3278
|
};
|
|
3257
|
-
let Tt = class extends
|
|
3279
|
+
let Tt = class extends u {
|
|
3258
3280
|
render() {
|
|
3259
3281
|
return l` <span class="dots"></span> `;
|
|
3260
3282
|
}
|
|
@@ -3312,14 +3334,14 @@ Tt.styles = v`
|
|
|
3312
3334
|
}
|
|
3313
3335
|
`;
|
|
3314
3336
|
Tt = Qo([
|
|
3315
|
-
|
|
3337
|
+
g("o-dots")
|
|
3316
3338
|
], Tt);
|
|
3317
3339
|
var Yo = Object.defineProperty, ti = Object.getOwnPropertyDescriptor, T = (o, t, e, r) => {
|
|
3318
3340
|
for (var i = r > 1 ? void 0 : r ? ti(t, e) : t, n = o.length - 1, s; n >= 0; n--)
|
|
3319
3341
|
(s = o[n]) && (i = (r ? s(t, e, i) : s(i)) || i);
|
|
3320
3342
|
return r && i && Yo(t, e, i), i;
|
|
3321
3343
|
};
|
|
3322
|
-
let E = class extends
|
|
3344
|
+
let E = class extends u {
|
|
3323
3345
|
constructor() {
|
|
3324
3346
|
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) => {
|
|
3325
3347
|
this.contains(o.target) || (this.open = !1, this.activeIndex = -1);
|
|
@@ -3444,7 +3466,7 @@ let E = class extends p {
|
|
|
3444
3466
|
<div class="right">
|
|
3445
3467
|
<span class="additional-text">${S(e.additionaltext)}</span>
|
|
3446
3468
|
${e.value === this.value && !e.additionaltext ? l`
|
|
3447
|
-
<span class="check">${
|
|
3469
|
+
<span class="check">${C(o)}</span>` : null}
|
|
3448
3470
|
</div>
|
|
3449
3471
|
</a>
|
|
3450
3472
|
</li>
|
|
@@ -3660,7 +3682,7 @@ T([
|
|
|
3660
3682
|
et()
|
|
3661
3683
|
], E.prototype, "menuWidth", 2);
|
|
3662
3684
|
E = T([
|
|
3663
|
-
|
|
3685
|
+
g("o-dropdown-variant")
|
|
3664
3686
|
], E);
|
|
3665
3687
|
/**
|
|
3666
3688
|
* @license
|
|
@@ -3698,7 +3720,7 @@ var ii = Object.defineProperty, ri = Object.getOwnPropertyDescriptor, Xt = (o, t
|
|
|
3698
3720
|
(s = o[n]) && (i = (r ? s(t, e, i) : s(i)) || i);
|
|
3699
3721
|
return r && i && ii(t, e, i), i;
|
|
3700
3722
|
};
|
|
3701
|
-
let gt = class extends
|
|
3723
|
+
let gt = class extends u {
|
|
3702
3724
|
constructor() {
|
|
3703
3725
|
super(...arguments), this.option = {}, this.imageSize = 64;
|
|
3704
3726
|
}
|
|
@@ -3805,14 +3827,14 @@ Xt([
|
|
|
3805
3827
|
a({ type: Number, reflect: !0 })
|
|
3806
3828
|
], gt.prototype, "imageSize", 2);
|
|
3807
3829
|
gt = Xt([
|
|
3808
|
-
|
|
3830
|
+
g("o-reassurance")
|
|
3809
3831
|
], gt);
|
|
3810
3832
|
var ni = Object.defineProperty, si = Object.getOwnPropertyDescriptor, q = (o, t, e, r) => {
|
|
3811
3833
|
for (var i = r > 1 ? void 0 : r ? si(t, e) : t, n = o.length - 1, s; n >= 0; n--)
|
|
3812
3834
|
(s = o[n]) && (i = (r ? s(t, e, i) : s(i)) || i);
|
|
3813
3835
|
return r && i && ni(t, e, i), i;
|
|
3814
3836
|
};
|
|
3815
|
-
const ai = Vt(
|
|
3837
|
+
const ai = Vt(u);
|
|
3816
3838
|
let L = class extends ai {
|
|
3817
3839
|
constructor() {
|
|
3818
3840
|
super(...arguments), this.link = "", this.name = "", this.value = "", this.text = "", this.size = "standard", this.selected = !1, this.fullwidth = !1, this.inactive = !1;
|
|
@@ -3951,14 +3973,14 @@ q([
|
|
|
3951
3973
|
a({ type: Boolean, reflect: !0 })
|
|
3952
3974
|
], L.prototype, "inactive", 2);
|
|
3953
3975
|
L = q([
|
|
3954
|
-
|
|
3976
|
+
g("o-chip")
|
|
3955
3977
|
], L);
|
|
3956
3978
|
var li = Object.defineProperty, ci = Object.getOwnPropertyDescriptor, Jt = (o, t, e, r) => {
|
|
3957
3979
|
for (var i = r > 1 ? void 0 : r ? ci(t, e) : t, n = o.length - 1, s; n >= 0; n--)
|
|
3958
3980
|
(s = o[n]) && (i = (r ? s(t, e, i) : s(i)) || i);
|
|
3959
3981
|
return r && i && li(t, e, i), i;
|
|
3960
3982
|
};
|
|
3961
|
-
let yt = class extends
|
|
3983
|
+
let yt = class extends u {
|
|
3962
3984
|
constructor() {
|
|
3963
3985
|
super(), this.name = "", this.value = "", this.addEventListener("selected", this.onChipSelected);
|
|
3964
3986
|
}
|
|
@@ -3989,14 +4011,14 @@ Jt([
|
|
|
3989
4011
|
a({ reflect: !0 })
|
|
3990
4012
|
], yt.prototype, "value", 2);
|
|
3991
4013
|
yt = Jt([
|
|
3992
|
-
|
|
4014
|
+
g("o-chipset")
|
|
3993
4015
|
], yt);
|
|
3994
4016
|
var hi = Object.defineProperty, di = Object.getOwnPropertyDescriptor, M = (o, t, e, r) => {
|
|
3995
4017
|
for (var i = r > 1 ? void 0 : r ? di(t, e) : t, n = o.length - 1, s; n >= 0; n--)
|
|
3996
4018
|
(s = o[n]) && (i = (r ? s(t, e, i) : s(i)) || i);
|
|
3997
4019
|
return r && i && hi(t, e, i), i;
|
|
3998
4020
|
};
|
|
3999
|
-
const pi = Vt(
|
|
4021
|
+
const pi = Vt(u);
|
|
4000
4022
|
let P = class extends pi {
|
|
4001
4023
|
constructor() {
|
|
4002
4024
|
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";
|
|
@@ -4013,14 +4035,14 @@ let P = class extends pi {
|
|
|
4013
4035
|
"<svg",
|
|
4014
4036
|
'<svg aria-hidden="true" focusable="false" part="svg"'
|
|
4015
4037
|
).replace(/stroke=[#"'a-z1-9]*/gi, "");
|
|
4016
|
-
return l`<span class="cross-icon">${
|
|
4038
|
+
return l`<span class="cross-icon">${C(o)}</span>`;
|
|
4017
4039
|
}
|
|
4018
4040
|
strikeThroughImg() {
|
|
4019
4041
|
const o = xo[this.strikethroughImgName].replace(
|
|
4020
4042
|
"<svg",
|
|
4021
4043
|
'<svg aria-hidden="true" focusable="false" part="strikethrough"'
|
|
4022
4044
|
).replace(/stroke=[#"'a-z1-9]*/gi, "");
|
|
4023
|
-
return
|
|
4045
|
+
return C(o);
|
|
4024
4046
|
}
|
|
4025
4047
|
render() {
|
|
4026
4048
|
const o = this.text;
|
|
@@ -4201,14 +4223,14 @@ M([
|
|
|
4201
4223
|
a({ type: Boolean, reflect: !0 })
|
|
4202
4224
|
], P.prototype, "fullwidth", 2);
|
|
4203
4225
|
P = M([
|
|
4204
|
-
|
|
4226
|
+
g("o-filter-chip")
|
|
4205
4227
|
], P);
|
|
4206
4228
|
var ui = Object.defineProperty, j = (o, t, e, r) => {
|
|
4207
4229
|
for (var i = void 0, n = o.length - 1, s; n >= 0; n--)
|
|
4208
4230
|
(s = o[n]) && (i = s(t, e, i) || i);
|
|
4209
4231
|
return i && ui(t, e, i), i;
|
|
4210
4232
|
};
|
|
4211
|
-
const te = class te extends
|
|
4233
|
+
const te = class te extends u {
|
|
4212
4234
|
constructor() {
|
|
4213
4235
|
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 = "";
|
|
4214
4236
|
}
|
|
@@ -4355,44 +4377,44 @@ te.styles = v`
|
|
|
4355
4377
|
cursor: pointer;
|
|
4356
4378
|
}
|
|
4357
4379
|
`;
|
|
4358
|
-
let
|
|
4380
|
+
let _ = te;
|
|
4359
4381
|
j([
|
|
4360
4382
|
a({ type: String })
|
|
4361
|
-
],
|
|
4383
|
+
], _.prototype, "type");
|
|
4362
4384
|
j([
|
|
4363
4385
|
a({ type: String })
|
|
4364
|
-
],
|
|
4386
|
+
], _.prototype, "titleProduct");
|
|
4365
4387
|
j([
|
|
4366
4388
|
a({ type: String })
|
|
4367
|
-
],
|
|
4389
|
+
], _.prototype, "volume");
|
|
4368
4390
|
j([
|
|
4369
4391
|
a({ type: String })
|
|
4370
|
-
],
|
|
4392
|
+
], _.prototype, "perLiter");
|
|
4371
4393
|
j([
|
|
4372
4394
|
a({ type: String })
|
|
4373
|
-
],
|
|
4395
|
+
], _.prototype, "mainPrice");
|
|
4374
4396
|
j([
|
|
4375
4397
|
a({ type: String })
|
|
4376
|
-
],
|
|
4398
|
+
], _.prototype, "imageUrl");
|
|
4377
4399
|
j([
|
|
4378
4400
|
a({ type: String })
|
|
4379
|
-
],
|
|
4401
|
+
], _.prototype, "altImage");
|
|
4380
4402
|
j([
|
|
4381
4403
|
a({ type: Boolean })
|
|
4382
|
-
],
|
|
4404
|
+
], _.prototype, "fullwidth");
|
|
4383
4405
|
j([
|
|
4384
4406
|
a({ type: String })
|
|
4385
|
-
],
|
|
4407
|
+
], _.prototype, "tagText");
|
|
4386
4408
|
j([
|
|
4387
4409
|
a({ type: Function })
|
|
4388
|
-
],
|
|
4389
|
-
customElements.define("mini-tile",
|
|
4410
|
+
], _.prototype, "onClickTile");
|
|
4411
|
+
customElements.define("mini-tile", _);
|
|
4390
4412
|
var vi = Object.defineProperty, fi = Object.getOwnPropertyDescriptor, Qt = (o, t, e, r) => {
|
|
4391
4413
|
for (var i = r > 1 ? void 0 : r ? fi(t, e) : t, n = o.length - 1, s; n >= 0; n--)
|
|
4392
4414
|
(s = o[n]) && (i = (r ? s(t, e, i) : s(i)) || i);
|
|
4393
4415
|
return r && i && vi(t, e, i), i;
|
|
4394
4416
|
};
|
|
4395
|
-
let mt = class extends
|
|
4417
|
+
let mt = class extends u {
|
|
4396
4418
|
constructor() {
|
|
4397
4419
|
super(...arguments), this.variant = "cart", this.text = "";
|
|
4398
4420
|
}
|
|
@@ -4446,14 +4468,14 @@ Qt([
|
|
|
4446
4468
|
a({ type: String })
|
|
4447
4469
|
], mt.prototype, "text", 2);
|
|
4448
4470
|
mt = Qt([
|
|
4449
|
-
|
|
4471
|
+
g("o-badge")
|
|
4450
4472
|
], mt);
|
|
4451
4473
|
var bi = Object.defineProperty, gi = Object.getOwnPropertyDescriptor, I = (o, t, e, r) => {
|
|
4452
4474
|
for (var i = r > 1 ? void 0 : r ? gi(t, e) : t, n = o.length - 1, s; n >= 0; n--)
|
|
4453
4475
|
(s = o[n]) && (i = (r ? s(t, e, i) : s(i)) || i);
|
|
4454
4476
|
return r && i && bi(t, e, i), i;
|
|
4455
4477
|
};
|
|
4456
|
-
let $ = class extends
|
|
4478
|
+
let $ = class extends u {
|
|
4457
4479
|
constructor() {
|
|
4458
4480
|
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;
|
|
4459
4481
|
}
|
|
@@ -4501,7 +4523,7 @@ let $ = class extends p {
|
|
|
4501
4523
|
return l`
|
|
4502
4524
|
<div class="o-toast">
|
|
4503
4525
|
<div class="o-toast-icon">
|
|
4504
|
-
${
|
|
4526
|
+
${C(t)}
|
|
4505
4527
|
</div>
|
|
4506
4528
|
<div class="o-toast-text">
|
|
4507
4529
|
${this.text}
|
|
@@ -4629,14 +4651,14 @@ I([
|
|
|
4629
4651
|
a({ type: Boolean, reflect: !0 })
|
|
4630
4652
|
], $.prototype, "multiline", 2);
|
|
4631
4653
|
$ = I([
|
|
4632
|
-
|
|
4654
|
+
g("o-toast")
|
|
4633
4655
|
], $);
|
|
4634
4656
|
var yi = Object.defineProperty, mi = Object.getOwnPropertyDescriptor, B = (o, t, e, r) => {
|
|
4635
4657
|
for (var i = r > 1 ? void 0 : r ? mi(t, e) : t, n = o.length - 1, s; n >= 0; n--)
|
|
4636
4658
|
(s = o[n]) && (i = (r ? s(t, e, i) : s(i)) || i);
|
|
4637
4659
|
return r && i && yi(t, e, i), i;
|
|
4638
4660
|
};
|
|
4639
|
-
let xi = 0, k = class extends
|
|
4661
|
+
let xi = 0, k = class extends u {
|
|
4640
4662
|
constructor() {
|
|
4641
4663
|
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-${++xi}`);
|
|
4642
4664
|
}
|
|
@@ -4653,7 +4675,7 @@ let xi = 0, k = class extends p {
|
|
|
4653
4675
|
this.disabled || (o.key === " " || o.key === "Enter") && (o.preventDefault(), this.toggle());
|
|
4654
4676
|
}
|
|
4655
4677
|
render() {
|
|
4656
|
-
const o =
|
|
4678
|
+
const o = C(F.checkbox.replace("<svg", '<svg aria-hidden="true" focusable="false" part="svg"')), t = C(F.icoMinus.replace("<svg", '<svg class="indeterminate" aria-hidden="true" focusable="false" part="svg"'));
|
|
4657
4679
|
return l`
|
|
4658
4680
|
<input
|
|
4659
4681
|
type="checkbox"
|
|
@@ -4811,16 +4833,16 @@ B([
|
|
|
4811
4833
|
ye("input")
|
|
4812
4834
|
], k.prototype, "inputEl", 2);
|
|
4813
4835
|
k = B([
|
|
4814
|
-
|
|
4836
|
+
g("o-checkbox")
|
|
4815
4837
|
], k);
|
|
4816
4838
|
var wi = Object.defineProperty, $i = Object.getOwnPropertyDescriptor, R = (o, t, e, r) => {
|
|
4817
4839
|
for (var i = r > 1 ? void 0 : r ? $i(t, e) : t, n = o.length - 1, s; n >= 0; n--)
|
|
4818
4840
|
(s = o[n]) && (i = (r ? s(t, e, i) : s(i)) || i);
|
|
4819
4841
|
return r && i && wi(t, e, i), i;
|
|
4820
4842
|
};
|
|
4821
|
-
let
|
|
4843
|
+
let Ci = 0, O = class extends u {
|
|
4822
4844
|
constructor() {
|
|
4823
|
-
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-${++
|
|
4845
|
+
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-${++Ci}`);
|
|
4824
4846
|
}
|
|
4825
4847
|
handleClick() {
|
|
4826
4848
|
this.disabled || this.checked || (this.checked = !0, this.syncInput(), this.dispatchEvent(new Event("change", { bubbles: !0, composed: !0 })));
|
|
@@ -4970,14 +4992,14 @@ R([
|
|
|
4970
4992
|
ye("input")
|
|
4971
4993
|
], O.prototype, "inputEl", 2);
|
|
4972
4994
|
O = R([
|
|
4973
|
-
|
|
4995
|
+
g("o-radio")
|
|
4974
4996
|
], O);
|
|
4975
|
-
var
|
|
4976
|
-
for (var i = r > 1 ? void 0 : r ?
|
|
4997
|
+
var _i = Object.getOwnPropertyDescriptor, ki = (o, t, e, r) => {
|
|
4998
|
+
for (var i = r > 1 ? void 0 : r ? _i(t, e) : t, n = o.length - 1, s; n >= 0; n--)
|
|
4977
4999
|
(s = o[n]) && (i = s(i) || i);
|
|
4978
5000
|
return i;
|
|
4979
5001
|
};
|
|
4980
|
-
let Mt = class extends
|
|
5002
|
+
let Mt = class extends u {
|
|
4981
5003
|
render() {
|
|
4982
5004
|
return l`
|
|
4983
5005
|
<nav aria-label="Breadcrumbs">
|
|
@@ -5001,14 +5023,14 @@ Mt.styles = v`
|
|
|
5001
5023
|
}
|
|
5002
5024
|
`;
|
|
5003
5025
|
Mt = ki([
|
|
5004
|
-
|
|
5026
|
+
g("o-breadcrumbs")
|
|
5005
5027
|
], Mt);
|
|
5006
5028
|
var Si = Object.defineProperty, Ai = Object.getOwnPropertyDescriptor, Yt = (o, t, e, r) => {
|
|
5007
5029
|
for (var i = r > 1 ? void 0 : r ? Ai(t, e) : t, n = o.length - 1, s; n >= 0; n--)
|
|
5008
5030
|
(s = o[n]) && (i = (r ? s(t, e, i) : s(i)) || i);
|
|
5009
5031
|
return r && i && Si(t, e, i), i;
|
|
5010
5032
|
};
|
|
5011
|
-
let xt = class extends
|
|
5033
|
+
let xt = class extends u {
|
|
5012
5034
|
constructor() {
|
|
5013
5035
|
super(...arguments), this.href = "", this.active = !1;
|
|
5014
5036
|
}
|
|
@@ -5080,5 +5102,5 @@ Yt([
|
|
|
5080
5102
|
a({ type: Boolean, reflect: !0 })
|
|
5081
5103
|
], xt.prototype, "active", 2);
|
|
5082
5104
|
xt = Yt([
|
|
5083
|
-
|
|
5105
|
+
g("o-breadcrumb")
|
|
5084
5106
|
], xt);
|