dap-design-system 0.59.2 → 0.60.0
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/dist/components/datatable/datatable.component.d.ts +14 -0
- package/dist/{components-BQQTd9Dz.js → components-DU5UQYWN.js} +684 -650
- package/dist/components-DU5UQYWN.js.map +1 -0
- package/dist/components.js +1 -1
- package/dist/dds.js +1 -1
- package/dist/manifest/types/vue/index.d.ts +107 -104
- package/dist/manifest/vscode.html-custom-data.json +100 -95
- package/dist/manifest/web-types.json +214 -204
- package/dist/react/index.d.ts +4 -4
- package/dist/react-types.ts +4 -4
- package/dist/react.js +28 -28
- package/dist/react.js.map +1 -1
- package/package.json +1 -1
- package/dist/components-BQQTd9Dz.js.map +0 -1
|
@@ -8,7 +8,7 @@ var la = (e, t, i) => t in e ? xd(e, t, { enumerable: !0, configurable: !0, writ
|
|
|
8
8
|
for (var i of er(t))
|
|
9
9
|
vs.call(t, i) && la(e, i, t[i]);
|
|
10
10
|
return e;
|
|
11
|
-
},
|
|
11
|
+
}, U = (e, t) => wd(e, _d(t));
|
|
12
12
|
var ca = (e) => typeof e == "symbol" ? e : e + "", Li = (e, t) => {
|
|
13
13
|
var i = {};
|
|
14
14
|
for (var o in e)
|
|
@@ -46,7 +46,7 @@ function qa() {
|
|
|
46
46
|
(function(i, o) {
|
|
47
47
|
e.exports = o();
|
|
48
48
|
})(Cd, function() {
|
|
49
|
-
var i = 1e3, o = 6e4, r = 36e5, a = "millisecond", s = "second", d = "minute", l = "hour", c = "day", p = "week",
|
|
49
|
+
var i = 1e3, o = 6e4, r = 36e5, a = "millisecond", s = "second", d = "minute", l = "hour", c = "day", p = "week", h = "month", u = "quarter", g = "year", v = "date", w = "Invalid Date", y = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, _ = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, S = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(B) {
|
|
50
50
|
var L = ["th", "st", "nd", "rd"], D = B % 100;
|
|
51
51
|
return "[" + B + (L[(D - 20) % 10] || L[D] || L[0]) + "]";
|
|
52
52
|
} }, A = function(B, L, D) {
|
|
@@ -57,12 +57,12 @@ function qa() {
|
|
|
57
57
|
return (L <= 0 ? "+" : "-") + A(V, 2, "0") + ":" + A(C, 2, "0");
|
|
58
58
|
}, m: function B(L, D) {
|
|
59
59
|
if (L.date() < D.date()) return -B(D, L);
|
|
60
|
-
var V = 12 * (D.year() - L.year()) + (D.month() - L.month()), C = L.clone().add(V,
|
|
60
|
+
var V = 12 * (D.year() - L.year()) + (D.month() - L.month()), C = L.clone().add(V, h), F = D - C < 0, H = L.clone().add(V + (F ? -1 : 1), h);
|
|
61
61
|
return +(-(V + (D - C) / (F ? C - H : H - C)) || 0);
|
|
62
62
|
}, a: function(B) {
|
|
63
63
|
return B < 0 ? Math.ceil(B) || 0 : Math.floor(B);
|
|
64
64
|
}, p: function(B) {
|
|
65
|
-
return { M:
|
|
65
|
+
return { M: h, y: g, w: p, d: c, D: v, h: l, m: d, s, ms: a, Q: u }[B] || String(B || "").toLowerCase().replace(/s$/, "");
|
|
66
66
|
}, u: function(B) {
|
|
67
67
|
return B === void 0;
|
|
68
68
|
} }, E = "en", tt = {};
|
|
@@ -78,8 +78,8 @@ function qa() {
|
|
|
78
78
|
var H = L.split("-");
|
|
79
79
|
if (!C && H.length > 1) return B(H[0]);
|
|
80
80
|
} else {
|
|
81
|
-
var
|
|
82
|
-
tt[
|
|
81
|
+
var K = L.name;
|
|
82
|
+
tt[K] = L, C = K;
|
|
83
83
|
}
|
|
84
84
|
return !V && C && (E = C), C || !V && E;
|
|
85
85
|
}, it = function(B, L) {
|
|
@@ -104,8 +104,8 @@ function qa() {
|
|
|
104
104
|
if (typeof C == "string" && !/Z$/i.test(C)) {
|
|
105
105
|
var H = C.match(y);
|
|
106
106
|
if (H) {
|
|
107
|
-
var
|
|
108
|
-
return F ? new Date(Date.UTC(H[1],
|
|
107
|
+
var K = H[2] - 1 || 0, vt = (H[7] || "0").substring(0, 3);
|
|
108
|
+
return F ? new Date(Date.UTC(H[1], K, H[3] || 1, H[4] || 0, H[5] || 0, H[6] || 0, vt)) : new Date(H[1], K, H[3] || 1, H[4] || 0, H[5] || 0, H[6] || 0, vt);
|
|
109
109
|
}
|
|
110
110
|
}
|
|
111
111
|
return new Date(C);
|
|
@@ -131,7 +131,7 @@ function qa() {
|
|
|
131
131
|
}, L.valueOf = function() {
|
|
132
132
|
return this.$d.getTime();
|
|
133
133
|
}, L.startOf = function(D, V) {
|
|
134
|
-
var C = this, F = !!N.u(V) || V, H = N.p(D),
|
|
134
|
+
var C = this, F = !!N.u(V) || V, H = N.p(D), K = function(Fe, Mt) {
|
|
135
135
|
var fe = N.w(C.$u ? Date.UTC(C.$y, Mt, Fe) : new Date(C.$y, Mt, Fe), C);
|
|
136
136
|
return F ? fe : fe.endOf(c);
|
|
137
137
|
}, vt = function(Fe, Mt) {
|
|
@@ -139,12 +139,12 @@ function qa() {
|
|
|
139
139
|
}, Ct = this.$W, Et = this.$M, Qt = this.$D, fi = "set" + (this.$u ? "UTC" : "");
|
|
140
140
|
switch (H) {
|
|
141
141
|
case g:
|
|
142
|
-
return F ?
|
|
143
|
-
case
|
|
144
|
-
return F ?
|
|
142
|
+
return F ? K(1, 0) : K(31, 11);
|
|
143
|
+
case h:
|
|
144
|
+
return F ? K(1, Et) : K(0, Et + 1);
|
|
145
145
|
case p:
|
|
146
146
|
var Xe = this.$locale().weekStart || 0, Oi = (Ct < Xe ? Ct + 7 : Ct) - Xe;
|
|
147
|
-
return
|
|
147
|
+
return K(F ? Qt - Oi : Qt + (6 - Oi), Et);
|
|
148
148
|
case c:
|
|
149
149
|
case v:
|
|
150
150
|
return vt(fi + "Hours", 0);
|
|
@@ -160,11 +160,11 @@ function qa() {
|
|
|
160
160
|
}, L.endOf = function(D) {
|
|
161
161
|
return this.startOf(D, !1);
|
|
162
162
|
}, L.$set = function(D, V) {
|
|
163
|
-
var C, F = N.p(D), H = "set" + (this.$u ? "UTC" : ""),
|
|
164
|
-
if (F ===
|
|
163
|
+
var C, F = N.p(D), H = "set" + (this.$u ? "UTC" : ""), K = (C = {}, C[c] = H + "Date", C[v] = H + "Date", C[h] = H + "Month", C[g] = H + "FullYear", C[l] = H + "Hours", C[d] = H + "Minutes", C[s] = H + "Seconds", C[a] = H + "Milliseconds", C)[F], vt = F === c ? this.$D + (V - this.$W) : V;
|
|
164
|
+
if (F === h || F === g) {
|
|
165
165
|
var Ct = this.clone().set(v, 1);
|
|
166
|
-
Ct.$d[
|
|
167
|
-
} else
|
|
166
|
+
Ct.$d[K](vt), Ct.init(), this.$d = Ct.set(v, Math.min(this.$D, Ct.daysInMonth())).$d;
|
|
167
|
+
} else K && this.$d[K](vt);
|
|
168
168
|
return this.init(), this;
|
|
169
169
|
}, L.set = function(D, V) {
|
|
170
170
|
return this.clone().$set(D, V);
|
|
@@ -173,14 +173,14 @@ function qa() {
|
|
|
173
173
|
}, L.add = function(D, V) {
|
|
174
174
|
var C, F = this;
|
|
175
175
|
D = Number(D);
|
|
176
|
-
var H = N.p(V),
|
|
176
|
+
var H = N.p(V), K = function(Et) {
|
|
177
177
|
var Qt = it(F);
|
|
178
178
|
return N.w(Qt.date(Qt.date() + Math.round(Et * D)), F);
|
|
179
179
|
};
|
|
180
|
-
if (H ===
|
|
180
|
+
if (H === h) return this.set(h, this.$M + D);
|
|
181
181
|
if (H === g) return this.set(g, this.$y + D);
|
|
182
|
-
if (H === c) return
|
|
183
|
-
if (H === p) return
|
|
182
|
+
if (H === c) return K(1);
|
|
183
|
+
if (H === p) return K(7);
|
|
184
184
|
var vt = (C = {}, C[d] = o, C[l] = r, C[s] = i, C)[H] || 1, Ct = this.$d.getTime() + D * vt;
|
|
185
185
|
return N.w(Ct, this);
|
|
186
186
|
}, L.subtract = function(D, V) {
|
|
@@ -188,10 +188,10 @@ function qa() {
|
|
|
188
188
|
}, L.format = function(D) {
|
|
189
189
|
var V = this, C = this.$locale();
|
|
190
190
|
if (!this.isValid()) return C.invalidDate || w;
|
|
191
|
-
var F = D || "YYYY-MM-DDTHH:mm:ssZ", H = N.z(this),
|
|
191
|
+
var F = D || "YYYY-MM-DDTHH:mm:ssZ", H = N.z(this), K = this.$H, vt = this.$m, Ct = this.$M, Et = C.weekdays, Qt = C.months, fi = C.meridiem, Xe = function(Mt, fe, Qe, mi) {
|
|
192
192
|
return Mt && (Mt[fe] || Mt(V, F)) || Qe[fe].slice(0, mi);
|
|
193
193
|
}, Oi = function(Mt) {
|
|
194
|
-
return N.s(
|
|
194
|
+
return N.s(K % 12 || 12, Mt, "0");
|
|
195
195
|
}, Fe = fi || function(Mt, fe, Qe) {
|
|
196
196
|
var mi = Mt < 12 ? "AM" : "PM";
|
|
197
197
|
return Qe ? mi.toLowerCase() : mi;
|
|
@@ -224,17 +224,17 @@ function qa() {
|
|
|
224
224
|
case "dddd":
|
|
225
225
|
return Et[V.$W];
|
|
226
226
|
case "H":
|
|
227
|
-
return String(
|
|
227
|
+
return String(K);
|
|
228
228
|
case "HH":
|
|
229
|
-
return N.s(
|
|
229
|
+
return N.s(K, 2, "0");
|
|
230
230
|
case "h":
|
|
231
231
|
return Oi(1);
|
|
232
232
|
case "hh":
|
|
233
233
|
return Oi(2);
|
|
234
234
|
case "a":
|
|
235
|
-
return Fe(
|
|
235
|
+
return Fe(K, vt, !0);
|
|
236
236
|
case "A":
|
|
237
|
-
return Fe(
|
|
237
|
+
return Fe(K, vt, !1);
|
|
238
238
|
case "m":
|
|
239
239
|
return String(vt);
|
|
240
240
|
case "mm":
|
|
@@ -254,17 +254,17 @@ function qa() {
|
|
|
254
254
|
}, L.utcOffset = function() {
|
|
255
255
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
256
256
|
}, L.diff = function(D, V, C) {
|
|
257
|
-
var F, H = this,
|
|
257
|
+
var F, H = this, K = N.p(V), vt = it(D), Ct = (vt.utcOffset() - this.utcOffset()) * o, Et = this - vt, Qt = function() {
|
|
258
258
|
return N.m(H, vt);
|
|
259
259
|
};
|
|
260
|
-
switch (
|
|
260
|
+
switch (K) {
|
|
261
261
|
case g:
|
|
262
262
|
F = Qt() / 12;
|
|
263
263
|
break;
|
|
264
|
-
case
|
|
264
|
+
case h:
|
|
265
265
|
F = Qt();
|
|
266
266
|
break;
|
|
267
|
-
case
|
|
267
|
+
case u:
|
|
268
268
|
F = Qt() / 3;
|
|
269
269
|
break;
|
|
270
270
|
case p:
|
|
@@ -287,7 +287,7 @@ function qa() {
|
|
|
287
287
|
}
|
|
288
288
|
return C ? F : N.a(F);
|
|
289
289
|
}, L.daysInMonth = function() {
|
|
290
|
-
return this.endOf(
|
|
290
|
+
return this.endOf(h).$D;
|
|
291
291
|
}, L.$locale = function() {
|
|
292
292
|
return tt[this.$L];
|
|
293
293
|
}, L.locale = function(D, V) {
|
|
@@ -306,7 +306,7 @@ function qa() {
|
|
|
306
306
|
return this.$d.toUTCString();
|
|
307
307
|
}, B;
|
|
308
308
|
}(), mt = $t.prototype;
|
|
309
|
-
return it.prototype = mt, [["$ms", a], ["$s", s], ["$m", d], ["$H", l], ["$W", c], ["$M",
|
|
309
|
+
return it.prototype = mt, [["$ms", a], ["$s", s], ["$m", d], ["$H", l], ["$W", c], ["$M", h], ["$y", g], ["$D", v]].forEach(function(B) {
|
|
310
310
|
mt[B[1]] = function(L) {
|
|
311
311
|
return this.$g(L, B[0], B[1]);
|
|
312
312
|
};
|
|
@@ -382,8 +382,8 @@ function Pd() {
|
|
|
382
382
|
}
|
|
383
383
|
var r = o(i), a = { s: "ein paar Sekunden", m: ["eine Minute", "einer Minute"], mm: "%d Minuten", h: ["eine Stunde", "einer Stunde"], hh: "%d Stunden", d: ["ein Tag", "einem Tag"], dd: ["%d Tage", "%d Tagen"], M: ["ein Monat", "einem Monat"], MM: ["%d Monate", "%d Monaten"], y: ["ein Jahr", "einem Jahr"], yy: ["%d Jahre", "%d Jahren"] };
|
|
384
384
|
function s(l, c, p) {
|
|
385
|
-
var
|
|
386
|
-
return Array.isArray(
|
|
385
|
+
var h = a[p];
|
|
386
|
+
return Array.isArray(h) && (h = h[c ? 0 : 1]), h.replace("%d", l);
|
|
387
387
|
}
|
|
388
388
|
var d = { name: "de", weekdays: "Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"), weekdaysShort: "So._Mo._Di._Mi._Do._Fr._Sa.".split("_"), weekdaysMin: "So_Mo_Di_Mi_Do_Fr_Sa".split("_"), months: "Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"), monthsShort: "Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sept._Okt._Nov._Dez.".split("_"), ordinal: function(l) {
|
|
389
389
|
return l + ".";
|
|
@@ -407,13 +407,13 @@ function Md() {
|
|
|
407
407
|
return function(_) {
|
|
408
408
|
this[y] = +_;
|
|
409
409
|
};
|
|
410
|
-
},
|
|
410
|
+
}, h = [/[+-]\d\d:?(\d\d)?|Z/, function(y) {
|
|
411
411
|
(this.zone || (this.zone = {})).offset = function(_) {
|
|
412
412
|
if (!_ || _ === "Z") return 0;
|
|
413
413
|
var S = _.match(/([+-]|\d\d)/g), A = 60 * S[1] + (+S[2] || 0);
|
|
414
414
|
return A === 0 ? 0 : S[0] === "+" ? -A : A;
|
|
415
415
|
}(y);
|
|
416
|
-
}],
|
|
416
|
+
}], u = function(y) {
|
|
417
417
|
var _ = l[y];
|
|
418
418
|
return _ && (_.indexOf ? _ : _.s.concat(_.f));
|
|
419
419
|
}, g = function(y, _) {
|
|
@@ -441,18 +441,18 @@ function Md() {
|
|
|
441
441
|
var _ = l.ordinal, S = y.match(/\d+/);
|
|
442
442
|
if (this.day = S[0], _) for (var A = 1; A <= 31; A += 1) _(A).replace(/\[|\]/g, "") === y && (this.day = A);
|
|
443
443
|
}], w: [s, p("week")], ww: [a, p("week")], M: [s, p("month")], MM: [a, p("month")], MMM: [d, function(y) {
|
|
444
|
-
var _ =
|
|
444
|
+
var _ = u("months"), S = (u("monthsShort") || _.map(function(A) {
|
|
445
445
|
return A.slice(0, 3);
|
|
446
446
|
})).indexOf(y) + 1;
|
|
447
447
|
if (S < 1) throw new Error();
|
|
448
448
|
this.month = S % 12 || S;
|
|
449
449
|
}], MMMM: [d, function(y) {
|
|
450
|
-
var _ =
|
|
450
|
+
var _ = u("months").indexOf(y) + 1;
|
|
451
451
|
if (_ < 1) throw new Error();
|
|
452
452
|
this.month = _ % 12 || _;
|
|
453
453
|
}], Y: [/[+-]?\d+/, p("year")], YY: [a, function(y) {
|
|
454
454
|
this.year = c(y);
|
|
455
|
-
}], YYYY: [/\d{4}/, p("year")], Z:
|
|
455
|
+
}], YYYY: [/\d{4}/, p("year")], Z: h, ZZ: h };
|
|
456
456
|
function w(y) {
|
|
457
457
|
var _, S;
|
|
458
458
|
_ = y, S = l && l.formats;
|
|
@@ -477,8 +477,8 @@ function Md() {
|
|
|
477
477
|
return function(F) {
|
|
478
478
|
var H = F.afternoon;
|
|
479
479
|
if (H !== void 0) {
|
|
480
|
-
var
|
|
481
|
-
H ?
|
|
480
|
+
var K = F.hours;
|
|
481
|
+
H ? K < 12 && (F.hours += 12) : K === 12 && (F.hours = 0), delete F.afternoon;
|
|
482
482
|
}
|
|
483
483
|
}(N), N;
|
|
484
484
|
};
|
|
@@ -495,7 +495,7 @@ function Md() {
|
|
|
495
495
|
N && (mt = ct[2]), l = this.$locale(), !it && mt && (l = S.Ls[mt]), this.$d = function(V, C, F, H) {
|
|
496
496
|
try {
|
|
497
497
|
if (["x", "X"].indexOf(C) > -1) return new Date((C === "X" ? 1e3 : 1) * V);
|
|
498
|
-
var
|
|
498
|
+
var K = w(C)(V), vt = K.year, Ct = K.month, Et = K.day, Qt = K.hours, fi = K.minutes, Xe = K.seconds, Oi = K.milliseconds, Fe = K.zone, Mt = K.week, fe = /* @__PURE__ */ new Date(), Qe = Et || (vt || Ct ? 1 : fe.getDate()), mi = vt || fe.getFullYear(), Qo = 0;
|
|
499
499
|
vt && !Ct || (Qo = Ct > 0 ? Ct - 1 : fe.getMonth());
|
|
500
500
|
var tr, aa = Qt || 0, sa = fi || 0, na = Xe || 0, da = Oi || 0;
|
|
501
501
|
return Fe ? new Date(Date.UTC(mi, Qo, Qe, aa, sa, na, da + 60 * Fe.offset * 1e3)) : F ? new Date(Date.UTC(mi, Qo, Qe, aa, sa, na, da)) : (tr = new Date(mi, Qo, Qe, aa, sa, na, da), Mt && (tr = H(tr).week(Mt).toDate()), tr);
|
|
@@ -527,10 +527,10 @@ function Fd() {
|
|
|
527
527
|
e.exports = o();
|
|
528
528
|
})(Bd, function() {
|
|
529
529
|
return function(i, o, r) {
|
|
530
|
-
var a = o.prototype, s = function(
|
|
531
|
-
return
|
|
532
|
-
}, d = function(
|
|
533
|
-
var y =
|
|
530
|
+
var a = o.prototype, s = function(h) {
|
|
531
|
+
return h && (h.indexOf ? h : h.s);
|
|
532
|
+
}, d = function(h, u, g, v, w) {
|
|
533
|
+
var y = h.name ? h : h.$locale(), _ = s(y[u]), S = s(y[g]), A = _ || S.map(function(E) {
|
|
534
534
|
return E.slice(0, v);
|
|
535
535
|
});
|
|
536
536
|
if (!w) return A;
|
|
@@ -540,36 +540,36 @@ function Fd() {
|
|
|
540
540
|
});
|
|
541
541
|
}, l = function() {
|
|
542
542
|
return r.Ls[r.locale()];
|
|
543
|
-
}, c = function(
|
|
544
|
-
return
|
|
543
|
+
}, c = function(h, u) {
|
|
544
|
+
return h.formats[u] || function(g) {
|
|
545
545
|
return g.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(v, w, y) {
|
|
546
546
|
return w || y.slice(1);
|
|
547
547
|
});
|
|
548
|
-
}(
|
|
548
|
+
}(h.formats[u.toUpperCase()]);
|
|
549
549
|
}, p = function() {
|
|
550
|
-
var
|
|
551
|
-
return { months: function(
|
|
552
|
-
return
|
|
553
|
-
}, monthsShort: function(
|
|
554
|
-
return
|
|
550
|
+
var h = this;
|
|
551
|
+
return { months: function(u) {
|
|
552
|
+
return u ? u.format("MMMM") : d(h, "months");
|
|
553
|
+
}, monthsShort: function(u) {
|
|
554
|
+
return u ? u.format("MMM") : d(h, "monthsShort", "months", 3);
|
|
555
555
|
}, firstDayOfWeek: function() {
|
|
556
|
-
return
|
|
557
|
-
}, weekdays: function(
|
|
558
|
-
return
|
|
559
|
-
}, weekdaysMin: function(
|
|
560
|
-
return
|
|
561
|
-
}, weekdaysShort: function(
|
|
562
|
-
return
|
|
563
|
-
}, longDateFormat: function(
|
|
564
|
-
return c(
|
|
556
|
+
return h.$locale().weekStart || 0;
|
|
557
|
+
}, weekdays: function(u) {
|
|
558
|
+
return u ? u.format("dddd") : d(h, "weekdays");
|
|
559
|
+
}, weekdaysMin: function(u) {
|
|
560
|
+
return u ? u.format("dd") : d(h, "weekdaysMin", "weekdays", 2);
|
|
561
|
+
}, weekdaysShort: function(u) {
|
|
562
|
+
return u ? u.format("ddd") : d(h, "weekdaysShort", "weekdays", 3);
|
|
563
|
+
}, longDateFormat: function(u) {
|
|
564
|
+
return c(h.$locale(), u);
|
|
565
565
|
}, meridiem: this.$locale().meridiem, ordinal: this.$locale().ordinal };
|
|
566
566
|
};
|
|
567
567
|
a.localeData = function() {
|
|
568
568
|
return p.bind(this)();
|
|
569
569
|
}, r.localeData = function() {
|
|
570
|
-
var
|
|
570
|
+
var h = l();
|
|
571
571
|
return { firstDayOfWeek: function() {
|
|
572
|
-
return
|
|
572
|
+
return h.weekStart || 0;
|
|
573
573
|
}, weekdays: function() {
|
|
574
574
|
return r.weekdays();
|
|
575
575
|
}, weekdaysShort: function() {
|
|
@@ -580,19 +580,19 @@ function Fd() {
|
|
|
580
580
|
return r.months();
|
|
581
581
|
}, monthsShort: function() {
|
|
582
582
|
return r.monthsShort();
|
|
583
|
-
}, longDateFormat: function(
|
|
584
|
-
return c(
|
|
585
|
-
}, meridiem:
|
|
583
|
+
}, longDateFormat: function(u) {
|
|
584
|
+
return c(h, u);
|
|
585
|
+
}, meridiem: h.meridiem, ordinal: h.ordinal };
|
|
586
586
|
}, r.months = function() {
|
|
587
587
|
return d(l(), "months");
|
|
588
588
|
}, r.monthsShort = function() {
|
|
589
589
|
return d(l(), "monthsShort", "months", 3);
|
|
590
|
-
}, r.weekdays = function(
|
|
591
|
-
return d(l(), "weekdays", null, null,
|
|
592
|
-
}, r.weekdaysShort = function(
|
|
593
|
-
return d(l(), "weekdaysShort", "weekdays", 3,
|
|
594
|
-
}, r.weekdaysMin = function(
|
|
595
|
-
return d(l(), "weekdaysMin", "weekdays", 2,
|
|
590
|
+
}, r.weekdays = function(h) {
|
|
591
|
+
return d(l(), "weekdays", null, null, h);
|
|
592
|
+
}, r.weekdaysShort = function(h) {
|
|
593
|
+
return d(l(), "weekdaysShort", "weekdays", 3, h);
|
|
594
|
+
}, r.weekdaysMin = function(h) {
|
|
595
|
+
return d(l(), "weekdaysMin", "weekdays", 2, h);
|
|
596
596
|
};
|
|
597
597
|
};
|
|
598
598
|
});
|
|
@@ -611,10 +611,10 @@ function Ud() {
|
|
|
611
611
|
var s = r.prototype, d = s.format;
|
|
612
612
|
a.en.formats = i, s.format = function(l) {
|
|
613
613
|
l === void 0 && (l = "YYYY-MM-DDTHH:mm:ssZ");
|
|
614
|
-
var c = this.$locale().formats, p = function(
|
|
615
|
-
return
|
|
614
|
+
var c = this.$locale().formats, p = function(h, u) {
|
|
615
|
+
return h.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, function(g, v, w) {
|
|
616
616
|
var y = w && w.toUpperCase();
|
|
617
|
-
return v ||
|
|
617
|
+
return v || u[w] || i[w] || u[y].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(_, S, A) {
|
|
618
618
|
return S || A.slice(1);
|
|
619
619
|
});
|
|
620
620
|
});
|
|
@@ -990,41 +990,41 @@ class kr extends Br {
|
|
|
990
990
|
usedParams: this.getUsedParamsDetails(i)
|
|
991
991
|
} : s;
|
|
992
992
|
}
|
|
993
|
-
const
|
|
994
|
-
let
|
|
995
|
-
const g =
|
|
996
|
-
if (S &&
|
|
993
|
+
const h = this.resolve(t, i);
|
|
994
|
+
let u = h && h.res;
|
|
995
|
+
const g = h && h.usedKey || s, v = h && h.exactUsedKey || s, w = Object.prototype.toString.apply(u), y = ["[object Number]", "[object Function]", "[object RegExp]"], _ = i.joinArrays !== void 0 ? i.joinArrays : this.options.joinArrays, S = !this.i18nFormat || this.i18nFormat.handleAsObject, A = !Q(u) && typeof u != "boolean" && typeof u != "number";
|
|
996
|
+
if (S && u && A && y.indexOf(w) < 0 && !(Q(_) && Array.isArray(u))) {
|
|
997
997
|
if (!i.returnObjects && !this.options.returnObjects) {
|
|
998
998
|
this.options.returnedObjectHandler || this.logger.warn("accessing an object - but returnObjects options is not enabled!");
|
|
999
|
-
const M = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(g,
|
|
999
|
+
const M = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(g, u, U(x({}, i), {
|
|
1000
1000
|
ns: d
|
|
1001
1001
|
})) : `key '${s} (${this.language})' returned an object instead of string.`;
|
|
1002
|
-
return r ? (
|
|
1002
|
+
return r ? (h.res = M, h.usedParams = this.getUsedParamsDetails(i), h) : M;
|
|
1003
1003
|
}
|
|
1004
1004
|
if (a) {
|
|
1005
|
-
const M = Array.isArray(
|
|
1006
|
-
for (const et in
|
|
1007
|
-
if (Object.prototype.hasOwnProperty.call(
|
|
1005
|
+
const M = Array.isArray(u), E = M ? [] : {}, tt = M ? v : g;
|
|
1006
|
+
for (const et in u)
|
|
1007
|
+
if (Object.prototype.hasOwnProperty.call(u, et)) {
|
|
1008
1008
|
const ct = `${tt}${a}${et}`;
|
|
1009
|
-
E[et] = this.translate(ct,
|
|
1009
|
+
E[et] = this.translate(ct, U(x({}, i), {
|
|
1010
1010
|
joinArrays: !1,
|
|
1011
1011
|
ns: d
|
|
1012
|
-
})), E[et] === ct && (E[et] =
|
|
1012
|
+
})), E[et] === ct && (E[et] = u[et]);
|
|
1013
1013
|
}
|
|
1014
|
-
|
|
1014
|
+
u = E;
|
|
1015
1015
|
}
|
|
1016
|
-
} else if (S && Q(_) && Array.isArray(
|
|
1017
|
-
|
|
1016
|
+
} else if (S && Q(_) && Array.isArray(u))
|
|
1017
|
+
u = u.join(_), u && (u = this.extendTranslation(u, t, i, o));
|
|
1018
1018
|
else {
|
|
1019
1019
|
let M = !1, E = !1;
|
|
1020
1020
|
const tt = i.count !== void 0 && !Q(i.count), et = kr.hasDefaultValue(i), ct = tt ? this.pluralResolver.getSuffix(c, i.count, i) : "", ht = i.ordinal && tt ? this.pluralResolver.getSuffix(c, i.count, {
|
|
1021
1021
|
ordinal: !1
|
|
1022
1022
|
}) : "", it = tt && !i.ordinal && i.count === 0 && this.pluralResolver.shouldUseIntlApi(), N = it && i[`defaultValue${this.options.pluralSeparator}zero`] || i[`defaultValue${ct}`] || i[`defaultValue${ht}`] || i.defaultValue;
|
|
1023
|
-
!this.isValidLookup(
|
|
1024
|
-
const mt = (i.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && E ? void 0 :
|
|
1023
|
+
!this.isValidLookup(u) && et && (M = !0, u = N), this.isValidLookup(u) || (E = !0, u = s);
|
|
1024
|
+
const mt = (i.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && E ? void 0 : u, B = et && N !== u && this.options.updateMissing;
|
|
1025
1025
|
if (E || M || B) {
|
|
1026
|
-
if (this.logger.log(B ? "updateKey" : "missingKey", c, l, s, B ? N :
|
|
1027
|
-
const C = this.resolve(s,
|
|
1026
|
+
if (this.logger.log(B ? "updateKey" : "missingKey", c, l, s, B ? N : u), a) {
|
|
1027
|
+
const C = this.resolve(s, U(x({}, i), {
|
|
1028
1028
|
keySeparator: !1
|
|
1029
1029
|
}));
|
|
1030
1030
|
C && C.res && this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.");
|
|
@@ -1036,8 +1036,8 @@ class kr extends Br {
|
|
|
1036
1036
|
L.push(D[C]);
|
|
1037
1037
|
else this.options.saveMissingTo === "all" ? L = this.languageUtils.toResolveHierarchy(i.lng || this.language) : L.push(i.lng || this.language);
|
|
1038
1038
|
const V = (C, F, H) => {
|
|
1039
|
-
const
|
|
1040
|
-
this.options.missingKeyHandler ? this.options.missingKeyHandler(C, l, F,
|
|
1039
|
+
const K = et && H !== u ? H : mt;
|
|
1040
|
+
this.options.missingKeyHandler ? this.options.missingKeyHandler(C, l, F, K, B, i) : this.backendConnector && this.backendConnector.saveMissing && this.backendConnector.saveMissing(C, l, F, K, B, i), this.emit("missingKey", C, l, F, u);
|
|
1041
1041
|
};
|
|
1042
1042
|
this.options.saveMissing && (this.options.saveMissingPlurals && tt ? L.forEach((C) => {
|
|
1043
1043
|
const F = this.pluralResolver.getSuffixes(C, i);
|
|
@@ -1046,9 +1046,9 @@ class kr extends Br {
|
|
|
1046
1046
|
});
|
|
1047
1047
|
}) : V(L, s, N));
|
|
1048
1048
|
}
|
|
1049
|
-
|
|
1049
|
+
u = this.extendTranslation(u, t, i, h, o), E && u === s && this.options.appendNamespaceToMissingKey && (u = `${l}:${s}`), (E || M) && this.options.parseMissingKeyHandler && (this.options.compatibilityAPI !== "v1" ? u = this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey ? `${l}:${s}` : s, M ? u : void 0) : u = this.options.parseMissingKeyHandler(u));
|
|
1050
1050
|
}
|
|
1051
|
-
return r ? (
|
|
1051
|
+
return r ? (h.res = u, h.usedParams = this.getUsedParamsDetails(i), h) : u;
|
|
1052
1052
|
}
|
|
1053
1053
|
extendTranslation(t, i, o, r, a) {
|
|
1054
1054
|
var s = this;
|
|
@@ -1057,29 +1057,29 @@ class kr extends Br {
|
|
|
1057
1057
|
resolved: r
|
|
1058
1058
|
});
|
|
1059
1059
|
else if (!o.skipInterpolation) {
|
|
1060
|
-
o.interpolation && this.interpolator.init(
|
|
1060
|
+
o.interpolation && this.interpolator.init(U(x({}, o), {
|
|
1061
1061
|
interpolation: x(x({}, this.options.interpolation), o.interpolation)
|
|
1062
1062
|
}));
|
|
1063
1063
|
const c = Q(t) && (o && o.interpolation && o.interpolation.skipOnVariables !== void 0 ? o.interpolation.skipOnVariables : this.options.interpolation.skipOnVariables);
|
|
1064
1064
|
let p;
|
|
1065
1065
|
if (c) {
|
|
1066
|
-
const
|
|
1067
|
-
p =
|
|
1066
|
+
const u = t.match(this.interpolator.nestingRegexp);
|
|
1067
|
+
p = u && u.length;
|
|
1068
1068
|
}
|
|
1069
|
-
let
|
|
1070
|
-
if (this.options.interpolation.defaultVariables && (
|
|
1071
|
-
const
|
|
1069
|
+
let h = o.replace && !Q(o.replace) ? o.replace : o;
|
|
1070
|
+
if (this.options.interpolation.defaultVariables && (h = x(x({}, this.options.interpolation.defaultVariables), h)), t = this.interpolator.interpolate(t, h, o.lng || this.language || r.usedLng, o), c) {
|
|
1071
|
+
const u = t.match(this.interpolator.nestingRegexp), g = u && u.length;
|
|
1072
1072
|
p < g && (o.nest = !1);
|
|
1073
1073
|
}
|
|
1074
1074
|
!o.lng && this.options.compatibilityAPI !== "v1" && r && r.res && (o.lng = this.language || r.usedLng), o.nest !== !1 && (t = this.interpolator.nest(t, function() {
|
|
1075
|
-
for (var
|
|
1075
|
+
for (var u = arguments.length, g = new Array(u), v = 0; v < u; v++)
|
|
1076
1076
|
g[v] = arguments[v];
|
|
1077
1077
|
return a && a[0] === g[0] && !o.context ? (s.logger.warn(`It seems you are nesting recursively key: ${g[0]} in key: ${i[0]}`), null) : s.translate(...g, i);
|
|
1078
1078
|
}, o)), o.interpolation && this.interpolator.reset();
|
|
1079
1079
|
}
|
|
1080
1080
|
const d = o.postProcess || this.options.postProcess, l = Q(d) ? [d] : d;
|
|
1081
1081
|
return t != null && l && l.length && o.applyPostProcessor !== !1 && (t = fn.handle(l, t, i, this.options && this.options.postProcessPassResolved ? x({
|
|
1082
|
-
i18nResolved:
|
|
1082
|
+
i18nResolved: U(x({}, r), {
|
|
1083
1083
|
usedParams: this.getUsedParamsDetails(o)
|
|
1084
1084
|
})
|
|
1085
1085
|
}, o) : o, this)), t;
|
|
@@ -1090,10 +1090,10 @@ class kr extends Br {
|
|
|
1090
1090
|
if (this.isValidLookup(o)) return;
|
|
1091
1091
|
const c = this.extractFromKey(l, i), p = c.key;
|
|
1092
1092
|
r = p;
|
|
1093
|
-
let
|
|
1094
|
-
this.options.fallbackNS && (
|
|
1095
|
-
const
|
|
1096
|
-
|
|
1093
|
+
let h = c.namespaces;
|
|
1094
|
+
this.options.fallbackNS && (h = h.concat(this.options.fallbackNS));
|
|
1095
|
+
const u = i.count !== void 0 && !Q(i.count), g = u && !i.ordinal && i.count === 0 && this.pluralResolver.shouldUseIntlApi(), v = i.context !== void 0 && (Q(i.context) || typeof i.context == "number") && i.context !== "", w = i.lngs ? i.lngs : this.languageUtils.toResolveHierarchy(i.lng || this.language, i.fallbackLng);
|
|
1096
|
+
h.forEach((y) => {
|
|
1097
1097
|
this.isValidLookup(o) || (d = y, !Ps[`${w[0]}-${y}`] && this.utils && this.utils.hasLoadedNamespace && !this.utils.hasLoadedNamespace(d) && (Ps[`${w[0]}-${y}`] = !0, this.logger.warn(`key "${r}" for languages "${w.join(", ")}" won't get resolved as namespace "${d}" was not yet loaded`, "This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")), w.forEach((_) => {
|
|
1098
1098
|
if (this.isValidLookup(o)) return;
|
|
1099
1099
|
s = _;
|
|
@@ -1102,11 +1102,11 @@ class kr extends Br {
|
|
|
1102
1102
|
this.i18nFormat.addLookupKeys(S, p, _, y, i);
|
|
1103
1103
|
else {
|
|
1104
1104
|
let M;
|
|
1105
|
-
|
|
1105
|
+
u && (M = this.pluralResolver.getSuffix(_, i.count, i));
|
|
1106
1106
|
const E = `${this.options.pluralSeparator}zero`, tt = `${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;
|
|
1107
|
-
if (
|
|
1107
|
+
if (u && (S.push(p + M), i.ordinal && M.indexOf(tt) === 0 && S.push(p + M.replace(tt, this.options.pluralSeparator)), g && S.push(p + E)), v) {
|
|
1108
1108
|
const et = `${p}${this.options.contextSeparator}${i.context}`;
|
|
1109
|
-
S.push(et),
|
|
1109
|
+
S.push(et), u && (S.push(et + M), i.ordinal && M.indexOf(tt) === 0 && S.push(et + M.replace(tt, this.options.pluralSeparator)), g && S.push(et + E));
|
|
1110
1110
|
}
|
|
1111
1111
|
}
|
|
1112
1112
|
let A;
|
|
@@ -1436,8 +1436,8 @@ class gl {
|
|
|
1436
1436
|
suffixEscaped: l,
|
|
1437
1437
|
formatSeparator: c,
|
|
1438
1438
|
unescapeSuffix: p,
|
|
1439
|
-
unescapePrefix:
|
|
1440
|
-
nestingPrefix:
|
|
1439
|
+
unescapePrefix: h,
|
|
1440
|
+
nestingPrefix: u,
|
|
1441
1441
|
nestingPrefixEscaped: g,
|
|
1442
1442
|
nestingSuffix: v,
|
|
1443
1443
|
nestingSuffixEscaped: w,
|
|
@@ -1445,7 +1445,7 @@ class gl {
|
|
|
1445
1445
|
maxReplaces: _,
|
|
1446
1446
|
alwaysFormat: S
|
|
1447
1447
|
} = t.interpolation;
|
|
1448
|
-
this.escape = i !== void 0 ? i : il, this.escapeValue = o !== void 0 ? o : !0, this.useRawValueToEscape = r !== void 0 ? r : !1, this.prefix = a ? Wi(a) : s || "{{", this.suffix = d ? Wi(d) : l || "}}", this.formatSeparator = c || ",", this.unescapePrefix = p ? "" :
|
|
1448
|
+
this.escape = i !== void 0 ? i : il, this.escapeValue = o !== void 0 ? o : !0, this.useRawValueToEscape = r !== void 0 ? r : !1, this.prefix = a ? Wi(a) : s || "{{", this.suffix = d ? Wi(d) : l || "}}", this.formatSeparator = c || ",", this.unescapePrefix = p ? "" : h || "-", this.unescapeSuffix = this.unescapePrefix ? "" : p || "", this.nestingPrefix = u ? Wi(u) : g || Wi("$t("), this.nestingSuffix = v ? Wi(v) : w || Wi(")"), this.nestingOptionsSeparator = y || ",", this.maxReplaces = _ || 1e3, this.alwaysFormat = S !== void 0 ? S : !1, this.resetRegExp();
|
|
1449
1449
|
}
|
|
1450
1450
|
reset() {
|
|
1451
1451
|
this.options && this.init(this.options);
|
|
@@ -1459,17 +1459,17 @@ class gl {
|
|
|
1459
1459
|
const l = this.options && this.options.interpolation && this.options.interpolation.defaultVariables || {}, c = (g) => {
|
|
1460
1460
|
if (g.indexOf(this.formatSeparator) < 0) {
|
|
1461
1461
|
const _ = Ms(i, l, g, this.options.keySeparator, this.options.ignoreJSONStructure);
|
|
1462
|
-
return this.alwaysFormat ? this.format(_, void 0, o,
|
|
1462
|
+
return this.alwaysFormat ? this.format(_, void 0, o, U(x(x({}, r), i), {
|
|
1463
1463
|
interpolationkey: g
|
|
1464
1464
|
})) : _;
|
|
1465
1465
|
}
|
|
1466
1466
|
const v = g.split(this.formatSeparator), w = v.shift().trim(), y = v.join(this.formatSeparator).trim();
|
|
1467
|
-
return this.format(Ms(i, l, w, this.options.keySeparator, this.options.ignoreJSONStructure), y, o,
|
|
1467
|
+
return this.format(Ms(i, l, w, this.options.keySeparator, this.options.ignoreJSONStructure), y, o, U(x(x({}, r), i), {
|
|
1468
1468
|
interpolationkey: w
|
|
1469
1469
|
}));
|
|
1470
1470
|
};
|
|
1471
1471
|
this.resetRegExp();
|
|
1472
|
-
const p = r && r.missingInterpolationHandler || this.options.missingInterpolationHandler,
|
|
1472
|
+
const p = r && r.missingInterpolationHandler || this.options.missingInterpolationHandler, h = r && r.interpolation && r.interpolation.skipOnVariables !== void 0 ? r.interpolation.skipOnVariables : this.options.interpolation.skipOnVariables;
|
|
1473
1473
|
return [{
|
|
1474
1474
|
regex: this.regexpUnescape,
|
|
1475
1475
|
safeValue: (g) => ha(g)
|
|
@@ -1485,14 +1485,14 @@ class gl {
|
|
|
1485
1485
|
s = Q(y) ? y : "";
|
|
1486
1486
|
} else if (r && Object.prototype.hasOwnProperty.call(r, v))
|
|
1487
1487
|
s = "";
|
|
1488
|
-
else if (
|
|
1488
|
+
else if (h) {
|
|
1489
1489
|
s = a[0];
|
|
1490
1490
|
continue;
|
|
1491
1491
|
} else
|
|
1492
1492
|
this.logger.warn(`missed to pass in variable ${v} for interpolating ${t}`), s = "";
|
|
1493
1493
|
else !Q(s) && !this.useRawValueToEscape && (s = Ds(s));
|
|
1494
1494
|
const w = g.safeValue(s);
|
|
1495
|
-
if (t = t.replace(a[0], w),
|
|
1495
|
+
if (t = t.replace(a[0], w), h ? (g.regex.lastIndex += s.length, g.regex.lastIndex -= a[0].length) : g.regex.lastIndex = 0, d++, d >= this.maxReplaces)
|
|
1496
1496
|
break;
|
|
1497
1497
|
}
|
|
1498
1498
|
}), t;
|
|
@@ -1502,15 +1502,15 @@ class gl {
|
|
|
1502
1502
|
const d = (l, c) => {
|
|
1503
1503
|
const p = this.nestingOptionsSeparator;
|
|
1504
1504
|
if (l.indexOf(p) < 0) return l;
|
|
1505
|
-
const
|
|
1506
|
-
let
|
|
1507
|
-
l =
|
|
1508
|
-
const g =
|
|
1509
|
-
(g && g.length % 2 === 0 && !v || v.length % 2 !== 0) && (
|
|
1505
|
+
const h = l.split(new RegExp(`${p}[ ]*{`));
|
|
1506
|
+
let u = `{${h[1]}`;
|
|
1507
|
+
l = h[0], u = this.interpolate(u, s);
|
|
1508
|
+
const g = u.match(/'/g), v = u.match(/"/g);
|
|
1509
|
+
(g && g.length % 2 === 0 && !v || v.length % 2 !== 0) && (u = u.replace(/'/g, '"'));
|
|
1510
1510
|
try {
|
|
1511
|
-
s = JSON.parse(
|
|
1511
|
+
s = JSON.parse(u), c && (s = x(x({}, c), s));
|
|
1512
1512
|
} catch (w) {
|
|
1513
|
-
return this.logger.warn(`failed parsing options string in nesting for key ${l}`, w), `${l}${p}${
|
|
1513
|
+
return this.logger.warn(`failed parsing options string in nesting for key ${l}`, w), `${l}${p}${u}`;
|
|
1514
1514
|
}
|
|
1515
1515
|
return s.defaultValue && s.defaultValue.indexOf(this.prefix) > -1 && delete s.defaultValue, l;
|
|
1516
1516
|
};
|
|
@@ -1519,11 +1519,11 @@ class gl {
|
|
|
1519
1519
|
s = x({}, o), s = s.replace && !Q(s.replace) ? s.replace : s, s.applyPostProcessor = !1, delete s.defaultValue;
|
|
1520
1520
|
let c = !1;
|
|
1521
1521
|
if (r[0].indexOf(this.formatSeparator) !== -1 && !/{.*}/.test(r[1])) {
|
|
1522
|
-
const p = r[1].split(this.formatSeparator).map((
|
|
1522
|
+
const p = r[1].split(this.formatSeparator).map((h) => h.trim());
|
|
1523
1523
|
r[1] = p.shift(), l = p, c = !0;
|
|
1524
1524
|
}
|
|
1525
1525
|
if (a = i(d.call(this, r[1].trim(), s), s), a && r[0] === t && !Q(a)) return a;
|
|
1526
|
-
Q(a) || (a = Ds(a)), a || (this.logger.warn(`missed to resolve ${r[1]} for nesting ${t}`), a = ""), c && (a = l.reduce((p,
|
|
1526
|
+
Q(a) || (a = Ds(a)), a || (this.logger.warn(`missed to resolve ${r[1]} for nesting ${t}`), a = ""), c && (a = l.reduce((p, h) => this.format(p, h, o.lng, U(x({}, o), {
|
|
1527
1527
|
interpolationkey: r[1].trim()
|
|
1528
1528
|
})), a.trim())), t = t.replace(r[0], a), this.regexp.lastIndex = 0;
|
|
1529
1529
|
}
|
|
@@ -1552,7 +1552,7 @@ const bl = (e) => {
|
|
|
1552
1552
|
const t = {};
|
|
1553
1553
|
return (i, o, r) => {
|
|
1554
1554
|
let a = r;
|
|
1555
|
-
r && r.interpolationkey && r.formatParams && r.formatParams[r.interpolationkey] && r[r.interpolationkey] && (a =
|
|
1555
|
+
r && r.interpolationkey && r.formatParams && r.formatParams[r.interpolationkey] && r[r.interpolationkey] && (a = U(x({}, a), {
|
|
1556
1556
|
[r.interpolationkey]: void 0
|
|
1557
1557
|
}));
|
|
1558
1558
|
const s = o + JSON.stringify(a);
|
|
@@ -1569,7 +1569,7 @@ class fl {
|
|
|
1569
1569
|
return (a) => r.format(a);
|
|
1570
1570
|
}),
|
|
1571
1571
|
currency: Yi((i, o) => {
|
|
1572
|
-
const r = new Intl.NumberFormat(i,
|
|
1572
|
+
const r = new Intl.NumberFormat(i, U(x({}, o), {
|
|
1573
1573
|
style: "currency"
|
|
1574
1574
|
}));
|
|
1575
1575
|
return (a) => r.format(a);
|
|
@@ -1613,14 +1613,14 @@ class fl {
|
|
|
1613
1613
|
formatOptions: p
|
|
1614
1614
|
} = bl(l);
|
|
1615
1615
|
if (this.formats[c]) {
|
|
1616
|
-
let
|
|
1616
|
+
let h = d;
|
|
1617
1617
|
try {
|
|
1618
|
-
const
|
|
1619
|
-
|
|
1620
|
-
} catch (
|
|
1621
|
-
this.logger.warn(
|
|
1618
|
+
const u = r && r.formatParams && r.formatParams[r.interpolationkey] || {}, g = u.locale || u.lng || r.locale || r.lng || o;
|
|
1619
|
+
h = this.formats[c](d, g, x(x(x({}, p), r), u));
|
|
1620
|
+
} catch (u) {
|
|
1621
|
+
this.logger.warn(u);
|
|
1622
1622
|
}
|
|
1623
|
-
return
|
|
1623
|
+
return h;
|
|
1624
1624
|
} else
|
|
1625
1625
|
this.logger.warn(`there was no format function for ${c}`);
|
|
1626
1626
|
return d;
|
|
@@ -1639,9 +1639,9 @@ class vl extends Br {
|
|
|
1639
1639
|
const a = {}, s = {}, d = {}, l = {};
|
|
1640
1640
|
return t.forEach((c) => {
|
|
1641
1641
|
let p = !0;
|
|
1642
|
-
i.forEach((
|
|
1643
|
-
const
|
|
1644
|
-
!o.reload && this.store.hasResourceBundle(c,
|
|
1642
|
+
i.forEach((h) => {
|
|
1643
|
+
const u = `${c}|${h}`;
|
|
1644
|
+
!o.reload && this.store.hasResourceBundle(c, h) ? this.state[u] = 2 : this.state[u] < 0 || (this.state[u] === 1 ? s[u] === void 0 && (s[u] = !0) : (this.state[u] = 1, p = !1, s[u] === void 0 && (s[u] = !0), a[u] === void 0 && (a[u] = !0), l[h] === void 0 && (l[h] = !0)));
|
|
1645
1645
|
}), p || (d[c] = !0);
|
|
1646
1646
|
}), (Object.keys(a).length || Object.keys(s).length) && this.queue.push({
|
|
1647
1647
|
pending: s,
|
|
@@ -1666,8 +1666,8 @@ class vl extends Br {
|
|
|
1666
1666
|
Qd(l.loaded, [a], s), ml(l, t), i && l.errors.push(i), l.pendingCount === 0 && !l.done && (Object.keys(l.loaded).forEach((c) => {
|
|
1667
1667
|
d[c] || (d[c] = {});
|
|
1668
1668
|
const p = l.loaded[c];
|
|
1669
|
-
p.length && p.forEach((
|
|
1670
|
-
d[c][
|
|
1669
|
+
p.length && p.forEach((h) => {
|
|
1670
|
+
d[c][h] === void 0 && (d[c][h] = !0);
|
|
1671
1671
|
});
|
|
1672
1672
|
}), l.done = !0, l.errors.length ? l.callback(l.errors) : l.callback());
|
|
1673
1673
|
}), this.emit("loaded", d), this.queue = this.queue.filter((l) => !l.done);
|
|
@@ -1689,8 +1689,8 @@ class vl extends Br {
|
|
|
1689
1689
|
this.readingCalls++;
|
|
1690
1690
|
const d = (c, p) => {
|
|
1691
1691
|
if (this.readingCalls--, this.waitingReads.length > 0) {
|
|
1692
|
-
const
|
|
1693
|
-
this.read(
|
|
1692
|
+
const h = this.waitingReads.shift();
|
|
1693
|
+
this.read(h.lng, h.ns, h.fcName, h.tried, h.wait, h.callback);
|
|
1694
1694
|
}
|
|
1695
1695
|
if (c && p && r < this.maxRetries) {
|
|
1696
1696
|
setTimeout(() => {
|
|
@@ -1747,13 +1747,13 @@ class vl extends Br {
|
|
|
1747
1747
|
}
|
|
1748
1748
|
if (!(o == null || o === "")) {
|
|
1749
1749
|
if (this.backend && this.backend.create) {
|
|
1750
|
-
const l =
|
|
1750
|
+
const l = U(x({}, s), {
|
|
1751
1751
|
isUpdate: a
|
|
1752
1752
|
}), c = this.backend.create.bind(this.backend);
|
|
1753
1753
|
if (c.length < 6)
|
|
1754
1754
|
try {
|
|
1755
1755
|
let p;
|
|
1756
|
-
c.length === 5 ? p = c(t, i, o, r, l) : p = c(t, i, o, r), p && typeof p.then == "function" ? p.then((
|
|
1756
|
+
c.length === 5 ? p = c(t, i, o, r, l) : p = c(t, i, o, r), p && typeof p.then == "function" ? p.then((h) => d(null, h)).catch(d) : d(null, p);
|
|
1757
1757
|
} catch (p) {
|
|
1758
1758
|
d(p);
|
|
1759
1759
|
}
|
|
@@ -1850,20 +1850,20 @@ class Lo extends Br {
|
|
|
1850
1850
|
this.modules.logger ? He.init(a(this.modules.logger), this.options) : He.init(null, this.options);
|
|
1851
1851
|
let p;
|
|
1852
1852
|
this.modules.formatter ? p = this.modules.formatter : typeof Intl != "undefined" && (p = fl);
|
|
1853
|
-
const
|
|
1853
|
+
const h = new Es(this.options);
|
|
1854
1854
|
this.store = new As(this.options.resources, this.options);
|
|
1855
|
-
const
|
|
1856
|
-
|
|
1855
|
+
const u = this.services;
|
|
1856
|
+
u.logger = He, u.resourceStore = this.store, u.languageUtils = h, u.pluralResolver = new hl(h, {
|
|
1857
1857
|
prepend: this.options.pluralSeparator,
|
|
1858
1858
|
compatibilityJSON: this.options.compatibilityJSON,
|
|
1859
1859
|
simplifyPluralSuffix: this.options.simplifyPluralSuffix
|
|
1860
|
-
}), p && (!this.options.interpolation.format || this.options.interpolation.format === r.interpolation.format) && (
|
|
1860
|
+
}), p && (!this.options.interpolation.format || this.options.interpolation.format === r.interpolation.format) && (u.formatter = a(p), u.formatter.init(u, this.options), this.options.interpolation.format = u.formatter.format.bind(u.formatter)), u.interpolator = new gl(this.options), u.utils = {
|
|
1861
1861
|
hasLoadedNamespace: this.hasLoadedNamespace.bind(this)
|
|
1862
|
-
},
|
|
1862
|
+
}, u.backendConnector = new vl(a(this.modules.backend), u.resourceStore, u, this.options), u.backendConnector.on("*", function(g) {
|
|
1863
1863
|
for (var v = arguments.length, w = new Array(v > 1 ? v - 1 : 0), y = 1; y < v; y++)
|
|
1864
1864
|
w[y - 1] = arguments[y];
|
|
1865
1865
|
t.emit(g, ...w);
|
|
1866
|
-
}), this.modules.languageDetector && (
|
|
1866
|
+
}), this.modules.languageDetector && (u.languageDetector = a(this.modules.languageDetector), u.languageDetector.init && u.languageDetector.init(u, this.options.detection, this.options)), this.modules.i18nFormat && (u.i18nFormat = a(this.modules.i18nFormat), u.i18nFormat.init && u.i18nFormat.init(this)), this.translator = new kr(this.services, this.options), this.translator.on("*", function(g) {
|
|
1867
1867
|
for (var v = arguments.length, w = new Array(v > 1 ? v - 1 : 0), y = 1; y < v; y++)
|
|
1868
1868
|
w[y - 1] = arguments[y];
|
|
1869
1869
|
t.emit(g, ...w);
|
|
@@ -1885,8 +1885,8 @@ class Lo extends Br {
|
|
|
1885
1885
|
};
|
|
1886
1886
|
});
|
|
1887
1887
|
const l = wo(), c = () => {
|
|
1888
|
-
const p = (
|
|
1889
|
-
this.isInitializing = !1, this.isInitialized && !this.initializedStoreOnce && this.logger.warn("init: i18next is already initialized. You should call init just once!"), this.isInitialized = !0, this.options.isClone || this.logger.log("initialized", this.options), this.emit("initialized", this.options), l.resolve(
|
|
1888
|
+
const p = (h, u) => {
|
|
1889
|
+
this.isInitializing = !1, this.isInitialized && !this.initializedStoreOnce && this.logger.warn("init: i18next is already initialized. You should call init just once!"), this.isInitialized = !0, this.options.isClone || this.logger.log("initialized", this.options), this.emit("initialized", this.options), l.resolve(u), o(h, u);
|
|
1890
1890
|
};
|
|
1891
1891
|
if (this.languages && this.options.compatibilityAPI !== "v1" && !this.isInitialized) return p(null, this.t.bind(this));
|
|
1892
1892
|
this.changeLanguage(this.options.lng, p);
|
|
@@ -1958,15 +1958,15 @@ class Lo extends Br {
|
|
|
1958
1958
|
const a = function(s, d) {
|
|
1959
1959
|
let l;
|
|
1960
1960
|
if (typeof d != "object") {
|
|
1961
|
-
for (var c = arguments.length, p = new Array(c > 2 ? c - 2 : 0),
|
|
1962
|
-
p[
|
|
1961
|
+
for (var c = arguments.length, p = new Array(c > 2 ? c - 2 : 0), h = 2; h < c; h++)
|
|
1962
|
+
p[h - 2] = arguments[h];
|
|
1963
1963
|
l = r.options.overloadTranslationOptionHandler([s, d].concat(p));
|
|
1964
1964
|
} else
|
|
1965
1965
|
l = x({}, d);
|
|
1966
1966
|
l.lng = l.lng || a.lng, l.lngs = l.lngs || a.lngs, l.ns = l.ns || a.ns, l.keyPrefix !== "" && (l.keyPrefix = l.keyPrefix || o || a.keyPrefix);
|
|
1967
|
-
const
|
|
1967
|
+
const u = r.options.keySeparator || ".";
|
|
1968
1968
|
let g;
|
|
1969
|
-
return l.keyPrefix && Array.isArray(s) ? g = s.map((v) => `${l.keyPrefix}${
|
|
1969
|
+
return l.keyPrefix && Array.isArray(s) ? g = s.map((v) => `${l.keyPrefix}${u}${v}`) : g = l.keyPrefix ? `${l.keyPrefix}${u}${s}` : s, r.t(g, l);
|
|
1970
1970
|
};
|
|
1971
1971
|
return Q(t) ? a.lng = t : a.lngs = t, a.ns = i, a.keyPrefix = o, a;
|
|
1972
1972
|
}
|
|
@@ -2026,7 +2026,7 @@ class Lo extends Br {
|
|
|
2026
2026
|
let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : ir;
|
|
2027
2027
|
const o = t.forkResourceStore;
|
|
2028
2028
|
o && delete t.forkResourceStore;
|
|
2029
|
-
const r =
|
|
2029
|
+
const r = U(x(x({}, this.options), t), {
|
|
2030
2030
|
isClone: !0
|
|
2031
2031
|
}), a = new Lo(r);
|
|
2032
2032
|
return (t.debug !== void 0 || t.prefix !== void 0) && (a.logger = a.logger.clone(t)), ["store", "services", "language"].forEach((d) => {
|
|
@@ -2061,7 +2061,7 @@ _t.reloadResources;
|
|
|
2061
2061
|
_t.use;
|
|
2062
2062
|
_t.changeLanguage;
|
|
2063
2063
|
_t.getFixedT;
|
|
2064
|
-
const
|
|
2064
|
+
const q = _t.t;
|
|
2065
2065
|
_t.exists;
|
|
2066
2066
|
_t.setDefaultNamespace;
|
|
2067
2067
|
_t.hasLoadedNamespace;
|
|
@@ -2769,7 +2769,7 @@ function r0(e) {
|
|
|
2769
2769
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
2770
2770
|
*/
|
|
2771
2771
|
function P(e) {
|
|
2772
|
-
return n(
|
|
2772
|
+
return n(U(x({}, e), { state: !0, attribute: !1 }));
|
|
2773
2773
|
}
|
|
2774
2774
|
/**
|
|
2775
2775
|
* @license
|
|
@@ -3173,7 +3173,7 @@ const _e = (oi = class extends mu {
|
|
|
3173
3173
|
class="accordion__loading"
|
|
3174
3174
|
role="status"
|
|
3175
3175
|
aria-live="polite"
|
|
3176
|
-
aria-label="${(t = this.loadingAriaLabel) != null ? t :
|
|
3176
|
+
aria-label="${(t = this.loadingAriaLabel) != null ? t : q("loading")}">
|
|
3177
3177
|
<dap-ds-icon-loading-spinner size="16"></dap-ds-icon-loading-spinner>
|
|
3178
3178
|
</span>
|
|
3179
3179
|
` : b`
|
|
@@ -3639,7 +3639,7 @@ let je = class extends Pu {
|
|
|
3639
3639
|
}
|
|
3640
3640
|
renderOverflowIndicator(e, t) {
|
|
3641
3641
|
if (e <= 0) return z;
|
|
3642
|
-
const i = this.showTotal ? `+${t - this.max}` : `+${e}`, o = this.overflowLabel ||
|
|
3642
|
+
const i = this.showTotal ? `+${t - this.max}` : `+${e}`, o = this.overflowLabel || q("avatar-group.overflow-label", {
|
|
3643
3643
|
count: e
|
|
3644
3644
|
});
|
|
3645
3645
|
return b`
|
|
@@ -4301,7 +4301,7 @@ var Xu = Object.defineProperty, de = (e, t, i, o) => {
|
|
|
4301
4301
|
const Ur = (e) => {
|
|
4302
4302
|
class t extends e {
|
|
4303
4303
|
constructor() {
|
|
4304
|
-
super(...arguments), this.hideLabel = !1, this.tooltipPlacement = "bottom", this.size = "sm", this.optional = !1, this.optionalLabel =
|
|
4304
|
+
super(...arguments), this.hideLabel = !1, this.tooltipPlacement = "bottom", this.size = "sm", this.optional = !1, this.optionalLabel = q("label.optional"), this.subtle = !1, this.required = !1, this.requiredLabel = "*", this.disabled = !1, this.tooltipAriaLabel = q("label.tooltip");
|
|
4305
4305
|
}
|
|
4306
4306
|
renderLabel(o, r) {
|
|
4307
4307
|
return $` <div class="label-container">
|
|
@@ -4386,22 +4386,22 @@ const Ur = (e) => {
|
|
|
4386
4386
|
var o;
|
|
4387
4387
|
if ((t == null ? void 0 : t.variants) == null) return Zs(e, i == null ? void 0 : i.class, i == null ? void 0 : i.className);
|
|
4388
4388
|
const { variants: r, defaultVariants: a } = t, s = Object.keys(r).map((c) => {
|
|
4389
|
-
const p = i == null ? void 0 : i[c],
|
|
4389
|
+
const p = i == null ? void 0 : i[c], h = a == null ? void 0 : a[c];
|
|
4390
4390
|
if (p === null) return null;
|
|
4391
|
-
const
|
|
4392
|
-
return r[c][
|
|
4391
|
+
const u = Ys(p) || Ys(h);
|
|
4392
|
+
return r[c][u];
|
|
4393
4393
|
}), d = i && Object.entries(i).reduce((c, p) => {
|
|
4394
|
-
let [
|
|
4395
|
-
return
|
|
4394
|
+
let [h, u] = p;
|
|
4395
|
+
return u === void 0 || (c[h] = u), c;
|
|
4396
4396
|
}, {}), l = t == null || (o = t.compoundVariants) === null || o === void 0 ? void 0 : o.reduce((c, p) => {
|
|
4397
|
-
let v = p, { class:
|
|
4397
|
+
let v = p, { class: h, className: u } = v, g = Li(v, ["class", "className"]);
|
|
4398
4398
|
return Object.entries(g).every((w) => {
|
|
4399
4399
|
let [y, _] = w;
|
|
4400
4400
|
return Array.isArray(_) ? _.includes(x(x({}, a), d)[y]) : x(x({}, a), d)[y] === _;
|
|
4401
4401
|
}) ? [
|
|
4402
4402
|
...c,
|
|
4403
|
-
|
|
4404
|
-
|
|
4403
|
+
h,
|
|
4404
|
+
u
|
|
4405
4405
|
] : c;
|
|
4406
4406
|
}, []);
|
|
4407
4407
|
return Zs(e, s, l, i == null ? void 0 : i.class, i == null ? void 0 : i.className);
|
|
@@ -4612,7 +4612,7 @@ let Ot = class extends ge {
|
|
|
4612
4612
|
<slot></slot>
|
|
4613
4613
|
</span>`}
|
|
4614
4614
|
${this.target === "_blank" ? b`<span class="sr-only">
|
|
4615
|
-
${(e = this.targetBlankText) != null ? e :
|
|
4615
|
+
${(e = this.targetBlankText) != null ? e : q("opensInNewTab")}</span
|
|
4616
4616
|
>` : z}
|
|
4617
4617
|
</${yt(this.href ? "a" : "button")}>
|
|
4618
4618
|
`;
|
|
@@ -4625,7 +4625,7 @@ let Ot = class extends ge {
|
|
|
4625
4625
|
<span class="button__spinner" aria-live="polite">
|
|
4626
4626
|
<dap-ds-icon-loading-spinner
|
|
4627
4627
|
size=${this.getLoadingIconSize(this.effectiveSize)}
|
|
4628
|
-
aria-label=${
|
|
4628
|
+
aria-label=${q("loading")}></dap-ds-icon-loading-spinner>
|
|
4629
4629
|
</span>
|
|
4630
4630
|
`;
|
|
4631
4631
|
}
|
|
@@ -4696,7 +4696,7 @@ let Yt = class extends Za(T) {
|
|
|
4696
4696
|
if (this.value) {
|
|
4697
4697
|
const e = Date.now();
|
|
4698
4698
|
if (this._cachedLabel === "" || this._lastLabelUpdate === 0 || this._lastLocale !== this.locale || e - this._lastLabelUpdate > 100) {
|
|
4699
|
-
const t = k(this.value).locale(this.locale).format("LL, dddd"), i = this.today ?
|
|
4699
|
+
const t = k(this.value).locale(this.locale).format("LL, dddd"), i = this.today ? q("calendar.today", { lng: this.locale }) : "", o = this.selected ? q("selected", { lng: this.locale }) : "";
|
|
4700
4700
|
this._cachedLabel = `${t} ${i} ${o}`.trim(), this._lastLabelUpdate = e, this._lastLocale = this.locale;
|
|
4701
4701
|
}
|
|
4702
4702
|
return this._cachedLabel;
|
|
@@ -5093,7 +5093,7 @@ let Lt = class e extends T {
|
|
|
5093
5093
|
variant="brand"
|
|
5094
5094
|
icon="arrow-left-l-line"
|
|
5095
5095
|
@keydown=${this.handleKeyDown}
|
|
5096
|
-
aria-label=${
|
|
5096
|
+
aria-label=${q("calendar.prevMonth", { lng: this.locale })}
|
|
5097
5097
|
@click=${() => {
|
|
5098
5098
|
this.setMonth(this.currentDate.month() - 1);
|
|
5099
5099
|
}}>
|
|
@@ -5108,7 +5108,7 @@ let Lt = class e extends T {
|
|
|
5108
5108
|
@dds-keydown=${this.handleKeyDown}
|
|
5109
5109
|
size="sm"
|
|
5110
5110
|
noAnimation
|
|
5111
|
-
aria-label=${
|
|
5111
|
+
aria-label=${q("calendar.year", { lng: this.locale })}
|
|
5112
5112
|
value=${k(this.currentDate).year()}
|
|
5113
5113
|
@dds-change=${(t) => {
|
|
5114
5114
|
t.preventDefault(), t.stopPropagation(), t.detail.value && !isNaN(parseInt(t.detail.value)) && parseInt(t.detail.value) !== k(this.currentDate).locale(this.locale).year() && (this.currentDate = k(this.currentDate).locale(this.locale).set("year", parseInt(t.detail.value)));
|
|
@@ -5139,7 +5139,7 @@ let Lt = class e extends T {
|
|
|
5139
5139
|
)}
|
|
5140
5140
|
size="sm"
|
|
5141
5141
|
noAnimation
|
|
5142
|
-
aria-label=${
|
|
5142
|
+
aria-label=${q("calendar.month", { lng: this.locale })}
|
|
5143
5143
|
value=${k(this.currentDate).locale(this.locale).month() + 1}
|
|
5144
5144
|
@dds-change=${(t) => {
|
|
5145
5145
|
t.preventDefault(), t.stopPropagation(), t.detail.value && !isNaN(parseInt(t.detail.value)) && parseInt(t.detail.value) !== k(this.currentDate).locale(this.locale).month() + 1 && this.setMonth(parseInt(t.detail.value) - 1);
|
|
@@ -5164,7 +5164,7 @@ let Lt = class e extends T {
|
|
|
5164
5164
|
size="lg"
|
|
5165
5165
|
variant="brand"
|
|
5166
5166
|
icon="arrow-right-l-line"
|
|
5167
|
-
aria-label=${
|
|
5167
|
+
aria-label=${q("calendar.nextMonth", { lng: this.locale })}
|
|
5168
5168
|
@click=${() => {
|
|
5169
5169
|
this.setMonth(
|
|
5170
5170
|
k(this.currentDate).locale(this.locale).month() + 1
|
|
@@ -5450,7 +5450,7 @@ let ye = class extends wt(T) {
|
|
|
5450
5450
|
|
|
5451
5451
|
<slot></slot>
|
|
5452
5452
|
${this.target === "_blank" ? b`<span class="sr-only">
|
|
5453
|
-
${(e = this.targetBlankText) != null ? e :
|
|
5453
|
+
${(e = this.targetBlankText) != null ? e : q("opensInNewTab")}</span
|
|
5454
5454
|
>` : z}
|
|
5455
5455
|
</${yt(this.renderAs)}>` : b`<div
|
|
5456
5456
|
part="base"
|
|
@@ -6041,7 +6041,7 @@ let xe = class extends Hh {
|
|
|
6041
6041
|
* Gets the aria-label for the chip when removable
|
|
6042
6042
|
*/
|
|
6043
6043
|
getRemovableAriaLabel() {
|
|
6044
|
-
const e =
|
|
6044
|
+
const e = q("chip.removable");
|
|
6045
6045
|
return this._slotTextContent ? `${this._slotTextContent}, ${e}` : e;
|
|
6046
6046
|
}
|
|
6047
6047
|
updated(e) {
|
|
@@ -6087,7 +6087,7 @@ let xe = class extends Hh {
|
|
|
6087
6087
|
tabindex="-1"
|
|
6088
6088
|
?disabled=${this.disabled}
|
|
6089
6089
|
size="sm"
|
|
6090
|
-
aria-label=${(t = this.deleteAriaLabel) != null ? t :
|
|
6090
|
+
aria-label=${(t = this.deleteAriaLabel) != null ? t : q("chip.remove")}
|
|
6091
6091
|
@click=${this.handleRemove}></dap-ds-icon-button>` : z}
|
|
6092
6092
|
</dap-ds-stack>
|
|
6093
6093
|
</div>
|
|
@@ -6574,7 +6574,7 @@ let Ei = class extends T {
|
|
|
6574
6574
|
?disabled=${this.disabled}
|
|
6575
6575
|
?readonly=${this.readonly}
|
|
6576
6576
|
autocomplete=${this._index === 0 ? this._ctx.autocomplete : "off"}
|
|
6577
|
-
aria-label=${
|
|
6577
|
+
aria-label=${q("code-puncher.slot.aria-label", {
|
|
6578
6578
|
index: this._index + 1,
|
|
6579
6579
|
count: i
|
|
6580
6580
|
})}
|
|
@@ -6983,7 +6983,7 @@ const Io = class Io extends ge {
|
|
|
6983
6983
|
});
|
|
6984
6984
|
}
|
|
6985
6985
|
get validationMessage() {
|
|
6986
|
-
return
|
|
6986
|
+
return q("form.validationMessage.select");
|
|
6987
6987
|
}
|
|
6988
6988
|
checkValidity() {
|
|
6989
6989
|
return this.required ? this.getValidity() : !0;
|
|
@@ -7093,7 +7093,7 @@ const Io = class Io extends ge {
|
|
|
7093
7093
|
<dap-ds-icon-button
|
|
7094
7094
|
icon="close-line"
|
|
7095
7095
|
data-testid=${this.clearButtonTestId}
|
|
7096
|
-
aria-label=${
|
|
7096
|
+
aria-label=${q("clear")}
|
|
7097
7097
|
?disabled=${this.disabled}
|
|
7098
7098
|
@click=${this.handleClearClick}></dap-ds-icon-button>
|
|
7099
7099
|
</div>`;
|
|
@@ -7122,7 +7122,7 @@ const Io = class Io extends ge {
|
|
|
7122
7122
|
icon="search-line"
|
|
7123
7123
|
data-testid=${this.searchButtonTestId}
|
|
7124
7124
|
iconSize=${this.getInnerIconSize(this.size)}
|
|
7125
|
-
aria-label=${(o = this.searchButtonAriaLabel) != null ? o :
|
|
7125
|
+
aria-label=${(o = this.searchButtonAriaLabel) != null ? o : q("search")}
|
|
7126
7126
|
@click=${this.handleSearchClick}>
|
|
7127
7127
|
</dap-ds-icon-button>`}
|
|
7128
7128
|
</div>` : z;
|
|
@@ -7198,7 +7198,7 @@ const Io = class Io extends ge {
|
|
|
7198
7198
|
role="status"
|
|
7199
7199
|
aria-live="polite"
|
|
7200
7200
|
aria-atomic="true">
|
|
7201
|
-
${this.selectedItems.length > 0 ?
|
|
7201
|
+
${this.selectedItems.length > 0 ? q("combobox.multiselect.selected", {
|
|
7202
7202
|
count: this.selectedItems.length
|
|
7203
7203
|
}) : ""}
|
|
7204
7204
|
</div>` : z}
|
|
@@ -7386,7 +7386,7 @@ function rg(e, t, i, o) {
|
|
|
7386
7386
|
og(e, a);
|
|
7387
7387
|
}
|
|
7388
7388
|
function ag(e, t) {
|
|
7389
|
-
const i = new ig(e,
|
|
7389
|
+
const i = new ig(e, U(x({}, t), {
|
|
7390
7390
|
onSelectionChange: (o, r, a) => {
|
|
7391
7391
|
var s;
|
|
7392
7392
|
rg(e, o, r, a), (s = t.onSelectionChange) == null || s.call(t, o, r, a);
|
|
@@ -7510,7 +7510,7 @@ function on(e, t, i) {
|
|
|
7510
7510
|
reference: o,
|
|
7511
7511
|
floating: r
|
|
7512
7512
|
} = e;
|
|
7513
|
-
const a = ii(t), s = ts(t), d = Qa(s), l = wi(t), c = a === "y", p = o.x + o.width / 2 - r.width / 2,
|
|
7513
|
+
const a = ii(t), s = ts(t), d = Qa(s), l = wi(t), c = a === "y", p = o.x + o.width / 2 - r.width / 2, h = o.y + o.height / 2 - r.height / 2, u = o[d] / 2 - r[d] / 2;
|
|
7514
7514
|
let g;
|
|
7515
7515
|
switch (l) {
|
|
7516
7516
|
case "top":
|
|
@@ -7528,13 +7528,13 @@ function on(e, t, i) {
|
|
|
7528
7528
|
case "right":
|
|
7529
7529
|
g = {
|
|
7530
7530
|
x: o.x + o.width,
|
|
7531
|
-
y:
|
|
7531
|
+
y: h
|
|
7532
7532
|
};
|
|
7533
7533
|
break;
|
|
7534
7534
|
case "left":
|
|
7535
7535
|
g = {
|
|
7536
7536
|
x: o.x - r.width,
|
|
7537
|
-
y:
|
|
7537
|
+
y: h
|
|
7538
7538
|
};
|
|
7539
7539
|
break;
|
|
7540
7540
|
default:
|
|
@@ -7545,10 +7545,10 @@ function on(e, t, i) {
|
|
|
7545
7545
|
}
|
|
7546
7546
|
switch (bo(t)) {
|
|
7547
7547
|
case "start":
|
|
7548
|
-
g[s] -=
|
|
7548
|
+
g[s] -= u * (i && c ? -1 : 1);
|
|
7549
7549
|
break;
|
|
7550
7550
|
case "end":
|
|
7551
|
-
g[s] +=
|
|
7551
|
+
g[s] += u * (i && c ? -1 : 1);
|
|
7552
7552
|
break;
|
|
7553
7553
|
}
|
|
7554
7554
|
return g;
|
|
@@ -7566,8 +7566,8 @@ const fg = (e, t, i) => R(null, null, function* () {
|
|
|
7566
7566
|
strategy: r
|
|
7567
7567
|
}), {
|
|
7568
7568
|
x: p,
|
|
7569
|
-
y:
|
|
7570
|
-
} = on(c, o, l),
|
|
7569
|
+
y: h
|
|
7570
|
+
} = on(c, o, l), u = o, g = {}, v = 0;
|
|
7571
7571
|
for (let w = 0; w < d.length; w++) {
|
|
7572
7572
|
const {
|
|
7573
7573
|
name: y,
|
|
@@ -7579,9 +7579,9 @@ const fg = (e, t, i) => R(null, null, function* () {
|
|
|
7579
7579
|
reset: E
|
|
7580
7580
|
} = yield _({
|
|
7581
7581
|
x: p,
|
|
7582
|
-
y:
|
|
7582
|
+
y: h,
|
|
7583
7583
|
initialPlacement: o,
|
|
7584
|
-
placement:
|
|
7584
|
+
placement: u,
|
|
7585
7585
|
strategy: r,
|
|
7586
7586
|
middlewareData: g,
|
|
7587
7587
|
rects: c,
|
|
@@ -7591,21 +7591,21 @@ const fg = (e, t, i) => R(null, null, function* () {
|
|
|
7591
7591
|
floating: t
|
|
7592
7592
|
}
|
|
7593
7593
|
});
|
|
7594
|
-
p = S != null ? S : p,
|
|
7594
|
+
p = S != null ? S : p, h = A != null ? A : h, g = U(x({}, g), {
|
|
7595
7595
|
[y]: x(x({}, g[y]), M)
|
|
7596
|
-
}), E && v <= 50 && (v++, typeof E == "object" && (E.placement && (
|
|
7596
|
+
}), E && v <= 50 && (v++, typeof E == "object" && (E.placement && (u = E.placement), E.rects && (c = E.rects === !0 ? yield s.getElementRects({
|
|
7597
7597
|
reference: e,
|
|
7598
7598
|
floating: t,
|
|
7599
7599
|
strategy: r
|
|
7600
7600
|
}) : E.rects), {
|
|
7601
7601
|
x: p,
|
|
7602
|
-
y:
|
|
7603
|
-
} = on(c,
|
|
7602
|
+
y: h
|
|
7603
|
+
} = on(c, u, l)), w = -1);
|
|
7604
7604
|
}
|
|
7605
7605
|
return {
|
|
7606
7606
|
x: p,
|
|
7607
|
-
y:
|
|
7608
|
-
placement:
|
|
7607
|
+
y: h,
|
|
7608
|
+
placement: u,
|
|
7609
7609
|
strategy: r,
|
|
7610
7610
|
middlewareData: g
|
|
7611
7611
|
};
|
|
@@ -7624,15 +7624,15 @@ function es(e, t) {
|
|
|
7624
7624
|
} = e, {
|
|
7625
7625
|
boundary: c = "clippingAncestors",
|
|
7626
7626
|
rootBoundary: p = "viewport",
|
|
7627
|
-
elementContext:
|
|
7628
|
-
altBoundary:
|
|
7627
|
+
elementContext: h = "floating",
|
|
7628
|
+
altBoundary: u = !1,
|
|
7629
7629
|
padding: g = 0
|
|
7630
|
-
} = go(t, e), v = Nn(g), y = d[
|
|
7630
|
+
} = go(t, e), v = Nn(g), y = d[u ? h === "floating" ? "reference" : "floating" : h], _ = Or(yield a.getClippingRect({
|
|
7631
7631
|
element: (i = yield a.isElement == null ? void 0 : a.isElement(y)) == null || i ? y : y.contextElement || (yield a.getDocumentElement == null ? void 0 : a.getDocumentElement(d.floating)),
|
|
7632
7632
|
boundary: c,
|
|
7633
7633
|
rootBoundary: p,
|
|
7634
7634
|
strategy: l
|
|
7635
|
-
})), S =
|
|
7635
|
+
})), S = h === "floating" ? {
|
|
7636
7636
|
x: o,
|
|
7637
7637
|
y: r,
|
|
7638
7638
|
width: s.floating.width,
|
|
@@ -7672,17 +7672,17 @@ const mg = (e) => ({
|
|
|
7672
7672
|
middlewareData: c
|
|
7673
7673
|
} = i, {
|
|
7674
7674
|
element: p,
|
|
7675
|
-
padding:
|
|
7675
|
+
padding: h = 0
|
|
7676
7676
|
} = go(e, i) || {};
|
|
7677
7677
|
if (p == null)
|
|
7678
7678
|
return {};
|
|
7679
|
-
const
|
|
7679
|
+
const u = Nn(h), g = {
|
|
7680
7680
|
x: o,
|
|
7681
7681
|
y: r
|
|
7682
7682
|
}, v = ts(a), w = Qa(v), y = yield d.getDimensions(p), _ = v === "y", S = _ ? "top" : "left", A = _ ? "bottom" : "right", M = _ ? "clientHeight" : "clientWidth", E = s.reference[w] + s.reference[v] - g[v] - s.floating[w], tt = g[v] - s.reference[v], et = yield d.getOffsetParent == null ? void 0 : d.getOffsetParent(p);
|
|
7683
7683
|
let ct = et ? et[M] : 0;
|
|
7684
7684
|
(!ct || !(yield d.isElement == null ? void 0 : d.isElement(et))) && (ct = l.floating[M] || s.floating[w]);
|
|
7685
|
-
const ht = E / 2 - tt / 2, it = ct / 2 - y[w] / 2 - 1, N = xi(
|
|
7685
|
+
const ht = E / 2 - tt / 2, it = ct / 2 - y[w] / 2 - 1, N = xi(u[S], it), $t = xi(u[A], it), mt = N, B = ct - y[w] - $t, L = ct / 2 - y[w] / 2 + ht, D = La(mt, L, B), V = !c.arrow && bo(a) != null && L !== D && s.reference[w] / 2 - (L < mt ? N : $t) - y[w] / 2 < 0, C = V ? L < mt ? L - mt : L - B : 0;
|
|
7686
7686
|
return {
|
|
7687
7687
|
[v]: g[v] + C,
|
|
7688
7688
|
data: x({
|
|
@@ -7710,8 +7710,8 @@ const mg = (e) => ({
|
|
|
7710
7710
|
platform: c,
|
|
7711
7711
|
elements: p
|
|
7712
7712
|
} = i, L = go(e, i), {
|
|
7713
|
-
mainAxis:
|
|
7714
|
-
crossAxis:
|
|
7713
|
+
mainAxis: h = !0,
|
|
7714
|
+
crossAxis: u = !0,
|
|
7715
7715
|
fallbackPlacements: g,
|
|
7716
7716
|
fallbackStrategy: v = "bestFit",
|
|
7717
7717
|
fallbackAxisSideDirection: w = "none",
|
|
@@ -7730,7 +7730,7 @@ const mg = (e) => ({
|
|
|
7730
7730
|
!g && et && tt.push(...gg(l, y, w, E));
|
|
7731
7731
|
const ct = [l, ...tt], ht = yield es(i, _), it = [];
|
|
7732
7732
|
let N = ((r = s.flip) == null ? void 0 : r.overflows) || [];
|
|
7733
|
-
if (
|
|
7733
|
+
if (h && it.push(ht[S]), u) {
|
|
7734
7734
|
const D = lg(a, d, E);
|
|
7735
7735
|
it.push(ht[D[0]], ht[D[1]]);
|
|
7736
7736
|
}
|
|
@@ -7740,7 +7740,7 @@ const mg = (e) => ({
|
|
|
7740
7740
|
}], !it.every((D) => D <= 0)) {
|
|
7741
7741
|
var $t, mt;
|
|
7742
7742
|
const D = ((($t = s.flip) == null ? void 0 : $t.index) || 0) + 1, V = ct[D];
|
|
7743
|
-
if (V && (!(
|
|
7743
|
+
if (V && (!(u === "alignment" ? A !== ii(V) : !1) || // We leave the current main axis only if every placement on that axis
|
|
7744
7744
|
// overflows the main axis.
|
|
7745
7745
|
N.every((H) => ii(H.placement) === A ? H.overflows[0] > 0 : !0)))
|
|
7746
7746
|
return {
|
|
@@ -7759,13 +7759,13 @@ const mg = (e) => ({
|
|
|
7759
7759
|
var B;
|
|
7760
7760
|
const F = (B = N.filter((H) => {
|
|
7761
7761
|
if (et) {
|
|
7762
|
-
const
|
|
7763
|
-
return
|
|
7762
|
+
const K = ii(H.placement);
|
|
7763
|
+
return K === A || // Create a bias to the `y` side axis due to horizontal
|
|
7764
7764
|
// reading directions favoring greater width.
|
|
7765
|
-
|
|
7765
|
+
K === "y";
|
|
7766
7766
|
}
|
|
7767
7767
|
return !0;
|
|
7768
|
-
}).map((H) => [H.placement, H.overflows.filter((
|
|
7768
|
+
}).map((H) => [H.placement, H.overflows.filter((K) => K > 0).reduce((K, vt) => K + vt, 0)]).sort((H, K) => H[1] - K[1])[0]) == null ? void 0 : B[0];
|
|
7769
7769
|
F && (C = F);
|
|
7770
7770
|
break;
|
|
7771
7771
|
}
|
|
@@ -7791,25 +7791,25 @@ function xg(e, t) {
|
|
|
7791
7791
|
placement: i,
|
|
7792
7792
|
platform: o,
|
|
7793
7793
|
elements: r
|
|
7794
|
-
} = e, a = yield o.isRTL == null ? void 0 : o.isRTL(r.floating), s = wi(i), d = bo(i), l = ii(i) === "y", c = yg.has(s) ? -1 : 1, p = a && l ? -1 : 1,
|
|
7794
|
+
} = e, a = yield o.isRTL == null ? void 0 : o.isRTL(r.floating), s = wi(i), d = bo(i), l = ii(i) === "y", c = yg.has(s) ? -1 : 1, p = a && l ? -1 : 1, h = go(t, e);
|
|
7795
7795
|
let {
|
|
7796
|
-
mainAxis:
|
|
7796
|
+
mainAxis: u,
|
|
7797
7797
|
crossAxis: g,
|
|
7798
7798
|
alignmentAxis: v
|
|
7799
|
-
} = typeof
|
|
7800
|
-
mainAxis:
|
|
7799
|
+
} = typeof h == "number" ? {
|
|
7800
|
+
mainAxis: h,
|
|
7801
7801
|
crossAxis: 0,
|
|
7802
7802
|
alignmentAxis: null
|
|
7803
7803
|
} : {
|
|
7804
|
-
mainAxis:
|
|
7805
|
-
crossAxis:
|
|
7806
|
-
alignmentAxis:
|
|
7804
|
+
mainAxis: h.mainAxis || 0,
|
|
7805
|
+
crossAxis: h.crossAxis || 0,
|
|
7806
|
+
alignmentAxis: h.alignmentAxis
|
|
7807
7807
|
};
|
|
7808
7808
|
return d && typeof v == "number" && (g = d === "end" ? v * -1 : v), l ? {
|
|
7809
7809
|
x: g * p,
|
|
7810
|
-
y:
|
|
7810
|
+
y: u * c
|
|
7811
7811
|
} : {
|
|
7812
|
-
x:
|
|
7812
|
+
x: u * c,
|
|
7813
7813
|
y: g * p
|
|
7814
7814
|
};
|
|
7815
7815
|
});
|
|
@@ -7830,7 +7830,7 @@ const wg = function(e) {
|
|
|
7830
7830
|
return d === ((o = l.offset) == null ? void 0 : o.placement) && (r = l.arrow) != null && r.alignmentOffset ? {} : {
|
|
7831
7831
|
x: a + c.x,
|
|
7832
7832
|
y: s + c.y,
|
|
7833
|
-
data:
|
|
7833
|
+
data: U(x({}, c), {
|
|
7834
7834
|
placement: d
|
|
7835
7835
|
})
|
|
7836
7836
|
};
|
|
@@ -7869,27 +7869,27 @@ const wg = function(e) {
|
|
|
7869
7869
|
]), p = {
|
|
7870
7870
|
x: o,
|
|
7871
7871
|
y: r
|
|
7872
|
-
},
|
|
7873
|
-
let v = p[g], w = p[
|
|
7872
|
+
}, h = yield es(i, c), u = ii(wi(a)), g = Hn(u);
|
|
7873
|
+
let v = p[g], w = p[u];
|
|
7874
7874
|
if (s) {
|
|
7875
|
-
const S = g === "y" ? "top" : "left", A = g === "y" ? "bottom" : "right", M = v +
|
|
7875
|
+
const S = g === "y" ? "top" : "left", A = g === "y" ? "bottom" : "right", M = v + h[S], E = v - h[A];
|
|
7876
7876
|
v = La(M, v, E);
|
|
7877
7877
|
}
|
|
7878
7878
|
if (d) {
|
|
7879
|
-
const S =
|
|
7879
|
+
const S = u === "y" ? "top" : "left", A = u === "y" ? "bottom" : "right", M = w + h[S], E = w - h[A];
|
|
7880
7880
|
w = La(M, w, E);
|
|
7881
7881
|
}
|
|
7882
|
-
const y = l.fn(
|
|
7882
|
+
const y = l.fn(U(x({}, i), {
|
|
7883
7883
|
[g]: v,
|
|
7884
|
-
[
|
|
7884
|
+
[u]: w
|
|
7885
7885
|
}));
|
|
7886
|
-
return
|
|
7886
|
+
return U(x({}, y), {
|
|
7887
7887
|
data: {
|
|
7888
7888
|
x: y.x - o,
|
|
7889
7889
|
y: y.y - r,
|
|
7890
7890
|
enabled: {
|
|
7891
7891
|
[g]: s,
|
|
7892
|
-
[
|
|
7892
|
+
[u]: d
|
|
7893
7893
|
}
|
|
7894
7894
|
}
|
|
7895
7895
|
});
|
|
@@ -7913,19 +7913,19 @@ const wg = function(e) {
|
|
|
7913
7913
|
}
|
|
7914
7914
|
} = N, p = Li(N, [
|
|
7915
7915
|
"apply"
|
|
7916
|
-
]),
|
|
7916
|
+
]), h = yield es(i, p), u = wi(a), g = bo(a), v = ii(a) === "y", {
|
|
7917
7917
|
width: w,
|
|
7918
7918
|
height: y
|
|
7919
7919
|
} = s.floating;
|
|
7920
7920
|
let _, S;
|
|
7921
|
-
|
|
7922
|
-
const A = y -
|
|
7921
|
+
u === "top" || u === "bottom" ? (_ = u, S = g === ((yield d.isRTL == null ? void 0 : d.isRTL(l.floating)) ? "start" : "end") ? "left" : "right") : (S = u, _ = g === "end" ? "top" : "bottom");
|
|
7922
|
+
const A = y - h.top - h.bottom, M = w - h.left - h.right, E = xi(y - h[_], A), tt = xi(w - h[S], M), et = !i.middlewareData.shift;
|
|
7923
7923
|
let ct = E, ht = tt;
|
|
7924
7924
|
if ((o = i.middlewareData.shift) != null && o.enabled.x && (ht = M), (r = i.middlewareData.shift) != null && r.enabled.y && (ct = A), et && !g) {
|
|
7925
|
-
const $t = le(
|
|
7926
|
-
v ? ht = w - 2 * ($t !== 0 || mt !== 0 ? $t + mt : le(
|
|
7925
|
+
const $t = le(h.left, 0), mt = le(h.right, 0), B = le(h.top, 0), L = le(h.bottom, 0);
|
|
7926
|
+
v ? ht = w - 2 * ($t !== 0 || mt !== 0 ? $t + mt : le(h.left, h.right)) : ct = y - 2 * (B !== 0 || L !== 0 ? B + L : le(h.top, h.bottom));
|
|
7927
7927
|
}
|
|
7928
|
-
yield c(
|
|
7928
|
+
yield c(U(x({}, i), {
|
|
7929
7929
|
availableWidth: ht,
|
|
7930
7930
|
availableHeight: ct
|
|
7931
7931
|
}));
|
|
@@ -8098,18 +8098,18 @@ function Ti(e, t, i, o) {
|
|
|
8098
8098
|
let s = Ne(1);
|
|
8099
8099
|
t && (o ? Ae(o) && (s = to(o)) : s = to(e));
|
|
8100
8100
|
const d = Eg(a, i, o) ? Kn(a) : Ne(0);
|
|
8101
|
-
let l = (r.left + d.x) / s.x, c = (r.top + d.y) / s.y, p = r.width / s.x,
|
|
8101
|
+
let l = (r.left + d.x) / s.x, c = (r.top + d.y) / s.y, p = r.width / s.x, h = r.height / s.y;
|
|
8102
8102
|
if (a) {
|
|
8103
|
-
const
|
|
8104
|
-
let v =
|
|
8103
|
+
const u = ce(a), g = o && Ae(o) ? ce(o) : o;
|
|
8104
|
+
let v = u, w = Pa(v);
|
|
8105
8105
|
for (; w && o && g !== v; ) {
|
|
8106
8106
|
const y = to(w), _ = w.getBoundingClientRect(), S = Pe(w), A = _.left + (w.clientLeft + parseFloat(S.paddingLeft)) * y.x, M = _.top + (w.clientTop + parseFloat(S.paddingTop)) * y.y;
|
|
8107
|
-
l *= y.x, c *= y.y, p *= y.x,
|
|
8107
|
+
l *= y.x, c *= y.y, p *= y.x, h *= y.y, l += A, c += M, v = ce(w), w = Pa(v);
|
|
8108
8108
|
}
|
|
8109
8109
|
}
|
|
8110
8110
|
return Or({
|
|
8111
8111
|
width: p,
|
|
8112
|
-
height:
|
|
8112
|
+
height: h,
|
|
8113
8113
|
x: l,
|
|
8114
8114
|
y: c
|
|
8115
8115
|
});
|
|
@@ -8139,17 +8139,17 @@ function Tg(e) {
|
|
|
8139
8139
|
scrollLeft: 0,
|
|
8140
8140
|
scrollTop: 0
|
|
8141
8141
|
}, c = Ne(1);
|
|
8142
|
-
const p = Ne(0),
|
|
8143
|
-
if ((
|
|
8142
|
+
const p = Ne(0), h = Ue(o);
|
|
8143
|
+
if ((h || !h && !a) && ((fo(o) !== "body" || Ko(s)) && (l = Gr(o)), Ue(o))) {
|
|
8144
8144
|
const g = Ti(o);
|
|
8145
8145
|
c = to(o), p.x = g.x + o.clientLeft, p.y = g.y + o.clientTop;
|
|
8146
8146
|
}
|
|
8147
|
-
const
|
|
8147
|
+
const u = s && !h && !a ? Gn(s, l) : Ne(0);
|
|
8148
8148
|
return {
|
|
8149
8149
|
width: i.width * c.x,
|
|
8150
8150
|
height: i.height * c.y,
|
|
8151
|
-
x: i.x * c.x - l.scrollLeft * c.x + p.x +
|
|
8152
|
-
y: i.y * c.y - l.scrollTop * c.y + p.y +
|
|
8151
|
+
x: i.x * c.x - l.scrollLeft * c.x + p.x + u.x,
|
|
8152
|
+
y: i.y * c.y - l.scrollTop * c.y + p.y + u.y
|
|
8153
8153
|
};
|
|
8154
8154
|
}
|
|
8155
8155
|
function Mg(e) {
|
|
@@ -8177,7 +8177,7 @@ function Vg(e, t) {
|
|
|
8177
8177
|
}
|
|
8178
8178
|
const c = Wr(o);
|
|
8179
8179
|
if (c <= 0) {
|
|
8180
|
-
const p = o.ownerDocument,
|
|
8180
|
+
const p = o.ownerDocument, h = p.body, u = getComputedStyle(h), g = p.compatMode === "CSS1Compat" && parseFloat(u.marginLeft) + parseFloat(u.marginRight) || 0, v = Math.abs(o.clientWidth - h.clientWidth - g);
|
|
8181
8181
|
v <= an && (a -= v);
|
|
8182
8182
|
} else c <= an && (a += c);
|
|
8183
8183
|
return {
|
|
@@ -8241,8 +8241,8 @@ function Ng(e) {
|
|
|
8241
8241
|
strategy: r
|
|
8242
8242
|
} = e;
|
|
8243
8243
|
const s = [...i === "clippingAncestors" ? Kr(t) ? [] : Hg(t, this._c) : [].concat(i), o], d = s[0], l = s.reduce((c, p) => {
|
|
8244
|
-
const
|
|
8245
|
-
return c.top = le(
|
|
8244
|
+
const h = sn(t, p, r);
|
|
8245
|
+
return c.top = le(h.top, c.top), c.right = xi(h.right, c.right), c.bottom = xi(h.bottom, c.bottom), c.left = le(h.left, c.left), c;
|
|
8246
8246
|
}, sn(t, d, r));
|
|
8247
8247
|
return {
|
|
8248
8248
|
width: l.right - l.left,
|
|
@@ -8277,10 +8277,10 @@ function Ug(e, t, i) {
|
|
|
8277
8277
|
l.x = g.x + t.clientLeft, l.y = g.y + t.clientTop;
|
|
8278
8278
|
} else r && c();
|
|
8279
8279
|
a && !o && r && c();
|
|
8280
|
-
const p = r && !o && !a ? Gn(r, d) : Ne(0),
|
|
8280
|
+
const p = r && !o && !a ? Gn(r, d) : Ne(0), h = s.left + d.scrollLeft - l.x - p.x, u = s.top + d.scrollTop - l.y - p.y;
|
|
8281
8281
|
return {
|
|
8282
|
-
x:
|
|
8283
|
-
y:
|
|
8282
|
+
x: h,
|
|
8283
|
+
y: u,
|
|
8284
8284
|
width: s.width,
|
|
8285
8285
|
height: s.height
|
|
8286
8286
|
};
|
|
@@ -8357,13 +8357,13 @@ function Wg(e, t) {
|
|
|
8357
8357
|
d === void 0 && (d = !1), l === void 0 && (l = 1), a();
|
|
8358
8358
|
const c = e.getBoundingClientRect(), {
|
|
8359
8359
|
left: p,
|
|
8360
|
-
top:
|
|
8361
|
-
width:
|
|
8360
|
+
top: h,
|
|
8361
|
+
width: u,
|
|
8362
8362
|
height: g
|
|
8363
8363
|
} = c;
|
|
8364
|
-
if (d || t(), !
|
|
8364
|
+
if (d || t(), !u || !g)
|
|
8365
8365
|
return;
|
|
8366
|
-
const v = ar(
|
|
8366
|
+
const v = ar(h), w = ar(r.clientWidth - (p + u)), y = ar(r.clientHeight - (h + g)), _ = ar(p), A = {
|
|
8367
8367
|
rootMargin: -v + "px " + -w + "px " + -y + "px " + -_ + "px",
|
|
8368
8368
|
threshold: le(0, xi(1, l)) || 1
|
|
8369
8369
|
};
|
|
@@ -8380,7 +8380,7 @@ function Wg(e, t) {
|
|
|
8380
8380
|
et === 1 && !Zn(c, e.getBoundingClientRect()) && s(), M = !1;
|
|
8381
8381
|
}
|
|
8382
8382
|
try {
|
|
8383
|
-
i = new IntersectionObserver(E,
|
|
8383
|
+
i = new IntersectionObserver(E, U(x({}, A), {
|
|
8384
8384
|
// Handle <iframe>s
|
|
8385
8385
|
root: r.ownerDocument
|
|
8386
8386
|
}));
|
|
@@ -8405,11 +8405,11 @@ function Jn(e, t, i, o) {
|
|
|
8405
8405
|
passive: !0
|
|
8406
8406
|
}), a && _.addEventListener("resize", i);
|
|
8407
8407
|
});
|
|
8408
|
-
const
|
|
8409
|
-
let
|
|
8408
|
+
const h = c && d ? Wg(c, i) : null;
|
|
8409
|
+
let u = -1, g = null;
|
|
8410
8410
|
s && (g = new ResizeObserver((_) => {
|
|
8411
8411
|
let [S] = _;
|
|
8412
|
-
S && S.target === c && g && (g.unobserve(t), cancelAnimationFrame(
|
|
8412
|
+
S && S.target === c && g && (g.unobserve(t), cancelAnimationFrame(u), u = requestAnimationFrame(() => {
|
|
8413
8413
|
var A;
|
|
8414
8414
|
(A = g) == null || A.observe(t);
|
|
8415
8415
|
})), i();
|
|
@@ -8424,16 +8424,16 @@ function Jn(e, t, i, o) {
|
|
|
8424
8424
|
var _;
|
|
8425
8425
|
p.forEach((S) => {
|
|
8426
8426
|
r && S.removeEventListener("scroll", i), a && S.removeEventListener("resize", i);
|
|
8427
|
-
}),
|
|
8427
|
+
}), h == null || h(), (_ = g) == null || _.disconnect(), g = null, l && cancelAnimationFrame(v);
|
|
8428
8428
|
};
|
|
8429
8429
|
}
|
|
8430
8430
|
const Xn = wg, Qn = _g, td = vg, ed = kg, Yg = mg, id = (e, t, i) => {
|
|
8431
8431
|
const o = /* @__PURE__ */ new Map(), r = x({
|
|
8432
8432
|
platform: Gg
|
|
8433
|
-
}, i), a =
|
|
8433
|
+
}, i), a = U(x({}, r.platform), {
|
|
8434
8434
|
_c: o
|
|
8435
8435
|
});
|
|
8436
|
-
return fg(e, t,
|
|
8436
|
+
return fg(e, t, U(x({}, r), {
|
|
8437
8437
|
platform: a
|
|
8438
8438
|
}));
|
|
8439
8439
|
}, od = "*,*:before,*:after{box-sizing:border-box;outline:none}* :not(dap-ds-table-cell,dap-ds-table-header){margin:0;padding:0}html:focus-within{scroll-behavior:smooth}a:not([class]){text-decoration-skip-ink:auto}img,picture,svg,video,canvas{max-width:100%;height:auto;background-repeat:no-repeat;background-size:cover;font-style:italic;vertical-align:middle}input,button,textarea,select{font:inherit}[hidden]{display:none!important}@media (prefers-reduced-motion: reduce){html:focus-within{scroll-behavior:auto}*,*:before,*:after{transition:none;transition-duration:.01ms!important;transition-delay:1ms!important;animation-duration:1ms!important;animation-delay:-1ms!important;animation-iteration-count:1!important;background-attachment:initial!important;scroll-behavior:auto!important}}body,html{height:100%;scroll-behavior:smooth;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}input[type=number]{appearance:textfield}input::-webkit-outer-spin-button,input::-webkit-inner-spin-button{appearance:none}.sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);border-width:0;white-space:nowrap}.input-description{display:block;margin-bottom:var(--dds-spacing-200)}@keyframes dds-spin{to{transform:rotate(360deg)}}@keyframes dds-fade{0%,to{opacity:.3}50%{opacity:1}}:host{display:contents;--dds-popup-z-index: var(--dds-z-index-20);--dds-popup-padding: var(--dds-spacing-400);--dds-popup-padding-xs: var(--dds-spacing-200);--dds-popup-padding-lg: var(--dds-spacing-500);--dds-popup-border-width: var(--dds-border-width-base);--dds-popup-border-radius: var(--dds-radius-base);--dds-popup-border-color: var(--dds-border-neutral-subtle);--dds-popup-background: var(--dds-background-neutral-base);--dds-popup-color: var(--dds-text-neutral-base);--dds-popup-arrow-size: var(--dds-tooltip-arrow-size)}.popup{position:absolute;z-index:var(--dds-popup-z-index);top:0;left:0;padding:var(--dds-popup-padding);border-width:var(--dds-popup-border-width);border-style:solid;border-radius:var(--dds-popup-border-radius);border-color:var(--dds-popup-border-color);background-color:var(--dds-popup-background);color:var(--dds-popup-color)}.popup--fixed{position:fixed}.popup--overflow{overflow:auto}.popup--xs{padding:var(--dds-popup-padding-xs)}.popup--lg{padding:var(--dds-popup-padding-lg)}.popup--full-width{z-index:var(--dds-popup-z-index);width:100vw!important;border-radius:0}.popup__arrow{position:absolute;width:var(--dds-popup-arrow-size);height:var(--dds-popup-arrow-size);border-width:var(--dds-popup-border-width);border-style:solid;border-color:var(--dds-popup-border-color);background-color:var(--dds-popup-background);rotate:45deg}.popup__arrow--bottom{border-right-width:0;border-bottom-width:0}.popup__arrow--top{border-top-width:0;border-left-width:0}.popup__arrow--left{border-bottom-width:0;border-left-width:0}.popup__arrow--right{border-top-width:0;border-right-width:0}.popup:not(.popup--opened){display:none}";
|
|
@@ -8519,11 +8519,11 @@ const Oo = class Oo extends wt(T) {
|
|
|
8519
8519
|
td(),
|
|
8520
8520
|
Qn(),
|
|
8521
8521
|
ed({
|
|
8522
|
-
apply: ({ rects: l, availableHeight: c, availableWidth: p, elements:
|
|
8523
|
-
const
|
|
8522
|
+
apply: ({ rects: l, availableHeight: c, availableWidth: p, elements: h }) => {
|
|
8523
|
+
const u = Math.max(0, c), g = Math.max(0, p), v = this.sync;
|
|
8524
8524
|
this.popup.style.width = v ? `${l.reference.width}px` : "";
|
|
8525
|
-
const w = typeof this.maxHeight == "number" ? this.maxHeight : void 0, y = w != null ? Math.min(w,
|
|
8526
|
-
this.popup.style.maxHeight = y >=
|
|
8525
|
+
const w = typeof this.maxHeight == "number" ? this.maxHeight : void 0, y = w != null ? Math.min(w, u) : u;
|
|
8526
|
+
this.popup.style.maxHeight = y >= h.floating.scrollHeight ? "" : `${y}px`;
|
|
8527
8527
|
const _ = typeof this.maxWidth == "number" ? this.maxWidth : void 0, S = _ != null ? Math.min(_, g) : g;
|
|
8528
8528
|
this.popup.style.maxWidth = `${S}px`, this.fullWidth && (this.popup.style.width = "100vw");
|
|
8529
8529
|
}
|
|
@@ -8536,7 +8536,7 @@ const Oo = class Oo extends wt(T) {
|
|
|
8536
8536
|
left: `${o}px`,
|
|
8537
8537
|
top: `${r}px`
|
|
8538
8538
|
}), this.arrowElement) {
|
|
8539
|
-
const { x: l, y: c } = s.arrow, [p] = a.split("-"),
|
|
8539
|
+
const { x: l, y: c } = s.arrow, [p] = a.split("-"), h = (d = {
|
|
8540
8540
|
top: "bottom",
|
|
8541
8541
|
right: "left",
|
|
8542
8542
|
bottom: "top",
|
|
@@ -8545,7 +8545,7 @@ const Oo = class Oo extends wt(T) {
|
|
|
8545
8545
|
Object.assign(this.arrowElement.style, {
|
|
8546
8546
|
left: l != null ? `${l}px` : "",
|
|
8547
8547
|
top: c != null ? `${c}px` : "",
|
|
8548
|
-
[
|
|
8548
|
+
[h]: "-5px"
|
|
8549
8549
|
}), this.arrowElement.classList.remove(
|
|
8550
8550
|
"popup__arrow--top",
|
|
8551
8551
|
"popup__arrow--right",
|
|
@@ -9587,7 +9587,7 @@ function vi(e, t) {
|
|
|
9587
9587
|
}
|
|
9588
9588
|
function pe(e, t) {
|
|
9589
9589
|
return (i) => {
|
|
9590
|
-
t.setState((o) =>
|
|
9590
|
+
t.setState((o) => U(x({}, o), {
|
|
9591
9591
|
[e]: vi(i, o[e])
|
|
9592
9592
|
}));
|
|
9593
9593
|
};
|
|
@@ -9614,20 +9614,20 @@ function Y(e, t, i) {
|
|
|
9614
9614
|
let s;
|
|
9615
9615
|
i.key && i.debug && (s = Date.now());
|
|
9616
9616
|
const d = e(a);
|
|
9617
|
-
if (!(d.length !== o.length || d.some((p,
|
|
9617
|
+
if (!(d.length !== o.length || d.some((p, h) => o[h] !== p)))
|
|
9618
9618
|
return r;
|
|
9619
9619
|
o = d;
|
|
9620
9620
|
let c;
|
|
9621
9621
|
if (i.key && i.debug && (c = Date.now()), r = t(...d), i == null || i.onChange == null || i.onChange(r), i.key && i.debug && i != null && i.debug()) {
|
|
9622
|
-
const p = Math.round((Date.now() - s) * 100) / 100,
|
|
9622
|
+
const p = Math.round((Date.now() - s) * 100) / 100, h = Math.round((Date.now() - c) * 100) / 100, u = h / 16, g = (v, w) => {
|
|
9623
9623
|
for (v = String(v); v.length < w; )
|
|
9624
9624
|
v = " " + v;
|
|
9625
9625
|
return v;
|
|
9626
9626
|
};
|
|
9627
|
-
console.info(`%c⏱ ${g(
|
|
9627
|
+
console.info(`%c⏱ ${g(h, 5)} /${g(p, 5)} ms`, `
|
|
9628
9628
|
font-size: .6rem;
|
|
9629
9629
|
font-weight: bold;
|
|
9630
|
-
color: hsl(${Math.max(0, Math.min(120 - 120 *
|
|
9630
|
+
color: hsl(${Math.max(0, Math.min(120 - 120 * u, 120))}deg 100% 31%);`, i == null ? void 0 : i.key);
|
|
9631
9631
|
}
|
|
9632
9632
|
return r;
|
|
9633
9633
|
};
|
|
@@ -9669,16 +9669,16 @@ function Sb(e, t, i, o) {
|
|
|
9669
9669
|
var r, a;
|
|
9670
9670
|
const s = e._getDefaultColumnDef(), d = x(x({}, s), t), l = d.accessorKey;
|
|
9671
9671
|
let c = (r = (a = d.id) != null ? a : l ? typeof String.prototype.replaceAll == "function" ? l.replaceAll(".", "_") : l.replace(/\./g, "_") : void 0) != null ? r : typeof d.header == "string" ? d.header : void 0, p;
|
|
9672
|
-
if (d.accessorFn ? p = d.accessorFn : l && (l.includes(".") ? p = (
|
|
9673
|
-
let g =
|
|
9672
|
+
if (d.accessorFn ? p = d.accessorFn : l && (l.includes(".") ? p = (u) => {
|
|
9673
|
+
let g = u;
|
|
9674
9674
|
for (const w of l.split(".")) {
|
|
9675
9675
|
var v;
|
|
9676
9676
|
g = (v = g) == null ? void 0 : v[w], process.env.NODE_ENV !== "production" && g === void 0 && console.warn(`"${w}" in deeply nested key "${l}" returned undefined.`);
|
|
9677
9677
|
}
|
|
9678
9678
|
return g;
|
|
9679
|
-
} : p = (
|
|
9679
|
+
} : p = (u) => u[d.accessorKey]), !c)
|
|
9680
9680
|
throw process.env.NODE_ENV !== "production" ? new Error(d.accessorFn ? "Columns require an id when using an accessorFn" : "Columns require an id when using a non-string header") : new Error();
|
|
9681
|
-
let
|
|
9681
|
+
let h = {
|
|
9682
9682
|
id: `${String(c)}`,
|
|
9683
9683
|
accessorFn: p,
|
|
9684
9684
|
parent: o,
|
|
@@ -9686,21 +9686,21 @@ function Sb(e, t, i, o) {
|
|
|
9686
9686
|
columnDef: d,
|
|
9687
9687
|
columns: [],
|
|
9688
9688
|
getFlatColumns: Y(() => [!0], () => {
|
|
9689
|
-
var
|
|
9690
|
-
return [
|
|
9689
|
+
var u;
|
|
9690
|
+
return [h, ...(u = h.columns) == null ? void 0 : u.flatMap((g) => g.getFlatColumns())];
|
|
9691
9691
|
}, Z(e.options, "debugColumns", "column.getFlatColumns")),
|
|
9692
|
-
getLeafColumns: Y(() => [e._getOrderColumnsFn()], (
|
|
9692
|
+
getLeafColumns: Y(() => [e._getOrderColumnsFn()], (u) => {
|
|
9693
9693
|
var g;
|
|
9694
|
-
if ((g =
|
|
9695
|
-
let v =
|
|
9696
|
-
return
|
|
9694
|
+
if ((g = h.columns) != null && g.length) {
|
|
9695
|
+
let v = h.columns.flatMap((w) => w.getLeafColumns());
|
|
9696
|
+
return u(v);
|
|
9697
9697
|
}
|
|
9698
|
-
return [
|
|
9698
|
+
return [h];
|
|
9699
9699
|
}, Z(e.options, "debugColumns", "column.getLeafColumns"))
|
|
9700
9700
|
};
|
|
9701
|
-
for (const
|
|
9702
|
-
|
|
9703
|
-
return
|
|
9701
|
+
for (const u of e._features)
|
|
9702
|
+
u.createColumn == null || u.createColumn(h, e);
|
|
9703
|
+
return h;
|
|
9704
9704
|
}
|
|
9705
9705
|
const Ut = "debugHeaders";
|
|
9706
9706
|
function dn(e, t, i) {
|
|
@@ -9736,7 +9736,7 @@ const zb = {
|
|
|
9736
9736
|
createTable: (e) => {
|
|
9737
9737
|
e.getHeaderGroups = Y(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.left, e.getState().columnPinning.right], (t, i, o, r) => {
|
|
9738
9738
|
var a, s;
|
|
9739
|
-
const d = (a = o == null ? void 0 : o.map((
|
|
9739
|
+
const d = (a = o == null ? void 0 : o.map((h) => i.find((u) => u.id === h)).filter(Boolean)) != null ? a : [], l = (s = r == null ? void 0 : r.map((h) => i.find((u) => u.id === h)).filter(Boolean)) != null ? s : [], c = i.filter((h) => !(o != null && o.includes(h.id)) && !(r != null && r.includes(h.id)));
|
|
9740
9740
|
return sr(t, [...d, ...c, ...l], e);
|
|
9741
9741
|
}, Z(e.options, Ut, "getHeaderGroups")), e.getCenterHeaderGroups = Y(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.left, e.getState().columnPinning.right], (t, i, o, r) => (i = i.filter((a) => !(o != null && o.includes(a.id)) && !(r != null && r.includes(a.id))), sr(t, i, e, "center")), Z(e.options, Ut, "getCenterHeaderGroups")), e.getLeftHeaderGroups = Y(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.left], (t, i, o) => {
|
|
9742
9742
|
var r;
|
|
@@ -9764,21 +9764,21 @@ const zb = {
|
|
|
9764
9764
|
function sr(e, t, i, o) {
|
|
9765
9765
|
var r, a;
|
|
9766
9766
|
let s = 0;
|
|
9767
|
-
const d = function(
|
|
9768
|
-
g === void 0 && (g = 1), s = Math.max(s, g),
|
|
9767
|
+
const d = function(u, g) {
|
|
9768
|
+
g === void 0 && (g = 1), s = Math.max(s, g), u.filter((v) => v.getIsVisible()).forEach((v) => {
|
|
9769
9769
|
var w;
|
|
9770
9770
|
(w = v.columns) != null && w.length && d(v.columns, g + 1);
|
|
9771
9771
|
}, 0);
|
|
9772
9772
|
};
|
|
9773
9773
|
d(e);
|
|
9774
9774
|
let l = [];
|
|
9775
|
-
const c = (
|
|
9775
|
+
const c = (u, g) => {
|
|
9776
9776
|
const v = {
|
|
9777
9777
|
depth: g,
|
|
9778
9778
|
id: [o, `${g}`].filter(Boolean).join("_"),
|
|
9779
9779
|
headers: []
|
|
9780
9780
|
}, w = [];
|
|
9781
|
-
|
|
9781
|
+
u.forEach((y) => {
|
|
9782
9782
|
const _ = [...w].reverse()[0], S = y.column.depth === v.depth;
|
|
9783
9783
|
let A, M = !1;
|
|
9784
9784
|
if (S && y.column.parent ? A = y.column.parent : (A = y.column, M = !0), _ && (_ == null ? void 0 : _.column) === A)
|
|
@@ -9795,14 +9795,14 @@ function sr(e, t, i, o) {
|
|
|
9795
9795
|
}
|
|
9796
9796
|
v.headers.push(y), y.headerGroup = v;
|
|
9797
9797
|
}), l.push(v), g > 0 && c(w, g - 1);
|
|
9798
|
-
}, p = t.map((
|
|
9798
|
+
}, p = t.map((u, g) => dn(i, u, {
|
|
9799
9799
|
depth: s,
|
|
9800
9800
|
index: g
|
|
9801
9801
|
}));
|
|
9802
9802
|
c(p, s - 1), l.reverse();
|
|
9803
|
-
const
|
|
9803
|
+
const h = (u) => u.filter((v) => v.column.getIsVisible()).map((v) => {
|
|
9804
9804
|
let w = 0, y = 0, _ = [0];
|
|
9805
|
-
v.subHeaders && v.subHeaders.length ? (_ = [],
|
|
9805
|
+
v.subHeaders && v.subHeaders.length ? (_ = [], h(v.subHeaders).forEach((A) => {
|
|
9806
9806
|
let {
|
|
9807
9807
|
colSpan: M,
|
|
9808
9808
|
rowSpan: E
|
|
@@ -9815,7 +9815,7 @@ function sr(e, t, i, o) {
|
|
|
9815
9815
|
rowSpan: y
|
|
9816
9816
|
};
|
|
9817
9817
|
});
|
|
9818
|
-
return
|
|
9818
|
+
return h((r = (a = l[0]) == null ? void 0 : a.headers) != null ? r : []), l;
|
|
9819
9819
|
}
|
|
9820
9820
|
const Cb = (e, t, i, o, r, a, s) => {
|
|
9821
9821
|
let d = {
|
|
@@ -10184,20 +10184,20 @@ const Hb = {
|
|
|
10184
10184
|
if (i === "right") {
|
|
10185
10185
|
var d, l;
|
|
10186
10186
|
return {
|
|
10187
|
-
left: ((d = r == null ? void 0 : r.left) != null ? d : []).filter((
|
|
10188
|
-
right: [...((l = r == null ? void 0 : r.right) != null ? l : []).filter((
|
|
10187
|
+
left: ((d = r == null ? void 0 : r.left) != null ? d : []).filter((h) => !(o != null && o.includes(h))),
|
|
10188
|
+
right: [...((l = r == null ? void 0 : r.right) != null ? l : []).filter((h) => !(o != null && o.includes(h))), ...o]
|
|
10189
10189
|
};
|
|
10190
10190
|
}
|
|
10191
10191
|
if (i === "left") {
|
|
10192
10192
|
var c, p;
|
|
10193
10193
|
return {
|
|
10194
|
-
left: [...((c = r == null ? void 0 : r.left) != null ? c : []).filter((
|
|
10195
|
-
right: ((p = r == null ? void 0 : r.right) != null ? p : []).filter((
|
|
10194
|
+
left: [...((c = r == null ? void 0 : r.left) != null ? c : []).filter((h) => !(o != null && o.includes(h))), ...o],
|
|
10195
|
+
right: ((p = r == null ? void 0 : r.right) != null ? p : []).filter((h) => !(o != null && o.includes(h)))
|
|
10196
10196
|
};
|
|
10197
10197
|
}
|
|
10198
10198
|
return {
|
|
10199
|
-
left: ((a = r == null ? void 0 : r.left) != null ? a : []).filter((
|
|
10200
|
-
right: ((s = r == null ? void 0 : r.right) != null ? s : []).filter((
|
|
10199
|
+
left: ((a = r == null ? void 0 : r.left) != null ? a : []).filter((h) => !(o != null && o.includes(h))),
|
|
10200
|
+
right: ((s = r == null ? void 0 : r.right) != null ? s : []).filter((h) => !(o != null && o.includes(h)))
|
|
10201
10201
|
};
|
|
10202
10202
|
});
|
|
10203
10203
|
}, e.getCanPin = () => e.getLeafColumns().some((o) => {
|
|
@@ -10219,9 +10219,9 @@ const Hb = {
|
|
|
10219
10219
|
e.getCenterVisibleCells = Y(() => [e._getAllVisibleCells(), t.getState().columnPinning.left, t.getState().columnPinning.right], (i, o, r) => {
|
|
10220
10220
|
const a = [...o != null ? o : [], ...r != null ? r : []];
|
|
10221
10221
|
return i.filter((s) => !a.includes(s.column.id));
|
|
10222
|
-
}, Z(t.options, "debugRows", "getCenterVisibleCells")), e.getLeftVisibleCells = Y(() => [e._getAllVisibleCells(), t.getState().columnPinning.left], (i, o) => (o != null ? o : []).map((a) => i.find((s) => s.column.id === a)).filter(Boolean).map((a) =>
|
|
10222
|
+
}, Z(t.options, "debugRows", "getCenterVisibleCells")), e.getLeftVisibleCells = Y(() => [e._getAllVisibleCells(), t.getState().columnPinning.left], (i, o) => (o != null ? o : []).map((a) => i.find((s) => s.column.id === a)).filter(Boolean).map((a) => U(x({}, a), {
|
|
10223
10223
|
position: "left"
|
|
10224
|
-
})), Z(t.options, "debugRows", "getLeftVisibleCells")), e.getRightVisibleCells = Y(() => [e._getAllVisibleCells(), t.getState().columnPinning.right], (i, o) => (o != null ? o : []).map((a) => i.find((s) => s.column.id === a)).filter(Boolean).map((a) =>
|
|
10224
|
+
})), Z(t.options, "debugRows", "getLeftVisibleCells")), e.getRightVisibleCells = Y(() => [e._getAllVisibleCells(), t.getState().columnPinning.right], (i, o) => (o != null ? o : []).map((a) => i.find((s) => s.column.id === a)).filter(Boolean).map((a) => U(x({}, a), {
|
|
10225
10225
|
position: "right"
|
|
10226
10226
|
})), Z(t.options, "debugRows", "getRightVisibleCells"));
|
|
10227
10227
|
},
|
|
@@ -10319,13 +10319,13 @@ const nr = {
|
|
|
10319
10319
|
return A.columnSizingStart.forEach((ht) => {
|
|
10320
10320
|
let [it, N] = ht;
|
|
10321
10321
|
c[it] = Math.round(Math.max(N + N * ct, 0) * 100) / 100;
|
|
10322
|
-
}),
|
|
10322
|
+
}), U(x({}, A), {
|
|
10323
10323
|
deltaOffset: et,
|
|
10324
10324
|
deltaPercentage: ct
|
|
10325
10325
|
});
|
|
10326
10326
|
}), (t.options.columnResizeMode === "onChange" || _ === "end") && t.setColumnSizing((A) => x(x({}, A), c)));
|
|
10327
|
-
},
|
|
10328
|
-
p("end", _), t.setColumnSizingInfo((S) =>
|
|
10327
|
+
}, h = (_) => p("move", _), u = (_) => {
|
|
10328
|
+
p("end", _), t.setColumnSizingInfo((S) => U(x({}, S), {
|
|
10329
10329
|
isResizingColumn: !1,
|
|
10330
10330
|
startOffset: null,
|
|
10331
10331
|
startSize: null,
|
|
@@ -10334,20 +10334,20 @@ const nr = {
|
|
|
10334
10334
|
columnSizingStart: []
|
|
10335
10335
|
}));
|
|
10336
10336
|
}, g = jb(i), v = {
|
|
10337
|
-
moveHandler: (_) =>
|
|
10337
|
+
moveHandler: (_) => h(_.clientX),
|
|
10338
10338
|
upHandler: (_) => {
|
|
10339
|
-
g == null || g.removeEventListener("mousemove", v.moveHandler), g == null || g.removeEventListener("mouseup", v.upHandler),
|
|
10339
|
+
g == null || g.removeEventListener("mousemove", v.moveHandler), g == null || g.removeEventListener("mouseup", v.upHandler), u(_.clientX);
|
|
10340
10340
|
}
|
|
10341
10341
|
}, w = {
|
|
10342
|
-
moveHandler: (_) => (_.cancelable && (_.preventDefault(), _.stopPropagation()),
|
|
10342
|
+
moveHandler: (_) => (_.cancelable && (_.preventDefault(), _.stopPropagation()), h(_.touches[0].clientX), !1),
|
|
10343
10343
|
upHandler: (_) => {
|
|
10344
10344
|
var S;
|
|
10345
|
-
g == null || g.removeEventListener("touchmove", w.moveHandler), g == null || g.removeEventListener("touchend", w.upHandler), _.cancelable && (_.preventDefault(), _.stopPropagation()),
|
|
10345
|
+
g == null || g.removeEventListener("touchmove", w.moveHandler), g == null || g.removeEventListener("touchend", w.upHandler), _.cancelable && (_.preventDefault(), _.stopPropagation()), u((S = _.touches[0]) == null ? void 0 : S.clientX);
|
|
10346
10346
|
}
|
|
10347
10347
|
}, y = qb() ? {
|
|
10348
10348
|
passive: !1
|
|
10349
10349
|
} : !1;
|
|
10350
|
-
wa(a) ? (g == null || g.addEventListener("touchmove", w.moveHandler, y), g == null || g.addEventListener("touchend", w.upHandler, y)) : (g == null || g.addEventListener("mousemove", v.moveHandler, y), g == null || g.addEventListener("mouseup", v.upHandler, y)), t.setColumnSizingInfo((_) =>
|
|
10350
|
+
wa(a) ? (g == null || g.addEventListener("touchmove", w.moveHandler, y), g == null || g.addEventListener("touchend", w.upHandler, y)) : (g == null || g.addEventListener("mousemove", v.moveHandler, y), g == null || g.addEventListener("mouseup", v.upHandler, y)), t.setColumnSizingInfo((_) => U(x({}, _), {
|
|
10351
10351
|
startOffset: l,
|
|
10352
10352
|
startSize: s,
|
|
10353
10353
|
deltaOffset: 0,
|
|
@@ -10409,7 +10409,7 @@ const Kb = {
|
|
|
10409
10409
|
}),
|
|
10410
10410
|
createColumn: (e, t) => {
|
|
10411
10411
|
e.toggleVisibility = (i) => {
|
|
10412
|
-
e.getCanHide() && t.setColumnVisibility((o) =>
|
|
10412
|
+
e.getCanHide() && t.setColumnVisibility((o) => U(x({}, o), {
|
|
10413
10413
|
[e.id]: i != null ? i : !e.getIsVisible()
|
|
10414
10414
|
}));
|
|
10415
10415
|
}, e.getIsVisible = () => {
|
|
@@ -10433,7 +10433,7 @@ const Kb = {
|
|
|
10433
10433
|
e.setColumnVisibility(i ? {} : (o = e.initialState.columnVisibility) != null ? o : {});
|
|
10434
10434
|
}, e.toggleAllColumnsVisible = (i) => {
|
|
10435
10435
|
var o;
|
|
10436
|
-
i = (o = i) != null ? o : !e.getIsAllColumnsVisible(), e.setColumnVisibility(e.getAllLeafColumns().reduce((r, a) =>
|
|
10436
|
+
i = (o = i) != null ? o : !e.getIsAllColumnsVisible(), e.setColumnVisibility(e.getAllLeafColumns().reduce((r, a) => U(x({}, r), {
|
|
10437
10437
|
[a.id]: i || !(a.getCanHide != null && a.getCanHide())
|
|
10438
10438
|
}), {}));
|
|
10439
10439
|
}, e.getIsAllColumnsVisible = () => !e.getAllLeafColumns().some((i) => !(i.getIsVisible != null && i.getIsVisible())), e.getIsSomeColumnsVisible = () => e.getAllLeafColumns().some((i) => i.getIsVisible == null ? void 0 : i.getIsVisible()), e.getToggleAllColumnsVisibilityHandler = () => (i) => {
|
|
@@ -10539,7 +10539,7 @@ const Gb = {
|
|
|
10539
10539
|
if (o === !0 ? Object.keys(t.getRowModel().rowsById).forEach((c) => {
|
|
10540
10540
|
s[c] = !0;
|
|
10541
10541
|
}) : s = o, i = (r = i) != null ? r : !a, !a && i)
|
|
10542
|
-
return
|
|
10542
|
+
return U(x({}, s), {
|
|
10543
10543
|
[e.id]: !0
|
|
10544
10544
|
});
|
|
10545
10545
|
if (a && !i) {
|
|
@@ -10575,7 +10575,7 @@ const Gb = {
|
|
|
10575
10575
|
pageIndex: Ta,
|
|
10576
10576
|
pageSize: Ma
|
|
10577
10577
|
}), Zb = {
|
|
10578
|
-
getInitialState: (e) =>
|
|
10578
|
+
getInitialState: (e) => U(x({}, e), {
|
|
10579
10579
|
pagination: x(x({}, _a()), e == null ? void 0 : e.pagination)
|
|
10580
10580
|
}),
|
|
10581
10581
|
getDefaultOptions: (e) => ({
|
|
@@ -10607,7 +10607,7 @@ const Gb = {
|
|
|
10607
10607
|
e.setPagination((r) => {
|
|
10608
10608
|
let a = vi(o, r.pageIndex);
|
|
10609
10609
|
const s = typeof e.options.pageCount == "undefined" || e.options.pageCount === -1 ? Number.MAX_SAFE_INTEGER : e.options.pageCount - 1;
|
|
10610
|
-
return a = Math.max(0, Math.min(a, s)),
|
|
10610
|
+
return a = Math.max(0, Math.min(a, s)), U(x({}, r), {
|
|
10611
10611
|
pageIndex: a
|
|
10612
10612
|
});
|
|
10613
10613
|
});
|
|
@@ -10620,7 +10620,7 @@ const Gb = {
|
|
|
10620
10620
|
}, e.setPageSize = (o) => {
|
|
10621
10621
|
e.setPagination((r) => {
|
|
10622
10622
|
const a = Math.max(1, vi(o, r.pageSize)), s = r.pageSize * r.pageIndex, d = Math.floor(s / a);
|
|
10623
|
-
return
|
|
10623
|
+
return U(x({}, r), {
|
|
10624
10624
|
pageIndex: d,
|
|
10625
10625
|
pageSize: a
|
|
10626
10626
|
});
|
|
@@ -10628,7 +10628,7 @@ const Gb = {
|
|
|
10628
10628
|
}, e.setPageCount = (o) => e.setPagination((r) => {
|
|
10629
10629
|
var a;
|
|
10630
10630
|
let s = vi(o, (a = e.options.pageCount) != null ? a : -1);
|
|
10631
|
-
return typeof s == "number" && (s = Math.max(-1, s)),
|
|
10631
|
+
return typeof s == "number" && (s = Math.max(-1, s)), U(x({}, r), {
|
|
10632
10632
|
pageCount: s
|
|
10633
10633
|
});
|
|
10634
10634
|
}), e.getPageOptions = Y(() => [e.getPageCount()], (o) => {
|
|
@@ -10673,10 +10673,10 @@ const Gb = {
|
|
|
10673
10673
|
t.setRowPinning((l) => {
|
|
10674
10674
|
var c, p;
|
|
10675
10675
|
if (i === "bottom") {
|
|
10676
|
-
var
|
|
10676
|
+
var h, u;
|
|
10677
10677
|
return {
|
|
10678
|
-
top: ((
|
|
10679
|
-
bottom: [...((
|
|
10678
|
+
top: ((h = l == null ? void 0 : l.top) != null ? h : []).filter((w) => !(d != null && d.has(w))),
|
|
10679
|
+
bottom: [...((u = l == null ? void 0 : l.bottom) != null ? u : []).filter((w) => !(d != null && d.has(w))), ...Array.from(d)]
|
|
10680
10680
|
};
|
|
10681
10681
|
}
|
|
10682
10682
|
if (i === "top") {
|
|
@@ -10741,7 +10741,7 @@ const Gb = {
|
|
|
10741
10741
|
) : (
|
|
10742
10742
|
//else get only visible rows that are pinned
|
|
10743
10743
|
(i != null ? i : []).map((s) => t.find((d) => d.id === s))
|
|
10744
|
-
)).filter(Boolean).map((s) =>
|
|
10744
|
+
)).filter(Boolean).map((s) => U(x({}, s), {
|
|
10745
10745
|
position: o
|
|
10746
10746
|
}));
|
|
10747
10747
|
}, e.getTopRows = Y(() => [e.getRowModel().rows, e.getState().rowPinning.top], (t, i) => e._getPinnedRows(t, i, "top"), Z(e.options, "debugRows", "getTopRows")), e.getBottomRows = Y(() => [e.getRowModel().rows, e.getState().rowPinning.bottom], (t, i) => e._getPinnedRows(t, i, "bottom"), Z(e.options, "debugRows", "getBottomRows")), e.getCenterRows = Y(() => [e.getRowModel().rows, e.getState().rowPinning.top, e.getState().rowPinning.bottom], (t, i, o) => {
|
|
@@ -10870,7 +10870,7 @@ function $a(e, t) {
|
|
|
10870
10870
|
return s.map((l) => {
|
|
10871
10871
|
var c;
|
|
10872
10872
|
const p = ds(l, i);
|
|
10873
|
-
if (p && (o.push(l), r[l.id] = l), (c = l.subRows) != null && c.length && (l =
|
|
10873
|
+
if (p && (o.push(l), r[l.id] = l), (c = l.subRows) != null && c.length && (l = U(x({}, l), {
|
|
10874
10874
|
subRows: a(l.subRows)
|
|
10875
10875
|
})), p)
|
|
10876
10876
|
return l;
|
|
@@ -10970,18 +10970,18 @@ const So = {
|
|
|
10970
10970
|
const r = e.getNextSortingOrder(), a = typeof i != "undefined" && i !== null;
|
|
10971
10971
|
t.setSorting((s) => {
|
|
10972
10972
|
const d = s == null ? void 0 : s.find((g) => g.id === e.id), l = s == null ? void 0 : s.findIndex((g) => g.id === e.id);
|
|
10973
|
-
let c = [], p,
|
|
10973
|
+
let c = [], p, h = a ? i : r === "desc";
|
|
10974
10974
|
if (s != null && s.length && e.getCanMultiSort() && o ? d ? p = "toggle" : p = "add" : s != null && s.length && l !== s.length - 1 ? p = "replace" : d ? p = "toggle" : p = "replace", p === "toggle" && (a || r || (p = "remove")), p === "add") {
|
|
10975
|
-
var
|
|
10975
|
+
var u;
|
|
10976
10976
|
c = [...s, {
|
|
10977
10977
|
id: e.id,
|
|
10978
|
-
desc:
|
|
10979
|
-
}], c.splice(0, c.length - ((
|
|
10980
|
-
} else p === "toggle" ? c = s.map((g) => g.id === e.id ?
|
|
10981
|
-
desc:
|
|
10978
|
+
desc: h
|
|
10979
|
+
}], c.splice(0, c.length - ((u = t.options.maxMultiSortColCount) != null ? u : Number.MAX_SAFE_INTEGER));
|
|
10980
|
+
} else p === "toggle" ? c = s.map((g) => g.id === e.id ? U(x({}, g), {
|
|
10981
|
+
desc: h
|
|
10982
10982
|
}) : g) : p === "remove" ? c = s.filter((g) => g.id !== e.id) : c = [{
|
|
10983
10983
|
id: e.id,
|
|
10984
|
-
desc:
|
|
10984
|
+
desc: h
|
|
10985
10985
|
}];
|
|
10986
10986
|
return c;
|
|
10987
10987
|
});
|
|
@@ -11048,20 +11048,20 @@ function df(e) {
|
|
|
11048
11048
|
let r = {
|
|
11049
11049
|
_features: o
|
|
11050
11050
|
};
|
|
11051
|
-
const a = r._features.reduce((
|
|
11051
|
+
const a = r._features.reduce((u, g) => Object.assign(u, g.getDefaultOptions == null ? void 0 : g.getDefaultOptions(r)), {}), s = (u) => r.options.mergeOptions ? r.options.mergeOptions(a, u) : x(x({}, a), u);
|
|
11052
11052
|
let l = x(x({}, {}), (i = e.initialState) != null ? i : {});
|
|
11053
|
-
r._features.forEach((
|
|
11053
|
+
r._features.forEach((u) => {
|
|
11054
11054
|
var g;
|
|
11055
|
-
l = (g =
|
|
11055
|
+
l = (g = u.getInitialState == null ? void 0 : u.getInitialState(l)) != null ? g : l;
|
|
11056
11056
|
});
|
|
11057
11057
|
const c = [];
|
|
11058
11058
|
let p = !1;
|
|
11059
|
-
const
|
|
11059
|
+
const h = {
|
|
11060
11060
|
_features: o,
|
|
11061
11061
|
options: x(x({}, a), e),
|
|
11062
11062
|
initialState: l,
|
|
11063
|
-
_queue: (
|
|
11064
|
-
c.push(
|
|
11063
|
+
_queue: (u) => {
|
|
11064
|
+
c.push(u), p || (p = !0, Promise.resolve().then(() => {
|
|
11065
11065
|
for (; c.length; )
|
|
11066
11066
|
c.shift()();
|
|
11067
11067
|
p = !1;
|
|
@@ -11072,32 +11072,32 @@ function df(e) {
|
|
|
11072
11072
|
reset: () => {
|
|
11073
11073
|
r.setState(r.initialState);
|
|
11074
11074
|
},
|
|
11075
|
-
setOptions: (
|
|
11076
|
-
const g = vi(
|
|
11075
|
+
setOptions: (u) => {
|
|
11076
|
+
const g = vi(u, r.options);
|
|
11077
11077
|
r.options = s(g);
|
|
11078
11078
|
},
|
|
11079
11079
|
getState: () => r.options.state,
|
|
11080
|
-
setState: (
|
|
11081
|
-
r.options.onStateChange == null || r.options.onStateChange(
|
|
11080
|
+
setState: (u) => {
|
|
11081
|
+
r.options.onStateChange == null || r.options.onStateChange(u);
|
|
11082
11082
|
},
|
|
11083
|
-
_getRowId: (
|
|
11083
|
+
_getRowId: (u, g, v) => {
|
|
11084
11084
|
var w;
|
|
11085
|
-
return (w = r.options.getRowId == null ? void 0 : r.options.getRowId(
|
|
11085
|
+
return (w = r.options.getRowId == null ? void 0 : r.options.getRowId(u, g, v)) != null ? w : `${v ? [v.id, g].join(".") : g}`;
|
|
11086
11086
|
},
|
|
11087
11087
|
getCoreRowModel: () => (r._getCoreRowModel || (r._getCoreRowModel = r.options.getCoreRowModel(r)), r._getCoreRowModel()),
|
|
11088
11088
|
// The final calls start at the bottom of the model,
|
|
11089
11089
|
// expanded rows, which then work their way up
|
|
11090
11090
|
getRowModel: () => r.getPaginationRowModel(),
|
|
11091
11091
|
//in next version, we should just pass in the row model as the optional 2nd arg
|
|
11092
|
-
getRow: (
|
|
11093
|
-
let v = (g ? r.getPrePaginationRowModel() : r.getRowModel()).rowsById[
|
|
11094
|
-
if (!v && (v = r.getCoreRowModel().rowsById[
|
|
11095
|
-
throw process.env.NODE_ENV !== "production" ? new Error(`getRow could not find row with ID: ${
|
|
11092
|
+
getRow: (u, g) => {
|
|
11093
|
+
let v = (g ? r.getPrePaginationRowModel() : r.getRowModel()).rowsById[u];
|
|
11094
|
+
if (!v && (v = r.getCoreRowModel().rowsById[u], !v))
|
|
11095
|
+
throw process.env.NODE_ENV !== "production" ? new Error(`getRow could not find row with ID: ${u}`) : new Error();
|
|
11096
11096
|
return v;
|
|
11097
11097
|
},
|
|
11098
|
-
_getDefaultColumnDef: Y(() => [r.options.defaultColumn], (
|
|
11098
|
+
_getDefaultColumnDef: Y(() => [r.options.defaultColumn], (u) => {
|
|
11099
11099
|
var g;
|
|
11100
|
-
return
|
|
11100
|
+
return u = (g = u) != null ? g : {}, x(x({
|
|
11101
11101
|
header: (v) => {
|
|
11102
11102
|
const w = v.header.column.columnDef;
|
|
11103
11103
|
return w.accessorKey ? w.accessorKey : w.accessorFn ? w.id : null;
|
|
@@ -11107,32 +11107,32 @@ function df(e) {
|
|
|
11107
11107
|
var w, y;
|
|
11108
11108
|
return (w = (y = v.renderValue()) == null || y.toString == null ? void 0 : y.toString()) != null ? w : null;
|
|
11109
11109
|
}
|
|
11110
|
-
}, r._features.reduce((v, w) => Object.assign(v, w.getDefaultColumnDef == null ? void 0 : w.getDefaultColumnDef()), {})),
|
|
11110
|
+
}, r._features.reduce((v, w) => Object.assign(v, w.getDefaultColumnDef == null ? void 0 : w.getDefaultColumnDef()), {})), u);
|
|
11111
11111
|
}, Z(e, "debugColumns", "_getDefaultColumnDef")),
|
|
11112
11112
|
_getColumnDefs: () => r.options.columns,
|
|
11113
|
-
getAllColumns: Y(() => [r._getColumnDefs()], (
|
|
11113
|
+
getAllColumns: Y(() => [r._getColumnDefs()], (u) => {
|
|
11114
11114
|
const g = function(v, w, y) {
|
|
11115
11115
|
return y === void 0 && (y = 0), v.map((_) => {
|
|
11116
11116
|
const S = Sb(r, _, y, w), A = _;
|
|
11117
11117
|
return S.columns = A.columns ? g(A.columns, S, y + 1) : [], S;
|
|
11118
11118
|
});
|
|
11119
11119
|
};
|
|
11120
|
-
return g(
|
|
11120
|
+
return g(u);
|
|
11121
11121
|
}, Z(e, "debugColumns", "getAllColumns")),
|
|
11122
|
-
getAllFlatColumns: Y(() => [r.getAllColumns()], (
|
|
11123
|
-
_getAllFlatColumnsById: Y(() => [r.getAllFlatColumns()], (
|
|
11124
|
-
getAllLeafColumns: Y(() => [r.getAllColumns(), r._getOrderColumnsFn()], (
|
|
11125
|
-
let v =
|
|
11122
|
+
getAllFlatColumns: Y(() => [r.getAllColumns()], (u) => u.flatMap((g) => g.getFlatColumns()), Z(e, "debugColumns", "getAllFlatColumns")),
|
|
11123
|
+
_getAllFlatColumnsById: Y(() => [r.getAllFlatColumns()], (u) => u.reduce((g, v) => (g[v.id] = v, g), {}), Z(e, "debugColumns", "getAllFlatColumnsById")),
|
|
11124
|
+
getAllLeafColumns: Y(() => [r.getAllColumns(), r._getOrderColumnsFn()], (u, g) => {
|
|
11125
|
+
let v = u.flatMap((w) => w.getLeafColumns());
|
|
11126
11126
|
return g(v);
|
|
11127
11127
|
}, Z(e, "debugColumns", "getAllLeafColumns")),
|
|
11128
|
-
getColumn: (
|
|
11129
|
-
const g = r._getAllFlatColumnsById()[
|
|
11130
|
-
return process.env.NODE_ENV !== "production" && !g && console.error(`[Table] Column with id '${
|
|
11128
|
+
getColumn: (u) => {
|
|
11129
|
+
const g = r._getAllFlatColumnsById()[u];
|
|
11130
|
+
return process.env.NODE_ENV !== "production" && !g && console.error(`[Table] Column with id '${u}' does not exist.`), g;
|
|
11131
11131
|
}
|
|
11132
11132
|
};
|
|
11133
|
-
Object.assign(r,
|
|
11134
|
-
for (let
|
|
11135
|
-
const g = r._features[
|
|
11133
|
+
Object.assign(r, h);
|
|
11134
|
+
for (let u = 0; u < r._features.length; u++) {
|
|
11135
|
+
const g = r._features[u];
|
|
11136
11136
|
g == null || g.createTable == null || g.createTable(r);
|
|
11137
11137
|
}
|
|
11138
11138
|
return r;
|
|
@@ -11184,20 +11184,20 @@ function pf(e) {
|
|
|
11184
11184
|
} = o;
|
|
11185
11185
|
const c = r * a, p = c + r;
|
|
11186
11186
|
s = s.slice(c, p);
|
|
11187
|
-
let
|
|
11188
|
-
t.options.paginateExpandedRows ?
|
|
11187
|
+
let h;
|
|
11188
|
+
t.options.paginateExpandedRows ? h = {
|
|
11189
11189
|
rows: s,
|
|
11190
11190
|
flatRows: d,
|
|
11191
11191
|
rowsById: l
|
|
11192
|
-
} :
|
|
11192
|
+
} : h = cf({
|
|
11193
11193
|
rows: s,
|
|
11194
11194
|
flatRows: d,
|
|
11195
11195
|
rowsById: l
|
|
11196
|
-
}),
|
|
11197
|
-
const
|
|
11198
|
-
|
|
11196
|
+
}), h.flatRows = [];
|
|
11197
|
+
const u = (g) => {
|
|
11198
|
+
h.flatRows.push(g), g.subRows.length && g.subRows.forEach(u);
|
|
11199
11199
|
};
|
|
11200
|
-
return
|
|
11200
|
+
return h.rows.forEach(u), h;
|
|
11201
11201
|
}, Z(t.options, "debugTable", "getPaginationRowModel"));
|
|
11202
11202
|
}
|
|
11203
11203
|
function uf() {
|
|
@@ -11218,26 +11218,26 @@ function uf() {
|
|
|
11218
11218
|
});
|
|
11219
11219
|
const d = (l) => {
|
|
11220
11220
|
const c = l.map((p) => x({}, p));
|
|
11221
|
-
return c.sort((p,
|
|
11221
|
+
return c.sort((p, h) => {
|
|
11222
11222
|
for (let g = 0; g < a.length; g += 1) {
|
|
11223
|
-
var
|
|
11224
|
-
const v = a[g], w = s[v.id], y = w.sortUndefined, _ = (
|
|
11223
|
+
var u;
|
|
11224
|
+
const v = a[g], w = s[v.id], y = w.sortUndefined, _ = (u = v == null ? void 0 : v.desc) != null ? u : !1;
|
|
11225
11225
|
let S = 0;
|
|
11226
11226
|
if (y) {
|
|
11227
|
-
const A = p.getValue(v.id), M =
|
|
11227
|
+
const A = p.getValue(v.id), M = h.getValue(v.id), E = A === void 0, tt = M === void 0;
|
|
11228
11228
|
if (E || tt) {
|
|
11229
11229
|
if (y === "first") return E ? -1 : 1;
|
|
11230
11230
|
if (y === "last") return E ? 1 : -1;
|
|
11231
11231
|
S = E && tt ? 0 : E ? y : -y;
|
|
11232
11232
|
}
|
|
11233
11233
|
}
|
|
11234
|
-
if (S === 0 && (S = w.sortingFn(p,
|
|
11234
|
+
if (S === 0 && (S = w.sortingFn(p, h, v.id)), S !== 0)
|
|
11235
11235
|
return _ && (S *= -1), w.invertSorting && (S *= -1), S;
|
|
11236
11236
|
}
|
|
11237
|
-
return p.index -
|
|
11237
|
+
return p.index - h.index;
|
|
11238
11238
|
}), c.forEach((p) => {
|
|
11239
|
-
var
|
|
11240
|
-
r.push(p), (
|
|
11239
|
+
var h;
|
|
11240
|
+
r.push(p), (h = p.subRows) != null && h.length && (p.subRows = d(p.subRows));
|
|
11241
11241
|
}), c;
|
|
11242
11242
|
};
|
|
11243
11243
|
return {
|
|
@@ -11277,7 +11277,7 @@ class hf {
|
|
|
11277
11277
|
}, t);
|
|
11278
11278
|
this.tableInstance = df(i), this._tableState = x(x({}, this.tableInstance.initialState), t.state);
|
|
11279
11279
|
}
|
|
11280
|
-
return this.tableInstance.setOptions((i) =>
|
|
11280
|
+
return this.tableInstance.setOptions((i) => U(x(x({}, i), t), {
|
|
11281
11281
|
state: x(x({}, this._tableState), t.state),
|
|
11282
11282
|
onStateChange: (o) => {
|
|
11283
11283
|
this._tableState = o(this._tableState), this.host.requestUpdate(), t.onStateChange == null || t.onStateChange(o);
|
|
@@ -11316,33 +11316,33 @@ const cn = (e, t, i) => {
|
|
|
11316
11316
|
const r = Nl(e), { values: a, keys: s } = this.dt(t, i, o);
|
|
11317
11317
|
if (!Array.isArray(r)) return this.ut = s, a;
|
|
11318
11318
|
const d = (w = this.ut) != null ? w : this.ut = [], l = [];
|
|
11319
|
-
let c, p,
|
|
11320
|
-
for (;
|
|
11321
|
-
else if (r[
|
|
11322
|
-
else if (d[
|
|
11323
|
-
else if (d[
|
|
11324
|
-
else if (d[
|
|
11325
|
-
else if (d[
|
|
11326
|
-
else if (c === void 0 && (c = cn(s, g, v), p = cn(d,
|
|
11319
|
+
let c, p, h = 0, u = r.length - 1, g = 0, v = a.length - 1;
|
|
11320
|
+
for (; h <= u && g <= v; ) if (r[h] === null) h++;
|
|
11321
|
+
else if (r[u] === null) u--;
|
|
11322
|
+
else if (d[h] === s[g]) l[g] = Ai(r[h], a[g]), h++, g++;
|
|
11323
|
+
else if (d[u] === s[v]) l[v] = Ai(r[u], a[v]), u--, v--;
|
|
11324
|
+
else if (d[h] === s[v]) l[v] = Ai(r[h], a[v]), $o(e, l[v + 1], r[h]), h++, v--;
|
|
11325
|
+
else if (d[u] === s[g]) l[g] = Ai(r[u], a[g]), $o(e, r[h], r[u]), u--, g++;
|
|
11326
|
+
else if (c === void 0 && (c = cn(s, g, v), p = cn(d, h, u)), c.has(d[h])) if (c.has(d[u])) {
|
|
11327
11327
|
const y = p.get(s[g]), _ = y !== void 0 ? r[y] : null;
|
|
11328
11328
|
if (_ === null) {
|
|
11329
|
-
const S = $o(e, r[
|
|
11329
|
+
const S = $o(e, r[h]);
|
|
11330
11330
|
Ai(S, a[g]), l[g] = S;
|
|
11331
|
-
} else l[g] = Ai(_, a[g]), $o(e, r[
|
|
11331
|
+
} else l[g] = Ai(_, a[g]), $o(e, r[h], _), r[y] = null;
|
|
11332
11332
|
g++;
|
|
11333
|
-
} else ga(r[
|
|
11334
|
-
else ga(r[
|
|
11333
|
+
} else ga(r[u]), u--;
|
|
11334
|
+
else ga(r[h]), h++;
|
|
11335
11335
|
for (; g <= v; ) {
|
|
11336
11336
|
const y = $o(e, l[v + 1]);
|
|
11337
11337
|
Ai(y, a[g]), l[g++] = y;
|
|
11338
11338
|
}
|
|
11339
|
-
for (;
|
|
11340
|
-
const y = r[
|
|
11339
|
+
for (; h <= u; ) {
|
|
11340
|
+
const y = r[h++];
|
|
11341
11341
|
y !== null && ga(y);
|
|
11342
11342
|
}
|
|
11343
11343
|
return this.ut = s, Hl(e, l), Rr;
|
|
11344
11344
|
}
|
|
11345
|
-
}), gf = ":host{--dds-datatable-bg-color: var(--dds-background-neutral-subtle);--dds-datatable-border-color: var(--dds-border-neutral-divider);--dds-datatable-header-bg-color: var(--dds-background-neutral-subtle);--dds-datatable-header-text-color: var(--dds-text-neutral-strong);--dds-datatable-row-hover-bg-color: var(--dds-background-brand-strong);--dds-datatable-row-selected-bg-color: var(--dds-background-brand-strong);--dds-datatable-cell-padding: var(--dds-spacing-200);--dds-datatable-header-padding: var(--dds-spacing-200);--dds-datatable-last-column-padding: var(--dds-spacing-500);--dds-datatable-first-column-padding: var(--dds-spacing-500);--dds-datatable-border-width: var(--dds-border-width-base);--dds-datatable-outer-border-width: var(--dds-datatable-border-width);--dds-datatable-header-border-width: var(--dds-datatable-border-width);--dds-datatable-row-border-width: var(--dds-datatable-border-width);--dds-datatable-stripe-color: var(--dds-background-neutral-base);--dds-datatable-border-radius: var(--dds-radius-base);--dds-datatable-shadow: none;--dds-datatable-transition-duration: .2s;--dds-datatable-z-index: 1;--dds-datatable-min-height: auto;--dds-datatable-max-height: none;--dds-datatable-overflow-x: auto;--dds-datatable-overflow-y: auto}.data-table-container{display:block;width:100%;min-height:var(--dds-datatable-min-height, auto);max-height:var(--dds-datatable-max-height, none);overflow-x:var(--dds-datatable-overflow-x, auto);overflow-y:var(--dds-datatable-overflow-y, auto);border:var(--dds-datatable-outer-border-width) solid var(--dds-datatable-border-color);border-radius:var(--dds-datatable-border-radius)}.data-table{width:100%;min-width:max-content;table-layout:fixed;border-spacing:0;border-collapse:separate;background-color:var(--dds-datatable-bg-color);line-height:150%}.data-table-header-row th:last-child{padding-right:var(--dds-datatable-last-column-padding);border-right-width:0;border-top-right-radius:var(--dds-datatable-border-radius)}.data-table-header-row th:first-child{padding-left:var(--dds-datatable-first-column-padding);border-top-left-radius:var(--dds-datatable-border-radius)}.data-table-header-cell{padding:var(--dds-datatable-header-padding);overflow:hidden;border-bottom:var(--dds-datatable-header-border-width) solid var(--dds-datatable-border-color);background-color:var(--dds-datatable-header-bg-color);color:var(--dds-datatable-header-text-color);text-align:left}.data-table-header-cell>div{display:flex;align-items:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;gap:var(--dds-spacing-100)}.data-table-header-cell__content{display:flex;align-items:center;justify-content:inherit;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;gap:var(--dds-spacing-100)}.data-table-header-cell__controller::part(base){min-width:auto;padding:0}.data-table-cell{padding:var(--dds-datatable-cell-padding);overflow:hidden;border-bottom:var(--dds-datatable-row-border-width) solid var(--dds-datatable-border-color);text-overflow:ellipsis;white-space:nowrap}.data-table-row--clickable{cursor:pointer}.data-table-row--striped:nth-child(odd):not(.data-table-row--empty)>td{background-color:var(--dds-datatable-stripe-color)}.data-table-row--striped:nth-child(odd):not(.data-table-row--empty)>td:hover{background-color:var(--dds-datatable-row-hover-bg-color)}.data-table-row--selected.data-table-row--striped:nth-child(odd)>td{background-color:var(--dds-datatable-row-selected-bg-color)}.data-table-row:hover:not(.data-table-row--empty)>td{background-color:var(--dds-datatable-row-hover-bg-color)}.data-table-row--selected>td{background-color:var(--dds-datatable-row-selected-bg-color)}.data-table-row--empty{cursor:default;pointer-events:none}.data-table-row td{border-bottom:var(--dds-datatable-row-border-width) solid var(--dds-datatable-border-color)}.data-table-row td:last-child{padding-right:var(--dds-datatable-last-column-padding);border-right-width:0}.data-table-row td:first-child{padding-left:var(--dds-datatable-first-column-padding)}.data-table-row:last-child td{border-bottom:0}.data-table-placeholder{display:flex;align-items:center;justify-content:center;height:100%;padding:var(--dds-spacing-500)}";
|
|
11345
|
+
}), gf = ":host{--dds-datatable-bg-color: var(--dds-background-neutral-subtle);--dds-datatable-border-color: var(--dds-border-neutral-divider);--dds-datatable-header-bg-color: var(--dds-background-neutral-subtle);--dds-datatable-header-text-color: var(--dds-text-neutral-strong);--dds-datatable-row-hover-bg-color: var(--dds-background-brand-strong);--dds-datatable-row-selected-bg-color: var(--dds-background-brand-strong);--dds-datatable-cell-padding: var(--dds-spacing-200);--dds-datatable-header-padding: var(--dds-spacing-200);--dds-datatable-last-column-padding: var(--dds-spacing-500);--dds-datatable-first-column-padding: var(--dds-spacing-500);--dds-datatable-border-width: var(--dds-border-width-base);--dds-datatable-outer-border-width: var(--dds-datatable-border-width);--dds-datatable-header-border-width: var(--dds-datatable-border-width);--dds-datatable-row-border-width: var(--dds-datatable-border-width);--dds-datatable-stripe-color: var(--dds-background-neutral-base);--dds-datatable-border-radius: var(--dds-radius-base);--dds-datatable-shadow: none;--dds-datatable-transition-duration: .2s;--dds-datatable-z-index: 1;--dds-datatable-min-height: auto;--dds-datatable-max-height: none;--dds-datatable-overflow-x: auto;--dds-datatable-overflow-y: auto}.data-table-container{display:block;width:100%;min-height:var(--dds-datatable-min-height, auto);max-height:var(--dds-datatable-max-height, none);overflow-x:var(--dds-datatable-overflow-x, auto);overflow-y:var(--dds-datatable-overflow-y, auto);border:var(--dds-datatable-outer-border-width) solid var(--dds-datatable-border-color);border-radius:var(--dds-datatable-border-radius)}.data-table{width:100%;min-width:max-content;table-layout:fixed;border-spacing:0;border-collapse:separate;background-color:var(--dds-datatable-bg-color);line-height:150%}.data-table-header-row th:last-child{padding-right:var(--dds-datatable-last-column-padding);border-right-width:0;border-top-right-radius:var(--dds-datatable-border-radius)}.data-table-header-row th:first-child{padding-left:var(--dds-datatable-first-column-padding);border-top-left-radius:var(--dds-datatable-border-radius)}.data-table-header-cell{padding:var(--dds-datatable-header-padding);overflow:hidden;border-bottom:var(--dds-datatable-header-border-width) solid var(--dds-datatable-border-color);background-color:var(--dds-datatable-header-bg-color);color:var(--dds-datatable-header-text-color);text-align:left}.data-table-header-cell>div{display:flex;align-items:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;gap:var(--dds-spacing-100)}.data-table-header-cell__content{display:flex;align-items:center;justify-content:inherit;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;gap:var(--dds-spacing-100)}.data-table-header-cell__controller::part(base){min-width:auto;padding:0}.data-table-cell{padding:var(--dds-datatable-cell-padding);overflow:hidden;border-bottom:var(--dds-datatable-row-border-width) solid var(--dds-datatable-border-color);text-overflow:ellipsis;white-space:nowrap}.data-table-cell--sticky-left,.data-table-cell--sticky-right{background-color:var(--dds-datatable-bg-color)}.data-table-cell--sticky-left,.data-table-header-cell--sticky-left{border-right:var(--dds-datatable-row-border-width) solid var(--dds-datatable-border-color)}.data-table-cell--sticky-right,.data-table-header-cell--sticky-right{border-left:var(--dds-datatable-row-border-width) solid var(--dds-datatable-border-color)}.data-table-row--clickable{cursor:pointer}.data-table-row--striped:nth-child(odd):not(.data-table-row--empty)>td{background-color:var(--dds-datatable-stripe-color)}.data-table-row--striped:nth-child(odd):not(.data-table-row--empty)>td:hover{background-color:var(--dds-datatable-row-hover-bg-color)}.data-table-row--selected.data-table-row--striped:nth-child(odd)>td{background-color:var(--dds-datatable-row-selected-bg-color)}.data-table-row:hover:not(.data-table-row--empty)>td{background-color:var(--dds-datatable-row-hover-bg-color)}.data-table-row--selected>td{background-color:var(--dds-datatable-row-selected-bg-color)}.data-table-row--empty{cursor:default;pointer-events:none}.data-table-row td{border-bottom:var(--dds-datatable-row-border-width) solid var(--dds-datatable-border-color)}.data-table-row td:last-child{padding-right:var(--dds-datatable-last-column-padding);border-right-width:0}.data-table-row td:first-child{padding-left:var(--dds-datatable-first-column-padding)}.data-table-row:last-child td{border-bottom:0}.data-table-placeholder{display:flex;align-items:center;justify-content:center;height:100%;padding:var(--dds-spacing-500)}";
|
|
11346
11346
|
function bf(e) {
|
|
11347
11347
|
return typeof e == "object" && e !== null && "_$litType$" in e && "strings" in e && "values" in e;
|
|
11348
11348
|
}
|
|
@@ -11387,27 +11387,28 @@ function _f(e) {
|
|
|
11387
11387
|
function kf(e) {
|
|
11388
11388
|
return e == null ? z : bf(e) || e instanceof HTMLElement ? e : vf(e) ? _f(e) : mf(e) ? wf(e) : ff(e) ? xf(e) : e;
|
|
11389
11389
|
}
|
|
11390
|
-
var $f = Object.defineProperty, Sf = Object.getOwnPropertyDescriptor,
|
|
11390
|
+
var $f = Object.defineProperty, Sf = Object.getOwnPropertyDescriptor, G = (e, t, i, o) => {
|
|
11391
11391
|
for (var r = o > 1 ? void 0 : o ? Sf(t, i) : t, a = e.length - 1, s; a >= 0; a--)
|
|
11392
11392
|
(s = e[a]) && (r = (o ? s(t, i, r) : s(r)) || r);
|
|
11393
11393
|
return o && r && $f(t, i, r), r;
|
|
11394
11394
|
};
|
|
11395
11395
|
const za = "__multiSelect__";
|
|
11396
|
-
let
|
|
11396
|
+
let j = class extends T {
|
|
11397
11397
|
constructor() {
|
|
11398
|
-
super(...arguments), this.tableController = new hf(this), this.data = [], this.columns = [], this.rowKey = "id", this.enableRowSelection = !1, this.enableSorting = !1, this.manualSorting = !1, this.manualPagination = !1, this.autoResetPageIndex = !1, this.enableRowClick = !1, this.loading = !1, this.enableStripedRows = !1, this.loadingType = "spinner", this.loadingVariant = "neutral", this.loadingSize = "lg", this.disableHeaderOnEmpty = "true", this.showPagerOnEmpty = !1, this.pager = !1, this.showPageSizeOptions = "true", this.showPageIndex = "true", this.showPageCount = "true", this.showFirstButton = "true", this.showPreviousButton = "true", this.showNextButton = "true", this.showLastButton = "true", this.showPageNumbers = "false", this.siblingCount = 1, this.sortButtonTestId = "datatable-sort-button", this.pageSizeOptions = [10, 25, 50, 100], this._sorting = [], this._rowSelection = {}, this._pagination = {
|
|
11398
|
+
super(...arguments), this.tableController = new hf(this), this.stickyOffsets = /* @__PURE__ */ new Map(), this.data = [], this.columns = [], this.rowKey = "id", this.enableRowSelection = !1, this.stickySelectionColumn = !1, this.enableSorting = !1, this.manualSorting = !1, this.manualPagination = !1, this.autoResetPageIndex = !1, this.enableRowClick = !1, this.loading = !1, this.enableStripedRows = !1, this.loadingType = "spinner", this.loadingVariant = "neutral", this.loadingSize = "lg", this.disableHeaderOnEmpty = "true", this.showPagerOnEmpty = !1, this.pager = !1, this.showPageSizeOptions = "true", this.showPageIndex = "true", this.showPageCount = "true", this.showFirstButton = "true", this.showPreviousButton = "true", this.showNextButton = "true", this.showLastButton = "true", this.showPageNumbers = "false", this.siblingCount = 1, this.sortButtonTestId = "datatable-sort-button", this.pageSizeOptions = [10, 25, 50, 100], this._sorting = [], this._rowSelection = {}, this._pagination = {
|
|
11399
11399
|
pageIndex: 0,
|
|
11400
11400
|
pageSize: 10
|
|
11401
11401
|
}, this._columnSizing = {}, this.ariaLabel = null, this._statusMessage = "", this.debug = !1, this.columnsMemo = () => {
|
|
11402
|
-
const e = this.columns.map((t) => !t.size && !t.minSize && !t.maxSize ?
|
|
11402
|
+
const e = this.columns.map((t) => !t.size && !t.minSize && !t.maxSize ? U(x({}, t), { minSize: 0 }) : t);
|
|
11403
11403
|
return [
|
|
11404
11404
|
...this.enableRowSelection && this.columns[0] && this.columns[0].id !== za ? [
|
|
11405
|
-
{
|
|
11405
|
+
U(x({
|
|
11406
11406
|
id: za,
|
|
11407
11407
|
accessorKey: za,
|
|
11408
11408
|
enableSorting: !1,
|
|
11409
11409
|
size: 50,
|
|
11410
|
-
maxSize: 50
|
|
11410
|
+
maxSize: 50
|
|
11411
|
+
}, this.stickySelectionColumn ? { sticky: "left" } : {}), {
|
|
11411
11412
|
header: ({ table: t }) => b`<dap-ds-checkbox
|
|
11412
11413
|
isIndeterminate=${t.getIsSomeRowsSelected()}
|
|
11413
11414
|
@dds-change=${t.getToggleAllRowsSelectedHandler()}
|
|
@@ -11419,7 +11420,7 @@ let U = class extends T {
|
|
|
11419
11420
|
.checked="${t.getIsSelected()}"
|
|
11420
11421
|
?disabled="${!t.getCanSelect()}"
|
|
11421
11422
|
.indeterminate="${t.getIsSomeSelected()}"></dap-ds-checkbox>`
|
|
11422
|
-
}
|
|
11423
|
+
})
|
|
11423
11424
|
] : [],
|
|
11424
11425
|
...e
|
|
11425
11426
|
];
|
|
@@ -11509,7 +11510,7 @@ let U = class extends T {
|
|
|
11509
11510
|
<div part="empty" class="data-table-placeholder">
|
|
11510
11511
|
<slot name="empty">
|
|
11511
11512
|
<span
|
|
11512
|
-
>${(i = this.emptyText) != null ? i :
|
|
11513
|
+
>${(i = this.emptyText) != null ? i : q("datatable.noData")}</span
|
|
11513
11514
|
>
|
|
11514
11515
|
</slot>
|
|
11515
11516
|
</div>
|
|
@@ -11529,21 +11530,23 @@ let U = class extends T {
|
|
|
11529
11530
|
})}
|
|
11530
11531
|
@click=${() => this.handleRowClick(o)}
|
|
11531
11532
|
@keydown=${(a) => this.handleRowKeydown(a, o)}>
|
|
11532
|
-
${o.getVisibleCells().map(
|
|
11533
|
-
(a)
|
|
11533
|
+
${o.getVisibleCells().map((a) => {
|
|
11534
|
+
const s = a.column.columnDef, d = this.stickyOffsets.get(a.column.id), l = [
|
|
11535
|
+
s.textAlign && `text-align: ${s.textAlign};`,
|
|
11536
|
+
this.getStickyStyle(a.column.id)
|
|
11537
|
+
].filter(Boolean).join(" ") || void 0;
|
|
11538
|
+
return b`
|
|
11534
11539
|
<td
|
|
11535
11540
|
part="cell"
|
|
11536
|
-
class=${m(
|
|
11537
|
-
|
|
11538
|
-
|
|
11539
|
-
|
|
11540
|
-
|
|
11541
|
-
})()
|
|
11542
|
-
)}">
|
|
11541
|
+
class=${m(
|
|
11542
|
+
"data-table-cell",
|
|
11543
|
+
d && `data-table-cell--sticky-${d.side}`
|
|
11544
|
+
)}
|
|
11545
|
+
style="${f(l)}">
|
|
11543
11546
|
${this.renderCell(a)}
|
|
11544
11547
|
</td>
|
|
11545
|
-
|
|
11546
|
-
)}
|
|
11548
|
+
`;
|
|
11549
|
+
})}
|
|
11547
11550
|
</tr>
|
|
11548
11551
|
`
|
|
11549
11552
|
)}
|
|
@@ -11561,7 +11564,7 @@ let U = class extends T {
|
|
|
11561
11564
|
return this.disableHeaderOnEmpty === "true" && this.isTableEmpty;
|
|
11562
11565
|
}
|
|
11563
11566
|
firstUpdated(e) {
|
|
11564
|
-
super.firstUpdated(e), this.sorting && (this._sorting = this.sorting), this.rowSelection && (this._rowSelection = this.rowSelection), this.pagination ? this._pagination = this.pagination : this.pageSizeOptions && this.pageSizeOptions.length > 0 && (this._pagination =
|
|
11567
|
+
super.firstUpdated(e), this.sorting && (this._sorting = this.sorting), this.rowSelection && (this._rowSelection = this.rowSelection), this.pagination ? this._pagination = this.pagination : this.pageSizeOptions && this.pageSizeOptions.length > 0 && (this._pagination = U(x({}, this._pagination), {
|
|
11565
11568
|
pageSize: this.pageSizeOptions[0]
|
|
11566
11569
|
}));
|
|
11567
11570
|
}
|
|
@@ -11574,26 +11577,54 @@ let U = class extends T {
|
|
|
11574
11577
|
disconnectedCallback() {
|
|
11575
11578
|
super.disconnectedCallback(), this.resizeObserver && (this.resizeObserver.disconnect(), this.resizeObserver = void 0);
|
|
11576
11579
|
}
|
|
11580
|
+
// Walks the visible leaf columns from each edge inward, giving every pinned
|
|
11581
|
+
// column its offset (the summed width of the already-seen pinned columns on
|
|
11582
|
+
// that side). getSize() resolves to the column's `size`, so a pinned column
|
|
11583
|
+
// without a size contributes 0 and the next one on that side would overlap it.
|
|
11584
|
+
computeStickyOffsets(e) {
|
|
11585
|
+
const t = /* @__PURE__ */ new Map(), i = e.getVisibleLeafColumns();
|
|
11586
|
+
let o = 0;
|
|
11587
|
+
for (let a = i.length - 1; a >= 0; a--) {
|
|
11588
|
+
const s = i[a];
|
|
11589
|
+
s.columnDef.sticky === "right" && (t.set(s.id, { side: "right", offset: o }), o += s.getSize());
|
|
11590
|
+
}
|
|
11591
|
+
let r = 0;
|
|
11592
|
+
for (const a of i)
|
|
11593
|
+
a.columnDef.sticky === "left" && (t.set(a.id, { side: "left", offset: r }), r += a.getSize());
|
|
11594
|
+
this.stickyOffsets = t;
|
|
11595
|
+
}
|
|
11596
|
+
// Inline sticky positioning for a pinned column. z-index lifts the cell above
|
|
11597
|
+
// the row cells scrolling under it (needed for a left-pinned column, whose
|
|
11598
|
+
// siblings paint after it). The opaque background and edge divider come from
|
|
11599
|
+
// the `--sticky-*` classes in the stylesheet.
|
|
11600
|
+
getStickyStyle(e) {
|
|
11601
|
+
const t = this.stickyOffsets.get(e);
|
|
11602
|
+
if (t)
|
|
11603
|
+
return `position: sticky; ${t.side}: ${t.offset}px; z-index: 1;`;
|
|
11604
|
+
}
|
|
11577
11605
|
renderHeaderCell(e, t = !1) {
|
|
11578
11606
|
var u;
|
|
11579
|
-
const i = e.column.columnDef, o = e.column.getCanSort(), r = e.column.getIsSorted(), a = e.column.getNextSortingOrder(), s = (u = i.disableDefaultSorting) != null ? u : !1, d = this.
|
|
11607
|
+
const i = e.column.columnDef, o = e.column.getCanSort(), r = e.column.getIsSorted(), a = e.column.getNextSortingOrder(), s = (u = i.disableDefaultSorting) != null ? u : !1, d = this.stickyOffsets.get(e.column.id), l = [this.getHeaderCellStyle(e), this.getStickyStyle(e.column.id)].filter(Boolean).join(" ") || void 0, c = i.headerTextAlign ? `justify-content: ${i.headerTextAlign};` : void 0, p = this.getSortIcon(r), h = this.getSortTitle(o, a);
|
|
11580
11608
|
return b`
|
|
11581
11609
|
<th
|
|
11582
11610
|
colspan="${e.colSpan}"
|
|
11583
11611
|
rowspan="${e.rowSpan}"
|
|
11584
11612
|
part="header-cell"
|
|
11585
|
-
class
|
|
11613
|
+
class=${m(
|
|
11614
|
+
"data-table-header-cell",
|
|
11615
|
+
d && `data-table-header-cell--sticky-${d.side}`
|
|
11616
|
+
)}
|
|
11586
11617
|
scope="col"
|
|
11587
11618
|
aria-sort=${o && !this.shouldDisableHeaderActions ? this.getAriaSortValue(r) : "none"}
|
|
11588
|
-
style="${f(
|
|
11619
|
+
style="${f(l)}">
|
|
11589
11620
|
${this.renderHeaderCellContent(
|
|
11590
11621
|
e,
|
|
11591
11622
|
i,
|
|
11592
11623
|
o,
|
|
11593
11624
|
s,
|
|
11594
|
-
|
|
11595
|
-
|
|
11596
|
-
|
|
11625
|
+
h,
|
|
11626
|
+
c,
|
|
11627
|
+
p
|
|
11597
11628
|
)}
|
|
11598
11629
|
</th>
|
|
11599
11630
|
`;
|
|
@@ -11635,7 +11666,7 @@ let U = class extends T {
|
|
|
11635
11666
|
}
|
|
11636
11667
|
getSortTitle(e, t) {
|
|
11637
11668
|
if (e)
|
|
11638
|
-
return
|
|
11669
|
+
return q(t === "asc" ? "datatable.sortAscending" : t === "desc" ? "datatable.sortDescending" : "datatable.clearSort");
|
|
11639
11670
|
}
|
|
11640
11671
|
getAriaSortValue(e) {
|
|
11641
11672
|
return e === "asc" ? "ascending" : e === "desc" ? "descending" : "none";
|
|
@@ -11663,7 +11694,7 @@ let U = class extends T {
|
|
|
11663
11694
|
}
|
|
11664
11695
|
render() {
|
|
11665
11696
|
var t, i, o, r;
|
|
11666
|
-
const e = this.tableController.table(
|
|
11697
|
+
const e = this.tableController.table(U(x({
|
|
11667
11698
|
data: this.data,
|
|
11668
11699
|
columns: this.columnsMemo(),
|
|
11669
11700
|
filterFns: {},
|
|
@@ -11702,13 +11733,13 @@ let U = class extends T {
|
|
|
11702
11733
|
debugHeaders: this.debug,
|
|
11703
11734
|
debugColumns: this.debug
|
|
11704
11735
|
}));
|
|
11705
|
-
return b`
|
|
11736
|
+
return this.computeStickyOffsets(e), b`
|
|
11706
11737
|
<div class="data-table-container">
|
|
11707
11738
|
<table
|
|
11708
11739
|
part="base"
|
|
11709
11740
|
role="table"
|
|
11710
11741
|
aria-label=${f(
|
|
11711
|
-
(i = this.ariaLabel) != null ? i :
|
|
11742
|
+
(i = this.ariaLabel) != null ? i : q("datatable.tableDescription")
|
|
11712
11743
|
)}
|
|
11713
11744
|
aria-describedby=${f(this.ariaDescribedBy)}
|
|
11714
11745
|
aria-rowcount=${(o = this.rowCount) != null ? o : this.data ? this.data.length : 0}
|
|
@@ -11757,172 +11788,175 @@ let U = class extends T {
|
|
|
11757
11788
|
a.preventDefault(), a.stopPropagation(), a.detail.action === "pageSize" ? e.setPageSize(a.detail.pagination.pageSize) : e.setPageIndex(a.detail.pagination.pageIndex);
|
|
11758
11789
|
}}>
|
|
11759
11790
|
<slot name="first-button-label" slot="first-button-label">
|
|
11760
|
-
${this.firstButtonLabel ||
|
|
11791
|
+
${this.firstButtonLabel || q("pager.first")}
|
|
11761
11792
|
</slot>
|
|
11762
11793
|
<slot name="previous-button-label" slot="previous-button-label">
|
|
11763
|
-
${this.previousButtonLabel ||
|
|
11794
|
+
${this.previousButtonLabel || q("pager.previous")}
|
|
11764
11795
|
</slot>
|
|
11765
11796
|
<slot name="next-button-label" slot="next-button-label">
|
|
11766
|
-
${this.nextButtonLabel ||
|
|
11797
|
+
${this.nextButtonLabel || q("pager.next")}
|
|
11767
11798
|
</slot>
|
|
11768
11799
|
<slot name="last-button-label" slot="last-button-label">
|
|
11769
|
-
${this.lastButtonLabel ||
|
|
11800
|
+
${this.lastButtonLabel || q("pager.last")}
|
|
11770
11801
|
</slot>
|
|
11771
11802
|
</dap-ds-pager>` : z}
|
|
11772
11803
|
`;
|
|
11773
11804
|
}
|
|
11774
11805
|
};
|
|
11775
|
-
|
|
11776
|
-
|
|
11806
|
+
j.styles = I(gf);
|
|
11807
|
+
G([
|
|
11777
11808
|
n({ attribute: !1 })
|
|
11778
|
-
],
|
|
11779
|
-
|
|
11809
|
+
], j.prototype, "data", 2);
|
|
11810
|
+
G([
|
|
11780
11811
|
n({ attribute: !1 })
|
|
11781
|
-
],
|
|
11782
|
-
|
|
11812
|
+
], j.prototype, "columns", 2);
|
|
11813
|
+
G([
|
|
11783
11814
|
n()
|
|
11784
|
-
],
|
|
11785
|
-
|
|
11815
|
+
], j.prototype, "rowKey", 2);
|
|
11816
|
+
G([
|
|
11817
|
+
n({ type: Boolean })
|
|
11818
|
+
], j.prototype, "enableRowSelection", 2);
|
|
11819
|
+
G([
|
|
11786
11820
|
n({ type: Boolean })
|
|
11787
|
-
],
|
|
11788
|
-
|
|
11821
|
+
], j.prototype, "stickySelectionColumn", 2);
|
|
11822
|
+
G([
|
|
11789
11823
|
n({ type: Boolean })
|
|
11790
|
-
],
|
|
11791
|
-
|
|
11824
|
+
], j.prototype, "enableSorting", 2);
|
|
11825
|
+
G([
|
|
11792
11826
|
n({ type: Boolean })
|
|
11793
|
-
],
|
|
11794
|
-
|
|
11827
|
+
], j.prototype, "manualSorting", 2);
|
|
11828
|
+
G([
|
|
11795
11829
|
n({ type: Boolean })
|
|
11796
|
-
],
|
|
11797
|
-
|
|
11830
|
+
], j.prototype, "manualPagination", 2);
|
|
11831
|
+
G([
|
|
11798
11832
|
n({ type: Boolean })
|
|
11799
|
-
],
|
|
11800
|
-
|
|
11833
|
+
], j.prototype, "autoResetPageIndex", 2);
|
|
11834
|
+
G([
|
|
11801
11835
|
n({ type: Boolean })
|
|
11802
|
-
],
|
|
11803
|
-
|
|
11836
|
+
], j.prototype, "enableRowClick", 2);
|
|
11837
|
+
G([
|
|
11804
11838
|
n({ type: Boolean })
|
|
11805
|
-
],
|
|
11806
|
-
|
|
11839
|
+
], j.prototype, "loading", 2);
|
|
11840
|
+
G([
|
|
11807
11841
|
n({ type: Boolean })
|
|
11808
|
-
],
|
|
11809
|
-
|
|
11842
|
+
], j.prototype, "enableStripedRows", 2);
|
|
11843
|
+
G([
|
|
11810
11844
|
n({ type: Number })
|
|
11811
|
-
],
|
|
11812
|
-
|
|
11845
|
+
], j.prototype, "rowCount", 2);
|
|
11846
|
+
G([
|
|
11813
11847
|
n({ type: String })
|
|
11814
|
-
],
|
|
11815
|
-
|
|
11848
|
+
], j.prototype, "caption", 2);
|
|
11849
|
+
G([
|
|
11816
11850
|
n({ type: String })
|
|
11817
|
-
],
|
|
11818
|
-
|
|
11851
|
+
], j.prototype, "loadingType", 2);
|
|
11852
|
+
G([
|
|
11819
11853
|
n({ type: String, reflect: !0 })
|
|
11820
|
-
],
|
|
11821
|
-
|
|
11854
|
+
], j.prototype, "loadingVariant", 2);
|
|
11855
|
+
G([
|
|
11822
11856
|
n({ type: String, reflect: !0 })
|
|
11823
|
-
],
|
|
11824
|
-
|
|
11857
|
+
], j.prototype, "loadingSize", 2);
|
|
11858
|
+
G([
|
|
11825
11859
|
n({ type: Number })
|
|
11826
|
-
],
|
|
11827
|
-
|
|
11860
|
+
], j.prototype, "loadingStaticSize", 2);
|
|
11861
|
+
G([
|
|
11828
11862
|
n({ type: String })
|
|
11829
|
-
],
|
|
11830
|
-
|
|
11863
|
+
], j.prototype, "loadingText", 2);
|
|
11864
|
+
G([
|
|
11831
11865
|
n({ type: String })
|
|
11832
|
-
],
|
|
11833
|
-
|
|
11866
|
+
], j.prototype, "emptyText", 2);
|
|
11867
|
+
G([
|
|
11834
11868
|
n({ type: String })
|
|
11835
|
-
],
|
|
11836
|
-
|
|
11869
|
+
], j.prototype, "disableHeaderOnEmpty", 2);
|
|
11870
|
+
G([
|
|
11837
11871
|
n({ type: Boolean })
|
|
11838
|
-
],
|
|
11839
|
-
|
|
11872
|
+
], j.prototype, "showPagerOnEmpty", 2);
|
|
11873
|
+
G([
|
|
11840
11874
|
n({ type: Boolean })
|
|
11841
|
-
],
|
|
11842
|
-
|
|
11875
|
+
], j.prototype, "pager", 2);
|
|
11876
|
+
G([
|
|
11843
11877
|
n({ type: String })
|
|
11844
|
-
],
|
|
11845
|
-
|
|
11878
|
+
], j.prototype, "showPageSizeOptions", 2);
|
|
11879
|
+
G([
|
|
11846
11880
|
n({ type: String })
|
|
11847
|
-
],
|
|
11848
|
-
|
|
11881
|
+
], j.prototype, "showPageIndex", 2);
|
|
11882
|
+
G([
|
|
11849
11883
|
n({ type: String })
|
|
11850
|
-
],
|
|
11851
|
-
|
|
11884
|
+
], j.prototype, "showPageCount", 2);
|
|
11885
|
+
G([
|
|
11852
11886
|
n({ type: String })
|
|
11853
|
-
],
|
|
11854
|
-
|
|
11887
|
+
], j.prototype, "showFirstButton", 2);
|
|
11888
|
+
G([
|
|
11855
11889
|
n({ type: String })
|
|
11856
|
-
],
|
|
11857
|
-
|
|
11890
|
+
], j.prototype, "showPreviousButton", 2);
|
|
11891
|
+
G([
|
|
11858
11892
|
n({ type: String })
|
|
11859
|
-
],
|
|
11860
|
-
|
|
11893
|
+
], j.prototype, "showNextButton", 2);
|
|
11894
|
+
G([
|
|
11861
11895
|
n({ type: String })
|
|
11862
|
-
],
|
|
11863
|
-
|
|
11896
|
+
], j.prototype, "showLastButton", 2);
|
|
11897
|
+
G([
|
|
11864
11898
|
n({ type: String })
|
|
11865
|
-
],
|
|
11866
|
-
|
|
11899
|
+
], j.prototype, "showPageNumbers", 2);
|
|
11900
|
+
G([
|
|
11867
11901
|
n({ type: Number })
|
|
11868
|
-
],
|
|
11869
|
-
|
|
11902
|
+
], j.prototype, "siblingCount", 2);
|
|
11903
|
+
G([
|
|
11870
11904
|
n({ type: String })
|
|
11871
|
-
],
|
|
11872
|
-
|
|
11905
|
+
], j.prototype, "firstButtonLabel", 2);
|
|
11906
|
+
G([
|
|
11873
11907
|
n({ type: String })
|
|
11874
|
-
],
|
|
11875
|
-
|
|
11908
|
+
], j.prototype, "previousButtonLabel", 2);
|
|
11909
|
+
G([
|
|
11876
11910
|
n({ type: String })
|
|
11877
|
-
],
|
|
11878
|
-
|
|
11911
|
+
], j.prototype, "nextButtonLabel", 2);
|
|
11912
|
+
G([
|
|
11879
11913
|
n({ type: String })
|
|
11880
|
-
],
|
|
11881
|
-
|
|
11914
|
+
], j.prototype, "lastButtonLabel", 2);
|
|
11915
|
+
G([
|
|
11882
11916
|
n()
|
|
11883
|
-
],
|
|
11884
|
-
|
|
11917
|
+
], j.prototype, "sortButtonTestId", 2);
|
|
11918
|
+
G([
|
|
11885
11919
|
n({ attribute: !1 })
|
|
11886
|
-
],
|
|
11887
|
-
|
|
11920
|
+
], j.prototype, "pageStateText", 2);
|
|
11921
|
+
G([
|
|
11888
11922
|
n({ type: Array })
|
|
11889
|
-
],
|
|
11890
|
-
|
|
11923
|
+
], j.prototype, "pageSizeOptions", 2);
|
|
11924
|
+
G([
|
|
11891
11925
|
n({ type: Array })
|
|
11892
|
-
],
|
|
11893
|
-
|
|
11926
|
+
], j.prototype, "sorting", 2);
|
|
11927
|
+
G([
|
|
11894
11928
|
P()
|
|
11895
|
-
],
|
|
11896
|
-
|
|
11929
|
+
], j.prototype, "_sorting", 2);
|
|
11930
|
+
G([
|
|
11897
11931
|
n({ type: Object })
|
|
11898
|
-
],
|
|
11899
|
-
|
|
11932
|
+
], j.prototype, "rowSelection", 2);
|
|
11933
|
+
G([
|
|
11900
11934
|
P()
|
|
11901
|
-
],
|
|
11902
|
-
|
|
11935
|
+
], j.prototype, "_rowSelection", 2);
|
|
11936
|
+
G([
|
|
11903
11937
|
n({ type: Object })
|
|
11904
|
-
],
|
|
11905
|
-
|
|
11938
|
+
], j.prototype, "pagination", 2);
|
|
11939
|
+
G([
|
|
11906
11940
|
P()
|
|
11907
|
-
],
|
|
11908
|
-
|
|
11941
|
+
], j.prototype, "_pagination", 2);
|
|
11942
|
+
G([
|
|
11909
11943
|
n({ type: Object })
|
|
11910
|
-
],
|
|
11911
|
-
|
|
11944
|
+
], j.prototype, "columnSizing", 2);
|
|
11945
|
+
G([
|
|
11912
11946
|
P()
|
|
11913
|
-
],
|
|
11914
|
-
|
|
11947
|
+
], j.prototype, "_columnSizing", 2);
|
|
11948
|
+
G([
|
|
11915
11949
|
n({ type: String })
|
|
11916
|
-
],
|
|
11917
|
-
|
|
11950
|
+
], j.prototype, "ariaLabel", 2);
|
|
11951
|
+
G([
|
|
11918
11952
|
P()
|
|
11919
|
-
],
|
|
11920
|
-
|
|
11953
|
+
], j.prototype, "_statusMessage", 2);
|
|
11954
|
+
G([
|
|
11921
11955
|
n({ type: Boolean })
|
|
11922
|
-
],
|
|
11923
|
-
|
|
11956
|
+
], j.prototype, "debug", 2);
|
|
11957
|
+
j = G([
|
|
11924
11958
|
O("dap-ds-datatable")
|
|
11925
|
-
],
|
|
11959
|
+
], j);
|
|
11926
11960
|
const zf = '*,*:before,*:after{box-sizing:border-box;outline:none}* :not(dap-ds-table-cell,dap-ds-table-header){margin:0;padding:0}html:focus-within{scroll-behavior:smooth}a:not([class]){text-decoration-skip-ink:auto}img,picture,svg,video,canvas{max-width:100%;height:auto;background-repeat:no-repeat;background-size:cover;font-style:italic;vertical-align:middle}input,button,textarea,select{font:inherit}[hidden]{display:none!important}@media (prefers-reduced-motion: reduce){html:focus-within{scroll-behavior:auto}*,*:before,*:after{transition:none;transition-duration:.01ms!important;transition-delay:1ms!important;animation-duration:1ms!important;animation-delay:-1ms!important;animation-iteration-count:1!important;background-attachment:initial!important;scroll-behavior:auto!important}}body,html{height:100%;scroll-behavior:smooth;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}input[type=number]{appearance:textfield}input::-webkit-outer-spin-button,input::-webkit-inner-spin-button{appearance:none}.input-description{display:block;margin-bottom:var(--dds-spacing-200)}@keyframes dds-spin{to{transform:rotate(360deg)}}@keyframes dds-fade{0%,to{opacity:.3}50%{opacity:1}}:root{--dds-form-label-font-weight: var(--dds-font-weight-bold);--dds-form-label-line-height: var(--dds-font-line-height-xlarge);--dds-form-label-color: var(--dds-text-neutral-base);--dds-form-label-disabled-color: var(--dds-text-neutral-disabled);--dds-form-label-required-color: var(--dds-text-negative-subtle);--dds-form-label-optional-color: var(--dds-text-neutral-subtle);--dds-form-label-margin-bottom: var(--dds-spacing-200)}dap-ds-form-label .dds-label{display:block;margin-bottom:var(--dds-form-label-margin-bottom);color:var(--dds-form-label-color);font-weight:var(--dds-form-label-font-weight);line-height:var(--dds-form-label-line-height)}dap-ds-form-label .dds-label--no-margin{margin-bottom:0}dap-ds-form-label .dds-label--hidden{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);border-width:0;white-space:nowrap}dap-ds-form-label .dds-label--disabled{color:var(--dds-form-label-disabled-color)}dap-ds-form-label .dds-label--xs{font-size:var(--dds-font-sm)}dap-ds-form-label .dds-label--sm{font-size:var(--dds-font-base)}dap-ds-form-label .dds-label--lg{font-size:var(--dds-font-lg)}dap-ds-form-label .dds-label--subtle{font-weight:var(--dds-font-weight-medium)}dap-ds-form-label .dds-label .dds-label__required-indicator{order:2;color:var(--dds-form-label-required-color);font-weight:var(--dds-font-weight-bold);line-height:var(--dds-form-label-line-height)}dap-ds-form-label .dds-label .dds-label__optional-indicator{order:3;color:var(--dds-form-label-optional-color);font-weight:var(--dds-font-weight-medium);line-height:var(--dds-form-label-line-height)}dap-ds-form-label .dds-label .dds-label__optional-indicator--xs{font-size:var(--dds-font-sm)}dap-ds-form-label .dds-label .dds-label__optional-indicator--lg{font-size:var(--dds-font-lg)}.label-container{display:flex;align-items:center;justify-content:space-between}.label--has-description{margin-bottom:var(--dds-spacing-200)}dap-ds-form-label+dap-ds-typography{display:block}.info-button{fill:var(--dds-button-subtle-icon-neutral-enabled);color:var(--dds-button-subtle-icon-neutral-enabled)}:root{--font-family: "Inter", sans-serif}:host{--dds-text-color: var(--dds-text-neutral-base);--dds-text-color-inverted: var(--dds-text-neutral-on-inverted);--dds-text-heading-color: var(--dds-text-neutral-strong);--dds-text-heading-color-inverted: var(--dds-text-neutral-on-inverted);--dds-text-description-color: var(--dds-text-neutral-subtle);--dds-text-description-color-inverted: var(--dds-text-neutral-on-inverted);--dds-text-font-family: var(--font-family);--dds-text-font-weight-medium: var(--dds-font-weight-medium);--dds-text-font-weight-bold: var(--dds-font-weight-bold);--dds-text-font-size-h1: var(--dds-font-7xl);--dds-text-font-size-h2: var(--dds-font-4xl);--dds-text-font-size-h3: var(--dds-font-2xl);--dds-text-font-size-h4: var(--dds-font-xl);--dds-text-font-size-h5: var(--dds-font-lg);--dds-text-font-size-h6: var(--dds-font-base);--dds-text-font-size-body: var(--dds-font-base);--dds-text-font-size-caption: var(--dds-font-xs);--dds-text-font-size-description: var(--dds-font-base);--dds-text-font-size-description-lg: var(--dds-font-base);--dds-text-font-size-description-sm: var(--dds-font-sm);--dds-text-font-size-lg: var(--dds-font-lg);--dds-text-font-size-md: var(--dds-font-base);--dds-text-font-size-sm: var(--dds-font-sm);--dds-text-font-size-xs: var(--dds-font-xs)}:host([variant=h1]),:host([variant=h2]),:host([variant=h3]),:host([variant=h4]),:host([variant=h5]),:host([variant=h6]){color:var(--dds-text-heading-color)}:host([inverted]) :host([variant=h1]),:host([inverted]) :host([variant=h2]),:host([inverted]) :host([variant=h3]),:host([inverted]) :host([variant=h4]),:host([inverted]) :host([variant=h5]),:host([inverted]) :host([variant=h6]){color:var(--dds-text-heading-color-inverted)}:host([variant=description]){color:var(--dds-text-description-color)}:host([inverted]) :host([variant=description]){color:var(--dds-text-description-color-inverted)}:host([variant=body]){color:var(--dds-text-color)}:host([inverted]) :host([variant=body]){color:var(--dds-text-color-inverted)}:host([variant=caption]){color:var(--dds-text-description-color)}:host([inverted]) :host([variant=caption]){color:var(--dds-text-description-color-inverted)}.typography{margin:0;font-family:var(--dds-text-font-family);font-weight:var(--dds-text-font-weight-medium);letter-spacing:0}.heading{font-weight:var(--dds-text-font-weight-bold);line-height:var(--dds-font-line-height-large)}.typography-h1{font-size:var(--dds-text-font-size-h1);letter-spacing:-.72px}@media (width >= 768px){.typography-h1{font-size:var(--dds-text-font-size-h1);letter-spacing:-.8px;line-height:var(--dds-font-line-height-xlarge)}}.typography-h2{font-size:var(--dds-text-font-size-h2);letter-spacing:-.56px}.typography-h3{font-size:var(--dds-text-font-size-h3);letter-spacing:-.48px}.typography-h4{font-size:var(--dds-text-font-size-h4);letter-spacing:-.4px}.typography-h5{font-size:var(--dds-text-font-size-h5)}.typography-h6{font-size:var(--dds-text-font-size-h6)}.typography-body{font-size:var(--dds-text-font-size-body);line-height:var(--dds-font-line-height-xlarge)}.typography-caption{font-size:var(--dds-text-font-size-caption);line-height:var(--dds-font-line-height-xlarge)}.typography-description{font-size:var(--dds-text-font-size-description);line-height:var(--dds-font-line-height-xlarge)}.typography-description-lg{font-size:var(--dds-text-font-size-description-lg);line-height:var(--dds-font-line-height-xlarge)}.typography-description-sm{font-size:var(--dds-text-font-size-description-sm);line-height:var(--dds-font-line-height-xlarge)}.typography-size-lg{font-size:var(--dds-text-font-size-lg);letter-spacing:0;line-height:var(--dds-font-line-height-xlarge)}.typography-size-md{font-size:var(--dds-text-font-size-md);letter-spacing:0;line-height:var(--dds-font-line-height-xlarge)}.typography-size-sm{font-size:var(--dds-text-font-size-sm);letter-spacing:0;line-height:var(--dds-font-line-height-xlarge)}.typography-size-xs{font-size:var(--dds-text-font-size-xs);letter-spacing:0;line-height:var(--dds-font-line-height-xlarge)}.typography-inverted{color:var(--dds-text-color-inverted)}.typography-heading-inverted{color:var(--dds-text-heading-color-inverted)}.typography-description-inverted{color:var(--dds-text-description-color-inverted)}:host{--dds-combobox-background: var(--dds-fields-background-default);--dds-combobox-border-color: var(--dds-border-neutral-base);--dds-combobox-border-width: var(--dds-border-width-base, 1px);--dds-combobox-border-radius: var(--dds-radius-base);--dds-combobox-text-color: var(--dds-text-neutral-base);--dds-combobox-placeholder-color: var(--dds-text-neutral-subtle);--dds-combobox-disabled-background: var(--dds-background-neutral-stronger);--dds-combobox-disabled-text: var(--dds-text-neutral-disabled);--dds-combobox-error-border: var(--dds-border-negative-base);--dds-combobox-success-border: var(--dds-border-positive-base);--dds-combobox-icon-color: var(--dds-text-icon-neutral-base);--dds-combobox-clear-icon-color: var( --dds-button-subtle-icon-neutral-enabled );--dds-combobox-popup-background: var(--dds-background-neutral-subtle);--dds-combobox-popup-shadow: 0 4px 6px -1px rgb(0 0 0 / 8%), 0 2px 4px -1px rgb(0 0 0 / 6%);--dds-combobox-loading-spinner-color: var(--dds-icon-neutral-base);--dds-combobox-padding-xs: var(--dds-spacing-200);--dds-combobox-padding-sm: var(--dds-spacing-200);--dds-combobox-padding-lg: var(--dds-spacing-300);--dds-combobox-padding-horizontal: var(--dds-spacing-300);--dds-combobox-padding-vertical: var(--dds-spacing-200);--dds-combobox-gap: var(--dds-spacing-100);--dds-combobox-icon-gap: var(--dds-spacing-200);--dds-combobox-action-gap: var(--dds-spacing-200);--dds-combobox-action-padding: var(--dds-spacing-300);--dds-combobox-clear-icon-width: var(--dds-spacing-800);--dds-combobox-dropdown-icon-right: var(--dds-spacing-600);--dds-combobox-min-width: 7.5rem;--dds-combobox-icon-opened-transform: rotate(180deg);--dds-combobox-chips-gap: var(--dds-spacing-100);--dds-combobox-chips-padding: var(--dds-spacing-100);--dds-combobox-chips-max-height: 120px;--dds-input-height-xs: var(--dds-spacing-800);--dds-input-height-sm: var(--dds-spacing-1000);--dds-input-height-lg: var(--dds-spacing-1200);--dds-input-padding-xs: 0 var(--dds-spacing-200);--dds-input-padding-sm: 0 var(--dds-spacing-300);--dds-input-padding-lg: 0 var(--dds-spacing-400);--dds-input-font-size-xs: var(--dds-font-sm);--dds-input-font-size-sm: var(--dds-font-base);--dds-input-font-size-lg: var(--dds-font-lg);--dds-input-border: var(--dds-border-width-base) solid var(--dds-border-neutral-base);--dds-input-background: var(--dds-fields-background-default);--dds-input-text-color: var(--dds-text-neutral-base);--dds-input-border-radius: var(--dds-radius-base);--dds-input-disabled-border: 0 solid var(--dds-border-neutral-disabled);--dds-input-disabled-background: var(--dds-fields-background-disabled);--dds-input-disabled-text: var(--dds-text-neutral-disabled);--dds-input-readonly-border: 0 solid var(--dds-border-neutral-subtle);--dds-input-readonly-background: var(--dds-fields-background-read-only);--dds-input-readonly-text: var(--dds-text-neutral-subtle);--dds-input-success-border: var(--dds-border-width-base) solid var(--dds-border-positive-base);--dds-input-error-border: var(--dds-border-width-base) solid var(--dds-border-negative-base);--dds-input-addon-background: var(--dds-fields-background-default);--dds-input-addon-success-background: var(--dds-fields-background-default);--dds-input-addon-error-background: var(--dds-fields-background-default);--dds-input-addon-border-before: var(--dds-border-width-base) solid var(--dds-border-neutral-base);--dds-input-addon-border-after: var(--dds-border-width-base) solid var(--dds-border-neutral-base);--dds-input-addon-border-width-before: var(--dds-border-width-base) 0 var(--dds-border-width-base) var(--dds-border-width-base);--dds-input-addon-border-width-after: var(--dds-border-width-base) var(--dds-border-width-base) var(--dds-border-width-base) 0;--dds-input-addon-success-border: var(--dds-border-width-base) solid var(--dds-border-positive-base);--dds-input-addon-success-border-before: var(--dds-border-width-base) solid var(--dds-border-positive-base);--dds-input-addon-success-border-after: var(--dds-border-width-base) solid var(--dds-border-positive-base);--dds-input-addon-success-border-width-before: var(--dds-border-width-base) 0 var(--dds-border-width-base) var(--dds-border-width-base);--dds-input-addon-success-border-width-after: var(--dds-border-width-base) var(--dds-border-width-base) var(--dds-border-width-base) 0;--dds-input-addon-error-border-before: var(--dds-border-width-base) solid var(--dds-border-negative-base);--dds-input-addon-error-border-after: var(--dds-border-width-base) solid var(--dds-border-negative-base);--dds-input-addon-error-border-width-before: var(--dds-border-width-base) 0 var(--dds-border-width-base) var(--dds-border-width-base);--dds-input-addon-error-border-width-after: var(--dds-border-width-base) var(--dds-border-width-base) var(--dds-border-width-base) 0;--dds-form-label-font-weight: var(--dds-font-weight-bold);--dds-form-label-line-height: var(--dds-font-line-height-xlarge);--dds-form-label-color: var(--dds-text-neutral-base);--dds-form-label-disabled-color: var(--dds-text-neutral-disabled);--dds-form-label-required-color: var(--dds-text-negative-subtle);--dds-form-label-optional-color: var(--dds-text-neutral-subtle);--dds-form-label-margin-bottom: var(--dds-spacing-200)}.select{outline-color:var(--dds-focus-outer-ring);outline-offset:var(--dds-spacing-50);outline-width:var(--dds-border-width-large);transition-property:all;transition-duration:var(--dds-transition-fast);transition-timing-function:var(--dds-easing-ease-in-out);display:flex;flex-direction:row;align-items:center;width:100%;min-width:var(--dds-combobox-min-width);column-gap:var(--dds-combobox-gap);border:var(--dds-combobox-border-width) solid var(--dds-combobox-border-color);border-radius:var(--dds-combobox-border-radius);background-color:var(--dds-combobox-background)}.select:focus-within{outline-style:solid}.select:active{border-color:var(--dds-border-brand-medium)}.select--disabled{border-color:var(--dds-combobox-disabled-background);background-color:var(--dds-combobox-disabled-background);color:var(--dds-combobox-disabled-text);cursor:not-allowed}.select--readonly{border:var(--dds-input-readonly-border);background:var(--dds-input-readonly-background);color:var(--dds-input-readonly-text)}.select--error{border-color:var(--dds-combobox-error-border)}.select--success{border-color:var(--dds-combobox-success-border)}.select--xs{height:var(--dds-spacing-800)}.select--sm{height:var(--dds-spacing-1000)}.select--lg{height:var(--dds-spacing-1200)}.select--lg .icon{position:absolute;right:var(--dds-combobox-dropdown-icon-right);color:var(--dds-text-icon-neutral-subtle);pointer-events:none}.select--multiselect{flex-wrap:wrap;align-items:flex-start;height:auto;min-height:var(--dds-spacing-1000);padding:var(--dds-spacing-100)}.select--multiselect.select--xs{min-height:var(--dds-spacing-800)}.select--multiselect.select--lg{min-height:var(--dds-spacing-1200)}.select--opened:not(.select--no-animation) .indicator-icon{transform:var(--dds-combobox-icon-opened-transform)}.select .indicator-icon{outline-color:var(--dds-focus-outer-ring);outline-offset:var(--dds-spacing-50);outline-width:var(--dds-border-width-large);transition-property:all;transition-duration:var(--dds-transition-fast);transition-timing-function:var(--dds-easing-ease-in-out);display:flex;align-items:center;color:var(--dds-combobox-icon-color)}.select .indicator-icon--loading{animation:dds-spin 1s linear infinite;fill:var(--dds-combobox-loading-spinner-color);color:var(--dds-combobox-loading-spinner-color)}.select .clear-icon{outline-color:var(--dds-focus-outer-ring);outline-offset:var(--dds-spacing-50);outline-width:var(--dds-border-width-large);transition-property:all;transition-duration:var(--dds-transition-fast);transition-timing-function:var(--dds-easing-ease-in-out);display:flex;visibility:visible;align-items:center;justify-content:center;min-width:var(--dds-combobox-clear-icon-width);cursor:pointer}.select:has(input:placeholder-shown) .clear-icon{visibility:hidden}.select .clear-icon--hidden{visibility:hidden}.select .clear-icon dap-ds-icon-button::part(icon-base){fill:var(--dds-button-subtle-icon-neutral-enabled);color:var(--dds-button-subtle-icon-neutral-enabled)}.combobox__chips{display:flex;flex-wrap:wrap;align-items:center;max-height:var(--dds-combobox-chips-max-height);overflow:hidden auto;gap:var(--dds-combobox-chips-gap)}.input{width:100%;border-width:0;border-radius:var(--dds-combobox-border-radius);background-color:transparent;color:var(--dds-combobox-text-color);line-height:1;text-overflow:ellipsis}.input::placeholder{color:var(--dds-combobox-placeholder-color)}.input--xs{padding:var(--dds-combobox-padding-xs);font-size:var(--dds-font-sm)}.input--sm{padding:var(--dds-combobox-padding-sm)}.input--lg{padding:var(--dds-combobox-padding-lg);font-size:var(--dds-font-lg)}.input--disabled{cursor:not-allowed}.input::-webkit-search-cancel-button{display:none}.input--readonly{border:var(--dds-input-readonly-border);background:var(--dds-input-readonly-background);color:var(--dds-input-readonly-text)}.input--multiselect{flex:1;min-width:120px;padding:var(--dds-spacing-100)}.select-action{display:inline-flex;flex-direction:row;align-items:center;justify-content:flex-end;gap:var(--dds-combobox-action-gap);padding:0 var(--dds-combobox-action-padding);color:var(--dds-combobox-icon-color)}.select-action--disabled{color:var(--dds-icon-neutral-disabled);cursor:not-allowed;pointer-events:none}.select-action--xs{min-width:90px}.select-action--sm{min-width:94px}.select-action--lg{min-width:98px}.select-action--multiselect{align-self:center}.select-popup::part(popup){background-color:var(--dds-combobox-popup-background);box-shadow:var(--dds-combobox-popup-shadow)}.sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);border-width:0;white-space:nowrap}.calendar-icon{cursor:pointer}:host([mode=range]) .select-popup::part(floating){min-width:fit-content}';
|
|
11927
11961
|
var Cf = Object.defineProperty, Df = Object.getOwnPropertyDescriptor, ut = (e, t, i, o) => {
|
|
11928
11962
|
for (var r = o > 1 ? void 0 : o ? Df(t, i) : t, a = e.length - 1, s; a >= 0; a--)
|
|
@@ -12276,7 +12310,7 @@ let X = class extends ge {
|
|
|
12276
12310
|
part="clear-button"
|
|
12277
12311
|
data-testid=${this.clearButtonTestId}
|
|
12278
12312
|
aria-label=${f(
|
|
12279
|
-
(t = this.clearButtonAriaLabel) != null ? t :
|
|
12313
|
+
(t = this.clearButtonAriaLabel) != null ? t : q("clear", { lng: this.locale })
|
|
12280
12314
|
)}
|
|
12281
12315
|
?disabled=${this.disabled}
|
|
12282
12316
|
@click=${this.handleClearClick}></dap-ds-icon-button>
|
|
@@ -12509,7 +12543,7 @@ var Mf = Object.defineProperty, Rf = Object.getOwnPropertyDescriptor, J = (e, t,
|
|
|
12509
12543
|
(s = e[a]) && (r = (o ? s(t, i, r) : s(r)) || r);
|
|
12510
12544
|
return o && r && Mf(t, i, r), r;
|
|
12511
12545
|
};
|
|
12512
|
-
let
|
|
12546
|
+
let W = class extends ge {
|
|
12513
12547
|
constructor() {
|
|
12514
12548
|
super(...arguments), this.browseButtonTestId = "file-input-browse-button", this.uploadButtonTestId = "file-input-upload-button", this.showDropzone = !1, this.showFileList = !1, this.confirmRemove = !0, this.showUploadButton = "true", this.showBrowseButton = "true", this.multiple = !1, this.keepValue = !1, this.uploadProperty = "file", this.uploadMethod = "POST", this.deleteMethod = "DELETE", this.withCredentials = !1, this.fileList = null, this.removeButtonDanger = "true", this.showThumbnail = "true", this.dropzoneFocusable = "true", this.thumbnailSize = "sm", this._files = [], this._uploadProgress = {}, this._uploadingFiles = /* @__PURE__ */ new Set(), this._activeUploads = /* @__PURE__ */ new Map(), this._uploadedFiles = /* @__PURE__ */ new Map(), this._isDragOver = !1, this._showRemoveDialog = !1, this._fileToRemove = null, this._removeResolve = null, this._removeReject = null, this.languageChangeHandler = () => {
|
|
12515
12549
|
this.requestUpdate();
|
|
@@ -12552,7 +12586,7 @@ let G = class extends ge {
|
|
|
12552
12586
|
maxFiles: this.maxFiles,
|
|
12553
12587
|
totalFiles: e.length + this._files.length
|
|
12554
12588
|
},
|
|
12555
|
-
message: this.maxFileAmountErrorText ||
|
|
12589
|
+
message: this.maxFileAmountErrorText || q("fileInput.error.fileAmount", {
|
|
12556
12590
|
count: this.maxFiles
|
|
12557
12591
|
}),
|
|
12558
12592
|
type: "maxFiles"
|
|
@@ -12565,7 +12599,7 @@ let G = class extends ge {
|
|
|
12565
12599
|
type: this.accept,
|
|
12566
12600
|
fileType: o.type
|
|
12567
12601
|
},
|
|
12568
|
-
message: this.fileTypeErrorText ||
|
|
12602
|
+
message: this.fileTypeErrorText || q("fileInput.error.fileType", {
|
|
12569
12603
|
type: this.accept
|
|
12570
12604
|
}),
|
|
12571
12605
|
type: "fileType"
|
|
@@ -12575,7 +12609,7 @@ let G = class extends ge {
|
|
|
12575
12609
|
maxSizePerFile: this.maxSizePerFile,
|
|
12576
12610
|
fileSize: o.size
|
|
12577
12611
|
},
|
|
12578
|
-
message: this.maxSizePerFileErrorText ||
|
|
12612
|
+
message: this.maxSizePerFileErrorText || q("fileInput.error.perFileSize", {
|
|
12579
12613
|
size: Math.round(this.maxSizePerFile / 1024 / 1024)
|
|
12580
12614
|
}),
|
|
12581
12615
|
type: "maxSizePerFile"
|
|
@@ -12586,7 +12620,7 @@ let G = class extends ge {
|
|
|
12586
12620
|
totalSize: i,
|
|
12587
12621
|
fileSize: o.size
|
|
12588
12622
|
},
|
|
12589
|
-
message: this.maxFileSizeErrorText ||
|
|
12623
|
+
message: this.maxFileSizeErrorText || q("fileInput.error.fileSize", {
|
|
12590
12624
|
size: Math.round(this.maxFileSize / 1024 / 1024)
|
|
12591
12625
|
}),
|
|
12592
12626
|
type: "maxFileSize"
|
|
@@ -12750,43 +12784,43 @@ let G = class extends ge {
|
|
|
12750
12784
|
r.append(this.uploadProperty, o);
|
|
12751
12785
|
try {
|
|
12752
12786
|
let a;
|
|
12753
|
-
this._uploadingFiles.add(o.name), this._uploadProgress =
|
|
12787
|
+
this._uploadingFiles.add(o.name), this._uploadProgress = U(x({}, this._uploadProgress), { [o.name]: 0 }), this.emit("dds-upload-start", { file: o });
|
|
12754
12788
|
const s = new XMLHttpRequest();
|
|
12755
12789
|
if (s.withCredentials = this.withCredentials, this._activeUploads.set(o.name, s), s.open(this.uploadMethod, this.uploadUrl), this.uploadHeaders)
|
|
12756
12790
|
try {
|
|
12757
12791
|
const p = JSON.parse(this.uploadHeaders);
|
|
12758
|
-
Object.entries(p).forEach(([
|
|
12759
|
-
s.setRequestHeader(
|
|
12792
|
+
Object.entries(p).forEach(([h, u]) => {
|
|
12793
|
+
s.setRequestHeader(h, u);
|
|
12760
12794
|
});
|
|
12761
12795
|
} catch (p) {
|
|
12762
12796
|
console.warn("Invalid uploadHeaders JSON:", this.uploadHeaders);
|
|
12763
12797
|
}
|
|
12764
12798
|
s.upload.onprogress = (p) => {
|
|
12765
12799
|
if (p.lengthComputable) {
|
|
12766
|
-
const
|
|
12767
|
-
this._uploadProgress =
|
|
12768
|
-
[o.name]:
|
|
12800
|
+
const h = p.loaded / p.total * 100;
|
|
12801
|
+
this._uploadProgress = U(x({}, this._uploadProgress), {
|
|
12802
|
+
[o.name]: h
|
|
12769
12803
|
}), this.fileList && (a = this.setFileLoadingState(o, !0)), this.emit("dds-upload-progress", {
|
|
12770
12804
|
file: o,
|
|
12771
12805
|
item: a,
|
|
12772
|
-
progress:
|
|
12806
|
+
progress: h
|
|
12773
12807
|
});
|
|
12774
12808
|
}
|
|
12775
12809
|
};
|
|
12776
|
-
const d = yield new Promise((p,
|
|
12810
|
+
const d = yield new Promise((p, h) => {
|
|
12777
12811
|
s.onload = () => {
|
|
12778
12812
|
if (s.status >= 200 && s.status < 300)
|
|
12779
12813
|
p(s.response);
|
|
12780
12814
|
else {
|
|
12781
|
-
const
|
|
12815
|
+
const u = new lr(
|
|
12782
12816
|
`HTTP error! status: ${s.status}`,
|
|
12783
12817
|
s.response,
|
|
12784
12818
|
s.status
|
|
12785
12819
|
);
|
|
12786
|
-
u
|
|
12820
|
+
h(u);
|
|
12787
12821
|
}
|
|
12788
12822
|
}, s.onerror = () => {
|
|
12789
|
-
this.fileList && (a = this.setFileLoadingState(o, !1)),
|
|
12823
|
+
this.fileList && (a = this.setFileLoadingState(o, !1)), h(new Error("Network error"));
|
|
12790
12824
|
}, s.send(r);
|
|
12791
12825
|
}), l = JSON.parse(d);
|
|
12792
12826
|
this.fileList && (a = this.setFileLoadingState(o, !1)), this._uploadingFiles.delete(o.name), this._activeUploads.delete(o.name);
|
|
@@ -13141,153 +13175,153 @@ let G = class extends ge {
|
|
|
13141
13175
|
`;
|
|
13142
13176
|
}
|
|
13143
13177
|
};
|
|
13144
|
-
|
|
13178
|
+
W.styles = Vr`
|
|
13145
13179
|
${I(Tf)}
|
|
13146
13180
|
`;
|
|
13147
13181
|
J([
|
|
13148
13182
|
lt("#input")
|
|
13149
|
-
],
|
|
13183
|
+
], W.prototype, "input", 2);
|
|
13150
13184
|
J([
|
|
13151
13185
|
n()
|
|
13152
|
-
],
|
|
13186
|
+
], W.prototype, "uploadButtonLabel", 2);
|
|
13153
13187
|
J([
|
|
13154
13188
|
n()
|
|
13155
|
-
],
|
|
13189
|
+
], W.prototype, "browseButtonLabel", 2);
|
|
13156
13190
|
J([
|
|
13157
13191
|
n()
|
|
13158
|
-
],
|
|
13192
|
+
], W.prototype, "browseButtonTestId", 2);
|
|
13159
13193
|
J([
|
|
13160
13194
|
n()
|
|
13161
|
-
],
|
|
13195
|
+
], W.prototype, "uploadButtonTestId", 2);
|
|
13162
13196
|
J([
|
|
13163
13197
|
n({ type: Boolean })
|
|
13164
|
-
],
|
|
13198
|
+
], W.prototype, "showDropzone", 2);
|
|
13165
13199
|
J([
|
|
13166
13200
|
n()
|
|
13167
|
-
],
|
|
13201
|
+
], W.prototype, "dropzoneText", 2);
|
|
13168
13202
|
J([
|
|
13169
13203
|
n({ type: Boolean })
|
|
13170
|
-
],
|
|
13204
|
+
], W.prototype, "showFileList", 2);
|
|
13171
13205
|
J([
|
|
13172
13206
|
n({ type: Boolean })
|
|
13173
|
-
],
|
|
13207
|
+
], W.prototype, "confirmRemove", 2);
|
|
13174
13208
|
J([
|
|
13175
13209
|
n({ type: String })
|
|
13176
|
-
],
|
|
13210
|
+
], W.prototype, "showUploadButton", 2);
|
|
13177
13211
|
J([
|
|
13178
13212
|
n({ type: String })
|
|
13179
|
-
],
|
|
13213
|
+
], W.prototype, "showBrowseButton", 2);
|
|
13180
13214
|
J([
|
|
13181
13215
|
n()
|
|
13182
|
-
],
|
|
13216
|
+
], W.prototype, "accept", 2);
|
|
13183
13217
|
J([
|
|
13184
13218
|
n({ type: Boolean })
|
|
13185
|
-
],
|
|
13219
|
+
], W.prototype, "multiple", 2);
|
|
13186
13220
|
J([
|
|
13187
13221
|
n({ type: Boolean })
|
|
13188
|
-
],
|
|
13222
|
+
], W.prototype, "keepValue", 2);
|
|
13189
13223
|
J([
|
|
13190
13224
|
n()
|
|
13191
|
-
],
|
|
13225
|
+
], W.prototype, "uploadUrl", 2);
|
|
13192
13226
|
J([
|
|
13193
13227
|
n({ type: Boolean })
|
|
13194
|
-
],
|
|
13228
|
+
], W.prototype, "autoupload", 2);
|
|
13195
13229
|
J([
|
|
13196
13230
|
n()
|
|
13197
|
-
],
|
|
13231
|
+
], W.prototype, "uploadProperty", 2);
|
|
13198
13232
|
J([
|
|
13199
13233
|
n()
|
|
13200
|
-
],
|
|
13234
|
+
], W.prototype, "uploadMethod", 2);
|
|
13201
13235
|
J([
|
|
13202
13236
|
n()
|
|
13203
|
-
],
|
|
13237
|
+
], W.prototype, "deleteUrl", 2);
|
|
13204
13238
|
J([
|
|
13205
13239
|
n()
|
|
13206
|
-
],
|
|
13240
|
+
], W.prototype, "deleteMethod", 2);
|
|
13207
13241
|
J([
|
|
13208
13242
|
n({ type: Boolean })
|
|
13209
|
-
],
|
|
13243
|
+
], W.prototype, "withCredentials", 2);
|
|
13210
13244
|
J([
|
|
13211
13245
|
n()
|
|
13212
|
-
],
|
|
13246
|
+
], W.prototype, "uploadHeaders", 2);
|
|
13213
13247
|
J([
|
|
13214
13248
|
n()
|
|
13215
|
-
],
|
|
13249
|
+
], W.prototype, "deleteHeaders", 2);
|
|
13216
13250
|
J([
|
|
13217
13251
|
n({ attribute: !1 })
|
|
13218
|
-
],
|
|
13252
|
+
], W.prototype, "fileList", 2);
|
|
13219
13253
|
J([
|
|
13220
13254
|
n({ type: Number })
|
|
13221
|
-
],
|
|
13255
|
+
], W.prototype, "maxFiles", 2);
|
|
13222
13256
|
J([
|
|
13223
13257
|
n({ type: Number })
|
|
13224
|
-
],
|
|
13258
|
+
], W.prototype, "maxFileSize", 2);
|
|
13225
13259
|
J([
|
|
13226
13260
|
n({ type: Number })
|
|
13227
|
-
],
|
|
13261
|
+
], W.prototype, "maxSizePerFile", 2);
|
|
13228
13262
|
J([
|
|
13229
13263
|
n({ type: String })
|
|
13230
|
-
],
|
|
13264
|
+
], W.prototype, "maxFileSizeErrorText", 2);
|
|
13231
13265
|
J([
|
|
13232
13266
|
n({ type: String })
|
|
13233
|
-
],
|
|
13267
|
+
], W.prototype, "maxSizePerFileErrorText", 2);
|
|
13234
13268
|
J([
|
|
13235
13269
|
n({ type: String })
|
|
13236
|
-
],
|
|
13270
|
+
], W.prototype, "maxFileAmountErrorText", 2);
|
|
13237
13271
|
J([
|
|
13238
13272
|
n({ type: String })
|
|
13239
|
-
],
|
|
13273
|
+
], W.prototype, "fileTypeErrorText", 2);
|
|
13240
13274
|
J([
|
|
13241
13275
|
n()
|
|
13242
|
-
],
|
|
13276
|
+
], W.prototype, "removeButtonLabel", 2);
|
|
13243
13277
|
J([
|
|
13244
13278
|
n()
|
|
13245
|
-
],
|
|
13279
|
+
], W.prototype, "cancelButtonLabel", 2);
|
|
13246
13280
|
J([
|
|
13247
13281
|
n({ type: String })
|
|
13248
|
-
],
|
|
13282
|
+
], W.prototype, "removeButtonDanger", 2);
|
|
13249
13283
|
J([
|
|
13250
13284
|
n({ type: String })
|
|
13251
|
-
],
|
|
13285
|
+
], W.prototype, "showThumbnail", 2);
|
|
13252
13286
|
J([
|
|
13253
13287
|
n()
|
|
13254
|
-
],
|
|
13288
|
+
], W.prototype, "dropzoneAriaLabel", 2);
|
|
13255
13289
|
J([
|
|
13256
13290
|
n({ type: String })
|
|
13257
|
-
],
|
|
13291
|
+
], W.prototype, "dropzoneFocusable", 2);
|
|
13258
13292
|
J([
|
|
13259
13293
|
n({ type: String })
|
|
13260
|
-
],
|
|
13294
|
+
], W.prototype, "thumbnailSize", 2);
|
|
13261
13295
|
J([
|
|
13262
13296
|
n({ type: Array, attribute: !1 })
|
|
13263
|
-
],
|
|
13297
|
+
], W.prototype, "files", 1);
|
|
13264
13298
|
J([
|
|
13265
13299
|
P()
|
|
13266
|
-
],
|
|
13300
|
+
], W.prototype, "_files", 2);
|
|
13267
13301
|
J([
|
|
13268
13302
|
P()
|
|
13269
|
-
],
|
|
13303
|
+
], W.prototype, "_uploadProgress", 2);
|
|
13270
13304
|
J([
|
|
13271
13305
|
P()
|
|
13272
|
-
],
|
|
13306
|
+
], W.prototype, "_uploadingFiles", 2);
|
|
13273
13307
|
J([
|
|
13274
13308
|
P()
|
|
13275
|
-
],
|
|
13309
|
+
], W.prototype, "_activeUploads", 2);
|
|
13276
13310
|
J([
|
|
13277
13311
|
P()
|
|
13278
|
-
],
|
|
13312
|
+
], W.prototype, "_uploadedFiles", 2);
|
|
13279
13313
|
J([
|
|
13280
13314
|
P()
|
|
13281
|
-
],
|
|
13315
|
+
], W.prototype, "_isDragOver", 2);
|
|
13282
13316
|
J([
|
|
13283
13317
|
P()
|
|
13284
|
-
],
|
|
13318
|
+
], W.prototype, "_showRemoveDialog", 2);
|
|
13285
13319
|
J([
|
|
13286
13320
|
P()
|
|
13287
|
-
],
|
|
13288
|
-
|
|
13321
|
+
], W.prototype, "_fileToRemove", 2);
|
|
13322
|
+
W = J([
|
|
13289
13323
|
O("dap-ds-file-input")
|
|
13290
|
-
],
|
|
13324
|
+
], W);
|
|
13291
13325
|
const Vf = "*,*:before,*:after{box-sizing:border-box;outline:none}* :not(dap-ds-table-cell,dap-ds-table-header){margin:0;padding:0}html:focus-within{scroll-behavior:smooth}a:not([class]){text-decoration-skip-ink:auto}img,picture,svg,video,canvas{max-width:100%;height:auto;background-repeat:no-repeat;background-size:cover;font-style:italic;vertical-align:middle}input,button,textarea,select{font:inherit}[hidden]{display:none!important}@media (prefers-reduced-motion: reduce){html:focus-within{scroll-behavior:auto}*,*:before,*:after{transition:none;transition-duration:.01ms!important;transition-delay:1ms!important;animation-duration:1ms!important;animation-delay:-1ms!important;animation-iteration-count:1!important;background-attachment:initial!important;scroll-behavior:auto!important}}body,html{height:100%;scroll-behavior:smooth;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}input[type=number]{appearance:textfield}input::-webkit-outer-spin-button,input::-webkit-inner-spin-button{appearance:none}.sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);border-width:0;white-space:nowrap}.input-description{display:block;margin-bottom:var(--dds-spacing-200)}@keyframes dds-spin{to{transform:rotate(360deg)}}@keyframes dds-fade{0%,to{opacity:.3}50%{opacity:1}}:host{--dds-file-list-display: flex;--dds-file-list-flex-direction: column;--dds-file-list-padding: 0;--dds-file-list-list-style: none;--dds-file-list-gap: var(--dds-spacing-200)}.file-input-list{display:var(--dds-file-list-display);flex-direction:var(--dds-file-list-flex-direction);padding:var(--dds-file-list-padding);list-style-type:var(--dds-file-list-list-style);row-gap:var(--dds-file-list-gap)}";
|
|
13292
13326
|
var Bf = Object.defineProperty, Ff = Object.getOwnPropertyDescriptor, be = (e, t, i, o) => {
|
|
13293
13327
|
for (var r = o > 1 ? void 0 : o ? Ff(t, i) : t, a = e.length - 1, s; a >= 0; a--)
|
|
@@ -13365,7 +13399,7 @@ let Jt = class extends wt(T) {
|
|
|
13365
13399
|
class="file-input-list"
|
|
13366
13400
|
part="base"
|
|
13367
13401
|
role="list"
|
|
13368
|
-
aria-label=${(e = this.ariaLabel) != null ? e :
|
|
13402
|
+
aria-label=${(e = this.ariaLabel) != null ? e : q("fileInput.fileList")}
|
|
13369
13403
|
@dds-file-remove=${this.removeFile}>
|
|
13370
13404
|
${this._files}
|
|
13371
13405
|
</ul>`;
|
|
@@ -13581,7 +13615,7 @@ let xt = class extends wt(T) {
|
|
|
13581
13615
|
"file-list-item--disabled": this.disabled
|
|
13582
13616
|
}
|
|
13583
13617
|
)}
|
|
13584
|
-
aria-label=${`${((e = this.fileData) == null ? void 0 : e.name) || ""} ${this.loading ?
|
|
13618
|
+
aria-label=${`${((e = this.fileData) == null ? void 0 : e.name) || ""} ${this.loading ? q("fileInput.uploading") : ""} ${this.feedback ? this.feedback : ""}`}>
|
|
13585
13619
|
${this.fileItemTemplate ? $`<div class="content" part="content">
|
|
13586
13620
|
${this.fileItemTemplate({
|
|
13587
13621
|
file: this.fileData,
|
|
@@ -13624,10 +13658,10 @@ let xt = class extends wt(T) {
|
|
|
13624
13658
|
href="${this._fileObjectUrl || this.href}"
|
|
13625
13659
|
target=${f(this.target)}
|
|
13626
13660
|
rel=${f(this.rel)}
|
|
13627
|
-
aria-label=${`${this.fileLinkLabel ? `${this.fileLinkLabel} ${((o = this.fileData) == null ? void 0 : o.name) || ""}` : `${
|
|
13661
|
+
aria-label=${`${this.fileLinkLabel ? `${this.fileLinkLabel} ${((o = this.fileData) == null ? void 0 : o.name) || ""}` : `${q("fileInput.view")} ${((r = this.fileData) == null ? void 0 : r.name) || ""}`}`}
|
|
13628
13662
|
?download=${this.download === "true" ? !0 : void 0}
|
|
13629
13663
|
@click=${this.handleFileClick}
|
|
13630
|
-
>${this.fileLinkLabel ? this.fileLinkLabel :
|
|
13664
|
+
>${this.fileLinkLabel ? this.fileLinkLabel : q("fileInput.view")}</dap-ds-link
|
|
13631
13665
|
></slot
|
|
13632
13666
|
>` : z}
|
|
13633
13667
|
</dap-ds-stack>
|
|
@@ -13638,7 +13672,7 @@ let xt = class extends wt(T) {
|
|
|
13638
13672
|
"content__filesize",
|
|
13639
13673
|
`content__filesize--${this.effectiveSize}`
|
|
13640
13674
|
)}
|
|
13641
|
-
aria-label=${
|
|
13675
|
+
aria-label=${q("fileInput.fileSize", {
|
|
13642
13676
|
size: this.formattedSize
|
|
13643
13677
|
})}
|
|
13644
13678
|
>${this.formattedSize}</span
|
|
@@ -13647,7 +13681,7 @@ let xt = class extends wt(T) {
|
|
|
13647
13681
|
part="spinner"
|
|
13648
13682
|
size="sm"
|
|
13649
13683
|
type="neutral"
|
|
13650
|
-
aria-label=${
|
|
13684
|
+
aria-label=${q(
|
|
13651
13685
|
"fileInput.uploading"
|
|
13652
13686
|
)}></dap-ds-spinner>` : z}
|
|
13653
13687
|
${this.showDeleteButton === "true" ? $` <dap-ds-icon-button
|
|
@@ -13656,7 +13690,7 @@ let xt = class extends wt(T) {
|
|
|
13656
13690
|
class="content__remove-button"
|
|
13657
13691
|
?disabled="${this.disabled}"
|
|
13658
13692
|
size=${this.effectiveSize}
|
|
13659
|
-
aria-label=${`${
|
|
13693
|
+
aria-label=${`${q("fileInput.delete")} ${((a = this.fileData) == null ? void 0 : a.name) || ""}`}
|
|
13660
13694
|
clean
|
|
13661
13695
|
@click=${() => this.delete(this.fileData)}>
|
|
13662
13696
|
<slot name="delete-button">
|
|
@@ -14023,7 +14057,7 @@ let no = class extends ge {
|
|
|
14023
14057
|
return !this.required || this.hasValue;
|
|
14024
14058
|
}
|
|
14025
14059
|
get validity() {
|
|
14026
|
-
return
|
|
14060
|
+
return U(x({}, this.internals.validity), {
|
|
14027
14061
|
valid: this.checkValidity(),
|
|
14028
14062
|
valueMissing: this.required && !this.hasValue
|
|
14029
14063
|
});
|
|
@@ -14483,7 +14517,7 @@ let Tt = class extends T {
|
|
|
14483
14517
|
tabindex=${f(this.isDisabled ? void 0 : 0)}
|
|
14484
14518
|
aria-label=${[
|
|
14485
14519
|
this._slottedImgAlt,
|
|
14486
|
-
(o = this.expandButtonAriaLabel) != null ? o :
|
|
14520
|
+
(o = this.expandButtonAriaLabel) != null ? o : q("image-zoom.expand")
|
|
14487
14521
|
].filter(Boolean).join(", ")}
|
|
14488
14522
|
aria-expanded=${this.open ? "true" : "false"}
|
|
14489
14523
|
aria-disabled=${f(this.isDisabled ? "true" : void 0)}
|
|
@@ -14541,7 +14575,7 @@ let Tt = class extends T {
|
|
|
14541
14575
|
data-testid=${this.unzoomButtonTestId}
|
|
14542
14576
|
variant=${this.zoomButtonVariant}
|
|
14543
14577
|
shape="circle"
|
|
14544
|
-
aria-label=${(r = this.unzoomButtonAriaLabel) != null ? r :
|
|
14578
|
+
aria-label=${(r = this.unzoomButtonAriaLabel) != null ? r : q("image-zoom.unzoom")}
|
|
14545
14579
|
exportparts="base:unzoom-button-base, content:unzoom-button-content"
|
|
14546
14580
|
@click=${() => this.unzoom()}>
|
|
14547
14581
|
<dap-ds-icon
|
|
@@ -14698,7 +14732,7 @@ let ie = class extends T {
|
|
|
14698
14732
|
<slot></slot>
|
|
14699
14733
|
</span>
|
|
14700
14734
|
${this.target === "_blank" ? b`<span class="sr-only">
|
|
14701
|
-
${(t = this.targetBlankText) != null ? t :
|
|
14735
|
+
${(t = this.targetBlankText) != null ? t : q("opensInNewTab")}</span
|
|
14702
14736
|
>` : z}
|
|
14703
14737
|
</a>
|
|
14704
14738
|
<!-- Link slot: visually hidden, for SPA router links (e.g. Next.js Link) -->
|
|
@@ -15627,10 +15661,10 @@ function ta(e, t) {
|
|
|
15627
15661
|
s.forEach((l) => {
|
|
15628
15662
|
const c = l;
|
|
15629
15663
|
if (d.has(c)) {
|
|
15630
|
-
const p = d.get(c),
|
|
15631
|
-
p !==
|
|
15664
|
+
const p = d.get(c), h = this[c];
|
|
15665
|
+
p !== h && (!i.waitUntilFirstUpdate || this.hasUpdated) && this[r](
|
|
15632
15666
|
p,
|
|
15633
|
-
|
|
15667
|
+
h
|
|
15634
15668
|
);
|
|
15635
15669
|
}
|
|
15636
15670
|
}), a.call(this, d);
|
|
@@ -15770,8 +15804,8 @@ let at = class e extends wt(T) {
|
|
|
15770
15804
|
(c) => d.includes(c)
|
|
15771
15805
|
) ? (t.preventDefault(), t.stopPropagation(), this.opened && this.openedByHover ? this.openedByHover = !1 : this.opened ? this.hideDropDown() : this.showDropDown(!1)) : this.opened && d.some((p) => {
|
|
15772
15806
|
if (!(p instanceof Element)) return !1;
|
|
15773
|
-
const
|
|
15774
|
-
return
|
|
15807
|
+
const h = p.tagName.toUpperCase();
|
|
15808
|
+
return h === "A" || h === "DAP-DS-LINK";
|
|
15775
15809
|
}) && this.hideDropDown();
|
|
15776
15810
|
} else if (this.hasLink) {
|
|
15777
15811
|
const s = this._trigger, d = t.composedPath();
|
|
@@ -15781,8 +15815,8 @@ let at = class e extends wt(T) {
|
|
|
15781
15815
|
t.preventDefault();
|
|
15782
15816
|
const c = this._getLinkElement();
|
|
15783
15817
|
if (c) {
|
|
15784
|
-
const
|
|
15785
|
-
c.click(),
|
|
15818
|
+
const h = c.getAttribute("href");
|
|
15819
|
+
c.click(), h && this.emit("dds-navigation-item-click", { href: h, event: t });
|
|
15786
15820
|
}
|
|
15787
15821
|
let p = (o = this.parentElement) == null ? void 0 : o.closest(
|
|
15788
15822
|
"dap-ds-navigation-menu-item"
|
|
@@ -18273,12 +18307,12 @@ let Tr = class extends T {
|
|
|
18273
18307
|
}, o = (d) => {
|
|
18274
18308
|
if (this.isDragging) {
|
|
18275
18309
|
if (this.orientation === "vertical" || this.orientation === "both") {
|
|
18276
|
-
const l = d.clientY - this.startY, { scrollHeight: c, clientHeight: p } = this.viewport,
|
|
18277
|
-
this.viewport.scrollTop = this.startScrollTop + l *
|
|
18310
|
+
const l = d.clientY - this.startY, { scrollHeight: c, clientHeight: p } = this.viewport, h = c / p;
|
|
18311
|
+
this.viewport.scrollTop = this.startScrollTop + l * h;
|
|
18278
18312
|
}
|
|
18279
18313
|
if (this.orientation === "horizontal" || this.orientation === "both") {
|
|
18280
|
-
const l = d.clientX - this.startY, { scrollWidth: c, clientWidth: p } = this.viewport,
|
|
18281
|
-
this.viewport.scrollLeft = this.startScrollTop + l *
|
|
18314
|
+
const l = d.clientX - this.startY, { scrollWidth: c, clientWidth: p } = this.viewport, h = c / p;
|
|
18315
|
+
this.viewport.scrollLeft = this.startScrollTop + l * h;
|
|
18282
18316
|
}
|
|
18283
18317
|
}
|
|
18284
18318
|
}, r = () => {
|
|
@@ -18519,7 +18553,7 @@ let Bt = class extends ge {
|
|
|
18519
18553
|
});
|
|
18520
18554
|
}
|
|
18521
18555
|
get validationMessage() {
|
|
18522
|
-
return
|
|
18556
|
+
return q("form.validationMessage.select");
|
|
18523
18557
|
}
|
|
18524
18558
|
/** Get the current display text for the selected item, dynamically fetching from the option */
|
|
18525
18559
|
get selectedDisplayText() {
|
|
@@ -19096,7 +19130,7 @@ let ni = class extends T {
|
|
|
19096
19130
|
[`skeleton--${this.animation}`]: !this.noAnimation && this.animation
|
|
19097
19131
|
})}"
|
|
19098
19132
|
role="status"
|
|
19099
|
-
aria-label=${(e = this.ariaLabel) != null ? e :
|
|
19133
|
+
aria-label=${(e = this.ariaLabel) != null ? e : q("loading")}></div>
|
|
19100
19134
|
`;
|
|
19101
19135
|
}
|
|
19102
19136
|
};
|
|
@@ -19217,7 +19251,7 @@ let Te = class extends T {
|
|
|
19217
19251
|
* @param options - Optional configuration (alertType will be overridden to 'successful')
|
|
19218
19252
|
*/
|
|
19219
19253
|
static success(e, t) {
|
|
19220
|
-
this.show(e,
|
|
19254
|
+
this.show(e, U(x({}, t), { alertType: "successful" }));
|
|
19221
19255
|
}
|
|
19222
19256
|
/**
|
|
19223
19257
|
* Static method to show an error message
|
|
@@ -19225,7 +19259,7 @@ let Te = class extends T {
|
|
|
19225
19259
|
* @param options - Optional configuration (alertType will be overridden to 'error')
|
|
19226
19260
|
*/
|
|
19227
19261
|
static error(e, t) {
|
|
19228
|
-
this.show(e,
|
|
19262
|
+
this.show(e, U(x({}, t), { alertType: "error" }));
|
|
19229
19263
|
}
|
|
19230
19264
|
/**
|
|
19231
19265
|
* Static method to show an information message
|
|
@@ -19233,7 +19267,7 @@ let Te = class extends T {
|
|
|
19233
19267
|
* @param options - Optional configuration (alertType will be overridden to 'information')
|
|
19234
19268
|
*/
|
|
19235
19269
|
static info(e, t) {
|
|
19236
|
-
this.show(e,
|
|
19270
|
+
this.show(e, U(x({}, t), { alertType: "information" }));
|
|
19237
19271
|
}
|
|
19238
19272
|
/**
|
|
19239
19273
|
* Static method to show a default message
|
|
@@ -19241,7 +19275,7 @@ let Te = class extends T {
|
|
|
19241
19275
|
* @param options - Optional configuration (alertType will be overridden to 'default')
|
|
19242
19276
|
*/
|
|
19243
19277
|
static default(e, t) {
|
|
19244
|
-
this.show(e,
|
|
19278
|
+
this.show(e, U(x({}, t), { alertType: "default" }));
|
|
19245
19279
|
}
|
|
19246
19280
|
/**
|
|
19247
19281
|
* Static method to close all snackbar messages globally
|
|
@@ -20670,7 +20704,7 @@ let Pt = class extends T {
|
|
|
20670
20704
|
<div part="hour-section" class="time-section">
|
|
20671
20705
|
<div class="section-header">
|
|
20672
20706
|
<span part="section-header-title"
|
|
20673
|
-
>${
|
|
20707
|
+
>${q("timepicker.hour", {
|
|
20674
20708
|
lng: this.locale
|
|
20675
20709
|
})}</span
|
|
20676
20710
|
>
|
|
@@ -20704,7 +20738,7 @@ let Pt = class extends T {
|
|
|
20704
20738
|
<div part="minute-section" class="time-section">
|
|
20705
20739
|
<div class="section-header">
|
|
20706
20740
|
<span part="section-header-title"
|
|
20707
|
-
>${
|
|
20741
|
+
>${q("timepicker.minute", {
|
|
20708
20742
|
lng: this.locale
|
|
20709
20743
|
})}</span
|
|
20710
20744
|
>
|
|
@@ -20738,7 +20772,7 @@ let Pt = class extends T {
|
|
|
20738
20772
|
<div part="second-section" class="time-section">
|
|
20739
20773
|
<div class="section-header">
|
|
20740
20774
|
<span part="section-header-title"
|
|
20741
|
-
>${
|
|
20775
|
+
>${q("timepicker.second", {
|
|
20742
20776
|
lng: this.locale
|
|
20743
20777
|
})}</span
|
|
20744
20778
|
>
|
|
@@ -21157,7 +21191,7 @@ let dt = class extends ge {
|
|
|
21157
21191
|
part="clear-button"
|
|
21158
21192
|
data-testid=${this.clearButtonTestId}
|
|
21159
21193
|
aria-label=${f(
|
|
21160
|
-
(t = this.clearButtonAriaLabel) != null ? t :
|
|
21194
|
+
(t = this.clearButtonAriaLabel) != null ? t : q("clear", { lng: this.locale })
|
|
21161
21195
|
)}
|
|
21162
21196
|
?disabled=${this.disabled}
|
|
21163
21197
|
@click=${this.handleClearClick}></dap-ds-icon-button>
|
|
@@ -21312,7 +21346,7 @@ let Ve = class e extends wt(T) {
|
|
|
21312
21346
|
const r = i.getAttribute("data-text") || ((d = i.innerText) == null ? void 0 : d.trim()) || ((l = i.textContent) == null ? void 0 : l.trim()) || "", a = i.id || ((c = i.innerText) == null ? void 0 : c.toLowerCase().split(" ").join("-")) || r.toLowerCase().split(" ").join("-");
|
|
21313
21347
|
if (!i.id && a) {
|
|
21314
21348
|
let p = 0;
|
|
21315
|
-
for (this._anchors.some((
|
|
21349
|
+
for (this._anchors.some((h) => h.id === a) && p++; this._anchors.some((h) => h.id === `${a}-${p}`); )
|
|
21316
21350
|
p++;
|
|
21317
21351
|
p === 0 ? i.setAttribute("id", a) : i.setAttribute("id", `${a}-${p}`);
|
|
21318
21352
|
}
|
|
@@ -21373,7 +21407,7 @@ let Ve = class e extends wt(T) {
|
|
|
21373
21407
|
rootMargin: this.rootMargin,
|
|
21374
21408
|
threshold: this.threshold
|
|
21375
21409
|
};
|
|
21376
|
-
this._observer = new IntersectionObserver(this._handleIntersect, t), this._lastAnchorObserver = new IntersectionObserver(this._handleIntersect,
|
|
21410
|
+
this._observer = new IntersectionObserver(this._handleIntersect, t), this._lastAnchorObserver = new IntersectionObserver(this._handleIntersect, U(x({}, t), {
|
|
21377
21411
|
rootMargin: this.lastAnchorRootMargin
|
|
21378
21412
|
})), window.addEventListener("scroll", this.onScroll);
|
|
21379
21413
|
}
|
|
@@ -21411,8 +21445,8 @@ let Ve = class e extends wt(T) {
|
|
|
21411
21445
|
const t = this.buildTree(this._items), i = document.createElement("div");
|
|
21412
21446
|
i.setAttribute("part", "base"), i.classList.add("toc");
|
|
21413
21447
|
const o = `
|
|
21414
|
-
<span class="toc-title toc-title--${this.effectiveSize}">${(r = this.header) != null ? r :
|
|
21415
|
-
<nav aria-label='${(a = this.header) != null ? a :
|
|
21448
|
+
<span class="toc-title toc-title--${this.effectiveSize}">${(r = this.header) != null ? r : q("tocTitle")}</span>
|
|
21449
|
+
<nav aria-label='${(a = this.header) != null ? a : q("tocTitle")}''>${t}</nav>`;
|
|
21416
21450
|
i.innerHTML = o, this.shadowRoot && (this.shadowRoot.removeChild(this.shadowRoot.childNodes[0]), this.shadowRoot.appendChild(i));
|
|
21417
21451
|
});
|
|
21418
21452
|
}
|
|
@@ -21891,13 +21925,13 @@ export {
|
|
|
21891
21925
|
Lr as C,
|
|
21892
21926
|
Gs as D,
|
|
21893
21927
|
Ar as E,
|
|
21894
|
-
|
|
21928
|
+
j as F,
|
|
21895
21929
|
X as G,
|
|
21896
21930
|
ao as H,
|
|
21897
21931
|
Fa as I,
|
|
21898
21932
|
xt as J,
|
|
21899
21933
|
Jt as K,
|
|
21900
|
-
|
|
21934
|
+
W as L,
|
|
21901
21935
|
Ri as M,
|
|
21902
21936
|
qe as N,
|
|
21903
21937
|
Tt as O,
|
|
@@ -21913,7 +21947,7 @@ export {
|
|
|
21913
21947
|
Na as Y,
|
|
21914
21948
|
Vo as Z,
|
|
21915
21949
|
re as _,
|
|
21916
|
-
|
|
21950
|
+
Wt as a,
|
|
21917
21951
|
Er as a0,
|
|
21918
21952
|
kt as a1,
|
|
21919
21953
|
Bo as a2,
|
|
@@ -21959,11 +21993,11 @@ export {
|
|
|
21959
21993
|
po as ax,
|
|
21960
21994
|
we as ay,
|
|
21961
21995
|
Mr as az,
|
|
21962
|
-
|
|
21963
|
-
|
|
21964
|
-
|
|
21965
|
-
|
|
21966
|
-
|
|
21996
|
+
je as b,
|
|
21997
|
+
io as c,
|
|
21998
|
+
Oe as d,
|
|
21999
|
+
eo as e,
|
|
22000
|
+
Eo as f,
|
|
21967
22001
|
yi as g,
|
|
21968
22002
|
ri as h,
|
|
21969
22003
|
Ot as i,
|
|
@@ -21985,4 +22019,4 @@ export {
|
|
|
21985
22019
|
ee as y,
|
|
21986
22020
|
ki as z
|
|
21987
22021
|
};
|
|
21988
|
-
//# sourceMappingURL=components-
|
|
22022
|
+
//# sourceMappingURL=components-DU5UQYWN.js.map
|