@canvas-components/xlsx-table 0.1.6 → 0.1.8
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/file/ooxml/index.d.cts +2 -2
- package/dist/file/ooxml/index.d.ts +2 -2
- package/dist/file/ooxml/node.d.cts +2 -2
- package/dist/file/ooxml/node.d.ts +2 -2
- package/dist/index.d.cts +23 -23
- package/dist/index.d.ts +23 -23
- package/package.json +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { WorkBook } from 'xlsx';
|
|
2
2
|
import { X as XlsxPackageOptions, a as XlsxPackageEntry } from '../../sheet-settings-D8pfrp_9.cjs';
|
|
3
3
|
export { N as NativeComposition, O as OoxmlAttribute, b as OoxmlDocument, c as OoxmlNode, d as OoxmlPackageIndex, e as OoxmlRelationship, f as OoxmlXmlEdit, g as XlsxPackageLimits, h as allocateOoxmlPartPath, i as allocateOoxmlRelationshipId, j as buildNativeSheetSettingsTransaction, k as composeNativeXlsxParts, l as decodeOoxmlXml, m as decodeXmlText, n as defaultXlsxPackageLimits, o as editOoxmlXml, p as inspectOoxmlPackage, q as parseOoxmlXml, r as readNativeSheetSettings, s as readNativeXlsxParts, t as readWorkbookFromParts, u as resolveOoxmlTarget } from '../../sheet-settings-D8pfrp_9.cjs';
|
|
4
4
|
export { X as XlsxNativeSheetSettings, a as XlsxNativeSheetSettingsPatch, b as XlsxSavedPrintOptions } from '../../sheet-settings-Bv1KD6XD.cjs';
|
|
@@ -11,6 +11,6 @@ declare function readXlsxPackage(bytes: Uint8Array, options?: XlsxPackageOptions
|
|
|
11
11
|
declare function writeXlsxPackage(entries: readonly XlsxPackageEntry[], options?: XlsxPackageOptions): Promise<Uint8Array<ArrayBufferLike>>;
|
|
12
12
|
|
|
13
13
|
/** 无源工作簿的最小包初始化;返回parts后仍须通过核心原子提交。 */
|
|
14
|
-
declare function createXlsxPackageParts(book:
|
|
14
|
+
declare function createXlsxPackageParts(book: WorkBook, options?: XlsxPackageOptions): Promise<XlsxPackageEntry[]>;
|
|
15
15
|
|
|
16
16
|
export { XlsxPackageEntry, XlsxPackageOptions, createXlsxPackageParts, readXlsxPackage, writeXlsxPackage };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { WorkBook } from 'xlsx';
|
|
2
2
|
import { X as XlsxPackageOptions, a as XlsxPackageEntry } from '../../sheet-settings-ClWkuEGB.js';
|
|
3
3
|
export { N as NativeComposition, O as OoxmlAttribute, b as OoxmlDocument, c as OoxmlNode, d as OoxmlPackageIndex, e as OoxmlRelationship, f as OoxmlXmlEdit, g as XlsxPackageLimits, h as allocateOoxmlPartPath, i as allocateOoxmlRelationshipId, j as buildNativeSheetSettingsTransaction, k as composeNativeXlsxParts, l as decodeOoxmlXml, m as decodeXmlText, n as defaultXlsxPackageLimits, o as editOoxmlXml, p as inspectOoxmlPackage, q as parseOoxmlXml, r as readNativeSheetSettings, s as readNativeXlsxParts, t as readWorkbookFromParts, u as resolveOoxmlTarget } from '../../sheet-settings-ClWkuEGB.js';
|
|
4
4
|
export { X as XlsxNativeSheetSettings, a as XlsxNativeSheetSettingsPatch, b as XlsxSavedPrintOptions } from '../../sheet-settings-CRncG11p.js';
|
|
@@ -11,6 +11,6 @@ declare function readXlsxPackage(bytes: Uint8Array, options?: XlsxPackageOptions
|
|
|
11
11
|
declare function writeXlsxPackage(entries: readonly XlsxPackageEntry[], options?: XlsxPackageOptions): Promise<Uint8Array<ArrayBufferLike>>;
|
|
12
12
|
|
|
13
13
|
/** 无源工作簿的最小包初始化;返回parts后仍须通过核心原子提交。 */
|
|
14
|
-
declare function createXlsxPackageParts(book:
|
|
14
|
+
declare function createXlsxPackageParts(book: WorkBook, options?: XlsxPackageOptions): Promise<XlsxPackageEntry[]>;
|
|
15
15
|
|
|
16
16
|
export { XlsxPackageEntry, XlsxPackageOptions, createXlsxPackageParts, readXlsxPackage, writeXlsxPackage };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { WorkBook } from 'xlsx';
|
|
2
2
|
import { X as XlsxPackageOptions, a as XlsxPackageEntry } from '../../sheet-settings-D8pfrp_9.cjs';
|
|
3
3
|
export { N as NativeComposition, O as OoxmlAttribute, b as OoxmlDocument, c as OoxmlNode, d as OoxmlPackageIndex, e as OoxmlRelationship, f as OoxmlXmlEdit, g as XlsxPackageLimits, h as allocateOoxmlPartPath, i as allocateOoxmlRelationshipId, j as buildNativeSheetSettingsTransaction, k as composeNativeXlsxParts, l as decodeOoxmlXml, m as decodeXmlText, n as defaultXlsxPackageLimits, o as editOoxmlXml, p as inspectOoxmlPackage, q as parseOoxmlXml, r as readNativeSheetSettings, s as readNativeXlsxParts, t as readWorkbookFromParts, u as resolveOoxmlTarget } from '../../sheet-settings-D8pfrp_9.cjs';
|
|
4
4
|
export { X as XlsxNativeSheetSettings, a as XlsxNativeSheetSettingsPatch, b as XlsxSavedPrintOptions } from '../../sheet-settings-Bv1KD6XD.cjs';
|
|
@@ -11,6 +11,6 @@ declare function readXlsxPackage(bytes: Uint8Array, options?: XlsxPackageOptions
|
|
|
11
11
|
declare function writeXlsxPackage(entries: readonly XlsxPackageEntry[], options?: XlsxPackageOptions): Promise<Uint8Array<ArrayBufferLike>>;
|
|
12
12
|
|
|
13
13
|
/** 无源工作簿的最小包初始化;返回parts后仍须通过核心原子提交。 */
|
|
14
|
-
declare function createXlsxPackageParts(book:
|
|
14
|
+
declare function createXlsxPackageParts(book: WorkBook, options?: XlsxPackageOptions): Promise<XlsxPackageEntry[]>;
|
|
15
15
|
|
|
16
16
|
export { XlsxPackageEntry, XlsxPackageOptions, createXlsxPackageParts, readXlsxPackage, writeXlsxPackage };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { WorkBook } from 'xlsx';
|
|
2
2
|
import { X as XlsxPackageOptions, a as XlsxPackageEntry } from '../../sheet-settings-ClWkuEGB.js';
|
|
3
3
|
export { N as NativeComposition, O as OoxmlAttribute, b as OoxmlDocument, c as OoxmlNode, d as OoxmlPackageIndex, e as OoxmlRelationship, f as OoxmlXmlEdit, g as XlsxPackageLimits, h as allocateOoxmlPartPath, i as allocateOoxmlRelationshipId, j as buildNativeSheetSettingsTransaction, k as composeNativeXlsxParts, l as decodeOoxmlXml, m as decodeXmlText, n as defaultXlsxPackageLimits, o as editOoxmlXml, p as inspectOoxmlPackage, q as parseOoxmlXml, r as readNativeSheetSettings, s as readNativeXlsxParts, t as readWorkbookFromParts, u as resolveOoxmlTarget } from '../../sheet-settings-ClWkuEGB.js';
|
|
4
4
|
export { X as XlsxNativeSheetSettings, a as XlsxNativeSheetSettingsPatch, b as XlsxSavedPrintOptions } from '../../sheet-settings-CRncG11p.js';
|
|
@@ -11,6 +11,6 @@ declare function readXlsxPackage(bytes: Uint8Array, options?: XlsxPackageOptions
|
|
|
11
11
|
declare function writeXlsxPackage(entries: readonly XlsxPackageEntry[], options?: XlsxPackageOptions): Promise<Uint8Array<ArrayBufferLike>>;
|
|
12
12
|
|
|
13
13
|
/** 无源工作簿的最小包初始化;返回parts后仍须通过核心原子提交。 */
|
|
14
|
-
declare function createXlsxPackageParts(book:
|
|
14
|
+
declare function createXlsxPackageParts(book: WorkBook, options?: XlsxPackageOptions): Promise<XlsxPackageEntry[]>;
|
|
15
15
|
|
|
16
16
|
export { XlsxPackageEntry, XlsxPackageOptions, createXlsxPackageParts, readXlsxPackage, writeXlsxPackage };
|
package/dist/index.d.cts
CHANGED
|
@@ -5,29 +5,6 @@ export { F as XlsxCellBorderLineStyle, G as XlsxCellBorders, H as XlsxColumnFilt
|
|
|
5
5
|
import { b as XlsxSourceDiagnostics } from './file-DZPF-DHF.cjs';
|
|
6
6
|
import { ExportTableColumn } from '@canvas-components/utils';
|
|
7
7
|
|
|
8
|
-
/** 一次复制的原生快照;不作为持久工作簿数据源。 */
|
|
9
|
-
interface XlsxNativeClipboard {
|
|
10
|
-
stamp: XlsxDocumentStamp;
|
|
11
|
-
sheetName: string;
|
|
12
|
-
range: XlsxCellRange;
|
|
13
|
-
cells: (CellObject | undefined)[][];
|
|
14
|
-
/** 复制当时的只读能力结论,不是持久文件字段。 */
|
|
15
|
-
formatUnsupportedReason?: string;
|
|
16
|
-
}
|
|
17
|
-
interface XlsxPasteSpecialOptions {
|
|
18
|
-
mode: "values" | "formulas" | "formats";
|
|
19
|
-
transpose?: boolean;
|
|
20
|
-
skipBlanks?: boolean;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
/** 实例浏览状态,不写入 XLSX、不进入内容历史。 */
|
|
24
|
-
interface XlsxViewState {
|
|
25
|
-
zoom: number;
|
|
26
|
-
showGridlines: boolean;
|
|
27
|
-
showHeaders: boolean;
|
|
28
|
-
showFormulas: boolean;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
8
|
interface XlsxCleaningBase {
|
|
32
9
|
sheetName: string;
|
|
33
10
|
range: XlsxCellRange;
|
|
@@ -75,6 +52,29 @@ interface XlsxCleaningPlan {
|
|
|
75
52
|
removedRows: number;
|
|
76
53
|
}
|
|
77
54
|
|
|
55
|
+
/** 实例浏览状态,不写入 XLSX、不进入内容历史。 */
|
|
56
|
+
interface XlsxViewState {
|
|
57
|
+
zoom: number;
|
|
58
|
+
showGridlines: boolean;
|
|
59
|
+
showHeaders: boolean;
|
|
60
|
+
showFormulas: boolean;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
/** 一次复制的原生快照;不作为持久工作簿数据源。 */
|
|
64
|
+
interface XlsxNativeClipboard {
|
|
65
|
+
stamp: XlsxDocumentStamp;
|
|
66
|
+
sheetName: string;
|
|
67
|
+
range: XlsxCellRange;
|
|
68
|
+
cells: (CellObject | undefined)[][];
|
|
69
|
+
/** 复制当时的只读能力结论,不是持久文件字段。 */
|
|
70
|
+
formatUnsupportedReason?: string;
|
|
71
|
+
}
|
|
72
|
+
interface XlsxPasteSpecialOptions {
|
|
73
|
+
mode: "values" | "formulas" | "formats";
|
|
74
|
+
transpose?: boolean;
|
|
75
|
+
skipBlanks?: boolean;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
78
|
/** 搜索结果是只读派生视图,不作为单元格数据源。 */
|
|
79
79
|
interface XlsxSearchQuery {
|
|
80
80
|
text: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -5,29 +5,6 @@ export { F as XlsxCellBorderLineStyle, G as XlsxCellBorders, H as XlsxColumnFilt
|
|
|
5
5
|
import { b as XlsxSourceDiagnostics } from './file-DZPF-DHF.js';
|
|
6
6
|
import { ExportTableColumn } from '@canvas-components/utils';
|
|
7
7
|
|
|
8
|
-
/** 一次复制的原生快照;不作为持久工作簿数据源。 */
|
|
9
|
-
interface XlsxNativeClipboard {
|
|
10
|
-
stamp: XlsxDocumentStamp;
|
|
11
|
-
sheetName: string;
|
|
12
|
-
range: XlsxCellRange;
|
|
13
|
-
cells: (CellObject | undefined)[][];
|
|
14
|
-
/** 复制当时的只读能力结论,不是持久文件字段。 */
|
|
15
|
-
formatUnsupportedReason?: string;
|
|
16
|
-
}
|
|
17
|
-
interface XlsxPasteSpecialOptions {
|
|
18
|
-
mode: "values" | "formulas" | "formats";
|
|
19
|
-
transpose?: boolean;
|
|
20
|
-
skipBlanks?: boolean;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
/** 实例浏览状态,不写入 XLSX、不进入内容历史。 */
|
|
24
|
-
interface XlsxViewState {
|
|
25
|
-
zoom: number;
|
|
26
|
-
showGridlines: boolean;
|
|
27
|
-
showHeaders: boolean;
|
|
28
|
-
showFormulas: boolean;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
8
|
interface XlsxCleaningBase {
|
|
32
9
|
sheetName: string;
|
|
33
10
|
range: XlsxCellRange;
|
|
@@ -75,6 +52,29 @@ interface XlsxCleaningPlan {
|
|
|
75
52
|
removedRows: number;
|
|
76
53
|
}
|
|
77
54
|
|
|
55
|
+
/** 实例浏览状态,不写入 XLSX、不进入内容历史。 */
|
|
56
|
+
interface XlsxViewState {
|
|
57
|
+
zoom: number;
|
|
58
|
+
showGridlines: boolean;
|
|
59
|
+
showHeaders: boolean;
|
|
60
|
+
showFormulas: boolean;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
/** 一次复制的原生快照;不作为持久工作簿数据源。 */
|
|
64
|
+
interface XlsxNativeClipboard {
|
|
65
|
+
stamp: XlsxDocumentStamp;
|
|
66
|
+
sheetName: string;
|
|
67
|
+
range: XlsxCellRange;
|
|
68
|
+
cells: (CellObject | undefined)[][];
|
|
69
|
+
/** 复制当时的只读能力结论,不是持久文件字段。 */
|
|
70
|
+
formatUnsupportedReason?: string;
|
|
71
|
+
}
|
|
72
|
+
interface XlsxPasteSpecialOptions {
|
|
73
|
+
mode: "values" | "formulas" | "formats";
|
|
74
|
+
transpose?: boolean;
|
|
75
|
+
skipBlanks?: boolean;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
78
|
/** 搜索结果是只读派生视图,不作为单元格数据源。 */
|
|
79
79
|
interface XlsxSearchQuery {
|
|
80
80
|
text: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@canvas-components/xlsx-table",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.8",
|
|
4
4
|
"description": "Framework-agnostic canvas spreadsheet core for xlsx-table.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
},
|
|
61
61
|
"dependencies": {
|
|
62
62
|
"xlsx": "^0.18.5",
|
|
63
|
-
"@canvas-components/utils": "0.2.
|
|
63
|
+
"@canvas-components/utils": "0.2.11"
|
|
64
64
|
},
|
|
65
65
|
"scripts": {
|
|
66
66
|
"build": "tsup --config tsup.config.ts && tsup --config tsup.worker.config.ts"
|