@m4l/components 9.4.35 → 9.4.36-beta-fix-682-datagrids-optimization-histories.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MFLoader.d.ts","sourceRoot":"","sources":["../../../../../../packages/components/src/components/MFLoader/MFLoader.tsx"],"names":[],"mappings":"AAYA,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAOxC,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,MAAM;QACd,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;KACpB;CACF;AAgDD;;;;;GAKG;AACH;;;;GAIG;AACH;;GAEG;AACH,wBAAgB,QAAQ,CAAC,KAAK,EAAE,aAAa,
|
|
1
|
+
{"version":3,"file":"MFLoader.d.ts","sourceRoot":"","sources":["../../../../../../packages/components/src/components/MFLoader/MFLoader.tsx"],"names":[],"mappings":"AAYA,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAOxC,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,MAAM;QACd,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;KACpB;CACF;AAgDD;;;;;GAKG;AACH;;;;GAIG;AACH;;GAEG;AACH,wBAAgB,QAAQ,CAAC,KAAK,EAAE,aAAa,oDAmL5C;AACD,eAAe,QAAQ,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as U, jsx as b } from "@emotion/react/jsx-runtime";
|
|
2
2
|
import { useState as c, useCallback as l, useEffect as m } from "react";
|
|
3
|
-
import { useNetwork as
|
|
3
|
+
import { useNetwork as j, useEnvironment as A, useHostTools as N, axiosOperation as B } from "@m4l/core";
|
|
4
4
|
import { useHostTheme as q, useFormatter as z, useLocales as G, useFirstRender as J } from "@m4l/graphics";
|
|
5
5
|
import K from "lodash-es/debounce";
|
|
6
6
|
import { ProggessLoadingMF as Q } from "./subcomponents/ProggessLoadingMF/index.js";
|
|
@@ -8,7 +8,7 @@ import { ObservableLoaderMF as V } from "./helper.js";
|
|
|
8
8
|
import { mfLoaderUtilityClasses as W } from "./classes/index.js";
|
|
9
9
|
import { LoadingError as X } from "../LoadingError/LoadingError.js";
|
|
10
10
|
import { MFLoaderRoot as Y } from "./styles.js";
|
|
11
|
-
function
|
|
11
|
+
function v(d, o) {
|
|
12
12
|
const e = `${Math.round((/* @__PURE__ */ new Date()).getTime() / 1e3)}_rnd_${Math.round(
|
|
13
13
|
Math.random() * 1e3
|
|
14
14
|
)}`;
|
|
@@ -30,13 +30,13 @@ function h(d, o) {
|
|
|
30
30
|
};
|
|
31
31
|
}
|
|
32
32
|
function lo(d) {
|
|
33
|
-
const { prefix: o, moduleId: e, cache:
|
|
33
|
+
const { prefix: o, moduleId: e, cache: h = !0, debugPort: u, dynamicMFStore: g, windowTools: I, emergeType: L, loggedUser: _ } = d, { hostThemeOptions: f, fnComponentsOverrides: F } = q(), { networkOperation: M } = j(), a = A(), y = N(), $ = z(), [i, w] = c("progress"), [C, T] = c(-1), [s, O] = c(v(o, e)), { currentLocale: p } = G(), x = W(), D = J([e]), E = a.isLocalhost ? `https://localhost:${u}` : `https://${window.location.host}/mf/${e}`;
|
|
34
34
|
function P(t) {
|
|
35
35
|
try {
|
|
36
36
|
window[`unmount_${o}_${t.moduleId}`] && window[`unmount_${o}_${t.moduleId}`](t.divContainerId);
|
|
37
37
|
} catch {
|
|
38
38
|
}
|
|
39
|
-
if (!
|
|
39
|
+
if (!h) {
|
|
40
40
|
const r = document.getElementById(t.scriptId);
|
|
41
41
|
if (r)
|
|
42
42
|
try {
|
|
@@ -72,7 +72,7 @@ function lo(d) {
|
|
|
72
72
|
), k = l(
|
|
73
73
|
K(
|
|
74
74
|
(t) => {
|
|
75
|
-
const r =
|
|
75
|
+
const r = v(o, t);
|
|
76
76
|
t !== s.moduleId && O({ ...r });
|
|
77
77
|
},
|
|
78
78
|
200
|
|
@@ -81,12 +81,12 @@ function lo(d) {
|
|
|
81
81
|
);
|
|
82
82
|
m(() => (D || (k(e + ""), s.moduleId), () => {
|
|
83
83
|
}), [e]);
|
|
84
|
-
const
|
|
84
|
+
const H = l(() => {
|
|
85
85
|
window[`observable_${o}_${e}`]?.tryAgain();
|
|
86
86
|
}, []);
|
|
87
87
|
return m(() => {
|
|
88
|
-
const t = { ...s }, r = (n,
|
|
89
|
-
T(
|
|
88
|
+
const t = { ...s }, r = (n, R) => {
|
|
89
|
+
T(R), w(n);
|
|
90
90
|
};
|
|
91
91
|
if (window[`render_${o}_${e}`])
|
|
92
92
|
w("complete");
|
|
@@ -104,12 +104,12 @@ function lo(d) {
|
|
|
104
104
|
};
|
|
105
105
|
}, [s]), m(() => {
|
|
106
106
|
i === "complete" && S(s);
|
|
107
|
-
}, [i]), /* @__PURE__ */
|
|
107
|
+
}, [i]), /* @__PURE__ */ U(Y, { id: s.divContainerId, className: x.root, children: [
|
|
108
108
|
i === "progress" ? /* @__PURE__ */ b(Q, { loadingProgress: C }) : (
|
|
109
109
|
// <div>{networkProgress}</div>
|
|
110
110
|
null
|
|
111
111
|
),
|
|
112
|
-
i === "error" ? /* @__PURE__ */ b(X, { status: i, action:
|
|
112
|
+
i === "error" ? /* @__PURE__ */ b(X, { status: i, action: H }) : (
|
|
113
113
|
// <div>{networkProgress}</div>
|
|
114
114
|
null
|
|
115
115
|
)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@m4l/components",
|
|
3
|
-
"version": "9.4.
|
|
3
|
+
"version": "9.4.36-beta-fix-682-datagrids-optimization-histories.0",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -52,19 +52,19 @@
|
|
|
52
52
|
"react-toastify": "10.0.5",
|
|
53
53
|
"date-fns": "^2.30.0",
|
|
54
54
|
"react-transition-group": "^4.4.5",
|
|
55
|
-
"react-rnd": "^10.5.2",
|
|
56
55
|
"react-draggable": "^4.4.5",
|
|
57
|
-
"react-
|
|
58
|
-
"@mui/x-date-pickers": "6.20.2",
|
|
59
|
-
"react-spinners": "^0.13.8",
|
|
56
|
+
"react-rnd": "^10.5.2",
|
|
60
57
|
"react-data-grid": "7.0.0-beta.47",
|
|
61
58
|
"react-dnd": "^16.0.1",
|
|
62
59
|
"react-dnd-html5-backend": "^16.0.1",
|
|
60
|
+
"react-color": "^2.19.3",
|
|
61
|
+
"@mui/x-date-pickers": "6.20.2",
|
|
62
|
+
"react-spinners": "^0.13.8",
|
|
63
63
|
"react-resizable": "^3.0.4",
|
|
64
64
|
"chart.js": "^4.4.0",
|
|
65
65
|
"chartjs-chart-error-bars": "^4.3.3",
|
|
66
66
|
"qrcode.react": "^3.1.0",
|
|
67
|
-
"
|
|
68
|
-
"react
|
|
67
|
+
"react-resizable-panels": "^2.1.8",
|
|
68
|
+
"simplebar-react": "3.2.6"
|
|
69
69
|
}
|
|
70
70
|
}
|