@snmt-react-ui/async-select 1.6.4 → 1.7.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/async-select.js +184 -182
- package/package.json +2 -2
package/dist/async-select.js
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import "./index.css";
|
|
2
|
-
import { jsx as t, Fragment as
|
|
3
|
-
import { createContext as
|
|
2
|
+
import { jsx as t, Fragment as K, jsxs as c } from "react/jsx-runtime";
|
|
3
|
+
import { createContext as P, forwardRef as s1, useState as x, useRef as i1, useEffect as G, useCallback as Z, useContext as $, useImperativeHandle as x1 } from "react";
|
|
4
4
|
import { Select as _1, Flex as R1, Avatar as H1, Checkbox as E1, Typography as V1, Tag as Z1, Popover as I1 } from "antd";
|
|
5
5
|
var W1 = Object.defineProperty, B1 = (o, i, e) => i in o ? W1(o, i, { enumerable: !0, configurable: !0, writable: !0, value: e }) : o[i] = e, A1 = (o, i, e) => B1(o, i + "", e), G1 = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
6
6
|
function y1() {
|
|
7
7
|
if (console && console.warn) {
|
|
8
8
|
for (var o = arguments.length, i = new Array(o), e = 0; e < o; e++)
|
|
9
9
|
i[e] = arguments[e];
|
|
10
|
-
|
|
10
|
+
b(i[0]) && (i[0] = `react-i18next:: ${i[0]}`), console.warn(...i);
|
|
11
11
|
}
|
|
12
12
|
}
|
|
13
|
-
const
|
|
14
|
-
function
|
|
13
|
+
const a1 = {};
|
|
14
|
+
function n1() {
|
|
15
15
|
for (var o = arguments.length, i = new Array(o), e = 0; e < o; e++)
|
|
16
16
|
i[e] = arguments[e];
|
|
17
|
-
|
|
17
|
+
b(i[0]) && a1[i[0]] || (b(i[0]) && (a1[i[0]] = /* @__PURE__ */ new Date()), y1(...i));
|
|
18
18
|
}
|
|
19
|
-
const
|
|
19
|
+
const k1 = (o, i) => () => {
|
|
20
20
|
if (o.isInitialized)
|
|
21
21
|
i();
|
|
22
22
|
else {
|
|
@@ -27,12 +27,12 @@ const g1 = (o, i) => () => {
|
|
|
27
27
|
};
|
|
28
28
|
o.on("initialized", e);
|
|
29
29
|
}
|
|
30
|
-
},
|
|
31
|
-
o.loadNamespaces(i,
|
|
32
|
-
},
|
|
33
|
-
|
|
30
|
+
}, d1 = (o, i, e) => {
|
|
31
|
+
o.loadNamespaces(i, k1(o, e));
|
|
32
|
+
}, C1 = (o, i, e, l) => {
|
|
33
|
+
b(e) && (e = [e]), e.forEach((r) => {
|
|
34
34
|
o.options.ns.indexOf(r) < 0 && o.options.ns.push(r);
|
|
35
|
-
}), o.loadLanguages(i,
|
|
35
|
+
}), o.loadLanguages(i, k1(o, l));
|
|
36
36
|
}, D1 = function(o, i) {
|
|
37
37
|
let e = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
38
38
|
const l = i.languages[0], r = i.options ? i.options.fallbackLng : !1, a = i.languages[i.languages.length - 1];
|
|
@@ -44,13 +44,13 @@ const g1 = (o, i) => () => {
|
|
|
44
44
|
return e.bindI18n && e.bindI18n.indexOf("languageChanging") > -1 && i.services.backendConnector.backend && i.isLanguageChangingTo && !k(i.isLanguageChangingTo, o) ? !1 : !!(i.hasResourceBundle(l, o) || !i.services.backendConnector.backend || i.options.resources && !i.options.partialBundledLanguages || k(l, o) && (!r || k(a, o)));
|
|
45
45
|
}, j1 = function(o, i) {
|
|
46
46
|
let e = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
47
|
-
return !i.languages || !i.languages.length ? (
|
|
47
|
+
return !i.languages || !i.languages.length ? (n1("i18n.languages were undefined or empty", i.languages), !0) : i.options.ignoreJSONStructure !== void 0 ? i.hasLoadedNamespace(o, {
|
|
48
48
|
lng: e.lng,
|
|
49
49
|
precheck: (l, r) => {
|
|
50
50
|
if (e.bindI18n && e.bindI18n.indexOf("languageChanging") > -1 && l.services.backendConnector.backend && l.isLanguageChangingTo && !r(l.isLanguageChangingTo, o)) return !1;
|
|
51
51
|
}
|
|
52
52
|
}) : D1(o, i, e);
|
|
53
|
-
},
|
|
53
|
+
}, b = (o) => typeof o == "string", T1 = (o) => typeof o == "object" && o !== null, Y1 = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g, b1 = {
|
|
54
54
|
"&": "&",
|
|
55
55
|
"&": "&",
|
|
56
56
|
"<": "<",
|
|
@@ -84,7 +84,7 @@ let F1 = {
|
|
|
84
84
|
};
|
|
85
85
|
const S1 = () => F1;
|
|
86
86
|
let U1;
|
|
87
|
-
const P1 = () => U1, $1 =
|
|
87
|
+
const P1 = () => U1, $1 = P();
|
|
88
88
|
class z1 {
|
|
89
89
|
constructor() {
|
|
90
90
|
A1(this, "getUsedNamespaces", () => Object.keys(this.usedNamespaces)), this.usedNamespaces = {};
|
|
@@ -96,24 +96,24 @@ class z1 {
|
|
|
96
96
|
}
|
|
97
97
|
}
|
|
98
98
|
const J1 = (o, i) => {
|
|
99
|
-
const e =
|
|
99
|
+
const e = i1();
|
|
100
100
|
return G(() => {
|
|
101
101
|
e.current = o;
|
|
102
102
|
}, [o, i]), e.current;
|
|
103
|
-
},
|
|
103
|
+
}, p1 = (o, i, e, l) => o.getFixedT(i, e, l), q1 = (o, i, e, l) => Z(p1(o, i, e, l), [o, i, e, l]), Q1 = function(o) {
|
|
104
104
|
let i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
105
105
|
const {
|
|
106
106
|
i18n: e
|
|
107
107
|
} = i, {
|
|
108
108
|
i18n: l,
|
|
109
109
|
defaultNS: r
|
|
110
|
-
} =
|
|
110
|
+
} = $($1) || {}, a = e || l || P1();
|
|
111
111
|
if (a && !a.reportNamespaces && (a.reportNamespaces = new z1()), !a) {
|
|
112
|
-
|
|
113
|
-
const L = (
|
|
114
|
-
return
|
|
112
|
+
n1("You will need to pass in an i18next instance by using initReactI18next");
|
|
113
|
+
const L = (N, M) => b(M) ? M : T1(M) && b(M.defaultValue) ? M.defaultValue : Array.isArray(N) ? N[N.length - 1] : N, v = [L, {}, !1];
|
|
114
|
+
return v.t = L, v.i18n = {}, v.ready = !1, v;
|
|
115
115
|
}
|
|
116
|
-
a.options.react && a.options.react.wait !== void 0 &&
|
|
116
|
+
a.options.react && a.options.react.wait !== void 0 && n1("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");
|
|
117
117
|
const k = {
|
|
118
118
|
...S1(),
|
|
119
119
|
...a.options.react,
|
|
@@ -123,36 +123,36 @@ const J1 = (o, i) => {
|
|
|
123
123
|
keyPrefix: p
|
|
124
124
|
} = k;
|
|
125
125
|
let g = o;
|
|
126
|
-
g =
|
|
127
|
-
const h = (a.isInitialized || a.initializedStoreOnce) && g.every((L) => j1(L, a, k)), s = q1(a, i.lng || null, k.nsMode === "fallback" ? g : g[0], p),
|
|
126
|
+
g = b(g) ? [g] : g || ["translation"], a.reportNamespaces.addUsedNamespaces && a.reportNamespaces.addUsedNamespaces(g);
|
|
127
|
+
const h = (a.isInitialized || a.initializedStoreOnce) && g.every((L) => j1(L, a, k)), s = q1(a, i.lng || null, k.nsMode === "fallback" ? g : g[0], p), f = () => s, E = () => p1(a, i.lng || null, k.nsMode === "fallback" ? g : g[0], p), [I, W] = x(f);
|
|
128
128
|
let u = g.join();
|
|
129
129
|
i.lng && (u = `${i.lng}${u}`);
|
|
130
|
-
const y = J1(u), R =
|
|
130
|
+
const y = J1(u), R = i1(!0);
|
|
131
131
|
G(() => {
|
|
132
132
|
const {
|
|
133
133
|
bindI18n: L,
|
|
134
|
-
bindI18nStore:
|
|
134
|
+
bindI18nStore: v
|
|
135
135
|
} = k;
|
|
136
|
-
R.current = !0, !h && !n && (i.lng ?
|
|
137
|
-
R.current &&
|
|
138
|
-
}) :
|
|
139
|
-
R.current &&
|
|
140
|
-
})), h && y && y !== u && R.current &&
|
|
141
|
-
const
|
|
142
|
-
R.current &&
|
|
136
|
+
R.current = !0, !h && !n && (i.lng ? C1(a, i.lng, g, () => {
|
|
137
|
+
R.current && W(E);
|
|
138
|
+
}) : d1(a, g, () => {
|
|
139
|
+
R.current && W(E);
|
|
140
|
+
})), h && y && y !== u && R.current && W(E);
|
|
141
|
+
const N = () => {
|
|
142
|
+
R.current && W(E);
|
|
143
143
|
};
|
|
144
|
-
return L && a && a.on(L,
|
|
145
|
-
R.current = !1, L && a && L.split(" ").forEach((M) => a.off(M,
|
|
144
|
+
return L && a && a.on(L, N), v && a && a.store.on(v, N), () => {
|
|
145
|
+
R.current = !1, L && a && L.split(" ").forEach((M) => a.off(M, N)), v && a && v.split(" ").forEach((M) => a.store.off(M, N));
|
|
146
146
|
};
|
|
147
147
|
}, [a, u]), G(() => {
|
|
148
|
-
R.current && h &&
|
|
148
|
+
R.current && h && W(f);
|
|
149
149
|
}, [a, p, h]);
|
|
150
|
-
const
|
|
151
|
-
if (
|
|
150
|
+
const B = [I, a, h];
|
|
151
|
+
if (B.t = I, B.i18n = a, B.ready = h, h || !h && !n) return B;
|
|
152
152
|
throw new Promise((L) => {
|
|
153
|
-
i.lng ?
|
|
153
|
+
i.lng ? C1(a, i.lng, g, () => L()) : d1(a, g, () => L());
|
|
154
154
|
});
|
|
155
|
-
},
|
|
155
|
+
}, e1 = ({
|
|
156
156
|
children: o,
|
|
157
157
|
direction: i = "row",
|
|
158
158
|
flexWrap: e = "nowrap",
|
|
@@ -188,12 +188,12 @@ const J1 = (o, i) => {
|
|
|
188
188
|
}
|
|
189
189
|
);
|
|
190
190
|
};
|
|
191
|
-
var
|
|
192
|
-
const
|
|
191
|
+
var Y = /* @__PURE__ */ ((o) => (o.GREY_LIGHT_0 = "var(--grey-light-0)", o.GREY_LIGHT_1 = "var(--grey-light-1)", o.GREY_LIGHT_2 = "var(--grey-light-2)", o.GREY_LIGHT_3 = "var(--grey-light-3)", o.GREY_LIGHT_4 = "var(--grey-light-4)", o.GREY_DARK_1 = "var(--grey-dark-1)", o.GREY_DARK_2 = "var(--grey-dark-2)", o.GREY_DARK_3 = "var(--grey-dark-3)", o.GREY_DARK_4 = "var(--grey-dark-4)", o.GREY_DARK_5 = "var(--grey-dark-5)", o.BLUE_PRIMARY = "var(--blue-primary)", o.BLUE_HOVER = "var(--blue-hover)", o.BLUE_LIGHT_1 = "var(--blue-light-1)", o.BLUE_LIGHT_2 = "var(--blue-light-2)", o.BLUE_LIGHT_3 = "var(--blue-light-3)", o.BLUE_LIGHT_4 = "var(--blue-light-4)", o.BLUE_DARK_1 = "var(--blue-dark-1)", o.PURPLE_LIGHT = "var(--purple-light)", o.PURPLE_DARK = "var(--purple-dark)", o.NOTIFICATION_WARNING_LIGHT = "var(--notification-warning-light)", o.NOTIFICATION_WARNING_DARK = "var(--notification-warning-dark)", o.NOTIFICATION_SUCCESS_LIGHT = "var(--notification-success-light)", o.NOTIFICATION_SUCCESS_DARK = "var(--notification-success-dark)", o.NOTIFICATION_ERROR_LIGHT = "var(--notification-error-light)", o.NOTIFICATION_ERROR_DARK = "var(--notification-error-dark)", o.NOTIFICATION_ERROR_DARK_MODE = "var(--notification-error-dark-mode)", o))(Y || {});
|
|
192
|
+
const h1 = P({
|
|
193
193
|
locale: "en",
|
|
194
194
|
theme: "light"
|
|
195
195
|
});
|
|
196
|
-
|
|
196
|
+
h1.Provider;
|
|
197
197
|
const e2 = ({
|
|
198
198
|
checked: o = !0,
|
|
199
199
|
indeterminate: i = !1,
|
|
@@ -206,7 +206,7 @@ const e2 = ({
|
|
|
206
206
|
G(() => {
|
|
207
207
|
n(o), g(i);
|
|
208
208
|
}, [o, i]);
|
|
209
|
-
const { theme: h } =
|
|
209
|
+
const { theme: h } = $(h1);
|
|
210
210
|
return /* @__PURE__ */ t(
|
|
211
211
|
E1,
|
|
212
212
|
{
|
|
@@ -222,11 +222,11 @@ const e2 = ({
|
|
|
222
222
|
);
|
|
223
223
|
};
|
|
224
224
|
var C = /* @__PURE__ */ ((o) => (o.GREY_LIGHT_0 = "var(--grey-light-0)", o.GREY_LIGHT_1 = "var(--grey-light-1)", o.GREY_LIGHT_2 = "var(--grey-light-2)", o.GREY_LIGHT_3 = "var(--grey-light-3)", o.GREY_LIGHT_4 = "var(--grey-light-4)", o.GREY_DARK_1 = "var(--grey-dark-1)", o.GREY_DARK_2 = "var(--grey-dark-2)", o.GREY_DARK_3 = "var(--grey-dark-3)", o.GREY_DARK_4 = "var(--grey-dark-4)", o.GREY_DARK_5 = "var(--grey-dark-5)", o.BLUE_PRIMARY = "var(--blue-primary)", o.BLUE_HOVER = "var(--blue-hover)", o.BLUE_LIGHT_1 = "var(--blue-light-1)", o.BLUE_LIGHT_2 = "var(--blue-light-2)", o.BLUE_LIGHT_3 = "var(--blue-light-3)", o.BLUE_LIGHT_4 = "var(--blue-light-4)", o.BLUE_DARK_1 = "var(--blue-dark-1)", o.PURPLE_LIGHT = "var(--purple-light)", o.PURPLE_DARK = "var(--purple-dark)", o.NOTIFICATION_WARNING_LIGHT = "var(--notification-warning-light)", o.NOTIFICATION_WARNING_DARK = "var(--notification-warning-dark)", o.NOTIFICATION_SUCCESS_LIGHT = "var(--notification-success-light)", o.NOTIFICATION_SUCCESS_DARK = "var(--notification-success-dark)", o.NOTIFICATION_ERROR_LIGHT = "var(--notification-error-light)", o.NOTIFICATION_ERROR_DARK = "var(--notification-error-dark)", o.NOTIFICATION_ERROR_DARK_MODE = "var(--notification-error-dark-mode)", o))(C || {});
|
|
225
|
-
const
|
|
225
|
+
const L1 = P({
|
|
226
226
|
locale: "en",
|
|
227
227
|
theme: "light"
|
|
228
228
|
});
|
|
229
|
-
|
|
229
|
+
L1.Provider;
|
|
230
230
|
const i2 = ({
|
|
231
231
|
width: o = 20,
|
|
232
232
|
height: i = 20,
|
|
@@ -3270,7 +3270,7 @@ const i2 = ({
|
|
|
3270
3270
|
}
|
|
3271
3271
|
)
|
|
3272
3272
|
}
|
|
3273
|
-
),
|
|
3273
|
+
), X = ({
|
|
3274
3274
|
name: o,
|
|
3275
3275
|
width: i,
|
|
3276
3276
|
height: e,
|
|
@@ -3279,14 +3279,14 @@ const i2 = ({
|
|
|
3279
3279
|
disabled: a = !1,
|
|
3280
3280
|
onClick: k
|
|
3281
3281
|
}) => {
|
|
3282
|
-
const [n, p] = x(r), { theme: g } =
|
|
3282
|
+
const [n, p] = x(r), { theme: g } = $(L1), h = a ? g && g === "dark" ? C.GREY_LIGHT_4 : C.GREY_DARK_1 : l, s = a ? void 0 : k;
|
|
3283
3283
|
return G(() => {
|
|
3284
3284
|
if (r) {
|
|
3285
3285
|
s && !a && p(`${r} clickable`);
|
|
3286
3286
|
return;
|
|
3287
3287
|
}
|
|
3288
3288
|
s && !a && p("clickable");
|
|
3289
|
-
}, [s, r, a]), /* @__PURE__ */ t(
|
|
3289
|
+
}, [s, r, a]), /* @__PURE__ */ t(K, { children: (() => {
|
|
3290
3290
|
switch (o) {
|
|
3291
3291
|
case "nextIcon":
|
|
3292
3292
|
return P2({ width: i, height: e, color: h, className: n, onClick: s });
|
|
@@ -3529,7 +3529,7 @@ const i2 = ({
|
|
|
3529
3529
|
case "projects":
|
|
3530
3530
|
return Z5({ width: i, height: e, color: h, className: n, onClick: s });
|
|
3531
3531
|
default:
|
|
3532
|
-
return /* @__PURE__ */ t(
|
|
3532
|
+
return /* @__PURE__ */ t(K, { children: "No Icon provided" });
|
|
3533
3533
|
}
|
|
3534
3534
|
})() });
|
|
3535
3535
|
}, { Title: I5, Text: W5 } = V1, B5 = {
|
|
@@ -3537,7 +3537,7 @@ const i2 = ({
|
|
|
3537
3537
|
h2: 2,
|
|
3538
3538
|
h3: 3,
|
|
3539
3539
|
h4: 4
|
|
3540
|
-
}, A5 =
|
|
3540
|
+
}, A5 = s1(
|
|
3541
3541
|
({
|
|
3542
3542
|
align: o = "inherit",
|
|
3543
3543
|
variant: i = "body1",
|
|
@@ -3572,11 +3572,11 @@ const i2 = ({
|
|
|
3572
3572
|
}
|
|
3573
3573
|
);
|
|
3574
3574
|
var w = /* @__PURE__ */ ((o) => (o.GREY_LIGHT_0 = "var(--grey-light-0)", o.GREY_LIGHT_1 = "var(--grey-light-1)", o.GREY_LIGHT_2 = "var(--grey-light-2)", o.GREY_LIGHT_3 = "var(--grey-light-3)", o.GREY_LIGHT_4 = "var(--grey-light-4)", o.GREY_DARK_1 = "var(--grey-dark-1)", o.GREY_DARK_2 = "var(--grey-dark-2)", o.GREY_DARK_3 = "var(--grey-dark-3)", o.GREY_DARK_4 = "var(--grey-dark-4)", o.GREY_DARK_5 = "var(--grey-dark-5)", o.BLUE_PRIMARY = "var(--blue-primary)", o.BLUE_HOVER = "var(--blue-hover)", o.BLUE_LIGHT_1 = "var(--blue-light-1)", o.BLUE_LIGHT_2 = "var(--blue-light-2)", o.BLUE_LIGHT_3 = "var(--blue-light-3)", o.BLUE_LIGHT_4 = "var(--blue-light-4)", o.BLUE_DARK_1 = "var(--blue-dark-1)", o.PURPLE_LIGHT = "var(--purple-light)", o.PURPLE_DARK = "var(--purple-dark)", o.NOTIFICATION_WARNING_LIGHT = "var(--notification-warning-light)", o.NOTIFICATION_WARNING_DARK = "var(--notification-warning-dark)", o.NOTIFICATION_SUCCESS_LIGHT = "var(--notification-success-light)", o.NOTIFICATION_SUCCESS_DARK = "var(--notification-success-dark)", o.NOTIFICATION_ERROR_LIGHT = "var(--notification-error-light)", o.NOTIFICATION_ERROR_DARK = "var(--notification-error-dark)", o.NOTIFICATION_ERROR_DARK_MODE = "var(--notification-error-dark-mode)", o))(w || {});
|
|
3575
|
-
const
|
|
3575
|
+
const m1 = P({
|
|
3576
3576
|
locale: "en",
|
|
3577
3577
|
theme: "light"
|
|
3578
3578
|
});
|
|
3579
|
-
|
|
3579
|
+
m1.Provider;
|
|
3580
3580
|
const G5 = ({
|
|
3581
3581
|
width: o = 20,
|
|
3582
3582
|
height: i = 20,
|
|
@@ -6629,14 +6629,14 @@ const G5 = ({
|
|
|
6629
6629
|
disabled: a = !1,
|
|
6630
6630
|
onClick: k
|
|
6631
6631
|
}) => {
|
|
6632
|
-
const [n, p] = x(r), { theme: g } =
|
|
6632
|
+
const [n, p] = x(r), { theme: g } = $(m1), h = a ? g && g === "dark" ? w.GREY_LIGHT_4 : w.GREY_DARK_1 : l, s = a ? void 0 : k;
|
|
6633
6633
|
return G(() => {
|
|
6634
6634
|
if (r) {
|
|
6635
6635
|
s && !a && p(`${r} clickable`);
|
|
6636
6636
|
return;
|
|
6637
6637
|
}
|
|
6638
6638
|
s && !a && p("clickable");
|
|
6639
|
-
}, [s, r, a]), /* @__PURE__ */ t(
|
|
6639
|
+
}, [s, r, a]), /* @__PURE__ */ t(K, { children: (() => {
|
|
6640
6640
|
switch (o) {
|
|
6641
6641
|
case "nextIcon":
|
|
6642
6642
|
return H3({ width: i, height: e, color: h, className: n, onClick: s });
|
|
@@ -6879,17 +6879,17 @@ const G5 = ({
|
|
|
6879
6879
|
case "projects":
|
|
6880
6880
|
return a6({ width: i, height: e, color: h, className: n, onClick: s });
|
|
6881
6881
|
default:
|
|
6882
|
-
return /* @__PURE__ */ t(
|
|
6882
|
+
return /* @__PURE__ */ t(K, { children: "No Icon provided" });
|
|
6883
6883
|
}
|
|
6884
6884
|
})() });
|
|
6885
6885
|
};
|
|
6886
|
-
var
|
|
6887
|
-
const C6 =
|
|
6886
|
+
var U = /* @__PURE__ */ ((o) => (o.GREY_LIGHT_0 = "var(--grey-light-0)", o.GREY_LIGHT_1 = "var(--grey-light-1)", o.GREY_LIGHT_2 = "var(--grey-light-2)", o.GREY_LIGHT_3 = "var(--grey-light-3)", o.GREY_LIGHT_4 = "var(--grey-light-4)", o.GREY_DARK_1 = "var(--grey-dark-1)", o.GREY_DARK_2 = "var(--grey-dark-2)", o.GREY_DARK_3 = "var(--grey-dark-3)", o.GREY_DARK_4 = "var(--grey-dark-4)", o.GREY_DARK_5 = "var(--grey-dark-5)", o.BLUE_PRIMARY = "var(--blue-primary)", o.BLUE_HOVER = "var(--blue-hover)", o.BLUE_LIGHT_1 = "var(--blue-light-1)", o.BLUE_LIGHT_2 = "var(--blue-light-2)", o.BLUE_LIGHT_3 = "var(--blue-light-3)", o.BLUE_LIGHT_4 = "var(--blue-light-4)", o.BLUE_DARK_1 = "var(--blue-dark-1)", o.PURPLE_LIGHT = "var(--purple-light)", o.PURPLE_DARK = "var(--purple-dark)", o.NOTIFICATION_WARNING_LIGHT = "var(--notification-warning-light)", o.NOTIFICATION_WARNING_DARK = "var(--notification-warning-dark)", o.NOTIFICATION_SUCCESS_LIGHT = "var(--notification-success-light)", o.NOTIFICATION_SUCCESS_DARK = "var(--notification-success-dark)", o.NOTIFICATION_ERROR_LIGHT = "var(--notification-error-light)", o.NOTIFICATION_ERROR_DARK = "var(--notification-error-dark)", o.NOTIFICATION_ERROR_DARK_MODE = "var(--notification-error-dark-mode)", o))(U || {});
|
|
6887
|
+
const C6 = P({
|
|
6888
6888
|
locale: "en",
|
|
6889
6889
|
theme: "light"
|
|
6890
6890
|
});
|
|
6891
6891
|
C6.Provider;
|
|
6892
|
-
const
|
|
6892
|
+
const u1 = ({
|
|
6893
6893
|
children: o,
|
|
6894
6894
|
width: i,
|
|
6895
6895
|
size: e = "small",
|
|
@@ -6908,7 +6908,7 @@ const m1 = ({
|
|
|
6908
6908
|
d6,
|
|
6909
6909
|
{
|
|
6910
6910
|
name: "errorSmall",
|
|
6911
|
-
color: a ?
|
|
6911
|
+
color: a ? U.GREY_DARK_1 : U.GREY_DARK_2,
|
|
6912
6912
|
width: k,
|
|
6913
6913
|
height: k,
|
|
6914
6914
|
onClick: n
|
|
@@ -6921,7 +6921,7 @@ const m1 = ({
|
|
|
6921
6921
|
A5,
|
|
6922
6922
|
{
|
|
6923
6923
|
variant: e === "small" ? "body4" : "body2",
|
|
6924
|
-
color: a ?
|
|
6924
|
+
color: a ? U.GREY_DARK_2 : U.GREY_DARK_5,
|
|
6925
6925
|
children: o
|
|
6926
6926
|
}
|
|
6927
6927
|
) : o
|
|
@@ -6972,29 +6972,29 @@ const k6 = ({
|
|
|
6972
6972
|
options: a,
|
|
6973
6973
|
extraOptions: k
|
|
6974
6974
|
}) => {
|
|
6975
|
-
const { locale: n } =
|
|
6975
|
+
const { locale: n } = $(h1), { t: p } = Q1("common", { lng: n }), [g, h] = x(!1);
|
|
6976
6976
|
if (G(() => {
|
|
6977
6977
|
o.length || h(!1);
|
|
6978
6978
|
}, [o]), !o.length)
|
|
6979
6979
|
return null;
|
|
6980
|
-
const s = (
|
|
6981
|
-
var E,
|
|
6982
|
-
return ((E = a == null ? void 0 : a.find((u) => u.value ===
|
|
6980
|
+
const s = (f) => {
|
|
6981
|
+
var E, I;
|
|
6982
|
+
return ((E = a == null ? void 0 : a.find((u) => u.value === f)) == null ? void 0 : E.label) || ((I = k == null ? void 0 : k.find((u) => u.value === f)) == null ? void 0 : I.label) || f;
|
|
6983
6983
|
};
|
|
6984
6984
|
return /* @__PURE__ */ c(
|
|
6985
6985
|
w6,
|
|
6986
6986
|
{
|
|
6987
6987
|
content: (
|
|
6988
6988
|
// 90: paddings + margins + gaps and so on
|
|
6989
|
-
/* @__PURE__ */ t("div", { style: { maxWidth: e - 90 }, className: "snmt-popover-from-select", children: /* @__PURE__ */ t(
|
|
6990
|
-
|
|
6989
|
+
/* @__PURE__ */ t("div", { style: { maxWidth: e - 90 }, className: "snmt-popover-from-select", children: /* @__PURE__ */ t(e1, { gap: 6, flexWrap: "wrap", children: o.map(({ value: f }) => /* @__PURE__ */ t(
|
|
6990
|
+
u1,
|
|
6991
6991
|
{
|
|
6992
|
-
onClose: () => i(
|
|
6992
|
+
onClose: () => i(f),
|
|
6993
6993
|
closable: l,
|
|
6994
6994
|
disabled: r,
|
|
6995
|
-
children: s(
|
|
6995
|
+
children: s(f)
|
|
6996
6996
|
},
|
|
6997
|
-
|
|
6997
|
+
f
|
|
6998
6998
|
)) }) })
|
|
6999
6999
|
),
|
|
7000
7000
|
placement: "bottomRight",
|
|
@@ -7007,7 +7007,7 @@ const k6 = ({
|
|
|
7007
7007
|
]
|
|
7008
7008
|
}
|
|
7009
7009
|
);
|
|
7010
|
-
},
|
|
7010
|
+
}, w1 = ({ size: o = 30, color: i = "#004ed7" }) => {
|
|
7011
7011
|
const e = `no-repeat linear-gradient(${i}
|
|
7012
7012
|
calc(50% - 10px), #0000 0 calc(50% + 10px), ${i} 0)`, l = {
|
|
7013
7013
|
width: o,
|
|
@@ -7015,7 +7015,7 @@ const k6 = ({
|
|
|
7015
7015
|
backgroundSize: "20% calc(200% + 20px)"
|
|
7016
7016
|
};
|
|
7017
7017
|
return /* @__PURE__ */ t("span", { className: "snmt-loader", style: l });
|
|
7018
|
-
},
|
|
7018
|
+
}, g1 = s1(
|
|
7019
7019
|
({
|
|
7020
7020
|
value: o,
|
|
7021
7021
|
onChange: i,
|
|
@@ -7029,83 +7029,83 @@ const k6 = ({
|
|
|
7029
7029
|
clearable: g = !1,
|
|
7030
7030
|
scrollThresholdValue: h = 50,
|
|
7031
7031
|
onSearchChange: s,
|
|
7032
|
-
onDropdownVisibleChange:
|
|
7032
|
+
onDropdownVisibleChange: f,
|
|
7033
7033
|
onScrollToEnd: E,
|
|
7034
|
-
onPopupScroll:
|
|
7035
|
-
id:
|
|
7034
|
+
onPopupScroll: I,
|
|
7035
|
+
id: W,
|
|
7036
7036
|
extraOptions: u,
|
|
7037
7037
|
dropdownRender: y,
|
|
7038
7038
|
optionRender: R,
|
|
7039
|
-
isLoading:
|
|
7039
|
+
isLoading: B,
|
|
7040
7040
|
readOnly: L
|
|
7041
|
-
},
|
|
7042
|
-
const [
|
|
7041
|
+
}, v) => {
|
|
7042
|
+
const [N, M] = x(!1), [O, z] = x(!1), [D, j] = x(!0), [H, F] = x(o), J = i1(null);
|
|
7043
7043
|
G(() => {
|
|
7044
|
-
|
|
7044
|
+
F(o);
|
|
7045
7045
|
}, [o]);
|
|
7046
|
-
const
|
|
7047
|
-
M(d),
|
|
7048
|
-
},
|
|
7049
|
-
var
|
|
7050
|
-
return !!((
|
|
7046
|
+
const q = (d) => {
|
|
7047
|
+
M(d), f && f(d);
|
|
7048
|
+
}, _ = (d, m) => {
|
|
7049
|
+
var V;
|
|
7050
|
+
return !!((V = m == null ? void 0 : m.label) != null && V.toString().toLowerCase().includes(d.toLowerCase()));
|
|
7051
7051
|
}, o1 = () => {
|
|
7052
|
-
|
|
7053
|
-
},
|
|
7054
|
-
|
|
7055
|
-
},
|
|
7052
|
+
z(!0);
|
|
7053
|
+
}, t1 = () => {
|
|
7054
|
+
z(!1);
|
|
7055
|
+
}, A = Z(
|
|
7056
7056
|
(d) => {
|
|
7057
|
-
if (
|
|
7058
|
-
const
|
|
7059
|
-
i == null || i(
|
|
7057
|
+
if (F(d), l) {
|
|
7058
|
+
const V = d;
|
|
7059
|
+
i == null || i(V);
|
|
7060
7060
|
return;
|
|
7061
7061
|
}
|
|
7062
7062
|
const m = d;
|
|
7063
7063
|
i == null || i(m);
|
|
7064
7064
|
},
|
|
7065
7065
|
[l, i]
|
|
7066
|
-
),
|
|
7066
|
+
), T = Z(() => {
|
|
7067
7067
|
if (!L) {
|
|
7068
7068
|
if (l) {
|
|
7069
|
-
|
|
7069
|
+
A([]);
|
|
7070
7070
|
return;
|
|
7071
7071
|
}
|
|
7072
|
-
|
|
7072
|
+
A("");
|
|
7073
7073
|
}
|
|
7074
|
-
}, [
|
|
7074
|
+
}, [A, l, L]), Q = Z(
|
|
7075
7075
|
(d) => {
|
|
7076
|
-
const m = H.filter((
|
|
7077
|
-
|
|
7076
|
+
const m = H.filter((V) => V !== d);
|
|
7077
|
+
A(m), F(m);
|
|
7078
7078
|
},
|
|
7079
|
-
[
|
|
7080
|
-
),
|
|
7079
|
+
[A, H]
|
|
7080
|
+
), c1 = Z(
|
|
7081
7081
|
(d) => (H == null ? void 0 : H.indexOf(d)) === 0 ? (
|
|
7082
7082
|
// if the search input is empty
|
|
7083
7083
|
// then display the placeholder, else do not display it
|
|
7084
|
-
/* @__PURE__ */ t("span", { className: "custom-placeholder", children:
|
|
7085
|
-
) : /* @__PURE__ */ t(
|
|
7086
|
-
[
|
|
7084
|
+
/* @__PURE__ */ t("span", { className: "custom-placeholder", children: D ? e : "" })
|
|
7085
|
+
) : /* @__PURE__ */ t(K, {}),
|
|
7086
|
+
[D, H, e]
|
|
7087
7087
|
), v1 = (d) => {
|
|
7088
7088
|
d.preventDefault(), d.stopPropagation();
|
|
7089
7089
|
}, N1 = async (d) => {
|
|
7090
7090
|
const { target: m } = d;
|
|
7091
|
-
m.scrollTop + m.offsetHeight >= m.scrollHeight - h && (E == null || E(!0)),
|
|
7092
|
-
},
|
|
7091
|
+
m.scrollTop + m.offsetHeight >= m.scrollHeight - h && (E == null || E(!0)), I && await I(d);
|
|
7092
|
+
}, l1 = Z(
|
|
7093
7093
|
(d) => {
|
|
7094
|
-
var m,
|
|
7095
|
-
return ((m = a.find((
|
|
7096
|
-
(
|
|
7097
|
-
)) == null ? void 0 :
|
|
7094
|
+
var m, V;
|
|
7095
|
+
return ((m = a.find((r1) => r1.value === d)) == null ? void 0 : m.label) || ((V = u == null ? void 0 : u.find(
|
|
7096
|
+
(r1) => r1.value === d
|
|
7097
|
+
)) == null ? void 0 : V.label) || d;
|
|
7098
7098
|
},
|
|
7099
7099
|
[u, a]
|
|
7100
|
-
), f1 =
|
|
7100
|
+
), f1 = Z(
|
|
7101
7101
|
(d) => {
|
|
7102
7102
|
var m;
|
|
7103
7103
|
return /* @__PURE__ */ t(
|
|
7104
7104
|
k6,
|
|
7105
7105
|
{
|
|
7106
7106
|
values: d,
|
|
7107
|
-
onTagClose:
|
|
7108
|
-
maxWidth: ((m =
|
|
7107
|
+
onTagClose: Q,
|
|
7108
|
+
maxWidth: ((m = J.current) == null ? void 0 : m.clientWidth) || 0,
|
|
7109
7109
|
disabled: n,
|
|
7110
7110
|
closable: !L,
|
|
7111
7111
|
options: a,
|
|
@@ -7113,17 +7113,17 @@ const k6 = ({
|
|
|
7113
7113
|
}
|
|
7114
7114
|
);
|
|
7115
7115
|
},
|
|
7116
|
-
[n, u,
|
|
7117
|
-
), M1 =
|
|
7118
|
-
({ label: d, value: m, mode:
|
|
7119
|
-
[n,
|
|
7116
|
+
[n, u, Q, a, L]
|
|
7117
|
+
), M1 = Z(
|
|
7118
|
+
({ label: d, value: m, mode: V }) => V === "filter" ? c1(m) : /* @__PURE__ */ t("div", { onMouseDown: v1, className: "tag-wrapper", children: /* @__PURE__ */ t(u1, { onClose: () => Q(m), disabled: n, children: typeof d == "object" ? d : l1(m) }) }),
|
|
7119
|
+
[n, l1, Q, c1]
|
|
7120
7120
|
);
|
|
7121
7121
|
return /* @__PURE__ */ c(
|
|
7122
7122
|
"div",
|
|
7123
7123
|
{
|
|
7124
|
-
className: `snmt-select ${
|
|
7124
|
+
className: `snmt-select ${O ? "snmt-select-focused" : ""}
|
|
7125
7125
|
${l ? "" : "snmt-select-single"} ${L ? "snmt-select-read-only" : ""}`,
|
|
7126
|
-
ref:
|
|
7126
|
+
ref: J,
|
|
7127
7127
|
style: { width: k },
|
|
7128
7128
|
children: [
|
|
7129
7129
|
/* @__PURE__ */ t(
|
|
@@ -7131,73 +7131,73 @@ const k6 = ({
|
|
|
7131
7131
|
{
|
|
7132
7132
|
className: "snmt-select-blank",
|
|
7133
7133
|
popupClassName: L ? "dropdown-read-only" : "",
|
|
7134
|
-
id:
|
|
7135
|
-
ref:
|
|
7134
|
+
id: W,
|
|
7135
|
+
ref: v,
|
|
7136
7136
|
showSearch: !!r,
|
|
7137
|
-
filterOption: r &&
|
|
7138
|
-
onDropdownVisibleChange:
|
|
7137
|
+
filterOption: r && _,
|
|
7138
|
+
onDropdownVisibleChange: q,
|
|
7139
7139
|
placeholder: e ? p ? `${e}*` : e : void 0,
|
|
7140
7140
|
disabled: n,
|
|
7141
7141
|
value: H || void 0,
|
|
7142
|
-
labelRender: (d) =>
|
|
7142
|
+
labelRender: (d) => l1(d.value),
|
|
7143
7143
|
mode: l === "filter" ? "multiple" : l,
|
|
7144
|
-
onChange:
|
|
7144
|
+
onChange: A,
|
|
7145
7145
|
onFocus: o1,
|
|
7146
|
-
onBlur:
|
|
7146
|
+
onBlur: t1,
|
|
7147
7147
|
onSearch: (d) => {
|
|
7148
|
-
|
|
7148
|
+
j(!d), s && s(d);
|
|
7149
7149
|
},
|
|
7150
|
-
onSelect: () =>
|
|
7151
|
-
onDeselect: () =>
|
|
7150
|
+
onSelect: () => j(!0),
|
|
7151
|
+
onDeselect: () => j(!0),
|
|
7152
7152
|
tagRender: (d) => M1({ ...d, mode: l }),
|
|
7153
7153
|
maxTagCount: "responsive",
|
|
7154
7154
|
maxTagPlaceholder: f1,
|
|
7155
7155
|
onPopupScroll: N1,
|
|
7156
|
-
prefix:
|
|
7157
|
-
suffixIcon: /* @__PURE__ */ t("div", { className: "wrapper-suffix-icon", children: l !== "filter" && /* @__PURE__ */ c(
|
|
7158
|
-
H && !!H.length && (l || g) && /* @__PURE__ */ t("div", { onClick:
|
|
7159
|
-
|
|
7156
|
+
prefix: B && /* @__PURE__ */ t(w1, { size: 15 }),
|
|
7157
|
+
suffixIcon: /* @__PURE__ */ t("div", { className: "wrapper-suffix-icon", children: l !== "filter" && /* @__PURE__ */ c(K, { children: [
|
|
7158
|
+
H && !!H.length && (l || g) && /* @__PURE__ */ t("div", { onClick: T, children: /* @__PURE__ */ t(
|
|
7159
|
+
X,
|
|
7160
7160
|
{
|
|
7161
7161
|
name: "cancel",
|
|
7162
|
-
color: n ?
|
|
7162
|
+
color: n ? Y.GREY_DARK_1 : Y.GREY_DARK_5
|
|
7163
7163
|
}
|
|
7164
7164
|
) }),
|
|
7165
7165
|
/* @__PURE__ */ t(
|
|
7166
|
-
|
|
7166
|
+
X,
|
|
7167
7167
|
{
|
|
7168
7168
|
name: "selectArrowIcon",
|
|
7169
|
-
color: n ?
|
|
7170
|
-
className:
|
|
7171
|
-
onClick: () => M(!
|
|
7169
|
+
color: n ? Y.GREY_DARK_1 : Y.GREY_DARK_5,
|
|
7170
|
+
className: N ? "select-arrow-rotated" : "select-arrow",
|
|
7171
|
+
onClick: () => M(!N)
|
|
7172
7172
|
}
|
|
7173
7173
|
)
|
|
7174
7174
|
] }) }),
|
|
7175
|
-
removeIcon: /* @__PURE__ */ t(
|
|
7175
|
+
removeIcon: /* @__PURE__ */ t(X, { name: "errorSmall", color: Y.GREY_DARK_2 }),
|
|
7176
7176
|
options: a,
|
|
7177
|
-
optionRender: (d) => R ? R(d.data) : /* @__PURE__ */ c(
|
|
7178
|
-
/* @__PURE__ */ c(
|
|
7177
|
+
optionRender: (d) => R ? R(d.data) : /* @__PURE__ */ c(e1, { justifyContent: "space-between", alignItems: "center", flex: "1", children: [
|
|
7178
|
+
/* @__PURE__ */ c(e1, { alignItems: "center", gap: 12, children: [
|
|
7179
7179
|
l && /* @__PURE__ */ t(
|
|
7180
7180
|
e2,
|
|
7181
7181
|
{
|
|
7182
7182
|
checked: !!(H != null && H.includes(d.value))
|
|
7183
7183
|
}
|
|
7184
7184
|
),
|
|
7185
|
-
/* @__PURE__ */ c(
|
|
7185
|
+
/* @__PURE__ */ c(e1, { alignItems: "center", gap: 8, children: [
|
|
7186
7186
|
d.data.image && /* @__PURE__ */ t(X1, { src: d.data.image, size: 20 }),
|
|
7187
7187
|
/* @__PURE__ */ t("span", { children: d.label })
|
|
7188
7188
|
] })
|
|
7189
7189
|
] }),
|
|
7190
7190
|
!l && H === d.value && /* @__PURE__ */ t(
|
|
7191
|
-
|
|
7191
|
+
X,
|
|
7192
7192
|
{
|
|
7193
7193
|
name: "ok",
|
|
7194
|
-
color:
|
|
7194
|
+
color: Y.BLUE_PRIMARY,
|
|
7195
7195
|
width: 16,
|
|
7196
7196
|
height: 16
|
|
7197
7197
|
}
|
|
7198
7198
|
)
|
|
7199
7199
|
] }),
|
|
7200
|
-
dropdownRender:
|
|
7200
|
+
dropdownRender: B ? () => /* @__PURE__ */ t(
|
|
7201
7201
|
"div",
|
|
7202
7202
|
{
|
|
7203
7203
|
style: {
|
|
@@ -7205,7 +7205,7 @@ const k6 = ({
|
|
|
7205
7205
|
display: "grid",
|
|
7206
7206
|
justifyContent: "center"
|
|
7207
7207
|
},
|
|
7208
|
-
children: /* @__PURE__ */ t(
|
|
7208
|
+
children: /* @__PURE__ */ t(w1, { size: 28 })
|
|
7209
7209
|
}
|
|
7210
7210
|
) : (d) => y ? y(d) : d
|
|
7211
7211
|
}
|
|
@@ -7213,7 +7213,7 @@ const k6 = ({
|
|
|
7213
7213
|
/* @__PURE__ */ t(
|
|
7214
7214
|
"fieldset",
|
|
7215
7215
|
{
|
|
7216
|
-
className: `${
|
|
7216
|
+
className: `${O ? "fieldset-focused" : ""}
|
|
7217
7217
|
${n ? "fieldset-disabled" : ""}
|
|
7218
7218
|
${typeof o == "string" && o ? "fieldset-filled" : ""}
|
|
7219
7219
|
${typeof o == "object" && o != null && o.length ? "fieldset-filled" : ""}`,
|
|
@@ -7226,7 +7226,7 @@ const k6 = ({
|
|
|
7226
7226
|
}
|
|
7227
7227
|
);
|
|
7228
7228
|
function p6(o, i = 500) {
|
|
7229
|
-
const e =
|
|
7229
|
+
const e = i1();
|
|
7230
7230
|
return G(() => () => {
|
|
7231
7231
|
e.current && clearTimeout(e.current);
|
|
7232
7232
|
}, []), (...r) => {
|
|
@@ -7236,10 +7236,10 @@ function p6(o, i = 500) {
|
|
|
7236
7236
|
clearTimeout(e.current), e.current = a;
|
|
7237
7237
|
};
|
|
7238
7238
|
}
|
|
7239
|
-
const
|
|
7239
|
+
const S = {
|
|
7240
7240
|
limit: 100,
|
|
7241
7241
|
offset: 0
|
|
7242
|
-
}, f6 =
|
|
7242
|
+
}, f6 = s1(
|
|
7243
7243
|
({
|
|
7244
7244
|
loadOptions: o,
|
|
7245
7245
|
width: i,
|
|
@@ -7253,39 +7253,40 @@ const U = {
|
|
|
7253
7253
|
loadOnClosedState: g,
|
|
7254
7254
|
extraOptions: h,
|
|
7255
7255
|
onDropdownVisibleChange: s,
|
|
7256
|
-
optionRender:
|
|
7256
|
+
optionRender: f,
|
|
7257
7257
|
dropdownRender: E,
|
|
7258
|
-
readOnly:
|
|
7259
|
-
clearable:
|
|
7260
|
-
|
|
7261
|
-
|
|
7262
|
-
|
|
7258
|
+
readOnly: I,
|
|
7259
|
+
clearable: W,
|
|
7260
|
+
required: u = !1
|
|
7261
|
+
}, y) => {
|
|
7262
|
+
const [R, B] = x([]), [L, v] = x(S), [N, M] = x(!1), [O, z] = x(null), D = Z(
|
|
7263
|
+
async (_ = !1, o1) => {
|
|
7263
7264
|
if (!N) {
|
|
7264
|
-
|
|
7265
|
+
M(!0);
|
|
7265
7266
|
try {
|
|
7266
|
-
const
|
|
7267
|
-
|
|
7268
|
-
(
|
|
7269
|
-
),
|
|
7270
|
-
...
|
|
7271
|
-
offset:
|
|
7267
|
+
const t1 = _ ? { ...S, search: o1 } : L, A = await o(t1);
|
|
7268
|
+
B(
|
|
7269
|
+
(T) => _ ? A.options : [...T, ...A.options]
|
|
7270
|
+
), z(A.count), v((T) => ({
|
|
7271
|
+
...T,
|
|
7272
|
+
offset: T.offset + T.limit
|
|
7272
7273
|
}));
|
|
7273
7274
|
} finally {
|
|
7274
|
-
|
|
7275
|
+
M(!1);
|
|
7275
7276
|
}
|
|
7276
7277
|
}
|
|
7277
7278
|
},
|
|
7278
|
-
[
|
|
7279
|
-
),
|
|
7279
|
+
[L, o, N]
|
|
7280
|
+
), j = p6(D), H = Z(
|
|
7280
7281
|
(_) => {
|
|
7281
|
-
_ === "" || _ === void 0 || _ === null ? (
|
|
7282
|
+
_ === "" || _ === void 0 || _ === null ? (v(S), j(!0)) : j(!0, _);
|
|
7282
7283
|
},
|
|
7283
|
-
[
|
|
7284
|
-
),
|
|
7285
|
-
_ &&
|
|
7286
|
-
},
|
|
7284
|
+
[j]
|
|
7285
|
+
), F = async (_) => {
|
|
7286
|
+
_ && O !== null && O > R.length && await D(!1);
|
|
7287
|
+
}, J = Z(
|
|
7287
7288
|
(_) => {
|
|
7288
|
-
_ && !g && (
|
|
7289
|
+
_ && !g && (B([]), v(S), D(!0)), s == null || s(_);
|
|
7289
7290
|
},
|
|
7290
7291
|
// eslint-disable-next-line
|
|
7291
7292
|
[g]
|
|
@@ -7293,33 +7294,34 @@ const U = {
|
|
|
7293
7294
|
G(() => {
|
|
7294
7295
|
g && D(!1);
|
|
7295
7296
|
}, []);
|
|
7296
|
-
const
|
|
7297
|
+
const q = {
|
|
7297
7298
|
id: r,
|
|
7298
7299
|
width: i,
|
|
7299
|
-
options:
|
|
7300
|
+
options: R,
|
|
7300
7301
|
onChange: e,
|
|
7301
|
-
ref:
|
|
7302
|
+
ref: y,
|
|
7302
7303
|
placeholder: n,
|
|
7303
7304
|
search: !0,
|
|
7304
7305
|
value: l,
|
|
7305
|
-
onSearchChange:
|
|
7306
|
-
onDropdownVisibleChange:
|
|
7306
|
+
onSearchChange: H,
|
|
7307
|
+
onDropdownVisibleChange: J,
|
|
7307
7308
|
scrollThresholdValue: k,
|
|
7308
|
-
onScrollToEnd:
|
|
7309
|
+
onScrollToEnd: F,
|
|
7309
7310
|
loadOnClosedState: g,
|
|
7310
7311
|
disabled: a,
|
|
7311
7312
|
extraOptions: h,
|
|
7312
7313
|
isLoading: N,
|
|
7313
|
-
optionRender:
|
|
7314
|
+
optionRender: f,
|
|
7314
7315
|
dropdownRender: E,
|
|
7315
|
-
readOnly:
|
|
7316
|
-
clearable:
|
|
7316
|
+
readOnly: I,
|
|
7317
|
+
clearable: W,
|
|
7318
|
+
required: u
|
|
7317
7319
|
};
|
|
7318
|
-
return x1(
|
|
7320
|
+
return x1(y, () => ({
|
|
7319
7321
|
refetchOptions: async () => {
|
|
7320
|
-
|
|
7322
|
+
v(S), await D(!0);
|
|
7321
7323
|
}
|
|
7322
|
-
})), p ? /* @__PURE__ */ t(
|
|
7324
|
+
})), p ? /* @__PURE__ */ t(g1, { ...q, onChange: e, value: l, mode: p }) : /* @__PURE__ */ t("div", { className: "snmt-async-select", children: /* @__PURE__ */ t(g1, { ...q, onChange: e, value: l }) });
|
|
7323
7325
|
}
|
|
7324
7326
|
);
|
|
7325
7327
|
export {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@snmt-react-ui/async-select",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.7.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/async-select.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
@@ -23,5 +23,5 @@
|
|
|
23
23
|
"peerDependencies": {
|
|
24
24
|
"antd": "^5.18.3"
|
|
25
25
|
},
|
|
26
|
-
"gitHead": "
|
|
26
|
+
"gitHead": "ace8423c66d4f4f62ce7a72d3110e19580ea6e7c"
|
|
27
27
|
}
|