@3sc/common-component 0.0.203 → 0.0.204
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/index.es.js +92 -85
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -2,7 +2,7 @@ var yw = Object.defineProperty;
|
|
|
2
2
|
var vw = (e, t, n) => t in e ? yw(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
3
|
var va = (e, t, n) => vw(e, typeof t != "symbol" ? t + "" : t, n);
|
|
4
4
|
import * as C from "react";
|
|
5
|
-
import It, { forwardRef as Kd, useContext as ut, isValidElement as rs, cloneElement as za, Children as ay, useState as Re, useEffect as xt, createContext as Un, useRef as dt, useLayoutEffect as ly, useId as Qd, useInsertionEffect as cy, useCallback as Nt, useMemo as
|
|
5
|
+
import It, { forwardRef as Kd, useContext as ut, isValidElement as rs, cloneElement as za, Children as ay, useState as Re, useEffect as xt, createContext as Un, useRef as dt, useLayoutEffect as ly, useId as Qd, useInsertionEffect as cy, useCallback as Nt, useMemo as nn, Fragment as ys, createElement as xw, Component as uy, useReducer as dy } from "react";
|
|
6
6
|
import * as Cw from "react-dom";
|
|
7
7
|
import xa, { createPortal as ww } from "react-dom";
|
|
8
8
|
var mi = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
@@ -261,29 +261,29 @@ function Iw() {
|
|
|
261
261
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
262
262
|
try {
|
|
263
263
|
Reflect.construct(Ye, []);
|
|
264
|
-
} catch (
|
|
265
|
-
je =
|
|
264
|
+
} catch (ln) {
|
|
265
|
+
je = ln;
|
|
266
266
|
}
|
|
267
267
|
Reflect.construct(z, [], Ye);
|
|
268
268
|
} else {
|
|
269
269
|
try {
|
|
270
270
|
Ye.call();
|
|
271
|
-
} catch (
|
|
272
|
-
je =
|
|
271
|
+
} catch (ln) {
|
|
272
|
+
je = ln;
|
|
273
273
|
}
|
|
274
274
|
z.call(Ye.prototype);
|
|
275
275
|
}
|
|
276
276
|
} else {
|
|
277
277
|
try {
|
|
278
278
|
throw Error();
|
|
279
|
-
} catch (
|
|
280
|
-
je =
|
|
279
|
+
} catch (ln) {
|
|
280
|
+
je = ln;
|
|
281
281
|
}
|
|
282
282
|
z();
|
|
283
283
|
}
|
|
284
|
-
} catch (
|
|
285
|
-
if (
|
|
286
|
-
for (var Ge =
|
|
284
|
+
} catch (ln) {
|
|
285
|
+
if (ln && je && typeof ln.stack == "string") {
|
|
286
|
+
for (var Ge = ln.stack.split(`
|
|
287
287
|
`), Gt = je.stack.split(`
|
|
288
288
|
`), Ie = Ge.length - 1, Ze = Gt.length - 1; Ie >= 1 && Ze >= 0 && Ge[Ie] !== Gt[Ze]; )
|
|
289
289
|
Ze--;
|
|
@@ -626,11 +626,11 @@ Check the top-level render call using <` + ve + ">.");
|
|
|
626
626
|
vt(In, z);
|
|
627
627
|
}
|
|
628
628
|
if (ce.call(de, "key")) {
|
|
629
|
-
var Xo = _(z),
|
|
629
|
+
var Xo = _(z), ln = Object.keys(de).filter(function(bw) {
|
|
630
630
|
return bw !== "key";
|
|
631
|
-
}), Xc =
|
|
631
|
+
}), Xc = ln.length > 0 ? "{key: someKey, " + ln.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
632
632
|
if (!Ro[Xo + Xc]) {
|
|
633
|
-
var gw =
|
|
633
|
+
var gw = ln.length > 0 ? "{" + ln.join(": ..., ") + ": ...}" : "{}";
|
|
634
634
|
I(`A props object containing a "key" prop is being spread into JSX:
|
|
635
635
|
let props = %s;
|
|
636
636
|
<%s {...props} />
|
|
@@ -642,13 +642,13 @@ React keys must be passed directly to JSX without using spread:
|
|
|
642
642
|
return z === o ? Ir(Ze) : zt(Ze), Ze;
|
|
643
643
|
}
|
|
644
644
|
}
|
|
645
|
-
function
|
|
645
|
+
function an(z, de, ve) {
|
|
646
646
|
return Tr(z, de, ve, !0);
|
|
647
647
|
}
|
|
648
648
|
function Uo(z, de, ve) {
|
|
649
649
|
return Tr(z, de, ve, !1);
|
|
650
650
|
}
|
|
651
|
-
var Yc = Uo, Yo =
|
|
651
|
+
var Yc = Uo, Yo = an;
|
|
652
652
|
Ni.Fragment = o, Ni.jsx = Yc, Ni.jsxs = Yo;
|
|
653
653
|
}()), Ni;
|
|
654
654
|
}
|
|
@@ -2767,18 +2767,18 @@ function Dy(e) {
|
|
|
2767
2767
|
t[n] = Dy(e[n]);
|
|
2768
2768
|
}), t;
|
|
2769
2769
|
}
|
|
2770
|
-
function
|
|
2770
|
+
function rn(e, t, n = {
|
|
2771
2771
|
clone: !0
|
|
2772
2772
|
}) {
|
|
2773
2773
|
const o = n.clone ? x({}, e) : e;
|
|
2774
2774
|
return mo(e) && mo(t) && Object.keys(t).forEach((r) => {
|
|
2775
2775
|
/* @__PURE__ */ C.isValidElement(t[r]) ? o[r] = t[r] : mo(t[r]) && // Avoid prototype pollution
|
|
2776
|
-
Object.prototype.hasOwnProperty.call(e, r) && mo(e[r]) ? o[r] =
|
|
2776
|
+
Object.prototype.hasOwnProperty.call(e, r) && mo(e[r]) ? o[r] = rn(e[r], t[r], n) : n.clone ? o[r] = mo(t[r]) ? Dy(t[r]) : t[r] : o[r] = t[r];
|
|
2777
2777
|
}), o;
|
|
2778
2778
|
}
|
|
2779
2779
|
const BS = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2780
2780
|
__proto__: null,
|
|
2781
|
-
default:
|
|
2781
|
+
default: rn,
|
|
2782
2782
|
isPlainObject: mo
|
|
2783
2783
|
}, Symbol.toStringTag, { value: "Module" })), VS = ["values", "unit", "step"], $S = (e) => {
|
|
2784
2784
|
const t = Object.keys(e).map((n) => ({
|
|
@@ -2840,7 +2840,7 @@ const LS = {
|
|
|
2840
2840
|
borderRadius: 4
|
|
2841
2841
|
}, $o = process.env.NODE_ENV !== "production" ? i.oneOfType([i.number, i.string, i.object, i.array]) : {};
|
|
2842
2842
|
function is(e, t) {
|
|
2843
|
-
return t ?
|
|
2843
|
+
return t ? rn(e, t, {
|
|
2844
2844
|
clone: !1
|
|
2845
2845
|
// No need to clone deep, it's way faster.
|
|
2846
2846
|
}) : e;
|
|
@@ -2897,7 +2897,7 @@ function Fy(e, t) {
|
|
|
2897
2897
|
}, t);
|
|
2898
2898
|
}
|
|
2899
2899
|
function _S(e, ...t) {
|
|
2900
|
-
const n = jy(e), o = [n, ...t].reduce((r, s) =>
|
|
2900
|
+
const n = jy(e), o = [n, ...t].reduce((r, s) => rn(r, s), {});
|
|
2901
2901
|
return Fy(Object.keys(n), o);
|
|
2902
2902
|
}
|
|
2903
2903
|
function WS(e, t) {
|
|
@@ -3586,7 +3586,7 @@ function Us(e = {}, ...t) {
|
|
|
3586
3586
|
spacing: r,
|
|
3587
3587
|
shape: s = {}
|
|
3588
3588
|
} = e, a = oe(e, AI), l = Ny(n), c = qS(r);
|
|
3589
|
-
let u =
|
|
3589
|
+
let u = rn({
|
|
3590
3590
|
breakpoints: l,
|
|
3591
3591
|
direction: "ltr",
|
|
3592
3592
|
components: {},
|
|
@@ -3597,7 +3597,7 @@ function Us(e = {}, ...t) {
|
|
|
3597
3597
|
spacing: c,
|
|
3598
3598
|
shape: x({}, LS, s)
|
|
3599
3599
|
}, a);
|
|
3600
|
-
return u.applyStyles = $y, u = t.reduce((d, p) =>
|
|
3600
|
+
return u.applyStyles = $y, u = t.reduce((d, p) => rn(d, p), u), u.unstable_sxConfig = x({}, Hs, a == null ? void 0 : a.unstable_sxConfig), u.unstable_sx = function(p) {
|
|
3601
3601
|
return yi({
|
|
3602
3602
|
sx: p,
|
|
3603
3603
|
theme: this
|
|
@@ -4275,7 +4275,7 @@ function yo(e, t, n, o, r) {
|
|
|
4275
4275
|
const s = e[t], a = r || t;
|
|
4276
4276
|
return s == null ? null : s && s.nodeType !== 1 ? new Error(`Invalid ${o} \`${a}\` supplied to \`${n}\`. Expected an HTMLElement.`) : null;
|
|
4277
4277
|
}
|
|
4278
|
-
const
|
|
4278
|
+
const sn = i.oneOfType([i.func, i.object]);
|
|
4279
4279
|
function nd(...e) {
|
|
4280
4280
|
return e.reduce((t, n) => n == null ? t : function(...r) {
|
|
4281
4281
|
t.apply(this, r), n.apply(this, r);
|
|
@@ -4878,7 +4878,7 @@ const _T = (e) => ({
|
|
|
4878
4878
|
const f = u > 0 ? s[d[u - 1]] : "column";
|
|
4879
4879
|
s[c] = f;
|
|
4880
4880
|
}
|
|
4881
|
-
}), n =
|
|
4881
|
+
}), n = rn(n, fn({
|
|
4882
4882
|
theme: t
|
|
4883
4883
|
}, a, (c, u) => e.useFlexGap ? {
|
|
4884
4884
|
gap: fr(o, c)
|
|
@@ -5308,7 +5308,7 @@ const theme2 = createTheme({ palette: {
|
|
|
5308
5308
|
dark: ru,
|
|
5309
5309
|
light: am
|
|
5310
5310
|
};
|
|
5311
|
-
return process.env.NODE_ENV !== "production" && (m[t] || console.error(`MUI: The palette mode \`${t}\` is not supported.`)),
|
|
5311
|
+
return process.env.NODE_ENV !== "production" && (m[t] || console.error(`MUI: The palette mode \`${t}\` is not supported.`)), rn(x({
|
|
5312
5312
|
// A collection of common colors.
|
|
5313
5313
|
common: x({}, vs),
|
|
5314
5314
|
// prevent mutable object.
|
|
@@ -5418,7 +5418,7 @@ function fE(e, t) {
|
|
|
5418
5418
|
letterSpacing: "inherit"
|
|
5419
5419
|
}
|
|
5420
5420
|
};
|
|
5421
|
-
return
|
|
5421
|
+
return rn(x({
|
|
5422
5422
|
htmlFontSize: u,
|
|
5423
5423
|
pxToRem: b,
|
|
5424
5424
|
fontFamily: o,
|
|
@@ -5512,7 +5512,7 @@ function pl(e = {}, ...t) {
|
|
|
5512
5512
|
e.generateCssVars === void 0)
|
|
5513
5513
|
throw new Error(process.env.NODE_ENV !== "production" ? "MUI: `vars` is a private field used for CSS variables support.\nPlease use another name." : bo(18));
|
|
5514
5514
|
const l = uE(o), c = Us(e);
|
|
5515
|
-
let u =
|
|
5515
|
+
let u = rn(c, {
|
|
5516
5516
|
mixins: GT(c.breakpoints, n),
|
|
5517
5517
|
palette: l,
|
|
5518
5518
|
// Don't use [...shadows] until you've verified its transpiled code is not invoking the iterator protocol.
|
|
@@ -5521,7 +5521,7 @@ function pl(e = {}, ...t) {
|
|
|
5521
5521
|
transitions: wE(r),
|
|
5522
5522
|
zIndex: x({}, SE)
|
|
5523
5523
|
});
|
|
5524
|
-
if (u =
|
|
5524
|
+
if (u = rn(u, a), u = t.reduce((d, p) => rn(d, p), u), process.env.NODE_ENV !== "production") {
|
|
5525
5525
|
const d = ["active", "checked", "completed", "disabled", "error", "expanded", "focused", "focusVisible", "required", "selected"], p = (f, m) => {
|
|
5526
5526
|
let b;
|
|
5527
5527
|
for (b in f) {
|
|
@@ -7343,7 +7343,7 @@ process.env.NODE_ENV !== "production" && (Fn.propTypes = {
|
|
|
7343
7343
|
* A ref for imperative actions.
|
|
7344
7344
|
* It currently only supports `focusVisible()` action.
|
|
7345
7345
|
*/
|
|
7346
|
-
action:
|
|
7346
|
+
action: sn,
|
|
7347
7347
|
/**
|
|
7348
7348
|
* If `true`, the ripples are centered.
|
|
7349
7349
|
* They won't start at the cursor interaction position.
|
|
@@ -9111,7 +9111,7 @@ process.env.NODE_ENV !== "production" && ($v.propTypes = {
|
|
|
9111
9111
|
/**
|
|
9112
9112
|
* A ref that points to the used popper instance.
|
|
9113
9113
|
*/
|
|
9114
|
-
popperRef:
|
|
9114
|
+
popperRef: sn,
|
|
9115
9115
|
/**
|
|
9116
9116
|
* The props used for each slot inside the Popper.
|
|
9117
9117
|
* @default {}
|
|
@@ -9282,7 +9282,7 @@ process.env.NODE_ENV !== "production" && (Ii.propTypes = {
|
|
|
9282
9282
|
/**
|
|
9283
9283
|
* A ref that points to the used popper instance.
|
|
9284
9284
|
*/
|
|
9285
|
-
popperRef:
|
|
9285
|
+
popperRef: sn,
|
|
9286
9286
|
/**
|
|
9287
9287
|
* The props used for each slot inside the Popper.
|
|
9288
9288
|
* @default {}
|
|
@@ -10377,7 +10377,7 @@ process.env.NODE_ENV !== "production" && (na.propTypes = {
|
|
|
10377
10377
|
/**
|
|
10378
10378
|
* Pass a ref to the `input` element.
|
|
10379
10379
|
*/
|
|
10380
|
-
inputRef:
|
|
10380
|
+
inputRef: sn,
|
|
10381
10381
|
/**
|
|
10382
10382
|
* If `dense`, will adjust vertical spacing. This is normally obtained via context from
|
|
10383
10383
|
* FormControl.
|
|
@@ -12074,7 +12074,7 @@ process.env.NODE_ENV !== "production" && (Bp.propTypes = {
|
|
|
12074
12074
|
/**
|
|
12075
12075
|
* Pass a ref to the `input` element.
|
|
12076
12076
|
*/
|
|
12077
|
-
inputRef:
|
|
12077
|
+
inputRef: sn,
|
|
12078
12078
|
/*
|
|
12079
12079
|
* @ignore
|
|
12080
12080
|
*/
|
|
@@ -12279,7 +12279,7 @@ process.env.NODE_ENV !== "production" && (Vp.propTypes = {
|
|
|
12279
12279
|
/**
|
|
12280
12280
|
* Pass a ref to the `input` element.
|
|
12281
12281
|
*/
|
|
12282
|
-
inputRef:
|
|
12282
|
+
inputRef: sn,
|
|
12283
12283
|
/**
|
|
12284
12284
|
* Callback fired when the state is changed.
|
|
12285
12285
|
*
|
|
@@ -14128,7 +14128,7 @@ const fM = ["disableUnderline", "components", "componentsProps", "fullWidth", "h
|
|
|
14128
14128
|
input: {
|
|
14129
14129
|
ownerState: v
|
|
14130
14130
|
}
|
|
14131
|
-
}, T = m ?? u ?
|
|
14131
|
+
}, T = m ?? u ? rn(S, m ?? u) : S, w = (o = (r = b.root) != null ? r : c.Root) != null ? o : mM, E = (s = (a = b.input) != null ? a : c.Input) != null ? s : gM;
|
|
14132
14132
|
return /* @__PURE__ */ g.jsx(na, x({
|
|
14133
14133
|
slots: {
|
|
14134
14134
|
root: w,
|
|
@@ -14247,7 +14247,7 @@ process.env.NODE_ENV !== "production" && (bc.propTypes = {
|
|
|
14247
14247
|
/**
|
|
14248
14248
|
* Pass a ref to the `input` element.
|
|
14249
14249
|
*/
|
|
14250
|
-
inputRef:
|
|
14250
|
+
inputRef: sn,
|
|
14251
14251
|
/**
|
|
14252
14252
|
* If `dense`, will adjust vertical spacing. This is normally obtained via context from
|
|
14253
14253
|
* FormControl.
|
|
@@ -15634,7 +15634,7 @@ const HM = ["disableUnderline", "components", "componentsProps", "fullWidth", "i
|
|
|
15634
15634
|
disableUnderline: c
|
|
15635
15635
|
}
|
|
15636
15636
|
}
|
|
15637
|
-
}, w = b ?? d ?
|
|
15637
|
+
}, w = b ?? d ? rn(b ?? d, T) : T, E = (o = (r = h.root) != null ? r : u.Root) != null ? o : YM, O = (s = (a = h.input) != null ? a : u.Input) != null ? s : XM;
|
|
15638
15638
|
return /* @__PURE__ */ g.jsx(na, x({
|
|
15639
15639
|
slots: {
|
|
15640
15640
|
root: E,
|
|
@@ -15746,7 +15746,7 @@ process.env.NODE_ENV !== "production" && (yc.propTypes = {
|
|
|
15746
15746
|
/**
|
|
15747
15747
|
* Pass a ref to the `input` element.
|
|
15748
15748
|
*/
|
|
15749
|
-
inputRef:
|
|
15749
|
+
inputRef: sn,
|
|
15750
15750
|
/**
|
|
15751
15751
|
* If `dense`, will adjust vertical spacing. This is normally obtained via context from
|
|
15752
15752
|
* FormControl.
|
|
@@ -17071,7 +17071,7 @@ process.env.NODE_ENV !== "production" && (vc.propTypes = {
|
|
|
17071
17071
|
* A ref for imperative actions.
|
|
17072
17072
|
* It currently only supports updatePosition() action.
|
|
17073
17073
|
*/
|
|
17074
|
-
action:
|
|
17074
|
+
action: sn,
|
|
17075
17075
|
/**
|
|
17076
17076
|
* An HTML element, [PopoverVirtualElement](/material-ui/react-popover/#virtual-element),
|
|
17077
17077
|
* or a function that returns either.
|
|
@@ -17646,7 +17646,7 @@ process.env.NODE_ENV !== "production" && (o1.propTypes = {
|
|
|
17646
17646
|
* Use that prop to pass a ref to the native select element.
|
|
17647
17647
|
* @deprecated
|
|
17648
17648
|
*/
|
|
17649
|
-
inputRef:
|
|
17649
|
+
inputRef: sn,
|
|
17650
17650
|
/**
|
|
17651
17651
|
* @ignore
|
|
17652
17652
|
*/
|
|
@@ -18020,7 +18020,7 @@ process.env.NODE_ENV !== "production" && (xc.propTypes = {
|
|
|
18020
18020
|
/**
|
|
18021
18021
|
* Pass a ref to the `input` element.
|
|
18022
18022
|
*/
|
|
18023
|
-
inputRef:
|
|
18023
|
+
inputRef: sn,
|
|
18024
18024
|
/**
|
|
18025
18025
|
* The label of the `input`. It is only used for layout. The actual labelling
|
|
18026
18026
|
* is handled by `InputLabel`.
|
|
@@ -19140,7 +19140,7 @@ process.env.NODE_ENV !== "production" && (a1.propTypes = {
|
|
|
19140
19140
|
* Imperative handle implementing `{ value: T, node: HTMLElement, focus(): void }`
|
|
19141
19141
|
* Equivalent to `ref`
|
|
19142
19142
|
*/
|
|
19143
|
-
inputRef:
|
|
19143
|
+
inputRef: sn,
|
|
19144
19144
|
/**
|
|
19145
19145
|
* The ID of an element that acts as an additional label. The Select will
|
|
19146
19146
|
* be labelled by the additional label and the selected value.
|
|
@@ -19308,7 +19308,7 @@ const gD = ["autoWidth", "children", "classes", "className", "defaultOpen", "dis
|
|
|
19308
19308
|
id: p
|
|
19309
19309
|
}, O)
|
|
19310
19310
|
}, m, {
|
|
19311
|
-
classes: m ?
|
|
19311
|
+
classes: m ? rn(R, m.classes) : R
|
|
19312
19312
|
}, f ? f.props.inputProps : {})
|
|
19313
19313
|
}, (v && I || u) && _ === "outlined" ? {
|
|
19314
19314
|
notched: !0
|
|
@@ -19964,19 +19964,19 @@ const l1 = /* @__PURE__ */ C.forwardRef(function(t, n) {
|
|
|
19964
19964
|
}, zt.current && zt.current.update();
|
|
19965
19965
|
}, Ro = {}, Tr = typeof J == "string";
|
|
19966
19966
|
L ? (Ro.title = !Se && Tr && !_ ? J : null, Ro["aria-describedby"] = Se ? Be : null) : (Ro["aria-label"] = Tr ? J : null, Ro["aria-labelledby"] = Se && !Tr ? Be : null);
|
|
19967
|
-
const
|
|
19967
|
+
const an = x({}, Ro, ae, ue.props, {
|
|
19968
19968
|
className: le(ae.className, ue.props.className),
|
|
19969
19969
|
onTouchStart: Ho,
|
|
19970
19970
|
ref: vt
|
|
19971
19971
|
}, A ? {
|
|
19972
19972
|
onMouseMove: Ir
|
|
19973
19973
|
} : {});
|
|
19974
|
-
process.env.NODE_ENV !== "production" && (
|
|
19974
|
+
process.env.NODE_ENV !== "production" && (an["data-mui-internal-clone-element"] = !0, C.useEffect(() => {
|
|
19975
19975
|
se && !se.getAttribute("data-mui-internal-clone-element") && console.error(["MUI: The `children` component of the Tooltip is not forwarding its props correctly.", "Please make sure that props are spread on the same element that the ref is applied to."].join(`
|
|
19976
19976
|
`));
|
|
19977
19977
|
}, [se]));
|
|
19978
19978
|
const Uo = {};
|
|
19979
|
-
D || (
|
|
19979
|
+
D || (an.onTouchStart = ya, an.onTouchEnd = ki), _ || (an.onMouseOver = Pa(fe, an.onMouseOver), an.onMouseLeave = Pa(be, an.onMouseLeave), Ve || (Uo.onMouseOver = fe, Uo.onMouseLeave = be)), N || (an.onFocus = Pa(Zn, an.onFocus), an.onBlur = Pa(Zt, an.onBlur), Ve || (Uo.onFocus = Zn, Uo.onBlur = Zt)), process.env.NODE_ENV !== "production" && ue.props.title && console.error(["MUI: You have provided a `title` prop to the child of <Tooltip />.", `Remove this title prop \`${ue.props.title}\` or the Tooltip component.`].join(`
|
|
19980
19980
|
`));
|
|
19981
19981
|
const Yc = C.useMemo(() => {
|
|
19982
19982
|
var Ie;
|
|
@@ -20006,7 +20006,7 @@ const l1 = /* @__PURE__ */ C.forwardRef(function(t, n) {
|
|
|
20006
20006
|
className: le(z.arrow, (T = (w = q.arrow) != null ? w : j.arrow) == null ? void 0 : T.className)
|
|
20007
20007
|
}), Yo);
|
|
20008
20008
|
return /* @__PURE__ */ g.jsxs(C.Fragment, {
|
|
20009
|
-
children: [/* @__PURE__ */ C.cloneElement(ue,
|
|
20009
|
+
children: [/* @__PURE__ */ C.cloneElement(ue, an), /* @__PURE__ */ g.jsx(de, x({
|
|
20010
20010
|
as: K ?? Ii,
|
|
20011
20011
|
placement: Y,
|
|
20012
20012
|
anchorEl: A ? {
|
|
@@ -20511,7 +20511,7 @@ process.env.NODE_ENV !== "production" && (c1.propTypes = {
|
|
|
20511
20511
|
/**
|
|
20512
20512
|
* Pass a ref to the `input` element.
|
|
20513
20513
|
*/
|
|
20514
|
-
inputRef:
|
|
20514
|
+
inputRef: sn,
|
|
20515
20515
|
/**
|
|
20516
20516
|
* Callback fired when the state is changed.
|
|
20517
20517
|
*
|
|
@@ -22038,7 +22038,7 @@ process.env.NODE_ENV !== "production" && (h1.propTypes = {
|
|
|
22038
22038
|
* @param {object} actions This object contains all possible actions
|
|
22039
22039
|
* that can be triggered programmatically.
|
|
22040
22040
|
*/
|
|
22041
|
-
action:
|
|
22041
|
+
action: sn,
|
|
22042
22042
|
/**
|
|
22043
22043
|
* If `true`, the scroll buttons aren't forced hidden on mobile.
|
|
22044
22044
|
* By default the scroll buttons are hidden on mobile and takes precedence over `scrollButtons`.
|
|
@@ -22381,7 +22381,7 @@ process.env.NODE_ENV !== "production" && (Cc.propTypes = {
|
|
|
22381
22381
|
/**
|
|
22382
22382
|
* Pass a ref to the `input` element.
|
|
22383
22383
|
*/
|
|
22384
|
-
inputRef:
|
|
22384
|
+
inputRef: sn,
|
|
22385
22385
|
/**
|
|
22386
22386
|
* The label content.
|
|
22387
22387
|
*/
|
|
@@ -22670,7 +22670,7 @@ const S5 = ({ children: e, initial: t, isPresent: n, onExitComplete: o, custom:
|
|
|
22670
22670
|
if (!m)
|
|
22671
22671
|
return;
|
|
22672
22672
|
o && o();
|
|
22673
|
-
}, [c, o]), p =
|
|
22673
|
+
}, [c, o]), p = nn(
|
|
22674
22674
|
() => ({
|
|
22675
22675
|
id: u,
|
|
22676
22676
|
initial: t,
|
|
@@ -22686,7 +22686,7 @@ const S5 = ({ children: e, initial: t, isPresent: n, onExitComplete: o, custom:
|
|
|
22686
22686
|
*/
|
|
22687
22687
|
s ? [Math.random(), d] : [n, d]
|
|
22688
22688
|
);
|
|
22689
|
-
return
|
|
22689
|
+
return nn(() => {
|
|
22690
22690
|
c.forEach((f, m) => c.set(m, !1));
|
|
22691
22691
|
}, [n]), C.useEffect(() => {
|
|
22692
22692
|
!n && !c.size && o && o();
|
|
@@ -22715,7 +22715,7 @@ function bg(e) {
|
|
|
22715
22715
|
}), t;
|
|
22716
22716
|
}
|
|
22717
22717
|
const T5 = ({ children: e, custom: t, initial: n = !0, onExitComplete: o, presenceAffectsLayout: r = !0, mode: s = "sync", propagate: a = !1, anchorX: l = "left" }) => {
|
|
22718
|
-
const [c, u] = g1(a), d =
|
|
22718
|
+
const [c, u] = g1(a), d = nn(() => bg(e), [e]), p = a && !c ? [] : d.map(Ma), f = dt(!0), m = dt(d), b = tf(() => /* @__PURE__ */ new Map()), [h, y] = Re(d), [v, I] = Re(d);
|
|
22719
22719
|
m1(() => {
|
|
22720
22720
|
f.current = !1, m.current = d;
|
|
22721
22721
|
for (let w = 0; w < v.length; w++) {
|
|
@@ -23476,7 +23476,7 @@ function J5(e, t) {
|
|
|
23476
23476
|
}
|
|
23477
23477
|
function q5(e) {
|
|
23478
23478
|
const { initial: t, animate: n } = J5(e, ut(Ic));
|
|
23479
|
-
return
|
|
23479
|
+
return nn(() => ({ initial: t, animate: n }), [Eg(t), Eg(n)]);
|
|
23480
23480
|
}
|
|
23481
23481
|
function Eg(e) {
|
|
23482
23482
|
return Array.isArray(e) ? e.join(" ") : e;
|
|
@@ -23767,7 +23767,7 @@ function N1(e, t, n) {
|
|
|
23767
23767
|
!en(t[o]) && !k1(o, n) && (e[o] = t[o]);
|
|
23768
23768
|
}
|
|
23769
23769
|
function bN({ transformTemplate: e }, t) {
|
|
23770
|
-
return
|
|
23770
|
+
return nn(() => {
|
|
23771
23771
|
const n = wf();
|
|
23772
23772
|
return Cf(n, t, e), Object.assign({}, n.vars, n.style);
|
|
23773
23773
|
}, [t]);
|
|
@@ -23873,7 +23873,7 @@ const j1 = () => ({
|
|
|
23873
23873
|
attrs: {}
|
|
23874
23874
|
}), Tf = (e) => typeof e == "string" && e.toLowerCase() === "svg";
|
|
23875
23875
|
function TN(e, t, n, o) {
|
|
23876
|
-
const r =
|
|
23876
|
+
const r = nn(() => {
|
|
23877
23877
|
const s = j1();
|
|
23878
23878
|
return If(s, t, Tf(o), e.transformTemplate), {
|
|
23879
23879
|
...s.attrs,
|
|
@@ -23888,7 +23888,7 @@ function TN(e, t, n, o) {
|
|
|
23888
23888
|
}
|
|
23889
23889
|
function EN(e = !1) {
|
|
23890
23890
|
return (n, o, r, { latestValues: s }, a) => {
|
|
23891
|
-
const c = (Sf(n) ? TN : vN)(o, s, a, n), u = X5(o, typeof n == "string", e), d = n !== ys ? { ...u, ...c, ref: r } : {}, { children: p } = o, f =
|
|
23891
|
+
const c = (Sf(n) ? TN : vN)(o, s, a, n), u = X5(o, typeof n == "string", e), d = n !== ys ? { ...u, ...c, ref: r } : {}, { children: p } = o, f = nn(() => en(p) ? p.get() : p, [p]);
|
|
23892
23892
|
return xw(n, {
|
|
23893
23893
|
...d,
|
|
23894
23894
|
children: f
|
|
@@ -25679,26 +25679,26 @@ function w4(e, t) {
|
|
|
25679
25679
|
};
|
|
25680
25680
|
}
|
|
25681
25681
|
const Sx = 1e-4, S4 = 1 - Sx, I4 = 1 + Sx, Ix = 0.01, T4 = 0 - Ix, E4 = 0 + Ix;
|
|
25682
|
-
function
|
|
25682
|
+
function on(e) {
|
|
25683
25683
|
return e.max - e.min;
|
|
25684
25684
|
}
|
|
25685
25685
|
function R4(e, t, n) {
|
|
25686
25686
|
return Math.abs(e - t) <= n;
|
|
25687
25687
|
}
|
|
25688
25688
|
function Zg(e, t, n, o = 0.5) {
|
|
25689
|
-
e.origin = o, e.originPoint = Et(t.min, t.max, e.origin), e.scale =
|
|
25689
|
+
e.origin = o, e.originPoint = Et(t.min, t.max, e.origin), e.scale = on(n) / on(t), e.translate = Et(n.min, n.max, e.origin) - e.originPoint, (e.scale >= S4 && e.scale <= I4 || isNaN(e.scale)) && (e.scale = 1), (e.translate >= T4 && e.translate <= E4 || isNaN(e.translate)) && (e.translate = 0);
|
|
25690
25690
|
}
|
|
25691
25691
|
function gs(e, t, n, o) {
|
|
25692
25692
|
Zg(e.x, t.x, n.x, o ? o.originX : void 0), Zg(e.y, t.y, n.y, o ? o.originY : void 0);
|
|
25693
25693
|
}
|
|
25694
25694
|
function Jg(e, t, n) {
|
|
25695
|
-
e.min = n.min + t.min, e.max = e.min +
|
|
25695
|
+
e.min = n.min + t.min, e.max = e.min + on(t);
|
|
25696
25696
|
}
|
|
25697
25697
|
function O4(e, t, n) {
|
|
25698
25698
|
Jg(e.x, t.x, n.x), Jg(e.y, t.y, n.y);
|
|
25699
25699
|
}
|
|
25700
25700
|
function qg(e, t, n) {
|
|
25701
|
-
e.min = t.min - n.min, e.max = e.min +
|
|
25701
|
+
e.min = t.min - n.min, e.max = e.min + on(t);
|
|
25702
25702
|
}
|
|
25703
25703
|
function bs(e, t, n) {
|
|
25704
25704
|
qg(e.x, t.x, n.x), qg(e.y, t.y, n.y);
|
|
@@ -25886,7 +25886,7 @@ function F4(e, t) {
|
|
|
25886
25886
|
}
|
|
25887
25887
|
function B4(e, t) {
|
|
25888
25888
|
let n = 0.5;
|
|
25889
|
-
const o =
|
|
25889
|
+
const o = on(e), r = on(t);
|
|
25890
25890
|
return r > o ? n = /* @__PURE__ */ Ps(t.min, t.max - o, e.min) : o > r && (n = /* @__PURE__ */ Ps(e.min, e.max - r, t.min)), Co(0, 1, n);
|
|
25891
25891
|
}
|
|
25892
25892
|
function V4(e, t) {
|
|
@@ -25931,7 +25931,7 @@ class _4 {
|
|
|
25931
25931
|
const { projection: I } = this.visualElement;
|
|
25932
25932
|
if (I && I.layout) {
|
|
25933
25933
|
const S = I.layout.layoutBox[y];
|
|
25934
|
-
S && (v =
|
|
25934
|
+
S && (v = on(S) * (parseFloat(v) / 100));
|
|
25935
25935
|
}
|
|
25936
25936
|
}
|
|
25937
25937
|
this.originPoint[y] = v;
|
|
@@ -26378,7 +26378,7 @@ function jx(e, t) {
|
|
|
26378
26378
|
return S0(e.x, t.x) && S0(e.y, t.y);
|
|
26379
26379
|
}
|
|
26380
26380
|
function I0(e) {
|
|
26381
|
-
return
|
|
26381
|
+
return on(e.x) / on(e.y);
|
|
26382
26382
|
}
|
|
26383
26383
|
function T0(e, t) {
|
|
26384
26384
|
return e.translate === t.translate && e.scale === t.scale && e.originPoint === t.originPoint;
|
|
@@ -26594,7 +26594,7 @@ function Bx({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
26594
26594
|
* Update measurements
|
|
26595
26595
|
*/
|
|
26596
26596
|
updateSnapshot() {
|
|
26597
|
-
this.snapshot || !this.instance || (this.snapshot = this.measure(), this.snapshot && !
|
|
26597
|
+
this.snapshot || !this.instance || (this.snapshot = this.measure(), this.snapshot && !on(this.snapshot.measuredBox.x) && !on(this.snapshot.measuredBox.y) && (this.snapshot = void 0));
|
|
26598
26598
|
}
|
|
26599
26599
|
updateLayout() {
|
|
26600
26600
|
if (!this.instance || (this.updateScroll(), !(this.options.alwaysMeasureLayout && this.isLead()) && !this.isLayoutDirty))
|
|
@@ -26804,9 +26804,9 @@ function Bx({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
26804
26804
|
if (!(!l || !c || !u)) {
|
|
26805
26805
|
if (this !== a && this.layout && u && Vx(this.options.animationType, this.layout.layoutBox, u.layoutBox)) {
|
|
26806
26806
|
c = this.target || Dt();
|
|
26807
|
-
const p =
|
|
26807
|
+
const p = on(this.layout.layoutBox.x);
|
|
26808
26808
|
c.x.min = a.target.x.min, c.x.max = c.x.min + p;
|
|
26809
|
-
const f =
|
|
26809
|
+
const f = on(this.layout.layoutBox.y);
|
|
26810
26810
|
c.y.min = a.target.y.min, c.y.max = c.y.min + f;
|
|
26811
26811
|
}
|
|
26812
26812
|
Tn(l, c), Hr(l, d), gs(this.projectionDeltaWithTransform, this.layoutCorrected, l, d);
|
|
@@ -26917,10 +26917,10 @@ function pF(e) {
|
|
|
26917
26917
|
if (e.isLead() && e.layout && t && e.hasListeners("didUpdate")) {
|
|
26918
26918
|
const { layoutBox: o, measuredBox: r } = e.layout, { animationType: s } = e.options, a = t.source !== e.layout.source;
|
|
26919
26919
|
s === "size" ? On((p) => {
|
|
26920
|
-
const f = a ? t.measuredBox[p] : t.layoutBox[p], m =
|
|
26920
|
+
const f = a ? t.measuredBox[p] : t.layoutBox[p], m = on(f);
|
|
26921
26921
|
f.min = o[p].min, f.max = f.min + m;
|
|
26922
26922
|
}) : Vx(s, t.layoutBox, o) && On((p) => {
|
|
26923
|
-
const f = a ? t.measuredBox[p] : t.layoutBox[p], m =
|
|
26923
|
+
const f = a ? t.measuredBox[p] : t.layoutBox[p], m = on(o[p]);
|
|
26924
26924
|
f.max = f.min + m, e.relativeTarget && !e.currentAnimation && (e.isProjectionDirty = !0, e.relativeTarget[p].max = e.relativeTarget[p].min + m);
|
|
26925
26925
|
});
|
|
26926
26926
|
const l = zr();
|
|
@@ -42135,25 +42135,32 @@ PC.propTypes = {
|
|
|
42135
42135
|
nested: i.object
|
|
42136
42136
|
};
|
|
42137
42137
|
function AC({ tableProps: e, isDefaultConfig: t, gridPath: n, baseUrl: o }) {
|
|
42138
|
-
var
|
|
42139
|
-
const { columns: r } = e, { visibleGridColumns: s } = ut(fa) ?? {
|
|
42140
|
-
console.log("table", { visibleGridColumns: s });
|
|
42141
|
-
const l = ln(() => {
|
|
42138
|
+
var u;
|
|
42139
|
+
const { columns: r } = e, { visibleGridColumns: s = [] } = ut(fa) ?? {}, a = ut(ha), l = nn(() => {
|
|
42142
42140
|
var d;
|
|
42143
|
-
return
|
|
42141
|
+
return f7({
|
|
42144
42142
|
columns: r,
|
|
42145
42143
|
gridPath: n,
|
|
42146
42144
|
baseUrl: o,
|
|
42147
42145
|
isDefaultConfig: t,
|
|
42148
42146
|
pageSize: (d = e == null ? void 0 : e.pagination) == null ? void 0 : d.rowPerPage
|
|
42149
|
-
})
|
|
42150
|
-
}, [
|
|
42147
|
+
});
|
|
42148
|
+
}, [r, n, o, t, (u = e == null ? void 0 : e.pagination) == null ? void 0 : u.rowPerPage]), c = nn(() => {
|
|
42149
|
+
const d = new Map(l.map((p) => [p.id, p]));
|
|
42150
|
+
return s.map((p) => {
|
|
42151
|
+
const f = d.get(p.id);
|
|
42152
|
+
return {
|
|
42153
|
+
...p,
|
|
42154
|
+
...(f == null ? void 0 : f.cellRenderer) && { cellRenderer: f.cellRenderer }
|
|
42155
|
+
};
|
|
42156
|
+
});
|
|
42157
|
+
}, [l]);
|
|
42151
42158
|
return xt(() => {
|
|
42152
|
-
|
|
42159
|
+
a({
|
|
42153
42160
|
type: Xe.SET_GRID_DATA,
|
|
42154
|
-
payload: { visibleGridColumns: l }
|
|
42161
|
+
payload: { visibleGridColumns: s.length ? c : l }
|
|
42155
42162
|
});
|
|
42156
|
-
}, [l
|
|
42163
|
+
}, [l]), /* @__PURE__ */ g.jsx(
|
|
42157
42164
|
PC,
|
|
42158
42165
|
{
|
|
42159
42166
|
...e,
|
|
@@ -44015,7 +44022,7 @@ var JC = function(t) {
|
|
|
44015
44022
|
zIndex: 1
|
|
44016
44023
|
};
|
|
44017
44024
|
}, WW = function(t) {
|
|
44018
|
-
var n = t.appendTo, o = t.children, r = t.controlElement, s = t.innerProps, a = t.menuPlacement, l = t.menuPosition, c = dt(null), u = dt(null), d = Re(JC(a)), p = go(d, 2), f = p[0], m = p[1], b =
|
|
44025
|
+
var n = t.appendTo, o = t.children, r = t.controlElement, s = t.innerProps, a = t.menuPlacement, l = t.menuPosition, c = dt(null), u = dt(null), d = Re(JC(a)), p = go(d, 2), f = p[0], m = p[1], b = nn(function() {
|
|
44019
44026
|
return {
|
|
44020
44027
|
setPortalPlacement: m
|
|
44021
44028
|
};
|
|
@@ -44621,9 +44628,9 @@ var U8 = process.env.NODE_ENV === "production" ? {
|
|
|
44621
44628
|
return "".concat(o).concat(n ? " for search term " + n : "", ".");
|
|
44622
44629
|
}
|
|
44623
44630
|
}, Z8 = function(t) {
|
|
44624
|
-
var n = t.ariaSelection, o = t.focusedOption, r = t.focusedValue, s = t.focusableOptions, a = t.isFocused, l = t.selectValue, c = t.selectProps, u = t.id, d = t.isAppleDevice, p = c.ariaLiveMessages, f = c.getOptionLabel, m = c.inputValue, b = c.isMulti, h = c.isOptionDisabled, y = c.isSearchable, v = c.menuIsOpen, I = c.options, S = c.screenReaderStatus, T = c.tabSelectsValue, w = c.isLoading, E = c["aria-label"], O = c["aria-live"], P =
|
|
44631
|
+
var n = t.ariaSelection, o = t.focusedOption, r = t.focusedValue, s = t.focusableOptions, a = t.isFocused, l = t.selectValue, c = t.selectProps, u = t.id, d = t.isAppleDevice, p = c.ariaLiveMessages, f = c.getOptionLabel, m = c.inputValue, b = c.isMulti, h = c.isOptionDisabled, y = c.isSearchable, v = c.menuIsOpen, I = c.options, S = c.screenReaderStatus, T = c.tabSelectsValue, w = c.isLoading, E = c["aria-label"], O = c["aria-live"], P = nn(function() {
|
|
44625
44632
|
return Ae(Ae({}, X8), p || {});
|
|
44626
|
-
}, [p]), k =
|
|
44633
|
+
}, [p]), k = nn(function() {
|
|
44627
44634
|
var D = "";
|
|
44628
44635
|
if (n && P.onChange) {
|
|
44629
44636
|
var R = n.option, V = n.options, B = n.removedValue, A = n.removedValues, M = n.value, F = function(ee) {
|
|
@@ -44638,7 +44645,7 @@ var U8 = process.env.NODE_ENV === "production" ? {
|
|
|
44638
44645
|
D = P.onChange(Y);
|
|
44639
44646
|
}
|
|
44640
44647
|
return D;
|
|
44641
|
-
}, [n, P, h, l, f]), j =
|
|
44648
|
+
}, [n, P, h, l, f]), j = nn(function() {
|
|
44642
44649
|
var D = "", R = o || r, V = !!(o && l && l.includes(o));
|
|
44643
44650
|
if (R && P.onFocus) {
|
|
44644
44651
|
var B = {
|
|
@@ -44654,7 +44661,7 @@ var U8 = process.env.NODE_ENV === "production" ? {
|
|
|
44654
44661
|
D = P.onFocus(B);
|
|
44655
44662
|
}
|
|
44656
44663
|
return D;
|
|
44657
|
-
}, [o, r, f, h, P, s, l, d]), L =
|
|
44664
|
+
}, [o, r, f, h, P, s, l, d]), L = nn(function() {
|
|
44658
44665
|
var D = "";
|
|
44659
44666
|
if (v && I.length && !w && P.onFilter) {
|
|
44660
44667
|
var R = S({
|
|
@@ -44666,7 +44673,7 @@ var U8 = process.env.NODE_ENV === "production" ? {
|
|
|
44666
44673
|
});
|
|
44667
44674
|
}
|
|
44668
44675
|
return D;
|
|
44669
|
-
}, [s, m, v, P, I, S, w]), N = (n == null ? void 0 : n.action) === "initial-input-focus", _ =
|
|
44676
|
+
}, [s, m, v, P, I, S, w]), N = (n == null ? void 0 : n.action) === "initial-input-focus", _ = nn(function() {
|
|
44670
44677
|
var D = "";
|
|
44671
44678
|
if (P.guidance) {
|
|
44672
44679
|
var R = r ? "value" : v ? "menu" : "input";
|