@gisce/react-ooui 1.2.0-rc.18 → 1.2.0-rc.19

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.
@@ -12682,30 +12682,30 @@ function hasPrefixSuffix(e) {
12682
12682
  }, tn = function(sn) {
12683
12683
  var an;
12684
12684
  Ze(!1);
12685
- var hn = sn.currentTarget.value;
12685
+ var mn = sn.currentTarget.value;
12686
12686
  if (Jt) {
12687
12687
  var bn = qt.current >= U + 1 || qt.current === ((an = Qt.current) === null || an === void 0 ? void 0 : an.length);
12688
- hn = T(bn, Qt.current, hn, U);
12688
+ mn = T(bn, Qt.current, mn, U);
12689
12689
  }
12690
- hn !== Ht && (xt(hn), (0, x.resolveOnChange)(sn.currentTarget, sn, pe, hn)), ie == null || ie(sn);
12690
+ mn !== Ht && (xt(mn), (0, x.resolveOnChange)(sn.currentTarget, sn, pe, mn)), ie == null || ie(sn);
12691
12691
  }, cn = function(sn) {
12692
12692
  var an = sn.target.value;
12693
12693
  if (!qe && Jt) {
12694
- var hn = sn.target.selectionStart >= U + 1 || sn.target.selectionStart === an.length || !sn.target.selectionStart;
12695
- an = T(hn, Ht, an, U);
12694
+ var mn = sn.target.selectionStart >= U + 1 || sn.target.selectionStart === an.length || !sn.target.selectionStart;
12695
+ an = T(mn, Ht, an, U);
12696
12696
  }
12697
12697
  xt(an), (0, x.resolveOnChange)(sn.currentTarget, sn, pe, an);
12698
12698
  }, gn = function(sn) {
12699
- var an, hn, bn;
12700
- xt(""), (an = it.current) === null || an === void 0 || an.focus(), (0, x.resolveOnChange)((bn = (hn = it.current) === null || hn === void 0 ? void 0 : hn.resizableTextArea) === null || bn === void 0 ? void 0 : bn.textArea, sn, pe);
12699
+ var an, mn, bn;
12700
+ xt(""), (an = it.current) === null || an === void 0 || an.focus(), (0, x.resolveOnChange)((bn = (mn = it.current) === null || mn === void 0 ? void 0 : mn.resizableTextArea) === null || bn === void 0 ? void 0 : bn.textArea, sn, pe);
12701
12701
  }, dn = he("input", L);
12702
12702
  m.useImperativeHandle(B, function() {
12703
12703
  var On;
12704
12704
  return {
12705
12705
  resizableTextArea: (On = it.current) === null || On === void 0 ? void 0 : On.resizableTextArea,
12706
12706
  focus: function(an) {
12707
- var hn, bn;
12708
- (0, x.triggerFocus)((bn = (hn = it.current) === null || hn === void 0 ? void 0 : hn.resizableTextArea) === null || bn === void 0 ? void 0 : bn.textArea, an);
12707
+ var mn, bn;
12708
+ (0, x.triggerFocus)((bn = (mn = it.current) === null || mn === void 0 ? void 0 : mn.resizableTextArea) === null || bn === void 0 ? void 0 : bn.textArea, an);
12709
12709
  },
12710
12710
  blur: function() {
12711
12711
  var an;
@@ -18435,7 +18435,7 @@ function Form(e, r) {
18435
18435
  (a === void 0 && U || a !== void 0 && U && a < 0) && (pe.current = void 0, W(void 0)), gn();
18436
18436
  }
18437
18437
  }, [a, o, g, v, x]), useEffect(() => {
18438
- oe && (hn({
18438
+ oe && (mn({
18439
18439
  elementHasLostFocus: !0
18440
18440
  }), ie(!1));
18441
18441
  }, [oe]);
@@ -18717,7 +18717,7 @@ function Form(e, r) {
18717
18717
  ...un()
18718
18718
  }
18719
18719
  }), W(Yt), ae && Yt.string && ((ln = ae.setTitle) == null || ln.call(ae, Yt.string));
18720
- }, hn = async ({
18720
+ }, mn = async ({
18721
18721
  elementHasLostFocus: Le = !1
18722
18722
  }) => {
18723
18723
  if (he.current)
@@ -18739,7 +18739,7 @@ function Form(e, r) {
18739
18739
  Q.current = Yt, d == null || d(Yt), ge == null || ge(!0), Wn(Tt);
18740
18740
  }
18741
18741
  }
18742
- }, bn = debounce_1(hn, 100), Wn = async (Le) => {
18742
+ }, bn = debounce_1(mn, 100), Wn = async (Le) => {
18743
18743
  try {
18744
18744
  for (let Pe = 0; Pe < Le.length; Pe += 1) {
18745
18745
  const Tt = Le[Pe];
@@ -18890,7 +18890,7 @@ function Form(e, r) {
18890
18890
  !O && Tt && (Pt == null || Pt(Ze(), qt(), _t()));
18891
18891
  }
18892
18892
  function rr() {
18893
- hn({
18893
+ mn({
18894
18894
  elementHasLostFocus: !0
18895
18895
  });
18896
18896
  }
@@ -23543,13 +23543,13 @@ var EllipsisTooltip = {};
23543
23543
  }, fn = function() {
23544
23544
  var kt;
23545
23545
  (kt = Ht.onCancel) === null || kt === void 0 || kt.call(Ht), cn(!1);
23546
- }, pn = (0, P.default)(ge), _n = (0, c.default)(pn, 2), yn = _n[0], Fn = _n[1], jn = y.useState(!1), On = (0, c.default)(jn, 2), sn = On[0], an = On[1], hn = y.useRef(), bn = {};
23546
+ }, pn = (0, P.default)(ge), _n = (0, c.default)(pn, 2), yn = _n[0], Fn = _n[1], jn = y.useState(!1), On = (0, c.default)(jn, 2), sn = On[0], an = On[1], mn = y.useRef(), bn = {};
23547
23547
  Fn.format && (bn.format = Fn.format);
23548
23548
  var Wn = function() {
23549
- window.clearTimeout(hn.current);
23549
+ window.clearTimeout(mn.current);
23550
23550
  }, tr = function(kt) {
23551
23551
  var rn;
23552
- kt == null || kt.preventDefault(), kt == null || kt.stopPropagation(), (0, h.default)(Fn.text || String(D) || "", bn), an(!0), Wn(), hn.current = window.setTimeout(function() {
23552
+ kt == null || kt.preventDefault(), kt == null || kt.stopPropagation(), (0, h.default)(Fn.text || String(D) || "", bn), an(!0), Wn(), mn.current = window.setTimeout(function() {
23553
23553
  an(!1);
23554
23554
  }, 3e3), (rn = Fn.onCopy) === null || rn === void 0 || rn.call(Fn, kt);
23555
23555
  };
@@ -28248,13 +28248,13 @@ function gt(e) {
28248
28248
  l.appendChild(s);
28249
28249
  return s;
28250
28250
  }
28251
- function mr(e) {
28251
+ function hr(e) {
28252
28252
  var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, o = Be(r);
28253
28253
  return ft(o).find(function(a) {
28254
28254
  return a.getAttribute(ut(r)) === e;
28255
28255
  });
28256
28256
  }
28257
- function hr(e, r) {
28257
+ function mr(e, r) {
28258
28258
  var o = Ie.get(e);
28259
28259
  if (!o || !function(l, c) {
28260
28260
  if (!l)
@@ -28274,8 +28274,8 @@ function hr(e, r) {
28274
28274
  }
28275
28275
  function pr(e, r) {
28276
28276
  var o = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, a = Be(o);
28277
- hr(a, o);
28278
- var s = mr(r, o);
28277
+ mr(a, o);
28278
+ var s = hr(r, o);
28279
28279
  if (s) {
28280
28280
  var l, c, u;
28281
28281
  return ((l = o.csp) === null || l === void 0 ? void 0 : l.nonce) && s.nonce !== ((c = o.csp) === null || c === void 0 ? void 0 : c.nonce) && (s.nonce = (u = o.csp) === null || u === void 0 ? void 0 : u.nonce), s.innerHTML !== e && (s.innerHTML = e), s;
@@ -28300,10 +28300,10 @@ function Me(e, r, o) {
28300
28300
  return Me(a, "".concat(r, "-").concat(e.tag, "-").concat(s));
28301
28301
  }));
28302
28302
  }
28303
- function mt(e) {
28303
+ function ht(e) {
28304
28304
  return Ne(e)[0];
28305
28305
  }
28306
- function ht(e) {
28306
+ function mt(e) {
28307
28307
  return e ? Array.isArray(e) ? e : [e] : [];
28308
28308
  }
28309
28309
  var vr = `
@@ -28362,7 +28362,7 @@ var vr = `
28362
28362
  }
28363
28363
  `, br = ["icon", "className", "onClick", "style", "primaryColor", "secondaryColor"], Z = { primaryColor: "#333", secondaryColor: "#E6E6E6", calculated: !1 }, de = function(e) {
28364
28364
  var r, o, a = e.icon, s = e.className, l = e.onClick, c = e.style, u = e.primaryColor, d = e.secondaryColor, f = ct(e, br), p = Z;
28365
- if (u && (p = { primaryColor: u, secondaryColor: d || mt(u) }), function() {
28365
+ if (u && (p = { primaryColor: u, secondaryColor: d || ht(u) }), function() {
28366
28366
  var m = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : vr, g = useContext(lt).csp;
28367
28367
  useEffect(function() {
28368
28368
  pr(m, "@ant-design-icons", { prepend: !0, csp: g });
@@ -28376,11 +28376,11 @@ de.displayName = "IconReact", de.getTwoToneColors = function() {
28376
28376
  return b({}, Z);
28377
28377
  }, de.setTwoToneColors = function(e) {
28378
28378
  var r = e.primaryColor, o = e.secondaryColor;
28379
- Z.primaryColor = r, Z.secondaryColor = o || mt(r), Z.calculated = !!o;
28379
+ Z.primaryColor = r, Z.secondaryColor = o || ht(r), Z.calculated = !!o;
28380
28380
  };
28381
28381
  const Ve = de;
28382
28382
  function pt(e) {
28383
- var r = st(ht(e), 2), o = r[0], a = r[1];
28383
+ var r = st(mt(e), 2), o = r[0], a = r[1];
28384
28384
  return Ve.setTwoToneColors({ primaryColor: o, secondaryColor: a });
28385
28385
  }
28386
28386
  var yr = ["className", "icon", "spin", "rotate", "tabIndex", "onClick", "twoToneColor"];
@@ -28388,7 +28388,7 @@ pt("#1890ff");
28388
28388
  var ue = React$n.forwardRef(function(e, r) {
28389
28389
  var o, a = e.className, s = e.icon, l = e.spin, c = e.rotate, u = e.tabIndex, d = e.onClick, f = e.twoToneColor, p = ct(e, yr), h = React$n.useContext(lt).prefixCls, m = h === void 0 ? "anticon" : h, g = lr(m, (De(o = {}, "".concat(m, "-").concat(s.name), !!s.name), De(o, "".concat(m, "-spin"), !!l || s.name === "loading"), o), a), v = u;
28390
28390
  v === void 0 && d && (v = -1);
28391
- var C = c ? { msTransform: "rotate(".concat(c, "deg)"), transform: "rotate(".concat(c, "deg)") } : void 0, w = st(ht(f), 2), I = w[0], y = w[1];
28391
+ var C = c ? { msTransform: "rotate(".concat(c, "deg)"), transform: "rotate(".concat(c, "deg)") } : void 0, w = st(mt(f), 2), I = w[0], y = w[1];
28392
28392
  return jsx("span", { ...b(b({ role: "img", "aria-label": s.name }, p), {}, { ref: r, tabIndex: v, onClick: d, className: g }), children: jsx(Ve, { icon: s, primaryColor: I, secondaryColor: y, style: C }) });
28393
28393
  });
28394
28394
  ue.displayName = "AntdIcon", ue.getTwoToneColor = function() {
@@ -28577,7 +28577,7 @@ const He = k(InputNumber)`
28577
28577
  k(He)`
28578
28578
  ${$}
28579
28579
  `;
28580
- const { TextArea: mn } = Input$2, zt = k(mn)`
28580
+ const { TextArea: hn } = Input$2, zt = k(hn)`
28581
28581
  height: ${(e) => e.height} !important;
28582
28582
  `;
28583
28583
  k(zt)`
@@ -28643,7 +28643,7 @@ const Kt = (e) => {
28643
28643
  }(e), r;
28644
28644
  }, Gt = ({ treeNodes: e = [], targetKeys: r = [], searchText: o }) => e.filter((a) => !o || $t(o, a)).map(({ children: a, ...s }) => ({ ...s, disabled: r.includes(s.key), children: Gt({ treeNodes: a, targetKeys: r, searchText: void 0 }) })), Rn = ({ treeNodes: e = [], targetKeys: r = [], searchText: o }) => {
28645
28645
  const a = ee(e);
28646
- return a.length === 0 ? [] : r.map((s) => ({ ...a.find((l) => l.key === s), disabled: !1, isLeaf: !0 })).filter((s) => !o || $t(o, s));
28646
+ return a.length === 0 ? [] : r.map((s) => ({ ...a.find((l) => l.key === s), disabled: !1, isLeaf: !0, children: void 0 })).filter((s) => !o || $t(o, s));
28647
28647
  }, rt = (e) => {
28648
28648
  var r;
28649
28649
  const { targetKeys: o, dataSource: a, onLoadData: s, locale: l, onChange: c, mode: u, selectedKeys: d, setSelectedKeys: f, setTargetKeys: p } = e, [h, m] = useState$1(), [g, v] = useState$1(!1), [C, w] = useState$1(!1), [I, y] = useState$1([]), x = u === "left" ? Gt : Rn;
@@ -28672,7 +28672,7 @@ const Kt = (e) => {
28672
28672
  const { dragNode: L, dropPosition: W } = N, { key: K } = L, H = [...o], z = H.indexOf(K);
28673
28673
  z > -1 && H.splice(z, 1), W === -1 ? H.unshift(K) : H.splice(W, 0, K), p(H);
28674
28674
  }, [o]), B = u === "right" ? { className: "draggable-tree", draggable: !0, onDrop: P } : {};
28675
- return jsxs(Fragment, { children: [jsxs("div", { className: "ant-transfer-list-header", children: [jsx(Col, { flex: 1, children: jsxs(Checkbox, { indeterminate: g, onChange: E, checked: C, children: [d.length > 0 ? `${d.length}/` : "", `${((r = ee(I)) == null ? void 0 : r.length) || 0} ${A("exportModalItemsUnit", l)}`] }) }), jsx(Col, { flex: 1, style: { textAlign: "right" }, children: A(u === "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: G, prefix: jsx(Vr, { style: { color: "#ccc" } }) }) }), jsx("div", { className: "ant-transfer-list-body-customize-wrapper", children: jsx(Tree$2, { ...B, height: 300, blockNode: !0, checkable: !0, checkStrictly: !0, checkedKeys: u === "left" ? S : d, loadData: u === "left" ? s : void 0, treeData: I, onCheck: T, titleRender: (N) => jsx(En, { node: N }) }) })] })] });
28675
+ return jsxs(Fragment, { children: [jsxs("div", { className: "ant-transfer-list-header", children: [jsx(Col, { flex: 1, children: jsxs(Checkbox, { indeterminate: g, onChange: E, checked: C, children: [d.length > 0 ? `${d.length}/` : "", `${((r = ee(I)) == null ? void 0 : r.length) || 0} ${A("exportModalItemsUnit", l)}`] }) }), jsx(Col, { flex: 1, style: { textAlign: "right" }, children: A(u === "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: G, prefix: jsx(Vr, { style: { color: "#ccc" } }) }) }), jsx("div", { style: { minHeight: 400 }, children: jsx(Tree$2, { ...B, height: 400, selectable: !1, blockNode: !0, checkable: !0, checkStrictly: !0, checkedKeys: u === "left" ? S : d, loadData: u === "left" ? s : void 0, treeData: I, onCheck: T, titleRender: (N) => jsx(En, { node: N }) }) })] })] });
28676
28676
  }, nt = k(Col)`
28677
28677
  padding: 0.5rem;
28678
28678
  border-color: #d9d9d9;
@@ -28699,7 +28699,7 @@ const Kt = (e) => {
28699
28699
  }, [c]), I = useCallback((y) => {
28700
28700
  h(y);
28701
28701
  }, [c]);
28702
- return jsxs(Row, { style: { height: 400 }, children: [jsx(nt, { children: jsx(rt, { mode: "left", locale: s, targetKeys: c, dataSource: o, onLoadData: a, onChange: v, selectedKeys: d, setSelectedKeys: w, setTargetKeys: u }) }), jsx(Col, { flex: 0.05, children: jsx(kn, { toLeftDisabled: p.length === 0, toRightDisabled: d.length === 0, onToRight: m, onToLeft: g }) }), jsx(nt, { children: jsx(rt, { mode: "right", locale: s, targetKeys: c, dataSource: o, onLoadData: a, onChange: C, selectedKeys: p, setSelectedKeys: I, setTargetKeys: u }) })] });
28702
+ return jsxs(Row, { children: [jsx(nt, { children: jsx(rt, { mode: "left", locale: s, targetKeys: c, dataSource: o, onLoadData: a, onChange: v, selectedKeys: d, setSelectedKeys: w, setTargetKeys: u }) }), jsx(Col, { flex: 0.05, children: jsx(kn, { toLeftDisabled: p.length === 0, toRightDisabled: d.length === 0, onToRight: m, onToLeft: g }) }), jsx(nt, { children: jsx(rt, { mode: "right", locale: s, targetKeys: c, dataSource: o, onLoadData: a, onChange: C, selectedKeys: p, setSelectedKeys: I, setTargetKeys: u }) })] });
28703
28703
  }, { error: at } = Modal, An = ({ targetKeys: e, locale: r, onGetFields: o, onGetFieldChilds: a, onChange: s }) => {
28704
28704
  const [l, c] = useState$1(), [u, d] = useState$1(!0);
28705
28705
  useEffect(() => {
@@ -30627,11 +30627,11 @@ function TreeActionBar(e) {
30627
30627
  width: "1em",
30628
30628
  height: "1em",
30629
30629
  viewBox: "0 0 24 24",
30630
- "stroke-width": "1.5",
30630
+ strokeWidth: "1.5",
30631
30631
  fill: "none",
30632
30632
  stroke: "currentColor",
30633
- "stroke-linecap": "round",
30634
- "stroke-linejoin": "round",
30633
+ strokeLinecap: "round",
30634
+ strokeLinejoin: "round",
30635
30635
  children: [/* @__PURE__ */ jsx("path", {
30636
30636
  stroke: "none",
30637
30637
  d: "M0 0h24v24H0z",
@@ -30683,7 +30683,7 @@ function TreeActionBar(e) {
30683
30683
  limit: T,
30684
30684
  totalRegisters: G || 0,
30685
30685
  selectedRegistersToExport: s,
30686
- visibleRegisters: S == null ? void 0 : S.length,
30686
+ visibleRegisters: (S == null ? void 0 : S.length) || 0,
30687
30687
  context: E
30688
30688
  })]
30689
30689
  });