@florid-kit/components 0.7.4 → 0.7.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/icon-button.d.ts +2 -0
- package/index.js +75 -71
- package/index.mjs +208 -198
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -45,7 +45,7 @@ const Ft = (o) => new Mt(typeof o == "string" ? o : o + "", void 0, wt), w = (o,
|
|
|
45
45
|
* Copyright 2017 Google LLC
|
|
46
46
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
47
47
|
*/
|
|
48
|
-
const { is: Vt, defineProperty: Zt, getOwnPropertyDescriptor: qt, getOwnPropertyNames: Wt, getOwnPropertySymbols: Kt, getPrototypeOf: Gt } = Object,
|
|
48
|
+
const { is: Vt, defineProperty: Zt, getOwnPropertyDescriptor: qt, getOwnPropertyNames: Wt, getOwnPropertySymbols: Kt, getPrototypeOf: Gt } = Object, z = globalThis, Et = z.trustedTypes, Xt = Et ? Et.emptyScript : "", dt = z.reactiveElementPolyfillSupport, X = (o, t) => o, st = { toAttribute(o, t) {
|
|
49
49
|
switch (t) {
|
|
50
50
|
case Boolean:
|
|
51
51
|
o = o ? Xt : null;
|
|
@@ -74,7 +74,7 @@ const { is: Vt, defineProperty: Zt, getOwnPropertyDescriptor: qt, getOwnProperty
|
|
|
74
74
|
}
|
|
75
75
|
return e;
|
|
76
76
|
} }, xt = (o, t) => !Vt(o, t), Lt = { attribute: !0, type: String, converter: st, reflect: !1, useDefault: !1, hasChanged: xt };
|
|
77
|
-
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")),
|
|
77
|
+
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), z.litPropertyMetadata ?? (z.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
|
78
78
|
let V = class extends HTMLElement {
|
|
79
79
|
static addInitializer(t) {
|
|
80
80
|
this._$Ei(), (this.l ?? (this.l = [])).push(t);
|
|
@@ -192,8 +192,8 @@ let V = class extends HTMLElement {
|
|
|
192
192
|
var s, r;
|
|
193
193
|
const n = this.constructor, i = n._$Eh.get(t);
|
|
194
194
|
if (i !== void 0 && this._$Em !== i) {
|
|
195
|
-
const h = n.getPropertyOptions(i),
|
|
196
|
-
this._$Em = i, this[i] =
|
|
195
|
+
const h = n.getPropertyOptions(i), c = typeof h.converter == "function" ? { fromAttribute: h.converter } : ((s = h.converter) == null ? void 0 : s.fromAttribute) !== void 0 ? h.converter : st;
|
|
196
|
+
this._$Em = i, this[i] = c.fromAttribute(e, h.type) ?? ((r = this._$Ej) == null ? void 0 : r.get(i)) ?? null, this._$Em = null;
|
|
197
197
|
}
|
|
198
198
|
}
|
|
199
199
|
requestUpdate(t, e, n) {
|
|
@@ -231,8 +231,8 @@ let V = class extends HTMLElement {
|
|
|
231
231
|
}
|
|
232
232
|
const i = this.constructor.elementProperties;
|
|
233
233
|
if (i.size > 0) for (const [s, r] of i) {
|
|
234
|
-
const { wrapped: h } = r,
|
|
235
|
-
h !== !0 || this._$AL.has(s) ||
|
|
234
|
+
const { wrapped: h } = r, c = this[s];
|
|
235
|
+
h !== !0 || this._$AL.has(s) || c === void 0 || this.C(s, void 0, r, c);
|
|
236
236
|
}
|
|
237
237
|
}
|
|
238
238
|
let t = !1;
|
|
@@ -276,15 +276,15 @@ let V = class extends HTMLElement {
|
|
|
276
276
|
firstUpdated(t) {
|
|
277
277
|
}
|
|
278
278
|
};
|
|
279
|
-
V.elementStyles = [], V.shadowRootOptions = { mode: "open" }, V[X("elementProperties")] = /* @__PURE__ */ new Map(), V[X("finalized")] = /* @__PURE__ */ new Map(), dt == null || dt({ ReactiveElement: V }), (
|
|
279
|
+
V.elementStyles = [], V.shadowRootOptions = { mode: "open" }, V[X("elementProperties")] = /* @__PURE__ */ new Map(), V[X("finalized")] = /* @__PURE__ */ new Map(), dt == null || dt({ ReactiveElement: V }), (z.reactiveElementVersions ?? (z.reactiveElementVersions = [])).push("2.1.0");
|
|
280
280
|
/**
|
|
281
281
|
* @license
|
|
282
282
|
* Copyright 2017 Google LLC
|
|
283
283
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
284
284
|
*/
|
|
285
|
-
const J = globalThis, at = J.trustedTypes, It = at ? at.createPolicy("lit-html", { createHTML: (o) => o }) : void 0, Tt = "$lit$",
|
|
286
|
-
\f\r]`, G = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Pt = /-->/g, Ot = />/g,
|
|
287
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"), Bt = /'/g, zt = /"/g, Ut = /^(?:script|style|textarea|title)$/i, Qt = (o) => (t, ...e) => ({ _$litType$: o, strings: t, values: e }),
|
|
285
|
+
const J = globalThis, at = J.trustedTypes, It = at ? at.createPolicy("lit-html", { createHTML: (o) => o }) : void 0, Tt = "$lit$", B = `lit$${Math.random().toFixed(9).slice(2)}$`, jt = "?" + B, Jt = `<${jt}>`, j = document, Y = () => j.createComment(""), Q = (o) => o === null || typeof o != "object" && typeof o != "function", $t = Array.isArray, Yt = (o) => $t(o) || typeof (o == null ? void 0 : o[Symbol.iterator]) == "function", pt = `[
|
|
286
|
+
\f\r]`, G = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Pt = /-->/g, Ot = />/g, H = RegExp(`>|${pt}(?:([^\\s"'>=/]+)(${pt}*=${pt}*(?:[^
|
|
287
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), Bt = /'/g, zt = /"/g, Ut = /^(?:script|style|textarea|title)$/i, Qt = (o) => (t, ...e) => ({ _$litType$: o, strings: t, values: e }), l = Qt(1), U = Symbol.for("lit-noChange"), d = Symbol.for("lit-nothing"), Dt = /* @__PURE__ */ new WeakMap(), M = j.createTreeWalker(j, 129);
|
|
288
288
|
function Nt(o, t) {
|
|
289
289
|
if (!$t(o) || !o.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
290
290
|
return It !== void 0 ? It.createHTML(t) : t;
|
|
@@ -293,11 +293,11 @@ const te = (o, t) => {
|
|
|
293
293
|
const e = o.length - 1, n = [];
|
|
294
294
|
let i, s = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", r = G;
|
|
295
295
|
for (let h = 0; h < e; h++) {
|
|
296
|
-
const
|
|
297
|
-
let v, b, p = -1,
|
|
298
|
-
for (;
|
|
299
|
-
const
|
|
300
|
-
s += r === G ?
|
|
296
|
+
const c = o[h];
|
|
297
|
+
let v, b, p = -1, S = 0;
|
|
298
|
+
for (; S < c.length && (r.lastIndex = S, b = r.exec(c), b !== null); ) S = r.lastIndex, r === G ? b[1] === "!--" ? r = Pt : b[1] !== void 0 ? r = Ot : b[2] !== void 0 ? (Ut.test(b[2]) && (i = RegExp("</" + b[2], "g")), r = H) : b[3] !== void 0 && (r = H) : r === H ? b[0] === ">" ? (r = i ?? G, p = -1) : b[1] === void 0 ? p = -2 : (p = r.lastIndex - b[2].length, v = b[1], r = b[3] === void 0 ? H : b[3] === '"' ? zt : Bt) : r === zt || r === Bt ? r = H : r === Pt || r === Ot ? r = G : (r = H, i = void 0);
|
|
299
|
+
const P = r === H && o[h + 1].startsWith("/>") ? " " : "";
|
|
300
|
+
s += r === G ? c + Jt : p >= 0 ? (n.push(v), c.slice(0, p) + Tt + c.slice(p) + B + P) : c + B + (p === -2 ? h : P);
|
|
301
301
|
}
|
|
302
302
|
return [Nt(o, s + (o[e] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), n];
|
|
303
303
|
};
|
|
@@ -306,29 +306,29 @@ class tt {
|
|
|
306
306
|
let i;
|
|
307
307
|
this.parts = [];
|
|
308
308
|
let s = 0, r = 0;
|
|
309
|
-
const h = t.length - 1,
|
|
309
|
+
const h = t.length - 1, c = this.parts, [v, b] = te(t, e);
|
|
310
310
|
if (this.el = tt.createElement(v, n), M.currentNode = this.el.content, e === 2 || e === 3) {
|
|
311
311
|
const p = this.el.content.firstChild;
|
|
312
312
|
p.replaceWith(...p.childNodes);
|
|
313
313
|
}
|
|
314
|
-
for (; (i = M.nextNode()) !== null &&
|
|
314
|
+
for (; (i = M.nextNode()) !== null && c.length < h; ) {
|
|
315
315
|
if (i.nodeType === 1) {
|
|
316
316
|
if (i.hasAttributes()) for (const p of i.getAttributeNames()) if (p.endsWith(Tt)) {
|
|
317
|
-
const
|
|
318
|
-
|
|
319
|
-
} else p.startsWith(
|
|
317
|
+
const S = b[r++], P = i.getAttribute(p).split(B), nt = /([.?@])?(.*)/.exec(S);
|
|
318
|
+
c.push({ type: 1, index: s, name: nt[2], strings: P, ctor: nt[1] === "." ? oe : nt[1] === "?" ? ie : nt[1] === "@" ? ne : lt }), i.removeAttribute(p);
|
|
319
|
+
} else p.startsWith(B) && (c.push({ type: 6, index: s }), i.removeAttribute(p));
|
|
320
320
|
if (Ut.test(i.tagName)) {
|
|
321
|
-
const p = i.textContent.split(
|
|
322
|
-
if (
|
|
321
|
+
const p = i.textContent.split(B), S = p.length - 1;
|
|
322
|
+
if (S > 0) {
|
|
323
323
|
i.textContent = at ? at.emptyScript : "";
|
|
324
|
-
for (let
|
|
325
|
-
i.append(p[
|
|
324
|
+
for (let P = 0; P < S; P++) i.append(p[P], Y()), M.nextNode(), c.push({ type: 2, index: ++s });
|
|
325
|
+
i.append(p[S], Y());
|
|
326
326
|
}
|
|
327
327
|
}
|
|
328
|
-
} else if (i.nodeType === 8) if (i.data === jt)
|
|
328
|
+
} else if (i.nodeType === 8) if (i.data === jt) c.push({ type: 2, index: s });
|
|
329
329
|
else {
|
|
330
330
|
let p = -1;
|
|
331
|
-
for (; (p = i.data.indexOf(
|
|
331
|
+
for (; (p = i.data.indexOf(B, p + 1)) !== -1; ) c.push({ type: 7, index: s }), p += B.length - 1;
|
|
332
332
|
}
|
|
333
333
|
s++;
|
|
334
334
|
}
|
|
@@ -358,13 +358,13 @@ class ee {
|
|
|
358
358
|
u(t) {
|
|
359
359
|
const { el: { content: e }, parts: n } = this._$AD, i = ((t == null ? void 0 : t.creationScope) ?? j).importNode(e, !0);
|
|
360
360
|
M.currentNode = i;
|
|
361
|
-
let s = M.nextNode(), r = 0, h = 0,
|
|
362
|
-
for (;
|
|
363
|
-
if (r ===
|
|
361
|
+
let s = M.nextNode(), r = 0, h = 0, c = n[0];
|
|
362
|
+
for (; c !== void 0; ) {
|
|
363
|
+
if (r === c.index) {
|
|
364
364
|
let v;
|
|
365
|
-
|
|
365
|
+
c.type === 2 ? v = new it(s, s.nextSibling, this, t) : c.type === 1 ? v = new c.ctor(s, c.name, c.strings, this, t) : c.type === 6 && (v = new re(s, this, t)), this._$AV.push(v), c = n[++h];
|
|
366
366
|
}
|
|
367
|
-
r !== (
|
|
367
|
+
r !== (c == null ? void 0 : c.index) && (s = M.nextNode(), r++);
|
|
368
368
|
}
|
|
369
369
|
return M.currentNode = j, i;
|
|
370
370
|
}
|
|
@@ -452,8 +452,8 @@ class lt {
|
|
|
452
452
|
if (s === void 0) t = Z(this, t, e, 0), r = !Q(t) || t !== this._$AH && t !== U, r && (this._$AH = t);
|
|
453
453
|
else {
|
|
454
454
|
const h = t;
|
|
455
|
-
let
|
|
456
|
-
for (t = s[0],
|
|
455
|
+
let c, v;
|
|
456
|
+
for (t = s[0], c = 0; c < s.length - 1; c++) v = Z(this, h[n + c], e, c), v === U && (v = this._$AH[c]), r || (r = !Q(v) || v !== this._$AH[c]), v === d ? t = d : t !== d && (t += (v ?? "") + s[c + 1]), this._$AH[c] = v;
|
|
457
457
|
}
|
|
458
458
|
r && !i && this.j(t);
|
|
459
459
|
}
|
|
@@ -554,7 +554,7 @@ vt == null || vt({ LitElement: f });
|
|
|
554
554
|
* Copyright 2017 Google LLC
|
|
555
555
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
556
556
|
*/
|
|
557
|
-
const
|
|
557
|
+
const _ = (o) => (t, e) => {
|
|
558
558
|
e !== void 0 ? e.addInitializer(() => {
|
|
559
559
|
customElements.define(o, t);
|
|
560
560
|
}) : customElements.define(o, t);
|
|
@@ -570,8 +570,8 @@ const ae = { attribute: !0, type: String, converter: st, reflect: !1, hasChanged
|
|
|
570
570
|
if (s === void 0 && globalThis.litPropertyMetadata.set(i, s = /* @__PURE__ */ new Map()), n === "setter" && ((o = Object.create(o)).wrapped = !0), s.set(e.name, o), n === "accessor") {
|
|
571
571
|
const { name: r } = e;
|
|
572
572
|
return { set(h) {
|
|
573
|
-
const
|
|
574
|
-
t.set.call(this, h), this.requestUpdate(r,
|
|
573
|
+
const c = t.get.call(this);
|
|
574
|
+
t.set.call(this, h), this.requestUpdate(r, c, o);
|
|
575
575
|
}, init(h) {
|
|
576
576
|
return h !== void 0 && this.C(r, void 0, o, h), h;
|
|
577
577
|
} };
|
|
@@ -579,8 +579,8 @@ const ae = { attribute: !0, type: String, converter: st, reflect: !1, hasChanged
|
|
|
579
579
|
if (n === "setter") {
|
|
580
580
|
const { name: r } = e;
|
|
581
581
|
return function(h) {
|
|
582
|
-
const
|
|
583
|
-
t.call(this, h), this.requestUpdate(r,
|
|
582
|
+
const c = this[r];
|
|
583
|
+
t.call(this, h), this.requestUpdate(r, c, o);
|
|
584
584
|
};
|
|
585
585
|
}
|
|
586
586
|
throw Error("Unsupported decorator location: " + n);
|
|
@@ -802,7 +802,7 @@ bt.directiveName = "unsafeHTML", bt.resultType = 1;
|
|
|
802
802
|
class ft extends bt {
|
|
803
803
|
}
|
|
804
804
|
ft.directiveName = "unsafeSVG", ft.resultType = 2;
|
|
805
|
-
const
|
|
805
|
+
const D = Be(ft);
|
|
806
806
|
var De = Object.defineProperty, He = Object.getOwnPropertyDescriptor, m = (o, t, e, n) => {
|
|
807
807
|
for (var i = n > 1 ? void 0 : n ? He(t, e) : t, s = o.length - 1, r; s >= 0; s--)
|
|
808
808
|
(r = o[s]) && (i = (n ? r(t, e, i) : r(i)) || i);
|
|
@@ -838,24 +838,24 @@ let u = class extends Me {
|
|
|
838
838
|
"<svg",
|
|
839
839
|
'<svg aria-hidden="true" focusable="false" part="svg"'
|
|
840
840
|
);
|
|
841
|
-
return
|
|
841
|
+
return l`<span class="${o === "start" ? "icon-start" : "icon-end"}">${D(e)}</span>`;
|
|
842
842
|
}
|
|
843
843
|
renderButton() {
|
|
844
844
|
const o = this.text || this.textsecond;
|
|
845
|
-
return
|
|
845
|
+
return l`
|
|
846
846
|
<button type=${this.type} class="button" ?disabled=${this.disabled} @click=${this.handleClick}>
|
|
847
847
|
${this.startIcon ? this.renderIcon("start") : d}
|
|
848
|
-
${o ?
|
|
849
|
-
${this.text ?
|
|
850
|
-
${this.textsecond ?
|
|
851
|
-
` :
|
|
848
|
+
${o ? l`
|
|
849
|
+
${this.text ? l`<span class="text">${this.text}</span>` : d}
|
|
850
|
+
${this.textsecond ? l`<span class="text">${this.textsecond}</span>` : d}
|
|
851
|
+
` : l`<slot></slot>`}
|
|
852
852
|
${this.endIcon ? this.renderIcon("end") : d}
|
|
853
853
|
</button>
|
|
854
854
|
`;
|
|
855
855
|
}
|
|
856
856
|
renderLink() {
|
|
857
857
|
const o = this.text || this.textsecond;
|
|
858
|
-
return
|
|
858
|
+
return l`
|
|
859
859
|
<a
|
|
860
860
|
href=${this.href}
|
|
861
861
|
target=${this.target || d}
|
|
@@ -863,10 +863,10 @@ let u = class extends Me {
|
|
|
863
863
|
?disabled=${this.disabled}
|
|
864
864
|
>
|
|
865
865
|
${this.startIcon ? this.renderIcon("start") : d}
|
|
866
|
-
${o ?
|
|
867
|
-
${this.text ?
|
|
868
|
-
${this.textsecond ?
|
|
869
|
-
` :
|
|
866
|
+
${o ? l`
|
|
867
|
+
${this.text ? l`<span>${this.text}</span>` : d}
|
|
868
|
+
${this.textsecond ? l`<span>${this.textsecond}</span>` : d}
|
|
869
|
+
` : l`<slot></slot>`}
|
|
870
870
|
${this.endIcon ? this.renderIcon("end") : d}
|
|
871
871
|
</a>
|
|
872
872
|
`;
|
|
@@ -1075,7 +1075,7 @@ m([
|
|
|
1075
1075
|
a({ type: String })
|
|
1076
1076
|
], u.prototype, "target", 2);
|
|
1077
1077
|
u = m([
|
|
1078
|
-
|
|
1078
|
+
_("o-button")
|
|
1079
1079
|
], u);
|
|
1080
1080
|
var Te = Object.defineProperty, je = Object.getOwnPropertyDescriptor, ct = (o, t, e, n) => {
|
|
1081
1081
|
for (var i = n > 1 ? void 0 : n ? je(t, e) : t, s = o.length - 1, r; s >= 0; s--)
|
|
@@ -1106,10 +1106,10 @@ let q = class extends f {
|
|
|
1106
1106
|
"<svg",
|
|
1107
1107
|
'<svg aria-hidden="true" focusable="false" part="svg"'
|
|
1108
1108
|
);
|
|
1109
|
-
return
|
|
1109
|
+
return l`
|
|
1110
1110
|
<button type="button" aria-describedby="${this.ariaDescribedBy}" class="wishlist-button">
|
|
1111
1111
|
<span class="sr-only">${this.label}</span>
|
|
1112
|
-
${
|
|
1112
|
+
${D(o)}
|
|
1113
1113
|
</button>
|
|
1114
1114
|
`;
|
|
1115
1115
|
}
|
|
@@ -1198,16 +1198,22 @@ ct([
|
|
|
1198
1198
|
a({ type: String, reflect: !0 })
|
|
1199
1199
|
], q.prototype, "label", 2);
|
|
1200
1200
|
q = ct([
|
|
1201
|
-
|
|
1201
|
+
_("o-wishlist-button")
|
|
1202
1202
|
], q);
|
|
1203
|
-
|
|
1203
|
+
/**
|
|
1204
|
+
* @license
|
|
1205
|
+
* Copyright 2018 Google LLC
|
|
1206
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
1207
|
+
*/
|
|
1208
|
+
const O = (o) => o ?? d;
|
|
1209
|
+
var Ue = Object.defineProperty, Ne = Object.getOwnPropertyDescriptor, k = (o, t, e, n) => {
|
|
1204
1210
|
for (var i = n > 1 ? void 0 : n ? Ne(t, e) : t, s = o.length - 1, r; s >= 0; s--)
|
|
1205
1211
|
(r = o[s]) && (i = (n ? r(t, e, i) : r(i)) || i);
|
|
1206
1212
|
return n && i && Ue(t, e, i), i;
|
|
1207
1213
|
};
|
|
1208
|
-
let
|
|
1214
|
+
let x = class extends f {
|
|
1209
1215
|
constructor() {
|
|
1210
|
-
super(...arguments), this.bgstyle = "background-light", this.size = "medium", this.status = "empty", this.type = "button", this.strokewidth = "1", this.icon = "wishlist", this.disabled = !1;
|
|
1216
|
+
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 = "";
|
|
1211
1217
|
}
|
|
1212
1218
|
updated(o) {
|
|
1213
1219
|
super.updated(o), this.style.setProperty("--icon-stroke-width", this.strokewidth);
|
|
@@ -1216,26 +1222,27 @@ let C = class extends f {
|
|
|
1216
1222
|
const o = K[this.icon] ?? "", t = `icon-${this.icon}`, e = o.replace(
|
|
1217
1223
|
"<svg",
|
|
1218
1224
|
'<svg aria-hidden="true" focusable="false" part="svg"'
|
|
1219
|
-
);
|
|
1220
|
-
return
|
|
1221
|
-
${this.type === "span" ?
|
|
1225
|
+
), n = this.showSrLabel ? l`<span class="sr-only">${this.srLabel}</span>` : null, i = this.showSrLabel ? null : "icon";
|
|
1226
|
+
return l`
|
|
1227
|
+
${this.type === "span" ? l`
|
|
1222
1228
|
<span class="icon icon-button ${this.size} ${this.bgstyle} ${this.status} ${t}" ?disabled="${this.disabled}">
|
|
1223
|
-
${
|
|
1229
|
+
${D(e)}
|
|
1224
1230
|
</span>
|
|
1225
|
-
` :
|
|
1231
|
+
` : l`
|
|
1226
1232
|
<button
|
|
1227
1233
|
type="button"
|
|
1228
|
-
aria-label
|
|
1234
|
+
aria-label=${O(i)}
|
|
1229
1235
|
class="icon-button ${this.size} ${this.bgstyle} ${this.status} ${t}"
|
|
1230
1236
|
?disabled="${this.disabled}"
|
|
1231
1237
|
>
|
|
1232
|
-
${
|
|
1238
|
+
${D(e)}
|
|
1239
|
+
${n}
|
|
1233
1240
|
</button>
|
|
1234
1241
|
`}
|
|
1235
1242
|
`;
|
|
1236
1243
|
}
|
|
1237
1244
|
};
|
|
1238
|
-
|
|
1245
|
+
x.styles = w`
|
|
1239
1246
|
:host {
|
|
1240
1247
|
display: inline-flex;
|
|
1241
1248
|
justify-content: center;
|
|
@@ -1432,45 +1439,48 @@ C.styles = w`
|
|
|
1432
1439
|
fill: var(--color-content-disabled);
|
|
1433
1440
|
}
|
|
1434
1441
|
}
|
|
1435
|
-
|
|
1442
|
+
}
|
|
1443
|
+
|
|
1444
|
+
.sr-only {
|
|
1445
|
+
display: none;
|
|
1436
1446
|
}
|
|
1437
1447
|
`;
|
|
1438
|
-
|
|
1448
|
+
k([
|
|
1439
1449
|
a({ type: String, reflect: !0 })
|
|
1440
|
-
],
|
|
1441
|
-
|
|
1450
|
+
], x.prototype, "bgstyle", 2);
|
|
1451
|
+
k([
|
|
1442
1452
|
a({ type: String, reflect: !0 })
|
|
1443
|
-
],
|
|
1444
|
-
|
|
1453
|
+
], x.prototype, "size", 2);
|
|
1454
|
+
k([
|
|
1445
1455
|
a({ type: String, reflect: !0 })
|
|
1446
|
-
],
|
|
1447
|
-
|
|
1456
|
+
], x.prototype, "status", 2);
|
|
1457
|
+
k([
|
|
1448
1458
|
a({ type: String, reflect: !0 })
|
|
1449
|
-
],
|
|
1450
|
-
|
|
1459
|
+
], x.prototype, "type", 2);
|
|
1460
|
+
k([
|
|
1451
1461
|
a({ type: String })
|
|
1452
|
-
],
|
|
1453
|
-
|
|
1462
|
+
], x.prototype, "strokewidth", 2);
|
|
1463
|
+
k([
|
|
1454
1464
|
a({ type: String })
|
|
1455
|
-
],
|
|
1456
|
-
|
|
1465
|
+
], x.prototype, "icon", 2);
|
|
1466
|
+
k([
|
|
1457
1467
|
a({ type: Boolean, reflect: !0 })
|
|
1458
|
-
],
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
],
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
+
], x.prototype, "disabled", 2);
|
|
1469
|
+
k([
|
|
1470
|
+
a({ type: Boolean })
|
|
1471
|
+
], x.prototype, "showSrLabel", 2);
|
|
1472
|
+
k([
|
|
1473
|
+
a({ type: String })
|
|
1474
|
+
], x.prototype, "srLabel", 2);
|
|
1475
|
+
x = k([
|
|
1476
|
+
_("o-icon-button")
|
|
1477
|
+
], x);
|
|
1468
1478
|
var Fe = Object.defineProperty, Re = Object.getOwnPropertyDescriptor, F = (o, t, e, n) => {
|
|
1469
1479
|
for (var i = n > 1 ? void 0 : n ? Re(t, e) : t, s = o.length - 1, r; s >= 0; s--)
|
|
1470
1480
|
(r = o[s]) && (i = (n ? r(t, e, i) : r(i)) || i);
|
|
1471
1481
|
return n && i && Fe(t, e, i), i;
|
|
1472
1482
|
};
|
|
1473
|
-
let
|
|
1483
|
+
let E = class extends f {
|
|
1474
1484
|
constructor() {
|
|
1475
1485
|
super(...arguments), this.href = "", this.target = "", this.template = "standard", this.inverse = !1, this.endIcon = !1, this.reverseEndIcon = !1;
|
|
1476
1486
|
}
|
|
@@ -1479,13 +1489,13 @@ let S = class extends f {
|
|
|
1479
1489
|
}
|
|
1480
1490
|
render() {
|
|
1481
1491
|
const o = this.href || "#";
|
|
1482
|
-
return
|
|
1492
|
+
return l`
|
|
1483
1493
|
<a
|
|
1484
1494
|
href="${o}"
|
|
1485
|
-
target="${
|
|
1495
|
+
target="${O(this.target || void 0)}"
|
|
1486
1496
|
@click="${this._handleClick}"
|
|
1487
1497
|
>
|
|
1488
|
-
${this.endIcon && this.reverseEndIcon ?
|
|
1498
|
+
${this.endIcon && this.reverseEndIcon ? l`
|
|
1489
1499
|
<o-icon-button
|
|
1490
1500
|
icon="chevronLeft"
|
|
1491
1501
|
bgstyle="${this.inverse ? "none-light" : "none-contrast"}"
|
|
@@ -1495,7 +1505,7 @@ let S = class extends f {
|
|
|
1495
1505
|
></o-icon-button>
|
|
1496
1506
|
` : null}
|
|
1497
1507
|
<span class="link-text"><slot></slot></span>
|
|
1498
|
-
${this.endIcon && !this.reverseEndIcon ?
|
|
1508
|
+
${this.endIcon && !this.reverseEndIcon ? l`
|
|
1499
1509
|
<o-icon-button
|
|
1500
1510
|
icon="chevronRight"
|
|
1501
1511
|
bgstyle="${this.inverse ? "none-light" : "none-contrast"}"
|
|
@@ -1508,7 +1518,7 @@ let S = class extends f {
|
|
|
1508
1518
|
`;
|
|
1509
1519
|
}
|
|
1510
1520
|
};
|
|
1511
|
-
|
|
1521
|
+
E.styles = w`
|
|
1512
1522
|
:host([template="standard"]) a {
|
|
1513
1523
|
color: var(--color-content-action-secondary);
|
|
1514
1524
|
font-size: var(--font-size-200);
|
|
@@ -1598,25 +1608,25 @@ S.styles = w`
|
|
|
1598
1608
|
`;
|
|
1599
1609
|
F([
|
|
1600
1610
|
a({ type: String })
|
|
1601
|
-
],
|
|
1611
|
+
], E.prototype, "href", 2);
|
|
1602
1612
|
F([
|
|
1603
1613
|
a({ type: String })
|
|
1604
|
-
],
|
|
1614
|
+
], E.prototype, "target", 2);
|
|
1605
1615
|
F([
|
|
1606
1616
|
a({ type: String, reflect: !0 })
|
|
1607
|
-
],
|
|
1617
|
+
], E.prototype, "template", 2);
|
|
1608
1618
|
F([
|
|
1609
1619
|
a({ type: Boolean, reflect: !0 })
|
|
1610
|
-
],
|
|
1620
|
+
], E.prototype, "inverse", 2);
|
|
1611
1621
|
F([
|
|
1612
1622
|
a({ type: Boolean, reflect: !0 })
|
|
1613
|
-
],
|
|
1623
|
+
], E.prototype, "endIcon", 2);
|
|
1614
1624
|
F([
|
|
1615
1625
|
a({ type: Boolean, reflect: !0 })
|
|
1616
|
-
],
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
],
|
|
1626
|
+
], E.prototype, "reverseEndIcon", 2);
|
|
1627
|
+
E = F([
|
|
1628
|
+
_("o-link")
|
|
1629
|
+
], E);
|
|
1620
1630
|
var Ve = Object.defineProperty, Ze = Object.getOwnPropertyDescriptor, ht = (o, t, e, n) => {
|
|
1621
1631
|
for (var i = n > 1 ? void 0 : n ? Ze(t, e) : t, s = o.length - 1, r; s >= 0; s--)
|
|
1622
1632
|
(r = o[s]) && (i = (n ? r(t, e, i) : r(i)) || i);
|
|
@@ -1637,14 +1647,14 @@ let W = class extends f {
|
|
|
1637
1647
|
}
|
|
1638
1648
|
render() {
|
|
1639
1649
|
const o = this.getStarKeys();
|
|
1640
|
-
return
|
|
1650
|
+
return l`
|
|
1641
1651
|
<div class="rating">
|
|
1642
1652
|
<div class="stars">
|
|
1643
1653
|
${o.map(
|
|
1644
|
-
(t) =>
|
|
1654
|
+
(t) => l`<span class="star">${D(K[t] ?? "")}</span>`
|
|
1645
1655
|
)}
|
|
1646
1656
|
</div>
|
|
1647
|
-
${this.reviewCount != null && this.href != null ?
|
|
1657
|
+
${this.reviewCount != null && this.href != null ? l`<o-link template="review" href="${this.href}">${this.reviewCount}</o-link>` : null}
|
|
1648
1658
|
</div>
|
|
1649
1659
|
`;
|
|
1650
1660
|
}
|
|
@@ -1693,7 +1703,7 @@ ht([
|
|
|
1693
1703
|
a({ type: String })
|
|
1694
1704
|
], W.prototype, "href", 2);
|
|
1695
1705
|
W = ht([
|
|
1696
|
-
|
|
1706
|
+
_("o-rating")
|
|
1697
1707
|
], W);
|
|
1698
1708
|
var qe = Object.defineProperty, We = Object.getOwnPropertyDescriptor, y = (o, t, e, n) => {
|
|
1699
1709
|
for (var i = n > 1 ? void 0 : n ? We(t, e) : t, s = o.length - 1, r; s >= 0; s--)
|
|
@@ -1750,7 +1760,7 @@ let g = class extends f {
|
|
|
1750
1760
|
this.style.setProperty("--z-overlay", `${this.zIndex}`), this.style.setProperty("--z-panel", `${this.zIndex + 1}`);
|
|
1751
1761
|
}
|
|
1752
1762
|
render() {
|
|
1753
|
-
return
|
|
1763
|
+
return l`
|
|
1754
1764
|
<div class="overlay" style="z-index: ${this.zIndex}" @click=${this.closePanel}></div>
|
|
1755
1765
|
<div
|
|
1756
1766
|
class="panel"
|
|
@@ -1760,9 +1770,9 @@ let g = class extends f {
|
|
|
1760
1770
|
style="z-index: ${this.zIndex + 1}"
|
|
1761
1771
|
>
|
|
1762
1772
|
|
|
1763
|
-
${this.showHeader ?
|
|
1773
|
+
${this.showHeader ? l`
|
|
1764
1774
|
<div class="header">
|
|
1765
|
-
${this.showHeaderStartIcon ?
|
|
1775
|
+
${this.showHeaderStartIcon ? l`
|
|
1766
1776
|
<o-icon-button icon="arrowLeft" size="small" class="return-btn" bgstyle="background-light" @click=${this.closePanel} aria-label="${this.closeButtonLabel}"></o-icon-button>
|
|
1767
1777
|
` : null}
|
|
1768
1778
|
<span id="panel-title" class="panel-title">${this.headerTitle}</span>
|
|
@@ -1774,9 +1784,9 @@ let g = class extends f {
|
|
|
1774
1784
|
<slot></slot>
|
|
1775
1785
|
</div>
|
|
1776
1786
|
|
|
1777
|
-
${this.showFooter ?
|
|
1787
|
+
${this.showFooter ? l`
|
|
1778
1788
|
<div class="footer">
|
|
1779
|
-
${this.firstButtonVariant && this.firstButtonLabel ?
|
|
1789
|
+
${this.firstButtonVariant && this.firstButtonLabel ? l`
|
|
1780
1790
|
<o-button
|
|
1781
1791
|
variant="${this.firstButtonVariant}"
|
|
1782
1792
|
@click=${this.handleFirstClick}
|
|
@@ -1785,7 +1795,7 @@ let g = class extends f {
|
|
|
1785
1795
|
</o-button>
|
|
1786
1796
|
` : null}
|
|
1787
1797
|
|
|
1788
|
-
${this.secondaryButtonVariant && this.secondaryButtonLabel ?
|
|
1798
|
+
${this.secondaryButtonVariant && this.secondaryButtonLabel ? l`
|
|
1789
1799
|
<o-button
|
|
1790
1800
|
variant="${this.secondaryButtonVariant}"
|
|
1791
1801
|
@click=${this.handleSecondaryClick}
|
|
@@ -1986,16 +1996,16 @@ y([
|
|
|
1986
1996
|
a({ type: Boolean, reflect: !0 })
|
|
1987
1997
|
], g.prototype, "initialized", 2);
|
|
1988
1998
|
g = y([
|
|
1989
|
-
|
|
1999
|
+
_("o-side-panel")
|
|
1990
2000
|
], g);
|
|
1991
2001
|
var Ke = Object.defineProperty, Ge = Object.getOwnPropertyDescriptor, R = (o, t, e, n) => {
|
|
1992
2002
|
for (var i = n > 1 ? void 0 : n ? Ge(t, e) : t, s = o.length - 1, r; s >= 0; s--)
|
|
1993
2003
|
(r = o[s]) && (i = (n ? r(t, e, i) : r(i)) || i);
|
|
1994
2004
|
return n && i && Ke(t, e, i), i;
|
|
1995
2005
|
};
|
|
1996
|
-
let
|
|
2006
|
+
let L = class extends f {
|
|
1997
2007
|
constructor() {
|
|
1998
|
-
super(...arguments), this.thumbnails = [], this.activeIndex = 0, this.disabledIndexes = [], this.maxWidth = "100%", this.focusedIndex = 0, this.playerIconTemplate =
|
|
2008
|
+
super(...arguments), this.thumbnails = [], this.activeIndex = 0, this.disabledIndexes = [], this.maxWidth = "100%", this.focusedIndex = 0, this.playerIconTemplate = l`
|
|
1999
2009
|
<o-icon-button
|
|
2000
2010
|
icon="playerv"
|
|
2001
2011
|
size="xsmall"
|
|
@@ -2029,11 +2039,11 @@ let E = class extends f {
|
|
|
2029
2039
|
this.disabledIndexes.includes(o) || (this.activeIndex = o, this.swiperInstance && typeof this.swiperInstance.slideTo == "function" && this.swiperInstance.slideTo(o), this.dispatchEvent(new CustomEvent("thumbnail-select", { detail: { index: o } })));
|
|
2030
2040
|
}
|
|
2031
2041
|
render() {
|
|
2032
|
-
return
|
|
2042
|
+
return l`
|
|
2033
2043
|
<div class="scroll-container" style="max-width: ${this.maxWidth};">
|
|
2034
2044
|
${this.thumbnails.map((o, t) => {
|
|
2035
2045
|
const e = this.disabledIndexes.includes(t), n = this.activeIndex === t, i = o.type === "video";
|
|
2036
|
-
return
|
|
2046
|
+
return l`
|
|
2037
2047
|
<div class="thumb-wrapper">
|
|
2038
2048
|
<button
|
|
2039
2049
|
class="thumb"
|
|
@@ -2046,7 +2056,7 @@ let E = class extends f {
|
|
|
2046
2056
|
>
|
|
2047
2057
|
<img src="${o.src}" />
|
|
2048
2058
|
</button>
|
|
2049
|
-
${i ?
|
|
2059
|
+
${i ? l`<div class="play-icon-wrapper">${this.playerIconTemplate}</div>` : null}
|
|
2050
2060
|
</div>
|
|
2051
2061
|
`;
|
|
2052
2062
|
})}
|
|
@@ -2054,7 +2064,7 @@ let E = class extends f {
|
|
|
2054
2064
|
`;
|
|
2055
2065
|
}
|
|
2056
2066
|
};
|
|
2057
|
-
|
|
2067
|
+
L.styles = w`
|
|
2058
2068
|
:host {
|
|
2059
2069
|
display: flex;
|
|
2060
2070
|
gap: 5px;
|
|
@@ -2160,25 +2170,25 @@ E.styles = w`
|
|
|
2160
2170
|
`;
|
|
2161
2171
|
R([
|
|
2162
2172
|
a({ type: Array })
|
|
2163
|
-
],
|
|
2173
|
+
], L.prototype, "thumbnails", 2);
|
|
2164
2174
|
R([
|
|
2165
2175
|
a({ type: Number })
|
|
2166
|
-
],
|
|
2176
|
+
], L.prototype, "activeIndex", 2);
|
|
2167
2177
|
R([
|
|
2168
2178
|
a({ type: Array })
|
|
2169
|
-
],
|
|
2179
|
+
], L.prototype, "disabledIndexes", 2);
|
|
2170
2180
|
R([
|
|
2171
2181
|
a({ type: String })
|
|
2172
|
-
],
|
|
2182
|
+
], L.prototype, "maxWidth", 2);
|
|
2173
2183
|
R([
|
|
2174
2184
|
a({ type: Object })
|
|
2175
|
-
],
|
|
2185
|
+
], L.prototype, "swiperInstance", 2);
|
|
2176
2186
|
R([
|
|
2177
2187
|
N()
|
|
2178
|
-
],
|
|
2179
|
-
|
|
2180
|
-
|
|
2181
|
-
],
|
|
2188
|
+
], L.prototype, "focusedIndex", 2);
|
|
2189
|
+
L = R([
|
|
2190
|
+
_("thumbnail-navigation")
|
|
2191
|
+
], L);
|
|
2182
2192
|
var Xe = Object.defineProperty, Je = Object.getOwnPropertyDescriptor, Ct = (o, t, e, n) => {
|
|
2183
2193
|
for (var i = n > 1 ? void 0 : n ? Je(t, e) : t, s = o.length - 1, r; s >= 0; s--)
|
|
2184
2194
|
(r = o[s]) && (i = (n ? r(t, e, i) : r(i)) || i);
|
|
@@ -2189,7 +2199,7 @@ let et = class extends f {
|
|
|
2189
2199
|
super(...arguments), this.type = "", this.bgstyle = "background-white";
|
|
2190
2200
|
}
|
|
2191
2201
|
render() {
|
|
2192
|
-
return
|
|
2202
|
+
return l`
|
|
2193
2203
|
<span class="tag ${this.bgstyle}"><slot></slot></span>
|
|
2194
2204
|
`;
|
|
2195
2205
|
}
|
|
@@ -2257,7 +2267,7 @@ Ct([
|
|
|
2257
2267
|
a({ type: String, reflect: !0 })
|
|
2258
2268
|
], et.prototype, "bgstyle", 2);
|
|
2259
2269
|
et = Ct([
|
|
2260
|
-
|
|
2270
|
+
_("o-tag")
|
|
2261
2271
|
], et);
|
|
2262
2272
|
var Ye = Object.defineProperty, Qe = Object.getOwnPropertyDescriptor, kt = (o, t, e, n) => {
|
|
2263
2273
|
for (var i = n > 1 ? void 0 : n ? Qe(t, e) : t, s = o.length - 1, r; s >= 0; s--)
|
|
@@ -2269,7 +2279,7 @@ let ot = class extends f {
|
|
|
2269
2279
|
super(...arguments), this.type = "top", this.text = "";
|
|
2270
2280
|
}
|
|
2271
2281
|
render() {
|
|
2272
|
-
return
|
|
2282
|
+
return l`
|
|
2273
2283
|
<div class="tooltip">
|
|
2274
2284
|
<span class="tooltiptext">${this.text}</span>
|
|
2275
2285
|
<slot></slot>
|
|
@@ -2377,14 +2387,14 @@ kt([
|
|
|
2377
2387
|
a({ type: String, reflect: !0 })
|
|
2378
2388
|
], ot.prototype, "text", 2);
|
|
2379
2389
|
ot = kt([
|
|
2380
|
-
|
|
2390
|
+
_("o-tooltip")
|
|
2381
2391
|
], ot);
|
|
2382
|
-
var to = Object.defineProperty, eo = Object.getOwnPropertyDescriptor,
|
|
2392
|
+
var to = Object.defineProperty, eo = Object.getOwnPropertyDescriptor, I = (o, t, e, n) => {
|
|
2383
2393
|
for (var i = n > 1 ? void 0 : n ? eo(t, e) : t, s = o.length - 1, r; s >= 0; s--)
|
|
2384
2394
|
(r = o[s]) && (i = (n ? r(t, e, i) : r(i)) || i);
|
|
2385
2395
|
return n && i && to(t, e, i), i;
|
|
2386
2396
|
};
|
|
2387
|
-
let
|
|
2397
|
+
let C = class extends f {
|
|
2388
2398
|
constructor() {
|
|
2389
2399
|
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) => {
|
|
2390
2400
|
this.contains(o.target) || (this.open = !1, this.activeIndex = -1);
|
|
@@ -2454,7 +2464,7 @@ let _ = class extends f {
|
|
|
2454
2464
|
"<svg",
|
|
2455
2465
|
'<svg aria-hidden="true" focusable="false" part="svg"'
|
|
2456
2466
|
), t = this.options.find((e) => e.value === this.value);
|
|
2457
|
-
return
|
|
2467
|
+
return l`
|
|
2458
2468
|
<button
|
|
2459
2469
|
role="combobox"
|
|
2460
2470
|
aria-haspopup="listbox"
|
|
@@ -2475,7 +2485,7 @@ let _ = class extends f {
|
|
|
2475
2485
|
</span>
|
|
2476
2486
|
</button>
|
|
2477
2487
|
|
|
2478
|
-
${this.open ?
|
|
2488
|
+
${this.open ? l`
|
|
2479
2489
|
<ul
|
|
2480
2490
|
id="dropdown-listbox"
|
|
2481
2491
|
role="listbox"
|
|
@@ -2483,7 +2493,7 @@ let _ = class extends f {
|
|
|
2483
2493
|
style=${`width: ${this.width};`}
|
|
2484
2494
|
>
|
|
2485
2495
|
${this.options.map(
|
|
2486
|
-
(e, n) =>
|
|
2496
|
+
(e, n) => l`
|
|
2487
2497
|
<li
|
|
2488
2498
|
id="option-${n}"
|
|
2489
2499
|
role="option"
|
|
@@ -2492,13 +2502,13 @@ let _ = class extends f {
|
|
|
2492
2502
|
class="${n === this.activeIndex ? "active" : ""} ${e.disabled ? "disabled" : ""}"
|
|
2493
2503
|
@click=${() => this.selectOption(e)}
|
|
2494
2504
|
>
|
|
2495
|
-
${e.url ?
|
|
2505
|
+
${e.url ? l`
|
|
2496
2506
|
<a href="${e.url}">
|
|
2497
2507
|
<span>${e.label}</span>
|
|
2498
|
-
${e.value === this.value ?
|
|
2499
|
-
</a>` :
|
|
2508
|
+
${e.value === this.value ? l`<span class="check">${D(o)}</span>` : null}
|
|
2509
|
+
</a>` : l`
|
|
2500
2510
|
<span>${e.label}</span>
|
|
2501
|
-
${e.value === this.value ?
|
|
2511
|
+
${e.value === this.value ? l`<span class="check">${D(o)}</span>` : null}`}
|
|
2502
2512
|
</li>`
|
|
2503
2513
|
)}
|
|
2504
2514
|
</ul>` : null}
|
|
@@ -2507,7 +2517,7 @@ let _ = class extends f {
|
|
|
2507
2517
|
`;
|
|
2508
2518
|
}
|
|
2509
2519
|
};
|
|
2510
|
-
|
|
2520
|
+
C.styles = w`
|
|
2511
2521
|
:host {
|
|
2512
2522
|
display: inline-block;
|
|
2513
2523
|
position: relative;
|
|
@@ -2647,33 +2657,33 @@ _.styles = w`
|
|
|
2647
2657
|
display: none;
|
|
2648
2658
|
}
|
|
2649
2659
|
`;
|
|
2650
|
-
|
|
2660
|
+
I([
|
|
2651
2661
|
a({ type: Array, reflect: !0 })
|
|
2652
|
-
],
|
|
2653
|
-
|
|
2662
|
+
], C.prototype, "options", 2);
|
|
2663
|
+
I([
|
|
2654
2664
|
a({ type: String, reflect: !0 })
|
|
2655
|
-
],
|
|
2656
|
-
|
|
2665
|
+
], C.prototype, "value", 2);
|
|
2666
|
+
I([
|
|
2657
2667
|
a({ type: String, reflect: !0 })
|
|
2658
|
-
],
|
|
2659
|
-
|
|
2668
|
+
], C.prototype, "name", 2);
|
|
2669
|
+
I([
|
|
2660
2670
|
a({ type: Boolean, reflect: !0 })
|
|
2661
|
-
],
|
|
2662
|
-
|
|
2671
|
+
], C.prototype, "disabled", 2);
|
|
2672
|
+
I([
|
|
2663
2673
|
a({ type: String, reflect: !0 })
|
|
2664
|
-
],
|
|
2665
|
-
|
|
2674
|
+
], C.prototype, "width", 2);
|
|
2675
|
+
I([
|
|
2666
2676
|
N()
|
|
2667
|
-
],
|
|
2668
|
-
|
|
2677
|
+
], C.prototype, "open", 2);
|
|
2678
|
+
I([
|
|
2669
2679
|
N()
|
|
2670
|
-
],
|
|
2671
|
-
|
|
2680
|
+
], C.prototype, "activeIndex", 2);
|
|
2681
|
+
I([
|
|
2672
2682
|
N()
|
|
2673
|
-
],
|
|
2674
|
-
|
|
2675
|
-
|
|
2676
|
-
],
|
|
2683
|
+
], C.prototype, "menuWidth", 2);
|
|
2684
|
+
C = I([
|
|
2685
|
+
_("o-dropdown")
|
|
2686
|
+
], C);
|
|
2677
2687
|
var oo = Object.getOwnPropertyDescriptor, io = (o, t, e, n) => {
|
|
2678
2688
|
for (var i = n > 1 ? void 0 : n ? oo(t, e) : t, s = o.length - 1, r; s >= 0; s--)
|
|
2679
2689
|
(r = o[s]) && (i = r(i) || i);
|
|
@@ -2681,7 +2691,7 @@ var oo = Object.getOwnPropertyDescriptor, io = (o, t, e, n) => {
|
|
|
2681
2691
|
};
|
|
2682
2692
|
let yt = class extends f {
|
|
2683
2693
|
render() {
|
|
2684
|
-
return
|
|
2694
|
+
return l` <span class="dots"></span> `;
|
|
2685
2695
|
}
|
|
2686
2696
|
};
|
|
2687
2697
|
yt.styles = w`
|
|
@@ -2737,14 +2747,14 @@ yt.styles = w`
|
|
|
2737
2747
|
}
|
|
2738
2748
|
`;
|
|
2739
2749
|
yt = io([
|
|
2740
|
-
|
|
2750
|
+
_("o-dots")
|
|
2741
2751
|
], yt);
|
|
2742
|
-
var no = Object.defineProperty, ro = Object.getOwnPropertyDescriptor,
|
|
2752
|
+
var no = Object.defineProperty, ro = Object.getOwnPropertyDescriptor, A = (o, t, e, n) => {
|
|
2743
2753
|
for (var i = n > 1 ? void 0 : n ? ro(t, e) : t, s = o.length - 1, r; s >= 0; s--)
|
|
2744
2754
|
(r = o[s]) && (i = (n ? r(t, e, i) : r(i)) || i);
|
|
2745
2755
|
return n && i && no(t, e, i), i;
|
|
2746
2756
|
};
|
|
2747
|
-
let
|
|
2757
|
+
let $ = class extends f {
|
|
2748
2758
|
constructor() {
|
|
2749
2759
|
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) => {
|
|
2750
2760
|
this.contains(o.target) || (this.open = !1, this.activeIndex = -1);
|
|
@@ -2814,7 +2824,7 @@ let x = class extends f {
|
|
|
2814
2824
|
"<svg",
|
|
2815
2825
|
'<svg aria-hidden="true" focusable="false" part="svg"'
|
|
2816
2826
|
), t = this.options.find((e) => e.value === this.value);
|
|
2817
|
-
return
|
|
2827
|
+
return l`
|
|
2818
2828
|
<button
|
|
2819
2829
|
role="combobox"
|
|
2820
2830
|
aria-haspopup="listbox"
|
|
@@ -2828,7 +2838,7 @@ let x = class extends f {
|
|
|
2828
2838
|
?disabled=${this.disabled}
|
|
2829
2839
|
class="btn-dropdown"
|
|
2830
2840
|
>
|
|
2831
|
-
<img alt="${
|
|
2841
|
+
<img alt="${O(t == null ? void 0 : t.label)}" src="${O(t == null ? void 0 : t.imgurl)}" />
|
|
2832
2842
|
<span id="dropdown-label" class="label">
|
|
2833
2843
|
${t ? t.label : "Select an option"}
|
|
2834
2844
|
</span>
|
|
@@ -2845,7 +2855,7 @@ let x = class extends f {
|
|
|
2845
2855
|
</div>
|
|
2846
2856
|
</button>
|
|
2847
2857
|
|
|
2848
|
-
${this.open ?
|
|
2858
|
+
${this.open ? l`
|
|
2849
2859
|
<ul
|
|
2850
2860
|
id="dropdown-listbox"
|
|
2851
2861
|
role="listbox"
|
|
@@ -2853,7 +2863,7 @@ let x = class extends f {
|
|
|
2853
2863
|
style=${`width: ${this.width};`}
|
|
2854
2864
|
>
|
|
2855
2865
|
${this.options.map(
|
|
2856
|
-
(e, n) =>
|
|
2866
|
+
(e, n) => l`
|
|
2857
2867
|
<li
|
|
2858
2868
|
id="option-${n}"
|
|
2859
2869
|
role="option"
|
|
@@ -2863,13 +2873,13 @@ let x = class extends f {
|
|
|
2863
2873
|
class="${n === this.activeIndex ? "active" : ""} ${e.disabled ? "disabled" : ""}"
|
|
2864
2874
|
@click=${() => this.selectOption(e)}
|
|
2865
2875
|
>
|
|
2866
|
-
<a href="${
|
|
2867
|
-
<img alt="${
|
|
2876
|
+
<a href="${O(e.url)}">
|
|
2877
|
+
<img alt="${O(e.label)}" src="${O(e.imgurl)}" />
|
|
2868
2878
|
<span class="label">${e.label}</span>
|
|
2869
2879
|
<div class="right">
|
|
2870
|
-
<span class="additional-text">${
|
|
2871
|
-
${e.value === this.value && !e.additionaltext ?
|
|
2872
|
-
<span class="check">${
|
|
2880
|
+
<span class="additional-text">${O(e.additionaltext)}</span>
|
|
2881
|
+
${e.value === this.value && !e.additionaltext ? l`
|
|
2882
|
+
<span class="check">${D(o)}</span>` : null}
|
|
2873
2883
|
</div>
|
|
2874
2884
|
</a>
|
|
2875
2885
|
</li>
|
|
@@ -2881,7 +2891,7 @@ let x = class extends f {
|
|
|
2881
2891
|
`;
|
|
2882
2892
|
}
|
|
2883
2893
|
};
|
|
2884
|
-
|
|
2894
|
+
$.styles = w`
|
|
2885
2895
|
:host {
|
|
2886
2896
|
display: inline-block;
|
|
2887
2897
|
position: relative;
|
|
@@ -3057,33 +3067,33 @@ x.styles = w`
|
|
|
3057
3067
|
display: none;
|
|
3058
3068
|
}
|
|
3059
3069
|
`;
|
|
3060
|
-
|
|
3070
|
+
A([
|
|
3061
3071
|
a({ type: Array, reflect: !0 })
|
|
3062
|
-
],
|
|
3063
|
-
|
|
3072
|
+
], $.prototype, "options", 2);
|
|
3073
|
+
A([
|
|
3064
3074
|
a({ type: String, reflect: !0 })
|
|
3065
|
-
],
|
|
3066
|
-
|
|
3075
|
+
], $.prototype, "value", 2);
|
|
3076
|
+
A([
|
|
3067
3077
|
a({ type: String, reflect: !0 })
|
|
3068
|
-
],
|
|
3069
|
-
|
|
3078
|
+
], $.prototype, "name", 2);
|
|
3079
|
+
A([
|
|
3070
3080
|
a({ type: String, reflect: !0 })
|
|
3071
|
-
],
|
|
3072
|
-
|
|
3081
|
+
], $.prototype, "additionaltext", 2);
|
|
3082
|
+
A([
|
|
3073
3083
|
a({ type: Boolean, reflect: !0 })
|
|
3074
|
-
],
|
|
3075
|
-
|
|
3084
|
+
], $.prototype, "disabled", 2);
|
|
3085
|
+
A([
|
|
3076
3086
|
a({ type: String, reflect: !0 })
|
|
3077
|
-
],
|
|
3078
|
-
|
|
3087
|
+
], $.prototype, "width", 2);
|
|
3088
|
+
A([
|
|
3079
3089
|
N()
|
|
3080
|
-
],
|
|
3081
|
-
|
|
3090
|
+
], $.prototype, "open", 2);
|
|
3091
|
+
A([
|
|
3082
3092
|
N()
|
|
3083
|
-
],
|
|
3084
|
-
|
|
3093
|
+
], $.prototype, "activeIndex", 2);
|
|
3094
|
+
A([
|
|
3085
3095
|
N()
|
|
3086
|
-
],
|
|
3087
|
-
|
|
3088
|
-
|
|
3089
|
-
],
|
|
3096
|
+
], $.prototype, "menuWidth", 2);
|
|
3097
|
+
$ = A([
|
|
3098
|
+
_("o-dropdown-variant")
|
|
3099
|
+
], $);
|