@sd-angular/core 1.3.28 → 1.3.30

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 (59) hide show
  1. package/bundles/sd-angular-core-grid.umd.js +50 -187
  2. package/bundles/sd-angular-core-grid.umd.js.map +1 -1
  3. package/bundles/sd-angular-core-grid.umd.min.js +1 -1
  4. package/bundles/sd-angular-core-grid.umd.min.js.map +1 -1
  5. package/bundles/{sd-angular-core-excel.umd.js → sd-angular-core-pdf.umd.js} +53 -151
  6. package/bundles/sd-angular-core-pdf.umd.js.map +1 -0
  7. package/bundles/sd-angular-core-pdf.umd.min.js +16 -0
  8. package/bundles/sd-angular-core-pdf.umd.min.js.map +1 -0
  9. package/bundles/sd-angular-core-upload-excel.umd.js.map +1 -1
  10. package/bundles/sd-angular-core-upload-excel.umd.min.js.map +1 -1
  11. package/bundles/sd-angular-core.umd.js +12 -4
  12. package/bundles/sd-angular-core.umd.js.map +1 -1
  13. package/bundles/sd-angular-core.umd.min.js +1 -1
  14. package/bundles/sd-angular-core.umd.min.js.map +1 -1
  15. package/esm2015/grid/src/lib/components/grid-popup-export-excel/grid-popup-export-excel.component.js +35 -27
  16. package/esm2015/grid/src/lib/components/grid-popup-export-excel/grid-popup-export-excel.model.js +1 -1
  17. package/esm2015/grid/src/lib/grid.component.js +11 -118
  18. package/esm2015/{excel → pdf}/index.js +1 -1
  19. package/esm2015/pdf/sd-angular-core-pdf.js +5 -0
  20. package/esm2015/pdf/src/lib/pdf.service.js +61 -0
  21. package/esm2015/pdf/src/public-api.js +5 -0
  22. package/esm2015/public-api.js +2 -3
  23. package/esm2015/upload-excel/src/lib/upload-excel.component.js +1 -1
  24. package/fesm2015/sd-angular-core-grid.js +43 -142
  25. package/fesm2015/sd-angular-core-grid.js.map +1 -1
  26. package/fesm2015/sd-angular-core-pdf.js +68 -0
  27. package/fesm2015/sd-angular-core-pdf.js.map +1 -0
  28. package/fesm2015/sd-angular-core-upload-excel.js.map +1 -1
  29. package/fesm2015/sd-angular-core.js +1 -1
  30. package/grid/sd-angular-core-grid.metadata.json +1 -1
  31. package/grid/src/lib/components/grid-popup-export-excel/grid-popup-export-excel.component.d.ts +12 -12
  32. package/grid/src/lib/components/grid-popup-export-excel/grid-popup-export-excel.model.d.ts +1 -2
  33. package/grid/src/lib/grid.component.d.ts +5 -6
  34. package/package.json +1 -1
  35. package/{excel → pdf}/index.d.ts +0 -0
  36. package/pdf/package.json +12 -0
  37. package/{excel/sd-angular-core-excel.d.ts → pdf/sd-angular-core-pdf.d.ts} +0 -0
  38. package/pdf/sd-angular-core-pdf.metadata.json +1 -0
  39. package/pdf/src/lib/pdf.service.d.ts +14 -0
  40. package/pdf/src/public-api.d.ts +1 -0
  41. package/public-api.d.ts +1 -1
  42. package/sd-angular-core-1.3.30.tgz +0 -0
  43. package/sd-angular-core.metadata.json +1 -1
  44. package/upload-excel/sd-angular-core-upload-excel.metadata.json +1 -1
  45. package/bundles/sd-angular-core-excel.umd.js.map +0 -1
  46. package/bundles/sd-angular-core-excel.umd.min.js +0 -16
  47. package/bundles/sd-angular-core-excel.umd.min.js.map +0 -1
  48. package/esm2015/excel/sd-angular-core-excel.js +0 -5
  49. package/esm2015/excel/src/lib/excel.model.js +0 -3
  50. package/esm2015/excel/src/lib/excel.service.js +0 -91
  51. package/esm2015/excel/src/public-api.js +0 -6
  52. package/excel/package.json +0 -12
  53. package/excel/sd-angular-core-excel.metadata.json +0 -1
  54. package/excel/src/lib/excel.model.d.ts +0 -65
  55. package/excel/src/lib/excel.service.d.ts +0 -26
  56. package/excel/src/public-api.d.ts +0 -2
  57. package/fesm2015/sd-angular-core-excel.js +0 -100
  58. package/fesm2015/sd-angular-core-excel.js.map +0 -1
  59. package/sd-angular-core-1.3.28.tgz +0 -0
@@ -1,91 +0,0 @@
1
- import { __awaiter } from "tslib";
2
- import { Optional } from '@angular/core';
3
- import { Injectable, Inject } from '@angular/core';
4
- import * as uuid from 'uuid';
5
- import { EXCEL_CONFIG } from './excel.model';
6
- import * as i0 from "@angular/core";
7
- import * as i1 from "./excel.model";
8
- export class SdExcelService {
9
- constructor(configuration) {
10
- this.configuration = configuration;
11
- this.importId = 'I' + uuid.v4();
12
- this.generateExcelTemplate = (excelTemplate) => __awaiter(this, void 0, void 0, function* () {
13
- if (!this.configuration) {
14
- throw new Error('Please init excel configuration');
15
- }
16
- return yield this.configuration.generateTemplate(excelTemplate);
17
- });
18
- this.generateAndUploadExcelTemplate = (key, excelTemplate) => __awaiter(this, void 0, void 0, function* () {
19
- if (!this.configuration) {
20
- throw new Error('Please init excel configuration');
21
- }
22
- return yield this.configuration.generateAndUploadTemplate(key, excelTemplate);
23
- });
24
- this.uploadTemplate = (key, validator) => __awaiter(this, void 0, void 0, function* () {
25
- if (!this.configuration) {
26
- throw new Error('Please init excel configuration');
27
- }
28
- return yield this.configuration.uploadTemplate(key, validator);
29
- });
30
- this.downloadTemplate = (filePath, fileName) => __awaiter(this, void 0, void 0, function* () {
31
- if (!this.configuration) {
32
- throw new Error('Please init excel configuration');
33
- }
34
- yield this.configuration.download(filePath, fileName);
35
- });
36
- this.generateExcelDataByTemplate = (filePath, columns, items, fileName) => __awaiter(this, void 0, void 0, function* () {
37
- if (!this.configuration) {
38
- throw new Error('Please init excel configuration');
39
- }
40
- const result = yield this.configuration.generateExcelDataByTemplate(filePath, columns, items);
41
- if (result === null || result === void 0 ? void 0 : result.filePath) {
42
- yield this.configuration.download(result.filePath, fileName || `${uuid.v4()}.xlsx`);
43
- }
44
- });
45
- this.export = (option) => __awaiter(this, void 0, void 0, function* () {
46
- var _a;
47
- if (!((_a = this.configuration) === null || _a === void 0 ? void 0 : _a.export)) {
48
- throw new Error('Please init excel export configuration');
49
- }
50
- const result = yield this.configuration.export(option);
51
- if (result === null || result === void 0 ? void 0 : result.filePath) {
52
- yield this.configuration.download(result.filePath);
53
- }
54
- });
55
- this.bigExport = (request) => __awaiter(this, void 0, void 0, function* () {
56
- var _b;
57
- if (!((_b = this.configuration) === null || _b === void 0 ? void 0 : _b.bigExport)) {
58
- throw new Error('Please init excel big export configuration');
59
- }
60
- return yield this.configuration.bigExport(request);
61
- });
62
- this.getFiles = (key) => __awaiter(this, void 0, void 0, function* () {
63
- if (!this.configuration) {
64
- throw new Error('Please init excel configuration');
65
- }
66
- return yield this.configuration.getFiles(key);
67
- });
68
- this.download = (filePath) => __awaiter(this, void 0, void 0, function* () {
69
- if (!filePath) {
70
- return;
71
- }
72
- yield this.configuration.download(filePath);
73
- });
74
- this.remove = (key, name) => __awaiter(this, void 0, void 0, function* () {
75
- if (!this.configuration) {
76
- throw new Error('Please init excel configuration');
77
- }
78
- return yield this.configuration.remove(key, name);
79
- });
80
- }
81
- }
82
- SdExcelService.ɵprov = i0.ɵɵdefineInjectable({ factory: function SdExcelService_Factory() { return new SdExcelService(i0.ɵɵinject(i1.EXCEL_CONFIG, 8)); }, token: SdExcelService, providedIn: "root" });
83
- SdExcelService.decorators = [
84
- { type: Injectable, args: [{
85
- providedIn: 'root'
86
- },] }
87
- ];
88
- SdExcelService.ctorParameters = () => [
89
- { type: undefined, decorators: [{ type: Inject, args: [EXCEL_CONFIG,] }, { type: Optional }] }
90
- ];
91
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXhjZWwuc2VydmljZS5qcyIsInNvdXJjZVJvb3QiOiJDOi9Vc2Vycy9uZ2hpYXR0MTVfb25lbW91bnQvRG9jdW1lbnRzL2xpYi1jb3JlLXVpL3Byb2plY3RzL3NkLWNvcmUvZXhjZWwvIiwic291cmNlcyI6WyJzcmMvbGliL2V4Y2VsLnNlcnZpY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLE9BQU8sRUFBRSxRQUFRLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDekMsT0FBTyxFQUFFLFVBQVUsRUFBRSxNQUFNLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDbkQsT0FBTyxLQU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fVxyXG4gICAgcmV0dXJuIGF3YWl0IHRoaXMuY29uZmlndXJhdGlvbi5nZXRGaWxlcyhrZXkpO1xyXG4gIH1cclxuXHJcbiAgZG93bmxvYWQgPSBhc3luYyAoZmlsZVBhdGg6IHN0cmluZykgPT4ge1xyXG4gICAgaWYgKCFmaWxlUGF0aCkge1xyXG4gICAgICByZXR1cm47XHJcbiAgICB9XHJcbiAgICBhd2FpdCB0aGlzLmNvbmZpZ3VyYXRpb24uZG93bmxvYWQoZmlsZVBhdGgpO1xyXG4gIH1cclxuXHJcbiAgcmVtb3ZlID0gYXN5bmMgKGtleT86IHN0cmluZywgbmFtZT86IHN0cmluZykgPT4ge1xyXG4gICAgaWYgKCF0aGlzLmNvbmZpZ3VyYXRpb24pIHtcclxuICAgICAgdGhyb3cgbmV3IEVycm9yKCdQbGVhc2UgaW5pdCBleGNlbCBjb25maWd1cmF0aW9uJyk7XHJcbiAgICB9XHJcbiAgICByZXR1cm4gYXdhaXQgdGhpcy5jb25maWd1cmF0aW9uLnJlbW92ZShrZXksIG5hbWUpO1xyXG4gIH1cclxufVxyXG5cclxuZXhwb3J0IGludGVyZmFjZSBJRXhwb3J0SW5mbyB7XHJcbiAgZGF0YTogYW55W107XHJcbiAgc2hlZXROYW1lPzogc3RyaW5nO1xyXG4gIGZpbGVOYW1lPzogc3RyaW5nO1xyXG59XHJcbiJdfQ==
@@ -1,6 +0,0 @@
1
- /*
2
- * Public API Surface of superdev-angular-core
3
- */
4
- export * from './lib/excel.model';
5
- export * from './lib/excel.service';
6
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiJDOi9Vc2Vycy9uZ2hpYXR0MTVfb25lbW91bnQvRG9jdW1lbnRzL2xpYi1jb3JlLXVpL3Byb2plY3RzL3NkLWNvcmUvZXhjZWwvIiwic291cmNlcyI6WyJzcmMvcHVibGljLWFwaS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7R0FFRztBQUVILGNBQWMsbUJBQW1CLENBQUM7QUFDbEMsY0FBYyxxQkFBcUIsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qXHJcbiAqIFB1YmxpYyBBUEkgU3VyZmFjZSBvZiBzdXBlcmRldi1hbmd1bGFyLWNvcmVcclxuICovXHJcblxyXG5leHBvcnQgKiBmcm9tICcuL2xpYi9leGNlbC5tb2RlbCc7XHJcbmV4cG9ydCAqIGZyb20gJy4vbGliL2V4Y2VsLnNlcnZpY2UnO1xyXG4iXX0=
@@ -1,12 +0,0 @@
1
- {
2
- "peerDependencies": {},
3
- "main": "../bundles/sd-angular-core-excel.umd.js",
4
- "module": "../fesm2015/sd-angular-core-excel.js",
5
- "es2015": "../fesm2015/sd-angular-core-excel.js",
6
- "esm2015": "../esm2015/excel/sd-angular-core-excel.js",
7
- "fesm2015": "../fesm2015/sd-angular-core-excel.js",
8
- "typings": "sd-angular-core-excel.d.ts",
9
- "metadata": "sd-angular-core-excel.metadata.json",
10
- "sideEffects": false,
11
- "name": "@sd-angular/core/excel"
12
- }
@@ -1 +0,0 @@
1
- {"__symbolic":"module","version":4,"metadata":{"ExcelTemplate":{"__symbolic":"interface"},"ExcelTempateColumn":{"__symbolic":"interface"},"ExcelConfig":{"__symbolic":"interface"},"IExportOption":{"__symbolic":"interface"},"IBigExportRequest":{"__symbolic":"interface"},"IBigExportResponse":{"__symbolic":"interface"},"IExcelConfiguration":{"__symbolic":"interface"},"EXCEL_CONFIG":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":63,"character":32},"arguments":["excel.configuration"]},"SdExcelService":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":5,"character":1},"arguments":[{"providedIn":"root"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":11,"character":5},"arguments":[{"__symbolic":"reference","name":"EXCEL_CONFIG"}]},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional","line":11,"character":27}}]],"parameters":[{"__symbolic":"reference","name":"IExcelConfiguration"}]}]},"statics":{"ɵprov":{}}},"IExportInfo":{"__symbolic":"interface"}},"origins":{"ExcelTemplate":"./src/lib/excel.model","ExcelTempateColumn":"./src/lib/excel.model","ExcelConfig":"./src/lib/excel.model","IExportOption":"./src/lib/excel.model","IBigExportRequest":"./src/lib/excel.model","IBigExportResponse":"./src/lib/excel.model","IExcelConfiguration":"./src/lib/excel.model","EXCEL_CONFIG":"./src/lib/excel.model","SdExcelService":"./src/lib/excel.service","IExportInfo":"./src/lib/excel.service"},"importAs":"@sd-angular/core/excel"}
@@ -1,65 +0,0 @@
1
- import { InjectionToken } from '@angular/core';
2
- export interface ExcelTemplate {
3
- fileName?: string;
4
- columns: ExcelTempateColumn[];
5
- sheets?: {
6
- name: string;
7
- items: any[];
8
- fields: string[];
9
- }[];
10
- }
11
- export interface ExcelTempateColumn {
12
- field: string;
13
- title: string;
14
- required?: boolean;
15
- color?: string;
16
- width?: string;
17
- description?: string;
18
- }
19
- export interface ExcelConfig {
20
- removable?: boolean;
21
- name?: string;
22
- fullPath?: string;
23
- }
24
- export interface IExportOption {
25
- columns: ExcelTempateColumn[];
26
- items: any[];
27
- }
28
- export interface IBigExportRequest {
29
- filePath?: string;
30
- destination?: string;
31
- latestRow: number;
32
- columns: {
33
- field: string;
34
- title: string;
35
- description?: string;
36
- width?: string;
37
- }[];
38
- items: any[];
39
- }
40
- export interface IBigExportResponse {
41
- filePath: string;
42
- destination: string;
43
- latestRow: number;
44
- }
45
- export interface IExcelConfiguration {
46
- generateTemplate: (excelTemplate: ExcelTemplate) => Promise<{
47
- filePath: string;
48
- }>;
49
- generateAndUploadTemplate: (key: string, excelTemplate: ExcelTemplate) => Promise<{
50
- fileName: string;
51
- filePath: string;
52
- }>;
53
- uploadTemplate: (key?: string, validator?: (fileName: string) => string) => Promise<ExcelConfig>;
54
- download: (filePath: string, fileName?: string) => Promise<void>;
55
- generateExcelDataByTemplate: (filePath: string, columns: any[], items: any[], fileName?: string) => Promise<{
56
- filePath: string;
57
- }>;
58
- export?: (option: IExportOption) => Promise<{
59
- filePath: string;
60
- }>;
61
- bigExport?: (request: IBigExportRequest) => Promise<IBigExportResponse>;
62
- getFiles: (key?: string) => Promise<ExcelConfig[]>;
63
- remove: (key?: string, name?: string) => Promise<void>;
64
- }
65
- export declare const EXCEL_CONFIG: InjectionToken<IExcelConfiguration>;
@@ -1,26 +0,0 @@
1
- import { ExcelTemplate, IExcelConfiguration, IExportOption, IBigExportRequest, IBigExportResponse } from './excel.model';
2
- export declare class SdExcelService {
3
- private configuration;
4
- importId: string;
5
- constructor(configuration: IExcelConfiguration);
6
- generateExcelTemplate: (excelTemplate: ExcelTemplate) => Promise<{
7
- filePath: string;
8
- }>;
9
- generateAndUploadExcelTemplate: (key: string, excelTemplate: ExcelTemplate) => Promise<{
10
- fileName: string;
11
- filePath: string;
12
- }>;
13
- uploadTemplate: (key?: string, validator?: (fileName: string) => string) => Promise<import("./excel.model").ExcelConfig>;
14
- downloadTemplate: (filePath: string, fileName?: string) => Promise<void>;
15
- generateExcelDataByTemplate: (filePath: string, columns: any[], items: any[], fileName?: string) => Promise<void>;
16
- export: (option: IExportOption) => Promise<void>;
17
- bigExport: (request: IBigExportRequest) => Promise<IBigExportResponse>;
18
- getFiles: (key?: string) => Promise<import("./excel.model").ExcelConfig[]>;
19
- download: (filePath: string) => Promise<void>;
20
- remove: (key?: string, name?: string) => Promise<void>;
21
- }
22
- export interface IExportInfo {
23
- data: any[];
24
- sheetName?: string;
25
- fileName?: string;
26
- }
@@ -1,2 +0,0 @@
1
- export * from './lib/excel.model';
2
- export * from './lib/excel.service';
@@ -1,100 +0,0 @@
1
- import { InjectionToken, ɵɵdefineInjectable, ɵɵinject, Injectable, Inject, Optional } from '@angular/core';
2
- import { __awaiter } from 'tslib';
3
- import { v4 } from 'uuid';
4
-
5
- const EXCEL_CONFIG = new InjectionToken('excel.configuration');
6
-
7
- class SdExcelService {
8
- constructor(configuration) {
9
- this.configuration = configuration;
10
- this.importId = 'I' + v4();
11
- this.generateExcelTemplate = (excelTemplate) => __awaiter(this, void 0, void 0, function* () {
12
- if (!this.configuration) {
13
- throw new Error('Please init excel configuration');
14
- }
15
- return yield this.configuration.generateTemplate(excelTemplate);
16
- });
17
- this.generateAndUploadExcelTemplate = (key, excelTemplate) => __awaiter(this, void 0, void 0, function* () {
18
- if (!this.configuration) {
19
- throw new Error('Please init excel configuration');
20
- }
21
- return yield this.configuration.generateAndUploadTemplate(key, excelTemplate);
22
- });
23
- this.uploadTemplate = (key, validator) => __awaiter(this, void 0, void 0, function* () {
24
- if (!this.configuration) {
25
- throw new Error('Please init excel configuration');
26
- }
27
- return yield this.configuration.uploadTemplate(key, validator);
28
- });
29
- this.downloadTemplate = (filePath, fileName) => __awaiter(this, void 0, void 0, function* () {
30
- if (!this.configuration) {
31
- throw new Error('Please init excel configuration');
32
- }
33
- yield this.configuration.download(filePath, fileName);
34
- });
35
- this.generateExcelDataByTemplate = (filePath, columns, items, fileName) => __awaiter(this, void 0, void 0, function* () {
36
- if (!this.configuration) {
37
- throw new Error('Please init excel configuration');
38
- }
39
- const result = yield this.configuration.generateExcelDataByTemplate(filePath, columns, items);
40
- if (result === null || result === void 0 ? void 0 : result.filePath) {
41
- yield this.configuration.download(result.filePath, fileName || `${v4()}.xlsx`);
42
- }
43
- });
44
- this.export = (option) => __awaiter(this, void 0, void 0, function* () {
45
- var _a;
46
- if (!((_a = this.configuration) === null || _a === void 0 ? void 0 : _a.export)) {
47
- throw new Error('Please init excel export configuration');
48
- }
49
- const result = yield this.configuration.export(option);
50
- if (result === null || result === void 0 ? void 0 : result.filePath) {
51
- yield this.configuration.download(result.filePath);
52
- }
53
- });
54
- this.bigExport = (request) => __awaiter(this, void 0, void 0, function* () {
55
- var _b;
56
- if (!((_b = this.configuration) === null || _b === void 0 ? void 0 : _b.bigExport)) {
57
- throw new Error('Please init excel big export configuration');
58
- }
59
- return yield this.configuration.bigExport(request);
60
- });
61
- this.getFiles = (key) => __awaiter(this, void 0, void 0, function* () {
62
- if (!this.configuration) {
63
- throw new Error('Please init excel configuration');
64
- }
65
- return yield this.configuration.getFiles(key);
66
- });
67
- this.download = (filePath) => __awaiter(this, void 0, void 0, function* () {
68
- if (!filePath) {
69
- return;
70
- }
71
- yield this.configuration.download(filePath);
72
- });
73
- this.remove = (key, name) => __awaiter(this, void 0, void 0, function* () {
74
- if (!this.configuration) {
75
- throw new Error('Please init excel configuration');
76
- }
77
- return yield this.configuration.remove(key, name);
78
- });
79
- }
80
- }
81
- SdExcelService.ɵprov = ɵɵdefineInjectable({ factory: function SdExcelService_Factory() { return new SdExcelService(ɵɵinject(EXCEL_CONFIG, 8)); }, token: SdExcelService, providedIn: "root" });
82
- SdExcelService.decorators = [
83
- { type: Injectable, args: [{
84
- providedIn: 'root'
85
- },] }
86
- ];
87
- SdExcelService.ctorParameters = () => [
88
- { type: undefined, decorators: [{ type: Inject, args: [EXCEL_CONFIG,] }, { type: Optional }] }
89
- ];
90
-
91
- /*
92
- * Public API Surface of superdev-angular-core
93
- */
94
-
95
- /**
96
- * Generated bundle index. Do not edit.
97
- */
98
-
99
- export { EXCEL_CONFIG, SdExcelService };
100
- //# sourceMappingURL=sd-angular-core-excel.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"sd-angular-core-excel.js","sources":["../../../../projects/sd-core/excel/src/lib/excel.model.ts","../../../../projects/sd-core/excel/src/lib/excel.service.ts","../../../../projects/sd-core/excel/src/public-api.ts","../../../../projects/sd-core/excel/sd-angular-core-excel.ts"],"sourcesContent":["import { InjectionToken } from '@angular/core';\r\n\r\nexport interface ExcelTemplate {\r\n fileName?: string;\r\n columns: ExcelTempateColumn[];\r\n sheets?: {\r\n name: string,\r\n items: any[],\r\n fields: string[]\r\n }[];\r\n}\r\n\r\nexport interface ExcelTempateColumn {\r\n field: string;\r\n title: string;\r\n required?: boolean;\r\n color?: string;\r\n width?: string;\r\n description?: string;\r\n}\r\n\r\nexport interface ExcelConfig {\r\n removable?: boolean;\r\n name?: string;\r\n fullPath?: string;\r\n}\r\n\r\nexport interface IExportOption {\r\n columns: ExcelTempateColumn[];\r\n items: any[];\r\n}\r\n\r\nexport interface IBigExportRequest {\r\n filePath?: string;\r\n destination?: string;\r\n latestRow: number;\r\n columns: {\r\n field: string,\r\n title: string,\r\n description?: string,\r\n width?: string,\r\n }[];\r\n items: any[];\r\n}\r\n\r\nexport interface IBigExportResponse {\r\n filePath: string;\r\n destination: string;\r\n latestRow: number;\r\n}\r\n\r\nexport interface IExcelConfiguration {\r\n generateTemplate: (excelTemplate: ExcelTemplate) => Promise<{ filePath: string }>;\r\n generateAndUploadTemplate: (key: string, excelTemplate: ExcelTemplate) => Promise<{ fileName: string, filePath: string }>;\r\n uploadTemplate: (key?: string, validator?: (fileName: string) => string) => Promise<ExcelConfig>;\r\n download: (filePath: string, fileName?: string) => Promise<void>;\r\n generateExcelDataByTemplate: (filePath: string, columns: any[], items: any[], fileName?: string) => Promise<{ filePath: string }>;\r\n export?: (option: IExportOption) => Promise<{ filePath: string }>;\r\n bigExport?: (request: IBigExportRequest) => Promise<IBigExportResponse>;\r\n getFiles: (key?: string) => Promise<ExcelConfig[]>;\r\n remove: (key?: string, name?: string) => Promise<void>;\r\n}\r\n\r\nexport const EXCEL_CONFIG = new InjectionToken<IExcelConfiguration>('excel.configuration');\r\n","import { Optional } from '@angular/core';\r\nimport { Injectable, Inject } from '@angular/core';\r\nimport * as uuid from 'uuid';\r\nimport { ExcelTemplate, IExcelConfiguration, EXCEL_CONFIG, IExportOption, IBigExportRequest, IBigExportResponse } from './excel.model';\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class SdExcelService {\r\n importId = 'I' + uuid.v4();\r\n constructor(\r\n @Inject(EXCEL_CONFIG) @Optional() private configuration: IExcelConfiguration) {\r\n }\r\n\r\n generateExcelTemplate = async (excelTemplate: ExcelTemplate) => {\r\n if (!this.configuration) {\r\n throw new Error('Please init excel configuration');\r\n }\r\n return await this.configuration.generateTemplate(excelTemplate);\r\n }\r\n\r\n generateAndUploadExcelTemplate = async (key: string, excelTemplate: ExcelTemplate) => {\r\n if (!this.configuration) {\r\n throw new Error('Please init excel configuration');\r\n }\r\n return await this.configuration.generateAndUploadTemplate(key, excelTemplate);\r\n }\r\n\r\n uploadTemplate = async (key?: string, validator?: (fileName: string) => string) => {\r\n if (!this.configuration) {\r\n throw new Error('Please init excel configuration');\r\n }\r\n return await this.configuration.uploadTemplate(key, validator);\r\n }\r\n\r\n downloadTemplate = async (filePath: string, fileName?: string) => {\r\n if (!this.configuration) {\r\n throw new Error('Please init excel configuration');\r\n }\r\n await this.configuration.download(filePath, fileName);\r\n }\r\n\r\n generateExcelDataByTemplate = async (filePath: string, columns: any[], items: any[], fileName?: string) => {\r\n if (!this.configuration) {\r\n throw new Error('Please init excel configuration');\r\n }\r\n const result = await this.configuration.generateExcelDataByTemplate(filePath, columns, items);\r\n if (result?.filePath) {\r\n await this.configuration.download(result.filePath, fileName || `${uuid.v4()}.xlsx`);\r\n }\r\n }\r\n\r\n export = async (option: IExportOption) => {\r\n if (!this.configuration?.export) {\r\n throw new Error('Please init excel export configuration');\r\n }\r\n const result = await this.configuration.export(option);\r\n if (result?.filePath) {\r\n await this.configuration.download(result.filePath);\r\n }\r\n }\r\n\r\n bigExport = async (request: IBigExportRequest): Promise<IBigExportResponse> => {\r\n if (!this.configuration?.bigExport) {\r\n throw new Error('Please init excel big export configuration');\r\n }\r\n return await this.configuration.bigExport(request);\r\n }\r\n\r\n getFiles = async (key?: string) => {\r\n if (!this.configuration) {\r\n throw new Error('Please init excel configuration');\r\n }\r\n return await this.configuration.getFiles(key);\r\n }\r\n\r\n download = async (filePath: string) => {\r\n if (!filePath) {\r\n return;\r\n }\r\n await this.configuration.download(filePath);\r\n }\r\n\r\n remove = async (key?: string, name?: string) => {\r\n if (!this.configuration) {\r\n throw new Error('Please init excel configuration');\r\n }\r\n return await this.configuration.remove(key, name);\r\n }\r\n}\r\n\r\nexport interface IExportInfo {\r\n data: any[];\r\n sheetName?: string;\r\n fileName?: string;\r\n}\r\n","/*\r\n * Public API Surface of superdev-angular-core\r\n */\r\n\r\nexport * from './lib/excel.model';\r\nexport * from './lib/excel.service';\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["uuid.v4"],"mappings":";;;;MA+Da,YAAY,GAAG,IAAI,cAAc,CAAsB,qBAAqB;;MCvD5E,cAAc;IAEzB,YAC4C,aAAkC;QAAlC,kBAAa,GAAb,aAAa,CAAqB;QAF9E,aAAQ,GAAG,GAAG,GAAGA,EAAO,EAAE,CAAC;QAK3B,0BAAqB,GAAG,CAAO,aAA4B;YACzD,IAAI,CAAC,IAAI,CAAC,aAAa,EAAE;gBACvB,MAAM,IAAI,KAAK,CAAC,iCAAiC,CAAC,CAAC;aACpD;YACD,OAAO,MAAM,IAAI,CAAC,aAAa,CAAC,gBAAgB,CAAC,aAAa,CAAC,CAAC;SACjE,CAAA,CAAA;QAED,mCAA8B,GAAG,CAAO,GAAW,EAAE,aAA4B;YAC/E,IAAI,CAAC,IAAI,CAAC,aAAa,EAAE;gBACvB,MAAM,IAAI,KAAK,CAAC,iCAAiC,CAAC,CAAC;aACpD;YACD,OAAO,MAAM,IAAI,CAAC,aAAa,CAAC,yBAAyB,CAAC,GAAG,EAAE,aAAa,CAAC,CAAC;SAC/E,CAAA,CAAA;QAED,mBAAc,GAAG,CAAO,GAAY,EAAE,SAAwC;YAC5E,IAAI,CAAC,IAAI,CAAC,aAAa,EAAE;gBACvB,MAAM,IAAI,KAAK,CAAC,iCAAiC,CAAC,CAAC;aACpD;YACD,OAAO,MAAM,IAAI,CAAC,aAAa,CAAC,cAAc,CAAC,GAAG,EAAE,SAAS,CAAC,CAAC;S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