@snmt-react-ui/user-select 2.5.2 → 2.5.3
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/user-select.js +85 -85
- package/package.json +4 -4
package/dist/user-select.js
CHANGED
|
@@ -6784,10 +6784,10 @@ const z1 = ({ children: i, width: e, size: t = "small", onClose: s, closable: n
|
|
|
6784
6784
|
extraOptions: R,
|
|
6785
6785
|
dropdownRender: N,
|
|
6786
6786
|
optionRender: E,
|
|
6787
|
-
isLoading:
|
|
6788
|
-
readOnly:
|
|
6787
|
+
isLoading: M,
|
|
6788
|
+
readOnly: H
|
|
6789
6789
|
}, m) => {
|
|
6790
|
-
const [
|
|
6790
|
+
const [y, x] = A(!1), [f, I] = A(!1), [B, S] = A(!0), [b, D] = A(i), j = l1(null);
|
|
6791
6791
|
G(() => {
|
|
6792
6792
|
D(i);
|
|
6793
6793
|
}, [i]);
|
|
@@ -6800,7 +6800,7 @@ const z1 = ({ children: i, width: e, size: t = "small", onClose: s, closable: n
|
|
|
6800
6800
|
I(!0);
|
|
6801
6801
|
}, U = () => {
|
|
6802
6802
|
I(!1);
|
|
6803
|
-
},
|
|
6803
|
+
}, V = Z(
|
|
6804
6804
|
(w) => {
|
|
6805
6805
|
if (D(w), s) {
|
|
6806
6806
|
const K = w;
|
|
@@ -6812,19 +6812,19 @@ const z1 = ({ children: i, width: e, size: t = "small", onClose: s, closable: n
|
|
|
6812
6812
|
},
|
|
6813
6813
|
[s, e]
|
|
6814
6814
|
), F = Z(() => {
|
|
6815
|
-
if (!
|
|
6815
|
+
if (!H) {
|
|
6816
6816
|
if (s) {
|
|
6817
|
-
|
|
6817
|
+
V([]);
|
|
6818
6818
|
return;
|
|
6819
6819
|
}
|
|
6820
|
-
|
|
6820
|
+
V("");
|
|
6821
6821
|
}
|
|
6822
|
-
}, [
|
|
6822
|
+
}, [V, s, H]), P = Z(
|
|
6823
6823
|
(w) => {
|
|
6824
6824
|
const O = b.filter((K) => K !== w);
|
|
6825
|
-
|
|
6825
|
+
V(O), D(O);
|
|
6826
6826
|
},
|
|
6827
|
-
[
|
|
6827
|
+
[V, b]
|
|
6828
6828
|
), e1 = Z(
|
|
6829
6829
|
(w) => (b == null ? void 0 : b.indexOf(w)) === 0 ? (
|
|
6830
6830
|
// if the search input is empty
|
|
@@ -6854,13 +6854,13 @@ const z1 = ({ children: i, width: e, size: t = "small", onClose: s, closable: n
|
|
|
6854
6854
|
values: w,
|
|
6855
6855
|
onTagClose: P,
|
|
6856
6856
|
maxWidth: ((O = j.current) == null ? void 0 : O.clientWidth) || 0,
|
|
6857
|
-
disabled: o ||
|
|
6857
|
+
disabled: o || H,
|
|
6858
6858
|
options: l,
|
|
6859
6859
|
extraOptions: R
|
|
6860
6860
|
}
|
|
6861
6861
|
);
|
|
6862
6862
|
},
|
|
6863
|
-
[o, R, P, l,
|
|
6863
|
+
[o, R, P, l, H]
|
|
6864
6864
|
), re = Z(
|
|
6865
6865
|
({ label: w, value: O, mode: K }) => K === "filter" ? e1(O) : /* @__PURE__ */ r("div", { onMouseDown: ie, className: "tag-wrapper", children: /* @__PURE__ */ r(z1, { onClose: () => P(O), closable: !o, children: /* @__PURE__ */ r(J1, { variant: "body4", children: typeof w == "object" ? w : m1(O) }) }) }),
|
|
6866
6866
|
[o, m1, P, e1]
|
|
@@ -6869,7 +6869,7 @@ const z1 = ({ children: i, width: e, size: t = "small", onClose: s, closable: n
|
|
|
6869
6869
|
"div",
|
|
6870
6870
|
{
|
|
6871
6871
|
className: `snmt-select ${f ? "snmt-select-focused" : ""}
|
|
6872
|
-
${s ? "" : "snmt-select-single"} ${
|
|
6872
|
+
${s ? "" : "snmt-select-single"} ${H ? "snmt-select-read-only" : ""}`,
|
|
6873
6873
|
ref: j,
|
|
6874
6874
|
style: { width: c },
|
|
6875
6875
|
children: [
|
|
@@ -6877,7 +6877,7 @@ const z1 = ({ children: i, width: e, size: t = "small", onClose: s, closable: n
|
|
|
6877
6877
|
he,
|
|
6878
6878
|
{
|
|
6879
6879
|
className: "snmt-select-blank",
|
|
6880
|
-
popupClassName:
|
|
6880
|
+
popupClassName: H ? "dropdown-read-only" : "",
|
|
6881
6881
|
id: v,
|
|
6882
6882
|
ref: m,
|
|
6883
6883
|
showSearch: !!n,
|
|
@@ -6888,7 +6888,7 @@ const z1 = ({ children: i, width: e, size: t = "small", onClose: s, closable: n
|
|
|
6888
6888
|
value: b || void 0,
|
|
6889
6889
|
labelRender: (w) => m1(w.value),
|
|
6890
6890
|
mode: s === "filter" ? "multiple" : s,
|
|
6891
|
-
onChange:
|
|
6891
|
+
onChange: V,
|
|
6892
6892
|
onFocus: Y,
|
|
6893
6893
|
onBlur: U,
|
|
6894
6894
|
onSearch: (w) => {
|
|
@@ -6900,7 +6900,7 @@ const z1 = ({ children: i, width: e, size: t = "small", onClose: s, closable: n
|
|
|
6900
6900
|
maxTagCount: "responsive",
|
|
6901
6901
|
maxTagPlaceholder: ne,
|
|
6902
6902
|
onPopupScroll: se,
|
|
6903
|
-
prefix:
|
|
6903
|
+
prefix: M && /* @__PURE__ */ r(y1, { size: 15 }),
|
|
6904
6904
|
suffixIcon: /* @__PURE__ */ r("div", { className: "wrapper-suffix-icon", children: s !== "filter" && /* @__PURE__ */ u(X, { children: [
|
|
6905
6905
|
s && b && !!b.length && /* @__PURE__ */ r("div", { onClick: F, children: /* @__PURE__ */ r(h1, { name: "cancel" }) }),
|
|
6906
6906
|
/* @__PURE__ */ r(
|
|
@@ -6908,8 +6908,8 @@ const z1 = ({ children: i, width: e, size: t = "small", onClose: s, closable: n
|
|
|
6908
6908
|
{
|
|
6909
6909
|
name: "selectArrowIcon",
|
|
6910
6910
|
color: o ? q.GREY_DARK_1 : q.GREY_DARK_5,
|
|
6911
|
-
className:
|
|
6912
|
-
onClick: () => x(!
|
|
6911
|
+
className: y ? "select-arrow-rotated" : "select-arrow",
|
|
6912
|
+
onClick: () => x(!y)
|
|
6913
6913
|
}
|
|
6914
6914
|
)
|
|
6915
6915
|
] }) }),
|
|
@@ -6938,7 +6938,7 @@ const z1 = ({ children: i, width: e, size: t = "small", onClose: s, closable: n
|
|
|
6938
6938
|
}
|
|
6939
6939
|
)
|
|
6940
6940
|
] }),
|
|
6941
|
-
dropdownRender:
|
|
6941
|
+
dropdownRender: M ? () => /* @__PURE__ */ r(
|
|
6942
6942
|
"div",
|
|
6943
6943
|
{
|
|
6944
6944
|
style: {
|
|
@@ -6998,34 +6998,34 @@ const t1 = {
|
|
|
6998
6998
|
dropdownRender: p,
|
|
6999
6999
|
readOnly: v
|
|
7000
7000
|
}, R) => {
|
|
7001
|
-
const [N, E] = A([]), [
|
|
7001
|
+
const [N, E] = A([]), [M, H] = A(t1), [m, y] = A(!1), [x, f] = A(null), I = Z(
|
|
7002
7002
|
async (_ = !1, T) => {
|
|
7003
7003
|
if (!m) {
|
|
7004
|
-
|
|
7004
|
+
y(!0);
|
|
7005
7005
|
try {
|
|
7006
|
-
const Y = _ ? { ...t1, search: T } :
|
|
7006
|
+
const Y = _ ? { ...t1, search: T } : M, U = await i(Y);
|
|
7007
7007
|
E(
|
|
7008
|
-
(
|
|
7009
|
-
), f(U.count),
|
|
7010
|
-
...
|
|
7011
|
-
offset:
|
|
7008
|
+
(V) => _ ? U.options : [...V, ...U.options]
|
|
7009
|
+
), f(U.count), H((V) => ({
|
|
7010
|
+
...V,
|
|
7011
|
+
offset: V.offset + V.limit
|
|
7012
7012
|
}));
|
|
7013
7013
|
} finally {
|
|
7014
|
-
|
|
7014
|
+
y(!1);
|
|
7015
7015
|
}
|
|
7016
7016
|
}
|
|
7017
7017
|
},
|
|
7018
|
-
[
|
|
7018
|
+
[M, i, m]
|
|
7019
7019
|
), B = Ii(I), S = Z(
|
|
7020
7020
|
(_) => {
|
|
7021
|
-
_ === "" || _ === void 0 || _ === null ? (
|
|
7021
|
+
_ === "" || _ === void 0 || _ === null ? (H(t1), B(!0)) : B(!0, _);
|
|
7022
7022
|
},
|
|
7023
7023
|
[B]
|
|
7024
7024
|
), b = async (_) => {
|
|
7025
7025
|
_ && x !== null && x > N.length && await I(!1);
|
|
7026
7026
|
}, D = Z(
|
|
7027
7027
|
(_) => {
|
|
7028
|
-
_ && !g && (E([]),
|
|
7028
|
+
_ && !g && (E([]), H(t1), I(!0)), h == null || h(_);
|
|
7029
7029
|
},
|
|
7030
7030
|
// eslint-disable-next-line
|
|
7031
7031
|
[g]
|
|
@@ -7056,7 +7056,7 @@ const t1 = {
|
|
|
7056
7056
|
};
|
|
7057
7057
|
return ae(R, () => ({
|
|
7058
7058
|
refetchOptions: async () => {
|
|
7059
|
-
|
|
7059
|
+
H(t1), await I(!0);
|
|
7060
7060
|
}
|
|
7061
7061
|
})), d ? /* @__PURE__ */ r(b1, { ...j, onChange: t, value: s, mode: d }) : /* @__PURE__ */ r("div", { className: "snmt-async-select", children: /* @__PURE__ */ r(b1, { ...j, onChange: t, value: s }) });
|
|
7062
7062
|
}
|
|
@@ -7192,8 +7192,8 @@ const zi = (i, e) => {
|
|
|
7192
7192
|
} = a1(Yi) || {}, l = t || s || $i();
|
|
7193
7193
|
if (l && !l.reportNamespaces && (l.reportNamespaces = new Ui()), !l) {
|
|
7194
7194
|
N1("You will need to pass in an i18next instance by using initReactI18next");
|
|
7195
|
-
const m = (x, f) => z(f) ? f : Wi(f) && z(f.defaultValue) ? f.defaultValue : Array.isArray(x) ? x[x.length - 1] : x,
|
|
7196
|
-
return
|
|
7195
|
+
const m = (x, f) => z(f) ? f : Wi(f) && z(f.defaultValue) ? f.defaultValue : Array.isArray(x) ? x[x.length - 1] : x, y = [m, {}, !1];
|
|
7196
|
+
return y.t = m, y.i18n = {}, y.ready = !1, y;
|
|
7197
7197
|
}
|
|
7198
7198
|
l.options.react && l.options.react.wait !== void 0 && N1("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");
|
|
7199
7199
|
const c = {
|
|
@@ -7209,28 +7209,28 @@ const zi = (i, e) => {
|
|
|
7209
7209
|
const a = (l.isInitialized || l.initializedStoreOnce) && g.every((m) => Bi(m, l, c)), h = Ji(l, e.lng || null, c.nsMode === "fallback" ? g : g[0], d), C = () => h, p = () => X1(l, e.lng || null, c.nsMode === "fallback" ? g : g[0], d), [v, R] = A(C);
|
|
7210
7210
|
let N = g.join();
|
|
7211
7211
|
e.lng && (N = `${e.lng}${N}`);
|
|
7212
|
-
const E = zi(N),
|
|
7212
|
+
const E = zi(N), M = l1(!0);
|
|
7213
7213
|
G(() => {
|
|
7214
7214
|
const {
|
|
7215
7215
|
bindI18n: m,
|
|
7216
|
-
bindI18nStore:
|
|
7216
|
+
bindI18nStore: y
|
|
7217
7217
|
} = c;
|
|
7218
|
-
|
|
7219
|
-
|
|
7218
|
+
M.current = !0, !a && !o && (e.lng ? _1(l, e.lng, g, () => {
|
|
7219
|
+
M.current && R(p);
|
|
7220
7220
|
}) : H1(l, g, () => {
|
|
7221
|
-
|
|
7222
|
-
})), a && E && E !== N &&
|
|
7221
|
+
M.current && R(p);
|
|
7222
|
+
})), a && E && E !== N && M.current && R(p);
|
|
7223
7223
|
const x = () => {
|
|
7224
|
-
|
|
7224
|
+
M.current && R(p);
|
|
7225
7225
|
};
|
|
7226
|
-
return m && l && l.on(m, x),
|
|
7227
|
-
|
|
7226
|
+
return m && l && l.on(m, x), y && l && l.store.on(y, x), () => {
|
|
7227
|
+
M.current = !1, m && l && m.split(" ").forEach((f) => l.off(f, x)), y && l && y.split(" ").forEach((f) => l.store.off(f, x));
|
|
7228
7228
|
};
|
|
7229
7229
|
}, [l, N]), G(() => {
|
|
7230
|
-
|
|
7230
|
+
M.current && a && R(C);
|
|
7231
7231
|
}, [l, d, a]);
|
|
7232
|
-
const
|
|
7233
|
-
if (
|
|
7232
|
+
const H = [v, l, a];
|
|
7233
|
+
if (H.t = v, H.i18n = l, H.ready = a, a || !a && !o) return H;
|
|
7234
7234
|
throw new Promise((m) => {
|
|
7235
7235
|
e.lng ? _1(l, e.lng, g, () => m()) : H1(l, g, () => m());
|
|
7236
7236
|
});
|
|
@@ -7592,8 +7592,8 @@ class f1 extends w1 {
|
|
|
7592
7592
|
}
|
|
7593
7593
|
const h = this.resolve(e, t);
|
|
7594
7594
|
let C = h && h.res;
|
|
7595
|
-
const p = h && h.usedKey || c, v = h && h.exactUsedKey || c, R = Object.prototype.toString.apply(C), N = ["[object Number]", "[object Function]", "[object RegExp]"], E = t.joinArrays !== void 0 ? t.joinArrays : this.options.joinArrays,
|
|
7596
|
-
if (
|
|
7595
|
+
const p = h && h.usedKey || c, v = h && h.exactUsedKey || c, R = Object.prototype.toString.apply(C), N = ["[object Number]", "[object Function]", "[object RegExp]"], E = t.joinArrays !== void 0 ? t.joinArrays : this.options.joinArrays, M = !this.i18nFormat || this.i18nFormat.handleAsObject;
|
|
7596
|
+
if (M && C && (typeof C != "string" && typeof C != "boolean" && typeof C != "number") && N.indexOf(R) < 0 && !(typeof E == "string" && Array.isArray(C))) {
|
|
7597
7597
|
if (!t.returnObjects && !this.options.returnObjects) {
|
|
7598
7598
|
this.options.returnedObjectHandler || this.logger.warn("accessing an object - but returnObjects options is not enabled!");
|
|
7599
7599
|
const m = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(p, C, {
|
|
@@ -7603,53 +7603,53 @@ class f1 extends w1 {
|
|
|
7603
7603
|
return n ? (h.res = m, h.usedParams = this.getUsedParamsDetails(t), h) : m;
|
|
7604
7604
|
}
|
|
7605
7605
|
if (l) {
|
|
7606
|
-
const m = Array.isArray(C),
|
|
7606
|
+
const m = Array.isArray(C), y = m ? [] : {}, x = m ? v : p;
|
|
7607
7607
|
for (const f in C)
|
|
7608
7608
|
if (Object.prototype.hasOwnProperty.call(C, f)) {
|
|
7609
7609
|
const I = `${x}${l}${f}`;
|
|
7610
|
-
|
|
7610
|
+
y[f] = this.translate(I, {
|
|
7611
7611
|
...t,
|
|
7612
7612
|
joinArrays: !1,
|
|
7613
7613
|
ns: o
|
|
7614
|
-
}),
|
|
7614
|
+
}), y[f] === I && (y[f] = C[f]);
|
|
7615
7615
|
}
|
|
7616
|
-
C =
|
|
7616
|
+
C = y;
|
|
7617
7617
|
}
|
|
7618
|
-
} else if (
|
|
7618
|
+
} else if (M && typeof E == "string" && Array.isArray(C))
|
|
7619
7619
|
C = C.join(E), C && (C = this.extendTranslation(C, e, t, s));
|
|
7620
7620
|
else {
|
|
7621
|
-
let m = !1,
|
|
7621
|
+
let m = !1, y = !1;
|
|
7622
7622
|
const x = t.count !== void 0 && typeof t.count != "string", f = f1.hasDefaultValue(t), I = x ? this.pluralResolver.getSuffix(g, t.count, t) : "", B = t.ordinal && x ? this.pluralResolver.getSuffix(g, t.count, {
|
|
7623
7623
|
ordinal: !1
|
|
7624
7624
|
}) : "", S = x && !t.ordinal && t.count === 0 && this.pluralResolver.shouldUseIntlApi(), b = S && t[`defaultValue${this.options.pluralSeparator}zero`] || t[`defaultValue${I}`] || t[`defaultValue${B}`] || t.defaultValue;
|
|
7625
|
-
!this.isValidLookup(C) && f && (m = !0, C = b), this.isValidLookup(C) || (
|
|
7626
|
-
const j = (t.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) &&
|
|
7627
|
-
if (
|
|
7625
|
+
!this.isValidLookup(C) && f && (m = !0, C = b), this.isValidLookup(C) || (y = !0, C = c);
|
|
7626
|
+
const j = (t.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && y ? void 0 : C, _ = f && b !== C && this.options.updateMissing;
|
|
7627
|
+
if (y || m || _) {
|
|
7628
7628
|
if (this.logger.log(_ ? "updateKey" : "missingKey", g, d, c, _ ? b : C), l) {
|
|
7629
|
-
const
|
|
7629
|
+
const V = this.resolve(c, {
|
|
7630
7630
|
...t,
|
|
7631
7631
|
keySeparator: !1
|
|
7632
7632
|
});
|
|
7633
|
-
|
|
7633
|
+
V && V.res && this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.");
|
|
7634
7634
|
}
|
|
7635
7635
|
let T = [];
|
|
7636
7636
|
const Y = this.languageUtils.getFallbackCodes(this.options.fallbackLng, t.lng || this.language);
|
|
7637
7637
|
if (this.options.saveMissingTo === "fallback" && Y && Y[0])
|
|
7638
|
-
for (let
|
|
7639
|
-
T.push(Y[
|
|
7638
|
+
for (let V = 0; V < Y.length; V++)
|
|
7639
|
+
T.push(Y[V]);
|
|
7640
7640
|
else this.options.saveMissingTo === "all" ? T = this.languageUtils.toResolveHierarchy(t.lng || this.language) : T.push(t.lng || this.language);
|
|
7641
|
-
const U = (
|
|
7641
|
+
const U = (V, F, P) => {
|
|
7642
7642
|
const e1 = f && P !== C ? P : j;
|
|
7643
|
-
this.options.missingKeyHandler ? this.options.missingKeyHandler(
|
|
7643
|
+
this.options.missingKeyHandler ? this.options.missingKeyHandler(V, d, F, e1, _, t) : this.backendConnector && this.backendConnector.saveMissing && this.backendConnector.saveMissing(V, d, F, e1, _, t), this.emit("missingKey", V, d, F, C);
|
|
7644
7644
|
};
|
|
7645
|
-
this.options.saveMissing && (this.options.saveMissingPlurals && x ? T.forEach((
|
|
7646
|
-
const F = this.pluralResolver.getSuffixes(
|
|
7645
|
+
this.options.saveMissing && (this.options.saveMissingPlurals && x ? T.forEach((V) => {
|
|
7646
|
+
const F = this.pluralResolver.getSuffixes(V, t);
|
|
7647
7647
|
S && t[`defaultValue${this.options.pluralSeparator}zero`] && F.indexOf(`${this.options.pluralSeparator}zero`) < 0 && F.push(`${this.options.pluralSeparator}zero`), F.forEach((P) => {
|
|
7648
|
-
U([
|
|
7648
|
+
U([V], c + P, t[`defaultValue${P}`] || b);
|
|
7649
7649
|
});
|
|
7650
7650
|
}) : U(T, c, b));
|
|
7651
7651
|
}
|
|
7652
|
-
C = this.extendTranslation(C, e, t, h, s),
|
|
7652
|
+
C = this.extendTranslation(C, e, t, h, s), y && C === c && this.options.appendNamespaceToMissingKey && (C = `${d}:${c}`), (y || m) && this.options.parseMissingKeyHandler && (this.options.compatibilityAPI !== "v1" ? C = this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey ? `${d}:${c}` : c, m ? C : void 0) : C = this.options.parseMissingKeyHandler(C));
|
|
7653
7653
|
}
|
|
7654
7654
|
return n ? (h.res = C, h.usedParams = this.getUsedParamsDetails(t), h) : C;
|
|
7655
7655
|
}
|
|
@@ -7712,21 +7712,21 @@ class f1 extends w1 {
|
|
|
7712
7712
|
this.isValidLookup(s) || (o = N, !W1[`${R[0]}-${N}`] && this.utils && this.utils.hasLoadedNamespace && !this.utils.hasLoadedNamespace(o) && (W1[`${R[0]}-${N}`] = !0, this.logger.warn(`key "${n}" for languages "${R.join(", ")}" won't get resolved as namespace "${o}" was not yet loaded`, "This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")), R.forEach((E) => {
|
|
7713
7713
|
if (this.isValidLookup(s)) return;
|
|
7714
7714
|
c = E;
|
|
7715
|
-
const
|
|
7715
|
+
const M = [a];
|
|
7716
7716
|
if (this.i18nFormat && this.i18nFormat.addLookupKeys)
|
|
7717
|
-
this.i18nFormat.addLookupKeys(
|
|
7717
|
+
this.i18nFormat.addLookupKeys(M, a, E, N, t);
|
|
7718
7718
|
else {
|
|
7719
7719
|
let m;
|
|
7720
7720
|
C && (m = this.pluralResolver.getSuffix(E, t.count, t));
|
|
7721
|
-
const
|
|
7722
|
-
if (C && (
|
|
7721
|
+
const y = `${this.options.pluralSeparator}zero`, x = `${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;
|
|
7722
|
+
if (C && (M.push(a + m), t.ordinal && m.indexOf(x) === 0 && M.push(a + m.replace(x, this.options.pluralSeparator)), p && M.push(a + y)), v) {
|
|
7723
7723
|
const f = `${a}${this.options.contextSeparator}${t.context}`;
|
|
7724
|
-
|
|
7724
|
+
M.push(f), C && (M.push(f + m), t.ordinal && m.indexOf(x) === 0 && M.push(f + m.replace(x, this.options.pluralSeparator)), p && M.push(f + y));
|
|
7725
7725
|
}
|
|
7726
7726
|
}
|
|
7727
|
-
let
|
|
7728
|
-
for (;
|
|
7729
|
-
this.isValidLookup(s) || (l =
|
|
7727
|
+
let H;
|
|
7728
|
+
for (; H = M.pop(); )
|
|
7729
|
+
this.isValidLookup(s) || (l = H, s = this.getResource(E, N, H, t));
|
|
7730
7730
|
}));
|
|
7731
7731
|
});
|
|
7732
7732
|
}), {
|
|
@@ -8053,9 +8053,9 @@ class p5 {
|
|
|
8053
8053
|
nestingSuffixEscaped: R,
|
|
8054
8054
|
nestingOptionsSeparator: N,
|
|
8055
8055
|
maxReplaces: E,
|
|
8056
|
-
alwaysFormat:
|
|
8056
|
+
alwaysFormat: M
|
|
8057
8057
|
} = e.interpolation;
|
|
8058
|
-
this.escape = t !== void 0 ? t : n5, this.escapeValue = s !== void 0 ? s : !0, this.useRawValueToEscape = n !== void 0 ? n : !1, this.prefix = l ? J(l) : c || "{{", this.suffix = o ? J(o) : d || "}}", this.formatSeparator = g || ",", this.unescapePrefix = a ? "" : h || "-", this.unescapeSuffix = this.unescapePrefix ? "" : a || "", this.nestingPrefix = C ? J(C) : p || J("$t("), this.nestingSuffix = v ? J(v) : R || J(")"), this.nestingOptionsSeparator = N || ",", this.maxReplaces = E || 1e3, this.alwaysFormat =
|
|
8058
|
+
this.escape = t !== void 0 ? t : n5, this.escapeValue = s !== void 0 ? s : !0, this.useRawValueToEscape = n !== void 0 ? n : !1, this.prefix = l ? J(l) : c || "{{", this.suffix = o ? J(o) : d || "}}", this.formatSeparator = g || ",", this.unescapePrefix = a ? "" : h || "-", this.unescapeSuffix = this.unescapePrefix ? "" : a || "", this.nestingPrefix = C ? J(C) : p || J("$t("), this.nestingSuffix = v ? J(v) : R || J(")"), this.nestingOptionsSeparator = N || ",", this.maxReplaces = E || 1e3, this.alwaysFormat = M !== void 0 ? M : !1, this.resetRegExp();
|
|
8059
8059
|
}
|
|
8060
8060
|
reset() {
|
|
8061
8061
|
this.options && this.init(this.options);
|
|
@@ -8757,7 +8757,7 @@ const O5 = o1(
|
|
|
8757
8757
|
return x.deletedAt && (f += `[${h("deleted")}] `), x.status === g1.ARCHIVED && (f += `[${h("archived")}] `), `${f}${x.firstName} ${x.lastName}`;
|
|
8758
8758
|
},
|
|
8759
8759
|
[h]
|
|
8760
|
-
),
|
|
8760
|
+
), M = Z(
|
|
8761
8761
|
async ({
|
|
8762
8762
|
offset: x,
|
|
8763
8763
|
limit: f,
|
|
@@ -8790,7 +8790,7 @@ const O5 = o1(
|
|
|
8790
8790
|
}
|
|
8791
8791
|
},
|
|
8792
8792
|
[g, i, c, E]
|
|
8793
|
-
),
|
|
8793
|
+
), H = Z(
|
|
8794
8794
|
async (x) => {
|
|
8795
8795
|
var f, I, B;
|
|
8796
8796
|
try {
|
|
@@ -8826,17 +8826,17 @@ const O5 = o1(
|
|
|
8826
8826
|
return;
|
|
8827
8827
|
}
|
|
8828
8828
|
(async () => {
|
|
8829
|
-
const f = Array.isArray(n) ? n : [n], I = await
|
|
8829
|
+
const f = Array.isArray(n) ? n : [n], I = await H(f);
|
|
8830
8830
|
p(I), R(!1);
|
|
8831
8831
|
})();
|
|
8832
|
-
}, [
|
|
8832
|
+
}, [H, n]);
|
|
8833
8833
|
const m = Z(
|
|
8834
8834
|
async ({
|
|
8835
8835
|
limit: x,
|
|
8836
8836
|
offset: f,
|
|
8837
8837
|
search: I
|
|
8838
8838
|
}) => {
|
|
8839
|
-
const { count: B, ...S } = await
|
|
8839
|
+
const { count: B, ...S } = await M({
|
|
8840
8840
|
offset: f,
|
|
8841
8841
|
limit: x,
|
|
8842
8842
|
search: I
|
|
@@ -8848,11 +8848,11 @@ const O5 = o1(
|
|
|
8848
8848
|
limit: x
|
|
8849
8849
|
};
|
|
8850
8850
|
},
|
|
8851
|
-
[o,
|
|
8851
|
+
[o, M]
|
|
8852
8852
|
);
|
|
8853
8853
|
if (v)
|
|
8854
8854
|
return /* @__PURE__ */ r(Oi, {});
|
|
8855
|
-
const
|
|
8855
|
+
const y = {
|
|
8856
8856
|
ref: d,
|
|
8857
8857
|
placeholder: t,
|
|
8858
8858
|
disabled: s
|
|
@@ -8860,7 +8860,7 @@ const O5 = o1(
|
|
|
8860
8860
|
return e ? /* @__PURE__ */ r(
|
|
8861
8861
|
E1,
|
|
8862
8862
|
{
|
|
8863
|
-
...
|
|
8863
|
+
...y,
|
|
8864
8864
|
mode: e,
|
|
8865
8865
|
value: n,
|
|
8866
8866
|
onChange: l,
|
|
@@ -8871,7 +8871,7 @@ const O5 = o1(
|
|
|
8871
8871
|
) : /* @__PURE__ */ r(
|
|
8872
8872
|
E1,
|
|
8873
8873
|
{
|
|
8874
|
-
...
|
|
8874
|
+
...y,
|
|
8875
8875
|
value: n,
|
|
8876
8876
|
mode: void 0,
|
|
8877
8877
|
onChange: l,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@snmt-react-ui/user-select",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "2.5.
|
|
4
|
+
"version": "2.5.3",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/user-select.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
@@ -18,15 +18,15 @@
|
|
|
18
18
|
"build": "tsc && vite build"
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@snmt-react-ui/async-select": "^1.5.
|
|
21
|
+
"@snmt-react-ui/async-select": "^1.5.3",
|
|
22
22
|
"@snmt-react-ui/core": "^2.1.0",
|
|
23
23
|
"@snmt-react-ui/loader": "^1.4.0",
|
|
24
|
-
"@snmt-react-ui/select": "^1.13.
|
|
24
|
+
"@snmt-react-ui/select": "^1.13.1"
|
|
25
25
|
},
|
|
26
26
|
"peerDependencies": {
|
|
27
27
|
"antd": "^5.22.3",
|
|
28
28
|
"i18next": "^23.11.1",
|
|
29
29
|
"react-i18next": "^14.1.0"
|
|
30
30
|
},
|
|
31
|
-
"gitHead": "
|
|
31
|
+
"gitHead": "87f6c40269debe98b4f49c9a61be7437ea9e38bd"
|
|
32
32
|
}
|