awing-library 2.1.2-dev.540 → 2.1.2-dev.542
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/AWING/AsyncAutocomplete/Container.d.ts.map +1 -1
- package/dist/AWING/AsyncAutocomplete/Container.js +2 -2
- package/dist/AWING/DataForm/container.d.ts.map +1 -1
- package/dist/AWING/DataForm/container.js +35 -14
- package/dist/AWING/DataForm/utils.d.ts.map +1 -1
- package/dist/AWING/DataForm/utils.js +3 -1
- package/dist/Features/SYSTEM/Group/SearchUser/component.d.ts +2 -0
- package/dist/Features/SYSTEM/Group/SearchUser/component.d.ts.map +1 -1
- package/dist/Features/SYSTEM/Group/SearchUser/component.js +15 -14
- package/dist/Features/SYSTEM/Group/SearchUser/container.d.ts.map +1 -1
- package/dist/Features/SYSTEM/Group/SearchUser/container.js +34 -10
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Container.d.ts","sourceRoot":"","sources":["../../../src/AWING/AsyncAutocomplete/Container.tsx"],"names":[],"mappings":"AAQA,OAAO,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAC;AAErD,MAAM,CAAC,OAAO,UAAU,iBAAiB,CAAC,CAAC,EAAE,KAAK,EAAE,sBAAsB,CAAC,CAAC,CAAC,
|
|
1
|
+
{"version":3,"file":"Container.d.ts","sourceRoot":"","sources":["../../../src/AWING/AsyncAutocomplete/Container.tsx"],"names":[],"mappings":"AAQA,OAAO,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAC;AAErD,MAAM,CAAC,OAAO,UAAU,iBAAiB,CAAC,CAAC,EAAE,KAAK,EAAE,sBAAsB,CAAC,CAAC,CAAC,2CA+N5E"}
|
|
@@ -21,9 +21,9 @@ function AsyncAutocomplete(props) {
|
|
|
21
21
|
const [isOpen, setIsOpen] = useState(open ?? false);
|
|
22
22
|
const [fetched, setFetched] = useState(false);
|
|
23
23
|
useEffect(()=>{
|
|
24
|
-
|
|
24
|
+
value && Object.keys(value).length > 0 ? setInputValue(getOptionLabel(value)) : setInputValue('');
|
|
25
25
|
}, [
|
|
26
|
-
value
|
|
26
|
+
JSON.stringify(value)
|
|
27
27
|
]);
|
|
28
28
|
const fetchRef = useRef(null);
|
|
29
29
|
useEffect(()=>{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"container.d.ts","sourceRoot":"","sources":["../../../src/AWING/DataForm/container.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,aAAa,CAAC;AAIjD,MAAM,CAAC,OAAO,UAAU,QAAQ,CAAC,CAAC,SAAS,MAAM,EAAE,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,
|
|
1
|
+
{"version":3,"file":"container.d.ts","sourceRoot":"","sources":["../../../src/AWING/DataForm/container.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,aAAa,CAAC;AAIjD,MAAM,CAAC,OAAO,UAAU,QAAQ,CAAC,CAAC,SAAS,MAAM,EAAE,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,2CA6QzE"}
|
|
@@ -14,7 +14,9 @@ function DataForm(props) {
|
|
|
14
14
|
const isEditMode = !!(propsOldValue && Object.keys(propsOldValue).length > 0);
|
|
15
15
|
fields.forEach((fieldDef)=>{
|
|
16
16
|
const fieldName = fieldDef.fieldName;
|
|
17
|
-
if (
|
|
17
|
+
if (isEditMode || void 0 === fieldDef.defaultValue) {
|
|
18
|
+
if (isEditMode && propsOldValue) fieldsToUpdate[fieldName] = propsOldValue[fieldName];
|
|
19
|
+
} else fieldsToUpdate[fieldName] = fieldDef.defaultValue;
|
|
18
20
|
validation[fieldName] = true;
|
|
19
21
|
});
|
|
20
22
|
return {
|
|
@@ -24,18 +26,37 @@ function DataForm(props) {
|
|
|
24
26
|
});
|
|
25
27
|
useEffect(()=>{
|
|
26
28
|
if (propsOldValue) {
|
|
27
|
-
const
|
|
28
|
-
const
|
|
29
|
+
const isFirstLoad = !oldValue || 0 === Object.keys(oldValue).length;
|
|
30
|
+
const newId = propsOldValue?.id;
|
|
31
|
+
const currentId = oldValue?.id;
|
|
32
|
+
const isNewId = newId !== currentId;
|
|
33
|
+
const isNewVersion = propsOldValue?.versionId !== oldValue?.versionId;
|
|
34
|
+
const isContentDifferent = JSON.stringify(propsOldValue) !== JSON.stringify(oldValue);
|
|
29
35
|
setOldValue(propsOldValue);
|
|
30
|
-
if (
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
36
|
+
if (isFirstLoad || isNewId || isNewVersion || isContentDifferent) setDataFormState((pre)=>{
|
|
37
|
+
const newFieldsToUpdate = {
|
|
38
|
+
...pre.fieldsToUpdate
|
|
39
|
+
};
|
|
40
|
+
if (isFirstLoad || isNewId) {
|
|
41
|
+
const resetFields = {};
|
|
42
|
+
const newValidation = {};
|
|
43
|
+
fields.forEach((field)=>{
|
|
44
|
+
const fieldName = field.fieldName;
|
|
45
|
+
resetFields[fieldName] = propsOldValue[fieldName];
|
|
46
|
+
newValidation[fieldName] = true;
|
|
47
|
+
});
|
|
48
|
+
return {
|
|
49
|
+
fieldsToUpdate: resetFields,
|
|
50
|
+
validation: newValidation
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
Object.keys(propsOldValue).forEach((key)=>{
|
|
54
|
+
const fieldKey = key;
|
|
55
|
+
newFieldsToUpdate[fieldKey] = propsOldValue[fieldKey];
|
|
35
56
|
});
|
|
36
57
|
return {
|
|
37
|
-
|
|
38
|
-
|
|
58
|
+
...pre,
|
|
59
|
+
fieldsToUpdate: newFieldsToUpdate
|
|
39
60
|
};
|
|
40
61
|
});
|
|
41
62
|
}
|
|
@@ -50,13 +71,12 @@ function DataForm(props) {
|
|
|
50
71
|
let newValidation = {
|
|
51
72
|
...pre.validation
|
|
52
73
|
};
|
|
53
|
-
|
|
54
|
-
else if (newFieldsToUpdate[fieldName] !== newValue) newFieldsToUpdate[fieldName] = newValue;
|
|
74
|
+
newFieldsToUpdate[fieldName] = newValue;
|
|
55
75
|
newValidation[fieldName] = valid;
|
|
56
76
|
if (props.fieldDependencies && props.fieldDependencies[fieldName]) {
|
|
57
77
|
const dependentFields = props.fieldDependencies[fieldName];
|
|
58
78
|
dependentFields.forEach((depField)=>{
|
|
59
|
-
|
|
79
|
+
newFieldsToUpdate[depField] = void 0;
|
|
60
80
|
newValidation[depField] = void 0;
|
|
61
81
|
});
|
|
62
82
|
}
|
|
@@ -108,7 +128,8 @@ function DataForm(props) {
|
|
|
108
128
|
if (onValues) onValues(completeValues, formValid, keyUpdate);
|
|
109
129
|
}, [
|
|
110
130
|
dataFormState,
|
|
111
|
-
keyUpdate
|
|
131
|
+
keyUpdate,
|
|
132
|
+
oldValue
|
|
112
133
|
]);
|
|
113
134
|
const renderField = (fieldDef)=>{
|
|
114
135
|
const { fieldName } = fieldDef;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/AWING/DataForm/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AAGnE,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAExC,eAAO,MAAM,YAAY,GAAI,CAAC,SAAS,MAAM,iBAC1B,aAAa,CAAC,CAAC,CAAC,YACrB,OAAO,CAAC,CAAC,CAAC,GAAG,SAAS,YACtB,oBAAoB,CAAC,CAAC,CAAC,yBACV,OAAO;;;
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/AWING/DataForm/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AAGnE,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAExC,eAAO,MAAM,YAAY,GAAI,CAAC,SAAS,MAAM,iBAC1B,aAAa,CAAC,CAAC,CAAC,YACrB,OAAO,CAAC,CAAC,CAAC,GAAG,SAAS,YACtB,oBAAoB,CAAC,CAAC,CAAC,yBACV,OAAO;;;CA6BjC,CAAC;AAEF,eAAO,MAAM,wBAAwB,GAAI,CAAC,SAAS,MAAM,mBACpC;IAAE,SAAS,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,GAAG,SAAS,CAAA;CAAE,EAAE,iBACpD,KAAK,CAAC;IAAE,SAAS,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAC,YAChD,OAAO,CAAC,CAAC,CAAC,cACR,OAAO,CAAC,GAAG,CAAC,IAAI,MAAM,CAAC,GAAG,OAAO,GAAE,CAAC,kBAChC;IAAE,SAAS,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,GAAG,SAAS,CAAA;CAAE,EAAE;;2BAGlC,CAAC;CAyBpC,CAAC;AAGF,eAAO,MAAM,kBAAkB,GAAI,CAAC,SAAS,MAAM,iBAChC,aAAa,CAAC,CAAC,CAAC,UACvB,oBAAoB,CAAC,CAAC,CAAC,EAAE,cACrB,OAAO,CAAC,CAAC,CAAC,mBACL,CAAC,cAAc,EAAE,OAAO,CAAC,CAAC,CAAC,KAAK,OAAO,gBAC1C,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,YAsC3C,CAAC;AAGF,wBAAgB,KAAK,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC,CAG7C;AAGD,wBAAgB,OAAO,CAAC,CAAC,EAAE,CAAC,SAAS,MAAM,CAAC,EAAE,KAAK,EAAE,OAAO,GAAG,CAAC,CAAC,CAAC,CAAC,CAGlE;AAGD,wBAAgB,YAAY,CAAC,CAAC,SAAS,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,oBAAoB,CAAC,CAAC,CAAC,CAGrF"}
|
|
@@ -3,7 +3,9 @@ import { calculateValue, convertFormulaToBinaryTree, replaceFieldsValue } from "
|
|
|
3
3
|
import { patternFieldText } from "../../Features/constants.js";
|
|
4
4
|
const handleFields = (dataFormState, oldValue, fieldDef, autoValidateFieldText)=>{
|
|
5
5
|
const { fieldName, value } = fieldDef;
|
|
6
|
-
const
|
|
6
|
+
const fieldKey = fieldName;
|
|
7
|
+
const isFieldDirty = fieldKey in dataFormState.fieldsToUpdate;
|
|
8
|
+
const fieldValue = isFieldDirty ? dataFormState.fieldsToUpdate[fieldKey] : oldValue?.[fieldKey] ?? value;
|
|
7
9
|
const showError = void 0 !== dataFormState.validation[fieldName] ? !dataFormState.validation[fieldName] : void 0;
|
|
8
10
|
if (autoValidateFieldText) {
|
|
9
11
|
if (fieldDef.type === FIELD_TYPE.TEXT || fieldDef.type === FIELD_TYPE.TEXT_AREA) fieldDef.pattern = fieldDef.pattern ? fieldDef.pattern : patternFieldText;
|
|
@@ -3,6 +3,8 @@ interface SearchUserGroupUserProps {
|
|
|
3
3
|
listUserId: number[];
|
|
4
4
|
onListUserIdChange: (listUserId: number[]) => void;
|
|
5
5
|
users: User[];
|
|
6
|
+
onSearch?: (searchString: string) => void;
|
|
7
|
+
loading?: boolean;
|
|
6
8
|
}
|
|
7
9
|
declare function SearchUserGroupUser(props: SearchUserGroupUserProps): import("react/jsx-runtime").JSX.Element;
|
|
8
10
|
export default SearchUserGroupUser;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"component.d.ts","sourceRoot":"","sources":["../../../../../src/Features/SYSTEM/Group/SearchUser/component.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,IAAI,EAAE,MAAM,4BAA4B,CAAC;AAElD,UAAU,wBAAwB;IAC9B,UAAU,EAAE,MAAM,EAAE,CAAC;IACrB,kBAAkB,EAAE,CAAC,UAAU,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC;IACnD,KAAK,EAAE,IAAI,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"component.d.ts","sourceRoot":"","sources":["../../../../../src/Features/SYSTEM/Group/SearchUser/component.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,IAAI,EAAE,MAAM,4BAA4B,CAAC;AAElD,UAAU,wBAAwB;IAC9B,UAAU,EAAE,MAAM,EAAE,CAAC;IACrB,kBAAkB,EAAE,CAAC,UAAU,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC;IACnD,KAAK,EAAE,IAAI,EAAE,CAAC;IACd,QAAQ,CAAC,EAAE,CAAC,YAAY,EAAE,MAAM,KAAK,IAAI,CAAC;IAC1C,OAAO,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,iBAAS,mBAAmB,CAAC,KAAK,EAAE,wBAAwB,2CAwE3D;AAED,eAAe,mBAAmB,CAAC"}
|
|
@@ -2,18 +2,11 @@ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
import { useState } from "react";
|
|
3
3
|
import { filter, some } from "lodash";
|
|
4
4
|
import { Checkbox, FormControlLabel, Paper } from "@mui/material";
|
|
5
|
-
import { NoData, SearchBox } from "../../../../AWING/index.js";
|
|
5
|
+
import { CircularProgress, NoData, SearchBox } from "../../../../AWING/index.js";
|
|
6
6
|
import Grid from "@mui/material/Grid";
|
|
7
7
|
function SearchUserGroupUser(props) {
|
|
8
|
-
const { listUserId, onListUserIdChange, users } = props;
|
|
9
|
-
const [usersSearchResult, setUsersSearchResult] = useState([]);
|
|
8
|
+
const { listUserId, onListUserIdChange, users, onSearch, loading } = props;
|
|
10
9
|
const [keyWordSearch, setKeyWordSearch] = useState('');
|
|
11
|
-
const handleFilterByFieldName = (list, newSearchString)=>{
|
|
12
|
-
let result = [];
|
|
13
|
-
if ('' === newSearchString) return [];
|
|
14
|
-
result = list?.filter((item)=>item.username === newSearchString) || [];
|
|
15
|
-
return result;
|
|
16
|
-
};
|
|
17
10
|
const handleChangeUserList = (userId, e)=>{
|
|
18
11
|
let newUserIds = listUserId.slice();
|
|
19
12
|
if (e.target.checked) onListUserIdChange([
|
|
@@ -27,13 +20,14 @@ function SearchUserGroupUser(props) {
|
|
|
27
20
|
};
|
|
28
21
|
const handleSearch = (searchString)=>{
|
|
29
22
|
setKeyWordSearch(searchString);
|
|
30
|
-
|
|
31
|
-
setUsersSearchResult(newUsersSearchResult);
|
|
23
|
+
if (onSearch) onSearch(searchString);
|
|
32
24
|
};
|
|
33
25
|
return /*#__PURE__*/ jsxs(Paper, {
|
|
34
26
|
sx: (theme)=>({
|
|
35
27
|
padding: (theme)=>theme.spacing(3),
|
|
36
|
-
border: theme.palette.background.paper
|
|
28
|
+
border: theme.palette.background.paper,
|
|
29
|
+
minHeight: '200px',
|
|
30
|
+
position: 'relative'
|
|
37
31
|
}),
|
|
38
32
|
children: [
|
|
39
33
|
/*#__PURE__*/ jsx(SearchBox, {
|
|
@@ -45,12 +39,19 @@ function SearchUserGroupUser(props) {
|
|
|
45
39
|
handleSearch(searchString);
|
|
46
40
|
}
|
|
47
41
|
}),
|
|
48
|
-
|
|
42
|
+
loading ? /*#__PURE__*/ jsx(Grid, {
|
|
43
|
+
container: true,
|
|
44
|
+
justifyContent: "center",
|
|
45
|
+
sx: {
|
|
46
|
+
mt: 3
|
|
47
|
+
},
|
|
48
|
+
children: /*#__PURE__*/ jsx(CircularProgress, {})
|
|
49
|
+
}) : users && users?.length > 0 ? /*#__PURE__*/ jsx(Grid, {
|
|
49
50
|
container: true,
|
|
50
51
|
sx: {
|
|
51
52
|
mt: 3
|
|
52
53
|
},
|
|
53
|
-
children:
|
|
54
|
+
children: users?.map((user, key)=>/*#__PURE__*/ jsx(Grid, {
|
|
54
55
|
size: {
|
|
55
56
|
xs: 12,
|
|
56
57
|
sm: 6,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"container.d.ts","sourceRoot":"","sources":["../../../../../src/Features/SYSTEM/Group/SearchUser/container.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"container.d.ts","sourceRoot":"","sources":["../../../../../src/Features/SYSTEM/Group/SearchUser/container.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,4BAA4B,CAAC;AAQlD,UAAU,YAAY;IAClB,aAAa,EAAE,IAAI,EAAE,CAAC;IACtB,eAAe,CAAC,EAAE,CAAC,KAAK,EAAE,IAAI,EAAE,KAAK,IAAI,CAAC;CAC7C;AAED,QAAA,MAAM,OAAO,UAAW,YAAY,4CA+GnC,CAAC;AAEF,eAAe,OAAO,CAAC"}
|
|
@@ -1,21 +1,24 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import { useEffect, useState } from "react";
|
|
3
|
-
import lodash from "lodash";
|
|
4
2
|
import Grid from "@mui/material/Grid";
|
|
3
|
+
import lodash from "lodash";
|
|
4
|
+
import { useEffect, useRef, useState } from "react";
|
|
5
5
|
import { useTranslation } from "react-i18next";
|
|
6
|
-
import component from "./component.js";
|
|
7
6
|
import { ClassicDrawer } from "../../../../Commons/index.js";
|
|
8
|
-
import { CircularProgress } from "../../../../AWING/index.js";
|
|
9
7
|
import { useContextGroup } from "../context.js";
|
|
8
|
+
import component from "./component.js";
|
|
10
9
|
const AddUser = (props)=>{
|
|
11
10
|
const { t } = useTranslation();
|
|
12
11
|
const { usersSelected, onChangeAddUser = ()=>null } = props;
|
|
13
12
|
const [listUserId, setListUserId] = useState([]);
|
|
14
13
|
const [usersData, setUsersData] = useState([]);
|
|
15
14
|
const [loading, setLoading] = useState(false);
|
|
15
|
+
const usersCache = useRef({});
|
|
16
16
|
const { services } = useContextGroup();
|
|
17
17
|
useEffect(()=>{
|
|
18
18
|
setListUserId(usersSelected.length > 0 ? usersSelected.map((item)=>item.id).filter((id)=>void 0 !== id) : []);
|
|
19
|
+
usersSelected.forEach((user)=>{
|
|
20
|
+
if (void 0 !== user.id) usersCache.current[user.id] = user;
|
|
21
|
+
});
|
|
19
22
|
}, [
|
|
20
23
|
usersSelected
|
|
21
24
|
]);
|
|
@@ -26,7 +29,7 @@ const AddUser = (props)=>{
|
|
|
26
29
|
const newUserIds = lodash.differenceWith(userIds, usersSelected, (a, b)=>a === b.id);
|
|
27
30
|
const newUsers = [
|
|
28
31
|
...newUserIds.map((userId)=>{
|
|
29
|
-
const user =
|
|
32
|
+
const user = usersCache.current[userId];
|
|
30
33
|
return {
|
|
31
34
|
id: userId,
|
|
32
35
|
username: user?.username ?? '',
|
|
@@ -36,14 +39,33 @@ const AddUser = (props)=>{
|
|
|
36
39
|
];
|
|
37
40
|
onChangeAddUser(newUsers);
|
|
38
41
|
};
|
|
39
|
-
|
|
42
|
+
const fetchUsers = (searchString)=>{
|
|
40
43
|
if (services?.getUsers) {
|
|
41
44
|
setLoading(true);
|
|
42
|
-
services.getUsers(
|
|
45
|
+
services.getUsers({
|
|
46
|
+
where: {
|
|
47
|
+
username: {
|
|
48
|
+
eq: searchString
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}).then((data)=>{
|
|
43
52
|
setUsersData(data.users);
|
|
53
|
+
data.users.forEach((user)=>{
|
|
54
|
+
if (void 0 !== user.id) usersCache.current[user.id] = user;
|
|
55
|
+
});
|
|
44
56
|
}).finally(()=>setLoading(false));
|
|
45
57
|
}
|
|
46
|
-
}
|
|
58
|
+
};
|
|
59
|
+
const debouncedFetchUsers = useRef(lodash.debounce((query)=>{
|
|
60
|
+
fetchUsers(query);
|
|
61
|
+
}, 500)).current;
|
|
62
|
+
const handleSearch = (val)=>{
|
|
63
|
+
if ('' !== val) debouncedFetchUsers(val);
|
|
64
|
+
else {
|
|
65
|
+
debouncedFetchUsers.cancel();
|
|
66
|
+
setUsersData([]);
|
|
67
|
+
}
|
|
68
|
+
};
|
|
47
69
|
return /*#__PURE__*/ jsx(ClassicDrawer, {
|
|
48
70
|
title: t('UserGroup.TitleAdd'),
|
|
49
71
|
onSubmit: ()=>new Promise((resolve, _reject)=>{
|
|
@@ -58,10 +80,12 @@ const AddUser = (props)=>{
|
|
|
58
80
|
pl: 1,
|
|
59
81
|
pr: 1
|
|
60
82
|
},
|
|
61
|
-
children:
|
|
83
|
+
children: /*#__PURE__*/ jsx(component, {
|
|
62
84
|
users: usersData?.filter((x)=>null !== x).filter((x)=>!usersSelected?.map((y)=>y.id).includes(x.id)) ?? [],
|
|
63
85
|
listUserId: listUserId,
|
|
64
|
-
onListUserIdChange: handleListUserIdChange
|
|
86
|
+
onListUserIdChange: handleListUserIdChange,
|
|
87
|
+
onSearch: handleSearch,
|
|
88
|
+
loading: loading
|
|
65
89
|
})
|
|
66
90
|
})
|
|
67
91
|
});
|