@protonradio/proton-ui 0.3.1 → 0.3.3-beta1
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/proton-ui.es.d.ts +10 -10
- package/dist/proton-ui.es.js +170 -186
- package/dist/proton-ui.es.js.map +1 -1
- package/dist/proton-ui.umd.js +7 -7
- package/dist/proton-ui.umd.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/proton-ui.es.js
CHANGED
|
@@ -51,14 +51,14 @@ function Wa() {
|
|
|
51
51
|
var T = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
52
52
|
function E(p) {
|
|
53
53
|
{
|
|
54
|
-
for (var C = arguments.length, K = new Array(C > 1 ? C - 1 : 0),
|
|
55
|
-
K[
|
|
54
|
+
for (var C = arguments.length, K = new Array(C > 1 ? C - 1 : 0), O = 1; O < C; O++)
|
|
55
|
+
K[O - 1] = arguments[O];
|
|
56
56
|
D("error", p, K);
|
|
57
57
|
}
|
|
58
58
|
}
|
|
59
59
|
function D(p, C, K) {
|
|
60
60
|
{
|
|
61
|
-
var
|
|
61
|
+
var O = T.ReactDebugCurrentFrame, G = O.getStackAddendum();
|
|
62
62
|
G !== "" && (C += "%s", K = K.concat([G]));
|
|
63
63
|
var Y = K.map(function(U) {
|
|
64
64
|
return String(U);
|
|
@@ -76,9 +76,9 @@ function Wa() {
|
|
|
76
76
|
p.$$typeof === k || p.getModuleId !== void 0));
|
|
77
77
|
}
|
|
78
78
|
function w(p, C, K) {
|
|
79
|
-
var
|
|
80
|
-
if (
|
|
81
|
-
return
|
|
79
|
+
var O = p.displayName;
|
|
80
|
+
if (O)
|
|
81
|
+
return O;
|
|
82
82
|
var G = C.displayName || C.name || "";
|
|
83
83
|
return G !== "" ? K + "(" + G + ")" : K;
|
|
84
84
|
}
|
|
@@ -117,8 +117,8 @@ function Wa() {
|
|
|
117
117
|
case a:
|
|
118
118
|
return w(p, p.render, "ForwardRef");
|
|
119
119
|
case d:
|
|
120
|
-
var
|
|
121
|
-
return
|
|
120
|
+
var O = p.displayName || null;
|
|
121
|
+
return O !== null ? O : h(p.type) || "Memo";
|
|
122
122
|
case v: {
|
|
123
123
|
var G = p, Y = G._payload, U = G._init;
|
|
124
124
|
try {
|
|
@@ -130,14 +130,14 @@ function Wa() {
|
|
|
130
130
|
}
|
|
131
131
|
return null;
|
|
132
132
|
}
|
|
133
|
-
var y = Object.assign, R = 0, X, F, de, Me,
|
|
133
|
+
var y = Object.assign, R = 0, X, F, de, Me, z, be, Ce;
|
|
134
134
|
function at() {
|
|
135
135
|
}
|
|
136
136
|
at.__reactDisabledLog = !0;
|
|
137
137
|
function ha() {
|
|
138
138
|
{
|
|
139
139
|
if (R === 0) {
|
|
140
|
-
X = console.log, F = console.info, de = console.warn, Me = console.error,
|
|
140
|
+
X = console.log, F = console.info, de = console.warn, Me = console.error, z = console.group, be = console.groupCollapsed, Ce = console.groupEnd;
|
|
141
141
|
var p = {
|
|
142
142
|
configurable: !0,
|
|
143
143
|
enumerable: !0,
|
|
@@ -179,7 +179,7 @@ function Wa() {
|
|
|
179
179
|
value: Me
|
|
180
180
|
}),
|
|
181
181
|
group: y({}, p, {
|
|
182
|
-
value:
|
|
182
|
+
value: z
|
|
183
183
|
}),
|
|
184
184
|
groupCollapsed: y({}, p, {
|
|
185
185
|
value: be
|
|
@@ -199,8 +199,8 @@ function Wa() {
|
|
|
199
199
|
try {
|
|
200
200
|
throw Error();
|
|
201
201
|
} catch (G) {
|
|
202
|
-
var
|
|
203
|
-
fn =
|
|
202
|
+
var O = G.stack.trim().match(/\n( *(at )?)/);
|
|
203
|
+
fn = O && O[1] || "";
|
|
204
204
|
}
|
|
205
205
|
return `
|
|
206
206
|
` + fn + p;
|
|
@@ -219,7 +219,7 @@ function Wa() {
|
|
|
219
219
|
if (K !== void 0)
|
|
220
220
|
return K;
|
|
221
221
|
}
|
|
222
|
-
var
|
|
222
|
+
var O;
|
|
223
223
|
pn = !0;
|
|
224
224
|
var G = Error.prepareStackTrace;
|
|
225
225
|
Error.prepareStackTrace = void 0;
|
|
@@ -238,14 +238,14 @@ function Wa() {
|
|
|
238
238
|
try {
|
|
239
239
|
Reflect.construct(U, []);
|
|
240
240
|
} catch (fe) {
|
|
241
|
-
|
|
241
|
+
O = fe;
|
|
242
242
|
}
|
|
243
243
|
Reflect.construct(p, [], U);
|
|
244
244
|
} else {
|
|
245
245
|
try {
|
|
246
246
|
U.call();
|
|
247
247
|
} catch (fe) {
|
|
248
|
-
|
|
248
|
+
O = fe;
|
|
249
249
|
}
|
|
250
250
|
p.call(U.prototype);
|
|
251
251
|
}
|
|
@@ -253,14 +253,14 @@ function Wa() {
|
|
|
253
253
|
try {
|
|
254
254
|
throw Error();
|
|
255
255
|
} catch (fe) {
|
|
256
|
-
|
|
256
|
+
O = fe;
|
|
257
257
|
}
|
|
258
258
|
p();
|
|
259
259
|
}
|
|
260
260
|
} catch (fe) {
|
|
261
|
-
if (fe &&
|
|
261
|
+
if (fe && O && typeof fe.stack == "string") {
|
|
262
262
|
for (var H = fe.stack.split(`
|
|
263
|
-
`), ae =
|
|
263
|
+
`), ae = O.stack.split(`
|
|
264
264
|
`), ee = H.length - 1, re = ae.length - 1; ee >= 1 && re >= 0 && H[ee] !== ae[re]; )
|
|
265
265
|
re--;
|
|
266
266
|
for (; ee >= 1 && re >= 0; ee--, re--)
|
|
@@ -309,7 +309,7 @@ function Wa() {
|
|
|
309
309
|
case d:
|
|
310
310
|
return Bt(p.type, C, K);
|
|
311
311
|
case v: {
|
|
312
|
-
var
|
|
312
|
+
var O = p, G = O._payload, Y = O._init;
|
|
313
313
|
try {
|
|
314
314
|
return Bt(Y(G), C, K);
|
|
315
315
|
} catch {
|
|
@@ -326,7 +326,7 @@ function Wa() {
|
|
|
326
326
|
} else
|
|
327
327
|
Cr.setExtraStackFrame(null);
|
|
328
328
|
}
|
|
329
|
-
function Ea(p, C, K,
|
|
329
|
+
function Ea(p, C, K, O, G) {
|
|
330
330
|
{
|
|
331
331
|
var Y = Function.call.bind(st);
|
|
332
332
|
for (var U in p)
|
|
@@ -334,14 +334,14 @@ function Wa() {
|
|
|
334
334
|
var H = void 0;
|
|
335
335
|
try {
|
|
336
336
|
if (typeof p[U] != "function") {
|
|
337
|
-
var ae = Error((
|
|
337
|
+
var ae = Error((O || "React class") + ": " + K + " type `" + U + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof p[U] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
338
338
|
throw ae.name = "Invariant Violation", ae;
|
|
339
339
|
}
|
|
340
|
-
H = p[U](C, U,
|
|
340
|
+
H = p[U](C, U, O, K, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
341
341
|
} catch (ee) {
|
|
342
342
|
H = ee;
|
|
343
343
|
}
|
|
344
|
-
H && !(H instanceof Error) && (At(G), E("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",
|
|
344
|
+
H && !(H instanceof Error) && (At(G), E("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", O || "React class", K, U, typeof H), At(null)), H instanceof Error && !(H.message in Dr) && (Dr[H.message] = !0, At(G), E("Failed %s type: %s", K, H.message), At(null));
|
|
345
345
|
}
|
|
346
346
|
}
|
|
347
347
|
}
|
|
@@ -420,7 +420,7 @@ function Wa() {
|
|
|
420
420
|
});
|
|
421
421
|
}
|
|
422
422
|
}
|
|
423
|
-
var Ka = function(p, C, K,
|
|
423
|
+
var Ka = function(p, C, K, O, G, Y, U) {
|
|
424
424
|
var H = {
|
|
425
425
|
// This tag allows us to uniquely identify this as a React Element
|
|
426
426
|
$$typeof: e,
|
|
@@ -441,7 +441,7 @@ function Wa() {
|
|
|
441
441
|
configurable: !1,
|
|
442
442
|
enumerable: !1,
|
|
443
443
|
writable: !1,
|
|
444
|
-
value:
|
|
444
|
+
value: O
|
|
445
445
|
}), Object.defineProperty(H, "_source", {
|
|
446
446
|
configurable: !1,
|
|
447
447
|
enumerable: !1,
|
|
@@ -449,7 +449,7 @@ function Wa() {
|
|
|
449
449
|
value: G
|
|
450
450
|
}), Object.freeze && (Object.freeze(H.props), Object.freeze(H)), H;
|
|
451
451
|
};
|
|
452
|
-
function Ia(p, C, K,
|
|
452
|
+
function Ia(p, C, K, O, G) {
|
|
453
453
|
{
|
|
454
454
|
var Y, U = {}, H = null, ae = null;
|
|
455
455
|
K !== void 0 && (Pr(K), H = "" + K), Ta(C) && (Pr(C.key), H = "" + C.key), Sa(C) && (ae = C.ref, Ba(C, G));
|
|
@@ -464,7 +464,7 @@ function Wa() {
|
|
|
464
464
|
var re = typeof p == "function" ? p.displayName || p.name || "Unknown" : p;
|
|
465
465
|
H && Aa(U, re), ae && ka(U, re);
|
|
466
466
|
}
|
|
467
|
-
return Ka(p, H, ae, G,
|
|
467
|
+
return Ka(p, H, ae, G, O, ct.current, U);
|
|
468
468
|
}
|
|
469
469
|
}
|
|
470
470
|
var gn = T.ReactCurrentOwner, Br = T.ReactDebugCurrentFrame;
|
|
@@ -525,8 +525,8 @@ Check the top-level render call using <` + K + ">.");
|
|
|
525
525
|
if (kr[K])
|
|
526
526
|
return;
|
|
527
527
|
kr[K] = !0;
|
|
528
|
-
var
|
|
529
|
-
p && p._owner && p._owner !== gn.current && (
|
|
528
|
+
var O = "";
|
|
529
|
+
p && p._owner && p._owner !== gn.current && (O = " It was passed a child from " + h(p._owner.type) + "."), Ze(p), E('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', K, O), Ze(null);
|
|
530
530
|
}
|
|
531
531
|
}
|
|
532
532
|
function Ir(p, C) {
|
|
@@ -535,8 +535,8 @@ Check the top-level render call using <` + K + ">.");
|
|
|
535
535
|
return;
|
|
536
536
|
if (vn(p))
|
|
537
537
|
for (var K = 0; K < p.length; K++) {
|
|
538
|
-
var
|
|
539
|
-
mn(
|
|
538
|
+
var O = p[K];
|
|
539
|
+
mn(O) && Kr(O, C);
|
|
540
540
|
}
|
|
541
541
|
else if (mn(p))
|
|
542
542
|
p._store && (p._store.validated = !0);
|
|
@@ -563,8 +563,8 @@ Check the top-level render call using <` + K + ">.");
|
|
|
563
563
|
else
|
|
564
564
|
return;
|
|
565
565
|
if (K) {
|
|
566
|
-
var
|
|
567
|
-
Ea(K, p.props, "prop",
|
|
566
|
+
var O = h(C);
|
|
567
|
+
Ea(K, p.props, "prop", O, p);
|
|
568
568
|
} else if (C.PropTypes !== void 0 && !hn) {
|
|
569
569
|
hn = !0;
|
|
570
570
|
var G = h(C);
|
|
@@ -576,9 +576,9 @@ Check the top-level render call using <` + K + ">.");
|
|
|
576
576
|
function La(p) {
|
|
577
577
|
{
|
|
578
578
|
for (var C = Object.keys(p.props), K = 0; K < C.length; K++) {
|
|
579
|
-
var
|
|
580
|
-
if (
|
|
581
|
-
Ze(p), E("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",
|
|
579
|
+
var O = C[K];
|
|
580
|
+
if (O !== "children" && O !== "key") {
|
|
581
|
+
Ze(p), E("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", O), Ze(null);
|
|
582
582
|
break;
|
|
583
583
|
}
|
|
584
584
|
}
|
|
@@ -586,7 +586,7 @@ Check the top-level render call using <` + K + ">.");
|
|
|
586
586
|
}
|
|
587
587
|
}
|
|
588
588
|
var Fr = {};
|
|
589
|
-
function Mr(p, C, K,
|
|
589
|
+
function Mr(p, C, K, O, G, Y) {
|
|
590
590
|
{
|
|
591
591
|
var U = m(p);
|
|
592
592
|
if (!U) {
|
|
@@ -603,7 +603,7 @@ Check the top-level render call using <` + K + ">.");
|
|
|
603
603
|
if (U) {
|
|
604
604
|
var ge = C.children;
|
|
605
605
|
if (ge !== void 0)
|
|
606
|
-
if (
|
|
606
|
+
if (O)
|
|
607
607
|
if (vn(ge)) {
|
|
608
608
|
for (var Je = 0; Je < ge.length; Je++)
|
|
609
609
|
Ir(ge[Je], p);
|
|
@@ -633,11 +633,11 @@ React keys must be passed directly to JSX without using spread:
|
|
|
633
633
|
function Ra(p, C, K) {
|
|
634
634
|
return Mr(p, C, K, !0);
|
|
635
635
|
}
|
|
636
|
-
function
|
|
636
|
+
function za(p, C, K) {
|
|
637
637
|
return Mr(p, C, K, !1);
|
|
638
638
|
}
|
|
639
|
-
var
|
|
640
|
-
ft.Fragment = r, ft.jsx =
|
|
639
|
+
var Oa = za, _a = Ra;
|
|
640
|
+
ft.Fragment = r, ft.jsx = Oa, ft.jsxs = _a;
|
|
641
641
|
}()), ft;
|
|
642
642
|
}
|
|
643
643
|
process.env.NODE_ENV === "production" ? Fn.exports = Ua() : Fn.exports = Wa();
|
|
@@ -1071,7 +1071,7 @@ function Fl(t, e) {
|
|
|
1071
1071
|
function Ds() {
|
|
1072
1072
|
return typeof window.ResizeObserver < "u";
|
|
1073
1073
|
}
|
|
1074
|
-
function
|
|
1074
|
+
function zr(t) {
|
|
1075
1075
|
const { ref: e, box: n, onResize: r } = t;
|
|
1076
1076
|
V(() => {
|
|
1077
1077
|
let l = e == null ? void 0 : e.current;
|
|
@@ -1147,7 +1147,7 @@ function rn(t) {
|
|
|
1147
1147
|
"aria-describedby": t ? e : void 0
|
|
1148
1148
|
};
|
|
1149
1149
|
}
|
|
1150
|
-
function
|
|
1150
|
+
function Or(t, e, n, r) {
|
|
1151
1151
|
let l = ce(n), i = n == null;
|
|
1152
1152
|
V(() => {
|
|
1153
1153
|
if (i || !t.current)
|
|
@@ -1689,7 +1689,7 @@ class Rs {
|
|
|
1689
1689
|
this.nativeEvent = n, this.target = n.target, this.currentTarget = n.currentTarget, this.relatedTarget = n.relatedTarget, this.bubbles = n.bubbles, this.cancelable = n.cancelable, this.defaultPrevented = n.defaultPrevented, this.eventPhase = n.eventPhase, this.isTrusted = n.isTrusted, this.timeStamp = n.timeStamp, this.type = e;
|
|
1690
1690
|
}
|
|
1691
1691
|
}
|
|
1692
|
-
function
|
|
1692
|
+
function zl(t) {
|
|
1693
1693
|
let e = I({
|
|
1694
1694
|
isFocused: !1,
|
|
1695
1695
|
observer: null
|
|
@@ -1734,7 +1734,7 @@ function Ol(t) {
|
|
|
1734
1734
|
n
|
|
1735
1735
|
]);
|
|
1736
1736
|
}
|
|
1737
|
-
function
|
|
1737
|
+
function Ol(t) {
|
|
1738
1738
|
let { isDisabled: e, onFocus: n, onBlur: r, onFocusChange: l } = t;
|
|
1739
1739
|
const i = Q((a) => {
|
|
1740
1740
|
if (a.target === a.currentTarget)
|
|
@@ -1742,7 +1742,7 @@ function zl(t) {
|
|
|
1742
1742
|
}, [
|
|
1743
1743
|
r,
|
|
1744
1744
|
l
|
|
1745
|
-
]), o =
|
|
1745
|
+
]), o = zl(i), u = Q((a) => {
|
|
1746
1746
|
const s = J(a.target);
|
|
1747
1747
|
a.target === a.currentTarget && s.activeElement === a.target && (n && n(a), l && l(!0), o(a));
|
|
1748
1748
|
}, [
|
|
@@ -1757,8 +1757,8 @@ function zl(t) {
|
|
|
1757
1757
|
}
|
|
1758
1758
|
};
|
|
1759
1759
|
}
|
|
1760
|
-
let Ke = null, Et = /* @__PURE__ */ new Set(), $t = /* @__PURE__ */ new Map(), Xe = !1,
|
|
1761
|
-
const
|
|
1760
|
+
let Ke = null, Et = /* @__PURE__ */ new Set(), $t = /* @__PURE__ */ new Map(), Xe = !1, zn = !1;
|
|
1761
|
+
const zs = {
|
|
1762
1762
|
Tab: !0,
|
|
1763
1763
|
Escape: !0
|
|
1764
1764
|
};
|
|
@@ -1766,11 +1766,11 @@ function ln(t, e) {
|
|
|
1766
1766
|
for (let n of Et)
|
|
1767
1767
|
n(t, e);
|
|
1768
1768
|
}
|
|
1769
|
-
function
|
|
1769
|
+
function Os(t) {
|
|
1770
1770
|
return !(t.metaKey || !je() && t.altKey || t.ctrlKey || t.key === "Control" || t.key === "Shift" || t.key === "Meta");
|
|
1771
1771
|
}
|
|
1772
1772
|
function Ut(t) {
|
|
1773
|
-
Xe = !0,
|
|
1773
|
+
Xe = !0, Os(t) && (Ke = "keyboard", ln("keyboard", t));
|
|
1774
1774
|
}
|
|
1775
1775
|
function me(t) {
|
|
1776
1776
|
Ke = "pointer", (t.type === "mousedown" || t.type === "pointerdown") && (Xe = !0, ln("pointer", t));
|
|
@@ -1779,10 +1779,10 @@ function _l(t) {
|
|
|
1779
1779
|
Nn(t) && (Xe = !0, Ke = "virtual");
|
|
1780
1780
|
}
|
|
1781
1781
|
function jl(t) {
|
|
1782
|
-
t.target === window || t.target === document || (!Xe && !
|
|
1782
|
+
t.target === window || t.target === document || (!Xe && !zn && (Ke = "virtual", ln("virtual", t)), Xe = !1, zn = !1);
|
|
1783
1783
|
}
|
|
1784
1784
|
function Vl() {
|
|
1785
|
-
Xe = !1,
|
|
1785
|
+
Xe = !1, zn = !0;
|
|
1786
1786
|
}
|
|
1787
1787
|
function Wt(t) {
|
|
1788
1788
|
if (typeof window > "u" || $t.get(xe(t)))
|
|
@@ -1846,7 +1846,7 @@ const js = /* @__PURE__ */ new Set([
|
|
|
1846
1846
|
function Vs(t, e, n) {
|
|
1847
1847
|
var r;
|
|
1848
1848
|
const l = typeof window < "u" ? xe(n == null ? void 0 : n.target).HTMLInputElement : HTMLInputElement, i = typeof window < "u" ? xe(n == null ? void 0 : n.target).HTMLTextAreaElement : HTMLTextAreaElement, o = typeof window < "u" ? xe(n == null ? void 0 : n.target).HTMLElement : HTMLElement, u = typeof window < "u" ? xe(n == null ? void 0 : n.target).KeyboardEvent : KeyboardEvent;
|
|
1849
|
-
return t = t || (n == null ? void 0 : n.target) instanceof l && !js.has(n == null || (r = n.target) === null || r === void 0 ? void 0 : r.type) || (n == null ? void 0 : n.target) instanceof i || (n == null ? void 0 : n.target) instanceof o && (n == null ? void 0 : n.target.isContentEditable), !(t && e === "keyboard" && n instanceof u && !
|
|
1849
|
+
return t = t || (n == null ? void 0 : n.target) instanceof l && !js.has(n == null || (r = n.target) === null || r === void 0 ? void 0 : r.type) || (n == null ? void 0 : n.target) instanceof i || (n == null ? void 0 : n.target) instanceof o && (n == null ? void 0 : n.target.isContentEditable), !(t && e === "keyboard" && n instanceof u && !zs[n.key]);
|
|
1850
1850
|
}
|
|
1851
1851
|
function Hs(t, e, n) {
|
|
1852
1852
|
Wt(), V(() => {
|
|
@@ -1867,7 +1867,7 @@ function wt(t) {
|
|
|
1867
1867
|
n,
|
|
1868
1868
|
l,
|
|
1869
1869
|
i
|
|
1870
|
-
]), u =
|
|
1870
|
+
]), u = zl(o), a = Q((s) => {
|
|
1871
1871
|
!i.current.isFocusWithin && document.activeElement === s.target && (r && r(s), l && l(!0), i.current.isFocusWithin = !0, u(s));
|
|
1872
1872
|
}, [
|
|
1873
1873
|
r,
|
|
@@ -1888,18 +1888,18 @@ function wt(t) {
|
|
|
1888
1888
|
};
|
|
1889
1889
|
}
|
|
1890
1890
|
let Yt = !1, Cn = 0;
|
|
1891
|
-
function
|
|
1891
|
+
function On() {
|
|
1892
1892
|
Yt = !0, setTimeout(() => {
|
|
1893
1893
|
Yt = !1;
|
|
1894
1894
|
}, 50);
|
|
1895
1895
|
}
|
|
1896
1896
|
function Gr(t) {
|
|
1897
|
-
t.pointerType === "touch" &&
|
|
1897
|
+
t.pointerType === "touch" && On();
|
|
1898
1898
|
}
|
|
1899
1899
|
function Us() {
|
|
1900
1900
|
if (!(typeof document > "u"))
|
|
1901
|
-
return typeof PointerEvent < "u" ? document.addEventListener("pointerup", Gr) : document.addEventListener("touchend",
|
|
1902
|
-
Cn--, !(Cn > 0) && (typeof PointerEvent < "u" ? document.removeEventListener("pointerup", Gr) : document.removeEventListener("touchend",
|
|
1901
|
+
return typeof PointerEvent < "u" ? document.addEventListener("pointerup", Gr) : document.addEventListener("touchend", On), Cn++, () => {
|
|
1902
|
+
Cn--, !(Cn > 0) && (typeof PointerEvent < "u" ? document.removeEventListener("pointerup", Gr) : document.removeEventListener("touchend", On));
|
|
1903
1903
|
};
|
|
1904
1904
|
}
|
|
1905
1905
|
function on(t) {
|
|
@@ -2578,7 +2578,7 @@ function un(t = {}) {
|
|
|
2578
2578
|
}, [], {
|
|
2579
2579
|
isTextInput: n
|
|
2580
2580
|
});
|
|
2581
|
-
let { focusProps: d } =
|
|
2581
|
+
let { focusProps: d } = Ol({
|
|
2582
2582
|
isDisabled: r,
|
|
2583
2583
|
onFocusChange: c
|
|
2584
2584
|
}), { focusWithinProps: v } = wt({
|
|
@@ -2609,7 +2609,7 @@ function ac(t, e) {
|
|
|
2609
2609
|
}
|
|
2610
2610
|
let sc = /* @__PURE__ */ M.forwardRef(ac);
|
|
2611
2611
|
function Pt(t, e) {
|
|
2612
|
-
let { focusProps: n } =
|
|
2612
|
+
let { focusProps: n } = Ol(t), { keyboardProps: r } = Gs(t), l = j(n, r), i = uc(e), o = t.isDisabled ? {} : i, u = I(t.autoFocus);
|
|
2613
2613
|
return V(() => {
|
|
2614
2614
|
u.current && e.current && se(e.current), u.current = !1;
|
|
2615
2615
|
}, [
|
|
@@ -3305,8 +3305,8 @@ function ol(t, e, n, r, l, i) {
|
|
|
3305
3305
|
function Lc(t, e, n, r, l, i, o, u, a, s, c, d, v, f, g, x) {
|
|
3306
3306
|
let $ = il(t), { size: T, crossAxis: E, crossSize: D, placement: A, crossPlacement: P } = $, S = Tn(e, u, n, $, c, d, s, v, g, x), L = c, b = ol(u, s, e, l, i + c, $);
|
|
3307
3307
|
if (o && r[T] > b) {
|
|
3308
|
-
let
|
|
3309
|
-
ol(u, s, e, l, i + c,
|
|
3308
|
+
let z = il(`${Zt[A]} ${P}`), be = Tn(e, u, n, z, c, d, s, v, g, x);
|
|
3309
|
+
ol(u, s, e, l, i + c, z) > b && ($ = z, S = be, L = c);
|
|
3310
3310
|
}
|
|
3311
3311
|
let k = "bottom";
|
|
3312
3312
|
$.axis === "top" ? $.placement === "top" ? k = "top" : $.placement === "bottom" && (k = "bottom") : $.crossAxis === "top" && ($.crossPlacement === "top" ? k = "bottom" : $.crossPlacement === "bottom" && (k = "top"));
|
|
@@ -3325,7 +3325,7 @@ function Lc(t, e, n, r, l, i, o, u, a, s, c, d, v, f, g, x) {
|
|
|
3325
3325
|
};
|
|
3326
3326
|
}
|
|
3327
3327
|
function Rc(t) {
|
|
3328
|
-
let { placement: e, targetNode: n, overlayNode: r, scrollNode: l, padding: i, shouldFlip: o, boundaryElement: u, offset: a, crossOffset: s, maxHeight: c, arrowSize: d = 0, arrowBoundaryOffset: v = 0 } = t, f = r instanceof HTMLElement ?
|
|
3328
|
+
let { placement: e, targetNode: n, overlayNode: r, scrollNode: l, padding: i, shouldFlip: o, boundaryElement: u, offset: a, crossOffset: s, maxHeight: c, arrowSize: d = 0, arrowBoundaryOffset: v = 0 } = t, f = r instanceof HTMLElement ? zc(r) : document.documentElement, g = f === document.documentElement;
|
|
3329
3329
|
const x = window.getComputedStyle(f).position;
|
|
3330
3330
|
let $ = !!x && x !== "static", T = g ? it(n) : ul(n, f);
|
|
3331
3331
|
if (!g) {
|
|
@@ -3363,7 +3363,7 @@ function ul(t, e) {
|
|
|
3363
3363
|
}
|
|
3364
3364
|
return r.top -= parseInt(n.marginTop, 10) || 0, r.left -= parseInt(n.marginLeft, 10) || 0, r;
|
|
3365
3365
|
}
|
|
3366
|
-
function
|
|
3366
|
+
function zc(t) {
|
|
3367
3367
|
let e = t.offsetParent;
|
|
3368
3368
|
if (e && e === document.body && window.getComputedStyle(e).position === "static" && !al(e) && (e = document.documentElement), e == null)
|
|
3369
3369
|
for (e = t.parentElement; e && !al(e); )
|
|
@@ -3377,7 +3377,7 @@ function al(t) {
|
|
|
3377
3377
|
"WebkitBackdropFilter" in e && e.WebkitBackdropFilter !== "none";
|
|
3378
3378
|
}
|
|
3379
3379
|
const ai = /* @__PURE__ */ new WeakMap();
|
|
3380
|
-
function
|
|
3380
|
+
function Oc(t) {
|
|
3381
3381
|
let { triggerRef: e, isOpen: n, onClose: r } = t;
|
|
3382
3382
|
V(() => {
|
|
3383
3383
|
if (!n || r === null)
|
|
@@ -3466,10 +3466,10 @@ function si(t) {
|
|
|
3466
3466
|
}
|
|
3467
3467
|
E(h);
|
|
3468
3468
|
}, D);
|
|
3469
|
-
q(P, D), _c(P),
|
|
3469
|
+
q(P, D), _c(P), zr({
|
|
3470
3470
|
ref: l,
|
|
3471
3471
|
onResize: P
|
|
3472
|
-
}),
|
|
3472
|
+
}), zr({
|
|
3473
3473
|
ref: r,
|
|
3474
3474
|
onResize: P
|
|
3475
3475
|
});
|
|
@@ -3494,7 +3494,7 @@ function si(t) {
|
|
|
3494
3494
|
g,
|
|
3495
3495
|
S
|
|
3496
3496
|
]);
|
|
3497
|
-
|
|
3497
|
+
Oc({
|
|
3498
3498
|
triggerRef: r,
|
|
3499
3499
|
isOpen: f,
|
|
3500
3500
|
onClose: g && L
|
|
@@ -3852,12 +3852,12 @@ var Ri = {};
|
|
|
3852
3852
|
Ri = {
|
|
3853
3853
|
dismiss: "Opusti"
|
|
3854
3854
|
};
|
|
3855
|
-
var Oi = {};
|
|
3856
|
-
Oi = {
|
|
3857
|
-
dismiss: "Odbaci"
|
|
3858
|
-
};
|
|
3859
3855
|
var zi = {};
|
|
3860
3856
|
zi = {
|
|
3857
|
+
dismiss: "Odbaci"
|
|
3858
|
+
};
|
|
3859
|
+
var Oi = {};
|
|
3860
|
+
Oi = {
|
|
3861
3861
|
dismiss: "Avvisa"
|
|
3862
3862
|
};
|
|
3863
3863
|
var _i = {};
|
|
@@ -3906,8 +3906,8 @@ Ui = {
|
|
|
3906
3906
|
"ru-RU": Ni,
|
|
3907
3907
|
"sk-SK": Li,
|
|
3908
3908
|
"sl-SI": Ri,
|
|
3909
|
-
"sr-SP":
|
|
3910
|
-
"sv-SE":
|
|
3909
|
+
"sr-SP": zi,
|
|
3910
|
+
"sv-SE": Oi,
|
|
3911
3911
|
"tr-TR": _i,
|
|
3912
3912
|
"uk-UA": ji,
|
|
3913
3913
|
"zh-CN": Vi,
|
|
@@ -4136,19 +4136,19 @@ function qi(t) {
|
|
|
4136
4136
|
let { selectionManager: e, keyboardDelegate: n, ref: r, autoFocus: l = !1, shouldFocusWrap: i = !1, disallowEmptySelection: o = !1, disallowSelectAll: u = !1, selectOnFocus: a = e.selectionBehavior === "replace", disallowTypeAhead: s = !1, shouldUseVirtualFocus: c, allowsTabNavigation: d = !1, isVirtualized: v, scrollRef: f = r, linkBehavior: g = "action" } = t, { direction: x } = Fe(), $ = nn(), T = (m) => {
|
|
4137
4137
|
if (m.altKey && m.key === "Tab" && m.preventDefault(), !r.current.contains(m.target))
|
|
4138
4138
|
return;
|
|
4139
|
-
const w = (
|
|
4140
|
-
if (
|
|
4141
|
-
if (e.isLink(
|
|
4139
|
+
const w = (z, be) => {
|
|
4140
|
+
if (z != null) {
|
|
4141
|
+
if (e.isLink(z) && g === "selection" && a && !Yn(m)) {
|
|
4142
4142
|
Ha(() => {
|
|
4143
|
-
e.setFocusedKey(
|
|
4143
|
+
e.setFocusedKey(z, be);
|
|
4144
4144
|
});
|
|
4145
|
-
let Ce = f.current.querySelector(`[data-key="${CSS.escape(
|
|
4145
|
+
let Ce = f.current.querySelector(`[data-key="${CSS.escape(z.toString())}"]`), at = e.getItemProps(z);
|
|
4146
4146
|
$.open(Ce, m, at.href, at.routerOptions);
|
|
4147
4147
|
return;
|
|
4148
4148
|
}
|
|
4149
|
-
if (e.setFocusedKey(
|
|
4149
|
+
if (e.setFocusedKey(z, be), e.isLink(z) && g === "override")
|
|
4150
4150
|
return;
|
|
4151
|
-
m.shiftKey && e.selectionMode === "multiple" ? e.extendSelection(
|
|
4151
|
+
m.shiftKey && e.selectionMode === "multiple" ? e.extendSelection(z) : a && !Yn(m) && e.replaceSelection(z);
|
|
4152
4152
|
}
|
|
4153
4153
|
};
|
|
4154
4154
|
switch (m.key) {
|
|
@@ -4156,60 +4156,60 @@ function qi(t) {
|
|
|
4156
4156
|
if (n.getKeyBelow) {
|
|
4157
4157
|
var N, h;
|
|
4158
4158
|
m.preventDefault();
|
|
4159
|
-
let
|
|
4160
|
-
|
|
4159
|
+
let z = e.focusedKey != null ? n.getKeyBelow(e.focusedKey) : (N = n.getFirstKey) === null || N === void 0 ? void 0 : N.call(n);
|
|
4160
|
+
z == null && i && (z = (h = n.getFirstKey) === null || h === void 0 ? void 0 : h.call(n, e.focusedKey)), w(z);
|
|
4161
4161
|
}
|
|
4162
4162
|
break;
|
|
4163
4163
|
case "ArrowUp":
|
|
4164
4164
|
if (n.getKeyAbove) {
|
|
4165
4165
|
var y, R;
|
|
4166
4166
|
m.preventDefault();
|
|
4167
|
-
let
|
|
4168
|
-
|
|
4167
|
+
let z = e.focusedKey != null ? n.getKeyAbove(e.focusedKey) : (y = n.getLastKey) === null || y === void 0 ? void 0 : y.call(n);
|
|
4168
|
+
z == null && i && (z = (R = n.getLastKey) === null || R === void 0 ? void 0 : R.call(n, e.focusedKey)), w(z);
|
|
4169
4169
|
}
|
|
4170
4170
|
break;
|
|
4171
4171
|
case "ArrowLeft":
|
|
4172
4172
|
if (n.getKeyLeftOf) {
|
|
4173
4173
|
var X, F;
|
|
4174
4174
|
m.preventDefault();
|
|
4175
|
-
let
|
|
4176
|
-
|
|
4175
|
+
let z = n.getKeyLeftOf(e.focusedKey);
|
|
4176
|
+
z == null && i && (z = x === "rtl" ? (X = n.getFirstKey) === null || X === void 0 ? void 0 : X.call(n, e.focusedKey) : (F = n.getLastKey) === null || F === void 0 ? void 0 : F.call(n, e.focusedKey)), w(z, x === "rtl" ? "first" : "last");
|
|
4177
4177
|
}
|
|
4178
4178
|
break;
|
|
4179
4179
|
case "ArrowRight":
|
|
4180
4180
|
if (n.getKeyRightOf) {
|
|
4181
4181
|
var de, Me;
|
|
4182
4182
|
m.preventDefault();
|
|
4183
|
-
let
|
|
4184
|
-
|
|
4183
|
+
let z = n.getKeyRightOf(e.focusedKey);
|
|
4184
|
+
z == null && i && (z = x === "rtl" ? (de = n.getLastKey) === null || de === void 0 ? void 0 : de.call(n, e.focusedKey) : (Me = n.getFirstKey) === null || Me === void 0 ? void 0 : Me.call(n, e.focusedKey)), w(z, x === "rtl" ? "last" : "first");
|
|
4185
4185
|
}
|
|
4186
4186
|
break;
|
|
4187
4187
|
case "Home":
|
|
4188
4188
|
if (n.getFirstKey) {
|
|
4189
4189
|
m.preventDefault();
|
|
4190
|
-
let
|
|
4191
|
-
e.setFocusedKey(
|
|
4190
|
+
let z = n.getFirstKey(e.focusedKey, nt(m));
|
|
4191
|
+
e.setFocusedKey(z), nt(m) && m.shiftKey && e.selectionMode === "multiple" ? e.extendSelection(z) : a && e.replaceSelection(z);
|
|
4192
4192
|
}
|
|
4193
4193
|
break;
|
|
4194
4194
|
case "End":
|
|
4195
4195
|
if (n.getLastKey) {
|
|
4196
4196
|
m.preventDefault();
|
|
4197
|
-
let
|
|
4198
|
-
e.setFocusedKey(
|
|
4197
|
+
let z = n.getLastKey(e.focusedKey, nt(m));
|
|
4198
|
+
e.setFocusedKey(z), nt(m) && m.shiftKey && e.selectionMode === "multiple" ? e.extendSelection(z) : a && e.replaceSelection(z);
|
|
4199
4199
|
}
|
|
4200
4200
|
break;
|
|
4201
4201
|
case "PageDown":
|
|
4202
4202
|
if (n.getKeyPageBelow) {
|
|
4203
4203
|
m.preventDefault();
|
|
4204
|
-
let
|
|
4205
|
-
w(
|
|
4204
|
+
let z = n.getKeyPageBelow(e.focusedKey);
|
|
4205
|
+
w(z);
|
|
4206
4206
|
}
|
|
4207
4207
|
break;
|
|
4208
4208
|
case "PageUp":
|
|
4209
4209
|
if (n.getKeyPageAbove) {
|
|
4210
4210
|
m.preventDefault();
|
|
4211
|
-
let
|
|
4212
|
-
w(
|
|
4211
|
+
let z = n.getKeyPageAbove(e.focusedKey);
|
|
4212
|
+
w(z);
|
|
4213
4213
|
}
|
|
4214
4214
|
break;
|
|
4215
4215
|
case "a":
|
|
@@ -4223,11 +4223,11 @@ function qi(t) {
|
|
|
4223
4223
|
if (m.shiftKey)
|
|
4224
4224
|
r.current.focus();
|
|
4225
4225
|
else {
|
|
4226
|
-
let
|
|
4226
|
+
let z = ve(r.current, {
|
|
4227
4227
|
tabbable: !0
|
|
4228
4228
|
}), be, Ce;
|
|
4229
4229
|
do
|
|
4230
|
-
Ce =
|
|
4230
|
+
Ce = z.lastChild(), Ce && (be = Ce);
|
|
4231
4231
|
while (Ce);
|
|
4232
4232
|
be && !be.contains(document.activeElement) && Ae(be);
|
|
4233
4233
|
}
|
|
@@ -4238,7 +4238,7 @@ function qi(t) {
|
|
|
4238
4238
|
top: 0,
|
|
4239
4239
|
left: 0
|
|
4240
4240
|
});
|
|
4241
|
-
|
|
4241
|
+
Or(f, "scroll", v ? null : () => {
|
|
4242
4242
|
E.current = {
|
|
4243
4243
|
top: f.current.scrollTop,
|
|
4244
4244
|
left: f.current.scrollLeft
|
|
@@ -4295,7 +4295,7 @@ function qi(t) {
|
|
|
4295
4295
|
}));
|
|
4296
4296
|
}
|
|
4297
4297
|
!c && e.isFocused && e.focusedKey == null && S.current != null && se(r.current), S.current = e.focusedKey, P.current = !1;
|
|
4298
|
-
}),
|
|
4298
|
+
}), Or(r, "react-aria-focus-scope-restore", (m) => {
|
|
4299
4299
|
m.preventDefault(), e.setFocused(!0);
|
|
4300
4300
|
});
|
|
4301
4301
|
let L = {
|
|
@@ -4884,9 +4884,9 @@ function le(t, e) {
|
|
|
4884
4884
|
return typeof e.getChildren == "function" ? e.getChildren(t.key) : t.childNodes;
|
|
4885
4885
|
}
|
|
4886
4886
|
function Be(t) {
|
|
4887
|
-
return
|
|
4887
|
+
return ze(t, 0);
|
|
4888
4888
|
}
|
|
4889
|
-
function
|
|
4889
|
+
function ze(t, e) {
|
|
4890
4890
|
if (e < 0)
|
|
4891
4891
|
return;
|
|
4892
4892
|
let n = 0;
|
|
@@ -4896,7 +4896,7 @@ function Oe(t, e) {
|
|
|
4896
4896
|
n++;
|
|
4897
4897
|
}
|
|
4898
4898
|
}
|
|
4899
|
-
function
|
|
4899
|
+
function Oe(t) {
|
|
4900
4900
|
let e;
|
|
4901
4901
|
for (let n of t)
|
|
4902
4902
|
e = n;
|
|
@@ -5297,7 +5297,7 @@ class No {
|
|
|
5297
5297
|
if (n && (this.isCell(n) && (e = n.parentKey), e = this.findNextKey(e, (r) => r.type === "item"), e != null)) {
|
|
5298
5298
|
if (this.isCell(n)) {
|
|
5299
5299
|
let r = this.collection.getItem(e);
|
|
5300
|
-
return
|
|
5300
|
+
return ze(le(r, this.collection), n.index).key;
|
|
5301
5301
|
}
|
|
5302
5302
|
if (this.focusMode === "row")
|
|
5303
5303
|
return e;
|
|
@@ -5308,7 +5308,7 @@ class No {
|
|
|
5308
5308
|
if (n && (this.isCell(n) && (e = n.parentKey), e = this.findPreviousKey(e, (r) => r.type === "item"), e != null)) {
|
|
5309
5309
|
if (this.isCell(n)) {
|
|
5310
5310
|
let r = this.collection.getItem(e);
|
|
5311
|
-
return
|
|
5311
|
+
return ze(le(r, this.collection), n.index).key;
|
|
5312
5312
|
}
|
|
5313
5313
|
if (this.focusMode === "row")
|
|
5314
5314
|
return e;
|
|
@@ -5319,10 +5319,10 @@ class No {
|
|
|
5319
5319
|
if (n) {
|
|
5320
5320
|
if (this.isRow(n)) {
|
|
5321
5321
|
let r = le(n, this.collection);
|
|
5322
|
-
return this.direction === "rtl" ?
|
|
5322
|
+
return this.direction === "rtl" ? Oe(r).key : Be(r).key;
|
|
5323
5323
|
}
|
|
5324
5324
|
if (this.isCell(n)) {
|
|
5325
|
-
let r = this.collection.getItem(n.parentKey), l = le(r, this.collection), i = this.direction === "rtl" ?
|
|
5325
|
+
let r = this.collection.getItem(n.parentKey), l = le(r, this.collection), i = this.direction === "rtl" ? ze(l, n.index - 1) : ze(l, n.index + 1);
|
|
5326
5326
|
return i ? i.key : this.focusMode === "row" ? n.parentKey : this.direction === "rtl" ? this.getFirstKey(e) : this.getLastKey(e);
|
|
5327
5327
|
}
|
|
5328
5328
|
}
|
|
@@ -5332,10 +5332,10 @@ class No {
|
|
|
5332
5332
|
if (n) {
|
|
5333
5333
|
if (this.isRow(n)) {
|
|
5334
5334
|
let r = le(n, this.collection);
|
|
5335
|
-
return this.direction === "rtl" ? Be(r).key :
|
|
5335
|
+
return this.direction === "rtl" ? Be(r).key : Oe(r).key;
|
|
5336
5336
|
}
|
|
5337
5337
|
if (this.isCell(n)) {
|
|
5338
|
-
let r = this.collection.getItem(n.parentKey), l = le(r, this.collection), i = this.direction === "rtl" ?
|
|
5338
|
+
let r = this.collection.getItem(n.parentKey), l = le(r, this.collection), i = this.direction === "rtl" ? ze(l, n.index + 1) : ze(l, n.index - 1);
|
|
5339
5339
|
return i ? i.key : this.focusMode === "row" ? n.parentKey : this.direction === "rtl" ? this.getLastKey(e) : this.getFirstKey(e);
|
|
5340
5340
|
}
|
|
5341
5341
|
}
|
|
@@ -5363,12 +5363,12 @@ class No {
|
|
|
5363
5363
|
return;
|
|
5364
5364
|
if (this.isCell(r) && !n) {
|
|
5365
5365
|
let l = this.collection.getItem(r.parentKey), i = le(l, this.collection);
|
|
5366
|
-
return
|
|
5366
|
+
return Oe(i).key;
|
|
5367
5367
|
}
|
|
5368
5368
|
}
|
|
5369
5369
|
if (e = this.findPreviousKey(null, (l) => l.type === "item"), e != null && r && this.isCell(r) && n || this.focusMode === "cell") {
|
|
5370
5370
|
let l = this.collection.getItem(e), i = le(l, this.collection);
|
|
5371
|
-
e =
|
|
5371
|
+
e = Oe(i).key;
|
|
5372
5372
|
}
|
|
5373
5373
|
return e;
|
|
5374
5374
|
}
|
|
@@ -5457,8 +5457,8 @@ Ro = {
|
|
|
5457
5457
|
})}.`,
|
|
5458
5458
|
selectedItem: (t) => `${t.item} избран.`
|
|
5459
5459
|
};
|
|
5460
|
-
var
|
|
5461
|
-
|
|
5460
|
+
var zo = {};
|
|
5461
|
+
zo = {
|
|
5462
5462
|
deselectedItem: (t) => `Položka ${t.item} není vybrána.`,
|
|
5463
5463
|
longPressToSelect: "Dlouhým stisknutím přejdete do režimu výběru.",
|
|
5464
5464
|
select: "Vybrat",
|
|
@@ -5470,8 +5470,8 @@ Oo = {
|
|
|
5470
5470
|
})}.`,
|
|
5471
5471
|
selectedItem: (t) => `Vybrána položka ${t.item}.`
|
|
5472
5472
|
};
|
|
5473
|
-
var
|
|
5474
|
-
|
|
5473
|
+
var Oo = {};
|
|
5474
|
+
Oo = {
|
|
5475
5475
|
deselectedItem: (t) => `${t.item} ikke valgt.`,
|
|
5476
5476
|
longPressToSelect: "Lav et langt tryk for at aktivere valgtilstand.",
|
|
5477
5477
|
select: "Vælg",
|
|
@@ -5877,8 +5877,8 @@ var fr = {};
|
|
|
5877
5877
|
fr = {
|
|
5878
5878
|
"ar-AE": Lo,
|
|
5879
5879
|
"bg-BG": Ro,
|
|
5880
|
-
"cs-CZ":
|
|
5881
|
-
"da-DK":
|
|
5880
|
+
"cs-CZ": zo,
|
|
5881
|
+
"da-DK": Oo,
|
|
5882
5882
|
"de-DE": _o,
|
|
5883
5883
|
"el-GR": jo,
|
|
5884
5884
|
"en-US": Vo,
|
|
@@ -6713,8 +6713,8 @@ Ru = {
|
|
|
6713
6713
|
selectAll: "Pasirinkti viską",
|
|
6714
6714
|
sortable: "rikiuojamas stulpelis"
|
|
6715
6715
|
};
|
|
6716
|
-
var
|
|
6717
|
-
|
|
6716
|
+
var zu = {};
|
|
6717
|
+
zu = {
|
|
6718
6718
|
ascending: "augošā secībā",
|
|
6719
6719
|
ascendingSort: (t) => `kārtots pēc kolonnas ${t.columnName} augošā secībā`,
|
|
6720
6720
|
columnSize: (t) => `${t.value} pikseļi`,
|
|
@@ -6725,8 +6725,8 @@ Ou = {
|
|
|
6725
6725
|
selectAll: "Atlasīt visu",
|
|
6726
6726
|
sortable: "kārtojamā kolonna"
|
|
6727
6727
|
};
|
|
6728
|
-
var
|
|
6729
|
-
|
|
6728
|
+
var Ou = {};
|
|
6729
|
+
Ou = {
|
|
6730
6730
|
ascending: "stigende",
|
|
6731
6731
|
ascendingSort: (t) => `sortert etter kolonne ${t.columnName} i stigende rekkefølge`,
|
|
6732
6732
|
columnSize: (t) => `${t.value} piksler`,
|
|
@@ -6925,8 +6925,8 @@ vr = {
|
|
|
6925
6925
|
"ja-JP": Nu,
|
|
6926
6926
|
"ko-KR": Lu,
|
|
6927
6927
|
"lt-LT": Ru,
|
|
6928
|
-
"lv-LV":
|
|
6929
|
-
"nb-NO":
|
|
6928
|
+
"lv-LV": zu,
|
|
6929
|
+
"nb-NO": Ou,
|
|
6930
6930
|
"nl-NL": _u,
|
|
6931
6931
|
"pl-PL": ju,
|
|
6932
6932
|
"pt-BR": Vu,
|
|
@@ -6957,7 +6957,7 @@ class Rd extends No {
|
|
|
6957
6957
|
if (l == null)
|
|
6958
6958
|
return;
|
|
6959
6959
|
let i = this.collection.getItem(l);
|
|
6960
|
-
return
|
|
6960
|
+
return ze(le(i, this.collection), n.index).key;
|
|
6961
6961
|
}
|
|
6962
6962
|
return super.getKeyBelow(e);
|
|
6963
6963
|
}
|
|
@@ -7029,11 +7029,11 @@ class Rd extends No {
|
|
|
7029
7029
|
return null;
|
|
7030
7030
|
}
|
|
7031
7031
|
}
|
|
7032
|
-
let
|
|
7032
|
+
let zd = !1;
|
|
7033
7033
|
function Jt() {
|
|
7034
|
-
return
|
|
7034
|
+
return zd;
|
|
7035
7035
|
}
|
|
7036
|
-
function
|
|
7036
|
+
function Od(t) {
|
|
7037
7037
|
return t && t.__esModule ? t.default : t;
|
|
7038
7038
|
}
|
|
7039
7039
|
function _d(t, e, n) {
|
|
@@ -7067,7 +7067,7 @@ function _d(t, e, n) {
|
|
|
7067
7067
|
keyboardDelegate: c
|
|
7068
7068
|
}, e, n);
|
|
7069
7069
|
l && (v["aria-rowcount"] = e.collection.size + e.collection.headerRows.length), Jt() && "expandedKeys" in e && (v.role = "treegrid");
|
|
7070
|
-
let { column: f, direction: g } = e.sortDescriptor || {}, x = ut(
|
|
7070
|
+
let { column: f, direction: g } = e.sortDescriptor || {}, x = ut(Od(vr), "@react-aria/table"), $ = _(() => {
|
|
7071
7071
|
var E;
|
|
7072
7072
|
let D = (E = e.collection.columns.find((A) => A.key === f)) === null || E === void 0 ? void 0 : E.textValue;
|
|
7073
7073
|
return g && f ? x.format(`${g}Sort`, {
|
|
@@ -7162,7 +7162,7 @@ function Hd(t, e, n) {
|
|
|
7162
7162
|
"aria-expanded": x ? e.expandedKeys === "all" || e.expandedKeys.has(r.key) : void 0,
|
|
7163
7163
|
"aria-level": g.level,
|
|
7164
7164
|
"aria-posinset": g.indexOfType + 1,
|
|
7165
|
-
"aria-setsize": g.level > 1 ?
|
|
7165
|
+
"aria-setsize": g.level > 1 ? Oe(e.keyMap.get(g == null ? void 0 : g.parentKey).childNodes).indexOfType + 1 : Oe(e.keyMap.get(e.collection.body.key).childNodes).indexOfType + 1
|
|
7166
7166
|
};
|
|
7167
7167
|
}
|
|
7168
7168
|
}
|
|
@@ -7283,7 +7283,7 @@ function Qf({ variant: t = "primary", ...e }) {
|
|
|
7283
7283
|
"data-testid": e["data-testid"],
|
|
7284
7284
|
children: [
|
|
7285
7285
|
u,
|
|
7286
|
-
e.href && /* @__PURE__ */ B.jsx("svg", { viewBox: "0 0 512 512", width: "0.
|
|
7286
|
+
e.href && e.external && /* @__PURE__ */ B.jsx("svg", { viewBox: "0 0 512 512", width: "0.8em", height: "0.8em", children: /* @__PURE__ */ B.jsx(
|
|
7287
7287
|
"path",
|
|
7288
7288
|
{
|
|
7289
7289
|
d: "M384 224v184a40 40 0 01-40 40H104a40 40 0 01-40-40V168a40 40 0 0140-40h167.48M336 64h112v112M224 288L440 72",
|
|
@@ -7843,7 +7843,7 @@ function lf(t) {
|
|
|
7843
7843
|
if ((v == null ? void 0 : v.type) === "item") {
|
|
7844
7844
|
var c, d;
|
|
7845
7845
|
let f = le(v, e);
|
|
7846
|
-
s === "last" ? a = (c =
|
|
7846
|
+
s === "last" ? a = (c = Oe(f)) === null || c === void 0 ? void 0 : c.key : a = (d = Be(f)) === null || d === void 0 ? void 0 : d.key;
|
|
7847
7847
|
}
|
|
7848
7848
|
}
|
|
7849
7849
|
i(a, s);
|
|
@@ -8085,7 +8085,7 @@ class af extends of {
|
|
|
8085
8085
|
}
|
|
8086
8086
|
getLastKey() {
|
|
8087
8087
|
var e;
|
|
8088
|
-
return (e =
|
|
8088
|
+
return (e = Oe(this.body.childNodes)) === null || e === void 0 ? void 0 : e.key;
|
|
8089
8089
|
}
|
|
8090
8090
|
getItem(e) {
|
|
8091
8091
|
return this.keyMap.get(e);
|
|
@@ -8520,12 +8520,12 @@ const i4 = {
|
|
|
8520
8520
|
MEDIUM: "#e33939",
|
|
8521
8521
|
LIGHT: "#f87171",
|
|
8522
8522
|
SUPER_LIGHT: "#fef2f2"
|
|
8523
|
-
},
|
|
8523
|
+
}, zt = {
|
|
8524
8524
|
DARK: "#854d0e",
|
|
8525
8525
|
MEDIUM: "#a16207",
|
|
8526
8526
|
LIGHT: "#facc15",
|
|
8527
8527
|
SUPER_LIGHT: "#fffbd2"
|
|
8528
|
-
},
|
|
8528
|
+
}, Ot = {
|
|
8529
8529
|
DARK: "#166534",
|
|
8530
8530
|
MEDIUM: "#15803d",
|
|
8531
8531
|
LIGHT: "#4ade80",
|
|
@@ -9105,10 +9105,10 @@ function Rf(t, e) {
|
|
|
9105
9105
|
"data-focus-visible": u || void 0
|
|
9106
9106
|
});
|
|
9107
9107
|
}
|
|
9108
|
-
const
|
|
9108
|
+
const zf = /* @__PURE__ */ kf(Rf), ba = /* @__PURE__ */ Ee({
|
|
9109
9109
|
placement: "bottom"
|
|
9110
9110
|
});
|
|
9111
|
-
function
|
|
9111
|
+
function Of(t, e) {
|
|
9112
9112
|
[t, e] = mr(t, e, ba);
|
|
9113
9113
|
let n = t.placement, r = {
|
|
9114
9114
|
position: "absolute",
|
|
@@ -9132,7 +9132,7 @@ function zf(t, e) {
|
|
|
9132
9132
|
"data-placement": n
|
|
9133
9133
|
});
|
|
9134
9134
|
}
|
|
9135
|
-
const _f = /* @__PURE__ */ Qn(
|
|
9135
|
+
const _f = /* @__PURE__ */ Qn(Of), $r = /* @__PURE__ */ Ee(null), ga = /* @__PURE__ */ Ee(null);
|
|
9136
9136
|
function jf(t) {
|
|
9137
9137
|
let e = aa(t), n = I(null), { triggerProps: r, tooltipProps: l } = qd(t, e, n);
|
|
9138
9138
|
return /* @__PURE__ */ M.createElement(Kf, {
|
|
@@ -9257,7 +9257,7 @@ function p4({
|
|
|
9257
9257
|
},
|
|
9258
9258
|
children: [
|
|
9259
9259
|
/* @__PURE__ */ B.jsx(
|
|
9260
|
-
|
|
9260
|
+
zf,
|
|
9261
9261
|
{
|
|
9262
9262
|
className: "proton__TooltipTrigger",
|
|
9263
9263
|
"aria-label": "Show tooltip",
|
|
@@ -9274,35 +9274,30 @@ function p4({
|
|
|
9274
9274
|
}
|
|
9275
9275
|
const Gf = {
|
|
9276
9276
|
default: {
|
|
9277
|
-
|
|
9278
|
-
|
|
9279
|
-
|
|
9280
|
-
|
|
9277
|
+
background: Ye.GRAY_LIGHTEST,
|
|
9278
|
+
title: Ye.GRAY_DARK,
|
|
9279
|
+
content: Ye.GRAY_MEDIUM,
|
|
9280
|
+
icon: Ye.GRAY_MEDIUM_LIGHT
|
|
9281
9281
|
},
|
|
9282
9282
|
success: {
|
|
9283
|
-
|
|
9284
|
-
|
|
9285
|
-
|
|
9286
|
-
|
|
9283
|
+
background: Ot.SUPER_LIGHT,
|
|
9284
|
+
title: Ot.DARK,
|
|
9285
|
+
content: Ot.MEDIUM,
|
|
9286
|
+
icon: Ot.LIGHT
|
|
9287
9287
|
},
|
|
9288
9288
|
warning: {
|
|
9289
|
-
|
|
9290
|
-
|
|
9291
|
-
|
|
9292
|
-
|
|
9289
|
+
background: zt.SUPER_LIGHT,
|
|
9290
|
+
title: zt.DARK,
|
|
9291
|
+
content: zt.MEDIUM,
|
|
9292
|
+
icon: zt.LIGHT
|
|
9293
9293
|
},
|
|
9294
9294
|
danger: {
|
|
9295
|
-
|
|
9296
|
-
|
|
9297
|
-
|
|
9298
|
-
|
|
9299
|
-
}
|
|
9300
|
-
}, yr = Ee(void 0), xr = ({
|
|
9301
|
-
variant: t = "default",
|
|
9302
|
-
icon: e,
|
|
9303
|
-
children: n,
|
|
9304
|
-
...r
|
|
9305
|
-
}) => /* @__PURE__ */ B.jsx(yr.Provider, { value: t, children: /* @__PURE__ */ B.jsx(
|
|
9295
|
+
background: Rt.SUPER_LIGHT,
|
|
9296
|
+
title: Rt.DARK,
|
|
9297
|
+
content: Rt.MEDIUM,
|
|
9298
|
+
icon: Rt.LIGHT
|
|
9299
|
+
}
|
|
9300
|
+
}, yr = Ee(void 0), xr = ({ variant: t = "default", children: e, ...n }) => /* @__PURE__ */ B.jsx(yr.Provider, { value: t, children: /* @__PURE__ */ B.jsx(
|
|
9306
9301
|
"div",
|
|
9307
9302
|
{
|
|
9308
9303
|
role: "status",
|
|
@@ -9310,23 +9305,10 @@ const Gf = {
|
|
|
9310
9305
|
className: oe(
|
|
9311
9306
|
"proton-Banner",
|
|
9312
9307
|
`proton-Banner--${t}`,
|
|
9313
|
-
|
|
9308
|
+
n.className
|
|
9314
9309
|
),
|
|
9315
|
-
"data-testid":
|
|
9316
|
-
children: /* @__PURE__ */ B.
|
|
9317
|
-
e && /* @__PURE__ */ B.jsx(
|
|
9318
|
-
"span",
|
|
9319
|
-
{
|
|
9320
|
-
"aria-hidden": "true",
|
|
9321
|
-
className: oe(
|
|
9322
|
-
"proton-Banner__icon",
|
|
9323
|
-
`proton-Banner--${t}__icon`
|
|
9324
|
-
),
|
|
9325
|
-
children: e
|
|
9326
|
-
}
|
|
9327
|
-
),
|
|
9328
|
-
/* @__PURE__ */ B.jsx("div", { className: "proton-Banner__wrapper", children: n })
|
|
9329
|
-
] })
|
|
9310
|
+
"data-testid": n["data-testid"],
|
|
9311
|
+
children: /* @__PURE__ */ B.jsx("div", { className: "proton-Banner__wrapper", children: e })
|
|
9330
9312
|
}
|
|
9331
9313
|
) }), Yf = ({ children: t, ...e }) => {
|
|
9332
9314
|
const n = ne(yr);
|
|
@@ -9338,9 +9320,10 @@ const Gf = {
|
|
|
9338
9320
|
className: oe(
|
|
9339
9321
|
"proton-Banner",
|
|
9340
9322
|
"proton-Banner__title",
|
|
9341
|
-
`proton-Banner--${n}__title
|
|
9323
|
+
`proton-Banner--${n}__title`,
|
|
9324
|
+
e.className
|
|
9342
9325
|
),
|
|
9343
|
-
|
|
9326
|
+
"data-testid": e["data-testid"],
|
|
9344
9327
|
children: t
|
|
9345
9328
|
}
|
|
9346
9329
|
);
|
|
@@ -9353,10 +9336,10 @@ const Gf = {
|
|
|
9353
9336
|
{
|
|
9354
9337
|
className: oe(
|
|
9355
9338
|
"proton-Banner",
|
|
9356
|
-
|
|
9357
|
-
|
|
9339
|
+
`proton-Banner--${n}__content`,
|
|
9340
|
+
e.className
|
|
9358
9341
|
),
|
|
9359
|
-
|
|
9342
|
+
"data-testid": e["data-testid"],
|
|
9360
9343
|
children: t
|
|
9361
9344
|
}
|
|
9362
9345
|
);
|
|
@@ -9383,6 +9366,7 @@ const v4 = {
|
|
|
9383
9366
|
className: oe(
|
|
9384
9367
|
"proton-Badge",
|
|
9385
9368
|
t && `proton-Badge--${t}`,
|
|
9369
|
+
n.className,
|
|
9386
9370
|
r
|
|
9387
9371
|
),
|
|
9388
9372
|
children: e
|
|
@@ -9404,7 +9388,7 @@ export {
|
|
|
9404
9388
|
r4 as Icon,
|
|
9405
9389
|
xf as Popover,
|
|
9406
9390
|
n4 as Row,
|
|
9407
|
-
|
|
9391
|
+
Ot as SUCCESS,
|
|
9408
9392
|
Jf as Section,
|
|
9409
9393
|
a4 as Select,
|
|
9410
9394
|
s4 as Switch,
|
|
@@ -9416,7 +9400,7 @@ export {
|
|
|
9416
9400
|
o4 as ThemeProvider,
|
|
9417
9401
|
Wf as Tooltip,
|
|
9418
9402
|
p4 as TooltipTrigger,
|
|
9419
|
-
|
|
9403
|
+
zt as WARNING,
|
|
9420
9404
|
$f as generateThemeCssVariables,
|
|
9421
9405
|
mf as generateThemedRGBArray,
|
|
9422
9406
|
u4 as usePopoverTrigger,
|