@gisce/react-ooui 1.0.9-rc.0 → 1.0.9
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/react-ooui.es.js +420 -520
- package/dist/react-ooui.es.js.map +1 -1
- package/dist/react-ooui.umd.js +18 -11
- package/dist/react-ooui.umd.js.map +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/index.d.ts.map +1 -1
- package/dist/widgets/views/SearchTree.d.ts.map +1 -1
- package/dist/widgets/views/Tree.d.ts +1 -1
- package/dist/widgets/views/Tree.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/types/index.ts +1 -1
- package/src/widgets/views/SearchTree.tsx +6 -3
- package/src/widgets/views/Tree.tsx +6 -4
- package/npm-shrinkwrap.json +0 -50520
- package/src/.eslintcache +0 -1
package/dist/react-ooui.es.js
CHANGED
|
@@ -10,7 +10,7 @@ import styled from "styled-components";
|
|
|
10
10
|
import Measure from "react-measure";
|
|
11
11
|
import { Line, Column, Pie } from "@ant-design/plots";
|
|
12
12
|
import useDeepCompareEffect from "use-deep-compare-effect";
|
|
13
|
-
import require$$0, { Buffer } from "buffer";
|
|
13
|
+
import require$$0, { Buffer as Buffer$1 } from "buffer";
|
|
14
14
|
import { Table } from "@gisce/react-formiga-table";
|
|
15
15
|
import { GridUi } from "fiber-diagram";
|
|
16
16
|
import { useHotkeys } from "react-hotkeys-hook";
|
|
@@ -4570,116 +4570,6 @@ function _objectSpread2$1(e) {
|
|
|
4570
4570
|
function findDOMNode(e) {
|
|
4571
4571
|
return e instanceof HTMLElement ? e : ReactDOM.findDOMNode(e);
|
|
4572
4572
|
}
|
|
4573
|
-
var browser$2 = { exports: {} }, process = browser$2.exports = {}, cachedSetTimeout, cachedClearTimeout;
|
|
4574
|
-
function defaultSetTimout() {
|
|
4575
|
-
throw new Error("setTimeout has not been defined");
|
|
4576
|
-
}
|
|
4577
|
-
function defaultClearTimeout() {
|
|
4578
|
-
throw new Error("clearTimeout has not been defined");
|
|
4579
|
-
}
|
|
4580
|
-
(function() {
|
|
4581
|
-
try {
|
|
4582
|
-
typeof setTimeout == "function" ? cachedSetTimeout = setTimeout : cachedSetTimeout = defaultSetTimout;
|
|
4583
|
-
} catch {
|
|
4584
|
-
cachedSetTimeout = defaultSetTimout;
|
|
4585
|
-
}
|
|
4586
|
-
try {
|
|
4587
|
-
typeof clearTimeout == "function" ? cachedClearTimeout = clearTimeout : cachedClearTimeout = defaultClearTimeout;
|
|
4588
|
-
} catch {
|
|
4589
|
-
cachedClearTimeout = defaultClearTimeout;
|
|
4590
|
-
}
|
|
4591
|
-
})();
|
|
4592
|
-
function runTimeout(e) {
|
|
4593
|
-
if (cachedSetTimeout === setTimeout)
|
|
4594
|
-
return setTimeout(e, 0);
|
|
4595
|
-
if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout)
|
|
4596
|
-
return cachedSetTimeout = setTimeout, setTimeout(e, 0);
|
|
4597
|
-
try {
|
|
4598
|
-
return cachedSetTimeout(e, 0);
|
|
4599
|
-
} catch {
|
|
4600
|
-
try {
|
|
4601
|
-
return cachedSetTimeout.call(null, e, 0);
|
|
4602
|
-
} catch {
|
|
4603
|
-
return cachedSetTimeout.call(this, e, 0);
|
|
4604
|
-
}
|
|
4605
|
-
}
|
|
4606
|
-
}
|
|
4607
|
-
function runClearTimeout(e) {
|
|
4608
|
-
if (cachedClearTimeout === clearTimeout)
|
|
4609
|
-
return clearTimeout(e);
|
|
4610
|
-
if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout)
|
|
4611
|
-
return cachedClearTimeout = clearTimeout, clearTimeout(e);
|
|
4612
|
-
try {
|
|
4613
|
-
return cachedClearTimeout(e);
|
|
4614
|
-
} catch {
|
|
4615
|
-
try {
|
|
4616
|
-
return cachedClearTimeout.call(null, e);
|
|
4617
|
-
} catch {
|
|
4618
|
-
return cachedClearTimeout.call(this, e);
|
|
4619
|
-
}
|
|
4620
|
-
}
|
|
4621
|
-
}
|
|
4622
|
-
var queue = [], draining = !1, currentQueue, queueIndex = -1;
|
|
4623
|
-
function cleanUpNextTick() {
|
|
4624
|
-
!draining || !currentQueue || (draining = !1, currentQueue.length ? queue = currentQueue.concat(queue) : queueIndex = -1, queue.length && drainQueue());
|
|
4625
|
-
}
|
|
4626
|
-
function drainQueue() {
|
|
4627
|
-
if (!draining) {
|
|
4628
|
-
var e = runTimeout(cleanUpNextTick);
|
|
4629
|
-
draining = !0;
|
|
4630
|
-
for (var t = queue.length; t; ) {
|
|
4631
|
-
for (currentQueue = queue, queue = []; ++queueIndex < t; )
|
|
4632
|
-
currentQueue && currentQueue[queueIndex].run();
|
|
4633
|
-
queueIndex = -1, t = queue.length;
|
|
4634
|
-
}
|
|
4635
|
-
currentQueue = null, draining = !1, runClearTimeout(e);
|
|
4636
|
-
}
|
|
4637
|
-
}
|
|
4638
|
-
process.nextTick = function(e) {
|
|
4639
|
-
var t = new Array(arguments.length - 1);
|
|
4640
|
-
if (arguments.length > 1)
|
|
4641
|
-
for (var n = 1; n < arguments.length; n++)
|
|
4642
|
-
t[n - 1] = arguments[n];
|
|
4643
|
-
queue.push(new Item(e, t)), queue.length === 1 && !draining && runTimeout(drainQueue);
|
|
4644
|
-
};
|
|
4645
|
-
function Item(e, t) {
|
|
4646
|
-
this.fun = e, this.array = t;
|
|
4647
|
-
}
|
|
4648
|
-
Item.prototype.run = function() {
|
|
4649
|
-
this.fun.apply(null, this.array);
|
|
4650
|
-
};
|
|
4651
|
-
process.title = "browser";
|
|
4652
|
-
process.browser = !0;
|
|
4653
|
-
process.env = {};
|
|
4654
|
-
process.argv = [];
|
|
4655
|
-
process.version = "";
|
|
4656
|
-
process.versions = {};
|
|
4657
|
-
function noop$3() {
|
|
4658
|
-
}
|
|
4659
|
-
process.on = noop$3;
|
|
4660
|
-
process.addListener = noop$3;
|
|
4661
|
-
process.once = noop$3;
|
|
4662
|
-
process.off = noop$3;
|
|
4663
|
-
process.removeListener = noop$3;
|
|
4664
|
-
process.removeAllListeners = noop$3;
|
|
4665
|
-
process.emit = noop$3;
|
|
4666
|
-
process.prependListener = noop$3;
|
|
4667
|
-
process.prependOnceListener = noop$3;
|
|
4668
|
-
process.listeners = function(e) {
|
|
4669
|
-
return [];
|
|
4670
|
-
};
|
|
4671
|
-
process.binding = function(e) {
|
|
4672
|
-
throw new Error("process.binding is not supported");
|
|
4673
|
-
};
|
|
4674
|
-
process.cwd = function() {
|
|
4675
|
-
return "/";
|
|
4676
|
-
};
|
|
4677
|
-
process.chdir = function(e) {
|
|
4678
|
-
throw new Error("process.chdir is not supported");
|
|
4679
|
-
};
|
|
4680
|
-
process.umask = function() {
|
|
4681
|
-
return 0;
|
|
4682
|
-
};
|
|
4683
4573
|
var reactIs = { exports: {} }, reactIs_production_min = {};
|
|
4684
4574
|
/** @license React v16.13.1
|
|
4685
4575
|
* react-is.production.min.js
|
|
@@ -4756,9 +4646,18 @@ function requireReactIs_production_min() {
|
|
|
4756
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 === g || w.$$typeof === p || w.$$typeof === s || w.$$typeof === c || w.$$typeof === d || w.$$typeof === x || w.$$typeof === I || w.$$typeof === m || w.$$typeof === v);
|
|
4757
4647
|
}, reactIs_production_min.typeOf = y, reactIs_production_min;
|
|
4758
4648
|
}
|
|
4759
|
-
var reactIs_development = {}
|
|
4649
|
+
var reactIs_development = {};
|
|
4650
|
+
/** @license React v16.13.1
|
|
4651
|
+
* react-is.development.js
|
|
4652
|
+
*
|
|
4653
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
4654
|
+
*
|
|
4655
|
+
* This source code is licensed under the MIT license found in the
|
|
4656
|
+
* LICENSE file in the root directory of this source tree.
|
|
4657
|
+
*/
|
|
4658
|
+
var hasRequiredReactIs_development;
|
|
4760
4659
|
function requireReactIs_development() {
|
|
4761
|
-
return hasRequiredReactIs_development || (hasRequiredReactIs_development = 1,
|
|
4660
|
+
return hasRequiredReactIs_development || (hasRequiredReactIs_development = 1, process.env.NODE_ENV !== "production" && function() {
|
|
4762
4661
|
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, g = e ? Symbol.for("react.lazy") : 60116, v = e ? Symbol.for("react.block") : 60121, x = e ? Symbol.for("react.fundamental") : 60117, I = e ? Symbol.for("react.responder") : 60118, m = e ? Symbol.for("react.scope") : 60119;
|
|
4763
4662
|
function y(S) {
|
|
4764
4663
|
return typeof S == "string" || typeof S == "function" || S === r || S === u || S === a || S === o || S === f || S === h || typeof S == "object" && S !== null && (S.$$typeof === g || S.$$typeof === p || S.$$typeof === s || S.$$typeof === c || S.$$typeof === d || S.$$typeof === x || S.$$typeof === I || S.$$typeof === m || S.$$typeof === v);
|
|
@@ -4795,9 +4694,9 @@ function requireReactIs_development() {
|
|
|
4795
4694
|
}
|
|
4796
4695
|
}
|
|
4797
4696
|
}
|
|
4798
|
-
var w = l, O = u, _ = c, b = s, T = t, F = d, k = r,
|
|
4697
|
+
var w = l, O = u, _ = c, b = s, T = t, F = d, k = r, $ = g, D = p, P = n, M = a, q = o, j = f, L = !1;
|
|
4799
4698
|
function H(S) {
|
|
4800
|
-
return
|
|
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.")), K(S) || C(S) === l;
|
|
4801
4700
|
}
|
|
4802
4701
|
function K(S) {
|
|
4803
4702
|
return C(S) === u;
|
|
@@ -4835,13 +4734,13 @@ function requireReactIs_development() {
|
|
|
4835
4734
|
function E(S) {
|
|
4836
4735
|
return C(S) === f;
|
|
4837
4736
|
}
|
|
4838
|
-
reactIs_development.AsyncMode = w, reactIs_development.ConcurrentMode = O, reactIs_development.ContextConsumer = _, reactIs_development.ContextProvider = b, reactIs_development.Element = T, reactIs_development.ForwardRef = F, reactIs_development.Fragment = k, reactIs_development.Lazy =
|
|
4737
|
+
reactIs_development.AsyncMode = w, reactIs_development.ConcurrentMode = O, reactIs_development.ContextConsumer = _, reactIs_development.ContextProvider = b, reactIs_development.Element = T, reactIs_development.ForwardRef = F, reactIs_development.Fragment = k, reactIs_development.Lazy = $, reactIs_development.Memo = D, reactIs_development.Portal = P, reactIs_development.Profiler = M, reactIs_development.StrictMode = q, reactIs_development.Suspense = j, reactIs_development.isAsyncMode = H, reactIs_development.isConcurrentMode = K, reactIs_development.isContextConsumer = G, reactIs_development.isContextProvider = z, reactIs_development.isElement = V, reactIs_development.isForwardRef = U, reactIs_development.isFragment = Y, reactIs_development.isLazy = B, reactIs_development.isMemo = A, reactIs_development.isPortal = N, reactIs_development.isProfiler = Z, reactIs_development.isStrictMode = Q, reactIs_development.isSuspense = E, reactIs_development.isValidElementType = y, reactIs_development.typeOf = C;
|
|
4839
4738
|
}()), reactIs_development;
|
|
4840
4739
|
}
|
|
4841
4740
|
var hasRequiredReactIs;
|
|
4842
4741
|
function requireReactIs() {
|
|
4843
4742
|
return hasRequiredReactIs || (hasRequiredReactIs = 1, function(e) {
|
|
4844
|
-
|
|
4743
|
+
process.env.NODE_ENV === "production" ? e.exports = requireReactIs_production_min() : e.exports = requireReactIs_development();
|
|
4845
4744
|
}(reactIs)), reactIs.exports;
|
|
4846
4745
|
}
|
|
4847
4746
|
var reactIsExports = requireReactIs();
|
|
@@ -4853,7 +4752,7 @@ function toArray$3(e) {
|
|
|
4853
4752
|
}
|
|
4854
4753
|
var warned = {};
|
|
4855
4754
|
function warning$5(e, t) {
|
|
4856
|
-
|
|
4755
|
+
process.env.NODE_ENV !== "production" && !e && console !== void 0 && console.error("Warning: ".concat(t));
|
|
4857
4756
|
}
|
|
4858
4757
|
function call$1(e, t, n) {
|
|
4859
4758
|
!t && !warned[n] && (e(!1, n), warned[n] = !0);
|
|
@@ -4877,7 +4776,6 @@ function supportRef(e) {
|
|
|
4877
4776
|
var t, n, r = reactIsExports.isMemo(e) ? e.type.type : e.type;
|
|
4878
4777
|
return !(typeof r == "function" && !(!((t = r.prototype) === null || t === void 0) && t.render) || typeof e == "function" && !(!((n = e.prototype) === null || n === void 0) && n.render));
|
|
4879
4778
|
}
|
|
4880
|
-
const global$2 = typeof global < "u" ? global : typeof self < "u" ? self : typeof window < "u" ? window : {};
|
|
4881
4779
|
var MapShim = function() {
|
|
4882
4780
|
if (typeof Map < "u")
|
|
4883
4781
|
return Map;
|
|
@@ -4919,7 +4817,7 @@ var MapShim = function() {
|
|
|
4919
4817
|
}, t;
|
|
4920
4818
|
}();
|
|
4921
4819
|
}(), isBrowser = typeof window < "u" && typeof document < "u" && window.document === document, global$1 = function() {
|
|
4922
|
-
return typeof global
|
|
4820
|
+
return typeof global < "u" && global.Math === Math ? global : typeof self < "u" && self.Math === Math ? self : typeof window < "u" && window.Math === Math ? window : Function("return this")();
|
|
4923
4821
|
}(), requestAnimationFrame$1 = function() {
|
|
4924
4822
|
return typeof requestAnimationFrame == "function" ? requestAnimationFrame.bind(global$1) : function(e) {
|
|
4925
4823
|
return setTimeout(function() {
|
|
@@ -6198,10 +6096,10 @@ function requireWarning$1() {
|
|
|
6198
6096
|
}), warning$4.call = o, warning$4.default = void 0, warning$4.note = n, warning$4.noteOnce = s, warning$4.resetWarned = r, warning$4.warning = t, warning$4.warningOnce = a;
|
|
6199
6097
|
var e = {};
|
|
6200
6098
|
function t(l, u) {
|
|
6201
|
-
|
|
6099
|
+
process.env.NODE_ENV !== "production" && !l && console !== void 0 && console.error("Warning: ".concat(u));
|
|
6202
6100
|
}
|
|
6203
6101
|
function n(l, u) {
|
|
6204
|
-
|
|
6102
|
+
process.env.NODE_ENV !== "production" && !l && console !== void 0 && console.warn("Note: ".concat(u));
|
|
6205
6103
|
}
|
|
6206
6104
|
function r() {
|
|
6207
6105
|
e = {};
|
|
@@ -6497,12 +6395,12 @@ function requireAntdIcon() {
|
|
|
6497
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"];
|
|
6498
6396
|
(0, d.setTwoToneColor)("#1890ff");
|
|
6499
6397
|
var p = /* @__PURE__ */ s.forwardRef(function(v, x) {
|
|
6500
|
-
var I, m = v.className, y = v.icon, C = v.spin, w = v.rotate, O = v.tabIndex, _ = v.onClick, b = v.twoToneColor, T = (0, a.default)(v, h), F = s.useContext(l.default), k = F.prefixCls,
|
|
6398
|
+
var I, m = v.className, y = v.icon, C = v.spin, w = v.rotate, O = v.tabIndex, _ = v.onClick, b = v.twoToneColor, T = (0, a.default)(v, h), F = s.useContext(l.default), k = F.prefixCls, $ = k === void 0 ? "anticon" : k, D = (0, c.default)($, (I = {}, (0, o.default)(I, "".concat($, "-").concat(y.name), !!y.name), (0, o.default)(I, "".concat($, "-spin"), !!C || y.name === "loading"), I), m), P = O;
|
|
6501
6399
|
P === void 0 && _ && (P = -1);
|
|
6502
6400
|
var M = w ? {
|
|
6503
6401
|
msTransform: "rotate(".concat(w, "deg)"),
|
|
6504
6402
|
transform: "rotate(".concat(w, "deg)")
|
|
6505
|
-
} : void 0, q = (0, f.normalizeTwoToneColors)(b), j = (0, r.default)(q, 2),
|
|
6403
|
+
} : void 0, q = (0, f.normalizeTwoToneColors)(b), j = (0, r.default)(q, 2), L = j[0], H = j[1];
|
|
6506
6404
|
return /* @__PURE__ */ s.createElement("span", (0, n.default)((0, n.default)({
|
|
6507
6405
|
role: "img",
|
|
6508
6406
|
"aria-label": y.name
|
|
@@ -6513,7 +6411,7 @@ function requireAntdIcon() {
|
|
|
6513
6411
|
className: D
|
|
6514
6412
|
}), /* @__PURE__ */ s.createElement(u.default, {
|
|
6515
6413
|
icon: y,
|
|
6516
|
-
primaryColor:
|
|
6414
|
+
primaryColor: L,
|
|
6517
6415
|
secondaryColor: H,
|
|
6518
6416
|
style: M
|
|
6519
6417
|
}));
|
|
@@ -6686,8 +6584,8 @@ function requireRegeneratorRuntime() {
|
|
|
6686
6584
|
};
|
|
6687
6585
|
}
|
|
6688
6586
|
function f(D, P, M, q) {
|
|
6689
|
-
var j = P && P.prototype instanceof g ? P : g,
|
|
6690
|
-
return
|
|
6587
|
+
var j = P && P.prototype instanceof g ? P : g, L = Object.create(j.prototype), H = new F(q || []);
|
|
6588
|
+
return L._invoke = function(K, G, z) {
|
|
6691
6589
|
var V = "suspendedStart";
|
|
6692
6590
|
return function(U, Y) {
|
|
6693
6591
|
if (V === "executing")
|
|
@@ -6695,7 +6593,7 @@ function requireRegeneratorRuntime() {
|
|
|
6695
6593
|
if (V === "completed") {
|
|
6696
6594
|
if (U === "throw")
|
|
6697
6595
|
throw Y;
|
|
6698
|
-
return
|
|
6596
|
+
return $();
|
|
6699
6597
|
}
|
|
6700
6598
|
for (z.method = U, z.arg = Y; ; ) {
|
|
6701
6599
|
var B = z.delegate;
|
|
@@ -6728,7 +6626,7 @@ function requireRegeneratorRuntime() {
|
|
|
6728
6626
|
N.type === "throw" && (V = "completed", z.method = "throw", z.arg = N.arg);
|
|
6729
6627
|
}
|
|
6730
6628
|
};
|
|
6731
|
-
}(D, M, H),
|
|
6629
|
+
}(D, M, H), L;
|
|
6732
6630
|
}
|
|
6733
6631
|
function h(D, P, M) {
|
|
6734
6632
|
try {
|
|
@@ -6766,8 +6664,8 @@ function requireRegeneratorRuntime() {
|
|
|
6766
6664
|
});
|
|
6767
6665
|
}
|
|
6768
6666
|
function O(D, P) {
|
|
6769
|
-
function M(j,
|
|
6770
|
-
var G = h(D[j], D,
|
|
6667
|
+
function M(j, L, H, K) {
|
|
6668
|
+
var G = h(D[j], D, L);
|
|
6771
6669
|
if (G.type !== "throw") {
|
|
6772
6670
|
var z = G.arg, V = z.value;
|
|
6773
6671
|
return V && t(V) == "object" && a.call(V, "__await") ? P.resolve(V.__await).then(function(U) {
|
|
@@ -6783,10 +6681,10 @@ function requireRegeneratorRuntime() {
|
|
|
6783
6681
|
K(G.arg);
|
|
6784
6682
|
}
|
|
6785
6683
|
var q;
|
|
6786
|
-
this._invoke = function(j,
|
|
6684
|
+
this._invoke = function(j, L) {
|
|
6787
6685
|
function H() {
|
|
6788
6686
|
return new P(function(K, G) {
|
|
6789
|
-
M(j,
|
|
6687
|
+
M(j, L, K, G);
|
|
6790
6688
|
});
|
|
6791
6689
|
}
|
|
6792
6690
|
return q = q ? q.then(H, H) : H();
|
|
@@ -6841,10 +6739,10 @@ function requireRegeneratorRuntime() {
|
|
|
6841
6739
|
}
|
|
6842
6740
|
}
|
|
6843
6741
|
return {
|
|
6844
|
-
next:
|
|
6742
|
+
next: $
|
|
6845
6743
|
};
|
|
6846
6744
|
}
|
|
6847
|
-
function
|
|
6745
|
+
function $() {
|
|
6848
6746
|
return {
|
|
6849
6747
|
value: void 0,
|
|
6850
6748
|
done: !0
|
|
@@ -6863,9 +6761,9 @@ function requireRegeneratorRuntime() {
|
|
|
6863
6761
|
return this;
|
|
6864
6762
|
}), r.AsyncIterator = O, r.async = function(D, P, M, q, j) {
|
|
6865
6763
|
j === void 0 && (j = Promise);
|
|
6866
|
-
var
|
|
6867
|
-
return r.isGeneratorFunction(P) ?
|
|
6868
|
-
return H.done ? H.value :
|
|
6764
|
+
var L = new O(f(D, P, M, q), j);
|
|
6765
|
+
return r.isGeneratorFunction(P) ? L : L.next().then(function(H) {
|
|
6766
|
+
return H.done ? H.value : L.next();
|
|
6869
6767
|
});
|
|
6870
6768
|
}, w(C), d(C, u, "Generator"), d(C, c, function() {
|
|
6871
6769
|
return this;
|
|
@@ -6905,24 +6803,24 @@ function requireRegeneratorRuntime() {
|
|
|
6905
6803
|
return H.type = "throw", H.arg = P, M.next = z, V && (M.method = "next", M.arg = void 0), !!V;
|
|
6906
6804
|
}
|
|
6907
6805
|
for (var j = this.tryEntries.length - 1; j >= 0; --j) {
|
|
6908
|
-
var
|
|
6909
|
-
if (
|
|
6806
|
+
var L = this.tryEntries[j], H = L.completion;
|
|
6807
|
+
if (L.tryLoc === "root")
|
|
6910
6808
|
return q("end");
|
|
6911
|
-
if (
|
|
6912
|
-
var K = a.call(
|
|
6809
|
+
if (L.tryLoc <= this.prev) {
|
|
6810
|
+
var K = a.call(L, "catchLoc"), G = a.call(L, "finallyLoc");
|
|
6913
6811
|
if (K && G) {
|
|
6914
|
-
if (this.prev <
|
|
6915
|
-
return q(
|
|
6916
|
-
if (this.prev <
|
|
6917
|
-
return q(
|
|
6812
|
+
if (this.prev < L.catchLoc)
|
|
6813
|
+
return q(L.catchLoc, !0);
|
|
6814
|
+
if (this.prev < L.finallyLoc)
|
|
6815
|
+
return q(L.finallyLoc);
|
|
6918
6816
|
} else if (K) {
|
|
6919
|
-
if (this.prev <
|
|
6920
|
-
return q(
|
|
6817
|
+
if (this.prev < L.catchLoc)
|
|
6818
|
+
return q(L.catchLoc, !0);
|
|
6921
6819
|
} else {
|
|
6922
6820
|
if (!G)
|
|
6923
6821
|
throw new Error("try statement without catch or finally");
|
|
6924
|
-
if (this.prev <
|
|
6925
|
-
return q(
|
|
6822
|
+
if (this.prev < L.finallyLoc)
|
|
6823
|
+
return q(L.finallyLoc);
|
|
6926
6824
|
}
|
|
6927
6825
|
}
|
|
6928
6826
|
}
|
|
@@ -6931,13 +6829,13 @@ function requireRegeneratorRuntime() {
|
|
|
6931
6829
|
for (var q = this.tryEntries.length - 1; q >= 0; --q) {
|
|
6932
6830
|
var j = this.tryEntries[q];
|
|
6933
6831
|
if (j.tryLoc <= this.prev && a.call(j, "finallyLoc") && this.prev < j.finallyLoc) {
|
|
6934
|
-
var
|
|
6832
|
+
var L = j;
|
|
6935
6833
|
break;
|
|
6936
6834
|
}
|
|
6937
6835
|
}
|
|
6938
|
-
|
|
6939
|
-
var H =
|
|
6940
|
-
return H.type = P, H.arg = M,
|
|
6836
|
+
L && (P === "break" || P === "continue") && L.tryLoc <= M && M <= L.finallyLoc && (L = null);
|
|
6837
|
+
var H = L ? L.completion : {};
|
|
6838
|
+
return H.type = P, H.arg = M, L ? (this.method = "next", this.next = L.finallyLoc, p) : this.complete(H);
|
|
6941
6839
|
},
|
|
6942
6840
|
complete: function(P, M) {
|
|
6943
6841
|
if (P.type === "throw")
|
|
@@ -6957,10 +6855,10 @@ function requireRegeneratorRuntime() {
|
|
|
6957
6855
|
if (q.tryLoc === P) {
|
|
6958
6856
|
var j = q.completion;
|
|
6959
6857
|
if (j.type === "throw") {
|
|
6960
|
-
var
|
|
6858
|
+
var L = j.arg;
|
|
6961
6859
|
T(q);
|
|
6962
6860
|
}
|
|
6963
|
-
return
|
|
6861
|
+
return L;
|
|
6964
6862
|
}
|
|
6965
6863
|
}
|
|
6966
6864
|
throw new Error("illegal catch attempt");
|
|
@@ -7089,7 +6987,7 @@ function _wrapNativeSuper(e) {
|
|
|
7089
6987
|
}
|
|
7090
6988
|
var formatRegExp = /%[sdj%]/g, warning$3 = function() {
|
|
7091
6989
|
};
|
|
7092
|
-
typeof
|
|
6990
|
+
typeof process < "u" && process.env && process.env.NODE_ENV !== "production" && typeof window < "u" && typeof document < "u" && (warning$3 = function(t, n) {
|
|
7093
6991
|
typeof console < "u" && console.warn && n.every(function(r) {
|
|
7094
6992
|
return typeof r == "string";
|
|
7095
6993
|
}) && console.warn(t, n);
|
|
@@ -7601,8 +7499,8 @@ Schema.prototype = {
|
|
|
7601
7499
|
var k = Array.isArray(b[F]) ? b[F] : [b[F]];
|
|
7602
7500
|
b[F] = k.map(y.bind(null, F));
|
|
7603
7501
|
}
|
|
7604
|
-
var
|
|
7605
|
-
|
|
7502
|
+
var $ = new Schema(b);
|
|
7503
|
+
$.messages(s.messages), v.rule.options && (v.rule.options.messages = s.messages, v.rule.options.error = s.error), $.validate(v.value, v.rule.options || s, function(D) {
|
|
7606
7504
|
var P = [];
|
|
7607
7505
|
_ && _.length && P.push.apply(P, _), D && D.length && P.push.apply(P, D), x(P.length ? P : null);
|
|
7608
7506
|
});
|
|
@@ -8112,29 +8010,29 @@ var Field = /* @__PURE__ */ function(e) {
|
|
|
8112
8010
|
var u = o.props.fieldContext.getFieldsValue, d = o.getNamePath();
|
|
8113
8011
|
return getValue(l || u(!0), d);
|
|
8114
8012
|
}, o.getControlled = function() {
|
|
8115
|
-
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, g = u.valuePropName, v = u.getValueProps, x = u.fieldContext, I = f !== void 0 ? f : x.validateTrigger, m = o.getNamePath(), y = x.getInternalHooks, C = x.getFieldsValue, w = y(HOOK_MARK), O = w.dispatch, _ = o.getValue(), b = v || function(
|
|
8116
|
-
return _defineProperty$1({}, g,
|
|
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, g = u.valuePropName, v = u.getValueProps, x = u.fieldContext, I = f !== void 0 ? f : x.validateTrigger, m = o.getNamePath(), y = x.getInternalHooks, C = x.getFieldsValue, w = y(HOOK_MARK), O = w.dispatch, _ = o.getValue(), b = v || function($) {
|
|
8014
|
+
return _defineProperty$1({}, g, $);
|
|
8117
8015
|
}, T = l[d], F = _objectSpread2$1(_objectSpread2$1({}, l), b(_));
|
|
8118
8016
|
F[d] = function() {
|
|
8119
8017
|
o.touched = !0, o.dirty = !0;
|
|
8120
|
-
for (var
|
|
8018
|
+
for (var $, D = arguments.length, P = new Array(D), M = 0; M < D; M++)
|
|
8121
8019
|
P[M] = arguments[M];
|
|
8122
|
-
h ?
|
|
8020
|
+
h ? $ = h.apply(void 0, P) : $ = defaultGetValueFromEvent.apply(void 0, [g].concat(P)), p && ($ = p($, _, C(!0))), O({
|
|
8123
8021
|
type: "updateValue",
|
|
8124
8022
|
namePath: m,
|
|
8125
|
-
value:
|
|
8023
|
+
value: $
|
|
8126
8024
|
}), T && T.apply(void 0, P);
|
|
8127
8025
|
};
|
|
8128
8026
|
var k = toArray$2(I || []);
|
|
8129
|
-
return k.forEach(function(
|
|
8130
|
-
var D = F[
|
|
8131
|
-
F[
|
|
8027
|
+
return k.forEach(function($) {
|
|
8028
|
+
var D = F[$];
|
|
8029
|
+
F[$] = function() {
|
|
8132
8030
|
D && D.apply(void 0, arguments);
|
|
8133
8031
|
var P = o.props.rules;
|
|
8134
8032
|
P && P.length && O({
|
|
8135
8033
|
type: "validateField",
|
|
8136
8034
|
namePath: m,
|
|
8137
|
-
triggerName:
|
|
8035
|
+
triggerName: $
|
|
8138
8036
|
});
|
|
8139
8037
|
};
|
|
8140
8038
|
}), F;
|
|
@@ -8182,7 +8080,7 @@ Field.defaultProps = {
|
|
|
8182
8080
|
};
|
|
8183
8081
|
function WrapperField(e) {
|
|
8184
8082
|
var t = e.name, n = _objectWithoutProperties(e, ["name"]), r = React.useContext(Context), o = t !== void 0 ? getNamePath(t) : void 0, a = "keep";
|
|
8185
|
-
return n.isListField || (a = "_".concat((o || []).join("_"))),
|
|
8083
|
+
return n.isListField || (a = "_".concat((o || []).join("_"))), process.env.NODE_ENV !== "production" && warningOnce(n.preserve !== !1 || !n.isListField, "`preserve` should not apply on Form.List fields."), /* @__PURE__ */ jsx(Field, {
|
|
8186
8084
|
name: o,
|
|
8187
8085
|
...n,
|
|
8188
8086
|
fieldContext: r
|
|
@@ -8217,7 +8115,7 @@ var List = function(t) {
|
|
|
8217
8115
|
}, C = {
|
|
8218
8116
|
add: function(_, b) {
|
|
8219
8117
|
var T = y();
|
|
8220
|
-
b >= 0 && b <= T.length ? (u.keys = [].concat(_toConsumableArray(u.keys.slice(0, b)), [u.id], _toConsumableArray(u.keys.slice(b))), I([].concat(_toConsumableArray(T.slice(0, b)), [_], _toConsumableArray(T.slice(b))))) : (
|
|
8118
|
+
b >= 0 && b <= T.length ? (u.keys = [].concat(_toConsumableArray(u.keys.slice(0, b)), [u.id], _toConsumableArray(u.keys.slice(b))), I([].concat(_toConsumableArray(T.slice(0, b)), [_], _toConsumableArray(T.slice(b))))) : (process.env.NODE_ENV !== "production" && (b < 0 || b > T.length) && warningOnce(!1, "The second parameter of the add function should be a valid positive number."), u.keys = [].concat(_toConsumableArray(u.keys), [u.id]), I([].concat(_toConsumableArray(T), [_]))), u.id += 1;
|
|
8221
8119
|
},
|
|
8222
8120
|
remove: function(_) {
|
|
8223
8121
|
var b = y(), T = new Set(Array.isArray(_) ? _ : [_]);
|
|
@@ -8234,7 +8132,7 @@ var List = function(t) {
|
|
|
8234
8132
|
}
|
|
8235
8133
|
}
|
|
8236
8134
|
}, w = x || [];
|
|
8237
|
-
return Array.isArray(w) || (w = [],
|
|
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, _) {
|
|
8238
8136
|
var b = u.keys[_];
|
|
8239
8137
|
return b === void 0 && (u.keys[_] = u.id, b = u.keys[_], u.id += 1), {
|
|
8240
8138
|
name: _,
|
|
@@ -8380,7 +8278,7 @@ var NameMap = /* @__PURE__ */ function() {
|
|
|
8380
8278
|
}, this.setPreserve = function(r) {
|
|
8381
8279
|
n.preserve = r;
|
|
8382
8280
|
}, this.timeoutId = null, this.warningUnhooked = function() {
|
|
8383
|
-
|
|
8281
|
+
process.env.NODE_ENV !== "production" && !n.timeoutId && typeof window < "u" && (n.timeoutId = window.setTimeout(function() {
|
|
8384
8282
|
n.timeoutId = null, n.formHooked || warningOnce(!1, "Instance created by `useForm` is not connected to any Form element. Forget to pass `form` prop?");
|
|
8385
8283
|
}));
|
|
8386
8284
|
}, this.getFieldEntities = function() {
|
|
@@ -8809,7 +8707,7 @@ var FormContext = /* @__PURE__ */ React.createContext({
|
|
|
8809
8707
|
children: a
|
|
8810
8708
|
});
|
|
8811
8709
|
}, Form$2 = function(t, n) {
|
|
8812
|
-
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, g = t.onValuesChange, v = t.onFieldsChange, x = t.onFinish, I = 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], _ = O.getInternalHooks(HOOK_MARK), b = _.useSubscribe, T = _.setInitialValues, F = _.setCallbacks, k = _.setValidateMessages,
|
|
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, g = t.onValuesChange, v = t.onFieldsChange, x = t.onFinish, I = 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], _ = O.getInternalHooks(HOOK_MARK), b = _.useSubscribe, T = _.setInitialValues, F = _.setCallbacks, k = _.setValidateMessages, $ = _.setPreserve;
|
|
8813
8711
|
React.useImperativeHandle(n, function() {
|
|
8814
8712
|
return O;
|
|
8815
8713
|
}), React.useEffect(function() {
|
|
@@ -8829,7 +8727,7 @@ var FormContext = /* @__PURE__ */ React.createContext({
|
|
|
8829
8727
|
y.triggerFormFinish(r, G), x && x(G);
|
|
8830
8728
|
},
|
|
8831
8729
|
onFinishFailed: I
|
|
8832
|
-
}),
|
|
8730
|
+
}), $(c);
|
|
8833
8731
|
var D = React.useRef(null);
|
|
8834
8732
|
T(o, !D.current), D.current || (D.current = !0);
|
|
8835
8733
|
var P = l, M = typeof l == "function";
|
|
@@ -8842,12 +8740,12 @@ var FormContext = /* @__PURE__ */ React.createContext({
|
|
|
8842
8740
|
React.useEffect(function() {
|
|
8843
8741
|
isSimilar(j.current || [], a || []) || O.setFields(a || []), j.current = a;
|
|
8844
8742
|
}, [a, O]);
|
|
8845
|
-
var
|
|
8743
|
+
var L = React.useMemo(function() {
|
|
8846
8744
|
return _objectSpread2$1(_objectSpread2$1({}, O), {}, {
|
|
8847
8745
|
validateTrigger: p
|
|
8848
8746
|
});
|
|
8849
8747
|
}, [O, p]), H = /* @__PURE__ */ jsx(Context.Provider, {
|
|
8850
|
-
value:
|
|
8748
|
+
value: L,
|
|
8851
8749
|
children: P
|
|
8852
8750
|
});
|
|
8853
8751
|
return d === !1 ? H : /* @__PURE__ */ jsx(d, {
|
|
@@ -8895,10 +8793,10 @@ function requireWarning() {
|
|
|
8895
8793
|
}), warning$2.warning = t, warning$2.note = n, warning$2.resetWarned = r, warning$2.call = o, warning$2.warningOnce = a, warning$2.noteOnce = s, warning$2.default = void 0;
|
|
8896
8794
|
var e = {};
|
|
8897
8795
|
function t(l, u) {
|
|
8898
|
-
|
|
8796
|
+
process.env.NODE_ENV !== "production" && !l && console !== void 0 && console.error("Warning: ".concat(u));
|
|
8899
8797
|
}
|
|
8900
8798
|
function n(l, u) {
|
|
8901
|
-
|
|
8799
|
+
process.env.NODE_ENV !== "production" && !l && console !== void 0 && console.warn("Note: ".concat(u));
|
|
8902
8800
|
}
|
|
8903
8801
|
function r() {
|
|
8904
8802
|
e = {};
|
|
@@ -9411,20 +9309,20 @@ function requireEmpty() {
|
|
|
9411
9309
|
I.indexOf(y[C]) < 0 && Object.prototype.propertyIsEnumerable.call(x, y[C]) && (m[y[C]] = x[y[C]]);
|
|
9412
9310
|
return m;
|
|
9413
9311
|
}, h = /* @__PURE__ */ a.createElement(u.default, null), p = /* @__PURE__ */ a.createElement(d.default, null), g = function(I) {
|
|
9414
|
-
var m = I.className, y = I.prefixCls, C = I.image, w = C === void 0 ? h : C, O = I.description, _ = I.children, b = I.imageStyle, T = f(I, ["className", "prefixCls", "image", "description", "children", "imageStyle"]), F = a.useContext(c.ConfigContext), k = F.getPrefixCls,
|
|
9312
|
+
var m = I.className, y = I.prefixCls, C = I.image, w = C === void 0 ? h : C, O = I.description, _ = I.children, b = I.imageStyle, T = f(I, ["className", "prefixCls", "image", "description", "children", "imageStyle"]), F = a.useContext(c.ConfigContext), k = F.getPrefixCls, $ = F.direction;
|
|
9415
9313
|
return /* @__PURE__ */ a.createElement(l.default, {
|
|
9416
9314
|
componentName: "Empty"
|
|
9417
9315
|
}, function(D) {
|
|
9418
|
-
var P, M = k("empty", y), q = typeof O < "u" ? O : D.description, j = typeof q == "string" ? q : "empty",
|
|
9419
|
-
return typeof w == "string" ?
|
|
9316
|
+
var P, M = k("empty", y), q = typeof O < "u" ? O : D.description, j = typeof q == "string" ? q : "empty", L = null;
|
|
9317
|
+
return typeof w == "string" ? L = /* @__PURE__ */ a.createElement("img", {
|
|
9420
9318
|
alt: j,
|
|
9421
9319
|
src: w
|
|
9422
|
-
}) :
|
|
9423
|
-
className: (0, s.default)(M, (P = {}, (0, o.default)(P, "".concat(M, "-normal"), w === p), (0, o.default)(P, "".concat(M, "-rtl"),
|
|
9320
|
+
}) : L = w, /* @__PURE__ */ a.createElement("div", (0, r.default)({
|
|
9321
|
+
className: (0, s.default)(M, (P = {}, (0, o.default)(P, "".concat(M, "-normal"), w === p), (0, o.default)(P, "".concat(M, "-rtl"), $ === "rtl"), P), m)
|
|
9424
9322
|
}, T), /* @__PURE__ */ a.createElement("div", {
|
|
9425
9323
|
className: "".concat(M, "-image"),
|
|
9426
9324
|
style: b
|
|
9427
|
-
},
|
|
9325
|
+
}, L), q && /* @__PURE__ */ a.createElement("div", {
|
|
9428
9326
|
className: "".concat(M, "-description")
|
|
9429
9327
|
}, q), _ && /* @__PURE__ */ a.createElement("div", {
|
|
9430
9328
|
className: "".concat(M, "-footer")
|
|
@@ -9659,7 +9557,7 @@ const useStepQueue = function(e, t) {
|
|
|
9659
9557
|
}, []), [a, o];
|
|
9660
9558
|
};
|
|
9661
9559
|
function useStatus(e, t, n, r) {
|
|
9662
|
-
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, g = r.onLeavePrepare, v = r.onAppearStart, x = r.onEnterStart, I = r.onLeaveStart, m = r.onAppearActive, y = r.onEnterActive, C = r.onLeaveActive, w = r.onAppearEnd, O = r.onEnterEnd, _ = r.onLeaveEnd, b = r.onVisibleChanged, T = useMountStatus(), F = _slicedToArray(T, 2), k = F[0],
|
|
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, g = r.onLeavePrepare, v = r.onAppearStart, x = r.onEnterStart, I = r.onLeaveStart, m = r.onAppearActive, y = r.onEnterActive, C = r.onLeaveActive, w = r.onAppearEnd, O = r.onEnterEnd, _ = r.onLeaveEnd, b = r.onVisibleChanged, T = useMountStatus(), F = _slicedToArray(T, 2), k = F[0], $ = F[1], D = useMountStatus(STATUS_NONE), P = _slicedToArray(D, 2), M = P[0], q = P[1], j = useMountStatus(null), L = _slicedToArray(j, 2), H = L[0], K = L[1], G = useRef(!1), z = useRef(null), V = useRef(!1), U = useRef(null);
|
|
9663
9561
|
function Y() {
|
|
9664
9562
|
var le = n();
|
|
9665
9563
|
return le || U.current;
|
|
@@ -9700,7 +9598,7 @@ function useStatus(e, t, n, r) {
|
|
|
9700
9598
|
}, d))), DoStep;
|
|
9701
9599
|
}), W = _slicedToArray(S, 2), X = W[0], ne = W[1], ee = isActive(ne);
|
|
9702
9600
|
B.current = ee, useIsomorphicLayoutEffect(function() {
|
|
9703
|
-
if (
|
|
9601
|
+
if ($(t), !!e) {
|
|
9704
9602
|
var le = G.current;
|
|
9705
9603
|
G.current = !0;
|
|
9706
9604
|
var ue;
|
|
@@ -9752,22 +9650,22 @@ function genCSSMotion(e) {
|
|
|
9752
9650
|
T.current = a;
|
|
9753
9651
|
var F = React.useCallback(function(M) {
|
|
9754
9652
|
x.current = M, fillRef(T.current, M);
|
|
9755
|
-
}, []), k,
|
|
9653
|
+
}, []), k, $ = _objectSpread2$1(_objectSpread2$1({}, g), {}, {
|
|
9756
9654
|
visible: c
|
|
9757
9655
|
});
|
|
9758
9656
|
if (!f)
|
|
9759
9657
|
k = null;
|
|
9760
9658
|
else if (w === STATUS_NONE || !n(o))
|
|
9761
|
-
b ? k = f(_objectSpread2$1({},
|
|
9659
|
+
b ? k = f(_objectSpread2$1({}, $), F) : u ? d ? k = f(_objectSpread2$1(_objectSpread2$1({}, $), {}, {
|
|
9762
9660
|
style: {
|
|
9763
9661
|
display: "none"
|
|
9764
9662
|
}
|
|
9765
|
-
}), F) : k = null : k = f(_objectSpread2$1(_objectSpread2$1({},
|
|
9663
|
+
}), F) : k = null : k = f(_objectSpread2$1(_objectSpread2$1({}, $), {}, {
|
|
9766
9664
|
className: p
|
|
9767
9665
|
}), F);
|
|
9768
9666
|
else {
|
|
9769
9667
|
var D, P;
|
|
9770
|
-
O === STEP_PREPARE ? P = "prepare" : isActive(O) ? P = "active" : O === STEP_START && (P = "start"), k = f(_objectSpread2$1(_objectSpread2$1({},
|
|
9668
|
+
O === STEP_PREPARE ? P = "prepare" : isActive(O) ? P = "active" : O === STEP_START && (P = "start"), k = f(_objectSpread2$1(_objectSpread2$1({}, $), {}, {
|
|
9771
9669
|
className: classnamesExports(getTransitionName$1(h, w), (D = {}, _defineProperty$1(D, getTransitionName$1(h, "".concat(w, "-").concat(P)), P), _defineProperty$1(D, h, typeof h == "string"), D)),
|
|
9772
9670
|
style: _
|
|
9773
9671
|
}), F);
|
|
@@ -10129,7 +10027,7 @@ Notification.newInstance = function(t, n) {
|
|
|
10129
10027
|
}
|
|
10130
10028
|
}));
|
|
10131
10029
|
}
|
|
10132
|
-
if (
|
|
10030
|
+
if (process.env.NODE_ENV === "test" && t.TEST_RENDER) {
|
|
10133
10031
|
t.TEST_RENDER(/* @__PURE__ */ jsx(Notification, {
|
|
10134
10032
|
...Object.assign({}, a, {
|
|
10135
10033
|
ref: u
|
|
@@ -10360,8 +10258,8 @@ function requireNotice() {
|
|
|
10360
10258
|
}, {
|
|
10361
10259
|
key: "render",
|
|
10362
10260
|
value: function() {
|
|
10363
|
-
var v = this, x = this.props, I = x.prefixCls, m = x.className, y = x.closable, C = x.closeIcon, w = x.style, O = x.onClick, _ = x.children, b = x.holder, T = "".concat(I, "-notice"), F = Object.keys(this.props).reduce(function(
|
|
10364
|
-
return (D.substr(0, 5) === "data-" || D.substr(0, 5) === "aria-" || D === "role") && (
|
|
10261
|
+
var v = this, x = this.props, I = x.prefixCls, m = x.className, y = x.closable, C = x.closeIcon, w = x.style, O = x.onClick, _ = x.children, b = x.holder, T = "".concat(I, "-notice"), F = Object.keys(this.props).reduce(function($, D) {
|
|
10262
|
+
return (D.substr(0, 5) === "data-" || D.substr(0, 5) === "aria-" || D === "role") && ($[D] = v.props[D]), $;
|
|
10365
10263
|
}, {}), k = c.createElement("div", Object.assign({
|
|
10366
10264
|
className: (0, u.default)(T, m, (0, n.default)({}, "".concat(T, "-closable"), y)),
|
|
10367
10265
|
style: w,
|
|
@@ -10445,12 +10343,12 @@ function requireUseMessage() {
|
|
|
10445
10343
|
onClose: P
|
|
10446
10344
|
}), q));
|
|
10447
10345
|
});
|
|
10448
|
-
}),
|
|
10346
|
+
}), $ = function() {
|
|
10449
10347
|
v && v.removeNotice(F);
|
|
10450
10348
|
};
|
|
10451
|
-
return
|
|
10349
|
+
return $.then = function(D, P) {
|
|
10452
10350
|
return k.then(D, P);
|
|
10453
|
-
},
|
|
10351
|
+
}, $.promise = k, $;
|
|
10454
10352
|
}
|
|
10455
10353
|
var O = a.useRef({});
|
|
10456
10354
|
return O.current.open = w, ["success", "info", "warning", "error", "loading"].forEach(function(_) {
|
|
@@ -10476,11 +10374,11 @@ function requireMessage() {
|
|
|
10476
10374
|
function _() {
|
|
10477
10375
|
return I++;
|
|
10478
10376
|
}
|
|
10479
|
-
function b(
|
|
10480
|
-
|
|
10377
|
+
function b(L) {
|
|
10378
|
+
L.top !== void 0 && (x = L.top, g = 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, g = null), L.maxCount !== void 0 && (w = L.maxCount, g = null), L.rtl !== void 0 && (O = L.rtl);
|
|
10481
10379
|
}
|
|
10482
|
-
function T(
|
|
10483
|
-
var K =
|
|
10380
|
+
function T(L, H) {
|
|
10381
|
+
var K = L.prefixCls || m;
|
|
10484
10382
|
if (g) {
|
|
10485
10383
|
H({
|
|
10486
10384
|
prefixCls: K,
|
|
@@ -10517,28 +10415,28 @@ function requireMessage() {
|
|
|
10517
10415
|
warning: u.default,
|
|
10518
10416
|
loading: l.default
|
|
10519
10417
|
};
|
|
10520
|
-
function k(
|
|
10521
|
-
var K, G =
|
|
10418
|
+
function k(L, H) {
|
|
10419
|
+
var K, G = L.duration !== void 0 ? L.duration : v, z = F[L.type], V = (0, s.default)("".concat(H, "-custom-content"), (K = {}, (0, o.default)(K, "".concat(H, "-").concat(L.type), L.type), (0, o.default)(K, "".concat(H, "-rtl"), O === !0), K));
|
|
10522
10420
|
return {
|
|
10523
|
-
key:
|
|
10421
|
+
key: L.key,
|
|
10524
10422
|
duration: G,
|
|
10525
|
-
style:
|
|
10526
|
-
className:
|
|
10423
|
+
style: L.style || {},
|
|
10424
|
+
className: L.className,
|
|
10527
10425
|
content: /* @__PURE__ */ a.createElement("div", {
|
|
10528
10426
|
className: V
|
|
10529
|
-
},
|
|
10530
|
-
onClose:
|
|
10531
|
-
onClick:
|
|
10427
|
+
}, L.icon || z && /* @__PURE__ */ a.createElement(z, null), /* @__PURE__ */ a.createElement("span", null, L.content)),
|
|
10428
|
+
onClose: L.onClose,
|
|
10429
|
+
onClick: L.onClick
|
|
10532
10430
|
};
|
|
10533
10431
|
}
|
|
10534
|
-
function L
|
|
10535
|
-
var H =
|
|
10432
|
+
function $(L) {
|
|
10433
|
+
var H = L.key || I++, K = new Promise(function(z) {
|
|
10536
10434
|
var V = function() {
|
|
10537
|
-
return typeof
|
|
10435
|
+
return typeof L.onClose == "function" && L.onClose(), z(!0);
|
|
10538
10436
|
};
|
|
10539
|
-
T(
|
|
10437
|
+
T(L, function(U) {
|
|
10540
10438
|
var Y = U.prefixCls, B = U.instance;
|
|
10541
|
-
B.notice(k((0, r.default)((0, r.default)({},
|
|
10439
|
+
B.notice(k((0, r.default)((0, r.default)({}, L), {
|
|
10542
10440
|
key: H,
|
|
10543
10441
|
onClose: V
|
|
10544
10442
|
}), Y));
|
|
@@ -10550,11 +10448,11 @@ function requireMessage() {
|
|
|
10550
10448
|
return K.then(z, V);
|
|
10551
10449
|
}, G.promise = K, G;
|
|
10552
10450
|
}
|
|
10553
|
-
function D(
|
|
10554
|
-
return Object.prototype.toString.call(
|
|
10451
|
+
function D(L) {
|
|
10452
|
+
return Object.prototype.toString.call(L) === "[object Object]" && !!L.content;
|
|
10555
10453
|
}
|
|
10556
10454
|
var P = {
|
|
10557
|
-
open:
|
|
10455
|
+
open: $,
|
|
10558
10456
|
config: b,
|
|
10559
10457
|
destroy: function(H) {
|
|
10560
10458
|
if (g)
|
|
@@ -10567,11 +10465,11 @@ function requireMessage() {
|
|
|
10567
10465
|
}
|
|
10568
10466
|
}
|
|
10569
10467
|
};
|
|
10570
|
-
function M(
|
|
10571
|
-
|
|
10572
|
-
return D(K) ?
|
|
10468
|
+
function M(L, H) {
|
|
10469
|
+
L[H] = function(K, G, z) {
|
|
10470
|
+
return D(K) ? L.open((0, r.default)((0, r.default)({}, K), {
|
|
10573
10471
|
type: H
|
|
10574
|
-
})) : (typeof G == "function" && (z = G, G = void 0),
|
|
10472
|
+
})) : (typeof G == "function" && (z = G, G = void 0), L.open({
|
|
10575
10473
|
content: K,
|
|
10576
10474
|
duration: G,
|
|
10577
10475
|
type: H,
|
|
@@ -10579,11 +10477,11 @@ function requireMessage() {
|
|
|
10579
10477
|
}));
|
|
10580
10478
|
};
|
|
10581
10479
|
}
|
|
10582
|
-
["success", "info", "warning", "error", "loading"].forEach(function(
|
|
10583
|
-
return M(P,
|
|
10480
|
+
["success", "info", "warning", "error", "loading"].forEach(function(L) {
|
|
10481
|
+
return M(P, L);
|
|
10584
10482
|
}), P.warn = P.warning, P.useMessage = (0, p.default)(T, k);
|
|
10585
10483
|
var q = function() {
|
|
10586
|
-
return
|
|
10484
|
+
return process.env.NODE_ENV === "test" ? g : null;
|
|
10587
10485
|
};
|
|
10588
10486
|
e.getInstance = q;
|
|
10589
10487
|
var j = P;
|
|
@@ -10843,7 +10741,7 @@ function requireNotification() {
|
|
|
10843
10741
|
Object.defineProperty(e, "__esModule", {
|
|
10844
10742
|
value: !0
|
|
10845
10743
|
}), e.default = e.getInstance = void 0;
|
|
10846
|
-
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()), g = n(requireUseNotification()), v = function(
|
|
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()), g = n(requireUseNotification()), v = function(L, H, K, G) {
|
|
10847
10745
|
function z(V) {
|
|
10848
10746
|
return V instanceof K ? V : new K(function(U) {
|
|
10849
10747
|
U(V);
|
|
@@ -10867,16 +10765,16 @@ function requireNotification() {
|
|
|
10867
10765
|
function A(N) {
|
|
10868
10766
|
N.done ? V(N.value) : z(N.value).then(Y, B);
|
|
10869
10767
|
}
|
|
10870
|
-
A((G = G.apply(
|
|
10768
|
+
A((G = G.apply(L, H || [])).next());
|
|
10871
10769
|
});
|
|
10872
10770
|
}, x = {}, I = 4.5, m = 24, y = 24, C = "ant-notification", w = "topRight", O, _, b = !1;
|
|
10873
|
-
function T(
|
|
10874
|
-
var H =
|
|
10875
|
-
Y !== void 0 && (C = Y), H !== void 0 && (I = H), K !== void 0 ? w = K :
|
|
10771
|
+
function T(L) {
|
|
10772
|
+
var H = L.duration, K = L.placement, G = L.bottom, z = L.top, V = L.getContainer, U = L.closeIcon, Y = L.prefixCls;
|
|
10773
|
+
Y !== void 0 && (C = Y), H !== void 0 && (I = H), K !== void 0 ? w = K : L.rtl && (w = "topLeft"), G !== void 0 && (y = G), z !== void 0 && (m = z), V !== void 0 && (O = V), U !== void 0 && (_ = U), L.rtl !== void 0 && (b = L.rtl);
|
|
10876
10774
|
}
|
|
10877
|
-
function F(
|
|
10775
|
+
function F(L) {
|
|
10878
10776
|
var H = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : m, K = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : y, G;
|
|
10879
|
-
switch (
|
|
10777
|
+
switch (L) {
|
|
10880
10778
|
case "topLeft":
|
|
10881
10779
|
G = {
|
|
10882
10780
|
left: 0,
|
|
@@ -10908,8 +10806,8 @@ function requireNotification() {
|
|
|
10908
10806
|
}
|
|
10909
10807
|
return G;
|
|
10910
10808
|
}
|
|
10911
|
-
function k(
|
|
10912
|
-
var K =
|
|
10809
|
+
function k(L, H) {
|
|
10810
|
+
var K = L.placement, G = K === void 0 ? w : K, z = L.top, V = L.bottom, U = L.getContainer, Y = U === void 0 ? O : U, B = L.closeIcon, A = B === void 0 ? _ : B, N = L.prefixCls || C, Z = "".concat(N, "-notice"), Q = "".concat(N, "-").concat(G), E = x[Q];
|
|
10913
10811
|
if (E) {
|
|
10914
10812
|
Promise.resolve(E).then(function(X) {
|
|
10915
10813
|
H({
|
|
@@ -10939,20 +10837,20 @@ function requireNotification() {
|
|
|
10939
10837
|
});
|
|
10940
10838
|
});
|
|
10941
10839
|
}
|
|
10942
|
-
var
|
|
10840
|
+
var $ = {
|
|
10943
10841
|
success: d.default,
|
|
10944
10842
|
info: p.default,
|
|
10945
10843
|
error: f.default,
|
|
10946
10844
|
warning: h.default
|
|
10947
10845
|
};
|
|
10948
|
-
function D(
|
|
10949
|
-
var K =
|
|
10950
|
-
|
|
10846
|
+
function D(L, H) {
|
|
10847
|
+
var K = L.duration === void 0 ? I : L.duration, G = null;
|
|
10848
|
+
L.icon ? G = /* @__PURE__ */ s.createElement("span", {
|
|
10951
10849
|
className: "".concat(H, "-icon")
|
|
10952
|
-
},
|
|
10953
|
-
className: "".concat(H, "-icon ").concat(H, "-icon-").concat(
|
|
10850
|
+
}, L.icon) : L.type && (G = /* @__PURE__ */ s.createElement($[L.type] || null, {
|
|
10851
|
+
className: "".concat(H, "-icon ").concat(H, "-icon-").concat(L.type)
|
|
10954
10852
|
}));
|
|
10955
|
-
var z =
|
|
10853
|
+
var z = !L.description && G ? /* @__PURE__ */ s.createElement("span", {
|
|
10956
10854
|
className: "".concat(H, "-message-single-line-auto-margin")
|
|
10957
10855
|
}) : null;
|
|
10958
10856
|
return {
|
|
@@ -10961,24 +10859,24 @@ function requireNotification() {
|
|
|
10961
10859
|
role: "alert"
|
|
10962
10860
|
}, G, /* @__PURE__ */ s.createElement("div", {
|
|
10963
10861
|
className: "".concat(H, "-message")
|
|
10964
|
-
}, z,
|
|
10862
|
+
}, z, L.message), /* @__PURE__ */ s.createElement("div", {
|
|
10965
10863
|
className: "".concat(H, "-description")
|
|
10966
|
-
},
|
|
10864
|
+
}, L.description), L.btn ? /* @__PURE__ */ s.createElement("span", {
|
|
10967
10865
|
className: "".concat(H, "-btn")
|
|
10968
|
-
},
|
|
10866
|
+
}, L.btn) : null),
|
|
10969
10867
|
duration: K,
|
|
10970
10868
|
closable: !0,
|
|
10971
|
-
onClose:
|
|
10972
|
-
onClick:
|
|
10973
|
-
key:
|
|
10974
|
-
style:
|
|
10975
|
-
className:
|
|
10869
|
+
onClose: L.onClose,
|
|
10870
|
+
onClick: L.onClick,
|
|
10871
|
+
key: L.key,
|
|
10872
|
+
style: L.style || {},
|
|
10873
|
+
className: L.className
|
|
10976
10874
|
};
|
|
10977
10875
|
}
|
|
10978
|
-
function P(
|
|
10979
|
-
k(
|
|
10876
|
+
function P(L) {
|
|
10877
|
+
k(L, function(H) {
|
|
10980
10878
|
var K = H.prefixCls, G = H.instance;
|
|
10981
|
-
G.notice(D(
|
|
10879
|
+
G.notice(D(L, K));
|
|
10982
10880
|
});
|
|
10983
10881
|
}
|
|
10984
10882
|
var M = {
|
|
@@ -10999,10 +10897,10 @@ function requireNotification() {
|
|
|
10999
10897
|
});
|
|
11000
10898
|
}
|
|
11001
10899
|
};
|
|
11002
|
-
["success", "info", "warning", "error"].forEach(function(
|
|
11003
|
-
M[
|
|
10900
|
+
["success", "info", "warning", "error"].forEach(function(L) {
|
|
10901
|
+
M[L] = function(H) {
|
|
11004
10902
|
return M.open((0, o.default)((0, o.default)({}, H), {
|
|
11005
|
-
type:
|
|
10903
|
+
type: L
|
|
11006
10904
|
}));
|
|
11007
10905
|
};
|
|
11008
10906
|
}), M.warn = M.warning, M.useNotification = (0, g.default)(k, D);
|
|
@@ -11012,7 +10910,7 @@ function requireNotification() {
|
|
|
11012
10910
|
for (; ; )
|
|
11013
10911
|
switch (z.prev = z.next) {
|
|
11014
10912
|
case 0:
|
|
11015
|
-
return z.abrupt("return",
|
|
10913
|
+
return z.abrupt("return", process.env.NODE_ENV === "test" ? x[H] : null);
|
|
11016
10914
|
case 1:
|
|
11017
10915
|
case "end":
|
|
11018
10916
|
return z.stop();
|
|
@@ -11045,7 +10943,7 @@ function requireConfigProvider() {
|
|
|
11045
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()), g = ["getTargetContainer", "getPopupContainer", "rootPrefixCls", "getPrefixCls", "renderEmpty", "csp", "autoInsertSpaceInButton", "locale", "pageHeader"];
|
|
11046
10944
|
e.configConsumerProps = g;
|
|
11047
10945
|
var v = ["getTargetContainer", "getPopupContainer", "renderEmpty", "pageHeader", "input", "form"], x = function(C) {
|
|
11048
|
-
var w = C.children, O = C.csp, _ = C.autoInsertSpaceInButton, b = C.form, T = C.locale, F = C.componentSize, k = C.direction,
|
|
10946
|
+
var w = C.children, O = C.csp, _ = C.autoInsertSpaceInButton, b = C.form, T = C.locale, F = C.componentSize, k = C.direction, $ = C.space, D = C.virtual, P = C.dropdownMatchSelectWidth, M = C.legacyLocale, q = C.parentContext, j = C.iconPrefixCls, L = o.useCallback(function(U, Y) {
|
|
11049
10947
|
var B = C.prefixCls;
|
|
11050
10948
|
if (Y)
|
|
11051
10949
|
return Y;
|
|
@@ -11056,10 +10954,10 @@ function requireConfigProvider() {
|
|
|
11056
10954
|
autoInsertSpaceInButton: _,
|
|
11057
10955
|
locale: T || M,
|
|
11058
10956
|
direction: k,
|
|
11059
|
-
space:
|
|
10957
|
+
space: $,
|
|
11060
10958
|
virtual: D,
|
|
11061
10959
|
dropdownMatchSelectWidth: P,
|
|
11062
|
-
getPrefixCls:
|
|
10960
|
+
getPrefixCls: L
|
|
11063
10961
|
});
|
|
11064
10962
|
v.forEach(function(U) {
|
|
11065
10963
|
var Y = C[U];
|
|
@@ -11161,28 +11059,28 @@ function requireInput() {
|
|
|
11161
11059
|
var _ = (0, c.default)(b);
|
|
11162
11060
|
function b(T) {
|
|
11163
11061
|
var F;
|
|
11164
|
-
(0, o.default)(this, b), F = _.call(this, T), F.direction = "ltr", F.focus = function(
|
|
11165
|
-
y(F.input,
|
|
11166
|
-
}, F.saveClearableInput = function(
|
|
11167
|
-
F.clearableInput =
|
|
11168
|
-
}, F.saveInput = function(
|
|
11169
|
-
F.input =
|
|
11170
|
-
}, F.onFocus = function(
|
|
11062
|
+
(0, o.default)(this, b), F = _.call(this, T), F.direction = "ltr", F.focus = function($) {
|
|
11063
|
+
y(F.input, $);
|
|
11064
|
+
}, F.saveClearableInput = function($) {
|
|
11065
|
+
F.clearableInput = $;
|
|
11066
|
+
}, F.saveInput = function($) {
|
|
11067
|
+
F.input = $;
|
|
11068
|
+
}, F.onFocus = function($) {
|
|
11171
11069
|
var D = F.props.onFocus;
|
|
11172
11070
|
F.setState({
|
|
11173
11071
|
focused: !0
|
|
11174
|
-
}, F.clearPasswordValueAttribute), D && D(
|
|
11175
|
-
}, F.onBlur = function(
|
|
11072
|
+
}, F.clearPasswordValueAttribute), D && D($);
|
|
11073
|
+
}, F.onBlur = function($) {
|
|
11176
11074
|
var D = F.props.onBlur;
|
|
11177
11075
|
F.setState({
|
|
11178
11076
|
focused: !1
|
|
11179
|
-
}, F.clearPasswordValueAttribute), D && D(
|
|
11180
|
-
}, F.handleReset = function(
|
|
11077
|
+
}, F.clearPasswordValueAttribute), D && D($);
|
|
11078
|
+
}, F.handleReset = function($) {
|
|
11181
11079
|
F.setValue("", function() {
|
|
11182
11080
|
F.focus();
|
|
11183
|
-
}), I(F.input,
|
|
11184
|
-
}, F.renderInput = function(
|
|
11185
|
-
var M = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {}, q = F.props, j = q.className,
|
|
11081
|
+
}), I(F.input, $, F.props.onChange);
|
|
11082
|
+
}, F.renderInput = function($, D, P) {
|
|
11083
|
+
var M = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {}, q = F.props, j = q.className, L = q.addonBefore, H = q.addonAfter, K = q.size, G = q.disabled, z = (0, f.default)(F.props, [
|
|
11186
11084
|
"prefixCls",
|
|
11187
11085
|
"onPressEnter",
|
|
11188
11086
|
"addonBefore",
|
|
@@ -11202,20 +11100,20 @@ function requireInput() {
|
|
|
11202
11100
|
onFocus: F.onFocus,
|
|
11203
11101
|
onBlur: F.onBlur,
|
|
11204
11102
|
onKeyDown: F.handleKeyDown,
|
|
11205
|
-
className: (0, d.default)(m(
|
|
11103
|
+
className: (0, d.default)(m($, P, K || D, G, F.direction), (0, l.default)({}, j, j && !L && !H)),
|
|
11206
11104
|
ref: F.saveInput
|
|
11207
11105
|
}));
|
|
11208
11106
|
}, F.clearPasswordValueAttribute = function() {
|
|
11209
11107
|
F.removePasswordTimeout = setTimeout(function() {
|
|
11210
11108
|
F.input && F.input.getAttribute("type") === "password" && F.input.hasAttribute("value") && F.input.removeAttribute("value");
|
|
11211
11109
|
});
|
|
11212
|
-
}, F.handleChange = function(
|
|
11213
|
-
F.setValue(
|
|
11214
|
-
}, F.handleKeyDown = function(
|
|
11110
|
+
}, F.handleChange = function($) {
|
|
11111
|
+
F.setValue($.target.value, F.clearPasswordValueAttribute), I(F.input, $, F.props.onChange);
|
|
11112
|
+
}, F.handleKeyDown = function($) {
|
|
11215
11113
|
var D = F.props, P = D.onPressEnter, M = D.onKeyDown;
|
|
11216
|
-
|
|
11217
|
-
}, F.renderComponent = function(
|
|
11218
|
-
var D =
|
|
11114
|
+
$.keyCode === 13 && P && P($), M && M($);
|
|
11115
|
+
}, F.renderComponent = function($) {
|
|
11116
|
+
var D = $.getPrefixCls, P = $.direction, M = $.input, q = F.state, j = q.value, L = q.focused, H = F.props, K = H.prefixCls, G = H.bordered, z = G === void 0 ? !0 : G, V = D("input", K);
|
|
11219
11117
|
return F.direction = P, /* @__PURE__ */ u.createElement(g.default.Consumer, null, function(U) {
|
|
11220
11118
|
return /* @__PURE__ */ u.createElement(h.default, (0, r.default)({
|
|
11221
11119
|
size: U
|
|
@@ -11227,7 +11125,7 @@ function requireInput() {
|
|
|
11227
11125
|
handleReset: F.handleReset,
|
|
11228
11126
|
ref: F.saveClearableInput,
|
|
11229
11127
|
direction: P,
|
|
11230
|
-
focused:
|
|
11128
|
+
focused: L,
|
|
11231
11129
|
triggerFocus: F.focus,
|
|
11232
11130
|
bordered: z
|
|
11233
11131
|
}));
|
|
@@ -11266,8 +11164,8 @@ function requireInput() {
|
|
|
11266
11164
|
}
|
|
11267
11165
|
}, {
|
|
11268
11166
|
key: "setSelectionRange",
|
|
11269
|
-
value: function(F, k,
|
|
11270
|
-
this.input.setSelectionRange(F, k,
|
|
11167
|
+
value: function(F, k, $) {
|
|
11168
|
+
this.input.setSelectionRange(F, k, $);
|
|
11271
11169
|
}
|
|
11272
11170
|
}, {
|
|
11273
11171
|
key: "select",
|
|
@@ -11289,10 +11187,10 @@ function requireInput() {
|
|
|
11289
11187
|
}], [{
|
|
11290
11188
|
key: "getDerivedStateFromProps",
|
|
11291
11189
|
value: function(F, k) {
|
|
11292
|
-
var
|
|
11190
|
+
var $ = k.prevValue, D = {
|
|
11293
11191
|
prevValue: F.value
|
|
11294
11192
|
};
|
|
11295
|
-
return (F.value !== void 0 ||
|
|
11193
|
+
return (F.value !== void 0 || $ !== F.value) && (D.value = F.value), D;
|
|
11296
11194
|
}
|
|
11297
11195
|
}]), b;
|
|
11298
11196
|
}(u.Component);
|
|
@@ -11352,10 +11250,10 @@ function requireClearableLabeledInput() {
|
|
|
11352
11250
|
return (0, a.default)(w, [{
|
|
11353
11251
|
key: "renderClearIcon",
|
|
11354
11252
|
value: function(_) {
|
|
11355
|
-
var b = this.props, T = b.allowClear, F = b.value, k = b.disabled,
|
|
11253
|
+
var b = this.props, T = b.allowClear, F = b.value, k = b.disabled, $ = b.readOnly, D = b.handleReset;
|
|
11356
11254
|
if (!T)
|
|
11357
11255
|
return null;
|
|
11358
|
-
var P = !k &&
|
|
11256
|
+
var P = !k && !$ && F, M = "".concat(_, "-clear-icon");
|
|
11359
11257
|
return /* @__PURE__ */ l.createElement(d.default, {
|
|
11360
11258
|
onClick: D,
|
|
11361
11259
|
className: (0, u.default)((0, r.default)({}, "".concat(M, "-hidden"), !P), M),
|
|
@@ -11373,14 +11271,14 @@ function requireClearableLabeledInput() {
|
|
|
11373
11271
|
}, {
|
|
11374
11272
|
key: "renderLabeledIcon",
|
|
11375
11273
|
value: function(_, b) {
|
|
11376
|
-
var T, F = this.props, k = F.focused,
|
|
11274
|
+
var T, F = this.props, k = F.focused, $ = F.value, D = F.prefix, P = F.className, M = F.size, q = F.suffix, j = F.disabled, L = F.allowClear, H = F.direction, K = F.style, G = F.readOnly, z = F.bordered, V = this.renderSuffix(_);
|
|
11377
11275
|
if (!v(this.props))
|
|
11378
11276
|
return (0, p.cloneElement)(b, {
|
|
11379
|
-
value:
|
|
11277
|
+
value: $
|
|
11380
11278
|
});
|
|
11381
11279
|
var U = D ? /* @__PURE__ */ l.createElement("span", {
|
|
11382
11280
|
className: "".concat(_, "-prefix")
|
|
11383
|
-
}, D) : null, Y = (0, u.default)("".concat(_, "-affix-wrapper"), (T = {}, (0, r.default)(T, "".concat(_, "-affix-wrapper-focused"), k), (0, r.default)(T, "".concat(_, "-affix-wrapper-disabled"), j), (0, r.default)(T, "".concat(_, "-affix-wrapper-sm"), M === "small"), (0, r.default)(T, "".concat(_, "-affix-wrapper-lg"), M === "large"), (0, r.default)(T, "".concat(_, "-affix-wrapper-input-with-clear-btn"), q &&
|
|
11281
|
+
}, D) : null, Y = (0, u.default)("".concat(_, "-affix-wrapper"), (T = {}, (0, r.default)(T, "".concat(_, "-affix-wrapper-focused"), k), (0, r.default)(T, "".concat(_, "-affix-wrapper-disabled"), j), (0, r.default)(T, "".concat(_, "-affix-wrapper-sm"), M === "small"), (0, r.default)(T, "".concat(_, "-affix-wrapper-lg"), M === "large"), (0, r.default)(T, "".concat(_, "-affix-wrapper-input-with-clear-btn"), q && L && $), (0, r.default)(T, "".concat(_, "-affix-wrapper-rtl"), H === "rtl"), (0, r.default)(T, "".concat(_, "-affix-wrapper-readonly"), G), (0, r.default)(T, "".concat(_, "-affix-wrapper-borderless"), !z), (0, r.default)(T, "".concat(P), !x(this.props) && P), T));
|
|
11384
11282
|
return /* @__PURE__ */ l.createElement("span", {
|
|
11385
11283
|
ref: this.containerRef,
|
|
11386
11284
|
className: Y,
|
|
@@ -11388,21 +11286,21 @@ function requireClearableLabeledInput() {
|
|
|
11388
11286
|
onMouseUp: this.onInputMouseUp
|
|
11389
11287
|
}, U, (0, p.cloneElement)(b, {
|
|
11390
11288
|
style: null,
|
|
11391
|
-
value:
|
|
11289
|
+
value: $,
|
|
11392
11290
|
className: (0, h.getInputClassName)(_, z, M, j)
|
|
11393
11291
|
}), V);
|
|
11394
11292
|
}
|
|
11395
11293
|
}, {
|
|
11396
11294
|
key: "renderInputWithLabel",
|
|
11397
11295
|
value: function(_, b) {
|
|
11398
|
-
var T, F = this.props, k = F.addonBefore,
|
|
11296
|
+
var T, F = this.props, k = F.addonBefore, $ = F.addonAfter, D = F.style, P = F.size, M = F.className, q = F.direction;
|
|
11399
11297
|
if (!x(this.props))
|
|
11400
11298
|
return b;
|
|
11401
|
-
var j = "".concat(_, "-group"),
|
|
11402
|
-
className:
|
|
11403
|
-
}, k) : null, K =
|
|
11404
|
-
className:
|
|
11405
|
-
},
|
|
11299
|
+
var j = "".concat(_, "-group"), L = "".concat(j, "-addon"), H = k ? /* @__PURE__ */ l.createElement("span", {
|
|
11300
|
+
className: L
|
|
11301
|
+
}, k) : null, K = $ ? /* @__PURE__ */ l.createElement("span", {
|
|
11302
|
+
className: L
|
|
11303
|
+
}, $) : null, G = (0, u.default)("".concat(_, "-wrapper"), j, (0, r.default)({}, "".concat(j, "-rtl"), q === "rtl")), z = (0, u.default)("".concat(_, "-group-wrapper"), (T = {}, (0, r.default)(T, "".concat(_, "-group-wrapper-sm"), P === "small"), (0, r.default)(T, "".concat(_, "-group-wrapper-lg"), P === "large"), (0, r.default)(T, "".concat(_, "-group-wrapper-rtl"), q === "rtl"), T), M);
|
|
11406
11304
|
return /* @__PURE__ */ l.createElement("span", {
|
|
11407
11305
|
className: z,
|
|
11408
11306
|
style: D
|
|
@@ -11415,8 +11313,8 @@ function requireClearableLabeledInput() {
|
|
|
11415
11313
|
}, {
|
|
11416
11314
|
key: "renderTextAreaWithClearIcon",
|
|
11417
11315
|
value: function(_, b) {
|
|
11418
|
-
var T, F = this.props, k = F.value,
|
|
11419
|
-
if (
|
|
11316
|
+
var T, F = this.props, k = F.value, $ = F.allowClear, D = F.className, P = F.style, M = F.direction, q = F.bordered;
|
|
11317
|
+
if (!$)
|
|
11420
11318
|
return (0, p.cloneElement)(b, {
|
|
11421
11319
|
value: k
|
|
11422
11320
|
});
|
|
@@ -11454,7 +11352,7 @@ function requireClearableLabeledInput() {
|
|
|
11454
11352
|
w.indexOf(_[b]) < 0 && Object.prototype.propertyIsEnumerable.call(C, _[b]) && (O[_[b]] = C[_[b]]);
|
|
11455
11353
|
return O;
|
|
11456
11354
|
}, m = /* @__PURE__ */ l.forwardRef(function(C, w) {
|
|
11457
|
-
var O, _ = C.prefixCls, b = C.bordered, T = b === void 0 ? !0 : b, F = C.showCount, k = F === void 0 ? !1 : F,
|
|
11355
|
+
var O, _ = C.prefixCls, b = C.bordered, T = b === void 0 ? !0 : b, F = C.showCount, k = F === void 0 ? !1 : F, $ = C.maxLength, D = C.className, P = C.style, M = C.size, q = I(C, ["prefixCls", "bordered", "showCount", "maxLength", "className", "style", "size"]), j = l.useContext(g.ConfigContext), L = j.getPrefixCls, H = j.direction, K = l.useContext(x.default), G = l.useRef(null), z = l.useRef(null), V = (0, h.default)(q.defaultValue, {
|
|
11458
11356
|
value: q.value
|
|
11459
11357
|
}), U = (0, c.default)(V, 2), Y = U[0], B = U[1], A = l.useRef(q.value);
|
|
11460
11358
|
l.useEffect(function() {
|
|
@@ -11469,7 +11367,7 @@ function requireClearableLabeledInput() {
|
|
|
11469
11367
|
var se;
|
|
11470
11368
|
(se = G.current) === null || se === void 0 || se.focus();
|
|
11471
11369
|
}), (0, v.resolveOnChange)(G.current, ue, q.onChange);
|
|
11472
|
-
}, E =
|
|
11370
|
+
}, E = L("input", _);
|
|
11473
11371
|
l.useImperativeHandle(w, function() {
|
|
11474
11372
|
var le;
|
|
11475
11373
|
return {
|
|
@@ -11485,14 +11383,14 @@ function requireClearableLabeledInput() {
|
|
|
11485
11383
|
};
|
|
11486
11384
|
});
|
|
11487
11385
|
var S = /* @__PURE__ */ l.createElement(u.default, (0, a.default)({}, (0, d.default)(q, ["allowClear"]), {
|
|
11488
|
-
maxLength:
|
|
11386
|
+
maxLength: $,
|
|
11489
11387
|
className: (0, f.default)((O = {}, (0, s.default)(O, "".concat(E, "-borderless"), !T), (0, s.default)(O, D, D && !k), (0, s.default)(O, "".concat(E, "-sm"), K === "small" || M === "small"), (0, s.default)(O, "".concat(E, "-lg"), K === "large" || M === "large"), O)),
|
|
11490
11388
|
style: k ? void 0 : P,
|
|
11491
11389
|
prefixCls: E,
|
|
11492
11390
|
onChange: Z,
|
|
11493
11391
|
ref: G
|
|
11494
|
-
})), W = (0, v.fixControlledValue)(Y), X = Number(
|
|
11495
|
-
W = X ? (0, o.default)(W).slice(0,
|
|
11392
|
+
})), W = (0, v.fixControlledValue)(Y), X = Number($) > 0;
|
|
11393
|
+
W = X ? (0, o.default)(W).slice(0, $).join("") : W;
|
|
11496
11394
|
var ne = /* @__PURE__ */ l.createElement(p.default, (0, a.default)({}, q, {
|
|
11497
11395
|
prefixCls: E,
|
|
11498
11396
|
direction: H,
|
|
@@ -11504,11 +11402,11 @@ function requireClearableLabeledInput() {
|
|
|
11504
11402
|
bordered: T
|
|
11505
11403
|
}));
|
|
11506
11404
|
if (k) {
|
|
11507
|
-
var ee = Math.min(W.length,
|
|
11405
|
+
var ee = Math.min(W.length, $ != null ? $ : 1 / 0), oe = "";
|
|
11508
11406
|
return (0, r.default)(k) === "object" ? oe = k.formatter({
|
|
11509
11407
|
count: ee,
|
|
11510
|
-
maxLength:
|
|
11511
|
-
}) : oe = "".concat(ee).concat(X ? " / ".concat(
|
|
11408
|
+
maxLength: $
|
|
11409
|
+
}) : oe = "".concat(ee).concat(X ? " / ".concat($) : ""), /* @__PURE__ */ l.createElement("div", {
|
|
11512
11410
|
className: (0, f.default)("".concat(E, "-textarea"), (0, s.default)({}, "".concat(E, "-textarea-rtl"), H === "rtl"), "".concat(E, "-textarea-show-count"), D),
|
|
11513
11411
|
style: P,
|
|
11514
11412
|
"data-count": oe
|
|
@@ -12376,8 +12274,8 @@ function requireBuffer_list() {
|
|
|
12376
12274
|
}
|
|
12377
12275
|
function destroy(e, t) {
|
|
12378
12276
|
var n = this, r = this._readableState && this._readableState.destroyed, o = this._writableState && this._writableState.destroyed;
|
|
12379
|
-
return r || o ? (t ? t(e) : e && (this._writableState ? this._writableState.errorEmitted || (this._writableState.errorEmitted = !0,
|
|
12380
|
-
!t && a ? n._writableState ? n._writableState.errorEmitted ?
|
|
12277
|
+
return r || o ? (t ? t(e) : e && (this._writableState ? this._writableState.errorEmitted || (this._writableState.errorEmitted = !0, process.nextTick(emitErrorNT, this, e)) : process.nextTick(emitErrorNT, this, e)), this) : (this._readableState && (this._readableState.destroyed = !0), this._writableState && (this._writableState.destroyed = !0), this._destroy(e || null, function(a) {
|
|
12278
|
+
!t && a ? n._writableState ? n._writableState.errorEmitted ? process.nextTick(emitCloseNT, n) : (n._writableState.errorEmitted = !0, process.nextTick(emitErrorAndCloseNT, n, a)) : process.nextTick(emitErrorAndCloseNT, n, a) : t ? (process.nextTick(emitCloseNT, n), t(a)) : process.nextTick(emitCloseNT, n);
|
|
12381
12279
|
}), this);
|
|
12382
12280
|
}
|
|
12383
12281
|
function emitErrorAndCloseNT(e, t) {
|
|
@@ -12597,15 +12495,15 @@ function require_stream_writable() {
|
|
|
12597
12495
|
};
|
|
12598
12496
|
function T(B, A) {
|
|
12599
12497
|
var N = new m();
|
|
12600
|
-
C(B, N),
|
|
12498
|
+
C(B, N), process.nextTick(A, N);
|
|
12601
12499
|
}
|
|
12602
12500
|
function F(B, A, N, Z) {
|
|
12603
12501
|
var Q;
|
|
12604
|
-
return N === null ? Q = new I() : typeof N != "string" && !A.objectMode && (Q = new h("chunk", ["string", "Buffer"], N)), Q ? (C(B, Q),
|
|
12502
|
+
return N === null ? Q = new I() : typeof N != "string" && !A.objectMode && (Q = new h("chunk", ["string", "Buffer"], N)), Q ? (C(B, Q), process.nextTick(Z, Q), !1) : !0;
|
|
12605
12503
|
}
|
|
12606
12504
|
b.prototype.write = function(B, A, N) {
|
|
12607
12505
|
var Z = this._writableState, Q = !1, E = !Z.objectMode && c(B);
|
|
12608
|
-
return E && !o.isBuffer(B) && (B = s(B)), typeof A == "function" && (N = A, A = null), E ? A = "buffer" : A || (A = Z.defaultEncoding), typeof N != "function" && (N = w), Z.ending ? T(this, N) : (E || F(this, Z, B, N)) && (Z.pendingcb++, Q =
|
|
12506
|
+
return E && !o.isBuffer(B) && (B = s(B)), typeof A == "function" && (N = A, A = null), E ? A = "buffer" : A || (A = Z.defaultEncoding), typeof N != "function" && (N = w), Z.ending ? T(this, N) : (E || F(this, Z, B, N)) && (Z.pendingcb++, Q = $(this, Z, E, B, A, N)), Q;
|
|
12609
12507
|
}, b.prototype.cork = function() {
|
|
12610
12508
|
this._writableState.corked++;
|
|
12611
12509
|
}, b.prototype.uncork = function() {
|
|
@@ -12630,7 +12528,7 @@ function require_stream_writable() {
|
|
|
12630
12528
|
return this._writableState.highWaterMark;
|
|
12631
12529
|
}
|
|
12632
12530
|
});
|
|
12633
|
-
function
|
|
12531
|
+
function $(B, A, N, Z, Q, E) {
|
|
12634
12532
|
if (!N) {
|
|
12635
12533
|
var S = k(A, Z, Q);
|
|
12636
12534
|
Z !== S && (N = !0, Q = "buffer", Z = S);
|
|
@@ -12655,7 +12553,7 @@ function require_stream_writable() {
|
|
|
12655
12553
|
A.writelen = Z, A.writecb = S, A.writing = !0, A.sync = !0, A.destroyed ? A.onwrite(new x("write")) : N ? B._writev(Q, A.onwrite) : B._write(Q, E, A.onwrite), A.sync = !1;
|
|
12656
12554
|
}
|
|
12657
12555
|
function P(B, A, N, Z, Q) {
|
|
12658
|
-
--A.pendingcb, N ? (
|
|
12556
|
+
--A.pendingcb, N ? (process.nextTick(Q, Z), process.nextTick(V, B, A), B._writableState.errorEmitted = !0, C(B, Z)) : (Q(Z), B._writableState.errorEmitted = !0, C(B, Z), V(B, A));
|
|
12659
12557
|
}
|
|
12660
12558
|
function M(B) {
|
|
12661
12559
|
B.writing = !1, B.writecb = null, B.length -= B.writelen, B.writelen = 0;
|
|
@@ -12668,13 +12566,13 @@ function require_stream_writable() {
|
|
|
12668
12566
|
P(B, N, Z, A, Q);
|
|
12669
12567
|
else {
|
|
12670
12568
|
var E = K(N) || B.destroyed;
|
|
12671
|
-
!E && !N.corked && !N.bufferProcessing && N.bufferedRequest && H(B, N), Z ?
|
|
12569
|
+
!E && !N.corked && !N.bufferProcessing && N.bufferedRequest && H(B, N), Z ? process.nextTick(j, B, N, E, Q) : j(B, N, E, Q);
|
|
12672
12570
|
}
|
|
12673
12571
|
}
|
|
12674
12572
|
function j(B, A, N, Z) {
|
|
12675
|
-
N ||
|
|
12573
|
+
N || L(B, A), A.pendingcb--, Z(), V(B, A);
|
|
12676
12574
|
}
|
|
12677
|
-
function
|
|
12575
|
+
function L(B, A) {
|
|
12678
12576
|
A.length === 0 && A.needDrain && (A.needDrain = !1, B.emit("drain"));
|
|
12679
12577
|
}
|
|
12680
12578
|
function H(B, A) {
|
|
@@ -12716,7 +12614,7 @@ function require_stream_writable() {
|
|
|
12716
12614
|
});
|
|
12717
12615
|
}
|
|
12718
12616
|
function z(B, A) {
|
|
12719
|
-
!A.prefinished && !A.finalCalled && (typeof B._final == "function" && !A.destroyed ? (A.pendingcb++, A.finalCalled = !0,
|
|
12617
|
+
!A.prefinished && !A.finalCalled && (typeof B._final == "function" && !A.destroyed ? (A.pendingcb++, A.finalCalled = !0, process.nextTick(G, B, A)) : (A.prefinished = !0, B.emit("prefinish")));
|
|
12720
12618
|
}
|
|
12721
12619
|
function V(B, A) {
|
|
12722
12620
|
var N = K(A);
|
|
@@ -12727,7 +12625,7 @@ function require_stream_writable() {
|
|
|
12727
12625
|
return N;
|
|
12728
12626
|
}
|
|
12729
12627
|
function U(B, A, N) {
|
|
12730
|
-
A.ending = !0, V(B, A), N && (A.finished ?
|
|
12628
|
+
A.ending = !0, V(B, A), N && (A.finished ? process.nextTick(N) : B.once("finish", N)), A.ended = !0, B.writable = !1;
|
|
12731
12629
|
}
|
|
12732
12630
|
function Y(B, A, N) {
|
|
12733
12631
|
var Z = B.entry;
|
|
@@ -12789,7 +12687,7 @@ function require_stream_duplex() {
|
|
|
12789
12687
|
}
|
|
12790
12688
|
});
|
|
12791
12689
|
function c() {
|
|
12792
|
-
this._writableState.ended ||
|
|
12690
|
+
this._writableState.ended || process.nextTick(l, this);
|
|
12793
12691
|
}
|
|
12794
12692
|
function l(u) {
|
|
12795
12693
|
u.end();
|
|
@@ -13069,7 +12967,7 @@ function requireAsync_iterator() {
|
|
|
13069
12967
|
}
|
|
13070
12968
|
}
|
|
13071
12969
|
function h(I) {
|
|
13072
|
-
|
|
12970
|
+
process.nextTick(f, I);
|
|
13073
12971
|
}
|
|
13074
12972
|
function p(I, m) {
|
|
13075
12973
|
return function(y, C) {
|
|
@@ -13095,7 +12993,7 @@ function requireAsync_iterator() {
|
|
|
13095
12993
|
return Promise.resolve(d(void 0, !0));
|
|
13096
12994
|
if (this[u].destroyed)
|
|
13097
12995
|
return new Promise(function(_, b) {
|
|
13098
|
-
|
|
12996
|
+
process.nextTick(function() {
|
|
13099
12997
|
m[a] ? b(m[a]) : _(d(void 0, !0));
|
|
13100
12998
|
});
|
|
13101
12999
|
});
|
|
@@ -13224,7 +13122,7 @@ function require_stream_readable() {
|
|
|
13224
13122
|
ee.reading = !1, q(E, ee);
|
|
13225
13123
|
else {
|
|
13226
13124
|
var oe;
|
|
13227
|
-
if (ne || (oe =
|
|
13125
|
+
if (ne || (oe = $(ee, S)), oe)
|
|
13228
13126
|
w(E, oe);
|
|
13229
13127
|
else if (ee.objectMode || S && S.length > 0)
|
|
13230
13128
|
if (typeof S != "string" && !ee.objectMode && Object.getPrototypeOf(S) !== r.prototype && (S = a(S)), X)
|
|
@@ -13244,7 +13142,7 @@ function require_stream_readable() {
|
|
|
13244
13142
|
function k(E, S, W, X) {
|
|
13245
13143
|
S.flowing && S.length === 0 && !S.sync ? (S.awaitDrain = 0, E.emit("data", W)) : (S.length += S.objectMode ? 1 : W.length, X ? S.buffer.unshift(W) : S.buffer.push(W), S.needReadable && j(E)), H(E, S);
|
|
13246
13144
|
}
|
|
13247
|
-
function
|
|
13145
|
+
function $(E, S) {
|
|
13248
13146
|
var W;
|
|
13249
13147
|
return !s(S) && typeof S != "string" && S !== void 0 && !E.objectMode && (W = new g("chunk", ["string", "Buffer", "Uint8Array"], S)), W;
|
|
13250
13148
|
}
|
|
@@ -13283,19 +13181,19 @@ function require_stream_readable() {
|
|
|
13283
13181
|
var W = S.decoder.end();
|
|
13284
13182
|
W && W.length && (S.buffer.push(W), S.length += S.objectMode ? 1 : W.length);
|
|
13285
13183
|
}
|
|
13286
|
-
S.ended = !0, S.sync ? j(E) : (S.needReadable = !1, S.emittedReadable || (S.emittedReadable = !0,
|
|
13184
|
+
S.ended = !0, S.sync ? j(E) : (S.needReadable = !1, S.emittedReadable || (S.emittedReadable = !0, L(E)));
|
|
13287
13185
|
}
|
|
13288
13186
|
}
|
|
13289
13187
|
function j(E) {
|
|
13290
13188
|
var S = E._readableState;
|
|
13291
|
-
l("emitReadable", S.needReadable, S.emittedReadable), S.needReadable = !1, S.emittedReadable || (l("emitReadable", S.flowing), S.emittedReadable = !0,
|
|
13189
|
+
l("emitReadable", S.needReadable, S.emittedReadable), S.needReadable = !1, S.emittedReadable || (l("emitReadable", S.flowing), S.emittedReadable = !0, process.nextTick(L, E));
|
|
13292
13190
|
}
|
|
13293
|
-
function
|
|
13191
|
+
function L(E) {
|
|
13294
13192
|
var S = E._readableState;
|
|
13295
13193
|
l("emitReadable_", S.destroyed, S.length, S.ended), !S.destroyed && (S.length || S.ended) && (E.emit("readable"), S.emittedReadable = !1), S.needReadable = !S.flowing && !S.ended && S.length <= S.highWaterMark, B(E);
|
|
13296
13194
|
}
|
|
13297
13195
|
function H(E, S) {
|
|
13298
|
-
S.readingMore || (S.readingMore = !0,
|
|
13196
|
+
S.readingMore || (S.readingMore = !0, process.nextTick(K, E, S));
|
|
13299
13197
|
}
|
|
13300
13198
|
function K(E, S) {
|
|
13301
13199
|
for (; !S.reading && !S.ended && (S.length < S.highWaterMark || S.flowing && S.length === 0); ) {
|
|
@@ -13321,8 +13219,8 @@ function require_stream_readable() {
|
|
|
13321
13219
|
break;
|
|
13322
13220
|
}
|
|
13323
13221
|
X.pipesCount += 1, l("pipe count=%d opts=%j", X.pipesCount, S);
|
|
13324
|
-
var ne = (!S || S.end !== !1) && E !==
|
|
13325
|
-
X.endEmitted ?
|
|
13222
|
+
var ne = (!S || S.end !== !1) && E !== process.stdout && E !== process.stderr, ee = ne ? le : ye;
|
|
13223
|
+
X.endEmitted ? process.nextTick(ee) : W.once("end", ee), E.on("unpipe", oe);
|
|
13326
13224
|
function oe(Fe, Ce) {
|
|
13327
13225
|
l("onunpipe"), Fe === W && Ce && Ce.hasUnpiped === !1 && (Ce.hasUnpiped = !0, fe());
|
|
13328
13226
|
}
|
|
@@ -13385,13 +13283,13 @@ function require_stream_readable() {
|
|
|
13385
13283
|
return oe === -1 ? this : (S.pipes.splice(oe, 1), S.pipesCount -= 1, S.pipesCount === 1 && (S.pipes = S.pipes[0]), E.emit("unpipe", this, W), this);
|
|
13386
13284
|
}, T.prototype.on = function(E, S) {
|
|
13387
13285
|
var W = n.prototype.on.call(this, E, S), X = this._readableState;
|
|
13388
|
-
return E === "data" ? (X.readableListening = this.listenerCount("readable") > 0, X.flowing !== !1 && this.resume()) : E === "readable" && !X.endEmitted && !X.readableListening && (X.readableListening = X.needReadable = !0, X.flowing = !1, X.emittedReadable = !1, l("on readable", X.length, X.reading), X.length ? j(this) : X.reading ||
|
|
13286
|
+
return E === "data" ? (X.readableListening = this.listenerCount("readable") > 0, X.flowing !== !1 && this.resume()) : E === "readable" && !X.endEmitted && !X.readableListening && (X.readableListening = X.needReadable = !0, X.flowing = !1, X.emittedReadable = !1, l("on readable", X.length, X.reading), X.length ? j(this) : X.reading || process.nextTick(V, this)), W;
|
|
13389
13287
|
}, T.prototype.addListener = T.prototype.on, T.prototype.removeListener = function(E, S) {
|
|
13390
13288
|
var W = n.prototype.removeListener.call(this, E, S);
|
|
13391
|
-
return E === "readable" &&
|
|
13289
|
+
return E === "readable" && process.nextTick(z, this), W;
|
|
13392
13290
|
}, T.prototype.removeAllListeners = function(E) {
|
|
13393
13291
|
var S = n.prototype.removeAllListeners.apply(this, arguments);
|
|
13394
|
-
return (E === "readable" || E === void 0) &&
|
|
13292
|
+
return (E === "readable" || E === void 0) && process.nextTick(z, this), S;
|
|
13395
13293
|
};
|
|
13396
13294
|
function z(E) {
|
|
13397
13295
|
var S = E._readableState;
|
|
@@ -13405,7 +13303,7 @@ function require_stream_readable() {
|
|
|
13405
13303
|
return E.flowing || (l("resume"), E.flowing = !E.readableListening, U(this, E)), E.paused = !1, this;
|
|
13406
13304
|
};
|
|
13407
13305
|
function U(E, S) {
|
|
13408
|
-
S.resumeScheduled || (S.resumeScheduled = !0,
|
|
13306
|
+
S.resumeScheduled || (S.resumeScheduled = !0, process.nextTick(Y, E, S));
|
|
13409
13307
|
}
|
|
13410
13308
|
function Y(E, S) {
|
|
13411
13309
|
l("resume", S.reading), S.reading || E.read(0), S.resumeScheduled = !1, E.emit("resume"), B(E), S.flowing && !S.reading && E.read(0);
|
|
@@ -13477,7 +13375,7 @@ function require_stream_readable() {
|
|
|
13477
13375
|
}
|
|
13478
13376
|
function N(E) {
|
|
13479
13377
|
var S = E._readableState;
|
|
13480
|
-
l("endReadable", S.endEmitted), S.endEmitted || (S.ended = !0,
|
|
13378
|
+
l("endReadable", S.endEmitted), S.endEmitted || (S.ended = !0, process.nextTick(Z, S, E));
|
|
13481
13379
|
}
|
|
13482
13380
|
function Z(E, S) {
|
|
13483
13381
|
if (l("endReadableNT", E.endEmitted, E.length), !E.endEmitted && E.length === 0 && (E.endEmitted = !0, S.readable = !1, S.emit("end"), E.autoDestroy)) {
|
|
@@ -15584,12 +15482,12 @@ var core = fileType;
|
|
|
15584
15482
|
})(browser$1);
|
|
15585
15483
|
const FileType = browser$1.exports;
|
|
15586
15484
|
function getFilesize(e) {
|
|
15587
|
-
const n = Buffer.from(e, "base64").length / 1e3;
|
|
15485
|
+
const n = Buffer$1.from(e, "base64").length / 1e3;
|
|
15588
15486
|
return `${Math.round((n + Number.EPSILON) * 100) / 100} KB`;
|
|
15589
15487
|
}
|
|
15590
15488
|
async function getMimeType(e) {
|
|
15591
15489
|
const t = await FileType.fromBuffer(
|
|
15592
|
-
Buffer.from(e, "base64")
|
|
15490
|
+
Buffer$1.from(e, "base64")
|
|
15593
15491
|
);
|
|
15594
15492
|
return t || {
|
|
15595
15493
|
mime: "text/plain",
|
|
@@ -15865,7 +15763,7 @@ const Image = (e) => {
|
|
|
15865
15763
|
cursor: "pointer"
|
|
15866
15764
|
},
|
|
15867
15765
|
onClick: () => {
|
|
15868
|
-
p(y.find((
|
|
15766
|
+
p(y.find(($) => b.id === $.id)), f(!0);
|
|
15869
15767
|
},
|
|
15870
15768
|
children: /* @__PURE__ */ jsx("strong", {
|
|
15871
15769
|
children: (F = b.values) == null ? void 0 : F[m]
|
|
@@ -15876,7 +15774,7 @@ const Image = (e) => {
|
|
|
15876
15774
|
cursor: "pointer"
|
|
15877
15775
|
},
|
|
15878
15776
|
onClick: () => {
|
|
15879
|
-
p(y.find((
|
|
15777
|
+
p(y.find(($) => b.id === $.id)), f(!0);
|
|
15880
15778
|
},
|
|
15881
15779
|
children: (k = b.values) == null ? void 0 : k[I]
|
|
15882
15780
|
})]
|
|
@@ -16404,13 +16302,13 @@ const transformPlainMany2Ones = ({
|
|
|
16404
16302
|
searchTreeRef: T,
|
|
16405
16303
|
onNewClicked: F,
|
|
16406
16304
|
currentId: k,
|
|
16407
|
-
setCurrentId:
|
|
16305
|
+
setCurrentId: $,
|
|
16408
16306
|
setResults: D,
|
|
16409
16307
|
results: P,
|
|
16410
16308
|
currentItemIndex: M,
|
|
16411
16309
|
setCurrentItemIndex: q,
|
|
16412
16310
|
currentModel: j,
|
|
16413
|
-
toolbar:
|
|
16311
|
+
toolbar: L,
|
|
16414
16312
|
setToolbar: H,
|
|
16415
16313
|
sorter: K,
|
|
16416
16314
|
setSorter: G,
|
|
@@ -16422,7 +16320,7 @@ const transformPlainMany2Ones = ({
|
|
|
16422
16320
|
setSearchTreeNameSearch: A
|
|
16423
16321
|
} = e;
|
|
16424
16322
|
useEffect(() => {
|
|
16425
|
-
P && P.length > 0 && !M && (q == null || q(0),
|
|
16323
|
+
P && P.length > 0 && !M && (q == null || q(0), $ == null || $(P[0].id));
|
|
16426
16324
|
}, [P]);
|
|
16427
16325
|
const N = () => {
|
|
16428
16326
|
var Z;
|
|
@@ -16443,7 +16341,7 @@ const transformPlainMany2Ones = ({
|
|
|
16443
16341
|
onFormSave: N,
|
|
16444
16342
|
onNewClicked: F,
|
|
16445
16343
|
currentId: k,
|
|
16446
|
-
setCurrentId:
|
|
16344
|
+
setCurrentId: $,
|
|
16447
16345
|
currentItemIndex: M,
|
|
16448
16346
|
setCurrentItemIndex: q,
|
|
16449
16347
|
results: P,
|
|
@@ -16455,7 +16353,7 @@ const transformPlainMany2Ones = ({
|
|
|
16455
16353
|
setFormIsLoading: l,
|
|
16456
16354
|
treeIsLoading: u,
|
|
16457
16355
|
setTreeIsLoading: d,
|
|
16458
|
-
toolbar:
|
|
16356
|
+
toolbar: L,
|
|
16459
16357
|
setToolbar: H,
|
|
16460
16358
|
attachments: f,
|
|
16461
16359
|
setAttachments: h,
|
|
@@ -16527,7 +16425,7 @@ const transformPlainMany2Ones = ({
|
|
|
16527
16425
|
values: F,
|
|
16528
16426
|
context: k = {}
|
|
16529
16427
|
} = _, {
|
|
16530
|
-
context:
|
|
16428
|
+
context: $,
|
|
16531
16429
|
model: D,
|
|
16532
16430
|
datas: P = {},
|
|
16533
16431
|
report_name: M,
|
|
@@ -16539,18 +16437,18 @@ const transformPlainMany2Ones = ({
|
|
|
16539
16437
|
}
|
|
16540
16438
|
const {
|
|
16541
16439
|
ids: j,
|
|
16542
|
-
|
|
16440
|
+
...L
|
|
16543
16441
|
} = P || {};
|
|
16544
16442
|
let H = j;
|
|
16545
|
-
const K = typeof
|
|
16546
|
-
context:
|
|
16443
|
+
const K = typeof $ == "string" ? parseContext({
|
|
16444
|
+
context: $,
|
|
16547
16445
|
fields: T,
|
|
16548
16446
|
values: F
|
|
16549
|
-
}) :
|
|
16447
|
+
}) : $;
|
|
16550
16448
|
if (!H) {
|
|
16551
16449
|
const G = await ConnectionProvider.getHandler().searchAllIds({
|
|
16552
16450
|
params: [],
|
|
16553
|
-
model:
|
|
16451
|
+
model: L.model || D,
|
|
16554
16452
|
totalItems: 1,
|
|
16555
16453
|
context: {
|
|
16556
16454
|
...k,
|
|
@@ -16603,19 +16501,19 @@ const transformPlainMany2Ones = ({
|
|
|
16603
16501
|
onRefreshParentValues: k
|
|
16604
16502
|
}) {
|
|
16605
16503
|
const {
|
|
16606
|
-
type:
|
|
16504
|
+
type: $
|
|
16607
16505
|
} = _;
|
|
16608
|
-
return d.current = k,
|
|
16506
|
+
return d.current = k, $ === "ir.actions.report.xml" ? await x({
|
|
16609
16507
|
reportData: _,
|
|
16610
16508
|
fields: b,
|
|
16611
16509
|
values: T,
|
|
16612
16510
|
context: F
|
|
16613
|
-
}) :
|
|
16511
|
+
}) : $ === "ir.actions.act_window" ? await y({
|
|
16614
16512
|
actionData: _,
|
|
16615
16513
|
fields: b,
|
|
16616
16514
|
values: T,
|
|
16617
16515
|
context: F
|
|
16618
|
-
}) : (showDialog$8(`${
|
|
16516
|
+
}) : (showDialog$8(`${$} action not supported`), {});
|
|
16619
16517
|
}
|
|
16620
16518
|
async function y({
|
|
16621
16519
|
actionData: _,
|
|
@@ -16664,14 +16562,14 @@ const transformPlainMany2Ones = ({
|
|
|
16664
16562
|
}), {};
|
|
16665
16563
|
} else {
|
|
16666
16564
|
let q;
|
|
16667
|
-
const j = k.view_mode.split(","),
|
|
16565
|
+
const j = k.view_mode.split(","), L = [];
|
|
16668
16566
|
for (const H of j) {
|
|
16669
16567
|
const K = await ConnectionProvider.getHandler().getView({
|
|
16670
16568
|
model: k.res_model,
|
|
16671
16569
|
type: H,
|
|
16672
16570
|
context: D
|
|
16673
16571
|
});
|
|
16674
|
-
|
|
16572
|
+
L.push([K.view_id, H]);
|
|
16675
16573
|
}
|
|
16676
16574
|
if (k.view_id)
|
|
16677
16575
|
q = {
|
|
@@ -16679,7 +16577,7 @@ const transformPlainMany2Ones = ({
|
|
|
16679
16577
|
type: k.view_mode.split(",")[0]
|
|
16680
16578
|
};
|
|
16681
16579
|
else {
|
|
16682
|
-
const H = k.view_mode.split(",")[0], [K] =
|
|
16580
|
+
const H = k.view_mode.split(",")[0], [K] = L.find(([G, z]) => z === H);
|
|
16683
16581
|
q = {
|
|
16684
16582
|
id: K,
|
|
16685
16583
|
type: H
|
|
@@ -16690,7 +16588,7 @@ const transformPlainMany2Ones = ({
|
|
|
16690
16588
|
context: D,
|
|
16691
16589
|
domain: P,
|
|
16692
16590
|
model: k.res_model,
|
|
16693
|
-
views:
|
|
16591
|
+
views: L,
|
|
16694
16592
|
title: k.name,
|
|
16695
16593
|
initialView: q,
|
|
16696
16594
|
action_id: k.id,
|
|
@@ -16734,7 +16632,7 @@ const transformPlainMany2Ones = ({
|
|
|
16734
16632
|
context: {},
|
|
16735
16633
|
formView: void 0,
|
|
16736
16634
|
actionData: void 0
|
|
16737
|
-
}), p(!1), await new Promise((
|
|
16635
|
+
}), p(!1), await new Promise(($) => setTimeout($, 300)), v({
|
|
16738
16636
|
domain: _,
|
|
16739
16637
|
model: b,
|
|
16740
16638
|
context: F,
|
|
@@ -16818,7 +16716,7 @@ function Form(e, t) {
|
|
|
16818
16716
|
forcedValues: O = {}
|
|
16819
16717
|
} = e, {
|
|
16820
16718
|
lang: _
|
|
16821
|
-
} = useContext(LocaleContext), [b, T] = useState(!1), [F, k] = useState(), [
|
|
16719
|
+
} = useContext(LocaleContext), [b, T] = useState(!1), [F, k] = useState(), [$, D] = useState(), [P] = Form$3.useForm(), [M, q] = useState(), [j, L] = useState(), H = useContext(FormModalContext), [K, G] = useState(), [z, V] = useState(!1), U = useRef(), Y = useRef({}), B = useRef({}), A = useRef(!1), N = useRef(!1), Z = K < WIDTH_BREAKPOINT, Q = useContext(FormContext$1), {
|
|
16822
16720
|
activeId: E
|
|
16823
16721
|
} = Q || {}, S = useContext(ActionViewContext), {
|
|
16824
16722
|
setFormIsSaving: W = void 0,
|
|
@@ -16895,7 +16793,7 @@ function Form(e, t) {
|
|
|
16895
16793
|
function Ee() {
|
|
16896
16794
|
return {
|
|
16897
16795
|
...I,
|
|
16898
|
-
|
|
16796
|
+
...$ == null ? void 0 : $.context
|
|
16899
16797
|
};
|
|
16900
16798
|
}
|
|
16901
16799
|
function ie() {
|
|
@@ -16908,7 +16806,7 @@ function Form(e, t) {
|
|
|
16908
16806
|
};
|
|
16909
16807
|
}
|
|
16910
16808
|
const de = async (J) => {
|
|
16911
|
-
const te = ge() ?
|
|
16809
|
+
const te = ge() ? $ == null ? void 0 : $.context : {};
|
|
16912
16810
|
return await ConnectionProvider.getHandler().defaultGet({
|
|
16913
16811
|
model: n,
|
|
16914
16812
|
fields: J,
|
|
@@ -16949,12 +16847,12 @@ function Form(e, t) {
|
|
|
16949
16847
|
g ? J = {
|
|
16950
16848
|
arch: g.arch,
|
|
16951
16849
|
fields: g.fields
|
|
16952
|
-
} : J = await
|
|
16850
|
+
} : J = await $e();
|
|
16953
16851
|
const {
|
|
16954
16852
|
fields: te,
|
|
16955
16853
|
arch: ae
|
|
16956
16854
|
} = J;
|
|
16957
|
-
|
|
16855
|
+
L(te), q(ae), await _e({
|
|
16958
16856
|
fields: te,
|
|
16959
16857
|
arch: ae
|
|
16960
16858
|
});
|
|
@@ -16977,7 +16875,7 @@ function Form(e, t) {
|
|
|
16977
16875
|
fields: ae,
|
|
16978
16876
|
reset: !0,
|
|
16979
16877
|
isDefaultGet: Oe
|
|
16980
|
-
}),
|
|
16878
|
+
}), Le({
|
|
16981
16879
|
fields: ae,
|
|
16982
16880
|
arch: pe,
|
|
16983
16881
|
values: te
|
|
@@ -16996,7 +16894,7 @@ function Form(e, t) {
|
|
|
16996
16894
|
J(!1);
|
|
16997
16895
|
}
|
|
16998
16896
|
}) : (Ie == null || Ie(), J(!0));
|
|
16999
|
-
}),
|
|
16897
|
+
}), $e = async () => {
|
|
17000
16898
|
if (c) {
|
|
17001
16899
|
const J = await ConnectionProvider.getHandler().getActionStringForModel(n);
|
|
17002
16900
|
return (await ConnectionProvider.getHandler().getViewsForAction({
|
|
@@ -17072,7 +16970,7 @@ function Form(e, t) {
|
|
|
17072
16970
|
fields: j,
|
|
17073
16971
|
context: {
|
|
17074
16972
|
...I,
|
|
17075
|
-
|
|
16973
|
+
...$ == null ? void 0 : $.context
|
|
17076
16974
|
}
|
|
17077
16975
|
}), Y.current = re(j);
|
|
17078
16976
|
} else {
|
|
@@ -17085,7 +16983,7 @@ function Form(e, t) {
|
|
|
17085
16983
|
fields: j,
|
|
17086
16984
|
context: {
|
|
17087
16985
|
...I,
|
|
17088
|
-
|
|
16986
|
+
...$ == null ? void 0 : $.context
|
|
17089
16987
|
}
|
|
17090
16988
|
});
|
|
17091
16989
|
U.current = pe, Y.current = ae;
|
|
@@ -17118,7 +17016,7 @@ function Form(e, t) {
|
|
|
17118
17016
|
N.current = !1, W == null || W(!1), T(!1);
|
|
17119
17017
|
}
|
|
17120
17018
|
return te;
|
|
17121
|
-
},
|
|
17019
|
+
}, Le = ({
|
|
17122
17020
|
fields: J,
|
|
17123
17021
|
arch: te,
|
|
17124
17022
|
values: ae
|
|
@@ -17164,9 +17062,9 @@ function Form(e, t) {
|
|
|
17164
17062
|
showDialog$8(te);
|
|
17165
17063
|
}
|
|
17166
17064
|
}, Ge = async (J) => {
|
|
17167
|
-
const te =
|
|
17065
|
+
const te = $ == null ? void 0 : $.onChangeFields[J], ae = processValues(P.getFieldsValue(!0), j);
|
|
17168
17066
|
if (!te) {
|
|
17169
|
-
|
|
17067
|
+
Le({
|
|
17170
17068
|
fields: j,
|
|
17171
17069
|
arch: M,
|
|
17172
17070
|
values: ae
|
|
@@ -17178,7 +17076,7 @@ function Form(e, t) {
|
|
|
17178
17076
|
...ae,
|
|
17179
17077
|
context: {
|
|
17180
17078
|
...I,
|
|
17181
|
-
|
|
17079
|
+
...$ == null ? void 0 : $.context
|
|
17182
17080
|
}
|
|
17183
17081
|
},
|
|
17184
17082
|
onChangeFieldActionArgs: te.args
|
|
@@ -17194,7 +17092,7 @@ function Form(e, t) {
|
|
|
17194
17092
|
...ae,
|
|
17195
17093
|
...Oe.value
|
|
17196
17094
|
};
|
|
17197
|
-
|
|
17095
|
+
Le({
|
|
17198
17096
|
fields: j,
|
|
17199
17097
|
arch: M,
|
|
17200
17098
|
values: Pe
|
|
@@ -17218,11 +17116,11 @@ function Form(e, t) {
|
|
|
17218
17116
|
fieldsDomain: Oe.domain,
|
|
17219
17117
|
fields: j
|
|
17220
17118
|
});
|
|
17221
|
-
|
|
17119
|
+
Le({
|
|
17222
17120
|
fields: Pe,
|
|
17223
17121
|
arch: M,
|
|
17224
17122
|
values: ae
|
|
17225
|
-
}),
|
|
17123
|
+
}), L(Pe);
|
|
17226
17124
|
}
|
|
17227
17125
|
};
|
|
17228
17126
|
async function Ye({
|
|
@@ -17235,7 +17133,7 @@ function Form(e, t) {
|
|
|
17235
17133
|
payload: [ge()],
|
|
17236
17134
|
context: {
|
|
17237
17135
|
...te,
|
|
17238
|
-
|
|
17136
|
+
...$ == null ? void 0 : $.context,
|
|
17239
17137
|
...I
|
|
17240
17138
|
}
|
|
17241
17139
|
});
|
|
@@ -17295,7 +17193,7 @@ function Form(e, t) {
|
|
|
17295
17193
|
values: ye(),
|
|
17296
17194
|
context: {
|
|
17297
17195
|
...I,
|
|
17298
|
-
|
|
17196
|
+
...$ == null ? void 0 : $.context,
|
|
17299
17197
|
...te
|
|
17300
17198
|
},
|
|
17301
17199
|
onRefreshParentValues: () => {
|
|
@@ -17338,7 +17236,7 @@ function Form(e, t) {
|
|
|
17338
17236
|
showDialog$8(pe);
|
|
17339
17237
|
}
|
|
17340
17238
|
}
|
|
17341
|
-
const be = () =>
|
|
17239
|
+
const be = () => !$ && !F ? /* @__PURE__ */ jsx(Spin, {}) : !n && !g || !y ? null : /* @__PURE__ */ jsx(Fragment, {
|
|
17342
17240
|
children: /* @__PURE__ */ jsx(FormProvider$1, {
|
|
17343
17241
|
getValues: ye,
|
|
17344
17242
|
getPlainValues: Fe,
|
|
@@ -17364,8 +17262,8 @@ function Form(e, t) {
|
|
|
17364
17262
|
},
|
|
17365
17263
|
component: !1,
|
|
17366
17264
|
preserve: !1,
|
|
17367
|
-
children:
|
|
17368
|
-
container:
|
|
17265
|
+
children: $ && /* @__PURE__ */ jsx(Container, {
|
|
17266
|
+
container: $.container,
|
|
17369
17267
|
responsiveBehaviour: Z
|
|
17370
17268
|
})
|
|
17371
17269
|
})
|
|
@@ -18103,7 +18001,7 @@ const Many2oneSuffixModal = (e) => {
|
|
|
18103
18001
|
f(F);
|
|
18104
18002
|
const {
|
|
18105
18003
|
fields: k,
|
|
18106
|
-
arch:
|
|
18004
|
+
arch: $
|
|
18107
18005
|
} = F, D = (await ConnectionProvider.getHandler().readObjects({
|
|
18108
18006
|
model: n,
|
|
18109
18007
|
ids: [t],
|
|
@@ -18132,9 +18030,9 @@ const Many2oneSuffixModal = (e) => {
|
|
|
18132
18030
|
});
|
|
18133
18031
|
if (!d || !d.toolbar)
|
|
18134
18032
|
return /* @__PURE__ */ jsx(Menu, {});
|
|
18135
|
-
const F = (k = d == null ? void 0 : d.toolbar) == null ? void 0 : k.relate.map((
|
|
18136
|
-
children:
|
|
18137
|
-
},
|
|
18033
|
+
const F = (k = d == null ? void 0 : d.toolbar) == null ? void 0 : k.relate.map(($) => /* @__PURE__ */ jsx(Menu.Item, {
|
|
18034
|
+
children: $.name
|
|
18035
|
+
}, $.id));
|
|
18138
18036
|
return /* @__PURE__ */ jsx(Menu, {
|
|
18139
18037
|
onClick: w,
|
|
18140
18038
|
children: [/* @__PURE__ */ jsx(Menu.Item, {
|
|
@@ -18161,7 +18059,7 @@ const Many2oneSuffixModal = (e) => {
|
|
|
18161
18059
|
else if (F.key === "print")
|
|
18162
18060
|
c(!0);
|
|
18163
18061
|
else {
|
|
18164
|
-
const k = d.toolbar.relate.find((
|
|
18062
|
+
const k = d.toolbar.relate.find(($) => $.id === parseInt(F.key));
|
|
18165
18063
|
if (!k)
|
|
18166
18064
|
return;
|
|
18167
18065
|
x({
|
|
@@ -18397,7 +18295,7 @@ function Tree(e) {
|
|
|
18397
18295
|
const M = getTableItems(O.current, a);
|
|
18398
18296
|
m(M);
|
|
18399
18297
|
}, [a]);
|
|
18400
|
-
const b = (t - 1) * n + 1, T = b - 1 + I.length, F =
|
|
18298
|
+
const b = (t - 1) * n + 1, T = b - 1 + I.length, F = r ? r === 0 ? _("no_results") : _("summary").replace("{from}", b == null ? void 0 : b.toString()).replace("{to}", T == null ? void 0 : T.toString()).replace("{total}", r == null ? void 0 : r.toString()) : null, k = () => !u || o.isExpandable || c ? null : r ? /* @__PURE__ */ jsxs(Row, {
|
|
18401
18299
|
align: "bottom",
|
|
18402
18300
|
className: "pb-4",
|
|
18403
18301
|
children: [/* @__PURE__ */ jsx(Col, {
|
|
@@ -18414,8 +18312,8 @@ function Tree(e) {
|
|
|
18414
18312
|
className: "text-right",
|
|
18415
18313
|
children: F
|
|
18416
18314
|
})]
|
|
18417
|
-
});
|
|
18418
|
-
function
|
|
18315
|
+
}) : /* @__PURE__ */ jsx(Spin, {});
|
|
18316
|
+
function $() {
|
|
18419
18317
|
var H;
|
|
18420
18318
|
const q = O.current.columns.filter((K) => K.sum !== void 0).map((K) => ({
|
|
18421
18319
|
label: K.sum,
|
|
@@ -18423,9 +18321,9 @@ function Tree(e) {
|
|
|
18423
18321
|
}));
|
|
18424
18322
|
if (!q || q.length === 0)
|
|
18425
18323
|
return null;
|
|
18426
|
-
let j = [],
|
|
18324
|
+
let j = [], L = ((H = d == null ? void 0 : d.selectedRowKeys) == null ? void 0 : H.length) > 0 ? I.filter((K) => d == null ? void 0 : d.selectedRowKeys.includes(K.id)) : I;
|
|
18427
18325
|
return q.forEach((K) => {
|
|
18428
|
-
const G =
|
|
18326
|
+
const G = L.reduce((z, V) => V[K.field] && !isNaN(V[K.field]) ? z + V[K.field] : z, 0);
|
|
18429
18327
|
j.push(`${K.label}: ${Math.round(G * 100) / 100}`);
|
|
18430
18328
|
}), /* @__PURE__ */ jsx("div", {
|
|
18431
18329
|
className: "p-1 pb-0 pl-2 mt-2 bg-gray-50",
|
|
@@ -18466,7 +18364,7 @@ function Tree(e) {
|
|
|
18466
18364
|
onFetchChildrenForRecord: v,
|
|
18467
18365
|
childField: x
|
|
18468
18366
|
} : void 0
|
|
18469
|
-
}),
|
|
18367
|
+
}), $()]
|
|
18470
18368
|
});
|
|
18471
18369
|
}
|
|
18472
18370
|
const DEFAULT_SEARCH_LIMIT$1 = 80;
|
|
@@ -18484,7 +18382,7 @@ function SearchTree(e, t) {
|
|
|
18484
18382
|
rootTree: f = !1,
|
|
18485
18383
|
parentContext: h = {},
|
|
18486
18384
|
onChangeSelectedRowKeys: p
|
|
18487
|
-
} = e, [g, v] = useState(!1), [x, I] = useState(!1), m = useRef(!1), y = useRef(80), [C, w] = useState(), [O, _] = useState(), [b, T] = useState(), [F, k] = useState(1), [
|
|
18385
|
+
} = e, [g, v] = useState(!1), [x, I] = useState(!1), m = useRef(!1), y = useRef(80), [C, w] = useState(), [O, _] = useState(), [b, T] = useState(), [F, k] = useState(1), [$, D] = useState(0), [P, M] = useState(DEFAULT_SEARCH_LIMIT$1), [q, j] = useState(), L = useRef([]), [H, K] = useState(), [G, z] = useState([]), [V, U] = useState(void 0), [Y, B] = useState(!1), [A, N] = useState(), [Z, Q] = useState(), [E, S] = useState(!1), W = useRef([]), [X, ne] = useState(200), ee = useRef([]), oe = useRef(), {
|
|
18488
18386
|
height: le
|
|
18489
18387
|
} = useWindowDimensions(), ue = useContext(ActionViewContext), {
|
|
18490
18388
|
setResults: se = void 0,
|
|
@@ -18557,13 +18455,13 @@ function SearchTree(e, t) {
|
|
|
18557
18455
|
return ce.forEach((be) => {
|
|
18558
18456
|
Array.isArray(be) && be[0] ? ve[be[0]] = !0 : ve[be] = !0;
|
|
18559
18457
|
}), Object.keys(ve);
|
|
18560
|
-
},
|
|
18458
|
+
}, $e = (ce, ve) => {
|
|
18561
18459
|
const be = ce, ke = Me(ce);
|
|
18562
18460
|
return ve.forEach((J) => {
|
|
18563
18461
|
Array.isArray(J) && J[0] ? ke.includes(J[0]) || be.push(J) : ke.includes(J) || be.push(J);
|
|
18564
18462
|
}), be;
|
|
18565
18463
|
}, De = async () => {
|
|
18566
|
-
const ce = W.current.length > 0 ? W.current : u, ve =
|
|
18464
|
+
const ce = W.current.length > 0 ? W.current : u, ve = $e(L.current, ce), {
|
|
18567
18465
|
colors: be
|
|
18568
18466
|
} = getTree(O), {
|
|
18569
18467
|
totalItems: ke,
|
|
@@ -18572,7 +18470,7 @@ function SearchTree(e, t) {
|
|
|
18572
18470
|
} = await ConnectionProvider.getHandler().searchForTree({
|
|
18573
18471
|
params: ve,
|
|
18574
18472
|
limit: P,
|
|
18575
|
-
offset:
|
|
18473
|
+
offset: $,
|
|
18576
18474
|
model: C,
|
|
18577
18475
|
fields: O.field_parent ? {
|
|
18578
18476
|
...O.fields,
|
|
@@ -18583,7 +18481,7 @@ function SearchTree(e, t) {
|
|
|
18583
18481
|
colors: be
|
|
18584
18482
|
}
|
|
18585
18483
|
});
|
|
18586
|
-
|
|
18484
|
+
U(getColorMap(te)), ee.current = [...J];
|
|
18587
18485
|
const ae = Ee !== void 0 ? sortResults({
|
|
18588
18486
|
resultsToSort: J,
|
|
18589
18487
|
sorter: Ee,
|
|
@@ -18592,7 +18490,9 @@ function SearchTree(e, t) {
|
|
|
18592
18490
|
...b.fields
|
|
18593
18491
|
}
|
|
18594
18492
|
}) : [...ee.current];
|
|
18595
|
-
if (
|
|
18493
|
+
if (ke.then((pe) => {
|
|
18494
|
+
K(pe), de == null || de(pe);
|
|
18495
|
+
}), Re(ae), Te && ae.length > 0) {
|
|
18596
18496
|
const pe = ae.findIndex((Oe) => Ie === Oe.id);
|
|
18597
18497
|
pe === -1 ? fe == null || fe(0) : fe == null || fe(pe);
|
|
18598
18498
|
} else
|
|
@@ -18620,11 +18520,11 @@ function SearchTree(e, t) {
|
|
|
18620
18520
|
}
|
|
18621
18521
|
useEffect(() => {
|
|
18622
18522
|
!x || d && (m.current = !1, Ne());
|
|
18623
|
-
}, [F, P,
|
|
18523
|
+
}, [F, P, $, x, d, c]);
|
|
18624
18524
|
const Ue = async (ce) => {
|
|
18625
18525
|
I(!1), v(!0), Q(void 0), re == null || re(!0);
|
|
18626
18526
|
try {
|
|
18627
|
-
ce === "action" ? await Be() : await
|
|
18527
|
+
ce === "action" ? await Be() : await Le(), I(!0);
|
|
18628
18528
|
} catch (ve) {
|
|
18629
18529
|
Q(ve);
|
|
18630
18530
|
} finally {
|
|
@@ -18636,7 +18536,7 @@ function SearchTree(e, t) {
|
|
|
18636
18536
|
context: h
|
|
18637
18537
|
});
|
|
18638
18538
|
W.current = ce.domain, T(ce.views.get("form")), _(ce.views.get("tree")), w(ce.model), j(ce.limit), M(ce.limit);
|
|
18639
|
-
},
|
|
18539
|
+
}, Le = async () => {
|
|
18640
18540
|
w(r);
|
|
18641
18541
|
let ce = o;
|
|
18642
18542
|
o || (ce = await ConnectionProvider.getHandler().getView({
|
|
@@ -18655,13 +18555,13 @@ function SearchTree(e, t) {
|
|
|
18655
18555
|
n ? Ue("action") : r && Ue("model");
|
|
18656
18556
|
}, [n, r]);
|
|
18657
18557
|
const qe = () => {
|
|
18658
|
-
E || (he == null || he(void 0),
|
|
18558
|
+
E || (he == null || he(void 0), L.current = [], ye == null || ye([]), N(void 0), D(0), k(1), M(q || DEFAULT_SEARCH_LIMIT$1));
|
|
18659
18559
|
}, We = ({
|
|
18660
18560
|
params: ce,
|
|
18661
18561
|
limit: ve,
|
|
18662
18562
|
offset: be
|
|
18663
18563
|
}) => {
|
|
18664
|
-
E || (
|
|
18564
|
+
E || (L.current = ce, he == null || he(void 0), we == null || we([]), ye == null || ye(ce), Ce == null || Ce(!1), B(!0), N(void 0), k(1), ve && M(ve), be && D(be), Ne());
|
|
18665
18565
|
}, ze = (ce) => {
|
|
18666
18566
|
y.current = ce;
|
|
18667
18567
|
}, Ge = async (ce) => {
|
|
@@ -18732,7 +18632,7 @@ function SearchTree(e, t) {
|
|
|
18732
18632
|
searchFields: mergeSearchFields([b.search_fields, O.search_fields]),
|
|
18733
18633
|
onClear: qe,
|
|
18734
18634
|
limit: P,
|
|
18735
|
-
offset:
|
|
18635
|
+
offset: $,
|
|
18736
18636
|
isSearching: Y,
|
|
18737
18637
|
onSubmit: We,
|
|
18738
18638
|
onLimitChange: ze
|
|
@@ -18926,20 +18826,20 @@ const SearchTree$1 = forwardRef(SearchTree), SearchModal = (e) => {
|
|
|
18926
18826
|
getValues: T,
|
|
18927
18827
|
getFields: F,
|
|
18928
18828
|
getContext: k,
|
|
18929
|
-
setOriginalValue:
|
|
18829
|
+
setOriginalValue: $,
|
|
18930
18830
|
elementHasLostFocus: D
|
|
18931
|
-
} = _ || {}, P = useRef([]), [M, q] = useState([]), j = t && t[0],
|
|
18831
|
+
} = _ || {}, P = useRef([]), [M, q] = useState([]), j = t && t[0], L = t && t[1] || "";
|
|
18932
18832
|
useEffect(() => {
|
|
18933
18833
|
!Array.isArray(t) && !isNaN(t) && V(t);
|
|
18934
18834
|
}, [t]), useEffect(() => {
|
|
18935
|
-
j &&
|
|
18835
|
+
j && L.length === 0 ? V(j) : j && L.length > 0 ? w(L) : !j && !L && w(O.current || "");
|
|
18936
18836
|
}, [t]);
|
|
18937
18837
|
const H = (A) => {
|
|
18938
18838
|
n == null || n(A), D == null || D();
|
|
18939
18839
|
}, K = (A) => {
|
|
18940
18840
|
O.current = A.target.value, H([void 0, ""]);
|
|
18941
18841
|
}, G = async () => {
|
|
18942
|
-
if (!v && C !==
|
|
18842
|
+
if (!v && C !== L) {
|
|
18943
18843
|
if (await new Promise((A) => setTimeout(A, 100)), y.current) {
|
|
18944
18844
|
H([void 0, ""]);
|
|
18945
18845
|
return;
|
|
@@ -18992,7 +18892,7 @@ const SearchTree$1 = forwardRef(SearchTree), SearchModal = (e) => {
|
|
|
18992
18892
|
...c
|
|
18993
18893
|
}
|
|
18994
18894
|
});
|
|
18995
|
-
H([A, Z[0][1]]), N &&
|
|
18895
|
+
H([A, Z[0][1]]), N && $(r.id, [A, Z[0][1]]);
|
|
18996
18896
|
} catch (Z) {
|
|
18997
18897
|
showDialog$3(Z);
|
|
18998
18898
|
} finally {
|
|
@@ -19041,7 +18941,7 @@ const SearchTree$1 = forwardRef(SearchTree), SearchModal = (e) => {
|
|
|
19041
18941
|
flex: "32px",
|
|
19042
18942
|
children: /* @__PURE__ */ jsx(Button$1, {
|
|
19043
18943
|
icon: /* @__PURE__ */ jsx(FolderOpenOutlined, {}),
|
|
19044
|
-
disabled: j === void 0 ||
|
|
18944
|
+
disabled: j === void 0 || L === "" || C === void 0,
|
|
19045
18945
|
onClick: () => {
|
|
19046
18946
|
g(!0);
|
|
19047
18947
|
},
|
|
@@ -19053,7 +18953,7 @@ const SearchTree$1 = forwardRef(SearchTree), SearchModal = (e) => {
|
|
|
19053
18953
|
icon: v ? /* @__PURE__ */ jsx(LoadingOutlined$3, {}) : /* @__PURE__ */ jsx(SearchOutlined, {}),
|
|
19054
18954
|
disabled: s || v,
|
|
19055
18955
|
onClick: () => {
|
|
19056
|
-
y.current = !0, z(
|
|
18956
|
+
y.current = !0, z(L);
|
|
19057
18957
|
},
|
|
19058
18958
|
tabIndex: -1
|
|
19059
18959
|
})
|
|
@@ -20336,10 +20236,10 @@ var Align = function e(t, n) {
|
|
|
20336
20236
|
var v = useBuffer(function() {
|
|
20337
20237
|
var O = g.current, _ = O.disabled, b = O.target, T = O.onAlign;
|
|
20338
20238
|
if (!_ && b) {
|
|
20339
|
-
var F = h.current, k,
|
|
20340
|
-
f.current.element =
|
|
20239
|
+
var F = h.current, k, $ = getElement(b), D = getPoint(b);
|
|
20240
|
+
f.current.element = $, f.current.point = D;
|
|
20341
20241
|
var P = document, M = P.activeElement;
|
|
20342
|
-
return
|
|
20242
|
+
return $ && isVisible($) ? k = alignElement(F, $, s) : D && (k = alignPoint(F, D, s)), restoreFocus(M, F), T && k && T(F, k), !0;
|
|
20343
20243
|
}
|
|
20344
20244
|
return !1;
|
|
20345
20245
|
}, d), x = _slicedToArray(v, 2), I = x[0], m = x[1], y = React__default.useRef({
|
|
@@ -20443,11 +20343,11 @@ const useVisibleStatus = function(e, t) {
|
|
|
20443
20343
|
return [s, a];
|
|
20444
20344
|
};
|
|
20445
20345
|
var PopupInner = /* @__PURE__ */ React.forwardRef(function(e, t) {
|
|
20446
|
-
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, g = e.onAlign, v = e.onMouseEnter, x = e.onMouseLeave, I = e.onMouseDown, m = e.onTouchStart, y = useRef(), C = useRef(), w = useState(), O = _slicedToArray(w, 2), _ = O[0], b = O[1], T = useStretchStyle(l), F = _slicedToArray(T, 2), k = F[0],
|
|
20346
|
+
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, g = e.onAlign, v = e.onMouseEnter, x = e.onMouseLeave, I = e.onMouseDown, m = e.onTouchStart, y = useRef(), C = useRef(), w = useState(), O = _slicedToArray(w, 2), _ = O[0], b = O[1], T = useStretchStyle(l), F = _slicedToArray(T, 2), k = F[0], $ = F[1];
|
|
20447
20347
|
function D() {
|
|
20448
|
-
l &&
|
|
20348
|
+
l && $(h());
|
|
20449
20349
|
}
|
|
20450
|
-
var P = useVisibleStatus(n, D), M = _slicedToArray(P, 2), q = M[0], j = M[1],
|
|
20350
|
+
var P = useVisibleStatus(n, D), M = _slicedToArray(P, 2), q = M[0], j = M[1], L = useRef();
|
|
20451
20351
|
function H() {
|
|
20452
20352
|
return f || h;
|
|
20453
20353
|
}
|
|
@@ -20462,7 +20362,7 @@ var PopupInner = /* @__PURE__ */ React.forwardRef(function(e, t) {
|
|
|
20462
20362
|
K();
|
|
20463
20363
|
}) : j(function() {
|
|
20464
20364
|
var Q;
|
|
20465
|
-
(Q =
|
|
20365
|
+
(Q = L.current) === null || Q === void 0 || Q.call(L);
|
|
20466
20366
|
}), g == null || g(A, N);
|
|
20467
20367
|
}
|
|
20468
20368
|
}
|
|
@@ -20475,7 +20375,7 @@ var PopupInner = /* @__PURE__ */ React.forwardRef(function(e, t) {
|
|
|
20475
20375
|
});
|
|
20476
20376
|
function V() {
|
|
20477
20377
|
return new Promise(function(A) {
|
|
20478
|
-
|
|
20378
|
+
L.current = A;
|
|
20479
20379
|
});
|
|
20480
20380
|
}
|
|
20481
20381
|
React.useEffect(function() {
|
|
@@ -20666,12 +20566,12 @@ function generateTrigger(e) {
|
|
|
20666
20566
|
var u = [], d = s.props, f = d.popupPlacement, h = d.builtinPlacements, p = d.prefixCls, g = d.alignPoint, v = d.getPopupClassNameFromAlign;
|
|
20667
20567
|
return f && h && u.push(getAlignPopupClassName(h, p, l, g)), v && u.push(v(l)), u.join(" ");
|
|
20668
20568
|
}, s.getComponent = function() {
|
|
20669
|
-
var l = s.props, u = l.prefixCls, d = l.destroyPopupOnHide, f = l.popupClassName, h = l.onPopupAlign, p = l.popupMotion, g = l.popupAnimation, v = l.popupTransitionName, x = l.popupStyle, I = l.mask, m = l.maskAnimation, y = l.maskTransitionName, C = l.maskMotion, w = l.zIndex, O = l.popup, _ = l.stretch, b = l.alignPoint, T = l.mobile, F = s.state, k = F.popupVisible,
|
|
20569
|
+
var l = s.props, u = l.prefixCls, d = l.destroyPopupOnHide, f = l.popupClassName, h = l.onPopupAlign, p = l.popupMotion, g = l.popupAnimation, v = l.popupTransitionName, x = l.popupStyle, I = l.mask, m = l.maskAnimation, y = l.maskTransitionName, C = l.maskMotion, w = l.zIndex, O = l.popup, _ = l.stretch, b = l.alignPoint, T = l.mobile, F = s.state, k = F.popupVisible, $ = F.point, D = s.getPopupAlign(), P = {};
|
|
20670
20570
|
return s.isMouseEnterToShow() && (P.onMouseEnter = s.onPopupMouseEnter), s.isMouseLeaveToHide() && (P.onMouseLeave = s.onPopupMouseLeave), P.onMouseDown = s.onPopupMouseDown, P.onTouchStart = s.onPopupMouseDown, /* @__PURE__ */ jsx(Popup, {
|
|
20671
20571
|
prefixCls: u,
|
|
20672
20572
|
destroyPopupOnHide: d,
|
|
20673
20573
|
visible: k,
|
|
20674
|
-
point: b &&
|
|
20574
|
+
point: b && $,
|
|
20675
20575
|
className: f,
|
|
20676
20576
|
align: D,
|
|
20677
20577
|
onAlign: h,
|
|
@@ -21000,9 +20900,9 @@ var autoAdjustOverflow = {
|
|
|
21000
20900
|
children: typeof n == "function" ? n() : n
|
|
21001
20901
|
});
|
|
21002
20902
|
}, Tooltip = function e(t, n) {
|
|
21003
|
-
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, g = t.onVisibleChange, v = t.afterVisibleChange, x = t.transitionName, I = t.animation, m = t.placement, y = m === void 0 ? "right" : m, C = t.align, w = C === void 0 ? {} : C, O = t.destroyTooltipOnHide, _ = O === void 0 ? !1 : O, b = t.defaultVisible, T = t.getTooltipContainer, F = t.overlayInnerStyle, k = _objectWithoutProperties(t, ["overlayClassName", "trigger", "mouseEnterDelay", "mouseLeaveDelay", "overlayStyle", "prefixCls", "children", "onVisibleChange", "afterVisibleChange", "transitionName", "animation", "placement", "align", "destroyTooltipOnHide", "defaultVisible", "getTooltipContainer", "overlayInnerStyle"]),
|
|
20903
|
+
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, g = t.onVisibleChange, v = t.afterVisibleChange, x = t.transitionName, I = t.animation, m = t.placement, y = m === void 0 ? "right" : m, C = t.align, w = C === void 0 ? {} : C, O = t.destroyTooltipOnHide, _ = O === void 0 ? !1 : O, b = t.defaultVisible, T = t.getTooltipContainer, F = t.overlayInnerStyle, k = _objectWithoutProperties(t, ["overlayClassName", "trigger", "mouseEnterDelay", "mouseLeaveDelay", "overlayStyle", "prefixCls", "children", "onVisibleChange", "afterVisibleChange", "transitionName", "animation", "placement", "align", "destroyTooltipOnHide", "defaultVisible", "getTooltipContainer", "overlayInnerStyle"]), $ = useRef(null);
|
|
21004
20904
|
useImperativeHandle(n, function() {
|
|
21005
|
-
return
|
|
20905
|
+
return $.current;
|
|
21006
20906
|
});
|
|
21007
20907
|
var D = _objectSpread2$1({}, k);
|
|
21008
20908
|
"visible" in t && (D.popupVisible = t.visible);
|
|
@@ -21035,7 +20935,7 @@ var autoAdjustOverflow = {
|
|
|
21035
20935
|
action: a,
|
|
21036
20936
|
builtinPlacements: placements$2,
|
|
21037
20937
|
popupPlacement: y,
|
|
21038
|
-
ref:
|
|
20938
|
+
ref: $,
|
|
21039
20939
|
popupAlign: w,
|
|
21040
20940
|
getPopupContainer: T,
|
|
21041
20941
|
onPopupVisibleChange: g,
|
|
@@ -21273,15 +21173,15 @@ function requireTooltip() {
|
|
|
21273
21173
|
return m;
|
|
21274
21174
|
}
|
|
21275
21175
|
var x = /* @__PURE__ */ s.forwardRef(function(m, y) {
|
|
21276
|
-
var C, w = s.useContext(f.ConfigContext), O = w.getPopupContainer, _ = w.getPrefixCls, b = w.direction, T = s.useState(!!m.visible || !!m.defaultVisible), F = (0, o.default)(T, 2), k = F[0],
|
|
21176
|
+
var C, w = s.useContext(f.ConfigContext), O = w.getPopupContainer, _ = w.getPrefixCls, b = w.direction, T = s.useState(!!m.visible || !!m.defaultVisible), F = (0, o.default)(T, 2), k = F[0], $ = F[1];
|
|
21277
21177
|
s.useEffect(function() {
|
|
21278
|
-
"visible" in m &&
|
|
21178
|
+
"visible" in m && $(m.visible);
|
|
21279
21179
|
}, [m.visible]);
|
|
21280
21180
|
var D = function() {
|
|
21281
21181
|
var ne = m.title, ee = m.overlay;
|
|
21282
21182
|
return !ne && !ee && ne !== 0;
|
|
21283
21183
|
}, P = function(ne) {
|
|
21284
|
-
"visible" in m ||
|
|
21184
|
+
"visible" in m || $(D() ? !1 : ne), m.onVisibleChange && !D() && m.onVisibleChange(ne);
|
|
21285
21185
|
}, M = function() {
|
|
21286
21186
|
var ne = m.builtinPlacements, ee = m.arrowPointAtCenter, oe = m.autoAdjustOverflow;
|
|
21287
21187
|
return ne || (0, u.default)({
|
|
@@ -21302,7 +21202,7 @@ function requireTooltip() {
|
|
|
21302
21202
|
}, j = function() {
|
|
21303
21203
|
var ne = m.title, ee = m.overlay;
|
|
21304
21204
|
return ne === 0 ? ne : ee || ne || "";
|
|
21305
|
-
},
|
|
21205
|
+
}, L = m.prefixCls, H = m.openClassName, K = m.getPopupContainer, G = m.getTooltipContainer, z = m.overlayClassName, V = m.color, U = m.overlayInnerStyle, Y = m.children, B = _("tooltip", L), A = k;
|
|
21306
21206
|
!("visible" in m) && D() && (A = !1);
|
|
21307
21207
|
var N = v((0, d.isValidElement)(Y) ? Y : /* @__PURE__ */ s.createElement("span", null, Y), B), Z = N.props, Q = (0, l.default)(Z.className, (0, r.default)({}, H || "".concat(B, "-open"), !0)), E = (0, l.default)(z, (C = {}, (0, r.default)(C, "".concat(B, "-rtl"), b === "rtl"), (0, r.default)(C, "".concat(B, "-").concat(V), V && g.test(V)), C)), S = U, W;
|
|
21308
21208
|
return V && !g.test(V) && (S = (0, a.default)((0, a.default)({}, U), {
|
|
@@ -21386,7 +21286,7 @@ function requireTypography() {
|
|
|
21386
21286
|
}, f = function(x, I) {
|
|
21387
21287
|
var m = x.prefixCls, y = x.component, C = y === void 0 ? "article" : y, w = x.className, O = x["aria-label"], _ = x.setContentRef, b = x.children, T = d(x, ["prefixCls", "component", "className", "aria-label", "setContentRef", "children"]), F = I;
|
|
21388
21288
|
return _ && ((0, u.default)(!1, "Typography", "`setContentRef` is deprecated. Please use `ref` instead."), F = (0, c.composeRef)(I, _)), /* @__PURE__ */ a.createElement(l.ConfigConsumer, null, function(k) {
|
|
21389
|
-
var
|
|
21289
|
+
var $ = k.getPrefixCls, D = k.direction, P = C, M = $("typography", m), q = (0, s.default)(M, (0, o.default)({}, "".concat(M, "-rtl"), D === "rtl"), w);
|
|
21390
21290
|
return /* @__PURE__ */ a.createElement(P, (0, r.default)({
|
|
21391
21291
|
className: q,
|
|
21392
21292
|
"aria-label": O,
|
|
@@ -21448,7 +21348,7 @@ function requireEditable() {
|
|
|
21448
21348
|
value: !0
|
|
21449
21349
|
}), e.default = void 0;
|
|
21450
21350
|
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) {
|
|
21451
|
-
var g = p.prefixCls, v = p["aria-label"], x = p.className, I = p.style, m = p.direction, y = p.maxLength, C = p.autoSize, w = C === void 0 ? !0 : C, O = p.value, _ = p.onSave, b = p.onCancel, T = a.useRef(), F = a.useRef(!1), k = a.useRef(),
|
|
21351
|
+
var g = p.prefixCls, v = p["aria-label"], x = p.className, I = p.style, m = p.direction, y = p.maxLength, C = p.autoSize, w = C === void 0 ? !0 : C, O = p.value, _ = p.onSave, b = p.onCancel, T = a.useRef(), F = a.useRef(!1), k = a.useRef(), $ = a.useState(O), D = (0, o.default)($, 2), P = D[0], M = D[1];
|
|
21452
21352
|
a.useEffect(function() {
|
|
21453
21353
|
M(O);
|
|
21454
21354
|
}, [O]), a.useEffect(function() {
|
|
@@ -21464,7 +21364,7 @@ function requireEditable() {
|
|
|
21464
21364
|
M(B.value.replace(/[\n\r]/g, ""));
|
|
21465
21365
|
}, j = function() {
|
|
21466
21366
|
F.current = !0;
|
|
21467
|
-
},
|
|
21367
|
+
}, L = function() {
|
|
21468
21368
|
F.current = !1;
|
|
21469
21369
|
}, H = function(Y) {
|
|
21470
21370
|
var B = Y.keyCode;
|
|
@@ -21488,7 +21388,7 @@ function requireEditable() {
|
|
|
21488
21388
|
onKeyDown: H,
|
|
21489
21389
|
onKeyUp: G,
|
|
21490
21390
|
onCompositionStart: j,
|
|
21491
|
-
onCompositionEnd:
|
|
21391
|
+
onCompositionEnd: L,
|
|
21492
21392
|
onBlur: z,
|
|
21493
21393
|
"aria-label": v,
|
|
21494
21394
|
autoSize: w
|
|
@@ -21535,12 +21435,12 @@ function requireUtil() {
|
|
|
21535
21435
|
u || (u = document.createElement("div"), u.setAttribute("aria-hidden", "true"), document.body.appendChild(u));
|
|
21536
21436
|
var w = I.rows, O = I.suffix, _ = O === void 0 ? "" : O, b = window.getComputedStyle(x), T = h(b), F = f(b.lineHeight), k = Math.round(F * (w + 1) + f(b.paddingTop) + f(b.paddingBottom));
|
|
21537
21437
|
u.setAttribute("style", T), 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";
|
|
21538
|
-
var
|
|
21438
|
+
var $ = p((0, a.default)(m));
|
|
21539
21439
|
(0, r.render)(/* @__PURE__ */ o.createElement("div", {
|
|
21540
21440
|
style: d
|
|
21541
21441
|
}, /* @__PURE__ */ o.createElement("span", {
|
|
21542
21442
|
style: d
|
|
21543
|
-
},
|
|
21443
|
+
}, $, _), /* @__PURE__ */ o.createElement("span", {
|
|
21544
21444
|
style: d
|
|
21545
21445
|
}, y)), u);
|
|
21546
21446
|
function D() {
|
|
@@ -21561,12 +21461,12 @@ function requireUtil() {
|
|
|
21561
21461
|
u.innerHTML = "";
|
|
21562
21462
|
var j = document.createElement("span");
|
|
21563
21463
|
u.appendChild(j);
|
|
21564
|
-
var
|
|
21565
|
-
j.appendChild(
|
|
21464
|
+
var L = document.createTextNode(C + _);
|
|
21465
|
+
j.appendChild(L), M.forEach(function(z) {
|
|
21566
21466
|
u.appendChild(z);
|
|
21567
21467
|
});
|
|
21568
21468
|
function H(z) {
|
|
21569
|
-
j.insertBefore(z,
|
|
21469
|
+
j.insertBefore(z, L);
|
|
21570
21470
|
}
|
|
21571
21471
|
function K(z, V) {
|
|
21572
21472
|
var U = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 0, Y = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : V.length, B = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : 0, A = Math.floor((U + Y) / 2), N = V.slice(0, A);
|
|
@@ -21589,7 +21489,7 @@ function requireUtil() {
|
|
|
21589
21489
|
if (U === s)
|
|
21590
21490
|
return H(z), D() ? {
|
|
21591
21491
|
finished: !1,
|
|
21592
|
-
reactNode:
|
|
21492
|
+
reactNode: $[V]
|
|
21593
21493
|
} : (j.removeChild(z), {
|
|
21594
21494
|
finished: !0,
|
|
21595
21495
|
reactNode: null
|
|
@@ -21622,7 +21522,7 @@ function requireBase() {
|
|
|
21622
21522
|
Object.defineProperty(e, "__esModule", {
|
|
21623
21523
|
value: !0
|
|
21624
21524
|
}), e.default = void 0;
|
|
21625
|
-
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()), g = n(requireCopyToClipboard()), v = n(requireOmit()), x = n(requireEditOutlined()), I = n(requireCheckOutlined()), m = n(requireCopyOutlined()), y = n(require$$18), C = requireConfigProvider(), w = n(requireLocaleReceiver()), O = n(requireDevWarning()), _ = n(requireTransButton()), b = n(requireRaf()), T = requireStyleChecker(), F = n(requireTooltip()), k = n(requireTypography()),
|
|
21525
|
+
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()), g = n(requireCopyToClipboard()), v = n(requireOmit()), x = n(requireEditOutlined()), I = n(requireCheckOutlined()), m = n(requireCopyOutlined()), y = n(require$$18), C = requireConfigProvider(), w = n(requireLocaleReceiver()), O = n(requireDevWarning()), _ = n(requireTransButton()), b = n(requireRaf()), T = requireStyleChecker(), F = n(requireTooltip()), k = n(requireTypography()), $ = n(requireEditable()), D = n(requireUtil()), P = function(G, z) {
|
|
21626
21526
|
var V = {};
|
|
21627
21527
|
for (var U in G)
|
|
21628
21528
|
Object.prototype.hasOwnProperty.call(G, U) && z.indexOf(U) < 0 && (V[U] = G[U]);
|
|
@@ -21638,7 +21538,7 @@ function requireBase() {
|
|
|
21638
21538
|
}
|
|
21639
21539
|
return Q(A, "strong"), Q(Y, "u"), Q(B, "del"), Q(U, "code"), Q(V, "mark"), Q(N, "kbd"), Z;
|
|
21640
21540
|
}
|
|
21641
|
-
var
|
|
21541
|
+
var L = "...", H = /* @__PURE__ */ function(G) {
|
|
21642
21542
|
(0, u.default)(V, G);
|
|
21643
21543
|
var z = (0, d.default)(V);
|
|
21644
21544
|
function V() {
|
|
@@ -21747,7 +21647,7 @@ function requireBase() {
|
|
|
21747
21647
|
var X = (0, D.default)(this.contentRef.current, {
|
|
21748
21648
|
rows: Q,
|
|
21749
21649
|
suffix: E
|
|
21750
|
-
}, W, this.renderOperations(!0),
|
|
21650
|
+
}, W, this.renderOperations(!0), L), ne = X.content, ee = X.text, oe = X.ellipsis;
|
|
21751
21651
|
(B !== ee || A !== oe) && (this.setState({
|
|
21752
21652
|
ellipsisText: ee,
|
|
21753
21653
|
ellipsisContent: ne,
|
|
@@ -21810,7 +21710,7 @@ function requireBase() {
|
|
|
21810
21710
|
key: "renderEditInput",
|
|
21811
21711
|
value: function() {
|
|
21812
21712
|
var Y = this.props, B = Y.children, A = Y.className, N = Y.style, Z = this.context.direction, Q = this.getEditable(), E = Q.maxLength, S = Q.autoSize;
|
|
21813
|
-
return /* @__PURE__ */ f.createElement(
|
|
21713
|
+
return /* @__PURE__ */ f.createElement($.default, {
|
|
21814
21714
|
value: typeof B == "string" ? B : "",
|
|
21815
21715
|
onSave: this.onEditChange,
|
|
21816
21716
|
onCancel: this.onEditCancel,
|
|
@@ -21838,7 +21738,7 @@ function requireBase() {
|
|
|
21838
21738
|
!Ee && (typeof S == "string" || typeof S == "number") && (ie = String(S)), ie = ie == null ? void 0 : ie.slice(String(A || "").length), Ce = /* @__PURE__ */ f.createElement(f.Fragment, null, A, /* @__PURE__ */ f.createElement("span", {
|
|
21839
21739
|
title: ie,
|
|
21840
21740
|
"aria-hidden": "true"
|
|
21841
|
-
},
|
|
21741
|
+
}, L), fe), Ie && (Ce = /* @__PURE__ */ f.createElement(F.default, {
|
|
21842
21742
|
title: Ie === !0 ? S : Ie
|
|
21843
21743
|
}, /* @__PURE__ */ f.createElement("span", null, Ce)));
|
|
21844
21744
|
} else
|
|
@@ -21917,7 +21817,7 @@ const Title$2 = /* @__PURE__ */ getDefaultExportFromCjs(Title$3), {
|
|
|
21917
21817
|
suffix: l,
|
|
21918
21818
|
field: u,
|
|
21919
21819
|
operator: d
|
|
21920
|
-
} = e, [f, h] = useState(!1), [p, g] = useState(), [v, x] = useState(), [I, m] = useState(), [y, C] = useState(0), [w, O] = useState(0), [_, b] = useState(), [T, F] = useState(), [k,
|
|
21820
|
+
} = e, [f, h] = useState(!1), [p, g] = useState(), [v, x] = useState(), [I, m] = useState(), [y, C] = useState(0), [w, O] = useState(0), [_, b] = useState(), [T, F] = useState(), [k, $] = useState();
|
|
21921
21821
|
useEffect(() => {
|
|
21922
21822
|
P();
|
|
21923
21823
|
}, [t, o]);
|
|
@@ -21934,7 +21834,7 @@ const Title$2 = /* @__PURE__ */ getDefaultExportFromCjs(Title$3), {
|
|
|
21934
21834
|
context: r
|
|
21935
21835
|
});
|
|
21936
21836
|
return getValueForOperator({
|
|
21937
|
-
values: j.map((
|
|
21837
|
+
values: j.map((L) => L[u]),
|
|
21938
21838
|
operator: d
|
|
21939
21839
|
});
|
|
21940
21840
|
} else
|
|
@@ -21950,15 +21850,15 @@ const Title$2 = /* @__PURE__ */ getDefaultExportFromCjs(Title$3), {
|
|
|
21950
21850
|
try {
|
|
21951
21851
|
const j = await D(n);
|
|
21952
21852
|
if (g(j), a) {
|
|
21953
|
-
const
|
|
21853
|
+
const L = await ConnectionProvider.getHandler().evalDomain({
|
|
21954
21854
|
domain: a,
|
|
21955
21855
|
values: {},
|
|
21956
21856
|
context: r
|
|
21957
21857
|
});
|
|
21958
|
-
M = await D(
|
|
21858
|
+
M = await D(L), m(M);
|
|
21959
21859
|
}
|
|
21960
21860
|
if (M ? (q = Math.round(j / M * 100 * 100) / 100, x(q)) : x(0), o) {
|
|
21961
|
-
const
|
|
21861
|
+
const L = await ConnectionProvider.getHandler().parseCondition({
|
|
21962
21862
|
condition: o,
|
|
21963
21863
|
values: {
|
|
21964
21864
|
value: j,
|
|
@@ -21966,11 +21866,11 @@ const Title$2 = /* @__PURE__ */ getDefaultExportFromCjs(Title$3), {
|
|
|
21966
21866
|
},
|
|
21967
21867
|
context: r
|
|
21968
21868
|
});
|
|
21969
|
-
b(
|
|
21869
|
+
b(L);
|
|
21970
21870
|
}
|
|
21971
21871
|
if (c)
|
|
21972
21872
|
if (c.indexOf(":") !== -1) {
|
|
21973
|
-
const
|
|
21873
|
+
const L = await ConnectionProvider.getHandler().parseCondition({
|
|
21974
21874
|
condition: c,
|
|
21975
21875
|
values: {
|
|
21976
21876
|
value: j,
|
|
@@ -21978,11 +21878,11 @@ const Title$2 = /* @__PURE__ */ getDefaultExportFromCjs(Title$3), {
|
|
|
21978
21878
|
},
|
|
21979
21879
|
context: r
|
|
21980
21880
|
});
|
|
21981
|
-
F(
|
|
21881
|
+
F(L);
|
|
21982
21882
|
} else
|
|
21983
21883
|
F(c);
|
|
21984
21884
|
} catch (j) {
|
|
21985
|
-
|
|
21885
|
+
$(JSON.stringify(j));
|
|
21986
21886
|
}
|
|
21987
21887
|
h(!1);
|
|
21988
21888
|
}
|
|
@@ -22586,7 +22486,7 @@ const One2manyInput = (e) => {
|
|
|
22586
22486
|
} = d || {}, {
|
|
22587
22487
|
lang: v,
|
|
22588
22488
|
t: x
|
|
22589
|
-
} = useContext(LocaleContext), I = useRef(), [m, y] = useState(!1), [C, w] = useState(!1), [O, _] = useState(), [b, T] = useState(!1), [F, k] = useState(!1), [
|
|
22489
|
+
} = useContext(LocaleContext), I = useRef(), [m, y] = useState(!1), [C, w] = useState(!1), [O, _] = useState(), [b, T] = useState(!1), [F, k] = useState(!1), [$, D] = useState(), [P, M] = useState([]), [q, j] = useState(!1), L = useRef([]), [H, K] = useState(), G = useRef(), {
|
|
22590
22490
|
readOnly: z,
|
|
22591
22491
|
relation: V,
|
|
22592
22492
|
context: U,
|
|
@@ -22629,14 +22529,14 @@ const One2manyInput = (e) => {
|
|
|
22629
22529
|
}
|
|
22630
22530
|
};
|
|
22631
22531
|
async function S() {
|
|
22632
|
-
Y && (
|
|
22532
|
+
Y && (L.current = transformDomainForChildWidget({
|
|
22633
22533
|
domain: await ConnectionProvider.getHandler().evalDomain({
|
|
22634
22534
|
domain: Y,
|
|
22635
22535
|
values: h(),
|
|
22636
22536
|
context: p()
|
|
22637
22537
|
}),
|
|
22638
22538
|
widgetFieldName: A
|
|
22639
|
-
})), g && g.length > 0 && (
|
|
22539
|
+
})), g && g.length > 0 && (L.current = L.current.concat(transformDomainForChildWidget({
|
|
22640
22540
|
domain: g,
|
|
22641
22541
|
widgetFieldName: A
|
|
22642
22542
|
})));
|
|
@@ -22929,10 +22829,10 @@ const One2manyInput = (e) => {
|
|
|
22929
22829
|
}), Fe(), /* @__PURE__ */ jsx(FormModal, {
|
|
22930
22830
|
formView: o.get("form"),
|
|
22931
22831
|
model: V,
|
|
22932
|
-
id:
|
|
22832
|
+
id: $ == null ? void 0 : $.id,
|
|
22933
22833
|
submitMode: "values",
|
|
22934
|
-
values:
|
|
22935
|
-
defaultValues:
|
|
22834
|
+
values: $ == null ? void 0 : $.values,
|
|
22835
|
+
defaultValues: $ == null ? void 0 : $.defaultValues,
|
|
22936
22836
|
visible: b,
|
|
22937
22837
|
onSubmitSucceed: Te,
|
|
22938
22838
|
parentContext: {
|
|
@@ -22945,7 +22845,7 @@ const One2manyInput = (e) => {
|
|
|
22945
22845
|
readOnly: z,
|
|
22946
22846
|
mustClearAfterSave: Ce
|
|
22947
22847
|
}), /* @__PURE__ */ jsx(SearchModal, {
|
|
22948
|
-
domain:
|
|
22848
|
+
domain: L.current,
|
|
22949
22849
|
model: V,
|
|
22950
22850
|
context: {
|
|
22951
22851
|
...p == null ? void 0 : p(),
|
|
@@ -26436,7 +26336,7 @@ function FormActionBar() {
|
|
|
26436
26336
|
} = useContext(LocaleContext), T = useContext(ContentRootContext), {
|
|
26437
26337
|
processAction: F
|
|
26438
26338
|
} = T || {}, k = useContext(TabManagerContext), {
|
|
26439
|
-
openRelate:
|
|
26339
|
+
openRelate: $,
|
|
26440
26340
|
openDefaultActionForModel: D
|
|
26441
26341
|
} = k || {};
|
|
26442
26342
|
function P(V) {
|
|
@@ -26469,7 +26369,7 @@ function FormActionBar() {
|
|
|
26469
26369
|
function j() {
|
|
26470
26370
|
c && u > 0 ? (l == null || l(u - 1), d == null || d(c[u - 1].id)) : c && u === 0 && (l == null || l(c.length - 1), d == null || d(c[c.length - 1].id));
|
|
26471
26371
|
}
|
|
26472
|
-
function
|
|
26372
|
+
function L() {
|
|
26473
26373
|
showDialog$9({
|
|
26474
26374
|
confirmMessage: _("confirmRemoveItem"),
|
|
26475
26375
|
lang: b,
|
|
@@ -26545,7 +26445,7 @@ function FormActionBar() {
|
|
|
26545
26445
|
tooltip: _("delete"),
|
|
26546
26446
|
disabled: a || s === void 0 || p || g || I,
|
|
26547
26447
|
loading: p,
|
|
26548
|
-
onClick:
|
|
26448
|
+
onClick: L
|
|
26549
26449
|
}), separator$2(), /* @__PURE__ */ jsx(ActionButton, {
|
|
26550
26450
|
icon: /* @__PURE__ */ jsx(InfoCircleOutlined$3, {}),
|
|
26551
26451
|
tooltip: _("showLogs"),
|
|
@@ -26618,7 +26518,7 @@ function FormActionBar() {
|
|
|
26618
26518
|
tooltip: _("related"),
|
|
26619
26519
|
items: m == null ? void 0 : m.relate,
|
|
26620
26520
|
onItemClick: async (V) => {
|
|
26621
|
-
!V ||
|
|
26521
|
+
!V || $({
|
|
26622
26522
|
relateData: V,
|
|
26623
26523
|
values: C.current.getValues(),
|
|
26624
26524
|
fields: C.current.getFields(),
|
|
@@ -26853,7 +26753,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
26853
26753
|
if (F = m.split("@"), F.length > 1) {
|
|
26854
26754
|
if (y.disallow_auth || F[0] === "" || (w = F.shift(), w.indexOf(":") >= 0 && w.split(":").length > 2))
|
|
26855
26755
|
return !1;
|
|
26856
|
-
var
|
|
26756
|
+
var $ = w.split(":"), D = c($, 2), P = D[0], M = D[1];
|
|
26857
26757
|
if (P === "" && M === "")
|
|
26858
26758
|
return !1;
|
|
26859
26759
|
}
|
|
@@ -27021,8 +26921,8 @@ var isEmail$1 = { exports: {} }, isByteLength = { exports: {} };
|
|
|
27021
26921
|
max: 30
|
|
27022
26922
|
}))
|
|
27023
26923
|
return !1;
|
|
27024
|
-
for (var k = F.split("."),
|
|
27025
|
-
if (!f.test(k[
|
|
26924
|
+
for (var k = F.split("."), $ = 0; $ < k.length; $++)
|
|
26925
|
+
if (!f.test(k[$]))
|
|
27026
26926
|
return !1;
|
|
27027
26927
|
}
|
|
27028
26928
|
if (y.ignore_max_length === !1 && (!(0, o.default)(T, {
|
|
@@ -27300,7 +27200,7 @@ function TreeActionBar(e) {
|
|
|
27300
27200
|
a == null || a(!1);
|
|
27301
27201
|
}
|
|
27302
27202
|
}
|
|
27303
|
-
async function
|
|
27203
|
+
async function $() {
|
|
27304
27204
|
var P;
|
|
27305
27205
|
try {
|
|
27306
27206
|
l == null || l(!0);
|
|
@@ -27353,7 +27253,7 @@ function TreeActionBar(e) {
|
|
|
27353
27253
|
tooltip: O("duplicate"),
|
|
27354
27254
|
disabled: !o || (o == null ? void 0 : o.length) !== 1 || c || y,
|
|
27355
27255
|
loading: c,
|
|
27356
|
-
onClick:
|
|
27256
|
+
onClick: $
|
|
27357
27257
|
}), /* @__PURE__ */ jsx(ActionButton, {
|
|
27358
27258
|
icon: /* @__PURE__ */ jsx(DeleteOutlined, {}),
|
|
27359
27259
|
tooltip: O("delete"),
|
|
@@ -27574,7 +27474,7 @@ function ActionView(e, t) {
|
|
|
27574
27474
|
action_id: p,
|
|
27575
27475
|
action_type: g,
|
|
27576
27476
|
treeExpandable: v = !1
|
|
27577
|
-
} = e, [x, I] = useState(), [m, y] = useState([]), [C, w] = useState(), [O, _] = useState(), [b, T] = useState(), [F, k] = useState(!0),
|
|
27477
|
+
} = e, [x, I] = useState(), [m, y] = useState([]), [C, w] = useState(), [O, _] = useState(), [b, T] = useState(), [F, k] = useState(!0), $ = h || void 0, [D, P] = useState($), [M, q] = useState([]), [j, L] = useState(), [H, K] = useState([]), [G, z] = useState(), [V, U] = useState(), [Y, B] = useState(0), [A, N] = useState(!1), [Z, Q] = useState(!1), [E, S] = useState(), {
|
|
27578
27478
|
t: W
|
|
27579
27479
|
} = useContext(LocaleContext), X = useRef(), ne = useRef(), ee = useRef(), oe = useContext(TabManagerContext), {
|
|
27580
27480
|
openShortcut: le,
|
|
@@ -27604,8 +27504,8 @@ function ActionView(e, t) {
|
|
|
27604
27504
|
try {
|
|
27605
27505
|
if (Se === "dashboard") {
|
|
27606
27506
|
const _e = a.find((Me) => {
|
|
27607
|
-
const [,
|
|
27608
|
-
return
|
|
27507
|
+
const [, $e] = Me;
|
|
27508
|
+
return $e === "form";
|
|
27609
27509
|
});
|
|
27610
27510
|
let Ae;
|
|
27611
27511
|
_e && (Ae = {
|
|
@@ -27649,7 +27549,7 @@ function ActionView(e, t) {
|
|
|
27649
27549
|
tabKey: l,
|
|
27650
27550
|
canWeClose: Fe
|
|
27651
27551
|
}), useEffect(() => {
|
|
27652
|
-
we(u || m.find((re) => re.type === "tree")), h ? se == null || se(
|
|
27552
|
+
we(u || m.find((re) => re.type === "tree")), h ? se == null || se($) : (ge(void 0), L(void 0)), ye();
|
|
27653
27553
|
}, [r, a, h]), useEffect(() => {
|
|
27654
27554
|
Ie === l && (se == null || se(D), ue == null || ue(x));
|
|
27655
27555
|
}, [fe, Ie]);
|
|
@@ -27711,7 +27611,7 @@ function ActionView(e, t) {
|
|
|
27711
27611
|
id: D,
|
|
27712
27612
|
parentContext: o,
|
|
27713
27613
|
onSubmitSucceed: (re, me) => {
|
|
27714
|
-
H.findIndex((Se) => Se.id === re) === -1 && (H.push(me), K(H),
|
|
27614
|
+
H.findIndex((Se) => Se.id === re) === -1 && (H.push(me), K(H), L(H.length - 1));
|
|
27715
27615
|
}
|
|
27716
27616
|
}), /* @__PURE__ */ jsx(SearchTree$1, {
|
|
27717
27617
|
visible: x.type === "tree",
|
|
@@ -27729,7 +27629,7 @@ function ActionView(e, t) {
|
|
|
27729
27629
|
} = re;
|
|
27730
27630
|
ge(me);
|
|
27731
27631
|
const xe = H.findIndex((Se) => Se.id === me);
|
|
27732
|
-
|
|
27632
|
+
L(xe), we(m.find((Se) => Se.type === "form"));
|
|
27733
27633
|
}
|
|
27734
27634
|
})]
|
|
27735
27635
|
});
|
|
@@ -27780,7 +27680,7 @@ function ActionView(e, t) {
|
|
|
27780
27680
|
onNewClicked: de,
|
|
27781
27681
|
currentId: D,
|
|
27782
27682
|
setCurrentId: ge,
|
|
27783
|
-
setCurrentItemIndex:
|
|
27683
|
+
setCurrentItemIndex: L,
|
|
27784
27684
|
currentItemIndex: j,
|
|
27785
27685
|
results: H,
|
|
27786
27686
|
setResults: K,
|
|
@@ -27987,7 +27887,7 @@ function DashboardTree(e) {
|
|
|
27987
27887
|
domain: a = [],
|
|
27988
27888
|
visible: s = !0,
|
|
27989
27889
|
parentContext: c = {}
|
|
27990
|
-
} = e, [l, u] = useState(!1), [d, f] = useState(!1), [h, p] = useState(), [g, v] = useState(), [x, I] = useState(), [m, y] = useState(1), [C, w] = useState(0), O = useRef(DEFAULT_SEARCH_LIMIT), _ = useRef([]), [b, T] = useState(0), [F, k] = useState([]), [
|
|
27890
|
+
} = e, [l, u] = useState(!1), [d, f] = useState(!1), [h, p] = useState(), [g, v] = useState(), [x, I] = useState(), [m, y] = useState(1), [C, w] = useState(0), O = useRef(DEFAULT_SEARCH_LIMIT), _ = useRef([]), [b, T] = useState(0), [F, k] = useState([]), [$, D] = useState(void 0), [P, M] = useState(), [q, j] = useState(), [L, H] = useState(), [K, G] = useState(!1), z = useRef([]), V = (W) => {
|
|
27991
27891
|
G(!0), y(W), w((W - 1) * O.current);
|
|
27992
27892
|
}, U = (W) => {
|
|
27993
27893
|
const X = {};
|
|
@@ -28101,7 +28001,7 @@ function DashboardTree(e) {
|
|
|
28101
28001
|
onRequestPageChange: V,
|
|
28102
28002
|
loading: K,
|
|
28103
28003
|
onRowClicked: E,
|
|
28104
|
-
colorsForResults:
|
|
28004
|
+
colorsForResults: $,
|
|
28105
28005
|
sorter: P,
|
|
28106
28006
|
onChangeSort: (W) => {
|
|
28107
28007
|
M == null || M(W);
|
|
@@ -28117,9 +28017,9 @@ function DashboardTree(e) {
|
|
|
28117
28017
|
}
|
|
28118
28018
|
})]
|
|
28119
28019
|
});
|
|
28120
|
-
return
|
|
28020
|
+
return L ? /* @__PURE__ */ jsx(Alert, {
|
|
28121
28021
|
className: "mt-10",
|
|
28122
|
-
message:
|
|
28022
|
+
message: L,
|
|
28123
28023
|
type: "error",
|
|
28124
28024
|
banner: !0
|
|
28125
28025
|
}) : l ? /* @__PURE__ */ jsx(Spin, {
|
|
@@ -28180,11 +28080,11 @@ function Dashboard(e, t) {
|
|
|
28180
28080
|
try {
|
|
28181
28081
|
const b = await m(), T = await C(b), F = b.fields[itemsField].relation, k = T[itemsField].items;
|
|
28182
28082
|
x.current = b.fields;
|
|
28183
|
-
const
|
|
28083
|
+
const $ = await y({
|
|
28184
28084
|
items: k,
|
|
28185
28085
|
model: F,
|
|
28186
28086
|
context: r
|
|
28187
|
-
}), D = await w(
|
|
28087
|
+
}), D = await w($);
|
|
28188
28088
|
c(D), u(!1), h(!1);
|
|
28189
28089
|
} catch (b) {
|
|
28190
28090
|
f(JSON.stringify(b));
|
|
@@ -28229,8 +28129,8 @@ function Dashboard(e, t) {
|
|
|
28229
28129
|
values: k
|
|
28230
28130
|
} = F;
|
|
28231
28131
|
if (k.action_id && k.action_id.length > 0) {
|
|
28232
|
-
const
|
|
28233
|
-
actionId:
|
|
28132
|
+
const $ = parseInt(k.action_id[0], 10), D = await fetchAction({
|
|
28133
|
+
actionId: $,
|
|
28234
28134
|
rootContext: r
|
|
28235
28135
|
});
|
|
28236
28136
|
T.push({
|
|
@@ -28272,7 +28172,7 @@ function Dashboard(e, t) {
|
|
|
28272
28172
|
position: JSON.stringify(P).replace(/"/g, "'")
|
|
28273
28173
|
}
|
|
28274
28174
|
};
|
|
28275
|
-
}),
|
|
28175
|
+
}), $ = {
|
|
28276
28176
|
fields: v.current,
|
|
28277
28177
|
items: k
|
|
28278
28178
|
};
|
|
@@ -28280,7 +28180,7 @@ function Dashboard(e, t) {
|
|
|
28280
28180
|
model: n,
|
|
28281
28181
|
id: o,
|
|
28282
28182
|
values: {
|
|
28283
|
-
[itemsField]:
|
|
28183
|
+
[itemsField]: $
|
|
28284
28184
|
},
|
|
28285
28185
|
fields: x.current,
|
|
28286
28186
|
context: r
|
|
@@ -28301,14 +28201,14 @@ function Dashboard(e, t) {
|
|
|
28301
28201
|
actionData: F,
|
|
28302
28202
|
values: k
|
|
28303
28203
|
} = b, {
|
|
28304
|
-
position:
|
|
28204
|
+
position: $,
|
|
28305
28205
|
id: D
|
|
28306
28206
|
} = k, {
|
|
28307
28207
|
actionId: P,
|
|
28308
28208
|
actionType: M,
|
|
28309
28209
|
key: q,
|
|
28310
28210
|
title: j,
|
|
28311
|
-
views:
|
|
28211
|
+
views: L,
|
|
28312
28212
|
model: H,
|
|
28313
28213
|
context: K,
|
|
28314
28214
|
domain: G,
|
|
@@ -28317,7 +28217,7 @@ function Dashboard(e, t) {
|
|
|
28317
28217
|
} = F;
|
|
28318
28218
|
let U = {};
|
|
28319
28219
|
try {
|
|
28320
|
-
U = JSON.parse(
|
|
28220
|
+
U = JSON.parse($.replace(/'/g, '"'));
|
|
28321
28221
|
} catch {
|
|
28322
28222
|
U = {
|
|
28323
28223
|
x: T * 2,
|
|
@@ -28328,7 +28228,7 @@ function Dashboard(e, t) {
|
|
|
28328
28228
|
}
|
|
28329
28229
|
let Y = null;
|
|
28330
28230
|
(z == null ? void 0 : z.type) === "graph" ? Y = /* @__PURE__ */ jsx(Graph, {
|
|
28331
|
-
view_id:
|
|
28231
|
+
view_id: L.filter((N) => N[1] === "graph")[0][0],
|
|
28332
28232
|
model: H,
|
|
28333
28233
|
context: K,
|
|
28334
28234
|
domain: G,
|
|
@@ -28339,9 +28239,9 @@ function Dashboard(e, t) {
|
|
|
28339
28239
|
}) : (z == null ? void 0 : z.type) === "tree" ? Y = /* @__PURE__ */ jsx(DashboardTree, {
|
|
28340
28240
|
model: H,
|
|
28341
28241
|
domain: G,
|
|
28342
|
-
view_id:
|
|
28242
|
+
view_id: L.filter((N) => N[1] === "tree")[0][0],
|
|
28343
28243
|
onRowClicked: (N) => {
|
|
28344
|
-
const Z =
|
|
28244
|
+
const Z = L.find((Q) => {
|
|
28345
28245
|
const [, E] = Q;
|
|
28346
28246
|
return E === "form";
|
|
28347
28247
|
});
|
|
@@ -28368,7 +28268,7 @@ function Dashboard(e, t) {
|
|
|
28368
28268
|
action_type: M,
|
|
28369
28269
|
tabKey: q,
|
|
28370
28270
|
title: j,
|
|
28371
|
-
views:
|
|
28271
|
+
views: L,
|
|
28372
28272
|
model: H,
|
|
28373
28273
|
context: K,
|
|
28374
28274
|
domain: G,
|
|
@@ -28377,7 +28277,7 @@ function Dashboard(e, t) {
|
|
|
28377
28277
|
initialView: z
|
|
28378
28278
|
}));
|
|
28379
28279
|
let B;
|
|
28380
|
-
const A =
|
|
28280
|
+
const A = L.find((N) => {
|
|
28381
28281
|
const [, Z] = N;
|
|
28382
28282
|
return Z === "tree";
|
|
28383
28283
|
});
|
|
@@ -28465,9 +28365,9 @@ const Dashboard$1 = forwardRef(Dashboard), MultiCheckbox = (e) => {
|
|
|
28465
28365
|
...p
|
|
28466
28366
|
}
|
|
28467
28367
|
})).map((k) => {
|
|
28468
|
-
const
|
|
28469
|
-
let D =
|
|
28470
|
-
return Array.isArray(
|
|
28368
|
+
const $ = k[v];
|
|
28369
|
+
let D = $;
|
|
28370
|
+
return Array.isArray($) && (D = $[1]), {
|
|
28471
28371
|
label: D,
|
|
28472
28372
|
value: k.id
|
|
28473
28373
|
};
|
|
@@ -28718,7 +28618,7 @@ function RootView(e, t) {
|
|
|
28718
28618
|
showDialog$8("Action type not supported");
|
|
28719
28619
|
return;
|
|
28720
28620
|
}
|
|
28721
|
-
const [k,
|
|
28621
|
+
const [k, $] = C.split(","), D = parseInt($), P = parseContext({
|
|
28722
28622
|
context: F.context,
|
|
28723
28623
|
values: r,
|
|
28724
28624
|
fields: {}
|
|
@@ -28732,7 +28632,7 @@ function RootView(e, t) {
|
|
|
28732
28632
|
}) : [], {
|
|
28733
28633
|
res_model: q,
|
|
28734
28634
|
views: j,
|
|
28735
|
-
name:
|
|
28635
|
+
name: L,
|
|
28736
28636
|
target: H,
|
|
28737
28637
|
view_type: K
|
|
28738
28638
|
} = F, G = K === "tree", z = [];
|
|
@@ -28779,7 +28679,7 @@ function RootView(e, t) {
|
|
|
28779
28679
|
},
|
|
28780
28680
|
model: q,
|
|
28781
28681
|
views: z,
|
|
28782
|
-
title:
|
|
28682
|
+
title: L,
|
|
28783
28683
|
target: H,
|
|
28784
28684
|
initialView: V,
|
|
28785
28685
|
action_type: k,
|
|
@@ -28816,13 +28716,13 @@ function RootView(e, t) {
|
|
|
28816
28716
|
res_model: T,
|
|
28817
28717
|
context: F,
|
|
28818
28718
|
domain: k,
|
|
28819
|
-
views:
|
|
28719
|
+
views: $,
|
|
28820
28720
|
target: D,
|
|
28821
28721
|
string: P
|
|
28822
|
-
} = C, [M, q] =
|
|
28722
|
+
} = C, [M, q] = $[0], j = {
|
|
28823
28723
|
id: M,
|
|
28824
28724
|
type: q
|
|
28825
|
-
},
|
|
28725
|
+
}, L = parseContext({
|
|
28826
28726
|
context: F,
|
|
28827
28727
|
values: {
|
|
28828
28728
|
...O,
|
|
@@ -28837,16 +28737,16 @@ function RootView(e, t) {
|
|
|
28837
28737
|
},
|
|
28838
28738
|
context: {
|
|
28839
28739
|
...o,
|
|
28840
|
-
|
|
28740
|
+
...L
|
|
28841
28741
|
}
|
|
28842
28742
|
}) : [];
|
|
28843
28743
|
y({
|
|
28844
28744
|
model: T,
|
|
28845
28745
|
target: D,
|
|
28846
|
-
views:
|
|
28746
|
+
views: $,
|
|
28847
28747
|
context: {
|
|
28848
28748
|
...o,
|
|
28849
|
-
|
|
28749
|
+
...L
|
|
28850
28750
|
},
|
|
28851
28751
|
domain: H,
|
|
28852
28752
|
title: P,
|
|
@@ -28868,7 +28768,7 @@ function RootView(e, t) {
|
|
|
28868
28768
|
context: F.context,
|
|
28869
28769
|
values: r,
|
|
28870
28770
|
fields: {}
|
|
28871
|
-
}),
|
|
28771
|
+
}), $ = F.domain ? await ConnectionProvider.getHandler().evalDomain({
|
|
28872
28772
|
domain: F.domain,
|
|
28873
28773
|
values: r,
|
|
28874
28774
|
context: {
|
|
@@ -28881,7 +28781,7 @@ function RootView(e, t) {
|
|
|
28881
28781
|
name: M,
|
|
28882
28782
|
target: q,
|
|
28883
28783
|
view_type: j
|
|
28884
|
-
} = F,
|
|
28784
|
+
} = F, L = j === "tree", H = [];
|
|
28885
28785
|
for (const V of P) {
|
|
28886
28786
|
const [U, Y] = V;
|
|
28887
28787
|
if (U)
|
|
@@ -28914,7 +28814,7 @@ function RootView(e, t) {
|
|
|
28914
28814
|
type: G
|
|
28915
28815
|
};
|
|
28916
28816
|
y({
|
|
28917
|
-
domain:
|
|
28817
|
+
domain: $,
|
|
28918
28818
|
context: {
|
|
28919
28819
|
...o,
|
|
28920
28820
|
...k
|
|
@@ -28927,7 +28827,7 @@ function RootView(e, t) {
|
|
|
28927
28827
|
action_id: w,
|
|
28928
28828
|
action_type: O,
|
|
28929
28829
|
res_id: _,
|
|
28930
|
-
treeExpandable:
|
|
28830
|
+
treeExpandable: L
|
|
28931
28831
|
});
|
|
28932
28832
|
}
|
|
28933
28833
|
async function m({
|
|
@@ -28957,7 +28857,7 @@ function RootView(e, t) {
|
|
|
28957
28857
|
target: T,
|
|
28958
28858
|
initialView: F,
|
|
28959
28859
|
action_id: k,
|
|
28960
|
-
action_type:
|
|
28860
|
+
action_type: $,
|
|
28961
28861
|
res_id: D,
|
|
28962
28862
|
values: P,
|
|
28963
28863
|
forced_values: M,
|
|
@@ -28965,7 +28865,7 @@ function RootView(e, t) {
|
|
|
28965
28865
|
}) {
|
|
28966
28866
|
const j = v4();
|
|
28967
28867
|
if (T !== "current") {
|
|
28968
|
-
const
|
|
28868
|
+
const L = await ConnectionProvider.getHandler().getView({
|
|
28969
28869
|
model: O,
|
|
28970
28870
|
type: "form",
|
|
28971
28871
|
id: F.type === "form" ? F.id : void 0,
|
|
@@ -28977,16 +28877,16 @@ function RootView(e, t) {
|
|
|
28977
28877
|
f.current.openActionModal({
|
|
28978
28878
|
domain: C,
|
|
28979
28879
|
model: O,
|
|
28980
|
-
formView:
|
|
28880
|
+
formView: L,
|
|
28981
28881
|
context: {
|
|
28982
28882
|
...o,
|
|
28983
28883
|
...w
|
|
28984
28884
|
},
|
|
28985
28885
|
actionData: {
|
|
28986
28886
|
action_id: k,
|
|
28987
|
-
action_type:
|
|
28887
|
+
action_type: $,
|
|
28988
28888
|
res_id: D,
|
|
28989
|
-
view_id:
|
|
28889
|
+
view_id: L.view_id
|
|
28990
28890
|
}
|
|
28991
28891
|
});
|
|
28992
28892
|
} else
|
|
@@ -28994,11 +28894,11 @@ function RootView(e, t) {
|
|
|
28994
28894
|
title: b,
|
|
28995
28895
|
action: {
|
|
28996
28896
|
id: k,
|
|
28997
|
-
type:
|
|
28897
|
+
type: $
|
|
28998
28898
|
},
|
|
28999
28899
|
content: /* @__PURE__ */ jsx(ActionView$1, {
|
|
29000
28900
|
action_id: k,
|
|
29001
|
-
action_type:
|
|
28901
|
+
action_type: $,
|
|
29002
28902
|
tabKey: j,
|
|
29003
28903
|
title: b,
|
|
29004
28904
|
views: _,
|
|
@@ -29180,7 +29080,7 @@ const FavouriteButton = (e) => {
|
|
|
29180
29080
|
function b(M) {
|
|
29181
29081
|
const {
|
|
29182
29082
|
key: q
|
|
29183
|
-
} = M, j = u.find((
|
|
29083
|
+
} = M, j = u.find((L) => L.id === Number(q));
|
|
29184
29084
|
(j == null ? void 0 : j.action_type) !== "ir.actions.wizard" && (j && I(j), l(!1));
|
|
29185
29085
|
}
|
|
29186
29086
|
function T(M) {
|
|
@@ -29197,13 +29097,13 @@ const FavouriteButton = (e) => {
|
|
|
29197
29097
|
s(!1);
|
|
29198
29098
|
return;
|
|
29199
29099
|
}
|
|
29200
|
-
const
|
|
29100
|
+
const L = C.id;
|
|
29201
29101
|
let H = !1;
|
|
29202
29102
|
C.type === "form" && (H = w || !1);
|
|
29203
29103
|
const K = await n({
|
|
29204
29104
|
action_id: q,
|
|
29205
29105
|
action_type: j,
|
|
29206
|
-
view_id:
|
|
29106
|
+
view_id: L,
|
|
29207
29107
|
res_id: H
|
|
29208
29108
|
});
|
|
29209
29109
|
K !== !1 && g(K), s(K !== !1);
|
|
@@ -29213,7 +29113,7 @@ const FavouriteButton = (e) => {
|
|
|
29213
29113
|
model: "ir.ui.view_sc"
|
|
29214
29114
|
});
|
|
29215
29115
|
}
|
|
29216
|
-
const
|
|
29116
|
+
const $ = /* @__PURE__ */ jsxs(Menu, {
|
|
29217
29117
|
onClick: b,
|
|
29218
29118
|
children: [/* @__PURE__ */ jsxs("div", {
|
|
29219
29119
|
style: {
|
|
@@ -29290,7 +29190,7 @@ const FavouriteButton = (e) => {
|
|
|
29290
29190
|
const M = m.find((K) => K.key === y), {
|
|
29291
29191
|
id: q,
|
|
29292
29192
|
type: j
|
|
29293
|
-
} = (M == null ? void 0 : M.action) || {},
|
|
29193
|
+
} = (M == null ? void 0 : M.action) || {}, L = C.id;
|
|
29294
29194
|
let H = !1;
|
|
29295
29195
|
if (!q || !j) {
|
|
29296
29196
|
s(!1);
|
|
@@ -29299,7 +29199,7 @@ const FavouriteButton = (e) => {
|
|
|
29299
29199
|
C.type === "form" && (H = w || !1), await r({
|
|
29300
29200
|
action_id: q,
|
|
29301
29201
|
action_type: j,
|
|
29302
|
-
view_id:
|
|
29202
|
+
view_id: L,
|
|
29303
29203
|
res_id: H
|
|
29304
29204
|
});
|
|
29305
29205
|
}
|
|
@@ -29318,7 +29218,7 @@ const FavouriteButton = (e) => {
|
|
|
29318
29218
|
},
|
|
29319
29219
|
onClick: P
|
|
29320
29220
|
}), /* @__PURE__ */ jsx(Dropdown, {
|
|
29321
|
-
overlay:
|
|
29221
|
+
overlay: $,
|
|
29322
29222
|
onVisibleChange: T,
|
|
29323
29223
|
visible: c,
|
|
29324
29224
|
children: /* @__PURE__ */ jsx(Button$1, {
|