@cupra/ui-react 0.1.0-canary.0 → 1.0.0-canary.10
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/README.md +117 -139
- package/THIRD_PARTY_LICENSES.MD +81 -0
- package/dist/components/Accordion/stories/CupraDiagonal.stories.d.ts +5 -0
- package/dist/components/Avatar/stories/CupraDiagonal.stories.d.ts +8 -0
- package/dist/components/Button/Button.js +14 -5
- package/dist/components/Button/stories/CupraDiagonal.stories.d.ts +19 -0
- package/dist/components/CarouselIndicator/stories/CupraDiagonal.stories.d.ts +8 -0
- package/dist/components/Checkbox/stories/CupraDiagonal.stories.d.ts +20 -0
- package/dist/components/Chip/stories/CupraDiagonal.stories.d.ts +7 -0
- package/dist/components/Chips/stories/CupraDiagonal.stories.d.ts +5 -0
- package/dist/components/Currency/stories/CupraDiagonal.stories.d.ts +13 -0
- package/dist/components/Dialog/stories/CupraDiagonal.stories.d.ts +5 -0
- package/dist/components/DialogBody/stories/CupraDiagonal.stories.d.ts +5 -0
- package/dist/components/DialogFooter/stories/CupraDiagonal.stories.d.ts +5 -0
- package/dist/components/DialogHeader/stories/CupraDiagonal.stories.d.ts +5 -0
- package/dist/components/Divider/stories/CupraDiagonal.stories.d.ts +8 -0
- package/dist/components/Icon/stories/CupraDiagonal.stories.d.ts +5 -0
- package/dist/components/IconButton/IconButton.js +12 -4
- package/dist/components/IconButton/stories/CupraDiagonal.stories.d.ts +13 -0
- package/dist/components/InteractiveCard/InteractiveCard.d.ts +55 -0
- package/dist/components/InteractiveCard/InteractiveCard.js +26 -0
- package/dist/components/InteractiveCard/stories/CupraDiagonal.stories.d.ts +9 -0
- package/dist/components/LinkButton/stories/CupraDiagonal.stories.d.ts +9 -0
- package/dist/components/Logo/stories/CupraDiagonal.stories.d.ts +10 -0
- package/dist/components/MapPin/stories/CupraDiagonal.stories.d.ts +7 -0
- package/dist/components/PasswordInput/PasswordInput.js +29 -32
- package/dist/components/PasswordInput/stories/CupraDiagonal.stories.d.ts +11 -0
- package/dist/components/PickerItem/PickerItem.d.ts +1 -1
- package/dist/components/PickerItem/PickerItem.js +14 -5
- package/dist/components/PickerItem/stories/CupraDiagonal.stories.d.ts +12 -0
- package/dist/components/RadioButton/stories/CupraDiagonal.stories.d.ts +12 -0
- package/dist/components/RadioButtonGroup/stories/CupraDiagonal.stories.d.ts +5 -0
- package/dist/components/SearchInput/stories/CupraDiagonal.stories.d.ts +5 -0
- package/dist/components/SecondaryNavigation/stories/CupraDiagonal.stories.d.ts +5 -0
- package/dist/components/SegmentedControl/stories/CupraDiagonal.stories.d.ts +7 -0
- package/dist/components/Select/stories/CupraDiagonal.stories.d.ts +5 -0
- package/dist/components/SidebarNavigation/stories/CupraDiagonal.stories.d.ts +5 -0
- package/dist/components/Slider/Slider.js +11 -4
- package/dist/components/Slider/stories/CupraDiagonal.stories.d.ts +5 -0
- package/dist/components/StaticBox/StaticBox.js +15 -6
- package/dist/components/StaticBox/stories/CupraDiagonal.stories.d.ts +5 -0
- package/dist/components/Stepper/stories/CupraDiagonal.stories.d.ts +9 -0
- package/dist/components/Tabs/stories/CupraDiagonal.stories.d.ts +8 -0
- package/dist/components/Tag/stories/CupraDiagonal.stories.d.ts +8 -0
- package/dist/components/Text/stories/CupraDiagonal.stories.d.ts +5 -0
- package/dist/components/TextInput/stories/CupraDiagonal.stories.d.ts +8 -0
- package/dist/components/Textarea/stories/CupraDiagonal.stories.d.ts +11 -0
- package/dist/components/ThemeProvider/ThemeProvider.d.ts +2 -2
- package/dist/components/Toast/stories/CupraDiagonal.stories.d.ts +10 -0
- package/dist/components/ToastMessage/ToastMessage.d.ts +1 -2
- package/dist/components/ToastMessage/stories/CupraDiagonal.stories.d.ts +12 -0
- package/dist/components/ToggleSwitch/stories/CupraDiagonal.stories.d.ts +10 -0
- package/dist/components/index.d.ts +1 -1
- package/dist/hooks/useHandleEvent.js +18 -16
- package/dist/index.js +1 -1
- package/dist/packages/ui-kit/dist-react/index.js +931 -910
- package/package.json +15 -6
- package/dist/components/interactive-card/InteractiveCard.d.ts +0 -34
- package/dist/components/interactive-card/InteractiveCard.js +0 -19
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { breakpoints as
|
|
1
|
+
import { breakpoints as Lt } from "./utils/breakpoints.js";
|
|
2
2
|
import { debounce as Ss } from "./utils/debounce.js";
|
|
3
3
|
/**
|
|
4
4
|
* @license
|
|
@@ -92,7 +92,7 @@ let Li = class extends Event {
|
|
|
92
92
|
}, this.onProviderRequest = (o) => {
|
|
93
93
|
if (o.context !== this.context || (o.contextTarget ?? o.composedPath()[0]) === this.host) return;
|
|
94
94
|
const n = /* @__PURE__ */ new Set();
|
|
95
|
-
for (const [
|
|
95
|
+
for (const [d, { consumerHost: u }] of this.subscriptions) n.has(d) || (n.add(d), u.dispatchEvent(new ui(this.context, u, d, !0)));
|
|
96
96
|
o.stopPropagation();
|
|
97
97
|
}, this.host = t, e.context !== void 0 ? this.context = e.context : this.context = e, this.attachListeners(), (s = (r = this.host).addController) == null || s.call(r, this);
|
|
98
98
|
}
|
|
@@ -108,7 +108,7 @@ let Li = class extends Event {
|
|
|
108
108
|
* Copyright 2017 Google LLC
|
|
109
109
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
110
110
|
*/
|
|
111
|
-
function
|
|
111
|
+
function ve({ context: t }) {
|
|
112
112
|
return (e, i) => {
|
|
113
113
|
const r = /* @__PURE__ */ new WeakMap();
|
|
114
114
|
if (typeof i == "object") return { get() {
|
|
@@ -128,13 +128,13 @@ function me({ context: t }) {
|
|
|
128
128
|
const n = /* @__PURE__ */ new WeakMap();
|
|
129
129
|
o = { get() {
|
|
130
130
|
return n.get(this);
|
|
131
|
-
}, set(
|
|
132
|
-
r.get(this).setValue(
|
|
131
|
+
}, set(d) {
|
|
132
|
+
r.get(this).setValue(d), n.set(this, d);
|
|
133
133
|
}, configurable: !0, enumerable: !0 };
|
|
134
134
|
} else {
|
|
135
135
|
const n = s.set;
|
|
136
|
-
o = { ...s, set(
|
|
137
|
-
r.get(this).setValue(
|
|
136
|
+
o = { ...s, set(d) {
|
|
137
|
+
r.get(this).setValue(d), n == null || n.call(this, d);
|
|
138
138
|
} };
|
|
139
139
|
}
|
|
140
140
|
return void Object.defineProperty(e, i, o);
|
|
@@ -160,12 +160,12 @@ function mi({ context: t, subscribe: e }) {
|
|
|
160
160
|
};
|
|
161
161
|
}
|
|
162
162
|
const ks = "theme";
|
|
163
|
-
class
|
|
163
|
+
class Jt {
|
|
164
164
|
constructor() {
|
|
165
165
|
this.subscribers = {}, this.lastPublishedData = {};
|
|
166
166
|
}
|
|
167
167
|
static getInstance() {
|
|
168
|
-
return
|
|
168
|
+
return Jt.instance || (Jt.instance = new Jt()), Jt.instance;
|
|
169
169
|
}
|
|
170
170
|
subscribe(e, i) {
|
|
171
171
|
return this.subscribers[e] || (this.subscribers[e] = []), this.subscribers[e].push(i), this.lastPublishedData[e];
|
|
@@ -183,7 +183,7 @@ class Xt {
|
|
|
183
183
|
});
|
|
184
184
|
}
|
|
185
185
|
}
|
|
186
|
-
const
|
|
186
|
+
const se = Jt.getInstance();
|
|
187
187
|
class Zt {
|
|
188
188
|
constructor() {
|
|
189
189
|
this.stylePromises = /* @__PURE__ */ new Map(), this.getStyles = async ({
|
|
@@ -191,7 +191,7 @@ class Zt {
|
|
|
191
191
|
theme: i
|
|
192
192
|
}) => {
|
|
193
193
|
if (!i || !e) return;
|
|
194
|
-
const r = `https://ds-assets.cupra.com/0.
|
|
194
|
+
const r = `https://ds-assets.cupra.com/1.0.0-canary.7/styles/${i}/components/${e}.css`, s = this.getCachedStyleSheetPromise({ url: r });
|
|
195
195
|
if (s) return s;
|
|
196
196
|
const o = this.fetchStyle({ url: r }).then((n) => (n || this.stylePromises.delete(r), n));
|
|
197
197
|
return this.stylePromises.set(r, o), this.stylePromises.get(r);
|
|
@@ -218,7 +218,7 @@ const Mi = Zt.getInstance();
|
|
|
218
218
|
* Copyright 2019 Google LLC
|
|
219
219
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
220
220
|
*/
|
|
221
|
-
const
|
|
221
|
+
const Ye = globalThis, Ts = Ye.ShadowRoot && (Ye.ShadyCSS === void 0 || Ye.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, Cs = Symbol(), Ws = /* @__PURE__ */ new WeakMap();
|
|
222
222
|
let vi = class {
|
|
223
223
|
constructor(t, e, i) {
|
|
224
224
|
if (this._$cssResult$ = !0, i !== Cs) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
@@ -237,7 +237,7 @@ let vi = class {
|
|
|
237
237
|
return this.cssText;
|
|
238
238
|
}
|
|
239
239
|
};
|
|
240
|
-
const bi = (t) => new vi(typeof t == "string" ? t : t + "", void 0, Cs),
|
|
240
|
+
const bi = (t) => new vi(typeof t == "string" ? t : t + "", void 0, Cs), h = (t, ...e) => {
|
|
241
241
|
const i = t.length === 1 ? t[0] : e.reduce(((r, s, o) => r + ((n) => {
|
|
242
242
|
if (n._$cssResult$ === !0) return n.cssText;
|
|
243
243
|
if (typeof n == "number") return n;
|
|
@@ -247,7 +247,7 @@ const bi = (t) => new vi(typeof t == "string" ? t : t + "", void 0, Cs), d = (t,
|
|
|
247
247
|
}, Es = (t, e) => {
|
|
248
248
|
if (Ts) t.adoptedStyleSheets = e.map(((i) => i instanceof CSSStyleSheet ? i : i.styleSheet));
|
|
249
249
|
else for (const i of e) {
|
|
250
|
-
const r = document.createElement("style"), s =
|
|
250
|
+
const r = document.createElement("style"), s = Ye.litNonce;
|
|
251
251
|
s !== void 0 && r.setAttribute("nonce", s), r.textContent = i.cssText, t.appendChild(r);
|
|
252
252
|
}
|
|
253
253
|
}, qs = Ts ? (t) => t : (t) => t instanceof CSSStyleSheet ? ((e) => {
|
|
@@ -260,7 +260,7 @@ const bi = (t) => new vi(typeof t == "string" ? t : t + "", void 0, Cs), d = (t,
|
|
|
260
260
|
* Copyright 2017 Google LLC
|
|
261
261
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
262
262
|
*/
|
|
263
|
-
const { is: Di, defineProperty: ji, getOwnPropertyDescriptor: Fi, getOwnPropertyNames: Ri, getOwnPropertySymbols: Ui, getPrototypeOf: Vi } = Object,
|
|
263
|
+
const { is: Di, defineProperty: ji, getOwnPropertyDescriptor: Fi, getOwnPropertyNames: Ri, getOwnPropertySymbols: Ui, getPrototypeOf: Vi } = Object, ie = globalThis, Ks = ie.trustedTypes, Hi = Ks ? Ks.emptyScript : "", Ys = ie.reactiveElementPolyfillSupport, ze = (t, e) => t, Ge = { toAttribute(t, e) {
|
|
264
264
|
switch (e) {
|
|
265
265
|
case Boolean:
|
|
266
266
|
t = t ? Hi : null;
|
|
@@ -288,16 +288,16 @@ const { is: Di, defineProperty: ji, getOwnPropertyDescriptor: Fi, getOwnProperty
|
|
|
288
288
|
}
|
|
289
289
|
}
|
|
290
290
|
return i;
|
|
291
|
-
} }, Os = (t, e) => !Di(t, e),
|
|
292
|
-
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")),
|
|
293
|
-
let
|
|
291
|
+
} }, Os = (t, e) => !Di(t, e), Gs = { attribute: !0, type: String, converter: Ge, reflect: !1, useDefault: !1, hasChanged: Os };
|
|
292
|
+
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), ie.litPropertyMetadata ?? (ie.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
|
293
|
+
let Xt = class extends HTMLElement {
|
|
294
294
|
static addInitializer(t) {
|
|
295
295
|
this._$Ei(), (this.l ?? (this.l = [])).push(t);
|
|
296
296
|
}
|
|
297
297
|
static get observedAttributes() {
|
|
298
298
|
return this.finalize(), this._$Eh && [...this._$Eh.keys()];
|
|
299
299
|
}
|
|
300
|
-
static createProperty(t, e =
|
|
300
|
+
static createProperty(t, e = Gs) {
|
|
301
301
|
if (e.state && (e.attribute = !1), this._$Ei(), this.prototype.hasOwnProperty(t) && ((e = Object.create(e)).wrapped = !0), this.elementProperties.set(t, e), !e.noAccessor) {
|
|
302
302
|
const i = Symbol(), r = this.getPropertyDescriptor(t, i, e);
|
|
303
303
|
r !== void 0 && ji(this.prototype, t, r);
|
|
@@ -315,16 +315,16 @@ let Yt = class extends HTMLElement {
|
|
|
315
315
|
}, configurable: !0, enumerable: !0 };
|
|
316
316
|
}
|
|
317
317
|
static getPropertyOptions(t) {
|
|
318
|
-
return this.elementProperties.get(t) ??
|
|
318
|
+
return this.elementProperties.get(t) ?? Gs;
|
|
319
319
|
}
|
|
320
320
|
static _$Ei() {
|
|
321
|
-
if (this.hasOwnProperty(
|
|
321
|
+
if (this.hasOwnProperty(ze("elementProperties"))) return;
|
|
322
322
|
const t = Vi(this);
|
|
323
323
|
t.finalize(), t.l !== void 0 && (this.l = [...t.l]), this.elementProperties = new Map(t.elementProperties);
|
|
324
324
|
}
|
|
325
325
|
static finalize() {
|
|
326
|
-
if (this.hasOwnProperty(
|
|
327
|
-
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(
|
|
326
|
+
if (this.hasOwnProperty(ze("finalized"))) return;
|
|
327
|
+
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(ze("properties"))) {
|
|
328
328
|
const e = this.properties, i = [...Ri(e), ...Ui(e)];
|
|
329
329
|
for (const r of i) this.createProperty(r, e[r]);
|
|
330
330
|
}
|
|
@@ -399,7 +399,7 @@ let Yt = class extends HTMLElement {
|
|
|
399
399
|
var i;
|
|
400
400
|
const r = this.constructor.elementProperties.get(t), s = this.constructor._$Eu(t, r);
|
|
401
401
|
if (s !== void 0 && r.reflect === !0) {
|
|
402
|
-
const o = (((i = r.converter) == null ? void 0 : i.toAttribute) !== void 0 ? r.converter :
|
|
402
|
+
const o = (((i = r.converter) == null ? void 0 : i.toAttribute) !== void 0 ? r.converter : Ge).toAttribute(e, r.type);
|
|
403
403
|
this._$Em = t, o == null ? this.removeAttribute(s) : this.setAttribute(s, o), this._$Em = null;
|
|
404
404
|
}
|
|
405
405
|
}
|
|
@@ -407,9 +407,9 @@ let Yt = class extends HTMLElement {
|
|
|
407
407
|
var i, r;
|
|
408
408
|
const s = this.constructor, o = s._$Eh.get(t);
|
|
409
409
|
if (o !== void 0 && this._$Em !== o) {
|
|
410
|
-
const n = s.getPropertyOptions(o),
|
|
410
|
+
const n = s.getPropertyOptions(o), d = typeof n.converter == "function" ? { fromAttribute: n.converter } : ((i = n.converter) == null ? void 0 : i.fromAttribute) !== void 0 ? n.converter : Ge;
|
|
411
411
|
this._$Em = o;
|
|
412
|
-
const u =
|
|
412
|
+
const u = d.fromAttribute(e, n.type);
|
|
413
413
|
this[o] = u ?? ((r = this._$Ej) == null ? void 0 : r.get(o)) ?? u, this._$Em = null;
|
|
414
414
|
}
|
|
415
415
|
}
|
|
@@ -448,8 +448,8 @@ let Yt = class extends HTMLElement {
|
|
|
448
448
|
}
|
|
449
449
|
const r = this.constructor.elementProperties;
|
|
450
450
|
if (r.size > 0) for (const [s, o] of r) {
|
|
451
|
-
const { wrapped: n } = o,
|
|
452
|
-
n !== !0 || this._$AL.has(s) ||
|
|
451
|
+
const { wrapped: n } = o, d = this[s];
|
|
452
|
+
n !== !0 || this._$AL.has(s) || d === void 0 || this.C(s, void 0, o, d);
|
|
453
453
|
}
|
|
454
454
|
}
|
|
455
455
|
let e = !1;
|
|
@@ -493,28 +493,28 @@ let Yt = class extends HTMLElement {
|
|
|
493
493
|
firstUpdated(t) {
|
|
494
494
|
}
|
|
495
495
|
};
|
|
496
|
-
|
|
496
|
+
Xt.elementStyles = [], Xt.shadowRootOptions = { mode: "open" }, Xt[ze("elementProperties")] = /* @__PURE__ */ new Map(), Xt[ze("finalized")] = /* @__PURE__ */ new Map(), Ys == null || Ys({ ReactiveElement: Xt }), (ie.reactiveElementVersions ?? (ie.reactiveElementVersions = [])).push("2.1.1");
|
|
497
497
|
/**
|
|
498
498
|
* @license
|
|
499
499
|
* Copyright 2017 Google LLC
|
|
500
500
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
501
501
|
*/
|
|
502
|
-
const Xe = globalThis,
|
|
503
|
-
\f\r]`,
|
|
504
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"), Qs = /'/g, ti = /"/g, fi = /^(?:script|style|textarea|title)$/i, Ki = (t) => (e, ...i) => ({ _$litType$: t, strings: e, values: i }), l = Ki(1),
|
|
502
|
+
const Xe = globalThis, Je = Xe.trustedTypes, Xs = Je ? Je.createPolicy("lit-html", { createHTML: (t) => t }) : void 0, yi = "$lit$", Ct = `lit$${Math.random().toFixed(9).slice(2)}$`, gi = "?" + Ct, Wi = `<${gi}>`, Dt = document, Ae = () => Dt.createComment(""), _e = (t) => t === null || typeof t != "object" && typeof t != "function", zs = Array.isArray, qi = (t) => zs(t) || typeof (t == null ? void 0 : t[Symbol.iterator]) == "function", us = `[
|
|
503
|
+
\f\r]`, Te = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Js = /-->/g, Zs = />/g, Nt = RegExp(`>|${us}(?:([^\\s"'>=/]+)(${us}*=${us}*(?:[^
|
|
504
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), Qs = /'/g, ti = /"/g, fi = /^(?:script|style|textarea|title)$/i, Ki = (t) => (e, ...i) => ({ _$litType$: t, strings: e, values: i }), l = Ki(1), mt = Symbol.for("lit-noChange"), c = Symbol.for("lit-nothing"), ei = /* @__PURE__ */ new WeakMap(), Mt = Dt.createTreeWalker(Dt, 129);
|
|
505
505
|
function xi(t, e) {
|
|
506
506
|
if (!zs(t) || !t.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
507
507
|
return Xs !== void 0 ? Xs.createHTML(e) : e;
|
|
508
508
|
}
|
|
509
|
-
const
|
|
509
|
+
const Yi = (t, e) => {
|
|
510
510
|
const i = t.length - 1, r = [];
|
|
511
|
-
let s, o = e === 2 ? "<svg>" : e === 3 ? "<math>" : "", n =
|
|
512
|
-
for (let
|
|
513
|
-
const u = t[
|
|
511
|
+
let s, o = e === 2 ? "<svg>" : e === 3 ? "<math>" : "", n = Te;
|
|
512
|
+
for (let d = 0; d < i; d++) {
|
|
513
|
+
const u = t[d];
|
|
514
514
|
let g, $, v = -1, x = 0;
|
|
515
|
-
for (; x < u.length && (n.lastIndex = x, $ = n.exec(u), $ !== null); ) x = n.lastIndex, n ===
|
|
516
|
-
const S = n ===
|
|
517
|
-
o += n ===
|
|
515
|
+
for (; x < u.length && (n.lastIndex = x, $ = n.exec(u), $ !== null); ) x = n.lastIndex, n === Te ? $[1] === "!--" ? n = Js : $[1] !== void 0 ? n = Zs : $[2] !== void 0 ? (fi.test($[2]) && (s = RegExp("</" + $[2], "g")), n = Nt) : $[3] !== void 0 && (n = Nt) : n === Nt ? $[0] === ">" ? (n = s ?? Te, v = -1) : $[1] === void 0 ? v = -2 : (v = n.lastIndex - $[2].length, g = $[1], n = $[3] === void 0 ? Nt : $[3] === '"' ? ti : Qs) : n === ti || n === Qs ? n = Nt : n === Js || n === Zs ? n = Te : (n = Nt, s = void 0);
|
|
516
|
+
const S = n === Nt && t[d + 1].startsWith("/>") ? " " : "";
|
|
517
|
+
o += n === Te ? u + Wi : v >= 0 ? (r.push(g), u.slice(0, v) + yi + u.slice(v) + Ct + S) : u + Ct + (v === -2 ? d : S);
|
|
518
518
|
}
|
|
519
519
|
return [xi(t, o + (t[i] || "<?>") + (e === 2 ? "</svg>" : e === 3 ? "</math>" : "")), r];
|
|
520
520
|
};
|
|
@@ -523,46 +523,46 @@ class Pe {
|
|
|
523
523
|
let s;
|
|
524
524
|
this.parts = [];
|
|
525
525
|
let o = 0, n = 0;
|
|
526
|
-
const
|
|
527
|
-
if (this.el = Pe.createElement(g, r),
|
|
526
|
+
const d = e.length - 1, u = this.parts, [g, $] = Yi(e, i);
|
|
527
|
+
if (this.el = Pe.createElement(g, r), Mt.currentNode = this.el.content, i === 2 || i === 3) {
|
|
528
528
|
const v = this.el.content.firstChild;
|
|
529
529
|
v.replaceWith(...v.childNodes);
|
|
530
530
|
}
|
|
531
|
-
for (; (s =
|
|
531
|
+
for (; (s = Mt.nextNode()) !== null && u.length < d; ) {
|
|
532
532
|
if (s.nodeType === 1) {
|
|
533
533
|
if (s.hasAttributes()) for (const v of s.getAttributeNames()) if (v.endsWith(yi)) {
|
|
534
|
-
const x = $[n++], S = s.getAttribute(v).split(
|
|
535
|
-
u.push({ type: 1, index: o, name: T[2], strings: S, ctor: T[1] === "." ? Xi : T[1] === "?" ?
|
|
536
|
-
} else v.startsWith(
|
|
534
|
+
const x = $[n++], S = s.getAttribute(v).split(Ct), T = /([.?@])?(.*)/.exec(x);
|
|
535
|
+
u.push({ type: 1, index: o, name: T[2], strings: S, ctor: T[1] === "." ? Xi : T[1] === "?" ? Ji : T[1] === "@" ? Zi : ts }), s.removeAttribute(v);
|
|
536
|
+
} else v.startsWith(Ct) && (u.push({ type: 6, index: o }), s.removeAttribute(v));
|
|
537
537
|
if (fi.test(s.tagName)) {
|
|
538
|
-
const v = s.textContent.split(
|
|
538
|
+
const v = s.textContent.split(Ct), x = v.length - 1;
|
|
539
539
|
if (x > 0) {
|
|
540
|
-
s.textContent =
|
|
541
|
-
for (let S = 0; S < x; S++) s.append(v[S], Ae()),
|
|
540
|
+
s.textContent = Je ? Je.emptyScript : "";
|
|
541
|
+
for (let S = 0; S < x; S++) s.append(v[S], Ae()), Mt.nextNode(), u.push({ type: 2, index: ++o });
|
|
542
542
|
s.append(v[x], Ae());
|
|
543
543
|
}
|
|
544
544
|
}
|
|
545
545
|
} else if (s.nodeType === 8) if (s.data === gi) u.push({ type: 2, index: o });
|
|
546
546
|
else {
|
|
547
547
|
let v = -1;
|
|
548
|
-
for (; (v = s.data.indexOf(
|
|
548
|
+
for (; (v = s.data.indexOf(Ct, v + 1)) !== -1; ) u.push({ type: 7, index: o }), v += Ct.length - 1;
|
|
549
549
|
}
|
|
550
550
|
o++;
|
|
551
551
|
}
|
|
552
552
|
}
|
|
553
553
|
static createElement(e, i) {
|
|
554
|
-
const r =
|
|
554
|
+
const r = Dt.createElement("template");
|
|
555
555
|
return r.innerHTML = e, r;
|
|
556
556
|
}
|
|
557
557
|
}
|
|
558
|
-
function
|
|
558
|
+
function re(t, e, i = t, r) {
|
|
559
559
|
var s, o;
|
|
560
|
-
if (e ===
|
|
560
|
+
if (e === mt) return e;
|
|
561
561
|
let n = r !== void 0 ? (s = i._$Co) == null ? void 0 : s[r] : i._$Cl;
|
|
562
|
-
const
|
|
563
|
-
return (n == null ? void 0 : n.constructor) !==
|
|
562
|
+
const d = _e(e) ? void 0 : e._$litDirective$;
|
|
563
|
+
return (n == null ? void 0 : n.constructor) !== d && ((o = n == null ? void 0 : n._$AO) == null || o.call(n, !1), d === void 0 ? n = void 0 : (n = new d(t), n._$AT(t, i, r)), r !== void 0 ? (i._$Co ?? (i._$Co = []))[r] = n : i._$Cl = n), n !== void 0 && (e = re(t, n._$AS(t, e.values), n, r)), e;
|
|
564
564
|
}
|
|
565
|
-
let
|
|
565
|
+
let Gi = class {
|
|
566
566
|
constructor(t, e) {
|
|
567
567
|
this._$AV = [], this._$AN = void 0, this._$AD = t, this._$AM = e;
|
|
568
568
|
}
|
|
@@ -573,24 +573,24 @@ let Yi = class {
|
|
|
573
573
|
return this._$AM._$AU;
|
|
574
574
|
}
|
|
575
575
|
u(t) {
|
|
576
|
-
const { el: { content: e }, parts: i } = this._$AD, r = ((t == null ? void 0 : t.creationScope) ??
|
|
577
|
-
|
|
578
|
-
let s =
|
|
579
|
-
for (;
|
|
580
|
-
if (o ===
|
|
576
|
+
const { el: { content: e }, parts: i } = this._$AD, r = ((t == null ? void 0 : t.creationScope) ?? Dt).importNode(e, !0);
|
|
577
|
+
Mt.currentNode = r;
|
|
578
|
+
let s = Mt.nextNode(), o = 0, n = 0, d = i[0];
|
|
579
|
+
for (; d !== void 0; ) {
|
|
580
|
+
if (o === d.index) {
|
|
581
581
|
let u;
|
|
582
|
-
|
|
582
|
+
d.type === 2 ? u = new be(s, s.nextSibling, this, t) : d.type === 1 ? u = new d.ctor(s, d.name, d.strings, this, t) : d.type === 6 && (u = new Qi(s, this, t)), this._$AV.push(u), d = i[++n];
|
|
583
583
|
}
|
|
584
|
-
o !== (
|
|
584
|
+
o !== (d == null ? void 0 : d.index) && (s = Mt.nextNode(), o++);
|
|
585
585
|
}
|
|
586
|
-
return
|
|
586
|
+
return Mt.currentNode = Dt, r;
|
|
587
587
|
}
|
|
588
588
|
p(t) {
|
|
589
589
|
let e = 0;
|
|
590
590
|
for (const i of this._$AV) i !== void 0 && (i.strings !== void 0 ? (i._$AI(t, i, e), e += i.strings.length - 2) : i._$AI(t[e])), e++;
|
|
591
591
|
}
|
|
592
592
|
};
|
|
593
|
-
class
|
|
593
|
+
class be {
|
|
594
594
|
get _$AU() {
|
|
595
595
|
var e;
|
|
596
596
|
return ((e = this._$AM) == null ? void 0 : e._$AU) ?? this._$Cv;
|
|
@@ -610,7 +610,7 @@ class ve {
|
|
|
610
610
|
return this._$AB;
|
|
611
611
|
}
|
|
612
612
|
_$AI(e, i = this) {
|
|
613
|
-
e =
|
|
613
|
+
e = re(this, e, i), _e(e) ? e === c || e == null || e === "" ? (this._$AH !== c && this._$AR(), this._$AH = c) : e !== this._$AH && e !== mt && this._(e) : e._$litType$ !== void 0 ? this.$(e) : e.nodeType !== void 0 ? this.T(e) : qi(e) ? this.k(e) : this._(e);
|
|
614
614
|
}
|
|
615
615
|
O(e) {
|
|
616
616
|
return this._$AA.parentNode.insertBefore(e, this._$AB);
|
|
@@ -619,15 +619,15 @@ class ve {
|
|
|
619
619
|
this._$AH !== e && (this._$AR(), this._$AH = this.O(e));
|
|
620
620
|
}
|
|
621
621
|
_(e) {
|
|
622
|
-
this._$AH !== c && _e(this._$AH) ? this._$AA.nextSibling.data = e : this.T(
|
|
622
|
+
this._$AH !== c && _e(this._$AH) ? this._$AA.nextSibling.data = e : this.T(Dt.createTextNode(e)), this._$AH = e;
|
|
623
623
|
}
|
|
624
624
|
$(e) {
|
|
625
625
|
var i;
|
|
626
626
|
const { values: r, _$litType$: s } = e, o = typeof s == "number" ? this._$AC(e) : (s.el === void 0 && (s.el = Pe.createElement(xi(s.h, s.h[0]), this.options)), s);
|
|
627
627
|
if (((i = this._$AH) == null ? void 0 : i._$AD) === o) this._$AH.p(r);
|
|
628
628
|
else {
|
|
629
|
-
const n = new
|
|
630
|
-
n.p(r), this.T(
|
|
629
|
+
const n = new Gi(o, this), d = n.u(this.options);
|
|
630
|
+
n.p(r), this.T(d), this._$AH = n;
|
|
631
631
|
}
|
|
632
632
|
}
|
|
633
633
|
_$AC(e) {
|
|
@@ -638,7 +638,7 @@ class ve {
|
|
|
638
638
|
zs(this._$AH) || (this._$AH = [], this._$AR());
|
|
639
639
|
const i = this._$AH;
|
|
640
640
|
let r, s = 0;
|
|
641
|
-
for (const o of e) s === i.length ? i.push(r = new
|
|
641
|
+
for (const o of e) s === i.length ? i.push(r = new be(this.O(Ae()), this.O(Ae()), this, this.options)) : r = i[s], r._$AI(o), s++;
|
|
642
642
|
s < i.length && (this._$AR(r && r._$AB.nextSibling, s), i.length = s);
|
|
643
643
|
}
|
|
644
644
|
_$AR(e = this._$AA.nextSibling, i) {
|
|
@@ -666,11 +666,11 @@ class ts {
|
|
|
666
666
|
_$AI(e, i = this, r, s) {
|
|
667
667
|
const o = this.strings;
|
|
668
668
|
let n = !1;
|
|
669
|
-
if (o === void 0) e =
|
|
669
|
+
if (o === void 0) e = re(this, e, i, 0), n = !_e(e) || e !== this._$AH && e !== mt, n && (this._$AH = e);
|
|
670
670
|
else {
|
|
671
|
-
const
|
|
671
|
+
const d = e;
|
|
672
672
|
let u, g;
|
|
673
|
-
for (e = o[0], u = 0; u < o.length - 1; u++) g =
|
|
673
|
+
for (e = o[0], u = 0; u < o.length - 1; u++) g = re(this, d[r + u], i, u), g === mt && (g = this._$AH[u]), n || (n = !_e(g) || g !== this._$AH[u]), g === c ? e = c : e !== c && (e += (g ?? "") + o[u + 1]), this._$AH[u] = g;
|
|
674
674
|
}
|
|
675
675
|
n && !s && this.j(e);
|
|
676
676
|
}
|
|
@@ -686,7 +686,7 @@ class Xi extends ts {
|
|
|
686
686
|
this.element[this.name] = e === c ? void 0 : e;
|
|
687
687
|
}
|
|
688
688
|
}
|
|
689
|
-
class
|
|
689
|
+
class Ji extends ts {
|
|
690
690
|
constructor() {
|
|
691
691
|
super(...arguments), this.type = 4;
|
|
692
692
|
}
|
|
@@ -694,12 +694,12 @@ class Zi extends ts {
|
|
|
694
694
|
this.element.toggleAttribute(this.name, !!e && e !== c);
|
|
695
695
|
}
|
|
696
696
|
}
|
|
697
|
-
class
|
|
697
|
+
class Zi extends ts {
|
|
698
698
|
constructor(e, i, r, s, o) {
|
|
699
699
|
super(e, i, r, s, o), this.type = 5;
|
|
700
700
|
}
|
|
701
701
|
_$AI(e, i = this) {
|
|
702
|
-
if ((e =
|
|
702
|
+
if ((e = re(this, e, i, 0) ?? c) === mt) return;
|
|
703
703
|
const r = this._$AH, s = e === c && r !== c || e.capture !== r.capture || e.once !== r.once || e.passive !== r.passive, o = e !== c && (r === c || s);
|
|
704
704
|
s && this.element.removeEventListener(this.name, this, r), o && this.element.addEventListener(this.name, this, e), this._$AH = e;
|
|
705
705
|
}
|
|
@@ -716,17 +716,17 @@ class Qi {
|
|
|
716
716
|
return this._$AM._$AU;
|
|
717
717
|
}
|
|
718
718
|
_$AI(e) {
|
|
719
|
-
|
|
719
|
+
re(this, e);
|
|
720
720
|
}
|
|
721
721
|
}
|
|
722
|
-
const tr = { I:
|
|
723
|
-
si == null || si(Pe,
|
|
722
|
+
const tr = { I: be }, si = Xe.litHtmlPolyfillSupport;
|
|
723
|
+
si == null || si(Pe, be), (Xe.litHtmlVersions ?? (Xe.litHtmlVersions = [])).push("3.3.1");
|
|
724
724
|
const er = (t, e, i) => {
|
|
725
725
|
const r = (i == null ? void 0 : i.renderBefore) ?? e;
|
|
726
726
|
let s = r._$litPart$;
|
|
727
727
|
if (s === void 0) {
|
|
728
728
|
const o = (i == null ? void 0 : i.renderBefore) ?? null;
|
|
729
|
-
r._$litPart$ = s = new
|
|
729
|
+
r._$litPart$ = s = new be(e.insertBefore(Ae(), o), o, void 0, i ?? {});
|
|
730
730
|
}
|
|
731
731
|
return s._$AI(t), s;
|
|
732
732
|
};
|
|
@@ -736,7 +736,7 @@ const er = (t, e, i) => {
|
|
|
736
736
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
737
737
|
*/
|
|
738
738
|
const Ne = globalThis;
|
|
739
|
-
let
|
|
739
|
+
let ut = class extends Xt {
|
|
740
740
|
constructor() {
|
|
741
741
|
super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
|
|
742
742
|
}
|
|
@@ -758,36 +758,36 @@ let pt = class extends Yt {
|
|
|
758
758
|
super.disconnectedCallback(), (t = this._$Do) == null || t.setConnected(!1);
|
|
759
759
|
}
|
|
760
760
|
render() {
|
|
761
|
-
return
|
|
761
|
+
return mt;
|
|
762
762
|
}
|
|
763
763
|
};
|
|
764
764
|
var ii;
|
|
765
|
-
|
|
765
|
+
ut._$litElement$ = !0, ut.finalized = !0, (ii = Ne.litElementHydrateSupport) == null || ii.call(Ne, { LitElement: ut });
|
|
766
766
|
const ri = Ne.litElementPolyfillSupport;
|
|
767
|
-
ri == null || ri({ LitElement:
|
|
767
|
+
ri == null || ri({ LitElement: ut });
|
|
768
768
|
(Ne.litElementVersions ?? (Ne.litElementVersions = [])).push("4.2.1");
|
|
769
769
|
/**
|
|
770
770
|
* @license
|
|
771
771
|
* Copyright 2017 Google LLC
|
|
772
772
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
773
773
|
*/
|
|
774
|
-
const sr = { attribute: !0, type: String, converter:
|
|
774
|
+
const sr = { attribute: !0, type: String, converter: Ge, reflect: !1, hasChanged: Os }, ir = (t = sr, e, i) => {
|
|
775
775
|
const { kind: r, metadata: s } = i;
|
|
776
776
|
let o = globalThis.litPropertyMetadata.get(s);
|
|
777
777
|
if (o === void 0 && globalThis.litPropertyMetadata.set(s, o = /* @__PURE__ */ new Map()), r === "setter" && ((t = Object.create(t)).wrapped = !0), o.set(i.name, t), r === "accessor") {
|
|
778
778
|
const { name: n } = i;
|
|
779
|
-
return { set(
|
|
779
|
+
return { set(d) {
|
|
780
780
|
const u = e.get.call(this);
|
|
781
|
-
e.set.call(this,
|
|
782
|
-
}, init(
|
|
783
|
-
return
|
|
781
|
+
e.set.call(this, d), this.requestUpdate(n, u, t);
|
|
782
|
+
}, init(d) {
|
|
783
|
+
return d !== void 0 && this.C(n, void 0, t, d), d;
|
|
784
784
|
} };
|
|
785
785
|
}
|
|
786
786
|
if (r === "setter") {
|
|
787
787
|
const { name: n } = i;
|
|
788
|
-
return function(
|
|
788
|
+
return function(d) {
|
|
789
789
|
const u = this[n];
|
|
790
|
-
e.call(this,
|
|
790
|
+
e.call(this, d), this.requestUpdate(n, u, t);
|
|
791
791
|
};
|
|
792
792
|
}
|
|
793
793
|
throw Error("Unsupported decorator location: " + r);
|
|
@@ -817,11 +817,11 @@ const Is = (t, e, i) => (i.configurable = !0, i.enumerable = !0, Reflect.decorat
|
|
|
817
817
|
* Copyright 2017 Google LLC
|
|
818
818
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
819
819
|
*/
|
|
820
|
-
function
|
|
820
|
+
function ct(t, e) {
|
|
821
821
|
return (i, r, s) => {
|
|
822
822
|
const o = (n) => {
|
|
823
|
-
var
|
|
824
|
-
return ((
|
|
823
|
+
var d;
|
|
824
|
+
return ((d = n.renderRoot) == null ? void 0 : d.querySelector(t)) ?? null;
|
|
825
825
|
};
|
|
826
826
|
return Is(i, r, { get() {
|
|
827
827
|
return o(this);
|
|
@@ -833,12 +833,12 @@ function lt(t, e) {
|
|
|
833
833
|
* Copyright 2021 Google LLC
|
|
834
834
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
835
835
|
*/
|
|
836
|
-
function
|
|
836
|
+
function et(t) {
|
|
837
837
|
return (e, i) => {
|
|
838
838
|
const { slot: r, selector: s } = t ?? {}, o = "slot" + (r ? `[name=${r}]` : ":not([name])");
|
|
839
839
|
return Is(e, i, { get() {
|
|
840
840
|
var n;
|
|
841
|
-
const
|
|
841
|
+
const d = (n = this.renderRoot) == null ? void 0 : n.querySelector(o), u = (d == null ? void 0 : d.assignedElements(t)) ?? [];
|
|
842
842
|
return s === void 0 ? u : u.filter(((g) => g.matches(s)));
|
|
843
843
|
} });
|
|
844
844
|
};
|
|
@@ -863,11 +863,11 @@ var rr = Object.defineProperty, $i = (t, e, i, r) => {
|
|
|
863
863
|
(n = t[o]) && (s = n(e, i, s) || s);
|
|
864
864
|
return s && rr(e, i, s), s;
|
|
865
865
|
};
|
|
866
|
-
const or =
|
|
866
|
+
const or = h`:host([unresolved]){visibility:hidden}`, _s = class wi extends ut {
|
|
867
867
|
constructor() {
|
|
868
868
|
super(), this.appliedConstructables = [], this.appliedStyleTags = [], this.handleChangeTheme = (e) => {
|
|
869
869
|
this.pubSubTheme = e;
|
|
870
|
-
}, this.pubSubTheme =
|
|
870
|
+
}, this.pubSubTheme = se.subscribe("theme", this.handleChangeTheme);
|
|
871
871
|
}
|
|
872
872
|
get theme() {
|
|
873
873
|
return this.contextTheme ?? this.pubSubTheme;
|
|
@@ -878,7 +878,7 @@ const or = d`:host([unresolved]){visibility:hidden}`, _s = class wi extends pt {
|
|
|
878
878
|
Es(this.shadowRoot, [...i, or]), this.applyThemeStyles();
|
|
879
879
|
}
|
|
880
880
|
disconnectedCallback() {
|
|
881
|
-
super.disconnectedCallback(),
|
|
881
|
+
super.disconnectedCallback(), se.unsubscribe("theme", this.handleChangeTheme);
|
|
882
882
|
}
|
|
883
883
|
updated(e) {
|
|
884
884
|
super.updated(e), (e.has("contextTheme") || e.has("pubSubTheme")) && this.applyThemeStyles();
|
|
@@ -903,11 +903,11 @@ const or = d`:host([unresolved]){visibility:hidden}`, _s = class wi extends pt {
|
|
|
903
903
|
this.appliedConstructables = [], this.appliedStyleTags.forEach((n) => n.remove()), this.appliedStyleTags = [], i.forEach((n) => {
|
|
904
904
|
if (n)
|
|
905
905
|
if (r) {
|
|
906
|
-
const
|
|
907
|
-
|
|
906
|
+
const d = new CSSStyleSheet();
|
|
907
|
+
d.replaceSync(n), this.appliedConstructables.push(d);
|
|
908
908
|
} else {
|
|
909
|
-
const
|
|
910
|
-
|
|
909
|
+
const d = document.createElement("style");
|
|
910
|
+
d.textContent = n, this.shadowRoot.appendChild(d), this.appliedStyleTags.push(d);
|
|
911
911
|
}
|
|
912
912
|
}), r && (this.shadowRoot.adoptedStyleSheets = [...o, ...this.appliedConstructables]);
|
|
913
913
|
} catch (i) {
|
|
@@ -925,7 +925,7 @@ $i([
|
|
|
925
925
|
y()
|
|
926
926
|
], _s.prototype, "pubSubTheme");
|
|
927
927
|
let f = _s;
|
|
928
|
-
const nr =
|
|
928
|
+
const nr = h`
|
|
929
929
|
:host {
|
|
930
930
|
display: block;
|
|
931
931
|
width: 100%;
|
|
@@ -1009,20 +1009,21 @@ const nr = d`
|
|
|
1009
1009
|
* Copyright 2018 Google LLC
|
|
1010
1010
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1011
1011
|
*/
|
|
1012
|
-
const
|
|
1012
|
+
const U = (t) => t ?? c, ar = {
|
|
1013
1013
|
createIcon: (t) => l`
|
|
1014
1014
|
<ds-icon-react
|
|
1015
|
-
class=${t == null ? void 0 : t.class}
|
|
1016
|
-
data-testid=${t == null ? void 0 : t["data-testid"]}
|
|
1015
|
+
class=${U(t == null ? void 0 : t.class)}
|
|
1016
|
+
data-testid=${U(t == null ? void 0 : t["data-testid"])}
|
|
1017
1017
|
@click=${t == null ? void 0 : t["@click"]}
|
|
1018
1018
|
@keydown=${t == null ? void 0 : t["@keydown"]}
|
|
1019
1019
|
icon-name=${t == null ? void 0 : t["icon-name"]}
|
|
1020
|
-
color=${t == null ? void 0 : t.color}
|
|
1021
|
-
background-color=${t == null ? void 0 : t["background-color"]}
|
|
1022
|
-
size=${
|
|
1023
|
-
aria-label=${t == null ? void 0 : t["aria-label"]}
|
|
1024
|
-
|
|
1025
|
-
|
|
1020
|
+
color=${U(t == null ? void 0 : t.color)}
|
|
1021
|
+
background-color=${U(t == null ? void 0 : t["background-color"])}
|
|
1022
|
+
size=${U(t == null ? void 0 : t.size)}
|
|
1023
|
+
aria-label=${U(t == null ? void 0 : t["aria-label"])}
|
|
1024
|
+
aria-hidden=${U(t == null ? void 0 : t["aria-hidden"])}
|
|
1025
|
+
role=${U(t == null ? void 0 : t.role)}
|
|
1026
|
+
tabindex=${U(t == null ? void 0 : t.tabindex)}
|
|
1026
1027
|
>
|
|
1027
1028
|
${t.children}
|
|
1028
1029
|
</ds-icon-react>
|
|
@@ -1031,7 +1032,7 @@ const ze = (t) => t ?? c, ar = {
|
|
|
1031
1032
|
<ds-button-react
|
|
1032
1033
|
class=${t == null ? void 0 : t.class}
|
|
1033
1034
|
@click=${t == null ? void 0 : t["@click"]}
|
|
1034
|
-
.size=${
|
|
1035
|
+
.size=${U(t == null ? void 0 : t.size)}
|
|
1035
1036
|
type=${t == null ? void 0 : t.type}
|
|
1036
1037
|
icon-position=${t == null ? void 0 : t["icon-position"]}
|
|
1037
1038
|
.rounded=${t == null ? void 0 : t.rounded}
|
|
@@ -1053,7 +1054,7 @@ const ze = (t) => t ?? c, ar = {
|
|
|
1053
1054
|
<ds-icon-button-react
|
|
1054
1055
|
class=${t == null ? void 0 : t.class}
|
|
1055
1056
|
@click=${t == null ? void 0 : t["@click"]}
|
|
1056
|
-
|
|
1057
|
+
size=${U(t == null ? void 0 : t.size)}
|
|
1057
1058
|
variant=${(t == null ? void 0 : t.variant) ?? "primary"}
|
|
1058
1059
|
mode=${(t == null ? void 0 : t.mode) ?? "light"}
|
|
1059
1060
|
.disabled=${t == null ? void 0 : t.disabled}
|
|
@@ -1092,15 +1093,15 @@ function b(t, e) {
|
|
|
1092
1093
|
throw new TypeError("@customUiKitElement requires a class that extends HTMLElement.");
|
|
1093
1094
|
const n = `${t}-react`;
|
|
1094
1095
|
if (customElements.get(n)) return;
|
|
1095
|
-
let
|
|
1096
|
-
Array.isArray(e == null ? void 0 : e.extendComponentNames) && (
|
|
1096
|
+
let d = e != null && e.skipTagAsComponentName ? [] : [t];
|
|
1097
|
+
Array.isArray(e == null ? void 0 : e.extendComponentNames) && (d = [...e.extendComponentNames, ...d]), (o = (r = window == null ? void 0 : window.customElements) == null ? void 0 : r.define) == null || o.call(
|
|
1097
1098
|
r,
|
|
1098
1099
|
n,
|
|
1099
1100
|
(s = class extends i {
|
|
1100
1101
|
constructor() {
|
|
1101
1102
|
super(...arguments), this.componentFactory = ar;
|
|
1102
1103
|
}
|
|
1103
|
-
}, s.componentName =
|
|
1104
|
+
}, s.componentName = d, s)
|
|
1104
1105
|
);
|
|
1105
1106
|
};
|
|
1106
1107
|
}
|
|
@@ -1138,7 +1139,7 @@ let ys = class extends Bs {
|
|
|
1138
1139
|
}
|
|
1139
1140
|
render(t) {
|
|
1140
1141
|
if (t === c || t == null) return this._t = void 0, this.it = t;
|
|
1141
|
-
if (t ===
|
|
1142
|
+
if (t === mt) return t;
|
|
1142
1143
|
if (typeof t != "string") throw Error(this.constructor.directiveName + "() called with a non-string value");
|
|
1143
1144
|
if (t === this.it) return this._t;
|
|
1144
1145
|
this.it = t;
|
|
@@ -1149,7 +1150,7 @@ let ys = class extends Bs {
|
|
|
1149
1150
|
ys.directiveName = "unsafeHTML", ys.resultType = 1;
|
|
1150
1151
|
const es = Ns(ys);
|
|
1151
1152
|
function C(t, ...e) {
|
|
1152
|
-
const i = String.raw({ raw: t }, ...e).replace(/(--private-[\w-]+)(?=\s*[):,])/g, "$1-
|
|
1153
|
+
const i = String.raw({ raw: t }, ...e).replace(/(--private-[\w-]+)(?=\s*[):,])/g, "$1-v1-0-0-canary-7"), r = es(i);
|
|
1153
1154
|
return l`${r}`;
|
|
1154
1155
|
}
|
|
1155
1156
|
/**
|
|
@@ -1178,15 +1179,15 @@ const p = Ns(class extends Bs {
|
|
|
1178
1179
|
const n = !!e[o];
|
|
1179
1180
|
n === this.st.has(o) || (r = this.nt) != null && r.has(o) || (n ? (s.add(o), this.st.add(o)) : (s.remove(o), this.st.delete(o)));
|
|
1180
1181
|
}
|
|
1181
|
-
return
|
|
1182
|
+
return mt;
|
|
1182
1183
|
}
|
|
1183
1184
|
});
|
|
1184
|
-
var lr = Object.defineProperty, cr = Object.getOwnPropertyDescriptor,
|
|
1185
|
+
var lr = Object.defineProperty, cr = Object.getOwnPropertyDescriptor, Vt = (t, e, i, r) => {
|
|
1185
1186
|
for (var s = r > 1 ? void 0 : r ? cr(e, i) : e, o = t.length - 1, n; o >= 0; o--)
|
|
1186
1187
|
(n = t[o]) && (s = (r ? n(e, i, s) : n(s)) || s);
|
|
1187
1188
|
return r && s && lr(e, i, s), s;
|
|
1188
1189
|
};
|
|
1189
|
-
let
|
|
1190
|
+
let vt = class extends f {
|
|
1190
1191
|
constructor() {
|
|
1191
1192
|
super(...arguments), this.maxHeight = 300, this.open = !1, this.mode = "light", this.size = "medium", this.disabled = !1, this._open = !1;
|
|
1192
1193
|
}
|
|
@@ -1214,6 +1215,8 @@ let mt = class extends f {
|
|
|
1214
1215
|
const e = (t = oi[this.theme]) == null ? void 0 : t["icon-names"];
|
|
1215
1216
|
return this.componentFactory.createIcon({
|
|
1216
1217
|
class: "icon open-icon",
|
|
1218
|
+
role: "image",
|
|
1219
|
+
"aria-hidden": "true",
|
|
1217
1220
|
"icon-name": (e == null ? void 0 : e.open) || "minus"
|
|
1218
1221
|
});
|
|
1219
1222
|
}
|
|
@@ -1223,6 +1226,8 @@ let mt = class extends f {
|
|
|
1223
1226
|
const e = (t = oi[this.theme]) == null ? void 0 : t["icon-names"];
|
|
1224
1227
|
return this.componentFactory.createIcon({
|
|
1225
1228
|
class: "icon close-icon",
|
|
1229
|
+
role: "image",
|
|
1230
|
+
"aria-hidden": "true",
|
|
1226
1231
|
"icon-name": (e == null ? void 0 : e.close) || "plus"
|
|
1227
1232
|
});
|
|
1228
1233
|
}
|
|
@@ -1264,29 +1269,29 @@ let mt = class extends f {
|
|
|
1264
1269
|
`;
|
|
1265
1270
|
}
|
|
1266
1271
|
};
|
|
1267
|
-
|
|
1268
|
-
|
|
1272
|
+
vt.styles = [nr];
|
|
1273
|
+
Vt([
|
|
1269
1274
|
a({ type: Number, attribute: "max-height" })
|
|
1270
|
-
],
|
|
1271
|
-
|
|
1275
|
+
], vt.prototype, "maxHeight", 2);
|
|
1276
|
+
Vt([
|
|
1272
1277
|
a({ type: Boolean, converter: m, reflect: !0 })
|
|
1273
|
-
],
|
|
1274
|
-
|
|
1278
|
+
], vt.prototype, "open", 2);
|
|
1279
|
+
Vt([
|
|
1275
1280
|
a({ type: String, reflect: !0 })
|
|
1276
|
-
],
|
|
1277
|
-
|
|
1281
|
+
], vt.prototype, "mode", 2);
|
|
1282
|
+
Vt([
|
|
1278
1283
|
a({ type: String })
|
|
1279
|
-
],
|
|
1280
|
-
|
|
1284
|
+
], vt.prototype, "size", 2);
|
|
1285
|
+
Vt([
|
|
1281
1286
|
a({ type: Boolean, converter: m })
|
|
1282
|
-
],
|
|
1283
|
-
|
|
1287
|
+
], vt.prototype, "disabled", 2);
|
|
1288
|
+
Vt([
|
|
1284
1289
|
y()
|
|
1285
|
-
],
|
|
1286
|
-
|
|
1290
|
+
], vt.prototype, "_open", 2);
|
|
1291
|
+
vt = Vt([
|
|
1287
1292
|
b("ds-accordion")
|
|
1288
|
-
],
|
|
1289
|
-
const
|
|
1293
|
+
], vt);
|
|
1294
|
+
const dr = h`
|
|
1290
1295
|
:host {
|
|
1291
1296
|
display: block;
|
|
1292
1297
|
width: 100%;
|
|
@@ -1305,12 +1310,12 @@ const hr = d`
|
|
|
1305
1310
|
cursor: auto;
|
|
1306
1311
|
}
|
|
1307
1312
|
`;
|
|
1308
|
-
var
|
|
1313
|
+
var hr = Object.defineProperty, pr = Object.getOwnPropertyDescriptor, ss = (t, e, i, r) => {
|
|
1309
1314
|
for (var s = r > 1 ? void 0 : r ? pr(e, i) : e, o = t.length - 1, n; o >= 0; o--)
|
|
1310
1315
|
(n = t[o]) && (s = (r ? n(e, i, s) : n(s)) || s);
|
|
1311
|
-
return r && s &&
|
|
1316
|
+
return r && s && hr(e, i, s), s;
|
|
1312
1317
|
};
|
|
1313
|
-
let
|
|
1318
|
+
let oe = class extends f {
|
|
1314
1319
|
constructor() {
|
|
1315
1320
|
super(...arguments), this.mode = "light", this.activeBulletIndex = 0, this.handleClickChunk = (t) => () => {
|
|
1316
1321
|
this.activeBulletIndex !== t && (this.activeBulletIndex = t, this.dispatchEvent(
|
|
@@ -1359,20 +1364,20 @@ let re = class extends f {
|
|
|
1359
1364
|
` : c;
|
|
1360
1365
|
}
|
|
1361
1366
|
};
|
|
1362
|
-
|
|
1367
|
+
oe.styles = [dr];
|
|
1363
1368
|
ss([
|
|
1364
1369
|
a({ type: String, reflect: !0 })
|
|
1365
|
-
],
|
|
1370
|
+
], oe.prototype, "mode", 2);
|
|
1366
1371
|
ss([
|
|
1367
1372
|
a({ type: Number, attribute: "bullets-number" })
|
|
1368
|
-
],
|
|
1373
|
+
], oe.prototype, "bulletsNumber", 2);
|
|
1369
1374
|
ss([
|
|
1370
1375
|
a({ type: Number, attribute: "active-bullet-index", reflect: !0 })
|
|
1371
|
-
],
|
|
1372
|
-
|
|
1376
|
+
], oe.prototype, "activeBulletIndex", 2);
|
|
1377
|
+
oe = ss([
|
|
1373
1378
|
b("ds-bullets")
|
|
1374
|
-
],
|
|
1375
|
-
const
|
|
1379
|
+
], oe);
|
|
1380
|
+
const _t = (t) => class extends t {
|
|
1376
1381
|
constructor() {
|
|
1377
1382
|
super(...arguments), this.handleResize = () => {
|
|
1378
1383
|
this.updateViewportWithDebounce();
|
|
@@ -1380,7 +1385,7 @@ const At = (t) => class extends t {
|
|
|
1380
1385
|
let e = "xs";
|
|
1381
1386
|
const i = ["xxl", "xl", "l", "m", "s"];
|
|
1382
1387
|
for (const r of i)
|
|
1383
|
-
if ((window == null ? void 0 : window.innerWidth) >=
|
|
1388
|
+
if ((window == null ? void 0 : window.innerWidth) >= Lt[r]) {
|
|
1384
1389
|
e = r;
|
|
1385
1390
|
break;
|
|
1386
1391
|
}
|
|
@@ -1420,10 +1425,10 @@ const Re = (t, e, i) => {
|
|
|
1420
1425
|
* Copyright 2021 Google LLC
|
|
1421
1426
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1422
1427
|
*/
|
|
1423
|
-
function
|
|
1428
|
+
function nt(t, e, i) {
|
|
1424
1429
|
return t ? e(t) : i == null ? void 0 : i(t);
|
|
1425
1430
|
}
|
|
1426
|
-
const ur =
|
|
1431
|
+
const ur = h`
|
|
1427
1432
|
:host {
|
|
1428
1433
|
display: contents;
|
|
1429
1434
|
}
|
|
@@ -1443,7 +1448,7 @@ const ur = d`
|
|
|
1443
1448
|
.button.full-width {
|
|
1444
1449
|
width: 100%;
|
|
1445
1450
|
}
|
|
1446
|
-
`, mr =
|
|
1451
|
+
`, mr = h`
|
|
1447
1452
|
.text.container {
|
|
1448
1453
|
display: inline-flex;
|
|
1449
1454
|
}
|
|
@@ -1453,7 +1458,7 @@ const ur = d`
|
|
|
1453
1458
|
text-overflow: ellipsis;
|
|
1454
1459
|
white-space: nowrap;
|
|
1455
1460
|
}
|
|
1456
|
-
`, vr =
|
|
1461
|
+
`, vr = h`
|
|
1457
1462
|
.loading-dots {
|
|
1458
1463
|
display: inline-flex;
|
|
1459
1464
|
align-items: baseline;
|
|
@@ -1535,7 +1540,7 @@ var br = Object.defineProperty, yr = Object.getOwnPropertyDescriptor, P = (t, e,
|
|
|
1535
1540
|
(n = t[o]) && (s = (r ? n(e, i, s) : n(s)) || s);
|
|
1536
1541
|
return r && s && br(e, i, s), s;
|
|
1537
1542
|
};
|
|
1538
|
-
let O = class extends
|
|
1543
|
+
let O = class extends _t(f) {
|
|
1539
1544
|
constructor() {
|
|
1540
1545
|
super(...arguments), this.variant = "primary", this.mode = "light", this.size = "large", this.disabled = !1, this.destructive = !1, this.htmlTagName = "button", this.type = "button", this.iconPosition = "left", this.rounded = !1, this.fullWidth = !1, this.loading = !1;
|
|
1541
1546
|
}
|
|
@@ -1610,12 +1615,12 @@ let O = class extends At(f) {
|
|
|
1610
1615
|
@click=${this.handleClick}
|
|
1611
1616
|
?disabled=${this.disabled}
|
|
1612
1617
|
>
|
|
1613
|
-
${
|
|
1618
|
+
${nt(this.iconPosition === "left", () => l` ${this.iconTemplate} `)}
|
|
1614
1619
|
<span class="container">
|
|
1615
1620
|
<slot></slot>
|
|
1616
1621
|
${this.loadingTemplate}
|
|
1617
1622
|
</span>
|
|
1618
|
-
${
|
|
1623
|
+
${nt(this.iconPosition === "right", () => l` ${this.iconTemplate} `)}
|
|
1619
1624
|
</button>
|
|
1620
1625
|
`;
|
|
1621
1626
|
}
|
|
@@ -1634,12 +1639,12 @@ let O = class extends At(f) {
|
|
|
1634
1639
|
@click=${this.handleClick}
|
|
1635
1640
|
?disabled=${this.disabled}
|
|
1636
1641
|
>
|
|
1637
|
-
${
|
|
1642
|
+
${nt(this.iconPosition === "left", () => l`${this.iconTemplate}`)}
|
|
1638
1643
|
<span class="container">
|
|
1639
1644
|
<slot></slot>
|
|
1640
1645
|
${this.loadingTemplate}
|
|
1641
1646
|
</span>
|
|
1642
|
-
${
|
|
1647
|
+
${nt(this.iconPosition === "right", () => l`${this.iconTemplate}`)}
|
|
1643
1648
|
</a>
|
|
1644
1649
|
`;
|
|
1645
1650
|
}
|
|
@@ -1708,7 +1713,7 @@ P([
|
|
|
1708
1713
|
O = P([
|
|
1709
1714
|
b("ds-button")
|
|
1710
1715
|
], O);
|
|
1711
|
-
const gr =
|
|
1716
|
+
const gr = h`
|
|
1712
1717
|
:host {
|
|
1713
1718
|
display: flex;
|
|
1714
1719
|
width: 100%;
|
|
@@ -1725,7 +1730,7 @@ var fr = Object.defineProperty, xr = Object.getOwnPropertyDescriptor, is = (t, e
|
|
|
1725
1730
|
(n = t[o]) && (s = (r ? n(e, i, s) : n(s)) || s);
|
|
1726
1731
|
return r && s && fr(e, i, s), s;
|
|
1727
1732
|
};
|
|
1728
|
-
let
|
|
1733
|
+
let ne = class extends f {
|
|
1729
1734
|
constructor() {
|
|
1730
1735
|
super(...arguments), this.maxSelectorsShown = 6;
|
|
1731
1736
|
}
|
|
@@ -1741,12 +1746,12 @@ let oe = class extends f {
|
|
|
1741
1746
|
let r = !1;
|
|
1742
1747
|
const s = this.selectedIndex >= 3 && this.selectedIndex < this.selectorsNumber - 3, o = this.selectedIndex < 3, n = this.selectedIndex >= this.selectorsNumber - 3;
|
|
1743
1748
|
e && (s && (i < this.selectedIndex - 3 || i > this.selectedIndex + 3) || o && i >= 5 || n && i < this.selectorsNumber - 5) && (r = e);
|
|
1744
|
-
const
|
|
1749
|
+
const d = {
|
|
1745
1750
|
selector: !0,
|
|
1746
1751
|
selected: i === this.selectedIndex,
|
|
1747
1752
|
hidden: r
|
|
1748
1753
|
};
|
|
1749
|
-
t.push(l` <div class=${p(
|
|
1754
|
+
t.push(l` <div class=${p(d)}></div> `);
|
|
1750
1755
|
}
|
|
1751
1756
|
return t;
|
|
1752
1757
|
}
|
|
@@ -1758,19 +1763,19 @@ let oe = class extends f {
|
|
|
1758
1763
|
` : c;
|
|
1759
1764
|
}
|
|
1760
1765
|
};
|
|
1761
|
-
|
|
1766
|
+
ne.styles = [gr];
|
|
1762
1767
|
is([
|
|
1763
1768
|
a({ type: Number, attribute: "selectors-number" })
|
|
1764
|
-
],
|
|
1769
|
+
], ne.prototype, "selectorsNumber", 2);
|
|
1765
1770
|
is([
|
|
1766
1771
|
a({ type: Number, attribute: "selected-index" })
|
|
1767
|
-
],
|
|
1772
|
+
], ne.prototype, "selectedIndex", 2);
|
|
1768
1773
|
is([
|
|
1769
1774
|
y()
|
|
1770
|
-
],
|
|
1771
|
-
|
|
1775
|
+
], ne.prototype, "maxSelectorsShown", 2);
|
|
1776
|
+
ne = is([
|
|
1772
1777
|
b("ds-carousel-indicator")
|
|
1773
|
-
],
|
|
1778
|
+
], ne);
|
|
1774
1779
|
const rs = (t) => {
|
|
1775
1780
|
const e = class extends t {
|
|
1776
1781
|
constructor(...s) {
|
|
@@ -1779,7 +1784,7 @@ const rs = (t) => {
|
|
|
1779
1784
|
}
|
|
1780
1785
|
};
|
|
1781
1786
|
return e.formAssociated = !0, e;
|
|
1782
|
-
}, $r =
|
|
1787
|
+
}, $r = h`
|
|
1783
1788
|
:host {
|
|
1784
1789
|
display: block;
|
|
1785
1790
|
width: 100%;
|
|
@@ -1960,7 +1965,7 @@ j([
|
|
|
1960
1965
|
N = j([
|
|
1961
1966
|
b("ds-checkbox")
|
|
1962
1967
|
], N);
|
|
1963
|
-
const kr =
|
|
1968
|
+
const kr = h`
|
|
1964
1969
|
:host {
|
|
1965
1970
|
display: inline-block;
|
|
1966
1971
|
}
|
|
@@ -1978,12 +1983,12 @@ const kr = d`
|
|
|
1978
1983
|
pointer-events: visible;
|
|
1979
1984
|
}
|
|
1980
1985
|
`;
|
|
1981
|
-
var Tr = Object.defineProperty, Cr = Object.getOwnPropertyDescriptor,
|
|
1986
|
+
var Tr = Object.defineProperty, Cr = Object.getOwnPropertyDescriptor, Ht = (t, e, i, r) => {
|
|
1982
1987
|
for (var s = r > 1 ? void 0 : r ? Cr(e, i) : e, o = t.length - 1, n; o >= 0; o--)
|
|
1983
1988
|
(n = t[o]) && (s = (r ? n(e, i, s) : n(s)) || s);
|
|
1984
1989
|
return r && s && Tr(e, i, s), s;
|
|
1985
1990
|
};
|
|
1986
|
-
let
|
|
1991
|
+
let bt = class extends f {
|
|
1987
1992
|
constructor() {
|
|
1988
1993
|
super(...arguments), this.mode = "light", this.size = "large", this.selected = !1, this.deselectable = !1, this.slottedText = "";
|
|
1989
1994
|
}
|
|
@@ -2072,28 +2077,28 @@ let vt = class extends f {
|
|
|
2072
2077
|
`;
|
|
2073
2078
|
}
|
|
2074
2079
|
};
|
|
2075
|
-
|
|
2076
|
-
|
|
2080
|
+
bt.styles = [kr];
|
|
2081
|
+
Ht([
|
|
2077
2082
|
a({ type: String })
|
|
2078
|
-
],
|
|
2079
|
-
|
|
2083
|
+
], bt.prototype, "value", 2);
|
|
2084
|
+
Ht([
|
|
2080
2085
|
a({ type: String, reflect: !0 })
|
|
2081
|
-
],
|
|
2082
|
-
|
|
2086
|
+
], bt.prototype, "mode", 2);
|
|
2087
|
+
Ht([
|
|
2083
2088
|
a({ type: String, reflect: !0 })
|
|
2084
|
-
],
|
|
2085
|
-
|
|
2089
|
+
], bt.prototype, "size", 2);
|
|
2090
|
+
Ht([
|
|
2086
2091
|
a({ type: Boolean, converter: m, reflect: !0 })
|
|
2087
|
-
],
|
|
2088
|
-
|
|
2092
|
+
], bt.prototype, "selected", 2);
|
|
2093
|
+
Ht([
|
|
2089
2094
|
a({ type: Boolean, converter: m })
|
|
2090
|
-
],
|
|
2091
|
-
|
|
2095
|
+
], bt.prototype, "deselectable", 2);
|
|
2096
|
+
Ht([
|
|
2092
2097
|
y()
|
|
2093
|
-
],
|
|
2094
|
-
|
|
2098
|
+
], bt.prototype, "slottedText", 2);
|
|
2099
|
+
bt = Ht([
|
|
2095
2100
|
b("ds-chip")
|
|
2096
|
-
],
|
|
2101
|
+
], bt);
|
|
2097
2102
|
const Er = {
|
|
2098
2103
|
fromAttribute(t) {
|
|
2099
2104
|
if (!t) return [];
|
|
@@ -2109,11 +2114,7 @@ const Er = {
|
|
|
2109
2114
|
toAttribute(t) {
|
|
2110
2115
|
return JSON.stringify(t);
|
|
2111
2116
|
}
|
|
2112
|
-
}, Or =
|
|
2113
|
-
:host {
|
|
2114
|
-
display: inline-block;
|
|
2115
|
-
}
|
|
2116
|
-
|
|
2117
|
+
}, Or = h`
|
|
2117
2118
|
.container {
|
|
2118
2119
|
display: inline-flex;
|
|
2119
2120
|
position: relative;
|
|
@@ -2184,7 +2185,7 @@ const Er = {
|
|
|
2184
2185
|
right: 0;
|
|
2185
2186
|
}
|
|
2186
2187
|
`;
|
|
2187
|
-
var zr = Object.defineProperty, Ir = Object.getOwnPropertyDescriptor,
|
|
2188
|
+
var zr = Object.defineProperty, Ir = Object.getOwnPropertyDescriptor, wt = (t, e, i, r) => {
|
|
2188
2189
|
for (var s = r > 1 ? void 0 : r ? Ir(e, i) : e, o = t.length - 1, n; o >= 0; o--)
|
|
2189
2190
|
(n = t[o]) && (s = (r ? n(e, i, s) : n(s)) || s);
|
|
2190
2191
|
return r && s && zr(e, i, s), s;
|
|
@@ -2284,31 +2285,31 @@ let Z = class extends f {
|
|
|
2284
2285
|
}
|
|
2285
2286
|
};
|
|
2286
2287
|
Z.styles = [Or];
|
|
2287
|
-
|
|
2288
|
+
wt([
|
|
2288
2289
|
a({ type: Array, attribute: "selected-chips", converter: Er, reflect: !0 })
|
|
2289
2290
|
], Z.prototype, "selectedChips", 2);
|
|
2290
|
-
|
|
2291
|
+
wt([
|
|
2291
2292
|
a({ type: Boolean, attribute: "multi-choice", converter: m })
|
|
2292
2293
|
], Z.prototype, "multiChoice", 2);
|
|
2293
|
-
|
|
2294
|
+
wt([
|
|
2294
2295
|
a({ type: String })
|
|
2295
2296
|
], Z.prototype, "size", 2);
|
|
2296
|
-
|
|
2297
|
+
wt([
|
|
2297
2298
|
a({ type: String, reflect: !0 })
|
|
2298
2299
|
], Z.prototype, "mode", 2);
|
|
2299
|
-
|
|
2300
|
+
wt([
|
|
2300
2301
|
y()
|
|
2301
2302
|
], Z.prototype, "hasScrollLeft", 2);
|
|
2302
|
-
|
|
2303
|
+
wt([
|
|
2303
2304
|
y()
|
|
2304
2305
|
], Z.prototype, "hasScrollRight", 2);
|
|
2305
|
-
|
|
2306
|
-
|
|
2306
|
+
wt([
|
|
2307
|
+
et({ slot: "" })
|
|
2307
2308
|
], Z.prototype, "chips", 2);
|
|
2308
|
-
|
|
2309
|
-
|
|
2309
|
+
wt([
|
|
2310
|
+
ct(".chips-container")
|
|
2310
2311
|
], Z.prototype, "chipsContainer", 2);
|
|
2311
|
-
Z =
|
|
2312
|
+
Z = wt([
|
|
2312
2313
|
b("ds-chips")
|
|
2313
2314
|
], Z);
|
|
2314
2315
|
function Si({
|
|
@@ -2319,7 +2320,7 @@ function Si({
|
|
|
2319
2320
|
currency: s,
|
|
2320
2321
|
localeMatcher: o = "lookup",
|
|
2321
2322
|
minimumIntegerDigits: n = 1,
|
|
2322
|
-
minimumFractionDigits:
|
|
2323
|
+
minimumFractionDigits: d = 0,
|
|
2323
2324
|
maximumFractionDigits: u = 20,
|
|
2324
2325
|
thousandSeparator: g,
|
|
2325
2326
|
fractionSeparator: $,
|
|
@@ -2332,28 +2333,28 @@ function Si({
|
|
|
2332
2333
|
...s && { currency: s },
|
|
2333
2334
|
localeMatcher: o,
|
|
2334
2335
|
minimumIntegerDigits: n,
|
|
2335
|
-
minimumFractionDigits:
|
|
2336
|
+
minimumFractionDigits: d,
|
|
2336
2337
|
maximumFractionDigits: u,
|
|
2337
2338
|
useGrouping: v
|
|
2338
2339
|
}).formatToParts(t ?? 0);
|
|
2339
|
-
return z.forEach((
|
|
2340
|
-
switch (
|
|
2340
|
+
return z.forEach((pt, ke) => {
|
|
2341
|
+
switch (pt.type) {
|
|
2341
2342
|
case "unit":
|
|
2342
2343
|
case "currency":
|
|
2343
2344
|
case "percentSign":
|
|
2344
|
-
S =
|
|
2345
|
+
S = pt.value, T = ke === 0 || (z[0].type === "minusSign" || z[0].type === "plusSign") && ke === 1 ? "left" : "right";
|
|
2345
2346
|
break;
|
|
2346
2347
|
case "group":
|
|
2347
|
-
x += g ??
|
|
2348
|
+
x += g ?? pt.value;
|
|
2348
2349
|
break;
|
|
2349
2350
|
case "decimal":
|
|
2350
|
-
x += $ ??
|
|
2351
|
+
x += $ ?? pt.value;
|
|
2351
2352
|
break;
|
|
2352
2353
|
case "integer":
|
|
2353
2354
|
case "fraction":
|
|
2354
2355
|
case "plusSign":
|
|
2355
2356
|
case "minusSign":
|
|
2356
|
-
x +=
|
|
2357
|
+
x += pt.value;
|
|
2357
2358
|
break;
|
|
2358
2359
|
}
|
|
2359
2360
|
}), {
|
|
@@ -2362,7 +2363,7 @@ function Si({
|
|
|
2362
2363
|
...T && { unitSymbolPosition: T }
|
|
2363
2364
|
};
|
|
2364
2365
|
}
|
|
2365
|
-
const Ar =
|
|
2366
|
+
const Ar = h`
|
|
2366
2367
|
:host {
|
|
2367
2368
|
display: inline;
|
|
2368
2369
|
}
|
|
@@ -2499,7 +2500,7 @@ A([
|
|
|
2499
2500
|
E = A([
|
|
2500
2501
|
b("ds-currency")
|
|
2501
2502
|
], E);
|
|
2502
|
-
const Nr =
|
|
2503
|
+
const Nr = h`
|
|
2503
2504
|
:host {
|
|
2504
2505
|
display: inline-block;
|
|
2505
2506
|
}
|
|
@@ -2539,7 +2540,7 @@ gs.styles = [Nr];
|
|
|
2539
2540
|
gs = Br([
|
|
2540
2541
|
b("ds-dialog-body")
|
|
2541
2542
|
], gs);
|
|
2542
|
-
const Lr =
|
|
2543
|
+
const Lr = h`
|
|
2543
2544
|
:host {
|
|
2544
2545
|
display: flex;
|
|
2545
2546
|
}
|
|
@@ -2553,7 +2554,7 @@ var Mr = Object.defineProperty, Dr = Object.getOwnPropertyDescriptor, ki = (t, e
|
|
|
2553
2554
|
(n = t[o]) && (s = (r ? n(e, i, s) : n(s)) || s);
|
|
2554
2555
|
return r && s && Mr(e, i, s), s;
|
|
2555
2556
|
};
|
|
2556
|
-
let
|
|
2557
|
+
let Ze = class extends f {
|
|
2557
2558
|
constructor() {
|
|
2558
2559
|
super(...arguments), this.withDivider = !0;
|
|
2559
2560
|
}
|
|
@@ -2572,18 +2573,18 @@ let Je = class extends f {
|
|
|
2572
2573
|
`;
|
|
2573
2574
|
}
|
|
2574
2575
|
};
|
|
2575
|
-
|
|
2576
|
+
Ze.styles = [Lr];
|
|
2576
2577
|
ki([
|
|
2577
2578
|
a({
|
|
2578
2579
|
type: Boolean,
|
|
2579
2580
|
attribute: "with-divider",
|
|
2580
2581
|
converter: m
|
|
2581
2582
|
})
|
|
2582
|
-
],
|
|
2583
|
-
|
|
2583
|
+
], Ze.prototype, "withDivider", 2);
|
|
2584
|
+
Ze = ki([
|
|
2584
2585
|
b("ds-dialog-footer")
|
|
2585
|
-
],
|
|
2586
|
-
const jr =
|
|
2586
|
+
], Ze);
|
|
2587
|
+
const jr = h`
|
|
2587
2588
|
:host {
|
|
2588
2589
|
display: block;
|
|
2589
2590
|
}
|
|
@@ -2593,7 +2594,7 @@ var Fr = Object.defineProperty, Rr = Object.getOwnPropertyDescriptor, os = (t, e
|
|
|
2593
2594
|
(n = t[o]) && (s = (r ? n(e, i, s) : n(s)) || s);
|
|
2594
2595
|
return r && s && Fr(e, i, s), s;
|
|
2595
2596
|
};
|
|
2596
|
-
let
|
|
2597
|
+
let ae = class extends f {
|
|
2597
2598
|
constructor() {
|
|
2598
2599
|
super(...arguments), this.title = "primary", this.iconSize = 32;
|
|
2599
2600
|
}
|
|
@@ -2631,27 +2632,27 @@ let ne = class extends f {
|
|
|
2631
2632
|
`;
|
|
2632
2633
|
}
|
|
2633
2634
|
};
|
|
2634
|
-
|
|
2635
|
+
ae.styles = [jr];
|
|
2635
2636
|
os([
|
|
2636
2637
|
a({ type: String })
|
|
2637
|
-
],
|
|
2638
|
+
], ae.prototype, "title", 2);
|
|
2638
2639
|
os([
|
|
2639
2640
|
a({ type: String, attribute: "icon-name" })
|
|
2640
|
-
],
|
|
2641
|
+
], ae.prototype, "iconName", 2);
|
|
2641
2642
|
os([
|
|
2642
2643
|
a({ type: Number, attribute: "icon-size" })
|
|
2643
|
-
],
|
|
2644
|
-
|
|
2644
|
+
], ae.prototype, "iconSize", 2);
|
|
2645
|
+
ae = os([
|
|
2645
2646
|
b("ds-dialog-header")
|
|
2646
|
-
],
|
|
2647
|
-
const
|
|
2648
|
-
xs:
|
|
2649
|
-
s:
|
|
2650
|
-
m:
|
|
2651
|
-
l:
|
|
2652
|
-
xl:
|
|
2653
|
-
xxl:
|
|
2654
|
-
}, Ur =
|
|
2647
|
+
], ae);
|
|
2648
|
+
const V = {
|
|
2649
|
+
xs: h`@media(min-width: ${Lt.xs}px)`,
|
|
2650
|
+
s: h`@media(min-width: ${Lt.s}px)`,
|
|
2651
|
+
m: h`@media(min-width: ${Lt.m}px)`,
|
|
2652
|
+
l: h`@media(min-width: ${Lt.l}px)`,
|
|
2653
|
+
xl: h`@media(min-width: ${Lt.xl}px)`,
|
|
2654
|
+
xxl: h`@media(min-width: ${Lt.xxl}px)`
|
|
2655
|
+
}, Ur = h`
|
|
2655
2656
|
:host {
|
|
2656
2657
|
transition: display 0.3s cubic-bezier(0, 0, 0.2, 1) allow-discrete;
|
|
2657
2658
|
}
|
|
@@ -2709,7 +2710,7 @@ const U = {
|
|
|
2709
2710
|
background-color: transparent;
|
|
2710
2711
|
}
|
|
2711
2712
|
|
|
2712
|
-
${
|
|
2713
|
+
${V.xs} {
|
|
2713
2714
|
.ds-scroll::-webkit-scrollbar,
|
|
2714
2715
|
.ds-scroll-global *::-webkit-scrollbar {
|
|
2715
2716
|
height: 4px;
|
|
@@ -2717,7 +2718,7 @@ const U = {
|
|
|
2717
2718
|
}
|
|
2718
2719
|
}
|
|
2719
2720
|
|
|
2720
|
-
${
|
|
2721
|
+
${V.m} {
|
|
2721
2722
|
.ds-scroll::-webkit-scrollbar,
|
|
2722
2723
|
.ds-scroll-global *::-webkit-scrollbar {
|
|
2723
2724
|
height: 8px;
|
|
@@ -2725,12 +2726,12 @@ const U = {
|
|
|
2725
2726
|
}
|
|
2726
2727
|
}
|
|
2727
2728
|
`;
|
|
2728
|
-
var Vr = Object.defineProperty, Hr = Object.getOwnPropertyDescriptor,
|
|
2729
|
+
var Vr = Object.defineProperty, Hr = Object.getOwnPropertyDescriptor, ye = (t, e, i, r) => {
|
|
2729
2730
|
for (var s = r > 1 ? void 0 : r ? Hr(e, i) : e, o = t.length - 1, n; o >= 0; o--)
|
|
2730
2731
|
(n = t[o]) && (s = (r ? n(e, i, s) : n(s)) || s);
|
|
2731
2732
|
return r && s && Vr(e, i, s), s;
|
|
2732
2733
|
};
|
|
2733
|
-
let
|
|
2734
|
+
let Et = class extends f {
|
|
2734
2735
|
constructor() {
|
|
2735
2736
|
super(...arguments), this.open = !1, this.size = "medium", this.hasBeenOpened = !1, this.hasScroll = !1, this.debouncedCheckScroll = Ss({ func: () => this.checkScroll() }), this.handleKeyDown = (t) => {
|
|
2736
2737
|
this.open && t.key === "Escape" && this.handleClose();
|
|
@@ -2798,26 +2799,26 @@ let Ct = class extends f {
|
|
|
2798
2799
|
`;
|
|
2799
2800
|
}
|
|
2800
2801
|
};
|
|
2801
|
-
|
|
2802
|
-
|
|
2802
|
+
Et.styles = [Ur];
|
|
2803
|
+
ye([
|
|
2803
2804
|
a({ type: Boolean, converter: m })
|
|
2804
|
-
],
|
|
2805
|
-
|
|
2805
|
+
], Et.prototype, "open", 2);
|
|
2806
|
+
ye([
|
|
2806
2807
|
a({ type: String })
|
|
2807
|
-
],
|
|
2808
|
-
|
|
2808
|
+
], Et.prototype, "size", 2);
|
|
2809
|
+
ye([
|
|
2809
2810
|
y()
|
|
2810
|
-
],
|
|
2811
|
-
|
|
2811
|
+
], Et.prototype, "hasBeenOpened", 2);
|
|
2812
|
+
ye([
|
|
2812
2813
|
y()
|
|
2813
|
-
],
|
|
2814
|
-
|
|
2815
|
-
|
|
2816
|
-
],
|
|
2817
|
-
|
|
2814
|
+
], Et.prototype, "hasScroll", 2);
|
|
2815
|
+
ye([
|
|
2816
|
+
ct(".content")
|
|
2817
|
+
], Et.prototype, "content", 2);
|
|
2818
|
+
Et = ye([
|
|
2818
2819
|
b("ds-dialog")
|
|
2819
|
-
],
|
|
2820
|
-
const Wr =
|
|
2820
|
+
], Et);
|
|
2821
|
+
const Wr = h`
|
|
2821
2822
|
.divider {
|
|
2822
2823
|
border: none;
|
|
2823
2824
|
margin: 0;
|
|
@@ -2828,7 +2829,7 @@ var qr = Object.defineProperty, Kr = Object.getOwnPropertyDescriptor, ns = (t, e
|
|
|
2828
2829
|
(n = t[o]) && (s = (r ? n(e, i, s) : n(s)) || s);
|
|
2829
2830
|
return r && s && qr(e, i, s), s;
|
|
2830
2831
|
};
|
|
2831
|
-
let
|
|
2832
|
+
let le = class extends f {
|
|
2832
2833
|
constructor() {
|
|
2833
2834
|
super(...arguments), this.orientation = "horizontal", this.variant = "primary", this.mode = "light";
|
|
2834
2835
|
}
|
|
@@ -2856,20 +2857,20 @@ let ae = class extends f {
|
|
|
2856
2857
|
`;
|
|
2857
2858
|
}
|
|
2858
2859
|
};
|
|
2859
|
-
|
|
2860
|
+
le.styles = [Wr];
|
|
2860
2861
|
ns([
|
|
2861
2862
|
a({ type: String })
|
|
2862
|
-
],
|
|
2863
|
+
], le.prototype, "orientation", 2);
|
|
2863
2864
|
ns([
|
|
2864
2865
|
a({ type: String })
|
|
2865
|
-
],
|
|
2866
|
+
], le.prototype, "variant", 2);
|
|
2866
2867
|
ns([
|
|
2867
2868
|
a({ type: String, reflect: !0 })
|
|
2868
|
-
],
|
|
2869
|
-
|
|
2869
|
+
], le.prototype, "mode", 2);
|
|
2870
|
+
le = ns([
|
|
2870
2871
|
b("ds-divider")
|
|
2871
|
-
],
|
|
2872
|
-
const
|
|
2872
|
+
], le);
|
|
2873
|
+
const Yr = h`
|
|
2873
2874
|
:host {
|
|
2874
2875
|
display: inline-flex;
|
|
2875
2876
|
}
|
|
@@ -2884,12 +2885,12 @@ const Gr = d`
|
|
|
2884
2885
|
background: transparent;
|
|
2885
2886
|
}
|
|
2886
2887
|
`;
|
|
2887
|
-
var
|
|
2888
|
+
var Gr = Object.defineProperty, Xr = Object.getOwnPropertyDescriptor, Wt = (t, e, i, r) => {
|
|
2888
2889
|
for (var s = r > 1 ? void 0 : r ? Xr(e, i) : e, o = t.length - 1, n; o >= 0; o--)
|
|
2889
2890
|
(n = t[o]) && (s = (r ? n(e, i, s) : n(s)) || s);
|
|
2890
|
-
return r && s &&
|
|
2891
|
+
return r && s && Gr(e, i, s), s;
|
|
2891
2892
|
};
|
|
2892
|
-
let
|
|
2893
|
+
let yt = class extends f {
|
|
2893
2894
|
constructor() {
|
|
2894
2895
|
super(...arguments), this.htmlTagName = "a", this.mode = "light", this.size = "large";
|
|
2895
2896
|
}
|
|
@@ -2942,29 +2943,29 @@ let bt = class extends f {
|
|
|
2942
2943
|
`;
|
|
2943
2944
|
}
|
|
2944
2945
|
};
|
|
2945
|
-
|
|
2946
|
-
|
|
2946
|
+
yt.styles = [Yr];
|
|
2947
|
+
Wt([
|
|
2947
2948
|
a({ type: String, attribute: "html-tag-name" })
|
|
2948
|
-
],
|
|
2949
|
-
|
|
2949
|
+
], yt.prototype, "htmlTagName", 2);
|
|
2950
|
+
Wt([
|
|
2950
2951
|
a({ type: String, reflect: !0 })
|
|
2951
|
-
],
|
|
2952
|
-
|
|
2952
|
+
], yt.prototype, "href", 2);
|
|
2953
|
+
Wt([
|
|
2953
2954
|
a({ type: String, reflect: !0 })
|
|
2954
|
-
],
|
|
2955
|
-
|
|
2955
|
+
], yt.prototype, "rel", 2);
|
|
2956
|
+
Wt([
|
|
2956
2957
|
a({ type: String, reflect: !0 })
|
|
2957
|
-
],
|
|
2958
|
-
|
|
2958
|
+
], yt.prototype, "target", 2);
|
|
2959
|
+
Wt([
|
|
2959
2960
|
a({ type: String, reflect: !0 })
|
|
2960
|
-
],
|
|
2961
|
-
|
|
2961
|
+
], yt.prototype, "mode", 2);
|
|
2962
|
+
Wt([
|
|
2962
2963
|
a({ type: String })
|
|
2963
|
-
],
|
|
2964
|
-
|
|
2964
|
+
], yt.prototype, "size", 2);
|
|
2965
|
+
yt = Wt([
|
|
2965
2966
|
b("ds-hyperlink")
|
|
2966
|
-
],
|
|
2967
|
-
const
|
|
2967
|
+
], yt);
|
|
2968
|
+
const Jr = h`
|
|
2968
2969
|
:host {
|
|
2969
2970
|
display: inline-flex;
|
|
2970
2971
|
}
|
|
@@ -2981,12 +2982,12 @@ const Zr = d`
|
|
|
2981
2982
|
padding: 0;
|
|
2982
2983
|
}
|
|
2983
2984
|
`;
|
|
2984
|
-
var
|
|
2985
|
+
var Zr = Object.defineProperty, Qr = Object.getOwnPropertyDescriptor, st = (t, e, i, r) => {
|
|
2985
2986
|
for (var s = r > 1 ? void 0 : r ? Qr(e, i) : e, o = t.length - 1, n; o >= 0; o--)
|
|
2986
2987
|
(n = t[o]) && (s = (r ? n(e, i, s) : n(s)) || s);
|
|
2987
|
-
return r && s &&
|
|
2988
|
+
return r && s && Zr(e, i, s), s;
|
|
2988
2989
|
};
|
|
2989
|
-
let
|
|
2990
|
+
let H = class extends _t(f) {
|
|
2990
2991
|
constructor() {
|
|
2991
2992
|
super(...arguments), this.variant = "primary", this.mode = "light", this.size = "large", this.disabled = !1, this.htmlTagName = "button";
|
|
2992
2993
|
}
|
|
@@ -3069,50 +3070,50 @@ let V = class extends At(f) {
|
|
|
3069
3070
|
`;
|
|
3070
3071
|
}
|
|
3071
3072
|
};
|
|
3072
|
-
|
|
3073
|
-
|
|
3073
|
+
H.styles = [Jr];
|
|
3074
|
+
st([
|
|
3074
3075
|
a({ type: String })
|
|
3075
|
-
],
|
|
3076
|
-
|
|
3076
|
+
], H.prototype, "variant", 2);
|
|
3077
|
+
st([
|
|
3077
3078
|
a({ type: String, reflect: !0 })
|
|
3078
|
-
],
|
|
3079
|
-
|
|
3079
|
+
], H.prototype, "mode", 2);
|
|
3080
|
+
st([
|
|
3080
3081
|
a({ type: String, converter: Fe })
|
|
3081
|
-
],
|
|
3082
|
-
|
|
3082
|
+
], H.prototype, "size", 2);
|
|
3083
|
+
st([
|
|
3083
3084
|
a({ type: Boolean, converter: m })
|
|
3084
|
-
],
|
|
3085
|
-
|
|
3085
|
+
], H.prototype, "disabled", 2);
|
|
3086
|
+
st([
|
|
3086
3087
|
a({ type: String, attribute: "icon-name" })
|
|
3087
|
-
],
|
|
3088
|
-
|
|
3088
|
+
], H.prototype, "iconName", 2);
|
|
3089
|
+
st([
|
|
3089
3090
|
a({ type: String, attribute: "html-tag-name" })
|
|
3090
|
-
],
|
|
3091
|
-
|
|
3091
|
+
], H.prototype, "htmlTagName", 2);
|
|
3092
|
+
st([
|
|
3092
3093
|
a({ type: String, attribute: "data-aria-label" })
|
|
3093
|
-
],
|
|
3094
|
-
|
|
3094
|
+
], H.prototype, "dataAriaLabel", 2);
|
|
3095
|
+
st([
|
|
3095
3096
|
a({ type: String, reflect: !0 })
|
|
3096
|
-
],
|
|
3097
|
-
|
|
3097
|
+
], H.prototype, "href", 2);
|
|
3098
|
+
st([
|
|
3098
3099
|
a({ type: String, reflect: !0 })
|
|
3099
|
-
],
|
|
3100
|
-
|
|
3100
|
+
], H.prototype, "rel", 2);
|
|
3101
|
+
st([
|
|
3101
3102
|
a({ type: String, reflect: !0 })
|
|
3102
|
-
],
|
|
3103
|
-
|
|
3103
|
+
], H.prototype, "target", 2);
|
|
3104
|
+
H = st([
|
|
3104
3105
|
b("ds-icon-button")
|
|
3105
|
-
],
|
|
3106
|
-
class
|
|
3106
|
+
], H);
|
|
3107
|
+
class Qt {
|
|
3107
3108
|
constructor() {
|
|
3108
3109
|
this.icons = {}, this.handleChangeTheme = (e) => {
|
|
3109
3110
|
this.theme = e;
|
|
3110
3111
|
const i = Object.keys(this.icons);
|
|
3111
3112
|
this.icons = {}, i.forEach((r) => this.fetchIcon(r));
|
|
3112
|
-
}, this.fetchIcon = async (e, i = {}) => (!this.theme && window.DS_THEME && (this.theme = window.DS_THEME), await this.getCachedIcon(e) || (this.icons[e] = this.loadIcon(e, i), this.icons[e])),
|
|
3113
|
+
}, this.fetchIcon = async (e, i = {}) => (!this.theme && window.DS_THEME && (this.theme = window.DS_THEME), await this.getCachedIcon(e) || (this.icons[e] = this.loadIcon(e, i), this.icons[e])), se.subscribe("theme", this.handleChangeTheme);
|
|
3113
3114
|
}
|
|
3114
3115
|
static getInstance() {
|
|
3115
|
-
return
|
|
3116
|
+
return Qt.instance || (Qt.instance = new Qt()), Qt.instance;
|
|
3116
3117
|
}
|
|
3117
3118
|
getCachedIcon(e) {
|
|
3118
3119
|
return this.icons[e];
|
|
@@ -3124,22 +3125,22 @@ class Jt {
|
|
|
3124
3125
|
}).then((s) => s.text()).catch((s) => ((s == null ? void 0 : s.name) !== "AbortError" && console.error(`Failed to fetch icon "${e}":`, s), "")) : Promise.resolve('<svg class="ds-icon"></svg>');
|
|
3125
3126
|
}
|
|
3126
3127
|
}
|
|
3127
|
-
const ni =
|
|
3128
|
+
const ni = Qt.getInstance();
|
|
3128
3129
|
var to = Object.defineProperty, eo = Object.getOwnPropertyDescriptor, Ti = (t) => {
|
|
3129
3130
|
throw TypeError(t);
|
|
3130
|
-
},
|
|
3131
|
+
}, qt = (t, e, i, r) => {
|
|
3131
3132
|
for (var s = r > 1 ? void 0 : r ? eo(e, i) : e, o = t.length - 1, n; o >= 0; o--)
|
|
3132
3133
|
(n = t[o]) && (s = (r ? n(e, i, s) : n(s)) || s);
|
|
3133
3134
|
return r && s && to(e, i, s), s;
|
|
3134
|
-
}, Ci = (t, e, i) => e.has(t) || Ti("Cannot " + i), ai = (t, e, i) => (Ci(t, e, "read from private field"), e.get(t)), so = (t, e, i) => e.has(t) ? Ti("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, i), io = (t, e, i, r) => (Ci(t, e, "write to private field"), e.set(t, i), i),
|
|
3135
|
-
let
|
|
3135
|
+
}, Ci = (t, e, i) => e.has(t) || Ti("Cannot " + i), ai = (t, e, i) => (Ci(t, e, "read from private field"), e.get(t)), so = (t, e, i) => e.has(t) ? Ti("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, i), io = (t, e, i, r) => (Ci(t, e, "write to private field"), e.set(t, i), i), Oe;
|
|
3136
|
+
let gt = class extends f {
|
|
3136
3137
|
constructor() {
|
|
3137
|
-
super(), this.iconHtml = "", so(this,
|
|
3138
|
+
super(), this.iconHtml = "", so(this, Oe), this.getIcon = async () => {
|
|
3138
3139
|
var t, e;
|
|
3139
|
-
(t = ai(this,
|
|
3140
|
-
const i = ai(this,
|
|
3140
|
+
(t = ai(this, Oe)) == null || t.abort(), io(this, Oe, new AbortController());
|
|
3141
|
+
const i = ai(this, Oe).signal;
|
|
3141
3142
|
this.iconHtml = await ((e = ni.fetchIcon) == null ? void 0 : e.call(ni, this.iconName, { signal: i }));
|
|
3142
|
-
},
|
|
3143
|
+
}, se.subscribe("theme", this.getIcon);
|
|
3143
3144
|
}
|
|
3144
3145
|
async updated(t) {
|
|
3145
3146
|
super.updated(t), (t.has("iconName") || !this.iconHtml) && await this.getIcon();
|
|
@@ -3182,44 +3183,44 @@ let yt = class extends f {
|
|
|
3182
3183
|
`;
|
|
3183
3184
|
}
|
|
3184
3185
|
};
|
|
3185
|
-
|
|
3186
|
-
|
|
3186
|
+
Oe = /* @__PURE__ */ new WeakMap();
|
|
3187
|
+
gt.styles = h`
|
|
3187
3188
|
:host {
|
|
3188
3189
|
line-height: 0;
|
|
3189
3190
|
display: inline-block;
|
|
3190
3191
|
}
|
|
3191
3192
|
`;
|
|
3192
|
-
|
|
3193
|
+
qt([
|
|
3193
3194
|
a({ type: String, attribute: "icon-name" })
|
|
3194
|
-
],
|
|
3195
|
-
|
|
3195
|
+
], gt.prototype, "iconName", 2);
|
|
3196
|
+
qt([
|
|
3196
3197
|
a({ type: String, attribute: "color" })
|
|
3197
|
-
],
|
|
3198
|
-
|
|
3198
|
+
], gt.prototype, "color", 2);
|
|
3199
|
+
qt([
|
|
3199
3200
|
a({ type: Number })
|
|
3200
|
-
],
|
|
3201
|
-
|
|
3201
|
+
], gt.prototype, "width", 2);
|
|
3202
|
+
qt([
|
|
3202
3203
|
a({ type: Number })
|
|
3203
|
-
],
|
|
3204
|
-
|
|
3204
|
+
], gt.prototype, "height", 2);
|
|
3205
|
+
qt([
|
|
3205
3206
|
a({ type: Number, attribute: "size" })
|
|
3206
|
-
],
|
|
3207
|
-
|
|
3207
|
+
], gt.prototype, "size", 2);
|
|
3208
|
+
qt([
|
|
3208
3209
|
y()
|
|
3209
|
-
],
|
|
3210
|
-
|
|
3210
|
+
], gt.prototype, "iconHtml", 2);
|
|
3211
|
+
gt = qt([
|
|
3211
3212
|
b("ds-icon")
|
|
3212
|
-
],
|
|
3213
|
+
], gt);
|
|
3213
3214
|
var ro = Object.defineProperty, Ls = (t, e, i, r) => {
|
|
3214
3215
|
for (var s = void 0, o = t.length - 1, n; o >= 0; o--)
|
|
3215
3216
|
(n = t[o]) && (s = n(e, i, s) || s);
|
|
3216
3217
|
return s && ro(e, i, s), s;
|
|
3217
3218
|
};
|
|
3218
|
-
class Ue extends
|
|
3219
|
+
class Ue extends ut {
|
|
3219
3220
|
constructor() {
|
|
3220
3221
|
super(), this.handleChangeTheme = (e) => {
|
|
3221
3222
|
this.pubSubTheme = e;
|
|
3222
|
-
}, this.pubSubTheme =
|
|
3223
|
+
}, this.pubSubTheme = se.subscribe("theme", this.handleChangeTheme);
|
|
3223
3224
|
}
|
|
3224
3225
|
connectedCallback() {
|
|
3225
3226
|
super.connectedCallback(), this.applyTheme();
|
|
@@ -3245,7 +3246,7 @@ Ls([
|
|
|
3245
3246
|
Ls([
|
|
3246
3247
|
y()
|
|
3247
3248
|
], Ue.prototype, "theme");
|
|
3248
|
-
const oo =
|
|
3249
|
+
const oo = h`
|
|
3249
3250
|
:host {
|
|
3250
3251
|
display: block;
|
|
3251
3252
|
width: 100%;
|
|
@@ -3268,7 +3269,7 @@ const oo = d`
|
|
|
3268
3269
|
font-size 0.2s;
|
|
3269
3270
|
white-space: nowrap;
|
|
3270
3271
|
}
|
|
3271
|
-
`, no =
|
|
3272
|
+
`, no = h`
|
|
3272
3273
|
.container {
|
|
3273
3274
|
position: relative;
|
|
3274
3275
|
}
|
|
@@ -3299,7 +3300,7 @@ const oo = d`
|
|
|
3299
3300
|
.input-field:focus {
|
|
3300
3301
|
outline: none;
|
|
3301
3302
|
}
|
|
3302
|
-
`, ao =
|
|
3303
|
+
`, ao = h`
|
|
3303
3304
|
.container {
|
|
3304
3305
|
padding: 16px 0 0 0;
|
|
3305
3306
|
}
|
|
@@ -3416,7 +3417,7 @@ const oo = d`
|
|
|
3416
3417
|
--ds-icon-color: var(--ds-color-dark-grey);
|
|
3417
3418
|
}
|
|
3418
3419
|
`, lo = [ao];
|
|
3419
|
-
var co = Object.defineProperty,
|
|
3420
|
+
var co = Object.defineProperty, it = (t, e, i, r) => {
|
|
3420
3421
|
for (var s = void 0, o = t.length - 1, n; o >= 0; o--)
|
|
3421
3422
|
(n = t[o]) && (s = n(e, i, s) || s);
|
|
3422
3423
|
return s && co(e, i, s), s;
|
|
@@ -3478,46 +3479,46 @@ const fs = class extends rs(Ue) {
|
|
|
3478
3479
|
fs.styles = [oo, no], fs.themesStyles = {
|
|
3479
3480
|
cupra: lo
|
|
3480
3481
|
};
|
|
3481
|
-
let
|
|
3482
|
-
|
|
3482
|
+
let X = fs;
|
|
3483
|
+
it([
|
|
3483
3484
|
a({ type: String, reflect: !0, attribute: "initial-value" })
|
|
3484
|
-
],
|
|
3485
|
-
|
|
3485
|
+
], X.prototype, "initialValue");
|
|
3486
|
+
it([
|
|
3486
3487
|
a({ type: String })
|
|
3487
|
-
],
|
|
3488
|
-
|
|
3488
|
+
], X.prototype, "label");
|
|
3489
|
+
it([
|
|
3489
3490
|
a({ type: String, attribute: "helper-text" })
|
|
3490
|
-
],
|
|
3491
|
-
|
|
3491
|
+
], X.prototype, "helperText");
|
|
3492
|
+
it([
|
|
3492
3493
|
a({ type: String, attribute: "error-text" })
|
|
3493
|
-
],
|
|
3494
|
-
|
|
3494
|
+
], X.prototype, "errorText");
|
|
3495
|
+
it([
|
|
3495
3496
|
a({ type: Boolean, converter: m })
|
|
3496
|
-
],
|
|
3497
|
-
|
|
3497
|
+
], X.prototype, "disabled");
|
|
3498
|
+
it([
|
|
3498
3499
|
a({ type: Boolean, converter: m })
|
|
3499
|
-
],
|
|
3500
|
-
|
|
3500
|
+
], X.prototype, "success");
|
|
3501
|
+
it([
|
|
3501
3502
|
a({ type: String, reflect: !0 })
|
|
3502
|
-
],
|
|
3503
|
-
|
|
3503
|
+
], X.prototype, "mode");
|
|
3504
|
+
it([
|
|
3504
3505
|
a({ type: String })
|
|
3505
|
-
],
|
|
3506
|
-
|
|
3506
|
+
], X.prototype, "size");
|
|
3507
|
+
it([
|
|
3507
3508
|
y()
|
|
3508
|
-
],
|
|
3509
|
-
|
|
3509
|
+
], X.prototype, "_value");
|
|
3510
|
+
it([
|
|
3510
3511
|
y()
|
|
3511
|
-
],
|
|
3512
|
-
|
|
3513
|
-
|
|
3514
|
-
],
|
|
3515
|
-
var ho = Object.defineProperty, po = Object.getOwnPropertyDescriptor,
|
|
3512
|
+
], X.prototype, "focused");
|
|
3513
|
+
it([
|
|
3514
|
+
ct(".input-field")
|
|
3515
|
+
], X.prototype, "inputField");
|
|
3516
|
+
var ho = Object.defineProperty, po = Object.getOwnPropertyDescriptor, St = (t, e, i, r) => {
|
|
3516
3517
|
for (var s = r > 1 ? void 0 : r ? po(e, i) : e, o = t.length - 1, n; o >= 0; o--)
|
|
3517
3518
|
(n = t[o]) && (s = (r ? n(e, i, s) : n(s)) || s);
|
|
3518
3519
|
return r && s && ho(e, i, s), s;
|
|
3519
3520
|
};
|
|
3520
|
-
let
|
|
3521
|
+
let at = class extends X {
|
|
3521
3522
|
constructor() {
|
|
3522
3523
|
super(...arguments), this.name = "", this.placeholder = "", this.type = "text", this.min = 0, this.max = 100, this.step = 1, this._hasPicker = !1, this.handleClickIcon = () => {
|
|
3523
3524
|
var t, e;
|
|
@@ -3612,34 +3613,34 @@ let nt = class extends Y {
|
|
|
3612
3613
|
return c;
|
|
3613
3614
|
}
|
|
3614
3615
|
};
|
|
3615
|
-
|
|
3616
|
+
St([
|
|
3616
3617
|
a({ type: String })
|
|
3617
|
-
],
|
|
3618
|
-
|
|
3618
|
+
], at.prototype, "name", 2);
|
|
3619
|
+
St([
|
|
3619
3620
|
a({ type: String })
|
|
3620
|
-
],
|
|
3621
|
-
|
|
3621
|
+
], at.prototype, "placeholder", 2);
|
|
3622
|
+
St([
|
|
3622
3623
|
a({ type: String, attribute: "max-length" })
|
|
3623
|
-
],
|
|
3624
|
-
|
|
3624
|
+
], at.prototype, "maxLength", 2);
|
|
3625
|
+
St([
|
|
3625
3626
|
a({ type: String })
|
|
3626
|
-
],
|
|
3627
|
-
|
|
3627
|
+
], at.prototype, "type", 2);
|
|
3628
|
+
St([
|
|
3628
3629
|
a({ type: Number })
|
|
3629
|
-
],
|
|
3630
|
-
|
|
3630
|
+
], at.prototype, "min", 2);
|
|
3631
|
+
St([
|
|
3631
3632
|
a({ type: Number })
|
|
3632
|
-
],
|
|
3633
|
-
|
|
3633
|
+
], at.prototype, "max", 2);
|
|
3634
|
+
St([
|
|
3634
3635
|
a({ type: Number })
|
|
3635
|
-
],
|
|
3636
|
-
|
|
3636
|
+
], at.prototype, "step", 2);
|
|
3637
|
+
St([
|
|
3637
3638
|
y()
|
|
3638
|
-
],
|
|
3639
|
-
|
|
3639
|
+
], at.prototype, "_hasPicker", 2);
|
|
3640
|
+
at = St([
|
|
3640
3641
|
b("ds-input", { skipTagAsComponentName: !0 })
|
|
3641
|
-
],
|
|
3642
|
-
const uo =
|
|
3642
|
+
], at);
|
|
3643
|
+
const uo = h`
|
|
3643
3644
|
:host {
|
|
3644
3645
|
display: inline-flex;
|
|
3645
3646
|
}
|
|
@@ -3656,12 +3657,12 @@ const uo = d`
|
|
|
3656
3657
|
cursor: pointer;
|
|
3657
3658
|
}
|
|
3658
3659
|
`;
|
|
3659
|
-
var mo = Object.defineProperty, vo = Object.getOwnPropertyDescriptor,
|
|
3660
|
+
var mo = Object.defineProperty, vo = Object.getOwnPropertyDescriptor, rt = (t, e, i, r) => {
|
|
3660
3661
|
for (var s = r > 1 ? void 0 : r ? vo(e, i) : e, o = t.length - 1, n; o >= 0; o--)
|
|
3661
3662
|
(n = t[o]) && (s = (r ? n(e, i, s) : n(s)) || s);
|
|
3662
3663
|
return r && s && mo(e, i, s), s;
|
|
3663
3664
|
};
|
|
3664
|
-
let
|
|
3665
|
+
let W = class extends f {
|
|
3665
3666
|
constructor() {
|
|
3666
3667
|
super(...arguments), this.mode = "light", this.size = "large", this.underline = !1, this.disabled = !1, this.iconName = "arrow-right", this.iconPosition = "right";
|
|
3667
3668
|
}
|
|
@@ -3728,41 +3729,41 @@ let H = class extends f {
|
|
|
3728
3729
|
`;
|
|
3729
3730
|
}
|
|
3730
3731
|
};
|
|
3731
|
-
|
|
3732
|
-
|
|
3732
|
+
W.styles = [uo];
|
|
3733
|
+
rt([
|
|
3733
3734
|
a({ type: String, reflect: !0 })
|
|
3734
|
-
],
|
|
3735
|
-
|
|
3735
|
+
], W.prototype, "mode", 2);
|
|
3736
|
+
rt([
|
|
3736
3737
|
a({ type: String })
|
|
3737
|
-
],
|
|
3738
|
-
|
|
3738
|
+
], W.prototype, "size", 2);
|
|
3739
|
+
rt([
|
|
3739
3740
|
a({ type: Boolean, converter: m })
|
|
3740
|
-
],
|
|
3741
|
-
|
|
3741
|
+
], W.prototype, "underline", 2);
|
|
3742
|
+
rt([
|
|
3742
3743
|
a({ type: Boolean, converter: m })
|
|
3743
|
-
],
|
|
3744
|
-
|
|
3744
|
+
], W.prototype, "disabled", 2);
|
|
3745
|
+
rt([
|
|
3745
3746
|
a({ type: String, attribute: "html-tag-name" })
|
|
3746
|
-
],
|
|
3747
|
-
|
|
3747
|
+
], W.prototype, "htmlTagName", 2);
|
|
3748
|
+
rt([
|
|
3748
3749
|
a({ type: String, reflect: !0 })
|
|
3749
|
-
],
|
|
3750
|
-
|
|
3750
|
+
], W.prototype, "href", 2);
|
|
3751
|
+
rt([
|
|
3751
3752
|
a({ type: String, reflect: !0 })
|
|
3752
|
-
],
|
|
3753
|
-
|
|
3753
|
+
], W.prototype, "rel", 2);
|
|
3754
|
+
rt([
|
|
3754
3755
|
a({ type: String, reflect: !0 })
|
|
3755
|
-
],
|
|
3756
|
-
|
|
3756
|
+
], W.prototype, "target", 2);
|
|
3757
|
+
rt([
|
|
3757
3758
|
a({ type: String, attribute: "icon-name" })
|
|
3758
|
-
],
|
|
3759
|
-
|
|
3759
|
+
], W.prototype, "iconName", 2);
|
|
3760
|
+
rt([
|
|
3760
3761
|
a({ type: String, attribute: "icon-position" })
|
|
3761
|
-
],
|
|
3762
|
-
|
|
3762
|
+
], W.prototype, "iconPosition", 2);
|
|
3763
|
+
W = rt([
|
|
3763
3764
|
b("ds-link-button")
|
|
3764
|
-
],
|
|
3765
|
-
const bo =
|
|
3765
|
+
], W);
|
|
3766
|
+
const bo = h`
|
|
3766
3767
|
.track {
|
|
3767
3768
|
width: 100%;
|
|
3768
3769
|
position: relative;
|
|
@@ -3776,7 +3777,7 @@ const bo = d`
|
|
|
3776
3777
|
height: 100%;
|
|
3777
3778
|
display: block;
|
|
3778
3779
|
}
|
|
3779
|
-
`, yo =
|
|
3780
|
+
`, yo = h`
|
|
3780
3781
|
.track.large {
|
|
3781
3782
|
height: 4px;
|
|
3782
3783
|
}
|
|
@@ -3795,7 +3796,7 @@ const bo = d`
|
|
|
3795
3796
|
.dark .fill {
|
|
3796
3797
|
background-color: var(--ds-color-white);
|
|
3797
3798
|
}
|
|
3798
|
-
`, go = [yo], fo =
|
|
3799
|
+
`, go = [yo], fo = h`
|
|
3799
3800
|
.track.large {
|
|
3800
3801
|
height: 4px;
|
|
3801
3802
|
}
|
|
@@ -3814,7 +3815,7 @@ const bo = d`
|
|
|
3814
3815
|
.dark .fill {
|
|
3815
3816
|
background-color: var(--ds-color-white);
|
|
3816
3817
|
}
|
|
3817
|
-
`, xo = [fo], $o =
|
|
3818
|
+
`, xo = [fo], $o = h``, wo = [$o];
|
|
3818
3819
|
var So = Object.defineProperty, Ms = (t, e, i, r) => {
|
|
3819
3820
|
for (var s = void 0, o = t.length - 1, n; o >= 0; o--)
|
|
3820
3821
|
(n = t[o]) && (s = n(e, i, s) || s);
|
|
@@ -3864,7 +3865,7 @@ Ms([
|
|
|
3864
3865
|
Ms([
|
|
3865
3866
|
a({ type: String })
|
|
3866
3867
|
], Ve.prototype, "size");
|
|
3867
|
-
const ko =
|
|
3868
|
+
const ko = h`
|
|
3868
3869
|
.fill {
|
|
3869
3870
|
width: 33%;
|
|
3870
3871
|
transform: translateX(-100%);
|
|
@@ -3894,11 +3895,11 @@ Ie.styles = [...Oo(Ie, Ie, "styles"), ko];
|
|
|
3894
3895
|
Ie = Eo([
|
|
3895
3896
|
b("ds-loader-bar", { skipTagAsComponentName: !0 })
|
|
3896
3897
|
], Ie);
|
|
3897
|
-
function
|
|
3898
|
-
const i = String.raw({ raw: t }, ...e).replace(/(--private-[\w-]+)(?=\s*[):,])/g, "$1-
|
|
3899
|
-
return
|
|
3898
|
+
function Kt(t, ...e) {
|
|
3899
|
+
const i = String.raw({ raw: t }, ...e).replace(/(--private-[\w-]+)(?=\s*[):,])/g, "$1-v1-0-0-canary-7"), r = bi(i);
|
|
3900
|
+
return h`${r}`;
|
|
3900
3901
|
}
|
|
3901
|
-
const zo =
|
|
3902
|
+
const zo = Kt`
|
|
3902
3903
|
.container {
|
|
3903
3904
|
display: inline-flex;
|
|
3904
3905
|
justify-content: center;
|
|
@@ -3934,7 +3935,7 @@ var Io = Object.defineProperty, Ao = Object.getOwnPropertyDescriptor, as = (t, e
|
|
|
3934
3935
|
(n = t[o]) && (s = (r ? n(e, i, s) : n(s)) || s);
|
|
3935
3936
|
return r && s && Io(e, i, s), s;
|
|
3936
3937
|
};
|
|
3937
|
-
let
|
|
3938
|
+
let ce = class extends f {
|
|
3938
3939
|
constructor() {
|
|
3939
3940
|
super(...arguments), this.show = !1, this.mode = "light", this.size = "large";
|
|
3940
3941
|
}
|
|
@@ -3965,20 +3966,20 @@ let le = class extends f {
|
|
|
3965
3966
|
` : c;
|
|
3966
3967
|
}
|
|
3967
3968
|
};
|
|
3968
|
-
|
|
3969
|
+
ce.styles = [zo];
|
|
3969
3970
|
as([
|
|
3970
3971
|
a({ type: Boolean, converter: m })
|
|
3971
|
-
],
|
|
3972
|
+
], ce.prototype, "show", 2);
|
|
3972
3973
|
as([
|
|
3973
3974
|
a({ type: String, reflect: !0 })
|
|
3974
|
-
],
|
|
3975
|
+
], ce.prototype, "mode", 2);
|
|
3975
3976
|
as([
|
|
3976
3977
|
a({ type: String })
|
|
3977
|
-
],
|
|
3978
|
-
|
|
3978
|
+
], ce.prototype, "size", 2);
|
|
3979
|
+
ce = as([
|
|
3979
3980
|
b("ds-loader-dots")
|
|
3980
|
-
],
|
|
3981
|
-
const _o =
|
|
3981
|
+
], ce);
|
|
3982
|
+
const _o = h`
|
|
3982
3983
|
.backdrop {
|
|
3983
3984
|
display: flex;
|
|
3984
3985
|
position: fixed;
|
|
@@ -4043,7 +4044,7 @@ var Po = Object.defineProperty, No = Object.getOwnPropertyDescriptor, He = (t, e
|
|
|
4043
4044
|
(n = t[o]) && (s = (r ? n(e, i, s) : n(s)) || s);
|
|
4044
4045
|
return r && s && Po(e, i, s), s;
|
|
4045
4046
|
};
|
|
4046
|
-
let
|
|
4047
|
+
let jt = class extends f {
|
|
4047
4048
|
constructor() {
|
|
4048
4049
|
super(...arguments), this.show = !1, this.zIndex = 2e3, this.iconName = "logo";
|
|
4049
4050
|
}
|
|
@@ -4076,23 +4077,23 @@ let Dt = class extends f {
|
|
|
4076
4077
|
` : c;
|
|
4077
4078
|
}
|
|
4078
4079
|
};
|
|
4079
|
-
|
|
4080
|
+
jt.styles = [_o];
|
|
4080
4081
|
He([
|
|
4081
4082
|
a({ type: Boolean, converter: m })
|
|
4082
|
-
],
|
|
4083
|
+
], jt.prototype, "show", 2);
|
|
4083
4084
|
He([
|
|
4084
4085
|
a({ type: Number, attribute: "z-index" })
|
|
4085
|
-
],
|
|
4086
|
+
], jt.prototype, "zIndex", 2);
|
|
4086
4087
|
He([
|
|
4087
4088
|
a({ type: String, attribute: "icon-name" })
|
|
4088
|
-
],
|
|
4089
|
+
], jt.prototype, "iconName", 2);
|
|
4089
4090
|
He([
|
|
4090
4091
|
a({ type: String })
|
|
4091
|
-
],
|
|
4092
|
-
|
|
4092
|
+
], jt.prototype, "color", 2);
|
|
4093
|
+
jt = He([
|
|
4093
4094
|
b("ds-loader-logo")
|
|
4094
|
-
],
|
|
4095
|
-
const Bo =
|
|
4095
|
+
], jt);
|
|
4096
|
+
const Bo = h`
|
|
4096
4097
|
:host {
|
|
4097
4098
|
display: contents;
|
|
4098
4099
|
}
|
|
@@ -4109,7 +4110,7 @@ const Bo = d`
|
|
|
4109
4110
|
.container.default ::slotted([slot='text']) {
|
|
4110
4111
|
display: none;
|
|
4111
4112
|
}
|
|
4112
|
-
`, Lo =
|
|
4113
|
+
`, Lo = h`
|
|
4113
4114
|
.spinner {
|
|
4114
4115
|
width: 24px;
|
|
4115
4116
|
height: 24px;
|
|
@@ -4146,7 +4147,7 @@ var Do = Object.defineProperty, jo = Object.getOwnPropertyDescriptor, ls = (t, e
|
|
|
4146
4147
|
(n = t[o]) && (s = (r ? n(e, i, s) : n(s)) || s);
|
|
4147
4148
|
return r && s && Do(e, i, s), s;
|
|
4148
4149
|
};
|
|
4149
|
-
let
|
|
4150
|
+
let de = class extends f {
|
|
4150
4151
|
constructor() {
|
|
4151
4152
|
super(...arguments), this.show = !1, this.mode = "light", this.orientation = "row";
|
|
4152
4153
|
}
|
|
@@ -4169,24 +4170,24 @@ let ce = class extends f {
|
|
|
4169
4170
|
` : c;
|
|
4170
4171
|
}
|
|
4171
4172
|
};
|
|
4172
|
-
|
|
4173
|
+
de.styles = Mo;
|
|
4173
4174
|
ls([
|
|
4174
4175
|
a({ type: Boolean, converter: m })
|
|
4175
|
-
],
|
|
4176
|
+
], de.prototype, "show", 2);
|
|
4176
4177
|
ls([
|
|
4177
4178
|
a({ type: String, reflect: !0 })
|
|
4178
|
-
],
|
|
4179
|
+
], de.prototype, "mode", 2);
|
|
4179
4180
|
ls([
|
|
4180
4181
|
a({ type: String })
|
|
4181
|
-
],
|
|
4182
|
-
|
|
4182
|
+
], de.prototype, "orientation", 2);
|
|
4183
|
+
de = ls([
|
|
4183
4184
|
b("ds-loader-spinner")
|
|
4184
|
-
],
|
|
4185
|
-
const Fo =
|
|
4185
|
+
], de);
|
|
4186
|
+
const Fo = h`
|
|
4186
4187
|
:host {
|
|
4187
4188
|
display: contents;
|
|
4188
4189
|
}
|
|
4189
|
-
`, Ro =
|
|
4190
|
+
`, Ro = h`
|
|
4190
4191
|
.container {
|
|
4191
4192
|
display: grid;
|
|
4192
4193
|
grid-template-columns: auto auto;
|
|
@@ -4249,7 +4250,7 @@ Ds([
|
|
|
4249
4250
|
Be = Ds([
|
|
4250
4251
|
b("ds-logo")
|
|
4251
4252
|
], Be);
|
|
4252
|
-
const Ho =
|
|
4253
|
+
const Ho = h`
|
|
4253
4254
|
:host {
|
|
4254
4255
|
display: inline-block;
|
|
4255
4256
|
}
|
|
@@ -4285,12 +4286,12 @@ const Ho = d`
|
|
|
4285
4286
|
color: var(--dg-color-text-strong);
|
|
4286
4287
|
}
|
|
4287
4288
|
`;
|
|
4288
|
-
var Wo = Object.defineProperty, qo = Object.getOwnPropertyDescriptor,
|
|
4289
|
+
var Wo = Object.defineProperty, qo = Object.getOwnPropertyDescriptor, Pt = (t, e, i, r) => {
|
|
4289
4290
|
for (var s = r > 1 ? void 0 : r ? qo(e, i) : e, o = t.length - 1, n; o >= 0; o--)
|
|
4290
4291
|
(n = t[o]) && (s = (r ? n(e, i, s) : n(s)) || s);
|
|
4291
4292
|
return r && s && Wo(e, i, s), s;
|
|
4292
4293
|
};
|
|
4293
|
-
let
|
|
4294
|
+
let lt = class extends f {
|
|
4294
4295
|
constructor() {
|
|
4295
4296
|
super(...arguments), this.width = 48, this.height = 48, this.checked = !1, this.iconSize = 24, this.iconTop = 8;
|
|
4296
4297
|
}
|
|
@@ -4364,32 +4365,32 @@ let at = class extends f {
|
|
|
4364
4365
|
`;
|
|
4365
4366
|
}
|
|
4366
4367
|
};
|
|
4367
|
-
|
|
4368
|
-
|
|
4368
|
+
lt.styles = [Ho];
|
|
4369
|
+
Pt([
|
|
4369
4370
|
a({ type: Number, attribute: "width" })
|
|
4370
|
-
],
|
|
4371
|
-
|
|
4371
|
+
], lt.prototype, "width", 2);
|
|
4372
|
+
Pt([
|
|
4372
4373
|
a({ type: Number, attribute: "height" })
|
|
4373
|
-
],
|
|
4374
|
-
|
|
4374
|
+
], lt.prototype, "height", 2);
|
|
4375
|
+
Pt([
|
|
4375
4376
|
a({ type: Boolean, converter: m, reflect: !0 })
|
|
4376
|
-
],
|
|
4377
|
-
|
|
4377
|
+
], lt.prototype, "checked", 2);
|
|
4378
|
+
Pt([
|
|
4378
4379
|
a({ type: String, attribute: "icon-name" })
|
|
4379
|
-
],
|
|
4380
|
-
|
|
4380
|
+
], lt.prototype, "iconName", 2);
|
|
4381
|
+
Pt([
|
|
4381
4382
|
a({ type: Number, attribute: "icon-size" })
|
|
4382
|
-
],
|
|
4383
|
-
|
|
4383
|
+
], lt.prototype, "iconSize", 2);
|
|
4384
|
+
Pt([
|
|
4384
4385
|
a({ type: Number, attribute: "icon-top" })
|
|
4385
|
-
],
|
|
4386
|
-
|
|
4386
|
+
], lt.prototype, "iconTop", 2);
|
|
4387
|
+
Pt([
|
|
4387
4388
|
a({ type: Number, attribute: "cluster-count" })
|
|
4388
|
-
],
|
|
4389
|
-
|
|
4389
|
+
], lt.prototype, "clusterCount", 2);
|
|
4390
|
+
lt = Pt([
|
|
4390
4391
|
b("ds-map-pin")
|
|
4391
|
-
],
|
|
4392
|
-
const Ko =
|
|
4392
|
+
], lt);
|
|
4393
|
+
const Ko = h`
|
|
4393
4394
|
:host {
|
|
4394
4395
|
transition: display 300ms ease allow-discrete;
|
|
4395
4396
|
}
|
|
@@ -4459,7 +4460,7 @@ const Ko = d`
|
|
|
4459
4460
|
grid-area: confirmButton;
|
|
4460
4461
|
}
|
|
4461
4462
|
|
|
4462
|
-
${
|
|
4463
|
+
${V.m} {
|
|
4463
4464
|
.content-container.full-width {
|
|
4464
4465
|
max-width: 700px;
|
|
4465
4466
|
}
|
|
@@ -4490,7 +4491,7 @@ const Ko = d`
|
|
|
4490
4491
|
}
|
|
4491
4492
|
}
|
|
4492
4493
|
|
|
4493
|
-
${
|
|
4494
|
+
${V.l} {
|
|
4494
4495
|
.content-container.full-width {
|
|
4495
4496
|
max-width: 952px;
|
|
4496
4497
|
}
|
|
@@ -4508,7 +4509,7 @@ const Ko = d`
|
|
|
4508
4509
|
}
|
|
4509
4510
|
}
|
|
4510
4511
|
|
|
4511
|
-
${
|
|
4512
|
+
${V.xl} {
|
|
4512
4513
|
.content-container.full-width {
|
|
4513
4514
|
max-width: 1138px;
|
|
4514
4515
|
}
|
|
@@ -4525,7 +4526,7 @@ const Ko = d`
|
|
|
4525
4526
|
'. cancelButton confirmButton';
|
|
4526
4527
|
}
|
|
4527
4528
|
}
|
|
4528
|
-
`,
|
|
4529
|
+
`, Yo = h`
|
|
4529
4530
|
.container.full-screen {
|
|
4530
4531
|
position: fixed;
|
|
4531
4532
|
height: 100%;
|
|
@@ -4542,7 +4543,7 @@ const Ko = d`
|
|
|
4542
4543
|
.icon {
|
|
4543
4544
|
margin-bottom: 32px;
|
|
4544
4545
|
}
|
|
4545
|
-
`,
|
|
4546
|
+
`, Go = h`
|
|
4546
4547
|
.container.dialog {
|
|
4547
4548
|
position: fixed;
|
|
4548
4549
|
height: auto;
|
|
@@ -4570,23 +4571,23 @@ const Ko = d`
|
|
|
4570
4571
|
width: calc(100dvw - 32px);
|
|
4571
4572
|
}
|
|
4572
4573
|
|
|
4573
|
-
${
|
|
4574
|
+
${V.m} {
|
|
4574
4575
|
.container.dialog .content-container {
|
|
4575
4576
|
max-height: calc(100dvh - 112px);
|
|
4576
4577
|
padding: 48px;
|
|
4577
4578
|
}
|
|
4578
4579
|
}
|
|
4579
|
-
`, Xo =
|
|
4580
|
+
`, Xo = h`
|
|
4580
4581
|
.container.fit {
|
|
4581
4582
|
position: absolute;
|
|
4582
4583
|
}
|
|
4583
|
-
`,
|
|
4584
|
+
`, Jo = h`
|
|
4584
4585
|
.container.full-screen.v-align-default {
|
|
4585
4586
|
justify-content: flex-start;
|
|
4586
4587
|
padding-top: 24px;
|
|
4587
4588
|
}
|
|
4588
4589
|
|
|
4589
|
-
${
|
|
4590
|
+
${V.m} {
|
|
4590
4591
|
.container.full-screen.v-align-default {
|
|
4591
4592
|
justify-content: center;
|
|
4592
4593
|
padding-top: 0;
|
|
@@ -4603,19 +4604,19 @@ const Ko = d`
|
|
|
4603
4604
|
padding-top: 24px;
|
|
4604
4605
|
}
|
|
4605
4606
|
|
|
4606
|
-
${
|
|
4607
|
+
${V.m} {
|
|
4607
4608
|
.container.full-screen.v-align-start {
|
|
4608
4609
|
padding-top: 32px;
|
|
4609
4610
|
}
|
|
4610
4611
|
}
|
|
4611
4612
|
|
|
4612
|
-
${
|
|
4613
|
+
${V.l} {
|
|
4613
4614
|
.container.full-screen.v-align-start {
|
|
4614
4615
|
padding-top: 32px;
|
|
4615
4616
|
}
|
|
4616
4617
|
}
|
|
4617
4618
|
|
|
4618
|
-
${
|
|
4619
|
+
${V.xl} {
|
|
4619
4620
|
.container.full-screen.v-align-start {
|
|
4620
4621
|
padding-top: 64px;
|
|
4621
4622
|
}
|
|
@@ -4642,19 +4643,19 @@ const Ko = d`
|
|
|
4642
4643
|
padding-bottom: 24px;
|
|
4643
4644
|
}
|
|
4644
4645
|
|
|
4645
|
-
${
|
|
4646
|
+
${V.m} {
|
|
4646
4647
|
.container.full-screen.v-align-end {
|
|
4647
4648
|
padding-bottom: 32px;
|
|
4648
4649
|
}
|
|
4649
4650
|
}
|
|
4650
4651
|
|
|
4651
|
-
${
|
|
4652
|
+
${V.l} {
|
|
4652
4653
|
.container.full-screen.v-align-end {
|
|
4653
4654
|
padding-bottom: 32px;
|
|
4654
4655
|
}
|
|
4655
4656
|
}
|
|
4656
4657
|
|
|
4657
|
-
${
|
|
4658
|
+
${V.xl} {
|
|
4658
4659
|
.container.full-screen.v-align-end {
|
|
4659
4660
|
padding-bottom: 64px;
|
|
4660
4661
|
}
|
|
@@ -4666,12 +4667,12 @@ const Ko = d`
|
|
|
4666
4667
|
margin-bottom: 24px;
|
|
4667
4668
|
}
|
|
4668
4669
|
`;
|
|
4669
|
-
var
|
|
4670
|
+
var Zo = Object.defineProperty, Qo = Object.getOwnPropertyDescriptor, ot = (t, e, i, r) => {
|
|
4670
4671
|
for (var s = r > 1 ? void 0 : r ? Qo(e, i) : e, o = t.length - 1, n; o >= 0; o--)
|
|
4671
4672
|
(n = t[o]) && (s = (r ? n(e, i, s) : n(s)) || s);
|
|
4672
|
-
return r && s &&
|
|
4673
|
+
return r && s && Zo(e, i, s), s;
|
|
4673
4674
|
};
|
|
4674
|
-
let
|
|
4675
|
+
let q = class extends _t(f) {
|
|
4675
4676
|
constructor() {
|
|
4676
4677
|
super(...arguments), this.withCloseButton = !0, this.variant = "fullScreen", this.zIndex = 2e3, this.disableScrollLock = !1, this.fullWidth = !1, this.vAlign = "default";
|
|
4677
4678
|
}
|
|
@@ -4822,52 +4823,52 @@ let W = class extends At(f) {
|
|
|
4822
4823
|
));
|
|
4823
4824
|
}
|
|
4824
4825
|
};
|
|
4825
|
-
|
|
4826
|
-
|
|
4826
|
+
q.styles = [Yo, Go, Xo, Ko, Jo];
|
|
4827
|
+
ot([
|
|
4827
4828
|
a({ type: Boolean, reflect: !0, converter: m })
|
|
4828
|
-
],
|
|
4829
|
-
|
|
4829
|
+
], q.prototype, "open", 2);
|
|
4830
|
+
ot([
|
|
4830
4831
|
a({
|
|
4831
4832
|
type: Boolean,
|
|
4832
4833
|
attribute: "with-close-button",
|
|
4833
4834
|
converter: m
|
|
4834
4835
|
})
|
|
4835
|
-
],
|
|
4836
|
-
|
|
4836
|
+
], q.prototype, "withCloseButton", 2);
|
|
4837
|
+
ot([
|
|
4837
4838
|
a({ type: String, attribute: "cancel-button-text" })
|
|
4838
|
-
],
|
|
4839
|
-
|
|
4839
|
+
], q.prototype, "cancelButtonText", 2);
|
|
4840
|
+
ot([
|
|
4840
4841
|
a({ type: String, attribute: "confirm-button-text" })
|
|
4841
|
-
],
|
|
4842
|
-
|
|
4842
|
+
], q.prototype, "confirmButtonText", 2);
|
|
4843
|
+
ot([
|
|
4843
4844
|
a({ type: String })
|
|
4844
|
-
],
|
|
4845
|
-
|
|
4845
|
+
], q.prototype, "variant", 2);
|
|
4846
|
+
ot([
|
|
4846
4847
|
a({ type: Number, attribute: "z-index" })
|
|
4847
|
-
],
|
|
4848
|
-
|
|
4848
|
+
], q.prototype, "zIndex", 2);
|
|
4849
|
+
ot([
|
|
4849
4850
|
a({
|
|
4850
4851
|
type: Boolean,
|
|
4851
4852
|
converter: m,
|
|
4852
4853
|
attribute: "disable-scroll-lock"
|
|
4853
4854
|
})
|
|
4854
|
-
],
|
|
4855
|
-
|
|
4855
|
+
], q.prototype, "disableScrollLock", 2);
|
|
4856
|
+
ot([
|
|
4856
4857
|
a({ type: String, attribute: "icon-name" })
|
|
4857
|
-
],
|
|
4858
|
-
|
|
4858
|
+
], q.prototype, "iconName", 2);
|
|
4859
|
+
ot([
|
|
4859
4860
|
a({
|
|
4860
4861
|
type: Boolean,
|
|
4861
4862
|
converter: m,
|
|
4862
4863
|
attribute: "full-width"
|
|
4863
4864
|
})
|
|
4864
|
-
],
|
|
4865
|
-
|
|
4865
|
+
], q.prototype, "fullWidth", 2);
|
|
4866
|
+
ot([
|
|
4866
4867
|
a({ type: String, attribute: "v-align" })
|
|
4867
|
-
],
|
|
4868
|
-
|
|
4868
|
+
], q.prototype, "vAlign", 2);
|
|
4869
|
+
q = ot([
|
|
4869
4870
|
b("ds-modal")
|
|
4870
|
-
],
|
|
4871
|
+
], q);
|
|
4871
4872
|
const js = (t) => class extends t {
|
|
4872
4873
|
constructor() {
|
|
4873
4874
|
super(...arguments), this.inputStates = {
|
|
@@ -4914,17 +4915,17 @@ const js = (t) => class extends t {
|
|
|
4914
4915
|
function Fs(t) {
|
|
4915
4916
|
return !t || typeof t != "string" && typeof t != "number" ? !1 : (typeof t == "string" ? Number(t) : t) > 0;
|
|
4916
4917
|
}
|
|
4917
|
-
const tn =
|
|
4918
|
+
const tn = h`
|
|
4918
4919
|
:host {
|
|
4919
4920
|
display: contents;
|
|
4920
4921
|
}
|
|
4921
4922
|
`;
|
|
4922
|
-
var en = Object.defineProperty, sn = Object.getOwnPropertyDescriptor,
|
|
4923
|
+
var en = Object.defineProperty, sn = Object.getOwnPropertyDescriptor, ge = (t, e, i, r) => {
|
|
4923
4924
|
for (var s = r > 1 ? void 0 : r ? sn(e, i) : e, o = t.length - 1, n; o >= 0; o--)
|
|
4924
4925
|
(n = t[o]) && (s = (r ? n(e, i, s) : n(s)) || s);
|
|
4925
4926
|
return r && s && en(e, i, s), s;
|
|
4926
4927
|
};
|
|
4927
|
-
let
|
|
4928
|
+
let ft = class extends js(f) {
|
|
4928
4929
|
constructor() {
|
|
4929
4930
|
super(...arguments), this.keyboardMode = !1, this.size = "medium", this.helperText = "", this.forcedError = "", this.invalidError = "", this.dataAriaLabelRemoveButton = "", this.handleClickIcon = () => {
|
|
4930
4931
|
this.nativeInput.value = "", this.nativeInput.focus(), ["input", "change"].forEach(
|
|
@@ -4987,31 +4988,31 @@ let gt = class extends js(f) {
|
|
|
4987
4988
|
return this.forcedError || !this.inputStates.invalid || !this.invalidError ? c : l`<span class="support-text error-text invalid-error">${this.invalidError}</span>`;
|
|
4988
4989
|
}
|
|
4989
4990
|
};
|
|
4990
|
-
|
|
4991
|
-
|
|
4991
|
+
ft.styles = [tn];
|
|
4992
|
+
ge([
|
|
4992
4993
|
a({ type: String })
|
|
4993
|
-
],
|
|
4994
|
-
|
|
4994
|
+
], ft.prototype, "size", 2);
|
|
4995
|
+
ge([
|
|
4995
4996
|
a({ type: String, attribute: "helper-text" })
|
|
4996
|
-
],
|
|
4997
|
-
|
|
4997
|
+
], ft.prototype, "helperText", 2);
|
|
4998
|
+
ge([
|
|
4998
4999
|
a({ type: String, attribute: "forced-error" })
|
|
4999
|
-
],
|
|
5000
|
-
|
|
5000
|
+
], ft.prototype, "forcedError", 2);
|
|
5001
|
+
ge([
|
|
5001
5002
|
a({ type: String, attribute: "invalid-error" })
|
|
5002
|
-
],
|
|
5003
|
-
|
|
5003
|
+
], ft.prototype, "invalidError", 2);
|
|
5004
|
+
ge([
|
|
5004
5005
|
a({ type: String, attribute: "data-aria-label-remove-button" })
|
|
5005
|
-
],
|
|
5006
|
-
|
|
5006
|
+
], ft.prototype, "dataAriaLabelRemoveButton", 2);
|
|
5007
|
+
ft = ge([
|
|
5007
5008
|
b("ds-text-input")
|
|
5008
|
-
],
|
|
5009
|
+
], ft);
|
|
5009
5010
|
var rn = Object.defineProperty, on = Object.getOwnPropertyDescriptor, cs = (t, e, i, r) => {
|
|
5010
5011
|
for (var s = r > 1 ? void 0 : r ? on(e, i) : e, o = t.length - 1, n; o >= 0; o--)
|
|
5011
5012
|
(n = t[o]) && (s = (r ? n(e, i, s) : n(s)) || s);
|
|
5012
5013
|
return r && s && rn(e, i, s), s;
|
|
5013
5014
|
};
|
|
5014
|
-
let Le = class extends
|
|
5015
|
+
let Le = class extends ft {
|
|
5015
5016
|
constructor() {
|
|
5016
5017
|
super(...arguments), this.dataAriaLabelHideButton = "", this.dataAriaLabelShowButton = "", this.visible = !1, this.handleClickIcon = () => {
|
|
5017
5018
|
this.visible ? (this.nativeInput.setAttribute("type", "password"), this.visible = !1) : (this.nativeInput.setAttribute("type", "text"), this.visible = !0);
|
|
@@ -5042,7 +5043,7 @@ cs([
|
|
|
5042
5043
|
Le = cs([
|
|
5043
5044
|
b("ds-password-input", { extendComponentNames: ["ds-text-input"] })
|
|
5044
5045
|
], Le);
|
|
5045
|
-
const nn =
|
|
5046
|
+
const nn = h`
|
|
5046
5047
|
:host {
|
|
5047
5048
|
display: contents;
|
|
5048
5049
|
}
|
|
@@ -5052,7 +5053,7 @@ var an = Object.defineProperty, ln = Object.getOwnPropertyDescriptor, We = (t, e
|
|
|
5052
5053
|
(n = t[o]) && (s = (r ? n(e, i, s) : n(s)) || s);
|
|
5053
5054
|
return r && s && an(e, i, s), s;
|
|
5054
5055
|
};
|
|
5055
|
-
let
|
|
5056
|
+
let Ft = class extends _t(f) {
|
|
5056
5057
|
constructor() {
|
|
5057
5058
|
super(...arguments), this.variant = "without-border", this.size = "medium", this.loading = !1, this.selected = !1;
|
|
5058
5059
|
}
|
|
@@ -5106,28 +5107,28 @@ let jt = class extends At(f) {
|
|
|
5106
5107
|
`;
|
|
5107
5108
|
}
|
|
5108
5109
|
};
|
|
5109
|
-
|
|
5110
|
+
Ft.styles = [nn];
|
|
5110
5111
|
We([
|
|
5111
5112
|
a({ type: String })
|
|
5112
|
-
],
|
|
5113
|
+
], Ft.prototype, "variant", 2);
|
|
5113
5114
|
We([
|
|
5114
5115
|
a({ type: String, converter: Fe })
|
|
5115
|
-
],
|
|
5116
|
+
], Ft.prototype, "size", 2);
|
|
5116
5117
|
We([
|
|
5117
5118
|
a({ type: Boolean, converter: m })
|
|
5118
|
-
],
|
|
5119
|
+
], Ft.prototype, "loading", 2);
|
|
5119
5120
|
We([
|
|
5120
5121
|
a({ type: Boolean, converter: m })
|
|
5121
|
-
],
|
|
5122
|
-
|
|
5122
|
+
], Ft.prototype, "selected", 2);
|
|
5123
|
+
Ft = We([
|
|
5123
5124
|
b("ds-picker-item")
|
|
5124
|
-
],
|
|
5125
|
-
var cn = Object.defineProperty,
|
|
5126
|
-
for (var s = r > 1 ? void 0 : r ?
|
|
5125
|
+
], Ft);
|
|
5126
|
+
var cn = Object.defineProperty, dn = Object.getOwnPropertyDescriptor, Ei = (t, e, i, r) => {
|
|
5127
|
+
for (var s = r > 1 ? void 0 : r ? dn(e, i) : e, o = t.length - 1, n; o >= 0; o--)
|
|
5127
5128
|
(n = t[o]) && (s = (r ? n(e, i, s) : n(s)) || s);
|
|
5128
5129
|
return r && s && cn(e, i, s), s;
|
|
5129
5130
|
};
|
|
5130
|
-
let $s = class extends
|
|
5131
|
+
let $s = class extends ut {
|
|
5131
5132
|
constructor() {
|
|
5132
5133
|
super(...arguments), this.nodes = [], this.querySelectorText = "body";
|
|
5133
5134
|
}
|
|
@@ -5155,7 +5156,7 @@ Ei([
|
|
|
5155
5156
|
$s = Ei([
|
|
5156
5157
|
b("ds-portal", { skipTagAsComponentName: !0 })
|
|
5157
5158
|
], $s);
|
|
5158
|
-
const
|
|
5159
|
+
const hn = h`
|
|
5159
5160
|
.fill {
|
|
5160
5161
|
transition: all 200ms ease-in-out;
|
|
5161
5162
|
}
|
|
@@ -5165,7 +5166,7 @@ var pn = Object.defineProperty, un = Object.getOwnPropertyDescriptor, mn = Objec
|
|
|
5165
5166
|
(n = t[o]) && (s = (r ? n(e, i, s) : n(s)) || s);
|
|
5166
5167
|
return r && s && pn(e, i, s), s;
|
|
5167
5168
|
}, bn = (t, e, i) => vn(mn(t), i, e);
|
|
5168
|
-
let
|
|
5169
|
+
let ee = class extends Ve {
|
|
5169
5170
|
render() {
|
|
5170
5171
|
return this.show ? l`
|
|
5171
5172
|
<style>
|
|
@@ -5177,14 +5178,14 @@ let te = class extends Ve {
|
|
|
5177
5178
|
` : c;
|
|
5178
5179
|
}
|
|
5179
5180
|
};
|
|
5180
|
-
|
|
5181
|
+
ee.styles = [...bn(ee, ee, "styles"), hn];
|
|
5181
5182
|
Oi([
|
|
5182
5183
|
a({ type: Number })
|
|
5183
|
-
],
|
|
5184
|
-
|
|
5184
|
+
], ee.prototype, "progress", 2);
|
|
5185
|
+
ee = Oi([
|
|
5185
5186
|
b("ds-progress-bar", { skipTagAsComponentName: !0 })
|
|
5186
|
-
],
|
|
5187
|
-
const yn =
|
|
5187
|
+
], ee);
|
|
5188
|
+
const yn = h`
|
|
5188
5189
|
:host {
|
|
5189
5190
|
display: contents;
|
|
5190
5191
|
}
|
|
@@ -5202,13 +5203,13 @@ const yn = d`
|
|
|
5202
5203
|
vertical-align: top;
|
|
5203
5204
|
}
|
|
5204
5205
|
`;
|
|
5205
|
-
var gn = Object.defineProperty, fn = Object.getOwnPropertyDescriptor,
|
|
5206
|
+
var gn = Object.defineProperty, fn = Object.getOwnPropertyDescriptor, Yt = (t, e, i, r) => {
|
|
5206
5207
|
for (var s = r > 1 ? void 0 : r ? fn(e, i) : e, o = t.length - 1, n; o >= 0; o--)
|
|
5207
5208
|
(n = t[o]) && (s = (r ? n(e, i, s) : n(s)) || s);
|
|
5208
5209
|
return r && s && gn(e, i, s), s;
|
|
5209
5210
|
};
|
|
5210
5211
|
const zi = Symbol("ds-radio-button-group:disabled"), Ii = Symbol("ds-radio-button-group:error"), Ai = Symbol("ds-radio-button-group:error-text"), _i = Symbol("ds-radio-button-group:helper-text"), Pi = Symbol("ds-radio-button-group:size");
|
|
5211
|
-
let
|
|
5212
|
+
let xt = class extends f {
|
|
5212
5213
|
constructor() {
|
|
5213
5214
|
super(...arguments), this.error = !1, this.errorText = "", this.helperText = "", this.disabled = !1, this.size = "medium", this.orientation = "vertical";
|
|
5214
5215
|
}
|
|
@@ -5239,34 +5240,34 @@ let ft = class extends f {
|
|
|
5239
5240
|
`;
|
|
5240
5241
|
}
|
|
5241
5242
|
};
|
|
5242
|
-
|
|
5243
|
-
|
|
5244
|
-
|
|
5243
|
+
xt.styles = [yn];
|
|
5244
|
+
Yt([
|
|
5245
|
+
ve({ context: Ii }),
|
|
5245
5246
|
a({ type: Boolean, converter: m })
|
|
5246
|
-
],
|
|
5247
|
-
|
|
5248
|
-
|
|
5247
|
+
], xt.prototype, "error", 2);
|
|
5248
|
+
Yt([
|
|
5249
|
+
ve({ context: Ai }),
|
|
5249
5250
|
a({ type: String, attribute: "error-text" })
|
|
5250
|
-
],
|
|
5251
|
-
|
|
5252
|
-
|
|
5251
|
+
], xt.prototype, "errorText", 2);
|
|
5252
|
+
Yt([
|
|
5253
|
+
ve({ context: _i }),
|
|
5253
5254
|
a({ type: String, attribute: "helper-text" })
|
|
5254
|
-
],
|
|
5255
|
-
|
|
5256
|
-
|
|
5255
|
+
], xt.prototype, "helperText", 2);
|
|
5256
|
+
Yt([
|
|
5257
|
+
ve({ context: zi }),
|
|
5257
5258
|
a({ type: Boolean, converter: m })
|
|
5258
|
-
],
|
|
5259
|
-
|
|
5260
|
-
|
|
5259
|
+
], xt.prototype, "disabled", 2);
|
|
5260
|
+
Yt([
|
|
5261
|
+
ve({ context: Pi }),
|
|
5261
5262
|
a({ type: String })
|
|
5262
|
-
],
|
|
5263
|
-
|
|
5263
|
+
], xt.prototype, "size", 2);
|
|
5264
|
+
Yt([
|
|
5264
5265
|
a({ type: String, reflect: !0 })
|
|
5265
|
-
],
|
|
5266
|
-
|
|
5266
|
+
], xt.prototype, "orientation", 2);
|
|
5267
|
+
xt = Yt([
|
|
5267
5268
|
b("ds-radio-button-group")
|
|
5268
|
-
],
|
|
5269
|
-
const xn =
|
|
5269
|
+
], xt);
|
|
5270
|
+
const xn = h`
|
|
5270
5271
|
:host {
|
|
5271
5272
|
display: block;
|
|
5272
5273
|
flex: 0 0 auto;
|
|
@@ -5445,7 +5446,7 @@ F([
|
|
|
5445
5446
|
a({ type: String, attribute: "size" })
|
|
5446
5447
|
], B.prototype, "_size", 2);
|
|
5447
5448
|
F([
|
|
5448
|
-
a({ type: Boolean, attribute: "error" })
|
|
5449
|
+
a({ type: Boolean, attribute: "error", converter: m })
|
|
5449
5450
|
], B.prototype, "_error", 2);
|
|
5450
5451
|
F([
|
|
5451
5452
|
a({ type: String, attribute: "error-text" })
|
|
@@ -5475,12 +5476,12 @@ F([
|
|
|
5475
5476
|
y()
|
|
5476
5477
|
], B.prototype, "inputMutationObserver", 2);
|
|
5477
5478
|
F([
|
|
5478
|
-
|
|
5479
|
+
et({ slot: "input", selector: "input" })
|
|
5479
5480
|
], B.prototype, "input", 2);
|
|
5480
5481
|
B = F([
|
|
5481
5482
|
b("ds-radio-button")
|
|
5482
5483
|
], B);
|
|
5483
|
-
const Sn =
|
|
5484
|
+
const Sn = h`
|
|
5484
5485
|
:host {
|
|
5485
5486
|
display: flex;
|
|
5486
5487
|
flex-direction: column;
|
|
@@ -5494,12 +5495,12 @@ const Sn = d`
|
|
|
5494
5495
|
display: contents;
|
|
5495
5496
|
}
|
|
5496
5497
|
`;
|
|
5497
|
-
var kn = Object.defineProperty, Tn = Object.getOwnPropertyDescriptor,
|
|
5498
|
+
var kn = Object.defineProperty, Tn = Object.getOwnPropertyDescriptor, fe = (t, e, i, r) => {
|
|
5498
5499
|
for (var s = r > 1 ? void 0 : r ? Tn(e, i) : e, o = t.length - 1, n; o >= 0; o--)
|
|
5499
5500
|
(n = t[o]) && (s = (r ? n(e, i, s) : n(s)) || s);
|
|
5500
5501
|
return r && s && kn(e, i, s), s;
|
|
5501
5502
|
};
|
|
5502
|
-
let
|
|
5503
|
+
let Ot = class extends rs(ut) {
|
|
5503
5504
|
constructor() {
|
|
5504
5505
|
super(...arguments), this.mode = "light", this.size = "large";
|
|
5505
5506
|
}
|
|
@@ -5542,26 +5543,26 @@ let Et = class extends rs(pt) {
|
|
|
5542
5543
|
`;
|
|
5543
5544
|
}
|
|
5544
5545
|
};
|
|
5545
|
-
|
|
5546
|
-
|
|
5546
|
+
Ot.styles = [Sn];
|
|
5547
|
+
fe([
|
|
5547
5548
|
a({ type: String })
|
|
5548
|
-
],
|
|
5549
|
-
|
|
5549
|
+
], Ot.prototype, "name", 2);
|
|
5550
|
+
fe([
|
|
5550
5551
|
a({ type: String, reflect: !0 })
|
|
5551
|
-
],
|
|
5552
|
-
|
|
5552
|
+
], Ot.prototype, "value", 2);
|
|
5553
|
+
fe([
|
|
5553
5554
|
a({ type: String, reflect: !0 })
|
|
5554
|
-
],
|
|
5555
|
-
|
|
5555
|
+
], Ot.prototype, "mode", 2);
|
|
5556
|
+
fe([
|
|
5556
5557
|
a({ type: String })
|
|
5557
|
-
],
|
|
5558
|
-
|
|
5559
|
-
|
|
5560
|
-
],
|
|
5561
|
-
|
|
5558
|
+
], Ot.prototype, "size", 2);
|
|
5559
|
+
fe([
|
|
5560
|
+
et({ selector: "ds-radio" })
|
|
5561
|
+
], Ot.prototype, "radioElements", 2);
|
|
5562
|
+
Ot = fe([
|
|
5562
5563
|
b("ds-radio-group", { skipTagAsComponentName: !0 })
|
|
5563
|
-
],
|
|
5564
|
-
const Cn =
|
|
5564
|
+
], Ot);
|
|
5565
|
+
const Cn = h`
|
|
5565
5566
|
:host {
|
|
5566
5567
|
display: inline-block;
|
|
5567
5568
|
}
|
|
@@ -5598,12 +5599,12 @@ const Cn = d`
|
|
|
5598
5599
|
transform: scale(1);
|
|
5599
5600
|
}
|
|
5600
5601
|
`;
|
|
5601
|
-
var En = Object.defineProperty, On = Object.getOwnPropertyDescriptor,
|
|
5602
|
+
var En = Object.defineProperty, On = Object.getOwnPropertyDescriptor, kt = (t, e, i, r) => {
|
|
5602
5603
|
for (var s = r > 1 ? void 0 : r ? On(e, i) : e, o = t.length - 1, n; o >= 0; o--)
|
|
5603
5604
|
(n = t[o]) && (s = (r ? n(e, i, s) : n(s)) || s);
|
|
5604
5605
|
return r && s && En(e, i, s), s;
|
|
5605
5606
|
};
|
|
5606
|
-
let
|
|
5607
|
+
let Q = class extends f {
|
|
5607
5608
|
constructor() {
|
|
5608
5609
|
super(...arguments), this.readonly = !1, this.checked = !1, this.disabled = !1, this.mode = "light", this.size = "large", this.handleClickInput = (t) => {
|
|
5609
5610
|
this.readonly && t.preventDefault();
|
|
@@ -5667,45 +5668,45 @@ let J = class extends f {
|
|
|
5667
5668
|
`;
|
|
5668
5669
|
}
|
|
5669
5670
|
};
|
|
5670
|
-
|
|
5671
|
-
|
|
5671
|
+
Q.styles = [Cn];
|
|
5672
|
+
kt([
|
|
5672
5673
|
a({ type: Boolean, converter: m, reflect: !0 })
|
|
5673
|
-
],
|
|
5674
|
-
|
|
5674
|
+
], Q.prototype, "readonly", 2);
|
|
5675
|
+
kt([
|
|
5675
5676
|
a({ type: String, reflect: !0 })
|
|
5676
|
-
],
|
|
5677
|
-
|
|
5677
|
+
], Q.prototype, "name", 2);
|
|
5678
|
+
kt([
|
|
5678
5679
|
a({ type: String })
|
|
5679
|
-
],
|
|
5680
|
-
|
|
5680
|
+
], Q.prototype, "value", 2);
|
|
5681
|
+
kt([
|
|
5681
5682
|
a({ type: Boolean, converter: m, reflect: !0 })
|
|
5682
|
-
],
|
|
5683
|
-
|
|
5683
|
+
], Q.prototype, "checked", 2);
|
|
5684
|
+
kt([
|
|
5684
5685
|
a({ type: Boolean, converter: m, reflect: !0 })
|
|
5685
|
-
],
|
|
5686
|
-
|
|
5686
|
+
], Q.prototype, "disabled", 2);
|
|
5687
|
+
kt([
|
|
5687
5688
|
a({ type: String, reflect: !0 })
|
|
5688
|
-
],
|
|
5689
|
-
|
|
5689
|
+
], Q.prototype, "mode", 2);
|
|
5690
|
+
kt([
|
|
5690
5691
|
a({ type: String })
|
|
5691
|
-
],
|
|
5692
|
-
|
|
5692
|
+
], Q.prototype, "size", 2);
|
|
5693
|
+
kt([
|
|
5693
5694
|
As({ slot: "", flatten: !0 })
|
|
5694
|
-
],
|
|
5695
|
-
|
|
5695
|
+
], Q.prototype, "_defaultSlotNodes", 2);
|
|
5696
|
+
Q = kt([
|
|
5696
5697
|
b("ds-radio")
|
|
5697
|
-
],
|
|
5698
|
-
const zn =
|
|
5698
|
+
], Q);
|
|
5699
|
+
const zn = h`
|
|
5699
5700
|
:host {
|
|
5700
5701
|
display: contents;
|
|
5701
5702
|
}
|
|
5702
5703
|
`;
|
|
5703
|
-
var In = Object.defineProperty, An = Object.getOwnPropertyDescriptor,
|
|
5704
|
+
var In = Object.defineProperty, An = Object.getOwnPropertyDescriptor, dt = (t, e, i, r) => {
|
|
5704
5705
|
for (var s = r > 1 ? void 0 : r ? An(e, i) : e, o = t.length - 1, n; o >= 0; o--)
|
|
5705
5706
|
(n = t[o]) && (s = (r ? n(e, i, s) : n(s)) || s);
|
|
5706
5707
|
return r && s && In(e, i, s), s;
|
|
5707
5708
|
};
|
|
5708
|
-
let
|
|
5709
|
+
let Y = class extends js(f) {
|
|
5709
5710
|
constructor() {
|
|
5710
5711
|
super(...arguments), this.size = "medium", this.variant = "primary", this.loading = !1, this.helperText = "", this.forcedError = "", this.invalidError = "", this.dataAriaLabelRemoveButton = "", this.dataAriaLabelPositionButton = "", this.withPositionButton = !0, this.handleRemove = () => {
|
|
5711
5712
|
this.nativeInput.value = "", this.nativeInput.focus(), ["input", "change"].forEach(
|
|
@@ -5813,38 +5814,38 @@ let K = class extends js(f) {
|
|
|
5813
5814
|
return Fs(r) ? l`<span class="char-counter">${((i = this.inputStates.currentValue) == null ? void 0 : i.length) || 0}/${r}</span>` : c;
|
|
5814
5815
|
}
|
|
5815
5816
|
};
|
|
5816
|
-
|
|
5817
|
-
|
|
5817
|
+
Y.styles = [zn];
|
|
5818
|
+
dt([
|
|
5818
5819
|
a({ type: String })
|
|
5819
|
-
],
|
|
5820
|
-
|
|
5820
|
+
], Y.prototype, "size", 2);
|
|
5821
|
+
dt([
|
|
5821
5822
|
a({ type: String })
|
|
5822
|
-
],
|
|
5823
|
-
|
|
5823
|
+
], Y.prototype, "variant", 2);
|
|
5824
|
+
dt([
|
|
5824
5825
|
a({ type: Boolean, converter: m })
|
|
5825
|
-
],
|
|
5826
|
-
|
|
5826
|
+
], Y.prototype, "loading", 2);
|
|
5827
|
+
dt([
|
|
5827
5828
|
a({ type: String, attribute: "helper-text" })
|
|
5828
|
-
],
|
|
5829
|
-
|
|
5829
|
+
], Y.prototype, "helperText", 2);
|
|
5830
|
+
dt([
|
|
5830
5831
|
a({ type: String, attribute: "forced-error" })
|
|
5831
|
-
],
|
|
5832
|
-
|
|
5832
|
+
], Y.prototype, "forcedError", 2);
|
|
5833
|
+
dt([
|
|
5833
5834
|
a({ type: String, attribute: "invalid-error" })
|
|
5834
|
-
],
|
|
5835
|
-
|
|
5835
|
+
], Y.prototype, "invalidError", 2);
|
|
5836
|
+
dt([
|
|
5836
5837
|
a({ type: String, attribute: "data-aria-label-remove-button" })
|
|
5837
|
-
],
|
|
5838
|
-
|
|
5838
|
+
], Y.prototype, "dataAriaLabelRemoveButton", 2);
|
|
5839
|
+
dt([
|
|
5839
5840
|
a({ type: String, attribute: "data-aria-label-position-button" })
|
|
5840
|
-
],
|
|
5841
|
-
|
|
5841
|
+
], Y.prototype, "dataAriaLabelPositionButton", 2);
|
|
5842
|
+
dt([
|
|
5842
5843
|
a({ type: Boolean, converter: m, attribute: "with-position-button" })
|
|
5843
|
-
],
|
|
5844
|
-
|
|
5844
|
+
], Y.prototype, "withPositionButton", 2);
|
|
5845
|
+
Y = dt([
|
|
5845
5846
|
b("ds-search-input")
|
|
5846
|
-
],
|
|
5847
|
-
const _n =
|
|
5847
|
+
], Y);
|
|
5848
|
+
const _n = h`
|
|
5848
5849
|
:host {
|
|
5849
5850
|
display: block;
|
|
5850
5851
|
width: 100%;
|
|
@@ -5854,11 +5855,11 @@ const _n = d`
|
|
|
5854
5855
|
.helper-text {
|
|
5855
5856
|
user-select: none;
|
|
5856
5857
|
}
|
|
5857
|
-
`, Pn =
|
|
5858
|
+
`, Pn = h`
|
|
5858
5859
|
.container {
|
|
5859
5860
|
position: relative;
|
|
5860
5861
|
}
|
|
5861
|
-
`, Nn =
|
|
5862
|
+
`, Nn = h`
|
|
5862
5863
|
.input-field::-webkit-search-decoration,
|
|
5863
5864
|
.input-field::-webkit-search-cancel-button,
|
|
5864
5865
|
.input-field::-webkit-search-results-button,
|
|
@@ -5879,14 +5880,14 @@ const _n = d`
|
|
|
5879
5880
|
.input-field:focus {
|
|
5880
5881
|
outline: none;
|
|
5881
5882
|
}
|
|
5882
|
-
`, Bn =
|
|
5883
|
+
`, Bn = h`
|
|
5883
5884
|
.helper-text {
|
|
5884
5885
|
cursor: pointer;
|
|
5885
5886
|
display: flex;
|
|
5886
5887
|
justify-content: flex-start;
|
|
5887
5888
|
align-items: center;
|
|
5888
5889
|
}
|
|
5889
|
-
`, Ln =
|
|
5890
|
+
`, Ln = h`
|
|
5890
5891
|
.input-container {
|
|
5891
5892
|
align-items: center;
|
|
5892
5893
|
justify-content: center;
|
|
@@ -6083,12 +6084,12 @@ L([
|
|
|
6083
6084
|
y()
|
|
6084
6085
|
], _.prototype, "focused", 2);
|
|
6085
6086
|
L([
|
|
6086
|
-
|
|
6087
|
+
ct(".input-field")
|
|
6087
6088
|
], _.prototype, "inputField", 2);
|
|
6088
6089
|
_ = L([
|
|
6089
6090
|
b("ds-search")
|
|
6090
6091
|
], _);
|
|
6091
|
-
const jn =
|
|
6092
|
+
const jn = h`
|
|
6092
6093
|
:host {
|
|
6093
6094
|
display: contents;
|
|
6094
6095
|
}
|
|
@@ -6098,7 +6099,7 @@ var Fn = Object.defineProperty, Rn = Object.getOwnPropertyDescriptor, ht = (t, e
|
|
|
6098
6099
|
(n = t[o]) && (s = (r ? n(e, i, s) : n(s)) || s);
|
|
6099
6100
|
return r && s && Fn(e, i, s), s;
|
|
6100
6101
|
};
|
|
6101
|
-
let G = class extends
|
|
6102
|
+
let G = class extends _t(f) {
|
|
6102
6103
|
constructor() {
|
|
6103
6104
|
super(...arguments), this.dropdownButtonText = "Menu", this.openItems = !1, this.openCtas = !1, this.hasScrollLeft = !1, this.hasScrollRight = !1, this.resizeObserver = new ResizeObserver(() => {
|
|
6104
6105
|
this.handleScroll();
|
|
@@ -6125,6 +6126,7 @@ let G = class extends At(f) {
|
|
|
6125
6126
|
get classes() {
|
|
6126
6127
|
return {
|
|
6127
6128
|
nav: !0,
|
|
6129
|
+
"ds-blur": !0,
|
|
6128
6130
|
"scroll-left": this.hasScrollLeft,
|
|
6129
6131
|
"scroll-right": this.hasScrollRight
|
|
6130
6132
|
};
|
|
@@ -6238,7 +6240,7 @@ let G = class extends At(f) {
|
|
|
6238
6240
|
aria-hidden=${!this.openItems}
|
|
6239
6241
|
>
|
|
6240
6242
|
<div
|
|
6241
|
-
class="dropdown"
|
|
6243
|
+
class="dropdown ds-blur"
|
|
6242
6244
|
>
|
|
6243
6245
|
<slot name="items" @slotchange=${this.handleItemsSlotChange} @click=${this.handleItemClick}></slot>
|
|
6244
6246
|
</div>
|
|
@@ -6267,7 +6269,7 @@ let G = class extends At(f) {
|
|
|
6267
6269
|
aria-hidden=${!this.openCtas}
|
|
6268
6270
|
>
|
|
6269
6271
|
<div
|
|
6270
|
-
class="dropdown"
|
|
6272
|
+
class="dropdown ds-blur"
|
|
6271
6273
|
|
|
6272
6274
|
>
|
|
6273
6275
|
<slot name="actions"></slot>
|
|
@@ -6299,18 +6301,18 @@ ht([
|
|
|
6299
6301
|
y()
|
|
6300
6302
|
], G.prototype, "hasScrollRight", 2);
|
|
6301
6303
|
ht([
|
|
6302
|
-
|
|
6304
|
+
et({ slot: "items" })
|
|
6303
6305
|
], G.prototype, "items", 2);
|
|
6304
6306
|
ht([
|
|
6305
|
-
|
|
6307
|
+
et({ slot: "actions" })
|
|
6306
6308
|
], G.prototype, "ctas", 2);
|
|
6307
6309
|
ht([
|
|
6308
|
-
|
|
6310
|
+
ct(".items-container")
|
|
6309
6311
|
], G.prototype, "itemsContainer", 2);
|
|
6310
6312
|
G = ht([
|
|
6311
6313
|
b("ds-secondary-navigation")
|
|
6312
6314
|
], G);
|
|
6313
|
-
const Un =
|
|
6315
|
+
const Un = h`
|
|
6314
6316
|
:host {
|
|
6315
6317
|
display: flex;
|
|
6316
6318
|
flex: 1 1 auto;
|
|
@@ -6359,7 +6361,7 @@ const Un = d`
|
|
|
6359
6361
|
flex-shrink: 0;
|
|
6360
6362
|
}
|
|
6361
6363
|
`;
|
|
6362
|
-
var Vn = Object.defineProperty, Hn = Object.getOwnPropertyDescriptor,
|
|
6364
|
+
var Vn = Object.defineProperty, Hn = Object.getOwnPropertyDescriptor, ds = (t, e, i, r) => {
|
|
6363
6365
|
for (var s = r > 1 ? void 0 : r ? Hn(e, i) : e, o = t.length - 1, n; o >= 0; o--)
|
|
6364
6366
|
(n = t[o]) && (s = (r ? n(e, i, s) : n(s)) || s);
|
|
6365
6367
|
return r && s && Vn(e, i, s), s;
|
|
@@ -6401,20 +6403,20 @@ let he = class extends f {
|
|
|
6401
6403
|
}
|
|
6402
6404
|
};
|
|
6403
6405
|
he.styles = [Un];
|
|
6404
|
-
|
|
6406
|
+
ds([
|
|
6405
6407
|
a({ type: String })
|
|
6406
6408
|
], he.prototype, "size", 2);
|
|
6407
|
-
|
|
6409
|
+
ds([
|
|
6408
6410
|
a({
|
|
6409
6411
|
type: Boolean,
|
|
6410
6412
|
converter: m,
|
|
6411
6413
|
attribute: "full-width"
|
|
6412
6414
|
})
|
|
6413
6415
|
], he.prototype, "fullWidth", 2);
|
|
6414
|
-
|
|
6415
|
-
|
|
6416
|
+
ds([
|
|
6417
|
+
et({ slot: "", flatten: !0 })
|
|
6416
6418
|
], he.prototype, "slottedElements", 2);
|
|
6417
|
-
he =
|
|
6419
|
+
he = ds([
|
|
6418
6420
|
b("ds-segmented-control")
|
|
6419
6421
|
], he);
|
|
6420
6422
|
const ws = class {
|
|
@@ -6447,7 +6449,7 @@ const ws = class {
|
|
|
6447
6449
|
};
|
|
6448
6450
|
ws.KEYS_WHEN_OPEN = /* @__PURE__ */ new Set(["ArrowDown", "ArrowUp", "Home", "End", "Enter", "Escape", " "]), ws.KEYS_WHEN_CLOSED = /* @__PURE__ */ new Set(["ArrowDown", "ArrowUp", " "]);
|
|
6449
6451
|
let li = ws;
|
|
6450
|
-
const Wn =
|
|
6452
|
+
const Wn = h`
|
|
6451
6453
|
:host {
|
|
6452
6454
|
display: contents;
|
|
6453
6455
|
}
|
|
@@ -6623,8 +6625,8 @@ let I = class extends f {
|
|
|
6623
6625
|
if (o.nodeType !== 3)
|
|
6624
6626
|
return n;
|
|
6625
6627
|
if (o.textContent.trim() === "") return "";
|
|
6626
|
-
const
|
|
6627
|
-
return
|
|
6628
|
+
const d = document.createElement("span");
|
|
6629
|
+
return d.classList.add("text"), d.appendChild(n), d;
|
|
6628
6630
|
});
|
|
6629
6631
|
return l`
|
|
6630
6632
|
<div class="select-outline">
|
|
@@ -6714,21 +6716,21 @@ R([
|
|
|
6714
6716
|
y()
|
|
6715
6717
|
], I.prototype, "hasForcedError", 2);
|
|
6716
6718
|
R([
|
|
6717
|
-
|
|
6719
|
+
et({ slot: "", selector: "select", flatten: !0 })
|
|
6718
6720
|
], I.prototype, "nativeSelects", 2);
|
|
6719
6721
|
R([
|
|
6720
|
-
|
|
6722
|
+
et({ slot: "", selector: "label", flatten: !0 })
|
|
6721
6723
|
], I.prototype, "nativeLabels", 2);
|
|
6722
6724
|
R([
|
|
6723
|
-
|
|
6725
|
+
et({ slot: "forced-error", flatten: !0 })
|
|
6724
6726
|
], I.prototype, "forcedError", 2);
|
|
6725
6727
|
R([
|
|
6726
|
-
|
|
6728
|
+
ct(".select")
|
|
6727
6729
|
], I.prototype, "displaySelect", 2);
|
|
6728
6730
|
I = R([
|
|
6729
6731
|
b("ds-select")
|
|
6730
6732
|
], I);
|
|
6731
|
-
const
|
|
6733
|
+
const Yn = h`
|
|
6732
6734
|
:host {
|
|
6733
6735
|
display: inline-block;
|
|
6734
6736
|
}
|
|
@@ -6738,10 +6740,10 @@ const Gn = d`
|
|
|
6738
6740
|
cursor: pointer;
|
|
6739
6741
|
}
|
|
6740
6742
|
`;
|
|
6741
|
-
var
|
|
6743
|
+
var Gn = Object.defineProperty, Xn = Object.getOwnPropertyDescriptor, Ni = (t, e, i, r) => {
|
|
6742
6744
|
for (var s = r > 1 ? void 0 : r ? Xn(e, i) : e, o = t.length - 1, n; o >= 0; o--)
|
|
6743
6745
|
(n = t[o]) && (s = (r ? n(e, i, s) : n(s)) || s);
|
|
6744
|
-
return r && s &&
|
|
6746
|
+
return r && s && Gn(e, i, s), s;
|
|
6745
6747
|
};
|
|
6746
6748
|
let Qe = class extends f {
|
|
6747
6749
|
get iconTemplate() {
|
|
@@ -6776,7 +6778,7 @@ let Qe = class extends f {
|
|
|
6776
6778
|
`;
|
|
6777
6779
|
}
|
|
6778
6780
|
};
|
|
6779
|
-
Qe.styles = [
|
|
6781
|
+
Qe.styles = [Yn];
|
|
6780
6782
|
Ni([
|
|
6781
6783
|
a({ type: Boolean, converter: m })
|
|
6782
6784
|
], Qe.prototype, "checked", 2);
|
|
@@ -6789,10 +6791,10 @@ function ms({ value: t, min: e, max: i }) {
|
|
|
6789
6791
|
const ci = (t, e, i = 10) => {
|
|
6790
6792
|
const r = Math.pow(10, i), s = Math.round(t * r), o = Math.round(e * r);
|
|
6791
6793
|
return (s + o) / r;
|
|
6792
|
-
},
|
|
6793
|
-
const n = s === "min" ? 1 : 2,
|
|
6794
|
+
}, Ce = ({ step: t = 1, min: e = 0, max: i = 100, proposedValue: r, role: s, currentValues: o }) => {
|
|
6795
|
+
const n = s === "min" ? 1 : 2, d = r;
|
|
6794
6796
|
let u, g = e, $ = i;
|
|
6795
|
-
return Number.isFinite(
|
|
6797
|
+
return Number.isFinite(d) ? (Object.keys(o).forEach((v) => {
|
|
6796
6798
|
if (Number(v) < n && o[v] >= g) {
|
|
6797
6799
|
if (g = o[v], t === 0) return;
|
|
6798
6800
|
let x = e;
|
|
@@ -6806,15 +6808,15 @@ const ci = (t, e, i = 10) => {
|
|
|
6806
6808
|
$ = x;
|
|
6807
6809
|
}
|
|
6808
6810
|
g = ms({ value: g, min: e, max: i }), $ = ms({ value: $, min: e, max: i });
|
|
6809
|
-
}),
|
|
6810
|
-
},
|
|
6811
|
+
}), d <= g || d >= $ ? (u = Math.max(g, Math.min($, d)), { stepValue: u, minLimit: g, maxLimit: $ }) : t === 0 ? { stepValue: d, minLimit: g, maxLimit: $ } : (u = Math.round((d - g) / t) * t + g, u = d - u > $ - d ? $ : u, u = ms({ value: u, min: g, max: $ }), { stepValue: u, minLimit: g, maxLimit: $ })) : { stepValue: o[String(n)], minLimit: g, maxLimit: $ };
|
|
6812
|
+
}, Jn = ({ value: t, fractionDigits: e }) => {
|
|
6811
6813
|
const i = Math.pow(10, e);
|
|
6812
6814
|
return Math.round(t * i) / i;
|
|
6813
|
-
},
|
|
6815
|
+
}, Zn = h`
|
|
6814
6816
|
:host {
|
|
6815
6817
|
display: block;
|
|
6816
6818
|
}
|
|
6817
|
-
`, Qn =
|
|
6819
|
+
`, Qn = Kt`
|
|
6818
6820
|
.current-value-container {
|
|
6819
6821
|
position: relative;
|
|
6820
6822
|
}
|
|
@@ -6823,7 +6825,7 @@ const ci = (t, e, i = 10) => {
|
|
|
6823
6825
|
display: inline-flex;
|
|
6824
6826
|
position: absolute;
|
|
6825
6827
|
}
|
|
6826
|
-
`, ta =
|
|
6828
|
+
`, ta = Kt`
|
|
6827
6829
|
.range-value-container {
|
|
6828
6830
|
display: flex;
|
|
6829
6831
|
justify-content: space-between;
|
|
@@ -6836,7 +6838,7 @@ const ci = (t, e, i = 10) => {
|
|
|
6836
6838
|
.range-value-label:after {
|
|
6837
6839
|
content: ':';
|
|
6838
6840
|
}
|
|
6839
|
-
`, ea =
|
|
6841
|
+
`, ea = Kt`
|
|
6840
6842
|
.track {
|
|
6841
6843
|
position: relative;
|
|
6842
6844
|
cursor: pointer;
|
|
@@ -6853,7 +6855,7 @@ const ci = (t, e, i = 10) => {
|
|
|
6853
6855
|
.track, .track-range {
|
|
6854
6856
|
background-clip: content-box;
|
|
6855
6857
|
}
|
|
6856
|
-
`, sa =
|
|
6858
|
+
`, sa = Kt`
|
|
6857
6859
|
.thumb {
|
|
6858
6860
|
z-index: 2;
|
|
6859
6861
|
position: absolute;
|
|
@@ -6864,7 +6866,7 @@ var ia = Object.defineProperty, ra = Object.getOwnPropertyDescriptor, k = (t, e,
|
|
|
6864
6866
|
(n = t[o]) && (s = (r ? n(e, i, s) : n(s)) || s);
|
|
6865
6867
|
return r && s && ia(e, i, s), s;
|
|
6866
6868
|
};
|
|
6867
|
-
let w = class extends
|
|
6869
|
+
let w = class extends _t(f) {
|
|
6868
6870
|
constructor() {
|
|
6869
6871
|
super(...arguments), this.min = 0, this.max = 100, this.minLabel = "", this.maxLabel = "", this.step = 1, this.initialValueMin = 0, this.mode = "light", this.locale = void 0, this.localeMatcher = "lookup", this.useGrouping = !0, this.minimumIntegerDigits = 1, this.minimumFractionDigits = 0, this.maximumFractionDigits = 3, this.size = "medium", this.disabled = !1, this.keyboardMode = !1, this.getNewValue = (t) => {
|
|
6870
6872
|
const { width: e, left: i } = this.track.getBoundingClientRect(), r = t.type.indexOf("mouse") !== -1 ? t.clientX : t.touches[0].clientX, s = Math.min(Math.max(0, r - i), e) * 100 / e;
|
|
@@ -6874,7 +6876,7 @@ let w = class extends At(f) {
|
|
|
6874
6876
|
typeof this.valueMax != "number" || e <= this.valueMin ? this.activeThumb = "min" : e >= this.valueMax ? this.activeThumb = "max" : e - this.valueMin < this.valueMax - e ? this.activeThumb = "min" : this.activeThumb = "max";
|
|
6875
6877
|
}, this.handleMouseMove = (t) => {
|
|
6876
6878
|
this.animationFrameRequest && cancelAnimationFrame(this.animationFrameRequest), this.animationFrameRequest = requestAnimationFrame(() => {
|
|
6877
|
-
const e = this.getNewValue(t), i = this.activeThumb ?? "min", { stepValue: r } =
|
|
6879
|
+
const e = this.getNewValue(t), i = this.activeThumb ?? "min", { stepValue: r } = Ce({
|
|
6878
6880
|
step: this.step,
|
|
6879
6881
|
min: this.min,
|
|
6880
6882
|
max: this.max,
|
|
@@ -6902,7 +6904,7 @@ let w = class extends At(f) {
|
|
|
6902
6904
|
const s = r === "min" ? this.valueMin : this.valueMax;
|
|
6903
6905
|
i.value = String(s ?? ""), this.keyboardMode && i.classList.add("focus-visible");
|
|
6904
6906
|
}, this.commitInputValue = (t, e) => {
|
|
6905
|
-
const i = t.currentTarget, r = e === 1 ? "min" : "max", { stepValue: s } =
|
|
6907
|
+
const i = t.currentTarget, r = e === 1 ? "min" : "max", { stepValue: s } = Ce({
|
|
6906
6908
|
step: this.step,
|
|
6907
6909
|
min: this.min,
|
|
6908
6910
|
max: this.max,
|
|
@@ -6924,7 +6926,7 @@ let w = class extends At(f) {
|
|
|
6924
6926
|
}, this.onThumbKeyDown = (t, e) => {
|
|
6925
6927
|
if (!this.disabled && (t.key === "ArrowLeft" || t.key === "ArrowRight")) {
|
|
6926
6928
|
t.preventDefault();
|
|
6927
|
-
const i = this.step ?? 1, r = t.key === "ArrowLeft" ? -i : i, s = e === 1 ? "min" : "max", o = (s === "min" ? this.valueMin : this.valueMax) + r, { stepValue: n } =
|
|
6929
|
+
const i = this.step ?? 1, r = t.key === "ArrowLeft" ? -i : i, s = e === 1 ? "min" : "max", o = (s === "min" ? this.valueMin : this.valueMax) + r, { stepValue: n } = Ce({
|
|
6928
6930
|
step: this.step,
|
|
6929
6931
|
min: this.min,
|
|
6930
6932
|
max: this.max,
|
|
@@ -6946,7 +6948,7 @@ let w = class extends At(f) {
|
|
|
6946
6948
|
super.firstUpdated(t), window == null || window.addEventListener("keydown", this.handleKeydown), window == null || window.addEventListener("mousedown", this.handlePointerOrMouseDown), window == null || window.addEventListener("pointerdown", this.handlePointerOrMouseDown), ["min", "max"].forEach((e) => {
|
|
6947
6949
|
const i = this[e === "min" ? "initialValueMin" : "initialValueMax"];
|
|
6948
6950
|
if (typeof i != "number") return;
|
|
6949
|
-
const { stepValue: r } =
|
|
6951
|
+
const { stepValue: r } = Ce({
|
|
6950
6952
|
step: this.step,
|
|
6951
6953
|
min: this.min,
|
|
6952
6954
|
max: this.max,
|
|
@@ -6965,7 +6967,7 @@ let w = class extends At(f) {
|
|
|
6965
6967
|
return e === 0 ? 0 : (t - this.min) / e * 100;
|
|
6966
6968
|
}
|
|
6967
6969
|
handleChange({ value: t, role: e }) {
|
|
6968
|
-
const i =
|
|
6970
|
+
const i = Jn({ value: t, fractionDigits: this.maximumFractionDigits }), r = e === "min" ? "valueMin" : "valueMax";
|
|
6969
6971
|
this[r] !== i && (this[r] = i, this.dispatchEvent(
|
|
6970
6972
|
new CustomEvent("change", {
|
|
6971
6973
|
bubbles: !0,
|
|
@@ -7016,7 +7018,7 @@ let w = class extends At(f) {
|
|
|
7016
7018
|
`;
|
|
7017
7019
|
}
|
|
7018
7020
|
getThumbTemplate(t) {
|
|
7019
|
-
const e = t === 1 ? "min" : "max", i = e === "min" ? this.valueMin : this.valueMax, { minLimit: r, maxLimit: s } =
|
|
7021
|
+
const e = t === 1 ? "min" : "max", i = e === "min" ? this.valueMin : this.valueMax, { minLimit: r, maxLimit: s } = Ce({
|
|
7020
7022
|
step: this.step,
|
|
7021
7023
|
min: this.min,
|
|
7022
7024
|
max: this.max,
|
|
@@ -7081,7 +7083,7 @@ let w = class extends At(f) {
|
|
|
7081
7083
|
formattedValue: s,
|
|
7082
7084
|
unitSymbol: o,
|
|
7083
7085
|
unitSymbolPosition: n
|
|
7084
|
-
} = this.formatNumber(r),
|
|
7086
|
+
} = this.formatNumber(r), d = this.unitSymbolPosition ?? n, u = this.unitSymbol ?? o, g = u ? d === "left" ? `${u} ${s}` : `${s} ${u}` : `${s}`, $ = i ? "number" : "text", v = i ? String(r ?? "") : g, x = t === 1 ? this.inputMinAriaLabel : this.inputMaxAriaLabel, S = typeof this.initialValueMax == "number" ? t === 1 ? "Start value" : "End value" : "Value", T = x ?? S;
|
|
7085
7087
|
return l`
|
|
7086
7088
|
<div class="input-wrapper">
|
|
7087
7089
|
<input
|
|
@@ -7144,7 +7146,7 @@ let w = class extends At(f) {
|
|
|
7144
7146
|
`;
|
|
7145
7147
|
}
|
|
7146
7148
|
};
|
|
7147
|
-
w.styles = [
|
|
7149
|
+
w.styles = [Zn, ea, sa, Qn, ta];
|
|
7148
7150
|
k([
|
|
7149
7151
|
a({ type: Number })
|
|
7150
7152
|
], w.prototype, "min", 2);
|
|
@@ -7225,7 +7227,7 @@ k([
|
|
|
7225
7227
|
a({ type: String, attribute: "input-max-aria-label" })
|
|
7226
7228
|
], w.prototype, "inputMaxAriaLabel", 2);
|
|
7227
7229
|
k([
|
|
7228
|
-
|
|
7230
|
+
ct(".track")
|
|
7229
7231
|
], w.prototype, "track", 2);
|
|
7230
7232
|
k([
|
|
7231
7233
|
y()
|
|
@@ -7248,12 +7250,12 @@ k([
|
|
|
7248
7250
|
w = k([
|
|
7249
7251
|
b("ds-slider")
|
|
7250
7252
|
], w);
|
|
7251
|
-
const oa =
|
|
7253
|
+
const oa = h`
|
|
7252
7254
|
:host {
|
|
7253
7255
|
display: block;
|
|
7254
7256
|
width: 100%;
|
|
7255
7257
|
}
|
|
7256
|
-
`, na =
|
|
7258
|
+
`, na = h`
|
|
7257
7259
|
nav {
|
|
7258
7260
|
display: flex;
|
|
7259
7261
|
justify-content: flex-start;
|
|
@@ -7309,7 +7311,7 @@ const oa = d`
|
|
|
7309
7311
|
.nav-container:hover .nav-arrow {
|
|
7310
7312
|
visibility: visible;
|
|
7311
7313
|
}
|
|
7312
|
-
`, aa =
|
|
7314
|
+
`, aa = h`
|
|
7313
7315
|
::slotted([slot='tab']) {
|
|
7314
7316
|
white-space: nowrap;
|
|
7315
7317
|
-webkit-user-select: none;
|
|
@@ -7327,7 +7329,7 @@ const oa = d`
|
|
|
7327
7329
|
::slotted([slot='tab'][selected]) {
|
|
7328
7330
|
cursor: auto;
|
|
7329
7331
|
}
|
|
7330
|
-
`, la =
|
|
7332
|
+
`, la = h`
|
|
7331
7333
|
::slotted([slot='panel']) {
|
|
7332
7334
|
display: none;
|
|
7333
7335
|
}
|
|
@@ -7345,10 +7347,10 @@ const oa = d`
|
|
|
7345
7347
|
"icon-button-variant": "primary"
|
|
7346
7348
|
}
|
|
7347
7349
|
};
|
|
7348
|
-
var
|
|
7349
|
-
for (var s = r > 1 ? void 0 : r ?
|
|
7350
|
+
var da = Object.defineProperty, ha = Object.getOwnPropertyDescriptor, J = (t, e, i, r) => {
|
|
7351
|
+
for (var s = r > 1 ? void 0 : r ? ha(e, i) : e, o = t.length - 1, n; o >= 0; o--)
|
|
7350
7352
|
(n = t[o]) && (s = (r ? n(e, i, s) : n(s)) || s);
|
|
7351
|
-
return r && s &&
|
|
7353
|
+
return r && s && da(e, i, s), s;
|
|
7352
7354
|
};
|
|
7353
7355
|
let D = class extends f {
|
|
7354
7356
|
constructor() {
|
|
@@ -7436,9 +7438,9 @@ let D = class extends f {
|
|
|
7436
7438
|
}
|
|
7437
7439
|
selectTab(t) {
|
|
7438
7440
|
var e, i, r, s, o;
|
|
7439
|
-
(e = this.tabs) == null || e.forEach((
|
|
7440
|
-
|
|
7441
|
-
}), (i = this.tabs[t]) == null || i.setAttribute("selected", ""), this.panels.forEach((
|
|
7441
|
+
(e = this.tabs) == null || e.forEach((d, u) => {
|
|
7442
|
+
d.removeAttribute("selected"), d.setAttribute("aria-selected", u === t ? "true" : "false");
|
|
7443
|
+
}), (i = this.tabs[t]) == null || i.setAttribute("selected", ""), this.panels.forEach((d) => d.removeAttribute("selected")), (r = this.panels[t]) == null || r.setAttribute("selected", "");
|
|
7442
7444
|
const n = (s = this.tabs) == null ? void 0 : s[this.selectedTab];
|
|
7443
7445
|
this.nav.scrollLeft = (n == null ? void 0 : n.offsetLeft) - ((o = this.nav) == null ? void 0 : o.offsetWidth) / 2;
|
|
7444
7446
|
}
|
|
@@ -7497,43 +7499,43 @@ let D = class extends f {
|
|
|
7497
7499
|
}
|
|
7498
7500
|
};
|
|
7499
7501
|
D.styles = [oa, na, aa, la];
|
|
7500
|
-
|
|
7502
|
+
J([
|
|
7501
7503
|
a({ type: Number, attribute: "selected-tab", reflect: !0 })
|
|
7502
7504
|
], D.prototype, "selectedTab", 2);
|
|
7503
|
-
|
|
7505
|
+
J([
|
|
7504
7506
|
a({ type: String, reflect: !0 })
|
|
7505
7507
|
], D.prototype, "mode", 2);
|
|
7506
|
-
|
|
7508
|
+
J([
|
|
7507
7509
|
a({ type: String, reflect: !0 })
|
|
7508
7510
|
], D.prototype, "variant", 2);
|
|
7509
|
-
|
|
7511
|
+
J([
|
|
7510
7512
|
a({ type: String })
|
|
7511
7513
|
], D.prototype, "size", 2);
|
|
7512
|
-
|
|
7514
|
+
J([
|
|
7513
7515
|
a({ type: Boolean, converter: m })
|
|
7514
7516
|
], D.prototype, "disabled", 2);
|
|
7515
|
-
|
|
7517
|
+
J([
|
|
7516
7518
|
y()
|
|
7517
7519
|
], D.prototype, "focusedTabIndex", 2);
|
|
7518
|
-
|
|
7519
|
-
|
|
7520
|
+
J([
|
|
7521
|
+
ct("nav")
|
|
7520
7522
|
], D.prototype, "nav", 2);
|
|
7521
|
-
|
|
7523
|
+
J([
|
|
7522
7524
|
y()
|
|
7523
7525
|
], D.prototype, "tabs", 2);
|
|
7524
|
-
|
|
7526
|
+
J([
|
|
7525
7527
|
y()
|
|
7526
7528
|
], D.prototype, "panels", 2);
|
|
7527
|
-
|
|
7529
|
+
J([
|
|
7528
7530
|
y()
|
|
7529
7531
|
], D.prototype, "hasScrollLeft", 2);
|
|
7530
|
-
|
|
7532
|
+
J([
|
|
7531
7533
|
y()
|
|
7532
7534
|
], D.prototype, "hasScrollRight", 2);
|
|
7533
|
-
D =
|
|
7535
|
+
D = J([
|
|
7534
7536
|
b("ds-tabs")
|
|
7535
7537
|
], D);
|
|
7536
|
-
const pa =
|
|
7538
|
+
const pa = Kt`
|
|
7537
7539
|
:host {
|
|
7538
7540
|
display: inline-block;
|
|
7539
7541
|
}
|
|
@@ -7543,7 +7545,7 @@ const pa = qt`
|
|
|
7543
7545
|
justify-content: center;
|
|
7544
7546
|
align-items: center;
|
|
7545
7547
|
}
|
|
7546
|
-
`, ua =
|
|
7548
|
+
`, ua = Kt`
|
|
7547
7549
|
.icon.clicable {
|
|
7548
7550
|
cursor: pointer;
|
|
7549
7551
|
}
|
|
@@ -7553,7 +7555,7 @@ var ma = Object.defineProperty, va = Object.getOwnPropertyDescriptor, Gt = (t, e
|
|
|
7553
7555
|
(n = t[o]) && (s = (r ? n(e, i, s) : n(s)) || s);
|
|
7554
7556
|
return r && s && ma(e, i, s), s;
|
|
7555
7557
|
};
|
|
7556
|
-
let
|
|
7558
|
+
let $t = class extends f {
|
|
7557
7559
|
constructor() {
|
|
7558
7560
|
super(...arguments), this.show = !0, this.clickableIcon = !1, this.iconPosition = "left", this.color = "black";
|
|
7559
7561
|
}
|
|
@@ -7588,40 +7590,40 @@ let xt = class extends f {
|
|
|
7588
7590
|
render() {
|
|
7589
7591
|
return this.show ? l`
|
|
7590
7592
|
<div class=${p(this.classes)}>
|
|
7591
|
-
${
|
|
7593
|
+
${nt(this.iconPosition === "left", () => l`${this.iconTemplate}`)}
|
|
7592
7594
|
<slot></slot>
|
|
7593
|
-
${
|
|
7595
|
+
${nt(this.iconPosition === "right", () => l`${this.iconTemplate}`)}
|
|
7594
7596
|
</div>
|
|
7595
7597
|
` : c;
|
|
7596
7598
|
}
|
|
7597
7599
|
};
|
|
7598
|
-
|
|
7600
|
+
$t.styles = [pa, ua];
|
|
7599
7601
|
Gt([
|
|
7600
7602
|
a({ type: Boolean, converter: m })
|
|
7601
|
-
],
|
|
7603
|
+
], $t.prototype, "show", 2);
|
|
7602
7604
|
Gt([
|
|
7603
7605
|
a({
|
|
7604
7606
|
type: Boolean,
|
|
7605
7607
|
converter: m,
|
|
7606
7608
|
attribute: "clickable-icon"
|
|
7607
7609
|
})
|
|
7608
|
-
],
|
|
7610
|
+
], $t.prototype, "clickableIcon", 2);
|
|
7609
7611
|
Gt([
|
|
7610
7612
|
a({ type: String, attribute: "icon-name" })
|
|
7611
|
-
],
|
|
7613
|
+
], $t.prototype, "iconName", 2);
|
|
7612
7614
|
Gt([
|
|
7613
7615
|
a({ type: String, attribute: "icon-position" })
|
|
7614
|
-
],
|
|
7616
|
+
], $t.prototype, "iconPosition", 2);
|
|
7615
7617
|
Gt([
|
|
7616
7618
|
a({ type: String, attribute: "color" })
|
|
7617
|
-
],
|
|
7619
|
+
], $t.prototype, "color", 2);
|
|
7618
7620
|
Gt([
|
|
7619
7621
|
y()
|
|
7620
|
-
],
|
|
7621
|
-
|
|
7622
|
+
], $t.prototype, "onClickHandler", 2);
|
|
7623
|
+
$t = Gt([
|
|
7622
7624
|
b("ds-tag")
|
|
7623
|
-
],
|
|
7624
|
-
const ba =
|
|
7625
|
+
], $t);
|
|
7626
|
+
const ba = h`
|
|
7625
7627
|
:host {
|
|
7626
7628
|
display: contents;
|
|
7627
7629
|
}
|
|
@@ -7643,12 +7645,12 @@ const ba = d`
|
|
|
7643
7645
|
text-transform: uppercase;
|
|
7644
7646
|
}
|
|
7645
7647
|
`;
|
|
7646
|
-
var ya = Object.defineProperty, ga = Object.getOwnPropertyDescriptor,
|
|
7648
|
+
var ya = Object.defineProperty, ga = Object.getOwnPropertyDescriptor, Tt = (t, e, i, r) => {
|
|
7647
7649
|
for (var s = r > 1 ? void 0 : r ? ga(e, i) : e, o = t.length - 1, n; o >= 0; o--)
|
|
7648
7650
|
(n = t[o]) && (s = (r ? n(e, i, s) : n(s)) || s);
|
|
7649
7651
|
return r && s && ya(e, i, s), s;
|
|
7650
7652
|
};
|
|
7651
|
-
let
|
|
7653
|
+
let tt = class extends f {
|
|
7652
7654
|
constructor() {
|
|
7653
7655
|
super(...arguments), this.size = "medium", this.weight = "regular", this.variant = "body", this.mode = "light";
|
|
7654
7656
|
}
|
|
@@ -7684,45 +7686,45 @@ let Q = class extends f {
|
|
|
7684
7686
|
`;
|
|
7685
7687
|
}
|
|
7686
7688
|
};
|
|
7687
|
-
|
|
7688
|
-
|
|
7689
|
+
tt.styles = [ba];
|
|
7690
|
+
Tt([
|
|
7689
7691
|
a({ type: String })
|
|
7690
|
-
],
|
|
7691
|
-
|
|
7692
|
+
], tt.prototype, "size", 2);
|
|
7693
|
+
Tt([
|
|
7692
7694
|
a({ type: String })
|
|
7693
|
-
],
|
|
7694
|
-
|
|
7695
|
+
], tt.prototype, "weight", 2);
|
|
7696
|
+
Tt([
|
|
7695
7697
|
a({ type: String })
|
|
7696
|
-
],
|
|
7697
|
-
|
|
7698
|
+
], tt.prototype, "variant", 2);
|
|
7699
|
+
Tt([
|
|
7698
7700
|
a({ type: String, attribute: "html-tag-name" })
|
|
7699
|
-
],
|
|
7700
|
-
|
|
7701
|
+
], tt.prototype, "htmlTagName", 2);
|
|
7702
|
+
Tt([
|
|
7701
7703
|
a({ type: String })
|
|
7702
|
-
],
|
|
7703
|
-
|
|
7704
|
+
], tt.prototype, "value", 2);
|
|
7705
|
+
Tt([
|
|
7704
7706
|
a({ type: String, reflect: !0 })
|
|
7705
|
-
],
|
|
7706
|
-
|
|
7707
|
+
], tt.prototype, "mode", 2);
|
|
7708
|
+
Tt([
|
|
7707
7709
|
a({ type: String, reflect: !0 })
|
|
7708
|
-
],
|
|
7709
|
-
|
|
7710
|
+
], tt.prototype, "color", 2);
|
|
7711
|
+
Tt([
|
|
7710
7712
|
a({ type: Boolean, converter: m, reflect: !0 })
|
|
7711
|
-
],
|
|
7712
|
-
|
|
7713
|
+
], tt.prototype, "uppercase", 2);
|
|
7714
|
+
tt = Tt([
|
|
7713
7715
|
b("ds-text")
|
|
7714
|
-
],
|
|
7715
|
-
const fa =
|
|
7716
|
+
], tt);
|
|
7717
|
+
const fa = h`
|
|
7716
7718
|
:host {
|
|
7717
7719
|
display: contents;
|
|
7718
7720
|
}
|
|
7719
7721
|
`;
|
|
7720
|
-
var xa = Object.defineProperty, $a = Object.getOwnPropertyDescriptor,
|
|
7722
|
+
var xa = Object.defineProperty, $a = Object.getOwnPropertyDescriptor, xe = (t, e, i, r) => {
|
|
7721
7723
|
for (var s = r > 1 ? void 0 : r ? $a(e, i) : e, o = t.length - 1, n; o >= 0; o--)
|
|
7722
7724
|
(n = t[o]) && (s = (r ? n(e, i, s) : n(s)) || s);
|
|
7723
7725
|
return r && s && xa(e, i, s), s;
|
|
7724
7726
|
};
|
|
7725
|
-
let
|
|
7727
|
+
let zt = class extends js(f) {
|
|
7726
7728
|
constructor() {
|
|
7727
7729
|
super(...arguments), this.keyboardMode = !1, this.size = "medium", this.helperText = "", this.forcedError = "", this.invalidError = "", this.mode = "light";
|
|
7728
7730
|
}
|
|
@@ -7772,25 +7774,25 @@ let Ot = class extends js(f) {
|
|
|
7772
7774
|
return this.forcedError || !this.inputStates.invalid || !this.invalidError ? c : l`<span class="support-text error-text invalid-error">${this.invalidError}</span>`;
|
|
7773
7775
|
}
|
|
7774
7776
|
};
|
|
7775
|
-
|
|
7776
|
-
|
|
7777
|
+
zt.styles = [fa];
|
|
7778
|
+
xe([
|
|
7777
7779
|
a({ type: String })
|
|
7778
|
-
],
|
|
7779
|
-
|
|
7780
|
+
], zt.prototype, "size", 2);
|
|
7781
|
+
xe([
|
|
7780
7782
|
a({ type: String, attribute: "helper-text" })
|
|
7781
|
-
],
|
|
7782
|
-
|
|
7783
|
+
], zt.prototype, "helperText", 2);
|
|
7784
|
+
xe([
|
|
7783
7785
|
a({ type: String, attribute: "forced-error" })
|
|
7784
|
-
],
|
|
7785
|
-
|
|
7786
|
+
], zt.prototype, "forcedError", 2);
|
|
7787
|
+
xe([
|
|
7786
7788
|
a({ type: String, attribute: "invalid-error" })
|
|
7787
|
-
],
|
|
7788
|
-
|
|
7789
|
+
], zt.prototype, "invalidError", 2);
|
|
7790
|
+
xe([
|
|
7789
7791
|
a({ type: String })
|
|
7790
|
-
],
|
|
7791
|
-
|
|
7792
|
+
], zt.prototype, "mode", 2);
|
|
7793
|
+
zt = xe([
|
|
7792
7794
|
b("ds-textarea")
|
|
7793
|
-
],
|
|
7795
|
+
], zt);
|
|
7794
7796
|
const wa = {
|
|
7795
7797
|
cupra: {
|
|
7796
7798
|
fonts: [
|
|
@@ -7816,17 +7818,17 @@ const wa = {
|
|
|
7816
7818
|
]
|
|
7817
7819
|
}
|
|
7818
7820
|
};
|
|
7819
|
-
var Sa = Object.defineProperty, ka = Object.getOwnPropertyDescriptor,
|
|
7821
|
+
var Sa = Object.defineProperty, ka = Object.getOwnPropertyDescriptor, $e = (t, e, i, r) => {
|
|
7820
7822
|
for (var s = r > 1 ? void 0 : r ? ka(e, i) : e, o = t.length - 1, n; o >= 0; o--)
|
|
7821
7823
|
(n = t[o]) && (s = (r ? n(e, i, s) : n(s)) || s);
|
|
7822
7824
|
return r && s && Sa(e, i, s), s;
|
|
7823
7825
|
};
|
|
7824
|
-
let
|
|
7826
|
+
let Rt = class extends ut {
|
|
7825
7827
|
constructor() {
|
|
7826
7828
|
super(...arguments), this.loadFonts = !0, this.loadStyles = !0, this.cssLoaded = !1, this.loadedFonts = /* @__PURE__ */ new Set();
|
|
7827
7829
|
}
|
|
7828
7830
|
updated(t) {
|
|
7829
|
-
super.updated(t), t.has("theme") && (
|
|
7831
|
+
super.updated(t), t.has("theme") && (se.publish("theme", this.theme), window.DS_THEME = this.theme, this.loadThemeFonts(), this.loadThemeStyles().then(() => {
|
|
7830
7832
|
this.cssLoaded = !0;
|
|
7831
7833
|
}));
|
|
7832
7834
|
}
|
|
@@ -7860,7 +7862,7 @@ let Ft = class extends pt {
|
|
|
7860
7862
|
}
|
|
7861
7863
|
loadThemeStyles() {
|
|
7862
7864
|
return this.loadStyles ? new Promise((t, e) => {
|
|
7863
|
-
const i = "/0.
|
|
7865
|
+
const i = "/1.0.0-canary.7", r = `https://ds-assets.cupra.com${i}/styles/${this.theme}/theme.css`;
|
|
7864
7866
|
if (document.head.querySelector(`link[href="${r}"]`)) t();
|
|
7865
7867
|
else {
|
|
7866
7868
|
const s = `ui-kit-theme-${i}`, o = document.getElementById(s), n = document.createElement("link");
|
|
@@ -7872,36 +7874,36 @@ let Ft = class extends pt {
|
|
|
7872
7874
|
return this.cssLoaded ? l`<slot></slot>` : c;
|
|
7873
7875
|
}
|
|
7874
7876
|
};
|
|
7875
|
-
|
|
7877
|
+
$e([
|
|
7876
7878
|
a({ type: Boolean, converter: m, attribute: "load-fonts" })
|
|
7877
|
-
],
|
|
7878
|
-
|
|
7879
|
+
], Rt.prototype, "loadFonts", 2);
|
|
7880
|
+
$e([
|
|
7879
7881
|
a({ type: Boolean, converter: m, attribute: "load-styles" })
|
|
7880
|
-
],
|
|
7881
|
-
|
|
7882
|
-
|
|
7882
|
+
], Rt.prototype, "loadStyles", 2);
|
|
7883
|
+
$e([
|
|
7884
|
+
ve({ context: ks }),
|
|
7883
7885
|
a({ type: String })
|
|
7884
|
-
],
|
|
7885
|
-
|
|
7886
|
+
], Rt.prototype, "theme", 2);
|
|
7887
|
+
$e([
|
|
7886
7888
|
y()
|
|
7887
|
-
],
|
|
7888
|
-
|
|
7889
|
+
], Rt.prototype, "cssLoaded", 2);
|
|
7890
|
+
$e([
|
|
7889
7891
|
y()
|
|
7890
|
-
],
|
|
7891
|
-
|
|
7892
|
+
], Rt.prototype, "loadedFonts", 2);
|
|
7893
|
+
Rt = $e([
|
|
7892
7894
|
b("ds-theme-provider")
|
|
7893
|
-
],
|
|
7894
|
-
const Ta =
|
|
7895
|
+
], Rt);
|
|
7896
|
+
const Ta = h`
|
|
7895
7897
|
:host {
|
|
7896
7898
|
display: contents;
|
|
7897
7899
|
}
|
|
7898
7900
|
`;
|
|
7899
|
-
var Ca = Object.defineProperty, Ea = Object.getOwnPropertyDescriptor,
|
|
7901
|
+
var Ca = Object.defineProperty, Ea = Object.getOwnPropertyDescriptor, we = (t, e, i, r) => {
|
|
7900
7902
|
for (var s = r > 1 ? void 0 : r ? Ea(e, i) : e, o = t.length - 1, n; o >= 0; o--)
|
|
7901
7903
|
(n = t[o]) && (s = (r ? n(e, i, s) : n(s)) || s);
|
|
7902
7904
|
return r && s && Ca(e, i, s), s;
|
|
7903
7905
|
};
|
|
7904
|
-
let
|
|
7906
|
+
let It = class extends f {
|
|
7905
7907
|
constructor() {
|
|
7906
7908
|
super(...arguments), this.status = "default", this.dataId = "", this.title = "", this.text = "", this.dataTemplate = !0;
|
|
7907
7909
|
}
|
|
@@ -7957,8 +7959,8 @@ let zt = class extends f {
|
|
|
7957
7959
|
${this.iconTemplate}
|
|
7958
7960
|
<div class="content">
|
|
7959
7961
|
<div class="header">
|
|
7960
|
-
${
|
|
7961
|
-
${
|
|
7962
|
+
${nt(this.title, () => l`<div class="title">${this.title}</div>`)}
|
|
7963
|
+
${nt(this.text, () => l`<div class="message">${this.text}</div>`)}
|
|
7962
7964
|
</div>
|
|
7963
7965
|
<slot></slot>
|
|
7964
7966
|
</div>
|
|
@@ -7967,27 +7969,27 @@ let zt = class extends f {
|
|
|
7967
7969
|
`;
|
|
7968
7970
|
}
|
|
7969
7971
|
};
|
|
7970
|
-
|
|
7971
|
-
|
|
7972
|
+
It.styles = [Ta];
|
|
7973
|
+
we([
|
|
7972
7974
|
a({ type: String })
|
|
7973
|
-
],
|
|
7974
|
-
|
|
7975
|
+
], It.prototype, "status", 2);
|
|
7976
|
+
we([
|
|
7975
7977
|
a({ type: String, attribute: "data-id", reflect: !0 })
|
|
7976
|
-
],
|
|
7977
|
-
|
|
7978
|
+
], It.prototype, "dataId", 2);
|
|
7979
|
+
we([
|
|
7978
7980
|
a({ type: String })
|
|
7979
|
-
],
|
|
7980
|
-
|
|
7981
|
+
], It.prototype, "title", 2);
|
|
7982
|
+
we([
|
|
7981
7983
|
a({ type: String })
|
|
7982
|
-
],
|
|
7983
|
-
|
|
7984
|
+
], It.prototype, "text", 2);
|
|
7985
|
+
we([
|
|
7984
7986
|
a({ type: Boolean, converter: m, attribute: "data-template", reflect: !0 })
|
|
7985
|
-
],
|
|
7986
|
-
|
|
7987
|
+
], It.prototype, "dataTemplate", 2);
|
|
7988
|
+
It = we([
|
|
7987
7989
|
b("ds-toast-message")
|
|
7988
|
-
],
|
|
7990
|
+
], It);
|
|
7989
7991
|
const Oa = 1e4, za = () => typeof crypto < "u" && typeof crypto.randomUUID == "function" ? crypto.randomUUID() : Math.random().toString(36).substring(2);
|
|
7990
|
-
class
|
|
7992
|
+
class te {
|
|
7991
7993
|
constructor() {
|
|
7992
7994
|
this.toasts = [], this.subscribers = [], this.defaultDuration = Oa, this.handleAddToast = (e) => {
|
|
7993
7995
|
const { id: i = za(), status: r = "default", duration: s = this.defaultDuration, ...o } = e.detail || {}, n = {
|
|
@@ -7997,7 +7999,7 @@ class Qt {
|
|
|
7997
7999
|
exiting: !1
|
|
7998
8000
|
};
|
|
7999
8001
|
n.timeoutId = window.setTimeout(() => {
|
|
8000
|
-
this.toasts.find((
|
|
8002
|
+
this.toasts.find((d) => d.id === i).exiting = !0, this.notifySubscribers();
|
|
8001
8003
|
}, s), this.toasts = [...this.toasts, n], this.notifySubscribers();
|
|
8002
8004
|
}, this.handleRemoveToast = (e) => {
|
|
8003
8005
|
const { id: i, referenceId: r } = e.detail || {};
|
|
@@ -8010,7 +8012,7 @@ class Qt {
|
|
|
8010
8012
|
window.addEventListener("toast:add", this.handleAddToast), window.addEventListener("toast:remove", this.handleRemoveToast);
|
|
8011
8013
|
}
|
|
8012
8014
|
static getInstance() {
|
|
8013
|
-
return
|
|
8015
|
+
return te.instance || (te.instance = new te()), te.instance;
|
|
8014
8016
|
}
|
|
8015
8017
|
removeToast(e) {
|
|
8016
8018
|
const i = this.toasts.find((r) => r.id === e);
|
|
@@ -8029,23 +8031,23 @@ class Qt {
|
|
|
8029
8031
|
this.subscribers.forEach((i) => i(e));
|
|
8030
8032
|
}
|
|
8031
8033
|
}
|
|
8032
|
-
const
|
|
8034
|
+
const di = te.getInstance();
|
|
8033
8035
|
/**
|
|
8034
8036
|
* @license
|
|
8035
8037
|
* Copyright 2020 Google LLC
|
|
8036
8038
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
8037
8039
|
*/
|
|
8038
|
-
const { I: Ia } = tr,
|
|
8040
|
+
const { I: Ia } = tr, hi = () => document.createComment(""), Ee = (t, e, i) => {
|
|
8039
8041
|
var r;
|
|
8040
8042
|
const s = t._$AA.parentNode, o = e === void 0 ? t._$AB : e._$AA;
|
|
8041
8043
|
if (i === void 0) {
|
|
8042
|
-
const n = s.insertBefore(
|
|
8043
|
-
i = new Ia(n,
|
|
8044
|
+
const n = s.insertBefore(hi(), o), d = s.insertBefore(hi(), o);
|
|
8045
|
+
i = new Ia(n, d, t, t.options);
|
|
8044
8046
|
} else {
|
|
8045
|
-
const n = i._$AB.nextSibling,
|
|
8047
|
+
const n = i._$AB.nextSibling, d = i._$AM, u = d !== t;
|
|
8046
8048
|
if (u) {
|
|
8047
8049
|
let g;
|
|
8048
|
-
(r = i._$AQ) == null || r.call(i, t), i._$AM = t, i._$AP !== void 0 && (g = t._$AU) !==
|
|
8050
|
+
(r = i._$AQ) == null || r.call(i, t), i._$AM = t, i._$AP !== void 0 && (g = t._$AU) !== d._$AU && i._$AP(g);
|
|
8049
8051
|
}
|
|
8050
8052
|
if (n !== o || u) {
|
|
8051
8053
|
let g = i._$AA;
|
|
@@ -8056,7 +8058,7 @@ const { I: Ia } = tr, di = () => document.createComment(""), Ce = (t, e, i) => {
|
|
|
8056
8058
|
}
|
|
8057
8059
|
}
|
|
8058
8060
|
return i;
|
|
8059
|
-
},
|
|
8061
|
+
}, Bt = (t, e, i = t) => (t._$AI(e, i), t), Aa = {}, _a = (t, e = Aa) => t._$AH = e, Pa = (t) => t._$AH, vs = (t) => {
|
|
8060
8062
|
t._$AR(), t._$AA.remove();
|
|
8061
8063
|
};
|
|
8062
8064
|
/**
|
|
@@ -8077,7 +8079,7 @@ const pi = (t, e, i) => {
|
|
|
8077
8079
|
i === void 0 ? i = e : e !== void 0 && (r = e);
|
|
8078
8080
|
const s = [], o = [];
|
|
8079
8081
|
let n = 0;
|
|
8080
|
-
for (const
|
|
8082
|
+
for (const d of t) s[n] = r ? r(d, n) : n, o[n] = i(d, n), n++;
|
|
8081
8083
|
return { values: o, keys: s };
|
|
8082
8084
|
}
|
|
8083
8085
|
render(t, e, i) {
|
|
@@ -8086,34 +8088,34 @@ const pi = (t, e, i) => {
|
|
|
8086
8088
|
update(t, [e, i, r]) {
|
|
8087
8089
|
const s = Pa(t), { values: o, keys: n } = this.dt(e, i, r);
|
|
8088
8090
|
if (!Array.isArray(s)) return this.ut = n, o;
|
|
8089
|
-
const
|
|
8091
|
+
const d = this.ut ?? (this.ut = []), u = [];
|
|
8090
8092
|
let g, $, v = 0, x = s.length - 1, S = 0, T = o.length - 1;
|
|
8091
8093
|
for (; v <= x && S <= T; ) if (s[v] === null) v++;
|
|
8092
8094
|
else if (s[x] === null) x--;
|
|
8093
|
-
else if (
|
|
8094
|
-
else if (
|
|
8095
|
-
else if (
|
|
8096
|
-
else if (
|
|
8097
|
-
else if (g === void 0 && (g = pi(n, S, T), $ = pi(
|
|
8098
|
-
const z = $.get(n[S]),
|
|
8099
|
-
if (
|
|
8100
|
-
const
|
|
8101
|
-
|
|
8102
|
-
} else u[S] =
|
|
8095
|
+
else if (d[v] === n[S]) u[S] = Bt(s[v], o[S]), v++, S++;
|
|
8096
|
+
else if (d[x] === n[T]) u[T] = Bt(s[x], o[T]), x--, T--;
|
|
8097
|
+
else if (d[v] === n[T]) u[T] = Bt(s[v], o[T]), Ee(t, u[T + 1], s[v]), v++, T--;
|
|
8098
|
+
else if (d[x] === n[S]) u[S] = Bt(s[x], o[S]), Ee(t, s[v], s[x]), x--, S++;
|
|
8099
|
+
else if (g === void 0 && (g = pi(n, S, T), $ = pi(d, v, x)), g.has(d[v])) if (g.has(d[x])) {
|
|
8100
|
+
const z = $.get(n[S]), pt = z !== void 0 ? s[z] : null;
|
|
8101
|
+
if (pt === null) {
|
|
8102
|
+
const ke = Ee(t, s[v]);
|
|
8103
|
+
Bt(ke, o[S]), u[S] = ke;
|
|
8104
|
+
} else u[S] = Bt(pt, o[S]), Ee(t, s[v], pt), s[z] = null;
|
|
8103
8105
|
S++;
|
|
8104
8106
|
} else vs(s[x]), x--;
|
|
8105
8107
|
else vs(s[v]), v++;
|
|
8106
8108
|
for (; S <= T; ) {
|
|
8107
|
-
const z =
|
|
8108
|
-
|
|
8109
|
+
const z = Ee(t, u[T + 1]);
|
|
8110
|
+
Bt(z, o[S]), u[S++] = z;
|
|
8109
8111
|
}
|
|
8110
8112
|
for (; v <= x; ) {
|
|
8111
8113
|
const z = s[v++];
|
|
8112
8114
|
z !== null && vs(z);
|
|
8113
8115
|
}
|
|
8114
|
-
return this.ut = n, _a(t, u),
|
|
8116
|
+
return this.ut = n, _a(t, u), mt;
|
|
8115
8117
|
}
|
|
8116
|
-
}), Ba =
|
|
8118
|
+
}), Ba = h`
|
|
8117
8119
|
:host {
|
|
8118
8120
|
display: contents;
|
|
8119
8121
|
}
|
|
@@ -8154,7 +8156,7 @@ const pi = (t, e, i) => {
|
|
|
8154
8156
|
left: 1rem;
|
|
8155
8157
|
align-items: flex-start;
|
|
8156
8158
|
}
|
|
8157
|
-
`, La =
|
|
8159
|
+
`, La = h`
|
|
8158
8160
|
.toast {
|
|
8159
8161
|
margin-bottom: 1rem;
|
|
8160
8162
|
animation: toast-in-top 0.3s cubic-bezier(0, 0, 0.2, 1) forwards;
|
|
@@ -8227,7 +8229,7 @@ let Me = class extends f {
|
|
|
8227
8229
|
super(...arguments), this.position = "top-right", this.toasts = [], this.unsubscribe = null;
|
|
8228
8230
|
}
|
|
8229
8231
|
connectedCallback() {
|
|
8230
|
-
super.connectedCallback(), this.unsubscribe =
|
|
8232
|
+
super.connectedCallback(), this.unsubscribe = di.subscribe((t) => {
|
|
8231
8233
|
this.toasts = t;
|
|
8232
8234
|
});
|
|
8233
8235
|
}
|
|
@@ -8238,7 +8240,7 @@ let Me = class extends f {
|
|
|
8238
8240
|
const e = t.target;
|
|
8239
8241
|
if (e.classList.contains("exiting") && (t.animationName === "toast-out-left" || t.animationName === "toast-out-right")) {
|
|
8240
8242
|
const i = e.getAttribute("data-id");
|
|
8241
|
-
i &&
|
|
8243
|
+
i && di.removeToast(i);
|
|
8242
8244
|
}
|
|
8243
8245
|
}
|
|
8244
8246
|
getToastMessageTemplate(t) {
|
|
@@ -8302,7 +8304,7 @@ var ja = Object.defineProperty, Fa = Object.getOwnPropertyDescriptor, qe = (t, e
|
|
|
8302
8304
|
(n = t[o]) && (s = (r ? n(e, i, s) : n(s)) || s);
|
|
8303
8305
|
return r && s && ja(e, i, s), s;
|
|
8304
8306
|
};
|
|
8305
|
-
let
|
|
8307
|
+
let pe = class extends O {
|
|
8306
8308
|
constructor() {
|
|
8307
8309
|
super(...arguments), this.checked = !1, this.checkedText = "", this.uncheckedText = "", this.rounded = !0;
|
|
8308
8310
|
}
|
|
@@ -8336,29 +8338,29 @@ let de = class extends O {
|
|
|
8336
8338
|
type=${this.type}
|
|
8337
8339
|
@click=${this.handleClick}
|
|
8338
8340
|
>
|
|
8339
|
-
${
|
|
8341
|
+
${nt(this.iconPosition === "left", () => l`${this.iconTemplate}`)}
|
|
8340
8342
|
${this.checked ? this.checkedText : this.uncheckedText}
|
|
8341
|
-
${
|
|
8343
|
+
${nt(this.iconPosition === "right", () => l`${this.iconTemplate}`)}
|
|
8342
8344
|
</button>
|
|
8343
8345
|
`;
|
|
8344
8346
|
}
|
|
8345
8347
|
};
|
|
8346
8348
|
qe([
|
|
8347
8349
|
a({ type: Boolean, converter: m, reflect: !0 })
|
|
8348
|
-
],
|
|
8350
|
+
], pe.prototype, "checked", 2);
|
|
8349
8351
|
qe([
|
|
8350
8352
|
a({ type: String, attribute: "checked-text" })
|
|
8351
|
-
],
|
|
8353
|
+
], pe.prototype, "checkedText", 2);
|
|
8352
8354
|
qe([
|
|
8353
8355
|
a({ type: String, attribute: "unchecked-text" })
|
|
8354
|
-
],
|
|
8356
|
+
], pe.prototype, "uncheckedText", 2);
|
|
8355
8357
|
qe([
|
|
8356
8358
|
a({ type: Boolean, converter: m })
|
|
8357
|
-
],
|
|
8358
|
-
|
|
8359
|
+
], pe.prototype, "rounded", 2);
|
|
8360
|
+
pe = qe([
|
|
8359
8361
|
b("ds-toggle-button", { skipTagAsComponentName: !0, extendComponentNames: ["ds-button"] })
|
|
8360
|
-
],
|
|
8361
|
-
const Ra =
|
|
8362
|
+
], pe);
|
|
8363
|
+
const Ra = h`
|
|
8362
8364
|
.container {
|
|
8363
8365
|
display: flex;
|
|
8364
8366
|
justify-content: flex-start;
|
|
@@ -8398,12 +8400,12 @@ const Ra = d`
|
|
|
8398
8400
|
transition: left 200ms ease-in-out;
|
|
8399
8401
|
}
|
|
8400
8402
|
`;
|
|
8401
|
-
var Ua = Object.defineProperty, Va = Object.getOwnPropertyDescriptor,
|
|
8403
|
+
var Ua = Object.defineProperty, Va = Object.getOwnPropertyDescriptor, Se = (t, e, i, r) => {
|
|
8402
8404
|
for (var s = r > 1 ? void 0 : r ? Va(e, i) : e, o = t.length - 1, n; o >= 0; o--)
|
|
8403
8405
|
(n = t[o]) && (s = (r ? n(e, i, s) : n(s)) || s);
|
|
8404
8406
|
return r && s && Ua(e, i, s), s;
|
|
8405
8407
|
};
|
|
8406
|
-
let
|
|
8408
|
+
let At = class extends f {
|
|
8407
8409
|
constructor() {
|
|
8408
8410
|
super(...arguments), this.size = "medium", this.checked = !1, this.disabled = !1, this.mode = "light";
|
|
8409
8411
|
}
|
|
@@ -8466,26 +8468,26 @@ let It = class extends f {
|
|
|
8466
8468
|
`;
|
|
8467
8469
|
}
|
|
8468
8470
|
};
|
|
8469
|
-
|
|
8470
|
-
|
|
8471
|
+
At.styles = [Ra];
|
|
8472
|
+
Se([
|
|
8471
8473
|
a({ type: String })
|
|
8472
|
-
],
|
|
8473
|
-
|
|
8474
|
+
], At.prototype, "size", 2);
|
|
8475
|
+
Se([
|
|
8474
8476
|
a({ type: Boolean, converter: m, reflect: !0 })
|
|
8475
|
-
],
|
|
8476
|
-
|
|
8477
|
+
], At.prototype, "checked", 2);
|
|
8478
|
+
Se([
|
|
8477
8479
|
a({ type: Boolean, converter: m, reflect: !0 })
|
|
8478
|
-
],
|
|
8479
|
-
|
|
8480
|
+
], At.prototype, "disabled", 2);
|
|
8481
|
+
Se([
|
|
8480
8482
|
a({ type: String, reflect: !0 })
|
|
8481
|
-
],
|
|
8482
|
-
|
|
8483
|
+
], At.prototype, "mode", 2);
|
|
8484
|
+
Se([
|
|
8483
8485
|
a({ type: String, attribute: "data-aria-label" })
|
|
8484
|
-
],
|
|
8485
|
-
|
|
8486
|
+
], At.prototype, "dataAriaLabel", 2);
|
|
8487
|
+
At = Se([
|
|
8486
8488
|
b("ds-toggle-switch")
|
|
8487
|
-
],
|
|
8488
|
-
const Ha =
|
|
8489
|
+
], At);
|
|
8490
|
+
const Ha = h`
|
|
8489
8491
|
:host {
|
|
8490
8492
|
position: relative;
|
|
8491
8493
|
display: inline-block;
|
|
@@ -8504,7 +8506,7 @@ const Ha = d`
|
|
|
8504
8506
|
grid-template-columns: 1fr 1fr;
|
|
8505
8507
|
justify-content: flex-end;
|
|
8506
8508
|
}
|
|
8507
|
-
`, Wa =
|
|
8509
|
+
`, Wa = h`
|
|
8508
8510
|
.tooltip {
|
|
8509
8511
|
width: max-content;
|
|
8510
8512
|
white-space: normal;
|
|
@@ -8573,7 +8575,7 @@ const Ha = d`
|
|
|
8573
8575
|
bottom: 0;
|
|
8574
8576
|
transform: none;
|
|
8575
8577
|
}
|
|
8576
|
-
`, qa =
|
|
8578
|
+
`, qa = h`
|
|
8577
8579
|
.arrow {
|
|
8578
8580
|
width: 0;
|
|
8579
8581
|
height: 0;
|
|
@@ -8639,12 +8641,12 @@ const Ha = d`
|
|
|
8639
8641
|
transform: none;
|
|
8640
8642
|
}
|
|
8641
8643
|
`;
|
|
8642
|
-
var Ka = Object.defineProperty,
|
|
8643
|
-
for (var s = r > 1 ? void 0 : r ?
|
|
8644
|
+
var Ka = Object.defineProperty, Ya = Object.getOwnPropertyDescriptor, K = (t, e, i, r) => {
|
|
8645
|
+
for (var s = r > 1 ? void 0 : r ? Ya(e, i) : e, o = t.length - 1, n; o >= 0; o--)
|
|
8644
8646
|
(n = t[o]) && (s = (r ? n(e, i, s) : n(s)) || s);
|
|
8645
8647
|
return r && s && Ka(e, i, s), s;
|
|
8646
8648
|
};
|
|
8647
|
-
let M = class extends
|
|
8649
|
+
let M = class extends _t(f) {
|
|
8648
8650
|
constructor() {
|
|
8649
8651
|
super(...arguments), this.mode = "light", this.titleText = "", this.bodyText = "", this.position = "bottom", this.align = "center", this.show = !1, this.zIndex = 2e3, this.bodyWidth = "unset", this.handleResize = Ss({ func: () => this.requestUpdate() }), this.handleClickOutside = (t) => {
|
|
8650
8652
|
var e;
|
|
@@ -8782,56 +8784,56 @@ let M = class extends At(f) {
|
|
|
8782
8784
|
}
|
|
8783
8785
|
};
|
|
8784
8786
|
M.styles = [Ha, Wa, qa];
|
|
8785
|
-
|
|
8787
|
+
K([
|
|
8786
8788
|
a({ type: String, reflect: !0 })
|
|
8787
8789
|
], M.prototype, "mode", 2);
|
|
8788
|
-
|
|
8790
|
+
K([
|
|
8789
8791
|
a({ type: String, attribute: "title-text" })
|
|
8790
8792
|
], M.prototype, "titleText", 2);
|
|
8791
|
-
|
|
8793
|
+
K([
|
|
8792
8794
|
a({ type: String, attribute: "body-text" })
|
|
8793
8795
|
], M.prototype, "bodyText", 2);
|
|
8794
|
-
|
|
8796
|
+
K([
|
|
8795
8797
|
a({ type: String })
|
|
8796
8798
|
], M.prototype, "position", 2);
|
|
8797
|
-
|
|
8799
|
+
K([
|
|
8798
8800
|
a({ type: String })
|
|
8799
8801
|
], M.prototype, "align", 2);
|
|
8800
|
-
|
|
8802
|
+
K([
|
|
8801
8803
|
a({ type: String, attribute: "cancel-button-text" })
|
|
8802
8804
|
], M.prototype, "cancelButtonText", 2);
|
|
8803
|
-
|
|
8805
|
+
K([
|
|
8804
8806
|
a({ type: String, attribute: "confirm-button-text" })
|
|
8805
8807
|
], M.prototype, "confirmButtonText", 2);
|
|
8806
|
-
|
|
8808
|
+
K([
|
|
8807
8809
|
a({ type: Boolean, reflect: !0, converter: m })
|
|
8808
8810
|
], M.prototype, "show", 2);
|
|
8809
|
-
|
|
8811
|
+
K([
|
|
8810
8812
|
a({ type: Number, attribute: "z-index" })
|
|
8811
8813
|
], M.prototype, "zIndex", 2);
|
|
8812
|
-
|
|
8814
|
+
K([
|
|
8813
8815
|
a({ type: String, attribute: "body-width" })
|
|
8814
8816
|
], M.prototype, "bodyWidth", 2);
|
|
8815
|
-
|
|
8816
|
-
|
|
8817
|
+
K([
|
|
8818
|
+
ct(".tooltip")
|
|
8817
8819
|
], M.prototype, "tooltip", 2);
|
|
8818
|
-
|
|
8819
|
-
|
|
8820
|
+
K([
|
|
8821
|
+
ct(".arrow")
|
|
8820
8822
|
], M.prototype, "arrow", 2);
|
|
8821
|
-
M =
|
|
8823
|
+
M = K([
|
|
8822
8824
|
b("ds-tooltip")
|
|
8823
8825
|
], M);
|
|
8824
|
-
const
|
|
8826
|
+
const Ga = h`
|
|
8825
8827
|
:host {
|
|
8826
8828
|
display: contents;
|
|
8827
8829
|
}
|
|
8828
8830
|
`;
|
|
8829
|
-
var Xa = Object.defineProperty,
|
|
8830
|
-
for (var s = r > 1 ? void 0 : r ?
|
|
8831
|
+
var Xa = Object.defineProperty, Ja = Object.getOwnPropertyDescriptor, Ke = (t, e, i, r) => {
|
|
8832
|
+
for (var s = r > 1 ? void 0 : r ? Ja(e, i) : e, o = t.length - 1, n; o >= 0; o--)
|
|
8831
8833
|
(n = t[o]) && (s = (r ? n(e, i, s) : n(s)) || s);
|
|
8832
8834
|
return r && s && Xa(e, i, s), s;
|
|
8833
8835
|
};
|
|
8834
|
-
let
|
|
8836
|
+
let Ut = class extends f {
|
|
8835
8837
|
constructor() {
|
|
8836
8838
|
super(...arguments), this.size = "medium", this.disabled = !1;
|
|
8837
8839
|
}
|
|
@@ -8883,9 +8885,9 @@ let Rt = class extends f {
|
|
|
8883
8885
|
${this.styleTokens}
|
|
8884
8886
|
<div
|
|
8885
8887
|
class=${p(this.classes)}
|
|
8886
|
-
title=${
|
|
8888
|
+
title=${U(this.name)}
|
|
8887
8889
|
aria-label=${`Open ${this.name ? this.name + "'s " : ""}profile menu`}
|
|
8888
|
-
aria-disabled=${
|
|
8890
|
+
aria-disabled=${U(this.disabled ? "true" : void 0)}
|
|
8889
8891
|
role="button"
|
|
8890
8892
|
tabindex=${this.disabled ? -1 : 0}
|
|
8891
8893
|
@keydown=${this.handleKeyDown}
|
|
@@ -8897,23 +8899,23 @@ let Rt = class extends f {
|
|
|
8897
8899
|
`;
|
|
8898
8900
|
}
|
|
8899
8901
|
};
|
|
8900
|
-
|
|
8902
|
+
Ut.styles = [Ga];
|
|
8901
8903
|
Ke([
|
|
8902
8904
|
a({ type: String })
|
|
8903
|
-
],
|
|
8905
|
+
], Ut.prototype, "size", 2);
|
|
8904
8906
|
Ke([
|
|
8905
8907
|
a({ type: String })
|
|
8906
|
-
],
|
|
8908
|
+
], Ut.prototype, "name", 2);
|
|
8907
8909
|
Ke([
|
|
8908
8910
|
a({ type: Boolean, converter: m, reflect: !0 })
|
|
8909
|
-
],
|
|
8911
|
+
], Ut.prototype, "disabled", 2);
|
|
8910
8912
|
Ke([
|
|
8911
|
-
|
|
8912
|
-
],
|
|
8913
|
-
|
|
8913
|
+
et({ slot: "media", selector: "img" })
|
|
8914
|
+
], Ut.prototype, "assignedImages", 2);
|
|
8915
|
+
Ut = Ke([
|
|
8914
8916
|
b("ds-avatar")
|
|
8915
|
-
],
|
|
8916
|
-
const
|
|
8917
|
+
], Ut);
|
|
8918
|
+
const Za = h`
|
|
8917
8919
|
:host {
|
|
8918
8920
|
display: contents;
|
|
8919
8921
|
}
|
|
@@ -8954,7 +8956,7 @@ let De = class extends f {
|
|
|
8954
8956
|
`;
|
|
8955
8957
|
}
|
|
8956
8958
|
};
|
|
8957
|
-
De.styles = [
|
|
8959
|
+
De.styles = [Za];
|
|
8958
8960
|
Us([
|
|
8959
8961
|
a({ type: Number, attribute: "steps", reflect: !0 })
|
|
8960
8962
|
], De.prototype, "steps", 2);
|
|
@@ -8964,17 +8966,17 @@ Us([
|
|
|
8964
8966
|
De = Us([
|
|
8965
8967
|
b("ds-stepper")
|
|
8966
8968
|
], De);
|
|
8967
|
-
const el =
|
|
8969
|
+
const el = h`
|
|
8968
8970
|
:host {
|
|
8969
8971
|
display: contents;
|
|
8970
8972
|
}
|
|
8971
8973
|
`;
|
|
8972
|
-
var sl = Object.defineProperty, il = Object.getOwnPropertyDescriptor,
|
|
8974
|
+
var sl = Object.defineProperty, il = Object.getOwnPropertyDescriptor, hs = (t, e, i, r) => {
|
|
8973
8975
|
for (var s = r > 1 ? void 0 : r ? il(e, i) : e, o = t.length - 1, n; o >= 0; o--)
|
|
8974
8976
|
(n = t[o]) && (s = (r ? n(e, i, s) : n(s)) || s);
|
|
8975
8977
|
return r && s && sl(e, i, s), s;
|
|
8976
8978
|
};
|
|
8977
|
-
let
|
|
8979
|
+
let ue = class extends _t(f) {
|
|
8978
8980
|
constructor() {
|
|
8979
8981
|
super(...arguments), this.size = "medium";
|
|
8980
8982
|
}
|
|
@@ -9018,20 +9020,20 @@ let pe = class extends At(f) {
|
|
|
9018
9020
|
`;
|
|
9019
9021
|
}
|
|
9020
9022
|
};
|
|
9021
|
-
|
|
9022
|
-
|
|
9023
|
+
ue.styles = [el];
|
|
9024
|
+
hs([
|
|
9023
9025
|
a({ type: String, converter: Fe })
|
|
9024
|
-
],
|
|
9025
|
-
|
|
9026
|
+
], ue.prototype, "size", 2);
|
|
9027
|
+
hs([
|
|
9026
9028
|
As({ slot: "header", flatten: !0 })
|
|
9027
|
-
],
|
|
9028
|
-
|
|
9029
|
+
], ue.prototype, "headerItems", 2);
|
|
9030
|
+
hs([
|
|
9029
9031
|
As({ slot: "footer", flatten: !0 })
|
|
9030
|
-
],
|
|
9031
|
-
|
|
9032
|
+
], ue.prototype, "footerItems", 2);
|
|
9033
|
+
ue = hs([
|
|
9032
9034
|
b("ds-static-box")
|
|
9033
|
-
],
|
|
9034
|
-
const rl =
|
|
9035
|
+
], ue);
|
|
9036
|
+
const rl = h`
|
|
9035
9037
|
:host {
|
|
9036
9038
|
display: contents;
|
|
9037
9039
|
}
|
|
@@ -9041,7 +9043,7 @@ var ol = Object.defineProperty, nl = Object.getOwnPropertyDescriptor, ps = (t, e
|
|
|
9041
9043
|
(n = t[o]) && (s = (r ? n(e, i, s) : n(s)) || s);
|
|
9042
9044
|
return r && s && ol(e, i, s), s;
|
|
9043
9045
|
};
|
|
9044
|
-
let
|
|
9046
|
+
let me = class extends f {
|
|
9045
9047
|
constructor() {
|
|
9046
9048
|
super(...arguments), this.size = "medium", this.selected = !1, this.error = !1, this.handleClick = (t) => {
|
|
9047
9049
|
t.stopPropagation();
|
|
@@ -9070,7 +9072,7 @@ let ue = class extends f {
|
|
|
9070
9072
|
}
|
|
9071
9073
|
get contentTemplate() {
|
|
9072
9074
|
return this.error ? c : l`
|
|
9073
|
-
<div part="container" class=${p(this.classes)} data-testid="ds-interactive-card-container">
|
|
9075
|
+
<div part="container" class=${p(this.classes)} data-testid="ds-interactive-card-container" tabindex="0">
|
|
9074
9076
|
<header class="header" part="header">
|
|
9075
9077
|
<div class="header-main">
|
|
9076
9078
|
<slot name="title" class="title" part="title"></slot>
|
|
@@ -9101,20 +9103,20 @@ let ue = class extends f {
|
|
|
9101
9103
|
`;
|
|
9102
9104
|
}
|
|
9103
9105
|
};
|
|
9104
|
-
|
|
9106
|
+
me.styles = [rl];
|
|
9105
9107
|
ps([
|
|
9106
9108
|
a({ type: String })
|
|
9107
|
-
],
|
|
9109
|
+
], me.prototype, "size", 2);
|
|
9108
9110
|
ps([
|
|
9109
9111
|
a({ type: Boolean, converter: m })
|
|
9110
|
-
],
|
|
9112
|
+
], me.prototype, "selected", 2);
|
|
9111
9113
|
ps([
|
|
9112
9114
|
a({ type: Boolean, converter: m })
|
|
9113
|
-
],
|
|
9114
|
-
|
|
9115
|
+
], me.prototype, "error", 2);
|
|
9116
|
+
me = ps([
|
|
9115
9117
|
b("ds-interactive-card")
|
|
9116
|
-
],
|
|
9117
|
-
const al =
|
|
9118
|
+
], me);
|
|
9119
|
+
const al = h`
|
|
9118
9120
|
:host {
|
|
9119
9121
|
display: contents;
|
|
9120
9122
|
}
|
|
@@ -9145,7 +9147,18 @@ let je = class extends f {
|
|
|
9145
9147
|
const e = t.target.assignedElements().find((i) => i.tagName === "DS-BUTTON");
|
|
9146
9148
|
this.setMainCtaSize(e);
|
|
9147
9149
|
}, this.setMainCtaSize = (t) => {
|
|
9148
|
-
t &&
|
|
9150
|
+
t && t.setAttribute(
|
|
9151
|
+
"size",
|
|
9152
|
+
JSON.stringify({
|
|
9153
|
+
xxl: "large",
|
|
9154
|
+
xl: "large",
|
|
9155
|
+
l: "medium",
|
|
9156
|
+
m: "medium",
|
|
9157
|
+
s: "small",
|
|
9158
|
+
xs: "small",
|
|
9159
|
+
xxs: "small"
|
|
9160
|
+
})
|
|
9161
|
+
);
|
|
9149
9162
|
};
|
|
9150
9163
|
}
|
|
9151
9164
|
firstUpdated(t) {
|
|
@@ -9161,7 +9174,15 @@ let je = class extends f {
|
|
|
9161
9174
|
"@click": this.toggleModal,
|
|
9162
9175
|
"data-testid": "modal-button",
|
|
9163
9176
|
"data-aria-label": "more actions",
|
|
9164
|
-
size: {
|
|
9177
|
+
size: JSON.stringify({
|
|
9178
|
+
xxl: "large",
|
|
9179
|
+
xl: "large",
|
|
9180
|
+
l: "medium",
|
|
9181
|
+
m: "medium",
|
|
9182
|
+
s: "small",
|
|
9183
|
+
xs: "small",
|
|
9184
|
+
xxs: "small"
|
|
9185
|
+
})
|
|
9165
9186
|
});
|
|
9166
9187
|
}
|
|
9167
9188
|
classes() {
|
|
@@ -9198,7 +9219,7 @@ Vs([
|
|
|
9198
9219
|
y()
|
|
9199
9220
|
], je.prototype, "open", 2);
|
|
9200
9221
|
Vs([
|
|
9201
|
-
|
|
9222
|
+
et({ slot: "main-cta", selector: "ds-button", flatten: !0 })
|
|
9202
9223
|
], je.prototype, "mainCtas", 2);
|
|
9203
9224
|
je = Vs([
|
|
9204
9225
|
b("ds-sidebar-navigation")
|