@abdellatifui/react 3.2.15 → 3.2.16
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/nextgen.js +65 -62
- package/package.json +1 -1
package/dist/nextgen.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as R from "react";
|
|
2
|
-
import Ut, { useContext as rt, useState as I, useRef as ie, useEffect as K, forwardRef as de, useCallback as ae, memo as he, createContext as En, useImperativeHandle as
|
|
2
|
+
import Ut, { useContext as rt, useState as I, useRef as ie, useEffect as K, forwardRef as de, useCallback as ae, memo as he, createContext as En, useImperativeHandle as Nt, useMemo as ue, useLayoutEffect as To, isValidElement as io, cloneElement as ao, Children as Nd } from "react";
|
|
3
3
|
import * as Mr from "@radix-ui/react-tooltip";
|
|
4
4
|
import * as at from "@radix-ui/react-alert-dialog";
|
|
5
5
|
import { Slot as Ad } from "@radix-ui/react-slot";
|
|
@@ -42,7 +42,7 @@ import * as tc from "@radix-ui/react-toggle";
|
|
|
42
42
|
import { ErrorBoundary as wf } from "react-error-boundary";
|
|
43
43
|
import * as Os from "@radix-ui/react-checkbox";
|
|
44
44
|
import { Command as lt } from "cmdk";
|
|
45
|
-
import * as
|
|
45
|
+
import * as Ot from "@radix-ui/react-dialog";
|
|
46
46
|
import * as Rr from "@radix-ui/react-popover";
|
|
47
47
|
function Sf(e) {
|
|
48
48
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
@@ -5771,8 +5771,8 @@ function Dr(e, n = {}) {
|
|
|
5771
5771
|
}
|
|
5772
5772
|
}, [e?.current]), t ? [r, o] : r;
|
|
5773
5773
|
}
|
|
5774
|
-
const rm =
|
|
5775
|
-
|
|
5774
|
+
const rm = Ot.Portal, wc = R.forwardRef(({ className: e, ...n }, t) => /* @__PURE__ */ c.jsx(
|
|
5775
|
+
Ot.Overlay,
|
|
5776
5776
|
{
|
|
5777
5777
|
ref: t,
|
|
5778
5778
|
className: V(
|
|
@@ -5782,11 +5782,11 @@ const rm = jt.Portal, wc = R.forwardRef(({ className: e, ...n }, t) => /* @__PUR
|
|
|
5782
5782
|
...n
|
|
5783
5783
|
}
|
|
5784
5784
|
));
|
|
5785
|
-
wc.displayName =
|
|
5785
|
+
wc.displayName = Ot.Overlay.displayName;
|
|
5786
5786
|
const om = R.forwardRef(({ className: e, children: n, ...t }, r) => /* @__PURE__ */ c.jsxs(rm, { children: [
|
|
5787
5787
|
/* @__PURE__ */ c.jsx(wc, {}),
|
|
5788
5788
|
/* @__PURE__ */ c.jsxs(
|
|
5789
|
-
|
|
5789
|
+
Ot.Content,
|
|
5790
5790
|
{
|
|
5791
5791
|
ref: r,
|
|
5792
5792
|
className: V(
|
|
@@ -5796,7 +5796,7 @@ const om = R.forwardRef(({ className: e, children: n, ...t }, r) => /* @__PURE__
|
|
|
5796
5796
|
...t,
|
|
5797
5797
|
children: [
|
|
5798
5798
|
n,
|
|
5799
|
-
/* @__PURE__ */ c.jsxs(
|
|
5799
|
+
/* @__PURE__ */ c.jsxs(Ot.Close, { className: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground", children: [
|
|
5800
5800
|
/* @__PURE__ */ c.jsx(_d, { className: "h-4 w-4" }),
|
|
5801
5801
|
/* @__PURE__ */ c.jsx("span", { className: "sr-only", children: "Close" })
|
|
5802
5802
|
] })
|
|
@@ -5804,9 +5804,9 @@ const om = R.forwardRef(({ className: e, children: n, ...t }, r) => /* @__PURE__
|
|
|
5804
5804
|
}
|
|
5805
5805
|
)
|
|
5806
5806
|
] }));
|
|
5807
|
-
om.displayName =
|
|
5807
|
+
om.displayName = Ot.Content.displayName;
|
|
5808
5808
|
const sm = R.forwardRef(({ className: e, ...n }, t) => /* @__PURE__ */ c.jsx(
|
|
5809
|
-
|
|
5809
|
+
Ot.Title,
|
|
5810
5810
|
{
|
|
5811
5811
|
ref: t,
|
|
5812
5812
|
className: V(
|
|
@@ -5816,16 +5816,16 @@ const sm = R.forwardRef(({ className: e, ...n }, t) => /* @__PURE__ */ c.jsx(
|
|
|
5816
5816
|
...n
|
|
5817
5817
|
}
|
|
5818
5818
|
));
|
|
5819
|
-
sm.displayName =
|
|
5819
|
+
sm.displayName = Ot.Title.displayName;
|
|
5820
5820
|
const im = R.forwardRef(({ className: e, ...n }, t) => /* @__PURE__ */ c.jsx(
|
|
5821
|
-
|
|
5821
|
+
Ot.Description,
|
|
5822
5822
|
{
|
|
5823
5823
|
ref: t,
|
|
5824
5824
|
className: V("text-sm text-muted-foreground", e),
|
|
5825
5825
|
...n
|
|
5826
5826
|
}
|
|
5827
5827
|
));
|
|
5828
|
-
im.displayName =
|
|
5828
|
+
im.displayName = Ot.Description.displayName;
|
|
5829
5829
|
const Sc = R.forwardRef(({ className: e, ...n }, t) => /* @__PURE__ */ c.jsx(
|
|
5830
5830
|
lt,
|
|
5831
5831
|
{
|
|
@@ -6283,7 +6283,7 @@ const pi = En({}), Tm = ye(
|
|
|
6283
6283
|
}, []), C = ae(() => {
|
|
6284
6284
|
r(!0);
|
|
6285
6285
|
}, []);
|
|
6286
|
-
|
|
6286
|
+
Nt(n, () => ({
|
|
6287
6287
|
open: C,
|
|
6288
6288
|
close: d,
|
|
6289
6289
|
get isOpen() {
|
|
@@ -6380,7 +6380,7 @@ const pi = En({}), Tm = ye(
|
|
|
6380
6380
|
r((b) => !b);
|
|
6381
6381
|
}, 50);
|
|
6382
6382
|
}, [t]);
|
|
6383
|
-
|
|
6383
|
+
Nt(n, () => ({
|
|
6384
6384
|
open: N,
|
|
6385
6385
|
close: A,
|
|
6386
6386
|
toggle: P,
|
|
@@ -6648,7 +6648,7 @@ function Im(e, n) {
|
|
|
6648
6648
|
const t = Array.isArray(e) ? e[0] : e ? e.x : 0, r = Array.isArray(e) ? e[1] : e ? e.y : 0, o = Array.isArray(n) ? n[0] : n ? n.x : 0, s = Array.isArray(n) ? n[1] : n ? n.y : 0;
|
|
6649
6649
|
return t === o && r === s;
|
|
6650
6650
|
}
|
|
6651
|
-
function
|
|
6651
|
+
function jt(e, n) {
|
|
6652
6652
|
if (e === n)
|
|
6653
6653
|
return !0;
|
|
6654
6654
|
if (!e || !n)
|
|
@@ -6657,7 +6657,7 @@ function $t(e, n) {
|
|
|
6657
6657
|
if (!Array.isArray(n) || e.length !== n.length)
|
|
6658
6658
|
return !1;
|
|
6659
6659
|
for (let t = 0; t < e.length; t++)
|
|
6660
|
-
if (
|
|
6660
|
+
if (!jt(e[t], n[t]))
|
|
6661
6661
|
return !1;
|
|
6662
6662
|
return !0;
|
|
6663
6663
|
} else if (Array.isArray(n))
|
|
@@ -6667,7 +6667,7 @@ function $t(e, n) {
|
|
|
6667
6667
|
if (t.length !== r.length)
|
|
6668
6668
|
return !1;
|
|
6669
6669
|
for (const o of t)
|
|
6670
|
-
if (!n.hasOwnProperty(o) ||
|
|
6670
|
+
if (!n.hasOwnProperty(o) || !jt(e[o], n[o]))
|
|
6671
6671
|
return !1;
|
|
6672
6672
|
return !0;
|
|
6673
6673
|
}
|
|
@@ -6689,7 +6689,7 @@ function pa(e, n) {
|
|
|
6689
6689
|
const o = e.center.constructor;
|
|
6690
6690
|
r.center = new o(t.longitude, t.latitude);
|
|
6691
6691
|
}
|
|
6692
|
-
return "zoom" in t && t.zoom !== e.zoom && (r.zoom = t.zoom), "bearing" in t && t.bearing !== e.bearing && (r.bearing = t.bearing), "pitch" in t && t.pitch !== e.pitch && (r.pitch = t.pitch), t.padding && e.padding &&
|
|
6692
|
+
return "zoom" in t && t.zoom !== e.zoom && (r.zoom = t.zoom), "bearing" in t && t.bearing !== e.bearing && (r.bearing = t.bearing), "pitch" in t && t.pitch !== e.pitch && (r.pitch = t.pitch), t.padding && e.padding && !jt(t.padding, e.padding) && (r.padding = t.padding), r;
|
|
6693
6693
|
}
|
|
6694
6694
|
const Mm = ["type", "source", "source-layer", "minzoom", "maxzoom", "filter", "layout"];
|
|
6695
6695
|
function ma(e) {
|
|
@@ -6903,7 +6903,7 @@ class Kn {
|
|
|
6903
6903
|
const r = this._map;
|
|
6904
6904
|
let o = !1;
|
|
6905
6905
|
for (const s of Dm)
|
|
6906
|
-
s in n &&
|
|
6906
|
+
s in n && !jt(n[s], t[s]) && (o = !0, r[`set${s[0].toUpperCase()}${s.slice(1)}`]?.call(r, n[s]));
|
|
6907
6907
|
return o;
|
|
6908
6908
|
}
|
|
6909
6909
|
/* Update map style to match props */
|
|
@@ -6922,14 +6922,14 @@ class Kn {
|
|
|
6922
6922
|
*/
|
|
6923
6923
|
_updateStyleComponents({ light: n, projection: t, sky: r, terrain: o }) {
|
|
6924
6924
|
const s = this._map, i = this._styleComponents;
|
|
6925
|
-
s.style._loaded && (n &&
|
|
6925
|
+
s.style._loaded && (n && !jt(n, i.light) && (i.light = n, s.setLight(n)), t && !jt(t, i.projection) && t !== i.projection?.type && (i.projection = typeof t == "string" ? { type: t } : t, s.setProjection?.(i.projection)), r && !jt(r, i.sky) && (i.sky = r, s.setSky(r)), o !== void 0 && !jt(o, i.terrain) && (!o || s.getSource(o.source)) && (i.terrain = o, s.setTerrain(o)));
|
|
6926
6926
|
}
|
|
6927
6927
|
/* Update interaction handlers to match props */
|
|
6928
6928
|
_updateHandlers(n, t) {
|
|
6929
6929
|
const r = this._map;
|
|
6930
6930
|
for (const o of zm) {
|
|
6931
6931
|
const s = n[o] ?? !0, i = t[o] ?? !0;
|
|
6932
|
-
|
|
6932
|
+
jt(s, i) || (s ? r[o].enable(s) : r[o].disable());
|
|
6933
6933
|
}
|
|
6934
6934
|
}
|
|
6935
6935
|
_queryRenderedFeatures(n) {
|
|
@@ -7033,7 +7033,7 @@ function Hm(e, n) {
|
|
|
7033
7033
|
};
|
|
7034
7034
|
}, []), Vm(() => {
|
|
7035
7035
|
r && r.setProps(e);
|
|
7036
|
-
}),
|
|
7036
|
+
}), Nt(n, () => i.map, [r]);
|
|
7037
7037
|
const a = ue(() => ({
|
|
7038
7038
|
position: "relative",
|
|
7039
7039
|
width: "100%",
|
|
@@ -7104,7 +7104,7 @@ const Ic = he(de((e, n) => {
|
|
|
7104
7104
|
const { longitude: i, latitude: a, offset: l, style: u, draggable: f = !1, popup: p = null, rotation: m = 0, rotationAlignment: g = "auto", pitchAlignment: y = "auto" } = e;
|
|
7105
7105
|
K(() => {
|
|
7106
7106
|
Xt(s.getElement(), u);
|
|
7107
|
-
}, [u]),
|
|
7107
|
+
}, [u]), Nt(n, () => s, []);
|
|
7108
7108
|
const d = o.current.props;
|
|
7109
7109
|
(s.getLngLat().lng !== i || s.getLngLat().lat !== a) && s.setLngLat([i, a]), l && !Im(s.getOffset(), l) && s.setOffset(l), s.isDraggable() !== f && s.setDraggable(f), s.getRotation() !== m && s.setRotation(m), s.getRotationAlignment() !== g && s.setRotationAlignment(g), s.getPitchAlignment() !== y && s.setPitchAlignment(y), s.getPopup() !== p && s.setPopup(p);
|
|
7110
7110
|
const C = _c(d.className, e.className);
|
|
@@ -7129,9 +7129,9 @@ he(de((e, n) => {
|
|
|
7129
7129
|
};
|
|
7130
7130
|
}, []), K(() => {
|
|
7131
7131
|
Xt(i.getElement(), e.style);
|
|
7132
|
-
}, [e.style]),
|
|
7132
|
+
}, [e.style]), Nt(n, () => i, []), i.isOpen()) {
|
|
7133
7133
|
const a = s.current.props;
|
|
7134
|
-
(i.getLngLat().lng !== e.longitude || i.getLngLat().lat !== e.latitude) && i.setLngLat([e.longitude, e.latitude]), e.offset &&
|
|
7134
|
+
(i.getLngLat().lng !== e.longitude || i.getLngLat().lat !== e.latitude) && i.setLngLat([e.longitude, e.latitude]), e.offset && !jt(a.offset, e.offset) && i.setOffset(e.offset), (a.anchor !== e.anchor || a.maxWidth !== e.maxWidth) && (i.options.anchor = e.anchor, i.setMaxWidth(e.maxWidth));
|
|
7135
7135
|
const l = _c(a.className, e.className);
|
|
7136
7136
|
if (l)
|
|
7137
7137
|
for (const u of l)
|
|
@@ -7184,7 +7184,7 @@ function Km(e, n) {
|
|
|
7184
7184
|
t.current.props.onTrackUserLocationEnd?.(a);
|
|
7185
7185
|
}), s;
|
|
7186
7186
|
}, { position: e.position });
|
|
7187
|
-
return t.current.props = e,
|
|
7187
|
+
return t.current.props = e, Nt(n, () => r, []), K(() => {
|
|
7188
7188
|
Xt(r._container, e.style);
|
|
7189
7189
|
}, [e.style]), null;
|
|
7190
7190
|
}
|
|
@@ -7270,7 +7270,10 @@ const eh = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADUAAAA1CAYAAADh5qNwAA
|
|
|
7270
7270
|
}, [r, l]);
|
|
7271
7271
|
return K(() => {
|
|
7272
7272
|
u?.nodes?.includes(o?.elementId) ? (H(!0), F(1)) : (H(!1), F(0.5)), u?.nodes?.length == 0 && (H(!1), F(1));
|
|
7273
|
-
}, [u?.nodes]),
|
|
7273
|
+
}, [u?.nodes]), Nt(k, () => ({
|
|
7274
|
+
...k,
|
|
7275
|
+
changeMarkerOutline: H
|
|
7276
|
+
}), []), K(() => {
|
|
7274
7277
|
const L = b;
|
|
7275
7278
|
if (b) {
|
|
7276
7279
|
o.location.lat = L.lngLat.lat, o.location.lng = L.lngLat.lng;
|
|
@@ -7566,7 +7569,7 @@ const lh = ({ connections: e = [], mapApi: n, options: t, selectedConn: r, _onLi
|
|
|
7566
7569
|
type: "connection"
|
|
7567
7570
|
};
|
|
7568
7571
|
o({ ...w, ...E }), w?.object?.nodes?.map((x) => {
|
|
7569
|
-
x?.ref?.current?.changeMarkerOutline(!0);
|
|
7572
|
+
x?.ref?.current?.changeMarkerOutline?.(!0);
|
|
7570
7573
|
});
|
|
7571
7574
|
},
|
|
7572
7575
|
parameters: { depthTest: !1 },
|
|
@@ -8017,14 +8020,14 @@ const xh = (e) => {
|
|
|
8017
8020
|
ref: We
|
|
8018
8021
|
} = e, ge = ie(), ot = it(4, !0, !1), me = ie({});
|
|
8019
8022
|
ie();
|
|
8020
|
-
const [Ae, Fe] = I([]), [ut, kt] = I([]), [le, _t] = I([]), [It, dn] = I(), [fn, Rn] = I(null), [
|
|
8023
|
+
const [Ae, Fe] = I([]), [ut, kt] = I([]), [le, _t] = I([]), [It, dn] = I(), [fn, Rn] = I(null), [At, Qt] = I(null), [Rt, rr] = I({}), [Mt, Hr] = I({}), [pn, or] = I(!1), [Ur, sr] = I({ connections: [], nodes: [], countBoxes: [] }), [Yr, Pn] = I({}), [zi, $n] = I(!1), [is, jn] = I(!1), [On, ir] = I(t), [ar, lr] = I(), [Jt, mn] = I([]), [Dt, cr] = I([]), [ur, dr] = I(!0), [_n, hn] = I(!1), fr = ie();
|
|
8021
8024
|
K(() => {
|
|
8022
8025
|
te && console.log(e);
|
|
8023
8026
|
}, [te]);
|
|
8024
8027
|
const as = ue(() => {
|
|
8025
|
-
const Q = b(
|
|
8026
|
-
return Q || "Link : " +
|
|
8027
|
-
}, [
|
|
8028
|
+
const Q = b(Rt);
|
|
8029
|
+
return Q || "Link : " + Rt?.data?.name;
|
|
8030
|
+
}, [Rt]), ls = ue(() => {
|
|
8028
8031
|
const Q = b(Mt);
|
|
8029
8032
|
return Q || "Node : " + Mt?.data?.name;
|
|
8030
8033
|
}, [Mt]), [ne, Ce] = I({
|
|
@@ -8054,7 +8057,7 @@ const xh = (e) => {
|
|
|
8054
8057
|
mapApi: me,
|
|
8055
8058
|
options: ne,
|
|
8056
8059
|
_onLinkSelected: Ft,
|
|
8057
|
-
selectedConn:
|
|
8060
|
+
selectedConn: Rt,
|
|
8058
8061
|
mapDragging: pn,
|
|
8059
8062
|
hideLinksOnDrag: a,
|
|
8060
8063
|
hoveredConnection: It,
|
|
@@ -8080,7 +8083,7 @@ const xh = (e) => {
|
|
|
8080
8083
|
nodeSizeScaler: v
|
|
8081
8084
|
}));
|
|
8082
8085
|
}, [m, k, ee, me?.current, W, $, G, U?.name, D, s, o, i, H, j, a, k, v]);
|
|
8083
|
-
const
|
|
8086
|
+
const Pt = ue(() => {
|
|
8084
8087
|
const Q = On / t;
|
|
8085
8088
|
return yh * Q - 0.3;
|
|
8086
8089
|
}, [On]);
|
|
@@ -8216,7 +8219,7 @@ const xh = (e) => {
|
|
|
8216
8219
|
hideLinks: !1
|
|
8217
8220
|
}));
|
|
8218
8221
|
}
|
|
8219
|
-
|
|
8222
|
+
Nt(We, () => (console.log("Re-rendering useImperativeHandle"), {
|
|
8220
8223
|
id: ot,
|
|
8221
8224
|
getCanvas: () => me.current?.getCanvas?.(),
|
|
8222
8225
|
props: e,
|
|
@@ -8258,23 +8261,23 @@ const xh = (e) => {
|
|
|
8258
8261
|
...Q,
|
|
8259
8262
|
action: () => {
|
|
8260
8263
|
Q?.action?.({
|
|
8261
|
-
data:
|
|
8264
|
+
data: Rt,
|
|
8262
8265
|
event: fn,
|
|
8263
8266
|
mapApi: me,
|
|
8264
8267
|
type: "connection"
|
|
8265
8268
|
});
|
|
8266
8269
|
}
|
|
8267
|
-
})) || [], [M?.length, fn,
|
|
8270
|
+
})) || [], [M?.length, fn, Rt]), Ed = ue(() => Y?.map((Q) => ({
|
|
8268
8271
|
...Q,
|
|
8269
8272
|
action: () => {
|
|
8270
8273
|
Q?.action?.({
|
|
8271
8274
|
data: Mt,
|
|
8272
|
-
event:
|
|
8275
|
+
event: At,
|
|
8273
8276
|
mapApi: me,
|
|
8274
8277
|
type: "node"
|
|
8275
8278
|
});
|
|
8276
8279
|
}
|
|
8277
|
-
})) || [], [Y?.length,
|
|
8280
|
+
})) || [], [Y?.length, At, Mt]), Td = ae((Q) => {
|
|
8278
8281
|
if (!me.current || _n) return;
|
|
8279
8282
|
Q.layer || dn(null), Q?.coordinate && Fe(Q.coordinate);
|
|
8280
8283
|
const ve = me.current.getCanvas();
|
|
@@ -8297,8 +8300,8 @@ const xh = (e) => {
|
|
|
8297
8300
|
"div",
|
|
8298
8301
|
{
|
|
8299
8302
|
onContextMenu: (Q) => {
|
|
8300
|
-
|
|
8301
|
-
data:
|
|
8303
|
+
Rt?.x && (Rn(Q), F({
|
|
8304
|
+
data: Rt,
|
|
8302
8305
|
event: Q,
|
|
8303
8306
|
mapApi: me,
|
|
8304
8307
|
type: "connection"
|
|
@@ -8321,7 +8324,7 @@ const xh = (e) => {
|
|
|
8321
8324
|
/* @__PURE__ */ c.jsx(
|
|
8322
8325
|
_r,
|
|
8323
8326
|
{
|
|
8324
|
-
event:
|
|
8327
|
+
event: At,
|
|
8325
8328
|
items: {
|
|
8326
8329
|
title: ls,
|
|
8327
8330
|
items: Ed
|
|
@@ -8438,7 +8441,7 @@ const xh = (e) => {
|
|
|
8438
8441
|
_ && Dt?.map((Q, ve) => /* @__PURE__ */ c.jsx(
|
|
8439
8442
|
mh,
|
|
8440
8443
|
{
|
|
8441
|
-
fontSize:
|
|
8444
|
+
fontSize: Pt,
|
|
8442
8445
|
data: Q,
|
|
8443
8446
|
mapApi: We,
|
|
8444
8447
|
currentZoomLevel: On,
|
|
@@ -11877,7 +11880,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${n}Chann
|
|
|
11877
11880
|
function Ky(e) {
|
|
11878
11881
|
return typeof e == "number" ? `${e}px` : typeof e == "string" || typeof e == "function" || Array.isArray(e) ? e : "8px";
|
|
11879
11882
|
}
|
|
11880
|
-
const
|
|
11883
|
+
const $t = (e) => {
|
|
11881
11884
|
try {
|
|
11882
11885
|
return e();
|
|
11883
11886
|
} catch {
|
|
@@ -11976,14 +11979,14 @@ function Qy(e = {}, ...n) {
|
|
|
11976
11979
|
return H(D, L);
|
|
11977
11980
|
}
|
|
11978
11981
|
if (qy(b, ["Alert", "AppBar", "Avatar", "Button", "Chip", "FilledInput", "LinearProgress", "Skeleton", "Slider", "SnackbarContent", "SpeedDialAction", "StepConnector", "StepContent", "Switch", "TableCell", "Tooltip"]), b.mode === "light") {
|
|
11979
|
-
z(b.Alert, "errorColor", _(we, b.error.light, 0.6)), z(b.Alert, "infoColor", _(we, b.info.light, 0.6)), z(b.Alert, "successColor", _(we, b.success.light, 0.6)), z(b.Alert, "warningColor", _(we, b.warning.light, 0.6)), z(b.Alert, "errorFilledBg", O("palette-error-main")), z(b.Alert, "infoFilledBg", O("palette-info-main")), z(b.Alert, "successFilledBg", O("palette-success-main")), z(b.Alert, "warningFilledBg", O("palette-warning-main")), z(b.Alert, "errorFilledColor",
|
|
11982
|
+
z(b.Alert, "errorColor", _(we, b.error.light, 0.6)), z(b.Alert, "infoColor", _(we, b.info.light, 0.6)), z(b.Alert, "successColor", _(we, b.success.light, 0.6)), z(b.Alert, "warningColor", _(we, b.warning.light, 0.6)), z(b.Alert, "errorFilledBg", O("palette-error-main")), z(b.Alert, "infoFilledBg", O("palette-info-main")), z(b.Alert, "successFilledBg", O("palette-success-main")), z(b.Alert, "warningFilledBg", O("palette-warning-main")), z(b.Alert, "errorFilledColor", $t(() => b.getContrastText(b.error.main))), z(b.Alert, "infoFilledColor", $t(() => b.getContrastText(b.info.main))), z(b.Alert, "successFilledColor", $t(() => b.getContrastText(b.success.main))), z(b.Alert, "warningFilledColor", $t(() => b.getContrastText(b.warning.main))), z(b.Alert, "errorStandardBg", _(Se, b.error.light, 0.9)), z(b.Alert, "infoStandardBg", _(Se, b.info.light, 0.9)), z(b.Alert, "successStandardBg", _(Se, b.success.light, 0.9)), z(b.Alert, "warningStandardBg", _(Se, b.warning.light, 0.9)), z(b.Alert, "errorIconColor", O("palette-error-main")), z(b.Alert, "infoIconColor", O("palette-info-main")), z(b.Alert, "successIconColor", O("palette-success-main")), z(b.Alert, "warningIconColor", O("palette-warning-main")), z(b.AppBar, "defaultBg", O("palette-grey-100")), z(b.Avatar, "defaultBg", O("palette-grey-400")), z(b.Button, "inheritContainedBg", O("palette-grey-300")), z(b.Button, "inheritContainedHoverBg", O("palette-grey-A100")), z(b.Chip, "defaultBorder", O("palette-grey-400")), z(b.Chip, "defaultAvatarColor", O("palette-grey-700")), z(b.Chip, "defaultIconColor", O("palette-grey-700")), z(b.FilledInput, "bg", "rgba(0, 0, 0, 0.06)"), z(b.FilledInput, "hoverBg", "rgba(0, 0, 0, 0.09)"), z(b.FilledInput, "disabledBg", "rgba(0, 0, 0, 0.12)"), z(b.LinearProgress, "primaryBg", _(Se, b.primary.main, 0.62)), z(b.LinearProgress, "secondaryBg", _(Se, b.secondary.main, 0.62)), z(b.LinearProgress, "errorBg", _(Se, b.error.main, 0.62)), z(b.LinearProgress, "infoBg", _(Se, b.info.main, 0.62)), z(b.LinearProgress, "successBg", _(Se, b.success.main, 0.62)), z(b.LinearProgress, "warningBg", _(Se, b.warning.main, 0.62)), z(b.Skeleton, "bg", k ? _(yn, b.text.primary, 0.11) : `rgba(${O("palette-text-primaryChannel")} / 0.11)`), z(b.Slider, "primaryTrack", _(Se, b.primary.main, 0.62)), z(b.Slider, "secondaryTrack", _(Se, b.secondary.main, 0.62)), z(b.Slider, "errorTrack", _(Se, b.error.main, 0.62)), z(b.Slider, "infoTrack", _(Se, b.info.main, 0.62)), z(b.Slider, "successTrack", _(Se, b.success.main, 0.62)), z(b.Slider, "warningTrack", _(Se, b.warning.main, 0.62));
|
|
11980
11983
|
const H = k ? _(we, b.background.default, 0.6825) : ro(b.background.default, 0.8);
|
|
11981
|
-
z(b.SnackbarContent, "bg", H), z(b.SnackbarContent, "color",
|
|
11984
|
+
z(b.SnackbarContent, "bg", H), z(b.SnackbarContent, "color", $t(() => k ? Hs.text.primary : b.getContrastText(H))), z(b.SpeedDialAction, "fabHoverBg", ro(b.background.paper, 0.15)), z(b.StepConnector, "border", O("palette-grey-400")), z(b.StepContent, "border", O("palette-grey-400")), z(b.Switch, "defaultColor", O("palette-common-white")), z(b.Switch, "defaultDisabledColor", O("palette-grey-100")), z(b.Switch, "primaryDisabledColor", _(Se, b.primary.main, 0.62)), z(b.Switch, "secondaryDisabledColor", _(Se, b.secondary.main, 0.62)), z(b.Switch, "errorDisabledColor", _(Se, b.error.main, 0.62)), z(b.Switch, "infoDisabledColor", _(Se, b.info.main, 0.62)), z(b.Switch, "successDisabledColor", _(Se, b.success.main, 0.62)), z(b.Switch, "warningDisabledColor", _(Se, b.warning.main, 0.62)), z(b.TableCell, "border", _(Se, _(yn, b.divider, 1), 0.88)), z(b.Tooltip, "bg", _(yn, b.grey[700], 0.92));
|
|
11982
11985
|
}
|
|
11983
11986
|
if (b.mode === "dark") {
|
|
11984
|
-
z(b.Alert, "errorColor", _(Se, b.error.light, 0.6)), z(b.Alert, "infoColor", _(Se, b.info.light, 0.6)), z(b.Alert, "successColor", _(Se, b.success.light, 0.6)), z(b.Alert, "warningColor", _(Se, b.warning.light, 0.6)), z(b.Alert, "errorFilledBg", O("palette-error-dark")), z(b.Alert, "infoFilledBg", O("palette-info-dark")), z(b.Alert, "successFilledBg", O("palette-success-dark")), z(b.Alert, "warningFilledBg", O("palette-warning-dark")), z(b.Alert, "errorFilledColor",
|
|
11987
|
+
z(b.Alert, "errorColor", _(Se, b.error.light, 0.6)), z(b.Alert, "infoColor", _(Se, b.info.light, 0.6)), z(b.Alert, "successColor", _(Se, b.success.light, 0.6)), z(b.Alert, "warningColor", _(Se, b.warning.light, 0.6)), z(b.Alert, "errorFilledBg", O("palette-error-dark")), z(b.Alert, "infoFilledBg", O("palette-info-dark")), z(b.Alert, "successFilledBg", O("palette-success-dark")), z(b.Alert, "warningFilledBg", O("palette-warning-dark")), z(b.Alert, "errorFilledColor", $t(() => b.getContrastText(b.error.dark))), z(b.Alert, "infoFilledColor", $t(() => b.getContrastText(b.info.dark))), z(b.Alert, "successFilledColor", $t(() => b.getContrastText(b.success.dark))), z(b.Alert, "warningFilledColor", $t(() => b.getContrastText(b.warning.dark))), z(b.Alert, "errorStandardBg", _(we, b.error.light, 0.9)), z(b.Alert, "infoStandardBg", _(we, b.info.light, 0.9)), z(b.Alert, "successStandardBg", _(we, b.success.light, 0.9)), z(b.Alert, "warningStandardBg", _(we, b.warning.light, 0.9)), z(b.Alert, "errorIconColor", O("palette-error-main")), z(b.Alert, "infoIconColor", O("palette-info-main")), z(b.Alert, "successIconColor", O("palette-success-main")), z(b.Alert, "warningIconColor", O("palette-warning-main")), z(b.AppBar, "defaultBg", O("palette-grey-900")), z(b.AppBar, "darkBg", O("palette-background-paper")), z(b.AppBar, "darkColor", O("palette-text-primary")), z(b.Avatar, "defaultBg", O("palette-grey-600")), z(b.Button, "inheritContainedBg", O("palette-grey-800")), z(b.Button, "inheritContainedHoverBg", O("palette-grey-700")), z(b.Chip, "defaultBorder", O("palette-grey-700")), z(b.Chip, "defaultAvatarColor", O("palette-grey-300")), z(b.Chip, "defaultIconColor", O("palette-grey-300")), z(b.FilledInput, "bg", "rgba(255, 255, 255, 0.09)"), z(b.FilledInput, "hoverBg", "rgba(255, 255, 255, 0.13)"), z(b.FilledInput, "disabledBg", "rgba(255, 255, 255, 0.12)"), z(b.LinearProgress, "primaryBg", _(we, b.primary.main, 0.5)), z(b.LinearProgress, "secondaryBg", _(we, b.secondary.main, 0.5)), z(b.LinearProgress, "errorBg", _(we, b.error.main, 0.5)), z(b.LinearProgress, "infoBg", _(we, b.info.main, 0.5)), z(b.LinearProgress, "successBg", _(we, b.success.main, 0.5)), z(b.LinearProgress, "warningBg", _(we, b.warning.main, 0.5)), z(b.Skeleton, "bg", k ? _(yn, b.text.primary, 0.13) : `rgba(${O("palette-text-primaryChannel")} / 0.13)`), z(b.Slider, "primaryTrack", _(we, b.primary.main, 0.5)), z(b.Slider, "secondaryTrack", _(we, b.secondary.main, 0.5)), z(b.Slider, "errorTrack", _(we, b.error.main, 0.5)), z(b.Slider, "infoTrack", _(we, b.info.main, 0.5)), z(b.Slider, "successTrack", _(we, b.success.main, 0.5)), z(b.Slider, "warningTrack", _(we, b.warning.main, 0.5));
|
|
11985
11988
|
const H = k ? _(Se, b.background.default, 0.985) : ro(b.background.default, 0.98);
|
|
11986
|
-
z(b.SnackbarContent, "bg", H), z(b.SnackbarContent, "color",
|
|
11989
|
+
z(b.SnackbarContent, "bg", H), z(b.SnackbarContent, "color", $t(() => k ? nu.text.primary : b.getContrastText(H))), z(b.SpeedDialAction, "fabHoverBg", ro(b.background.paper, 0.15)), z(b.StepConnector, "border", O("palette-grey-600")), z(b.StepContent, "border", O("palette-grey-600")), z(b.Switch, "defaultColor", O("palette-grey-300")), z(b.Switch, "defaultDisabledColor", O("palette-grey-600")), z(b.Switch, "primaryDisabledColor", _(we, b.primary.main, 0.55)), z(b.Switch, "secondaryDisabledColor", _(we, b.secondary.main, 0.55)), z(b.Switch, "errorDisabledColor", _(we, b.error.main, 0.55)), z(b.Switch, "infoDisabledColor", _(we, b.info.main, 0.55)), z(b.Switch, "successDisabledColor", _(we, b.success.main, 0.55)), z(b.Switch, "warningDisabledColor", _(we, b.warning.main, 0.55)), z(b.TableCell, "border", _(we, _(yn, b.divider, 1), 0.68)), z(b.Tooltip, "bg", _(yn, b.grey[700], 0.92));
|
|
11987
11990
|
}
|
|
11988
11991
|
Vt(b.background, "default"), Vt(b.background, "paper"), Vt(b.common, "background"), Vt(b.common, "onBackground"), Vt(b, "divider"), Object.keys(b).forEach((H) => {
|
|
11989
11992
|
const D = b[H];
|
|
@@ -13253,7 +13256,7 @@ const Kv = de((e, n) => {
|
|
|
13253
13256
|
w.removeEventListener("keyup", E);
|
|
13254
13257
|
});
|
|
13255
13258
|
};
|
|
13256
|
-
}, [l?.items]),
|
|
13259
|
+
}, [l?.items]), Nt(n, () => ({
|
|
13257
13260
|
mainMenu: r.current,
|
|
13258
13261
|
model: t.current,
|
|
13259
13262
|
closeMenu: C,
|
|
@@ -14768,7 +14771,7 @@ const $i = En({}), $b = de((e, n) => {
|
|
|
14768
14771
|
pageSizeArray: me
|
|
14769
14772
|
}), [ut, kt] = mb(u, Fe);
|
|
14770
14773
|
gb(Ae);
|
|
14771
|
-
const [le, _t] = I(!0), [It, dn] = I(null), [fn, Rn] = I(null), [
|
|
14774
|
+
const [le, _t] = I(!0), [It, dn] = I(null), [fn, Rn] = I(null), [At, Qt] = I(!0), [Rt] = kb(Ae, P, ge, At), [rr] = bb(Ae, kt, ut), [Mt, Hr] = I(0), [pn, or] = I(!1), [Ur, sr] = I([]), Yr = ae((ne) => {
|
|
14772
14775
|
if (!Z.current.api)
|
|
14773
14776
|
return;
|
|
14774
14777
|
const Ce = Z.current?.api.getColumns().map((Xe) => Xe.colId);
|
|
@@ -14787,18 +14790,18 @@ const $i = En({}), $b = de((e, n) => {
|
|
|
14787
14790
|
const Ce = m, Xe = "application/vnd/openxmlformats-officedocument.spreadsheetml.sheet;charset=UTF-8", zt = ".xlsx", Ft = { Sheets: { data: Ui.utils.json_to_sheet(ne.props.dataset) }, SheetNames: ["data"] }, Lt = Ui.write(Ft, { bookType: "xlsx", type: "array" }), pr = new Blob([Lt], { type: Xe });
|
|
14788
14791
|
hf(pr, Ce + zt);
|
|
14789
14792
|
}, [m]), is = ae((ne, Ce) => {
|
|
14790
|
-
const Xe = ne.colDef.field, zt = ne.api.getSelectedNodes()[0] || {},
|
|
14793
|
+
const Xe = ne.colDef.field, zt = ne.api.getSelectedNodes()[0] || {}, Pt = { header: Xe, value: ne.value, params: ne }, Ft = {
|
|
14791
14794
|
selectedCell: ne.value,
|
|
14792
14795
|
selectedHeader: ne.colDef.field,
|
|
14793
14796
|
cell: { header: Xe, value: ne.value, params: ne, parentRowNode: zt }
|
|
14794
14797
|
};
|
|
14795
|
-
ot(
|
|
14798
|
+
ot(Pt), Fe((Lt) => ({ ...Lt, ...Ft })), f(ne, ne.value, ne.colDef.field);
|
|
14796
14799
|
}, [Fe, f]), jn = ae((ne) => {
|
|
14797
14800
|
const { event: Ce, value: Xe } = ne;
|
|
14798
14801
|
if ((Z.current?.api?.getSelectedRows() || [])?.length == 0)
|
|
14799
14802
|
return;
|
|
14800
|
-
const
|
|
14801
|
-
ot({ header:
|
|
14803
|
+
const Pt = !!ge.value;
|
|
14804
|
+
ot({ header: Pt ? ge.header : " ", value: Pt ? ge.value : " ", params: ne }), Qt(Pt), Ce.preventDefault(), Rn(Ce);
|
|
14802
14805
|
}, [ge.value, ge.header]);
|
|
14803
14806
|
K(() => {
|
|
14804
14807
|
if (b ? Fe((ne) => ({ ...ne, ready: !0 })) : b == !1 && Fe((ne) => ({ ...ne, ready: !1 })), b == !0)
|
|
@@ -14822,7 +14825,7 @@ const $i = En({}), $b = de((e, n) => {
|
|
|
14822
14825
|
const On = ae((ne, Ce) => {
|
|
14823
14826
|
ce((Xe) => ({ ...Xe, [ne]: Ce }));
|
|
14824
14827
|
}, [ge, Oe, Ae]);
|
|
14825
|
-
|
|
14828
|
+
Nt(n, () => ({
|
|
14826
14829
|
...n?.current,
|
|
14827
14830
|
...Ae,
|
|
14828
14831
|
cell: ge,
|
|
@@ -14874,12 +14877,12 @@ const $i = En({}), $b = de((e, n) => {
|
|
|
14874
14877
|
if (Ce) {
|
|
14875
14878
|
const Xe = JSON.parse(Ce);
|
|
14876
14879
|
console.log("Restoring column state on firstDataRendered:", Xe);
|
|
14877
|
-
const
|
|
14880
|
+
const Pt = ne.api.getColumnState().map((Ft) => {
|
|
14878
14881
|
const Lt = Xe[Ft.colId];
|
|
14879
14882
|
return Lt !== void 0 ? { ...Ft, hide: Lt.hide } : Ft;
|
|
14880
14883
|
});
|
|
14881
14884
|
ne.api.applyColumnState({
|
|
14882
|
-
state:
|
|
14885
|
+
state: Pt,
|
|
14883
14886
|
applyOrder: !1
|
|
14884
14887
|
});
|
|
14885
14888
|
}
|
|
@@ -15033,7 +15036,7 @@ const $i = En({}), $b = de((e, n) => {
|
|
|
15033
15036
|
/* @__PURE__ */ c.jsx(
|
|
15034
15037
|
_r,
|
|
15035
15038
|
{
|
|
15036
|
-
items: { items:
|
|
15039
|
+
items: { items: Rt },
|
|
15037
15040
|
event: fn
|
|
15038
15041
|
}
|
|
15039
15042
|
),
|
|
@@ -17977,12 +17980,12 @@ const zx = ["checked", "uncheckedIcon", "checkedIcon", "label", "defaultChecked"
|
|
|
17977
17980
|
externalForwardedProps: me,
|
|
17978
17981
|
ownerState: ge
|
|
17979
17982
|
});
|
|
17980
|
-
let
|
|
17981
|
-
return d ?
|
|
17983
|
+
let At = f;
|
|
17984
|
+
return d ? At = null : E ? At = x : Z && (At = p), /* @__PURE__ */ c.jsxs(Ae, q({}, Fe, {
|
|
17982
17985
|
children: [/* @__PURE__ */ c.jsxs(ut, q({}, kt, {
|
|
17983
17986
|
children: [/* @__PURE__ */ c.jsx(le, q({}, _t, {
|
|
17984
17987
|
children: /* @__PURE__ */ c.jsx(It, q({}, dn))
|
|
17985
|
-
})),
|
|
17988
|
+
})), At]
|
|
17986
17989
|
})), m && /* @__PURE__ */ c.jsx(ko.Provider, {
|
|
17987
17990
|
value: !0,
|
|
17988
17991
|
children: /* @__PURE__ */ c.jsx(fn, q({}, Rn, {
|
|
@@ -21693,7 +21696,7 @@ const pd = En({}), Kw = (e) => {
|
|
|
21693
21696
|
toast: l,
|
|
21694
21697
|
ready: r
|
|
21695
21698
|
}), [t, r]);
|
|
21696
|
-
return
|
|
21699
|
+
return Nt(n, () => ({
|
|
21697
21700
|
...m,
|
|
21698
21701
|
props: e
|
|
21699
21702
|
}), [m, r]), To(() => {
|