@snmt-react-ui/user-select 2.12.12 → 2.13.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/UserSelect.d.ts +2 -2
- package/dist/user-select.js +4 -4
- package/package.json +2 -2
package/dist/UserSelect.d.ts
CHANGED
|
@@ -35,8 +35,8 @@ export type UserSelectProps = (Omit<SingleSelectProps, 'options'> | Omit<MultiSe
|
|
|
35
35
|
status: number;
|
|
36
36
|
message?: string;
|
|
37
37
|
}) => void;
|
|
38
|
-
/**
|
|
39
|
-
|
|
38
|
+
/** Label for the empty option */
|
|
39
|
+
emptyOptionLabel?: string;
|
|
40
40
|
/** Whether to show avatar in the select */
|
|
41
41
|
showAvatar?: boolean;
|
|
42
42
|
};
|
package/dist/user-select.js
CHANGED
|
@@ -12683,7 +12683,7 @@ const Z8 = a1(
|
|
|
12683
12683
|
value: s,
|
|
12684
12684
|
onChange: C,
|
|
12685
12685
|
onError: h,
|
|
12686
|
-
|
|
12686
|
+
emptyOptionLabel: d,
|
|
12687
12687
|
showAvatar: a = !1,
|
|
12688
12688
|
clearable: o,
|
|
12689
12689
|
required: r,
|
|
@@ -12692,7 +12692,7 @@ const Z8 = a1(
|
|
|
12692
12692
|
const { axiosPeople: f, locale: k } = s1(c1), { t: M } = T6("common", { lng: k }), [v, A] = S([]), [V, D] = S(!0), u = J(v), L = J(null);
|
|
12693
12693
|
if (h1(w, () => L.current), !f)
|
|
12694
12694
|
throw new Error(
|
|
12695
|
-
`UserSelect requires "axiosPeople" to fetch users.
|
|
12695
|
+
`UserSelect requires "axiosPeople" to fetch users.
|
|
12696
12696
|
Please provide it via SNMTUiContext.`
|
|
12697
12697
|
);
|
|
12698
12698
|
const x = y(
|
|
@@ -12777,7 +12777,7 @@ const Z8 = a1(
|
|
|
12777
12777
|
return;
|
|
12778
12778
|
}
|
|
12779
12779
|
(async () => {
|
|
12780
|
-
const G = Array.isArray(s) ? s : [s], T = await Y(G);
|
|
12780
|
+
const G = Array.isArray(s) ? s.filter(Boolean) : [s], T = await Y(G);
|
|
12781
12781
|
A(T), D(!1);
|
|
12782
12782
|
})();
|
|
12783
12783
|
}, [Y, s]);
|
|
@@ -12793,7 +12793,7 @@ const Z8 = a1(
|
|
|
12793
12793
|
search: T
|
|
12794
12794
|
});
|
|
12795
12795
|
let O = K.options;
|
|
12796
|
-
return d && G === 0 && (O = [{ value: null, label:
|
|
12796
|
+
return d && G === 0 && (O = [{ value: null, label: d }, ...O]), {
|
|
12797
12797
|
options: O,
|
|
12798
12798
|
count: P,
|
|
12799
12799
|
limit: R
|
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.
|
|
4
|
+
"version": "2.13.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/user-select.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
@@ -29,5 +29,5 @@
|
|
|
29
29
|
"react": ">=18.2.0",
|
|
30
30
|
"react-i18next": "^14.0.5"
|
|
31
31
|
},
|
|
32
|
-
"gitHead": "
|
|
32
|
+
"gitHead": "244aa05a694360a6c004db25c4e64bd7e7fd75a3"
|
|
33
33
|
}
|