@intra-mart/smartlime 1.1.0 → 1.1.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/lib/packages/Search/hooks/index.d.ts +8 -8
- package/lib/packages/Search/hooks/index.js +8 -8
- package/lib/packages/Search/hooks/useDepartmentSearch.d.ts +2 -0
- package/lib/packages/Search/hooks/{useDepartmentSerch.js → useDepartmentSearch.js} +1 -1
- package/lib/packages/Search/hooks/useDepartmentTopSearch.d.ts +2 -0
- package/lib/packages/Search/hooks/{useDepartmentTopSerch.js → useDepartmentTopSearch.js} +1 -1
- package/lib/packages/Search/hooks/usePostSearch.d.ts +2 -0
- package/lib/packages/Search/hooks/{usePostSerch.js → usePostSearch.js} +1 -1
- package/lib/packages/Search/hooks/usePublicGroupSearch.d.ts +2 -0
- package/lib/packages/Search/hooks/{usePublicGroupSerch.js → usePublicGroupSearch.js} +1 -1
- package/lib/packages/Search/hooks/usePublicGroupTopSearch.d.ts +2 -0
- package/lib/packages/Search/hooks/{usePublicGroupTopSerch.js → usePublicGroupTopSearch.js} +1 -1
- package/lib/packages/Search/hooks/useRoleSearch.d.ts +2 -0
- package/lib/packages/Search/hooks/{useRoleSerch.js → useRoleSearch.js} +1 -1
- package/lib/packages/Search/index.js +5 -5
- package/package.json +1 -1
- package/lib/packages/Search/hooks/useDepartmentSerch.d.ts +0 -2
- package/lib/packages/Search/hooks/useDepartmentTopSerch.d.ts +0 -2
- package/lib/packages/Search/hooks/usePostSerch.d.ts +0 -2
- package/lib/packages/Search/hooks/usePublicGroupSerch.d.ts +0 -2
- package/lib/packages/Search/hooks/usePublicGroupTopSerch.d.ts +0 -2
- package/lib/packages/Search/hooks/useRoleSerch.d.ts +0 -2
- /package/lib/packages/Search/hooks/{usePublicGroupRoleSerch.d.ts → usePublicGroupRoleSearch.d.ts} +0 -0
- /package/lib/packages/Search/hooks/{usePublicGroupRoleSerch.js → usePublicGroupRoleSearch.js} +0 -0
- /package/lib/packages/Search/hooks/{useUserSerch.d.ts → useUserSearch.d.ts} +0 -0
- /package/lib/packages/Search/hooks/{useUserSerch.js → useUserSearch.js} +0 -0
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
export * from './useIMSearch';
|
|
2
|
-
export * from './
|
|
3
|
-
export * from './
|
|
4
|
-
export * from './
|
|
5
|
-
export * from './
|
|
6
|
-
export * from './
|
|
7
|
-
export * from './
|
|
8
|
-
export * from './
|
|
2
|
+
export * from './useUserSearch';
|
|
3
|
+
export * from './useDepartmentSearch';
|
|
4
|
+
export * from './useDepartmentTopSearch';
|
|
5
|
+
export * from './usePostSearch';
|
|
6
|
+
export * from './usePublicGroupSearch';
|
|
7
|
+
export * from './usePublicGroupTopSearch';
|
|
8
|
+
export * from './useRoleSearch';
|
|
9
9
|
export * from './useUserAdditionalInformationSearch';
|
|
10
10
|
export * from './useDepartmentPostSearch';
|
|
11
|
-
export * from './
|
|
11
|
+
export * from './usePublicGroupRoleSearch';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
export * from './useIMSearch';
|
|
2
|
-
export * from './
|
|
3
|
-
export * from './
|
|
4
|
-
export * from './
|
|
5
|
-
export * from './
|
|
6
|
-
export * from './
|
|
7
|
-
export * from './
|
|
8
|
-
export * from './
|
|
2
|
+
export * from './useUserSearch';
|
|
3
|
+
export * from './useDepartmentSearch';
|
|
4
|
+
export * from './useDepartmentTopSearch';
|
|
5
|
+
export * from './usePostSearch';
|
|
6
|
+
export * from './usePublicGroupSearch';
|
|
7
|
+
export * from './usePublicGroupTopSearch';
|
|
8
|
+
export * from './useRoleSearch';
|
|
9
9
|
export * from './useUserAdditionalInformationSearch';
|
|
10
10
|
export * from './useDepartmentPostSearch';
|
|
11
|
-
export * from './
|
|
11
|
+
export * from './usePublicGroupRoleSearch';
|
|
@@ -5,7 +5,7 @@ import { makeParamStringIncludeCriteria, makeParamStringIncludeProp, makeParamSt
|
|
|
5
5
|
const getEncodeParams = (parameters, userCriteria) => {
|
|
6
6
|
return `parameters=${encodeURIComponent(parameters)}&userCriteria=${encodeURIComponent(userCriteria)}`;
|
|
7
7
|
};
|
|
8
|
-
export const
|
|
8
|
+
export const useDepartmentSearch = (paramString) => {
|
|
9
9
|
const imFetch = useIMFetch();
|
|
10
10
|
const search = useCallback(async (keyword, init) => {
|
|
11
11
|
try {
|
|
@@ -5,7 +5,7 @@ import { makeParamStringIncludeCriteria, makeParamStringIncludeTargetDate, } fro
|
|
|
5
5
|
const getEncodeParams = (parameters) => {
|
|
6
6
|
return `parameters=${encodeURIComponent(parameters)}`;
|
|
7
7
|
};
|
|
8
|
-
export const
|
|
8
|
+
export const useDepartmentTopSearch = (paramString) => {
|
|
9
9
|
const imFetch = useIMFetch();
|
|
10
10
|
const search = useCallback(async (init) => {
|
|
11
11
|
try {
|
|
@@ -5,7 +5,7 @@ import { makeParamStringIncludeCriteria, makeParamStringIncludeProp, makeParamSt
|
|
|
5
5
|
const getEncodeParams = (parameters, userCriteria) => {
|
|
6
6
|
return `parameters=${encodeURIComponent(parameters)}&userCriteria=${encodeURIComponent(userCriteria)}`;
|
|
7
7
|
};
|
|
8
|
-
export const
|
|
8
|
+
export const usePostSearch = (paramString) => {
|
|
9
9
|
const imFetch = useIMFetch();
|
|
10
10
|
const search = useCallback(async (departmentSet, init) => {
|
|
11
11
|
try {
|
|
@@ -5,7 +5,7 @@ import { makeParamStringIncludeCriteria, makeParamStringIncludeProp, makeParamSt
|
|
|
5
5
|
const getEncodeParams = (parameters, userCriteria) => {
|
|
6
6
|
return `parameters=${encodeURIComponent(parameters)}&userCriteria=${encodeURIComponent(userCriteria)}`;
|
|
7
7
|
};
|
|
8
|
-
export const
|
|
8
|
+
export const usePublicGroupSearch = (paramString) => {
|
|
9
9
|
const imFetch = useIMFetch();
|
|
10
10
|
const search = useCallback(async (keyword, init) => {
|
|
11
11
|
try {
|
|
@@ -5,7 +5,7 @@ import { makeParamStringIncludeCriteria, makeParamStringIncludeTargetDate, } fro
|
|
|
5
5
|
const getEncodeParams = (parameters) => {
|
|
6
6
|
return `parameters=${encodeURIComponent(parameters)}`;
|
|
7
7
|
};
|
|
8
|
-
export const
|
|
8
|
+
export const usePublicGroupTopSearch = (paramString) => {
|
|
9
9
|
const imFetch = useIMFetch();
|
|
10
10
|
const search = useCallback(async (init) => {
|
|
11
11
|
try {
|
|
@@ -5,7 +5,7 @@ import { makeParamStringIncludeCriteria, makeParamStringIncludeProp, makeParamSt
|
|
|
5
5
|
const getEncodeParams = (parameters, userCriteria) => {
|
|
6
6
|
return `parameters=${encodeURIComponent(parameters)}&userCriteria=${encodeURIComponent(userCriteria)}`;
|
|
7
7
|
};
|
|
8
|
-
export const
|
|
8
|
+
export const useRoleSearch = (paramString) => {
|
|
9
9
|
const imFetch = useIMFetch();
|
|
10
10
|
const search = useCallback(async (publicGroupSet, init) => {
|
|
11
11
|
try {
|
|
@@ -18,13 +18,13 @@ const useParamString = () => {
|
|
|
18
18
|
return useState('');
|
|
19
19
|
};
|
|
20
20
|
const useSearch = (setIsVisible, setSearchTarget, setSearchType, setParamString, lockRef) => {
|
|
21
|
-
const
|
|
21
|
+
const SearchResolveRef = useRef(null);
|
|
22
22
|
const start = useCallback(({ target, type, paramString }) => {
|
|
23
23
|
return new Promise((resolve) => {
|
|
24
24
|
if (lockRef.current)
|
|
25
25
|
resolve({ type: 'locked' });
|
|
26
26
|
lockRef.current = true;
|
|
27
|
-
|
|
27
|
+
SearchResolveRef.current = resolve;
|
|
28
28
|
setSearchTarget(target);
|
|
29
29
|
setSearchType(type);
|
|
30
30
|
setParamString(paramString);
|
|
@@ -32,11 +32,11 @@ const useSearch = (setIsVisible, setSearchTarget, setSearchType, setParamString,
|
|
|
32
32
|
});
|
|
33
33
|
}, [setIsVisible, setSearchTarget, setSearchType, setParamString]);
|
|
34
34
|
const complate = useCallback((result) => {
|
|
35
|
-
if (
|
|
36
|
-
|
|
35
|
+
if (SearchResolveRef.current != null)
|
|
36
|
+
SearchResolveRef.current(result);
|
|
37
37
|
else
|
|
38
38
|
throw new IMSearchError('not found resolve');
|
|
39
|
-
|
|
39
|
+
SearchResolveRef.current = null;
|
|
40
40
|
lockRef.current = false;
|
|
41
41
|
setIsVisible(false);
|
|
42
42
|
}, [setIsVisible]);
|
package/package.json
CHANGED
/package/lib/packages/Search/hooks/{usePublicGroupRoleSerch.d.ts → usePublicGroupRoleSearch.d.ts}
RENAMED
|
File without changes
|
/package/lib/packages/Search/hooks/{usePublicGroupRoleSerch.js → usePublicGroupRoleSearch.js}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|