@gisce/react-ooui 1.2.0-rc.10 → 1.2.0-rc.12
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 +911 -891
- package/dist/react-ooui.es.js.map +1 -1
- package/dist/react-ooui.umd.js +16 -16
- package/dist/react-ooui.umd.js.map +1 -1
- package/dist/views/RootView.d.ts.map +1 -1
- package/dist/views/actionViews/TreeActionView.d.ts.map +1 -1
- package/dist/widgets/views/Dashboard/Dashboard.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/views/RootView.tsx +5 -1
- package/src/views/actionViews/TreeActionView.tsx +10 -1
- package/src/widgets/views/Dashboard/Dashboard.tsx +5 -1
package/dist/react-ooui.es.js
CHANGED
|
@@ -4108,8 +4108,8 @@ const {
|
|
|
4108
4108
|
if (b)
|
|
4109
4109
|
return /* @__PURE__ */ jsx(LoadingOutlined$3, {});
|
|
4110
4110
|
if (f) {
|
|
4111
|
-
const
|
|
4112
|
-
return
|
|
4111
|
+
const A = iconMapper(f);
|
|
4112
|
+
return A && /* @__PURE__ */ jsx(A, {});
|
|
4113
4113
|
}
|
|
4114
4114
|
}
|
|
4115
4115
|
async function w() {
|
|
@@ -4602,8 +4602,8 @@ function requireReactIs_production_min() {
|
|
|
4602
4602
|
var e = typeof Symbol == "function" && Symbol.for, r = e ? Symbol.for("react.element") : 60103, o = e ? Symbol.for("react.portal") : 60106, a = e ? Symbol.for("react.fragment") : 60107, s = e ? Symbol.for("react.strict_mode") : 60108, l = e ? Symbol.for("react.profiler") : 60114, c = e ? Symbol.for("react.provider") : 60109, u = e ? Symbol.for("react.context") : 60110, d = e ? Symbol.for("react.async_mode") : 60111, f = e ? Symbol.for("react.concurrent_mode") : 60111, p = e ? Symbol.for("react.forward_ref") : 60112, h = e ? Symbol.for("react.suspense") : 60113, g = e ? Symbol.for("react.suspense_list") : 60120, m = e ? Symbol.for("react.memo") : 60115, I = e ? Symbol.for("react.lazy") : 60116, C = e ? Symbol.for("react.block") : 60121, b = e ? Symbol.for("react.fundamental") : 60117, y = e ? Symbol.for("react.responder") : 60118, v = e ? Symbol.for("react.scope") : 60119;
|
|
4603
4603
|
function O(_) {
|
|
4604
4604
|
if (typeof _ == "object" && _ !== null) {
|
|
4605
|
-
var
|
|
4606
|
-
switch (
|
|
4605
|
+
var A = _.$$typeof;
|
|
4606
|
+
switch (A) {
|
|
4607
4607
|
case r:
|
|
4608
4608
|
switch (_ = _.type, _) {
|
|
4609
4609
|
case d:
|
|
@@ -4622,11 +4622,11 @@ function requireReactIs_production_min() {
|
|
|
4622
4622
|
case c:
|
|
4623
4623
|
return _;
|
|
4624
4624
|
default:
|
|
4625
|
-
return
|
|
4625
|
+
return A;
|
|
4626
4626
|
}
|
|
4627
4627
|
}
|
|
4628
4628
|
case o:
|
|
4629
|
-
return
|
|
4629
|
+
return A;
|
|
4630
4630
|
}
|
|
4631
4631
|
}
|
|
4632
4632
|
}
|
|
@@ -4709,7 +4709,7 @@ function requireReactIs_development() {
|
|
|
4709
4709
|
}
|
|
4710
4710
|
}
|
|
4711
4711
|
}
|
|
4712
|
-
var _ = d,
|
|
4712
|
+
var _ = d, A = f, N = u, E = c, P = r, F = p, W = a, J = I, z = m, Y = o, Q = l, oe = s, ee = h, X = !1;
|
|
4713
4713
|
function ue(M) {
|
|
4714
4714
|
return X || (X = !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.")), we(M) || w(M) === d;
|
|
4715
4715
|
}
|
|
@@ -4737,7 +4737,7 @@ function requireReactIs_development() {
|
|
|
4737
4737
|
function U(M) {
|
|
4738
4738
|
return w(M) === m;
|
|
4739
4739
|
}
|
|
4740
|
-
function
|
|
4740
|
+
function re(M) {
|
|
4741
4741
|
return w(M) === o;
|
|
4742
4742
|
}
|
|
4743
4743
|
function Re(M) {
|
|
@@ -4749,7 +4749,7 @@ function requireReactIs_development() {
|
|
|
4749
4749
|
function L(M) {
|
|
4750
4750
|
return w(M) === h;
|
|
4751
4751
|
}
|
|
4752
|
-
reactIs_development.AsyncMode = _, reactIs_development.ConcurrentMode =
|
|
4752
|
+
reactIs_development.AsyncMode = _, reactIs_development.ConcurrentMode = A, reactIs_development.ContextConsumer = N, reactIs_development.ContextProvider = E, reactIs_development.Element = P, reactIs_development.ForwardRef = F, reactIs_development.Fragment = W, reactIs_development.Lazy = J, reactIs_development.Memo = z, reactIs_development.Portal = Y, reactIs_development.Profiler = Q, reactIs_development.StrictMode = oe, reactIs_development.Suspense = ee, reactIs_development.isAsyncMode = ue, reactIs_development.isConcurrentMode = we, reactIs_development.isContextConsumer = Ce, reactIs_development.isContextProvider = ce, reactIs_development.isElement = xe, reactIs_development.isForwardRef = te, reactIs_development.isFragment = de, reactIs_development.isLazy = j, reactIs_development.isMemo = U, reactIs_development.isPortal = re, reactIs_development.isProfiler = Re, reactIs_development.isStrictMode = Fe, reactIs_development.isSuspense = L, reactIs_development.isValidElementType = O, reactIs_development.typeOf = w;
|
|
4753
4753
|
}()), reactIs_development;
|
|
4754
4754
|
}
|
|
4755
4755
|
var hasRequiredReactIs;
|
|
@@ -6240,12 +6240,12 @@ function requireUtils() {
|
|
|
6240
6240
|
function g(v, O, w) {
|
|
6241
6241
|
return w ? /* @__PURE__ */ l.default.createElement(v.tag, (0, o.default)((0, o.default)({
|
|
6242
6242
|
key: O
|
|
6243
|
-
}, h(v.attrs)), w), (v.children || []).map(function(_,
|
|
6244
|
-
return g(_, "".concat(O, "-").concat(v.tag, "-").concat(
|
|
6243
|
+
}, h(v.attrs)), w), (v.children || []).map(function(_, A) {
|
|
6244
|
+
return g(_, "".concat(O, "-").concat(v.tag, "-").concat(A));
|
|
6245
6245
|
})) : /* @__PURE__ */ l.default.createElement(v.tag, (0, o.default)({
|
|
6246
6246
|
key: O
|
|
6247
|
-
}, h(v.attrs)), (v.children || []).map(function(_,
|
|
6248
|
-
return g(_, "".concat(O, "-").concat(v.tag, "-").concat(
|
|
6247
|
+
}, h(v.attrs)), (v.children || []).map(function(_, A) {
|
|
6248
|
+
return g(_, "".concat(O, "-").concat(v.tag, "-").concat(A));
|
|
6249
6249
|
}));
|
|
6250
6250
|
}
|
|
6251
6251
|
function m(v) {
|
|
@@ -6410,12 +6410,12 @@ function requireAntdIcon() {
|
|
|
6410
6410
|
var o = e(requireObjectSpread2()), a = e(requireSlicedToArray()), s = e(requireDefineProperty()), l = e(requireObjectWithoutProperties()), c = r(React__default), u = e(requireClassnames()), d = e(requireContext$2()), f = e(requireIconBase()), p = requireTwoTonePrimaryColor(), h = requireUtils(), g = ["className", "icon", "spin", "rotate", "tabIndex", "onClick", "twoToneColor"];
|
|
6411
6411
|
(0, p.setTwoToneColor)("#1890ff");
|
|
6412
6412
|
var m = /* @__PURE__ */ c.forwardRef(function(C, b) {
|
|
6413
|
-
var y, v = C.className, O = C.icon, w = C.spin, _ = C.rotate,
|
|
6413
|
+
var y, v = C.className, O = C.icon, w = C.spin, _ = C.rotate, A = C.tabIndex, N = C.onClick, E = C.twoToneColor, P = (0, l.default)(C, g), F = c.useContext(d.default), W = F.prefixCls, J = W === void 0 ? "anticon" : W, z = (0, u.default)(J, (y = {}, (0, s.default)(y, "".concat(J, "-").concat(O.name), !!O.name), (0, s.default)(y, "".concat(J, "-spin"), !!w || O.name === "loading"), y), v), Y = A;
|
|
6414
6414
|
Y === void 0 && N && (Y = -1);
|
|
6415
6415
|
var Q = _ ? {
|
|
6416
6416
|
msTransform: "rotate(".concat(_, "deg)"),
|
|
6417
6417
|
transform: "rotate(".concat(_, "deg)")
|
|
6418
|
-
} : void 0,
|
|
6418
|
+
} : void 0, oe = (0, h.normalizeTwoToneColors)(E), ee = (0, a.default)(oe, 2), X = ee[0], ue = ee[1];
|
|
6419
6419
|
return /* @__PURE__ */ c.createElement("span", (0, o.default)((0, o.default)({
|
|
6420
6420
|
role: "img",
|
|
6421
6421
|
"aria-label": O.name
|
|
@@ -6594,12 +6594,12 @@ function requireRegeneratorRuntime() {
|
|
|
6594
6594
|
try {
|
|
6595
6595
|
p({}, "");
|
|
6596
6596
|
} catch {
|
|
6597
|
-
p = function(Q,
|
|
6598
|
-
return Q[
|
|
6597
|
+
p = function(Q, oe, ee) {
|
|
6598
|
+
return Q[oe] = ee;
|
|
6599
6599
|
};
|
|
6600
6600
|
}
|
|
6601
|
-
function h(z, Y, Q,
|
|
6602
|
-
var ee = Y && Y.prototype instanceof I ? Y : I, X = Object.create(ee.prototype), ue = new
|
|
6601
|
+
function h(z, Y, Q, oe) {
|
|
6602
|
+
var ee = Y && Y.prototype instanceof I ? Y : I, X = Object.create(ee.prototype), ue = new F(oe || []);
|
|
6603
6603
|
return X._invoke = function(we, Ce, ce) {
|
|
6604
6604
|
var xe = "suspendedStart";
|
|
6605
6605
|
return function(te, de) {
|
|
@@ -6629,16 +6629,16 @@ function requireRegeneratorRuntime() {
|
|
|
6629
6629
|
} else
|
|
6630
6630
|
ce.method === "return" && ce.abrupt("return", ce.arg);
|
|
6631
6631
|
xe = "executing";
|
|
6632
|
-
var
|
|
6633
|
-
if (
|
|
6634
|
-
if (xe = ce.done ? "completed" : "suspendedYield",
|
|
6632
|
+
var re = g(we, Ce, ce);
|
|
6633
|
+
if (re.type === "normal") {
|
|
6634
|
+
if (xe = ce.done ? "completed" : "suspendedYield", re.arg === m)
|
|
6635
6635
|
continue;
|
|
6636
6636
|
return {
|
|
6637
|
-
value:
|
|
6637
|
+
value: re.arg,
|
|
6638
6638
|
done: ce.done
|
|
6639
6639
|
};
|
|
6640
6640
|
}
|
|
6641
|
-
|
|
6641
|
+
re.type === "throw" && (xe = "completed", ce.method = "throw", ce.arg = re.arg);
|
|
6642
6642
|
}
|
|
6643
6643
|
};
|
|
6644
6644
|
}(z, Q, ue), X;
|
|
@@ -6649,10 +6649,10 @@ function requireRegeneratorRuntime() {
|
|
|
6649
6649
|
type: "normal",
|
|
6650
6650
|
arg: z.call(Y, Q)
|
|
6651
6651
|
};
|
|
6652
|
-
} catch (
|
|
6652
|
+
} catch (oe) {
|
|
6653
6653
|
return {
|
|
6654
6654
|
type: "throw",
|
|
6655
|
-
arg:
|
|
6655
|
+
arg: oe
|
|
6656
6656
|
};
|
|
6657
6657
|
}
|
|
6658
6658
|
}
|
|
@@ -6678,7 +6678,7 @@ function requireRegeneratorRuntime() {
|
|
|
6678
6678
|
});
|
|
6679
6679
|
});
|
|
6680
6680
|
}
|
|
6681
|
-
function
|
|
6681
|
+
function A(z, Y) {
|
|
6682
6682
|
function Q(ee, X, ue, we) {
|
|
6683
6683
|
var Ce = g(z[ee], z, X);
|
|
6684
6684
|
if (Ce.type !== "throw") {
|
|
@@ -6695,14 +6695,14 @@ function requireRegeneratorRuntime() {
|
|
|
6695
6695
|
}
|
|
6696
6696
|
we(Ce.arg);
|
|
6697
6697
|
}
|
|
6698
|
-
var
|
|
6698
|
+
var oe;
|
|
6699
6699
|
this._invoke = function(ee, X) {
|
|
6700
6700
|
function ue() {
|
|
6701
6701
|
return new Y(function(we, Ce) {
|
|
6702
6702
|
Q(ee, X, we, Ce);
|
|
6703
6703
|
});
|
|
6704
6704
|
}
|
|
6705
|
-
return
|
|
6705
|
+
return oe = oe ? oe.then(ue, ue) : ue();
|
|
6706
6706
|
};
|
|
6707
6707
|
}
|
|
6708
6708
|
function N(z, Y) {
|
|
@@ -6715,10 +6715,10 @@ function requireRegeneratorRuntime() {
|
|
|
6715
6715
|
}
|
|
6716
6716
|
return m;
|
|
6717
6717
|
}
|
|
6718
|
-
var
|
|
6719
|
-
if (
|
|
6720
|
-
return Y.method = "throw", Y.arg =
|
|
6721
|
-
var ee =
|
|
6718
|
+
var oe = g(Q, z.iterator, Y.arg);
|
|
6719
|
+
if (oe.type === "throw")
|
|
6720
|
+
return Y.method = "throw", Y.arg = oe.arg, Y.delegate = null, m;
|
|
6721
|
+
var ee = oe.arg;
|
|
6722
6722
|
return ee ? ee.done ? (Y[z.resultName] = ee.value, Y.next = z.nextLoc, Y.method !== "return" && (Y.method = "next", Y.arg = void 0), Y.delegate = null, m) : ee : (Y.method = "throw", Y.arg = new TypeError("iterator result is not an object"), Y.delegate = null, m);
|
|
6723
6723
|
}
|
|
6724
6724
|
function E(z) {
|
|
@@ -6731,7 +6731,7 @@ function requireRegeneratorRuntime() {
|
|
|
6731
6731
|
var Y = z.completion || {};
|
|
6732
6732
|
Y.type = "normal", delete Y.arg, z.completion = Y;
|
|
6733
6733
|
}
|
|
6734
|
-
function
|
|
6734
|
+
function F(z) {
|
|
6735
6735
|
this.tryEntries = [{
|
|
6736
6736
|
tryLoc: "root"
|
|
6737
6737
|
}], z.forEach(E, this), this.reset(!0);
|
|
@@ -6744,13 +6744,13 @@ function requireRegeneratorRuntime() {
|
|
|
6744
6744
|
if (typeof z.next == "function")
|
|
6745
6745
|
return z;
|
|
6746
6746
|
if (!isNaN(z.length)) {
|
|
6747
|
-
var Q = -1,
|
|
6747
|
+
var Q = -1, oe = function ee() {
|
|
6748
6748
|
for (; ++Q < z.length; )
|
|
6749
6749
|
if (l.call(z, Q))
|
|
6750
6750
|
return ee.value = z[Q], ee.done = !1, ee;
|
|
6751
6751
|
return ee.value = void 0, ee.done = !0, ee;
|
|
6752
6752
|
};
|
|
6753
|
-
return
|
|
6753
|
+
return oe.next = oe;
|
|
6754
6754
|
}
|
|
6755
6755
|
}
|
|
6756
6756
|
return {
|
|
@@ -6772,11 +6772,11 @@ function requireRegeneratorRuntime() {
|
|
|
6772
6772
|
return {
|
|
6773
6773
|
__await: z
|
|
6774
6774
|
};
|
|
6775
|
-
}, _(
|
|
6775
|
+
}, _(A.prototype), p(A.prototype, d, function() {
|
|
6776
6776
|
return this;
|
|
6777
|
-
}), a.AsyncIterator =
|
|
6777
|
+
}), a.AsyncIterator = A, a.async = function(z, Y, Q, oe, ee) {
|
|
6778
6778
|
ee === void 0 && (ee = Promise);
|
|
6779
|
-
var X = new
|
|
6779
|
+
var X = new A(h(z, Y, Q, oe), ee);
|
|
6780
6780
|
return a.isGeneratorFunction(Y) ? X : X.next().then(function(ue) {
|
|
6781
6781
|
return ue.done ? ue.value : X.next();
|
|
6782
6782
|
});
|
|
@@ -6788,16 +6788,16 @@ function requireRegeneratorRuntime() {
|
|
|
6788
6788
|
var Y = [];
|
|
6789
6789
|
for (var Q in z)
|
|
6790
6790
|
Y.push(Q);
|
|
6791
|
-
return Y.reverse(), function
|
|
6791
|
+
return Y.reverse(), function oe() {
|
|
6792
6792
|
for (; Y.length; ) {
|
|
6793
6793
|
var ee = Y.pop();
|
|
6794
6794
|
if (ee in z)
|
|
6795
|
-
return
|
|
6795
|
+
return oe.value = ee, oe.done = !1, oe;
|
|
6796
6796
|
}
|
|
6797
|
-
return
|
|
6797
|
+
return oe.done = !0, oe;
|
|
6798
6798
|
};
|
|
6799
|
-
}, a.values = W,
|
|
6800
|
-
constructor:
|
|
6799
|
+
}, a.values = W, F.prototype = {
|
|
6800
|
+
constructor: F,
|
|
6801
6801
|
reset: function(Y) {
|
|
6802
6802
|
if (this.prev = 0, this.next = 0, this.sent = this._sent = void 0, this.done = !1, this.delegate = null, this.method = "next", this.arg = void 0, this.tryEntries.forEach(P), !Y)
|
|
6803
6803
|
for (var Q in this)
|
|
@@ -6814,35 +6814,35 @@ function requireRegeneratorRuntime() {
|
|
|
6814
6814
|
if (this.done)
|
|
6815
6815
|
throw Y;
|
|
6816
6816
|
var Q = this;
|
|
6817
|
-
function
|
|
6817
|
+
function oe(ce, xe) {
|
|
6818
6818
|
return ue.type = "throw", ue.arg = Y, Q.next = ce, xe && (Q.method = "next", Q.arg = void 0), !!xe;
|
|
6819
6819
|
}
|
|
6820
6820
|
for (var ee = this.tryEntries.length - 1; ee >= 0; --ee) {
|
|
6821
6821
|
var X = this.tryEntries[ee], ue = X.completion;
|
|
6822
6822
|
if (X.tryLoc === "root")
|
|
6823
|
-
return
|
|
6823
|
+
return oe("end");
|
|
6824
6824
|
if (X.tryLoc <= this.prev) {
|
|
6825
6825
|
var we = l.call(X, "catchLoc"), Ce = l.call(X, "finallyLoc");
|
|
6826
6826
|
if (we && Ce) {
|
|
6827
6827
|
if (this.prev < X.catchLoc)
|
|
6828
|
-
return
|
|
6828
|
+
return oe(X.catchLoc, !0);
|
|
6829
6829
|
if (this.prev < X.finallyLoc)
|
|
6830
|
-
return
|
|
6830
|
+
return oe(X.finallyLoc);
|
|
6831
6831
|
} else if (we) {
|
|
6832
6832
|
if (this.prev < X.catchLoc)
|
|
6833
|
-
return
|
|
6833
|
+
return oe(X.catchLoc, !0);
|
|
6834
6834
|
} else {
|
|
6835
6835
|
if (!Ce)
|
|
6836
6836
|
throw new Error("try statement without catch or finally");
|
|
6837
6837
|
if (this.prev < X.finallyLoc)
|
|
6838
|
-
return
|
|
6838
|
+
return oe(X.finallyLoc);
|
|
6839
6839
|
}
|
|
6840
6840
|
}
|
|
6841
6841
|
}
|
|
6842
6842
|
},
|
|
6843
6843
|
abrupt: function(Y, Q) {
|
|
6844
|
-
for (var
|
|
6845
|
-
var ee = this.tryEntries[
|
|
6844
|
+
for (var oe = this.tryEntries.length - 1; oe >= 0; --oe) {
|
|
6845
|
+
var ee = this.tryEntries[oe];
|
|
6846
6846
|
if (ee.tryLoc <= this.prev && l.call(ee, "finallyLoc") && this.prev < ee.finallyLoc) {
|
|
6847
6847
|
var X = ee;
|
|
6848
6848
|
break;
|
|
@@ -6859,30 +6859,30 @@ function requireRegeneratorRuntime() {
|
|
|
6859
6859
|
},
|
|
6860
6860
|
finish: function(Y) {
|
|
6861
6861
|
for (var Q = this.tryEntries.length - 1; Q >= 0; --Q) {
|
|
6862
|
-
var
|
|
6863
|
-
if (
|
|
6864
|
-
return this.complete(
|
|
6862
|
+
var oe = this.tryEntries[Q];
|
|
6863
|
+
if (oe.finallyLoc === Y)
|
|
6864
|
+
return this.complete(oe.completion, oe.afterLoc), P(oe), m;
|
|
6865
6865
|
}
|
|
6866
6866
|
},
|
|
6867
6867
|
catch: function(Y) {
|
|
6868
6868
|
for (var Q = this.tryEntries.length - 1; Q >= 0; --Q) {
|
|
6869
|
-
var
|
|
6870
|
-
if (
|
|
6871
|
-
var ee =
|
|
6869
|
+
var oe = this.tryEntries[Q];
|
|
6870
|
+
if (oe.tryLoc === Y) {
|
|
6871
|
+
var ee = oe.completion;
|
|
6872
6872
|
if (ee.type === "throw") {
|
|
6873
6873
|
var X = ee.arg;
|
|
6874
|
-
P(
|
|
6874
|
+
P(oe);
|
|
6875
6875
|
}
|
|
6876
6876
|
return X;
|
|
6877
6877
|
}
|
|
6878
6878
|
}
|
|
6879
6879
|
throw new Error("illegal catch attempt");
|
|
6880
6880
|
},
|
|
6881
|
-
delegateYield: function(Y, Q,
|
|
6881
|
+
delegateYield: function(Y, Q, oe) {
|
|
6882
6882
|
return this.delegate = {
|
|
6883
6883
|
iterator: W(Y),
|
|
6884
6884
|
resultName: Q,
|
|
6885
|
-
nextLoc:
|
|
6885
|
+
nextLoc: oe
|
|
6886
6886
|
}, this.method === "next" && (this.arg = void 0), m;
|
|
6887
6887
|
}
|
|
6888
6888
|
}, a;
|
|
@@ -7489,14 +7489,14 @@ Schema.prototype = {
|
|
|
7489
7489
|
return asyncMap(g, c, function(C, b) {
|
|
7490
7490
|
var y = C.rule, v = (y.type === "object" || y.type === "array") && (typeof y.fields == "object" || typeof y.defaultField == "object");
|
|
7491
7491
|
v = v && (y.required || !y.required && C.value), y.field = C.field;
|
|
7492
|
-
function O(
|
|
7492
|
+
function O(A, N) {
|
|
7493
7493
|
return _extends(_extends({}, N), {}, {
|
|
7494
|
-
fullField: y.fullField + "." +
|
|
7494
|
+
fullField: y.fullField + "." + A
|
|
7495
7495
|
});
|
|
7496
7496
|
}
|
|
7497
|
-
function w(
|
|
7498
|
-
|
|
7499
|
-
var N =
|
|
7497
|
+
function w(A) {
|
|
7498
|
+
A === void 0 && (A = []);
|
|
7499
|
+
var N = A;
|
|
7500
7500
|
if (Array.isArray(N) || (N = [N]), !c.suppressWarning && N.length && Schema.warning("async-validator:", N), N.length && y.message !== void 0 && (N = [].concat(y.message)), N = N.map(complementError(y)), c.first && N.length)
|
|
7501
7501
|
return I[y.field] = 1, b(N);
|
|
7502
7502
|
if (!v)
|
|
@@ -7509,10 +7509,10 @@ Schema.prototype = {
|
|
|
7509
7509
|
for (var P in C.value)
|
|
7510
7510
|
C.value.hasOwnProperty(P) && (E[P] = y.defaultField);
|
|
7511
7511
|
E = _extends(_extends({}, E), C.rule.fields);
|
|
7512
|
-
for (var
|
|
7513
|
-
if (E.hasOwnProperty(
|
|
7514
|
-
var W = Array.isArray(E[
|
|
7515
|
-
E[
|
|
7512
|
+
for (var F in E)
|
|
7513
|
+
if (E.hasOwnProperty(F)) {
|
|
7514
|
+
var W = Array.isArray(E[F]) ? E[F] : [E[F]];
|
|
7515
|
+
E[F] = W.map(O.bind(null, F));
|
|
7516
7516
|
}
|
|
7517
7517
|
var J = new Schema(E);
|
|
7518
7518
|
J.messages(c.messages), C.rule.options && (C.rule.options.messages = c.messages, C.rule.options.error = c.error), J.validate(C.value, C.rule.options || c, function(z) {
|
|
@@ -7524,8 +7524,8 @@ Schema.prototype = {
|
|
|
7524
7524
|
var _;
|
|
7525
7525
|
y.asyncValidator ? _ = y.asyncValidator(y, C.value, w, C.source, c) : y.validator && (_ = y.validator(y, C.value, w, C.source, c), _ === !0 ? w() : _ === !1 ? w(y.message || y.field + " fails") : _ instanceof Array ? w(_) : _ instanceof Error && w(_.message)), _ && _.then && _.then(function() {
|
|
7526
7526
|
return w();
|
|
7527
|
-
}, function(
|
|
7528
|
-
return w(
|
|
7527
|
+
}, function(A) {
|
|
7528
|
+
return w(A);
|
|
7529
7529
|
});
|
|
7530
7530
|
}, function(C) {
|
|
7531
7531
|
d(C);
|
|
@@ -7787,8 +7787,8 @@ function validateRules(e, r, o, a, s, l) {
|
|
|
7787
7787
|
return h ? _objectSpread2$1(_objectSpread2$1({}, p), {}, {
|
|
7788
7788
|
validator: function(m, I, C) {
|
|
7789
7789
|
var b = !1, y = function() {
|
|
7790
|
-
for (var w = arguments.length, _ = new Array(w),
|
|
7791
|
-
_[
|
|
7790
|
+
for (var w = arguments.length, _ = new Array(w), A = 0; A < w; A++)
|
|
7791
|
+
_[A] = arguments[A];
|
|
7792
7792
|
Promise.resolve().then(function() {
|
|
7793
7793
|
warningOnce(!b, "Your validator function has already return a promise. `callback` will be ignored."), b || C.apply(void 0, _);
|
|
7794
7794
|
});
|
|
@@ -7945,8 +7945,8 @@ var Field = /* @__PURE__ */ function(e) {
|
|
|
7945
7945
|
break;
|
|
7946
7946
|
}
|
|
7947
7947
|
case "dependenciesUpdate": {
|
|
7948
|
-
var
|
|
7949
|
-
if (
|
|
7948
|
+
var A = I.map(getNamePath);
|
|
7949
|
+
if (A.some(function(N) {
|
|
7950
7950
|
return containsNamePath(p.relatedFields, N);
|
|
7951
7951
|
})) {
|
|
7952
7952
|
s.reRender();
|
|
@@ -7971,8 +7971,8 @@ var Field = /* @__PURE__ */ function(e) {
|
|
|
7971
7971
|
var _ = w.validateTrigger;
|
|
7972
7972
|
if (!_)
|
|
7973
7973
|
return !0;
|
|
7974
|
-
var
|
|
7975
|
-
return
|
|
7974
|
+
var A = toArray$2(_);
|
|
7975
|
+
return A.includes(y);
|
|
7976
7976
|
}));
|
|
7977
7977
|
var O = validateRules(f, p, v, d, I, C);
|
|
7978
7978
|
return O.catch(function(w) {
|
|
@@ -8025,14 +8025,14 @@ var Field = /* @__PURE__ */ function(e) {
|
|
|
8025
8025
|
var f = s.props.fieldContext.getFieldsValue, p = s.getNamePath();
|
|
8026
8026
|
return getValue(d || f(!0), p);
|
|
8027
8027
|
}, s.getControlled = function() {
|
|
8028
|
-
var d = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, f = s.props, p = f.trigger, h = f.validateTrigger, g = f.getValueFromEvent, m = f.normalize, I = f.valuePropName, C = f.getValueProps, b = f.fieldContext, y = h !== void 0 ? h : b.validateTrigger, v = s.getNamePath(), O = b.getInternalHooks, w = b.getFieldsValue, _ = O(HOOK_MARK),
|
|
8028
|
+
var d = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, f = s.props, p = f.trigger, h = f.validateTrigger, g = f.getValueFromEvent, m = f.normalize, I = f.valuePropName, C = f.getValueProps, b = f.fieldContext, y = h !== void 0 ? h : b.validateTrigger, v = s.getNamePath(), O = b.getInternalHooks, w = b.getFieldsValue, _ = O(HOOK_MARK), A = _.dispatch, N = s.getValue(), E = C || function(J) {
|
|
8029
8029
|
return _defineProperty$1({}, I, J);
|
|
8030
|
-
}, P = d[p],
|
|
8031
|
-
|
|
8030
|
+
}, P = d[p], F = _objectSpread2$1(_objectSpread2$1({}, d), E(N));
|
|
8031
|
+
F[p] = function() {
|
|
8032
8032
|
s.touched = !0, s.dirty = !0;
|
|
8033
8033
|
for (var J, z = arguments.length, Y = new Array(z), Q = 0; Q < z; Q++)
|
|
8034
8034
|
Y[Q] = arguments[Q];
|
|
8035
|
-
g ? J = g.apply(void 0, Y) : J = defaultGetValueFromEvent.apply(void 0, [I].concat(Y)), m && (J = m(J, N, w(!0))),
|
|
8035
|
+
g ? J = g.apply(void 0, Y) : J = defaultGetValueFromEvent.apply(void 0, [I].concat(Y)), m && (J = m(J, N, w(!0))), A({
|
|
8036
8036
|
type: "updateValue",
|
|
8037
8037
|
namePath: v,
|
|
8038
8038
|
value: J
|
|
@@ -8040,17 +8040,17 @@ var Field = /* @__PURE__ */ function(e) {
|
|
|
8040
8040
|
};
|
|
8041
8041
|
var W = toArray$2(y || []);
|
|
8042
8042
|
return W.forEach(function(J) {
|
|
8043
|
-
var z =
|
|
8044
|
-
|
|
8043
|
+
var z = F[J];
|
|
8044
|
+
F[J] = function() {
|
|
8045
8045
|
z && z.apply(void 0, arguments);
|
|
8046
8046
|
var Y = s.props.rules;
|
|
8047
|
-
Y && Y.length &&
|
|
8047
|
+
Y && Y.length && A({
|
|
8048
8048
|
type: "validateField",
|
|
8049
8049
|
namePath: v,
|
|
8050
8050
|
triggerName: J
|
|
8051
8051
|
});
|
|
8052
8052
|
};
|
|
8053
|
-
}),
|
|
8053
|
+
}), F;
|
|
8054
8054
|
}, a.fieldContext) {
|
|
8055
8055
|
var l = a.fieldContext.getInternalHooks, c = l(HOOK_MARK), u = c.initEntityValue;
|
|
8056
8056
|
u(_assertThisInitialized(s));
|
|
@@ -8134,9 +8134,9 @@ var List = function(r) {
|
|
|
8134
8134
|
},
|
|
8135
8135
|
remove: function(N) {
|
|
8136
8136
|
var E = O(), P = new Set(Array.isArray(N) ? N : [N]);
|
|
8137
|
-
P.size <= 0 || (f.keys = f.keys.filter(function(
|
|
8137
|
+
P.size <= 0 || (f.keys = f.keys.filter(function(F, W) {
|
|
8138
8138
|
return !P.has(W);
|
|
8139
|
-
}), y(E.filter(function(
|
|
8139
|
+
}), y(E.filter(function(F, W) {
|
|
8140
8140
|
return !P.has(W);
|
|
8141
8141
|
})));
|
|
8142
8142
|
},
|
|
@@ -8147,7 +8147,7 @@ var List = function(r) {
|
|
|
8147
8147
|
}
|
|
8148
8148
|
}
|
|
8149
8149
|
}, _ = b || [];
|
|
8150
|
-
return Array.isArray(_) || (_ = [], process.env.NODE_ENV !== "production" && warningOnce(!1, "Current value of '".concat(h.join(" > "), "' is not an array type."))), s(_.map(function(
|
|
8150
|
+
return Array.isArray(_) || (_ = [], process.env.NODE_ENV !== "production" && warningOnce(!1, "Current value of '".concat(h.join(" > "), "' is not an array type."))), s(_.map(function(A, N) {
|
|
8151
8151
|
var E = f.keys[N];
|
|
8152
8152
|
return E === void 0 && (f.keys[N] = f.id, E = f.keys[N], f.id += 1), {
|
|
8153
8153
|
name: N,
|
|
@@ -8722,14 +8722,14 @@ var FormContext = /* @__PURE__ */ React.createContext({
|
|
|
8722
8722
|
children: l
|
|
8723
8723
|
});
|
|
8724
8724
|
}, Form$2 = function(r, o) {
|
|
8725
|
-
var a = r.name, s = r.initialValues, l = r.fields, c = r.form, u = r.preserve, d = r.children, f = r.component, p = f === void 0 ? "form" : f, h = r.validateMessages, g = r.validateTrigger, m = g === void 0 ? "onChange" : g, I = r.onValuesChange, C = r.onFieldsChange, b = r.onFinish, y = r.onFinishFailed, v = _objectWithoutProperties(r, ["name", "initialValues", "fields", "form", "preserve", "children", "component", "validateMessages", "validateTrigger", "onValuesChange", "onFieldsChange", "onFinish", "onFinishFailed"]), O = React.useContext(FormContext), w = useForm(c), _ = _slicedToArray(w, 1),
|
|
8725
|
+
var a = r.name, s = r.initialValues, l = r.fields, c = r.form, u = r.preserve, d = r.children, f = r.component, p = f === void 0 ? "form" : f, h = r.validateMessages, g = r.validateTrigger, m = g === void 0 ? "onChange" : g, I = r.onValuesChange, C = r.onFieldsChange, b = r.onFinish, y = r.onFinishFailed, v = _objectWithoutProperties(r, ["name", "initialValues", "fields", "form", "preserve", "children", "component", "validateMessages", "validateTrigger", "onValuesChange", "onFieldsChange", "onFinish", "onFinishFailed"]), O = React.useContext(FormContext), w = useForm(c), _ = _slicedToArray(w, 1), A = _[0], N = A.getInternalHooks(HOOK_MARK), E = N.useSubscribe, P = N.setInitialValues, F = N.setCallbacks, W = N.setValidateMessages, J = N.setPreserve;
|
|
8726
8726
|
React.useImperativeHandle(o, function() {
|
|
8727
|
-
return
|
|
8727
|
+
return A;
|
|
8728
8728
|
}), React.useEffect(function() {
|
|
8729
|
-
return O.registerForm(a,
|
|
8729
|
+
return O.registerForm(a, A), function() {
|
|
8730
8730
|
O.unregisterForm(a);
|
|
8731
8731
|
};
|
|
8732
|
-
}, [O,
|
|
8732
|
+
}, [O, A, a]), W(_objectSpread2$1(_objectSpread2$1({}, O.validateMessages), h)), F({
|
|
8733
8733
|
onValuesChange: I,
|
|
8734
8734
|
onFieldsChange: function(Ce) {
|
|
8735
8735
|
if (O.triggerFormChange(a, Ce), C) {
|
|
@@ -8747,26 +8747,26 @@ var FormContext = /* @__PURE__ */ React.createContext({
|
|
|
8747
8747
|
P(s, !z.current), z.current || (z.current = !0);
|
|
8748
8748
|
var Y = d, Q = typeof d == "function";
|
|
8749
8749
|
if (Q) {
|
|
8750
|
-
var
|
|
8751
|
-
Y = d(
|
|
8750
|
+
var oe = A.getFieldsValue(!0);
|
|
8751
|
+
Y = d(oe, A);
|
|
8752
8752
|
}
|
|
8753
8753
|
E(!Q);
|
|
8754
8754
|
var ee = React.useRef();
|
|
8755
8755
|
React.useEffect(function() {
|
|
8756
|
-
isSimilar(ee.current || [], l || []) ||
|
|
8757
|
-
}, [l,
|
|
8756
|
+
isSimilar(ee.current || [], l || []) || A.setFields(l || []), ee.current = l;
|
|
8757
|
+
}, [l, A]);
|
|
8758
8758
|
var X = React.useMemo(function() {
|
|
8759
|
-
return _objectSpread2$1(_objectSpread2$1({},
|
|
8759
|
+
return _objectSpread2$1(_objectSpread2$1({}, A), {}, {
|
|
8760
8760
|
validateTrigger: m
|
|
8761
8761
|
});
|
|
8762
|
-
}, [
|
|
8762
|
+
}, [A, m]), ue = /* @__PURE__ */ jsx(Context.Provider, {
|
|
8763
8763
|
value: X,
|
|
8764
8764
|
children: Y
|
|
8765
8765
|
});
|
|
8766
8766
|
return p === !1 ? ue : /* @__PURE__ */ jsx(p, {
|
|
8767
8767
|
...v,
|
|
8768
8768
|
onSubmit: function(Ce) {
|
|
8769
|
-
Ce.preventDefault(), Ce.stopPropagation(),
|
|
8769
|
+
Ce.preventDefault(), Ce.stopPropagation(), A.submit();
|
|
8770
8770
|
},
|
|
8771
8771
|
children: ue
|
|
8772
8772
|
});
|
|
@@ -9185,8 +9185,8 @@ function requireLocaleReceiver() {
|
|
|
9185
9185
|
return (0, l.default)(C, [{
|
|
9186
9186
|
key: "getLocale",
|
|
9187
9187
|
value: function() {
|
|
9188
|
-
var y = this.props, v = y.componentName, O = y.defaultLocale, w = O || f.default[v || "global"], _ = this.context,
|
|
9189
|
-
return (0, a.default)((0, a.default)({}, typeof w == "function" ? w() : w),
|
|
9188
|
+
var y = this.props, v = y.componentName, O = y.defaultLocale, w = O || f.default[v || "global"], _ = this.context, A = v && _ ? _[v] : {};
|
|
9189
|
+
return (0, a.default)((0, a.default)({}, typeof w == "function" ? w() : w), A || {});
|
|
9190
9190
|
}
|
|
9191
9191
|
}, {
|
|
9192
9192
|
key: "getLocaleCode",
|
|
@@ -9324,11 +9324,11 @@ function requireEmpty() {
|
|
|
9324
9324
|
y.indexOf(O[w]) < 0 && Object.prototype.propertyIsEnumerable.call(b, O[w]) && (v[O[w]] = b[O[w]]);
|
|
9325
9325
|
return v;
|
|
9326
9326
|
}, g = /* @__PURE__ */ l.createElement(f.default, null), m = /* @__PURE__ */ l.createElement(p.default, null), I = function(y) {
|
|
9327
|
-
var v = y.className, O = y.prefixCls, w = y.image, _ = w === void 0 ? g : w,
|
|
9327
|
+
var v = y.className, O = y.prefixCls, w = y.image, _ = w === void 0 ? g : w, A = y.description, N = y.children, E = y.imageStyle, P = h(y, ["className", "prefixCls", "image", "description", "children", "imageStyle"]), F = l.useContext(u.ConfigContext), W = F.getPrefixCls, J = F.direction;
|
|
9328
9328
|
return /* @__PURE__ */ l.createElement(d.default, {
|
|
9329
9329
|
componentName: "Empty"
|
|
9330
9330
|
}, function(z) {
|
|
9331
|
-
var Y, Q = W("empty", O),
|
|
9331
|
+
var Y, Q = W("empty", O), oe = typeof A < "u" ? A : z.description, ee = typeof oe == "string" ? oe : "empty", X = null;
|
|
9332
9332
|
return typeof _ == "string" ? X = /* @__PURE__ */ l.createElement("img", {
|
|
9333
9333
|
alt: ee,
|
|
9334
9334
|
src: _
|
|
@@ -9337,9 +9337,9 @@ function requireEmpty() {
|
|
|
9337
9337
|
}, P), /* @__PURE__ */ l.createElement("div", {
|
|
9338
9338
|
className: "".concat(Q, "-image"),
|
|
9339
9339
|
style: E
|
|
9340
|
-
}, X),
|
|
9340
|
+
}, X), oe && /* @__PURE__ */ l.createElement("div", {
|
|
9341
9341
|
className: "".concat(Q, "-description")
|
|
9342
|
-
},
|
|
9342
|
+
}, oe), N && /* @__PURE__ */ l.createElement("div", {
|
|
9343
9343
|
className: "".concat(Q, "-footer")
|
|
9344
9344
|
}, N));
|
|
9345
9345
|
});
|
|
@@ -9572,7 +9572,7 @@ const useStepQueue = function(e, r) {
|
|
|
9572
9572
|
}, []), [l, s];
|
|
9573
9573
|
};
|
|
9574
9574
|
function useStatus(e, r, o, a) {
|
|
9575
|
-
var s = a.motionEnter, l = s === void 0 ? !0 : s, c = a.motionAppear, u = c === void 0 ? !0 : c, d = a.motionLeave, f = d === void 0 ? !0 : d, p = a.motionDeadline, h = a.motionLeaveImmediately, g = a.onAppearPrepare, m = a.onEnterPrepare, I = a.onLeavePrepare, C = a.onAppearStart, b = a.onEnterStart, y = a.onLeaveStart, v = a.onAppearActive, O = a.onEnterActive, w = a.onLeaveActive, _ = a.onAppearEnd,
|
|
9575
|
+
var s = a.motionEnter, l = s === void 0 ? !0 : s, c = a.motionAppear, u = c === void 0 ? !0 : c, d = a.motionLeave, f = d === void 0 ? !0 : d, p = a.motionDeadline, h = a.motionLeaveImmediately, g = a.onAppearPrepare, m = a.onEnterPrepare, I = a.onLeavePrepare, C = a.onAppearStart, b = a.onEnterStart, y = a.onLeaveStart, v = a.onAppearActive, O = a.onEnterActive, w = a.onLeaveActive, _ = a.onAppearEnd, A = a.onEnterEnd, N = a.onLeaveEnd, E = a.onVisibleChanged, P = useMountStatus(), F = _slicedToArray(P, 2), W = F[0], J = F[1], z = useMountStatus(STATUS_NONE), Y = _slicedToArray(z, 2), Q = Y[0], oe = Y[1], ee = useMountStatus(null), X = _slicedToArray(ee, 2), ue = X[0], we = X[1], Ce = useRef(!1), ce = useRef(null), xe = useRef(!1), te = useRef(null);
|
|
9576
9576
|
function de() {
|
|
9577
9577
|
var yt = o();
|
|
9578
9578
|
return yt || te.current;
|
|
@@ -9582,10 +9582,10 @@ function useStatus(e, r, o, a) {
|
|
|
9582
9582
|
var Tt = de();
|
|
9583
9583
|
if (!(yt && !yt.deadline && yt.target !== Tt)) {
|
|
9584
9584
|
var Ot;
|
|
9585
|
-
Q === STATUS_APPEAR && j.current ? Ot = _ == null ? void 0 : _(Tt, yt) : Q === STATUS_ENTER && j.current ? Ot =
|
|
9585
|
+
Q === STATUS_APPEAR && j.current ? Ot = _ == null ? void 0 : _(Tt, yt) : Q === STATUS_ENTER && j.current ? Ot = A == null ? void 0 : A(Tt, yt) : Q === STATUS_LEAVE && j.current && (Ot = N == null ? void 0 : N(Tt, yt)), Ot !== !1 && !xe.current && (oe(STATUS_NONE), we(null));
|
|
9586
9586
|
}
|
|
9587
9587
|
}
|
|
9588
|
-
var
|
|
9588
|
+
var re = useDomMotionEvents(U), Re = _slicedToArray(re, 1), Fe = Re[0], L = React.useMemo(function() {
|
|
9589
9589
|
var yt, Tt, Ot;
|
|
9590
9590
|
switch (Q) {
|
|
9591
9591
|
case "appear":
|
|
@@ -9617,10 +9617,10 @@ function useStatus(e, r, o, a) {
|
|
|
9617
9617
|
var yt = Ce.current;
|
|
9618
9618
|
Ce.current = !0;
|
|
9619
9619
|
var Tt;
|
|
9620
|
-
!yt && r && u && (Tt = STATUS_APPEAR), yt && r && l && (Tt = STATUS_ENTER), (yt && !r && f || !yt && h && !r && f) && (Tt = STATUS_LEAVE), Tt && (
|
|
9620
|
+
!yt && r && u && (Tt = STATUS_APPEAR), yt && r && l && (Tt = STATUS_ENTER), (yt && !r && f || !yt && h && !r && f) && (Tt = STATUS_LEAVE), Tt && (oe(Tt), Ne());
|
|
9621
9621
|
}
|
|
9622
9622
|
}, [r]), useEffect(function() {
|
|
9623
|
-
(Q === STATUS_APPEAR && !u || Q === STATUS_ENTER && !l || Q === STATUS_LEAVE && !f) &&
|
|
9623
|
+
(Q === STATUS_APPEAR && !u || Q === STATUS_ENTER && !l || Q === STATUS_LEAVE && !f) && oe(STATUS_NONE);
|
|
9624
9624
|
}, [u, l, f]), useEffect(function() {
|
|
9625
9625
|
return function() {
|
|
9626
9626
|
clearTimeout(ce.current), xe.current = !0;
|
|
@@ -9661,9 +9661,9 @@ function genCSSMotion(e) {
|
|
|
9661
9661
|
return null;
|
|
9662
9662
|
}
|
|
9663
9663
|
}
|
|
9664
|
-
var O = useStatus(C, u, v, s), w = _slicedToArray(O, 4), _ = w[0],
|
|
9664
|
+
var O = useStatus(C, u, v, s), w = _slicedToArray(O, 4), _ = w[0], A = w[1], N = w[2], E = w[3], P = useRef(l);
|
|
9665
9665
|
P.current = l;
|
|
9666
|
-
var
|
|
9666
|
+
var F = React.useCallback(function(Q) {
|
|
9667
9667
|
b.current = Q, fillRef(P.current, Q);
|
|
9668
9668
|
}, []), W, J = _objectSpread2$1(_objectSpread2$1({}, I), {}, {
|
|
9669
9669
|
visible: u
|
|
@@ -9671,19 +9671,19 @@ function genCSSMotion(e) {
|
|
|
9671
9671
|
if (!h)
|
|
9672
9672
|
W = null;
|
|
9673
9673
|
else if (_ === STATUS_NONE || !o(s))
|
|
9674
|
-
E ? W = h(_objectSpread2$1({}, J),
|
|
9674
|
+
E ? W = h(_objectSpread2$1({}, J), F) : f ? p ? W = h(_objectSpread2$1(_objectSpread2$1({}, J), {}, {
|
|
9675
9675
|
style: {
|
|
9676
9676
|
display: "none"
|
|
9677
9677
|
}
|
|
9678
|
-
}),
|
|
9678
|
+
}), F) : W = null : W = h(_objectSpread2$1(_objectSpread2$1({}, J), {}, {
|
|
9679
9679
|
className: m
|
|
9680
|
-
}),
|
|
9680
|
+
}), F);
|
|
9681
9681
|
else {
|
|
9682
9682
|
var z, Y;
|
|
9683
|
-
|
|
9683
|
+
A === STEP_PREPARE ? Y = "prepare" : isActive(A) ? Y = "active" : A === STEP_START && (Y = "start"), W = h(_objectSpread2$1(_objectSpread2$1({}, J), {}, {
|
|
9684
9684
|
className: classnamesExports(getTransitionName$1(g, _), (z = {}, _defineProperty$1(z, getTransitionName$1(g, "".concat(_, "-").concat(Y)), Y), _defineProperty$1(z, g, typeof g == "string"), z)),
|
|
9685
9685
|
style: N
|
|
9686
|
-
}),
|
|
9686
|
+
}), F);
|
|
9687
9687
|
}
|
|
9688
9688
|
return /* @__PURE__ */ jsx(DomWrapper, {
|
|
9689
9689
|
ref: y,
|
|
@@ -9969,8 +9969,8 @@ var Notification = /* @__PURE__ */ function(e) {
|
|
|
9969
9969
|
noticeKey: v || y,
|
|
9970
9970
|
updateMark: b,
|
|
9971
9971
|
onClose: function(_) {
|
|
9972
|
-
var
|
|
9973
|
-
s.remove(_), (
|
|
9972
|
+
var A;
|
|
9973
|
+
s.remove(_), (A = I.onClose) === null || A === void 0 || A.call(I);
|
|
9974
9974
|
},
|
|
9975
9975
|
onClick: I.onClick,
|
|
9976
9976
|
children: I.content
|
|
@@ -10273,15 +10273,15 @@ function requireNotice() {
|
|
|
10273
10273
|
}, {
|
|
10274
10274
|
key: "render",
|
|
10275
10275
|
value: function() {
|
|
10276
|
-
var C = this, b = this.props, y = b.prefixCls, v = b.className, O = b.closable, w = b.closeIcon, _ = b.style,
|
|
10276
|
+
var C = this, b = this.props, y = b.prefixCls, v = b.className, O = b.closable, w = b.closeIcon, _ = b.style, A = b.onClick, N = b.children, E = b.holder, P = "".concat(y, "-notice"), F = Object.keys(this.props).reduce(function(J, z) {
|
|
10277
10277
|
return (z.substr(0, 5) === "data-" || z.substr(0, 5) === "aria-" || z === "role") && (J[z] = C.props[z]), J;
|
|
10278
10278
|
}, {}), W = u.createElement("div", Object.assign({
|
|
10279
10279
|
className: (0, f.default)(P, v, (0, o.default)({}, "".concat(P, "-closable"), O)),
|
|
10280
10280
|
style: _,
|
|
10281
10281
|
onMouseEnter: this.clearCloseTimer,
|
|
10282
10282
|
onMouseLeave: this.startCloseTimer,
|
|
10283
|
-
onClick:
|
|
10284
|
-
},
|
|
10283
|
+
onClick: A
|
|
10284
|
+
}, F), u.createElement("div", {
|
|
10285
10285
|
className: "".concat(P, "-content")
|
|
10286
10286
|
}, N), O ? u.createElement("a", {
|
|
10287
10287
|
tabIndex: 0,
|
|
@@ -10345,30 +10345,30 @@ function requireUseMessage() {
|
|
|
10345
10345
|
}
|
|
10346
10346
|
}, y = (0, c.default)(b), v = (0, s.default)(y, 2), O = v[0], w = v[1];
|
|
10347
10347
|
function _(N) {
|
|
10348
|
-
var E = N.prefixCls, P = I("message", E),
|
|
10348
|
+
var E = N.prefixCls, P = I("message", E), F = N.key || (0, d.getKeyThenIncreaseKey)(), W = new Promise(function(z) {
|
|
10349
10349
|
var Y = function() {
|
|
10350
10350
|
return typeof N.onClose == "function" && N.onClose(), z(!0);
|
|
10351
10351
|
};
|
|
10352
10352
|
p((0, a.default)((0, a.default)({}, N), {
|
|
10353
10353
|
prefixCls: P
|
|
10354
10354
|
}), function(Q) {
|
|
10355
|
-
var
|
|
10355
|
+
var oe = Q.prefixCls, ee = Q.instance;
|
|
10356
10356
|
C = ee, O(h((0, a.default)((0, a.default)({}, N), {
|
|
10357
|
-
key:
|
|
10357
|
+
key: F,
|
|
10358
10358
|
onClose: Y
|
|
10359
|
-
}),
|
|
10359
|
+
}), oe));
|
|
10360
10360
|
});
|
|
10361
10361
|
}), J = function() {
|
|
10362
|
-
C && C.removeNotice(
|
|
10362
|
+
C && C.removeNotice(F);
|
|
10363
10363
|
};
|
|
10364
10364
|
return J.then = function(z, Y) {
|
|
10365
10365
|
return W.then(z, Y);
|
|
10366
10366
|
}, J.promise = W, J;
|
|
10367
10367
|
}
|
|
10368
|
-
var
|
|
10369
|
-
return
|
|
10370
|
-
return (0, d.attachTypeApi)(
|
|
10371
|
-
}), [
|
|
10368
|
+
var A = l.useRef({});
|
|
10369
|
+
return A.current.open = _, ["success", "info", "warning", "error", "loading"].forEach(function(N) {
|
|
10370
|
+
return (0, d.attachTypeApi)(A.current, N);
|
|
10371
|
+
}), [A.current, /* @__PURE__ */ l.createElement(u.ConfigConsumer, {
|
|
10372
10372
|
key: "holder"
|
|
10373
10373
|
}, function(N) {
|
|
10374
10374
|
return I = N.getPrefixCls, w;
|
|
@@ -10385,12 +10385,12 @@ function requireMessage() {
|
|
|
10385
10385
|
Object.defineProperty(e, "__esModule", {
|
|
10386
10386
|
value: !0
|
|
10387
10387
|
}), e.getKeyThenIncreaseKey = N, e.attachTypeApi = Q, e.default = e.getInstance = void 0;
|
|
10388
|
-
var a = o(require_extends()), s = o(requireDefineProperty()), l = r(React__default), c = o(requireClassnames()), u = o(require$$6$1), d = o(requireLoadingOutlined()), f = o(requireExclamationCircleFilled()), p = o(requireCloseCircleFilled()), h = o(requireCheckCircleFilled()), g = o(requireInfoCircleFilled()), m = o(requireUseMessage()), I, C = 3, b, y = 1, v = "ant-message", O = "move-up", w, _,
|
|
10388
|
+
var a = o(require_extends()), s = o(requireDefineProperty()), l = r(React__default), c = o(requireClassnames()), u = o(require$$6$1), d = o(requireLoadingOutlined()), f = o(requireExclamationCircleFilled()), p = o(requireCloseCircleFilled()), h = o(requireCheckCircleFilled()), g = o(requireInfoCircleFilled()), m = o(requireUseMessage()), I, C = 3, b, y = 1, v = "ant-message", O = "move-up", w, _, A = !1;
|
|
10389
10389
|
function N() {
|
|
10390
10390
|
return y++;
|
|
10391
10391
|
}
|
|
10392
10392
|
function E(X) {
|
|
10393
|
-
X.top !== void 0 && (b = X.top, I = null), X.duration !== void 0 && (C = X.duration), X.prefixCls !== void 0 && (v = X.prefixCls), X.getContainer !== void 0 && (w = X.getContainer), X.transitionName !== void 0 && (O = X.transitionName, I = null), X.maxCount !== void 0 && (_ = X.maxCount, I = null), X.rtl !== void 0 && (
|
|
10393
|
+
X.top !== void 0 && (b = X.top, I = null), X.duration !== void 0 && (C = X.duration), X.prefixCls !== void 0 && (v = X.prefixCls), X.getContainer !== void 0 && (w = X.getContainer), X.transitionName !== void 0 && (O = X.transitionName, I = null), X.maxCount !== void 0 && (_ = X.maxCount, I = null), X.rtl !== void 0 && (A = X.rtl);
|
|
10394
10394
|
}
|
|
10395
10395
|
function P(X, ue) {
|
|
10396
10396
|
var we = X.prefixCls || v;
|
|
@@ -10423,7 +10423,7 @@ function requireMessage() {
|
|
|
10423
10423
|
});
|
|
10424
10424
|
});
|
|
10425
10425
|
}
|
|
10426
|
-
var
|
|
10426
|
+
var F = {
|
|
10427
10427
|
info: g.default,
|
|
10428
10428
|
success: h.default,
|
|
10429
10429
|
error: p.default,
|
|
@@ -10431,7 +10431,7 @@ function requireMessage() {
|
|
|
10431
10431
|
loading: d.default
|
|
10432
10432
|
};
|
|
10433
10433
|
function W(X, ue) {
|
|
10434
|
-
var we, Ce = X.duration !== void 0 ? X.duration : C, ce =
|
|
10434
|
+
var we, Ce = X.duration !== void 0 ? X.duration : C, ce = F[X.type], xe = (0, c.default)("".concat(ue, "-custom-content"), (we = {}, (0, s.default)(we, "".concat(ue, "-").concat(X.type), X.type), (0, s.default)(we, "".concat(ue, "-rtl"), A === !0), we));
|
|
10435
10435
|
return {
|
|
10436
10436
|
key: X.key,
|
|
10437
10437
|
duration: Ce,
|
|
@@ -10495,10 +10495,10 @@ function requireMessage() {
|
|
|
10495
10495
|
["success", "info", "warning", "error", "loading"].forEach(function(X) {
|
|
10496
10496
|
return Q(Y, X);
|
|
10497
10497
|
}), Y.warn = Y.warning, Y.useMessage = (0, m.default)(P, W);
|
|
10498
|
-
var
|
|
10498
|
+
var oe = function() {
|
|
10499
10499
|
return process.env.NODE_ENV === "test" ? I : null;
|
|
10500
10500
|
};
|
|
10501
|
-
e.getInstance =
|
|
10501
|
+
e.getInstance = oe;
|
|
10502
10502
|
var ee = Y;
|
|
10503
10503
|
e.default = ee;
|
|
10504
10504
|
}(message)), message;
|
|
@@ -10723,26 +10723,26 @@ function requireUseNotification() {
|
|
|
10723
10723
|
I == null || I.component.add(N, E);
|
|
10724
10724
|
}
|
|
10725
10725
|
}, b = (0, c.default)(C), y = (0, s.default)(b, 2), v = y[0], O = y[1];
|
|
10726
|
-
function w(
|
|
10727
|
-
var N =
|
|
10728
|
-
f((0, a.default)((0, a.default)({},
|
|
10726
|
+
function w(A) {
|
|
10727
|
+
var N = A.prefixCls, E = m("notification", N);
|
|
10728
|
+
f((0, a.default)((0, a.default)({}, A), {
|
|
10729
10729
|
prefixCls: E
|
|
10730
10730
|
}), function(P) {
|
|
10731
|
-
var
|
|
10732
|
-
I = W, v(p(
|
|
10731
|
+
var F = P.prefixCls, W = P.instance;
|
|
10732
|
+
I = W, v(p(A, F));
|
|
10733
10733
|
});
|
|
10734
10734
|
}
|
|
10735
10735
|
var _ = l.useRef({});
|
|
10736
|
-
return _.current.open = w, ["success", "info", "warning", "error"].forEach(function(
|
|
10737
|
-
_.current[
|
|
10736
|
+
return _.current.open = w, ["success", "info", "warning", "error"].forEach(function(A) {
|
|
10737
|
+
_.current[A] = function(N) {
|
|
10738
10738
|
return _.current.open((0, a.default)((0, a.default)({}, N), {
|
|
10739
|
-
type:
|
|
10739
|
+
type: A
|
|
10740
10740
|
}));
|
|
10741
10741
|
};
|
|
10742
10742
|
}), [_.current, /* @__PURE__ */ l.createElement(u.ConfigConsumer, {
|
|
10743
10743
|
key: "holder"
|
|
10744
|
-
}, function(
|
|
10745
|
-
return m =
|
|
10744
|
+
}, function(A) {
|
|
10745
|
+
return m = A.getPrefixCls, O;
|
|
10746
10746
|
})];
|
|
10747
10747
|
};
|
|
10748
10748
|
return h;
|
|
@@ -10763,31 +10763,31 @@ function requireNotification() {
|
|
|
10763
10763
|
});
|
|
10764
10764
|
}
|
|
10765
10765
|
return new (we || (we = Promise))(function(xe, te) {
|
|
10766
|
-
function de(
|
|
10766
|
+
function de(re) {
|
|
10767
10767
|
try {
|
|
10768
|
-
U(Ce.next(
|
|
10768
|
+
U(Ce.next(re));
|
|
10769
10769
|
} catch (Re) {
|
|
10770
10770
|
te(Re);
|
|
10771
10771
|
}
|
|
10772
10772
|
}
|
|
10773
|
-
function j(
|
|
10773
|
+
function j(re) {
|
|
10774
10774
|
try {
|
|
10775
|
-
U(Ce.throw(
|
|
10775
|
+
U(Ce.throw(re));
|
|
10776
10776
|
} catch (Re) {
|
|
10777
10777
|
te(Re);
|
|
10778
10778
|
}
|
|
10779
10779
|
}
|
|
10780
|
-
function U(
|
|
10781
|
-
|
|
10780
|
+
function U(re) {
|
|
10781
|
+
re.done ? xe(re.value) : ce(re.value).then(de, j);
|
|
10782
10782
|
}
|
|
10783
10783
|
U((Ce = Ce.apply(X, ue || [])).next());
|
|
10784
10784
|
});
|
|
10785
|
-
}, b = {}, y = 4.5, v = 24, O = 24, w = "ant-notification", _ = "topRight",
|
|
10785
|
+
}, b = {}, y = 4.5, v = 24, O = 24, w = "ant-notification", _ = "topRight", A, N, E = !1;
|
|
10786
10786
|
function P(X) {
|
|
10787
10787
|
var ue = X.duration, we = X.placement, Ce = X.bottom, ce = X.top, xe = X.getContainer, te = X.closeIcon, de = X.prefixCls;
|
|
10788
|
-
de !== void 0 && (w = de), ue !== void 0 && (y = ue), we !== void 0 ? _ = we : X.rtl && (_ = "topLeft"), Ce !== void 0 && (O = Ce), ce !== void 0 && (v = ce), xe !== void 0 && (
|
|
10788
|
+
de !== void 0 && (w = de), ue !== void 0 && (y = ue), we !== void 0 ? _ = we : X.rtl && (_ = "topLeft"), Ce !== void 0 && (O = Ce), ce !== void 0 && (v = ce), xe !== void 0 && (A = xe), te !== void 0 && (N = te), X.rtl !== void 0 && (E = X.rtl);
|
|
10789
10789
|
}
|
|
10790
|
-
function
|
|
10790
|
+
function F(X) {
|
|
10791
10791
|
var ue = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : v, we = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : O, Ce;
|
|
10792
10792
|
switch (X) {
|
|
10793
10793
|
case "topLeft":
|
|
@@ -10822,7 +10822,7 @@ function requireNotification() {
|
|
|
10822
10822
|
return Ce;
|
|
10823
10823
|
}
|
|
10824
10824
|
function W(X, ue) {
|
|
10825
|
-
var we = X.placement, Ce = we === void 0 ? _ : we, ce = X.top, xe = X.bottom, te = X.getContainer, de = te === void 0 ?
|
|
10825
|
+
var we = X.placement, Ce = we === void 0 ? _ : we, ce = X.top, xe = X.bottom, te = X.getContainer, de = te === void 0 ? A : te, j = X.closeIcon, U = j === void 0 ? N : j, re = X.prefixCls || w, Re = "".concat(re, "-notice"), Fe = "".concat(re, "-").concat(Ce), L = b[Fe];
|
|
10826
10826
|
if (L) {
|
|
10827
10827
|
Promise.resolve(L).then(function(Ne) {
|
|
10828
10828
|
ue({
|
|
@@ -10833,15 +10833,15 @@ function requireNotification() {
|
|
|
10833
10833
|
return;
|
|
10834
10834
|
}
|
|
10835
10835
|
var M = /* @__PURE__ */ c.createElement("span", {
|
|
10836
|
-
className: "".concat(
|
|
10836
|
+
className: "".concat(re, "-close-x")
|
|
10837
10837
|
}, U || /* @__PURE__ */ c.createElement(d.default, {
|
|
10838
|
-
className: "".concat(
|
|
10839
|
-
})), Te = (0, f.default)("".concat(
|
|
10838
|
+
className: "".concat(re, "-close-icon")
|
|
10839
|
+
})), Te = (0, f.default)("".concat(re, "-").concat(Ce), (0, l.default)({}, "".concat(re, "-rtl"), E === !0));
|
|
10840
10840
|
b[Fe] = new Promise(function(Ne) {
|
|
10841
10841
|
u.default.newInstance({
|
|
10842
|
-
prefixCls:
|
|
10842
|
+
prefixCls: re,
|
|
10843
10843
|
className: Te,
|
|
10844
|
-
style:
|
|
10844
|
+
style: F(Ce, ce, xe),
|
|
10845
10845
|
getContainer: de,
|
|
10846
10846
|
closeIcon: M
|
|
10847
10847
|
}, function(tt) {
|
|
@@ -10919,7 +10919,7 @@ function requireNotification() {
|
|
|
10919
10919
|
}));
|
|
10920
10920
|
};
|
|
10921
10921
|
}), Q.warn = Q.warning, Q.useNotification = (0, I.default)(W, z);
|
|
10922
|
-
var
|
|
10922
|
+
var oe = function(ue) {
|
|
10923
10923
|
return C(void 0, void 0, void 0, /* @__PURE__ */ a.default.mark(function we() {
|
|
10924
10924
|
return a.default.wrap(function(ce) {
|
|
10925
10925
|
for (; ; )
|
|
@@ -10933,7 +10933,7 @@ function requireNotification() {
|
|
|
10933
10933
|
}, we);
|
|
10934
10934
|
}));
|
|
10935
10935
|
};
|
|
10936
|
-
e.getInstance =
|
|
10936
|
+
e.getInstance = oe;
|
|
10937
10937
|
var ee = Q;
|
|
10938
10938
|
e.default = ee;
|
|
10939
10939
|
}(notification)), notification;
|
|
@@ -10958,14 +10958,14 @@ function requireConfigProvider() {
|
|
|
10958
10958
|
var a = o(require_extends()), s = r(React__default), l = o(requireContext$2()), c = require$$5, u = o(requireUseMemo()), d = r(requireLocaleProvider()), f = o(requireLocaleReceiver()), p = requireContext(), h = r(requireSizeContext()), g = o(requireMessage()), m = o(requireNotification()), I = ["getTargetContainer", "getPopupContainer", "rootPrefixCls", "getPrefixCls", "renderEmpty", "csp", "autoInsertSpaceInButton", "locale", "pageHeader"];
|
|
10959
10959
|
e.configConsumerProps = I;
|
|
10960
10960
|
var C = ["getTargetContainer", "getPopupContainer", "renderEmpty", "pageHeader", "input", "form"], b = function(w) {
|
|
10961
|
-
var _ = w.children,
|
|
10961
|
+
var _ = w.children, A = w.csp, N = w.autoInsertSpaceInButton, E = w.form, P = w.locale, F = w.componentSize, W = w.direction, J = w.space, z = w.virtual, Y = w.dropdownMatchSelectWidth, Q = w.legacyLocale, oe = w.parentContext, ee = w.iconPrefixCls, X = s.useCallback(function(te, de) {
|
|
10962
10962
|
var j = w.prefixCls;
|
|
10963
10963
|
if (de)
|
|
10964
10964
|
return de;
|
|
10965
|
-
var U = j ||
|
|
10965
|
+
var U = j || oe.getPrefixCls("");
|
|
10966
10966
|
return te ? "".concat(U, "-").concat(te) : U;
|
|
10967
|
-
}, [
|
|
10968
|
-
csp:
|
|
10967
|
+
}, [oe.getPrefixCls]), ue = (0, a.default)((0, a.default)({}, oe), {
|
|
10968
|
+
csp: A,
|
|
10969
10969
|
autoInsertSpaceInButton: N,
|
|
10970
10970
|
locale: P || Q,
|
|
10971
10971
|
direction: W,
|
|
@@ -10982,8 +10982,8 @@ function requireConfigProvider() {
|
|
|
10982
10982
|
return ue;
|
|
10983
10983
|
}, ue, function(te, de) {
|
|
10984
10984
|
var j = Object.keys(te), U = Object.keys(de);
|
|
10985
|
-
return j.length !== U.length || j.some(function(
|
|
10986
|
-
return te[
|
|
10985
|
+
return j.length !== U.length || j.some(function(re) {
|
|
10986
|
+
return te[re] !== de[re];
|
|
10987
10987
|
});
|
|
10988
10988
|
}), Ce = s.useMemo(function() {
|
|
10989
10989
|
return {
|
|
@@ -10997,8 +10997,8 @@ function requireConfigProvider() {
|
|
|
10997
10997
|
_ANT_MARK__: d.ANT_MARK
|
|
10998
10998
|
}, ce)), ee && (ce = /* @__PURE__ */ s.createElement(l.default.Provider, {
|
|
10999
10999
|
value: Ce
|
|
11000
|
-
}, ce)),
|
|
11001
|
-
size:
|
|
11000
|
+
}, ce)), F && (ce = /* @__PURE__ */ s.createElement(h.SizeContextProvider, {
|
|
11001
|
+
size: F
|
|
11002
11002
|
}, ce)), /* @__PURE__ */ s.createElement(p.ConfigContext.Provider, {
|
|
11003
11003
|
value: we
|
|
11004
11004
|
}, ce);
|
|
@@ -11009,7 +11009,7 @@ function requireConfigProvider() {
|
|
|
11009
11009
|
}), m.default.config({
|
|
11010
11010
|
rtl: w.direction === "rtl"
|
|
11011
11011
|
}));
|
|
11012
|
-
}, [w.direction]), /* @__PURE__ */ s.createElement(f.default, null, function(_,
|
|
11012
|
+
}, [w.direction]), /* @__PURE__ */ s.createElement(f.default, null, function(_, A, N) {
|
|
11013
11013
|
return /* @__PURE__ */ s.createElement(p.ConfigConsumer, null, function(E) {
|
|
11014
11014
|
return /* @__PURE__ */ s.createElement(b, (0, a.default)({
|
|
11015
11015
|
parentContext: E,
|
|
@@ -11031,71 +11031,71 @@ function requireInput() {
|
|
|
11031
11031
|
value: !0
|
|
11032
11032
|
}), e.fixControlledValue = b, e.resolveOnChange = y, e.getInputClassName = v, e.triggerFocus = O, e.default = void 0;
|
|
11033
11033
|
var a = o(require_extends()), s = o(requireClassCallCheck()), l = o(requireCreateClass()), c = o(requireInherits()), u = o(requireCreateSuper()), d = o(requireDefineProperty()), f = r(React__default), p = o(requireClassnames()), h = o(requireOmit()), g = r(requireClearableLabeledInput()), m = requireConfigProvider(), I = o(requireSizeContext()), C = o(requireDevWarning());
|
|
11034
|
-
function b(
|
|
11035
|
-
return typeof
|
|
11034
|
+
function b(A) {
|
|
11035
|
+
return typeof A > "u" || A === null ? "" : A;
|
|
11036
11036
|
}
|
|
11037
|
-
function y(
|
|
11037
|
+
function y(A, N, E) {
|
|
11038
11038
|
if (E) {
|
|
11039
11039
|
var P = N;
|
|
11040
11040
|
if (N.type === "click") {
|
|
11041
|
-
P = Object.create(N), P.target =
|
|
11042
|
-
var
|
|
11043
|
-
|
|
11041
|
+
P = Object.create(N), P.target = A, P.currentTarget = A;
|
|
11042
|
+
var F = A.value;
|
|
11043
|
+
A.value = "", E(P), A.value = F;
|
|
11044
11044
|
return;
|
|
11045
11045
|
}
|
|
11046
11046
|
E(P);
|
|
11047
11047
|
}
|
|
11048
11048
|
}
|
|
11049
|
-
function v(
|
|
11049
|
+
function v(A, N, E, P, F) {
|
|
11050
11050
|
var W;
|
|
11051
|
-
return (0, p.default)(
|
|
11051
|
+
return (0, p.default)(A, (W = {}, (0, d.default)(W, "".concat(A, "-sm"), E === "small"), (0, d.default)(W, "".concat(A, "-lg"), E === "large"), (0, d.default)(W, "".concat(A, "-disabled"), P), (0, d.default)(W, "".concat(A, "-rtl"), F === "rtl"), (0, d.default)(W, "".concat(A, "-borderless"), !N), W));
|
|
11052
11052
|
}
|
|
11053
|
-
function O(
|
|
11054
|
-
if (!!
|
|
11055
|
-
|
|
11053
|
+
function O(A, N) {
|
|
11054
|
+
if (!!A) {
|
|
11055
|
+
A.focus(N);
|
|
11056
11056
|
var E = N || {}, P = E.cursor;
|
|
11057
11057
|
if (P) {
|
|
11058
|
-
var
|
|
11058
|
+
var F = A.value.length;
|
|
11059
11059
|
switch (P) {
|
|
11060
11060
|
case "start":
|
|
11061
|
-
|
|
11061
|
+
A.setSelectionRange(0, 0);
|
|
11062
11062
|
break;
|
|
11063
11063
|
case "end":
|
|
11064
|
-
|
|
11064
|
+
A.setSelectionRange(F, F);
|
|
11065
11065
|
break;
|
|
11066
11066
|
default:
|
|
11067
|
-
|
|
11067
|
+
A.setSelectionRange(0, F);
|
|
11068
11068
|
}
|
|
11069
11069
|
}
|
|
11070
11070
|
}
|
|
11071
11071
|
}
|
|
11072
|
-
var w = /* @__PURE__ */ function(
|
|
11073
|
-
(0, c.default)(E,
|
|
11072
|
+
var w = /* @__PURE__ */ function(A) {
|
|
11073
|
+
(0, c.default)(E, A);
|
|
11074
11074
|
var N = (0, u.default)(E);
|
|
11075
11075
|
function E(P) {
|
|
11076
|
-
var
|
|
11077
|
-
(0, s.default)(this, E),
|
|
11078
|
-
O(
|
|
11079
|
-
},
|
|
11080
|
-
|
|
11081
|
-
},
|
|
11082
|
-
|
|
11083
|
-
},
|
|
11084
|
-
var z =
|
|
11085
|
-
|
|
11076
|
+
var F;
|
|
11077
|
+
(0, s.default)(this, E), F = N.call(this, P), F.direction = "ltr", F.focus = function(J) {
|
|
11078
|
+
O(F.input, J);
|
|
11079
|
+
}, F.saveClearableInput = function(J) {
|
|
11080
|
+
F.clearableInput = J;
|
|
11081
|
+
}, F.saveInput = function(J) {
|
|
11082
|
+
F.input = J;
|
|
11083
|
+
}, F.onFocus = function(J) {
|
|
11084
|
+
var z = F.props.onFocus;
|
|
11085
|
+
F.setState({
|
|
11086
11086
|
focused: !0
|
|
11087
|
-
},
|
|
11088
|
-
},
|
|
11089
|
-
var z =
|
|
11090
|
-
|
|
11087
|
+
}, F.clearPasswordValueAttribute), z && z(J);
|
|
11088
|
+
}, F.onBlur = function(J) {
|
|
11089
|
+
var z = F.props.onBlur;
|
|
11090
|
+
F.setState({
|
|
11091
11091
|
focused: !1
|
|
11092
|
-
},
|
|
11093
|
-
},
|
|
11094
|
-
|
|
11095
|
-
|
|
11096
|
-
}), y(
|
|
11097
|
-
},
|
|
11098
|
-
var Q = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {},
|
|
11092
|
+
}, F.clearPasswordValueAttribute), z && z(J);
|
|
11093
|
+
}, F.handleReset = function(J) {
|
|
11094
|
+
F.setValue("", function() {
|
|
11095
|
+
F.focus();
|
|
11096
|
+
}), y(F.input, J, F.props.onChange);
|
|
11097
|
+
}, F.renderInput = function(J, z, Y) {
|
|
11098
|
+
var Q = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {}, oe = F.props, ee = oe.className, X = oe.addonBefore, ue = oe.addonAfter, we = oe.size, Ce = oe.disabled, ce = (0, h.default)(F.props, [
|
|
11099
11099
|
"prefixCls",
|
|
11100
11100
|
"onPressEnter",
|
|
11101
11101
|
"addonBefore",
|
|
@@ -11111,47 +11111,47 @@ function requireInput() {
|
|
|
11111
11111
|
return /* @__PURE__ */ f.createElement("input", (0, a.default)({
|
|
11112
11112
|
autoComplete: Q.autoComplete
|
|
11113
11113
|
}, ce, {
|
|
11114
|
-
onChange:
|
|
11115
|
-
onFocus:
|
|
11116
|
-
onBlur:
|
|
11117
|
-
onKeyDown:
|
|
11118
|
-
className: (0, p.default)(v(J, Y, we || z, Ce,
|
|
11119
|
-
ref:
|
|
11114
|
+
onChange: F.handleChange,
|
|
11115
|
+
onFocus: F.onFocus,
|
|
11116
|
+
onBlur: F.onBlur,
|
|
11117
|
+
onKeyDown: F.handleKeyDown,
|
|
11118
|
+
className: (0, p.default)(v(J, Y, we || z, Ce, F.direction), (0, d.default)({}, ee, ee && !X && !ue)),
|
|
11119
|
+
ref: F.saveInput
|
|
11120
11120
|
}));
|
|
11121
|
-
},
|
|
11122
|
-
|
|
11123
|
-
|
|
11121
|
+
}, F.clearPasswordValueAttribute = function() {
|
|
11122
|
+
F.removePasswordTimeout = setTimeout(function() {
|
|
11123
|
+
F.input && F.input.getAttribute("type") === "password" && F.input.hasAttribute("value") && F.input.removeAttribute("value");
|
|
11124
11124
|
});
|
|
11125
|
-
},
|
|
11126
|
-
|
|
11127
|
-
},
|
|
11128
|
-
var z =
|
|
11125
|
+
}, F.handleChange = function(J) {
|
|
11126
|
+
F.setValue(J.target.value, F.clearPasswordValueAttribute), y(F.input, J, F.props.onChange);
|
|
11127
|
+
}, F.handleKeyDown = function(J) {
|
|
11128
|
+
var z = F.props, Y = z.onPressEnter, Q = z.onKeyDown;
|
|
11129
11129
|
J.keyCode === 13 && Y && Y(J), Q && Q(J);
|
|
11130
|
-
},
|
|
11131
|
-
var z = J.getPrefixCls, Y = J.direction, Q = J.input,
|
|
11132
|
-
return
|
|
11130
|
+
}, F.renderComponent = function(J) {
|
|
11131
|
+
var z = J.getPrefixCls, Y = J.direction, Q = J.input, oe = F.state, ee = oe.value, X = oe.focused, ue = F.props, we = ue.prefixCls, Ce = ue.bordered, ce = Ce === void 0 ? !0 : Ce, xe = z("input", we);
|
|
11132
|
+
return F.direction = Y, /* @__PURE__ */ f.createElement(I.default.Consumer, null, function(te) {
|
|
11133
11133
|
return /* @__PURE__ */ f.createElement(g.default, (0, a.default)({
|
|
11134
11134
|
size: te
|
|
11135
|
-
},
|
|
11135
|
+
}, F.props, {
|
|
11136
11136
|
prefixCls: xe,
|
|
11137
11137
|
inputType: "input",
|
|
11138
11138
|
value: b(ee),
|
|
11139
|
-
element:
|
|
11140
|
-
handleReset:
|
|
11141
|
-
ref:
|
|
11139
|
+
element: F.renderInput(xe, te, ce, Q),
|
|
11140
|
+
handleReset: F.handleReset,
|
|
11141
|
+
ref: F.saveClearableInput,
|
|
11142
11142
|
direction: Y,
|
|
11143
11143
|
focused: X,
|
|
11144
|
-
triggerFocus:
|
|
11144
|
+
triggerFocus: F.focus,
|
|
11145
11145
|
bordered: ce
|
|
11146
11146
|
}));
|
|
11147
11147
|
});
|
|
11148
11148
|
};
|
|
11149
11149
|
var W = typeof P.value > "u" ? P.defaultValue : P.value;
|
|
11150
|
-
return
|
|
11150
|
+
return F.state = {
|
|
11151
11151
|
value: W,
|
|
11152
11152
|
focused: !1,
|
|
11153
11153
|
prevValue: P.value
|
|
11154
|
-
},
|
|
11154
|
+
}, F;
|
|
11155
11155
|
}
|
|
11156
11156
|
return (0, l.default)(E, [{
|
|
11157
11157
|
key: "componentDidMount",
|
|
@@ -11164,8 +11164,8 @@ function requireInput() {
|
|
|
11164
11164
|
}
|
|
11165
11165
|
}, {
|
|
11166
11166
|
key: "getSnapshotBeforeUpdate",
|
|
11167
|
-
value: function(
|
|
11168
|
-
return (0, g.hasPrefixSuffix)(
|
|
11167
|
+
value: function(F) {
|
|
11168
|
+
return (0, g.hasPrefixSuffix)(F) !== (0, g.hasPrefixSuffix)(this.props) && (0, C.default)(this.input !== document.activeElement, "Input", "When Input is focused, dynamic add or remove prefix / suffix will make it lose focus caused by dom structure change. Read more: https://ant.design/components/input/#FAQ"), null;
|
|
11169
11169
|
}
|
|
11170
11170
|
}, {
|
|
11171
11171
|
key: "componentWillUnmount",
|
|
@@ -11179,8 +11179,8 @@ function requireInput() {
|
|
|
11179
11179
|
}
|
|
11180
11180
|
}, {
|
|
11181
11181
|
key: "setSelectionRange",
|
|
11182
|
-
value: function(
|
|
11183
|
-
this.input.setSelectionRange(
|
|
11182
|
+
value: function(F, W, J) {
|
|
11183
|
+
this.input.setSelectionRange(F, W, J);
|
|
11184
11184
|
}
|
|
11185
11185
|
}, {
|
|
11186
11186
|
key: "select",
|
|
@@ -11189,9 +11189,9 @@ function requireInput() {
|
|
|
11189
11189
|
}
|
|
11190
11190
|
}, {
|
|
11191
11191
|
key: "setValue",
|
|
11192
|
-
value: function(
|
|
11192
|
+
value: function(F, W) {
|
|
11193
11193
|
this.props.value === void 0 ? this.setState({
|
|
11194
|
-
value:
|
|
11194
|
+
value: F
|
|
11195
11195
|
}, W) : W == null || W();
|
|
11196
11196
|
}
|
|
11197
11197
|
}, {
|
|
@@ -11201,11 +11201,11 @@ function requireInput() {
|
|
|
11201
11201
|
}
|
|
11202
11202
|
}], [{
|
|
11203
11203
|
key: "getDerivedStateFromProps",
|
|
11204
|
-
value: function(
|
|
11204
|
+
value: function(F, W) {
|
|
11205
11205
|
var J = W.prevValue, z = {
|
|
11206
|
-
prevValue:
|
|
11206
|
+
prevValue: F.value
|
|
11207
11207
|
};
|
|
11208
|
-
return (
|
|
11208
|
+
return (F.value !== void 0 || J !== F.value) && (z.value = F.value), z;
|
|
11209
11209
|
}
|
|
11210
11210
|
}]), E;
|
|
11211
11211
|
}(f.Component);
|
|
@@ -11253,22 +11253,22 @@ function requireClearableLabeledInput() {
|
|
|
11253
11253
|
(0, c.default)(_, O);
|
|
11254
11254
|
var w = (0, u.default)(_);
|
|
11255
11255
|
function _() {
|
|
11256
|
-
var
|
|
11257
|
-
return (0, s.default)(this, _),
|
|
11256
|
+
var A;
|
|
11257
|
+
return (0, s.default)(this, _), A = w.apply(this, arguments), A.containerRef = /* @__PURE__ */ d.createRef(), A.onInputMouseUp = function(N) {
|
|
11258
11258
|
var E;
|
|
11259
|
-
if (!((E =
|
|
11260
|
-
var P =
|
|
11259
|
+
if (!((E = A.containerRef.current) === null || E === void 0) && E.contains(N.target)) {
|
|
11260
|
+
var P = A.props.triggerFocus;
|
|
11261
11261
|
P == null || P();
|
|
11262
11262
|
}
|
|
11263
|
-
},
|
|
11263
|
+
}, A;
|
|
11264
11264
|
}
|
|
11265
11265
|
return (0, l.default)(_, [{
|
|
11266
11266
|
key: "renderClearIcon",
|
|
11267
11267
|
value: function(N) {
|
|
11268
|
-
var E = this.props, P = E.allowClear,
|
|
11268
|
+
var E = this.props, P = E.allowClear, F = E.value, W = E.disabled, J = E.readOnly, z = E.handleReset;
|
|
11269
11269
|
if (!P)
|
|
11270
11270
|
return null;
|
|
11271
|
-
var Y = !W && !J &&
|
|
11271
|
+
var Y = !W && !J && F, Q = "".concat(N, "-clear-icon");
|
|
11272
11272
|
return /* @__PURE__ */ d.createElement(p.default, {
|
|
11273
11273
|
onClick: z,
|
|
11274
11274
|
className: (0, f.default)((0, a.default)({}, "".concat(Q, "-hidden"), !Y), Q),
|
|
@@ -11278,22 +11278,22 @@ function requireClearableLabeledInput() {
|
|
|
11278
11278
|
}, {
|
|
11279
11279
|
key: "renderSuffix",
|
|
11280
11280
|
value: function(N) {
|
|
11281
|
-
var E = this.props, P = E.suffix,
|
|
11282
|
-
return P ||
|
|
11281
|
+
var E = this.props, P = E.suffix, F = E.allowClear;
|
|
11282
|
+
return P || F ? /* @__PURE__ */ d.createElement("span", {
|
|
11283
11283
|
className: "".concat(N, "-suffix")
|
|
11284
11284
|
}, this.renderClearIcon(N), P) : null;
|
|
11285
11285
|
}
|
|
11286
11286
|
}, {
|
|
11287
11287
|
key: "renderLabeledIcon",
|
|
11288
11288
|
value: function(N, E) {
|
|
11289
|
-
var P,
|
|
11289
|
+
var P, F = this.props, W = F.focused, J = F.value, z = F.prefix, Y = F.className, Q = F.size, oe = F.suffix, ee = F.disabled, X = F.allowClear, ue = F.direction, we = F.style, Ce = F.readOnly, ce = F.bordered, xe = this.renderSuffix(N);
|
|
11290
11290
|
if (!C(this.props))
|
|
11291
11291
|
return (0, m.cloneElement)(E, {
|
|
11292
11292
|
value: J
|
|
11293
11293
|
});
|
|
11294
11294
|
var te = z ? /* @__PURE__ */ d.createElement("span", {
|
|
11295
11295
|
className: "".concat(N, "-prefix")
|
|
11296
|
-
}, z) : null, de = (0, f.default)("".concat(N, "-affix-wrapper"), (P = {}, (0, a.default)(P, "".concat(N, "-affix-wrapper-focused"), W), (0, a.default)(P, "".concat(N, "-affix-wrapper-disabled"), ee), (0, a.default)(P, "".concat(N, "-affix-wrapper-sm"), Q === "small"), (0, a.default)(P, "".concat(N, "-affix-wrapper-lg"), Q === "large"), (0, a.default)(P, "".concat(N, "-affix-wrapper-input-with-clear-btn"),
|
|
11296
|
+
}, z) : null, de = (0, f.default)("".concat(N, "-affix-wrapper"), (P = {}, (0, a.default)(P, "".concat(N, "-affix-wrapper-focused"), W), (0, a.default)(P, "".concat(N, "-affix-wrapper-disabled"), ee), (0, a.default)(P, "".concat(N, "-affix-wrapper-sm"), Q === "small"), (0, a.default)(P, "".concat(N, "-affix-wrapper-lg"), Q === "large"), (0, a.default)(P, "".concat(N, "-affix-wrapper-input-with-clear-btn"), oe && X && J), (0, a.default)(P, "".concat(N, "-affix-wrapper-rtl"), ue === "rtl"), (0, a.default)(P, "".concat(N, "-affix-wrapper-readonly"), Ce), (0, a.default)(P, "".concat(N, "-affix-wrapper-borderless"), !ce), (0, a.default)(P, "".concat(Y), !b(this.props) && Y), P));
|
|
11297
11297
|
return /* @__PURE__ */ d.createElement("span", {
|
|
11298
11298
|
ref: this.containerRef,
|
|
11299
11299
|
className: de,
|
|
@@ -11308,14 +11308,14 @@ function requireClearableLabeledInput() {
|
|
|
11308
11308
|
}, {
|
|
11309
11309
|
key: "renderInputWithLabel",
|
|
11310
11310
|
value: function(N, E) {
|
|
11311
|
-
var P,
|
|
11311
|
+
var P, F = this.props, W = F.addonBefore, J = F.addonAfter, z = F.style, Y = F.size, Q = F.className, oe = F.direction;
|
|
11312
11312
|
if (!b(this.props))
|
|
11313
11313
|
return E;
|
|
11314
11314
|
var ee = "".concat(N, "-group"), X = "".concat(ee, "-addon"), ue = W ? /* @__PURE__ */ d.createElement("span", {
|
|
11315
11315
|
className: X
|
|
11316
11316
|
}, W) : null, we = J ? /* @__PURE__ */ d.createElement("span", {
|
|
11317
11317
|
className: X
|
|
11318
|
-
}, J) : null, Ce = (0, f.default)("".concat(N, "-wrapper"), ee, (0, a.default)({}, "".concat(ee, "-rtl"),
|
|
11318
|
+
}, J) : null, Ce = (0, f.default)("".concat(N, "-wrapper"), ee, (0, a.default)({}, "".concat(ee, "-rtl"), oe === "rtl")), ce = (0, f.default)("".concat(N, "-group-wrapper"), (P = {}, (0, a.default)(P, "".concat(N, "-group-wrapper-sm"), Y === "small"), (0, a.default)(P, "".concat(N, "-group-wrapper-lg"), Y === "large"), (0, a.default)(P, "".concat(N, "-group-wrapper-rtl"), oe === "rtl"), P), Q);
|
|
11319
11319
|
return /* @__PURE__ */ d.createElement("span", {
|
|
11320
11320
|
className: ce,
|
|
11321
11321
|
style: z
|
|
@@ -11328,12 +11328,12 @@ function requireClearableLabeledInput() {
|
|
|
11328
11328
|
}, {
|
|
11329
11329
|
key: "renderTextAreaWithClearIcon",
|
|
11330
11330
|
value: function(N, E) {
|
|
11331
|
-
var P,
|
|
11331
|
+
var P, F = this.props, W = F.value, J = F.allowClear, z = F.className, Y = F.style, Q = F.direction, oe = F.bordered;
|
|
11332
11332
|
if (!J)
|
|
11333
11333
|
return (0, m.cloneElement)(E, {
|
|
11334
11334
|
value: W
|
|
11335
11335
|
});
|
|
11336
|
-
var ee = (0, f.default)("".concat(N, "-affix-wrapper"), "".concat(N, "-affix-wrapper-textarea-with-clear-btn"), (P = {}, (0, a.default)(P, "".concat(N, "-affix-wrapper-rtl"), Q === "rtl"), (0, a.default)(P, "".concat(N, "-affix-wrapper-borderless"), !
|
|
11336
|
+
var ee = (0, f.default)("".concat(N, "-affix-wrapper"), "".concat(N, "-affix-wrapper-textarea-with-clear-btn"), (P = {}, (0, a.default)(P, "".concat(N, "-affix-wrapper-rtl"), Q === "rtl"), (0, a.default)(P, "".concat(N, "-affix-wrapper-borderless"), !oe), (0, a.default)(P, "".concat(z), !b(this.props) && z), P));
|
|
11337
11337
|
return /* @__PURE__ */ d.createElement("span", {
|
|
11338
11338
|
className: ee,
|
|
11339
11339
|
style: Y
|
|
@@ -11345,8 +11345,8 @@ function requireClearableLabeledInput() {
|
|
|
11345
11345
|
}, {
|
|
11346
11346
|
key: "render",
|
|
11347
11347
|
value: function() {
|
|
11348
|
-
var N = this.props, E = N.prefixCls, P = N.inputType,
|
|
11349
|
-
return P === I[0] ? this.renderTextAreaWithClearIcon(E,
|
|
11348
|
+
var N = this.props, E = N.prefixCls, P = N.inputType, F = N.element;
|
|
11349
|
+
return P === I[0] ? this.renderTextAreaWithClearIcon(E, F) : this.renderInputWithLabel(E, this.renderLabeledIcon(E, F));
|
|
11350
11350
|
}
|
|
11351
11351
|
}]), _;
|
|
11352
11352
|
}(d.Component), v = y;
|
|
@@ -11359,29 +11359,29 @@ function requireClearableLabeledInput() {
|
|
|
11359
11359
|
value: !0
|
|
11360
11360
|
}), e.default = void 0;
|
|
11361
11361
|
var a = o(_typeof$2.exports), s = o(requireToConsumableArray()), l = o(require_extends()), c = o(requireDefineProperty()), u = o(requireSlicedToArray()), d = r(React__default), f = o(require$$8), p = o(requireOmit()), h = o(requireClassnames()), g = o(requireUseMergedState()), m = o(requireClearableLabeledInput()), I = requireConfigProvider(), C = requireInput(), b = o(requireSizeContext()), y = function(w, _) {
|
|
11362
|
-
var
|
|
11362
|
+
var A = {};
|
|
11363
11363
|
for (var N in w)
|
|
11364
|
-
Object.prototype.hasOwnProperty.call(w, N) && _.indexOf(N) < 0 && (
|
|
11364
|
+
Object.prototype.hasOwnProperty.call(w, N) && _.indexOf(N) < 0 && (A[N] = w[N]);
|
|
11365
11365
|
if (w != null && typeof Object.getOwnPropertySymbols == "function")
|
|
11366
11366
|
for (var E = 0, N = Object.getOwnPropertySymbols(w); E < N.length; E++)
|
|
11367
|
-
_.indexOf(N[E]) < 0 && Object.prototype.propertyIsEnumerable.call(w, N[E]) && (
|
|
11368
|
-
return
|
|
11367
|
+
_.indexOf(N[E]) < 0 && Object.prototype.propertyIsEnumerable.call(w, N[E]) && (A[N[E]] = w[N[E]]);
|
|
11368
|
+
return A;
|
|
11369
11369
|
}, v = /* @__PURE__ */ d.forwardRef(function(w, _) {
|
|
11370
|
-
var
|
|
11371
|
-
value:
|
|
11372
|
-
}), te = (0, u.default)(xe, 2), de = te[0], j = te[1], U = d.useRef(
|
|
11370
|
+
var A, N = w.prefixCls, E = w.bordered, P = E === void 0 ? !0 : E, F = w.showCount, W = F === void 0 ? !1 : F, J = w.maxLength, z = w.className, Y = w.style, Q = w.size, oe = y(w, ["prefixCls", "bordered", "showCount", "maxLength", "className", "style", "size"]), ee = d.useContext(I.ConfigContext), X = ee.getPrefixCls, ue = ee.direction, we = d.useContext(b.default), Ce = d.useRef(null), ce = d.useRef(null), xe = (0, g.default)(oe.defaultValue, {
|
|
11371
|
+
value: oe.value
|
|
11372
|
+
}), te = (0, u.default)(xe, 2), de = te[0], j = te[1], U = d.useRef(oe.value);
|
|
11373
11373
|
d.useEffect(function() {
|
|
11374
|
-
(
|
|
11375
|
-
}, [
|
|
11376
|
-
var
|
|
11377
|
-
|
|
11374
|
+
(oe.value !== void 0 || U.current !== oe.value) && (j(oe.value), U.current = oe.value);
|
|
11375
|
+
}, [oe.value, U.current]);
|
|
11376
|
+
var re = function(Tt, Ot) {
|
|
11377
|
+
oe.value === void 0 && (j(Tt), Ot == null || Ot());
|
|
11378
11378
|
}, Re = function(Tt) {
|
|
11379
|
-
|
|
11379
|
+
re(Tt.target.value), (0, C.resolveOnChange)(Ce.current, Tt, oe.onChange);
|
|
11380
11380
|
}, Fe = function(Tt) {
|
|
11381
|
-
|
|
11381
|
+
re("", function() {
|
|
11382
11382
|
var Ot;
|
|
11383
11383
|
(Ot = Ce.current) === null || Ot === void 0 || Ot.focus();
|
|
11384
|
-
}), (0, C.resolveOnChange)(Ce.current, Tt,
|
|
11384
|
+
}), (0, C.resolveOnChange)(Ce.current, Tt, oe.onChange);
|
|
11385
11385
|
}, L = X("input", N);
|
|
11386
11386
|
d.useImperativeHandle(_, function() {
|
|
11387
11387
|
var yt;
|
|
@@ -11397,16 +11397,16 @@ function requireClearableLabeledInput() {
|
|
|
11397
11397
|
}
|
|
11398
11398
|
};
|
|
11399
11399
|
});
|
|
11400
|
-
var M = /* @__PURE__ */ d.createElement(f.default, (0, l.default)({}, (0, p.default)(
|
|
11400
|
+
var M = /* @__PURE__ */ d.createElement(f.default, (0, l.default)({}, (0, p.default)(oe, ["allowClear"]), {
|
|
11401
11401
|
maxLength: J,
|
|
11402
|
-
className: (0, h.default)((
|
|
11402
|
+
className: (0, h.default)((A = {}, (0, c.default)(A, "".concat(L, "-borderless"), !P), (0, c.default)(A, z, z && !W), (0, c.default)(A, "".concat(L, "-sm"), we === "small" || Q === "small"), (0, c.default)(A, "".concat(L, "-lg"), we === "large" || Q === "large"), A)),
|
|
11403
11403
|
style: W ? void 0 : Y,
|
|
11404
11404
|
prefixCls: L,
|
|
11405
11405
|
onChange: Re,
|
|
11406
11406
|
ref: Ce
|
|
11407
11407
|
})), Te = (0, C.fixControlledValue)(de), Ne = Number(J) > 0;
|
|
11408
11408
|
Te = Ne ? (0, s.default)(Te).slice(0, J).join("") : Te;
|
|
11409
|
-
var tt = /* @__PURE__ */ d.createElement(m.default, (0, l.default)({},
|
|
11409
|
+
var tt = /* @__PURE__ */ d.createElement(m.default, (0, l.default)({}, oe, {
|
|
11410
11410
|
prefixCls: L,
|
|
11411
11411
|
direction: ue,
|
|
11412
11412
|
inputType: "text",
|
|
@@ -11484,24 +11484,24 @@ const Jt = /* @__PURE__ */ getDefaultExportFromCjs(TextArea$2), {
|
|
|
11484
11484
|
params: [["translatable", "=", "1"]],
|
|
11485
11485
|
fields: ["code", "name"],
|
|
11486
11486
|
model: "res.lang"
|
|
11487
|
-
})).map((
|
|
11488
|
-
code:
|
|
11489
|
-
name:
|
|
11487
|
+
})).map((F) => ({
|
|
11488
|
+
code: F.code,
|
|
11489
|
+
name: F.name
|
|
11490
11490
|
}));
|
|
11491
11491
|
return p == null || p(P), P;
|
|
11492
11492
|
}
|
|
11493
11493
|
async function w(E) {
|
|
11494
11494
|
const P = {};
|
|
11495
|
-
for (const
|
|
11495
|
+
for (const F of E) {
|
|
11496
11496
|
const W = (await ConnectionProvider.getHandler().readObjects({
|
|
11497
11497
|
model: a,
|
|
11498
11498
|
ids: [s],
|
|
11499
11499
|
fieldsToRetrieve: [l],
|
|
11500
11500
|
context: {
|
|
11501
|
-
lang:
|
|
11501
|
+
lang: F.code
|
|
11502
11502
|
}
|
|
11503
11503
|
}))[0];
|
|
11504
|
-
P[
|
|
11504
|
+
P[F.code] = W[l] || "";
|
|
11505
11505
|
}
|
|
11506
11506
|
y.current = P, b(P);
|
|
11507
11507
|
}
|
|
@@ -11521,10 +11521,10 @@ const Jt = /* @__PURE__ */ getDefaultExportFromCjs(TextArea$2), {
|
|
|
11521
11521
|
children: /* @__PURE__ */ jsx(Jt, {
|
|
11522
11522
|
rows: 4,
|
|
11523
11523
|
value: C[E.code] || "",
|
|
11524
|
-
onChange: (
|
|
11524
|
+
onChange: (F) => {
|
|
11525
11525
|
b({
|
|
11526
11526
|
...C,
|
|
11527
|
-
[E.code]:
|
|
11527
|
+
[E.code]: F.target.value
|
|
11528
11528
|
});
|
|
11529
11529
|
},
|
|
11530
11530
|
disabled: m
|
|
@@ -11532,7 +11532,7 @@ const Jt = /* @__PURE__ */ getDefaultExportFromCjs(TextArea$2), {
|
|
|
11532
11532
|
})]
|
|
11533
11533
|
}, P));
|
|
11534
11534
|
}
|
|
11535
|
-
async function
|
|
11535
|
+
async function A() {
|
|
11536
11536
|
I(!0);
|
|
11537
11537
|
try {
|
|
11538
11538
|
for (const E of Object.keys(C))
|
|
@@ -11565,7 +11565,7 @@ const Jt = /* @__PURE__ */ getDefaultExportFromCjs(TextArea$2), {
|
|
|
11565
11565
|
}), /* @__PURE__ */ jsx(Button$1, {
|
|
11566
11566
|
icon: m ? /* @__PURE__ */ jsx(LoadingOutlined$3, {}) : /* @__PURE__ */ jsx(CheckOutlined$3, {}),
|
|
11567
11567
|
disabled: m,
|
|
11568
|
-
onClick:
|
|
11568
|
+
onClick: A,
|
|
11569
11569
|
style: {
|
|
11570
11570
|
marginLeft: 15
|
|
11571
11571
|
},
|
|
@@ -11867,29 +11867,29 @@ function debounce(e, r, o) {
|
|
|
11867
11867
|
if (typeof e != "function")
|
|
11868
11868
|
throw new TypeError(FUNC_ERROR_TEXT);
|
|
11869
11869
|
r = toNumber(r) || 0, isObject$1(o) && (p = !!o.leading, h = "maxWait" in o, l = h ? nativeMax(toNumber(o.maxWait) || 0, r) : l, g = "trailing" in o ? !!o.trailing : g);
|
|
11870
|
-
function m(
|
|
11870
|
+
function m(A) {
|
|
11871
11871
|
var N = a, E = s;
|
|
11872
|
-
return a = s = void 0, f =
|
|
11872
|
+
return a = s = void 0, f = A, c = e.apply(E, N), c;
|
|
11873
11873
|
}
|
|
11874
|
-
function I(
|
|
11875
|
-
return f =
|
|
11874
|
+
function I(A) {
|
|
11875
|
+
return f = A, u = setTimeout(y, r), p ? m(A) : c;
|
|
11876
11876
|
}
|
|
11877
|
-
function C(
|
|
11878
|
-
var N =
|
|
11877
|
+
function C(A) {
|
|
11878
|
+
var N = A - d, E = A - f, P = r - N;
|
|
11879
11879
|
return h ? nativeMin(P, l - E) : P;
|
|
11880
11880
|
}
|
|
11881
|
-
function b(
|
|
11882
|
-
var N =
|
|
11881
|
+
function b(A) {
|
|
11882
|
+
var N = A - d, E = A - f;
|
|
11883
11883
|
return d === void 0 || N >= r || N < 0 || h && E >= l;
|
|
11884
11884
|
}
|
|
11885
11885
|
function y() {
|
|
11886
|
-
var
|
|
11887
|
-
if (b(
|
|
11888
|
-
return v(
|
|
11889
|
-
u = setTimeout(y, C(
|
|
11886
|
+
var A = now$1();
|
|
11887
|
+
if (b(A))
|
|
11888
|
+
return v(A);
|
|
11889
|
+
u = setTimeout(y, C(A));
|
|
11890
11890
|
}
|
|
11891
|
-
function v(
|
|
11892
|
-
return u = void 0, g && a ? m(
|
|
11891
|
+
function v(A) {
|
|
11892
|
+
return u = void 0, g && a ? m(A) : (a = s = void 0, c);
|
|
11893
11893
|
}
|
|
11894
11894
|
function O() {
|
|
11895
11895
|
u !== void 0 && clearTimeout(u), f = 0, a = d = s = u = void 0;
|
|
@@ -11898,8 +11898,8 @@ function debounce(e, r, o) {
|
|
|
11898
11898
|
return u === void 0 ? c : v(now$1());
|
|
11899
11899
|
}
|
|
11900
11900
|
function _() {
|
|
11901
|
-
var
|
|
11902
|
-
if (a = arguments, s = this, d =
|
|
11901
|
+
var A = now$1(), N = b(A);
|
|
11902
|
+
if (a = arguments, s = this, d = A, N) {
|
|
11903
11903
|
if (u === void 0)
|
|
11904
11904
|
return I(d);
|
|
11905
11905
|
if (h)
|
|
@@ -12454,7 +12454,7 @@ function require_stream_writable() {
|
|
|
12454
12454
|
};
|
|
12455
12455
|
}
|
|
12456
12456
|
var r;
|
|
12457
|
-
E.WritableState =
|
|
12457
|
+
E.WritableState = A;
|
|
12458
12458
|
var o = {
|
|
12459
12459
|
deprecate: browser
|
|
12460
12460
|
}, a = streamBrowser, s = require$$0.Buffer, l = commonjsGlobal.Uint8Array || function() {
|
|
@@ -12469,20 +12469,20 @@ function require_stream_writable() {
|
|
|
12469
12469
|
inherits_browser.exports(E, a);
|
|
12470
12470
|
function _() {
|
|
12471
12471
|
}
|
|
12472
|
-
function
|
|
12473
|
-
r = r || require_stream_duplex(), j = j || {}, typeof
|
|
12472
|
+
function A(j, U, re) {
|
|
12473
|
+
r = r || require_stream_duplex(), j = j || {}, typeof re != "boolean" && (re = U instanceof r), this.objectMode = !!j.objectMode, re && (this.objectMode = this.objectMode || !!j.writableObjectMode), this.highWaterMark = p(this, j, "writableHighWaterMark", re), this.finalCalled = !1, this.needDrain = !1, this.ending = !1, this.ended = !1, this.finished = !1, this.destroyed = !1;
|
|
12474
12474
|
var Re = j.decodeStrings === !1;
|
|
12475
12475
|
this.decodeStrings = !Re, this.defaultEncoding = j.defaultEncoding || "utf8", this.length = 0, this.writing = !1, this.corked = 0, this.sync = !0, this.bufferProcessing = !1, this.onwrite = function(Fe) {
|
|
12476
|
-
|
|
12476
|
+
oe(U, Fe);
|
|
12477
12477
|
}, this.writecb = null, this.writelen = 0, this.bufferedRequest = null, this.lastBufferedRequest = null, this.pendingcb = 0, this.prefinished = !1, this.errorEmitted = !1, this.emitClose = j.emitClose !== !1, this.autoDestroy = !!j.autoDestroy, this.bufferedRequestCount = 0, this.corkedRequestsFree = new e(this);
|
|
12478
12478
|
}
|
|
12479
|
-
|
|
12480
|
-
for (var U = this.bufferedRequest,
|
|
12481
|
-
|
|
12482
|
-
return
|
|
12479
|
+
A.prototype.getBuffer = function() {
|
|
12480
|
+
for (var U = this.bufferedRequest, re = []; U; )
|
|
12481
|
+
re.push(U), U = U.next;
|
|
12482
|
+
return re;
|
|
12483
12483
|
}, function() {
|
|
12484
12484
|
try {
|
|
12485
|
-
Object.defineProperty(
|
|
12485
|
+
Object.defineProperty(A.prototype, "buffer", {
|
|
12486
12486
|
get: o.deprecate(function() {
|
|
12487
12487
|
return this.getBuffer();
|
|
12488
12488
|
}, "_writableState.buffer is deprecated. Use _writableState.getBuffer instead.", "DEP0003")
|
|
@@ -12493,7 +12493,7 @@ function require_stream_writable() {
|
|
|
12493
12493
|
var N;
|
|
12494
12494
|
typeof Symbol == "function" && Symbol.hasInstance && typeof Function.prototype[Symbol.hasInstance] == "function" ? (N = Function.prototype[Symbol.hasInstance], Object.defineProperty(E, Symbol.hasInstance, {
|
|
12495
12495
|
value: function(U) {
|
|
12496
|
-
return N.call(this, U) ? !0 : this !== E ? !1 : U && U._writableState instanceof
|
|
12496
|
+
return N.call(this, U) ? !0 : this !== E ? !1 : U && U._writableState instanceof A;
|
|
12497
12497
|
}
|
|
12498
12498
|
})) : N = function(U) {
|
|
12499
12499
|
return U instanceof this;
|
|
@@ -12503,22 +12503,22 @@ function require_stream_writable() {
|
|
|
12503
12503
|
var U = this instanceof r;
|
|
12504
12504
|
if (!U && !N.call(E, this))
|
|
12505
12505
|
return new E(j);
|
|
12506
|
-
this._writableState = new
|
|
12506
|
+
this._writableState = new A(j, this, U), this.writable = !0, j && (typeof j.write == "function" && (this._write = j.write), typeof j.writev == "function" && (this._writev = j.writev), typeof j.destroy == "function" && (this._destroy = j.destroy), typeof j.final == "function" && (this._final = j.final)), a.call(this);
|
|
12507
12507
|
}
|
|
12508
12508
|
E.prototype.pipe = function() {
|
|
12509
12509
|
w(this, new C());
|
|
12510
12510
|
};
|
|
12511
12511
|
function P(j, U) {
|
|
12512
|
-
var
|
|
12513
|
-
w(j,
|
|
12512
|
+
var re = new v();
|
|
12513
|
+
w(j, re), process.nextTick(U, re);
|
|
12514
12514
|
}
|
|
12515
|
-
function
|
|
12515
|
+
function F(j, U, re, Re) {
|
|
12516
12516
|
var Fe;
|
|
12517
|
-
return
|
|
12517
|
+
return re === null ? Fe = new y() : typeof re != "string" && !U.objectMode && (Fe = new g("chunk", ["string", "Buffer"], re)), Fe ? (w(j, Fe), process.nextTick(Re, Fe), !1) : !0;
|
|
12518
12518
|
}
|
|
12519
|
-
E.prototype.write = function(j, U,
|
|
12519
|
+
E.prototype.write = function(j, U, re) {
|
|
12520
12520
|
var Re = this._writableState, Fe = !1, L = !Re.objectMode && u(j);
|
|
12521
|
-
return L && !s.isBuffer(j) && (j = c(j)), typeof U == "function" && (
|
|
12521
|
+
return L && !s.isBuffer(j) && (j = c(j)), typeof U == "function" && (re = U, U = null), L ? U = "buffer" : U || (U = Re.defaultEncoding), typeof re != "function" && (re = _), Re.ending ? P(this, re) : (L || F(this, Re, j, re)) && (Re.pendingcb++, Fe = J(this, Re, L, j, U, re)), Fe;
|
|
12522
12522
|
}, E.prototype.cork = function() {
|
|
12523
12523
|
this._writableState.corked++;
|
|
12524
12524
|
}, E.prototype.uncork = function() {
|
|
@@ -12534,8 +12534,8 @@ function require_stream_writable() {
|
|
|
12534
12534
|
return this._writableState && this._writableState.getBuffer();
|
|
12535
12535
|
}
|
|
12536
12536
|
});
|
|
12537
|
-
function W(j, U,
|
|
12538
|
-
return !j.objectMode && j.decodeStrings !== !1 && typeof U == "string" && (U = s.from(U,
|
|
12537
|
+
function W(j, U, re) {
|
|
12538
|
+
return !j.objectMode && j.decodeStrings !== !1 && typeof U == "string" && (U = s.from(U, re)), U;
|
|
12539
12539
|
}
|
|
12540
12540
|
Object.defineProperty(E.prototype, "writableHighWaterMark", {
|
|
12541
12541
|
enumerable: !1,
|
|
@@ -12543,10 +12543,10 @@ function require_stream_writable() {
|
|
|
12543
12543
|
return this._writableState.highWaterMark;
|
|
12544
12544
|
}
|
|
12545
12545
|
});
|
|
12546
|
-
function J(j, U,
|
|
12547
|
-
if (!
|
|
12546
|
+
function J(j, U, re, Re, Fe, L) {
|
|
12547
|
+
if (!re) {
|
|
12548
12548
|
var M = W(U, Re, Fe);
|
|
12549
|
-
Re !== M && (
|
|
12549
|
+
Re !== M && (re = !0, Fe = "buffer", Re = M);
|
|
12550
12550
|
}
|
|
12551
12551
|
var Te = U.objectMode ? 1 : Re.length;
|
|
12552
12552
|
U.length += Te;
|
|
@@ -12556,7 +12556,7 @@ function require_stream_writable() {
|
|
|
12556
12556
|
U.lastBufferedRequest = {
|
|
12557
12557
|
chunk: Re,
|
|
12558
12558
|
encoding: Fe,
|
|
12559
|
-
isBuf:
|
|
12559
|
+
isBuf: re,
|
|
12560
12560
|
callback: L,
|
|
12561
12561
|
next: null
|
|
12562
12562
|
}, tt ? tt.next = U.lastBufferedRequest : U.bufferedRequest = U.lastBufferedRequest, U.bufferedRequestCount += 1;
|
|
@@ -12564,56 +12564,56 @@ function require_stream_writable() {
|
|
|
12564
12564
|
z(j, U, !1, Te, Re, Fe, L);
|
|
12565
12565
|
return Ne;
|
|
12566
12566
|
}
|
|
12567
|
-
function z(j, U,
|
|
12568
|
-
U.writelen = Re, U.writecb = M, U.writing = !0, U.sync = !0, U.destroyed ? U.onwrite(new b("write")) :
|
|
12567
|
+
function z(j, U, re, Re, Fe, L, M) {
|
|
12568
|
+
U.writelen = Re, U.writecb = M, U.writing = !0, U.sync = !0, U.destroyed ? U.onwrite(new b("write")) : re ? j._writev(Fe, U.onwrite) : j._write(Fe, L, U.onwrite), U.sync = !1;
|
|
12569
12569
|
}
|
|
12570
|
-
function Y(j, U,
|
|
12571
|
-
--U.pendingcb,
|
|
12570
|
+
function Y(j, U, re, Re, Fe) {
|
|
12571
|
+
--U.pendingcb, re ? (process.nextTick(Fe, Re), process.nextTick(xe, j, U), j._writableState.errorEmitted = !0, w(j, Re)) : (Fe(Re), j._writableState.errorEmitted = !0, w(j, Re), xe(j, U));
|
|
12572
12572
|
}
|
|
12573
12573
|
function Q(j) {
|
|
12574
12574
|
j.writing = !1, j.writecb = null, j.length -= j.writelen, j.writelen = 0;
|
|
12575
12575
|
}
|
|
12576
|
-
function
|
|
12577
|
-
var
|
|
12576
|
+
function oe(j, U) {
|
|
12577
|
+
var re = j._writableState, Re = re.sync, Fe = re.writecb;
|
|
12578
12578
|
if (typeof Fe != "function")
|
|
12579
12579
|
throw new I();
|
|
12580
|
-
if (Q(
|
|
12581
|
-
Y(j,
|
|
12580
|
+
if (Q(re), U)
|
|
12581
|
+
Y(j, re, Re, U, Fe);
|
|
12582
12582
|
else {
|
|
12583
|
-
var L = we(
|
|
12584
|
-
!L && !
|
|
12583
|
+
var L = we(re) || j.destroyed;
|
|
12584
|
+
!L && !re.corked && !re.bufferProcessing && re.bufferedRequest && ue(j, re), Re ? process.nextTick(ee, j, re, L, Fe) : ee(j, re, L, Fe);
|
|
12585
12585
|
}
|
|
12586
12586
|
}
|
|
12587
|
-
function ee(j, U,
|
|
12588
|
-
|
|
12587
|
+
function ee(j, U, re, Re) {
|
|
12588
|
+
re || X(j, U), U.pendingcb--, Re(), xe(j, U);
|
|
12589
12589
|
}
|
|
12590
12590
|
function X(j, U) {
|
|
12591
12591
|
U.length === 0 && U.needDrain && (U.needDrain = !1, j.emit("drain"));
|
|
12592
12592
|
}
|
|
12593
12593
|
function ue(j, U) {
|
|
12594
12594
|
U.bufferProcessing = !0;
|
|
12595
|
-
var
|
|
12596
|
-
if (j._writev &&
|
|
12595
|
+
var re = U.bufferedRequest;
|
|
12596
|
+
if (j._writev && re && re.next) {
|
|
12597
12597
|
var Re = U.bufferedRequestCount, Fe = new Array(Re), L = U.corkedRequestsFree;
|
|
12598
|
-
L.entry =
|
|
12599
|
-
for (var M = 0, Te = !0;
|
|
12600
|
-
Fe[M] =
|
|
12598
|
+
L.entry = re;
|
|
12599
|
+
for (var M = 0, Te = !0; re; )
|
|
12600
|
+
Fe[M] = re, re.isBuf || (Te = !1), re = re.next, M += 1;
|
|
12601
12601
|
Fe.allBuffers = Te, z(j, U, !0, U.length, Fe, "", L.finish), U.pendingcb++, U.lastBufferedRequest = null, L.next ? (U.corkedRequestsFree = L.next, L.next = null) : U.corkedRequestsFree = new e(U), U.bufferedRequestCount = 0;
|
|
12602
12602
|
} else {
|
|
12603
|
-
for (;
|
|
12604
|
-
var Ne =
|
|
12605
|
-
if (z(j, U, !1, Ge, Ne, tt, je),
|
|
12603
|
+
for (; re; ) {
|
|
12604
|
+
var Ne = re.chunk, tt = re.encoding, je = re.callback, Ge = U.objectMode ? 1 : Ne.length;
|
|
12605
|
+
if (z(j, U, !1, Ge, Ne, tt, je), re = re.next, U.bufferedRequestCount--, U.writing)
|
|
12606
12606
|
break;
|
|
12607
12607
|
}
|
|
12608
|
-
|
|
12608
|
+
re === null && (U.lastBufferedRequest = null);
|
|
12609
12609
|
}
|
|
12610
|
-
U.bufferedRequest =
|
|
12610
|
+
U.bufferedRequest = re, U.bufferProcessing = !1;
|
|
12611
12611
|
}
|
|
12612
|
-
E.prototype._write = function(j, U,
|
|
12613
|
-
|
|
12614
|
-
}, E.prototype._writev = null, E.prototype.end = function(j, U,
|
|
12612
|
+
E.prototype._write = function(j, U, re) {
|
|
12613
|
+
re(new m("_write()"));
|
|
12614
|
+
}, E.prototype._writev = null, E.prototype.end = function(j, U, re) {
|
|
12615
12615
|
var Re = this._writableState;
|
|
12616
|
-
return typeof j == "function" ? (
|
|
12616
|
+
return typeof j == "function" ? (re = j, j = null, U = null) : typeof U == "function" && (re = U, U = null), j != null && this.write(j, U), Re.corked && (Re.corked = 1, this.uncork()), Re.ending || te(this, Re, re), this;
|
|
12617
12617
|
}, Object.defineProperty(E.prototype, "writableLength", {
|
|
12618
12618
|
enumerable: !1,
|
|
12619
12619
|
get: function() {
|
|
@@ -12624,29 +12624,29 @@ function require_stream_writable() {
|
|
|
12624
12624
|
return j.ending && j.length === 0 && j.bufferedRequest === null && !j.finished && !j.writing;
|
|
12625
12625
|
}
|
|
12626
12626
|
function Ce(j, U) {
|
|
12627
|
-
j._final(function(
|
|
12628
|
-
U.pendingcb--,
|
|
12627
|
+
j._final(function(re) {
|
|
12628
|
+
U.pendingcb--, re && w(j, re), U.prefinished = !0, j.emit("prefinish"), xe(j, U);
|
|
12629
12629
|
});
|
|
12630
12630
|
}
|
|
12631
12631
|
function ce(j, U) {
|
|
12632
12632
|
!U.prefinished && !U.finalCalled && (typeof j._final == "function" && !U.destroyed ? (U.pendingcb++, U.finalCalled = !0, process.nextTick(Ce, j, U)) : (U.prefinished = !0, j.emit("prefinish")));
|
|
12633
12633
|
}
|
|
12634
12634
|
function xe(j, U) {
|
|
12635
|
-
var
|
|
12636
|
-
if (
|
|
12635
|
+
var re = we(U);
|
|
12636
|
+
if (re && (ce(j, U), U.pendingcb === 0 && (U.finished = !0, j.emit("finish"), U.autoDestroy))) {
|
|
12637
12637
|
var Re = j._readableState;
|
|
12638
12638
|
(!Re || Re.autoDestroy && Re.endEmitted) && j.destroy();
|
|
12639
12639
|
}
|
|
12640
|
-
return
|
|
12640
|
+
return re;
|
|
12641
12641
|
}
|
|
12642
|
-
function te(j, U,
|
|
12643
|
-
U.ending = !0, xe(j, U),
|
|
12642
|
+
function te(j, U, re) {
|
|
12643
|
+
U.ending = !0, xe(j, U), re && (U.finished ? process.nextTick(re) : j.once("finish", re)), U.ended = !0, j.writable = !1;
|
|
12644
12644
|
}
|
|
12645
|
-
function de(j, U,
|
|
12645
|
+
function de(j, U, re) {
|
|
12646
12646
|
var Re = j.entry;
|
|
12647
12647
|
for (j.entry = null; Re; ) {
|
|
12648
12648
|
var Fe = Re.callback;
|
|
12649
|
-
U.pendingcb--, Fe(
|
|
12649
|
+
U.pendingcb--, Fe(re), Re = Re.next;
|
|
12650
12650
|
}
|
|
12651
12651
|
U.corkedRequestsFree.next = j;
|
|
12652
12652
|
}
|
|
@@ -13016,9 +13016,9 @@ function requireAsync_iterator() {
|
|
|
13016
13016
|
if (w)
|
|
13017
13017
|
_ = new Promise(m(w, this));
|
|
13018
13018
|
else {
|
|
13019
|
-
var
|
|
13020
|
-
if (
|
|
13021
|
-
return Promise.resolve(p(
|
|
13019
|
+
var A = this[f].read();
|
|
13020
|
+
if (A !== null)
|
|
13021
|
+
return Promise.resolve(p(A, !1));
|
|
13022
13022
|
_ = new Promise(this[d]);
|
|
13023
13023
|
}
|
|
13024
13024
|
return this[u] = _, _;
|
|
@@ -13053,16 +13053,16 @@ function requireAsync_iterator() {
|
|
|
13053
13053
|
value: v._readableState.endEmitted,
|
|
13054
13054
|
writable: !0
|
|
13055
13055
|
}), r(O, d, {
|
|
13056
|
-
value: function(
|
|
13056
|
+
value: function(A, N) {
|
|
13057
13057
|
var E = w[f].read();
|
|
13058
|
-
E ? (w[u] = null, w[a] = null, w[s] = null,
|
|
13058
|
+
E ? (w[u] = null, w[a] = null, w[s] = null, A(p(E, !1))) : (w[a] = A, w[s] = N);
|
|
13059
13059
|
},
|
|
13060
13060
|
writable: !0
|
|
13061
13061
|
}), O));
|
|
13062
13062
|
return w[u] = null, o(v, function(_) {
|
|
13063
13063
|
if (_ && _.code !== "ERR_STREAM_PREMATURE_CLOSE") {
|
|
13064
|
-
var
|
|
13065
|
-
|
|
13064
|
+
var A = w[s];
|
|
13065
|
+
A !== null && (w[u] = null, w[a] = null, w[s] = null, A(_)), w[l] = _;
|
|
13066
13066
|
return;
|
|
13067
13067
|
}
|
|
13068
13068
|
var N = w[a];
|
|
@@ -13099,7 +13099,7 @@ function require_stream_readable() {
|
|
|
13099
13099
|
};
|
|
13100
13100
|
var f = requireBuffer_list(), p = destroy_1, h = state, g = h.getHighWaterMark, m = errorsBrowser.codes, I = m.ERR_INVALID_ARG_TYPE, C = m.ERR_STREAM_PUSH_AFTER_EOF, b = m.ERR_METHOD_NOT_IMPLEMENTED, y = m.ERR_STREAM_UNSHIFT_AFTER_END_EVENT, v, O, w;
|
|
13101
13101
|
inherits_browser.exports(P, o);
|
|
13102
|
-
var _ = p.errorOrDestroy,
|
|
13102
|
+
var _ = p.errorOrDestroy, A = ["error", "close", "destroy", "pause", "resume"];
|
|
13103
13103
|
function N(L, M, Te) {
|
|
13104
13104
|
if (typeof L.prependListener == "function")
|
|
13105
13105
|
return L.prependListener(M, Te);
|
|
@@ -13126,15 +13126,15 @@ function require_stream_readable() {
|
|
|
13126
13126
|
M(L);
|
|
13127
13127
|
}, P.prototype.push = function(L, M) {
|
|
13128
13128
|
var Te = this._readableState, Ne;
|
|
13129
|
-
return Te.objectMode ? Ne = !0 : typeof L == "string" && (M = M || Te.defaultEncoding, M !== Te.encoding && (L = a.from(L, M), M = ""), Ne = !0),
|
|
13129
|
+
return Te.objectMode ? Ne = !0 : typeof L == "string" && (M = M || Te.defaultEncoding, M !== Te.encoding && (L = a.from(L, M), M = ""), Ne = !0), F(this, L, M, !1, Ne);
|
|
13130
13130
|
}, P.prototype.unshift = function(L) {
|
|
13131
|
-
return
|
|
13131
|
+
return F(this, L, null, !0, !1);
|
|
13132
13132
|
};
|
|
13133
|
-
function
|
|
13133
|
+
function F(L, M, Te, Ne, tt) {
|
|
13134
13134
|
d("readableAddChunk", M);
|
|
13135
13135
|
var je = L._readableState;
|
|
13136
13136
|
if (M === null)
|
|
13137
|
-
je.reading = !1,
|
|
13137
|
+
je.reading = !1, oe(L, je);
|
|
13138
13138
|
else {
|
|
13139
13139
|
var Ge;
|
|
13140
13140
|
if (tt || (Ge = J(je, M)), Ge)
|
|
@@ -13182,15 +13182,15 @@ function require_stream_readable() {
|
|
|
13182
13182
|
d("read", L), L = parseInt(L, 10);
|
|
13183
13183
|
var M = this._readableState, Te = L;
|
|
13184
13184
|
if (L !== 0 && (M.emittedReadable = !1), L === 0 && M.needReadable && ((M.highWaterMark !== 0 ? M.length >= M.highWaterMark : M.length > 0) || M.ended))
|
|
13185
|
-
return d("read: emitReadable", M.length, M.ended), M.length === 0 && M.ended ?
|
|
13185
|
+
return d("read: emitReadable", M.length, M.ended), M.length === 0 && M.ended ? re(this) : ee(this), null;
|
|
13186
13186
|
if (L = Q(L, M), L === 0 && M.ended)
|
|
13187
|
-
return M.length === 0 &&
|
|
13187
|
+
return M.length === 0 && re(this), null;
|
|
13188
13188
|
var Ne = M.needReadable;
|
|
13189
13189
|
d("need readable", Ne), (M.length === 0 || M.length - L < M.highWaterMark) && (Ne = !0, d("length less than watermark", Ne)), M.ended || M.reading ? (Ne = !1, d("reading or ended", Ne)) : Ne && (d("do read"), M.reading = !0, M.sync = !0, M.length === 0 && (M.needReadable = !0), this._read(M.highWaterMark), M.sync = !1, M.reading || (L = Q(Te, M)));
|
|
13190
13190
|
var tt;
|
|
13191
|
-
return L > 0 ? tt = U(L, M) : tt = null, tt === null ? (M.needReadable = M.length <= M.highWaterMark, L = 0) : (M.length -= L, M.awaitDrain = 0), M.length === 0 && (M.ended || (M.needReadable = !0), Te !== L && M.ended &&
|
|
13191
|
+
return L > 0 ? tt = U(L, M) : tt = null, tt === null ? (M.needReadable = M.length <= M.highWaterMark, L = 0) : (M.length -= L, M.awaitDrain = 0), M.length === 0 && (M.ended || (M.needReadable = !0), Te !== L && M.ended && re(this)), tt !== null && this.emit("data", tt), tt;
|
|
13192
13192
|
};
|
|
13193
|
-
function
|
|
13193
|
+
function oe(L, M) {
|
|
13194
13194
|
if (d("onEofChunk"), !M.ended) {
|
|
13195
13195
|
if (M.decoder) {
|
|
13196
13196
|
var Te = M.decoder.end();
|
|
@@ -13351,8 +13351,8 @@ function require_stream_readable() {
|
|
|
13351
13351
|
return L[yt].apply(L, arguments);
|
|
13352
13352
|
};
|
|
13353
13353
|
}(tt));
|
|
13354
|
-
for (var je = 0; je <
|
|
13355
|
-
L.on(
|
|
13354
|
+
for (var je = 0; je < A.length; je++)
|
|
13355
|
+
L.on(A[je], this.emit.bind(this, A[je]));
|
|
13356
13356
|
return this._read = function(Ge) {
|
|
13357
13357
|
d("wrapped _read", Ge), Ne && (Ne = !1, L.resume());
|
|
13358
13358
|
}, this;
|
|
@@ -13388,7 +13388,7 @@ function require_stream_readable() {
|
|
|
13388
13388
|
var Te;
|
|
13389
13389
|
return M.objectMode ? Te = M.buffer.shift() : !L || L >= M.length ? (M.decoder ? Te = M.buffer.join("") : M.buffer.length === 1 ? Te = M.buffer.first() : Te = M.buffer.concat(M.length), M.buffer.clear()) : Te = M.buffer.consume(L, M.decoder), Te;
|
|
13390
13390
|
}
|
|
13391
|
-
function
|
|
13391
|
+
function re(L) {
|
|
13392
13392
|
var M = L._readableState;
|
|
13393
13393
|
d("endReadable", M.endEmitted), M.endEmitted || (M.ended = !0, process.nextTick(Re, M, L));
|
|
13394
13394
|
}
|
|
@@ -15733,7 +15733,7 @@ const Image = (e) => {
|
|
|
15733
15733
|
useDeepCompareEffect(() => {
|
|
15734
15734
|
N();
|
|
15735
15735
|
}, [l]);
|
|
15736
|
-
const
|
|
15736
|
+
const A = (E) => {
|
|
15737
15737
|
s == null || s({
|
|
15738
15738
|
items: E
|
|
15739
15739
|
});
|
|
@@ -15751,7 +15751,7 @@ const Image = (e) => {
|
|
|
15751
15751
|
...C
|
|
15752
15752
|
}
|
|
15753
15753
|
});
|
|
15754
|
-
|
|
15754
|
+
A(E);
|
|
15755
15755
|
} catch (E) {
|
|
15756
15756
|
f(E);
|
|
15757
15757
|
} finally {
|
|
@@ -15769,7 +15769,7 @@ const Image = (e) => {
|
|
|
15769
15769
|
padding: "1rem"
|
|
15770
15770
|
},
|
|
15771
15771
|
children: O.map((E, P) => {
|
|
15772
|
-
var
|
|
15772
|
+
var F, W;
|
|
15773
15773
|
return /* @__PURE__ */ jsx("div", {
|
|
15774
15774
|
children: /* @__PURE__ */ jsxs(Timeline$1.Item, {
|
|
15775
15775
|
children: [/* @__PURE__ */ jsx("div", {
|
|
@@ -15781,7 +15781,7 @@ const Image = (e) => {
|
|
|
15781
15781
|
m(O.find((J) => E.id === J.id)), h(!0);
|
|
15782
15782
|
},
|
|
15783
15783
|
children: /* @__PURE__ */ jsx("strong", {
|
|
15784
|
-
children: (
|
|
15784
|
+
children: (F = E.values) == null ? void 0 : F[v]
|
|
15785
15785
|
})
|
|
15786
15786
|
}), /* @__PURE__ */ jsx("br", {}), /* @__PURE__ */ jsx("div", {
|
|
15787
15787
|
style: {
|
|
@@ -15981,7 +15981,7 @@ const transformPlainMany2Ones = ({
|
|
|
15981
15981
|
onChange: a
|
|
15982
15982
|
} = e, {
|
|
15983
15983
|
items: s = []
|
|
15984
|
-
} = r || {}, l = s.filter((
|
|
15984
|
+
} = r || {}, l = s.filter((A) => A.operation !== "pendingRemove").map((A) => A.id), [c, u] = useState([]), [d, f] = useState(), [p, h] = useState(!1), {
|
|
15985
15985
|
relation: g,
|
|
15986
15986
|
context: m,
|
|
15987
15987
|
readOnly: I,
|
|
@@ -15992,16 +15992,16 @@ const transformPlainMany2Ones = ({
|
|
|
15992
15992
|
useDeepCompareEffect(() => {
|
|
15993
15993
|
O();
|
|
15994
15994
|
}, [s]);
|
|
15995
|
-
const v = (
|
|
15995
|
+
const v = (A) => {
|
|
15996
15996
|
a == null || a({
|
|
15997
|
-
items:
|
|
15997
|
+
items: A
|
|
15998
15998
|
});
|
|
15999
15999
|
};
|
|
16000
16000
|
async function O() {
|
|
16001
16001
|
h(!0);
|
|
16002
|
-
let
|
|
16002
|
+
let A = [];
|
|
16003
16003
|
try {
|
|
16004
|
-
if (I && (
|
|
16004
|
+
if (I && (A = [["id", "in", l]]), o.domain) {
|
|
16005
16005
|
const P = await ConnectionProvider.getHandler().evalDomain({
|
|
16006
16006
|
domain: o.domain,
|
|
16007
16007
|
values: transformPlainMany2Ones({
|
|
@@ -16010,20 +16010,20 @@ const transformPlainMany2Ones = ({
|
|
|
16010
16010
|
}),
|
|
16011
16011
|
context: b.getContext()
|
|
16012
16012
|
});
|
|
16013
|
-
|
|
16013
|
+
A = [...A, ...P];
|
|
16014
16014
|
}
|
|
16015
16015
|
const E = (await ConnectionProvider.getHandler().search({
|
|
16016
16016
|
model: g,
|
|
16017
|
-
params:
|
|
16017
|
+
params: A,
|
|
16018
16018
|
fields: [C],
|
|
16019
16019
|
context: {
|
|
16020
16020
|
...y == null ? void 0 : y(),
|
|
16021
16021
|
...m
|
|
16022
16022
|
}
|
|
16023
16023
|
})).map((P) => {
|
|
16024
|
-
const
|
|
16025
|
-
let W =
|
|
16026
|
-
return Array.isArray(
|
|
16024
|
+
const F = P[C];
|
|
16025
|
+
let W = F;
|
|
16026
|
+
return Array.isArray(F) && (W = F[1]), {
|
|
16027
16027
|
label: W,
|
|
16028
16028
|
value: P.id
|
|
16029
16029
|
};
|
|
@@ -16035,31 +16035,31 @@ const transformPlainMany2Ones = ({
|
|
|
16035
16035
|
h(!1);
|
|
16036
16036
|
}
|
|
16037
16037
|
}
|
|
16038
|
-
const w = (
|
|
16039
|
-
const N = s.map((P) =>
|
|
16038
|
+
const w = (A) => {
|
|
16039
|
+
const N = s.map((P) => A.includes(P.id) ? P.operation == "pendingRemove" ? {
|
|
16040
16040
|
...P,
|
|
16041
16041
|
operation: "pendingLink"
|
|
16042
16042
|
} : P : {
|
|
16043
16043
|
id: P.id,
|
|
16044
16044
|
operation: "pendingRemove"
|
|
16045
16045
|
}), E = N.map((P) => P.id);
|
|
16046
|
-
|
|
16046
|
+
A.filter((P) => !E.includes(P)).map((P) => {
|
|
16047
16047
|
N.push({
|
|
16048
16048
|
id: P,
|
|
16049
16049
|
operation: "pendingLink"
|
|
16050
16050
|
});
|
|
16051
16051
|
}), v(N);
|
|
16052
|
-
}, _ = (
|
|
16052
|
+
}, _ = (A) => {
|
|
16053
16053
|
const {
|
|
16054
16054
|
label: N,
|
|
16055
16055
|
closable: E,
|
|
16056
16056
|
onClose: P
|
|
16057
|
-
} =
|
|
16057
|
+
} = A, F = (W) => {
|
|
16058
16058
|
W.preventDefault(), W.stopPropagation();
|
|
16059
16059
|
};
|
|
16060
16060
|
return /* @__PURE__ */ jsx(Tag, {
|
|
16061
16061
|
color: colorFromString(N),
|
|
16062
|
-
onMouseDown:
|
|
16062
|
+
onMouseDown: F,
|
|
16063
16063
|
style: {
|
|
16064
16064
|
margin: "5px"
|
|
16065
16065
|
},
|
|
@@ -16453,11 +16453,11 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
|
|
|
16453
16453
|
currentId: O,
|
|
16454
16454
|
limit: w,
|
|
16455
16455
|
setLimit: _,
|
|
16456
|
-
searchParams:
|
|
16456
|
+
searchParams: A = [],
|
|
16457
16457
|
setSearchValues: N
|
|
16458
|
-
} = e, [E, P] = useState(!1), [
|
|
16458
|
+
} = e, [E, P] = useState(!1), [F, W] = useState(!1), [J, z] = useState(), [Y, Q] = useState(1), [oe, ee] = useState(0), [X, ue] = useState(), [we, Ce] = useState([]), [ce, xe] = useState(void 0), te = useRef(w || DEFAULT_SEARCH_LIMIT$1), de = useRef([]), j = useCallback((je) => {
|
|
16459
16459
|
b == null || b([...je]), Ce([...je]);
|
|
16460
|
-
}, []), U = useCallback(() => y || we, [y, we]),
|
|
16460
|
+
}, []), U = useCallback(() => y || we, [y, we]), re = useCallback(async () => {
|
|
16461
16461
|
const je = await ConnectionProvider.getHandler().nameSearch({
|
|
16462
16462
|
model: r,
|
|
16463
16463
|
payload: u,
|
|
@@ -16500,10 +16500,10 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
|
|
|
16500
16500
|
p
|
|
16501
16501
|
]), Re = useCallback(
|
|
16502
16502
|
async (je) => {
|
|
16503
|
-
const { params: Ge, newOffset: yt } = je || {}, Tt = mergeParams(Ge ||
|
|
16503
|
+
const { params: Ge, newOffset: yt } = je || {}, Tt = mergeParams(Ge || A, v), { colors: Ot } = getTree(h), { totalItems: $t, results: Vt, attrsEvaluated: Ct } = await ConnectionProvider.getHandler().searchForTree({
|
|
16504
16504
|
params: Tt,
|
|
16505
16505
|
limit: te.current,
|
|
16506
|
-
offset: yt ||
|
|
16506
|
+
offset: yt || oe,
|
|
16507
16507
|
model: r,
|
|
16508
16508
|
fields: h.field_parent ? { ...h.fields, [h.field_parent]: {} } : h.fields,
|
|
16509
16509
|
context: f,
|
|
@@ -16538,13 +16538,13 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
|
|
|
16538
16538
|
m,
|
|
16539
16539
|
p,
|
|
16540
16540
|
w,
|
|
16541
|
-
|
|
16542
|
-
|
|
16541
|
+
oe,
|
|
16542
|
+
A
|
|
16543
16543
|
]
|
|
16544
16544
|
), Fe = useCallback(
|
|
16545
16545
|
async (je) => {
|
|
16546
16546
|
try {
|
|
16547
|
-
P(!0), c == null || c(!0), u && !d.current ? await
|
|
16547
|
+
P(!0), c == null || c(!0), u && !d.current ? await re() : await Re(je);
|
|
16548
16548
|
} catch (Ge) {
|
|
16549
16549
|
z(Ge.message);
|
|
16550
16550
|
} finally {
|
|
@@ -16559,7 +16559,7 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
|
|
|
16559
16559
|
w,
|
|
16560
16560
|
r,
|
|
16561
16561
|
u,
|
|
16562
|
-
|
|
16562
|
+
oe,
|
|
16563
16563
|
y,
|
|
16564
16564
|
d,
|
|
16565
16565
|
p,
|
|
@@ -16637,10 +16637,10 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
|
|
|
16637
16637
|
clear: Ne,
|
|
16638
16638
|
fetchResults: Fe,
|
|
16639
16639
|
tableRefreshing: E,
|
|
16640
|
-
searchFilterLoading:
|
|
16640
|
+
searchFilterLoading: F,
|
|
16641
16641
|
searchError: J,
|
|
16642
16642
|
page: Y,
|
|
16643
|
-
offset:
|
|
16643
|
+
offset: oe,
|
|
16644
16644
|
limit: w,
|
|
16645
16645
|
getResults: U,
|
|
16646
16646
|
requestPageChange: Te,
|
|
@@ -16672,11 +16672,11 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
|
|
|
16672
16672
|
setTotalItems: O,
|
|
16673
16673
|
setSelectedRowItems: w,
|
|
16674
16674
|
selectedRowItems: _,
|
|
16675
|
-
searchTreeNameSearch:
|
|
16675
|
+
searchTreeNameSearch: A,
|
|
16676
16676
|
setSearchTreeNameSearch: N,
|
|
16677
16677
|
goToResourceId: E,
|
|
16678
16678
|
limit: P
|
|
16679
|
-
} = e, [
|
|
16679
|
+
} = e, [F, W] = useState(!1), [J, z] = useState(!1), [Y, Q] = useState(!1), [oe, ee] = useState(!0), [X, ue] = useState(!0), [we, Ce] = useState([]), [ce, xe] = useState(!1), [te, de] = useState([]), [j, U] = useState(!1), [re, Re] = useState(!0), [Fe, L] = useState(), [M, Te] = useState({}), [Ne, tt] = useState(P !== void 0 ? P : DEFAULT_SEARCH_LIMIT$1);
|
|
16680
16680
|
useEffect(() => {
|
|
16681
16681
|
g && g.length > 0 && !m && (I == null || I(0), p == null || p(g[0].id));
|
|
16682
16682
|
}, [g]), useEffect(() => {
|
|
@@ -16696,7 +16696,7 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
|
|
|
16696
16696
|
currentView: o,
|
|
16697
16697
|
setCurrentView: s,
|
|
16698
16698
|
availableViews: l,
|
|
16699
|
-
formIsSaving:
|
|
16699
|
+
formIsSaving: F,
|
|
16700
16700
|
setFormIsSaving: W,
|
|
16701
16701
|
formHasChanges: J,
|
|
16702
16702
|
setFormHasChanges: z,
|
|
@@ -16713,7 +16713,7 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
|
|
|
16713
16713
|
currentModel: C,
|
|
16714
16714
|
removingItem: Y,
|
|
16715
16715
|
setRemovingItem: Q,
|
|
16716
|
-
formIsLoading:
|
|
16716
|
+
formIsLoading: oe,
|
|
16717
16717
|
setFormIsLoading: ee,
|
|
16718
16718
|
treeIsLoading: X,
|
|
16719
16719
|
setTreeIsLoading: ue,
|
|
@@ -16731,10 +16731,10 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
|
|
|
16731
16731
|
setSorter: y,
|
|
16732
16732
|
totalItems: v,
|
|
16733
16733
|
setTotalItems: O,
|
|
16734
|
-
searchTreeNameSearch:
|
|
16734
|
+
searchTreeNameSearch: A,
|
|
16735
16735
|
setSearchTreeNameSearch: N,
|
|
16736
16736
|
setGraphIsLoading: Re,
|
|
16737
|
-
graphIsLoading:
|
|
16737
|
+
graphIsLoading: re,
|
|
16738
16738
|
previousView: Fe,
|
|
16739
16739
|
setPreviousView: L,
|
|
16740
16740
|
goToResourceId: E,
|
|
@@ -16797,17 +16797,17 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
|
|
|
16797
16797
|
const {
|
|
16798
16798
|
reportData: E,
|
|
16799
16799
|
fields: P,
|
|
16800
|
-
values:
|
|
16800
|
+
values: F,
|
|
16801
16801
|
context: W = {}
|
|
16802
16802
|
} = N, {
|
|
16803
16803
|
context: J,
|
|
16804
16804
|
model: z,
|
|
16805
16805
|
datas: Y = {},
|
|
16806
16806
|
report_name: Q,
|
|
16807
|
-
type:
|
|
16807
|
+
type: oe
|
|
16808
16808
|
} = E;
|
|
16809
|
-
if (
|
|
16810
|
-
showDialog$8(`${
|
|
16809
|
+
if (oe !== "ir.actions.report.xml") {
|
|
16810
|
+
showDialog$8(`${oe} action not supported`);
|
|
16811
16811
|
return;
|
|
16812
16812
|
}
|
|
16813
16813
|
const {
|
|
@@ -16817,7 +16817,7 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
|
|
|
16817
16817
|
const ue = typeof J == "string" ? parseContext({
|
|
16818
16818
|
context: J,
|
|
16819
16819
|
fields: P,
|
|
16820
|
-
values:
|
|
16820
|
+
values: F
|
|
16821
16821
|
}) : J;
|
|
16822
16822
|
try {
|
|
16823
16823
|
const we = await ConnectionProvider.getHandler().createReport({
|
|
@@ -16855,7 +16855,7 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
|
|
|
16855
16855
|
actionData: N,
|
|
16856
16856
|
fields: E,
|
|
16857
16857
|
values: P,
|
|
16858
|
-
context:
|
|
16858
|
+
context: F,
|
|
16859
16859
|
onRefreshParentValues: W
|
|
16860
16860
|
}) {
|
|
16861
16861
|
const {
|
|
@@ -16865,26 +16865,26 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
|
|
|
16865
16865
|
reportData: N,
|
|
16866
16866
|
fields: E,
|
|
16867
16867
|
values: P,
|
|
16868
|
-
context:
|
|
16868
|
+
context: F
|
|
16869
16869
|
}) : J === "ir.actions.act_window" ? await O({
|
|
16870
16870
|
actionData: N,
|
|
16871
16871
|
fields: E,
|
|
16872
16872
|
values: P,
|
|
16873
|
-
context:
|
|
16873
|
+
context: F
|
|
16874
16874
|
}) : (showDialog$8(`${J} action not supported`), {});
|
|
16875
16875
|
}
|
|
16876
16876
|
async function O({
|
|
16877
16877
|
actionData: N,
|
|
16878
16878
|
fields: E = {},
|
|
16879
16879
|
values: P = {},
|
|
16880
|
-
context:
|
|
16880
|
+
context: F = {}
|
|
16881
16881
|
}) {
|
|
16882
16882
|
var Q;
|
|
16883
16883
|
let W = N;
|
|
16884
16884
|
N.res_model || (W = (await ConnectionProvider.getHandler().readObjects({
|
|
16885
16885
|
model: "ir.actions.act_window",
|
|
16886
16886
|
ids: [parseInt(N.id)],
|
|
16887
|
-
context:
|
|
16887
|
+
context: F
|
|
16888
16888
|
}))[0]);
|
|
16889
16889
|
const z = {
|
|
16890
16890
|
...typeof (W == null ? void 0 : W.context) == "string" ? parseContext({
|
|
@@ -16895,7 +16895,7 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
|
|
|
16895
16895
|
...a
|
|
16896
16896
|
}
|
|
16897
16897
|
}) : W.context,
|
|
16898
|
-
...
|
|
16898
|
+
...F
|
|
16899
16899
|
};
|
|
16900
16900
|
let Y = [];
|
|
16901
16901
|
if (W.domain && (Y = await ConnectionProvider.getHandler().evalDomain({
|
|
@@ -16909,7 +16909,7 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
|
|
|
16909
16909
|
}),
|
|
16910
16910
|
context: z
|
|
16911
16911
|
})), W.target === "new") {
|
|
16912
|
-
const
|
|
16912
|
+
const oe = await ConnectionProvider.getHandler().getView({
|
|
16913
16913
|
model: W.res_model,
|
|
16914
16914
|
type: "form",
|
|
16915
16915
|
id: ((Q = W == null ? void 0 : W.view_id) == null ? void 0 : Q[0]) || void 0,
|
|
@@ -16918,11 +16918,11 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
|
|
|
16918
16918
|
return w({
|
|
16919
16919
|
domain: Y,
|
|
16920
16920
|
model: W.res_model,
|
|
16921
|
-
formView:
|
|
16921
|
+
formView: oe,
|
|
16922
16922
|
context: z
|
|
16923
16923
|
}), {};
|
|
16924
16924
|
} else {
|
|
16925
|
-
let
|
|
16925
|
+
let oe;
|
|
16926
16926
|
const ee = W.view_mode.split(","), X = [];
|
|
16927
16927
|
for (const ue of ee) {
|
|
16928
16928
|
const we = await ConnectionProvider.getHandler().getView({
|
|
@@ -16933,13 +16933,13 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
|
|
|
16933
16933
|
X.push([we.view_id, ue]);
|
|
16934
16934
|
}
|
|
16935
16935
|
if (W.view_id)
|
|
16936
|
-
|
|
16936
|
+
oe = {
|
|
16937
16937
|
id: W.view_id,
|
|
16938
16938
|
type: W.view_mode.split(",")[0]
|
|
16939
16939
|
};
|
|
16940
16940
|
else {
|
|
16941
16941
|
const ue = W.view_mode.split(",")[0], [we] = X.find(([Ce, ce]) => ce === ue);
|
|
16942
|
-
|
|
16942
|
+
oe = {
|
|
16943
16943
|
id: we,
|
|
16944
16944
|
type: ue
|
|
16945
16945
|
};
|
|
@@ -16951,7 +16951,7 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
|
|
|
16951
16951
|
model: W.res_model,
|
|
16952
16952
|
views: X,
|
|
16953
16953
|
title: W.name,
|
|
16954
|
-
initialView:
|
|
16954
|
+
initialView: oe,
|
|
16955
16955
|
action_id: W.id,
|
|
16956
16956
|
action_type: W.type
|
|
16957
16957
|
}), {
|
|
@@ -16963,19 +16963,19 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
|
|
|
16963
16963
|
domain: N,
|
|
16964
16964
|
model: E,
|
|
16965
16965
|
formView: P,
|
|
16966
|
-
context:
|
|
16966
|
+
context: F,
|
|
16967
16967
|
actionData: W
|
|
16968
16968
|
}) {
|
|
16969
16969
|
g ? _({
|
|
16970
16970
|
domain: N,
|
|
16971
16971
|
model: E,
|
|
16972
16972
|
formView: P,
|
|
16973
|
-
context:
|
|
16973
|
+
context: F,
|
|
16974
16974
|
actionData: W
|
|
16975
16975
|
}) : (C({
|
|
16976
16976
|
domain: N,
|
|
16977
16977
|
model: E,
|
|
16978
|
-
context:
|
|
16978
|
+
context: F,
|
|
16979
16979
|
formView: P,
|
|
16980
16980
|
actionData: W
|
|
16981
16981
|
}), m(!0));
|
|
@@ -16984,7 +16984,7 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
|
|
|
16984
16984
|
domain: N,
|
|
16985
16985
|
model: E,
|
|
16986
16986
|
formView: P,
|
|
16987
|
-
context:
|
|
16987
|
+
context: F,
|
|
16988
16988
|
actionData: W
|
|
16989
16989
|
}) {
|
|
16990
16990
|
C({
|
|
@@ -16996,12 +16996,12 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
|
|
|
16996
16996
|
}), m(!1), await new Promise((J) => setTimeout(J, 300)), C({
|
|
16997
16997
|
domain: N,
|
|
16998
16998
|
model: E,
|
|
16999
|
-
context:
|
|
16999
|
+
context: F,
|
|
17000
17000
|
formView: P,
|
|
17001
17001
|
actionData: W
|
|
17002
17002
|
}), m(!0);
|
|
17003
17003
|
}
|
|
17004
|
-
async function
|
|
17004
|
+
async function A() {
|
|
17005
17005
|
callRefreshValues(p.current), p.current = [], m(!1), C({
|
|
17006
17006
|
domain: void 0,
|
|
17007
17007
|
model: void 0,
|
|
@@ -17031,7 +17031,7 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
|
|
|
17031
17031
|
model: I.model,
|
|
17032
17032
|
formView: I.formView,
|
|
17033
17033
|
visible: g,
|
|
17034
|
-
onSubmitSucceed:
|
|
17034
|
+
onSubmitSucceed: A,
|
|
17035
17035
|
onCancel: () => {
|
|
17036
17036
|
callRefreshValues(p.current), p.current = [], m(!1), C({
|
|
17037
17037
|
domain: void 0,
|
|
@@ -17072,10 +17072,10 @@ function Form(e, r) {
|
|
|
17072
17072
|
visible: O = !0,
|
|
17073
17073
|
rootForm: w = !1,
|
|
17074
17074
|
defaultValues: _,
|
|
17075
|
-
forcedValues:
|
|
17075
|
+
forcedValues: A = {}
|
|
17076
17076
|
} = e, {
|
|
17077
17077
|
lang: N
|
|
17078
|
-
} = useContext(LocaleContext), [E, P] = useState(!1), [
|
|
17078
|
+
} = useContext(LocaleContext), [E, P] = useState(!1), [F, W] = useState(), [J, z] = useState(), [Y] = Form$3.useForm(), [Q, oe] = useState(), [ee, X] = useState(), ue = useContext(FormModalContext), [we, Ce] = useState(), [ce, xe] = useState(!1), te = useRef(), de = useRef({}), j = useRef({}), U = useRef(!1), re = useRef(!1), Re = we < WIDTH_BREAKPOINT, Fe = useContext(FormContext$1), {
|
|
17079
17079
|
activeId: L
|
|
17080
17080
|
} = Fe || {}, M = useContext(ActionViewContext), {
|
|
17081
17081
|
setFormIsSaving: Te = void 0,
|
|
@@ -17211,7 +17211,7 @@ function Form(e, r) {
|
|
|
17211
17211
|
fields: Qe,
|
|
17212
17212
|
arch: Mt
|
|
17213
17213
|
} = gt;
|
|
17214
|
-
X(Qe),
|
|
17214
|
+
X(Qe), oe(Mt), await pn({
|
|
17215
17215
|
fields: Qe,
|
|
17216
17216
|
arch: Mt
|
|
17217
17217
|
});
|
|
@@ -17324,7 +17324,7 @@ function Form(e, r) {
|
|
|
17324
17324
|
id: Dt(),
|
|
17325
17325
|
values: {
|
|
17326
17326
|
...Mt,
|
|
17327
|
-
...
|
|
17327
|
+
...A
|
|
17328
17328
|
},
|
|
17329
17329
|
fields: ee,
|
|
17330
17330
|
context: {
|
|
@@ -17337,7 +17337,7 @@ function Form(e, r) {
|
|
|
17337
17337
|
model: o,
|
|
17338
17338
|
values: {
|
|
17339
17339
|
...Mt,
|
|
17340
|
-
...
|
|
17340
|
+
...A
|
|
17341
17341
|
},
|
|
17342
17342
|
fields: ee,
|
|
17343
17343
|
context: {
|
|
@@ -17358,10 +17358,10 @@ function Form(e, r) {
|
|
|
17358
17358
|
const {
|
|
17359
17359
|
callOnSubmitSucceed: Mt = !0
|
|
17360
17360
|
} = gt || {};
|
|
17361
|
-
if (
|
|
17362
|
-
return
|
|
17361
|
+
if (re.current = !0, W(void 0), !Ft() && Dt() && Mt)
|
|
17362
|
+
return re.current = !1, Ne == null || Ne(!1), Vt == null || Vt(), !0;
|
|
17363
17363
|
if (await rn())
|
|
17364
|
-
return
|
|
17364
|
+
return re.current = !1, showDialog$5(N), !1;
|
|
17365
17365
|
P(!0), Te == null || Te(!0);
|
|
17366
17366
|
try {
|
|
17367
17367
|
g === "api" ? await Sn(gt) : await _n(gt), h && (te.current = void 0, In({
|
|
@@ -17370,9 +17370,9 @@ function Form(e, r) {
|
|
|
17370
17370
|
reset: !0
|
|
17371
17371
|
})), await pn(), Qe = !0;
|
|
17372
17372
|
} catch (Lt) {
|
|
17373
|
-
|
|
17373
|
+
re.current = !1, P(!1), Te == null || Te(!1), Ct == null || Ct(Lt), W(Lt != null && Lt.message ? Lt.message : Lt);
|
|
17374
17374
|
} finally {
|
|
17375
|
-
|
|
17375
|
+
re.current = !1, Te == null || Te(!1), P(!1);
|
|
17376
17376
|
}
|
|
17377
17377
|
return Qe;
|
|
17378
17378
|
}, yn = ({
|
|
@@ -17392,7 +17392,7 @@ function Form(e, r) {
|
|
|
17392
17392
|
}, Cn = async ({
|
|
17393
17393
|
elementHasLostFocus: gt = !1
|
|
17394
17394
|
}) => {
|
|
17395
|
-
if (
|
|
17395
|
+
if (re.current)
|
|
17396
17396
|
return;
|
|
17397
17397
|
const Qe = getTouchedValues({
|
|
17398
17398
|
source: j.current,
|
|
@@ -17595,7 +17595,7 @@ function Form(e, r) {
|
|
|
17595
17595
|
showDialog$8(Lt);
|
|
17596
17596
|
}
|
|
17597
17597
|
}
|
|
17598
|
-
const Dn = () => !J && !
|
|
17598
|
+
const Dn = () => !J && !F ? /* @__PURE__ */ jsx(Spin, {}) : !o && !I || !O ? null : /* @__PURE__ */ jsx(Fragment, {
|
|
17599
17599
|
children: /* @__PURE__ */ jsx(FormProvider$1, {
|
|
17600
17600
|
getValues: Ut,
|
|
17601
17601
|
getPlainValues: Kt,
|
|
@@ -17661,9 +17661,9 @@ function Form(e, r) {
|
|
|
17661
17661
|
}) => /* @__PURE__ */ jsxs("div", {
|
|
17662
17662
|
className: "pb-2",
|
|
17663
17663
|
ref: gt,
|
|
17664
|
-
children: [
|
|
17664
|
+
children: [F && /* @__PURE__ */ jsx(Alert, {
|
|
17665
17665
|
className: "mt-10 mb-20",
|
|
17666
|
-
message: JSON.stringify(
|
|
17666
|
+
message: JSON.stringify(F),
|
|
17667
17667
|
type: "error",
|
|
17668
17668
|
banner: !0
|
|
17669
17669
|
}), Dn(), c && Bn()]
|
|
@@ -17691,11 +17691,11 @@ const Form$1 = forwardRef(Form), FormModal = (e) => {
|
|
|
17691
17691
|
action_id: O,
|
|
17692
17692
|
res_id: w,
|
|
17693
17693
|
action_type: _,
|
|
17694
|
-
view_id:
|
|
17694
|
+
view_id: A
|
|
17695
17695
|
} = u, N = await ConnectionProvider.getHandler().isShortcutFavorite({
|
|
17696
17696
|
action_id: O,
|
|
17697
17697
|
action_type: _,
|
|
17698
|
-
view_id:
|
|
17698
|
+
view_id: A,
|
|
17699
17699
|
res_id: w || !1
|
|
17700
17700
|
});
|
|
17701
17701
|
m(N !== !1), N !== !1 && C(N);
|
|
@@ -17710,12 +17710,12 @@ const Form$1 = forwardRef(Form), FormModal = (e) => {
|
|
|
17710
17710
|
action_id: O,
|
|
17711
17711
|
res_id: w,
|
|
17712
17712
|
action_type: _,
|
|
17713
|
-
view_id:
|
|
17713
|
+
view_id: A
|
|
17714
17714
|
} = u;
|
|
17715
17715
|
await ConnectionProvider.getHandler().addFavourite({
|
|
17716
17716
|
action_id: O,
|
|
17717
17717
|
action_type: _,
|
|
17718
|
-
view_id:
|
|
17718
|
+
view_id: A,
|
|
17719
17719
|
res_id: w || !1
|
|
17720
17720
|
});
|
|
17721
17721
|
}
|
|
@@ -18145,8 +18145,8 @@ function SearchFilter(e) {
|
|
|
18145
18145
|
if (!b)
|
|
18146
18146
|
return;
|
|
18147
18147
|
const E = v ? b : I, P = E == null ? void 0 : E.rows;
|
|
18148
|
-
return P == null ? void 0 : P.map((
|
|
18149
|
-
children:
|
|
18148
|
+
return P == null ? void 0 : P.map((F, W) => /* @__PURE__ */ jsx(Row, {
|
|
18149
|
+
children: F.map((J, z) => /* @__PURE__ */ jsx(Col, {
|
|
18150
18150
|
xs: 24,
|
|
18151
18151
|
className: "p-2",
|
|
18152
18152
|
xl: 6,
|
|
@@ -18161,16 +18161,16 @@ function SearchFilter(e) {
|
|
|
18161
18161
|
const E = new SearchFilter$1(o, r);
|
|
18162
18162
|
E.parse(), C(E._simpleSearchContainer), y(E._advancedSearchContainer);
|
|
18163
18163
|
}, [r, o]);
|
|
18164
|
-
const
|
|
18164
|
+
const A = _(), N = (E) => {
|
|
18165
18165
|
const {
|
|
18166
18166
|
limit: P,
|
|
18167
|
-
offset:
|
|
18167
|
+
offset: F
|
|
18168
18168
|
} = E;
|
|
18169
18169
|
delete E.offset, delete E.limit;
|
|
18170
18170
|
const W = getParamsForFields(E, r);
|
|
18171
18171
|
s({
|
|
18172
18172
|
params: W,
|
|
18173
|
-
offset:
|
|
18173
|
+
offset: F,
|
|
18174
18174
|
limit: P,
|
|
18175
18175
|
searchValues: E
|
|
18176
18176
|
});
|
|
@@ -18197,7 +18197,7 @@ function SearchFilter(e) {
|
|
|
18197
18197
|
offset: c,
|
|
18198
18198
|
limit: u
|
|
18199
18199
|
},
|
|
18200
|
-
children: [
|
|
18200
|
+
children: [A, v && m && /* @__PURE__ */ jsx(SearchParams, {
|
|
18201
18201
|
onLimitChange: d
|
|
18202
18202
|
}), /* @__PURE__ */ jsx(SearchBottomBar, {
|
|
18203
18203
|
advancedFilter: v,
|
|
@@ -18268,16 +18268,16 @@ const Many2oneSuffixModal = (e) => {
|
|
|
18268
18268
|
async function O() {
|
|
18269
18269
|
f(!0);
|
|
18270
18270
|
try {
|
|
18271
|
-
const
|
|
18271
|
+
const F = await ConnectionProvider.getHandler().getView({
|
|
18272
18272
|
model: o,
|
|
18273
18273
|
type: "form",
|
|
18274
18274
|
context: a
|
|
18275
18275
|
});
|
|
18276
|
-
h(
|
|
18276
|
+
h(F);
|
|
18277
18277
|
const {
|
|
18278
18278
|
fields: W,
|
|
18279
18279
|
arch: J
|
|
18280
|
-
} =
|
|
18280
|
+
} = F, z = (await ConnectionProvider.getHandler().readObjects({
|
|
18281
18281
|
model: o,
|
|
18282
18282
|
ids: [r],
|
|
18283
18283
|
fields: W,
|
|
@@ -18287,8 +18287,8 @@ const Many2oneSuffixModal = (e) => {
|
|
|
18287
18287
|
...processValues(z, W),
|
|
18288
18288
|
active_id: r
|
|
18289
18289
|
}), f(!1);
|
|
18290
|
-
} catch (
|
|
18291
|
-
f(!1), showDialog$8(
|
|
18290
|
+
} catch (F) {
|
|
18291
|
+
f(!1), showDialog$8(F);
|
|
18292
18292
|
return;
|
|
18293
18293
|
}
|
|
18294
18294
|
}
|
|
@@ -18305,7 +18305,7 @@ const Many2oneSuffixModal = (e) => {
|
|
|
18305
18305
|
});
|
|
18306
18306
|
if (!p || !p.toolbar)
|
|
18307
18307
|
return /* @__PURE__ */ jsx(Menu, {});
|
|
18308
|
-
const
|
|
18308
|
+
const F = (W = p == null ? void 0 : p.toolbar) == null ? void 0 : W.relate.map((J) => /* @__PURE__ */ jsx(Menu.Item, {
|
|
18309
18309
|
children: J.name
|
|
18310
18310
|
}, J.id));
|
|
18311
18311
|
return /* @__PURE__ */ jsx(Menu, {
|
|
@@ -18324,17 +18324,17 @@ const Many2oneSuffixModal = (e) => {
|
|
|
18324
18324
|
children: [" ", I("related")]
|
|
18325
18325
|
})]
|
|
18326
18326
|
}),
|
|
18327
|
-
children:
|
|
18327
|
+
children: F
|
|
18328
18328
|
})]
|
|
18329
18329
|
});
|
|
18330
18330
|
}
|
|
18331
|
-
function _(
|
|
18332
|
-
if (
|
|
18331
|
+
function _(F) {
|
|
18332
|
+
if (F.key === "action")
|
|
18333
18333
|
l(!0);
|
|
18334
|
-
else if (
|
|
18334
|
+
else if (F.key === "print")
|
|
18335
18335
|
u(!0);
|
|
18336
18336
|
else {
|
|
18337
|
-
const W = p.toolbar.relate.find((J) => J.id === parseInt(
|
|
18337
|
+
const W = p.toolbar.relate.find((J) => J.id === parseInt(F.key));
|
|
18338
18338
|
if (!W)
|
|
18339
18339
|
return;
|
|
18340
18340
|
b({
|
|
@@ -18346,9 +18346,9 @@ const Many2oneSuffixModal = (e) => {
|
|
|
18346
18346
|
});
|
|
18347
18347
|
}
|
|
18348
18348
|
}
|
|
18349
|
-
function F
|
|
18349
|
+
function A(F) {
|
|
18350
18350
|
l(!1), v == null || v({
|
|
18351
|
-
actionData:
|
|
18351
|
+
actionData: F,
|
|
18352
18352
|
values: g,
|
|
18353
18353
|
fields: p.fields,
|
|
18354
18354
|
context: {
|
|
@@ -18357,12 +18357,12 @@ const Many2oneSuffixModal = (e) => {
|
|
|
18357
18357
|
}
|
|
18358
18358
|
});
|
|
18359
18359
|
}
|
|
18360
|
-
function N(
|
|
18360
|
+
function N(F) {
|
|
18361
18361
|
u(!1), v == null || v({
|
|
18362
18362
|
actionData: {
|
|
18363
|
-
...
|
|
18363
|
+
...F,
|
|
18364
18364
|
datas: {
|
|
18365
|
-
...
|
|
18365
|
+
...F.datas || {},
|
|
18366
18366
|
ids: [r]
|
|
18367
18367
|
}
|
|
18368
18368
|
},
|
|
@@ -18378,14 +18378,14 @@ const Many2oneSuffixModal = (e) => {
|
|
|
18378
18378
|
style: {
|
|
18379
18379
|
color: "rgba(0,0,0,.45)"
|
|
18380
18380
|
},
|
|
18381
|
-
onClick: (
|
|
18382
|
-
|
|
18381
|
+
onClick: (F) => {
|
|
18382
|
+
F.preventDefault(), O();
|
|
18383
18383
|
}
|
|
18384
18384
|
})
|
|
18385
18385
|
}), /* @__PURE__ */ jsx(Many2oneSuffixModal, {
|
|
18386
18386
|
visible: s,
|
|
18387
18387
|
items: (E = p == null ? void 0 : p.toolbar) == null ? void 0 : E.action,
|
|
18388
|
-
onItemClicked:
|
|
18388
|
+
onItemClicked: A,
|
|
18389
18389
|
onCancel: () => l(!1)
|
|
18390
18390
|
}), /* @__PURE__ */ jsx(Many2oneSuffixModal, {
|
|
18391
18391
|
visible: c,
|
|
@@ -18547,12 +18547,12 @@ function Tree(e) {
|
|
|
18547
18547
|
sorter: I,
|
|
18548
18548
|
onFetchChildrenForRecord: C,
|
|
18549
18549
|
childField: b
|
|
18550
|
-
} = e, [y, v] = useState([]), [O, w] = useState([]), _ = useRef(!1),
|
|
18550
|
+
} = e, [y, v] = useState([]), [O, w] = useState([]), _ = useRef(!1), A = useRef(null), {
|
|
18551
18551
|
t: N
|
|
18552
18552
|
} = useContext(LocaleContext), E = useRef(o);
|
|
18553
18553
|
useEffect(() => {
|
|
18554
|
-
|
|
18555
|
-
const
|
|
18554
|
+
A.current = getTree(s);
|
|
18555
|
+
const oe = getTableColumns(A.current, {
|
|
18556
18556
|
boolean: booleanComponentFn,
|
|
18557
18557
|
many2one: many2OneComponentFn,
|
|
18558
18558
|
text: textComponentFn,
|
|
@@ -18564,13 +18564,13 @@ function Tree(e) {
|
|
|
18564
18564
|
integer: numberComponent,
|
|
18565
18565
|
float: numberComponent
|
|
18566
18566
|
});
|
|
18567
|
-
w(
|
|
18567
|
+
w(oe);
|
|
18568
18568
|
}, [s]), useEffect(() => {
|
|
18569
18569
|
_.current = !1;
|
|
18570
|
-
const
|
|
18571
|
-
v(
|
|
18570
|
+
const oe = getTableItems(A.current, l);
|
|
18571
|
+
v(oe), E.current = o;
|
|
18572
18572
|
}, [l]);
|
|
18573
|
-
const P = (r - 1) * E.current + 1,
|
|
18573
|
+
const P = (r - 1) * E.current + 1, F = P - 1 + y.length, W = a === void 0 ? null : a === 0 ? N("no_results") : N("summary").replace("{from}", P == null ? void 0 : P.toString()).replace("{to}", F == null ? void 0 : F.toString()).replace("{total}", a == null ? void 0 : a.toString()), J = () => !f || s.isExpandable || u ? null : a === void 0 ? /* @__PURE__ */ jsx(Spin, {}) : /* @__PURE__ */ jsxs(Row, {
|
|
18574
18574
|
align: "bottom",
|
|
18575
18575
|
className: "pb-4",
|
|
18576
18576
|
children: [/* @__PURE__ */ jsx(Col, {
|
|
@@ -18590,7 +18590,7 @@ function Tree(e) {
|
|
|
18590
18590
|
});
|
|
18591
18591
|
function z() {
|
|
18592
18592
|
var we;
|
|
18593
|
-
const ee =
|
|
18593
|
+
const ee = A.current.columns.filter((Ce) => Ce.sum !== void 0).map((Ce) => ({
|
|
18594
18594
|
label: Ce.sum,
|
|
18595
18595
|
field: Ce.id
|
|
18596
18596
|
}));
|
|
@@ -18606,12 +18606,12 @@ function Tree(e) {
|
|
|
18606
18606
|
});
|
|
18607
18607
|
}
|
|
18608
18608
|
let Y, Q = h;
|
|
18609
|
-
if (
|
|
18609
|
+
if (A.current !== null) {
|
|
18610
18610
|
Y = calculateColumnsWidth(O, y, 600);
|
|
18611
|
-
const ee =
|
|
18611
|
+
const ee = A.current;
|
|
18612
18612
|
h && ee.columns.some((X) => X.sum !== void 0) && (Q = h - 30);
|
|
18613
18613
|
}
|
|
18614
|
-
return
|
|
18614
|
+
return A.current === null ? /* @__PURE__ */ jsx(Spin, {
|
|
18615
18615
|
style: {
|
|
18616
18616
|
padding: "2rem"
|
|
18617
18617
|
}
|
|
@@ -18622,10 +18622,10 @@ function Tree(e) {
|
|
|
18622
18622
|
dataSource: y,
|
|
18623
18623
|
loading: u,
|
|
18624
18624
|
loadingComponent: /* @__PURE__ */ jsx(Spin, {}),
|
|
18625
|
-
onRowStyle: (
|
|
18626
|
-
if (g[
|
|
18625
|
+
onRowStyle: (oe) => {
|
|
18626
|
+
if (g[oe.id])
|
|
18627
18627
|
return {
|
|
18628
|
-
color: g[
|
|
18628
|
+
color: g[oe.id]
|
|
18629
18629
|
};
|
|
18630
18630
|
},
|
|
18631
18631
|
onRowDoubleClick: d,
|
|
@@ -18655,11 +18655,11 @@ function SearchTree(e, r) {
|
|
|
18655
18655
|
rootTree: p = !1,
|
|
18656
18656
|
parentContext: h = {},
|
|
18657
18657
|
onChangeSelectedRowKeys: g
|
|
18658
|
-
} = e, [m, I] = useState(!1), [C, b] = useState(!1), y = useRef(!1), [v, O] = useState(), [w, _] = useState(), [
|
|
18658
|
+
} = e, [m, I] = useState(!1), [C, b] = useState(!1), y = useRef(!1), [v, O] = useState(), [w, _] = useState(), [A, N] = useState(), [E, P] = useState(), [F, W] = useState(200), J = useRef(), {
|
|
18659
18659
|
height: z
|
|
18660
18660
|
} = useWindowDimensions(), Y = useContext(ContentRootContext), {
|
|
18661
18661
|
processAction: Q
|
|
18662
|
-
} = Y || {},
|
|
18662
|
+
} = Y || {}, oe = useContext(ActionViewContext), {
|
|
18663
18663
|
setResults: ee = void 0,
|
|
18664
18664
|
setCurrentItemIndex: X = void 0,
|
|
18665
18665
|
currentId: ue = void 0,
|
|
@@ -18671,7 +18671,7 @@ function SearchTree(e, r) {
|
|
|
18671
18671
|
searchVisible: de = !0,
|
|
18672
18672
|
setSearchVisible: j = void 0,
|
|
18673
18673
|
sorter: U = void 0,
|
|
18674
|
-
setSorter:
|
|
18674
|
+
setSorter: re = void 0,
|
|
18675
18675
|
setTotalItems: Re = void 0,
|
|
18676
18676
|
setSearchTreeNameSearch: Fe = void 0,
|
|
18677
18677
|
setTreeIsLoading: L = void 0,
|
|
@@ -18679,7 +18679,7 @@ function SearchTree(e, r) {
|
|
|
18679
18679
|
setSearchValues: Te = void 0,
|
|
18680
18680
|
limit: Ne = DEFAULT_SEARCH_LIMIT$1,
|
|
18681
18681
|
setLimit: tt = void 0
|
|
18682
|
-
} = (p ?
|
|
18682
|
+
} = (p ? oe : {}) || {}, {
|
|
18683
18683
|
submit: je,
|
|
18684
18684
|
clear: Ge,
|
|
18685
18685
|
fetchResults: yt,
|
|
@@ -18706,10 +18706,10 @@ function SearchTree(e, r) {
|
|
|
18706
18706
|
nameSearch: c,
|
|
18707
18707
|
searchNameGetDoneRef: y,
|
|
18708
18708
|
context: h,
|
|
18709
|
-
formView:
|
|
18709
|
+
formView: A,
|
|
18710
18710
|
treeView: w,
|
|
18711
18711
|
sorter: U,
|
|
18712
|
-
setSorter:
|
|
18712
|
+
setSorter: re,
|
|
18713
18713
|
setCurrentItemIndex: X,
|
|
18714
18714
|
setResultsActionView: ee,
|
|
18715
18715
|
resultsActionView: we,
|
|
@@ -18791,7 +18791,7 @@ function SearchTree(e, r) {
|
|
|
18791
18791
|
l({
|
|
18792
18792
|
id: un,
|
|
18793
18793
|
model: v,
|
|
18794
|
-
formView:
|
|
18794
|
+
formView: A,
|
|
18795
18795
|
treeView: w
|
|
18796
18796
|
});
|
|
18797
18797
|
};
|
|
@@ -18800,15 +18800,15 @@ function SearchTree(e, r) {
|
|
|
18800
18800
|
ce == null || ce(un), g == null || g(tn);
|
|
18801
18801
|
}
|
|
18802
18802
|
function rn() {
|
|
18803
|
-
return w != null && w.isExpandable ? z - 160 : z - (
|
|
18803
|
+
return w != null && w.isExpandable ? z - 160 : z - (F + 210);
|
|
18804
18804
|
}
|
|
18805
|
-
const hn = () => !w || !
|
|
18805
|
+
const hn = () => !w || !A ? null : /* @__PURE__ */ jsxs(Fragment, {
|
|
18806
18806
|
children: [/* @__PURE__ */ jsx(SearchFilter, {
|
|
18807
18807
|
fields: {
|
|
18808
18808
|
...w.fields,
|
|
18809
|
-
...
|
|
18809
|
+
...A.fields
|
|
18810
18810
|
},
|
|
18811
|
-
searchFields: mergeSearchFields([
|
|
18811
|
+
searchFields: mergeSearchFields([A.search_fields, w.search_fields]),
|
|
18812
18812
|
onClear: Ge,
|
|
18813
18813
|
limit: Ne,
|
|
18814
18814
|
offset: Ct,
|
|
@@ -18983,23 +18983,23 @@ const SearchTree$1 = forwardRef(SearchTree), SearchModal = (e) => {
|
|
|
18983
18983
|
context: u,
|
|
18984
18984
|
id: d,
|
|
18985
18985
|
domain: f
|
|
18986
|
-
} = a, p = s && !c ? Config.requiredClass : void 0, [h, g] = useState(!1), [m, I] = useState(!1), [C, b] = useState(!1), [y, v] = useState(), O = useRef(!1), [w, _] = useState(""),
|
|
18986
|
+
} = a, p = s && !c ? Config.requiredClass : void 0, [h, g] = useState(!1), [m, I] = useState(!1), [C, b] = useState(!1), [y, v] = useState(), O = useRef(!1), [w, _] = useState(""), A = useRef(), N = useContext(FormContext$1), {
|
|
18987
18987
|
domain: E,
|
|
18988
18988
|
getValues: P,
|
|
18989
|
-
getFields:
|
|
18989
|
+
getFields: F,
|
|
18990
18990
|
getContext: W,
|
|
18991
18991
|
setOriginalValue: J,
|
|
18992
18992
|
elementHasLostFocus: z
|
|
18993
|
-
} = N || {}, Y = useRef([]), [Q,
|
|
18993
|
+
} = N || {}, Y = useRef([]), [Q, oe] = useState([]), ee = r && r[0] || void 0, X = r && r[1] || "";
|
|
18994
18994
|
useEffect(() => {
|
|
18995
18995
|
!Array.isArray(r) && r && xe(r);
|
|
18996
18996
|
}, [r]), useEffect(() => {
|
|
18997
|
-
ee && X.length === 0 ? xe(ee) : ee && X.length > 0 ? _(X) : !ee && !X && _(
|
|
18997
|
+
ee && X.length === 0 ? xe(ee) : ee && X.length > 0 ? _(X) : !ee && !X && _(A.current || "");
|
|
18998
18998
|
}, [r]);
|
|
18999
18999
|
const ue = (U) => {
|
|
19000
19000
|
o == null || o(U), z == null || z();
|
|
19001
19001
|
}, we = (U) => {
|
|
19002
|
-
|
|
19002
|
+
A.current = U.target.value, ue([void 0, ""]);
|
|
19003
19003
|
}, Ce = async () => {
|
|
19004
19004
|
if (!C && w !== X) {
|
|
19005
19005
|
if (await new Promise((U) => setTimeout(U, 100)), O.current) {
|
|
@@ -19009,17 +19009,17 @@ const SearchTree$1 = forwardRef(SearchTree), SearchModal = (e) => {
|
|
|
19009
19009
|
b(!0);
|
|
19010
19010
|
try {
|
|
19011
19011
|
if (Y.current && Y.current.length > 0)
|
|
19012
|
-
ce(
|
|
19012
|
+
ce(A.current);
|
|
19013
19013
|
else {
|
|
19014
19014
|
const U = await ConnectionProvider.getHandler().nameSearch({
|
|
19015
19015
|
model: l,
|
|
19016
|
-
payload:
|
|
19016
|
+
payload: A.current,
|
|
19017
19017
|
context: {
|
|
19018
19018
|
...W == null ? void 0 : W(),
|
|
19019
19019
|
...u
|
|
19020
19020
|
}
|
|
19021
19021
|
});
|
|
19022
|
-
U.length === 1 ? (
|
|
19022
|
+
U.length === 1 ? (A.current = void 0, ue(U[0])) : ce(A.current);
|
|
19023
19023
|
}
|
|
19024
19024
|
} catch (U) {
|
|
19025
19025
|
showDialog$3(U);
|
|
@@ -19029,7 +19029,7 @@ const SearchTree$1 = forwardRef(SearchTree), SearchModal = (e) => {
|
|
|
19029
19029
|
}
|
|
19030
19030
|
}, ce = async (U) => {
|
|
19031
19031
|
if (await te(), Y.current && Y.current.length > 0) {
|
|
19032
|
-
const
|
|
19032
|
+
const re = await ConnectionProvider.getHandler().searchAllIds({
|
|
19033
19033
|
params: Y.current,
|
|
19034
19034
|
model: l,
|
|
19035
19035
|
context: {
|
|
@@ -19038,11 +19038,11 @@ const SearchTree$1 = forwardRef(SearchTree), SearchModal = (e) => {
|
|
|
19038
19038
|
},
|
|
19039
19039
|
totalItems: 2
|
|
19040
19040
|
});
|
|
19041
|
-
|
|
19041
|
+
re.length === 1 ? xe(re[0], !0) : (v(U), g(!0));
|
|
19042
19042
|
return;
|
|
19043
19043
|
}
|
|
19044
19044
|
v(U), g(!0);
|
|
19045
|
-
}, xe = async (U,
|
|
19045
|
+
}, xe = async (U, re) => {
|
|
19046
19046
|
b(!0);
|
|
19047
19047
|
try {
|
|
19048
19048
|
const Re = await ConnectionProvider.getHandler().execute({
|
|
@@ -19054,7 +19054,7 @@ const SearchTree$1 = forwardRef(SearchTree), SearchModal = (e) => {
|
|
|
19054
19054
|
...u
|
|
19055
19055
|
}
|
|
19056
19056
|
});
|
|
19057
|
-
ue([U, Re[0][1]]),
|
|
19057
|
+
ue([U, Re[0][1]]), re && J(a.id, [U, Re[0][1]]);
|
|
19058
19058
|
} catch (Re) {
|
|
19059
19059
|
showDialog$3(Re);
|
|
19060
19060
|
} finally {
|
|
@@ -19065,14 +19065,14 @@ const SearchTree$1 = forwardRef(SearchTree), SearchModal = (e) => {
|
|
|
19065
19065
|
f && (Y.current = await ConnectionProvider.getHandler().evalDomain({
|
|
19066
19066
|
domain: f,
|
|
19067
19067
|
values: transformPlainMany2Ones({
|
|
19068
|
-
fields:
|
|
19068
|
+
fields: F(),
|
|
19069
19069
|
values: P()
|
|
19070
19070
|
}),
|
|
19071
19071
|
context: W()
|
|
19072
19072
|
})), E && E.length > 0 && (Y.current = Y.current.concat(transformDomainForChildWidget({
|
|
19073
19073
|
domain: E,
|
|
19074
19074
|
widgetFieldName: d
|
|
19075
|
-
}))),
|
|
19075
|
+
}))), oe(Y.current);
|
|
19076
19076
|
}
|
|
19077
19077
|
async function de(U) {
|
|
19078
19078
|
U.code === "Enter" ? (U.preventDefault(), U.stopPropagation(), await Ce()) : U.code === "Backspace" && ee !== void 0 && (U.preventDefault(), U.stopPropagation(), ue([void 0, ""]));
|
|
@@ -19129,7 +19129,7 @@ const SearchTree$1 = forwardRef(SearchTree), SearchModal = (e) => {
|
|
|
19129
19129
|
visible: h,
|
|
19130
19130
|
nameSearch: ee ? void 0 : y,
|
|
19131
19131
|
onSelectValues: (U) => {
|
|
19132
|
-
g(!1), xe(U[0]), O.current = !1,
|
|
19132
|
+
g(!1), xe(U[0]), O.current = !1, A.current = void 0;
|
|
19133
19133
|
},
|
|
19134
19134
|
onCloseModal: () => {
|
|
19135
19135
|
g(!1), O.current = !1;
|
|
@@ -19587,8 +19587,8 @@ function requireTransButton() {
|
|
|
19587
19587
|
var _ = w.keyCode;
|
|
19588
19588
|
_ === l.default.ENTER && w.preventDefault();
|
|
19589
19589
|
}, m = function(w) {
|
|
19590
|
-
var _ = w.keyCode,
|
|
19591
|
-
_ === l.default.ENTER &&
|
|
19590
|
+
var _ = w.keyCode, A = p.onClick;
|
|
19591
|
+
_ === l.default.ENTER && A && A();
|
|
19592
19592
|
}, I = p.style, C = p.noStyle, b = p.disabled, y = c(p, ["style", "noStyle", "disabled"]), v = {};
|
|
19593
19593
|
return C || (v = (0, a.default)({}, u)), b && (v.pointerEvents = "none"), v = (0, a.default)((0, a.default)({}, v), I), /* @__PURE__ */ s.createElement("div", (0, a.default)({
|
|
19594
19594
|
role: "button",
|
|
@@ -20285,20 +20285,20 @@ function doAlign(e, r, o, a) {
|
|
|
20285
20285
|
var w = flip(s, /[tb]/gi, {
|
|
20286
20286
|
t: "b",
|
|
20287
20287
|
b: "t"
|
|
20288
|
-
}), _ = flipOffset(l, 1),
|
|
20289
|
-
isCompleteFailY(N, m, g) || (p = 1, s = w, l = _, c =
|
|
20288
|
+
}), _ = flipOffset(l, 1), A = flipOffset(c, 1), N = getElFuturePos(m, r, w, _, A);
|
|
20289
|
+
isCompleteFailY(N, m, g) || (p = 1, s = w, l = _, c = A);
|
|
20290
20290
|
}
|
|
20291
20291
|
p && (I = getElFuturePos(m, r, s, l, c), utils.mix(C, I));
|
|
20292
20292
|
var E = isFailX(I, m, g), P = isFailY(I, m, g);
|
|
20293
20293
|
if (E || P) {
|
|
20294
|
-
var
|
|
20295
|
-
E && (
|
|
20294
|
+
var F = s;
|
|
20295
|
+
E && (F = flip(s, /[lr]/gi, {
|
|
20296
20296
|
l: "r",
|
|
20297
20297
|
r: "l"
|
|
20298
|
-
})), P && (
|
|
20298
|
+
})), P && (F = flip(s, /[tb]/gi, {
|
|
20299
20299
|
t: "b",
|
|
20300
20300
|
b: "t"
|
|
20301
|
-
})), s =
|
|
20301
|
+
})), s = F, l = o.offset || [0, 0], c = o.targetOffset || [0, 0];
|
|
20302
20302
|
}
|
|
20303
20303
|
f.adjustX = u.adjustX && E, f.adjustY = u.adjustY && P, (f.adjustX || f.adjustY) && (C = adjustForViewport(I, m, g, f));
|
|
20304
20304
|
}
|
|
@@ -20396,12 +20396,12 @@ var Align = function e(r, o) {
|
|
|
20396
20396
|
var a = r.children, s = r.disabled, l = r.target, c = r.align, u = r.onAlign, d = r.monitorWindowResize, f = r.monitorBufferTime, p = f === void 0 ? 0 : f, h = React__default.useRef({}), g = React__default.useRef(), m = React__default.Children.only(a), I = React__default.useRef({});
|
|
20397
20397
|
I.current.disabled = s, I.current.target = l, I.current.onAlign = u;
|
|
20398
20398
|
var C = useBuffer(function() {
|
|
20399
|
-
var
|
|
20399
|
+
var A = I.current, N = A.disabled, E = A.target, P = A.onAlign;
|
|
20400
20400
|
if (!N && E) {
|
|
20401
|
-
var
|
|
20401
|
+
var F = g.current, W, J = getElement(E), z = getPoint(E);
|
|
20402
20402
|
h.current.element = J, h.current.point = z;
|
|
20403
20403
|
var Y = document, Q = Y.activeElement;
|
|
20404
|
-
return J && isVisible(J) ? W = alignElement(
|
|
20404
|
+
return J && isVisible(J) ? W = alignElement(F, J, c) : z && (W = alignPoint(F, z, c)), restoreFocus(Q, F), P && W && P(F, W), !0;
|
|
20405
20405
|
}
|
|
20406
20406
|
return !1;
|
|
20407
20407
|
}, p), b = _slicedToArray(C, 2), y = b[0], v = b[1], O = React__default.useRef({
|
|
@@ -20412,8 +20412,8 @@ var Align = function e(r, o) {
|
|
|
20412
20412
|
}
|
|
20413
20413
|
});
|
|
20414
20414
|
React__default.useEffect(function() {
|
|
20415
|
-
var
|
|
20416
|
-
g.current !== w.current.element && (w.current.cancel(), w.current.element = g.current, w.current.cancel = monitorResize(g.current, y)), (h.current.element !==
|
|
20415
|
+
var A = getElement(l), N = getPoint(l);
|
|
20416
|
+
g.current !== w.current.element && (w.current.cancel(), w.current.element = g.current, w.current.cancel = monitorResize(g.current, y)), (h.current.element !== A || !isSamePoint(h.current.point, N)) && (y(), O.current.element !== A && (O.current.cancel(), O.current.element = A, O.current.cancel = monitorResize(A, y)));
|
|
20417
20417
|
}), React__default.useEffect(function() {
|
|
20418
20418
|
s ? v() : y();
|
|
20419
20419
|
}, [s]);
|
|
@@ -20505,11 +20505,11 @@ const useVisibleStatus = function(e, r) {
|
|
|
20505
20505
|
return [c, l];
|
|
20506
20506
|
};
|
|
20507
20507
|
var PopupInner = /* @__PURE__ */ React.forwardRef(function(e, r) {
|
|
20508
|
-
var o = e.visible, a = e.prefixCls, s = e.className, l = e.style, c = e.children, u = e.zIndex, d = e.stretch, f = e.destroyPopupOnHide, p = e.align, h = e.point, g = e.getRootDomNode, m = e.getClassNameFromAlign, I = e.onAlign, C = e.onMouseEnter, b = e.onMouseLeave, y = e.onMouseDown, v = e.onTouchStart, O = useRef(), w = useRef(), _ = useState(),
|
|
20508
|
+
var o = e.visible, a = e.prefixCls, s = e.className, l = e.style, c = e.children, u = e.zIndex, d = e.stretch, f = e.destroyPopupOnHide, p = e.align, h = e.point, g = e.getRootDomNode, m = e.getClassNameFromAlign, I = e.onAlign, C = e.onMouseEnter, b = e.onMouseLeave, y = e.onMouseDown, v = e.onTouchStart, O = useRef(), w = useRef(), _ = useState(), A = _slicedToArray(_, 2), N = A[0], E = A[1], P = useStretchStyle(d), F = _slicedToArray(P, 2), W = F[0], J = F[1];
|
|
20509
20509
|
function z() {
|
|
20510
20510
|
d && J(g());
|
|
20511
20511
|
}
|
|
20512
|
-
var Y = useVisibleStatus(o, z), Q = _slicedToArray(Y, 2),
|
|
20512
|
+
var Y = useVisibleStatus(o, z), Q = _slicedToArray(Y, 2), oe = Q[0], ee = Q[1], X = useRef();
|
|
20513
20513
|
function ue() {
|
|
20514
20514
|
return h || g;
|
|
20515
20515
|
}
|
|
@@ -20517,22 +20517,22 @@ var PopupInner = /* @__PURE__ */ React.forwardRef(function(e, r) {
|
|
|
20517
20517
|
var U;
|
|
20518
20518
|
(U = O.current) === null || U === void 0 || U.forceAlign();
|
|
20519
20519
|
}
|
|
20520
|
-
function Ce(U,
|
|
20521
|
-
if (
|
|
20522
|
-
var Re = m(
|
|
20520
|
+
function Ce(U, re) {
|
|
20521
|
+
if (oe === "align") {
|
|
20522
|
+
var Re = m(re);
|
|
20523
20523
|
E(Re), N !== Re ? Promise.resolve().then(function() {
|
|
20524
20524
|
we();
|
|
20525
20525
|
}) : ee(function() {
|
|
20526
20526
|
var Fe;
|
|
20527
20527
|
(Fe = X.current) === null || Fe === void 0 || Fe.call(X);
|
|
20528
|
-
}), I == null || I(U,
|
|
20528
|
+
}), I == null || I(U, re);
|
|
20529
20529
|
}
|
|
20530
20530
|
}
|
|
20531
20531
|
var ce = _objectSpread2$1({}, getMotion(e));
|
|
20532
20532
|
["onAppearEnd", "onEnterEnd", "onLeaveEnd"].forEach(function(U) {
|
|
20533
|
-
var
|
|
20533
|
+
var re = ce[U];
|
|
20534
20534
|
ce[U] = function(Re, Fe) {
|
|
20535
|
-
return ee(),
|
|
20535
|
+
return ee(), re == null ? void 0 : re(Re, Fe);
|
|
20536
20536
|
};
|
|
20537
20537
|
});
|
|
20538
20538
|
function xe() {
|
|
@@ -20541,8 +20541,8 @@ var PopupInner = /* @__PURE__ */ React.forwardRef(function(e, r) {
|
|
|
20541
20541
|
});
|
|
20542
20542
|
}
|
|
20543
20543
|
React.useEffect(function() {
|
|
20544
|
-
!ce.motionName &&
|
|
20545
|
-
}, [ce.motionName,
|
|
20544
|
+
!ce.motionName && oe === "motion" && ee();
|
|
20545
|
+
}, [ce.motionName, oe]), React.useImperativeHandle(r, function() {
|
|
20546
20546
|
return {
|
|
20547
20547
|
forceAlign: we,
|
|
20548
20548
|
getElement: function() {
|
|
@@ -20553,10 +20553,10 @@ var PopupInner = /* @__PURE__ */ React.forwardRef(function(e, r) {
|
|
|
20553
20553
|
var te = _objectSpread2$1(_objectSpread2$1(_objectSpread2$1({}, W), {}, {
|
|
20554
20554
|
zIndex: u
|
|
20555
20555
|
}, l), {}, {
|
|
20556
|
-
opacity:
|
|
20557
|
-
pointerEvents:
|
|
20556
|
+
opacity: oe === "motion" || oe === "stable" || !o ? void 0 : 0,
|
|
20557
|
+
pointerEvents: oe === "stable" ? void 0 : "none"
|
|
20558
20558
|
}), de = !0;
|
|
20559
|
-
(p == null ? void 0 : p.points) && (
|
|
20559
|
+
(p == null ? void 0 : p.points) && (oe === "align" || oe === "stable") && (de = !1);
|
|
20560
20560
|
var j = c;
|
|
20561
20561
|
return React.Children.count(c) > 1 && (j = /* @__PURE__ */ jsx("div", {
|
|
20562
20562
|
className: "".concat(a, "-content"),
|
|
@@ -20569,7 +20569,7 @@ var PopupInner = /* @__PURE__ */ React.forwardRef(function(e, r) {
|
|
|
20569
20569
|
onAppearPrepare: xe,
|
|
20570
20570
|
onEnterPrepare: xe,
|
|
20571
20571
|
removeOnLeave: f,
|
|
20572
|
-
children: function(U,
|
|
20572
|
+
children: function(U, re) {
|
|
20573
20573
|
var Re = U.className, Fe = U.style, L = classnamesExports(a, s, N, Re);
|
|
20574
20574
|
return /* @__PURE__ */ jsx(RefAlign, {
|
|
20575
20575
|
target: ue(),
|
|
@@ -20579,7 +20579,7 @@ var PopupInner = /* @__PURE__ */ React.forwardRef(function(e, r) {
|
|
|
20579
20579
|
align: p,
|
|
20580
20580
|
onAlign: Ce,
|
|
20581
20581
|
children: /* @__PURE__ */ jsx("div", {
|
|
20582
|
-
ref:
|
|
20582
|
+
ref: re,
|
|
20583
20583
|
className: L,
|
|
20584
20584
|
onMouseEnter: C,
|
|
20585
20585
|
onMouseLeave: b,
|
|
@@ -20728,7 +20728,7 @@ function generateTrigger(e) {
|
|
|
20728
20728
|
var f = [], p = c.props, h = p.popupPlacement, g = p.builtinPlacements, m = p.prefixCls, I = p.alignPoint, C = p.getPopupClassNameFromAlign;
|
|
20729
20729
|
return h && g && f.push(getAlignPopupClassName(g, m, d, I)), C && f.push(C(d)), f.join(" ");
|
|
20730
20730
|
}, c.getComponent = function() {
|
|
20731
|
-
var d = c.props, f = d.prefixCls, p = d.destroyPopupOnHide, h = d.popupClassName, g = d.onPopupAlign, m = d.popupMotion, I = d.popupAnimation, C = d.popupTransitionName, b = d.popupStyle, y = d.mask, v = d.maskAnimation, O = d.maskTransitionName, w = d.maskMotion, _ = d.zIndex,
|
|
20731
|
+
var d = c.props, f = d.prefixCls, p = d.destroyPopupOnHide, h = d.popupClassName, g = d.onPopupAlign, m = d.popupMotion, I = d.popupAnimation, C = d.popupTransitionName, b = d.popupStyle, y = d.mask, v = d.maskAnimation, O = d.maskTransitionName, w = d.maskMotion, _ = d.zIndex, A = d.popup, N = d.stretch, E = d.alignPoint, P = d.mobile, F = c.state, W = F.popupVisible, J = F.point, z = c.getPopupAlign(), Y = {};
|
|
20732
20732
|
return c.isMouseEnterToShow() && (Y.onMouseEnter = c.onPopupMouseEnter), c.isMouseLeaveToHide() && (Y.onMouseLeave = c.onPopupMouseLeave), Y.onMouseDown = c.onPopupMouseDown, Y.onTouchStart = c.onPopupMouseDown, /* @__PURE__ */ jsx(Popup, {
|
|
20733
20733
|
prefixCls: f,
|
|
20734
20734
|
destroyPopupOnHide: p,
|
|
@@ -20752,7 +20752,7 @@ function generateTrigger(e) {
|
|
|
20752
20752
|
ref: c.popupRef,
|
|
20753
20753
|
motion: m,
|
|
20754
20754
|
mobile: P,
|
|
20755
|
-
children: typeof
|
|
20755
|
+
children: typeof A == "function" ? A() : A
|
|
20756
20756
|
});
|
|
20757
20757
|
}, c.attachParent = function(d) {
|
|
20758
20758
|
wrapperRaf.cancel(c.attachId);
|
|
@@ -21062,7 +21062,7 @@ var autoAdjustOverflow = {
|
|
|
21062
21062
|
children: typeof o == "function" ? o() : o
|
|
21063
21063
|
});
|
|
21064
21064
|
}, Tooltip = function e(r, o) {
|
|
21065
|
-
var a = r.overlayClassName, s = r.trigger, l = s === void 0 ? ["hover"] : s, c = r.mouseEnterDelay, u = c === void 0 ? 0 : c, d = r.mouseLeaveDelay, f = d === void 0 ? 0.1 : d, p = r.overlayStyle, h = r.prefixCls, g = h === void 0 ? "rc-tooltip" : h, m = r.children, I = r.onVisibleChange, C = r.afterVisibleChange, b = r.transitionName, y = r.animation, v = r.placement, O = v === void 0 ? "right" : v, w = r.align, _ = w === void 0 ? {} : w,
|
|
21065
|
+
var a = r.overlayClassName, s = r.trigger, l = s === void 0 ? ["hover"] : s, c = r.mouseEnterDelay, u = c === void 0 ? 0 : c, d = r.mouseLeaveDelay, f = d === void 0 ? 0.1 : d, p = r.overlayStyle, h = r.prefixCls, g = h === void 0 ? "rc-tooltip" : h, m = r.children, I = r.onVisibleChange, C = r.afterVisibleChange, b = r.transitionName, y = r.animation, v = r.placement, O = v === void 0 ? "right" : v, w = r.align, _ = w === void 0 ? {} : w, A = r.destroyTooltipOnHide, N = A === void 0 ? !1 : A, E = r.defaultVisible, P = r.getTooltipContainer, F = r.overlayInnerStyle, W = _objectWithoutProperties(r, ["overlayClassName", "trigger", "mouseEnterDelay", "mouseLeaveDelay", "overlayStyle", "prefixCls", "children", "onVisibleChange", "afterVisibleChange", "transitionName", "animation", "placement", "align", "destroyTooltipOnHide", "defaultVisible", "getTooltipContainer", "overlayInnerStyle"]), J = useRef(null);
|
|
21066
21066
|
useImperativeHandle(o, function() {
|
|
21067
21067
|
return J.current;
|
|
21068
21068
|
});
|
|
@@ -21079,15 +21079,15 @@ var autoAdjustOverflow = {
|
|
|
21079
21079
|
prefixCls: g,
|
|
21080
21080
|
id: ce,
|
|
21081
21081
|
overlay: Ce,
|
|
21082
|
-
overlayInnerStyle:
|
|
21082
|
+
overlayInnerStyle: F
|
|
21083
21083
|
}, "content")
|
|
21084
21084
|
];
|
|
21085
|
-
}, Q = !1,
|
|
21085
|
+
}, Q = !1, oe = !1;
|
|
21086
21086
|
if (typeof N == "boolean")
|
|
21087
21087
|
Q = N;
|
|
21088
21088
|
else if (N && _typeof$1(N) === "object") {
|
|
21089
21089
|
var ee = N.keepParent;
|
|
21090
|
-
Q = ee === !0,
|
|
21090
|
+
Q = ee === !0, oe = ee === !1;
|
|
21091
21091
|
}
|
|
21092
21092
|
return /* @__PURE__ */ jsx(Trigger, {
|
|
21093
21093
|
...Object.assign({
|
|
@@ -21106,7 +21106,7 @@ var autoAdjustOverflow = {
|
|
|
21106
21106
|
popupAnimation: y,
|
|
21107
21107
|
defaultPopupVisible: E,
|
|
21108
21108
|
destroyPopupOnHide: Q,
|
|
21109
|
-
autoDestroy:
|
|
21109
|
+
autoDestroy: oe,
|
|
21110
21110
|
mouseLeaveDelay: f,
|
|
21111
21111
|
popupStyle: p,
|
|
21112
21112
|
mouseEnterDelay: u
|
|
@@ -21305,37 +21305,37 @@ function requireTooltip() {
|
|
|
21305
21305
|
value: !0
|
|
21306
21306
|
}), e.default = void 0;
|
|
21307
21307
|
var a = o(requireDefineProperty()), s = o(requireSlicedToArray()), l = o(require_extends()), c = r(React__default), u = o(require$$6), d = o(requireClassnames()), f = o(requirePlacements()), p = requireReactNode(), h = requireConfigProvider(), g = requireColors(), m = function(O, w) {
|
|
21308
|
-
var _ = {},
|
|
21308
|
+
var _ = {}, A = (0, l.default)({}, O);
|
|
21309
21309
|
return w.forEach(function(N) {
|
|
21310
|
-
O && N in O && (_[N] = O[N], delete
|
|
21310
|
+
O && N in O && (_[N] = O[N], delete A[N]);
|
|
21311
21311
|
}), {
|
|
21312
21312
|
picked: _,
|
|
21313
|
-
omitted:
|
|
21313
|
+
omitted: A
|
|
21314
21314
|
};
|
|
21315
21315
|
}, I = new RegExp("^(".concat(g.PresetColorTypes.join("|"), ")(-inverse)?$"));
|
|
21316
21316
|
function C(v, O) {
|
|
21317
21317
|
var w = v.type;
|
|
21318
21318
|
if ((w.__ANT_BUTTON === !0 || w.__ANT_SWITCH === !0 || w.__ANT_CHECKBOX === !0 || v.type === "button") && v.props.disabled) {
|
|
21319
|
-
var _ = m(v.props.style, ["position", "left", "right", "top", "bottom", "float", "display", "zIndex"]),
|
|
21319
|
+
var _ = m(v.props.style, ["position", "left", "right", "top", "bottom", "float", "display", "zIndex"]), A = _.picked, N = _.omitted, E = (0, l.default)((0, l.default)({
|
|
21320
21320
|
display: "inline-block"
|
|
21321
|
-
},
|
|
21321
|
+
}, A), {
|
|
21322
21322
|
cursor: "not-allowed",
|
|
21323
21323
|
width: v.props.block ? "100%" : null
|
|
21324
21324
|
}), P = (0, l.default)((0, l.default)({}, N), {
|
|
21325
21325
|
pointerEvents: "none"
|
|
21326
|
-
}),
|
|
21326
|
+
}), F = (0, p.cloneElement)(v, {
|
|
21327
21327
|
style: P,
|
|
21328
21328
|
className: null
|
|
21329
21329
|
});
|
|
21330
21330
|
return /* @__PURE__ */ c.createElement("span", {
|
|
21331
21331
|
style: E,
|
|
21332
21332
|
className: (0, d.default)(v.props.className, "".concat(O, "-disabled-compatible-wrapper"))
|
|
21333
|
-
},
|
|
21333
|
+
}, F);
|
|
21334
21334
|
}
|
|
21335
21335
|
return v;
|
|
21336
21336
|
}
|
|
21337
21337
|
var b = /* @__PURE__ */ c.forwardRef(function(v, O) {
|
|
21338
|
-
var w, _ = c.useContext(h.ConfigContext),
|
|
21338
|
+
var w, _ = c.useContext(h.ConfigContext), A = _.getPopupContainer, N = _.getPrefixCls, E = _.direction, P = c.useState(!!v.visible || !!v.defaultVisible), F = (0, s.default)(P, 2), W = F[0], J = F[1];
|
|
21339
21339
|
c.useEffect(function() {
|
|
21340
21340
|
"visible" in v && J(v.visible);
|
|
21341
21341
|
}, [v.visible]);
|
|
@@ -21350,7 +21350,7 @@ function requireTooltip() {
|
|
|
21350
21350
|
arrowPointAtCenter: je,
|
|
21351
21351
|
autoAdjustOverflow: Ge
|
|
21352
21352
|
});
|
|
21353
|
-
},
|
|
21353
|
+
}, oe = function(tt, je) {
|
|
21354
21354
|
var Ge = Q(), yt = Object.keys(Ge).filter(function($t) {
|
|
21355
21355
|
return Ge[$t].points[0] === je.points[0] && Ge[$t].points[1] === je.points[1];
|
|
21356
21356
|
})[0];
|
|
@@ -21366,7 +21366,7 @@ function requireTooltip() {
|
|
|
21366
21366
|
return tt === 0 ? tt : je || tt || "";
|
|
21367
21367
|
}, X = v.prefixCls, ue = v.openClassName, we = v.getPopupContainer, Ce = v.getTooltipContainer, ce = v.overlayClassName, xe = v.color, te = v.overlayInnerStyle, de = v.children, j = N("tooltip", X), U = W;
|
|
21368
21368
|
!("visible" in v) && z() && (U = !1);
|
|
21369
|
-
var
|
|
21369
|
+
var re = C((0, p.isValidElement)(de) ? de : /* @__PURE__ */ c.createElement("span", null, de), j), Re = re.props, Fe = (0, d.default)(Re.className, (0, a.default)({}, ue || "".concat(j, "-open"), !0)), L = (0, d.default)(ce, (w = {}, (0, a.default)(w, "".concat(j, "-rtl"), E === "rtl"), (0, a.default)(w, "".concat(j, "-").concat(xe), xe && I.test(xe)), w)), M = te, Te;
|
|
21370
21370
|
return xe && !I.test(xe) && (M = (0, l.default)((0, l.default)({}, te), {
|
|
21371
21371
|
background: xe
|
|
21372
21372
|
}), Te = {
|
|
@@ -21374,21 +21374,21 @@ function requireTooltip() {
|
|
|
21374
21374
|
}), /* @__PURE__ */ c.createElement(u.default, (0, l.default)({}, v, {
|
|
21375
21375
|
prefixCls: j,
|
|
21376
21376
|
overlayClassName: L,
|
|
21377
|
-
getTooltipContainer: we || Ce ||
|
|
21377
|
+
getTooltipContainer: we || Ce || A,
|
|
21378
21378
|
ref: O,
|
|
21379
21379
|
builtinPlacements: Q(),
|
|
21380
21380
|
overlay: ee(),
|
|
21381
21381
|
visible: U,
|
|
21382
21382
|
onVisibleChange: Y,
|
|
21383
|
-
onPopupAlign:
|
|
21383
|
+
onPopupAlign: oe,
|
|
21384
21384
|
overlayInnerStyle: M,
|
|
21385
21385
|
arrowContent: /* @__PURE__ */ c.createElement("span", {
|
|
21386
21386
|
className: "".concat(j, "-arrow-content"),
|
|
21387
21387
|
style: Te
|
|
21388
21388
|
})
|
|
21389
|
-
}), U ? (0, p.cloneElement)(
|
|
21389
|
+
}), U ? (0, p.cloneElement)(re, {
|
|
21390
21390
|
className: Fe
|
|
21391
|
-
}) :
|
|
21391
|
+
}) : re);
|
|
21392
21392
|
});
|
|
21393
21393
|
b.displayName = "Tooltip", b.defaultProps = {
|
|
21394
21394
|
placement: "top",
|
|
@@ -21446,13 +21446,13 @@ function requireTypography() {
|
|
|
21446
21446
|
b.indexOf(v[O]) < 0 && Object.prototype.propertyIsEnumerable.call(C, v[O]) && (y[v[O]] = C[v[O]]);
|
|
21447
21447
|
return y;
|
|
21448
21448
|
}, h = function(b, y) {
|
|
21449
|
-
var v = b.prefixCls, O = b.component, w = O === void 0 ? "article" : O, _ = b.className,
|
|
21450
|
-
return N && ((0, f.default)(!1, "Typography", "`setContentRef` is deprecated. Please use `ref` instead."),
|
|
21451
|
-
var J = W.getPrefixCls, z = W.direction, Y = w, Q = J("typography", v),
|
|
21449
|
+
var v = b.prefixCls, O = b.component, w = O === void 0 ? "article" : O, _ = b.className, A = b["aria-label"], N = b.setContentRef, E = b.children, P = p(b, ["prefixCls", "component", "className", "aria-label", "setContentRef", "children"]), F = y;
|
|
21450
|
+
return N && ((0, f.default)(!1, "Typography", "`setContentRef` is deprecated. Please use `ref` instead."), F = (0, u.composeRef)(y, N)), /* @__PURE__ */ l.createElement(d.ConfigConsumer, null, function(W) {
|
|
21451
|
+
var J = W.getPrefixCls, z = W.direction, Y = w, Q = J("typography", v), oe = (0, c.default)(Q, (0, s.default)({}, "".concat(Q, "-rtl"), z === "rtl"), _);
|
|
21452
21452
|
return /* @__PURE__ */ l.createElement(Y, (0, a.default)({
|
|
21453
|
-
className:
|
|
21454
|
-
"aria-label":
|
|
21455
|
-
ref:
|
|
21453
|
+
className: oe,
|
|
21454
|
+
"aria-label": A,
|
|
21455
|
+
ref: F
|
|
21456
21456
|
}, P), E);
|
|
21457
21457
|
});
|
|
21458
21458
|
}, g = /* @__PURE__ */ l.forwardRef(h);
|
|
@@ -21510,10 +21510,10 @@ function requireEditable() {
|
|
|
21510
21510
|
value: !0
|
|
21511
21511
|
}), e.default = void 0;
|
|
21512
21512
|
var a = o(requireDefineProperty()), s = o(requireSlicedToArray()), l = r(React__default), c = o(requireClassnames()), u = o(requireKeyCode()), d = o(requireEnterOutlined()), f = o(TextArea$2), p = function(m) {
|
|
21513
|
-
var I = m.prefixCls, C = m["aria-label"], b = m.className, y = m.style, v = m.direction, O = m.maxLength, w = m.autoSize, _ = w === void 0 ? !0 : w,
|
|
21513
|
+
var I = m.prefixCls, C = m["aria-label"], b = m.className, y = m.style, v = m.direction, O = m.maxLength, w = m.autoSize, _ = w === void 0 ? !0 : w, A = m.value, N = m.onSave, E = m.onCancel, P = l.useRef(), F = l.useRef(!1), W = l.useRef(), J = l.useState(A), z = (0, s.default)(J, 2), Y = z[0], Q = z[1];
|
|
21514
21514
|
l.useEffect(function() {
|
|
21515
|
-
Q(
|
|
21516
|
-
}, [
|
|
21515
|
+
Q(A);
|
|
21516
|
+
}, [A]), l.useEffect(function() {
|
|
21517
21517
|
if (P.current && P.current.resizableTextArea) {
|
|
21518
21518
|
var te = P.current.resizableTextArea.textArea;
|
|
21519
21519
|
te.focus();
|
|
@@ -21521,21 +21521,21 @@ function requireEditable() {
|
|
|
21521
21521
|
te.setSelectionRange(de, de);
|
|
21522
21522
|
}
|
|
21523
21523
|
}, []);
|
|
21524
|
-
var
|
|
21524
|
+
var oe = function(de) {
|
|
21525
21525
|
var j = de.target;
|
|
21526
21526
|
Q(j.value.replace(/[\n\r]/g, ""));
|
|
21527
21527
|
}, ee = function() {
|
|
21528
|
-
|
|
21528
|
+
F.current = !0;
|
|
21529
21529
|
}, X = function() {
|
|
21530
|
-
|
|
21530
|
+
F.current = !1;
|
|
21531
21531
|
}, ue = function(de) {
|
|
21532
21532
|
var j = de.keyCode;
|
|
21533
|
-
|
|
21533
|
+
F.current || (W.current = j);
|
|
21534
21534
|
}, we = function() {
|
|
21535
21535
|
N(Y.trim());
|
|
21536
21536
|
}, Ce = function(de) {
|
|
21537
|
-
var j = de.keyCode, U = de.ctrlKey,
|
|
21538
|
-
W.current === j && !
|
|
21537
|
+
var j = de.keyCode, U = de.ctrlKey, re = de.altKey, Re = de.metaKey, Fe = de.shiftKey;
|
|
21538
|
+
W.current === j && !F.current && !U && !re && !Re && !Fe && (j === u.default.ENTER ? we() : j === u.default.ESC && E());
|
|
21539
21539
|
}, ce = function() {
|
|
21540
21540
|
we();
|
|
21541
21541
|
}, xe = (0, c.default)(I, "".concat(I, "-edit-content"), (0, a.default)({}, "".concat(I, "-rtl"), v === "rtl"), b);
|
|
@@ -21546,7 +21546,7 @@ function requireEditable() {
|
|
|
21546
21546
|
ref: P,
|
|
21547
21547
|
maxLength: O,
|
|
21548
21548
|
value: Y,
|
|
21549
|
-
onChange:
|
|
21549
|
+
onChange: oe,
|
|
21550
21550
|
onKeyDown: ue,
|
|
21551
21551
|
onKeyUp: Ce,
|
|
21552
21552
|
onCompositionStart: ee,
|
|
@@ -21595,7 +21595,7 @@ function requireUtil() {
|
|
|
21595
21595
|
}
|
|
21596
21596
|
var I = function(b, y, v, O, w) {
|
|
21597
21597
|
f || (f = document.createElement("div"), f.setAttribute("aria-hidden", "true"), document.body.appendChild(f));
|
|
21598
|
-
var _ = y.rows,
|
|
21598
|
+
var _ = y.rows, A = y.suffix, N = A === void 0 ? "" : A, E = window.getComputedStyle(b), P = g(E), F = h(E.lineHeight), W = Math.round(F * (_ + 1) + h(E.paddingTop) + h(E.paddingBottom));
|
|
21599
21599
|
f.setAttribute("style", P), f.style.position = "fixed", f.style.left = "0", f.style.height = "auto", f.style.minHeight = "auto", f.style.maxHeight = "auto", f.style.top = "-999999px", f.style.zIndex = "-1000", f.style.textOverflow = "clip", f.style.whiteSpace = "normal", f.style.webkitLineClamp = "none";
|
|
21600
21600
|
var J = m((0, l.default)(v));
|
|
21601
21601
|
(0, a.render)(/* @__PURE__ */ s.createElement("div", {
|
|
@@ -21619,7 +21619,7 @@ function requireUtil() {
|
|
|
21619
21619
|
return xe !== d;
|
|
21620
21620
|
}), Q = Array.prototype.slice.apply(f.childNodes[0].childNodes[1].cloneNode(!0).childNodes);
|
|
21621
21621
|
(0, a.unmountComponentAtNode)(f);
|
|
21622
|
-
var
|
|
21622
|
+
var oe = [];
|
|
21623
21623
|
f.innerHTML = "";
|
|
21624
21624
|
var ee = document.createElement("span");
|
|
21625
21625
|
f.appendChild(ee);
|
|
@@ -21631,8 +21631,8 @@ function requireUtil() {
|
|
|
21631
21631
|
ee.insertBefore(ce, X);
|
|
21632
21632
|
}
|
|
21633
21633
|
function we(ce, xe) {
|
|
21634
|
-
var te = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 0, de = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : xe.length, j = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : 0, U = Math.floor((te + de) / 2),
|
|
21635
|
-
if (ce.textContent =
|
|
21634
|
+
var te = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 0, de = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : xe.length, j = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : 0, U = Math.floor((te + de) / 2), re = xe.slice(0, U);
|
|
21635
|
+
if (ce.textContent = re, te >= de - 1)
|
|
21636
21636
|
for (var Re = de; Re >= te; Re -= 1) {
|
|
21637
21637
|
var Fe = xe.slice(0, Re);
|
|
21638
21638
|
if (ce.textContent = Fe, z() || !Fe)
|
|
@@ -21667,9 +21667,9 @@ function requireUtil() {
|
|
|
21667
21667
|
}
|
|
21668
21668
|
return Y.some(function(ce, xe) {
|
|
21669
21669
|
var te = Ce(ce, xe), de = te.finished, j = te.reactNode;
|
|
21670
|
-
return j &&
|
|
21670
|
+
return j && oe.push(j), de;
|
|
21671
21671
|
}), {
|
|
21672
|
-
content:
|
|
21672
|
+
content: oe,
|
|
21673
21673
|
text: f.innerHTML,
|
|
21674
21674
|
ellipsis: !0
|
|
21675
21675
|
};
|
|
@@ -21684,7 +21684,7 @@ function requireBase() {
|
|
|
21684
21684
|
Object.defineProperty(e, "__esModule", {
|
|
21685
21685
|
value: !0
|
|
21686
21686
|
}), e.default = void 0;
|
|
21687
|
-
var a = o(requireDefineProperty()), s = o(requireToConsumableArray()), l = o(_typeof$2.exports), c = o(require_extends()), u = o(requireClassCallCheck()), d = o(requireCreateClass()), f = o(requireInherits()), p = o(requireCreateSuper()), h = r(React__default), g = o(requireClassnames()), m = o(requireToArray()), I = o(requireCopyToClipboard()), C = o(requireOmit()), b = o(requireEditOutlined()), y = o(requireCheckOutlined()), v = o(requireCopyOutlined()), O = o(require$$18), w = requireConfigProvider(), _ = o(requireLocaleReceiver()),
|
|
21687
|
+
var a = o(requireDefineProperty()), s = o(requireToConsumableArray()), l = o(_typeof$2.exports), c = o(require_extends()), u = o(requireClassCallCheck()), d = o(requireCreateClass()), f = o(requireInherits()), p = o(requireCreateSuper()), h = r(React__default), g = o(requireClassnames()), m = o(requireToArray()), I = o(requireCopyToClipboard()), C = o(requireOmit()), b = o(requireEditOutlined()), y = o(requireCheckOutlined()), v = o(requireCopyOutlined()), O = o(require$$18), w = requireConfigProvider(), _ = o(requireLocaleReceiver()), A = o(requireDevWarning()), N = o(requireTransButton()), E = o(requireRaf()), P = requireStyleChecker(), F = o(requireTooltip()), W = o(requireTypography()), J = o(requireEditable()), z = o(requireUtil()), Y = function(Ce, ce) {
|
|
21688
21688
|
var xe = {};
|
|
21689
21689
|
for (var te in Ce)
|
|
21690
21690
|
Object.prototype.hasOwnProperty.call(Ce, te) && ce.indexOf(te) < 0 && (xe[te] = Ce[te]);
|
|
@@ -21692,13 +21692,13 @@ function requireBase() {
|
|
|
21692
21692
|
for (var de = 0, te = Object.getOwnPropertySymbols(Ce); de < te.length; de++)
|
|
21693
21693
|
ce.indexOf(te[de]) < 0 && Object.prototype.propertyIsEnumerable.call(Ce, te[de]) && (xe[te[de]] = Ce[te[de]]);
|
|
21694
21694
|
return xe;
|
|
21695
|
-
}, Q = (0, P.isStyleSupport)("webkitLineClamp"),
|
|
21695
|
+
}, Q = (0, P.isStyleSupport)("webkitLineClamp"), oe = (0, P.isStyleSupport)("textOverflow");
|
|
21696
21696
|
function ee(Ce, ce) {
|
|
21697
|
-
var xe = Ce.mark, te = Ce.code, de = Ce.underline, j = Ce.delete, U = Ce.strong,
|
|
21697
|
+
var xe = Ce.mark, te = Ce.code, de = Ce.underline, j = Ce.delete, U = Ce.strong, re = Ce.keyboard, Re = ce;
|
|
21698
21698
|
function Fe(L, M) {
|
|
21699
21699
|
!L || (Re = /* @__PURE__ */ h.createElement(M, {}, Re));
|
|
21700
21700
|
}
|
|
21701
|
-
return Fe(U, "strong"), Fe(de, "u"), Fe(j, "del"), Fe(te, "code"), Fe(xe, "mark"), Fe(
|
|
21701
|
+
return Fe(U, "strong"), Fe(de, "u"), Fe(j, "del"), Fe(te, "code"), Fe(xe, "mark"), Fe(re, "kbd"), Re;
|
|
21702
21702
|
}
|
|
21703
21703
|
var X = "...", ue = /* @__PURE__ */ function(Ce) {
|
|
21704
21704
|
(0, f.default)(xe, Ce);
|
|
@@ -21730,7 +21730,7 @@ function requireBase() {
|
|
|
21730
21730
|
te.triggerEdit(!1);
|
|
21731
21731
|
}, te.onCopyClick = function(de) {
|
|
21732
21732
|
de.preventDefault();
|
|
21733
|
-
var j = te.props, U = j.children,
|
|
21733
|
+
var j = te.props, U = j.children, re = j.copyable, Re = (0, c.default)({}, (0, l.default)(re) === "object" ? re : null);
|
|
21734
21734
|
Re.text === void 0 && (Re.text = String(U)), (0, I.default)(Re.text || ""), te.setState({
|
|
21735
21735
|
copied: !0
|
|
21736
21736
|
}, function() {
|
|
@@ -21765,8 +21765,8 @@ function requireBase() {
|
|
|
21765
21765
|
}, {
|
|
21766
21766
|
key: "componentDidUpdate",
|
|
21767
21767
|
value: function(de) {
|
|
21768
|
-
var j = this.props.children, U = this.getEllipsis(),
|
|
21769
|
-
(j !== de.children || U.rows !==
|
|
21768
|
+
var j = this.props.children, U = this.getEllipsis(), re = this.getEllipsis(de);
|
|
21769
|
+
(j !== de.children || U.rows !== re.rows) && this.resizeOnNextFrame();
|
|
21770
21770
|
}
|
|
21771
21771
|
}, {
|
|
21772
21772
|
key: "componentWillUnmount",
|
|
@@ -21776,10 +21776,10 @@ function requireBase() {
|
|
|
21776
21776
|
}, {
|
|
21777
21777
|
key: "getEditable",
|
|
21778
21778
|
value: function(de) {
|
|
21779
|
-
var j = this.state.edit, U = de || this.props,
|
|
21780
|
-
return
|
|
21779
|
+
var j = this.state.edit, U = de || this.props, re = U.editable;
|
|
21780
|
+
return re ? (0, c.default)({
|
|
21781
21781
|
editing: j
|
|
21782
|
-
}, (0, l.default)(
|
|
21782
|
+
}, (0, l.default)(re) === "object" ? re : null) : {
|
|
21783
21783
|
editing: j
|
|
21784
21784
|
};
|
|
21785
21785
|
}
|
|
@@ -21795,15 +21795,15 @@ function requireBase() {
|
|
|
21795
21795
|
}, {
|
|
21796
21796
|
key: "canUseCSSEllipsis",
|
|
21797
21797
|
value: function() {
|
|
21798
|
-
var de = this.state.clientRendered, j = this.props, U = j.editable,
|
|
21799
|
-
return M || Ne || U ||
|
|
21798
|
+
var de = this.state.clientRendered, j = this.props, U = j.editable, re = j.copyable, Re = this.getEllipsis(), Fe = Re.rows, L = Re.expandable, M = Re.suffix, Te = Re.onEllipsis, Ne = Re.tooltip;
|
|
21799
|
+
return M || Ne || U || re || L || !de || Te ? !1 : Fe === 1 ? oe : Q;
|
|
21800
21800
|
}
|
|
21801
21801
|
}, {
|
|
21802
21802
|
key: "syncEllipsis",
|
|
21803
21803
|
value: function() {
|
|
21804
|
-
var de = this.state, j = de.ellipsisText, U = de.isEllipsis,
|
|
21805
|
-
if (!(!Fe || Fe < 0 || !this.contentRef.current ||
|
|
21806
|
-
(0,
|
|
21804
|
+
var de = this.state, j = de.ellipsisText, U = de.isEllipsis, re = de.expanded, Re = this.getEllipsis(), Fe = Re.rows, L = Re.suffix, M = Re.onEllipsis, Te = this.props.children;
|
|
21805
|
+
if (!(!Fe || Fe < 0 || !this.contentRef.current || re) && !this.canUseCSSEllipsis()) {
|
|
21806
|
+
(0, A.default)((0, m.default)(Te).every(function(yt) {
|
|
21807
21807
|
return typeof yt == "string";
|
|
21808
21808
|
}), "Typography", "`ellipsis` should use string as children only.");
|
|
21809
21809
|
var Ne = (0, z.default)(this.contentRef.current, {
|
|
@@ -21820,11 +21820,11 @@ function requireBase() {
|
|
|
21820
21820
|
}, {
|
|
21821
21821
|
key: "renderExpand",
|
|
21822
21822
|
value: function(de) {
|
|
21823
|
-
var j = this.getEllipsis(), U = j.expandable,
|
|
21823
|
+
var j = this.getEllipsis(), U = j.expandable, re = j.symbol, Re = this.state, Fe = Re.expanded, L = Re.isEllipsis;
|
|
21824
21824
|
if (!U || !de && (Fe || !L))
|
|
21825
21825
|
return null;
|
|
21826
21826
|
var M;
|
|
21827
|
-
return
|
|
21827
|
+
return re ? M = re : M = this.expandStr, /* @__PURE__ */ h.createElement("a", {
|
|
21828
21828
|
key: "expand",
|
|
21829
21829
|
className: "".concat(this.getPrefixCls(), "-expand"),
|
|
21830
21830
|
onClick: this.onExpandClick,
|
|
@@ -21836,10 +21836,10 @@ function requireBase() {
|
|
|
21836
21836
|
value: function() {
|
|
21837
21837
|
var de = this.props.editable;
|
|
21838
21838
|
if (!!de) {
|
|
21839
|
-
var j = de.icon, U = de.tooltip,
|
|
21840
|
-
return /* @__PURE__ */ h.createElement(
|
|
21839
|
+
var j = de.icon, U = de.tooltip, re = (0, m.default)(U)[0] || this.editStr, Re = typeof re == "string" ? re : "";
|
|
21840
|
+
return /* @__PURE__ */ h.createElement(F.default, {
|
|
21841
21841
|
key: "edit",
|
|
21842
|
-
title: U === !1 ? "" :
|
|
21842
|
+
title: U === !1 ? "" : re
|
|
21843
21843
|
}, /* @__PURE__ */ h.createElement(N.default, {
|
|
21844
21844
|
ref: this.setEditRef,
|
|
21845
21845
|
className: "".concat(this.getPrefixCls(), "-edit"),
|
|
@@ -21855,12 +21855,12 @@ function requireBase() {
|
|
|
21855
21855
|
value: function() {
|
|
21856
21856
|
var de = this.state.copied, j = this.props.copyable;
|
|
21857
21857
|
if (!!j) {
|
|
21858
|
-
var U = this.getPrefixCls(),
|
|
21858
|
+
var U = this.getPrefixCls(), re = j.tooltips, Re = (0, m.default)(re);
|
|
21859
21859
|
Re.length === 0 && (Re = [this.copyStr, this.copiedStr]);
|
|
21860
21860
|
var Fe = de ? Re[1] : Re[0], L = typeof Fe == "string" ? Fe : "", M = (0, m.default)(j.icon);
|
|
21861
|
-
return /* @__PURE__ */ h.createElement(
|
|
21861
|
+
return /* @__PURE__ */ h.createElement(F.default, {
|
|
21862
21862
|
key: "copy",
|
|
21863
|
-
title:
|
|
21863
|
+
title: re === !1 ? "" : Fe
|
|
21864
21864
|
}, /* @__PURE__ */ h.createElement(N.default, {
|
|
21865
21865
|
className: (0, g.default)("".concat(U, "-copy"), de && "".concat(U, "-copy-success")),
|
|
21866
21866
|
onClick: this.onCopyClick,
|
|
@@ -21871,14 +21871,14 @@ function requireBase() {
|
|
|
21871
21871
|
}, {
|
|
21872
21872
|
key: "renderEditInput",
|
|
21873
21873
|
value: function() {
|
|
21874
|
-
var de = this.props, j = de.children, U = de.className,
|
|
21874
|
+
var de = this.props, j = de.children, U = de.className, re = de.style, Re = this.context.direction, Fe = this.getEditable(), L = Fe.maxLength, M = Fe.autoSize;
|
|
21875
21875
|
return /* @__PURE__ */ h.createElement(J.default, {
|
|
21876
21876
|
value: typeof j == "string" ? j : "",
|
|
21877
21877
|
onSave: this.onEditChange,
|
|
21878
21878
|
onCancel: this.onEditCancel,
|
|
21879
21879
|
prefixCls: this.getPrefixCls(),
|
|
21880
21880
|
className: U,
|
|
21881
|
-
style:
|
|
21881
|
+
style: re,
|
|
21882
21882
|
direction: Re,
|
|
21883
21883
|
maxLength: L,
|
|
21884
21884
|
autoSize: M
|
|
@@ -21894,13 +21894,13 @@ function requireBase() {
|
|
|
21894
21894
|
}, {
|
|
21895
21895
|
key: "renderContent",
|
|
21896
21896
|
value: function() {
|
|
21897
|
-
var de = this, j = this.state, U = j.ellipsisContent,
|
|
21898
|
-
if (Ot &&
|
|
21897
|
+
var de = this, j = this.state, U = j.ellipsisContent, re = j.isEllipsis, Re = j.expanded, Fe = this.props, L = Fe.component, M = Fe.children, Te = Fe.className, Ne = Fe.type, tt = Fe.disabled, je = Fe.style, Ge = Y(Fe, ["component", "children", "className", "type", "disabled", "style"]), yt = this.context.direction, Tt = this.getEllipsis(), Ot = Tt.rows, $t = Tt.suffix, Vt = Tt.tooltip, Ct = this.getPrefixCls(), Dt = (0, C.default)(Ge, ["prefixCls", "editable", "copyable", "ellipsis", "mark", "code", "delete", "underline", "strong", "keyboard"].concat((0, s.default)(w.configConsumerProps))), zt = this.canUseCSSEllipsis(), Ut = Ot === 1 && zt, Kt = Ot && Ot > 1 && zt, Gt = M;
|
|
21898
|
+
if (Ot && re && !Re && !zt) {
|
|
21899
21899
|
var fn = Ge.title, nn = fn || "";
|
|
21900
21900
|
!fn && (typeof M == "string" || typeof M == "number") && (nn = String(M)), nn = nn == null ? void 0 : nn.slice(String(U || "").length), Gt = /* @__PURE__ */ h.createElement(h.Fragment, null, U, /* @__PURE__ */ h.createElement("span", {
|
|
21901
21901
|
title: nn,
|
|
21902
21902
|
"aria-hidden": "true"
|
|
21903
|
-
}, X), $t), Vt && (Gt = /* @__PURE__ */ h.createElement(
|
|
21903
|
+
}, X), $t), Vt && (Gt = /* @__PURE__ */ h.createElement(F.default, {
|
|
21904
21904
|
title: Vt === !0 ? M : Vt
|
|
21905
21905
|
}, /* @__PURE__ */ h.createElement("span", null, Gt)));
|
|
21906
21906
|
} else
|
|
@@ -21933,7 +21933,7 @@ function requireBase() {
|
|
|
21933
21933
|
key: "getDerivedStateFromProps",
|
|
21934
21934
|
value: function(de) {
|
|
21935
21935
|
var j = de.children, U = de.editable;
|
|
21936
|
-
return (0,
|
|
21936
|
+
return (0, A.default)(!U || typeof j == "string", "Typography", "When `editable` is enabled, the `children` should use string."), {};
|
|
21937
21937
|
}
|
|
21938
21938
|
}]), xe;
|
|
21939
21939
|
}(h.Component);
|
|
@@ -21980,9 +21980,9 @@ const Title$2 = /* @__PURE__ */ getDefaultExportFromCjs(Title$3), {
|
|
|
21980
21980
|
field: f,
|
|
21981
21981
|
operator: p,
|
|
21982
21982
|
manualIds: h
|
|
21983
|
-
} = e, [g, m] = useState(!1), [I, C] = useState(), [b, y] = useState(), [v, O] = useState(), [w, _] = useState(0), [
|
|
21983
|
+
} = e, [g, m] = useState(!1), [I, C] = useState(), [b, y] = useState(), [v, O] = useState(), [w, _] = useState(0), [A, N] = useState(0), [E, P] = useState(), [F, W] = useState(), [J, z] = useState();
|
|
21984
21984
|
useEffect(() => {
|
|
21985
|
-
|
|
21985
|
+
oe();
|
|
21986
21986
|
}, [r, s]);
|
|
21987
21987
|
async function Y({
|
|
21988
21988
|
domain: ee,
|
|
@@ -22039,7 +22039,7 @@ const Title$2 = /* @__PURE__ */ getDefaultExportFromCjs(Title$3), {
|
|
|
22039
22039
|
context: a
|
|
22040
22040
|
});
|
|
22041
22041
|
}
|
|
22042
|
-
async function
|
|
22042
|
+
async function oe() {
|
|
22043
22043
|
m(!0);
|
|
22044
22044
|
let ee, X;
|
|
22045
22045
|
try {
|
|
@@ -22115,18 +22115,18 @@ const Title$2 = /* @__PURE__ */ getDefaultExportFromCjs(Title$3), {
|
|
|
22115
22115
|
percent: b,
|
|
22116
22116
|
measureRef: ee,
|
|
22117
22117
|
height: w,
|
|
22118
|
-
width:
|
|
22118
|
+
width: A,
|
|
22119
22119
|
color: E,
|
|
22120
|
-
icon:
|
|
22120
|
+
icon: F,
|
|
22121
22121
|
suffix: d
|
|
22122
22122
|
}) : /* @__PURE__ */ jsx(CommonIndicator, {
|
|
22123
22123
|
value: I,
|
|
22124
22124
|
total: v,
|
|
22125
22125
|
measureRef: ee,
|
|
22126
22126
|
height: w,
|
|
22127
|
-
width:
|
|
22127
|
+
width: A,
|
|
22128
22128
|
color: E,
|
|
22129
|
-
icon:
|
|
22129
|
+
icon: F,
|
|
22130
22130
|
suffix: d
|
|
22131
22131
|
})
|
|
22132
22132
|
});
|
|
@@ -22325,8 +22325,8 @@ const DefaultGraphOptions = {
|
|
|
22325
22325
|
fields: O,
|
|
22326
22326
|
manualIds: u
|
|
22327
22327
|
}));
|
|
22328
|
-
} catch (
|
|
22329
|
-
h("Error fetching graph data values: " + JSON.stringify(
|
|
22328
|
+
} catch (A) {
|
|
22329
|
+
h("Error fetching graph data values: " + JSON.stringify(A)), f(!1);
|
|
22330
22330
|
return;
|
|
22331
22331
|
}
|
|
22332
22332
|
try {
|
|
@@ -22335,7 +22335,7 @@ const DefaultGraphOptions = {
|
|
|
22335
22335
|
return;
|
|
22336
22336
|
}
|
|
22337
22337
|
C(w);
|
|
22338
|
-
const
|
|
22338
|
+
const A = processGraphData({
|
|
22339
22339
|
ooui: v,
|
|
22340
22340
|
values: w,
|
|
22341
22341
|
fields: _,
|
|
@@ -22343,9 +22343,9 @@ const DefaultGraphOptions = {
|
|
|
22343
22343
|
uninformedString: c
|
|
22344
22344
|
}
|
|
22345
22345
|
});
|
|
22346
|
-
m(
|
|
22347
|
-
} catch (
|
|
22348
|
-
h("Error processing graph data: " +
|
|
22346
|
+
m(A);
|
|
22347
|
+
} catch (A) {
|
|
22348
|
+
h("Error processing graph data: " + A), f(!1);
|
|
22349
22349
|
return;
|
|
22350
22350
|
}
|
|
22351
22351
|
f(!1);
|
|
@@ -22727,13 +22727,13 @@ const One2manyInput = (e) => {
|
|
|
22727
22727
|
} = p || {}, {
|
|
22728
22728
|
lang: b,
|
|
22729
22729
|
t: y
|
|
22730
|
-
} = useContext(LocaleContext), v = useRef(), [O, w] = useState(!1), [_,
|
|
22730
|
+
} = useContext(LocaleContext), v = useRef(), [O, w] = useState(!1), [_, A] = useState(!1), [N, E] = useState(), [P, F] = useState(!1), [W, J] = useState(!1), [z, Y] = useState(), [Q, oe] = useState([]), [ee, X] = useState(!1), ue = useRef([]), [we, Ce] = useState(), ce = useRef(), {
|
|
22731
22731
|
readOnly: xe,
|
|
22732
22732
|
relation: te,
|
|
22733
22733
|
context: de,
|
|
22734
22734
|
domain: j
|
|
22735
22735
|
} = a, U = a.type === "many2many", {
|
|
22736
|
-
id:
|
|
22736
|
+
id: re
|
|
22737
22737
|
} = a, Re = l.filter((_t) => _t.values && _t.operation !== "pendingRemove");
|
|
22738
22738
|
useEffect(() => {
|
|
22739
22739
|
l.some((_t) => !_t.values) && L();
|
|
@@ -22750,7 +22750,7 @@ const One2manyInput = (e) => {
|
|
|
22750
22750
|
await M(), d > Re.length - 1 && d !== 0 && f(0);
|
|
22751
22751
|
}, M = async () => {
|
|
22752
22752
|
var _t;
|
|
22753
|
-
|
|
22753
|
+
A(!0), w(!1), E(void 0);
|
|
22754
22754
|
try {
|
|
22755
22755
|
const Ft = await readObjectValues({
|
|
22756
22756
|
treeFields: s.get("tree").fields,
|
|
@@ -22766,7 +22766,7 @@ const One2manyInput = (e) => {
|
|
|
22766
22766
|
} catch (Ft) {
|
|
22767
22767
|
E(Ft);
|
|
22768
22768
|
} finally {
|
|
22769
|
-
|
|
22769
|
+
A(!1);
|
|
22770
22770
|
}
|
|
22771
22771
|
};
|
|
22772
22772
|
async function Te() {
|
|
@@ -22779,10 +22779,10 @@ const One2manyInput = (e) => {
|
|
|
22779
22779
|
}),
|
|
22780
22780
|
context: I()
|
|
22781
22781
|
}),
|
|
22782
|
-
widgetFieldName:
|
|
22782
|
+
widgetFieldName: re
|
|
22783
22783
|
})), C && C.length > 0 && (ue.current = ue.current.concat(transformDomainForChildWidget({
|
|
22784
22784
|
domain: C,
|
|
22785
|
-
widgetFieldName:
|
|
22785
|
+
widgetFieldName: re
|
|
22786
22786
|
})));
|
|
22787
22787
|
}
|
|
22788
22788
|
const Ne = () => {
|
|
@@ -22856,16 +22856,16 @@ const One2manyInput = (e) => {
|
|
|
22856
22856
|
}), c === "form" ? yt(() => {
|
|
22857
22857
|
X(!0), Y({
|
|
22858
22858
|
defaultValues: Ft
|
|
22859
|
-
}),
|
|
22859
|
+
}), F(!0);
|
|
22860
22860
|
}) : (X(!0), Y({
|
|
22861
22861
|
defaultValues: Ft
|
|
22862
|
-
}),
|
|
22862
|
+
}), F(!0));
|
|
22863
22863
|
}, $t = async () => {
|
|
22864
22864
|
c === "form" ? yt(() => {
|
|
22865
22865
|
J(!0);
|
|
22866
22866
|
}) : J(!0);
|
|
22867
22867
|
}, Vt = async () => {
|
|
22868
|
-
|
|
22868
|
+
A(!0), w(!1), E(void 0);
|
|
22869
22869
|
try {
|
|
22870
22870
|
if (Re[d].id > 0) {
|
|
22871
22871
|
const _t = l.map((Ft) => Ft.id === Re[d].id ? {
|
|
@@ -22878,10 +22878,10 @@ const One2manyInput = (e) => {
|
|
|
22878
22878
|
} catch (_t) {
|
|
22879
22879
|
E(_t);
|
|
22880
22880
|
}
|
|
22881
|
-
f(0),
|
|
22881
|
+
f(0), A(!1);
|
|
22882
22882
|
}, Ct = async () => {
|
|
22883
22883
|
const _t = Re.filter((Ft) => Q.includes(Ft.id));
|
|
22884
|
-
|
|
22884
|
+
A(!0), w(!1), E(void 0);
|
|
22885
22885
|
try {
|
|
22886
22886
|
const Ft = _t.map((Yt) => Yt.id), Wt = l.filter((Yt) => !(Ft.includes(Yt.id) && Yt.id < 0)).map((Yt) => Ft.includes(Yt.id) ? {
|
|
22887
22887
|
...Yt,
|
|
@@ -22891,7 +22891,7 @@ const One2manyInput = (e) => {
|
|
|
22891
22891
|
} catch (Ft) {
|
|
22892
22892
|
E(Ft);
|
|
22893
22893
|
}
|
|
22894
|
-
f(0),
|
|
22894
|
+
f(0), A(!1);
|
|
22895
22895
|
}, Dt = (_t, Ft, Wt) => {
|
|
22896
22896
|
let Yt;
|
|
22897
22897
|
if (_t)
|
|
@@ -22922,14 +22922,14 @@ const One2manyInput = (e) => {
|
|
|
22922
22922
|
}
|
|
22923
22923
|
});
|
|
22924
22924
|
}
|
|
22925
|
-
Fe(Yt), ee ||
|
|
22925
|
+
Fe(Yt), ee || F(!1);
|
|
22926
22926
|
}, zt = (_t) => {
|
|
22927
22927
|
const {
|
|
22928
22928
|
id: Ft
|
|
22929
22929
|
} = _t;
|
|
22930
|
-
Y(l.find((Wt) => Wt.id === Ft)), X(!1),
|
|
22930
|
+
Y(l.find((Wt) => Wt.id === Ft)), X(!1), F(!0);
|
|
22931
22931
|
}, Ut = async (_t) => {
|
|
22932
|
-
|
|
22932
|
+
A(!0);
|
|
22933
22933
|
let Ft = l;
|
|
22934
22934
|
const Wt = _t.filter((Yt) => !l.find((en) => en.id === Yt));
|
|
22935
22935
|
try {
|
|
@@ -22962,7 +22962,7 @@ const One2manyInput = (e) => {
|
|
|
22962
22962
|
} catch (Yt) {
|
|
22963
22963
|
E(Yt);
|
|
22964
22964
|
} finally {
|
|
22965
|
-
|
|
22965
|
+
A(!1);
|
|
22966
22966
|
}
|
|
22967
22967
|
};
|
|
22968
22968
|
function Kt() {
|
|
@@ -23025,7 +23025,7 @@ const One2manyInput = (e) => {
|
|
|
23025
23025
|
showPagination: !1,
|
|
23026
23026
|
rowSelection: {
|
|
23027
23027
|
selectedRowKeys: Q,
|
|
23028
|
-
onChange:
|
|
23028
|
+
onChange: oe
|
|
23029
23029
|
},
|
|
23030
23030
|
sorter: we,
|
|
23031
23031
|
onChangeSort: Ce
|
|
@@ -23084,7 +23084,7 @@ const One2manyInput = (e) => {
|
|
|
23084
23084
|
...de
|
|
23085
23085
|
},
|
|
23086
23086
|
onCancel: () => {
|
|
23087
|
-
X(!1),
|
|
23087
|
+
X(!1), F(!1);
|
|
23088
23088
|
},
|
|
23089
23089
|
readOnly: xe,
|
|
23090
23090
|
mustClearAfterSave: fn
|
|
@@ -26201,19 +26201,19 @@ var isIP = { exports: {} };
|
|
|
26201
26201
|
}
|
|
26202
26202
|
if (!O.ignore_max_length && v.length > C)
|
|
26203
26203
|
return !1;
|
|
26204
|
-
var
|
|
26204
|
+
var A = v.split("@"), N = A.pop(), E = N.toLowerCase();
|
|
26205
26205
|
if (O.host_blacklist.includes(E))
|
|
26206
26206
|
return !1;
|
|
26207
|
-
var P =
|
|
26207
|
+
var P = A.join("@");
|
|
26208
26208
|
if (O.domain_specific_validation && (E === "gmail.com" || E === "googlemail.com")) {
|
|
26209
26209
|
P = P.toLowerCase();
|
|
26210
|
-
var
|
|
26211
|
-
if (!(0, s.default)(
|
|
26210
|
+
var F = P.split("+")[0];
|
|
26211
|
+
if (!(0, s.default)(F.replace(/\./g, ""), {
|
|
26212
26212
|
min: 6,
|
|
26213
26213
|
max: 30
|
|
26214
26214
|
}))
|
|
26215
26215
|
return !1;
|
|
26216
|
-
for (var W =
|
|
26216
|
+
for (var W = F.split("."), J = 0; J < W.length; J++)
|
|
26217
26217
|
if (!h.test(W[J]))
|
|
26218
26218
|
return !1;
|
|
26219
26219
|
}
|
|
@@ -26238,8 +26238,8 @@ var isIP = { exports: {} };
|
|
|
26238
26238
|
}
|
|
26239
26239
|
if (P[0] === '"')
|
|
26240
26240
|
return P = P.slice(1, P.length - 1), O.allow_utf8_local_part ? I.test(P) : g.test(P);
|
|
26241
|
-
for (var Y = O.allow_utf8_local_part ? m : p, Q = P.split("."),
|
|
26242
|
-
if (!Y.test(Q[
|
|
26241
|
+
for (var Y = O.allow_utf8_local_part ? m : p, Q = P.split("."), oe = 0; oe < Q.length; oe++)
|
|
26242
|
+
if (!Y.test(Q[oe]))
|
|
26243
26243
|
return !1;
|
|
26244
26244
|
return !(O.blacklisted_chars && P.search(new RegExp("[".concat(O.blacklisted_chars, "]+"), "g")) !== -1);
|
|
26245
26245
|
}
|
|
@@ -26281,17 +26281,17 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
26281
26281
|
}
|
|
26282
26282
|
function h(v, O) {
|
|
26283
26283
|
if (!(typeof Symbol > "u" || !(Symbol.iterator in Object(v)))) {
|
|
26284
|
-
var w = [], _ = !0,
|
|
26284
|
+
var w = [], _ = !0, A = !1, N = void 0;
|
|
26285
26285
|
try {
|
|
26286
26286
|
for (var E = v[Symbol.iterator](), P; !(_ = (P = E.next()).done) && (w.push(P.value), !(O && w.length === O)); _ = !0)
|
|
26287
26287
|
;
|
|
26288
|
-
} catch (
|
|
26289
|
-
|
|
26288
|
+
} catch (F) {
|
|
26289
|
+
A = !0, N = F;
|
|
26290
26290
|
} finally {
|
|
26291
26291
|
try {
|
|
26292
26292
|
!_ && E.return != null && E.return();
|
|
26293
26293
|
} finally {
|
|
26294
|
-
if (
|
|
26294
|
+
if (A)
|
|
26295
26295
|
throw N;
|
|
26296
26296
|
}
|
|
26297
26297
|
}
|
|
@@ -26330,9 +26330,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
26330
26330
|
function y(v, O) {
|
|
26331
26331
|
if ((0, o.default)(v), !v || /[\s<>]/.test(v) || v.indexOf("mailto:") === 0 || (O = (0, l.default)(O, m), O.validate_length && v.length >= 2083) || !O.allow_fragments && v.includes("#") || !O.allow_query_components && (v.includes("?") || v.includes("&")))
|
|
26332
26332
|
return !1;
|
|
26333
|
-
var w, _,
|
|
26334
|
-
if (
|
|
26335
|
-
if (w =
|
|
26333
|
+
var w, _, A, N, E, P, F, W;
|
|
26334
|
+
if (F = v.split("#"), v = F.shift(), F = v.split("?"), v = F.shift(), F = v.split("://"), F.length > 1) {
|
|
26335
|
+
if (w = F.shift().toLowerCase(), O.require_valid_protocol && O.protocols.indexOf(w) === -1)
|
|
26336
26336
|
return !1;
|
|
26337
26337
|
} else {
|
|
26338
26338
|
if (O.require_protocol)
|
|
@@ -26340,28 +26340,28 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
26340
26340
|
if (v.substr(0, 2) === "//") {
|
|
26341
26341
|
if (!O.allow_protocol_relative_urls)
|
|
26342
26342
|
return !1;
|
|
26343
|
-
|
|
26343
|
+
F[0] = v.substr(2);
|
|
26344
26344
|
}
|
|
26345
26345
|
}
|
|
26346
|
-
if (v =
|
|
26346
|
+
if (v = F.join("://"), v === "")
|
|
26347
26347
|
return !1;
|
|
26348
|
-
if (
|
|
26348
|
+
if (F = v.split("/"), v = F.shift(), v === "" && !O.require_host)
|
|
26349
26349
|
return !0;
|
|
26350
|
-
if (
|
|
26351
|
-
if (O.disallow_auth ||
|
|
26350
|
+
if (F = v.split("@"), F.length > 1) {
|
|
26351
|
+
if (O.disallow_auth || F[0] === "" || (_ = F.shift(), _.indexOf(":") >= 0 && _.split(":").length > 2))
|
|
26352
26352
|
return !1;
|
|
26353
26353
|
var J = _.split(":"), z = u(J, 2), Y = z[0], Q = z[1];
|
|
26354
26354
|
if (Y === "" && Q === "")
|
|
26355
26355
|
return !1;
|
|
26356
26356
|
}
|
|
26357
|
-
N =
|
|
26358
|
-
var
|
|
26359
|
-
if (
|
|
26357
|
+
N = F.join("@"), P = null, W = null;
|
|
26358
|
+
var oe = N.match(I);
|
|
26359
|
+
if (oe ? (A = "", W = oe[1], P = oe[2] || null) : (F = N.split(":"), A = F.shift(), F.length && (P = F.join(":"))), P !== null && P.length > 0) {
|
|
26360
26360
|
if (E = parseInt(P, 10), !/^[0-9]+$/.test(P) || E <= 0 || E > 65535)
|
|
26361
26361
|
return !1;
|
|
26362
26362
|
} else if (O.require_port)
|
|
26363
26363
|
return !1;
|
|
26364
|
-
return O.host_whitelist ? b(
|
|
26364
|
+
return O.host_whitelist ? b(A, O.host_whitelist) : !(!(0, s.default)(A) && !(0, a.default)(A, O) && (!W || !(0, s.default)(W, 6)) || (A = A || W, O.host_blacklist && b(A, O.host_blacklist)));
|
|
26365
26365
|
}
|
|
26366
26366
|
e.exports = r.default, e.exports.default = r.default;
|
|
26367
26367
|
})(isURL$1, isURL$1.exports);
|
|
@@ -27049,7 +27049,7 @@ const qt = (e) => {
|
|
|
27049
27049
|
f(!1);
|
|
27050
27050
|
}, []), C = useCallback(async ({ key: v }) => {
|
|
27051
27051
|
try {
|
|
27052
|
-
const O = Z(c).find((
|
|
27052
|
+
const O = Z(c).find((A) => A.key === v), w = await a({ key: v, title: O.title }), _ = Ht(c, v, w);
|
|
27053
27053
|
u(_);
|
|
27054
27054
|
} catch (O) {
|
|
27055
27055
|
console.error(O), Ze({ title: "Error", centered: !0, content: jsx(Fragment, { children: JSON.stringify(O, null, 2) }) });
|
|
@@ -27057,15 +27057,15 @@ const qt = (e) => {
|
|
|
27057
27057
|
}, [c]), b = useCallback((v, O) => {
|
|
27058
27058
|
v === "left" ? h(O.trim() === "" ? void 0 : O.trim()) : m(O.trim() === "" ? void 0 : O.trim());
|
|
27059
27059
|
}, []), y = useCallback(({ checkedKeys: v, onItemSelect: O }) => (w, { node: { key: _ } }) => {
|
|
27060
|
-
var
|
|
27061
|
-
O(_, (
|
|
27060
|
+
var A;
|
|
27061
|
+
O(_, (A = _, !v.includes(A)));
|
|
27062
27062
|
}, []);
|
|
27063
27063
|
return jsx(sn, { ...l, showSearch: !0, targetKeys: e, dataSource: Z(c), className: "tree-transfer", render: (v) => v.title, onChange: s, showSelectAll: !0, locale: { itemUnit: S("exportModalItemsUnit", r), itemsUnit: S("exportModalItemsUnit", r), notFoundContent: S("notFoundContent", r), searchPlaceholder: S("searchPlaceholder", r) }, filterOption: Le, onSearch: b, titles: [S("availableFields", r), S("fieldsToExport", r)], children: ({ direction: v, onItemSelect: O, selectedKeys: w }) => {
|
|
27064
27064
|
if (d)
|
|
27065
27065
|
return jsx("div", { style: { display: "flex", paddingTop: "2em", justifyContent: "center" }, children: jsx(Spin, {}) });
|
|
27066
27066
|
if (v === "left") {
|
|
27067
27067
|
const _ = [...e, ...w];
|
|
27068
|
-
return jsx(Tree$2, { height: 300, blockNode: !0, checkable: !0, checkStrictly: !0, checkedKeys: _, loadData: C, treeData: Pt({ treeNodes: c, checkedKeys: e, searchText: p }), onCheck: y({ checkedKeys: _, onItemSelect: O }), onSelect: y({ checkedKeys: _, onItemSelect: O }), titleRender: (
|
|
27068
|
+
return jsx(Tree$2, { height: 300, blockNode: !0, checkable: !0, checkStrictly: !0, checkedKeys: _, loadData: C, treeData: Pt({ treeNodes: c, checkedKeys: e, searchText: p }), onCheck: y({ checkedKeys: _, onItemSelect: O }), onSelect: y({ checkedKeys: _, onItemSelect: O }), titleRender: (A) => jsx(Xe, { node: A }) });
|
|
27069
27069
|
}
|
|
27070
27070
|
return jsx(Tree$2, { height: 300, blockNode: !0, checkable: !0, checkStrictly: !0, checkedKeys: w, onCheck: y({ checkedKeys: w, onItemSelect: O }), onSelect: y({ checkedKeys: w, onItemSelect: O }), treeData: Ie({ treeNodes: c, checkedKeys: e, searchText: g }), titleRender: (_) => jsx(Xe, { node: _ }) });
|
|
27071
27071
|
} });
|
|
@@ -27351,8 +27351,8 @@ const qt = (e) => {
|
|
|
27351
27351
|
a == null || a(v);
|
|
27352
27352
|
};
|
|
27353
27353
|
async function I() {
|
|
27354
|
-
const v = await getMimeType(o), O = `data:${v == null ? void 0 : v.mime};base64,${o}`, w = document.createElement("a"), _ = p(c),
|
|
27355
|
-
w.href = O, w.download = _ ||
|
|
27354
|
+
const v = await getMimeType(o), O = `data:${v == null ? void 0 : v.mime};base64,${o}`, w = document.createElement("a"), _ = p(c), A = p("name");
|
|
27355
|
+
w.href = O, w.download = _ || A, w.click();
|
|
27356
27356
|
}
|
|
27357
27357
|
async function C() {
|
|
27358
27358
|
const v = await getMimeType(o);
|
|
@@ -27843,18 +27843,18 @@ function FormActionBar({
|
|
|
27843
27843
|
attachments: O,
|
|
27844
27844
|
formRef: w,
|
|
27845
27845
|
setFormHasChanges: _,
|
|
27846
|
-
searchTreeRef:
|
|
27846
|
+
searchTreeRef: A,
|
|
27847
27847
|
previousView: N,
|
|
27848
27848
|
setPreviousView: E,
|
|
27849
27849
|
goToResourceId: P
|
|
27850
27850
|
} = useContext(ActionViewContext), {
|
|
27851
|
-
t:
|
|
27851
|
+
t: F,
|
|
27852
27852
|
lang: W
|
|
27853
27853
|
} = useContext(LocaleContext), J = useContext(ContentRootContext), {
|
|
27854
27854
|
processAction: z
|
|
27855
27855
|
} = J || {}, Y = useContext(TabManagerContext), {
|
|
27856
27856
|
openRelate: Q,
|
|
27857
|
-
openDefaultActionForModel:
|
|
27857
|
+
openDefaultActionForModel: oe
|
|
27858
27858
|
} = Y || {};
|
|
27859
27859
|
function ee(j) {
|
|
27860
27860
|
if (l) {
|
|
@@ -27888,7 +27888,7 @@ function FormActionBar({
|
|
|
27888
27888
|
}
|
|
27889
27889
|
function Ce() {
|
|
27890
27890
|
showDialog$9({
|
|
27891
|
-
confirmMessage:
|
|
27891
|
+
confirmMessage: F("confirmRemoveItem"),
|
|
27892
27892
|
lang: W,
|
|
27893
27893
|
onOk: () => {
|
|
27894
27894
|
ce();
|
|
@@ -27901,7 +27901,7 @@ function FormActionBar({
|
|
|
27901
27901
|
model: g,
|
|
27902
27902
|
ids: [u]
|
|
27903
27903
|
});
|
|
27904
|
-
const j = d == null ? void 0 : d.filter((
|
|
27904
|
+
const j = d == null ? void 0 : d.filter((re) => re.id !== u);
|
|
27905
27905
|
y == null || y(j);
|
|
27906
27906
|
let U = 0;
|
|
27907
27907
|
p > 0 && p <= d.length - 1 && (U = p - 1), j != null && j[U] ? (h == null || h(j == null ? void 0 : j[U].id), f == null || f(U)) : (h == null || h(void 0), f == null || f(void 0));
|
|
@@ -27946,33 +27946,33 @@ function FormActionBar({
|
|
|
27946
27946
|
disabled: c || v || I || C
|
|
27947
27947
|
}), /* @__PURE__ */ jsx(ActionButton, {
|
|
27948
27948
|
icon: /* @__PURE__ */ jsx(SaveOutlined, {}),
|
|
27949
|
-
tooltip:
|
|
27949
|
+
tooltip: F("save"),
|
|
27950
27950
|
disabled: !l || te,
|
|
27951
27951
|
loading: c,
|
|
27952
27952
|
onClick: s
|
|
27953
27953
|
}), /* @__PURE__ */ jsx(ActionButton, {
|
|
27954
27954
|
icon: /* @__PURE__ */ jsx(CopyOutlined$3, {}),
|
|
27955
|
-
tooltip:
|
|
27955
|
+
tooltip: F("duplicate"),
|
|
27956
27956
|
disabled: l || c || u === void 0 || C || v,
|
|
27957
27957
|
loading: C,
|
|
27958
27958
|
onClick: xe
|
|
27959
27959
|
}), /* @__PURE__ */ jsx(ActionButton, {
|
|
27960
27960
|
icon: /* @__PURE__ */ jsx(DeleteOutlined, {}),
|
|
27961
|
-
tooltip:
|
|
27961
|
+
tooltip: F("delete"),
|
|
27962
27962
|
disabled: c || u === void 0 || I || C || v,
|
|
27963
27963
|
loading: I,
|
|
27964
27964
|
onClick: Ce
|
|
27965
27965
|
}), separator$2(), /* @__PURE__ */ jsx(ActionButton, {
|
|
27966
27966
|
icon: /* @__PURE__ */ jsx(InfoCircleOutlined$3, {}),
|
|
27967
|
-
tooltip:
|
|
27967
|
+
tooltip: F("showLogs"),
|
|
27968
27968
|
disabled: c || u === void 0 || I || C || v,
|
|
27969
27969
|
loading: !1,
|
|
27970
27970
|
onClick: () => {
|
|
27971
|
-
showLogInfo(g, u,
|
|
27971
|
+
showLogInfo(g, u, F);
|
|
27972
27972
|
}
|
|
27973
27973
|
}), /* @__PURE__ */ jsx(ActionButton, {
|
|
27974
27974
|
icon: /* @__PURE__ */ jsx(ReloadOutlined, {}),
|
|
27975
|
-
tooltip:
|
|
27975
|
+
tooltip: F("refresh"),
|
|
27976
27976
|
disabled: c || u === void 0 || I || C || v,
|
|
27977
27977
|
loading: !1,
|
|
27978
27978
|
onClick: () => {
|
|
@@ -27992,7 +27992,7 @@ function FormActionBar({
|
|
|
27992
27992
|
}), separator$2(), /* @__PURE__ */ jsxs(Space, {
|
|
27993
27993
|
children: [/* @__PURE__ */ jsx(ActionButton, {
|
|
27994
27994
|
icon: /* @__PURE__ */ jsx(LeftOutlined, {}),
|
|
27995
|
-
tooltip:
|
|
27995
|
+
tooltip: F("previous"),
|
|
27996
27996
|
disabled: te,
|
|
27997
27997
|
loading: !1,
|
|
27998
27998
|
onClick: () => {
|
|
@@ -28000,7 +28000,7 @@ function FormActionBar({
|
|
|
28000
28000
|
}
|
|
28001
28001
|
}), /* @__PURE__ */ jsx(ActionButton, {
|
|
28002
28002
|
icon: /* @__PURE__ */ jsx(RightOutlined, {}),
|
|
28003
|
-
tooltip:
|
|
28003
|
+
tooltip: F("next"),
|
|
28004
28004
|
disabled: te,
|
|
28005
28005
|
loading: !1,
|
|
28006
28006
|
onClick: () => {
|
|
@@ -28010,7 +28010,7 @@ function FormActionBar({
|
|
|
28010
28010
|
}), separator$2(), /* @__PURE__ */ jsx(DropdownButton, {
|
|
28011
28011
|
icon: /* @__PURE__ */ jsx(ThunderboltOutlined, {}),
|
|
28012
28012
|
disabled: te,
|
|
28013
|
-
tooltip:
|
|
28013
|
+
tooltip: F("actions"),
|
|
28014
28014
|
items: e == null ? void 0 : e.action,
|
|
28015
28015
|
onItemClick: (j) => {
|
|
28016
28016
|
!j || de(j);
|
|
@@ -28018,7 +28018,7 @@ function FormActionBar({
|
|
|
28018
28018
|
}), /* @__PURE__ */ jsx(DropdownButton, {
|
|
28019
28019
|
icon: /* @__PURE__ */ jsx(PrinterOutlined, {}),
|
|
28020
28020
|
disabled: te,
|
|
28021
|
-
tooltip:
|
|
28021
|
+
tooltip: F("reports"),
|
|
28022
28022
|
items: e == null ? void 0 : e.print,
|
|
28023
28023
|
onItemClick: (j) => {
|
|
28024
28024
|
!j || de({
|
|
@@ -28032,7 +28032,7 @@ function FormActionBar({
|
|
|
28032
28032
|
}), /* @__PURE__ */ jsx(DropdownButton, {
|
|
28033
28033
|
icon: /* @__PURE__ */ jsx(EnterOutlined$3, {}),
|
|
28034
28034
|
disabled: te,
|
|
28035
|
-
tooltip:
|
|
28035
|
+
tooltip: F("related"),
|
|
28036
28036
|
items: e == null ? void 0 : e.relate,
|
|
28037
28037
|
onItemClick: async (j) => {
|
|
28038
28038
|
!j || Q({
|
|
@@ -28048,7 +28048,7 @@ function FormActionBar({
|
|
|
28048
28048
|
attachments: O,
|
|
28049
28049
|
onAddNewAttachment: () => {
|
|
28050
28050
|
const j = u, U = g;
|
|
28051
|
-
|
|
28051
|
+
oe({
|
|
28052
28052
|
model: "ir.attachment",
|
|
28053
28053
|
values: {
|
|
28054
28054
|
selection_associated_object: `${U},${j}`
|
|
@@ -28062,14 +28062,14 @@ function FormActionBar({
|
|
|
28062
28062
|
},
|
|
28063
28063
|
onListAllAttachments: () => {
|
|
28064
28064
|
const j = u;
|
|
28065
|
-
|
|
28065
|
+
oe({
|
|
28066
28066
|
model: "ir.attachment",
|
|
28067
28067
|
domain: [["res_model", "=", `${g}`], ["res_id", "=", `${j}`]],
|
|
28068
28068
|
initialViewType: "tree"
|
|
28069
28069
|
});
|
|
28070
28070
|
},
|
|
28071
28071
|
onViewAttachmentDetails: (j) => {
|
|
28072
|
-
|
|
28072
|
+
oe({
|
|
28073
28073
|
model: "ir.attachment",
|
|
28074
28074
|
res_id: j.id,
|
|
28075
28075
|
initialViewType: "form"
|
|
@@ -28429,11 +28429,11 @@ const GraphActionView = (e) => {
|
|
|
28429
28429
|
setSorter: O = void 0,
|
|
28430
28430
|
setTotalItems: w = void 0,
|
|
28431
28431
|
setSearchTreeNameSearch: _ = void 0,
|
|
28432
|
-
setTreeIsLoading:
|
|
28432
|
+
setTreeIsLoading: A = void 0,
|
|
28433
28433
|
limit: N,
|
|
28434
28434
|
setLimit: E,
|
|
28435
28435
|
searchParams: P,
|
|
28436
|
-
searchValues:
|
|
28436
|
+
searchValues: F,
|
|
28437
28437
|
setSearchValues: W,
|
|
28438
28438
|
currentView: J
|
|
28439
28439
|
} = f || {}, [z, Y] = useState(!0);
|
|
@@ -28445,7 +28445,7 @@ const GraphActionView = (e) => {
|
|
|
28445
28445
|
}, [J]);
|
|
28446
28446
|
const {
|
|
28447
28447
|
clear: Q,
|
|
28448
|
-
searchFilterLoading:
|
|
28448
|
+
searchFilterLoading: oe,
|
|
28449
28449
|
searchError: ee,
|
|
28450
28450
|
offset: X,
|
|
28451
28451
|
tableRefreshing: ue
|
|
@@ -28457,7 +28457,7 @@ const GraphActionView = (e) => {
|
|
|
28457
28457
|
setSearchValues: W,
|
|
28458
28458
|
setSearchParams: C,
|
|
28459
28459
|
setSearchVisible: y,
|
|
28460
|
-
setTreeIsLoading:
|
|
28460
|
+
setTreeIsLoading: A,
|
|
28461
28461
|
context: s,
|
|
28462
28462
|
formView: c,
|
|
28463
28463
|
treeView: u,
|
|
@@ -28489,13 +28489,13 @@ const GraphActionView = (e) => {
|
|
|
28489
28489
|
limit: N,
|
|
28490
28490
|
onClear: Q,
|
|
28491
28491
|
offset: X,
|
|
28492
|
-
isSearching:
|
|
28492
|
+
isSearching: oe,
|
|
28493
28493
|
onSubmit: (we) => {
|
|
28494
28494
|
Y(!1), C == null || C(we.params), y == null || y(!1);
|
|
28495
28495
|
},
|
|
28496
28496
|
searchError: ee,
|
|
28497
28497
|
searchVisible: b,
|
|
28498
|
-
searchValues:
|
|
28498
|
+
searchValues: F,
|
|
28499
28499
|
showLimitOptions: !1
|
|
28500
28500
|
}), ue ? /* @__PURE__ */ jsx(Spin, {}) : /* @__PURE__ */ jsx(Graph, {
|
|
28501
28501
|
ref: d,
|
|
@@ -28626,20 +28626,20 @@ function TreeActionBar(e) {
|
|
|
28626
28626
|
setPreviousView: O,
|
|
28627
28627
|
previousView: w,
|
|
28628
28628
|
results: _,
|
|
28629
|
-
limit:
|
|
28629
|
+
limit: A
|
|
28630
28630
|
} = useContext(ActionViewContext), {
|
|
28631
28631
|
parentContext: N = {},
|
|
28632
28632
|
treeExpandable: E,
|
|
28633
28633
|
toolbar: P
|
|
28634
28634
|
} = e, {
|
|
28635
|
-
t:
|
|
28635
|
+
t: F,
|
|
28636
28636
|
lang: W
|
|
28637
28637
|
} = useContext(LocaleContext), J = useContext(ContentRootContext), {
|
|
28638
28638
|
processAction: z
|
|
28639
|
-
} = J || {}, [Y, Q] = useState(!1),
|
|
28639
|
+
} = J || {}, [Y, Q] = useState(!1), oe = y !== void 0 && y.trim().length > 0;
|
|
28640
28640
|
function ee() {
|
|
28641
28641
|
showDialog$9({
|
|
28642
|
-
confirmMessage:
|
|
28642
|
+
confirmMessage: F("confirmRemove"),
|
|
28643
28643
|
lang: W,
|
|
28644
28644
|
onOk: () => {
|
|
28645
28645
|
X();
|
|
@@ -28709,13 +28709,13 @@ function TreeActionBar(e) {
|
|
|
28709
28709
|
disabled: v
|
|
28710
28710
|
}), separator$1(), /* @__PURE__ */ jsx(ActionButton, {
|
|
28711
28711
|
icon: /* @__PURE__ */ jsx(CopyOutlined$3, {}),
|
|
28712
|
-
tooltip:
|
|
28712
|
+
tooltip: F("duplicate"),
|
|
28713
28713
|
disabled: !s || (s == null ? void 0 : s.length) !== 1 || u || v,
|
|
28714
28714
|
loading: u,
|
|
28715
28715
|
onClick: ue
|
|
28716
28716
|
}), /* @__PURE__ */ jsx(ActionButton, {
|
|
28717
28717
|
icon: /* @__PURE__ */ jsx(DeleteOutlined, {}),
|
|
28718
|
-
tooltip:
|
|
28718
|
+
tooltip: F("delete"),
|
|
28719
28719
|
disabled: !(s && (s == null ? void 0 : s.length) > 0) || v,
|
|
28720
28720
|
loading: c,
|
|
28721
28721
|
onClick: ee
|
|
@@ -28726,7 +28726,7 @@ function TreeActionBar(e) {
|
|
|
28726
28726
|
color: I ? "white" : void 0
|
|
28727
28727
|
}
|
|
28728
28728
|
}),
|
|
28729
|
-
tooltip:
|
|
28729
|
+
tooltip: F("advanced_search"),
|
|
28730
28730
|
type: I ? "primary" : "default",
|
|
28731
28731
|
onClick: () => {
|
|
28732
28732
|
C == null || C(!I);
|
|
@@ -28735,15 +28735,15 @@ function TreeActionBar(e) {
|
|
|
28735
28735
|
badgeNumber: m == null ? void 0 : m.length
|
|
28736
28736
|
}), /* @__PURE__ */ jsx(ActionButton, {
|
|
28737
28737
|
icon: /* @__PURE__ */ jsx(InfoCircleOutlined$3, {}),
|
|
28738
|
-
tooltip:
|
|
28738
|
+
tooltip: F("showLogs"),
|
|
28739
28739
|
disabled: !(s && (s == null ? void 0 : s.length) > 0) || v,
|
|
28740
28740
|
loading: !1,
|
|
28741
28741
|
onClick: () => {
|
|
28742
|
-
showLogInfo(f, s[0].id,
|
|
28742
|
+
showLogInfo(f, s[0].id, F);
|
|
28743
28743
|
}
|
|
28744
28744
|
}), /* @__PURE__ */ jsx(ActionButton, {
|
|
28745
28745
|
icon: /* @__PURE__ */ jsx(ReloadOutlined, {}),
|
|
28746
|
-
tooltip:
|
|
28746
|
+
tooltip: F("refresh"),
|
|
28747
28747
|
disabled: u || c || v,
|
|
28748
28748
|
loading: !1,
|
|
28749
28749
|
onClick: () => {
|
|
@@ -28763,7 +28763,7 @@ function TreeActionBar(e) {
|
|
|
28763
28763
|
}), separator$1(), /* @__PURE__ */ jsx(DropdownButton, {
|
|
28764
28764
|
icon: /* @__PURE__ */ jsx(ThunderboltOutlined, {}),
|
|
28765
28765
|
disabled: !(s && (s == null ? void 0 : s.length) > 0) || v,
|
|
28766
|
-
tooltip:
|
|
28766
|
+
tooltip: F("actions"),
|
|
28767
28767
|
items: P == null ? void 0 : P.action,
|
|
28768
28768
|
onItemClick: (ce) => {
|
|
28769
28769
|
!ce || we(ce);
|
|
@@ -28771,7 +28771,7 @@ function TreeActionBar(e) {
|
|
|
28771
28771
|
}), /* @__PURE__ */ jsx(DropdownButton, {
|
|
28772
28772
|
icon: /* @__PURE__ */ jsx(PrinterOutlined, {}),
|
|
28773
28773
|
disabled: !(s && (s == null ? void 0 : s.length) > 0) || v,
|
|
28774
|
-
tooltip:
|
|
28774
|
+
tooltip: F("reports"),
|
|
28775
28775
|
items: P == null ? void 0 : P.print,
|
|
28776
28776
|
onItemClick: (ce) => {
|
|
28777
28777
|
!ce || we({
|
|
@@ -28811,13 +28811,13 @@ function TreeActionBar(e) {
|
|
|
28811
28811
|
})]
|
|
28812
28812
|
})
|
|
28813
28813
|
}),
|
|
28814
|
-
tooltip:
|
|
28814
|
+
tooltip: F("export"),
|
|
28815
28815
|
items: [{
|
|
28816
28816
|
id: "print_screen",
|
|
28817
|
-
name:
|
|
28817
|
+
name: F("printScreen")
|
|
28818
28818
|
}, {
|
|
28819
28819
|
id: "export",
|
|
28820
|
-
name:
|
|
28820
|
+
name: F("advancedExport")
|
|
28821
28821
|
}],
|
|
28822
28822
|
onItemClick: (ce) => {
|
|
28823
28823
|
if (ce.id === "print_screen") {
|
|
@@ -28836,14 +28836,14 @@ function TreeActionBar(e) {
|
|
|
28836
28836
|
}
|
|
28837
28837
|
Q(!0);
|
|
28838
28838
|
},
|
|
28839
|
-
disabled: u || c || v ||
|
|
28839
|
+
disabled: u || c || v || oe
|
|
28840
28840
|
}), /* @__PURE__ */ jsx(ExportModal, {
|
|
28841
28841
|
visible: Y,
|
|
28842
28842
|
locale: W,
|
|
28843
28843
|
onClose: () => Q(!1),
|
|
28844
28844
|
model: f,
|
|
28845
28845
|
domain: mergeParams(((Ce = p == null ? void 0 : p.current) == null ? void 0 : Ce.getDomain()) || [], m || []),
|
|
28846
|
-
limit:
|
|
28846
|
+
limit: A,
|
|
28847
28847
|
totalRegisters: (_ == null ? void 0 : _.length) || 0,
|
|
28848
28848
|
selectedRegistersToExport: s && s.length && s.length > 0 ? s.length : void 0,
|
|
28849
28849
|
context: N
|
|
@@ -28870,7 +28870,10 @@ const TreeActionView = (e) => {
|
|
|
28870
28870
|
setCurrentView: h,
|
|
28871
28871
|
availableViews: g,
|
|
28872
28872
|
searchTreeNameSearch: m
|
|
28873
|
-
} = e
|
|
28873
|
+
} = e, {
|
|
28874
|
+
currentView: I,
|
|
28875
|
+
setPreviousView: C
|
|
28876
|
+
} = useContext(ActionViewContext);
|
|
28874
28877
|
return r ? /* @__PURE__ */ jsxs(Fragment, {
|
|
28875
28878
|
children: [/* @__PURE__ */ jsx(TitleHeader, {
|
|
28876
28879
|
children: /* @__PURE__ */ jsx(TreeActionBar, {
|
|
@@ -28887,15 +28890,15 @@ const TreeActionView = (e) => {
|
|
|
28887
28890
|
formView: l,
|
|
28888
28891
|
treeView: c,
|
|
28889
28892
|
domain: u,
|
|
28890
|
-
onRowClicked: (
|
|
28893
|
+
onRowClicked: (b) => {
|
|
28891
28894
|
const {
|
|
28892
|
-
id:
|
|
28893
|
-
} =
|
|
28894
|
-
p(
|
|
28895
|
-
const
|
|
28896
|
-
d(
|
|
28897
|
-
const
|
|
28898
|
-
h(
|
|
28895
|
+
id: y
|
|
28896
|
+
} = b;
|
|
28897
|
+
p(y);
|
|
28898
|
+
const v = f.findIndex((w) => w.id === y);
|
|
28899
|
+
C == null || C(I), d(v);
|
|
28900
|
+
const O = g.find((w) => w.type === "form");
|
|
28901
|
+
h(O);
|
|
28899
28902
|
}
|
|
28900
28903
|
})]
|
|
28901
28904
|
}) : null;
|
|
@@ -29004,9 +29007,9 @@ function ActionView(e, r) {
|
|
|
29004
29007
|
action_type: I,
|
|
29005
29008
|
treeExpandable: C = !1,
|
|
29006
29009
|
limit: b
|
|
29007
|
-
} = e, [y, v] = useState(), [O, w] = useState([]), [_,
|
|
29010
|
+
} = e, [y, v] = useState(), [O, w] = useState([]), [_, A] = useState(!0), N = g || void 0, [E, P] = useState(N), [F, W] = useState([]), [J, z] = useState(), [Y, Q] = useState([]), [oe, ee] = useState(), [X, ue] = useState(0), [we, Ce] = useState(!1), [ce, xe] = useState(!1), [te, de] = useState(), {
|
|
29008
29011
|
t: j
|
|
29009
|
-
} = useContext(LocaleContext), U = useRef(),
|
|
29012
|
+
} = useContext(LocaleContext), U = useRef(), re = useRef(), Re = useContext(TabManagerContext), {
|
|
29010
29013
|
setCurrentView: Fe,
|
|
29011
29014
|
setCurrentId: L,
|
|
29012
29015
|
tabs: M,
|
|
@@ -29026,7 +29029,7 @@ function ActionView(e, r) {
|
|
|
29026
29029
|
canWeClose: yt
|
|
29027
29030
|
}));
|
|
29028
29031
|
const Ge = async () => {
|
|
29029
|
-
|
|
29032
|
+
A(!0);
|
|
29030
29033
|
const Ct = [];
|
|
29031
29034
|
for (const zt of l) {
|
|
29032
29035
|
const [Ut, Kt] = zt;
|
|
@@ -29092,7 +29095,7 @@ function ActionView(e, r) {
|
|
|
29092
29095
|
}
|
|
29093
29096
|
let Dt;
|
|
29094
29097
|
!f && Ct.find((zt) => zt.type === "tree") ? Dt = Ct.find((Ut) => Ut.type === "tree") : f ? Dt = Ct.find((Ut) => f.id ? Ut.type === f.type && Ut.view_id === f.id : Ut.type === f.type) : Dt = Ct.find((Ut) => Ut.type === "form"), Dt || showDialog$8(`Error determining the first view to show.
|
|
29095
|
-
Please, make sure the view ids on the fields_view_get responses are the same as the ones defined in the action`), je(Dt), w(Ct),
|
|
29098
|
+
Please, make sure the view ids on the fields_view_get responses are the same as the ones defined in the action`), je(Dt), w(Ct), A(!1);
|
|
29096
29099
|
};
|
|
29097
29100
|
u({
|
|
29098
29101
|
tabKey: d,
|
|
@@ -29174,7 +29177,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
|
|
|
29174
29177
|
domain: o,
|
|
29175
29178
|
formView: O.find((Dt) => Dt.type === "form"),
|
|
29176
29179
|
treeView: Ct,
|
|
29177
|
-
searchTreeRef:
|
|
29180
|
+
searchTreeRef: re,
|
|
29178
29181
|
searchTreeNameSearch: te,
|
|
29179
29182
|
availableViews: O,
|
|
29180
29183
|
results: Y,
|
|
@@ -29214,7 +29217,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
|
|
|
29214
29217
|
setCurrentView: je,
|
|
29215
29218
|
availableViews: O,
|
|
29216
29219
|
formRef: U,
|
|
29217
|
-
searchTreeRef:
|
|
29220
|
+
searchTreeRef: re,
|
|
29218
29221
|
onNewClicked: Vt,
|
|
29219
29222
|
currentId: E,
|
|
29220
29223
|
setCurrentId: tt,
|
|
@@ -29223,11 +29226,11 @@ Please, make sure the view ids on the fields_view_get responses are the same as
|
|
|
29223
29226
|
results: Y,
|
|
29224
29227
|
setResults: Q,
|
|
29225
29228
|
currentModel: a,
|
|
29226
|
-
sorter:
|
|
29229
|
+
sorter: oe,
|
|
29227
29230
|
setSorter: ee,
|
|
29228
29231
|
totalItems: X,
|
|
29229
29232
|
setTotalItems: ue,
|
|
29230
|
-
selectedRowItems:
|
|
29233
|
+
selectedRowItems: F,
|
|
29231
29234
|
setSelectedRowItems: W,
|
|
29232
29235
|
setSearchTreeNameSearch: de,
|
|
29233
29236
|
searchTreeNameSearch: te,
|
|
@@ -29432,8 +29435,8 @@ function DashboardTree(e) {
|
|
|
29432
29435
|
domain: l = [],
|
|
29433
29436
|
visible: c = !0,
|
|
29434
29437
|
parentContext: u = {}
|
|
29435
|
-
} = e, [d, f] = useState(!1), [p, h] = useState(!1), [g, m] = useState(), [I, C] = useState(), [b, y] = useState(), [v, O] = useState(1), [w, _] = useState(0),
|
|
29436
|
-
Ce(!0), O(L), _((L - 1) *
|
|
29438
|
+
} = e, [d, f] = useState(!1), [p, h] = useState(!1), [g, m] = useState(), [I, C] = useState(), [b, y] = useState(), [v, O] = useState(1), [w, _] = useState(0), A = useRef(DEFAULT_SEARCH_LIMIT), N = useRef([]), [E, P] = useState(0), [F, W] = useState([]), [J, z] = useState(void 0), [Y, Q] = useState(), [oe, ee] = useState(), [X, ue] = useState(), [we, Ce] = useState(!1), ce = useRef([]), xe = (L) => {
|
|
29439
|
+
Ce(!0), O(L), _((L - 1) * A.current);
|
|
29437
29440
|
}, te = async () => {
|
|
29438
29441
|
const L = ce.current.length > 0 ? ce.current : l, M = mergeParams(N.current, L), {
|
|
29439
29442
|
colors: Te
|
|
@@ -29443,7 +29446,7 @@ function DashboardTree(e) {
|
|
|
29443
29446
|
attrsEvaluated: je
|
|
29444
29447
|
} = await ConnectionProvider.getHandler().searchForTree({
|
|
29445
29448
|
params: M,
|
|
29446
|
-
limit:
|
|
29449
|
+
limit: A.current,
|
|
29447
29450
|
offset: w,
|
|
29448
29451
|
model: g,
|
|
29449
29452
|
fields: I.fields,
|
|
@@ -29477,7 +29480,7 @@ function DashboardTree(e) {
|
|
|
29477
29480
|
const j = async (L) => {
|
|
29478
29481
|
h(!1), f(!0), ue(void 0);
|
|
29479
29482
|
try {
|
|
29480
|
-
L === "action" ? await U() : await
|
|
29483
|
+
L === "action" ? await U() : await re(), h(!0);
|
|
29481
29484
|
} catch (M) {
|
|
29482
29485
|
ue(M);
|
|
29483
29486
|
} finally {
|
|
@@ -29488,8 +29491,8 @@ function DashboardTree(e) {
|
|
|
29488
29491
|
action: r,
|
|
29489
29492
|
context: u
|
|
29490
29493
|
});
|
|
29491
|
-
ce.current = L.domain, y(L.views.get("form")), C(L.views.get("tree")), m(L.model),
|
|
29492
|
-
},
|
|
29494
|
+
ce.current = L.domain, y(L.views.get("form")), C(L.views.get("tree")), m(L.model), A.current = L.limit;
|
|
29495
|
+
}, re = async () => {
|
|
29493
29496
|
m(o);
|
|
29494
29497
|
const L = await ConnectionProvider.getHandler().getView({
|
|
29495
29498
|
model: o,
|
|
@@ -29521,18 +29524,18 @@ function DashboardTree(e) {
|
|
|
29521
29524
|
style: {
|
|
29522
29525
|
overflowY: "scroll"
|
|
29523
29526
|
},
|
|
29524
|
-
children: [
|
|
29527
|
+
children: [oe && /* @__PURE__ */ jsx(Alert, {
|
|
29525
29528
|
className: "mt-10",
|
|
29526
|
-
message:
|
|
29529
|
+
message: oe,
|
|
29527
29530
|
type: "error",
|
|
29528
29531
|
banner: !0
|
|
29529
29532
|
}), /* @__PURE__ */ jsx(Tree, {
|
|
29530
29533
|
showPagination: !1,
|
|
29531
29534
|
total: E,
|
|
29532
|
-
limit:
|
|
29535
|
+
limit: A.current,
|
|
29533
29536
|
page: v,
|
|
29534
29537
|
treeView: I,
|
|
29535
|
-
results:
|
|
29538
|
+
results: F,
|
|
29536
29539
|
onRequestPageChange: xe,
|
|
29537
29540
|
loading: we,
|
|
29538
29541
|
onRowClicked: Re,
|
|
@@ -29541,7 +29544,7 @@ function DashboardTree(e) {
|
|
|
29541
29544
|
onChangeSort: (L) => {
|
|
29542
29545
|
Q == null || Q(L);
|
|
29543
29546
|
const M = sortResults({
|
|
29544
|
-
resultsToSort:
|
|
29547
|
+
resultsToSort: F,
|
|
29545
29548
|
sorter: L,
|
|
29546
29549
|
fields: {
|
|
29547
29550
|
...I.fields,
|
|
@@ -29613,11 +29616,11 @@ function Dashboard(e, r) {
|
|
|
29613
29616
|
async function y() {
|
|
29614
29617
|
f(!0), g(!0), h(void 0);
|
|
29615
29618
|
try {
|
|
29616
|
-
const E = await v(), P = await w(E),
|
|
29619
|
+
const E = await v(), P = await w(E), F = E.fields[itemsField].relation, W = P[itemsField].items;
|
|
29617
29620
|
b.current = E.fields;
|
|
29618
29621
|
const J = await O({
|
|
29619
29622
|
items: W,
|
|
29620
|
-
model:
|
|
29623
|
+
model: F,
|
|
29621
29624
|
context: a
|
|
29622
29625
|
}), z = await _(J);
|
|
29623
29626
|
u(z), f(!1), g(!1);
|
|
@@ -29635,18 +29638,18 @@ function Dashboard(e, r) {
|
|
|
29635
29638
|
async function O({
|
|
29636
29639
|
items: E,
|
|
29637
29640
|
model: P,
|
|
29638
|
-
context:
|
|
29641
|
+
context: F
|
|
29639
29642
|
}) {
|
|
29640
29643
|
return C.current = (await ConnectionProvider.getHandler().getView({
|
|
29641
29644
|
model: P,
|
|
29642
29645
|
type: "form",
|
|
29643
|
-
context:
|
|
29646
|
+
context: F
|
|
29644
29647
|
})).fields, await readObjectValues({
|
|
29645
29648
|
treeFields: C.current,
|
|
29646
29649
|
formFields: C.current,
|
|
29647
29650
|
model: P,
|
|
29648
29651
|
items: E,
|
|
29649
|
-
context:
|
|
29652
|
+
context: F
|
|
29650
29653
|
});
|
|
29651
29654
|
}
|
|
29652
29655
|
async function w(E) {
|
|
@@ -29659,28 +29662,28 @@ function Dashboard(e, r) {
|
|
|
29659
29662
|
}
|
|
29660
29663
|
async function _(E) {
|
|
29661
29664
|
const P = [];
|
|
29662
|
-
for (const
|
|
29665
|
+
for (const F of E) {
|
|
29663
29666
|
const {
|
|
29664
29667
|
values: W
|
|
29665
|
-
} =
|
|
29668
|
+
} = F;
|
|
29666
29669
|
if (W.action_id && W.action_id.length > 0) {
|
|
29667
29670
|
const J = parseInt(W.action_id[0], 10), z = await fetchAction({
|
|
29668
29671
|
actionId: J,
|
|
29669
29672
|
rootContext: a
|
|
29670
29673
|
});
|
|
29671
29674
|
P.push({
|
|
29672
|
-
...
|
|
29675
|
+
...F,
|
|
29673
29676
|
actionData: z
|
|
29674
29677
|
});
|
|
29675
29678
|
}
|
|
29676
29679
|
}
|
|
29677
29680
|
return P;
|
|
29678
29681
|
}
|
|
29679
|
-
async function
|
|
29682
|
+
async function A(E) {
|
|
29680
29683
|
if (!I)
|
|
29681
29684
|
return;
|
|
29682
29685
|
const P = E.filter((z) => {
|
|
29683
|
-
const Y = c.find((
|
|
29686
|
+
const Y = c.find((oe) => oe.id === z.id);
|
|
29684
29687
|
if (!Y)
|
|
29685
29688
|
return !1;
|
|
29686
29689
|
if (!Y.position)
|
|
@@ -29730,10 +29733,10 @@ function Dashboard(e, r) {
|
|
|
29730
29733
|
type: "error",
|
|
29731
29734
|
banner: !0
|
|
29732
29735
|
}) : d ? /* @__PURE__ */ jsx(LoadingOutlined$3, {}) : /* @__PURE__ */ jsx(DashboardGrid, {
|
|
29733
|
-
onPositionItemsChanged:
|
|
29736
|
+
onPositionItemsChanged: A,
|
|
29734
29737
|
children: c.map((E, P) => {
|
|
29735
29738
|
const {
|
|
29736
|
-
actionData:
|
|
29739
|
+
actionData: F,
|
|
29737
29740
|
values: W
|
|
29738
29741
|
} = E, {
|
|
29739
29742
|
position: J,
|
|
@@ -29741,7 +29744,7 @@ function Dashboard(e, r) {
|
|
|
29741
29744
|
} = W, {
|
|
29742
29745
|
actionId: Y,
|
|
29743
29746
|
actionType: Q,
|
|
29744
|
-
key:
|
|
29747
|
+
key: oe,
|
|
29745
29748
|
title: ee,
|
|
29746
29749
|
views: X,
|
|
29747
29750
|
model: ue,
|
|
@@ -29749,7 +29752,7 @@ function Dashboard(e, r) {
|
|
|
29749
29752
|
domain: Ce,
|
|
29750
29753
|
initialView: ce,
|
|
29751
29754
|
limit: xe
|
|
29752
|
-
} =
|
|
29755
|
+
} = F;
|
|
29753
29756
|
let te = {};
|
|
29754
29757
|
try {
|
|
29755
29758
|
te = JSON.parse(J.replace(/'/g, '"'));
|
|
@@ -29762,75 +29765,87 @@ function Dashboard(e, r) {
|
|
|
29762
29765
|
};
|
|
29763
29766
|
}
|
|
29764
29767
|
let de = null;
|
|
29765
|
-
(ce == null ? void 0 : ce.type) === "graph"
|
|
29766
|
-
|
|
29767
|
-
|
|
29768
|
-
|
|
29769
|
-
|
|
29770
|
-
|
|
29771
|
-
|
|
29772
|
-
|
|
29773
|
-
|
|
29774
|
-
|
|
29775
|
-
|
|
29776
|
-
|
|
29777
|
-
|
|
29778
|
-
|
|
29779
|
-
|
|
29780
|
-
|
|
29781
|
-
|
|
29782
|
-
|
|
29783
|
-
|
|
29784
|
-
const
|
|
29785
|
-
|
|
29786
|
-
|
|
29787
|
-
|
|
29788
|
-
|
|
29789
|
-
|
|
29790
|
-
|
|
29791
|
-
|
|
29792
|
-
|
|
29793
|
-
|
|
29794
|
-
|
|
29795
|
-
|
|
29796
|
-
|
|
29797
|
-
|
|
29798
|
-
|
|
29768
|
+
if ((ce == null ? void 0 : ce.type) === "graph")
|
|
29769
|
+
de = /* @__PURE__ */ jsx(Graph, {
|
|
29770
|
+
view_id: X.filter((re) => re[1] === "graph")[0][0],
|
|
29771
|
+
model: ue,
|
|
29772
|
+
context: we,
|
|
29773
|
+
domain: Ce,
|
|
29774
|
+
limit: xe
|
|
29775
|
+
});
|
|
29776
|
+
else if ((ce == null ? void 0 : ce.type) === "form")
|
|
29777
|
+
de = /* @__PURE__ */ jsx(DashboardForm, {
|
|
29778
|
+
model: ue,
|
|
29779
|
+
actionDomain: Ce
|
|
29780
|
+
});
|
|
29781
|
+
else if ((ce == null ? void 0 : ce.type) === "tree")
|
|
29782
|
+
de = /* @__PURE__ */ jsx(DashboardTree, {
|
|
29783
|
+
model: ue,
|
|
29784
|
+
domain: Ce,
|
|
29785
|
+
view_id: X.filter((re) => re[1] === "tree")[0][0],
|
|
29786
|
+
onRowClicked: (re) => {
|
|
29787
|
+
const Re = X.find((Fe) => {
|
|
29788
|
+
const [, L] = Fe;
|
|
29789
|
+
return L === "form";
|
|
29790
|
+
});
|
|
29791
|
+
if (Re) {
|
|
29792
|
+
const [Fe, L] = Re, {
|
|
29793
|
+
actionId: M,
|
|
29794
|
+
actionType: Te,
|
|
29795
|
+
title: Ne,
|
|
29796
|
+
model: tt
|
|
29797
|
+
} = F, je = {
|
|
29798
|
+
action_id: M,
|
|
29799
|
+
action_type: Te,
|
|
29800
|
+
name: Ne,
|
|
29801
|
+
res_id: re.id,
|
|
29802
|
+
res_model: tt,
|
|
29803
|
+
view_id: Fe,
|
|
29804
|
+
view_type: L
|
|
29805
|
+
};
|
|
29806
|
+
m(je);
|
|
29807
|
+
}
|
|
29799
29808
|
}
|
|
29800
|
-
}
|
|
29801
|
-
|
|
29802
|
-
|
|
29803
|
-
|
|
29804
|
-
|
|
29805
|
-
|
|
29806
|
-
|
|
29807
|
-
|
|
29808
|
-
|
|
29809
|
-
|
|
29810
|
-
|
|
29811
|
-
|
|
29812
|
-
|
|
29813
|
-
|
|
29814
|
-
|
|
29809
|
+
});
|
|
29810
|
+
else if (ce !== void 0) {
|
|
29811
|
+
const re = ce && Array.isArray(ce.id) ? {
|
|
29812
|
+
...ce,
|
|
29813
|
+
id: ce.id[0]
|
|
29814
|
+
} : ce;
|
|
29815
|
+
de = /* @__PURE__ */ jsx(ActionView$1, {
|
|
29816
|
+
action_id: Y,
|
|
29817
|
+
action_type: Q,
|
|
29818
|
+
tabKey: oe,
|
|
29819
|
+
title: ee,
|
|
29820
|
+
views: X,
|
|
29821
|
+
model: ue,
|
|
29822
|
+
context: we,
|
|
29823
|
+
domain: Ce,
|
|
29824
|
+
setCanWeClose: () => {
|
|
29825
|
+
},
|
|
29826
|
+
initialView: re,
|
|
29827
|
+
limit: xe
|
|
29828
|
+
});
|
|
29829
|
+
}
|
|
29815
29830
|
let j;
|
|
29816
|
-
const U = X.find((
|
|
29817
|
-
const [, Re] =
|
|
29831
|
+
const U = X.find((re) => {
|
|
29832
|
+
const [, Re] = re;
|
|
29818
29833
|
return Re === "tree";
|
|
29819
29834
|
});
|
|
29820
29835
|
if (U) {
|
|
29821
|
-
const [
|
|
29836
|
+
const [re, Re] = U, {
|
|
29822
29837
|
actionId: Fe,
|
|
29823
29838
|
actionType: L,
|
|
29824
29839
|
title: M,
|
|
29825
29840
|
model: Te
|
|
29826
|
-
} =
|
|
29841
|
+
} = F;
|
|
29827
29842
|
j = {
|
|
29828
29843
|
action_id: Fe,
|
|
29829
29844
|
action_type: L,
|
|
29830
29845
|
name: M,
|
|
29831
29846
|
res_id: !1,
|
|
29832
29847
|
res_model: Te,
|
|
29833
|
-
view_id:
|
|
29848
|
+
view_id: re,
|
|
29834
29849
|
view_type: Re
|
|
29835
29850
|
};
|
|
29836
29851
|
}
|
|
@@ -29895,7 +29910,7 @@ const Dashboard$1 = forwardRef(Dashboard), MultiCheckbox = (e) => {
|
|
|
29895
29910
|
E = [...E, ...P];
|
|
29896
29911
|
}
|
|
29897
29912
|
try {
|
|
29898
|
-
const
|
|
29913
|
+
const F = (await ConnectionProvider.getHandler().search({
|
|
29899
29914
|
model: g,
|
|
29900
29915
|
params: E,
|
|
29901
29916
|
fields: [C],
|
|
@@ -29911,7 +29926,7 @@ const Dashboard$1 = forwardRef(Dashboard), MultiCheckbox = (e) => {
|
|
|
29911
29926
|
value: W.id
|
|
29912
29927
|
};
|
|
29913
29928
|
});
|
|
29914
|
-
u(
|
|
29929
|
+
u(F);
|
|
29915
29930
|
} catch (P) {
|
|
29916
29931
|
f(P);
|
|
29917
29932
|
} finally {
|
|
@@ -29927,7 +29942,7 @@ const Dashboard$1 = forwardRef(Dashboard), MultiCheckbox = (e) => {
|
|
|
29927
29942
|
}
|
|
29928
29943
|
const _ = () => {
|
|
29929
29944
|
N(c.map((E) => E.value));
|
|
29930
|
-
},
|
|
29945
|
+
}, A = () => {
|
|
29931
29946
|
N([]);
|
|
29932
29947
|
}, N = (E) => {
|
|
29933
29948
|
const P = s.map((W) => E.includes(W.id) ? W.operation == "pendingRemove" ? {
|
|
@@ -29936,8 +29951,8 @@ const Dashboard$1 = forwardRef(Dashboard), MultiCheckbox = (e) => {
|
|
|
29936
29951
|
} : W : {
|
|
29937
29952
|
id: W.id,
|
|
29938
29953
|
operation: "pendingRemove"
|
|
29939
|
-
}),
|
|
29940
|
-
E.filter((W) => !
|
|
29954
|
+
}), F = P.map((W) => W.id);
|
|
29955
|
+
E.filter((W) => !F.includes(W)).map((W) => {
|
|
29941
29956
|
P.push({
|
|
29942
29957
|
id: W,
|
|
29943
29958
|
operation: "pendingLink"
|
|
@@ -29969,7 +29984,7 @@ const Dashboard$1 = forwardRef(Dashboard), MultiCheckbox = (e) => {
|
|
|
29969
29984
|
disabled: l.length == c.length,
|
|
29970
29985
|
children: "Check all"
|
|
29971
29986
|
}), /* @__PURE__ */ jsx(Button$1, {
|
|
29972
|
-
onClick:
|
|
29987
|
+
onClick: A,
|
|
29973
29988
|
disabled: l.length === 0,
|
|
29974
29989
|
children: "Uncheck all"
|
|
29975
29990
|
})]
|
|
@@ -30130,7 +30145,7 @@ function RootView(e, r) {
|
|
|
30130
30145
|
}));
|
|
30131
30146
|
function g(w) {
|
|
30132
30147
|
if (w === c) {
|
|
30133
|
-
const _ = d.findIndex((
|
|
30148
|
+
const _ = d.findIndex((A) => A.key === w);
|
|
30134
30149
|
d[_ - 1] && u(d[_ - 1].key), d[_ + 1] && u(d[_ + 1].key);
|
|
30135
30150
|
}
|
|
30136
30151
|
f(d.filter((_) => _.key !== w)), p.current.delete(w);
|
|
@@ -30144,38 +30159,38 @@ function RootView(e, r) {
|
|
|
30144
30159
|
async function I({
|
|
30145
30160
|
action: w,
|
|
30146
30161
|
values: _,
|
|
30147
|
-
forced_values:
|
|
30162
|
+
forced_values: A,
|
|
30148
30163
|
initialViewType: N,
|
|
30149
30164
|
res_id: E,
|
|
30150
30165
|
domain: P = []
|
|
30151
30166
|
}) {
|
|
30152
|
-
const
|
|
30167
|
+
const F = await ConnectionProvider.getHandler().getActionData({
|
|
30153
30168
|
action: w,
|
|
30154
30169
|
context: s
|
|
30155
30170
|
});
|
|
30156
|
-
if (
|
|
30171
|
+
if (F.type === "ir.actions.wizard") {
|
|
30157
30172
|
showDialog$8("Action type not supported");
|
|
30158
30173
|
return;
|
|
30159
30174
|
}
|
|
30160
30175
|
const [W, J] = w.split(","), z = parseInt(J), Y = parseContext({
|
|
30161
|
-
context:
|
|
30176
|
+
context: F.context,
|
|
30162
30177
|
values: a,
|
|
30163
30178
|
fields: {}
|
|
30164
|
-
}), Q =
|
|
30165
|
-
domain:
|
|
30179
|
+
}), Q = F.domain ? await ConnectionProvider.getHandler().evalDomain({
|
|
30180
|
+
domain: F.domain,
|
|
30166
30181
|
values: a,
|
|
30167
30182
|
context: {
|
|
30168
30183
|
...s,
|
|
30169
30184
|
...Y
|
|
30170
30185
|
}
|
|
30171
30186
|
}) : [], {
|
|
30172
|
-
res_model:
|
|
30187
|
+
res_model: oe,
|
|
30173
30188
|
views: ee,
|
|
30174
30189
|
name: X,
|
|
30175
30190
|
target: ue,
|
|
30176
30191
|
view_type: we,
|
|
30177
30192
|
limit: Ce
|
|
30178
|
-
} =
|
|
30193
|
+
} = F, ce = we === "tree", xe = [];
|
|
30179
30194
|
for (const de of ee) {
|
|
30180
30195
|
const [j, U] = de;
|
|
30181
30196
|
if (j)
|
|
@@ -30184,9 +30199,9 @@ function RootView(e, r) {
|
|
|
30184
30199
|
xe.push([void 0, "dashboard"]);
|
|
30185
30200
|
else {
|
|
30186
30201
|
const {
|
|
30187
|
-
view_id:
|
|
30202
|
+
view_id: re
|
|
30188
30203
|
} = await ConnectionProvider.getHandler().getView({
|
|
30189
|
-
model:
|
|
30204
|
+
model: oe,
|
|
30190
30205
|
type: U,
|
|
30191
30206
|
id: j,
|
|
30192
30207
|
context: {
|
|
@@ -30194,12 +30209,12 @@ function RootView(e, r) {
|
|
|
30194
30209
|
...Y
|
|
30195
30210
|
}
|
|
30196
30211
|
});
|
|
30197
|
-
xe.push([
|
|
30212
|
+
xe.push([re, U]);
|
|
30198
30213
|
}
|
|
30199
30214
|
}
|
|
30200
30215
|
let te;
|
|
30201
30216
|
if (N) {
|
|
30202
|
-
const [de, j] = xe.find(([U,
|
|
30217
|
+
const [de, j] = xe.find(([U, re]) => re === N);
|
|
30203
30218
|
te = {
|
|
30204
30219
|
id: de,
|
|
30205
30220
|
type: j
|
|
@@ -30217,7 +30232,7 @@ function RootView(e, r) {
|
|
|
30217
30232
|
...s,
|
|
30218
30233
|
...Y
|
|
30219
30234
|
},
|
|
30220
|
-
model:
|
|
30235
|
+
model: oe,
|
|
30221
30236
|
views: xe,
|
|
30222
30237
|
title: X,
|
|
30223
30238
|
target: ue,
|
|
@@ -30225,7 +30240,7 @@ function RootView(e, r) {
|
|
|
30225
30240
|
action_type: W,
|
|
30226
30241
|
action_id: z,
|
|
30227
30242
|
values: _,
|
|
30228
|
-
forced_values:
|
|
30243
|
+
forced_values: A,
|
|
30229
30244
|
res_id: E,
|
|
30230
30245
|
treeExpandable: ce,
|
|
30231
30246
|
limit: Ce
|
|
@@ -30234,40 +30249,40 @@ function RootView(e, r) {
|
|
|
30234
30249
|
function C({
|
|
30235
30250
|
title: w,
|
|
30236
30251
|
content: _,
|
|
30237
|
-
key:
|
|
30252
|
+
key: A,
|
|
30238
30253
|
action: N
|
|
30239
30254
|
}) {
|
|
30240
30255
|
let E = [...d];
|
|
30241
30256
|
d.length === 1 && d[0].key === "welcome" && (E = [...d.filter((P) => P.key !== "welcome")]), f([...E, {
|
|
30242
30257
|
title: w,
|
|
30243
|
-
key:
|
|
30258
|
+
key: A,
|
|
30244
30259
|
closable: !0,
|
|
30245
30260
|
content: _,
|
|
30246
30261
|
action: N
|
|
30247
|
-
}]), u(
|
|
30262
|
+
}]), u(A);
|
|
30248
30263
|
}
|
|
30249
30264
|
async function b({
|
|
30250
30265
|
relateData: w,
|
|
30251
30266
|
fields: _,
|
|
30252
|
-
values:
|
|
30267
|
+
values: A,
|
|
30253
30268
|
action_id: N,
|
|
30254
30269
|
action_type: E
|
|
30255
30270
|
}) {
|
|
30256
30271
|
const {
|
|
30257
30272
|
res_model: P,
|
|
30258
|
-
context:
|
|
30273
|
+
context: F,
|
|
30259
30274
|
domain: W,
|
|
30260
30275
|
views: J,
|
|
30261
30276
|
target: z,
|
|
30262
30277
|
string: Y,
|
|
30263
30278
|
limit: Q
|
|
30264
|
-
} = w, [
|
|
30265
|
-
id:
|
|
30279
|
+
} = w, [oe, ee] = J[0], X = {
|
|
30280
|
+
id: oe,
|
|
30266
30281
|
type: ee
|
|
30267
30282
|
}, ue = parseContext({
|
|
30268
|
-
context:
|
|
30283
|
+
context: F,
|
|
30269
30284
|
values: {
|
|
30270
|
-
...
|
|
30285
|
+
...A,
|
|
30271
30286
|
...a
|
|
30272
30287
|
},
|
|
30273
30288
|
fields: _
|
|
@@ -30276,7 +30291,7 @@ function RootView(e, r) {
|
|
|
30276
30291
|
values: transformPlainMany2Ones({
|
|
30277
30292
|
fields: _,
|
|
30278
30293
|
values: {
|
|
30279
|
-
...
|
|
30294
|
+
...A,
|
|
30280
30295
|
...a
|
|
30281
30296
|
}
|
|
30282
30297
|
}),
|
|
@@ -30304,18 +30319,18 @@ function RootView(e, r) {
|
|
|
30304
30319
|
async function y(w) {
|
|
30305
30320
|
const {
|
|
30306
30321
|
action_id: _,
|
|
30307
|
-
action_type:
|
|
30322
|
+
action_type: A,
|
|
30308
30323
|
res_id: N,
|
|
30309
30324
|
view_id: E
|
|
30310
|
-
} = w, P = `${
|
|
30325
|
+
} = w, P = `${A},${_}`, F = await ConnectionProvider.getHandler().getActionData({
|
|
30311
30326
|
action: P,
|
|
30312
30327
|
context: s
|
|
30313
30328
|
}), W = parseContext({
|
|
30314
|
-
context:
|
|
30329
|
+
context: F.context,
|
|
30315
30330
|
values: a,
|
|
30316
30331
|
fields: {}
|
|
30317
|
-
}), J =
|
|
30318
|
-
domain:
|
|
30332
|
+
}), J = F.domain ? await ConnectionProvider.getHandler().evalDomain({
|
|
30333
|
+
domain: F.domain,
|
|
30319
30334
|
values: a,
|
|
30320
30335
|
context: {
|
|
30321
30336
|
...s,
|
|
@@ -30325,10 +30340,10 @@ function RootView(e, r) {
|
|
|
30325
30340
|
res_model: z,
|
|
30326
30341
|
views: Y,
|
|
30327
30342
|
name: Q,
|
|
30328
|
-
target:
|
|
30343
|
+
target: oe,
|
|
30329
30344
|
view_type: ee,
|
|
30330
30345
|
limit: X
|
|
30331
|
-
} =
|
|
30346
|
+
} = F, ue = ee === "tree", we = [];
|
|
30332
30347
|
for (const te of Y) {
|
|
30333
30348
|
const [de, j] = te;
|
|
30334
30349
|
if (de)
|
|
@@ -30369,10 +30384,10 @@ function RootView(e, r) {
|
|
|
30369
30384
|
model: z,
|
|
30370
30385
|
views: we,
|
|
30371
30386
|
title: Q,
|
|
30372
|
-
target:
|
|
30387
|
+
target: oe,
|
|
30373
30388
|
initialView: xe,
|
|
30374
30389
|
action_id: _,
|
|
30375
|
-
action_type:
|
|
30390
|
+
action_type: A,
|
|
30376
30391
|
res_id: N,
|
|
30377
30392
|
treeExpandable: ue,
|
|
30378
30393
|
limit: X
|
|
@@ -30381,16 +30396,16 @@ function RootView(e, r) {
|
|
|
30381
30396
|
async function v({
|
|
30382
30397
|
model: w,
|
|
30383
30398
|
values: _,
|
|
30384
|
-
forced_values:
|
|
30399
|
+
forced_values: A,
|
|
30385
30400
|
initialViewType: N,
|
|
30386
30401
|
res_id: E,
|
|
30387
30402
|
domain: P
|
|
30388
30403
|
}) {
|
|
30389
|
-
const
|
|
30404
|
+
const F = await ConnectionProvider.getHandler().getActionStringForModel(w);
|
|
30390
30405
|
await I({
|
|
30391
|
-
action:
|
|
30406
|
+
action: F,
|
|
30392
30407
|
values: _,
|
|
30393
|
-
forced_values:
|
|
30408
|
+
forced_values: A,
|
|
30394
30409
|
initialViewType: N,
|
|
30395
30410
|
res_id: E,
|
|
30396
30411
|
domain: P
|
|
@@ -30399,25 +30414,25 @@ function RootView(e, r) {
|
|
|
30399
30414
|
async function O({
|
|
30400
30415
|
domain: w,
|
|
30401
30416
|
context: _,
|
|
30402
|
-
model:
|
|
30417
|
+
model: A,
|
|
30403
30418
|
views: N,
|
|
30404
30419
|
title: E,
|
|
30405
30420
|
target: P,
|
|
30406
|
-
initialView:
|
|
30421
|
+
initialView: F,
|
|
30407
30422
|
action_id: W,
|
|
30408
30423
|
action_type: J,
|
|
30409
30424
|
res_id: z,
|
|
30410
30425
|
values: Y,
|
|
30411
30426
|
forced_values: Q,
|
|
30412
|
-
treeExpandable:
|
|
30427
|
+
treeExpandable: oe = !1,
|
|
30413
30428
|
limit: ee
|
|
30414
30429
|
}) {
|
|
30415
30430
|
const X = v4();
|
|
30416
30431
|
if (P !== "current") {
|
|
30417
30432
|
const ue = await ConnectionProvider.getHandler().getView({
|
|
30418
|
-
model:
|
|
30433
|
+
model: A,
|
|
30419
30434
|
type: "form",
|
|
30420
|
-
id:
|
|
30435
|
+
id: F.type === "form" ? F.id : void 0,
|
|
30421
30436
|
context: {
|
|
30422
30437
|
...s,
|
|
30423
30438
|
..._
|
|
@@ -30425,7 +30440,7 @@ function RootView(e, r) {
|
|
|
30425
30440
|
});
|
|
30426
30441
|
h.current.openActionModal({
|
|
30427
30442
|
domain: w,
|
|
30428
|
-
model:
|
|
30443
|
+
model: A,
|
|
30429
30444
|
formView: ue,
|
|
30430
30445
|
context: {
|
|
30431
30446
|
...s,
|
|
@@ -30438,7 +30453,11 @@ function RootView(e, r) {
|
|
|
30438
30453
|
view_id: ue.view_id
|
|
30439
30454
|
}
|
|
30440
30455
|
});
|
|
30441
|
-
} else
|
|
30456
|
+
} else {
|
|
30457
|
+
const ue = F && Array.isArray(F.id) ? {
|
|
30458
|
+
...F,
|
|
30459
|
+
id: F.id[0]
|
|
30460
|
+
} : F;
|
|
30442
30461
|
C({
|
|
30443
30462
|
title: E,
|
|
30444
30463
|
action: {
|
|
@@ -30451,22 +30470,23 @@ function RootView(e, r) {
|
|
|
30451
30470
|
tabKey: X,
|
|
30452
30471
|
title: E,
|
|
30453
30472
|
views: N,
|
|
30454
|
-
model:
|
|
30473
|
+
model: A,
|
|
30455
30474
|
context: {
|
|
30456
30475
|
...s,
|
|
30457
30476
|
..._
|
|
30458
30477
|
},
|
|
30459
30478
|
domain: w,
|
|
30460
30479
|
setCanWeClose: m,
|
|
30461
|
-
initialView:
|
|
30480
|
+
initialView: ue,
|
|
30462
30481
|
res_id: z,
|
|
30463
30482
|
formDefaultValues: Y,
|
|
30464
30483
|
formForcedValues: Q,
|
|
30465
|
-
treeExpandable:
|
|
30484
|
+
treeExpandable: oe,
|
|
30466
30485
|
limit: ee
|
|
30467
30486
|
}),
|
|
30468
30487
|
key: X
|
|
30469
30488
|
});
|
|
30489
|
+
}
|
|
30470
30490
|
}
|
|
30471
30491
|
return /* @__PURE__ */ jsx(LocaleContextProvider, {
|
|
30472
30492
|
lang: l,
|
|
@@ -30609,12 +30629,12 @@ const FavouriteButton = (e) => {
|
|
|
30609
30629
|
activeKey: O,
|
|
30610
30630
|
currentView: w,
|
|
30611
30631
|
currentId: _,
|
|
30612
|
-
openDefaultActionForModel:
|
|
30632
|
+
openDefaultActionForModel: A
|
|
30613
30633
|
} = b || {};
|
|
30614
30634
|
useEffect(() => {
|
|
30615
30635
|
N();
|
|
30616
30636
|
}, []), useEffect(() => {
|
|
30617
|
-
|
|
30637
|
+
F();
|
|
30618
30638
|
}, [v, O, w, _]);
|
|
30619
30639
|
async function N() {
|
|
30620
30640
|
try {
|
|
@@ -30629,21 +30649,21 @@ const FavouriteButton = (e) => {
|
|
|
30629
30649
|
}
|
|
30630
30650
|
function E(Q) {
|
|
30631
30651
|
const {
|
|
30632
|
-
key:
|
|
30633
|
-
} = Q, ee = f.find((X) => X.id === Number(
|
|
30652
|
+
key: oe
|
|
30653
|
+
} = Q, ee = f.find((X) => X.id === Number(oe));
|
|
30634
30654
|
(ee == null ? void 0 : ee.action_type) !== "ir.actions.wizard" && (ee && y(ee), d(!1));
|
|
30635
30655
|
}
|
|
30636
30656
|
function P(Q) {
|
|
30637
30657
|
Q && N(), d(Q);
|
|
30638
30658
|
}
|
|
30639
|
-
async function
|
|
30659
|
+
async function F() {
|
|
30640
30660
|
if (!w)
|
|
30641
30661
|
return;
|
|
30642
30662
|
const Q = v.find((Ce) => Ce.key === O), {
|
|
30643
|
-
id:
|
|
30663
|
+
id: oe,
|
|
30644
30664
|
type: ee
|
|
30645
30665
|
} = (Q == null ? void 0 : Q.action) || {};
|
|
30646
|
-
if (!
|
|
30666
|
+
if (!oe || !ee) {
|
|
30647
30667
|
c(!1);
|
|
30648
30668
|
return;
|
|
30649
30669
|
}
|
|
@@ -30651,7 +30671,7 @@ const FavouriteButton = (e) => {
|
|
|
30651
30671
|
let ue = !1;
|
|
30652
30672
|
w.type === "form" && (ue = _ || !1);
|
|
30653
30673
|
const we = await o({
|
|
30654
|
-
action_id:
|
|
30674
|
+
action_id: oe,
|
|
30655
30675
|
action_type: ee,
|
|
30656
30676
|
view_id: X,
|
|
30657
30677
|
res_id: ue
|
|
@@ -30659,7 +30679,7 @@ const FavouriteButton = (e) => {
|
|
|
30659
30679
|
we !== !1 && I(we), c(we !== !1);
|
|
30660
30680
|
}
|
|
30661
30681
|
async function W() {
|
|
30662
|
-
d(!1),
|
|
30682
|
+
d(!1), A == null || A({
|
|
30663
30683
|
model: "ir.ui.view_sc"
|
|
30664
30684
|
});
|
|
30665
30685
|
}
|
|
@@ -30715,7 +30735,7 @@ const FavouriteButton = (e) => {
|
|
|
30715
30735
|
});
|
|
30716
30736
|
function z({
|
|
30717
30737
|
title: Q,
|
|
30718
|
-
type:
|
|
30738
|
+
type: oe
|
|
30719
30739
|
}) {
|
|
30720
30740
|
return /* @__PURE__ */ jsxs(Row, {
|
|
30721
30741
|
wrap: !1,
|
|
@@ -30724,7 +30744,7 @@ const FavouriteButton = (e) => {
|
|
|
30724
30744
|
style: {
|
|
30725
30745
|
paddingRight: 20
|
|
30726
30746
|
},
|
|
30727
|
-
children:
|
|
30747
|
+
children: oe === "tree" ? /* @__PURE__ */ jsx(TableOutlined, {}) : /* @__PURE__ */ jsx(FormOutlined, {})
|
|
30728
30748
|
}), /* @__PURE__ */ jsx(Col, {
|
|
30729
30749
|
flex: "auto",
|
|
30730
30750
|
children: Q
|
|
@@ -30738,16 +30758,16 @@ const FavouriteButton = (e) => {
|
|
|
30738
30758
|
if (!w)
|
|
30739
30759
|
return;
|
|
30740
30760
|
const Q = v.find((we) => we.key === O), {
|
|
30741
|
-
id:
|
|
30761
|
+
id: oe,
|
|
30742
30762
|
type: ee
|
|
30743
30763
|
} = (Q == null ? void 0 : Q.action) || {}, X = w.view_id;
|
|
30744
30764
|
let ue = !1;
|
|
30745
|
-
if (!
|
|
30765
|
+
if (!oe || !ee) {
|
|
30746
30766
|
c(!1);
|
|
30747
30767
|
return;
|
|
30748
30768
|
}
|
|
30749
30769
|
w.type === "form" && (ue = _ || !1), await a({
|
|
30750
|
-
action_id:
|
|
30770
|
+
action_id: oe,
|
|
30751
30771
|
action_type: ee,
|
|
30752
30772
|
view_id: X,
|
|
30753
30773
|
res_id: ue
|