@gisce/react-ooui 1.2.0-rc.38 → 1.2.0-rc.39
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/actionbar/FormActionBar.d.ts.map +1 -1
- package/dist/context/ActionViewContext.d.ts +1 -1
- package/dist/context/ActionViewContext.d.ts.map +1 -1
- package/dist/react-ooui.es.js +473 -469
- package/dist/react-ooui.es.js.map +1 -1
- package/dist/react-ooui.umd.js +16 -16
- package/dist/react-ooui.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/actionbar/FormActionBar.tsx +39 -5
- package/src/context/ActionViewContext.tsx +3 -3
package/dist/react-ooui.es.js
CHANGED
|
@@ -1334,7 +1334,7 @@ function requireReactIs_development() {
|
|
|
1334
1334
|
}
|
|
1335
1335
|
}
|
|
1336
1336
|
}
|
|
1337
|
-
var E = d, O = f,
|
|
1337
|
+
var E = d, O = f, z = c, P = u, M = r, L = p, W = o, B = v, N = g, J = a, U = l, H = s, K = h, re = !1;
|
|
1338
1338
|
function ie(I) {
|
|
1339
1339
|
return re || (re = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), ne(I) || T(I) === d;
|
|
1340
1340
|
}
|
|
@@ -1356,7 +1356,7 @@ function requireReactIs_development() {
|
|
|
1356
1356
|
function me(I) {
|
|
1357
1357
|
return T(I) === o;
|
|
1358
1358
|
}
|
|
1359
|
-
function
|
|
1359
|
+
function G(I) {
|
|
1360
1360
|
return T(I) === v;
|
|
1361
1361
|
}
|
|
1362
1362
|
function te(I) {
|
|
@@ -1374,7 +1374,7 @@ function requireReactIs_development() {
|
|
|
1374
1374
|
function D(I) {
|
|
1375
1375
|
return T(I) === h;
|
|
1376
1376
|
}
|
|
1377
|
-
reactIs_development.AsyncMode = E, reactIs_development.ConcurrentMode = O, reactIs_development.ContextConsumer =
|
|
1377
|
+
reactIs_development.AsyncMode = E, reactIs_development.ConcurrentMode = O, reactIs_development.ContextConsumer = z, reactIs_development.ContextProvider = P, reactIs_development.Element = M, reactIs_development.ForwardRef = L, reactIs_development.Fragment = W, reactIs_development.Lazy = B, reactIs_development.Memo = N, reactIs_development.Portal = J, reactIs_development.Profiler = U, reactIs_development.StrictMode = H, reactIs_development.Suspense = K, reactIs_development.isAsyncMode = ie, reactIs_development.isConcurrentMode = ne, reactIs_development.isContextConsumer = Q, reactIs_development.isContextProvider = ae, reactIs_development.isElement = oe, reactIs_development.isForwardRef = ce, reactIs_development.isFragment = me, reactIs_development.isLazy = G, reactIs_development.isMemo = te, reactIs_development.isPortal = he, reactIs_development.isProfiler = ge, reactIs_development.isStrictMode = Te, reactIs_development.isSuspense = D, reactIs_development.isValidElementType = w, reactIs_development.typeOf = T;
|
|
1378
1378
|
}()), reactIs_development;
|
|
1379
1379
|
}
|
|
1380
1380
|
(function(e) {
|
|
@@ -1742,10 +1742,10 @@ function SingleObserver(e) {
|
|
|
1742
1742
|
}, [p, o]), m = React$n.useRef(e);
|
|
1743
1743
|
m.current = e;
|
|
1744
1744
|
var g = React$n.useCallback(function(v) {
|
|
1745
|
-
var C = m.current, S = C.onResize, y = C.data, x = v.getBoundingClientRect(), w = x.width, T = x.height, E = v.offsetWidth, O = v.offsetHeight,
|
|
1746
|
-
if (d.current.width !==
|
|
1745
|
+
var C = m.current, S = C.onResize, y = C.data, x = v.getBoundingClientRect(), w = x.width, T = x.height, E = v.offsetWidth, O = v.offsetHeight, z = Math.floor(w), P = Math.floor(T);
|
|
1746
|
+
if (d.current.width !== z || d.current.height !== P || d.current.offsetWidth !== E || d.current.offsetHeight !== O) {
|
|
1747
1747
|
var M = {
|
|
1748
|
-
width:
|
|
1748
|
+
width: z,
|
|
1749
1749
|
height: P,
|
|
1750
1750
|
offsetWidth: E,
|
|
1751
1751
|
offsetHeight: O
|
|
@@ -1877,11 +1877,11 @@ function useMergedState$2(e, r) {
|
|
|
1877
1877
|
}, [s]);
|
|
1878
1878
|
var g = React$n.useRef(), v = useEvent$2(function(S, y) {
|
|
1879
1879
|
p(function(x) {
|
|
1880
|
-
var w = _slicedToArray(x, 3), T = w[0], E = w[1], O = w[2],
|
|
1881
|
-
if (
|
|
1880
|
+
var w = _slicedToArray(x, 3), T = w[0], E = w[1], O = w[2], z = typeof S == "function" ? S(T) : S;
|
|
1881
|
+
if (z === T)
|
|
1882
1882
|
return x;
|
|
1883
1883
|
var P = E === Source$1.INNER && g.current !== O ? O : T;
|
|
1884
|
-
return [
|
|
1884
|
+
return [z, Source$1.INNER, P];
|
|
1885
1885
|
}, y);
|
|
1886
1886
|
}), C = useEvent$2(l);
|
|
1887
1887
|
return useLayoutEffect$2(function() {
|
|
@@ -1951,11 +1951,11 @@ var _excluded$7 = ["prefixCls", "onPressEnter", "defaultValue", "value", "autoSi
|
|
|
1951
1951
|
});
|
|
1952
1952
|
var T = React$n.useMemo(function() {
|
|
1953
1953
|
return u && _typeof$2(u) === "object" ? [u.minRows, u.maxRows] : [];
|
|
1954
|
-
}, [u]), E = _slicedToArray(T, 2), O = E[0],
|
|
1954
|
+
}, [u]), E = _slicedToArray(T, 2), O = E[0], z = E[1], P = !!u, M = function() {
|
|
1955
1955
|
try {
|
|
1956
1956
|
if (document.activeElement === w.current) {
|
|
1957
|
-
var me = w.current,
|
|
1958
|
-
w.current.setSelectionRange(
|
|
1957
|
+
var me = w.current, G = me.selectionStart, te = me.selectionEnd, he = me.scrollTop;
|
|
1958
|
+
w.current.setSelectionRange(G, te), w.current.scrollTop = he;
|
|
1959
1959
|
}
|
|
1960
1960
|
} catch {
|
|
1961
1961
|
}
|
|
@@ -1964,11 +1964,11 @@ var _excluded$7 = ["prefixCls", "onPressEnter", "defaultValue", "value", "autoSi
|
|
|
1964
1964
|
};
|
|
1965
1965
|
useLayoutEffect$2(function() {
|
|
1966
1966
|
P && re();
|
|
1967
|
-
}, [l, O,
|
|
1967
|
+
}, [l, O, z, P]), useLayoutEffect$2(function() {
|
|
1968
1968
|
if (B === RESIZE_START)
|
|
1969
1969
|
N(RESIZE_MEASURING);
|
|
1970
1970
|
else if (B === RESIZE_MEASURING) {
|
|
1971
|
-
var ce = calculateAutoSizeStyle(w.current, !1, O,
|
|
1971
|
+
var ce = calculateAutoSizeStyle(w.current, !1, O, z);
|
|
1972
1972
|
N(RESIZE_STABLE), K(ce);
|
|
1973
1973
|
} else
|
|
1974
1974
|
M();
|
|
@@ -2141,11 +2141,11 @@ function useMergedState(e, r) {
|
|
|
2141
2141
|
}, [s]);
|
|
2142
2142
|
var g = React$j.useRef(), v = (0, _useEvent.default)(function(S, y) {
|
|
2143
2143
|
p(function(x) {
|
|
2144
|
-
var w = (0, _slicedToArray2$1.default)(x, 3), T = w[0], E = w[1], O = w[2],
|
|
2145
|
-
if (
|
|
2144
|
+
var w = (0, _slicedToArray2$1.default)(x, 3), T = w[0], E = w[1], O = w[2], z = typeof S == "function" ? S(T) : S;
|
|
2145
|
+
if (z === T)
|
|
2146
2146
|
return x;
|
|
2147
2147
|
var P = E === Source.INNER && g.current !== O ? O : T;
|
|
2148
|
-
return [
|
|
2148
|
+
return [z, Source.INNER, P];
|
|
2149
2149
|
}, y);
|
|
2150
2150
|
}), C = (0, _useEvent.default)(l);
|
|
2151
2151
|
return (0, _useLayoutEffect.default)(function() {
|
|
@@ -2401,7 +2401,7 @@ function _regeneratorRuntime() {
|
|
|
2401
2401
|
var H = U.arg;
|
|
2402
2402
|
return H ? H.done ? (N[B.resultName] = H.value, N.next = B.nextLoc, N.method !== "return" && (N.method = "next", N.arg = void 0), N.delegate = null, h) : H : (N.method = "throw", N.arg = new TypeError("iterator result is not an object"), N.delegate = null, h);
|
|
2403
2403
|
}
|
|
2404
|
-
function
|
|
2404
|
+
function z(B) {
|
|
2405
2405
|
var N = {
|
|
2406
2406
|
tryLoc: B[0]
|
|
2407
2407
|
};
|
|
@@ -2414,7 +2414,7 @@ function _regeneratorRuntime() {
|
|
|
2414
2414
|
function M(B) {
|
|
2415
2415
|
this.tryEntries = [{
|
|
2416
2416
|
tryLoc: "root"
|
|
2417
|
-
}], B.forEach(
|
|
2417
|
+
}], B.forEach(z, this), this.reset(!0);
|
|
2418
2418
|
}
|
|
2419
2419
|
function L(B) {
|
|
2420
2420
|
if (B) {
|
|
@@ -3168,17 +3168,17 @@ var messages = newMessages(), Schema = /* @__PURE__ */ function() {
|
|
|
3168
3168
|
return asyncMap(m, d, function(C, S) {
|
|
3169
3169
|
var y = C.rule, x = (y.type === "object" || y.type === "array") && (typeof y.fields == "object" || typeof y.defaultField == "object");
|
|
3170
3170
|
x = x && (y.required || !y.required && C.value), y.field = C.field;
|
|
3171
|
-
function w(O,
|
|
3172
|
-
return _extends({},
|
|
3171
|
+
function w(O, z) {
|
|
3172
|
+
return _extends({}, z, {
|
|
3173
3173
|
fullField: y.fullField + "." + O,
|
|
3174
3174
|
fullFields: y.fullFields ? [].concat(y.fullFields, [O]) : [O]
|
|
3175
3175
|
});
|
|
3176
3176
|
}
|
|
3177
3177
|
function T(O) {
|
|
3178
3178
|
O === void 0 && (O = []);
|
|
3179
|
-
var
|
|
3180
|
-
!d.suppressWarning &&
|
|
3181
|
-
var P =
|
|
3179
|
+
var z = Array.isArray(O) ? O : [O];
|
|
3180
|
+
!d.suppressWarning && z.length && e.warning("async-validator:", z), z.length && y.message !== void 0 && (z = [].concat(y.message));
|
|
3181
|
+
var P = z.map(complementError(y, c));
|
|
3182
3182
|
if (d.first && P.length)
|
|
3183
3183
|
return v[y.field] = 1, S(P);
|
|
3184
3184
|
if (!x)
|
|
@@ -3462,8 +3462,8 @@ function validateRules(e, r, a, o, s, l) {
|
|
|
3462
3462
|
});
|
|
3463
3463
|
return m && (g.validator = function(v, C, S) {
|
|
3464
3464
|
var y = !1, x = function() {
|
|
3465
|
-
for (var E = arguments.length, O = new Array(E),
|
|
3466
|
-
O[
|
|
3465
|
+
for (var E = arguments.length, O = new Array(E), z = 0; z < E; z++)
|
|
3466
|
+
O[z] = arguments[z];
|
|
3467
3467
|
Promise.resolve().then(function() {
|
|
3468
3468
|
warningOnce$1(!y, "Your validator function has already return a promise. `callback` will be ignored."), y || S.apply(void 0, O);
|
|
3469
3469
|
});
|
|
@@ -3644,8 +3644,8 @@ var Field = /* @__PURE__ */ function(e) {
|
|
|
3644
3644
|
}
|
|
3645
3645
|
case "dependenciesUpdate": {
|
|
3646
3646
|
var O = v.map(getNamePath);
|
|
3647
|
-
if (O.some(function(
|
|
3648
|
-
return containsNamePath(p.relatedFields,
|
|
3647
|
+
if (O.some(function(z) {
|
|
3648
|
+
return containsNamePath(p.relatedFields, z);
|
|
3649
3649
|
})) {
|
|
3650
3650
|
s.reRender();
|
|
3651
3651
|
return;
|
|
@@ -3682,11 +3682,11 @@ var Field = /* @__PURE__ */ function(e) {
|
|
|
3682
3682
|
if (s.validatePromise === h) {
|
|
3683
3683
|
var E;
|
|
3684
3684
|
s.validatePromise = null;
|
|
3685
|
-
var O = [],
|
|
3685
|
+
var O = [], z = [];
|
|
3686
3686
|
(E = T.forEach) === null || E === void 0 || E.call(T, function(P) {
|
|
3687
3687
|
var M = P.rule.warningOnly, L = P.errors, W = L === void 0 ? EMPTY_ERRORS : L;
|
|
3688
|
-
M ?
|
|
3689
|
-
}), s.errors = O, s.warnings =
|
|
3688
|
+
M ? z.push.apply(z, _toConsumableArray(W)) : O.push.apply(O, _toConsumableArray(W));
|
|
3689
|
+
}), s.errors = O, s.warnings = z, s.triggerMetaEvent(), s.reRender();
|
|
3690
3690
|
}
|
|
3691
3691
|
}), w;
|
|
3692
3692
|
});
|
|
@@ -3739,14 +3739,14 @@ var Field = /* @__PURE__ */ function(e) {
|
|
|
3739
3739
|
var f = s.props.fieldContext.getFieldsValue, p = s.getNamePath();
|
|
3740
3740
|
return getValue$3(d || f(!0), p);
|
|
3741
3741
|
}, s.getControlled = function() {
|
|
3742
|
-
var d = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, f = s.props, p = f.trigger, h = f.validateTrigger, m = f.getValueFromEvent, g = f.normalize, v = f.valuePropName, C = f.getValueProps, S = f.fieldContext, y = h !== void 0 ? h : S.validateTrigger, x = s.getNamePath(), w = S.getInternalHooks, T = S.getFieldsValue, E = w(HOOK_MARK), O = E.dispatch,
|
|
3742
|
+
var d = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, f = s.props, p = f.trigger, h = f.validateTrigger, m = f.getValueFromEvent, g = f.normalize, v = f.valuePropName, C = f.getValueProps, S = f.fieldContext, y = h !== void 0 ? h : S.validateTrigger, x = s.getNamePath(), w = S.getInternalHooks, T = S.getFieldsValue, E = w(HOOK_MARK), O = E.dispatch, z = s.getValue(), P = C || function(B) {
|
|
3743
3743
|
return _defineProperty$1({}, v, B);
|
|
3744
|
-
}, M = d[p], L = _objectSpread2$g(_objectSpread2$g({}, d), P(
|
|
3744
|
+
}, M = d[p], L = _objectSpread2$g(_objectSpread2$g({}, d), P(z));
|
|
3745
3745
|
L[p] = function() {
|
|
3746
3746
|
s.touched = !0, s.dirty = !0, s.triggerMetaEvent();
|
|
3747
3747
|
for (var B, N = arguments.length, J = new Array(N), U = 0; U < N; U++)
|
|
3748
3748
|
J[U] = arguments[U];
|
|
3749
|
-
m ? B = m.apply(void 0, J) : B = defaultGetValueFromEvent.apply(void 0, [v].concat(J)), g && (B = g(B,
|
|
3749
|
+
m ? B = m.apply(void 0, J) : B = defaultGetValueFromEvent.apply(void 0, [v].concat(J)), g && (B = g(B, z, T(!0))), O({
|
|
3750
3750
|
type: "updateValue",
|
|
3751
3751
|
namePath: x,
|
|
3752
3752
|
value: B
|
|
@@ -3875,7 +3875,7 @@ var ListContext = /* @__PURE__ */ React$n.createContext(null), List = function(r
|
|
|
3875
3875
|
}
|
|
3876
3876
|
}
|
|
3877
3877
|
}, O = y || [];
|
|
3878
|
-
return Array.isArray(O) || (O = [], process.env.NODE_ENV !== "production" && warningOnce$1(!1, "Current value of '".concat(p.join(" > "), "' is not an array type."))), s(O.map(function(
|
|
3878
|
+
return Array.isArray(O) || (O = [], process.env.NODE_ENV !== "production" && warningOnce$1(!1, "Current value of '".concat(p.join(" > "), "' is not an array type."))), s(O.map(function(z, P) {
|
|
3879
3879
|
var M = f.keys[P];
|
|
3880
3880
|
return M === void 0 && (f.keys[P] = f.id, M = f.keys[P], f.id += 1), {
|
|
3881
3881
|
name: P,
|
|
@@ -4498,7 +4498,7 @@ var FormContext$1 = /* @__PURE__ */ React$n.createContext({
|
|
|
4498
4498
|
children: l
|
|
4499
4499
|
});
|
|
4500
4500
|
}, _excluded$4 = ["name", "initialValues", "fields", "form", "preserve", "children", "component", "validateMessages", "validateTrigger", "onValuesChange", "onFieldsChange", "onFinish", "onFinishFailed"], Form$2 = function(r, a) {
|
|
4501
|
-
var o = r.name, s = r.initialValues, l = r.fields, u = r.form, c = r.preserve, d = r.children, f = r.component, p = f === void 0 ? "form" : f, h = r.validateMessages, m = r.validateTrigger, g = m === void 0 ? "onChange" : m, v = r.onValuesChange, C = r.onFieldsChange, S = r.onFinish, y = r.onFinishFailed, x = _objectWithoutProperties(r, _excluded$4), w = React$n.useContext(FormContext$1), T = useForm(u), E = _slicedToArray(T, 1), O = E[0],
|
|
4501
|
+
var o = r.name, s = r.initialValues, l = r.fields, u = r.form, c = r.preserve, d = r.children, f = r.component, p = f === void 0 ? "form" : f, h = r.validateMessages, m = r.validateTrigger, g = m === void 0 ? "onChange" : m, v = r.onValuesChange, C = r.onFieldsChange, S = r.onFinish, y = r.onFinishFailed, x = _objectWithoutProperties(r, _excluded$4), w = React$n.useContext(FormContext$1), T = useForm(u), E = _slicedToArray(T, 1), O = E[0], z = O.getInternalHooks(HOOK_MARK), P = z.useSubscribe, M = z.setInitialValues, L = z.setCallbacks, W = z.setValidateMessages, B = z.setPreserve, N = z.destroyForm;
|
|
4502
4502
|
React$n.useImperativeHandle(a, function() {
|
|
4503
4503
|
return O;
|
|
4504
4504
|
}), React$n.useEffect(function() {
|
|
@@ -4577,8 +4577,8 @@ function useWatch() {
|
|
|
4577
4577
|
return S.current = C, useEffect(
|
|
4578
4578
|
function() {
|
|
4579
4579
|
if (!!v) {
|
|
4580
|
-
var y = g.getFieldsValue, x = g.getInternalHooks, w = x(HOOK_MARK), T = w.registerWatch, E = T(function(
|
|
4581
|
-
var P = getValue$3(
|
|
4580
|
+
var y = g.getFieldsValue, x = g.getInternalHooks, w = x(HOOK_MARK), T = w.registerWatch, E = T(function(z) {
|
|
4581
|
+
var P = getValue$3(z, S.current), M = stringify$1(P);
|
|
4582
4582
|
h.current !== M && (h.current = M, f(P));
|
|
4583
4583
|
}), O = getValue$3(y(), S.current);
|
|
4584
4584
|
return f(O), E;
|
|
@@ -6258,8 +6258,8 @@ function requireAntdIcon() {
|
|
|
6258
6258
|
var a = e(objectSpread2.exports), o = e(slicedToArray.exports), s = e(defineProperty.exports), l = e(requireObjectWithoutProperties()), u = r(React__default), c = e(classnames.exports), d = e(Context$1), f = e(requireIconBase()), p = requireTwoTonePrimaryColor(), h = requireUtils(), m = ["className", "icon", "spin", "rotate", "tabIndex", "onClick", "twoToneColor"];
|
|
6259
6259
|
(0, p.setTwoToneColor)("#1890ff");
|
|
6260
6260
|
var g = /* @__PURE__ */ u.forwardRef(function(C, S) {
|
|
6261
|
-
var y, x = C.className, w = C.icon, T = C.spin, E = C.rotate, O = C.tabIndex,
|
|
6262
|
-
J === void 0 &&
|
|
6261
|
+
var y, x = C.className, w = C.icon, T = C.spin, E = C.rotate, O = C.tabIndex, z = C.onClick, P = C.twoToneColor, M = (0, l.default)(C, m), L = u.useContext(d.default), W = L.prefixCls, B = W === void 0 ? "anticon" : W, N = (0, c.default)(B, (y = {}, (0, s.default)(y, "".concat(B, "-").concat(w.name), !!w.name), (0, s.default)(y, "".concat(B, "-spin"), !!T || w.name === "loading"), y), x), J = O;
|
|
6262
|
+
J === void 0 && z && (J = -1);
|
|
6263
6263
|
var U = E ? {
|
|
6264
6264
|
msTransform: "rotate(".concat(E, "deg)"),
|
|
6265
6265
|
transform: "rotate(".concat(E, "deg)")
|
|
@@ -6270,7 +6270,7 @@ function requireAntdIcon() {
|
|
|
6270
6270
|
}, M), {}, {
|
|
6271
6271
|
ref: S,
|
|
6272
6272
|
tabIndex: J,
|
|
6273
|
-
onClick:
|
|
6273
|
+
onClick: z,
|
|
6274
6274
|
className: N
|
|
6275
6275
|
}), /* @__PURE__ */ u.createElement(f.default, {
|
|
6276
6276
|
icon: w,
|
|
@@ -6620,7 +6620,7 @@ const useStepQueue = function(e, r) {
|
|
|
6620
6620
|
}, []), [l, s];
|
|
6621
6621
|
};
|
|
6622
6622
|
function useStatus(e, r, a, o) {
|
|
6623
|
-
var s = o.motionEnter, l = s === void 0 ? !0 : s, u = o.motionAppear, c = u === void 0 ? !0 : u, d = o.motionLeave, f = d === void 0 ? !0 : d, p = o.motionDeadline, h = o.motionLeaveImmediately, m = o.onAppearPrepare, g = o.onEnterPrepare, v = o.onLeavePrepare, C = o.onAppearStart, S = o.onEnterStart, y = o.onLeaveStart, x = o.onAppearActive, w = o.onEnterActive, T = o.onLeaveActive, E = o.onAppearEnd, O = o.onEnterEnd,
|
|
6623
|
+
var s = o.motionEnter, l = s === void 0 ? !0 : s, u = o.motionAppear, c = u === void 0 ? !0 : u, d = o.motionLeave, f = d === void 0 ? !0 : d, p = o.motionDeadline, h = o.motionLeaveImmediately, m = o.onAppearPrepare, g = o.onEnterPrepare, v = o.onLeavePrepare, C = o.onAppearStart, S = o.onEnterStart, y = o.onLeaveStart, x = o.onAppearActive, w = o.onEnterActive, T = o.onLeaveActive, E = o.onAppearEnd, O = o.onEnterEnd, z = o.onLeaveEnd, P = o.onVisibleChanged, M = useSafeState$1(), L = _slicedToArray(M, 2), W = L[0], B = L[1], N = useSafeState$1(STATUS_NONE), J = _slicedToArray(N, 2), U = J[0], H = J[1], K = useSafeState$1(null), re = _slicedToArray(K, 2), ie = re[0], ne = re[1], Q = useRef(!1), ae = useRef(null);
|
|
6624
6624
|
function oe() {
|
|
6625
6625
|
return a();
|
|
6626
6626
|
}
|
|
@@ -6629,10 +6629,10 @@ function useStatus(e, r, a, o) {
|
|
|
6629
6629
|
var Fe = oe();
|
|
6630
6630
|
if (!(Pe && !Pe.deadline && Pe.target !== Fe)) {
|
|
6631
6631
|
var Ze = ce.current, Xt;
|
|
6632
|
-
U === STATUS_APPEAR && Ze ? Xt = E == null ? void 0 : E(Fe, Pe) : U === STATUS_ENTER && Ze ? Xt = O == null ? void 0 : O(Fe, Pe) : U === STATUS_LEAVE && Ze && (Xt =
|
|
6632
|
+
U === STATUS_APPEAR && Ze ? Xt = E == null ? void 0 : E(Fe, Pe) : U === STATUS_ENTER && Ze ? Xt = O == null ? void 0 : O(Fe, Pe) : U === STATUS_LEAVE && Ze && (Xt = z == null ? void 0 : z(Fe, Pe)), U !== STATUS_NONE && Ze && Xt !== !1 && (H(STATUS_NONE, !0), ne(null, !0));
|
|
6633
6633
|
}
|
|
6634
6634
|
}
|
|
6635
|
-
var
|
|
6635
|
+
var G = useDomMotionEvents(me), te = _slicedToArray(G, 1), he = te[0], ge = React$n.useMemo(function() {
|
|
6636
6636
|
var Pe, Fe, Ze;
|
|
6637
6637
|
switch (U) {
|
|
6638
6638
|
case STATUS_APPEAR:
|
|
@@ -6710,7 +6710,7 @@ function genCSSMotion(e) {
|
|
|
6710
6710
|
return null;
|
|
6711
6711
|
}
|
|
6712
6712
|
}
|
|
6713
|
-
var w = useStatus(C, c, x, s), T = _slicedToArray(w, 4), E = T[0], O = T[1],
|
|
6713
|
+
var w = useStatus(C, c, x, s), T = _slicedToArray(w, 4), E = T[0], O = T[1], z = T[2], P = T[3], M = React$n.useRef(P);
|
|
6714
6714
|
P && (M.current = !0);
|
|
6715
6715
|
var L = React$n.useCallback(function(K) {
|
|
6716
6716
|
S.current = K, fillRef$1(l, K);
|
|
@@ -6731,7 +6731,7 @@ function genCSSMotion(e) {
|
|
|
6731
6731
|
var N, J;
|
|
6732
6732
|
O === STEP_PREPARE ? J = "prepare" : isActive(O) ? J = "active" : O === STEP_START && (J = "start"), W = h(_objectSpread2$g(_objectSpread2$g({}, B), {}, {
|
|
6733
6733
|
className: classNames(getTransitionName$1(m, E), (N = {}, _defineProperty$1(N, getTransitionName$1(m, "".concat(E, "-").concat(J)), J), _defineProperty$1(N, m, typeof m == "string"), N)),
|
|
6734
|
-
style:
|
|
6734
|
+
style: z
|
|
6735
6735
|
}), L);
|
|
6736
6736
|
}
|
|
6737
6737
|
if (/* @__PURE__ */ React$n.isValidElement(W) && supportRef$1(W)) {
|
|
@@ -6847,8 +6847,8 @@ function genCSSMotionList(e) {
|
|
|
6847
6847
|
if (m == null || m(O, {
|
|
6848
6848
|
key: w.key
|
|
6849
6849
|
}), !O) {
|
|
6850
|
-
var
|
|
6851
|
-
|
|
6850
|
+
var z = c.removeKey(w.key);
|
|
6851
|
+
z === 0 && g && g();
|
|
6852
6852
|
}
|
|
6853
6853
|
}
|
|
6854
6854
|
}, h);
|
|
@@ -7293,8 +7293,8 @@ function requireNotice() {
|
|
|
7293
7293
|
w[T] = arguments[T];
|
|
7294
7294
|
return y = C.call.apply(C, [this].concat(w)), y.closeTimer = null, y.close = function(E) {
|
|
7295
7295
|
E && E.stopPropagation(), y.clearCloseTimer();
|
|
7296
|
-
var O = y.props,
|
|
7297
|
-
|
|
7296
|
+
var O = y.props, z = O.onClose, P = O.noticeKey;
|
|
7297
|
+
z && z(P);
|
|
7298
7298
|
}, y.startCloseTimer = function() {
|
|
7299
7299
|
y.props.duration && (y.closeTimer = window.setTimeout(function() {
|
|
7300
7300
|
y.close();
|
|
@@ -7326,7 +7326,7 @@ function requireNotice() {
|
|
|
7326
7326
|
}, {
|
|
7327
7327
|
key: "render",
|
|
7328
7328
|
value: function() {
|
|
7329
|
-
var x = this, w = this.props, T = w.prefixCls, E = w.className, O = w.closable,
|
|
7329
|
+
var x = this, w = this.props, T = w.prefixCls, E = w.className, O = w.closable, z = w.closeIcon, P = w.style, M = w.onClick, L = w.children, W = w.holder, B = "".concat(T, "-notice"), N = Object.keys(this.props).reduce(function(U, H) {
|
|
7330
7330
|
return (H.substr(0, 5) === "data-" || H.substr(0, 5) === "aria-" || H === "role") && (U[H] = x.props[H]), U;
|
|
7331
7331
|
}, {}), J = /* @__PURE__ */ d.createElement("div", (0, a.default)({
|
|
7332
7332
|
className: (0, p.default)(B, E, (0, o.default)({}, "".concat(B, "-closable"), O)),
|
|
@@ -7340,7 +7340,7 @@ function requireNotice() {
|
|
|
7340
7340
|
tabIndex: 0,
|
|
7341
7341
|
onClick: this.close,
|
|
7342
7342
|
className: "".concat(B, "-close")
|
|
7343
|
-
},
|
|
7343
|
+
}, z || /* @__PURE__ */ d.createElement("span", {
|
|
7344
7344
|
className: "".concat(B, "-close-x")
|
|
7345
7345
|
})) : null);
|
|
7346
7346
|
return W ? /* @__PURE__ */ f.default.createPortal(J, W) : J;
|
|
@@ -7446,10 +7446,10 @@ function requireUseMessage() {
|
|
|
7446
7446
|
return N.then(U, H);
|
|
7447
7447
|
}, J.promise = N, J;
|
|
7448
7448
|
}
|
|
7449
|
-
var
|
|
7450
|
-
return
|
|
7451
|
-
return (0, c.attachTypeApi)(
|
|
7452
|
-
}), [
|
|
7449
|
+
var z = u.useRef({});
|
|
7450
|
+
return z.current.open = O, c.typeList.forEach(function(P) {
|
|
7451
|
+
return (0, c.attachTypeApi)(z.current, P);
|
|
7452
|
+
}), [z.current, /* @__PURE__ */ u.createElement(d.ConfigConsumer, {
|
|
7453
7453
|
key: "holder"
|
|
7454
7454
|
}, function(P) {
|
|
7455
7455
|
return v = P.getPrefixCls, C = P.getPopupContainer, E;
|
|
@@ -7466,15 +7466,15 @@ function requireMessage() {
|
|
|
7466
7466
|
Object.defineProperty(e, "__esModule", {
|
|
7467
7467
|
value: !0
|
|
7468
7468
|
}), e.attachTypeApi = re, e.getInstance = e.default = void 0, e.getKeyThenIncreaseKey = M, e.typeList = void 0;
|
|
7469
|
-
var o = a(_extends$1.exports), s = a(defineProperty.exports), l = a(CheckCircleFilled$3.exports), u = a(CloseCircleFilled$3.exports), c = a(ExclamationCircleFilled$3.exports), d = a(InfoCircleFilled$3.exports), f = a(LoadingOutlined$3.exports), p = a(classnames.exports), h = a(require$$11$1), m = r(React__default), g = r(requireConfigProvider()), v = a(requireUseMessage()), C, S = 3, y, x = 1, w = "", T = "move-up", E = !1, O,
|
|
7469
|
+
var o = a(_extends$1.exports), s = a(defineProperty.exports), l = a(CheckCircleFilled$3.exports), u = a(CloseCircleFilled$3.exports), c = a(ExclamationCircleFilled$3.exports), d = a(InfoCircleFilled$3.exports), f = a(LoadingOutlined$3.exports), p = a(classnames.exports), h = a(require$$11$1), m = r(React__default), g = r(requireConfigProvider()), v = a(requireUseMessage()), C, S = 3, y, x = 1, w = "", T = "move-up", E = !1, O, z, P = !1;
|
|
7470
7470
|
function M() {
|
|
7471
7471
|
return x++;
|
|
7472
7472
|
}
|
|
7473
7473
|
function L(Q) {
|
|
7474
|
-
Q.top !== void 0 && (y = Q.top, C = null), Q.duration !== void 0 && (S = Q.duration), Q.prefixCls !== void 0 && (w = Q.prefixCls), Q.getContainer !== void 0 && (O = Q.getContainer, C = null), Q.transitionName !== void 0 && (T = Q.transitionName, C = null, E = !0), Q.maxCount !== void 0 && (
|
|
7474
|
+
Q.top !== void 0 && (y = Q.top, C = null), Q.duration !== void 0 && (S = Q.duration), Q.prefixCls !== void 0 && (w = Q.prefixCls), Q.getContainer !== void 0 && (O = Q.getContainer, C = null), Q.transitionName !== void 0 && (T = Q.transitionName, C = null, E = !0), Q.maxCount !== void 0 && (z = Q.maxCount, C = null), Q.rtl !== void 0 && (P = Q.rtl);
|
|
7475
7475
|
}
|
|
7476
7476
|
function W(Q, ae) {
|
|
7477
|
-
var oe = Q.prefixCls, ce = Q.getPopupContainer, me = (0, g.globalConfig)(),
|
|
7477
|
+
var oe = Q.prefixCls, ce = Q.getPopupContainer, me = (0, g.globalConfig)(), G = me.getPrefixCls, te = me.getRootPrefixCls, he = me.getIconPrefixCls, ge = G("message", oe || w), Te = te(Q.rootPrefixCls, ge), D = he();
|
|
7478
7478
|
if (C) {
|
|
7479
7479
|
ae({
|
|
7480
7480
|
prefixCls: ge,
|
|
@@ -7491,7 +7491,7 @@ function requireMessage() {
|
|
|
7491
7491
|
top: y
|
|
7492
7492
|
},
|
|
7493
7493
|
getContainer: O || ce,
|
|
7494
|
-
maxCount:
|
|
7494
|
+
maxCount: z
|
|
7495
7495
|
};
|
|
7496
7496
|
h.default.newInstance(I, function(pe) {
|
|
7497
7497
|
if (C) {
|
|
@@ -7520,7 +7520,7 @@ function requireMessage() {
|
|
|
7520
7520
|
}, N = Object.keys(B);
|
|
7521
7521
|
e.typeList = N;
|
|
7522
7522
|
function J(Q, ae, oe) {
|
|
7523
|
-
var ce, me = Q.duration !== void 0 ? Q.duration : S,
|
|
7523
|
+
var ce, me = Q.duration !== void 0 ? Q.duration : S, G = B[Q.type], te = (0, p.default)("".concat(ae, "-custom-content"), (ce = {}, (0, s.default)(ce, "".concat(ae, "-").concat(Q.type), Q.type), (0, s.default)(ce, "".concat(ae, "-rtl"), P === !0), ce));
|
|
7524
7524
|
return {
|
|
7525
7525
|
key: Q.key,
|
|
7526
7526
|
duration: me,
|
|
@@ -7530,28 +7530,28 @@ function requireMessage() {
|
|
|
7530
7530
|
iconPrefixCls: oe
|
|
7531
7531
|
}, /* @__PURE__ */ m.createElement("div", {
|
|
7532
7532
|
className: te
|
|
7533
|
-
}, Q.icon ||
|
|
7533
|
+
}, Q.icon || G && /* @__PURE__ */ m.createElement(G, null), /* @__PURE__ */ m.createElement("span", null, Q.content))),
|
|
7534
7534
|
onClose: Q.onClose,
|
|
7535
7535
|
onClick: Q.onClick
|
|
7536
7536
|
};
|
|
7537
7537
|
}
|
|
7538
7538
|
function U(Q) {
|
|
7539
7539
|
var ae = Q.key || M(), oe = new Promise(function(me) {
|
|
7540
|
-
var
|
|
7540
|
+
var G = function() {
|
|
7541
7541
|
return typeof Q.onClose == "function" && Q.onClose(), me(!0);
|
|
7542
7542
|
};
|
|
7543
7543
|
W(Q, function(te) {
|
|
7544
7544
|
var he = te.prefixCls, ge = te.iconPrefixCls, Te = te.instance;
|
|
7545
7545
|
Te.notice(J((0, o.default)((0, o.default)({}, Q), {
|
|
7546
7546
|
key: ae,
|
|
7547
|
-
onClose:
|
|
7547
|
+
onClose: G
|
|
7548
7548
|
}), he, ge));
|
|
7549
7549
|
});
|
|
7550
7550
|
}), ce = function() {
|
|
7551
7551
|
C && C.removeNotice(ae);
|
|
7552
7552
|
};
|
|
7553
|
-
return ce.then = function(me,
|
|
7554
|
-
return oe.then(me,
|
|
7553
|
+
return ce.then = function(me, G) {
|
|
7554
|
+
return oe.then(me, G);
|
|
7555
7555
|
}, ce.promise = oe, ce;
|
|
7556
7556
|
}
|
|
7557
7557
|
function H(Q) {
|
|
@@ -7566,8 +7566,8 @@ function requireMessage() {
|
|
|
7566
7566
|
var oe = C, ce = oe.removeNotice;
|
|
7567
7567
|
ce(ae);
|
|
7568
7568
|
} else {
|
|
7569
|
-
var me = C,
|
|
7570
|
-
|
|
7569
|
+
var me = C, G = me.destroy;
|
|
7570
|
+
G(), C = null;
|
|
7571
7571
|
}
|
|
7572
7572
|
}
|
|
7573
7573
|
};
|
|
@@ -7660,19 +7660,19 @@ var notification = {}, regeneratorRuntime = { exports: {} };
|
|
|
7660
7660
|
});
|
|
7661
7661
|
});
|
|
7662
7662
|
}
|
|
7663
|
-
function
|
|
7663
|
+
function z(U, H) {
|
|
7664
7664
|
function K(ie, ne, Q, ae) {
|
|
7665
7665
|
var oe = g(U[ie], U, ne);
|
|
7666
7666
|
if (oe.type !== "throw") {
|
|
7667
7667
|
var ce = oe.arg, me = ce.value;
|
|
7668
|
-
return me && r(me) == "object" && l.call(me, "__await") ? H.resolve(me.__await).then(function(
|
|
7669
|
-
K("next",
|
|
7670
|
-
}, function(
|
|
7671
|
-
K("throw",
|
|
7672
|
-
}) : H.resolve(me).then(function(
|
|
7673
|
-
ce.value =
|
|
7674
|
-
}, function(
|
|
7675
|
-
return K("throw",
|
|
7668
|
+
return me && r(me) == "object" && l.call(me, "__await") ? H.resolve(me.__await).then(function(G) {
|
|
7669
|
+
K("next", G, Q, ae);
|
|
7670
|
+
}, function(G) {
|
|
7671
|
+
K("throw", G, Q, ae);
|
|
7672
|
+
}) : H.resolve(me).then(function(G) {
|
|
7673
|
+
ce.value = G, Q(ce);
|
|
7674
|
+
}, function(G) {
|
|
7675
|
+
return K("throw", G, Q, ae);
|
|
7676
7676
|
});
|
|
7677
7677
|
}
|
|
7678
7678
|
ae(oe.arg);
|
|
@@ -7804,11 +7804,11 @@ var notification = {}, regeneratorRuntime = { exports: {} };
|
|
|
7804
7804
|
return {
|
|
7805
7805
|
__await: U
|
|
7806
7806
|
};
|
|
7807
|
-
}, O(
|
|
7807
|
+
}, O(z.prototype), h(z.prototype, f, function() {
|
|
7808
7808
|
return this;
|
|
7809
|
-
}), o.AsyncIterator =
|
|
7809
|
+
}), o.AsyncIterator = z, o.async = function(U, H, K, re, ie) {
|
|
7810
7810
|
ie === void 0 && (ie = Promise);
|
|
7811
|
-
var ne = new
|
|
7811
|
+
var ne = new z(m(U, H, K, re), ie);
|
|
7812
7812
|
return o.isGeneratorFunction(H) ? ne : ne.next().then(function(Q) {
|
|
7813
7813
|
return Q.done ? Q.value : ne.next();
|
|
7814
7814
|
});
|
|
@@ -8097,12 +8097,12 @@ function requireUseNotification() {
|
|
|
8097
8097
|
function d(f, p) {
|
|
8098
8098
|
var h = function() {
|
|
8099
8099
|
var g, v = null, C = {
|
|
8100
|
-
add: function(
|
|
8101
|
-
v == null || v.component.add(
|
|
8100
|
+
add: function(z, P) {
|
|
8101
|
+
v == null || v.component.add(z, P);
|
|
8102
8102
|
}
|
|
8103
8103
|
}, S = (0, l.default)(C), y = (0, s.default)(S, 2), x = y[0], w = y[1];
|
|
8104
8104
|
function T(O) {
|
|
8105
|
-
var
|
|
8105
|
+
var z = O.prefixCls, P = g("notification", z);
|
|
8106
8106
|
f((0, o.default)((0, o.default)({}, O), {
|
|
8107
8107
|
prefixCls: P
|
|
8108
8108
|
}), function(M) {
|
|
@@ -8112,8 +8112,8 @@ function requireUseNotification() {
|
|
|
8112
8112
|
}
|
|
8113
8113
|
var E = u.useRef({});
|
|
8114
8114
|
return E.current.open = T, ["success", "info", "warning", "error"].forEach(function(O) {
|
|
8115
|
-
E.current[O] = function(
|
|
8116
|
-
return E.current.open((0, o.default)((0, o.default)({},
|
|
8115
|
+
E.current[O] = function(z) {
|
|
8116
|
+
return E.current.open((0, o.default)((0, o.default)({}, z), {
|
|
8117
8117
|
type: O
|
|
8118
8118
|
}));
|
|
8119
8119
|
};
|
|
@@ -8136,23 +8136,23 @@ function requireNotification() {
|
|
|
8136
8136
|
}), e.getInstance = e.default = void 0;
|
|
8137
8137
|
var o = a(regeneratorRuntime.exports), s = a(_extends$1.exports), l = a(defineProperty.exports), u = a(CheckCircleOutlined$3.exports), c = a(CloseCircleOutlined$3.exports), d = a(CloseOutlined$3.exports), f = a(ExclamationCircleOutlined$3.exports), p = a(InfoCircleOutlined$3.exports), h = a(classnames.exports), m = a(require$$11$1), g = r(React__default), v = r(requireConfigProvider()), C = a(requireUseNotification()), S = function(ne, Q, ae, oe) {
|
|
8138
8138
|
function ce(me) {
|
|
8139
|
-
return me instanceof ae ? me : new ae(function(
|
|
8140
|
-
|
|
8139
|
+
return me instanceof ae ? me : new ae(function(G) {
|
|
8140
|
+
G(me);
|
|
8141
8141
|
});
|
|
8142
8142
|
}
|
|
8143
|
-
return new (ae || (ae = Promise))(function(me,
|
|
8143
|
+
return new (ae || (ae = Promise))(function(me, G) {
|
|
8144
8144
|
function te(Te) {
|
|
8145
8145
|
try {
|
|
8146
8146
|
ge(oe.next(Te));
|
|
8147
8147
|
} catch (D) {
|
|
8148
|
-
|
|
8148
|
+
G(D);
|
|
8149
8149
|
}
|
|
8150
8150
|
}
|
|
8151
8151
|
function he(Te) {
|
|
8152
8152
|
try {
|
|
8153
8153
|
ge(oe.throw(Te));
|
|
8154
8154
|
} catch (D) {
|
|
8155
|
-
|
|
8155
|
+
G(D);
|
|
8156
8156
|
}
|
|
8157
8157
|
}
|
|
8158
8158
|
function ge(Te) {
|
|
@@ -8160,10 +8160,10 @@ function requireNotification() {
|
|
|
8160
8160
|
}
|
|
8161
8161
|
ge((oe = oe.apply(ne, Q || [])).next());
|
|
8162
8162
|
});
|
|
8163
|
-
}, y = {}, x = 4.5, w = 24, T = 24, E = "", O = "topRight",
|
|
8163
|
+
}, y = {}, x = 4.5, w = 24, T = 24, E = "", O = "topRight", z, P, M = !1, L;
|
|
8164
8164
|
function W(ne) {
|
|
8165
|
-
var Q = ne.duration, ae = ne.placement, oe = ne.bottom, ce = ne.top, me = ne.getContainer,
|
|
8166
|
-
te !== void 0 && (E = te), Q !== void 0 && (x = Q), ae !== void 0 ? O = ae : ne.rtl && (O = "topLeft"), oe !== void 0 && (T = oe), ce !== void 0 && (w = ce), me !== void 0 && (
|
|
8165
|
+
var Q = ne.duration, ae = ne.placement, oe = ne.bottom, ce = ne.top, me = ne.getContainer, G = ne.closeIcon, te = ne.prefixCls;
|
|
8166
|
+
te !== void 0 && (E = te), Q !== void 0 && (x = Q), ae !== void 0 ? O = ae : ne.rtl && (O = "topLeft"), oe !== void 0 && (T = oe), ce !== void 0 && (w = ce), me !== void 0 && (z = me), G !== void 0 && (P = G), ne.rtl !== void 0 && (M = ne.rtl), ne.maxCount !== void 0 && (L = ne.maxCount);
|
|
8167
8167
|
}
|
|
8168
8168
|
function B(ne) {
|
|
8169
8169
|
var Q = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : w, ae = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : T, oe;
|
|
@@ -8218,7 +8218,7 @@ function requireNotification() {
|
|
|
8218
8218
|
return oe;
|
|
8219
8219
|
}
|
|
8220
8220
|
function N(ne, Q) {
|
|
8221
|
-
var ae = ne.placement, oe = ae === void 0 ? O : ae, ce = ne.top, me = ne.bottom,
|
|
8221
|
+
var ae = ne.placement, oe = ae === void 0 ? O : ae, ce = ne.top, me = ne.bottom, G = ne.getContainer, te = G === void 0 ? z : G, he = ne.prefixCls, ge = (0, v.globalConfig)(), Te = ge.getPrefixCls, D = ge.getIconPrefixCls, I = Te("notification", he || E), pe = D(), Re = "".concat(I, "-").concat(oe), Oe = y[Re];
|
|
8222
8222
|
if (Oe) {
|
|
8223
8223
|
Promise.resolve(Oe).then(function(Pe) {
|
|
8224
8224
|
Q({
|
|
@@ -8253,7 +8253,7 @@ function requireNotification() {
|
|
|
8253
8253
|
warning: f.default
|
|
8254
8254
|
};
|
|
8255
8255
|
function U(ne, Q, ae) {
|
|
8256
|
-
var oe = ne.duration, ce = ne.icon, me = ne.type,
|
|
8256
|
+
var oe = ne.duration, ce = ne.icon, me = ne.type, G = ne.description, te = ne.message, he = ne.btn, ge = ne.onClose, Te = ne.onClick, D = ne.key, I = ne.style, pe = ne.className, Re = ne.closeIcon, Oe = Re === void 0 ? P : Re, ve = ne.props, Pe = oe === void 0 ? x : oe, Fe = null;
|
|
8257
8257
|
ce ? Fe = /* @__PURE__ */ g.createElement("span", {
|
|
8258
8258
|
className: "".concat(Q, "-icon")
|
|
8259
8259
|
}, ne.icon) : me && (Fe = /* @__PURE__ */ g.createElement(J[me] || null, {
|
|
@@ -8263,7 +8263,7 @@ function requireNotification() {
|
|
|
8263
8263
|
className: "".concat(Q, "-close-x")
|
|
8264
8264
|
}, Oe || /* @__PURE__ */ g.createElement(d.default, {
|
|
8265
8265
|
className: "".concat(Q, "-close-icon")
|
|
8266
|
-
})), Xt = !
|
|
8266
|
+
})), Xt = !G && Fe ? /* @__PURE__ */ g.createElement("span", {
|
|
8267
8267
|
className: "".concat(Q, "-message-single-line-auto-margin")
|
|
8268
8268
|
}) : null;
|
|
8269
8269
|
return {
|
|
@@ -8276,7 +8276,7 @@ function requireNotification() {
|
|
|
8276
8276
|
className: "".concat(Q, "-message")
|
|
8277
8277
|
}, Xt, te), /* @__PURE__ */ g.createElement("div", {
|
|
8278
8278
|
className: "".concat(Q, "-description")
|
|
8279
|
-
},
|
|
8279
|
+
}, G), he ? /* @__PURE__ */ g.createElement("span", {
|
|
8280
8280
|
className: "".concat(Q, "-btn")
|
|
8281
8281
|
}, he) : null)),
|
|
8282
8282
|
duration: Pe,
|
|
@@ -8480,7 +8480,7 @@ function requireConfigProvider() {
|
|
|
8480
8480
|
var T = "anticon";
|
|
8481
8481
|
e.defaultIconPrefixCls = T;
|
|
8482
8482
|
var E, O;
|
|
8483
|
-
function
|
|
8483
|
+
function z() {
|
|
8484
8484
|
return E || w;
|
|
8485
8485
|
}
|
|
8486
8486
|
function P() {
|
|
@@ -8488,21 +8488,21 @@ function requireConfigProvider() {
|
|
|
8488
8488
|
}
|
|
8489
8489
|
var M = function(U) {
|
|
8490
8490
|
var H = U.prefixCls, K = U.iconPrefixCls, re = U.theme;
|
|
8491
|
-
H !== void 0 && (E = H), K !== void 0 && (O = K), re && (0, v.registerTheme)(
|
|
8491
|
+
H !== void 0 && (E = H), K !== void 0 && (O = K), re && (0, v.registerTheme)(z(), re);
|
|
8492
8492
|
}, L = function() {
|
|
8493
8493
|
return {
|
|
8494
8494
|
getPrefixCls: function(H, K) {
|
|
8495
|
-
return K || (H ? "".concat(
|
|
8495
|
+
return K || (H ? "".concat(z(), "-").concat(H) : z());
|
|
8496
8496
|
},
|
|
8497
8497
|
getIconPrefixCls: P,
|
|
8498
8498
|
getRootPrefixCls: function(H, K) {
|
|
8499
|
-
return H || E || (K && K.includes("-") ? K.replace(/^(.*)-[^-]*$/, "$1") :
|
|
8499
|
+
return H || E || (K && K.includes("-") ? K.replace(/^(.*)-[^-]*$/, "$1") : z());
|
|
8500
8500
|
}
|
|
8501
8501
|
};
|
|
8502
8502
|
};
|
|
8503
8503
|
e.globalConfig = L;
|
|
8504
8504
|
var W = function(U) {
|
|
8505
|
-
var H, K, re = U.children, ie = U.csp, ne = U.autoInsertSpaceInButton, Q = U.form, ae = U.locale, oe = U.componentSize, ce = U.direction, me = U.space,
|
|
8505
|
+
var H, K, re = U.children, ie = U.csp, ne = U.autoInsertSpaceInButton, Q = U.form, ae = U.locale, oe = U.componentSize, ce = U.direction, me = U.space, G = U.virtual, te = U.dropdownMatchSelectWidth, he = U.legacyLocale, ge = U.parentContext, Te = U.iconPrefixCls, D = U.componentDisabled, I = c.useCallback(function(Fe, Ze) {
|
|
8506
8506
|
var Xt = U.prefixCls;
|
|
8507
8507
|
if (Ze)
|
|
8508
8508
|
return Ze;
|
|
@@ -8514,7 +8514,7 @@ function requireConfigProvider() {
|
|
|
8514
8514
|
locale: ae || he,
|
|
8515
8515
|
direction: ce,
|
|
8516
8516
|
space: me,
|
|
8517
|
-
virtual:
|
|
8517
|
+
virtual: G,
|
|
8518
8518
|
dropdownMatchSelectWidth: te,
|
|
8519
8519
|
getPrefixCls: I
|
|
8520
8520
|
});
|
|
@@ -8674,8 +8674,8 @@ function cloneElement(e, r) {
|
|
|
8674
8674
|
}
|
|
8675
8675
|
return (0, l.default)(E, [{
|
|
8676
8676
|
key: "renderClearIcon",
|
|
8677
|
-
value: function(
|
|
8678
|
-
var P, M = this.props, L = M.value, W = M.disabled, B = M.readOnly, N = M.handleReset, J = M.suffix, U = !W && !B && L, H = "".concat(
|
|
8677
|
+
value: function(z) {
|
|
8678
|
+
var P, M = this.props, L = M.value, W = M.disabled, B = M.readOnly, N = M.handleReset, J = M.suffix, U = !W && !B && L, H = "".concat(z, "-clear-icon");
|
|
8679
8679
|
return /* @__PURE__ */ p.createElement(d.default, {
|
|
8680
8680
|
onClick: N,
|
|
8681
8681
|
onMouseDown: function(re) {
|
|
@@ -8687,13 +8687,13 @@ function cloneElement(e, r) {
|
|
|
8687
8687
|
}
|
|
8688
8688
|
}, {
|
|
8689
8689
|
key: "renderTextAreaWithClearIcon",
|
|
8690
|
-
value: function(
|
|
8690
|
+
value: function(z, P, M) {
|
|
8691
8691
|
var L, W = this.props, B = W.value, N = W.allowClear, J = W.className, U = W.style, H = W.direction, K = W.bordered, re = W.hidden, ie = W.status, ne = M.status, Q = M.hasFeedback;
|
|
8692
8692
|
if (!N)
|
|
8693
8693
|
return (0, m.cloneElement)(P, {
|
|
8694
8694
|
value: B
|
|
8695
8695
|
});
|
|
8696
|
-
var ae = (0, f.default)("".concat(
|
|
8696
|
+
var ae = (0, f.default)("".concat(z, "-affix-wrapper"), "".concat(z, "-affix-wrapper-textarea-with-clear-btn"), (0, g.getStatusClassNames)("".concat(z, "-affix-wrapper"), (0, g.getMergedStatus)(ne, ie), Q), (L = {}, (0, o.default)(L, "".concat(z, "-affix-wrapper-rtl"), H === "rtl"), (0, o.default)(L, "".concat(z, "-affix-wrapper-borderless"), !K), (0, o.default)(L, "".concat(J), !S(this.props) && J), L));
|
|
8697
8697
|
return /* @__PURE__ */ p.createElement("span", {
|
|
8698
8698
|
className: ae,
|
|
8699
8699
|
style: U,
|
|
@@ -8701,16 +8701,16 @@ function cloneElement(e, r) {
|
|
|
8701
8701
|
}, (0, m.cloneElement)(P, {
|
|
8702
8702
|
style: null,
|
|
8703
8703
|
value: B
|
|
8704
|
-
}), this.renderClearIcon(
|
|
8704
|
+
}), this.renderClearIcon(z));
|
|
8705
8705
|
}
|
|
8706
8706
|
}, {
|
|
8707
8707
|
key: "render",
|
|
8708
8708
|
value: function() {
|
|
8709
|
-
var
|
|
8709
|
+
var z = this;
|
|
8710
8710
|
return /* @__PURE__ */ p.createElement(h.FormItemInputContext.Consumer, null, function(P) {
|
|
8711
|
-
var M =
|
|
8711
|
+
var M = z.props, L = M.prefixCls, W = M.inputType, B = M.element;
|
|
8712
8712
|
if (W === C[0])
|
|
8713
|
-
return
|
|
8713
|
+
return z.renderTextAreaWithClearIcon(L, B, P);
|
|
8714
8714
|
});
|
|
8715
8715
|
}
|
|
8716
8716
|
}]), E;
|
|
@@ -8779,7 +8779,7 @@ var BaseInput = function(r) {
|
|
|
8779
8779
|
var a = r.inputElement, o = r.prefixCls, s = r.prefix, l = r.suffix, u = r.addonBefore, c = r.addonAfter, d = r.className, f = r.style, p = r.affixWrapperClassName, h = r.groupClassName, m = r.wrapperClassName, g = r.disabled, v = r.readOnly, C = r.focused, S = r.triggerFocus, y = r.allowClear, x = r.value, w = r.handleReset, T = r.hidden, E = useRef(null), O = function(re) {
|
|
8780
8780
|
var ie;
|
|
8781
8781
|
(ie = E.current) !== null && ie !== void 0 && ie.contains(re.target) && (S == null || S());
|
|
8782
|
-
},
|
|
8782
|
+
}, z = function() {
|
|
8783
8783
|
var re;
|
|
8784
8784
|
if (!y)
|
|
8785
8785
|
return null;
|
|
@@ -8801,7 +8801,7 @@ var BaseInput = function(r) {
|
|
|
8801
8801
|
if (hasPrefixSuffix$1(r)) {
|
|
8802
8802
|
var M, L = "".concat(o, "-affix-wrapper"), W = classNames(L, (M = {}, _defineProperty$1(M, "".concat(L, "-disabled"), g), _defineProperty$1(M, "".concat(L, "-focused"), C), _defineProperty$1(M, "".concat(L, "-readonly"), v), _defineProperty$1(M, "".concat(L, "-input-with-clear-btn"), l && y && x), M), !hasAddon(r) && d, p), B = (l || y) && /* @__PURE__ */ jsxs("span", {
|
|
8803
8803
|
className: "".concat(o, "-suffix"),
|
|
8804
|
-
children: [
|
|
8804
|
+
children: [z(), l]
|
|
8805
8805
|
});
|
|
8806
8806
|
P = /* @__PURE__ */ jsxs("span", {
|
|
8807
8807
|
className: W,
|
|
@@ -8851,7 +8851,7 @@ function omit(e, r) {
|
|
|
8851
8851
|
var _excluded$1 = ["autoComplete", "onChange", "onFocus", "onBlur", "onPressEnter", "onKeyDown", "prefixCls", "disabled", "htmlSize", "className", "maxLength", "suffix", "showCount", "type", "inputClassName"], Input = /* @__PURE__ */ forwardRef(function(e, r) {
|
|
8852
8852
|
var a = e.autoComplete, o = e.onChange, s = e.onFocus, l = e.onBlur, u = e.onPressEnter, c = e.onKeyDown, d = e.prefixCls, f = d === void 0 ? "rc-input" : d, p = e.disabled, h = e.htmlSize, m = e.className, g = e.maxLength, v = e.suffix, C = e.showCount, S = e.type, y = S === void 0 ? "text" : S, x = e.inputClassName, w = _objectWithoutProperties(e, _excluded$1), T = useMergedState$2(e.defaultValue, {
|
|
8853
8853
|
value: e.value
|
|
8854
|
-
}), E = _slicedToArray(T, 2), O = E[0],
|
|
8854
|
+
}), E = _slicedToArray(T, 2), O = E[0], z = E[1], P = useState$1(!1), M = _slicedToArray(P, 2), L = M[0], W = M[1], B = useRef(null), N = function(ae) {
|
|
8855
8855
|
B.current && triggerFocus(B.current, ae);
|
|
8856
8856
|
};
|
|
8857
8857
|
useImperativeHandle(r, function() {
|
|
@@ -8877,7 +8877,7 @@ var _excluded$1 = ["autoComplete", "onChange", "onFocus", "onBlur", "onPressEnte
|
|
|
8877
8877
|
});
|
|
8878
8878
|
}, [p]);
|
|
8879
8879
|
var J = function(ae) {
|
|
8880
|
-
e.value === void 0 &&
|
|
8880
|
+
e.value === void 0 && z(ae.target.value), B.current && resolveOnChange(B.current, ae, o);
|
|
8881
8881
|
}, U = function(ae) {
|
|
8882
8882
|
u && ae.key === "Enter" && u(ae), c == null || c(ae);
|
|
8883
8883
|
}, H = function(ae) {
|
|
@@ -8885,7 +8885,7 @@ var _excluded$1 = ["autoComplete", "onChange", "onFocus", "onBlur", "onPressEnte
|
|
|
8885
8885
|
}, K = function(ae) {
|
|
8886
8886
|
W(!1), l == null || l(ae);
|
|
8887
8887
|
}, re = function(ae) {
|
|
8888
|
-
|
|
8888
|
+
z(""), N(), B.current && resolveOnChange(B.current, ae, o);
|
|
8889
8889
|
}, ie = function() {
|
|
8890
8890
|
var ae = omit(e, [
|
|
8891
8891
|
"prefixCls",
|
|
@@ -9021,8 +9021,8 @@ function toArray$1(e) {
|
|
|
9021
9021
|
var E;
|
|
9022
9022
|
if (!w)
|
|
9023
9023
|
return "";
|
|
9024
|
-
var O = w.compactDirection,
|
|
9025
|
-
return (0, l.default)((E = {}, (0, s.default)(E, "".concat(y, "-compact").concat(M, "item"), !0), (0, s.default)(E, "".concat(y, "-compact").concat(M, "first-item"),
|
|
9024
|
+
var O = w.compactDirection, z = w.isFirstItem, P = w.isLastItem, M = O === "vertical" ? "-vertical-" : "-";
|
|
9025
|
+
return (0, l.default)((E = {}, (0, s.default)(E, "".concat(y, "-compact").concat(M, "item"), !0), (0, s.default)(E, "".concat(y, "-compact").concat(M, "first-item"), z), (0, s.default)(E, "".concat(y, "-compact").concat(M, "last-item"), P), (0, s.default)(E, "".concat(y, "-compact").concat(M, "item-rtl"), x === "rtl"), E));
|
|
9026
9026
|
}, [y, x, w]);
|
|
9027
9027
|
return {
|
|
9028
9028
|
compactSize: w == null ? void 0 : w.compactSize,
|
|
@@ -9044,18 +9044,18 @@ function toArray$1(e) {
|
|
|
9044
9044
|
value: w
|
|
9045
9045
|
}, x);
|
|
9046
9046
|
}, v = function(y) {
|
|
9047
|
-
var x, w = c.useContext(d.ConfigContext), T = w.getPrefixCls, E = w.direction, O = y.size,
|
|
9047
|
+
var x, w = c.useContext(d.ConfigContext), T = w.getPrefixCls, E = w.direction, O = y.size, z = O === void 0 ? "middle" : O, P = y.direction, M = y.block, L = y.prefixCls, W = y.className, B = y.children, N = f(y, ["size", "direction", "block", "prefixCls", "className", "children"]), J = T("space-compact", L), U = (0, l.default)(J, (x = {}, (0, s.default)(x, "".concat(J, "-rtl"), E === "rtl"), (0, s.default)(x, "".concat(J, "-block"), M), (0, s.default)(x, "".concat(J, "-vertical"), P === "vertical"), x), W), H = c.useContext(p), K = (0, u.default)(B), re = c.useMemo(function() {
|
|
9048
9048
|
return K.map(function(ie, ne) {
|
|
9049
9049
|
var Q = ie && ie.key || "".concat(J, "-item-").concat(ne);
|
|
9050
9050
|
return /* @__PURE__ */ c.createElement(g, {
|
|
9051
9051
|
key: Q,
|
|
9052
|
-
compactSize:
|
|
9052
|
+
compactSize: z,
|
|
9053
9053
|
compactDirection: P,
|
|
9054
9054
|
isFirstItem: ne === 0 && (!H || (H == null ? void 0 : H.isFirstItem)),
|
|
9055
9055
|
isLastItem: ne === K.length - 1 && (!H || (H == null ? void 0 : H.isLastItem))
|
|
9056
9056
|
}, ie);
|
|
9057
9057
|
});
|
|
9058
|
-
}, [
|
|
9058
|
+
}, [z, K, H]);
|
|
9059
9059
|
return K.length === 0 ? null : /* @__PURE__ */ c.createElement("div", (0, o.default)({
|
|
9060
9060
|
className: U
|
|
9061
9061
|
}, N), re);
|
|
@@ -9096,7 +9096,7 @@ function hasPrefixSuffix(e) {
|
|
|
9096
9096
|
var r = interopRequireWildcard.exports.default, a = interopRequireDefault.exports.default;
|
|
9097
9097
|
Object.defineProperty(e, "__esModule", {
|
|
9098
9098
|
value: !0
|
|
9099
|
-
}), e.default = void 0, e.fixControlledValue = E, e.resolveOnChange = O, e.triggerFocus =
|
|
9099
|
+
}), e.default = void 0, e.fixControlledValue = E, e.resolveOnChange = O, e.triggerFocus = z;
|
|
9100
9100
|
var o = a(defineProperty.exports), s = a(_extends$1.exports), l = a(_typeof$3.exports), u = a(CloseCircleFilled$3.exports), c = a(classnames.exports), d = a(require$$7), f = ref, p = r(React__default), h = requireConfigProvider(), m = a(DisabledContext), g = a(SizeContext), v = context, C = Compact, S = statusUtils, y = a(warning$4), x = a(useRemovePasswordTimeout), w = utils$1, T = function(L, W) {
|
|
9101
9101
|
var B = {};
|
|
9102
9102
|
for (var N in L)
|
|
@@ -9138,7 +9138,7 @@ function hasPrefixSuffix(e) {
|
|
|
9138
9138
|
B(J);
|
|
9139
9139
|
}
|
|
9140
9140
|
}
|
|
9141
|
-
function
|
|
9141
|
+
function z(L, W) {
|
|
9142
9142
|
if (!!L) {
|
|
9143
9143
|
L.focus(W);
|
|
9144
9144
|
var B = W || {}, N = B.cursor;
|
|
@@ -9159,7 +9159,7 @@ function hasPrefixSuffix(e) {
|
|
|
9159
9159
|
}
|
|
9160
9160
|
}
|
|
9161
9161
|
var P = /* @__PURE__ */ (0, p.forwardRef)(function(L, W) {
|
|
9162
|
-
var B, N, J, U = L.prefixCls, H = L.bordered, K = H === void 0 ? !0 : H, re = L.status, ie = L.size, ne = L.disabled, Q = L.onBlur, ae = L.onFocus, oe = L.suffix, ce = L.allowClear, me = L.addonAfter,
|
|
9162
|
+
var B, N, J, U = L.prefixCls, H = L.bordered, K = H === void 0 ? !0 : H, re = L.status, ie = L.size, ne = L.disabled, Q = L.onBlur, ae = L.onFocus, oe = L.suffix, ce = L.allowClear, me = L.addonAfter, G = L.addonBefore, te = L.className, he = L.onChange, ge = T(L, ["prefixCls", "bordered", "status", "size", "disabled", "onBlur", "onFocus", "suffix", "allowClear", "addonAfter", "addonBefore", "className", "onChange"]), Te = p.default.useContext(h.ConfigContext), D = Te.getPrefixCls, I = Te.direction, pe = Te.input, Re = D("input", U), Oe = (0, p.useRef)(null), ve = (0, C.useCompactItemContext)(Re, I), Pe = ve.compactSize, Fe = ve.compactItemClassnames, Ze = p.default.useContext(g.default), Xt = Pe || ie || Ze, Zt = p.default.useContext(m.default), er = ne != null ? ne : Zt, qe = (0, p.useContext)(v.FormItemInputContext), Ht = qe.status, _t = qe.hasFeedback, qt = qe.feedbackIcon, kt = (0, S.getMergedStatus)(Ht, re), et = (0, w.hasPrefixSuffix)(L) || !!_t, Yt = (0, p.useRef)(et);
|
|
9163
9163
|
(0, p.useEffect)(function() {
|
|
9164
9164
|
var or;
|
|
9165
9165
|
et && !Yt.current && process.env.NODE_ENV !== "production" && (0, y.default)(document.activeElement === ((or = Oe.current) === null || or === void 0 ? void 0 : or.input), "Input", "When Input is focused, dynamic add or remove prefix / suffix will make it lose focus caused by dom structure change. Read more: https://ant.design/components/input/#FAQ"), Yt.current = et;
|
|
@@ -9189,10 +9189,10 @@ function hasPrefixSuffix(e) {
|
|
|
9189
9189
|
override: !0,
|
|
9190
9190
|
status: !0
|
|
9191
9191
|
}, me)),
|
|
9192
|
-
addonBefore:
|
|
9192
|
+
addonBefore: G && /* @__PURE__ */ p.default.createElement(C.NoCompactStyle, null, /* @__PURE__ */ p.default.createElement(v.NoFormStyle, {
|
|
9193
9193
|
override: !0,
|
|
9194
9194
|
status: !0
|
|
9195
|
-
},
|
|
9195
|
+
}, G)),
|
|
9196
9196
|
inputClassName: (0, c.default)((B = {}, (0, o.default)(B, "".concat(Re, "-sm"), Xt === "small"), (0, o.default)(B, "".concat(Re, "-lg"), Xt === "large"), (0, o.default)(B, "".concat(Re, "-rtl"), I === "rtl"), (0, o.default)(B, "".concat(Re, "-borderless"), !K), B), !et && (0, S.getStatusClassNames)(Re, kt)),
|
|
9197
9197
|
affixWrapperClassName: (0, c.default)((N = {}, (0, o.default)(N, "".concat(Re, "-affix-wrapper-sm"), Xt === "small"), (0, o.default)(N, "".concat(Re, "-affix-wrapper-lg"), Xt === "large"), (0, o.default)(N, "".concat(Re, "-affix-wrapper-rtl"), I === "rtl"), (0, o.default)(N, "".concat(Re, "-affix-wrapper-borderless"), !K), N), (0, S.getStatusClassNames)("".concat(Re, "-affix-wrapper"), kt, _t)),
|
|
9198
9198
|
wrapperClassName: (0, c.default)((0, o.default)({}, "".concat(Re, "-group-rtl"), I === "rtl")),
|
|
@@ -9222,11 +9222,11 @@ function hasPrefixSuffix(e) {
|
|
|
9222
9222
|
var N = W;
|
|
9223
9223
|
return M ? N = E(W, B) : (0, c.default)(L || "").length < W.length && (0, c.default)(W || "").length > B && (N = L), N;
|
|
9224
9224
|
}
|
|
9225
|
-
var
|
|
9226
|
-
var W, B = M.prefixCls, N = M.bordered, J = N === void 0 ? !0 : N, U = M.showCount, H = U === void 0 ? !1 : U, K = M.maxLength, re = M.className, ie = M.style, ne = M.size, Q = M.disabled, ae = M.onCompositionStart, oe = M.onCompositionEnd, ce = M.onChange, me = M.status,
|
|
9227
|
-
value:
|
|
9228
|
-
}), et = (0, u.default)(kt, 2), Yt = et[0], tr = et[1], it =
|
|
9229
|
-
|
|
9225
|
+
var z = /* @__PURE__ */ m.forwardRef(function(M, L) {
|
|
9226
|
+
var W, B = M.prefixCls, N = M.bordered, J = N === void 0 ? !0 : N, U = M.showCount, H = U === void 0 ? !1 : U, K = M.maxLength, re = M.className, ie = M.style, ne = M.size, Q = M.disabled, ae = M.onCompositionStart, oe = M.onCompositionEnd, ce = M.onChange, me = M.status, G = T(M, ["prefixCls", "bordered", "showCount", "maxLength", "className", "style", "size", "disabled", "onCompositionStart", "onCompositionEnd", "onChange", "status"]), te = m.useContext(g.ConfigContext), he = te.getPrefixCls, ge = te.direction, Te = m.useContext(C.default), D = m.useContext(v.default), I = Q != null ? Q : D, pe = m.useContext(S.FormItemInputContext), Re = pe.status, Oe = pe.hasFeedback, ve = pe.isFormItemInput, Pe = pe.feedbackIcon, Fe = (0, y.getMergedStatus)(Re, me), Ze = m.useRef(null), Xt = m.useRef(null), Zt = m.useState(!1), er = (0, u.default)(Zt, 2), qe = er[0], Ht = er[1], _t = m.useRef(), qt = m.useRef(0), kt = (0, p.default)(G.defaultValue, {
|
|
9227
|
+
value: G.value
|
|
9228
|
+
}), et = (0, u.default)(kt, 2), Yt = et[0], tr = et[1], it = G.hidden, xt = function(_r, Pr) {
|
|
9229
|
+
G.value === void 0 && (tr(_r), Pr == null || Pr());
|
|
9230
9230
|
}, Qt = Number(K) > 0, Jt = function(_r) {
|
|
9231
9231
|
Ht(!0), _t.current = Yt, qt.current = _r.currentTarget.selectionStart, ae == null || ae(_r);
|
|
9232
9232
|
}, rr = function(_r) {
|
|
@@ -9263,7 +9263,7 @@ function hasPrefixSuffix(e) {
|
|
|
9263
9263
|
}
|
|
9264
9264
|
};
|
|
9265
9265
|
});
|
|
9266
|
-
var Ar = /* @__PURE__ */ m.createElement(f.default, (0, l.default)({}, (0, h.default)(
|
|
9266
|
+
var Ar = /* @__PURE__ */ m.createElement(f.default, (0, l.default)({}, (0, h.default)(G, ["allowClear"]), {
|
|
9267
9267
|
disabled: I,
|
|
9268
9268
|
className: (0, d.default)((W = {}, (0, s.default)(W, "".concat(Wr, "-borderless"), !J), (0, s.default)(W, re, re && !H), (0, s.default)(W, "".concat(Wr, "-sm"), Te === "small" || ne === "small"), (0, s.default)(W, "".concat(Wr, "-lg"), Te === "large" || ne === "large"), W), (0, y.getStatusClassNames)(Wr, Fe)),
|
|
9269
9269
|
style: H ? {
|
|
@@ -9275,10 +9275,10 @@ function hasPrefixSuffix(e) {
|
|
|
9275
9275
|
onCompositionEnd: rr,
|
|
9276
9276
|
ref: Ze
|
|
9277
9277
|
})), Ur = (0, w.fixControlledValue)(Yt);
|
|
9278
|
-
!qe && Qt && (
|
|
9278
|
+
!qe && Qt && (G.value === null || G.value === void 0) && (Ur = E(Ur, K));
|
|
9279
9279
|
var Kr = /* @__PURE__ */ m.createElement(x.default, (0, l.default)({
|
|
9280
9280
|
disabled: I
|
|
9281
|
-
},
|
|
9281
|
+
}, G, {
|
|
9282
9282
|
prefixCls: Wr,
|
|
9283
9283
|
direction: ge,
|
|
9284
9284
|
inputType: "text",
|
|
@@ -9306,7 +9306,7 @@ function hasPrefixSuffix(e) {
|
|
|
9306
9306
|
}, Pe));
|
|
9307
9307
|
}
|
|
9308
9308
|
return Kr;
|
|
9309
|
-
}), P =
|
|
9309
|
+
}), P = z;
|
|
9310
9310
|
e.default = P;
|
|
9311
9311
|
})(TextArea$2);
|
|
9312
9312
|
const ir = /* @__PURE__ */ getDefaultExportFromCjs(TextArea$2), {
|
|
@@ -9430,7 +9430,7 @@ const ir = /* @__PURE__ */ getDefaultExportFromCjs(TextArea$2), {
|
|
|
9430
9430
|
}
|
|
9431
9431
|
v(!1), u();
|
|
9432
9432
|
}
|
|
9433
|
-
function
|
|
9433
|
+
function z() {
|
|
9434
9434
|
return h ? /* @__PURE__ */ jsx(Spin, {}) : /* @__PURE__ */ jsxs(Fragment, {
|
|
9435
9435
|
children: [E(), /* @__PURE__ */ jsx(Divider, {}), /* @__PURE__ */ jsx(Row, {
|
|
9436
9436
|
justify: "end",
|
|
@@ -9464,7 +9464,7 @@ const ir = /* @__PURE__ */ getDefaultExportFromCjs(TextArea$2), {
|
|
|
9464
9464
|
footer: null,
|
|
9465
9465
|
destroyOnClose: !0,
|
|
9466
9466
|
maskClosable: !1,
|
|
9467
|
-
children:
|
|
9467
|
+
children: z()
|
|
9468
9468
|
});
|
|
9469
9469
|
};
|
|
9470
9470
|
function ButtonWithTooltip(e) {
|
|
@@ -9746,19 +9746,19 @@ function debounce(e, r, a) {
|
|
|
9746
9746
|
throw new TypeError(FUNC_ERROR_TEXT);
|
|
9747
9747
|
r = toNumber(r) || 0, isObject$3(a) && (p = !!a.leading, h = "maxWait" in a, l = h ? nativeMax(toNumber(a.maxWait) || 0, r) : l, m = "trailing" in a ? !!a.trailing : m);
|
|
9748
9748
|
function g(O) {
|
|
9749
|
-
var
|
|
9750
|
-
return o = s = void 0, f = O, u = e.apply(P,
|
|
9749
|
+
var z = o, P = s;
|
|
9750
|
+
return o = s = void 0, f = O, u = e.apply(P, z), u;
|
|
9751
9751
|
}
|
|
9752
9752
|
function v(O) {
|
|
9753
9753
|
return f = O, c = setTimeout(y, r), p ? g(O) : u;
|
|
9754
9754
|
}
|
|
9755
9755
|
function C(O) {
|
|
9756
|
-
var
|
|
9756
|
+
var z = O - d, P = O - f, M = r - z;
|
|
9757
9757
|
return h ? nativeMin(M, l - P) : M;
|
|
9758
9758
|
}
|
|
9759
9759
|
function S(O) {
|
|
9760
|
-
var
|
|
9761
|
-
return d === void 0 ||
|
|
9760
|
+
var z = O - d, P = O - f;
|
|
9761
|
+
return d === void 0 || z >= r || z < 0 || h && P >= l;
|
|
9762
9762
|
}
|
|
9763
9763
|
function y() {
|
|
9764
9764
|
var O = now$1();
|
|
@@ -9776,8 +9776,8 @@ function debounce(e, r, a) {
|
|
|
9776
9776
|
return c === void 0 ? u : x(now$1());
|
|
9777
9777
|
}
|
|
9778
9778
|
function E() {
|
|
9779
|
-
var O = now$1(),
|
|
9780
|
-
if (o = arguments, s = this, d = O,
|
|
9779
|
+
var O = now$1(), z = S(O);
|
|
9780
|
+
if (o = arguments, s = this, d = O, z) {
|
|
9781
9781
|
if (c === void 0)
|
|
9782
9782
|
return v(d);
|
|
9783
9783
|
if (h)
|
|
@@ -10325,10 +10325,10 @@ function require_stream_writable() {
|
|
|
10325
10325
|
if (hasRequired_stream_writable)
|
|
10326
10326
|
return _stream_writable;
|
|
10327
10327
|
hasRequired_stream_writable = 1, _stream_writable = P;
|
|
10328
|
-
function e(
|
|
10328
|
+
function e(G) {
|
|
10329
10329
|
var te = this;
|
|
10330
10330
|
this.next = null, this.entry = null, this.finish = function() {
|
|
10331
|
-
me(te,
|
|
10331
|
+
me(te, G);
|
|
10332
10332
|
};
|
|
10333
10333
|
}
|
|
10334
10334
|
var r;
|
|
@@ -10337,22 +10337,22 @@ function require_stream_writable() {
|
|
|
10337
10337
|
deprecate: browser
|
|
10338
10338
|
}, o = streamBrowser, s = require$$0.Buffer, l = commonjsGlobal.Uint8Array || function() {
|
|
10339
10339
|
};
|
|
10340
|
-
function u(
|
|
10341
|
-
return s.from(
|
|
10340
|
+
function u(G) {
|
|
10341
|
+
return s.from(G);
|
|
10342
10342
|
}
|
|
10343
|
-
function c(
|
|
10344
|
-
return s.isBuffer(
|
|
10343
|
+
function c(G) {
|
|
10344
|
+
return s.isBuffer(G) || G instanceof l;
|
|
10345
10345
|
}
|
|
10346
10346
|
var d = destroy_1, f = state, p = f.getHighWaterMark, h = errorsBrowser.codes, m = h.ERR_INVALID_ARG_TYPE, g = h.ERR_METHOD_NOT_IMPLEMENTED, v = h.ERR_MULTIPLE_CALLBACK, C = h.ERR_STREAM_CANNOT_PIPE, S = h.ERR_STREAM_DESTROYED, y = h.ERR_STREAM_NULL_VALUES, x = h.ERR_STREAM_WRITE_AFTER_END, w = h.ERR_UNKNOWN_ENCODING, T = d.errorOrDestroy;
|
|
10347
10347
|
inherits_browser.exports(P, o);
|
|
10348
10348
|
function E() {
|
|
10349
10349
|
}
|
|
10350
|
-
function O(
|
|
10351
|
-
r = r || require_stream_duplex(),
|
|
10352
|
-
var ge =
|
|
10353
|
-
this.decodeStrings = !ge, this.defaultEncoding =
|
|
10350
|
+
function O(G, te, he) {
|
|
10351
|
+
r = r || require_stream_duplex(), G = G || {}, typeof he != "boolean" && (he = te instanceof r), this.objectMode = !!G.objectMode, he && (this.objectMode = this.objectMode || !!G.writableObjectMode), this.highWaterMark = p(this, G, "writableHighWaterMark", he), this.finalCalled = !1, this.needDrain = !1, this.ending = !1, this.ended = !1, this.finished = !1, this.destroyed = !1;
|
|
10352
|
+
var ge = G.decodeStrings === !1;
|
|
10353
|
+
this.decodeStrings = !ge, this.defaultEncoding = G.defaultEncoding || "utf8", this.length = 0, this.writing = !1, this.corked = 0, this.sync = !0, this.bufferProcessing = !1, this.onwrite = function(Te) {
|
|
10354
10354
|
H(te, Te);
|
|
10355
|
-
}, this.writecb = null, this.writelen = 0, this.bufferedRequest = null, this.lastBufferedRequest = null, this.pendingcb = 0, this.prefinished = !1, this.errorEmitted = !1, this.emitClose =
|
|
10355
|
+
}, this.writecb = null, this.writelen = 0, this.bufferedRequest = null, this.lastBufferedRequest = null, this.pendingcb = 0, this.prefinished = !1, this.errorEmitted = !1, this.emitClose = G.emitClose !== !1, this.autoDestroy = !!G.autoDestroy, this.bufferedRequestCount = 0, this.corkedRequestsFree = new e(this);
|
|
10356
10356
|
}
|
|
10357
10357
|
O.prototype.getBuffer = function() {
|
|
10358
10358
|
for (var te = this.bufferedRequest, he = []; te; )
|
|
@@ -10368,40 +10368,40 @@ function require_stream_writable() {
|
|
|
10368
10368
|
} catch {
|
|
10369
10369
|
}
|
|
10370
10370
|
}();
|
|
10371
|
-
var
|
|
10372
|
-
typeof Symbol == "function" && Symbol.hasInstance && typeof Function.prototype[Symbol.hasInstance] == "function" ? (
|
|
10371
|
+
var z;
|
|
10372
|
+
typeof Symbol == "function" && Symbol.hasInstance && typeof Function.prototype[Symbol.hasInstance] == "function" ? (z = Function.prototype[Symbol.hasInstance], Object.defineProperty(P, Symbol.hasInstance, {
|
|
10373
10373
|
value: function(te) {
|
|
10374
|
-
return
|
|
10374
|
+
return z.call(this, te) ? !0 : this !== P ? !1 : te && te._writableState instanceof O;
|
|
10375
10375
|
}
|
|
10376
|
-
})) :
|
|
10376
|
+
})) : z = function(te) {
|
|
10377
10377
|
return te instanceof this;
|
|
10378
10378
|
};
|
|
10379
|
-
function P(
|
|
10379
|
+
function P(G) {
|
|
10380
10380
|
r = r || require_stream_duplex();
|
|
10381
10381
|
var te = this instanceof r;
|
|
10382
|
-
if (!te && !
|
|
10383
|
-
return new P(
|
|
10384
|
-
this._writableState = new O(
|
|
10382
|
+
if (!te && !z.call(P, this))
|
|
10383
|
+
return new P(G);
|
|
10384
|
+
this._writableState = new O(G, this, te), this.writable = !0, G && (typeof G.write == "function" && (this._write = G.write), typeof G.writev == "function" && (this._writev = G.writev), typeof G.destroy == "function" && (this._destroy = G.destroy), typeof G.final == "function" && (this._final = G.final)), o.call(this);
|
|
10385
10385
|
}
|
|
10386
10386
|
P.prototype.pipe = function() {
|
|
10387
10387
|
T(this, new C());
|
|
10388
10388
|
};
|
|
10389
|
-
function M(
|
|
10389
|
+
function M(G, te) {
|
|
10390
10390
|
var he = new x();
|
|
10391
|
-
T(
|
|
10391
|
+
T(G, he), process.nextTick(te, he);
|
|
10392
10392
|
}
|
|
10393
|
-
function L(
|
|
10393
|
+
function L(G, te, he, ge) {
|
|
10394
10394
|
var Te;
|
|
10395
|
-
return he === null ? Te = new y() : typeof he != "string" && !te.objectMode && (Te = new m("chunk", ["string", "Buffer"], he)), Te ? (T(
|
|
10395
|
+
return he === null ? Te = new y() : typeof he != "string" && !te.objectMode && (Te = new m("chunk", ["string", "Buffer"], he)), Te ? (T(G, Te), process.nextTick(ge, Te), !1) : !0;
|
|
10396
10396
|
}
|
|
10397
|
-
P.prototype.write = function(
|
|
10398
|
-
var ge = this._writableState, Te = !1, D = !ge.objectMode && c(
|
|
10399
|
-
return D && !s.isBuffer(
|
|
10397
|
+
P.prototype.write = function(G, te, he) {
|
|
10398
|
+
var ge = this._writableState, Te = !1, D = !ge.objectMode && c(G);
|
|
10399
|
+
return D && !s.isBuffer(G) && (G = u(G)), typeof te == "function" && (he = te, te = null), D ? te = "buffer" : te || (te = ge.defaultEncoding), typeof he != "function" && (he = E), ge.ending ? M(this, he) : (D || L(this, ge, G, he)) && (ge.pendingcb++, Te = B(this, ge, D, G, te, he)), Te;
|
|
10400
10400
|
}, P.prototype.cork = function() {
|
|
10401
10401
|
this._writableState.corked++;
|
|
10402
10402
|
}, P.prototype.uncork = function() {
|
|
10403
|
-
var
|
|
10404
|
-
|
|
10403
|
+
var G = this._writableState;
|
|
10404
|
+
G.corked && (G.corked--, !G.writing && !G.corked && !G.bufferProcessing && G.bufferedRequest && ie(this, G));
|
|
10405
10405
|
}, P.prototype.setDefaultEncoding = function(te) {
|
|
10406
10406
|
if (typeof te == "string" && (te = te.toLowerCase()), !(["hex", "utf8", "utf-8", "ascii", "binary", "base64", "ucs2", "ucs-2", "utf16le", "utf-16le", "raw"].indexOf((te + "").toLowerCase()) > -1))
|
|
10407
10407
|
throw new w(te);
|
|
@@ -10412,8 +10412,8 @@ function require_stream_writable() {
|
|
|
10412
10412
|
return this._writableState && this._writableState.getBuffer();
|
|
10413
10413
|
}
|
|
10414
10414
|
});
|
|
10415
|
-
function W(
|
|
10416
|
-
return !
|
|
10415
|
+
function W(G, te, he) {
|
|
10416
|
+
return !G.objectMode && G.decodeStrings !== !1 && typeof te == "string" && (te = s.from(te, he)), te;
|
|
10417
10417
|
}
|
|
10418
10418
|
Object.defineProperty(P.prototype, "writableHighWaterMark", {
|
|
10419
10419
|
enumerable: !1,
|
|
@@ -10421,7 +10421,7 @@ function require_stream_writable() {
|
|
|
10421
10421
|
return this._writableState.highWaterMark;
|
|
10422
10422
|
}
|
|
10423
10423
|
});
|
|
10424
|
-
function B(
|
|
10424
|
+
function B(G, te, he, ge, Te, D) {
|
|
10425
10425
|
if (!he) {
|
|
10426
10426
|
var I = W(te, ge, Te);
|
|
10427
10427
|
ge !== I && (he = !0, Te = "buffer", ge = I);
|
|
@@ -10439,94 +10439,94 @@ function require_stream_writable() {
|
|
|
10439
10439
|
next: null
|
|
10440
10440
|
}, Oe ? Oe.next = te.lastBufferedRequest : te.bufferedRequest = te.lastBufferedRequest, te.bufferedRequestCount += 1;
|
|
10441
10441
|
} else
|
|
10442
|
-
N(
|
|
10442
|
+
N(G, te, !1, pe, ge, Te, D);
|
|
10443
10443
|
return Re;
|
|
10444
10444
|
}
|
|
10445
|
-
function N(
|
|
10446
|
-
te.writelen = ge, te.writecb = I, te.writing = !0, te.sync = !0, te.destroyed ? te.onwrite(new S("write")) : he ?
|
|
10445
|
+
function N(G, te, he, ge, Te, D, I) {
|
|
10446
|
+
te.writelen = ge, te.writecb = I, te.writing = !0, te.sync = !0, te.destroyed ? te.onwrite(new S("write")) : he ? G._writev(Te, te.onwrite) : G._write(Te, D, te.onwrite), te.sync = !1;
|
|
10447
10447
|
}
|
|
10448
|
-
function J(
|
|
10449
|
-
--te.pendingcb, he ? (process.nextTick(Te, ge), process.nextTick(oe,
|
|
10448
|
+
function J(G, te, he, ge, Te) {
|
|
10449
|
+
--te.pendingcb, he ? (process.nextTick(Te, ge), process.nextTick(oe, G, te), G._writableState.errorEmitted = !0, T(G, ge)) : (Te(ge), G._writableState.errorEmitted = !0, T(G, ge), oe(G, te));
|
|
10450
10450
|
}
|
|
10451
|
-
function U(
|
|
10452
|
-
|
|
10451
|
+
function U(G) {
|
|
10452
|
+
G.writing = !1, G.writecb = null, G.length -= G.writelen, G.writelen = 0;
|
|
10453
10453
|
}
|
|
10454
|
-
function H(
|
|
10455
|
-
var he =
|
|
10454
|
+
function H(G, te) {
|
|
10455
|
+
var he = G._writableState, ge = he.sync, Te = he.writecb;
|
|
10456
10456
|
if (typeof Te != "function")
|
|
10457
10457
|
throw new v();
|
|
10458
10458
|
if (U(he), te)
|
|
10459
|
-
J(
|
|
10459
|
+
J(G, he, ge, te, Te);
|
|
10460
10460
|
else {
|
|
10461
|
-
var D = ne(he) ||
|
|
10462
|
-
!D && !he.corked && !he.bufferProcessing && he.bufferedRequest && ie(
|
|
10461
|
+
var D = ne(he) || G.destroyed;
|
|
10462
|
+
!D && !he.corked && !he.bufferProcessing && he.bufferedRequest && ie(G, he), ge ? process.nextTick(K, G, he, D, Te) : K(G, he, D, Te);
|
|
10463
10463
|
}
|
|
10464
10464
|
}
|
|
10465
|
-
function K(
|
|
10466
|
-
he || re(
|
|
10465
|
+
function K(G, te, he, ge) {
|
|
10466
|
+
he || re(G, te), te.pendingcb--, ge(), oe(G, te);
|
|
10467
10467
|
}
|
|
10468
|
-
function re(
|
|
10469
|
-
te.length === 0 && te.needDrain && (te.needDrain = !1,
|
|
10468
|
+
function re(G, te) {
|
|
10469
|
+
te.length === 0 && te.needDrain && (te.needDrain = !1, G.emit("drain"));
|
|
10470
10470
|
}
|
|
10471
|
-
function ie(
|
|
10471
|
+
function ie(G, te) {
|
|
10472
10472
|
te.bufferProcessing = !0;
|
|
10473
10473
|
var he = te.bufferedRequest;
|
|
10474
|
-
if (
|
|
10474
|
+
if (G._writev && he && he.next) {
|
|
10475
10475
|
var ge = te.bufferedRequestCount, Te = new Array(ge), D = te.corkedRequestsFree;
|
|
10476
10476
|
D.entry = he;
|
|
10477
10477
|
for (var I = 0, pe = !0; he; )
|
|
10478
10478
|
Te[I] = he, he.isBuf || (pe = !1), he = he.next, I += 1;
|
|
10479
|
-
Te.allBuffers = pe, N(
|
|
10479
|
+
Te.allBuffers = pe, N(G, te, !0, te.length, Te, "", D.finish), te.pendingcb++, te.lastBufferedRequest = null, D.next ? (te.corkedRequestsFree = D.next, D.next = null) : te.corkedRequestsFree = new e(te), te.bufferedRequestCount = 0;
|
|
10480
10480
|
} else {
|
|
10481
10481
|
for (; he; ) {
|
|
10482
10482
|
var Re = he.chunk, Oe = he.encoding, ve = he.callback, Pe = te.objectMode ? 1 : Re.length;
|
|
10483
|
-
if (N(
|
|
10483
|
+
if (N(G, te, !1, Pe, Re, Oe, ve), he = he.next, te.bufferedRequestCount--, te.writing)
|
|
10484
10484
|
break;
|
|
10485
10485
|
}
|
|
10486
10486
|
he === null && (te.lastBufferedRequest = null);
|
|
10487
10487
|
}
|
|
10488
10488
|
te.bufferedRequest = he, te.bufferProcessing = !1;
|
|
10489
10489
|
}
|
|
10490
|
-
P.prototype._write = function(
|
|
10490
|
+
P.prototype._write = function(G, te, he) {
|
|
10491
10491
|
he(new g("_write()"));
|
|
10492
|
-
}, P.prototype._writev = null, P.prototype.end = function(
|
|
10492
|
+
}, P.prototype._writev = null, P.prototype.end = function(G, te, he) {
|
|
10493
10493
|
var ge = this._writableState;
|
|
10494
|
-
return typeof
|
|
10494
|
+
return typeof G == "function" ? (he = G, G = null, te = null) : typeof te == "function" && (he = te, te = null), G != null && this.write(G, te), ge.corked && (ge.corked = 1, this.uncork()), ge.ending || ce(this, ge, he), this;
|
|
10495
10495
|
}, Object.defineProperty(P.prototype, "writableLength", {
|
|
10496
10496
|
enumerable: !1,
|
|
10497
10497
|
get: function() {
|
|
10498
10498
|
return this._writableState.length;
|
|
10499
10499
|
}
|
|
10500
10500
|
});
|
|
10501
|
-
function ne(
|
|
10502
|
-
return
|
|
10501
|
+
function ne(G) {
|
|
10502
|
+
return G.ending && G.length === 0 && G.bufferedRequest === null && !G.finished && !G.writing;
|
|
10503
10503
|
}
|
|
10504
|
-
function Q(
|
|
10505
|
-
|
|
10506
|
-
te.pendingcb--, he && T(
|
|
10504
|
+
function Q(G, te) {
|
|
10505
|
+
G._final(function(he) {
|
|
10506
|
+
te.pendingcb--, he && T(G, he), te.prefinished = !0, G.emit("prefinish"), oe(G, te);
|
|
10507
10507
|
});
|
|
10508
10508
|
}
|
|
10509
|
-
function ae(
|
|
10510
|
-
!te.prefinished && !te.finalCalled && (typeof
|
|
10509
|
+
function ae(G, te) {
|
|
10510
|
+
!te.prefinished && !te.finalCalled && (typeof G._final == "function" && !te.destroyed ? (te.pendingcb++, te.finalCalled = !0, process.nextTick(Q, G, te)) : (te.prefinished = !0, G.emit("prefinish")));
|
|
10511
10511
|
}
|
|
10512
|
-
function oe(
|
|
10512
|
+
function oe(G, te) {
|
|
10513
10513
|
var he = ne(te);
|
|
10514
|
-
if (he && (ae(
|
|
10515
|
-
var ge =
|
|
10516
|
-
(!ge || ge.autoDestroy && ge.endEmitted) &&
|
|
10514
|
+
if (he && (ae(G, te), te.pendingcb === 0 && (te.finished = !0, G.emit("finish"), te.autoDestroy))) {
|
|
10515
|
+
var ge = G._readableState;
|
|
10516
|
+
(!ge || ge.autoDestroy && ge.endEmitted) && G.destroy();
|
|
10517
10517
|
}
|
|
10518
10518
|
return he;
|
|
10519
10519
|
}
|
|
10520
|
-
function ce(
|
|
10521
|
-
te.ending = !0, oe(
|
|
10520
|
+
function ce(G, te, he) {
|
|
10521
|
+
te.ending = !0, oe(G, te), he && (te.finished ? process.nextTick(he) : G.once("finish", he)), te.ended = !0, G.writable = !1;
|
|
10522
10522
|
}
|
|
10523
|
-
function me(
|
|
10524
|
-
var ge =
|
|
10525
|
-
for (
|
|
10523
|
+
function me(G, te, he) {
|
|
10524
|
+
var ge = G.entry;
|
|
10525
|
+
for (G.entry = null; ge; ) {
|
|
10526
10526
|
var Te = ge.callback;
|
|
10527
10527
|
te.pendingcb--, Te(he), ge = ge.next;
|
|
10528
10528
|
}
|
|
10529
|
-
te.corkedRequestsFree.next =
|
|
10529
|
+
te.corkedRequestsFree.next = G;
|
|
10530
10530
|
}
|
|
10531
10531
|
return Object.defineProperty(P.prototype, "destroyed", {
|
|
10532
10532
|
enumerable: !1,
|
|
@@ -10536,8 +10536,8 @@ function require_stream_writable() {
|
|
|
10536
10536
|
set: function(te) {
|
|
10537
10537
|
!this._writableState || (this._writableState.destroyed = te);
|
|
10538
10538
|
}
|
|
10539
|
-
}), P.prototype.destroy = d.destroy, P.prototype._undestroy = d.undestroy, P.prototype._destroy = function(
|
|
10540
|
-
te(
|
|
10539
|
+
}), P.prototype.destroy = d.destroy, P.prototype._undestroy = d.undestroy, P.prototype._destroy = function(G, te) {
|
|
10540
|
+
te(G);
|
|
10541
10541
|
}, _stream_writable;
|
|
10542
10542
|
}
|
|
10543
10543
|
var _stream_duplex, hasRequired_stream_duplex;
|
|
@@ -10885,9 +10885,9 @@ function requireAsync_iterator() {
|
|
|
10885
10885
|
if (this[u])
|
|
10886
10886
|
return Promise.resolve(p(void 0, !0));
|
|
10887
10887
|
if (this[f].destroyed)
|
|
10888
|
-
return new Promise(function(
|
|
10888
|
+
return new Promise(function(z, P) {
|
|
10889
10889
|
process.nextTick(function() {
|
|
10890
|
-
x[l] ? P(x[l]) :
|
|
10890
|
+
x[l] ? P(x[l]) : z(p(void 0, !0));
|
|
10891
10891
|
});
|
|
10892
10892
|
});
|
|
10893
10893
|
var T = this[c], E;
|
|
@@ -10931,9 +10931,9 @@ function requireAsync_iterator() {
|
|
|
10931
10931
|
value: x._readableState.endEmitted,
|
|
10932
10932
|
writable: !0
|
|
10933
10933
|
}), r(w, d, {
|
|
10934
|
-
value: function(O,
|
|
10934
|
+
value: function(O, z) {
|
|
10935
10935
|
var P = T[f].read();
|
|
10936
|
-
P ? (T[c] = null, T[o] = null, T[s] = null, O(p(P, !1))) : (T[o] = O, T[s] =
|
|
10936
|
+
P ? (T[c] = null, T[o] = null, T[s] = null, O(p(P, !1))) : (T[o] = O, T[s] = z);
|
|
10937
10937
|
},
|
|
10938
10938
|
writable: !0
|
|
10939
10939
|
}), w));
|
|
@@ -10943,8 +10943,8 @@ function requireAsync_iterator() {
|
|
|
10943
10943
|
O !== null && (T[c] = null, T[o] = null, T[s] = null, O(E)), T[l] = E;
|
|
10944
10944
|
return;
|
|
10945
10945
|
}
|
|
10946
|
-
var
|
|
10947
|
-
|
|
10946
|
+
var z = T[o];
|
|
10947
|
+
z !== null && (T[c] = null, T[o] = null, T[s] = null, z(p(void 0, !0))), T[u] = !0;
|
|
10948
10948
|
}), x.on("readable", m.bind(null, T)), T;
|
|
10949
10949
|
};
|
|
10950
10950
|
return async_iterator = S, async_iterator;
|
|
@@ -10978,7 +10978,7 @@ function require_stream_readable() {
|
|
|
10978
10978
|
var f = requireBuffer_list(), p = destroy_1, h = state, m = h.getHighWaterMark, g = errorsBrowser.codes, v = g.ERR_INVALID_ARG_TYPE, C = g.ERR_STREAM_PUSH_AFTER_EOF, S = g.ERR_METHOD_NOT_IMPLEMENTED, y = g.ERR_STREAM_UNSHIFT_AFTER_END_EVENT, x, w, T;
|
|
10979
10979
|
inherits_browser.exports(M, a);
|
|
10980
10980
|
var E = p.errorOrDestroy, O = ["error", "close", "destroy", "pause", "resume"];
|
|
10981
|
-
function
|
|
10981
|
+
function z(D, I, pe) {
|
|
10982
10982
|
if (typeof D.prependListener == "function")
|
|
10983
10983
|
return D.prependListener(I, pe);
|
|
10984
10984
|
!D._events || !D._events[I] ? D.on(I, pe) : Array.isArray(D._events[I]) ? D._events[I].unshift(pe) : D._events[I] = [pe, D._events[I]];
|
|
@@ -11083,7 +11083,7 @@ function require_stream_readable() {
|
|
|
11083
11083
|
}
|
|
11084
11084
|
function re(D) {
|
|
11085
11085
|
var I = D._readableState;
|
|
11086
|
-
d("emitReadable_", I.destroyed, I.length, I.ended), !I.destroyed && (I.length || I.ended) && (D.emit("readable"), I.emittedReadable = !1), I.needReadable = !I.flowing && !I.ended && I.length <= I.highWaterMark,
|
|
11086
|
+
d("emitReadable_", I.destroyed, I.length, I.ended), !I.destroyed && (I.length || I.ended) && (D.emit("readable"), I.emittedReadable = !1), I.needReadable = !I.flowing && !I.ended && I.length <= I.highWaterMark, G(D);
|
|
11087
11087
|
}
|
|
11088
11088
|
function ie(D, I) {
|
|
11089
11089
|
I.readingMore || (I.readingMore = !0, process.nextTick(ne, D, I));
|
|
@@ -11135,7 +11135,7 @@ function require_stream_readable() {
|
|
|
11135
11135
|
function qe(kt) {
|
|
11136
11136
|
d("onerror", kt), qt(), D.removeListener("error", qe), r(D, "error") === 0 && E(D, kt);
|
|
11137
11137
|
}
|
|
11138
|
-
|
|
11138
|
+
z(D, "error", qe);
|
|
11139
11139
|
function Ht() {
|
|
11140
11140
|
D.removeListener("finish", _t), qt();
|
|
11141
11141
|
}
|
|
@@ -11152,7 +11152,7 @@ function require_stream_readable() {
|
|
|
11152
11152
|
function Q(D) {
|
|
11153
11153
|
return function() {
|
|
11154
11154
|
var pe = D._readableState;
|
|
11155
|
-
d("pipeOnDrain", pe.awaitDrain), pe.awaitDrain && pe.awaitDrain--, pe.awaitDrain === 0 && r(D, "data") && (pe.flowing = !0,
|
|
11155
|
+
d("pipeOnDrain", pe.awaitDrain), pe.awaitDrain && pe.awaitDrain--, pe.awaitDrain === 0 && r(D, "data") && (pe.flowing = !0, G(D));
|
|
11156
11156
|
};
|
|
11157
11157
|
}
|
|
11158
11158
|
M.prototype.unpipe = function(D) {
|
|
@@ -11199,12 +11199,12 @@ function require_stream_readable() {
|
|
|
11199
11199
|
I.resumeScheduled || (I.resumeScheduled = !0, process.nextTick(me, D, I));
|
|
11200
11200
|
}
|
|
11201
11201
|
function me(D, I) {
|
|
11202
|
-
d("resume", I.reading), I.reading || D.read(0), I.resumeScheduled = !1, D.emit("resume"),
|
|
11202
|
+
d("resume", I.reading), I.reading || D.read(0), I.resumeScheduled = !1, D.emit("resume"), G(D), I.flowing && !I.reading && D.read(0);
|
|
11203
11203
|
}
|
|
11204
11204
|
M.prototype.pause = function() {
|
|
11205
11205
|
return d("call pause flowing=%j", this._readableState.flowing), this._readableState.flowing !== !1 && (d("pause"), this._readableState.flowing = !1, this.emit("pause")), this._readableState.paused = !0, this;
|
|
11206
11206
|
};
|
|
11207
|
-
function
|
|
11207
|
+
function G(D) {
|
|
11208
11208
|
var I = D._readableState;
|
|
11209
11209
|
for (d("flow", I.flowing); I.flowing && D.read() !== null; )
|
|
11210
11210
|
;
|
|
@@ -13617,14 +13617,14 @@ const Image = (e) => {
|
|
|
13617
13617
|
getContext: E
|
|
13618
13618
|
} = T || {};
|
|
13619
13619
|
useDeepCompareEffect(() => {
|
|
13620
|
-
|
|
13620
|
+
z();
|
|
13621
13621
|
}, [l]);
|
|
13622
13622
|
const O = (P) => {
|
|
13623
13623
|
s == null || s({
|
|
13624
13624
|
items: P
|
|
13625
13625
|
});
|
|
13626
13626
|
};
|
|
13627
|
-
async function
|
|
13627
|
+
async function z() {
|
|
13628
13628
|
c(!0), f(void 0);
|
|
13629
13629
|
try {
|
|
13630
13630
|
const P = await readObjectValues({
|
|
@@ -13700,7 +13700,7 @@ const Image = (e) => {
|
|
|
13700
13700
|
h(!1);
|
|
13701
13701
|
},
|
|
13702
13702
|
readOnly: S,
|
|
13703
|
-
postSaveAction:
|
|
13703
|
+
postSaveAction: z
|
|
13704
13704
|
})]
|
|
13705
13705
|
});
|
|
13706
13706
|
}, Indicator = (e) => {
|
|
@@ -13933,43 +13933,43 @@ const transformPlainMany2Ones = ({
|
|
|
13933
13933
|
};
|
|
13934
13934
|
});
|
|
13935
13935
|
c(P);
|
|
13936
|
-
} catch (
|
|
13937
|
-
f(
|
|
13936
|
+
} catch (z) {
|
|
13937
|
+
f(z);
|
|
13938
13938
|
} finally {
|
|
13939
13939
|
h(!1);
|
|
13940
13940
|
}
|
|
13941
13941
|
}
|
|
13942
13942
|
const T = (O) => {
|
|
13943
|
-
const
|
|
13943
|
+
const z = s.map((M) => O.includes(M.id) ? M.operation == "pendingRemove" ? {
|
|
13944
13944
|
...M,
|
|
13945
13945
|
operation: "pendingLink"
|
|
13946
13946
|
} : M : {
|
|
13947
13947
|
id: M.id,
|
|
13948
13948
|
operation: "pendingRemove"
|
|
13949
|
-
}), P =
|
|
13949
|
+
}), P = z.map((M) => M.id);
|
|
13950
13950
|
O.filter((M) => !P.includes(M)).map((M) => {
|
|
13951
|
-
|
|
13951
|
+
z.push({
|
|
13952
13952
|
id: M,
|
|
13953
13953
|
operation: "pendingLink"
|
|
13954
13954
|
});
|
|
13955
|
-
}), x(
|
|
13955
|
+
}), x(z);
|
|
13956
13956
|
}, E = (O) => {
|
|
13957
13957
|
const {
|
|
13958
|
-
label:
|
|
13958
|
+
label: z,
|
|
13959
13959
|
closable: P,
|
|
13960
13960
|
onClose: M
|
|
13961
13961
|
} = O, L = (W) => {
|
|
13962
13962
|
W.preventDefault(), W.stopPropagation();
|
|
13963
13963
|
};
|
|
13964
13964
|
return /* @__PURE__ */ jsx(Tag$1, {
|
|
13965
|
-
color: colorFromString(
|
|
13965
|
+
color: colorFromString(z),
|
|
13966
13966
|
onMouseDown: L,
|
|
13967
13967
|
style: {
|
|
13968
13968
|
margin: "5px"
|
|
13969
13969
|
},
|
|
13970
13970
|
closable: P,
|
|
13971
13971
|
onClose: M,
|
|
13972
|
-
children:
|
|
13972
|
+
children: z
|
|
13973
13973
|
});
|
|
13974
13974
|
};
|
|
13975
13975
|
return d ? /* @__PURE__ */ jsx(Alert, {
|
|
@@ -14356,8 +14356,8 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
|
|
|
14356
14356
|
limit: T,
|
|
14357
14357
|
setLimit: E,
|
|
14358
14358
|
searchParams: O = [],
|
|
14359
|
-
setSearchValues:
|
|
14360
|
-
} = e, [P, M] = useState$1(!1), [L, W] = useState$1(!1), [B, N] = useState$1(), [J, U] = useState$1(1), [H, K] = useState$1(0), [re, ie] = useState$1(), [ne, Q] = useState$1([]), [ae, oe] = useState$1(void 0), ce = useRef(T || DEFAULT_SEARCH_LIMIT$1), me = useRef([]),
|
|
14359
|
+
setSearchValues: z
|
|
14360
|
+
} = e, [P, M] = useState$1(!1), [L, W] = useState$1(!1), [B, N] = useState$1(), [J, U] = useState$1(1), [H, K] = useState$1(0), [re, ie] = useState$1(), [ne, Q] = useState$1([]), [ae, oe] = useState$1(void 0), ce = useRef(T || DEFAULT_SEARCH_LIMIT$1), me = useRef([]), G = useCallback((ve) => {
|
|
14361
14361
|
S == null || S([...ve]), Q([...ve]);
|
|
14362
14362
|
}, []), te = useCallback(() => y || ne, [y, ne]), he = useCallback(async () => {
|
|
14363
14363
|
const ve = await ConnectionProvider.getHandler().nameSearch({
|
|
@@ -14384,12 +14384,12 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
|
|
|
14384
14384
|
sorter: g,
|
|
14385
14385
|
fields: { ...h.fields, ...m.fields }
|
|
14386
14386
|
}) : [...me.current];
|
|
14387
|
-
|
|
14387
|
+
G(er), Zt.length > 0 ? C == null || C(0) : C == null || C(void 0);
|
|
14388
14388
|
} else
|
|
14389
|
-
|
|
14389
|
+
G([]), C == null || C(void 0);
|
|
14390
14390
|
d.current = !0;
|
|
14391
14391
|
}, [
|
|
14392
|
-
|
|
14392
|
+
G,
|
|
14393
14393
|
d,
|
|
14394
14394
|
c,
|
|
14395
14395
|
r,
|
|
@@ -14417,7 +14417,7 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
|
|
|
14417
14417
|
sorter: g,
|
|
14418
14418
|
fields: { ...h.fields, ...m.fields }
|
|
14419
14419
|
}) : [...me.current];
|
|
14420
|
-
if (
|
|
14420
|
+
if (G(Ht), y && Ht.length > 0) {
|
|
14421
14421
|
const qt = Ht.findIndex(
|
|
14422
14422
|
(kt) => w === kt.id
|
|
14423
14423
|
);
|
|
@@ -14430,7 +14430,7 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
|
|
|
14430
14430
|
[
|
|
14431
14431
|
C,
|
|
14432
14432
|
y,
|
|
14433
|
-
|
|
14433
|
+
G,
|
|
14434
14434
|
w,
|
|
14435
14435
|
r,
|
|
14436
14436
|
f,
|
|
@@ -14466,7 +14466,7 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
|
|
|
14466
14466
|
d,
|
|
14467
14467
|
p,
|
|
14468
14468
|
C,
|
|
14469
|
-
|
|
14469
|
+
G,
|
|
14470
14470
|
N,
|
|
14471
14471
|
W,
|
|
14472
14472
|
M,
|
|
@@ -14482,13 +14482,13 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
|
|
|
14482
14482
|
sorter: ve,
|
|
14483
14483
|
fields: { ...h.fields, ...m.fields }
|
|
14484
14484
|
}) : [...me.current];
|
|
14485
|
-
|
|
14485
|
+
G(Pe);
|
|
14486
14486
|
},
|
|
14487
|
-
[v, te, h, m,
|
|
14487
|
+
[v, te, h, m, G]
|
|
14488
14488
|
), I = useCallback(
|
|
14489
14489
|
(ve) => {
|
|
14490
14490
|
const { params: Pe, searchValues: Fe, limit: Ze, offset: Xt } = ve;
|
|
14491
|
-
P || (a == null || a(void 0), o == null || o([]),
|
|
14491
|
+
P || (a == null || a(void 0), o == null || o([]), z == null || z(Fe), s == null || s(Pe), l == null || l(!1), W(!0), N(void 0), U(1), Ze && (ce.current = Ze, E == null || E(Ze)), Xt && K(Xt), Te({
|
|
14492
14492
|
params: Pe,
|
|
14493
14493
|
newOffset: Xt
|
|
14494
14494
|
}));
|
|
@@ -14512,7 +14512,7 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
|
|
|
14512
14512
|
},
|
|
14513
14513
|
[M, T, K, U]
|
|
14514
14514
|
), Re = useCallback(() => {
|
|
14515
|
-
P || (a == null || a(void 0), s == null || s([]),
|
|
14515
|
+
P || (a == null || a(void 0), s == null || s([]), z == null || z({}), N(void 0), K(0), U(1), E == null || E(T || DEFAULT_SEARCH_LIMIT$1));
|
|
14516
14516
|
}, [
|
|
14517
14517
|
P,
|
|
14518
14518
|
a,
|
|
@@ -14530,9 +14530,9 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
|
|
|
14530
14530
|
fields: h.field_parent ? { ...h.fields, [h.field_parent]: {} } : h.fields,
|
|
14531
14531
|
context: f
|
|
14532
14532
|
});
|
|
14533
|
-
return
|
|
14533
|
+
return G([...te(), ...Fe]), getTableItems(getTree(h), Fe);
|
|
14534
14534
|
},
|
|
14535
|
-
[h, r, f, te,
|
|
14535
|
+
[h, r, f, te, G]
|
|
14536
14536
|
);
|
|
14537
14537
|
return {
|
|
14538
14538
|
submit: I,
|
|
@@ -14575,10 +14575,10 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
|
|
|
14575
14575
|
setSelectedRowItems: T,
|
|
14576
14576
|
selectedRowItems: E,
|
|
14577
14577
|
searchTreeNameSearch: O,
|
|
14578
|
-
setSearchTreeNameSearch:
|
|
14578
|
+
setSearchTreeNameSearch: z,
|
|
14579
14579
|
goToResourceId: P,
|
|
14580
14580
|
limit: M
|
|
14581
|
-
} = e, [L, W] = useState$1(!1), [B, N] = useState$1(!1), [J, U] = useState$1(!1), [H, K] = useState$1(!0), [re, ie] = useState$1(!0), [ne, Q] = useState$1([]), [ae, oe] = useState$1(!1), [ce, me] = useState$1([]), [
|
|
14581
|
+
} = e, [L, W] = useState$1(!1), [B, N] = useState$1(!1), [J, U] = useState$1(!1), [H, K] = useState$1(!0), [re, ie] = useState$1(!0), [ne, Q] = useState$1([]), [ae, oe] = useState$1(!1), [ce, me] = useState$1([]), [G, te] = useState$1(!1), [he, ge] = useState$1(!0), [Te, D] = useState$1(), [I, pe] = useState$1({}), [Re, Oe] = useState$1(M !== void 0 ? M : DEFAULT_SEARCH_LIMIT$1), [ve, Pe] = useState$1(o);
|
|
14582
14582
|
useEffect(() => {
|
|
14583
14583
|
m && m.length > 0 && !g && (v == null || v(0), p == null || p(m[0].id));
|
|
14584
14584
|
}, [m]), useEffect(() => {
|
|
@@ -14588,9 +14588,9 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
|
|
|
14588
14588
|
}, [l]), useEffect(() => {
|
|
14589
14589
|
(Te == null ? void 0 : Te.view_id) === a.view_id && l.length > 1 && D(l.filter((Ze) => Ze.view_id !== a.view_id)[0]);
|
|
14590
14590
|
}, [a]);
|
|
14591
|
-
const Fe = () => {
|
|
14591
|
+
const Fe = async () => {
|
|
14592
14592
|
var Ze;
|
|
14593
|
-
(Ze = u.current) == null
|
|
14593
|
+
await ((Ze = u.current) == null ? void 0 : Ze.submitForm());
|
|
14594
14594
|
};
|
|
14595
14595
|
return /* @__PURE__ */ jsx(ActionViewContext.Provider, {
|
|
14596
14596
|
value: {
|
|
@@ -14627,14 +14627,14 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
|
|
|
14627
14627
|
setDuplicatingItem: oe,
|
|
14628
14628
|
setSearchParams: me,
|
|
14629
14629
|
searchParams: ce,
|
|
14630
|
-
searchVisible:
|
|
14630
|
+
searchVisible: G,
|
|
14631
14631
|
setSearchVisible: te,
|
|
14632
14632
|
sorter: S,
|
|
14633
14633
|
setSorter: y,
|
|
14634
14634
|
totalItems: x,
|
|
14635
14635
|
setTotalItems: w,
|
|
14636
14636
|
searchTreeNameSearch: O,
|
|
14637
|
-
setSearchTreeNameSearch:
|
|
14637
|
+
setSearchTreeNameSearch: z,
|
|
14638
14638
|
setGraphIsLoading: ge,
|
|
14639
14639
|
graphIsLoading: he,
|
|
14640
14640
|
previousView: Te,
|
|
@@ -14696,13 +14696,13 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
|
|
|
14696
14696
|
const [m, g] = useState$1(!1), [v, C] = useState$1({
|
|
14697
14697
|
context: {}
|
|
14698
14698
|
});
|
|
14699
|
-
async function S(
|
|
14699
|
+
async function S(z) {
|
|
14700
14700
|
const {
|
|
14701
14701
|
reportData: P,
|
|
14702
14702
|
fields: M,
|
|
14703
14703
|
values: L,
|
|
14704
14704
|
context: W = {}
|
|
14705
|
-
} =
|
|
14705
|
+
} = z, {
|
|
14706
14706
|
context: B,
|
|
14707
14707
|
model: N,
|
|
14708
14708
|
datas: J = {},
|
|
@@ -14740,11 +14740,11 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
|
|
|
14740
14740
|
l.current = !1, clearInterval(s.current), showDialog$8(ne), c(!1);
|
|
14741
14741
|
}
|
|
14742
14742
|
}
|
|
14743
|
-
async function y(
|
|
14743
|
+
async function y(z) {
|
|
14744
14744
|
let P;
|
|
14745
14745
|
try {
|
|
14746
14746
|
if (P = await ConnectionProvider.getHandler().getReport({
|
|
14747
|
-
id:
|
|
14747
|
+
id: z
|
|
14748
14748
|
}), P.state && l.current === !0) {
|
|
14749
14749
|
l.current = !1, clearInterval(s.current), c(!1);
|
|
14750
14750
|
const M = await getMimeType(P.result);
|
|
@@ -14755,7 +14755,7 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
|
|
|
14755
14755
|
}
|
|
14756
14756
|
}
|
|
14757
14757
|
async function x({
|
|
14758
|
-
actionData:
|
|
14758
|
+
actionData: z,
|
|
14759
14759
|
fields: P,
|
|
14760
14760
|
values: M,
|
|
14761
14761
|
context: L,
|
|
@@ -14763,30 +14763,30 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
|
|
|
14763
14763
|
}) {
|
|
14764
14764
|
const {
|
|
14765
14765
|
type: B
|
|
14766
|
-
} =
|
|
14766
|
+
} = z;
|
|
14767
14767
|
return p.current.push(W), B === "ir.actions.report.xml" ? await S({
|
|
14768
|
-
reportData:
|
|
14768
|
+
reportData: z,
|
|
14769
14769
|
fields: P,
|
|
14770
14770
|
values: M,
|
|
14771
14771
|
context: L
|
|
14772
14772
|
}) : B === "ir.actions.act_window" ? await w({
|
|
14773
|
-
actionData:
|
|
14773
|
+
actionData: z,
|
|
14774
14774
|
fields: P,
|
|
14775
14775
|
values: M,
|
|
14776
14776
|
context: L
|
|
14777
14777
|
}) : (showDialog$8(`${B} action not supported`), {});
|
|
14778
14778
|
}
|
|
14779
14779
|
async function w({
|
|
14780
|
-
actionData:
|
|
14780
|
+
actionData: z,
|
|
14781
14781
|
fields: P = {},
|
|
14782
14782
|
values: M = {},
|
|
14783
14783
|
context: L = {}
|
|
14784
14784
|
}) {
|
|
14785
14785
|
var U;
|
|
14786
|
-
let W =
|
|
14787
|
-
|
|
14786
|
+
let W = z;
|
|
14787
|
+
z.res_model || (W = (await ConnectionProvider.getHandler().readObjects({
|
|
14788
14788
|
model: "ir.actions.act_window",
|
|
14789
|
-
ids: [parseInt(
|
|
14789
|
+
ids: [parseInt(z.id)],
|
|
14790
14790
|
context: L
|
|
14791
14791
|
}))[0]);
|
|
14792
14792
|
const N = {
|
|
@@ -14864,20 +14864,20 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
|
|
|
14864
14864
|
}
|
|
14865
14865
|
}
|
|
14866
14866
|
function T({
|
|
14867
|
-
domain:
|
|
14867
|
+
domain: z,
|
|
14868
14868
|
model: P,
|
|
14869
14869
|
formView: M,
|
|
14870
14870
|
context: L,
|
|
14871
14871
|
actionData: W
|
|
14872
14872
|
}) {
|
|
14873
14873
|
m ? E({
|
|
14874
|
-
domain:
|
|
14874
|
+
domain: z,
|
|
14875
14875
|
model: P,
|
|
14876
14876
|
formView: M,
|
|
14877
14877
|
context: L,
|
|
14878
14878
|
actionData: W
|
|
14879
14879
|
}) : (C({
|
|
14880
|
-
domain:
|
|
14880
|
+
domain: z,
|
|
14881
14881
|
model: P,
|
|
14882
14882
|
context: L,
|
|
14883
14883
|
formView: M,
|
|
@@ -14885,7 +14885,7 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
|
|
|
14885
14885
|
}), g(!0));
|
|
14886
14886
|
}
|
|
14887
14887
|
async function E({
|
|
14888
|
-
domain:
|
|
14888
|
+
domain: z,
|
|
14889
14889
|
model: P,
|
|
14890
14890
|
formView: M,
|
|
14891
14891
|
context: L,
|
|
@@ -14898,7 +14898,7 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
|
|
|
14898
14898
|
formView: void 0,
|
|
14899
14899
|
actionData: void 0
|
|
14900
14900
|
}), g(!1), await new Promise((B) => setTimeout(B, 300)), C({
|
|
14901
|
-
domain:
|
|
14901
|
+
domain: z,
|
|
14902
14902
|
model: P,
|
|
14903
14903
|
context: L,
|
|
14904
14904
|
formView: M,
|
|
@@ -14978,9 +14978,9 @@ function Form(e, r) {
|
|
|
14978
14978
|
defaultValues: E,
|
|
14979
14979
|
forcedValues: O = {}
|
|
14980
14980
|
} = e, {
|
|
14981
|
-
t:
|
|
14981
|
+
t: z,
|
|
14982
14982
|
lang: P
|
|
14983
|
-
} = useContext(LocaleContext), [M, L] = useState$1(!1), [W, B] = useState$1(), [N, J] = useState$1(), [U] = Form$3.useForm(), [H, K] = useState$1(), [re, ie] = useState$1(), ne = useContext(FormModalContext), [Q, ae] = useState$1(), [oe, ce] = useState$1(!1), me = useRef(),
|
|
14983
|
+
} = useContext(LocaleContext), [M, L] = useState$1(!1), [W, B] = useState$1(), [N, J] = useState$1(), [U] = Form$3.useForm(), [H, K] = useState$1(), [re, ie] = useState$1(), ne = useContext(FormModalContext), [Q, ae] = useState$1(), [oe, ce] = useState$1(!1), me = useRef(), G = useRef({}), te = useRef({}), he = useRef(!1), ge = useRef(!1), Te = Q < WIDTH_BREAKPOINT, D = useContext(FormContext$2), {
|
|
14984
14984
|
activeId: I,
|
|
14985
14985
|
getPlainValues: pe
|
|
14986
14986
|
} = D || {}, Re = useContext(ActionViewContext), {
|
|
@@ -15084,7 +15084,7 @@ function Form(e, r) {
|
|
|
15084
15084
|
extraValues: E
|
|
15085
15085
|
});
|
|
15086
15086
|
}, or = () => Object.keys(getTouchedValues({
|
|
15087
|
-
source:
|
|
15087
|
+
source: G.current,
|
|
15088
15088
|
target: $r(re),
|
|
15089
15089
|
fields: re
|
|
15090
15090
|
})).length !== 0, $r = (Le) => {
|
|
@@ -15104,7 +15104,7 @@ function Form(e, r) {
|
|
|
15104
15104
|
try {
|
|
15105
15105
|
return await U.validateFields(), !1;
|
|
15106
15106
|
} catch {
|
|
15107
|
-
return message$1.error(
|
|
15107
|
+
return message$1.error(z("fillRequiredFields")), !0;
|
|
15108
15108
|
}
|
|
15109
15109
|
}
|
|
15110
15110
|
const Kr = async () => {
|
|
@@ -15137,7 +15137,7 @@ function Form(e, r) {
|
|
|
15137
15137
|
}), x && (Ae = {
|
|
15138
15138
|
...getValuesForDomain(x),
|
|
15139
15139
|
...Ae
|
|
15140
|
-
}),
|
|
15140
|
+
}), G.current = processValues(Ae, Tt), _r({
|
|
15141
15141
|
values: Ae,
|
|
15142
15142
|
fields: Tt,
|
|
15143
15143
|
reset: !0,
|
|
@@ -15149,7 +15149,7 @@ function Form(e, r) {
|
|
|
15149
15149
|
}), Fe == null || Fe(!1), ve == null || ve(!1), Rr && ce(!0);
|
|
15150
15150
|
};
|
|
15151
15151
|
function en(Le, Ae) {
|
|
15152
|
-
|
|
15152
|
+
G.current[Le] = Ae, ve == null || ve(or());
|
|
15153
15153
|
}
|
|
15154
15154
|
const sn = async () => new Promise(async (Le) => {
|
|
15155
15155
|
or() ? showDialog$6({
|
|
@@ -15223,7 +15223,7 @@ function Form(e, r) {
|
|
|
15223
15223
|
} = Le || {};
|
|
15224
15224
|
if (et()) {
|
|
15225
15225
|
const Tt = getTouchedValues({
|
|
15226
|
-
source:
|
|
15226
|
+
source: G.current,
|
|
15227
15227
|
target: $r(re),
|
|
15228
15228
|
fields: re
|
|
15229
15229
|
});
|
|
@@ -15239,7 +15239,7 @@ function Form(e, r) {
|
|
|
15239
15239
|
...y,
|
|
15240
15240
|
...N == null ? void 0 : N.context
|
|
15241
15241
|
}
|
|
15242
|
-
}),
|
|
15242
|
+
}), G.current = $r(re);
|
|
15243
15243
|
} else {
|
|
15244
15244
|
const Tt = $r(re), Pt = await ConnectionProvider.getHandler().create({
|
|
15245
15245
|
model: a,
|
|
@@ -15253,7 +15253,7 @@ function Form(e, r) {
|
|
|
15253
15253
|
...N == null ? void 0 : N.context
|
|
15254
15254
|
}
|
|
15255
15255
|
});
|
|
15256
|
-
me.current = Pt,
|
|
15256
|
+
me.current = Pt, G.current = Tt;
|
|
15257
15257
|
}
|
|
15258
15258
|
C && await C([et()]), !S && Ae && (_t == null || _t(et(), tr(), xt()));
|
|
15259
15259
|
}, Xr = async (Le) => {
|
|
@@ -15278,7 +15278,7 @@ function Form(e, r) {
|
|
|
15278
15278
|
reset: !0
|
|
15279
15279
|
})), await Yr(), Ae = !0;
|
|
15280
15280
|
} catch (Pt) {
|
|
15281
|
-
ge.current = !1, L(!1), Oe == null || Oe(!1), kt == null || kt(Pt), message$1.error(
|
|
15281
|
+
ge.current = !1, L(!1), Oe == null || Oe(!1), kt == null || kt(Pt), message$1.error(z("errorWhileSavingForm")), B(Pt != null && Pt.message ? Pt.message : Pt);
|
|
15282
15282
|
} finally {
|
|
15283
15283
|
ge.current = !1, Oe == null || Oe(!1), L(!1);
|
|
15284
15284
|
}
|
|
@@ -15601,13 +15601,13 @@ const Form$1 = forwardRef(Form), FormModal = (e) => {
|
|
|
15601
15601
|
res_id: T,
|
|
15602
15602
|
action_type: E,
|
|
15603
15603
|
view_id: O
|
|
15604
|
-
} = c,
|
|
15604
|
+
} = c, z = await ConnectionProvider.getHandler().isShortcutFavorite({
|
|
15605
15605
|
action_id: w,
|
|
15606
15606
|
action_type: E,
|
|
15607
15607
|
view_id: O,
|
|
15608
15608
|
res_id: T || !1
|
|
15609
15609
|
});
|
|
15610
|
-
g(
|
|
15610
|
+
g(z !== !1), z !== !1 && C(z);
|
|
15611
15611
|
}
|
|
15612
15612
|
async function y() {
|
|
15613
15613
|
if (m && v)
|
|
@@ -16070,7 +16070,7 @@ function SearchFilter(e) {
|
|
|
16070
16070
|
const P = new SearchFilter$1(a, r);
|
|
16071
16071
|
P.parse(), C(P._simpleSearchContainer), y(P._advancedSearchContainer);
|
|
16072
16072
|
}, [r, a]);
|
|
16073
|
-
const O = E(),
|
|
16073
|
+
const O = E(), z = (P) => {
|
|
16074
16074
|
const {
|
|
16075
16075
|
limit: M,
|
|
16076
16076
|
offset: L
|
|
@@ -16101,7 +16101,7 @@ function SearchFilter(e) {
|
|
|
16101
16101
|
children: [/* @__PURE__ */ jsxs(Form$3, {
|
|
16102
16102
|
className: "p-3 rounded shadow-md bg-gray-50",
|
|
16103
16103
|
form: T,
|
|
16104
|
-
onFinish:
|
|
16104
|
+
onFinish: z,
|
|
16105
16105
|
initialValues: {
|
|
16106
16106
|
offset: u,
|
|
16107
16107
|
limit: c
|
|
@@ -16358,7 +16358,7 @@ const ProgressBar = (e) => /* @__PURE__ */ jsx(Field$1, {
|
|
|
16358
16358
|
}
|
|
16359
16359
|
});
|
|
16360
16360
|
}
|
|
16361
|
-
function
|
|
16361
|
+
function z(L) {
|
|
16362
16362
|
c(!1), x == null || x({
|
|
16363
16363
|
actionData: {
|
|
16364
16364
|
...L,
|
|
@@ -16391,7 +16391,7 @@ const ProgressBar = (e) => /* @__PURE__ */ jsx(Field$1, {
|
|
|
16391
16391
|
}), /* @__PURE__ */ jsx(Many2oneSuffixModal, {
|
|
16392
16392
|
visible: u,
|
|
16393
16393
|
items: (M = p == null ? void 0 : p.toolbar) == null ? void 0 : M.print,
|
|
16394
|
-
onItemClicked:
|
|
16394
|
+
onItemClicked: z,
|
|
16395
16395
|
onCancel: () => c(!1)
|
|
16396
16396
|
})]
|
|
16397
16397
|
});
|
|
@@ -16509,7 +16509,7 @@ function Tree(e) {
|
|
|
16509
16509
|
childField: S,
|
|
16510
16510
|
rootTree: y = !1,
|
|
16511
16511
|
context: x
|
|
16512
|
-
} = e, [w, T] = useState$1([]), [E, O] = useState$1([]),
|
|
16512
|
+
} = e, [w, T] = useState$1([]), [E, O] = useState$1([]), z = useRef(!1), P = useRef(null), {
|
|
16513
16513
|
t: M
|
|
16514
16514
|
} = useContext(LocaleContext), L = useRef(a), W = useContext(ActionViewContext), {
|
|
16515
16515
|
title: B = void 0,
|
|
@@ -16534,7 +16534,7 @@ function Tree(e) {
|
|
|
16534
16534
|
}, x);
|
|
16535
16535
|
O(Q), P.current.string && B !== P.current.string && (N == null || N(P.current.string));
|
|
16536
16536
|
}, [s]), useEffect(() => {
|
|
16537
|
-
|
|
16537
|
+
z.current = !1;
|
|
16538
16538
|
const Q = getTableItems(P.current, l);
|
|
16539
16539
|
T(Q), L.current = a;
|
|
16540
16540
|
}, [l]);
|
|
@@ -16558,16 +16558,16 @@ function Tree(e) {
|
|
|
16558
16558
|
});
|
|
16559
16559
|
function re() {
|
|
16560
16560
|
var me;
|
|
16561
|
-
const ae = P.current.columns.filter((
|
|
16562
|
-
label:
|
|
16563
|
-
field:
|
|
16561
|
+
const ae = P.current.columns.filter((G) => G.sum !== void 0).map((G) => ({
|
|
16562
|
+
label: G.sum,
|
|
16563
|
+
field: G.id
|
|
16564
16564
|
}));
|
|
16565
16565
|
if (!ae || ae.length === 0)
|
|
16566
16566
|
return null;
|
|
16567
|
-
let oe = [], ce = ((me = p == null ? void 0 : p.selectedRowKeys) == null ? void 0 : me.length) > 0 ? w.filter((
|
|
16568
|
-
return ae.forEach((
|
|
16569
|
-
const te = ce.reduce((he, ge) => ge[
|
|
16570
|
-
oe.push(`${
|
|
16567
|
+
let oe = [], ce = ((me = p == null ? void 0 : p.selectedRowKeys) == null ? void 0 : me.length) > 0 ? w.filter((G) => p == null ? void 0 : p.selectedRowKeys.includes(G.id)) : w;
|
|
16568
|
+
return ae.forEach((G) => {
|
|
16569
|
+
const te = ce.reduce((he, ge) => ge[G.field] && !isNaN(ge[G.field]) ? he + ge[G.field] : he, 0);
|
|
16570
|
+
oe.push(`${G.label}: ${Math.round(te * 100) / 100}`);
|
|
16571
16571
|
}), /* @__PURE__ */ jsx("div", {
|
|
16572
16572
|
className: "p-1 pb-0 pl-2 mt-2 bg-gray-50",
|
|
16573
16573
|
children: oe.join(", ")
|
|
@@ -16623,7 +16623,7 @@ function SearchTree(e, r) {
|
|
|
16623
16623
|
rootTree: p = !1,
|
|
16624
16624
|
parentContext: h = {},
|
|
16625
16625
|
onChangeSelectedRowKeys: m
|
|
16626
|
-
} = e, [g, v] = useState$1(!1), [C, S] = useState$1(!1), y = useRef(!1), [x, w] = useState$1(), [T, E] = useState$1(), [O,
|
|
16626
|
+
} = e, [g, v] = useState$1(!1), [C, S] = useState$1(!1), y = useRef(!1), [x, w] = useState$1(), [T, E] = useState$1(), [O, z] = useState$1(), [P, M] = useState$1(), [L, W] = useState$1(200), B = useRef(), {
|
|
16627
16627
|
height: N
|
|
16628
16628
|
} = useWindowDimensions(), J = useContext(ContentRootContext), {
|
|
16629
16629
|
processAction: U
|
|
@@ -16637,7 +16637,7 @@ function SearchTree(e, r) {
|
|
|
16637
16637
|
searchParams: oe = [],
|
|
16638
16638
|
setSearchParams: ce = void 0,
|
|
16639
16639
|
searchVisible: me = !0,
|
|
16640
|
-
setSearchVisible:
|
|
16640
|
+
setSearchVisible: G = void 0,
|
|
16641
16641
|
sorter: te = void 0,
|
|
16642
16642
|
setSorter: he = void 0,
|
|
16643
16643
|
setTotalItems: ge = void 0,
|
|
@@ -16669,7 +16669,7 @@ function SearchTree(e, r) {
|
|
|
16669
16669
|
setSearchParams: ce,
|
|
16670
16670
|
setSearchValues: pe,
|
|
16671
16671
|
searchParams: oe,
|
|
16672
|
-
setSearchVisible:
|
|
16672
|
+
setSearchVisible: G,
|
|
16673
16673
|
setTreeIsLoading: D,
|
|
16674
16674
|
nameSearch: u,
|
|
16675
16675
|
searchNameGetDoneRef: y,
|
|
@@ -16718,7 +16718,7 @@ function SearchTree(e, r) {
|
|
|
16718
16718
|
model: a,
|
|
16719
16719
|
type: "tree",
|
|
16720
16720
|
context: h
|
|
16721
|
-
})),
|
|
16721
|
+
})), z(Ar), E(Ur);
|
|
16722
16722
|
};
|
|
16723
16723
|
useEffect(() => {
|
|
16724
16724
|
tr();
|
|
@@ -16953,14 +16953,14 @@ const SearchTree$1 = forwardRef(SearchTree), SearchModal = (e) => {
|
|
|
16953
16953
|
context: c,
|
|
16954
16954
|
id: d,
|
|
16955
16955
|
domain: f
|
|
16956
|
-
} = o, p = s && !u ? Config.requiredClass : void 0, [h, m] = useState$1(!1), [g, v] = useState$1(!1), [C, S] = useState$1(!1), [y, x] = useState$1(), w = useRef(!1), [T, E] = useState$1(""), O = useRef(),
|
|
16956
|
+
} = o, p = s && !u ? Config.requiredClass : void 0, [h, m] = useState$1(!1), [g, v] = useState$1(!1), [C, S] = useState$1(!1), [y, x] = useState$1(), w = useRef(!1), [T, E] = useState$1(""), O = useRef(), z = useContext(FormContext$2), {
|
|
16957
16957
|
domain: P,
|
|
16958
16958
|
getValues: M,
|
|
16959
16959
|
getFields: L,
|
|
16960
16960
|
getContext: W,
|
|
16961
16961
|
setOriginalValue: B,
|
|
16962
16962
|
elementHasLostFocus: N
|
|
16963
|
-
} =
|
|
16963
|
+
} = z || {}, J = useRef([]), [U, H] = useState$1([]), K = r && r[0] || void 0, re = r && r[1] || "";
|
|
16964
16964
|
useEffect(() => {
|
|
16965
16965
|
!Array.isArray(r) && r && oe(r);
|
|
16966
16966
|
}, [r]), useEffect(() => {
|
|
@@ -18163,8 +18163,8 @@ function doAlign(e, r, a, o) {
|
|
|
18163
18163
|
var T = flip(s, /[tb]/gi, {
|
|
18164
18164
|
t: "b",
|
|
18165
18165
|
b: "t"
|
|
18166
|
-
}), E = flipOffset(l, 1), O = flipOffset(u, 1),
|
|
18167
|
-
isCompleteFailY(
|
|
18166
|
+
}), E = flipOffset(l, 1), O = flipOffset(u, 1), z = getElFuturePos(g, r, T, E, O);
|
|
18167
|
+
isCompleteFailY(z, g, m) || (p = 1, s = T, l = E, u = O);
|
|
18168
18168
|
}
|
|
18169
18169
|
p && (v = getElFuturePos(g, r, s, l, u), utils.mix(C, v));
|
|
18170
18170
|
var P = isFailX(v, g, m), M = isFailY(v, g, m);
|
|
@@ -18809,8 +18809,8 @@ var Align = function e(r, a) {
|
|
|
18809
18809
|
var o = r.children, s = r.disabled, l = r.target, u = r.align, c = r.onAlign, d = r.monitorWindowResize, f = r.monitorBufferTime, p = f === void 0 ? 0 : f, h = React__default.useRef({}), m = React__default.useRef(), g = React__default.Children.only(o), v = React__default.useRef({});
|
|
18810
18810
|
v.current.disabled = s, v.current.target = l, v.current.align = u, v.current.onAlign = c;
|
|
18811
18811
|
var C = useBuffer(function() {
|
|
18812
|
-
var O = v.current,
|
|
18813
|
-
if (!
|
|
18812
|
+
var O = v.current, z = O.disabled, P = O.target, M = O.align, L = O.onAlign;
|
|
18813
|
+
if (!z && P) {
|
|
18814
18814
|
var W = m.current, B, N = getElement(P), J = getPoint(P);
|
|
18815
18815
|
h.current.element = N, h.current.point = J, h.current.align = M;
|
|
18816
18816
|
var U = document, H = U.activeElement;
|
|
@@ -18825,8 +18825,8 @@ var Align = function e(r, a) {
|
|
|
18825
18825
|
}
|
|
18826
18826
|
});
|
|
18827
18827
|
React__default.useEffect(function() {
|
|
18828
|
-
var O = getElement(l),
|
|
18829
|
-
m.current !== T.current.element && (T.current.cancel(), T.current.element = m.current, T.current.cancel = monitorResize(m.current, y)), (h.current.element !== O || !isSamePoint(h.current.point,
|
|
18828
|
+
var O = getElement(l), z = getPoint(l);
|
|
18829
|
+
m.current !== T.current.element && (T.current.cancel(), T.current.element = m.current, T.current.cancel = monitorResize(m.current, y)), (h.current.element !== O || !isSamePoint(h.current.point, z) || !isEqual_1(h.current.align, u)) && (y(), w.current.element !== O && (w.current.cancel(), w.current.element = O, w.current.cancel = monitorResize(O, y)));
|
|
18830
18830
|
}), React__default.useEffect(function() {
|
|
18831
18831
|
s ? x() : y();
|
|
18832
18832
|
}, [s]);
|
|
@@ -18919,7 +18919,7 @@ const useVisibleStatus = function(e, r) {
|
|
|
18919
18919
|
return [u, l];
|
|
18920
18920
|
};
|
|
18921
18921
|
var PopupInner = /* @__PURE__ */ React$n.forwardRef(function(e, r) {
|
|
18922
|
-
var a = e.visible, o = e.prefixCls, s = e.className, l = e.style, u = e.children, c = e.zIndex, d = e.stretch, f = e.destroyPopupOnHide, p = e.forceRender, h = e.align, m = e.point, g = e.getRootDomNode, v = e.getClassNameFromAlign, C = e.onAlign, S = e.onMouseEnter, y = e.onMouseLeave, x = e.onMouseDown, w = e.onTouchStart, T = e.onClick, E = useRef(), O = useRef(),
|
|
18922
|
+
var a = e.visible, o = e.prefixCls, s = e.className, l = e.style, u = e.children, c = e.zIndex, d = e.stretch, f = e.destroyPopupOnHide, p = e.forceRender, h = e.align, m = e.point, g = e.getRootDomNode, v = e.getClassNameFromAlign, C = e.onAlign, S = e.onMouseEnter, y = e.onMouseLeave, x = e.onMouseDown, w = e.onTouchStart, T = e.onClick, E = useRef(), O = useRef(), z = useState$1(), P = _slicedToArray(z, 2), M = P[0], L = P[1], W = useStretchStyle(d), B = _slicedToArray(W, 2), N = B[0], J = B[1];
|
|
18923
18923
|
function U() {
|
|
18924
18924
|
d && J(g());
|
|
18925
18925
|
}
|
|
@@ -18930,7 +18930,7 @@ var PopupInner = /* @__PURE__ */ React$n.forwardRef(function(e, r) {
|
|
|
18930
18930
|
function me() {
|
|
18931
18931
|
return m || g;
|
|
18932
18932
|
}
|
|
18933
|
-
function
|
|
18933
|
+
function G() {
|
|
18934
18934
|
var pe;
|
|
18935
18935
|
(pe = E.current) === null || pe === void 0 || pe.forceAlign();
|
|
18936
18936
|
}
|
|
@@ -18941,7 +18941,7 @@ var PopupInner = /* @__PURE__ */ React$n.forwardRef(function(e, r) {
|
|
|
18941
18941
|
}), re === "align" && (C == null || C(pe, Re));
|
|
18942
18942
|
}
|
|
18943
18943
|
useLayoutEffect$2(function() {
|
|
18944
|
-
re === "align" && (ae < 3 ?
|
|
18944
|
+
re === "align" && (ae < 3 ? G() : ie(function() {
|
|
18945
18945
|
var pe;
|
|
18946
18946
|
(pe = ce.current) === null || pe === void 0 || pe.call(ce);
|
|
18947
18947
|
}));
|
|
@@ -18962,7 +18962,7 @@ var PopupInner = /* @__PURE__ */ React$n.forwardRef(function(e, r) {
|
|
|
18962
18962
|
!he.motionName && re === "motion" && ie();
|
|
18963
18963
|
}, [he.motionName, re]), React$n.useImperativeHandle(r, function() {
|
|
18964
18964
|
return {
|
|
18965
|
-
forceAlign:
|
|
18965
|
+
forceAlign: G,
|
|
18966
18966
|
getElement: function() {
|
|
18967
18967
|
return O.current;
|
|
18968
18968
|
}
|
|
@@ -19148,7 +19148,7 @@ function generateTrigger(e) {
|
|
|
19148
19148
|
var f = [], p = u.props, h = p.popupPlacement, m = p.builtinPlacements, g = p.prefixCls, v = p.alignPoint, C = p.getPopupClassNameFromAlign;
|
|
19149
19149
|
return h && m && f.push(getAlignPopupClassName(m, g, d, v)), C && f.push(C(d)), f.join(" ");
|
|
19150
19150
|
}), _defineProperty$1(_assertThisInitialized(u), "getComponent", function() {
|
|
19151
|
-
var d = u.props, f = d.prefixCls, p = d.destroyPopupOnHide, h = d.popupClassName, m = d.onPopupAlign, g = d.popupMotion, v = d.popupAnimation, C = d.popupTransitionName, S = d.popupStyle, y = d.mask, x = d.maskAnimation, w = d.maskTransitionName, T = d.maskMotion, E = d.zIndex, O = d.popup,
|
|
19151
|
+
var d = u.props, f = d.prefixCls, p = d.destroyPopupOnHide, h = d.popupClassName, m = d.onPopupAlign, g = d.popupMotion, v = d.popupAnimation, C = d.popupTransitionName, S = d.popupStyle, y = d.mask, x = d.maskAnimation, w = d.maskTransitionName, T = d.maskMotion, E = d.zIndex, O = d.popup, z = d.stretch, P = d.alignPoint, M = d.mobile, L = d.forceRender, W = d.onPopupClick, B = u.state, N = B.popupVisible, J = B.point, U = u.getPopupAlign(), H = {};
|
|
19152
19152
|
return u.isMouseEnterToShow() && (H.onMouseEnter = u.onPopupMouseEnter), u.isMouseLeaveToHide() && (H.onMouseLeave = u.onPopupMouseLeave), H.onMouseDown = u.onPopupMouseDown, H.onTouchStart = u.onPopupMouseDown, /* @__PURE__ */ jsx(Popup$1, {
|
|
19153
19153
|
prefixCls: f,
|
|
19154
19154
|
destroyPopupOnHide: p,
|
|
@@ -19160,7 +19160,7 @@ function generateTrigger(e) {
|
|
|
19160
19160
|
animation: v,
|
|
19161
19161
|
getClassNameFromAlign: u.getPopupClassNameFromAlign,
|
|
19162
19162
|
...H,
|
|
19163
|
-
stretch:
|
|
19163
|
+
stretch: z,
|
|
19164
19164
|
getRootDomNode: u.getRootDomNode,
|
|
19165
19165
|
style: S,
|
|
19166
19166
|
mask: y,
|
|
@@ -19502,7 +19502,7 @@ function Popup(e) {
|
|
|
19502
19502
|
});
|
|
19503
19503
|
}
|
|
19504
19504
|
var Tooltip = function e(r, a) {
|
|
19505
|
-
var o = r.overlayClassName, s = r.trigger, l = s === void 0 ? ["hover"] : s, u = r.mouseEnterDelay, c = u === void 0 ? 0 : u, d = r.mouseLeaveDelay, f = d === void 0 ? 0.1 : d, p = r.overlayStyle, h = r.prefixCls, m = h === void 0 ? "rc-tooltip" : h, g = r.children, v = r.onVisibleChange, C = r.afterVisibleChange, S = r.transitionName, y = r.animation, x = r.motion, w = r.placement, T = w === void 0 ? "right" : w, E = r.align, O = E === void 0 ? {} : E,
|
|
19505
|
+
var o = r.overlayClassName, s = r.trigger, l = s === void 0 ? ["hover"] : s, u = r.mouseEnterDelay, c = u === void 0 ? 0 : u, d = r.mouseLeaveDelay, f = d === void 0 ? 0.1 : d, p = r.overlayStyle, h = r.prefixCls, m = h === void 0 ? "rc-tooltip" : h, g = r.children, v = r.onVisibleChange, C = r.afterVisibleChange, S = r.transitionName, y = r.animation, x = r.motion, w = r.placement, T = w === void 0 ? "right" : w, E = r.align, O = E === void 0 ? {} : E, z = r.destroyTooltipOnHide, P = z === void 0 ? !1 : z, M = r.defaultVisible, L = r.getTooltipContainer, W = r.overlayInnerStyle, B = r.arrowContent, N = r.overlay, J = r.id, U = r.showArrow, H = _objectWithoutProperties(r, ["overlayClassName", "trigger", "mouseEnterDelay", "mouseLeaveDelay", "overlayStyle", "prefixCls", "children", "onVisibleChange", "afterVisibleChange", "transitionName", "animation", "motion", "placement", "align", "destroyTooltipOnHide", "defaultVisible", "getTooltipContainer", "overlayInnerStyle", "arrowContent", "overlay", "id", "showArrow"]), K = useRef(null);
|
|
19506
19506
|
useImperativeHandle(a, function() {
|
|
19507
19507
|
return K.current;
|
|
19508
19508
|
});
|
|
@@ -19776,24 +19776,24 @@ placements$1.default = _default$1;
|
|
|
19776
19776
|
Object.defineProperty(e, "__esModule", {
|
|
19777
19777
|
value: !0
|
|
19778
19778
|
}), e.default = void 0;
|
|
19779
|
-
var o = a(defineProperty.exports), s = a(slicedToArray.exports), l = a(_extends$1.exports), u = a(classnames.exports), c = a(require$$6), d = a(useMergedState$1), f = r(React__default), p = requireConfigProvider(), h = colors, m = motion, g = a(placements$2), v = reactNode, C = a(warning$4), S = function(O,
|
|
19779
|
+
var o = a(defineProperty.exports), s = a(slicedToArray.exports), l = a(_extends$1.exports), u = a(classnames.exports), c = a(require$$6), d = a(useMergedState$1), f = r(React__default), p = requireConfigProvider(), h = colors, m = motion, g = a(placements$2), v = reactNode, C = a(warning$4), S = function(O, z) {
|
|
19780
19780
|
var P = {};
|
|
19781
19781
|
for (var M in O)
|
|
19782
|
-
Object.prototype.hasOwnProperty.call(O, M) &&
|
|
19782
|
+
Object.prototype.hasOwnProperty.call(O, M) && z.indexOf(M) < 0 && (P[M] = O[M]);
|
|
19783
19783
|
if (O != null && typeof Object.getOwnPropertySymbols == "function")
|
|
19784
19784
|
for (var L = 0, M = Object.getOwnPropertySymbols(O); L < M.length; L++)
|
|
19785
|
-
|
|
19785
|
+
z.indexOf(M[L]) < 0 && Object.prototype.propertyIsEnumerable.call(O, M[L]) && (P[M[L]] = O[M[L]]);
|
|
19786
19786
|
return P;
|
|
19787
|
-
}, y = function(
|
|
19788
|
-
var M = {}, L = (0, l.default)({},
|
|
19787
|
+
}, y = function(z, P) {
|
|
19788
|
+
var M = {}, L = (0, l.default)({}, z);
|
|
19789
19789
|
return P.forEach(function(W) {
|
|
19790
|
-
|
|
19790
|
+
z && W in z && (M[W] = z[W], delete L[W]);
|
|
19791
19791
|
}), {
|
|
19792
19792
|
picked: M,
|
|
19793
19793
|
omitted: L
|
|
19794
19794
|
};
|
|
19795
19795
|
}, x = new RegExp("^(".concat(h.PresetColorTypes.join("|"), ")(-inverse)?$"));
|
|
19796
|
-
function w(O,
|
|
19796
|
+
function w(O, z) {
|
|
19797
19797
|
var P = O.type;
|
|
19798
19798
|
if ((P.__ANT_BUTTON === !0 || O.type === "button") && O.props.disabled || P.__ANT_SWITCH === !0 && (O.props.disabled || O.props.loading) || P.__ANT_RADIO === !0 && O.props.disabled) {
|
|
19799
19799
|
var M = y(O.props.style, ["position", "left", "right", "top", "bottom", "float", "display", "zIndex"]), L = M.picked, W = M.omitted, B = (0, l.default)((0, l.default)({
|
|
@@ -19809,12 +19809,12 @@ placements$1.default = _default$1;
|
|
|
19809
19809
|
});
|
|
19810
19810
|
return /* @__PURE__ */ f.createElement("span", {
|
|
19811
19811
|
style: B,
|
|
19812
|
-
className: (0, u.default)(O.props.className, "".concat(
|
|
19812
|
+
className: (0, u.default)(O.props.className, "".concat(z, "-disabled-compatible-wrapper"))
|
|
19813
19813
|
}, J);
|
|
19814
19814
|
}
|
|
19815
19815
|
return O;
|
|
19816
19816
|
}
|
|
19817
|
-
var T = /* @__PURE__ */ f.forwardRef(function(O,
|
|
19817
|
+
var T = /* @__PURE__ */ f.forwardRef(function(O, z) {
|
|
19818
19818
|
var P, M = f.useContext(p.ConfigContext), L = M.getPopupContainer, W = M.getPrefixCls, B = M.direction;
|
|
19819
19819
|
process.env.NODE_ENV !== "production" && [["visible", "open"], ["defaultVisible", "defaultOpen"], ["onVisibleChange", "onOpenChange"], ["afterVisibleChange", "afterOpenChange"]].forEach(function(qt) {
|
|
19820
19820
|
var kt = (0, s.default)(qt, 2), et = kt[0], Yt = kt[1];
|
|
@@ -19850,7 +19850,7 @@ placements$1.default = _default$1;
|
|
|
19850
19850
|
}, Q = function() {
|
|
19851
19851
|
var kt = O.title, et = O.overlay;
|
|
19852
19852
|
return kt === 0 ? kt : et || kt || "";
|
|
19853
|
-
}, ae = O.getPopupContainer, oe = O.placement, ce = oe === void 0 ? "top" : oe, me = O.mouseEnterDelay,
|
|
19853
|
+
}, ae = O.getPopupContainer, oe = O.placement, ce = oe === void 0 ? "top" : oe, me = O.mouseEnterDelay, G = me === void 0 ? 0.1 : me, te = O.mouseLeaveDelay, he = te === void 0 ? 0.1 : te, ge = S(O, ["getPopupContainer", "placement", "mouseEnterDelay", "mouseLeaveDelay"]), Te = O.prefixCls, D = O.openClassName, I = O.getTooltipContainer, pe = O.overlayClassName, Re = O.color, Oe = O.overlayInnerStyle, ve = O.children, Pe = W("tooltip", Te), Fe = W(), Ze = U;
|
|
19854
19854
|
!("open" in O) && !("visible" in O) && K() && (Ze = !1);
|
|
19855
19855
|
var Xt = w((0, v.isValidElement)(ve) && !(0, v.isFragment)(ve) ? ve : /* @__PURE__ */ f.createElement("span", null, ve), Pe), Zt = Xt.props, er = !Zt.className || typeof Zt.className == "string" ? (0, u.default)(Zt.className, (0, o.default)({}, D || "".concat(Pe, "-open"), !0)) : Zt.className, qe = (0, u.default)(pe, (P = {}, (0, o.default)(P, "".concat(Pe, "-rtl"), B === "rtl"), (0, o.default)(P, "".concat(Pe, "-").concat(Re), Re && x.test(Re)), P)), Ht = Oe, _t = {};
|
|
19856
19856
|
return Re && !x.test(Re) && (Ht = (0, l.default)((0, l.default)({}, Oe), {
|
|
@@ -19859,12 +19859,12 @@ placements$1.default = _default$1;
|
|
|
19859
19859
|
"--antd-arrow-background-color": Re
|
|
19860
19860
|
}), /* @__PURE__ */ f.createElement(c.default, (0, l.default)({}, ge, {
|
|
19861
19861
|
placement: ce,
|
|
19862
|
-
mouseEnterDelay:
|
|
19862
|
+
mouseEnterDelay: G,
|
|
19863
19863
|
mouseLeaveDelay: he,
|
|
19864
19864
|
prefixCls: Pe,
|
|
19865
19865
|
overlayClassName: qe,
|
|
19866
19866
|
getTooltipContainer: ae || I || L,
|
|
19867
|
-
ref:
|
|
19867
|
+
ref: z,
|
|
19868
19868
|
builtinPlacements: ie(),
|
|
19869
19869
|
overlay: Q(),
|
|
19870
19870
|
visible: Ze,
|
|
@@ -19926,10 +19926,10 @@ EnterOutlined$2.default = _default;
|
|
|
19926
19926
|
value: !0
|
|
19927
19927
|
}), e.default = void 0;
|
|
19928
19928
|
var o = a(defineProperty.exports), s = a(slicedToArray.exports), l = a(EnterOutlined$3.exports), u = a(classnames.exports), c = a(KeyCode$1), d = r(React__default), f = a(TextArea$2), p = reactNode, h = function(v) {
|
|
19929
|
-
var C = v.prefixCls, S = v["aria-label"], y = v.className, x = v.style, w = v.direction, T = v.maxLength, E = v.autoSize, O = E === void 0 ? !0 : E,
|
|
19929
|
+
var C = v.prefixCls, S = v["aria-label"], y = v.className, x = v.style, w = v.direction, T = v.maxLength, E = v.autoSize, O = E === void 0 ? !0 : E, z = v.value, P = v.onSave, M = v.onCancel, L = v.onEnd, W = v.component, B = v.enterIcon, N = B === void 0 ? /* @__PURE__ */ d.createElement(l.default, null) : B, J = d.useRef(null), U = d.useRef(!1), H = d.useRef(), K = d.useState(z), re = (0, s.default)(K, 2), ie = re[0], ne = re[1];
|
|
19930
19930
|
d.useEffect(function() {
|
|
19931
|
-
ne(
|
|
19932
|
-
}, [
|
|
19931
|
+
ne(z);
|
|
19932
|
+
}, [z]), d.useEffect(function() {
|
|
19933
19933
|
if (J.current && J.current.resizableTextArea) {
|
|
19934
19934
|
var Te = J.current.resizableTextArea.textArea;
|
|
19935
19935
|
Te.focus();
|
|
@@ -19949,7 +19949,7 @@ EnterOutlined$2.default = _default;
|
|
|
19949
19949
|
U.current || (H.current = I);
|
|
19950
19950
|
}, me = function() {
|
|
19951
19951
|
P(ie.trim());
|
|
19952
|
-
},
|
|
19952
|
+
}, G = function(D) {
|
|
19953
19953
|
var I = D.keyCode, pe = D.ctrlKey, Re = D.altKey, Oe = D.metaKey, ve = D.shiftKey;
|
|
19954
19954
|
H.current === I && !U.current && !pe && !Re && !Oe && !ve && (I === c.default.ENTER ? (me(), L == null || L()) : I === c.default.ESC && M());
|
|
19955
19955
|
}, te = function() {
|
|
@@ -19964,7 +19964,7 @@ EnterOutlined$2.default = _default;
|
|
|
19964
19964
|
value: ie,
|
|
19965
19965
|
onChange: Q,
|
|
19966
19966
|
onKeyDown: ce,
|
|
19967
|
-
onKeyUp:
|
|
19967
|
+
onKeyUp: G,
|
|
19968
19968
|
onCompositionStart: ae,
|
|
19969
19969
|
onCompositionEnd: oe,
|
|
19970
19970
|
onBlur: te,
|
|
@@ -20020,7 +20020,7 @@ var Typography = {};
|
|
|
20020
20020
|
v.indexOf(S[y]) < 0 && Object.prototype.propertyIsEnumerable.call(g, S[y]) && (C[S[y]] = g[S[y]]);
|
|
20021
20021
|
return C;
|
|
20022
20022
|
}, h = /* @__PURE__ */ c.forwardRef(function(g, v) {
|
|
20023
|
-
var C = g.prefixCls, S = g.component, y = S === void 0 ? "article" : S, x = g.className, w = g.setContentRef, T = g.children, E = g.direction, O = p(g, ["prefixCls", "component", "className", "setContentRef", "children", "direction"]),
|
|
20023
|
+
var C = g.prefixCls, S = g.component, y = S === void 0 ? "article" : S, x = g.className, w = g.setContentRef, T = g.children, E = g.direction, O = p(g, ["prefixCls", "component", "className", "setContentRef", "children", "direction"]), z = c.useContext(d.ConfigContext), P = z.getPrefixCls, M = z.direction, L = E != null ? E : M, W = v;
|
|
20024
20024
|
w && (process.env.NODE_ENV !== "production" && (0, f.default)(!1, "Typography", "`setContentRef` is deprecated. Please use `ref` instead."), W = (0, u.composeRef)(v, w));
|
|
20025
20025
|
var B = P("typography", C), N = (0, l.default)(B, (0, s.default)({}, "".concat(B, "-rtl"), L === "rtl"), x);
|
|
20026
20026
|
return /* @__PURE__ */ c.createElement(y, (0, o.default)({
|
|
@@ -20050,10 +20050,10 @@ var Ellipsis = {};
|
|
|
20050
20050
|
}), T;
|
|
20051
20051
|
}
|
|
20052
20052
|
function h(w, T) {
|
|
20053
|
-
for (var E = 0, O = [],
|
|
20053
|
+
for (var E = 0, O = [], z = 0; z < w.length; z += 1) {
|
|
20054
20054
|
if (E === T)
|
|
20055
20055
|
return O;
|
|
20056
|
-
var P = w[
|
|
20056
|
+
var P = w[z], M = f(P), L = M ? String(P).length : 1, W = E + L;
|
|
20057
20057
|
if (W > T) {
|
|
20058
20058
|
var B = T - E;
|
|
20059
20059
|
return O.push(String(P).slice(0, B)), O;
|
|
@@ -20063,18 +20063,18 @@ var Ellipsis = {};
|
|
|
20063
20063
|
return w;
|
|
20064
20064
|
}
|
|
20065
20065
|
var m = 0, g = 1, v = 2, C = 3, S = 4, y = function(T) {
|
|
20066
|
-
var E = T.enabledMeasure, O = T.children,
|
|
20067
|
-
return (0, u.default)(
|
|
20068
|
-
}, [
|
|
20066
|
+
var E = T.enabledMeasure, O = T.children, z = T.text, P = T.width, M = T.fontSize, L = T.rows, W = T.onEllipsis, B = d.useState([0, 0, 0]), N = (0, s.default)(B, 2), J = (0, s.default)(N[0], 3), U = J[0], H = J[1], K = J[2], re = N[1], ie = d.useState(m), ne = (0, s.default)(ie, 2), Q = ne[0], ae = ne[1], oe = d.useState(0), ce = (0, s.default)(oe, 2), me = ce[0], G = ce[1], te = d.useRef(null), he = d.useRef(null), ge = d.useMemo(function() {
|
|
20067
|
+
return (0, u.default)(z);
|
|
20068
|
+
}, [z]), Te = d.useMemo(function() {
|
|
20069
20069
|
return p(ge);
|
|
20070
20070
|
}, [ge]), D = d.useMemo(function() {
|
|
20071
20071
|
return !E || Q !== C ? O(ge, !1) : O(h(ge, H), H < Te);
|
|
20072
20072
|
}, [E, Q, O, ge, H, Te]);
|
|
20073
20073
|
(0, c.default)(function() {
|
|
20074
20074
|
E && P && M && Te && (ae(g), re([0, Math.ceil(Te / 2), Te]));
|
|
20075
|
-
}, [E, P, M,
|
|
20075
|
+
}, [E, P, M, z, Te, L]), (0, c.default)(function() {
|
|
20076
20076
|
var Oe;
|
|
20077
|
-
Q === g &&
|
|
20077
|
+
Q === g && G(((Oe = te.current) === null || Oe === void 0 ? void 0 : Oe.offsetHeight) || 0);
|
|
20078
20078
|
}, [Q]), (0, c.default)(function() {
|
|
20079
20079
|
var Oe, ve;
|
|
20080
20080
|
if (me) {
|
|
@@ -20145,7 +20145,7 @@ var EllipsisTooltip = {};
|
|
|
20145
20145
|
Object.defineProperty(e, "__esModule", {
|
|
20146
20146
|
value: !0
|
|
20147
20147
|
}), e.default = void 0;
|
|
20148
|
-
var o = a(defineProperty.exports), s = a(_extends$1.exports), l = a(_typeof$3.exports), u = a(slicedToArray.exports), c = a(CheckOutlined$3.exports), d = a(CopyOutlined$3.exports), f = a(EditOutlined$3.exports), p = a(classnames.exports), h = a(copyToClipboard), m = a(require$$11), g = a(toArray$2), v = a(useLayoutEffect$1), C = a(useMergedState$1), S = a(omit$2), y = ref, x = r(React__default), w = requireConfigProvider(), T = LocaleReceiver, E = a(transButton), O = styleChecker$1,
|
|
20148
|
+
var o = a(defineProperty.exports), s = a(_extends$1.exports), l = a(_typeof$3.exports), u = a(slicedToArray.exports), c = a(CheckOutlined$3.exports), d = a(CopyOutlined$3.exports), f = a(EditOutlined$3.exports), p = a(classnames.exports), h = a(copyToClipboard), m = a(require$$11), g = a(toArray$2), v = a(useLayoutEffect$1), C = a(useMergedState$1), S = a(omit$2), y = ref, x = r(React__default), w = requireConfigProvider(), T = LocaleReceiver, E = a(transButton), O = styleChecker$1, z = a(tooltip), P = a(Editable), M = a(useMergedConfig), L = a(useUpdatedEffect), W = a(Typography), B = a(Ellipsis), N = a(EllipsisTooltip), J = function(Q, ae) {
|
|
20149
20149
|
var oe = {};
|
|
20150
20150
|
for (var ce in Q)
|
|
20151
20151
|
Object.prototype.hasOwnProperty.call(Q, ce) && ae.indexOf(ce) < 0 && (oe[ce] = Q[ce]);
|
|
@@ -20155,11 +20155,11 @@ var EllipsisTooltip = {};
|
|
|
20155
20155
|
return oe;
|
|
20156
20156
|
};
|
|
20157
20157
|
function U(Q, ae) {
|
|
20158
|
-
var oe = Q.mark, ce = Q.code, me = Q.underline,
|
|
20158
|
+
var oe = Q.mark, ce = Q.code, me = Q.underline, G = Q.delete, te = Q.strong, he = Q.keyboard, ge = Q.italic, Te = ae;
|
|
20159
20159
|
function D(I, pe) {
|
|
20160
20160
|
!I || (Te = /* @__PURE__ */ x.createElement(pe, {}, Te));
|
|
20161
20161
|
}
|
|
20162
|
-
return D(te, "strong"), D(me, "u"), D(
|
|
20162
|
+
return D(te, "strong"), D(me, "u"), D(G, "del"), D(ce, "code"), D(oe, "mark"), D(he, "kbd"), D(ge, "i"), Te;
|
|
20163
20163
|
}
|
|
20164
20164
|
function H(Q, ae, oe) {
|
|
20165
20165
|
return Q === !0 || Q === void 0 ? ae : Q || oe && ae;
|
|
@@ -20168,7 +20168,7 @@ var EllipsisTooltip = {};
|
|
|
20168
20168
|
return Q === !1 ? [!1, !1] : Array.isArray(Q) ? Q : [Q];
|
|
20169
20169
|
}
|
|
20170
20170
|
var re = "...", ie = /* @__PURE__ */ x.forwardRef(function(Q, ae) {
|
|
20171
|
-
var oe, ce, me,
|
|
20171
|
+
var oe, ce, me, G = Q.prefixCls, te = Q.className, he = Q.style, ge = Q.type, Te = Q.disabled, D = Q.children, I = Q.ellipsis, pe = Q.editable, Re = Q.copyable, Oe = Q.component, ve = Q.title, Pe = J(Q, ["prefixCls", "className", "style", "type", "disabled", "children", "ellipsis", "editable", "copyable", "component", "title"]), Fe = x.useContext(w.ConfigContext), Ze = Fe.getPrefixCls, Xt = Fe.direction, Zt = (0, T.useLocaleReceiver)("Text")[0], er = x.useRef(null), qe = x.useRef(null), Ht = Ze("typography", G), _t = (0, S.default)(Pe, ["mark", "code", "delete", "underline", "strong", "keyboard", "italic"]), qt = (0, M.default)(pe), kt = (0, u.default)(qt, 2), et = kt[0], Yt = kt[1], tr = (0, C.default)(!1, {
|
|
20172
20172
|
value: Yt.editing
|
|
20173
20173
|
}), it = (0, u.default)(tr, 2), xt = it[0], Qt = it[1], Jt = Yt.triggerType, rr = Jt === void 0 ? ["icon"] : Jt, or = function(jt) {
|
|
20174
20174
|
var ar;
|
|
@@ -20290,7 +20290,7 @@ var EllipsisTooltip = {};
|
|
|
20290
20290
|
}, ca = function() {
|
|
20291
20291
|
if (!!et) {
|
|
20292
20292
|
var jt = Yt.icon, ar = Yt.tooltip, Gr = (0, g.default)(ar)[0] || Zt.edit, tn = typeof Gr == "string" ? Gr : "";
|
|
20293
|
-
return rr.includes("icon") ? /* @__PURE__ */ x.createElement(
|
|
20293
|
+
return rr.includes("icon") ? /* @__PURE__ */ x.createElement(z.default, {
|
|
20294
20294
|
key: "edit",
|
|
20295
20295
|
title: ar === !1 ? "" : Gr
|
|
20296
20296
|
}, /* @__PURE__ */ x.createElement(E.default, {
|
|
@@ -20305,7 +20305,7 @@ var EllipsisTooltip = {};
|
|
|
20305
20305
|
}, da = function() {
|
|
20306
20306
|
if (!!Yr) {
|
|
20307
20307
|
var jt = en.tooltips, ar = en.icon, Gr = K(jt), tn = K(ar), vn = _r ? H(Gr[1], Zt.copied) : H(Gr[0], Zt.copy), ha = _r ? Zt.copied : Zt.copy, ma = typeof vn == "string" ? vn : ha;
|
|
20308
|
-
return /* @__PURE__ */ x.createElement(
|
|
20308
|
+
return /* @__PURE__ */ x.createElement(z.default, {
|
|
20309
20309
|
key: "copy",
|
|
20310
20310
|
title: vn
|
|
20311
20311
|
}, /* @__PURE__ */ x.createElement(E.default, {
|
|
@@ -20333,7 +20333,7 @@ var EllipsisTooltip = {};
|
|
|
20333
20333
|
isEllipsis: zn
|
|
20334
20334
|
}, /* @__PURE__ */ x.createElement(W.default, (0, s.default)({
|
|
20335
20335
|
className: (0, p.default)((jt = {}, (0, o.default)(jt, "".concat(Ht, "-").concat(ge), ge), (0, o.default)(jt, "".concat(Ht, "-disabled"), Te), (0, o.default)(jt, "".concat(Ht, "-ellipsis"), ln), (0, o.default)(jt, "".concat(Ht, "-single-line"), rn && pn === 1), (0, o.default)(jt, "".concat(Ht, "-ellipsis-single-line"), Jn), (0, o.default)(jt, "".concat(Ht, "-ellipsis-multiple-line"), In), jt), te),
|
|
20336
|
-
prefixCls:
|
|
20336
|
+
prefixCls: G,
|
|
20337
20337
|
style: (0, s.default)((0, s.default)({}, he), {
|
|
20338
20338
|
WebkitLineClamp: In ? pn : void 0
|
|
20339
20339
|
}),
|
|
@@ -20401,7 +20401,7 @@ const Title$2 = /* @__PURE__ */ getDefaultExportFromCjs(Title$3), {
|
|
|
20401
20401
|
field: f,
|
|
20402
20402
|
operator: p,
|
|
20403
20403
|
manualIds: h
|
|
20404
|
-
} = e, [m, g] = useState$1(!1), [v, C] = useState$1(), [S, y] = useState$1(), [x, w] = useState$1(), [T, E] = useState$1(0), [O,
|
|
20404
|
+
} = e, [m, g] = useState$1(!1), [v, C] = useState$1(), [S, y] = useState$1(), [x, w] = useState$1(), [T, E] = useState$1(0), [O, z] = useState$1(0), [P, M] = useState$1(), [L, W] = useState$1(), [B, N] = useState$1();
|
|
20405
20405
|
useEffect(() => {
|
|
20406
20406
|
H();
|
|
20407
20407
|
}, [r, s]);
|
|
@@ -20526,7 +20526,7 @@ const Title$2 = /* @__PURE__ */ getDefaultExportFromCjs(Title$3), {
|
|
|
20526
20526
|
bounds: !0,
|
|
20527
20527
|
onResize: (K) => {
|
|
20528
20528
|
var re, ie;
|
|
20529
|
-
E((re = K.bounds) == null ? void 0 : re.height),
|
|
20529
|
+
E((re = K.bounds) == null ? void 0 : re.height), z((ie = K.bounds) == null ? void 0 : ie.width);
|
|
20530
20530
|
},
|
|
20531
20531
|
children: ({
|
|
20532
20532
|
measureRef: K
|
|
@@ -21148,11 +21148,11 @@ const One2manyInput = (e) => {
|
|
|
21148
21148
|
} = p || {}, {
|
|
21149
21149
|
lang: S,
|
|
21150
21150
|
t: y
|
|
21151
|
-
} = useContext(LocaleContext), x = useRef(), [w, T] = useState$1(!1), [E, O] = useState$1(!1), [
|
|
21151
|
+
} = useContext(LocaleContext), x = useRef(), [w, T] = useState$1(!1), [E, O] = useState$1(!1), [z, P] = useState$1(), [M, L] = useState$1(!1), [W, B] = useState$1(!1), [N, J] = useState$1(), [U, H] = useState$1([]), [K, re] = useState$1(!1), ie = useRef([]), [ne, Q] = useState$1(), ae = useRef(), {
|
|
21152
21152
|
readOnly: oe,
|
|
21153
21153
|
relation: ce,
|
|
21154
21154
|
context: me,
|
|
21155
|
-
domain:
|
|
21155
|
+
domain: G
|
|
21156
21156
|
} = o, te = o.type === "many2many", {
|
|
21157
21157
|
id: he
|
|
21158
21158
|
} = o, ge = l.filter((it) => it.values && it.operation !== "pendingRemove");
|
|
@@ -21191,9 +21191,9 @@ const One2manyInput = (e) => {
|
|
|
21191
21191
|
}
|
|
21192
21192
|
};
|
|
21193
21193
|
async function pe() {
|
|
21194
|
-
|
|
21194
|
+
G && (ie.current = transformDomainForChildWidget({
|
|
21195
21195
|
domain: await ConnectionProvider.getHandler().evalDomain({
|
|
21196
|
-
domain:
|
|
21196
|
+
domain: G,
|
|
21197
21197
|
values: transformPlainMany2Ones({
|
|
21198
21198
|
fields: m(),
|
|
21199
21199
|
values: g()
|
|
@@ -21470,10 +21470,10 @@ const One2manyInput = (e) => {
|
|
|
21470
21470
|
});
|
|
21471
21471
|
}
|
|
21472
21472
|
};
|
|
21473
|
-
if (
|
|
21473
|
+
if (z)
|
|
21474
21474
|
return /* @__PURE__ */ jsx(Alert, {
|
|
21475
21475
|
className: "mt-10",
|
|
21476
|
-
message:
|
|
21476
|
+
message: z,
|
|
21477
21477
|
type: "error",
|
|
21478
21478
|
banner: !0
|
|
21479
21479
|
});
|
|
@@ -24434,7 +24434,7 @@ var isIP = { exports: {} };
|
|
|
24434
24434
|
}
|
|
24435
24435
|
if (!w.ignore_max_length && x.length > C)
|
|
24436
24436
|
return !1;
|
|
24437
|
-
var O = x.split("@"),
|
|
24437
|
+
var O = x.split("@"), z = O.pop(), P = z.toLowerCase();
|
|
24438
24438
|
if (w.host_blacklist.includes(P))
|
|
24439
24439
|
return !1;
|
|
24440
24440
|
var M = O.join("@");
|
|
@@ -24452,19 +24452,19 @@ var isIP = { exports: {} };
|
|
|
24452
24452
|
}
|
|
24453
24453
|
if (w.ignore_max_length === !1 && (!(0, s.default)(M, {
|
|
24454
24454
|
max: 64
|
|
24455
|
-
}) || !(0, s.default)(
|
|
24455
|
+
}) || !(0, s.default)(z, {
|
|
24456
24456
|
max: 254
|
|
24457
24457
|
})))
|
|
24458
24458
|
return !1;
|
|
24459
|
-
if (!(0, l.default)(
|
|
24459
|
+
if (!(0, l.default)(z, {
|
|
24460
24460
|
require_tld: w.require_tld
|
|
24461
24461
|
})) {
|
|
24462
24462
|
if (!w.allow_ip_domain)
|
|
24463
24463
|
return !1;
|
|
24464
|
-
if (!(0, u.default)(
|
|
24465
|
-
if (!
|
|
24464
|
+
if (!(0, u.default)(z)) {
|
|
24465
|
+
if (!z.startsWith("[") || !z.endsWith("]"))
|
|
24466
24466
|
return !1;
|
|
24467
|
-
var N =
|
|
24467
|
+
var N = z.substr(1, z.length - 2);
|
|
24468
24468
|
if (N.length === 0 || !(0, u.default)(N))
|
|
24469
24469
|
return !1;
|
|
24470
24470
|
}
|
|
@@ -24514,18 +24514,18 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
24514
24514
|
}
|
|
24515
24515
|
function h(x, w) {
|
|
24516
24516
|
if (!(typeof Symbol > "u" || !(Symbol.iterator in Object(x)))) {
|
|
24517
|
-
var T = [], E = !0, O = !1,
|
|
24517
|
+
var T = [], E = !0, O = !1, z = void 0;
|
|
24518
24518
|
try {
|
|
24519
24519
|
for (var P = x[Symbol.iterator](), M; !(E = (M = P.next()).done) && (T.push(M.value), !(w && T.length === w)); E = !0)
|
|
24520
24520
|
;
|
|
24521
24521
|
} catch (L) {
|
|
24522
|
-
O = !0,
|
|
24522
|
+
O = !0, z = L;
|
|
24523
24523
|
} finally {
|
|
24524
24524
|
try {
|
|
24525
24525
|
!E && P.return != null && P.return();
|
|
24526
24526
|
} finally {
|
|
24527
24527
|
if (O)
|
|
24528
|
-
throw
|
|
24528
|
+
throw z;
|
|
24529
24529
|
}
|
|
24530
24530
|
}
|
|
24531
24531
|
return T;
|
|
@@ -24563,7 +24563,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
24563
24563
|
function y(x, w) {
|
|
24564
24564
|
if ((0, a.default)(x), !x || /[\s<>]/.test(x) || x.indexOf("mailto:") === 0 || (w = (0, l.default)(w, g), w.validate_length && x.length >= 2083) || !w.allow_fragments && x.includes("#") || !w.allow_query_components && (x.includes("?") || x.includes("&")))
|
|
24565
24565
|
return !1;
|
|
24566
|
-
var T, E, O,
|
|
24566
|
+
var T, E, O, z, P, M, L, W;
|
|
24567
24567
|
if (L = x.split("#"), x = L.shift(), L = x.split("?"), x = L.shift(), L = x.split("://"), L.length > 1) {
|
|
24568
24568
|
if (T = L.shift().toLowerCase(), w.require_valid_protocol && w.protocols.indexOf(T) === -1)
|
|
24569
24569
|
return !1;
|
|
@@ -24587,9 +24587,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
24587
24587
|
if (J === "" && U === "")
|
|
24588
24588
|
return !1;
|
|
24589
24589
|
}
|
|
24590
|
-
|
|
24591
|
-
var H =
|
|
24592
|
-
if (H ? (O = "", W = H[1], M = H[2] || null) : (L =
|
|
24590
|
+
z = L.join("@"), M = null, W = null;
|
|
24591
|
+
var H = z.match(v);
|
|
24592
|
+
if (H ? (O = "", W = H[1], M = H[2] || null) : (L = z.split(":"), O = L.shift(), L.length && (M = L.join(":"))), M !== null && M.length > 0) {
|
|
24593
24593
|
if (P = parseInt(M, 10), !/^[0-9]+$/.test(M) || P <= 0 || P > 65535)
|
|
24594
24594
|
return !1;
|
|
24595
24595
|
} else if (w.require_port)
|
|
@@ -25311,7 +25311,7 @@ const Kt = (e) => {
|
|
|
25311
25311
|
const T = useCallback(() => c === "left" ? ee(o) : ee(o).filter((W) => a.includes(W.key)), [o, c, a]), E = [...a, ...d], O = useCallback(({ checked: W }) => {
|
|
25312
25312
|
const B = W.filter((N) => c !== "left" || !a.includes(N));
|
|
25313
25313
|
f(B), B.length === T().length ? (S(!0), v(!1)) : B.length > 0 ? (v(!0), S(!1)) : (v(!1), S(!1));
|
|
25314
|
-
}, [T, a]),
|
|
25314
|
+
}, [T, a]), z = useCallback((W) => {
|
|
25315
25315
|
const { value: B } = W.target;
|
|
25316
25316
|
m(B.trim() === "" ? void 0 : B.trim());
|
|
25317
25317
|
}, []), P = useCallback((W) => {
|
|
@@ -25320,7 +25320,7 @@ const Kt = (e) => {
|
|
|
25320
25320
|
const { dragNode: B, dropPosition: N } = W, { key: J } = B, U = [...a], H = U.indexOf(J);
|
|
25321
25321
|
H > -1 && U.splice(H, 1), N === -1 ? U.unshift(J) : U.splice(N, 0, J), p(U);
|
|
25322
25322
|
}, [a]), L = c === "right" ? { className: "draggable-tree", draggable: !0, onDrop: M } : {};
|
|
25323
|
-
return jsxs(Fragment, { children: [jsxs("div", { className: "ant-transfer-list-header", children: [jsx(Col, { flex: 1, children: jsxs(Checkbox, { indeterminate: g, onChange: P, checked: C, children: [d.length > 0 ? `${d.length}/` : "", `${((r = ee(y)) == null ? void 0 : r.length) || 0} ${A("exportModalItemsUnit", l)}`] }) }), jsx(Col, { flex: 1, style: { textAlign: "right" }, children: A(c === "left" ? "availableFields" : "fieldsToExport", l) })] }), jsxs("div", { className: "ant-transfer-list-body ant-transfer-list-body-with-search", children: [jsx("div", { className: "ant-transfer-list-body-search-wrapper", children: jsx(Input$2, { style: { marginBottom: 8 }, allowClear: !0, placeholder: A("searchPlaceholder", l), onChange:
|
|
25323
|
+
return jsxs(Fragment, { children: [jsxs("div", { className: "ant-transfer-list-header", children: [jsx(Col, { flex: 1, children: jsxs(Checkbox, { indeterminate: g, onChange: P, checked: C, children: [d.length > 0 ? `${d.length}/` : "", `${((r = ee(y)) == null ? void 0 : r.length) || 0} ${A("exportModalItemsUnit", l)}`] }) }), jsx(Col, { flex: 1, style: { textAlign: "right" }, children: A(c === "left" ? "availableFields" : "fieldsToExport", l) })] }), jsxs("div", { className: "ant-transfer-list-body ant-transfer-list-body-with-search", children: [jsx("div", { className: "ant-transfer-list-body-search-wrapper", children: jsx(Input$2, { style: { marginBottom: 8 }, allowClear: !0, placeholder: A("searchPlaceholder", l), onChange: z, prefix: jsx(Vr, { style: { color: "#ccc" } }) }) }), jsx("div", { style: { minHeight: 400 }, children: jsx(Tree$2, { ...L, height: 400, selectable: !1, blockNode: !0, checkable: !0, checkStrictly: !0, checkedKeys: c === "left" ? E : d, loadData: c === "left" ? s : void 0, treeData: y, onCheck: O, titleRender: (W) => jsx(En, { node: W }) }) })] })] });
|
|
25324
25324
|
}, nt = k(Col)`
|
|
25325
25325
|
padding: 0.5rem;
|
|
25326
25326
|
border-color: #d9d9d9;
|
|
@@ -26328,7 +26328,7 @@ function FormActionBar({
|
|
|
26328
26328
|
formRef: T,
|
|
26329
26329
|
setFormHasChanges: E,
|
|
26330
26330
|
previousView: O,
|
|
26331
|
-
setPreviousView:
|
|
26331
|
+
setPreviousView: z,
|
|
26332
26332
|
goToResourceId: P
|
|
26333
26333
|
} = useContext(ActionViewContext), {
|
|
26334
26334
|
t: M,
|
|
@@ -26342,29 +26342,29 @@ function FormActionBar({
|
|
|
26342
26342
|
useEffect(() => {
|
|
26343
26343
|
!u && H.current && message$1.success(M("savedRegisters")), H.current = u || !1;
|
|
26344
26344
|
}, [u]);
|
|
26345
|
-
function K(
|
|
26345
|
+
function K(G) {
|
|
26346
26346
|
if (l) {
|
|
26347
26347
|
showDialog({
|
|
26348
26348
|
lang: L,
|
|
26349
26349
|
onOk: () => {
|
|
26350
|
-
|
|
26350
|
+
G();
|
|
26351
26351
|
}
|
|
26352
26352
|
});
|
|
26353
26353
|
return;
|
|
26354
26354
|
}
|
|
26355
|
-
|
|
26355
|
+
G();
|
|
26356
26356
|
}
|
|
26357
|
-
function re(
|
|
26357
|
+
function re(G) {
|
|
26358
26358
|
if (l) {
|
|
26359
26359
|
showDialog$6({
|
|
26360
26360
|
lang: L,
|
|
26361
26361
|
onOk: () => {
|
|
26362
|
-
|
|
26362
|
+
G();
|
|
26363
26363
|
}
|
|
26364
26364
|
});
|
|
26365
26365
|
return;
|
|
26366
26366
|
}
|
|
26367
|
-
|
|
26367
|
+
G();
|
|
26368
26368
|
}
|
|
26369
26369
|
function ie() {
|
|
26370
26370
|
d && d.length > p + 1 ? (f == null || f(p + 1), h == null || h(d[p + 1].id)) : d && p + 1 === d.length && (f == null || f(0), h == null || h(d[0].id));
|
|
@@ -26387,12 +26387,12 @@ function FormActionBar({
|
|
|
26387
26387
|
model: m,
|
|
26388
26388
|
ids: [c]
|
|
26389
26389
|
});
|
|
26390
|
-
const
|
|
26391
|
-
y == null || y(
|
|
26390
|
+
const G = d == null ? void 0 : d.filter((he) => he.id !== c);
|
|
26391
|
+
y == null || y(G);
|
|
26392
26392
|
let te = 0;
|
|
26393
|
-
p > 0 && p <= d.length - 1 && (te = p - 1),
|
|
26394
|
-
} catch (
|
|
26395
|
-
showDialog$3(JSON.stringify(
|
|
26393
|
+
p > 0 && p <= d.length - 1 && (te = p - 1), G != null && G[te] ? (h == null || h(G == null ? void 0 : G[te].id), f == null || f(te)) : (h == null || h(void 0), f == null || f(void 0));
|
|
26394
|
+
} catch (G) {
|
|
26395
|
+
showDialog$3(JSON.stringify(G));
|
|
26396
26396
|
} finally {
|
|
26397
26397
|
g == null || g(!1);
|
|
26398
26398
|
}
|
|
@@ -26400,22 +26400,22 @@ function FormActionBar({
|
|
|
26400
26400
|
async function oe() {
|
|
26401
26401
|
try {
|
|
26402
26402
|
S == null || S(!0);
|
|
26403
|
-
const
|
|
26403
|
+
const G = await ConnectionProvider.getHandler().duplicate({
|
|
26404
26404
|
id: c,
|
|
26405
26405
|
model: m,
|
|
26406
26406
|
context: T.current.getContext()
|
|
26407
26407
|
});
|
|
26408
|
-
|
|
26409
|
-
} catch (
|
|
26410
|
-
showDialog$3(JSON.stringify(
|
|
26408
|
+
G && await (P == null ? void 0 : P(G));
|
|
26409
|
+
} catch (G) {
|
|
26410
|
+
showDialog$3(JSON.stringify(G));
|
|
26411
26411
|
} finally {
|
|
26412
26412
|
S == null || S(!1);
|
|
26413
26413
|
}
|
|
26414
26414
|
}
|
|
26415
26415
|
const ce = u || v || x || C;
|
|
26416
|
-
function me(
|
|
26416
|
+
function me(G) {
|
|
26417
26417
|
B == null || B({
|
|
26418
|
-
actionData:
|
|
26418
|
+
actionData: G,
|
|
26419
26419
|
values: T.current.getValues(),
|
|
26420
26420
|
fields: T.current.getFields(),
|
|
26421
26421
|
context: T.current.getContext(),
|
|
@@ -26470,8 +26470,8 @@ function FormActionBar({
|
|
|
26470
26470
|
currentView: a,
|
|
26471
26471
|
previousView: O,
|
|
26472
26472
|
availableViews: r,
|
|
26473
|
-
onChangeView: (
|
|
26474
|
-
|
|
26473
|
+
onChangeView: (G) => {
|
|
26474
|
+
z == null || z(a), E == null || E(!1), o == null || o(G);
|
|
26475
26475
|
},
|
|
26476
26476
|
disabled: ce,
|
|
26477
26477
|
formHasChanges: l
|
|
@@ -26498,19 +26498,19 @@ function FormActionBar({
|
|
|
26498
26498
|
disabled: ce,
|
|
26499
26499
|
tooltip: M("actions"),
|
|
26500
26500
|
items: e == null ? void 0 : e.action,
|
|
26501
|
-
onItemClick: (
|
|
26502
|
-
!
|
|
26501
|
+
onItemClick: async (G) => {
|
|
26502
|
+
!G || !await (s == null ? void 0 : s()) || me(G);
|
|
26503
26503
|
}
|
|
26504
26504
|
}), /* @__PURE__ */ jsx(DropdownButton, {
|
|
26505
26505
|
icon: /* @__PURE__ */ jsx(PrinterOutlined, {}),
|
|
26506
26506
|
disabled: ce,
|
|
26507
26507
|
tooltip: M("reports"),
|
|
26508
26508
|
items: e == null ? void 0 : e.print,
|
|
26509
|
-
onItemClick: (
|
|
26510
|
-
!
|
|
26511
|
-
...
|
|
26509
|
+
onItemClick: async (G) => {
|
|
26510
|
+
!G || !await (s == null ? void 0 : s()) || me({
|
|
26511
|
+
...G,
|
|
26512
26512
|
datas: {
|
|
26513
|
-
...
|
|
26513
|
+
...G.datas || {},
|
|
26514
26514
|
ids: [c]
|
|
26515
26515
|
}
|
|
26516
26516
|
});
|
|
@@ -26520,44 +26520,48 @@ function FormActionBar({
|
|
|
26520
26520
|
disabled: ce,
|
|
26521
26521
|
tooltip: M("related"),
|
|
26522
26522
|
items: e == null ? void 0 : e.relate,
|
|
26523
|
-
onItemClick: async (
|
|
26524
|
-
!
|
|
26525
|
-
relateData:
|
|
26523
|
+
onItemClick: async (G) => {
|
|
26524
|
+
!G || !await (s == null ? void 0 : s()) || J({
|
|
26525
|
+
relateData: G,
|
|
26526
26526
|
values: T.current.getValues(),
|
|
26527
26527
|
fields: T.current.getFields(),
|
|
26528
|
-
action_id:
|
|
26529
|
-
action_type:
|
|
26528
|
+
action_id: G.id,
|
|
26529
|
+
action_type: G.type
|
|
26530
26530
|
});
|
|
26531
26531
|
}
|
|
26532
26532
|
}), /* @__PURE__ */ jsx(AttachmentsButton, {
|
|
26533
26533
|
disabled: ce,
|
|
26534
26534
|
attachments: w,
|
|
26535
|
-
onAddNewAttachment: () => {
|
|
26536
|
-
|
|
26535
|
+
onAddNewAttachment: async () => {
|
|
26536
|
+
if (!await (s == null ? void 0 : s()))
|
|
26537
|
+
return;
|
|
26538
|
+
const te = c, he = m;
|
|
26537
26539
|
U({
|
|
26538
26540
|
model: "ir.attachment",
|
|
26539
26541
|
values: {
|
|
26540
|
-
selection_associated_object: `${
|
|
26542
|
+
selection_associated_object: `${he},${te}`
|
|
26541
26543
|
},
|
|
26542
26544
|
forced_values: {
|
|
26543
|
-
res_model:
|
|
26544
|
-
res_id:
|
|
26545
|
+
res_model: he,
|
|
26546
|
+
res_id: te
|
|
26545
26547
|
},
|
|
26546
26548
|
initialViewType: "form"
|
|
26547
26549
|
});
|
|
26548
26550
|
},
|
|
26549
|
-
onListAllAttachments: () => {
|
|
26550
|
-
|
|
26551
|
+
onListAllAttachments: async () => {
|
|
26552
|
+
if (!await (s == null ? void 0 : s()))
|
|
26553
|
+
return;
|
|
26554
|
+
const te = c;
|
|
26551
26555
|
U({
|
|
26552
26556
|
model: "ir.attachment",
|
|
26553
|
-
domain: [["res_model", "=", `${m}`], ["res_id", "=", `${
|
|
26557
|
+
domain: [["res_model", "=", `${m}`], ["res_id", "=", `${te}`]],
|
|
26554
26558
|
initialViewType: "tree"
|
|
26555
26559
|
});
|
|
26556
26560
|
},
|
|
26557
|
-
onViewAttachmentDetails: (
|
|
26558
|
-
U({
|
|
26561
|
+
onViewAttachmentDetails: async (G) => {
|
|
26562
|
+
!await (s == null ? void 0 : s()) || U({
|
|
26559
26563
|
model: "ir.attachment",
|
|
26560
|
-
res_id:
|
|
26564
|
+
res_id: G.id,
|
|
26561
26565
|
initialViewType: "form"
|
|
26562
26566
|
});
|
|
26563
26567
|
}
|
|
@@ -26916,7 +26920,7 @@ const GraphActionView = (e) => {
|
|
|
26916
26920
|
setTotalItems: T = void 0,
|
|
26917
26921
|
setSearchTreeNameSearch: E = void 0,
|
|
26918
26922
|
setTreeIsLoading: O = void 0,
|
|
26919
|
-
limit:
|
|
26923
|
+
limit: z,
|
|
26920
26924
|
setLimit: P,
|
|
26921
26925
|
searchParams: M,
|
|
26922
26926
|
searchValues: L,
|
|
@@ -26955,7 +26959,7 @@ const GraphActionView = (e) => {
|
|
|
26955
26959
|
domain: l,
|
|
26956
26960
|
currentId: m,
|
|
26957
26961
|
setActionViewTotalItems: T,
|
|
26958
|
-
limit:
|
|
26962
|
+
limit: z,
|
|
26959
26963
|
setLimit: P
|
|
26960
26964
|
});
|
|
26961
26965
|
return !a || !r ? null : /* @__PURE__ */ jsxs(Fragment, {
|
|
@@ -26972,7 +26976,7 @@ const GraphActionView = (e) => {
|
|
|
26972
26976
|
...u.fields
|
|
26973
26977
|
},
|
|
26974
26978
|
searchFields: mergeSearchFields([u.search_fields, c.search_fields]),
|
|
26975
|
-
limit:
|
|
26979
|
+
limit: z,
|
|
26976
26980
|
onClear: U,
|
|
26977
26981
|
offset: re,
|
|
26978
26982
|
isSearching: H,
|
|
@@ -26989,7 +26993,7 @@ const GraphActionView = (e) => {
|
|
|
26989
26993
|
model: o,
|
|
26990
26994
|
context: s,
|
|
26991
26995
|
domain: mergeParams(M || [], l),
|
|
26992
|
-
limit: N ?
|
|
26996
|
+
limit: N ? z : void 0,
|
|
26993
26997
|
manualIds: N ? g == null ? void 0 : g.map((ne) => ne.id) : void 0
|
|
26994
26998
|
})]
|
|
26995
26999
|
});
|
|
@@ -27113,7 +27117,7 @@ function TreeActionBar(e) {
|
|
|
27113
27117
|
previousView: T,
|
|
27114
27118
|
results: E,
|
|
27115
27119
|
limit: O,
|
|
27116
|
-
totalItems:
|
|
27120
|
+
totalItems: z
|
|
27117
27121
|
} = useContext(ActionViewContext), {
|
|
27118
27122
|
parentContext: P = {},
|
|
27119
27123
|
treeExpandable: M,
|
|
@@ -27331,7 +27335,7 @@ function TreeActionBar(e) {
|
|
|
27331
27335
|
model: f,
|
|
27332
27336
|
domain: mergeParams(((ae = p == null ? void 0 : p.current) == null ? void 0 : ae.getDomain()) || [], g || []),
|
|
27333
27337
|
limit: O,
|
|
27334
|
-
totalRegisters:
|
|
27338
|
+
totalRegisters: z || 0,
|
|
27335
27339
|
selectedRegistersToExport: s,
|
|
27336
27340
|
visibleRegisters: (E == null ? void 0 : E.length) || 0,
|
|
27337
27341
|
context: P
|
|
@@ -27495,8 +27499,8 @@ function ActionView(e, r) {
|
|
|
27495
27499
|
action_type: v,
|
|
27496
27500
|
treeExpandable: C = !1,
|
|
27497
27501
|
limit: S
|
|
27498
|
-
} = e, [y, x] = useState$1(), [w, T] = useState$1([]), [E, O] = useState$1(!0),
|
|
27499
|
-
t:
|
|
27502
|
+
} = e, [y, x] = useState$1(), [w, T] = useState$1([]), [E, O] = useState$1(!0), z = m || void 0, [P, M] = useState$1(z), [L, W] = useState$1([]), [B, N] = useState$1(), [J, U] = useState$1([]), [H, K] = useState$1(), [re, ie] = useState$1(0), [ne, Q] = useState$1(!1), [ae, oe] = useState$1(!1), [ce, me] = useState$1(), {
|
|
27503
|
+
t: G
|
|
27500
27504
|
} = useContext(LocaleContext), te = useRef(), he = useRef(), ge = useContext(TabManagerContext), {
|
|
27501
27505
|
setCurrentView: Te,
|
|
27502
27506
|
setCurrentId: D,
|
|
@@ -27590,7 +27594,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
|
|
|
27590
27594
|
canWeClose: Fe
|
|
27591
27595
|
}), useEffect(() => {
|
|
27592
27596
|
const qe = w.find((_t) => _t.type === "tree"), Ht = w.find((_t) => f.id ? _t.type === f.type && _t.view_id === f.id : _t.type === f.type);
|
|
27593
|
-
ve(Ht || qe), m ? D == null || D(
|
|
27597
|
+
ve(Ht || qe), m ? D == null || D(z) : (Oe(void 0), N(void 0)), Pe();
|
|
27594
27598
|
}, [o, l, m]), useEffect(() => {
|
|
27595
27599
|
pe === d && (D == null || D(P), Te == null || Te(y));
|
|
27596
27600
|
}, [I, pe]);
|
|
@@ -27615,7 +27619,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
|
|
|
27615
27619
|
} catch {
|
|
27616
27620
|
}
|
|
27617
27621
|
if (!_t) {
|
|
27618
|
-
oe(!1), Q(!1), showDialog$7(
|
|
27622
|
+
oe(!1), Q(!1), showDialog$7(G("idNotFound"));
|
|
27619
27623
|
return;
|
|
27620
27624
|
}
|
|
27621
27625
|
} else
|
|
@@ -27923,10 +27927,10 @@ function DashboardTree(e) {
|
|
|
27923
27927
|
domain: l = [],
|
|
27924
27928
|
visible: u = !0,
|
|
27925
27929
|
parentContext: c = {}
|
|
27926
|
-
} = e, [d, f] = useState$1(!1), [p, h] = useState$1(!1), [m, g] = useState$1(), [v, C] = useState$1(), [S, y] = useState$1(), [x, w] = useState$1(1), [T, E] = useState$1(0), O = useRef(DEFAULT_SEARCH_LIMIT),
|
|
27930
|
+
} = e, [d, f] = useState$1(!1), [p, h] = useState$1(!1), [m, g] = useState$1(), [v, C] = useState$1(), [S, y] = useState$1(), [x, w] = useState$1(1), [T, E] = useState$1(0), O = useRef(DEFAULT_SEARCH_LIMIT), z = useRef([]), [P, M] = useState$1(0), [L, W] = useState$1([]), [B, N] = useState$1(void 0), [J, U] = useState$1(), [H, K] = useState$1(), [re, ie] = useState$1(), [ne, Q] = useState$1(!1), ae = useRef([]), oe = (D) => {
|
|
27927
27931
|
Q(!0), w(D), E((D - 1) * O.current);
|
|
27928
27932
|
}, ce = async () => {
|
|
27929
|
-
const D = ae.current.length > 0 ? ae.current : l, I = mergeParams(
|
|
27933
|
+
const D = ae.current.length > 0 ? ae.current : l, I = mergeParams(z.current, D), {
|
|
27930
27934
|
colors: pe
|
|
27931
27935
|
} = getTree(v), {
|
|
27932
27936
|
totalItems: Re,
|
|
@@ -27965,7 +27969,7 @@ function DashboardTree(e) {
|
|
|
27965
27969
|
useEffect(() => {
|
|
27966
27970
|
!p || u && me();
|
|
27967
27971
|
}, [x, T, p, u]);
|
|
27968
|
-
const
|
|
27972
|
+
const G = async (D) => {
|
|
27969
27973
|
h(!1), f(!0), ie(void 0);
|
|
27970
27974
|
try {
|
|
27971
27975
|
D === "action" ? await te() : await he(), h(!0);
|
|
@@ -27997,7 +28001,7 @@ function DashboardTree(e) {
|
|
|
27997
28001
|
C(I);
|
|
27998
28002
|
};
|
|
27999
28003
|
useEffect(() => {
|
|
28000
|
-
r ?
|
|
28004
|
+
r ? G("action") : a && G("model");
|
|
28001
28005
|
}, [r, a]);
|
|
28002
28006
|
const ge = (D) => {
|
|
28003
28007
|
const {
|
|
@@ -28100,7 +28104,7 @@ function Dashboard(e, r) {
|
|
|
28100
28104
|
refresh: () => {
|
|
28101
28105
|
y();
|
|
28102
28106
|
},
|
|
28103
|
-
configDashboard:
|
|
28107
|
+
configDashboard: z
|
|
28104
28108
|
}));
|
|
28105
28109
|
async function y() {
|
|
28106
28110
|
f(!0), m(!0), h(void 0);
|
|
@@ -28213,7 +28217,7 @@ function Dashboard(e, r) {
|
|
|
28213
28217
|
context: o
|
|
28214
28218
|
});
|
|
28215
28219
|
}
|
|
28216
|
-
async function
|
|
28220
|
+
async function z() {
|
|
28217
28221
|
g(l);
|
|
28218
28222
|
}
|
|
28219
28223
|
return p ? /* @__PURE__ */ jsx(Alert, {
|
|
@@ -28316,7 +28320,7 @@ function Dashboard(e, r) {
|
|
|
28316
28320
|
limit: oe
|
|
28317
28321
|
});
|
|
28318
28322
|
}
|
|
28319
|
-
let
|
|
28323
|
+
let G;
|
|
28320
28324
|
const te = re.find((he) => {
|
|
28321
28325
|
const [, ge] = he;
|
|
28322
28326
|
return ge === "tree";
|
|
@@ -28328,7 +28332,7 @@ function Dashboard(e, r) {
|
|
|
28328
28332
|
title: I,
|
|
28329
28333
|
model: pe
|
|
28330
28334
|
} = L;
|
|
28331
|
-
|
|
28335
|
+
G = {
|
|
28332
28336
|
action_id: Te,
|
|
28333
28337
|
action_type: D,
|
|
28334
28338
|
name: I,
|
|
@@ -28342,7 +28346,7 @@ function Dashboard(e, r) {
|
|
|
28342
28346
|
id: N,
|
|
28343
28347
|
title: K,
|
|
28344
28348
|
parms: ce,
|
|
28345
|
-
action:
|
|
28349
|
+
action: G,
|
|
28346
28350
|
openAction: g,
|
|
28347
28351
|
children: me
|
|
28348
28352
|
}, N);
|
|
@@ -28448,10 +28452,10 @@ const Dashboard$1 = forwardRef(Dashboard), Tag = (e) => /* @__PURE__ */ jsx(Fiel
|
|
|
28448
28452
|
});
|
|
28449
28453
|
}
|
|
28450
28454
|
const E = () => {
|
|
28451
|
-
|
|
28455
|
+
z(u.map((P) => P.value));
|
|
28452
28456
|
}, O = () => {
|
|
28453
|
-
|
|
28454
|
-
},
|
|
28457
|
+
z([]);
|
|
28458
|
+
}, z = (P) => {
|
|
28455
28459
|
const M = s.map((W) => P.includes(W.id) ? W.operation == "pendingRemove" ? {
|
|
28456
28460
|
...W,
|
|
28457
28461
|
operation: "original"
|
|
@@ -28472,7 +28476,7 @@ const Dashboard$1 = forwardRef(Dashboard), Tag = (e) => /* @__PURE__ */ jsx(Fiel
|
|
|
28472
28476
|
children: [/* @__PURE__ */ jsx(Checkbox.Group, {
|
|
28473
28477
|
value: u.length ? l : [],
|
|
28474
28478
|
disabled: v,
|
|
28475
|
-
onChange:
|
|
28479
|
+
onChange: z,
|
|
28476
28480
|
style: {
|
|
28477
28481
|
width: "100%"
|
|
28478
28482
|
},
|
|
@@ -28667,7 +28671,7 @@ function RootView(e, r) {
|
|
|
28667
28671
|
action: T,
|
|
28668
28672
|
values: E,
|
|
28669
28673
|
forced_values: O,
|
|
28670
|
-
initialViewType:
|
|
28674
|
+
initialViewType: z,
|
|
28671
28675
|
res_id: P,
|
|
28672
28676
|
domain: M = []
|
|
28673
28677
|
}) {
|
|
@@ -28699,8 +28703,8 @@ function RootView(e, r) {
|
|
|
28699
28703
|
limit: Q
|
|
28700
28704
|
} = L, ae = ne === "tree", oe = [];
|
|
28701
28705
|
for (const me of K) {
|
|
28702
|
-
const [
|
|
28703
|
-
if (
|
|
28706
|
+
const [G, te] = me;
|
|
28707
|
+
if (G)
|
|
28704
28708
|
oe.push(me);
|
|
28705
28709
|
else if (te === "dashboard")
|
|
28706
28710
|
oe.push([void 0, "dashboard"]);
|
|
@@ -28710,7 +28714,7 @@ function RootView(e, r) {
|
|
|
28710
28714
|
} = await ConnectionProvider.getHandler().getView({
|
|
28711
28715
|
model: H,
|
|
28712
28716
|
type: te,
|
|
28713
|
-
id:
|
|
28717
|
+
id: G,
|
|
28714
28718
|
context: {
|
|
28715
28719
|
...s,
|
|
28716
28720
|
...J
|
|
@@ -28720,17 +28724,17 @@ function RootView(e, r) {
|
|
|
28720
28724
|
}
|
|
28721
28725
|
}
|
|
28722
28726
|
let ce;
|
|
28723
|
-
if (
|
|
28724
|
-
const [me,
|
|
28727
|
+
if (z) {
|
|
28728
|
+
const [me, G] = oe.find(([te, he]) => he === z);
|
|
28725
28729
|
ce = {
|
|
28726
28730
|
id: me,
|
|
28727
|
-
type:
|
|
28731
|
+
type: G
|
|
28728
28732
|
};
|
|
28729
28733
|
} else {
|
|
28730
|
-
const [me,
|
|
28734
|
+
const [me, G] = oe[0];
|
|
28731
28735
|
ce = {
|
|
28732
28736
|
id: me,
|
|
28733
|
-
type:
|
|
28737
|
+
type: G
|
|
28734
28738
|
};
|
|
28735
28739
|
}
|
|
28736
28740
|
w({
|
|
@@ -28757,7 +28761,7 @@ function RootView(e, r) {
|
|
|
28757
28761
|
title: T,
|
|
28758
28762
|
content: E,
|
|
28759
28763
|
key: O,
|
|
28760
|
-
action:
|
|
28764
|
+
action: z
|
|
28761
28765
|
}) {
|
|
28762
28766
|
let P = [...d];
|
|
28763
28767
|
d.length === 1 && d[0].key === "welcome" && (P = [...d.filter((M) => M.key !== "welcome")]), f([...P, {
|
|
@@ -28765,14 +28769,14 @@ function RootView(e, r) {
|
|
|
28765
28769
|
key: O,
|
|
28766
28770
|
closable: !0,
|
|
28767
28771
|
content: E,
|
|
28768
|
-
action:
|
|
28772
|
+
action: z
|
|
28769
28773
|
}]), c(O);
|
|
28770
28774
|
}
|
|
28771
28775
|
async function S({
|
|
28772
28776
|
relateData: T,
|
|
28773
28777
|
fields: E,
|
|
28774
28778
|
values: O,
|
|
28775
|
-
action_id:
|
|
28779
|
+
action_id: z,
|
|
28776
28780
|
action_type: P
|
|
28777
28781
|
}) {
|
|
28778
28782
|
const {
|
|
@@ -28819,7 +28823,7 @@ function RootView(e, r) {
|
|
|
28819
28823
|
domain: ne,
|
|
28820
28824
|
title: J,
|
|
28821
28825
|
initialView: re,
|
|
28822
|
-
action_id:
|
|
28826
|
+
action_id: z,
|
|
28823
28827
|
action_type: P,
|
|
28824
28828
|
limit: U
|
|
28825
28829
|
});
|
|
@@ -28828,7 +28832,7 @@ function RootView(e, r) {
|
|
|
28828
28832
|
const {
|
|
28829
28833
|
action_id: E,
|
|
28830
28834
|
action_type: O,
|
|
28831
|
-
res_id:
|
|
28835
|
+
res_id: z,
|
|
28832
28836
|
view_id: P
|
|
28833
28837
|
} = T, M = `${O},${E}`, L = await ConnectionProvider.getHandler().getActionData({
|
|
28834
28838
|
action: M,
|
|
@@ -28853,24 +28857,24 @@ function RootView(e, r) {
|
|
|
28853
28857
|
limit: re
|
|
28854
28858
|
} = L, ie = K === "tree", ne = [];
|
|
28855
28859
|
for (const ce of J) {
|
|
28856
|
-
const [me,
|
|
28860
|
+
const [me, G] = ce;
|
|
28857
28861
|
if (me)
|
|
28858
28862
|
ne.push(ce);
|
|
28859
|
-
else if (
|
|
28863
|
+
else if (G === "dashboard")
|
|
28860
28864
|
ne.push([void 0, "dashboard"]);
|
|
28861
28865
|
else {
|
|
28862
28866
|
const {
|
|
28863
28867
|
view_id: te
|
|
28864
28868
|
} = await ConnectionProvider.getHandler().getView({
|
|
28865
28869
|
model: N,
|
|
28866
|
-
type:
|
|
28870
|
+
type: G,
|
|
28867
28871
|
id: me,
|
|
28868
28872
|
context: {
|
|
28869
28873
|
...s,
|
|
28870
28874
|
...W
|
|
28871
28875
|
}
|
|
28872
28876
|
});
|
|
28873
|
-
ne.push([te,
|
|
28877
|
+
ne.push([te, G]);
|
|
28874
28878
|
}
|
|
28875
28879
|
}
|
|
28876
28880
|
let Q, ae;
|
|
@@ -28896,7 +28900,7 @@ function RootView(e, r) {
|
|
|
28896
28900
|
initialView: oe,
|
|
28897
28901
|
action_id: E,
|
|
28898
28902
|
action_type: O,
|
|
28899
|
-
res_id:
|
|
28903
|
+
res_id: z,
|
|
28900
28904
|
treeExpandable: ie,
|
|
28901
28905
|
limit: re
|
|
28902
28906
|
});
|
|
@@ -28905,7 +28909,7 @@ function RootView(e, r) {
|
|
|
28905
28909
|
model: T,
|
|
28906
28910
|
values: E,
|
|
28907
28911
|
forced_values: O,
|
|
28908
|
-
initialViewType:
|
|
28912
|
+
initialViewType: z,
|
|
28909
28913
|
res_id: P,
|
|
28910
28914
|
domain: M
|
|
28911
28915
|
}) {
|
|
@@ -28914,7 +28918,7 @@ function RootView(e, r) {
|
|
|
28914
28918
|
action: L,
|
|
28915
28919
|
values: E,
|
|
28916
28920
|
forced_values: O,
|
|
28917
|
-
initialViewType:
|
|
28921
|
+
initialViewType: z,
|
|
28918
28922
|
res_id: P,
|
|
28919
28923
|
domain: M
|
|
28920
28924
|
});
|
|
@@ -28923,7 +28927,7 @@ function RootView(e, r) {
|
|
|
28923
28927
|
domain: T,
|
|
28924
28928
|
context: E,
|
|
28925
28929
|
model: O,
|
|
28926
|
-
views:
|
|
28930
|
+
views: z,
|
|
28927
28931
|
title: P,
|
|
28928
28932
|
target: M,
|
|
28929
28933
|
initialView: L,
|
|
@@ -28977,7 +28981,7 @@ function RootView(e, r) {
|
|
|
28977
28981
|
action_type: B,
|
|
28978
28982
|
tabKey: re,
|
|
28979
28983
|
title: P,
|
|
28980
|
-
views:
|
|
28984
|
+
views: z,
|
|
28981
28985
|
model: O,
|
|
28982
28986
|
context: {
|
|
28983
28987
|
...s,
|
|
@@ -29140,11 +29144,11 @@ const FavouriteButton = (e) => {
|
|
|
29140
29144
|
openDefaultActionForModel: O
|
|
29141
29145
|
} = S || {};
|
|
29142
29146
|
useEffect(() => {
|
|
29143
|
-
|
|
29147
|
+
z();
|
|
29144
29148
|
}, []), useEffect(() => {
|
|
29145
29149
|
L();
|
|
29146
29150
|
}, [x, w, T, E]);
|
|
29147
|
-
async function
|
|
29151
|
+
async function z() {
|
|
29148
29152
|
try {
|
|
29149
29153
|
m(!0);
|
|
29150
29154
|
const U = await r();
|
|
@@ -29162,7 +29166,7 @@ const FavouriteButton = (e) => {
|
|
|
29162
29166
|
(K == null ? void 0 : K.action_type) !== "ir.actions.wizard" && (K && y(K), d(!1));
|
|
29163
29167
|
}
|
|
29164
29168
|
function M(U) {
|
|
29165
|
-
U &&
|
|
29169
|
+
U && z(), d(U);
|
|
29166
29170
|
}
|
|
29167
29171
|
async function L() {
|
|
29168
29172
|
if (!T)
|
|
@@ -29281,7 +29285,7 @@ const FavouriteButton = (e) => {
|
|
|
29281
29285
|
res_id: ie
|
|
29282
29286
|
});
|
|
29283
29287
|
}
|
|
29284
|
-
await
|
|
29288
|
+
await z(), u(!l);
|
|
29285
29289
|
}
|
|
29286
29290
|
return /* @__PURE__ */ jsxs(Fragment, {
|
|
29287
29291
|
children: [/* @__PURE__ */ jsx(Button$1, {
|