aq-fe-framework 0.1.94 → 0.1.96

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.
@@ -5,7 +5,7 @@ import { useDisclosure, useListState } from '@mantine/hooks';
5
5
  import { UseFormReturnType, useForm } from '@mantine/form';
6
6
  import { I as I_BasicAppShell_LinkItem } from '../BasicAppShell-CGIz9MsN.mjs';
7
7
  export { a as BasicAppShell, B as BasicAppShell_transformMenuToEnum, g as groupToTwoLevels, u as utils_layout_getItemsWithoutLinks } from '../BasicAppShell-CGIz9MsN.mjs';
8
- import { I as IUtils_Excel_ColumnConfig } from '../utils_excel-CLb5lfmI.mjs';
8
+ import { I as IUtils_Excel_ColumnConfig, a as IAQFileDetail } from '../utils_file-DAglO3jY.mjs';
9
9
  import { MRT_ColumnDef, MRT_RowData, MRT_TableOptions, MRT_TableInstance } from 'mantine-react-table';
10
10
  import { ConfigOptions } from 'export-to-csv';
11
11
  import { DateInputProps } from '@mantine/dates';
@@ -310,6 +310,8 @@ declare function AQStatCard1({ title, value, unit, description, icons, diff }: {
310
310
  diff: number;
311
311
  }): react_jsx_runtime.JSX.Element;
312
312
 
313
+ declare function FaviconSetter(): null;
314
+
313
315
  interface IDateInput extends DateInputProps {
314
316
  label?: string;
315
317
  }
@@ -350,11 +352,15 @@ declare function MyTextEditor({ autoHiddenToolBar, contentHeight, onChange, valu
350
352
  interface IMyTextInput extends TextInputProps {
351
353
  label?: string;
352
354
  defaultValue?: string;
355
+ isPhoneNumber?: boolean;
353
356
  }
354
- declare function MyTextInput({ label, defaultValue, ...rest }: IMyTextInput): react_jsx_runtime.JSX.Element;
357
+ declare function MyTextInput({ label, defaultValue, isPhoneNumber, ...rest }: IMyTextInput): react_jsx_runtime.JSX.Element;
355
358
 
356
359
  interface I$2 {
360
+ moduleCode?: string;
357
361
  moduleName?: string;
362
+ logoFileDetail?: IAQFileDetail;
363
+ faviconFileDetail?: IAQFileDetail;
358
364
  opened: boolean;
359
365
  title: string;
360
366
  groupMenuOpenId: string[];
@@ -480,4 +486,4 @@ interface IMySkeletonTable extends SkeletonProps {
480
486
  }
481
487
  declare function MySkeletonTable({ h }: IMySkeletonTable): react_jsx_runtime.JSX.Element;
482
488
 
483
- export { AQButtonCreateByImportFile, AQButtonExportData, AQCard, AQSelectTableByOpenModal, AQStatCard1, Boxes, HeaderMegaMenu, type IAQCardProps, type IMyTextEditor, I_BasicAppShell_LinkItem, MyActionIcon, MyActionIconCheck, MyActionIconDelete, MyActionIconDownloadPDF, MyActionIconModal, MyActionIconUpdate, MyActionIconUpload, MyActionIconViewPDF, MyAnchorViewPDF, MyAppSpotlight, MyBoxesBackground, MyBoxesCore, MyButton, MyButtonCreate, MyButtonImport, MyButtonModal, MyButtonPrintPDF, MyButtonPrintTablePDF, MyButtonRouterBack, MyButtonViewPDF, MyCalendar, MyCardioLoader, MyCenterFull, MyCheckbox, MyContainer, MyDataTable, MyDataTableSelect, MyDateInput, MyFieldset, MyFileInput, MyFlexColumn, MyFlexEnd, MyFlexRow, MyHtmlWrapper, MyKeyLabel, MyNumberFormatter, MyNumberInput, MyPageContent, MyScheduleX, MySelect, MySelectAPIGet, MySkeletonTable, MySwitchTheme, MyTab, MyTextArea, MyTextEditor, MyTextInput, SelectFieldModal, SelectFileModal, type SelectFileModalProps, SpotlightTrigger, useHeaderMegaMenuStore, useS_BasicAppShell, useS_ButtonImport };
489
+ export { AQButtonCreateByImportFile, AQButtonExportData, AQCard, AQSelectTableByOpenModal, AQStatCard1, Boxes, FaviconSetter, HeaderMegaMenu, type IAQCardProps, type IMyTextEditor, I_BasicAppShell_LinkItem, MyActionIcon, MyActionIconCheck, MyActionIconDelete, MyActionIconDownloadPDF, MyActionIconModal, MyActionIconUpdate, MyActionIconUpload, MyActionIconViewPDF, MyAnchorViewPDF, MyAppSpotlight, MyBoxesBackground, MyBoxesCore, MyButton, MyButtonCreate, MyButtonImport, MyButtonModal, MyButtonPrintPDF, MyButtonPrintTablePDF, MyButtonRouterBack, MyButtonViewPDF, MyCalendar, MyCardioLoader, MyCenterFull, MyCheckbox, MyContainer, MyDataTable, MyDataTableSelect, MyDateInput, MyFieldset, MyFileInput, MyFlexColumn, MyFlexEnd, MyFlexRow, MyHtmlWrapper, MyKeyLabel, MyNumberFormatter, MyNumberInput, MyPageContent, MyScheduleX, MySelect, MySelectAPIGet, MySkeletonTable, MySwitchTheme, MyTab, MyTextArea, MyTextEditor, MyTextInput, SelectFieldModal, SelectFileModal, type SelectFileModalProps, SpotlightTrigger, useHeaderMegaMenuStore, useS_BasicAppShell, useS_ButtonImport };
@@ -63,7 +63,7 @@ import {
63
63
  useS_BasicAppShell,
64
64
  useS_ButtonImport,
65
65
  utils_layout_getItemsWithoutLinks
66
- } from "../chunk-6KOUZ373.mjs";
66
+ } from "../chunk-TPYIOT65.mjs";
67
67
  import "../chunk-Y3YGC5IH.mjs";
68
68
  import "../chunk-EEQENBXZ.mjs";
69
69
  import "../chunk-FWCSY2DS.mjs";
@@ -49,11 +49,11 @@ interface IDocument$5 {
49
49
  ngayChinhSua?: Date;
50
50
  nguoiChinhSua?: string;
51
51
  }
52
- interface I$c extends IDocument$5 {
52
+ interface I$d extends IDocument$5 {
53
53
  file?: File;
54
54
  }
55
55
  declare function F_core12196_Update({ values, FormTypeId, }: {
56
- values: I$c;
56
+ values: I$d;
57
57
  FormTypeId: number;
58
58
  }): react_jsx_runtime.JSX.Element;
59
59
 
@@ -61,7 +61,7 @@ declare function F_core16209({ RefinementTypeId }: {
61
61
  RefinementTypeId: number;
62
62
  }): react_jsx_runtime.JSX.Element | "Loading..." | "có lỗi xảy ra!";
63
63
 
64
- declare function F_core16209_Create({ RefinementTypeId }: {
64
+ declare function F_core16209_Create({ RefinementTypeId, }: {
65
65
  RefinementTypeId: number;
66
66
  }): react_jsx_runtime.JSX.Element;
67
67
 
@@ -99,11 +99,11 @@ interface IDocument$4 {
99
99
  ngayChinhSua?: Date;
100
100
  nguoiChinhSua?: string;
101
101
  }
102
- interface I$b extends IDocument$4 {
102
+ interface I$c extends IDocument$4 {
103
103
  file?: File;
104
104
  }
105
105
  declare function F_core16209_Update({ values }: {
106
- values: I$b;
106
+ values: I$c;
107
107
  }): react_jsx_runtime.JSX.Element;
108
108
 
109
109
  declare function F_core18256(): react_jsx_runtime.JSX.Element;
@@ -130,13 +130,13 @@ interface ISelect extends SelectProps {
130
130
  }
131
131
  declare function F_core18256_Select({ documentTypeId, label, dataMapper, ...rest }: ISelect): react_jsx_runtime.JSX.Element | "Loading...";
132
132
 
133
- interface I$a {
133
+ interface I$b {
134
134
  id?: number;
135
135
  name?: string;
136
136
  code?: string;
137
137
  }
138
138
  declare function F_core18256_Update({ values }: {
139
- values: I$a;
139
+ values: I$b;
140
140
  }): react_jsx_runtime.JSX.Element;
141
141
 
142
142
  declare function F_core26965({ RegulationsTypeId }: {
@@ -181,11 +181,11 @@ interface IDocument$3 {
181
181
  ngayChinhSua?: Date;
182
182
  nguoiChinhSua?: string;
183
183
  }
184
- interface I$9 extends IDocument$3 {
184
+ interface I$a extends IDocument$3 {
185
185
  file?: File;
186
186
  }
187
187
  declare function F_core26965_Update({ values, RegulationsTypeId, }: {
188
- values: I$9;
188
+ values: I$a;
189
189
  RegulationsTypeId: number;
190
190
  }): react_jsx_runtime.JSX.Element;
191
191
 
@@ -235,11 +235,11 @@ interface IDocument$2 {
235
235
  ngayChinhSua?: Date;
236
236
  nguoiChinhSua?: string;
237
237
  }
238
- interface I$8 extends IDocument$2 {
238
+ interface I$9 extends IDocument$2 {
239
239
  file?: File;
240
240
  }
241
241
  declare function F_core27311_Update({ values, WorkflowTypeId, }: {
242
- values: I$8;
242
+ values: I$9;
243
243
  WorkflowTypeId: number;
244
244
  }): react_jsx_runtime.JSX.Element;
245
245
 
@@ -315,11 +315,11 @@ interface IDocument$1 {
315
315
  ngayChinhSua?: Date;
316
316
  nguoiChinhSua?: string;
317
317
  }
318
- interface I$7 extends IDocument$1 {
318
+ interface I$8 extends IDocument$1 {
319
319
  file?: File;
320
320
  }
321
321
  declare function F_core40207_Update({ values }: {
322
- values: I$7;
322
+ values: I$8;
323
323
  }): react_jsx_runtime.JSX.Element;
324
324
 
325
325
  declare function F_core47643(): react_jsx_runtime.JSX.Element;
@@ -328,17 +328,56 @@ declare function F_core47643_Delete({ values }: {
328
328
  values: IBaseEntity;
329
329
  }): react_jsx_runtime.JSX.Element;
330
330
 
331
- interface I$6 {
331
+ interface I$7 {
332
332
  id?: number;
333
333
  code?: string;
334
334
  name?: string;
335
335
  }
336
336
  declare function F_core47643_Form({ values }: {
337
- values?: I$6;
337
+ values?: I$7;
338
338
  }): react_jsx_runtime.JSX.Element;
339
339
 
340
340
  declare function F_core47643_Read(): react_jsx_runtime.JSX.Element | "Đang tải dữ liệu..." | "Có lỗi xảy ra!";
341
341
 
342
+ declare function F_core60524({ AQModuleId }: {
343
+ AQModuleId: number;
344
+ }): react_jsx_runtime.JSX.Element;
345
+
346
+ interface IAQModule extends IBaseEntity {
347
+ officelName?: string;
348
+ phoneNumber?: string;
349
+ email?: string;
350
+ faviconPath?: string;
351
+ logoPath?: string;
352
+ registrationDate?: Date;
353
+ limiteDate?: Date;
354
+ faviconFileDetail?: {
355
+ fileName?: string;
356
+ fileExtension?: string;
357
+ fileBase64String?: string;
358
+ };
359
+ logoFileDetail?: {
360
+ fileName?: string;
361
+ fileExtension?: string;
362
+ fileBase64String?: string;
363
+ };
364
+ }
365
+
366
+ interface I_core60524_AQModule extends IAQModule {
367
+ faviconFile?: File;
368
+ logoFile?: File;
369
+ }
370
+
371
+ interface I$6 {
372
+ AQModuleId?: number;
373
+ }
374
+ declare function useS_core60524(): {
375
+ state: I$6;
376
+ setState: (newState: I$6) => void;
377
+ setProperty: <K extends "AQModuleId">(key: K, value: I$6[K]) => void;
378
+ resetState: () => void;
379
+ };
380
+
342
381
  declare function F_core64229(): react_jsx_runtime.JSX.Element;
343
382
 
344
383
  declare function F_core64229_Delete({ values }: {
@@ -518,4 +557,4 @@ interface I {
518
557
  }
519
558
  declare function F_authenticate_Login({ loginInfo, redirectUrlAfterLogin, additionalActions, backgroundImage, onSuccess }: I): react_jsx_runtime.JSX.Element;
520
559
 
521
- export { 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_core71678, F_core71678_ChangePermission, F_core71678_Create, F_core71678_Delete, F_core71678_Read, F_core71678_Update, F_core76318, 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_authenticate, useS_core83092, utils_core83092_mergePage };
560
+ export { 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_core60524, F_core64229, F_core64229_Delete, F_core64229_Form, F_core64229_Read, F_core71678, F_core71678_ChangePermission, F_core71678_Create, F_core71678_Delete, F_core71678_Read, F_core71678_Update, F_core76318, 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_core60524_AQModule, type I_core71678_Read, type I_core83092_RolePermission, PieChart_DiscountUsedPercentage, PieChart_VoucherUsedPercentage, useS_authenticate, useS_core60524, useS_core83092, utils_core83092_mergePage };
@@ -40,6 +40,7 @@ import {
40
40
  F_core47643_Delete,
41
41
  F_core47643_Form,
42
42
  F_core47643_Read,
43
+ F_core60524,
43
44
  F_core64229,
44
45
  F_core64229_Delete,
45
46
  F_core64229_Form,
@@ -61,9 +62,10 @@ import {
61
62
  PieChart_DiscountUsedPercentage,
62
63
  PieChart_VoucherUsedPercentage,
63
64
  useS_authenticate,
65
+ useS_core60524,
64
66
  useS_core83092,
65
67
  utils_core83092_mergePage
66
- } from "../chunk-6KOUZ373.mjs";
68
+ } from "../chunk-TPYIOT65.mjs";
67
69
  import "../chunk-Y3YGC5IH.mjs";
68
70
  import "../chunk-EEQENBXZ.mjs";
69
71
  import "../chunk-FWCSY2DS.mjs";
@@ -109,6 +111,7 @@ export {
109
111
  F_core47643_Delete,
110
112
  F_core47643_Form,
111
113
  F_core47643_Read,
114
+ F_core60524,
112
115
  F_core64229,
113
116
  F_core64229_Delete,
114
117
  F_core64229_Form,
@@ -130,6 +133,7 @@ export {
130
133
  PieChart_DiscountUsedPercentage,
131
134
  PieChart_VoucherUsedPercentage,
132
135
  useS_authenticate,
136
+ useS_core60524,
133
137
  useS_core83092,
134
138
  utils_core83092_mergePage
135
139
  };
@@ -1,4 +1,4 @@
1
- export { I as IUtils_Excel_ColumnConfig, a as utils_excel_download, u as utils_excel_exportExcel } from '../utils_excel-CLb5lfmI.mjs';
1
+ export { a as IAQFileDetail, I as IUtils_Excel_ColumnConfig, b as utils_excel_download, u as utils_excel_exportExcel, d as utils_file_docxtemplaterDownload, c as utils_file_fileToAQDocumentType } from '../utils_file-DAglO3jY.mjs';
2
2
  import { DefaultMantineColor } from '@mantine/core';
3
3
  import * as react from 'react';
4
4
  import 'exceljs';
@@ -19,13 +19,6 @@ declare function U0DateToDDMMYYYString(date: Date): string;
19
19
  declare function utils_date_dateToDDMMYYYString(date: Date): string;
20
20
  declare function utils_date_formatToDateTimeStartEnd(startDate: Date, endDate: Date): string;
21
21
 
22
- declare function utils_file_fileToAQDocumentType(file: File): Promise<any>;
23
- declare function utils_file_docxtemplaterDownload({ data, filePath, fileName }: {
24
- data: any;
25
- filePath: string;
26
- fileName?: string;
27
- }): Promise<void>;
28
-
29
22
  interface I {
30
23
  crudType?: "delete" | "update" | "create" | "error" | "importSucess";
31
24
  message?: string;
@@ -41,4 +34,4 @@ declare const utils_time_getCurrentTimeString: () => string;
41
34
  declare function U0MyValidateEmpty(message?: string): (value: unknown) => string | number | bigint | true | react.ReactElement<unknown, string | react.JSXElementConstructor<any>> | Iterable<react.ReactNode> | Promise<string | number | bigint | boolean | react.ReactPortal | react.ReactElement<unknown, string | react.JSXElementConstructor<any>> | Iterable<react.ReactNode> | null | undefined> | null;
42
35
  declare function U0MyValidateEmail(value?: string): "Email không đúng định dạng" | null;
43
36
 
44
- export { U0DateToDDMMYYYString, U0MyValidateEmail, U0MyValidateEmpty, utils_converter_enumToSelectOptions, utils_converter_getKeyByValue, utils_converter_getLabelByValue, utils_date_dateToDDMMYYYString, utils_date_formatToDateTimeStartEnd, utils_file_docxtemplaterDownload, utils_file_fileToAQDocumentType, utils_notification_show, utils_pdf_download, utils_time_convertTimeStringToSeconds, utils_time_getCurrentTimeString };
37
+ export { U0DateToDDMMYYYString, U0MyValidateEmail, U0MyValidateEmpty, utils_converter_enumToSelectOptions, utils_converter_getKeyByValue, utils_converter_getLabelByValue, utils_date_dateToDDMMYYYString, utils_date_formatToDateTimeStartEnd, utils_notification_show, utils_pdf_download, utils_time_convertTimeStringToSeconds, utils_time_getCurrentTimeString };
@@ -0,0 +1,31 @@
1
+ import ExcelJS from 'exceljs';
2
+
3
+ interface IUtils_Excel_ColumnConfig<T> {
4
+ fieldKey: keyof T | string;
5
+ fieldName: string;
6
+ isRequired?: boolean;
7
+ }
8
+ declare function utils_excel_exportExcel<T extends Record<string, any>>({ workbook, sheetName, data, config, }: {
9
+ workbook: ExcelJS.Workbook;
10
+ sheetName: string;
11
+ data: T[];
12
+ config: IUtils_Excel_ColumnConfig<T>[];
13
+ }): Promise<ExcelJS.Workbook>;
14
+ declare function utils_excel_download({ workbook, name, }: {
15
+ workbook: ExcelJS.Workbook;
16
+ name: string;
17
+ }): Promise<void>;
18
+
19
+ interface IAQFileDetail {
20
+ fileName?: string;
21
+ fileExtension?: string;
22
+ fileBase64String?: string;
23
+ }
24
+ declare function utils_file_fileToAQDocumentType(file: File): Promise<IAQFileDetail>;
25
+ declare function utils_file_docxtemplaterDownload({ data, filePath, fileName }: {
26
+ data: any;
27
+ filePath: string;
28
+ fileName?: string;
29
+ }): Promise<void>;
30
+
31
+ export { type IUtils_Excel_ColumnConfig as I, type IAQFileDetail as a, utils_excel_download as b, utils_file_fileToAQDocumentType as c, utils_file_docxtemplaterDownload as d, utils_excel_exportExcel as u };
package/package.json CHANGED
@@ -18,7 +18,7 @@
18
18
  "types": "./dist/modules-features/index.d.mts"
19
19
  }
20
20
  },
21
- "version": "0.1.94",
21
+ "version": "0.1.96",
22
22
  "private": false,
23
23
  "files": [
24
24
  "dist"
@@ -1,19 +0,0 @@
1
- import ExcelJS from 'exceljs';
2
-
3
- interface IUtils_Excel_ColumnConfig<T> {
4
- fieldKey: keyof T | string;
5
- fieldName: string;
6
- isRequired?: boolean;
7
- }
8
- declare function utils_excel_exportExcel<T extends Record<string, any>>({ workbook, sheetName, data, config, }: {
9
- workbook: ExcelJS.Workbook;
10
- sheetName: string;
11
- data: T[];
12
- config: IUtils_Excel_ColumnConfig<T>[];
13
- }): Promise<ExcelJS.Workbook>;
14
- declare function utils_excel_download({ workbook, name, }: {
15
- workbook: ExcelJS.Workbook;
16
- name: string;
17
- }): Promise<void>;
18
-
19
- export { type IUtils_Excel_ColumnConfig as I, utils_excel_download as a, utils_excel_exportExcel as u };