@owp/core 1.20.0 → 1.22.0
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/{QuickPanel-CvvuWvzZ.js → QuickPanel-BAJetosx.js} +2 -2
- package/dist/{QuickPanel-CvvuWvzZ.js.map → QuickPanel-BAJetosx.js.map} +1 -1
- package/dist/{index-6p52ESZP.js → index-CpTd4CYO.js} +26014 -41801
- package/dist/index-CpTd4CYO.js.map +1 -0
- package/dist/index.js +225 -218
- package/dist/types/components/OwpBarcodeInput/OwpBarcodeInputField.d.ts +1 -1
- package/dist/types/components/OwpDialog/OwpDialog.d.ts +1 -0
- package/dist/types/components/OwpDialog/index.d.ts +3 -0
- package/dist/types/components/OwpExportExcelButton/OwpExportExcelButton.d.ts +1 -1
- package/dist/types/components/OwpMessage/OwpMessage.d.ts +4 -4
- package/dist/types/components/OwpMessage/index.d.ts +3 -0
- package/dist/types/components/OwpOptionSelector/index.d.ts +22 -0
- package/dist/types/components/OwpTreeGridExcelButton/index.d.ts +1 -1
- package/dist/types/components/OwpYesNoSelector/index.d.ts +6 -8
- package/dist/types/hooks/useStorage.d.ts +18 -15
- package/dist/types/hooks/useTreeGridExcelExport.d.ts +10 -0
- package/dist/types/index.d.ts +2 -1
- package/dist/types/utils/barcodeUtil.d.ts +1 -0
- package/dist/types/utils/excelUtil.d.ts +7 -0
- package/dist/types/utils/treeGridExportExcelUtil.d.ts +15 -3
- package/package.json +1 -1
- package/dist/index-6p52ESZP.js.map +0 -1
- package/dist/types/hooks/useTreeGridInstance.d.ts +0 -13
package/dist/types/index.d.ts
CHANGED
|
@@ -21,7 +21,7 @@ export * from './hooks/useThemeMediaQuery';
|
|
|
21
21
|
export * from './hooks/useTimeout';
|
|
22
22
|
export * from './hooks/useTreeGridCommonCodeEnum';
|
|
23
23
|
export * from './hooks/useTreeGridCommonCodeEnums';
|
|
24
|
-
export * from './hooks/
|
|
24
|
+
export * from './hooks/useTreeGridExcelExport';
|
|
25
25
|
export * from './store/store';
|
|
26
26
|
export * from './utils/barcodeUtil';
|
|
27
27
|
export * from './utils/commonCodeUtils';
|
|
@@ -79,6 +79,7 @@ export * from './components/OwpNavigation/vertical/types/OwpNavVerticalItem';
|
|
|
79
79
|
export * from './components/OwpNavigation/vertical/types/OwpNavVerticalLink';
|
|
80
80
|
export * from './components/OwpNavigation/vertical/types/OwpNavVerticalTab';
|
|
81
81
|
export * from './components/OwpNumberField';
|
|
82
|
+
export * from './components/OwpOptionSelector';
|
|
82
83
|
export * from './components/OwpPageCarded';
|
|
83
84
|
export * from './components/OwpPageCarded/OwpPageCardedHeader';
|
|
84
85
|
export * from './components/OwpPageCarded/OwpPageCardedSidebar';
|
|
@@ -3,6 +3,7 @@ type ExcelCellValue = string | number | boolean | Date | ExcelJS.CellValue | nul
|
|
|
3
3
|
type ExcelCellFont = ExcelJS.Cell['font'];
|
|
4
4
|
type ExcelCellAlignment = ExcelJS.Cell['alignment'];
|
|
5
5
|
type ExcelCellFill = ExcelJS.Cell['fill'];
|
|
6
|
+
type ExcelCellBorder = ExcelJS.Cell['border'];
|
|
6
7
|
type ExcelCellOptions = {
|
|
7
8
|
key: string;
|
|
8
9
|
value?: ExcelCellValue;
|
|
@@ -14,6 +15,12 @@ type ExcelCellOptions = {
|
|
|
14
15
|
type ExcelMergeCellOptions = Omit<ExcelCellOptions, 'key'> & {
|
|
15
16
|
range: string;
|
|
16
17
|
};
|
|
18
|
+
export declare const DEFAULT_CELL_ALIGNMENT: ExcelCellAlignment;
|
|
19
|
+
export declare const DEFAULT_WRAP_CELL_ALIGNMENT: ExcelCellAlignment;
|
|
20
|
+
export declare const DEFAULT_HEADER_FONT: ExcelCellFont;
|
|
21
|
+
export declare const DEFAULT_VALUE_FONT: ExcelCellFont;
|
|
22
|
+
export declare const DEFAULT_THIN_BORDER: ExcelCellBorder;
|
|
23
|
+
export declare const DEFAULT_HEADER_FILL: ExcelCellFill;
|
|
17
24
|
/**
|
|
18
25
|
* 엑셀 컬럼 문자 인덱스 변환
|
|
19
26
|
* @param letters 엑셀 컬럼 문자
|
|
@@ -1,6 +1,18 @@
|
|
|
1
|
-
type
|
|
2
|
-
|
|
1
|
+
type TreeGridLike = TTGrid;
|
|
2
|
+
type TranslateFunction = (key: string, options?: Record<string, unknown>) => string;
|
|
3
|
+
export interface ExportTreeGridExcelOptions {
|
|
3
4
|
useAppendCurrentDateTimeToExportName?: boolean;
|
|
4
5
|
exportName?: string;
|
|
5
|
-
|
|
6
|
+
t?: TranslateFunction;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* TreeGrid 엑셀 내보내기
|
|
10
|
+
* @param grid TreeGrid 인스턴스
|
|
11
|
+
* @param options 다운로드 옵션
|
|
12
|
+
*/
|
|
13
|
+
export declare const exportTreeGridExcel: (grid: TreeGridLike | null | undefined, options?: ExportTreeGridExcelOptions | string) => Promise<void>;
|
|
14
|
+
/**
|
|
15
|
+
* @deprecated `exportTreeGridExcel` 사용
|
|
16
|
+
*/
|
|
17
|
+
export declare const exportExcelByGrid: (grid: TreeGridLike | null | undefined, options?: ExportTreeGridExcelOptions | string) => Promise<void>;
|
|
6
18
|
export {};
|