ooxml-excel-editor 1.3.0 → 1.3.2
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/CHANGELOG.md +161 -2
- package/README.md +9 -6
- package/core.js +2 -0
- package/dist/chunks/_commonjsHelpers-bAxELxBV.js +8 -0
- package/dist/{assets/exceljs.min-DH9BABny.js → chunks/exceljs.min-Bo1tFAdV.js} +2916 -2848
- package/dist/chunks/html2canvas.esm-CqSuKvp_.js +4871 -0
- package/dist/chunks/index-Cu1G47bB.js +10575 -0
- package/dist/chunks/index-gsLKcr47.js +29664 -0
- package/dist/chunks/index.es-aesXm4JC.js +6693 -0
- package/dist/chunks/index.es-n6H_ncuE.js +6693 -0
- package/dist/chunks/jspdf.es.min-B6-ocR7J.js +9673 -0
- package/dist/chunks/jspdf.es.min-DMfUtFJC.js +9673 -0
- package/dist/chunks/{plugin-overlay-DLb6sRhU.js → plugin-overlay-BUrPrpT2.js} +3576 -3435
- package/dist/chunks/purify.es-BK6DF412.js +683 -0
- package/dist/chunks/{toolbar-icons-BcnMin5s.js → toolbar-icons-fOm95ASq.js} +94 -79
- package/dist/components/ExcelViewer.vue.d.ts +20 -20
- package/dist/components/ExportDialog.vue.d.ts +2 -2
- package/dist/components/FilterPopup.vue.d.ts +2 -2
- package/dist/components/ViewerToolbar.vue.d.ts +6 -6
- package/dist/core.js +30 -30
- package/dist/index.js +1288 -1084
- package/dist/react.js +773 -751
- package/dist/style.css +1 -1
- package/dist/vue2.css +1 -1
- package/dist/vue2.js +7 -10431
- package/package.json +8 -13
- package/vue2.js +5 -0
- package/dist/assets/parse.worker-DIaMHX0x.js +0 -2646
|
@@ -1,6 +1,17 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
var S = Object.defineProperty;
|
|
2
|
+
var T = Object.getOwnPropertySymbols;
|
|
3
|
+
var E = Object.prototype.hasOwnProperty, H = Object.prototype.propertyIsEnumerable;
|
|
4
|
+
var j = (e, r, t) => r in e ? S(e, r, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[r] = t, f = (e, r) => {
|
|
5
|
+
for (var t in r || (r = {}))
|
|
6
|
+
E.call(r, t) && j(e, t, r[t]);
|
|
7
|
+
if (T)
|
|
8
|
+
for (var t of T(r))
|
|
9
|
+
H.call(r, t) && j(e, t, r[t]);
|
|
10
|
+
return e;
|
|
11
|
+
};
|
|
12
|
+
import { i as R, p as G } from "./plugin-overlay-BUrPrpT2.js";
|
|
13
|
+
const N = Array(17).fill("#000000");
|
|
14
|
+
function F() {
|
|
4
15
|
return {
|
|
5
16
|
font: { name: "Calibri", size: 11, bold: !1, italic: !1, underline: !1, strike: !1, color: "#000000" },
|
|
6
17
|
fill: { type: "none" },
|
|
@@ -14,14 +25,14 @@ function I() {
|
|
|
14
25
|
numFmt: "General"
|
|
15
26
|
};
|
|
16
27
|
}
|
|
17
|
-
function
|
|
28
|
+
function V(e, r) {
|
|
18
29
|
return {
|
|
19
30
|
name: e,
|
|
20
|
-
index:
|
|
31
|
+
index: r,
|
|
21
32
|
state: "visible",
|
|
22
33
|
dimension: { rows: 0, cols: 0 },
|
|
23
34
|
cells: /* @__PURE__ */ new Map(),
|
|
24
|
-
styles: [
|
|
35
|
+
styles: [F()],
|
|
25
36
|
merges: [],
|
|
26
37
|
columns: /* @__PURE__ */ new Map(),
|
|
27
38
|
rows: /* @__PURE__ */ new Map(),
|
|
@@ -37,13 +48,13 @@ function M(e, o) {
|
|
|
37
48
|
showGridLines: !0
|
|
38
49
|
};
|
|
39
50
|
}
|
|
40
|
-
function
|
|
51
|
+
function O(e, r) {
|
|
41
52
|
if (e == null || e === "") return { raw: null, type: "empty" };
|
|
42
53
|
if (typeof e == "number") return { raw: e, type: "number" };
|
|
43
54
|
if (typeof e == "boolean") return { raw: e, type: "boolean" };
|
|
44
55
|
if (e instanceof Date) return { raw: e, type: "date" };
|
|
45
56
|
if (typeof e != "string") return { raw: String(e), type: "string" };
|
|
46
|
-
if (!
|
|
57
|
+
if (!r) return { raw: e, type: "string" };
|
|
47
58
|
const t = e.trim();
|
|
48
59
|
if (/^[+-]?\d+(\.\d+)?([eE][+-]?\d+)?$/.test(t)) {
|
|
49
60
|
const s = Number(t);
|
|
@@ -56,68 +67,72 @@ function b(e, o) {
|
|
|
56
67
|
}
|
|
57
68
|
return { raw: e, type: "string" };
|
|
58
69
|
}
|
|
59
|
-
function
|
|
60
|
-
return
|
|
70
|
+
function $(e, r) {
|
|
71
|
+
return r.map((t) => e[t]);
|
|
61
72
|
}
|
|
62
|
-
function
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
73
|
+
function L(e, r, t = {}) {
|
|
74
|
+
var A, x, p, w, C, M;
|
|
75
|
+
const s = (A = t.startRow) != null ? A : 0, c = (x = t.startCol) != null ? x : 0, y = (p = t.autoInfer) != null ? p : !0;
|
|
76
|
+
let n = 0, h = 0, d = !1;
|
|
77
|
+
if (!r.length) return { lastRow: 0, lastCol: 0, wrote: !1 };
|
|
78
|
+
const m = r[0], o = m !== null && typeof m == "object" && !Array.isArray(m), a = o ? (w = t.columns) != null ? w : Object.keys(m) : [];
|
|
79
|
+
let g = s;
|
|
80
|
+
if (o && ((C = t.headerRow) == null || C)) {
|
|
81
|
+
for (let l = 0; l < a.length; l++) {
|
|
82
|
+
const i = g, u = c + l;
|
|
83
|
+
e.cells.set(R(i, u), { row: i, col: u, type: "string", raw: a[l], styleId: 0 }), n = Math.max(n, i), h = Math.max(h, u), d = !0;
|
|
72
84
|
}
|
|
73
|
-
|
|
85
|
+
g++;
|
|
74
86
|
}
|
|
75
|
-
for (let
|
|
76
|
-
const
|
|
77
|
-
for (let
|
|
78
|
-
const
|
|
79
|
-
|
|
87
|
+
for (let l = 0; l < r.length; l++) {
|
|
88
|
+
const i = r[l], u = Array.isArray(i) ? i : $(i, a);
|
|
89
|
+
for (let k = 0; k < u.length; k++) {
|
|
90
|
+
const I = g + l - (o && ((M = t.headerRow) == null || M), 0), b = c + k, z = O(u[k], y);
|
|
91
|
+
z.type !== "empty" && (e.cells.set(R(I, b), { row: I, col: b, type: z.type, raw: z.raw, styleId: 0 }), n = Math.max(n, I), h = Math.max(h, b), d = !0);
|
|
80
92
|
}
|
|
81
93
|
}
|
|
82
|
-
return { lastRow:
|
|
94
|
+
return { lastRow: n, lastCol: h, wrote: d };
|
|
83
95
|
}
|
|
84
|
-
function
|
|
85
|
-
|
|
96
|
+
function B(e, r = {}) {
|
|
97
|
+
var o, a;
|
|
98
|
+
const t = r.themeColors && r.themeColors.length === 17 ? r.themeColors : N, s = (o = r.autoInfer) != null ? o : !0, c = (a = r.headerRow) != null ? a : !0;
|
|
86
99
|
if (e && typeof e == "object" && !Array.isArray(e) && Array.isArray(e.sheets))
|
|
87
|
-
return { sheets: e.sheets.map((
|
|
88
|
-
|
|
89
|
-
|
|
100
|
+
return { sheets: e.sheets.map((x, p) => {
|
|
101
|
+
var i;
|
|
102
|
+
const w = V(x.name || `Sheet${p + 1}`, p), { lastRow: C, lastCol: M, wrote: l } = L(w, (i = x.rows) != null ? i : [], { headerRow: c, autoInfer: s });
|
|
103
|
+
return w.dimension = l ? { rows: C + 1, cols: M + 1 } : { rows: 0, cols: 0 }, w;
|
|
90
104
|
}), activeSheet: 0, themeColors: t, date1904: !1 };
|
|
91
|
-
const
|
|
92
|
-
return
|
|
105
|
+
const y = V(r.sheetName || "Sheet1", 0), n = e != null ? e : [], { lastRow: h, lastCol: d, wrote: m } = L(y, n, { headerRow: c, autoInfer: s });
|
|
106
|
+
return y.dimension = m ? { rows: h + 1, cols: d + 1 } : { rows: 0, cols: 0 }, { sheets: [y], activeSheet: 0, themeColors: t, date1904: !1 };
|
|
93
107
|
}
|
|
94
|
-
function
|
|
108
|
+
function _(e) {
|
|
95
109
|
return !!e && typeof e == "object" && Array.isArray(e.sheets) && typeof e.activeSheet == "number" && Array.isArray(e.themeColors);
|
|
96
110
|
}
|
|
97
|
-
function
|
|
98
|
-
|
|
111
|
+
function K(e, r) {
|
|
112
|
+
var m;
|
|
113
|
+
const t = r.sheets[0], s = e.sheets[0];
|
|
99
114
|
if (!t) return e;
|
|
100
115
|
if (!s)
|
|
101
116
|
return {
|
|
102
|
-
sheets: [
|
|
117
|
+
sheets: [D(t, t.name)],
|
|
103
118
|
activeSheet: 0,
|
|
104
|
-
themeColors:
|
|
119
|
+
themeColors: r.themeColors,
|
|
105
120
|
date1904: e.date1904,
|
|
106
121
|
cellImages: e.cellImages
|
|
107
122
|
};
|
|
108
|
-
const
|
|
123
|
+
const c = {
|
|
109
124
|
name: s.name || t.name,
|
|
110
125
|
index: 0,
|
|
111
126
|
state: "visible",
|
|
112
127
|
dimension: { rows: 0, cols: 0 },
|
|
113
128
|
cells: /* @__PURE__ */ new Map(),
|
|
114
|
-
styles: t.styles.map((
|
|
115
|
-
merges: t.merges.map((
|
|
129
|
+
styles: t.styles.map((o) => f({}, o)),
|
|
130
|
+
merges: t.merges.map((o) => f({}, o)),
|
|
116
131
|
columns: new Map(t.columns),
|
|
117
132
|
rows: new Map(t.rows),
|
|
118
133
|
defaultColWidth: t.defaultColWidth,
|
|
119
134
|
defaultRowHeight: t.defaultRowHeight,
|
|
120
|
-
freeze: {
|
|
135
|
+
freeze: f({}, t.freeze),
|
|
121
136
|
// 条件格式 / 数据验证 不带过来 —— 数据可能不在模板的目标列上, 套规则会误命中
|
|
122
137
|
conditional: [],
|
|
123
138
|
dataValidations: [],
|
|
@@ -128,48 +143,48 @@ function S(e, o) {
|
|
|
128
143
|
sparklines: [],
|
|
129
144
|
showGridLines: t.showGridLines
|
|
130
145
|
};
|
|
131
|
-
let
|
|
132
|
-
for (const
|
|
133
|
-
const
|
|
134
|
-
|
|
135
|
-
row:
|
|
136
|
-
col:
|
|
137
|
-
type:
|
|
138
|
-
raw:
|
|
139
|
-
rich:
|
|
140
|
-
formula:
|
|
141
|
-
hyperlink:
|
|
142
|
-
comment:
|
|
143
|
-
styleId: (
|
|
144
|
-
dispImgId:
|
|
145
|
-
}),
|
|
146
|
+
let y = 0, n = 0;
|
|
147
|
+
for (const o of s.cells.values()) {
|
|
148
|
+
const a = t.cells.get(R(o.row, o.col));
|
|
149
|
+
c.cells.set(R(o.row, o.col), {
|
|
150
|
+
row: o.row,
|
|
151
|
+
col: o.col,
|
|
152
|
+
type: o.type,
|
|
153
|
+
raw: o.raw,
|
|
154
|
+
rich: o.rich,
|
|
155
|
+
formula: o.formula,
|
|
156
|
+
hyperlink: o.hyperlink,
|
|
157
|
+
comment: o.comment,
|
|
158
|
+
styleId: (m = a == null ? void 0 : a.styleId) != null ? m : 0,
|
|
159
|
+
dispImgId: o.dispImgId
|
|
160
|
+
}), o.row > y && (y = o.row), o.col > n && (n = o.col);
|
|
146
161
|
}
|
|
147
|
-
const
|
|
148
|
-
return
|
|
149
|
-
rows: Math.max(s.dimension.rows,
|
|
150
|
-
cols: Math.max(s.dimension.cols,
|
|
162
|
+
const h = t.columns.size ? Math.max(...t.columns.keys()) + 1 : 0, d = t.rows.size ? Math.max(...t.rows.keys()) + 1 : 0;
|
|
163
|
+
return c.dimension = {
|
|
164
|
+
rows: Math.max(s.dimension.rows, y + 1, d),
|
|
165
|
+
cols: Math.max(s.dimension.cols, n + 1, h)
|
|
151
166
|
}, {
|
|
152
|
-
sheets: [
|
|
167
|
+
sheets: [c],
|
|
153
168
|
activeSheet: 0,
|
|
154
|
-
themeColors:
|
|
169
|
+
themeColors: r.themeColors,
|
|
155
170
|
date1904: e.date1904,
|
|
156
171
|
cellImages: e.cellImages
|
|
157
172
|
};
|
|
158
173
|
}
|
|
159
|
-
function
|
|
174
|
+
function D(e, r) {
|
|
160
175
|
return {
|
|
161
|
-
name:
|
|
176
|
+
name: r,
|
|
162
177
|
index: 0,
|
|
163
178
|
state: "visible",
|
|
164
179
|
dimension: { rows: 0, cols: 0 },
|
|
165
180
|
cells: /* @__PURE__ */ new Map(),
|
|
166
|
-
styles: e.styles.map((t) => ({
|
|
167
|
-
merges: e.merges.map((t) => ({
|
|
181
|
+
styles: e.styles.map((t) => f({}, t)),
|
|
182
|
+
merges: e.merges.map((t) => f({}, t)),
|
|
168
183
|
columns: new Map(e.columns),
|
|
169
184
|
rows: new Map(e.rows),
|
|
170
185
|
defaultColWidth: e.defaultColWidth,
|
|
171
186
|
defaultRowHeight: e.defaultRowHeight,
|
|
172
|
-
freeze: {
|
|
187
|
+
freeze: f({}, e.freeze),
|
|
173
188
|
conditional: [],
|
|
174
189
|
dataValidations: [],
|
|
175
190
|
images: [],
|
|
@@ -179,10 +194,10 @@ function T(e, o) {
|
|
|
179
194
|
showGridLines: e.showGridLines
|
|
180
195
|
};
|
|
181
196
|
}
|
|
182
|
-
function
|
|
183
|
-
return
|
|
197
|
+
function Z(e, r) {
|
|
198
|
+
return G(e, r);
|
|
184
199
|
}
|
|
185
|
-
const
|
|
200
|
+
const q = {
|
|
186
201
|
// 放大镜
|
|
187
202
|
find: '<circle cx="11" cy="11" r="7"/><line x1="21" y1="21" x2="16.65" y2="16.65"/>',
|
|
188
203
|
// 漏斗
|
|
@@ -210,14 +225,14 @@ const H = {
|
|
|
210
225
|
// 下拉小箭头
|
|
211
226
|
caret: '<path d="M6 9l6 6 6-6"/>'
|
|
212
227
|
};
|
|
213
|
-
function
|
|
228
|
+
function J(e) {
|
|
214
229
|
return '<svg viewBox="0 0 24 24" width="16" height="16" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">' + e + "</svg>";
|
|
215
230
|
}
|
|
216
231
|
export {
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
232
|
+
q as T,
|
|
233
|
+
K as a,
|
|
234
|
+
_ as i,
|
|
235
|
+
B as j,
|
|
236
|
+
Z as p,
|
|
237
|
+
J as s
|
|
223
238
|
};
|
|
@@ -325,6 +325,14 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
|
|
|
325
325
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
326
326
|
error: (message: string) => any;
|
|
327
327
|
progress: (progress: ParseProgress) => any;
|
|
328
|
+
"cell-change": (payload: CellChangePayload) => any;
|
|
329
|
+
"edit-start": (payload: unknown) => any;
|
|
330
|
+
"edit-commit": (payload: unknown) => any;
|
|
331
|
+
"dim-change": (payload: DimChangePayload) => any;
|
|
332
|
+
"dirty-change": (payload: DirtyChangePayload) => any;
|
|
333
|
+
"image-change": (payload: ImageChangePayload) => any;
|
|
334
|
+
"struct-change": (payload: StructChangePayload) => any;
|
|
335
|
+
"permission-denied": (payload: PermissionDeniedPayload) => any;
|
|
328
336
|
"cell-click": (payload: {
|
|
329
337
|
row: number;
|
|
330
338
|
col: number;
|
|
@@ -353,20 +361,20 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
|
|
|
353
361
|
col: number;
|
|
354
362
|
};
|
|
355
363
|
}) => any;
|
|
356
|
-
"cell-change": (payload: CellChangePayload) => any;
|
|
357
|
-
"edit-start": (payload: unknown) => any;
|
|
358
|
-
"edit-commit": (payload: unknown) => any;
|
|
359
|
-
"dim-change": (payload: DimChangePayload) => any;
|
|
360
|
-
"dirty-change": (payload: DirtyChangePayload) => any;
|
|
361
|
-
"image-change": (payload: ImageChangePayload) => any;
|
|
362
|
-
"struct-change": (payload: StructChangePayload) => any;
|
|
363
|
-
"permission-denied": (payload: PermissionDeniedPayload) => any;
|
|
364
364
|
rendered: (workbook: WorkbookModel) => any;
|
|
365
|
-
"before-context-menu": (payload: ContextMenuBeforePayload) => any;
|
|
366
365
|
"context-menu": (payload: ContextMenuShowPayload) => any;
|
|
366
|
+
"before-context-menu": (payload: ContextMenuBeforePayload) => any;
|
|
367
367
|
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
368
368
|
onError?: ((message: string) => any) | undefined;
|
|
369
369
|
onProgress?: ((progress: ParseProgress) => any) | undefined;
|
|
370
|
+
"onCell-change"?: ((payload: CellChangePayload) => any) | undefined;
|
|
371
|
+
"onEdit-start"?: ((payload: unknown) => any) | undefined;
|
|
372
|
+
"onEdit-commit"?: ((payload: unknown) => any) | undefined;
|
|
373
|
+
"onDim-change"?: ((payload: DimChangePayload) => any) | undefined;
|
|
374
|
+
"onDirty-change"?: ((payload: DirtyChangePayload) => any) | undefined;
|
|
375
|
+
"onImage-change"?: ((payload: ImageChangePayload) => any) | undefined;
|
|
376
|
+
"onStruct-change"?: ((payload: StructChangePayload) => any) | undefined;
|
|
377
|
+
"onPermission-denied"?: ((payload: PermissionDeniedPayload) => any) | undefined;
|
|
370
378
|
"onCell-click"?: ((payload: {
|
|
371
379
|
row: number;
|
|
372
380
|
col: number;
|
|
@@ -395,23 +403,15 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
|
|
|
395
403
|
col: number;
|
|
396
404
|
};
|
|
397
405
|
}) => any) | undefined;
|
|
398
|
-
"onCell-change"?: ((payload: CellChangePayload) => any) | undefined;
|
|
399
|
-
"onEdit-start"?: ((payload: unknown) => any) | undefined;
|
|
400
|
-
"onEdit-commit"?: ((payload: unknown) => any) | undefined;
|
|
401
|
-
"onDim-change"?: ((payload: DimChangePayload) => any) | undefined;
|
|
402
|
-
"onDirty-change"?: ((payload: DirtyChangePayload) => any) | undefined;
|
|
403
|
-
"onImage-change"?: ((payload: ImageChangePayload) => any) | undefined;
|
|
404
|
-
"onStruct-change"?: ((payload: StructChangePayload) => any) | undefined;
|
|
405
|
-
"onPermission-denied"?: ((payload: PermissionDeniedPayload) => any) | undefined;
|
|
406
406
|
onRendered?: ((workbook: WorkbookModel) => any) | undefined;
|
|
407
|
-
"onBefore-context-menu"?: ((payload: ContextMenuBeforePayload) => any) | undefined;
|
|
408
407
|
"onContext-menu"?: ((payload: ContextMenuShowPayload) => any) | undefined;
|
|
408
|
+
"onBefore-context-menu"?: ((payload: ContextMenuBeforePayload) => any) | undefined;
|
|
409
409
|
}>, {
|
|
410
|
-
toolbar: boolean | Array<string | ToolbarItem>;
|
|
411
410
|
imageLightbox: boolean;
|
|
412
411
|
openLinks: boolean;
|
|
413
|
-
|
|
412
|
+
toolbar: boolean | Array<string | ToolbarItem>;
|
|
414
413
|
contextMenu: boolean | ContextMenuTransform;
|
|
414
|
+
exportProgress: boolean;
|
|
415
415
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
416
416
|
rootEl: HTMLDivElement;
|
|
417
417
|
fbEl: HTMLTextAreaElement;
|
|
@@ -5,10 +5,10 @@ type __VLS_Props = {
|
|
|
5
5
|
sheetCount: number;
|
|
6
6
|
};
|
|
7
7
|
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
8
|
-
close: () => any;
|
|
9
8
|
export: (cfg: ExportConfig) => any;
|
|
9
|
+
close: () => any;
|
|
10
10
|
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
11
|
-
onClose?: (() => any) | undefined;
|
|
12
11
|
onExport?: ((cfg: ExportConfig) => any) | undefined;
|
|
12
|
+
onClose?: (() => any) | undefined;
|
|
13
13
|
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
14
14
|
export default _default;
|
|
@@ -7,13 +7,13 @@ type __VLS_Props = {
|
|
|
7
7
|
};
|
|
8
8
|
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
9
9
|
sort: (dir: "desc" | "asc") => any;
|
|
10
|
-
apply: (checked: string[]) => any;
|
|
11
10
|
close: () => any;
|
|
11
|
+
apply: (checked: string[]) => any;
|
|
12
12
|
clear: () => any;
|
|
13
13
|
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
14
14
|
onSort?: ((dir: "desc" | "asc") => any) | undefined;
|
|
15
|
-
onApply?: ((checked: string[]) => any) | undefined;
|
|
16
15
|
onClose?: (() => any) | undefined;
|
|
16
|
+
onApply?: ((checked: string[]) => any) | undefined;
|
|
17
17
|
onClear?: (() => any) | undefined;
|
|
18
18
|
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
19
19
|
rootEl: HTMLDivElement;
|
|
@@ -6,18 +6,18 @@ type __VLS_Props = {
|
|
|
6
6
|
zoom: number;
|
|
7
7
|
};
|
|
8
8
|
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
9
|
-
|
|
10
|
-
"export-image": () => any;
|
|
9
|
+
print: () => any;
|
|
11
10
|
"export-pdf": () => any;
|
|
12
11
|
"export-pdf-vector": () => any;
|
|
13
|
-
|
|
12
|
+
"update:zoom": (value: number) => any;
|
|
13
|
+
"export-image": () => any;
|
|
14
14
|
"open-settings": () => any;
|
|
15
15
|
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
16
|
-
|
|
17
|
-
"onExport-image"?: (() => any) | undefined;
|
|
16
|
+
onPrint?: (() => any) | undefined;
|
|
18
17
|
"onExport-pdf"?: (() => any) | undefined;
|
|
19
18
|
"onExport-pdf-vector"?: (() => any) | undefined;
|
|
20
|
-
|
|
19
|
+
"onUpdate:zoom"?: ((value: number) => any) | undefined;
|
|
20
|
+
"onExport-image"?: (() => any) | undefined;
|
|
21
21
|
"onOpen-settings"?: (() => any) | undefined;
|
|
22
22
|
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
23
23
|
export default _default;
|
package/dist/core.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { C as r, w as t, D as l, E as n, G as i, O as
|
|
2
|
-
function a
|
|
3
|
-
return
|
|
1
|
+
import { C as r, w as t, D as l, E as n, G as i, O as d, P as m, V as g, W as c, x as u, y as C, A as k, j as b, k as y, B as f, F as v, m as S, i as E, H as I, I as T, J as p, K as R, h, L as W, M as w, N as x, Q as D, d as F, n as O, f as V, o as B, a as H, q as M, t as A, c as J, e as L, g as N, b as P, u as U, R as G, S as K, T as X, U as _, X as j, Y as q, l as z, Z as Q, v as Y, p as Z, _ as $, $ as aa, a0 as ea, a1 as sa, a2 as oa, a3 as ra, r as ta, a4 as la, a5 as na, a6 as ia, a7 as da, a8 as ma, a9 as ga, s as ca, aa as ua, ab as Ca, ac as ka, ad as ba } from "./chunks/plugin-overlay-BUrPrpT2.js";
|
|
2
|
+
function e(a) {
|
|
3
|
+
return a;
|
|
4
4
|
}
|
|
5
5
|
export {
|
|
6
6
|
r as CanvasRenderer,
|
|
@@ -8,8 +8,8 @@ export {
|
|
|
8
8
|
l as DEFAULT_THEME,
|
|
9
9
|
n as EditController,
|
|
10
10
|
i as GridMetrics,
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
d as OverlayManager,
|
|
12
|
+
m as PluginOverlayHost,
|
|
13
13
|
g as ViewerController,
|
|
14
14
|
c as WorkbookExporter,
|
|
15
15
|
u as addImage,
|
|
@@ -27,7 +27,7 @@ export {
|
|
|
27
27
|
R as cloneWorkbook,
|
|
28
28
|
h as colIndexToLetters,
|
|
29
29
|
W as defaultFormulaEngineFactory,
|
|
30
|
-
|
|
30
|
+
e as definePlugin,
|
|
31
31
|
w as deleteCols,
|
|
32
32
|
x as deleteIntersectsMerge,
|
|
33
33
|
D as deleteRows,
|
|
@@ -43,32 +43,32 @@ export {
|
|
|
43
43
|
N as getRangeData,
|
|
44
44
|
P as getSheetData,
|
|
45
45
|
U as getWorkbookJSON,
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
46
|
+
G as insertCols,
|
|
47
|
+
K as insertRows,
|
|
48
|
+
X as internStyle,
|
|
49
|
+
_ as isDimCommand,
|
|
50
|
+
j as isImageCommand,
|
|
51
|
+
q as isStructCommand,
|
|
52
|
+
z as loadArrayBuffer,
|
|
53
53
|
Q as mergeStyleOverride,
|
|
54
54
|
Y as mergeTheme,
|
|
55
55
|
Z as parseWorkbook,
|
|
56
56
|
$ as removeImage,
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
57
|
+
aa as resolveEditable,
|
|
58
|
+
ea as restoreCell,
|
|
59
|
+
sa as restoreDimension,
|
|
60
|
+
oa as restoreStructure,
|
|
61
|
+
ra as restoreWorkbookInto,
|
|
62
|
+
ta as revokeImages,
|
|
63
|
+
la as rewriteWorkbookFormulas,
|
|
64
|
+
na as setCellValue,
|
|
65
|
+
ia as setColumnWidth,
|
|
66
|
+
da as setImageRect,
|
|
67
|
+
ma as setRangeValues,
|
|
68
|
+
ga as setRowHeight,
|
|
69
|
+
ca as sheetToJSON,
|
|
70
|
+
ua as shiftFormulaRefs,
|
|
71
|
+
Ca as toCsv,
|
|
72
|
+
ka as toWorkbookJson,
|
|
73
|
+
ba as workbookToXlsxBlob
|
|
74
74
|
};
|