@canonical/maas-react-components 1.33.0 → 1.33.2
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.
|
@@ -543,7 +543,7 @@ var on;
|
|
|
543
543
|
function Ro() {
|
|
544
544
|
if (on) return K;
|
|
545
545
|
on = 1;
|
|
546
|
-
var e = typeof Symbol == "function" && Symbol.for, n = e ? Symbol.for("react.element") : 60103, t = e ? Symbol.for("react.portal") : 60106, i = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, r = e ? Symbol.for("react.provider") : 60109, l = e ? Symbol.for("react.context") : 60110, s = e ? Symbol.for("react.async_mode") : 60111, c = e ? Symbol.for("react.concurrent_mode") : 60111, d = e ? Symbol.for("react.forward_ref") : 60112, f = e ? Symbol.for("react.suspense") : 60113, g = e ? Symbol.for("react.suspense_list") : 60120, u = e ? Symbol.for("react.memo") : 60115, m = e ? Symbol.for("react.lazy") : 60116, v = e ? Symbol.for("react.block") : 60121, R = e ? Symbol.for("react.fundamental") : 60117, h = e ? Symbol.for("react.responder") : 60118,
|
|
546
|
+
var e = typeof Symbol == "function" && Symbol.for, n = e ? Symbol.for("react.element") : 60103, t = e ? Symbol.for("react.portal") : 60106, i = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, r = e ? Symbol.for("react.provider") : 60109, l = e ? Symbol.for("react.context") : 60110, s = e ? Symbol.for("react.async_mode") : 60111, c = e ? Symbol.for("react.concurrent_mode") : 60111, d = e ? Symbol.for("react.forward_ref") : 60112, f = e ? Symbol.for("react.suspense") : 60113, g = e ? Symbol.for("react.suspense_list") : 60120, u = e ? Symbol.for("react.memo") : 60115, m = e ? Symbol.for("react.lazy") : 60116, v = e ? Symbol.for("react.block") : 60121, R = e ? Symbol.for("react.fundamental") : 60117, h = e ? Symbol.for("react.responder") : 60118, M = e ? Symbol.for("react.scope") : 60119;
|
|
547
547
|
function _(x) {
|
|
548
548
|
if (typeof x == "object" && x !== null) {
|
|
549
549
|
var V = x.$$typeof;
|
|
@@ -574,12 +574,12 @@ function Ro() {
|
|
|
574
574
|
}
|
|
575
575
|
}
|
|
576
576
|
}
|
|
577
|
-
function
|
|
577
|
+
function O(x) {
|
|
578
578
|
return _(x) === c;
|
|
579
579
|
}
|
|
580
580
|
return K.AsyncMode = s, K.ConcurrentMode = c, K.ContextConsumer = l, K.ContextProvider = r, K.Element = n, K.ForwardRef = d, K.Fragment = i, K.Lazy = m, K.Memo = u, K.Portal = t, K.Profiler = a, K.StrictMode = o, K.Suspense = f, K.isAsyncMode = function(x) {
|
|
581
|
-
return
|
|
582
|
-
}, K.isConcurrentMode =
|
|
581
|
+
return O(x) || _(x) === s;
|
|
582
|
+
}, K.isConcurrentMode = O, K.isContextConsumer = function(x) {
|
|
583
583
|
return _(x) === l;
|
|
584
584
|
}, K.isContextProvider = function(x) {
|
|
585
585
|
return _(x) === r;
|
|
@@ -602,7 +602,7 @@ function Ro() {
|
|
|
602
602
|
}, K.isSuspense = function(x) {
|
|
603
603
|
return _(x) === f;
|
|
604
604
|
}, K.isValidElementType = function(x) {
|
|
605
|
-
return typeof x == "string" || typeof x == "function" || x === i || x === c || x === a || x === o || x === f || x === g || typeof x == "object" && x !== null && (x.$$typeof === m || x.$$typeof === u || x.$$typeof === r || x.$$typeof === l || x.$$typeof === d || x.$$typeof === R || x.$$typeof === h || x.$$typeof ===
|
|
605
|
+
return typeof x == "string" || typeof x == "function" || x === i || x === c || x === a || x === o || x === f || x === g || typeof x == "object" && x !== null && (x.$$typeof === m || x.$$typeof === u || x.$$typeof === r || x.$$typeof === l || x.$$typeof === d || x.$$typeof === R || x.$$typeof === h || x.$$typeof === M || x.$$typeof === v);
|
|
606
606
|
}, K.typeOf = _, K;
|
|
607
607
|
}
|
|
608
608
|
var W = {};
|
|
@@ -617,12 +617,12 @@ var W = {};
|
|
|
617
617
|
var an;
|
|
618
618
|
function Eo() {
|
|
619
619
|
return an || (an = 1, process.env.NODE_ENV !== "production" && function() {
|
|
620
|
-
var e = typeof Symbol == "function" && Symbol.for, n = e ? Symbol.for("react.element") : 60103, t = e ? Symbol.for("react.portal") : 60106, i = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, r = e ? Symbol.for("react.provider") : 60109, l = e ? Symbol.for("react.context") : 60110, s = e ? Symbol.for("react.async_mode") : 60111, c = e ? Symbol.for("react.concurrent_mode") : 60111, d = e ? Symbol.for("react.forward_ref") : 60112, f = e ? Symbol.for("react.suspense") : 60113, g = e ? Symbol.for("react.suspense_list") : 60120, u = e ? Symbol.for("react.memo") : 60115, m = e ? Symbol.for("react.lazy") : 60116, v = e ? Symbol.for("react.block") : 60121, R = e ? Symbol.for("react.fundamental") : 60117, h = e ? Symbol.for("react.responder") : 60118,
|
|
620
|
+
var e = typeof Symbol == "function" && Symbol.for, n = e ? Symbol.for("react.element") : 60103, t = e ? Symbol.for("react.portal") : 60106, i = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, r = e ? Symbol.for("react.provider") : 60109, l = e ? Symbol.for("react.context") : 60110, s = e ? Symbol.for("react.async_mode") : 60111, c = e ? Symbol.for("react.concurrent_mode") : 60111, d = e ? Symbol.for("react.forward_ref") : 60112, f = e ? Symbol.for("react.suspense") : 60113, g = e ? Symbol.for("react.suspense_list") : 60120, u = e ? Symbol.for("react.memo") : 60115, m = e ? Symbol.for("react.lazy") : 60116, v = e ? Symbol.for("react.block") : 60121, R = e ? Symbol.for("react.fundamental") : 60117, h = e ? Symbol.for("react.responder") : 60118, M = e ? Symbol.for("react.scope") : 60119;
|
|
621
621
|
function _(b) {
|
|
622
622
|
return typeof b == "string" || typeof b == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
623
|
-
b === i || b === c || b === a || b === o || b === f || b === g || typeof b == "object" && b !== null && (b.$$typeof === m || b.$$typeof === u || b.$$typeof === r || b.$$typeof === l || b.$$typeof === d || b.$$typeof === R || b.$$typeof === h || b.$$typeof ===
|
|
623
|
+
b === i || b === c || b === a || b === o || b === f || b === g || typeof b == "object" && b !== null && (b.$$typeof === m || b.$$typeof === u || b.$$typeof === r || b.$$typeof === l || b.$$typeof === d || b.$$typeof === R || b.$$typeof === h || b.$$typeof === M || b.$$typeof === v);
|
|
624
624
|
}
|
|
625
|
-
function
|
|
625
|
+
function O(b) {
|
|
626
626
|
if (typeof b == "object" && b !== null) {
|
|
627
627
|
var fe = b.$$typeof;
|
|
628
628
|
switch (fe) {
|
|
@@ -656,45 +656,45 @@ function Eo() {
|
|
|
656
656
|
}
|
|
657
657
|
var x = s, V = c, L = l, B = r, Z = n, ce = d, ue = i, ge = m, I = u, S = t, H = a, Y = o, ee = f, oe = !1;
|
|
658
658
|
function te(b) {
|
|
659
|
-
return oe || (oe = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), w(b) ||
|
|
659
|
+
return oe || (oe = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), w(b) || O(b) === s;
|
|
660
660
|
}
|
|
661
661
|
function w(b) {
|
|
662
|
-
return
|
|
662
|
+
return O(b) === c;
|
|
663
663
|
}
|
|
664
664
|
function y(b) {
|
|
665
|
-
return
|
|
665
|
+
return O(b) === l;
|
|
666
666
|
}
|
|
667
667
|
function k(b) {
|
|
668
|
-
return
|
|
668
|
+
return O(b) === r;
|
|
669
669
|
}
|
|
670
670
|
function F(b) {
|
|
671
671
|
return typeof b == "object" && b !== null && b.$$typeof === n;
|
|
672
672
|
}
|
|
673
673
|
function E(b) {
|
|
674
|
-
return
|
|
674
|
+
return O(b) === d;
|
|
675
675
|
}
|
|
676
676
|
function D(b) {
|
|
677
|
-
return
|
|
677
|
+
return O(b) === i;
|
|
678
678
|
}
|
|
679
679
|
function P(b) {
|
|
680
|
-
return
|
|
680
|
+
return O(b) === m;
|
|
681
681
|
}
|
|
682
682
|
function T(b) {
|
|
683
|
-
return
|
|
683
|
+
return O(b) === u;
|
|
684
684
|
}
|
|
685
685
|
function z(b) {
|
|
686
|
-
return
|
|
686
|
+
return O(b) === t;
|
|
687
687
|
}
|
|
688
688
|
function G(b) {
|
|
689
|
-
return
|
|
689
|
+
return O(b) === a;
|
|
690
690
|
}
|
|
691
691
|
function N(b) {
|
|
692
|
-
return
|
|
692
|
+
return O(b) === o;
|
|
693
693
|
}
|
|
694
694
|
function ie(b) {
|
|
695
|
-
return
|
|
695
|
+
return O(b) === f;
|
|
696
696
|
}
|
|
697
|
-
W.AsyncMode = x, W.ConcurrentMode = V, W.ContextConsumer = L, W.ContextProvider = B, W.Element = Z, W.ForwardRef = ce, W.Fragment = ue, W.Lazy = ge, W.Memo = I, W.Portal = S, W.Profiler = H, W.StrictMode = Y, W.Suspense = ee, W.isAsyncMode = te, W.isConcurrentMode = w, W.isContextConsumer = y, W.isContextProvider = k, W.isElement = F, W.isForwardRef = E, W.isFragment = D, W.isLazy = P, W.isMemo = T, W.isPortal = z, W.isProfiler = G, W.isStrictMode = N, W.isSuspense = ie, W.isValidElementType = _, W.typeOf =
|
|
697
|
+
W.AsyncMode = x, W.ConcurrentMode = V, W.ContextConsumer = L, W.ContextProvider = B, W.Element = Z, W.ForwardRef = ce, W.Fragment = ue, W.Lazy = ge, W.Memo = I, W.Portal = S, W.Profiler = H, W.StrictMode = Y, W.Suspense = ee, W.isAsyncMode = te, W.isConcurrentMode = w, W.isContextConsumer = y, W.isContextProvider = k, W.isElement = F, W.isForwardRef = E, W.isFragment = D, W.isLazy = P, W.isMemo = T, W.isPortal = z, W.isProfiler = G, W.isStrictMode = N, W.isSuspense = ie, W.isValidElementType = _, W.typeOf = O;
|
|
698
698
|
}()), W;
|
|
699
699
|
}
|
|
700
700
|
var rn;
|
|
@@ -845,9 +845,9 @@ function Po() {
|
|
|
845
845
|
object: h("object"),
|
|
846
846
|
string: h("string"),
|
|
847
847
|
symbol: h("symbol"),
|
|
848
|
-
any:
|
|
848
|
+
any: M(),
|
|
849
849
|
arrayOf: _,
|
|
850
|
-
element:
|
|
850
|
+
element: O(),
|
|
851
851
|
elementType: x(),
|
|
852
852
|
instanceOf: V,
|
|
853
853
|
node: ce(),
|
|
@@ -901,7 +901,7 @@ function Po() {
|
|
|
901
901
|
}
|
|
902
902
|
return R(y);
|
|
903
903
|
}
|
|
904
|
-
function
|
|
904
|
+
function M() {
|
|
905
905
|
return R(r);
|
|
906
906
|
}
|
|
907
907
|
function _(w) {
|
|
@@ -922,7 +922,7 @@ function Po() {
|
|
|
922
922
|
}
|
|
923
923
|
return R(y);
|
|
924
924
|
}
|
|
925
|
-
function
|
|
925
|
+
function O() {
|
|
926
926
|
function w(y, k, F, E, D) {
|
|
927
927
|
var P = y[k];
|
|
928
928
|
if (!l(P)) {
|
|
@@ -3092,7 +3092,7 @@ var Ot = {
|
|
|
3092
3092
|
fileRejections: []
|
|
3093
3093
|
};
|
|
3094
3094
|
function ei() {
|
|
3095
|
-
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, n = J(J({}, Zn), e), t = n.accept, i = n.disabled, o = n.getFilesFromEvent, a = n.maxSize, r = n.minSize, l = n.multiple, s = n.maxFiles, c = n.onDragEnter, d = n.onDragLeave, f = n.onDragOver, g = n.onDrop, u = n.onDropAccepted, m = n.onDropRejected, v = n.onFileDialogCancel, R = n.onFileDialogOpen, h = n.useFsAccessApi,
|
|
3095
|
+
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, n = J(J({}, Zn), e), t = n.accept, i = n.disabled, o = n.getFilesFromEvent, a = n.maxSize, r = n.minSize, l = n.multiple, s = n.maxFiles, c = n.onDragEnter, d = n.onDragLeave, f = n.onDragOver, g = n.onDrop, u = n.onDropAccepted, m = n.onDropRejected, v = n.onFileDialogCancel, R = n.onFileDialogOpen, h = n.useFsAccessApi, M = n.autoFocus, _ = n.preventDropOnDocument, O = n.noClick, x = n.noKeyboard, V = n.noDrag, L = n.noDragEventsBubbling, B = n.onError, Z = n.validator, ce = le(function() {
|
|
3096
3096
|
return da(t);
|
|
3097
3097
|
}, [t]), ue = le(function() {
|
|
3098
3098
|
return ua(t);
|
|
@@ -3103,8 +3103,8 @@ function ei() {
|
|
|
3103
3103
|
}, [v]), S = be(null), H = be(null), Y = Dn(ka, Ot), ee = St(Y, 2), oe = ee[0], te = ee[1], w = oe.isFocused, y = oe.isFileDialogActive, k = be(typeof window < "u" && window.isSecureContext && h && pa()), F = function() {
|
|
3104
3104
|
!k.current && y && setTimeout(function() {
|
|
3105
3105
|
if (H.current) {
|
|
3106
|
-
var
|
|
3107
|
-
|
|
3106
|
+
var j = H.current.files;
|
|
3107
|
+
j.length || (te({
|
|
3108
3108
|
type: "closeDialog"
|
|
3109
3109
|
}), I());
|
|
3110
3110
|
}
|
|
@@ -3115,24 +3115,24 @@ function ei() {
|
|
|
3115
3115
|
window.removeEventListener("focus", F, !1);
|
|
3116
3116
|
};
|
|
3117
3117
|
}, [H, y, I, k]);
|
|
3118
|
-
var E = be([]), D = function(
|
|
3119
|
-
S.current && S.current.contains(
|
|
3118
|
+
var E = be([]), D = function(j) {
|
|
3119
|
+
S.current && S.current.contains(j.target) || (j.preventDefault(), E.current = []);
|
|
3120
3120
|
};
|
|
3121
3121
|
Ee(function() {
|
|
3122
3122
|
return _ && (document.addEventListener("dragover", Cn, !1), document.addEventListener("drop", D, !1)), function() {
|
|
3123
3123
|
_ && (document.removeEventListener("dragover", Cn), document.removeEventListener("drop", D));
|
|
3124
3124
|
};
|
|
3125
3125
|
}, [S, _]), Ee(function() {
|
|
3126
|
-
return !i &&
|
|
3126
|
+
return !i && M && S.current && S.current.focus(), function() {
|
|
3127
3127
|
};
|
|
3128
|
-
}, [S,
|
|
3128
|
+
}, [S, M, i]);
|
|
3129
3129
|
var P = Q(function(C) {
|
|
3130
3130
|
B ? B(C) : console.error(C);
|
|
3131
3131
|
}, [B]), T = Q(function(C) {
|
|
3132
|
-
C.preventDefault(), C.persist(), Ge(C), E.current = [].concat(wa(E.current), [C.target]), Ye(C) && Promise.resolve(o(C)).then(function(
|
|
3132
|
+
C.preventDefault(), C.persist(), Ge(C), E.current = [].concat(wa(E.current), [C.target]), Ye(C) && Promise.resolve(o(C)).then(function(j) {
|
|
3133
3133
|
if (!(nt(C) && !L)) {
|
|
3134
|
-
var ne =
|
|
3135
|
-
files:
|
|
3134
|
+
var ne = j.length, ae = ne > 0 && ra({
|
|
3135
|
+
files: j,
|
|
3136
3136
|
accept: ce,
|
|
3137
3137
|
minSize: r,
|
|
3138
3138
|
maxSize: a,
|
|
@@ -3147,30 +3147,30 @@ function ei() {
|
|
|
3147
3147
|
type: "setDraggedFiles"
|
|
3148
3148
|
}), c && c(C);
|
|
3149
3149
|
}
|
|
3150
|
-
}).catch(function(
|
|
3151
|
-
return P(
|
|
3150
|
+
}).catch(function(j) {
|
|
3151
|
+
return P(j);
|
|
3152
3152
|
});
|
|
3153
3153
|
}, [o, c, P, L, ce, r, a, l, s, Z]), z = Q(function(C) {
|
|
3154
3154
|
C.preventDefault(), C.persist(), Ge(C);
|
|
3155
|
-
var
|
|
3156
|
-
if (
|
|
3155
|
+
var j = Ye(C);
|
|
3156
|
+
if (j && C.dataTransfer)
|
|
3157
3157
|
try {
|
|
3158
3158
|
C.dataTransfer.dropEffect = "copy";
|
|
3159
3159
|
} catch {
|
|
3160
3160
|
}
|
|
3161
|
-
return
|
|
3161
|
+
return j && f && f(C), !1;
|
|
3162
3162
|
}, [f, L]), G = Q(function(C) {
|
|
3163
3163
|
C.preventDefault(), C.persist(), Ge(C);
|
|
3164
|
-
var
|
|
3164
|
+
var j = E.current.filter(function(ae) {
|
|
3165
3165
|
return S.current && S.current.contains(ae);
|
|
3166
|
-
}), ne =
|
|
3167
|
-
ne !== -1 &&
|
|
3166
|
+
}), ne = j.indexOf(C.target);
|
|
3167
|
+
ne !== -1 && j.splice(ne, 1), E.current = j, !(j.length > 0) && (te({
|
|
3168
3168
|
type: "setDraggedFiles",
|
|
3169
3169
|
isDragActive: !1,
|
|
3170
3170
|
isDragAccept: !1,
|
|
3171
3171
|
isDragReject: !1
|
|
3172
3172
|
}), Ye(C) && d && d(C));
|
|
3173
|
-
}, [S, d, L]), N = Q(function(C,
|
|
3173
|
+
}, [S, d, L]), N = Q(function(C, j) {
|
|
3174
3174
|
var ne = [], ae = [];
|
|
3175
3175
|
C.forEach(function(me) {
|
|
3176
3176
|
var ze = Wn(me, ce), Ae = St(ze, 2), lt = Ae[0], st = Ae[1], ct = Yn(me, r, a), Be = St(ct, 2), pt = Be[0], ut = Be[1], dt = Z ? Z(me) : null;
|
|
@@ -3195,12 +3195,12 @@ function ei() {
|
|
|
3195
3195
|
fileRejections: ae,
|
|
3196
3196
|
isDragReject: ae.length > 0,
|
|
3197
3197
|
type: "setFiles"
|
|
3198
|
-
}), g && g(ne, ae,
|
|
3198
|
+
}), g && g(ne, ae, j), ae.length > 0 && m && m(ae, j), ne.length > 0 && u && u(ne, j);
|
|
3199
3199
|
}, [te, l, ce, r, a, s, g, u, m, Z]), ie = Q(function(C) {
|
|
3200
|
-
C.preventDefault(), C.persist(), Ge(C), E.current = [], Ye(C) && Promise.resolve(o(C)).then(function(
|
|
3201
|
-
nt(C) && !L || N(
|
|
3202
|
-
}).catch(function(
|
|
3203
|
-
return P(
|
|
3200
|
+
C.preventDefault(), C.persist(), Ge(C), E.current = [], Ye(C) && Promise.resolve(o(C)).then(function(j) {
|
|
3201
|
+
nt(C) && !L || N(j, C);
|
|
3202
|
+
}).catch(function(j) {
|
|
3203
|
+
return P(j);
|
|
3204
3204
|
}), te({
|
|
3205
3205
|
type: "reset"
|
|
3206
3206
|
});
|
|
@@ -3213,16 +3213,16 @@ function ei() {
|
|
|
3213
3213
|
multiple: l,
|
|
3214
3214
|
types: ue
|
|
3215
3215
|
};
|
|
3216
|
-
window.showOpenFilePicker(C).then(function(
|
|
3217
|
-
return o(
|
|
3218
|
-
}).then(function(
|
|
3219
|
-
N(
|
|
3216
|
+
window.showOpenFilePicker(C).then(function(j) {
|
|
3217
|
+
return o(j);
|
|
3218
|
+
}).then(function(j) {
|
|
3219
|
+
N(j, null), te({
|
|
3220
3220
|
type: "closeDialog"
|
|
3221
3221
|
});
|
|
3222
|
-
}).catch(function(
|
|
3223
|
-
ga(
|
|
3222
|
+
}).catch(function(j) {
|
|
3223
|
+
ga(j) ? (I(j), te({
|
|
3224
3224
|
type: "closeDialog"
|
|
3225
|
-
})) : fa(
|
|
3225
|
+
})) : fa(j) ? (k.current = !1, H.current ? (H.current.value = null, H.current.click()) : P(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided."))) : P(j);
|
|
3226
3226
|
});
|
|
3227
3227
|
return;
|
|
3228
3228
|
}
|
|
@@ -3240,18 +3240,18 @@ function ei() {
|
|
|
3240
3240
|
type: "blur"
|
|
3241
3241
|
});
|
|
3242
3242
|
}, []), Jt = Q(function() {
|
|
3243
|
-
|
|
3244
|
-
}, [
|
|
3245
|
-
return i ? null :
|
|
3246
|
-
}, rt = function(
|
|
3247
|
-
return x ? null : $e(
|
|
3248
|
-
}, qe = function(
|
|
3249
|
-
return V ? null : $e(
|
|
3250
|
-
}, Ge = function(
|
|
3251
|
-
L &&
|
|
3243
|
+
O || (ca() ? setTimeout(b, 0) : b());
|
|
3244
|
+
}, [O, b]), $e = function(j) {
|
|
3245
|
+
return i ? null : j;
|
|
3246
|
+
}, rt = function(j) {
|
|
3247
|
+
return x ? null : $e(j);
|
|
3248
|
+
}, qe = function(j) {
|
|
3249
|
+
return V ? null : $e(j);
|
|
3250
|
+
}, Ge = function(j) {
|
|
3251
|
+
L && j.stopPropagation();
|
|
3252
3252
|
}, xi = le(function() {
|
|
3253
3253
|
return function() {
|
|
3254
|
-
var C = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {},
|
|
3254
|
+
var C = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, j = C.refKey, ne = j === void 0 ? "ref" : j, ae = C.role, me = C.onKeyDown, ze = C.onFocus, Ae = C.onBlur, lt = C.onClick, st = C.onDragEnter, ct = C.onDragOver, Be = C.onDragLeave, pt = C.onDrop, ut = it(C, xa);
|
|
3255
3255
|
return J(J(Mt({
|
|
3256
3256
|
onKeyDown: rt(ye(me, fe)),
|
|
3257
3257
|
onFocus: rt(ye(ze, Fe)),
|
|
@@ -3270,7 +3270,7 @@ function ei() {
|
|
|
3270
3270
|
C.stopPropagation();
|
|
3271
3271
|
}, []), wi = le(function() {
|
|
3272
3272
|
return function() {
|
|
3273
|
-
var C = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {},
|
|
3273
|
+
var C = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, j = C.refKey, ne = j === void 0 ? "ref" : j, ae = C.onChange, me = C.onClick, ze = it(C, ha), Ae = Mt({
|
|
3274
3274
|
accept: ce,
|
|
3275
3275
|
multiple: l,
|
|
3276
3276
|
type: "file",
|
|
@@ -3538,17 +3538,17 @@ const Fa = () => {
|
|
|
3538
3538
|
() => m ? s(e) : [{ group: "Ungrouped", items: e }],
|
|
3539
3539
|
[e, s]
|
|
3540
3540
|
), R = (h) => {
|
|
3541
|
-
const { checked:
|
|
3542
|
-
if (
|
|
3543
|
-
const x =
|
|
3541
|
+
const { checked: M, value: _ } = h.target, O = e.find((x) => `${x.value}` === _);
|
|
3542
|
+
if (O) {
|
|
3543
|
+
const x = M ? [...n, O] : n.filter((V) => `${V.value}` !== _) ?? [];
|
|
3544
3544
|
o(x);
|
|
3545
3545
|
}
|
|
3546
3546
|
};
|
|
3547
3547
|
return /* @__PURE__ */ p(Ln, { isVisible: a, className: "put-above", children: /* @__PURE__ */ U("div", { className: "multi-select__dropdown", role: "listbox", ...c, children: [
|
|
3548
3548
|
i || null,
|
|
3549
|
-
v.map(({ group: h, items:
|
|
3549
|
+
v.map(({ group: h, items: M }) => /* @__PURE__ */ U("div", { className: "multi-select__group", children: [
|
|
3550
3550
|
m ? /* @__PURE__ */ p("h5", { className: "multi-select__dropdown-header", children: h }) : null,
|
|
3551
|
-
/* @__PURE__ */ p("ul", { className: "multi-select__dropdown-list", "aria-label": h, children:
|
|
3551
|
+
/* @__PURE__ */ p("ul", { className: "multi-select__dropdown-list", "aria-label": h, children: M.sort(l).sort(Ia(g)).map((_) => /* @__PURE__ */ p("li", { className: "multi-select__dropdown-item", children: /* @__PURE__ */ p(
|
|
3552
3552
|
Di,
|
|
3553
3553
|
{
|
|
3554
3554
|
disabled: f.has(_.value),
|
|
@@ -3585,10 +3585,10 @@ const Fa = () => {
|
|
|
3585
3585
|
Ee(() => {
|
|
3586
3586
|
g || v("");
|
|
3587
3587
|
}, [g]);
|
|
3588
|
-
const [R, h] = de([]),
|
|
3588
|
+
const [R, h] = de([]), M = n || R, _ = (L) => {
|
|
3589
3589
|
const B = Array.from(new Set(L));
|
|
3590
3590
|
h(B), i && i(B);
|
|
3591
|
-
},
|
|
3591
|
+
}, O = et(), x = et(), V = M.filter(
|
|
3592
3592
|
(L) => r.some((B) => B.value === L.value)
|
|
3593
3593
|
).sort(ti).map((L) => L.label).join(", ");
|
|
3594
3594
|
return /* @__PURE__ */ p("div", { ref: f, children: /* @__PURE__ */ U("div", { className: "multi-select", children: [
|
|
@@ -3596,7 +3596,7 @@ const Fa = () => {
|
|
|
3596
3596
|
On,
|
|
3597
3597
|
{
|
|
3598
3598
|
externallyControlled: !0,
|
|
3599
|
-
"aria-controls":
|
|
3599
|
+
"aria-controls": O,
|
|
3600
3600
|
"aria-expanded": g,
|
|
3601
3601
|
id: x,
|
|
3602
3602
|
role: "combobox",
|
|
@@ -3619,24 +3619,24 @@ const Fa = () => {
|
|
|
3619
3619
|
role: "combobox",
|
|
3620
3620
|
type: "button",
|
|
3621
3621
|
"aria-label": t || o || "Select items",
|
|
3622
|
-
"aria-controls":
|
|
3622
|
+
"aria-controls": O,
|
|
3623
3623
|
"aria-expanded": g,
|
|
3624
3624
|
className: "multi-select__select-button",
|
|
3625
3625
|
onClick: () => {
|
|
3626
3626
|
u((L) => !L);
|
|
3627
3627
|
},
|
|
3628
|
-
children: /* @__PURE__ */ p("span", { className: "multi-select__condensed-text", children:
|
|
3628
|
+
children: /* @__PURE__ */ p("span", { className: "multi-select__condensed-text", children: M.length > 0 ? V : o ?? "Select items" })
|
|
3629
3629
|
}
|
|
3630
3630
|
),
|
|
3631
3631
|
/* @__PURE__ */ p(
|
|
3632
3632
|
$a,
|
|
3633
3633
|
{
|
|
3634
|
-
id:
|
|
3634
|
+
id: O,
|
|
3635
3635
|
isOpen: g,
|
|
3636
3636
|
items: m.length > 0 ? r.filter(
|
|
3637
3637
|
(L) => L.label.toLowerCase().includes(m.toLowerCase())
|
|
3638
3638
|
) : r,
|
|
3639
|
-
selectedItems:
|
|
3639
|
+
selectedItems: M,
|
|
3640
3640
|
disabledItems: l,
|
|
3641
3641
|
header: s,
|
|
3642
3642
|
updateItems: _,
|
|
@@ -3651,7 +3651,7 @@ const Fa = () => {
|
|
|
3651
3651
|
(Z) => Z.value === B.value
|
|
3652
3652
|
)
|
|
3653
3653
|
);
|
|
3654
|
-
_([...
|
|
3654
|
+
_([...M, ...L]);
|
|
3655
3655
|
},
|
|
3656
3656
|
type: "button",
|
|
3657
3657
|
children: "Select all"
|
|
@@ -3662,7 +3662,7 @@ const Fa = () => {
|
|
|
3662
3662
|
{
|
|
3663
3663
|
appearance: "link",
|
|
3664
3664
|
onClick: () => {
|
|
3665
|
-
const L =
|
|
3665
|
+
const L = M.filter(
|
|
3666
3666
|
(B) => l.some(
|
|
3667
3667
|
(Z) => Z.value === B.value
|
|
3668
3668
|
)
|
|
@@ -3959,15 +3959,15 @@ function Xe(e, n, t, i) {
|
|
|
3959
3959
|
headers: []
|
|
3960
3960
|
}, v = [];
|
|
3961
3961
|
g.forEach((R) => {
|
|
3962
|
-
const h = [...v].reverse()[0],
|
|
3963
|
-
let _,
|
|
3964
|
-
if (
|
|
3962
|
+
const h = [...v].reverse()[0], M = R.column.depth === m.depth;
|
|
3963
|
+
let _, O = !1;
|
|
3964
|
+
if (M && R.column.parent ? _ = R.column.parent : (_ = R.column, O = !0), h && (h == null ? void 0 : h.column) === _)
|
|
3965
3965
|
h.subHeaders.push(R);
|
|
3966
3966
|
else {
|
|
3967
3967
|
const x = En(t, _, {
|
|
3968
3968
|
id: [i, u, _.id, R == null ? void 0 : R.id].filter(Boolean).join("_"),
|
|
3969
|
-
isPlaceholder:
|
|
3970
|
-
placeholderId:
|
|
3969
|
+
isPlaceholder: O,
|
|
3970
|
+
placeholderId: O ? `${v.filter((V) => V.column === _).length}` : void 0,
|
|
3971
3971
|
depth: u,
|
|
3972
3972
|
index: v.length
|
|
3973
3973
|
});
|
|
@@ -3984,13 +3984,13 @@ function Xe(e, n, t, i) {
|
|
|
3984
3984
|
let v = 0, R = 0, h = [0];
|
|
3985
3985
|
m.subHeaders && m.subHeaders.length ? (h = [], f(m.subHeaders).forEach((_) => {
|
|
3986
3986
|
let {
|
|
3987
|
-
colSpan:
|
|
3987
|
+
colSpan: O,
|
|
3988
3988
|
rowSpan: x
|
|
3989
3989
|
} = _;
|
|
3990
|
-
v +=
|
|
3990
|
+
v += O, h.push(x);
|
|
3991
3991
|
})) : v = 1;
|
|
3992
|
-
const
|
|
3993
|
-
return R = R +
|
|
3992
|
+
const M = Math.min(...h);
|
|
3993
|
+
return R = R + M, m.colSpan = v, m.rowSpan = R, {
|
|
3994
3994
|
colSpan: v,
|
|
3995
3995
|
rowSpan: R
|
|
3996
3996
|
};
|
|
@@ -4493,10 +4493,10 @@ const tr = {
|
|
|
4493
4493
|
return (a) => {
|
|
4494
4494
|
if (!i || !o || (a.persist == null || a.persist(), Et(a) && a.touches && a.touches.length > 1))
|
|
4495
4495
|
return;
|
|
4496
|
-
const r = e.getSize(), l = e ? e.getLeafHeaders().map((h) => [h.column.id, h.column.getSize()]) : [[i.id, i.getSize()]], s = Et(a) ? Math.round(a.touches[0].clientX) : a.clientX, c = {}, d = (h,
|
|
4497
|
-
typeof
|
|
4498
|
-
var
|
|
4499
|
-
const V = n.options.columnResizeDirection === "rtl" ? -1 : 1, L = (
|
|
4496
|
+
const r = e.getSize(), l = e ? e.getLeafHeaders().map((h) => [h.column.id, h.column.getSize()]) : [[i.id, i.getSize()]], s = Et(a) ? Math.round(a.touches[0].clientX) : a.clientX, c = {}, d = (h, M) => {
|
|
4497
|
+
typeof M == "number" && (n.setColumnSizingInfo((_) => {
|
|
4498
|
+
var O, x;
|
|
4499
|
+
const V = n.options.columnResizeDirection === "rtl" ? -1 : 1, L = (M - ((O = _ == null ? void 0 : _.startOffset) != null ? O : 0)) * V, B = Math.max(L / ((x = _ == null ? void 0 : _.startSize) != null ? x : 0), -0.999999);
|
|
4500
4500
|
return _.columnSizingStart.forEach((Z) => {
|
|
4501
4501
|
let [ce, ue] = Z;
|
|
4502
4502
|
c[ce] = Math.round(Math.max(ue + ue * B, 0) * 100) / 100;
|
|
@@ -4510,8 +4510,8 @@ const tr = {
|
|
|
4510
4510
|
...c
|
|
4511
4511
|
})));
|
|
4512
4512
|
}, f = (h) => d("move", h), g = (h) => {
|
|
4513
|
-
d("end", h), n.setColumnSizingInfo((
|
|
4514
|
-
...
|
|
4513
|
+
d("end", h), n.setColumnSizingInfo((M) => ({
|
|
4514
|
+
...M,
|
|
4515
4515
|
isResizingColumn: !1,
|
|
4516
4516
|
startOffset: null,
|
|
4517
4517
|
startSize: null,
|
|
@@ -4527,8 +4527,8 @@ const tr = {
|
|
|
4527
4527
|
}, v = {
|
|
4528
4528
|
moveHandler: (h) => (h.cancelable && (h.preventDefault(), h.stopPropagation()), f(h.touches[0].clientX), !1),
|
|
4529
4529
|
upHandler: (h) => {
|
|
4530
|
-
var
|
|
4531
|
-
u == null || u.removeEventListener("touchmove", v.moveHandler), u == null || u.removeEventListener("touchend", v.upHandler), h.cancelable && (h.preventDefault(), h.stopPropagation()), g((
|
|
4530
|
+
var M;
|
|
4531
|
+
u == null || u.removeEventListener("touchmove", v.moveHandler), u == null || u.removeEventListener("touchend", v.upHandler), h.cancelable && (h.preventDefault(), h.stopPropagation()), g((M = h.touches[0]) == null ? void 0 : M.clientX);
|
|
4532
4532
|
}
|
|
4533
4533
|
}, R = or() ? {
|
|
4534
4534
|
passive: !1
|
|
@@ -5334,8 +5334,8 @@ function yr(e) {
|
|
|
5334
5334
|
getAllColumns: $(() => [o._getColumnDefs()], (g) => {
|
|
5335
5335
|
const u = function(m, v, R) {
|
|
5336
5336
|
return R === void 0 && (R = 0), m.map((h) => {
|
|
5337
|
-
const
|
|
5338
|
-
return
|
|
5337
|
+
const M = Na(o, h, R, v), _ = h;
|
|
5338
|
+
return M.columns = _.columns ? u(_.columns, M, R + 1) : [], M;
|
|
5339
5339
|
});
|
|
5340
5340
|
};
|
|
5341
5341
|
return u(g);
|
|
@@ -5404,18 +5404,18 @@ function _r() {
|
|
|
5404
5404
|
return s.map((m) => (m.depth = c, o.push(m), a[m.id] = m, m.subRows && (m.subRows = r(m.subRows, c + 1, m.id)), m));
|
|
5405
5405
|
const f = i[c], g = Rr(s, f);
|
|
5406
5406
|
return Array.from(g.entries()).map((m, v) => {
|
|
5407
|
-
let [R, h] = m,
|
|
5408
|
-
|
|
5409
|
-
const _ = r(h, c + 1,
|
|
5407
|
+
let [R, h] = m, M = `${f}:${R}`;
|
|
5408
|
+
M = d ? `${d}>${M}` : M;
|
|
5409
|
+
const _ = r(h, c + 1, M);
|
|
5410
5410
|
_.forEach((V) => {
|
|
5411
|
-
V.parentId =
|
|
5411
|
+
V.parentId = M;
|
|
5412
5412
|
});
|
|
5413
|
-
const
|
|
5413
|
+
const O = c ? ri(h, (V) => V.subRows) : h, x = li(e, M, O[0].original, v, c, void 0, d);
|
|
5414
5414
|
return Object.assign(x, {
|
|
5415
5415
|
groupingColumnId: f,
|
|
5416
5416
|
groupingValue: R,
|
|
5417
5417
|
subRows: _,
|
|
5418
|
-
leafRows:
|
|
5418
|
+
leafRows: O,
|
|
5419
5419
|
getValue: (V) => {
|
|
5420
5420
|
if (i.includes(V)) {
|
|
5421
5421
|
if (x._valuesCache.hasOwnProperty(V))
|
|
@@ -5430,7 +5430,7 @@ function _r() {
|
|
|
5430
5430
|
return x._groupingValuesCache[V];
|
|
5431
5431
|
const B = e.getColumn(V), Z = B == null ? void 0 : B.getAggregationFn();
|
|
5432
5432
|
if (Z)
|
|
5433
|
-
return x._groupingValuesCache[V] = Z(V,
|
|
5433
|
+
return x._groupingValuesCache[V] = Z(V, O, h), x._groupingValuesCache[V];
|
|
5434
5434
|
}
|
|
5435
5435
|
}), _.forEach((V) => {
|
|
5436
5436
|
o.push(V), a[V.id] = V;
|
|
@@ -5703,9 +5703,9 @@ const Wr = ({
|
|
|
5703
5703
|
rowSelection: v,
|
|
5704
5704
|
setRowSelection: R,
|
|
5705
5705
|
variant: h = "full-height",
|
|
5706
|
-
...
|
|
5706
|
+
...M
|
|
5707
5707
|
}) => {
|
|
5708
|
-
const _ = be(null), [
|
|
5708
|
+
const _ = be(null), [O, x] = de("auto"), [V, L] = de(!1), [B, Z] = de(c ?? []), [ce, ue] = de(!0), [ge, I] = de(m ?? []), S = le(() => {
|
|
5709
5709
|
if (!n || d)
|
|
5710
5710
|
return i;
|
|
5711
5711
|
const y = [
|
|
@@ -5827,7 +5827,7 @@ const Wr = ({
|
|
|
5827
5827
|
{
|
|
5828
5828
|
className: q("p-generic-table", e),
|
|
5829
5829
|
"data-testid": "p-generic-table",
|
|
5830
|
-
...
|
|
5830
|
+
...M,
|
|
5831
5831
|
children: [
|
|
5832
5832
|
g && /* @__PURE__ */ p(
|
|
5833
5833
|
Mr,
|
|
@@ -5846,6 +5846,7 @@ const Wr = ({
|
|
|
5846
5846
|
"table",
|
|
5847
5847
|
{
|
|
5848
5848
|
"aria-busy": d,
|
|
5849
|
+
"aria-label": M["aria-label"],
|
|
5849
5850
|
"aria-describedby": "generic-table-description",
|
|
5850
5851
|
"aria-rowcount": Y.length + 1,
|
|
5851
5852
|
className: q("p-generic-table__table", {
|
|
@@ -5857,7 +5858,7 @@ const Wr = ({
|
|
|
5857
5858
|
children: [
|
|
5858
5859
|
/* @__PURE__ */ p("thead", { children: oe.getHeaderGroups().map((y) => /* @__PURE__ */ p("tr", { role: "row", children: y.headers.filter(l).map((k, F) => /* @__PURE__ */ U($n, { children: [
|
|
5859
5860
|
/* @__PURE__ */ p(Dr, { header: k }),
|
|
5860
|
-
F === 2 ? /* @__PURE__ */ p(
|
|
5861
|
+
n && c && F === 2 ? /* @__PURE__ */ p(
|
|
5861
5862
|
"th",
|
|
5862
5863
|
{
|
|
5863
5864
|
className: "p-generic-table__select-alignment",
|
|
@@ -5871,7 +5872,7 @@ const Wr = ({
|
|
|
5871
5872
|
ref: _,
|
|
5872
5873
|
style: {
|
|
5873
5874
|
overflowY: "auto",
|
|
5874
|
-
maxHeight:
|
|
5875
|
+
maxHeight: O
|
|
5875
5876
|
},
|
|
5876
5877
|
children: d ? te() : w()
|
|
5877
5878
|
}
|
|
@@ -5959,7 +5960,7 @@ const Wr = ({
|
|
|
5959
5960
|
g(typeof I == "function" ? (S) => ({ ...S, ...I(S) }) : (S) => ({ ...S, ...I }));
|
|
5960
5961
|
},
|
|
5961
5962
|
[]
|
|
5962
|
-
),
|
|
5963
|
+
), M = Q(
|
|
5963
5964
|
(I) => {
|
|
5964
5965
|
u.current && !u.current.contains(I.target) && h({
|
|
5965
5966
|
isVisible: !1,
|
|
@@ -5982,7 +5983,7 @@ const Wr = ({
|
|
|
5982
5983
|
return t.slice(0, H) + ee + t.slice(Y);
|
|
5983
5984
|
},
|
|
5984
5985
|
[t, o]
|
|
5985
|
-
),
|
|
5986
|
+
), O = Q(
|
|
5986
5987
|
(I) => {
|
|
5987
5988
|
const S = R[I];
|
|
5988
5989
|
if (!S) return;
|
|
@@ -6049,7 +6050,7 @@ const Wr = ({
|
|
|
6049
6050
|
});
|
|
6050
6051
|
return;
|
|
6051
6052
|
case "Enter":
|
|
6052
|
-
I.preventDefault(), f.highlightedIndex >= 0 ?
|
|
6053
|
+
I.preventDefault(), f.highlightedIndex >= 0 ? O(f.highlightedIndex) : h({ isVisible: !1 });
|
|
6053
6054
|
return;
|
|
6054
6055
|
case "Escape":
|
|
6055
6056
|
I.preventDefault(), h({
|
|
@@ -6065,7 +6066,7 @@ const Wr = ({
|
|
|
6065
6066
|
f,
|
|
6066
6067
|
R.length,
|
|
6067
6068
|
h,
|
|
6068
|
-
|
|
6069
|
+
O,
|
|
6069
6070
|
x
|
|
6070
6071
|
]
|
|
6071
6072
|
), L = Q(
|
|
@@ -6107,7 +6108,7 @@ const Wr = ({
|
|
|
6107
6108
|
},
|
|
6108
6109
|
[h]
|
|
6109
6110
|
);
|
|
6110
|
-
return Ee(() => (document.addEventListener("mousedown",
|
|
6111
|
+
return Ee(() => (document.addEventListener("mousedown", M), () => document.removeEventListener("mousedown", M)), [M]), /* @__PURE__ */ U(
|
|
6111
6112
|
"div",
|
|
6112
6113
|
{
|
|
6113
6114
|
className: q("p-query-input", e),
|
|
@@ -6152,8 +6153,8 @@ const Wr = ({
|
|
|
6152
6153
|
className: q("p-query-input__item", {
|
|
6153
6154
|
highlight: S === f.highlightedIndex
|
|
6154
6155
|
}),
|
|
6155
|
-
onClick: () =>
|
|
6156
|
-
onKeyDown: () =>
|
|
6156
|
+
onClick: () => O(S),
|
|
6157
|
+
onKeyDown: () => O(S),
|
|
6157
6158
|
onMouseEnter: () => ge(S),
|
|
6158
6159
|
role: "option",
|
|
6159
6160
|
"aria-selected": S === f.highlightedIndex,
|