@gisce/react-ooui 1.1.15-rc.1 → 1.1.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/context/ContentRootContext.d.ts.map +1 -1
- package/dist/react-ooui.es.js +704 -698
- package/dist/react-ooui.es.js.map +1 -1
- package/dist/react-ooui.umd.js +15 -15
- package/dist/react-ooui.umd.js.map +1 -1
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/views/RootView.d.ts.map +1 -1
- package/dist/widgets/base/many2one/Many2one.d.ts.map +1 -1
- package/dist/widgets/base/one2many/One2manyInput.d.ts.map +1 -1
- package/dist/widgets/custom/MultiCheckbox.d.ts.map +1 -1
- package/dist/widgets/custom/Tags.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/context/ContentRootContext.tsx +1 -0
- package/src/types/index.ts +1 -0
- package/src/views/RootView.tsx +5 -3
- package/src/widgets/base/many2one/Many2one.tsx +7 -8
- package/src/widgets/base/one2many/One2manyInput.tsx +1 -0
- package/src/widgets/custom/MultiCheckbox.tsx +1 -0
- package/src/widgets/custom/Tags.tsx +27 -28
package/dist/react-ooui.es.js
CHANGED
|
@@ -4049,12 +4049,12 @@ const {
|
|
|
4049
4049
|
}
|
|
4050
4050
|
v();
|
|
4051
4051
|
}
|
|
4052
|
-
function
|
|
4052
|
+
function g() {
|
|
4053
4053
|
if (p)
|
|
4054
4054
|
return /* @__PURE__ */ jsx(LoadingOutlined$3, {});
|
|
4055
4055
|
if (c) {
|
|
4056
|
-
const
|
|
4057
|
-
return
|
|
4056
|
+
const I = iconMapper(c);
|
|
4057
|
+
return I && /* @__PURE__ */ jsx(I, {});
|
|
4058
4058
|
}
|
|
4059
4059
|
}
|
|
4060
4060
|
return /* @__PURE__ */ jsx(Field$1, {
|
|
@@ -4063,7 +4063,7 @@ const {
|
|
|
4063
4063
|
block: !0,
|
|
4064
4064
|
disabled: !o || u,
|
|
4065
4065
|
onClick: x,
|
|
4066
|
-
icon:
|
|
4066
|
+
icon: g(),
|
|
4067
4067
|
type: t.primary ? "primary" : "default",
|
|
4068
4068
|
danger: t.danger,
|
|
4069
4069
|
style: {
|
|
@@ -4092,8 +4092,8 @@ const {
|
|
|
4092
4092
|
readOnly: h
|
|
4093
4093
|
} = n || {}, m = useContext(FormContext$1), {
|
|
4094
4094
|
executeButtonAction: v
|
|
4095
|
-
} = m || {}, [x,
|
|
4096
|
-
lang:
|
|
4095
|
+
} = m || {}, [x, g] = useState(!1), {
|
|
4096
|
+
lang: I
|
|
4097
4097
|
} = useContext(LocaleContext);
|
|
4098
4098
|
function C() {
|
|
4099
4099
|
if (x)
|
|
@@ -4104,17 +4104,17 @@ const {
|
|
|
4104
4104
|
}
|
|
4105
4105
|
}
|
|
4106
4106
|
async function y() {
|
|
4107
|
-
c && o && (
|
|
4107
|
+
c && o && (g(!0), await v({
|
|
4108
4108
|
type: c,
|
|
4109
4109
|
action: o,
|
|
4110
4110
|
context: p
|
|
4111
|
-
}),
|
|
4111
|
+
}), g(!1));
|
|
4112
4112
|
}
|
|
4113
4113
|
function O() {
|
|
4114
4114
|
if (l) {
|
|
4115
4115
|
showDialog$9({
|
|
4116
4116
|
confirmMessage: l,
|
|
4117
|
-
lang:
|
|
4117
|
+
lang: I,
|
|
4118
4118
|
onOk: () => {
|
|
4119
4119
|
y();
|
|
4120
4120
|
}
|
|
@@ -4155,9 +4155,9 @@ const {
|
|
|
4155
4155
|
} = r, h = useContext(FormContext$1), {
|
|
4156
4156
|
executeButtonAction: m
|
|
4157
4157
|
} = h || {}, [v, x] = useState(!1), {
|
|
4158
|
-
lang:
|
|
4158
|
+
lang: g
|
|
4159
4159
|
} = useContext(LocaleContext);
|
|
4160
|
-
async function
|
|
4160
|
+
async function I() {
|
|
4161
4161
|
x(!0), await m({
|
|
4162
4162
|
type: c,
|
|
4163
4163
|
action: o,
|
|
@@ -4168,14 +4168,14 @@ const {
|
|
|
4168
4168
|
if (l) {
|
|
4169
4169
|
showDialog$9({
|
|
4170
4170
|
confirmMessage: l,
|
|
4171
|
-
lang:
|
|
4171
|
+
lang: g,
|
|
4172
4172
|
onOk: () => {
|
|
4173
|
-
|
|
4173
|
+
I();
|
|
4174
4174
|
}
|
|
4175
4175
|
});
|
|
4176
4176
|
return;
|
|
4177
4177
|
}
|
|
4178
|
-
|
|
4178
|
+
I();
|
|
4179
4179
|
}
|
|
4180
4180
|
function y() {
|
|
4181
4181
|
if (v)
|
|
@@ -4590,7 +4590,7 @@ function requireReactIs_production_min() {
|
|
|
4590
4590
|
if (hasRequiredReactIs_production_min)
|
|
4591
4591
|
return reactIs_production_min;
|
|
4592
4592
|
hasRequiredReactIs_production_min = 1;
|
|
4593
|
-
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, c = e ? Symbol.for("react.context") : 60110, l = e ? Symbol.for("react.async_mode") : 60111, u = e ? Symbol.for("react.concurrent_mode") : 60111, d = e ? Symbol.for("react.forward_ref") : 60112, f = e ? Symbol.for("react.suspense") : 60113, p = e ? Symbol.for("react.suspense_list") : 60120, h = e ? Symbol.for("react.memo") : 60115, m = e ? Symbol.for("react.lazy") : 60116, v = e ? Symbol.for("react.block") : 60121, x = e ? Symbol.for("react.fundamental") : 60117,
|
|
4593
|
+
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, c = e ? Symbol.for("react.context") : 60110, l = e ? Symbol.for("react.async_mode") : 60111, u = e ? Symbol.for("react.concurrent_mode") : 60111, d = e ? Symbol.for("react.forward_ref") : 60112, f = e ? Symbol.for("react.suspense") : 60113, p = e ? Symbol.for("react.suspense_list") : 60120, h = e ? Symbol.for("react.memo") : 60115, m = e ? Symbol.for("react.lazy") : 60116, v = e ? Symbol.for("react.block") : 60121, x = e ? Symbol.for("react.fundamental") : 60117, g = e ? Symbol.for("react.responder") : 60118, I = e ? Symbol.for("react.scope") : 60119;
|
|
4594
4594
|
function C(O) {
|
|
4595
4595
|
if (typeof O == "object" && O !== null) {
|
|
4596
4596
|
var b = O.$$typeof;
|
|
@@ -4649,7 +4649,7 @@ function requireReactIs_production_min() {
|
|
|
4649
4649
|
}, reactIs_production_min.isSuspense = function(O) {
|
|
4650
4650
|
return C(O) === f;
|
|
4651
4651
|
}, reactIs_production_min.isValidElementType = function(O) {
|
|
4652
|
-
return typeof O == "string" || typeof O == "function" || O === r || O === u || O === a || O === o || O === f || O === p || typeof O == "object" && O !== null && (O.$$typeof === m || O.$$typeof === h || O.$$typeof === s || O.$$typeof === c || O.$$typeof === d || O.$$typeof === x || O.$$typeof ===
|
|
4652
|
+
return typeof O == "string" || typeof O == "function" || O === r || O === u || O === a || O === o || O === f || O === p || typeof O == "object" && O !== null && (O.$$typeof === m || O.$$typeof === h || O.$$typeof === s || O.$$typeof === c || O.$$typeof === d || O.$$typeof === x || O.$$typeof === g || O.$$typeof === I || O.$$typeof === v);
|
|
4653
4653
|
}, reactIs_production_min.typeOf = C, reactIs_production_min;
|
|
4654
4654
|
}
|
|
4655
4655
|
var reactIs_development = {};
|
|
@@ -4664,9 +4664,9 @@ var reactIs_development = {};
|
|
|
4664
4664
|
var hasRequiredReactIs_development;
|
|
4665
4665
|
function requireReactIs_development() {
|
|
4666
4666
|
return hasRequiredReactIs_development || (hasRequiredReactIs_development = 1, process.env.NODE_ENV !== "production" && function() {
|
|
4667
|
-
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, c = e ? Symbol.for("react.context") : 60110, l = e ? Symbol.for("react.async_mode") : 60111, u = e ? Symbol.for("react.concurrent_mode") : 60111, d = e ? Symbol.for("react.forward_ref") : 60112, f = e ? Symbol.for("react.suspense") : 60113, p = e ? Symbol.for("react.suspense_list") : 60120, h = e ? Symbol.for("react.memo") : 60115, m = e ? Symbol.for("react.lazy") : 60116, v = e ? Symbol.for("react.block") : 60121, x = e ? Symbol.for("react.fundamental") : 60117,
|
|
4667
|
+
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, c = e ? Symbol.for("react.context") : 60110, l = e ? Symbol.for("react.async_mode") : 60111, u = e ? Symbol.for("react.concurrent_mode") : 60111, d = e ? Symbol.for("react.forward_ref") : 60112, f = e ? Symbol.for("react.suspense") : 60113, p = e ? Symbol.for("react.suspense_list") : 60120, h = e ? Symbol.for("react.memo") : 60115, m = e ? Symbol.for("react.lazy") : 60116, v = e ? Symbol.for("react.block") : 60121, x = e ? Symbol.for("react.fundamental") : 60117, g = e ? Symbol.for("react.responder") : 60118, I = e ? Symbol.for("react.scope") : 60119;
|
|
4668
4668
|
function C(T) {
|
|
4669
|
-
return typeof T == "string" || typeof T == "function" || T === r || T === u || T === a || T === o || T === f || T === p || typeof T == "object" && T !== null && (T.$$typeof === m || T.$$typeof === h || T.$$typeof === s || T.$$typeof === c || T.$$typeof === d || T.$$typeof === x || T.$$typeof ===
|
|
4669
|
+
return typeof T == "string" || typeof T == "function" || T === r || T === u || T === a || T === o || T === f || T === p || typeof T == "object" && T !== null && (T.$$typeof === m || T.$$typeof === h || T.$$typeof === s || T.$$typeof === c || T.$$typeof === d || T.$$typeof === x || T.$$typeof === g || T.$$typeof === I || T.$$typeof === v);
|
|
4670
4670
|
}
|
|
4671
4671
|
function y(T) {
|
|
4672
4672
|
if (typeof T == "object" && T !== null) {
|
|
@@ -5284,7 +5284,7 @@ var ResizableTextArea = /* @__PURE__ */ function(e) {
|
|
|
5284
5284
|
}, o.renderTextArea = function() {
|
|
5285
5285
|
var a = o.props, s = a.prefixCls, c = s === void 0 ? "rc-textarea" : s, l = a.autoSize, u = a.onResize, d = a.className, f = a.disabled, p = o.state, h = p.textareaStyles, m = p.resizeStatus, v = omit$1(o.props, ["prefixCls", "onPressEnter", "autoSize", "defaultValue", "onResize"]), x = classnamesExports(c, d, _defineProperty$1({}, "".concat(c, "-disabled"), f));
|
|
5286
5286
|
"value" in v && (v.value = v.value || "");
|
|
5287
|
-
var
|
|
5287
|
+
var g = _objectSpread2$1(_objectSpread2$1(_objectSpread2$1({}, o.props.style), h), m === RESIZE_STATUS.RESIZING ? {
|
|
5288
5288
|
overflowX: "hidden",
|
|
5289
5289
|
overflowY: "hidden"
|
|
5290
5290
|
} : null);
|
|
@@ -5294,7 +5294,7 @@ var ResizableTextArea = /* @__PURE__ */ function(e) {
|
|
|
5294
5294
|
children: /* @__PURE__ */ jsx("textarea", {
|
|
5295
5295
|
...v,
|
|
5296
5296
|
className: x,
|
|
5297
|
-
style:
|
|
5297
|
+
style: g,
|
|
5298
5298
|
ref: o.saveTextArea
|
|
5299
5299
|
})
|
|
5300
5300
|
});
|
|
@@ -5449,17 +5449,17 @@ function requireUseMergedState() {
|
|
|
5449
5449
|
return u !== void 0 ? u : l !== void 0 ? typeof l == "function" ? l() : l : typeof a == "function" ? a() : a;
|
|
5450
5450
|
}), h = (0, n.default)(p, 2), m = h[0], v = h[1], x = u !== void 0 ? u : m;
|
|
5451
5451
|
f && (x = f(x));
|
|
5452
|
-
function
|
|
5452
|
+
function g(C) {
|
|
5453
5453
|
v(C), x !== C && d && d(C, x);
|
|
5454
5454
|
}
|
|
5455
|
-
var
|
|
5455
|
+
var I = r.useRef(!0);
|
|
5456
5456
|
return r.useEffect(function() {
|
|
5457
|
-
if (
|
|
5458
|
-
|
|
5457
|
+
if (I.current) {
|
|
5458
|
+
I.current = !1;
|
|
5459
5459
|
return;
|
|
5460
5460
|
}
|
|
5461
5461
|
u === void 0 && v(u);
|
|
5462
|
-
}, [u]), [x,
|
|
5462
|
+
}, [u]), [x, g];
|
|
5463
5463
|
}
|
|
5464
5464
|
return useMergedState;
|
|
5465
5465
|
}
|
|
@@ -6186,8 +6186,8 @@ function requireDynamicCSS() {
|
|
|
6186
6186
|
}
|
|
6187
6187
|
var x = c(f, p);
|
|
6188
6188
|
if (x) {
|
|
6189
|
-
var
|
|
6190
|
-
if (((
|
|
6189
|
+
var g, I;
|
|
6190
|
+
if (((g = p.csp) === null || g === void 0 ? void 0 : g.nonce) && x.nonce !== ((I = p.csp) === null || I === void 0 ? void 0 : I.nonce)) {
|
|
6191
6191
|
var C;
|
|
6192
6192
|
x.nonce = (C = p.csp) === null || C === void 0 ? void 0 : C.nonce;
|
|
6193
6193
|
}
|
|
@@ -6208,16 +6208,16 @@ function requireUtils() {
|
|
|
6208
6208
|
value: !0
|
|
6209
6209
|
}), utils$1.warning = u, utils$1.isIconDefinition = d, utils$1.normalizeAttrs = f, utils$1.generate = p, utils$1.getSecondaryColor = h, utils$1.normalizeTwoToneColors = m, utils$1.useInsertStyles = utils$1.iconStyles = utils$1.svgBaseProps = void 0;
|
|
6210
6210
|
var n = t(requireObjectSpread2()), r = t(_typeof$2.exports), o = require$$4, a = e(React__default), s = t(requireWarning$1()), c = requireDynamicCSS(), l = t(requireContext$2());
|
|
6211
|
-
function u(
|
|
6212
|
-
(0, s.default)(
|
|
6211
|
+
function u(I, C) {
|
|
6212
|
+
(0, s.default)(I, "[@ant-design/icons] ".concat(C));
|
|
6213
6213
|
}
|
|
6214
|
-
function d(
|
|
6215
|
-
return (0, r.default)(
|
|
6214
|
+
function d(I) {
|
|
6215
|
+
return (0, r.default)(I) === "object" && typeof I.name == "string" && typeof I.theme == "string" && ((0, r.default)(I.icon) === "object" || typeof I.icon == "function");
|
|
6216
6216
|
}
|
|
6217
6217
|
function f() {
|
|
6218
|
-
var
|
|
6219
|
-
return Object.keys(
|
|
6220
|
-
var O =
|
|
6218
|
+
var I = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
6219
|
+
return Object.keys(I).reduce(function(C, y) {
|
|
6220
|
+
var O = I[y];
|
|
6221
6221
|
switch (y) {
|
|
6222
6222
|
case "class":
|
|
6223
6223
|
C.className = O, delete C.class;
|
|
@@ -6228,22 +6228,22 @@ function requireUtils() {
|
|
|
6228
6228
|
return C;
|
|
6229
6229
|
}, {});
|
|
6230
6230
|
}
|
|
6231
|
-
function p(
|
|
6232
|
-
return y ? /* @__PURE__ */ a.default.createElement(
|
|
6231
|
+
function p(I, C, y) {
|
|
6232
|
+
return y ? /* @__PURE__ */ a.default.createElement(I.tag, (0, n.default)((0, n.default)({
|
|
6233
6233
|
key: C
|
|
6234
|
-
}, f(
|
|
6235
|
-
return p(O, "".concat(C, "-").concat(
|
|
6236
|
-
})) : /* @__PURE__ */ a.default.createElement(
|
|
6234
|
+
}, f(I.attrs)), y), (I.children || []).map(function(O, b) {
|
|
6235
|
+
return p(O, "".concat(C, "-").concat(I.tag, "-").concat(b));
|
|
6236
|
+
})) : /* @__PURE__ */ a.default.createElement(I.tag, (0, n.default)({
|
|
6237
6237
|
key: C
|
|
6238
|
-
}, f(
|
|
6239
|
-
return p(O, "".concat(C, "-").concat(
|
|
6238
|
+
}, f(I.attrs)), (I.children || []).map(function(O, b) {
|
|
6239
|
+
return p(O, "".concat(C, "-").concat(I.tag, "-").concat(b));
|
|
6240
6240
|
}));
|
|
6241
6241
|
}
|
|
6242
|
-
function h(
|
|
6243
|
-
return (0, o.generate)(
|
|
6242
|
+
function h(I) {
|
|
6243
|
+
return (0, o.generate)(I)[0];
|
|
6244
6244
|
}
|
|
6245
|
-
function m(
|
|
6246
|
-
return
|
|
6245
|
+
function m(I) {
|
|
6246
|
+
return I ? Array.isArray(I) ? I : [I] : [];
|
|
6247
6247
|
}
|
|
6248
6248
|
var v = {
|
|
6249
6249
|
width: "1em",
|
|
@@ -6309,7 +6309,7 @@ function requireUtils() {
|
|
|
6309
6309
|
}
|
|
6310
6310
|
`;
|
|
6311
6311
|
utils$1.iconStyles = x;
|
|
6312
|
-
var
|
|
6312
|
+
var g = function() {
|
|
6313
6313
|
var C = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : x, y = (0, a.useContext)(l.default), O = y.csp;
|
|
6314
6314
|
(0, a.useEffect)(function() {
|
|
6315
6315
|
(0, c.updateCSS)(C, "@ant-design-icons", {
|
|
@@ -6318,7 +6318,7 @@ function requireUtils() {
|
|
|
6318
6318
|
});
|
|
6319
6319
|
}, []);
|
|
6320
6320
|
};
|
|
6321
|
-
return utils$1.useInsertStyles =
|
|
6321
|
+
return utils$1.useInsertStyles = g, utils$1;
|
|
6322
6322
|
}
|
|
6323
6323
|
var hasRequiredIconBase;
|
|
6324
6324
|
function requireIconBase() {
|
|
@@ -6342,10 +6342,10 @@ function requireIconBase() {
|
|
|
6342
6342
|
return (0, n.default)({}, a);
|
|
6343
6343
|
}
|
|
6344
6344
|
var l = function(f) {
|
|
6345
|
-
var p = f.icon, h = f.className, m = f.onClick, v = f.style, x = f.primaryColor,
|
|
6345
|
+
var p = f.icon, h = f.className, m = f.onClick, v = f.style, x = f.primaryColor, g = f.secondaryColor, I = (0, t.default)(f, o), C = a;
|
|
6346
6346
|
if (x && (C = {
|
|
6347
6347
|
primaryColor: x,
|
|
6348
|
-
secondaryColor:
|
|
6348
|
+
secondaryColor: g || (0, r.getSecondaryColor)(x)
|
|
6349
6349
|
}), (0, r.useInsertStyles)(), (0, r.warning)((0, r.isIconDefinition)(p), "icon should be icon definiton, but got ".concat(p)), !(0, r.isIconDefinition)(p))
|
|
6350
6350
|
return null;
|
|
6351
6351
|
var y = p;
|
|
@@ -6360,7 +6360,7 @@ function requireIconBase() {
|
|
|
6360
6360
|
height: "1em",
|
|
6361
6361
|
fill: "currentColor",
|
|
6362
6362
|
"aria-hidden": "true"
|
|
6363
|
-
},
|
|
6363
|
+
}, I));
|
|
6364
6364
|
};
|
|
6365
6365
|
l.displayName = "IconReact", l.getTwoToneColors = c, l.setTwoToneColors = s;
|
|
6366
6366
|
var u = l;
|
|
@@ -6401,7 +6401,7 @@ function requireAntdIcon() {
|
|
|
6401
6401
|
var n = e(requireObjectSpread2()), r = e(requireSlicedToArray()), o = e(requireDefineProperty()), a = e(requireObjectWithoutProperties()), s = t(React__default), c = e(requireClassnames()), l = e(requireContext$2()), u = e(requireIconBase()), d = requireTwoTonePrimaryColor(), f = requireUtils(), p = ["className", "icon", "spin", "rotate", "tabIndex", "onClick", "twoToneColor"];
|
|
6402
6402
|
(0, d.setTwoToneColor)("#1890ff");
|
|
6403
6403
|
var h = /* @__PURE__ */ s.forwardRef(function(v, x) {
|
|
6404
|
-
var
|
|
6404
|
+
var g, I = v.className, C = v.icon, y = v.spin, O = v.rotate, b = v.tabIndex, E = v.onClick, w = v.twoToneColor, _ = (0, a.default)(v, p), S = s.useContext(l.default), k = S.prefixCls, N = k === void 0 ? "anticon" : k, D = (0, c.default)(N, (g = {}, (0, o.default)(g, "".concat(N, "-").concat(C.name), !!C.name), (0, o.default)(g, "".concat(N, "-spin"), !!y || C.name === "loading"), g), I), M = b;
|
|
6405
6405
|
M === void 0 && E && (M = -1);
|
|
6406
6406
|
var L = O ? {
|
|
6407
6407
|
msTransform: "rotate(".concat(O, "deg)"),
|
|
@@ -6655,13 +6655,13 @@ function requireRegeneratorRuntime() {
|
|
|
6655
6655
|
}
|
|
6656
6656
|
function x() {
|
|
6657
6657
|
}
|
|
6658
|
-
var
|
|
6659
|
-
d(
|
|
6658
|
+
var g = {};
|
|
6659
|
+
d(g, c, function() {
|
|
6660
6660
|
return this;
|
|
6661
6661
|
});
|
|
6662
|
-
var
|
|
6663
|
-
C && C !== o && a.call(C, c) && (
|
|
6664
|
-
var y = x.prototype = m.prototype = Object.create(
|
|
6662
|
+
var I = Object.getPrototypeOf, C = I && I(I(k([])));
|
|
6663
|
+
C && C !== o && a.call(C, c) && (g = C);
|
|
6664
|
+
var y = x.prototype = m.prototype = Object.create(g);
|
|
6665
6665
|
function O(D) {
|
|
6666
6666
|
["next", "throw", "return"].forEach(function(M) {
|
|
6667
6667
|
d(D, M, function(L) {
|
|
@@ -7445,17 +7445,17 @@ Schema.prototype = {
|
|
|
7445
7445
|
if (typeof s == "function" && (c = s, s = {}), !this.rules || Object.keys(this.rules).length === 0)
|
|
7446
7446
|
return c && c(), Promise.resolve();
|
|
7447
7447
|
function l(v) {
|
|
7448
|
-
var x,
|
|
7448
|
+
var x, g = [], I = {};
|
|
7449
7449
|
function C(y) {
|
|
7450
7450
|
if (Array.isArray(y)) {
|
|
7451
7451
|
var O;
|
|
7452
|
-
|
|
7452
|
+
g = (O = g).concat.apply(O, y);
|
|
7453
7453
|
} else
|
|
7454
|
-
|
|
7454
|
+
g.push(y);
|
|
7455
7455
|
}
|
|
7456
7456
|
for (x = 0; x < v.length; x++)
|
|
7457
7457
|
C(v[x]);
|
|
7458
|
-
|
|
7458
|
+
g.length ? I = convertFieldsError(g) : (g = null, I = null), c(g, I);
|
|
7459
7459
|
}
|
|
7460
7460
|
if (s.messages) {
|
|
7461
7461
|
var u = this.messages();
|
|
@@ -7465,11 +7465,11 @@ Schema.prototype = {
|
|
|
7465
7465
|
var d, f, p = {}, h = s.keys || Object.keys(this.rules);
|
|
7466
7466
|
h.forEach(function(v) {
|
|
7467
7467
|
d = o.rules[v], f = a[v], d.forEach(function(x) {
|
|
7468
|
-
var
|
|
7469
|
-
typeof
|
|
7470
|
-
validator:
|
|
7471
|
-
} :
|
|
7472
|
-
rule:
|
|
7468
|
+
var g = x;
|
|
7469
|
+
typeof g.transform == "function" && (a === t && (a = _extends({}, a)), f = a[v] = g.transform(f)), typeof g == "function" ? g = {
|
|
7470
|
+
validator: g
|
|
7471
|
+
} : g = _extends({}, g), g.validator = o.getValidationMethod(g), g.field = v, g.fullField = g.fullField || v, g.type = o.getType(g), g.validator && (p[v] = p[v] || [], p[v].push({
|
|
7472
|
+
rule: g,
|
|
7473
7473
|
value: f,
|
|
7474
7474
|
source: a,
|
|
7475
7475
|
field: v
|
|
@@ -7478,27 +7478,27 @@ Schema.prototype = {
|
|
|
7478
7478
|
});
|
|
7479
7479
|
var m = {};
|
|
7480
7480
|
return asyncMap(p, s, function(v, x) {
|
|
7481
|
-
var
|
|
7482
|
-
|
|
7481
|
+
var g = v.rule, I = (g.type === "object" || g.type === "array") && (typeof g.fields == "object" || typeof g.defaultField == "object");
|
|
7482
|
+
I = I && (g.required || !g.required && v.value), g.field = v.field;
|
|
7483
7483
|
function C(b, E) {
|
|
7484
7484
|
return _extends(_extends({}, E), {}, {
|
|
7485
|
-
fullField:
|
|
7485
|
+
fullField: g.fullField + "." + b
|
|
7486
7486
|
});
|
|
7487
7487
|
}
|
|
7488
7488
|
function y(b) {
|
|
7489
7489
|
b === void 0 && (b = []);
|
|
7490
7490
|
var E = b;
|
|
7491
|
-
if (Array.isArray(E) || (E = [E]), !s.suppressWarning && E.length && Schema.warning("async-validator:", E), E.length &&
|
|
7492
|
-
return m[
|
|
7493
|
-
if (!
|
|
7491
|
+
if (Array.isArray(E) || (E = [E]), !s.suppressWarning && E.length && Schema.warning("async-validator:", E), E.length && g.message !== void 0 && (E = [].concat(g.message)), E = E.map(complementError(g)), s.first && E.length)
|
|
7492
|
+
return m[g.field] = 1, x(E);
|
|
7493
|
+
if (!I)
|
|
7494
7494
|
x(E);
|
|
7495
7495
|
else {
|
|
7496
|
-
if (
|
|
7497
|
-
return
|
|
7496
|
+
if (g.required && !v.value)
|
|
7497
|
+
return g.message !== void 0 ? E = [].concat(g.message).map(complementError(g)) : s.error && (E = [s.error(g, format$1(s.messages.required, g.field))]), x(E);
|
|
7498
7498
|
var w = {};
|
|
7499
|
-
if (
|
|
7499
|
+
if (g.defaultField)
|
|
7500
7500
|
for (var _ in v.value)
|
|
7501
|
-
v.value.hasOwnProperty(_) && (w[_] =
|
|
7501
|
+
v.value.hasOwnProperty(_) && (w[_] = g.defaultField);
|
|
7502
7502
|
w = _extends(_extends({}, w), v.rule.fields);
|
|
7503
7503
|
for (var S in w)
|
|
7504
7504
|
if (w.hasOwnProperty(S)) {
|
|
@@ -7513,7 +7513,7 @@ Schema.prototype = {
|
|
|
7513
7513
|
}
|
|
7514
7514
|
}
|
|
7515
7515
|
var O;
|
|
7516
|
-
|
|
7516
|
+
g.asyncValidator ? O = g.asyncValidator(g, v.value, y, v.source, s) : g.validator && (O = g.validator(g, v.value, y, v.source, s), O === !0 ? y() : O === !1 ? y(g.message || g.field + " fails") : O instanceof Array ? y(O) : O instanceof Error && y(O.message)), O && O.then && O.then(function() {
|
|
7517
7517
|
return y();
|
|
7518
7518
|
}, function(b) {
|
|
7519
7519
|
return y(b);
|
|
@@ -7777,14 +7777,14 @@ function validateRules(e, t, n, r, o, a) {
|
|
|
7777
7777
|
var f = d.validator;
|
|
7778
7778
|
return f ? _objectSpread2$1(_objectSpread2$1({}, d), {}, {
|
|
7779
7779
|
validator: function(h, m, v) {
|
|
7780
|
-
var x = !1,
|
|
7780
|
+
var x = !1, g = function() {
|
|
7781
7781
|
for (var y = arguments.length, O = new Array(y), b = 0; b < y; b++)
|
|
7782
7782
|
O[b] = arguments[b];
|
|
7783
7783
|
Promise.resolve().then(function() {
|
|
7784
7784
|
warningOnce(!x, "Your validator function has already return a promise. `callback` will be ignored."), x || v.apply(void 0, O);
|
|
7785
7785
|
});
|
|
7786
|
-
},
|
|
7787
|
-
x =
|
|
7786
|
+
}, I = f(h, m, g);
|
|
7787
|
+
x = I && typeof I.then == "function" && typeof I.catch == "function", warningOnce(x, "`callback` is deprecated. Please return a promise instead."), x && I.then(function() {
|
|
7788
7788
|
v();
|
|
7789
7789
|
}).catch(function(C) {
|
|
7790
7790
|
v(C || " ");
|
|
@@ -7796,31 +7796,31 @@ function validateRules(e, t, n, r, o, a) {
|
|
|
7796
7796
|
l = new Promise(/* @__PURE__ */ function() {
|
|
7797
7797
|
var d = _asyncToGenerator(/* @__PURE__ */ regeneratorExports.mark(function f(p, h) {
|
|
7798
7798
|
var m, v;
|
|
7799
|
-
return regeneratorExports.wrap(function(
|
|
7799
|
+
return regeneratorExports.wrap(function(g) {
|
|
7800
7800
|
for (; ; )
|
|
7801
|
-
switch (
|
|
7801
|
+
switch (g.prev = g.next) {
|
|
7802
7802
|
case 0:
|
|
7803
7803
|
m = 0;
|
|
7804
7804
|
case 1:
|
|
7805
7805
|
if (!(m < c.length)) {
|
|
7806
|
-
|
|
7806
|
+
g.next = 11;
|
|
7807
7807
|
break;
|
|
7808
7808
|
}
|
|
7809
|
-
return
|
|
7809
|
+
return g.next = 4, validateRule(s, t, c[m], r, a);
|
|
7810
7810
|
case 4:
|
|
7811
|
-
if (v =
|
|
7812
|
-
|
|
7811
|
+
if (v = g.sent, !v.length) {
|
|
7812
|
+
g.next = 8;
|
|
7813
7813
|
break;
|
|
7814
7814
|
}
|
|
7815
|
-
return h(v),
|
|
7815
|
+
return h(v), g.abrupt("return");
|
|
7816
7816
|
case 8:
|
|
7817
|
-
m += 1,
|
|
7817
|
+
m += 1, g.next = 1;
|
|
7818
7818
|
break;
|
|
7819
7819
|
case 11:
|
|
7820
7820
|
p([]);
|
|
7821
7821
|
case 12:
|
|
7822
7822
|
case "end":
|
|
7823
|
-
return
|
|
7823
|
+
return g.stop();
|
|
7824
7824
|
}
|
|
7825
7825
|
}, f);
|
|
7826
7826
|
}));
|
|
@@ -7915,8 +7915,8 @@ var Field = /* @__PURE__ */ function(e) {
|
|
|
7915
7915
|
};
|
|
7916
7916
|
});
|
|
7917
7917
|
}, o.onStoreChange = function(l, u, d) {
|
|
7918
|
-
var f = o.props, p = f.shouldUpdate, h = f.dependencies, m = h === void 0 ? [] : h, v = f.onReset, x = d.store,
|
|
7919
|
-
switch (d.type === "valueUpdate" && d.source === "external" &&
|
|
7918
|
+
var f = o.props, p = f.shouldUpdate, h = f.dependencies, m = h === void 0 ? [] : h, v = f.onReset, x = d.store, g = o.getNamePath(), I = o.getValue(l), C = o.getValue(x), y = u && containsNamePath(u, g);
|
|
7919
|
+
switch (d.type === "valueUpdate" && d.source === "external" && I !== C && (o.touched = !0, o.dirty = !0, o.validatePromise = null, o.errors = []), d.type) {
|
|
7920
7920
|
case "reset":
|
|
7921
7921
|
if (!u || y) {
|
|
7922
7922
|
o.touched = !1, o.dirty = !1, o.validatePromise = null, o.errors = [], v && v(), o.refresh();
|
|
@@ -7929,7 +7929,7 @@ var Field = /* @__PURE__ */ function(e) {
|
|
|
7929
7929
|
"touched" in O && (o.touched = O.touched), "validating" in O && !("originRCField" in O) && (o.validatePromise = O.validating ? Promise.resolve([]) : null), "errors" in O && (o.errors = O.errors || []), o.dirty = !0, o.reRender();
|
|
7930
7930
|
return;
|
|
7931
7931
|
}
|
|
7932
|
-
if (p && !
|
|
7932
|
+
if (p && !g.length && requireUpdate(p, l, x, I, C, d)) {
|
|
7933
7933
|
o.reRender();
|
|
7934
7934
|
return;
|
|
7935
7935
|
}
|
|
@@ -7946,7 +7946,7 @@ var Field = /* @__PURE__ */ function(e) {
|
|
|
7946
7946
|
break;
|
|
7947
7947
|
}
|
|
7948
7948
|
default:
|
|
7949
|
-
if (y || (!m.length ||
|
|
7949
|
+
if (y || (!m.length || g.length || p) && requireUpdate(p, l, x, I, C, d)) {
|
|
7950
7950
|
o.reRender();
|
|
7951
7951
|
return;
|
|
7952
7952
|
}
|
|
@@ -7957,15 +7957,15 @@ var Field = /* @__PURE__ */ function(e) {
|
|
|
7957
7957
|
var u = o.getNamePath(), d = o.getValue(), f = Promise.resolve().then(function() {
|
|
7958
7958
|
if (!o.mounted)
|
|
7959
7959
|
return [];
|
|
7960
|
-
var p = o.props, h = p.validateFirst, m = h === void 0 ? !1 : h, v = p.messageVariables, x = l || {},
|
|
7961
|
-
|
|
7960
|
+
var p = o.props, h = p.validateFirst, m = h === void 0 ? !1 : h, v = p.messageVariables, x = l || {}, g = x.triggerName, I = o.getRules();
|
|
7961
|
+
g && (I = I.filter(function(y) {
|
|
7962
7962
|
var O = y.validateTrigger;
|
|
7963
7963
|
if (!O)
|
|
7964
7964
|
return !0;
|
|
7965
7965
|
var b = toArray$2(O);
|
|
7966
|
-
return b.includes(
|
|
7966
|
+
return b.includes(g);
|
|
7967
7967
|
}));
|
|
7968
|
-
var C = validateRules(u, d,
|
|
7968
|
+
var C = validateRules(u, d, I, l, m, v);
|
|
7969
7969
|
return C.catch(function(y) {
|
|
7970
7970
|
return y;
|
|
7971
7971
|
}).then(function() {
|
|
@@ -8016,7 +8016,7 @@ var Field = /* @__PURE__ */ function(e) {
|
|
|
8016
8016
|
var u = o.props.fieldContext.getFieldsValue, d = o.getNamePath();
|
|
8017
8017
|
return getValue(l || u(!0), d);
|
|
8018
8018
|
}, o.getControlled = function() {
|
|
8019
|
-
var l = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, u = o.props, d = u.trigger, f = u.validateTrigger, p = u.getValueFromEvent, h = u.normalize, m = u.valuePropName, v = u.getValueProps, x = u.fieldContext,
|
|
8019
|
+
var l = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, u = o.props, d = u.trigger, f = u.validateTrigger, p = u.getValueFromEvent, h = u.normalize, m = u.valuePropName, v = u.getValueProps, x = u.fieldContext, g = f !== void 0 ? f : x.validateTrigger, I = o.getNamePath(), C = x.getInternalHooks, y = x.getFieldsValue, O = C(HOOK_MARK), b = O.dispatch, E = o.getValue(), w = v || function(N) {
|
|
8020
8020
|
return _defineProperty$1({}, m, N);
|
|
8021
8021
|
}, _ = l[d], S = _objectSpread2$1(_objectSpread2$1({}, l), w(E));
|
|
8022
8022
|
S[d] = function() {
|
|
@@ -8025,11 +8025,11 @@ var Field = /* @__PURE__ */ function(e) {
|
|
|
8025
8025
|
M[L] = arguments[L];
|
|
8026
8026
|
p ? N = p.apply(void 0, M) : N = defaultGetValueFromEvent.apply(void 0, [m].concat(M)), h && (N = h(N, E, y(!0))), b({
|
|
8027
8027
|
type: "updateValue",
|
|
8028
|
-
namePath:
|
|
8028
|
+
namePath: I,
|
|
8029
8029
|
value: N
|
|
8030
8030
|
}), _ && _.apply(void 0, M);
|
|
8031
8031
|
};
|
|
8032
|
-
var k = toArray$2(
|
|
8032
|
+
var k = toArray$2(g || []);
|
|
8033
8033
|
return k.forEach(function(N) {
|
|
8034
8034
|
var D = S[N];
|
|
8035
8035
|
S[N] = function() {
|
|
@@ -8037,7 +8037,7 @@ var Field = /* @__PURE__ */ function(e) {
|
|
|
8037
8037
|
var M = o.props.rules;
|
|
8038
8038
|
M && M.length && b({
|
|
8039
8039
|
type: "validateField",
|
|
8040
|
-
namePath:
|
|
8040
|
+
namePath: I,
|
|
8041
8041
|
triggerName: N
|
|
8042
8042
|
});
|
|
8043
8043
|
};
|
|
@@ -8100,8 +8100,8 @@ var List = function(t) {
|
|
|
8100
8100
|
if (typeof o != "function")
|
|
8101
8101
|
return warningOnce(!1, "Form.List only accepts function as children."), null;
|
|
8102
8102
|
var d = getNamePath(c.prefixName) || [], f = [].concat(_toConsumableArray(d), _toConsumableArray(getNamePath(n))), p = function(m, v, x) {
|
|
8103
|
-
var
|
|
8104
|
-
return
|
|
8103
|
+
var g = x.source;
|
|
8104
|
+
return g === "internal" ? !1 : m !== v;
|
|
8105
8105
|
};
|
|
8106
8106
|
return /* @__PURE__ */ jsx(Context.Provider, {
|
|
8107
8107
|
value: _objectSpread2$1(_objectSpread2$1({}, c), {}, {
|
|
@@ -8115,26 +8115,26 @@ var List = function(t) {
|
|
|
8115
8115
|
initialValue: r,
|
|
8116
8116
|
isList: !0,
|
|
8117
8117
|
children: function(h, m) {
|
|
8118
|
-
var v = h.value, x = v === void 0 ? [] : v,
|
|
8119
|
-
var E =
|
|
8118
|
+
var v = h.value, x = v === void 0 ? [] : v, g = h.onChange, I = c.getFieldValue, C = function() {
|
|
8119
|
+
var E = I(f || []);
|
|
8120
8120
|
return E || [];
|
|
8121
8121
|
}, y = {
|
|
8122
8122
|
add: function(E, w) {
|
|
8123
8123
|
var _ = C();
|
|
8124
|
-
w >= 0 && w <= _.length ? (u.keys = [].concat(_toConsumableArray(u.keys.slice(0, w)), [u.id], _toConsumableArray(u.keys.slice(w))),
|
|
8124
|
+
w >= 0 && w <= _.length ? (u.keys = [].concat(_toConsumableArray(u.keys.slice(0, w)), [u.id], _toConsumableArray(u.keys.slice(w))), g([].concat(_toConsumableArray(_.slice(0, w)), [E], _toConsumableArray(_.slice(w))))) : (process.env.NODE_ENV !== "production" && (w < 0 || w > _.length) && warningOnce(!1, "The second parameter of the add function should be a valid positive number."), u.keys = [].concat(_toConsumableArray(u.keys), [u.id]), g([].concat(_toConsumableArray(_), [E]))), u.id += 1;
|
|
8125
8125
|
},
|
|
8126
8126
|
remove: function(E) {
|
|
8127
8127
|
var w = C(), _ = new Set(Array.isArray(E) ? E : [E]);
|
|
8128
8128
|
_.size <= 0 || (u.keys = u.keys.filter(function(S, k) {
|
|
8129
8129
|
return !_.has(k);
|
|
8130
|
-
}),
|
|
8130
|
+
}), g(w.filter(function(S, k) {
|
|
8131
8131
|
return !_.has(k);
|
|
8132
8132
|
})));
|
|
8133
8133
|
},
|
|
8134
8134
|
move: function(E, w) {
|
|
8135
8135
|
if (E !== w) {
|
|
8136
8136
|
var _ = C();
|
|
8137
|
-
E < 0 || E >= _.length || w < 0 || w >= _.length || (u.keys = move(u.keys, E, w),
|
|
8137
|
+
E < 0 || E >= _.length || w < 0 || w >= _.length || (u.keys = move(u.keys, E, w), g(move(_, E, w)));
|
|
8138
8138
|
}
|
|
8139
8139
|
}
|
|
8140
8140
|
}, O = x || [];
|
|
@@ -8358,11 +8358,11 @@ var NameMap = /* @__PURE__ */ function() {
|
|
|
8358
8358
|
p.set(v, []);
|
|
8359
8359
|
}), d.forEach(function(v) {
|
|
8360
8360
|
var x = v.getNamePath();
|
|
8361
|
-
l.forEach(function(
|
|
8362
|
-
|
|
8363
|
-
return x[C] ===
|
|
8364
|
-
}) && p.update(
|
|
8365
|
-
return [].concat(_toConsumableArray(
|
|
8361
|
+
l.forEach(function(g) {
|
|
8362
|
+
g.every(function(I, C) {
|
|
8363
|
+
return x[C] === I;
|
|
8364
|
+
}) && p.update(g, function(I) {
|
|
8365
|
+
return [].concat(_toConsumableArray(I), [v]);
|
|
8366
8366
|
});
|
|
8367
8367
|
});
|
|
8368
8368
|
});
|
|
@@ -8713,7 +8713,7 @@ var FormContext = /* @__PURE__ */ React.createContext({
|
|
|
8713
8713
|
children: a
|
|
8714
8714
|
});
|
|
8715
8715
|
}, Form$2 = function(t, n) {
|
|
8716
|
-
var r = t.name, o = t.initialValues, a = t.fields, s = t.form, c = t.preserve, l = t.children, u = t.component, d = u === void 0 ? "form" : u, f = t.validateMessages, p = t.validateTrigger, h = p === void 0 ? "onChange" : p, m = t.onValuesChange, v = t.onFieldsChange, x = t.onFinish,
|
|
8716
|
+
var r = t.name, o = t.initialValues, a = t.fields, s = t.form, c = t.preserve, l = t.children, u = t.component, d = u === void 0 ? "form" : u, f = t.validateMessages, p = t.validateTrigger, h = p === void 0 ? "onChange" : p, m = t.onValuesChange, v = t.onFieldsChange, x = t.onFinish, g = t.onFinishFailed, I = _objectWithoutProperties(t, ["name", "initialValues", "fields", "form", "preserve", "children", "component", "validateMessages", "validateTrigger", "onValuesChange", "onFieldsChange", "onFinish", "onFinishFailed"]), C = React.useContext(FormContext), y = useForm(s), O = _slicedToArray(y, 1), b = O[0], E = b.getInternalHooks(HOOK_MARK), w = E.useSubscribe, _ = E.setInitialValues, S = E.setCallbacks, k = E.setValidateMessages, N = E.setPreserve;
|
|
8717
8717
|
React.useImperativeHandle(n, function() {
|
|
8718
8718
|
return b;
|
|
8719
8719
|
}), React.useEffect(function() {
|
|
@@ -8732,7 +8732,7 @@ var FormContext = /* @__PURE__ */ React.createContext({
|
|
|
8732
8732
|
onFinish: function(z) {
|
|
8733
8733
|
C.triggerFormFinish(r, z), x && x(z);
|
|
8734
8734
|
},
|
|
8735
|
-
onFinishFailed:
|
|
8735
|
+
onFinishFailed: g
|
|
8736
8736
|
}), N(c);
|
|
8737
8737
|
var D = React.useRef(null);
|
|
8738
8738
|
_(o, !D.current), D.current || (D.current = !0);
|
|
@@ -8755,7 +8755,7 @@ var FormContext = /* @__PURE__ */ React.createContext({
|
|
|
8755
8755
|
children: M
|
|
8756
8756
|
});
|
|
8757
8757
|
return d === !1 ? U : /* @__PURE__ */ jsx(d, {
|
|
8758
|
-
...
|
|
8758
|
+
...I,
|
|
8759
8759
|
onSubmit: function(z) {
|
|
8760
8760
|
z.preventDefault(), z.stopPropagation(), b.submit();
|
|
8761
8761
|
},
|
|
@@ -9117,15 +9117,15 @@ function requireLocaleProvider() {
|
|
|
9117
9117
|
var h = /* @__PURE__ */ function(m) {
|
|
9118
9118
|
(0, s.default)(x, m);
|
|
9119
9119
|
var v = (0, c.default)(x);
|
|
9120
|
-
function x(
|
|
9121
|
-
var
|
|
9122
|
-
return (0, o.default)(this, x),
|
|
9120
|
+
function x(g) {
|
|
9121
|
+
var I;
|
|
9122
|
+
return (0, o.default)(this, x), I = v.call(this, g), (0, d.changeConfirmLocale)(g.locale && g.locale.Modal), (0, u.default)(g._ANT_MARK__ === p, "LocaleProvider", "`LocaleProvider` is deprecated. Please use `locale` with `ConfigProvider` instead: http://u.ant.design/locale"), I;
|
|
9123
9123
|
}
|
|
9124
9124
|
return (0, a.default)(x, [{
|
|
9125
9125
|
key: "componentDidUpdate",
|
|
9126
|
-
value: function(
|
|
9126
|
+
value: function(I) {
|
|
9127
9127
|
var C = this.props.locale;
|
|
9128
|
-
|
|
9128
|
+
I.locale !== C && (0, d.changeConfirmLocale)(C && C.Modal);
|
|
9129
9129
|
}
|
|
9130
9130
|
}, {
|
|
9131
9131
|
key: "componentWillUnmount",
|
|
@@ -9135,7 +9135,7 @@ function requireLocaleProvider() {
|
|
|
9135
9135
|
}, {
|
|
9136
9136
|
key: "render",
|
|
9137
9137
|
value: function() {
|
|
9138
|
-
var
|
|
9138
|
+
var I = this.props, C = I.locale, y = I.children;
|
|
9139
9139
|
return /* @__PURE__ */ l.createElement(f.default.Provider, {
|
|
9140
9140
|
value: (0, r.default)((0, r.default)({}, C), {
|
|
9141
9141
|
exist: !0
|
|
@@ -9176,14 +9176,14 @@ function requireLocaleReceiver() {
|
|
|
9176
9176
|
return (0, a.default)(v, [{
|
|
9177
9177
|
key: "getLocale",
|
|
9178
9178
|
value: function() {
|
|
9179
|
-
var
|
|
9179
|
+
var g = this.props, I = g.componentName, C = g.defaultLocale, y = C || u.default[I || "global"], O = this.context, b = I && O ? O[I] : {};
|
|
9180
9180
|
return (0, r.default)((0, r.default)({}, typeof y == "function" ? y() : y), b || {});
|
|
9181
9181
|
}
|
|
9182
9182
|
}, {
|
|
9183
9183
|
key: "getLocaleCode",
|
|
9184
9184
|
value: function() {
|
|
9185
|
-
var
|
|
9186
|
-
return
|
|
9185
|
+
var g = this.context, I = g && g.locale;
|
|
9186
|
+
return g && g.exist && !I ? u.default.locale : I;
|
|
9187
9187
|
}
|
|
9188
9188
|
}, {
|
|
9189
9189
|
key: "render",
|
|
@@ -9197,8 +9197,8 @@ function requireLocaleReceiver() {
|
|
|
9197
9197
|
}, f.contextType = d.default;
|
|
9198
9198
|
function p(h, m) {
|
|
9199
9199
|
var v = l.useContext(d.default), x = l.useMemo(function() {
|
|
9200
|
-
var
|
|
9201
|
-
return (0, r.default)((0, r.default)({}, typeof
|
|
9200
|
+
var g = m || u.default[h || "global"], I = h && v ? v[h] : {};
|
|
9201
|
+
return (0, r.default)((0, r.default)({}, typeof g == "function" ? g() : g), I || {});
|
|
9202
9202
|
}, [h, m, v]);
|
|
9203
9203
|
return [x];
|
|
9204
9204
|
}
|
|
@@ -9306,16 +9306,16 @@ function requireEmpty() {
|
|
|
9306
9306
|
Object.defineProperty(e, "__esModule", {
|
|
9307
9307
|
value: !0
|
|
9308
9308
|
}), e.default = void 0;
|
|
9309
|
-
var r = n(require_extends()), o = n(requireDefineProperty()), a = t(React__default), s = n(requireClassnames()), c = requireConfigProvider(), l = n(requireLocaleReceiver()), u = n(requireEmpty$1()), d = n(requireSimple()), f = function(x,
|
|
9310
|
-
var
|
|
9309
|
+
var r = n(require_extends()), o = n(requireDefineProperty()), a = t(React__default), s = n(requireClassnames()), c = requireConfigProvider(), l = n(requireLocaleReceiver()), u = n(requireEmpty$1()), d = n(requireSimple()), f = function(x, g) {
|
|
9310
|
+
var I = {};
|
|
9311
9311
|
for (var C in x)
|
|
9312
|
-
Object.prototype.hasOwnProperty.call(x, C) &&
|
|
9312
|
+
Object.prototype.hasOwnProperty.call(x, C) && g.indexOf(C) < 0 && (I[C] = x[C]);
|
|
9313
9313
|
if (x != null && typeof Object.getOwnPropertySymbols == "function")
|
|
9314
9314
|
for (var y = 0, C = Object.getOwnPropertySymbols(x); y < C.length; y++)
|
|
9315
|
-
|
|
9316
|
-
return
|
|
9317
|
-
}, p = /* @__PURE__ */ a.createElement(u.default, null), h = /* @__PURE__ */ a.createElement(d.default, null), m = function(
|
|
9318
|
-
var
|
|
9315
|
+
g.indexOf(C[y]) < 0 && Object.prototype.propertyIsEnumerable.call(x, C[y]) && (I[C[y]] = x[C[y]]);
|
|
9316
|
+
return I;
|
|
9317
|
+
}, p = /* @__PURE__ */ a.createElement(u.default, null), h = /* @__PURE__ */ a.createElement(d.default, null), m = function(g) {
|
|
9318
|
+
var I = g.className, C = g.prefixCls, y = g.image, O = y === void 0 ? p : y, b = g.description, E = g.children, w = g.imageStyle, _ = f(g, ["className", "prefixCls", "image", "description", "children", "imageStyle"]), S = a.useContext(c.ConfigContext), k = S.getPrefixCls, N = S.direction;
|
|
9319
9319
|
return /* @__PURE__ */ a.createElement(l.default, {
|
|
9320
9320
|
componentName: "Empty"
|
|
9321
9321
|
}, function(D) {
|
|
@@ -9324,7 +9324,7 @@ function requireEmpty() {
|
|
|
9324
9324
|
alt: $,
|
|
9325
9325
|
src: O
|
|
9326
9326
|
}) : B = O, /* @__PURE__ */ a.createElement("div", (0, r.default)({
|
|
9327
|
-
className: (0, s.default)(L, (M = {}, (0, o.default)(M, "".concat(L, "-normal"), O === h), (0, o.default)(M, "".concat(L, "-rtl"), N === "rtl"), M),
|
|
9327
|
+
className: (0, s.default)(L, (M = {}, (0, o.default)(M, "".concat(L, "-normal"), O === h), (0, o.default)(M, "".concat(L, "-rtl"), N === "rtl"), M), I)
|
|
9328
9328
|
}, _), /* @__PURE__ */ a.createElement("div", {
|
|
9329
9329
|
className: "".concat(L, "-image"),
|
|
9330
9330
|
style: w
|
|
@@ -9394,9 +9394,9 @@ function requireContext() {
|
|
|
9394
9394
|
function l(u) {
|
|
9395
9395
|
return function(f) {
|
|
9396
9396
|
var p = function(x) {
|
|
9397
|
-
return /* @__PURE__ */ r.createElement(c, null, function(
|
|
9398
|
-
var
|
|
9399
|
-
return /* @__PURE__ */ r.createElement(f, (0, n.default)({},
|
|
9397
|
+
return /* @__PURE__ */ r.createElement(c, null, function(g) {
|
|
9398
|
+
var I = u.prefixCls, C = g.getPrefixCls, y = x.prefixCls, O = C(I, y);
|
|
9399
|
+
return /* @__PURE__ */ r.createElement(f, (0, n.default)({}, g, x, {
|
|
9400
9400
|
prefixCls: O
|
|
9401
9401
|
}));
|
|
9402
9402
|
});
|
|
@@ -9563,7 +9563,7 @@ const useStepQueue = function(e, t) {
|
|
|
9563
9563
|
}, []), [a, o];
|
|
9564
9564
|
};
|
|
9565
9565
|
function useStatus(e, t, n, r) {
|
|
9566
|
-
var o = r.motionEnter, a = o === void 0 ? !0 : o, s = r.motionAppear, c = s === void 0 ? !0 : s, l = r.motionLeave, u = l === void 0 ? !0 : l, d = r.motionDeadline, f = r.motionLeaveImmediately, p = r.onAppearPrepare, h = r.onEnterPrepare, m = r.onLeavePrepare, v = r.onAppearStart, x = r.onEnterStart,
|
|
9566
|
+
var o = r.motionEnter, a = o === void 0 ? !0 : o, s = r.motionAppear, c = s === void 0 ? !0 : s, l = r.motionLeave, u = l === void 0 ? !0 : l, d = r.motionDeadline, f = r.motionLeaveImmediately, p = r.onAppearPrepare, h = r.onEnterPrepare, m = r.onLeavePrepare, v = r.onAppearStart, x = r.onEnterStart, g = r.onLeaveStart, I = r.onAppearActive, C = r.onEnterActive, y = r.onLeaveActive, O = r.onAppearEnd, b = r.onEnterEnd, E = r.onLeaveEnd, w = r.onVisibleChanged, _ = useMountStatus(), S = _slicedToArray(_, 2), k = S[0], N = S[1], D = useMountStatus(STATUS_NONE), M = _slicedToArray(D, 2), L = M[0], q = M[1], $ = useMountStatus(null), B = _slicedToArray($, 2), U = B[0], G = B[1], z = useRef(!1), W = useRef(null), Z = useRef(!1), V = useRef(null);
|
|
9567
9567
|
function H() {
|
|
9568
9568
|
var oe = n();
|
|
9569
9569
|
return oe || V.current;
|
|
@@ -9580,11 +9580,11 @@ function useStatus(e, t, n, r) {
|
|
|
9580
9580
|
var oe, le, ae;
|
|
9581
9581
|
switch (L) {
|
|
9582
9582
|
case "appear":
|
|
9583
|
-
return oe = {}, _defineProperty$1(oe, STEP_PREPARE, p), _defineProperty$1(oe, STEP_START, v), _defineProperty$1(oe, STEP_ACTIVE,
|
|
9583
|
+
return oe = {}, _defineProperty$1(oe, STEP_PREPARE, p), _defineProperty$1(oe, STEP_START, v), _defineProperty$1(oe, STEP_ACTIVE, I), oe;
|
|
9584
9584
|
case "enter":
|
|
9585
9585
|
return le = {}, _defineProperty$1(le, STEP_PREPARE, h), _defineProperty$1(le, STEP_START, x), _defineProperty$1(le, STEP_ACTIVE, C), le;
|
|
9586
9586
|
case "leave":
|
|
9587
|
-
return ae = {}, _defineProperty$1(ae, STEP_PREPARE, m), _defineProperty$1(ae, STEP_START,
|
|
9587
|
+
return ae = {}, _defineProperty$1(ae, STEP_PREPARE, m), _defineProperty$1(ae, STEP_START, g), _defineProperty$1(ae, STEP_ACTIVE, y), ae;
|
|
9588
9588
|
default:
|
|
9589
9589
|
return {};
|
|
9590
9590
|
}
|
|
@@ -9644,15 +9644,15 @@ function genCSSMotion(e) {
|
|
|
9644
9644
|
return !!(o.motionName && t);
|
|
9645
9645
|
}
|
|
9646
9646
|
var r = /* @__PURE__ */ React.forwardRef(function(o, a) {
|
|
9647
|
-
var s = o.visible, c = s === void 0 ? !0 : s, l = o.removeOnLeave, u = l === void 0 ? !0 : l, d = o.forceRender, f = o.children, p = o.motionName, h = o.leavedClassName, m = o.eventProps, v = n(o), x = useRef(),
|
|
9648
|
-
function
|
|
9647
|
+
var s = o.visible, c = s === void 0 ? !0 : s, l = o.removeOnLeave, u = l === void 0 ? !0 : l, d = o.forceRender, f = o.children, p = o.motionName, h = o.leavedClassName, m = o.eventProps, v = n(o), x = useRef(), g = useRef();
|
|
9648
|
+
function I() {
|
|
9649
9649
|
try {
|
|
9650
|
-
return findDOMNode(x.current ||
|
|
9650
|
+
return findDOMNode(x.current || g.current);
|
|
9651
9651
|
} catch {
|
|
9652
9652
|
return null;
|
|
9653
9653
|
}
|
|
9654
9654
|
}
|
|
9655
|
-
var C = useStatus(v, c,
|
|
9655
|
+
var C = useStatus(v, c, I, o), y = _slicedToArray(C, 4), O = y[0], b = y[1], E = y[2], w = y[3], _ = useRef(a);
|
|
9656
9656
|
_.current = a;
|
|
9657
9657
|
var S = React.useCallback(function(L) {
|
|
9658
9658
|
x.current = L, fillRef(_.current, L);
|
|
@@ -9677,7 +9677,7 @@ function genCSSMotion(e) {
|
|
|
9677
9677
|
}), S);
|
|
9678
9678
|
}
|
|
9679
9679
|
return /* @__PURE__ */ jsx(DomWrapper, {
|
|
9680
|
-
ref:
|
|
9680
|
+
ref: g,
|
|
9681
9681
|
children: k
|
|
9682
9682
|
});
|
|
9683
9683
|
});
|
|
@@ -9769,16 +9769,16 @@ function genCSSMotionList(e) {
|
|
|
9769
9769
|
}), delete h.keys, /* @__PURE__ */ jsx(m, {
|
|
9770
9770
|
...Object.assign({}, h),
|
|
9771
9771
|
children: l.map(function(x) {
|
|
9772
|
-
var
|
|
9772
|
+
var g = x.status, I = _objectWithoutProperties(x, ["status"]), C = g === STATUS_ADD || g === STATUS_KEEP;
|
|
9773
9773
|
return /* @__PURE__ */ jsx(t, {
|
|
9774
9774
|
...Object.assign({}, v, {
|
|
9775
|
-
key:
|
|
9775
|
+
key: I.key,
|
|
9776
9776
|
visible: C,
|
|
9777
|
-
eventProps:
|
|
9777
|
+
eventProps: I,
|
|
9778
9778
|
onVisibleChanged: function(O) {
|
|
9779
9779
|
p == null || p(O, {
|
|
9780
|
-
key:
|
|
9781
|
-
}), O || c.removeKey(
|
|
9780
|
+
key: I.key
|
|
9781
|
+
}), O || c.removeKey(I.key);
|
|
9782
9782
|
}
|
|
9783
9783
|
}),
|
|
9784
9784
|
children: f
|
|
@@ -9847,8 +9847,8 @@ var Notice$1 = /* @__PURE__ */ function(e) {
|
|
|
9847
9847
|
}, {
|
|
9848
9848
|
key: "render",
|
|
9849
9849
|
value: function() {
|
|
9850
|
-
var o = this, a = this.props, s = a.prefixCls, c = a.className, l = a.closable, u = a.closeIcon, d = a.style, f = a.onClick, p = a.children, h = a.holder, m = "".concat(s, "-notice"), v = Object.keys(this.props).reduce(function(
|
|
9851
|
-
return (
|
|
9850
|
+
var o = this, a = this.props, s = a.prefixCls, c = a.className, l = a.closable, u = a.closeIcon, d = a.style, f = a.onClick, p = a.children, h = a.holder, m = "".concat(s, "-notice"), v = Object.keys(this.props).reduce(function(g, I) {
|
|
9851
|
+
return (I.substr(0, 5) === "data-" || I.substr(0, 5) === "aria-" || I === "role") && (g[I] = o.props[I]), g;
|
|
9852
9852
|
}, {}), x = /* @__PURE__ */ jsxs("div", {
|
|
9853
9853
|
...Object.assign({
|
|
9854
9854
|
className: classnamesExports(m, c, _defineProperty$1({}, "".concat(m, "-closable"), l)),
|
|
@@ -9952,12 +9952,12 @@ var Notification = /* @__PURE__ */ function(e) {
|
|
|
9952
9952
|
value: function() {
|
|
9953
9953
|
var o = this, a = this.state.notices, s = this.props, c = s.prefixCls, l = s.className, u = s.closeIcon, d = s.style, f = [];
|
|
9954
9954
|
return a.forEach(function(p, h) {
|
|
9955
|
-
var m = p.notice, v = p.holderCallback, x = h === a.length - 1 ? m.updateMark : void 0,
|
|
9955
|
+
var m = p.notice, v = p.holderCallback, x = h === a.length - 1 ? m.updateMark : void 0, g = m.key, I = m.userPassKey, C = _objectSpread2$1(_objectSpread2$1(_objectSpread2$1({
|
|
9956
9956
|
prefixCls: c,
|
|
9957
9957
|
closeIcon: u
|
|
9958
9958
|
}, m), m.props), {}, {
|
|
9959
|
-
key:
|
|
9960
|
-
noticeKey:
|
|
9959
|
+
key: g,
|
|
9960
|
+
noticeKey: I || g,
|
|
9961
9961
|
updateMark: x,
|
|
9962
9962
|
onClose: function(O) {
|
|
9963
9963
|
var b;
|
|
@@ -9966,7 +9966,7 @@ var Notification = /* @__PURE__ */ function(e) {
|
|
|
9966
9966
|
onClick: m.onClick,
|
|
9967
9967
|
children: m.content
|
|
9968
9968
|
});
|
|
9969
|
-
f.push(
|
|
9969
|
+
f.push(g), o.noticePropsMap[g] = {
|
|
9970
9970
|
props: C,
|
|
9971
9971
|
holderCallback: v
|
|
9972
9972
|
};
|
|
@@ -9981,17 +9981,17 @@ var Notification = /* @__PURE__ */ function(e) {
|
|
|
9981
9981
|
h || delete o.noticePropsMap[v];
|
|
9982
9982
|
},
|
|
9983
9983
|
children: function(p) {
|
|
9984
|
-
var h = p.key, m = p.className, v = p.style, x = o.noticePropsMap[h],
|
|
9985
|
-
return
|
|
9984
|
+
var h = p.key, m = p.className, v = p.style, x = o.noticePropsMap[h], g = x.props, I = x.holderCallback;
|
|
9985
|
+
return I ? /* @__PURE__ */ jsx("div", {
|
|
9986
9986
|
className: classnamesExports(m, "".concat(c, "-hook-holder")),
|
|
9987
9987
|
style: _objectSpread2$1({}, v),
|
|
9988
9988
|
ref: function(y) {
|
|
9989
|
-
typeof h > "u" || (y ? (o.hookRefs.set(h, y),
|
|
9989
|
+
typeof h > "u" || (y ? (o.hookRefs.set(h, y), I(y, g)) : o.hookRefs.delete(h));
|
|
9990
9990
|
}
|
|
9991
9991
|
}, h) : /* @__PURE__ */ jsx(Notice$1, {
|
|
9992
|
-
...Object.assign({},
|
|
9993
|
-
className: classnamesExports(m,
|
|
9994
|
-
style: _objectSpread2$1(_objectSpread2$1({}, v),
|
|
9992
|
+
...Object.assign({}, g, {
|
|
9993
|
+
className: classnamesExports(m, g == null ? void 0 : g.className),
|
|
9994
|
+
style: _objectSpread2$1(_objectSpread2$1({}, v), g == null ? void 0 : g.style)
|
|
9995
9995
|
})
|
|
9996
9996
|
});
|
|
9997
9997
|
}
|
|
@@ -10231,8 +10231,8 @@ function requireNotice() {
|
|
|
10231
10231
|
var m;
|
|
10232
10232
|
return (0, r.default)(this, h), m = p.apply(this, arguments), m.closeTimer = null, m.close = function(v) {
|
|
10233
10233
|
v && v.stopPropagation(), m.clearCloseTimer();
|
|
10234
|
-
var x = m.props,
|
|
10235
|
-
|
|
10234
|
+
var x = m.props, g = x.onClose, I = x.noticeKey;
|
|
10235
|
+
g && g(I);
|
|
10236
10236
|
}, m.startCloseTimer = function() {
|
|
10237
10237
|
m.props.duration && (m.closeTimer = window.setTimeout(function() {
|
|
10238
10238
|
m.close();
|
|
@@ -10264,10 +10264,10 @@ function requireNotice() {
|
|
|
10264
10264
|
}, {
|
|
10265
10265
|
key: "render",
|
|
10266
10266
|
value: function() {
|
|
10267
|
-
var v = this, x = this.props,
|
|
10267
|
+
var v = this, x = this.props, g = x.prefixCls, I = x.className, C = x.closable, y = x.closeIcon, O = x.style, b = x.onClick, E = x.children, w = x.holder, _ = "".concat(g, "-notice"), S = Object.keys(this.props).reduce(function(N, D) {
|
|
10268
10268
|
return (D.substr(0, 5) === "data-" || D.substr(0, 5) === "aria-" || D === "role") && (N[D] = v.props[D]), N;
|
|
10269
10269
|
}, {}), k = c.createElement("div", Object.assign({
|
|
10270
|
-
className: (0, u.default)(_,
|
|
10270
|
+
className: (0, u.default)(_, I, (0, n.default)({}, "".concat(_, "-closable"), C)),
|
|
10271
10271
|
style: O,
|
|
10272
10272
|
onMouseEnter: this.clearCloseTimer,
|
|
10273
10273
|
onMouseLeave: this.startCloseTimer,
|
|
@@ -10305,13 +10305,13 @@ function requireUseNotification$1() {
|
|
|
10305
10305
|
var l = o.useRef({}), u = o.useState([]), d = (0, r.default)(u, 2), f = d[0], p = d[1];
|
|
10306
10306
|
function h(m) {
|
|
10307
10307
|
c.add(m, function(v, x) {
|
|
10308
|
-
var
|
|
10309
|
-
if (v && !l.current[
|
|
10310
|
-
var
|
|
10308
|
+
var g = x.key;
|
|
10309
|
+
if (v && !l.current[g]) {
|
|
10310
|
+
var I = o.createElement(a.default, Object.assign({}, x, {
|
|
10311
10311
|
holder: v
|
|
10312
10312
|
}));
|
|
10313
|
-
l.current[
|
|
10314
|
-
return [].concat((0, n.default)(C), [
|
|
10313
|
+
l.current[g] = I, p(function(C) {
|
|
10314
|
+
return [].concat((0, n.default)(C), [I]);
|
|
10315
10315
|
});
|
|
10316
10316
|
}
|
|
10317
10317
|
});
|
|
@@ -10334,7 +10334,7 @@ function requireUseMessage() {
|
|
|
10334
10334
|
add: function(w, _) {
|
|
10335
10335
|
v == null || v.component.add(w, _);
|
|
10336
10336
|
}
|
|
10337
|
-
},
|
|
10337
|
+
}, g = (0, s.default)(x), I = (0, o.default)(g, 2), C = I[0], y = I[1];
|
|
10338
10338
|
function O(E) {
|
|
10339
10339
|
var w = E.prefixCls, _ = m("message", w), S = E.key || (0, l.getKeyThenIncreaseKey)(), k = new Promise(function(D) {
|
|
10340
10340
|
var M = function() {
|
|
@@ -10376,15 +10376,15 @@ function requireMessage() {
|
|
|
10376
10376
|
Object.defineProperty(e, "__esModule", {
|
|
10377
10377
|
value: !0
|
|
10378
10378
|
}), e.getKeyThenIncreaseKey = E, e.attachTypeApi = L, e.default = e.getInstance = void 0;
|
|
10379
|
-
var r = n(require_extends()), o = n(requireDefineProperty()), a = t(React__default), s = n(requireClassnames()), c = n(require$$6$1), l = n(requireLoadingOutlined()), u = n(requireExclamationCircleFilled()), d = n(requireCloseCircleFilled()), f = n(requireCheckCircleFilled()), p = n(requireInfoCircleFilled()), h = n(requireUseMessage()), m, v = 3, x,
|
|
10379
|
+
var r = n(require_extends()), o = n(requireDefineProperty()), a = t(React__default), s = n(requireClassnames()), c = n(require$$6$1), l = n(requireLoadingOutlined()), u = n(requireExclamationCircleFilled()), d = n(requireCloseCircleFilled()), f = n(requireCheckCircleFilled()), p = n(requireInfoCircleFilled()), h = n(requireUseMessage()), m, v = 3, x, g = 1, I = "ant-message", C = "move-up", y, O, b = !1;
|
|
10380
10380
|
function E() {
|
|
10381
|
-
return
|
|
10381
|
+
return g++;
|
|
10382
10382
|
}
|
|
10383
10383
|
function w(B) {
|
|
10384
|
-
B.top !== void 0 && (x = B.top, m = null), B.duration !== void 0 && (v = B.duration), B.prefixCls !== void 0 && (
|
|
10384
|
+
B.top !== void 0 && (x = B.top, m = null), B.duration !== void 0 && (v = B.duration), B.prefixCls !== void 0 && (I = B.prefixCls), B.getContainer !== void 0 && (y = B.getContainer), B.transitionName !== void 0 && (C = B.transitionName, m = null), B.maxCount !== void 0 && (O = B.maxCount, m = null), B.rtl !== void 0 && (b = B.rtl);
|
|
10385
10385
|
}
|
|
10386
10386
|
function _(B, U) {
|
|
10387
|
-
var G = B.prefixCls ||
|
|
10387
|
+
var G = B.prefixCls || I;
|
|
10388
10388
|
if (m) {
|
|
10389
10389
|
U({
|
|
10390
10390
|
prefixCls: G,
|
|
@@ -10436,7 +10436,7 @@ function requireMessage() {
|
|
|
10436
10436
|
};
|
|
10437
10437
|
}
|
|
10438
10438
|
function N(B) {
|
|
10439
|
-
var U = B.key ||
|
|
10439
|
+
var U = B.key || g++, G = new Promise(function(W) {
|
|
10440
10440
|
var Z = function() {
|
|
10441
10441
|
return typeof B.onClose == "function" && B.onClose(), W(!0);
|
|
10442
10442
|
};
|
|
@@ -10713,14 +10713,14 @@ function requireUseNotification() {
|
|
|
10713
10713
|
add: function(E, w) {
|
|
10714
10714
|
m == null || m.component.add(E, w);
|
|
10715
10715
|
}
|
|
10716
|
-
}, x = (0, s.default)(v),
|
|
10716
|
+
}, x = (0, s.default)(v), g = (0, o.default)(x, 2), I = g[0], C = g[1];
|
|
10717
10717
|
function y(b) {
|
|
10718
10718
|
var E = b.prefixCls, w = h("notification", E);
|
|
10719
10719
|
u((0, r.default)((0, r.default)({}, b), {
|
|
10720
10720
|
prefixCls: w
|
|
10721
10721
|
}), function(_) {
|
|
10722
10722
|
var S = _.prefixCls, k = _.instance;
|
|
10723
|
-
m = k,
|
|
10723
|
+
m = k, I(d(b, S));
|
|
10724
10724
|
});
|
|
10725
10725
|
}
|
|
10726
10726
|
var O = a.useRef({});
|
|
@@ -10773,13 +10773,13 @@ function requireNotification() {
|
|
|
10773
10773
|
}
|
|
10774
10774
|
A((z = z.apply(B, U || [])).next());
|
|
10775
10775
|
});
|
|
10776
|
-
}, x = {},
|
|
10776
|
+
}, x = {}, g = 4.5, I = 24, C = 24, y = "ant-notification", O = "topRight", b, E, w = !1;
|
|
10777
10777
|
function _(B) {
|
|
10778
10778
|
var U = B.duration, G = B.placement, z = B.bottom, W = B.top, Z = B.getContainer, V = B.closeIcon, H = B.prefixCls;
|
|
10779
|
-
H !== void 0 && (y = H), U !== void 0 && (
|
|
10779
|
+
H !== void 0 && (y = H), U !== void 0 && (g = U), G !== void 0 ? O = G : B.rtl && (O = "topLeft"), z !== void 0 && (C = z), W !== void 0 && (I = W), Z !== void 0 && (b = Z), V !== void 0 && (E = V), B.rtl !== void 0 && (w = B.rtl);
|
|
10780
10780
|
}
|
|
10781
10781
|
function S(B) {
|
|
10782
|
-
var U = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] :
|
|
10782
|
+
var U = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : I, G = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : C, z;
|
|
10783
10783
|
switch (B) {
|
|
10784
10784
|
case "topLeft":
|
|
10785
10785
|
z = {
|
|
@@ -10850,7 +10850,7 @@ function requireNotification() {
|
|
|
10850
10850
|
warning: p.default
|
|
10851
10851
|
};
|
|
10852
10852
|
function D(B, U) {
|
|
10853
|
-
var G = B.duration === void 0 ?
|
|
10853
|
+
var G = B.duration === void 0 ? g : B.duration, z = null;
|
|
10854
10854
|
B.icon ? z = /* @__PURE__ */ s.createElement("span", {
|
|
10855
10855
|
className: "".concat(U, "-icon")
|
|
10856
10856
|
}, B.icon) : B.type && (z = /* @__PURE__ */ s.createElement(N[B.type] || null, {
|
|
@@ -10993,7 +10993,7 @@ function requireConfigProvider() {
|
|
|
10993
10993
|
}, W)), /* @__PURE__ */ o.createElement(d.ConfigContext.Provider, {
|
|
10994
10994
|
value: G
|
|
10995
10995
|
}, W);
|
|
10996
|
-
},
|
|
10996
|
+
}, g = function(y) {
|
|
10997
10997
|
return o.useEffect(function() {
|
|
10998
10998
|
y.direction && (p.default.config({
|
|
10999
10999
|
rtl: y.direction === "rtl"
|
|
@@ -11009,9 +11009,9 @@ function requireConfigProvider() {
|
|
|
11009
11009
|
});
|
|
11010
11010
|
});
|
|
11011
11011
|
};
|
|
11012
|
-
|
|
11013
|
-
var
|
|
11014
|
-
e.default =
|
|
11012
|
+
g.ConfigContext = d.ConfigContext, g.SizeContext = f.default;
|
|
11013
|
+
var I = g;
|
|
11014
|
+
e.default = I;
|
|
11015
11015
|
}(configProvider)), configProvider;
|
|
11016
11016
|
}
|
|
11017
11017
|
var hasRequiredInput;
|
|
@@ -11020,12 +11020,12 @@ function requireInput() {
|
|
|
11020
11020
|
var t = interopRequireWildcard.exports, n = interopRequireDefault.exports;
|
|
11021
11021
|
Object.defineProperty(e, "__esModule", {
|
|
11022
11022
|
value: !0
|
|
11023
|
-
}), e.fixControlledValue = x, e.resolveOnChange =
|
|
11023
|
+
}), e.fixControlledValue = x, e.resolveOnChange = g, e.getInputClassName = I, e.triggerFocus = C, e.default = void 0;
|
|
11024
11024
|
var r = n(require_extends()), o = n(requireClassCallCheck()), a = n(requireCreateClass()), s = n(requireInherits()), c = n(requireCreateSuper()), l = n(requireDefineProperty()), u = t(React__default), d = n(requireClassnames()), f = n(requireOmit()), p = t(requireClearableLabeledInput()), h = requireConfigProvider(), m = n(requireSizeContext()), v = n(requireDevWarning());
|
|
11025
11025
|
function x(b) {
|
|
11026
11026
|
return typeof b > "u" || b === null ? "" : b;
|
|
11027
11027
|
}
|
|
11028
|
-
function
|
|
11028
|
+
function g(b, E, w) {
|
|
11029
11029
|
if (w) {
|
|
11030
11030
|
var _ = E;
|
|
11031
11031
|
if (E.type === "click") {
|
|
@@ -11037,7 +11037,7 @@ function requireInput() {
|
|
|
11037
11037
|
w(_);
|
|
11038
11038
|
}
|
|
11039
11039
|
}
|
|
11040
|
-
function
|
|
11040
|
+
function I(b, E, w, _, S) {
|
|
11041
11041
|
var k;
|
|
11042
11042
|
return (0, d.default)(b, (k = {}, (0, l.default)(k, "".concat(b, "-sm"), w === "small"), (0, l.default)(k, "".concat(b, "-lg"), w === "large"), (0, l.default)(k, "".concat(b, "-disabled"), _), (0, l.default)(k, "".concat(b, "-rtl"), S === "rtl"), (0, l.default)(k, "".concat(b, "-borderless"), !E), k));
|
|
11043
11043
|
}
|
|
@@ -11084,7 +11084,7 @@ function requireInput() {
|
|
|
11084
11084
|
}, S.handleReset = function(N) {
|
|
11085
11085
|
S.setValue("", function() {
|
|
11086
11086
|
S.focus();
|
|
11087
|
-
}),
|
|
11087
|
+
}), g(S.input, N, S.props.onChange);
|
|
11088
11088
|
}, S.renderInput = function(N, D, M) {
|
|
11089
11089
|
var L = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {}, q = S.props, $ = q.className, B = q.addonBefore, U = q.addonAfter, G = q.size, z = q.disabled, W = (0, f.default)(S.props, [
|
|
11090
11090
|
"prefixCls",
|
|
@@ -11106,7 +11106,7 @@ function requireInput() {
|
|
|
11106
11106
|
onFocus: S.onFocus,
|
|
11107
11107
|
onBlur: S.onBlur,
|
|
11108
11108
|
onKeyDown: S.handleKeyDown,
|
|
11109
|
-
className: (0, d.default)(
|
|
11109
|
+
className: (0, d.default)(I(N, M, G || D, z, S.direction), (0, l.default)({}, $, $ && !B && !U)),
|
|
11110
11110
|
ref: S.saveInput
|
|
11111
11111
|
}));
|
|
11112
11112
|
}, S.clearPasswordValueAttribute = function() {
|
|
@@ -11114,7 +11114,7 @@ function requireInput() {
|
|
|
11114
11114
|
S.input && S.input.getAttribute("type") === "password" && S.input.hasAttribute("value") && S.input.removeAttribute("value");
|
|
11115
11115
|
});
|
|
11116
11116
|
}, S.handleChange = function(N) {
|
|
11117
|
-
S.setValue(N.target.value, S.clearPasswordValueAttribute),
|
|
11117
|
+
S.setValue(N.target.value, S.clearPasswordValueAttribute), g(S.input, N, S.props.onChange);
|
|
11118
11118
|
}, S.handleKeyDown = function(N) {
|
|
11119
11119
|
var D = S.props, M = D.onPressEnter, L = D.onKeyDown;
|
|
11120
11120
|
N.keyCode === 13 && M && M(N), L && L(N);
|
|
@@ -11240,7 +11240,7 @@ function requireClearableLabeledInput() {
|
|
|
11240
11240
|
function x(C) {
|
|
11241
11241
|
return !!(C.addonBefore || C.addonAfter);
|
|
11242
11242
|
}
|
|
11243
|
-
var
|
|
11243
|
+
var g = /* @__PURE__ */ function(C) {
|
|
11244
11244
|
(0, s.default)(O, C);
|
|
11245
11245
|
var y = (0, c.default)(O);
|
|
11246
11246
|
function O() {
|
|
@@ -11340,8 +11340,8 @@ function requireClearableLabeledInput() {
|
|
|
11340
11340
|
return _ === m[0] ? this.renderTextAreaWithClearIcon(w, S) : this.renderInputWithLabel(w, this.renderLabeledIcon(w, S));
|
|
11341
11341
|
}
|
|
11342
11342
|
}]), O;
|
|
11343
|
-
}(l.Component),
|
|
11344
|
-
e.default =
|
|
11343
|
+
}(l.Component), I = g;
|
|
11344
|
+
e.default = I;
|
|
11345
11345
|
}(ClearableLabeledInput)), ClearableLabeledInput;
|
|
11346
11346
|
}
|
|
11347
11347
|
(function(e) {
|
|
@@ -11349,7 +11349,7 @@ function requireClearableLabeledInput() {
|
|
|
11349
11349
|
Object.defineProperty(e, "__esModule", {
|
|
11350
11350
|
value: !0
|
|
11351
11351
|
}), e.default = void 0;
|
|
11352
|
-
var r = n(_typeof$2.exports), o = n(requireToConsumableArray()), a = n(require_extends()), s = n(requireDefineProperty()), c = n(requireSlicedToArray()), l = t(React__default), u = n(require$$8), d = n(requireOmit()), f = n(requireClassnames()), p = n(requireUseMergedState()), h = n(requireClearableLabeledInput()), m = requireConfigProvider(), v = requireInput(), x = n(requireSizeContext()),
|
|
11352
|
+
var r = n(_typeof$2.exports), o = n(requireToConsumableArray()), a = n(require_extends()), s = n(requireDefineProperty()), c = n(requireSlicedToArray()), l = t(React__default), u = n(require$$8), d = n(requireOmit()), f = n(requireClassnames()), p = n(requireUseMergedState()), h = n(requireClearableLabeledInput()), m = requireConfigProvider(), v = requireInput(), x = n(requireSizeContext()), g = function(y, O) {
|
|
11353
11353
|
var b = {};
|
|
11354
11354
|
for (var E in y)
|
|
11355
11355
|
Object.prototype.hasOwnProperty.call(y, E) && O.indexOf(E) < 0 && (b[E] = y[E]);
|
|
@@ -11357,8 +11357,8 @@ function requireClearableLabeledInput() {
|
|
|
11357
11357
|
for (var w = 0, E = Object.getOwnPropertySymbols(y); w < E.length; w++)
|
|
11358
11358
|
O.indexOf(E[w]) < 0 && Object.prototype.propertyIsEnumerable.call(y, E[w]) && (b[E[w]] = y[E[w]]);
|
|
11359
11359
|
return b;
|
|
11360
|
-
},
|
|
11361
|
-
var b, E = y.prefixCls, w = y.bordered, _ = w === void 0 ? !0 : w, S = y.showCount, k = S === void 0 ? !1 : S, N = y.maxLength, D = y.className, M = y.style, L = y.size, q =
|
|
11360
|
+
}, I = /* @__PURE__ */ l.forwardRef(function(y, O) {
|
|
11361
|
+
var b, E = y.prefixCls, w = y.bordered, _ = w === void 0 ? !0 : w, S = y.showCount, k = S === void 0 ? !1 : S, N = y.maxLength, D = y.className, M = y.style, L = y.size, q = g(y, ["prefixCls", "bordered", "showCount", "maxLength", "className", "style", "size"]), $ = l.useContext(m.ConfigContext), B = $.getPrefixCls, U = $.direction, G = l.useContext(x.default), z = l.useRef(null), W = l.useRef(null), Z = (0, p.default)(q.defaultValue, {
|
|
11362
11362
|
value: q.value
|
|
11363
11363
|
}), V = (0, c.default)(Z, 2), H = V[0], P = V[1], A = l.useRef(q.value);
|
|
11364
11364
|
l.useEffect(function() {
|
|
@@ -11419,7 +11419,7 @@ function requireClearableLabeledInput() {
|
|
|
11419
11419
|
}, ne);
|
|
11420
11420
|
}
|
|
11421
11421
|
return ne;
|
|
11422
|
-
}), C =
|
|
11422
|
+
}), C = I;
|
|
11423
11423
|
e.default = C;
|
|
11424
11424
|
})(TextArea$3);
|
|
11425
11425
|
const TextArea$1 = /* @__PURE__ */ getDefaultExportFromCjs(TextArea$3), {
|
|
@@ -11456,11 +11456,11 @@ const TextArea$1 = /* @__PURE__ */ getDefaultExportFromCjs(TextArea$3), {
|
|
|
11456
11456
|
modalWidth: c
|
|
11457
11457
|
} = useWindowDimensions(), {
|
|
11458
11458
|
t: l
|
|
11459
|
-
} = useContext(LocaleContext), [u, d] = useState([]), [f, p] = useState(!1), [h, m] = useState(!1), [v, x] = useState({}),
|
|
11459
|
+
} = useContext(LocaleContext), [u, d] = useState([]), [f, p] = useState(!1), [h, m] = useState(!1), [v, x] = useState({}), g = useRef();
|
|
11460
11460
|
useEffect(() => {
|
|
11461
|
-
t ?
|
|
11461
|
+
t ? I() : x({});
|
|
11462
11462
|
}, [t]);
|
|
11463
|
-
async function
|
|
11463
|
+
async function I() {
|
|
11464
11464
|
p(!0);
|
|
11465
11465
|
try {
|
|
11466
11466
|
const w = await C();
|
|
@@ -11494,7 +11494,7 @@ const TextArea$1 = /* @__PURE__ */ getDefaultExportFromCjs(TextArea$3), {
|
|
|
11494
11494
|
}))[0];
|
|
11495
11495
|
_[S.code] = k[a] || "";
|
|
11496
11496
|
}
|
|
11497
|
-
|
|
11497
|
+
g.current = _, x(_);
|
|
11498
11498
|
}
|
|
11499
11499
|
function O() {
|
|
11500
11500
|
return u.map((w, _) => /* @__PURE__ */ jsxs(Row, {
|
|
@@ -11527,7 +11527,7 @@ const TextArea$1 = /* @__PURE__ */ getDefaultExportFromCjs(TextArea$3), {
|
|
|
11527
11527
|
m(!0);
|
|
11528
11528
|
try {
|
|
11529
11529
|
for (const w of Object.keys(v))
|
|
11530
|
-
v[w] !==
|
|
11530
|
+
v[w] !== g.current[w] && await ConnectionProvider.getHandler().update({
|
|
11531
11531
|
model: r,
|
|
11532
11532
|
id: o,
|
|
11533
11533
|
values: {
|
|
@@ -11863,7 +11863,7 @@ function debounce(e, t, n) {
|
|
|
11863
11863
|
return r = o = void 0, u = b, s = e.apply(w, E), s;
|
|
11864
11864
|
}
|
|
11865
11865
|
function m(b) {
|
|
11866
|
-
return u = b, c = setTimeout(
|
|
11866
|
+
return u = b, c = setTimeout(g, t), d ? h(b) : s;
|
|
11867
11867
|
}
|
|
11868
11868
|
function v(b) {
|
|
11869
11869
|
var E = b - l, w = b - u, _ = t - E;
|
|
@@ -11873,20 +11873,20 @@ function debounce(e, t, n) {
|
|
|
11873
11873
|
var E = b - l, w = b - u;
|
|
11874
11874
|
return l === void 0 || E >= t || E < 0 || f && w >= a;
|
|
11875
11875
|
}
|
|
11876
|
-
function
|
|
11876
|
+
function g() {
|
|
11877
11877
|
var b = now$1();
|
|
11878
11878
|
if (x(b))
|
|
11879
|
-
return
|
|
11880
|
-
c = setTimeout(
|
|
11879
|
+
return I(b);
|
|
11880
|
+
c = setTimeout(g, v(b));
|
|
11881
11881
|
}
|
|
11882
|
-
function
|
|
11882
|
+
function I(b) {
|
|
11883
11883
|
return c = void 0, p && r ? h(b) : (r = o = void 0, s);
|
|
11884
11884
|
}
|
|
11885
11885
|
function C() {
|
|
11886
11886
|
c !== void 0 && clearTimeout(c), u = 0, r = l = o = c = void 0;
|
|
11887
11887
|
}
|
|
11888
11888
|
function y() {
|
|
11889
|
-
return c === void 0 ? s :
|
|
11889
|
+
return c === void 0 ? s : I(now$1());
|
|
11890
11890
|
}
|
|
11891
11891
|
function O() {
|
|
11892
11892
|
var b = now$1(), E = x(b);
|
|
@@ -11894,9 +11894,9 @@ function debounce(e, t, n) {
|
|
|
11894
11894
|
if (c === void 0)
|
|
11895
11895
|
return m(l);
|
|
11896
11896
|
if (f)
|
|
11897
|
-
return clearTimeout(c), c = setTimeout(
|
|
11897
|
+
return clearTimeout(c), c = setTimeout(g, t), h(l);
|
|
11898
11898
|
}
|
|
11899
|
-
return c === void 0 && (c = setTimeout(
|
|
11899
|
+
return c === void 0 && (c = setTimeout(g, t)), s;
|
|
11900
11900
|
}
|
|
11901
11901
|
return O.cancel = C, O.flush = y, O;
|
|
11902
11902
|
}
|
|
@@ -12224,8 +12224,8 @@ function requireBuffer_list() {
|
|
|
12224
12224
|
value: function(m) {
|
|
12225
12225
|
if (this.length === 0)
|
|
12226
12226
|
return c.alloc(0);
|
|
12227
|
-
for (var v = c.allocUnsafe(m >>> 0), x = this.head,
|
|
12228
|
-
f(x.data, v,
|
|
12227
|
+
for (var v = c.allocUnsafe(m >>> 0), x = this.head, g = 0; x; )
|
|
12228
|
+
f(x.data, v, g), g += x.data.length, x = x.next;
|
|
12229
12229
|
return v;
|
|
12230
12230
|
}
|
|
12231
12231
|
}, {
|
|
@@ -12242,30 +12242,30 @@ function requireBuffer_list() {
|
|
|
12242
12242
|
}, {
|
|
12243
12243
|
key: "_getString",
|
|
12244
12244
|
value: function(m) {
|
|
12245
|
-
var v = this.head, x = 1,
|
|
12246
|
-
for (m -=
|
|
12247
|
-
var
|
|
12248
|
-
if (C ===
|
|
12249
|
-
C ===
|
|
12245
|
+
var v = this.head, x = 1, g = v.data;
|
|
12246
|
+
for (m -= g.length; v = v.next; ) {
|
|
12247
|
+
var I = v.data, C = m > I.length ? I.length : m;
|
|
12248
|
+
if (C === I.length ? g += I : g += I.slice(0, m), m -= C, m === 0) {
|
|
12249
|
+
C === I.length ? (++x, v.next ? this.head = v.next : this.head = this.tail = null) : (this.head = v, v.data = I.slice(C));
|
|
12250
12250
|
break;
|
|
12251
12251
|
}
|
|
12252
12252
|
++x;
|
|
12253
12253
|
}
|
|
12254
|
-
return this.length -= x,
|
|
12254
|
+
return this.length -= x, g;
|
|
12255
12255
|
}
|
|
12256
12256
|
}, {
|
|
12257
12257
|
key: "_getBuffer",
|
|
12258
12258
|
value: function(m) {
|
|
12259
|
-
var v = c.allocUnsafe(m), x = this.head,
|
|
12259
|
+
var v = c.allocUnsafe(m), x = this.head, g = 1;
|
|
12260
12260
|
for (x.data.copy(v), m -= x.data.length; x = x.next; ) {
|
|
12261
|
-
var
|
|
12262
|
-
if (
|
|
12263
|
-
C ===
|
|
12261
|
+
var I = x.data, C = m > I.length ? I.length : m;
|
|
12262
|
+
if (I.copy(v, v.length - m, 0, C), m -= C, m === 0) {
|
|
12263
|
+
C === I.length ? (++g, x.next ? this.head = x.next : this.head = this.tail = null) : (this.head = x, x.data = I.slice(C));
|
|
12264
12264
|
break;
|
|
12265
12265
|
}
|
|
12266
|
-
++
|
|
12266
|
+
++g;
|
|
12267
12267
|
}
|
|
12268
|
-
return this.length -=
|
|
12268
|
+
return this.length -= g, v;
|
|
12269
12269
|
}
|
|
12270
12270
|
}, {
|
|
12271
12271
|
key: d,
|
|
@@ -12456,7 +12456,7 @@ function require_stream_writable() {
|
|
|
12456
12456
|
function c(P) {
|
|
12457
12457
|
return o.isBuffer(P) || P instanceof a;
|
|
12458
12458
|
}
|
|
12459
|
-
var l = destroy_1, u = state, d = u.getHighWaterMark, f = errorsBrowser.codes, p = f.ERR_INVALID_ARG_TYPE, h = f.ERR_METHOD_NOT_IMPLEMENTED, m = f.ERR_MULTIPLE_CALLBACK, v = f.ERR_STREAM_CANNOT_PIPE, x = f.ERR_STREAM_DESTROYED,
|
|
12459
|
+
var l = destroy_1, u = state, d = u.getHighWaterMark, f = errorsBrowser.codes, p = f.ERR_INVALID_ARG_TYPE, h = f.ERR_METHOD_NOT_IMPLEMENTED, m = f.ERR_MULTIPLE_CALLBACK, v = f.ERR_STREAM_CANNOT_PIPE, x = f.ERR_STREAM_DESTROYED, g = f.ERR_STREAM_NULL_VALUES, I = f.ERR_STREAM_WRITE_AFTER_END, C = f.ERR_UNKNOWN_ENCODING, y = l.errorOrDestroy;
|
|
12460
12460
|
inherits_browser.exports(w, r);
|
|
12461
12461
|
function O() {
|
|
12462
12462
|
}
|
|
@@ -12500,12 +12500,12 @@ function require_stream_writable() {
|
|
|
12500
12500
|
y(this, new v());
|
|
12501
12501
|
};
|
|
12502
12502
|
function _(P, A) {
|
|
12503
|
-
var j = new
|
|
12503
|
+
var j = new I();
|
|
12504
12504
|
y(P, j), process.nextTick(A, j);
|
|
12505
12505
|
}
|
|
12506
12506
|
function S(P, A, j, K) {
|
|
12507
12507
|
var X;
|
|
12508
|
-
return j === null ? X = new
|
|
12508
|
+
return j === null ? X = new g() : typeof j != "string" && !A.objectMode && (X = new p("chunk", ["string", "Buffer"], j)), X ? (y(P, X), process.nextTick(K, X), !1) : !0;
|
|
12509
12509
|
}
|
|
12510
12510
|
w.prototype.write = function(P, A, j) {
|
|
12511
12511
|
var K = this._writableState, X = !1, F = !K.objectMode && c(P);
|
|
@@ -12745,8 +12745,8 @@ function requireString_decoder() {
|
|
|
12745
12745
|
if (hasRequiredString_decoder)
|
|
12746
12746
|
return string_decoder;
|
|
12747
12747
|
hasRequiredString_decoder = 1;
|
|
12748
|
-
var e = requireSafeBuffer().Buffer, t = e.isEncoding || function(
|
|
12749
|
-
switch (
|
|
12748
|
+
var e = requireSafeBuffer().Buffer, t = e.isEncoding || function(g) {
|
|
12749
|
+
switch (g = "" + g, g && g.toLowerCase()) {
|
|
12750
12750
|
case "hex":
|
|
12751
12751
|
case "utf8":
|
|
12752
12752
|
case "utf-8":
|
|
@@ -12763,11 +12763,11 @@ function requireString_decoder() {
|
|
|
12763
12763
|
return !1;
|
|
12764
12764
|
}
|
|
12765
12765
|
};
|
|
12766
|
-
function n(
|
|
12767
|
-
if (!
|
|
12766
|
+
function n(g) {
|
|
12767
|
+
if (!g)
|
|
12768
12768
|
return "utf8";
|
|
12769
|
-
for (var
|
|
12770
|
-
switch (
|
|
12769
|
+
for (var I; ; )
|
|
12770
|
+
switch (g) {
|
|
12771
12771
|
case "utf8":
|
|
12772
12772
|
case "utf-8":
|
|
12773
12773
|
return "utf8";
|
|
@@ -12782,128 +12782,128 @@ function requireString_decoder() {
|
|
|
12782
12782
|
case "base64":
|
|
12783
12783
|
case "ascii":
|
|
12784
12784
|
case "hex":
|
|
12785
|
-
return
|
|
12785
|
+
return g;
|
|
12786
12786
|
default:
|
|
12787
|
-
if (
|
|
12787
|
+
if (I)
|
|
12788
12788
|
return;
|
|
12789
|
-
|
|
12789
|
+
g = ("" + g).toLowerCase(), I = !0;
|
|
12790
12790
|
}
|
|
12791
12791
|
}
|
|
12792
|
-
function r(
|
|
12793
|
-
var
|
|
12794
|
-
if (typeof
|
|
12795
|
-
throw new Error("Unknown encoding: " +
|
|
12796
|
-
return
|
|
12792
|
+
function r(g) {
|
|
12793
|
+
var I = n(g);
|
|
12794
|
+
if (typeof I != "string" && (e.isEncoding === t || !t(g)))
|
|
12795
|
+
throw new Error("Unknown encoding: " + g);
|
|
12796
|
+
return I || g;
|
|
12797
12797
|
}
|
|
12798
12798
|
string_decoder.StringDecoder = o;
|
|
12799
|
-
function o(
|
|
12800
|
-
this.encoding = r(
|
|
12801
|
-
var
|
|
12799
|
+
function o(g) {
|
|
12800
|
+
this.encoding = r(g);
|
|
12801
|
+
var I;
|
|
12802
12802
|
switch (this.encoding) {
|
|
12803
12803
|
case "utf16le":
|
|
12804
|
-
this.text = f, this.end = p,
|
|
12804
|
+
this.text = f, this.end = p, I = 4;
|
|
12805
12805
|
break;
|
|
12806
12806
|
case "utf8":
|
|
12807
|
-
this.fillLast = l,
|
|
12807
|
+
this.fillLast = l, I = 4;
|
|
12808
12808
|
break;
|
|
12809
12809
|
case "base64":
|
|
12810
|
-
this.text = h, this.end = m,
|
|
12810
|
+
this.text = h, this.end = m, I = 3;
|
|
12811
12811
|
break;
|
|
12812
12812
|
default:
|
|
12813
12813
|
this.write = v, this.end = x;
|
|
12814
12814
|
return;
|
|
12815
12815
|
}
|
|
12816
|
-
this.lastNeed = 0, this.lastTotal = 0, this.lastChar = e.allocUnsafe(
|
|
12816
|
+
this.lastNeed = 0, this.lastTotal = 0, this.lastChar = e.allocUnsafe(I);
|
|
12817
12817
|
}
|
|
12818
|
-
o.prototype.write = function(
|
|
12819
|
-
if (
|
|
12818
|
+
o.prototype.write = function(g) {
|
|
12819
|
+
if (g.length === 0)
|
|
12820
12820
|
return "";
|
|
12821
|
-
var
|
|
12821
|
+
var I, C;
|
|
12822
12822
|
if (this.lastNeed) {
|
|
12823
|
-
if (
|
|
12823
|
+
if (I = this.fillLast(g), I === void 0)
|
|
12824
12824
|
return "";
|
|
12825
12825
|
C = this.lastNeed, this.lastNeed = 0;
|
|
12826
12826
|
} else
|
|
12827
12827
|
C = 0;
|
|
12828
|
-
return C <
|
|
12829
|
-
}, o.prototype.end = d, o.prototype.text = u, o.prototype.fillLast = function(
|
|
12830
|
-
if (this.lastNeed <=
|
|
12831
|
-
return
|
|
12832
|
-
|
|
12828
|
+
return C < g.length ? I ? I + this.text(g, C) : this.text(g, C) : I || "";
|
|
12829
|
+
}, o.prototype.end = d, o.prototype.text = u, o.prototype.fillLast = function(g) {
|
|
12830
|
+
if (this.lastNeed <= g.length)
|
|
12831
|
+
return g.copy(this.lastChar, this.lastTotal - this.lastNeed, 0, this.lastNeed), this.lastChar.toString(this.encoding, 0, this.lastTotal);
|
|
12832
|
+
g.copy(this.lastChar, this.lastTotal - this.lastNeed, 0, g.length), this.lastNeed -= g.length;
|
|
12833
12833
|
};
|
|
12834
|
-
function a(
|
|
12835
|
-
return
|
|
12834
|
+
function a(g) {
|
|
12835
|
+
return g <= 127 ? 0 : g >> 5 === 6 ? 2 : g >> 4 === 14 ? 3 : g >> 3 === 30 ? 4 : g >> 6 === 2 ? -1 : -2;
|
|
12836
12836
|
}
|
|
12837
|
-
function s(
|
|
12838
|
-
var y =
|
|
12837
|
+
function s(g, I, C) {
|
|
12838
|
+
var y = I.length - 1;
|
|
12839
12839
|
if (y < C)
|
|
12840
12840
|
return 0;
|
|
12841
|
-
var O = a(
|
|
12842
|
-
return O >= 0 ? (O > 0 && (
|
|
12841
|
+
var O = a(I[y]);
|
|
12842
|
+
return O >= 0 ? (O > 0 && (g.lastNeed = O - 1), O) : --y < C || O === -2 ? 0 : (O = a(I[y]), O >= 0 ? (O > 0 && (g.lastNeed = O - 2), O) : --y < C || O === -2 ? 0 : (O = a(I[y]), O >= 0 ? (O > 0 && (O === 2 ? O = 0 : g.lastNeed = O - 3), O) : 0));
|
|
12843
12843
|
}
|
|
12844
|
-
function c(
|
|
12845
|
-
if ((
|
|
12846
|
-
return
|
|
12847
|
-
if (
|
|
12848
|
-
if ((
|
|
12849
|
-
return
|
|
12850
|
-
if (
|
|
12851
|
-
return
|
|
12844
|
+
function c(g, I, C) {
|
|
12845
|
+
if ((I[0] & 192) !== 128)
|
|
12846
|
+
return g.lastNeed = 0, "\uFFFD";
|
|
12847
|
+
if (g.lastNeed > 1 && I.length > 1) {
|
|
12848
|
+
if ((I[1] & 192) !== 128)
|
|
12849
|
+
return g.lastNeed = 1, "\uFFFD";
|
|
12850
|
+
if (g.lastNeed > 2 && I.length > 2 && (I[2] & 192) !== 128)
|
|
12851
|
+
return g.lastNeed = 2, "\uFFFD";
|
|
12852
12852
|
}
|
|
12853
12853
|
}
|
|
12854
|
-
function l(
|
|
12855
|
-
var
|
|
12854
|
+
function l(g) {
|
|
12855
|
+
var I = this.lastTotal - this.lastNeed, C = c(this, g);
|
|
12856
12856
|
if (C !== void 0)
|
|
12857
12857
|
return C;
|
|
12858
|
-
if (this.lastNeed <=
|
|
12859
|
-
return
|
|
12860
|
-
|
|
12858
|
+
if (this.lastNeed <= g.length)
|
|
12859
|
+
return g.copy(this.lastChar, I, 0, this.lastNeed), this.lastChar.toString(this.encoding, 0, this.lastTotal);
|
|
12860
|
+
g.copy(this.lastChar, I, 0, g.length), this.lastNeed -= g.length;
|
|
12861
12861
|
}
|
|
12862
|
-
function u(
|
|
12863
|
-
var C = s(this,
|
|
12862
|
+
function u(g, I) {
|
|
12863
|
+
var C = s(this, g, I);
|
|
12864
12864
|
if (!this.lastNeed)
|
|
12865
|
-
return
|
|
12865
|
+
return g.toString("utf8", I);
|
|
12866
12866
|
this.lastTotal = C;
|
|
12867
|
-
var y =
|
|
12868
|
-
return
|
|
12867
|
+
var y = g.length - (C - this.lastNeed);
|
|
12868
|
+
return g.copy(this.lastChar, 0, y), g.toString("utf8", I, y);
|
|
12869
12869
|
}
|
|
12870
|
-
function d(
|
|
12871
|
-
var
|
|
12872
|
-
return this.lastNeed ?
|
|
12870
|
+
function d(g) {
|
|
12871
|
+
var I = g && g.length ? this.write(g) : "";
|
|
12872
|
+
return this.lastNeed ? I + "\uFFFD" : I;
|
|
12873
12873
|
}
|
|
12874
|
-
function f(
|
|
12875
|
-
if ((
|
|
12876
|
-
var C =
|
|
12874
|
+
function f(g, I) {
|
|
12875
|
+
if ((g.length - I) % 2 === 0) {
|
|
12876
|
+
var C = g.toString("utf16le", I);
|
|
12877
12877
|
if (C) {
|
|
12878
12878
|
var y = C.charCodeAt(C.length - 1);
|
|
12879
12879
|
if (y >= 55296 && y <= 56319)
|
|
12880
|
-
return this.lastNeed = 2, this.lastTotal = 4, this.lastChar[0] =
|
|
12880
|
+
return this.lastNeed = 2, this.lastTotal = 4, this.lastChar[0] = g[g.length - 2], this.lastChar[1] = g[g.length - 1], C.slice(0, -1);
|
|
12881
12881
|
}
|
|
12882
12882
|
return C;
|
|
12883
12883
|
}
|
|
12884
|
-
return this.lastNeed = 1, this.lastTotal = 2, this.lastChar[0] =
|
|
12884
|
+
return this.lastNeed = 1, this.lastTotal = 2, this.lastChar[0] = g[g.length - 1], g.toString("utf16le", I, g.length - 1);
|
|
12885
12885
|
}
|
|
12886
|
-
function p(
|
|
12887
|
-
var
|
|
12886
|
+
function p(g) {
|
|
12887
|
+
var I = g && g.length ? this.write(g) : "";
|
|
12888
12888
|
if (this.lastNeed) {
|
|
12889
12889
|
var C = this.lastTotal - this.lastNeed;
|
|
12890
|
-
return
|
|
12890
|
+
return I + this.lastChar.toString("utf16le", 0, C);
|
|
12891
12891
|
}
|
|
12892
|
-
return
|
|
12892
|
+
return I;
|
|
12893
12893
|
}
|
|
12894
|
-
function h(
|
|
12895
|
-
var C = (
|
|
12896
|
-
return C === 0 ?
|
|
12894
|
+
function h(g, I) {
|
|
12895
|
+
var C = (g.length - I) % 3;
|
|
12896
|
+
return C === 0 ? g.toString("base64", I) : (this.lastNeed = 3 - C, this.lastTotal = 3, C === 1 ? this.lastChar[0] = g[g.length - 1] : (this.lastChar[0] = g[g.length - 2], this.lastChar[1] = g[g.length - 1]), g.toString("base64", I, g.length - C));
|
|
12897
12897
|
}
|
|
12898
|
-
function m(
|
|
12899
|
-
var
|
|
12900
|
-
return this.lastNeed ?
|
|
12898
|
+
function m(g) {
|
|
12899
|
+
var I = g && g.length ? this.write(g) : "";
|
|
12900
|
+
return this.lastNeed ? I + this.lastChar.toString("base64", 0, 3 - this.lastNeed) : I;
|
|
12901
12901
|
}
|
|
12902
|
-
function v(
|
|
12903
|
-
return
|
|
12902
|
+
function v(g) {
|
|
12903
|
+
return g.toString(this.encoding);
|
|
12904
12904
|
}
|
|
12905
|
-
function x(
|
|
12906
|
-
return
|
|
12905
|
+
function x(g) {
|
|
12906
|
+
return g && g.length ? this.write(g) : "";
|
|
12907
12907
|
}
|
|
12908
12908
|
return string_decoder;
|
|
12909
12909
|
}
|
|
@@ -12955,34 +12955,34 @@ function requireAsync_iterator() {
|
|
|
12955
12955
|
return async_iterator;
|
|
12956
12956
|
hasRequiredAsync_iterator = 1;
|
|
12957
12957
|
var e;
|
|
12958
|
-
function t(
|
|
12959
|
-
return
|
|
12958
|
+
function t(g, I, C) {
|
|
12959
|
+
return I in g ? Object.defineProperty(g, I, { value: C, enumerable: !0, configurable: !0, writable: !0 }) : g[I] = C, g;
|
|
12960
12960
|
}
|
|
12961
12961
|
var n = endOfStream, r = Symbol("lastResolve"), o = Symbol("lastReject"), a = Symbol("error"), s = Symbol("ended"), c = Symbol("lastPromise"), l = Symbol("handlePromise"), u = Symbol("stream");
|
|
12962
|
-
function d(
|
|
12962
|
+
function d(g, I) {
|
|
12963
12963
|
return {
|
|
12964
|
-
value:
|
|
12965
|
-
done:
|
|
12964
|
+
value: g,
|
|
12965
|
+
done: I
|
|
12966
12966
|
};
|
|
12967
12967
|
}
|
|
12968
|
-
function f(
|
|
12969
|
-
var
|
|
12970
|
-
if (
|
|
12971
|
-
var C =
|
|
12972
|
-
C !== null && (
|
|
12968
|
+
function f(g) {
|
|
12969
|
+
var I = g[r];
|
|
12970
|
+
if (I !== null) {
|
|
12971
|
+
var C = g[u].read();
|
|
12972
|
+
C !== null && (g[c] = null, g[r] = null, g[o] = null, I(d(C, !1)));
|
|
12973
12973
|
}
|
|
12974
12974
|
}
|
|
12975
|
-
function p(
|
|
12976
|
-
process.nextTick(f,
|
|
12975
|
+
function p(g) {
|
|
12976
|
+
process.nextTick(f, g);
|
|
12977
12977
|
}
|
|
12978
|
-
function h(
|
|
12978
|
+
function h(g, I) {
|
|
12979
12979
|
return function(C, y) {
|
|
12980
|
-
|
|
12981
|
-
if (
|
|
12980
|
+
g.then(function() {
|
|
12981
|
+
if (I[s]) {
|
|
12982
12982
|
C(d(void 0, !0));
|
|
12983
12983
|
return;
|
|
12984
12984
|
}
|
|
12985
|
-
|
|
12985
|
+
I[l](C, y);
|
|
12986
12986
|
}, y);
|
|
12987
12987
|
};
|
|
12988
12988
|
}
|
|
@@ -12992,7 +12992,7 @@ function requireAsync_iterator() {
|
|
|
12992
12992
|
return this[u];
|
|
12993
12993
|
},
|
|
12994
12994
|
next: function() {
|
|
12995
|
-
var
|
|
12995
|
+
var I = this, C = this[a];
|
|
12996
12996
|
if (C !== null)
|
|
12997
12997
|
return Promise.reject(C);
|
|
12998
12998
|
if (this[s])
|
|
@@ -13000,7 +13000,7 @@ function requireAsync_iterator() {
|
|
|
13000
13000
|
if (this[u].destroyed)
|
|
13001
13001
|
return new Promise(function(E, w) {
|
|
13002
13002
|
process.nextTick(function() {
|
|
13003
|
-
|
|
13003
|
+
I[a] ? w(I[a]) : E(d(void 0, !0));
|
|
13004
13004
|
});
|
|
13005
13005
|
});
|
|
13006
13006
|
var y = this[c], O;
|
|
@@ -13017,9 +13017,9 @@ function requireAsync_iterator() {
|
|
|
13017
13017
|
}, t(e, Symbol.asyncIterator, function() {
|
|
13018
13018
|
return this;
|
|
13019
13019
|
}), t(e, "return", function() {
|
|
13020
|
-
var
|
|
13020
|
+
var I = this;
|
|
13021
13021
|
return new Promise(function(C, y) {
|
|
13022
|
-
|
|
13022
|
+
I[u].destroy(null, function(O) {
|
|
13023
13023
|
if (O) {
|
|
13024
13024
|
y(O);
|
|
13025
13025
|
return;
|
|
@@ -13027,9 +13027,9 @@ function requireAsync_iterator() {
|
|
|
13027
13027
|
C(d(void 0, !0));
|
|
13028
13028
|
});
|
|
13029
13029
|
});
|
|
13030
|
-
}), e), m), x = function(
|
|
13030
|
+
}), e), m), x = function(I) {
|
|
13031
13031
|
var C, y = Object.create(v, (C = {}, t(C, u, {
|
|
13032
|
-
value:
|
|
13032
|
+
value: I,
|
|
13033
13033
|
writable: !0
|
|
13034
13034
|
}), t(C, r, {
|
|
13035
13035
|
value: null,
|
|
@@ -13041,7 +13041,7 @@ function requireAsync_iterator() {
|
|
|
13041
13041
|
value: null,
|
|
13042
13042
|
writable: !0
|
|
13043
13043
|
}), t(C, s, {
|
|
13044
|
-
value:
|
|
13044
|
+
value: I._readableState.endEmitted,
|
|
13045
13045
|
writable: !0
|
|
13046
13046
|
}), t(C, l, {
|
|
13047
13047
|
value: function(b, E) {
|
|
@@ -13050,7 +13050,7 @@ function requireAsync_iterator() {
|
|
|
13050
13050
|
},
|
|
13051
13051
|
writable: !0
|
|
13052
13052
|
}), C));
|
|
13053
|
-
return y[c] = null, n(
|
|
13053
|
+
return y[c] = null, n(I, function(O) {
|
|
13054
13054
|
if (O && O.code !== "ERR_STREAM_PREMATURE_CLOSE") {
|
|
13055
13055
|
var b = y[o];
|
|
13056
13056
|
b !== null && (y[c] = null, y[r] = null, y[o] = null, b(O)), y[a] = O;
|
|
@@ -13058,7 +13058,7 @@ function requireAsync_iterator() {
|
|
|
13058
13058
|
}
|
|
13059
13059
|
var E = y[r];
|
|
13060
13060
|
E !== null && (y[c] = null, y[r] = null, y[o] = null, E(d(void 0, !0))), y[s] = !0;
|
|
13061
|
-
}),
|
|
13061
|
+
}), I.on("readable", p.bind(null, y)), y;
|
|
13062
13062
|
};
|
|
13063
13063
|
return async_iterator = x, async_iterator;
|
|
13064
13064
|
}
|
|
@@ -13088,7 +13088,7 @@ function require_stream_readable() {
|
|
|
13088
13088
|
var c = require$$3, l;
|
|
13089
13089
|
c && c.debuglog ? l = c.debuglog("stream") : l = function() {
|
|
13090
13090
|
};
|
|
13091
|
-
var u = requireBuffer_list(), d = destroy_1, f = state, p = f.getHighWaterMark, h = errorsBrowser.codes, m = h.ERR_INVALID_ARG_TYPE, v = h.ERR_STREAM_PUSH_AFTER_EOF, x = h.ERR_METHOD_NOT_IMPLEMENTED,
|
|
13091
|
+
var u = requireBuffer_list(), d = destroy_1, f = state, p = f.getHighWaterMark, h = errorsBrowser.codes, m = h.ERR_INVALID_ARG_TYPE, v = h.ERR_STREAM_PUSH_AFTER_EOF, x = h.ERR_METHOD_NOT_IMPLEMENTED, g = h.ERR_STREAM_UNSHIFT_AFTER_END_EVENT, I, C, y;
|
|
13092
13092
|
inherits_browser.exports(_, n);
|
|
13093
13093
|
var O = d.errorOrDestroy, b = ["error", "close", "destroy", "pause", "resume"];
|
|
13094
13094
|
function E(F, T, Y) {
|
|
@@ -13097,7 +13097,7 @@ function require_stream_readable() {
|
|
|
13097
13097
|
!F._events || !F._events[T] ? F.on(T, Y) : Array.isArray(F._events[T]) ? F._events[T].unshift(Y) : F._events[T] = [Y, F._events[T]];
|
|
13098
13098
|
}
|
|
13099
13099
|
function w(F, T, Y) {
|
|
13100
|
-
e = e || require_stream_duplex(), F = F || {}, typeof Y != "boolean" && (Y = T instanceof e), this.objectMode = !!F.objectMode, Y && (this.objectMode = this.objectMode || !!F.readableObjectMode), this.highWaterMark = p(this, F, "readableHighWaterMark", Y), this.buffer = new u(), this.length = 0, this.pipes = null, this.pipesCount = 0, this.flowing = null, this.ended = !1, this.endEmitted = !1, this.reading = !1, this.sync = !0, this.needReadable = !1, this.emittedReadable = !1, this.readableListening = !1, this.resumeScheduled = !1, this.paused = !0, this.emitClose = F.emitClose !== !1, this.autoDestroy = !!F.autoDestroy, this.destroyed = !1, this.defaultEncoding = F.defaultEncoding || "utf8", this.awaitDrain = 0, this.readingMore = !1, this.decoder = null, this.encoding = null, F.encoding && (
|
|
13100
|
+
e = e || require_stream_duplex(), F = F || {}, typeof Y != "boolean" && (Y = T instanceof e), this.objectMode = !!F.objectMode, Y && (this.objectMode = this.objectMode || !!F.readableObjectMode), this.highWaterMark = p(this, F, "readableHighWaterMark", Y), this.buffer = new u(), this.length = 0, this.pipes = null, this.pipesCount = 0, this.flowing = null, this.ended = !1, this.endEmitted = !1, this.reading = !1, this.sync = !0, this.needReadable = !1, this.emittedReadable = !1, this.readableListening = !1, this.resumeScheduled = !1, this.paused = !0, this.emitClose = F.emitClose !== !1, this.autoDestroy = !!F.autoDestroy, this.destroyed = !1, this.defaultEncoding = F.defaultEncoding || "utf8", this.awaitDrain = 0, this.readingMore = !1, this.decoder = null, this.encoding = null, F.encoding && (I || (I = requireString_decoder().StringDecoder), this.decoder = new I(F.encoding), this.encoding = F.encoding);
|
|
13101
13101
|
}
|
|
13102
13102
|
function _(F) {
|
|
13103
13103
|
if (e = e || require_stream_duplex(), !(this instanceof _))
|
|
@@ -13132,7 +13132,7 @@ function require_stream_readable() {
|
|
|
13132
13132
|
O(F, ee);
|
|
13133
13133
|
else if (J.objectMode || T && T.length > 0)
|
|
13134
13134
|
if (typeof T != "string" && !J.objectMode && Object.getPrototypeOf(T) !== r.prototype && (T = a(T)), Q)
|
|
13135
|
-
J.endEmitted ? O(F, new
|
|
13135
|
+
J.endEmitted ? O(F, new g()) : k(F, J, T, !0);
|
|
13136
13136
|
else if (J.ended)
|
|
13137
13137
|
O(F, new v());
|
|
13138
13138
|
else {
|
|
@@ -13155,8 +13155,8 @@ function require_stream_readable() {
|
|
|
13155
13155
|
_.prototype.isPaused = function() {
|
|
13156
13156
|
return this._readableState.flowing === !1;
|
|
13157
13157
|
}, _.prototype.setEncoding = function(F) {
|
|
13158
|
-
|
|
13159
|
-
var T = new
|
|
13158
|
+
I || (I = requireString_decoder().StringDecoder);
|
|
13159
|
+
var T = new I(F);
|
|
13160
13160
|
this._readableState.decoder = T, this._readableState.encoding = this._readableState.decoder.encoding;
|
|
13161
13161
|
for (var Y = this._readableState.buffer.head, Q = ""; Y !== null; )
|
|
13162
13162
|
Q += T.write(Y.data), Y = Y.next;
|
|
@@ -15716,8 +15716,8 @@ const Image = (e) => {
|
|
|
15716
15716
|
relation: m,
|
|
15717
15717
|
context: v,
|
|
15718
15718
|
readOnly: x,
|
|
15719
|
-
summaryField:
|
|
15720
|
-
titleField:
|
|
15719
|
+
summaryField: g,
|
|
15720
|
+
titleField: I
|
|
15721
15721
|
} = r, C = a.filter((w) => w.values), y = useContext(FormContext$1), {
|
|
15722
15722
|
getContext: O
|
|
15723
15723
|
} = y || {};
|
|
@@ -15772,7 +15772,7 @@ const Image = (e) => {
|
|
|
15772
15772
|
h(C.find((N) => w.id === N.id)), f(!0);
|
|
15773
15773
|
},
|
|
15774
15774
|
children: /* @__PURE__ */ jsx("strong", {
|
|
15775
|
-
children: (S = w.values) == null ? void 0 : S[
|
|
15775
|
+
children: (S = w.values) == null ? void 0 : S[I]
|
|
15776
15776
|
})
|
|
15777
15777
|
}), /* @__PURE__ */ jsx("br", {}), /* @__PURE__ */ jsx("div", {
|
|
15778
15778
|
style: {
|
|
@@ -15782,7 +15782,7 @@ const Image = (e) => {
|
|
|
15782
15782
|
onClick: () => {
|
|
15783
15783
|
h(C.find((N) => w.id === N.id)), f(!0);
|
|
15784
15784
|
},
|
|
15785
|
-
children: (k = w.values) == null ? void 0 : k[
|
|
15785
|
+
children: (k = w.values) == null ? void 0 : k[g]
|
|
15786
15786
|
})]
|
|
15787
15787
|
}, _)
|
|
15788
15788
|
}, _);
|
|
@@ -15978,12 +15978,12 @@ const transformPlainMany2Ones = ({
|
|
|
15978
15978
|
readOnly: m,
|
|
15979
15979
|
field: v
|
|
15980
15980
|
} = n, x = useContext(FormContext$1), {
|
|
15981
|
-
getContext:
|
|
15981
|
+
getContext: g
|
|
15982
15982
|
} = x || {};
|
|
15983
15983
|
useDeepCompareEffect(() => {
|
|
15984
15984
|
C();
|
|
15985
15985
|
}, [o]);
|
|
15986
|
-
const
|
|
15986
|
+
const I = (b) => {
|
|
15987
15987
|
r == null || r({
|
|
15988
15988
|
items: b
|
|
15989
15989
|
});
|
|
@@ -15999,6 +15999,7 @@ const transformPlainMany2Ones = ({
|
|
|
15999
15999
|
fields: x == null ? void 0 : x.getFields(),
|
|
16000
16000
|
values: x.getPlainValues()
|
|
16001
16001
|
}),
|
|
16002
|
+
fields: x == null ? void 0 : x.getFields(),
|
|
16002
16003
|
context: x.getContext()
|
|
16003
16004
|
});
|
|
16004
16005
|
b = [...b, ..._];
|
|
@@ -16008,7 +16009,7 @@ const transformPlainMany2Ones = ({
|
|
|
16008
16009
|
params: b,
|
|
16009
16010
|
fields: [v],
|
|
16010
16011
|
context: {
|
|
16011
|
-
...
|
|
16012
|
+
...g == null ? void 0 : g(),
|
|
16012
16013
|
...h
|
|
16013
16014
|
}
|
|
16014
16015
|
})).map((_) => {
|
|
@@ -16039,7 +16040,7 @@ const transformPlainMany2Ones = ({
|
|
|
16039
16040
|
id: _,
|
|
16040
16041
|
operation: "pendingLink"
|
|
16041
16042
|
});
|
|
16042
|
-
}),
|
|
16043
|
+
}), I(E);
|
|
16043
16044
|
}, O = (b) => {
|
|
16044
16045
|
const {
|
|
16045
16046
|
label: E,
|
|
@@ -16439,8 +16440,8 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
|
|
|
16439
16440
|
setSorter: m,
|
|
16440
16441
|
setCurrentItemIndex: v,
|
|
16441
16442
|
setResultsActionView: x,
|
|
16442
|
-
resultsActionView:
|
|
16443
|
-
domain:
|
|
16443
|
+
resultsActionView: g,
|
|
16444
|
+
domain: I,
|
|
16444
16445
|
currentId: C,
|
|
16445
16446
|
limit: y,
|
|
16446
16447
|
setLimit: O,
|
|
@@ -16448,12 +16449,12 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
|
|
|
16448
16449
|
setSearchValues: E
|
|
16449
16450
|
} = e, [w, _] = useState(!1), [S, k] = useState(!1), [N, D] = useState(), [M, L] = useState(1), [q, $] = useState(0), [B, U] = useState(), [G, z] = useState([]), [W, Z] = useState(void 0), V = useRef(y || DEFAULT_SEARCH_LIMIT$1), H = useRef([]), P = useCallback((J) => {
|
|
16450
16451
|
x == null || x([...J]), z([...J]);
|
|
16451
|
-
}, []), A = useCallback(() =>
|
|
16452
|
+
}, []), A = useCallback(() => g || G, [g, G]), j = useCallback(async () => {
|
|
16452
16453
|
const J = await ConnectionProvider.getHandler().nameSearch({
|
|
16453
16454
|
model: t,
|
|
16454
16455
|
payload: c,
|
|
16455
16456
|
limit: V.current,
|
|
16456
|
-
attrs:
|
|
16457
|
+
attrs: I,
|
|
16457
16458
|
context: u
|
|
16458
16459
|
});
|
|
16459
16460
|
if (U(J.length), d == null || d(J.length), J.length > 0) {
|
|
@@ -16483,7 +16484,7 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
|
|
|
16483
16484
|
c,
|
|
16484
16485
|
t,
|
|
16485
16486
|
u,
|
|
16486
|
-
|
|
16487
|
+
I,
|
|
16487
16488
|
f,
|
|
16488
16489
|
p,
|
|
16489
16490
|
h,
|
|
@@ -16491,7 +16492,7 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
|
|
|
16491
16492
|
d
|
|
16492
16493
|
]), K = useCallback(
|
|
16493
16494
|
async (J) => {
|
|
16494
|
-
const { params: ee, newOffset: oe } = J || {}, le = mergeParams(ee || b,
|
|
16495
|
+
const { params: ee, newOffset: oe } = J || {}, le = mergeParams(ee || b, I), { colors: ae } = getTree(f), { totalItems: pe, results: me, attrsEvaluated: ie } = await ConnectionProvider.getHandler().searchForTree({
|
|
16495
16496
|
params: le,
|
|
16496
16497
|
limit: V.current,
|
|
16497
16498
|
offset: oe || q,
|
|
@@ -16506,7 +16507,7 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
|
|
|
16506
16507
|
sorter: h,
|
|
16507
16508
|
fields: { ...f.fields, ...p.fields }
|
|
16508
16509
|
}) : [...H.current];
|
|
16509
|
-
if (P(de),
|
|
16510
|
+
if (P(de), g && de.length > 0) {
|
|
16510
16511
|
const he = de.findIndex(
|
|
16511
16512
|
(Ce) => C === Ce.id
|
|
16512
16513
|
);
|
|
@@ -16518,12 +16519,12 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
|
|
|
16518
16519
|
},
|
|
16519
16520
|
[
|
|
16520
16521
|
v,
|
|
16521
|
-
|
|
16522
|
+
g,
|
|
16522
16523
|
P,
|
|
16523
16524
|
C,
|
|
16524
16525
|
t,
|
|
16525
16526
|
u,
|
|
16526
|
-
|
|
16527
|
+
I,
|
|
16527
16528
|
f,
|
|
16528
16529
|
p,
|
|
16529
16530
|
h,
|
|
@@ -16545,13 +16546,13 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
|
|
|
16545
16546
|
[
|
|
16546
16547
|
u,
|
|
16547
16548
|
C,
|
|
16548
|
-
|
|
16549
|
+
I,
|
|
16549
16550
|
p,
|
|
16550
16551
|
y,
|
|
16551
16552
|
t,
|
|
16552
16553
|
c,
|
|
16553
16554
|
q,
|
|
16554
|
-
|
|
16555
|
+
g,
|
|
16555
16556
|
l,
|
|
16556
16557
|
d,
|
|
16557
16558
|
v,
|
|
@@ -16658,8 +16659,8 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
|
|
|
16658
16659
|
setCurrentItemIndex: m,
|
|
16659
16660
|
currentModel: v,
|
|
16660
16661
|
sorter: x,
|
|
16661
|
-
setSorter:
|
|
16662
|
-
totalItems:
|
|
16662
|
+
setSorter: g,
|
|
16663
|
+
totalItems: I,
|
|
16663
16664
|
setTotalItems: C,
|
|
16664
16665
|
setSelectedRowItems: y,
|
|
16665
16666
|
selectedRowItems: O,
|
|
@@ -16719,8 +16720,8 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
|
|
|
16719
16720
|
searchVisible: P,
|
|
16720
16721
|
setSearchVisible: A,
|
|
16721
16722
|
sorter: x,
|
|
16722
|
-
setSorter:
|
|
16723
|
-
totalItems:
|
|
16723
|
+
setSorter: g,
|
|
16724
|
+
totalItems: I,
|
|
16724
16725
|
setTotalItems: C,
|
|
16725
16726
|
searchTreeNameSearch: b,
|
|
16726
16727
|
setSearchTreeNameSearch: E,
|
|
@@ -16822,13 +16823,13 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
|
|
|
16822
16823
|
}
|
|
16823
16824
|
});
|
|
16824
16825
|
c(!0), a.current = !0, o.current = setInterval(() => {
|
|
16825
|
-
|
|
16826
|
+
g(G);
|
|
16826
16827
|
}, 1e3);
|
|
16827
16828
|
} catch (G) {
|
|
16828
16829
|
a.current = !1, clearInterval(o.current), showDialog$8(G), c(!1);
|
|
16829
16830
|
}
|
|
16830
16831
|
}
|
|
16831
|
-
async function
|
|
16832
|
+
async function g(E) {
|
|
16832
16833
|
let w;
|
|
16833
16834
|
try {
|
|
16834
16835
|
if (w = await ConnectionProvider.getHandler().getReport({
|
|
@@ -16842,7 +16843,7 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
|
|
|
16842
16843
|
a.current = !1, clearInterval(o.current), c(!1), showDialog$8(_.exception || _);
|
|
16843
16844
|
}
|
|
16844
16845
|
}
|
|
16845
|
-
async function
|
|
16846
|
+
async function I({
|
|
16846
16847
|
actionData: E,
|
|
16847
16848
|
fields: w,
|
|
16848
16849
|
values: _,
|
|
@@ -16898,6 +16899,7 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
|
|
|
16898
16899
|
...r
|
|
16899
16900
|
}
|
|
16900
16901
|
}),
|
|
16902
|
+
fields: w,
|
|
16901
16903
|
context: D
|
|
16902
16904
|
})), k.target === "new") {
|
|
16903
16905
|
const q = await ConnectionProvider.getHandler().getView({
|
|
@@ -17004,7 +17006,7 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
|
|
|
17004
17006
|
return /* @__PURE__ */ jsx(Fragment, {
|
|
17005
17007
|
children: /* @__PURE__ */ jsx(ContentRootContext.Provider, {
|
|
17006
17008
|
value: {
|
|
17007
|
-
processAction:
|
|
17009
|
+
processAction: I,
|
|
17008
17010
|
globalValues: r
|
|
17009
17011
|
},
|
|
17010
17012
|
children: /* @__PURE__ */ jsxs(Fragment, {
|
|
@@ -17058,8 +17060,8 @@ function Form(e, t) {
|
|
|
17058
17060
|
formView: m,
|
|
17059
17061
|
postSaveAction: v,
|
|
17060
17062
|
insideButtonModal: x = !1,
|
|
17061
|
-
parentContext:
|
|
17062
|
-
actionDomain:
|
|
17063
|
+
parentContext: g = {},
|
|
17064
|
+
actionDomain: I,
|
|
17063
17065
|
visible: C = !0,
|
|
17064
17066
|
rootForm: y = !1,
|
|
17065
17067
|
defaultValues: O,
|
|
@@ -17142,7 +17144,7 @@ function Form(e, t) {
|
|
|
17142
17144
|
}
|
|
17143
17145
|
function Te() {
|
|
17144
17146
|
return {
|
|
17145
|
-
...
|
|
17147
|
+
...g,
|
|
17146
17148
|
...N == null ? void 0 : N.context
|
|
17147
17149
|
};
|
|
17148
17150
|
}
|
|
@@ -17161,7 +17163,7 @@ function Form(e, t) {
|
|
|
17161
17163
|
model: n,
|
|
17162
17164
|
fields: re,
|
|
17163
17165
|
context: {
|
|
17164
|
-
...
|
|
17166
|
+
...g,
|
|
17165
17167
|
...te
|
|
17166
17168
|
},
|
|
17167
17169
|
extraValues: O
|
|
@@ -17217,8 +17219,8 @@ function Form(e, t) {
|
|
|
17217
17219
|
} = await Ne({
|
|
17218
17220
|
fields: ue,
|
|
17219
17221
|
arch: fe
|
|
17220
|
-
}),
|
|
17221
|
-
...getValuesForDomain(
|
|
17222
|
+
}), I && (te = {
|
|
17223
|
+
...getValuesForDomain(I),
|
|
17222
17224
|
...te
|
|
17223
17225
|
}), H.current = processValues(te, ue), Ae({
|
|
17224
17226
|
values: te,
|
|
@@ -17249,13 +17251,13 @@ function Form(e, t) {
|
|
|
17249
17251
|
const re = await ConnectionProvider.getHandler().getActionStringForModel(n);
|
|
17250
17252
|
return (await ConnectionProvider.getHandler().getViewsForAction({
|
|
17251
17253
|
action: re,
|
|
17252
|
-
context:
|
|
17254
|
+
context: g
|
|
17253
17255
|
})).views.get("form");
|
|
17254
17256
|
}
|
|
17255
17257
|
return await ConnectionProvider.getHandler().getView({
|
|
17256
17258
|
model: n,
|
|
17257
17259
|
type: "form",
|
|
17258
|
-
context:
|
|
17260
|
+
context: g
|
|
17259
17261
|
});
|
|
17260
17262
|
}, Ae = ({
|
|
17261
17263
|
values: re,
|
|
@@ -17285,7 +17287,7 @@ function Form(e, t) {
|
|
|
17285
17287
|
model: n,
|
|
17286
17288
|
ids: [de()],
|
|
17287
17289
|
fields: re,
|
|
17288
|
-
context:
|
|
17290
|
+
context: g
|
|
17289
17291
|
}))[0];
|
|
17290
17292
|
const xe = await ConnectionProvider.getHandler().search({
|
|
17291
17293
|
params: [["res_model", "=", n], ["res_id", "=", de()]],
|
|
@@ -17319,7 +17321,7 @@ function Form(e, t) {
|
|
|
17319
17321
|
},
|
|
17320
17322
|
fields: $,
|
|
17321
17323
|
context: {
|
|
17322
|
-
...
|
|
17324
|
+
...g,
|
|
17323
17325
|
...N == null ? void 0 : N.context
|
|
17324
17326
|
}
|
|
17325
17327
|
}), H.current = ge($);
|
|
@@ -17332,7 +17334,7 @@ function Form(e, t) {
|
|
|
17332
17334
|
},
|
|
17333
17335
|
fields: $,
|
|
17334
17336
|
context: {
|
|
17335
|
-
...
|
|
17337
|
+
...g,
|
|
17336
17338
|
...N == null ? void 0 : N.context
|
|
17337
17339
|
}
|
|
17338
17340
|
});
|
|
@@ -17425,7 +17427,7 @@ function Form(e, t) {
|
|
|
17425
17427
|
values: {
|
|
17426
17428
|
...ge($),
|
|
17427
17429
|
context: {
|
|
17428
|
-
...
|
|
17430
|
+
...g,
|
|
17429
17431
|
...N == null ? void 0 : N.context
|
|
17430
17432
|
}
|
|
17431
17433
|
},
|
|
@@ -17484,7 +17486,7 @@ function Form(e, t) {
|
|
|
17484
17486
|
context: {
|
|
17485
17487
|
...te,
|
|
17486
17488
|
...N == null ? void 0 : N.context,
|
|
17487
|
-
...
|
|
17489
|
+
...g
|
|
17488
17490
|
}
|
|
17489
17491
|
});
|
|
17490
17492
|
if (typeof ue == "object" && ue !== null && Object.keys(ue).length === 0 && x)
|
|
@@ -17524,7 +17526,7 @@ function Form(e, t) {
|
|
|
17524
17526
|
const ue = (await ConnectionProvider.getHandler().readObjects({
|
|
17525
17527
|
model: "ir.actions.actions",
|
|
17526
17528
|
ids: [parseInt(re)],
|
|
17527
|
-
context:
|
|
17529
|
+
context: g
|
|
17528
17530
|
}))[0];
|
|
17529
17531
|
await $e({
|
|
17530
17532
|
actionData: ue,
|
|
@@ -17542,7 +17544,7 @@ function Form(e, t) {
|
|
|
17542
17544
|
fields: $,
|
|
17543
17545
|
values: he(),
|
|
17544
17546
|
context: {
|
|
17545
|
-
...
|
|
17547
|
+
...g,
|
|
17546
17548
|
...N == null ? void 0 : N.context,
|
|
17547
17549
|
...te
|
|
17548
17550
|
},
|
|
@@ -17591,7 +17593,7 @@ function Form(e, t) {
|
|
|
17591
17593
|
getValues: he,
|
|
17592
17594
|
getPlainValues: Ce,
|
|
17593
17595
|
getFields: Ie,
|
|
17594
|
-
domain:
|
|
17596
|
+
domain: I,
|
|
17595
17597
|
activeId: r,
|
|
17596
17598
|
activeModel: n,
|
|
17597
17599
|
setFieldValue: ye,
|
|
@@ -17691,7 +17693,7 @@ const Form$1 = forwardRef(Form), FormModal = (e) => {
|
|
|
17691
17693
|
});
|
|
17692
17694
|
h(E !== !1), E !== !1 && v(E);
|
|
17693
17695
|
}
|
|
17694
|
-
async function
|
|
17696
|
+
async function g() {
|
|
17695
17697
|
if (p && m)
|
|
17696
17698
|
await ConnectionProvider.getHandler().removeFavourite({
|
|
17697
17699
|
shortcut_id: m
|
|
@@ -17712,7 +17714,7 @@ const Form$1 = forwardRef(Form), FormModal = (e) => {
|
|
|
17712
17714
|
}
|
|
17713
17715
|
h(!p);
|
|
17714
17716
|
}
|
|
17715
|
-
function
|
|
17717
|
+
function I() {
|
|
17716
17718
|
return /* @__PURE__ */ jsxs(Row, {
|
|
17717
17719
|
align: "middle",
|
|
17718
17720
|
children: [/* @__PURE__ */ jsx(Col, {
|
|
@@ -17726,7 +17728,7 @@ const Form$1 = forwardRef(Form), FormModal = (e) => {
|
|
|
17726
17728
|
style: {
|
|
17727
17729
|
width: 30
|
|
17728
17730
|
},
|
|
17729
|
-
onClick:
|
|
17731
|
+
onClick: g
|
|
17730
17732
|
})
|
|
17731
17733
|
}), /* @__PURE__ */ jsx(Col, {
|
|
17732
17734
|
style: {
|
|
@@ -17739,7 +17741,7 @@ const Form$1 = forwardRef(Form), FormModal = (e) => {
|
|
|
17739
17741
|
return /* @__PURE__ */ jsx(FormModalProvider, {
|
|
17740
17742
|
setTitle: f,
|
|
17741
17743
|
children: /* @__PURE__ */ jsx(Modal, {
|
|
17742
|
-
title: s ?
|
|
17744
|
+
title: s ? I() : d,
|
|
17743
17745
|
centered: !0,
|
|
17744
17746
|
width: u,
|
|
17745
17747
|
visible: t,
|
|
@@ -18128,14 +18130,14 @@ function SearchFilter(e) {
|
|
|
18128
18130
|
searchError: f,
|
|
18129
18131
|
searchValues: p,
|
|
18130
18132
|
showLimitOptions: h = !0
|
|
18131
|
-
} = e, [m, v] = useState(), [x,
|
|
18133
|
+
} = e, [m, v] = useState(), [x, g] = useState(), [I, C] = useState(!1), [y] = Form$3.useForm();
|
|
18132
18134
|
useEffect(() => {
|
|
18133
18135
|
y.setFieldsValue(p);
|
|
18134
18136
|
}, [p]);
|
|
18135
18137
|
const O = () => {
|
|
18136
18138
|
if (!x)
|
|
18137
18139
|
return;
|
|
18138
|
-
const w =
|
|
18140
|
+
const w = I ? x : m, _ = w == null ? void 0 : w.rows;
|
|
18139
18141
|
return _ == null ? void 0 : _.map((S, k) => /* @__PURE__ */ jsx(Row, {
|
|
18140
18142
|
children: S.map((N, D) => /* @__PURE__ */ jsx(Col, {
|
|
18141
18143
|
xs: 24,
|
|
@@ -18150,7 +18152,7 @@ function SearchFilter(e) {
|
|
|
18150
18152
|
useDeepCompareEffect(() => {
|
|
18151
18153
|
C(!1);
|
|
18152
18154
|
const w = new SearchFilter$1(n, t);
|
|
18153
|
-
w.parse(), v(w._simpleSearchContainer),
|
|
18155
|
+
w.parse(), v(w._simpleSearchContainer), g(w._advancedSearchContainer);
|
|
18154
18156
|
}, [t, n]);
|
|
18155
18157
|
const b = O(), E = (w) => {
|
|
18156
18158
|
const {
|
|
@@ -18188,12 +18190,12 @@ function SearchFilter(e) {
|
|
|
18188
18190
|
offset: s,
|
|
18189
18191
|
limit: c
|
|
18190
18192
|
},
|
|
18191
|
-
children: [b,
|
|
18193
|
+
children: [b, I && h && /* @__PURE__ */ jsx(SearchParams, {
|
|
18192
18194
|
onLimitChange: l
|
|
18193
18195
|
}), /* @__PURE__ */ jsx(SearchBottomBar, {
|
|
18194
|
-
advancedFilter:
|
|
18196
|
+
advancedFilter: I,
|
|
18195
18197
|
onAdvancedFilterToggle: () => {
|
|
18196
|
-
C(!
|
|
18198
|
+
C(!I);
|
|
18197
18199
|
},
|
|
18198
18200
|
onClear: () => {
|
|
18199
18201
|
y.resetFields(), r();
|
|
@@ -18251,9 +18253,9 @@ const Many2oneSuffixModal = (e) => {
|
|
|
18251
18253
|
t: m
|
|
18252
18254
|
} = useContext(LocaleContext), v = useContext(TabManagerContext), {
|
|
18253
18255
|
openRelate: x
|
|
18254
|
-
} = v || {},
|
|
18255
|
-
processAction:
|
|
18256
|
-
} =
|
|
18256
|
+
} = v || {}, g = useContext(ContentRootContext), {
|
|
18257
|
+
processAction: I
|
|
18258
|
+
} = g || {};
|
|
18257
18259
|
if (!t)
|
|
18258
18260
|
return null;
|
|
18259
18261
|
async function C() {
|
|
@@ -18338,7 +18340,7 @@ const Many2oneSuffixModal = (e) => {
|
|
|
18338
18340
|
}
|
|
18339
18341
|
}
|
|
18340
18342
|
function b(S) {
|
|
18341
|
-
a(!1),
|
|
18343
|
+
a(!1), I == null || I({
|
|
18342
18344
|
actionData: S,
|
|
18343
18345
|
values: p,
|
|
18344
18346
|
fields: d.fields,
|
|
@@ -18349,7 +18351,7 @@ const Many2oneSuffixModal = (e) => {
|
|
|
18349
18351
|
});
|
|
18350
18352
|
}
|
|
18351
18353
|
function E(S) {
|
|
18352
|
-
c(!1),
|
|
18354
|
+
c(!1), I == null || I({
|
|
18353
18355
|
actionData: {
|
|
18354
18356
|
...S,
|
|
18355
18357
|
datas: {
|
|
@@ -18538,7 +18540,7 @@ function Tree(e) {
|
|
|
18538
18540
|
sorter: m,
|
|
18539
18541
|
onFetchChildrenForRecord: v,
|
|
18540
18542
|
childField: x
|
|
18541
|
-
} = e, [
|
|
18543
|
+
} = e, [g, I] = useState([]), [C, y] = useState([]), O = useRef(!1), b = useRef(null), {
|
|
18542
18544
|
t: E
|
|
18543
18545
|
} = useContext(LocaleContext), w = useRef(n);
|
|
18544
18546
|
useEffect(() => {
|
|
@@ -18559,9 +18561,9 @@ function Tree(e) {
|
|
|
18559
18561
|
}, [o]), useEffect(() => {
|
|
18560
18562
|
O.current = !1;
|
|
18561
18563
|
const q = getTableItems(b.current, a);
|
|
18562
|
-
|
|
18564
|
+
I(q), w.current = n;
|
|
18563
18565
|
}, [a]);
|
|
18564
|
-
const _ = (t - 1) * w.current + 1, S = _ - 1 +
|
|
18566
|
+
const _ = (t - 1) * w.current + 1, S = _ - 1 + g.length, k = r === void 0 ? null : r === 0 ? E("no_results") : E("summary").replace("{from}", _ == null ? void 0 : _.toString()).replace("{to}", S == null ? void 0 : S.toString()).replace("{total}", r == null ? void 0 : r.toString()), N = () => !u || o.isExpandable || c ? null : r === void 0 ? /* @__PURE__ */ jsx(Spin, {}) : /* @__PURE__ */ jsxs(Row, {
|
|
18565
18567
|
align: "bottom",
|
|
18566
18568
|
className: "pb-4",
|
|
18567
18569
|
children: [/* @__PURE__ */ jsx(Col, {
|
|
@@ -18587,7 +18589,7 @@ function Tree(e) {
|
|
|
18587
18589
|
}));
|
|
18588
18590
|
if (!$ || $.length === 0)
|
|
18589
18591
|
return null;
|
|
18590
|
-
let B = [], U = ((G = d == null ? void 0 : d.selectedRowKeys) == null ? void 0 : G.length) > 0 ?
|
|
18592
|
+
let B = [], U = ((G = d == null ? void 0 : d.selectedRowKeys) == null ? void 0 : G.length) > 0 ? g.filter((z) => d == null ? void 0 : d.selectedRowKeys.includes(z.id)) : g;
|
|
18591
18593
|
return $.forEach((z) => {
|
|
18592
18594
|
const W = U.reduce((Z, V) => V[z.field] && !isNaN(V[z.field]) ? Z + V[z.field] : Z, 0);
|
|
18593
18595
|
B.push(`${z.label}: ${Math.round(W * 100) / 100}`);
|
|
@@ -18598,7 +18600,7 @@ function Tree(e) {
|
|
|
18598
18600
|
}
|
|
18599
18601
|
let M, L = f;
|
|
18600
18602
|
if (b.current !== null) {
|
|
18601
|
-
M = calculateColumnsWidth(C,
|
|
18603
|
+
M = calculateColumnsWidth(C, g, 600);
|
|
18602
18604
|
const $ = b.current;
|
|
18603
18605
|
f && $.columns.some((B) => B.sum !== void 0) && (L = f - 30);
|
|
18604
18606
|
}
|
|
@@ -18610,7 +18612,7 @@ function Tree(e) {
|
|
|
18610
18612
|
children: [N(), /* @__PURE__ */ jsx(Table, {
|
|
18611
18613
|
height: L,
|
|
18612
18614
|
columns: M.columns,
|
|
18613
|
-
dataSource:
|
|
18615
|
+
dataSource: g,
|
|
18614
18616
|
loading: c,
|
|
18615
18617
|
loadingComponent: /* @__PURE__ */ jsx(Spin, {}),
|
|
18616
18618
|
onRowStyle: (q) => {
|
|
@@ -18646,7 +18648,7 @@ function SearchTree(e, t) {
|
|
|
18646
18648
|
rootTree: d = !1,
|
|
18647
18649
|
parentContext: f = {},
|
|
18648
18650
|
onChangeSelectedRowKeys: p
|
|
18649
|
-
} = e, [h, m] = useState(!1), [v, x] = useState(!1),
|
|
18651
|
+
} = e, [h, m] = useState(!1), [v, x] = useState(!1), g = useRef(!1), [I, C] = useState(), [y, O] = useState(), [b, E] = useState(), [w, _] = useState(), [S, k] = useState(200), N = useRef(), {
|
|
18650
18652
|
height: D
|
|
18651
18653
|
} = useWindowDimensions(), M = useContext(ContentRootContext), {
|
|
18652
18654
|
processAction: L
|
|
@@ -18686,7 +18688,7 @@ function SearchTree(e, t) {
|
|
|
18686
18688
|
colorsForResults: ve,
|
|
18687
18689
|
totalItems: Te
|
|
18688
18690
|
} = useSearch({
|
|
18689
|
-
model:
|
|
18691
|
+
model: I,
|
|
18690
18692
|
setSearchTreeNameSearch: X,
|
|
18691
18693
|
setSelectedRowItems: W,
|
|
18692
18694
|
setSearchParams: V,
|
|
@@ -18695,7 +18697,7 @@ function SearchTree(e, t) {
|
|
|
18695
18697
|
setSearchVisible: P,
|
|
18696
18698
|
setTreeIsLoading: F,
|
|
18697
18699
|
nameSearch: s,
|
|
18698
|
-
searchNameGetDoneRef:
|
|
18700
|
+
searchNameGetDoneRef: g,
|
|
18699
18701
|
context: f,
|
|
18700
18702
|
formView: b,
|
|
18701
18703
|
treeView: y,
|
|
@@ -18712,10 +18714,10 @@ function SearchTree(e, t) {
|
|
|
18712
18714
|
});
|
|
18713
18715
|
useImperativeHandle(t, () => ({
|
|
18714
18716
|
refreshResults: () => {
|
|
18715
|
-
|
|
18717
|
+
g.current = !1, oe();
|
|
18716
18718
|
}
|
|
18717
18719
|
})), useEffect(() => {
|
|
18718
|
-
!v || u && (
|
|
18720
|
+
!v || u && (g.current = !1, oe());
|
|
18719
18721
|
}, [me, ie, v, u, s]);
|
|
18720
18722
|
const be = async () => {
|
|
18721
18723
|
x(!1), m(!0), _(void 0), F == null || F(!0);
|
|
@@ -18752,7 +18754,7 @@ function SearchTree(e, t) {
|
|
|
18752
18754
|
} = we;
|
|
18753
18755
|
N.current || (N.current = await ConnectionProvider.getHandler().treeButOpen({
|
|
18754
18756
|
id: y.view_id,
|
|
18755
|
-
model:
|
|
18757
|
+
model: I,
|
|
18756
18758
|
context: f
|
|
18757
18759
|
}));
|
|
18758
18760
|
const Ee = N.current[0][2];
|
|
@@ -18779,7 +18781,7 @@ function SearchTree(e, t) {
|
|
|
18779
18781
|
}
|
|
18780
18782
|
a({
|
|
18781
18783
|
id: _e,
|
|
18782
|
-
model:
|
|
18784
|
+
model: I,
|
|
18783
18785
|
formView: b,
|
|
18784
18786
|
treeView: y
|
|
18785
18787
|
});
|
|
@@ -18863,14 +18865,14 @@ const SearchTree$1 = forwardRef(SearchTree), SearchModal = (e) => {
|
|
|
18863
18865
|
} = C;
|
|
18864
18866
|
r([y]);
|
|
18865
18867
|
};
|
|
18866
|
-
function
|
|
18868
|
+
function g() {
|
|
18867
18869
|
if (h.length === 0) {
|
|
18868
18870
|
v();
|
|
18869
18871
|
return;
|
|
18870
18872
|
}
|
|
18871
18873
|
r(h);
|
|
18872
18874
|
}
|
|
18873
|
-
const
|
|
18875
|
+
const I = () => /* @__PURE__ */ jsxs(Fragment, {
|
|
18874
18876
|
children: [/* @__PURE__ */ jsx(SearchTree$1, {
|
|
18875
18877
|
model: o,
|
|
18876
18878
|
nameSearch: a,
|
|
@@ -18893,7 +18895,7 @@ const SearchTree$1 = forwardRef(SearchTree), SearchModal = (e) => {
|
|
|
18893
18895
|
}), /* @__PURE__ */ jsx(Button$1, {
|
|
18894
18896
|
icon: /* @__PURE__ */ jsx(CheckOutlined$3, {}),
|
|
18895
18897
|
onClick: () => {
|
|
18896
|
-
|
|
18898
|
+
g();
|
|
18897
18899
|
},
|
|
18898
18900
|
type: "primary",
|
|
18899
18901
|
children: p("ok")
|
|
@@ -18916,7 +18918,7 @@ const SearchTree$1 = forwardRef(SearchTree), SearchModal = (e) => {
|
|
|
18916
18918
|
footer: null,
|
|
18917
18919
|
destroyOnClose: !0,
|
|
18918
18920
|
maskClosable: !1,
|
|
18919
|
-
children:
|
|
18921
|
+
children: I()
|
|
18920
18922
|
}), /* @__PURE__ */ jsx(FormModal, {
|
|
18921
18923
|
model: o,
|
|
18922
18924
|
visible: l,
|
|
@@ -18972,7 +18974,7 @@ const SearchTree$1 = forwardRef(SearchTree), SearchModal = (e) => {
|
|
|
18972
18974
|
context: c,
|
|
18973
18975
|
id: l,
|
|
18974
18976
|
domain: u
|
|
18975
|
-
} = r, d = o && !s ? Config.requiredClass : void 0, [f, p] = useState(!1), [h, m] = useState(!1), [v, x] = useState(!1), [
|
|
18977
|
+
} = r, d = o && !s ? Config.requiredClass : void 0, [f, p] = useState(!1), [h, m] = useState(!1), [v, x] = useState(!1), [g, I] = useState(), C = useRef(!1), [y, O] = useState(""), b = useRef(), E = useContext(FormContext$1), {
|
|
18976
18978
|
domain: w,
|
|
18977
18979
|
getValues: _,
|
|
18978
18980
|
getFields: S,
|
|
@@ -19027,10 +19029,10 @@ const SearchTree$1 = forwardRef(SearchTree), SearchModal = (e) => {
|
|
|
19027
19029
|
},
|
|
19028
19030
|
totalItems: 2
|
|
19029
19031
|
});
|
|
19030
|
-
j.length === 1 ? Z(j[0], !0) : (
|
|
19032
|
+
j.length === 1 ? Z(j[0], !0) : (I(A), p(!0));
|
|
19031
19033
|
return;
|
|
19032
19034
|
}
|
|
19033
|
-
|
|
19035
|
+
I(A), p(!0);
|
|
19034
19036
|
}, Z = async (A, j) => {
|
|
19035
19037
|
x(!0);
|
|
19036
19038
|
try {
|
|
@@ -19057,6 +19059,7 @@ const SearchTree$1 = forwardRef(SearchTree), SearchModal = (e) => {
|
|
|
19057
19059
|
fields: S(),
|
|
19058
19060
|
values: _()
|
|
19059
19061
|
}),
|
|
19062
|
+
fields: S(),
|
|
19060
19063
|
context: k()
|
|
19061
19064
|
})), w && w.length > 0 && (M.current = M.current.concat(transformDomainForChildWidget({
|
|
19062
19065
|
domain: w,
|
|
@@ -19116,7 +19119,7 @@ const SearchTree$1 = forwardRef(SearchTree), SearchModal = (e) => {
|
|
|
19116
19119
|
...c
|
|
19117
19120
|
},
|
|
19118
19121
|
visible: f,
|
|
19119
|
-
nameSearch: $ ? void 0 :
|
|
19122
|
+
nameSearch: $ ? void 0 : g,
|
|
19120
19123
|
onSelectValues: (A) => {
|
|
19121
19124
|
p(!1), Z(A[0]), C.current = !1, b.current = void 0;
|
|
19122
19125
|
},
|
|
@@ -19578,15 +19581,15 @@ function requireTransButton() {
|
|
|
19578
19581
|
}, h = function(y) {
|
|
19579
19582
|
var O = y.keyCode, b = d.onClick;
|
|
19580
19583
|
O === a.default.ENTER && b && b();
|
|
19581
|
-
}, m = d.style, v = d.noStyle, x = d.disabled,
|
|
19582
|
-
return v || (
|
|
19584
|
+
}, m = d.style, v = d.noStyle, x = d.disabled, g = s(d, ["style", "noStyle", "disabled"]), I = {};
|
|
19585
|
+
return v || (I = (0, r.default)({}, c)), x && (I.pointerEvents = "none"), I = (0, r.default)((0, r.default)({}, I), m), /* @__PURE__ */ o.createElement("div", (0, r.default)({
|
|
19583
19586
|
role: "button",
|
|
19584
19587
|
tabIndex: 0,
|
|
19585
19588
|
ref: f
|
|
19586
|
-
},
|
|
19589
|
+
}, g, {
|
|
19587
19590
|
onKeyDown: p,
|
|
19588
19591
|
onKeyUp: h,
|
|
19589
|
-
style:
|
|
19592
|
+
style: I
|
|
19590
19593
|
}));
|
|
19591
19594
|
}), u = l;
|
|
19592
19595
|
e.default = u;
|
|
@@ -19970,13 +19973,13 @@ function setLeftTop(e, t, n) {
|
|
|
19970
19973
|
m === h ? p[m] = v + x : p[m] = v - x;
|
|
19971
19974
|
}
|
|
19972
19975
|
css(e, p), forceRelayout(e), ("left" in t || "top" in t) && setTransitionProperty(e, u);
|
|
19973
|
-
var
|
|
19974
|
-
for (var
|
|
19975
|
-
if (t.hasOwnProperty(
|
|
19976
|
-
var C = getOffsetDirection(
|
|
19977
|
-
|
|
19976
|
+
var g = {};
|
|
19977
|
+
for (var I in t)
|
|
19978
|
+
if (t.hasOwnProperty(I)) {
|
|
19979
|
+
var C = getOffsetDirection(I, n), y = t[I] - d[I];
|
|
19980
|
+
I === C ? g[C] = p[C] + y : g[C] = p[C] - y;
|
|
19978
19981
|
}
|
|
19979
|
-
css(e,
|
|
19982
|
+
css(e, g);
|
|
19980
19983
|
}
|
|
19981
19984
|
function setTransform$1(e, t) {
|
|
19982
19985
|
var n = getOffset(e), r = getTransformXY(e), o = {
|
|
@@ -20181,12 +20184,12 @@ function getVisibleRectForElement(e, t) {
|
|
|
20181
20184
|
var d = utils.css(e, "position");
|
|
20182
20185
|
d === "absolute" && (e.style.position = "fixed");
|
|
20183
20186
|
}
|
|
20184
|
-
var f = utils.getWindowScrollLeft(a), p = utils.getWindowScrollTop(a), h = utils.viewportWidth(a), m = utils.viewportHeight(a), v = c.scrollWidth, x = c.scrollHeight,
|
|
20185
|
-
if (
|
|
20187
|
+
var f = utils.getWindowScrollLeft(a), p = utils.getWindowScrollTop(a), h = utils.viewportWidth(a), m = utils.viewportHeight(a), v = c.scrollWidth, x = c.scrollHeight, g = window.getComputedStyle(s);
|
|
20188
|
+
if (g.overflowX === "hidden" && (v = a.innerWidth), g.overflowY === "hidden" && (x = a.innerHeight), e.style && (e.style.position = u), t || isAncestorFixed(e))
|
|
20186
20189
|
n.left = Math.max(n.left, f), n.top = Math.max(n.top, p), n.right = Math.min(n.right, f + h), n.bottom = Math.min(n.bottom, p + m);
|
|
20187
20190
|
else {
|
|
20188
|
-
var
|
|
20189
|
-
n.right = Math.min(n.right,
|
|
20191
|
+
var I = Math.max(v, f + h);
|
|
20192
|
+
n.right = Math.min(n.right, I);
|
|
20190
20193
|
var C = Math.max(x, p + m);
|
|
20191
20194
|
n.bottom = Math.min(n.bottom, C);
|
|
20192
20195
|
}
|
|
@@ -20267,8 +20270,8 @@ function doAlign(e, t, n, r) {
|
|
|
20267
20270
|
var x = flip(o, /[lr]/gi, {
|
|
20268
20271
|
l: "r",
|
|
20269
20272
|
r: "l"
|
|
20270
|
-
}),
|
|
20271
|
-
isCompleteFailX(C, h, p) || (d = 1, o = x, a =
|
|
20273
|
+
}), g = flipOffset(a, 0), I = flipOffset(s, 0), C = getElFuturePos(h, t, x, g, I);
|
|
20274
|
+
isCompleteFailX(C, h, p) || (d = 1, o = x, a = g, s = I);
|
|
20272
20275
|
}
|
|
20273
20276
|
if (c.adjustY && isFailY(m, h, p)) {
|
|
20274
20277
|
var y = flip(o, /[tb]/gi, {
|
|
@@ -20393,7 +20396,7 @@ var Align = function e(t, n) {
|
|
|
20393
20396
|
return N && isVisible(N) ? k = alignElement(S, N, s) : D && (k = alignPoint(S, D, s)), restoreFocus(L, S), _ && k && _(S, k), !0;
|
|
20394
20397
|
}
|
|
20395
20398
|
return !1;
|
|
20396
|
-
}, d), x = _slicedToArray(v, 2),
|
|
20399
|
+
}, d), x = _slicedToArray(v, 2), g = x[0], I = x[1], C = React__default.useRef({
|
|
20397
20400
|
cancel: function() {
|
|
20398
20401
|
}
|
|
20399
20402
|
}), y = React__default.useRef({
|
|
@@ -20402,21 +20405,21 @@ var Align = function e(t, n) {
|
|
|
20402
20405
|
});
|
|
20403
20406
|
React__default.useEffect(function() {
|
|
20404
20407
|
var b = getElement(a), E = getPoint(a);
|
|
20405
|
-
p.current !== y.current.element && (y.current.cancel(), y.current.element = p.current, y.current.cancel = monitorResize(p.current,
|
|
20408
|
+
p.current !== y.current.element && (y.current.cancel(), y.current.element = p.current, y.current.cancel = monitorResize(p.current, g)), (f.current.element !== b || !isSamePoint(f.current.point, E)) && (g(), C.current.element !== b && (C.current.cancel(), C.current.element = b, C.current.cancel = monitorResize(b, g)));
|
|
20406
20409
|
}), React__default.useEffect(function() {
|
|
20407
|
-
o ?
|
|
20410
|
+
o ? I() : g();
|
|
20408
20411
|
}, [o]);
|
|
20409
20412
|
var O = React__default.useRef(null);
|
|
20410
20413
|
return React__default.useEffect(function() {
|
|
20411
|
-
l ? O.current || (O.current = addEventListenerWrap(window, "resize",
|
|
20414
|
+
l ? O.current || (O.current = addEventListenerWrap(window, "resize", g)) : O.current && (O.current.remove(), O.current = null);
|
|
20412
20415
|
}, [l]), React__default.useEffect(function() {
|
|
20413
20416
|
return function() {
|
|
20414
|
-
C.current.cancel(), y.current.cancel(), O.current && O.current.remove(),
|
|
20417
|
+
C.current.cancel(), y.current.cancel(), O.current && O.current.remove(), I();
|
|
20415
20418
|
};
|
|
20416
20419
|
}, []), React__default.useImperativeHandle(n, function() {
|
|
20417
20420
|
return {
|
|
20418
20421
|
forceAlign: function() {
|
|
20419
|
-
return
|
|
20422
|
+
return g(!0);
|
|
20420
20423
|
}
|
|
20421
20424
|
};
|
|
20422
20425
|
}), React__default.isValidElement(h) && (h = React__default.cloneElement(h, {
|
|
@@ -20494,7 +20497,7 @@ const useVisibleStatus = function(e, t) {
|
|
|
20494
20497
|
return [s, a];
|
|
20495
20498
|
};
|
|
20496
20499
|
var PopupInner = /* @__PURE__ */ React.forwardRef(function(e, t) {
|
|
20497
|
-
var n = e.visible, r = e.prefixCls, o = e.className, a = e.style, s = e.children, c = e.zIndex, l = e.stretch, u = e.destroyPopupOnHide, d = e.align, f = e.point, p = e.getRootDomNode, h = e.getClassNameFromAlign, m = e.onAlign, v = e.onMouseEnter, x = e.onMouseLeave,
|
|
20500
|
+
var n = e.visible, r = e.prefixCls, o = e.className, a = e.style, s = e.children, c = e.zIndex, l = e.stretch, u = e.destroyPopupOnHide, d = e.align, f = e.point, p = e.getRootDomNode, h = e.getClassNameFromAlign, m = e.onAlign, v = e.onMouseEnter, x = e.onMouseLeave, g = e.onMouseDown, I = e.onTouchStart, C = useRef(), y = useRef(), O = useState(), b = _slicedToArray(O, 2), E = b[0], w = b[1], _ = useStretchStyle(l), S = _slicedToArray(_, 2), k = S[0], N = S[1];
|
|
20498
20501
|
function D() {
|
|
20499
20502
|
l && N(p());
|
|
20500
20503
|
}
|
|
@@ -20572,8 +20575,8 @@ var PopupInner = /* @__PURE__ */ React.forwardRef(function(e, t) {
|
|
|
20572
20575
|
className: F,
|
|
20573
20576
|
onMouseEnter: v,
|
|
20574
20577
|
onMouseLeave: x,
|
|
20575
|
-
onMouseDown:
|
|
20576
|
-
onTouchStart:
|
|
20578
|
+
onMouseDown: g,
|
|
20579
|
+
onTouchStart: I,
|
|
20577
20580
|
style: _objectSpread2$1(_objectSpread2$1({}, X), V),
|
|
20578
20581
|
children: P
|
|
20579
20582
|
})
|
|
@@ -20607,11 +20610,11 @@ var MobilePopupInner = /* @__PURE__ */ React.forwardRef(function(e, t) {
|
|
|
20607
20610
|
removeOnLeave: !0,
|
|
20608
20611
|
...d,
|
|
20609
20612
|
children: function(v, x) {
|
|
20610
|
-
var
|
|
20613
|
+
var g = v.className, I = v.style, C = classnamesExports(n, c, g);
|
|
20611
20614
|
return /* @__PURE__ */ jsx("div", {
|
|
20612
20615
|
ref: x,
|
|
20613
20616
|
className: C,
|
|
20614
|
-
style: _objectSpread2$1(_objectSpread2$1({},
|
|
20617
|
+
style: _objectSpread2$1(_objectSpread2$1({}, I), h),
|
|
20615
20618
|
children: m
|
|
20616
20619
|
});
|
|
20617
20620
|
}
|
|
@@ -20717,7 +20720,7 @@ function generateTrigger(e) {
|
|
|
20717
20720
|
var u = [], d = s.props, f = d.popupPlacement, p = d.builtinPlacements, h = d.prefixCls, m = d.alignPoint, v = d.getPopupClassNameFromAlign;
|
|
20718
20721
|
return f && p && u.push(getAlignPopupClassName(p, h, l, m)), v && u.push(v(l)), u.join(" ");
|
|
20719
20722
|
}, s.getComponent = function() {
|
|
20720
|
-
var l = s.props, u = l.prefixCls, d = l.destroyPopupOnHide, f = l.popupClassName, p = l.onPopupAlign, h = l.popupMotion, m = l.popupAnimation, v = l.popupTransitionName, x = l.popupStyle,
|
|
20723
|
+
var l = s.props, u = l.prefixCls, d = l.destroyPopupOnHide, f = l.popupClassName, p = l.onPopupAlign, h = l.popupMotion, m = l.popupAnimation, v = l.popupTransitionName, x = l.popupStyle, g = l.mask, I = l.maskAnimation, C = l.maskTransitionName, y = l.maskMotion, O = l.zIndex, b = l.popup, E = l.stretch, w = l.alignPoint, _ = l.mobile, S = s.state, k = S.popupVisible, N = S.point, D = s.getPopupAlign(), M = {};
|
|
20721
20724
|
return s.isMouseEnterToShow() && (M.onMouseEnter = s.onPopupMouseEnter), s.isMouseLeaveToHide() && (M.onMouseLeave = s.onPopupMouseLeave), M.onMouseDown = s.onPopupMouseDown, M.onTouchStart = s.onPopupMouseDown, /* @__PURE__ */ jsx(Popup, {
|
|
20722
20725
|
prefixCls: u,
|
|
20723
20726
|
destroyPopupOnHide: d,
|
|
@@ -20732,10 +20735,10 @@ function generateTrigger(e) {
|
|
|
20732
20735
|
stretch: E,
|
|
20733
20736
|
getRootDomNode: s.getRootDomNode,
|
|
20734
20737
|
style: x,
|
|
20735
|
-
mask:
|
|
20738
|
+
mask: g,
|
|
20736
20739
|
zIndex: O,
|
|
20737
20740
|
transitionName: v,
|
|
20738
|
-
maskAnimation:
|
|
20741
|
+
maskAnimation: I,
|
|
20739
20742
|
maskTransitionName: C,
|
|
20740
20743
|
maskMotion: y,
|
|
20741
20744
|
ref: s.popupRef,
|
|
@@ -20920,16 +20923,16 @@ function generateTrigger(e) {
|
|
|
20920
20923
|
v && (m.className = v);
|
|
20921
20924
|
var x = _objectSpread2$1({}, m);
|
|
20922
20925
|
supportRef(h) && (x.ref = composeRef(this.triggerRef, h.ref));
|
|
20923
|
-
var
|
|
20924
|
-
return (s || this.popupRef.current || u) && (
|
|
20926
|
+
var g = /* @__PURE__ */ React.cloneElement(h, x), I;
|
|
20927
|
+
return (s || this.popupRef.current || u) && (I = /* @__PURE__ */ jsx(e, {
|
|
20925
20928
|
getContainer: this.getContainer,
|
|
20926
20929
|
didUpdate: this.handlePortalUpdate,
|
|
20927
20930
|
children: this.getComponent()
|
|
20928
|
-
}, "portal")), !s && p && (
|
|
20931
|
+
}, "portal")), !s && p && (I = null), /* @__PURE__ */ jsxs(TriggerContext.Provider, {
|
|
20929
20932
|
value: {
|
|
20930
20933
|
onPopupMouseDown: this.onPopupMouseDown
|
|
20931
20934
|
},
|
|
20932
|
-
children: [
|
|
20935
|
+
children: [g, I]
|
|
20933
20936
|
});
|
|
20934
20937
|
}
|
|
20935
20938
|
}], [{
|
|
@@ -21051,7 +21054,7 @@ var autoAdjustOverflow = {
|
|
|
21051
21054
|
children: typeof n == "function" ? n() : n
|
|
21052
21055
|
});
|
|
21053
21056
|
}, Tooltip = function e(t, n) {
|
|
21054
|
-
var r = t.overlayClassName, o = t.trigger, a = o === void 0 ? ["hover"] : o, s = t.mouseEnterDelay, c = s === void 0 ? 0 : s, l = t.mouseLeaveDelay, u = l === void 0 ? 0.1 : l, d = t.overlayStyle, f = t.prefixCls, p = f === void 0 ? "rc-tooltip" : f, h = t.children, m = t.onVisibleChange, v = t.afterVisibleChange, x = t.transitionName,
|
|
21057
|
+
var r = t.overlayClassName, o = t.trigger, a = o === void 0 ? ["hover"] : o, s = t.mouseEnterDelay, c = s === void 0 ? 0 : s, l = t.mouseLeaveDelay, u = l === void 0 ? 0.1 : l, d = t.overlayStyle, f = t.prefixCls, p = f === void 0 ? "rc-tooltip" : f, h = t.children, m = t.onVisibleChange, v = t.afterVisibleChange, x = t.transitionName, g = t.animation, I = t.placement, C = I === void 0 ? "right" : I, y = t.align, O = y === void 0 ? {} : y, b = t.destroyTooltipOnHide, E = b === void 0 ? !1 : b, w = t.defaultVisible, _ = t.getTooltipContainer, S = t.overlayInnerStyle, k = _objectWithoutProperties(t, ["overlayClassName", "trigger", "mouseEnterDelay", "mouseLeaveDelay", "overlayStyle", "prefixCls", "children", "onVisibleChange", "afterVisibleChange", "transitionName", "animation", "placement", "align", "destroyTooltipOnHide", "defaultVisible", "getTooltipContainer", "overlayInnerStyle"]), N = useRef(null);
|
|
21055
21058
|
useImperativeHandle(n, function() {
|
|
21056
21059
|
return N.current;
|
|
21057
21060
|
});
|
|
@@ -21092,7 +21095,7 @@ var autoAdjustOverflow = {
|
|
|
21092
21095
|
onPopupVisibleChange: m,
|
|
21093
21096
|
afterPopupVisibleChange: v,
|
|
21094
21097
|
popupTransitionName: x,
|
|
21095
|
-
popupAnimation:
|
|
21098
|
+
popupAnimation: g,
|
|
21096
21099
|
defaultPopupVisible: w,
|
|
21097
21100
|
destroyPopupOnHide: L,
|
|
21098
21101
|
autoDestroy: q,
|
|
@@ -21213,7 +21216,7 @@ function requirePlacements() {
|
|
|
21213
21216
|
return typeof u == "boolean" ? u ? o : a : (0, n.default)((0, n.default)({}, a), u);
|
|
21214
21217
|
}
|
|
21215
21218
|
function l(u) {
|
|
21216
|
-
var d = u.arrowWidth, f = d === void 0 ? 5 : d, p = u.horizontalArrowShift, h = p === void 0 ? 16 : p, m = u.verticalArrowShift, v = m === void 0 ? 8 : m, x = u.autoAdjustOverflow,
|
|
21219
|
+
var d = u.arrowWidth, f = d === void 0 ? 5 : d, p = u.horizontalArrowShift, h = p === void 0 ? 16 : p, m = u.verticalArrowShift, v = m === void 0 ? 8 : m, x = u.autoAdjustOverflow, g = {
|
|
21217
21220
|
left: {
|
|
21218
21221
|
points: ["cr", "cl"],
|
|
21219
21222
|
offset: [-4, 0]
|
|
@@ -21263,14 +21266,14 @@ function requirePlacements() {
|
|
|
21263
21266
|
offset: [-4, v + f]
|
|
21264
21267
|
}
|
|
21265
21268
|
};
|
|
21266
|
-
return Object.keys(
|
|
21267
|
-
I
|
|
21269
|
+
return Object.keys(g).forEach(function(I) {
|
|
21270
|
+
g[I] = u.arrowPointAtCenter ? (0, n.default)((0, n.default)({}, g[I]), {
|
|
21268
21271
|
overflow: c(x),
|
|
21269
21272
|
targetOffset: s
|
|
21270
|
-
}) : (0, n.default)((0, n.default)({}, r.placements[
|
|
21273
|
+
}) : (0, n.default)((0, n.default)({}, r.placements[I]), {
|
|
21271
21274
|
overflow: c(x)
|
|
21272
|
-
}), I
|
|
21273
|
-
}),
|
|
21275
|
+
}), g[I].ignoreShake = !0;
|
|
21276
|
+
}), g;
|
|
21274
21277
|
}
|
|
21275
21278
|
}(placements$1)), placements$1;
|
|
21276
21279
|
}
|
|
@@ -21302,39 +21305,39 @@ function requireTooltip() {
|
|
|
21302
21305
|
omitted: b
|
|
21303
21306
|
};
|
|
21304
21307
|
}, m = new RegExp("^(".concat(p.PresetColorTypes.join("|"), ")(-inverse)?$"));
|
|
21305
|
-
function v(
|
|
21306
|
-
var y =
|
|
21307
|
-
if ((y.__ANT_BUTTON === !0 || y.__ANT_SWITCH === !0 || y.__ANT_CHECKBOX === !0 ||
|
|
21308
|
-
var O = h(
|
|
21308
|
+
function v(I, C) {
|
|
21309
|
+
var y = I.type;
|
|
21310
|
+
if ((y.__ANT_BUTTON === !0 || y.__ANT_SWITCH === !0 || y.__ANT_CHECKBOX === !0 || I.type === "button") && I.props.disabled) {
|
|
21311
|
+
var O = h(I.props.style, ["position", "left", "right", "top", "bottom", "float", "display", "zIndex"]), b = O.picked, E = O.omitted, w = (0, a.default)((0, a.default)({
|
|
21309
21312
|
display: "inline-block"
|
|
21310
21313
|
}, b), {
|
|
21311
21314
|
cursor: "not-allowed",
|
|
21312
|
-
width:
|
|
21315
|
+
width: I.props.block ? "100%" : null
|
|
21313
21316
|
}), _ = (0, a.default)((0, a.default)({}, E), {
|
|
21314
21317
|
pointerEvents: "none"
|
|
21315
|
-
}), S = (0, d.cloneElement)(
|
|
21318
|
+
}), S = (0, d.cloneElement)(I, {
|
|
21316
21319
|
style: _,
|
|
21317
21320
|
className: null
|
|
21318
21321
|
});
|
|
21319
21322
|
return /* @__PURE__ */ s.createElement("span", {
|
|
21320
21323
|
style: w,
|
|
21321
|
-
className: (0, l.default)(
|
|
21324
|
+
className: (0, l.default)(I.props.className, "".concat(C, "-disabled-compatible-wrapper"))
|
|
21322
21325
|
}, S);
|
|
21323
21326
|
}
|
|
21324
|
-
return
|
|
21327
|
+
return I;
|
|
21325
21328
|
}
|
|
21326
|
-
var x = /* @__PURE__ */ s.forwardRef(function(
|
|
21327
|
-
var y, O = s.useContext(f.ConfigContext), b = O.getPopupContainer, E = O.getPrefixCls, w = O.direction, _ = s.useState(!!
|
|
21329
|
+
var x = /* @__PURE__ */ s.forwardRef(function(I, C) {
|
|
21330
|
+
var y, O = s.useContext(f.ConfigContext), b = O.getPopupContainer, E = O.getPrefixCls, w = O.direction, _ = s.useState(!!I.visible || !!I.defaultVisible), S = (0, o.default)(_, 2), k = S[0], N = S[1];
|
|
21328
21331
|
s.useEffect(function() {
|
|
21329
|
-
"visible" in
|
|
21330
|
-
}, [
|
|
21332
|
+
"visible" in I && N(I.visible);
|
|
21333
|
+
}, [I.visible]);
|
|
21331
21334
|
var D = function() {
|
|
21332
|
-
var ne =
|
|
21335
|
+
var ne = I.title, J = I.overlay;
|
|
21333
21336
|
return !ne && !J && ne !== 0;
|
|
21334
21337
|
}, M = function(ne) {
|
|
21335
|
-
"visible" in
|
|
21338
|
+
"visible" in I || N(D() ? !1 : ne), I.onVisibleChange && !D() && I.onVisibleChange(ne);
|
|
21336
21339
|
}, L = function() {
|
|
21337
|
-
var ne =
|
|
21340
|
+
var ne = I.builtinPlacements, J = I.arrowPointAtCenter, ee = I.autoAdjustOverflow;
|
|
21338
21341
|
return ne || (0, u.default)({
|
|
21339
21342
|
arrowPointAtCenter: J,
|
|
21340
21343
|
autoAdjustOverflow: ee
|
|
@@ -21351,16 +21354,16 @@ function requireTooltip() {
|
|
|
21351
21354
|
oe.indexOf("top") >= 0 || oe.indexOf("Bottom") >= 0 ? ae.top = "".concat(le.height - J.offset[1], "px") : (oe.indexOf("Top") >= 0 || oe.indexOf("bottom") >= 0) && (ae.top = "".concat(-J.offset[1], "px")), oe.indexOf("left") >= 0 || oe.indexOf("Right") >= 0 ? ae.left = "".concat(le.width - J.offset[0], "px") : (oe.indexOf("right") >= 0 || oe.indexOf("Left") >= 0) && (ae.left = "".concat(-J.offset[0], "px")), ne.style.transformOrigin = "".concat(ae.left, " ").concat(ae.top);
|
|
21352
21355
|
}
|
|
21353
21356
|
}, $ = function() {
|
|
21354
|
-
var ne =
|
|
21357
|
+
var ne = I.title, J = I.overlay;
|
|
21355
21358
|
return ne === 0 ? ne : J || ne || "";
|
|
21356
|
-
}, B =
|
|
21357
|
-
!("visible" in
|
|
21359
|
+
}, B = I.prefixCls, U = I.openClassName, G = I.getPopupContainer, z = I.getTooltipContainer, W = I.overlayClassName, Z = I.color, V = I.overlayInnerStyle, H = I.children, P = E("tooltip", B), A = k;
|
|
21360
|
+
!("visible" in I) && D() && (A = !1);
|
|
21358
21361
|
var j = v((0, d.isValidElement)(H) ? H : /* @__PURE__ */ s.createElement("span", null, H), P), K = j.props, X = (0, l.default)(K.className, (0, r.default)({}, U || "".concat(P, "-open"), !0)), F = (0, l.default)(W, (y = {}, (0, r.default)(y, "".concat(P, "-rtl"), w === "rtl"), (0, r.default)(y, "".concat(P, "-").concat(Z), Z && m.test(Z)), y)), T = V, Y;
|
|
21359
21362
|
return Z && !m.test(Z) && (T = (0, a.default)((0, a.default)({}, V), {
|
|
21360
21363
|
background: Z
|
|
21361
21364
|
}), Y = {
|
|
21362
21365
|
background: Z
|
|
21363
|
-
}), /* @__PURE__ */ s.createElement(c.default, (0, a.default)({},
|
|
21366
|
+
}), /* @__PURE__ */ s.createElement(c.default, (0, a.default)({}, I, {
|
|
21364
21367
|
prefixCls: P,
|
|
21365
21368
|
overlayClassName: F,
|
|
21366
21369
|
getTooltipContainer: G || z || b,
|
|
@@ -21387,8 +21390,8 @@ function requireTooltip() {
|
|
|
21387
21390
|
arrowPointAtCenter: !1,
|
|
21388
21391
|
autoAdjustOverflow: !0
|
|
21389
21392
|
};
|
|
21390
|
-
var
|
|
21391
|
-
e.default =
|
|
21393
|
+
var g = x;
|
|
21394
|
+
e.default = g;
|
|
21392
21395
|
}(tooltip)), tooltip;
|
|
21393
21396
|
}
|
|
21394
21397
|
var Typography = {}, ref = {}, hasRequiredRef;
|
|
@@ -21427,17 +21430,17 @@ function requireTypography() {
|
|
|
21427
21430
|
value: !0
|
|
21428
21431
|
}), e.default = void 0;
|
|
21429
21432
|
var r = n(require_extends()), o = n(requireDefineProperty()), a = t(React__default), s = n(requireClassnames()), c = requireRef(), l = requireConfigProvider(), u = n(requireDevWarning()), d = function(v, x) {
|
|
21430
|
-
var
|
|
21431
|
-
for (var
|
|
21432
|
-
Object.prototype.hasOwnProperty.call(v,
|
|
21433
|
+
var g = {};
|
|
21434
|
+
for (var I in v)
|
|
21435
|
+
Object.prototype.hasOwnProperty.call(v, I) && x.indexOf(I) < 0 && (g[I] = v[I]);
|
|
21433
21436
|
if (v != null && typeof Object.getOwnPropertySymbols == "function")
|
|
21434
|
-
for (var C = 0,
|
|
21435
|
-
x.indexOf(
|
|
21436
|
-
return
|
|
21437
|
-
}, f = function(x,
|
|
21438
|
-
var
|
|
21439
|
-
return E && ((0, u.default)(!1, "Typography", "`setContentRef` is deprecated. Please use `ref` instead."), S = (0, c.composeRef)(
|
|
21440
|
-
var N = k.getPrefixCls, D = k.direction, M = y, L = N("typography",
|
|
21437
|
+
for (var C = 0, I = Object.getOwnPropertySymbols(v); C < I.length; C++)
|
|
21438
|
+
x.indexOf(I[C]) < 0 && Object.prototype.propertyIsEnumerable.call(v, I[C]) && (g[I[C]] = v[I[C]]);
|
|
21439
|
+
return g;
|
|
21440
|
+
}, f = function(x, g) {
|
|
21441
|
+
var I = x.prefixCls, C = x.component, y = C === void 0 ? "article" : C, O = x.className, b = x["aria-label"], E = x.setContentRef, w = x.children, _ = d(x, ["prefixCls", "component", "className", "aria-label", "setContentRef", "children"]), S = g;
|
|
21442
|
+
return E && ((0, u.default)(!1, "Typography", "`setContentRef` is deprecated. Please use `ref` instead."), S = (0, c.composeRef)(g, E)), /* @__PURE__ */ a.createElement(l.ConfigConsumer, null, function(k) {
|
|
21443
|
+
var N = k.getPrefixCls, D = k.direction, M = y, L = N("typography", I), q = (0, s.default)(L, (0, o.default)({}, "".concat(L, "-rtl"), D === "rtl"), O);
|
|
21441
21444
|
return /* @__PURE__ */ a.createElement(M, (0, r.default)({
|
|
21442
21445
|
className: q,
|
|
21443
21446
|
"aria-label": b,
|
|
@@ -21499,7 +21502,7 @@ function requireEditable() {
|
|
|
21499
21502
|
value: !0
|
|
21500
21503
|
}), e.default = void 0;
|
|
21501
21504
|
var r = n(requireDefineProperty()), o = n(requireSlicedToArray()), a = t(React__default), s = n(requireClassnames()), c = n(requireKeyCode()), l = n(requireEnterOutlined()), u = n(TextArea$3), d = function(h) {
|
|
21502
|
-
var m = h.prefixCls, v = h["aria-label"], x = h.className,
|
|
21505
|
+
var m = h.prefixCls, v = h["aria-label"], x = h.className, g = h.style, I = h.direction, C = h.maxLength, y = h.autoSize, O = y === void 0 ? !0 : y, b = h.value, E = h.onSave, w = h.onCancel, _ = a.useRef(), S = a.useRef(!1), k = a.useRef(), N = a.useState(b), D = (0, o.default)(N, 2), M = D[0], L = D[1];
|
|
21503
21506
|
a.useEffect(function() {
|
|
21504
21507
|
L(b);
|
|
21505
21508
|
}, [b]), a.useEffect(function() {
|
|
@@ -21527,10 +21530,10 @@ function requireEditable() {
|
|
|
21527
21530
|
k.current === P && !S.current && !A && !j && !K && !X && (P === c.default.ENTER ? G() : P === c.default.ESC && w());
|
|
21528
21531
|
}, W = function() {
|
|
21529
21532
|
G();
|
|
21530
|
-
}, Z = (0, s.default)(m, "".concat(m, "-edit-content"), (0, r.default)({}, "".concat(m, "-rtl"),
|
|
21533
|
+
}, Z = (0, s.default)(m, "".concat(m, "-edit-content"), (0, r.default)({}, "".concat(m, "-rtl"), I === "rtl"), x);
|
|
21531
21534
|
return /* @__PURE__ */ a.createElement("div", {
|
|
21532
21535
|
className: Z,
|
|
21533
|
-
style:
|
|
21536
|
+
style: g
|
|
21534
21537
|
}, /* @__PURE__ */ a.createElement(u.default, {
|
|
21535
21538
|
ref: _,
|
|
21536
21539
|
maxLength: C,
|
|
@@ -21571,22 +21574,22 @@ function requireUtil() {
|
|
|
21571
21574
|
}
|
|
21572
21575
|
function p(v) {
|
|
21573
21576
|
var x = Array.prototype.slice.apply(v);
|
|
21574
|
-
return x.map(function(
|
|
21575
|
-
return "".concat(
|
|
21577
|
+
return x.map(function(g) {
|
|
21578
|
+
return "".concat(g, ": ").concat(v.getPropertyValue(g), ";");
|
|
21576
21579
|
}).join("");
|
|
21577
21580
|
}
|
|
21578
21581
|
function h(v) {
|
|
21579
21582
|
var x = [];
|
|
21580
|
-
return v.forEach(function(
|
|
21581
|
-
var
|
|
21582
|
-
typeof
|
|
21583
|
+
return v.forEach(function(g) {
|
|
21584
|
+
var I = x[x.length - 1];
|
|
21585
|
+
typeof g == "string" && typeof I == "string" ? x[x.length - 1] += g : x.push(g);
|
|
21583
21586
|
}), x;
|
|
21584
21587
|
}
|
|
21585
|
-
var m = function(x,
|
|
21588
|
+
var m = function(x, g, I, C, y) {
|
|
21586
21589
|
u || (u = document.createElement("div"), u.setAttribute("aria-hidden", "true"), document.body.appendChild(u));
|
|
21587
|
-
var O =
|
|
21590
|
+
var O = g.rows, b = g.suffix, E = b === void 0 ? "" : b, w = window.getComputedStyle(x), _ = p(w), S = f(w.lineHeight), k = Math.round(S * (O + 1) + f(w.paddingTop) + f(w.paddingBottom));
|
|
21588
21591
|
u.setAttribute("style", _), u.style.position = "fixed", u.style.left = "0", u.style.height = "auto", u.style.minHeight = "auto", u.style.maxHeight = "auto", u.style.top = "-999999px", u.style.zIndex = "-1000", u.style.textOverflow = "clip", u.style.whiteSpace = "normal", u.style.webkitLineClamp = "none";
|
|
21589
|
-
var N = h((0, a.default)(
|
|
21592
|
+
var N = h((0, a.default)(I));
|
|
21590
21593
|
(0, r.render)(/* @__PURE__ */ o.createElement("div", {
|
|
21591
21594
|
style: d
|
|
21592
21595
|
}, /* @__PURE__ */ o.createElement("span", {
|
|
@@ -21599,7 +21602,7 @@ function requireUtil() {
|
|
|
21599
21602
|
}
|
|
21600
21603
|
if (D())
|
|
21601
21604
|
return (0, r.unmountComponentAtNode)(u), {
|
|
21602
|
-
content:
|
|
21605
|
+
content: I,
|
|
21603
21606
|
text: u.innerHTML,
|
|
21604
21607
|
ellipsis: !1
|
|
21605
21608
|
};
|
|
@@ -21673,7 +21676,7 @@ function requireBase() {
|
|
|
21673
21676
|
Object.defineProperty(e, "__esModule", {
|
|
21674
21677
|
value: !0
|
|
21675
21678
|
}), e.default = void 0;
|
|
21676
|
-
var r = n(requireDefineProperty()), o = n(requireToConsumableArray()), a = n(_typeof$2.exports), s = n(require_extends()), c = n(requireClassCallCheck()), l = n(requireCreateClass()), u = n(requireInherits()), d = n(requireCreateSuper()), f = t(React__default), p = n(requireClassnames()), h = n(requireToArray()), m = n(requireCopyToClipboard()), v = n(requireOmit()), x = n(requireEditOutlined()),
|
|
21679
|
+
var r = n(requireDefineProperty()), o = n(requireToConsumableArray()), a = n(_typeof$2.exports), s = n(require_extends()), c = n(requireClassCallCheck()), l = n(requireCreateClass()), u = n(requireInherits()), d = n(requireCreateSuper()), f = t(React__default), p = n(requireClassnames()), h = n(requireToArray()), m = n(requireCopyToClipboard()), v = n(requireOmit()), x = n(requireEditOutlined()), g = n(requireCheckOutlined()), I = n(requireCopyOutlined()), C = n(require$$18), y = requireConfigProvider(), O = n(requireLocaleReceiver()), b = n(requireDevWarning()), E = n(requireTransButton()), w = n(requireRaf()), _ = requireStyleChecker(), S = n(requireTooltip()), k = n(requireTypography()), N = n(requireEditable()), D = n(requireUtil()), M = function(z, W) {
|
|
21677
21680
|
var Z = {};
|
|
21678
21681
|
for (var V in z)
|
|
21679
21682
|
Object.prototype.hasOwnProperty.call(z, V) && W.indexOf(V) < 0 && (Z[V] = z[V]);
|
|
@@ -21854,7 +21857,7 @@ function requireBase() {
|
|
|
21854
21857
|
className: (0, p.default)("".concat(A, "-copy"), H && "".concat(A, "-copy-success")),
|
|
21855
21858
|
onClick: this.onCopyClick,
|
|
21856
21859
|
"aria-label": F
|
|
21857
|
-
}, H ? T[1] || /* @__PURE__ */ f.createElement(
|
|
21860
|
+
}, H ? T[1] || /* @__PURE__ */ f.createElement(g.default, null) : T[0] || /* @__PURE__ */ f.createElement(I.default, null)));
|
|
21858
21861
|
}
|
|
21859
21862
|
}
|
|
21860
21863
|
}, {
|
|
@@ -21947,9 +21950,9 @@ function requireBase() {
|
|
|
21947
21950
|
h.indexOf(v[x]) < 0 && Object.prototype.propertyIsEnumerable.call(p, v[x]) && (m[v[x]] = p[v[x]]);
|
|
21948
21951
|
return m;
|
|
21949
21952
|
}, u = (0, c.tupleNum)(1, 2, 3, 4, 5), d = function(h) {
|
|
21950
|
-
var m = h.level, v = m === void 0 ? 1 : m, x = l(h, ["level"]),
|
|
21951
|
-
return u.indexOf(v) !== -1 ?
|
|
21952
|
-
component:
|
|
21953
|
+
var m = h.level, v = m === void 0 ? 1 : m, x = l(h, ["level"]), g;
|
|
21954
|
+
return u.indexOf(v) !== -1 ? g = "h".concat(v) : ((0, a.default)(!1, "Typography.Title", "Title only accept `1 | 2 | 3 | 4 | 5` as `level` value. And `5` need 4.6.0+ version."), g = "h1"), /* @__PURE__ */ o.createElement(s.default, (0, r.default)({}, x, {
|
|
21955
|
+
component: g
|
|
21953
21956
|
}));
|
|
21954
21957
|
}, f = d;
|
|
21955
21958
|
e.default = f;
|
|
@@ -21969,7 +21972,7 @@ const Title$2 = /* @__PURE__ */ getDefaultExportFromCjs(Title$3), {
|
|
|
21969
21972
|
field: u,
|
|
21970
21973
|
operator: d,
|
|
21971
21974
|
manualIds: f
|
|
21972
|
-
} = e, [p, h] = useState(!1), [m, v] = useState(), [x,
|
|
21975
|
+
} = e, [p, h] = useState(!1), [m, v] = useState(), [x, g] = useState(), [I, C] = useState(), [y, O] = useState(0), [b, E] = useState(0), [w, _] = useState(), [S, k] = useState(), [N, D] = useState();
|
|
21973
21976
|
useEffect(() => {
|
|
21974
21977
|
q();
|
|
21975
21978
|
}, [t, o]);
|
|
@@ -22047,7 +22050,7 @@ const Title$2 = /* @__PURE__ */ getDefaultExportFromCjs(Title$3), {
|
|
|
22047
22050
|
isTotal: !0
|
|
22048
22051
|
}), C($);
|
|
22049
22052
|
}
|
|
22050
|
-
if ($ ? (B = Math.round(U / $ * 100 * 100) / 100,
|
|
22053
|
+
if ($ ? (B = Math.round(U / $ * 100 * 100) / 100, g(B)) : g(0), o) {
|
|
22051
22054
|
const G = await ConnectionProvider.getHandler().parseCondition({
|
|
22052
22055
|
condition: o,
|
|
22053
22056
|
values: {
|
|
@@ -22100,7 +22103,7 @@ const Title$2 = /* @__PURE__ */ getDefaultExportFromCjs(Title$3), {
|
|
|
22100
22103
|
measureRef: $
|
|
22101
22104
|
}) => s ? /* @__PURE__ */ jsx(PercentageIndicator, {
|
|
22102
22105
|
value: m,
|
|
22103
|
-
total:
|
|
22106
|
+
total: I,
|
|
22104
22107
|
percent: x,
|
|
22105
22108
|
measureRef: $,
|
|
22106
22109
|
height: y,
|
|
@@ -22110,7 +22113,7 @@ const Title$2 = /* @__PURE__ */ getDefaultExportFromCjs(Title$3), {
|
|
|
22110
22113
|
suffix: l
|
|
22111
22114
|
}) : /* @__PURE__ */ jsx(CommonIndicator, {
|
|
22112
22115
|
value: m,
|
|
22113
|
-
total:
|
|
22116
|
+
total: I,
|
|
22114
22117
|
measureRef: $,
|
|
22115
22118
|
height: y,
|
|
22116
22119
|
width: b,
|
|
@@ -22291,14 +22294,14 @@ const DefaultGraphOptions = {
|
|
|
22291
22294
|
limit: a,
|
|
22292
22295
|
uninformedString: s,
|
|
22293
22296
|
manualIds: c
|
|
22294
|
-
} = e, [l, u] = useState(!1), [d, f] = useState(), [p, h] = useState(), [m, v] = useState(), [x,
|
|
22297
|
+
} = e, [l, u] = useState(!1), [d, f] = useState(), [p, h] = useState(), [m, v] = useState(), [x, g] = useState("line");
|
|
22295
22298
|
return useDeepCompareEffect(() => {
|
|
22296
22299
|
(async () => {
|
|
22297
22300
|
u(!0), f(void 0);
|
|
22298
|
-
const
|
|
22299
|
-
I
|
|
22301
|
+
const I = parseGraph(o);
|
|
22302
|
+
g(I.type || "line");
|
|
22300
22303
|
const C = getFieldsToRetrieve({
|
|
22301
|
-
ooui:
|
|
22304
|
+
ooui: I
|
|
22302
22305
|
});
|
|
22303
22306
|
let y, O;
|
|
22304
22307
|
try {
|
|
@@ -22310,7 +22313,7 @@ const DefaultGraphOptions = {
|
|
|
22310
22313
|
domain: n,
|
|
22311
22314
|
context: r,
|
|
22312
22315
|
limit: a,
|
|
22313
|
-
order:
|
|
22316
|
+
order: I.timerange ? I.x.name : null,
|
|
22314
22317
|
fields: C,
|
|
22315
22318
|
manualIds: c
|
|
22316
22319
|
}));
|
|
@@ -22325,7 +22328,7 @@ const DefaultGraphOptions = {
|
|
|
22325
22328
|
}
|
|
22326
22329
|
v(y);
|
|
22327
22330
|
const b = processGraphData({
|
|
22328
|
-
ooui:
|
|
22331
|
+
ooui: I,
|
|
22329
22332
|
values: y,
|
|
22330
22333
|
fields: O,
|
|
22331
22334
|
options: {
|
|
@@ -22495,18 +22498,18 @@ const GraphComp = (e, t) => {
|
|
|
22495
22498
|
async function x() {
|
|
22496
22499
|
u(!0), v == null || v(!0);
|
|
22497
22500
|
try {
|
|
22498
|
-
const
|
|
22501
|
+
const g = await ConnectionProvider.getHandler().getView({
|
|
22499
22502
|
model: r,
|
|
22500
22503
|
id: n,
|
|
22501
22504
|
type: "graph",
|
|
22502
22505
|
context: o
|
|
22503
22506
|
});
|
|
22504
|
-
h(
|
|
22505
|
-
const
|
|
22506
|
-
f(
|
|
22507
|
-
} catch (
|
|
22508
|
-
return console.error(
|
|
22509
|
-
children: JSON.stringify(
|
|
22507
|
+
h(g.arch);
|
|
22508
|
+
const I = parseGraph(g.arch);
|
|
22509
|
+
f(I);
|
|
22510
|
+
} catch (g) {
|
|
22511
|
+
return console.error(g), /* @__PURE__ */ jsx(Fragment, {
|
|
22512
|
+
children: JSON.stringify(g)
|
|
22510
22513
|
});
|
|
22511
22514
|
}
|
|
22512
22515
|
u(!1), v == null || v(!1);
|
|
@@ -22532,21 +22535,21 @@ const GraphComp = (e, t) => {
|
|
|
22532
22535
|
switch (d.type) {
|
|
22533
22536
|
case "indicatorField":
|
|
22534
22537
|
case "indicator": {
|
|
22535
|
-
const
|
|
22536
|
-
field:
|
|
22537
|
-
operator:
|
|
22538
|
+
const g = d, I = g.type === "indicatorField" ? {
|
|
22539
|
+
field: g.field,
|
|
22540
|
+
operator: g.operator
|
|
22538
22541
|
} : {};
|
|
22539
22542
|
return /* @__PURE__ */ jsx(GraphIndicator, {
|
|
22540
|
-
showPercent:
|
|
22541
|
-
totalDomain:
|
|
22542
|
-
colorCondition:
|
|
22543
|
+
showPercent: g.showPercent,
|
|
22544
|
+
totalDomain: g.totalDomain,
|
|
22545
|
+
colorCondition: g.color,
|
|
22543
22546
|
model: r,
|
|
22544
22547
|
context: o,
|
|
22545
22548
|
domain: a,
|
|
22546
|
-
icon:
|
|
22547
|
-
suffix:
|
|
22549
|
+
icon: g.icon,
|
|
22550
|
+
suffix: g.suffix,
|
|
22548
22551
|
manualIds: c,
|
|
22549
|
-
...
|
|
22552
|
+
...I
|
|
22550
22553
|
});
|
|
22551
22554
|
}
|
|
22552
22555
|
case "line":
|
|
@@ -22618,7 +22621,7 @@ const GraphComp = (e, t) => {
|
|
|
22618
22621
|
className: "inline-block w-3"
|
|
22619
22622
|
});
|
|
22620
22623
|
}
|
|
22621
|
-
function
|
|
22624
|
+
function g() {
|
|
22622
22625
|
return /* @__PURE__ */ jsx("div", {
|
|
22623
22626
|
className: "flex flex-grow h-8 text-gray-200 bg-gray-700",
|
|
22624
22627
|
children: /* @__PURE__ */ jsx("div", {
|
|
@@ -22630,7 +22633,7 @@ const GraphComp = (e, t) => {
|
|
|
22630
22633
|
})
|
|
22631
22634
|
});
|
|
22632
22635
|
}
|
|
22633
|
-
function
|
|
22636
|
+
function I() {
|
|
22634
22637
|
return /* @__PURE__ */ jsx(ButtonWithTooltip, {
|
|
22635
22638
|
tooltip: f ? "Unlink" : "Delete",
|
|
22636
22639
|
icon: f ? /* @__PURE__ */ jsx(ApiOutlined, {}) : /* @__PURE__ */ jsx(DeleteOutlined, {}),
|
|
@@ -22660,7 +22663,7 @@ const GraphComp = (e, t) => {
|
|
|
22660
22663
|
}
|
|
22661
22664
|
return /* @__PURE__ */ jsxs("div", {
|
|
22662
22665
|
className: "flex mb-2",
|
|
22663
|
-
children: [
|
|
22666
|
+
children: [g(), /* @__PURE__ */ jsxs("div", {
|
|
22664
22667
|
className: "flex-none h-8 pl-2",
|
|
22665
22668
|
children: [a !== "graph" && m && /* @__PURE__ */ jsx(ButtonWithTooltip, {
|
|
22666
22669
|
tooltip: "Create new item",
|
|
@@ -22672,7 +22675,7 @@ const GraphComp = (e, t) => {
|
|
|
22672
22675
|
icon: /* @__PURE__ */ jsx(SearchOutlined, {}),
|
|
22673
22676
|
disabled: n,
|
|
22674
22677
|
onClick: p
|
|
22675
|
-
}), a !== "graph" && x(), a !== "graph" &&
|
|
22678
|
+
}), a !== "graph" && x(), a !== "graph" && I(), a === "form" && y(), x(), v && /* @__PURE__ */ jsx(ButtonWithTooltip, {
|
|
22676
22679
|
tooltip: "Toggle view mode",
|
|
22677
22680
|
icon: /* @__PURE__ */ jsx(AlignLeftOutlined, {}),
|
|
22678
22681
|
onClick: o
|
|
@@ -22715,8 +22718,8 @@ const One2manyInput = (e) => {
|
|
|
22715
22718
|
domain: v
|
|
22716
22719
|
} = d || {}, {
|
|
22717
22720
|
lang: x,
|
|
22718
|
-
t:
|
|
22719
|
-
} = useContext(LocaleContext),
|
|
22721
|
+
t: g
|
|
22722
|
+
} = useContext(LocaleContext), I = useRef(), [C, y] = useState(!1), [O, b] = useState(!1), [E, w] = useState(), [_, S] = useState(!1), [k, N] = useState(!1), [D, M] = useState(), [L, q] = useState([]), [$, B] = useState(!1), U = useRef([]), [G, z] = useState(), W = useRef(), {
|
|
22720
22723
|
readOnly: Z,
|
|
22721
22724
|
relation: V,
|
|
22722
22725
|
context: H,
|
|
@@ -22766,6 +22769,7 @@ const One2manyInput = (e) => {
|
|
|
22766
22769
|
fields: p(),
|
|
22767
22770
|
values: h()
|
|
22768
22771
|
}),
|
|
22772
|
+
fields: p(),
|
|
22769
22773
|
context: m()
|
|
22770
22774
|
}),
|
|
22771
22775
|
widgetFieldName: j
|
|
@@ -22966,14 +22970,14 @@ const One2manyInput = (e) => {
|
|
|
22966
22970
|
const ve = () => {
|
|
22967
22971
|
var ce, ge, ye, Oe;
|
|
22968
22972
|
if (s === "form")
|
|
22969
|
-
return K.length === 0 ?
|
|
22973
|
+
return K.length === 0 ? g("noCurrentEntries") : /* @__PURE__ */ jsx(Form$1, {
|
|
22970
22974
|
formView: o.get("form"),
|
|
22971
22975
|
values: (ce = K[l]) == null ? void 0 : ce.values,
|
|
22972
22976
|
parentContext: {
|
|
22973
22977
|
...m == null ? void 0 : m(),
|
|
22974
22978
|
...H
|
|
22975
22979
|
},
|
|
22976
|
-
ref:
|
|
22980
|
+
ref: I,
|
|
22977
22981
|
model: V,
|
|
22978
22982
|
id: (ge = K[l]) == null ? void 0 : ge.id,
|
|
22979
22983
|
submitMode: "values",
|
|
@@ -23108,7 +23112,7 @@ const One2manyInput = (e) => {
|
|
|
23108
23112
|
getContext: v
|
|
23109
23113
|
} = m || {};
|
|
23110
23114
|
useDeepCompareEffect(() => {
|
|
23111
|
-
|
|
23115
|
+
g();
|
|
23112
23116
|
}, [t]);
|
|
23113
23117
|
const x = async (C) => o && o[C] ? o[C] : await ConnectionProvider.getHandler().getView({
|
|
23114
23118
|
model: r,
|
|
@@ -23117,7 +23121,7 @@ const One2manyInput = (e) => {
|
|
|
23117
23121
|
...v == null ? void 0 : v(),
|
|
23118
23122
|
...s
|
|
23119
23123
|
}
|
|
23120
|
-
}),
|
|
23124
|
+
}), g = async () => {
|
|
23121
23125
|
u(!0), f(void 0);
|
|
23122
23126
|
try {
|
|
23123
23127
|
if (n && n.length > 0) {
|
|
@@ -26069,23 +26073,23 @@ const DatePickerConfig = {
|
|
|
26069
26073
|
getFieldValue: d
|
|
26070
26074
|
} = useContext(FormContext$1) || {}, {
|
|
26071
26075
|
t: f
|
|
26072
|
-
} = useContext(LocaleContext), p = n ? getFilesize(n) : "", h = (
|
|
26073
|
-
r == null || r(
|
|
26076
|
+
} = useContext(LocaleContext), p = n ? getFilesize(n) : "", h = (I) => {
|
|
26077
|
+
r == null || r(I);
|
|
26074
26078
|
};
|
|
26075
26079
|
async function m() {
|
|
26076
|
-
const
|
|
26080
|
+
const I = await getMimeType(n), C = `data:${I == null ? void 0 : I.mime};base64,${n}`, y = document.createElement("a"), O = d(s), b = d("name");
|
|
26077
26081
|
y.href = C, y.download = O || b, y.click();
|
|
26078
26082
|
}
|
|
26079
26083
|
async function v() {
|
|
26080
|
-
const
|
|
26081
|
-
openBase64InNewTab(n,
|
|
26084
|
+
const I = await getMimeType(n);
|
|
26085
|
+
openBase64InNewTab(n, I.mime);
|
|
26082
26086
|
}
|
|
26083
|
-
async function x(
|
|
26084
|
-
|
|
26085
|
-
const C =
|
|
26087
|
+
async function x(I) {
|
|
26088
|
+
I.stopPropagation(), I.preventDefault();
|
|
26089
|
+
const C = I.target.files[0], y = await toBase64(C);
|
|
26086
26090
|
h(y), s && u(s, C.name);
|
|
26087
26091
|
}
|
|
26088
|
-
function
|
|
26092
|
+
function g() {
|
|
26089
26093
|
u(s, void 0), h(void 0);
|
|
26090
26094
|
}
|
|
26091
26095
|
return /* @__PURE__ */ jsxs(Row, {
|
|
@@ -26130,7 +26134,7 @@ const DatePickerConfig = {
|
|
|
26130
26134
|
}), /* @__PURE__ */ jsx(ButtonWithTooltip, {
|
|
26131
26135
|
tooltip: f("clear"),
|
|
26132
26136
|
disabled: o || !n,
|
|
26133
|
-
onClick:
|
|
26137
|
+
onClick: g,
|
|
26134
26138
|
icon: /* @__PURE__ */ jsx(ClearOutlined, {})
|
|
26135
26139
|
})]
|
|
26136
26140
|
})
|
|
@@ -26476,46 +26480,46 @@ function AttachmentsButton(e) {
|
|
|
26476
26480
|
} = useContext(LocaleContext), m = useCallback(async () => {
|
|
26477
26481
|
l(!0);
|
|
26478
26482
|
try {
|
|
26479
|
-
const
|
|
26483
|
+
const g = await ConnectionProvider.getHandler().readObjects({
|
|
26480
26484
|
model: "ir.attachment",
|
|
26481
|
-
ids: t.map((
|
|
26485
|
+
ids: t.map((I) => I.id),
|
|
26482
26486
|
fieldsToRetrieve: ["name", "datas_fname", "link"],
|
|
26483
26487
|
context: s.current.getContext()
|
|
26484
26488
|
});
|
|
26485
|
-
d(
|
|
26486
|
-
id:
|
|
26487
|
-
name:
|
|
26488
|
-
datas_fname:
|
|
26489
|
-
link:
|
|
26489
|
+
d(g.map((I) => ({
|
|
26490
|
+
id: I.id,
|
|
26491
|
+
name: I.name,
|
|
26492
|
+
datas_fname: I.datas_fname,
|
|
26493
|
+
link: I.link
|
|
26490
26494
|
})));
|
|
26491
|
-
} catch (
|
|
26492
|
-
showDialog$8(
|
|
26495
|
+
} catch (g) {
|
|
26496
|
+
showDialog$8(g);
|
|
26493
26497
|
}
|
|
26494
26498
|
l(!1);
|
|
26495
|
-
}, t), v = useCallback(async (
|
|
26496
|
-
if (
|
|
26497
|
-
window.open(
|
|
26499
|
+
}, t), v = useCallback(async (g) => {
|
|
26500
|
+
if (g.link) {
|
|
26501
|
+
window.open(g.link);
|
|
26498
26502
|
return;
|
|
26499
26503
|
}
|
|
26500
26504
|
p(!0);
|
|
26501
|
-
let
|
|
26505
|
+
let I;
|
|
26502
26506
|
try {
|
|
26503
|
-
|
|
26507
|
+
I = (await ConnectionProvider.getHandler().readObjects({
|
|
26504
26508
|
model: "ir.attachment",
|
|
26505
|
-
ids: [
|
|
26509
|
+
ids: [g.id],
|
|
26506
26510
|
context: s.current.getContext()
|
|
26507
26511
|
}))[0];
|
|
26508
26512
|
} catch (C) {
|
|
26509
26513
|
showDialog$8(C);
|
|
26510
26514
|
}
|
|
26511
|
-
if (p(!1), !!
|
|
26512
|
-
if (
|
|
26513
|
-
const C = await getMimeType(
|
|
26514
|
-
openBase64InNewTab(
|
|
26515
|
+
if (p(!1), !!I)
|
|
26516
|
+
if (I.datas) {
|
|
26517
|
+
const C = await getMimeType(I.datas);
|
|
26518
|
+
openBase64InNewTab(I.datas, C.mime);
|
|
26515
26519
|
} else
|
|
26516
|
-
a(
|
|
26517
|
-
}, []), x = useCallback(async (
|
|
26518
|
-
a(
|
|
26520
|
+
a(I);
|
|
26521
|
+
}, []), x = useCallback(async (g) => {
|
|
26522
|
+
a(g);
|
|
26519
26523
|
}, []);
|
|
26520
26524
|
return useEffect(() => {
|
|
26521
26525
|
m();
|
|
@@ -26560,8 +26564,8 @@ function FormActionBar({
|
|
|
26560
26564
|
removingItem: m,
|
|
26561
26565
|
duplicatingItem: v,
|
|
26562
26566
|
setDuplicatingItem: x,
|
|
26563
|
-
setResults:
|
|
26564
|
-
formIsLoading:
|
|
26567
|
+
setResults: g,
|
|
26568
|
+
formIsLoading: I,
|
|
26565
26569
|
attachments: C,
|
|
26566
26570
|
formRef: y,
|
|
26567
26571
|
setFormHasChanges: O,
|
|
@@ -26624,7 +26628,7 @@ function FormActionBar({
|
|
|
26624
26628
|
ids: [c]
|
|
26625
26629
|
});
|
|
26626
26630
|
const P = l == null ? void 0 : l.filter((j) => j.id !== c);
|
|
26627
|
-
|
|
26631
|
+
g == null || g(P);
|
|
26628
26632
|
let A = 0;
|
|
26629
26633
|
d > 0 && d <= l.length - 1 && (A = d - 1), P != null && P[A] ? (f == null || f(P == null ? void 0 : P[A].id), u == null || u(A)) : (f == null || f(void 0), u == null || u(void 0));
|
|
26630
26634
|
} catch (P) {
|
|
@@ -26648,7 +26652,7 @@ function FormActionBar({
|
|
|
26648
26652
|
x == null || x(!1);
|
|
26649
26653
|
}
|
|
26650
26654
|
}
|
|
26651
|
-
const V = s || m ||
|
|
26655
|
+
const V = s || m || I || v;
|
|
26652
26656
|
function H(P) {
|
|
26653
26657
|
D == null || D({
|
|
26654
26658
|
actionData: P,
|
|
@@ -26662,10 +26666,10 @@ function FormActionBar({
|
|
|
26662
26666
|
}
|
|
26663
26667
|
return n ? /* @__PURE__ */ jsxs(Space, {
|
|
26664
26668
|
wrap: !0,
|
|
26665
|
-
children: [
|
|
26669
|
+
children: [I && /* @__PURE__ */ jsxs(Fragment, {
|
|
26666
26670
|
children: [/* @__PURE__ */ jsx(Spin, {}), separator$2(), separator$2()]
|
|
26667
26671
|
}), /* @__PURE__ */ jsx(NewButton, {
|
|
26668
|
-
disabled: s ||
|
|
26672
|
+
disabled: s || I || m || v
|
|
26669
26673
|
}), /* @__PURE__ */ jsx(ActionButton, {
|
|
26670
26674
|
icon: /* @__PURE__ */ jsx(SaveOutlined, {}),
|
|
26671
26675
|
tooltip: S("save"),
|
|
@@ -26675,19 +26679,19 @@ function FormActionBar({
|
|
|
26675
26679
|
}), /* @__PURE__ */ jsx(ActionButton, {
|
|
26676
26680
|
icon: /* @__PURE__ */ jsx(CopyOutlined$3, {}),
|
|
26677
26681
|
tooltip: S("duplicate"),
|
|
26678
|
-
disabled: a || s || c === void 0 || v ||
|
|
26682
|
+
disabled: a || s || c === void 0 || v || I,
|
|
26679
26683
|
loading: v,
|
|
26680
26684
|
onClick: Z
|
|
26681
26685
|
}), /* @__PURE__ */ jsx(ActionButton, {
|
|
26682
26686
|
icon: /* @__PURE__ */ jsx(DeleteOutlined, {}),
|
|
26683
26687
|
tooltip: S("delete"),
|
|
26684
|
-
disabled: s || c === void 0 || m || v ||
|
|
26688
|
+
disabled: s || c === void 0 || m || v || I,
|
|
26685
26689
|
loading: m,
|
|
26686
26690
|
onClick: z
|
|
26687
26691
|
}), separator$2(), /* @__PURE__ */ jsx(ActionButton, {
|
|
26688
26692
|
icon: /* @__PURE__ */ jsx(InfoCircleOutlined$3, {}),
|
|
26689
26693
|
tooltip: S("showLogs"),
|
|
26690
|
-
disabled: s || c === void 0 || m || v ||
|
|
26694
|
+
disabled: s || c === void 0 || m || v || I,
|
|
26691
26695
|
loading: !1,
|
|
26692
26696
|
onClick: () => {
|
|
26693
26697
|
showLogInfo(p, c, S);
|
|
@@ -26695,7 +26699,7 @@ function FormActionBar({
|
|
|
26695
26699
|
}), /* @__PURE__ */ jsx(ActionButton, {
|
|
26696
26700
|
icon: /* @__PURE__ */ jsx(ReloadOutlined, {}),
|
|
26697
26701
|
tooltip: S("refresh"),
|
|
26698
|
-
disabled: s || c === void 0 || m || v ||
|
|
26702
|
+
disabled: s || c === void 0 || m || v || I,
|
|
26699
26703
|
loading: !1,
|
|
26700
26704
|
onClick: () => {
|
|
26701
26705
|
$(() => {
|
|
@@ -26892,40 +26896,40 @@ var isIP = { exports: {} };
|
|
|
26892
26896
|
(function(e, t) {
|
|
26893
26897
|
Object.defineProperty(t, "__esModule", {
|
|
26894
26898
|
value: !0
|
|
26895
|
-
}), t.default =
|
|
26899
|
+
}), t.default = g;
|
|
26896
26900
|
var n = s(assertString.exports), r = s(isFQDN.exports), o = s(isIP.exports), a = s(merge.exports);
|
|
26897
|
-
function s(
|
|
26898
|
-
return
|
|
26901
|
+
function s(I) {
|
|
26902
|
+
return I && I.__esModule ? I : { default: I };
|
|
26899
26903
|
}
|
|
26900
|
-
function c(
|
|
26901
|
-
return p(
|
|
26904
|
+
function c(I, C) {
|
|
26905
|
+
return p(I) || f(I, C) || u(I, C) || l();
|
|
26902
26906
|
}
|
|
26903
26907
|
function l() {
|
|
26904
26908
|
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
26905
26909
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
26906
26910
|
}
|
|
26907
|
-
function u(
|
|
26908
|
-
if (!!
|
|
26909
|
-
if (typeof
|
|
26910
|
-
return d(
|
|
26911
|
-
var y = Object.prototype.toString.call(
|
|
26912
|
-
if (y === "Object" &&
|
|
26913
|
-
return Array.from(
|
|
26911
|
+
function u(I, C) {
|
|
26912
|
+
if (!!I) {
|
|
26913
|
+
if (typeof I == "string")
|
|
26914
|
+
return d(I, C);
|
|
26915
|
+
var y = Object.prototype.toString.call(I).slice(8, -1);
|
|
26916
|
+
if (y === "Object" && I.constructor && (y = I.constructor.name), y === "Map" || y === "Set")
|
|
26917
|
+
return Array.from(I);
|
|
26914
26918
|
if (y === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(y))
|
|
26915
|
-
return d(
|
|
26919
|
+
return d(I, C);
|
|
26916
26920
|
}
|
|
26917
26921
|
}
|
|
26918
|
-
function d(
|
|
26919
|
-
(C == null || C >
|
|
26922
|
+
function d(I, C) {
|
|
26923
|
+
(C == null || C > I.length) && (C = I.length);
|
|
26920
26924
|
for (var y = 0, O = new Array(C); y < C; y++)
|
|
26921
|
-
O[y] =
|
|
26925
|
+
O[y] = I[y];
|
|
26922
26926
|
return O;
|
|
26923
26927
|
}
|
|
26924
|
-
function f(
|
|
26925
|
-
if (!(typeof Symbol > "u" || !(Symbol.iterator in Object(
|
|
26928
|
+
function f(I, C) {
|
|
26929
|
+
if (!(typeof Symbol > "u" || !(Symbol.iterator in Object(I)))) {
|
|
26926
26930
|
var y = [], O = !0, b = !1, E = void 0;
|
|
26927
26931
|
try {
|
|
26928
|
-
for (var w =
|
|
26932
|
+
for (var w = I[Symbol.iterator](), _; !(O = (_ = w.next()).done) && (y.push(_.value), !(C && y.length === C)); O = !0)
|
|
26929
26933
|
;
|
|
26930
26934
|
} catch (S) {
|
|
26931
26935
|
b = !0, E = S;
|
|
@@ -26940,9 +26944,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
26940
26944
|
return y;
|
|
26941
26945
|
}
|
|
26942
26946
|
}
|
|
26943
|
-
function p(
|
|
26944
|
-
if (Array.isArray(
|
|
26945
|
-
return
|
|
26947
|
+
function p(I) {
|
|
26948
|
+
if (Array.isArray(I))
|
|
26949
|
+
return I;
|
|
26946
26950
|
}
|
|
26947
26951
|
var h = {
|
|
26948
26952
|
protocols: ["http", "https", "ftp"],
|
|
@@ -26958,38 +26962,38 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
26958
26962
|
allow_query_components: !0,
|
|
26959
26963
|
validate_length: !0
|
|
26960
26964
|
}, m = /^\[([^\]]+)\](?::([0-9]+))?$/;
|
|
26961
|
-
function v(
|
|
26962
|
-
return Object.prototype.toString.call(
|
|
26965
|
+
function v(I) {
|
|
26966
|
+
return Object.prototype.toString.call(I) === "[object RegExp]";
|
|
26963
26967
|
}
|
|
26964
|
-
function x(
|
|
26968
|
+
function x(I, C) {
|
|
26965
26969
|
for (var y = 0; y < C.length; y++) {
|
|
26966
26970
|
var O = C[y];
|
|
26967
|
-
if (
|
|
26971
|
+
if (I === O || v(O) && O.test(I))
|
|
26968
26972
|
return !0;
|
|
26969
26973
|
}
|
|
26970
26974
|
return !1;
|
|
26971
26975
|
}
|
|
26972
|
-
function I
|
|
26973
|
-
if ((0, n.default)(
|
|
26976
|
+
function g(I, C) {
|
|
26977
|
+
if ((0, n.default)(I), !I || /[\s<>]/.test(I) || I.indexOf("mailto:") === 0 || (C = (0, a.default)(C, h), C.validate_length && I.length >= 2083) || !C.allow_fragments && I.includes("#") || !C.allow_query_components && (I.includes("?") || I.includes("&")))
|
|
26974
26978
|
return !1;
|
|
26975
26979
|
var y, O, b, E, w, _, S, k;
|
|
26976
|
-
if (S =
|
|
26980
|
+
if (S = I.split("#"), I = S.shift(), S = I.split("?"), I = S.shift(), S = I.split("://"), S.length > 1) {
|
|
26977
26981
|
if (y = S.shift().toLowerCase(), C.require_valid_protocol && C.protocols.indexOf(y) === -1)
|
|
26978
26982
|
return !1;
|
|
26979
26983
|
} else {
|
|
26980
26984
|
if (C.require_protocol)
|
|
26981
26985
|
return !1;
|
|
26982
|
-
if (
|
|
26986
|
+
if (I.substr(0, 2) === "//") {
|
|
26983
26987
|
if (!C.allow_protocol_relative_urls)
|
|
26984
26988
|
return !1;
|
|
26985
|
-
S[0] =
|
|
26989
|
+
S[0] = I.substr(2);
|
|
26986
26990
|
}
|
|
26987
26991
|
}
|
|
26988
|
-
if (
|
|
26992
|
+
if (I = S.join("://"), I === "")
|
|
26989
26993
|
return !1;
|
|
26990
|
-
if (S =
|
|
26994
|
+
if (S = I.split("/"), I = S.shift(), I === "" && !C.require_host)
|
|
26991
26995
|
return !0;
|
|
26992
|
-
if (S =
|
|
26996
|
+
if (S = I.split("@"), S.length > 1) {
|
|
26993
26997
|
if (C.disallow_auth || S[0] === "" || (O = S.shift(), O.indexOf(":") >= 0 && O.split(":").length > 2))
|
|
26994
26998
|
return !1;
|
|
26995
26999
|
var N = O.split(":"), D = c(N, 2), M = D[0], L = D[1];
|
|
@@ -27046,8 +27050,8 @@ const isURL = /* @__PURE__ */ getDefaultExportFromCjs(isURL$1.exports), LinkInpu
|
|
|
27046
27050
|
flex: "auto",
|
|
27047
27051
|
children: m ? /* @__PURE__ */ jsx(Input$1, {
|
|
27048
27052
|
id: s,
|
|
27049
|
-
onChange: (
|
|
27050
|
-
r == null || r(
|
|
27053
|
+
onChange: (g) => {
|
|
27054
|
+
r == null || r(g.target.value);
|
|
27051
27055
|
},
|
|
27052
27056
|
className: u,
|
|
27053
27057
|
value: n,
|
|
@@ -27108,10 +27112,10 @@ var isEmail$1 = { exports: {} }, isByteLength = { exports: {} };
|
|
|
27108
27112
|
(function(e, t) {
|
|
27109
27113
|
Object.defineProperty(t, "__esModule", {
|
|
27110
27114
|
value: !0
|
|
27111
|
-
}), t.default =
|
|
27115
|
+
}), t.default = g;
|
|
27112
27116
|
var n = c(assertString.exports), r = c(merge.exports), o = c(isByteLength.exports), a = c(isFQDN.exports), s = c(isIP.exports);
|
|
27113
|
-
function c(
|
|
27114
|
-
return
|
|
27117
|
+
function c(I) {
|
|
27118
|
+
return I && I.__esModule ? I : { default: I };
|
|
27115
27119
|
}
|
|
27116
27120
|
var l = {
|
|
27117
27121
|
allow_display_name: !1,
|
|
@@ -27122,13 +27126,13 @@ var isEmail$1 = { exports: {} }, isByteLength = { exports: {} };
|
|
|
27122
27126
|
ignore_max_length: !1,
|
|
27123
27127
|
host_blacklist: []
|
|
27124
27128
|
}, u = /^([^\x00-\x1F\x7F-\x9F\cX]+)</i, d = /^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~]+$/i, f = /^[a-z\d]+$/, p = /^([\s\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e]|(\\[\x01-\x09\x0b\x0c\x0d-\x7f]))*$/i, h = /^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+$/i, m = /^([\s\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]|(\\[\x01-\x09\x0b\x0c\x0d-\x7f\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))*$/i, v = 254;
|
|
27125
|
-
function x(
|
|
27126
|
-
var C =
|
|
27129
|
+
function x(I) {
|
|
27130
|
+
var C = I.replace(/^"(.+)"$/, "$1");
|
|
27127
27131
|
if (!C.trim())
|
|
27128
27132
|
return !1;
|
|
27129
27133
|
var y = /[\.";<>]/.test(C);
|
|
27130
27134
|
if (y) {
|
|
27131
|
-
if (C ===
|
|
27135
|
+
if (C === I)
|
|
27132
27136
|
return !1;
|
|
27133
27137
|
var O = C.split('"').length === C.split('\\"').length;
|
|
27134
27138
|
if (!O)
|
|
@@ -27136,19 +27140,19 @@ var isEmail$1 = { exports: {} }, isByteLength = { exports: {} };
|
|
|
27136
27140
|
}
|
|
27137
27141
|
return !0;
|
|
27138
27142
|
}
|
|
27139
|
-
function I
|
|
27140
|
-
if ((0, n.default)(
|
|
27141
|
-
var y =
|
|
27143
|
+
function g(I, C) {
|
|
27144
|
+
if ((0, n.default)(I), C = (0, r.default)(C, l), C.require_display_name || C.allow_display_name) {
|
|
27145
|
+
var y = I.match(u);
|
|
27142
27146
|
if (y) {
|
|
27143
27147
|
var O = y[1];
|
|
27144
|
-
if (
|
|
27148
|
+
if (I = I.replace(O, "").replace(/(^<|>$)/g, ""), O.endsWith(" ") && (O = O.substr(0, O.length - 1)), !x(O))
|
|
27145
27149
|
return !1;
|
|
27146
27150
|
} else if (C.require_display_name)
|
|
27147
27151
|
return !1;
|
|
27148
27152
|
}
|
|
27149
|
-
if (!C.ignore_max_length &&
|
|
27153
|
+
if (!C.ignore_max_length && I.length > v)
|
|
27150
27154
|
return !1;
|
|
27151
|
-
var b =
|
|
27155
|
+
var b = I.split("@"), E = b.pop(), w = E.toLowerCase();
|
|
27152
27156
|
if (C.host_blacklist.includes(w))
|
|
27153
27157
|
return !1;
|
|
27154
27158
|
var _ = b.join("@");
|
|
@@ -27461,8 +27465,8 @@ const GraphActionView = (e) => {
|
|
|
27461
27465
|
setSelectedRowItems: m = void 0,
|
|
27462
27466
|
setSearchParams: v = void 0,
|
|
27463
27467
|
searchVisible: x = !0,
|
|
27464
|
-
setSearchVisible:
|
|
27465
|
-
sorter:
|
|
27468
|
+
setSearchVisible: g = void 0,
|
|
27469
|
+
sorter: I = void 0,
|
|
27466
27470
|
setSorter: C = void 0,
|
|
27467
27471
|
setTotalItems: y = void 0,
|
|
27468
27472
|
setSearchTreeNameSearch: O = void 0,
|
|
@@ -27493,12 +27497,12 @@ const GraphActionView = (e) => {
|
|
|
27493
27497
|
searchParams: _,
|
|
27494
27498
|
setSearchValues: k,
|
|
27495
27499
|
setSearchParams: v,
|
|
27496
|
-
setSearchVisible:
|
|
27500
|
+
setSearchVisible: g,
|
|
27497
27501
|
setTreeIsLoading: b,
|
|
27498
27502
|
context: o,
|
|
27499
27503
|
formView: s,
|
|
27500
27504
|
treeView: c,
|
|
27501
|
-
sorter:
|
|
27505
|
+
sorter: I,
|
|
27502
27506
|
setSorter: C,
|
|
27503
27507
|
setCurrentItemIndex: f,
|
|
27504
27508
|
setResultsActionView: d,
|
|
@@ -27528,7 +27532,7 @@ const GraphActionView = (e) => {
|
|
|
27528
27532
|
offset: B,
|
|
27529
27533
|
isSearching: q,
|
|
27530
27534
|
onSubmit: (G) => {
|
|
27531
|
-
M(!1), v == null || v(G.params),
|
|
27535
|
+
M(!1), v == null || v(G.params), g == null || g(!1);
|
|
27532
27536
|
},
|
|
27533
27537
|
searchError: $,
|
|
27534
27538
|
searchVisible: x,
|
|
@@ -27657,8 +27661,8 @@ function TreeActionBar(e) {
|
|
|
27657
27661
|
searchVisible: m,
|
|
27658
27662
|
setSearchVisible: v,
|
|
27659
27663
|
setSearchTreeNameSearch: x,
|
|
27660
|
-
searchTreeNameSearch:
|
|
27661
|
-
treeIsLoading:
|
|
27664
|
+
searchTreeNameSearch: g,
|
|
27665
|
+
treeIsLoading: I,
|
|
27662
27666
|
setPreviousView: C,
|
|
27663
27667
|
previousView: y
|
|
27664
27668
|
} = useContext(ActionViewContext), {
|
|
@@ -27734,23 +27738,23 @@ function TreeActionBar(e) {
|
|
|
27734
27738
|
wrap: !0,
|
|
27735
27739
|
children: [b ? null : /* @__PURE__ */ jsxs(Fragment, {
|
|
27736
27740
|
children: [/* @__PURE__ */ jsx(SearchBar, {
|
|
27737
|
-
disabled: c || s ||
|
|
27738
|
-
searchText:
|
|
27741
|
+
disabled: c || s || I,
|
|
27742
|
+
searchText: g,
|
|
27739
27743
|
onSearch: (q) => {
|
|
27740
27744
|
q && q.trim().length > 0 ? x == null || x(q) : x == null || x(void 0);
|
|
27741
27745
|
}
|
|
27742
27746
|
}), separator$1(), /* @__PURE__ */ jsx(NewButton, {
|
|
27743
|
-
disabled:
|
|
27747
|
+
disabled: I
|
|
27744
27748
|
}), separator$1(), /* @__PURE__ */ jsx(ActionButton, {
|
|
27745
27749
|
icon: /* @__PURE__ */ jsx(CopyOutlined$3, {}),
|
|
27746
27750
|
tooltip: w("duplicate"),
|
|
27747
|
-
disabled: !o || (o == null ? void 0 : o.length) !== 1 || c ||
|
|
27751
|
+
disabled: !o || (o == null ? void 0 : o.length) !== 1 || c || I,
|
|
27748
27752
|
loading: c,
|
|
27749
27753
|
onClick: M
|
|
27750
27754
|
}), /* @__PURE__ */ jsx(ActionButton, {
|
|
27751
27755
|
icon: /* @__PURE__ */ jsx(DeleteOutlined, {}),
|
|
27752
27756
|
tooltip: w("delete"),
|
|
27753
|
-
disabled: !(o && (o == null ? void 0 : o.length) > 0) ||
|
|
27757
|
+
disabled: !(o && (o == null ? void 0 : o.length) > 0) || I,
|
|
27754
27758
|
loading: s,
|
|
27755
27759
|
onClick: N
|
|
27756
27760
|
}), separator$1()]
|
|
@@ -27765,12 +27769,12 @@ function TreeActionBar(e) {
|
|
|
27765
27769
|
onClick: () => {
|
|
27766
27770
|
v == null || v(!m);
|
|
27767
27771
|
},
|
|
27768
|
-
disabled: c || s ||
|
|
27772
|
+
disabled: c || s || I,
|
|
27769
27773
|
badgeNumber: h == null ? void 0 : h.length
|
|
27770
27774
|
}), /* @__PURE__ */ jsx(ActionButton, {
|
|
27771
27775
|
icon: /* @__PURE__ */ jsx(InfoCircleOutlined$3, {}),
|
|
27772
27776
|
tooltip: w("showLogs"),
|
|
27773
|
-
disabled: !(o && (o == null ? void 0 : o.length) > 0) ||
|
|
27777
|
+
disabled: !(o && (o == null ? void 0 : o.length) > 0) || I,
|
|
27774
27778
|
loading: !1,
|
|
27775
27779
|
onClick: () => {
|
|
27776
27780
|
showLogInfo(u, o[0].id, w);
|
|
@@ -27778,7 +27782,7 @@ function TreeActionBar(e) {
|
|
|
27778
27782
|
}), /* @__PURE__ */ jsx(ActionButton, {
|
|
27779
27783
|
icon: /* @__PURE__ */ jsx(ReloadOutlined, {}),
|
|
27780
27784
|
tooltip: w("refresh"),
|
|
27781
|
-
disabled: c || s ||
|
|
27785
|
+
disabled: c || s || I,
|
|
27782
27786
|
loading: !1,
|
|
27783
27787
|
onClick: () => {
|
|
27784
27788
|
var q;
|
|
@@ -27792,11 +27796,11 @@ function TreeActionBar(e) {
|
|
|
27792
27796
|
C == null || C(n), r == null || r(q);
|
|
27793
27797
|
},
|
|
27794
27798
|
previousView: y,
|
|
27795
|
-
disabled:
|
|
27799
|
+
disabled: I
|
|
27796
27800
|
})]
|
|
27797
27801
|
}), separator$1(), /* @__PURE__ */ jsx(DropdownButton, {
|
|
27798
27802
|
icon: /* @__PURE__ */ jsx(ThunderboltOutlined, {}),
|
|
27799
|
-
disabled: !(o && (o == null ? void 0 : o.length) > 0) ||
|
|
27803
|
+
disabled: !(o && (o == null ? void 0 : o.length) > 0) || I,
|
|
27800
27804
|
tooltip: w("actions"),
|
|
27801
27805
|
items: E == null ? void 0 : E.action,
|
|
27802
27806
|
onItemClick: (q) => {
|
|
@@ -27804,7 +27808,7 @@ function TreeActionBar(e) {
|
|
|
27804
27808
|
}
|
|
27805
27809
|
}), /* @__PURE__ */ jsx(DropdownButton, {
|
|
27806
27810
|
icon: /* @__PURE__ */ jsx(PrinterOutlined, {}),
|
|
27807
|
-
disabled: !(o && (o == null ? void 0 : o.length) > 0) ||
|
|
27811
|
+
disabled: !(o && (o == null ? void 0 : o.length) > 0) || I,
|
|
27808
27812
|
tooltip: w("reports"),
|
|
27809
27813
|
items: E == null ? void 0 : E.print,
|
|
27810
27814
|
onItemClick: (q) => {
|
|
@@ -27861,11 +27865,11 @@ const TreeActionView = (e) => {
|
|
|
27861
27865
|
domain: c,
|
|
27862
27866
|
onRowClicked: (x) => {
|
|
27863
27867
|
const {
|
|
27864
|
-
id:
|
|
27868
|
+
id: g
|
|
27865
27869
|
} = x;
|
|
27866
|
-
d(
|
|
27867
|
-
const
|
|
27868
|
-
v == null || v(m), l(
|
|
27870
|
+
d(g);
|
|
27871
|
+
const I = u.findIndex((y) => y.id === g);
|
|
27872
|
+
v == null || v(m), l(I);
|
|
27869
27873
|
const C = p.find((y) => y.type === "form");
|
|
27870
27874
|
f(C);
|
|
27871
27875
|
}
|
|
@@ -27976,7 +27980,7 @@ function ActionView(e, t) {
|
|
|
27976
27980
|
action_type: m,
|
|
27977
27981
|
treeExpandable: v = !1,
|
|
27978
27982
|
limit: x
|
|
27979
|
-
} = e, [
|
|
27983
|
+
} = e, [g, I] = useState(), [C, y] = useState([]), [O, b] = useState(!0), E = p || void 0, [w, _] = useState(E), [S, k] = useState([]), [N, D] = useState(), [M, L] = useState([]), [q, $] = useState(), [B, U] = useState(0), [G, z] = useState(!1), [W, Z] = useState(!1), [V, H] = useState(), {
|
|
27980
27984
|
t: P
|
|
27981
27985
|
} = useContext(LocaleContext), A = useRef(), j = useRef(), K = useContext(TabManagerContext), {
|
|
27982
27986
|
setCurrentView: X,
|
|
@@ -27987,12 +27991,12 @@ function ActionView(e, t) {
|
|
|
27987
27991
|
} = K || {};
|
|
27988
27992
|
useHotkeys("ctrl+g,command+g", (ie) => {
|
|
27989
27993
|
ie.preventDefault(), le();
|
|
27990
|
-
}, [Y, T,
|
|
27994
|
+
}, [Y, T, g, N, M]);
|
|
27991
27995
|
function ne(ie) {
|
|
27992
27996
|
_(ie), F == null || F(ie);
|
|
27993
27997
|
}
|
|
27994
27998
|
function J(ie) {
|
|
27995
|
-
|
|
27999
|
+
I(ie), X == null || X(ie);
|
|
27996
28000
|
}
|
|
27997
28001
|
useImperativeHandle(t, () => ({
|
|
27998
28002
|
canWeClose: oe
|
|
@@ -28073,13 +28077,13 @@ Please, make sure the view ids on the fields_view_get responses are the same as
|
|
|
28073
28077
|
const ie = C.find((Ie) => Ie.type === "tree"), de = C.find((Ie) => u.id ? Ie.type === u.type && Ie.view_id === u.id : Ie.type === u.type);
|
|
28074
28078
|
J(de || ie), p ? F == null || F(E) : (ne(void 0), D(void 0)), ee();
|
|
28075
28079
|
}, [r, a, p]), useEffect(() => {
|
|
28076
|
-
Y === l && (F == null || F(w), X == null || X(
|
|
28080
|
+
Y === l && (F == null || F(w), X == null || X(g));
|
|
28077
28081
|
}, [T, Y]);
|
|
28078
28082
|
async function oe() {
|
|
28079
|
-
return
|
|
28083
|
+
return g.type === "form" ? await A.current.cancelUnsavedChanges() : !0;
|
|
28080
28084
|
}
|
|
28081
28085
|
async function le() {
|
|
28082
|
-
Y === l && (
|
|
28086
|
+
Y === l && (g.type === "form" && !await A.current.cancelUnsavedChanges() || z(!0));
|
|
28083
28087
|
}
|
|
28084
28088
|
async function ae(ie) {
|
|
28085
28089
|
var Ce;
|
|
@@ -28126,7 +28130,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
|
|
|
28126
28130
|
return /* @__PURE__ */ jsx(FormActionView, {
|
|
28127
28131
|
formRef: A,
|
|
28128
28132
|
currentId: w,
|
|
28129
|
-
visible:
|
|
28133
|
+
visible: g.type === ie.type && g.view_id === ie.view_id,
|
|
28130
28134
|
formView: ie,
|
|
28131
28135
|
model: r,
|
|
28132
28136
|
context: o,
|
|
@@ -28139,7 +28143,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
|
|
|
28139
28143
|
}, `${ie.type}-${ie.view_id}`);
|
|
28140
28144
|
case "tree":
|
|
28141
28145
|
return /* @__PURE__ */ jsx(TreeActionView, {
|
|
28142
|
-
visible:
|
|
28146
|
+
visible: g.type === ie.type && g.view_id === ie.view_id,
|
|
28143
28147
|
limit: x,
|
|
28144
28148
|
model: r,
|
|
28145
28149
|
context: o,
|
|
@@ -28156,7 +28160,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
|
|
|
28156
28160
|
}, `${ie.type}-${ie.view_id}`);
|
|
28157
28161
|
case "graph":
|
|
28158
28162
|
return /* @__PURE__ */ jsx(GraphActionView, {
|
|
28159
|
-
visible:
|
|
28163
|
+
visible: g.type === ie.type && g.view_id === ie.view_id,
|
|
28160
28164
|
viewData: ie,
|
|
28161
28165
|
model: r,
|
|
28162
28166
|
context: o,
|
|
@@ -28172,7 +28176,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
|
|
|
28172
28176
|
});
|
|
28173
28177
|
}
|
|
28174
28178
|
function me() {
|
|
28175
|
-
if (w === void 0 &&
|
|
28179
|
+
if (w === void 0 && g.type === "form")
|
|
28176
28180
|
A.current.clearAndReload();
|
|
28177
28181
|
else {
|
|
28178
28182
|
ne(void 0);
|
|
@@ -28180,9 +28184,9 @@ Please, make sure the view ids on the fields_view_get responses are the same as
|
|
|
28180
28184
|
J(ie);
|
|
28181
28185
|
}
|
|
28182
28186
|
}
|
|
28183
|
-
return O ? /* @__PURE__ */ jsx(Spin, {}) :
|
|
28187
|
+
return O ? /* @__PURE__ */ jsx(Spin, {}) : g ? /* @__PURE__ */ jsxs(ActionViewProvider, {
|
|
28184
28188
|
title: s,
|
|
28185
|
-
currentView:
|
|
28189
|
+
currentView: g,
|
|
28186
28190
|
setCurrentView: J,
|
|
28187
28191
|
availableViews: C,
|
|
28188
28192
|
formRef: A,
|
|
@@ -28269,10 +28273,10 @@ async function fetchAction({
|
|
|
28269
28273
|
limit: f,
|
|
28270
28274
|
view_type: p
|
|
28271
28275
|
} = a, h = p === "tree", m = [];
|
|
28272
|
-
for (const
|
|
28273
|
-
const [C, y] =
|
|
28276
|
+
for (const I of u) {
|
|
28277
|
+
const [C, y] = I;
|
|
28274
28278
|
if (C)
|
|
28275
|
-
m.push(
|
|
28279
|
+
m.push(I);
|
|
28276
28280
|
else {
|
|
28277
28281
|
const { view_id: O } = await ConnectionProvider.getHandler().getView({
|
|
28278
28282
|
model: l,
|
|
@@ -28283,7 +28287,7 @@ async function fetchAction({
|
|
|
28283
28287
|
m.push([O, y]);
|
|
28284
28288
|
}
|
|
28285
28289
|
}
|
|
28286
|
-
const [v, x] = m[0],
|
|
28290
|
+
const [v, x] = m[0], g = { id: v, type: x };
|
|
28287
28291
|
return {
|
|
28288
28292
|
title: d,
|
|
28289
28293
|
actionId: e,
|
|
@@ -28293,7 +28297,7 @@ async function fetchAction({
|
|
|
28293
28297
|
model: l,
|
|
28294
28298
|
context: { ...t, ...s },
|
|
28295
28299
|
domain: c,
|
|
28296
|
-
initialView:
|
|
28300
|
+
initialView: g,
|
|
28297
28301
|
limit: f,
|
|
28298
28302
|
treeExpandable: h
|
|
28299
28303
|
};
|
|
@@ -28404,7 +28408,7 @@ function DashboardTree(e) {
|
|
|
28404
28408
|
domain: a = [],
|
|
28405
28409
|
visible: s = !0,
|
|
28406
28410
|
parentContext: c = {}
|
|
28407
|
-
} = e, [l, u] = useState(!1), [d, f] = useState(!1), [p, h] = useState(), [m, v] = useState(), [x,
|
|
28411
|
+
} = e, [l, u] = useState(!1), [d, f] = useState(!1), [p, h] = useState(), [m, v] = useState(), [x, g] = useState(), [I, C] = useState(1), [y, O] = useState(0), b = useRef(DEFAULT_SEARCH_LIMIT), E = useRef([]), [w, _] = useState(0), [S, k] = useState([]), [N, D] = useState(void 0), [M, L] = useState(), [q, $] = useState(), [B, U] = useState(), [G, z] = useState(!1), W = useRef([]), Z = (F) => {
|
|
28408
28412
|
z(!0), C(F), O((F - 1) * b.current);
|
|
28409
28413
|
}, V = async () => {
|
|
28410
28414
|
const F = W.current.length > 0 ? W.current : a, T = mergeParams(E.current, F), {
|
|
@@ -28445,7 +28449,7 @@ function DashboardTree(e) {
|
|
|
28445
28449
|
};
|
|
28446
28450
|
useEffect(() => {
|
|
28447
28451
|
!d || s && H();
|
|
28448
|
-
}, [
|
|
28452
|
+
}, [I, y, d, s]);
|
|
28449
28453
|
const P = async (F) => {
|
|
28450
28454
|
f(!1), u(!0), U(void 0);
|
|
28451
28455
|
try {
|
|
@@ -28460,7 +28464,7 @@ function DashboardTree(e) {
|
|
|
28460
28464
|
action: t,
|
|
28461
28465
|
context: c
|
|
28462
28466
|
});
|
|
28463
|
-
W.current = F.domain,
|
|
28467
|
+
W.current = F.domain, g(F.views.get("form")), v(F.views.get("tree")), h(F.model), b.current = F.limit;
|
|
28464
28468
|
}, j = async () => {
|
|
28465
28469
|
h(n);
|
|
28466
28470
|
const F = await ConnectionProvider.getHandler().getView({
|
|
@@ -28468,7 +28472,7 @@ function DashboardTree(e) {
|
|
|
28468
28472
|
type: "form",
|
|
28469
28473
|
context: c
|
|
28470
28474
|
});
|
|
28471
|
-
|
|
28475
|
+
g(F);
|
|
28472
28476
|
const T = await ConnectionProvider.getHandler().getView({
|
|
28473
28477
|
model: n,
|
|
28474
28478
|
type: "tree",
|
|
@@ -28502,7 +28506,7 @@ function DashboardTree(e) {
|
|
|
28502
28506
|
showPagination: !1,
|
|
28503
28507
|
total: w,
|
|
28504
28508
|
limit: b.current,
|
|
28505
|
-
page:
|
|
28509
|
+
page: I,
|
|
28506
28510
|
treeView: m,
|
|
28507
28511
|
results: S,
|
|
28508
28512
|
onRequestPageChange: Z,
|
|
@@ -28575,17 +28579,17 @@ function Dashboard(e, t) {
|
|
|
28575
28579
|
moveItemsEnabled: m
|
|
28576
28580
|
} = useContext(DashboardActionContext), v = useRef(), x = useRef();
|
|
28577
28581
|
useEffect(() => {
|
|
28578
|
-
|
|
28582
|
+
g();
|
|
28579
28583
|
}, [n, o, r]), useImperativeHandle(t, () => ({
|
|
28580
28584
|
refresh: () => {
|
|
28581
|
-
|
|
28585
|
+
g();
|
|
28582
28586
|
},
|
|
28583
28587
|
configDashboard: E
|
|
28584
28588
|
}));
|
|
28585
|
-
async function
|
|
28589
|
+
async function g() {
|
|
28586
28590
|
u(!0), p(!0), f(void 0);
|
|
28587
28591
|
try {
|
|
28588
|
-
const w = await
|
|
28592
|
+
const w = await I(), _ = await y(w), S = w.fields[itemsField].relation, k = _[itemsField].items;
|
|
28589
28593
|
x.current = w.fields;
|
|
28590
28594
|
const N = await C({
|
|
28591
28595
|
items: k,
|
|
@@ -28597,7 +28601,7 @@ function Dashboard(e, t) {
|
|
|
28597
28601
|
f(JSON.stringify(w));
|
|
28598
28602
|
}
|
|
28599
28603
|
}
|
|
28600
|
-
async function
|
|
28604
|
+
async function I() {
|
|
28601
28605
|
return await ConnectionProvider.getHandler().getView({
|
|
28602
28606
|
model: n,
|
|
28603
28607
|
type: "form",
|
|
@@ -28853,9 +28857,9 @@ const Dashboard$1 = forwardRef(Dashboard), MultiCheckbox = (e) => {
|
|
|
28853
28857
|
readOnly: m,
|
|
28854
28858
|
field: v,
|
|
28855
28859
|
columns: x
|
|
28856
|
-
} = n,
|
|
28857
|
-
getContext:
|
|
28858
|
-
} =
|
|
28860
|
+
} = n, g = useContext(FormContext$1), {
|
|
28861
|
+
getContext: I
|
|
28862
|
+
} = g || {};
|
|
28859
28863
|
useDeepCompareEffect(() => {
|
|
28860
28864
|
y();
|
|
28861
28865
|
}, [o]);
|
|
@@ -28871,10 +28875,11 @@ const Dashboard$1 = forwardRef(Dashboard), MultiCheckbox = (e) => {
|
|
|
28871
28875
|
const _ = await ConnectionProvider.getHandler().evalDomain({
|
|
28872
28876
|
domain: n.domain,
|
|
28873
28877
|
values: transformPlainMany2Ones({
|
|
28874
|
-
fields:
|
|
28875
|
-
values:
|
|
28878
|
+
fields: g == null ? void 0 : g.getFields(),
|
|
28879
|
+
values: g.getPlainValues()
|
|
28876
28880
|
}),
|
|
28877
|
-
|
|
28881
|
+
fields: g == null ? void 0 : g.getFields(),
|
|
28882
|
+
context: g.getContext()
|
|
28878
28883
|
});
|
|
28879
28884
|
w = [...w, ..._];
|
|
28880
28885
|
}
|
|
@@ -28884,7 +28889,7 @@ const Dashboard$1 = forwardRef(Dashboard), MultiCheckbox = (e) => {
|
|
|
28884
28889
|
params: w,
|
|
28885
28890
|
fields: [v],
|
|
28886
28891
|
context: {
|
|
28887
|
-
...
|
|
28892
|
+
...I == null ? void 0 : I(),
|
|
28888
28893
|
...h
|
|
28889
28894
|
}
|
|
28890
28895
|
})).map((k) => {
|
|
@@ -29110,7 +29115,7 @@ function RootView(e, t) {
|
|
|
29110
29115
|
}]), d = useRef(/* @__PURE__ */ new Map()), f = useRef();
|
|
29111
29116
|
useImperativeHandle(t, () => ({
|
|
29112
29117
|
retrieveAndOpenAction: m,
|
|
29113
|
-
openShortcut:
|
|
29118
|
+
openShortcut: g
|
|
29114
29119
|
}));
|
|
29115
29120
|
function p(y) {
|
|
29116
29121
|
if (y === s) {
|
|
@@ -29264,6 +29269,7 @@ function RootView(e, t) {
|
|
|
29264
29269
|
...r
|
|
29265
29270
|
}
|
|
29266
29271
|
}),
|
|
29272
|
+
fields: O,
|
|
29267
29273
|
context: {
|
|
29268
29274
|
...o,
|
|
29269
29275
|
...U
|
|
@@ -29285,7 +29291,7 @@ function RootView(e, t) {
|
|
|
29285
29291
|
limit: L
|
|
29286
29292
|
});
|
|
29287
29293
|
}
|
|
29288
|
-
async function
|
|
29294
|
+
async function g(y) {
|
|
29289
29295
|
const {
|
|
29290
29296
|
action_id: O,
|
|
29291
29297
|
action_type: b,
|
|
@@ -29362,7 +29368,7 @@ function RootView(e, t) {
|
|
|
29362
29368
|
limit: B
|
|
29363
29369
|
});
|
|
29364
29370
|
}
|
|
29365
|
-
async function
|
|
29371
|
+
async function I({
|
|
29366
29372
|
model: y,
|
|
29367
29373
|
values: O,
|
|
29368
29374
|
forced_values: b,
|
|
@@ -29460,10 +29466,10 @@ function RootView(e, t) {
|
|
|
29460
29466
|
return /* @__PURE__ */ jsx(LocaleContextProvider, {
|
|
29461
29467
|
lang: a,
|
|
29462
29468
|
children: /* @__PURE__ */ jsx(TabManagerProvider, {
|
|
29463
|
-
openShortcut:
|
|
29469
|
+
openShortcut: g,
|
|
29464
29470
|
openAction: C,
|
|
29465
29471
|
openRelate: x,
|
|
29466
|
-
openDefaultActionForModel:
|
|
29472
|
+
openDefaultActionForModel: I,
|
|
29467
29473
|
tabs: l,
|
|
29468
29474
|
activeKey: s,
|
|
29469
29475
|
onRemoveTab: async (y) => {
|
|
@@ -29593,8 +29599,8 @@ const FavouriteButton = (e) => {
|
|
|
29593
29599
|
} = e, [a, s] = useState(!1), [c, l] = useState(!1), [u, d] = useState([]), [f, p] = useState(!0), [h, m] = useState(), {
|
|
29594
29600
|
t: v
|
|
29595
29601
|
} = useContext(LocaleContext), x = useContext(TabManagerContext), {
|
|
29596
|
-
openShortcut:
|
|
29597
|
-
tabs:
|
|
29602
|
+
openShortcut: g,
|
|
29603
|
+
tabs: I,
|
|
29598
29604
|
activeKey: C,
|
|
29599
29605
|
currentView: y,
|
|
29600
29606
|
currentId: O,
|
|
@@ -29604,7 +29610,7 @@ const FavouriteButton = (e) => {
|
|
|
29604
29610
|
E();
|
|
29605
29611
|
}, []), useEffect(() => {
|
|
29606
29612
|
S();
|
|
29607
|
-
}, [
|
|
29613
|
+
}, [I, C, y, O]);
|
|
29608
29614
|
async function E() {
|
|
29609
29615
|
try {
|
|
29610
29616
|
p(!0);
|
|
@@ -29620,7 +29626,7 @@ const FavouriteButton = (e) => {
|
|
|
29620
29626
|
const {
|
|
29621
29627
|
key: q
|
|
29622
29628
|
} = L, $ = u.find((B) => B.id === Number(q));
|
|
29623
|
-
($ == null ? void 0 : $.action_type) !== "ir.actions.wizard" && ($ &&
|
|
29629
|
+
($ == null ? void 0 : $.action_type) !== "ir.actions.wizard" && ($ && g($), l(!1));
|
|
29624
29630
|
}
|
|
29625
29631
|
function _(L) {
|
|
29626
29632
|
L && E(), l(L);
|
|
@@ -29628,7 +29634,7 @@ const FavouriteButton = (e) => {
|
|
|
29628
29634
|
async function S() {
|
|
29629
29635
|
if (!y)
|
|
29630
29636
|
return;
|
|
29631
|
-
const L =
|
|
29637
|
+
const L = I.find((z) => z.key === C), {
|
|
29632
29638
|
id: q,
|
|
29633
29639
|
type: $
|
|
29634
29640
|
} = (L == null ? void 0 : L.action) || {};
|
|
@@ -29726,7 +29732,7 @@ const FavouriteButton = (e) => {
|
|
|
29726
29732
|
else {
|
|
29727
29733
|
if (!y)
|
|
29728
29734
|
return;
|
|
29729
|
-
const L =
|
|
29735
|
+
const L = I.find((G) => G.key === C), {
|
|
29730
29736
|
id: q,
|
|
29731
29737
|
type: $
|
|
29732
29738
|
} = (L == null ? void 0 : L.action) || {}, B = y.view_id;
|