@gisce/react-ooui 1.1.0 → 1.1.2-rc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/react-ooui.es.js +91 -86
- package/dist/react-ooui.es.js.map +1 -1
- package/dist/react-ooui.umd.js +7 -7
- package/dist/react-ooui.umd.js.map +1 -1
- package/dist/views/actionViews/GraphActionView.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/.eslintcache +1 -0
- package/src/views/actionViews/GraphActionView.tsx +1 -0
- package/src/widgets/base/many2one/Many2one.tsx +2 -2
package/dist/react-ooui.es.js
CHANGED
|
@@ -4253,7 +4253,7 @@ function getAugmentedNamespace(e) {
|
|
|
4253
4253
|
});
|
|
4254
4254
|
}), n;
|
|
4255
4255
|
}
|
|
4256
|
-
var TextArea$
|
|
4256
|
+
var TextArea$2 = {}, interopRequireWildcard = { exports: {} }, _typeof$2 = { exports: {} };
|
|
4257
4257
|
(function(e) {
|
|
4258
4258
|
function t(n) {
|
|
4259
4259
|
return e.exports = t = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(r) {
|
|
@@ -5332,7 +5332,7 @@ var ResizableTextArea = /* @__PURE__ */ function(e) {
|
|
|
5332
5332
|
return this.renderTextArea();
|
|
5333
5333
|
}
|
|
5334
5334
|
}]), n;
|
|
5335
|
-
}(React.Component), TextArea$
|
|
5335
|
+
}(React.Component), TextArea$1 = /* @__PURE__ */ function(e) {
|
|
5336
5336
|
_inherits(n, e);
|
|
5337
5337
|
var t = _createSuper(n);
|
|
5338
5338
|
function n(r) {
|
|
@@ -5390,7 +5390,7 @@ var ResizableTextArea = /* @__PURE__ */ function(e) {
|
|
|
5390
5390
|
const es$3 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5391
5391
|
__proto__: null,
|
|
5392
5392
|
ResizableTextArea,
|
|
5393
|
-
default: TextArea$
|
|
5393
|
+
default: TextArea$1
|
|
5394
5394
|
}, Symbol.toStringTag, { value: "Module" })), require$$8 = /* @__PURE__ */ getAugmentedNamespace(es$3);
|
|
5395
5395
|
var omit = {}, hasRequiredOmit;
|
|
5396
5396
|
function requireOmit() {
|
|
@@ -11341,85 +11341,89 @@ function requireClearableLabeledInput() {
|
|
|
11341
11341
|
e.default = m;
|
|
11342
11342
|
}(ClearableLabeledInput)), ClearableLabeledInput;
|
|
11343
11343
|
}
|
|
11344
|
-
|
|
11345
|
-
|
|
11346
|
-
|
|
11347
|
-
|
|
11348
|
-
|
|
11349
|
-
|
|
11350
|
-
|
|
11351
|
-
|
|
11352
|
-
|
|
11353
|
-
|
|
11354
|
-
|
|
11355
|
-
|
|
11356
|
-
|
|
11357
|
-
|
|
11358
|
-
|
|
11359
|
-
|
|
11360
|
-
|
|
11361
|
-
|
|
11362
|
-
|
|
11363
|
-
|
|
11364
|
-
|
|
11365
|
-
N.value
|
|
11366
|
-
|
|
11367
|
-
|
|
11368
|
-
|
|
11369
|
-
|
|
11370
|
-
|
|
11371
|
-
(
|
|
11372
|
-
}), (0, v.resolveOnChange)(G.current, se, N.onChange);
|
|
11373
|
-
}, P = B("input", S);
|
|
11374
|
-
l.useImperativeHandle(O, function() {
|
|
11375
|
-
var J;
|
|
11376
|
-
return {
|
|
11377
|
-
resizableTextArea: (J = G.current) === null || J === void 0 ? void 0 : J.resizableTextArea,
|
|
11378
|
-
focus: function(ae) {
|
|
11379
|
-
var he, re;
|
|
11380
|
-
(0, v.triggerFocus)((re = (he = G.current) === null || he === void 0 ? void 0 : he.resizableTextArea) === null || re === void 0 ? void 0 : re.textArea, ae);
|
|
11381
|
-
},
|
|
11382
|
-
blur: function() {
|
|
11344
|
+
var hasRequiredTextArea;
|
|
11345
|
+
function requireTextArea() {
|
|
11346
|
+
return hasRequiredTextArea || (hasRequiredTextArea = 1, function(e) {
|
|
11347
|
+
var t = interopRequireWildcard.exports, n = interopRequireDefault.exports;
|
|
11348
|
+
Object.defineProperty(e, "__esModule", {
|
|
11349
|
+
value: !0
|
|
11350
|
+
}), e.default = void 0;
|
|
11351
|
+
var r = n(_typeof$2.exports), o = n(requireToConsumableArray()), a = n(require_extends()), s = n(requireDefineProperty()), c = n(requireSlicedToArray()), l = t(React__default), u = n(require$$8), d = n(requireOmit()), f = n(requireClassnames()), h = n(requireUseMergedState()), p = n(requireClearableLabeledInput()), g = requireConfigProvider(), v = requireInput(), y = n(requireSizeContext()), I = function(x, O) {
|
|
11352
|
+
var w = {};
|
|
11353
|
+
for (var S in x)
|
|
11354
|
+
Object.prototype.hasOwnProperty.call(x, S) && O.indexOf(S) < 0 && (w[S] = x[S]);
|
|
11355
|
+
if (x != null && typeof Object.getOwnPropertySymbols == "function")
|
|
11356
|
+
for (var b = 0, S = Object.getOwnPropertySymbols(x); b < S.length; b++)
|
|
11357
|
+
O.indexOf(S[b]) < 0 && Object.prototype.propertyIsEnumerable.call(x, S[b]) && (w[S[b]] = x[S[b]]);
|
|
11358
|
+
return w;
|
|
11359
|
+
}, m = /* @__PURE__ */ l.forwardRef(function(x, O) {
|
|
11360
|
+
var w, S = x.prefixCls, b = x.bordered, F = b === void 0 ? !0 : b, _ = x.showCount, k = _ === void 0 ? !1 : _, $ = x.maxLength, D = x.className, M = x.style, L = x.size, N = I(x, ["prefixCls", "bordered", "showCount", "maxLength", "className", "style", "size"]), q = l.useContext(g.ConfigContext), B = q.getPrefixCls, H = q.direction, Y = l.useContext(y.default), G = l.useRef(null), U = l.useRef(null), Z = (0, h.default)(N.defaultValue, {
|
|
11361
|
+
value: N.value
|
|
11362
|
+
}), V = (0, c.default)(Z, 2), z = V[0], E = V[1], A = l.useRef(N.value);
|
|
11363
|
+
l.useEffect(function() {
|
|
11364
|
+
(N.value !== void 0 || A.current !== N.value) && (E(N.value), A.current = N.value);
|
|
11365
|
+
}, [N.value, A.current]);
|
|
11366
|
+
var j = function(se, ae) {
|
|
11367
|
+
N.value === void 0 && (E(se), ae == null || ae());
|
|
11368
|
+
}, K = function(se) {
|
|
11369
|
+
j(se.target.value), (0, v.resolveOnChange)(G.current, se, N.onChange);
|
|
11370
|
+
}, Q = function(se) {
|
|
11371
|
+
j("", function() {
|
|
11383
11372
|
var ae;
|
|
11384
|
-
|
|
11385
|
-
}
|
|
11386
|
-
};
|
|
11387
|
-
|
|
11388
|
-
|
|
11389
|
-
|
|
11390
|
-
|
|
11391
|
-
|
|
11392
|
-
|
|
11393
|
-
|
|
11394
|
-
|
|
11395
|
-
|
|
11396
|
-
|
|
11397
|
-
|
|
11398
|
-
|
|
11399
|
-
|
|
11400
|
-
|
|
11401
|
-
|
|
11402
|
-
|
|
11403
|
-
|
|
11404
|
-
|
|
11405
|
-
|
|
11406
|
-
|
|
11407
|
-
|
|
11408
|
-
|
|
11409
|
-
|
|
11410
|
-
|
|
11411
|
-
|
|
11412
|
-
|
|
11413
|
-
|
|
11414
|
-
|
|
11415
|
-
|
|
11416
|
-
|
|
11417
|
-
|
|
11418
|
-
|
|
11419
|
-
|
|
11420
|
-
|
|
11421
|
-
|
|
11422
|
-
|
|
11373
|
+
(ae = G.current) === null || ae === void 0 || ae.focus();
|
|
11374
|
+
}), (0, v.resolveOnChange)(G.current, se, N.onChange);
|
|
11375
|
+
}, P = B("input", S);
|
|
11376
|
+
l.useImperativeHandle(O, function() {
|
|
11377
|
+
var J;
|
|
11378
|
+
return {
|
|
11379
|
+
resizableTextArea: (J = G.current) === null || J === void 0 ? void 0 : J.resizableTextArea,
|
|
11380
|
+
focus: function(ae) {
|
|
11381
|
+
var he, re;
|
|
11382
|
+
(0, v.triggerFocus)((re = (he = G.current) === null || he === void 0 ? void 0 : he.resizableTextArea) === null || re === void 0 ? void 0 : re.textArea, ae);
|
|
11383
|
+
},
|
|
11384
|
+
blur: function() {
|
|
11385
|
+
var ae;
|
|
11386
|
+
return (ae = G.current) === null || ae === void 0 ? void 0 : ae.blur();
|
|
11387
|
+
}
|
|
11388
|
+
};
|
|
11389
|
+
});
|
|
11390
|
+
var T = /* @__PURE__ */ l.createElement(u.default, (0, a.default)({}, (0, d.default)(N, ["allowClear"]), {
|
|
11391
|
+
maxLength: $,
|
|
11392
|
+
className: (0, f.default)((w = {}, (0, s.default)(w, "".concat(P, "-borderless"), !F), (0, s.default)(w, D, D && !k), (0, s.default)(w, "".concat(P, "-sm"), Y === "small" || L === "small"), (0, s.default)(w, "".concat(P, "-lg"), Y === "large" || L === "large"), w)),
|
|
11393
|
+
style: k ? void 0 : M,
|
|
11394
|
+
prefixCls: P,
|
|
11395
|
+
onChange: K,
|
|
11396
|
+
ref: G
|
|
11397
|
+
})), W = (0, v.fixControlledValue)(z), X = Number($) > 0;
|
|
11398
|
+
W = X ? (0, o.default)(W).slice(0, $).join("") : W;
|
|
11399
|
+
var ee = /* @__PURE__ */ l.createElement(p.default, (0, a.default)({}, N, {
|
|
11400
|
+
prefixCls: P,
|
|
11401
|
+
direction: H,
|
|
11402
|
+
inputType: "text",
|
|
11403
|
+
value: W,
|
|
11404
|
+
element: T,
|
|
11405
|
+
handleReset: Q,
|
|
11406
|
+
ref: U,
|
|
11407
|
+
bordered: F
|
|
11408
|
+
}));
|
|
11409
|
+
if (k) {
|
|
11410
|
+
var te = Math.min(W.length, $ != null ? $ : 1 / 0), ie = "";
|
|
11411
|
+
return (0, r.default)(k) === "object" ? ie = k.formatter({
|
|
11412
|
+
count: te,
|
|
11413
|
+
maxLength: $
|
|
11414
|
+
}) : ie = "".concat(te).concat(X ? " / ".concat($) : ""), /* @__PURE__ */ l.createElement("div", {
|
|
11415
|
+
className: (0, f.default)("".concat(P, "-textarea"), (0, s.default)({}, "".concat(P, "-textarea-rtl"), H === "rtl"), "".concat(P, "-textarea-show-count"), D),
|
|
11416
|
+
style: M,
|
|
11417
|
+
"data-count": ie
|
|
11418
|
+
}, ee);
|
|
11419
|
+
}
|
|
11420
|
+
return ee;
|
|
11421
|
+
}), C = m;
|
|
11422
|
+
e.default = C;
|
|
11423
|
+
}(TextArea$2)), TextArea$2;
|
|
11424
|
+
}
|
|
11425
|
+
var TextAreaExports = requireTextArea();
|
|
11426
|
+
const {
|
|
11423
11427
|
error: error$2,
|
|
11424
11428
|
warning: warning$1
|
|
11425
11429
|
} = Modal, showDialog$8 = (e) => {
|
|
@@ -11506,7 +11510,7 @@ const TextArea$1 = /* @__PURE__ */ getDefaultExportFromCjs(TextArea$3), {
|
|
|
11506
11510
|
children: b.name
|
|
11507
11511
|
}), /* @__PURE__ */ jsx(Col, {
|
|
11508
11512
|
flex: "auto",
|
|
11509
|
-
children: /* @__PURE__ */ jsx(
|
|
11513
|
+
children: /* @__PURE__ */ jsx(TextAreaExports, {
|
|
11510
11514
|
rows: 4,
|
|
11511
11515
|
value: v[b.code] || "",
|
|
11512
11516
|
onChange: (_) => {
|
|
@@ -18991,9 +18995,9 @@ const SearchTree$1 = forwardRef(SearchTree), SearchModal = (e) => {
|
|
|
18991
18995
|
getContext: k,
|
|
18992
18996
|
setOriginalValue: $,
|
|
18993
18997
|
elementHasLostFocus: D
|
|
18994
|
-
} = S || {}, M = useRef([]), [L, N] = useState([]), q = t && t[0], B = t && t[1] || "";
|
|
18998
|
+
} = S || {}, M = useRef([]), [L, N] = useState([]), q = t && t[0] || void 0, B = t && t[1] || "";
|
|
18995
18999
|
useEffect(() => {
|
|
18996
|
-
!Array.isArray(t) &&
|
|
19000
|
+
!Array.isArray(t) && t && Z(t);
|
|
18997
19001
|
}, [t]), useEffect(() => {
|
|
18998
19002
|
q && B.length === 0 ? Z(q) : q && B.length > 0 ? O(B) : !q && !B && O(w.current || "");
|
|
18999
19003
|
}, [t]);
|
|
@@ -21510,7 +21514,7 @@ function requireEditable() {
|
|
|
21510
21514
|
Object.defineProperty(e, "__esModule", {
|
|
21511
21515
|
value: !0
|
|
21512
21516
|
}), e.default = void 0;
|
|
21513
|
-
var r = n(requireDefineProperty()), o = n(requireSlicedToArray()), a = t(React__default), s = n(requireClassnames()), c = n(requireKeyCode()), l = n(requireEnterOutlined()), u = n(
|
|
21517
|
+
var r = n(requireDefineProperty()), o = n(requireSlicedToArray()), a = t(React__default), s = n(requireClassnames()), c = n(requireKeyCode()), l = n(requireEnterOutlined()), u = n(requireTextArea()), d = function(p) {
|
|
21514
21518
|
var g = p.prefixCls, v = p["aria-label"], y = p.className, I = p.style, m = p.direction, C = p.maxLength, x = p.autoSize, O = x === void 0 ? !0 : x, w = p.value, S = p.onSave, b = p.onCancel, F = a.useRef(), _ = a.useRef(!1), k = a.useRef(), $ = a.useState(w), D = (0, o.default)($, 2), M = D[0], L = D[1];
|
|
21515
21519
|
a.useEffect(function() {
|
|
21516
21520
|
L(w);
|
|
@@ -27477,7 +27481,8 @@ const GraphActionView = (e) => {
|
|
|
27477
27481
|
view_id: t.view_id,
|
|
27478
27482
|
model: r,
|
|
27479
27483
|
context: o,
|
|
27480
|
-
domain: b || a
|
|
27484
|
+
domain: b || a,
|
|
27485
|
+
limit: q
|
|
27481
27486
|
})]
|
|
27482
27487
|
})]
|
|
27483
27488
|
});
|