aq-fe-framework 0.1.316 → 0.1.318

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.
@@ -6,9 +6,9 @@ import {
6
6
  MyDayOfWeekPicker,
7
7
  MyTextInput,
8
8
  MyWeeklySessionSchedulerPicker
9
- } from "../chunk-PSV5MULK.mjs";
10
- import "../chunk-K6S7R6LU.mjs";
9
+ } from "../chunk-ZZ7S4EA4.mjs";
11
10
  import "../chunk-HHJFKKE7.mjs";
11
+ import "../chunk-K6S7R6LU.mjs";
12
12
  import "../chunk-NWBLJ3W3.mjs";
13
13
  import "../chunk-YJ32RSH2.mjs";
14
14
  import "../chunk-7ZCOFATU.mjs";
@@ -1,11 +1,62 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import { I as I_BasicAppShell_LinkItem } from '../BasicAppShell-CGKvZ5wV.mjs';
2
3
  import { I as IBaseEntity } from '../base-BprRafT5.mjs';
3
4
  import { SelectProps } from '@mantine/core';
4
- import { I as I_BasicAppShell_LinkItem } from '../BasicAppShell-CGKvZ5wV.mjs';
5
5
  import { I as IEmailConfig } from '../EmailConfig-DvTXTBt3.mjs';
6
6
  import { I as IAQModule } from '../IAQModule-CCtwv-e0.mjs';
7
7
  import { ReactNode } from 'react';
8
8
 
9
+ declare function F_accessControl({ menuData }: {
10
+ menuData: I_BasicAppShell_LinkItem[];
11
+ }): react_jsx_runtime.JSX.Element;
12
+
13
+ declare function F_accessControl_ReadUser(): react_jsx_runtime.JSX.Element | "Có lỗi xảy ra!" | "Loading...";
14
+
15
+ declare function F_accessControl_Save(): react_jsx_runtime.JSX.Element;
16
+
17
+ declare function F_accessControl_ViewMenuPermissions({ menuData }: {
18
+ menuData: I_BasicAppShell_LinkItem[];
19
+ }): react_jsx_runtime.JSX.Element | "Đang tải...";
20
+
21
+ interface I_accessControl_RolePermission {
22
+ pageId?: number;
23
+ isCreate?: boolean;
24
+ isUpdate?: boolean;
25
+ isDelete?: boolean;
26
+ isRead?: boolean;
27
+ isPrint?: boolean;
28
+ isExport?: boolean;
29
+ }
30
+ interface I$l {
31
+ roleId?: number;
32
+ rolePermissions?: I_accessControl_RolePermission[];
33
+ }
34
+ declare function useS_accessControl(): {
35
+ toogleAllPermissionWithType: (field: keyof I_accessControl_RolePermission, isCheck: boolean) => void;
36
+ findByPageId: (pageId: number) => I_accessControl_RolePermission | undefined;
37
+ updatePermission: (pageId: number, updatedPermission: Partial<I_accessControl_RolePermission>) => void;
38
+ isAllPermission: (field: keyof I_accessControl_RolePermission) => boolean;
39
+ state: I$l;
40
+ setState: (newState: I$l) => void;
41
+ setProperty: <K extends keyof I$l>(key: K, value: I$l[K]) => void;
42
+ resetState: () => void;
43
+ };
44
+ declare function utils_accessControl_mergePage(arr1: I_accessControl_RolePermission[], arr2: I_accessControl_RolePermission[]): I_accessControl_RolePermission[];
45
+
46
+ declare function F_accessControlLevel({ menuData }: {
47
+ menuData: I_BasicAppShell_LinkItem[];
48
+ }): react_jsx_runtime.JSX.Element;
49
+
50
+ interface I_core38677_User extends IBaseEntity {
51
+ }
52
+ declare function F_accessControlLevel_ReadUser(): react_jsx_runtime.JSX.Element | "Có lỗi xảy ra!" | "Loading...";
53
+
54
+ declare function F_accessControlLevel_Save(): react_jsx_runtime.JSX.Element;
55
+
56
+ declare function F_accessControlLevel_ViewMenuPermissions({ menuData }: {
57
+ menuData: I_BasicAppShell_LinkItem[];
58
+ }): react_jsx_runtime.JSX.Element | "Đang tải...";
59
+
9
60
  interface IProps {
10
61
  isRequireSkillCenter?: boolean;
11
62
  }
@@ -41,7 +92,7 @@ interface IUserSkillCenters extends IBaseEntity {
41
92
  userId?: number;
42
93
  skillCenterId?: number;
43
94
  }
44
- interface I$l {
95
+ interface I$k {
45
96
  id?: number;
46
97
  userName?: string;
47
98
  code?: string;
@@ -51,7 +102,7 @@ interface I$l {
51
102
  userSkillCenters?: IUserSkillCenters[];
52
103
  }
53
104
  declare function F_accountManagement_Update({ user }: {
54
- user: I$l;
105
+ user: I$k;
55
106
  }): react_jsx_runtime.JSX.Element;
56
107
 
57
108
  declare function F_core12196({ FormTypeId }: {
@@ -100,11 +151,11 @@ interface IDocument$b {
100
151
  ngayChinhSua?: Date;
101
152
  nguoiChinhSua?: string;
102
153
  }
103
- interface I$k extends IDocument$b {
154
+ interface I$j extends IDocument$b {
104
155
  file?: File;
105
156
  }
106
157
  declare function F_core12196_Update({ values, FormTypeId, }: {
107
- values: I$k;
158
+ values: I$j;
108
159
  FormTypeId: number;
109
160
  }): react_jsx_runtime.JSX.Element;
110
161
 
@@ -150,11 +201,11 @@ interface IDocument$a {
150
201
  ngayChinhSua?: Date;
151
202
  nguoiChinhSua?: string;
152
203
  }
153
- interface I$j extends IDocument$a {
204
+ interface I$i extends IDocument$a {
154
205
  file?: File;
155
206
  }
156
207
  declare function F_core16209_Update({ values }: {
157
- values: I$j;
208
+ values: I$i;
158
209
  }): react_jsx_runtime.JSX.Element;
159
210
 
160
211
  declare function F_core18256(): react_jsx_runtime.JSX.Element;
@@ -181,13 +232,13 @@ interface ISelect extends SelectProps {
181
232
  }
182
233
  declare function F_core18256_Select({ documentTypeId, label, dataMapper, ...rest }: ISelect): react_jsx_runtime.JSX.Element | "Loading...";
183
234
 
184
- interface I$i {
235
+ interface I$h {
185
236
  id?: number;
186
237
  name?: string;
187
238
  code?: string;
188
239
  }
189
240
  declare function F_core18256_Update({ values }: {
190
- values: I$i;
241
+ values: I$h;
191
242
  }): react_jsx_runtime.JSX.Element;
192
243
 
193
244
  declare function F_core26965({ RegulationsTypeId }: {
@@ -232,11 +283,11 @@ interface IDocument$9 {
232
283
  ngayChinhSua?: Date;
233
284
  nguoiChinhSua?: string;
234
285
  }
235
- interface I$h extends IDocument$9 {
286
+ interface I$g extends IDocument$9 {
236
287
  file?: File;
237
288
  }
238
289
  declare function F_core26965_Update({ values, RegulationsTypeId, }: {
239
- values: I$h;
290
+ values: I$g;
240
291
  RegulationsTypeId: number;
241
292
  }): react_jsx_runtime.JSX.Element;
242
293
 
@@ -286,30 +337,16 @@ interface IDocument$8 {
286
337
  ngayChinhSua?: Date;
287
338
  nguoiChinhSua?: string;
288
339
  }
289
- interface I$g extends IDocument$8 {
340
+ interface I$f extends IDocument$8 {
290
341
  file?: File;
291
342
  }
292
343
  declare function F_core27311_Update({ values, WorkflowTypeId, }: {
293
- values: I$g;
344
+ values: I$f;
294
345
  WorkflowTypeId: number;
295
346
  }): react_jsx_runtime.JSX.Element;
296
347
 
297
348
  declare function F_core35923(): react_jsx_runtime.JSX.Element;
298
349
 
299
- declare function F_core38677({ menuData }: {
300
- menuData: I_BasicAppShell_LinkItem[];
301
- }): react_jsx_runtime.JSX.Element;
302
-
303
- interface I_core38677_User extends IBaseEntity {
304
- }
305
- declare function F_core38677_ReadUser(): react_jsx_runtime.JSX.Element | "Có lỗi xảy ra!" | "Loading...";
306
-
307
- declare function F_core38677_Save(): react_jsx_runtime.JSX.Element;
308
-
309
- declare function F_core38677_ViewMenuPermissions({ menuData }: {
310
- menuData: I_BasicAppShell_LinkItem[];
311
- }): react_jsx_runtime.JSX.Element | "Đang tải...";
312
-
313
350
  declare function F_core40207({ GuidelineTypeId }: {
314
351
  GuidelineTypeId: number;
315
352
  }): react_jsx_runtime.JSX.Element;
@@ -356,11 +393,11 @@ interface IDocument$7 {
356
393
  ngayChinhSua?: Date;
357
394
  nguoiChinhSua?: string;
358
395
  }
359
- interface I$f extends IDocument$7 {
396
+ interface I$e extends IDocument$7 {
360
397
  file?: File;
361
398
  }
362
399
  declare function F_core40207_Update({ values }: {
363
- values: I$f;
400
+ values: I$e;
364
401
  }): react_jsx_runtime.JSX.Element;
365
402
 
366
403
  declare function F_core47643(): react_jsx_runtime.JSX.Element;
@@ -369,13 +406,13 @@ declare function F_core47643_Delete({ values }: {
369
406
  values: IBaseEntity;
370
407
  }): react_jsx_runtime.JSX.Element;
371
408
 
372
- interface I$e {
409
+ interface I$d {
373
410
  id?: number;
374
411
  code?: string;
375
412
  name?: string;
376
413
  }
377
414
  declare function F_core47643_Form({ values }: {
378
- values?: I$e;
415
+ values?: I$d;
379
416
  }): react_jsx_runtime.JSX.Element;
380
417
 
381
418
  declare function F_core47643_Read(): react_jsx_runtime.JSX.Element | "Có lỗi xảy ra!" | "Đang tải dữ liệu...";
@@ -386,11 +423,11 @@ declare function F_core64229_Delete({ values }: {
386
423
  values: IBaseEntity;
387
424
  }): react_jsx_runtime.JSX.Element;
388
425
 
389
- interface I$d extends IEmailConfig {
426
+ interface I$c extends IEmailConfig {
390
427
  password?: string;
391
428
  }
392
429
  declare function F_core64229_Form({ values, emailModule }: {
393
- values?: I$d;
430
+ values?: I$c;
394
431
  emailModule: (string | {
395
432
  value: string;
396
433
  label: string;
@@ -446,50 +483,13 @@ interface IDocument$6 {
446
483
  ngayChinhSua?: Date;
447
484
  nguoiChinhSua?: string;
448
485
  }
449
- interface I$c extends IDocument$6 {
486
+ interface I$b extends IDocument$6 {
450
487
  file?: File;
451
488
  }
452
489
  declare function F_core76318_Update({ values }: {
453
- values: I$c;
454
- }): react_jsx_runtime.JSX.Element;
455
-
456
- declare function F_core83092({ menuData }: {
457
- menuData: I_BasicAppShell_LinkItem[];
490
+ values: I$b;
458
491
  }): react_jsx_runtime.JSX.Element;
459
492
 
460
- declare function F_core83092_ReadUser(): react_jsx_runtime.JSX.Element | "Có lỗi xảy ra!" | "Loading...";
461
-
462
- declare function F_core83092_Save(): react_jsx_runtime.JSX.Element;
463
-
464
- declare function F_core83092_ViewMenuPermissions({ menuData }: {
465
- menuData: I_BasicAppShell_LinkItem[];
466
- }): react_jsx_runtime.JSX.Element | "Đang tải...";
467
-
468
- interface I_core83092_RolePermission {
469
- pageId?: number;
470
- isCreate?: boolean;
471
- isUpdate?: boolean;
472
- isDelete?: boolean;
473
- isRead?: boolean;
474
- isPrint?: boolean;
475
- isExport?: boolean;
476
- }
477
- interface I$b {
478
- roleId?: number;
479
- rolePermissions?: I_core83092_RolePermission[];
480
- }
481
- declare function useS_core83092(): {
482
- toogleAllPermissionWithType: (field: keyof I_core83092_RolePermission, isCheck: boolean) => void;
483
- findByPageId: (pageId: number) => I_core83092_RolePermission | undefined;
484
- updatePermission: (pageId: number, updatedPermission: Partial<I_core83092_RolePermission>) => void;
485
- isAllPermission: (field: keyof I_core83092_RolePermission) => boolean;
486
- state: I$b;
487
- setState: (newState: I$b) => void;
488
- setProperty: <K extends keyof I$b>(key: K, value: I$b[K]) => void;
489
- resetState: () => void;
490
- };
491
- declare function utils_core83092_mergePage(arr1: I_core83092_RolePermission[], arr2: I_core83092_RolePermission[]): I_core83092_RolePermission[];
492
-
493
493
  declare function F_formTemplateDocs({ FormTypeId }: {
494
494
  FormTypeId: number;
495
495
  }): react_jsx_runtime.JSX.Element;
@@ -872,4 +872,4 @@ interface I {
872
872
  }
873
873
  declare function F_authenticate_Login({ header, redirectUrlAfterLogin, additionalActions, backgroundImage, onSuccess, showLoginButton, showSaveLogin, showForgotPassword }: I): react_jsx_runtime.JSX.Element;
874
874
 
875
- export { F_accountManagement, F_accountManagement_ChangePermission, F_accountManagement_Create, F_accountManagement_Delete, F_accountManagement_Read, F_accountManagement_Update, F_authenticate_Login, F_authenticate_Logout, F_authenticate_SplashPage, F_core12196, F_core12196_Create, F_core12196_Delete, F_core12196_Read, F_core12196_Update, F_core16209, F_core16209_Create, F_core16209_Delete, F_core16209_Update, F_core18256, F_core18256_Create, F_core18256_Delete, F_core18256_Read, F_core18256_Select, F_core18256_Update, F_core26965, F_core26965_Create, F_core26965_Delete, F_core26965_Update, F_core27311, F_core27311_Create, F_core27311_Delete, F_core27311_Read, F_core27311_Update, F_core35923, F_core38677, F_core38677_ReadUser, F_core38677_Save, F_core38677_ViewMenuPermissions, F_core40207, F_core40207_Create, F_core40207_Delete, F_core40207_Read, F_core40207_Update, F_core47643, F_core47643_Delete, F_core47643_Form, F_core47643_Read, F_core64229, F_core64229_Delete, F_core64229_Form, F_core64229_Read, F_core76318, F_core76318_Create, F_core76318_Delete, F_core76318_Update, F_core83092, F_core83092_ReadUser, F_core83092_Save, F_core83092_ViewMenuPermissions, F_formTemplateDocs, F_formTemplateDocs_Create, F_formTemplateDocs_Delete, F_formTemplateDocs_Read, F_formTemplateDocs_Update, F_moduleConfig, F_organizationPolicyDocs, F_organizationPolicyDocs_Create, F_organizationPolicyDocs_Delete, F_organizationPolicyDocs_Update, F_pageContentConfig, F_roleCatalog, F_roleCatalog_Delete, F_roleCatalog_Form, F_roleCatalog_Read, F_securityPolicyDocs, F_securityPolicyDocs_Create, F_securityPolicyDocs_Delete, F_securityPolicyDocs_Update, F_systemUpdateDocs, F_systemUpdateDocs_Create, F_systemUpdateDocs_Delete, F_systemUpdateDocs_Update, F_userGuideDocs, F_userGuideDocs_Create, F_userGuideDocs_Delete, F_userGuideDocs_Read, F_userGuideDocs_Update, F_workflowProcessDocs, F_workflowProcessDocs_Create, F_workflowProcessDocs_Delete, F_workflowProcessDocs_Read, F_workflowProcessDocs_Update, type I_accountManagement_Read, type I_core38677_User, type I_core83092_RolePermission, type I_moduleConfig_AQModule, useS_authenticate, useS_core83092, useS_moduleConfig, utils_core83092_mergePage };
875
+ export { F_accessControl, F_accessControlLevel, F_accessControlLevel_ReadUser, F_accessControlLevel_Save, F_accessControlLevel_ViewMenuPermissions, F_accessControl_ReadUser, F_accessControl_Save, F_accessControl_ViewMenuPermissions, F_accountManagement, F_accountManagement_ChangePermission, F_accountManagement_Create, F_accountManagement_Delete, F_accountManagement_Read, F_accountManagement_Update, F_authenticate_Login, F_authenticate_Logout, F_authenticate_SplashPage, F_core12196, F_core12196_Create, F_core12196_Delete, F_core12196_Read, F_core12196_Update, F_core16209, F_core16209_Create, F_core16209_Delete, F_core16209_Update, F_core18256, F_core18256_Create, F_core18256_Delete, F_core18256_Read, F_core18256_Select, F_core18256_Update, F_core26965, F_core26965_Create, F_core26965_Delete, F_core26965_Update, F_core27311, F_core27311_Create, F_core27311_Delete, F_core27311_Read, F_core27311_Update, F_core35923, F_core40207, F_core40207_Create, F_core40207_Delete, F_core40207_Read, F_core40207_Update, F_core47643, F_core47643_Delete, F_core47643_Form, F_core47643_Read, F_core64229, F_core64229_Delete, F_core64229_Form, F_core64229_Read, F_core76318, F_core76318_Create, F_core76318_Delete, F_core76318_Update, F_formTemplateDocs, F_formTemplateDocs_Create, F_formTemplateDocs_Delete, F_formTemplateDocs_Read, F_formTemplateDocs_Update, F_moduleConfig, F_organizationPolicyDocs, F_organizationPolicyDocs_Create, F_organizationPolicyDocs_Delete, F_organizationPolicyDocs_Update, F_pageContentConfig, F_roleCatalog, F_roleCatalog_Delete, F_roleCatalog_Form, F_roleCatalog_Read, F_securityPolicyDocs, F_securityPolicyDocs_Create, F_securityPolicyDocs_Delete, F_securityPolicyDocs_Update, F_systemUpdateDocs, F_systemUpdateDocs_Create, F_systemUpdateDocs_Delete, F_systemUpdateDocs_Update, F_userGuideDocs, F_userGuideDocs_Create, F_userGuideDocs_Delete, F_userGuideDocs_Read, F_userGuideDocs_Update, F_workflowProcessDocs, F_workflowProcessDocs_Create, F_workflowProcessDocs_Delete, F_workflowProcessDocs_Read, F_workflowProcessDocs_Update, type I_accessControl_RolePermission, type I_accountManagement_Read, type I_core38677_User, type I_moduleConfig_AQModule, useS_accessControl, useS_authenticate, useS_moduleConfig, utils_accessControl_mergePage };