ooxml-core 1.3.0 → 1.4.0
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/README.md +2 -0
- package/dist/automation/index.cjs +5785 -5295
- package/dist/automation/index.mjs +5785 -5295
- package/dist/teams/index.cjs +72 -23
- package/dist/teams/index.mjs +72 -23
- package/dist/visio/edit-commands.d.ts +11 -2
- package/dist/visio/edit-commands.d.ts.map +1 -1
- package/dist/visio/edit-page-size.d.ts +5 -0
- package/dist/visio/edit-page-size.d.ts.map +1 -0
- package/dist/visio/edit-pages.d.ts.map +1 -1
- package/dist/visio/edit-text-range-commands.d.ts +21 -0
- package/dist/visio/edit-text-range-commands.d.ts.map +1 -0
- package/dist/visio/edit-text-range-plan.d.ts +7 -0
- package/dist/visio/edit-text-range-plan.d.ts.map +1 -0
- package/dist/visio/edit-text-ranges.d.ts +4 -0
- package/dist/visio/edit-text-ranges.d.ts.map +1 -0
- package/dist/visio/edit-text-target.d.ts +3 -0
- package/dist/visio/edit-text-target.d.ts.map +1 -0
- package/dist/visio/edit-text.d.ts.map +1 -1
- package/dist/visio/edit.d.ts +1 -1
- package/dist/visio/edit.d.ts.map +1 -1
- package/dist/visio/index.cjs +395 -27
- package/dist/visio/index.d.ts +1 -1
- package/dist/visio/index.d.ts.map +1 -1
- package/dist/visio/index.mjs +395 -27
- package/dist/visio/model.d.ts +3 -0
- package/dist/visio/model.d.ts.map +1 -1
- package/dist/visio/parser.d.ts.map +1 -1
- package/dist/visio/ui/edit-commands.d.ts.map +1 -1
- package/dist/visio/ui/index.cjs +134 -11
- package/dist/visio/ui/index.d.ts +1 -0
- package/dist/visio/ui/index.d.ts.map +1 -1
- package/dist/visio/ui/index.mjs +130 -12
- package/dist/visio/ui/page-size.d.ts +31 -0
- package/dist/visio/ui/page-size.d.ts.map +1 -0
- package/dist/visio/ui/scene-validation.d.ts.map +1 -1
- package/dist/visio/ui/snapshot-scene.d.ts.map +1 -1
- package/dist/visio/ui/text-replace-types.d.ts +6 -2
- package/dist/visio/ui/text-replace-types.d.ts.map +1 -1
- package/dist/visio/ui/text-replace.d.ts +3 -4
- package/dist/visio/ui/text-replace.d.ts.map +1 -1
- package/dist/visio/xml-validation.d.ts.map +1 -1
- package/dist/xlsx/collab/codec.d.ts +2 -0
- package/dist/xlsx/collab/codec.d.ts.map +1 -1
- package/dist/xlsx/collab/index.cjs +5 -0
- package/dist/xlsx/collab/index.mjs +5 -0
- package/dist/xlsx/display-text.d.ts +4 -0
- package/dist/xlsx/display-text.d.ts.map +1 -0
- package/dist/xlsx/edit/cell-values.d.ts +4 -3
- package/dist/xlsx/edit/cell-values.d.ts.map +1 -1
- package/dist/xlsx/edit/clipboard.d.ts.map +1 -1
- package/dist/xlsx/edit/context.d.ts +7 -5
- package/dist/xlsx/edit/context.d.ts.map +1 -1
- package/dist/xlsx/edit/deps.d.ts +1 -1
- package/dist/xlsx/edit/deps.d.ts.map +1 -1
- package/dist/xlsx/edit/dimensions.d.ts.map +1 -1
- package/dist/xlsx/edit/fill.d.ts.map +1 -1
- package/dist/xlsx/edit/filter.d.ts.map +1 -1
- package/dist/xlsx/edit/find.d.ts.map +1 -1
- package/dist/xlsx/edit/paste-selection.d.ts.map +1 -1
- package/dist/xlsx/edit/shift-formulas.d.ts +10 -4
- package/dist/xlsx/edit/shift-formulas.d.ts.map +1 -1
- package/dist/xlsx/edit/table-header-names.d.ts +3 -0
- package/dist/xlsx/edit/table-header-names.d.ts.map +1 -0
- package/dist/xlsx/edit/tables.d.ts +1 -2
- package/dist/xlsx/edit/tables.d.ts.map +1 -1
- package/dist/xlsx/filter-rows.d.ts +8 -0
- package/dist/xlsx/filter-rows.d.ts.map +1 -0
- package/dist/xlsx/formula/functions/math-sum.d.ts.map +1 -1
- package/dist/xlsx/formula/table-refs.d.ts +2 -0
- package/dist/xlsx/formula/table-refs.d.ts.map +1 -1
- package/dist/xlsx/index.cjs +445 -323
- package/dist/xlsx/index.mjs +445 -323
- package/dist/xlsx/load/index.cjs +7621 -7585
- package/dist/xlsx/load/index.mjs +7621 -7585
- package/dist/xlsx/model.d.ts +4 -0
- package/dist/xlsx/model.d.ts.map +1 -1
- package/dist/xlsx/read/load.d.ts.map +1 -1
- package/dist/xlsx/ui/index.cjs +443 -323
- package/dist/xlsx/ui/index.mjs +443 -323
- package/dist/xlsx/ui/locales/de/shell.d.ts.map +1 -1
- package/dist/xlsx/ui/locales/en/shell.d.ts.map +1 -1
- package/dist/xlsx/ui/locales/es/shell.d.ts.map +1 -1
- package/dist/xlsx/ui/locales/fr/shell.d.ts.map +1 -1
- package/dist/xlsx/ui/locales/zh-CN/shell.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/teams/index.cjs
CHANGED
|
@@ -7287,8 +7287,10 @@ function usedRange(sheet) {
|
|
|
7287
7287
|
if (maxRow < 0) return void 0;
|
|
7288
7288
|
return { start: { row: minRow, col: minCol }, end: { row: maxRow, col: maxCol } };
|
|
7289
7289
|
}
|
|
7290
|
+
var getCell;
|
|
7290
7291
|
var init_cells = __esm({
|
|
7291
7292
|
"xlsx/cells.ts"() {
|
|
7293
|
+
getCell = (sheet, row2, col) => sheet.rows.get(row2)?.get(col);
|
|
7292
7294
|
}
|
|
7293
7295
|
});
|
|
7294
7296
|
|
|
@@ -12207,6 +12209,72 @@ var init_criteria = __esm({
|
|
|
12207
12209
|
}
|
|
12208
12210
|
});
|
|
12209
12211
|
|
|
12212
|
+
// xlsx/styles.ts
|
|
12213
|
+
function styleKey(style2) {
|
|
12214
|
+
return JSON.stringify(sortKeys(style2));
|
|
12215
|
+
}
|
|
12216
|
+
function sortKeys(value) {
|
|
12217
|
+
if (Array.isArray(value)) return value.map(sortKeys);
|
|
12218
|
+
if (value && typeof value === "object") {
|
|
12219
|
+
const out = {};
|
|
12220
|
+
for (const key of Object.keys(value).sort()) {
|
|
12221
|
+
const entry3 = value[key];
|
|
12222
|
+
if (entry3 !== void 0) out[key] = sortKeys(entry3);
|
|
12223
|
+
}
|
|
12224
|
+
return out;
|
|
12225
|
+
}
|
|
12226
|
+
return value;
|
|
12227
|
+
}
|
|
12228
|
+
function styleAt(workbook, styleId) {
|
|
12229
|
+
const style2 = workbook.styles[styleId ?? 0] ?? workbook.styles[0];
|
|
12230
|
+
if (!style2) throw new Error("Workbook has no default cell style");
|
|
12231
|
+
return style2;
|
|
12232
|
+
}
|
|
12233
|
+
var init_styles = __esm({
|
|
12234
|
+
"xlsx/styles.ts"() {
|
|
12235
|
+
}
|
|
12236
|
+
});
|
|
12237
|
+
|
|
12238
|
+
// xlsx/display-text.ts
|
|
12239
|
+
function displayText(workbook, cell) {
|
|
12240
|
+
if (!cell || cell.value === null) return "";
|
|
12241
|
+
const value = cell.value;
|
|
12242
|
+
if (isCellError(value)) return value.error;
|
|
12243
|
+
if (typeof value === "boolean") return value ? "TRUE" : "FALSE";
|
|
12244
|
+
if (cell.richText && typeof value === "string") return value;
|
|
12245
|
+
return formatValue(value, styleAt(workbook, cell.styleId).numFmt, {
|
|
12246
|
+
date1904: workbook.date1904
|
|
12247
|
+
}).text;
|
|
12248
|
+
}
|
|
12249
|
+
var init_display_text = __esm({
|
|
12250
|
+
"xlsx/display-text.ts"() {
|
|
12251
|
+
init_model();
|
|
12252
|
+
init_numfmt();
|
|
12253
|
+
init_styles();
|
|
12254
|
+
}
|
|
12255
|
+
});
|
|
12256
|
+
|
|
12257
|
+
// xlsx/filter-rows.ts
|
|
12258
|
+
function rowMatchesFilter(workbook, sheet, row2, filter2) {
|
|
12259
|
+
return (filter2.columns ?? []).every((column) => {
|
|
12260
|
+
if (!column.values && !column.blank) return true;
|
|
12261
|
+
const text = displayText(workbook, getCell(sheet, row2, filter2.range.start.col + column.offset));
|
|
12262
|
+
return text === "" ? !!column.blank : (column.values ?? []).includes(text);
|
|
12263
|
+
});
|
|
12264
|
+
}
|
|
12265
|
+
function isFilteredRow(workbook, sheet, row2) {
|
|
12266
|
+
const info = sheet.rowInfo.get(row2);
|
|
12267
|
+
if (info?.filteredOut !== void 0) return info.filteredOut;
|
|
12268
|
+
const filter2 = sheet.autoFilter;
|
|
12269
|
+
return !!info?.hidden && !!filter2 && row2 > filter2.range.start.row && row2 <= filter2.range.end.row && !rowMatchesFilter(workbook, sheet, row2, filter2);
|
|
12270
|
+
}
|
|
12271
|
+
var init_filter_rows = __esm({
|
|
12272
|
+
"xlsx/filter-rows.ts"() {
|
|
12273
|
+
init_cells();
|
|
12274
|
+
init_display_text();
|
|
12275
|
+
}
|
|
12276
|
+
});
|
|
12277
|
+
|
|
12210
12278
|
// xlsx/formula/functions/math-sum.ts
|
|
12211
12279
|
function sumProduct(ctx, args) {
|
|
12212
12280
|
const matrices = args.map((a2) => ctx.toMatrix(a2));
|
|
@@ -12241,7 +12309,7 @@ function pairwise(ctx, args, fn) {
|
|
|
12241
12309
|
}
|
|
12242
12310
|
return total2;
|
|
12243
12311
|
}
|
|
12244
|
-
function subtotalValues(ctx, args, skipHidden, skipErrors, skipNested = true) {
|
|
12312
|
+
function subtotalValues(ctx, args, skipHidden, skipErrors, skipNested = true, skipFiltered = false) {
|
|
12245
12313
|
const out = [];
|
|
12246
12314
|
const host = ctx.frame.host;
|
|
12247
12315
|
for (const arg of args) {
|
|
@@ -12254,6 +12322,7 @@ function subtotalValues(ctx, args, skipHidden, skipErrors, skipNested = true) {
|
|
|
12254
12322
|
for (const area of arg.areas) {
|
|
12255
12323
|
const sheet = ctx.workbook.sheets[area.sheet];
|
|
12256
12324
|
host.forEachStored(area.sheet, area.range, (value, row2, col) => {
|
|
12325
|
+
if (skipFiltered && sheet && isFilteredRow(ctx.workbook, sheet, row2)) return;
|
|
12257
12326
|
if (skipHidden && sheet?.rowInfo.get(row2)?.hidden) return;
|
|
12258
12327
|
if (skipNested && SUBTOTAL_RE.test(host.cellFormula(area.sheet, row2, col) ?? "")) return;
|
|
12259
12328
|
if (skipErrors && isError(value)) return;
|
|
@@ -12315,6 +12384,7 @@ var init_math_sum = __esm({
|
|
|
12315
12384
|
init_criteria();
|
|
12316
12385
|
init_helpers();
|
|
12317
12386
|
init_stats_core();
|
|
12387
|
+
init_filter_rows();
|
|
12318
12388
|
C19 = "Math & Trig";
|
|
12319
12389
|
numbersOf = (values2) => values2.filter((v) => typeof v === "number");
|
|
12320
12390
|
SUBTOTAL_RE = /\b(?:_xlfn\.)?(?:SUBTOTAL|AGGREGATE)\s*\(/i;
|
|
@@ -12430,7 +12500,7 @@ var init_math_sum = __esm({
|
|
|
12430
12500
|
const code = int(args[0]);
|
|
12431
12501
|
const base = code > 100 ? code - 100 : code;
|
|
12432
12502
|
if (base < 1 || base > 11) fail(ERR.VALUE);
|
|
12433
|
-
return aggregate(base, subtotalValues(ctx, args.slice(1), code > 100, false));
|
|
12503
|
+
return aggregate(base, subtotalValues(ctx, args.slice(1), code > 100, false, true, true));
|
|
12434
12504
|
},
|
|
12435
12505
|
["value", "any"]
|
|
12436
12506
|
),
|
|
@@ -16702,27 +16772,6 @@ var init_shared_strings = __esm({
|
|
|
16702
16772
|
}
|
|
16703
16773
|
});
|
|
16704
16774
|
|
|
16705
|
-
// xlsx/styles.ts
|
|
16706
|
-
function styleKey(style2) {
|
|
16707
|
-
return JSON.stringify(sortKeys(style2));
|
|
16708
|
-
}
|
|
16709
|
-
function sortKeys(value) {
|
|
16710
|
-
if (Array.isArray(value)) return value.map(sortKeys);
|
|
16711
|
-
if (value && typeof value === "object") {
|
|
16712
|
-
const out = {};
|
|
16713
|
-
for (const key of Object.keys(value).sort()) {
|
|
16714
|
-
const entry3 = value[key];
|
|
16715
|
-
if (entry3 !== void 0) out[key] = sortKeys(entry3);
|
|
16716
|
-
}
|
|
16717
|
-
return out;
|
|
16718
|
-
}
|
|
16719
|
-
return value;
|
|
16720
|
-
}
|
|
16721
|
-
var init_styles = __esm({
|
|
16722
|
-
"xlsx/styles.ts"() {
|
|
16723
|
-
}
|
|
16724
|
-
});
|
|
16725
|
-
|
|
16726
16775
|
// xlsx/read/builtin-formats.ts
|
|
16727
16776
|
function builtinFormatIdOf(code) {
|
|
16728
16777
|
const id = builtinFormatId(code);
|
package/dist/teams/index.mjs
CHANGED
|
@@ -7260,8 +7260,10 @@ function usedRange(sheet) {
|
|
|
7260
7260
|
if (maxRow < 0) return void 0;
|
|
7261
7261
|
return { start: { row: minRow, col: minCol }, end: { row: maxRow, col: maxCol } };
|
|
7262
7262
|
}
|
|
7263
|
+
var getCell;
|
|
7263
7264
|
var init_cells = __esm({
|
|
7264
7265
|
"xlsx/cells.ts"() {
|
|
7266
|
+
getCell = (sheet, row2, col) => sheet.rows.get(row2)?.get(col);
|
|
7265
7267
|
}
|
|
7266
7268
|
});
|
|
7267
7269
|
|
|
@@ -12180,6 +12182,72 @@ var init_criteria = __esm({
|
|
|
12180
12182
|
}
|
|
12181
12183
|
});
|
|
12182
12184
|
|
|
12185
|
+
// xlsx/styles.ts
|
|
12186
|
+
function styleKey(style2) {
|
|
12187
|
+
return JSON.stringify(sortKeys(style2));
|
|
12188
|
+
}
|
|
12189
|
+
function sortKeys(value) {
|
|
12190
|
+
if (Array.isArray(value)) return value.map(sortKeys);
|
|
12191
|
+
if (value && typeof value === "object") {
|
|
12192
|
+
const out = {};
|
|
12193
|
+
for (const key of Object.keys(value).sort()) {
|
|
12194
|
+
const entry3 = value[key];
|
|
12195
|
+
if (entry3 !== void 0) out[key] = sortKeys(entry3);
|
|
12196
|
+
}
|
|
12197
|
+
return out;
|
|
12198
|
+
}
|
|
12199
|
+
return value;
|
|
12200
|
+
}
|
|
12201
|
+
function styleAt(workbook, styleId) {
|
|
12202
|
+
const style2 = workbook.styles[styleId ?? 0] ?? workbook.styles[0];
|
|
12203
|
+
if (!style2) throw new Error("Workbook has no default cell style");
|
|
12204
|
+
return style2;
|
|
12205
|
+
}
|
|
12206
|
+
var init_styles = __esm({
|
|
12207
|
+
"xlsx/styles.ts"() {
|
|
12208
|
+
}
|
|
12209
|
+
});
|
|
12210
|
+
|
|
12211
|
+
// xlsx/display-text.ts
|
|
12212
|
+
function displayText(workbook, cell) {
|
|
12213
|
+
if (!cell || cell.value === null) return "";
|
|
12214
|
+
const value = cell.value;
|
|
12215
|
+
if (isCellError(value)) return value.error;
|
|
12216
|
+
if (typeof value === "boolean") return value ? "TRUE" : "FALSE";
|
|
12217
|
+
if (cell.richText && typeof value === "string") return value;
|
|
12218
|
+
return formatValue(value, styleAt(workbook, cell.styleId).numFmt, {
|
|
12219
|
+
date1904: workbook.date1904
|
|
12220
|
+
}).text;
|
|
12221
|
+
}
|
|
12222
|
+
var init_display_text = __esm({
|
|
12223
|
+
"xlsx/display-text.ts"() {
|
|
12224
|
+
init_model();
|
|
12225
|
+
init_numfmt();
|
|
12226
|
+
init_styles();
|
|
12227
|
+
}
|
|
12228
|
+
});
|
|
12229
|
+
|
|
12230
|
+
// xlsx/filter-rows.ts
|
|
12231
|
+
function rowMatchesFilter(workbook, sheet, row2, filter2) {
|
|
12232
|
+
return (filter2.columns ?? []).every((column) => {
|
|
12233
|
+
if (!column.values && !column.blank) return true;
|
|
12234
|
+
const text = displayText(workbook, getCell(sheet, row2, filter2.range.start.col + column.offset));
|
|
12235
|
+
return text === "" ? !!column.blank : (column.values ?? []).includes(text);
|
|
12236
|
+
});
|
|
12237
|
+
}
|
|
12238
|
+
function isFilteredRow(workbook, sheet, row2) {
|
|
12239
|
+
const info = sheet.rowInfo.get(row2);
|
|
12240
|
+
if (info?.filteredOut !== void 0) return info.filteredOut;
|
|
12241
|
+
const filter2 = sheet.autoFilter;
|
|
12242
|
+
return !!info?.hidden && !!filter2 && row2 > filter2.range.start.row && row2 <= filter2.range.end.row && !rowMatchesFilter(workbook, sheet, row2, filter2);
|
|
12243
|
+
}
|
|
12244
|
+
var init_filter_rows = __esm({
|
|
12245
|
+
"xlsx/filter-rows.ts"() {
|
|
12246
|
+
init_cells();
|
|
12247
|
+
init_display_text();
|
|
12248
|
+
}
|
|
12249
|
+
});
|
|
12250
|
+
|
|
12183
12251
|
// xlsx/formula/functions/math-sum.ts
|
|
12184
12252
|
function sumProduct(ctx, args) {
|
|
12185
12253
|
const matrices = args.map((a2) => ctx.toMatrix(a2));
|
|
@@ -12214,7 +12282,7 @@ function pairwise(ctx, args, fn) {
|
|
|
12214
12282
|
}
|
|
12215
12283
|
return total2;
|
|
12216
12284
|
}
|
|
12217
|
-
function subtotalValues(ctx, args, skipHidden, skipErrors, skipNested = true) {
|
|
12285
|
+
function subtotalValues(ctx, args, skipHidden, skipErrors, skipNested = true, skipFiltered = false) {
|
|
12218
12286
|
const out = [];
|
|
12219
12287
|
const host = ctx.frame.host;
|
|
12220
12288
|
for (const arg of args) {
|
|
@@ -12227,6 +12295,7 @@ function subtotalValues(ctx, args, skipHidden, skipErrors, skipNested = true) {
|
|
|
12227
12295
|
for (const area of arg.areas) {
|
|
12228
12296
|
const sheet = ctx.workbook.sheets[area.sheet];
|
|
12229
12297
|
host.forEachStored(area.sheet, area.range, (value, row2, col) => {
|
|
12298
|
+
if (skipFiltered && sheet && isFilteredRow(ctx.workbook, sheet, row2)) return;
|
|
12230
12299
|
if (skipHidden && sheet?.rowInfo.get(row2)?.hidden) return;
|
|
12231
12300
|
if (skipNested && SUBTOTAL_RE.test(host.cellFormula(area.sheet, row2, col) ?? "")) return;
|
|
12232
12301
|
if (skipErrors && isError(value)) return;
|
|
@@ -12288,6 +12357,7 @@ var init_math_sum = __esm({
|
|
|
12288
12357
|
init_criteria();
|
|
12289
12358
|
init_helpers();
|
|
12290
12359
|
init_stats_core();
|
|
12360
|
+
init_filter_rows();
|
|
12291
12361
|
C19 = "Math & Trig";
|
|
12292
12362
|
numbersOf = (values2) => values2.filter((v) => typeof v === "number");
|
|
12293
12363
|
SUBTOTAL_RE = /\b(?:_xlfn\.)?(?:SUBTOTAL|AGGREGATE)\s*\(/i;
|
|
@@ -12403,7 +12473,7 @@ var init_math_sum = __esm({
|
|
|
12403
12473
|
const code = int(args[0]);
|
|
12404
12474
|
const base = code > 100 ? code - 100 : code;
|
|
12405
12475
|
if (base < 1 || base > 11) fail(ERR.VALUE);
|
|
12406
|
-
return aggregate(base, subtotalValues(ctx, args.slice(1), code > 100, false));
|
|
12476
|
+
return aggregate(base, subtotalValues(ctx, args.slice(1), code > 100, false, true, true));
|
|
12407
12477
|
},
|
|
12408
12478
|
["value", "any"]
|
|
12409
12479
|
),
|
|
@@ -16675,27 +16745,6 @@ var init_shared_strings = __esm({
|
|
|
16675
16745
|
}
|
|
16676
16746
|
});
|
|
16677
16747
|
|
|
16678
|
-
// xlsx/styles.ts
|
|
16679
|
-
function styleKey(style2) {
|
|
16680
|
-
return JSON.stringify(sortKeys(style2));
|
|
16681
|
-
}
|
|
16682
|
-
function sortKeys(value) {
|
|
16683
|
-
if (Array.isArray(value)) return value.map(sortKeys);
|
|
16684
|
-
if (value && typeof value === "object") {
|
|
16685
|
-
const out = {};
|
|
16686
|
-
for (const key of Object.keys(value).sort()) {
|
|
16687
|
-
const entry3 = value[key];
|
|
16688
|
-
if (entry3 !== void 0) out[key] = sortKeys(entry3);
|
|
16689
|
-
}
|
|
16690
|
-
return out;
|
|
16691
|
-
}
|
|
16692
|
-
return value;
|
|
16693
|
-
}
|
|
16694
|
-
var init_styles = __esm({
|
|
16695
|
-
"xlsx/styles.ts"() {
|
|
16696
|
-
}
|
|
16697
|
-
});
|
|
16698
|
-
|
|
16699
16748
|
// xlsx/read/builtin-formats.ts
|
|
16700
16749
|
function builtinFormatIdOf(code) {
|
|
16701
16750
|
const id = builtinFormatId(code);
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { type VisioTextRangesEdit } from './edit-text-range-commands.js';
|
|
2
|
+
export type { VisioTextRange, VisioTextRangesEdit } from './edit-text-range-commands.js';
|
|
1
3
|
import { type VisioResizeAnchor } from './resize-anchor.js';
|
|
2
4
|
export type { VisioResizeAnchor } from './resize-anchor.js';
|
|
3
5
|
import { type VisioDuplicateShapesEdit } from './edit-duplicate-commands.js';
|
|
@@ -90,8 +92,15 @@ export interface VisioPageDelete {
|
|
|
90
92
|
type: 'delete-page';
|
|
91
93
|
pageId: string;
|
|
92
94
|
}
|
|
93
|
-
|
|
94
|
-
export
|
|
95
|
+
/** Physical page inches. Select fixed custom mode; printer paper and shape positions are retained. */
|
|
96
|
+
export interface VisioPageSizeEdit {
|
|
97
|
+
type: 'set-page-size';
|
|
98
|
+
pageId: string;
|
|
99
|
+
width: number;
|
|
100
|
+
height: number;
|
|
101
|
+
}
|
|
102
|
+
export type VisioPageEdit = VisioPageInsert | VisioPageReorder | VisioPageRename | VisioPageDelete | VisioPageSizeEdit;
|
|
103
|
+
export type VisioEdit = VisioTextEdit | VisioTextRangesEdit | VisioGeometryEdit | VisioPageEdit | VisioFormatEdit | VisioDuplicateShapesEdit | VisioPasteShapesEdit | VisioShapeOrderEdit;
|
|
95
104
|
export declare const isVisioPageEdit: (edit: VisioEdit) => edit is VisioPageEdit;
|
|
96
105
|
/** Potential direct changes used by both package and master dependency admission. */
|
|
97
106
|
export declare function geometryChangedCells(edit: VisioGeometryEdit): string[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"edit-commands.d.ts","sourceRoot":"","sources":["../../visio/edit-commands.ts"],"names":[],"mappings":"AACA,OAAO,EAAwB,KAAK,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAC/E,YAAY,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,EAA2B,KAAK,wBAAwB,EAAE,MAAM,2BAA2B,CAAC;AACnG,YAAY,EAAE,wBAAwB,EAAE,MAAM,2BAA2B,CAAC;AAC1E,OAAO,EAAuB,KAAK,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AACvF,YAAY,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAClE,OAAO,EAGN,KAAK,eAAe,EACpB,MAAM,4BAA4B,CAAC;AACpC,YAAY,EACX,eAAe,EACf,mBAAmB,EACnB,oBAAoB,GACpB,MAAM,4BAA4B,CAAC;AAEpC,MAAM,WAAW,mBAAmB;IACnC,IAAI,EAAE,eAAe,C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SizeEdit } from './edit-commands.js';
|
|
3
|
+
/** Set physical dimensions and explicit fixed/custom mode, preserving shapes and printer settings. */
|
|
4
|
+
export declare function setVisioPageSize(pkg: VisioPackage, pagesPart: string, pages: Element, pagePaths: ReadonlyMap<string, string>, dirty: Map<string, Element>, command: VisioPageSizeEdit, check: () => void): Promise<void>;
|
|
5
|
+
//# sourceMappingURL=edit-page-size.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"edit-page-size.d.ts","sourceRoot":"","sources":["../../visio/edit-page-size.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAC9C,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AA8IzD,sGAAsG;AACtG,wBAAsB,gBAAgB,CACrC,GAAG,EAAE,YAAY,EACjB,SAAS,EAAE,MAAM,EACjB,KAAK,EAAE,OAAO,EACd,SAAS,EAAE,WAAW,CAAC,MAAM,EAAE,MAAM,CAAC,EACtC,KAAK,EAAE,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC,EAC3B,OAAO,EAAE,iBAAiB,EAC1B,KAAK,EAAE,MAAM,IAAI,GACf,OAAO,CAAC,IAAI,CAAC,CA6Ef"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"edit-pages.d.ts","sourceRoot":"","sources":["../../visio/edit-pages.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AACzC,OAAO,EAAoB,KAAK,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"edit-pages.d.ts","sourceRoot":"","sources":["../../visio/edit-pages.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AACzC,OAAO,EAAoB,KAAK,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAU7E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,QAAQ,CAAC;AAS7C,4FAA4F;AAC5F,wBAAsB,aAAa,CAClC,QAAQ,EAAE,UAAU,EACpB,GAAG,EAAE,YAAY,EACjB,KAAK,EAAE,GAAG,CAAC,MAAM,EAAE,UAAU,CAAC,EAC9B,QAAQ,EAAE,SAAS,aAAa,EAAE,EAClC,MAAM,EAAE,kBAAkB,EAC1B,SAAS,EAAE,MAAM,EACjB,QAAQ,EAAE,MAAM,EAChB,KAAK,EAAE,MAAM,IAAI,GACf,OAAO,CAAC,cAAc,CAAC,CAsLzB"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export interface VisioTextRange {
|
|
2
|
+
/** Zero-based UTF16 scalar boundaries in the complete original logical text. */
|
|
3
|
+
start: number;
|
|
4
|
+
end: number;
|
|
5
|
+
text: string;
|
|
6
|
+
}
|
|
7
|
+
export interface VisioTextRangesEdit {
|
|
8
|
+
type: 'replace-text-ranges';
|
|
9
|
+
pageId: string;
|
|
10
|
+
shapeId: string;
|
|
11
|
+
/** Complete logical text captured with the ranges; stale source offsets are rejected. */
|
|
12
|
+
expectedText: string;
|
|
13
|
+
/** Ascending, nonempty selected spans inside paragraphs; replacement text may be empty.
|
|
14
|
+
* Fields, paragraph break changes, competing character markers and empty rich paragraphs refuse.
|
|
15
|
+
*/
|
|
16
|
+
ranges: readonly VisioTextRange[];
|
|
17
|
+
}
|
|
18
|
+
export declare function textRangeBoundary(text: string, offset: number): boolean;
|
|
19
|
+
/** Snapshot before any await; commands never retain caller-owned range arrays or objects. */
|
|
20
|
+
export declare function snapshotTextRanges(edit: VisioTextRangesEdit, consume?: (value: unknown) => string): VisioTextRangesEdit;
|
|
21
|
+
//# sourceMappingURL=edit-text-range-commands.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"edit-text-range-commands.d.ts","sourceRoot":"","sources":["../../visio/edit-text-range-commands.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,cAAc;IAC9B,gFAAgF;IAChF,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;CACb;AACD,MAAM,WAAW,mBAAmB;IACnC,IAAI,EAAE,qBAAqB,CAAC;IAC5B,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,yFAAyF;IACzF,YAAY,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,MAAM,EAAE,SAAS,cAAc,EAAE,CAAC;CAClC;AAGD,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAOvE;AACD,6FAA6F;AAC7F,wBAAgB,kBAAkB,CACjC,IAAI,EAAE,mBAAmB,EACzB,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,MAAM,GAClC,mBAAmB,CA8CrB"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { VisioTextRangesEdit } from './edit-text-range-commands.js';
|
|
2
|
+
/** Source token surgery preserves marker nodes and stored row identities. */
|
|
3
|
+
export declare function textRangeNodes(node: Element, edit: VisioTextRangesEdit): {
|
|
4
|
+
changed: boolean;
|
|
5
|
+
nodes: Node[];
|
|
6
|
+
};
|
|
7
|
+
//# sourceMappingURL=edit-text-range-plan.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"edit-text-range-plan.d.ts","sourceRoot":"","sources":["../../visio/edit-text-range-plan.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAEtE,6EAA6E;AAC7E,wBAAgB,cAAc,CAC7B,IAAI,EAAE,OAAO,EACb,IAAI,EAAE,mBAAmB,GACvB;IAAE,OAAO,EAAE,OAAO,CAAC;IAAC,KAAK,EAAE,IAAI,EAAE,CAAA;CAAE,CAiHrC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { VisioPackage } from './package.js';
|
|
2
|
+
import type { VisioTextRangesEdit } from './edit-text-range-commands.js';
|
|
3
|
+
export declare function replaceScopedTextRanges(pkg: VisioPackage, pagePaths: ReadonlySet<string>, roots: ReadonlyMap<string, Element>, document: Element, edit: VisioTextRangesEdit, check: () => void): Promise<boolean>;
|
|
4
|
+
//# sourceMappingURL=edit-text-ranges.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"edit-text-ranges.d.ts","sourceRoot":"","sources":["../../visio/edit-text-ranges.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAC9C,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAStE,wBAAsB,uBAAuB,CAC5C,GAAG,EAAE,YAAY,EACjB,SAAS,EAAE,WAAW,CAAC,MAAM,CAAC,EAC9B,KAAK,EAAE,WAAW,CAAC,MAAM,EAAE,OAAO,CAAC,EACnC,QAAQ,EAAE,OAAO,EACjB,IAAI,EAAE,mBAAmB,EACzB,KAAK,EAAE,MAAM,IAAI,GACf,OAAO,CAAC,OAAO,CAAC,CAmDlB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"edit-text-target.d.ts","sourceRoot":"","sources":["../../visio/edit-text-target.ts"],"names":[],"mappings":"AAIA,yEAAyE;AACzE,wBAAgB,eAAe,CAC9B,IAAI,EAAE,OAAO,EACb,QAAQ,EAAE,OAAO,EACjB,OAAO,EAAE,MAAM,EACf,KAAK,EAAE,MAAM,IAAI,GACf,OAAO,CA2BT"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"edit-text.d.ts","sourceRoot":"","sources":["../../visio/edit-text.ts"],"names":[],"mappings":"AACA,OAAO,EAAQ,KAAK,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAMjE,wBAAsB,gBAAgB,CACrC,IAAI,EAAE,OAAO,EACb,QAAQ,EAAE,OAAO,EACjB,OAAO,EAAE,MAAM,EACf,IAAI,EAAE,MAAM,EACZ,KAAK,EAAE,MAAM,IAAI,EACjB,kBAAkB,EAAE,CAAC,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,KAAK,OAAO,CAAC,IAAI,CAAC,GAClE,OAAO,CAAC,OAAO,CAAC,
|
|
1
|
+
{"version":3,"file":"edit-text.d.ts","sourceRoot":"","sources":["../../visio/edit-text.ts"],"names":[],"mappings":"AACA,OAAO,EAAQ,KAAK,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAMjE,wBAAsB,gBAAgB,CACrC,IAAI,EAAE,OAAO,EACb,QAAQ,EAAE,OAAO,EACjB,OAAO,EAAE,MAAM,EACf,IAAI,EAAE,MAAM,EACZ,KAAK,EAAE,MAAM,IAAI,EACjB,kBAAkB,EAAE,CAAC,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,KAAK,OAAO,CAAC,IAAI,CAAC,GAClE,OAAO,CAAC,OAAO,CAAC,CAgBlB;AAED,wBAAgB,kBAAkB,CACjC,IAAI,EAAE,OAAO,EACb,MAAM,EAAE,kBAAkB,EAC1B,KAAK,EAAE,MAAM,IAAI,GACf;IAAE,KAAK,EAAE,UAAU,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CA2BtC"}
|
package/dist/visio/edit.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type VisioPackageLimits } from './package-common.js';
|
|
2
2
|
import { type VisioEdit } from './edit-commands.js';
|
|
3
|
-
export type { VisioEdit, VisioTextEdit, VisioGeometryEdit, VisioPageInsert, VisioPageReorder, VisioPageRename, VisioPageDelete, VisioPageEdit, VisioFormatEdit, VisioTextFormatEdit, VisioShapeFormatEdit, VisioShapeOrderEdit, VisioDuplicateShapesEdit, VisioPasteShapesEdit, VisioResizeAnchor, } from './edit-commands.js';
|
|
3
|
+
export type { VisioEdit, VisioTextEdit, VisioTextRange, VisioTextRangesEdit, VisioGeometryEdit, VisioPageInsert, VisioPageReorder, VisioPageRename, VisioPageDelete, VisioPageSizeEdit, VisioPageEdit, VisioFormatEdit, VisioTextFormatEdit, VisioShapeFormatEdit, VisioShapeOrderEdit, VisioDuplicateShapesEdit, VisioPasteShapesEdit, VisioResizeAnchor, } from './edit-commands.js';
|
|
4
4
|
export interface EditVsdxOptions {
|
|
5
5
|
limits?: Partial<VisioPackageLimits>;
|
|
6
6
|
maxEdits?: number;
|
package/dist/visio/edit.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"edit.d.ts","sourceRoot":"","sources":["../../visio/edit.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkB,KAAK,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"edit.d.ts","sourceRoot":"","sources":["../../visio/edit.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkB,KAAK,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAM3E,OAAO,EAGN,KAAK,SAAS,EAEd,MAAM,iBAAiB,CAAC;AAYzB,YAAY,EACX,SAAS,EACT,aAAa,EACb,cAAc,EACd,mBAAmB,EACnB,iBAAiB,EACjB,eAAe,EACf,gBAAgB,EAChB,eAAe,EACf,eAAe,EACf,iBAAiB,EACjB,aAAa,EACb,eAAe,EACf,mBAAmB,EACnB,oBAAoB,EACpB,mBAAmB,EACnB,wBAAwB,EACxB,oBAAoB,EACpB,iBAAiB,GACjB,MAAM,iBAAiB,CAAC;AAEzB,MAAM,WAAW,eAAe;IAC/B,MAAM,CAAC,EAAE,OAAO,CAAC,kBAAkB,CAAC,CAAC;IACrC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,cAAc,CAAC,EAAE,MAAM,CAAC;CACxB;AACD,MAAM,WAAW,cAAc;IAC9B,KAAK,EAAE,UAAU,CAAC;IAClB,YAAY,EAAE,SAAS,MAAM,EAAE,CAAC;IAChC,WAAW,EAAE,SAAS;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;CAC1D;AAMD;;GAEG;AACH,wBAAsB,QAAQ,CAC7B,KAAK,EAAE,UAAU,GAAG,WAAW,EAC/B,KAAK,EAAE,SAAS,SAAS,EAAE,EAC3B,OAAO,GAAE,eAAoB,GAC3B,OAAO,CAAC,cAAc,CAAC,CA4PzB"}
|