@florid-kit/components 0.9.7 → 0.9.9
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 +1 -0
- package/index.js +119 -112
- package/index.mjs +501 -479
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -95,8 +95,8 @@ let it = class extends HTMLElement {
|
|
|
95
95
|
this[e] = s;
|
|
96
96
|
} };
|
|
97
97
|
return { get: i, set(s) {
|
|
98
|
-
const
|
|
99
|
-
n == null || n.call(this, s), this.requestUpdate(t,
|
|
98
|
+
const h = i == null ? void 0 : i.call(this);
|
|
99
|
+
n == null || n.call(this, s), this.requestUpdate(t, h, r);
|
|
100
100
|
}, configurable: !0, enumerable: !0 };
|
|
101
101
|
}
|
|
102
102
|
static getPropertyOptions(t) {
|
|
@@ -192,8 +192,8 @@ let it = 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
|
|
196
|
-
this._$Em = i, this[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 : Ct;
|
|
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
|
}
|
|
199
199
|
requestUpdate(t, e, r) {
|
|
@@ -231,8 +231,8 @@ let it = class extends HTMLElement {
|
|
|
231
231
|
}
|
|
232
232
|
const i = this.constructor.elementProperties;
|
|
233
233
|
if (i.size > 0) for (const [n, s] of i) {
|
|
234
|
-
const { wrapped:
|
|
235
|
-
|
|
234
|
+
const { wrapped: h } = s, c = this[n];
|
|
235
|
+
h !== !0 || this._$AL.has(n) || c === void 0 || this.C(n, void 0, s, c);
|
|
236
236
|
}
|
|
237
237
|
}
|
|
238
238
|
let t = !1;
|
|
@@ -292,12 +292,12 @@ function ve(o, t) {
|
|
|
292
292
|
const Ie = (o, t) => {
|
|
293
293
|
const e = o.length - 1, r = [];
|
|
294
294
|
let i, n = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", s = at;
|
|
295
|
-
for (let
|
|
296
|
-
const
|
|
297
|
-
let
|
|
298
|
-
for (;
|
|
299
|
-
const
|
|
300
|
-
n += s === at ?
|
|
295
|
+
for (let h = 0; h < e; h++) {
|
|
296
|
+
const c = o[h];
|
|
297
|
+
let m, w, v = -1, R = 0;
|
|
298
|
+
for (; R < c.length && (s.lastIndex = R, w = s.exec(c), w !== null); ) R = s.lastIndex, s === at ? w[1] === "!--" ? s = ie : w[1] !== void 0 ? s = re : w[2] !== void 0 ? (ue.test(w[2]) && (i = RegExp("</" + w[2], "g")), s = J) : w[3] !== void 0 && (s = J) : s === J ? w[0] === ">" ? (s = i ?? at, v = -1) : w[1] === void 0 ? v = -2 : (v = s.lastIndex - w[2].length, m = w[1], s = w[3] === void 0 ? J : w[3] === '"' ? se : ne) : s === se || s === ne ? s = J : s === ie || s === re ? s = at : (s = J, i = void 0);
|
|
299
|
+
const q = s === J && o[h + 1].startsWith("/>") ? " " : "";
|
|
300
|
+
n += s === at ? c + Ee : v >= 0 ? (r.push(m), c.slice(0, v) + de + c.slice(v) + K + q) : c + K + (v === -2 ? h : q);
|
|
301
301
|
}
|
|
302
302
|
return [ve(o, n + (o[e] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), r];
|
|
303
303
|
};
|
|
@@ -306,29 +306,29 @@ class ut {
|
|
|
306
306
|
let i;
|
|
307
307
|
this.parts = [];
|
|
308
308
|
let n = 0, s = 0;
|
|
309
|
-
const
|
|
310
|
-
if (this.el = ut.createElement(
|
|
311
|
-
const
|
|
312
|
-
|
|
309
|
+
const h = t.length - 1, c = this.parts, [m, w] = Ie(t, e);
|
|
310
|
+
if (this.el = ut.createElement(m, r), Q.currentNode = this.el.content, e === 2 || e === 3) {
|
|
311
|
+
const v = this.el.content.firstChild;
|
|
312
|
+
v.replaceWith(...v.childNodes);
|
|
313
313
|
}
|
|
314
|
-
for (; (i = Q.nextNode()) !== null &&
|
|
314
|
+
for (; (i = Q.nextNode()) !== null && c.length < h; ) {
|
|
315
315
|
if (i.nodeType === 1) {
|
|
316
|
-
if (i.hasAttributes()) for (const
|
|
317
|
-
const
|
|
318
|
-
|
|
319
|
-
} else
|
|
316
|
+
if (i.hasAttributes()) for (const v of i.getAttributeNames()) if (v.endsWith(de)) {
|
|
317
|
+
const R = w[s++], q = i.getAttribute(v).split(K), wt = /([.?@])?(.*)/.exec(R);
|
|
318
|
+
c.push({ type: 1, index: n, name: wt[2], strings: q, ctor: wt[1] === "." ? Oe : wt[1] === "?" ? ze : wt[1] === "@" ? Be : St }), i.removeAttribute(v);
|
|
319
|
+
} else v.startsWith(K) && (c.push({ type: 6, index: n }), i.removeAttribute(v));
|
|
320
320
|
if (ue.test(i.tagName)) {
|
|
321
|
-
const
|
|
322
|
-
if (
|
|
321
|
+
const v = i.textContent.split(K), R = v.length - 1;
|
|
322
|
+
if (R > 0) {
|
|
323
323
|
i.textContent = _t ? _t.emptyScript : "";
|
|
324
|
-
for (let
|
|
325
|
-
i.append(
|
|
324
|
+
for (let q = 0; q < R; q++) i.append(v[q], dt()), Q.nextNode(), c.push({ type: 2, index: ++n });
|
|
325
|
+
i.append(v[R], dt());
|
|
326
326
|
}
|
|
327
327
|
}
|
|
328
|
-
} else if (i.nodeType === 8) if (i.data === pe)
|
|
328
|
+
} else if (i.nodeType === 8) if (i.data === pe) c.push({ type: 2, index: n });
|
|
329
329
|
else {
|
|
330
|
-
let
|
|
331
|
-
for (; (
|
|
330
|
+
let v = -1;
|
|
331
|
+
for (; (v = i.data.indexOf(K, v + 1)) !== -1; ) c.push({ type: 7, index: n }), v += K.length - 1;
|
|
332
332
|
}
|
|
333
333
|
n++;
|
|
334
334
|
}
|
|
@@ -339,11 +339,11 @@ class ut {
|
|
|
339
339
|
}
|
|
340
340
|
}
|
|
341
341
|
function rt(o, t, e = o, r) {
|
|
342
|
-
var s,
|
|
342
|
+
var s, h;
|
|
343
343
|
if (t === G) return t;
|
|
344
344
|
let i = r !== void 0 ? (s = e._$Co) == null ? void 0 : s[r] : e._$Cl;
|
|
345
345
|
const n = pt(t) ? void 0 : t._$litDirective$;
|
|
346
|
-
return (i == null ? void 0 : i.constructor) !== n && ((
|
|
346
|
+
return (i == null ? void 0 : i.constructor) !== n && ((h = i == null ? void 0 : i._$AO) == null || h.call(i, !1), n === void 0 ? i = void 0 : (i = new n(o), i._$AT(o, e, r)), r !== void 0 ? (e._$Co ?? (e._$Co = []))[r] = i : e._$Cl = i), i !== void 0 && (t = rt(o, i._$AS(o, t.values), i, r)), t;
|
|
347
347
|
}
|
|
348
348
|
class Pe {
|
|
349
349
|
constructor(t, e) {
|
|
@@ -358,13 +358,13 @@ class Pe {
|
|
|
358
358
|
u(t) {
|
|
359
359
|
const { el: { content: e }, parts: r } = this._$AD, i = ((t == null ? void 0 : t.creationScope) ?? tt).importNode(e, !0);
|
|
360
360
|
Q.currentNode = i;
|
|
361
|
-
let n = Q.nextNode(), s = 0,
|
|
362
|
-
for (;
|
|
363
|
-
if (s ===
|
|
364
|
-
let
|
|
365
|
-
|
|
361
|
+
let n = Q.nextNode(), s = 0, h = 0, c = r[0];
|
|
362
|
+
for (; c !== void 0; ) {
|
|
363
|
+
if (s === c.index) {
|
|
364
|
+
let m;
|
|
365
|
+
c.type === 2 ? m = new mt(n, n.nextSibling, this, t) : c.type === 1 ? m = new c.ctor(n, c.name, c.strings, this, t) : c.type === 6 && (m = new De(n, this, t)), this._$AV.push(m), c = r[++h];
|
|
366
366
|
}
|
|
367
|
-
s !== (
|
|
367
|
+
s !== (c == null ? void 0 : c.index) && (n = Q.nextNode(), s++);
|
|
368
368
|
}
|
|
369
369
|
return Q.currentNode = tt, i;
|
|
370
370
|
}
|
|
@@ -409,8 +409,8 @@ class mt {
|
|
|
409
409
|
const { values: e, _$litType$: r } = t, i = typeof r == "number" ? this._$AC(t) : (r.el === void 0 && (r.el = ut.createElement(ve(r.h, r.h[0]), this.options)), r);
|
|
410
410
|
if (((n = this._$AH) == null ? void 0 : n._$AD) === i) this._$AH.p(e);
|
|
411
411
|
else {
|
|
412
|
-
const s = new Pe(i, this),
|
|
413
|
-
s.p(e), this.T(
|
|
412
|
+
const s = new Pe(i, this), h = s.u(this.options);
|
|
413
|
+
s.p(e), this.T(h), this._$AH = s;
|
|
414
414
|
}
|
|
415
415
|
}
|
|
416
416
|
_$AC(t) {
|
|
@@ -451,9 +451,9 @@ class St {
|
|
|
451
451
|
let s = !1;
|
|
452
452
|
if (n === void 0) t = rt(this, t, e, 0), s = !pt(t) || t !== this._$AH && t !== G, s && (this._$AH = t);
|
|
453
453
|
else {
|
|
454
|
-
const
|
|
455
|
-
let
|
|
456
|
-
for (t = n[0],
|
|
454
|
+
const h = t;
|
|
455
|
+
let c, m;
|
|
456
|
+
for (t = n[0], c = 0; c < n.length - 1; c++) m = rt(this, h[r + c], e, c), m === G && (m = this._$AH[c]), s || (s = !pt(m) || m !== this._$AH[c]), m === d ? t = d : t !== d && (t += (m ?? "") + n[c + 1]), this._$AH[c] = m;
|
|
457
457
|
}
|
|
458
458
|
s && !i && this.j(t);
|
|
459
459
|
}
|
|
@@ -519,7 +519,7 @@ const He = (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 it {
|
|
523
523
|
constructor() {
|
|
524
524
|
super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
|
|
525
525
|
}
|
|
@@ -545,16 +545,16 @@ let v = class extends it {
|
|
|
545
545
|
}
|
|
546
546
|
};
|
|
547
547
|
var ce;
|
|
548
|
-
|
|
548
|
+
u._$litElement$ = !0, u.finalized = !0, (ce = Y.litElementHydrateSupport) == null || ce.call(Y, { LitElement: u });
|
|
549
549
|
const Ot = Y.litElementPolyfillSupport;
|
|
550
|
-
Ot == null || Ot({ LitElement:
|
|
550
|
+
Ot == null || Ot({ 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 y = (o) => (t, e) => {
|
|
558
558
|
e !== void 0 ? e.addInitializer(() => {
|
|
559
559
|
customElements.define(o, t);
|
|
560
560
|
}) : customElements.define(o, t);
|
|
@@ -569,18 +569,18 @@ const Me = { attribute: !0, type: String, converter: Ct, reflect: !1, hasChanged
|
|
|
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") {
|
|
571
571
|
const { name: s } = e;
|
|
572
|
-
return { set(
|
|
573
|
-
const
|
|
574
|
-
t.set.call(this,
|
|
575
|
-
}, init(
|
|
576
|
-
return
|
|
572
|
+
return { set(h) {
|
|
573
|
+
const c = t.get.call(this);
|
|
574
|
+
t.set.call(this, h), this.requestUpdate(s, c, o);
|
|
575
|
+
}, init(h) {
|
|
576
|
+
return h !== void 0 && this.C(s, void 0, o, h), h;
|
|
577
577
|
} };
|
|
578
578
|
}
|
|
579
579
|
if (r === "setter") {
|
|
580
580
|
const { name: s } = e;
|
|
581
|
-
return function(
|
|
582
|
-
const
|
|
583
|
-
t.call(this,
|
|
581
|
+
return function(h) {
|
|
582
|
+
const c = this[s];
|
|
583
|
+
t.call(this, h), this.requestUpdate(s, c, o);
|
|
584
584
|
};
|
|
585
585
|
}
|
|
586
586
|
throw Error("Unsupported decorator location: " + r);
|
|
@@ -613,8 +613,8 @@ const je = (o, t, e) => (e.configurable = !0, e.enumerable = !0, Reflect.decorat
|
|
|
613
613
|
function fe(o, t) {
|
|
614
614
|
return (e, r, i) => {
|
|
615
615
|
const n = (s) => {
|
|
616
|
-
var
|
|
617
|
-
return ((
|
|
616
|
+
var h;
|
|
617
|
+
return ((h = s.renderRoot) == null ? void 0 : h.querySelector(o)) ?? null;
|
|
618
618
|
};
|
|
619
619
|
return je(e, r, { get() {
|
|
620
620
|
return n(this);
|
|
@@ -636,7 +636,7 @@ f`
|
|
|
636
636
|
* SPDX-License-Identifier: Apache-2.0
|
|
637
637
|
*/
|
|
638
638
|
const Nt = Symbol("internals"), zt = Symbol("privateInternals");
|
|
639
|
-
function
|
|
639
|
+
function Ut(o) {
|
|
640
640
|
var t;
|
|
641
641
|
class e extends o {
|
|
642
642
|
get [(t = Nt, t)]() {
|
|
@@ -655,8 +655,8 @@ function Re(o) {
|
|
|
655
655
|
const e = t;
|
|
656
656
|
e.addEventListener("click", async (r) => {
|
|
657
657
|
const { type: i, [Nt]: n } = e, { form: s } = n;
|
|
658
|
-
if (!(!s || i === "button") && (await new Promise((
|
|
659
|
-
setTimeout(
|
|
658
|
+
if (!(!s || i === "button") && (await new Promise((h) => {
|
|
659
|
+
setTimeout(h);
|
|
660
660
|
}), !r.defaultPrevented)) {
|
|
661
661
|
if (i === "reset") {
|
|
662
662
|
s.reset();
|
|
@@ -664,8 +664,8 @@ function Re(o) {
|
|
|
664
664
|
}
|
|
665
665
|
s.addEventListener(
|
|
666
666
|
"submit",
|
|
667
|
-
(
|
|
668
|
-
Object.defineProperty(
|
|
667
|
+
(h) => {
|
|
668
|
+
Object.defineProperty(h, "submitter", {
|
|
669
669
|
configurable: !0,
|
|
670
670
|
enumerable: !0,
|
|
671
671
|
get: () => e
|
|
@@ -680,10 +680,10 @@ function Re(o) {
|
|
|
680
680
|
const Ne = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
681
681
|
<path d="M8 3.6275C7.06799 0.971489 3.25399 -0.0226278 1.67414 2.30983C0.0877404 4.65197 1.67414 6.99412 2.62598 8.33249C3.0147 8.87905 8 14 8 14C8 14 12.9853 8.87905 13.374 8.33249C14.3259 6.99412 15.9123 4.65197 14.3259 2.30983C12.746 -0.0226277 8.97167 0.971489 8 3.6275Z" stroke="#3F2B2E" stroke-linecap="round"/>
|
|
682
682
|
</svg>
|
|
683
|
-
`,
|
|
683
|
+
`, Ue = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
684
684
|
<path d="M16 8L4 0V16L16 8Z" fill="#3F2B2E"/>
|
|
685
685
|
</svg>
|
|
686
|
-
`,
|
|
686
|
+
`, Fe = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
687
687
|
<path d="M12.2266 8.16162C11.0953 9.26599 8.72489 11.8788 5.11546 16L4.63062 15.7172C5.78886 13.4007 7.17607 10.8283 8.79223 8C7.17607 5.17172 5.78886 2.59933 4.63062 0.282827L5.11546 0C8.72489 4.12121 11.0953 6.73401 12.2266 7.83838V8.16162Z" fill="#3F2B2E"/>
|
|
688
688
|
</svg>
|
|
689
689
|
`, Ve = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
@@ -772,10 +772,10 @@ const Ne = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="h
|
|
|
772
772
|
</svg>
|
|
773
773
|
`, bo = `<svg xmlns="http://www.w3.org/2000/svg" width="10" height="8" viewBox="0 0 10 8" fill="none">
|
|
774
774
|
<path d="M1 4.5415L3 6.5415L9 0.541504" stroke="#FBF9F6" stroke-linecap="round" stroke-linejoin="round"/>
|
|
775
|
-
</svg>`,
|
|
775
|
+
</svg>`, N = {
|
|
776
776
|
wishlist: Ne,
|
|
777
|
-
playerv:
|
|
778
|
-
chevronRight:
|
|
777
|
+
playerv: Ue,
|
|
778
|
+
chevronRight: Fe,
|
|
779
779
|
chevronLeft: Ve,
|
|
780
780
|
icoPlus: Qe,
|
|
781
781
|
icoMinus: Ye,
|
|
@@ -810,7 +810,7 @@ const Ne = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="h
|
|
|
810
810
|
* Copyright 2017 Google LLC
|
|
811
811
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
812
812
|
*/
|
|
813
|
-
const
|
|
813
|
+
const Ft = { ATTRIBUTE: 1, CHILD: 2 }, Vt = (o) => (...t) => ({ _$litDirective$: o, values: t });
|
|
814
814
|
let Zt = class {
|
|
815
815
|
constructor(t) {
|
|
816
816
|
}
|
|
@@ -834,7 +834,7 @@ let Zt = class {
|
|
|
834
834
|
*/
|
|
835
835
|
class Bt extends Zt {
|
|
836
836
|
constructor(t) {
|
|
837
|
-
if (super(t), this.it = d, t.type !==
|
|
837
|
+
if (super(t), this.it = d, t.type !== Ft.CHILD) throw Error(this.constructor.directiveName + "() can only be used in child bindings");
|
|
838
838
|
}
|
|
839
839
|
render(t) {
|
|
840
840
|
if (t === d || t == null) return this._t = void 0, this.it = t;
|
|
@@ -856,13 +856,13 @@ class Dt extends Bt {
|
|
|
856
856
|
}
|
|
857
857
|
Dt.directiveName = "unsafeSVG", Dt.resultType = 2;
|
|
858
858
|
const C = Vt(Dt);
|
|
859
|
-
var mo = Object.defineProperty, xo = Object.getOwnPropertyDescriptor,
|
|
859
|
+
var mo = Object.defineProperty, xo = Object.getOwnPropertyDescriptor, x = (o, t, e, r) => {
|
|
860
860
|
for (var i = r > 1 ? void 0 : r ? xo(t, e) : t, n = o.length - 1, s; n >= 0; n--)
|
|
861
861
|
(s = o[n]) && (i = (r ? s(t, e, i) : s(i)) || i);
|
|
862
862
|
return r && i && mo(t, e, i), i;
|
|
863
863
|
};
|
|
864
|
-
const wo =
|
|
865
|
-
let
|
|
864
|
+
const wo = Ut(u);
|
|
865
|
+
let b = class extends wo {
|
|
866
866
|
constructor() {
|
|
867
867
|
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;
|
|
868
868
|
}
|
|
@@ -887,7 +887,7 @@ let g = class extends wo {
|
|
|
887
887
|
renderIcon(o) {
|
|
888
888
|
const t = o === "start" ? this.startIconModel : this.endIconModel;
|
|
889
889
|
if (!t) return d;
|
|
890
|
-
const e =
|
|
890
|
+
const e = N[t].replace(
|
|
891
891
|
"<svg",
|
|
892
892
|
'<svg aria-hidden="true" focusable="false" part="svg"'
|
|
893
893
|
);
|
|
@@ -926,9 +926,9 @@ let g = class extends wo {
|
|
|
926
926
|
`;
|
|
927
927
|
}
|
|
928
928
|
};
|
|
929
|
-
Re(
|
|
930
|
-
|
|
931
|
-
|
|
929
|
+
Re(b);
|
|
930
|
+
b.formAssociated = !0;
|
|
931
|
+
b.styles = f`
|
|
932
932
|
:host {
|
|
933
933
|
--button-border: transparent;
|
|
934
934
|
--badge-outer-width: 19px;
|
|
@@ -1130,63 +1130,63 @@ g.styles = f`
|
|
|
1130
1130
|
}
|
|
1131
1131
|
//End icon movment on hover
|
|
1132
1132
|
`;
|
|
1133
|
-
|
|
1133
|
+
x([
|
|
1134
1134
|
a()
|
|
1135
|
-
],
|
|
1136
|
-
|
|
1135
|
+
], b.prototype, "type", 2);
|
|
1136
|
+
x([
|
|
1137
1137
|
a({ reflect: !0 })
|
|
1138
|
-
],
|
|
1139
|
-
|
|
1138
|
+
], b.prototype, "value", 2);
|
|
1139
|
+
x([
|
|
1140
1140
|
a({ type: String, reflect: !0 })
|
|
1141
|
-
],
|
|
1142
|
-
|
|
1141
|
+
], b.prototype, "variant", 2);
|
|
1142
|
+
x([
|
|
1143
1143
|
a({ type: String })
|
|
1144
|
-
],
|
|
1145
|
-
|
|
1144
|
+
], b.prototype, "text", 2);
|
|
1145
|
+
x([
|
|
1146
1146
|
a({ type: String })
|
|
1147
|
-
],
|
|
1148
|
-
|
|
1147
|
+
], b.prototype, "textsecond", 2);
|
|
1148
|
+
x([
|
|
1149
1149
|
a({ type: Boolean, reflect: !0 })
|
|
1150
|
-
],
|
|
1151
|
-
|
|
1150
|
+
], b.prototype, "fullwidth", 2);
|
|
1151
|
+
x([
|
|
1152
1152
|
a({ type: Boolean, reflect: !0 })
|
|
1153
|
-
],
|
|
1154
|
-
|
|
1153
|
+
], b.prototype, "disabled", 2);
|
|
1154
|
+
x([
|
|
1155
1155
|
a({ type: String, reflect: !0 })
|
|
1156
|
-
],
|
|
1157
|
-
|
|
1156
|
+
], b.prototype, "startIconModel", 2);
|
|
1157
|
+
x([
|
|
1158
1158
|
a({ type: String, reflect: !0 })
|
|
1159
|
-
],
|
|
1160
|
-
|
|
1159
|
+
], b.prototype, "endIconModel", 2);
|
|
1160
|
+
x([
|
|
1161
1161
|
a({ type: Boolean, reflect: !0, attribute: "starticon" })
|
|
1162
|
-
],
|
|
1163
|
-
|
|
1162
|
+
], b.prototype, "startIcon", 2);
|
|
1163
|
+
x([
|
|
1164
1164
|
a({ type: Boolean, reflect: !0, attribute: "endicon" })
|
|
1165
|
-
],
|
|
1166
|
-
|
|
1165
|
+
], b.prototype, "endIcon", 2);
|
|
1166
|
+
x([
|
|
1167
1167
|
a({ type: String, attribute: "paneltarget", reflect: !0 })
|
|
1168
|
-
],
|
|
1169
|
-
|
|
1168
|
+
], b.prototype, "panelTarget", 2);
|
|
1169
|
+
x([
|
|
1170
1170
|
a({ type: String })
|
|
1171
|
-
],
|
|
1172
|
-
|
|
1171
|
+
], b.prototype, "href", 2);
|
|
1172
|
+
x([
|
|
1173
1173
|
a({ type: String })
|
|
1174
|
-
],
|
|
1175
|
-
|
|
1174
|
+
], b.prototype, "target", 2);
|
|
1175
|
+
x([
|
|
1176
1176
|
a({ type: Boolean, reflect: !0 })
|
|
1177
|
-
],
|
|
1178
|
-
|
|
1177
|
+
], b.prototype, "underlined", 2);
|
|
1178
|
+
x([
|
|
1179
1179
|
a({ type: Boolean, reflect: !0 })
|
|
1180
|
-
],
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
],
|
|
1180
|
+
], b.prototype, "withbadge", 2);
|
|
1181
|
+
b = x([
|
|
1182
|
+
y("o-button")
|
|
1183
|
+
], b);
|
|
1184
1184
|
var $o = Object.defineProperty, Co = Object.getOwnPropertyDescriptor, Et = (o, t, e, r) => {
|
|
1185
1185
|
for (var i = r > 1 ? void 0 : r ? Co(t, e) : t, n = o.length - 1, s; n >= 0; n--)
|
|
1186
1186
|
(s = o[n]) && (i = (r ? s(t, e, i) : s(i)) || i);
|
|
1187
1187
|
return r && i && $o(t, e, i), i;
|
|
1188
1188
|
};
|
|
1189
|
-
let nt = class extends
|
|
1189
|
+
let nt = class extends u {
|
|
1190
1190
|
constructor() {
|
|
1191
1191
|
super(...arguments), this.status = "empty", this.ariaDescribedBy = "a-product-name", this.label = "Add to wishlist", this.toggleStatus = () => {
|
|
1192
1192
|
this.status = this.status === "empty" ? "filled" : "empty", this.setAttribute("aria-pressed", String(this.status === "filled")), this.dispatchEvent(new CustomEvent("wishlist-toggle", {
|
|
@@ -1206,7 +1206,7 @@ let nt = class extends v {
|
|
|
1206
1206
|
(o.key === "Enter" || o.key === " ") && (o.preventDefault(), this.toggleStatus());
|
|
1207
1207
|
}
|
|
1208
1208
|
render() {
|
|
1209
|
-
const o =
|
|
1209
|
+
const o = N.wishlist.replace(
|
|
1210
1210
|
"<svg",
|
|
1211
1211
|
'<svg aria-hidden="true" focusable="false" part="svg"'
|
|
1212
1212
|
);
|
|
@@ -1303,20 +1303,20 @@ Et([
|
|
|
1303
1303
|
a({ type: String, reflect: !0 })
|
|
1304
1304
|
], nt.prototype, "label", 2);
|
|
1305
1305
|
nt = Et([
|
|
1306
|
-
|
|
1306
|
+
y("o-wishlist-button")
|
|
1307
1307
|
], nt);
|
|
1308
1308
|
/**
|
|
1309
1309
|
* @license
|
|
1310
1310
|
* Copyright 2018 Google LLC
|
|
1311
1311
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1312
1312
|
*/
|
|
1313
|
-
const
|
|
1314
|
-
var _o = Object.defineProperty, ko = Object.getOwnPropertyDescriptor,
|
|
1313
|
+
const k = (o) => o ?? d;
|
|
1314
|
+
var _o = Object.defineProperty, ko = Object.getOwnPropertyDescriptor, H = (o, t, e, r) => {
|
|
1315
1315
|
for (var i = r > 1 ? void 0 : r ? ko(t, e) : t, n = o.length - 1, s; n >= 0; n--)
|
|
1316
1316
|
(s = o[n]) && (i = (r ? s(t, e, i) : s(i)) || i);
|
|
1317
1317
|
return r && i && _o(t, e, i), i;
|
|
1318
1318
|
};
|
|
1319
|
-
let
|
|
1319
|
+
let S = class extends u {
|
|
1320
1320
|
constructor() {
|
|
1321
1321
|
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 = "";
|
|
1322
1322
|
}
|
|
@@ -1324,7 +1324,7 @@ let E = class extends v {
|
|
|
1324
1324
|
super.updated(o), this.style.setProperty("--icon-stroke-width", this.strokewidth);
|
|
1325
1325
|
}
|
|
1326
1326
|
render() {
|
|
1327
|
-
const o =
|
|
1327
|
+
const o = N[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";
|
|
1328
1328
|
return l`
|
|
1329
1329
|
${this.type === "span" ? l`
|
|
1330
1330
|
<span class="icon icon-button ${this.size} ${this.bgstyle} ${this.status} ${t}" ?disabled="${this.disabled}">
|
|
@@ -1333,7 +1333,7 @@ let E = class extends v {
|
|
|
1333
1333
|
` : l`
|
|
1334
1334
|
<button
|
|
1335
1335
|
type="button"
|
|
1336
|
-
aria-label=${
|
|
1336
|
+
aria-label=${k(i)}
|
|
1337
1337
|
class="icon-button ${this.size} ${this.bgstyle} ${this.status} ${t}"
|
|
1338
1338
|
?disabled="${this.disabled}"
|
|
1339
1339
|
>
|
|
@@ -1344,7 +1344,7 @@ let E = class extends v {
|
|
|
1344
1344
|
`;
|
|
1345
1345
|
}
|
|
1346
1346
|
};
|
|
1347
|
-
|
|
1347
|
+
S.styles = f`
|
|
1348
1348
|
:host {
|
|
1349
1349
|
display: inline-flex;
|
|
1350
1350
|
justify-content: center;
|
|
@@ -1556,42 +1556,42 @@ E.styles = f`
|
|
|
1556
1556
|
display: none;
|
|
1557
1557
|
}
|
|
1558
1558
|
`;
|
|
1559
|
-
|
|
1559
|
+
H([
|
|
1560
1560
|
a({ type: String, reflect: !0 })
|
|
1561
|
-
],
|
|
1562
|
-
|
|
1561
|
+
], S.prototype, "bgstyle", 2);
|
|
1562
|
+
H([
|
|
1563
1563
|
a({ type: String, reflect: !0 })
|
|
1564
|
-
],
|
|
1565
|
-
|
|
1564
|
+
], S.prototype, "size", 2);
|
|
1565
|
+
H([
|
|
1566
1566
|
a({ type: String, reflect: !0 })
|
|
1567
|
-
],
|
|
1568
|
-
|
|
1567
|
+
], S.prototype, "status", 2);
|
|
1568
|
+
H([
|
|
1569
1569
|
a({ type: String, reflect: !0 })
|
|
1570
|
-
],
|
|
1571
|
-
|
|
1570
|
+
], S.prototype, "type", 2);
|
|
1571
|
+
H([
|
|
1572
1572
|
a({ type: String })
|
|
1573
|
-
],
|
|
1574
|
-
|
|
1573
|
+
], S.prototype, "strokewidth", 2);
|
|
1574
|
+
H([
|
|
1575
1575
|
a({ type: String })
|
|
1576
|
-
],
|
|
1577
|
-
|
|
1576
|
+
], S.prototype, "icon", 2);
|
|
1577
|
+
H([
|
|
1578
1578
|
a({ type: Boolean, reflect: !0 })
|
|
1579
|
-
],
|
|
1580
|
-
|
|
1579
|
+
], S.prototype, "disabled", 2);
|
|
1580
|
+
H([
|
|
1581
1581
|
a({ type: Boolean })
|
|
1582
|
-
],
|
|
1583
|
-
|
|
1582
|
+
], S.prototype, "showSrLabel", 2);
|
|
1583
|
+
H([
|
|
1584
1584
|
a({ type: String })
|
|
1585
|
-
],
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
],
|
|
1585
|
+
], S.prototype, "srLabel", 2);
|
|
1586
|
+
S = H([
|
|
1587
|
+
y("o-icon-button")
|
|
1588
|
+
], S);
|
|
1589
1589
|
var So = Object.defineProperty, Eo = Object.getOwnPropertyDescriptor, ot = (o, t, e, r) => {
|
|
1590
1590
|
for (var i = r > 1 ? void 0 : r ? Eo(t, e) : t, n = o.length - 1, s; n >= 0; n--)
|
|
1591
1591
|
(s = o[n]) && (i = (r ? s(t, e, i) : s(i)) || i);
|
|
1592
1592
|
return r && i && So(t, e, i), i;
|
|
1593
1593
|
};
|
|
1594
|
-
let U = class extends
|
|
1594
|
+
let U = class extends u {
|
|
1595
1595
|
constructor() {
|
|
1596
1596
|
super(...arguments), this.href = "", this.target = "", this.template = "standard", this.inverse = !1, this.endIcon = !1, this.reverseEndIcon = !1;
|
|
1597
1597
|
}
|
|
@@ -1603,7 +1603,7 @@ let U = class extends v {
|
|
|
1603
1603
|
return l`
|
|
1604
1604
|
<a
|
|
1605
1605
|
href="${o}"
|
|
1606
|
-
target="${
|
|
1606
|
+
target="${k(this.target || void 0)}"
|
|
1607
1607
|
@click="${this._handleClick}"
|
|
1608
1608
|
>
|
|
1609
1609
|
${this.endIcon && this.reverseEndIcon ? l`
|
|
@@ -1736,14 +1736,14 @@ ot([
|
|
|
1736
1736
|
a({ type: Boolean, reflect: !0 })
|
|
1737
1737
|
], U.prototype, "reverseEndIcon", 2);
|
|
1738
1738
|
U = ot([
|
|
1739
|
-
|
|
1739
|
+
y("o-link")
|
|
1740
1740
|
], U);
|
|
1741
1741
|
var Ao = Object.defineProperty, Lo = Object.getOwnPropertyDescriptor, At = (o, t, e, r) => {
|
|
1742
1742
|
for (var i = r > 1 ? void 0 : r ? Lo(t, e) : t, n = o.length - 1, s; n >= 0; n--)
|
|
1743
1743
|
(s = o[n]) && (i = (r ? s(t, e, i) : s(i)) || i);
|
|
1744
1744
|
return r && i && Ao(t, e, i), i;
|
|
1745
1745
|
};
|
|
1746
|
-
let st = class extends
|
|
1746
|
+
let st = class extends u {
|
|
1747
1747
|
constructor() {
|
|
1748
1748
|
super(...arguments), this.rating = 0;
|
|
1749
1749
|
}
|
|
@@ -1762,7 +1762,7 @@ let st = class extends v {
|
|
|
1762
1762
|
<div class="rating">
|
|
1763
1763
|
<div class="stars">
|
|
1764
1764
|
${o.map(
|
|
1765
|
-
(t) => l`<span class="star">${C(
|
|
1765
|
+
(t) => l`<span class="star">${C(N[t] ?? "")}</span>`
|
|
1766
1766
|
)}
|
|
1767
1767
|
</div>
|
|
1768
1768
|
${this.reviewCount != null && this.href != null ? l`<o-link template="review" href="${this.href}">${this.reviewCount}</o-link>` : null}
|
|
@@ -1814,7 +1814,7 @@ At([
|
|
|
1814
1814
|
a({ type: String })
|
|
1815
1815
|
], st.prototype, "href", 2);
|
|
1816
1816
|
st = At([
|
|
1817
|
-
|
|
1817
|
+
y("o-rating")
|
|
1818
1818
|
], st);
|
|
1819
1819
|
/**
|
|
1820
1820
|
* @license
|
|
@@ -1857,7 +1857,7 @@ function Oo(o, t = !1, e = 0) {
|
|
|
1857
1857
|
else ht(this, o);
|
|
1858
1858
|
}
|
|
1859
1859
|
const zo = (o) => {
|
|
1860
|
-
o.type ==
|
|
1860
|
+
o.type == Ft.CHILD && (o._$AP ?? (o._$AP = Oo), o._$AQ ?? (o._$AQ = Po));
|
|
1861
1861
|
};
|
|
1862
1862
|
class Bo extends Zt {
|
|
1863
1863
|
constructor() {
|
|
@@ -2003,12 +2003,12 @@ class Mo extends Ho {
|
|
|
2003
2003
|
}
|
|
2004
2004
|
}
|
|
2005
2005
|
const le = Vt(Mo);
|
|
2006
|
-
var To = Object.defineProperty, jo = Object.getOwnPropertyDescriptor,
|
|
2006
|
+
var To = Object.defineProperty, jo = Object.getOwnPropertyDescriptor, g = (o, t, e, r) => {
|
|
2007
2007
|
for (var i = r > 1 ? void 0 : r ? jo(t, e) : t, n = o.length - 1, s; n >= 0; n--)
|
|
2008
2008
|
(s = o[n]) && (i = (r ? s(t, e, i) : s(i)) || i);
|
|
2009
2009
|
return r && i && To(t, e, i), i;
|
|
2010
2010
|
};
|
|
2011
|
-
let
|
|
2011
|
+
let p = class extends u {
|
|
2012
2012
|
constructor() {
|
|
2013
2013
|
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.innerFocusedElement = null, this._onOpenDetail = () => {
|
|
2014
2014
|
this.showDetail = !0, this.showHeaderStartIcon = !0;
|
|
@@ -2043,13 +2043,22 @@ let u = class extends v {
|
|
|
2043
2043
|
disconnectedCallback() {
|
|
2044
2044
|
document.body.style.overflow = "", document.body.removeAttribute("data-side-panel"), this.removeEventListener("keydown", this.handleKeyDown), super.disconnectedCallback(), this.removeEventListener("open-detail", this._onOpenDetail);
|
|
2045
2045
|
}
|
|
2046
|
+
getDeepActiveElement(o = this.shadowRoot) {
|
|
2047
|
+
let t = o.activeElement;
|
|
2048
|
+
for (; t && t.shadowRoot && t.shadowRoot.activeElement; )
|
|
2049
|
+
t = t.shadowRoot.activeElement;
|
|
2050
|
+
return t;
|
|
2051
|
+
}
|
|
2046
2052
|
trapFocus(o) {
|
|
2047
|
-
|
|
2048
|
-
|
|
2049
|
-
|
|
2050
|
-
|
|
2051
|
-
|
|
2052
|
-
|
|
2053
|
+
if (o.key !== "Tab") return;
|
|
2054
|
+
const t = this.getDeepActiveElement(), e = this.renderRoot.querySelector(".close-btn");
|
|
2055
|
+
if (!o.shiftKey && e && e.contains(t)) {
|
|
2056
|
+
o.preventDefault();
|
|
2057
|
+
const r = this.renderRoot.querySelector(
|
|
2058
|
+
".o-whats-inside--content p"
|
|
2059
|
+
);
|
|
2060
|
+
r == null || r.focus();
|
|
2061
|
+
}
|
|
2053
2062
|
}
|
|
2054
2063
|
getFocusableElements() {
|
|
2055
2064
|
const o = this.renderRoot.querySelector(".panel");
|
|
@@ -2059,36 +2068,40 @@ let u = class extends v {
|
|
|
2059
2068
|
}
|
|
2060
2069
|
function e(i) {
|
|
2061
2070
|
var s;
|
|
2062
|
-
const n = [i.matches(
|
|
2071
|
+
const n = [i.matches(p.focusablesSelector) ? i : []];
|
|
2063
2072
|
if (!["o-icon-button", "o-button"].includes(i.tagName.toLowerCase())) {
|
|
2064
|
-
const
|
|
2073
|
+
const h = Array.from(
|
|
2065
2074
|
i instanceof HTMLSlotElement ? i.assignedElements({ flatten: !0 }) : []
|
|
2066
|
-
).filter(t).flatMap(e),
|
|
2075
|
+
).filter(t).flatMap(e), c = Array.from(
|
|
2067
2076
|
((s = i.shadowRoot) == null ? void 0 : s.querySelectorAll("*")) || []
|
|
2068
2077
|
).filter(t).flatMap(e);
|
|
2069
|
-
n.push(...
|
|
2078
|
+
n.push(...h, ...c);
|
|
2070
2079
|
}
|
|
2071
2080
|
return n.flat();
|
|
2072
2081
|
}
|
|
2073
2082
|
return Array.from(o.querySelectorAll("*")).filter(t).flatMap(e);
|
|
2074
2083
|
}
|
|
2075
2084
|
openPanel() {
|
|
2076
|
-
this.previousFocusedElement = document.activeElement, this.open = !0, document.body.style.overflow = "hidden", document.body.setAttribute("data-side-panel", "open")
|
|
2077
|
-
|
|
2085
|
+
this.removeAttribute("hidden"), this.getBoundingClientRect(), this.previousFocusedElement = document.activeElement, this.open = !0, document.body.style.overflow = "hidden", document.body.setAttribute("data-side-panel", "open");
|
|
2086
|
+
const o = this.renderRoot.querySelector(".panel");
|
|
2087
|
+
o && o.setAttribute("aria-modal", "true"), this.updateComplete.then(() => {
|
|
2088
|
+
var t, e, r, i;
|
|
2078
2089
|
if (this.showHeader) {
|
|
2079
|
-
const
|
|
2080
|
-
|
|
2090
|
+
const n = ((t = this.shadowRoot) == null ? void 0 : t.querySelector(".panel .close-btn")) || null, s = ((e = n == null ? void 0 : n.shadowRoot) == null ? void 0 : e.querySelector("button")) || null;
|
|
2091
|
+
s && ((r = s.focus) == null || r.call(s));
|
|
2081
2092
|
} else {
|
|
2082
|
-
const
|
|
2083
|
-
(
|
|
2093
|
+
const n = this.getFocusableElements()[0];
|
|
2094
|
+
(i = n == null ? void 0 : n.focus) == null || i.call(n);
|
|
2084
2095
|
}
|
|
2085
2096
|
}), this.dispatchEvent(
|
|
2086
2097
|
new CustomEvent("open", { bubbles: !0, composed: !0 })
|
|
2087
2098
|
);
|
|
2088
2099
|
}
|
|
2089
2100
|
closePanel() {
|
|
2090
|
-
var
|
|
2091
|
-
this.open = !1, this.showDetail = !1, document.body.style.overflow = "", document.body.removeAttribute("data-side-panel"), ((
|
|
2101
|
+
var t, e, r, i, n;
|
|
2102
|
+
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();
|
|
2103
|
+
const o = this.renderRoot.querySelector(".panel");
|
|
2104
|
+
o && o.removeAttribute("aria-modal"), this.dispatchEvent(
|
|
2092
2105
|
new CustomEvent("close", { bubbles: !0, composed: !0 })
|
|
2093
2106
|
);
|
|
2094
2107
|
}
|
|
@@ -2119,7 +2132,9 @@ let u = class extends v {
|
|
|
2119
2132
|
));
|
|
2120
2133
|
}
|
|
2121
2134
|
updated() {
|
|
2122
|
-
this.style.setProperty("--z-overlay", `${this.zIndex || 99}`), this.style.setProperty("--z-panel", `${this.zIndex ? this.zIndex + 1 : 99}`)
|
|
2135
|
+
this.style.setProperty("--z-overlay", `${this.zIndex || 99}`), this.style.setProperty("--z-panel", `${this.zIndex ? this.zIndex + 1 : 99}`), this.open || setTimeout(() => {
|
|
2136
|
+
this.setAttribute("hidden", "hidden");
|
|
2137
|
+
}, 500);
|
|
2123
2138
|
}
|
|
2124
2139
|
render() {
|
|
2125
2140
|
const o = this.showHeader ? l`
|
|
@@ -2136,9 +2151,9 @@ let u = class extends v {
|
|
|
2136
2151
|
aria-label="${this.closeButtonLabel}"
|
|
2137
2152
|
></o-icon-button>
|
|
2138
2153
|
` : null}
|
|
2139
|
-
<
|
|
2154
|
+
<p role="heading" aria-level="1" id="panel-title" class="${this.headerTitleClassName}">
|
|
2140
2155
|
${this.headerTitle}
|
|
2141
|
-
</
|
|
2156
|
+
</p>
|
|
2142
2157
|
<o-icon-button
|
|
2143
2158
|
icon="cross"
|
|
2144
2159
|
size="small"
|
|
@@ -2148,6 +2163,8 @@ let u = class extends v {
|
|
|
2148
2163
|
@keydown=${this.handleClosePanel}
|
|
2149
2164
|
aria-label="${this.closeButtonLabel}"
|
|
2150
2165
|
aria-describedby="panel-title"
|
|
2166
|
+
srlabel="${this.closeButtonLabel}"
|
|
2167
|
+
showsrlabel="true"
|
|
2151
2168
|
></o-icon-button>
|
|
2152
2169
|
</div>
|
|
2153
2170
|
` : null;
|
|
@@ -2161,51 +2178,52 @@ let u = class extends v {
|
|
|
2161
2178
|
style="z-index: ${this.zIndex + 1}"
|
|
2162
2179
|
tabindex="-1"
|
|
2163
2180
|
>
|
|
2164
|
-
|
|
2165
|
-
|
|
2166
|
-
|
|
2167
|
-
|
|
2168
|
-
|
|
2169
|
-
|
|
2170
|
-
|
|
2171
|
-
|
|
2172
|
-
|
|
2173
|
-
|
|
2181
|
+
<div role="document">
|
|
2182
|
+
${o}
|
|
2183
|
+
|
|
2184
|
+
<div class="content ${this.isHidingDetail ? "slide-out-right" : ""} ${this.showDetail ? "with-detail" : ""}">
|
|
2185
|
+
|
|
2186
|
+
${this.showDetail ? l`
|
|
2187
|
+
<div class="detail-view">
|
|
2188
|
+
${o}
|
|
2189
|
+
<div class="detail-content">
|
|
2190
|
+
<slot name="detail"></slot>
|
|
2191
|
+
</div>
|
|
2174
2192
|
</div>
|
|
2175
|
-
|
|
2176
|
-
|
|
2177
|
-
|
|
2178
|
-
|
|
2179
|
-
|
|
2180
|
-
|
|
2181
|
-
|
|
2182
|
-
|
|
2183
|
-
|
|
2184
|
-
|
|
2185
|
-
|
|
2186
|
-
|
|
2187
|
-
|
|
2188
|
-
|
|
2189
|
-
|
|
2190
|
-
|
|
2191
|
-
|
|
2192
|
-
|
|
2193
|
-
|
|
2194
|
-
|
|
2195
|
-
|
|
2196
|
-
|
|
2197
|
-
|
|
2198
|
-
|
|
2199
|
-
|
|
2200
|
-
|
|
2193
|
+
` : l`<slot></slot>`}
|
|
2194
|
+
</div>
|
|
2195
|
+
|
|
2196
|
+
${this.showFooter ? l`
|
|
2197
|
+
<div class="footer">
|
|
2198
|
+
${this.firstButtonVariant && this.firstButtonLabel ? l`
|
|
2199
|
+
<o-button
|
|
2200
|
+
variant="${this.firstButtonVariant}"
|
|
2201
|
+
@click=${this.handleFirstClick}
|
|
2202
|
+
@keydown=${this.handleFirstClick}
|
|
2203
|
+
${le(this.firstButtonProps)}
|
|
2204
|
+
>
|
|
2205
|
+
${this.firstButtonLabel}
|
|
2206
|
+
</o-button>
|
|
2207
|
+
` : null}
|
|
2208
|
+
|
|
2209
|
+
${this.secondButtonVariant && this.secondButtonLabel ? l`
|
|
2210
|
+
<o-button
|
|
2211
|
+
variant="${this.secondButtonVariant}"
|
|
2212
|
+
@click=${this.handleSecondClick}
|
|
2213
|
+
@keydown=${this.handleSecondClick}
|
|
2214
|
+
${le(this.secondButtonProps)}
|
|
2215
|
+
>
|
|
2216
|
+
${this.secondButtonLabel}
|
|
2217
|
+
</o-button>
|
|
2218
|
+
` : null}
|
|
2219
|
+
</div>
|
|
2201
2220
|
` : null}
|
|
2202
|
-
|
|
2203
|
-
` : null}
|
|
2221
|
+
</div>
|
|
2204
2222
|
</div>
|
|
2205
2223
|
`;
|
|
2206
2224
|
}
|
|
2207
2225
|
};
|
|
2208
|
-
|
|
2226
|
+
p.styles = f`
|
|
2209
2227
|
:host {
|
|
2210
2228
|
--z-overlay: 99;
|
|
2211
2229
|
--z-panel: 100;
|
|
@@ -2305,9 +2323,7 @@ u.styles = f`
|
|
|
2305
2323
|
}
|
|
2306
2324
|
}
|
|
2307
2325
|
|
|
2308
|
-
.panel:focus,
|
|
2309
2326
|
.panel:focus-visible,
|
|
2310
|
-
.close-btn:focus,
|
|
2311
2327
|
.close-btn:focus-visible {
|
|
2312
2328
|
${xt}
|
|
2313
2329
|
}
|
|
@@ -2394,77 +2410,77 @@ u.styles = f`
|
|
|
2394
2410
|
padding: var(--spacing-xl);
|
|
2395
2411
|
}
|
|
2396
2412
|
`;
|
|
2397
|
-
|
|
2398
|
-
|
|
2399
|
-
|
|
2413
|
+
p.focusablesSelector = 'button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"]), o-icon-button, o-button';
|
|
2414
|
+
p.focusablesCustomElementsSelector = "o-icon-button, o-button";
|
|
2415
|
+
g([
|
|
2400
2416
|
a({ type: Boolean, reflect: !0 })
|
|
2401
|
-
],
|
|
2402
|
-
|
|
2417
|
+
], p.prototype, "open", 2);
|
|
2418
|
+
g([
|
|
2403
2419
|
a({ type: Boolean, reflect: !0 })
|
|
2404
|
-
],
|
|
2405
|
-
|
|
2420
|
+
], p.prototype, "showHeader", 2);
|
|
2421
|
+
g([
|
|
2406
2422
|
a({ type: Boolean, reflect: !0 })
|
|
2407
|
-
],
|
|
2408
|
-
|
|
2423
|
+
], p.prototype, "showFooter", 2);
|
|
2424
|
+
g([
|
|
2409
2425
|
a({ type: Boolean, reflect: !0 })
|
|
2410
|
-
],
|
|
2411
|
-
|
|
2426
|
+
], p.prototype, "showHeaderStartIcon", 2);
|
|
2427
|
+
g([
|
|
2412
2428
|
a({ type: String, reflect: !0 })
|
|
2413
|
-
],
|
|
2414
|
-
|
|
2429
|
+
], p.prototype, "headerTitle", 2);
|
|
2430
|
+
g([
|
|
2415
2431
|
a({ type: String, reflect: !0 })
|
|
2416
|
-
],
|
|
2417
|
-
|
|
2432
|
+
], p.prototype, "headerTitleClassName", 2);
|
|
2433
|
+
g([
|
|
2418
2434
|
a({ type: String, reflect: !0 })
|
|
2419
|
-
],
|
|
2420
|
-
|
|
2435
|
+
], p.prototype, "closeButtonLabel", 2);
|
|
2436
|
+
g([
|
|
2421
2437
|
a({ type: String, reflect: !0 })
|
|
2422
|
-
],
|
|
2423
|
-
|
|
2438
|
+
], p.prototype, "firstButtonLabel", 2);
|
|
2439
|
+
g([
|
|
2424
2440
|
a({ type: String, reflect: !0 })
|
|
2425
|
-
],
|
|
2426
|
-
|
|
2441
|
+
], p.prototype, "firstButtonVariant", 2);
|
|
2442
|
+
g([
|
|
2427
2443
|
a({ type: Object, reflect: !0 })
|
|
2428
|
-
],
|
|
2429
|
-
|
|
2444
|
+
], p.prototype, "firstButtonProps", 2);
|
|
2445
|
+
g([
|
|
2430
2446
|
a({ type: Boolean, reflect: !0 })
|
|
2431
|
-
],
|
|
2432
|
-
|
|
2447
|
+
], p.prototype, "onFirstButtonClickClose", 2);
|
|
2448
|
+
g([
|
|
2433
2449
|
a({ type: String, reflect: !0 })
|
|
2434
|
-
],
|
|
2435
|
-
|
|
2450
|
+
], p.prototype, "secondButtonLabel", 2);
|
|
2451
|
+
g([
|
|
2436
2452
|
a({ type: String, reflect: !0 })
|
|
2437
|
-
],
|
|
2438
|
-
|
|
2453
|
+
], p.prototype, "secondButtonVariant", 2);
|
|
2454
|
+
g([
|
|
2439
2455
|
a({ type: Object, reflect: !0 })
|
|
2440
|
-
],
|
|
2441
|
-
|
|
2456
|
+
], p.prototype, "secondButtonProps", 2);
|
|
2457
|
+
g([
|
|
2442
2458
|
a({ type: Boolean, reflect: !0 })
|
|
2443
|
-
],
|
|
2444
|
-
|
|
2459
|
+
], p.prototype, "onSecondButtonClickClose", 2);
|
|
2460
|
+
g([
|
|
2445
2461
|
a({ type: Boolean, reflect: !0 })
|
|
2446
|
-
],
|
|
2447
|
-
|
|
2462
|
+
], p.prototype, "disablePortal", 2);
|
|
2463
|
+
g([
|
|
2448
2464
|
a({ type: Number, reflect: !0 })
|
|
2449
|
-
],
|
|
2450
|
-
|
|
2465
|
+
], p.prototype, "zIndex", 2);
|
|
2466
|
+
g([
|
|
2451
2467
|
a({ type: Boolean, reflect: !0 })
|
|
2452
|
-
],
|
|
2453
|
-
|
|
2468
|
+
], p.prototype, "initialized", 2);
|
|
2469
|
+
g([
|
|
2454
2470
|
a({ type: Boolean })
|
|
2455
|
-
],
|
|
2456
|
-
|
|
2471
|
+
], p.prototype, "showDetail", 2);
|
|
2472
|
+
g([
|
|
2457
2473
|
a({ type: Boolean })
|
|
2458
|
-
],
|
|
2459
|
-
|
|
2460
|
-
|
|
2461
|
-
],
|
|
2474
|
+
], p.prototype, "isHidingDetail", 2);
|
|
2475
|
+
p = g([
|
|
2476
|
+
y("o-side-panel")
|
|
2477
|
+
], p);
|
|
2462
2478
|
var Ro = Object.defineProperty, No = Object.getOwnPropertyDescriptor, X = (o, t, e, r) => {
|
|
2463
2479
|
for (var i = r > 1 ? void 0 : r ? No(t, e) : t, n = o.length - 1, s; n >= 0; n--)
|
|
2464
2480
|
(s = o[n]) && (i = (r ? s(t, e, i) : s(i)) || i);
|
|
2465
2481
|
return r && i && Ro(t, e, i), i;
|
|
2466
2482
|
};
|
|
2467
|
-
let
|
|
2483
|
+
let D = class extends u {
|
|
2468
2484
|
constructor() {
|
|
2469
2485
|
super(...arguments), this.thumbnails = [], this.activeIndex = 0, this.disabledIndexes = [], this.maxWidth = "100%", this.altressource = "visual", this.focusedIndex = 0, this.playerIconTemplate = l`
|
|
2470
2486
|
<o-icon-button
|
|
@@ -2555,7 +2571,7 @@ let M = class extends v {
|
|
|
2555
2571
|
`;
|
|
2556
2572
|
}
|
|
2557
2573
|
};
|
|
2558
|
-
|
|
2574
|
+
D.styles = f`
|
|
2559
2575
|
:host {
|
|
2560
2576
|
display: flex;
|
|
2561
2577
|
gap: 5px;
|
|
@@ -2663,34 +2679,34 @@ M.styles = f`
|
|
|
2663
2679
|
`;
|
|
2664
2680
|
X([
|
|
2665
2681
|
a({ type: Array })
|
|
2666
|
-
],
|
|
2682
|
+
], D.prototype, "thumbnails", 2);
|
|
2667
2683
|
X([
|
|
2668
2684
|
a({ type: Number })
|
|
2669
|
-
],
|
|
2685
|
+
], D.prototype, "activeIndex", 2);
|
|
2670
2686
|
X([
|
|
2671
2687
|
a({ type: Array })
|
|
2672
|
-
],
|
|
2688
|
+
], D.prototype, "disabledIndexes", 2);
|
|
2673
2689
|
X([
|
|
2674
2690
|
a({ type: String })
|
|
2675
|
-
],
|
|
2691
|
+
], D.prototype, "maxWidth", 2);
|
|
2676
2692
|
X([
|
|
2677
2693
|
a({ type: String })
|
|
2678
|
-
],
|
|
2694
|
+
], D.prototype, "altressource", 2);
|
|
2679
2695
|
X([
|
|
2680
2696
|
a({ type: Object })
|
|
2681
|
-
],
|
|
2697
|
+
], D.prototype, "swiperInstance", 2);
|
|
2682
2698
|
X([
|
|
2683
2699
|
et()
|
|
2684
|
-
],
|
|
2685
|
-
|
|
2686
|
-
|
|
2687
|
-
],
|
|
2688
|
-
var
|
|
2689
|
-
for (var i = r > 1 ? void 0 : r ?
|
|
2700
|
+
], D.prototype, "focusedIndex", 2);
|
|
2701
|
+
D = X([
|
|
2702
|
+
y("thumbnail-navigation")
|
|
2703
|
+
], D);
|
|
2704
|
+
var Uo = Object.defineProperty, Fo = Object.getOwnPropertyDescriptor, qt = (o, t, e, r) => {
|
|
2705
|
+
for (var i = r > 1 ? void 0 : r ? Fo(t, e) : t, n = o.length - 1, s; n >= 0; n--)
|
|
2690
2706
|
(s = o[n]) && (i = (r ? s(t, e, i) : s(i)) || i);
|
|
2691
|
-
return r && i &&
|
|
2707
|
+
return r && i && Uo(t, e, i), i;
|
|
2692
2708
|
};
|
|
2693
|
-
let vt = class extends
|
|
2709
|
+
let vt = class extends u {
|
|
2694
2710
|
constructor() {
|
|
2695
2711
|
super(...arguments), this.type = "", this.bgstyle = "background-white";
|
|
2696
2712
|
}
|
|
@@ -2765,14 +2781,14 @@ qt([
|
|
|
2765
2781
|
a({ type: String, reflect: !0 })
|
|
2766
2782
|
], vt.prototype, "bgstyle", 2);
|
|
2767
2783
|
vt = qt([
|
|
2768
|
-
|
|
2784
|
+
y("o-tag")
|
|
2769
2785
|
], vt);
|
|
2770
2786
|
var Vo = Object.defineProperty, Zo = Object.getOwnPropertyDescriptor, Kt = (o, t, e, r) => {
|
|
2771
2787
|
for (var i = r > 1 ? void 0 : r ? Zo(t, e) : t, n = o.length - 1, s; n >= 0; n--)
|
|
2772
2788
|
(s = o[n]) && (i = (r ? s(t, e, i) : s(i)) || i);
|
|
2773
2789
|
return r && i && Vo(t, e, i), i;
|
|
2774
2790
|
};
|
|
2775
|
-
let ft = class extends
|
|
2791
|
+
let ft = class extends u {
|
|
2776
2792
|
constructor() {
|
|
2777
2793
|
super(...arguments), this.type = "top", this.text = "";
|
|
2778
2794
|
}
|
|
@@ -2885,14 +2901,14 @@ Kt([
|
|
|
2885
2901
|
a({ type: String, reflect: !0 })
|
|
2886
2902
|
], ft.prototype, "text", 2);
|
|
2887
2903
|
ft = Kt([
|
|
2888
|
-
|
|
2904
|
+
y("o-tooltip")
|
|
2889
2905
|
], ft);
|
|
2890
|
-
var qo = Object.defineProperty, Ko = Object.getOwnPropertyDescriptor,
|
|
2906
|
+
var qo = Object.defineProperty, Ko = Object.getOwnPropertyDescriptor, F = (o, t, e, r) => {
|
|
2891
2907
|
for (var i = r > 1 ? void 0 : r ? Ko(t, e) : t, n = o.length - 1, s; n >= 0; n--)
|
|
2892
2908
|
(s = o[n]) && (i = (r ? s(t, e, i) : s(i)) || i);
|
|
2893
2909
|
return r && i && qo(t, e, i), i;
|
|
2894
2910
|
};
|
|
2895
|
-
let
|
|
2911
|
+
let z = class extends u {
|
|
2896
2912
|
constructor() {
|
|
2897
2913
|
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) => {
|
|
2898
2914
|
this.contains(o.target) || (this.open = !1, this.activeIndex = -1);
|
|
@@ -2958,7 +2974,7 @@ let D = class extends v {
|
|
|
2958
2974
|
this.options.length > 0 && (this.options.some((e) => e.value === this.value) || (this.value = this.options[0].value));
|
|
2959
2975
|
}
|
|
2960
2976
|
render() {
|
|
2961
|
-
const o =
|
|
2977
|
+
const o = N.checkstroke.replace(
|
|
2962
2978
|
"<svg",
|
|
2963
2979
|
'<svg aria-hidden="true" focusable="false" part="svg"'
|
|
2964
2980
|
), t = this.options.find((e) => e.value === this.value);
|
|
@@ -3015,7 +3031,7 @@ let D = class extends v {
|
|
|
3015
3031
|
`;
|
|
3016
3032
|
}
|
|
3017
3033
|
};
|
|
3018
|
-
|
|
3034
|
+
z.styles = f`
|
|
3019
3035
|
:host {
|
|
3020
3036
|
display: inline-block;
|
|
3021
3037
|
position: relative;
|
|
@@ -3155,39 +3171,39 @@ D.styles = f`
|
|
|
3155
3171
|
display: none;
|
|
3156
3172
|
}
|
|
3157
3173
|
`;
|
|
3158
|
-
|
|
3174
|
+
F([
|
|
3159
3175
|
a({ type: Array, reflect: !0 })
|
|
3160
|
-
],
|
|
3161
|
-
|
|
3176
|
+
], z.prototype, "options", 2);
|
|
3177
|
+
F([
|
|
3162
3178
|
a({ type: String, reflect: !0 })
|
|
3163
|
-
],
|
|
3164
|
-
|
|
3179
|
+
], z.prototype, "value", 2);
|
|
3180
|
+
F([
|
|
3165
3181
|
a({ type: String, reflect: !0 })
|
|
3166
|
-
],
|
|
3167
|
-
|
|
3182
|
+
], z.prototype, "name", 2);
|
|
3183
|
+
F([
|
|
3168
3184
|
a({ type: Boolean, reflect: !0 })
|
|
3169
|
-
],
|
|
3170
|
-
|
|
3185
|
+
], z.prototype, "disabled", 2);
|
|
3186
|
+
F([
|
|
3171
3187
|
a({ type: String, reflect: !0 })
|
|
3172
|
-
],
|
|
3173
|
-
|
|
3188
|
+
], z.prototype, "width", 2);
|
|
3189
|
+
F([
|
|
3174
3190
|
et()
|
|
3175
|
-
],
|
|
3176
|
-
|
|
3191
|
+
], z.prototype, "open", 2);
|
|
3192
|
+
F([
|
|
3177
3193
|
et()
|
|
3178
|
-
],
|
|
3179
|
-
|
|
3194
|
+
], z.prototype, "activeIndex", 2);
|
|
3195
|
+
F([
|
|
3180
3196
|
et()
|
|
3181
|
-
],
|
|
3182
|
-
|
|
3183
|
-
|
|
3184
|
-
],
|
|
3197
|
+
], z.prototype, "menuWidth", 2);
|
|
3198
|
+
z = F([
|
|
3199
|
+
y("o-dropdown")
|
|
3200
|
+
], z);
|
|
3185
3201
|
var Wo = Object.getOwnPropertyDescriptor, Go = (o, t, e, r) => {
|
|
3186
3202
|
for (var i = r > 1 ? void 0 : r ? Wo(t, e) : t, n = o.length - 1, s; n >= 0; n--)
|
|
3187
3203
|
(s = o[n]) && (i = s(i) || i);
|
|
3188
3204
|
return i;
|
|
3189
3205
|
};
|
|
3190
|
-
let Ht = class extends
|
|
3206
|
+
let Ht = class extends u {
|
|
3191
3207
|
render() {
|
|
3192
3208
|
return l` <span class="dots"></span> `;
|
|
3193
3209
|
}
|
|
@@ -3245,14 +3261,14 @@ Ht.styles = f`
|
|
|
3245
3261
|
}
|
|
3246
3262
|
`;
|
|
3247
3263
|
Ht = Go([
|
|
3248
|
-
|
|
3264
|
+
y("o-dots")
|
|
3249
3265
|
], Ht);
|
|
3250
|
-
var Xo = Object.defineProperty, Jo = Object.getOwnPropertyDescriptor,
|
|
3266
|
+
var Xo = Object.defineProperty, Jo = Object.getOwnPropertyDescriptor, M = (o, t, e, r) => {
|
|
3251
3267
|
for (var i = r > 1 ? void 0 : r ? Jo(t, e) : t, n = o.length - 1, s; n >= 0; n--)
|
|
3252
3268
|
(s = o[n]) && (i = (r ? s(t, e, i) : s(i)) || i);
|
|
3253
3269
|
return r && i && Xo(t, e, i), i;
|
|
3254
3270
|
};
|
|
3255
|
-
let
|
|
3271
|
+
let E = class extends u {
|
|
3256
3272
|
constructor() {
|
|
3257
3273
|
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) => {
|
|
3258
3274
|
this.contains(o.target) || (this.open = !1, this.activeIndex = -1);
|
|
@@ -3318,7 +3334,7 @@ let A = class extends v {
|
|
|
3318
3334
|
this.options.length > 0 && (this.options.some((t) => t.value === this.value) || (this.value = this.options[0].value));
|
|
3319
3335
|
}
|
|
3320
3336
|
render() {
|
|
3321
|
-
const o =
|
|
3337
|
+
const o = N.checkstroke.replace(
|
|
3322
3338
|
"<svg",
|
|
3323
3339
|
'<svg aria-hidden="true" focusable="false" part="svg"'
|
|
3324
3340
|
), t = this.options.find((e) => e.value === this.value);
|
|
@@ -3336,7 +3352,7 @@ let A = class extends v {
|
|
|
3336
3352
|
?disabled=${this.disabled}
|
|
3337
3353
|
class="btn-dropdown"
|
|
3338
3354
|
>
|
|
3339
|
-
<img alt="${
|
|
3355
|
+
<img alt="${k(t == null ? void 0 : t.label)}" src="${k(t == null ? void 0 : t.imgurl)}" />
|
|
3340
3356
|
<span id="dropdown-label" class="label">
|
|
3341
3357
|
${t ? t.label : "Select an option"}
|
|
3342
3358
|
</span>
|
|
@@ -3371,11 +3387,11 @@ let A = class extends v {
|
|
|
3371
3387
|
class="${r === this.activeIndex ? "active" : ""} ${e.disabled ? "disabled" : ""}"
|
|
3372
3388
|
@click=${() => this.selectOption(e)}
|
|
3373
3389
|
>
|
|
3374
|
-
<a href="${
|
|
3375
|
-
<img alt="${
|
|
3390
|
+
<a href="${k(e.url)}">
|
|
3391
|
+
<img alt="${k(e.label)}" src="${k(e.imgurl)}" />
|
|
3376
3392
|
<span class="label">${e.label}</span>
|
|
3377
3393
|
<div class="right">
|
|
3378
|
-
<span class="additional-text">${
|
|
3394
|
+
<span class="additional-text">${k(e.additionaltext)}</span>
|
|
3379
3395
|
${e.value === this.value && !e.additionaltext ? l`
|
|
3380
3396
|
<span class="check">${C(o)}</span>` : null}
|
|
3381
3397
|
</div>
|
|
@@ -3389,7 +3405,7 @@ let A = class extends v {
|
|
|
3389
3405
|
`;
|
|
3390
3406
|
}
|
|
3391
3407
|
};
|
|
3392
|
-
|
|
3408
|
+
E.styles = f`
|
|
3393
3409
|
:host {
|
|
3394
3410
|
display: inline-block;
|
|
3395
3411
|
position: relative;
|
|
@@ -3565,36 +3581,36 @@ A.styles = f`
|
|
|
3565
3581
|
display: none;
|
|
3566
3582
|
}
|
|
3567
3583
|
`;
|
|
3568
|
-
|
|
3584
|
+
M([
|
|
3569
3585
|
a({ type: Array, reflect: !0 })
|
|
3570
|
-
],
|
|
3571
|
-
|
|
3586
|
+
], E.prototype, "options", 2);
|
|
3587
|
+
M([
|
|
3572
3588
|
a({ type: String, reflect: !0 })
|
|
3573
|
-
],
|
|
3574
|
-
|
|
3589
|
+
], E.prototype, "value", 2);
|
|
3590
|
+
M([
|
|
3575
3591
|
a({ type: String, reflect: !0 })
|
|
3576
|
-
],
|
|
3577
|
-
|
|
3592
|
+
], E.prototype, "name", 2);
|
|
3593
|
+
M([
|
|
3578
3594
|
a({ type: String, reflect: !0 })
|
|
3579
|
-
],
|
|
3580
|
-
|
|
3595
|
+
], E.prototype, "additionaltext", 2);
|
|
3596
|
+
M([
|
|
3581
3597
|
a({ type: Boolean, reflect: !0 })
|
|
3582
|
-
],
|
|
3583
|
-
|
|
3598
|
+
], E.prototype, "disabled", 2);
|
|
3599
|
+
M([
|
|
3584
3600
|
a({ type: String, reflect: !0 })
|
|
3585
|
-
],
|
|
3586
|
-
|
|
3601
|
+
], E.prototype, "width", 2);
|
|
3602
|
+
M([
|
|
3587
3603
|
et()
|
|
3588
|
-
],
|
|
3589
|
-
|
|
3604
|
+
], E.prototype, "open", 2);
|
|
3605
|
+
M([
|
|
3590
3606
|
et()
|
|
3591
|
-
],
|
|
3592
|
-
|
|
3607
|
+
], E.prototype, "activeIndex", 2);
|
|
3608
|
+
M([
|
|
3593
3609
|
et()
|
|
3594
|
-
],
|
|
3595
|
-
|
|
3596
|
-
|
|
3597
|
-
],
|
|
3610
|
+
], E.prototype, "menuWidth", 2);
|
|
3611
|
+
E = M([
|
|
3612
|
+
y("o-dropdown-variant")
|
|
3613
|
+
], E);
|
|
3598
3614
|
/**
|
|
3599
3615
|
* @license
|
|
3600
3616
|
* Copyright 2018 Google LLC
|
|
@@ -3603,7 +3619,7 @@ A = j([
|
|
|
3603
3619
|
const ge = "important", Qo = " !" + ge, Yo = Vt(class extends Zt {
|
|
3604
3620
|
constructor(o) {
|
|
3605
3621
|
var t;
|
|
3606
|
-
if (super(o), o.type !==
|
|
3622
|
+
if (super(o), o.type !== Ft.ATTRIBUTE || o.name !== "style" || ((t = o.strings) == null ? void 0 : t.length) > 2) throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.");
|
|
3607
3623
|
}
|
|
3608
3624
|
render(o) {
|
|
3609
3625
|
return Object.keys(o).reduce((t, e) => {
|
|
@@ -3631,7 +3647,7 @@ var ti = Object.defineProperty, ei = Object.getOwnPropertyDescriptor, Wt = (o, t
|
|
|
3631
3647
|
(s = o[n]) && (i = (r ? s(t, e, i) : s(i)) || i);
|
|
3632
3648
|
return r && i && ti(t, e, i), i;
|
|
3633
3649
|
};
|
|
3634
|
-
let bt = class extends
|
|
3650
|
+
let bt = class extends u {
|
|
3635
3651
|
constructor() {
|
|
3636
3652
|
super(...arguments), this.option = {}, this.imageSize = 64;
|
|
3637
3653
|
}
|
|
@@ -3640,13 +3656,13 @@ let bt = class extends v {
|
|
|
3640
3656
|
width: `${this.imageSize}px`,
|
|
3641
3657
|
height: `${this.imageSize}px`
|
|
3642
3658
|
}, e = l`
|
|
3643
|
-
${this.option.imgurl ? l`<img src="${this.option.imgurl}" alt="${
|
|
3659
|
+
${this.option.imgurl ? l`<img src="${this.option.imgurl}" alt="${k(this.option.title)}" aria-hidden="true" style=${Yo(t)} />` : ""}
|
|
3644
3660
|
<div class="m-reassurance-content">
|
|
3645
|
-
<h3 class="a-reassurance-text">${
|
|
3646
|
-
<p class="a-reassurance-description">${
|
|
3661
|
+
<h3 class="a-reassurance-text">${k(this.option.title)}</h3>
|
|
3662
|
+
<p class="a-reassurance-description">${k(this.option.description)}</p>
|
|
3647
3663
|
</div>
|
|
3648
3664
|
`;
|
|
3649
|
-
return o ? l`<a href="${
|
|
3665
|
+
return o ? l`<a href="${k(this.option.url)}" class="reassurance-item clickable">${e}</a>` : l`<div class="reassurance-item">${e}</div>`;
|
|
3650
3666
|
}
|
|
3651
3667
|
};
|
|
3652
3668
|
bt.styles = f`
|
|
@@ -3738,15 +3754,15 @@ Wt([
|
|
|
3738
3754
|
a({ type: Number, reflect: !0 })
|
|
3739
3755
|
], bt.prototype, "imageSize", 2);
|
|
3740
3756
|
bt = Wt([
|
|
3741
|
-
|
|
3757
|
+
y("o-reassurance")
|
|
3742
3758
|
], bt);
|
|
3743
|
-
var oi = Object.defineProperty, ii = Object.getOwnPropertyDescriptor,
|
|
3759
|
+
var oi = Object.defineProperty, ii = Object.getOwnPropertyDescriptor, V = (o, t, e, r) => {
|
|
3744
3760
|
for (var i = r > 1 ? void 0 : r ? ii(t, e) : t, n = o.length - 1, s; n >= 0; n--)
|
|
3745
3761
|
(s = o[n]) && (i = (r ? s(t, e, i) : s(i)) || i);
|
|
3746
3762
|
return r && i && oi(t, e, i), i;
|
|
3747
3763
|
};
|
|
3748
|
-
const ri =
|
|
3749
|
-
let
|
|
3764
|
+
const ri = Ut(u);
|
|
3765
|
+
let A = class extends ri {
|
|
3750
3766
|
constructor() {
|
|
3751
3767
|
super(...arguments), this.link = "", this.name = "", this.value = "", this.text = "", this.size = "standard", this.selected = !1, this.fullwidth = !1, this.inactive = !1;
|
|
3752
3768
|
}
|
|
@@ -3769,7 +3785,7 @@ let L = class extends ri {
|
|
|
3769
3785
|
`;
|
|
3770
3786
|
}
|
|
3771
3787
|
};
|
|
3772
|
-
|
|
3788
|
+
A.styles = f`
|
|
3773
3789
|
:host {
|
|
3774
3790
|
cursor: pointer;
|
|
3775
3791
|
display: inline-flex;
|
|
@@ -3859,44 +3875,44 @@ L.styles = f`
|
|
|
3859
3875
|
align-items: center;
|
|
3860
3876
|
}
|
|
3861
3877
|
`;
|
|
3862
|
-
|
|
3878
|
+
V([
|
|
3863
3879
|
a({ type: String, reflect: !0 })
|
|
3864
|
-
],
|
|
3865
|
-
|
|
3880
|
+
], A.prototype, "link", 2);
|
|
3881
|
+
V([
|
|
3866
3882
|
a({ reflect: !0 })
|
|
3867
|
-
],
|
|
3868
|
-
|
|
3883
|
+
], A.prototype, "name", 2);
|
|
3884
|
+
V([
|
|
3869
3885
|
a({ reflect: !0 })
|
|
3870
|
-
],
|
|
3871
|
-
|
|
3886
|
+
], A.prototype, "value", 2);
|
|
3887
|
+
V([
|
|
3872
3888
|
a({ type: String })
|
|
3873
|
-
],
|
|
3874
|
-
|
|
3889
|
+
], A.prototype, "text", 2);
|
|
3890
|
+
V([
|
|
3875
3891
|
a({ type: String, reflect: !0 })
|
|
3876
|
-
],
|
|
3877
|
-
|
|
3892
|
+
], A.prototype, "size", 2);
|
|
3893
|
+
V([
|
|
3878
3894
|
a({ type: Boolean, reflect: !0 })
|
|
3879
|
-
],
|
|
3880
|
-
|
|
3895
|
+
], A.prototype, "selected", 2);
|
|
3896
|
+
V([
|
|
3881
3897
|
a({ type: Boolean, reflect: !0 })
|
|
3882
|
-
],
|
|
3883
|
-
|
|
3898
|
+
], A.prototype, "fullwidth", 2);
|
|
3899
|
+
V([
|
|
3884
3900
|
a({ type: Boolean, reflect: !0 })
|
|
3885
|
-
],
|
|
3886
|
-
|
|
3887
|
-
|
|
3888
|
-
],
|
|
3901
|
+
], A.prototype, "inactive", 2);
|
|
3902
|
+
A = V([
|
|
3903
|
+
y("o-chip")
|
|
3904
|
+
], A);
|
|
3889
3905
|
var ni = Object.defineProperty, si = Object.getOwnPropertyDescriptor, Gt = (o, t, e, r) => {
|
|
3890
3906
|
for (var i = r > 1 ? void 0 : r ? si(t, e) : t, n = o.length - 1, s; n >= 0; n--)
|
|
3891
3907
|
(s = o[n]) && (i = (r ? s(t, e, i) : s(i)) || i);
|
|
3892
3908
|
return r && i && ni(t, e, i), i;
|
|
3893
3909
|
};
|
|
3894
|
-
let gt = class extends
|
|
3910
|
+
let gt = class extends u {
|
|
3895
3911
|
constructor() {
|
|
3896
3912
|
super(), this.name = "", this.value = "", this.addEventListener("selected", this.onChipSelected);
|
|
3897
3913
|
}
|
|
3898
3914
|
onChipSelected(o) {
|
|
3899
|
-
const t = o.target instanceof
|
|
3915
|
+
const t = o.target instanceof A ? o.target : null;
|
|
3900
3916
|
t != null && t.link || (this.name = (t == null ? void 0 : t.name) || "", this.value = (t == null ? void 0 : t.value) || "", this.querySelectorAll("o-chip").forEach((e) => {
|
|
3901
3917
|
e !== t && (e.selected = !1);
|
|
3902
3918
|
}));
|
|
@@ -3922,15 +3938,15 @@ Gt([
|
|
|
3922
3938
|
a({ reflect: !0 })
|
|
3923
3939
|
], gt.prototype, "value", 2);
|
|
3924
3940
|
gt = Gt([
|
|
3925
|
-
|
|
3941
|
+
y("o-chipset")
|
|
3926
3942
|
], gt);
|
|
3927
|
-
var ai = Object.defineProperty, li = Object.getOwnPropertyDescriptor,
|
|
3943
|
+
var ai = Object.defineProperty, li = Object.getOwnPropertyDescriptor, T = (o, t, e, r) => {
|
|
3928
3944
|
for (var i = r > 1 ? void 0 : r ? li(t, e) : t, n = o.length - 1, s; n >= 0; n--)
|
|
3929
3945
|
(s = o[n]) && (i = (r ? s(t, e, i) : s(i)) || i);
|
|
3930
3946
|
return r && i && ai(t, e, i), i;
|
|
3931
3947
|
};
|
|
3932
|
-
const ci =
|
|
3933
|
-
let
|
|
3948
|
+
const ci = Ut(u);
|
|
3949
|
+
let L = class extends ci {
|
|
3934
3950
|
constructor() {
|
|
3935
3951
|
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";
|
|
3936
3952
|
}
|
|
@@ -3942,7 +3958,7 @@ let I = class extends ci {
|
|
|
3942
3958
|
this.dispatchEvent(e), e.defaultPrevented && o.preventDefault(), this.selected = t.selected;
|
|
3943
3959
|
}
|
|
3944
3960
|
crossIcon() {
|
|
3945
|
-
const o =
|
|
3961
|
+
const o = N[this.crossIconName].replace(
|
|
3946
3962
|
"<svg",
|
|
3947
3963
|
'<svg aria-hidden="true" focusable="false" part="svg"'
|
|
3948
3964
|
).replace(/stroke=[#"'a-z1-9]*/gi, "");
|
|
@@ -3980,7 +3996,7 @@ let I = class extends ci {
|
|
|
3980
3996
|
`;
|
|
3981
3997
|
}
|
|
3982
3998
|
};
|
|
3983
|
-
|
|
3999
|
+
L.styles = f`
|
|
3984
4000
|
:host {
|
|
3985
4001
|
cursor: pointer;
|
|
3986
4002
|
display: inline-flex;
|
|
@@ -4106,42 +4122,42 @@ I.styles = f`
|
|
|
4106
4122
|
}
|
|
4107
4123
|
}
|
|
4108
4124
|
`;
|
|
4109
|
-
|
|
4125
|
+
T([
|
|
4110
4126
|
a({ reflect: !0 })
|
|
4111
|
-
],
|
|
4112
|
-
|
|
4127
|
+
], L.prototype, "name", 2);
|
|
4128
|
+
T([
|
|
4113
4129
|
a({ reflect: !0 })
|
|
4114
|
-
],
|
|
4115
|
-
|
|
4130
|
+
], L.prototype, "value", 2);
|
|
4131
|
+
T([
|
|
4116
4132
|
a({ type: String, reflect: !0 })
|
|
4117
|
-
],
|
|
4118
|
-
|
|
4133
|
+
], L.prototype, "type", 2);
|
|
4134
|
+
T([
|
|
4119
4135
|
a({ type: String, reflect: !0 })
|
|
4120
|
-
],
|
|
4121
|
-
|
|
4136
|
+
], L.prototype, "href", 2);
|
|
4137
|
+
T([
|
|
4122
4138
|
a({ type: String, reflect: !0, attribute: "data-href" })
|
|
4123
|
-
],
|
|
4124
|
-
|
|
4139
|
+
], L.prototype, "dataHref", 2);
|
|
4140
|
+
T([
|
|
4125
4141
|
a({ type: String })
|
|
4126
|
-
],
|
|
4127
|
-
|
|
4142
|
+
], L.prototype, "text", 2);
|
|
4143
|
+
T([
|
|
4128
4144
|
a({ type: Boolean, reflect: !0 })
|
|
4129
|
-
],
|
|
4130
|
-
|
|
4145
|
+
], L.prototype, "selected", 2);
|
|
4146
|
+
T([
|
|
4131
4147
|
a({ type: Boolean, reflect: !0 })
|
|
4132
|
-
],
|
|
4133
|
-
|
|
4148
|
+
], L.prototype, "disabled", 2);
|
|
4149
|
+
T([
|
|
4134
4150
|
a({ type: Boolean, reflect: !0 })
|
|
4135
|
-
],
|
|
4136
|
-
|
|
4137
|
-
|
|
4138
|
-
],
|
|
4139
|
-
var hi = Object.defineProperty,
|
|
4151
|
+
], L.prototype, "fullwidth", 2);
|
|
4152
|
+
L = T([
|
|
4153
|
+
y("o-filter-chip")
|
|
4154
|
+
], L);
|
|
4155
|
+
var hi = Object.defineProperty, Z = (o, t, e, r) => {
|
|
4140
4156
|
for (var i = void 0, n = o.length - 1, s; n >= 0; n--)
|
|
4141
4157
|
(s = o[n]) && (i = s(t, e, i) || i);
|
|
4142
4158
|
return i && hi(t, e, i), i;
|
|
4143
4159
|
};
|
|
4144
|
-
const Jt = class Jt extends
|
|
4160
|
+
const Jt = class Jt extends u {
|
|
4145
4161
|
constructor() {
|
|
4146
4162
|
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;
|
|
4147
4163
|
}
|
|
@@ -4158,6 +4174,8 @@ const Jt = class Jt extends v {
|
|
|
4158
4174
|
type="span"
|
|
4159
4175
|
status="filled"
|
|
4160
4176
|
strokewidth="0"
|
|
4177
|
+
aria-hidden="true"
|
|
4178
|
+
tabindex="-1"
|
|
4161
4179
|
></o-icon-button>
|
|
4162
4180
|
` : l`
|
|
4163
4181
|
<o-icon-button
|
|
@@ -4172,18 +4190,19 @@ const Jt = class Jt extends v {
|
|
|
4172
4190
|
}
|
|
4173
4191
|
render() {
|
|
4174
4192
|
return l`
|
|
4175
|
-
|
|
4176
|
-
|
|
4177
|
-
|
|
4178
|
-
|
|
4179
|
-
|
|
4180
|
-
|
|
4181
|
-
|
|
4182
|
-
|
|
4193
|
+
<button type="button"
|
|
4194
|
+
class="tile ${this.fullwidth ? "fullwidth" : ""} ${this.type === "chevron" ? "fullpointer" : ""}" @click=${this.onClick}>
|
|
4195
|
+
${this.imageUrl ? l`<img src="${this.imageUrl}" alt="${this.altImage || ""}" />` : ""}
|
|
4196
|
+
<div class="info">
|
|
4197
|
+
${this.titleProduct ? l`<div class="title">${this.titleProduct}</div>` : ""}
|
|
4198
|
+
<div class="details">
|
|
4199
|
+
${this.volume ? l`<span class="volume-info">${this.volume}</span>` : ""}
|
|
4200
|
+
${this.type === "cart" && this.mainPrice ? l`<span class="main-price">${this.mainPrice}</span>` : ""}
|
|
4201
|
+
${this.type === "cart" && this.perLiter ? l`<span class="per-liter">${this.perLiter}</span>` : ""}
|
|
4202
|
+
</div>
|
|
4183
4203
|
</div>
|
|
4184
|
-
|
|
4185
|
-
|
|
4186
|
-
</div>
|
|
4204
|
+
${this.icons}
|
|
4205
|
+
</button>
|
|
4187
4206
|
`;
|
|
4188
4207
|
}
|
|
4189
4208
|
};
|
|
@@ -4205,6 +4224,9 @@ Jt.styles = f`
|
|
|
4205
4224
|
width: 356px;
|
|
4206
4225
|
max-width: 356px;
|
|
4207
4226
|
padding: var(--spacing-2-xs) var(--spacing-s) var(--spacing-2-xs) var(--spacing-2-xs);
|
|
4227
|
+
margin: 0;
|
|
4228
|
+
border: 0 none;
|
|
4229
|
+
box-sizing: content-box;
|
|
4208
4230
|
}
|
|
4209
4231
|
|
|
4210
4232
|
.tile.fullwidth {
|
|
@@ -4231,6 +4253,7 @@ Jt.styles = f`
|
|
|
4231
4253
|
color: var(--colors-noir-des-terres-500);
|
|
4232
4254
|
line-height: var(--line-height-160);
|
|
4233
4255
|
letter-spacing: var(--letter-spacing-100);
|
|
4256
|
+
text-align: left;
|
|
4234
4257
|
|
|
4235
4258
|
+.details {
|
|
4236
4259
|
padding-top: var(--spacing-s);}
|
|
@@ -4275,41 +4298,41 @@ Jt.styles = f`
|
|
|
4275
4298
|
cursor: pointer;
|
|
4276
4299
|
}
|
|
4277
4300
|
`;
|
|
4278
|
-
let
|
|
4279
|
-
|
|
4301
|
+
let I = Jt;
|
|
4302
|
+
Z([
|
|
4280
4303
|
a({ type: String })
|
|
4281
|
-
],
|
|
4282
|
-
|
|
4304
|
+
], I.prototype, "type");
|
|
4305
|
+
Z([
|
|
4283
4306
|
a({ type: String })
|
|
4284
|
-
],
|
|
4285
|
-
|
|
4307
|
+
], I.prototype, "titleProduct");
|
|
4308
|
+
Z([
|
|
4286
4309
|
a({ type: String })
|
|
4287
|
-
],
|
|
4288
|
-
|
|
4310
|
+
], I.prototype, "volume");
|
|
4311
|
+
Z([
|
|
4289
4312
|
a({ type: String })
|
|
4290
|
-
],
|
|
4291
|
-
|
|
4313
|
+
], I.prototype, "perLiter");
|
|
4314
|
+
Z([
|
|
4292
4315
|
a({ type: String })
|
|
4293
|
-
],
|
|
4294
|
-
|
|
4316
|
+
], I.prototype, "mainPrice");
|
|
4317
|
+
Z([
|
|
4295
4318
|
a({ type: String })
|
|
4296
|
-
],
|
|
4297
|
-
|
|
4319
|
+
], I.prototype, "imageUrl");
|
|
4320
|
+
Z([
|
|
4298
4321
|
a({ type: String })
|
|
4299
|
-
],
|
|
4300
|
-
|
|
4322
|
+
], I.prototype, "altImage");
|
|
4323
|
+
Z([
|
|
4301
4324
|
a({ type: Boolean })
|
|
4302
|
-
],
|
|
4303
|
-
|
|
4325
|
+
], I.prototype, "fullwidth");
|
|
4326
|
+
Z([
|
|
4304
4327
|
a({ type: Function })
|
|
4305
|
-
],
|
|
4306
|
-
customElements.define("mini-tile",
|
|
4328
|
+
], I.prototype, "onClickTile");
|
|
4329
|
+
customElements.define("mini-tile", I);
|
|
4307
4330
|
var di = Object.defineProperty, pi = Object.getOwnPropertyDescriptor, Xt = (o, t, e, r) => {
|
|
4308
4331
|
for (var i = r > 1 ? void 0 : r ? pi(t, e) : t, n = o.length - 1, s; n >= 0; n--)
|
|
4309
4332
|
(s = o[n]) && (i = (r ? s(t, e, i) : s(i)) || i);
|
|
4310
4333
|
return r && i && di(t, e, i), i;
|
|
4311
4334
|
};
|
|
4312
|
-
let yt = class extends
|
|
4335
|
+
let yt = class extends u {
|
|
4313
4336
|
constructor() {
|
|
4314
4337
|
super(...arguments), this.variant = "cart", this.text = "";
|
|
4315
4338
|
}
|
|
@@ -4363,14 +4386,14 @@ Xt([
|
|
|
4363
4386
|
a({ type: String })
|
|
4364
4387
|
], yt.prototype, "text", 2);
|
|
4365
4388
|
yt = Xt([
|
|
4366
|
-
|
|
4389
|
+
y("o-badge")
|
|
4367
4390
|
], yt);
|
|
4368
|
-
var ui = Object.defineProperty, vi = Object.getOwnPropertyDescriptor,
|
|
4391
|
+
var ui = Object.defineProperty, vi = Object.getOwnPropertyDescriptor, O = (o, t, e, r) => {
|
|
4369
4392
|
for (var i = r > 1 ? void 0 : r ? vi(t, e) : t, n = o.length - 1, s; n >= 0; n--)
|
|
4370
4393
|
(s = o[n]) && (i = (r ? s(t, e, i) : s(i)) || i);
|
|
4371
4394
|
return r && i && ui(t, e, i), i;
|
|
4372
4395
|
};
|
|
4373
|
-
let $ = class extends
|
|
4396
|
+
let $ = class extends u {
|
|
4374
4397
|
constructor() {
|
|
4375
4398
|
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;
|
|
4376
4399
|
}
|
|
@@ -4406,8 +4429,8 @@ let $ = class extends v {
|
|
|
4406
4429
|
var o = this;
|
|
4407
4430
|
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");
|
|
4408
4431
|
if (e != null) {
|
|
4409
|
-
const n = window.getComputedStyle(e), s = parseInt(n.getPropertyValue("line-height").replace("px", "")),
|
|
4410
|
-
!isNaN(s) && !isNaN(
|
|
4432
|
+
const n = window.getComputedStyle(e), s = parseInt(n.getPropertyValue("line-height").replace("px", "")), h = parseInt(n.getPropertyValue("height").replace("px", ""));
|
|
4433
|
+
!isNaN(s) && !isNaN(h) && h > s && (this.multiline = !0);
|
|
4411
4434
|
}
|
|
4412
4435
|
t != null && t.addEventListener("click", function() {
|
|
4413
4436
|
o.remove();
|
|
@@ -4504,7 +4527,6 @@ $.styles = f`
|
|
|
4504
4527
|
color: var(--color-content-body);
|
|
4505
4528
|
padding: 0 12px;
|
|
4506
4529
|
width: max-content;
|
|
4507
|
-
text-align: center;
|
|
4508
4530
|
line-height: 20px;
|
|
4509
4531
|
max-width: 65vw;
|
|
4510
4532
|
}
|
|
@@ -4513,48 +4535,48 @@ $.styles = f`
|
|
|
4513
4535
|
height: 16px;
|
|
4514
4536
|
}
|
|
4515
4537
|
`;
|
|
4516
|
-
|
|
4538
|
+
O([
|
|
4517
4539
|
a({ type: String, reflect: !0 })
|
|
4518
4540
|
], $.prototype, "icon", 2);
|
|
4519
|
-
|
|
4541
|
+
O([
|
|
4520
4542
|
a({ type: String, reflect: !0 })
|
|
4521
4543
|
], $.prototype, "text", 2);
|
|
4522
|
-
|
|
4544
|
+
O([
|
|
4523
4545
|
a({ type: String, reflect: !0 })
|
|
4524
4546
|
], $.prototype, "verticalanchor", 2);
|
|
4525
|
-
|
|
4547
|
+
O([
|
|
4526
4548
|
a({ type: String, reflect: !0 })
|
|
4527
4549
|
], $.prototype, "horizontalanchor", 2);
|
|
4528
|
-
|
|
4550
|
+
O([
|
|
4529
4551
|
a({ type: Number, reflect: !0 })
|
|
4530
4552
|
], $.prototype, "verticaloffset", 2);
|
|
4531
|
-
|
|
4553
|
+
O([
|
|
4532
4554
|
a({ type: Number, reflect: !0 })
|
|
4533
4555
|
], $.prototype, "horizontaloffset", 2);
|
|
4534
|
-
|
|
4556
|
+
O([
|
|
4535
4557
|
a({ type: Number, reflect: !0 })
|
|
4536
4558
|
], $.prototype, "animationduration", 2);
|
|
4537
|
-
|
|
4559
|
+
O([
|
|
4538
4560
|
a({ type: String, reflect: !0 })
|
|
4539
4561
|
], $.prototype, "animationaxis", 2);
|
|
4540
|
-
|
|
4562
|
+
O([
|
|
4541
4563
|
a({ type: Boolean, reflect: !0 })
|
|
4542
4564
|
], $.prototype, "animated", 2);
|
|
4543
|
-
|
|
4565
|
+
O([
|
|
4544
4566
|
a({ type: Number, reflect: !0 })
|
|
4545
4567
|
], $.prototype, "lifeduration", 2);
|
|
4546
|
-
|
|
4568
|
+
O([
|
|
4547
4569
|
a({ type: Boolean, reflect: !0 })
|
|
4548
4570
|
], $.prototype, "multiline", 2);
|
|
4549
|
-
$ =
|
|
4550
|
-
|
|
4571
|
+
$ = O([
|
|
4572
|
+
y("o-toast")
|
|
4551
4573
|
], $);
|
|
4552
|
-
var fi = Object.defineProperty, bi = Object.getOwnPropertyDescriptor,
|
|
4574
|
+
var fi = Object.defineProperty, bi = Object.getOwnPropertyDescriptor, B = (o, t, e, r) => {
|
|
4553
4575
|
for (var i = r > 1 ? void 0 : r ? bi(t, e) : t, n = o.length - 1, s; n >= 0; n--)
|
|
4554
4576
|
(s = o[n]) && (i = (r ? s(t, e, i) : s(i)) || i);
|
|
4555
4577
|
return r && i && fi(t, e, i), i;
|
|
4556
4578
|
};
|
|
4557
|
-
let gi = 0, _ = class extends
|
|
4579
|
+
let gi = 0, _ = class extends u {
|
|
4558
4580
|
constructor() {
|
|
4559
4581
|
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-${++gi}`);
|
|
4560
4582
|
}
|
|
@@ -4571,7 +4593,7 @@ let gi = 0, _ = class extends v {
|
|
|
4571
4593
|
this.disabled || (o.key === " " || o.key === "Enter") && (o.preventDefault(), this.toggle());
|
|
4572
4594
|
}
|
|
4573
4595
|
render() {
|
|
4574
|
-
const o = C(
|
|
4596
|
+
const o = C(N.checkbox.replace("<svg", '<svg aria-hidden="true" focusable="false" part="svg"')), t = C(N.icoMinus.replace("<svg", '<svg class="indeterminate" aria-hidden="true" focusable="false" part="svg"'));
|
|
4575
4597
|
return l`
|
|
4576
4598
|
<input
|
|
4577
4599
|
type="checkbox"
|
|
@@ -4691,45 +4713,45 @@ _.styles = f`
|
|
|
4691
4713
|
stroke: var(--color-border-white);
|
|
4692
4714
|
}
|
|
4693
4715
|
`;
|
|
4694
|
-
|
|
4716
|
+
B([
|
|
4695
4717
|
a({ type: Boolean, reflect: !0 })
|
|
4696
4718
|
], _.prototype, "checked", 2);
|
|
4697
|
-
|
|
4719
|
+
B([
|
|
4698
4720
|
a({ type: Boolean, reflect: !0 })
|
|
4699
4721
|
], _.prototype, "indeterminate", 2);
|
|
4700
|
-
|
|
4722
|
+
B([
|
|
4701
4723
|
a({ type: Boolean, reflect: !0 })
|
|
4702
4724
|
], _.prototype, "disabled", 2);
|
|
4703
|
-
|
|
4725
|
+
B([
|
|
4704
4726
|
a({ type: String, reflect: !0 })
|
|
4705
4727
|
], _.prototype, "size", 2);
|
|
4706
|
-
|
|
4728
|
+
B([
|
|
4707
4729
|
a({ type: Boolean })
|
|
4708
4730
|
], _.prototype, "showLabel", 2);
|
|
4709
|
-
|
|
4731
|
+
B([
|
|
4710
4732
|
a({ type: String })
|
|
4711
4733
|
], _.prototype, "label", 2);
|
|
4712
|
-
|
|
4734
|
+
B([
|
|
4713
4735
|
a({ type: String })
|
|
4714
4736
|
], _.prototype, "name", 2);
|
|
4715
|
-
|
|
4737
|
+
B([
|
|
4716
4738
|
a({ type: String })
|
|
4717
4739
|
], _.prototype, "value", 2);
|
|
4718
|
-
|
|
4740
|
+
B([
|
|
4719
4741
|
a({ type: String, reflect: !0 })
|
|
4720
4742
|
], _.prototype, "inputId", 2);
|
|
4721
|
-
|
|
4743
|
+
B([
|
|
4722
4744
|
fe("input")
|
|
4723
4745
|
], _.prototype, "inputEl", 2);
|
|
4724
|
-
_ =
|
|
4725
|
-
|
|
4746
|
+
_ = B([
|
|
4747
|
+
y("o-checkbox")
|
|
4726
4748
|
], _);
|
|
4727
|
-
var yi = Object.defineProperty, mi = Object.getOwnPropertyDescriptor,
|
|
4749
|
+
var yi = Object.defineProperty, mi = Object.getOwnPropertyDescriptor, j = (o, t, e, r) => {
|
|
4728
4750
|
for (var i = r > 1 ? void 0 : r ? mi(t, e) : t, n = o.length - 1, s; n >= 0; n--)
|
|
4729
4751
|
(s = o[n]) && (i = (r ? s(t, e, i) : s(i)) || i);
|
|
4730
4752
|
return r && i && yi(t, e, i), i;
|
|
4731
4753
|
};
|
|
4732
|
-
let xi = 0,
|
|
4754
|
+
let xi = 0, P = class extends u {
|
|
4733
4755
|
constructor() {
|
|
4734
4756
|
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-${++xi}`);
|
|
4735
4757
|
}
|
|
@@ -4763,7 +4785,7 @@ let xi = 0, O = class extends v {
|
|
|
4763
4785
|
`;
|
|
4764
4786
|
}
|
|
4765
4787
|
};
|
|
4766
|
-
|
|
4788
|
+
P.styles = f`
|
|
4767
4789
|
:host {
|
|
4768
4790
|
display: inline-flex;
|
|
4769
4791
|
align-items: center;
|
|
@@ -4846,33 +4868,33 @@ O.styles = f`
|
|
|
4846
4868
|
height: 0;
|
|
4847
4869
|
}
|
|
4848
4870
|
`;
|
|
4849
|
-
|
|
4871
|
+
j([
|
|
4850
4872
|
a({ type: Boolean, reflect: !0 })
|
|
4851
|
-
],
|
|
4852
|
-
|
|
4873
|
+
], P.prototype, "checked", 2);
|
|
4874
|
+
j([
|
|
4853
4875
|
a({ type: Boolean, reflect: !0 })
|
|
4854
|
-
],
|
|
4855
|
-
|
|
4876
|
+
], P.prototype, "disabled", 2);
|
|
4877
|
+
j([
|
|
4856
4878
|
a({ type: String, reflect: !0 })
|
|
4857
|
-
],
|
|
4858
|
-
|
|
4879
|
+
], P.prototype, "size", 2);
|
|
4880
|
+
j([
|
|
4859
4881
|
a({ type: Boolean })
|
|
4860
|
-
],
|
|
4861
|
-
|
|
4882
|
+
], P.prototype, "showLabel", 2);
|
|
4883
|
+
j([
|
|
4862
4884
|
a({ type: String })
|
|
4863
|
-
],
|
|
4864
|
-
|
|
4885
|
+
], P.prototype, "label", 2);
|
|
4886
|
+
j([
|
|
4865
4887
|
a({ type: String })
|
|
4866
|
-
],
|
|
4867
|
-
|
|
4888
|
+
], P.prototype, "name", 2);
|
|
4889
|
+
j([
|
|
4868
4890
|
a({ type: String })
|
|
4869
|
-
],
|
|
4870
|
-
|
|
4891
|
+
], P.prototype, "value", 2);
|
|
4892
|
+
j([
|
|
4871
4893
|
a({ type: String, reflect: !0 })
|
|
4872
|
-
],
|
|
4873
|
-
|
|
4894
|
+
], P.prototype, "inputId", 2);
|
|
4895
|
+
j([
|
|
4874
4896
|
fe("input")
|
|
4875
|
-
],
|
|
4876
|
-
|
|
4877
|
-
|
|
4878
|
-
],
|
|
4897
|
+
], P.prototype, "inputEl", 2);
|
|
4898
|
+
P = j([
|
|
4899
|
+
y("o-radio")
|
|
4900
|
+
], P);
|