@gisce/react-ooui 1.0.22 → 1.0.24-rc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/context/ContentRootContext.d.ts.map +1 -1
- package/dist/react-ooui.es.js +727 -744
- package/dist/react-ooui.es.js.map +1 -1
- package/dist/react-ooui.umd.js +14 -14
- package/dist/react-ooui.umd.js.map +1 -1
- package/dist/widgets/base/Binary.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/context/ContentRootContext.tsx +2 -19
- package/src/widgets/base/Binary.tsx +2 -1
- package/src/widgets/base/many2one/Many2one.tsx +2 -2
package/dist/react-ooui.es.js
CHANGED
|
@@ -4093,8 +4093,8 @@ const {
|
|
|
4093
4093
|
if (x)
|
|
4094
4094
|
return /* @__PURE__ */ jsx(LoadingOutlined$3, {});
|
|
4095
4095
|
if (u) {
|
|
4096
|
-
const
|
|
4097
|
-
return
|
|
4096
|
+
const O = iconMapper(u);
|
|
4097
|
+
return O && /* @__PURE__ */ jsx(O, {});
|
|
4098
4098
|
}
|
|
4099
4099
|
}
|
|
4100
4100
|
async function C() {
|
|
@@ -4104,7 +4104,7 @@ const {
|
|
|
4104
4104
|
context: h
|
|
4105
4105
|
}), g(!1));
|
|
4106
4106
|
}
|
|
4107
|
-
function
|
|
4107
|
+
function w() {
|
|
4108
4108
|
if (l) {
|
|
4109
4109
|
showDialog$9({
|
|
4110
4110
|
confirmMessage: l,
|
|
@@ -4123,7 +4123,7 @@ const {
|
|
|
4123
4123
|
}),
|
|
4124
4124
|
children: /* @__PURE__ */ jsxs(Dropdown.Button, {
|
|
4125
4125
|
disabled: !s || p,
|
|
4126
|
-
onClick:
|
|
4126
|
+
onClick: w,
|
|
4127
4127
|
icon: /* @__PURE__ */ jsx(DownOutlined, {}),
|
|
4128
4128
|
type: d ? "primary" : void 0,
|
|
4129
4129
|
overlay: /* @__PURE__ */ jsx(Items, {
|
|
@@ -4175,8 +4175,8 @@ const {
|
|
|
4175
4175
|
if (v)
|
|
4176
4176
|
return /* @__PURE__ */ jsx(LoadingOutlined$3, {});
|
|
4177
4177
|
if (u) {
|
|
4178
|
-
const
|
|
4179
|
-
return
|
|
4178
|
+
const w = iconMapper(u);
|
|
4179
|
+
return w && /* @__PURE__ */ jsx(w, {});
|
|
4180
4180
|
}
|
|
4181
4181
|
}
|
|
4182
4182
|
return /* @__PURE__ */ jsx(Menu.Item, {
|
|
@@ -4585,65 +4585,65 @@ function requireReactIs_production_min() {
|
|
|
4585
4585
|
return reactIs_production_min;
|
|
4586
4586
|
hasRequiredReactIs_production_min = 1;
|
|
4587
4587
|
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, c = e ? Symbol.for("react.context") : 60110, l = e ? Symbol.for("react.async_mode") : 60111, u = e ? Symbol.for("react.concurrent_mode") : 60111, d = e ? Symbol.for("react.forward_ref") : 60112, f = e ? Symbol.for("react.suspense") : 60113, h = e ? Symbol.for("react.suspense_list") : 60120, p = e ? Symbol.for("react.memo") : 60115, I = e ? Symbol.for("react.lazy") : 60116, v = e ? Symbol.for("react.block") : 60121, x = e ? Symbol.for("react.fundamental") : 60117, g = e ? Symbol.for("react.responder") : 60118, m = e ? Symbol.for("react.scope") : 60119;
|
|
4588
|
-
function y(
|
|
4589
|
-
if (typeof
|
|
4590
|
-
var
|
|
4591
|
-
switch (
|
|
4588
|
+
function y(w) {
|
|
4589
|
+
if (typeof w == "object" && w !== null) {
|
|
4590
|
+
var O = w.$$typeof;
|
|
4591
|
+
switch (O) {
|
|
4592
4592
|
case t:
|
|
4593
|
-
switch (
|
|
4593
|
+
switch (w = w.type, w) {
|
|
4594
4594
|
case l:
|
|
4595
4595
|
case u:
|
|
4596
4596
|
case r:
|
|
4597
4597
|
case a:
|
|
4598
4598
|
case o:
|
|
4599
4599
|
case f:
|
|
4600
|
-
return
|
|
4600
|
+
return w;
|
|
4601
4601
|
default:
|
|
4602
|
-
switch (
|
|
4602
|
+
switch (w = w && w.$$typeof, w) {
|
|
4603
4603
|
case c:
|
|
4604
4604
|
case d:
|
|
4605
4605
|
case I:
|
|
4606
4606
|
case p:
|
|
4607
4607
|
case s:
|
|
4608
|
-
return O;
|
|
4609
|
-
default:
|
|
4610
4608
|
return w;
|
|
4609
|
+
default:
|
|
4610
|
+
return O;
|
|
4611
4611
|
}
|
|
4612
4612
|
}
|
|
4613
4613
|
case n:
|
|
4614
|
-
return
|
|
4614
|
+
return O;
|
|
4615
4615
|
}
|
|
4616
4616
|
}
|
|
4617
4617
|
}
|
|
4618
|
-
function C(
|
|
4619
|
-
return y(
|
|
4620
|
-
}
|
|
4621
|
-
return reactIs_production_min.AsyncMode = l, reactIs_production_min.ConcurrentMode = u, reactIs_production_min.ContextConsumer = c, reactIs_production_min.ContextProvider = s, reactIs_production_min.Element = t, reactIs_production_min.ForwardRef = d, reactIs_production_min.Fragment = r, reactIs_production_min.Lazy = I, reactIs_production_min.Memo = p, reactIs_production_min.Portal = n, reactIs_production_min.Profiler = a, reactIs_production_min.StrictMode = o, reactIs_production_min.Suspense = f, reactIs_production_min.isAsyncMode = function(
|
|
4622
|
-
return C(
|
|
4623
|
-
}, reactIs_production_min.isConcurrentMode = C, reactIs_production_min.isContextConsumer = function(
|
|
4624
|
-
return y(
|
|
4625
|
-
}, reactIs_production_min.isContextProvider = function(
|
|
4626
|
-
return y(
|
|
4627
|
-
}, reactIs_production_min.isElement = function(
|
|
4628
|
-
return typeof
|
|
4629
|
-
}, reactIs_production_min.isForwardRef = function(
|
|
4630
|
-
return y(
|
|
4631
|
-
}, reactIs_production_min.isFragment = function(
|
|
4632
|
-
return y(
|
|
4633
|
-
}, reactIs_production_min.isLazy = function(
|
|
4634
|
-
return y(
|
|
4635
|
-
}, reactIs_production_min.isMemo = function(
|
|
4636
|
-
return y(
|
|
4637
|
-
}, reactIs_production_min.isPortal = function(
|
|
4638
|
-
return y(
|
|
4639
|
-
}, reactIs_production_min.isProfiler = function(
|
|
4640
|
-
return y(
|
|
4641
|
-
}, reactIs_production_min.isStrictMode = function(
|
|
4642
|
-
return y(
|
|
4643
|
-
}, reactIs_production_min.isSuspense = function(
|
|
4644
|
-
return y(
|
|
4645
|
-
}, reactIs_production_min.isValidElementType = function(
|
|
4646
|
-
return typeof
|
|
4618
|
+
function C(w) {
|
|
4619
|
+
return y(w) === u;
|
|
4620
|
+
}
|
|
4621
|
+
return reactIs_production_min.AsyncMode = l, reactIs_production_min.ConcurrentMode = u, reactIs_production_min.ContextConsumer = c, reactIs_production_min.ContextProvider = s, reactIs_production_min.Element = t, reactIs_production_min.ForwardRef = d, reactIs_production_min.Fragment = r, reactIs_production_min.Lazy = I, reactIs_production_min.Memo = p, reactIs_production_min.Portal = n, reactIs_production_min.Profiler = a, reactIs_production_min.StrictMode = o, reactIs_production_min.Suspense = f, reactIs_production_min.isAsyncMode = function(w) {
|
|
4622
|
+
return C(w) || y(w) === l;
|
|
4623
|
+
}, reactIs_production_min.isConcurrentMode = C, reactIs_production_min.isContextConsumer = function(w) {
|
|
4624
|
+
return y(w) === c;
|
|
4625
|
+
}, reactIs_production_min.isContextProvider = function(w) {
|
|
4626
|
+
return y(w) === s;
|
|
4627
|
+
}, reactIs_production_min.isElement = function(w) {
|
|
4628
|
+
return typeof w == "object" && w !== null && w.$$typeof === t;
|
|
4629
|
+
}, reactIs_production_min.isForwardRef = function(w) {
|
|
4630
|
+
return y(w) === d;
|
|
4631
|
+
}, reactIs_production_min.isFragment = function(w) {
|
|
4632
|
+
return y(w) === r;
|
|
4633
|
+
}, reactIs_production_min.isLazy = function(w) {
|
|
4634
|
+
return y(w) === I;
|
|
4635
|
+
}, reactIs_production_min.isMemo = function(w) {
|
|
4636
|
+
return y(w) === p;
|
|
4637
|
+
}, reactIs_production_min.isPortal = function(w) {
|
|
4638
|
+
return y(w) === n;
|
|
4639
|
+
}, reactIs_production_min.isProfiler = function(w) {
|
|
4640
|
+
return y(w) === a;
|
|
4641
|
+
}, reactIs_production_min.isStrictMode = function(w) {
|
|
4642
|
+
return y(w) === o;
|
|
4643
|
+
}, reactIs_production_min.isSuspense = function(w) {
|
|
4644
|
+
return y(w) === f;
|
|
4645
|
+
}, reactIs_production_min.isValidElementType = function(w) {
|
|
4646
|
+
return typeof w == "string" || typeof w == "function" || w === r || w === u || w === a || w === o || w === f || w === h || typeof w == "object" && w !== null && (w.$$typeof === I || w.$$typeof === p || w.$$typeof === s || w.$$typeof === c || w.$$typeof === d || w.$$typeof === x || w.$$typeof === g || w.$$typeof === m || w.$$typeof === v);
|
|
4647
4647
|
}, reactIs_production_min.typeOf = y, reactIs_production_min;
|
|
4648
4648
|
}
|
|
4649
4649
|
var reactIs_development = {};
|
|
@@ -4694,14 +4694,14 @@ function requireReactIs_development() {
|
|
|
4694
4694
|
}
|
|
4695
4695
|
}
|
|
4696
4696
|
}
|
|
4697
|
-
var
|
|
4697
|
+
var w = l, O = u, F = c, b = s, S = t, T = d, k = r, $ = I, B = p, P = n, D = a, j = o, U = f, L = !1;
|
|
4698
4698
|
function V(_) {
|
|
4699
|
-
return L || (L = !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.")),
|
|
4699
|
+
return L || (L = !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.")), G(_) || C(_) === l;
|
|
4700
4700
|
}
|
|
4701
|
-
function
|
|
4701
|
+
function G(_) {
|
|
4702
4702
|
return C(_) === u;
|
|
4703
4703
|
}
|
|
4704
|
-
function
|
|
4704
|
+
function Y(_) {
|
|
4705
4705
|
return C(_) === c;
|
|
4706
4706
|
}
|
|
4707
4707
|
function H(_) {
|
|
@@ -4734,7 +4734,7 @@ function requireReactIs_development() {
|
|
|
4734
4734
|
function E(_) {
|
|
4735
4735
|
return C(_) === f;
|
|
4736
4736
|
}
|
|
4737
|
-
reactIs_development.AsyncMode =
|
|
4737
|
+
reactIs_development.AsyncMode = w, reactIs_development.ConcurrentMode = O, reactIs_development.ContextConsumer = F, reactIs_development.ContextProvider = b, reactIs_development.Element = S, reactIs_development.ForwardRef = T, reactIs_development.Fragment = k, reactIs_development.Lazy = $, reactIs_development.Memo = B, reactIs_development.Portal = P, reactIs_development.Profiler = D, reactIs_development.StrictMode = j, reactIs_development.Suspense = U, reactIs_development.isAsyncMode = V, reactIs_development.isConcurrentMode = G, reactIs_development.isContextConsumer = Y, reactIs_development.isContextProvider = H, reactIs_development.isElement = K, reactIs_development.isForwardRef = N, reactIs_development.isFragment = W, reactIs_development.isLazy = M, reactIs_development.isMemo = A, reactIs_development.isPortal = q, reactIs_development.isProfiler = Z, reactIs_development.isStrictMode = Q, reactIs_development.isSuspense = E, reactIs_development.isValidElementType = y, reactIs_development.typeOf = C;
|
|
4738
4738
|
}()), reactIs_development;
|
|
4739
4739
|
}
|
|
4740
4740
|
var hasRequiredReactIs;
|
|
@@ -6211,13 +6211,13 @@ function requireUtils() {
|
|
|
6211
6211
|
function f() {
|
|
6212
6212
|
var m = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
6213
6213
|
return Object.keys(m).reduce(function(y, C) {
|
|
6214
|
-
var
|
|
6214
|
+
var w = m[C];
|
|
6215
6215
|
switch (C) {
|
|
6216
6216
|
case "class":
|
|
6217
|
-
y.className =
|
|
6217
|
+
y.className = w, delete y.class;
|
|
6218
6218
|
break;
|
|
6219
6219
|
default:
|
|
6220
|
-
y[C] =
|
|
6220
|
+
y[C] = w;
|
|
6221
6221
|
}
|
|
6222
6222
|
return y;
|
|
6223
6223
|
}, {});
|
|
@@ -6225,12 +6225,12 @@ function requireUtils() {
|
|
|
6225
6225
|
function h(m, y, C) {
|
|
6226
6226
|
return C ? /* @__PURE__ */ a.default.createElement(m.tag, (0, n.default)((0, n.default)({
|
|
6227
6227
|
key: y
|
|
6228
|
-
}, f(m.attrs)), C), (m.children || []).map(function(
|
|
6229
|
-
return h(
|
|
6228
|
+
}, f(m.attrs)), C), (m.children || []).map(function(w, O) {
|
|
6229
|
+
return h(w, "".concat(y, "-").concat(m.tag, "-").concat(O));
|
|
6230
6230
|
})) : /* @__PURE__ */ a.default.createElement(m.tag, (0, n.default)({
|
|
6231
6231
|
key: y
|
|
6232
|
-
}, f(m.attrs)), (m.children || []).map(function(
|
|
6233
|
-
return h(
|
|
6232
|
+
}, f(m.attrs)), (m.children || []).map(function(w, O) {
|
|
6233
|
+
return h(w, "".concat(y, "-").concat(m.tag, "-").concat(O));
|
|
6234
6234
|
}));
|
|
6235
6235
|
}
|
|
6236
6236
|
function p(m) {
|
|
@@ -6304,11 +6304,11 @@ function requireUtils() {
|
|
|
6304
6304
|
`;
|
|
6305
6305
|
utils$1.iconStyles = x;
|
|
6306
6306
|
var g = function() {
|
|
6307
|
-
var y = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : x, C = (0, a.useContext)(l.default),
|
|
6307
|
+
var y = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : x, C = (0, a.useContext)(l.default), w = C.csp;
|
|
6308
6308
|
(0, a.useEffect)(function() {
|
|
6309
6309
|
(0, c.updateCSS)(y, "@ant-design-icons", {
|
|
6310
6310
|
prepend: !0,
|
|
6311
|
-
csp:
|
|
6311
|
+
csp: w
|
|
6312
6312
|
});
|
|
6313
6313
|
}, []);
|
|
6314
6314
|
};
|
|
@@ -6395,11 +6395,11 @@ function requireAntdIcon() {
|
|
|
6395
6395
|
var n = e(requireObjectSpread2()), r = e(requireSlicedToArray()), o = e(requireDefineProperty()), a = e(requireObjectWithoutProperties()), s = t(React__default), c = e(requireClassnames()), l = e(requireContext$2()), u = e(requireIconBase()), d = requireTwoTonePrimaryColor(), f = requireUtils(), h = ["className", "icon", "spin", "rotate", "tabIndex", "onClick", "twoToneColor"];
|
|
6396
6396
|
(0, d.setTwoToneColor)("#1890ff");
|
|
6397
6397
|
var p = /* @__PURE__ */ s.forwardRef(function(v, x) {
|
|
6398
|
-
var g, m = v.className, y = v.icon, C = v.spin,
|
|
6398
|
+
var g, m = v.className, y = v.icon, C = v.spin, w = v.rotate, O = v.tabIndex, F = v.onClick, b = v.twoToneColor, S = (0, a.default)(v, h), T = s.useContext(l.default), k = T.prefixCls, $ = k === void 0 ? "anticon" : k, B = (0, c.default)($, (g = {}, (0, o.default)(g, "".concat($, "-").concat(y.name), !!y.name), (0, o.default)(g, "".concat($, "-spin"), !!C || y.name === "loading"), g), m), P = O;
|
|
6399
6399
|
P === void 0 && F && (P = -1);
|
|
6400
|
-
var D =
|
|
6401
|
-
msTransform: "rotate(".concat(
|
|
6402
|
-
transform: "rotate(".concat(
|
|
6400
|
+
var D = w ? {
|
|
6401
|
+
msTransform: "rotate(".concat(w, "deg)"),
|
|
6402
|
+
transform: "rotate(".concat(w, "deg)")
|
|
6403
6403
|
} : void 0, j = (0, f.normalizeTwoToneColors)(b), U = (0, r.default)(j, 2), L = U[0], V = U[1];
|
|
6404
6404
|
return /* @__PURE__ */ s.createElement("span", (0, n.default)((0, n.default)({
|
|
6405
6405
|
role: "img",
|
|
@@ -6585,7 +6585,7 @@ function requireRegeneratorRuntime() {
|
|
|
6585
6585
|
}
|
|
6586
6586
|
function f(B, P, D, j) {
|
|
6587
6587
|
var U = P && P.prototype instanceof I ? P : I, L = Object.create(U.prototype), V = new T(j || []);
|
|
6588
|
-
return L._invoke = function(
|
|
6588
|
+
return L._invoke = function(G, Y, H) {
|
|
6589
6589
|
var K = "suspendedStart";
|
|
6590
6590
|
return function(N, W) {
|
|
6591
6591
|
if (K === "executing")
|
|
@@ -6614,7 +6614,7 @@ function requireRegeneratorRuntime() {
|
|
|
6614
6614
|
} else
|
|
6615
6615
|
H.method === "return" && H.abrupt("return", H.arg);
|
|
6616
6616
|
K = "executing";
|
|
6617
|
-
var q = h(
|
|
6617
|
+
var q = h(G, Y, H);
|
|
6618
6618
|
if (q.type === "normal") {
|
|
6619
6619
|
if (K = H.done ? "completed" : "suspendedYield", q.arg === p)
|
|
6620
6620
|
continue;
|
|
@@ -6656,35 +6656,35 @@ function requireRegeneratorRuntime() {
|
|
|
6656
6656
|
var m = Object.getPrototypeOf, y = m && m(m(k([])));
|
|
6657
6657
|
y && y !== o && a.call(y, c) && (g = y);
|
|
6658
6658
|
var C = x.prototype = I.prototype = Object.create(g);
|
|
6659
|
-
function
|
|
6659
|
+
function w(B) {
|
|
6660
6660
|
["next", "throw", "return"].forEach(function(P) {
|
|
6661
6661
|
d(B, P, function(D) {
|
|
6662
6662
|
return this._invoke(P, D);
|
|
6663
6663
|
});
|
|
6664
6664
|
});
|
|
6665
6665
|
}
|
|
6666
|
-
function
|
|
6667
|
-
function D(U, L, V,
|
|
6668
|
-
var
|
|
6669
|
-
if (
|
|
6670
|
-
var H =
|
|
6666
|
+
function O(B, P) {
|
|
6667
|
+
function D(U, L, V, G) {
|
|
6668
|
+
var Y = h(B[U], B, L);
|
|
6669
|
+
if (Y.type !== "throw") {
|
|
6670
|
+
var H = Y.arg, K = H.value;
|
|
6671
6671
|
return K && t(K) == "object" && a.call(K, "__await") ? P.resolve(K.__await).then(function(N) {
|
|
6672
|
-
D("next", N, V,
|
|
6672
|
+
D("next", N, V, G);
|
|
6673
6673
|
}, function(N) {
|
|
6674
|
-
D("throw", N, V,
|
|
6674
|
+
D("throw", N, V, G);
|
|
6675
6675
|
}) : P.resolve(K).then(function(N) {
|
|
6676
6676
|
H.value = N, V(H);
|
|
6677
6677
|
}, function(N) {
|
|
6678
|
-
return D("throw", N, V,
|
|
6678
|
+
return D("throw", N, V, G);
|
|
6679
6679
|
});
|
|
6680
6680
|
}
|
|
6681
|
-
Y
|
|
6681
|
+
G(Y.arg);
|
|
6682
6682
|
}
|
|
6683
6683
|
var j;
|
|
6684
6684
|
this._invoke = function(U, L) {
|
|
6685
6685
|
function V() {
|
|
6686
|
-
return new P(function(
|
|
6687
|
-
D(U, L,
|
|
6686
|
+
return new P(function(G, Y) {
|
|
6687
|
+
D(U, L, G, Y);
|
|
6688
6688
|
});
|
|
6689
6689
|
}
|
|
6690
6690
|
return j = j ? j.then(V, V) : V();
|
|
@@ -6757,15 +6757,15 @@ function requireRegeneratorRuntime() {
|
|
|
6757
6757
|
return {
|
|
6758
6758
|
__await: B
|
|
6759
6759
|
};
|
|
6760
|
-
}, O
|
|
6760
|
+
}, w(O.prototype), d(O.prototype, l, function() {
|
|
6761
6761
|
return this;
|
|
6762
|
-
}), r.AsyncIterator =
|
|
6762
|
+
}), r.AsyncIterator = O, r.async = function(B, P, D, j, U) {
|
|
6763
6763
|
U === void 0 && (U = Promise);
|
|
6764
|
-
var L = new
|
|
6764
|
+
var L = new O(f(B, P, D, j), U);
|
|
6765
6765
|
return r.isGeneratorFunction(P) ? L : L.next().then(function(V) {
|
|
6766
6766
|
return V.done ? V.value : L.next();
|
|
6767
6767
|
});
|
|
6768
|
-
},
|
|
6768
|
+
}, w(C), d(C, u, "Generator"), d(C, c, function() {
|
|
6769
6769
|
return this;
|
|
6770
6770
|
}), d(C, "toString", function() {
|
|
6771
6771
|
return "[object Generator]";
|
|
@@ -6807,17 +6807,17 @@ function requireRegeneratorRuntime() {
|
|
|
6807
6807
|
if (L.tryLoc === "root")
|
|
6808
6808
|
return j("end");
|
|
6809
6809
|
if (L.tryLoc <= this.prev) {
|
|
6810
|
-
var
|
|
6811
|
-
if (
|
|
6810
|
+
var G = a.call(L, "catchLoc"), Y = a.call(L, "finallyLoc");
|
|
6811
|
+
if (G && Y) {
|
|
6812
6812
|
if (this.prev < L.catchLoc)
|
|
6813
6813
|
return j(L.catchLoc, !0);
|
|
6814
6814
|
if (this.prev < L.finallyLoc)
|
|
6815
6815
|
return j(L.finallyLoc);
|
|
6816
|
-
} else if (
|
|
6816
|
+
} else if (G) {
|
|
6817
6817
|
if (this.prev < L.catchLoc)
|
|
6818
6818
|
return j(L.catchLoc, !0);
|
|
6819
6819
|
} else {
|
|
6820
|
-
if (!
|
|
6820
|
+
if (!Y)
|
|
6821
6821
|
throw new Error("try statement without catch or finally");
|
|
6822
6822
|
if (this.prev < L.finallyLoc)
|
|
6823
6823
|
return j(L.finallyLoc);
|
|
@@ -7442,8 +7442,8 @@ Schema.prototype = {
|
|
|
7442
7442
|
var x, g = [], m = {};
|
|
7443
7443
|
function y(C) {
|
|
7444
7444
|
if (Array.isArray(C)) {
|
|
7445
|
-
var
|
|
7446
|
-
g = (
|
|
7445
|
+
var w;
|
|
7446
|
+
g = (w = g).concat.apply(w, C);
|
|
7447
7447
|
} else
|
|
7448
7448
|
g.push(C);
|
|
7449
7449
|
}
|
|
@@ -7474,14 +7474,14 @@ Schema.prototype = {
|
|
|
7474
7474
|
return asyncMap(h, s, function(v, x) {
|
|
7475
7475
|
var g = v.rule, m = (g.type === "object" || g.type === "array") && (typeof g.fields == "object" || typeof g.defaultField == "object");
|
|
7476
7476
|
m = m && (g.required || !g.required && v.value), g.field = v.field;
|
|
7477
|
-
function y(
|
|
7477
|
+
function y(O, F) {
|
|
7478
7478
|
return _extends(_extends({}, F), {}, {
|
|
7479
|
-
fullField: g.fullField + "." +
|
|
7479
|
+
fullField: g.fullField + "." + O
|
|
7480
7480
|
});
|
|
7481
7481
|
}
|
|
7482
|
-
function C(
|
|
7483
|
-
|
|
7484
|
-
var F =
|
|
7482
|
+
function C(O) {
|
|
7483
|
+
O === void 0 && (O = []);
|
|
7484
|
+
var F = O;
|
|
7485
7485
|
if (Array.isArray(F) || (F = [F]), !s.suppressWarning && F.length && Schema.warning("async-validator:", F), F.length && g.message !== void 0 && (F = [].concat(g.message)), F = F.map(complementError(g)), s.first && F.length)
|
|
7486
7486
|
return I[g.field] = 1, x(F);
|
|
7487
7487
|
if (!m)
|
|
@@ -7506,11 +7506,11 @@ Schema.prototype = {
|
|
|
7506
7506
|
});
|
|
7507
7507
|
}
|
|
7508
7508
|
}
|
|
7509
|
-
var
|
|
7510
|
-
g.asyncValidator ?
|
|
7509
|
+
var w;
|
|
7510
|
+
g.asyncValidator ? w = g.asyncValidator(g, v.value, C, v.source, s) : g.validator && (w = g.validator(g, v.value, C, v.source, s), w === !0 ? C() : w === !1 ? C(g.message || g.field + " fails") : w instanceof Array ? C(w) : w instanceof Error && C(w.message)), w && w.then && w.then(function() {
|
|
7511
7511
|
return C();
|
|
7512
|
-
}, function(
|
|
7513
|
-
return C(
|
|
7512
|
+
}, function(O) {
|
|
7513
|
+
return C(O);
|
|
7514
7514
|
});
|
|
7515
7515
|
}, function(v) {
|
|
7516
7516
|
l(v);
|
|
@@ -7772,10 +7772,10 @@ function validateRules(e, t, n, r, o, a) {
|
|
|
7772
7772
|
return f ? _objectSpread2$1(_objectSpread2$1({}, d), {}, {
|
|
7773
7773
|
validator: function(p, I, v) {
|
|
7774
7774
|
var x = !1, g = function() {
|
|
7775
|
-
for (var C = arguments.length,
|
|
7776
|
-
O
|
|
7775
|
+
for (var C = arguments.length, w = new Array(C), O = 0; O < C; O++)
|
|
7776
|
+
w[O] = arguments[O];
|
|
7777
7777
|
Promise.resolve().then(function() {
|
|
7778
|
-
warningOnce(!x, "Your validator function has already return a promise. `callback` will be ignored."), x || v.apply(void 0,
|
|
7778
|
+
warningOnce(!x, "Your validator function has already return a promise. `callback` will be ignored."), x || v.apply(void 0, w);
|
|
7779
7779
|
});
|
|
7780
7780
|
}, m = f(p, I, g);
|
|
7781
7781
|
x = m && typeof m.then == "function" && typeof m.catch == "function", warningOnce(x, "`callback` is deprecated. Please return a promise instead."), x && m.then(function() {
|
|
@@ -7919,8 +7919,8 @@ var Field = /* @__PURE__ */ function(e) {
|
|
|
7919
7919
|
break;
|
|
7920
7920
|
case "setField": {
|
|
7921
7921
|
if (C) {
|
|
7922
|
-
var
|
|
7923
|
-
"touched" in
|
|
7922
|
+
var w = d.data;
|
|
7923
|
+
"touched" in w && (o.touched = w.touched), "validating" in w && !("originRCField" in w) && (o.validatePromise = w.validating ? Promise.resolve([]) : null), "errors" in w && (o.errors = w.errors || []), o.dirty = !0, o.reRender();
|
|
7924
7924
|
return;
|
|
7925
7925
|
}
|
|
7926
7926
|
if (h && !g.length && requireUpdate(h, l, x, m, y, d)) {
|
|
@@ -7930,8 +7930,8 @@ var Field = /* @__PURE__ */ function(e) {
|
|
|
7930
7930
|
break;
|
|
7931
7931
|
}
|
|
7932
7932
|
case "dependenciesUpdate": {
|
|
7933
|
-
var
|
|
7934
|
-
if (
|
|
7933
|
+
var O = I.map(getNamePath);
|
|
7934
|
+
if (O.some(function(F) {
|
|
7935
7935
|
return containsNamePath(d.relatedFields, F);
|
|
7936
7936
|
})) {
|
|
7937
7937
|
o.reRender();
|
|
@@ -7953,11 +7953,11 @@ var Field = /* @__PURE__ */ function(e) {
|
|
|
7953
7953
|
return [];
|
|
7954
7954
|
var h = o.props, p = h.validateFirst, I = p === void 0 ? !1 : p, v = h.messageVariables, x = l || {}, g = x.triggerName, m = o.getRules();
|
|
7955
7955
|
g && (m = m.filter(function(C) {
|
|
7956
|
-
var
|
|
7957
|
-
if (!
|
|
7956
|
+
var w = C.validateTrigger;
|
|
7957
|
+
if (!w)
|
|
7958
7958
|
return !0;
|
|
7959
|
-
var
|
|
7960
|
-
return
|
|
7959
|
+
var O = toArray$2(w);
|
|
7960
|
+
return O.includes(g);
|
|
7961
7961
|
}));
|
|
7962
7962
|
var y = validateRules(u, d, m, l, I, v);
|
|
7963
7963
|
return y.catch(function(C) {
|
|
@@ -8010,14 +8010,14 @@ var Field = /* @__PURE__ */ function(e) {
|
|
|
8010
8010
|
var u = o.props.fieldContext.getFieldsValue, d = o.getNamePath();
|
|
8011
8011
|
return getValue(l || u(!0), d);
|
|
8012
8012
|
}, o.getControlled = function() {
|
|
8013
|
-
var l = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, u = o.props, d = u.trigger, f = u.validateTrigger, h = u.getValueFromEvent, p = u.normalize, I = u.valuePropName, v = u.getValueProps, x = u.fieldContext, g = f !== void 0 ? f : x.validateTrigger, m = o.getNamePath(), y = x.getInternalHooks, C = x.getFieldsValue,
|
|
8013
|
+
var l = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, u = o.props, d = u.trigger, f = u.validateTrigger, h = u.getValueFromEvent, p = u.normalize, I = u.valuePropName, v = u.getValueProps, x = u.fieldContext, g = f !== void 0 ? f : x.validateTrigger, m = o.getNamePath(), y = x.getInternalHooks, C = x.getFieldsValue, w = y(HOOK_MARK), O = w.dispatch, F = o.getValue(), b = v || function($) {
|
|
8014
8014
|
return _defineProperty$1({}, I, $);
|
|
8015
8015
|
}, S = l[d], T = _objectSpread2$1(_objectSpread2$1({}, l), b(F));
|
|
8016
8016
|
T[d] = function() {
|
|
8017
8017
|
o.touched = !0, o.dirty = !0;
|
|
8018
8018
|
for (var $, B = arguments.length, P = new Array(B), D = 0; D < B; D++)
|
|
8019
8019
|
P[D] = arguments[D];
|
|
8020
|
-
h ? $ = h.apply(void 0, P) : $ = defaultGetValueFromEvent.apply(void 0, [I].concat(P)), p && ($ = p($, F, C(!0))),
|
|
8020
|
+
h ? $ = h.apply(void 0, P) : $ = defaultGetValueFromEvent.apply(void 0, [I].concat(P)), p && ($ = p($, F, C(!0))), O({
|
|
8021
8021
|
type: "updateValue",
|
|
8022
8022
|
namePath: m,
|
|
8023
8023
|
value: $
|
|
@@ -8029,7 +8029,7 @@ var Field = /* @__PURE__ */ function(e) {
|
|
|
8029
8029
|
T[$] = function() {
|
|
8030
8030
|
B && B.apply(void 0, arguments);
|
|
8031
8031
|
var P = o.props.rules;
|
|
8032
|
-
P && P.length &&
|
|
8032
|
+
P && P.length && O({
|
|
8033
8033
|
type: "validateField",
|
|
8034
8034
|
namePath: m,
|
|
8035
8035
|
triggerName: $
|
|
@@ -8131,8 +8131,8 @@ var List = function(t) {
|
|
|
8131
8131
|
F < 0 || F >= S.length || b < 0 || b >= S.length || (u.keys = move(u.keys, F, b), g(move(S, F, b)));
|
|
8132
8132
|
}
|
|
8133
8133
|
}
|
|
8134
|
-
},
|
|
8135
|
-
return Array.isArray(
|
|
8134
|
+
}, w = x || [];
|
|
8135
|
+
return Array.isArray(w) || (w = [], process.env.NODE_ENV !== "production" && warningOnce(!1, "Current value of '".concat(f.join(" > "), "' is not an array type."))), o(w.map(function(O, F) {
|
|
8136
8136
|
var b = u.keys[F];
|
|
8137
8137
|
return b === void 0 && (u.keys[F] = u.id, b = u.keys[F], u.id += 1), {
|
|
8138
8138
|
name: F,
|
|
@@ -8707,24 +8707,24 @@ var FormContext = /* @__PURE__ */ React.createContext({
|
|
|
8707
8707
|
children: a
|
|
8708
8708
|
});
|
|
8709
8709
|
}, Form$2 = function(t, n) {
|
|
8710
|
-
var r = t.name, o = t.initialValues, a = t.fields, s = t.form, c = t.preserve, l = t.children, u = t.component, d = u === void 0 ? "form" : u, f = t.validateMessages, h = t.validateTrigger, p = h === void 0 ? "onChange" : h, I = t.onValuesChange, v = t.onFieldsChange, x = t.onFinish, g = t.onFinishFailed, m = _objectWithoutProperties(t, ["name", "initialValues", "fields", "form", "preserve", "children", "component", "validateMessages", "validateTrigger", "onValuesChange", "onFieldsChange", "onFinish", "onFinishFailed"]), y = React.useContext(FormContext), C = useForm(s),
|
|
8710
|
+
var r = t.name, o = t.initialValues, a = t.fields, s = t.form, c = t.preserve, l = t.children, u = t.component, d = u === void 0 ? "form" : u, f = t.validateMessages, h = t.validateTrigger, p = h === void 0 ? "onChange" : h, I = t.onValuesChange, v = t.onFieldsChange, x = t.onFinish, g = t.onFinishFailed, m = _objectWithoutProperties(t, ["name", "initialValues", "fields", "form", "preserve", "children", "component", "validateMessages", "validateTrigger", "onValuesChange", "onFieldsChange", "onFinish", "onFinishFailed"]), y = React.useContext(FormContext), C = useForm(s), w = _slicedToArray(C, 1), O = w[0], F = O.getInternalHooks(HOOK_MARK), b = F.useSubscribe, S = F.setInitialValues, T = F.setCallbacks, k = F.setValidateMessages, $ = F.setPreserve;
|
|
8711
8711
|
React.useImperativeHandle(n, function() {
|
|
8712
|
-
return
|
|
8712
|
+
return O;
|
|
8713
8713
|
}), React.useEffect(function() {
|
|
8714
|
-
return y.registerForm(r,
|
|
8714
|
+
return y.registerForm(r, O), function() {
|
|
8715
8715
|
y.unregisterForm(r);
|
|
8716
8716
|
};
|
|
8717
|
-
}, [y,
|
|
8717
|
+
}, [y, O, r]), k(_objectSpread2$1(_objectSpread2$1({}, y.validateMessages), f)), T({
|
|
8718
8718
|
onValuesChange: I,
|
|
8719
|
-
onFieldsChange: function(
|
|
8720
|
-
if (y.triggerFormChange(r,
|
|
8719
|
+
onFieldsChange: function(Y) {
|
|
8720
|
+
if (y.triggerFormChange(r, Y), v) {
|
|
8721
8721
|
for (var H = arguments.length, K = new Array(H > 1 ? H - 1 : 0), N = 1; N < H; N++)
|
|
8722
8722
|
K[N - 1] = arguments[N];
|
|
8723
|
-
v.apply(void 0, [
|
|
8723
|
+
v.apply(void 0, [Y].concat(K));
|
|
8724
8724
|
}
|
|
8725
8725
|
},
|
|
8726
|
-
onFinish: function(
|
|
8727
|
-
y.triggerFormFinish(r,
|
|
8726
|
+
onFinish: function(Y) {
|
|
8727
|
+
y.triggerFormFinish(r, Y), x && x(Y);
|
|
8728
8728
|
},
|
|
8729
8729
|
onFinishFailed: g
|
|
8730
8730
|
}), $(c);
|
|
@@ -8732,26 +8732,26 @@ var FormContext = /* @__PURE__ */ React.createContext({
|
|
|
8732
8732
|
S(o, !B.current), B.current || (B.current = !0);
|
|
8733
8733
|
var P = l, D = typeof l == "function";
|
|
8734
8734
|
if (D) {
|
|
8735
|
-
var j =
|
|
8736
|
-
P = l(j,
|
|
8735
|
+
var j = O.getFieldsValue(!0);
|
|
8736
|
+
P = l(j, O);
|
|
8737
8737
|
}
|
|
8738
8738
|
b(!D);
|
|
8739
8739
|
var U = React.useRef();
|
|
8740
8740
|
React.useEffect(function() {
|
|
8741
|
-
isSimilar(U.current || [], a || []) ||
|
|
8742
|
-
}, [a,
|
|
8741
|
+
isSimilar(U.current || [], a || []) || O.setFields(a || []), U.current = a;
|
|
8742
|
+
}, [a, O]);
|
|
8743
8743
|
var L = React.useMemo(function() {
|
|
8744
|
-
return _objectSpread2$1(_objectSpread2$1({},
|
|
8744
|
+
return _objectSpread2$1(_objectSpread2$1({}, O), {}, {
|
|
8745
8745
|
validateTrigger: p
|
|
8746
8746
|
});
|
|
8747
|
-
}, [
|
|
8747
|
+
}, [O, p]), V = /* @__PURE__ */ jsx(Context.Provider, {
|
|
8748
8748
|
value: L,
|
|
8749
8749
|
children: P
|
|
8750
8750
|
});
|
|
8751
8751
|
return d === !1 ? V : /* @__PURE__ */ jsx(d, {
|
|
8752
8752
|
...m,
|
|
8753
|
-
onSubmit: function(
|
|
8754
|
-
|
|
8753
|
+
onSubmit: function(Y) {
|
|
8754
|
+
Y.preventDefault(), Y.stopPropagation(), O.submit();
|
|
8755
8755
|
},
|
|
8756
8756
|
children: V
|
|
8757
8757
|
});
|
|
@@ -9170,8 +9170,8 @@ function requireLocaleReceiver() {
|
|
|
9170
9170
|
return (0, a.default)(v, [{
|
|
9171
9171
|
key: "getLocale",
|
|
9172
9172
|
value: function() {
|
|
9173
|
-
var g = this.props, m = g.componentName, y = g.defaultLocale, C = y || u.default[m || "global"],
|
|
9174
|
-
return (0, r.default)((0, r.default)({}, typeof C == "function" ? C() : C),
|
|
9173
|
+
var g = this.props, m = g.componentName, y = g.defaultLocale, C = y || u.default[m || "global"], w = this.context, O = m && w ? w[m] : {};
|
|
9174
|
+
return (0, r.default)((0, r.default)({}, typeof C == "function" ? C() : C), O || {});
|
|
9175
9175
|
}
|
|
9176
9176
|
}, {
|
|
9177
9177
|
key: "getLocaleCode",
|
|
@@ -9309,16 +9309,16 @@ function requireEmpty() {
|
|
|
9309
9309
|
g.indexOf(y[C]) < 0 && Object.prototype.propertyIsEnumerable.call(x, y[C]) && (m[y[C]] = x[y[C]]);
|
|
9310
9310
|
return m;
|
|
9311
9311
|
}, h = /* @__PURE__ */ a.createElement(u.default, null), p = /* @__PURE__ */ a.createElement(d.default, null), I = function(g) {
|
|
9312
|
-
var m = g.className, y = g.prefixCls, C = g.image,
|
|
9312
|
+
var m = g.className, y = g.prefixCls, C = g.image, w = C === void 0 ? h : C, O = g.description, F = g.children, b = g.imageStyle, S = f(g, ["className", "prefixCls", "image", "description", "children", "imageStyle"]), T = a.useContext(c.ConfigContext), k = T.getPrefixCls, $ = T.direction;
|
|
9313
9313
|
return /* @__PURE__ */ a.createElement(l.default, {
|
|
9314
9314
|
componentName: "Empty"
|
|
9315
9315
|
}, function(B) {
|
|
9316
|
-
var P, D = k("empty", y), j = typeof
|
|
9317
|
-
return typeof
|
|
9316
|
+
var P, D = k("empty", y), j = typeof O < "u" ? O : B.description, U = typeof j == "string" ? j : "empty", L = null;
|
|
9317
|
+
return typeof w == "string" ? L = /* @__PURE__ */ a.createElement("img", {
|
|
9318
9318
|
alt: U,
|
|
9319
|
-
src:
|
|
9320
|
-
}) : L =
|
|
9321
|
-
className: (0, s.default)(D, (P = {}, (0, o.default)(P, "".concat(D, "-normal"),
|
|
9319
|
+
src: w
|
|
9320
|
+
}) : L = w, /* @__PURE__ */ a.createElement("div", (0, r.default)({
|
|
9321
|
+
className: (0, s.default)(D, (P = {}, (0, o.default)(P, "".concat(D, "-normal"), w === p), (0, o.default)(P, "".concat(D, "-rtl"), $ === "rtl"), P), m)
|
|
9322
9322
|
}, S), /* @__PURE__ */ a.createElement("div", {
|
|
9323
9323
|
className: "".concat(D, "-image"),
|
|
9324
9324
|
style: b
|
|
@@ -9389,9 +9389,9 @@ function requireContext() {
|
|
|
9389
9389
|
return function(f) {
|
|
9390
9390
|
var h = function(x) {
|
|
9391
9391
|
return /* @__PURE__ */ r.createElement(c, null, function(g) {
|
|
9392
|
-
var m = u.prefixCls, y = g.getPrefixCls, C = x.prefixCls,
|
|
9392
|
+
var m = u.prefixCls, y = g.getPrefixCls, C = x.prefixCls, w = y(m, C);
|
|
9393
9393
|
return /* @__PURE__ */ r.createElement(f, (0, n.default)({}, g, x, {
|
|
9394
|
-
prefixCls:
|
|
9394
|
+
prefixCls: w
|
|
9395
9395
|
}));
|
|
9396
9396
|
});
|
|
9397
9397
|
}, p = f.constructor, I = p && p.displayName || f.name || "Component";
|
|
@@ -9557,7 +9557,7 @@ const useStepQueue = function(e, t) {
|
|
|
9557
9557
|
}, []), [a, o];
|
|
9558
9558
|
};
|
|
9559
9559
|
function useStatus(e, t, n, r) {
|
|
9560
|
-
var o = r.motionEnter, a = o === void 0 ? !0 : o, s = r.motionAppear, c = s === void 0 ? !0 : s, l = r.motionLeave, u = l === void 0 ? !0 : l, d = r.motionDeadline, f = r.motionLeaveImmediately, h = r.onAppearPrepare, p = r.onEnterPrepare, I = r.onLeavePrepare, v = r.onAppearStart, x = r.onEnterStart, g = r.onLeaveStart, m = r.onAppearActive, y = r.onEnterActive, C = r.onLeaveActive,
|
|
9560
|
+
var o = r.motionEnter, a = o === void 0 ? !0 : o, s = r.motionAppear, c = s === void 0 ? !0 : s, l = r.motionLeave, u = l === void 0 ? !0 : l, d = r.motionDeadline, f = r.motionLeaveImmediately, h = r.onAppearPrepare, p = r.onEnterPrepare, I = r.onLeavePrepare, v = r.onAppearStart, x = r.onEnterStart, g = r.onLeaveStart, m = r.onAppearActive, y = r.onEnterActive, C = r.onLeaveActive, w = r.onAppearEnd, O = r.onEnterEnd, F = r.onLeaveEnd, b = r.onVisibleChanged, S = useMountStatus(), T = _slicedToArray(S, 2), k = T[0], $ = T[1], B = useMountStatus(STATUS_NONE), P = _slicedToArray(B, 2), D = P[0], j = P[1], U = useMountStatus(null), L = _slicedToArray(U, 2), V = L[0], G = L[1], Y = useRef(!1), H = useRef(null), K = useRef(!1), N = useRef(null);
|
|
9561
9561
|
function W() {
|
|
9562
9562
|
var se = n();
|
|
9563
9563
|
return se || N.current;
|
|
@@ -9567,7 +9567,7 @@ function useStatus(e, t, n, r) {
|
|
|
9567
9567
|
var ie = W();
|
|
9568
9568
|
if (!(se && !se.deadline && se.target !== ie)) {
|
|
9569
9569
|
var le;
|
|
9570
|
-
D === STATUS_APPEAR && M.current ? le =
|
|
9570
|
+
D === STATUS_APPEAR && M.current ? le = w == null ? void 0 : w(ie, se) : D === STATUS_ENTER && M.current ? le = O == null ? void 0 : O(ie, se) : D === STATUS_LEAVE && M.current && (le = F == null ? void 0 : F(ie, se)), le !== !1 && !K.current && (j(STATUS_NONE), G(null));
|
|
9571
9571
|
}
|
|
9572
9572
|
}
|
|
9573
9573
|
var q = useDomMotionEvents(A), Z = _slicedToArray(q, 1), Q = Z[0], E = React.useMemo(function() {
|
|
@@ -9589,7 +9589,7 @@ function useStatus(e, t, n, r) {
|
|
|
9589
9589
|
}
|
|
9590
9590
|
if (te in E) {
|
|
9591
9591
|
var le;
|
|
9592
|
-
|
|
9592
|
+
G(((le = E[te]) === null || le === void 0 ? void 0 : le.call(E, W(), null)) || null);
|
|
9593
9593
|
}
|
|
9594
9594
|
return te === STEP_ACTIVE && (Q(W()), d > 0 && (clearTimeout(H.current), H.current = setTimeout(function() {
|
|
9595
9595
|
A({
|
|
@@ -9599,8 +9599,8 @@ function useStatus(e, t, n, r) {
|
|
|
9599
9599
|
}), z = _slicedToArray(_, 2), X = z[0], te = z[1], ee = isActive(te);
|
|
9600
9600
|
M.current = ee, useIsomorphicLayoutEffect(function() {
|
|
9601
9601
|
if ($(t), !!e) {
|
|
9602
|
-
var se =
|
|
9603
|
-
|
|
9602
|
+
var se = Y.current;
|
|
9603
|
+
Y.current = !0;
|
|
9604
9604
|
var ie;
|
|
9605
9605
|
!se && t && c && (ie = STATUS_APPEAR), se && t && a && (ie = STATUS_ENTER), (se && !t && u || !se && f && !t && u) && (ie = STATUS_LEAVE), ie && (j(ie), X());
|
|
9606
9606
|
}
|
|
@@ -9646,7 +9646,7 @@ function genCSSMotion(e) {
|
|
|
9646
9646
|
return null;
|
|
9647
9647
|
}
|
|
9648
9648
|
}
|
|
9649
|
-
var y = useStatus(v, c, m, o), C = _slicedToArray(y, 4),
|
|
9649
|
+
var y = useStatus(v, c, m, o), C = _slicedToArray(y, 4), w = C[0], O = C[1], F = C[2], b = C[3], S = useRef(a);
|
|
9650
9650
|
S.current = a;
|
|
9651
9651
|
var T = React.useCallback(function(D) {
|
|
9652
9652
|
x.current = D, fillRef(S.current, D);
|
|
@@ -9655,7 +9655,7 @@ function genCSSMotion(e) {
|
|
|
9655
9655
|
});
|
|
9656
9656
|
if (!f)
|
|
9657
9657
|
k = null;
|
|
9658
|
-
else if (
|
|
9658
|
+
else if (w === STATUS_NONE || !n(o))
|
|
9659
9659
|
b ? k = f(_objectSpread2$1({}, $), T) : u ? d ? k = f(_objectSpread2$1(_objectSpread2$1({}, $), {}, {
|
|
9660
9660
|
style: {
|
|
9661
9661
|
display: "none"
|
|
@@ -9665,8 +9665,8 @@ function genCSSMotion(e) {
|
|
|
9665
9665
|
}), T);
|
|
9666
9666
|
else {
|
|
9667
9667
|
var B, P;
|
|
9668
|
-
|
|
9669
|
-
className: classnamesExports(getTransitionName$1(h,
|
|
9668
|
+
O === STEP_PREPARE ? P = "prepare" : isActive(O) ? P = "active" : O === STEP_START && (P = "start"), k = f(_objectSpread2$1(_objectSpread2$1({}, $), {}, {
|
|
9669
|
+
className: classnamesExports(getTransitionName$1(h, w), (B = {}, _defineProperty$1(B, getTransitionName$1(h, "".concat(w, "-").concat(P)), P), _defineProperty$1(B, h, typeof h == "string"), B)),
|
|
9670
9670
|
style: F
|
|
9671
9671
|
}), T);
|
|
9672
9672
|
}
|
|
@@ -9769,10 +9769,10 @@ function genCSSMotionList(e) {
|
|
|
9769
9769
|
key: m.key,
|
|
9770
9770
|
visible: y,
|
|
9771
9771
|
eventProps: m,
|
|
9772
|
-
onVisibleChanged: function(
|
|
9773
|
-
h == null || h(
|
|
9772
|
+
onVisibleChanged: function(w) {
|
|
9773
|
+
h == null || h(w, {
|
|
9774
9774
|
key: m.key
|
|
9775
|
-
}),
|
|
9775
|
+
}), w || c.removeKey(m.key);
|
|
9776
9776
|
}
|
|
9777
9777
|
}),
|
|
9778
9778
|
children: f
|
|
@@ -9953,9 +9953,9 @@ var Notification = /* @__PURE__ */ function(e) {
|
|
|
9953
9953
|
key: g,
|
|
9954
9954
|
noticeKey: m || g,
|
|
9955
9955
|
updateMark: x,
|
|
9956
|
-
onClose: function(
|
|
9957
|
-
var
|
|
9958
|
-
o.remove(
|
|
9956
|
+
onClose: function(w) {
|
|
9957
|
+
var O;
|
|
9958
|
+
o.remove(w), (O = I.onClose) === null || O === void 0 || O.call(I);
|
|
9959
9959
|
},
|
|
9960
9960
|
onClick: I.onClick,
|
|
9961
9961
|
children: I.content
|
|
@@ -10258,14 +10258,14 @@ function requireNotice() {
|
|
|
10258
10258
|
}, {
|
|
10259
10259
|
key: "render",
|
|
10260
10260
|
value: function() {
|
|
10261
|
-
var v = this, x = this.props, g = x.prefixCls, m = x.className, y = x.closable, C = x.closeIcon,
|
|
10261
|
+
var v = this, x = this.props, g = x.prefixCls, m = x.className, y = x.closable, C = x.closeIcon, w = x.style, O = x.onClick, F = x.children, b = x.holder, S = "".concat(g, "-notice"), T = Object.keys(this.props).reduce(function($, B) {
|
|
10262
10262
|
return (B.substr(0, 5) === "data-" || B.substr(0, 5) === "aria-" || B === "role") && ($[B] = v.props[B]), $;
|
|
10263
10263
|
}, {}), k = c.createElement("div", Object.assign({
|
|
10264
10264
|
className: (0, u.default)(S, m, (0, n.default)({}, "".concat(S, "-closable"), y)),
|
|
10265
|
-
style:
|
|
10265
|
+
style: w,
|
|
10266
10266
|
onMouseEnter: this.clearCloseTimer,
|
|
10267
10267
|
onMouseLeave: this.startCloseTimer,
|
|
10268
|
-
onClick:
|
|
10268
|
+
onClick: O
|
|
10269
10269
|
}, T), c.createElement("div", {
|
|
10270
10270
|
className: "".concat(S, "-content")
|
|
10271
10271
|
}, F), y ? c.createElement("a", {
|
|
@@ -10329,7 +10329,7 @@ function requireUseMessage() {
|
|
|
10329
10329
|
v == null || v.component.add(b, S);
|
|
10330
10330
|
}
|
|
10331
10331
|
}, g = (0, s.default)(x), m = (0, o.default)(g, 2), y = m[0], C = m[1];
|
|
10332
|
-
function
|
|
10332
|
+
function w(F) {
|
|
10333
10333
|
var b = F.prefixCls, S = I("message", b), T = F.key || (0, l.getKeyThenIncreaseKey)(), k = new Promise(function(B) {
|
|
10334
10334
|
var P = function() {
|
|
10335
10335
|
return typeof F.onClose == "function" && F.onClose(), B(!0);
|
|
@@ -10350,10 +10350,10 @@ function requireUseMessage() {
|
|
|
10350
10350
|
return k.then(B, P);
|
|
10351
10351
|
}, $.promise = k, $;
|
|
10352
10352
|
}
|
|
10353
|
-
var
|
|
10354
|
-
return
|
|
10355
|
-
return (0, l.attachTypeApi)(
|
|
10356
|
-
}), [
|
|
10353
|
+
var O = a.useRef({});
|
|
10354
|
+
return O.current.open = w, ["success", "info", "warning", "error", "loading"].forEach(function(F) {
|
|
10355
|
+
return (0, l.attachTypeApi)(O.current, F);
|
|
10356
|
+
}), [O.current, /* @__PURE__ */ a.createElement(c.ConfigConsumer, {
|
|
10357
10357
|
key: "holder"
|
|
10358
10358
|
}, function(F) {
|
|
10359
10359
|
return I = F.getPrefixCls, C;
|
|
@@ -10370,41 +10370,41 @@ function requireMessage() {
|
|
|
10370
10370
|
Object.defineProperty(e, "__esModule", {
|
|
10371
10371
|
value: !0
|
|
10372
10372
|
}), e.getKeyThenIncreaseKey = F, e.attachTypeApi = D, e.default = e.getInstance = void 0;
|
|
10373
|
-
var r = n(require_extends()), o = n(requireDefineProperty()), a = t(React__default), s = n(requireClassnames()), c = n(require$$6$1), l = n(requireLoadingOutlined()), u = n(requireExclamationCircleFilled()), d = n(requireCloseCircleFilled()), f = n(requireCheckCircleFilled()), h = n(requireInfoCircleFilled()), p = n(requireUseMessage()), I, v = 3, x, g = 1, m = "ant-message", y = "move-up", C,
|
|
10373
|
+
var r = n(require_extends()), o = n(requireDefineProperty()), a = t(React__default), s = n(requireClassnames()), c = n(require$$6$1), l = n(requireLoadingOutlined()), u = n(requireExclamationCircleFilled()), d = n(requireCloseCircleFilled()), f = n(requireCheckCircleFilled()), h = n(requireInfoCircleFilled()), p = n(requireUseMessage()), I, v = 3, x, g = 1, m = "ant-message", y = "move-up", C, w, O = !1;
|
|
10374
10374
|
function F() {
|
|
10375
10375
|
return g++;
|
|
10376
10376
|
}
|
|
10377
10377
|
function b(L) {
|
|
10378
|
-
L.top !== void 0 && (x = L.top, I = null), L.duration !== void 0 && (v = L.duration), L.prefixCls !== void 0 && (m = L.prefixCls), L.getContainer !== void 0 && (C = L.getContainer), L.transitionName !== void 0 && (y = L.transitionName, I = null), L.maxCount !== void 0 && (
|
|
10378
|
+
L.top !== void 0 && (x = L.top, I = null), L.duration !== void 0 && (v = L.duration), L.prefixCls !== void 0 && (m = L.prefixCls), L.getContainer !== void 0 && (C = L.getContainer), L.transitionName !== void 0 && (y = L.transitionName, I = null), L.maxCount !== void 0 && (w = L.maxCount, I = null), L.rtl !== void 0 && (O = L.rtl);
|
|
10379
10379
|
}
|
|
10380
10380
|
function S(L, V) {
|
|
10381
|
-
var
|
|
10381
|
+
var G = L.prefixCls || m;
|
|
10382
10382
|
if (I) {
|
|
10383
10383
|
V({
|
|
10384
|
-
prefixCls:
|
|
10384
|
+
prefixCls: G,
|
|
10385
10385
|
instance: I
|
|
10386
10386
|
});
|
|
10387
10387
|
return;
|
|
10388
10388
|
}
|
|
10389
10389
|
c.default.newInstance({
|
|
10390
|
-
prefixCls:
|
|
10390
|
+
prefixCls: G,
|
|
10391
10391
|
transitionName: y,
|
|
10392
10392
|
style: {
|
|
10393
10393
|
top: x
|
|
10394
10394
|
},
|
|
10395
10395
|
getContainer: C,
|
|
10396
|
-
maxCount:
|
|
10397
|
-
}, function(
|
|
10396
|
+
maxCount: w
|
|
10397
|
+
}, function(Y) {
|
|
10398
10398
|
if (I) {
|
|
10399
10399
|
V({
|
|
10400
|
-
prefixCls:
|
|
10400
|
+
prefixCls: G,
|
|
10401
10401
|
instance: I
|
|
10402
10402
|
});
|
|
10403
10403
|
return;
|
|
10404
10404
|
}
|
|
10405
|
-
I =
|
|
10406
|
-
prefixCls:
|
|
10407
|
-
instance:
|
|
10405
|
+
I = Y, V({
|
|
10406
|
+
prefixCls: G,
|
|
10407
|
+
instance: Y
|
|
10408
10408
|
});
|
|
10409
10409
|
});
|
|
10410
10410
|
}
|
|
@@ -10416,10 +10416,10 @@ function requireMessage() {
|
|
|
10416
10416
|
loading: l.default
|
|
10417
10417
|
};
|
|
10418
10418
|
function k(L, V) {
|
|
10419
|
-
var
|
|
10419
|
+
var G, Y = L.duration !== void 0 ? L.duration : v, H = T[L.type], K = (0, s.default)("".concat(V, "-custom-content"), (G = {}, (0, o.default)(G, "".concat(V, "-").concat(L.type), L.type), (0, o.default)(G, "".concat(V, "-rtl"), O === !0), G));
|
|
10420
10420
|
return {
|
|
10421
10421
|
key: L.key,
|
|
10422
|
-
duration:
|
|
10422
|
+
duration: Y,
|
|
10423
10423
|
style: L.style || {},
|
|
10424
10424
|
className: L.className,
|
|
10425
10425
|
content: /* @__PURE__ */ a.createElement("div", {
|
|
@@ -10430,7 +10430,7 @@ function requireMessage() {
|
|
|
10430
10430
|
};
|
|
10431
10431
|
}
|
|
10432
10432
|
function $(L) {
|
|
10433
|
-
var V = L.key || g++,
|
|
10433
|
+
var V = L.key || g++, G = new Promise(function(H) {
|
|
10434
10434
|
var K = function() {
|
|
10435
10435
|
return typeof L.onClose == "function" && L.onClose(), H(!0);
|
|
10436
10436
|
};
|
|
@@ -10441,12 +10441,12 @@ function requireMessage() {
|
|
|
10441
10441
|
onClose: K
|
|
10442
10442
|
}), W));
|
|
10443
10443
|
});
|
|
10444
|
-
}),
|
|
10444
|
+
}), Y = function() {
|
|
10445
10445
|
I && I.removeNotice(V);
|
|
10446
10446
|
};
|
|
10447
|
-
return
|
|
10448
|
-
return
|
|
10449
|
-
},
|
|
10447
|
+
return Y.then = function(H, K) {
|
|
10448
|
+
return G.then(H, K);
|
|
10449
|
+
}, Y.promise = G, Y;
|
|
10450
10450
|
}
|
|
10451
10451
|
function B(L) {
|
|
10452
10452
|
return Object.prototype.toString.call(L) === "[object Object]" && !!L.content;
|
|
@@ -10457,8 +10457,8 @@ function requireMessage() {
|
|
|
10457
10457
|
destroy: function(V) {
|
|
10458
10458
|
if (I)
|
|
10459
10459
|
if (V) {
|
|
10460
|
-
var
|
|
10461
|
-
|
|
10460
|
+
var G = I, Y = G.removeNotice;
|
|
10461
|
+
Y(V);
|
|
10462
10462
|
} else {
|
|
10463
10463
|
var H = I, K = H.destroy;
|
|
10464
10464
|
K(), I = null;
|
|
@@ -10466,12 +10466,12 @@ function requireMessage() {
|
|
|
10466
10466
|
}
|
|
10467
10467
|
};
|
|
10468
10468
|
function D(L, V) {
|
|
10469
|
-
L[V] = function(
|
|
10470
|
-
return B(
|
|
10469
|
+
L[V] = function(G, Y, H) {
|
|
10470
|
+
return B(G) ? L.open((0, r.default)((0, r.default)({}, G), {
|
|
10471
10471
|
type: V
|
|
10472
|
-
})) : (typeof
|
|
10473
|
-
content:
|
|
10474
|
-
duration:
|
|
10472
|
+
})) : (typeof Y == "function" && (H = Y, Y = void 0), L.open({
|
|
10473
|
+
content: G,
|
|
10474
|
+
duration: Y,
|
|
10475
10475
|
type: V,
|
|
10476
10476
|
onClose: H
|
|
10477
10477
|
}));
|
|
@@ -10708,26 +10708,26 @@ function requireUseNotification() {
|
|
|
10708
10708
|
I == null || I.component.add(F, b);
|
|
10709
10709
|
}
|
|
10710
10710
|
}, x = (0, s.default)(v), g = (0, o.default)(x, 2), m = g[0], y = g[1];
|
|
10711
|
-
function C(
|
|
10712
|
-
var F =
|
|
10713
|
-
u((0, r.default)((0, r.default)({},
|
|
10711
|
+
function C(O) {
|
|
10712
|
+
var F = O.prefixCls, b = p("notification", F);
|
|
10713
|
+
u((0, r.default)((0, r.default)({}, O), {
|
|
10714
10714
|
prefixCls: b
|
|
10715
10715
|
}), function(S) {
|
|
10716
10716
|
var T = S.prefixCls, k = S.instance;
|
|
10717
|
-
I = k, m(d(
|
|
10717
|
+
I = k, m(d(O, T));
|
|
10718
10718
|
});
|
|
10719
10719
|
}
|
|
10720
|
-
var
|
|
10721
|
-
return
|
|
10722
|
-
|
|
10723
|
-
return
|
|
10724
|
-
type:
|
|
10720
|
+
var w = a.useRef({});
|
|
10721
|
+
return w.current.open = C, ["success", "info", "warning", "error"].forEach(function(O) {
|
|
10722
|
+
w.current[O] = function(F) {
|
|
10723
|
+
return w.current.open((0, r.default)((0, r.default)({}, F), {
|
|
10724
|
+
type: O
|
|
10725
10725
|
}));
|
|
10726
10726
|
};
|
|
10727
|
-
}), [
|
|
10727
|
+
}), [w.current, /* @__PURE__ */ a.createElement(c.ConfigConsumer, {
|
|
10728
10728
|
key: "holder"
|
|
10729
|
-
}, function(
|
|
10730
|
-
return p =
|
|
10729
|
+
}, function(O) {
|
|
10730
|
+
return p = O.getPrefixCls, y;
|
|
10731
10731
|
})];
|
|
10732
10732
|
};
|
|
10733
10733
|
return f;
|
|
@@ -10741,23 +10741,23 @@ function requireNotification() {
|
|
|
10741
10741
|
Object.defineProperty(e, "__esModule", {
|
|
10742
10742
|
value: !0
|
|
10743
10743
|
}), e.default = e.getInstance = void 0;
|
|
10744
|
-
var r = n(requireRegenerator()), o = n(require_extends()), a = n(requireDefineProperty()), s = t(React__default), c = n(require$$6$1), l = n(requireCloseOutlined()), u = n(requireClassnames()), d = n(requireCheckCircleOutlined()), f = n(requireCloseCircleOutlined()), h = n(requireExclamationCircleOutlined()), p = n(requireInfoCircleOutlined()), I = n(requireUseNotification()), v = function(L, V,
|
|
10744
|
+
var r = n(requireRegenerator()), o = n(require_extends()), a = n(requireDefineProperty()), s = t(React__default), c = n(require$$6$1), l = n(requireCloseOutlined()), u = n(requireClassnames()), d = n(requireCheckCircleOutlined()), f = n(requireCloseCircleOutlined()), h = n(requireExclamationCircleOutlined()), p = n(requireInfoCircleOutlined()), I = n(requireUseNotification()), v = function(L, V, G, Y) {
|
|
10745
10745
|
function H(K) {
|
|
10746
|
-
return K instanceof
|
|
10746
|
+
return K instanceof G ? K : new G(function(N) {
|
|
10747
10747
|
N(K);
|
|
10748
10748
|
});
|
|
10749
10749
|
}
|
|
10750
|
-
return new (
|
|
10750
|
+
return new (G || (G = Promise))(function(K, N) {
|
|
10751
10751
|
function W(q) {
|
|
10752
10752
|
try {
|
|
10753
|
-
A(
|
|
10753
|
+
A(Y.next(q));
|
|
10754
10754
|
} catch (Z) {
|
|
10755
10755
|
N(Z);
|
|
10756
10756
|
}
|
|
10757
10757
|
}
|
|
10758
10758
|
function M(q) {
|
|
10759
10759
|
try {
|
|
10760
|
-
A(
|
|
10760
|
+
A(Y.throw(q));
|
|
10761
10761
|
} catch (Z) {
|
|
10762
10762
|
N(Z);
|
|
10763
10763
|
}
|
|
@@ -10765,49 +10765,49 @@ function requireNotification() {
|
|
|
10765
10765
|
function A(q) {
|
|
10766
10766
|
q.done ? K(q.value) : H(q.value).then(W, M);
|
|
10767
10767
|
}
|
|
10768
|
-
A((
|
|
10768
|
+
A((Y = Y.apply(L, V || [])).next());
|
|
10769
10769
|
});
|
|
10770
|
-
}, x = {}, g = 4.5, m = 24, y = 24, C = "ant-notification",
|
|
10770
|
+
}, x = {}, g = 4.5, m = 24, y = 24, C = "ant-notification", w = "topRight", O, F, b = !1;
|
|
10771
10771
|
function S(L) {
|
|
10772
|
-
var V = L.duration,
|
|
10773
|
-
W !== void 0 && (C = W), V !== void 0 && (g = V),
|
|
10772
|
+
var V = L.duration, G = L.placement, Y = L.bottom, H = L.top, K = L.getContainer, N = L.closeIcon, W = L.prefixCls;
|
|
10773
|
+
W !== void 0 && (C = W), V !== void 0 && (g = V), G !== void 0 ? w = G : L.rtl && (w = "topLeft"), Y !== void 0 && (y = Y), H !== void 0 && (m = H), K !== void 0 && (O = K), N !== void 0 && (F = N), L.rtl !== void 0 && (b = L.rtl);
|
|
10774
10774
|
}
|
|
10775
10775
|
function T(L) {
|
|
10776
|
-
var V = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : m,
|
|
10776
|
+
var V = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : m, G = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : y, Y;
|
|
10777
10777
|
switch (L) {
|
|
10778
10778
|
case "topLeft":
|
|
10779
|
-
|
|
10779
|
+
Y = {
|
|
10780
10780
|
left: 0,
|
|
10781
10781
|
top: V,
|
|
10782
10782
|
bottom: "auto"
|
|
10783
10783
|
};
|
|
10784
10784
|
break;
|
|
10785
10785
|
case "topRight":
|
|
10786
|
-
|
|
10786
|
+
Y = {
|
|
10787
10787
|
right: 0,
|
|
10788
10788
|
top: V,
|
|
10789
10789
|
bottom: "auto"
|
|
10790
10790
|
};
|
|
10791
10791
|
break;
|
|
10792
10792
|
case "bottomLeft":
|
|
10793
|
-
|
|
10793
|
+
Y = {
|
|
10794
10794
|
left: 0,
|
|
10795
10795
|
top: "auto",
|
|
10796
|
-
bottom:
|
|
10796
|
+
bottom: G
|
|
10797
10797
|
};
|
|
10798
10798
|
break;
|
|
10799
10799
|
default:
|
|
10800
|
-
|
|
10800
|
+
Y = {
|
|
10801
10801
|
right: 0,
|
|
10802
10802
|
top: "auto",
|
|
10803
|
-
bottom:
|
|
10803
|
+
bottom: G
|
|
10804
10804
|
};
|
|
10805
10805
|
break;
|
|
10806
10806
|
}
|
|
10807
|
-
return
|
|
10807
|
+
return Y;
|
|
10808
10808
|
}
|
|
10809
10809
|
function k(L, V) {
|
|
10810
|
-
var
|
|
10810
|
+
var G = L.placement, Y = G === void 0 ? w : G, H = L.top, K = L.bottom, N = L.getContainer, W = N === void 0 ? O : N, M = L.closeIcon, A = M === void 0 ? F : M, q = L.prefixCls || C, Z = "".concat(q, "-notice"), Q = "".concat(q, "-").concat(Y), E = x[Q];
|
|
10811
10811
|
if (E) {
|
|
10812
10812
|
Promise.resolve(E).then(function(X) {
|
|
10813
10813
|
V({
|
|
@@ -10821,12 +10821,12 @@ function requireNotification() {
|
|
|
10821
10821
|
className: "".concat(q, "-close-x")
|
|
10822
10822
|
}, A || /* @__PURE__ */ s.createElement(l.default, {
|
|
10823
10823
|
className: "".concat(q, "-close-icon")
|
|
10824
|
-
})), z = (0, u.default)("".concat(q, "-").concat(
|
|
10824
|
+
})), z = (0, u.default)("".concat(q, "-").concat(Y), (0, a.default)({}, "".concat(q, "-rtl"), b === !0));
|
|
10825
10825
|
x[Q] = new Promise(function(X) {
|
|
10826
10826
|
c.default.newInstance({
|
|
10827
10827
|
prefixCls: q,
|
|
10828
10828
|
className: z,
|
|
10829
|
-
style: T(
|
|
10829
|
+
style: T(Y, H, K),
|
|
10830
10830
|
getContainer: W,
|
|
10831
10831
|
closeIcon: _
|
|
10832
10832
|
}, function(te) {
|
|
@@ -10844,27 +10844,27 @@ function requireNotification() {
|
|
|
10844
10844
|
warning: h.default
|
|
10845
10845
|
};
|
|
10846
10846
|
function B(L, V) {
|
|
10847
|
-
var
|
|
10848
|
-
L.icon ?
|
|
10847
|
+
var G = L.duration === void 0 ? g : L.duration, Y = null;
|
|
10848
|
+
L.icon ? Y = /* @__PURE__ */ s.createElement("span", {
|
|
10849
10849
|
className: "".concat(V, "-icon")
|
|
10850
|
-
}, L.icon) : L.type && (
|
|
10850
|
+
}, L.icon) : L.type && (Y = /* @__PURE__ */ s.createElement($[L.type] || null, {
|
|
10851
10851
|
className: "".concat(V, "-icon ").concat(V, "-icon-").concat(L.type)
|
|
10852
10852
|
}));
|
|
10853
|
-
var H = !L.description &&
|
|
10853
|
+
var H = !L.description && Y ? /* @__PURE__ */ s.createElement("span", {
|
|
10854
10854
|
className: "".concat(V, "-message-single-line-auto-margin")
|
|
10855
10855
|
}) : null;
|
|
10856
10856
|
return {
|
|
10857
10857
|
content: /* @__PURE__ */ s.createElement("div", {
|
|
10858
|
-
className:
|
|
10858
|
+
className: Y ? "".concat(V, "-with-icon") : "",
|
|
10859
10859
|
role: "alert"
|
|
10860
|
-
},
|
|
10860
|
+
}, Y, /* @__PURE__ */ s.createElement("div", {
|
|
10861
10861
|
className: "".concat(V, "-message")
|
|
10862
10862
|
}, H, L.message), /* @__PURE__ */ s.createElement("div", {
|
|
10863
10863
|
className: "".concat(V, "-description")
|
|
10864
10864
|
}, L.description), L.btn ? /* @__PURE__ */ s.createElement("span", {
|
|
10865
10865
|
className: "".concat(V, "-btn")
|
|
10866
10866
|
}, L.btn) : null),
|
|
10867
|
-
duration:
|
|
10867
|
+
duration: G,
|
|
10868
10868
|
closable: !0,
|
|
10869
10869
|
onClose: L.onClose,
|
|
10870
10870
|
onClick: L.onClick,
|
|
@@ -10875,24 +10875,24 @@ function requireNotification() {
|
|
|
10875
10875
|
}
|
|
10876
10876
|
function P(L) {
|
|
10877
10877
|
k(L, function(V) {
|
|
10878
|
-
var
|
|
10879
|
-
|
|
10878
|
+
var G = V.prefixCls, Y = V.instance;
|
|
10879
|
+
Y.notice(B(L, G));
|
|
10880
10880
|
});
|
|
10881
10881
|
}
|
|
10882
10882
|
var D = {
|
|
10883
10883
|
open: P,
|
|
10884
10884
|
close: function(V) {
|
|
10885
|
-
Object.keys(x).forEach(function(
|
|
10886
|
-
return Promise.resolve(x[
|
|
10887
|
-
|
|
10885
|
+
Object.keys(x).forEach(function(G) {
|
|
10886
|
+
return Promise.resolve(x[G]).then(function(Y) {
|
|
10887
|
+
Y.removeNotice(V);
|
|
10888
10888
|
});
|
|
10889
10889
|
});
|
|
10890
10890
|
},
|
|
10891
10891
|
config: S,
|
|
10892
10892
|
destroy: function() {
|
|
10893
10893
|
Object.keys(x).forEach(function(V) {
|
|
10894
|
-
Promise.resolve(x[V]).then(function(
|
|
10895
|
-
|
|
10894
|
+
Promise.resolve(x[V]).then(function(G) {
|
|
10895
|
+
G.destroy();
|
|
10896
10896
|
}), delete x[V];
|
|
10897
10897
|
});
|
|
10898
10898
|
}
|
|
@@ -10905,7 +10905,7 @@ function requireNotification() {
|
|
|
10905
10905
|
};
|
|
10906
10906
|
}), D.warn = D.warning, D.useNotification = (0, I.default)(k, B);
|
|
10907
10907
|
var j = function(V) {
|
|
10908
|
-
return v(void 0, void 0, void 0, /* @__PURE__ */ r.default.mark(function
|
|
10908
|
+
return v(void 0, void 0, void 0, /* @__PURE__ */ r.default.mark(function G() {
|
|
10909
10909
|
return r.default.wrap(function(H) {
|
|
10910
10910
|
for (; ; )
|
|
10911
10911
|
switch (H.prev = H.next) {
|
|
@@ -10915,7 +10915,7 @@ function requireNotification() {
|
|
|
10915
10915
|
case "end":
|
|
10916
10916
|
return H.stop();
|
|
10917
10917
|
}
|
|
10918
|
-
},
|
|
10918
|
+
}, G);
|
|
10919
10919
|
}));
|
|
10920
10920
|
};
|
|
10921
10921
|
e.getInstance = j;
|
|
@@ -10943,14 +10943,14 @@ function requireConfigProvider() {
|
|
|
10943
10943
|
var r = n(require_extends()), o = t(React__default), a = n(requireContext$2()), s = require$$5, c = n(requireUseMemo()), l = t(requireLocaleProvider()), u = n(requireLocaleReceiver()), d = requireContext(), f = t(requireSizeContext()), h = n(requireMessage()), p = n(requireNotification()), I = ["getTargetContainer", "getPopupContainer", "rootPrefixCls", "getPrefixCls", "renderEmpty", "csp", "autoInsertSpaceInButton", "locale", "pageHeader"];
|
|
10944
10944
|
e.configConsumerProps = I;
|
|
10945
10945
|
var v = ["getTargetContainer", "getPopupContainer", "renderEmpty", "pageHeader", "input", "form"], x = function(C) {
|
|
10946
|
-
var
|
|
10946
|
+
var w = C.children, O = C.csp, F = C.autoInsertSpaceInButton, b = C.form, S = C.locale, T = C.componentSize, k = C.direction, $ = C.space, B = C.virtual, P = C.dropdownMatchSelectWidth, D = C.legacyLocale, j = C.parentContext, U = C.iconPrefixCls, L = o.useCallback(function(N, W) {
|
|
10947
10947
|
var M = C.prefixCls;
|
|
10948
10948
|
if (W)
|
|
10949
10949
|
return W;
|
|
10950
10950
|
var A = M || j.getPrefixCls("");
|
|
10951
10951
|
return N ? "".concat(A, "-").concat(N) : A;
|
|
10952
10952
|
}, [j.getPrefixCls]), V = (0, r.default)((0, r.default)({}, j), {
|
|
10953
|
-
csp:
|
|
10953
|
+
csp: O,
|
|
10954
10954
|
autoInsertSpaceInButton: F,
|
|
10955
10955
|
locale: S || D,
|
|
10956
10956
|
direction: k,
|
|
@@ -10963,29 +10963,29 @@ function requireConfigProvider() {
|
|
|
10963
10963
|
var W = C[N];
|
|
10964
10964
|
W && (V[N] = W);
|
|
10965
10965
|
});
|
|
10966
|
-
var
|
|
10966
|
+
var G = (0, c.default)(function() {
|
|
10967
10967
|
return V;
|
|
10968
10968
|
}, V, function(N, W) {
|
|
10969
10969
|
var M = Object.keys(N), A = Object.keys(W);
|
|
10970
10970
|
return M.length !== A.length || M.some(function(q) {
|
|
10971
10971
|
return N[q] !== W[q];
|
|
10972
10972
|
});
|
|
10973
|
-
}),
|
|
10973
|
+
}), Y = o.useMemo(function() {
|
|
10974
10974
|
return {
|
|
10975
10975
|
prefixCls: U
|
|
10976
10976
|
};
|
|
10977
|
-
}, [U]), H =
|
|
10977
|
+
}, [U]), H = w, K = {};
|
|
10978
10978
|
return S && S.Form && S.Form.defaultValidateMessages && (K = S.Form.defaultValidateMessages), b && b.validateMessages && (K = (0, r.default)((0, r.default)({}, K), b.validateMessages)), Object.keys(K).length > 0 && (H = /* @__PURE__ */ o.createElement(s.FormProvider, {
|
|
10979
10979
|
validateMessages: K
|
|
10980
|
-
},
|
|
10980
|
+
}, w)), S && (H = /* @__PURE__ */ o.createElement(l.default, {
|
|
10981
10981
|
locale: S,
|
|
10982
10982
|
_ANT_MARK__: l.ANT_MARK
|
|
10983
10983
|
}, H)), U && (H = /* @__PURE__ */ o.createElement(a.default.Provider, {
|
|
10984
|
-
value:
|
|
10984
|
+
value: Y
|
|
10985
10985
|
}, H)), T && (H = /* @__PURE__ */ o.createElement(f.SizeContextProvider, {
|
|
10986
10986
|
size: T
|
|
10987
10987
|
}, H)), /* @__PURE__ */ o.createElement(d.ConfigContext.Provider, {
|
|
10988
|
-
value:
|
|
10988
|
+
value: G
|
|
10989
10989
|
}, H);
|
|
10990
10990
|
}, g = function(C) {
|
|
10991
10991
|
return o.useEffect(function() {
|
|
@@ -10994,7 +10994,7 @@ function requireConfigProvider() {
|
|
|
10994
10994
|
}), p.default.config({
|
|
10995
10995
|
rtl: C.direction === "rtl"
|
|
10996
10996
|
}));
|
|
10997
|
-
}, [C.direction]), /* @__PURE__ */ o.createElement(u.default, null, function(
|
|
10997
|
+
}, [C.direction]), /* @__PURE__ */ o.createElement(u.default, null, function(w, O, F) {
|
|
10998
10998
|
return /* @__PURE__ */ o.createElement(d.ConfigConsumer, null, function(b) {
|
|
10999
10999
|
return /* @__PURE__ */ o.createElement(x, (0, r.default)({
|
|
11000
11000
|
parentContext: b,
|
|
@@ -11016,46 +11016,46 @@ function requireInput() {
|
|
|
11016
11016
|
value: !0
|
|
11017
11017
|
}), e.fixControlledValue = x, e.resolveOnChange = g, e.getInputClassName = m, e.triggerFocus = y, e.default = void 0;
|
|
11018
11018
|
var r = n(require_extends()), o = n(requireClassCallCheck()), a = n(requireCreateClass()), s = n(requireInherits()), c = n(requireCreateSuper()), l = n(requireDefineProperty()), u = t(React__default), d = n(requireClassnames()), f = n(requireOmit()), h = t(requireClearableLabeledInput()), p = requireConfigProvider(), I = n(requireSizeContext()), v = n(requireDevWarning());
|
|
11019
|
-
function x(
|
|
11020
|
-
return typeof
|
|
11019
|
+
function x(O) {
|
|
11020
|
+
return typeof O > "u" || O === null ? "" : O;
|
|
11021
11021
|
}
|
|
11022
|
-
function g(
|
|
11022
|
+
function g(O, F, b) {
|
|
11023
11023
|
if (b) {
|
|
11024
11024
|
var S = F;
|
|
11025
11025
|
if (F.type === "click") {
|
|
11026
|
-
S = Object.create(F), S.target =
|
|
11027
|
-
var T =
|
|
11028
|
-
|
|
11026
|
+
S = Object.create(F), S.target = O, S.currentTarget = O;
|
|
11027
|
+
var T = O.value;
|
|
11028
|
+
O.value = "", b(S), O.value = T;
|
|
11029
11029
|
return;
|
|
11030
11030
|
}
|
|
11031
11031
|
b(S);
|
|
11032
11032
|
}
|
|
11033
11033
|
}
|
|
11034
|
-
function m(
|
|
11034
|
+
function m(O, F, b, S, T) {
|
|
11035
11035
|
var k;
|
|
11036
|
-
return (0, d.default)(
|
|
11036
|
+
return (0, d.default)(O, (k = {}, (0, l.default)(k, "".concat(O, "-sm"), b === "small"), (0, l.default)(k, "".concat(O, "-lg"), b === "large"), (0, l.default)(k, "".concat(O, "-disabled"), S), (0, l.default)(k, "".concat(O, "-rtl"), T === "rtl"), (0, l.default)(k, "".concat(O, "-borderless"), !F), k));
|
|
11037
11037
|
}
|
|
11038
|
-
function y(
|
|
11039
|
-
if (!!
|
|
11040
|
-
|
|
11038
|
+
function y(O, F) {
|
|
11039
|
+
if (!!O) {
|
|
11040
|
+
O.focus(F);
|
|
11041
11041
|
var b = F || {}, S = b.cursor;
|
|
11042
11042
|
if (S) {
|
|
11043
|
-
var T =
|
|
11043
|
+
var T = O.value.length;
|
|
11044
11044
|
switch (S) {
|
|
11045
11045
|
case "start":
|
|
11046
|
-
|
|
11046
|
+
O.setSelectionRange(0, 0);
|
|
11047
11047
|
break;
|
|
11048
11048
|
case "end":
|
|
11049
|
-
|
|
11049
|
+
O.setSelectionRange(T, T);
|
|
11050
11050
|
break;
|
|
11051
11051
|
default:
|
|
11052
|
-
|
|
11052
|
+
O.setSelectionRange(0, T);
|
|
11053
11053
|
}
|
|
11054
11054
|
}
|
|
11055
11055
|
}
|
|
11056
11056
|
}
|
|
11057
|
-
var C = /* @__PURE__ */ function(
|
|
11058
|
-
(0, s.default)(b,
|
|
11057
|
+
var C = /* @__PURE__ */ function(O) {
|
|
11058
|
+
(0, s.default)(b, O);
|
|
11059
11059
|
var F = (0, c.default)(b);
|
|
11060
11060
|
function b(S) {
|
|
11061
11061
|
var T;
|
|
@@ -11080,7 +11080,7 @@ function requireInput() {
|
|
|
11080
11080
|
T.focus();
|
|
11081
11081
|
}), g(T.input, $, T.props.onChange);
|
|
11082
11082
|
}, T.renderInput = function($, B, P) {
|
|
11083
|
-
var D = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {}, j = T.props, U = j.className, L = j.addonBefore, V = j.addonAfter,
|
|
11083
|
+
var D = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {}, j = T.props, U = j.className, L = j.addonBefore, V = j.addonAfter, G = j.size, Y = j.disabled, H = (0, f.default)(T.props, [
|
|
11084
11084
|
"prefixCls",
|
|
11085
11085
|
"onPressEnter",
|
|
11086
11086
|
"addonBefore",
|
|
@@ -11100,7 +11100,7 @@ function requireInput() {
|
|
|
11100
11100
|
onFocus: T.onFocus,
|
|
11101
11101
|
onBlur: T.onBlur,
|
|
11102
11102
|
onKeyDown: T.handleKeyDown,
|
|
11103
|
-
className: (0, d.default)(m($, P,
|
|
11103
|
+
className: (0, d.default)(m($, P, G || B, Y, T.direction), (0, l.default)({}, U, U && !L && !V)),
|
|
11104
11104
|
ref: T.saveInput
|
|
11105
11105
|
}));
|
|
11106
11106
|
}, T.clearPasswordValueAttribute = function() {
|
|
@@ -11113,7 +11113,7 @@ function requireInput() {
|
|
|
11113
11113
|
var B = T.props, P = B.onPressEnter, D = B.onKeyDown;
|
|
11114
11114
|
$.keyCode === 13 && P && P($), D && D($);
|
|
11115
11115
|
}, T.renderComponent = function($) {
|
|
11116
|
-
var B = $.getPrefixCls, P = $.direction, D = $.input, j = T.state, U = j.value, L = j.focused, V = T.props,
|
|
11116
|
+
var B = $.getPrefixCls, P = $.direction, D = $.input, j = T.state, U = j.value, L = j.focused, V = T.props, G = V.prefixCls, Y = V.bordered, H = Y === void 0 ? !0 : Y, K = B("input", G);
|
|
11117
11117
|
return T.direction = P, /* @__PURE__ */ u.createElement(I.default.Consumer, null, function(N) {
|
|
11118
11118
|
return /* @__PURE__ */ u.createElement(h.default, (0, r.default)({
|
|
11119
11119
|
size: N
|
|
@@ -11197,8 +11197,8 @@ function requireInput() {
|
|
|
11197
11197
|
C.defaultProps = {
|
|
11198
11198
|
type: "text"
|
|
11199
11199
|
};
|
|
11200
|
-
var
|
|
11201
|
-
e.default =
|
|
11200
|
+
var w = C;
|
|
11201
|
+
e.default = w;
|
|
11202
11202
|
}(Input)), Input;
|
|
11203
11203
|
}
|
|
11204
11204
|
var reactNode = {}, hasRequiredReactNode;
|
|
@@ -11235,19 +11235,19 @@ function requireClearableLabeledInput() {
|
|
|
11235
11235
|
return !!(y.addonBefore || y.addonAfter);
|
|
11236
11236
|
}
|
|
11237
11237
|
var g = /* @__PURE__ */ function(y) {
|
|
11238
|
-
(0, s.default)(
|
|
11239
|
-
var C = (0, c.default)(
|
|
11240
|
-
function
|
|
11241
|
-
var
|
|
11242
|
-
return (0, o.default)(this,
|
|
11238
|
+
(0, s.default)(w, y);
|
|
11239
|
+
var C = (0, c.default)(w);
|
|
11240
|
+
function w() {
|
|
11241
|
+
var O;
|
|
11242
|
+
return (0, o.default)(this, w), O = C.apply(this, arguments), O.containerRef = /* @__PURE__ */ l.createRef(), O.onInputMouseUp = function(F) {
|
|
11243
11243
|
var b;
|
|
11244
|
-
if (!((b =
|
|
11245
|
-
var S =
|
|
11244
|
+
if (!((b = O.containerRef.current) === null || b === void 0) && b.contains(F.target)) {
|
|
11245
|
+
var S = O.props.triggerFocus;
|
|
11246
11246
|
S == null || S();
|
|
11247
11247
|
}
|
|
11248
|
-
},
|
|
11248
|
+
}, O;
|
|
11249
11249
|
}
|
|
11250
|
-
return (0, a.default)(
|
|
11250
|
+
return (0, a.default)(w, [{
|
|
11251
11251
|
key: "renderClearIcon",
|
|
11252
11252
|
value: function(F) {
|
|
11253
11253
|
var b = this.props, S = b.allowClear, T = b.value, k = b.disabled, $ = b.readOnly, B = b.handleReset;
|
|
@@ -11271,18 +11271,18 @@ function requireClearableLabeledInput() {
|
|
|
11271
11271
|
}, {
|
|
11272
11272
|
key: "renderLabeledIcon",
|
|
11273
11273
|
value: function(F, b) {
|
|
11274
|
-
var S, T = this.props, k = T.focused, $ = T.value, B = T.prefix, P = T.className, D = T.size, j = T.suffix, U = T.disabled, L = T.allowClear, V = T.direction,
|
|
11274
|
+
var S, T = this.props, k = T.focused, $ = T.value, B = T.prefix, P = T.className, D = T.size, j = T.suffix, U = T.disabled, L = T.allowClear, V = T.direction, G = T.style, Y = T.readOnly, H = T.bordered, K = this.renderSuffix(F);
|
|
11275
11275
|
if (!v(this.props))
|
|
11276
11276
|
return (0, p.cloneElement)(b, {
|
|
11277
11277
|
value: $
|
|
11278
11278
|
});
|
|
11279
11279
|
var N = B ? /* @__PURE__ */ l.createElement("span", {
|
|
11280
11280
|
className: "".concat(F, "-prefix")
|
|
11281
|
-
}, B) : null, W = (0, u.default)("".concat(F, "-affix-wrapper"), (S = {}, (0, r.default)(S, "".concat(F, "-affix-wrapper-focused"), k), (0, r.default)(S, "".concat(F, "-affix-wrapper-disabled"), U), (0, r.default)(S, "".concat(F, "-affix-wrapper-sm"), D === "small"), (0, r.default)(S, "".concat(F, "-affix-wrapper-lg"), D === "large"), (0, r.default)(S, "".concat(F, "-affix-wrapper-input-with-clear-btn"), j && L && $), (0, r.default)(S, "".concat(F, "-affix-wrapper-rtl"), V === "rtl"), (0, r.default)(S, "".concat(F, "-affix-wrapper-readonly"),
|
|
11281
|
+
}, B) : null, W = (0, u.default)("".concat(F, "-affix-wrapper"), (S = {}, (0, r.default)(S, "".concat(F, "-affix-wrapper-focused"), k), (0, r.default)(S, "".concat(F, "-affix-wrapper-disabled"), U), (0, r.default)(S, "".concat(F, "-affix-wrapper-sm"), D === "small"), (0, r.default)(S, "".concat(F, "-affix-wrapper-lg"), D === "large"), (0, r.default)(S, "".concat(F, "-affix-wrapper-input-with-clear-btn"), j && L && $), (0, r.default)(S, "".concat(F, "-affix-wrapper-rtl"), V === "rtl"), (0, r.default)(S, "".concat(F, "-affix-wrapper-readonly"), Y), (0, r.default)(S, "".concat(F, "-affix-wrapper-borderless"), !H), (0, r.default)(S, "".concat(P), !x(this.props) && P), S));
|
|
11282
11282
|
return /* @__PURE__ */ l.createElement("span", {
|
|
11283
11283
|
ref: this.containerRef,
|
|
11284
11284
|
className: W,
|
|
11285
|
-
style:
|
|
11285
|
+
style: G,
|
|
11286
11286
|
onMouseUp: this.onInputMouseUp
|
|
11287
11287
|
}, N, (0, p.cloneElement)(b, {
|
|
11288
11288
|
style: null,
|
|
@@ -11298,17 +11298,17 @@ function requireClearableLabeledInput() {
|
|
|
11298
11298
|
return b;
|
|
11299
11299
|
var U = "".concat(F, "-group"), L = "".concat(U, "-addon"), V = k ? /* @__PURE__ */ l.createElement("span", {
|
|
11300
11300
|
className: L
|
|
11301
|
-
}, k) : null,
|
|
11301
|
+
}, k) : null, G = $ ? /* @__PURE__ */ l.createElement("span", {
|
|
11302
11302
|
className: L
|
|
11303
|
-
}, $) : null,
|
|
11303
|
+
}, $) : null, Y = (0, u.default)("".concat(F, "-wrapper"), U, (0, r.default)({}, "".concat(U, "-rtl"), j === "rtl")), H = (0, u.default)("".concat(F, "-group-wrapper"), (S = {}, (0, r.default)(S, "".concat(F, "-group-wrapper-sm"), P === "small"), (0, r.default)(S, "".concat(F, "-group-wrapper-lg"), P === "large"), (0, r.default)(S, "".concat(F, "-group-wrapper-rtl"), j === "rtl"), S), D);
|
|
11304
11304
|
return /* @__PURE__ */ l.createElement("span", {
|
|
11305
11305
|
className: H,
|
|
11306
11306
|
style: B
|
|
11307
11307
|
}, /* @__PURE__ */ l.createElement("span", {
|
|
11308
|
-
className:
|
|
11308
|
+
className: Y
|
|
11309
11309
|
}, V, (0, p.cloneElement)(b, {
|
|
11310
11310
|
style: null
|
|
11311
|
-
}),
|
|
11311
|
+
}), G));
|
|
11312
11312
|
}
|
|
11313
11313
|
}, {
|
|
11314
11314
|
key: "renderTextAreaWithClearIcon",
|
|
@@ -11333,7 +11333,7 @@ function requireClearableLabeledInput() {
|
|
|
11333
11333
|
var F = this.props, b = F.prefixCls, S = F.inputType, T = F.element;
|
|
11334
11334
|
return S === I[0] ? this.renderTextAreaWithClearIcon(b, T) : this.renderInputWithLabel(b, this.renderLabeledIcon(b, T));
|
|
11335
11335
|
}
|
|
11336
|
-
}]),
|
|
11336
|
+
}]), w;
|
|
11337
11337
|
}(l.Component), m = g;
|
|
11338
11338
|
e.default = m;
|
|
11339
11339
|
}(ClearableLabeledInput)), ClearableLabeledInput;
|
|
@@ -11343,16 +11343,16 @@ function requireClearableLabeledInput() {
|
|
|
11343
11343
|
Object.defineProperty(e, "__esModule", {
|
|
11344
11344
|
value: !0
|
|
11345
11345
|
}), e.default = void 0;
|
|
11346
|
-
var r = n(_typeof$2.exports), o = n(requireToConsumableArray()), a = n(require_extends()), s = n(requireDefineProperty()), c = n(requireSlicedToArray()), l = t(React__default), u = n(require$$8), d = n(requireOmit()), f = n(requireClassnames()), h = n(requireUseMergedState()), p = n(requireClearableLabeledInput()), I = requireConfigProvider(), v = requireInput(), x = n(requireSizeContext()), g = function(C,
|
|
11347
|
-
var
|
|
11346
|
+
var r = n(_typeof$2.exports), o = n(requireToConsumableArray()), a = n(require_extends()), s = n(requireDefineProperty()), c = n(requireSlicedToArray()), l = t(React__default), u = n(require$$8), d = n(requireOmit()), f = n(requireClassnames()), h = n(requireUseMergedState()), p = n(requireClearableLabeledInput()), I = requireConfigProvider(), v = requireInput(), x = n(requireSizeContext()), g = function(C, w) {
|
|
11347
|
+
var O = {};
|
|
11348
11348
|
for (var F in C)
|
|
11349
|
-
Object.prototype.hasOwnProperty.call(C, F) &&
|
|
11349
|
+
Object.prototype.hasOwnProperty.call(C, F) && w.indexOf(F) < 0 && (O[F] = C[F]);
|
|
11350
11350
|
if (C != null && typeof Object.getOwnPropertySymbols == "function")
|
|
11351
11351
|
for (var b = 0, F = Object.getOwnPropertySymbols(C); b < F.length; b++)
|
|
11352
|
-
|
|
11353
|
-
return
|
|
11354
|
-
}, m = /* @__PURE__ */ l.forwardRef(function(C,
|
|
11355
|
-
var
|
|
11352
|
+
w.indexOf(F[b]) < 0 && Object.prototype.propertyIsEnumerable.call(C, F[b]) && (O[F[b]] = C[F[b]]);
|
|
11353
|
+
return O;
|
|
11354
|
+
}, m = /* @__PURE__ */ l.forwardRef(function(C, w) {
|
|
11355
|
+
var O, F = C.prefixCls, b = C.bordered, S = b === void 0 ? !0 : b, T = C.showCount, k = T === void 0 ? !1 : T, $ = C.maxLength, B = C.className, P = C.style, D = C.size, j = g(C, ["prefixCls", "bordered", "showCount", "maxLength", "className", "style", "size"]), U = l.useContext(I.ConfigContext), L = U.getPrefixCls, V = U.direction, G = l.useContext(x.default), Y = l.useRef(null), H = l.useRef(null), K = (0, h.default)(j.defaultValue, {
|
|
11356
11356
|
value: j.value
|
|
11357
11357
|
}), N = (0, c.default)(K, 2), W = N[0], M = N[1], A = l.useRef(j.value);
|
|
11358
11358
|
l.useEffect(function() {
|
|
@@ -11361,34 +11361,34 @@ function requireClearableLabeledInput() {
|
|
|
11361
11361
|
var q = function(ie, le) {
|
|
11362
11362
|
j.value === void 0 && (M(ie), le == null || le());
|
|
11363
11363
|
}, Z = function(ie) {
|
|
11364
|
-
q(ie.target.value), (0, v.resolveOnChange)(
|
|
11364
|
+
q(ie.target.value), (0, v.resolveOnChange)(Y.current, ie, j.onChange);
|
|
11365
11365
|
}, Q = function(ie) {
|
|
11366
11366
|
q("", function() {
|
|
11367
11367
|
var le;
|
|
11368
|
-
(le =
|
|
11369
|
-
}), (0, v.resolveOnChange)(
|
|
11368
|
+
(le = Y.current) === null || le === void 0 || le.focus();
|
|
11369
|
+
}), (0, v.resolveOnChange)(Y.current, ie, j.onChange);
|
|
11370
11370
|
}, E = L("input", F);
|
|
11371
|
-
l.useImperativeHandle(
|
|
11371
|
+
l.useImperativeHandle(w, function() {
|
|
11372
11372
|
var se;
|
|
11373
11373
|
return {
|
|
11374
|
-
resizableTextArea: (se =
|
|
11374
|
+
resizableTextArea: (se = Y.current) === null || se === void 0 ? void 0 : se.resizableTextArea,
|
|
11375
11375
|
focus: function(le) {
|
|
11376
11376
|
var pe, ve;
|
|
11377
|
-
(0, v.triggerFocus)((ve = (pe =
|
|
11377
|
+
(0, v.triggerFocus)((ve = (pe = Y.current) === null || pe === void 0 ? void 0 : pe.resizableTextArea) === null || ve === void 0 ? void 0 : ve.textArea, le);
|
|
11378
11378
|
},
|
|
11379
11379
|
blur: function() {
|
|
11380
11380
|
var le;
|
|
11381
|
-
return (le =
|
|
11381
|
+
return (le = Y.current) === null || le === void 0 ? void 0 : le.blur();
|
|
11382
11382
|
}
|
|
11383
11383
|
};
|
|
11384
11384
|
});
|
|
11385
11385
|
var _ = /* @__PURE__ */ l.createElement(u.default, (0, a.default)({}, (0, d.default)(j, ["allowClear"]), {
|
|
11386
11386
|
maxLength: $,
|
|
11387
|
-
className: (0, f.default)((
|
|
11387
|
+
className: (0, f.default)((O = {}, (0, s.default)(O, "".concat(E, "-borderless"), !S), (0, s.default)(O, B, B && !k), (0, s.default)(O, "".concat(E, "-sm"), G === "small" || D === "small"), (0, s.default)(O, "".concat(E, "-lg"), G === "large" || D === "large"), O)),
|
|
11388
11388
|
style: k ? void 0 : P,
|
|
11389
11389
|
prefixCls: E,
|
|
11390
11390
|
onChange: Z,
|
|
11391
|
-
ref:
|
|
11391
|
+
ref: Y
|
|
11392
11392
|
})), z = (0, v.fixControlledValue)(W), X = Number($) > 0;
|
|
11393
11393
|
z = X ? (0, o.default)(z).slice(0, $).join("") : z;
|
|
11394
11394
|
var te = /* @__PURE__ */ l.createElement(p.default, (0, a.default)({}, j, {
|
|
@@ -11490,7 +11490,7 @@ const TextArea$1 = /* @__PURE__ */ getDefaultExportFromCjs(TextArea$3), {
|
|
|
11490
11490
|
}
|
|
11491
11491
|
g.current = S, x(S);
|
|
11492
11492
|
}
|
|
11493
|
-
function
|
|
11493
|
+
function w() {
|
|
11494
11494
|
return u.map((b, S) => /* @__PURE__ */ jsxs(Row, {
|
|
11495
11495
|
style: {
|
|
11496
11496
|
paddingBottom: 20
|
|
@@ -11517,7 +11517,7 @@ const TextArea$1 = /* @__PURE__ */ getDefaultExportFromCjs(TextArea$3), {
|
|
|
11517
11517
|
})]
|
|
11518
11518
|
}, S));
|
|
11519
11519
|
}
|
|
11520
|
-
async function
|
|
11520
|
+
async function O() {
|
|
11521
11521
|
I(!0);
|
|
11522
11522
|
try {
|
|
11523
11523
|
for (const b of Object.keys(v))
|
|
@@ -11539,7 +11539,7 @@ const TextArea$1 = /* @__PURE__ */ getDefaultExportFromCjs(TextArea$3), {
|
|
|
11539
11539
|
}
|
|
11540
11540
|
function F() {
|
|
11541
11541
|
return f ? /* @__PURE__ */ jsx(Spin, {}) : /* @__PURE__ */ jsxs(Fragment, {
|
|
11542
|
-
children: [
|
|
11542
|
+
children: [w(), /* @__PURE__ */ jsx(Divider, {}), /* @__PURE__ */ jsx(Row, {
|
|
11543
11543
|
justify: "end",
|
|
11544
11544
|
children: /* @__PURE__ */ jsxs(Space, {
|
|
11545
11545
|
children: [/* @__PURE__ */ jsx(Button$1, {
|
|
@@ -11550,7 +11550,7 @@ const TextArea$1 = /* @__PURE__ */ getDefaultExportFromCjs(TextArea$3), {
|
|
|
11550
11550
|
}), /* @__PURE__ */ jsx(Button$1, {
|
|
11551
11551
|
icon: p ? /* @__PURE__ */ jsx(LoadingOutlined$3, {}) : /* @__PURE__ */ jsx(CheckOutlined$3, {}),
|
|
11552
11552
|
disabled: p,
|
|
11553
|
-
onClick:
|
|
11553
|
+
onClick: O,
|
|
11554
11554
|
style: {
|
|
11555
11555
|
marginLeft: 15
|
|
11556
11556
|
},
|
|
@@ -11852,29 +11852,29 @@ function debounce(e, t, n) {
|
|
|
11852
11852
|
if (typeof e != "function")
|
|
11853
11853
|
throw new TypeError(FUNC_ERROR_TEXT);
|
|
11854
11854
|
t = toNumber(t) || 0, isObject$1(n) && (d = !!n.leading, f = "maxWait" in n, a = f ? nativeMax(toNumber(n.maxWait) || 0, t) : a, h = "trailing" in n ? !!n.trailing : h);
|
|
11855
|
-
function p(
|
|
11855
|
+
function p(O) {
|
|
11856
11856
|
var F = r, b = o;
|
|
11857
|
-
return r = o = void 0, u =
|
|
11857
|
+
return r = o = void 0, u = O, s = e.apply(b, F), s;
|
|
11858
11858
|
}
|
|
11859
|
-
function I(
|
|
11860
|
-
return u =
|
|
11859
|
+
function I(O) {
|
|
11860
|
+
return u = O, c = setTimeout(g, t), d ? p(O) : s;
|
|
11861
11861
|
}
|
|
11862
|
-
function v(
|
|
11863
|
-
var F =
|
|
11862
|
+
function v(O) {
|
|
11863
|
+
var F = O - l, b = O - u, S = t - F;
|
|
11864
11864
|
return f ? nativeMin(S, a - b) : S;
|
|
11865
11865
|
}
|
|
11866
|
-
function x(
|
|
11867
|
-
var F =
|
|
11866
|
+
function x(O) {
|
|
11867
|
+
var F = O - l, b = O - u;
|
|
11868
11868
|
return l === void 0 || F >= t || F < 0 || f && b >= a;
|
|
11869
11869
|
}
|
|
11870
11870
|
function g() {
|
|
11871
|
-
var
|
|
11872
|
-
if (x(
|
|
11873
|
-
return m(
|
|
11874
|
-
c = setTimeout(g, v(
|
|
11871
|
+
var O = now$1();
|
|
11872
|
+
if (x(O))
|
|
11873
|
+
return m(O);
|
|
11874
|
+
c = setTimeout(g, v(O));
|
|
11875
11875
|
}
|
|
11876
|
-
function m(
|
|
11877
|
-
return c = void 0, h && r ? p(
|
|
11876
|
+
function m(O) {
|
|
11877
|
+
return c = void 0, h && r ? p(O) : (r = o = void 0, s);
|
|
11878
11878
|
}
|
|
11879
11879
|
function y() {
|
|
11880
11880
|
c !== void 0 && clearTimeout(c), u = 0, r = l = o = c = void 0;
|
|
@@ -11882,9 +11882,9 @@ function debounce(e, t, n) {
|
|
|
11882
11882
|
function C() {
|
|
11883
11883
|
return c === void 0 ? s : m(now$1());
|
|
11884
11884
|
}
|
|
11885
|
-
function
|
|
11886
|
-
var
|
|
11887
|
-
if (r = arguments, o = this, l =
|
|
11885
|
+
function w() {
|
|
11886
|
+
var O = now$1(), F = x(O);
|
|
11887
|
+
if (r = arguments, o = this, l = O, F) {
|
|
11888
11888
|
if (c === void 0)
|
|
11889
11889
|
return I(l);
|
|
11890
11890
|
if (f)
|
|
@@ -11892,7 +11892,7 @@ function debounce(e, t, n) {
|
|
|
11892
11892
|
}
|
|
11893
11893
|
return c === void 0 && (c = setTimeout(g, t)), s;
|
|
11894
11894
|
}
|
|
11895
|
-
return
|
|
11895
|
+
return w.cancel = y, w.flush = C, w;
|
|
11896
11896
|
}
|
|
11897
11897
|
var debounce_1 = debounce, browser$1 = { exports: {} }, lib$2 = {}, readableBrowser = { exports: {} }, events = { exports: {} }, R = typeof Reflect == "object" ? Reflect : null, ReflectApply = R && typeof R.apply == "function" ? R.apply : function(t, n, r) {
|
|
11898
11898
|
return Function.prototype.apply.call(t, n, r);
|
|
@@ -12439,7 +12439,7 @@ function require_stream_writable() {
|
|
|
12439
12439
|
};
|
|
12440
12440
|
}
|
|
12441
12441
|
var t;
|
|
12442
|
-
b.WritableState =
|
|
12442
|
+
b.WritableState = O;
|
|
12443
12443
|
var n = {
|
|
12444
12444
|
deprecate: browser
|
|
12445
12445
|
}, r = streamBrowser, o = require$$0.Buffer, a = commonjsGlobal.Uint8Array || function() {
|
|
@@ -12452,22 +12452,22 @@ function require_stream_writable() {
|
|
|
12452
12452
|
}
|
|
12453
12453
|
var l = destroy_1, u = state, d = u.getHighWaterMark, f = errorsBrowser.codes, h = f.ERR_INVALID_ARG_TYPE, p = f.ERR_METHOD_NOT_IMPLEMENTED, I = f.ERR_MULTIPLE_CALLBACK, v = f.ERR_STREAM_CANNOT_PIPE, x = f.ERR_STREAM_DESTROYED, g = f.ERR_STREAM_NULL_VALUES, m = f.ERR_STREAM_WRITE_AFTER_END, y = f.ERR_UNKNOWN_ENCODING, C = l.errorOrDestroy;
|
|
12454
12454
|
inherits_browser.exports(b, r);
|
|
12455
|
-
function
|
|
12455
|
+
function w() {
|
|
12456
12456
|
}
|
|
12457
|
-
function
|
|
12457
|
+
function O(M, A, q) {
|
|
12458
12458
|
t = t || require_stream_duplex(), M = M || {}, typeof q != "boolean" && (q = A instanceof t), this.objectMode = !!M.objectMode, q && (this.objectMode = this.objectMode || !!M.writableObjectMode), this.highWaterMark = d(this, M, "writableHighWaterMark", q), this.finalCalled = !1, this.needDrain = !1, this.ending = !1, this.ended = !1, this.finished = !1, this.destroyed = !1;
|
|
12459
12459
|
var Z = M.decodeStrings === !1;
|
|
12460
12460
|
this.decodeStrings = !Z, this.defaultEncoding = M.defaultEncoding || "utf8", this.length = 0, this.writing = !1, this.corked = 0, this.sync = !0, this.bufferProcessing = !1, this.onwrite = function(Q) {
|
|
12461
12461
|
j(A, Q);
|
|
12462
12462
|
}, this.writecb = null, this.writelen = 0, this.bufferedRequest = null, this.lastBufferedRequest = null, this.pendingcb = 0, this.prefinished = !1, this.errorEmitted = !1, this.emitClose = M.emitClose !== !1, this.autoDestroy = !!M.autoDestroy, this.bufferedRequestCount = 0, this.corkedRequestsFree = new e(this);
|
|
12463
12463
|
}
|
|
12464
|
-
|
|
12464
|
+
O.prototype.getBuffer = function() {
|
|
12465
12465
|
for (var A = this.bufferedRequest, q = []; A; )
|
|
12466
12466
|
q.push(A), A = A.next;
|
|
12467
12467
|
return q;
|
|
12468
12468
|
}, function() {
|
|
12469
12469
|
try {
|
|
12470
|
-
Object.defineProperty(
|
|
12470
|
+
Object.defineProperty(O.prototype, "buffer", {
|
|
12471
12471
|
get: n.deprecate(function() {
|
|
12472
12472
|
return this.getBuffer();
|
|
12473
12473
|
}, "_writableState.buffer is deprecated. Use _writableState.getBuffer instead.", "DEP0003")
|
|
@@ -12478,7 +12478,7 @@ function require_stream_writable() {
|
|
|
12478
12478
|
var F;
|
|
12479
12479
|
typeof Symbol == "function" && Symbol.hasInstance && typeof Function.prototype[Symbol.hasInstance] == "function" ? (F = Function.prototype[Symbol.hasInstance], Object.defineProperty(b, Symbol.hasInstance, {
|
|
12480
12480
|
value: function(A) {
|
|
12481
|
-
return F.call(this, A) ? !0 : this !== b ? !1 : A && A._writableState instanceof
|
|
12481
|
+
return F.call(this, A) ? !0 : this !== b ? !1 : A && A._writableState instanceof O;
|
|
12482
12482
|
}
|
|
12483
12483
|
})) : F = function(A) {
|
|
12484
12484
|
return A instanceof this;
|
|
@@ -12488,7 +12488,7 @@ function require_stream_writable() {
|
|
|
12488
12488
|
var A = this instanceof t;
|
|
12489
12489
|
if (!A && !F.call(b, this))
|
|
12490
12490
|
return new b(M);
|
|
12491
|
-
this._writableState = new
|
|
12491
|
+
this._writableState = new O(M, this, A), this.writable = !0, M && (typeof M.write == "function" && (this._write = M.write), typeof M.writev == "function" && (this._writev = M.writev), typeof M.destroy == "function" && (this._destroy = M.destroy), typeof M.final == "function" && (this._final = M.final)), r.call(this);
|
|
12492
12492
|
}
|
|
12493
12493
|
b.prototype.pipe = function() {
|
|
12494
12494
|
C(this, new v());
|
|
@@ -12503,7 +12503,7 @@ function require_stream_writable() {
|
|
|
12503
12503
|
}
|
|
12504
12504
|
b.prototype.write = function(M, A, q) {
|
|
12505
12505
|
var Z = this._writableState, Q = !1, E = !Z.objectMode && c(M);
|
|
12506
|
-
return E && !o.isBuffer(M) && (M = s(M)), typeof A == "function" && (q = A, A = null), E ? A = "buffer" : A || (A = Z.defaultEncoding), typeof q != "function" && (q =
|
|
12506
|
+
return E && !o.isBuffer(M) && (M = s(M)), typeof A == "function" && (q = A, A = null), E ? A = "buffer" : A || (A = Z.defaultEncoding), typeof q != "function" && (q = w), Z.ending ? S(this, q) : (E || T(this, Z, M, q)) && (Z.pendingcb++, Q = $(this, Z, E, M, A, q)), Q;
|
|
12507
12507
|
}, b.prototype.cork = function() {
|
|
12508
12508
|
this._writableState.corked++;
|
|
12509
12509
|
}, b.prototype.uncork = function() {
|
|
@@ -12565,7 +12565,7 @@ function require_stream_writable() {
|
|
|
12565
12565
|
if (D(q), A)
|
|
12566
12566
|
P(M, q, Z, A, Q);
|
|
12567
12567
|
else {
|
|
12568
|
-
var E =
|
|
12568
|
+
var E = G(q) || M.destroyed;
|
|
12569
12569
|
!E && !q.corked && !q.bufferProcessing && q.bufferedRequest && V(M, q), Z ? process.nextTick(U, M, q, E, Q) : U(M, q, E, Q);
|
|
12570
12570
|
}
|
|
12571
12571
|
}
|
|
@@ -12605,19 +12605,19 @@ function require_stream_writable() {
|
|
|
12605
12605
|
return this._writableState.length;
|
|
12606
12606
|
}
|
|
12607
12607
|
});
|
|
12608
|
-
function
|
|
12608
|
+
function G(M) {
|
|
12609
12609
|
return M.ending && M.length === 0 && M.bufferedRequest === null && !M.finished && !M.writing;
|
|
12610
12610
|
}
|
|
12611
|
-
function
|
|
12611
|
+
function Y(M, A) {
|
|
12612
12612
|
M._final(function(q) {
|
|
12613
12613
|
A.pendingcb--, q && C(M, q), A.prefinished = !0, M.emit("prefinish"), K(M, A);
|
|
12614
12614
|
});
|
|
12615
12615
|
}
|
|
12616
12616
|
function H(M, A) {
|
|
12617
|
-
!A.prefinished && !A.finalCalled && (typeof M._final == "function" && !A.destroyed ? (A.pendingcb++, A.finalCalled = !0, process.nextTick(
|
|
12617
|
+
!A.prefinished && !A.finalCalled && (typeof M._final == "function" && !A.destroyed ? (A.pendingcb++, A.finalCalled = !0, process.nextTick(Y, M, A)) : (A.prefinished = !0, M.emit("prefinish")));
|
|
12618
12618
|
}
|
|
12619
12619
|
function K(M, A) {
|
|
12620
|
-
var q =
|
|
12620
|
+
var q = G(A);
|
|
12621
12621
|
if (q && (H(M, A), A.pendingcb === 0 && (A.finished = !0, M.emit("finish"), A.autoDestroy))) {
|
|
12622
12622
|
var Z = M._readableState;
|
|
12623
12623
|
(!Z || Z.autoDestroy && Z.endEmitted) && M.destroy();
|
|
@@ -12832,8 +12832,8 @@ function requireString_decoder() {
|
|
|
12832
12832
|
var C = m.length - 1;
|
|
12833
12833
|
if (C < y)
|
|
12834
12834
|
return 0;
|
|
12835
|
-
var
|
|
12836
|
-
return
|
|
12835
|
+
var w = a(m[C]);
|
|
12836
|
+
return w >= 0 ? (w > 0 && (g.lastNeed = w - 1), w) : --C < y || w === -2 ? 0 : (w = a(m[C]), w >= 0 ? (w > 0 && (g.lastNeed = w - 2), w) : --C < y || w === -2 ? 0 : (w = a(m[C]), w >= 0 ? (w > 0 && (w === 2 ? w = 0 : g.lastNeed = w - 3), w) : 0));
|
|
12837
12837
|
}
|
|
12838
12838
|
function c(g, m, y) {
|
|
12839
12839
|
if ((m[0] & 192) !== 128)
|
|
@@ -12997,25 +12997,25 @@ function requireAsync_iterator() {
|
|
|
12997
12997
|
m[a] ? b(m[a]) : F(d(void 0, !0));
|
|
12998
12998
|
});
|
|
12999
12999
|
});
|
|
13000
|
-
var C = this[c],
|
|
13000
|
+
var C = this[c], w;
|
|
13001
13001
|
if (C)
|
|
13002
|
-
|
|
13002
|
+
w = new Promise(p(C, this));
|
|
13003
13003
|
else {
|
|
13004
|
-
var
|
|
13005
|
-
if (
|
|
13006
|
-
return Promise.resolve(d(
|
|
13007
|
-
|
|
13004
|
+
var O = this[u].read();
|
|
13005
|
+
if (O !== null)
|
|
13006
|
+
return Promise.resolve(d(O, !1));
|
|
13007
|
+
w = new Promise(this[l]);
|
|
13008
13008
|
}
|
|
13009
|
-
return this[c] =
|
|
13009
|
+
return this[c] = w, w;
|
|
13010
13010
|
}
|
|
13011
13011
|
}, t(e, Symbol.asyncIterator, function() {
|
|
13012
13012
|
return this;
|
|
13013
13013
|
}), t(e, "return", function() {
|
|
13014
13014
|
var m = this;
|
|
13015
13015
|
return new Promise(function(y, C) {
|
|
13016
|
-
m[u].destroy(null, function(
|
|
13017
|
-
if (
|
|
13018
|
-
C(
|
|
13016
|
+
m[u].destroy(null, function(w) {
|
|
13017
|
+
if (w) {
|
|
13018
|
+
C(w);
|
|
13019
13019
|
return;
|
|
13020
13020
|
}
|
|
13021
13021
|
y(d(void 0, !0));
|
|
@@ -13038,16 +13038,16 @@ function requireAsync_iterator() {
|
|
|
13038
13038
|
value: m._readableState.endEmitted,
|
|
13039
13039
|
writable: !0
|
|
13040
13040
|
}), t(y, l, {
|
|
13041
|
-
value: function(
|
|
13041
|
+
value: function(O, F) {
|
|
13042
13042
|
var b = C[u].read();
|
|
13043
|
-
b ? (C[c] = null, C[r] = null, C[o] = null,
|
|
13043
|
+
b ? (C[c] = null, C[r] = null, C[o] = null, O(d(b, !1))) : (C[r] = O, C[o] = F);
|
|
13044
13044
|
},
|
|
13045
13045
|
writable: !0
|
|
13046
13046
|
}), y));
|
|
13047
|
-
return C[c] = null, n(m, function(
|
|
13048
|
-
if (
|
|
13049
|
-
var
|
|
13050
|
-
|
|
13047
|
+
return C[c] = null, n(m, function(w) {
|
|
13048
|
+
if (w && w.code !== "ERR_STREAM_PREMATURE_CLOSE") {
|
|
13049
|
+
var O = C[o];
|
|
13050
|
+
O !== null && (C[c] = null, C[r] = null, C[o] = null, O(w)), C[a] = w;
|
|
13051
13051
|
return;
|
|
13052
13052
|
}
|
|
13053
13053
|
var F = C[r];
|
|
@@ -13084,7 +13084,7 @@ function require_stream_readable() {
|
|
|
13084
13084
|
};
|
|
13085
13085
|
var u = requireBuffer_list(), d = destroy_1, f = state, h = f.getHighWaterMark, p = errorsBrowser.codes, I = p.ERR_INVALID_ARG_TYPE, v = p.ERR_STREAM_PUSH_AFTER_EOF, x = p.ERR_METHOD_NOT_IMPLEMENTED, g = p.ERR_STREAM_UNSHIFT_AFTER_END_EVENT, m, y, C;
|
|
13086
13086
|
inherits_browser.exports(S, n);
|
|
13087
|
-
var
|
|
13087
|
+
var w = d.errorOrDestroy, O = ["error", "close", "destroy", "pause", "resume"];
|
|
13088
13088
|
function F(E, _, z) {
|
|
13089
13089
|
if (typeof E.prependListener == "function")
|
|
13090
13090
|
return E.prependListener(_, z);
|
|
@@ -13123,12 +13123,12 @@ function require_stream_readable() {
|
|
|
13123
13123
|
else {
|
|
13124
13124
|
var re;
|
|
13125
13125
|
if (te || (re = $(ee, _)), re)
|
|
13126
|
-
|
|
13126
|
+
w(E, re);
|
|
13127
13127
|
else if (ee.objectMode || _ && _.length > 0)
|
|
13128
13128
|
if (typeof _ != "string" && !ee.objectMode && Object.getPrototypeOf(_) !== r.prototype && (_ = a(_)), X)
|
|
13129
|
-
ee.endEmitted ?
|
|
13129
|
+
ee.endEmitted ? w(E, new g()) : k(E, ee, _, !0);
|
|
13130
13130
|
else if (ee.ended)
|
|
13131
|
-
|
|
13131
|
+
w(E, new v());
|
|
13132
13132
|
else {
|
|
13133
13133
|
if (ee.destroyed)
|
|
13134
13134
|
return !1;
|
|
@@ -13193,9 +13193,9 @@ function require_stream_readable() {
|
|
|
13193
13193
|
l("emitReadable_", _.destroyed, _.length, _.ended), !_.destroyed && (_.length || _.ended) && (E.emit("readable"), _.emittedReadable = !1), _.needReadable = !_.flowing && !_.ended && _.length <= _.highWaterMark, M(E);
|
|
13194
13194
|
}
|
|
13195
13195
|
function V(E, _) {
|
|
13196
|
-
_.readingMore || (_.readingMore = !0, process.nextTick(
|
|
13196
|
+
_.readingMore || (_.readingMore = !0, process.nextTick(G, E, _));
|
|
13197
13197
|
}
|
|
13198
|
-
function
|
|
13198
|
+
function G(E, _) {
|
|
13199
13199
|
for (; !_.reading && !_.ended && (_.length < _.highWaterMark || _.flowing && _.length === 0); ) {
|
|
13200
13200
|
var z = _.length;
|
|
13201
13201
|
if (l("maybeReadMore read 0"), E.read(0), z === _.length)
|
|
@@ -13204,7 +13204,7 @@ function require_stream_readable() {
|
|
|
13204
13204
|
_.readingMore = !1;
|
|
13205
13205
|
}
|
|
13206
13206
|
S.prototype._read = function(E) {
|
|
13207
|
-
|
|
13207
|
+
w(this, new x("_read()"));
|
|
13208
13208
|
}, S.prototype.pipe = function(E, _) {
|
|
13209
13209
|
var z = this, X = this._readableState;
|
|
13210
13210
|
switch (X.pipesCount) {
|
|
@@ -13227,7 +13227,7 @@ function require_stream_readable() {
|
|
|
13227
13227
|
function se() {
|
|
13228
13228
|
l("onend"), E.end();
|
|
13229
13229
|
}
|
|
13230
|
-
var ie =
|
|
13230
|
+
var ie = Y(z);
|
|
13231
13231
|
E.on("drain", ie);
|
|
13232
13232
|
var le = !1;
|
|
13233
13233
|
function pe() {
|
|
@@ -13240,7 +13240,7 @@ function require_stream_readable() {
|
|
|
13240
13240
|
l("dest.write", Ce), Ce === !1 && ((X.pipesCount === 1 && X.pipes === E || X.pipesCount > 1 && Q(X.pipes, E) !== -1) && !le && (l("false write response, pause", X.awaitDrain), X.awaitDrain++), z.pause());
|
|
13241
13241
|
}
|
|
13242
13242
|
function we(Te) {
|
|
13243
|
-
l("onerror", Te), ye(), E.removeListener("error", we), t(E, "error") === 0 &&
|
|
13243
|
+
l("onerror", Te), ye(), E.removeListener("error", we), t(E, "error") === 0 && w(E, Te);
|
|
13244
13244
|
}
|
|
13245
13245
|
F(E, "error", we);
|
|
13246
13246
|
function me() {
|
|
@@ -13256,7 +13256,7 @@ function require_stream_readable() {
|
|
|
13256
13256
|
}
|
|
13257
13257
|
return E.emit("pipe", z), X.flowing || (l("pipe resume"), z.resume()), E;
|
|
13258
13258
|
};
|
|
13259
|
-
function
|
|
13259
|
+
function Y(E) {
|
|
13260
13260
|
return function() {
|
|
13261
13261
|
var z = E._readableState;
|
|
13262
13262
|
l("pipeOnDrain", z.awaitDrain), z.awaitDrain && z.awaitDrain--, z.awaitDrain === 0 && t(E, "data") && (z.flowing = !0, M(E));
|
|
@@ -13336,8 +13336,8 @@ function require_stream_readable() {
|
|
|
13336
13336
|
return E[se].apply(E, arguments);
|
|
13337
13337
|
};
|
|
13338
13338
|
}(te));
|
|
13339
|
-
for (var ee = 0; ee <
|
|
13340
|
-
E.on(
|
|
13339
|
+
for (var ee = 0; ee < O.length; ee++)
|
|
13340
|
+
E.on(O[ee], this.emit.bind(this, O[ee]));
|
|
13341
13341
|
return this._read = function(re) {
|
|
13342
13342
|
l("wrapped _read", re), X && (X = !1, E.resume());
|
|
13343
13343
|
}, this;
|
|
@@ -15713,12 +15713,12 @@ const Image = (e) => {
|
|
|
15713
15713
|
summaryField: g,
|
|
15714
15714
|
titleField: m
|
|
15715
15715
|
} = r, y = a.filter((b) => b.values), C = useContext(FormContext$1), {
|
|
15716
|
-
getContext:
|
|
15716
|
+
getContext: w
|
|
15717
15717
|
} = C || {};
|
|
15718
15718
|
useDeepCompareEffect(() => {
|
|
15719
15719
|
F();
|
|
15720
15720
|
}, [a]);
|
|
15721
|
-
const
|
|
15721
|
+
const O = (b) => {
|
|
15722
15722
|
o == null || o({
|
|
15723
15723
|
items: b
|
|
15724
15724
|
});
|
|
@@ -15732,11 +15732,11 @@ const Image = (e) => {
|
|
|
15732
15732
|
model: I,
|
|
15733
15733
|
items: a,
|
|
15734
15734
|
context: {
|
|
15735
|
-
...
|
|
15735
|
+
...w == null ? void 0 : w(),
|
|
15736
15736
|
...v
|
|
15737
15737
|
}
|
|
15738
15738
|
});
|
|
15739
|
-
|
|
15739
|
+
O(b);
|
|
15740
15740
|
} catch (b) {
|
|
15741
15741
|
u(b);
|
|
15742
15742
|
} finally {
|
|
@@ -15792,7 +15792,7 @@ const Image = (e) => {
|
|
|
15792
15792
|
f(!1);
|
|
15793
15793
|
},
|
|
15794
15794
|
parentContext: {
|
|
15795
|
-
...
|
|
15795
|
+
...w == null ? void 0 : w(),
|
|
15796
15796
|
...v
|
|
15797
15797
|
},
|
|
15798
15798
|
onCancel: () => {
|
|
@@ -15966,7 +15966,7 @@ const transformPlainMany2Ones = ({
|
|
|
15966
15966
|
onChange: r
|
|
15967
15967
|
} = e, {
|
|
15968
15968
|
items: o = []
|
|
15969
|
-
} = t || {}, a = o.filter((
|
|
15969
|
+
} = t || {}, a = o.filter((O) => O.operation !== "pendingRemove").map((O) => O.id), [s, c] = useState([]), [l, u] = useState(), [d, f] = useState(!1), {
|
|
15970
15970
|
relation: h,
|
|
15971
15971
|
context: p,
|
|
15972
15972
|
readOnly: I,
|
|
@@ -15977,26 +15977,26 @@ const transformPlainMany2Ones = ({
|
|
|
15977
15977
|
useDeepCompareEffect(() => {
|
|
15978
15978
|
y();
|
|
15979
15979
|
}, [o]);
|
|
15980
|
-
const m = (
|
|
15980
|
+
const m = (O) => {
|
|
15981
15981
|
r == null || r({
|
|
15982
|
-
items:
|
|
15982
|
+
items: O
|
|
15983
15983
|
});
|
|
15984
15984
|
};
|
|
15985
15985
|
async function y() {
|
|
15986
15986
|
f(!0);
|
|
15987
|
-
let
|
|
15987
|
+
let O = [];
|
|
15988
15988
|
try {
|
|
15989
|
-
if (I && (
|
|
15989
|
+
if (I && (O = [["id", "in", a]]), n.domain) {
|
|
15990
15990
|
const S = await ConnectionProvider.getHandler().evalDomain({
|
|
15991
15991
|
domain: n.domain,
|
|
15992
15992
|
values: x.getPlainValues(),
|
|
15993
15993
|
context: x.getContext()
|
|
15994
15994
|
});
|
|
15995
|
-
|
|
15995
|
+
O = [...O, ...S];
|
|
15996
15996
|
}
|
|
15997
15997
|
const b = (await ConnectionProvider.getHandler().search({
|
|
15998
15998
|
model: h,
|
|
15999
|
-
params:
|
|
15999
|
+
params: O,
|
|
16000
16000
|
fields: [v],
|
|
16001
16001
|
context: {
|
|
16002
16002
|
...g == null ? void 0 : g(),
|
|
@@ -16017,26 +16017,26 @@ const transformPlainMany2Ones = ({
|
|
|
16017
16017
|
f(!1);
|
|
16018
16018
|
}
|
|
16019
16019
|
}
|
|
16020
|
-
const C = (
|
|
16021
|
-
const F = o.map((S) =>
|
|
16020
|
+
const C = (O) => {
|
|
16021
|
+
const F = o.map((S) => O.includes(S.id) ? S.operation == "pendingRemove" ? {
|
|
16022
16022
|
...S,
|
|
16023
16023
|
operation: "pendingLink"
|
|
16024
16024
|
} : S : {
|
|
16025
16025
|
id: S.id,
|
|
16026
16026
|
operation: "pendingRemove"
|
|
16027
16027
|
}), b = F.map((S) => S.id);
|
|
16028
|
-
|
|
16028
|
+
O.filter((S) => !b.includes(S)).map((S) => {
|
|
16029
16029
|
F.push({
|
|
16030
16030
|
id: S,
|
|
16031
16031
|
operation: "pendingLink"
|
|
16032
16032
|
});
|
|
16033
16033
|
}), m(F);
|
|
16034
|
-
},
|
|
16034
|
+
}, w = (O) => {
|
|
16035
16035
|
const {
|
|
16036
16036
|
label: F,
|
|
16037
16037
|
closable: b,
|
|
16038
16038
|
onClose: S
|
|
16039
|
-
} =
|
|
16039
|
+
} = O, T = (k) => {
|
|
16040
16040
|
k.preventDefault(), k.stopPropagation();
|
|
16041
16041
|
};
|
|
16042
16042
|
return /* @__PURE__ */ jsx(Tag, {
|
|
@@ -16061,7 +16061,7 @@ const transformPlainMany2Ones = ({
|
|
|
16061
16061
|
children: /* @__PURE__ */ jsx(Select, {
|
|
16062
16062
|
mode: "multiple",
|
|
16063
16063
|
value: s.length ? a : [],
|
|
16064
|
-
tagRender:
|
|
16064
|
+
tagRender: w,
|
|
16065
16065
|
bordered: !I,
|
|
16066
16066
|
disabled: I,
|
|
16067
16067
|
options: s,
|
|
@@ -16291,8 +16291,8 @@ const transformPlainMany2Ones = ({
|
|
|
16291
16291
|
const [t, n] = useState(!1), [r, o] = useState(!1), [a, s] = useState(!1), [c, l] = useState(!1), [u, d] = useState(!0), [f, h] = useState([]), [p, I] = useState(!1), [v, x] = useState([]), [g, m] = useState(!1), {
|
|
16292
16292
|
children: y,
|
|
16293
16293
|
currentView: C,
|
|
16294
|
-
title:
|
|
16295
|
-
setCurrentView:
|
|
16294
|
+
title: w,
|
|
16295
|
+
setCurrentView: O,
|
|
16296
16296
|
availableViews: F,
|
|
16297
16297
|
formRef: b,
|
|
16298
16298
|
searchTreeRef: S,
|
|
@@ -16306,8 +16306,8 @@ const transformPlainMany2Ones = ({
|
|
|
16306
16306
|
currentModel: U,
|
|
16307
16307
|
toolbar: L,
|
|
16308
16308
|
setToolbar: V,
|
|
16309
|
-
sorter:
|
|
16310
|
-
setSorter:
|
|
16309
|
+
sorter: G,
|
|
16310
|
+
setSorter: Y,
|
|
16311
16311
|
totalItems: H,
|
|
16312
16312
|
setTotalItems: K,
|
|
16313
16313
|
setSelectedRowItems: N,
|
|
@@ -16325,9 +16325,9 @@ const transformPlainMany2Ones = ({
|
|
|
16325
16325
|
};
|
|
16326
16326
|
return /* @__PURE__ */ jsx(ActionViewContext.Provider, {
|
|
16327
16327
|
value: {
|
|
16328
|
-
title:
|
|
16328
|
+
title: w,
|
|
16329
16329
|
currentView: C,
|
|
16330
|
-
setCurrentView:
|
|
16330
|
+
setCurrentView: O,
|
|
16331
16331
|
availableViews: F,
|
|
16332
16332
|
formIsSaving: t,
|
|
16333
16333
|
setFormIsSaving: n,
|
|
@@ -16362,8 +16362,8 @@ const transformPlainMany2Ones = ({
|
|
|
16362
16362
|
searchParams: v,
|
|
16363
16363
|
searchVisible: g,
|
|
16364
16364
|
setSearchVisible: m,
|
|
16365
|
-
sorter:
|
|
16366
|
-
setSorter:
|
|
16365
|
+
sorter: G,
|
|
16366
|
+
setSorter: Y,
|
|
16367
16367
|
totalItems: H,
|
|
16368
16368
|
setTotalItems: K,
|
|
16369
16369
|
searchTreeNameSearch: M,
|
|
@@ -16434,40 +16434,23 @@ const transformPlainMany2Ones = ({
|
|
|
16434
16434
|
return;
|
|
16435
16435
|
}
|
|
16436
16436
|
const {
|
|
16437
|
-
ids: U
|
|
16438
|
-
...L
|
|
16437
|
+
ids: U
|
|
16439
16438
|
} = P || {};
|
|
16440
|
-
let
|
|
16441
|
-
const
|
|
16439
|
+
let L = U || [];
|
|
16440
|
+
const V = typeof $ == "string" ? parseContext({
|
|
16442
16441
|
context: $,
|
|
16443
16442
|
fields: S,
|
|
16444
16443
|
values: T
|
|
16445
16444
|
}) : $;
|
|
16446
|
-
if (!V) {
|
|
16447
|
-
const G = await ConnectionProvider.getHandler().searchAllIds({
|
|
16448
|
-
params: [],
|
|
16449
|
-
model: L.model || B,
|
|
16450
|
-
totalItems: 1,
|
|
16451
|
-
context: {
|
|
16452
|
-
...k,
|
|
16453
|
-
...Y
|
|
16454
|
-
}
|
|
16455
|
-
});
|
|
16456
|
-
if (G.length === 0) {
|
|
16457
|
-
showDialog$8("Nothing to print");
|
|
16458
|
-
return;
|
|
16459
|
-
}
|
|
16460
|
-
V = G, P.id = G[0];
|
|
16461
|
-
}
|
|
16462
16445
|
try {
|
|
16463
16446
|
const G = await ConnectionProvider.getHandler().createReport({
|
|
16464
16447
|
model: B,
|
|
16465
16448
|
name: D,
|
|
16466
16449
|
datas: P,
|
|
16467
|
-
ids:
|
|
16450
|
+
ids: L,
|
|
16468
16451
|
context: {
|
|
16469
16452
|
...k,
|
|
16470
|
-
...
|
|
16453
|
+
...V
|
|
16471
16454
|
}
|
|
16472
16455
|
});
|
|
16473
16456
|
c(!0), a.current = !0, o.current = setInterval(() => {
|
|
@@ -16562,12 +16545,12 @@ const transformPlainMany2Ones = ({
|
|
|
16562
16545
|
let j;
|
|
16563
16546
|
const U = k.view_mode.split(","), L = [];
|
|
16564
16547
|
for (const V of U) {
|
|
16565
|
-
const
|
|
16548
|
+
const G = await ConnectionProvider.getHandler().getView({
|
|
16566
16549
|
model: k.res_model,
|
|
16567
16550
|
type: V,
|
|
16568
16551
|
context: B
|
|
16569
16552
|
});
|
|
16570
|
-
L.push([
|
|
16553
|
+
L.push([G.view_id, V]);
|
|
16571
16554
|
}
|
|
16572
16555
|
if (k.view_id)
|
|
16573
16556
|
j = {
|
|
@@ -16575,9 +16558,9 @@ const transformPlainMany2Ones = ({
|
|
|
16575
16558
|
type: k.view_mode.split(",")[0]
|
|
16576
16559
|
};
|
|
16577
16560
|
else {
|
|
16578
|
-
const V = k.view_mode.split(",")[0], [
|
|
16561
|
+
const V = k.view_mode.split(",")[0], [G] = L.find(([Y, H]) => H === V);
|
|
16579
16562
|
j = {
|
|
16580
|
-
id:
|
|
16563
|
+
id: G,
|
|
16581
16564
|
type: V
|
|
16582
16565
|
};
|
|
16583
16566
|
}
|
|
@@ -16603,7 +16586,7 @@ const transformPlainMany2Ones = ({
|
|
|
16603
16586
|
context: T,
|
|
16604
16587
|
actionData: k
|
|
16605
16588
|
}) {
|
|
16606
|
-
h ?
|
|
16589
|
+
h ? w({
|
|
16607
16590
|
domain: F,
|
|
16608
16591
|
model: b,
|
|
16609
16592
|
formView: S,
|
|
@@ -16617,7 +16600,7 @@ const transformPlainMany2Ones = ({
|
|
|
16617
16600
|
actionData: k
|
|
16618
16601
|
}), p(!0));
|
|
16619
16602
|
}
|
|
16620
|
-
async function
|
|
16603
|
+
async function w({
|
|
16621
16604
|
domain: F,
|
|
16622
16605
|
model: b,
|
|
16623
16606
|
formView: S,
|
|
@@ -16638,7 +16621,7 @@ const transformPlainMany2Ones = ({
|
|
|
16638
16621
|
actionData: k
|
|
16639
16622
|
}), p(!0);
|
|
16640
16623
|
}
|
|
16641
|
-
async function
|
|
16624
|
+
async function O() {
|
|
16642
16625
|
var F;
|
|
16643
16626
|
(F = d.current) == null || F.call(d), p(!1), v({
|
|
16644
16627
|
domain: void 0,
|
|
@@ -16669,7 +16652,7 @@ const transformPlainMany2Ones = ({
|
|
|
16669
16652
|
model: I.model,
|
|
16670
16653
|
formView: I.formView,
|
|
16671
16654
|
visible: h,
|
|
16672
|
-
onSubmitSucceed:
|
|
16655
|
+
onSubmitSucceed: O,
|
|
16673
16656
|
onCancel: () => {
|
|
16674
16657
|
var F;
|
|
16675
16658
|
(F = d.current) == null || F.call(d), p(!1), v({
|
|
@@ -16710,11 +16693,11 @@ function Form(e, t) {
|
|
|
16710
16693
|
actionDomain: m,
|
|
16711
16694
|
visible: y = !0,
|
|
16712
16695
|
rootForm: C = !1,
|
|
16713
|
-
defaultValues:
|
|
16714
|
-
forcedValues:
|
|
16696
|
+
defaultValues: w,
|
|
16697
|
+
forcedValues: O = {}
|
|
16715
16698
|
} = e, {
|
|
16716
16699
|
lang: F
|
|
16717
|
-
} = useContext(LocaleContext), [b, S] = useState(!1), [T, k] = useState(), [$, B] = useState(), [P] = Form$3.useForm(), [D, j] = useState(), [U, L] = useState(), V = useContext(FormModalContext), [
|
|
16700
|
+
} = useContext(LocaleContext), [b, S] = useState(!1), [T, k] = useState(), [$, B] = useState(), [P] = Form$3.useForm(), [D, j] = useState(), [U, L] = useState(), V = useContext(FormModalContext), [G, Y] = useState(), [H, K] = useState(!1), N = useRef(), W = useRef({}), M = useRef({}), A = useRef(!1), q = useRef(!1), Z = G < WIDTH_BREAKPOINT, Q = useContext(FormContext$1), {
|
|
16718
16701
|
activeId: E
|
|
16719
16702
|
} = Q || {}, _ = useContext(ActionViewContext), {
|
|
16720
16703
|
setFormIsSaving: z = void 0,
|
|
@@ -16812,7 +16795,7 @@ function Form(e, t) {
|
|
|
16812
16795
|
...g,
|
|
16813
16796
|
...ne
|
|
16814
16797
|
},
|
|
16815
|
-
extraValues:
|
|
16798
|
+
extraValues: w
|
|
16816
16799
|
});
|
|
16817
16800
|
}, ge = () => Object.keys(getTouchedValues({
|
|
16818
16801
|
source: W.current,
|
|
@@ -16963,7 +16946,7 @@ function Form(e, t) {
|
|
|
16963
16946
|
id: me(),
|
|
16964
16947
|
values: {
|
|
16965
16948
|
...ce,
|
|
16966
|
-
...
|
|
16949
|
+
...O
|
|
16967
16950
|
},
|
|
16968
16951
|
fields: U,
|
|
16969
16952
|
context: {
|
|
@@ -16976,7 +16959,7 @@ function Form(e, t) {
|
|
|
16976
16959
|
model: n,
|
|
16977
16960
|
values: {
|
|
16978
16961
|
...ce,
|
|
16979
|
-
...
|
|
16962
|
+
...O
|
|
16980
16963
|
},
|
|
16981
16964
|
fields: U,
|
|
16982
16965
|
context: {
|
|
@@ -17293,7 +17276,7 @@ function Form(e, t) {
|
|
|
17293
17276
|
bounds: !0,
|
|
17294
17277
|
onResize: (J) => {
|
|
17295
17278
|
var ne;
|
|
17296
|
-
|
|
17279
|
+
Y((ne = J.bounds) == null ? void 0 : ne.width);
|
|
17297
17280
|
},
|
|
17298
17281
|
children: ({
|
|
17299
17282
|
measureRef: J
|
|
@@ -17329,12 +17312,12 @@ const Form$1 = forwardRef(Form), FormModal = (e) => {
|
|
|
17329
17312
|
const {
|
|
17330
17313
|
action_id: y,
|
|
17331
17314
|
res_id: C,
|
|
17332
|
-
action_type:
|
|
17333
|
-
view_id:
|
|
17315
|
+
action_type: w,
|
|
17316
|
+
view_id: O
|
|
17334
17317
|
} = c, F = await ConnectionProvider.getHandler().isShortcutFavorite({
|
|
17335
17318
|
action_id: y,
|
|
17336
|
-
action_type:
|
|
17337
|
-
view_id:
|
|
17319
|
+
action_type: w,
|
|
17320
|
+
view_id: O,
|
|
17338
17321
|
res_id: C || !1
|
|
17339
17322
|
});
|
|
17340
17323
|
p(F !== !1), F !== !1 && v(F);
|
|
@@ -17348,13 +17331,13 @@ const Form$1 = forwardRef(Form), FormModal = (e) => {
|
|
|
17348
17331
|
const {
|
|
17349
17332
|
action_id: y,
|
|
17350
17333
|
res_id: C,
|
|
17351
|
-
action_type:
|
|
17352
|
-
view_id:
|
|
17334
|
+
action_type: w,
|
|
17335
|
+
view_id: O
|
|
17353
17336
|
} = c;
|
|
17354
17337
|
await ConnectionProvider.getHandler().addFavourite({
|
|
17355
17338
|
action_id: y,
|
|
17356
|
-
action_type:
|
|
17357
|
-
view_id:
|
|
17339
|
+
action_type: w,
|
|
17340
|
+
view_id: O,
|
|
17358
17341
|
res_id: C || !1
|
|
17359
17342
|
});
|
|
17360
17343
|
}
|
|
@@ -17832,8 +17815,8 @@ function SearchFilter(e) {
|
|
|
17832
17815
|
if (!f)
|
|
17833
17816
|
return;
|
|
17834
17817
|
const y = p ? f : u, C = y == null ? void 0 : y.rows;
|
|
17835
|
-
return C == null ? void 0 : C.map((
|
|
17836
|
-
children:
|
|
17818
|
+
return C == null ? void 0 : C.map((w, O) => /* @__PURE__ */ jsx(Row, {
|
|
17819
|
+
children: w.map((F, b) => /* @__PURE__ */ jsx(Col, {
|
|
17837
17820
|
xs: 24,
|
|
17838
17821
|
className: "p-2",
|
|
17839
17822
|
xl: 6,
|
|
@@ -17841,7 +17824,7 @@ function SearchFilter(e) {
|
|
|
17841
17824
|
field: F
|
|
17842
17825
|
})
|
|
17843
17826
|
}, b))
|
|
17844
|
-
},
|
|
17827
|
+
}, O));
|
|
17845
17828
|
};
|
|
17846
17829
|
useDeepCompareEffect(() => {
|
|
17847
17830
|
I(!1);
|
|
@@ -17855,13 +17838,13 @@ function SearchFilter(e) {
|
|
|
17855
17838
|
onFinish: (y) => {
|
|
17856
17839
|
const {
|
|
17857
17840
|
limit: C,
|
|
17858
|
-
offset:
|
|
17841
|
+
offset: w
|
|
17859
17842
|
} = y;
|
|
17860
17843
|
delete y.offset, delete y.limit;
|
|
17861
|
-
const
|
|
17844
|
+
const O = getParamsForFields(y, t);
|
|
17862
17845
|
o({
|
|
17863
|
-
params:
|
|
17864
|
-
offset:
|
|
17846
|
+
params: O,
|
|
17847
|
+
offset: w,
|
|
17865
17848
|
limit: C
|
|
17866
17849
|
});
|
|
17867
17850
|
},
|
|
@@ -18035,7 +18018,7 @@ const Many2oneSuffixModal = (e) => {
|
|
|
18035
18018
|
children: $.name
|
|
18036
18019
|
}, $.id));
|
|
18037
18020
|
return /* @__PURE__ */ jsx(Menu, {
|
|
18038
|
-
onClick:
|
|
18021
|
+
onClick: w,
|
|
18039
18022
|
children: [/* @__PURE__ */ jsx(Menu.Item, {
|
|
18040
18023
|
disabled: !d.toolbar.action || d.toolbar.action.length === 0,
|
|
18041
18024
|
icon: /* @__PURE__ */ jsx(ThunderboltOutlined, {}),
|
|
@@ -18054,7 +18037,7 @@ const Many2oneSuffixModal = (e) => {
|
|
|
18054
18037
|
})]
|
|
18055
18038
|
});
|
|
18056
18039
|
}
|
|
18057
|
-
function
|
|
18040
|
+
function w(T) {
|
|
18058
18041
|
if (T.key === "action")
|
|
18059
18042
|
a(!0);
|
|
18060
18043
|
else if (T.key === "print")
|
|
@@ -18072,7 +18055,7 @@ const Many2oneSuffixModal = (e) => {
|
|
|
18072
18055
|
});
|
|
18073
18056
|
}
|
|
18074
18057
|
}
|
|
18075
|
-
function
|
|
18058
|
+
function O(T) {
|
|
18076
18059
|
a(!1), m == null || m({
|
|
18077
18060
|
actionData: T,
|
|
18078
18061
|
values: h,
|
|
@@ -18111,7 +18094,7 @@ const Many2oneSuffixModal = (e) => {
|
|
|
18111
18094
|
}), /* @__PURE__ */ jsx(Many2oneSuffixModal, {
|
|
18112
18095
|
visible: o,
|
|
18113
18096
|
items: (b = d == null ? void 0 : d.toolbar) == null ? void 0 : b.action,
|
|
18114
|
-
onItemClicked:
|
|
18097
|
+
onItemClicked: O,
|
|
18115
18098
|
onCancel: () => a(!1)
|
|
18116
18099
|
}), /* @__PURE__ */ jsx(Many2oneSuffixModal, {
|
|
18117
18100
|
visible: s,
|
|
@@ -18273,12 +18256,12 @@ function Tree(e) {
|
|
|
18273
18256
|
sorter: I,
|
|
18274
18257
|
onFetchChildrenForRecord: v,
|
|
18275
18258
|
childField: x
|
|
18276
|
-
} = e, [g, m] = useState([]), [y, C] = useState([]),
|
|
18259
|
+
} = e, [g, m] = useState([]), [y, C] = useState([]), w = useRef(!1), O = useRef(null), {
|
|
18277
18260
|
t: F
|
|
18278
18261
|
} = useContext(LocaleContext);
|
|
18279
18262
|
useEffect(() => {
|
|
18280
|
-
|
|
18281
|
-
const D = getTableColumns(
|
|
18263
|
+
O.current = getTree(o);
|
|
18264
|
+
const D = getTableColumns(O.current, {
|
|
18282
18265
|
boolean: booleanComponentFn,
|
|
18283
18266
|
many2one: many2OneComponentFn,
|
|
18284
18267
|
text: textComponentFn,
|
|
@@ -18292,8 +18275,8 @@ function Tree(e) {
|
|
|
18292
18275
|
});
|
|
18293
18276
|
C(D);
|
|
18294
18277
|
}, [o]), useEffect(() => {
|
|
18295
|
-
|
|
18296
|
-
const D = getTableItems(
|
|
18278
|
+
w.current = !1;
|
|
18279
|
+
const D = getTableItems(O.current, a);
|
|
18297
18280
|
m(D);
|
|
18298
18281
|
}, [a]);
|
|
18299
18282
|
const b = (t - 1) * n + 1, S = b - 1 + g.length, T = r === void 0 ? null : r === 0 ? F("no_results") : F("summary").replace("{from}", b == null ? void 0 : b.toString()).replace("{to}", S == null ? void 0 : S.toString()).replace("{total}", r == null ? void 0 : r.toString()), k = () => !u || o.isExpandable || c ? null : r === void 0 ? /* @__PURE__ */ jsx(Spin, {}) : /* @__PURE__ */ jsxs(Row, {
|
|
@@ -18316,28 +18299,28 @@ function Tree(e) {
|
|
|
18316
18299
|
});
|
|
18317
18300
|
function $() {
|
|
18318
18301
|
var V;
|
|
18319
|
-
const j =
|
|
18320
|
-
label:
|
|
18321
|
-
field:
|
|
18302
|
+
const j = O.current.columns.filter((G) => G.sum !== void 0).map((G) => ({
|
|
18303
|
+
label: G.sum,
|
|
18304
|
+
field: G.id
|
|
18322
18305
|
}));
|
|
18323
18306
|
if (!j || j.length === 0)
|
|
18324
18307
|
return null;
|
|
18325
|
-
let U = [], L = ((V = d == null ? void 0 : d.selectedRowKeys) == null ? void 0 : V.length) > 0 ? g.filter((
|
|
18326
|
-
return j.forEach((
|
|
18327
|
-
const
|
|
18328
|
-
U.push(`${
|
|
18308
|
+
let U = [], L = ((V = d == null ? void 0 : d.selectedRowKeys) == null ? void 0 : V.length) > 0 ? g.filter((G) => d == null ? void 0 : d.selectedRowKeys.includes(G.id)) : g;
|
|
18309
|
+
return j.forEach((G) => {
|
|
18310
|
+
const Y = L.reduce((H, K) => K[G.field] && !isNaN(K[G.field]) ? H + K[G.field] : H, 0);
|
|
18311
|
+
U.push(`${G.label}: ${Math.round(Y * 100) / 100}`);
|
|
18329
18312
|
}), /* @__PURE__ */ jsx("div", {
|
|
18330
18313
|
className: "p-1 pb-0 pl-2 mt-2 bg-gray-50",
|
|
18331
18314
|
children: U.join(", ")
|
|
18332
18315
|
});
|
|
18333
18316
|
}
|
|
18334
18317
|
let B, P = f;
|
|
18335
|
-
if (
|
|
18318
|
+
if (O.current !== null) {
|
|
18336
18319
|
B = calculateColumnsWidth(y, g, 600);
|
|
18337
|
-
const j =
|
|
18320
|
+
const j = O.current;
|
|
18338
18321
|
f && j.columns.some((U) => U.sum !== void 0) && (P = f - 30);
|
|
18339
18322
|
}
|
|
18340
|
-
return
|
|
18323
|
+
return O.current === null ? /* @__PURE__ */ jsx(Spin, {
|
|
18341
18324
|
style: {
|
|
18342
18325
|
padding: "2rem"
|
|
18343
18326
|
}
|
|
@@ -18383,7 +18366,7 @@ function SearchTree(e, t) {
|
|
|
18383
18366
|
parentContext: f = {},
|
|
18384
18367
|
onChangeSelectedRowKeys: h,
|
|
18385
18368
|
limit: p
|
|
18386
|
-
} = e, [I, v] = useState(!1), [x, g] = useState(!1), m = useRef(!1), y = useRef(p || DEFAULT_SEARCH_LIMIT$1), [C,
|
|
18369
|
+
} = e, [I, v] = useState(!1), [x, g] = useState(!1), m = useRef(!1), y = useRef(p || DEFAULT_SEARCH_LIMIT$1), [C, w] = useState(), [O, F] = useState(), [b, S] = useState(), [T, k] = useState(1), [$, B] = useState(0), [P, D] = useState(p || DEFAULT_SEARCH_LIMIT$1), j = useRef([]), [U, L] = useState(), [V, G] = useState([]), [Y, H] = useState(void 0), [K, N] = useState(!1), [W, M] = useState(), [A, q] = useState(), [Z, Q] = useState(!1), E = useRef([]), [_, z] = useState(200), X = useRef([]), te = useRef(), {
|
|
18387
18370
|
height: ee
|
|
18388
18371
|
} = useWindowDimensions(), re = useContext(ActionViewContext), {
|
|
18389
18372
|
setResults: se = void 0,
|
|
@@ -18412,7 +18395,7 @@ function SearchTree(e, t) {
|
|
|
18412
18395
|
Q(!0), k(de), B((de - 1) * P);
|
|
18413
18396
|
};
|
|
18414
18397
|
function Ie(de) {
|
|
18415
|
-
se == null || se([...de]),
|
|
18398
|
+
se == null || se([...de]), G([...de]);
|
|
18416
18399
|
}
|
|
18417
18400
|
const Se = useCallback(() => pe || V, [pe, V]), Re = async () => {
|
|
18418
18401
|
const de = await ConnectionProvider.getHandler().nameSearch({
|
|
@@ -18425,14 +18408,14 @@ function SearchTree(e, t) {
|
|
|
18425
18408
|
if (L(de.length), Ee == null || Ee(de.length), de.length > 0) {
|
|
18426
18409
|
const xe = de.map((J) => J == null ? void 0 : J[0]), {
|
|
18427
18410
|
colors: Oe
|
|
18428
|
-
} = getTree(
|
|
18411
|
+
} = getTree(O), ke = await ConnectionProvider.getHandler().readEvalUiObjects({
|
|
18429
18412
|
model: C,
|
|
18430
18413
|
ids: xe,
|
|
18431
|
-
arch:
|
|
18432
|
-
fields:
|
|
18433
|
-
...
|
|
18434
|
-
[
|
|
18435
|
-
} :
|
|
18414
|
+
arch: O == null ? void 0 : O.arch,
|
|
18415
|
+
fields: O.field_parent ? {
|
|
18416
|
+
...O.fields,
|
|
18417
|
+
[O.field_parent]: {}
|
|
18418
|
+
} : O.fields,
|
|
18436
18419
|
context: f,
|
|
18437
18420
|
attrs: Oe && {
|
|
18438
18421
|
colors: Oe
|
|
@@ -18443,7 +18426,7 @@ function SearchTree(e, t) {
|
|
|
18443
18426
|
resultsToSort: Ae,
|
|
18444
18427
|
sorter: Te,
|
|
18445
18428
|
fields: {
|
|
18446
|
-
...
|
|
18429
|
+
...O.fields,
|
|
18447
18430
|
...b.fields
|
|
18448
18431
|
}
|
|
18449
18432
|
}) : [...X.current];
|
|
@@ -18464,7 +18447,7 @@ function SearchTree(e, t) {
|
|
|
18464
18447
|
}, De = async () => {
|
|
18465
18448
|
const de = E.current.length > 0 ? E.current : l, xe = Pe(j.current, de), {
|
|
18466
18449
|
colors: Oe
|
|
18467
|
-
} = getTree(
|
|
18450
|
+
} = getTree(O), {
|
|
18468
18451
|
totalItems: ke,
|
|
18469
18452
|
results: Ae,
|
|
18470
18453
|
attrsEvaluated: Ue
|
|
@@ -18473,10 +18456,10 @@ function SearchTree(e, t) {
|
|
|
18473
18456
|
limit: P,
|
|
18474
18457
|
offset: $,
|
|
18475
18458
|
model: C,
|
|
18476
|
-
fields:
|
|
18477
|
-
...
|
|
18478
|
-
[
|
|
18479
|
-
} :
|
|
18459
|
+
fields: O.field_parent ? {
|
|
18460
|
+
...O.fields,
|
|
18461
|
+
[O.field_parent]: {}
|
|
18462
|
+
} : O.fields,
|
|
18480
18463
|
context: f,
|
|
18481
18464
|
attrs: Oe && {
|
|
18482
18465
|
colors: Oe
|
|
@@ -18487,7 +18470,7 @@ function SearchTree(e, t) {
|
|
|
18487
18470
|
resultsToSort: Ae,
|
|
18488
18471
|
sorter: Te,
|
|
18489
18472
|
fields: {
|
|
18490
|
-
...
|
|
18473
|
+
...O.fields,
|
|
18491
18474
|
...b.fields
|
|
18492
18475
|
}
|
|
18493
18476
|
}) : [...X.current];
|
|
@@ -18508,16 +18491,16 @@ function SearchTree(e, t) {
|
|
|
18508
18491
|
}
|
|
18509
18492
|
};
|
|
18510
18493
|
async function Me(de) {
|
|
18511
|
-
const xe = de[(
|
|
18494
|
+
const xe = de[(O == null ? void 0 : O.field_parent) || "child_id"], Oe = await ConnectionProvider.getHandler().readObjects({
|
|
18512
18495
|
model: C,
|
|
18513
18496
|
ids: xe,
|
|
18514
|
-
fields:
|
|
18515
|
-
...
|
|
18516
|
-
[
|
|
18517
|
-
} :
|
|
18497
|
+
fields: O.field_parent ? {
|
|
18498
|
+
...O.fields,
|
|
18499
|
+
[O.field_parent]: {}
|
|
18500
|
+
} : O.fields,
|
|
18518
18501
|
context: f
|
|
18519
18502
|
});
|
|
18520
|
-
return Ie([...Se(), ...Oe]), getTableItems(getTree(
|
|
18503
|
+
return Ie([...Se(), ...Oe]), getTableItems(getTree(O), Oe);
|
|
18521
18504
|
}
|
|
18522
18505
|
useEffect(() => {
|
|
18523
18506
|
!x || u && (m.current = !1, Be());
|
|
@@ -18532,7 +18515,7 @@ function SearchTree(e, t) {
|
|
|
18532
18515
|
v(!1), ae == null || ae(!1);
|
|
18533
18516
|
}
|
|
18534
18517
|
}, He = async () => {
|
|
18535
|
-
|
|
18518
|
+
w(n);
|
|
18536
18519
|
let de = r;
|
|
18537
18520
|
r || (de = await ConnectionProvider.getHandler().getView({
|
|
18538
18521
|
model: n,
|
|
@@ -18564,14 +18547,14 @@ function SearchTree(e, t) {
|
|
|
18564
18547
|
id: xe
|
|
18565
18548
|
} = de;
|
|
18566
18549
|
te.current || (te.current = await ConnectionProvider.getHandler().treeButOpen({
|
|
18567
|
-
id:
|
|
18550
|
+
id: O.view_id,
|
|
18568
18551
|
model: C,
|
|
18569
18552
|
context: f
|
|
18570
18553
|
}));
|
|
18571
18554
|
const Oe = te.current[0][2];
|
|
18572
18555
|
await (he == null ? void 0 : he({
|
|
18573
18556
|
actionData: Oe,
|
|
18574
|
-
fields:
|
|
18557
|
+
fields: O.fields,
|
|
18575
18558
|
values: {
|
|
18576
18559
|
active_id: xe,
|
|
18577
18560
|
...de
|
|
@@ -18582,7 +18565,7 @@ function SearchTree(e, t) {
|
|
|
18582
18565
|
const {
|
|
18583
18566
|
id: xe
|
|
18584
18567
|
} = de;
|
|
18585
|
-
if (
|
|
18568
|
+
if (O != null && O.isExpandable) {
|
|
18586
18569
|
try {
|
|
18587
18570
|
await je(de);
|
|
18588
18571
|
} catch (Oe) {
|
|
@@ -18594,7 +18577,7 @@ function SearchTree(e, t) {
|
|
|
18594
18577
|
id: xe,
|
|
18595
18578
|
model: C,
|
|
18596
18579
|
formView: b,
|
|
18597
|
-
treeView:
|
|
18580
|
+
treeView: O
|
|
18598
18581
|
});
|
|
18599
18582
|
};
|
|
18600
18583
|
function Ge(de) {
|
|
@@ -18602,9 +18585,9 @@ function SearchTree(e, t) {
|
|
|
18602
18585
|
we == null || we(xe), h == null || h(de);
|
|
18603
18586
|
}
|
|
18604
18587
|
function Ye() {
|
|
18605
|
-
return
|
|
18588
|
+
return O != null && O.isExpandable ? ee - 160 : ee - (_ + 210);
|
|
18606
18589
|
}
|
|
18607
|
-
const Ke = () => !
|
|
18590
|
+
const Ke = () => !O || !b ? null : /* @__PURE__ */ jsxs(Fragment, {
|
|
18608
18591
|
children: [/* @__PURE__ */ jsx(Measure, {
|
|
18609
18592
|
bounds: !0,
|
|
18610
18593
|
onResize: (de) => {
|
|
@@ -18621,10 +18604,10 @@ function SearchTree(e, t) {
|
|
|
18621
18604
|
},
|
|
18622
18605
|
children: [/* @__PURE__ */ jsx(SearchFilter, {
|
|
18623
18606
|
fields: {
|
|
18624
|
-
...
|
|
18607
|
+
...O.fields,
|
|
18625
18608
|
...b.fields
|
|
18626
18609
|
},
|
|
18627
|
-
searchFields: mergeSearchFields([b.search_fields,
|
|
18610
|
+
searchFields: mergeSearchFields([b.search_fields, O.search_fields]),
|
|
18628
18611
|
onClear: We,
|
|
18629
18612
|
limit: P,
|
|
18630
18613
|
offset: $,
|
|
@@ -18645,13 +18628,13 @@ function SearchTree(e, t) {
|
|
|
18645
18628
|
total: U,
|
|
18646
18629
|
limit: P,
|
|
18647
18630
|
page: T,
|
|
18648
|
-
treeView:
|
|
18631
|
+
treeView: O,
|
|
18649
18632
|
results: Se(),
|
|
18650
18633
|
onRequestPageChange: ue,
|
|
18651
18634
|
loading: Z,
|
|
18652
18635
|
onRowClicked: ze,
|
|
18653
18636
|
scrollY: c || Ye(),
|
|
18654
|
-
colorsForResults:
|
|
18637
|
+
colorsForResults: Y,
|
|
18655
18638
|
rowSelection: {
|
|
18656
18639
|
selectedRowKeys: ve == null ? void 0 : ve.map((de) => de.id),
|
|
18657
18640
|
onChange: Ge
|
|
@@ -18663,14 +18646,14 @@ function SearchTree(e, t) {
|
|
|
18663
18646
|
resultsToSort: Se(),
|
|
18664
18647
|
sorter: de,
|
|
18665
18648
|
fields: {
|
|
18666
|
-
...
|
|
18649
|
+
...O.fields,
|
|
18667
18650
|
...b.fields
|
|
18668
18651
|
}
|
|
18669
18652
|
}) : [...X.current];
|
|
18670
18653
|
Ie(xe);
|
|
18671
18654
|
},
|
|
18672
|
-
onFetchChildrenForRecord:
|
|
18673
|
-
childField:
|
|
18655
|
+
onFetchChildrenForRecord: O.isExpandable ? Me : void 0,
|
|
18656
|
+
childField: O.field_parent
|
|
18674
18657
|
})]
|
|
18675
18658
|
});
|
|
18676
18659
|
return A ? /* @__PURE__ */ jsx(Alert, {
|
|
@@ -18816,24 +18799,24 @@ const SearchTree$1 = forwardRef(SearchTree), SearchModal = (e) => {
|
|
|
18816
18799
|
context: c,
|
|
18817
18800
|
id: l,
|
|
18818
18801
|
domain: u
|
|
18819
|
-
} = r, d = o && !s ? Config.requiredClass : void 0, [f, h] = useState(!1), [p, I] = useState(!1), [v, x] = useState(!1), [g, m] = useState(), y = useRef(!1), [C,
|
|
18802
|
+
} = r, d = o && !s ? Config.requiredClass : void 0, [f, h] = useState(!1), [p, I] = useState(!1), [v, x] = useState(!1), [g, m] = useState(), y = useRef(!1), [C, w] = useState(""), O = useRef(), F = useContext(FormContext$1), {
|
|
18820
18803
|
domain: b,
|
|
18821
18804
|
getValues: S,
|
|
18822
18805
|
getFields: T,
|
|
18823
18806
|
getContext: k,
|
|
18824
18807
|
setOriginalValue: $,
|
|
18825
18808
|
elementHasLostFocus: B
|
|
18826
|
-
} = F || {}, P = useRef([]), [D, j] = useState([]), U = t && t[0], L = t && t[1] || "";
|
|
18809
|
+
} = F || {}, P = useRef([]), [D, j] = useState([]), U = t && t[0] || void 0, L = t && t[1] || "";
|
|
18827
18810
|
useEffect(() => {
|
|
18828
|
-
!Array.isArray(t) &&
|
|
18811
|
+
!Array.isArray(t) && t && K(t);
|
|
18829
18812
|
}, [t]), useEffect(() => {
|
|
18830
|
-
U && L.length === 0 ? K(U) : U && L.length > 0 ?
|
|
18813
|
+
U && L.length === 0 ? K(U) : U && L.length > 0 ? w(L) : !U && !L && w(O.current || "");
|
|
18831
18814
|
}, [t]);
|
|
18832
18815
|
const V = (A) => {
|
|
18833
18816
|
n == null || n(A), B == null || B();
|
|
18834
|
-
},
|
|
18835
|
-
|
|
18836
|
-
},
|
|
18817
|
+
}, G = (A) => {
|
|
18818
|
+
O.current = A.target.value, V([void 0, ""]);
|
|
18819
|
+
}, Y = async () => {
|
|
18837
18820
|
if (!v && C !== L) {
|
|
18838
18821
|
if (await new Promise((A) => setTimeout(A, 100)), y.current) {
|
|
18839
18822
|
V([void 0, ""]);
|
|
@@ -18842,17 +18825,17 @@ const SearchTree$1 = forwardRef(SearchTree), SearchModal = (e) => {
|
|
|
18842
18825
|
x(!0);
|
|
18843
18826
|
try {
|
|
18844
18827
|
if (P.current && P.current.length > 0)
|
|
18845
|
-
H(
|
|
18828
|
+
H(O.current);
|
|
18846
18829
|
else {
|
|
18847
18830
|
const A = await ConnectionProvider.getHandler().nameSearch({
|
|
18848
18831
|
model: a,
|
|
18849
|
-
payload:
|
|
18832
|
+
payload: O.current,
|
|
18850
18833
|
context: {
|
|
18851
18834
|
...k == null ? void 0 : k(),
|
|
18852
18835
|
...c
|
|
18853
18836
|
}
|
|
18854
18837
|
});
|
|
18855
|
-
A.length === 1 ? (
|
|
18838
|
+
A.length === 1 ? (O.current = void 0, V(A[0])) : H(O.current);
|
|
18856
18839
|
}
|
|
18857
18840
|
} catch (A) {
|
|
18858
18841
|
showDialog$3(A);
|
|
@@ -18908,7 +18891,7 @@ const SearchTree$1 = forwardRef(SearchTree), SearchModal = (e) => {
|
|
|
18908
18891
|
}))), j(P.current);
|
|
18909
18892
|
}
|
|
18910
18893
|
async function W(A) {
|
|
18911
|
-
A.code === "Enter" ? (A.preventDefault(), A.stopPropagation(), await
|
|
18894
|
+
A.code === "Enter" ? (A.preventDefault(), A.stopPropagation(), await Y()) : A.code === "Backspace" && U !== void 0 && (A.preventDefault(), A.stopPropagation(), V([void 0, ""]));
|
|
18912
18895
|
}
|
|
18913
18896
|
return /* @__PURE__ */ jsxs(Row, {
|
|
18914
18897
|
gutter: 8,
|
|
@@ -18919,9 +18902,9 @@ const SearchTree$1 = forwardRef(SearchTree), SearchModal = (e) => {
|
|
|
18919
18902
|
type: "text",
|
|
18920
18903
|
value: C,
|
|
18921
18904
|
disabled: s,
|
|
18922
|
-
onChange:
|
|
18905
|
+
onChange: G,
|
|
18923
18906
|
className: d,
|
|
18924
|
-
onBlur:
|
|
18907
|
+
onBlur: Y,
|
|
18925
18908
|
onKeyDown: W,
|
|
18926
18909
|
suffix: /* @__PURE__ */ jsx(Many2oneSuffix, {
|
|
18927
18910
|
id: U,
|
|
@@ -18962,7 +18945,7 @@ const SearchTree$1 = forwardRef(SearchTree), SearchModal = (e) => {
|
|
|
18962
18945
|
visible: f,
|
|
18963
18946
|
nameSearch: U ? void 0 : g,
|
|
18964
18947
|
onSelectValues: (A) => {
|
|
18965
|
-
h(!1), K(A[0]), y.current = !1,
|
|
18948
|
+
h(!1), K(A[0]), y.current = !1, O.current = void 0;
|
|
18966
18949
|
},
|
|
18967
18950
|
onCloseModal: () => {
|
|
18968
18951
|
h(!1), y.current = !1;
|
|
@@ -19417,11 +19400,11 @@ function requireTransButton() {
|
|
|
19417
19400
|
display: "inline-block"
|
|
19418
19401
|
}, l = /* @__PURE__ */ o.forwardRef(function(d, f) {
|
|
19419
19402
|
var h = function(C) {
|
|
19420
|
-
var
|
|
19421
|
-
|
|
19403
|
+
var w = C.keyCode;
|
|
19404
|
+
w === a.default.ENTER && C.preventDefault();
|
|
19422
19405
|
}, p = function(C) {
|
|
19423
|
-
var
|
|
19424
|
-
|
|
19406
|
+
var w = C.keyCode, O = d.onClick;
|
|
19407
|
+
w === a.default.ENTER && O && O();
|
|
19425
19408
|
}, I = d.style, v = d.noStyle, x = d.disabled, g = s(d, ["style", "noStyle", "disabled"]), m = {};
|
|
19426
19409
|
return v || (m = (0, r.default)({}, c)), x && (m.pointerEvents = "none"), m = (0, r.default)((0, r.default)({}, m), I), /* @__PURE__ */ o.createElement("div", (0, r.default)({
|
|
19427
19410
|
role: "button",
|
|
@@ -20118,8 +20101,8 @@ function doAlign(e, t, n, r) {
|
|
|
20118
20101
|
var C = flip(o, /[tb]/gi, {
|
|
20119
20102
|
t: "b",
|
|
20120
20103
|
b: "t"
|
|
20121
|
-
}),
|
|
20122
|
-
isCompleteFailY(F, p, h) || (d = 1, o = C, a =
|
|
20104
|
+
}), w = flipOffset(a, 1), O = flipOffset(s, 1), F = getElFuturePos(p, t, C, w, O);
|
|
20105
|
+
isCompleteFailY(F, p, h) || (d = 1, o = C, a = w, s = O);
|
|
20123
20106
|
}
|
|
20124
20107
|
d && (I = getElFuturePos(p, t, o, a, s), utils.mix(v, I));
|
|
20125
20108
|
var b = isFailX(I, p, h), S = isFailY(I, p, h);
|
|
@@ -20229,7 +20212,7 @@ var Align = function e(t, n) {
|
|
|
20229
20212
|
var r = t.children, o = t.disabled, a = t.target, s = t.align, c = t.onAlign, l = t.monitorWindowResize, u = t.monitorBufferTime, d = u === void 0 ? 0 : u, f = React__default.useRef({}), h = React__default.useRef(), p = React__default.Children.only(r), I = React__default.useRef({});
|
|
20230
20213
|
I.current.disabled = o, I.current.target = a, I.current.onAlign = c;
|
|
20231
20214
|
var v = useBuffer(function() {
|
|
20232
|
-
var
|
|
20215
|
+
var O = I.current, F = O.disabled, b = O.target, S = O.onAlign;
|
|
20233
20216
|
if (!F && b) {
|
|
20234
20217
|
var T = h.current, k, $ = getElement(b), B = getPoint(b);
|
|
20235
20218
|
f.current.element = $, f.current.point = B;
|
|
@@ -20245,17 +20228,17 @@ var Align = function e(t, n) {
|
|
|
20245
20228
|
}
|
|
20246
20229
|
});
|
|
20247
20230
|
React__default.useEffect(function() {
|
|
20248
|
-
var
|
|
20249
|
-
h.current !== C.current.element && (C.current.cancel(), C.current.element = h.current, C.current.cancel = monitorResize(h.current, g)), (f.current.element !==
|
|
20231
|
+
var O = getElement(a), F = getPoint(a);
|
|
20232
|
+
h.current !== C.current.element && (C.current.cancel(), C.current.element = h.current, C.current.cancel = monitorResize(h.current, g)), (f.current.element !== O || !isSamePoint(f.current.point, F)) && (g(), y.current.element !== O && (y.current.cancel(), y.current.element = O, y.current.cancel = monitorResize(O, g)));
|
|
20250
20233
|
}), React__default.useEffect(function() {
|
|
20251
20234
|
o ? m() : g();
|
|
20252
20235
|
}, [o]);
|
|
20253
|
-
var
|
|
20236
|
+
var w = React__default.useRef(null);
|
|
20254
20237
|
return React__default.useEffect(function() {
|
|
20255
|
-
l ?
|
|
20238
|
+
l ? w.current || (w.current = addEventListenerWrap(window, "resize", g)) : w.current && (w.current.remove(), w.current = null);
|
|
20256
20239
|
}, [l]), React__default.useEffect(function() {
|
|
20257
20240
|
return function() {
|
|
20258
|
-
y.current.cancel(), C.current.cancel(),
|
|
20241
|
+
y.current.cancel(), C.current.cancel(), w.current && w.current.remove(), m();
|
|
20259
20242
|
};
|
|
20260
20243
|
}, []), React__default.useImperativeHandle(n, function() {
|
|
20261
20244
|
return {
|
|
@@ -20338,7 +20321,7 @@ const useVisibleStatus = function(e, t) {
|
|
|
20338
20321
|
return [s, a];
|
|
20339
20322
|
};
|
|
20340
20323
|
var PopupInner = /* @__PURE__ */ React.forwardRef(function(e, t) {
|
|
20341
|
-
var n = e.visible, r = e.prefixCls, o = e.className, a = e.style, s = e.children, c = e.zIndex, l = e.stretch, u = e.destroyPopupOnHide, d = e.align, f = e.point, h = e.getRootDomNode, p = e.getClassNameFromAlign, I = e.onAlign, v = e.onMouseEnter, x = e.onMouseLeave, g = e.onMouseDown, m = e.onTouchStart, y = useRef(), C = useRef(),
|
|
20324
|
+
var n = e.visible, r = e.prefixCls, o = e.className, a = e.style, s = e.children, c = e.zIndex, l = e.stretch, u = e.destroyPopupOnHide, d = e.align, f = e.point, h = e.getRootDomNode, p = e.getClassNameFromAlign, I = e.onAlign, v = e.onMouseEnter, x = e.onMouseLeave, g = e.onMouseDown, m = e.onTouchStart, y = useRef(), C = useRef(), w = useState(), O = _slicedToArray(w, 2), F = O[0], b = O[1], S = useStretchStyle(l), T = _slicedToArray(S, 2), k = T[0], $ = T[1];
|
|
20342
20325
|
function B() {
|
|
20343
20326
|
l && $(h());
|
|
20344
20327
|
}
|
|
@@ -20346,15 +20329,15 @@ var PopupInner = /* @__PURE__ */ React.forwardRef(function(e, t) {
|
|
|
20346
20329
|
function V() {
|
|
20347
20330
|
return f || h;
|
|
20348
20331
|
}
|
|
20349
|
-
function
|
|
20332
|
+
function G() {
|
|
20350
20333
|
var A;
|
|
20351
20334
|
(A = y.current) === null || A === void 0 || A.forceAlign();
|
|
20352
20335
|
}
|
|
20353
|
-
function
|
|
20336
|
+
function Y(A, q) {
|
|
20354
20337
|
if (j === "align") {
|
|
20355
20338
|
var Z = p(q);
|
|
20356
20339
|
b(Z), F !== Z ? Promise.resolve().then(function() {
|
|
20357
|
-
|
|
20340
|
+
G();
|
|
20358
20341
|
}) : U(function() {
|
|
20359
20342
|
var Q;
|
|
20360
20343
|
(Q = L.current) === null || Q === void 0 || Q.call(L);
|
|
@@ -20377,7 +20360,7 @@ var PopupInner = /* @__PURE__ */ React.forwardRef(function(e, t) {
|
|
|
20377
20360
|
!H.motionName && j === "motion" && U();
|
|
20378
20361
|
}, [H.motionName, j]), React.useImperativeHandle(t, function() {
|
|
20379
20362
|
return {
|
|
20380
|
-
forceAlign:
|
|
20363
|
+
forceAlign: G,
|
|
20381
20364
|
getElement: function() {
|
|
20382
20365
|
return C.current;
|
|
20383
20366
|
}
|
|
@@ -20410,7 +20393,7 @@ var PopupInner = /* @__PURE__ */ React.forwardRef(function(e, t) {
|
|
|
20410
20393
|
monitorWindowResize: !0,
|
|
20411
20394
|
disabled: W,
|
|
20412
20395
|
align: d,
|
|
20413
|
-
onAlign:
|
|
20396
|
+
onAlign: Y,
|
|
20414
20397
|
children: /* @__PURE__ */ jsx("div", {
|
|
20415
20398
|
ref: q,
|
|
20416
20399
|
className: E,
|
|
@@ -20561,7 +20544,7 @@ function generateTrigger(e) {
|
|
|
20561
20544
|
var u = [], d = s.props, f = d.popupPlacement, h = d.builtinPlacements, p = d.prefixCls, I = d.alignPoint, v = d.getPopupClassNameFromAlign;
|
|
20562
20545
|
return f && h && u.push(getAlignPopupClassName(h, p, l, I)), v && u.push(v(l)), u.join(" ");
|
|
20563
20546
|
}, s.getComponent = function() {
|
|
20564
|
-
var l = s.props, u = l.prefixCls, d = l.destroyPopupOnHide, f = l.popupClassName, h = l.onPopupAlign, p = l.popupMotion, I = l.popupAnimation, v = l.popupTransitionName, x = l.popupStyle, g = l.mask, m = l.maskAnimation, y = l.maskTransitionName, C = l.maskMotion,
|
|
20547
|
+
var l = s.props, u = l.prefixCls, d = l.destroyPopupOnHide, f = l.popupClassName, h = l.onPopupAlign, p = l.popupMotion, I = l.popupAnimation, v = l.popupTransitionName, x = l.popupStyle, g = l.mask, m = l.maskAnimation, y = l.maskTransitionName, C = l.maskMotion, w = l.zIndex, O = l.popup, F = l.stretch, b = l.alignPoint, S = l.mobile, T = s.state, k = T.popupVisible, $ = T.point, B = s.getPopupAlign(), P = {};
|
|
20565
20548
|
return s.isMouseEnterToShow() && (P.onMouseEnter = s.onPopupMouseEnter), s.isMouseLeaveToHide() && (P.onMouseLeave = s.onPopupMouseLeave), P.onMouseDown = s.onPopupMouseDown, P.onTouchStart = s.onPopupMouseDown, /* @__PURE__ */ jsx(Popup, {
|
|
20566
20549
|
prefixCls: u,
|
|
20567
20550
|
destroyPopupOnHide: d,
|
|
@@ -20577,7 +20560,7 @@ function generateTrigger(e) {
|
|
|
20577
20560
|
getRootDomNode: s.getRootDomNode,
|
|
20578
20561
|
style: x,
|
|
20579
20562
|
mask: g,
|
|
20580
|
-
zIndex:
|
|
20563
|
+
zIndex: w,
|
|
20581
20564
|
transitionName: v,
|
|
20582
20565
|
maskAnimation: m,
|
|
20583
20566
|
maskTransitionName: y,
|
|
@@ -20585,7 +20568,7 @@ function generateTrigger(e) {
|
|
|
20585
20568
|
ref: s.popupRef,
|
|
20586
20569
|
motion: p,
|
|
20587
20570
|
mobile: S,
|
|
20588
|
-
children: typeof
|
|
20571
|
+
children: typeof O == "function" ? O() : O
|
|
20589
20572
|
});
|
|
20590
20573
|
}, s.attachParent = function(l) {
|
|
20591
20574
|
wrapperRaf.cancel(s.attachId);
|
|
@@ -20895,23 +20878,23 @@ var autoAdjustOverflow = {
|
|
|
20895
20878
|
children: typeof n == "function" ? n() : n
|
|
20896
20879
|
});
|
|
20897
20880
|
}, Tooltip = function e(t, n) {
|
|
20898
|
-
var r = t.overlayClassName, o = t.trigger, a = o === void 0 ? ["hover"] : o, s = t.mouseEnterDelay, c = s === void 0 ? 0 : s, l = t.mouseLeaveDelay, u = l === void 0 ? 0.1 : l, d = t.overlayStyle, f = t.prefixCls, h = f === void 0 ? "rc-tooltip" : f, p = t.children, I = t.onVisibleChange, v = t.afterVisibleChange, x = t.transitionName, g = t.animation, m = t.placement, y = m === void 0 ? "right" : m, C = t.align,
|
|
20881
|
+
var r = t.overlayClassName, o = t.trigger, a = o === void 0 ? ["hover"] : o, s = t.mouseEnterDelay, c = s === void 0 ? 0 : s, l = t.mouseLeaveDelay, u = l === void 0 ? 0.1 : l, d = t.overlayStyle, f = t.prefixCls, h = f === void 0 ? "rc-tooltip" : f, p = t.children, I = t.onVisibleChange, v = t.afterVisibleChange, x = t.transitionName, g = t.animation, m = t.placement, y = m === void 0 ? "right" : m, C = t.align, w = C === void 0 ? {} : C, O = t.destroyTooltipOnHide, F = O === void 0 ? !1 : O, b = t.defaultVisible, S = t.getTooltipContainer, T = t.overlayInnerStyle, k = _objectWithoutProperties(t, ["overlayClassName", "trigger", "mouseEnterDelay", "mouseLeaveDelay", "overlayStyle", "prefixCls", "children", "onVisibleChange", "afterVisibleChange", "transitionName", "animation", "placement", "align", "destroyTooltipOnHide", "defaultVisible", "getTooltipContainer", "overlayInnerStyle"]), $ = useRef(null);
|
|
20899
20882
|
useImperativeHandle(n, function() {
|
|
20900
20883
|
return $.current;
|
|
20901
20884
|
});
|
|
20902
20885
|
var B = _objectSpread2$1({}, k);
|
|
20903
20886
|
"visible" in t && (B.popupVisible = t.visible);
|
|
20904
20887
|
var P = function() {
|
|
20905
|
-
var V = t.arrowContent,
|
|
20888
|
+
var V = t.arrowContent, G = V === void 0 ? null : V, Y = t.overlay, H = t.id;
|
|
20906
20889
|
return [
|
|
20907
20890
|
/* @__PURE__ */ jsx("div", {
|
|
20908
20891
|
className: "".concat(h, "-arrow"),
|
|
20909
|
-
children:
|
|
20892
|
+
children: G
|
|
20910
20893
|
}, "arrow"),
|
|
20911
20894
|
/* @__PURE__ */ jsx(Content$2, {
|
|
20912
20895
|
prefixCls: h,
|
|
20913
20896
|
id: H,
|
|
20914
|
-
overlay:
|
|
20897
|
+
overlay: Y,
|
|
20915
20898
|
overlayInnerStyle: T
|
|
20916
20899
|
}, "content")
|
|
20917
20900
|
];
|
|
@@ -20931,7 +20914,7 @@ var autoAdjustOverflow = {
|
|
|
20931
20914
|
builtinPlacements: placements$2,
|
|
20932
20915
|
popupPlacement: y,
|
|
20933
20916
|
ref: $,
|
|
20934
|
-
popupAlign:
|
|
20917
|
+
popupAlign: w,
|
|
20935
20918
|
getPopupContainer: S,
|
|
20936
20919
|
onPopupVisibleChange: I,
|
|
20937
20920
|
afterPopupVisibleChange: v,
|
|
@@ -21138,20 +21121,20 @@ function requireTooltip() {
|
|
|
21138
21121
|
value: !0
|
|
21139
21122
|
}), e.default = void 0;
|
|
21140
21123
|
var r = n(requireDefineProperty()), o = n(requireSlicedToArray()), a = n(require_extends()), s = t(React__default), c = n(require$$6), l = n(requireClassnames()), u = n(requirePlacements()), d = requireReactNode(), f = requireConfigProvider(), h = requireColors(), p = function(y, C) {
|
|
21141
|
-
var
|
|
21124
|
+
var w = {}, O = (0, a.default)({}, y);
|
|
21142
21125
|
return C.forEach(function(F) {
|
|
21143
|
-
y && F in y && (
|
|
21126
|
+
y && F in y && (w[F] = y[F], delete O[F]);
|
|
21144
21127
|
}), {
|
|
21145
|
-
picked:
|
|
21146
|
-
omitted:
|
|
21128
|
+
picked: w,
|
|
21129
|
+
omitted: O
|
|
21147
21130
|
};
|
|
21148
21131
|
}, I = new RegExp("^(".concat(h.PresetColorTypes.join("|"), ")(-inverse)?$"));
|
|
21149
21132
|
function v(m, y) {
|
|
21150
21133
|
var C = m.type;
|
|
21151
21134
|
if ((C.__ANT_BUTTON === !0 || C.__ANT_SWITCH === !0 || C.__ANT_CHECKBOX === !0 || m.type === "button") && m.props.disabled) {
|
|
21152
|
-
var
|
|
21135
|
+
var w = p(m.props.style, ["position", "left", "right", "top", "bottom", "float", "display", "zIndex"]), O = w.picked, F = w.omitted, b = (0, a.default)((0, a.default)({
|
|
21153
21136
|
display: "inline-block"
|
|
21154
|
-
},
|
|
21137
|
+
}, O), {
|
|
21155
21138
|
cursor: "not-allowed",
|
|
21156
21139
|
width: m.props.block ? "100%" : null
|
|
21157
21140
|
}), S = (0, a.default)((0, a.default)({}, F), {
|
|
@@ -21168,7 +21151,7 @@ function requireTooltip() {
|
|
|
21168
21151
|
return m;
|
|
21169
21152
|
}
|
|
21170
21153
|
var x = /* @__PURE__ */ s.forwardRef(function(m, y) {
|
|
21171
|
-
var C,
|
|
21154
|
+
var C, w = s.useContext(f.ConfigContext), O = w.getPopupContainer, F = w.getPrefixCls, b = w.direction, S = s.useState(!!m.visible || !!m.defaultVisible), T = (0, o.default)(S, 2), k = T[0], $ = T[1];
|
|
21172
21155
|
s.useEffect(function() {
|
|
21173
21156
|
"visible" in m && $(m.visible);
|
|
21174
21157
|
}, [m.visible]);
|
|
@@ -21197,7 +21180,7 @@ function requireTooltip() {
|
|
|
21197
21180
|
}, U = function() {
|
|
21198
21181
|
var te = m.title, ee = m.overlay;
|
|
21199
21182
|
return te === 0 ? te : ee || te || "";
|
|
21200
|
-
}, L = m.prefixCls, V = m.openClassName,
|
|
21183
|
+
}, L = m.prefixCls, V = m.openClassName, G = m.getPopupContainer, Y = m.getTooltipContainer, H = m.overlayClassName, K = m.color, N = m.overlayInnerStyle, W = m.children, M = F("tooltip", L), A = k;
|
|
21201
21184
|
!("visible" in m) && B() && (A = !1);
|
|
21202
21185
|
var q = v((0, d.isValidElement)(W) ? W : /* @__PURE__ */ s.createElement("span", null, W), M), Z = q.props, Q = (0, l.default)(Z.className, (0, r.default)({}, V || "".concat(M, "-open"), !0)), E = (0, l.default)(H, (C = {}, (0, r.default)(C, "".concat(M, "-rtl"), b === "rtl"), (0, r.default)(C, "".concat(M, "-").concat(K), K && I.test(K)), C)), _ = N, z;
|
|
21203
21186
|
return K && !I.test(K) && (_ = (0, a.default)((0, a.default)({}, N), {
|
|
@@ -21207,7 +21190,7 @@ function requireTooltip() {
|
|
|
21207
21190
|
}), /* @__PURE__ */ s.createElement(c.default, (0, a.default)({}, m, {
|
|
21208
21191
|
prefixCls: M,
|
|
21209
21192
|
overlayClassName: E,
|
|
21210
|
-
getTooltipContainer:
|
|
21193
|
+
getTooltipContainer: G || Y || O,
|
|
21211
21194
|
ref: y,
|
|
21212
21195
|
builtinPlacements: D(),
|
|
21213
21196
|
overlay: U(),
|
|
@@ -21279,12 +21262,12 @@ function requireTypography() {
|
|
|
21279
21262
|
x.indexOf(m[y]) < 0 && Object.prototype.propertyIsEnumerable.call(v, m[y]) && (g[m[y]] = v[m[y]]);
|
|
21280
21263
|
return g;
|
|
21281
21264
|
}, f = function(x, g) {
|
|
21282
|
-
var m = x.prefixCls, y = x.component, C = y === void 0 ? "article" : y,
|
|
21265
|
+
var m = x.prefixCls, y = x.component, C = y === void 0 ? "article" : y, w = x.className, O = x["aria-label"], F = x.setContentRef, b = x.children, S = d(x, ["prefixCls", "component", "className", "aria-label", "setContentRef", "children"]), T = g;
|
|
21283
21266
|
return F && ((0, u.default)(!1, "Typography", "`setContentRef` is deprecated. Please use `ref` instead."), T = (0, c.composeRef)(g, F)), /* @__PURE__ */ a.createElement(l.ConfigConsumer, null, function(k) {
|
|
21284
|
-
var $ = k.getPrefixCls, B = k.direction, P = C, D = $("typography", m), j = (0, s.default)(D, (0, o.default)({}, "".concat(D, "-rtl"), B === "rtl"),
|
|
21267
|
+
var $ = k.getPrefixCls, B = k.direction, P = C, D = $("typography", m), j = (0, s.default)(D, (0, o.default)({}, "".concat(D, "-rtl"), B === "rtl"), w);
|
|
21285
21268
|
return /* @__PURE__ */ a.createElement(P, (0, r.default)({
|
|
21286
21269
|
className: j,
|
|
21287
|
-
"aria-label":
|
|
21270
|
+
"aria-label": O,
|
|
21288
21271
|
ref: T
|
|
21289
21272
|
}, S), b);
|
|
21290
21273
|
});
|
|
@@ -21343,10 +21326,10 @@ function requireEditable() {
|
|
|
21343
21326
|
value: !0
|
|
21344
21327
|
}), e.default = void 0;
|
|
21345
21328
|
var r = n(requireDefineProperty()), o = n(requireSlicedToArray()), a = t(React__default), s = n(requireClassnames()), c = n(requireKeyCode()), l = n(requireEnterOutlined()), u = n(TextArea$3), d = function(p) {
|
|
21346
|
-
var I = p.prefixCls, v = p["aria-label"], x = p.className, g = p.style, m = p.direction, y = p.maxLength, C = p.autoSize,
|
|
21329
|
+
var I = p.prefixCls, v = p["aria-label"], x = p.className, g = p.style, m = p.direction, y = p.maxLength, C = p.autoSize, w = C === void 0 ? !0 : C, O = p.value, F = p.onSave, b = p.onCancel, S = a.useRef(), T = a.useRef(!1), k = a.useRef(), $ = a.useState(O), B = (0, o.default)($, 2), P = B[0], D = B[1];
|
|
21347
21330
|
a.useEffect(function() {
|
|
21348
|
-
D(
|
|
21349
|
-
}, [
|
|
21331
|
+
D(O);
|
|
21332
|
+
}, [O]), a.useEffect(function() {
|
|
21350
21333
|
if (S.current && S.current.resizableTextArea) {
|
|
21351
21334
|
var N = S.current.resizableTextArea.textArea;
|
|
21352
21335
|
N.focus();
|
|
@@ -21364,13 +21347,13 @@ function requireEditable() {
|
|
|
21364
21347
|
}, V = function(W) {
|
|
21365
21348
|
var M = W.keyCode;
|
|
21366
21349
|
T.current || (k.current = M);
|
|
21367
|
-
},
|
|
21350
|
+
}, G = function() {
|
|
21368
21351
|
F(P.trim());
|
|
21369
|
-
},
|
|
21352
|
+
}, Y = function(W) {
|
|
21370
21353
|
var M = W.keyCode, A = W.ctrlKey, q = W.altKey, Z = W.metaKey, Q = W.shiftKey;
|
|
21371
|
-
k.current === M && !T.current && !A && !q && !Z && !Q && (M === c.default.ENTER ?
|
|
21354
|
+
k.current === M && !T.current && !A && !q && !Z && !Q && (M === c.default.ENTER ? G() : M === c.default.ESC && b());
|
|
21372
21355
|
}, H = function() {
|
|
21373
|
-
|
|
21356
|
+
G();
|
|
21374
21357
|
}, K = (0, s.default)(I, "".concat(I, "-edit-content"), (0, r.default)({}, "".concat(I, "-rtl"), m === "rtl"), x);
|
|
21375
21358
|
return /* @__PURE__ */ a.createElement("div", {
|
|
21376
21359
|
className: K,
|
|
@@ -21381,12 +21364,12 @@ function requireEditable() {
|
|
|
21381
21364
|
value: P,
|
|
21382
21365
|
onChange: j,
|
|
21383
21366
|
onKeyDown: V,
|
|
21384
|
-
onKeyUp:
|
|
21367
|
+
onKeyUp: Y,
|
|
21385
21368
|
onCompositionStart: U,
|
|
21386
21369
|
onCompositionEnd: L,
|
|
21387
21370
|
onBlur: H,
|
|
21388
21371
|
"aria-label": v,
|
|
21389
|
-
autoSize:
|
|
21372
|
+
autoSize: w
|
|
21390
21373
|
}), /* @__PURE__ */ a.createElement(l.default, {
|
|
21391
21374
|
className: "".concat(I, "-edit-content-confirm")
|
|
21392
21375
|
}));
|
|
@@ -21428,7 +21411,7 @@ function requireUtil() {
|
|
|
21428
21411
|
}
|
|
21429
21412
|
var I = function(x, g, m, y, C) {
|
|
21430
21413
|
u || (u = document.createElement("div"), u.setAttribute("aria-hidden", "true"), document.body.appendChild(u));
|
|
21431
|
-
var
|
|
21414
|
+
var w = g.rows, O = g.suffix, F = O === void 0 ? "" : O, b = window.getComputedStyle(x), S = h(b), T = f(b.lineHeight), k = Math.round(T * (w + 1) + f(b.paddingTop) + f(b.paddingBottom));
|
|
21432
21415
|
u.setAttribute("style", S), u.style.position = "fixed", u.style.left = "0", u.style.height = "auto", u.style.minHeight = "auto", u.style.maxHeight = "auto", u.style.top = "-999999px", u.style.zIndex = "-1000", u.style.textOverflow = "clip", u.style.whiteSpace = "normal", u.style.webkitLineClamp = "none";
|
|
21433
21416
|
var $ = p((0, a.default)(m));
|
|
21434
21417
|
(0, r.render)(/* @__PURE__ */ o.createElement("div", {
|
|
@@ -21463,7 +21446,7 @@ function requireUtil() {
|
|
|
21463
21446
|
function V(H) {
|
|
21464
21447
|
U.insertBefore(H, L);
|
|
21465
21448
|
}
|
|
21466
|
-
function
|
|
21449
|
+
function G(H, K) {
|
|
21467
21450
|
var N = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 0, W = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : K.length, M = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : 0, A = Math.floor((N + W) / 2), q = K.slice(0, A);
|
|
21468
21451
|
if (H.textContent = q, N >= W - 1)
|
|
21469
21452
|
for (var Z = W; Z >= N; Z -= 1) {
|
|
@@ -21477,9 +21460,9 @@ function requireUtil() {
|
|
|
21477
21460
|
reactNode: Q
|
|
21478
21461
|
};
|
|
21479
21462
|
}
|
|
21480
|
-
return B() ?
|
|
21463
|
+
return B() ? G(H, K, A, W, A) : G(H, K, N, A, M);
|
|
21481
21464
|
}
|
|
21482
|
-
function
|
|
21465
|
+
function Y(H, K) {
|
|
21483
21466
|
var N = H.nodeType;
|
|
21484
21467
|
if (N === s)
|
|
21485
21468
|
return V(H), B() ? {
|
|
@@ -21491,7 +21474,7 @@ function requireUtil() {
|
|
|
21491
21474
|
});
|
|
21492
21475
|
if (N === c) {
|
|
21493
21476
|
var W = H.textContent || "", M = document.createTextNode(W);
|
|
21494
|
-
return V(M),
|
|
21477
|
+
return V(M), G(M, W);
|
|
21495
21478
|
}
|
|
21496
21479
|
return {
|
|
21497
21480
|
finished: !1,
|
|
@@ -21499,7 +21482,7 @@ function requireUtil() {
|
|
|
21499
21482
|
};
|
|
21500
21483
|
}
|
|
21501
21484
|
return P.some(function(H, K) {
|
|
21502
|
-
var N =
|
|
21485
|
+
var N = Y(H, K), W = N.finished, M = N.reactNode;
|
|
21503
21486
|
return M && j.push(M), W;
|
|
21504
21487
|
}), {
|
|
21505
21488
|
content: j,
|
|
@@ -21517,24 +21500,24 @@ function requireBase() {
|
|
|
21517
21500
|
Object.defineProperty(e, "__esModule", {
|
|
21518
21501
|
value: !0
|
|
21519
21502
|
}), e.default = void 0;
|
|
21520
|
-
var r = n(requireDefineProperty()), o = n(requireToConsumableArray()), a = n(_typeof$2.exports), s = n(require_extends()), c = n(requireClassCallCheck()), l = n(requireCreateClass()), u = n(requireInherits()), d = n(requireCreateSuper()), f = t(React__default), h = n(requireClassnames()), p = n(requireToArray()), I = n(requireCopyToClipboard()), v = n(requireOmit()), x = n(requireEditOutlined()), g = n(requireCheckOutlined()), m = n(requireCopyOutlined()), y = n(require$$18), C = requireConfigProvider(),
|
|
21503
|
+
var r = n(requireDefineProperty()), o = n(requireToConsumableArray()), a = n(_typeof$2.exports), s = n(require_extends()), c = n(requireClassCallCheck()), l = n(requireCreateClass()), u = n(requireInherits()), d = n(requireCreateSuper()), f = t(React__default), h = n(requireClassnames()), p = n(requireToArray()), I = n(requireCopyToClipboard()), v = n(requireOmit()), x = n(requireEditOutlined()), g = n(requireCheckOutlined()), m = n(requireCopyOutlined()), y = n(require$$18), C = requireConfigProvider(), w = n(requireLocaleReceiver()), O = n(requireDevWarning()), F = n(requireTransButton()), b = n(requireRaf()), S = requireStyleChecker(), T = n(requireTooltip()), k = n(requireTypography()), $ = n(requireEditable()), B = n(requireUtil()), P = function(Y, H) {
|
|
21521
21504
|
var K = {};
|
|
21522
|
-
for (var N in
|
|
21523
|
-
Object.prototype.hasOwnProperty.call(
|
|
21524
|
-
if (
|
|
21525
|
-
for (var W = 0, N = Object.getOwnPropertySymbols(
|
|
21526
|
-
H.indexOf(N[W]) < 0 && Object.prototype.propertyIsEnumerable.call(
|
|
21505
|
+
for (var N in Y)
|
|
21506
|
+
Object.prototype.hasOwnProperty.call(Y, N) && H.indexOf(N) < 0 && (K[N] = Y[N]);
|
|
21507
|
+
if (Y != null && typeof Object.getOwnPropertySymbols == "function")
|
|
21508
|
+
for (var W = 0, N = Object.getOwnPropertySymbols(Y); W < N.length; W++)
|
|
21509
|
+
H.indexOf(N[W]) < 0 && Object.prototype.propertyIsEnumerable.call(Y, N[W]) && (K[N[W]] = Y[N[W]]);
|
|
21527
21510
|
return K;
|
|
21528
21511
|
}, D = (0, S.isStyleSupport)("webkitLineClamp"), j = (0, S.isStyleSupport)("textOverflow");
|
|
21529
|
-
function U(
|
|
21530
|
-
var K =
|
|
21512
|
+
function U(Y, H) {
|
|
21513
|
+
var K = Y.mark, N = Y.code, W = Y.underline, M = Y.delete, A = Y.strong, q = Y.keyboard, Z = H;
|
|
21531
21514
|
function Q(E, _) {
|
|
21532
21515
|
!E || (Z = /* @__PURE__ */ f.createElement(_, {}, Z));
|
|
21533
21516
|
}
|
|
21534
21517
|
return Q(A, "strong"), Q(W, "u"), Q(M, "del"), Q(N, "code"), Q(K, "mark"), Q(q, "kbd"), Z;
|
|
21535
21518
|
}
|
|
21536
|
-
var L = "...", V = /* @__PURE__ */ function(
|
|
21537
|
-
(0, u.default)(K,
|
|
21519
|
+
var L = "...", V = /* @__PURE__ */ function(Y) {
|
|
21520
|
+
(0, u.default)(K, Y);
|
|
21538
21521
|
var H = (0, d.default)(K);
|
|
21539
21522
|
function K() {
|
|
21540
21523
|
var N;
|
|
@@ -21636,7 +21619,7 @@ function requireBase() {
|
|
|
21636
21619
|
value: function() {
|
|
21637
21620
|
var W = this.state, M = W.ellipsisText, A = W.isEllipsis, q = W.expanded, Z = this.getEllipsis(), Q = Z.rows, E = Z.suffix, _ = Z.onEllipsis, z = this.props.children;
|
|
21638
21621
|
if (!(!Q || Q < 0 || !this.contentRef.current || q) && !this.canUseCSSEllipsis()) {
|
|
21639
|
-
(0,
|
|
21622
|
+
(0, O.default)((0, p.default)(z).every(function(se) {
|
|
21640
21623
|
return typeof se == "string";
|
|
21641
21624
|
}), "Typography", "`ellipsis` should use string as children only.");
|
|
21642
21625
|
var X = (0, B.default)(this.contentRef.current, {
|
|
@@ -21738,7 +21721,7 @@ function requireBase() {
|
|
|
21738
21721
|
}, /* @__PURE__ */ f.createElement("span", null, Ce)));
|
|
21739
21722
|
} else
|
|
21740
21723
|
Ce = /* @__PURE__ */ f.createElement(f.Fragment, null, _, pe);
|
|
21741
|
-
return Ce = U(this.props, Ce), /* @__PURE__ */ f.createElement(
|
|
21724
|
+
return Ce = U(this.props, Ce), /* @__PURE__ */ f.createElement(w.default, {
|
|
21742
21725
|
componentName: "Text"
|
|
21743
21726
|
}, function(ae) {
|
|
21744
21727
|
var ge, he = ae.edit, ue = ae.copy, Ie = ae.copied, Se = ae.expand;
|
|
@@ -21766,15 +21749,15 @@ function requireBase() {
|
|
|
21766
21749
|
key: "getDerivedStateFromProps",
|
|
21767
21750
|
value: function(W) {
|
|
21768
21751
|
var M = W.children, A = W.editable;
|
|
21769
|
-
return (0,
|
|
21752
|
+
return (0, O.default)(!A || typeof M == "string", "Typography", "When `editable` is enabled, the `children` should use string."), {};
|
|
21770
21753
|
}
|
|
21771
21754
|
}]), K;
|
|
21772
21755
|
}(f.Component);
|
|
21773
21756
|
V.contextType = C.ConfigContext, V.defaultProps = {
|
|
21774
21757
|
children: ""
|
|
21775
21758
|
};
|
|
21776
|
-
var
|
|
21777
|
-
e.default =
|
|
21759
|
+
var G = V;
|
|
21760
|
+
e.default = G;
|
|
21778
21761
|
}(Base)), Base;
|
|
21779
21762
|
}
|
|
21780
21763
|
(function(e) {
|
|
@@ -21812,7 +21795,7 @@ const Title$2 = /* @__PURE__ */ getDefaultExportFromCjs(Title$3), {
|
|
|
21812
21795
|
suffix: l,
|
|
21813
21796
|
field: u,
|
|
21814
21797
|
operator: d
|
|
21815
|
-
} = e, [f, h] = useState(!1), [p, I] = useState(), [v, x] = useState(), [g, m] = useState(), [y, C] = useState(0), [
|
|
21798
|
+
} = e, [f, h] = useState(!1), [p, I] = useState(), [v, x] = useState(), [g, m] = useState(), [y, C] = useState(0), [w, O] = useState(0), [F, b] = useState(), [S, T] = useState(), [k, $] = useState();
|
|
21816
21799
|
useEffect(() => {
|
|
21817
21800
|
P();
|
|
21818
21801
|
}, [t, o]);
|
|
@@ -21899,7 +21882,7 @@ const Title$2 = /* @__PURE__ */ getDefaultExportFromCjs(Title$3), {
|
|
|
21899
21882
|
bounds: !0,
|
|
21900
21883
|
onResize: (D) => {
|
|
21901
21884
|
var j, U;
|
|
21902
|
-
C((j = D.bounds) == null ? void 0 : j.height),
|
|
21885
|
+
C((j = D.bounds) == null ? void 0 : j.height), O((U = D.bounds) == null ? void 0 : U.width);
|
|
21903
21886
|
},
|
|
21904
21887
|
children: ({
|
|
21905
21888
|
measureRef: D
|
|
@@ -21909,7 +21892,7 @@ const Title$2 = /* @__PURE__ */ getDefaultExportFromCjs(Title$3), {
|
|
|
21909
21892
|
percent: v,
|
|
21910
21893
|
measureRef: D,
|
|
21911
21894
|
height: y,
|
|
21912
|
-
width:
|
|
21895
|
+
width: w,
|
|
21913
21896
|
color: F,
|
|
21914
21897
|
icon: S,
|
|
21915
21898
|
suffix: l
|
|
@@ -21918,7 +21901,7 @@ const Title$2 = /* @__PURE__ */ getDefaultExportFromCjs(Title$3), {
|
|
|
21918
21901
|
total: g,
|
|
21919
21902
|
measureRef: D,
|
|
21920
21903
|
height: y,
|
|
21921
|
-
width:
|
|
21904
|
+
width: w,
|
|
21922
21905
|
color: F,
|
|
21923
21906
|
icon: S,
|
|
21924
21907
|
suffix: l
|
|
@@ -22405,10 +22388,10 @@ const Graph = (e) => {
|
|
|
22405
22388
|
});
|
|
22406
22389
|
}
|
|
22407
22390
|
function y() {
|
|
22408
|
-
let
|
|
22409
|
-
return c === 0 ?
|
|
22391
|
+
let w = "_";
|
|
22392
|
+
return c === 0 ? w = "_" : w = (l + 1).toString(), /* @__PURE__ */ jsxs("span", {
|
|
22410
22393
|
className: "pl-1 pr-1",
|
|
22411
|
-
children: ["(",
|
|
22394
|
+
children: ["(", w, "/", c, ")"]
|
|
22412
22395
|
});
|
|
22413
22396
|
}
|
|
22414
22397
|
function C() {
|
|
@@ -22481,7 +22464,7 @@ const One2manyInput = (e) => {
|
|
|
22481
22464
|
} = d || {}, {
|
|
22482
22465
|
lang: v,
|
|
22483
22466
|
t: x
|
|
22484
|
-
} = useContext(LocaleContext), g = useRef(), [m, y] = useState(!1), [C,
|
|
22467
|
+
} = useContext(LocaleContext), g = useRef(), [m, y] = useState(!1), [C, w] = useState(!1), [O, F] = useState(), [b, S] = useState(!1), [T, k] = useState(!1), [$, B] = useState(), [P, D] = useState([]), [j, U] = useState(!1), L = useRef([]), [V, G] = useState(), Y = useRef(), {
|
|
22485
22468
|
readOnly: H,
|
|
22486
22469
|
relation: K,
|
|
22487
22470
|
context: N,
|
|
@@ -22504,7 +22487,7 @@ const One2manyInput = (e) => {
|
|
|
22504
22487
|
await E(), l > q.length - 1 && l !== 0 && u(0);
|
|
22505
22488
|
}, E = async () => {
|
|
22506
22489
|
var oe;
|
|
22507
|
-
|
|
22490
|
+
w(!0), y(!1), F(void 0);
|
|
22508
22491
|
try {
|
|
22509
22492
|
const ae = await readObjectValues({
|
|
22510
22493
|
treeFields: o.get("tree").fields,
|
|
@@ -22516,11 +22499,11 @@ const One2manyInput = (e) => {
|
|
|
22516
22499
|
...N
|
|
22517
22500
|
}
|
|
22518
22501
|
});
|
|
22519
|
-
|
|
22502
|
+
Y.current || (Y.current = ae.map((ge) => ge.id)), Z(ae);
|
|
22520
22503
|
} catch (ae) {
|
|
22521
22504
|
F(ae);
|
|
22522
22505
|
} finally {
|
|
22523
|
-
|
|
22506
|
+
w(!1);
|
|
22524
22507
|
}
|
|
22525
22508
|
};
|
|
22526
22509
|
async function _() {
|
|
@@ -22616,7 +22599,7 @@ const One2manyInput = (e) => {
|
|
|
22616
22599
|
k(!0);
|
|
22617
22600
|
}) : k(!0);
|
|
22618
22601
|
}, pe = async () => {
|
|
22619
|
-
|
|
22602
|
+
w(!0), y(!1), F(void 0);
|
|
22620
22603
|
try {
|
|
22621
22604
|
if (q[l].id > 0) {
|
|
22622
22605
|
const oe = a.map((ae) => ae.id === q[l].id ? {
|
|
@@ -22629,10 +22612,10 @@ const One2manyInput = (e) => {
|
|
|
22629
22612
|
} catch (oe) {
|
|
22630
22613
|
F(oe);
|
|
22631
22614
|
}
|
|
22632
|
-
u(0),
|
|
22615
|
+
u(0), w(!1);
|
|
22633
22616
|
}, ve = async () => {
|
|
22634
22617
|
const oe = q.filter((ae) => P.includes(ae.id));
|
|
22635
|
-
|
|
22618
|
+
w(!0), y(!1), F(void 0);
|
|
22636
22619
|
try {
|
|
22637
22620
|
const ae = oe.map((he) => he.id), ge = a.filter((he) => !(ae.includes(he.id) && he.id < 0)).map((he) => ae.includes(he.id) ? {
|
|
22638
22621
|
...he,
|
|
@@ -22642,7 +22625,7 @@ const One2manyInput = (e) => {
|
|
|
22642
22625
|
} catch (ae) {
|
|
22643
22626
|
F(ae);
|
|
22644
22627
|
}
|
|
22645
|
-
u(0),
|
|
22628
|
+
u(0), w(!1);
|
|
22646
22629
|
}, we = (oe, ae, ge) => {
|
|
22647
22630
|
let he;
|
|
22648
22631
|
if (oe)
|
|
@@ -22680,7 +22663,7 @@ const One2manyInput = (e) => {
|
|
|
22680
22663
|
} = oe;
|
|
22681
22664
|
B(a.find((ge) => ge.id === ae)), U(!1), S(!0);
|
|
22682
22665
|
}, Fe = async (oe) => {
|
|
22683
|
-
|
|
22666
|
+
w(!0);
|
|
22684
22667
|
let ae = a;
|
|
22685
22668
|
const ge = oe.filter((he) => !a.find((ue) => ue.id === he));
|
|
22686
22669
|
try {
|
|
@@ -22713,7 +22696,7 @@ const One2manyInput = (e) => {
|
|
|
22713
22696
|
} catch (he) {
|
|
22714
22697
|
F(he);
|
|
22715
22698
|
} finally {
|
|
22716
|
-
|
|
22699
|
+
w(!1);
|
|
22717
22700
|
}
|
|
22718
22701
|
};
|
|
22719
22702
|
function ye() {
|
|
@@ -22764,7 +22747,7 @@ const One2manyInput = (e) => {
|
|
|
22764
22747
|
...o.get("tree").fields,
|
|
22765
22748
|
...((he = o.get("form")) == null ? void 0 : he.fields) || {}
|
|
22766
22749
|
}
|
|
22767
|
-
}) : sortResultsWithOrder(q.map((Ie) => Ie.treeValues),
|
|
22750
|
+
}) : sortResultsWithOrder(q.map((Ie) => Ie.treeValues), Y.current);
|
|
22768
22751
|
if (s === "tree")
|
|
22769
22752
|
return /* @__PURE__ */ jsx(Tree, {
|
|
22770
22753
|
total: q.length,
|
|
@@ -22779,7 +22762,7 @@ const One2manyInput = (e) => {
|
|
|
22779
22762
|
onChange: D
|
|
22780
22763
|
},
|
|
22781
22764
|
sorter: V,
|
|
22782
|
-
onChangeSort:
|
|
22765
|
+
onChangeSort: G
|
|
22783
22766
|
});
|
|
22784
22767
|
if (s === "graph") {
|
|
22785
22768
|
const Ie = [[`${r.inv_field}`, "=", f]];
|
|
@@ -22795,10 +22778,10 @@ const One2manyInput = (e) => {
|
|
|
22795
22778
|
});
|
|
22796
22779
|
}
|
|
22797
22780
|
};
|
|
22798
|
-
if (
|
|
22781
|
+
if (O)
|
|
22799
22782
|
return /* @__PURE__ */ jsx(Alert, {
|
|
22800
22783
|
className: "mt-10",
|
|
22801
|
-
message:
|
|
22784
|
+
message: O,
|
|
22802
22785
|
type: "error",
|
|
22803
22786
|
banner: !0
|
|
22804
22787
|
});
|
|
@@ -25835,8 +25818,8 @@ const DatePickerConfig = {
|
|
|
25835
25818
|
r == null || r(m);
|
|
25836
25819
|
};
|
|
25837
25820
|
async function I() {
|
|
25838
|
-
const m = await getMimeType(n), y = `data:${m == null ? void 0 : m.mime};base64,${n}`, C = document.createElement("a"),
|
|
25839
|
-
C.href = y, C.download = O, C.click();
|
|
25821
|
+
const m = await getMimeType(n), y = `data:${m == null ? void 0 : m.mime};base64,${n}`, C = document.createElement("a"), w = d(s), O = d("name");
|
|
25822
|
+
C.href = y, C.download = w || O, C.click();
|
|
25840
25823
|
}
|
|
25841
25824
|
async function v() {
|
|
25842
25825
|
const m = await getMimeType(n);
|
|
@@ -26323,8 +26306,8 @@ function FormActionBar() {
|
|
|
26323
26306
|
toolbar: m,
|
|
26324
26307
|
attachments: y,
|
|
26325
26308
|
formRef: C,
|
|
26326
|
-
setFormHasChanges:
|
|
26327
|
-
searchTreeRef:
|
|
26309
|
+
setFormHasChanges: w,
|
|
26310
|
+
searchTreeRef: O,
|
|
26328
26311
|
goToResourceId: F
|
|
26329
26312
|
} = useContext(ActionViewContext), {
|
|
26330
26313
|
t: b,
|
|
@@ -26370,11 +26353,11 @@ function FormActionBar() {
|
|
|
26370
26353
|
confirmMessage: b("confirmRemoveItem"),
|
|
26371
26354
|
lang: S,
|
|
26372
26355
|
onOk: () => {
|
|
26373
|
-
|
|
26356
|
+
G();
|
|
26374
26357
|
}
|
|
26375
26358
|
});
|
|
26376
26359
|
}
|
|
26377
|
-
async function
|
|
26360
|
+
async function G() {
|
|
26378
26361
|
try {
|
|
26379
26362
|
h == null || h(!0), await ConnectionProvider.getHandler().delete({
|
|
26380
26363
|
model: f,
|
|
@@ -26390,7 +26373,7 @@ function FormActionBar() {
|
|
|
26390
26373
|
h == null || h(!1);
|
|
26391
26374
|
}
|
|
26392
26375
|
}
|
|
26393
|
-
async function
|
|
26376
|
+
async function Y() {
|
|
26394
26377
|
try {
|
|
26395
26378
|
v == null || v(!0);
|
|
26396
26379
|
const N = await ConnectionProvider.getHandler().duplicate({
|
|
@@ -26434,7 +26417,7 @@ function FormActionBar() {
|
|
|
26434
26417
|
tooltip: b("duplicate"),
|
|
26435
26418
|
disabled: o || a || s === void 0 || I || g,
|
|
26436
26419
|
loading: I,
|
|
26437
|
-
onClick:
|
|
26420
|
+
onClick: Y
|
|
26438
26421
|
}), /* @__PURE__ */ jsx(ActionButton, {
|
|
26439
26422
|
icon: /* @__PURE__ */ jsx(DeleteOutlined, {}),
|
|
26440
26423
|
tooltip: b("delete"),
|
|
@@ -26463,7 +26446,7 @@ function FormActionBar() {
|
|
|
26463
26446
|
currentView: t,
|
|
26464
26447
|
availableViews: e.filter((N) => N.type === "tree" || N.type === "form"),
|
|
26465
26448
|
onChangeView: (N) => {
|
|
26466
|
-
|
|
26449
|
+
w == null || w(!1), n == null || n(N);
|
|
26467
26450
|
},
|
|
26468
26451
|
disabled: H,
|
|
26469
26452
|
formHasChanges: o
|
|
@@ -26673,23 +26656,23 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
26673
26656
|
}
|
|
26674
26657
|
function d(m, y) {
|
|
26675
26658
|
(y == null || y > m.length) && (y = m.length);
|
|
26676
|
-
for (var C = 0,
|
|
26677
|
-
|
|
26678
|
-
return
|
|
26659
|
+
for (var C = 0, w = new Array(y); C < y; C++)
|
|
26660
|
+
w[C] = m[C];
|
|
26661
|
+
return w;
|
|
26679
26662
|
}
|
|
26680
26663
|
function f(m, y) {
|
|
26681
26664
|
if (!(typeof Symbol > "u" || !(Symbol.iterator in Object(m)))) {
|
|
26682
|
-
var C = [],
|
|
26665
|
+
var C = [], w = !0, O = !1, F = void 0;
|
|
26683
26666
|
try {
|
|
26684
|
-
for (var b = m[Symbol.iterator](), S; !(
|
|
26667
|
+
for (var b = m[Symbol.iterator](), S; !(w = (S = b.next()).done) && (C.push(S.value), !(y && C.length === y)); w = !0)
|
|
26685
26668
|
;
|
|
26686
26669
|
} catch (T) {
|
|
26687
|
-
|
|
26670
|
+
O = !0, F = T;
|
|
26688
26671
|
} finally {
|
|
26689
26672
|
try {
|
|
26690
|
-
!
|
|
26673
|
+
!w && b.return != null && b.return();
|
|
26691
26674
|
} finally {
|
|
26692
|
-
if (
|
|
26675
|
+
if (O)
|
|
26693
26676
|
throw F;
|
|
26694
26677
|
}
|
|
26695
26678
|
}
|
|
@@ -26719,8 +26702,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
26719
26702
|
}
|
|
26720
26703
|
function x(m, y) {
|
|
26721
26704
|
for (var C = 0; C < y.length; C++) {
|
|
26722
|
-
var
|
|
26723
|
-
if (m ===
|
|
26705
|
+
var w = y[C];
|
|
26706
|
+
if (m === w || v(w) && w.test(m))
|
|
26724
26707
|
return !0;
|
|
26725
26708
|
}
|
|
26726
26709
|
return !1;
|
|
@@ -26728,7 +26711,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
26728
26711
|
function g(m, y) {
|
|
26729
26712
|
if ((0, n.default)(m), !m || /[\s<>]/.test(m) || m.indexOf("mailto:") === 0 || (y = (0, a.default)(y, p), y.validate_length && m.length >= 2083) || !y.allow_fragments && m.includes("#") || !y.allow_query_components && (m.includes("?") || m.includes("&")))
|
|
26730
26713
|
return !1;
|
|
26731
|
-
var C,
|
|
26714
|
+
var C, w, O, F, b, S, T, k;
|
|
26732
26715
|
if (T = m.split("#"), m = T.shift(), T = m.split("?"), m = T.shift(), T = m.split("://"), T.length > 1) {
|
|
26733
26716
|
if (C = T.shift().toLowerCase(), y.require_valid_protocol && y.protocols.indexOf(C) === -1)
|
|
26734
26717
|
return !1;
|
|
@@ -26746,20 +26729,20 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
26746
26729
|
if (T = m.split("/"), m = T.shift(), m === "" && !y.require_host)
|
|
26747
26730
|
return !0;
|
|
26748
26731
|
if (T = m.split("@"), T.length > 1) {
|
|
26749
|
-
if (y.disallow_auth || T[0] === "" || (
|
|
26732
|
+
if (y.disallow_auth || T[0] === "" || (w = T.shift(), w.indexOf(":") >= 0 && w.split(":").length > 2))
|
|
26750
26733
|
return !1;
|
|
26751
|
-
var $ =
|
|
26734
|
+
var $ = w.split(":"), B = c($, 2), P = B[0], D = B[1];
|
|
26752
26735
|
if (P === "" && D === "")
|
|
26753
26736
|
return !1;
|
|
26754
26737
|
}
|
|
26755
26738
|
F = T.join("@"), S = null, k = null;
|
|
26756
26739
|
var j = F.match(I);
|
|
26757
|
-
if (j ? (
|
|
26740
|
+
if (j ? (O = "", k = j[1], S = j[2] || null) : (T = F.split(":"), O = T.shift(), T.length && (S = T.join(":"))), S !== null && S.length > 0) {
|
|
26758
26741
|
if (b = parseInt(S, 10), !/^[0-9]+$/.test(S) || b <= 0 || b > 65535)
|
|
26759
26742
|
return !1;
|
|
26760
26743
|
} else if (y.require_port)
|
|
26761
26744
|
return !1;
|
|
26762
|
-
return y.host_whitelist ? x(
|
|
26745
|
+
return y.host_whitelist ? x(O, y.host_whitelist) : !(!(0, o.default)(O) && !(0, r.default)(O, y) && (!k || !(0, o.default)(k, 6)) || (O = O || k, y.host_blacklist && x(O, y.host_blacklist)));
|
|
26763
26746
|
}
|
|
26764
26747
|
e.exports = t.default, e.exports.default = t.default;
|
|
26765
26748
|
})(isURL$1, isURL$1.exports);
|
|
@@ -26886,8 +26869,8 @@ var isEmail$1 = { exports: {} }, isByteLength = { exports: {} };
|
|
|
26886
26869
|
if (C) {
|
|
26887
26870
|
if (y === m)
|
|
26888
26871
|
return !1;
|
|
26889
|
-
var
|
|
26890
|
-
if (!
|
|
26872
|
+
var w = y.split('"').length === y.split('\\"').length;
|
|
26873
|
+
if (!w)
|
|
26891
26874
|
return !1;
|
|
26892
26875
|
}
|
|
26893
26876
|
return !0;
|
|
@@ -26896,18 +26879,18 @@ var isEmail$1 = { exports: {} }, isByteLength = { exports: {} };
|
|
|
26896
26879
|
if ((0, n.default)(m), y = (0, r.default)(y, l), y.require_display_name || y.allow_display_name) {
|
|
26897
26880
|
var C = m.match(u);
|
|
26898
26881
|
if (C) {
|
|
26899
|
-
var
|
|
26900
|
-
if (m = m.replace(
|
|
26882
|
+
var w = C[1];
|
|
26883
|
+
if (m = m.replace(w, "").replace(/(^<|>$)/g, ""), w.endsWith(" ") && (w = w.substr(0, w.length - 1)), !x(w))
|
|
26901
26884
|
return !1;
|
|
26902
26885
|
} else if (y.require_display_name)
|
|
26903
26886
|
return !1;
|
|
26904
26887
|
}
|
|
26905
26888
|
if (!y.ignore_max_length && m.length > v)
|
|
26906
26889
|
return !1;
|
|
26907
|
-
var
|
|
26890
|
+
var O = m.split("@"), F = O.pop(), b = F.toLowerCase();
|
|
26908
26891
|
if (y.host_blacklist.includes(b))
|
|
26909
26892
|
return !1;
|
|
26910
|
-
var S =
|
|
26893
|
+
var S = O.join("@");
|
|
26911
26894
|
if (y.domain_specific_validation && (b === "gmail.com" || b === "googlemail.com")) {
|
|
26912
26895
|
S = S.toLowerCase();
|
|
26913
26896
|
var T = S.split("+")[0];
|
|
@@ -27166,16 +27149,16 @@ function TreeActionBar(e) {
|
|
|
27166
27149
|
treeIsLoading: y
|
|
27167
27150
|
} = useContext(ActionViewContext), {
|
|
27168
27151
|
parentContext: C = {},
|
|
27169
|
-
treeExpandable:
|
|
27152
|
+
treeExpandable: w
|
|
27170
27153
|
} = e, {
|
|
27171
|
-
t:
|
|
27154
|
+
t: O,
|
|
27172
27155
|
lang: F
|
|
27173
27156
|
} = useContext(LocaleContext), b = useContext(ContentRootContext), {
|
|
27174
27157
|
processAction: S
|
|
27175
27158
|
} = b || {};
|
|
27176
27159
|
function T() {
|
|
27177
27160
|
showDialog$9({
|
|
27178
|
-
confirmMessage:
|
|
27161
|
+
confirmMessage: O("confirmRemove"),
|
|
27179
27162
|
lang: F,
|
|
27180
27163
|
onOk: () => {
|
|
27181
27164
|
k();
|
|
@@ -27234,7 +27217,7 @@ function TreeActionBar(e) {
|
|
|
27234
27217
|
}
|
|
27235
27218
|
return n ? /* @__PURE__ */ jsxs(Space, {
|
|
27236
27219
|
wrap: !0,
|
|
27237
|
-
children: [
|
|
27220
|
+
children: [w ? null : /* @__PURE__ */ jsxs(Fragment, {
|
|
27238
27221
|
children: [/* @__PURE__ */ jsx(SearchBar, {
|
|
27239
27222
|
disabled: c || s || y,
|
|
27240
27223
|
searchText: m,
|
|
@@ -27245,24 +27228,24 @@ function TreeActionBar(e) {
|
|
|
27245
27228
|
disabled: y
|
|
27246
27229
|
}), separator$1(), /* @__PURE__ */ jsx(ActionButton, {
|
|
27247
27230
|
icon: /* @__PURE__ */ jsx(CopyOutlined$3, {}),
|
|
27248
|
-
tooltip:
|
|
27231
|
+
tooltip: O("duplicate"),
|
|
27249
27232
|
disabled: !o || (o == null ? void 0 : o.length) !== 1 || c || y,
|
|
27250
27233
|
loading: c,
|
|
27251
27234
|
onClick: $
|
|
27252
27235
|
}), /* @__PURE__ */ jsx(ActionButton, {
|
|
27253
27236
|
icon: /* @__PURE__ */ jsx(DeleteOutlined, {}),
|
|
27254
|
-
tooltip:
|
|
27237
|
+
tooltip: O("delete"),
|
|
27255
27238
|
disabled: !(o && (o == null ? void 0 : o.length) > 0) || y,
|
|
27256
27239
|
loading: s,
|
|
27257
27240
|
onClick: T
|
|
27258
27241
|
}), separator$1()]
|
|
27259
|
-
}), !
|
|
27242
|
+
}), !w && /* @__PURE__ */ jsx(ButtonWithBadge, {
|
|
27260
27243
|
icon: /* @__PURE__ */ jsx(FilterOutlined, {
|
|
27261
27244
|
style: {
|
|
27262
27245
|
color: v ? "white" : void 0
|
|
27263
27246
|
}
|
|
27264
27247
|
}),
|
|
27265
|
-
tooltip:
|
|
27248
|
+
tooltip: O("advanced_search"),
|
|
27266
27249
|
type: v ? "primary" : "default",
|
|
27267
27250
|
onClick: () => {
|
|
27268
27251
|
x == null || x(!v);
|
|
@@ -27271,22 +27254,22 @@ function TreeActionBar(e) {
|
|
|
27271
27254
|
badgeNumber: I == null ? void 0 : I.length
|
|
27272
27255
|
}), /* @__PURE__ */ jsx(ActionButton, {
|
|
27273
27256
|
icon: /* @__PURE__ */ jsx(InfoCircleOutlined$3, {}),
|
|
27274
|
-
tooltip:
|
|
27257
|
+
tooltip: O("showLogs"),
|
|
27275
27258
|
disabled: !(o && (o == null ? void 0 : o.length) > 0) || y,
|
|
27276
27259
|
loading: !1,
|
|
27277
27260
|
onClick: () => {
|
|
27278
|
-
showLogInfo(u, o[0].id,
|
|
27261
|
+
showLogInfo(u, o[0].id, O);
|
|
27279
27262
|
}
|
|
27280
27263
|
}), /* @__PURE__ */ jsx(ActionButton, {
|
|
27281
27264
|
icon: /* @__PURE__ */ jsx(ReloadOutlined, {}),
|
|
27282
|
-
tooltip:
|
|
27265
|
+
tooltip: O("refresh"),
|
|
27283
27266
|
disabled: c || s || y,
|
|
27284
27267
|
loading: !1,
|
|
27285
27268
|
onClick: () => {
|
|
27286
27269
|
var P;
|
|
27287
27270
|
(P = d == null ? void 0 : d.current) == null || P.refreshResults();
|
|
27288
27271
|
}
|
|
27289
|
-
}), !
|
|
27272
|
+
}), !w && /* @__PURE__ */ jsxs(Fragment, {
|
|
27290
27273
|
children: [separator$1(), /* @__PURE__ */ jsx(ChangeViewButton, {
|
|
27291
27274
|
currentView: n,
|
|
27292
27275
|
availableViews: t.filter((P) => P.type === "tree" || P.type === "form"),
|
|
@@ -27296,7 +27279,7 @@ function TreeActionBar(e) {
|
|
|
27296
27279
|
}), separator$1(), /* @__PURE__ */ jsx(DropdownButton, {
|
|
27297
27280
|
icon: /* @__PURE__ */ jsx(ThunderboltOutlined, {}),
|
|
27298
27281
|
disabled: !(o && (o == null ? void 0 : o.length) > 0) || y,
|
|
27299
|
-
tooltip:
|
|
27282
|
+
tooltip: O("actions"),
|
|
27300
27283
|
items: p == null ? void 0 : p.action,
|
|
27301
27284
|
onItemClick: (P) => {
|
|
27302
27285
|
!P || B(P);
|
|
@@ -27304,7 +27287,7 @@ function TreeActionBar(e) {
|
|
|
27304
27287
|
}), /* @__PURE__ */ jsx(DropdownButton, {
|
|
27305
27288
|
icon: /* @__PURE__ */ jsx(PrinterOutlined, {}),
|
|
27306
27289
|
disabled: !(o && (o == null ? void 0 : o.length) > 0) || y,
|
|
27307
|
-
tooltip:
|
|
27290
|
+
tooltip: O("reports"),
|
|
27308
27291
|
items: p == null ? void 0 : p.print,
|
|
27309
27292
|
onItemClick: (P) => {
|
|
27310
27293
|
!P || B({
|
|
@@ -27470,7 +27453,7 @@ function ActionView(e, t) {
|
|
|
27470
27453
|
action_type: I,
|
|
27471
27454
|
treeExpandable: v = !1,
|
|
27472
27455
|
limit: x
|
|
27473
|
-
} = e, [g, m] = useState(), [y, C] = useState([]), [
|
|
27456
|
+
} = e, [g, m] = useState(), [y, C] = useState([]), [w, O] = useState(), [F, b] = useState(), [S, T] = useState(), [k, $] = useState(!0), B = h || void 0, [P, D] = useState(B), [j, U] = useState([]), [L, V] = useState(), [G, Y] = useState([]), [H, K] = useState(), [N, W] = useState(), [M, A] = useState(0), [q, Z] = useState(!1), [Q, E] = useState(!1), [_, z] = useState(), {
|
|
27474
27457
|
t: X
|
|
27475
27458
|
} = useContext(LocaleContext), te = useRef(), ee = useRef(), re = useRef(), se = useContext(TabManagerContext), {
|
|
27476
27459
|
openShortcut: ie,
|
|
@@ -27482,7 +27465,7 @@ function ActionView(e, t) {
|
|
|
27482
27465
|
} = se || {};
|
|
27483
27466
|
useHotkeys("ctrl+g,command+g", (ue) => {
|
|
27484
27467
|
ue.preventDefault(), Ee();
|
|
27485
|
-
}, [we, ve, g, L,
|
|
27468
|
+
}, [we, ve, g, L, G]);
|
|
27486
27469
|
function Fe(ue) {
|
|
27487
27470
|
D(ue), pe == null || pe(ue);
|
|
27488
27471
|
}
|
|
@@ -27528,7 +27511,7 @@ function ActionView(e, t) {
|
|
|
27528
27511
|
id: Se,
|
|
27529
27512
|
context: o
|
|
27530
27513
|
});
|
|
27531
|
-
Re === "tree" ?
|
|
27514
|
+
Re === "tree" ? O({
|
|
27532
27515
|
..._e,
|
|
27533
27516
|
isExpandable: v
|
|
27534
27517
|
}) : Re === "form" && (b(_e), K(_e == null ? void 0 : _e.toolbar)), ue.push({
|
|
@@ -27558,7 +27541,7 @@ function ActionView(e, t) {
|
|
|
27558
27541
|
async function oe(ue) {
|
|
27559
27542
|
var _e;
|
|
27560
27543
|
E(!0);
|
|
27561
|
-
const Ie =
|
|
27544
|
+
const Ie = G.findIndex((Pe) => Pe.id === ue);
|
|
27562
27545
|
let Se;
|
|
27563
27546
|
if (Ie === -1) {
|
|
27564
27547
|
try {
|
|
@@ -27574,7 +27557,7 @@ function ActionView(e, t) {
|
|
|
27574
27557
|
return;
|
|
27575
27558
|
}
|
|
27576
27559
|
} else
|
|
27577
|
-
Se =
|
|
27560
|
+
Se = G[Ie];
|
|
27578
27561
|
E(!1), Z(!1);
|
|
27579
27562
|
const Re = a.find((Pe) => Pe[1] === "form");
|
|
27580
27563
|
me({
|
|
@@ -27607,7 +27590,7 @@ function ActionView(e, t) {
|
|
|
27607
27590
|
id: P,
|
|
27608
27591
|
parentContext: o,
|
|
27609
27592
|
onSubmitSucceed: (ue, Ie) => {
|
|
27610
|
-
|
|
27593
|
+
G.findIndex((Re) => Re.id === ue) === -1 && (G.push(Ie), Y(G), V(G.length - 1));
|
|
27611
27594
|
}
|
|
27612
27595
|
}), /* @__PURE__ */ jsx(SearchTree$1, {
|
|
27613
27596
|
visible: g.type === "tree",
|
|
@@ -27618,14 +27601,14 @@ function ActionView(e, t) {
|
|
|
27618
27601
|
parentContext: o,
|
|
27619
27602
|
nameSearch: _,
|
|
27620
27603
|
formView: F,
|
|
27621
|
-
treeView:
|
|
27604
|
+
treeView: w,
|
|
27622
27605
|
domain: n,
|
|
27623
27606
|
onRowClicked: (ue) => {
|
|
27624
27607
|
const {
|
|
27625
27608
|
id: Ie
|
|
27626
27609
|
} = ue;
|
|
27627
27610
|
Fe(Ie);
|
|
27628
|
-
const Se =
|
|
27611
|
+
const Se = G.findIndex((Re) => Re.id === Ie);
|
|
27629
27612
|
V(Se), ye(y.find((Re) => Re.type === "form"));
|
|
27630
27613
|
}
|
|
27631
27614
|
})]
|
|
@@ -27655,7 +27638,7 @@ function ActionView(e, t) {
|
|
|
27655
27638
|
children: [/* @__PURE__ */ jsx(TitleHeader, {
|
|
27656
27639
|
children: g.type === "form" ? /* @__PURE__ */ jsx(FormActionBar, {}) : /* @__PURE__ */ jsx(TreeActionBar, {
|
|
27657
27640
|
parentContext: o,
|
|
27658
|
-
treeExpandable: (
|
|
27641
|
+
treeExpandable: (w == null ? void 0 : w.isExpandable) || !1
|
|
27659
27642
|
})
|
|
27660
27643
|
}), ae(), /* @__PURE__ */ jsx(GoToResourceModal, {
|
|
27661
27644
|
visible: q,
|
|
@@ -27679,8 +27662,8 @@ function ActionView(e, t) {
|
|
|
27679
27662
|
setCurrentId: Fe,
|
|
27680
27663
|
setCurrentItemIndex: V,
|
|
27681
27664
|
currentItemIndex: L,
|
|
27682
|
-
results:
|
|
27683
|
-
setResults:
|
|
27665
|
+
results: G,
|
|
27666
|
+
setResults: Y,
|
|
27684
27667
|
currentModel: r,
|
|
27685
27668
|
toolbar: H,
|
|
27686
27669
|
setToolbar: K,
|
|
@@ -27755,13 +27738,13 @@ async function fetchAction({
|
|
|
27755
27738
|
if (y)
|
|
27756
27739
|
I.push(m);
|
|
27757
27740
|
else {
|
|
27758
|
-
const { view_id:
|
|
27741
|
+
const { view_id: w } = await ConnectionProvider.getHandler().getView({
|
|
27759
27742
|
model: l,
|
|
27760
27743
|
type: C,
|
|
27761
27744
|
id: y,
|
|
27762
27745
|
context: { ...t, ...s }
|
|
27763
27746
|
});
|
|
27764
|
-
I.push([
|
|
27747
|
+
I.push([w, C]);
|
|
27765
27748
|
}
|
|
27766
27749
|
}
|
|
27767
27750
|
const [v, x] = I[0], g = { id: v, type: x };
|
|
@@ -27885,8 +27868,8 @@ function DashboardTree(e) {
|
|
|
27885
27868
|
domain: a = [],
|
|
27886
27869
|
visible: s = !0,
|
|
27887
27870
|
parentContext: c = {}
|
|
27888
|
-
} = e, [l, u] = useState(!1), [d, f] = useState(!1), [h, p] = useState(), [I, v] = useState(), [x, g] = useState(), [m, y] = useState(1), [C,
|
|
27889
|
-
|
|
27871
|
+
} = e, [l, u] = useState(!1), [d, f] = useState(!1), [h, p] = useState(), [I, v] = useState(), [x, g] = useState(), [m, y] = useState(1), [C, w] = useState(0), O = useRef(DEFAULT_SEARCH_LIMIT), F = useRef([]), [b, S] = useState(0), [T, k] = useState([]), [$, B] = useState(void 0), [P, D] = useState(), [j, U] = useState(), [L, V] = useState(), [G, Y] = useState(!1), H = useRef([]), K = (z) => {
|
|
27872
|
+
Y(!0), y(z), w((z - 1) * O.current);
|
|
27890
27873
|
}, N = (z) => {
|
|
27891
27874
|
const X = {};
|
|
27892
27875
|
return z.forEach((te) => {
|
|
@@ -27906,7 +27889,7 @@ function DashboardTree(e) {
|
|
|
27906
27889
|
attrsEvaluated: se
|
|
27907
27890
|
} = await ConnectionProvider.getHandler().searchForTree({
|
|
27908
27891
|
params: X,
|
|
27909
|
-
limit:
|
|
27892
|
+
limit: O.current,
|
|
27910
27893
|
offset: C,
|
|
27911
27894
|
model: h,
|
|
27912
27895
|
fields: I.fields,
|
|
@@ -27927,11 +27910,11 @@ function DashboardTree(e) {
|
|
|
27927
27910
|
k(ie);
|
|
27928
27911
|
}, A = async () => {
|
|
27929
27912
|
try {
|
|
27930
|
-
|
|
27913
|
+
Y(!0), await M();
|
|
27931
27914
|
} catch (z) {
|
|
27932
27915
|
U(JSON.stringify(z));
|
|
27933
27916
|
} finally {
|
|
27934
|
-
|
|
27917
|
+
Y(!1);
|
|
27935
27918
|
}
|
|
27936
27919
|
};
|
|
27937
27920
|
useEffect(() => {
|
|
@@ -27951,7 +27934,7 @@ function DashboardTree(e) {
|
|
|
27951
27934
|
action: t,
|
|
27952
27935
|
context: c
|
|
27953
27936
|
});
|
|
27954
|
-
H.current = z.domain, g(z.views.get("form")), v(z.views.get("tree")), p(z.model),
|
|
27937
|
+
H.current = z.domain, g(z.views.get("form")), v(z.views.get("tree")), p(z.model), O.current = z.limit;
|
|
27955
27938
|
}, Q = async () => {
|
|
27956
27939
|
p(n);
|
|
27957
27940
|
const z = await ConnectionProvider.getHandler().getView({
|
|
@@ -27992,12 +27975,12 @@ function DashboardTree(e) {
|
|
|
27992
27975
|
}), /* @__PURE__ */ jsx(Tree, {
|
|
27993
27976
|
showPagination: !1,
|
|
27994
27977
|
total: b,
|
|
27995
|
-
limit:
|
|
27978
|
+
limit: O.current,
|
|
27996
27979
|
page: m,
|
|
27997
27980
|
treeView: I,
|
|
27998
27981
|
results: T,
|
|
27999
27982
|
onRequestPageChange: K,
|
|
28000
|
-
loading:
|
|
27983
|
+
loading: G,
|
|
28001
27984
|
onRowClicked: E,
|
|
28002
27985
|
colorsForResults: $,
|
|
28003
27986
|
sorter: P,
|
|
@@ -28082,7 +28065,7 @@ function Dashboard(e, t) {
|
|
|
28082
28065
|
items: k,
|
|
28083
28066
|
model: T,
|
|
28084
28067
|
context: r
|
|
28085
|
-
}), B = await
|
|
28068
|
+
}), B = await w($);
|
|
28086
28069
|
c(B), u(!1), h(!1);
|
|
28087
28070
|
} catch (b) {
|
|
28088
28071
|
f(JSON.stringify(b));
|
|
@@ -28120,7 +28103,7 @@ function Dashboard(e, t) {
|
|
|
28120
28103
|
context: r
|
|
28121
28104
|
}))[0];
|
|
28122
28105
|
}
|
|
28123
|
-
async function
|
|
28106
|
+
async function w(b) {
|
|
28124
28107
|
const S = [];
|
|
28125
28108
|
for (const T of b) {
|
|
28126
28109
|
const {
|
|
@@ -28139,7 +28122,7 @@ function Dashboard(e, t) {
|
|
|
28139
28122
|
}
|
|
28140
28123
|
return S;
|
|
28141
28124
|
}
|
|
28142
|
-
async function
|
|
28125
|
+
async function O(b) {
|
|
28143
28126
|
if (!I)
|
|
28144
28127
|
return;
|
|
28145
28128
|
const S = b.filter((B) => {
|
|
@@ -28193,7 +28176,7 @@ function Dashboard(e, t) {
|
|
|
28193
28176
|
type: "error",
|
|
28194
28177
|
banner: !0
|
|
28195
28178
|
}) : l ? /* @__PURE__ */ jsx(LoadingOutlined$3, {}) : /* @__PURE__ */ jsx(DashboardGrid, {
|
|
28196
|
-
onPositionItemsChanged:
|
|
28179
|
+
onPositionItemsChanged: O,
|
|
28197
28180
|
children: s.map((b, S) => {
|
|
28198
28181
|
const {
|
|
28199
28182
|
actionData: T,
|
|
@@ -28208,8 +28191,8 @@ function Dashboard(e, t) {
|
|
|
28208
28191
|
title: U,
|
|
28209
28192
|
views: L,
|
|
28210
28193
|
model: V,
|
|
28211
|
-
context:
|
|
28212
|
-
domain:
|
|
28194
|
+
context: G,
|
|
28195
|
+
domain: Y,
|
|
28213
28196
|
initialView: H,
|
|
28214
28197
|
limit: K
|
|
28215
28198
|
} = T;
|
|
@@ -28228,15 +28211,15 @@ function Dashboard(e, t) {
|
|
|
28228
28211
|
(H == null ? void 0 : H.type) === "graph" ? W = /* @__PURE__ */ jsx(Graph, {
|
|
28229
28212
|
view_id: L.filter((q) => q[1] === "graph")[0][0],
|
|
28230
28213
|
model: V,
|
|
28231
|
-
context:
|
|
28232
|
-
domain:
|
|
28214
|
+
context: G,
|
|
28215
|
+
domain: Y,
|
|
28233
28216
|
limit: K
|
|
28234
28217
|
}) : (H == null ? void 0 : H.type) === "form" ? W = /* @__PURE__ */ jsx(DashboardForm, {
|
|
28235
28218
|
model: V,
|
|
28236
|
-
actionDomain:
|
|
28219
|
+
actionDomain: Y
|
|
28237
28220
|
}) : (H == null ? void 0 : H.type) === "tree" ? W = /* @__PURE__ */ jsx(DashboardTree, {
|
|
28238
28221
|
model: V,
|
|
28239
|
-
domain:
|
|
28222
|
+
domain: Y,
|
|
28240
28223
|
view_id: L.filter((q) => q[1] === "tree")[0][0],
|
|
28241
28224
|
onRowClicked: (q) => {
|
|
28242
28225
|
const Z = L.find((Q) => {
|
|
@@ -28268,8 +28251,8 @@ function Dashboard(e, t) {
|
|
|
28268
28251
|
title: U,
|
|
28269
28252
|
views: L,
|
|
28270
28253
|
model: V,
|
|
28271
|
-
context:
|
|
28272
|
-
domain:
|
|
28254
|
+
context: G,
|
|
28255
|
+
domain: Y,
|
|
28273
28256
|
setCanWeClose: () => {
|
|
28274
28257
|
},
|
|
28275
28258
|
initialView: H
|
|
@@ -28384,9 +28367,9 @@ const Dashboard$1 = forwardRef(Dashboard), MultiCheckbox = (e) => {
|
|
|
28384
28367
|
banner: !0
|
|
28385
28368
|
});
|
|
28386
28369
|
}
|
|
28387
|
-
const
|
|
28370
|
+
const w = () => {
|
|
28388
28371
|
F(s.map((b) => b.value));
|
|
28389
|
-
},
|
|
28372
|
+
}, O = () => {
|
|
28390
28373
|
F([]);
|
|
28391
28374
|
}, F = (b) => {
|
|
28392
28375
|
const S = o.map((k) => b.includes(k.id) ? k.operation == "pendingRemove" ? {
|
|
@@ -28424,11 +28407,11 @@ const Dashboard$1 = forwardRef(Dashboard), MultiCheckbox = (e) => {
|
|
|
28424
28407
|
})
|
|
28425
28408
|
}), !I && /* @__PURE__ */ jsxs(Space, {
|
|
28426
28409
|
children: [/* @__PURE__ */ jsx(Button$1, {
|
|
28427
|
-
onClick:
|
|
28410
|
+
onClick: w,
|
|
28428
28411
|
disabled: a.length == s.length,
|
|
28429
28412
|
children: "Check all"
|
|
28430
28413
|
}), /* @__PURE__ */ jsx(Button$1, {
|
|
28431
|
-
onClick:
|
|
28414
|
+
onClick: O,
|
|
28432
28415
|
disabled: a.length === 0,
|
|
28433
28416
|
children: "Uncheck all"
|
|
28434
28417
|
})]
|
|
@@ -28589,21 +28572,21 @@ function RootView(e, t) {
|
|
|
28589
28572
|
}));
|
|
28590
28573
|
function h(C) {
|
|
28591
28574
|
if (C === s) {
|
|
28592
|
-
const
|
|
28593
|
-
l[
|
|
28575
|
+
const w = l.findIndex((O) => O.key === C);
|
|
28576
|
+
l[w - 1] && c(l[w - 1].key), l[w + 1] && c(l[w + 1].key);
|
|
28594
28577
|
}
|
|
28595
|
-
u(l.filter((
|
|
28578
|
+
u(l.filter((w) => w.key !== C)), d.current.delete(C);
|
|
28596
28579
|
}
|
|
28597
28580
|
function p({
|
|
28598
28581
|
tabKey: C,
|
|
28599
|
-
canWeClose:
|
|
28582
|
+
canWeClose: w
|
|
28600
28583
|
}) {
|
|
28601
|
-
d.current.set(C,
|
|
28584
|
+
d.current.set(C, w);
|
|
28602
28585
|
}
|
|
28603
28586
|
async function I({
|
|
28604
28587
|
action: C,
|
|
28605
|
-
values:
|
|
28606
|
-
forced_values:
|
|
28588
|
+
values: w,
|
|
28589
|
+
forced_values: O,
|
|
28607
28590
|
initialViewType: F,
|
|
28608
28591
|
res_id: b,
|
|
28609
28592
|
domain: S = []
|
|
@@ -28632,9 +28615,9 @@ function RootView(e, t) {
|
|
|
28632
28615
|
views: U,
|
|
28633
28616
|
name: L,
|
|
28634
28617
|
target: V,
|
|
28635
|
-
view_type:
|
|
28636
|
-
limit:
|
|
28637
|
-
} = T, H =
|
|
28618
|
+
view_type: G,
|
|
28619
|
+
limit: Y
|
|
28620
|
+
} = T, H = G === "tree", K = [];
|
|
28638
28621
|
for (const W of U) {
|
|
28639
28622
|
const [M, A] = W;
|
|
28640
28623
|
if (M)
|
|
@@ -28683,32 +28666,32 @@ function RootView(e, t) {
|
|
|
28683
28666
|
initialView: N,
|
|
28684
28667
|
action_type: k,
|
|
28685
28668
|
action_id: B,
|
|
28686
|
-
values:
|
|
28687
|
-
forced_values:
|
|
28669
|
+
values: w,
|
|
28670
|
+
forced_values: O,
|
|
28688
28671
|
res_id: b,
|
|
28689
28672
|
treeExpandable: H,
|
|
28690
|
-
limit:
|
|
28673
|
+
limit: Y
|
|
28691
28674
|
});
|
|
28692
28675
|
}
|
|
28693
28676
|
function v({
|
|
28694
28677
|
title: C,
|
|
28695
|
-
content:
|
|
28696
|
-
key:
|
|
28678
|
+
content: w,
|
|
28679
|
+
key: O,
|
|
28697
28680
|
action: F
|
|
28698
28681
|
}) {
|
|
28699
28682
|
let b = [...l];
|
|
28700
28683
|
l.length === 1 && l[0].key === "welcome" && (b = [...l.filter((S) => S.key !== "welcome")]), u([...b, {
|
|
28701
28684
|
title: C,
|
|
28702
|
-
key:
|
|
28685
|
+
key: O,
|
|
28703
28686
|
closable: !0,
|
|
28704
|
-
content:
|
|
28687
|
+
content: w,
|
|
28705
28688
|
action: F
|
|
28706
|
-
}]), c(
|
|
28689
|
+
}]), c(O);
|
|
28707
28690
|
}
|
|
28708
28691
|
async function x({
|
|
28709
28692
|
relateData: C,
|
|
28710
|
-
fields:
|
|
28711
|
-
values:
|
|
28693
|
+
fields: w,
|
|
28694
|
+
values: O,
|
|
28712
28695
|
action_id: F,
|
|
28713
28696
|
action_type: b
|
|
28714
28697
|
}) {
|
|
@@ -28726,14 +28709,14 @@ function RootView(e, t) {
|
|
|
28726
28709
|
}, V = parseContext({
|
|
28727
28710
|
context: T,
|
|
28728
28711
|
values: {
|
|
28729
|
-
...
|
|
28712
|
+
...O,
|
|
28730
28713
|
...r
|
|
28731
28714
|
},
|
|
28732
|
-
fields:
|
|
28733
|
-
}),
|
|
28715
|
+
fields: w
|
|
28716
|
+
}), G = k ? await ConnectionProvider.getHandler().evalDomain({
|
|
28734
28717
|
domain: k,
|
|
28735
28718
|
values: {
|
|
28736
|
-
...
|
|
28719
|
+
...O,
|
|
28737
28720
|
...r
|
|
28738
28721
|
},
|
|
28739
28722
|
context: {
|
|
@@ -28749,7 +28732,7 @@ function RootView(e, t) {
|
|
|
28749
28732
|
...o,
|
|
28750
28733
|
...V
|
|
28751
28734
|
},
|
|
28752
|
-
domain:
|
|
28735
|
+
domain: G,
|
|
28753
28736
|
title: P,
|
|
28754
28737
|
initialView: L,
|
|
28755
28738
|
action_id: F,
|
|
@@ -28759,11 +28742,11 @@ function RootView(e, t) {
|
|
|
28759
28742
|
}
|
|
28760
28743
|
async function g(C) {
|
|
28761
28744
|
const {
|
|
28762
|
-
action_id:
|
|
28763
|
-
action_type:
|
|
28745
|
+
action_id: w,
|
|
28746
|
+
action_type: O,
|
|
28764
28747
|
res_id: F,
|
|
28765
28748
|
view_id: b
|
|
28766
|
-
} = C, S = `${
|
|
28749
|
+
} = C, S = `${O},${w}`, T = await ConnectionProvider.getHandler().getActionData({
|
|
28767
28750
|
action: S,
|
|
28768
28751
|
context: o
|
|
28769
28752
|
}), k = parseContext({
|
|
@@ -28784,13 +28767,13 @@ function RootView(e, t) {
|
|
|
28784
28767
|
target: j,
|
|
28785
28768
|
view_type: U,
|
|
28786
28769
|
limit: L
|
|
28787
|
-
} = T, V = U === "tree",
|
|
28770
|
+
} = T, V = U === "tree", G = [];
|
|
28788
28771
|
for (const N of P) {
|
|
28789
28772
|
const [W, M] = N;
|
|
28790
28773
|
if (W)
|
|
28791
|
-
|
|
28774
|
+
G.push(N);
|
|
28792
28775
|
else if (M === "dashboard")
|
|
28793
|
-
|
|
28776
|
+
G.push([void 0, "dashboard"]);
|
|
28794
28777
|
else {
|
|
28795
28778
|
const {
|
|
28796
28779
|
view_id: A
|
|
@@ -28803,17 +28786,17 @@ function RootView(e, t) {
|
|
|
28803
28786
|
...k
|
|
28804
28787
|
}
|
|
28805
28788
|
});
|
|
28806
|
-
|
|
28789
|
+
G.push([A, M]);
|
|
28807
28790
|
}
|
|
28808
28791
|
}
|
|
28809
|
-
let
|
|
28792
|
+
let Y, H;
|
|
28810
28793
|
if (b == null) {
|
|
28811
|
-
const N =
|
|
28812
|
-
|
|
28794
|
+
const N = G.find((W) => W[0] === void 0);
|
|
28795
|
+
Y = void 0, H = N[1];
|
|
28813
28796
|
} else
|
|
28814
|
-
[
|
|
28797
|
+
[Y, H] = G.find((N) => N[0] === void 0 ? !1 : N[0] === b);
|
|
28815
28798
|
const K = {
|
|
28816
|
-
id:
|
|
28799
|
+
id: Y,
|
|
28817
28800
|
type: H
|
|
28818
28801
|
};
|
|
28819
28802
|
y({
|
|
@@ -28823,12 +28806,12 @@ function RootView(e, t) {
|
|
|
28823
28806
|
...k
|
|
28824
28807
|
},
|
|
28825
28808
|
model: B,
|
|
28826
|
-
views:
|
|
28809
|
+
views: G,
|
|
28827
28810
|
title: D,
|
|
28828
28811
|
target: j,
|
|
28829
28812
|
initialView: K,
|
|
28830
|
-
action_id:
|
|
28831
|
-
action_type:
|
|
28813
|
+
action_id: w,
|
|
28814
|
+
action_type: O,
|
|
28832
28815
|
res_id: F,
|
|
28833
28816
|
treeExpandable: V,
|
|
28834
28817
|
limit: L
|
|
@@ -28836,8 +28819,8 @@ function RootView(e, t) {
|
|
|
28836
28819
|
}
|
|
28837
28820
|
async function m({
|
|
28838
28821
|
model: C,
|
|
28839
|
-
values:
|
|
28840
|
-
forced_values:
|
|
28822
|
+
values: w,
|
|
28823
|
+
forced_values: O,
|
|
28841
28824
|
initialViewType: F,
|
|
28842
28825
|
res_id: b,
|
|
28843
28826
|
domain: S
|
|
@@ -28845,8 +28828,8 @@ function RootView(e, t) {
|
|
|
28845
28828
|
const T = await ConnectionProvider.getHandler().getActionStringForModel(C);
|
|
28846
28829
|
await I({
|
|
28847
28830
|
action: T,
|
|
28848
|
-
values:
|
|
28849
|
-
forced_values:
|
|
28831
|
+
values: w,
|
|
28832
|
+
forced_values: O,
|
|
28850
28833
|
initialViewType: F,
|
|
28851
28834
|
res_id: b,
|
|
28852
28835
|
domain: S
|
|
@@ -28854,8 +28837,8 @@ function RootView(e, t) {
|
|
|
28854
28837
|
}
|
|
28855
28838
|
async function y({
|
|
28856
28839
|
domain: C,
|
|
28857
|
-
context:
|
|
28858
|
-
model:
|
|
28840
|
+
context: w,
|
|
28841
|
+
model: O,
|
|
28859
28842
|
views: F,
|
|
28860
28843
|
title: b,
|
|
28861
28844
|
target: S,
|
|
@@ -28871,21 +28854,21 @@ function RootView(e, t) {
|
|
|
28871
28854
|
const L = v4();
|
|
28872
28855
|
if (S !== "current") {
|
|
28873
28856
|
const V = await ConnectionProvider.getHandler().getView({
|
|
28874
|
-
model:
|
|
28857
|
+
model: O,
|
|
28875
28858
|
type: "form",
|
|
28876
28859
|
id: T.type === "form" ? T.id : void 0,
|
|
28877
28860
|
context: {
|
|
28878
28861
|
...o,
|
|
28879
|
-
...
|
|
28862
|
+
...w
|
|
28880
28863
|
}
|
|
28881
28864
|
});
|
|
28882
28865
|
f.current.openActionModal({
|
|
28883
28866
|
domain: C,
|
|
28884
|
-
model:
|
|
28867
|
+
model: O,
|
|
28885
28868
|
formView: V,
|
|
28886
28869
|
context: {
|
|
28887
28870
|
...o,
|
|
28888
|
-
...
|
|
28871
|
+
...w
|
|
28889
28872
|
},
|
|
28890
28873
|
actionData: {
|
|
28891
28874
|
action_id: k,
|
|
@@ -28907,10 +28890,10 @@ function RootView(e, t) {
|
|
|
28907
28890
|
tabKey: L,
|
|
28908
28891
|
title: b,
|
|
28909
28892
|
views: F,
|
|
28910
|
-
model:
|
|
28893
|
+
model: O,
|
|
28911
28894
|
context: {
|
|
28912
28895
|
...o,
|
|
28913
|
-
...
|
|
28896
|
+
...w
|
|
28914
28897
|
},
|
|
28915
28898
|
domain: C,
|
|
28916
28899
|
setCanWeClose: p,
|
|
@@ -28934,8 +28917,8 @@ function RootView(e, t) {
|
|
|
28934
28917
|
tabs: l,
|
|
28935
28918
|
activeKey: s,
|
|
28936
28919
|
onRemoveTab: async (C) => {
|
|
28937
|
-
const
|
|
28938
|
-
(await (
|
|
28920
|
+
const w = d.current.get(C);
|
|
28921
|
+
(await (w == null ? void 0 : w()) || s === "welcome") && h(C);
|
|
28939
28922
|
},
|
|
28940
28923
|
onChangeTab: (C) => {
|
|
28941
28924
|
c(C);
|
|
@@ -29064,14 +29047,14 @@ const FavouriteButton = (e) => {
|
|
|
29064
29047
|
tabs: m,
|
|
29065
29048
|
activeKey: y,
|
|
29066
29049
|
currentView: C,
|
|
29067
|
-
currentId:
|
|
29068
|
-
openDefaultActionForModel:
|
|
29050
|
+
currentId: w,
|
|
29051
|
+
openDefaultActionForModel: O
|
|
29069
29052
|
} = x || {};
|
|
29070
29053
|
useEffect(() => {
|
|
29071
29054
|
F();
|
|
29072
29055
|
}, []), useEffect(() => {
|
|
29073
29056
|
T();
|
|
29074
|
-
}, [m, y, C,
|
|
29057
|
+
}, [m, y, C, w]);
|
|
29075
29058
|
async function F() {
|
|
29076
29059
|
try {
|
|
29077
29060
|
h(!0);
|
|
@@ -29095,7 +29078,7 @@ const FavouriteButton = (e) => {
|
|
|
29095
29078
|
async function T() {
|
|
29096
29079
|
if (!C)
|
|
29097
29080
|
return;
|
|
29098
|
-
const D = m.find((
|
|
29081
|
+
const D = m.find((Y) => Y.key === y), {
|
|
29099
29082
|
id: j,
|
|
29100
29083
|
type: U
|
|
29101
29084
|
} = (D == null ? void 0 : D.action) || {};
|
|
@@ -29105,17 +29088,17 @@ const FavouriteButton = (e) => {
|
|
|
29105
29088
|
}
|
|
29106
29089
|
const L = C.id;
|
|
29107
29090
|
let V = !1;
|
|
29108
|
-
C.type === "form" && (V =
|
|
29109
|
-
const
|
|
29091
|
+
C.type === "form" && (V = w || !1);
|
|
29092
|
+
const G = await n({
|
|
29110
29093
|
action_id: j,
|
|
29111
29094
|
action_type: U,
|
|
29112
29095
|
view_id: L,
|
|
29113
29096
|
res_id: V
|
|
29114
29097
|
});
|
|
29115
|
-
|
|
29098
|
+
G !== !1 && I(G), s(G !== !1);
|
|
29116
29099
|
}
|
|
29117
29100
|
async function k() {
|
|
29118
|
-
l(!1),
|
|
29101
|
+
l(!1), O == null || O({
|
|
29119
29102
|
model: "ir.ui.view_sc"
|
|
29120
29103
|
});
|
|
29121
29104
|
}
|
|
@@ -29193,7 +29176,7 @@ const FavouriteButton = (e) => {
|
|
|
29193
29176
|
else {
|
|
29194
29177
|
if (!C)
|
|
29195
29178
|
return;
|
|
29196
|
-
const D = m.find((
|
|
29179
|
+
const D = m.find((G) => G.key === y), {
|
|
29197
29180
|
id: j,
|
|
29198
29181
|
type: U
|
|
29199
29182
|
} = (D == null ? void 0 : D.action) || {}, L = C.id;
|
|
@@ -29202,7 +29185,7 @@ const FavouriteButton = (e) => {
|
|
|
29202
29185
|
s(!1);
|
|
29203
29186
|
return;
|
|
29204
29187
|
}
|
|
29205
|
-
C.type === "form" && (V =
|
|
29188
|
+
C.type === "form" && (V = w || !1), await r({
|
|
29206
29189
|
action_id: j,
|
|
29207
29190
|
action_type: U,
|
|
29208
29191
|
view_id: L,
|