@fctc/edu-logic-lib 1.1.4 → 1.1.6
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/hooks.d.mts +1 -12
- package/dist/hooks.d.ts +1 -12
- package/dist/hooks.js +0 -3091
- package/dist/hooks.mjs +0 -3086
- package/dist/index.d.mts +5 -8
- package/dist/index.d.ts +5 -8
- package/dist/index.js +969 -981
- package/dist/index.mjs +413 -424
- package/dist/services.d.mts +7 -8
- package/dist/services.d.ts +7 -8
- package/dist/store.d.mts +194 -194
- package/dist/store.d.ts +194 -194
- package/dist/types.d.mts +1 -2
- package/dist/types.d.ts +1 -2
- package/dist/{api-type-dNqOR_Yp.d.mts → view-type-BTzRpkT7.d.mts} +42 -1
- package/dist/{api-type-dNqOR_Yp.d.ts → view-type-BTzRpkT7.d.ts} +42 -1
- package/package.json +12 -12
- package/dist/view-type-BOk5F1Fj.d.mts +0 -42
- package/dist/view-type-BOk5F1Fj.d.ts +0 -42
package/dist/services.d.mts
CHANGED
|
@@ -1,13 +1,6 @@
|
|
|
1
|
-
import { C as ContextApi, b as GetListParams, a as GetDetailParams, S as SaveParams, D as DeleteParams, O as OnChangeParams, V as ViewData } from './
|
|
2
|
-
import { L as LoginCredentialBody, R as ResetPasswordRequest, U as UpdatePasswordRequest, G as GetViewParams } from './view-type-BOk5F1Fj.mjs';
|
|
1
|
+
import { C as ContextApi, L as LoginCredentialBody, R as ResetPasswordRequest, U as UpdatePasswordRequest, b as GetListParams, a as GetDetailParams, S as SaveParams, D as DeleteParams, O as OnChangeParams, V as ViewData, e as GetViewParams } from './view-type-BTzRpkT7.mjs';
|
|
3
2
|
import { C as Context } from './context-type-D5XefoL-.mjs';
|
|
4
3
|
|
|
5
|
-
type TFormView = {
|
|
6
|
-
model: string;
|
|
7
|
-
id?: number | null;
|
|
8
|
-
context?: any;
|
|
9
|
-
};
|
|
10
|
-
|
|
11
4
|
declare const ActionService: {
|
|
12
5
|
loadAction({ idAction, context, }: {
|
|
13
6
|
idAction: number;
|
|
@@ -107,6 +100,12 @@ declare const ExcelService: {
|
|
|
107
100
|
}): Promise<any>;
|
|
108
101
|
};
|
|
109
102
|
|
|
103
|
+
type TFormView = {
|
|
104
|
+
model: string;
|
|
105
|
+
id?: number | null;
|
|
106
|
+
context?: any;
|
|
107
|
+
};
|
|
108
|
+
|
|
110
109
|
declare const FormService: {
|
|
111
110
|
getComment({ data }: {
|
|
112
111
|
data: any;
|
package/dist/services.d.ts
CHANGED
|
@@ -1,13 +1,6 @@
|
|
|
1
|
-
import { C as ContextApi, b as GetListParams, a as GetDetailParams, S as SaveParams, D as DeleteParams, O as OnChangeParams, V as ViewData } from './
|
|
2
|
-
import { L as LoginCredentialBody, R as ResetPasswordRequest, U as UpdatePasswordRequest, G as GetViewParams } from './view-type-BOk5F1Fj.js';
|
|
1
|
+
import { C as ContextApi, L as LoginCredentialBody, R as ResetPasswordRequest, U as UpdatePasswordRequest, b as GetListParams, a as GetDetailParams, S as SaveParams, D as DeleteParams, O as OnChangeParams, V as ViewData, e as GetViewParams } from './view-type-BTzRpkT7.js';
|
|
3
2
|
import { C as Context } from './context-type-D5XefoL-.js';
|
|
4
3
|
|
|
5
|
-
type TFormView = {
|
|
6
|
-
model: string;
|
|
7
|
-
id?: number | null;
|
|
8
|
-
context?: any;
|
|
9
|
-
};
|
|
10
|
-
|
|
11
4
|
declare const ActionService: {
|
|
12
5
|
loadAction({ idAction, context, }: {
|
|
13
6
|
idAction: number;
|
|
@@ -107,6 +100,12 @@ declare const ExcelService: {
|
|
|
107
100
|
}): Promise<any>;
|
|
108
101
|
};
|
|
109
102
|
|
|
103
|
+
type TFormView = {
|
|
104
|
+
model: string;
|
|
105
|
+
id?: number | null;
|
|
106
|
+
context?: any;
|
|
107
|
+
};
|
|
108
|
+
|
|
110
109
|
declare const FormService: {
|
|
111
110
|
getComment({ data }: {
|
|
112
111
|
data: any;
|
package/dist/store.d.mts
CHANGED
|
@@ -5,200 +5,6 @@ import * as redux_thunk from 'redux-thunk';
|
|
|
5
5
|
import * as redux from 'redux';
|
|
6
6
|
import * as immer from 'immer';
|
|
7
7
|
|
|
8
|
-
interface UserInfor {
|
|
9
|
-
address?: {
|
|
10
|
-
country?: boolean;
|
|
11
|
-
formatted?: string;
|
|
12
|
-
locality?: boolean;
|
|
13
|
-
postal_code?: boolean;
|
|
14
|
-
region?: boolean;
|
|
15
|
-
street_address?: boolean;
|
|
16
|
-
};
|
|
17
|
-
email?: string;
|
|
18
|
-
locale?: string;
|
|
19
|
-
name?: string;
|
|
20
|
-
partner_id?: {
|
|
21
|
-
id?: number;
|
|
22
|
-
stud_id?: boolean;
|
|
23
|
-
};
|
|
24
|
-
phone_number?: boolean;
|
|
25
|
-
sub?: number;
|
|
26
|
-
updated_at?: string;
|
|
27
|
-
username?: string;
|
|
28
|
-
website?: boolean;
|
|
29
|
-
zoneinfo?: string;
|
|
30
|
-
image?: string;
|
|
31
|
-
}
|
|
32
|
-
interface ProfileStateType {
|
|
33
|
-
profile: UserInfor;
|
|
34
|
-
}
|
|
35
|
-
declare const profileSlice: _reduxjs_toolkit.Slice<ProfileStateType, {
|
|
36
|
-
setProfile: (state: immer.WritableDraft<ProfileStateType>, action: {
|
|
37
|
-
payload: any;
|
|
38
|
-
type: string;
|
|
39
|
-
}) => void;
|
|
40
|
-
}, "profile", "profile", _reduxjs_toolkit.SliceSelectors<ProfileStateType>>;
|
|
41
|
-
declare const setProfile: _reduxjs_toolkit.ActionCreatorWithPayload<any, "profile/setProfile">;
|
|
42
|
-
declare const selectProfile: (state: RootState) => ProfileStateType;
|
|
43
|
-
|
|
44
|
-
interface ExcelState {
|
|
45
|
-
dataParse: any | null;
|
|
46
|
-
idFile: any | null;
|
|
47
|
-
isFileLoaded: boolean;
|
|
48
|
-
loadingImport: any;
|
|
49
|
-
selectedFile: any;
|
|
50
|
-
errorData: any;
|
|
51
|
-
}
|
|
52
|
-
declare const excelSlice: _reduxjs_toolkit.Slice<ExcelState, {
|
|
53
|
-
setDataParse: (state: immer.WritableDraft<ExcelState>, action: PayloadAction<any>) => void;
|
|
54
|
-
setIdFile: (state: immer.WritableDraft<ExcelState>, action: PayloadAction<any>) => void;
|
|
55
|
-
setIsFileLoaded: (state: immer.WritableDraft<ExcelState>, action: PayloadAction<any>) => void;
|
|
56
|
-
setLoadingImport: (state: immer.WritableDraft<ExcelState>, action: PayloadAction<any>) => void;
|
|
57
|
-
setSelectedFile: (state: immer.WritableDraft<ExcelState>, action: PayloadAction<any>) => void;
|
|
58
|
-
setErrorData: (state: immer.WritableDraft<ExcelState>, action: PayloadAction<any>) => void;
|
|
59
|
-
}, "excel", "excel", _reduxjs_toolkit.SliceSelectors<ExcelState>>;
|
|
60
|
-
declare const setDataParse: _reduxjs_toolkit.ActionCreatorWithPayload<any, "excel/setDataParse">;
|
|
61
|
-
declare const setIdFile: _reduxjs_toolkit.ActionCreatorWithPayload<any, "excel/setIdFile">;
|
|
62
|
-
declare const setIsFileLoaded: _reduxjs_toolkit.ActionCreatorWithPayload<any, "excel/setIsFileLoaded">;
|
|
63
|
-
declare const setLoadingImport: _reduxjs_toolkit.ActionCreatorWithPayload<any, "excel/setLoadingImport">;
|
|
64
|
-
declare const setSelectedFile: _reduxjs_toolkit.ActionCreatorWithPayload<any, "excel/setSelectedFile">;
|
|
65
|
-
declare const setErrorData: _reduxjs_toolkit.ActionCreatorWithPayload<any, "excel/setErrorData">;
|
|
66
|
-
declare const selectExcel: (state: RootState) => ExcelState;
|
|
67
|
-
|
|
68
|
-
interface ViewDataStore {
|
|
69
|
-
[key: string]: any;
|
|
70
|
-
}
|
|
71
|
-
interface FormState {
|
|
72
|
-
viewDataStore: ViewDataStore;
|
|
73
|
-
isShowingModalDetail: boolean;
|
|
74
|
-
isShowModalTranslate: boolean;
|
|
75
|
-
formSubmitComponent: Record<string, React.ReactNode>;
|
|
76
|
-
fieldTranslation: any;
|
|
77
|
-
listSubject: any;
|
|
78
|
-
dataUser: any;
|
|
79
|
-
}
|
|
80
|
-
declare const formSlice: _reduxjs_toolkit.Slice<FormState, {
|
|
81
|
-
setViewDataStore: (state: FormState, action: PayloadAction<ViewDataStore>) => void;
|
|
82
|
-
setIsShowingModalDetail: (state: FormState, action: PayloadAction<boolean>) => void;
|
|
83
|
-
setIsShowModalTranslate: (state: FormState, action: PayloadAction<boolean>) => void;
|
|
84
|
-
setFormSubmitComponent: (state: immer.WritableDraft<FormState>, action: PayloadAction<{
|
|
85
|
-
key: string;
|
|
86
|
-
component: any;
|
|
87
|
-
}>) => void;
|
|
88
|
-
setFieldTranslate: (state: FormState, action: PayloadAction<any>) => void;
|
|
89
|
-
setListSubject: (state: FormState, action: PayloadAction<any>) => void;
|
|
90
|
-
setDataUser: (state: FormState, action: PayloadAction<any>) => void;
|
|
91
|
-
}, "form", "form", _reduxjs_toolkit.SliceSelectors<FormState>>;
|
|
92
|
-
declare const setViewDataStore: _reduxjs_toolkit.ActionCreatorWithPayload<ViewDataStore, "form/setViewDataStore">;
|
|
93
|
-
declare const setIsShowingModalDetail: _reduxjs_toolkit.ActionCreatorWithPayload<boolean, "form/setIsShowingModalDetail">;
|
|
94
|
-
declare const setIsShowModalTranslate: _reduxjs_toolkit.ActionCreatorWithPayload<boolean, "form/setIsShowModalTranslate">;
|
|
95
|
-
declare const setFormSubmitComponent: _reduxjs_toolkit.ActionCreatorWithPayload<{
|
|
96
|
-
key: string;
|
|
97
|
-
component: any;
|
|
98
|
-
}, "form/setFormSubmitComponent">;
|
|
99
|
-
declare const setFieldTranslate: _reduxjs_toolkit.ActionCreatorWithPayload<any, "form/setFieldTranslate">;
|
|
100
|
-
declare const setListSubject: _reduxjs_toolkit.ActionCreatorWithPayload<any, "form/setListSubject">;
|
|
101
|
-
declare const setDataUser: _reduxjs_toolkit.ActionCreatorWithPayload<any, "form/setDataUser">;
|
|
102
|
-
declare const selectForm: (state: RootState) => FormState;
|
|
103
|
-
|
|
104
|
-
interface SearchState {
|
|
105
|
-
groupByDomain: any;
|
|
106
|
-
tableHead: any;
|
|
107
|
-
searchString: string;
|
|
108
|
-
hoveredIndexSearchList: any;
|
|
109
|
-
selectedTags: [];
|
|
110
|
-
firstDomain: any;
|
|
111
|
-
searchMap: Record<string, any[]>;
|
|
112
|
-
typeFieldsSearch: string;
|
|
113
|
-
modelSearch: string;
|
|
114
|
-
filterBy: any;
|
|
115
|
-
groupBy: any;
|
|
116
|
-
}
|
|
117
|
-
declare const searchSlice: _reduxjs_toolkit.Slice<SearchState, {
|
|
118
|
-
setGroupByDomain: (state: immer.WritableDraft<SearchState>, action: PayloadAction<string | null>) => void;
|
|
119
|
-
setTableHead: (state: immer.WritableDraft<SearchState>, action: any) => void;
|
|
120
|
-
setSearchString: (state: immer.WritableDraft<SearchState>, action: PayloadAction<string>) => void;
|
|
121
|
-
setHoveredIndexSearchList: (state: immer.WritableDraft<SearchState>, action: PayloadAction<number | null>) => void;
|
|
122
|
-
setSelectedTags: (state: immer.WritableDraft<SearchState>, action: PayloadAction<any>) => void;
|
|
123
|
-
setFirstDomain: (state: immer.WritableDraft<SearchState>, action: PayloadAction<any>) => void;
|
|
124
|
-
setTypeFieldsSearch: (state: immer.WritableDraft<SearchState>, action: PayloadAction<any>) => void;
|
|
125
|
-
setModelSearch: (state: immer.WritableDraft<SearchState>, action: PayloadAction<string>) => void;
|
|
126
|
-
setFilterBy: (state: immer.WritableDraft<SearchState>, action: PayloadAction<any>) => void;
|
|
127
|
-
setGroupBy: (state: immer.WritableDraft<SearchState>, action: PayloadAction<any>) => void;
|
|
128
|
-
setSearchMap: (state: immer.WritableDraft<SearchState>, action: PayloadAction<Record<string, any>>) => void;
|
|
129
|
-
updateSearchMap: (state: immer.WritableDraft<SearchState>, action: PayloadAction<{
|
|
130
|
-
key: string;
|
|
131
|
-
value: any;
|
|
132
|
-
}>) => void;
|
|
133
|
-
removeKeyFromSearchMap: (state: immer.WritableDraft<SearchState>, action: PayloadAction<{
|
|
134
|
-
key: string;
|
|
135
|
-
item?: any;
|
|
136
|
-
}>) => void;
|
|
137
|
-
clearSearchMap: (state: immer.WritableDraft<SearchState>) => void;
|
|
138
|
-
}, "search", "search", _reduxjs_toolkit.SliceSelectors<SearchState>>;
|
|
139
|
-
declare const setGroupByDomain: _reduxjs_toolkit.ActionCreatorWithPayload<string | null, "search/setGroupByDomain">;
|
|
140
|
-
declare const setSelectedTags: _reduxjs_toolkit.ActionCreatorWithPayload<any, "search/setSelectedTags">;
|
|
141
|
-
declare const setSearchString: _reduxjs_toolkit.ActionCreatorWithPayload<string, "search/setSearchString">;
|
|
142
|
-
declare const setHoveredIndexSearchList: _reduxjs_toolkit.ActionCreatorWithPayload<number | null, "search/setHoveredIndexSearchList">;
|
|
143
|
-
declare const setFirstDomain: _reduxjs_toolkit.ActionCreatorWithPayload<any, "search/setFirstDomain">;
|
|
144
|
-
declare const setTableHead: _reduxjs_toolkit.ActionCreatorWithNonInferrablePayload<"search/setTableHead"> | _reduxjs_toolkit.ActionCreatorWithoutPayload<"search/setTableHead">;
|
|
145
|
-
declare const setFilterBy: _reduxjs_toolkit.ActionCreatorWithPayload<any, "search/setFilterBy">;
|
|
146
|
-
declare const setTypeFieldsSearch: _reduxjs_toolkit.ActionCreatorWithPayload<any, "search/setTypeFieldsSearch">;
|
|
147
|
-
declare const setModelSearch: _reduxjs_toolkit.ActionCreatorWithPayload<string, "search/setModelSearch">;
|
|
148
|
-
declare const setSearchMap: _reduxjs_toolkit.ActionCreatorWithPayload<Record<string, any>, "search/setSearchMap">;
|
|
149
|
-
declare const updateSearchMap: _reduxjs_toolkit.ActionCreatorWithPayload<{
|
|
150
|
-
key: string;
|
|
151
|
-
value: any;
|
|
152
|
-
}, "search/updateSearchMap">;
|
|
153
|
-
declare const removeKeyFromSearchMap: _reduxjs_toolkit.ActionCreatorWithPayload<{
|
|
154
|
-
key: string;
|
|
155
|
-
item?: any;
|
|
156
|
-
}, "search/removeKeyFromSearchMap">;
|
|
157
|
-
declare const setGroupBy: _reduxjs_toolkit.ActionCreatorWithPayload<any, "search/setGroupBy">;
|
|
158
|
-
declare const clearSearchMap: _reduxjs_toolkit.ActionCreatorWithoutPayload<"search/clearSearchMap">;
|
|
159
|
-
declare const selectSearch: (state: RootState) => SearchState;
|
|
160
|
-
declare const selectSearchMap: (state: RootState) => Record<string, any[]>;
|
|
161
|
-
|
|
162
|
-
interface ListState {
|
|
163
|
-
pageLimit: number;
|
|
164
|
-
fields: Record<string, any>;
|
|
165
|
-
order: string | null;
|
|
166
|
-
selectedRowKeys: number[];
|
|
167
|
-
indexRowTableModal: number;
|
|
168
|
-
footerGroupTable: Record<string, any>;
|
|
169
|
-
page: number;
|
|
170
|
-
domainTable?: any;
|
|
171
|
-
}
|
|
172
|
-
declare const listSlice: _reduxjs_toolkit.Slice<ListState, {
|
|
173
|
-
setPageLimit: (state: immer.WritableDraft<ListState>, action: PayloadAction<number>) => void;
|
|
174
|
-
setFields: (state: immer.WritableDraft<ListState>, action: PayloadAction<Record<string, any>>) => void;
|
|
175
|
-
setOrder: (state: immer.WritableDraft<ListState>, action: PayloadAction<string | null>) => void;
|
|
176
|
-
setSelectedRowKeys: (state: immer.WritableDraft<ListState>, action: PayloadAction<number[]>) => void;
|
|
177
|
-
setIndexRowTableModal: (state: immer.WritableDraft<ListState>, action: PayloadAction<number>) => void;
|
|
178
|
-
setPage: (state: immer.WritableDraft<ListState>, action: PayloadAction<number>) => void;
|
|
179
|
-
setDomainTable: (state: immer.WritableDraft<ListState>, action: PayloadAction<any[]>) => void;
|
|
180
|
-
}, "list", "list", _reduxjs_toolkit.SliceSelectors<ListState>>;
|
|
181
|
-
declare const setPageLimit: _reduxjs_toolkit.ActionCreatorWithPayload<number, "list/setPageLimit">;
|
|
182
|
-
declare const setFields: _reduxjs_toolkit.ActionCreatorWithPayload<Record<string, any>, "list/setFields">;
|
|
183
|
-
declare const setOrder: _reduxjs_toolkit.ActionCreatorWithPayload<string | null, "list/setOrder">;
|
|
184
|
-
declare const setSelectedRowKeys: _reduxjs_toolkit.ActionCreatorWithPayload<number[], "list/setSelectedRowKeys">;
|
|
185
|
-
declare const setIndexRowTableModal: _reduxjs_toolkit.ActionCreatorWithPayload<number, "list/setIndexRowTableModal">;
|
|
186
|
-
declare const setPage: _reduxjs_toolkit.ActionCreatorWithPayload<number, "list/setPage">;
|
|
187
|
-
declare const setDomainTable: _reduxjs_toolkit.ActionCreatorWithPayload<any[], "list/setDomainTable">;
|
|
188
|
-
declare const selectList: (state: RootState) => ListState;
|
|
189
|
-
|
|
190
|
-
interface NavbarStateType {
|
|
191
|
-
menuList: any;
|
|
192
|
-
}
|
|
193
|
-
declare const navbarSlice: _reduxjs_toolkit.Slice<NavbarStateType, {
|
|
194
|
-
setMenuList: (state: immer.WritableDraft<NavbarStateType>, action: {
|
|
195
|
-
payload: any;
|
|
196
|
-
type: string;
|
|
197
|
-
}) => void;
|
|
198
|
-
}, "navbar", "navbar", _reduxjs_toolkit.SliceSelectors<NavbarStateType>>;
|
|
199
|
-
declare const setMenuList: _reduxjs_toolkit.ActionCreatorWithPayload<any, "navbar/setMenuList">;
|
|
200
|
-
declare const selectNavbar: (state: RootState) => NavbarStateType;
|
|
201
|
-
|
|
202
8
|
declare const envStore: _reduxjs_toolkit.EnhancedStore<{
|
|
203
9
|
env: {
|
|
204
10
|
baseUrl: string;
|
|
@@ -497,6 +303,200 @@ declare const selectEnv: (state: RootState) => {
|
|
|
497
303
|
};
|
|
498
304
|
};
|
|
499
305
|
|
|
306
|
+
interface ExcelState {
|
|
307
|
+
dataParse: any | null;
|
|
308
|
+
idFile: any | null;
|
|
309
|
+
isFileLoaded: boolean;
|
|
310
|
+
loadingImport: any;
|
|
311
|
+
selectedFile: any;
|
|
312
|
+
errorData: any;
|
|
313
|
+
}
|
|
314
|
+
declare const excelSlice: _reduxjs_toolkit.Slice<ExcelState, {
|
|
315
|
+
setDataParse: (state: immer.WritableDraft<ExcelState>, action: PayloadAction<any>) => void;
|
|
316
|
+
setIdFile: (state: immer.WritableDraft<ExcelState>, action: PayloadAction<any>) => void;
|
|
317
|
+
setIsFileLoaded: (state: immer.WritableDraft<ExcelState>, action: PayloadAction<any>) => void;
|
|
318
|
+
setLoadingImport: (state: immer.WritableDraft<ExcelState>, action: PayloadAction<any>) => void;
|
|
319
|
+
setSelectedFile: (state: immer.WritableDraft<ExcelState>, action: PayloadAction<any>) => void;
|
|
320
|
+
setErrorData: (state: immer.WritableDraft<ExcelState>, action: PayloadAction<any>) => void;
|
|
321
|
+
}, "excel", "excel", _reduxjs_toolkit.SliceSelectors<ExcelState>>;
|
|
322
|
+
declare const setDataParse: _reduxjs_toolkit.ActionCreatorWithPayload<any, "excel/setDataParse">;
|
|
323
|
+
declare const setIdFile: _reduxjs_toolkit.ActionCreatorWithPayload<any, "excel/setIdFile">;
|
|
324
|
+
declare const setIsFileLoaded: _reduxjs_toolkit.ActionCreatorWithPayload<any, "excel/setIsFileLoaded">;
|
|
325
|
+
declare const setLoadingImport: _reduxjs_toolkit.ActionCreatorWithPayload<any, "excel/setLoadingImport">;
|
|
326
|
+
declare const setSelectedFile: _reduxjs_toolkit.ActionCreatorWithPayload<any, "excel/setSelectedFile">;
|
|
327
|
+
declare const setErrorData: _reduxjs_toolkit.ActionCreatorWithPayload<any, "excel/setErrorData">;
|
|
328
|
+
declare const selectExcel: (state: RootState) => ExcelState;
|
|
329
|
+
|
|
330
|
+
interface ViewDataStore {
|
|
331
|
+
[key: string]: any;
|
|
332
|
+
}
|
|
333
|
+
interface FormState {
|
|
334
|
+
viewDataStore: ViewDataStore;
|
|
335
|
+
isShowingModalDetail: boolean;
|
|
336
|
+
isShowModalTranslate: boolean;
|
|
337
|
+
formSubmitComponent: Record<string, React.ReactNode>;
|
|
338
|
+
fieldTranslation: any;
|
|
339
|
+
listSubject: any;
|
|
340
|
+
dataUser: any;
|
|
341
|
+
}
|
|
342
|
+
declare const formSlice: _reduxjs_toolkit.Slice<FormState, {
|
|
343
|
+
setViewDataStore: (state: FormState, action: PayloadAction<ViewDataStore>) => void;
|
|
344
|
+
setIsShowingModalDetail: (state: FormState, action: PayloadAction<boolean>) => void;
|
|
345
|
+
setIsShowModalTranslate: (state: FormState, action: PayloadAction<boolean>) => void;
|
|
346
|
+
setFormSubmitComponent: (state: immer.WritableDraft<FormState>, action: PayloadAction<{
|
|
347
|
+
key: string;
|
|
348
|
+
component: any;
|
|
349
|
+
}>) => void;
|
|
350
|
+
setFieldTranslate: (state: FormState, action: PayloadAction<any>) => void;
|
|
351
|
+
setListSubject: (state: FormState, action: PayloadAction<any>) => void;
|
|
352
|
+
setDataUser: (state: FormState, action: PayloadAction<any>) => void;
|
|
353
|
+
}, "form", "form", _reduxjs_toolkit.SliceSelectors<FormState>>;
|
|
354
|
+
declare const setViewDataStore: _reduxjs_toolkit.ActionCreatorWithPayload<ViewDataStore, "form/setViewDataStore">;
|
|
355
|
+
declare const setIsShowingModalDetail: _reduxjs_toolkit.ActionCreatorWithPayload<boolean, "form/setIsShowingModalDetail">;
|
|
356
|
+
declare const setIsShowModalTranslate: _reduxjs_toolkit.ActionCreatorWithPayload<boolean, "form/setIsShowModalTranslate">;
|
|
357
|
+
declare const setFormSubmitComponent: _reduxjs_toolkit.ActionCreatorWithPayload<{
|
|
358
|
+
key: string;
|
|
359
|
+
component: any;
|
|
360
|
+
}, "form/setFormSubmitComponent">;
|
|
361
|
+
declare const setFieldTranslate: _reduxjs_toolkit.ActionCreatorWithPayload<any, "form/setFieldTranslate">;
|
|
362
|
+
declare const setListSubject: _reduxjs_toolkit.ActionCreatorWithPayload<any, "form/setListSubject">;
|
|
363
|
+
declare const setDataUser: _reduxjs_toolkit.ActionCreatorWithPayload<any, "form/setDataUser">;
|
|
364
|
+
declare const selectForm: (state: RootState) => FormState;
|
|
365
|
+
|
|
366
|
+
interface ListState {
|
|
367
|
+
pageLimit: number;
|
|
368
|
+
fields: Record<string, any>;
|
|
369
|
+
order: string | null;
|
|
370
|
+
selectedRowKeys: number[];
|
|
371
|
+
indexRowTableModal: number;
|
|
372
|
+
footerGroupTable: Record<string, any>;
|
|
373
|
+
page: number;
|
|
374
|
+
domainTable?: any;
|
|
375
|
+
}
|
|
376
|
+
declare const listSlice: _reduxjs_toolkit.Slice<ListState, {
|
|
377
|
+
setPageLimit: (state: immer.WritableDraft<ListState>, action: PayloadAction<number>) => void;
|
|
378
|
+
setFields: (state: immer.WritableDraft<ListState>, action: PayloadAction<Record<string, any>>) => void;
|
|
379
|
+
setOrder: (state: immer.WritableDraft<ListState>, action: PayloadAction<string | null>) => void;
|
|
380
|
+
setSelectedRowKeys: (state: immer.WritableDraft<ListState>, action: PayloadAction<number[]>) => void;
|
|
381
|
+
setIndexRowTableModal: (state: immer.WritableDraft<ListState>, action: PayloadAction<number>) => void;
|
|
382
|
+
setPage: (state: immer.WritableDraft<ListState>, action: PayloadAction<number>) => void;
|
|
383
|
+
setDomainTable: (state: immer.WritableDraft<ListState>, action: PayloadAction<any[]>) => void;
|
|
384
|
+
}, "list", "list", _reduxjs_toolkit.SliceSelectors<ListState>>;
|
|
385
|
+
declare const setPageLimit: _reduxjs_toolkit.ActionCreatorWithPayload<number, "list/setPageLimit">;
|
|
386
|
+
declare const setFields: _reduxjs_toolkit.ActionCreatorWithPayload<Record<string, any>, "list/setFields">;
|
|
387
|
+
declare const setOrder: _reduxjs_toolkit.ActionCreatorWithPayload<string | null, "list/setOrder">;
|
|
388
|
+
declare const setSelectedRowKeys: _reduxjs_toolkit.ActionCreatorWithPayload<number[], "list/setSelectedRowKeys">;
|
|
389
|
+
declare const setIndexRowTableModal: _reduxjs_toolkit.ActionCreatorWithPayload<number, "list/setIndexRowTableModal">;
|
|
390
|
+
declare const setPage: _reduxjs_toolkit.ActionCreatorWithPayload<number, "list/setPage">;
|
|
391
|
+
declare const setDomainTable: _reduxjs_toolkit.ActionCreatorWithPayload<any[], "list/setDomainTable">;
|
|
392
|
+
declare const selectList: (state: RootState) => ListState;
|
|
393
|
+
|
|
394
|
+
interface NavbarStateType {
|
|
395
|
+
menuList: any;
|
|
396
|
+
}
|
|
397
|
+
declare const navbarSlice: _reduxjs_toolkit.Slice<NavbarStateType, {
|
|
398
|
+
setMenuList: (state: immer.WritableDraft<NavbarStateType>, action: {
|
|
399
|
+
payload: any;
|
|
400
|
+
type: string;
|
|
401
|
+
}) => void;
|
|
402
|
+
}, "navbar", "navbar", _reduxjs_toolkit.SliceSelectors<NavbarStateType>>;
|
|
403
|
+
declare const setMenuList: _reduxjs_toolkit.ActionCreatorWithPayload<any, "navbar/setMenuList">;
|
|
404
|
+
declare const selectNavbar: (state: RootState) => NavbarStateType;
|
|
405
|
+
|
|
406
|
+
interface UserInfor {
|
|
407
|
+
address?: {
|
|
408
|
+
country?: boolean;
|
|
409
|
+
formatted?: string;
|
|
410
|
+
locality?: boolean;
|
|
411
|
+
postal_code?: boolean;
|
|
412
|
+
region?: boolean;
|
|
413
|
+
street_address?: boolean;
|
|
414
|
+
};
|
|
415
|
+
email?: string;
|
|
416
|
+
locale?: string;
|
|
417
|
+
name?: string;
|
|
418
|
+
partner_id?: {
|
|
419
|
+
id?: number;
|
|
420
|
+
stud_id?: boolean;
|
|
421
|
+
};
|
|
422
|
+
phone_number?: boolean;
|
|
423
|
+
sub?: number;
|
|
424
|
+
updated_at?: string;
|
|
425
|
+
username?: string;
|
|
426
|
+
website?: boolean;
|
|
427
|
+
zoneinfo?: string;
|
|
428
|
+
image?: string;
|
|
429
|
+
}
|
|
430
|
+
interface ProfileStateType {
|
|
431
|
+
profile: UserInfor;
|
|
432
|
+
}
|
|
433
|
+
declare const profileSlice: _reduxjs_toolkit.Slice<ProfileStateType, {
|
|
434
|
+
setProfile: (state: immer.WritableDraft<ProfileStateType>, action: {
|
|
435
|
+
payload: any;
|
|
436
|
+
type: string;
|
|
437
|
+
}) => void;
|
|
438
|
+
}, "profile", "profile", _reduxjs_toolkit.SliceSelectors<ProfileStateType>>;
|
|
439
|
+
declare const setProfile: _reduxjs_toolkit.ActionCreatorWithPayload<any, "profile/setProfile">;
|
|
440
|
+
declare const selectProfile: (state: RootState) => ProfileStateType;
|
|
441
|
+
|
|
442
|
+
interface SearchState {
|
|
443
|
+
groupByDomain: any;
|
|
444
|
+
tableHead: any;
|
|
445
|
+
searchString: string;
|
|
446
|
+
hoveredIndexSearchList: any;
|
|
447
|
+
selectedTags: [];
|
|
448
|
+
firstDomain: any;
|
|
449
|
+
searchMap: Record<string, any[]>;
|
|
450
|
+
typeFieldsSearch: string;
|
|
451
|
+
modelSearch: string;
|
|
452
|
+
filterBy: any;
|
|
453
|
+
groupBy: any;
|
|
454
|
+
}
|
|
455
|
+
declare const searchSlice: _reduxjs_toolkit.Slice<SearchState, {
|
|
456
|
+
setGroupByDomain: (state: immer.WritableDraft<SearchState>, action: PayloadAction<string | null>) => void;
|
|
457
|
+
setTableHead: (state: immer.WritableDraft<SearchState>, action: any) => void;
|
|
458
|
+
setSearchString: (state: immer.WritableDraft<SearchState>, action: PayloadAction<string>) => void;
|
|
459
|
+
setHoveredIndexSearchList: (state: immer.WritableDraft<SearchState>, action: PayloadAction<number | null>) => void;
|
|
460
|
+
setSelectedTags: (state: immer.WritableDraft<SearchState>, action: PayloadAction<any>) => void;
|
|
461
|
+
setFirstDomain: (state: immer.WritableDraft<SearchState>, action: PayloadAction<any>) => void;
|
|
462
|
+
setTypeFieldsSearch: (state: immer.WritableDraft<SearchState>, action: PayloadAction<any>) => void;
|
|
463
|
+
setModelSearch: (state: immer.WritableDraft<SearchState>, action: PayloadAction<string>) => void;
|
|
464
|
+
setFilterBy: (state: immer.WritableDraft<SearchState>, action: PayloadAction<any>) => void;
|
|
465
|
+
setGroupBy: (state: immer.WritableDraft<SearchState>, action: PayloadAction<any>) => void;
|
|
466
|
+
setSearchMap: (state: immer.WritableDraft<SearchState>, action: PayloadAction<Record<string, any>>) => void;
|
|
467
|
+
updateSearchMap: (state: immer.WritableDraft<SearchState>, action: PayloadAction<{
|
|
468
|
+
key: string;
|
|
469
|
+
value: any;
|
|
470
|
+
}>) => void;
|
|
471
|
+
removeKeyFromSearchMap: (state: immer.WritableDraft<SearchState>, action: PayloadAction<{
|
|
472
|
+
key: string;
|
|
473
|
+
item?: any;
|
|
474
|
+
}>) => void;
|
|
475
|
+
clearSearchMap: (state: immer.WritableDraft<SearchState>) => void;
|
|
476
|
+
}, "search", "search", _reduxjs_toolkit.SliceSelectors<SearchState>>;
|
|
477
|
+
declare const setGroupByDomain: _reduxjs_toolkit.ActionCreatorWithPayload<string | null, "search/setGroupByDomain">;
|
|
478
|
+
declare const setSelectedTags: _reduxjs_toolkit.ActionCreatorWithPayload<any, "search/setSelectedTags">;
|
|
479
|
+
declare const setSearchString: _reduxjs_toolkit.ActionCreatorWithPayload<string, "search/setSearchString">;
|
|
480
|
+
declare const setHoveredIndexSearchList: _reduxjs_toolkit.ActionCreatorWithPayload<number | null, "search/setHoveredIndexSearchList">;
|
|
481
|
+
declare const setFirstDomain: _reduxjs_toolkit.ActionCreatorWithPayload<any, "search/setFirstDomain">;
|
|
482
|
+
declare const setTableHead: _reduxjs_toolkit.ActionCreatorWithNonInferrablePayload<"search/setTableHead"> | _reduxjs_toolkit.ActionCreatorWithoutPayload<"search/setTableHead">;
|
|
483
|
+
declare const setFilterBy: _reduxjs_toolkit.ActionCreatorWithPayload<any, "search/setFilterBy">;
|
|
484
|
+
declare const setTypeFieldsSearch: _reduxjs_toolkit.ActionCreatorWithPayload<any, "search/setTypeFieldsSearch">;
|
|
485
|
+
declare const setModelSearch: _reduxjs_toolkit.ActionCreatorWithPayload<string, "search/setModelSearch">;
|
|
486
|
+
declare const setSearchMap: _reduxjs_toolkit.ActionCreatorWithPayload<Record<string, any>, "search/setSearchMap">;
|
|
487
|
+
declare const updateSearchMap: _reduxjs_toolkit.ActionCreatorWithPayload<{
|
|
488
|
+
key: string;
|
|
489
|
+
value: any;
|
|
490
|
+
}, "search/updateSearchMap">;
|
|
491
|
+
declare const removeKeyFromSearchMap: _reduxjs_toolkit.ActionCreatorWithPayload<{
|
|
492
|
+
key: string;
|
|
493
|
+
item?: any;
|
|
494
|
+
}, "search/removeKeyFromSearchMap">;
|
|
495
|
+
declare const setGroupBy: _reduxjs_toolkit.ActionCreatorWithPayload<any, "search/setGroupBy">;
|
|
496
|
+
declare const clearSearchMap: _reduxjs_toolkit.ActionCreatorWithoutPayload<"search/clearSearchMap">;
|
|
497
|
+
declare const selectSearch: (state: RootState) => SearchState;
|
|
498
|
+
declare const selectSearchMap: (state: RootState) => Record<string, any[]>;
|
|
499
|
+
|
|
500
500
|
type RootState = ReturnType<typeof envStore.getState>;
|
|
501
501
|
type AppDispatch = typeof envStore.dispatch;
|
|
502
502
|
declare const useAppDispatch: () => AppDispatch;
|