@fctc/interface-logic 1.5.1 → 1.5.3
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/configs.d.mts +15 -0
- package/dist/configs.js +107 -96
- package/dist/configs.mjs +2361 -0
- package/dist/constants.d.mts +131 -0
- package/dist/constants.mjs +166 -0
- package/dist/environment.d.mts +55 -0
- package/dist/environment.js +137 -122
- package/dist/environment.mjs +3072 -0
- package/dist/hooks.d.mts +359 -0
- package/dist/hooks.js +1556 -1393
- package/dist/hooks.mjs +6081 -0
- package/dist/provider.d.mts +16 -0
- package/dist/provider.d.ts +4 -3
- package/dist/provider.js +562 -509
- package/dist/provider.mjs +3620 -0
- package/dist/services.d.mts +255 -0
- package/dist/services.js +1529 -1364
- package/dist/services.mjs +4785 -0
- package/dist/store.d.mts +643 -0
- package/dist/store.js +19 -5
- package/dist/store.mjs +726 -0
- package/dist/types.d.mts +17 -0
- package/dist/types.mjs +0 -0
- package/dist/utils.d.mts +93 -0
- package/dist/utils.js +116 -94
- package/dist/utils.mjs +2921 -0
- package/dist/view-type-BGJfDe73.d.mts +113 -0
- package/package.json +1 -1
package/dist/store.d.mts
ADDED
|
@@ -0,0 +1,643 @@
|
|
|
1
|
+
import { TypedUseSelectorHook } from 'react-redux';
|
|
2
|
+
import * as _reduxjs_toolkit from '@reduxjs/toolkit';
|
|
3
|
+
import { PayloadAction } from '@reduxjs/toolkit';
|
|
4
|
+
import * as redux_thunk from 'redux-thunk';
|
|
5
|
+
import * as redux from 'redux';
|
|
6
|
+
import * as immer from 'immer';
|
|
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 LoginStateType {
|
|
69
|
+
db: string;
|
|
70
|
+
redirectTo: string;
|
|
71
|
+
forgotPasswordUrl: string;
|
|
72
|
+
}
|
|
73
|
+
declare const loginSlice: _reduxjs_toolkit.Slice<LoginStateType, {
|
|
74
|
+
setDb: (state: immer.WritableDraft<LoginStateType>, action: PayloadAction<string>) => void;
|
|
75
|
+
setRedirectTo: (state: immer.WritableDraft<LoginStateType>, action: PayloadAction<string>) => void;
|
|
76
|
+
setForgotPasswordUrl: (state: immer.WritableDraft<LoginStateType>, action: PayloadAction<string>) => void;
|
|
77
|
+
}, "login", "login", _reduxjs_toolkit.SliceSelectors<LoginStateType>>;
|
|
78
|
+
declare const setDb: _reduxjs_toolkit.ActionCreatorWithPayload<string, "login/setDb">;
|
|
79
|
+
declare const setRedirectTo: _reduxjs_toolkit.ActionCreatorWithPayload<string, "login/setRedirectTo">;
|
|
80
|
+
declare const setForgotPasswordUrl: _reduxjs_toolkit.ActionCreatorWithPayload<string, "login/setForgotPasswordUrl">;
|
|
81
|
+
declare const selectLogin: (state: RootState) => LoginStateType;
|
|
82
|
+
|
|
83
|
+
interface Breadcrumb {
|
|
84
|
+
title?: string;
|
|
85
|
+
path?: string;
|
|
86
|
+
view: 'list' | 'detail' | 'edit' | 'tree';
|
|
87
|
+
aid: string | number;
|
|
88
|
+
model: string;
|
|
89
|
+
id: string | number;
|
|
90
|
+
}
|
|
91
|
+
interface BreadcrumbsState {
|
|
92
|
+
breadCrumbs: Breadcrumb[];
|
|
93
|
+
}
|
|
94
|
+
declare const breadcrumbsSlice: _reduxjs_toolkit.Slice<BreadcrumbsState, {
|
|
95
|
+
setBreadCrumbs: (state: BreadcrumbsState, action: PayloadAction<Breadcrumb>) => void;
|
|
96
|
+
}, "breadcrumbs", "breadcrumbs", _reduxjs_toolkit.SliceSelectors<BreadcrumbsState>>;
|
|
97
|
+
declare const setBreadCrumbs: _reduxjs_toolkit.ActionCreatorWithPayload<Breadcrumb, "breadcrumbs/setBreadCrumbs">;
|
|
98
|
+
declare const selectBreadCrumbs: (state: RootState) => BreadcrumbsState;
|
|
99
|
+
|
|
100
|
+
interface ViewDataStore {
|
|
101
|
+
[key: string]: any;
|
|
102
|
+
}
|
|
103
|
+
interface FormState {
|
|
104
|
+
viewDataStore: ViewDataStore;
|
|
105
|
+
isShowingModalDetail: boolean;
|
|
106
|
+
isShowModalTranslate: boolean;
|
|
107
|
+
formSubmitComponent: Record<string, React.ReactNode>;
|
|
108
|
+
fieldTranslation: any;
|
|
109
|
+
listSubject: any;
|
|
110
|
+
dataUser: any;
|
|
111
|
+
}
|
|
112
|
+
declare const formSlice: _reduxjs_toolkit.Slice<FormState, {
|
|
113
|
+
setViewDataStore: (state: FormState, action: PayloadAction<ViewDataStore>) => void;
|
|
114
|
+
setIsShowingModalDetail: (state: FormState, action: PayloadAction<boolean>) => void;
|
|
115
|
+
setIsShowModalTranslate: (state: FormState, action: PayloadAction<boolean>) => void;
|
|
116
|
+
setFormSubmitComponent: (state: immer.WritableDraft<FormState>, action: PayloadAction<{
|
|
117
|
+
key: string;
|
|
118
|
+
component: any;
|
|
119
|
+
}>) => void;
|
|
120
|
+
setFieldTranslate: (state: FormState, action: PayloadAction<any>) => void;
|
|
121
|
+
setListSubject: (state: FormState, action: PayloadAction<any>) => void;
|
|
122
|
+
setDataUser: (state: FormState, action: PayloadAction<any>) => void;
|
|
123
|
+
}, "form", "form", _reduxjs_toolkit.SliceSelectors<FormState>>;
|
|
124
|
+
declare const setViewDataStore: _reduxjs_toolkit.ActionCreatorWithPayload<ViewDataStore, "form/setViewDataStore">;
|
|
125
|
+
declare const setIsShowingModalDetail: _reduxjs_toolkit.ActionCreatorWithPayload<boolean, "form/setIsShowingModalDetail">;
|
|
126
|
+
declare const setIsShowModalTranslate: _reduxjs_toolkit.ActionCreatorWithPayload<boolean, "form/setIsShowModalTranslate">;
|
|
127
|
+
declare const setFormSubmitComponent: _reduxjs_toolkit.ActionCreatorWithPayload<{
|
|
128
|
+
key: string;
|
|
129
|
+
component: any;
|
|
130
|
+
}, "form/setFormSubmitComponent">;
|
|
131
|
+
declare const setFieldTranslate: _reduxjs_toolkit.ActionCreatorWithPayload<any, "form/setFieldTranslate">;
|
|
132
|
+
declare const setListSubject: _reduxjs_toolkit.ActionCreatorWithPayload<any, "form/setListSubject">;
|
|
133
|
+
declare const setDataUser: _reduxjs_toolkit.ActionCreatorWithPayload<any, "form/setDataUser">;
|
|
134
|
+
declare const selectForm: (state: RootState) => FormState;
|
|
135
|
+
|
|
136
|
+
interface SearchState {
|
|
137
|
+
groupByDomain: any;
|
|
138
|
+
searchBy: any;
|
|
139
|
+
searchString: string;
|
|
140
|
+
hoveredIndexSearchList: any;
|
|
141
|
+
selectedTags: [];
|
|
142
|
+
firstDomain: any;
|
|
143
|
+
searchMap: Record<string, any[]>;
|
|
144
|
+
filterBy: any;
|
|
145
|
+
groupBy: any;
|
|
146
|
+
}
|
|
147
|
+
declare const searchSlice: _reduxjs_toolkit.Slice<SearchState, {
|
|
148
|
+
setGroupByDomain: (state: immer.WritableDraft<SearchState>, action: PayloadAction<string | null>) => void;
|
|
149
|
+
setSearchBy: (state: immer.WritableDraft<SearchState>, action: any) => void;
|
|
150
|
+
setSearchString: (state: immer.WritableDraft<SearchState>, action: PayloadAction<string>) => void;
|
|
151
|
+
setHoveredIndexSearchList: (state: immer.WritableDraft<SearchState>, action: PayloadAction<number | null>) => void;
|
|
152
|
+
setSelectedTags: (state: immer.WritableDraft<SearchState>, action: PayloadAction<any>) => void;
|
|
153
|
+
setFirstDomain: (state: immer.WritableDraft<SearchState>, action: PayloadAction<any>) => void;
|
|
154
|
+
setFilterBy: (state: immer.WritableDraft<SearchState>, action: PayloadAction<any>) => void;
|
|
155
|
+
setGroupBy: (state: immer.WritableDraft<SearchState>, action: PayloadAction<any>) => void;
|
|
156
|
+
setSearchMap: (state: immer.WritableDraft<SearchState>, action: PayloadAction<Record<string, any>>) => void;
|
|
157
|
+
updateSearchMap: (state: immer.WritableDraft<SearchState>, action: PayloadAction<{
|
|
158
|
+
key: string;
|
|
159
|
+
value: any;
|
|
160
|
+
}>) => void;
|
|
161
|
+
removeKeyFromSearchMap: (state: immer.WritableDraft<SearchState>, action: PayloadAction<{
|
|
162
|
+
key: string;
|
|
163
|
+
item?: any;
|
|
164
|
+
}>) => void;
|
|
165
|
+
clearSearchMap: (state: immer.WritableDraft<SearchState>) => void;
|
|
166
|
+
}, "search", "search", _reduxjs_toolkit.SliceSelectors<SearchState>>;
|
|
167
|
+
declare const setGroupByDomain: _reduxjs_toolkit.ActionCreatorWithPayload<string | null, "search/setGroupByDomain">;
|
|
168
|
+
declare const setSelectedTags: _reduxjs_toolkit.ActionCreatorWithPayload<any, "search/setSelectedTags">;
|
|
169
|
+
declare const setSearchString: _reduxjs_toolkit.ActionCreatorWithPayload<string, "search/setSearchString">;
|
|
170
|
+
declare const setHoveredIndexSearchList: _reduxjs_toolkit.ActionCreatorWithPayload<number | null, "search/setHoveredIndexSearchList">;
|
|
171
|
+
declare const setFirstDomain: _reduxjs_toolkit.ActionCreatorWithPayload<any, "search/setFirstDomain">;
|
|
172
|
+
declare const setSearchBy: _reduxjs_toolkit.ActionCreatorWithNonInferrablePayload<"search/setSearchBy"> | _reduxjs_toolkit.ActionCreatorWithoutPayload<"search/setSearchBy">;
|
|
173
|
+
declare const setFilterBy: _reduxjs_toolkit.ActionCreatorWithPayload<any, "search/setFilterBy">;
|
|
174
|
+
declare const setSearchMap: _reduxjs_toolkit.ActionCreatorWithPayload<Record<string, any>, "search/setSearchMap">;
|
|
175
|
+
declare const updateSearchMap: _reduxjs_toolkit.ActionCreatorWithPayload<{
|
|
176
|
+
key: string;
|
|
177
|
+
value: any;
|
|
178
|
+
}, "search/updateSearchMap">;
|
|
179
|
+
declare const removeKeyFromSearchMap: _reduxjs_toolkit.ActionCreatorWithPayload<{
|
|
180
|
+
key: string;
|
|
181
|
+
item?: any;
|
|
182
|
+
}, "search/removeKeyFromSearchMap">;
|
|
183
|
+
declare const setGroupBy: _reduxjs_toolkit.ActionCreatorWithPayload<any, "search/setGroupBy">;
|
|
184
|
+
declare const clearSearchMap: _reduxjs_toolkit.ActionCreatorWithoutPayload<"search/clearSearchMap">;
|
|
185
|
+
declare const selectSearch: (state: RootState) => SearchState;
|
|
186
|
+
declare const selectSearchMap: (state: RootState) => Record<string, any[]>;
|
|
187
|
+
|
|
188
|
+
interface ListState {
|
|
189
|
+
pageLimit: number;
|
|
190
|
+
fields: Record<string, any>;
|
|
191
|
+
order: string | null;
|
|
192
|
+
selectedRowKeys: number[];
|
|
193
|
+
selectedRadioKey: any;
|
|
194
|
+
indexRowTableModal: number;
|
|
195
|
+
isUpdateTableModal: boolean;
|
|
196
|
+
footerGroupTable: Record<string, any>;
|
|
197
|
+
page: number;
|
|
198
|
+
transferDetail?: any;
|
|
199
|
+
domainTable?: any;
|
|
200
|
+
}
|
|
201
|
+
declare const listSlice: _reduxjs_toolkit.Slice<ListState, {
|
|
202
|
+
setPageLimit: (state: immer.WritableDraft<ListState>, action: PayloadAction<number>) => void;
|
|
203
|
+
setFields: (state: immer.WritableDraft<ListState>, action: PayloadAction<Record<string, any>>) => void;
|
|
204
|
+
setOrder: (state: immer.WritableDraft<ListState>, action: PayloadAction<string | null>) => void;
|
|
205
|
+
setSelectedRowKeys: (state: immer.WritableDraft<ListState>, action: PayloadAction<number[]>) => void;
|
|
206
|
+
setSelectedRadioKey: (state: immer.WritableDraft<ListState>, action: any) => void;
|
|
207
|
+
setIndexRowTableModal: (state: immer.WritableDraft<ListState>, action: PayloadAction<number>) => void;
|
|
208
|
+
setTransferDetail: (state: immer.WritableDraft<ListState>, action: any) => void;
|
|
209
|
+
setIsUpdateTableModal: (state: immer.WritableDraft<ListState>, action: PayloadAction<boolean>) => void;
|
|
210
|
+
setPage: (state: immer.WritableDraft<ListState>, action: PayloadAction<number>) => void;
|
|
211
|
+
setDomainTable: (state: immer.WritableDraft<ListState>, action: PayloadAction<any[]>) => void;
|
|
212
|
+
}, "list", "list", _reduxjs_toolkit.SliceSelectors<ListState>>;
|
|
213
|
+
declare const setPageLimit: _reduxjs_toolkit.ActionCreatorWithPayload<number, "list/setPageLimit">;
|
|
214
|
+
declare const setFields: _reduxjs_toolkit.ActionCreatorWithPayload<Record<string, any>, "list/setFields">;
|
|
215
|
+
declare const setOrder: _reduxjs_toolkit.ActionCreatorWithPayload<string | null, "list/setOrder">;
|
|
216
|
+
declare const setSelectedRowKeys: _reduxjs_toolkit.ActionCreatorWithPayload<number[], "list/setSelectedRowKeys">;
|
|
217
|
+
declare const setIndexRowTableModal: _reduxjs_toolkit.ActionCreatorWithPayload<number, "list/setIndexRowTableModal">;
|
|
218
|
+
declare const setIsUpdateTableModal: _reduxjs_toolkit.ActionCreatorWithPayload<boolean, "list/setIsUpdateTableModal">;
|
|
219
|
+
declare const setPage: _reduxjs_toolkit.ActionCreatorWithPayload<number, "list/setPage">;
|
|
220
|
+
declare const setSelectedRadioKey: _reduxjs_toolkit.ActionCreatorWithNonInferrablePayload<"list/setSelectedRadioKey"> | _reduxjs_toolkit.ActionCreatorWithoutPayload<"list/setSelectedRadioKey">;
|
|
221
|
+
declare const setTransferDetail: _reduxjs_toolkit.ActionCreatorWithNonInferrablePayload<"list/setTransferDetail"> | _reduxjs_toolkit.ActionCreatorWithoutPayload<"list/setTransferDetail">;
|
|
222
|
+
declare const setDomainTable: _reduxjs_toolkit.ActionCreatorWithPayload<any[], "list/setDomainTable">;
|
|
223
|
+
declare const selectList: (state: RootState) => ListState;
|
|
224
|
+
|
|
225
|
+
interface NavbarStateType {
|
|
226
|
+
menuFocus: any;
|
|
227
|
+
menuAction: any;
|
|
228
|
+
navbarWidth: number;
|
|
229
|
+
menuList: any;
|
|
230
|
+
}
|
|
231
|
+
declare const navbarSlice: _reduxjs_toolkit.Slice<NavbarStateType, {
|
|
232
|
+
setMenuFocus: (state: immer.WritableDraft<NavbarStateType>, action: {
|
|
233
|
+
payload: any;
|
|
234
|
+
type: string;
|
|
235
|
+
}) => void;
|
|
236
|
+
setMenuFocusAction: (state: immer.WritableDraft<NavbarStateType>, action: {
|
|
237
|
+
payload: any;
|
|
238
|
+
type: string;
|
|
239
|
+
}) => void;
|
|
240
|
+
setNavbarWidth: (state: immer.WritableDraft<NavbarStateType>, action: {
|
|
241
|
+
payload: any;
|
|
242
|
+
type: string;
|
|
243
|
+
}) => void;
|
|
244
|
+
setMenuList: (state: immer.WritableDraft<NavbarStateType>, action: {
|
|
245
|
+
payload: any;
|
|
246
|
+
type: string;
|
|
247
|
+
}) => void;
|
|
248
|
+
}, "navbar", "navbar", _reduxjs_toolkit.SliceSelectors<NavbarStateType>>;
|
|
249
|
+
declare const setMenuFocus: _reduxjs_toolkit.ActionCreatorWithPayload<any, "navbar/setMenuFocus">;
|
|
250
|
+
declare const setMenuFocusAction: _reduxjs_toolkit.ActionCreatorWithPayload<any, "navbar/setMenuFocusAction">;
|
|
251
|
+
declare const setNavbarWidth: _reduxjs_toolkit.ActionCreatorWithPayload<any, "navbar/setNavbarWidth">;
|
|
252
|
+
declare const setMenuList: _reduxjs_toolkit.ActionCreatorWithPayload<any, "navbar/setMenuList">;
|
|
253
|
+
declare const selectNavbar: (state: RootState) => NavbarStateType;
|
|
254
|
+
|
|
255
|
+
declare const envStore: _reduxjs_toolkit.EnhancedStore<{
|
|
256
|
+
env: {
|
|
257
|
+
baseUrl: string;
|
|
258
|
+
requests: null;
|
|
259
|
+
companies: never[];
|
|
260
|
+
user: {};
|
|
261
|
+
config: null;
|
|
262
|
+
envFile: null;
|
|
263
|
+
defaultCompany: {
|
|
264
|
+
id: null;
|
|
265
|
+
logo: string;
|
|
266
|
+
secondary_color: string;
|
|
267
|
+
primary_color: string;
|
|
268
|
+
};
|
|
269
|
+
context: {
|
|
270
|
+
uid: null;
|
|
271
|
+
allowed_company_ids: never[];
|
|
272
|
+
lang: string;
|
|
273
|
+
tz: string;
|
|
274
|
+
};
|
|
275
|
+
};
|
|
276
|
+
header: {
|
|
277
|
+
value: {
|
|
278
|
+
allowedCompanyIds: never[];
|
|
279
|
+
};
|
|
280
|
+
};
|
|
281
|
+
navbar: NavbarStateType;
|
|
282
|
+
list: ListState;
|
|
283
|
+
search: SearchState;
|
|
284
|
+
form: FormState;
|
|
285
|
+
breadcrumbs: BreadcrumbsState;
|
|
286
|
+
login: LoginStateType;
|
|
287
|
+
excel: ExcelState;
|
|
288
|
+
profile: ProfileStateType;
|
|
289
|
+
}, redux.UnknownAction, _reduxjs_toolkit.Tuple<[redux.StoreEnhancer<{
|
|
290
|
+
dispatch: redux_thunk.ThunkDispatch<{
|
|
291
|
+
env: {
|
|
292
|
+
baseUrl: string;
|
|
293
|
+
requests: null;
|
|
294
|
+
companies: never[];
|
|
295
|
+
user: {};
|
|
296
|
+
config: null;
|
|
297
|
+
envFile: null;
|
|
298
|
+
defaultCompany: {
|
|
299
|
+
id: null;
|
|
300
|
+
logo: string;
|
|
301
|
+
secondary_color: string;
|
|
302
|
+
primary_color: string;
|
|
303
|
+
};
|
|
304
|
+
context: {
|
|
305
|
+
uid: null;
|
|
306
|
+
allowed_company_ids: never[];
|
|
307
|
+
lang: string;
|
|
308
|
+
tz: string;
|
|
309
|
+
};
|
|
310
|
+
};
|
|
311
|
+
header: {
|
|
312
|
+
value: {
|
|
313
|
+
allowedCompanyIds: never[];
|
|
314
|
+
};
|
|
315
|
+
};
|
|
316
|
+
navbar: NavbarStateType;
|
|
317
|
+
list: ListState;
|
|
318
|
+
search: SearchState;
|
|
319
|
+
form: FormState;
|
|
320
|
+
breadcrumbs: BreadcrumbsState;
|
|
321
|
+
login: LoginStateType;
|
|
322
|
+
excel: ExcelState;
|
|
323
|
+
profile: ProfileStateType;
|
|
324
|
+
}, undefined, redux.UnknownAction>;
|
|
325
|
+
}>, redux.StoreEnhancer]>>;
|
|
326
|
+
|
|
327
|
+
declare const envSlice: _reduxjs_toolkit.Slice<{
|
|
328
|
+
baseUrl: string;
|
|
329
|
+
requests: null;
|
|
330
|
+
companies: never[];
|
|
331
|
+
user: {};
|
|
332
|
+
config: null;
|
|
333
|
+
envFile: null;
|
|
334
|
+
defaultCompany: {
|
|
335
|
+
id: null;
|
|
336
|
+
logo: string;
|
|
337
|
+
secondary_color: string;
|
|
338
|
+
primary_color: string;
|
|
339
|
+
};
|
|
340
|
+
context: {
|
|
341
|
+
uid: null;
|
|
342
|
+
allowed_company_ids: never[];
|
|
343
|
+
lang: string;
|
|
344
|
+
tz: string;
|
|
345
|
+
};
|
|
346
|
+
}, {
|
|
347
|
+
setEnv: (state: immer.WritableDraft<{
|
|
348
|
+
baseUrl: string;
|
|
349
|
+
requests: null;
|
|
350
|
+
companies: never[];
|
|
351
|
+
user: {};
|
|
352
|
+
config: null;
|
|
353
|
+
envFile: null;
|
|
354
|
+
defaultCompany: {
|
|
355
|
+
id: null;
|
|
356
|
+
logo: string;
|
|
357
|
+
secondary_color: string;
|
|
358
|
+
primary_color: string;
|
|
359
|
+
};
|
|
360
|
+
context: {
|
|
361
|
+
uid: null;
|
|
362
|
+
allowed_company_ids: never[];
|
|
363
|
+
lang: string;
|
|
364
|
+
tz: string;
|
|
365
|
+
};
|
|
366
|
+
}>, action: {
|
|
367
|
+
payload: any;
|
|
368
|
+
type: string;
|
|
369
|
+
}) => void;
|
|
370
|
+
setUid: (state: immer.WritableDraft<{
|
|
371
|
+
baseUrl: string;
|
|
372
|
+
requests: null;
|
|
373
|
+
companies: never[];
|
|
374
|
+
user: {};
|
|
375
|
+
config: null;
|
|
376
|
+
envFile: null;
|
|
377
|
+
defaultCompany: {
|
|
378
|
+
id: null;
|
|
379
|
+
logo: string;
|
|
380
|
+
secondary_color: string;
|
|
381
|
+
primary_color: string;
|
|
382
|
+
};
|
|
383
|
+
context: {
|
|
384
|
+
uid: null;
|
|
385
|
+
allowed_company_ids: never[];
|
|
386
|
+
lang: string;
|
|
387
|
+
tz: string;
|
|
388
|
+
};
|
|
389
|
+
}>, action: {
|
|
390
|
+
payload: any;
|
|
391
|
+
type: string;
|
|
392
|
+
}) => void;
|
|
393
|
+
setAllowCompanies: (state: immer.WritableDraft<{
|
|
394
|
+
baseUrl: string;
|
|
395
|
+
requests: null;
|
|
396
|
+
companies: never[];
|
|
397
|
+
user: {};
|
|
398
|
+
config: null;
|
|
399
|
+
envFile: null;
|
|
400
|
+
defaultCompany: {
|
|
401
|
+
id: null;
|
|
402
|
+
logo: string;
|
|
403
|
+
secondary_color: string;
|
|
404
|
+
primary_color: string;
|
|
405
|
+
};
|
|
406
|
+
context: {
|
|
407
|
+
uid: null;
|
|
408
|
+
allowed_company_ids: never[];
|
|
409
|
+
lang: string;
|
|
410
|
+
tz: string;
|
|
411
|
+
};
|
|
412
|
+
}>, action: {
|
|
413
|
+
payload: any;
|
|
414
|
+
type: string;
|
|
415
|
+
}) => void;
|
|
416
|
+
setCompanies: (state: immer.WritableDraft<{
|
|
417
|
+
baseUrl: string;
|
|
418
|
+
requests: null;
|
|
419
|
+
companies: never[];
|
|
420
|
+
user: {};
|
|
421
|
+
config: null;
|
|
422
|
+
envFile: null;
|
|
423
|
+
defaultCompany: {
|
|
424
|
+
id: null;
|
|
425
|
+
logo: string;
|
|
426
|
+
secondary_color: string;
|
|
427
|
+
primary_color: string;
|
|
428
|
+
};
|
|
429
|
+
context: {
|
|
430
|
+
uid: null;
|
|
431
|
+
allowed_company_ids: never[];
|
|
432
|
+
lang: string;
|
|
433
|
+
tz: string;
|
|
434
|
+
};
|
|
435
|
+
}>, action: {
|
|
436
|
+
payload: any;
|
|
437
|
+
type: string;
|
|
438
|
+
}) => void;
|
|
439
|
+
setDefaultCompany: (state: immer.WritableDraft<{
|
|
440
|
+
baseUrl: string;
|
|
441
|
+
requests: null;
|
|
442
|
+
companies: never[];
|
|
443
|
+
user: {};
|
|
444
|
+
config: null;
|
|
445
|
+
envFile: null;
|
|
446
|
+
defaultCompany: {
|
|
447
|
+
id: null;
|
|
448
|
+
logo: string;
|
|
449
|
+
secondary_color: string;
|
|
450
|
+
primary_color: string;
|
|
451
|
+
};
|
|
452
|
+
context: {
|
|
453
|
+
uid: null;
|
|
454
|
+
allowed_company_ids: never[];
|
|
455
|
+
lang: string;
|
|
456
|
+
tz: string;
|
|
457
|
+
};
|
|
458
|
+
}>, action: {
|
|
459
|
+
payload: any;
|
|
460
|
+
type: string;
|
|
461
|
+
}) => void;
|
|
462
|
+
setLang: (state: immer.WritableDraft<{
|
|
463
|
+
baseUrl: string;
|
|
464
|
+
requests: null;
|
|
465
|
+
companies: never[];
|
|
466
|
+
user: {};
|
|
467
|
+
config: null;
|
|
468
|
+
envFile: null;
|
|
469
|
+
defaultCompany: {
|
|
470
|
+
id: null;
|
|
471
|
+
logo: string;
|
|
472
|
+
secondary_color: string;
|
|
473
|
+
primary_color: string;
|
|
474
|
+
};
|
|
475
|
+
context: {
|
|
476
|
+
uid: null;
|
|
477
|
+
allowed_company_ids: never[];
|
|
478
|
+
lang: string;
|
|
479
|
+
tz: string;
|
|
480
|
+
};
|
|
481
|
+
}>, action: {
|
|
482
|
+
payload: any;
|
|
483
|
+
type: string;
|
|
484
|
+
}) => void;
|
|
485
|
+
setUser: (state: immer.WritableDraft<{
|
|
486
|
+
baseUrl: string;
|
|
487
|
+
requests: null;
|
|
488
|
+
companies: never[];
|
|
489
|
+
user: {};
|
|
490
|
+
config: null;
|
|
491
|
+
envFile: null;
|
|
492
|
+
defaultCompany: {
|
|
493
|
+
id: null;
|
|
494
|
+
logo: string;
|
|
495
|
+
secondary_color: string;
|
|
496
|
+
primary_color: string;
|
|
497
|
+
};
|
|
498
|
+
context: {
|
|
499
|
+
uid: null;
|
|
500
|
+
allowed_company_ids: never[];
|
|
501
|
+
lang: string;
|
|
502
|
+
tz: string;
|
|
503
|
+
};
|
|
504
|
+
}>, action: {
|
|
505
|
+
payload: any;
|
|
506
|
+
type: string;
|
|
507
|
+
}) => void;
|
|
508
|
+
setConfig: (state: immer.WritableDraft<{
|
|
509
|
+
baseUrl: string;
|
|
510
|
+
requests: null;
|
|
511
|
+
companies: never[];
|
|
512
|
+
user: {};
|
|
513
|
+
config: null;
|
|
514
|
+
envFile: null;
|
|
515
|
+
defaultCompany: {
|
|
516
|
+
id: null;
|
|
517
|
+
logo: string;
|
|
518
|
+
secondary_color: string;
|
|
519
|
+
primary_color: string;
|
|
520
|
+
};
|
|
521
|
+
context: {
|
|
522
|
+
uid: null;
|
|
523
|
+
allowed_company_ids: never[];
|
|
524
|
+
lang: string;
|
|
525
|
+
tz: string;
|
|
526
|
+
};
|
|
527
|
+
}>, action: {
|
|
528
|
+
payload: any;
|
|
529
|
+
type: string;
|
|
530
|
+
}) => void;
|
|
531
|
+
setEnvFile: (state: immer.WritableDraft<{
|
|
532
|
+
baseUrl: string;
|
|
533
|
+
requests: null;
|
|
534
|
+
companies: never[];
|
|
535
|
+
user: {};
|
|
536
|
+
config: null;
|
|
537
|
+
envFile: null;
|
|
538
|
+
defaultCompany: {
|
|
539
|
+
id: null;
|
|
540
|
+
logo: string;
|
|
541
|
+
secondary_color: string;
|
|
542
|
+
primary_color: string;
|
|
543
|
+
};
|
|
544
|
+
context: {
|
|
545
|
+
uid: null;
|
|
546
|
+
allowed_company_ids: never[];
|
|
547
|
+
lang: string;
|
|
548
|
+
tz: string;
|
|
549
|
+
};
|
|
550
|
+
}>, action: {
|
|
551
|
+
payload: any;
|
|
552
|
+
type: string;
|
|
553
|
+
}) => void;
|
|
554
|
+
}, "env", "env", _reduxjs_toolkit.SliceSelectors<{
|
|
555
|
+
baseUrl: string;
|
|
556
|
+
requests: null;
|
|
557
|
+
companies: never[];
|
|
558
|
+
user: {};
|
|
559
|
+
config: null;
|
|
560
|
+
envFile: null;
|
|
561
|
+
defaultCompany: {
|
|
562
|
+
id: null;
|
|
563
|
+
logo: string;
|
|
564
|
+
secondary_color: string;
|
|
565
|
+
primary_color: string;
|
|
566
|
+
};
|
|
567
|
+
context: {
|
|
568
|
+
uid: null;
|
|
569
|
+
allowed_company_ids: never[];
|
|
570
|
+
lang: string;
|
|
571
|
+
tz: string;
|
|
572
|
+
};
|
|
573
|
+
}>>;
|
|
574
|
+
declare const setEnv: _reduxjs_toolkit.ActionCreatorWithPayload<any, "env/setEnv">;
|
|
575
|
+
declare const setUid: _reduxjs_toolkit.ActionCreatorWithPayload<any, "env/setUid">;
|
|
576
|
+
declare const setLang: _reduxjs_toolkit.ActionCreatorWithPayload<any, "env/setLang">;
|
|
577
|
+
declare const setAllowCompanies: _reduxjs_toolkit.ActionCreatorWithPayload<any, "env/setAllowCompanies">;
|
|
578
|
+
declare const setCompanies: _reduxjs_toolkit.ActionCreatorWithPayload<any, "env/setCompanies">;
|
|
579
|
+
declare const setDefaultCompany: _reduxjs_toolkit.ActionCreatorWithPayload<any, "env/setDefaultCompany">;
|
|
580
|
+
declare const setUser: _reduxjs_toolkit.ActionCreatorWithPayload<any, "env/setUser">;
|
|
581
|
+
declare const setConfig: _reduxjs_toolkit.ActionCreatorWithPayload<any, "env/setConfig">;
|
|
582
|
+
declare const setEnvFile: _reduxjs_toolkit.ActionCreatorWithPayload<any, "env/setEnvFile">;
|
|
583
|
+
declare const selectEnv: (state: RootState) => {
|
|
584
|
+
baseUrl: string;
|
|
585
|
+
requests: null;
|
|
586
|
+
companies: never[];
|
|
587
|
+
user: {};
|
|
588
|
+
config: null;
|
|
589
|
+
envFile: null;
|
|
590
|
+
defaultCompany: {
|
|
591
|
+
id: null;
|
|
592
|
+
logo: string;
|
|
593
|
+
secondary_color: string;
|
|
594
|
+
primary_color: string;
|
|
595
|
+
};
|
|
596
|
+
context: {
|
|
597
|
+
uid: null;
|
|
598
|
+
allowed_company_ids: never[];
|
|
599
|
+
lang: string;
|
|
600
|
+
tz: string;
|
|
601
|
+
};
|
|
602
|
+
};
|
|
603
|
+
|
|
604
|
+
declare const headerSlice: _reduxjs_toolkit.Slice<{
|
|
605
|
+
value: {
|
|
606
|
+
allowedCompanyIds: never[];
|
|
607
|
+
};
|
|
608
|
+
}, {
|
|
609
|
+
setHeader: (state: immer.WritableDraft<{
|
|
610
|
+
value: {
|
|
611
|
+
allowedCompanyIds: never[];
|
|
612
|
+
};
|
|
613
|
+
}>, action: {
|
|
614
|
+
payload: any;
|
|
615
|
+
type: string;
|
|
616
|
+
}) => void;
|
|
617
|
+
setAllowedCompanyIds: (state: immer.WritableDraft<{
|
|
618
|
+
value: {
|
|
619
|
+
allowedCompanyIds: never[];
|
|
620
|
+
};
|
|
621
|
+
}>, action: {
|
|
622
|
+
payload: any;
|
|
623
|
+
type: string;
|
|
624
|
+
}) => void;
|
|
625
|
+
}, "header", "header", _reduxjs_toolkit.SliceSelectors<{
|
|
626
|
+
value: {
|
|
627
|
+
allowedCompanyIds: never[];
|
|
628
|
+
};
|
|
629
|
+
}>>;
|
|
630
|
+
declare const setAllowedCompanyIds: _reduxjs_toolkit.ActionCreatorWithPayload<any, "header/setAllowedCompanyIds">;
|
|
631
|
+
declare const setHeader: _reduxjs_toolkit.ActionCreatorWithPayload<any, "header/setHeader">;
|
|
632
|
+
declare const selectHeader: (state: RootState) => {
|
|
633
|
+
value: {
|
|
634
|
+
allowedCompanyIds: never[];
|
|
635
|
+
};
|
|
636
|
+
};
|
|
637
|
+
|
|
638
|
+
type RootState = ReturnType<typeof envStore.getState>;
|
|
639
|
+
type AppDispatch = typeof envStore.dispatch;
|
|
640
|
+
declare const useAppDispatch: () => AppDispatch;
|
|
641
|
+
declare const useAppSelector: TypedUseSelectorHook<RootState>;
|
|
642
|
+
|
|
643
|
+
export { type AppDispatch, type BreadcrumbsState, type ExcelState, type FormState, type ListState, type LoginStateType, type NavbarStateType, type ProfileStateType, type RootState, type SearchState, type UserInfor, type ViewDataStore, breadcrumbsSlice, clearSearchMap, envSlice, envStore, excelSlice, formSlice, headerSlice, listSlice, loginSlice, navbarSlice, profileSlice, removeKeyFromSearchMap, searchSlice, selectBreadCrumbs, selectEnv, selectExcel, selectForm, selectHeader, selectList, selectLogin, selectNavbar, selectProfile, selectSearch, selectSearchMap, setAllowCompanies, setAllowedCompanyIds, setBreadCrumbs, setCompanies, setConfig, setDataParse, setDataUser, setDb, setDefaultCompany, setDomainTable, setEnv, setEnvFile, setErrorData, setFieldTranslate, setFields, setFilterBy, setFirstDomain, setForgotPasswordUrl, setFormSubmitComponent, setGroupBy, setGroupByDomain, setHeader, setHoveredIndexSearchList, setIdFile, setIndexRowTableModal, setIsFileLoaded, setIsShowModalTranslate, setIsShowingModalDetail, setIsUpdateTableModal, setLang, setListSubject, setLoadingImport, setMenuFocus, setMenuFocusAction, setMenuList, setNavbarWidth, setOrder, setPage, setPageLimit, setProfile, setRedirectTo, setSearchBy, setSearchMap, setSearchString, setSelectedFile, setSelectedRadioKey, setSelectedRowKeys, setSelectedTags, setTransferDetail, setUid, setUser, setViewDataStore, updateSearchMap, useAppDispatch, useAppSelector };
|
package/dist/store.js
CHANGED
|
@@ -2,7 +2,21 @@
|
|
|
2
2
|
var __defProp = Object.defineProperty;
|
|
3
3
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
5
6
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
8
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
9
|
+
var __spreadValues = (a, b) => {
|
|
10
|
+
for (var prop in b || (b = {}))
|
|
11
|
+
if (__hasOwnProp.call(b, prop))
|
|
12
|
+
__defNormalProp(a, prop, b[prop]);
|
|
13
|
+
if (__getOwnPropSymbols)
|
|
14
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
15
|
+
if (__propIsEnum.call(b, prop))
|
|
16
|
+
__defNormalProp(a, prop, b[prop]);
|
|
17
|
+
}
|
|
18
|
+
return a;
|
|
19
|
+
};
|
|
6
20
|
var __export = (target, all) => {
|
|
7
21
|
for (var name in all)
|
|
8
22
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
@@ -296,7 +310,7 @@ var headerSlice = (0, import_toolkit5.createSlice)({
|
|
|
296
310
|
},
|
|
297
311
|
reducers: {
|
|
298
312
|
setHeader: (state, action) => {
|
|
299
|
-
state.value = {
|
|
313
|
+
state.value = __spreadValues(__spreadValues({}, state.value), action.payload);
|
|
300
314
|
},
|
|
301
315
|
setAllowedCompanyIds: (state, action) => {
|
|
302
316
|
state.value.allowedCompanyIds = action.payload;
|
|
@@ -535,6 +549,10 @@ var selectSearch = (state) => state.search;
|
|
|
535
549
|
var selectSearchMap = (state) => state.search.searchMap;
|
|
536
550
|
var search_slice_default = searchSlice.reducer;
|
|
537
551
|
|
|
552
|
+
// src/store/index.ts
|
|
553
|
+
var useAppDispatch = import_react_redux.useDispatch;
|
|
554
|
+
var useAppSelector = import_react_redux.useSelector;
|
|
555
|
+
|
|
538
556
|
// src/store/store.ts
|
|
539
557
|
var import_toolkit11 = require("@reduxjs/toolkit");
|
|
540
558
|
|
|
@@ -726,10 +744,6 @@ var envStore = (0, import_toolkit11.configureStore)({
|
|
|
726
744
|
serializableCheck: false
|
|
727
745
|
})
|
|
728
746
|
});
|
|
729
|
-
|
|
730
|
-
// src/store/index.ts
|
|
731
|
-
var useAppDispatch = import_react_redux.useDispatch;
|
|
732
|
-
var useAppSelector = import_react_redux.useSelector;
|
|
733
747
|
// Annotate the CommonJS export names for ESM import in node:
|
|
734
748
|
0 && (module.exports = {
|
|
735
749
|
breadcrumbsSlice,
|