@fctc/interface-logic 1.7.9 → 1.7.10

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/store.d.ts CHANGED
@@ -1,49 +1,576 @@
1
- import { R as RootState } from './store-DvWeB4jm.js';
2
- export { A as AppDispatch, ac as BreadcrumbsState, ad as ExcelState, ae as FormState, af as ListState, ag as LoginStateType, ah as NavbarStateType, ai as ProfileStateType, aj as SearchState, ak as UserInfor, al as ViewDataStore, b as breadcrumbsSlice, c as clearSearchMap, e as envStore, a as excelSlice, f as formSlice, l as listSlice, d as loginSlice, n as navbarSlice, p as profileSlice, r as removeKeyFromSearchMap, s as searchSlice, g as selectBreadCrumbs, h as selectExcel, i as selectForm, j as selectList, k as selectLogin, m as selectNavbar, o as selectProfile, q as selectSearch, t as selectSearchMap, u as setBreadCrumbs, v as setDataParse, w as setDataUser, x as setDb, y as setDomainTable, z as setErrorData, C as setFieldTranslate, B as setFields, D as setFilterBy, E as setFirstDomain, F as setForgotPasswordUrl, G as setFormSubmitComponent, H as setGroupBy, I as setGroupByDomain, J as setHoveredIndexSearchList, K as setIdFile, L as setIndexRowTableModal, M as setIsFileLoaded, O as setIsShowModalTranslate, N as setIsShowingModalDetail, P as setIsUpdateTableModal, Q as setListSubject, S as setLoadingImport, T as setMenuFocus, U as setMenuFocusAction, V as setMenuList, W as setNavbarWidth, Y as setOrder, Z as setPage, _ as setPageLimit, $ as setProfile, a0 as setRedirectTo, X as setSearchBy, a1 as setSearchMap, a2 as setSearchString, a3 as setSelectedFile, a4 as setSelectedRadioKey, a5 as setSelectedRowKeys, a6 as setSelectedTags, a7 as setTransferDetail, a8 as setViewDataStore, a9 as updateSearchMap, aa as useAppDispatch, ab as useAppSelector } from './store-DvWeB4jm.js';
1
+ import { TypedUseSelectorHook } from 'react-redux';
3
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';
4
6
  import * as immer from 'immer';
5
- import 'redux-thunk';
6
- import 'redux';
7
- import 'react-redux';
8
7
 
9
- declare const envSlice: _reduxjs_toolkit.Slice<any, {
10
- setEnv: (state: any, action: {
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: {
11
367
  payload: any;
12
368
  type: string;
13
369
  }) => void;
14
- setUid: (state: any, action: {
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: {
15
390
  payload: any;
16
391
  type: string;
17
392
  }) => void;
18
- setAllowCompanies: (state: any, action: {
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: {
19
413
  payload: any;
20
414
  type: string;
21
415
  }) => void;
22
- setCompanies: (state: any, action: {
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: {
23
436
  payload: any;
24
437
  type: string;
25
438
  }) => void;
26
- setDefaultCompany: (state: any, action: {
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: {
27
459
  payload: any;
28
460
  type: string;
29
461
  }) => void;
30
- setLang: (state: any, action: {
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: {
31
482
  payload: any;
32
483
  type: string;
33
484
  }) => void;
34
- setUser: (state: any, action: {
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: {
35
505
  payload: any;
36
506
  type: string;
37
507
  }) => void;
38
- setConfig: (state: any, action: {
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: {
39
528
  payload: any;
40
529
  type: string;
41
530
  }) => void;
42
- setEnvFile: (state: any, action: {
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: {
43
551
  payload: any;
44
552
  type: string;
45
553
  }) => void;
46
- }, "env", "env", _reduxjs_toolkit.SliceSelectors<any>>;
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
+ }>>;
47
574
  declare const setEnv: _reduxjs_toolkit.ActionCreatorWithPayload<any, "env/setEnv">;
48
575
  declare const setUid: _reduxjs_toolkit.ActionCreatorWithPayload<any, "env/setUid">;
49
576
  declare const setLang: _reduxjs_toolkit.ActionCreatorWithPayload<any, "env/setLang">;
@@ -53,7 +580,26 @@ declare const setDefaultCompany: _reduxjs_toolkit.ActionCreatorWithPayload<any,
53
580
  declare const setUser: _reduxjs_toolkit.ActionCreatorWithPayload<any, "env/setUser">;
54
581
  declare const setConfig: _reduxjs_toolkit.ActionCreatorWithPayload<any, "env/setConfig">;
55
582
  declare const setEnvFile: _reduxjs_toolkit.ActionCreatorWithPayload<any, "env/setEnvFile">;
56
- declare const selectEnv: (state: RootState) => any;
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
+ };
57
603
 
58
604
  declare const headerSlice: _reduxjs_toolkit.Slice<{
59
605
  value: {
@@ -89,4 +635,9 @@ declare const selectHeader: (state: RootState) => {
89
635
  };
90
636
  };
91
637
 
92
- export { RootState, envSlice, headerSlice, selectEnv, selectHeader, setAllowCompanies, setAllowedCompanyIds, setCompanies, setConfig, setDefaultCompany, setEnv, setEnvFile, setHeader, setLang, setUid, setUser };
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
@@ -535,10 +535,6 @@ var selectSearch = (state) => state.search;
535
535
  var selectSearchMap = (state) => state.search.searchMap;
536
536
  var search_slice_default = searchSlice.reducer;
537
537
 
538
- // src/store/index.ts
539
- var useAppDispatch = import_react_redux.useDispatch;
540
- var useAppSelector = import_react_redux.useSelector;
541
-
542
538
  // src/store/store.ts
543
539
  var import_toolkit11 = require("@reduxjs/toolkit");
544
540
 
@@ -730,6 +726,10 @@ var envStore = (0, import_toolkit11.configureStore)({
730
726
  serializableCheck: false
731
727
  })
732
728
  });
729
+
730
+ // src/store/index.ts
731
+ var useAppDispatch = import_react_redux.useDispatch;
732
+ var useAppSelector = import_react_redux.useSelector;
733
733
  // Annotate the CommonJS export names for ESM import in node:
734
734
  0 && (module.exports = {
735
735
  breadcrumbsSlice,
package/dist/store.mjs CHANGED
@@ -431,10 +431,6 @@ var selectSearch = (state) => state.search;
431
431
  var selectSearchMap = (state) => state.search.searchMap;
432
432
  var search_slice_default = searchSlice.reducer;
433
433
 
434
- // src/store/index.ts
435
- var useAppDispatch = useDispatch;
436
- var useAppSelector = useSelector;
437
-
438
434
  // src/store/store.ts
439
435
  import { configureStore } from "@reduxjs/toolkit";
440
436
 
@@ -626,6 +622,10 @@ var envStore = configureStore({
626
622
  serializableCheck: false
627
623
  })
628
624
  });
625
+
626
+ // src/store/index.ts
627
+ var useAppDispatch = useDispatch;
628
+ var useAppSelector = useSelector;
629
629
  export {
630
630
  breadcrumbsSlice,
631
631
  clearSearchMap,
package/dist/types.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- export { C as ContextApi, D as DeleteParams, F as ForgotPasswordBody, e as GetAllParams, c as GetDetailParams, b as GetListParams, G as GetSelectionType, a as GetViewParams, L as LoginCredentialBody, O as OnChangeParams, R as ResetPasswordRequest, d as SaveParams, S as SocialTokenBody, f as Specification, U as UpdatePasswordRequest, g as View, V as ViewData, u as updatePasswordBody } from './view-type-D8ukwj_2.mjs';
1
+ export { C as ContextApi, D as DeleteParams, F as ForgotPasswordBody, G as GetAllParams, a as GetDetailParams, b as GetListParams, c as GetSelectionType, f as GetViewParams, L as LoginCredentialBody, O as OnChangeParams, R as ResetPasswordRequest, S as SaveParams, d as SocialTokenBody, e as Specification, U as UpdatePasswordRequest, g as View, V as ViewData, u as updatePasswordBody } from './view-type-BGJfDe73.mjs';
2
2
 
3
3
  interface Config {
4
4
  baseUrl: string;