@supersoniks/concorde 3.1.94 → 3.1.95
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/build-infos.json +1 -1
- package/concorde-core.bundle.js +132 -128
- package/concorde-core.es.js +270 -266
- package/dist/concorde-core.bundle.js +132 -128
- package/dist/concorde-core.es.js +270 -266
- package/package.json +1 -1
- package/src/core/components/ui/modal/modal.ts +47 -37
package/concorde-core.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
let
|
|
1
|
+
let et = class Nt {
|
|
2
2
|
/**
|
|
3
3
|
* retourne la langue de la page courante telle que défini via l'attribut lang de la balise html
|
|
4
4
|
*/
|
|
@@ -126,7 +126,7 @@ let Ss = class {
|
|
|
126
126
|
return typeof t != "string" ? t : t.charAt(0).toUpperCase() + t.substring(1);
|
|
127
127
|
}
|
|
128
128
|
static minutesDuration(t, e = "", i = "long") {
|
|
129
|
-
e || (e =
|
|
129
|
+
e || (e = et.getLanguage());
|
|
130
130
|
const s = (h, d) => [Math.floor(h / d), h % d];
|
|
131
131
|
function o(h, d, p) {
|
|
132
132
|
return new Intl.NumberFormat(h, { style: "unit", unit: d, unitDisplay: p }).format;
|
|
@@ -475,7 +475,7 @@ let T = (k = class {
|
|
|
475
475
|
async setLocalData(t, e) {
|
|
476
476
|
var i;
|
|
477
477
|
await this.isLocalStrorageReady, t.set(
|
|
478
|
-
((i = this.localStorageData[e + "¤lang_" +
|
|
478
|
+
((i = this.localStorageData[e + "¤lang_" + et.getLanguage()]) == null ? void 0 : i.data) || t.get()
|
|
479
479
|
);
|
|
480
480
|
}
|
|
481
481
|
get(t, e) {
|
|
@@ -519,7 +519,7 @@ let T = (k = class {
|
|
|
519
519
|
const o = this.publishers.get(s);
|
|
520
520
|
if (!(o != null && o._is_savable_)) continue;
|
|
521
521
|
const n = o == null ? void 0 : o.get();
|
|
522
|
-
n && (this.localStorageData[s + "¤lang_" +
|
|
522
|
+
n && (this.localStorageData[s + "¤lang_" + et.getLanguage()] = {
|
|
523
523
|
lastModifiationMS: (/* @__PURE__ */ new Date()).getTime(),
|
|
524
524
|
expirationDelayMs: o._expiration_delay_,
|
|
525
525
|
data: n
|
|
@@ -559,7 +559,7 @@ let T = (k = class {
|
|
|
559
559
|
const h = await new Response(a.readable).arrayBuffer();
|
|
560
560
|
return new TextDecoder().decode(h);
|
|
561
561
|
}
|
|
562
|
-
}, k.buildDate = "Thu Aug 21 2025
|
|
562
|
+
}, k.buildDate = "Thu Aug 21 2025 12:38:21 GMT+0200 (Central European Summer Time)", k.changed = !1, k.saving = !1, k.saveId = 0, k.instance = null, k.instances = /* @__PURE__ */ new Map(), k.modifiedCollectore = [], k);
|
|
563
563
|
if (typeof window < "u") {
|
|
564
564
|
const r = window;
|
|
565
565
|
r[Os + "PublisherManager"] = r[Os + "PublisherManager"] || T;
|
|
@@ -821,7 +821,7 @@ let Hs = (E = class {
|
|
|
821
821
|
*/
|
|
822
822
|
static addPublisherListeners(t) {
|
|
823
823
|
E.removePublisherListeners(t);
|
|
824
|
-
const e =
|
|
824
|
+
const e = et.getAncestorAttributeValue(
|
|
825
825
|
t.parentNode || t.host || t,
|
|
826
826
|
"dataProvider"
|
|
827
827
|
);
|
|
@@ -871,7 +871,7 @@ let Hs = (E = class {
|
|
|
871
871
|
}, E.observedElements = /* @__PURE__ */ new Map(), E.enabled = !0, E.publisherListeners = /* @__PURE__ */ new Map(), E);
|
|
872
872
|
Hs.observe(document.documentElement);
|
|
873
873
|
window.SonicDataBindObserver || (window.SonicDataBindObserver = Hs);
|
|
874
|
-
let
|
|
874
|
+
let st = class Ht {
|
|
875
875
|
/**
|
|
876
876
|
* Effectue une comparaison d'égalité non profonde entre deux objets.
|
|
877
877
|
*/
|
|
@@ -952,7 +952,7 @@ let et = class Ht {
|
|
|
952
952
|
return Ht.getURLSearchArray(t, "").join("&");
|
|
953
953
|
}
|
|
954
954
|
};
|
|
955
|
-
const pt =
|
|
955
|
+
const pt = st.traverseDotNotation;
|
|
956
956
|
/**
|
|
957
957
|
* @license
|
|
958
958
|
* Copyright 2017 Google LLC
|
|
@@ -1726,7 +1726,7 @@ function Ws(r) {
|
|
|
1726
1726
|
if (typeof r == "string") {
|
|
1727
1727
|
const t = r.split("."), e = t.shift() || "";
|
|
1728
1728
|
let i = T.get(e);
|
|
1729
|
-
i =
|
|
1729
|
+
i = st.traverse(i, t);
|
|
1730
1730
|
const s = /* @__PURE__ */ new Set();
|
|
1731
1731
|
return s.add(i), s;
|
|
1732
1732
|
}
|
|
@@ -1778,7 +1778,7 @@ const ro = $e(nn), an = ro, ln = ro, cn = (r) => {
|
|
|
1778
1778
|
const e = Ws(r).values().next().value;
|
|
1779
1779
|
if (t !== void 0 && e) {
|
|
1780
1780
|
const i = e.get();
|
|
1781
|
-
|
|
1781
|
+
st.isEmpty(i) && e.set(t);
|
|
1782
1782
|
}
|
|
1783
1783
|
return e;
|
|
1784
1784
|
}, hn = oo, no = oo, dn = (r, t) => {
|
|
@@ -1814,7 +1814,7 @@ const ro = $e(nn), an = ro, ln = ro, cn = (r) => {
|
|
|
1814
1814
|
} catch {
|
|
1815
1815
|
o = {};
|
|
1816
1816
|
}
|
|
1817
|
-
this.addHTTPResponse &&
|
|
1817
|
+
this.addHTTPResponse && st.isObject(o) && (o._sonic_http_response_ = t), s === 498 && !z.failledTokenUpdates.has(this.serviceURL) && (this.handleInvalidToken(this.token), e.apiMethod === "get" ? o = await this[e.apiMethod](
|
|
1818
1818
|
e.path,
|
|
1819
1819
|
e.additionalHeaders
|
|
1820
1820
|
) : o = await this[e.apiMethod](
|
|
@@ -1952,7 +1952,7 @@ const ro = $e(nn), an = ro, ln = ro, cn = (r) => {
|
|
|
1952
1952
|
async createHeaders(t) {
|
|
1953
1953
|
await this.auth();
|
|
1954
1954
|
const e = {};
|
|
1955
|
-
return this.token && (e.Authorization = "Bearer " + this.token), e["Accept-Language"] =
|
|
1955
|
+
return this.token && (e.Authorization = "Bearer " + this.token), e["Accept-Language"] = et.getLanguage(), t && Object.assign(e, t), e;
|
|
1956
1956
|
}
|
|
1957
1957
|
/**
|
|
1958
1958
|
* Concatène le serviceURL et le endpoint donné en paramètre
|
|
@@ -2034,7 +2034,7 @@ const ro = $e(nn), an = ro, ln = ro, cn = (r) => {
|
|
|
2034
2034
|
};
|
|
2035
2035
|
z.loadingGetPromises = /* @__PURE__ */ new Map(), z.tokens = /* @__PURE__ */ new Map(), z.invalidTokens = [], z.failledTokenUpdates = /* @__PURE__ */ new Map(), z.firstCallDoneFlags = /* @__PURE__ */ new Map();
|
|
2036
2036
|
let ke = z;
|
|
2037
|
-
|
|
2037
|
+
et.getApiConfiguration(
|
|
2038
2038
|
document.body || document.documentElement
|
|
2039
2039
|
);
|
|
2040
2040
|
const pn = async (r, t) => {
|
|
@@ -2061,10 +2061,10 @@ let fi = class extends je {
|
|
|
2061
2061
|
fi.directiveName = "unsafeHTML", fi.resultType = 1;
|
|
2062
2062
|
const R = $e(fi), gi = /* @__PURE__ */ new Map(), vr = (r) => {
|
|
2063
2063
|
if (!r) return null;
|
|
2064
|
-
const t =
|
|
2064
|
+
const t = et.getApiConfiguration(r), e = et.getAncestorAttributeValue(
|
|
2065
2065
|
r,
|
|
2066
2066
|
"wordingProvider"
|
|
2067
|
-
), i =
|
|
2067
|
+
), i = et.getAncestorAttributeValue(
|
|
2068
2068
|
r,
|
|
2069
2069
|
"wordingVersionProvider"
|
|
2070
2070
|
), s = {
|
|
@@ -2074,7 +2074,7 @@ const R = $e(fi), gi = /* @__PURE__ */ new Map(), vr = (r) => {
|
|
|
2074
2074
|
};
|
|
2075
2075
|
let o = null;
|
|
2076
2076
|
for (const [n, a] of gi)
|
|
2077
|
-
if (
|
|
2077
|
+
if (st.deepEqual(n, s)) {
|
|
2078
2078
|
o = a;
|
|
2079
2079
|
break;
|
|
2080
2080
|
}
|
|
@@ -2110,7 +2110,7 @@ const R = $e(fi), gi = /* @__PURE__ */ new Map(), vr = (r) => {
|
|
|
2110
2110
|
H.publisher.get()[p] === yr && delete H.publisher[p];
|
|
2111
2111
|
}
|
|
2112
2112
|
if (t) {
|
|
2113
|
-
const d =
|
|
2113
|
+
const d = et.getAncestorAttributeValue(
|
|
2114
2114
|
t,
|
|
2115
2115
|
"wordingVersionProvider"
|
|
2116
2116
|
);
|
|
@@ -2225,7 +2225,7 @@ const G = (r, t) => {
|
|
|
2225
2225
|
* @returns valeur de l'attribut ou null si l'attribut n'est pas trouvé
|
|
2226
2226
|
*/
|
|
2227
2227
|
getAncestorAttributeValue(n) {
|
|
2228
|
-
return
|
|
2228
|
+
return et.getAncestorAttributeValue(this, n);
|
|
2229
2229
|
}
|
|
2230
2230
|
get props() {
|
|
2231
2231
|
return this._props !== null || !this.publisher ? this._props : this.publisher.get();
|
|
@@ -2304,7 +2304,7 @@ const G = (r, t) => {
|
|
|
2304
2304
|
* A voir si on le bouge dans un utilitaire
|
|
2305
2305
|
*/
|
|
2306
2306
|
getApiConfiguration() {
|
|
2307
|
-
return
|
|
2307
|
+
return et.getApiConfiguration(this);
|
|
2308
2308
|
}
|
|
2309
2309
|
/**
|
|
2310
2310
|
* Initialise le remplisage automatique des traductions / du wording
|
|
@@ -2345,7 +2345,7 @@ const G = (r, t) => {
|
|
|
2345
2345
|
const h = this.getAttribute(
|
|
2346
2346
|
"subDataProvider"
|
|
2347
2347
|
);
|
|
2348
|
-
this.dataProvider = a + "/" + h, c =
|
|
2348
|
+
this.dataProvider = a + "/" + h, c = st.traverse(c, h.split(".")), n.set(this.dataProvider, c), this.publisher = c;
|
|
2349
2349
|
}
|
|
2350
2350
|
this.publisher = c;
|
|
2351
2351
|
}
|
|
@@ -2413,7 +2413,7 @@ let U = class extends G(ds(x)) {
|
|
|
2413
2413
|
}
|
|
2414
2414
|
static updateComponentsLanguage() {
|
|
2415
2415
|
U.dateCompnents.forEach(
|
|
2416
|
-
(r) => r.pageLanguage =
|
|
2416
|
+
(r) => r.pageLanguage = et.getLanguage()
|
|
2417
2417
|
);
|
|
2418
2418
|
}
|
|
2419
2419
|
get wording_billet_periode_validite() {
|
|
@@ -2424,7 +2424,7 @@ let U = class extends G(ds(x)) {
|
|
|
2424
2424
|
r || (r = "Du %s au %s"), this._wording_billet_periode_validite = r, this.duAu = (t = this.wording_billet_periode_validite) == null ? void 0 : t.split("%s").map((e) => e.trim()), this.duAu.pop(), this.requestUpdate();
|
|
2425
2425
|
}
|
|
2426
2426
|
connectedCallback() {
|
|
2427
|
-
this.hasAttribute("wording_billet_periode_validite") || (this.wording_billet_periode_validite = "Du %s au %s"), this.pageLanguage =
|
|
2427
|
+
this.hasAttribute("wording_billet_periode_validite") || (this.wording_billet_periode_validite = "Du %s au %s"), this.pageLanguage = et.getLanguage(), U.dateCompnents.add(this), super.connectedCallback();
|
|
2428
2428
|
}
|
|
2429
2429
|
disconnectedCallback() {
|
|
2430
2430
|
super.disconnectedCallback(), U.dateCompnents.delete(this);
|
|
@@ -2648,7 +2648,7 @@ let it = (K = class {
|
|
|
2648
2648
|
* Copyright 2018 Google LLC
|
|
2649
2649
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
2650
2650
|
*/
|
|
2651
|
-
const ao = "important", xn = " !" + ao,
|
|
2651
|
+
const ao = "important", xn = " !" + ao, bt = $e(class extends je {
|
|
2652
2652
|
constructor(r) {
|
|
2653
2653
|
var t;
|
|
2654
2654
|
if (super(r), r.type !== Ie.ATTRIBUTE || r.name !== "style" || ((t = r.strings) == null ? void 0 : t.length) > 2) throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.");
|
|
@@ -2741,7 +2741,7 @@ const Ps = /* @__PURE__ */ new Map(), Fe = (r) => {
|
|
|
2741
2741
|
return this._value;
|
|
2742
2742
|
}
|
|
2743
2743
|
set value(i) {
|
|
2744
|
-
i == null && (i = ""),
|
|
2744
|
+
i == null && (i = ""), st.isObject(i) && Object.prototype.hasOwnProperty.call(i, "__value") && i._value == null && (i = ""), this._value != i && (this._value = i, this.updateDataValue(), this.requestUpdate());
|
|
2745
2745
|
}
|
|
2746
2746
|
initPublisher() {
|
|
2747
2747
|
let i = this.getFormPublisher();
|
|
@@ -3206,7 +3206,7 @@ var mi = { exports: {} };
|
|
|
3206
3206
|
});
|
|
3207
3207
|
})(mi, mi.exports);
|
|
3208
3208
|
var On = mi.exports;
|
|
3209
|
-
const Wt = /* @__PURE__ */ Sn(On), Dn = No, kn = Cn, Ln = Hs, En = Ss, Jt =
|
|
3209
|
+
const Wt = /* @__PURE__ */ Sn(On), Dn = No, kn = Cn, Ln = Hs, En = Ss, Jt = et, Nn = it, ps = st, Tn = ts, rt = T, Mn = ke, In = Wt;
|
|
3210
3210
|
window["concorde-utils"] = window["concorde-utils"] || {};
|
|
3211
3211
|
window["concorde-utils"] = {
|
|
3212
3212
|
Utils: Dn,
|
|
@@ -3413,7 +3413,7 @@ var zn = Object.defineProperty, Rn = Object.getOwnPropertyDescriptor, q = (r, t,
|
|
|
3413
3413
|
return i && s && zn(t, e, s), s;
|
|
3414
3414
|
};
|
|
3415
3415
|
const Un = "sonic-button";
|
|
3416
|
-
let
|
|
3416
|
+
let j = class extends Bi(Fe(G(x))) {
|
|
3417
3417
|
constructor() {
|
|
3418
3418
|
super(...arguments), this.type = "default", this.variant = "default", this.shape = "default", this.direction = "row", this.alignItems = "center", this.justify = "center", this.minWidth = "0", this.icon = !1, this.download = null, this.autoActive = "partial", this.loading = !1, this.hasPrefix = !1, this.hasSuffix = !1, this._href = "", this.goBack = null, this.pushState = !1, this.active = !1, this.autoRepeat = !1, this.pointerDownTime = 0, this.lastRepeatTime = 0, this.isRepeating = !1, this.handleRepeatend = () => {
|
|
3419
3419
|
window.removeEventListener("pointerup", this.handleRepeatend), window.removeEventListener("blur", this.handleRepeatend), this.autoRepeat && (this.isRepeating = !1);
|
|
@@ -3474,7 +3474,7 @@ let I = class extends Bi(Fe(G(x))) {
|
|
|
3474
3474
|
<button
|
|
3475
3475
|
part="button"
|
|
3476
3476
|
class=${this.hasPrefix || this.hasSuffix ? "has-prefix-or-suffix" : ""}
|
|
3477
|
-
style=${
|
|
3477
|
+
style=${bt(r)}
|
|
3478
3478
|
aria-controls=${C(this.ariaControls)}
|
|
3479
3479
|
aria-expanded=${C(this.sonicAriaExpanded)}
|
|
3480
3480
|
aria-label=${C(this.ariaLabel)}
|
|
@@ -3512,7 +3512,7 @@ let I = class extends Bi(Fe(G(x))) {
|
|
|
3512
3512
|
this.hasPrefix = !!((r = this.prefixes) != null && r.length), this.hasSuffix = !!((t = this.suffixes) != null && t.length);
|
|
3513
3513
|
}
|
|
3514
3514
|
};
|
|
3515
|
-
|
|
3515
|
+
j.styles = [
|
|
3516
3516
|
jt,
|
|
3517
3517
|
P`
|
|
3518
3518
|
* {
|
|
@@ -3884,85 +3884,85 @@ I.styles = [
|
|
|
3884
3884
|
];
|
|
3885
3885
|
q([
|
|
3886
3886
|
l({ type: String, reflect: !0 })
|
|
3887
|
-
],
|
|
3887
|
+
], j.prototype, "type", 2);
|
|
3888
3888
|
q([
|
|
3889
3889
|
l({ type: String, reflect: !0 })
|
|
3890
|
-
],
|
|
3890
|
+
], j.prototype, "variant", 2);
|
|
3891
3891
|
q([
|
|
3892
3892
|
l({ type: String, reflect: !0 })
|
|
3893
|
-
],
|
|
3893
|
+
], j.prototype, "size", 2);
|
|
3894
3894
|
q([
|
|
3895
3895
|
l({ type: String, reflect: !0 })
|
|
3896
|
-
],
|
|
3896
|
+
], j.prototype, "shape", 2);
|
|
3897
3897
|
q([
|
|
3898
3898
|
l({ type: String })
|
|
3899
|
-
],
|
|
3899
|
+
], j.prototype, "direction", 2);
|
|
3900
3900
|
q([
|
|
3901
3901
|
l({ type: String, reflect: !0 })
|
|
3902
|
-
],
|
|
3902
|
+
], j.prototype, "alignItems", 2);
|
|
3903
3903
|
q([
|
|
3904
3904
|
l({ type: String })
|
|
3905
|
-
],
|
|
3905
|
+
], j.prototype, "justify", 2);
|
|
3906
3906
|
q([
|
|
3907
3907
|
l({ type: String, reflect: !0 })
|
|
3908
|
-
],
|
|
3908
|
+
], j.prototype, "align", 2);
|
|
3909
3909
|
q([
|
|
3910
3910
|
l({ type: String })
|
|
3911
|
-
],
|
|
3911
|
+
], j.prototype, "minWidth", 2);
|
|
3912
3912
|
q([
|
|
3913
3913
|
l({ type: Boolean, reflect: !0 })
|
|
3914
|
-
],
|
|
3914
|
+
], j.prototype, "icon", 2);
|
|
3915
3915
|
q([
|
|
3916
3916
|
l({ type: String })
|
|
3917
|
-
],
|
|
3917
|
+
], j.prototype, "download", 2);
|
|
3918
3918
|
q([
|
|
3919
3919
|
l({ type: String })
|
|
3920
|
-
],
|
|
3920
|
+
], j.prototype, "autoActive", 2);
|
|
3921
3921
|
q([
|
|
3922
3922
|
l({ type: Boolean, reflect: !0 })
|
|
3923
|
-
],
|
|
3923
|
+
], j.prototype, "loading", 2);
|
|
3924
3924
|
q([
|
|
3925
3925
|
L()
|
|
3926
|
-
],
|
|
3926
|
+
], j.prototype, "hasPrefix", 2);
|
|
3927
3927
|
q([
|
|
3928
3928
|
L()
|
|
3929
|
-
],
|
|
3929
|
+
], j.prototype, "hasSuffix", 2);
|
|
3930
3930
|
q([
|
|
3931
3931
|
Me({ flatten: !0, slot: "prefix" })
|
|
3932
|
-
],
|
|
3932
|
+
], j.prototype, "prefixes", 2);
|
|
3933
3933
|
q([
|
|
3934
3934
|
Me({ flatten: !0, slot: "suffix" })
|
|
3935
|
-
],
|
|
3935
|
+
], j.prototype, "suffixes", 2);
|
|
3936
3936
|
q([
|
|
3937
3937
|
l({ type: String })
|
|
3938
|
-
],
|
|
3938
|
+
], j.prototype, "target", 2);
|
|
3939
3939
|
q([
|
|
3940
3940
|
l({ type: String })
|
|
3941
|
-
],
|
|
3941
|
+
], j.prototype, "href", 1);
|
|
3942
3942
|
q([
|
|
3943
3943
|
l({ type: String })
|
|
3944
|
-
],
|
|
3944
|
+
], j.prototype, "goBack", 2);
|
|
3945
3945
|
q([
|
|
3946
3946
|
l({ type: Boolean })
|
|
3947
|
-
],
|
|
3947
|
+
], j.prototype, "pushState", 2);
|
|
3948
3948
|
q([
|
|
3949
3949
|
l({ type: Boolean, reflect: !0 })
|
|
3950
|
-
],
|
|
3950
|
+
], j.prototype, "active", 2);
|
|
3951
3951
|
q([
|
|
3952
3952
|
l({ type: Boolean, reflect: !0 })
|
|
3953
|
-
],
|
|
3953
|
+
], j.prototype, "autoRepeat", 2);
|
|
3954
3954
|
q([
|
|
3955
3955
|
l({ type: String, attribute: "data-aria-controls" })
|
|
3956
|
-
],
|
|
3956
|
+
], j.prototype, "ariaControls", 2);
|
|
3957
3957
|
q([
|
|
3958
3958
|
l({ type: Boolean, attribute: "data-aria-expanded" })
|
|
3959
|
-
],
|
|
3959
|
+
], j.prototype, "sonicAriaExpanded", 2);
|
|
3960
3960
|
q([
|
|
3961
3961
|
L()
|
|
3962
|
-
],
|
|
3963
|
-
|
|
3962
|
+
], j.prototype, "location", 2);
|
|
3963
|
+
j = q([
|
|
3964
3964
|
$(Un)
|
|
3965
|
-
],
|
|
3965
|
+
], j);
|
|
3966
3966
|
/**
|
|
3967
3967
|
* @license
|
|
3968
3968
|
* Copyright 2017 Google LLC
|
|
@@ -4025,7 +4025,7 @@ const _r = (r, t, e) => {
|
|
|
4025
4025
|
*/
|
|
4026
4026
|
const Qe = globalThis, Es = Qe.trustedTypes, wr = Es ? Es.createPolicy("lit-html", { createHTML: (r) => r }) : void 0, lo = "$lit$", Gt = `lit$${Math.random().toFixed(9).slice(2)}$`, co = "?" + Gt, Vn = `<${co}>`, be = document, Ns = () => be.createComment(""), is = (r) => r === null || typeof r != "object" && typeof r != "function", Hi = Array.isArray, Bn = (r) => Hi(r) || typeof (r == null ? void 0 : r[Symbol.iterator]) == "function", li = `[
|
|
4027
4027
|
\f\r]`, We = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, xr = /-->/g, $r = />/g, he = RegExp(`>|${li}(?:([^\\s"'>=/]+)(${li}*=${li}*(?:[^
|
|
4028
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"), Pr = /'/g, Cr = /"/g, ho = /^(?:script|style|textarea|title)$/i, rs = Symbol.for("lit-noChange"),
|
|
4028
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), Pr = /'/g, Cr = /"/g, ho = /^(?:script|style|textarea|title)$/i, rs = Symbol.for("lit-noChange"), tt = Symbol.for("lit-nothing"), Ar = /* @__PURE__ */ new WeakMap(), fe = be.createTreeWalker(be, 129);
|
|
4029
4029
|
function po(r, t) {
|
|
4030
4030
|
if (!Hi(r) || !r.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
4031
4031
|
return wr !== void 0 ? wr.createHTML(t) : t;
|
|
@@ -4120,7 +4120,7 @@ class Ys {
|
|
|
4120
4120
|
return ((t = this._$AM) == null ? void 0 : t._$AU) ?? this.v;
|
|
4121
4121
|
}
|
|
4122
4122
|
constructor(t, e, i, s) {
|
|
4123
|
-
this.type = 2, this._$AH =
|
|
4123
|
+
this.type = 2, this._$AH = tt, this._$AN = void 0, this._$AA = t, this._$AB = e, this._$AM = i, this.options = s, this.v = (s == null ? void 0 : s.isConnected) ?? !0;
|
|
4124
4124
|
}
|
|
4125
4125
|
get parentNode() {
|
|
4126
4126
|
let t = this._$AA.parentNode;
|
|
@@ -4134,7 +4134,7 @@ class Ys {
|
|
|
4134
4134
|
return this._$AB;
|
|
4135
4135
|
}
|
|
4136
4136
|
_$AI(t, e = this) {
|
|
4137
|
-
t = Le(this, t, e), is(t) ? t ===
|
|
4137
|
+
t = Le(this, t, e), is(t) ? t === tt || t == null || t === "" ? (this._$AH !== tt && this._$AR(), this._$AH = tt) : t !== this._$AH && t !== rs && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) : Bn(t) ? this.k(t) : this._(t);
|
|
4138
4138
|
}
|
|
4139
4139
|
O(t) {
|
|
4140
4140
|
return this._$AA.parentNode.insertBefore(t, this._$AB);
|
|
@@ -4143,7 +4143,7 @@ class Ys {
|
|
|
4143
4143
|
this._$AH !== t && (this._$AR(), this._$AH = this.O(t));
|
|
4144
4144
|
}
|
|
4145
4145
|
_(t) {
|
|
4146
|
-
this._$AH !==
|
|
4146
|
+
this._$AH !== tt && is(this._$AH) ? this._$AA.nextSibling.data = t : this.T(be.createTextNode(t)), this._$AH = t;
|
|
4147
4147
|
}
|
|
4148
4148
|
$(t) {
|
|
4149
4149
|
var o;
|
|
@@ -4185,7 +4185,7 @@ class Zs {
|
|
|
4185
4185
|
return this._$AM._$AU;
|
|
4186
4186
|
}
|
|
4187
4187
|
constructor(t, e, i, s, o) {
|
|
4188
|
-
this.type = 1, this._$AH =
|
|
4188
|
+
this.type = 1, this._$AH = tt, this._$AN = void 0, this.element = t, this.name = e, this._$AM = s, this.options = o, i.length > 2 || i[0] !== "" || i[1] !== "" ? (this._$AH = Array(i.length - 1).fill(new String()), this.strings = i) : this._$AH = tt;
|
|
4189
4189
|
}
|
|
4190
4190
|
_$AI(t, e = this, i, s) {
|
|
4191
4191
|
const o = this.strings;
|
|
@@ -4194,12 +4194,12 @@ class Zs {
|
|
|
4194
4194
|
else {
|
|
4195
4195
|
const a = t;
|
|
4196
4196
|
let c, h;
|
|
4197
|
-
for (t = o[0], c = 0; c < o.length - 1; c++) h = Le(this, a[i + c], e, c), h === rs && (h = this._$AH[c]), n || (n = !is(h) || h !== this._$AH[c]), h ===
|
|
4197
|
+
for (t = o[0], c = 0; c < o.length - 1; c++) h = Le(this, a[i + c], e, c), h === rs && (h = this._$AH[c]), n || (n = !is(h) || h !== this._$AH[c]), h === tt ? t = tt : t !== tt && (t += (h ?? "") + o[c + 1]), this._$AH[c] = h;
|
|
4198
4198
|
}
|
|
4199
4199
|
n && !s && this.j(t);
|
|
4200
4200
|
}
|
|
4201
4201
|
j(t) {
|
|
4202
|
-
t ===
|
|
4202
|
+
t === tt ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
|
|
4203
4203
|
}
|
|
4204
4204
|
}
|
|
4205
4205
|
class Wn extends Zs {
|
|
@@ -4207,7 +4207,7 @@ class Wn extends Zs {
|
|
|
4207
4207
|
super(...arguments), this.type = 3;
|
|
4208
4208
|
}
|
|
4209
4209
|
j(t) {
|
|
4210
|
-
this.element[this.name] = t ===
|
|
4210
|
+
this.element[this.name] = t === tt ? void 0 : t;
|
|
4211
4211
|
}
|
|
4212
4212
|
}
|
|
4213
4213
|
class Kn extends Zs {
|
|
@@ -4215,7 +4215,7 @@ class Kn extends Zs {
|
|
|
4215
4215
|
super(...arguments), this.type = 4;
|
|
4216
4216
|
}
|
|
4217
4217
|
j(t) {
|
|
4218
|
-
this.element.toggleAttribute(this.name, !!t && t !==
|
|
4218
|
+
this.element.toggleAttribute(this.name, !!t && t !== tt);
|
|
4219
4219
|
}
|
|
4220
4220
|
}
|
|
4221
4221
|
class Yn extends Zs {
|
|
@@ -4223,8 +4223,8 @@ class Yn extends Zs {
|
|
|
4223
4223
|
super(t, e, i, s, o), this.type = 5;
|
|
4224
4224
|
}
|
|
4225
4225
|
_$AI(t, e = this) {
|
|
4226
|
-
if ((t = Le(this, t, e, 0) ??
|
|
4227
|
-
const i = this._$AH, s = t ===
|
|
4226
|
+
if ((t = Le(this, t, e, 0) ?? tt) === rs) return;
|
|
4227
|
+
const i = this._$AH, s = t === tt && i !== tt || t.capture !== i.capture || t.once !== i.once || t.passive !== i.passive, o = t !== tt && (i === tt || s);
|
|
4228
4228
|
s && this.element.removeEventListener(this.name, this, i), o && this.element.addEventListener(this.name, this, t), this._$AH = t;
|
|
4229
4229
|
}
|
|
4230
4230
|
handleEvent(t) {
|
|
@@ -4374,7 +4374,7 @@ class na extends sa {
|
|
|
4374
4374
|
(t = this.l) == null || t.call(this), this.l = void 0;
|
|
4375
4375
|
}
|
|
4376
4376
|
render(t) {
|
|
4377
|
-
return
|
|
4377
|
+
return tt;
|
|
4378
4378
|
}
|
|
4379
4379
|
getController() {
|
|
4380
4380
|
return ia.get(this.u);
|
|
@@ -5348,7 +5348,7 @@ let M = class extends x {
|
|
|
5348
5348
|
zIndex: "10000",
|
|
5349
5349
|
maxWidth: "64ch",
|
|
5350
5350
|
flexDirection: "column-reverse"
|
|
5351
|
-
}), M.handleExistingToastDelegation(), this.toasts ? g`<div aria-live="polite" style=${
|
|
5351
|
+
}), M.handleExistingToastDelegation(), this.toasts ? g`<div aria-live="polite" style=${bt(e)}>
|
|
5352
5352
|
${Ks(
|
|
5353
5353
|
this.toasts,
|
|
5354
5354
|
(i) => i.id,
|
|
@@ -5429,7 +5429,7 @@ let M = class extends x {
|
|
|
5429
5429
|
for (const c of e.toasts) {
|
|
5430
5430
|
const h = { ...c };
|
|
5431
5431
|
if (a.id = h.id = 0, /*!currentToast.preserve && */
|
|
5432
|
-
|
|
5432
|
+
st.shallowEqual(a, h))
|
|
5433
5433
|
return null;
|
|
5434
5434
|
}
|
|
5435
5435
|
}
|
|
@@ -5456,7 +5456,7 @@ let M = class extends x {
|
|
|
5456
5456
|
}
|
|
5457
5457
|
// Remove Toast
|
|
5458
5458
|
removeItem(t) {
|
|
5459
|
-
t && (this.toasts = this.toasts.filter((e) => (e = { ...e }, delete e.id, !
|
|
5459
|
+
t && (this.toasts = this.toasts.filter((e) => (e = { ...e }, delete e.id, !st.shallowEqual(e, t, !1))));
|
|
5460
5460
|
}
|
|
5461
5461
|
};
|
|
5462
5462
|
M.delegateToasts = !1;
|
|
@@ -5525,7 +5525,7 @@ const qi = (r, t) => {
|
|
|
5525
5525
|
async _fetchData() {
|
|
5526
5526
|
if (this.requestUpdate(), !this.isFetchEnabled || (this.api = new ke(this.getApiConfiguration()), !this.api) || (this.dispatchEvent(new CustomEvent("loading", { detail: this })), this.getAttribute("localStorage") === "enabled" && await rt.getInstance().isLocalStrorageReady, !this.isConnected)) return;
|
|
5527
5527
|
const s = rt.getInstance().get(this.getAncestorAttributeValue("headersDataProvider")).get();
|
|
5528
|
-
this.isLoading = !0,
|
|
5528
|
+
this.isLoading = !0, st.isObject(this.props) && Object.keys(this.props || {}).length > 0 && this.isFirstLoad && window.requestAnimationFrame(() => {
|
|
5529
5529
|
this.dispatchEvent(new CustomEvent("load", { detail: this })), this.isFirstLoad = !1, this.isLoading = !1;
|
|
5530
5530
|
});
|
|
5531
5531
|
let o = await this.api.get(
|
|
@@ -5544,11 +5544,11 @@ const qi = (r, t) => {
|
|
|
5544
5544
|
}
|
|
5545
5545
|
if (this.key) {
|
|
5546
5546
|
const n = o._sonic_http_response_, a = this.key.split(".");
|
|
5547
|
-
o =
|
|
5547
|
+
o = st.traverse(
|
|
5548
5548
|
o,
|
|
5549
5549
|
a,
|
|
5550
5550
|
this.hasAttribute("preserveOtherKeys")
|
|
5551
|
-
), o &&
|
|
5551
|
+
), o && st.isObject(o) && n && (o._sonic_http_response_ = n);
|
|
5552
5552
|
}
|
|
5553
5553
|
this.props = o, this.dispatchEvent(new CustomEvent("load", { detail: this })), this.isFirstLoad = !1, this.isLoading = !1, this.refetchEveryMs && this.isConnected && (this.refetchTimeOutId = setTimeout(
|
|
5554
5554
|
() => this._fetchData(),
|
|
@@ -6027,7 +6027,7 @@ let $t = class extends qi(G(ds(x))) {
|
|
|
6027
6027
|
if (r == null)
|
|
6028
6028
|
return null;
|
|
6029
6029
|
const t = r._sonic_http_response_, e = this.hasAttribute("extractValues");
|
|
6030
|
-
return Array.isArray(r) || (e ? r = Object.entries(r).map(([i, s]) => ({ key: i, value: s })) :
|
|
6030
|
+
return Array.isArray(r) || (e ? r = Object.entries(r).map(([i, s]) => ({ key: i, value: s })) : st.isObject(r) && Object.keys(r).length > 0 && (!t || t.ok) ? r = [r] : r = []), r = r.filter((i) => i != null), t && (r._sonic_http_response_ = t), r;
|
|
6031
6031
|
}
|
|
6032
6032
|
updated(r) {
|
|
6033
6033
|
window.requestAnimationFrame(() => {
|
|
@@ -6075,7 +6075,7 @@ let $t = class extends qi(G(ds(x))) {
|
|
|
6075
6075
|
renderContent() {
|
|
6076
6076
|
if (this.isLoading && !Array.isArray(this.props)) return this.renderLoadingState();
|
|
6077
6077
|
if (typeof this.props == "string") return this.renderNoResultState();
|
|
6078
|
-
if (!
|
|
6078
|
+
if (!st.isObject(this.props)) return g`<div></div>`;
|
|
6079
6079
|
const i = this.formatProps();
|
|
6080
6080
|
if (((i == null ? void 0 : i.length) || 0) == 0) {
|
|
6081
6081
|
if (this.noItems)
|
|
@@ -6453,7 +6453,7 @@ let te = class extends G(x) {
|
|
|
6453
6453
|
(rr = (Ot = this.api) == null ? void 0 : Ot.lastResult) != null && rr.ok && y[D] && y[f] && this.saveCredentials(
|
|
6454
6454
|
y[D],
|
|
6455
6455
|
y[f]
|
|
6456
|
-
), this.submitResultKey && (h =
|
|
6456
|
+
), this.submitResultKey && (h = st.traverse(
|
|
6457
6457
|
h,
|
|
6458
6458
|
this.submitResultKey.split("."),
|
|
6459
6459
|
!0
|
|
@@ -6696,8 +6696,8 @@ let jr = class extends G(x) {
|
|
|
6696
6696
|
return;
|
|
6697
6697
|
}
|
|
6698
6698
|
if (!this.props) return;
|
|
6699
|
-
const r = this.getAttribute("onData").split("."), t =
|
|
6700
|
-
t && !(
|
|
6699
|
+
const r = this.getAttribute("onData").split("."), t = st.traverse(this.props, r);
|
|
6700
|
+
t && !(st.isObject(t) && t) && it.changeFromComponent(this);
|
|
6701
6701
|
}
|
|
6702
6702
|
};
|
|
6703
6703
|
jr = pl([
|
|
@@ -6755,7 +6755,7 @@ let ns = class extends G(ds(x)) {
|
|
|
6755
6755
|
}
|
|
6756
6756
|
render() {
|
|
6757
6757
|
let r = this.state;
|
|
6758
|
-
(!Array.isArray(r) &&
|
|
6758
|
+
(!Array.isArray(r) && st.isObject(r) || r === void 0) && (r = "");
|
|
6759
6759
|
const t = this.handleStates(r);
|
|
6760
6760
|
if (t.length > 0)
|
|
6761
6761
|
return g`${t}`;
|
|
@@ -8233,7 +8233,7 @@ var gc = Object.defineProperty, mc = Object.getOwnPropertyDescriptor, V = (r, t,
|
|
|
8233
8233
|
return i && s && gc(t, e, s), s;
|
|
8234
8234
|
};
|
|
8235
8235
|
const bc = "sonic-input";
|
|
8236
|
-
let
|
|
8236
|
+
let F = class extends Xs(Fe(G(x))) {
|
|
8237
8237
|
constructor() {
|
|
8238
8238
|
super(...arguments), this.readonly = !1, this.inlineContent = !1, this.disableInlineContentFocus = !1, this.showPasswordToggle = !1, this.autoActive = !1, this.active = !1, this.hasDescription = !1, this.hasLabel = !1, this.hasSuffix = !1, this.hasPrefix = !1, this.isPassword = !1;
|
|
8239
8239
|
}
|
|
@@ -8389,7 +8389,7 @@ let j = class extends Xs(Fe(G(x))) {
|
|
|
8389
8389
|
`;
|
|
8390
8390
|
}
|
|
8391
8391
|
};
|
|
8392
|
-
|
|
8392
|
+
F.styles = [
|
|
8393
8393
|
jt,
|
|
8394
8394
|
Xi,
|
|
8395
8395
|
Qs,
|
|
@@ -8407,88 +8407,88 @@ j.styles = [
|
|
|
8407
8407
|
];
|
|
8408
8408
|
V([
|
|
8409
8409
|
l({ type: String, reflect: !0 })
|
|
8410
|
-
],
|
|
8410
|
+
], F.prototype, "size", 2);
|
|
8411
8411
|
V([
|
|
8412
8412
|
l({ type: String })
|
|
8413
|
-
],
|
|
8413
|
+
], F.prototype, "inputmode", 2);
|
|
8414
8414
|
V([
|
|
8415
8415
|
l({ type: String })
|
|
8416
|
-
],
|
|
8416
|
+
], F.prototype, "list", 2);
|
|
8417
8417
|
V([
|
|
8418
8418
|
l({ type: String })
|
|
8419
|
-
],
|
|
8419
|
+
], F.prototype, "placeholder", 2);
|
|
8420
8420
|
V([
|
|
8421
8421
|
l({ type: String })
|
|
8422
|
-
],
|
|
8422
|
+
], F.prototype, "pattern", 2);
|
|
8423
8423
|
V([
|
|
8424
8424
|
l({ type: String })
|
|
8425
|
-
],
|
|
8425
|
+
], F.prototype, "min", 2);
|
|
8426
8426
|
V([
|
|
8427
8427
|
l({ type: String })
|
|
8428
|
-
],
|
|
8428
|
+
], F.prototype, "max", 2);
|
|
8429
8429
|
V([
|
|
8430
8430
|
l({ type: Boolean, reflect: !0 })
|
|
8431
|
-
],
|
|
8431
|
+
], F.prototype, "readonly", 2);
|
|
8432
8432
|
V([
|
|
8433
8433
|
l({ type: Number })
|
|
8434
|
-
],
|
|
8434
|
+
], F.prototype, "step", 2);
|
|
8435
8435
|
V([
|
|
8436
8436
|
l({ type: Number })
|
|
8437
|
-
],
|
|
8437
|
+
], F.prototype, "minlength", 2);
|
|
8438
8438
|
V([
|
|
8439
8439
|
l({ type: Number })
|
|
8440
|
-
],
|
|
8440
|
+
], F.prototype, "maxlength", 2);
|
|
8441
8441
|
V([
|
|
8442
8442
|
l({ type: String })
|
|
8443
|
-
],
|
|
8443
|
+
], F.prototype, "src", 2);
|
|
8444
8444
|
V([
|
|
8445
8445
|
l({ type: Boolean, reflect: !0 })
|
|
8446
|
-
],
|
|
8446
|
+
], F.prototype, "inlineContent", 2);
|
|
8447
8447
|
V([
|
|
8448
8448
|
l({ type: Boolean })
|
|
8449
|
-
],
|
|
8449
|
+
], F.prototype, "disableInlineContentFocus", 2);
|
|
8450
8450
|
V([
|
|
8451
8451
|
l({ type: Boolean })
|
|
8452
|
-
],
|
|
8452
|
+
], F.prototype, "showPasswordToggle", 2);
|
|
8453
8453
|
V([
|
|
8454
8454
|
l({ type: Boolean })
|
|
8455
|
-
],
|
|
8455
|
+
], F.prototype, "autoActive", 2);
|
|
8456
8456
|
V([
|
|
8457
8457
|
l({ type: Boolean, reflect: !0 })
|
|
8458
|
-
],
|
|
8458
|
+
], F.prototype, "active", 2);
|
|
8459
8459
|
V([
|
|
8460
8460
|
dt({ slot: "label", flatten: !0 })
|
|
8461
|
-
],
|
|
8461
|
+
], F.prototype, "slotLabelNodes", 2);
|
|
8462
8462
|
V([
|
|
8463
8463
|
dt({ slot: "description", flatten: !0 })
|
|
8464
|
-
],
|
|
8464
|
+
], F.prototype, "slotDescriptionNodes", 2);
|
|
8465
8465
|
V([
|
|
8466
8466
|
dt({ slot: "suffix", flatten: !0 })
|
|
8467
|
-
],
|
|
8467
|
+
], F.prototype, "slotSuffixNodes", 2);
|
|
8468
8468
|
V([
|
|
8469
8469
|
dt({ slot: "prefix", flatten: !0 })
|
|
8470
|
-
],
|
|
8470
|
+
], F.prototype, "slotPrefixNodes", 2);
|
|
8471
8471
|
V([
|
|
8472
8472
|
Te("input")
|
|
8473
|
-
],
|
|
8473
|
+
], F.prototype, "input", 2);
|
|
8474
8474
|
V([
|
|
8475
8475
|
L()
|
|
8476
|
-
],
|
|
8476
|
+
], F.prototype, "hasDescription", 2);
|
|
8477
8477
|
V([
|
|
8478
8478
|
L()
|
|
8479
|
-
],
|
|
8479
|
+
], F.prototype, "hasLabel", 2);
|
|
8480
8480
|
V([
|
|
8481
8481
|
L()
|
|
8482
|
-
],
|
|
8482
|
+
], F.prototype, "hasSuffix", 2);
|
|
8483
8483
|
V([
|
|
8484
8484
|
L()
|
|
8485
|
-
],
|
|
8485
|
+
], F.prototype, "hasPrefix", 2);
|
|
8486
8486
|
V([
|
|
8487
8487
|
L()
|
|
8488
|
-
],
|
|
8489
|
-
|
|
8488
|
+
], F.prototype, "isPassword", 2);
|
|
8489
|
+
F = V([
|
|
8490
8490
|
$(bc)
|
|
8491
|
-
],
|
|
8491
|
+
], F);
|
|
8492
8492
|
const Po = P`
|
|
8493
8493
|
/*OMBRE*/
|
|
8494
8494
|
:host([shadow]) .shadowable,
|
|
@@ -8542,7 +8542,7 @@ let ot = class extends x {
|
|
|
8542
8542
|
}), this.dispatchEvent(new CustomEvent("hide"));
|
|
8543
8543
|
}
|
|
8544
8544
|
setMaxZindex() {
|
|
8545
|
-
|
|
8545
|
+
et.everyAncestors(this, (r) => {
|
|
8546
8546
|
const t = r;
|
|
8547
8547
|
if (!t.className) return !0;
|
|
8548
8548
|
if ([...t.classList].includes("@container")) {
|
|
@@ -8564,7 +8564,7 @@ let ot = class extends x {
|
|
|
8564
8564
|
ot.pops.forEach((i) => {
|
|
8565
8565
|
const s = t.includes(i), o = t.includes(
|
|
8566
8566
|
i.querySelector('[slot="content"]')
|
|
8567
|
-
), n =
|
|
8567
|
+
), n = et.getAncestorAttributeValue(e, "data-on-select") === "keep";
|
|
8568
8568
|
r.type == "pointerdown" && s || r.type == "click" && (s && n || !o) || i.hide();
|
|
8569
8569
|
});
|
|
8570
8570
|
}
|
|
@@ -8584,7 +8584,7 @@ let ot = class extends x {
|
|
|
8584
8584
|
var N, B, W, Ot;
|
|
8585
8585
|
const t = r.split(" "), e = t[0];
|
|
8586
8586
|
let i = t[1];
|
|
8587
|
-
const s = 5, o = this.getBoundingClientRect(), n =
|
|
8587
|
+
const s = 5, o = this.getBoundingClientRect(), n = et.getScrollableAncestor(
|
|
8588
8588
|
this.popContent
|
|
8589
8589
|
), a = n == null ? void 0 : n.getBoundingClientRect(), c = Math.max(0, (a == null ? void 0 : a.left) || 0) + s, h = Math.max(0, (a == null ? void 0 : a.top) || 0) + s, d = Math.min(
|
|
8590
8590
|
window.innerWidth,
|
|
@@ -8716,7 +8716,7 @@ var wc = Object.defineProperty, xc = Object.getOwnPropertyDescriptor, $c = (r, t
|
|
|
8716
8716
|
return i && s && wc(t, e, s), s;
|
|
8717
8717
|
};
|
|
8718
8718
|
const Pc = "sonic-menu-item";
|
|
8719
|
-
let Rr = class extends
|
|
8719
|
+
let Rr = class extends j {
|
|
8720
8720
|
constructor() {
|
|
8721
8721
|
super();
|
|
8722
8722
|
}
|
|
@@ -8763,7 +8763,7 @@ class Co {
|
|
|
8763
8763
|
this.u.disconnect();
|
|
8764
8764
|
}
|
|
8765
8765
|
}
|
|
8766
|
-
var Cc = Object.defineProperty, Ac = Object.getOwnPropertyDescriptor,
|
|
8766
|
+
var Cc = Object.defineProperty, Ac = Object.getOwnPropertyDescriptor, gt = (r, t, e, i) => {
|
|
8767
8767
|
for (var s = i > 1 ? void 0 : i ? Ac(t, e) : t, o = r.length - 1, n; o >= 0; o--)
|
|
8768
8768
|
(n = r[o]) && (s = (i ? n(t, e, s) : n(s)) || s);
|
|
8769
8769
|
return i && s && Cc(t, e, s), s;
|
|
@@ -8968,52 +8968,52 @@ lt.styles = [
|
|
|
8968
8968
|
}
|
|
8969
8969
|
`
|
|
8970
8970
|
];
|
|
8971
|
-
|
|
8971
|
+
gt([
|
|
8972
8972
|
l({ type: String })
|
|
8973
8973
|
], lt.prototype, "size", 2);
|
|
8974
|
-
|
|
8974
|
+
gt([
|
|
8975
8975
|
l({ type: String })
|
|
8976
8976
|
], lt.prototype, "placeholder", 2);
|
|
8977
|
-
|
|
8977
|
+
gt([
|
|
8978
8978
|
l()
|
|
8979
8979
|
], lt.prototype, "filteredFields", 2);
|
|
8980
|
-
|
|
8980
|
+
gt([
|
|
8981
8981
|
l({ type: Boolean, reflect: !0 })
|
|
8982
8982
|
], lt.prototype, "readonly", 2);
|
|
8983
|
-
|
|
8983
|
+
gt([
|
|
8984
8984
|
l({ type: String })
|
|
8985
8985
|
], lt.prototype, "dataProviderExpression", 2);
|
|
8986
|
-
|
|
8986
|
+
gt([
|
|
8987
8987
|
l({ type: Number })
|
|
8988
8988
|
], lt.prototype, "minSearchLength", 2);
|
|
8989
|
-
|
|
8989
|
+
gt([
|
|
8990
8990
|
l({ type: Boolean })
|
|
8991
8991
|
], lt.prototype, "select", 2);
|
|
8992
|
-
|
|
8992
|
+
gt([
|
|
8993
8993
|
l({ type: String })
|
|
8994
8994
|
], lt.prototype, "key", 2);
|
|
8995
|
-
|
|
8995
|
+
gt([
|
|
8996
8996
|
l({ type: String })
|
|
8997
8997
|
], lt.prototype, "searchParameter", 2);
|
|
8998
|
-
|
|
8998
|
+
gt([
|
|
8999
8999
|
l({ type: String })
|
|
9000
9000
|
], lt.prototype, "propertyName", 2);
|
|
9001
|
-
|
|
9001
|
+
gt([
|
|
9002
9002
|
dt({ slot: "prefix", flatten: !0 })
|
|
9003
9003
|
], lt.prototype, "slotInputPrefixNodes", 2);
|
|
9004
|
-
|
|
9004
|
+
gt([
|
|
9005
9005
|
L()
|
|
9006
9006
|
], lt.prototype, "hasInputPrefix", 2);
|
|
9007
|
-
|
|
9007
|
+
gt([
|
|
9008
9008
|
L()
|
|
9009
9009
|
], lt.prototype, "isPopVisible", 2);
|
|
9010
|
-
|
|
9010
|
+
gt([
|
|
9011
9011
|
L()
|
|
9012
9012
|
], lt.prototype, "lastValidSearch", 2);
|
|
9013
|
-
lt =
|
|
9013
|
+
lt = gt([
|
|
9014
9014
|
$("sonic-input-autocomplete")
|
|
9015
9015
|
], lt);
|
|
9016
|
-
var Sc = Object.defineProperty, Oc = Object.getOwnPropertyDescriptor,
|
|
9016
|
+
var Sc = Object.defineProperty, Oc = Object.getOwnPropertyDescriptor, mt = (r, t, e, i) => {
|
|
9017
9017
|
for (var s = i > 1 ? void 0 : i ? Oc(t, e) : t, o = r.length - 1, n; o >= 0; o--)
|
|
9018
9018
|
(n = r[o]) && (s = (i ? n(t, e, s) : n(s)) || s);
|
|
9019
9019
|
return i && s && Sc(t, e, s), s;
|
|
@@ -9059,49 +9059,49 @@ let ct = class extends oe(x) {
|
|
|
9059
9059
|
`;
|
|
9060
9060
|
}
|
|
9061
9061
|
};
|
|
9062
|
-
|
|
9062
|
+
mt([
|
|
9063
9063
|
l()
|
|
9064
9064
|
], ct.prototype, "name", 2);
|
|
9065
|
-
|
|
9065
|
+
mt([
|
|
9066
9066
|
l()
|
|
9067
9067
|
], ct.prototype, "minChars", 2);
|
|
9068
|
-
|
|
9068
|
+
mt([
|
|
9069
9069
|
L()
|
|
9070
9070
|
], ct.prototype, "hasNoChar", 2);
|
|
9071
|
-
|
|
9071
|
+
mt([
|
|
9072
9072
|
L()
|
|
9073
9073
|
], ct.prototype, "hasEnoughChars", 2);
|
|
9074
|
-
|
|
9074
|
+
mt([
|
|
9075
9075
|
L()
|
|
9076
9076
|
], ct.prototype, "hasMinuscule", 2);
|
|
9077
|
-
|
|
9077
|
+
mt([
|
|
9078
9078
|
L()
|
|
9079
9079
|
], ct.prototype, "hasMajuscule", 2);
|
|
9080
|
-
|
|
9080
|
+
mt([
|
|
9081
9081
|
L()
|
|
9082
9082
|
], ct.prototype, "hasNumber", 2);
|
|
9083
|
-
|
|
9083
|
+
mt([
|
|
9084
9084
|
L()
|
|
9085
9085
|
], ct.prototype, "hasSpecialChar", 2);
|
|
9086
|
-
|
|
9086
|
+
mt([
|
|
9087
9087
|
l()
|
|
9088
9088
|
], ct.prototype, "wording_password_helper_decription", 2);
|
|
9089
|
-
|
|
9089
|
+
mt([
|
|
9090
9090
|
l()
|
|
9091
9091
|
], ct.prototype, "wording_password_helper_min_length", 2);
|
|
9092
|
-
|
|
9092
|
+
mt([
|
|
9093
9093
|
l()
|
|
9094
9094
|
], ct.prototype, "wording_password_helper_lower_case", 2);
|
|
9095
|
-
|
|
9095
|
+
mt([
|
|
9096
9096
|
l()
|
|
9097
9097
|
], ct.prototype, "wording_password_helper_upper_case", 2);
|
|
9098
|
-
|
|
9098
|
+
mt([
|
|
9099
9099
|
l()
|
|
9100
9100
|
], ct.prototype, "wording_password_helper_number", 2);
|
|
9101
|
-
|
|
9101
|
+
mt([
|
|
9102
9102
|
l()
|
|
9103
9103
|
], ct.prototype, "wording_password_helper_special_char", 2);
|
|
9104
|
-
ct =
|
|
9104
|
+
ct = mt([
|
|
9105
9105
|
$(Dc)
|
|
9106
9106
|
], ct);
|
|
9107
9107
|
var kc = Object.defineProperty, Lc = Object.getOwnPropertyDescriptor, Pe = (r, t, e, i) => {
|
|
@@ -9176,7 +9176,7 @@ var Nc = Object.defineProperty, Tc = Object.getOwnPropertyDescriptor, Zt = (r, t
|
|
|
9176
9176
|
return i && s && Nc(t, e, s), s;
|
|
9177
9177
|
};
|
|
9178
9178
|
const Mc = "sonic-checkbox";
|
|
9179
|
-
let
|
|
9179
|
+
let ut = class extends Bi(
|
|
9180
9180
|
Xs(Fe(G(x)))
|
|
9181
9181
|
) {
|
|
9182
9182
|
constructor() {
|
|
@@ -9227,7 +9227,7 @@ let ft = class extends Bi(
|
|
|
9227
9227
|
`;
|
|
9228
9228
|
}
|
|
9229
9229
|
};
|
|
9230
|
-
|
|
9230
|
+
ut.styles = [
|
|
9231
9231
|
jt,
|
|
9232
9232
|
P`
|
|
9233
9233
|
:host {
|
|
@@ -9355,38 +9355,38 @@ ft.styles = [
|
|
|
9355
9355
|
];
|
|
9356
9356
|
Zt([
|
|
9357
9357
|
l({ type: Boolean, reflect: !0 })
|
|
9358
|
-
],
|
|
9358
|
+
], ut.prototype, "touched", 2);
|
|
9359
9359
|
Zt([
|
|
9360
9360
|
l({ type: String })
|
|
9361
|
-
],
|
|
9361
|
+
], ut.prototype, "iconName", 2);
|
|
9362
9362
|
Zt([
|
|
9363
9363
|
l({ type: String })
|
|
9364
|
-
],
|
|
9364
|
+
], ut.prototype, "indeterminateIconName", 2);
|
|
9365
9365
|
Zt([
|
|
9366
9366
|
l({ type: Boolean })
|
|
9367
|
-
],
|
|
9367
|
+
], ut.prototype, "showAsIndeterminate", 2);
|
|
9368
9368
|
Zt([
|
|
9369
9369
|
l({ type: Boolean })
|
|
9370
|
-
],
|
|
9370
|
+
], ut.prototype, "hasDescription", 2);
|
|
9371
9371
|
Zt([
|
|
9372
9372
|
l({ type: Boolean })
|
|
9373
|
-
],
|
|
9373
|
+
], ut.prototype, "hasLabel", 2);
|
|
9374
9374
|
Zt([
|
|
9375
9375
|
dt({ flatten: !0 })
|
|
9376
|
-
],
|
|
9376
|
+
], ut.prototype, "slotLabelNodes", 2);
|
|
9377
9377
|
Zt([
|
|
9378
9378
|
dt({ slot: "description", flatten: !0 })
|
|
9379
|
-
],
|
|
9380
|
-
|
|
9379
|
+
], ut.prototype, "slotDescriptionNodes", 2);
|
|
9380
|
+
ut = Zt([
|
|
9381
9381
|
$(Mc)
|
|
9382
|
-
],
|
|
9382
|
+
], ut);
|
|
9383
9383
|
var Ic = Object.defineProperty, jc = Object.getOwnPropertyDescriptor, Fc = (r, t, e, i) => {
|
|
9384
9384
|
for (var s = i > 1 ? void 0 : i ? jc(t, e) : t, o = r.length - 1, n; o >= 0; o--)
|
|
9385
9385
|
(n = r[o]) && (s = (i ? n(t, e, s) : n(s)) || s);
|
|
9386
9386
|
return i && s && Ic(t, e, s), s;
|
|
9387
9387
|
};
|
|
9388
9388
|
const zc = "sonic-radio";
|
|
9389
|
-
let _i = class extends
|
|
9389
|
+
let _i = class extends ut {
|
|
9390
9390
|
constructor() {
|
|
9391
9391
|
super(), this.radio = !0;
|
|
9392
9392
|
}
|
|
@@ -9395,7 +9395,7 @@ let _i = class extends ft {
|
|
|
9395
9395
|
}
|
|
9396
9396
|
};
|
|
9397
9397
|
_i.styles = [
|
|
9398
|
-
|
|
9398
|
+
ut.styles,
|
|
9399
9399
|
P`
|
|
9400
9400
|
:host input {
|
|
9401
9401
|
border-radius: 50%;
|
|
@@ -9423,13 +9423,13 @@ var Rc = Object.defineProperty, Uc = Object.getOwnPropertyDescriptor, Vc = (r, t
|
|
|
9423
9423
|
return i && s && Rc(t, e, s), s;
|
|
9424
9424
|
};
|
|
9425
9425
|
const Bc = "sonic-switch";
|
|
9426
|
-
let wi = class extends
|
|
9426
|
+
let wi = class extends ut {
|
|
9427
9427
|
constructor() {
|
|
9428
9428
|
super(), this.unique = !0;
|
|
9429
9429
|
}
|
|
9430
9430
|
};
|
|
9431
9431
|
wi.styles = [
|
|
9432
|
-
|
|
9432
|
+
ut.styles,
|
|
9433
9433
|
P`
|
|
9434
9434
|
sonic-icon {
|
|
9435
9435
|
display: none;
|
|
@@ -9828,7 +9828,7 @@ let ht = class extends Xs(Fe(G(x))) {
|
|
|
9828
9828
|
class="form-element textarea custom-scroll"
|
|
9829
9829
|
aria-label=${C(this.ariaLabel)}
|
|
9830
9830
|
aria-labelledby=${C(this.ariaLabelledby)}
|
|
9831
|
-
style=${
|
|
9831
|
+
style=${bt(r)}
|
|
9832
9832
|
>
|
|
9833
9833
|
${this.value}</textarea
|
|
9834
9834
|
>
|
|
@@ -10237,7 +10237,7 @@ let ls = class extends x {
|
|
|
10237
10237
|
flexDirection: this.direction,
|
|
10238
10238
|
justifyContent: this.justify
|
|
10239
10239
|
};
|
|
10240
|
-
return g`<slot style=${
|
|
10240
|
+
return g`<slot style=${bt(r)}></slot>`;
|
|
10241
10241
|
}
|
|
10242
10242
|
};
|
|
10243
10243
|
ls.styles = [
|
|
@@ -10303,7 +10303,7 @@ let Mt = class extends x {
|
|
|
10303
10303
|
@slotchange=${this.hasSlotOrProps}
|
|
10304
10304
|
></slot
|
|
10305
10305
|
></span>
|
|
10306
|
-
<slot class="main-slot" style=${
|
|
10306
|
+
<slot class="main-slot" style=${bt(r)}></slot>
|
|
10307
10307
|
<slot
|
|
10308
10308
|
name="description"
|
|
10309
10309
|
@slotchange=${this.hasSlotOrProps}
|
|
@@ -10397,7 +10397,7 @@ let Ct = class extends x {
|
|
|
10397
10397
|
src="${this.src}"
|
|
10398
10398
|
loading="${this.loading}"
|
|
10399
10399
|
alt="${this.alt}"
|
|
10400
|
-
style=${
|
|
10400
|
+
style=${bt(r)}
|
|
10401
10401
|
/></picture>
|
|
10402
10402
|
</div>`;
|
|
10403
10403
|
}
|
|
@@ -10515,7 +10515,7 @@ var bh = Object.defineProperty, vh = Object.getOwnPropertyDescriptor, wt = (r, t
|
|
|
10515
10515
|
return i && s && bh(t, e, s), s;
|
|
10516
10516
|
};
|
|
10517
10517
|
const yh = "sonic-menu";
|
|
10518
|
-
let
|
|
10518
|
+
let ft = class extends x {
|
|
10519
10519
|
constructor() {
|
|
10520
10520
|
super(...arguments), this.direction = "column", this.gap = "var(--sc-menu-gap)", this.align = "left", this.shadow = null, this.moreShape = "circle", this.scrollable = !1, this.observer = null, this.minWidth = "0", this.hasMoreElements = !1, this.updateIsScollable = () => {
|
|
10521
10521
|
this.scrollable && (this.initScrollable(), this.setScrollShadow(this, this.direction));
|
|
@@ -10582,15 +10582,15 @@ let gt = class extends x {
|
|
|
10582
10582
|
return g`<menu
|
|
10583
10583
|
part="menu"
|
|
10584
10584
|
class="shadowable"
|
|
10585
|
-
style=${
|
|
10585
|
+
style=${bt(r)}
|
|
10586
10586
|
>
|
|
10587
10587
|
<slot @slotchange=${this.mainSlotChange}></slot>
|
|
10588
10588
|
<sonic-pop
|
|
10589
|
-
style=${
|
|
10589
|
+
style=${bt(e)}
|
|
10590
10590
|
class=${this.hasMoreElements ? "" : "hidden"}
|
|
10591
10591
|
>
|
|
10592
10592
|
<sonic-menu-item
|
|
10593
|
-
style=${
|
|
10593
|
+
style=${bt(i)}
|
|
10594
10594
|
class="more-btn"
|
|
10595
10595
|
shape=${this.moreShape}
|
|
10596
10596
|
align="center"
|
|
@@ -10605,7 +10605,7 @@ let gt = class extends x {
|
|
|
10605
10605
|
</menu>`;
|
|
10606
10606
|
}
|
|
10607
10607
|
};
|
|
10608
|
-
|
|
10608
|
+
ft.styles = [
|
|
10609
10609
|
P`
|
|
10610
10610
|
:host {
|
|
10611
10611
|
display: block;
|
|
@@ -10728,43 +10728,43 @@ gt.styles = [
|
|
|
10728
10728
|
];
|
|
10729
10729
|
wt([
|
|
10730
10730
|
l({ type: String, reflect: !0 })
|
|
10731
|
-
],
|
|
10731
|
+
], ft.prototype, "size", 2);
|
|
10732
10732
|
wt([
|
|
10733
10733
|
l({ type: String, reflect: !0 })
|
|
10734
|
-
],
|
|
10734
|
+
], ft.prototype, "direction", 2);
|
|
10735
10735
|
wt([
|
|
10736
10736
|
l({ type: String })
|
|
10737
|
-
],
|
|
10737
|
+
], ft.prototype, "gap", 2);
|
|
10738
10738
|
wt([
|
|
10739
10739
|
l({ type: String, reflect: !0 })
|
|
10740
|
-
],
|
|
10740
|
+
], ft.prototype, "align", 2);
|
|
10741
10741
|
wt([
|
|
10742
10742
|
l({ type: String, reflect: !0 })
|
|
10743
|
-
],
|
|
10743
|
+
], ft.prototype, "shadow", 2);
|
|
10744
10744
|
wt([
|
|
10745
10745
|
l({ type: String })
|
|
10746
|
-
],
|
|
10746
|
+
], ft.prototype, "moreShape", 2);
|
|
10747
10747
|
wt([
|
|
10748
10748
|
l({ type: Boolean })
|
|
10749
|
-
],
|
|
10749
|
+
], ft.prototype, "scrollable", 2);
|
|
10750
10750
|
wt([
|
|
10751
10751
|
l({ type: String })
|
|
10752
|
-
],
|
|
10752
|
+
], ft.prototype, "minWidth", 2);
|
|
10753
10753
|
wt([
|
|
10754
10754
|
Te("menu")
|
|
10755
|
-
],
|
|
10755
|
+
], ft.prototype, "menu", 2);
|
|
10756
10756
|
wt([
|
|
10757
10757
|
Me({ selector: "sonic-menu-item" })
|
|
10758
|
-
],
|
|
10758
|
+
], ft.prototype, "menuChildren", 2);
|
|
10759
10759
|
wt([
|
|
10760
10760
|
Me({ slot: "more", selector: "*" })
|
|
10761
|
-
],
|
|
10761
|
+
], ft.prototype, "moreElements", 2);
|
|
10762
10762
|
wt([
|
|
10763
10763
|
L()
|
|
10764
|
-
],
|
|
10765
|
-
|
|
10764
|
+
], ft.prototype, "hasMoreElements", 2);
|
|
10765
|
+
ft = wt([
|
|
10766
10766
|
$(yh)
|
|
10767
|
-
],
|
|
10767
|
+
], ft);
|
|
10768
10768
|
var _h = Object.defineProperty, wh = Object.getOwnPropertyDescriptor, Ao = (r, t, e, i) => {
|
|
10769
10769
|
for (var s = i > 1 ? void 0 : i ? wh(t, e) : t, o = r.length - 1, n; o >= 0; o--)
|
|
10770
10770
|
(n = r[o]) && (s = (i ? n(t, e, s) : n(s)) || s);
|
|
@@ -10834,7 +10834,7 @@ let Vs = class extends x {
|
|
|
10834
10834
|
></sonic-button>`;
|
|
10835
10835
|
}
|
|
10836
10836
|
handleClick() {
|
|
10837
|
-
|
|
10837
|
+
et.getClosestElement(this, "sonic-modal").hide();
|
|
10838
10838
|
}
|
|
10839
10839
|
};
|
|
10840
10840
|
tr([
|
|
@@ -10928,34 +10928,34 @@ Ci.styles = [
|
|
|
10928
10928
|
Ci = Ih([
|
|
10929
10929
|
$(jh)
|
|
10930
10930
|
], Ci);
|
|
10931
|
-
var Fh = Object.defineProperty, zh = Object.getOwnPropertyDescriptor,
|
|
10931
|
+
var Fh = Object.defineProperty, zh = Object.getOwnPropertyDescriptor, J = (r, t, e, i) => {
|
|
10932
10932
|
for (var s = i > 1 ? void 0 : i ? zh(t, e) : t, o = r.length - 1, n; o >= 0; o--)
|
|
10933
10933
|
(n = r[o]) && (s = (i ? n(t, e, s) : n(s)) || s);
|
|
10934
10934
|
return i && s && Fh(t, e, s), s;
|
|
10935
10935
|
};
|
|
10936
10936
|
const So = "sonic-modal";
|
|
10937
|
-
let
|
|
10937
|
+
let I = class extends G(x) {
|
|
10938
10938
|
constructor() {
|
|
10939
|
-
super(...arguments), this.forceAction = !1, this.removeOnHide = !1, this.removeHashOnHide = !1, this.align = "left", this.
|
|
10939
|
+
super(...arguments), this.forceAction = !1, this.removeOnHide = !1, this.removeHashOnHide = !1, this.align = "left", this.maxWidth = "min(100vw, 40rem)", this.maxHeight = "90vh", this.width = "100%", this.height = "fit-content", this.effect = "slide", this.fullScreen = !1, this.visible = !1, this.closeOnLocationChange = !1, this.location = "", this._animationState = "hidden", this._animationConfig = {
|
|
10940
10940
|
quartOut: "cubic-bezier(0.165, 0.84, 0.44, 1)",
|
|
10941
10941
|
quadOut: "cubic-bezier(0.25, 0.46, 0.45, 0.94)",
|
|
10942
10942
|
linear: "linear",
|
|
10943
10943
|
translateY: "translateY(2.5rem)",
|
|
10944
10944
|
durationIn: 300,
|
|
10945
|
-
durationOut:
|
|
10945
|
+
durationOut: 300
|
|
10946
10946
|
};
|
|
10947
10947
|
}
|
|
10948
10948
|
static create(r) {
|
|
10949
10949
|
const t = document.createElement(So);
|
|
10950
|
-
return t.options = r, r.removeHashOnHide === !0 && t.setAttribute("removeHashOnHide", "true"), r.removeOnHide === !0 && t.setAttribute("removeOnHide", "true"), r.closeOnLocationChange === !0 && t.setAttribute("closeOnLocationChange", "true"), r.maxWidth && (t.maxWidth = r == null ? void 0 : r.maxWidth), r.width && (t.width = r == null ? void 0 : r.width), r.maxHeight && (t.maxHeight = r == null ? void 0 : r.maxHeight), r.height && (t.height = r == null ? void 0 : r.height), r.forceAction && (t.forceAction = !0), r.fullScreen && (t.fullScreen = r == null ? void 0 : r.fullScreen), r.effect && (t.effect = r == null ? void 0 : r.effect), r.paddingX && t.
|
|
10950
|
+
return t.options = r, r.removeHashOnHide === !0 && t.setAttribute("removeHashOnHide", "true"), r.removeOnHide === !0 && t.setAttribute("removeOnHide", "true"), r.closeOnLocationChange === !0 && t.setAttribute("closeOnLocationChange", "true"), r.maxWidth && (t.maxWidth = r == null ? void 0 : r.maxWidth), r.width && (t.width = r == null ? void 0 : r.width), r.maxHeight && (t.maxHeight = r == null ? void 0 : r.maxHeight), r.height && (t.height = r == null ? void 0 : r.height), r.forceAction && (t.forceAction = !0), r.fullScreen && (t.fullScreen = r == null ? void 0 : r.fullScreen), r.effect && (t.effect = r == null ? void 0 : r.effect), r.paddingX && (t.paddingX = r == null ? void 0 : r.paddingX), r.paddingY && (t.paddingY = r == null ? void 0 : r.paddingY), r.zIndex && (t.zIndex = r == null ? void 0 : r.zIndex), yt.getPopContainer().appendChild(t), t.updateComplete.then(() => {
|
|
10951
10951
|
t.show();
|
|
10952
10952
|
}), t;
|
|
10953
10953
|
}
|
|
10954
10954
|
connectedCallback() {
|
|
10955
|
-
|
|
10955
|
+
I.modals.push(this), it.onChange(this), super.connectedCallback();
|
|
10956
10956
|
}
|
|
10957
10957
|
disconnectedCallback() {
|
|
10958
|
-
it.offChange(this),
|
|
10958
|
+
it.offChange(this), I.modals.splice(I.modals.indexOf(this), 1), this.removeEventListener("keydown", this.handleEscape), super.disconnectedCallback();
|
|
10959
10959
|
}
|
|
10960
10960
|
firstUpdated() {
|
|
10961
10961
|
this.addEventListener("keydown", this.handleEscape);
|
|
@@ -10967,7 +10967,7 @@ let F = class extends G(x) {
|
|
|
10967
10967
|
this.hide();
|
|
10968
10968
|
}, 50);
|
|
10969
10969
|
}
|
|
10970
|
-
super.willUpdate(r);
|
|
10970
|
+
r.has("zIndex") && this.style.setProperty("--sc_z-index", this.zIndex || "990"), r.has("paddingX") && this.style.setProperty("--sc-modal-px", this.paddingX || ""), r.has("paddingY") && this.style.setProperty("--sc-modal-py", this.paddingY || ""), super.willUpdate(r);
|
|
10971
10971
|
}
|
|
10972
10972
|
updated(r) {
|
|
10973
10973
|
const t = !r.get("visible") && this.visible, e = r.get("visible") && !this.visible;
|
|
@@ -10993,28 +10993,25 @@ let F = class extends G(x) {
|
|
|
10993
10993
|
maxHeight: this.maxHeight,
|
|
10994
10994
|
width: this.width,
|
|
10995
10995
|
height: this.height,
|
|
10996
|
-
zIndex: this.zIndex,
|
|
10997
|
-
borderRadius: this.fullScreen ? "0" : "var(--sc_rounded)",
|
|
10998
10996
|
pointerEvents: this._animationState === "visible" ? "auto" : "none"
|
|
10999
10997
|
}, t = {
|
|
11000
|
-
|
|
11001
|
-
}, e = {
|
|
10998
|
+
display: this.fullScreen ? "none" : "block",
|
|
11002
10999
|
pointerEvents: this._animationState === "visible" ? "auto" : "none"
|
|
11003
11000
|
};
|
|
11004
11001
|
return g`
|
|
11005
11002
|
<div
|
|
11006
11003
|
id="backdrop"
|
|
11007
11004
|
@click=${this.handleOverlayClick}
|
|
11008
|
-
style=${
|
|
11005
|
+
style=${bt(t)}
|
|
11009
11006
|
></div>
|
|
11010
11007
|
<dialog
|
|
11011
11008
|
id="modal"
|
|
11012
11009
|
part="modal"
|
|
11013
11010
|
class="custom-scroll"
|
|
11014
11011
|
aria-modal="true"
|
|
11015
|
-
style=${
|
|
11012
|
+
style=${bt(r)}
|
|
11016
11013
|
>
|
|
11017
|
-
${this._animationState !== "hidden" ? g`<div id="modal-content"
|
|
11014
|
+
${this._animationState !== "hidden" ? g`<div id="modal-content">
|
|
11018
11015
|
${this.forceAction ? A : g`<sonic-modal-close></sonic-modal-close>`}
|
|
11019
11016
|
${this.modalFragment("title")} ${this.modalFragment("subtitle")}
|
|
11020
11017
|
${this.modalFragment("content")} ${this.modalFragment("actions")}
|
|
@@ -11057,7 +11054,7 @@ let F = class extends G(x) {
|
|
|
11057
11054
|
}
|
|
11058
11055
|
// Hide and remove all modals
|
|
11059
11056
|
static disposeAll() {
|
|
11060
|
-
|
|
11057
|
+
I.modals.forEach((r) => {
|
|
11061
11058
|
r.dispose();
|
|
11062
11059
|
});
|
|
11063
11060
|
}
|
|
@@ -11065,7 +11062,7 @@ let F = class extends G(x) {
|
|
|
11065
11062
|
handleEscape(r) {
|
|
11066
11063
|
if (r.key === "Escape") {
|
|
11067
11064
|
r.preventDefault();
|
|
11068
|
-
const t =
|
|
11065
|
+
const t = I.modals.filter(
|
|
11069
11066
|
(e) => e._animationState !== "hidden" && !e.forceAction
|
|
11070
11067
|
);
|
|
11071
11068
|
t.length > 0 && t[t.length - 1].hide();
|
|
@@ -11078,12 +11075,12 @@ let F = class extends G(x) {
|
|
|
11078
11075
|
return new Promise((t) => {
|
|
11079
11076
|
const { quartOut: e, linear: i, translateY: s, durationIn: o, durationOut: n, quadOut: a } = this._animationConfig, c = this._modalElement;
|
|
11080
11077
|
if (!c) return t();
|
|
11081
|
-
const h = r === "in", d = h ? o : n;
|
|
11082
|
-
h ? this.style.setProperty("--sc_backdrop-opacity", "0.8") : setTimeout(() => {
|
|
11078
|
+
const h = r === "in", d = h ? o : n, p = !this.fullScreen && h ? 100 : 0;
|
|
11079
|
+
this.fullScreen || (h ? this.style.setProperty("--sc_backdrop-opacity", "0.8") : setTimeout(() => {
|
|
11083
11080
|
this.style.setProperty("--sc_backdrop-opacity", "0");
|
|
11084
|
-
},
|
|
11085
|
-
const
|
|
11086
|
-
this.effect === "slide" && (
|
|
11081
|
+
}, 150));
|
|
11082
|
+
const m = [];
|
|
11083
|
+
this.effect === "slide" && (m.push(
|
|
11087
11084
|
c.animate(
|
|
11088
11085
|
[
|
|
11089
11086
|
{ transform: h ? s : "translateY(0)" },
|
|
@@ -11093,36 +11090,39 @@ let F = class extends G(x) {
|
|
|
11093
11090
|
duration: d,
|
|
11094
11091
|
easing: h ? e : a,
|
|
11095
11092
|
fill: "both",
|
|
11096
|
-
delay:
|
|
11093
|
+
delay: p
|
|
11097
11094
|
}
|
|
11098
11095
|
)
|
|
11099
|
-
),
|
|
11096
|
+
), m.push(
|
|
11100
11097
|
c.animate(
|
|
11101
11098
|
[{ opacity: h ? 0 : 1 }, { opacity: h ? 1 : 0 }],
|
|
11102
11099
|
{
|
|
11103
11100
|
duration: d,
|
|
11104
11101
|
easing: i,
|
|
11105
11102
|
fill: "both",
|
|
11106
|
-
delay:
|
|
11103
|
+
delay: p
|
|
11107
11104
|
}
|
|
11108
11105
|
)
|
|
11109
|
-
)), Promise.all(
|
|
11106
|
+
)), Promise.all(m.map((v) => v.finished)).then(
|
|
11110
11107
|
() => t()
|
|
11111
11108
|
);
|
|
11112
11109
|
});
|
|
11113
11110
|
}
|
|
11114
11111
|
};
|
|
11115
|
-
|
|
11112
|
+
I.styles = [
|
|
11116
11113
|
fs,
|
|
11117
11114
|
P`
|
|
11118
11115
|
:host {
|
|
11119
11116
|
--sc-modal-py: 2.5rem;
|
|
11120
11117
|
--sc-modal-px: 1.5rem;
|
|
11121
|
-
|
|
11122
|
-
--
|
|
11118
|
+
|
|
11119
|
+
--sc_backdrop-bg: var(
|
|
11120
|
+
--sc_overlay-bg,
|
|
11121
|
+
var(--sc-base-200, rgba(0, 0, 0, 0.12))
|
|
11122
|
+
);
|
|
11123
|
+
--sc_backdrop-opacity: 0;
|
|
11123
11124
|
--sc_rounded: var(--sc-rounded-lg);
|
|
11124
11125
|
--sc_z-index: 990;
|
|
11125
|
-
--sc_backdrop-opacity: 0;
|
|
11126
11126
|
}
|
|
11127
11127
|
|
|
11128
11128
|
* {
|
|
@@ -11134,7 +11134,7 @@ F.styles = [
|
|
|
11134
11134
|
color: var(--sc-base-content, #000);
|
|
11135
11135
|
width: 100%;
|
|
11136
11136
|
box-shadow: var(--sc-shadow-lg);
|
|
11137
|
-
border-radius: var(--sc_rounded) var(--sc_rounded)
|
|
11137
|
+
border-radius: var(--sc_rounded) var(--sc_rounded);
|
|
11138
11138
|
transform: translateZ(0);
|
|
11139
11139
|
border: none;
|
|
11140
11140
|
outline: none;
|
|
@@ -11150,10 +11150,7 @@ F.styles = [
|
|
|
11150
11150
|
|
|
11151
11151
|
#backdrop {
|
|
11152
11152
|
opacity: var(--sc_backdrop-opacity, 0);
|
|
11153
|
-
background: var(
|
|
11154
|
-
--sc_overlay-bg,
|
|
11155
|
-
var(--sc-base-200, rgba(0, 0, 0, 0.12))
|
|
11156
|
-
);
|
|
11153
|
+
background: var(--sc_backdrop-bg);
|
|
11157
11154
|
transition: opacity 0.15s linear;
|
|
11158
11155
|
inset: 0;
|
|
11159
11156
|
position: fixed;
|
|
@@ -11182,6 +11179,10 @@ F.styles = [
|
|
|
11182
11179
|
border-radius: var(--sc_rounded) var(--sc_rounded) 0 0 !important;
|
|
11183
11180
|
}
|
|
11184
11181
|
}
|
|
11182
|
+
|
|
11183
|
+
:host([fullScreen]) {
|
|
11184
|
+
--sc_rounded: 0;
|
|
11185
|
+
}
|
|
11185
11186
|
:host([fullScreen]) #modal {
|
|
11186
11187
|
width: 100% !important;
|
|
11187
11188
|
height: 100% !important;
|
|
@@ -11246,65 +11247,68 @@ F.styles = [
|
|
|
11246
11247
|
}
|
|
11247
11248
|
`
|
|
11248
11249
|
];
|
|
11249
|
-
|
|
11250
|
-
|
|
11250
|
+
I.modals = [];
|
|
11251
|
+
J([
|
|
11251
11252
|
l({ type: Boolean })
|
|
11252
|
-
],
|
|
11253
|
-
|
|
11253
|
+
], I.prototype, "forceAction", 2);
|
|
11254
|
+
J([
|
|
11254
11255
|
l({ type: Boolean })
|
|
11255
|
-
],
|
|
11256
|
-
|
|
11256
|
+
], I.prototype, "removeOnHide", 2);
|
|
11257
|
+
J([
|
|
11257
11258
|
l({ type: Boolean })
|
|
11258
|
-
],
|
|
11259
|
-
|
|
11259
|
+
], I.prototype, "removeHashOnHide", 2);
|
|
11260
|
+
J([
|
|
11260
11261
|
l({ type: String, reflect: !0 })
|
|
11261
|
-
],
|
|
11262
|
-
|
|
11262
|
+
], I.prototype, "align", 2);
|
|
11263
|
+
J([
|
|
11263
11264
|
l({ type: String })
|
|
11264
|
-
],
|
|
11265
|
-
|
|
11265
|
+
], I.prototype, "paddingX", 2);
|
|
11266
|
+
J([
|
|
11266
11267
|
l({ type: String })
|
|
11267
|
-
],
|
|
11268
|
-
|
|
11268
|
+
], I.prototype, "paddingY", 2);
|
|
11269
|
+
J([
|
|
11269
11270
|
l({ type: String })
|
|
11270
|
-
],
|
|
11271
|
-
|
|
11271
|
+
], I.prototype, "maxWidth", 2);
|
|
11272
|
+
J([
|
|
11272
11273
|
l({ type: String })
|
|
11273
|
-
],
|
|
11274
|
-
|
|
11274
|
+
], I.prototype, "maxHeight", 2);
|
|
11275
|
+
J([
|
|
11275
11276
|
l({ type: String })
|
|
11276
|
-
],
|
|
11277
|
-
|
|
11277
|
+
], I.prototype, "zIndex", 2);
|
|
11278
|
+
J([
|
|
11278
11279
|
l({ type: String })
|
|
11279
|
-
],
|
|
11280
|
-
|
|
11280
|
+
], I.prototype, "width", 2);
|
|
11281
|
+
J([
|
|
11281
11282
|
l({ type: String })
|
|
11282
|
-
],
|
|
11283
|
-
|
|
11283
|
+
], I.prototype, "height", 2);
|
|
11284
|
+
J([
|
|
11285
|
+
l({ type: String })
|
|
11286
|
+
], I.prototype, "effect", 2);
|
|
11287
|
+
J([
|
|
11284
11288
|
l({ type: Object })
|
|
11285
|
-
],
|
|
11286
|
-
|
|
11289
|
+
], I.prototype, "options", 2);
|
|
11290
|
+
J([
|
|
11287
11291
|
l({ type: Boolean, reflect: !0 })
|
|
11288
|
-
],
|
|
11289
|
-
|
|
11292
|
+
], I.prototype, "fullScreen", 2);
|
|
11293
|
+
J([
|
|
11290
11294
|
l({ type: Boolean, reflect: !0 })
|
|
11291
|
-
],
|
|
11292
|
-
|
|
11295
|
+
], I.prototype, "visible", 2);
|
|
11296
|
+
J([
|
|
11293
11297
|
Te("#modal")
|
|
11294
|
-
],
|
|
11295
|
-
|
|
11298
|
+
], I.prototype, "_modalElement", 2);
|
|
11299
|
+
J([
|
|
11296
11300
|
l({ type: Boolean })
|
|
11297
|
-
],
|
|
11298
|
-
|
|
11301
|
+
], I.prototype, "closeOnLocationChange", 2);
|
|
11302
|
+
J([
|
|
11299
11303
|
L()
|
|
11300
|
-
],
|
|
11301
|
-
|
|
11304
|
+
], I.prototype, "location", 2);
|
|
11305
|
+
J([
|
|
11302
11306
|
L()
|
|
11303
|
-
],
|
|
11304
|
-
|
|
11307
|
+
], I.prototype, "_animationState", 2);
|
|
11308
|
+
I = J([
|
|
11305
11309
|
$(So)
|
|
11306
|
-
],
|
|
11307
|
-
typeof window < "u" && (window.SonicModal =
|
|
11310
|
+
], I);
|
|
11311
|
+
typeof window < "u" && (window.SonicModal = I);
|
|
11308
11312
|
var Rh = Object.defineProperty, Uh = Object.getOwnPropertyDescriptor, Vt = (r, t, e, i) => {
|
|
11309
11313
|
for (var s = i > 1 ? void 0 : i ? Uh(t, e) : t, o = r.length - 1, n; o >= 0; o--)
|
|
11310
11314
|
(n = r[o]) && (s = (i ? n(t, e, s) : n(s)) || s);
|
|
@@ -12245,7 +12249,7 @@ let Yt = class extends x {
|
|
|
12245
12249
|
};
|
|
12246
12250
|
return g`<th
|
|
12247
12251
|
part="th"
|
|
12248
|
-
style=${
|
|
12252
|
+
style=${bt(r)}
|
|
12249
12253
|
colspan=${C(this.colSpan)}
|
|
12250
12254
|
rowspan=${C(this.rowSpan)}
|
|
12251
12255
|
>
|
|
@@ -12316,7 +12320,7 @@ let It = class extends x {
|
|
|
12316
12320
|
maxWidth: this.maxWidth,
|
|
12317
12321
|
width: this.width
|
|
12318
12322
|
};
|
|
12319
|
-
return g`<td part="td" style=${
|
|
12323
|
+
return g`<td part="td" style=${bt(r)} colspan=${C(this.colSpan)} rowspan=${C(this.rowSpan)}>
|
|
12320
12324
|
<slot></slot>
|
|
12321
12325
|
</td>`;
|
|
12322
12326
|
}
|
|
@@ -12480,7 +12484,7 @@ let re = class extends x {
|
|
|
12480
12484
|
return g`
|
|
12481
12485
|
<div
|
|
12482
12486
|
class="table-container ${this.noCustomScroll ? "" : "custom-scroll"}"
|
|
12483
|
-
style=${
|
|
12487
|
+
style=${bt(r)}
|
|
12484
12488
|
>
|
|
12485
12489
|
<div class="table">
|
|
12486
12490
|
<slot></slot>
|
|
@@ -13008,7 +13012,7 @@ window["concorde-directives-data-provider"] = {
|
|
|
13008
13012
|
get: cn,
|
|
13009
13013
|
set: dn
|
|
13010
13014
|
};
|
|
13011
|
-
const cp = M, hp =
|
|
13015
|
+
const cp = M, hp = I;
|
|
13012
13016
|
window["concorde-components"] = window["concorde-components"] || {};
|
|
13013
13017
|
window["concorde-components"] = {
|
|
13014
13018
|
SonicToast: cp,
|