@supersoniks/concorde 4.9.5 → 4.9.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build-infos.json +1 -1
- package/concorde-core.bundle.js +71 -71
- package/concorde-core.es.js +409 -362
- package/dist/concorde-core.bundle.js +71 -71
- package/dist/concorde-core.es.js +409 -362
- package/dist/js/core/components/functional/queue/queue.js +45 -15
- package/dist/js/core/components/functional/queue/queue.js.map +1 -1
- package/dist/js/core/utils/HTML.js +40 -15
- package/dist/js/core/utils/HTML.js.map +1 -1
- package/dist/types/core/components/functional/queue/queue.d.ts +6 -2
- package/dist/types/core/components/functional/queue/queue.d.ts.map +1 -1
- package/dist/types/core/utils/HTML.d.ts +15 -0
- package/dist/types/core/utils/HTML.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/core/components/functional/queue/queue.md +0 -0
- package/src/core/components/functional/queue/queue.ts +51 -20
- package/src/core/components/ui/button/button.md +0 -0
- package/src/core/components/ui/button/button.ts +0 -0
- package/src/core/utils/HTML.ts +52 -17
- package/src/docs/code.ts +0 -0
- package/src/docs/search/docs-search.json +123 -28
- package/src/docs/search/markdown-renderer.ts +0 -0
package/dist/concorde-core.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
let Q = class
|
|
1
|
+
let Q = class ft {
|
|
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
|
*/
|
|
@@ -14,31 +14,59 @@ let Q = class Et {
|
|
|
14
14
|
), t;
|
|
15
15
|
}, {});
|
|
16
16
|
}
|
|
17
|
+
/**
|
|
18
|
+
* Ancêtre suivant dans l'arbre composé : slot de projection, sinon parentNode / shadow host.
|
|
19
|
+
* Nécessaire pour trouver un scroller/clipper dans le shadow d'un ancêtre (ex. #modal.custom-scroll).
|
|
20
|
+
*/
|
|
21
|
+
static nextComposedAncestor(t) {
|
|
22
|
+
return t instanceof Element && t.assignedSlot ? t.assignedSlot : t.parentNode || t.host || null;
|
|
23
|
+
}
|
|
17
24
|
static everyAncestors(t, i) {
|
|
18
25
|
for (; t; ) {
|
|
19
26
|
if (!i(t)) return;
|
|
20
27
|
t = t.parentNode || t.host;
|
|
21
28
|
}
|
|
22
29
|
}
|
|
23
|
-
static
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
+
static overflowMatches(t, i) {
|
|
31
|
+
return i.includes(t.overflowY) || i.includes(t.overflowX);
|
|
32
|
+
}
|
|
33
|
+
static findAncestorByOverflow(t, i) {
|
|
34
|
+
let r = t;
|
|
35
|
+
for (; r; ) {
|
|
36
|
+
if (r instanceof Element && r.nodeType === 1) {
|
|
37
|
+
const e = window.getComputedStyle(r);
|
|
38
|
+
if (ft.overflowMatches(e, i))
|
|
39
|
+
return r;
|
|
30
40
|
}
|
|
31
|
-
|
|
41
|
+
r = ft.nextComposedAncestor(r);
|
|
32
42
|
}
|
|
33
43
|
return null;
|
|
34
44
|
}
|
|
45
|
+
/**
|
|
46
|
+
* Ancêtre qui clippe (inclut overflow:hidden) — ex. clamp de sonic-pop.
|
|
47
|
+
* Reconnaît aussi overflow:overlay (.custom-scroll) et traverse les slots.
|
|
48
|
+
*/
|
|
49
|
+
static getScrollableAncestor(t) {
|
|
50
|
+
return ft.findAncestorByOverflow(t, [
|
|
51
|
+
"auto",
|
|
52
|
+
"scroll",
|
|
53
|
+
"hidden",
|
|
54
|
+
"overlay"
|
|
55
|
+
]);
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Ancêtre réellement scrollable (pas overflow:hidden) — ex. restore scroll Safari de sonic-queue.
|
|
59
|
+
*/
|
|
60
|
+
static getScrollingAncestor(t) {
|
|
61
|
+
return ft.findAncestorByOverflow(t, ["auto", "scroll", "overlay"]);
|
|
62
|
+
}
|
|
35
63
|
/** Noms d'attribut DOM à tester (Lit reflect → minuscules, ex. serviceURL → serviceurl). */
|
|
36
64
|
static scopeAttributeNames(t) {
|
|
37
65
|
const i = t.toLowerCase();
|
|
38
66
|
return i === t ? [t] : [t, i];
|
|
39
67
|
}
|
|
40
68
|
static readScopeAttributeOnElement(t, i) {
|
|
41
|
-
for (const r of
|
|
69
|
+
for (const r of ft.scopeAttributeNames(i))
|
|
42
70
|
if (t.hasAttribute(r))
|
|
43
71
|
return t.getAttribute(r) ?? "";
|
|
44
72
|
return null;
|
|
@@ -53,7 +81,7 @@ let Q = class Et {
|
|
|
53
81
|
let r = t;
|
|
54
82
|
for (; r; ) {
|
|
55
83
|
if (r instanceof HTMLElement) {
|
|
56
|
-
const o =
|
|
84
|
+
const o = ft.readScopeAttributeOnElement(r, i);
|
|
57
85
|
if (o != null)
|
|
58
86
|
return o;
|
|
59
87
|
}
|
|
@@ -68,11 +96,11 @@ let Q = class Et {
|
|
|
68
96
|
* Utilisée pour la configuration du wording / de la traduction ainsi que par le mixin fetcher par exemple
|
|
69
97
|
*/
|
|
70
98
|
static getApiConfiguration(t) {
|
|
71
|
-
const i =
|
|
99
|
+
const i = ft.getAncestorAttributeValue(t, "token"), r = ft.getAncestorAttributeValue(t, "addHTTPResponse") != null, e = ft.getAncestorAttributeValue(t, "serviceURL");
|
|
72
100
|
let o = null, n = null;
|
|
73
|
-
const l =
|
|
74
|
-
i || (o =
|
|
75
|
-
const h =
|
|
101
|
+
const l = ft.getAncestorAttributeValue(t, "tokenProvider"), c = ft.getAncestorAttributeValue(t, "eventsApiToken");
|
|
102
|
+
i || (o = ft.getAncestorAttributeValue(t, "userName"), n = ft.getAncestorAttributeValue(t, "password"));
|
|
103
|
+
const h = ft.getAncestorAttributeValue(
|
|
76
104
|
t,
|
|
77
105
|
"credentials"
|
|
78
106
|
) || void 0, u = t.getAttribute("cache"), d = t.hasAttribute("blockUntilDone"), p = t.hasAttribute("keepAlive");
|
|
@@ -106,7 +134,7 @@ let Q = class Et {
|
|
|
106
134
|
* @returns valeur de l'attribut ou null si l'attribut n'est pas trouvé
|
|
107
135
|
*/
|
|
108
136
|
static getClosestForm(t) {
|
|
109
|
-
return
|
|
137
|
+
return ft.getClosestElement(t, "form");
|
|
110
138
|
}
|
|
111
139
|
/**
|
|
112
140
|
* Parcourt les ancêtres (parentNode / shadow host) et collecte ceux dont le tagName
|
|
@@ -326,7 +354,7 @@ let ht = class te {
|
|
|
326
354
|
return te.getURLSearchArray(t, "").join("&");
|
|
327
355
|
}
|
|
328
356
|
};
|
|
329
|
-
const
|
|
357
|
+
const wt = ht.traverseDotNotation;
|
|
330
358
|
let nn = class {
|
|
331
359
|
static async queueTaskPromise() {
|
|
332
360
|
return new Promise((t) => {
|
|
@@ -357,12 +385,12 @@ function co(s) {
|
|
|
357
385
|
function Ts(s) {
|
|
358
386
|
return Object.prototype.hasOwnProperty.call(s, "__value");
|
|
359
387
|
}
|
|
360
|
-
function
|
|
388
|
+
function le(s) {
|
|
361
389
|
return typeof s == "object" && s !== null;
|
|
362
390
|
}
|
|
363
391
|
let He = "sonic";
|
|
364
392
|
typeof __SONIC_PREFIX__ > "u" && (He = "sonic");
|
|
365
|
-
const mi = He == "sonic" ? "publisher-proxies-data" : He + "-publisher-proxies-data",
|
|
393
|
+
const mi = He == "sonic" ? "publisher-proxies-data" : He + "-publisher-proxies-data", ce = class ce {
|
|
366
394
|
constructor(t, i, r) {
|
|
367
395
|
for (this._proxies_ = /* @__PURE__ */ new Map(), this._is_savable_ = !1, this._expiration_delay_ = 1e3 * 60 * 60 * 12, this._invalidate_on_page_show_ = !1, this._invalidateListeners_ = /* @__PURE__ */ new Set(), this._formInvalidateListeners_ = /* @__PURE__ */ new Set(), this._assignListeners_ = /* @__PURE__ */ new Set(), this._mutationListeners_ = /* @__PURE__ */ new Set(), this._fillListeners_ = /* @__PURE__ */ new Set(), this._templateFillListeners_ = /* @__PURE__ */ new Set(), this._lockInternalMutationPublishing_ = !1, this._instanceCounter_ = 0, this._assignmentId_ = 0, this._value_ = t, this.parent = i || null, this._parentKey_ = r, this.root = this, this._instanceCounter_ = 0; this.root.parent; )
|
|
368
396
|
this.root = this.root.parent;
|
|
@@ -374,7 +402,7 @@ const mi = He == "sonic" ? "publisher-proxies-data" : He + "-publisher-proxies-d
|
|
|
374
402
|
delete() {
|
|
375
403
|
for (const t in this._proxies_.keys())
|
|
376
404
|
t != "_parent_" && this._proxies_.get(t)?.delete();
|
|
377
|
-
this._invalidateListeners_.clear(), this._formInvalidateListeners_.clear(), this._assignListeners_.clear(), this._mutationListeners_.clear(), this._fillListeners_.clear(), this._templateFillListeners_.clear(), this._proxies_.clear(),
|
|
405
|
+
this._invalidateListeners_.clear(), this._formInvalidateListeners_.clear(), this._assignListeners_.clear(), this._mutationListeners_.clear(), this._fillListeners_.clear(), this._templateFillListeners_.clear(), this._proxies_.clear(), ce.instances.delete(this._instanceCounter_);
|
|
378
406
|
}
|
|
379
407
|
/**
|
|
380
408
|
* Utile pour savoir si quelque chose est en écoute d'une modification sur le proxy via une des methodes associées
|
|
@@ -519,9 +547,9 @@ const mi = He == "sonic" ? "publisher-proxies-data" : He + "-publisher-proxies-d
|
|
|
519
547
|
* Assigne une nouvelle valeur au proxy ce qui déclenche la transmission de la donnée en fonction des "écouteurs" associés
|
|
520
548
|
*/
|
|
521
549
|
set(t, i = !1) {
|
|
522
|
-
if (this._value_ === t ||
|
|
550
|
+
if (this._value_ === t || le(this._value_) && le(t) && t && Ts(this._value_) && Ts(t) && this._value_.__value === t.__value || !le(t) && t === this._value_.__value)
|
|
523
551
|
return !0;
|
|
524
|
-
this._value_ =
|
|
552
|
+
this._value_ = le(t) ? t : { __value: t }, this._cachedGet_ = void 0;
|
|
525
553
|
const r = Ts(this._value_);
|
|
526
554
|
if (this._parentKey_ && this.parent) {
|
|
527
555
|
const e = Ts(this._value_) ? this._value_.__value : this._value_;
|
|
@@ -550,9 +578,9 @@ const mi = He == "sonic" ? "publisher-proxies-data" : He + "-publisher-proxies-d
|
|
|
550
578
|
}), this._publishAssignement_(), this.parent && this._parentKey_ && this.parent._publishDynamicFilling_(
|
|
551
579
|
this._parentKey_,
|
|
552
580
|
this._value_
|
|
553
|
-
),
|
|
581
|
+
), le(this._value_))
|
|
554
582
|
for (const e in this._value_) {
|
|
555
|
-
const o = t[e], l =
|
|
583
|
+
const o = t[e], l = le(o) ? o : { __value: o };
|
|
556
584
|
if (!this._proxies_.has(e)) {
|
|
557
585
|
this._publishDynamicFilling_(e, o);
|
|
558
586
|
continue;
|
|
@@ -573,11 +601,11 @@ const mi = He == "sonic" ? "publisher-proxies-data" : He + "-publisher-proxies-d
|
|
|
573
601
|
* retourner le webcomponent auquel le proxy est associé
|
|
574
602
|
*/
|
|
575
603
|
get $tag() {
|
|
576
|
-
return this._instanceCounter_ || (
|
|
604
|
+
return this._instanceCounter_ || (ce.instancesCounter++, this._instanceCounter_ = ce.instancesCounter), ce.instances.set(this._instanceCounter_, this), "<" + He + '-publisher-proxy publisher="' + this._instanceCounter_ + '"></' + He + "-publisher-proxy>";
|
|
577
605
|
}
|
|
578
606
|
};
|
|
579
|
-
|
|
580
|
-
let cs =
|
|
607
|
+
ce.instances = /* @__PURE__ */ new Map(), ce.instancesCounter = 0;
|
|
608
|
+
let cs = ce;
|
|
581
609
|
const zs = [];
|
|
582
610
|
function ln(s) {
|
|
583
611
|
zs.length > 0 && zs[0].add(s);
|
|
@@ -742,7 +770,7 @@ const j = class j {
|
|
|
742
770
|
return new TextDecoder().decode(h);
|
|
743
771
|
}
|
|
744
772
|
};
|
|
745
|
-
j.buildDate = "
|
|
773
|
+
j.buildDate = "Tue Sep 08 2026 13:42:16 GMT+0200 (Central European Summer Time)", j.changed = !1, j.saving = !1, j.saveId = 0, j.instance = null, j.instances = /* @__PURE__ */ new Map(), j.pageShowHandlerInitialized = !1;
|
|
746
774
|
let E = j;
|
|
747
775
|
if (typeof window < "u") {
|
|
748
776
|
const s = window;
|
|
@@ -806,7 +834,7 @@ function hn(s, t) {
|
|
|
806
834
|
return () => t().get();
|
|
807
835
|
if (!s._proxies_.has(r)) {
|
|
808
836
|
const e = s._value_[r], o = Pi(
|
|
809
|
-
|
|
837
|
+
le(e) ? e : { __value: e },
|
|
810
838
|
s,
|
|
811
839
|
r
|
|
812
840
|
);
|
|
@@ -841,7 +869,7 @@ function hn(s, t) {
|
|
|
841
869
|
);
|
|
842
870
|
n._proxies_.set("_parent_", t()), s._proxies_.set(r, n);
|
|
843
871
|
}
|
|
844
|
-
return s._value_[r] !== e && (s._value_[r] = e, s._publishDynamicFilling_(r, e), s._proxies_.get(r)?.set(
|
|
872
|
+
return s._value_[r] !== e && (s._value_[r] = e, s._publishDynamicFilling_(r, e), s._proxies_.get(r)?.set(le(e) ? e : { __value: e })), !0;
|
|
845
873
|
},
|
|
846
874
|
/**
|
|
847
875
|
* Autres propriétés classiques d'un objet implémentées par le proxy
|
|
@@ -1430,7 +1458,7 @@ function _s(s) {
|
|
|
1430
1458
|
* Copyright 2017 Google LLC
|
|
1431
1459
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1432
1460
|
*/
|
|
1433
|
-
function
|
|
1461
|
+
function vt(s) {
|
|
1434
1462
|
return (t, i) => {
|
|
1435
1463
|
const { slot: r } = s ?? {}, e = "slot" + (r ? `[name=${r}]` : ":not([name])");
|
|
1436
1464
|
return Zi(t, i, { get() {
|
|
@@ -1443,9 +1471,9 @@ function gt(s) {
|
|
|
1443
1471
|
* Copyright 2017 Google LLC
|
|
1444
1472
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1445
1473
|
*/
|
|
1446
|
-
const Xi = globalThis, Bs = Xi.trustedTypes, Ar = Bs ? Bs.createPolicy("lit-html", { createHTML: (s) => s }) : void 0, po = "$lit$",
|
|
1474
|
+
const Xi = globalThis, Bs = Xi.trustedTypes, Ar = Bs ? Bs.createPolicy("lit-html", { createHTML: (s) => s }) : void 0, po = "$lit$", he = `lit$${Math.random().toFixed(9).slice(2)}$`, fo = "?" + he, An = `<${fo}>`, De = document, hs = () => De.createComment(""), ds = (s) => s === null || typeof s != "object" && typeof s != "function", Qi = Array.isArray, kn = (s) => Qi(s) || typeof s?.[Symbol.iterator] == "function", gi = `[
|
|
1447
1475
|
\f\r]`, es = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, kr = /-->/g, Dr = />/g, Ce = RegExp(`>|${gi}(?:([^\\s"'>=/]+)(${gi}*=${gi}*(?:[^
|
|
1448
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"), Or = /'/g, Er = /"/g, bo = /^(?:script|style|textarea|title)$/i, Dn = (s) => (t, ...i) => ({ _$litType$: s, strings: t, values: i }), g = Dn(1),
|
|
1476
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), Or = /'/g, Er = /"/g, bo = /^(?:script|style|textarea|title)$/i, Dn = (s) => (t, ...i) => ({ _$litType$: s, strings: t, values: i }), g = Dn(1), Dt = Symbol.for("lit-noChange"), k = Symbol.for("lit-nothing"), Lr = /* @__PURE__ */ new WeakMap(), ke = De.createTreeWalker(De, 129);
|
|
1449
1477
|
function mo(s, t) {
|
|
1450
1478
|
if (!Qi(s) || !s.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
1451
1479
|
return Ar !== void 0 ? Ar.createHTML(t) : t;
|
|
@@ -1458,7 +1486,7 @@ const On = (s, t) => {
|
|
|
1458
1486
|
let h, u, d = -1, p = 0;
|
|
1459
1487
|
for (; p < c.length && (n.lastIndex = p, u = n.exec(c), u !== null); ) p = n.lastIndex, n === es ? u[1] === "!--" ? n = kr : u[1] !== void 0 ? n = Dr : u[2] !== void 0 ? (bo.test(u[2]) && (e = RegExp("</" + u[2], "g")), n = Ce) : u[3] !== void 0 && (n = Ce) : n === Ce ? u[0] === ">" ? (n = e ?? es, d = -1) : u[1] === void 0 ? d = -2 : (d = n.lastIndex - u[2].length, h = u[1], n = u[3] === void 0 ? Ce : u[3] === '"' ? Er : Or) : n === Er || n === Or ? n = Ce : n === kr || n === Dr ? n = es : (n = Ce, e = void 0);
|
|
1460
1488
|
const w = n === Ce && s[l + 1].startsWith("/>") ? " " : "";
|
|
1461
|
-
o += n === es ? c + An : d >= 0 ? (r.push(h), c.slice(0, d) + po + c.slice(d) +
|
|
1489
|
+
o += n === es ? c + An : d >= 0 ? (r.push(h), c.slice(0, d) + po + c.slice(d) + he + w) : c + he + (d === -2 ? l : w);
|
|
1462
1490
|
}
|
|
1463
1491
|
return [mo(s, o + (s[i] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), r];
|
|
1464
1492
|
};
|
|
@@ -1475,11 +1503,11 @@ let Ci = class go {
|
|
|
1475
1503
|
for (; (e = ke.nextNode()) !== null && c.length < l; ) {
|
|
1476
1504
|
if (e.nodeType === 1) {
|
|
1477
1505
|
if (e.hasAttributes()) for (const d of e.getAttributeNames()) if (d.endsWith(po)) {
|
|
1478
|
-
const p = u[n++], w = e.getAttribute(d).split(
|
|
1506
|
+
const p = u[n++], w = e.getAttribute(d).split(he), v = /([.?@])?(.*)/.exec(p);
|
|
1479
1507
|
c.push({ type: 1, index: o, name: v[2], strings: w, ctor: v[1] === "." ? Ln : v[1] === "?" ? Tn : v[1] === "@" ? In : oi }), e.removeAttribute(d);
|
|
1480
|
-
} else d.startsWith(
|
|
1508
|
+
} else d.startsWith(he) && (c.push({ type: 6, index: o }), e.removeAttribute(d));
|
|
1481
1509
|
if (bo.test(e.tagName)) {
|
|
1482
|
-
const d = e.textContent.split(
|
|
1510
|
+
const d = e.textContent.split(he), p = d.length - 1;
|
|
1483
1511
|
if (p > 0) {
|
|
1484
1512
|
e.textContent = Bs ? Bs.emptyScript : "";
|
|
1485
1513
|
for (let w = 0; w < p; w++) e.append(d[w], hs()), ke.nextNode(), c.push({ type: 2, index: ++o });
|
|
@@ -1489,7 +1517,7 @@ let Ci = class go {
|
|
|
1489
1517
|
} else if (e.nodeType === 8) if (e.data === fo) c.push({ type: 2, index: o });
|
|
1490
1518
|
else {
|
|
1491
1519
|
let d = -1;
|
|
1492
|
-
for (; (d = e.data.indexOf(
|
|
1520
|
+
for (; (d = e.data.indexOf(he, d + 1)) !== -1; ) c.push({ type: 7, index: o }), d += he.length - 1;
|
|
1493
1521
|
}
|
|
1494
1522
|
o++;
|
|
1495
1523
|
}
|
|
@@ -1500,7 +1528,7 @@ let Ci = class go {
|
|
|
1500
1528
|
}
|
|
1501
1529
|
};
|
|
1502
1530
|
function qe(s, t, i = s, r) {
|
|
1503
|
-
if (t ===
|
|
1531
|
+
if (t === Dt) return t;
|
|
1504
1532
|
let e = r !== void 0 ? i._$Co?.[r] : i._$Cl;
|
|
1505
1533
|
const o = ds(t) ? void 0 : t._$litDirective$;
|
|
1506
1534
|
return e?.constructor !== o && (e?._$AO?.(!1), o === void 0 ? e = void 0 : (e = new o(s), e._$AT(s, i, r)), r !== void 0 ? (i._$Co ??= [])[r] = e : i._$Cl = e), e !== void 0 && (t = qe(s, e._$AS(s, t.values), e, r)), t;
|
|
@@ -1552,7 +1580,7 @@ class Ye {
|
|
|
1552
1580
|
return this._$AB;
|
|
1553
1581
|
}
|
|
1554
1582
|
_$AI(t, i = this) {
|
|
1555
|
-
t = qe(this, t, i), ds(t) ? t === k || t == null || t === "" ? (this._$AH !== k && this._$AR(), this._$AH = k) : t !== this._$AH && t !==
|
|
1583
|
+
t = qe(this, t, i), ds(t) ? t === k || t == null || t === "" ? (this._$AH !== k && this._$AR(), this._$AH = k) : t !== this._$AH && t !== Dt && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) : kn(t) ? this.k(t) : this._(t);
|
|
1556
1584
|
}
|
|
1557
1585
|
O(t) {
|
|
1558
1586
|
return this._$AA.parentNode.insertBefore(t, this._$AB);
|
|
@@ -1605,11 +1633,11 @@ class oi {
|
|
|
1605
1633
|
_$AI(t, i = this, r, e) {
|
|
1606
1634
|
const o = this.strings;
|
|
1607
1635
|
let n = !1;
|
|
1608
|
-
if (o === void 0) t = qe(this, t, i, 0), n = !ds(t) || t !== this._$AH && t !==
|
|
1636
|
+
if (o === void 0) t = qe(this, t, i, 0), n = !ds(t) || t !== this._$AH && t !== Dt, n && (this._$AH = t);
|
|
1609
1637
|
else {
|
|
1610
1638
|
const l = t;
|
|
1611
1639
|
let c, h;
|
|
1612
|
-
for (t = o[0], c = 0; c < o.length - 1; c++) h = qe(this, l[r + c], i, c), h ===
|
|
1640
|
+
for (t = o[0], c = 0; c < o.length - 1; c++) h = qe(this, l[r + c], i, c), h === Dt && (h = this._$AH[c]), n ||= !ds(h) || h !== this._$AH[c], h === k ? t = k : t !== k && (t += (h ?? "") + o[c + 1]), this._$AH[c] = h;
|
|
1613
1641
|
}
|
|
1614
1642
|
n && !e && this.j(t);
|
|
1615
1643
|
}
|
|
@@ -1638,7 +1666,7 @@ class In extends oi {
|
|
|
1638
1666
|
super(t, i, r, e, o), this.type = 5;
|
|
1639
1667
|
}
|
|
1640
1668
|
_$AI(t, i = this) {
|
|
1641
|
-
if ((t = qe(this, t, i, 0) ?? k) ===
|
|
1669
|
+
if ((t = qe(this, t, i, 0) ?? k) === Dt) return;
|
|
1642
1670
|
const r = this._$AH, e = t === k && r !== k || t.capture !== r.capture || t.once !== r.once || t.passive !== r.passive, o = t !== k && (r === k || e);
|
|
1643
1671
|
e && this.element.removeEventListener(this.name, this, r), o && this.element.addEventListener(this.name, this, t), this._$AH = t;
|
|
1644
1672
|
}
|
|
@@ -1801,7 +1829,7 @@ let P = class extends ze {
|
|
|
1801
1829
|
super.disconnectedCallback(), this._$Do?.setConnected(!1);
|
|
1802
1830
|
}
|
|
1803
1831
|
render() {
|
|
1804
|
-
return
|
|
1832
|
+
return Dt;
|
|
1805
1833
|
}
|
|
1806
1834
|
};
|
|
1807
1835
|
P._$litElement$ = !0, P.finalized = !0, tr.litElementHydrateSupport?.({ LitElement: P });
|
|
@@ -2131,7 +2159,7 @@ const H = class H {
|
|
|
2131
2159
|
}
|
|
2132
2160
|
};
|
|
2133
2161
|
H.loadingGetPromises = /* @__PURE__ */ new Map(), H.tokens = /* @__PURE__ */ new Map(), H.invalidTokens = [], H.failledTokenUpdates = /* @__PURE__ */ new Map(), H.firstCallDoneFlags = /* @__PURE__ */ new Map();
|
|
2134
|
-
let
|
|
2162
|
+
let ue = H;
|
|
2135
2163
|
Q.getApiConfiguration(
|
|
2136
2164
|
document.body || document.documentElement
|
|
2137
2165
|
);
|
|
@@ -2148,7 +2176,7 @@ let Si = class extends Ge {
|
|
|
2148
2176
|
}
|
|
2149
2177
|
render(t) {
|
|
2150
2178
|
if (t === k || t == null) return this._t = void 0, this.it = t;
|
|
2151
|
-
if (t ===
|
|
2179
|
+
if (t === Dt) return t;
|
|
2152
2180
|
if (typeof t != "string") throw Error(this.constructor.directiveName + "() called with a non-string value");
|
|
2153
2181
|
if (t === this.it) return this._t;
|
|
2154
2182
|
this.it = t;
|
|
@@ -2177,7 +2205,7 @@ const B = _e(Si), $i = /* @__PURE__ */ new Map(), Mr = (s) => {
|
|
|
2177
2205
|
break;
|
|
2178
2206
|
}
|
|
2179
2207
|
return o || (o = {
|
|
2180
|
-
api: new
|
|
2208
|
+
api: new ue(t),
|
|
2181
2209
|
keysToTranslate: /* @__PURE__ */ new Set(),
|
|
2182
2210
|
translatedKeys: /* @__PURE__ */ new Set(),
|
|
2183
2211
|
wordingProvider: i,
|
|
@@ -2198,7 +2226,7 @@ const B = _e(Si), $i = /* @__PURE__ */ new Map(), Mr = (s) => {
|
|
|
2198
2226
|
}
|
|
2199
2227
|
/* eslint-enable @typescript-eslint/no-explicit-any*/
|
|
2200
2228
|
render(t, i = !1) {
|
|
2201
|
-
return this.useUnsafeHTML = i, this.key !== t && (this.key = t, this.isConnected && this.subscribe(t)),
|
|
2229
|
+
return this.useUnsafeHTML = i, this.key !== t && (this.key = t, this.isConnected && this.subscribe(t)), Dt;
|
|
2202
2230
|
}
|
|
2203
2231
|
static async callApi(t, i, r = !0, e) {
|
|
2204
2232
|
if (await E.getInstance().isLocalStrorageReady, K.firstCall) {
|
|
@@ -2739,7 +2767,7 @@ let lt = (X = class {
|
|
|
2739
2767
|
* Copyright 2018 Google LLC
|
|
2740
2768
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
2741
2769
|
*/
|
|
2742
|
-
const yo = "important", ra = " !" + yo,
|
|
2770
|
+
const yo = "important", ra = " !" + yo, xt = _e(class extends Ge {
|
|
2743
2771
|
constructor(s) {
|
|
2744
2772
|
if (super(s), s.type !== Ie.ATTRIBUTE || s.name !== "style" || s.strings?.length > 2) throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.");
|
|
2745
2773
|
}
|
|
@@ -2761,7 +2789,7 @@ const yo = "important", ra = " !" + yo, wt = _e(class extends Ge {
|
|
|
2761
2789
|
r.includes("-") || o ? i.setProperty(r, o ? e.slice(0, -11) : e, o ? yo : "") : i[r] = e;
|
|
2762
2790
|
}
|
|
2763
2791
|
}
|
|
2764
|
-
return
|
|
2792
|
+
return Dt;
|
|
2765
2793
|
}
|
|
2766
2794
|
});
|
|
2767
2795
|
var oa = Object.defineProperty, na = Object.getOwnPropertyDescriptor, Bt = (s, t, i, r) => {
|
|
@@ -2800,11 +2828,11 @@ const Ms = /* @__PURE__ */ new Map(), Ze = (s) => {
|
|
|
2800
2828
|
}
|
|
2801
2829
|
setFormPublisherValue(r) {
|
|
2802
2830
|
const e = this.getFormPublisher();
|
|
2803
|
-
e &&
|
|
2831
|
+
e && wt(e, this.name).set(r);
|
|
2804
2832
|
}
|
|
2805
2833
|
getFormPublisherValue() {
|
|
2806
2834
|
const r = this.getFormPublisher();
|
|
2807
|
-
return r ?
|
|
2835
|
+
return r ? wt(r, this.name).get() : null;
|
|
2808
2836
|
}
|
|
2809
2837
|
/**
|
|
2810
2838
|
* Mise en forme de la valeur fournie au formPublisher associé au composant
|
|
@@ -2836,13 +2864,13 @@ const Ms = /* @__PURE__ */ new Map(), Ze = (s) => {
|
|
|
2836
2864
|
initPublisher() {
|
|
2837
2865
|
let r = this.getFormPublisher();
|
|
2838
2866
|
const e = this.hasAncestorAttribute("initFromPublisher") && this._name && this.getFormPublisherValue() ? this.getFormPublisherValue() : this.getAttribute("value");
|
|
2839
|
-
this._name && this.publisher &&
|
|
2867
|
+
this._name && this.publisher && wt(this.publisher, this._name).offAssign(
|
|
2840
2868
|
this.onValueAssign
|
|
2841
|
-
), this._name && r &&
|
|
2869
|
+
), this._name && r && wt(r, this._name).offAssign(
|
|
2842
2870
|
this.onFormValueAssign
|
|
2843
|
-
), super.initPublisher(), this.name || (this._name = this.getAttribute("name")), this.value || (this._value = this.getAttribute("value")), this.publisher && this._name &&
|
|
2871
|
+
), super.initPublisher(), this.name || (this._name = this.getAttribute("name")), this.value || (this._value = this.getAttribute("value")), this.publisher && this._name && wt(this.publisher, this._name).onAssign(
|
|
2844
2872
|
this.onValueAssign
|
|
2845
|
-
), r = this.getFormPublisher(), this._name && r && (
|
|
2873
|
+
), r = this.getFormPublisher(), this._name && r && (wt(r, this._name).onAssign(
|
|
2846
2874
|
this.onFormValueAssign
|
|
2847
2875
|
), r.onFormInvalidate(this.onFormDataInValidate)), this.updateDataValue(), e && (this.value = e);
|
|
2848
2876
|
}
|
|
@@ -2909,11 +2937,11 @@ const Ms = /* @__PURE__ */ new Map(), Ze = (s) => {
|
|
|
2909
2937
|
this.value = null;
|
|
2910
2938
|
}
|
|
2911
2939
|
disconnectedCallback() {
|
|
2912
|
-
this.unsetOnDisconnect() && this.unset(), super.disconnectedCallback(), this._name && this.publisher &&
|
|
2940
|
+
this.unsetOnDisconnect() && this.unset(), super.disconnectedCallback(), this._name && this.publisher && wt(this.publisher, this._name).offAssign(
|
|
2913
2941
|
this.onValueAssign
|
|
2914
2942
|
);
|
|
2915
2943
|
const r = this.getFormPublisher();
|
|
2916
|
-
this._name && r && (
|
|
2944
|
+
this._name && r && (wt(r, this._name).offAssign(
|
|
2917
2945
|
this.onFormValueAssign
|
|
2918
2946
|
), r.offFormInvalidate(this.onFormDataInValidate));
|
|
2919
2947
|
}
|
|
@@ -3343,14 +3371,14 @@ class ni {
|
|
|
3343
3371
|
return this.path;
|
|
3344
3372
|
}
|
|
3345
3373
|
}
|
|
3346
|
-
const ua = nn, pa = aa, fa = ii, ba = js,
|
|
3374
|
+
const ua = nn, pa = aa, fa = ii, ba = js, se = Q, ma = lt, xs = ht, ga = ue, va = ee;
|
|
3347
3375
|
window["concorde-utils"] = window["concorde-utils"] || {};
|
|
3348
3376
|
window["concorde-utils"] = {
|
|
3349
3377
|
Utils: ua,
|
|
3350
3378
|
Arrays: pa,
|
|
3351
3379
|
DataBindObserver: fa,
|
|
3352
3380
|
Format: ba,
|
|
3353
|
-
HTML:
|
|
3381
|
+
HTML: se,
|
|
3354
3382
|
LocationHandler: ma,
|
|
3355
3383
|
Objects: xs,
|
|
3356
3384
|
PublisherManager: E,
|
|
@@ -3610,7 +3638,7 @@ let R = class extends er(Ze(it(P))) {
|
|
|
3610
3638
|
<button
|
|
3611
3639
|
part="button"
|
|
3612
3640
|
class=${this.hasPrefix || this.hasSuffix ? "has-prefix-or-suffix" : ""}
|
|
3613
|
-
style=${
|
|
3641
|
+
style=${xt(s)}
|
|
3614
3642
|
aria-controls=${$(this.ariaControls)}
|
|
3615
3643
|
aria-expanded=${$(this.sonicAriaExpanded)}
|
|
3616
3644
|
aria-label=${$(this.ariaLabel)}
|
|
@@ -4150,7 +4178,7 @@ const jr = (s, t, i) => {
|
|
|
4150
4178
|
const m = e[d++];
|
|
4151
4179
|
m !== null && vi(m);
|
|
4152
4180
|
}
|
|
4153
|
-
return this.ut = n, Vn(s, c),
|
|
4181
|
+
return this.ut = n, Vn(s, c), Dt;
|
|
4154
4182
|
}
|
|
4155
4183
|
}), Ca = /* @__PURE__ */ new WeakMap();
|
|
4156
4184
|
let Rr = 0;
|
|
@@ -4520,7 +4548,7 @@ function sr(s, t) {
|
|
|
4520
4548
|
function ja(s, t) {
|
|
4521
4549
|
return !!(s == null || t?.skipEmptyPlaceholder && s === "");
|
|
4522
4550
|
}
|
|
4523
|
-
function
|
|
4551
|
+
function St(s, t, i) {
|
|
4524
4552
|
let r = !1;
|
|
4525
4553
|
const e = (l, c) => {
|
|
4526
4554
|
const h = Fa(c), u = sr(s, h);
|
|
@@ -4606,7 +4634,7 @@ const qs = {
|
|
|
4606
4634
|
}, Kr = {
|
|
4607
4635
|
watcherStore: "__publishDynamicWatcherStore__",
|
|
4608
4636
|
hooked: "__publishDynamicWillUpdateHooked__"
|
|
4609
|
-
},
|
|
4637
|
+
}, de = {
|
|
4610
4638
|
watcherStore: "__getDynamicWatcherStore__",
|
|
4611
4639
|
hooked: "__getDynamicWillUpdateHooked__"
|
|
4612
4640
|
}, Yr = {
|
|
@@ -4673,7 +4701,7 @@ function Ha(s, t) {
|
|
|
4673
4701
|
}, p.currentPath = m, d[h] = y;
|
|
4674
4702
|
}, v = () => {
|
|
4675
4703
|
if (o) {
|
|
4676
|
-
const m =
|
|
4704
|
+
const m = St(d, s, r);
|
|
4677
4705
|
if (!m.ready) {
|
|
4678
4706
|
w(null);
|
|
4679
4707
|
return;
|
|
@@ -4732,7 +4760,7 @@ function Po(s, t) {
|
|
|
4732
4760
|
}), m = () => {
|
|
4733
4761
|
let y;
|
|
4734
4762
|
if (e.length) {
|
|
4735
|
-
const f =
|
|
4763
|
+
const f = St(d, i, r);
|
|
4736
4764
|
y = f.ready ? f.path : null;
|
|
4737
4765
|
} else
|
|
4738
4766
|
y = i;
|
|
@@ -4831,7 +4859,7 @@ function So(s, t) {
|
|
|
4831
4859
|
}, v = () => {
|
|
4832
4860
|
for (const m of p)
|
|
4833
4861
|
if (m.pathConfig.isDynamic) {
|
|
4834
|
-
const y =
|
|
4862
|
+
const y = St(
|
|
4835
4863
|
h,
|
|
4836
4864
|
m.pathConfig.originalPath,
|
|
4837
4865
|
r
|
|
@@ -5047,7 +5075,7 @@ var el = Object.defineProperty, sl = Object.getOwnPropertyDescriptor, Ne = (s, t
|
|
|
5047
5075
|
return r && e && el(t, i, e), e;
|
|
5048
5076
|
};
|
|
5049
5077
|
const rr = (s) => a(s), il = "sonic-icon";
|
|
5050
|
-
let
|
|
5078
|
+
let ie = class extends P {
|
|
5051
5079
|
constructor() {
|
|
5052
5080
|
super(...arguments), this.iconText = "", this.name = "", this.prefix = "", this.library = "", this.customIconLibraryPath = null, this.customIconDefaultPrefix = null;
|
|
5053
5081
|
}
|
|
@@ -5070,7 +5098,7 @@ let se = class extends P {
|
|
|
5070
5098
|
return this.iconText ? this.iconText : k;
|
|
5071
5099
|
}
|
|
5072
5100
|
};
|
|
5073
|
-
|
|
5101
|
+
ie.styles = S`
|
|
5074
5102
|
:host {
|
|
5075
5103
|
line-height: 0.1em;
|
|
5076
5104
|
width: fit-content;
|
|
@@ -5123,27 +5151,27 @@ se.styles = S`
|
|
|
5123
5151
|
`;
|
|
5124
5152
|
Ne([
|
|
5125
5153
|
T()
|
|
5126
|
-
],
|
|
5154
|
+
], ie.prototype, "iconText", 2);
|
|
5127
5155
|
Ne([
|
|
5128
5156
|
rr({ type: String })
|
|
5129
|
-
],
|
|
5157
|
+
], ie.prototype, "name", 2);
|
|
5130
5158
|
Ne([
|
|
5131
5159
|
rr({ type: String })
|
|
5132
|
-
],
|
|
5160
|
+
], ie.prototype, "prefix", 2);
|
|
5133
5161
|
Ne([
|
|
5134
5162
|
rr({ type: String })
|
|
5135
|
-
],
|
|
5163
|
+
], ie.prototype, "library", 2);
|
|
5136
5164
|
Ne([
|
|
5137
5165
|
ir("customIconLibraryPath", { dynamic: !0 }),
|
|
5138
5166
|
T()
|
|
5139
|
-
],
|
|
5167
|
+
], ie.prototype, "customIconLibraryPath", 2);
|
|
5140
5168
|
Ne([
|
|
5141
5169
|
ir("customIconDefaultPrefix", { dynamic: !0 }),
|
|
5142
5170
|
T()
|
|
5143
|
-
],
|
|
5144
|
-
|
|
5171
|
+
], ie.prototype, "customIconDefaultPrefix", 2);
|
|
5172
|
+
ie = Ne([
|
|
5145
5173
|
C(il)
|
|
5146
|
-
],
|
|
5174
|
+
], ie);
|
|
5147
5175
|
const Ps = S`
|
|
5148
5176
|
.custom-scroll {
|
|
5149
5177
|
overflow: auto !important;
|
|
@@ -5178,7 +5206,7 @@ const nl = {
|
|
|
5178
5206
|
error: "warning-circled-outline",
|
|
5179
5207
|
info: "info-empty"
|
|
5180
5208
|
}, al = "sonic-toast-item";
|
|
5181
|
-
let
|
|
5209
|
+
let Ot = class extends P {
|
|
5182
5210
|
constructor() {
|
|
5183
5211
|
super(...arguments), this.title = "", this.id = "", this.text = "", this.status = "", this.ghost = !1, this.preserve = !1, this.dismissForever = !1, this.maxHeight = "10rem", this.visible = !0, this._titleId = "";
|
|
5184
5212
|
}
|
|
@@ -5265,7 +5293,7 @@ let Dt = class extends P {
|
|
|
5265
5293
|
</div>`;
|
|
5266
5294
|
}
|
|
5267
5295
|
hide() {
|
|
5268
|
-
if (
|
|
5296
|
+
if (se.getClosestElement(this, "sonic-toast") || (this.visible = !1), this.dismissForever) {
|
|
5269
5297
|
const s = localStorage.getItem("sonic-toast-dismissed") || "{}", t = JSON.parse(s);
|
|
5270
5298
|
t[this.id] = !0, localStorage.setItem(
|
|
5271
5299
|
"sonic-toast-dismissed",
|
|
@@ -5283,7 +5311,7 @@ let Dt = class extends P {
|
|
|
5283
5311
|
}, 6e3);
|
|
5284
5312
|
}
|
|
5285
5313
|
};
|
|
5286
|
-
|
|
5314
|
+
Ot.styles = [
|
|
5287
5315
|
Ps,
|
|
5288
5316
|
S`
|
|
5289
5317
|
* {
|
|
@@ -5469,37 +5497,37 @@ Dt.styles = [
|
|
|
5469
5497
|
];
|
|
5470
5498
|
zt([
|
|
5471
5499
|
a({ type: String })
|
|
5472
|
-
],
|
|
5500
|
+
], Ot.prototype, "title", 2);
|
|
5473
5501
|
zt([
|
|
5474
5502
|
a({ type: String })
|
|
5475
|
-
],
|
|
5503
|
+
], Ot.prototype, "id", 2);
|
|
5476
5504
|
zt([
|
|
5477
5505
|
a({ type: String })
|
|
5478
|
-
],
|
|
5506
|
+
], Ot.prototype, "text", 2);
|
|
5479
5507
|
zt([
|
|
5480
5508
|
a({ type: String })
|
|
5481
|
-
],
|
|
5509
|
+
], Ot.prototype, "status", 2);
|
|
5482
5510
|
zt([
|
|
5483
5511
|
a({ type: Boolean })
|
|
5484
|
-
],
|
|
5512
|
+
], Ot.prototype, "ghost", 2);
|
|
5485
5513
|
zt([
|
|
5486
5514
|
a({ type: Boolean })
|
|
5487
|
-
],
|
|
5515
|
+
], Ot.prototype, "preserve", 2);
|
|
5488
5516
|
zt([
|
|
5489
5517
|
a({ type: Boolean })
|
|
5490
|
-
],
|
|
5518
|
+
], Ot.prototype, "dismissForever", 2);
|
|
5491
5519
|
zt([
|
|
5492
5520
|
a({ type: String })
|
|
5493
|
-
],
|
|
5521
|
+
], Ot.prototype, "maxHeight", 2);
|
|
5494
5522
|
zt([
|
|
5495
5523
|
T()
|
|
5496
|
-
],
|
|
5524
|
+
], Ot.prototype, "visible", 2);
|
|
5497
5525
|
zt([
|
|
5498
5526
|
T()
|
|
5499
|
-
],
|
|
5500
|
-
|
|
5527
|
+
], Ot.prototype, "_titleId", 2);
|
|
5528
|
+
Ot = zt([
|
|
5501
5529
|
C(al)
|
|
5502
|
-
],
|
|
5530
|
+
], Ot);
|
|
5503
5531
|
const ll = S`
|
|
5504
5532
|
:host {
|
|
5505
5533
|
/* POLICES */
|
|
@@ -5642,15 +5670,15 @@ var dl = Object.defineProperty, ul = Object.getOwnPropertyDescriptor, Cs = (s, t
|
|
|
5642
5670
|
return r && e && dl(t, i, e), e;
|
|
5643
5671
|
};
|
|
5644
5672
|
const pl = "sonic-theme";
|
|
5645
|
-
let
|
|
5673
|
+
let kt = class extends P {
|
|
5646
5674
|
constructor() {
|
|
5647
|
-
super(), this.background = !1, this.color = !1, this.font = !1,
|
|
5675
|
+
super(), this.background = !1, this.color = !1, this.font = !1, kt.instance = this;
|
|
5648
5676
|
}
|
|
5649
5677
|
/**
|
|
5650
5678
|
* retourne le conteneur de tout ce qui pop : popups / modale / tooltip? / dropdown / ...
|
|
5651
5679
|
*/
|
|
5652
5680
|
static getPopContainer() {
|
|
5653
|
-
return
|
|
5681
|
+
return kt.instance || document.body;
|
|
5654
5682
|
}
|
|
5655
5683
|
connectedCallback() {
|
|
5656
5684
|
super.connectedCallback(), window.addEventListener("message", (s) => this.receiveMessage(s), !1), window.dispatchEvent(new CustomEvent("SonicThemeReady")), this.postCSSVars();
|
|
@@ -5681,7 +5709,7 @@ let At = class extends P {
|
|
|
5681
5709
|
}
|
|
5682
5710
|
getCssVariables() {
|
|
5683
5711
|
const s = [], t = [
|
|
5684
|
-
...
|
|
5712
|
+
...kt.styles.map((e) => e.styleSheet),
|
|
5685
5713
|
...Array.from(document.styleSheets)
|
|
5686
5714
|
];
|
|
5687
5715
|
for (const e of t)
|
|
@@ -5704,7 +5732,7 @@ let At = class extends P {
|
|
|
5704
5732
|
return g`<slot></slot>`;
|
|
5705
5733
|
}
|
|
5706
5734
|
};
|
|
5707
|
-
|
|
5735
|
+
kt.styles = [
|
|
5708
5736
|
cl,
|
|
5709
5737
|
hl,
|
|
5710
5738
|
ll,
|
|
@@ -5744,19 +5772,19 @@ At.styles = [
|
|
|
5744
5772
|
];
|
|
5745
5773
|
Cs([
|
|
5746
5774
|
a({ type: String, reflect: !0 })
|
|
5747
|
-
],
|
|
5775
|
+
], kt.prototype, "theme", 2);
|
|
5748
5776
|
Cs([
|
|
5749
5777
|
a({ type: Boolean, reflect: !0 })
|
|
5750
|
-
],
|
|
5778
|
+
], kt.prototype, "background", 2);
|
|
5751
5779
|
Cs([
|
|
5752
5780
|
a({ type: Boolean, reflect: !0 })
|
|
5753
|
-
],
|
|
5781
|
+
], kt.prototype, "color", 2);
|
|
5754
5782
|
Cs([
|
|
5755
5783
|
a({ type: Boolean, reflect: !0 })
|
|
5756
|
-
],
|
|
5757
|
-
|
|
5784
|
+
], kt.prototype, "font", 2);
|
|
5785
|
+
kt = Cs([
|
|
5758
5786
|
C(pl)
|
|
5759
|
-
],
|
|
5787
|
+
], kt);
|
|
5760
5788
|
var fl = Object.defineProperty, bl = Object.getOwnPropertyDescriptor, Ao = (s, t, i, r) => {
|
|
5761
5789
|
for (var e = r > 1 ? void 0 : r ? bl(t, i) : t, o = s.length - 1, n; o >= 0; o--)
|
|
5762
5790
|
(n = s[o]) && (e = (r ? n(t, i, e) : n(e)) || e);
|
|
@@ -5788,7 +5816,7 @@ let L = class extends P {
|
|
|
5788
5816
|
zIndex: "10000",
|
|
5789
5817
|
maxWidth: "64ch",
|
|
5790
5818
|
flexDirection: "column-reverse"
|
|
5791
|
-
}), L.handleExistingToastDelegation(), this.toasts ? g`<div style=${
|
|
5819
|
+
}), L.handleExistingToastDelegation(), this.toasts ? g`<div style=${xt(i)}>
|
|
5792
5820
|
${ai(
|
|
5793
5821
|
this.toasts,
|
|
5794
5822
|
(r) => r.id,
|
|
@@ -5862,7 +5890,7 @@ let L = class extends P {
|
|
|
5862
5890
|
));
|
|
5863
5891
|
}
|
|
5864
5892
|
static getInstance() {
|
|
5865
|
-
return L.instance || (L.instance = document.createElement("sonic-toast"),
|
|
5893
|
+
return L.instance || (L.instance = document.createElement("sonic-toast"), kt.getPopContainer().prepend(L.instance)), L.instance;
|
|
5866
5894
|
}
|
|
5867
5895
|
static add(t) {
|
|
5868
5896
|
if (L.delegateToasts) {
|
|
@@ -5992,7 +6020,7 @@ const or = (s, t) => {
|
|
|
5992
6020
|
* Un Toast est affiché si le chargement échoue
|
|
5993
6021
|
*/
|
|
5994
6022
|
async _fetchData() {
|
|
5995
|
-
if (this.requestUpdate(), !this.isFetchEnabled || (this.api = new
|
|
6023
|
+
if (this.requestUpdate(), !this.isFetchEnabled || (this.api = new ue(this.getApiConfiguration()), !this.api) || (this.dispatchEvent(new CustomEvent("loading", { detail: this })), this.getAttribute("localStorage") === "enabled" && await E.getInstance().isLocalStrorageReady, !this.isConnected)) return;
|
|
5996
6024
|
const e = E.getInstance().get(this.getAncestorAttributeValue("headersDataProvider")).get();
|
|
5997
6025
|
if (this.isLoading = !0, ht.isObject(this.props) && Object.keys(this.props || {}).length > 0 && this.isFirstLoad && window.requestAnimationFrame(() => {
|
|
5998
6026
|
this.dispatchEvent(new CustomEvent("load", { detail: this })), this.isFirstLoad = !1, this.isLoading = !1;
|
|
@@ -6155,7 +6183,7 @@ const Ht = _e(class extends Ge {
|
|
|
6155
6183
|
if (super(s), s.type !== Ie.CHILD) throw Error("templateContent can only be used in child bindings");
|
|
6156
6184
|
}
|
|
6157
6185
|
render(s) {
|
|
6158
|
-
return this.vt === s ?
|
|
6186
|
+
return this.vt === s ? Dt : (this.vt = s, document.importNode(s.content, !0));
|
|
6159
6187
|
}
|
|
6160
6188
|
});
|
|
6161
6189
|
var $l = Object.defineProperty, Al = Object.getOwnPropertyDescriptor, Eo = (s, t, i, r) => {
|
|
@@ -6353,7 +6381,7 @@ let at = class extends P {
|
|
|
6353
6381
|
static show(s) {
|
|
6354
6382
|
at.loader || (at.loader = document.createElement("sonic-loader"));
|
|
6355
6383
|
const t = at.loader;
|
|
6356
|
-
s || (s = {}), s.mode && t.setAttribute("mode", s.mode), s.noDelay && t.setAttribute("noDelay", ""), s.container || (s.container =
|
|
6384
|
+
s || (s = {}), s.mode && t.setAttribute("mode", s.mode), s.noDelay && t.setAttribute("noDelay", ""), s.container || (s.container = kt.getPopContainer(), s.mode = "fixed"), s.container.appendChild(t), at.callCounter++;
|
|
6357
6385
|
}
|
|
6358
6386
|
static hide() {
|
|
6359
6387
|
at.callCounter--, !(at.callCounter > 0) && at.loader && at.loader.remove();
|
|
@@ -6676,17 +6704,17 @@ let st = class extends it(P) {
|
|
|
6676
6704
|
this.isFirstRequest ? 0 : this.filterTimeoutMs
|
|
6677
6705
|
), this.isFirstRequest = !1;
|
|
6678
6706
|
}
|
|
6679
|
-
}, this.dataProviderExpression = "", this.invalidateOnPageShow = !1, this.idKey = "id", this.listDataProviders = [], this.nextHadEvent = !1
|
|
6707
|
+
}, this.scrollRoot = null, this.storedScrollY = 0, this.storedScrollX = 0, this.dataProviderExpression = "", this.invalidateOnPageShow = !1, this.idKey = "id", this.listDataProviders = [], this.nextHadEvent = !1;
|
|
6680
6708
|
}
|
|
6681
6709
|
disconnectedCallback() {
|
|
6682
6710
|
for (const s of this.listDataProviders)
|
|
6683
6711
|
E.getInstance().delete(s), this.listDataProviders = [];
|
|
6684
|
-
this.filterPublisher?.offInternalMutation(this.updateFilteredContent), this.props = null, this.limit = 5, this.offset = 0, this.resultCount = 0, this.searchHash = "", this.requestId = 0, this.isFirstRequest = !0, this.nextHadEvent = !1, this.publisher.set({}), super.disconnectedCallback();
|
|
6712
|
+
this.filterPublisher?.offInternalMutation(this.updateFilteredContent), this.props = null, this.limit = 5, this.offset = 0, this.resultCount = 0, this.searchHash = "", this.requestId = 0, this.isFirstRequest = !0, this.nextHadEvent = !1, this.scrollRoot = null, this.publisher.set({}), super.disconnectedCallback();
|
|
6685
6713
|
}
|
|
6686
6714
|
async connectedCallback() {
|
|
6687
6715
|
this.instanceId = st.instanceCounter++, this.localStorage = this.getAttribute("localStorage") || this.localStorage, this.filterTimeoutMs = parseInt(
|
|
6688
6716
|
this.getAttribute("filterTimeoutMs") || "400"
|
|
6689
|
-
), this.removeAttribute("localStorage"), this.noShadowDom = "", this.defferedDebug = this.hasAttribute("debug") || null, this.dataProvider || (this.dataProvider = this.dataProviderExpression || "sonic-queue-" + this.instanceId + "-" + Math.random().toString(36).substring(7)), this.dataProviderExpression || (this.dataProviderExpression =
|
|
6717
|
+
), this.removeAttribute("localStorage"), this.noShadowDom = "", this.defferedDebug = this.hasAttribute("debug") || null, this.dataProvider || (this.dataProvider = this.dataProviderExpression || "sonic-queue-" + this.instanceId + "-" + Math.random().toString(36).substring(7)), this.dataProviderExpression || (this.dataProviderExpression = se.getAncestorAttributeValue(this.parentElement, "dataProvider") || ""), this.storeScrollPosition(), super.connectedCallback(), this.publisher.set({}), this.key = this.getAttribute("key"), await E.getInstance().isLocalStrorageReady, this.templates || (this.templates = Array.from(
|
|
6690
6718
|
this.querySelectorAll("template")
|
|
6691
6719
|
)), this.lastRequestTime = (/* @__PURE__ */ new Date()).getTime(), this.configFilter();
|
|
6692
6720
|
}
|
|
@@ -6698,16 +6726,35 @@ let st = class extends it(P) {
|
|
|
6698
6726
|
}
|
|
6699
6727
|
this.filterPublisher = E.getInstance().get(s), this.filterPublisher?.onInternalMutation(this.updateFilteredContent);
|
|
6700
6728
|
}
|
|
6729
|
+
resolveScrollRoot() {
|
|
6730
|
+
const s = se.getScrollingAncestor(this);
|
|
6731
|
+
return !s || s === document.documentElement || s === document.body ? window : s;
|
|
6732
|
+
}
|
|
6701
6733
|
storeScrollPosition() {
|
|
6702
|
-
this.isSafari()
|
|
6734
|
+
if (!this.isSafari())
|
|
6735
|
+
return;
|
|
6736
|
+
const s = this.resolveScrollRoot();
|
|
6737
|
+
if (this.scrollRoot = s, s === window)
|
|
6738
|
+
this.storedScrollX = window.scrollX, this.storedScrollY = window.scrollY;
|
|
6739
|
+
else {
|
|
6740
|
+
const t = s;
|
|
6741
|
+
this.storedScrollX = t.scrollLeft, this.storedScrollY = t.scrollTop;
|
|
6742
|
+
}
|
|
6743
|
+
}
|
|
6744
|
+
restoreScrollPosition() {
|
|
6745
|
+
const s = this.scrollRoot ?? this.resolveScrollRoot(), t = this.storedScrollX, i = this.storedScrollY;
|
|
6746
|
+
if (s === window) {
|
|
6747
|
+
(Math.abs(t - window.scrollX) > 10 || Math.abs(i - window.scrollY) > 10) && window.scrollTo(t, i);
|
|
6748
|
+
return;
|
|
6749
|
+
}
|
|
6750
|
+
const r = s;
|
|
6751
|
+
(Math.abs(t - r.scrollLeft) > 10 || Math.abs(i - r.scrollTop) > 10) && (r.scrollLeft = t, r.scrollTop = i);
|
|
6703
6752
|
}
|
|
6704
6753
|
isSafari() {
|
|
6705
6754
|
return /^((?!chrome|android).)*safari/i.test(navigator.userAgent);
|
|
6706
6755
|
}
|
|
6707
6756
|
updated(s) {
|
|
6708
|
-
this.isSafari() && (
|
|
6709
|
-
(Math.abs(this.storedScrollX - window.scrollX) > 10 || Math.abs(this.storedScrollY - window.scrollY) > 10) && window.scrollTo(this.storedScrollX, this.storedScrollY);
|
|
6710
|
-
})), super.updated(s);
|
|
6757
|
+
this.isSafari() && (this.restoreScrollPosition(), window.requestAnimationFrame(() => this.restoreScrollPosition())), super.updated(s);
|
|
6711
6758
|
}
|
|
6712
6759
|
resetDuration() {
|
|
6713
6760
|
this.lastRequestTime = (/* @__PURE__ */ new Date()).getTime();
|
|
@@ -6947,10 +6994,10 @@ let fe = class extends it(P) {
|
|
|
6947
6994
|
};
|
|
6948
6995
|
}
|
|
6949
6996
|
connectedCallback() {
|
|
6950
|
-
this.hasAttribute("onClick") && this.addEventListener("click", this.submit), this.hasAttribute("onEnterKey") && this.addEventListener("keydown", this.submit), super.connectedCallback(), this.api = new
|
|
6997
|
+
this.hasAttribute("onClick") && this.addEventListener("click", this.submit), this.hasAttribute("onEnterKey") && this.addEventListener("keydown", this.submit), super.connectedCallback(), this.api = new ue(this.getApiConfiguration());
|
|
6951
6998
|
}
|
|
6952
6999
|
submitNativeForm() {
|
|
6953
|
-
const s =
|
|
7000
|
+
const s = se.getClosestForm(this);
|
|
6954
7001
|
if (!s) return;
|
|
6955
7002
|
const t = this.getAncestorAttributeValue("formDataProvider"), i = { ...E.get(t).get() };
|
|
6956
7003
|
delete i.needsCaptchaValidation;
|
|
@@ -7398,43 +7445,43 @@ function Ro(s, t, i) {
|
|
|
7398
7445
|
_.refetchTimeoutId = null, I();
|
|
7399
7446
|
}, _.refetchEveryMs));
|
|
7400
7447
|
}, I = () => {
|
|
7401
|
-
const V = w ?
|
|
7448
|
+
const V = w ? St(b, r, n) : { ready: !0, path: r };
|
|
7402
7449
|
if (!V.ready || !V.path) {
|
|
7403
7450
|
x[D] = void 0, O();
|
|
7404
7451
|
return;
|
|
7405
7452
|
}
|
|
7406
7453
|
let A = null;
|
|
7407
7454
|
if (v && l) {
|
|
7408
|
-
const
|
|
7455
|
+
const _t = St(
|
|
7409
7456
|
b,
|
|
7410
7457
|
l,
|
|
7411
7458
|
n
|
|
7412
7459
|
);
|
|
7413
|
-
if (!
|
|
7460
|
+
if (!_t.ready || !_t.path) {
|
|
7414
7461
|
x[D] = void 0, O();
|
|
7415
7462
|
return;
|
|
7416
7463
|
}
|
|
7417
|
-
const Es = Rt(
|
|
7464
|
+
const Es = Rt(_t.path);
|
|
7418
7465
|
A = Mo(Es);
|
|
7419
7466
|
} else
|
|
7420
7467
|
A = lr(b);
|
|
7421
7468
|
if (!cr(A)) {
|
|
7422
7469
|
if (!v && !_.scopeWatchCleanup) {
|
|
7423
|
-
const
|
|
7424
|
-
_.scopeWatchCleanup =
|
|
7425
|
-
|
|
7470
|
+
const _t = jo(b, I);
|
|
7471
|
+
_.scopeWatchCleanup = _t, _.cleanupWatchers.push(() => {
|
|
7472
|
+
_t(), _.scopeWatchCleanup = null;
|
|
7426
7473
|
});
|
|
7427
7474
|
}
|
|
7428
7475
|
O();
|
|
7429
7476
|
return;
|
|
7430
7477
|
}
|
|
7431
7478
|
const nt = ++_.requestGeneration;
|
|
7432
|
-
new
|
|
7433
|
-
nt === _.requestGeneration && (x[D] =
|
|
7479
|
+
new ue(A).getDetailed(V.path).then((_t) => {
|
|
7480
|
+
nt === _.requestGeneration && (x[D] = _t, O());
|
|
7434
7481
|
});
|
|
7435
7482
|
}, F = No(I), U = () => {
|
|
7436
7483
|
if (Gs(_), !c) return;
|
|
7437
|
-
const V =
|
|
7484
|
+
const V = St(
|
|
7438
7485
|
b,
|
|
7439
7486
|
c,
|
|
7440
7487
|
n
|
|
@@ -7448,7 +7495,7 @@ function Ro(s, t, i) {
|
|
|
7448
7495
|
}, jt = () => {
|
|
7449
7496
|
if (!v || !l) return;
|
|
7450
7497
|
Ys(_);
|
|
7451
|
-
const V =
|
|
7498
|
+
const V = St(
|
|
7452
7499
|
b,
|
|
7453
7500
|
l,
|
|
7454
7501
|
n
|
|
@@ -7470,8 +7517,8 @@ function Ro(s, t, i) {
|
|
|
7470
7517
|
if (v || d.length) {
|
|
7471
7518
|
for (const V of p) {
|
|
7472
7519
|
const A = pe(
|
|
7473
|
-
|
|
7474
|
-
|
|
7520
|
+
de.watcherStore,
|
|
7521
|
+
de.hooked,
|
|
7475
7522
|
b,
|
|
7476
7523
|
V,
|
|
7477
7524
|
() => pt()
|
|
@@ -7484,8 +7531,8 @@ function Ro(s, t, i) {
|
|
|
7484
7531
|
if (w)
|
|
7485
7532
|
for (const A of h) {
|
|
7486
7533
|
const nt = pe(
|
|
7487
|
-
|
|
7488
|
-
|
|
7534
|
+
de.watcherStore,
|
|
7535
|
+
de.hooked,
|
|
7489
7536
|
b,
|
|
7490
7537
|
A,
|
|
7491
7538
|
() => F()
|
|
@@ -7562,12 +7609,12 @@ function hr(s, t) {
|
|
|
7562
7609
|
A.refetchTimeoutId = null, Os();
|
|
7563
7610
|
}, A.refetchEveryMs));
|
|
7564
7611
|
}, Os = () => {
|
|
7565
|
-
const et = D ?
|
|
7612
|
+
const et = D ? St(pt, n, O) : { ready: !0, path: n };
|
|
7566
7613
|
if (!et.ready || !et.path) {
|
|
7567
7614
|
V[U] = void 0, nt();
|
|
7568
7615
|
return;
|
|
7569
7616
|
}
|
|
7570
|
-
const ot =
|
|
7617
|
+
const ot = St(
|
|
7571
7618
|
pt,
|
|
7572
7619
|
l,
|
|
7573
7620
|
O
|
|
@@ -7576,46 +7623,46 @@ function hr(s, t) {
|
|
|
7576
7623
|
V[U] = void 0, nt();
|
|
7577
7624
|
return;
|
|
7578
7625
|
}
|
|
7579
|
-
const
|
|
7626
|
+
const Et = Rt(ot.path), bi = cc(Et);
|
|
7580
7627
|
if (A.skipIfBodyMissing && bi == null) {
|
|
7581
7628
|
nt();
|
|
7582
7629
|
return;
|
|
7583
7630
|
}
|
|
7584
7631
|
let Ls = null;
|
|
7585
7632
|
if (f && u) {
|
|
7586
|
-
const
|
|
7633
|
+
const ae = St(
|
|
7587
7634
|
pt,
|
|
7588
7635
|
u,
|
|
7589
7636
|
O
|
|
7590
7637
|
);
|
|
7591
|
-
if (!
|
|
7638
|
+
if (!ae.ready || !ae.path) {
|
|
7592
7639
|
V[U] = void 0, nt();
|
|
7593
7640
|
return;
|
|
7594
7641
|
}
|
|
7595
|
-
const sn = Rt(
|
|
7642
|
+
const sn = Rt(ae.path);
|
|
7596
7643
|
Ls = Mo(sn);
|
|
7597
7644
|
} else
|
|
7598
7645
|
Ls = lr(pt);
|
|
7599
7646
|
if (!cr(Ls)) {
|
|
7600
7647
|
if (!f && !A.scopeWatchCleanup) {
|
|
7601
|
-
const
|
|
7602
|
-
A.scopeWatchCleanup =
|
|
7603
|
-
|
|
7648
|
+
const ae = jo(pt, Os);
|
|
7649
|
+
A.scopeWatchCleanup = ae, A.cleanupWatchers.push(() => {
|
|
7650
|
+
ae(), A.scopeWatchCleanup = null;
|
|
7604
7651
|
});
|
|
7605
7652
|
}
|
|
7606
7653
|
nt();
|
|
7607
7654
|
return;
|
|
7608
7655
|
}
|
|
7609
|
-
const tn = ++A.requestGeneration, en = new
|
|
7656
|
+
const tn = ++A.requestGeneration, en = new ue(Ls);
|
|
7610
7657
|
t(en, et.path, bi).then(
|
|
7611
|
-
(
|
|
7612
|
-
tn === A.requestGeneration && (V[U] =
|
|
7658
|
+
(ae) => {
|
|
7659
|
+
tn === A.requestGeneration && (V[U] = ae, nt());
|
|
7613
7660
|
}
|
|
7614
7661
|
);
|
|
7615
|
-
},
|
|
7662
|
+
}, _t = No(Os), Es = () => {
|
|
7616
7663
|
if (eo(A), !A.autoPostOnBodyMutation)
|
|
7617
7664
|
return;
|
|
7618
|
-
const et =
|
|
7665
|
+
const et = St(
|
|
7619
7666
|
pt,
|
|
7620
7667
|
l,
|
|
7621
7668
|
O
|
|
@@ -7624,11 +7671,11 @@ function hr(s, t) {
|
|
|
7624
7671
|
return;
|
|
7625
7672
|
const ot = Rt(et.path);
|
|
7626
7673
|
if (!ot) return;
|
|
7627
|
-
const
|
|
7628
|
-
ot.onInternalMutation(
|
|
7674
|
+
const Et = () => _t();
|
|
7675
|
+
ot.onInternalMutation(Et), A.bodyPublisher = ot, A.bodyMutationHandler = Et;
|
|
7629
7676
|
}, _r = () => {
|
|
7630
7677
|
if (Gs(A), !d) return;
|
|
7631
|
-
const et =
|
|
7678
|
+
const et = St(
|
|
7632
7679
|
pt,
|
|
7633
7680
|
d,
|
|
7634
7681
|
O
|
|
@@ -7637,12 +7684,12 @@ function hr(s, t) {
|
|
|
7637
7684
|
return;
|
|
7638
7685
|
const ot = Rt(et.path);
|
|
7639
7686
|
if (!ot) return;
|
|
7640
|
-
const
|
|
7641
|
-
ot.onInvalidate(
|
|
7687
|
+
const Et = () => _t();
|
|
7688
|
+
ot.onInvalidate(Et), A.triggerPublisher = ot, A.triggerInvalidateHandler = Et;
|
|
7642
7689
|
}, Jo = () => {
|
|
7643
7690
|
if (!f || !u) return;
|
|
7644
7691
|
Ys(A);
|
|
7645
|
-
const et =
|
|
7692
|
+
const et = St(
|
|
7646
7693
|
pt,
|
|
7647
7694
|
u,
|
|
7648
7695
|
O
|
|
@@ -7656,16 +7703,16 @@ function hr(s, t) {
|
|
|
7656
7703
|
V[U] = void 0;
|
|
7657
7704
|
return;
|
|
7658
7705
|
}
|
|
7659
|
-
const
|
|
7660
|
-
ot.onInternalMutation(
|
|
7706
|
+
const Et = () => _t();
|
|
7707
|
+
ot.onInternalMutation(Et), A.configPublisher = ot, A.configMutationHandler = Et;
|
|
7661
7708
|
}, wr = () => {
|
|
7662
|
-
Es(), _r(), Jo(), A.autoPostOnBodyMutation &&
|
|
7709
|
+
Es(), _r(), Jo(), A.autoPostOnBodyMutation && _t();
|
|
7663
7710
|
};
|
|
7664
7711
|
if (f || w.length || m.length) {
|
|
7665
7712
|
for (const et of y) {
|
|
7666
7713
|
const ot = pe(
|
|
7667
|
-
|
|
7668
|
-
|
|
7714
|
+
de.watcherStore,
|
|
7715
|
+
de.hooked,
|
|
7669
7716
|
pt,
|
|
7670
7717
|
et,
|
|
7671
7718
|
() => wr()
|
|
@@ -7677,16 +7724,16 @@ function hr(s, t) {
|
|
|
7677
7724
|
const et = () => {
|
|
7678
7725
|
if (D)
|
|
7679
7726
|
for (const ot of p) {
|
|
7680
|
-
const
|
|
7681
|
-
|
|
7682
|
-
|
|
7727
|
+
const Et = pe(
|
|
7728
|
+
de.watcherStore,
|
|
7729
|
+
de.hooked,
|
|
7683
7730
|
pt,
|
|
7684
7731
|
ot,
|
|
7685
|
-
() =>
|
|
7732
|
+
() => _t()
|
|
7686
7733
|
);
|
|
7687
|
-
A.cleanupWatchers.push(
|
|
7734
|
+
A.cleanupWatchers.push(Et);
|
|
7688
7735
|
}
|
|
7689
|
-
Es(), _r(), A.autoPostOnBodyMutation &&
|
|
7736
|
+
Es(), _r(), A.autoPostOnBodyMutation && _t();
|
|
7690
7737
|
};
|
|
7691
7738
|
A.cleanupWatchers.push(
|
|
7692
7739
|
Fo(pt, et)
|
|
@@ -7981,9 +8028,9 @@ let Zs = class extends ko(we(P)) {
|
|
|
7981
8028
|
loadAssets() {
|
|
7982
8029
|
if (this.sduiDescriptor) {
|
|
7983
8030
|
if (this.sduiDescriptor.js)
|
|
7984
|
-
for (const s of this.sduiDescriptor.js)
|
|
8031
|
+
for (const s of this.sduiDescriptor.js) se.loadJS(s);
|
|
7985
8032
|
if (this.sduiDescriptor.css)
|
|
7986
|
-
for (const s of this.sduiDescriptor.css)
|
|
8033
|
+
for (const s of this.sduiDescriptor.css) se.loadCSS(s);
|
|
7987
8034
|
}
|
|
7988
8035
|
}
|
|
7989
8036
|
/**
|
|
@@ -9046,7 +9093,7 @@ const fr = _e(class extends Ge {
|
|
|
9046
9093
|
const e = !!t[r];
|
|
9047
9094
|
e === this.st.has(r) || this.nt?.has(r) || (e ? (i.add(r), this.st.add(r)) : (i.remove(r), this.st.delete(r)));
|
|
9048
9095
|
}
|
|
9049
|
-
return
|
|
9096
|
+
return Dt;
|
|
9050
9097
|
}
|
|
9051
9098
|
});
|
|
9052
9099
|
var ch = Object.defineProperty, hh = Object.getOwnPropertyDescriptor, W = (s, t, i, r) => {
|
|
@@ -9277,16 +9324,16 @@ W([
|
|
|
9277
9324
|
a({ type: Boolean, reflect: !0 })
|
|
9278
9325
|
], z.prototype, "active", 2);
|
|
9279
9326
|
W([
|
|
9280
|
-
|
|
9327
|
+
vt({ slot: "label", flatten: !0 })
|
|
9281
9328
|
], z.prototype, "slotLabelNodes", 2);
|
|
9282
9329
|
W([
|
|
9283
|
-
|
|
9330
|
+
vt({ slot: "description", flatten: !0 })
|
|
9284
9331
|
], z.prototype, "slotDescriptionNodes", 2);
|
|
9285
9332
|
W([
|
|
9286
|
-
|
|
9333
|
+
vt({ slot: "suffix", flatten: !0 })
|
|
9287
9334
|
], z.prototype, "slotSuffixNodes", 2);
|
|
9288
9335
|
W([
|
|
9289
|
-
|
|
9336
|
+
vt({ slot: "prefix", flatten: !0 })
|
|
9290
9337
|
], z.prototype, "slotPrefixNodes", 2);
|
|
9291
9338
|
W([
|
|
9292
9339
|
ye("input")
|
|
@@ -9580,7 +9627,7 @@ class Ho {
|
|
|
9580
9627
|
this.u.disconnect();
|
|
9581
9628
|
}
|
|
9582
9629
|
}
|
|
9583
|
-
var vh = Object.defineProperty, yh = Object.getOwnPropertyDescriptor,
|
|
9630
|
+
var vh = Object.defineProperty, yh = Object.getOwnPropertyDescriptor, yt = (s, t, i, r) => {
|
|
9584
9631
|
for (var e = r > 1 ? void 0 : r ? yh(t, i) : t, o = s.length - 1, n; o >= 0; o--)
|
|
9585
9632
|
(n = s[o]) && (e = (r ? n(t, i, e) : n(e)) || e);
|
|
9586
9633
|
return r && e && vh(t, i, e), e;
|
|
@@ -9644,7 +9691,7 @@ let dt = class extends nr(
|
|
|
9644
9691
|
const s = this.searchParameter || this.name, t = this.getAncestorAttributeValue("formDataProvider"), i = t + "__" + this.name + "__autocomplete";
|
|
9645
9692
|
this.initSearchDataProvider = `${i}_init_search__`, this.initQueueDataProvider = `${i}_init_queue__`, this.searchDataProvider = `${i}_search__`, this.queueDataProvider = `${i}_queue__`;
|
|
9646
9693
|
const r = E.get;
|
|
9647
|
-
this.searchPublisher = r(this.searchDataProvider)[s], this.formValuePublisher =
|
|
9694
|
+
this.searchPublisher = r(this.searchDataProvider)[s], this.formValuePublisher = wt(
|
|
9648
9695
|
r(t),
|
|
9649
9696
|
this.name
|
|
9650
9697
|
), this.countPublisher = r(this.queueDataProvider).resultCount, this.initCountPublisher = r(
|
|
@@ -9789,61 +9836,61 @@ dt.styles = [
|
|
|
9789
9836
|
}
|
|
9790
9837
|
`
|
|
9791
9838
|
];
|
|
9792
|
-
|
|
9839
|
+
yt([
|
|
9793
9840
|
a({ type: String })
|
|
9794
9841
|
], dt.prototype, "size", 2);
|
|
9795
|
-
|
|
9842
|
+
yt([
|
|
9796
9843
|
a({ type: String })
|
|
9797
9844
|
], dt.prototype, "placeholder", 2);
|
|
9798
|
-
|
|
9845
|
+
yt([
|
|
9799
9846
|
a()
|
|
9800
9847
|
], dt.prototype, "filteredFields", 2);
|
|
9801
|
-
|
|
9848
|
+
yt([
|
|
9802
9849
|
a({ type: Boolean, reflect: !0 })
|
|
9803
9850
|
], dt.prototype, "readonly", 2);
|
|
9804
|
-
|
|
9851
|
+
yt([
|
|
9805
9852
|
a({ type: String })
|
|
9806
9853
|
], dt.prototype, "dataProviderExpression", 2);
|
|
9807
|
-
|
|
9854
|
+
yt([
|
|
9808
9855
|
a({ type: Number })
|
|
9809
9856
|
], dt.prototype, "minSearchLength", 2);
|
|
9810
|
-
|
|
9857
|
+
yt([
|
|
9811
9858
|
a({ type: Boolean })
|
|
9812
9859
|
], dt.prototype, "select", 2);
|
|
9813
|
-
|
|
9860
|
+
yt([
|
|
9814
9861
|
a({ type: String })
|
|
9815
9862
|
], dt.prototype, "key", 2);
|
|
9816
|
-
|
|
9863
|
+
yt([
|
|
9817
9864
|
a({ type: String })
|
|
9818
9865
|
], dt.prototype, "searchParameter", 2);
|
|
9819
|
-
|
|
9866
|
+
yt([
|
|
9820
9867
|
a({ type: String })
|
|
9821
9868
|
], dt.prototype, "propertyName", 2);
|
|
9822
|
-
|
|
9823
|
-
|
|
9869
|
+
yt([
|
|
9870
|
+
vt({ slot: "prefix", flatten: !0 })
|
|
9824
9871
|
], dt.prototype, "slotInputPrefixNodes", 2);
|
|
9825
|
-
|
|
9872
|
+
yt([
|
|
9826
9873
|
T()
|
|
9827
9874
|
], dt.prototype, "hasInputPrefix", 2);
|
|
9828
|
-
|
|
9875
|
+
yt([
|
|
9829
9876
|
ye("sonic-pop")
|
|
9830
9877
|
], dt.prototype, "popElement", 2);
|
|
9831
|
-
|
|
9878
|
+
yt([
|
|
9832
9879
|
T()
|
|
9833
9880
|
], dt.prototype, "isPopVisible", 2);
|
|
9834
|
-
|
|
9881
|
+
yt([
|
|
9835
9882
|
T()
|
|
9836
9883
|
], dt.prototype, "lastValidSearch", 2);
|
|
9837
|
-
dt =
|
|
9884
|
+
dt = yt([
|
|
9838
9885
|
C("sonic-input-autocomplete")
|
|
9839
9886
|
], dt);
|
|
9840
|
-
var _h = Object.defineProperty, wh = Object.getOwnPropertyDescriptor,
|
|
9887
|
+
var _h = Object.defineProperty, wh = Object.getOwnPropertyDescriptor, Ct = (s, t, i, r) => {
|
|
9841
9888
|
for (var e = r > 1 ? void 0 : r ? wh(t, i) : t, o = s.length - 1, n; o >= 0; o--)
|
|
9842
9889
|
(n = s[o]) && (e = (r ? n(t, i, e) : n(e)) || e);
|
|
9843
9890
|
return r && e && _h(t, i, e), e;
|
|
9844
9891
|
};
|
|
9845
9892
|
const xh = "sonic-password-helper";
|
|
9846
|
-
let
|
|
9893
|
+
let bt = class extends we(P) {
|
|
9847
9894
|
constructor() {
|
|
9848
9895
|
super(...arguments), this.minChars = 8, this.hasNoChar = !0, this.hasEnoughChars = !1, this.hasMinuscule = !1, this.hasMajuscule = !1, this.hasNumber = !1, this.hasSpecialChar = !1, this.wording_password_helper_decription = "Le mot de passe doit contenir au moins :", this.wording_password_helper_min_length = "8 caractères", this.wording_password_helper_lower_case = "1 minuscule", this.wording_password_helper_upper_case = "1 majuscule", this.wording_password_helper_number = "1 chiffre", this.wording_password_helper_special_char = "1 caractère spécial";
|
|
9849
9896
|
}
|
|
@@ -9883,51 +9930,51 @@ let ft = class extends we(P) {
|
|
|
9883
9930
|
`;
|
|
9884
9931
|
}
|
|
9885
9932
|
};
|
|
9886
|
-
|
|
9933
|
+
Ct([
|
|
9887
9934
|
a()
|
|
9888
|
-
],
|
|
9889
|
-
|
|
9935
|
+
], bt.prototype, "name", 2);
|
|
9936
|
+
Ct([
|
|
9890
9937
|
a()
|
|
9891
|
-
],
|
|
9892
|
-
|
|
9938
|
+
], bt.prototype, "minChars", 2);
|
|
9939
|
+
Ct([
|
|
9893
9940
|
T()
|
|
9894
|
-
],
|
|
9895
|
-
|
|
9941
|
+
], bt.prototype, "hasNoChar", 2);
|
|
9942
|
+
Ct([
|
|
9896
9943
|
T()
|
|
9897
|
-
],
|
|
9898
|
-
|
|
9944
|
+
], bt.prototype, "hasEnoughChars", 2);
|
|
9945
|
+
Ct([
|
|
9899
9946
|
T()
|
|
9900
|
-
],
|
|
9901
|
-
|
|
9947
|
+
], bt.prototype, "hasMinuscule", 2);
|
|
9948
|
+
Ct([
|
|
9902
9949
|
T()
|
|
9903
|
-
],
|
|
9904
|
-
|
|
9950
|
+
], bt.prototype, "hasMajuscule", 2);
|
|
9951
|
+
Ct([
|
|
9905
9952
|
T()
|
|
9906
|
-
],
|
|
9907
|
-
|
|
9953
|
+
], bt.prototype, "hasNumber", 2);
|
|
9954
|
+
Ct([
|
|
9908
9955
|
T()
|
|
9909
|
-
],
|
|
9910
|
-
|
|
9956
|
+
], bt.prototype, "hasSpecialChar", 2);
|
|
9957
|
+
Ct([
|
|
9911
9958
|
a()
|
|
9912
|
-
],
|
|
9913
|
-
|
|
9959
|
+
], bt.prototype, "wording_password_helper_decription", 2);
|
|
9960
|
+
Ct([
|
|
9914
9961
|
a()
|
|
9915
|
-
],
|
|
9916
|
-
|
|
9962
|
+
], bt.prototype, "wording_password_helper_min_length", 2);
|
|
9963
|
+
Ct([
|
|
9917
9964
|
a()
|
|
9918
|
-
],
|
|
9919
|
-
|
|
9965
|
+
], bt.prototype, "wording_password_helper_lower_case", 2);
|
|
9966
|
+
Ct([
|
|
9920
9967
|
a()
|
|
9921
|
-
],
|
|
9922
|
-
|
|
9968
|
+
], bt.prototype, "wording_password_helper_upper_case", 2);
|
|
9969
|
+
Ct([
|
|
9923
9970
|
a()
|
|
9924
|
-
],
|
|
9925
|
-
|
|
9971
|
+
], bt.prototype, "wording_password_helper_number", 2);
|
|
9972
|
+
Ct([
|
|
9926
9973
|
a()
|
|
9927
|
-
],
|
|
9928
|
-
|
|
9974
|
+
], bt.prototype, "wording_password_helper_special_char", 2);
|
|
9975
|
+
bt = Ct([
|
|
9929
9976
|
C(xh)
|
|
9930
|
-
],
|
|
9977
|
+
], bt);
|
|
9931
9978
|
var Ph = Object.defineProperty, Ch = Object.getOwnPropertyDescriptor, Fe = (s, t, i, r) => {
|
|
9932
9979
|
for (var e = r > 1 ? void 0 : r ? Ch(t, i) : t, o = s.length - 1, n; o >= 0; o--)
|
|
9933
9980
|
(n = s[o]) && (e = (r ? n(t, i, e) : n(e)) || e);
|
|
@@ -9944,10 +9991,10 @@ let ge = class extends we(P) {
|
|
|
9944
9991
|
this.getAncestorAttributeValue("formDataProvider")
|
|
9945
9992
|
);
|
|
9946
9993
|
this.name && this.sameValueAs && (this.checkValue = (t) => {
|
|
9947
|
-
t ? this.hasNoChar = t.length == 0 : this.hasNoChar = !0, this.name && this.sameValueAs && (this.areEqual =
|
|
9948
|
-
},
|
|
9994
|
+
t ? this.hasNoChar = t.length == 0 : this.hasNoChar = !0, this.name && this.sameValueAs && (this.areEqual = wt(s, this.name).get() == wt(s, this.sameValueAs).get());
|
|
9995
|
+
}, wt(s, this.name).onAssign(
|
|
9949
9996
|
this.checkValue
|
|
9950
|
-
),
|
|
9997
|
+
), wt(s, this.sameValueAs).onAssign(
|
|
9951
9998
|
this.checkValue
|
|
9952
9999
|
));
|
|
9953
10000
|
}
|
|
@@ -9956,9 +10003,9 @@ let ge = class extends we(P) {
|
|
|
9956
10003
|
const s = E.get(
|
|
9957
10004
|
this.getAncestorAttributeValue("formDataProvider")
|
|
9958
10005
|
);
|
|
9959
|
-
|
|
10006
|
+
wt(s, this.name).offAssign(
|
|
9960
10007
|
this.checkValue
|
|
9961
|
-
),
|
|
10008
|
+
), wt(s, this.sameValueAs).offAssign(
|
|
9962
10009
|
this.checkValue
|
|
9963
10010
|
);
|
|
9964
10011
|
}
|
|
@@ -9994,13 +10041,13 @@ Fe([
|
|
|
9994
10041
|
ge = Fe([
|
|
9995
10042
|
C(Sh)
|
|
9996
10043
|
], ge);
|
|
9997
|
-
var $h = Object.defineProperty, Ah = Object.getOwnPropertyDescriptor,
|
|
10044
|
+
var $h = Object.defineProperty, Ah = Object.getOwnPropertyDescriptor, ne = (s, t, i, r) => {
|
|
9998
10045
|
for (var e = r > 1 ? void 0 : r ? Ah(t, i) : t, o = s.length - 1, n; o >= 0; o--)
|
|
9999
10046
|
(n = s[o]) && (e = (r ? n(t, i, e) : n(e)) || e);
|
|
10000
10047
|
return r && e && $h(t, i, e), e;
|
|
10001
10048
|
};
|
|
10002
10049
|
const kh = "sonic-checkbox";
|
|
10003
|
-
let
|
|
10050
|
+
let Pt = class extends er(
|
|
10004
10051
|
li(Ze(it(P)))
|
|
10005
10052
|
) {
|
|
10006
10053
|
constructor() {
|
|
@@ -10050,7 +10097,7 @@ let xt = class extends er(
|
|
|
10050
10097
|
`;
|
|
10051
10098
|
}
|
|
10052
10099
|
};
|
|
10053
|
-
|
|
10100
|
+
Pt.styles = [
|
|
10054
10101
|
Kt,
|
|
10055
10102
|
S`
|
|
10056
10103
|
:host {
|
|
@@ -10176,40 +10223,40 @@ xt.styles = [
|
|
|
10176
10223
|
}
|
|
10177
10224
|
`
|
|
10178
10225
|
];
|
|
10179
|
-
|
|
10226
|
+
ne([
|
|
10180
10227
|
a({ type: Boolean, reflect: !0 })
|
|
10181
|
-
],
|
|
10182
|
-
|
|
10228
|
+
], Pt.prototype, "touched", 2);
|
|
10229
|
+
ne([
|
|
10183
10230
|
a({ type: String })
|
|
10184
|
-
],
|
|
10185
|
-
|
|
10231
|
+
], Pt.prototype, "iconName", 2);
|
|
10232
|
+
ne([
|
|
10186
10233
|
a({ type: String })
|
|
10187
|
-
],
|
|
10188
|
-
|
|
10234
|
+
], Pt.prototype, "indeterminateIconName", 2);
|
|
10235
|
+
ne([
|
|
10189
10236
|
a({ type: Boolean })
|
|
10190
|
-
],
|
|
10191
|
-
|
|
10237
|
+
], Pt.prototype, "showAsIndeterminate", 2);
|
|
10238
|
+
ne([
|
|
10192
10239
|
a({ type: Boolean })
|
|
10193
|
-
],
|
|
10194
|
-
|
|
10240
|
+
], Pt.prototype, "hasDescription", 2);
|
|
10241
|
+
ne([
|
|
10195
10242
|
a({ type: Boolean })
|
|
10196
|
-
],
|
|
10197
|
-
|
|
10198
|
-
|
|
10199
|
-
],
|
|
10200
|
-
|
|
10201
|
-
|
|
10202
|
-
],
|
|
10203
|
-
|
|
10243
|
+
], Pt.prototype, "hasLabel", 2);
|
|
10244
|
+
ne([
|
|
10245
|
+
vt({ flatten: !0 })
|
|
10246
|
+
], Pt.prototype, "slotLabelNodes", 2);
|
|
10247
|
+
ne([
|
|
10248
|
+
vt({ slot: "description", flatten: !0 })
|
|
10249
|
+
], Pt.prototype, "slotDescriptionNodes", 2);
|
|
10250
|
+
Pt = ne([
|
|
10204
10251
|
C(kh)
|
|
10205
|
-
],
|
|
10252
|
+
], Pt);
|
|
10206
10253
|
var Dh = Object.getOwnPropertyDescriptor, Oh = (s, t, i, r) => {
|
|
10207
10254
|
for (var e = r > 1 ? void 0 : r ? Dh(t, i) : t, o = s.length - 1, n; o >= 0; o--)
|
|
10208
10255
|
(n = s[o]) && (e = n(e) || e);
|
|
10209
10256
|
return e;
|
|
10210
10257
|
};
|
|
10211
10258
|
const Eh = "sonic-radio";
|
|
10212
|
-
let Oi = class extends
|
|
10259
|
+
let Oi = class extends Pt {
|
|
10213
10260
|
constructor() {
|
|
10214
10261
|
super(), this.radio = !0;
|
|
10215
10262
|
}
|
|
@@ -10222,7 +10269,7 @@ let Oi = class extends xt {
|
|
|
10222
10269
|
}
|
|
10223
10270
|
};
|
|
10224
10271
|
Oi.styles = [
|
|
10225
|
-
|
|
10272
|
+
Pt.styles,
|
|
10226
10273
|
S`
|
|
10227
10274
|
:host input {
|
|
10228
10275
|
border-radius: 50%;
|
|
@@ -10250,13 +10297,13 @@ var Lh = Object.getOwnPropertyDescriptor, Th = (s, t, i, r) => {
|
|
|
10250
10297
|
return e;
|
|
10251
10298
|
};
|
|
10252
10299
|
const Ih = "sonic-switch";
|
|
10253
|
-
let Ei = class extends
|
|
10300
|
+
let Ei = class extends Pt {
|
|
10254
10301
|
constructor() {
|
|
10255
10302
|
super(), this.unique = !0;
|
|
10256
10303
|
}
|
|
10257
10304
|
};
|
|
10258
10305
|
Ei.styles = [
|
|
10259
|
-
|
|
10306
|
+
Pt.styles,
|
|
10260
10307
|
S`
|
|
10261
10308
|
sonic-icon {
|
|
10262
10309
|
display: none;
|
|
@@ -10559,16 +10606,16 @@ rt([
|
|
|
10559
10606
|
a()
|
|
10560
10607
|
], J.prototype, "label", 1);
|
|
10561
10608
|
rt([
|
|
10562
|
-
|
|
10609
|
+
vt({ slot: "label", flatten: !0 })
|
|
10563
10610
|
], J.prototype, "slotLabelNodes", 2);
|
|
10564
10611
|
rt([
|
|
10565
|
-
|
|
10612
|
+
vt({ slot: "description", flatten: !0 })
|
|
10566
10613
|
], J.prototype, "slotDescriptionNodes", 2);
|
|
10567
10614
|
rt([
|
|
10568
|
-
|
|
10615
|
+
vt({ slot: "suffix", flatten: !0 })
|
|
10569
10616
|
], J.prototype, "slotSuffixNodes", 2);
|
|
10570
10617
|
rt([
|
|
10571
|
-
|
|
10618
|
+
vt({ slot: "prefix", flatten: !0 })
|
|
10572
10619
|
], J.prototype, "slotPrefixNodes", 2);
|
|
10573
10620
|
rt([
|
|
10574
10621
|
T()
|
|
@@ -10585,13 +10632,13 @@ rt([
|
|
|
10585
10632
|
J = rt([
|
|
10586
10633
|
C(Fh)
|
|
10587
10634
|
], J);
|
|
10588
|
-
var jh = Object.defineProperty, Rh = Object.getOwnPropertyDescriptor,
|
|
10635
|
+
var jh = Object.defineProperty, Rh = Object.getOwnPropertyDescriptor, $t = (s, t, i, r) => {
|
|
10589
10636
|
for (var e = r > 1 ? void 0 : r ? Rh(t, i) : t, o = s.length - 1, n; o >= 0; o--)
|
|
10590
10637
|
(n = s[o]) && (e = (r ? n(t, i, e) : n(e)) || e);
|
|
10591
10638
|
return r && e && jh(t, i, e), e;
|
|
10592
10639
|
};
|
|
10593
10640
|
const zh = "sonic-textarea";
|
|
10594
|
-
let
|
|
10641
|
+
let mt = class extends li(Ze(it(P))) {
|
|
10595
10642
|
constructor() {
|
|
10596
10643
|
super(...arguments), this.size = "md", this.readonly = !1, this.resize = "vertical", this.hasDescription = !1, this.hasLabel = !1;
|
|
10597
10644
|
}
|
|
@@ -10651,7 +10698,7 @@ let bt = class extends li(Ze(it(P))) {
|
|
|
10651
10698
|
class="form-element textarea custom-scroll"
|
|
10652
10699
|
aria-label=${$(this.ariaLabel)}
|
|
10653
10700
|
aria-labelledby=${$(this.ariaLabelledby)}
|
|
10654
|
-
style=${
|
|
10701
|
+
style=${xt(s)}
|
|
10655
10702
|
>
|
|
10656
10703
|
${this.value}</textarea
|
|
10657
10704
|
>
|
|
@@ -10666,7 +10713,7 @@ ${this.value}</textarea
|
|
|
10666
10713
|
`;
|
|
10667
10714
|
}
|
|
10668
10715
|
};
|
|
10669
|
-
|
|
10716
|
+
mt.styles = [
|
|
10670
10717
|
Kt,
|
|
10671
10718
|
pr,
|
|
10672
10719
|
di,
|
|
@@ -10679,48 +10726,48 @@ bt.styles = [
|
|
|
10679
10726
|
}
|
|
10680
10727
|
`
|
|
10681
10728
|
];
|
|
10682
|
-
|
|
10729
|
+
$t([
|
|
10683
10730
|
a({ type: String })
|
|
10684
|
-
],
|
|
10685
|
-
|
|
10731
|
+
], mt.prototype, "size", 2);
|
|
10732
|
+
$t([
|
|
10686
10733
|
a({ type: Number })
|
|
10687
|
-
],
|
|
10688
|
-
|
|
10734
|
+
], mt.prototype, "rows", 2);
|
|
10735
|
+
$t([
|
|
10689
10736
|
a({ type: Number })
|
|
10690
|
-
],
|
|
10691
|
-
|
|
10737
|
+
], mt.prototype, "cols", 2);
|
|
10738
|
+
$t([
|
|
10692
10739
|
a({ type: Number })
|
|
10693
|
-
],
|
|
10694
|
-
|
|
10740
|
+
], mt.prototype, "maxlength", 2);
|
|
10741
|
+
$t([
|
|
10695
10742
|
a({ type: Number })
|
|
10696
|
-
],
|
|
10697
|
-
|
|
10743
|
+
], mt.prototype, "minlength", 2);
|
|
10744
|
+
$t([
|
|
10698
10745
|
a({ type: String })
|
|
10699
|
-
],
|
|
10700
|
-
|
|
10746
|
+
], mt.prototype, "wrap", 2);
|
|
10747
|
+
$t([
|
|
10701
10748
|
a({ type: Boolean })
|
|
10702
|
-
],
|
|
10703
|
-
|
|
10749
|
+
], mt.prototype, "readonly", 2);
|
|
10750
|
+
$t([
|
|
10704
10751
|
a({ type: String })
|
|
10705
|
-
],
|
|
10706
|
-
|
|
10752
|
+
], mt.prototype, "placeholder", 2);
|
|
10753
|
+
$t([
|
|
10707
10754
|
a({ type: String })
|
|
10708
|
-
],
|
|
10709
|
-
|
|
10710
|
-
|
|
10711
|
-
],
|
|
10712
|
-
|
|
10713
|
-
|
|
10714
|
-
],
|
|
10715
|
-
|
|
10755
|
+
], mt.prototype, "resize", 2);
|
|
10756
|
+
$t([
|
|
10757
|
+
vt({ slot: "label", flatten: !0 })
|
|
10758
|
+
], mt.prototype, "slotLabelNodes", 2);
|
|
10759
|
+
$t([
|
|
10760
|
+
vt({ slot: "description", flatten: !0 })
|
|
10761
|
+
], mt.prototype, "slotDescriptionNodes", 2);
|
|
10762
|
+
$t([
|
|
10716
10763
|
T()
|
|
10717
|
-
],
|
|
10718
|
-
|
|
10764
|
+
], mt.prototype, "hasDescription", 2);
|
|
10765
|
+
$t([
|
|
10719
10766
|
T()
|
|
10720
|
-
],
|
|
10721
|
-
|
|
10767
|
+
], mt.prototype, "hasLabel", 2);
|
|
10768
|
+
mt = $t([
|
|
10722
10769
|
C(zh)
|
|
10723
|
-
],
|
|
10770
|
+
], mt);
|
|
10724
10771
|
var Uh = Object.getOwnPropertyDescriptor, Vh = (s, t, i, r) => {
|
|
10725
10772
|
for (var e = r > 1 ? void 0 : r ? Uh(t, i) : t, o = s.length - 1, n; o >= 0; o--)
|
|
10726
10773
|
(n = s[o]) && (e = n(e) || e);
|
|
@@ -10760,7 +10807,7 @@ var Bh = Object.defineProperty, Hh = Object.getOwnPropertyDescriptor, je = (s, t
|
|
|
10760
10807
|
return r && e && Bh(t, i, e), e;
|
|
10761
10808
|
};
|
|
10762
10809
|
const qh = "sonic-legend";
|
|
10763
|
-
let
|
|
10810
|
+
let re = class extends P {
|
|
10764
10811
|
constructor() {
|
|
10765
10812
|
super(...arguments), this.forceAutoFill = !1;
|
|
10766
10813
|
}
|
|
@@ -10797,7 +10844,7 @@ let ie = class extends P {
|
|
|
10797
10844
|
</legend>`;
|
|
10798
10845
|
}
|
|
10799
10846
|
};
|
|
10800
|
-
|
|
10847
|
+
re.styles = [
|
|
10801
10848
|
S`
|
|
10802
10849
|
:host {
|
|
10803
10850
|
--sc-legend-font-size: 1.5rem;
|
|
@@ -10846,25 +10893,25 @@ ie.styles = [
|
|
|
10846
10893
|
];
|
|
10847
10894
|
je([
|
|
10848
10895
|
a({ type: Boolean })
|
|
10849
|
-
],
|
|
10896
|
+
], re.prototype, "forceAutoFill", 2);
|
|
10850
10897
|
je([
|
|
10851
10898
|
a()
|
|
10852
|
-
],
|
|
10899
|
+
], re.prototype, "description", 1);
|
|
10853
10900
|
je([
|
|
10854
10901
|
a()
|
|
10855
|
-
],
|
|
10902
|
+
], re.prototype, "label", 1);
|
|
10856
10903
|
je([
|
|
10857
10904
|
a({ type: String })
|
|
10858
|
-
],
|
|
10905
|
+
], re.prototype, "iconName", 2);
|
|
10859
10906
|
je([
|
|
10860
10907
|
a({ type: String })
|
|
10861
|
-
],
|
|
10908
|
+
], re.prototype, "iconLibrary", 2);
|
|
10862
10909
|
je([
|
|
10863
10910
|
a({ type: String })
|
|
10864
|
-
],
|
|
10865
|
-
|
|
10911
|
+
], re.prototype, "iconPrefix", 2);
|
|
10912
|
+
re = je([
|
|
10866
10913
|
C(qh)
|
|
10867
|
-
],
|
|
10914
|
+
], re);
|
|
10868
10915
|
var Wh = Object.defineProperty, Kh = Object.getOwnPropertyDescriptor, Gt = (s, t, i, r) => {
|
|
10869
10916
|
for (var e = r > 1 ? void 0 : r ? Kh(t, i) : t, o = s.length - 1, n; o >= 0; o--)
|
|
10870
10917
|
(n = s[o]) && (e = (r ? n(t, i, e) : n(e)) || e);
|
|
@@ -11060,7 +11107,7 @@ let gs = class extends P {
|
|
|
11060
11107
|
flexDirection: this.direction,
|
|
11061
11108
|
justifyContent: this.justify
|
|
11062
11109
|
};
|
|
11063
|
-
return g`<slot style=${
|
|
11110
|
+
return g`<slot style=${xt(s)}></slot>`;
|
|
11064
11111
|
}
|
|
11065
11112
|
};
|
|
11066
11113
|
gs.styles = [
|
|
@@ -11125,7 +11172,7 @@ let qt = class extends P {
|
|
|
11125
11172
|
@slotchange=${this.hasSlotOrProps}
|
|
11126
11173
|
></slot
|
|
11127
11174
|
></span>
|
|
11128
|
-
<slot class="main-slot" style=${
|
|
11175
|
+
<slot class="main-slot" style=${xt(s)}></slot>
|
|
11129
11176
|
<slot
|
|
11130
11177
|
name="description"
|
|
11131
11178
|
@slotchange=${this.hasSlotOrProps}
|
|
@@ -11171,10 +11218,10 @@ xe([
|
|
|
11171
11218
|
a({ type: String })
|
|
11172
11219
|
], qt.prototype, "description", 2);
|
|
11173
11220
|
xe([
|
|
11174
|
-
|
|
11221
|
+
vt({ slot: "label", flatten: !0 })
|
|
11175
11222
|
], qt.prototype, "slotLabelNodes", 2);
|
|
11176
11223
|
xe([
|
|
11177
|
-
|
|
11224
|
+
vt({ slot: "description", flatten: !0 })
|
|
11178
11225
|
], qt.prototype, "slotDescriptionNodes", 2);
|
|
11179
11226
|
xe([
|
|
11180
11227
|
T()
|
|
@@ -11218,7 +11265,7 @@ let Mt = class extends P {
|
|
|
11218
11265
|
src="${this.src}"
|
|
11219
11266
|
loading="${this.loading}"
|
|
11220
11267
|
alt="${this.alt}"
|
|
11221
|
-
style=${
|
|
11268
|
+
style=${xt(s)}
|
|
11222
11269
|
/></picture>
|
|
11223
11270
|
</div>`;
|
|
11224
11271
|
}
|
|
@@ -11330,13 +11377,13 @@ Zt([
|
|
|
11330
11377
|
Mt = Zt([
|
|
11331
11378
|
C(nd)
|
|
11332
11379
|
], Mt);
|
|
11333
|
-
var ad = Object.defineProperty, ld = Object.getOwnPropertyDescriptor,
|
|
11380
|
+
var ad = Object.defineProperty, ld = Object.getOwnPropertyDescriptor, At = (s, t, i, r) => {
|
|
11334
11381
|
for (var e = r > 1 ? void 0 : r ? ld(t, i) : t, o = s.length - 1, n; o >= 0; o--)
|
|
11335
11382
|
(n = s[o]) && (e = (r ? n(t, i, e) : n(e)) || e);
|
|
11336
11383
|
return r && e && ad(t, i, e), e;
|
|
11337
11384
|
};
|
|
11338
11385
|
const qo = (s) => _s(s), cd = "sonic-menu";
|
|
11339
|
-
let
|
|
11386
|
+
let gt = class extends P {
|
|
11340
11387
|
constructor() {
|
|
11341
11388
|
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.attributeObserver = null, this.minWidth = "0", this.hasMoreElements = !1, this.handleScrollEnd = () => {
|
|
11342
11389
|
this.setScrollShadow(this.menuContent, this.direction);
|
|
@@ -11438,19 +11485,19 @@ let mt = class extends P {
|
|
|
11438
11485
|
return g`<menu
|
|
11439
11486
|
part="menu"
|
|
11440
11487
|
class="shadowable"
|
|
11441
|
-
style=${
|
|
11488
|
+
style=${xt(s)}
|
|
11442
11489
|
>
|
|
11443
11490
|
<slot
|
|
11444
11491
|
@slotchange=${this.mainSlotChange}
|
|
11445
11492
|
id="menu-content"
|
|
11446
|
-
style=${
|
|
11493
|
+
style=${xt(i)}
|
|
11447
11494
|
></slot>
|
|
11448
11495
|
<sonic-pop
|
|
11449
|
-
style=${
|
|
11496
|
+
style=${xt(r)}
|
|
11450
11497
|
class=${this.hasMoreElements ? "" : "hidden"}
|
|
11451
11498
|
>
|
|
11452
11499
|
<sonic-menu-item
|
|
11453
|
-
style=${
|
|
11500
|
+
style=${xt(e)}
|
|
11454
11501
|
class="more-btn"
|
|
11455
11502
|
shape=${this.moreShape}
|
|
11456
11503
|
align="center"
|
|
@@ -11469,7 +11516,7 @@ let mt = class extends P {
|
|
|
11469
11516
|
</menu>`;
|
|
11470
11517
|
}
|
|
11471
11518
|
};
|
|
11472
|
-
|
|
11519
|
+
gt.styles = [
|
|
11473
11520
|
S`
|
|
11474
11521
|
:host {
|
|
11475
11522
|
display: block;
|
|
@@ -11601,48 +11648,48 @@ mt.styles = [
|
|
|
11601
11648
|
`,
|
|
11602
11649
|
Bo
|
|
11603
11650
|
];
|
|
11604
|
-
|
|
11651
|
+
At([
|
|
11605
11652
|
a({ type: String, reflect: !0 })
|
|
11606
|
-
],
|
|
11607
|
-
|
|
11653
|
+
], gt.prototype, "size", 2);
|
|
11654
|
+
At([
|
|
11608
11655
|
a({ type: String, reflect: !0 })
|
|
11609
|
-
],
|
|
11610
|
-
|
|
11656
|
+
], gt.prototype, "direction", 2);
|
|
11657
|
+
At([
|
|
11611
11658
|
a({ type: String })
|
|
11612
|
-
],
|
|
11613
|
-
|
|
11659
|
+
], gt.prototype, "gap", 2);
|
|
11660
|
+
At([
|
|
11614
11661
|
a({ type: String, reflect: !0 })
|
|
11615
|
-
],
|
|
11616
|
-
|
|
11662
|
+
], gt.prototype, "align", 2);
|
|
11663
|
+
At([
|
|
11617
11664
|
a({ type: String, reflect: !0 })
|
|
11618
|
-
],
|
|
11619
|
-
|
|
11665
|
+
], gt.prototype, "shadow", 2);
|
|
11666
|
+
At([
|
|
11620
11667
|
a({ type: String })
|
|
11621
|
-
],
|
|
11622
|
-
|
|
11668
|
+
], gt.prototype, "moreShape", 2);
|
|
11669
|
+
At([
|
|
11623
11670
|
a({ type: Boolean })
|
|
11624
|
-
],
|
|
11625
|
-
|
|
11671
|
+
], gt.prototype, "scrollable", 2);
|
|
11672
|
+
At([
|
|
11626
11673
|
a({ type: String })
|
|
11627
|
-
],
|
|
11628
|
-
|
|
11674
|
+
], gt.prototype, "minWidth", 2);
|
|
11675
|
+
At([
|
|
11629
11676
|
ye("menu")
|
|
11630
|
-
],
|
|
11631
|
-
|
|
11677
|
+
], gt.prototype, "menu", 2);
|
|
11678
|
+
At([
|
|
11632
11679
|
ye("#menu-content")
|
|
11633
|
-
],
|
|
11634
|
-
|
|
11680
|
+
], gt.prototype, "menuContent", 2);
|
|
11681
|
+
At([
|
|
11635
11682
|
qo({ selector: "*" })
|
|
11636
|
-
],
|
|
11637
|
-
|
|
11683
|
+
], gt.prototype, "menuChildren", 2);
|
|
11684
|
+
At([
|
|
11638
11685
|
qo({ slot: "more", selector: "*" })
|
|
11639
|
-
],
|
|
11640
|
-
|
|
11686
|
+
], gt.prototype, "moreElements", 2);
|
|
11687
|
+
At([
|
|
11641
11688
|
T()
|
|
11642
|
-
],
|
|
11643
|
-
|
|
11689
|
+
], gt.prototype, "hasMoreElements", 2);
|
|
11690
|
+
gt = At([
|
|
11644
11691
|
C(cd)
|
|
11645
|
-
],
|
|
11692
|
+
], gt);
|
|
11646
11693
|
var hd = Object.defineProperty, dd = Object.getOwnPropertyDescriptor, Wo = (s, t, i, r) => {
|
|
11647
11694
|
for (var e = r > 1 ? void 0 : r ? dd(t, i) : t, o = s.length - 1, n; o >= 0; o--)
|
|
11648
11695
|
(n = s[o]) && (e = (r ? n(t, i, e) : n(e)) || e);
|
|
@@ -11653,7 +11700,7 @@ let Js = class extends P {
|
|
|
11653
11700
|
firstUpdated(s) {
|
|
11654
11701
|
this.buttons?.forEach((t) => {
|
|
11655
11702
|
t.hasAttribute("hideModal") && t.addEventListener("click", () => {
|
|
11656
|
-
|
|
11703
|
+
se.getClosestElement(
|
|
11657
11704
|
this,
|
|
11658
11705
|
"sonic-modal"
|
|
11659
11706
|
)?.hide();
|
|
@@ -11839,7 +11886,7 @@ let N = class extends it(P) {
|
|
|
11839
11886
|
}
|
|
11840
11887
|
static create(s) {
|
|
11841
11888
|
const t = document.createElement(Yo);
|
|
11842
|
-
return t.options = s, s.removeHashOnHide === !0 && t.setAttribute("removeHashOnHide", "true"), s.removeOnHide === !0 && t.setAttribute("removeOnHide", "true"), s.closeOnLocationChange === !0 && t.setAttribute("closeOnLocationChange", "true"), s.maxWidth && (t.maxWidth = s?.maxWidth), s.width && (t.width = s?.width), s.maxHeight && (t.maxHeight = s?.maxHeight), s.height && (t.height = s?.height), s.forceAction && (t.forceAction = !0), s.fullScreen && (t.fullScreen = s?.fullScreen), s.effect && (t.effect = s?.effect), s.noCloseButton && (t.noCloseButton = !0), s.closeButtonType && (t.closeButtonType = s?.closeButtonType), s.styleSheet && (t.styleSheet = s?.styleSheet), s.paddingX && (t.paddingX = s?.paddingX), s.paddingY && (t.paddingY = s?.paddingY), s.zIndex && (t.zIndex = s?.zIndex),
|
|
11889
|
+
return t.options = s, s.removeHashOnHide === !0 && t.setAttribute("removeHashOnHide", "true"), s.removeOnHide === !0 && t.setAttribute("removeOnHide", "true"), s.closeOnLocationChange === !0 && t.setAttribute("closeOnLocationChange", "true"), s.maxWidth && (t.maxWidth = s?.maxWidth), s.width && (t.width = s?.width), s.maxHeight && (t.maxHeight = s?.maxHeight), s.height && (t.height = s?.height), s.forceAction && (t.forceAction = !0), s.fullScreen && (t.fullScreen = s?.fullScreen), s.effect && (t.effect = s?.effect), s.noCloseButton && (t.noCloseButton = !0), s.closeButtonType && (t.closeButtonType = s?.closeButtonType), s.styleSheet && (t.styleSheet = s?.styleSheet), s.paddingX && (t.paddingX = s?.paddingX), s.paddingY && (t.paddingY = s?.paddingY), s.zIndex && (t.zIndex = s?.zIndex), kt.getPopContainer().appendChild(t), t.updateComplete.then(() => {
|
|
11843
11890
|
t.show();
|
|
11844
11891
|
}), t;
|
|
11845
11892
|
}
|
|
@@ -11894,14 +11941,14 @@ let N = class extends it(P) {
|
|
|
11894
11941
|
<div
|
|
11895
11942
|
id="backdrop"
|
|
11896
11943
|
@click=${this.handleOverlayClick}
|
|
11897
|
-
style=${
|
|
11944
|
+
style=${xt(t)}
|
|
11898
11945
|
></div>
|
|
11899
11946
|
<dialog
|
|
11900
11947
|
id="modal"
|
|
11901
11948
|
part="modal"
|
|
11902
11949
|
class="custom-scroll"
|
|
11903
11950
|
aria-modal="true"
|
|
11904
|
-
style=${
|
|
11951
|
+
style=${xt(s)}
|
|
11905
11952
|
>
|
|
11906
11953
|
${this._animationState !== "hidden" ? g`<div id="modal-content">
|
|
11907
11954
|
${!this.forceAction && !this.noCloseButton ? g`<sonic-modal-close
|
|
@@ -12811,7 +12858,7 @@ Ft.styles = [
|
|
|
12811
12858
|
`
|
|
12812
12859
|
];
|
|
12813
12860
|
Qt([
|
|
12814
|
-
|
|
12861
|
+
vt({ flatten: !0 })
|
|
12815
12862
|
], Ft.prototype, "slotNodes", 2);
|
|
12816
12863
|
Qt([
|
|
12817
12864
|
ye("div")
|
|
@@ -13180,7 +13227,7 @@ var hu = Object.defineProperty, du = Object.getOwnPropertyDescriptor, Re = (s, t
|
|
|
13180
13227
|
return r && e && hu(t, i, e), e;
|
|
13181
13228
|
};
|
|
13182
13229
|
const uu = "sonic-th";
|
|
13183
|
-
let
|
|
13230
|
+
let oe = class extends P {
|
|
13184
13231
|
render() {
|
|
13185
13232
|
const s = {
|
|
13186
13233
|
textAlign: this.align,
|
|
@@ -13190,7 +13237,7 @@ let re = class extends P {
|
|
|
13190
13237
|
};
|
|
13191
13238
|
return g`<th
|
|
13192
13239
|
part="th"
|
|
13193
|
-
style=${
|
|
13240
|
+
style=${xt(s)}
|
|
13194
13241
|
colspan=${$(this.colSpan)}
|
|
13195
13242
|
rowspan=${$(this.rowSpan)}
|
|
13196
13243
|
>
|
|
@@ -13198,7 +13245,7 @@ let re = class extends P {
|
|
|
13198
13245
|
</th> `;
|
|
13199
13246
|
}
|
|
13200
13247
|
};
|
|
13201
|
-
|
|
13248
|
+
oe.styles = [
|
|
13202
13249
|
vr,
|
|
13203
13250
|
S`
|
|
13204
13251
|
:host {
|
|
@@ -13227,25 +13274,25 @@ re.styles = [
|
|
|
13227
13274
|
];
|
|
13228
13275
|
Re([
|
|
13229
13276
|
a({ type: Number })
|
|
13230
|
-
],
|
|
13277
|
+
], oe.prototype, "colSpan", 2);
|
|
13231
13278
|
Re([
|
|
13232
13279
|
a({ type: Number })
|
|
13233
|
-
],
|
|
13280
|
+
], oe.prototype, "rowSpan", 2);
|
|
13234
13281
|
Re([
|
|
13235
13282
|
a({ type: String })
|
|
13236
|
-
],
|
|
13283
|
+
], oe.prototype, "align", 2);
|
|
13237
13284
|
Re([
|
|
13238
13285
|
a({ type: String })
|
|
13239
|
-
],
|
|
13286
|
+
], oe.prototype, "minWidth", 2);
|
|
13240
13287
|
Re([
|
|
13241
13288
|
a({ type: String })
|
|
13242
|
-
],
|
|
13289
|
+
], oe.prototype, "maxWidth", 2);
|
|
13243
13290
|
Re([
|
|
13244
13291
|
a({ type: String })
|
|
13245
|
-
],
|
|
13246
|
-
|
|
13292
|
+
], oe.prototype, "width", 2);
|
|
13293
|
+
oe = Re([
|
|
13247
13294
|
C(uu)
|
|
13248
|
-
],
|
|
13295
|
+
], oe);
|
|
13249
13296
|
var pu = Object.defineProperty, fu = Object.getOwnPropertyDescriptor, Pe = (s, t, i, r) => {
|
|
13250
13297
|
for (var e = r > 1 ? void 0 : r ? fu(t, i) : t, o = s.length - 1, n; o >= 0; o--)
|
|
13251
13298
|
(n = s[o]) && (e = (r ? n(t, i, e) : n(e)) || e);
|
|
@@ -13261,7 +13308,7 @@ let Wt = class extends P {
|
|
|
13261
13308
|
maxWidth: this.maxWidth,
|
|
13262
13309
|
width: this.width
|
|
13263
13310
|
};
|
|
13264
|
-
return g`<td part="td" style=${
|
|
13311
|
+
return g`<td part="td" style=${xt(s)} colspan=${$(this.colSpan)} rowspan=${$(this.rowSpan)}>
|
|
13265
13312
|
<slot></slot>
|
|
13266
13313
|
</td>`;
|
|
13267
13314
|
}
|
|
@@ -13425,7 +13472,7 @@ let ve = class extends P {
|
|
|
13425
13472
|
return g`
|
|
13426
13473
|
<div
|
|
13427
13474
|
class="table-container ${this.noCustomScroll ? "" : "custom-scroll"}"
|
|
13428
|
-
style=${
|
|
13475
|
+
style=${xt(s)}
|
|
13429
13476
|
>
|
|
13430
13477
|
<div class="table">
|
|
13431
13478
|
<slot></slot>
|
|
@@ -13801,7 +13848,7 @@ let Ke = class extends we(P) {
|
|
|
13801
13848
|
render() {
|
|
13802
13849
|
if (!this.key)
|
|
13803
13850
|
return k;
|
|
13804
|
-
const t =
|
|
13851
|
+
const t = se.getLanguage().match("^fr\\b") ? {
|
|
13805
13852
|
aria: "Visitez altcha.org",
|
|
13806
13853
|
error: "La vérification a échoué, réessayez plus tard.",
|
|
13807
13854
|
expired: "La vérification a expiré, réessayez.",
|
|
@@ -13895,7 +13942,7 @@ class Uu extends Ji {
|
|
|
13895
13942
|
const i = this.normalizeInput(t), r = this.pathTemplate !== i;
|
|
13896
13943
|
return r && (this.pathTemplate = i, this.teardownWatchers()), (r || !this.resolvedPath) && queueMicrotask(() => {
|
|
13897
13944
|
!this.isConnected || !this.pathTemplate || this.setupSubscription();
|
|
13898
|
-
}),
|
|
13945
|
+
}), Dt;
|
|
13899
13946
|
}
|
|
13900
13947
|
setupSubscription() {
|
|
13901
13948
|
const t = this.node, i = this.pathTemplate;
|
|
@@ -13924,7 +13971,7 @@ class Uu extends Ji {
|
|
|
13924
13971
|
if (!t)
|
|
13925
13972
|
e = null;
|
|
13926
13973
|
else {
|
|
13927
|
-
const o =
|
|
13974
|
+
const o = St(t, i);
|
|
13928
13975
|
e = o.ready ? o.path : null;
|
|
13929
13976
|
}
|
|
13930
13977
|
if (e !== this.resolvedPath) {
|