@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.
@@ -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/useTreeGridInstance';
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';
@@ -2,5 +2,6 @@
2
2
  * 바코드 이미지 URL 생성
3
3
  * @param text 텍스트
4
4
  * @param format 바코드 포맷
5
+ * @returns Object URL 문자열, 사용 후 revoke 필요
5
6
  */
6
7
  export declare const generateBarcodeUrl: (text: string, format?: string) => Promise<string>;
@@ -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 TGrid = any;
2
- export declare const exportExcelByGrid: (gridInstance: TGrid, options?: {
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
- }) => void;
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 {};
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@owp/core",
3
3
  "private": false,
4
- "version": "1.20.0",
4
+ "version": "1.22.0",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/index.js",