@slickgrid-universal/excel-export 2.1.3 → 2.2.1

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.
Files changed (39) hide show
  1. package/dist/commonjs/excelExport.service.d.ts +33 -8
  2. package/dist/commonjs/excelExport.service.js +96 -80
  3. package/dist/commonjs/excelExport.service.js.map +1 -1
  4. package/dist/commonjs/excelUtils.d.ts +28 -0
  5. package/dist/commonjs/excelUtils.js +211 -0
  6. package/dist/commonjs/excelUtils.js.map +1 -0
  7. package/dist/commonjs/interfaces/excelStylesheet.interface.d.ts +18 -17
  8. package/dist/commonjs/interfaces/index.d.ts +0 -3
  9. package/dist/commonjs/interfaces/index.js +0 -3
  10. package/dist/commonjs/interfaces/index.js.map +1 -1
  11. package/dist/esm/excelExport.service.d.ts +33 -8
  12. package/dist/esm/excelExport.service.js +97 -81
  13. package/dist/esm/excelExport.service.js.map +1 -1
  14. package/dist/esm/excelUtils.d.ts +28 -0
  15. package/dist/esm/excelUtils.js +202 -0
  16. package/dist/esm/excelUtils.js.map +1 -0
  17. package/dist/esm/interfaces/excelStylesheet.interface.d.ts +18 -17
  18. package/dist/esm/interfaces/index.d.ts +0 -3
  19. package/dist/esm/interfaces/index.js +0 -3
  20. package/dist/esm/interfaces/index.js.map +1 -1
  21. package/package.json +3 -3
  22. package/dist/commonjs/interfaces/excelExportOption.interface.d.ts +0 -31
  23. package/dist/commonjs/interfaces/excelExportOption.interface.js +0 -3
  24. package/dist/commonjs/interfaces/excelExportOption.interface.js.map +0 -1
  25. package/dist/commonjs/interfaces/excelWorkbook.interface.d.ts +0 -16
  26. package/dist/commonjs/interfaces/excelWorkbook.interface.js +0 -3
  27. package/dist/commonjs/interfaces/excelWorkbook.interface.js.map +0 -1
  28. package/dist/commonjs/interfaces/excelWorksheet.interface.d.ts +0 -35
  29. package/dist/commonjs/interfaces/excelWorksheet.interface.js +0 -3
  30. package/dist/commonjs/interfaces/excelWorksheet.interface.js.map +0 -1
  31. package/dist/esm/interfaces/excelExportOption.interface.d.ts +0 -31
  32. package/dist/esm/interfaces/excelExportOption.interface.js +0 -2
  33. package/dist/esm/interfaces/excelExportOption.interface.js.map +0 -1
  34. package/dist/esm/interfaces/excelWorkbook.interface.d.ts +0 -16
  35. package/dist/esm/interfaces/excelWorkbook.interface.js +0 -2
  36. package/dist/esm/interfaces/excelWorkbook.interface.js.map +0 -1
  37. package/dist/esm/interfaces/excelWorksheet.interface.d.ts +0 -35
  38. package/dist/esm/interfaces/excelWorksheet.interface.js +0 -2
  39. package/dist/esm/interfaces/excelWorksheet.interface.js.map +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"excelUtils.js","sourceRoot":"","sources":["../../src/excelUtils.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,SAAS,EACT,UAAU,EAEV,kBAAkB,EAElB,oBAAoB,EACpB,QAAQ,EACR,wBAAwB,EACxB,kBAAkB,GAEnB,MAAM,6BAA6B,CAAC;AAIrC,6DAA6D;AAC7D,MAAM,CAAC,MAAM,6BAA6B,GAAyB,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC;AAClF,MAAM,CAAC,MAAM,sBAAsB,GAAyB,CAAC,IAAI,EAAE,IAAI,EAAE,gBAAgB,EAAE,EAAE,CAAC,CAAC;IAC7F,KAAK,EAAE,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI;IACpC,QAAQ,EAAE,EAAE,KAAK,EAAE,gBAAgB,EAAE;CACtC,CAAC,CAAC;AAEH,kEAAkE;AAClE,MAAM,UAAU,wBAAwB,CAAC,UAA2B,EAAE,oBAAyB,EAAE,SAAiB,EAAE,IAAe;IACjI,MAAM,SAAS,GAAG,kBAAkB,CAAC,SAAS,CAAC,CAAC;IAChD,IAAI,qBAAyC,CAAC;IAC9C,IAAI,QAAQ,GAAyB,6BAA6B,CAAC;IAEnE,IAAI,SAAS,KAAK,SAAS,CAAC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B;IACD,OAAO,MAAM,CAAC;AAChB,CAAC"}
@@ -1,32 +1,33 @@
1
+ import { ExcelAlignmentStyle, ExcelBorderStyle, ExcelColorStyle, ExcelCustomStyling, ExcelFillStyle, ExcelFontStyle } from '@slickgrid-universal/common';
1
2
  export interface ExcelStylesheet {
2
- createFill: (instructions: any) => any;
3
+ createBorderFormatter: (border: ExcelBorderStyle) => any;
4
+ createDifferentialStyle: (instructions: ExcelCustomStyling) => any;
5
+ createFill: (instructions: ExcelFillStyle) => any;
6
+ createFontStyle: (instructions: ExcelFontStyle) => any;
7
+ createFormat: (instructions: ExcelCustomStyling) => any;
8
+ createNumberFormatter: (format: string) => any;
3
9
  createSimpleFormatter: (type: any) => any;
4
- createFormat: (instructions: any) => any;
5
- createNumberFormatter: (instructions: any) => any;
6
- createDifferentialStyle: (instructions: any) => any;
7
10
  createTableStyle: (instructions: any) => any;
8
- createBorderFormatter: (border: any) => any;
9
- exportCellFormatElement: (doc: any, instructions: any) => any;
10
- exportAlignment: (doc: any, alignmentData: any) => any;
11
- createFontStyle: (instructions: any) => any;
12
- exportBorder: (doc: any, data: any[]) => any;
11
+ exportAlignment: (doc: any, alignmentData: ExcelAlignmentStyle) => any;
12
+ exportBorder: (doc: any, data: any[]) => ExcelBorderStyle;
13
13
  exportBorders: (doc: any) => any;
14
- exportColor: (doc: any, color: any) => any;
15
- exportFont: (doc: any, fd: any) => any;
16
- exportFonts: (doc: any) => any;
14
+ exportCellFormatElement: (doc: any, instructions: ExcelCustomStyling) => any;
15
+ exportCellStyles: (doc: any) => any;
16
+ exportColor: (doc: any, color: ExcelColorStyle) => any;
17
+ exportDifferentialStyles: (doc: any) => any;
18
+ exportDFX: (doc: any, style: any) => any;
17
19
  exportFill: (doc: any, fd: any) => any;
18
20
  exportFills: (doc: any) => any;
21
+ exportFont: (doc: any, fd: any) => any;
22
+ exportFonts: (doc: any) => any;
19
23
  exportGradientFill: (doc: any, data: any[]) => any;
20
- exportPatternFill: (doc: any, data: any[]) => any;
21
24
  exportNumberFormatter: (doc: any, fd: any) => any;
22
25
  exportNumberFormatters: (doc: any) => any;
23
- exportCellStyles: (doc: any) => any;
24
- exportDifferentialStyles: (doc: any) => any;
25
26
  exportMasterCellFormats: (doc: any) => any;
26
27
  exportMasterCellStyles: (doc: any) => any;
28
+ exportPatternFill: (doc: any, data: any[]) => any;
29
+ exportProtection: (doc: any, protectionData: any) => any;
27
30
  exportTableStyle: (doc: any, style: any) => any;
28
31
  exportTableStyles: (doc: any) => any;
29
- exportProtection: (doc: any, protectionData: any) => any;
30
- exportDFX: (doc: any, style: any) => any;
31
32
  toXML: () => any;
32
33
  }
@@ -1,6 +1,3 @@
1
1
  export * from './excelCellFormat.interface';
2
- export * from './excelExportOption.interface';
3
2
  export * from './excelMetadata.interface';
4
3
  export * from './excelStylesheet.interface';
5
- export * from './excelWorkbook.interface';
6
- export * from './excelWorksheet.interface';
@@ -1,7 +1,4 @@
1
1
  export * from './excelCellFormat.interface';
2
- export * from './excelExportOption.interface';
3
2
  export * from './excelMetadata.interface';
4
3
  export * from './excelStylesheet.interface';
5
- export * from './excelWorkbook.interface';
6
- export * from './excelWorksheet.interface';
7
4
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/interfaces/index.ts"],"names":[],"mappings":"AAAA,cAAc,6BAA6B,CAAC;AAC5C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,4BAA4B,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/interfaces/index.ts"],"names":[],"mappings":"AAAA,cAAc,6BAA6B,CAAC;AAC5C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,6BAA6B,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@slickgrid-universal/excel-export",
3
- "version": "2.1.3",
3
+ "version": "2.2.1",
4
4
  "description": "Excel Export (xls/xlsx) Service.",
5
5
  "main": "dist/commonjs/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -29,7 +29,7 @@
29
29
  "not dead"
30
30
  ],
31
31
  "dependencies": {
32
- "@slickgrid-universal/common": "~2.1.3",
32
+ "@slickgrid-universal/common": "~2.2.1",
33
33
  "@slickgrid-universal/utils": "~2.1.2",
34
34
  "excel-builder-webpacker": "^2.1.7",
35
35
  "moment-mini": "^2.29.4"
@@ -38,5 +38,5 @@
38
38
  "type": "ko_fi",
39
39
  "url": "https://ko-fi.com/ghiscoding"
40
40
  },
41
- "gitHead": "ec581b359865411ceebf8405cb091b4a6c0e06c6"
41
+ "gitHead": "af909ef99b81b07e5a203a319157a6e7d921cf7e"
42
42
  }
@@ -1,31 +0,0 @@
1
- import { FileType } from '@slickgrid-universal/common';
2
- import { ExcelWorksheet } from './excelWorksheet.interface';
3
- import { ExcelWorkbook } from './excelWorkbook.interface';
4
- export interface ExcelExportOption {
5
- /** Defaults to true, when grid is using Grouping, it will show indentation of the text with collapsed/expanded symbol as well */
6
- addGroupIndentation?: boolean;
7
- /** If defined apply the style to header columns. Else use the bold style */
8
- columnHeaderStyle?: any;
9
- /** If set then this will be used as column width for all columns */
10
- customColumnWidth?: number;
11
- /** Defaults to false, which leads to all Formatters of the grid being evaluated on export. You can also override a column by changing the propery on the column itself */
12
- exportWithFormatter?: boolean;
13
- /** filename (without extension) */
14
- filename?: string;
15
- /** file type format, .xls/.xlsx (this will provide the extension) */
16
- format?: FileType.xls | FileType.xlsx;
17
- /** The column header title (at A0 in Excel) of the Group by. If nothing is provided it will use "Group By" (which is a translated value of GROUP_BY i18n) */
18
- groupingColumnHeaderTitle?: string;
19
- /** The default text to display in 1st column of the File Export, which will identify that the current row is a Grouping Aggregator */
20
- groupingAggregatorRowText?: string;
21
- /** Symbol use to show that the group title is collapsed (you can use unicode like '⮞' or '\u25B7') */
22
- groupCollapsedSymbol?: string;
23
- /** Symbol use to show that the group title is expanded (you can use unicode like '⮟' or '\u25BD') */
24
- groupExpandedSymbol?: string;
25
- /** Defaults to false, which leads to Sanitizing all data (striping out any HTML tags) when being evaluated on export. */
26
- sanitizeDataExport?: boolean;
27
- /** Defaults to "Sheet1", Excel Sheet Name */
28
- sheetName?: string;
29
- /** Add a Custom Excel Header on first row of the Excel Sheet */
30
- customExcelHeader?: (workbook: ExcelWorkbook, sheet: ExcelWorksheet) => void;
31
- }
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=excelExportOption.interface.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"excelExportOption.interface.js","sourceRoot":"","sources":["../../../src/interfaces/excelExportOption.interface.ts"],"names":[],"mappings":""}
@@ -1,16 +0,0 @@
1
- import { ExcelWorksheet } from './excelWorksheet.interface';
2
- import { ExcelStylesheet } from './excelStylesheet.interface';
3
- export interface ExcelWorkbook {
4
- addDrawings: (drawings: any) => any;
5
- addTable: (table: any) => any;
6
- addWorksheet: (worksheet: any) => any;
7
- addMedia: (type: any, fileName: any, fileData: any, contentType: any) => any;
8
- createContentTypes: () => any;
9
- createWorksheet: (config: any) => ExcelWorksheet;
10
- createWorkbookRelationship: () => any;
11
- generateFiles: () => any;
12
- getStyleSheet: () => ExcelStylesheet;
13
- setPrintTitleTop: (inSheet: any, inRowCount: any) => any;
14
- setPrintTitleLeft: (inSheet: any, inRowCount: any) => any;
15
- toXML: () => any;
16
- }
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=excelWorkbook.interface.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"excelWorkbook.interface.js","sourceRoot":"","sources":["../../../src/interfaces/excelWorkbook.interface.ts"],"names":[],"mappings":""}
@@ -1,35 +0,0 @@
1
- export interface ExcelWorksheet {
2
- relations: any;
3
- columnFormats: any[];
4
- data: any[];
5
- mergedCells: any[];
6
- columns: any[];
7
- sheetProtection: boolean;
8
- hyperlinks: any[];
9
- sheetView: any;
10
- showZeros: boolean;
11
- initialize: (config: any) => any;
12
- compilePageDetailPackage: (data: any) => any;
13
- compilePageDetailPiece: (data: any) => any;
14
- exportFooter: (doc: any) => any;
15
- exportHeader: (doc: any) => any;
16
- collectSharedStrings: () => any[];
17
- exportColumns: (doc: any) => any;
18
- exportPageSettings: (doc: any, worksheet: any) => any;
19
- exportData: () => any;
20
- addDrawings: (drawings: any) => void;
21
- addTable: (table: any) => void;
22
- freezePane: (column: number, row: number, cell: string) => void;
23
- importData: (data: any) => void;
24
- mergeCells: (cell1: string, cell2: string) => void;
25
- setColumns: (columns: any[]) => void;
26
- setColumnFormats: (columnFormats: any[]) => void;
27
- setData: (data: any[]) => void;
28
- setFooter: (footers: any) => void;
29
- setHeader: (headers: any) => void;
30
- setPageOrientation: (orientation: any) => void;
31
- setPageMargin: (input: any) => void;
32
- setSharedStringCollection: (collection: string[]) => void;
33
- setRowInstructions: (row: number, instructions: any) => void;
34
- toXML: () => any;
35
- }
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=excelWorksheet.interface.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"excelWorksheet.interface.js","sourceRoot":"","sources":["../../../src/interfaces/excelWorksheet.interface.ts"],"names":[],"mappings":""}
@@ -1,31 +0,0 @@
1
- import { FileType } from '@slickgrid-universal/common';
2
- import { ExcelWorksheet } from './excelWorksheet.interface';
3
- import { ExcelWorkbook } from './excelWorkbook.interface';
4
- export interface ExcelExportOption {
5
- /** Defaults to true, when grid is using Grouping, it will show indentation of the text with collapsed/expanded symbol as well */
6
- addGroupIndentation?: boolean;
7
- /** If defined apply the style to header columns. Else use the bold style */
8
- columnHeaderStyle?: any;
9
- /** If set then this will be used as column width for all columns */
10
- customColumnWidth?: number;
11
- /** Defaults to false, which leads to all Formatters of the grid being evaluated on export. You can also override a column by changing the propery on the column itself */
12
- exportWithFormatter?: boolean;
13
- /** filename (without extension) */
14
- filename?: string;
15
- /** file type format, .xls/.xlsx (this will provide the extension) */
16
- format?: FileType.xls | FileType.xlsx;
17
- /** The column header title (at A0 in Excel) of the Group by. If nothing is provided it will use "Group By" (which is a translated value of GROUP_BY i18n) */
18
- groupingColumnHeaderTitle?: string;
19
- /** The default text to display in 1st column of the File Export, which will identify that the current row is a Grouping Aggregator */
20
- groupingAggregatorRowText?: string;
21
- /** Symbol use to show that the group title is collapsed (you can use unicode like '⮞' or '\u25B7') */
22
- groupCollapsedSymbol?: string;
23
- /** Symbol use to show that the group title is expanded (you can use unicode like '⮟' or '\u25BD') */
24
- groupExpandedSymbol?: string;
25
- /** Defaults to false, which leads to Sanitizing all data (striping out any HTML tags) when being evaluated on export. */
26
- sanitizeDataExport?: boolean;
27
- /** Defaults to "Sheet1", Excel Sheet Name */
28
- sheetName?: string;
29
- /** Add a Custom Excel Header on first row of the Excel Sheet */
30
- customExcelHeader?: (workbook: ExcelWorkbook, sheet: ExcelWorksheet) => void;
31
- }
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=excelExportOption.interface.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"excelExportOption.interface.js","sourceRoot":"","sources":["../../../src/interfaces/excelExportOption.interface.ts"],"names":[],"mappings":""}
@@ -1,16 +0,0 @@
1
- import { ExcelWorksheet } from './excelWorksheet.interface';
2
- import { ExcelStylesheet } from './excelStylesheet.interface';
3
- export interface ExcelWorkbook {
4
- addDrawings: (drawings: any) => any;
5
- addTable: (table: any) => any;
6
- addWorksheet: (worksheet: any) => any;
7
- addMedia: (type: any, fileName: any, fileData: any, contentType: any) => any;
8
- createContentTypes: () => any;
9
- createWorksheet: (config: any) => ExcelWorksheet;
10
- createWorkbookRelationship: () => any;
11
- generateFiles: () => any;
12
- getStyleSheet: () => ExcelStylesheet;
13
- setPrintTitleTop: (inSheet: any, inRowCount: any) => any;
14
- setPrintTitleLeft: (inSheet: any, inRowCount: any) => any;
15
- toXML: () => any;
16
- }
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=excelWorkbook.interface.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"excelWorkbook.interface.js","sourceRoot":"","sources":["../../../src/interfaces/excelWorkbook.interface.ts"],"names":[],"mappings":""}
@@ -1,35 +0,0 @@
1
- export interface ExcelWorksheet {
2
- relations: any;
3
- columnFormats: any[];
4
- data: any[];
5
- mergedCells: any[];
6
- columns: any[];
7
- sheetProtection: boolean;
8
- hyperlinks: any[];
9
- sheetView: any;
10
- showZeros: boolean;
11
- initialize: (config: any) => any;
12
- compilePageDetailPackage: (data: any) => any;
13
- compilePageDetailPiece: (data: any) => any;
14
- exportFooter: (doc: any) => any;
15
- exportHeader: (doc: any) => any;
16
- collectSharedStrings: () => any[];
17
- exportColumns: (doc: any) => any;
18
- exportPageSettings: (doc: any, worksheet: any) => any;
19
- exportData: () => any;
20
- addDrawings: (drawings: any) => void;
21
- addTable: (table: any) => void;
22
- freezePane: (column: number, row: number, cell: string) => void;
23
- importData: (data: any) => void;
24
- mergeCells: (cell1: string, cell2: string) => void;
25
- setColumns: (columns: any[]) => void;
26
- setColumnFormats: (columnFormats: any[]) => void;
27
- setData: (data: any[]) => void;
28
- setFooter: (footers: any) => void;
29
- setHeader: (headers: any) => void;
30
- setPageOrientation: (orientation: any) => void;
31
- setPageMargin: (input: any) => void;
32
- setSharedStringCollection: (collection: string[]) => void;
33
- setRowInstructions: (row: number, instructions: any) => void;
34
- toXML: () => any;
35
- }
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=excelWorksheet.interface.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"excelWorksheet.interface.js","sourceRoot":"","sources":["../../../src/interfaces/excelWorksheet.interface.ts"],"names":[],"mappings":""}