@gisce/react-ooui 1.2.0-rc.74 → 1.2.0-rc.76
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/actionbar/ChangeViewButton.d.ts.map +1 -1
- package/dist/context/ContentRootContext.d.ts.map +1 -1
- package/dist/react-ooui.es.js +403 -355
- package/dist/react-ooui.es.js.map +1 -1
- package/dist/react-ooui.umd.js +13 -13
- package/dist/react-ooui.umd.js.map +1 -1
- package/dist/widgets/custom/Markdown.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/actionbar/ChangeViewButton.tsx +1 -3
- package/src/context/ContentRootContext.tsx +64 -28
- package/src/stories/Label.stories.tsx +2 -2
- package/src/widgets/base/Label.tsx +2 -2
- package/src/widgets/custom/Markdown.tsx +6 -3
package/dist/react-ooui.es.js
CHANGED
|
@@ -39,7 +39,7 @@ const {
|
|
|
39
39
|
fieldForLabel: s,
|
|
40
40
|
labelSize: u,
|
|
41
41
|
labelType: l
|
|
42
|
-
} = t, d = s !== null && a.length > 1 ? a + " :" : a, p = r || (s ? n ? "left" : "right" : "left"), g = u ===
|
|
42
|
+
} = t, d = s !== null && a.length > 1 ? a + " :" : a, p = r || (s ? n ? "left" : "right" : "left"), g = u === void 0 ? Text$3 : Title$4;
|
|
43
43
|
return /* @__PURE__ */ jsxs("div", {
|
|
44
44
|
className: `flex flex-row items-center pb-1 pt-1 ${alignClass[p]}`,
|
|
45
45
|
children: [o && /* @__PURE__ */ jsx(Tooltip$2, {
|
|
@@ -50,7 +50,7 @@ const {
|
|
|
50
50
|
}), /* @__PURE__ */ jsx("span", {
|
|
51
51
|
className: "pr-2",
|
|
52
52
|
children: /* @__PURE__ */ jsx(g, {
|
|
53
|
-
level: u
|
|
53
|
+
level: u,
|
|
54
54
|
type: l,
|
|
55
55
|
children: /* @__PURE__ */ jsx(Interweave, {
|
|
56
56
|
content: d
|
|
@@ -1335,7 +1335,7 @@ function requireReactIs_development() {
|
|
|
1335
1335
|
}
|
|
1336
1336
|
}
|
|
1337
1337
|
var C = l, w = c, D = u, $ = s, S = t, P = d, M = n, A = m, O = g, N = r, F = o, k = a, j = f, V = !1;
|
|
1338
|
-
function
|
|
1338
|
+
function Y(T) {
|
|
1339
1339
|
return V || (V = !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(T) || b(T) === l;
|
|
1340
1340
|
}
|
|
1341
1341
|
function W(T) {
|
|
@@ -1347,7 +1347,7 @@ function requireReactIs_development() {
|
|
|
1347
1347
|
function U(T) {
|
|
1348
1348
|
return b(T) === s;
|
|
1349
1349
|
}
|
|
1350
|
-
function
|
|
1350
|
+
function H(T) {
|
|
1351
1351
|
return typeof T == "object" && T !== null && T.$$typeof === t;
|
|
1352
1352
|
}
|
|
1353
1353
|
function G(T) {
|
|
@@ -1374,7 +1374,7 @@ function requireReactIs_development() {
|
|
|
1374
1374
|
function E(T) {
|
|
1375
1375
|
return b(T) === f;
|
|
1376
1376
|
}
|
|
1377
|
-
reactIs_development.AsyncMode = C, reactIs_development.ConcurrentMode = w, reactIs_development.ContextConsumer = D, reactIs_development.ContextProvider = $, reactIs_development.Element = S, reactIs_development.ForwardRef = P, reactIs_development.Fragment = M, reactIs_development.Lazy = A, reactIs_development.Memo = O, reactIs_development.Portal = N, reactIs_development.Profiler = F, reactIs_development.StrictMode = k, reactIs_development.Suspense = j, reactIs_development.isAsyncMode =
|
|
1377
|
+
reactIs_development.AsyncMode = C, reactIs_development.ConcurrentMode = w, reactIs_development.ContextConsumer = D, reactIs_development.ContextProvider = $, reactIs_development.Element = S, reactIs_development.ForwardRef = P, reactIs_development.Fragment = M, reactIs_development.Lazy = A, reactIs_development.Memo = O, reactIs_development.Portal = N, reactIs_development.Profiler = F, reactIs_development.StrictMode = k, reactIs_development.Suspense = j, reactIs_development.isAsyncMode = Y, reactIs_development.isConcurrentMode = W, reactIs_development.isContextConsumer = L, reactIs_development.isContextProvider = U, reactIs_development.isElement = H, reactIs_development.isForwardRef = G, reactIs_development.isFragment = B, reactIs_development.isLazy = I, reactIs_development.isMemo = q, reactIs_development.isPortal = K, reactIs_development.isProfiler = Q, reactIs_development.isStrictMode = X, reactIs_development.isSuspense = E, reactIs_development.isValidElementType = _, reactIs_development.typeOf = b;
|
|
1378
1378
|
}()), reactIs_development;
|
|
1379
1379
|
}
|
|
1380
1380
|
(function(e) {
|
|
@@ -1973,24 +1973,24 @@ var _excluded$7 = ["prefixCls", "onPressEnter", "defaultValue", "value", "autoSi
|
|
|
1973
1973
|
} else
|
|
1974
1974
|
S();
|
|
1975
1975
|
}, [A]);
|
|
1976
|
-
var
|
|
1977
|
-
wrapperRaf.cancel(
|
|
1976
|
+
var Y = React$n.useRef(), W = function() {
|
|
1977
|
+
wrapperRaf.cancel(Y.current);
|
|
1978
1978
|
}, L = function(B) {
|
|
1979
|
-
A === RESIZE_STABLE && (u == null || u(B), s && (W(),
|
|
1979
|
+
A === RESIZE_STABLE && (u == null || u(B), s && (W(), Y.current = wrapperRaf(function() {
|
|
1980
1980
|
V();
|
|
1981
1981
|
})));
|
|
1982
1982
|
};
|
|
1983
1983
|
React$n.useEffect(function() {
|
|
1984
1984
|
return W;
|
|
1985
1985
|
}, []);
|
|
1986
|
-
var U = $ ? k : null,
|
|
1987
|
-
return (A === RESIZE_START || A === RESIZE_MEASURING) && (
|
|
1986
|
+
var U = $ ? k : null, H = _objectSpread2$g(_objectSpread2$g({}, c), U);
|
|
1987
|
+
return (A === RESIZE_START || A === RESIZE_MEASURING) && (H.overflowY = "hidden", H.overflowX = "hidden"), /* @__PURE__ */ jsx(ResizeObserver, {
|
|
1988
1988
|
onResize: L,
|
|
1989
1989
|
disabled: !(s || u),
|
|
1990
1990
|
children: /* @__PURE__ */ jsx("textarea", {
|
|
1991
1991
|
...g,
|
|
1992
1992
|
ref: _,
|
|
1993
|
-
style:
|
|
1993
|
+
style: H,
|
|
1994
1994
|
className: classNames(n, l, _defineProperty$1({}, "".concat(n, "-disabled"), d)),
|
|
1995
1995
|
disabled: d,
|
|
1996
1996
|
value: x,
|
|
@@ -2315,31 +2315,31 @@ function _regeneratorRuntime() {
|
|
|
2315
2315
|
});
|
|
2316
2316
|
}
|
|
2317
2317
|
function b(A, O) {
|
|
2318
|
-
function N(k, j, V,
|
|
2318
|
+
function N(k, j, V, Y) {
|
|
2319
2319
|
var W = d(A[k], A, j);
|
|
2320
2320
|
if (W.type !== "throw") {
|
|
2321
2321
|
var L = W.arg, U = L.value;
|
|
2322
|
-
return U && _typeof$2(U) == "object" && r.call(U, "__await") ? O.resolve(U.__await).then(function(
|
|
2323
|
-
N("next",
|
|
2324
|
-
}, function(
|
|
2325
|
-
N("throw",
|
|
2326
|
-
}) : O.resolve(U).then(function(
|
|
2327
|
-
L.value =
|
|
2328
|
-
}, function(
|
|
2329
|
-
return N("throw",
|
|
2322
|
+
return U && _typeof$2(U) == "object" && r.call(U, "__await") ? O.resolve(U.__await).then(function(H) {
|
|
2323
|
+
N("next", H, V, Y);
|
|
2324
|
+
}, function(H) {
|
|
2325
|
+
N("throw", H, V, Y);
|
|
2326
|
+
}) : O.resolve(U).then(function(H) {
|
|
2327
|
+
L.value = H, V(L);
|
|
2328
|
+
}, function(H) {
|
|
2329
|
+
return N("throw", H, V, Y);
|
|
2330
2330
|
});
|
|
2331
2331
|
}
|
|
2332
|
-
|
|
2332
|
+
Y(W.arg);
|
|
2333
2333
|
}
|
|
2334
2334
|
var F;
|
|
2335
2335
|
n(this, "_invoke", {
|
|
2336
2336
|
value: function(j, V) {
|
|
2337
|
-
function
|
|
2337
|
+
function Y() {
|
|
2338
2338
|
return new O(function(W, L) {
|
|
2339
2339
|
N(j, V, W, L);
|
|
2340
2340
|
});
|
|
2341
2341
|
}
|
|
2342
|
-
return F = F ? F.then(
|
|
2342
|
+
return F = F ? F.then(Y, Y) : Y();
|
|
2343
2343
|
}
|
|
2344
2344
|
});
|
|
2345
2345
|
}
|
|
@@ -2356,11 +2356,11 @@ function _regeneratorRuntime() {
|
|
|
2356
2356
|
for (N.method = k, N.arg = j; ; ) {
|
|
2357
2357
|
var V = N.delegate;
|
|
2358
2358
|
if (V) {
|
|
2359
|
-
var
|
|
2360
|
-
if (
|
|
2361
|
-
if (
|
|
2359
|
+
var Y = w(V, N);
|
|
2360
|
+
if (Y) {
|
|
2361
|
+
if (Y === f)
|
|
2362
2362
|
continue;
|
|
2363
|
-
return
|
|
2363
|
+
return Y;
|
|
2364
2364
|
}
|
|
2365
2365
|
}
|
|
2366
2366
|
if (N.method === "next")
|
|
@@ -2508,13 +2508,13 @@ function _regeneratorRuntime() {
|
|
|
2508
2508
|
if (j.tryLoc === "root")
|
|
2509
2509
|
return F("end");
|
|
2510
2510
|
if (j.tryLoc <= this.prev) {
|
|
2511
|
-
var
|
|
2512
|
-
if (
|
|
2511
|
+
var Y = r.call(j, "catchLoc"), W = r.call(j, "finallyLoc");
|
|
2512
|
+
if (Y && W) {
|
|
2513
2513
|
if (this.prev < j.catchLoc)
|
|
2514
2514
|
return F(j.catchLoc, !0);
|
|
2515
2515
|
if (this.prev < j.finallyLoc)
|
|
2516
2516
|
return F(j.finallyLoc);
|
|
2517
|
-
} else if (
|
|
2517
|
+
} else if (Y) {
|
|
2518
2518
|
if (this.prev < j.catchLoc)
|
|
2519
2519
|
return F(j.catchLoc, !0);
|
|
2520
2520
|
} else {
|
|
@@ -4509,7 +4509,7 @@ var FormContext$1 = /* @__PURE__ */ React$n.createContext({
|
|
|
4509
4509
|
onValuesChange: m,
|
|
4510
4510
|
onFieldsChange: function(U) {
|
|
4511
4511
|
if (_.triggerFormChange(n, U), y) {
|
|
4512
|
-
for (var
|
|
4512
|
+
for (var H = arguments.length, G = new Array(H > 1 ? H - 1 : 0), B = 1; B < H; B++)
|
|
4513
4513
|
G[B - 1] = arguments[B];
|
|
4514
4514
|
y.apply(void 0, [U].concat(G));
|
|
4515
4515
|
}
|
|
@@ -4537,12 +4537,12 @@ var FormContext$1 = /* @__PURE__ */ React$n.createContext({
|
|
|
4537
4537
|
React$n.useEffect(function() {
|
|
4538
4538
|
isSimilar(V.current || [], o || []) || w.setFields(o || []), V.current = o;
|
|
4539
4539
|
}, [o, w]);
|
|
4540
|
-
var
|
|
4540
|
+
var Y = React$n.useMemo(function() {
|
|
4541
4541
|
return _objectSpread2$g(_objectSpread2$g({}, w), {}, {
|
|
4542
4542
|
validateTrigger: g
|
|
4543
4543
|
});
|
|
4544
4544
|
}, [w, g]), W = /* @__PURE__ */ jsx(Context.Provider, {
|
|
4545
|
-
value:
|
|
4545
|
+
value: Y,
|
|
4546
4546
|
children: F
|
|
4547
4547
|
});
|
|
4548
4548
|
return d === !1 ? W : /* @__PURE__ */ jsx(d, {
|
|
@@ -4551,8 +4551,8 @@ var FormContext$1 = /* @__PURE__ */ React$n.createContext({
|
|
|
4551
4551
|
U.preventDefault(), U.stopPropagation(), w.submit();
|
|
4552
4552
|
},
|
|
4553
4553
|
onReset: function(U) {
|
|
4554
|
-
var
|
|
4555
|
-
U.preventDefault(), w.resetFields(), (
|
|
4554
|
+
var H;
|
|
4555
|
+
U.preventDefault(), w.resetFields(), (H = v.onReset) === null || H === void 0 || H.call(v, U);
|
|
4556
4556
|
},
|
|
4557
4557
|
children: W
|
|
4558
4558
|
});
|
|
@@ -6263,7 +6263,7 @@ function requireAntdIcon() {
|
|
|
6263
6263
|
var F = C ? {
|
|
6264
6264
|
msTransform: "rotate(".concat(C, "deg)"),
|
|
6265
6265
|
transform: "rotate(".concat(C, "deg)")
|
|
6266
|
-
} : void 0, k = (0, f.normalizeTwoToneColors)($), j = (0, n.default)(k, 2), V = j[0],
|
|
6266
|
+
} : void 0, k = (0, f.normalizeTwoToneColors)($), j = (0, n.default)(k, 2), V = j[0], Y = j[1];
|
|
6267
6267
|
return /* @__PURE__ */ s.createElement("span", (0, r.default)((0, r.default)({
|
|
6268
6268
|
role: "img",
|
|
6269
6269
|
"aria-label": _.name
|
|
@@ -6275,7 +6275,7 @@ function requireAntdIcon() {
|
|
|
6275
6275
|
}), /* @__PURE__ */ s.createElement(c.default, {
|
|
6276
6276
|
icon: _,
|
|
6277
6277
|
primaryColor: V,
|
|
6278
|
-
secondaryColor:
|
|
6278
|
+
secondaryColor: Y,
|
|
6279
6279
|
style: F
|
|
6280
6280
|
}));
|
|
6281
6281
|
});
|
|
@@ -6620,13 +6620,13 @@ const useStepQueue = function(e, t) {
|
|
|
6620
6620
|
}, []), [o, a];
|
|
6621
6621
|
};
|
|
6622
6622
|
function useStatus(e, t, r, n) {
|
|
6623
|
-
var a = n.motionEnter, o = a === void 0 ? !0 : a, s = n.motionAppear, u = s === void 0 ? !0 : s, l = n.motionLeave, c = l === void 0 ? !0 : l, d = n.motionDeadline, f = n.motionLeaveImmediately, p = n.onAppearPrepare, g = n.onEnterPrepare, m = n.onLeavePrepare, y = n.onAppearStart, x = n.onEnterStart, h = n.onLeaveStart, v = n.onAppearActive, _ = n.onEnterActive, b = n.onLeaveActive, C = n.onAppearEnd, w = n.onEnterEnd, D = n.onLeaveEnd, $ = n.onVisibleChanged, S = useSafeState$1(), P = _slicedToArray(S, 2), M = P[0], A = P[1], O = useSafeState$1(STATUS_NONE), N = _slicedToArray(O, 2), F = N[0], k = N[1], j = useSafeState$1(null), V = _slicedToArray(j, 2),
|
|
6624
|
-
function
|
|
6623
|
+
var a = n.motionEnter, o = a === void 0 ? !0 : a, s = n.motionAppear, u = s === void 0 ? !0 : s, l = n.motionLeave, c = l === void 0 ? !0 : l, d = n.motionDeadline, f = n.motionLeaveImmediately, p = n.onAppearPrepare, g = n.onEnterPrepare, m = n.onLeavePrepare, y = n.onAppearStart, x = n.onEnterStart, h = n.onLeaveStart, v = n.onAppearActive, _ = n.onEnterActive, b = n.onLeaveActive, C = n.onAppearEnd, w = n.onEnterEnd, D = n.onLeaveEnd, $ = n.onVisibleChanged, S = useSafeState$1(), P = _slicedToArray(S, 2), M = P[0], A = P[1], O = useSafeState$1(STATUS_NONE), N = _slicedToArray(O, 2), F = N[0], k = N[1], j = useSafeState$1(null), V = _slicedToArray(j, 2), Y = V[0], W = V[1], L = useRef(!1), U = useRef(null);
|
|
6624
|
+
function H() {
|
|
6625
6625
|
return r();
|
|
6626
6626
|
}
|
|
6627
6627
|
var G = useRef(!1);
|
|
6628
6628
|
function B(te) {
|
|
6629
|
-
var re =
|
|
6629
|
+
var re = H();
|
|
6630
6630
|
if (!(te && !te.deadline && te.target !== re)) {
|
|
6631
6631
|
var se = G.current, _e;
|
|
6632
6632
|
F === STATUS_APPEAR && se ? _e = C == null ? void 0 : C(re, te) : F === STATUS_ENTER && se ? _e = w == null ? void 0 : w(re, te) : F === STATUS_LEAVE && se && (_e = D == null ? void 0 : D(re, te)), F !== STATUS_NONE && se && _e !== !1 && (k(STATUS_NONE, !0), W(null, !0));
|
|
@@ -6647,13 +6647,13 @@ function useStatus(e, t, r, n) {
|
|
|
6647
6647
|
}, [F]), X = useStepQueue(F, function(te) {
|
|
6648
6648
|
if (te === STEP_PREPARE) {
|
|
6649
6649
|
var re = Q[STEP_PREPARE];
|
|
6650
|
-
return re ? re(
|
|
6650
|
+
return re ? re(H()) : SkipStep;
|
|
6651
6651
|
}
|
|
6652
6652
|
if (z in Q) {
|
|
6653
6653
|
var se;
|
|
6654
|
-
W(((se = Q[z]) === null || se === void 0 ? void 0 : se.call(Q,
|
|
6654
|
+
W(((se = Q[z]) === null || se === void 0 ? void 0 : se.call(Q, H(), null)) || null);
|
|
6655
6655
|
}
|
|
6656
|
-
return z === STEP_ACTIVE && (K(
|
|
6656
|
+
return z === STEP_ACTIVE && (K(H()), d > 0 && (clearTimeout(U.current), U.current = setTimeout(function() {
|
|
6657
6657
|
B({
|
|
6658
6658
|
deadline: !0
|
|
6659
6659
|
});
|
|
@@ -6677,7 +6677,7 @@ function useStatus(e, t, r, n) {
|
|
|
6677
6677
|
useEffect(function() {
|
|
6678
6678
|
M && (ee.current = !0), M !== void 0 && F === STATUS_NONE && ((ee.current || M) && ($ == null || $(M)), ee.current = !0);
|
|
6679
6679
|
}, [M, F]);
|
|
6680
|
-
var J =
|
|
6680
|
+
var J = Y;
|
|
6681
6681
|
return Q[STEP_PREPARE] && z === STEP_START && (J = _objectSpread2$g({
|
|
6682
6682
|
transition: "none"
|
|
6683
6683
|
}, J)), [F, z, J, M != null ? M : t];
|
|
@@ -7433,8 +7433,8 @@ function requireUseMessage() {
|
|
|
7433
7433
|
rootPrefixCls: M,
|
|
7434
7434
|
getPopupContainer: y
|
|
7435
7435
|
}), function(j) {
|
|
7436
|
-
var V = j.prefixCls,
|
|
7437
|
-
x =
|
|
7436
|
+
var V = j.prefixCls, Y = j.instance;
|
|
7437
|
+
x = Y, b(f((0, n.default)((0, n.default)({}, $), {
|
|
7438
7438
|
key: A,
|
|
7439
7439
|
onClose: k
|
|
7440
7440
|
}), V));
|
|
@@ -7474,7 +7474,7 @@ function requireMessage() {
|
|
|
7474
7474
|
L.top !== void 0 && (h = L.top, y = null), L.duration !== void 0 && (x = L.duration), L.prefixCls !== void 0 && (_ = L.prefixCls), L.getContainer !== void 0 && (w = L.getContainer, y = null), L.transitionName !== void 0 && (b = L.transitionName, y = null, C = !0), L.maxCount !== void 0 && (D = L.maxCount, y = null), L.rtl !== void 0 && ($ = L.rtl);
|
|
7475
7475
|
}
|
|
7476
7476
|
function M(L, U) {
|
|
7477
|
-
var
|
|
7477
|
+
var H = L.prefixCls, G = L.getPopupContainer, B = (0, g.globalConfig)(), I = B.getPrefixCls, q = B.getRootPrefixCls, K = B.getIconPrefixCls, Q = I("message", H || _), X = q(L.rootPrefixCls, Q), E = K();
|
|
7478
7478
|
if (y) {
|
|
7479
7479
|
U({
|
|
7480
7480
|
prefixCls: Q,
|
|
@@ -7519,7 +7519,7 @@ function requireMessage() {
|
|
|
7519
7519
|
loading: c.default
|
|
7520
7520
|
}, O = Object.keys(A);
|
|
7521
7521
|
e.typeList = O;
|
|
7522
|
-
function N(L, U,
|
|
7522
|
+
function N(L, U, H) {
|
|
7523
7523
|
var G, B = L.duration !== void 0 ? L.duration : x, I = A[L.type], q = (0, d.default)("".concat(U, "-custom-content"), (G = {}, (0, a.default)(G, "".concat(U, "-").concat(L.type), L.type), (0, a.default)(G, "".concat(U, "-rtl"), $ === !0), G));
|
|
7524
7524
|
return {
|
|
7525
7525
|
key: L.key,
|
|
@@ -7527,7 +7527,7 @@ function requireMessage() {
|
|
|
7527
7527
|
style: L.style || {},
|
|
7528
7528
|
className: L.className,
|
|
7529
7529
|
content: /* @__PURE__ */ p.createElement(g.default, {
|
|
7530
|
-
iconPrefixCls:
|
|
7530
|
+
iconPrefixCls: H
|
|
7531
7531
|
}, /* @__PURE__ */ p.createElement("div", {
|
|
7532
7532
|
className: q
|
|
7533
7533
|
}, L.icon || I && /* @__PURE__ */ p.createElement(I, null), /* @__PURE__ */ p.createElement("span", null, L.content))),
|
|
@@ -7536,7 +7536,7 @@ function requireMessage() {
|
|
|
7536
7536
|
};
|
|
7537
7537
|
}
|
|
7538
7538
|
function F(L) {
|
|
7539
|
-
var U = L.key || S(),
|
|
7539
|
+
var U = L.key || S(), H = new Promise(function(B) {
|
|
7540
7540
|
var I = function() {
|
|
7541
7541
|
return typeof L.onClose == "function" && L.onClose(), B(!0);
|
|
7542
7542
|
};
|
|
@@ -7551,8 +7551,8 @@ function requireMessage() {
|
|
|
7551
7551
|
y && y.removeNotice(U);
|
|
7552
7552
|
};
|
|
7553
7553
|
return G.then = function(B, I) {
|
|
7554
|
-
return
|
|
7555
|
-
}, G.promise =
|
|
7554
|
+
return H.then(B, I);
|
|
7555
|
+
}, G.promise = H, G;
|
|
7556
7556
|
}
|
|
7557
7557
|
function k(L) {
|
|
7558
7558
|
return Object.prototype.toString.call(L) === "[object Object]" && !!L.content;
|
|
@@ -7563,7 +7563,7 @@ function requireMessage() {
|
|
|
7563
7563
|
destroy: function(U) {
|
|
7564
7564
|
if (y)
|
|
7565
7565
|
if (U) {
|
|
7566
|
-
var
|
|
7566
|
+
var H = y, G = H.removeNotice;
|
|
7567
7567
|
G(U);
|
|
7568
7568
|
} else {
|
|
7569
7569
|
var B = y, I = B.destroy;
|
|
@@ -7572,11 +7572,11 @@ function requireMessage() {
|
|
|
7572
7572
|
}
|
|
7573
7573
|
};
|
|
7574
7574
|
function V(L, U) {
|
|
7575
|
-
L[U] = function(
|
|
7576
|
-
return k(
|
|
7575
|
+
L[U] = function(H, G, B) {
|
|
7576
|
+
return k(H) ? L.open((0, n.default)((0, n.default)({}, H), {
|
|
7577
7577
|
type: U
|
|
7578
7578
|
})) : (typeof G == "function" && (B = G, G = void 0), L.open({
|
|
7579
|
-
content:
|
|
7579
|
+
content: H,
|
|
7580
7580
|
duration: G,
|
|
7581
7581
|
type: U,
|
|
7582
7582
|
onClose: B
|
|
@@ -7586,10 +7586,10 @@ function requireMessage() {
|
|
|
7586
7586
|
O.forEach(function(L) {
|
|
7587
7587
|
return V(j, L);
|
|
7588
7588
|
}), j.warn = j.warning, j.useMessage = (0, m.default)(M, N);
|
|
7589
|
-
var
|
|
7589
|
+
var Y = function() {
|
|
7590
7590
|
return process.env.NODE_ENV === "test" ? y : null;
|
|
7591
7591
|
};
|
|
7592
|
-
e.getInstance =
|
|
7592
|
+
e.getInstance = Y;
|
|
7593
7593
|
var W = j;
|
|
7594
7594
|
e.default = W;
|
|
7595
7595
|
}(message)), message;
|
|
@@ -7615,12 +7615,12 @@ var notification = {}, regeneratorRuntime = { exports: {} };
|
|
|
7615
7615
|
try {
|
|
7616
7616
|
f({}, "");
|
|
7617
7617
|
} catch {
|
|
7618
|
-
f = function(j, V,
|
|
7619
|
-
return j[V] =
|
|
7618
|
+
f = function(j, V, Y) {
|
|
7619
|
+
return j[V] = Y;
|
|
7620
7620
|
};
|
|
7621
7621
|
}
|
|
7622
7622
|
function p(F, k, j, V) {
|
|
7623
|
-
var
|
|
7623
|
+
var Y = k && k.prototype instanceof y ? k : y, W = Object.create(Y.prototype), L = new A(V || []);
|
|
7624
7624
|
return s(W, "_invoke", {
|
|
7625
7625
|
value: $(F, j, L)
|
|
7626
7626
|
}), W;
|
|
@@ -7661,10 +7661,10 @@ var notification = {}, regeneratorRuntime = { exports: {} };
|
|
|
7661
7661
|
});
|
|
7662
7662
|
}
|
|
7663
7663
|
function D(F, k) {
|
|
7664
|
-
function j(
|
|
7665
|
-
var
|
|
7666
|
-
if (
|
|
7667
|
-
var G =
|
|
7664
|
+
function j(Y, W, L, U) {
|
|
7665
|
+
var H = g(F[Y], F, W);
|
|
7666
|
+
if (H.type !== "throw") {
|
|
7667
|
+
var G = H.arg, B = G.value;
|
|
7668
7668
|
return B && t(B) == "object" && o.call(B, "__await") ? k.resolve(B.__await).then(function(I) {
|
|
7669
7669
|
j("next", I, L, U);
|
|
7670
7670
|
}, function(I) {
|
|
@@ -7675,14 +7675,14 @@ var notification = {}, regeneratorRuntime = { exports: {} };
|
|
|
7675
7675
|
return j("throw", I, L, U);
|
|
7676
7676
|
});
|
|
7677
7677
|
}
|
|
7678
|
-
U(
|
|
7678
|
+
U(H.arg);
|
|
7679
7679
|
}
|
|
7680
7680
|
var V;
|
|
7681
7681
|
s(this, "_invoke", {
|
|
7682
7682
|
value: function(W, L) {
|
|
7683
7683
|
function U() {
|
|
7684
|
-
return new k(function(
|
|
7685
|
-
j(W, L,
|
|
7684
|
+
return new k(function(H, G) {
|
|
7685
|
+
j(W, L, H, G);
|
|
7686
7686
|
});
|
|
7687
7687
|
}
|
|
7688
7688
|
return V = V ? V.then(U, U) : U();
|
|
@@ -7691,15 +7691,15 @@ var notification = {}, regeneratorRuntime = { exports: {} };
|
|
|
7691
7691
|
}
|
|
7692
7692
|
function $(F, k, j) {
|
|
7693
7693
|
var V = "suspendedStart";
|
|
7694
|
-
return function(
|
|
7694
|
+
return function(Y, W) {
|
|
7695
7695
|
if (V === "executing")
|
|
7696
7696
|
throw new Error("Generator is already running");
|
|
7697
7697
|
if (V === "completed") {
|
|
7698
|
-
if (
|
|
7698
|
+
if (Y === "throw")
|
|
7699
7699
|
throw W;
|
|
7700
7700
|
return N();
|
|
7701
7701
|
}
|
|
7702
|
-
for (j.method =
|
|
7702
|
+
for (j.method = Y, j.arg = W; ; ) {
|
|
7703
7703
|
var L = j.delegate;
|
|
7704
7704
|
if (L) {
|
|
7705
7705
|
var U = S(L, j);
|
|
@@ -7718,16 +7718,16 @@ var notification = {}, regeneratorRuntime = { exports: {} };
|
|
|
7718
7718
|
} else
|
|
7719
7719
|
j.method === "return" && j.abrupt("return", j.arg);
|
|
7720
7720
|
V = "executing";
|
|
7721
|
-
var
|
|
7722
|
-
if (
|
|
7723
|
-
if (V = j.done ? "completed" : "suspendedYield",
|
|
7721
|
+
var H = g(F, k, j);
|
|
7722
|
+
if (H.type === "normal") {
|
|
7723
|
+
if (V = j.done ? "completed" : "suspendedYield", H.arg === m)
|
|
7724
7724
|
continue;
|
|
7725
7725
|
return {
|
|
7726
|
-
value:
|
|
7726
|
+
value: H.arg,
|
|
7727
7727
|
done: j.done
|
|
7728
7728
|
};
|
|
7729
7729
|
}
|
|
7730
|
-
|
|
7730
|
+
H.type === "throw" && (V = "completed", j.method = "throw", j.arg = H.arg);
|
|
7731
7731
|
}
|
|
7732
7732
|
};
|
|
7733
7733
|
}
|
|
@@ -7744,8 +7744,8 @@ var notification = {}, regeneratorRuntime = { exports: {} };
|
|
|
7744
7744
|
var V = g(j, F.iterator, k.arg);
|
|
7745
7745
|
if (V.type === "throw")
|
|
7746
7746
|
return k.method = "throw", k.arg = V.arg, k.delegate = null, m;
|
|
7747
|
-
var
|
|
7748
|
-
return
|
|
7747
|
+
var Y = V.arg;
|
|
7748
|
+
return Y ? Y.done ? (k[F.resultName] = Y.value, k.next = F.nextLoc, k.method !== "return" && (k.method = "next", k.arg = void 0), k.delegate = null, m) : Y : (k.method = "throw", k.arg = new TypeError("iterator result is not an object"), k.delegate = null, m);
|
|
7749
7749
|
}
|
|
7750
7750
|
function P(F) {
|
|
7751
7751
|
var k = {
|
|
@@ -7770,11 +7770,11 @@ var notification = {}, regeneratorRuntime = { exports: {} };
|
|
|
7770
7770
|
if (typeof F.next == "function")
|
|
7771
7771
|
return F;
|
|
7772
7772
|
if (!isNaN(F.length)) {
|
|
7773
|
-
var j = -1, V = function
|
|
7773
|
+
var j = -1, V = function Y() {
|
|
7774
7774
|
for (; ++j < F.length; )
|
|
7775
7775
|
if (o.call(F, j))
|
|
7776
|
-
return
|
|
7777
|
-
return
|
|
7776
|
+
return Y.value = F[j], Y.done = !1, Y;
|
|
7777
|
+
return Y.value = void 0, Y.done = !0, Y;
|
|
7778
7778
|
};
|
|
7779
7779
|
return V.next = V;
|
|
7780
7780
|
}
|
|
@@ -7806,9 +7806,9 @@ var notification = {}, regeneratorRuntime = { exports: {} };
|
|
|
7806
7806
|
};
|
|
7807
7807
|
}, w(D.prototype), f(D.prototype, c, function() {
|
|
7808
7808
|
return this;
|
|
7809
|
-
}), n.AsyncIterator = D, n.async = function(F, k, j, V,
|
|
7810
|
-
|
|
7811
|
-
var W = new D(p(F, k, j, V),
|
|
7809
|
+
}), n.AsyncIterator = D, n.async = function(F, k, j, V, Y) {
|
|
7810
|
+
Y === void 0 && (Y = Promise);
|
|
7811
|
+
var W = new D(p(F, k, j, V), Y);
|
|
7812
7812
|
return n.isGeneratorFunction(k) ? W : W.next().then(function(L) {
|
|
7813
7813
|
return L.done ? L.value : W.next();
|
|
7814
7814
|
});
|
|
@@ -7820,13 +7820,13 @@ var notification = {}, regeneratorRuntime = { exports: {} };
|
|
|
7820
7820
|
var k = Object(F), j = [];
|
|
7821
7821
|
for (var V in k)
|
|
7822
7822
|
j.push(V);
|
|
7823
|
-
return j.reverse(), function
|
|
7823
|
+
return j.reverse(), function Y() {
|
|
7824
7824
|
for (; j.length; ) {
|
|
7825
7825
|
var W = j.pop();
|
|
7826
7826
|
if (W in k)
|
|
7827
|
-
return
|
|
7827
|
+
return Y.value = W, Y.done = !1, Y;
|
|
7828
7828
|
}
|
|
7829
|
-
return
|
|
7829
|
+
return Y.done = !0, Y;
|
|
7830
7830
|
};
|
|
7831
7831
|
}, n.values = O, A.prototype = {
|
|
7832
7832
|
constructor: A,
|
|
@@ -7849,13 +7849,13 @@ var notification = {}, regeneratorRuntime = { exports: {} };
|
|
|
7849
7849
|
function V(G, B) {
|
|
7850
7850
|
return L.type = "throw", L.arg = k, j.next = G, B && (j.method = "next", j.arg = void 0), !!B;
|
|
7851
7851
|
}
|
|
7852
|
-
for (var
|
|
7853
|
-
var W = this.tryEntries[
|
|
7852
|
+
for (var Y = this.tryEntries.length - 1; Y >= 0; --Y) {
|
|
7853
|
+
var W = this.tryEntries[Y], L = W.completion;
|
|
7854
7854
|
if (W.tryLoc === "root")
|
|
7855
7855
|
return V("end");
|
|
7856
7856
|
if (W.tryLoc <= this.prev) {
|
|
7857
|
-
var U = o.call(W, "catchLoc"),
|
|
7858
|
-
if (U &&
|
|
7857
|
+
var U = o.call(W, "catchLoc"), H = o.call(W, "finallyLoc");
|
|
7858
|
+
if (U && H) {
|
|
7859
7859
|
if (this.prev < W.catchLoc)
|
|
7860
7860
|
return V(W.catchLoc, !0);
|
|
7861
7861
|
if (this.prev < W.finallyLoc)
|
|
@@ -7864,7 +7864,7 @@ var notification = {}, regeneratorRuntime = { exports: {} };
|
|
|
7864
7864
|
if (this.prev < W.catchLoc)
|
|
7865
7865
|
return V(W.catchLoc, !0);
|
|
7866
7866
|
} else {
|
|
7867
|
-
if (!
|
|
7867
|
+
if (!H)
|
|
7868
7868
|
throw new Error("try statement without catch or finally");
|
|
7869
7869
|
if (this.prev < W.finallyLoc)
|
|
7870
7870
|
return V(W.finallyLoc);
|
|
@@ -7874,9 +7874,9 @@ var notification = {}, regeneratorRuntime = { exports: {} };
|
|
|
7874
7874
|
},
|
|
7875
7875
|
abrupt: function(k, j) {
|
|
7876
7876
|
for (var V = this.tryEntries.length - 1; V >= 0; --V) {
|
|
7877
|
-
var
|
|
7878
|
-
if (
|
|
7879
|
-
var W =
|
|
7877
|
+
var Y = this.tryEntries[V];
|
|
7878
|
+
if (Y.tryLoc <= this.prev && o.call(Y, "finallyLoc") && this.prev < Y.finallyLoc) {
|
|
7879
|
+
var W = Y;
|
|
7880
7880
|
break;
|
|
7881
7881
|
}
|
|
7882
7882
|
}
|
|
@@ -7900,9 +7900,9 @@ var notification = {}, regeneratorRuntime = { exports: {} };
|
|
|
7900
7900
|
for (var j = this.tryEntries.length - 1; j >= 0; --j) {
|
|
7901
7901
|
var V = this.tryEntries[j];
|
|
7902
7902
|
if (V.tryLoc === k) {
|
|
7903
|
-
var
|
|
7904
|
-
if (
|
|
7905
|
-
var W =
|
|
7903
|
+
var Y = V.completion;
|
|
7904
|
+
if (Y.type === "throw") {
|
|
7905
|
+
var W = Y.arg;
|
|
7906
7906
|
M(V);
|
|
7907
7907
|
}
|
|
7908
7908
|
return W;
|
|
@@ -8134,7 +8134,7 @@ function requireNotification() {
|
|
|
8134
8134
|
Object.defineProperty(e, "__esModule", {
|
|
8135
8135
|
value: !0
|
|
8136
8136
|
}), e.getInstance = e.default = void 0;
|
|
8137
|
-
var n = r(regeneratorRuntime.exports), a = r(_extends$1.exports), o = r(defineProperty.exports), s = r(CheckCircleOutlined$3.exports), u = r(CloseCircleOutlined$3.exports), l = r(CloseOutlined$3.exports), c = r(ExclamationCircleOutlined$3.exports), d = r(InfoCircleOutlined$3.exports), f = r(classnames.exports), p = r(require$$11$1), g = t(React__default), m = t(requireConfigProvider()), y = r(requireUseNotification()), x = function(W, L, U,
|
|
8137
|
+
var n = r(regeneratorRuntime.exports), a = r(_extends$1.exports), o = r(defineProperty.exports), s = r(CheckCircleOutlined$3.exports), u = r(CloseCircleOutlined$3.exports), l = r(CloseOutlined$3.exports), c = r(ExclamationCircleOutlined$3.exports), d = r(InfoCircleOutlined$3.exports), f = r(classnames.exports), p = r(require$$11$1), g = t(React__default), m = t(requireConfigProvider()), y = r(requireUseNotification()), x = function(W, L, U, H) {
|
|
8138
8138
|
function G(B) {
|
|
8139
8139
|
return B instanceof U ? B : new U(function(I) {
|
|
8140
8140
|
I(B);
|
|
@@ -8143,14 +8143,14 @@ function requireNotification() {
|
|
|
8143
8143
|
return new (U || (U = Promise))(function(B, I) {
|
|
8144
8144
|
function q(X) {
|
|
8145
8145
|
try {
|
|
8146
|
-
Q(
|
|
8146
|
+
Q(H.next(X));
|
|
8147
8147
|
} catch (E) {
|
|
8148
8148
|
I(E);
|
|
8149
8149
|
}
|
|
8150
8150
|
}
|
|
8151
8151
|
function K(X) {
|
|
8152
8152
|
try {
|
|
8153
|
-
Q(
|
|
8153
|
+
Q(H.throw(X));
|
|
8154
8154
|
} catch (E) {
|
|
8155
8155
|
I(E);
|
|
8156
8156
|
}
|
|
@@ -8158,18 +8158,18 @@ function requireNotification() {
|
|
|
8158
8158
|
function Q(X) {
|
|
8159
8159
|
X.done ? B(X.value) : G(X.value).then(q, K);
|
|
8160
8160
|
}
|
|
8161
|
-
Q((
|
|
8161
|
+
Q((H = H.apply(W, L || [])).next());
|
|
8162
8162
|
});
|
|
8163
8163
|
}, h = {}, v = 4.5, _ = 24, b = 24, C = "", w = "topRight", D, $, S = !1, P;
|
|
8164
8164
|
function M(W) {
|
|
8165
|
-
var L = W.duration, U = W.placement,
|
|
8166
|
-
q !== void 0 && (C = q), L !== void 0 && (v = L), U !== void 0 ? w = U : W.rtl && (w = "topLeft"),
|
|
8165
|
+
var L = W.duration, U = W.placement, H = W.bottom, G = W.top, B = W.getContainer, I = W.closeIcon, q = W.prefixCls;
|
|
8166
|
+
q !== void 0 && (C = q), L !== void 0 && (v = L), U !== void 0 ? w = U : W.rtl && (w = "topLeft"), H !== void 0 && (b = H), G !== void 0 && (_ = G), B !== void 0 && (D = B), I !== void 0 && ($ = I), W.rtl !== void 0 && (S = W.rtl), W.maxCount !== void 0 && (P = W.maxCount);
|
|
8167
8167
|
}
|
|
8168
8168
|
function A(W) {
|
|
8169
|
-
var L = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : _, U = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : b,
|
|
8169
|
+
var L = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : _, U = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : b, H;
|
|
8170
8170
|
switch (W) {
|
|
8171
8171
|
case "top":
|
|
8172
|
-
|
|
8172
|
+
H = {
|
|
8173
8173
|
left: "50%",
|
|
8174
8174
|
transform: "translateX(-50%)",
|
|
8175
8175
|
right: "auto",
|
|
@@ -8178,21 +8178,21 @@ function requireNotification() {
|
|
|
8178
8178
|
};
|
|
8179
8179
|
break;
|
|
8180
8180
|
case "topLeft":
|
|
8181
|
-
|
|
8181
|
+
H = {
|
|
8182
8182
|
left: 0,
|
|
8183
8183
|
top: L,
|
|
8184
8184
|
bottom: "auto"
|
|
8185
8185
|
};
|
|
8186
8186
|
break;
|
|
8187
8187
|
case "topRight":
|
|
8188
|
-
|
|
8188
|
+
H = {
|
|
8189
8189
|
right: 0,
|
|
8190
8190
|
top: L,
|
|
8191
8191
|
bottom: "auto"
|
|
8192
8192
|
};
|
|
8193
8193
|
break;
|
|
8194
8194
|
case "bottom":
|
|
8195
|
-
|
|
8195
|
+
H = {
|
|
8196
8196
|
left: "50%",
|
|
8197
8197
|
transform: "translateX(-50%)",
|
|
8198
8198
|
right: "auto",
|
|
@@ -8201,24 +8201,24 @@ function requireNotification() {
|
|
|
8201
8201
|
};
|
|
8202
8202
|
break;
|
|
8203
8203
|
case "bottomLeft":
|
|
8204
|
-
|
|
8204
|
+
H = {
|
|
8205
8205
|
left: 0,
|
|
8206
8206
|
top: "auto",
|
|
8207
8207
|
bottom: U
|
|
8208
8208
|
};
|
|
8209
8209
|
break;
|
|
8210
8210
|
default:
|
|
8211
|
-
|
|
8211
|
+
H = {
|
|
8212
8212
|
right: 0,
|
|
8213
8213
|
top: "auto",
|
|
8214
8214
|
bottom: U
|
|
8215
8215
|
};
|
|
8216
8216
|
break;
|
|
8217
8217
|
}
|
|
8218
|
-
return
|
|
8218
|
+
return H;
|
|
8219
8219
|
}
|
|
8220
8220
|
function O(W, L) {
|
|
8221
|
-
var U = W.placement,
|
|
8221
|
+
var U = W.placement, H = U === void 0 ? w : U, G = W.top, B = W.bottom, I = W.getContainer, q = I === void 0 ? D : I, K = W.prefixCls, Q = (0, m.globalConfig)(), X = Q.getPrefixCls, E = Q.getIconPrefixCls, T = X("notification", K || C), z = E(), Z = "".concat(T, "-").concat(H), ee = h[Z];
|
|
8222
8222
|
if (ee) {
|
|
8223
8223
|
Promise.resolve(ee).then(function(te) {
|
|
8224
8224
|
L({
|
|
@@ -8229,12 +8229,12 @@ function requireNotification() {
|
|
|
8229
8229
|
});
|
|
8230
8230
|
return;
|
|
8231
8231
|
}
|
|
8232
|
-
var J = (0, f.default)("".concat(T, "-").concat(
|
|
8232
|
+
var J = (0, f.default)("".concat(T, "-").concat(H), (0, o.default)({}, "".concat(T, "-rtl"), S === !0));
|
|
8233
8233
|
h[Z] = new Promise(function(te) {
|
|
8234
8234
|
p.default.newInstance({
|
|
8235
8235
|
prefixCls: T,
|
|
8236
8236
|
className: J,
|
|
8237
|
-
style: A(
|
|
8237
|
+
style: A(H, G, B),
|
|
8238
8238
|
getContainer: q,
|
|
8239
8239
|
maxCount: P
|
|
8240
8240
|
}, function(re) {
|
|
@@ -8253,7 +8253,7 @@ function requireNotification() {
|
|
|
8253
8253
|
warning: c.default
|
|
8254
8254
|
};
|
|
8255
8255
|
function F(W, L, U) {
|
|
8256
|
-
var
|
|
8256
|
+
var H = W.duration, G = W.icon, B = W.type, I = W.description, q = W.message, K = W.btn, Q = W.onClose, X = W.onClick, E = W.key, T = W.style, z = W.className, Z = W.closeIcon, ee = Z === void 0 ? $ : Z, J = W.props, te = H === void 0 ? v : H, re = null;
|
|
8257
8257
|
G ? re = /* @__PURE__ */ g.createElement("span", {
|
|
8258
8258
|
className: "".concat(L, "-icon")
|
|
8259
8259
|
}, W.icon) : B && (re = /* @__PURE__ */ g.createElement(N[B] || null, {
|
|
@@ -8292,16 +8292,16 @@ function requireNotification() {
|
|
|
8292
8292
|
}
|
|
8293
8293
|
function k(W) {
|
|
8294
8294
|
O(W, function(L) {
|
|
8295
|
-
var U = L.prefixCls,
|
|
8296
|
-
G.notice(F(W, U,
|
|
8295
|
+
var U = L.prefixCls, H = L.iconPrefixCls, G = L.instance;
|
|
8296
|
+
G.notice(F(W, U, H));
|
|
8297
8297
|
});
|
|
8298
8298
|
}
|
|
8299
8299
|
var j = {
|
|
8300
8300
|
open: k,
|
|
8301
8301
|
close: function(L) {
|
|
8302
8302
|
Object.keys(h).forEach(function(U) {
|
|
8303
|
-
return Promise.resolve(h[U]).then(function(
|
|
8304
|
-
|
|
8303
|
+
return Promise.resolve(h[U]).then(function(H) {
|
|
8304
|
+
H.removeNotice(L);
|
|
8305
8305
|
});
|
|
8306
8306
|
});
|
|
8307
8307
|
},
|
|
@@ -8336,8 +8336,8 @@ function requireNotification() {
|
|
|
8336
8336
|
}));
|
|
8337
8337
|
};
|
|
8338
8338
|
e.getInstance = V;
|
|
8339
|
-
var
|
|
8340
|
-
e.default =
|
|
8339
|
+
var Y = j;
|
|
8340
|
+
e.default = Y;
|
|
8341
8341
|
}(notification)), notification;
|
|
8342
8342
|
}
|
|
8343
8343
|
var context$1 = {}, _interopRequireWildcard$6 = interopRequireWildcard.exports.default, _interopRequireDefault$a = interopRequireDefault.exports.default;
|
|
@@ -8502,14 +8502,14 @@ function requireConfigProvider() {
|
|
|
8502
8502
|
};
|
|
8503
8503
|
e.globalConfig = P;
|
|
8504
8504
|
var M = function(F) {
|
|
8505
|
-
var k, j, V = F.children,
|
|
8505
|
+
var k, j, V = F.children, Y = F.csp, W = F.autoInsertSpaceInButton, L = F.form, U = F.locale, H = F.componentSize, G = F.direction, B = F.space, I = F.virtual, q = F.dropdownMatchSelectWidth, K = F.legacyLocale, Q = F.parentContext, X = F.iconPrefixCls, E = F.componentDisabled, T = u.useCallback(function(re, se) {
|
|
8506
8506
|
var _e = F.prefixCls;
|
|
8507
8507
|
if (se)
|
|
8508
8508
|
return se;
|
|
8509
8509
|
var be = _e || Q.getPrefixCls("");
|
|
8510
8510
|
return re ? "".concat(be, "-").concat(re) : be;
|
|
8511
8511
|
}, [Q.getPrefixCls, F.prefixCls]), z = (0, n.default)((0, n.default)({}, Q), {
|
|
8512
|
-
csp:
|
|
8512
|
+
csp: Y,
|
|
8513
8513
|
autoInsertSpaceInButton: W,
|
|
8514
8514
|
locale: U || K,
|
|
8515
8515
|
direction: G,
|
|
@@ -8532,18 +8532,18 @@ function requireConfigProvider() {
|
|
|
8532
8532
|
}), ee = u.useMemo(function() {
|
|
8533
8533
|
return {
|
|
8534
8534
|
prefixCls: X,
|
|
8535
|
-
csp:
|
|
8535
|
+
csp: Y
|
|
8536
8536
|
};
|
|
8537
|
-
}, [X,
|
|
8537
|
+
}, [X, Y]), J = V, te = {};
|
|
8538
8538
|
return U && (te = ((k = U.Form) === null || k === void 0 ? void 0 : k.defaultValidateMessages) || ((j = d.default.Form) === null || j === void 0 ? void 0 : j.defaultValidateMessages) || {}), L && L.validateMessages && (te = (0, n.default)((0, n.default)({}, te), L.validateMessages)), Object.keys(te).length > 0 && (J = /* @__PURE__ */ u.createElement(o.FormProvider, {
|
|
8539
8539
|
validateMessages: te
|
|
8540
8540
|
}, V)), U && (J = /* @__PURE__ */ u.createElement(l.default, {
|
|
8541
8541
|
locale: U,
|
|
8542
8542
|
_ANT_MARK__: l.ANT_MARK
|
|
8543
|
-
}, J)), (X ||
|
|
8543
|
+
}, J)), (X || Y) && (J = /* @__PURE__ */ u.createElement(a.default.Provider, {
|
|
8544
8544
|
value: ee
|
|
8545
|
-
}, J)),
|
|
8546
|
-
size:
|
|
8545
|
+
}, J)), H && (J = /* @__PURE__ */ u.createElement(x.SizeContextProvider, {
|
|
8546
|
+
size: H
|
|
8547
8547
|
}, J)), E !== void 0 && (J = /* @__PURE__ */ u.createElement(y.DisabledContextProvider, {
|
|
8548
8548
|
disabled: E
|
|
8549
8549
|
}, J)), /* @__PURE__ */ u.createElement(g.ConfigContext.Provider, {
|
|
@@ -8557,9 +8557,9 @@ function requireConfigProvider() {
|
|
|
8557
8557
|
rtl: F.direction === "rtl"
|
|
8558
8558
|
}));
|
|
8559
8559
|
}, [F.direction]), /* @__PURE__ */ u.createElement(c.default, null, function(k, j, V) {
|
|
8560
|
-
return /* @__PURE__ */ u.createElement(g.ConfigConsumer, null, function(
|
|
8560
|
+
return /* @__PURE__ */ u.createElement(g.ConfigConsumer, null, function(Y) {
|
|
8561
8561
|
return /* @__PURE__ */ u.createElement(M, (0, n.default)({
|
|
8562
|
-
parentContext:
|
|
8562
|
+
parentContext: Y,
|
|
8563
8563
|
legacyLocale: V
|
|
8564
8564
|
}, F));
|
|
8565
8565
|
});
|
|
@@ -8688,12 +8688,12 @@ function cloneElement(e, t) {
|
|
|
8688
8688
|
}, {
|
|
8689
8689
|
key: "renderTextAreaWithClearIcon",
|
|
8690
8690
|
value: function(D, $, S) {
|
|
8691
|
-
var P, M = this.props, A = M.value, O = M.allowClear, N = M.className, F = M.style, k = M.direction, j = M.bordered, V = M.hidden,
|
|
8691
|
+
var P, M = this.props, A = M.value, O = M.allowClear, N = M.className, F = M.style, k = M.direction, j = M.bordered, V = M.hidden, Y = M.status, W = S.status, L = S.hasFeedback;
|
|
8692
8692
|
if (!O)
|
|
8693
8693
|
return (0, p.cloneElement)($, {
|
|
8694
8694
|
value: A
|
|
8695
8695
|
});
|
|
8696
|
-
var U = (0, c.default)("".concat(D, "-affix-wrapper"), "".concat(D, "-affix-wrapper-textarea-with-clear-btn"), (0, g.getStatusClassNames)("".concat(D, "-affix-wrapper"), (0, g.getMergedStatus)(W,
|
|
8696
|
+
var U = (0, c.default)("".concat(D, "-affix-wrapper"), "".concat(D, "-affix-wrapper-textarea-with-clear-btn"), (0, g.getStatusClassNames)("".concat(D, "-affix-wrapper"), (0, g.getMergedStatus)(W, Y), L), (P = {}, (0, n.default)(P, "".concat(D, "-affix-wrapper-rtl"), k === "rtl"), (0, n.default)(P, "".concat(D, "-affix-wrapper-borderless"), !j), (0, n.default)(P, "".concat(N), !x(this.props) && N), P));
|
|
8697
8697
|
return /* @__PURE__ */ d.createElement("span", {
|
|
8698
8698
|
className: U,
|
|
8699
8699
|
style: F,
|
|
@@ -8777,19 +8777,19 @@ function fixControlledValue(e) {
|
|
|
8777
8777
|
}
|
|
8778
8778
|
var BaseInput = function(t) {
|
|
8779
8779
|
var r = t.inputElement, n = t.prefixCls, a = t.prefix, o = t.suffix, s = t.addonBefore, u = t.addonAfter, l = t.className, c = t.style, d = t.affixWrapperClassName, f = t.groupClassName, p = t.wrapperClassName, g = t.disabled, m = t.readOnly, y = t.focused, x = t.triggerFocus, h = t.allowClear, v = t.value, _ = t.handleReset, b = t.hidden, C = useRef(null), w = function(V) {
|
|
8780
|
-
var
|
|
8781
|
-
(
|
|
8780
|
+
var Y;
|
|
8781
|
+
(Y = C.current) !== null && Y !== void 0 && Y.contains(V.target) && (x == null || x());
|
|
8782
8782
|
}, D = function() {
|
|
8783
8783
|
var V;
|
|
8784
8784
|
if (!h)
|
|
8785
8785
|
return null;
|
|
8786
|
-
var
|
|
8786
|
+
var Y = !g && !m && v, W = "".concat(n, "-clear-icon"), L = _typeof$2(h) === "object" && h !== null && h !== void 0 && h.clearIcon ? h.clearIcon : "\u2716";
|
|
8787
8787
|
return /* @__PURE__ */ jsx("span", {
|
|
8788
8788
|
onClick: _,
|
|
8789
|
-
onMouseDown: function(
|
|
8790
|
-
return
|
|
8789
|
+
onMouseDown: function(H) {
|
|
8790
|
+
return H.preventDefault();
|
|
8791
8791
|
},
|
|
8792
|
-
className: classNames(W, (V = {}, _defineProperty$1(V, "".concat(W, "-hidden"), !
|
|
8792
|
+
className: classNames(W, (V = {}, _defineProperty$1(V, "".concat(W, "-hidden"), !Y), _defineProperty$1(V, "".concat(W, "-has-suffix"), !!o), V)),
|
|
8793
8793
|
role: "button",
|
|
8794
8794
|
tabIndex: -1,
|
|
8795
8795
|
children: L
|
|
@@ -8861,9 +8861,9 @@ var _excluded$1 = ["autoComplete", "onChange", "onFocus", "onBlur", "onPressEnte
|
|
|
8861
8861
|
var U;
|
|
8862
8862
|
(U = A.current) === null || U === void 0 || U.blur();
|
|
8863
8863
|
},
|
|
8864
|
-
setSelectionRange: function(U,
|
|
8864
|
+
setSelectionRange: function(U, H, G) {
|
|
8865
8865
|
var B;
|
|
8866
|
-
(B = A.current) === null || B === void 0 || B.setSelectionRange(U,
|
|
8866
|
+
(B = A.current) === null || B === void 0 || B.setSelectionRange(U, H, G);
|
|
8867
8867
|
},
|
|
8868
8868
|
select: function() {
|
|
8869
8869
|
var U;
|
|
@@ -8886,7 +8886,7 @@ var _excluded$1 = ["autoComplete", "onChange", "onFocus", "onBlur", "onPressEnte
|
|
|
8886
8886
|
M(!1), o == null || o(U);
|
|
8887
8887
|
}, V = function(U) {
|
|
8888
8888
|
D(""), O(), A.current && resolveOnChange(A.current, U, n);
|
|
8889
|
-
},
|
|
8889
|
+
}, Y = function() {
|
|
8890
8890
|
var U = omit(e, [
|
|
8891
8891
|
"prefixCls",
|
|
8892
8892
|
"onPressEnter",
|
|
@@ -8918,8 +8918,8 @@ var _excluded$1 = ["autoComplete", "onChange", "onFocus", "onBlur", "onPressEnte
|
|
|
8918
8918
|
}, W = function() {
|
|
8919
8919
|
var U = Number(g) > 0;
|
|
8920
8920
|
if (m || y) {
|
|
8921
|
-
var
|
|
8922
|
-
value:
|
|
8921
|
+
var H = fixControlledValue(w), G = _toConsumableArray(H).length, B = _typeof$2(y) === "object" ? y.formatter({
|
|
8922
|
+
value: H,
|
|
8923
8923
|
count: G,
|
|
8924
8924
|
maxLength: g
|
|
8925
8925
|
}) : "".concat(G).concat(U ? " / ".concat(g) : "");
|
|
@@ -8936,7 +8936,7 @@ var _excluded$1 = ["autoComplete", "onChange", "onFocus", "onBlur", "onPressEnte
|
|
|
8936
8936
|
..._,
|
|
8937
8937
|
prefixCls: c,
|
|
8938
8938
|
className: p,
|
|
8939
|
-
inputElement:
|
|
8939
|
+
inputElement: Y(),
|
|
8940
8940
|
handleReset: V,
|
|
8941
8941
|
value: fixControlledValue(w),
|
|
8942
8942
|
focused: P,
|
|
@@ -9045,15 +9045,15 @@ function toArray$1(e) {
|
|
|
9045
9045
|
}, v);
|
|
9046
9046
|
}, m = function(h) {
|
|
9047
9047
|
var v, _ = u.useContext(l.ConfigContext), b = _.getPrefixCls, C = _.direction, w = h.size, D = w === void 0 ? "middle" : w, $ = h.direction, S = h.block, P = h.prefixCls, M = h.className, A = h.children, O = c(h, ["size", "direction", "block", "prefixCls", "className", "children"]), N = b("space-compact", P), F = (0, o.default)(N, (v = {}, (0, a.default)(v, "".concat(N, "-rtl"), C === "rtl"), (0, a.default)(v, "".concat(N, "-block"), S), (0, a.default)(v, "".concat(N, "-vertical"), $ === "vertical"), v), M), k = u.useContext(d), j = (0, s.default)(A), V = u.useMemo(function() {
|
|
9048
|
-
return j.map(function(
|
|
9049
|
-
var L =
|
|
9048
|
+
return j.map(function(Y, W) {
|
|
9049
|
+
var L = Y && Y.key || "".concat(N, "-item-").concat(W);
|
|
9050
9050
|
return /* @__PURE__ */ u.createElement(g, {
|
|
9051
9051
|
key: L,
|
|
9052
9052
|
compactSize: D,
|
|
9053
9053
|
compactDirection: $,
|
|
9054
9054
|
isFirstItem: W === 0 && (!k || (k == null ? void 0 : k.isFirstItem)),
|
|
9055
9055
|
isLastItem: W === j.length - 1 && (!k || (k == null ? void 0 : k.isLastItem))
|
|
9056
|
-
},
|
|
9056
|
+
}, Y);
|
|
9057
9057
|
});
|
|
9058
9058
|
}, [D, j, k]);
|
|
9059
9059
|
return j.length === 0 ? null : /* @__PURE__ */ u.createElement("div", (0, n.default)({
|
|
@@ -9159,7 +9159,7 @@ function hasPrefixSuffix(e) {
|
|
|
9159
9159
|
}
|
|
9160
9160
|
}
|
|
9161
9161
|
var $ = /* @__PURE__ */ (0, d.forwardRef)(function(P, M) {
|
|
9162
|
-
var A, O, N, F = P.prefixCls, k = P.bordered, j = k === void 0 ? !0 : k, V = P.status,
|
|
9162
|
+
var A, O, N, F = P.prefixCls, k = P.bordered, j = k === void 0 ? !0 : k, V = P.status, Y = P.size, W = P.disabled, L = P.onBlur, U = P.onFocus, H = P.suffix, G = P.allowClear, B = P.addonAfter, I = P.addonBefore, q = P.className, K = P.onChange, Q = b(P, ["prefixCls", "bordered", "status", "size", "disabled", "onBlur", "onFocus", "suffix", "allowClear", "addonAfter", "addonBefore", "className", "onChange"]), X = d.default.useContext(f.ConfigContext), E = X.getPrefixCls, T = X.direction, z = X.input, Z = E("input", F), ee = (0, d.useRef)(null), J = (0, y.useCompactItemContext)(Z, T), te = J.compactSize, re = J.compactItemClassnames, se = d.default.useContext(g.default), _e = te || Y || se, be = d.default.useContext(p.default), Se = W != null ? W : be, ie = (0, d.useContext)(m.FormItemInputContext), ge = ie.status, ue = ie.hasFeedback, he = ie.feedbackIcon, me = (0, x.getMergedStatus)(ge, V), oe = (0, _.hasPrefixSuffix)(P) || !!ue, ye = (0, d.useRef)(oe);
|
|
9163
9163
|
(0, d.useEffect)(function() {
|
|
9164
9164
|
var Ce;
|
|
9165
9165
|
oe && !ye.current && process.env.NODE_ENV !== "production" && (0, h.default)(document.activeElement === ((Ce = ee.current) === null || Ce === void 0 ? void 0 : Ce.input), "Input", "When Input is focused, dynamic add or remove prefix / suffix will make it lose focus caused by dom structure change. Read more: https://ant.design/components/input/#FAQ"), ye.current = oe;
|
|
@@ -9170,7 +9170,7 @@ function hasPrefixSuffix(e) {
|
|
|
9170
9170
|
$e(), U == null || U(de);
|
|
9171
9171
|
}, ke = function(de) {
|
|
9172
9172
|
$e(), K == null || K(de);
|
|
9173
|
-
}, le = (ue ||
|
|
9173
|
+
}, le = (ue || H) && /* @__PURE__ */ d.default.createElement(d.default.Fragment, null, H, ue && he), pe;
|
|
9174
9174
|
return (0, o.default)(G) === "object" && (G == null ? void 0 : G.clearIcon) ? pe = G : G && (pe = {
|
|
9175
9175
|
clearIcon: /* @__PURE__ */ d.default.createElement(s.default, null)
|
|
9176
9176
|
}), /* @__PURE__ */ d.default.createElement(l.default, (0, a.default)({
|
|
@@ -9223,7 +9223,7 @@ function hasPrefixSuffix(e) {
|
|
|
9223
9223
|
return S ? O = C(M, A) : (0, u.default)(P || "").length < M.length && (0, u.default)(M || "").length > A && (O = P), O;
|
|
9224
9224
|
}
|
|
9225
9225
|
var D = /* @__PURE__ */ p.forwardRef(function(S, P) {
|
|
9226
|
-
var M, A = S.prefixCls, O = S.bordered, N = O === void 0 ? !0 : O, F = S.showCount, k = F === void 0 ? !1 : F, j = S.maxLength, V = S.className,
|
|
9226
|
+
var M, A = S.prefixCls, O = S.bordered, N = O === void 0 ? !0 : O, F = S.showCount, k = F === void 0 ? !1 : F, j = S.maxLength, V = S.className, Y = S.style, W = S.size, L = S.disabled, U = S.onCompositionStart, H = S.onCompositionEnd, G = S.onChange, B = S.status, I = b(S, ["prefixCls", "bordered", "showCount", "maxLength", "className", "style", "size", "disabled", "onCompositionStart", "onCompositionEnd", "onChange", "status"]), q = p.useContext(g.ConfigContext), K = q.getPrefixCls, Q = q.direction, X = p.useContext(y.default), E = p.useContext(m.default), T = L != null ? L : E, z = p.useContext(x.FormItemInputContext), Z = z.status, ee = z.hasFeedback, J = z.isFormItemInput, te = z.feedbackIcon, re = (0, h.getMergedStatus)(Z, B), se = p.useRef(null), _e = p.useRef(null), be = p.useState(!1), Se = (0, s.default)(be, 2), ie = Se[0], ge = Se[1], ue = p.useRef(), he = p.useRef(0), me = (0, d.default)(I.defaultValue, {
|
|
9227
9227
|
value: I.value
|
|
9228
9228
|
}), oe = (0, s.default)(me, 2), ye = oe[0], $e = oe[1], Me = I.hidden, Ee = function(Fe, Pe) {
|
|
9229
9229
|
I.value === void 0 && ($e(Fe), Pe == null || Pe());
|
|
@@ -9237,7 +9237,7 @@ function hasPrefixSuffix(e) {
|
|
|
9237
9237
|
var Le = he.current >= j + 1 || he.current === ((Pe = ue.current) === null || Pe === void 0 ? void 0 : Pe.length);
|
|
9238
9238
|
De = w(Le, ue.current, De, j);
|
|
9239
9239
|
}
|
|
9240
|
-
De !== ye && (Ee(De), (0, _.resolveOnChange)(Fe.currentTarget, Fe, G, De)),
|
|
9240
|
+
De !== ye && (Ee(De), (0, _.resolveOnChange)(Fe.currentTarget, Fe, G, De)), H == null || H(Fe);
|
|
9241
9241
|
}, Ce = function(Fe) {
|
|
9242
9242
|
var Pe = Fe.target.value;
|
|
9243
9243
|
if (!ie && ke) {
|
|
@@ -9267,8 +9267,8 @@ function hasPrefixSuffix(e) {
|
|
|
9267
9267
|
disabled: T,
|
|
9268
9268
|
className: (0, l.default)((M = {}, (0, a.default)(M, "".concat(xe, "-borderless"), !N), (0, a.default)(M, V, V && !k), (0, a.default)(M, "".concat(xe, "-sm"), X === "small" || W === "small"), (0, a.default)(M, "".concat(xe, "-lg"), X === "large" || W === "large"), M), (0, h.getStatusClassNames)(xe, re)),
|
|
9269
9269
|
style: k ? {
|
|
9270
|
-
resize:
|
|
9271
|
-
} :
|
|
9270
|
+
resize: Y == null ? void 0 : Y.resize
|
|
9271
|
+
} : Y,
|
|
9272
9272
|
prefixCls: xe,
|
|
9273
9273
|
onCompositionStart: le,
|
|
9274
9274
|
onChange: Ce,
|
|
@@ -9288,7 +9288,7 @@ function hasPrefixSuffix(e) {
|
|
|
9288
9288
|
ref: _e,
|
|
9289
9289
|
bordered: N,
|
|
9290
9290
|
status: B,
|
|
9291
|
-
style: k ? void 0 :
|
|
9291
|
+
style: k ? void 0 : Y
|
|
9292
9292
|
}));
|
|
9293
9293
|
if (k || ee) {
|
|
9294
9294
|
var Ie, je = (0, u.default)(Ae).length, Ke = "";
|
|
@@ -9299,7 +9299,7 @@ function hasPrefixSuffix(e) {
|
|
|
9299
9299
|
}) : Ke = "".concat(je).concat(ke ? " / ".concat(j) : ""), /* @__PURE__ */ p.createElement("div", {
|
|
9300
9300
|
hidden: Me,
|
|
9301
9301
|
className: (0, l.default)("".concat(xe, "-textarea"), (Ie = {}, (0, a.default)(Ie, "".concat(xe, "-textarea-rtl"), Q === "rtl"), (0, a.default)(Ie, "".concat(xe, "-textarea-show-count"), k), (0, a.default)(Ie, "".concat(xe, "-textarea-in-form-item"), J), Ie), (0, h.getStatusClassNames)("".concat(xe, "-textarea"), re, ee), V),
|
|
9302
|
-
style:
|
|
9302
|
+
style: Y,
|
|
9303
9303
|
"data-count": Ke
|
|
9304
9304
|
}, Ve, ee && /* @__PURE__ */ p.createElement("span", {
|
|
9305
9305
|
className: "".concat(xe, "-textarea-suffix")
|
|
@@ -10412,7 +10412,7 @@ function require_stream_writable() {
|
|
|
10412
10412
|
this._writableState.corked++;
|
|
10413
10413
|
}, $.prototype.uncork = function() {
|
|
10414
10414
|
var I = this._writableState;
|
|
10415
|
-
I.corked && (I.corked--, !I.writing && !I.corked && !I.bufferProcessing && I.bufferedRequest &&
|
|
10415
|
+
I.corked && (I.corked--, !I.writing && !I.corked && !I.bufferProcessing && I.bufferedRequest && Y(this, I));
|
|
10416
10416
|
}, $.prototype.setDefaultEncoding = function(q) {
|
|
10417
10417
|
if (typeof q == "string" && (q = q.toLowerCase()), !(["hex", "utf8", "utf-8", "ascii", "binary", "base64", "ucs2", "ucs-2", "utf16le", "utf-16le", "raw"].indexOf((q + "").toLowerCase()) > -1))
|
|
10418
10418
|
throw new _(q);
|
|
@@ -10457,7 +10457,7 @@ function require_stream_writable() {
|
|
|
10457
10457
|
q.writelen = Q, q.writecb = T, q.writing = !0, q.sync = !0, q.destroyed ? q.onwrite(new x("write")) : K ? I._writev(X, q.onwrite) : I._write(X, E, q.onwrite), q.sync = !1;
|
|
10458
10458
|
}
|
|
10459
10459
|
function N(I, q, K, Q, X) {
|
|
10460
|
-
--q.pendingcb, K ? (process.nextTick(X, Q), process.nextTick(
|
|
10460
|
+
--q.pendingcb, K ? (process.nextTick(X, Q), process.nextTick(H, I, q), I._writableState.errorEmitted = !0, b(I, Q)) : (X(Q), I._writableState.errorEmitted = !0, b(I, Q), H(I, q));
|
|
10461
10461
|
}
|
|
10462
10462
|
function F(I) {
|
|
10463
10463
|
I.writing = !1, I.writecb = null, I.length -= I.writelen, I.writelen = 0;
|
|
@@ -10470,16 +10470,16 @@ function require_stream_writable() {
|
|
|
10470
10470
|
N(I, K, Q, q, X);
|
|
10471
10471
|
else {
|
|
10472
10472
|
var E = W(K) || I.destroyed;
|
|
10473
|
-
!E && !K.corked && !K.bufferProcessing && K.bufferedRequest &&
|
|
10473
|
+
!E && !K.corked && !K.bufferProcessing && K.bufferedRequest && Y(I, K), Q ? process.nextTick(j, I, K, E, X) : j(I, K, E, X);
|
|
10474
10474
|
}
|
|
10475
10475
|
}
|
|
10476
10476
|
function j(I, q, K, Q) {
|
|
10477
|
-
K || V(I, q), q.pendingcb--, Q(),
|
|
10477
|
+
K || V(I, q), q.pendingcb--, Q(), H(I, q);
|
|
10478
10478
|
}
|
|
10479
10479
|
function V(I, q) {
|
|
10480
10480
|
q.length === 0 && q.needDrain && (q.needDrain = !1, I.emit("drain"));
|
|
10481
10481
|
}
|
|
10482
|
-
function
|
|
10482
|
+
function Y(I, q) {
|
|
10483
10483
|
q.bufferProcessing = !0;
|
|
10484
10484
|
var K = q.bufferedRequest;
|
|
10485
10485
|
if (I._writev && K && K.next) {
|
|
@@ -10514,13 +10514,13 @@ function require_stream_writable() {
|
|
|
10514
10514
|
}
|
|
10515
10515
|
function L(I, q) {
|
|
10516
10516
|
I._final(function(K) {
|
|
10517
|
-
q.pendingcb--, K && b(I, K), q.prefinished = !0, I.emit("prefinish"),
|
|
10517
|
+
q.pendingcb--, K && b(I, K), q.prefinished = !0, I.emit("prefinish"), H(I, q);
|
|
10518
10518
|
});
|
|
10519
10519
|
}
|
|
10520
10520
|
function U(I, q) {
|
|
10521
10521
|
!q.prefinished && !q.finalCalled && (typeof I._final == "function" && !q.destroyed ? (q.pendingcb++, q.finalCalled = !0, process.nextTick(L, I, q)) : (q.prefinished = !0, I.emit("prefinish")));
|
|
10522
10522
|
}
|
|
10523
|
-
function
|
|
10523
|
+
function H(I, q) {
|
|
10524
10524
|
var K = W(q);
|
|
10525
10525
|
if (K && (U(I, q), q.pendingcb === 0 && (q.finished = !0, I.emit("finish"), q.autoDestroy))) {
|
|
10526
10526
|
var Q = I._readableState;
|
|
@@ -10529,7 +10529,7 @@ function require_stream_writable() {
|
|
|
10529
10529
|
return K;
|
|
10530
10530
|
}
|
|
10531
10531
|
function G(I, q, K) {
|
|
10532
|
-
q.ending = !0,
|
|
10532
|
+
q.ending = !0, H(I, q), K && (q.finished ? process.nextTick(K) : I.once("finish", K)), q.ended = !0, I.writable = !1;
|
|
10533
10533
|
}
|
|
10534
10534
|
function B(I, q, K) {
|
|
10535
10535
|
var Q = I.entry;
|
|
@@ -11036,15 +11036,15 @@ function require_stream_readable() {
|
|
|
11036
11036
|
else {
|
|
11037
11037
|
if (J.destroyed)
|
|
11038
11038
|
return !1;
|
|
11039
|
-
J.reading = !1, J.decoder && !z ? (T = J.decoder.write(T), J.objectMode || T.length !== 0 ? M(E, J, T, !1) :
|
|
11039
|
+
J.reading = !1, J.decoder && !z ? (T = J.decoder.write(T), J.objectMode || T.length !== 0 ? M(E, J, T, !1) : Y(E, J)) : M(E, J, T, !1);
|
|
11040
11040
|
}
|
|
11041
11041
|
else
|
|
11042
|
-
Z || (J.reading = !1,
|
|
11042
|
+
Z || (J.reading = !1, Y(E, J));
|
|
11043
11043
|
}
|
|
11044
11044
|
return !J.ended && (J.length < J.highWaterMark || J.length === 0);
|
|
11045
11045
|
}
|
|
11046
11046
|
function M(E, T, z, Z) {
|
|
11047
|
-
T.flowing && T.length === 0 && !T.sync ? (T.awaitDrain = 0, E.emit("data", z)) : (T.length += T.objectMode ? 1 : z.length, Z ? T.buffer.unshift(z) : T.buffer.push(z), T.needReadable && j(E)),
|
|
11047
|
+
T.flowing && T.length === 0 && !T.sync ? (T.awaitDrain = 0, E.emit("data", z)) : (T.length += T.objectMode ? 1 : z.length, Z ? T.buffer.unshift(z) : T.buffer.push(z), T.needReadable && j(E)), Y(E, T);
|
|
11048
11048
|
}
|
|
11049
11049
|
function A(E, T) {
|
|
11050
11050
|
var z;
|
|
@@ -11096,7 +11096,7 @@ function require_stream_readable() {
|
|
|
11096
11096
|
var T = E._readableState;
|
|
11097
11097
|
l("emitReadable_", T.destroyed, T.length, T.ended), !T.destroyed && (T.length || T.ended) && (E.emit("readable"), T.emittedReadable = !1), T.needReadable = !T.flowing && !T.ended && T.length <= T.highWaterMark, I(E);
|
|
11098
11098
|
}
|
|
11099
|
-
function
|
|
11099
|
+
function Y(E, T) {
|
|
11100
11100
|
T.readingMore || (T.readingMore = !0, process.nextTick(W, E, T));
|
|
11101
11101
|
}
|
|
11102
11102
|
function W(E, T) {
|
|
@@ -11187,7 +11187,7 @@ function require_stream_readable() {
|
|
|
11187
11187
|
return te === -1 ? this : (T.pipes.splice(te, 1), T.pipesCount -= 1, T.pipesCount === 1 && (T.pipes = T.pipes[0]), E.emit("unpipe", this, z), this);
|
|
11188
11188
|
}, S.prototype.on = function(E, T) {
|
|
11189
11189
|
var z = r.prototype.on.call(this, E, T), Z = this._readableState;
|
|
11190
|
-
return E === "data" ? (Z.readableListening = this.listenerCount("readable") > 0, Z.flowing !== !1 && this.resume()) : E === "readable" && !Z.endEmitted && !Z.readableListening && (Z.readableListening = Z.needReadable = !0, Z.flowing = !1, Z.emittedReadable = !1, l("on readable", Z.length, Z.reading), Z.length ? j(this) : Z.reading || process.nextTick(
|
|
11190
|
+
return E === "data" ? (Z.readableListening = this.listenerCount("readable") > 0, Z.flowing !== !1 && this.resume()) : E === "readable" && !Z.endEmitted && !Z.readableListening && (Z.readableListening = Z.needReadable = !0, Z.flowing = !1, Z.emittedReadable = !1, l("on readable", Z.length, Z.reading), Z.length ? j(this) : Z.reading || process.nextTick(H, this)), z;
|
|
11191
11191
|
}, S.prototype.addListener = S.prototype.on, S.prototype.removeListener = function(E, T) {
|
|
11192
11192
|
var z = r.prototype.removeListener.call(this, E, T);
|
|
11193
11193
|
return E === "readable" && process.nextTick(U, this), z;
|
|
@@ -11199,7 +11199,7 @@ function require_stream_readable() {
|
|
|
11199
11199
|
var T = E._readableState;
|
|
11200
11200
|
T.readableListening = E.listenerCount("readable") > 0, T.resumeScheduled && !T.paused ? T.flowing = !0 : E.listenerCount("data") > 0 && E.resume();
|
|
11201
11201
|
}
|
|
11202
|
-
function
|
|
11202
|
+
function H(E) {
|
|
11203
11203
|
l("readable nexttick read 0"), E.read(0);
|
|
11204
11204
|
}
|
|
11205
11205
|
S.prototype.resume = function() {
|
|
@@ -14401,7 +14401,7 @@ const transformPlainMany2Ones = ({
|
|
|
14401
14401
|
setLimit: C,
|
|
14402
14402
|
searchParams: w = [],
|
|
14403
14403
|
setSearchValues: D
|
|
14404
|
-
} = e, [$, S] = useState$1(!1), [P, M] = useState$1(!1), [A, O] = useState$1(), [N, F] = useState$1(1), [k, j] = useState$1(0), [V,
|
|
14404
|
+
} = e, [$, S] = useState$1(!1), [P, M] = useState$1(!1), [A, O] = useState$1(), [N, F] = useState$1(1), [k, j] = useState$1(0), [V, Y] = useState$1(), [W, L] = useState$1([]), [U, H] = useState$1(void 0), G = useRef(b || DEFAULT_SEARCH_LIMIT$1), B = useRef([]), I = useCallback((J) => {
|
|
14405
14405
|
x == null || x([...J]), L([...J]);
|
|
14406
14406
|
}, []), q = useCallback(() => h || W, [h, W]), K = useCallback(async () => {
|
|
14407
14407
|
const J = await ConnectionProvider.getHandler().nameSearch({
|
|
@@ -14411,7 +14411,7 @@ const transformPlainMany2Ones = ({
|
|
|
14411
14411
|
attrs: v,
|
|
14412
14412
|
context: c
|
|
14413
14413
|
});
|
|
14414
|
-
if (
|
|
14414
|
+
if (Y(J.length), d == null || d(J.length), J.length > 0) {
|
|
14415
14415
|
const te = J.map((ie) => ie == null ? void 0 : ie[0]), { colors: re } = getTree(f), se = await ConnectionProvider.getHandler().readEvalUiObjects({
|
|
14416
14416
|
model: t,
|
|
14417
14417
|
ids: te,
|
|
@@ -14422,7 +14422,7 @@ const transformPlainMany2Ones = ({
|
|
|
14422
14422
|
colors: re
|
|
14423
14423
|
}
|
|
14424
14424
|
}), _e = se[0];
|
|
14425
|
-
B.current = [..._e],
|
|
14425
|
+
B.current = [..._e], H(getColorMap(se[1]));
|
|
14426
14426
|
const be = _e.map((ie) => ie.id), Se = g !== void 0 ? sortResults({
|
|
14427
14427
|
resultsToSort: _e,
|
|
14428
14428
|
sorter: g,
|
|
@@ -14455,7 +14455,7 @@ const transformPlainMany2Ones = ({
|
|
|
14455
14455
|
context: c,
|
|
14456
14456
|
attrs: _e && { colors: _e }
|
|
14457
14457
|
});
|
|
14458
|
-
|
|
14458
|
+
H(getColorMap(ie)), B.current = [...Se];
|
|
14459
14459
|
const ge = g !== void 0 ? sortResults({
|
|
14460
14460
|
resultsToSort: Se,
|
|
14461
14461
|
sorter: g,
|
|
@@ -14469,7 +14469,7 @@ const transformPlainMany2Ones = ({
|
|
|
14469
14469
|
} else
|
|
14470
14470
|
y == null || y(void 0);
|
|
14471
14471
|
const ue = await be;
|
|
14472
|
-
|
|
14472
|
+
Y(ue), d == null || d(ue);
|
|
14473
14473
|
},
|
|
14474
14474
|
[
|
|
14475
14475
|
y,
|
|
@@ -14622,7 +14622,7 @@ const transformPlainMany2Ones = ({
|
|
|
14622
14622
|
setSearchTreeNameSearch: D,
|
|
14623
14623
|
goToResourceId: $,
|
|
14624
14624
|
limit: S
|
|
14625
|
-
} = e, [P, M] = useState$1(!1), [A, O] = useState$1(!1), [N, F] = useState$1(!1), [k, j] = useState$1(!0), [V,
|
|
14625
|
+
} = e, [P, M] = useState$1(!1), [A, O] = useState$1(!1), [N, F] = useState$1(!1), [k, j] = useState$1(!0), [V, Y] = useState$1(!0), [W, L] = useState$1([]), [U, H] = useState$1(!1), [G, B] = useState$1([]), [I, q] = useState$1(!1), [K, Q] = useState$1(!0), [X, E] = useState$1(), [T, z] = useState$1({}), [Z, ee] = useState$1(S !== void 0 ? S : DEFAULT_SEARCH_LIMIT$1), [J, te] = useState$1(n);
|
|
14626
14626
|
useEffect(() => {
|
|
14627
14627
|
p && p.length > 0 && !g && (m == null || m(0), d == null || d(p[0].id));
|
|
14628
14628
|
}, [p]), useEffect(() => {
|
|
@@ -14662,13 +14662,13 @@ const transformPlainMany2Ones = ({
|
|
|
14662
14662
|
formIsLoading: k,
|
|
14663
14663
|
setFormIsLoading: j,
|
|
14664
14664
|
treeIsLoading: V,
|
|
14665
|
-
setTreeIsLoading:
|
|
14665
|
+
setTreeIsLoading: Y,
|
|
14666
14666
|
attachments: W,
|
|
14667
14667
|
setAttachments: L,
|
|
14668
14668
|
selectedRowItems: C,
|
|
14669
14669
|
setSelectedRowItems: b,
|
|
14670
14670
|
duplicatingItem: U,
|
|
14671
|
-
setDuplicatingItem:
|
|
14671
|
+
setDuplicatingItem: H,
|
|
14672
14672
|
setSearchParams: B,
|
|
14673
14673
|
searchParams: G,
|
|
14674
14674
|
searchVisible: I,
|
|
@@ -14761,7 +14761,7 @@ const transformPlainMany2Ones = ({
|
|
|
14761
14761
|
ids: j
|
|
14762
14762
|
} = N || {};
|
|
14763
14763
|
let V = j || [];
|
|
14764
|
-
const
|
|
14764
|
+
const Y = typeof A == "string" ? parseContext({
|
|
14765
14765
|
context: A,
|
|
14766
14766
|
fields: S,
|
|
14767
14767
|
values: P
|
|
@@ -14774,7 +14774,7 @@ const transformPlainMany2Ones = ({
|
|
|
14774
14774
|
ids: V,
|
|
14775
14775
|
context: {
|
|
14776
14776
|
...M,
|
|
14777
|
-
...
|
|
14777
|
+
...Y
|
|
14778
14778
|
}
|
|
14779
14779
|
});
|
|
14780
14780
|
u(!0), o.current = !0, a.current = setInterval(() => {
|
|
@@ -14870,34 +14870,21 @@ const transformPlainMany2Ones = ({
|
|
|
14870
14870
|
context: O
|
|
14871
14871
|
}), {};
|
|
14872
14872
|
} else {
|
|
14873
|
-
|
|
14874
|
-
|
|
14875
|
-
|
|
14876
|
-
|
|
14877
|
-
|
|
14878
|
-
|
|
14879
|
-
|
|
14880
|
-
|
|
14881
|
-
|
|
14882
|
-
}
|
|
14883
|
-
if (M.view_id)
|
|
14884
|
-
k = {
|
|
14885
|
-
id: M.view_id,
|
|
14886
|
-
type: M.view_mode.split(",")[0]
|
|
14887
|
-
};
|
|
14888
|
-
else {
|
|
14889
|
-
const H = M.view_mode.split(",")[0], [W] = V.find(([L, U]) => U === H);
|
|
14890
|
-
k = {
|
|
14891
|
-
id: W,
|
|
14892
|
-
type: H
|
|
14893
|
-
};
|
|
14894
|
-
}
|
|
14873
|
+
const {
|
|
14874
|
+
initialView: k,
|
|
14875
|
+
views: j
|
|
14876
|
+
} = await getViewsAndInitialView({
|
|
14877
|
+
model: M.res_model,
|
|
14878
|
+
context: O,
|
|
14879
|
+
view_mode: M.view_mode,
|
|
14880
|
+
views: M.views
|
|
14881
|
+
});
|
|
14895
14882
|
return c == null || c({
|
|
14896
14883
|
target: "current",
|
|
14897
14884
|
context: O,
|
|
14898
14885
|
domain: N,
|
|
14899
14886
|
model: M.res_model,
|
|
14900
|
-
views:
|
|
14887
|
+
views: j,
|
|
14901
14888
|
title: M.name,
|
|
14902
14889
|
initialView: k,
|
|
14903
14890
|
action_id: M.id,
|
|
@@ -14997,7 +14984,61 @@ const transformPlainMany2Ones = ({
|
|
|
14997
14984
|
})
|
|
14998
14985
|
})
|
|
14999
14986
|
});
|
|
15000
|
-
}
|
|
14987
|
+
};
|
|
14988
|
+
async function getViewsAndInitialView({
|
|
14989
|
+
views: e,
|
|
14990
|
+
view_mode: t,
|
|
14991
|
+
model: r,
|
|
14992
|
+
context: n,
|
|
14993
|
+
view_id: a
|
|
14994
|
+
}) {
|
|
14995
|
+
const o = [];
|
|
14996
|
+
let s;
|
|
14997
|
+
if (e)
|
|
14998
|
+
for (const u of e) {
|
|
14999
|
+
const l = await ConnectionProvider.getHandler().getView({
|
|
15000
|
+
model: r,
|
|
15001
|
+
type: u[1],
|
|
15002
|
+
id: u[0],
|
|
15003
|
+
context: n
|
|
15004
|
+
});
|
|
15005
|
+
o.push([l.view_id, u[1]]);
|
|
15006
|
+
}
|
|
15007
|
+
else {
|
|
15008
|
+
const u = t.split(",");
|
|
15009
|
+
for (const l of u) {
|
|
15010
|
+
const c = await ConnectionProvider.getHandler().getView({
|
|
15011
|
+
model: r,
|
|
15012
|
+
type: l,
|
|
15013
|
+
context: n
|
|
15014
|
+
});
|
|
15015
|
+
o.push([c.view_id, l]);
|
|
15016
|
+
}
|
|
15017
|
+
}
|
|
15018
|
+
if (e && e.length > 0) {
|
|
15019
|
+
const [u, l] = e[0];
|
|
15020
|
+
s = {
|
|
15021
|
+
id: u,
|
|
15022
|
+
type: l
|
|
15023
|
+
};
|
|
15024
|
+
} else if (a)
|
|
15025
|
+
s = {
|
|
15026
|
+
id: a,
|
|
15027
|
+
type: t.split(",")[0]
|
|
15028
|
+
};
|
|
15029
|
+
else {
|
|
15030
|
+
const u = t.split(",")[0], [l] = e.find(([c, d]) => d === u);
|
|
15031
|
+
s = {
|
|
15032
|
+
id: l,
|
|
15033
|
+
type: u
|
|
15034
|
+
};
|
|
15035
|
+
}
|
|
15036
|
+
return {
|
|
15037
|
+
views: o,
|
|
15038
|
+
initialView: s
|
|
15039
|
+
};
|
|
15040
|
+
}
|
|
15041
|
+
const ContentRootProvider$1 = forwardRef(ContentRootProvider), ErrorAlert = ({
|
|
15001
15042
|
error: e,
|
|
15002
15043
|
className: t
|
|
15003
15044
|
}) => {
|
|
@@ -15048,7 +15089,7 @@ function Form(e, t) {
|
|
|
15048
15089
|
} = e, {
|
|
15049
15090
|
t: D,
|
|
15050
15091
|
lang: $
|
|
15051
|
-
} = useContext(LocaleContext), [S, P] = useState$1(!1), [M, A] = useState$1(), [O, N] = useState$1(), [F] = Form$3.useForm(), [k, j] = useState$1(), [V,
|
|
15092
|
+
} = useContext(LocaleContext), [S, P] = useState$1(!1), [M, A] = useState$1(), [O, N] = useState$1(), [F] = Form$3.useForm(), [k, j] = useState$1(), [V, Y] = useState$1(), W = useContext(FormModalContext), [L, U] = useState$1(), [H, G] = useState$1(!1), B = useRef(), I = useRef({}), q = useRef({}), K = useRef(!1), Q = useRef(!1), X = L < WIDTH_BREAKPOINT, E = useContext(FormContext$2), {
|
|
15052
15093
|
activeId: T,
|
|
15053
15094
|
getPlainValues: z
|
|
15054
15095
|
} = E || {}, Z = useContext(ActionViewContext), {
|
|
@@ -15083,10 +15124,10 @@ function Form(e, t) {
|
|
|
15083
15124
|
(n === void 0 && V || n !== void 0 && V && n < 0) && (B.current = void 0, N(void 0)), Ve();
|
|
15084
15125
|
}
|
|
15085
15126
|
}, [n, r, g, m, _]), useEffect(() => {
|
|
15086
|
-
|
|
15127
|
+
H && (Qe({
|
|
15087
15128
|
elementHasLostFocus: !0
|
|
15088
15129
|
}), G(!1));
|
|
15089
|
-
}, [
|
|
15130
|
+
}, [H]);
|
|
15090
15131
|
const ue = (ae, ne, ce) => {
|
|
15091
15132
|
J == null || J(!1), ee == null || ee(!1), o == null || o(ae, ne, ce), te == null || te(ae);
|
|
15092
15133
|
}, he = () => {
|
|
@@ -15187,7 +15228,7 @@ function Form(e, t) {
|
|
|
15187
15228
|
fields: ne,
|
|
15188
15229
|
arch: ce
|
|
15189
15230
|
} = ae;
|
|
15190
|
-
|
|
15231
|
+
Y(ne), j(ce), await Ie({
|
|
15191
15232
|
fields: ne,
|
|
15192
15233
|
arch: ce
|
|
15193
15234
|
});
|
|
@@ -15461,7 +15502,7 @@ function Form(e, t) {
|
|
|
15461
15502
|
fields: Oe,
|
|
15462
15503
|
arch: k,
|
|
15463
15504
|
values: de(Oe)
|
|
15464
|
-
}),
|
|
15505
|
+
}), Y(Oe);
|
|
15465
15506
|
}
|
|
15466
15507
|
};
|
|
15467
15508
|
async function ft({
|
|
@@ -19211,20 +19252,20 @@ function Tree(e) {
|
|
|
19211
19252
|
}));
|
|
19212
19253
|
if (!U || U.length === 0)
|
|
19213
19254
|
return null;
|
|
19214
|
-
let
|
|
19255
|
+
let H = [], G = ((B = d == null ? void 0 : d.selectedRowKeys) == null ? void 0 : B.length) > 0 ? _.filter((I) => d == null ? void 0 : d.selectedRowKeys.includes(I.id)) : _;
|
|
19215
19256
|
return U.forEach((I) => {
|
|
19216
19257
|
const q = G.reduce((K, Q) => Q[I.field] && !isNaN(Q[I.field]) ? K + Q[I.field] : K, 0);
|
|
19217
|
-
|
|
19258
|
+
H.push(`${I.label}: ${Math.round(q * 100) / 100}`);
|
|
19218
19259
|
}), /* @__PURE__ */ jsx("div", {
|
|
19219
19260
|
className: "p-1 pb-0 pl-2 mt-2 bg-gray-50",
|
|
19220
|
-
children:
|
|
19261
|
+
children: H.join(", ")
|
|
19221
19262
|
});
|
|
19222
19263
|
}
|
|
19223
|
-
let
|
|
19264
|
+
let Y, W = f;
|
|
19224
19265
|
if ($.current !== null) {
|
|
19225
|
-
|
|
19266
|
+
Y = calculateColumnsWidth(C, _, 600);
|
|
19226
19267
|
const U = $.current;
|
|
19227
|
-
f && U.columns.some((
|
|
19268
|
+
f && U.columns.some((H) => H.sum !== void 0) && (W = f - 30);
|
|
19228
19269
|
}
|
|
19229
19270
|
return $.current === null ? /* @__PURE__ */ jsx(Spin, {
|
|
19230
19271
|
style: {
|
|
@@ -19233,7 +19274,7 @@ function Tree(e) {
|
|
|
19233
19274
|
}) : /* @__PURE__ */ jsxs("div", {
|
|
19234
19275
|
children: [j(), /* @__PURE__ */ jsx(Table, {
|
|
19235
19276
|
height: W,
|
|
19236
|
-
columns:
|
|
19277
|
+
columns: Y.columns,
|
|
19237
19278
|
dataSource: _,
|
|
19238
19279
|
loading: u,
|
|
19239
19280
|
loadingComponent: /* @__PURE__ */ jsx(Spin, {}),
|
|
@@ -19277,11 +19318,11 @@ function SearchTree(e, t) {
|
|
|
19277
19318
|
} = N || {}, k = useContext(ActionViewContext), {
|
|
19278
19319
|
setResults: j = void 0,
|
|
19279
19320
|
setCurrentItemIndex: V = void 0,
|
|
19280
|
-
currentId:
|
|
19321
|
+
currentId: Y = void 0,
|
|
19281
19322
|
results: W = void 0,
|
|
19282
19323
|
selectedRowItems: L = void 0,
|
|
19283
19324
|
setSelectedRowItems: U = void 0,
|
|
19284
|
-
searchParams:
|
|
19325
|
+
searchParams: H = [],
|
|
19285
19326
|
setSearchParams: G = void 0,
|
|
19286
19327
|
searchVisible: B = !0,
|
|
19287
19328
|
setSearchVisible: I = void 0,
|
|
@@ -19315,7 +19356,7 @@ function SearchTree(e, t) {
|
|
|
19315
19356
|
setSelectedRowItems: U,
|
|
19316
19357
|
setSearchParams: G,
|
|
19317
19358
|
setSearchValues: z,
|
|
19318
|
-
searchParams:
|
|
19359
|
+
searchParams: H,
|
|
19319
19360
|
setSearchVisible: I,
|
|
19320
19361
|
setTreeIsLoading: E,
|
|
19321
19362
|
nameSearch: s,
|
|
@@ -19329,7 +19370,7 @@ function SearchTree(e, t) {
|
|
|
19329
19370
|
setResultsActionView: j,
|
|
19330
19371
|
resultsActionView: W,
|
|
19331
19372
|
domain: l,
|
|
19332
|
-
currentId:
|
|
19373
|
+
currentId: Y,
|
|
19333
19374
|
setActionViewTotalItems: Q,
|
|
19334
19375
|
limit: Z,
|
|
19335
19376
|
setLimit: ee
|
|
@@ -19615,7 +19656,7 @@ const SearchTree$1 = forwardRef(SearchTree), SearchModal = (e) => {
|
|
|
19615
19656
|
}, [t]);
|
|
19616
19657
|
const V = (I) => {
|
|
19617
19658
|
r == null || r(I), A == null || A();
|
|
19618
|
-
},
|
|
19659
|
+
}, Y = (I) => {
|
|
19619
19660
|
w.current = I.target.value, V([void 0, ""]);
|
|
19620
19661
|
}, W = async () => {
|
|
19621
19662
|
if (!y && b !== j) {
|
|
@@ -19645,7 +19686,7 @@ const SearchTree$1 = forwardRef(SearchTree), SearchModal = (e) => {
|
|
|
19645
19686
|
}
|
|
19646
19687
|
}
|
|
19647
19688
|
}, L = async (I) => {
|
|
19648
|
-
if (await
|
|
19689
|
+
if (await H(), O.current && O.current.length > 0) {
|
|
19649
19690
|
const q = await ConnectionProvider.getHandler().searchAllIds({
|
|
19650
19691
|
params: O.current,
|
|
19651
19692
|
model: o,
|
|
@@ -19678,7 +19719,7 @@ const SearchTree$1 = forwardRef(SearchTree), SearchModal = (e) => {
|
|
|
19678
19719
|
x(!1);
|
|
19679
19720
|
}
|
|
19680
19721
|
};
|
|
19681
|
-
async function
|
|
19722
|
+
async function H() {
|
|
19682
19723
|
c && (O.current = await ConnectionProvider.getHandler().evalDomain({
|
|
19683
19724
|
domain: c,
|
|
19684
19725
|
values: transformPlainMany2Ones({
|
|
@@ -19704,7 +19745,7 @@ const SearchTree$1 = forwardRef(SearchTree), SearchModal = (e) => {
|
|
|
19704
19745
|
type: "text",
|
|
19705
19746
|
value: b,
|
|
19706
19747
|
disabled: s,
|
|
19707
|
-
onChange:
|
|
19748
|
+
onChange: Y,
|
|
19708
19749
|
className: d,
|
|
19709
19750
|
onBlur: W,
|
|
19710
19751
|
onKeyDown: G,
|
|
@@ -21570,9 +21611,9 @@ var PopupInner = /* @__PURE__ */ React$n.forwardRef(function(e, t) {
|
|
|
21570
21611
|
function F() {
|
|
21571
21612
|
l && N(g());
|
|
21572
21613
|
}
|
|
21573
|
-
var k = useVisibleStatus(r, F), j = _slicedToArray(k, 2), V = j[0],
|
|
21614
|
+
var k = useVisibleStatus(r, F), j = _slicedToArray(k, 2), V = j[0], Y = j[1], W = useState$1(0), L = _slicedToArray(W, 2), U = L[0], H = L[1], G = useRef();
|
|
21574
21615
|
useLayoutEffect$2(function() {
|
|
21575
|
-
V === "alignPre" &&
|
|
21616
|
+
V === "alignPre" && H(0);
|
|
21576
21617
|
}, [V]);
|
|
21577
21618
|
function B() {
|
|
21578
21619
|
return p || g;
|
|
@@ -21583,12 +21624,12 @@ var PopupInner = /* @__PURE__ */ React$n.forwardRef(function(e, t) {
|
|
|
21583
21624
|
}
|
|
21584
21625
|
function q(z, Z) {
|
|
21585
21626
|
var ee = m(Z);
|
|
21586
|
-
S !== ee && P(ee),
|
|
21627
|
+
S !== ee && P(ee), H(function(J) {
|
|
21587
21628
|
return J + 1;
|
|
21588
21629
|
}), V === "align" && (y == null || y(z, Z));
|
|
21589
21630
|
}
|
|
21590
21631
|
useLayoutEffect$2(function() {
|
|
21591
|
-
V === "align" && (U < 3 ? I() :
|
|
21632
|
+
V === "align" && (U < 3 ? I() : Y(function() {
|
|
21592
21633
|
var z;
|
|
21593
21634
|
(z = G.current) === null || z === void 0 || z.call(G);
|
|
21594
21635
|
}));
|
|
@@ -21597,7 +21638,7 @@ var PopupInner = /* @__PURE__ */ React$n.forwardRef(function(e, t) {
|
|
|
21597
21638
|
["onAppearEnd", "onEnterEnd", "onLeaveEnd"].forEach(function(z) {
|
|
21598
21639
|
var Z = K[z];
|
|
21599
21640
|
K[z] = function(ee, J) {
|
|
21600
|
-
return
|
|
21641
|
+
return Y(), Z == null ? void 0 : Z(ee, J);
|
|
21601
21642
|
};
|
|
21602
21643
|
});
|
|
21603
21644
|
function Q() {
|
|
@@ -21606,7 +21647,7 @@ var PopupInner = /* @__PURE__ */ React$n.forwardRef(function(e, t) {
|
|
|
21606
21647
|
});
|
|
21607
21648
|
}
|
|
21608
21649
|
React$n.useEffect(function() {
|
|
21609
|
-
!K.motionName && V === "motion" &&
|
|
21650
|
+
!K.motionName && V === "motion" && Y();
|
|
21610
21651
|
}, [K.motionName, V]), React$n.useImperativeHandle(t, function() {
|
|
21611
21652
|
return {
|
|
21612
21653
|
forceAlign: I,
|
|
@@ -22155,7 +22196,7 @@ var Tooltip = function e(t, r) {
|
|
|
22155
22196
|
});
|
|
22156
22197
|
var V = _objectSpread2$g({}, k);
|
|
22157
22198
|
"visible" in t && (V.popupVisible = t.visible);
|
|
22158
|
-
var
|
|
22199
|
+
var Y = function() {
|
|
22159
22200
|
return /* @__PURE__ */ jsx(Popup, {
|
|
22160
22201
|
showArrow: F,
|
|
22161
22202
|
arrowContent: A,
|
|
@@ -22174,7 +22215,7 @@ var Tooltip = function e(t, r) {
|
|
|
22174
22215
|
return /* @__PURE__ */ jsx(Trigger, {
|
|
22175
22216
|
popupClassName: n,
|
|
22176
22217
|
prefixCls: p,
|
|
22177
|
-
popup:
|
|
22218
|
+
popup: Y,
|
|
22178
22219
|
action: o,
|
|
22179
22220
|
builtinPlacements: placements$3,
|
|
22180
22221
|
popupPlacement: b,
|
|
@@ -22476,14 +22517,14 @@ placements$1.default = _default$1;
|
|
|
22476
22517
|
}, V = function(me) {
|
|
22477
22518
|
var oe, ye;
|
|
22478
22519
|
k(j() ? !1 : me), j() || ((oe = w.onOpenChange) === null || oe === void 0 || oe.call(w, me), (ye = w.onVisibleChange) === null || ye === void 0 || ye.call(w, me));
|
|
22479
|
-
},
|
|
22520
|
+
}, Y = function() {
|
|
22480
22521
|
var me = w.builtinPlacements, oe = w.arrowPointAtCenter, ye = oe === void 0 ? !1 : oe, $e = w.autoAdjustOverflow, Me = $e === void 0 ? !0 : $e;
|
|
22481
22522
|
return me || (0, g.default)({
|
|
22482
22523
|
arrowPointAtCenter: ye,
|
|
22483
22524
|
autoAdjustOverflow: Me
|
|
22484
22525
|
});
|
|
22485
22526
|
}, W = function(me, oe) {
|
|
22486
|
-
var ye =
|
|
22527
|
+
var ye = Y(), $e = Object.keys(ye).find(function(ke) {
|
|
22487
22528
|
var le, pe;
|
|
22488
22529
|
return ye[ke].points[0] === ((le = oe.points) === null || le === void 0 ? void 0 : le[0]) && ye[ke].points[1] === ((pe = oe.points) === null || pe === void 0 ? void 0 : pe[1]);
|
|
22489
22530
|
});
|
|
@@ -22497,7 +22538,7 @@ placements$1.default = _default$1;
|
|
|
22497
22538
|
}, L = function() {
|
|
22498
22539
|
var me = w.title, oe = w.overlay;
|
|
22499
22540
|
return me === 0 ? me : oe || me || "";
|
|
22500
|
-
}, U = w.getPopupContainer,
|
|
22541
|
+
}, U = w.getPopupContainer, H = w.placement, G = H === void 0 ? "top" : H, B = w.mouseEnterDelay, I = B === void 0 ? 0.1 : B, q = w.mouseLeaveDelay, K = q === void 0 ? 0.1 : q, Q = x(w, ["getPopupContainer", "placement", "mouseEnterDelay", "mouseLeaveDelay"]), X = w.prefixCls, E = w.openClassName, T = w.getTooltipContainer, z = w.overlayClassName, Z = w.color, ee = w.overlayInnerStyle, J = w.children, te = M("tooltip", X), re = M(), se = F;
|
|
22501
22542
|
!("open" in w) && !("visible" in w) && j() && (se = !1);
|
|
22502
22543
|
var _e = _((0, m.isValidElement)(J) && !(0, m.isFragment)(J) ? J : /* @__PURE__ */ c.createElement("span", null, J), te), be = _e.props, Se = !be.className || typeof be.className == "string" ? (0, s.default)(be.className, (0, n.default)({}, E || "".concat(te, "-open"), !0)) : be.className, ie = (0, s.default)(z, ($ = {}, (0, n.default)($, "".concat(te, "-rtl"), A === "rtl"), (0, n.default)($, "".concat(te, "-").concat(Z), Z && v.test(Z)), $)), ge = ee, ue = {};
|
|
22503
22544
|
return Z && !v.test(Z) && (ge = (0, o.default)((0, o.default)({}, ee), {
|
|
@@ -22512,7 +22553,7 @@ placements$1.default = _default$1;
|
|
|
22512
22553
|
overlayClassName: ie,
|
|
22513
22554
|
getTooltipContainer: U || T || P,
|
|
22514
22555
|
ref: D,
|
|
22515
|
-
builtinPlacements:
|
|
22556
|
+
builtinPlacements: Y(),
|
|
22516
22557
|
overlay: L(),
|
|
22517
22558
|
visible: se,
|
|
22518
22559
|
onVisibleChange: V,
|
|
@@ -22573,7 +22614,7 @@ EnterOutlined$2.default = _default;
|
|
|
22573
22614
|
value: !0
|
|
22574
22615
|
}), e.default = void 0;
|
|
22575
22616
|
var n = r(defineProperty.exports), a = r(slicedToArray.exports), o = r(EnterOutlined$3.exports), s = r(classnames.exports), u = r(KeyCode$1), l = t(React__default), c = r(TextArea$3), d = reactNode, f = function(m) {
|
|
22576
|
-
var y = m.prefixCls, x = m["aria-label"], h = m.className, v = m.style, _ = m.direction, b = m.maxLength, C = m.autoSize, w = C === void 0 ? !0 : C, D = m.value, $ = m.onSave, S = m.onCancel, P = m.onEnd, M = m.component, A = m.enterIcon, O = A === void 0 ? /* @__PURE__ */ l.createElement(o.default, null) : A, N = l.useRef(null), F = l.useRef(!1), k = l.useRef(), j = l.useState(D), V = (0, a.default)(j, 2),
|
|
22617
|
+
var y = m.prefixCls, x = m["aria-label"], h = m.className, v = m.style, _ = m.direction, b = m.maxLength, C = m.autoSize, w = C === void 0 ? !0 : C, D = m.value, $ = m.onSave, S = m.onCancel, P = m.onEnd, M = m.component, A = m.enterIcon, O = A === void 0 ? /* @__PURE__ */ l.createElement(o.default, null) : A, N = l.useRef(null), F = l.useRef(!1), k = l.useRef(), j = l.useState(D), V = (0, a.default)(j, 2), Y = V[0], W = V[1];
|
|
22577
22618
|
l.useEffect(function() {
|
|
22578
22619
|
W(D);
|
|
22579
22620
|
}, [D]), l.useEffect(function() {
|
|
@@ -22589,13 +22630,13 @@ EnterOutlined$2.default = _default;
|
|
|
22589
22630
|
W(T.value.replace(/[\n\r]/g, ""));
|
|
22590
22631
|
}, U = function() {
|
|
22591
22632
|
F.current = !0;
|
|
22592
|
-
},
|
|
22633
|
+
}, H = function() {
|
|
22593
22634
|
F.current = !1;
|
|
22594
22635
|
}, G = function(E) {
|
|
22595
22636
|
var T = E.keyCode;
|
|
22596
22637
|
F.current || (k.current = T);
|
|
22597
22638
|
}, B = function() {
|
|
22598
|
-
$(
|
|
22639
|
+
$(Y.trim());
|
|
22599
22640
|
}, I = function(E) {
|
|
22600
22641
|
var T = E.keyCode, z = E.ctrlKey, Z = E.altKey, ee = E.metaKey, J = E.shiftKey;
|
|
22601
22642
|
k.current === T && !F.current && !z && !Z && !ee && !J && (T === u.default.ENTER ? (B(), P == null || P()) : T === u.default.ESC && S());
|
|
@@ -22608,12 +22649,12 @@ EnterOutlined$2.default = _default;
|
|
|
22608
22649
|
}, /* @__PURE__ */ l.createElement(c.default, {
|
|
22609
22650
|
ref: N,
|
|
22610
22651
|
maxLength: b,
|
|
22611
|
-
value:
|
|
22652
|
+
value: Y,
|
|
22612
22653
|
onChange: L,
|
|
22613
22654
|
onKeyDown: G,
|
|
22614
22655
|
onKeyUp: I,
|
|
22615
22656
|
onCompositionStart: U,
|
|
22616
|
-
onCompositionEnd:
|
|
22657
|
+
onCompositionEnd: H,
|
|
22617
22658
|
onBlur: q,
|
|
22618
22659
|
"aria-label": x,
|
|
22619
22660
|
rows: 1,
|
|
@@ -22710,7 +22751,7 @@ var Ellipsis = {};
|
|
|
22710
22751
|
return _;
|
|
22711
22752
|
}
|
|
22712
22753
|
var p = 0, g = 1, m = 2, y = 3, x = 4, h = function(b) {
|
|
22713
|
-
var C = b.enabledMeasure, w = b.children, D = b.text, $ = b.width, S = b.fontSize, P = b.rows, M = b.onEllipsis, A = l.useState([0, 0, 0]), O = (0, a.default)(A, 2), N = (0, a.default)(O[0], 3), F = N[0], k = N[1], j = N[2], V = O[1],
|
|
22754
|
+
var C = b.enabledMeasure, w = b.children, D = b.text, $ = b.width, S = b.fontSize, P = b.rows, M = b.onEllipsis, A = l.useState([0, 0, 0]), O = (0, a.default)(A, 2), N = (0, a.default)(O[0], 3), F = N[0], k = N[1], j = N[2], V = O[1], Y = l.useState(p), W = (0, a.default)(Y, 2), L = W[0], U = W[1], H = l.useState(0), G = (0, a.default)(H, 2), B = G[0], I = G[1], q = l.useRef(null), K = l.useRef(null), Q = l.useMemo(function() {
|
|
22714
22755
|
return (0, s.default)(D);
|
|
22715
22756
|
}, [D]), X = l.useMemo(function() {
|
|
22716
22757
|
return d(Q);
|
|
@@ -22793,29 +22834,29 @@ var EllipsisTooltip = {};
|
|
|
22793
22834
|
value: !0
|
|
22794
22835
|
}), e.default = void 0;
|
|
22795
22836
|
var n = r(defineProperty.exports), a = r(_extends$1.exports), o = r(_typeof$3.exports), s = r(slicedToArray.exports), u = r(CheckOutlined$3.exports), l = r(CopyOutlined$3.exports), c = r(EditOutlined$3.exports), d = r(classnames.exports), f = r(copyToClipboard), p = r(require$$11), g = r(toArray$2), m = r(useLayoutEffect$1), y = r(useMergedState$1), x = r(omit$2), h = ref, v = t(React__default), _ = requireConfigProvider(), b = LocaleReceiver, C = r(transButton), w = styleChecker$1, D = r(tooltip), $ = r(Editable), S = r(useMergedConfig), P = r(useUpdatedEffect), M = r(Typography), A = r(Ellipsis), O = r(EllipsisTooltip), N = function(L, U) {
|
|
22796
|
-
var
|
|
22837
|
+
var H = {};
|
|
22797
22838
|
for (var G in L)
|
|
22798
|
-
Object.prototype.hasOwnProperty.call(L, G) && U.indexOf(G) < 0 && (
|
|
22839
|
+
Object.prototype.hasOwnProperty.call(L, G) && U.indexOf(G) < 0 && (H[G] = L[G]);
|
|
22799
22840
|
if (L != null && typeof Object.getOwnPropertySymbols == "function")
|
|
22800
22841
|
for (var B = 0, G = Object.getOwnPropertySymbols(L); B < G.length; B++)
|
|
22801
|
-
U.indexOf(G[B]) < 0 && Object.prototype.propertyIsEnumerable.call(L, G[B]) && (
|
|
22802
|
-
return
|
|
22842
|
+
U.indexOf(G[B]) < 0 && Object.prototype.propertyIsEnumerable.call(L, G[B]) && (H[G[B]] = L[G[B]]);
|
|
22843
|
+
return H;
|
|
22803
22844
|
};
|
|
22804
22845
|
function F(L, U) {
|
|
22805
|
-
var
|
|
22846
|
+
var H = L.mark, G = L.code, B = L.underline, I = L.delete, q = L.strong, K = L.keyboard, Q = L.italic, X = U;
|
|
22806
22847
|
function E(T, z) {
|
|
22807
22848
|
!T || (X = /* @__PURE__ */ v.createElement(z, {}, X));
|
|
22808
22849
|
}
|
|
22809
|
-
return E(q, "strong"), E(B, "u"), E(I, "del"), E(G, "code"), E(
|
|
22850
|
+
return E(q, "strong"), E(B, "u"), E(I, "del"), E(G, "code"), E(H, "mark"), E(K, "kbd"), E(Q, "i"), X;
|
|
22810
22851
|
}
|
|
22811
|
-
function k(L, U,
|
|
22812
|
-
return L === !0 || L === void 0 ? U : L ||
|
|
22852
|
+
function k(L, U, H) {
|
|
22853
|
+
return L === !0 || L === void 0 ? U : L || H && U;
|
|
22813
22854
|
}
|
|
22814
22855
|
function j(L) {
|
|
22815
22856
|
return L === !1 ? [!1, !1] : Array.isArray(L) ? L : [L];
|
|
22816
22857
|
}
|
|
22817
|
-
var V = "...",
|
|
22818
|
-
var
|
|
22858
|
+
var V = "...", Y = /* @__PURE__ */ v.forwardRef(function(L, U) {
|
|
22859
|
+
var H, G, B, I = L.prefixCls, q = L.className, K = L.style, Q = L.type, X = L.disabled, E = L.children, T = L.ellipsis, z = L.editable, Z = L.copyable, ee = L.component, J = L.title, te = N(L, ["prefixCls", "className", "style", "type", "disabled", "children", "ellipsis", "editable", "copyable", "component", "title"]), re = v.useContext(_.ConfigContext), se = re.getPrefixCls, _e = re.direction, be = (0, b.useLocaleReceiver)("Text")[0], Se = v.useRef(null), ie = v.useRef(null), ge = se("typography", I), ue = (0, x.default)(te, ["mark", "code", "delete", "underline", "strong", "keyboard", "italic"]), he = (0, S.default)(z), me = (0, s.default)(he, 2), oe = me[0], ye = me[1], $e = (0, y.default)(!1, {
|
|
22819
22860
|
value: ye.editing
|
|
22820
22861
|
}), Me = (0, s.default)($e, 2), Ee = Me[0], ke = Me[1], le = ye.triggerType, pe = le === void 0 ? ["icon"] : le, Ce = function(ve) {
|
|
22821
22862
|
var Te;
|
|
@@ -22885,7 +22926,7 @@ var EllipsisTooltip = {};
|
|
|
22885
22926
|
}, [He, Be]);
|
|
22886
22927
|
var Ge = {};
|
|
22887
22928
|
Ne.tooltip === !0 ? Ge = {
|
|
22888
|
-
title: (
|
|
22929
|
+
title: (H = ye.text) !== null && H !== void 0 ? H : E
|
|
22889
22930
|
} : /* @__PURE__ */ v.isValidElement(Ne.tooltip) ? Ge = {
|
|
22890
22931
|
title: Ne.tooltip
|
|
22891
22932
|
} : (0, o.default)(Ne.tooltip) === "object" ? Ge = (0, a.default)({
|
|
@@ -23007,7 +23048,7 @@ var EllipsisTooltip = {};
|
|
|
23007
23048
|
return rt;
|
|
23008
23049
|
})));
|
|
23009
23050
|
});
|
|
23010
|
-
}), W =
|
|
23051
|
+
}), W = Y;
|
|
23011
23052
|
e.default = W;
|
|
23012
23053
|
})(Base);
|
|
23013
23054
|
(function(e) {
|
|
@@ -23061,13 +23102,13 @@ const Title$2 = /* @__PURE__ */ getDefaultExportFromCjs(Title$3), {
|
|
|
23061
23102
|
domain: j
|
|
23062
23103
|
});
|
|
23063
23104
|
if (c && d) {
|
|
23064
|
-
const
|
|
23105
|
+
const Y = f || await ConnectionProvider.getHandler().searchAllIds({
|
|
23065
23106
|
params: j,
|
|
23066
23107
|
model: t,
|
|
23067
23108
|
context: n
|
|
23068
23109
|
}), W = await ConnectionProvider.getHandler().readObjects({
|
|
23069
23110
|
model: t,
|
|
23070
|
-
ids:
|
|
23111
|
+
ids: Y,
|
|
23071
23112
|
fieldsToRetrieve: [c],
|
|
23072
23113
|
context: n
|
|
23073
23114
|
});
|
|
@@ -23090,14 +23131,14 @@ const Title$2 = /* @__PURE__ */ getDefaultExportFromCjs(Title$3), {
|
|
|
23090
23131
|
params: j,
|
|
23091
23132
|
model: t,
|
|
23092
23133
|
context: n
|
|
23093
|
-
}),
|
|
23134
|
+
}), Y = await ConnectionProvider.getHandler().readObjects({
|
|
23094
23135
|
model: t,
|
|
23095
23136
|
ids: V,
|
|
23096
23137
|
fieldsToRetrieve: [c],
|
|
23097
23138
|
context: n
|
|
23098
23139
|
});
|
|
23099
23140
|
return getValueForOperator({
|
|
23100
|
-
values:
|
|
23141
|
+
values: Y.map((W) => W[c]),
|
|
23101
23142
|
operator: d
|
|
23102
23143
|
});
|
|
23103
23144
|
} else
|
|
@@ -23111,11 +23152,11 @@ const Title$2 = /* @__PURE__ */ getDefaultExportFromCjs(Title$3), {
|
|
|
23111
23152
|
g(!0);
|
|
23112
23153
|
let j, V;
|
|
23113
23154
|
try {
|
|
23114
|
-
const
|
|
23155
|
+
const Y = await N({
|
|
23115
23156
|
domain: r,
|
|
23116
23157
|
isTotal: !1
|
|
23117
23158
|
});
|
|
23118
|
-
if (y(
|
|
23159
|
+
if (y(Y), o) {
|
|
23119
23160
|
const W = await ConnectionProvider.getHandler().evalDomain({
|
|
23120
23161
|
domain: o,
|
|
23121
23162
|
values: {},
|
|
@@ -23126,11 +23167,11 @@ const Title$2 = /* @__PURE__ */ getDefaultExportFromCjs(Title$3), {
|
|
|
23126
23167
|
isTotal: !0
|
|
23127
23168
|
}), _(j);
|
|
23128
23169
|
}
|
|
23129
|
-
if (j ? (V = Math.round(
|
|
23170
|
+
if (j ? (V = Math.round(Y / j * 100 * 100) / 100, h(V)) : h(0), a) {
|
|
23130
23171
|
const W = await ConnectionProvider.getHandler().parseCondition({
|
|
23131
23172
|
condition: a,
|
|
23132
23173
|
values: {
|
|
23133
|
-
value:
|
|
23174
|
+
value: Y,
|
|
23134
23175
|
percent: V
|
|
23135
23176
|
},
|
|
23136
23177
|
context: n
|
|
@@ -23142,7 +23183,7 @@ const Title$2 = /* @__PURE__ */ getDefaultExportFromCjs(Title$3), {
|
|
|
23142
23183
|
const W = await ConnectionProvider.getHandler().parseCondition({
|
|
23143
23184
|
condition: u,
|
|
23144
23185
|
values: {
|
|
23145
|
-
value:
|
|
23186
|
+
value: Y,
|
|
23146
23187
|
percent: V
|
|
23147
23188
|
},
|
|
23148
23189
|
context: n
|
|
@@ -23150,8 +23191,8 @@ const Title$2 = /* @__PURE__ */ getDefaultExportFromCjs(Title$3), {
|
|
|
23150
23191
|
M(W);
|
|
23151
23192
|
} else
|
|
23152
23193
|
M(u);
|
|
23153
|
-
} catch (
|
|
23154
|
-
O(JSON.stringify(
|
|
23194
|
+
} catch (Y) {
|
|
23195
|
+
O(JSON.stringify(Y));
|
|
23155
23196
|
}
|
|
23156
23197
|
g(!1);
|
|
23157
23198
|
}
|
|
@@ -23172,8 +23213,8 @@ const Title$2 = /* @__PURE__ */ getDefaultExportFromCjs(Title$3), {
|
|
|
23172
23213
|
}) : /* @__PURE__ */ jsx(Measure, {
|
|
23173
23214
|
bounds: !0,
|
|
23174
23215
|
onResize: (j) => {
|
|
23175
|
-
var V,
|
|
23176
|
-
C((V = j.bounds) == null ? void 0 : V.height), D((
|
|
23216
|
+
var V, Y;
|
|
23217
|
+
C((V = j.bounds) == null ? void 0 : V.height), D((Y = j.bounds) == null ? void 0 : Y.width);
|
|
23177
23218
|
},
|
|
23178
23219
|
children: ({
|
|
23179
23220
|
measureRef: j
|
|
@@ -23887,7 +23928,7 @@ const One2manyInput = (e) => {
|
|
|
23887
23928
|
} = d || {}, {
|
|
23888
23929
|
lang: x,
|
|
23889
23930
|
t: h
|
|
23890
|
-
} = useContext(LocaleContext), [v, _] = useState$1(!1), [b, C] = useState$1(!1), [w, D] = useState$1(), [$, S] = useState$1(!1), [P, M] = useState$1(!1), [A, O] = useState$1(), [N, F] = useState$1([]), [k, j] = useState$1(!1), V = useRef([]), [
|
|
23931
|
+
} = useContext(LocaleContext), [v, _] = useState$1(!1), [b, C] = useState$1(!1), [w, D] = useState$1(), [$, S] = useState$1(!1), [P, M] = useState$1(!1), [A, O] = useState$1(), [N, F] = useState$1([]), [k, j] = useState$1(!1), V = useRef([]), [Y, W] = useState$1(), L = useRef(), [U, H] = useState$1(void 0), {
|
|
23891
23932
|
readOnly: G,
|
|
23892
23933
|
relation: B,
|
|
23893
23934
|
context: I,
|
|
@@ -23936,7 +23977,7 @@ const One2manyInput = (e) => {
|
|
|
23936
23977
|
},
|
|
23937
23978
|
currentView: le || s
|
|
23938
23979
|
});
|
|
23939
|
-
return L.current || (L.current = xe.map((Ae) => Ae.id)), (s || le) === "tree" && we &&
|
|
23980
|
+
return L.current || (L.current = xe.map((Ae) => Ae.id)), (s || le) === "tree" && we && H(we), z(xe), xe;
|
|
23940
23981
|
} catch (xe) {
|
|
23941
23982
|
D(xe);
|
|
23942
23983
|
} finally {
|
|
@@ -24183,9 +24224,9 @@ const One2manyInput = (e) => {
|
|
|
24183
24224
|
readOnly: G
|
|
24184
24225
|
});
|
|
24185
24226
|
let le = [];
|
|
24186
|
-
if (X.some((we) => we.treeValues) && (le =
|
|
24227
|
+
if (X.some((we) => we.treeValues) && (le = Y ? sortResults({
|
|
24187
24228
|
resultsToSort: X.map((we) => we.treeValues),
|
|
24188
|
-
sorter:
|
|
24229
|
+
sorter: Y,
|
|
24189
24230
|
fields: {
|
|
24190
24231
|
...a.get("tree").fields,
|
|
24191
24232
|
...((de = a.get("form")) == null ? void 0 : de.fields) || {}
|
|
@@ -24203,7 +24244,7 @@ const One2manyInput = (e) => {
|
|
|
24203
24244
|
selectedRowKeys: N,
|
|
24204
24245
|
onChange: F
|
|
24205
24246
|
},
|
|
24206
|
-
sorter:
|
|
24247
|
+
sorter: Y,
|
|
24207
24248
|
onChangeSort: W,
|
|
24208
24249
|
context: {
|
|
24209
24250
|
...m == null ? void 0 : m(),
|
|
@@ -25070,7 +25111,7 @@ function ChangeViewButton(e) {
|
|
|
25070
25111
|
style: {
|
|
25071
25112
|
paddingRight: 20
|
|
25072
25113
|
},
|
|
25073
|
-
children: g.type
|
|
25114
|
+
children: g.type.charAt(0).toUpperCase() + g.type.slice(1)
|
|
25074
25115
|
}), /* @__PURE__ */ jsx(Col, {
|
|
25075
25116
|
flex: "none",
|
|
25076
25117
|
children: /* @__PURE__ */ jsx(CheckOutlined$4, {
|
|
@@ -25505,7 +25546,7 @@ function FormActionBar({
|
|
|
25505
25546
|
function V() {
|
|
25506
25547
|
l && l.length > d + 1 ? (c == null || c(d + 1), f == null || f(l[d + 1].id)) : l && d + 1 === l.length && (c == null || c(0), f == null || f(l[0].id));
|
|
25507
25548
|
}
|
|
25508
|
-
function
|
|
25549
|
+
function Y() {
|
|
25509
25550
|
l && d > 0 ? (c == null || c(d - 1), f == null || f(l[d - 1].id)) : l && d === 0 && (c == null || c(l.length - 1), f == null || f(l[l.length - 1].id));
|
|
25510
25551
|
}
|
|
25511
25552
|
function W() {
|
|
@@ -25548,7 +25589,7 @@ function FormActionBar({
|
|
|
25548
25589
|
x == null || x(!1);
|
|
25549
25590
|
}
|
|
25550
25591
|
}
|
|
25551
|
-
const
|
|
25592
|
+
const H = s || m || v || y;
|
|
25552
25593
|
function G(B) {
|
|
25553
25594
|
A == null || A({
|
|
25554
25595
|
actionData: B,
|
|
@@ -25569,7 +25610,7 @@ function FormActionBar({
|
|
|
25569
25610
|
}), /* @__PURE__ */ jsx(ActionButton, {
|
|
25570
25611
|
icon: /* @__PURE__ */ jsx(SaveOutlined, {}),
|
|
25571
25612
|
tooltip: S("save"),
|
|
25572
|
-
disabled: !o ||
|
|
25613
|
+
disabled: !o || H,
|
|
25573
25614
|
loading: s,
|
|
25574
25615
|
onClick: a
|
|
25575
25616
|
}), /* @__PURE__ */ jsx(ActionButton, {
|
|
@@ -25609,21 +25650,21 @@ function FormActionBar({
|
|
|
25609
25650
|
onChangeView: (B) => {
|
|
25610
25651
|
D == null || D(r), C == null || C(!1), n == null || n(B);
|
|
25611
25652
|
},
|
|
25612
|
-
disabled:
|
|
25653
|
+
disabled: H,
|
|
25613
25654
|
formHasChanges: o
|
|
25614
25655
|
}), separator$2(), /* @__PURE__ */ jsxs(Space, {
|
|
25615
25656
|
children: [/* @__PURE__ */ jsx(ActionButton, {
|
|
25616
25657
|
icon: /* @__PURE__ */ jsx(LeftOutlined, {}),
|
|
25617
25658
|
tooltip: S("previous"),
|
|
25618
|
-
disabled:
|
|
25659
|
+
disabled: H,
|
|
25619
25660
|
loading: !1,
|
|
25620
25661
|
onClick: () => {
|
|
25621
|
-
j(
|
|
25662
|
+
j(Y);
|
|
25622
25663
|
}
|
|
25623
25664
|
}), /* @__PURE__ */ jsx(ActionButton, {
|
|
25624
25665
|
icon: /* @__PURE__ */ jsx(RightOutlined, {}),
|
|
25625
25666
|
tooltip: S("next"),
|
|
25626
|
-
disabled:
|
|
25667
|
+
disabled: H,
|
|
25627
25668
|
loading: !1,
|
|
25628
25669
|
onClick: () => {
|
|
25629
25670
|
j(V);
|
|
@@ -25631,7 +25672,7 @@ function FormActionBar({
|
|
|
25631
25672
|
})]
|
|
25632
25673
|
}), separator$2(), /* @__PURE__ */ jsx(DropdownButton, {
|
|
25633
25674
|
icon: /* @__PURE__ */ jsx(ThunderboltOutlined, {}),
|
|
25634
|
-
disabled:
|
|
25675
|
+
disabled: H,
|
|
25635
25676
|
tooltip: S("actions"),
|
|
25636
25677
|
items: e == null ? void 0 : e.action,
|
|
25637
25678
|
onItemClick: async (B) => {
|
|
@@ -25641,7 +25682,7 @@ function FormActionBar({
|
|
|
25641
25682
|
}
|
|
25642
25683
|
}), /* @__PURE__ */ jsx(DropdownButton, {
|
|
25643
25684
|
icon: /* @__PURE__ */ jsx(PrinterOutlined, {}),
|
|
25644
|
-
disabled:
|
|
25685
|
+
disabled: H,
|
|
25645
25686
|
tooltip: S("reports"),
|
|
25646
25687
|
items: e == null ? void 0 : e.print,
|
|
25647
25688
|
onItemClick: async (B) => {
|
|
@@ -25660,7 +25701,7 @@ function FormActionBar({
|
|
|
25660
25701
|
}
|
|
25661
25702
|
}), /* @__PURE__ */ jsx(DropdownButton, {
|
|
25662
25703
|
icon: /* @__PURE__ */ jsx(EnterOutlined$4, {}),
|
|
25663
|
-
disabled:
|
|
25704
|
+
disabled: H,
|
|
25664
25705
|
tooltip: S("related"),
|
|
25665
25706
|
items: e == null ? void 0 : e.relate,
|
|
25666
25707
|
onItemClick: async (B) => {
|
|
@@ -25675,7 +25716,7 @@ function FormActionBar({
|
|
|
25675
25716
|
});
|
|
25676
25717
|
}
|
|
25677
25718
|
}), /* @__PURE__ */ jsx(AttachmentsButton, {
|
|
25678
|
-
disabled:
|
|
25719
|
+
disabled: H,
|
|
25679
25720
|
attachments: _,
|
|
25680
25721
|
onAddNewAttachment: async () => {
|
|
25681
25722
|
const B = await saveDocument({
|
|
@@ -26418,7 +26459,7 @@ const GraphActionView = (e) => {
|
|
|
26418
26459
|
searchFilterLoading: k,
|
|
26419
26460
|
searchError: j,
|
|
26420
26461
|
offset: V,
|
|
26421
|
-
tableRefreshing:
|
|
26462
|
+
tableRefreshing: Y
|
|
26422
26463
|
} = useSearch({
|
|
26423
26464
|
model: n,
|
|
26424
26465
|
setSearchTreeNameSearch: C,
|
|
@@ -26468,7 +26509,7 @@ const GraphActionView = (e) => {
|
|
|
26468
26509
|
searchVisible: x,
|
|
26469
26510
|
searchValues: P,
|
|
26470
26511
|
showLimitOptions: !1
|
|
26471
|
-
}),
|
|
26512
|
+
}), Y ? /* @__PURE__ */ jsx(Spin, {}) : /* @__PURE__ */ jsx(Graph, {
|
|
26472
26513
|
ref: l,
|
|
26473
26514
|
view_id: t.view_id,
|
|
26474
26515
|
model: n,
|
|
@@ -26614,17 +26655,17 @@ function TreeActionBar(e) {
|
|
|
26614
26655
|
confirmMessage: M("confirmRemove"),
|
|
26615
26656
|
lang: A,
|
|
26616
26657
|
onOk: () => {
|
|
26617
|
-
|
|
26658
|
+
Y();
|
|
26618
26659
|
}
|
|
26619
26660
|
});
|
|
26620
26661
|
}
|
|
26621
|
-
async function
|
|
26622
|
-
var
|
|
26662
|
+
async function Y() {
|
|
26663
|
+
var H;
|
|
26623
26664
|
try {
|
|
26624
26665
|
o == null || o(!0), await ConnectionProvider.getHandler().delete({
|
|
26625
26666
|
model: c,
|
|
26626
26667
|
ids: a.map((G) => G.id)
|
|
26627
|
-
}), f == null || f(void 0), p == null || p(void 0), (
|
|
26668
|
+
}), f == null || f(void 0), p == null || p(void 0), (H = d == null ? void 0 : d.current) == null || H.refreshResults();
|
|
26628
26669
|
} catch (G) {
|
|
26629
26670
|
showDialog$8(G);
|
|
26630
26671
|
} finally {
|
|
@@ -26632,7 +26673,7 @@ function TreeActionBar(e) {
|
|
|
26632
26673
|
}
|
|
26633
26674
|
}
|
|
26634
26675
|
async function W() {
|
|
26635
|
-
var
|
|
26676
|
+
var H;
|
|
26636
26677
|
try {
|
|
26637
26678
|
l == null || l(!0);
|
|
26638
26679
|
const G = a[0].id;
|
|
@@ -26642,16 +26683,16 @@ function TreeActionBar(e) {
|
|
|
26642
26683
|
context: {
|
|
26643
26684
|
...$
|
|
26644
26685
|
}
|
|
26645
|
-
}) && ((
|
|
26686
|
+
}) && ((H = d == null ? void 0 : d.current) == null || H.refreshResults());
|
|
26646
26687
|
} catch (G) {
|
|
26647
26688
|
showDialog$8(G);
|
|
26648
26689
|
} finally {
|
|
26649
26690
|
l == null || l(!1);
|
|
26650
26691
|
}
|
|
26651
26692
|
}
|
|
26652
|
-
function L(
|
|
26693
|
+
function L(H) {
|
|
26653
26694
|
N == null || N({
|
|
26654
|
-
actionData:
|
|
26695
|
+
actionData: H,
|
|
26655
26696
|
values: {
|
|
26656
26697
|
active_id: a == null ? void 0 : a.map((G) => G.id)[0],
|
|
26657
26698
|
active_ids: a == null ? void 0 : a.map((G) => G.id)
|
|
@@ -26674,8 +26715,8 @@ function TreeActionBar(e) {
|
|
|
26674
26715
|
children: [/* @__PURE__ */ jsx(SearchBar, {
|
|
26675
26716
|
disabled: u || s || v,
|
|
26676
26717
|
searchText: h,
|
|
26677
|
-
onSearch: (
|
|
26678
|
-
|
|
26718
|
+
onSearch: (H) => {
|
|
26719
|
+
H && H.trim().length > 0 ? x == null || x(H) : x == null || x(void 0);
|
|
26679
26720
|
}
|
|
26680
26721
|
}), !S && /* @__PURE__ */ jsx(ButtonWithBadge, {
|
|
26681
26722
|
icon: /* @__PURE__ */ jsx(FilterOutlined, {
|
|
@@ -26719,15 +26760,15 @@ function TreeActionBar(e) {
|
|
|
26719
26760
|
disabled: u || s || v,
|
|
26720
26761
|
loading: !1,
|
|
26721
26762
|
onClick: () => {
|
|
26722
|
-
var
|
|
26723
|
-
(
|
|
26763
|
+
var H;
|
|
26764
|
+
(H = d == null ? void 0 : d.current) == null || H.refreshResults();
|
|
26724
26765
|
}
|
|
26725
26766
|
}), !S && /* @__PURE__ */ jsxs(Fragment, {
|
|
26726
26767
|
children: [separator$1(), /* @__PURE__ */ jsx(ChangeViewButton, {
|
|
26727
26768
|
currentView: r,
|
|
26728
26769
|
availableViews: t,
|
|
26729
|
-
onChangeView: (
|
|
26730
|
-
_ == null || _(r), n == null || n(
|
|
26770
|
+
onChangeView: (H) => {
|
|
26771
|
+
_ == null || _(r), n == null || n(H);
|
|
26731
26772
|
},
|
|
26732
26773
|
previousView: b,
|
|
26733
26774
|
disabled: v
|
|
@@ -26737,19 +26778,19 @@ function TreeActionBar(e) {
|
|
|
26737
26778
|
disabled: !(a && (a == null ? void 0 : a.length) > 0) || v,
|
|
26738
26779
|
tooltip: M("actions"),
|
|
26739
26780
|
items: P == null ? void 0 : P.action,
|
|
26740
|
-
onItemClick: (
|
|
26741
|
-
!
|
|
26781
|
+
onItemClick: (H) => {
|
|
26782
|
+
!H || L(H);
|
|
26742
26783
|
}
|
|
26743
26784
|
}), /* @__PURE__ */ jsx(DropdownButton, {
|
|
26744
26785
|
icon: /* @__PURE__ */ jsx(PrinterOutlined, {}),
|
|
26745
26786
|
disabled: !(a && (a == null ? void 0 : a.length) > 0) || v,
|
|
26746
26787
|
tooltip: M("reports"),
|
|
26747
26788
|
items: P == null ? void 0 : P.print,
|
|
26748
|
-
onItemClick: (
|
|
26749
|
-
!
|
|
26750
|
-
...
|
|
26789
|
+
onItemClick: (H) => {
|
|
26790
|
+
!H || L({
|
|
26791
|
+
...H,
|
|
26751
26792
|
datas: {
|
|
26752
|
-
...
|
|
26793
|
+
...H.datas || {},
|
|
26753
26794
|
ids: a.map((G) => G.id)
|
|
26754
26795
|
}
|
|
26755
26796
|
});
|
|
@@ -26791,8 +26832,8 @@ function TreeActionBar(e) {
|
|
|
26791
26832
|
id: "export",
|
|
26792
26833
|
name: M("advancedExport")
|
|
26793
26834
|
}],
|
|
26794
|
-
onItemClick: (
|
|
26795
|
-
if (
|
|
26835
|
+
onItemClick: (H) => {
|
|
26836
|
+
if (H.id === "print_screen") {
|
|
26796
26837
|
let G = (a == null ? void 0 : a.map((B) => B.id)) || [];
|
|
26797
26838
|
G.length === 0 && (G = (C == null ? void 0 : C.map((B) => B.id)) || []), L({
|
|
26798
26839
|
id: -1,
|
|
@@ -26980,7 +27021,7 @@ function ActionView(e, t) {
|
|
|
26980
27021
|
action_type: m,
|
|
26981
27022
|
treeExpandable: y = !1,
|
|
26982
27023
|
limit: x
|
|
26983
|
-
} = e, [h, v] = useState$1(), [_, b] = useState$1([]), [C, w] = useState$1(!0), D = p || void 0, [$, S] = useState$1(D), [P, M] = useState$1([]), [A, O] = useState$1(), [N, F] = useState$1([]), [k, j] = useState$1(), [V,
|
|
27024
|
+
} = e, [h, v] = useState$1(), [_, b] = useState$1([]), [C, w] = useState$1(!0), D = p || void 0, [$, S] = useState$1(D), [P, M] = useState$1([]), [A, O] = useState$1(), [N, F] = useState$1([]), [k, j] = useState$1(), [V, Y] = useState$1(0), [W, L] = useState$1(!1), [U, H] = useState$1(!1), [G, B] = useState$1(), {
|
|
26984
27025
|
t: I
|
|
26985
27026
|
} = useContext(LocaleContext), q = useRef(), K = useRef(), Q = useContext(TabManagerContext), {
|
|
26986
27027
|
setCurrentView: X,
|
|
@@ -27087,7 +27128,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
|
|
|
27087
27128
|
}
|
|
27088
27129
|
async function _e(ie) {
|
|
27089
27130
|
var me;
|
|
27090
|
-
|
|
27131
|
+
H(!0);
|
|
27091
27132
|
const ge = N.findIndex((oe) => oe.id === ie);
|
|
27092
27133
|
let ue;
|
|
27093
27134
|
if (ge === -1) {
|
|
@@ -27100,12 +27141,12 @@ Please, make sure the view ids on the fields_view_get responses are the same as
|
|
|
27100
27141
|
} catch {
|
|
27101
27142
|
}
|
|
27102
27143
|
if (!ue) {
|
|
27103
|
-
|
|
27144
|
+
H(!1), L(!1), showDialog$7(I("idNotFound"));
|
|
27104
27145
|
return;
|
|
27105
27146
|
}
|
|
27106
27147
|
} else
|
|
27107
27148
|
ue = N[ge];
|
|
27108
|
-
|
|
27149
|
+
H(!1), L(!1);
|
|
27109
27150
|
const he = o.find((oe) => oe[1] === "form");
|
|
27110
27151
|
Z({
|
|
27111
27152
|
domain: [],
|
|
@@ -27202,7 +27243,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
|
|
|
27202
27243
|
sorter: k,
|
|
27203
27244
|
setSorter: j,
|
|
27204
27245
|
totalItems: V,
|
|
27205
|
-
setTotalItems:
|
|
27246
|
+
setTotalItems: Y,
|
|
27206
27247
|
selectedRowItems: P,
|
|
27207
27248
|
setSelectedRowItems: M,
|
|
27208
27249
|
setSearchTreeNameSearch: B,
|
|
@@ -27408,7 +27449,7 @@ function DashboardTree(e) {
|
|
|
27408
27449
|
domain: o = [],
|
|
27409
27450
|
visible: s = !0,
|
|
27410
27451
|
parentContext: u = {}
|
|
27411
|
-
} = e, [l, c] = useState$1(!1), [d, f] = useState$1(!1), [p, g] = useState$1(), [m, y] = useState$1(), [x, h] = useState$1(), [v, _] = useState$1(1), [b, C] = useState$1(0), w = useRef(DEFAULT_SEARCH_LIMIT), D = useRef([]), [$, S] = useState$1(0), [P, M] = useState$1([]), [A, O] = useState$1(void 0), [N, F] = useState$1(), [k, j] = useState$1(), [V,
|
|
27452
|
+
} = e, [l, c] = useState$1(!1), [d, f] = useState$1(!1), [p, g] = useState$1(), [m, y] = useState$1(), [x, h] = useState$1(), [v, _] = useState$1(1), [b, C] = useState$1(0), w = useRef(DEFAULT_SEARCH_LIMIT), D = useRef([]), [$, S] = useState$1(0), [P, M] = useState$1([]), [A, O] = useState$1(void 0), [N, F] = useState$1(), [k, j] = useState$1(), [V, Y] = useState$1(), [W, L] = useState$1(!1), U = useRef([]), H = (E) => {
|
|
27412
27453
|
L(!0), _(E), C((E - 1) * w.current);
|
|
27413
27454
|
}, G = async () => {
|
|
27414
27455
|
const E = U.current.length > 0 ? U.current : o, T = mergeParams(D.current, E), {
|
|
@@ -27451,11 +27492,11 @@ function DashboardTree(e) {
|
|
|
27451
27492
|
!d || s && B();
|
|
27452
27493
|
}, [v, b, d, s]);
|
|
27453
27494
|
const I = async (E) => {
|
|
27454
|
-
f(!1), c(!0),
|
|
27495
|
+
f(!1), c(!0), Y(void 0);
|
|
27455
27496
|
try {
|
|
27456
27497
|
E === "action" ? await q() : await K(), f(!0);
|
|
27457
27498
|
} catch (T) {
|
|
27458
|
-
|
|
27499
|
+
Y(T);
|
|
27459
27500
|
} finally {
|
|
27460
27501
|
c(!1);
|
|
27461
27502
|
}
|
|
@@ -27509,7 +27550,7 @@ function DashboardTree(e) {
|
|
|
27509
27550
|
page: v,
|
|
27510
27551
|
treeView: m,
|
|
27511
27552
|
results: P,
|
|
27512
|
-
onRequestPageChange:
|
|
27553
|
+
onRequestPageChange: H,
|
|
27513
27554
|
loading: W,
|
|
27514
27555
|
onRowClicked: Q,
|
|
27515
27556
|
colorsForResults: A,
|
|
@@ -27728,11 +27769,11 @@ function Dashboard(e, t) {
|
|
|
27728
27769
|
key: k,
|
|
27729
27770
|
title: j,
|
|
27730
27771
|
views: V,
|
|
27731
|
-
model:
|
|
27772
|
+
model: Y,
|
|
27732
27773
|
context: W,
|
|
27733
27774
|
domain: L,
|
|
27734
27775
|
initialView: U,
|
|
27735
|
-
limit:
|
|
27776
|
+
limit: H
|
|
27736
27777
|
} = P;
|
|
27737
27778
|
let G = {};
|
|
27738
27779
|
try {
|
|
@@ -27749,19 +27790,19 @@ function Dashboard(e, t) {
|
|
|
27749
27790
|
if ((U == null ? void 0 : U.type) === "graph")
|
|
27750
27791
|
B = /* @__PURE__ */ jsx(Graph, {
|
|
27751
27792
|
view_id: V.filter((K) => K[1] === "graph")[0][0],
|
|
27752
|
-
model:
|
|
27793
|
+
model: Y,
|
|
27753
27794
|
context: W,
|
|
27754
27795
|
domain: L,
|
|
27755
|
-
limit:
|
|
27796
|
+
limit: H
|
|
27756
27797
|
});
|
|
27757
27798
|
else if ((U == null ? void 0 : U.type) === "form")
|
|
27758
27799
|
B = /* @__PURE__ */ jsx(DashboardForm, {
|
|
27759
|
-
model:
|
|
27800
|
+
model: Y,
|
|
27760
27801
|
actionDomain: L
|
|
27761
27802
|
});
|
|
27762
27803
|
else if ((U == null ? void 0 : U.type) === "tree")
|
|
27763
27804
|
B = /* @__PURE__ */ jsx(DashboardTree, {
|
|
27764
|
-
model:
|
|
27805
|
+
model: Y,
|
|
27765
27806
|
domain: L,
|
|
27766
27807
|
view_id: V.filter((K) => K[1] === "tree")[0][0],
|
|
27767
27808
|
onRowClicked: (K) => {
|
|
@@ -27799,13 +27840,13 @@ function Dashboard(e, t) {
|
|
|
27799
27840
|
tabKey: k,
|
|
27800
27841
|
title: j,
|
|
27801
27842
|
views: V,
|
|
27802
|
-
model:
|
|
27843
|
+
model: Y,
|
|
27803
27844
|
context: W,
|
|
27804
27845
|
domain: L,
|
|
27805
27846
|
setCanWeClose: () => {
|
|
27806
27847
|
},
|
|
27807
27848
|
initialView: K,
|
|
27808
|
-
limit:
|
|
27849
|
+
limit: H
|
|
27809
27850
|
});
|
|
27810
27851
|
}
|
|
27811
27852
|
let I;
|
|
@@ -27997,10 +28038,17 @@ const Dashboard$1 = forwardRef(Dashboard), Tag = (e) => /* @__PURE__ */ jsx(Fiel
|
|
|
27997
28038
|
})
|
|
27998
28039
|
}), MarkdownInput = (e) => {
|
|
27999
28040
|
const {
|
|
28000
|
-
value: t
|
|
28041
|
+
value: t,
|
|
28042
|
+
ooui: r
|
|
28001
28043
|
} = e;
|
|
28002
|
-
return /* @__PURE__ */ jsx(
|
|
28003
|
-
|
|
28044
|
+
return /* @__PURE__ */ jsx("div", {
|
|
28045
|
+
style: {
|
|
28046
|
+
height: r.height ? r.height + "px" : "100%"
|
|
28047
|
+
},
|
|
28048
|
+
children: /* @__PURE__ */ jsx(ReactMarkdown, {
|
|
28049
|
+
children: t,
|
|
28050
|
+
className: "ant-typography"
|
|
28051
|
+
})
|
|
28004
28052
|
});
|
|
28005
28053
|
}, Radio = (e) => {
|
|
28006
28054
|
const {
|
|
@@ -28198,16 +28246,16 @@ function RootView(e, t) {
|
|
|
28198
28246
|
res_model: k,
|
|
28199
28247
|
views: j,
|
|
28200
28248
|
name: V,
|
|
28201
|
-
target:
|
|
28249
|
+
target: Y,
|
|
28202
28250
|
view_type: W,
|
|
28203
28251
|
limit: L
|
|
28204
|
-
} = P, U = W === "tree",
|
|
28252
|
+
} = P, U = W === "tree", H = [];
|
|
28205
28253
|
for (const B of j) {
|
|
28206
28254
|
const [I, q] = B;
|
|
28207
28255
|
if (I)
|
|
28208
|
-
|
|
28256
|
+
H.push(B);
|
|
28209
28257
|
else if (q === "dashboard")
|
|
28210
|
-
|
|
28258
|
+
H.push([void 0, "dashboard"]);
|
|
28211
28259
|
else {
|
|
28212
28260
|
const {
|
|
28213
28261
|
view_id: K
|
|
@@ -28220,18 +28268,18 @@ function RootView(e, t) {
|
|
|
28220
28268
|
...N
|
|
28221
28269
|
}
|
|
28222
28270
|
});
|
|
28223
|
-
|
|
28271
|
+
H.push([K, q]);
|
|
28224
28272
|
}
|
|
28225
28273
|
}
|
|
28226
28274
|
let G;
|
|
28227
28275
|
if (D) {
|
|
28228
|
-
const [B, I] =
|
|
28276
|
+
const [B, I] = H.find(([q, K]) => K === D);
|
|
28229
28277
|
G = {
|
|
28230
28278
|
id: B,
|
|
28231
28279
|
type: I
|
|
28232
28280
|
};
|
|
28233
28281
|
} else {
|
|
28234
|
-
const [B, I] =
|
|
28282
|
+
const [B, I] = H[0];
|
|
28235
28283
|
G = {
|
|
28236
28284
|
id: B,
|
|
28237
28285
|
type: I
|
|
@@ -28244,9 +28292,9 @@ function RootView(e, t) {
|
|
|
28244
28292
|
...N
|
|
28245
28293
|
},
|
|
28246
28294
|
model: k,
|
|
28247
|
-
views:
|
|
28295
|
+
views: H,
|
|
28248
28296
|
title: V,
|
|
28249
|
-
target:
|
|
28297
|
+
target: Y,
|
|
28250
28298
|
initialView: G,
|
|
28251
28299
|
action_type: M,
|
|
28252
28300
|
action_id: O,
|
|
@@ -28290,7 +28338,7 @@ function RootView(e, t) {
|
|
|
28290
28338
|
} = b, [k, j] = A[0], V = {
|
|
28291
28339
|
id: k,
|
|
28292
28340
|
type: j
|
|
28293
|
-
},
|
|
28341
|
+
}, Y = parseContext({
|
|
28294
28342
|
context: P,
|
|
28295
28343
|
values: {
|
|
28296
28344
|
...w,
|
|
@@ -28309,7 +28357,7 @@ function RootView(e, t) {
|
|
|
28309
28357
|
fields: C,
|
|
28310
28358
|
context: {
|
|
28311
28359
|
...a,
|
|
28312
|
-
...
|
|
28360
|
+
...Y
|
|
28313
28361
|
}
|
|
28314
28362
|
}) : [];
|
|
28315
28363
|
_({
|
|
@@ -28318,7 +28366,7 @@ function RootView(e, t) {
|
|
|
28318
28366
|
views: A,
|
|
28319
28367
|
context: {
|
|
28320
28368
|
...a,
|
|
28321
|
-
...
|
|
28369
|
+
...Y
|
|
28322
28370
|
},
|
|
28323
28371
|
domain: W,
|
|
28324
28372
|
title: N,
|
|
@@ -28355,7 +28403,7 @@ function RootView(e, t) {
|
|
|
28355
28403
|
target: k,
|
|
28356
28404
|
view_type: j,
|
|
28357
28405
|
limit: V
|
|
28358
|
-
} = P,
|
|
28406
|
+
} = P, Y = j === "tree", W = [];
|
|
28359
28407
|
for (const G of N) {
|
|
28360
28408
|
const [B, I] = G;
|
|
28361
28409
|
if (B)
|
|
@@ -28383,7 +28431,7 @@ function RootView(e, t) {
|
|
|
28383
28431
|
L = void 0, U = G[1];
|
|
28384
28432
|
} else
|
|
28385
28433
|
[L, U] = W.find((G) => G[0] === void 0 ? !1 : G[0] === $);
|
|
28386
|
-
const
|
|
28434
|
+
const H = {
|
|
28387
28435
|
id: L,
|
|
28388
28436
|
type: U
|
|
28389
28437
|
};
|
|
@@ -28397,11 +28445,11 @@ function RootView(e, t) {
|
|
|
28397
28445
|
views: W,
|
|
28398
28446
|
title: F,
|
|
28399
28447
|
target: k,
|
|
28400
|
-
initialView:
|
|
28448
|
+
initialView: H,
|
|
28401
28449
|
action_id: C,
|
|
28402
28450
|
action_type: w,
|
|
28403
28451
|
res_id: D,
|
|
28404
|
-
treeExpandable:
|
|
28452
|
+
treeExpandable: Y,
|
|
28405
28453
|
limit: V
|
|
28406
28454
|
});
|
|
28407
28455
|
}
|
|
@@ -28441,7 +28489,7 @@ function RootView(e, t) {
|
|
|
28441
28489
|
}) {
|
|
28442
28490
|
const V = v4();
|
|
28443
28491
|
if (S !== "current") {
|
|
28444
|
-
const
|
|
28492
|
+
const Y = await ConnectionProvider.getHandler().getView({
|
|
28445
28493
|
model: w,
|
|
28446
28494
|
type: "form",
|
|
28447
28495
|
id: P.type === "form" ? P.id : void 0,
|
|
@@ -28453,7 +28501,7 @@ function RootView(e, t) {
|
|
|
28453
28501
|
f.current.openActionModal({
|
|
28454
28502
|
domain: b,
|
|
28455
28503
|
model: w,
|
|
28456
|
-
formView:
|
|
28504
|
+
formView: Y,
|
|
28457
28505
|
context: {
|
|
28458
28506
|
...a,
|
|
28459
28507
|
...C
|
|
@@ -28462,11 +28510,11 @@ function RootView(e, t) {
|
|
|
28462
28510
|
action_id: M,
|
|
28463
28511
|
action_type: A,
|
|
28464
28512
|
res_id: O,
|
|
28465
|
-
view_id:
|
|
28513
|
+
view_id: Y.view_id
|
|
28466
28514
|
}
|
|
28467
28515
|
});
|
|
28468
28516
|
} else {
|
|
28469
|
-
const
|
|
28517
|
+
const Y = P && Array.isArray(P.id) ? {
|
|
28470
28518
|
...P,
|
|
28471
28519
|
id: P.id[0]
|
|
28472
28520
|
} : P;
|
|
@@ -28489,7 +28537,7 @@ function RootView(e, t) {
|
|
|
28489
28537
|
},
|
|
28490
28538
|
domain: b,
|
|
28491
28539
|
setCanWeClose: g,
|
|
28492
|
-
initialView:
|
|
28540
|
+
initialView: Y,
|
|
28493
28541
|
res_id: O,
|
|
28494
28542
|
formDefaultValues: N,
|
|
28495
28543
|
formForcedValues: F,
|
|
@@ -28680,13 +28728,13 @@ const FavouriteButton = (e) => {
|
|
|
28680
28728
|
return;
|
|
28681
28729
|
}
|
|
28682
28730
|
const V = b.view_id;
|
|
28683
|
-
let
|
|
28684
|
-
b.type === "form" && (
|
|
28731
|
+
let Y = !1;
|
|
28732
|
+
b.type === "form" && (Y = C || !1);
|
|
28685
28733
|
const W = await r({
|
|
28686
28734
|
action_id: k,
|
|
28687
28735
|
action_type: j,
|
|
28688
28736
|
view_id: V,
|
|
28689
|
-
res_id:
|
|
28737
|
+
res_id: Y
|
|
28690
28738
|
});
|
|
28691
28739
|
W !== !1 && m(W), s(W !== !1);
|
|
28692
28740
|
}
|
|
@@ -28773,16 +28821,16 @@ const FavouriteButton = (e) => {
|
|
|
28773
28821
|
id: k,
|
|
28774
28822
|
type: j
|
|
28775
28823
|
} = (F == null ? void 0 : F.action) || {}, V = b.view_id;
|
|
28776
|
-
let
|
|
28824
|
+
let Y = !1;
|
|
28777
28825
|
if (!k || !j) {
|
|
28778
28826
|
s(!1);
|
|
28779
28827
|
return;
|
|
28780
28828
|
}
|
|
28781
|
-
b.type === "form" && (
|
|
28829
|
+
b.type === "form" && (Y = C || !1), await n({
|
|
28782
28830
|
action_id: k,
|
|
28783
28831
|
action_type: j,
|
|
28784
28832
|
view_id: V,
|
|
28785
|
-
res_id:
|
|
28833
|
+
res_id: Y
|
|
28786
28834
|
});
|
|
28787
28835
|
}
|
|
28788
28836
|
await D(), s(!o);
|