@senlinz/import-export 0.1.0-beta.12 → 0.1.0-beta.14

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.
@@ -11,6 +11,8 @@ interface ExcelDefinition {
11
11
  dx?: number;
12
12
  dy?: number;
13
13
  isHeaderFreeze?: boolean;
14
+ progressCallback?: (progress: number) => void;
15
+ imageFetcher?: (url: string) => Promise<Uint8Array>;
14
16
  }
15
17
  interface ExcelColumnDefinition {
16
18
  key: string;
@@ -1,10 +1,10 @@
1
1
  import { ExcelDefinition } from './declarations/ExcelDefinition';
2
2
  declare function initializeWasm(): void;
3
- declare function fromExcel<T>(definition: ExcelDefinition, buffer: Uint8Array): Promise<T[]>;
4
- declare function toExcel<T>(definition: ExcelDefinition, data: T[]): Promise<Uint8Array>;
3
+ declare function _fromExcel<T>(definition: ExcelDefinition, buffer: Uint8Array): Promise<T[]>;
4
+ declare function _toExcel<T>(definition: ExcelDefinition, data: T[]): Promise<any>;
5
5
  declare function generateExcelTemplate(definition: ExcelDefinition): Promise<Uint8Array>;
6
6
  declare function downloadExcelTemplate(definition: ExcelDefinition): Promise<void>;
7
7
  declare function download(data: Uint8Array | string, name: string, type?: string): void;
8
8
  declare function importExcel<T>(defintion: ExcelDefinition): Promise<T[]>;
9
9
  declare function exportExcel<T>(definition: ExcelDefinition, data: T[]): Promise<void>;
10
- export { importExcel, exportExcel, downloadExcelTemplate, fromExcel, toExcel, generateExcelTemplate, initializeWasm, download };
10
+ export { importExcel, exportExcel, downloadExcelTemplate, _fromExcel as fromExcel, _toExcel as toExcel, generateExcelTemplate, initializeWasm, download };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@senlinz/import-export",
3
- "version": "0.1.0-beta.12",
3
+ "version": "0.1.0-beta.14",
4
4
  "description": "Stencil Component for import/export excel files.",
5
5
  "module": "dist/components/index.js",
6
6
  "types": "dist/types/index.d.ts",
@@ -13,10 +13,6 @@
13
13
  ".": {
14
14
  "import": "./dist/components/index.js",
15
15
  "types": "./dist/types/index.d.ts"
16
- },
17
- "./components/import-export-studio.js": {
18
- "import": "./dist/components/import-export-studio.js",
19
- "types": "./dist/types/components/import-export-studio.d.ts"
20
16
  }
21
17
  },
22
18
  "devDependencies": {
@@ -35,7 +31,7 @@
35
31
  },
36
32
  "dependencies": {
37
33
  "fflate": "^0.8.2",
38
- "@senlinz/import-export-wasm": "0.1.0-beta.12"
34
+ "@senlinz/import-export-wasm": "0.1.0-beta.14"
39
35
  },
40
36
  "keywords": [
41
37
  "stencil",