aq-fe-framework 0.1.29 → 0.1.32

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.
@@ -0,0 +1,112 @@
1
+ /* src/components/ActionIcons/SwitchTheme/css.module.css */
2
+ .icon {
3
+ width: calc(1.375rem * var(--mantine-scale));
4
+ height: calc(1.375rem * var(--mantine-scale));
5
+ }
6
+ [data-mantine-color-scheme=dark] .dark {
7
+ display: none;
8
+ }
9
+ [data-mantine-color-scheme=light] .dark {
10
+ display: block;
11
+ }
12
+ [data-mantine-color-scheme=light] .light {
13
+ display: none;
14
+ }
15
+ [data-mantine-color-scheme=dark] .light {
16
+ display: block;
17
+ }
18
+
19
+ /* src/components/Layouts/HeaderMegaMenu/css.module.css */
20
+ .header {
21
+ position: sticky;
22
+ top: 0;
23
+ z-index: 1;
24
+ height: calc(3.75rem * var(--mantine-scale));
25
+ background-color: var(--mantine-color-white);
26
+ }
27
+ [data-mantine-color-scheme=dark] .header {
28
+ background-color: var(--mantine-color-dark);
29
+ }
30
+ .header {
31
+ padding-left: var(--mantine-spacing-md);
32
+ padding-right: var(--mantine-spacing-md);
33
+ border-bottom: 1px solid var(--mantine-color-gray-3);
34
+ }
35
+ [data-mantine-color-scheme=dark] .header {
36
+ border-bottom: 1px solid var(--mantine-color-dark-4);
37
+ }
38
+ .link {
39
+ display: flex;
40
+ align-items: center;
41
+ height: 100%;
42
+ padding-left: var(--mantine-spacing-md);
43
+ padding-right: var(--mantine-spacing-md);
44
+ text-decoration: none;
45
+ color: var(--mantine-color-black);
46
+ }
47
+ [data-mantine-color-scheme=dark] .link {
48
+ color: var(--mantine-color-white);
49
+ }
50
+ .link {
51
+ font-weight: 500;
52
+ font-size: var(--mantine-font-size-sm);
53
+ }
54
+ @media (max-width: $mantine-breakpoint-sm) {
55
+ .link {
56
+ height: calc(2.625rem * var(--mantine-scale));
57
+ width: 100%;
58
+ }
59
+ }
60
+ @media (hover: hover) {
61
+ .link:hover {
62
+ background-color: var(--mantine-color-gray-0);
63
+ }
64
+ [data-mantine-color-scheme=dark] .link:hover {
65
+ background-color: var(--mantine-color-dark-6);
66
+ }
67
+ }
68
+ @media (hover: none) {
69
+ .link:active {
70
+ background-color: var(--mantine-color-gray-0);
71
+ }
72
+ [data-mantine-color-scheme=dark] .link:active {
73
+ background-color: var(--mantine-color-dark-6);
74
+ }
75
+ }
76
+ .subLink {
77
+ width: 100%;
78
+ padding: var(--mantine-spacing-xs) var(--mantine-spacing-md);
79
+ border-radius: var(--mantine-radius-md);
80
+ }
81
+ @media (hover: hover) {
82
+ .subLink:hover {
83
+ background-color: var(--mantine-color-gray-0);
84
+ }
85
+ [data-mantine-color-scheme=dark] .subLink:hover {
86
+ background-color: var(--mantine-color-dark-7);
87
+ }
88
+ }
89
+ @media (hover: none) {
90
+ .subLink:active {
91
+ background-color: var(--mantine-color-gray-0);
92
+ }
93
+ [data-mantine-color-scheme=dark] .subLink:active {
94
+ background-color: var(--mantine-color-dark-7);
95
+ }
96
+ }
97
+ .dropdownFooter {
98
+ background-color: var(--mantine-color-gray-0);
99
+ }
100
+ [data-mantine-color-scheme=dark] .dropdownFooter {
101
+ background-color: var(--mantine-color-dark-7);
102
+ }
103
+ .dropdownFooter {
104
+ margin: calc(var(--mantine-spacing-md) * -1);
105
+ margin-top: var(--mantine-spacing-sm);
106
+ padding: var(--mantine-spacing-md) calc(var(--mantine-spacing-md) * 2);
107
+ padding-bottom: var(--mantine-spacing-xl);
108
+ border-top: 1px solid var(--mantine-color-gray-1);
109
+ }
110
+ [data-mantine-color-scheme=dark] .dropdownFooter {
111
+ border-top: 1px solid var(--mantine-color-dark-5);
112
+ }
@@ -0,0 +1,409 @@
1
+ import * as react from 'react';
2
+ import react__default from 'react';
3
+ import { SelectProps } from '@mantine/core';
4
+
5
+ declare function F_core12196(): react.JSX.Element | "Loading..." | "có lỗi xảy ra!";
6
+
7
+ declare function F_core12196_Create(): react.JSX.Element;
8
+
9
+ declare function F_core12196_Delete({ id }: {
10
+ id: number;
11
+ }): react.JSX.Element;
12
+
13
+ interface IDocument$5 {
14
+ path?: string;
15
+ orderBy?: number;
16
+ documentType?: number;
17
+ promulgateDate?: Date;
18
+ decisionCode?: string;
19
+ departmentName?: string;
20
+ description?: string;
21
+ startDate?: Date;
22
+ endDate?: Date;
23
+ conclusion?: string;
24
+ note?: string;
25
+ documentAttributeId?: number;
26
+ documentAttributeName?: string;
27
+ isCycleCheck?: boolean;
28
+ meetingDate?: Date;
29
+ fileDetail?: {
30
+ fileBase64String?: string;
31
+ fileExtension?: string;
32
+ fileName?: string;
33
+ };
34
+ id?: number;
35
+ code?: string;
36
+ name?: string;
37
+ concurrencyStamp?: string;
38
+ isEnabled?: boolean;
39
+ ngayChinhSua?: Date;
40
+ nguoiChinhSua?: string;
41
+ }
42
+ interface I$9 extends IDocument$5 {
43
+ file?: File;
44
+ }
45
+ declare function F_core12196_Update({ values }: {
46
+ values: I$9;
47
+ }): react.JSX.Element;
48
+
49
+ declare function F_core16209(): react.JSX.Element | "Loading..." | "có lỗi xảy ra!";
50
+
51
+ declare function F_core16209_Create(): react.JSX.Element;
52
+
53
+ declare function F_core16209_Delete({ id }: {
54
+ id: number;
55
+ }): react.JSX.Element;
56
+
57
+ interface IDocument$4 {
58
+ path?: string;
59
+ orderBy?: number;
60
+ documentType?: number;
61
+ promulgateDate?: Date;
62
+ decisionCode?: string;
63
+ departmentName?: string;
64
+ description?: string;
65
+ startDate?: Date;
66
+ endDate?: Date;
67
+ conclusion?: string;
68
+ note?: string;
69
+ documentAttributeId?: number;
70
+ documentAttributeName?: string;
71
+ isCycleCheck?: boolean;
72
+ meetingDate?: Date;
73
+ fileDetail?: {
74
+ fileBase64String?: string;
75
+ fileExtension?: string;
76
+ fileName?: string;
77
+ };
78
+ id?: number;
79
+ code?: string;
80
+ name?: string;
81
+ concurrencyStamp?: string;
82
+ isEnabled?: boolean;
83
+ ngayChinhSua?: Date;
84
+ nguoiChinhSua?: string;
85
+ }
86
+ interface I$8 extends IDocument$4 {
87
+ file?: File;
88
+ }
89
+ declare function F_core16209_Update({ values }: {
90
+ values: I$8;
91
+ }): react.JSX.Element;
92
+
93
+ declare function F_core18256(): react.JSX.Element;
94
+
95
+ declare function F_core18256_Create({ documentType }: {
96
+ documentType: number;
97
+ }): react.JSX.Element;
98
+
99
+ declare function F_core18256_Delete({ id }: {
100
+ id: number;
101
+ }): react.JSX.Element;
102
+
103
+ declare function F_core18256_Read({ documentType }: {
104
+ documentType: number;
105
+ }): react.JSX.Element | "Đang tải dữ liệu..." | "Có lỗi xảy ra!";
106
+
107
+ interface ISelect extends SelectProps {
108
+ documentTypeId?: number;
109
+ label?: string;
110
+ dataMapper?: (item: any) => {
111
+ value: string;
112
+ label: string;
113
+ };
114
+ }
115
+ declare function F_core18256_Select({ documentTypeId, label, dataMapper, ...rest }: ISelect): react.JSX.Element | "Loading...";
116
+
117
+ interface I$7 {
118
+ id?: number;
119
+ name?: string;
120
+ code?: string;
121
+ }
122
+ declare function F_core18256_Update({ values }: {
123
+ values: I$7;
124
+ }): react.JSX.Element;
125
+
126
+ declare function F_core26965(): react.JSX.Element;
127
+
128
+ declare function F_core26965_Create(): react.JSX.Element;
129
+
130
+ declare function F_core26965_Delete({ id }: {
131
+ id: number;
132
+ }): react.JSX.Element;
133
+
134
+ interface IDocument$3 {
135
+ path?: string;
136
+ orderBy?: number;
137
+ documentType?: number;
138
+ promulgateDate?: Date;
139
+ decisionCode?: string;
140
+ departmentName?: string;
141
+ description?: string;
142
+ startDate?: Date;
143
+ endDate?: Date;
144
+ conclusion?: string;
145
+ note?: string;
146
+ documentAttributeId?: number;
147
+ documentAttributeName?: string;
148
+ isCycleCheck?: boolean;
149
+ meetingDate?: Date;
150
+ fileDetail?: {
151
+ fileBase64String?: string;
152
+ fileExtension?: string;
153
+ fileName?: string;
154
+ };
155
+ id?: number;
156
+ code?: string;
157
+ name?: string;
158
+ concurrencyStamp?: string;
159
+ isEnabled?: boolean;
160
+ ngayChinhSua?: Date;
161
+ nguoiChinhSua?: string;
162
+ }
163
+ interface I$6 extends IDocument$3 {
164
+ file?: File;
165
+ }
166
+ declare function F_core26965_Update({ values }: {
167
+ values: I$6;
168
+ }): react.JSX.Element;
169
+
170
+ declare function F_core27311(): react.JSX.Element;
171
+
172
+ declare function F_core27311_Create(): react.JSX.Element;
173
+
174
+ declare function F_core27311_Delete({ id }: {
175
+ id: number;
176
+ }): react.JSX.Element;
177
+
178
+ declare function F_core27311_Read(): react.JSX.Element | "Loading..." | "có lỗi xảy ra!";
179
+
180
+ interface IDocument$2 {
181
+ path?: string;
182
+ orderBy?: number;
183
+ documentType?: number;
184
+ promulgateDate?: Date;
185
+ decisionCode?: string;
186
+ departmentName?: string;
187
+ description?: string;
188
+ startDate?: Date;
189
+ endDate?: Date;
190
+ conclusion?: string;
191
+ note?: string;
192
+ documentAttributeId?: number;
193
+ documentAttributeName?: string;
194
+ isCycleCheck?: boolean;
195
+ meetingDate?: Date;
196
+ fileDetail?: {
197
+ fileBase64String?: string;
198
+ fileExtension?: string;
199
+ fileName?: string;
200
+ };
201
+ id?: number;
202
+ code?: string;
203
+ name?: string;
204
+ concurrencyStamp?: string;
205
+ isEnabled?: boolean;
206
+ ngayChinhSua?: Date;
207
+ nguoiChinhSua?: string;
208
+ }
209
+ interface I$5 extends IDocument$2 {
210
+ file?: File;
211
+ }
212
+ declare function F_core27311_Update({ values }: {
213
+ values: I$5;
214
+ }): react.JSX.Element;
215
+
216
+ interface IBaseEntity {
217
+ id?: number;
218
+ code?: string;
219
+ name?: string;
220
+ concurrencyStamp?: string;
221
+ isEnabled?: boolean;
222
+ modifiedWhen?: Date;
223
+ modifiedBy?: number;
224
+ }
225
+
226
+ interface I_core38677_User extends IBaseEntity {
227
+ }
228
+ declare function F_core38677_ReadUser(): react.JSX.Element | "Loading..." | "Có lỗi xảy ra!";
229
+
230
+ declare function F_core38677_Save(): react.JSX.Element;
231
+
232
+ declare function F_core38677_ViewMenuPermissions(): react__default.JSX.Element | "Đang tải...";
233
+
234
+ declare function F_core40207(): react.JSX.Element;
235
+
236
+ declare function F_core40207_Create(): react.JSX.Element;
237
+
238
+ declare function F_core40207_Delete({ id }: {
239
+ id: number;
240
+ }): react.JSX.Element;
241
+
242
+ declare function F_core40207_Read(): react.JSX.Element | "Loading..." | "có lỗi xảy ra!";
243
+
244
+ interface IDocument$1 {
245
+ path?: string;
246
+ orderBy?: number;
247
+ documentType?: number;
248
+ promulgateDate?: Date;
249
+ decisionCode?: string;
250
+ departmentName?: string;
251
+ description?: string;
252
+ startDate?: Date;
253
+ endDate?: Date;
254
+ conclusion?: string;
255
+ note?: string;
256
+ documentAttributeId?: number;
257
+ documentAttributeName?: string;
258
+ isCycleCheck?: boolean;
259
+ meetingDate?: Date;
260
+ fileDetail?: {
261
+ fileBase64String?: string;
262
+ fileExtension?: string;
263
+ fileName?: string;
264
+ };
265
+ id?: number;
266
+ code?: string;
267
+ name?: string;
268
+ concurrencyStamp?: string;
269
+ isEnabled?: boolean;
270
+ ngayChinhSua?: Date;
271
+ nguoiChinhSua?: string;
272
+ }
273
+ interface I$4 extends IDocument$1 {
274
+ file?: File;
275
+ }
276
+ declare function F_core40207_Update({ values }: {
277
+ values: I$4;
278
+ }): react.JSX.Element;
279
+
280
+ declare function F_core47643(): react.JSX.Element;
281
+
282
+ declare function F_core47643_Delete({ values }: {
283
+ values: IBaseEntity;
284
+ }): react.JSX.Element;
285
+
286
+ interface I$3 {
287
+ id?: number;
288
+ code?: string;
289
+ name?: string;
290
+ }
291
+ declare function F_core47643_Form({ values }: {
292
+ values?: I$3;
293
+ }): react.JSX.Element;
294
+
295
+ declare function F_core47643_Read(): react.JSX.Element | "Đang tải dữ liệu..." | "Có lỗi xảy ra!";
296
+
297
+ interface IRoles extends IBaseEntity {
298
+ }
299
+ interface I_core71678_Read extends IBaseEntity {
300
+ userName?: string;
301
+ fullName?: string;
302
+ email?: string;
303
+ roles?: IRoles[];
304
+ }
305
+ declare function F_core71678_Read(): react.JSX.Element | "Loading...";
306
+
307
+ declare function F_core71678_ChangePermission({ user }: {
308
+ user: I_core71678_Read;
309
+ }): react.JSX.Element;
310
+
311
+ declare function F_core71678_Create(): react.JSX.Element;
312
+
313
+ declare function F_core71678_Delete({ id, code }: {
314
+ id: number;
315
+ code: string;
316
+ }): react.JSX.Element;
317
+
318
+ interface I$2 {
319
+ id?: number;
320
+ userName?: string;
321
+ code?: string;
322
+ fullName?: string;
323
+ email?: string;
324
+ phoneNumber?: string;
325
+ }
326
+ declare function F_core71678_Update({ user }: {
327
+ user: I$2;
328
+ }): react.JSX.Element;
329
+
330
+ declare function F_core76318_Create(): react.JSX.Element;
331
+
332
+ declare function F_core76318_Delete({ id }: {
333
+ id: number;
334
+ }): react.JSX.Element;
335
+
336
+ interface IDocument {
337
+ path?: string;
338
+ orderBy?: number;
339
+ documentType?: number;
340
+ promulgateDate?: Date;
341
+ decisionCode?: string;
342
+ departmentName?: string;
343
+ description?: string;
344
+ startDate?: Date;
345
+ endDate?: Date;
346
+ conclusion?: string;
347
+ note?: string;
348
+ documentAttributeId?: number;
349
+ documentAttributeName?: string;
350
+ isCycleCheck?: boolean;
351
+ meetingDate?: Date;
352
+ fileDetail?: {
353
+ fileBase64String?: string;
354
+ fileExtension?: string;
355
+ fileName?: string;
356
+ };
357
+ id?: number;
358
+ code?: string;
359
+ name?: string;
360
+ concurrencyStamp?: string;
361
+ isEnabled?: boolean;
362
+ ngayChinhSua?: Date;
363
+ nguoiChinhSua?: string;
364
+ }
365
+ interface I$1 extends IDocument {
366
+ file?: File;
367
+ }
368
+ declare function F_core76318_Update({ values }: {
369
+ values: I$1;
370
+ }): react.JSX.Element;
371
+
372
+ declare function F_core83092(): react.JSX.Element;
373
+
374
+ declare function F_core83092_ReadUser(): react.JSX.Element | "Loading..." | "Có lỗi xảy ra!";
375
+
376
+ declare function F_core83092_Save(): react.JSX.Element;
377
+
378
+ declare function F_core83092_ViewMenuPermissions(): react__default.JSX.Element | "Đang tải...";
379
+
380
+ interface I_core83092_RolePermission {
381
+ pageId?: number;
382
+ isCreate?: boolean;
383
+ isUpdate?: boolean;
384
+ isDelete?: boolean;
385
+ isRead?: boolean;
386
+ isPrint?: boolean;
387
+ isExport?: boolean;
388
+ }
389
+ interface I {
390
+ roleId?: number;
391
+ rolePermissions?: I_core83092_RolePermission[];
392
+ }
393
+ declare function useS_core83092(): {
394
+ toogleAllPermissionWithType: (field: keyof I_core83092_RolePermission, isCheck: boolean) => void;
395
+ findByPageId: (pageId: number) => I_core83092_RolePermission | undefined;
396
+ updatePermission: (pageId: number, updatedPermission: Partial<I_core83092_RolePermission>) => void;
397
+ isAllPermission: (field: keyof I_core83092_RolePermission) => boolean;
398
+ state: I;
399
+ setState: (newState: I) => void;
400
+ setProperty: <K extends keyof I>(key: K, value: I[K]) => void;
401
+ resetState: () => void;
402
+ };
403
+ declare function utils_core83092_mergePage(arr1: I_core83092_RolePermission[], arr2: I_core83092_RolePermission[]): I_core83092_RolePermission[];
404
+
405
+ declare function PieChart_DiscountUsedPercentage(): react.JSX.Element;
406
+
407
+ declare function PieChart_VoucherUsedPercentage(): react.JSX.Element;
408
+
409
+ export { F_core12196, F_core12196_Create, F_core12196_Delete, 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_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_core71678_ChangePermission, F_core71678_Create, F_core71678_Delete, F_core71678_Read, F_core71678_Update, F_core76318_Create, F_core76318_Delete, F_core76318_Update, F_core83092, F_core83092_ReadUser, F_core83092_Save, F_core83092_ViewMenuPermissions, type I_core38677_User, type I_core71678_Read, type I_core83092_RolePermission, PieChart_DiscountUsedPercentage, PieChart_VoucherUsedPercentage, useS_core83092, utils_core83092_mergePage };