@snmt-react-ui/city-select 2.3.0 → 2.3.1
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/city-select.js +72 -72
- package/package.json +3 -3
package/dist/city-select.js
CHANGED
@@ -6784,10 +6784,10 @@ const Q1 = ({ children: i, width: e, size: t = "small", onClose: o, closable: s
|
|
6784
6784
|
extraOptions: N,
|
6785
6785
|
dropdownRender: v,
|
6786
6786
|
optionRender: E,
|
6787
|
-
isLoading:
|
6788
|
-
readOnly:
|
6787
|
+
isLoading: R,
|
6788
|
+
readOnly: V
|
6789
6789
|
}, L) => {
|
6790
|
-
const [
|
6790
|
+
const [M, b] = O(!1), [x, Z] = O(!1), [J, U] = O(!0), [y, I] = O(i), B = r1(null);
|
6791
6791
|
W(() => {
|
6792
6792
|
I(i);
|
6793
6793
|
}, [i]);
|
@@ -6800,7 +6800,7 @@ const Q1 = ({ children: i, width: e, size: t = "small", onClose: o, closable: s
|
|
6800
6800
|
Z(!0);
|
6801
6801
|
}, $ = () => {
|
6802
6802
|
Z(!1);
|
6803
|
-
},
|
6803
|
+
}, H = G(
|
6804
6804
|
(f) => {
|
6805
6805
|
if (I(f), o) {
|
6806
6806
|
const j = f;
|
@@ -6812,19 +6812,19 @@ const Q1 = ({ children: i, width: e, size: t = "small", onClose: o, closable: s
|
|
6812
6812
|
},
|
6813
6813
|
[o, e]
|
6814
6814
|
), Y = G(() => {
|
6815
|
-
if (!
|
6815
|
+
if (!V) {
|
6816
6816
|
if (o) {
|
6817
|
-
|
6817
|
+
H([]);
|
6818
6818
|
return;
|
6819
6819
|
}
|
6820
|
-
|
6820
|
+
H("");
|
6821
6821
|
}
|
6822
|
-
}, [
|
6822
|
+
}, [H, o, V]), T = G(
|
6823
6823
|
(f) => {
|
6824
6824
|
const _ = y.filter((j) => j !== f);
|
6825
|
-
|
6825
|
+
H(_), I(_);
|
6826
6826
|
},
|
6827
|
-
[
|
6827
|
+
[H, y]
|
6828
6828
|
), t1 = G(
|
6829
6829
|
(f) => (y == null ? void 0 : y.indexOf(f)) === 0 ? (
|
6830
6830
|
// if the search input is empty
|
@@ -6854,13 +6854,13 @@ const Q1 = ({ children: i, width: e, size: t = "small", onClose: o, closable: s
|
|
6854
6854
|
values: f,
|
6855
6855
|
onTagClose: T,
|
6856
6856
|
maxWidth: ((_ = B.current) == null ? void 0 : _.clientWidth) || 0,
|
6857
|
-
disabled: r ||
|
6857
|
+
disabled: r || V,
|
6858
6858
|
options: l,
|
6859
6859
|
extraOptions: N
|
6860
6860
|
}
|
6861
6861
|
);
|
6862
6862
|
},
|
6863
|
-
[r, N, T, l,
|
6863
|
+
[r, N, T, l, V]
|
6864
6864
|
), le = G(
|
6865
6865
|
({ label: f, value: _, mode: j }) => j === "filter" ? t1(_) : /* @__PURE__ */ n("div", { onMouseDown: se, className: "tag-wrapper", children: /* @__PURE__ */ n(Q1, { onClose: () => T(_), closable: !r, children: /* @__PURE__ */ n(q1, { variant: "body4", children: typeof f == "object" ? f : m1(_) }) }) }),
|
6866
6866
|
[r, m1, T, t1]
|
@@ -6869,7 +6869,7 @@ const Q1 = ({ children: i, width: e, size: t = "small", onClose: o, closable: s
|
|
6869
6869
|
"div",
|
6870
6870
|
{
|
6871
6871
|
className: `snmt-select ${x ? "snmt-select-focused" : ""}
|
6872
|
-
${o ? "" : "snmt-select-single"} ${
|
6872
|
+
${o ? "" : "snmt-select-single"} ${V ? "snmt-select-read-only" : ""}`,
|
6873
6873
|
ref: B,
|
6874
6874
|
style: { width: c },
|
6875
6875
|
children: [
|
@@ -6877,7 +6877,7 @@ const Q1 = ({ children: i, width: e, size: t = "small", onClose: o, closable: s
|
|
6877
6877
|
de,
|
6878
6878
|
{
|
6879
6879
|
className: "snmt-select-blank",
|
6880
|
-
popupClassName:
|
6880
|
+
popupClassName: V ? "dropdown-read-only" : "",
|
6881
6881
|
id: w,
|
6882
6882
|
ref: L,
|
6883
6883
|
showSearch: !!s,
|
@@ -6888,7 +6888,7 @@ const Q1 = ({ children: i, width: e, size: t = "small", onClose: o, closable: s
|
|
6888
6888
|
value: y || void 0,
|
6889
6889
|
labelRender: (f) => m1(f.value),
|
6890
6890
|
mode: o === "filter" ? "multiple" : o,
|
6891
|
-
onChange:
|
6891
|
+
onChange: H,
|
6892
6892
|
onFocus: F,
|
6893
6893
|
onBlur: $,
|
6894
6894
|
onSearch: (f) => {
|
@@ -6900,7 +6900,7 @@ const Q1 = ({ children: i, width: e, size: t = "small", onClose: o, closable: s
|
|
6900
6900
|
maxTagCount: "responsive",
|
6901
6901
|
maxTagPlaceholder: re,
|
6902
6902
|
onPopupScroll: ne,
|
6903
|
-
prefix:
|
6903
|
+
prefix: R && /* @__PURE__ */ n(b1, { size: 15 }),
|
6904
6904
|
suffixIcon: /* @__PURE__ */ n("div", { className: "wrapper-suffix-icon", children: o !== "filter" && /* @__PURE__ */ u(e1, { children: [
|
6905
6905
|
o && y && !!y.length && /* @__PURE__ */ n("div", { onClick: Y, children: /* @__PURE__ */ n(a1, { name: "cancel" }) }),
|
6906
6906
|
/* @__PURE__ */ n(
|
@@ -6908,8 +6908,8 @@ const Q1 = ({ children: i, width: e, size: t = "small", onClose: o, closable: s
|
|
6908
6908
|
{
|
6909
6909
|
name: "selectArrowIcon",
|
6910
6910
|
color: r ? X.GREY_DARK_1 : X.GREY_DARK_5,
|
6911
|
-
className:
|
6912
|
-
onClick: () => b(!
|
6911
|
+
className: M ? "select-arrow-rotated" : "select-arrow",
|
6912
|
+
onClick: () => b(!M)
|
6913
6913
|
}
|
6914
6914
|
)
|
6915
6915
|
] }) }),
|
@@ -6938,7 +6938,7 @@ const Q1 = ({ children: i, width: e, size: t = "small", onClose: o, closable: s
|
|
6938
6938
|
}
|
6939
6939
|
)
|
6940
6940
|
] }),
|
6941
|
-
dropdownRender:
|
6941
|
+
dropdownRender: R ? () => /* @__PURE__ */ n(
|
6942
6942
|
"div",
|
6943
6943
|
{
|
6944
6944
|
style: {
|
@@ -7323,8 +7323,8 @@ class p1 extends w1 {
|
|
7323
7323
|
}
|
7324
7324
|
const h = this.resolve(e, t);
|
7325
7325
|
let C = h && h.res;
|
7326
|
-
const p = h && h.usedKey || c, w = h && h.exactUsedKey || c, N = Object.prototype.toString.apply(C), v = ["[object Number]", "[object Function]", "[object RegExp]"], E = t.joinArrays !== void 0 ? t.joinArrays : this.options.joinArrays,
|
7327
|
-
if (
|
7326
|
+
const p = h && h.usedKey || c, w = h && h.exactUsedKey || c, N = Object.prototype.toString.apply(C), v = ["[object Number]", "[object Function]", "[object RegExp]"], E = t.joinArrays !== void 0 ? t.joinArrays : this.options.joinArrays, R = !this.i18nFormat || this.i18nFormat.handleAsObject;
|
7327
|
+
if (R && C && (typeof C != "string" && typeof C != "boolean" && typeof C != "number") && v.indexOf(N) < 0 && !(typeof E == "string" && Array.isArray(C))) {
|
7328
7328
|
if (!t.returnObjects && !this.options.returnObjects) {
|
7329
7329
|
this.options.returnedObjectHandler || this.logger.warn("accessing an object - but returnObjects options is not enabled!");
|
7330
7330
|
const L = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(p, C, {
|
@@ -7334,53 +7334,53 @@ class p1 extends w1 {
|
|
7334
7334
|
return s ? (h.res = L, h.usedParams = this.getUsedParamsDetails(t), h) : L;
|
7335
7335
|
}
|
7336
7336
|
if (l) {
|
7337
|
-
const L = Array.isArray(C),
|
7337
|
+
const L = Array.isArray(C), M = L ? [] : {}, b = L ? w : p;
|
7338
7338
|
for (const x in C)
|
7339
7339
|
if (Object.prototype.hasOwnProperty.call(C, x)) {
|
7340
7340
|
const Z = `${b}${l}${x}`;
|
7341
|
-
|
7341
|
+
M[x] = this.translate(Z, {
|
7342
7342
|
...t,
|
7343
7343
|
joinArrays: !1,
|
7344
7344
|
ns: r
|
7345
|
-
}),
|
7345
|
+
}), M[x] === Z && (M[x] = C[x]);
|
7346
7346
|
}
|
7347
|
-
C =
|
7347
|
+
C = M;
|
7348
7348
|
}
|
7349
|
-
} else if (
|
7349
|
+
} else if (R && typeof E == "string" && Array.isArray(C))
|
7350
7350
|
C = C.join(E), C && (C = this.extendTranslation(C, e, t, o));
|
7351
7351
|
else {
|
7352
|
-
let L = !1,
|
7352
|
+
let L = !1, M = !1;
|
7353
7353
|
const b = t.count !== void 0 && typeof t.count != "string", x = p1.hasDefaultValue(t), Z = b ? this.pluralResolver.getSuffix(g, t.count, t) : "", J = t.ordinal && b ? this.pluralResolver.getSuffix(g, t.count, {
|
7354
7354
|
ordinal: !1
|
7355
7355
|
}) : "", U = b && !t.ordinal && t.count === 0 && this.pluralResolver.shouldUseIntlApi(), y = U && t[`defaultValue${this.options.pluralSeparator}zero`] || t[`defaultValue${Z}`] || t[`defaultValue${J}`] || t.defaultValue;
|
7356
|
-
!this.isValidLookup(C) && x && (L = !0, C = y), this.isValidLookup(C) || (
|
7357
|
-
const B = (t.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) &&
|
7358
|
-
if (
|
7356
|
+
!this.isValidLookup(C) && x && (L = !0, C = y), this.isValidLookup(C) || (M = !0, C = c);
|
7357
|
+
const B = (t.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && M ? void 0 : C, D = x && y !== C && this.options.updateMissing;
|
7358
|
+
if (M || L || D) {
|
7359
7359
|
if (this.logger.log(D ? "updateKey" : "missingKey", g, d, c, D ? y : C), l) {
|
7360
|
-
const
|
7360
|
+
const H = this.resolve(c, {
|
7361
7361
|
...t,
|
7362
7362
|
keySeparator: !1
|
7363
7363
|
});
|
7364
|
-
|
7364
|
+
H && H.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.");
|
7365
7365
|
}
|
7366
7366
|
let P = [];
|
7367
7367
|
const F = this.languageUtils.getFallbackCodes(this.options.fallbackLng, t.lng || this.language);
|
7368
7368
|
if (this.options.saveMissingTo === "fallback" && F && F[0])
|
7369
|
-
for (let
|
7370
|
-
P.push(F[
|
7369
|
+
for (let H = 0; H < F.length; H++)
|
7370
|
+
P.push(F[H]);
|
7371
7371
|
else this.options.saveMissingTo === "all" ? P = this.languageUtils.toResolveHierarchy(t.lng || this.language) : P.push(t.lng || this.language);
|
7372
|
-
const $ = (
|
7372
|
+
const $ = (H, Y, T) => {
|
7373
7373
|
const t1 = x && T !== C ? T : B;
|
7374
|
-
this.options.missingKeyHandler ? this.options.missingKeyHandler(
|
7374
|
+
this.options.missingKeyHandler ? this.options.missingKeyHandler(H, d, Y, t1, D, t) : this.backendConnector && this.backendConnector.saveMissing && this.backendConnector.saveMissing(H, d, Y, t1, D, t), this.emit("missingKey", H, d, Y, C);
|
7375
7375
|
};
|
7376
|
-
this.options.saveMissing && (this.options.saveMissingPlurals && b ? P.forEach((
|
7377
|
-
const Y = this.pluralResolver.getSuffixes(
|
7376
|
+
this.options.saveMissing && (this.options.saveMissingPlurals && b ? P.forEach((H) => {
|
7377
|
+
const Y = this.pluralResolver.getSuffixes(H, t);
|
7378
7378
|
U && t[`defaultValue${this.options.pluralSeparator}zero`] && Y.indexOf(`${this.options.pluralSeparator}zero`) < 0 && Y.push(`${this.options.pluralSeparator}zero`), Y.forEach((T) => {
|
7379
|
-
$([
|
7379
|
+
$([H], c + T, t[`defaultValue${T}`] || y);
|
7380
7380
|
});
|
7381
7381
|
}) : $(P, c, y));
|
7382
7382
|
}
|
7383
|
-
C = this.extendTranslation(C, e, t, h, o),
|
7383
|
+
C = this.extendTranslation(C, e, t, h, o), M && C === c && this.options.appendNamespaceToMissingKey && (C = `${d}:${c}`), (M || L) && this.options.parseMissingKeyHandler && (this.options.compatibilityAPI !== "v1" ? C = this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey ? `${d}:${c}` : c, L ? C : void 0) : C = this.options.parseMissingKeyHandler(C));
|
7384
7384
|
}
|
7385
7385
|
return s ? (h.res = C, h.usedParams = this.getUsedParamsDetails(t), h) : C;
|
7386
7386
|
}
|
@@ -7443,21 +7443,21 @@ class p1 extends w1 {
|
|
7443
7443
|
this.isValidLookup(o) || (r = v, !S1[`${N[0]}-${v}`] && this.utils && this.utils.hasLoadedNamespace && !this.utils.hasLoadedNamespace(r) && (S1[`${N[0]}-${v}`] = !0, this.logger.warn(`key "${s}" for languages "${N.join(", ")}" won't get resolved as namespace "${r}" 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!!!")), N.forEach((E) => {
|
7444
7444
|
if (this.isValidLookup(o)) return;
|
7445
7445
|
c = E;
|
7446
|
-
const
|
7446
|
+
const R = [a];
|
7447
7447
|
if (this.i18nFormat && this.i18nFormat.addLookupKeys)
|
7448
|
-
this.i18nFormat.addLookupKeys(
|
7448
|
+
this.i18nFormat.addLookupKeys(R, a, E, v, t);
|
7449
7449
|
else {
|
7450
7450
|
let L;
|
7451
7451
|
C && (L = this.pluralResolver.getSuffix(E, t.count, t));
|
7452
|
-
const
|
7453
|
-
if (C && (
|
7452
|
+
const M = `${this.options.pluralSeparator}zero`, b = `${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;
|
7453
|
+
if (C && (R.push(a + L), t.ordinal && L.indexOf(b) === 0 && R.push(a + L.replace(b, this.options.pluralSeparator)), p && R.push(a + M)), w) {
|
7454
7454
|
const x = `${a}${this.options.contextSeparator}${t.context}`;
|
7455
|
-
|
7455
|
+
R.push(x), C && (R.push(x + L), t.ordinal && L.indexOf(b) === 0 && R.push(x + L.replace(b, this.options.pluralSeparator)), p && R.push(x + M));
|
7456
7456
|
}
|
7457
7457
|
}
|
7458
|
-
let
|
7459
|
-
for (;
|
7460
|
-
this.isValidLookup(o) || (l =
|
7458
|
+
let V;
|
7459
|
+
for (; V = R.pop(); )
|
7460
|
+
this.isValidLookup(o) || (l = V, o = this.getResource(E, v, V, t));
|
7461
7461
|
}));
|
7462
7462
|
});
|
7463
7463
|
}), {
|
@@ -7784,9 +7784,9 @@ class Qi {
|
|
7784
7784
|
nestingSuffixEscaped: N,
|
7785
7785
|
nestingOptionsSeparator: v,
|
7786
7786
|
maxReplaces: E,
|
7787
|
-
alwaysFormat:
|
7787
|
+
alwaysFormat: R
|
7788
7788
|
} = e.interpolation;
|
7789
|
-
this.escape = t !== void 0 ? t : Di, this.escapeValue = o !== void 0 ? o : !0, this.useRawValueToEscape = s !== void 0 ? s : !1, this.prefix = l ? Q(l) : c || "{{", this.suffix = r ? Q(r) : d || "}}", this.formatSeparator = g || ",", this.unescapePrefix = a ? "" : h || "-", this.unescapeSuffix = this.unescapePrefix ? "" : a || "", this.nestingPrefix = C ? Q(C) : p || Q("$t("), this.nestingSuffix = w ? Q(w) : N || Q(")"), this.nestingOptionsSeparator = v || ",", this.maxReplaces = E || 1e3, this.alwaysFormat =
|
7789
|
+
this.escape = t !== void 0 ? t : Di, this.escapeValue = o !== void 0 ? o : !0, this.useRawValueToEscape = s !== void 0 ? s : !1, this.prefix = l ? Q(l) : c || "{{", this.suffix = r ? Q(r) : d || "}}", this.formatSeparator = g || ",", this.unescapePrefix = a ? "" : h || "-", this.unescapeSuffix = this.unescapePrefix ? "" : a || "", this.nestingPrefix = C ? Q(C) : p || Q("$t("), this.nestingSuffix = w ? Q(w) : N || Q(")"), this.nestingOptionsSeparator = v || ",", this.maxReplaces = E || 1e3, this.alwaysFormat = R !== void 0 ? R : !1, this.resetRegExp();
|
7790
7790
|
}
|
7791
7791
|
reset() {
|
7792
7792
|
this.options && this.init(this.options);
|
@@ -8567,8 +8567,8 @@ const m5 = (i, e) => {
|
|
8567
8567
|
} = l1(f5) || {}, l = t || o || C5();
|
8568
8568
|
if (l && !l.reportNamespaces && (l.reportNamespaces = new w5()), !l) {
|
8569
8569
|
R1("You will need to pass in an i18next instance by using initReactI18next");
|
8570
|
-
const L = (b, x) => z(x) ? x : r5(x) && z(x.defaultValue) ? x.defaultValue : Array.isArray(b) ? b[b.length - 1] : b,
|
8571
|
-
return
|
8570
|
+
const L = (b, x) => z(x) ? x : r5(x) && z(x.defaultValue) ? x.defaultValue : Array.isArray(b) ? b[b.length - 1] : b, M = [L, {}, !1];
|
8571
|
+
return M.t = L, M.i18n = {}, M.ready = !1, M;
|
8572
8572
|
}
|
8573
8573
|
l.options.react && l.options.react.wait !== void 0 && R1("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");
|
8574
8574
|
const c = {
|
@@ -8584,28 +8584,28 @@ const m5 = (i, e) => {
|
|
8584
8584
|
const a = (l.isInitialized || l.initializedStoreOnce) && g.every((L) => n5(L, l, c)), h = k5(l, e.lng || null, c.nsMode === "fallback" ? g : g[0], d), C = () => h, p = () => oe(l, e.lng || null, c.nsMode === "fallback" ? g : g[0], d), [w, N] = O(C);
|
8585
8585
|
let v = g.join();
|
8586
8586
|
e.lng && (v = `${e.lng}${v}`);
|
8587
|
-
const E = m5(v),
|
8587
|
+
const E = m5(v), R = r1(!0);
|
8588
8588
|
W(() => {
|
8589
8589
|
const {
|
8590
8590
|
bindI18n: L,
|
8591
|
-
bindI18nStore:
|
8591
|
+
bindI18nStore: M
|
8592
8592
|
} = c;
|
8593
|
-
|
8594
|
-
|
8593
|
+
R.current = !0, !a && !r && (e.lng ? T1(l, e.lng, g, () => {
|
8594
|
+
R.current && N(p);
|
8595
8595
|
}) : D1(l, g, () => {
|
8596
|
-
|
8597
|
-
})), a && E && E !== v &&
|
8596
|
+
R.current && N(p);
|
8597
|
+
})), a && E && E !== v && R.current && N(p);
|
8598
8598
|
const b = () => {
|
8599
|
-
|
8599
|
+
R.current && N(p);
|
8600
8600
|
};
|
8601
|
-
return L && l && l.on(L, b),
|
8602
|
-
|
8601
|
+
return L && l && l.on(L, b), M && l && l.store.on(M, b), () => {
|
8602
|
+
R.current = !1, L && l && L.split(" ").forEach((x) => l.off(x, b)), M && l && M.split(" ").forEach((x) => l.store.off(x, b));
|
8603
8603
|
};
|
8604
8604
|
}, [l, v]), W(() => {
|
8605
|
-
|
8605
|
+
R.current && a && N(C);
|
8606
8606
|
}, [l, d, a]);
|
8607
|
-
const
|
8608
|
-
if (
|
8607
|
+
const V = [w, l, a];
|
8608
|
+
if (V.t = w, V.i18n = l, V.ready = a, a || !a && !r) return V;
|
8609
8609
|
throw new Promise((L) => {
|
8610
8610
|
e.lng ? T1(l, e.lng, g, () => L()) : D1(l, g, () => L());
|
8611
8611
|
});
|
@@ -8666,22 +8666,22 @@ const P1 = {
|
|
8666
8666
|
offset: 0
|
8667
8667
|
}, W5 = f1(
|
8668
8668
|
({ width: i, selectedCountry: e, onChange: t, value: o, id: s, disabled: l }, c) => {
|
8669
|
-
const [r, d] = O([]), [g, a] = O(P1), [h, C] = O(null), [p, w] = O([]), [N, v] = O(!1), [E,
|
8670
|
-
if (!
|
8669
|
+
const [r, d] = O([]), [g, a] = O(P1), [h, C] = O(null), [p, w] = O([]), [N, v] = O(!1), [E, R] = O(!1), V = r1(e), { locale: L, axiosPeople: M } = l1(ce);
|
8670
|
+
if (!M)
|
8671
8671
|
throw new Error(
|
8672
8672
|
`CitySelect requires "axiosPeople" to fetch cities.
|
8673
8673
|
Please provide it via SNMTUiContext.`
|
8674
8674
|
);
|
8675
8675
|
const { t: b } = L5("common", { lng: L }), x = G(
|
8676
8676
|
async (y) => {
|
8677
|
-
y ?
|
8677
|
+
y ? R(!0) : v(!0);
|
8678
8678
|
try {
|
8679
8679
|
const I = {
|
8680
8680
|
offset: g.offset,
|
8681
8681
|
limit: g.limit
|
8682
8682
|
};
|
8683
8683
|
e && e.length > 0 && (I.countryId = e), y && (I.search = y);
|
8684
|
-
const B = await
|
8684
|
+
const B = await M.post("v1/cities/search", I), D = (B == null ? void 0 : B.data.data) || [], P = B == null ? void 0 : B.data.metadata.count, F = D.map(($) => ({
|
8685
8685
|
key: K1(),
|
8686
8686
|
label: $.name,
|
8687
8687
|
value: $.geoNameId
|
@@ -8690,10 +8690,10 @@ const P1 = {
|
|
8690
8690
|
($) => g.offset === 0 ? F : [...$, ...F]
|
8691
8691
|
), w(D), C(P);
|
8692
8692
|
} finally {
|
8693
|
-
v(!1),
|
8693
|
+
v(!1), R(!1);
|
8694
8694
|
}
|
8695
8695
|
},
|
8696
|
-
[
|
8696
|
+
[M, g, e]
|
8697
8697
|
);
|
8698
8698
|
W(() => {
|
8699
8699
|
a(P1);
|
@@ -8708,11 +8708,11 @@ const P1 = {
|
|
8708
8708
|
}));
|
8709
8709
|
d(
|
8710
8710
|
(I) => g.offset === 0 ? y : [...I, ...y]
|
8711
|
-
),
|
8711
|
+
), V.current = e, o && t(o);
|
8712
8712
|
}, [e, t, o, p, g.offset]);
|
8713
8713
|
const Z = _5(x), J = G(
|
8714
8714
|
(y) => {
|
8715
|
-
a((I) => ({ ...I, offset: 0, search: y })),
|
8715
|
+
a((I) => ({ ...I, offset: 0, search: y })), R(!0), Z(y);
|
8716
8716
|
},
|
8717
8717
|
[Z]
|
8718
8718
|
), U = async (y) => {
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@snmt-react-ui/city-select",
|
3
3
|
"private": false,
|
4
|
-
"version": "2.3.
|
4
|
+
"version": "2.3.1",
|
5
5
|
"type": "module",
|
6
6
|
"main": "dist/city-select.js",
|
7
7
|
"types": "dist/index.d.ts",
|
@@ -19,7 +19,7 @@
|
|
19
19
|
},
|
20
20
|
"dependencies": {
|
21
21
|
"@snmt-react-ui/core": "^2.1.0",
|
22
|
-
"@snmt-react-ui/select": "^1.13.
|
22
|
+
"@snmt-react-ui/select": "^1.13.1",
|
23
23
|
"i18next": "^23.11.5",
|
24
24
|
"react-i18next": "^14.1.1",
|
25
25
|
"uuid": "^10.0.0"
|
@@ -27,5 +27,5 @@
|
|
27
27
|
"peerDependencies": {
|
28
28
|
"antd": "^5.22.0"
|
29
29
|
},
|
30
|
-
"gitHead": "
|
30
|
+
"gitHead": "87f6c40269debe98b4f49c9a61be7437ea9e38bd"
|
31
31
|
}
|