aq-fe-framework 0.1.26 → 0.1.29

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,19 @@
1
+ import ExcelJS from 'exceljs';
2
+
3
+ interface IUtils_Excel_ColumnConfig<T> {
4
+ fieldKey: keyof T;
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 };
@@ -1,22 +1,7 @@
1
- import ExcelJS from 'exceljs';
1
+ export { I as IUtils_Excel_ColumnConfig, a as utils_excel_download, u as utils_excel_exportExcel } from '../excel---d-HDs7.mjs';
2
2
  import { DefaultMantineColor } from '@mantine/core';
3
3
  import * as react from 'react';
4
-
5
- interface IUtils_Excel_ColumnConfig<T> {
6
- fieldKey: keyof T;
7
- fieldName: string;
8
- isRequired?: boolean;
9
- }
10
- declare function utils_excel_exportExcel<T extends Record<string, any>>({ workbook, sheetName, data, config, }: {
11
- workbook: ExcelJS.Workbook;
12
- sheetName: string;
13
- data: T[];
14
- config: IUtils_Excel_ColumnConfig<T>[];
15
- }): Promise<ExcelJS.Workbook>;
16
- declare function utils_excel_download({ workbook, name }: {
17
- workbook: ExcelJS.Workbook;
18
- name: string;
19
- }): Promise<void>;
4
+ import 'exceljs';
20
5
 
21
6
  declare const utils_converter_enumToOptions: (enumObj: object) => {
22
7
  value: string;
@@ -59,4 +44,4 @@ declare const utils_time_getCurrentTimeString: () => string;
59
44
  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;
60
45
  declare function U0MyValidateEmail(value?: string): "Email không đúng định dạng" | null;
61
46
 
62
- export { type IUtils_Excel_ColumnConfig, U0DateToDDMMYYYString, U0MyValidateEmail, U0MyValidateEmpty, utils_converter_enumToOptions, utils_converter_enumToSelectOptions, utils_converter_getKeyByValue, utils_converter_getLabelByValue, utils_date_dateToDDMMYYYString, utils_excel_download, utils_excel_exportExcel, utils_file_docxtemplaterDownload, utils_file_fileToAQDocumentType, utils_notification_show, utils_pdf_download, utils_time_convertTimeStringToSeconds, utils_time_getCurrentTimeString };
47
+ export { U0DateToDDMMYYYString, U0MyValidateEmail, U0MyValidateEmpty, utils_converter_enumToOptions, utils_converter_enumToSelectOptions, utils_converter_getKeyByValue, utils_converter_getLabelByValue, utils_date_dateToDDMMYYYString, utils_file_docxtemplaterDownload, utils_file_fileToAQDocumentType, utils_notification_show, utils_pdf_download, utils_time_convertTimeStringToSeconds, utils_time_getCurrentTimeString };
package/package.json CHANGED
@@ -8,9 +8,13 @@
8
8
  "./components": {
9
9
  "import": "./dist/components/index.mjs",
10
10
  "types": "./dist/components/index.d.mts"
11
+ },
12
+ "./stores": {
13
+ "import": "./dist/stores/index.mjs",
14
+ "types": "./dist/stores/index.d.mts"
11
15
  }
12
16
  },
13
- "version": "0.1.26",
17
+ "version": "0.1.29",
14
18
  "private": false,
15
19
  "files": [
16
20
  "dist"