@gisce/react-ooui 2.99.0-alpha.3 → 2.99.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
CHANGED
|
@@ -5371,7 +5371,7 @@ const Fp = (t) => /* @__PURE__ */ s(Ye, { ...t, children: /* @__PURE__ */ s(vl,
|
|
|
5371
5371
|
}) => {
|
|
5372
5372
|
if (!t)
|
|
5373
5373
|
return null;
|
|
5374
|
-
const n = typeof t == "string" ? t.split(
|
|
5374
|
+
const n = typeof t == "string" ? t.replace(/,/g, ";").split(";").map((r) => r.trim()) : t;
|
|
5375
5375
|
return /* @__PURE__ */ s(we, { children: n.map((r, o) => /* @__PURE__ */ s(
|
|
5376
5376
|
es,
|
|
5377
5377
|
{
|
|
@@ -5389,18 +5389,18 @@ const Fp = (t) => /* @__PURE__ */ s(Ye, { ...t, children: /* @__PURE__ */ s(vl,
|
|
|
5389
5389
|
readonly: r = !1
|
|
5390
5390
|
}) => {
|
|
5391
5391
|
const { token: o } = rt.useToken(), [i, a] = S(
|
|
5392
|
-
t ? t.split(
|
|
5392
|
+
t ? t.replace(/,/g, ";").split(";").map((v) => v.trim()).filter((v) => v) : []
|
|
5393
5393
|
), [c, l] = S(""), d = K(null), f = ge(nt), { elementHasLostFocus: u } = f || {};
|
|
5394
5394
|
je(() => {
|
|
5395
5395
|
if (t) {
|
|
5396
|
-
const v = t.split(
|
|
5396
|
+
const v = t.replace(/,/g, ";").split(";").map((y) => y.trim()).filter(Boolean);
|
|
5397
5397
|
a(v);
|
|
5398
5398
|
} else
|
|
5399
5399
|
a([]);
|
|
5400
5400
|
}, [t]);
|
|
5401
5401
|
const p = R(
|
|
5402
5402
|
(v) => {
|
|
5403
|
-
e && e(v.join("
|
|
5403
|
+
e && e(v.join(";"));
|
|
5404
5404
|
},
|
|
5405
5405
|
[e]
|
|
5406
5406
|
), m = (v) => {
|
|
@@ -5409,13 +5409,13 @@ const Fp = (t) => /* @__PURE__ */ s(Ye, { ...t, children: /* @__PURE__ */ s(vl,
|
|
|
5409
5409
|
b ? C = [y.trimEnd(), ""] : C = /["<>]/.test(y) ? y.split(/[,;]+/) : y.split(/[ ,;]+/);
|
|
5410
5410
|
const w = C.slice(0, -1).map((x) => x.trim()).filter((x) => x && !i.includes(x));
|
|
5411
5411
|
if (w.length > 0) {
|
|
5412
|
-
const x = [...i, ...w].join("
|
|
5412
|
+
const x = [...i, ...w].join(";");
|
|
5413
5413
|
(!n || x.length + C[C.length - 1].length <= n) && (a([...i, ...w]), p([...i, ...w]), l(C[C.length - 1]));
|
|
5414
5414
|
} else
|
|
5415
5415
|
l(y);
|
|
5416
5416
|
}, g = () => {
|
|
5417
5417
|
if (c) {
|
|
5418
|
-
const v = c.split(
|
|
5418
|
+
const v = c.replace(/,/g, ";").split(";").map((b) => b.trim()).filter((b) => b && !i.includes(b)), y = [...i, ...v].join(";");
|
|
5419
5419
|
(!n || y.length <= n) && (a([...i, ...v]), p([...i, ...v])), l("");
|
|
5420
5420
|
}
|
|
5421
5421
|
u && u();
|