@cj-tech-master/excelts 5.1.17 → 5.1.18
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/browser/modules/archive/unzip/stream.base.js +11 -4
- package/dist/browser/modules/archive/unzip/stream.browser.js +3 -3
- package/dist/browser/modules/excel/anchor.js +2 -5
- package/dist/browser/modules/excel/cell.js +11 -9
- package/dist/browser/modules/excel/column.js +2 -2
- package/dist/browser/modules/excel/defined-names.js +2 -2
- package/dist/browser/modules/excel/note.js +1 -1
- package/dist/browser/modules/excel/row.js +7 -4
- package/dist/browser/modules/excel/stream/worksheet-reader.js +4 -1
- package/dist/browser/modules/excel/table.d.ts +20 -1
- package/dist/browser/modules/excel/table.js +118 -15
- package/dist/browser/modules/excel/utils/sheet-utils.js +1 -1
- package/dist/browser/modules/excel/worksheet.d.ts +1 -1
- package/dist/browser/modules/excel/worksheet.js +5 -4
- package/dist/browser/modules/excel/xlsx/xform/book/workbook-xform.d.ts +3 -0
- package/dist/browser/modules/excel/xlsx/xform/drawing/ctrl-prop-xform.js +1 -1
- package/dist/browser/modules/excel/xlsx/xform/drawing/vml-drawing-xform.js +6 -5
- package/dist/browser/modules/excel/xlsx/xform/sheet/worksheet-xform.d.ts +3 -0
- package/dist/browser/modules/excel/xlsx/xform/style/styles-xform.d.ts +4 -0
- package/dist/browser/modules/stream/streams.browser.d.ts +5 -5
- package/dist/browser/modules/stream/streams.browser.js +12 -4
- package/dist/browser/utils/utils.base.js +1 -1
- package/dist/cjs/modules/archive/unzip/stream.base.js +11 -4
- package/dist/cjs/modules/archive/unzip/stream.browser.js +3 -3
- package/dist/cjs/modules/excel/anchor.js +2 -5
- package/dist/cjs/modules/excel/cell.js +11 -9
- package/dist/cjs/modules/excel/column.js +2 -2
- package/dist/cjs/modules/excel/defined-names.js +2 -2
- package/dist/cjs/modules/excel/note.js +1 -1
- package/dist/cjs/modules/excel/row.js +7 -4
- package/dist/cjs/modules/excel/stream/worksheet-reader.js +4 -1
- package/dist/cjs/modules/excel/table.js +118 -14
- package/dist/cjs/modules/excel/utils/sheet-utils.js +1 -1
- package/dist/cjs/modules/excel/worksheet.js +5 -4
- package/dist/cjs/modules/excel/xlsx/xform/drawing/ctrl-prop-xform.js +1 -1
- package/dist/cjs/modules/excel/xlsx/xform/drawing/vml-drawing-xform.js +6 -5
- package/dist/cjs/modules/stream/streams.browser.js +12 -4
- package/dist/cjs/utils/utils.base.js +1 -1
- package/dist/esm/modules/archive/unzip/stream.base.js +11 -4
- package/dist/esm/modules/archive/unzip/stream.browser.js +3 -3
- package/dist/esm/modules/excel/anchor.js +2 -5
- package/dist/esm/modules/excel/cell.js +11 -9
- package/dist/esm/modules/excel/column.js +2 -2
- package/dist/esm/modules/excel/defined-names.js +2 -2
- package/dist/esm/modules/excel/note.js +1 -1
- package/dist/esm/modules/excel/row.js +7 -4
- package/dist/esm/modules/excel/stream/worksheet-reader.js +4 -1
- package/dist/esm/modules/excel/table.js +118 -15
- package/dist/esm/modules/excel/utils/sheet-utils.js +1 -1
- package/dist/esm/modules/excel/worksheet.js +5 -4
- package/dist/esm/modules/excel/xlsx/xform/drawing/ctrl-prop-xform.js +1 -1
- package/dist/esm/modules/excel/xlsx/xform/drawing/vml-drawing-xform.js +6 -5
- package/dist/esm/modules/stream/streams.browser.js +12 -4
- package/dist/esm/utils/utils.base.js +1 -1
- package/dist/iife/excelts.iife.js +724 -888
- package/dist/iife/excelts.iife.js.map +1 -1
- package/dist/iife/excelts.iife.min.js +24 -23
- package/dist/types/modules/excel/table.d.ts +20 -1
- package/dist/types/modules/excel/worksheet.d.ts +1 -1
- package/dist/types/modules/excel/xlsx/xform/book/workbook-xform.d.ts +3 -0
- package/dist/types/modules/excel/xlsx/xform/sheet/worksheet-xform.d.ts +3 -0
- package/dist/types/modules/excel/xlsx/xform/style/styles-xform.d.ts +4 -0
- package/dist/types/modules/stream/streams.browser.d.ts +5 -5
- package/package.json +16 -16
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
* @cj-tech-master/excelts v5.1.18
|
|
3
|
+
* TypeScript Excel Workbook Manager - Read and Write xlsx and csv Files.
|
|
4
|
+
* (c) 2026 cjnoname
|
|
5
|
+
* Released under the MIT License
|
|
6
|
+
*/
|
|
7
7
|
var ExcelTS = (function(exports) {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
//#region src/modules/excel/utils/col-cache.ts
|
|
8
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
9
|
+
//#region src/modules/excel/utils/col-cache.ts
|
|
11
10
|
const addressRegex = /^[A-Z]+\d+$/;
|
|
12
11
|
const colCache = {
|
|
13
12
|
_dictionary: [
|
|
@@ -237,9 +236,8 @@ var ExcelTS = (function(exports) {
|
|
|
237
236
|
return col >= left && col <= right && row >= top && row <= bottom;
|
|
238
237
|
}
|
|
239
238
|
};
|
|
240
|
-
|
|
241
|
-
//#
|
|
242
|
-
//#region src/modules/excel/range.ts
|
|
239
|
+
//#endregion
|
|
240
|
+
//#region src/modules/excel/range.ts
|
|
243
241
|
var Range = class Range {
|
|
244
242
|
constructor(...args) {
|
|
245
243
|
this.model = {
|
|
@@ -435,9 +433,8 @@ var ExcelTS = (function(exports) {
|
|
|
435
433
|
for (let col = this.left; col <= this.right; col++) for (let row = this.top; row <= this.bottom; row++) cb(colCache.encodeAddress(row, col), row, col);
|
|
436
434
|
}
|
|
437
435
|
};
|
|
438
|
-
|
|
439
|
-
//#
|
|
440
|
-
//#region src/modules/excel/enums.ts
|
|
436
|
+
//#endregion
|
|
437
|
+
//#region src/modules/excel/enums.ts
|
|
441
438
|
let ValueType = /* @__PURE__ */ function(ValueType) {
|
|
442
439
|
ValueType[ValueType["Null"] = 0] = "Null";
|
|
443
440
|
ValueType[ValueType["Merge"] = 1] = "Merge";
|
|
@@ -497,9 +494,8 @@ var ExcelTS = (function(exports) {
|
|
|
497
494
|
ReadingOrder,
|
|
498
495
|
ErrorValue
|
|
499
496
|
};
|
|
500
|
-
|
|
501
|
-
//#
|
|
502
|
-
//#region src/modules/excel/utils/under-dash.ts
|
|
497
|
+
//#endregion
|
|
498
|
+
//#region src/modules/excel/utils/under-dash.ts
|
|
503
499
|
const escapeHtmlMap = {
|
|
504
500
|
"\"": """,
|
|
505
501
|
"&": "&",
|
|
@@ -567,9 +563,8 @@ var ExcelTS = (function(exports) {
|
|
|
567
563
|
}
|
|
568
564
|
return target;
|
|
569
565
|
}
|
|
570
|
-
|
|
571
|
-
//#
|
|
572
|
-
//#region src/modules/excel/note.ts
|
|
566
|
+
//#endregion
|
|
567
|
+
//#region src/modules/excel/note.ts
|
|
573
568
|
var Note = class Note {
|
|
574
569
|
static {
|
|
575
570
|
this.DEFAULT_CONFIGS = {
|
|
@@ -596,7 +591,7 @@ var ExcelTS = (function(exports) {
|
|
|
596
591
|
this.note = note;
|
|
597
592
|
}
|
|
598
593
|
get model() {
|
|
599
|
-
let value
|
|
594
|
+
let value;
|
|
600
595
|
switch (typeof this.note) {
|
|
601
596
|
case "string":
|
|
602
597
|
value = {
|
|
@@ -625,9 +620,8 @@ var ExcelTS = (function(exports) {
|
|
|
625
620
|
return note;
|
|
626
621
|
}
|
|
627
622
|
};
|
|
628
|
-
|
|
629
|
-
//#
|
|
630
|
-
//#region src/modules/excel/utils/shared-formula.ts
|
|
623
|
+
//#endregion
|
|
624
|
+
//#region src/modules/excel/utils/shared-formula.ts
|
|
631
625
|
const replacementCandidateRx = /(([a-z_\-0-9]*)!)?([a-z0-9_$]{2,})([(])?/gi;
|
|
632
626
|
const CRrx = /^([$])?([a-z]+)([$])?([1-9][0-9]*)$/i;
|
|
633
627
|
function slideFormula(formula, fromCell, toCell) {
|
|
@@ -651,9 +645,8 @@ var ExcelTS = (function(exports) {
|
|
|
651
645
|
return refMatch;
|
|
652
646
|
});
|
|
653
647
|
}
|
|
654
|
-
|
|
655
|
-
//#
|
|
656
|
-
//#region src/modules/excel/cell.ts
|
|
648
|
+
//#endregion
|
|
649
|
+
//#region src/modules/excel/cell.ts
|
|
657
650
|
const hasOwnKeys = (v) => !!v && (typeof v !== "object" || Object.keys(v).length > 0);
|
|
658
651
|
var Cell = class Cell {
|
|
659
652
|
static {
|
|
@@ -676,11 +669,11 @@ var ExcelTS = (function(exports) {
|
|
|
676
669
|
return this._row.worksheet.workbook;
|
|
677
670
|
}
|
|
678
671
|
destroy() {
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
672
|
+
this.style = void 0;
|
|
673
|
+
this._value = void 0;
|
|
674
|
+
this._row = void 0;
|
|
675
|
+
this._column = void 0;
|
|
676
|
+
this._address = void 0;
|
|
684
677
|
}
|
|
685
678
|
get numFmt() {
|
|
686
679
|
return this.style.numFmt;
|
|
@@ -777,7 +770,7 @@ var ExcelTS = (function(exports) {
|
|
|
777
770
|
}
|
|
778
771
|
isMergedTo(master) {
|
|
779
772
|
if (this._value.type !== Cell.Types.Merge) return false;
|
|
780
|
-
return this._value.isMergedTo(master);
|
|
773
|
+
return this._value.isMergedTo ? this._value.isMergedTo(master) : false;
|
|
781
774
|
}
|
|
782
775
|
get master() {
|
|
783
776
|
if (this.type === Cell.Types.Merge) return this._value.master;
|
|
@@ -838,7 +831,7 @@ var ExcelTS = (function(exports) {
|
|
|
838
831
|
return this._value.result;
|
|
839
832
|
}
|
|
840
833
|
get formulaType() {
|
|
841
|
-
return this._value.formulaType;
|
|
834
|
+
return this._value.formulaType ?? Enums.FormulaType.None;
|
|
842
835
|
}
|
|
843
836
|
get fullAddress() {
|
|
844
837
|
const { worksheet } = this._row;
|
|
@@ -1171,7 +1164,7 @@ var ExcelTS = (function(exports) {
|
|
|
1171
1164
|
this._master.releaseMergeRef();
|
|
1172
1165
|
}
|
|
1173
1166
|
toString() {
|
|
1174
|
-
return this.value.toString();
|
|
1167
|
+
return this.value != null ? this.value.toString() : "";
|
|
1175
1168
|
}
|
|
1176
1169
|
};
|
|
1177
1170
|
var FormulaValue = class {
|
|
@@ -1262,7 +1255,7 @@ var ExcelTS = (function(exports) {
|
|
|
1262
1255
|
if (!this._translatedFormula && this.model.sharedFormula) {
|
|
1263
1256
|
const { worksheet } = this.cell;
|
|
1264
1257
|
const master = worksheet.findCell(this.model.sharedFormula);
|
|
1265
|
-
this._translatedFormula = master && slideFormula(master.formula, master.address, this.model.address);
|
|
1258
|
+
this._translatedFormula = master && master.formula ? slideFormula(master.formula, master.address, this.model.address) : void 0;
|
|
1266
1259
|
}
|
|
1267
1260
|
return this._translatedFormula;
|
|
1268
1261
|
}
|
|
@@ -1526,9 +1519,8 @@ var ExcelTS = (function(exports) {
|
|
|
1526
1519
|
return new T(cell, value);
|
|
1527
1520
|
}
|
|
1528
1521
|
};
|
|
1529
|
-
|
|
1530
|
-
//#
|
|
1531
|
-
//#region src/modules/excel/utils/copy-style.ts
|
|
1522
|
+
//#endregion
|
|
1523
|
+
//#region src/modules/excel/utils/copy-style.ts
|
|
1532
1524
|
const oneDepthCopy = (obj, nestKeys) => ({
|
|
1533
1525
|
...obj,
|
|
1534
1526
|
...nestKeys.reduce((memo, key) => {
|
|
@@ -1565,9 +1557,8 @@ var ExcelTS = (function(exports) {
|
|
|
1565
1557
|
}
|
|
1566
1558
|
return copied;
|
|
1567
1559
|
};
|
|
1568
|
-
|
|
1569
|
-
//#
|
|
1570
|
-
//#region src/modules/excel/row.ts
|
|
1560
|
+
//#endregion
|
|
1561
|
+
//#region src/modules/excel/row.ts
|
|
1571
1562
|
var Row = class {
|
|
1572
1563
|
constructor(worksheet, number) {
|
|
1573
1564
|
this._worksheet = worksheet;
|
|
@@ -1600,9 +1591,9 @@ var ExcelTS = (function(exports) {
|
|
|
1600
1591
|
* Helps GC by breaking cyclic references
|
|
1601
1592
|
*/
|
|
1602
1593
|
destroy() {
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1594
|
+
this._worksheet = void 0;
|
|
1595
|
+
this._cells = void 0;
|
|
1596
|
+
this.style = void 0;
|
|
1606
1597
|
}
|
|
1607
1598
|
findCell(colNumber) {
|
|
1608
1599
|
return this._cells[colNumber - 1];
|
|
@@ -1849,7 +1840,7 @@ var ExcelTS = (function(exports) {
|
|
|
1849
1840
|
this._outlineLevel = value;
|
|
1850
1841
|
}
|
|
1851
1842
|
get collapsed() {
|
|
1852
|
-
return !!(this._outlineLevel && this._outlineLevel >= this._worksheet.properties.outlineLevelRow);
|
|
1843
|
+
return !!(this._outlineLevel && this._outlineLevel >= (this._worksheet.properties.outlineLevelRow ?? 0));
|
|
1853
1844
|
}
|
|
1854
1845
|
get model() {
|
|
1855
1846
|
const cells = [];
|
|
@@ -1900,6 +1891,7 @@ var ExcelTS = (function(exports) {
|
|
|
1900
1891
|
};
|
|
1901
1892
|
}
|
|
1902
1893
|
previousAddress = address;
|
|
1894
|
+
if (!address) break;
|
|
1903
1895
|
const cell = this.getCellEx(address);
|
|
1904
1896
|
cell.model = cellModel;
|
|
1905
1897
|
break;
|
|
@@ -1916,9 +1908,8 @@ var ExcelTS = (function(exports) {
|
|
|
1916
1908
|
this.style = value.style && JSON.parse(JSON.stringify(value.style)) || {};
|
|
1917
1909
|
}
|
|
1918
1910
|
};
|
|
1919
|
-
|
|
1920
|
-
//#
|
|
1921
|
-
//#region src/modules/excel/column.ts
|
|
1911
|
+
//#endregion
|
|
1912
|
+
//#region src/modules/excel/column.ts
|
|
1922
1913
|
const DEFAULT_COLUMN_WIDTH = 9;
|
|
1923
1914
|
/**
|
|
1924
1915
|
* Column defines the column properties for 1 column.
|
|
@@ -2008,7 +1999,7 @@ var ExcelTS = (function(exports) {
|
|
|
2008
1999
|
set key(value) {
|
|
2009
2000
|
if ((this._key && this._worksheet.getColumnKey(this._key)) === this) this._worksheet.deleteColumnKey(this._key);
|
|
2010
2001
|
this._key = value;
|
|
2011
|
-
if (value) this._worksheet.setColumnKey(
|
|
2002
|
+
if (value) this._worksheet.setColumnKey(value, this);
|
|
2012
2003
|
}
|
|
2013
2004
|
/**
|
|
2014
2005
|
* Hides the column
|
|
@@ -2032,7 +2023,7 @@ var ExcelTS = (function(exports) {
|
|
|
2032
2023
|
* Indicate the collapsed state based on outlineLevel
|
|
2033
2024
|
*/
|
|
2034
2025
|
get collapsed() {
|
|
2035
|
-
return !!(this._outlineLevel && this._outlineLevel >= this._worksheet.properties.outlineLevelCol);
|
|
2026
|
+
return !!(this._outlineLevel && this._outlineLevel >= (this._worksheet.properties.outlineLevelCol ?? 0));
|
|
2036
2027
|
}
|
|
2037
2028
|
toString() {
|
|
2038
2029
|
return JSON.stringify({
|
|
@@ -2209,9 +2200,8 @@ var ExcelTS = (function(exports) {
|
|
|
2209
2200
|
return columns.length ? columns : null;
|
|
2210
2201
|
}
|
|
2211
2202
|
};
|
|
2212
|
-
|
|
2213
|
-
//#
|
|
2214
|
-
//#region src/modules/excel/anchor.ts
|
|
2203
|
+
//#endregion
|
|
2204
|
+
//#region src/modules/excel/anchor.ts
|
|
2215
2205
|
function isAnchorModel(value) {
|
|
2216
2206
|
return typeof value === "object" && "nativeCol" in value && "nativeRow" in value && "nativeColOff" in value && "nativeRowOff" in value;
|
|
2217
2207
|
}
|
|
@@ -2270,7 +2260,8 @@ var ExcelTS = (function(exports) {
|
|
|
2270
2260
|
return this.worksheet && this.worksheet.getColumn(this.nativeCol + 1) && this.worksheet.getColumn(this.nativeCol + 1).isCustomWidth ? Math.floor(this.worksheet.getColumn(this.nativeCol + 1).width * 1e4) : 64e4;
|
|
2271
2261
|
}
|
|
2272
2262
|
get rowHeight() {
|
|
2273
|
-
|
|
2263
|
+
const height = this.worksheet?.getRow(this.nativeRow + 1)?.height;
|
|
2264
|
+
return height ? Math.floor(height * 1e4) : 18e4;
|
|
2274
2265
|
}
|
|
2275
2266
|
get model() {
|
|
2276
2267
|
return {
|
|
@@ -2290,9 +2281,8 @@ var ExcelTS = (function(exports) {
|
|
|
2290
2281
|
return new Anchor(worksheet ?? this.worksheet, this.model);
|
|
2291
2282
|
}
|
|
2292
2283
|
};
|
|
2293
|
-
|
|
2294
|
-
//#
|
|
2295
|
-
//#region src/modules/excel/image.ts
|
|
2284
|
+
//#endregion
|
|
2285
|
+
//#region src/modules/excel/image.ts
|
|
2296
2286
|
var Image = class Image {
|
|
2297
2287
|
constructor(worksheet, model) {
|
|
2298
2288
|
this.worksheet = worksheet;
|
|
@@ -2359,9 +2349,68 @@ var ExcelTS = (function(exports) {
|
|
|
2359
2349
|
return cloned;
|
|
2360
2350
|
}
|
|
2361
2351
|
};
|
|
2362
|
-
|
|
2363
|
-
//#
|
|
2364
|
-
|
|
2352
|
+
//#endregion
|
|
2353
|
+
//#region src/modules/excel/table.ts
|
|
2354
|
+
/**
|
|
2355
|
+
* Maximum length for an Excel defined name (and therefore table name).
|
|
2356
|
+
*/
|
|
2357
|
+
const MAX_TABLE_NAME_LENGTH = 255;
|
|
2358
|
+
/**
|
|
2359
|
+
* Matches an A1-style cell reference pattern like A1, Z99, XFD1048576.
|
|
2360
|
+
* Excel rejects table names that match this pattern.
|
|
2361
|
+
*/
|
|
2362
|
+
const CELL_REF_PATTERN = /^[A-Za-z]{1,3}\d+$/;
|
|
2363
|
+
/**
|
|
2364
|
+
* Matches an R1C1-style cell reference, e.g. R1C1, R100C200.
|
|
2365
|
+
* Must have at least one digit after R and at least one digit after C
|
|
2366
|
+
* to be considered a cell reference. Bare "RC" is NOT a cell reference.
|
|
2367
|
+
*/
|
|
2368
|
+
const R1C1_PATTERN = /^[Rr]\d+[Cc]\d+$/;
|
|
2369
|
+
/**
|
|
2370
|
+
* Single-character names that Excel reserves for row/column navigation.
|
|
2371
|
+
* Per Microsoft docs: "You cannot use the uppercase and lowercase characters
|
|
2372
|
+
* 'C', 'c', 'R', or 'r' as a defined name."
|
|
2373
|
+
*/
|
|
2374
|
+
const RESERVED_SINGLE_CHARS = new Set([
|
|
2375
|
+
"C",
|
|
2376
|
+
"c",
|
|
2377
|
+
"R",
|
|
2378
|
+
"r"
|
|
2379
|
+
]);
|
|
2380
|
+
/**
|
|
2381
|
+
* Sanitize a table name to comply with OOXML defined name rules
|
|
2382
|
+
* (ECMA-376, 4th edition, Part 1, §18.5.1.2).
|
|
2383
|
+
*
|
|
2384
|
+
* Rules enforced (per Microsoft documentation):
|
|
2385
|
+
* - First character must be a letter (any script), underscore (_), or backslash (\)
|
|
2386
|
+
* - Subsequent characters may be letters, digits, underscores, or periods (.)
|
|
2387
|
+
* - Backslash is only valid as the first character
|
|
2388
|
+
* - Spaces are replaced with underscores
|
|
2389
|
+
* - Other invalid characters are stripped
|
|
2390
|
+
* - Single-character names "C", "c", "R", "r" are prefixed with _
|
|
2391
|
+
* - Names that look like cell references (e.g. A1, R1C1) are prefixed with _
|
|
2392
|
+
* - Maximum 255 characters
|
|
2393
|
+
* - Empty result falls back to "_Table"
|
|
2394
|
+
*
|
|
2395
|
+
* This library applies these rules automatically so that generated files
|
|
2396
|
+
* always comply with the OOXML schema, avoiding Excel "repair" dialogs.
|
|
2397
|
+
*/
|
|
2398
|
+
function sanitizeTableName(name) {
|
|
2399
|
+
let sanitized = name.replace(/\s/g, "_");
|
|
2400
|
+
let leadingBackslash = false;
|
|
2401
|
+
if (sanitized.startsWith("\\")) {
|
|
2402
|
+
leadingBackslash = true;
|
|
2403
|
+
sanitized = sanitized.slice(1);
|
|
2404
|
+
}
|
|
2405
|
+
sanitized = sanitized.replace(/[^\p{L}\p{N}_.]/gu, "");
|
|
2406
|
+
if (leadingBackslash) sanitized = `\\${sanitized}`;
|
|
2407
|
+
if (sanitized.length > 0 && !/^[\p{L}_\\]/u.test(sanitized[0])) sanitized = `_${sanitized}`;
|
|
2408
|
+
if (sanitized.length > MAX_TABLE_NAME_LENGTH) sanitized = sanitized.slice(0, MAX_TABLE_NAME_LENGTH);
|
|
2409
|
+
if (sanitized.length === 0) return "_Table";
|
|
2410
|
+
if (sanitized.length === 1 && RESERVED_SINGLE_CHARS.has(sanitized)) sanitized = `_${sanitized}`;
|
|
2411
|
+
if (CELL_REF_PATTERN.test(sanitized) || R1C1_PATTERN.test(sanitized)) sanitized = `_${sanitized}`;
|
|
2412
|
+
return sanitized;
|
|
2413
|
+
}
|
|
2365
2414
|
var Column$1 = class {
|
|
2366
2415
|
constructor(table, column, index) {
|
|
2367
2416
|
this.table = table;
|
|
@@ -2472,14 +2521,18 @@ var ExcelTS = (function(exports) {
|
|
|
2472
2521
|
assign(table, "headerRow", true);
|
|
2473
2522
|
assign(table, "totalsRow", false);
|
|
2474
2523
|
assign(table, "style", {});
|
|
2475
|
-
|
|
2476
|
-
assign(
|
|
2477
|
-
assign(
|
|
2478
|
-
assign(
|
|
2479
|
-
assign(
|
|
2524
|
+
const style = table.style;
|
|
2525
|
+
assign(style, "theme", "TableStyleMedium2");
|
|
2526
|
+
assign(style, "showFirstColumn", false);
|
|
2527
|
+
assign(style, "showLastColumn", false);
|
|
2528
|
+
assign(style, "showRowStripes", false);
|
|
2529
|
+
assign(style, "showColumnStripes", false);
|
|
2530
|
+
if (table.name) table.name = sanitizeTableName(table.name);
|
|
2531
|
+
if (table.displayName) table.displayName = sanitizeTableName(table.displayName);
|
|
2480
2532
|
const assert = (test, message) => {
|
|
2481
2533
|
if (!test) throw new Error(message);
|
|
2482
2534
|
};
|
|
2535
|
+
assert(!!table.name, "Table must have a name");
|
|
2483
2536
|
assert(!!table.ref, "Table must have ref");
|
|
2484
2537
|
assert(!!table.columns, "Table must have column definitions");
|
|
2485
2538
|
assert(!!table.rows, "Table must have row definitions");
|
|
@@ -2535,11 +2588,14 @@ var ExcelTS = (function(exports) {
|
|
|
2535
2588
|
table.columns.forEach((column, j) => {
|
|
2536
2589
|
const cell = r.getCell(col + j);
|
|
2537
2590
|
if (j === 0) cell.value = column.totalsRowLabel;
|
|
2538
|
-
else
|
|
2539
|
-
formula
|
|
2540
|
-
|
|
2541
|
-
|
|
2542
|
-
|
|
2591
|
+
else {
|
|
2592
|
+
const formula = this.getFormula(column);
|
|
2593
|
+
if (formula) cell.value = {
|
|
2594
|
+
formula,
|
|
2595
|
+
result: column.totalsRowResult
|
|
2596
|
+
};
|
|
2597
|
+
else cell.value = null;
|
|
2598
|
+
}
|
|
2543
2599
|
assignStyle(cell, column.style);
|
|
2544
2600
|
});
|
|
2545
2601
|
}
|
|
@@ -2567,10 +2623,13 @@ var ExcelTS = (function(exports) {
|
|
|
2567
2623
|
table.columns.forEach((column, j) => {
|
|
2568
2624
|
const cell = r.getCell(col + j);
|
|
2569
2625
|
if (j === 0) cell.value = column.totalsRowLabel;
|
|
2570
|
-
else
|
|
2571
|
-
formula
|
|
2572
|
-
|
|
2573
|
-
|
|
2626
|
+
else {
|
|
2627
|
+
const formula = this.getFormula(column);
|
|
2628
|
+
if (formula) cell.value = {
|
|
2629
|
+
formula,
|
|
2630
|
+
result: column.totalsRowResult
|
|
2631
|
+
};
|
|
2632
|
+
}
|
|
2574
2633
|
});
|
|
2575
2634
|
}
|
|
2576
2635
|
}
|
|
@@ -2667,13 +2726,13 @@ var ExcelTS = (function(exports) {
|
|
|
2667
2726
|
return this.table.name;
|
|
2668
2727
|
}
|
|
2669
2728
|
set name(value) {
|
|
2670
|
-
this.table.name = value;
|
|
2729
|
+
this.table.name = sanitizeTableName(value);
|
|
2671
2730
|
}
|
|
2672
2731
|
get displayName() {
|
|
2673
2732
|
return this.table.displayName || this.table.name;
|
|
2674
2733
|
}
|
|
2675
2734
|
set displayName(value) {
|
|
2676
|
-
this.table.displayName = value;
|
|
2735
|
+
this.table.displayName = sanitizeTableName(value);
|
|
2677
2736
|
}
|
|
2678
2737
|
get headerRow() {
|
|
2679
2738
|
return this.table.headerRow;
|
|
@@ -2688,39 +2747,43 @@ var ExcelTS = (function(exports) {
|
|
|
2688
2747
|
this._assign(this.table, "totalsRow", value);
|
|
2689
2748
|
}
|
|
2690
2749
|
get theme() {
|
|
2691
|
-
return this.table.style
|
|
2750
|
+
return this.table.style?.theme;
|
|
2692
2751
|
}
|
|
2693
2752
|
set theme(value) {
|
|
2753
|
+
if (!this.table.style) this.table.style = {};
|
|
2694
2754
|
this.table.style.theme = value;
|
|
2695
2755
|
}
|
|
2696
2756
|
get showFirstColumn() {
|
|
2697
|
-
return this.table.style
|
|
2757
|
+
return this.table.style?.showFirstColumn;
|
|
2698
2758
|
}
|
|
2699
2759
|
set showFirstColumn(value) {
|
|
2760
|
+
if (!this.table.style) this.table.style = {};
|
|
2700
2761
|
this.table.style.showFirstColumn = value;
|
|
2701
2762
|
}
|
|
2702
2763
|
get showLastColumn() {
|
|
2703
|
-
return this.table.style
|
|
2764
|
+
return this.table.style?.showLastColumn;
|
|
2704
2765
|
}
|
|
2705
2766
|
set showLastColumn(value) {
|
|
2767
|
+
if (!this.table.style) this.table.style = {};
|
|
2706
2768
|
this.table.style.showLastColumn = value;
|
|
2707
2769
|
}
|
|
2708
2770
|
get showRowStripes() {
|
|
2709
|
-
return this.table.style
|
|
2771
|
+
return this.table.style?.showRowStripes;
|
|
2710
2772
|
}
|
|
2711
2773
|
set showRowStripes(value) {
|
|
2774
|
+
if (!this.table.style) this.table.style = {};
|
|
2712
2775
|
this.table.style.showRowStripes = value;
|
|
2713
2776
|
}
|
|
2714
2777
|
get showColumnStripes() {
|
|
2715
|
-
return this.table.style
|
|
2778
|
+
return this.table.style?.showColumnStripes;
|
|
2716
2779
|
}
|
|
2717
2780
|
set showColumnStripes(value) {
|
|
2781
|
+
if (!this.table.style) this.table.style = {};
|
|
2718
2782
|
this.table.style.showColumnStripes = value;
|
|
2719
2783
|
}
|
|
2720
2784
|
};
|
|
2721
|
-
|
|
2722
|
-
//#
|
|
2723
|
-
//#region src/modules/excel/data-validations.ts
|
|
2785
|
+
//#endregion
|
|
2786
|
+
//#region src/modules/excel/data-validations.ts
|
|
2724
2787
|
var DataValidations = class {
|
|
2725
2788
|
constructor(model) {
|
|
2726
2789
|
this.model = model || {};
|
|
@@ -2747,10 +2810,9 @@ var ExcelTS = (function(exports) {
|
|
|
2747
2810
|
this.model[address] = void 0;
|
|
2748
2811
|
}
|
|
2749
2812
|
};
|
|
2750
|
-
|
|
2751
|
-
//#
|
|
2752
|
-
|
|
2753
|
-
/**
|
|
2813
|
+
//#endregion
|
|
2814
|
+
//#region src/modules/excel/form-control.ts
|
|
2815
|
+
/**
|
|
2754
2816
|
* Form Control Checkbox - Legacy checkbox control compatible with Office 2007+ and WPS/LibreOffice
|
|
2755
2817
|
*
|
|
2756
2818
|
* Unlike the modern In-Cell Checkbox (which only works in Microsoft 365),
|
|
@@ -3000,10 +3062,9 @@ var ExcelTS = (function(exports) {
|
|
|
3000
3062
|
}
|
|
3001
3063
|
}
|
|
3002
3064
|
};
|
|
3003
|
-
|
|
3004
|
-
//#
|
|
3005
|
-
|
|
3006
|
-
/**
|
|
3065
|
+
//#endregion
|
|
3066
|
+
//#region src/utils/env.ts
|
|
3067
|
+
/**
|
|
3007
3068
|
* Environment detection utilities
|
|
3008
3069
|
* Common functions to detect runtime environment (Node.js vs Browser)
|
|
3009
3070
|
*/
|
|
@@ -3014,10 +3075,9 @@ var ExcelTS = (function(exports) {
|
|
|
3014
3075
|
function isNode() {
|
|
3015
3076
|
return typeof process !== "undefined" && !!process.versions?.node;
|
|
3016
3077
|
}
|
|
3017
|
-
|
|
3018
|
-
//#
|
|
3019
|
-
|
|
3020
|
-
/**
|
|
3078
|
+
//#endregion
|
|
3079
|
+
//#region src/utils/utils.base.ts
|
|
3080
|
+
/**
|
|
3021
3081
|
* Base utility functions shared between Node.js and Browser
|
|
3022
3082
|
* All functions use standard Web APIs that work in both environments
|
|
3023
3083
|
* (Node.js 16+ supports atob/btoa/TextEncoder/TextDecoder globally)
|
|
@@ -3078,7 +3138,7 @@ var ExcelTS = (function(exports) {
|
|
|
3078
3138
|
let lastIndex = 0;
|
|
3079
3139
|
for (let i = regexResult.index; i < text.length; i++) {
|
|
3080
3140
|
const charCode = text.charCodeAt(i);
|
|
3081
|
-
let escape
|
|
3141
|
+
let escape;
|
|
3082
3142
|
switch (charCode) {
|
|
3083
3143
|
case 34:
|
|
3084
3144
|
escape = """;
|
|
@@ -3225,9 +3285,8 @@ var ExcelTS = (function(exports) {
|
|
|
3225
3285
|
}
|
|
3226
3286
|
return bytes;
|
|
3227
3287
|
}
|
|
3228
|
-
|
|
3229
|
-
//#
|
|
3230
|
-
//#region src/modules/stream/event-emitter.ts
|
|
3288
|
+
//#endregion
|
|
3289
|
+
//#region src/modules/stream/event-emitter.ts
|
|
3231
3290
|
const isListenerList = (value) => Array.isArray(value);
|
|
3232
3291
|
var EventEmitter = class EventEmitter {
|
|
3233
3292
|
constructor() {
|
|
@@ -3387,10 +3446,9 @@ var ExcelTS = (function(exports) {
|
|
|
3387
3446
|
return this._maxListeners;
|
|
3388
3447
|
}
|
|
3389
3448
|
};
|
|
3390
|
-
|
|
3391
|
-
//#
|
|
3392
|
-
|
|
3393
|
-
/**
|
|
3449
|
+
//#endregion
|
|
3450
|
+
//#region src/modules/stream/shared.ts
|
|
3451
|
+
/**
|
|
3394
3452
|
* Shared Utilities
|
|
3395
3453
|
*
|
|
3396
3454
|
* Common utilities shared across all stream implementations.
|
|
@@ -3449,10 +3507,9 @@ var ExcelTS = (function(exports) {
|
|
|
3449
3507
|
}
|
|
3450
3508
|
return result;
|
|
3451
3509
|
}
|
|
3452
|
-
|
|
3453
|
-
//#
|
|
3454
|
-
|
|
3455
|
-
/**
|
|
3510
|
+
//#endregion
|
|
3511
|
+
//#region src/modules/stream/internal/type-guards.ts
|
|
3512
|
+
/**
|
|
3456
3513
|
* Lightweight runtime type guards shared across modules.
|
|
3457
3514
|
*
|
|
3458
3515
|
* Keep this file dependency-free to maximize deduping in bundled builds.
|
|
@@ -3469,9 +3526,8 @@ var ExcelTS = (function(exports) {
|
|
|
3469
3526
|
function isTransformStream(value) {
|
|
3470
3527
|
return !!value && typeof value === "object" && !!value.readable && !!value.writable && isReadableStream(value.readable) && isWritableStream(value.writable);
|
|
3471
3528
|
}
|
|
3472
|
-
|
|
3473
|
-
//#
|
|
3474
|
-
//#region src/modules/stream/streams.browser.ts
|
|
3529
|
+
//#endregion
|
|
3530
|
+
//#region src/modules/stream/streams.browser.ts
|
|
3475
3531
|
const removeEmitterListener = (emitter, event, listener) => {
|
|
3476
3532
|
if (typeof emitter.off === "function") emitter.off(event, listener);
|
|
3477
3533
|
else if (typeof emitter.removeListener === "function") emitter.removeListener(event, listener);
|
|
@@ -4720,7 +4776,7 @@ var ExcelTS = (function(exports) {
|
|
|
4720
4776
|
return;
|
|
4721
4777
|
}
|
|
4722
4778
|
const result = userTransform.call(this, chunk);
|
|
4723
|
-
if (result
|
|
4779
|
+
if (result instanceof Promise) {
|
|
4724
4780
|
const awaited = await result;
|
|
4725
4781
|
if (awaited !== void 0) this.push(awaited);
|
|
4726
4782
|
return;
|
|
@@ -4763,7 +4819,7 @@ var ExcelTS = (function(exports) {
|
|
|
4763
4819
|
return;
|
|
4764
4820
|
}
|
|
4765
4821
|
const result = userFlush.call(this);
|
|
4766
|
-
if (result
|
|
4822
|
+
if (result instanceof Promise) {
|
|
4767
4823
|
const awaited = await result;
|
|
4768
4824
|
if (awaited !== void 0 && awaited !== null) this.push(awaited);
|
|
4769
4825
|
return;
|
|
@@ -5459,10 +5515,9 @@ var ExcelTS = (function(exports) {
|
|
|
5459
5515
|
if (cb) promise.then(() => cb(null)).catch((err) => cb(err));
|
|
5460
5516
|
return promise;
|
|
5461
5517
|
}
|
|
5462
|
-
|
|
5463
|
-
//#
|
|
5464
|
-
|
|
5465
|
-
/**
|
|
5518
|
+
//#endregion
|
|
5519
|
+
//#region src/modules/excel/utils/encryptor.browser.ts
|
|
5520
|
+
/**
|
|
5466
5521
|
* Browser-only Encryptor
|
|
5467
5522
|
* Uses Web Crypto API (hardware accelerated)
|
|
5468
5523
|
*/
|
|
@@ -5493,10 +5548,9 @@ var ExcelTS = (function(exports) {
|
|
|
5493
5548
|
return bytes;
|
|
5494
5549
|
}
|
|
5495
5550
|
};
|
|
5496
|
-
|
|
5497
|
-
//#
|
|
5498
|
-
|
|
5499
|
-
/**
|
|
5551
|
+
//#endregion
|
|
5552
|
+
//#region src/modules/excel/pivot-table.ts
|
|
5553
|
+
/**
|
|
5500
5554
|
* Wrapper for OOXML error values in sharedItems (e.g. `<e v="REF!"/>`).
|
|
5501
5555
|
* Distinguishes error strings from regular strings so they roundtrip as `<e>` not `<s>`.
|
|
5502
5556
|
*/
|
|
@@ -5796,10 +5850,9 @@ var ExcelTS = (function(exports) {
|
|
|
5796
5850
|
}
|
|
5797
5851
|
return result;
|
|
5798
5852
|
}
|
|
5799
|
-
|
|
5800
|
-
//#
|
|
5801
|
-
|
|
5802
|
-
/**
|
|
5853
|
+
//#endregion
|
|
5854
|
+
//#region src/modules/excel/utils/merge-borders.ts
|
|
5855
|
+
/**
|
|
5803
5856
|
* Collect perimeter borders from cells before a merge is applied.
|
|
5804
5857
|
* Must be called BEFORE cell.merge() overwrites slave styles.
|
|
5805
5858
|
*
|
|
@@ -5885,9 +5938,8 @@ var ExcelTS = (function(exports) {
|
|
|
5885
5938
|
cell.style = style;
|
|
5886
5939
|
}
|
|
5887
5940
|
}
|
|
5888
|
-
|
|
5889
|
-
//#
|
|
5890
|
-
//#region src/modules/excel/worksheet.ts
|
|
5941
|
+
//#endregion
|
|
5942
|
+
//#region src/modules/excel/worksheet.ts
|
|
5891
5943
|
var Worksheet = class {
|
|
5892
5944
|
constructor(options) {
|
|
5893
5945
|
options = options || {};
|
|
@@ -5968,10 +6020,7 @@ var ExcelTS = (function(exports) {
|
|
|
5968
6020
|
if (name === "History") throw new Error("The name \"History\" is protected. Please use a different name.");
|
|
5969
6021
|
if (/[*?:/\\[\]]/.test(name)) throw new Error(`Worksheet name ${name} cannot include any of the following characters: * ? : \\ / [ ]`);
|
|
5970
6022
|
if (/(^')|('$)/.test(name)) throw new Error(`The first or last character of worksheet name cannot be a single quotation mark: ${name}`);
|
|
5971
|
-
if (name && name.length > 31)
|
|
5972
|
-
console.warn(`Worksheet name ${name} exceeds 31 chars. This will be truncated`);
|
|
5973
|
-
name = name.substring(0, 31);
|
|
5974
|
-
}
|
|
6023
|
+
if (name && name.length > 31) name = name.substring(0, 31);
|
|
5975
6024
|
if (this._workbook.worksheets.find((ws) => ws && ws.name.toLowerCase() === name.toLowerCase())) throw new Error(`Worksheet name already exists: ${name}`);
|
|
5976
6025
|
this._name = name;
|
|
5977
6026
|
}
|
|
@@ -6221,9 +6270,9 @@ var ExcelTS = (function(exports) {
|
|
|
6221
6270
|
_copyStyle(src, dest, styleEmpty = false) {
|
|
6222
6271
|
const rSrc = this.getRow(src);
|
|
6223
6272
|
const rDst = this.getRow(dest);
|
|
6224
|
-
rDst.style = copyStyle(rSrc.style);
|
|
6273
|
+
rDst.style = copyStyle(rSrc.style) ?? {};
|
|
6225
6274
|
rSrc.eachCell({ includeEmpty: styleEmpty }, (cell, colNumber) => {
|
|
6226
|
-
rDst.getCell(colNumber).style = copyStyle(cell.style);
|
|
6275
|
+
rDst.getCell(colNumber).style = copyStyle(cell.style) ?? {};
|
|
6227
6276
|
});
|
|
6228
6277
|
rDst.height = rSrc.height;
|
|
6229
6278
|
}
|
|
@@ -6598,7 +6647,7 @@ var ExcelTS = (function(exports) {
|
|
|
6598
6647
|
*/
|
|
6599
6648
|
addTable(model) {
|
|
6600
6649
|
const table = new Table(this, model);
|
|
6601
|
-
this.tables[
|
|
6650
|
+
this.tables[table.name] = table;
|
|
6602
6651
|
return table;
|
|
6603
6652
|
}
|
|
6604
6653
|
/**
|
|
@@ -6691,7 +6740,7 @@ var ExcelTS = (function(exports) {
|
|
|
6691
6740
|
}
|
|
6692
6741
|
set model(value) {
|
|
6693
6742
|
this.name = value.name;
|
|
6694
|
-
this._columns = Column.fromModel(this, value.cols);
|
|
6743
|
+
this._columns = Column.fromModel(this, value.cols ?? []);
|
|
6695
6744
|
this._parseRows(value);
|
|
6696
6745
|
this._parseMergeCells(value);
|
|
6697
6746
|
this.dataValidations = new DataValidations(value.dataValidations);
|
|
@@ -6716,9 +6765,8 @@ var ExcelTS = (function(exports) {
|
|
|
6716
6765
|
this._drawing = value.drawing;
|
|
6717
6766
|
}
|
|
6718
6767
|
};
|
|
6719
|
-
|
|
6720
|
-
//#
|
|
6721
|
-
//#region src/modules/excel/utils/cell-matrix.ts
|
|
6768
|
+
//#endregion
|
|
6769
|
+
//#region src/modules/excel/utils/cell-matrix.ts
|
|
6722
6770
|
function isSafeKey(key) {
|
|
6723
6771
|
if (typeof key === "number") return true;
|
|
6724
6772
|
return key !== "__proto__" && key !== "constructor" && key !== "prototype";
|
|
@@ -6839,9 +6887,8 @@ var ExcelTS = (function(exports) {
|
|
|
6839
6887
|
}
|
|
6840
6888
|
}
|
|
6841
6889
|
};
|
|
6842
|
-
|
|
6843
|
-
//#
|
|
6844
|
-
//#region src/modules/excel/defined-names.ts
|
|
6890
|
+
//#endregion
|
|
6891
|
+
//#region src/modules/excel/defined-names.ts
|
|
6845
6892
|
const rangeRegexp = /[$](\w+)[$](\d+)(:[$](\w+)[$](\d+))?/;
|
|
6846
6893
|
var DefinedNames = class {
|
|
6847
6894
|
constructor() {
|
|
@@ -6911,7 +6958,7 @@ var ExcelTS = (function(exports) {
|
|
|
6911
6958
|
}
|
|
6912
6959
|
_explore(matrix, cell) {
|
|
6913
6960
|
cell.mark = false;
|
|
6914
|
-
const
|
|
6961
|
+
const sheetName = cell.sheetName;
|
|
6915
6962
|
const range = new Range(cell.row, cell.col, cell.row, cell.col, sheetName);
|
|
6916
6963
|
let x;
|
|
6917
6964
|
let y;
|
|
@@ -6953,7 +7000,7 @@ var ExcelTS = (function(exports) {
|
|
|
6953
7000
|
});
|
|
6954
7001
|
return {
|
|
6955
7002
|
name,
|
|
6956
|
-
ranges: matrix.map((cell) => cell.mark && this._explore(matrix, cell)).filter(Boolean).map((range) => range.$shortRange)
|
|
7003
|
+
ranges: matrix.map((cell) => cell.mark && this._explore(matrix, cell)).filter((range) => Boolean(range)).map((range) => range.$shortRange)
|
|
6957
7004
|
};
|
|
6958
7005
|
}
|
|
6959
7006
|
normaliseMatrix(matrix, sheetName) {
|
|
@@ -6992,9 +7039,8 @@ var ExcelTS = (function(exports) {
|
|
|
6992
7039
|
});
|
|
6993
7040
|
}
|
|
6994
7041
|
};
|
|
6995
|
-
|
|
6996
|
-
//#
|
|
6997
|
-
//#region src/modules/excel/utils/xml-stream.ts
|
|
7042
|
+
//#endregion
|
|
7043
|
+
//#region src/modules/excel/utils/xml-stream.ts
|
|
6998
7044
|
const OPEN_ANGLE = "<";
|
|
6999
7045
|
const CLOSE_ANGLE = ">";
|
|
7000
7046
|
const OPEN_ANGLE_SLASH = "</";
|
|
@@ -7134,10 +7180,9 @@ var ExcelTS = (function(exports) {
|
|
|
7134
7180
|
};
|
|
7135
7181
|
}
|
|
7136
7182
|
};
|
|
7137
|
-
|
|
7138
|
-
//#
|
|
7139
|
-
|
|
7140
|
-
/**
|
|
7183
|
+
//#endregion
|
|
7184
|
+
//#region src/modules/excel/utils/parse-sax.ts
|
|
7185
|
+
/**
|
|
7141
7186
|
* High-performance SAX XML parser
|
|
7142
7187
|
*
|
|
7143
7188
|
* Minimal implementation optimized for Excel XML parsing.
|
|
@@ -8017,9 +8062,8 @@ var ExcelTS = (function(exports) {
|
|
|
8017
8062
|
if (error) throw error;
|
|
8018
8063
|
if (events.length > 0) yield events;
|
|
8019
8064
|
}
|
|
8020
|
-
|
|
8021
|
-
//#
|
|
8022
|
-
//#region src/modules/excel/xlsx/xform/base-xform.ts
|
|
8065
|
+
//#endregion
|
|
8066
|
+
//#region src/modules/excel/xlsx/xform/base-xform.ts
|
|
8023
8067
|
const HAN_CELL_PREFIXES = new Set([
|
|
8024
8068
|
"ep",
|
|
8025
8069
|
"cp",
|
|
@@ -8149,9 +8193,8 @@ var ExcelTS = (function(exports) {
|
|
|
8149
8193
|
return attr === void 0 ? dflt : parseFloat(attr);
|
|
8150
8194
|
}
|
|
8151
8195
|
};
|
|
8152
|
-
|
|
8153
|
-
//#
|
|
8154
|
-
//#region src/modules/excel/xlsx/xform/static-xform.ts
|
|
8196
|
+
//#endregion
|
|
8197
|
+
//#region src/modules/excel/xlsx/xform/static-xform.ts
|
|
8155
8198
|
function build(xmlStream, model) {
|
|
8156
8199
|
xmlStream.openNode(model.tag, model.$);
|
|
8157
8200
|
if (model.c) model.c.forEach((child) => {
|
|
@@ -8184,9 +8227,8 @@ var ExcelTS = (function(exports) {
|
|
|
8184
8227
|
}
|
|
8185
8228
|
}
|
|
8186
8229
|
};
|
|
8187
|
-
|
|
8188
|
-
//#
|
|
8189
|
-
//#region src/modules/excel/xlsx/xform/list-xform.ts
|
|
8230
|
+
//#endregion
|
|
8231
|
+
//#region src/modules/excel/xlsx/xform/list-xform.ts
|
|
8190
8232
|
var ListXform = class extends BaseXform {
|
|
8191
8233
|
constructor(options) {
|
|
8192
8234
|
super();
|
|
@@ -8259,9 +8301,8 @@ var ExcelTS = (function(exports) {
|
|
|
8259
8301
|
if (this.childXform) this.childXform.reset();
|
|
8260
8302
|
}
|
|
8261
8303
|
};
|
|
8262
|
-
|
|
8263
|
-
//#
|
|
8264
|
-
//#region src/modules/excel/xlsx/xform/style/color-xform.ts
|
|
8304
|
+
//#endregion
|
|
8305
|
+
//#region src/modules/excel/xlsx/xform/style/color-xform.ts
|
|
8265
8306
|
var ColorXform = class extends BaseXform {
|
|
8266
8307
|
constructor(name) {
|
|
8267
8308
|
super();
|
|
@@ -8301,9 +8342,8 @@ var ExcelTS = (function(exports) {
|
|
|
8301
8342
|
return false;
|
|
8302
8343
|
}
|
|
8303
8344
|
};
|
|
8304
|
-
|
|
8305
|
-
//#
|
|
8306
|
-
//#region src/modules/excel/xlsx/xform/simple/boolean-xform.ts
|
|
8345
|
+
//#endregion
|
|
8346
|
+
//#region src/modules/excel/xlsx/xform/simple/boolean-xform.ts
|
|
8307
8347
|
var BooleanXform = class extends BaseXform {
|
|
8308
8348
|
constructor(options) {
|
|
8309
8349
|
super();
|
|
@@ -8324,9 +8364,8 @@ var ExcelTS = (function(exports) {
|
|
|
8324
8364
|
return false;
|
|
8325
8365
|
}
|
|
8326
8366
|
};
|
|
8327
|
-
|
|
8328
|
-
//#
|
|
8329
|
-
//#region src/modules/excel/xlsx/xform/simple/integer-xform.ts
|
|
8367
|
+
//#endregion
|
|
8368
|
+
//#region src/modules/excel/xlsx/xform/simple/integer-xform.ts
|
|
8330
8369
|
var IntegerXform = class extends BaseXform {
|
|
8331
8370
|
constructor(options) {
|
|
8332
8371
|
super();
|
|
@@ -8361,9 +8400,8 @@ var ExcelTS = (function(exports) {
|
|
|
8361
8400
|
return false;
|
|
8362
8401
|
}
|
|
8363
8402
|
};
|
|
8364
|
-
|
|
8365
|
-
//#
|
|
8366
|
-
//#region src/modules/excel/xlsx/xform/simple/string-xform.ts
|
|
8403
|
+
//#endregion
|
|
8404
|
+
//#region src/modules/excel/xlsx/xform/simple/string-xform.ts
|
|
8367
8405
|
var StringXform = class extends BaseXform {
|
|
8368
8406
|
constructor(options) {
|
|
8369
8407
|
super();
|
|
@@ -8393,9 +8431,8 @@ var ExcelTS = (function(exports) {
|
|
|
8393
8431
|
return false;
|
|
8394
8432
|
}
|
|
8395
8433
|
};
|
|
8396
|
-
|
|
8397
|
-
//#
|
|
8398
|
-
//#region src/modules/excel/xlsx/xform/style/underline-xform.ts
|
|
8434
|
+
//#endregion
|
|
8435
|
+
//#region src/modules/excel/xlsx/xform/style/underline-xform.ts
|
|
8399
8436
|
var UnderlineXform = class UnderlineXform extends BaseXform {
|
|
8400
8437
|
static {
|
|
8401
8438
|
this.Attributes = {
|
|
@@ -8428,9 +8465,8 @@ var ExcelTS = (function(exports) {
|
|
|
8428
8465
|
return false;
|
|
8429
8466
|
}
|
|
8430
8467
|
};
|
|
8431
|
-
|
|
8432
|
-
//#
|
|
8433
|
-
//#region src/modules/excel/xlsx/xform/style/font-xform.ts
|
|
8468
|
+
//#endregion
|
|
8469
|
+
//#region src/modules/excel/xlsx/xform/style/font-xform.ts
|
|
8434
8470
|
var FontXform = class FontXform extends BaseXform {
|
|
8435
8471
|
constructor(options) {
|
|
8436
8472
|
super();
|
|
@@ -8606,9 +8642,8 @@ var ExcelTS = (function(exports) {
|
|
|
8606
8642
|
};
|
|
8607
8643
|
}
|
|
8608
8644
|
};
|
|
8609
|
-
|
|
8610
|
-
//#
|
|
8611
|
-
//#region src/modules/excel/xlsx/xform/style/fill-xform.ts
|
|
8645
|
+
//#endregion
|
|
8646
|
+
//#region src/modules/excel/xlsx/xform/style/fill-xform.ts
|
|
8612
8647
|
var StopXform = class extends BaseXform {
|
|
8613
8648
|
constructor() {
|
|
8614
8649
|
super();
|
|
@@ -8889,9 +8924,8 @@ var ExcelTS = (function(exports) {
|
|
|
8889
8924
|
this.GradientFillXform = GradientFillXform;
|
|
8890
8925
|
}
|
|
8891
8926
|
};
|
|
8892
|
-
|
|
8893
|
-
//#
|
|
8894
|
-
//#region src/modules/excel/xlsx/xform/style/border-xform.ts
|
|
8927
|
+
//#endregion
|
|
8928
|
+
//#region src/modules/excel/xlsx/xform/style/border-xform.ts
|
|
8895
8929
|
var EdgeXform = class EdgeXform extends BaseXform {
|
|
8896
8930
|
constructor(name) {
|
|
8897
8931
|
super();
|
|
@@ -9050,9 +9084,8 @@ var ExcelTS = (function(exports) {
|
|
|
9050
9084
|
return false;
|
|
9051
9085
|
}
|
|
9052
9086
|
};
|
|
9053
|
-
|
|
9054
|
-
//#
|
|
9055
|
-
//#region src/modules/excel/xlsx/defaultnumformats.ts
|
|
9087
|
+
//#endregion
|
|
9088
|
+
//#region src/modules/excel/xlsx/defaultnumformats.ts
|
|
9056
9089
|
const defaultNumFormats = {
|
|
9057
9090
|
0: { f: "General" },
|
|
9058
9091
|
1: { f: "0" },
|
|
@@ -9206,9 +9239,8 @@ var ExcelTS = (function(exports) {
|
|
|
9206
9239
|
70: { "th-th": "t# ??/??" },
|
|
9207
9240
|
81: { "th-th": "d/m/bb" }
|
|
9208
9241
|
};
|
|
9209
|
-
|
|
9210
|
-
//#
|
|
9211
|
-
//#region src/modules/excel/xlsx/xform/style/numfmt-xform.ts
|
|
9242
|
+
//#endregion
|
|
9243
|
+
//#region src/modules/excel/xlsx/xform/style/numfmt-xform.ts
|
|
9212
9244
|
function hashDefaultFormats() {
|
|
9213
9245
|
const hash = {};
|
|
9214
9246
|
Object.entries(defaultNumFormats).forEach(([id, dnf]) => {
|
|
@@ -9254,9 +9286,8 @@ var ExcelTS = (function(exports) {
|
|
|
9254
9286
|
return defaultNumFormats[numFmtId] && defaultNumFormats[numFmtId].f;
|
|
9255
9287
|
}
|
|
9256
9288
|
};
|
|
9257
|
-
|
|
9258
|
-
//#
|
|
9259
|
-
//#region src/modules/excel/xlsx/xform/style/alignment-xform.ts
|
|
9289
|
+
//#endregion
|
|
9290
|
+
//#region src/modules/excel/xlsx/xform/style/alignment-xform.ts
|
|
9260
9291
|
const Enums$1 = { ReadingOrder: {
|
|
9261
9292
|
LeftToRight: 1,
|
|
9262
9293
|
RightToLeft: 2
|
|
@@ -9385,9 +9416,8 @@ var ExcelTS = (function(exports) {
|
|
|
9385
9416
|
return false;
|
|
9386
9417
|
}
|
|
9387
9418
|
};
|
|
9388
|
-
|
|
9389
|
-
//#
|
|
9390
|
-
//#region src/modules/excel/xlsx/xform/style/protection-xform.ts
|
|
9419
|
+
//#endregion
|
|
9420
|
+
//#region src/modules/excel/xlsx/xform/style/protection-xform.ts
|
|
9391
9421
|
const validation = { boolean(value, dflt) {
|
|
9392
9422
|
if (value === void 0) return dflt;
|
|
9393
9423
|
return value;
|
|
@@ -9424,9 +9454,8 @@ var ExcelTS = (function(exports) {
|
|
|
9424
9454
|
return false;
|
|
9425
9455
|
}
|
|
9426
9456
|
};
|
|
9427
|
-
|
|
9428
|
-
//#
|
|
9429
|
-
//#region src/modules/excel/xlsx/xform/style/style-xform.ts
|
|
9457
|
+
//#endregion
|
|
9458
|
+
//#region src/modules/excel/xlsx/xform/style/style-xform.ts
|
|
9430
9459
|
var StyleXform = class extends BaseXform {
|
|
9431
9460
|
constructor(options) {
|
|
9432
9461
|
super();
|
|
@@ -9522,9 +9551,8 @@ var ExcelTS = (function(exports) {
|
|
|
9522
9551
|
return name !== "xf";
|
|
9523
9552
|
}
|
|
9524
9553
|
};
|
|
9525
|
-
|
|
9526
|
-
//#
|
|
9527
|
-
//#region src/modules/excel/xlsx/xform/style/dxf-xform.ts
|
|
9554
|
+
//#endregion
|
|
9555
|
+
//#region src/modules/excel/xlsx/xform/style/dxf-xform.ts
|
|
9528
9556
|
var DxfXform = class extends BaseXform {
|
|
9529
9557
|
constructor() {
|
|
9530
9558
|
super();
|
|
@@ -9593,9 +9621,8 @@ var ExcelTS = (function(exports) {
|
|
|
9593
9621
|
return true;
|
|
9594
9622
|
}
|
|
9595
9623
|
};
|
|
9596
|
-
|
|
9597
|
-
//#
|
|
9598
|
-
//#region src/modules/excel/xlsx/xform/style/styles-xform.ts
|
|
9624
|
+
//#endregion
|
|
9625
|
+
//#region src/modules/excel/xlsx/xform/style/styles-xform.ts
|
|
9599
9626
|
const NUMFMT_BASE = 164;
|
|
9600
9627
|
var StylesXform = class StylesXform extends BaseXform {
|
|
9601
9628
|
constructor(initialise) {
|
|
@@ -10071,9 +10098,8 @@ var ExcelTS = (function(exports) {
|
|
|
10071
10098
|
}
|
|
10072
10099
|
};
|
|
10073
10100
|
StylesXform.Mock = StylesXformMock;
|
|
10074
|
-
|
|
10075
|
-
//#
|
|
10076
|
-
//#region src/modules/excel/xlsx/xform/simple/date-xform.ts
|
|
10101
|
+
//#endregion
|
|
10102
|
+
//#region src/modules/excel/xlsx/xform/simple/date-xform.ts
|
|
10077
10103
|
var DateXform = class extends BaseXform {
|
|
10078
10104
|
constructor(options) {
|
|
10079
10105
|
super();
|
|
@@ -10114,9 +10140,8 @@ var ExcelTS = (function(exports) {
|
|
|
10114
10140
|
return false;
|
|
10115
10141
|
}
|
|
10116
10142
|
};
|
|
10117
|
-
|
|
10118
|
-
//#
|
|
10119
|
-
//#region src/modules/excel/xlsx/xform/core/core-xform.ts
|
|
10143
|
+
//#endregion
|
|
10144
|
+
//#region src/modules/excel/xlsx/xform/core/core-xform.ts
|
|
10120
10145
|
const PROPS = {
|
|
10121
10146
|
creator: "dc:creator",
|
|
10122
10147
|
title: "dc:title",
|
|
@@ -10221,9 +10246,8 @@ var ExcelTS = (function(exports) {
|
|
|
10221
10246
|
};
|
|
10222
10247
|
}
|
|
10223
10248
|
};
|
|
10224
|
-
|
|
10225
|
-
//#
|
|
10226
|
-
//#region src/modules/excel/xlsx/xform/strings/text-xform.ts
|
|
10249
|
+
//#endregion
|
|
10250
|
+
//#region src/modules/excel/xlsx/xform/strings/text-xform.ts
|
|
10227
10251
|
var TextXform = class extends BaseXform {
|
|
10228
10252
|
get tag() {
|
|
10229
10253
|
return "t";
|
|
@@ -10250,9 +10274,8 @@ var ExcelTS = (function(exports) {
|
|
|
10250
10274
|
return false;
|
|
10251
10275
|
}
|
|
10252
10276
|
};
|
|
10253
|
-
|
|
10254
|
-
//#
|
|
10255
|
-
//#region src/modules/excel/xlsx/xform/strings/rich-text-xform.ts
|
|
10277
|
+
//#endregion
|
|
10278
|
+
//#region src/modules/excel/xlsx/xform/strings/rich-text-xform.ts
|
|
10256
10279
|
var RichTextXform = class RichTextXform extends BaseXform {
|
|
10257
10280
|
constructor(model) {
|
|
10258
10281
|
super();
|
|
@@ -10320,9 +10343,8 @@ var ExcelTS = (function(exports) {
|
|
|
10320
10343
|
};
|
|
10321
10344
|
}
|
|
10322
10345
|
};
|
|
10323
|
-
|
|
10324
|
-
//#
|
|
10325
|
-
//#region src/modules/excel/xlsx/xform/strings/phonetic-text-xform.ts
|
|
10346
|
+
//#endregion
|
|
10347
|
+
//#region src/modules/excel/xlsx/xform/strings/phonetic-text-xform.ts
|
|
10326
10348
|
var PhoneticTextXform = class extends BaseXform {
|
|
10327
10349
|
constructor() {
|
|
10328
10350
|
super();
|
|
@@ -10395,9 +10417,8 @@ var ExcelTS = (function(exports) {
|
|
|
10395
10417
|
}
|
|
10396
10418
|
}
|
|
10397
10419
|
};
|
|
10398
|
-
|
|
10399
|
-
//#
|
|
10400
|
-
//#region src/modules/excel/xlsx/xform/strings/shared-string-xform.ts
|
|
10420
|
+
//#endregion
|
|
10421
|
+
//#region src/modules/excel/xlsx/xform/strings/shared-string-xform.ts
|
|
10401
10422
|
var SharedStringXform = class extends BaseXform {
|
|
10402
10423
|
constructor(model) {
|
|
10403
10424
|
super();
|
|
@@ -10464,9 +10485,8 @@ var ExcelTS = (function(exports) {
|
|
|
10464
10485
|
}
|
|
10465
10486
|
}
|
|
10466
10487
|
};
|
|
10467
|
-
|
|
10468
|
-
//#
|
|
10469
|
-
//#region src/modules/excel/xlsx/xform/strings/shared-strings-xform.ts
|
|
10488
|
+
//#endregion
|
|
10489
|
+
//#region src/modules/excel/xlsx/xform/strings/shared-strings-xform.ts
|
|
10470
10490
|
var SharedStringsXform = class extends BaseXform {
|
|
10471
10491
|
constructor(model) {
|
|
10472
10492
|
super();
|
|
@@ -10560,9 +10580,8 @@ var ExcelTS = (function(exports) {
|
|
|
10560
10580
|
}
|
|
10561
10581
|
}
|
|
10562
10582
|
};
|
|
10563
|
-
|
|
10564
|
-
//#
|
|
10565
|
-
//#region src/modules/excel/xlsx/xform/core/relationship-xform.ts
|
|
10583
|
+
//#endregion
|
|
10584
|
+
//#region src/modules/excel/xlsx/xform/core/relationship-xform.ts
|
|
10566
10585
|
var RelationshipXform = class extends BaseXform {
|
|
10567
10586
|
render(xmlStream, model) {
|
|
10568
10587
|
xmlStream.leafNode("Relationship", model);
|
|
@@ -10580,9 +10599,8 @@ var ExcelTS = (function(exports) {
|
|
|
10580
10599
|
return false;
|
|
10581
10600
|
}
|
|
10582
10601
|
};
|
|
10583
|
-
|
|
10584
|
-
//#
|
|
10585
|
-
//#region src/modules/excel/xlsx/xform/core/relationships-xform.ts
|
|
10602
|
+
//#endregion
|
|
10603
|
+
//#region src/modules/excel/xlsx/xform/core/relationships-xform.ts
|
|
10586
10604
|
var RelationshipsXform = class RelationshipsXform extends BaseXform {
|
|
10587
10605
|
constructor() {
|
|
10588
10606
|
super();
|
|
@@ -10635,9 +10653,8 @@ var ExcelTS = (function(exports) {
|
|
|
10635
10653
|
this.RELATIONSHIPS_ATTRIBUTES = { xmlns: "http://schemas.openxmlformats.org/package/2006/relationships" };
|
|
10636
10654
|
}
|
|
10637
10655
|
};
|
|
10638
|
-
|
|
10639
|
-
//#
|
|
10640
|
-
//#region src/modules/excel/utils/ooxml-paths.ts
|
|
10656
|
+
//#endregion
|
|
10657
|
+
//#region src/modules/excel/utils/ooxml-paths.ts
|
|
10641
10658
|
const OOXML_PATHS = {
|
|
10642
10659
|
contentTypes: "[Content_Types].xml",
|
|
10643
10660
|
rootRels: "_rels/.rels",
|
|
@@ -10836,9 +10853,8 @@ var ExcelTS = (function(exports) {
|
|
|
10836
10853
|
function ctrlPropRelTargetFromWorksheet(id) {
|
|
10837
10854
|
return `../ctrlProps/ctrlProp${id}.xml`;
|
|
10838
10855
|
}
|
|
10839
|
-
|
|
10840
|
-
//#
|
|
10841
|
-
//#region src/modules/excel/xlsx/xform/core/content-types-xform.ts
|
|
10856
|
+
//#endregion
|
|
10857
|
+
//#region src/modules/excel/xlsx/xform/core/content-types-xform.ts
|
|
10842
10858
|
var ContentTypesXform = class ContentTypesXform extends BaseXform {
|
|
10843
10859
|
render(xmlStream, model) {
|
|
10844
10860
|
xmlStream.openXml(XmlStream.StdDocAttributes);
|
|
@@ -10965,9 +10981,8 @@ var ExcelTS = (function(exports) {
|
|
|
10965
10981
|
this.PROPERTY_ATTRIBUTES = { xmlns: "http://schemas.openxmlformats.org/package/2006/content-types" };
|
|
10966
10982
|
}
|
|
10967
10983
|
};
|
|
10968
|
-
|
|
10969
|
-
//#
|
|
10970
|
-
//#region src/modules/excel/xlsx/xform/core/app-heading-pairs-xform.ts
|
|
10984
|
+
//#endregion
|
|
10985
|
+
//#region src/modules/excel/xlsx/xform/core/app-heading-pairs-xform.ts
|
|
10971
10986
|
var AppHeadingPairsXform = class extends BaseXform {
|
|
10972
10987
|
render(xmlStream, model) {
|
|
10973
10988
|
xmlStream.openNode("HeadingPairs");
|
|
@@ -10992,9 +11007,8 @@ var ExcelTS = (function(exports) {
|
|
|
10992
11007
|
return name !== "HeadingPairs";
|
|
10993
11008
|
}
|
|
10994
11009
|
};
|
|
10995
|
-
|
|
10996
|
-
//#
|
|
10997
|
-
//#region src/modules/excel/xlsx/xform/core/app-titles-of-parts-xform.ts
|
|
11010
|
+
//#endregion
|
|
11011
|
+
//#region src/modules/excel/xlsx/xform/core/app-titles-of-parts-xform.ts
|
|
10998
11012
|
var AppTitlesOfPartsXform = class extends BaseXform {
|
|
10999
11013
|
render(xmlStream, model) {
|
|
11000
11014
|
xmlStream.openNode("TitlesOfParts");
|
|
@@ -11016,9 +11030,8 @@ var ExcelTS = (function(exports) {
|
|
|
11016
11030
|
return name !== "TitlesOfParts";
|
|
11017
11031
|
}
|
|
11018
11032
|
};
|
|
11019
|
-
|
|
11020
|
-
//#
|
|
11021
|
-
//#region src/modules/excel/xlsx/xform/core/app-xform.ts
|
|
11033
|
+
//#endregion
|
|
11034
|
+
//#region src/modules/excel/xlsx/xform/core/app-xform.ts
|
|
11022
11035
|
var AppXform = class AppXform extends BaseXform {
|
|
11023
11036
|
constructor() {
|
|
11024
11037
|
super();
|
|
@@ -11095,9 +11108,8 @@ var ExcelTS = (function(exports) {
|
|
|
11095
11108
|
};
|
|
11096
11109
|
}
|
|
11097
11110
|
};
|
|
11098
|
-
|
|
11099
|
-
//#
|
|
11100
|
-
//#region src/modules/excel/xlsx/xform/book/defined-name-xform.ts
|
|
11111
|
+
//#endregion
|
|
11112
|
+
//#region src/modules/excel/xlsx/xform/book/defined-name-xform.ts
|
|
11101
11113
|
var DefinedNamesXform = class extends BaseXform {
|
|
11102
11114
|
constructor() {
|
|
11103
11115
|
super();
|
|
@@ -11175,9 +11187,8 @@ var ExcelTS = (function(exports) {
|
|
|
11175
11187
|
});
|
|
11176
11188
|
return ranges;
|
|
11177
11189
|
}
|
|
11178
|
-
|
|
11179
|
-
//#
|
|
11180
|
-
//#region src/modules/excel/xlsx/xform/book/sheet-xform.ts
|
|
11190
|
+
//#endregion
|
|
11191
|
+
//#region src/modules/excel/xlsx/xform/book/sheet-xform.ts
|
|
11181
11192
|
var WorksheetXform = class extends BaseXform {
|
|
11182
11193
|
render(xmlStream, model) {
|
|
11183
11194
|
xmlStream.leafNode("sheet", {
|
|
@@ -11204,9 +11215,8 @@ var ExcelTS = (function(exports) {
|
|
|
11204
11215
|
return false;
|
|
11205
11216
|
}
|
|
11206
11217
|
};
|
|
11207
|
-
|
|
11208
|
-
//#
|
|
11209
|
-
//#region src/modules/excel/xlsx/xform/book/workbook-view-xform.ts
|
|
11218
|
+
//#endregion
|
|
11219
|
+
//#region src/modules/excel/xlsx/xform/book/workbook-view-xform.ts
|
|
11210
11220
|
var WorkbookViewXform = class extends BaseXform {
|
|
11211
11221
|
render(xmlStream, model) {
|
|
11212
11222
|
const attributes = {
|
|
@@ -11246,9 +11256,8 @@ var ExcelTS = (function(exports) {
|
|
|
11246
11256
|
return false;
|
|
11247
11257
|
}
|
|
11248
11258
|
};
|
|
11249
|
-
|
|
11250
|
-
//#
|
|
11251
|
-
//#region src/modules/excel/xlsx/xform/book/workbook-properties-xform.ts
|
|
11259
|
+
//#endregion
|
|
11260
|
+
//#region src/modules/excel/xlsx/xform/book/workbook-properties-xform.ts
|
|
11252
11261
|
var WorkbookPropertiesXform = class extends BaseXform {
|
|
11253
11262
|
render(xmlStream, model) {
|
|
11254
11263
|
xmlStream.leafNode("workbookPr", {
|
|
@@ -11268,9 +11277,8 @@ var ExcelTS = (function(exports) {
|
|
|
11268
11277
|
return false;
|
|
11269
11278
|
}
|
|
11270
11279
|
};
|
|
11271
|
-
|
|
11272
|
-
//#
|
|
11273
|
-
//#region src/modules/excel/xlsx/xform/book/workbook-calc-properties-xform.ts
|
|
11280
|
+
//#endregion
|
|
11281
|
+
//#region src/modules/excel/xlsx/xform/book/workbook-calc-properties-xform.ts
|
|
11274
11282
|
var WorkbookCalcPropertiesXform = class extends BaseXform {
|
|
11275
11283
|
render(xmlStream, model) {
|
|
11276
11284
|
xmlStream.leafNode("calcPr", {
|
|
@@ -11290,9 +11298,8 @@ var ExcelTS = (function(exports) {
|
|
|
11290
11298
|
return false;
|
|
11291
11299
|
}
|
|
11292
11300
|
};
|
|
11293
|
-
|
|
11294
|
-
//#
|
|
11295
|
-
//#region src/modules/excel/xlsx/xform/book/workbook-pivot-cache-xform.ts
|
|
11301
|
+
//#endregion
|
|
11302
|
+
//#region src/modules/excel/xlsx/xform/book/workbook-pivot-cache-xform.ts
|
|
11296
11303
|
var WorkbookPivotCacheXform = class extends BaseXform {
|
|
11297
11304
|
render(xmlStream, model) {
|
|
11298
11305
|
xmlStream.leafNode("pivotCache", {
|
|
@@ -11315,9 +11322,8 @@ var ExcelTS = (function(exports) {
|
|
|
11315
11322
|
return false;
|
|
11316
11323
|
}
|
|
11317
11324
|
};
|
|
11318
|
-
|
|
11319
|
-
//#
|
|
11320
|
-
//#region src/modules/excel/xlsx/xform/book/workbook-xform.ts
|
|
11325
|
+
//#endregion
|
|
11326
|
+
//#region src/modules/excel/xlsx/xform/book/workbook-xform.ts
|
|
11321
11327
|
var WorkbookXform = class WorkbookXform extends BaseXform {
|
|
11322
11328
|
constructor() {
|
|
11323
11329
|
super();
|
|
@@ -11518,9 +11524,8 @@ var ExcelTS = (function(exports) {
|
|
|
11518
11524
|
}) };
|
|
11519
11525
|
}
|
|
11520
11526
|
};
|
|
11521
|
-
|
|
11522
|
-
//#
|
|
11523
|
-
//#region src/modules/excel/xlsx/rel-type.ts
|
|
11527
|
+
//#endregion
|
|
11528
|
+
//#region src/modules/excel/xlsx/rel-type.ts
|
|
11524
11529
|
const RelType = {
|
|
11525
11530
|
OfficeDocument: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",
|
|
11526
11531
|
Worksheet: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet",
|
|
@@ -11541,9 +11546,8 @@ var ExcelTS = (function(exports) {
|
|
|
11541
11546
|
FeaturePropertyBag: "http://schemas.microsoft.com/office/2022/11/relationships/FeaturePropertyBag",
|
|
11542
11547
|
CtrlProp: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/ctrlProp"
|
|
11543
11548
|
};
|
|
11544
|
-
|
|
11545
|
-
//#
|
|
11546
|
-
//#region src/modules/excel/xlsx/xform/sheet/merges.ts
|
|
11549
|
+
//#endregion
|
|
11550
|
+
//#region src/modules/excel/xlsx/xform/sheet/merges.ts
|
|
11547
11551
|
var Merges = class {
|
|
11548
11552
|
constructor() {
|
|
11549
11553
|
this.merges = {};
|
|
@@ -11579,9 +11583,8 @@ var ExcelTS = (function(exports) {
|
|
|
11579
11583
|
return range && range.tl;
|
|
11580
11584
|
}
|
|
11581
11585
|
};
|
|
11582
|
-
|
|
11583
|
-
//#
|
|
11584
|
-
//#region src/modules/excel/xlsx/xform/sheet/cell-xform.ts
|
|
11586
|
+
//#endregion
|
|
11587
|
+
//#region src/modules/excel/xlsx/xform/sheet/cell-xform.ts
|
|
11585
11588
|
function getValueType(v) {
|
|
11586
11589
|
if (v === null || v === void 0) return Enums.ValueType.Null;
|
|
11587
11590
|
if (v instanceof String || typeof v === "string") return Enums.ValueType.String;
|
|
@@ -11929,9 +11932,8 @@ var ExcelTS = (function(exports) {
|
|
|
11929
11932
|
if (comment) model.comment = comment;
|
|
11930
11933
|
}
|
|
11931
11934
|
};
|
|
11932
|
-
|
|
11933
|
-
//#
|
|
11934
|
-
//#region src/modules/excel/xlsx/xform/sheet/row-xform.ts
|
|
11935
|
+
//#endregion
|
|
11936
|
+
//#region src/modules/excel/xlsx/xform/sheet/row-xform.ts
|
|
11935
11937
|
var RowXform = class extends BaseXform {
|
|
11936
11938
|
constructor(options) {
|
|
11937
11939
|
super();
|
|
@@ -12038,9 +12040,8 @@ var ExcelTS = (function(exports) {
|
|
|
12038
12040
|
});
|
|
12039
12041
|
}
|
|
12040
12042
|
};
|
|
12041
|
-
|
|
12042
|
-
//#
|
|
12043
|
-
//#region src/modules/excel/xlsx/xform/sheet/col-xform.ts
|
|
12043
|
+
//#endregion
|
|
12044
|
+
//#region src/modules/excel/xlsx/xform/sheet/col-xform.ts
|
|
12044
12045
|
var ColXform = class extends BaseXform {
|
|
12045
12046
|
get tag() {
|
|
12046
12047
|
return "col";
|
|
@@ -12086,9 +12087,8 @@ var ExcelTS = (function(exports) {
|
|
|
12086
12087
|
if (model.styleId !== void 0) model.style = options.styles.getStyleModel(model.styleId);
|
|
12087
12088
|
}
|
|
12088
12089
|
};
|
|
12089
|
-
|
|
12090
|
-
//#
|
|
12091
|
-
//#region src/modules/excel/xlsx/xform/sheet/dimension-xform.ts
|
|
12090
|
+
//#endregion
|
|
12091
|
+
//#region src/modules/excel/xlsx/xform/sheet/dimension-xform.ts
|
|
12092
12092
|
var DimensionXform = class extends BaseXform {
|
|
12093
12093
|
get tag() {
|
|
12094
12094
|
return "dimension";
|
|
@@ -12108,9 +12108,8 @@ var ExcelTS = (function(exports) {
|
|
|
12108
12108
|
return false;
|
|
12109
12109
|
}
|
|
12110
12110
|
};
|
|
12111
|
-
|
|
12112
|
-
//#
|
|
12113
|
-
//#region src/modules/excel/xlsx/xform/sheet/hyperlink-xform.ts
|
|
12111
|
+
//#endregion
|
|
12112
|
+
//#region src/modules/excel/xlsx/xform/sheet/hyperlink-xform.ts
|
|
12114
12113
|
var HyperlinkXform = class extends BaseXform {
|
|
12115
12114
|
get tag() {
|
|
12116
12115
|
return "hyperlink";
|
|
@@ -12148,9 +12147,8 @@ var ExcelTS = (function(exports) {
|
|
|
12148
12147
|
return !!(model.target && /^[^!]+![a-zA-Z]+[\d]+$/.test(model.target));
|
|
12149
12148
|
}
|
|
12150
12149
|
};
|
|
12151
|
-
|
|
12152
|
-
//#
|
|
12153
|
-
//#region src/modules/excel/xlsx/xform/sheet/merge-cell-xform.ts
|
|
12150
|
+
//#endregion
|
|
12151
|
+
//#region src/modules/excel/xlsx/xform/sheet/merge-cell-xform.ts
|
|
12154
12152
|
var MergeCellXform = class extends BaseXform {
|
|
12155
12153
|
get tag() {
|
|
12156
12154
|
return "mergeCell";
|
|
@@ -12170,9 +12168,8 @@ var ExcelTS = (function(exports) {
|
|
|
12170
12168
|
return false;
|
|
12171
12169
|
}
|
|
12172
12170
|
};
|
|
12173
|
-
|
|
12174
|
-
//#
|
|
12175
|
-
//#region src/modules/excel/xlsx/xform/sheet/data-validations-xform.ts
|
|
12171
|
+
//#endregion
|
|
12172
|
+
//#region src/modules/excel/xlsx/xform/sheet/data-validations-xform.ts
|
|
12176
12173
|
function assign(definedName, attributes, name, defaultValue) {
|
|
12177
12174
|
const value = attributes[name];
|
|
12178
12175
|
if (value !== void 0) definedName[name] = value;
|
|
@@ -12362,9 +12359,8 @@ var ExcelTS = (function(exports) {
|
|
|
12362
12359
|
}
|
|
12363
12360
|
}
|
|
12364
12361
|
};
|
|
12365
|
-
|
|
12366
|
-
//#
|
|
12367
|
-
//#region src/modules/excel/xlsx/xform/sheet/page-setup-properties-xform.ts
|
|
12362
|
+
//#endregion
|
|
12363
|
+
//#region src/modules/excel/xlsx/xform/sheet/page-setup-properties-xform.ts
|
|
12368
12364
|
var PageSetupPropertiesXform = class extends BaseXform {
|
|
12369
12365
|
get tag() {
|
|
12370
12366
|
return "pageSetUpPr";
|
|
@@ -12388,9 +12384,8 @@ var ExcelTS = (function(exports) {
|
|
|
12388
12384
|
return false;
|
|
12389
12385
|
}
|
|
12390
12386
|
};
|
|
12391
|
-
|
|
12392
|
-
//#
|
|
12393
|
-
//#region src/modules/excel/xlsx/xform/sheet/outline-properties-xform.ts
|
|
12387
|
+
//#endregion
|
|
12388
|
+
//#region src/modules/excel/xlsx/xform/sheet/outline-properties-xform.ts
|
|
12394
12389
|
const isDefined = (attr) => typeof attr !== "undefined";
|
|
12395
12390
|
var OutlinePropertiesXform = class extends BaseXform {
|
|
12396
12391
|
get tag() {
|
|
@@ -12421,9 +12416,8 @@ var ExcelTS = (function(exports) {
|
|
|
12421
12416
|
return false;
|
|
12422
12417
|
}
|
|
12423
12418
|
};
|
|
12424
|
-
|
|
12425
|
-
//#
|
|
12426
|
-
//#region src/modules/excel/xlsx/xform/sheet/sheet-properties-xform.ts
|
|
12419
|
+
//#endregion
|
|
12420
|
+
//#region src/modules/excel/xlsx/xform/sheet/sheet-properties-xform.ts
|
|
12427
12421
|
var SheetPropertiesXform = class extends BaseXform {
|
|
12428
12422
|
constructor() {
|
|
12429
12423
|
super();
|
|
@@ -12487,9 +12481,8 @@ var ExcelTS = (function(exports) {
|
|
|
12487
12481
|
return false;
|
|
12488
12482
|
}
|
|
12489
12483
|
};
|
|
12490
|
-
|
|
12491
|
-
//#
|
|
12492
|
-
//#region src/modules/excel/xlsx/xform/sheet/sheet-format-properties-xform.ts
|
|
12484
|
+
//#endregion
|
|
12485
|
+
//#region src/modules/excel/xlsx/xform/sheet/sheet-format-properties-xform.ts
|
|
12493
12486
|
var SheetFormatPropertiesXform = class extends BaseXform {
|
|
12494
12487
|
get tag() {
|
|
12495
12488
|
return "sheetFormatPr";
|
|
@@ -12526,9 +12519,8 @@ var ExcelTS = (function(exports) {
|
|
|
12526
12519
|
return false;
|
|
12527
12520
|
}
|
|
12528
12521
|
};
|
|
12529
|
-
|
|
12530
|
-
//#
|
|
12531
|
-
//#region src/modules/excel/xlsx/xform/sheet/sheet-view-xform.ts
|
|
12522
|
+
//#endregion
|
|
12523
|
+
//#region src/modules/excel/xlsx/xform/sheet/sheet-view-xform.ts
|
|
12532
12524
|
const VIEW_STATES = {
|
|
12533
12525
|
frozen: "frozen",
|
|
12534
12526
|
frozenSplit: "frozen",
|
|
@@ -12693,9 +12685,8 @@ var ExcelTS = (function(exports) {
|
|
|
12693
12685
|
}
|
|
12694
12686
|
reconcile() {}
|
|
12695
12687
|
};
|
|
12696
|
-
|
|
12697
|
-
//#
|
|
12698
|
-
//#region src/modules/excel/xlsx/xform/sheet/sheet-protection-xform.ts
|
|
12688
|
+
//#endregion
|
|
12689
|
+
//#region src/modules/excel/xlsx/xform/sheet/sheet-protection-xform.ts
|
|
12699
12690
|
function booleanToXml$2(model, value) {
|
|
12700
12691
|
return model ? value : void 0;
|
|
12701
12692
|
}
|
|
@@ -12771,9 +12762,8 @@ var ExcelTS = (function(exports) {
|
|
|
12771
12762
|
return false;
|
|
12772
12763
|
}
|
|
12773
12764
|
};
|
|
12774
|
-
|
|
12775
|
-
//#
|
|
12776
|
-
//#region src/modules/excel/xlsx/xform/sheet/page-margins-xform.ts
|
|
12765
|
+
//#endregion
|
|
12766
|
+
//#region src/modules/excel/xlsx/xform/sheet/page-margins-xform.ts
|
|
12777
12767
|
var PageMarginsXform = class extends BaseXform {
|
|
12778
12768
|
get tag() {
|
|
12779
12769
|
return "pageMargins";
|
|
@@ -12811,9 +12801,8 @@ var ExcelTS = (function(exports) {
|
|
|
12811
12801
|
return false;
|
|
12812
12802
|
}
|
|
12813
12803
|
};
|
|
12814
|
-
|
|
12815
|
-
//#
|
|
12816
|
-
//#region src/modules/excel/xlsx/xform/sheet/page-setup-xform.ts
|
|
12804
|
+
//#endregion
|
|
12805
|
+
//#region src/modules/excel/xlsx/xform/sheet/page-setup-xform.ts
|
|
12817
12806
|
function booleanToXml$1(model) {
|
|
12818
12807
|
return model ? "1" : void 0;
|
|
12819
12808
|
}
|
|
@@ -12904,9 +12893,8 @@ var ExcelTS = (function(exports) {
|
|
|
12904
12893
|
return false;
|
|
12905
12894
|
}
|
|
12906
12895
|
};
|
|
12907
|
-
|
|
12908
|
-
//#
|
|
12909
|
-
//#region src/modules/excel/xlsx/xform/sheet/print-options-xform.ts
|
|
12896
|
+
//#endregion
|
|
12897
|
+
//#region src/modules/excel/xlsx/xform/sheet/print-options-xform.ts
|
|
12910
12898
|
function booleanToXml(model) {
|
|
12911
12899
|
return model ? "1" : void 0;
|
|
12912
12900
|
}
|
|
@@ -12943,9 +12931,8 @@ var ExcelTS = (function(exports) {
|
|
|
12943
12931
|
return false;
|
|
12944
12932
|
}
|
|
12945
12933
|
};
|
|
12946
|
-
|
|
12947
|
-
//#
|
|
12948
|
-
//#region src/modules/excel/xlsx/xform/sheet/auto-filter-xform.ts
|
|
12934
|
+
//#endregion
|
|
12935
|
+
//#region src/modules/excel/xlsx/xform/sheet/auto-filter-xform.ts
|
|
12949
12936
|
var AutoFilterXform$1 = class extends BaseXform {
|
|
12950
12937
|
get tag() {
|
|
12951
12938
|
return "autoFilter";
|
|
@@ -12966,9 +12953,8 @@ var ExcelTS = (function(exports) {
|
|
|
12966
12953
|
if (node.name === "autoFilter") this.model = node.attributes.ref;
|
|
12967
12954
|
}
|
|
12968
12955
|
};
|
|
12969
|
-
|
|
12970
|
-
//#
|
|
12971
|
-
//#region src/modules/excel/xlsx/xform/sheet/picture-xform.ts
|
|
12956
|
+
//#endregion
|
|
12957
|
+
//#region src/modules/excel/xlsx/xform/sheet/picture-xform.ts
|
|
12972
12958
|
var PictureXform = class extends BaseXform {
|
|
12973
12959
|
get tag() {
|
|
12974
12960
|
return "picture";
|
|
@@ -12989,9 +12975,8 @@ var ExcelTS = (function(exports) {
|
|
|
12989
12975
|
return false;
|
|
12990
12976
|
}
|
|
12991
12977
|
};
|
|
12992
|
-
|
|
12993
|
-
//#
|
|
12994
|
-
//#region src/modules/excel/xlsx/xform/sheet/drawing-xform.ts
|
|
12978
|
+
//#endregion
|
|
12979
|
+
//#region src/modules/excel/xlsx/xform/sheet/drawing-xform.ts
|
|
12995
12980
|
var DrawingXform$1 = class extends BaseXform {
|
|
12996
12981
|
get tag() {
|
|
12997
12982
|
return "drawing";
|
|
@@ -13012,9 +12997,8 @@ var ExcelTS = (function(exports) {
|
|
|
13012
12997
|
return false;
|
|
13013
12998
|
}
|
|
13014
12999
|
};
|
|
13015
|
-
|
|
13016
|
-
//#
|
|
13017
|
-
//#region src/modules/excel/xlsx/xform/sheet/table-part-xform.ts
|
|
13000
|
+
//#endregion
|
|
13001
|
+
//#region src/modules/excel/xlsx/xform/sheet/table-part-xform.ts
|
|
13018
13002
|
var TablePartXform = class extends BaseXform {
|
|
13019
13003
|
get tag() {
|
|
13020
13004
|
return "tablePart";
|
|
@@ -13035,10 +13019,9 @@ var ExcelTS = (function(exports) {
|
|
|
13035
13019
|
return false;
|
|
13036
13020
|
}
|
|
13037
13021
|
};
|
|
13038
|
-
|
|
13039
|
-
//#
|
|
13040
|
-
|
|
13041
|
-
/**
|
|
13022
|
+
//#endregion
|
|
13023
|
+
//#region src/modules/excel/xlsx/xform/sheet/page-breaks-xform.ts
|
|
13024
|
+
/**
|
|
13042
13025
|
* Xform for individual page break (brk element)
|
|
13043
13026
|
* Used by both RowBreaksXform and ColBreaksXform
|
|
13044
13027
|
*/
|
|
@@ -13067,10 +13050,9 @@ var ExcelTS = (function(exports) {
|
|
|
13067
13050
|
return false;
|
|
13068
13051
|
}
|
|
13069
13052
|
};
|
|
13070
|
-
|
|
13071
|
-
//#
|
|
13072
|
-
|
|
13073
|
-
/**
|
|
13053
|
+
//#endregion
|
|
13054
|
+
//#region src/modules/excel/xlsx/xform/sheet/row-breaks-xform.ts
|
|
13055
|
+
/**
|
|
13074
13056
|
* Xform for row page breaks (rowBreaks element in worksheet XML)
|
|
13075
13057
|
* Used to define manual page breaks between rows when printing.
|
|
13076
13058
|
*/
|
|
@@ -13093,10 +13075,9 @@ var ExcelTS = (function(exports) {
|
|
|
13093
13075
|
}
|
|
13094
13076
|
}
|
|
13095
13077
|
};
|
|
13096
|
-
|
|
13097
|
-
//#
|
|
13098
|
-
|
|
13099
|
-
/**
|
|
13078
|
+
//#endregion
|
|
13079
|
+
//#region src/modules/excel/xlsx/xform/sheet/col-breaks-xform.ts
|
|
13080
|
+
/**
|
|
13100
13081
|
* Xform for column page breaks (colBreaks element in worksheet XML)
|
|
13101
13082
|
* Used to define manual page breaks between columns when printing.
|
|
13102
13083
|
*
|
|
@@ -13125,9 +13106,8 @@ var ExcelTS = (function(exports) {
|
|
|
13125
13106
|
}
|
|
13126
13107
|
}
|
|
13127
13108
|
};
|
|
13128
|
-
|
|
13129
|
-
//#
|
|
13130
|
-
//#region src/modules/excel/xlsx/xform/sheet/header-footer-xform.ts
|
|
13109
|
+
//#endregion
|
|
13110
|
+
//#region src/modules/excel/xlsx/xform/sheet/header-footer-xform.ts
|
|
13131
13111
|
var HeaderFooterXform = class extends BaseXform {
|
|
13132
13112
|
get tag() {
|
|
13133
13113
|
return "headerFooter";
|
|
@@ -13240,9 +13220,8 @@ var ExcelTS = (function(exports) {
|
|
|
13240
13220
|
}
|
|
13241
13221
|
}
|
|
13242
13222
|
};
|
|
13243
|
-
|
|
13244
|
-
//#
|
|
13245
|
-
//#region src/modules/excel/xlsx/xform/composite-xform.ts
|
|
13223
|
+
//#endregion
|
|
13224
|
+
//#region src/modules/excel/xlsx/xform/composite-xform.ts
|
|
13246
13225
|
var CompositeXform = class extends BaseXform {
|
|
13247
13226
|
createNewModel(_node) {
|
|
13248
13227
|
return {};
|
|
@@ -13279,9 +13258,8 @@ var ExcelTS = (function(exports) {
|
|
|
13279
13258
|
return "";
|
|
13280
13259
|
}
|
|
13281
13260
|
};
|
|
13282
|
-
|
|
13283
|
-
//#
|
|
13284
|
-
//#region src/modules/excel/xlsx/xform/sheet/cf/cfvo-xform.ts
|
|
13261
|
+
//#endregion
|
|
13262
|
+
//#region src/modules/excel/xlsx/xform/sheet/cf/cfvo-xform.ts
|
|
13285
13263
|
var CfvoXform = class extends BaseXform {
|
|
13286
13264
|
get tag() {
|
|
13287
13265
|
return "cfvo";
|
|
@@ -13302,9 +13280,8 @@ var ExcelTS = (function(exports) {
|
|
|
13302
13280
|
return name !== this.tag;
|
|
13303
13281
|
}
|
|
13304
13282
|
};
|
|
13305
|
-
|
|
13306
|
-
//#
|
|
13307
|
-
//#region src/modules/excel/xlsx/xform/sheet/cf/databar-xform.ts
|
|
13283
|
+
//#endregion
|
|
13284
|
+
//#region src/modules/excel/xlsx/xform/sheet/cf/databar-xform.ts
|
|
13308
13285
|
var DatabarXform = class extends CompositeXform {
|
|
13309
13286
|
constructor() {
|
|
13310
13287
|
super();
|
|
@@ -13338,9 +13315,8 @@ var ExcelTS = (function(exports) {
|
|
|
13338
13315
|
}
|
|
13339
13316
|
}
|
|
13340
13317
|
};
|
|
13341
|
-
|
|
13342
|
-
//#
|
|
13343
|
-
//#region src/modules/excel/xlsx/xform/sheet/cf/ext-lst-ref-xform.ts
|
|
13318
|
+
//#endregion
|
|
13319
|
+
//#region src/modules/excel/xlsx/xform/sheet/cf/ext-lst-ref-xform.ts
|
|
13344
13320
|
var X14IdXform = class extends BaseXform {
|
|
13345
13321
|
get tag() {
|
|
13346
13322
|
return "x14:id";
|
|
@@ -13401,9 +13377,8 @@ var ExcelTS = (function(exports) {
|
|
|
13401
13377
|
Object.assign(this.model, parser.model);
|
|
13402
13378
|
}
|
|
13403
13379
|
};
|
|
13404
|
-
|
|
13405
|
-
//#
|
|
13406
|
-
//#region src/modules/excel/xlsx/xform/sheet/cf/formula-xform.ts
|
|
13380
|
+
//#endregion
|
|
13381
|
+
//#region src/modules/excel/xlsx/xform/sheet/cf/formula-xform.ts
|
|
13407
13382
|
var FormulaXform = class extends BaseXform {
|
|
13408
13383
|
get tag() {
|
|
13409
13384
|
return "formula";
|
|
@@ -13421,9 +13396,8 @@ var ExcelTS = (function(exports) {
|
|
|
13421
13396
|
return name !== this.tag;
|
|
13422
13397
|
}
|
|
13423
13398
|
};
|
|
13424
|
-
|
|
13425
|
-
//#
|
|
13426
|
-
//#region src/modules/excel/xlsx/xform/sheet/cf/color-scale-xform.ts
|
|
13399
|
+
//#endregion
|
|
13400
|
+
//#region src/modules/excel/xlsx/xform/sheet/cf/color-scale-xform.ts
|
|
13427
13401
|
var ColorScaleXform = class extends CompositeXform {
|
|
13428
13402
|
constructor() {
|
|
13429
13403
|
super();
|
|
@@ -13455,9 +13429,8 @@ var ExcelTS = (function(exports) {
|
|
|
13455
13429
|
this.model[name].push(parser.model);
|
|
13456
13430
|
}
|
|
13457
13431
|
};
|
|
13458
|
-
|
|
13459
|
-
//#
|
|
13460
|
-
//#region src/modules/excel/xlsx/xform/sheet/cf/icon-set-xform.ts
|
|
13432
|
+
//#endregion
|
|
13433
|
+
//#region src/modules/excel/xlsx/xform/sheet/cf/icon-set-xform.ts
|
|
13461
13434
|
var IconSetXform = class extends CompositeXform {
|
|
13462
13435
|
constructor() {
|
|
13463
13436
|
super();
|
|
@@ -13489,9 +13462,8 @@ var ExcelTS = (function(exports) {
|
|
|
13489
13462
|
this.model[name].push(parser.model);
|
|
13490
13463
|
}
|
|
13491
13464
|
};
|
|
13492
|
-
|
|
13493
|
-
//#
|
|
13494
|
-
//#region src/modules/excel/xlsx/xform/sheet/cf/cf-rule-xform.ts
|
|
13465
|
+
//#endregion
|
|
13466
|
+
//#region src/modules/excel/xlsx/xform/sheet/cf/cf-rule-xform.ts
|
|
13495
13467
|
const extIcons$1 = {
|
|
13496
13468
|
"3Triangles": true,
|
|
13497
13469
|
"3Stars": true,
|
|
@@ -13708,9 +13680,8 @@ var ExcelTS = (function(exports) {
|
|
|
13708
13680
|
}
|
|
13709
13681
|
}
|
|
13710
13682
|
};
|
|
13711
|
-
|
|
13712
|
-
//#
|
|
13713
|
-
//#region src/modules/excel/xlsx/xform/sheet/cf/conditional-formatting-xform.ts
|
|
13683
|
+
//#endregion
|
|
13684
|
+
//#region src/modules/excel/xlsx/xform/sheet/cf/conditional-formatting-xform.ts
|
|
13714
13685
|
var ConditionalFormattingXform = class extends CompositeXform {
|
|
13715
13686
|
constructor() {
|
|
13716
13687
|
super();
|
|
@@ -13740,9 +13711,8 @@ var ExcelTS = (function(exports) {
|
|
|
13740
13711
|
this.model.rules.push(parser.model);
|
|
13741
13712
|
}
|
|
13742
13713
|
};
|
|
13743
|
-
|
|
13744
|
-
//#
|
|
13745
|
-
//#region src/modules/excel/xlsx/xform/sheet/cf/conditional-formattings-xform.ts
|
|
13714
|
+
//#endregion
|
|
13715
|
+
//#region src/modules/excel/xlsx/xform/sheet/cf/conditional-formattings-xform.ts
|
|
13746
13716
|
var ConditionalFormattingsXform = class extends BaseXform {
|
|
13747
13717
|
constructor() {
|
|
13748
13718
|
super();
|
|
@@ -13810,9 +13780,8 @@ var ExcelTS = (function(exports) {
|
|
|
13810
13780
|
});
|
|
13811
13781
|
}
|
|
13812
13782
|
};
|
|
13813
|
-
|
|
13814
|
-
//#
|
|
13815
|
-
//#region src/modules/excel/xlsx/xform/sheet/cf-ext/f-ext-xform.ts
|
|
13783
|
+
//#endregion
|
|
13784
|
+
//#region src/modules/excel/xlsx/xform/sheet/cf-ext/f-ext-xform.ts
|
|
13816
13785
|
var FExtXform = class extends BaseXform {
|
|
13817
13786
|
get tag() {
|
|
13818
13787
|
return "xm:f";
|
|
@@ -13830,9 +13799,8 @@ var ExcelTS = (function(exports) {
|
|
|
13830
13799
|
return name !== this.tag;
|
|
13831
13800
|
}
|
|
13832
13801
|
};
|
|
13833
|
-
|
|
13834
|
-
//#
|
|
13835
|
-
//#region src/modules/excel/xlsx/xform/sheet/cf-ext/cfvo-ext-xform.ts
|
|
13802
|
+
//#endregion
|
|
13803
|
+
//#region src/modules/excel/xlsx/xform/sheet/cf-ext/cfvo-ext-xform.ts
|
|
13836
13804
|
var CfvoExtXform = class extends CompositeXform {
|
|
13837
13805
|
constructor() {
|
|
13838
13806
|
super();
|
|
@@ -13857,9 +13825,8 @@ var ExcelTS = (function(exports) {
|
|
|
13857
13825
|
}
|
|
13858
13826
|
}
|
|
13859
13827
|
};
|
|
13860
|
-
|
|
13861
|
-
//#
|
|
13862
|
-
//#region src/modules/excel/xlsx/xform/sheet/cf-ext/databar-ext-xform.ts
|
|
13828
|
+
//#endregion
|
|
13829
|
+
//#region src/modules/excel/xlsx/xform/sheet/cf-ext/databar-ext-xform.ts
|
|
13863
13830
|
var DatabarExtXform = class extends CompositeXform {
|
|
13864
13831
|
constructor() {
|
|
13865
13832
|
super();
|
|
@@ -13922,9 +13889,8 @@ var ExcelTS = (function(exports) {
|
|
|
13922
13889
|
}
|
|
13923
13890
|
}
|
|
13924
13891
|
};
|
|
13925
|
-
|
|
13926
|
-
//#
|
|
13927
|
-
//#region src/modules/excel/xlsx/xform/sheet/cf-ext/cf-icon-ext-xform.ts
|
|
13892
|
+
//#endregion
|
|
13893
|
+
//#region src/modules/excel/xlsx/xform/sheet/cf-ext/cf-icon-ext-xform.ts
|
|
13928
13894
|
var CfIconExtXform = class extends BaseXform {
|
|
13929
13895
|
get tag() {
|
|
13930
13896
|
return "x14:cfIcon";
|
|
@@ -13945,9 +13911,8 @@ var ExcelTS = (function(exports) {
|
|
|
13945
13911
|
return name !== this.tag;
|
|
13946
13912
|
}
|
|
13947
13913
|
};
|
|
13948
|
-
|
|
13949
|
-
//#
|
|
13950
|
-
//#region src/modules/excel/xlsx/xform/sheet/cf-ext/icon-set-ext-xform.ts
|
|
13914
|
+
//#endregion
|
|
13915
|
+
//#region src/modules/excel/xlsx/xform/sheet/cf-ext/icon-set-ext-xform.ts
|
|
13951
13916
|
var IconSetExtXform = class extends CompositeXform {
|
|
13952
13917
|
constructor() {
|
|
13953
13918
|
super();
|
|
@@ -13999,9 +13964,8 @@ var ExcelTS = (function(exports) {
|
|
|
13999
13964
|
}
|
|
14000
13965
|
}
|
|
14001
13966
|
};
|
|
14002
|
-
|
|
14003
|
-
//#
|
|
14004
|
-
//#region src/utils/uuid.ts
|
|
13967
|
+
//#endregion
|
|
13968
|
+
//#region src/utils/uuid.ts
|
|
14005
13969
|
function toHex(byte) {
|
|
14006
13970
|
return byte.toString(16).padStart(2, "0");
|
|
14007
13971
|
}
|
|
@@ -14032,9 +13996,8 @@ var ExcelTS = (function(exports) {
|
|
|
14032
13996
|
for (let i = 0; i < bytes.length; i++) bytes[i] = Math.floor(Math.random() * 256);
|
|
14033
13997
|
return bytesToUuidV4(bytes);
|
|
14034
13998
|
}
|
|
14035
|
-
|
|
14036
|
-
//#
|
|
14037
|
-
//#region src/modules/excel/xlsx/xform/sheet/cf-ext/cf-rule-ext-xform.ts
|
|
13999
|
+
//#endregion
|
|
14000
|
+
//#region src/modules/excel/xlsx/xform/sheet/cf-ext/cf-rule-ext-xform.ts
|
|
14038
14001
|
const extIcons = {
|
|
14039
14002
|
"3Triangles": true,
|
|
14040
14003
|
"3Stars": true,
|
|
@@ -14100,9 +14063,8 @@ var ExcelTS = (function(exports) {
|
|
|
14100
14063
|
Object.assign(this.model, parser.model);
|
|
14101
14064
|
}
|
|
14102
14065
|
};
|
|
14103
|
-
|
|
14104
|
-
//#
|
|
14105
|
-
//#region src/modules/excel/xlsx/xform/sheet/cf-ext/sqref-ext-xform.ts
|
|
14066
|
+
//#endregion
|
|
14067
|
+
//#region src/modules/excel/xlsx/xform/sheet/cf-ext/sqref-ext-xform.ts
|
|
14106
14068
|
var SqrefExtXform = class extends BaseXform {
|
|
14107
14069
|
get tag() {
|
|
14108
14070
|
return "xm:sqref";
|
|
@@ -14120,9 +14082,8 @@ var ExcelTS = (function(exports) {
|
|
|
14120
14082
|
return name !== this.tag;
|
|
14121
14083
|
}
|
|
14122
14084
|
};
|
|
14123
|
-
|
|
14124
|
-
//#
|
|
14125
|
-
//#region src/modules/excel/xlsx/xform/sheet/cf-ext/conditional-formatting-ext-xform.ts
|
|
14085
|
+
//#endregion
|
|
14086
|
+
//#region src/modules/excel/xlsx/xform/sheet/cf-ext/conditional-formatting-ext-xform.ts
|
|
14126
14087
|
var ConditionalFormattingExtXform = class extends CompositeXform {
|
|
14127
14088
|
constructor() {
|
|
14128
14089
|
super();
|
|
@@ -14160,9 +14121,8 @@ var ExcelTS = (function(exports) {
|
|
|
14160
14121
|
}
|
|
14161
14122
|
}
|
|
14162
14123
|
};
|
|
14163
|
-
|
|
14164
|
-
//#
|
|
14165
|
-
//#region src/modules/excel/xlsx/xform/sheet/cf-ext/conditional-formattings-ext-xform.ts
|
|
14124
|
+
//#endregion
|
|
14125
|
+
//#region src/modules/excel/xlsx/xform/sheet/cf-ext/conditional-formattings-ext-xform.ts
|
|
14166
14126
|
var ConditionalFormattingsExtXform = class extends CompositeXform {
|
|
14167
14127
|
constructor() {
|
|
14168
14128
|
super();
|
|
@@ -14194,9 +14154,8 @@ var ExcelTS = (function(exports) {
|
|
|
14194
14154
|
this.model.push(parser.model);
|
|
14195
14155
|
}
|
|
14196
14156
|
};
|
|
14197
|
-
|
|
14198
|
-
//#
|
|
14199
|
-
//#region src/modules/excel/xlsx/xform/sheet/ext-lst-xform.ts
|
|
14157
|
+
//#endregion
|
|
14158
|
+
//#region src/modules/excel/xlsx/xform/sheet/ext-lst-xform.ts
|
|
14200
14159
|
var ExtXform$1 = class extends CompositeXform {
|
|
14201
14160
|
constructor() {
|
|
14202
14161
|
super();
|
|
@@ -14253,9 +14212,8 @@ var ExcelTS = (function(exports) {
|
|
|
14253
14212
|
this.model[name] = parser.model;
|
|
14254
14213
|
}
|
|
14255
14214
|
};
|
|
14256
|
-
|
|
14257
|
-
//#
|
|
14258
|
-
//#region src/modules/excel/xlsx/xform/sheet/worksheet-xform.ts
|
|
14215
|
+
//#endregion
|
|
14216
|
+
//#region src/modules/excel/xlsx/xform/sheet/worksheet-xform.ts
|
|
14259
14217
|
const mergeRule = (rule, extRule) => {
|
|
14260
14218
|
Object.keys(extRule).forEach((key) => {
|
|
14261
14219
|
const value = rule[key];
|
|
@@ -14800,9 +14758,8 @@ var ExcelTS = (function(exports) {
|
|
|
14800
14758
|
delete model.comments;
|
|
14801
14759
|
}
|
|
14802
14760
|
};
|
|
14803
|
-
|
|
14804
|
-
//#
|
|
14805
|
-
//#region src/modules/excel/xlsx/xform/core/feature-property-bag-xform.ts
|
|
14761
|
+
//#endregion
|
|
14762
|
+
//#region src/modules/excel/xlsx/xform/core/feature-property-bag-xform.ts
|
|
14806
14763
|
var FeaturePropertyBagXform = class extends BaseXform {
|
|
14807
14764
|
render(xmlStream) {
|
|
14808
14765
|
xmlStream.openXml({
|
|
@@ -14836,9 +14793,8 @@ var ExcelTS = (function(exports) {
|
|
|
14836
14793
|
return false;
|
|
14837
14794
|
}
|
|
14838
14795
|
};
|
|
14839
|
-
|
|
14840
|
-
//#
|
|
14841
|
-
//#region src/modules/excel/xlsx/xform/drawing/base-cell-anchor-xform.ts
|
|
14796
|
+
//#endregion
|
|
14797
|
+
//#region src/modules/excel/xlsx/xform/drawing/base-cell-anchor-xform.ts
|
|
14842
14798
|
var BaseCellAnchorXform = class extends BaseXform {
|
|
14843
14799
|
parseOpen(node) {
|
|
14844
14800
|
if (this.parser) {
|
|
@@ -14871,9 +14827,8 @@ var ExcelTS = (function(exports) {
|
|
|
14871
14827
|
}
|
|
14872
14828
|
}
|
|
14873
14829
|
};
|
|
14874
|
-
|
|
14875
|
-
//#
|
|
14876
|
-
//#region src/modules/excel/xlsx/xform/drawing/cell-position-xform.ts
|
|
14830
|
+
//#endregion
|
|
14831
|
+
//#region src/modules/excel/xlsx/xform/drawing/cell-position-xform.ts
|
|
14877
14832
|
var CellPositionXform = class extends BaseXform {
|
|
14878
14833
|
constructor(options) {
|
|
14879
14834
|
super();
|
|
@@ -14948,9 +14903,8 @@ var ExcelTS = (function(exports) {
|
|
|
14948
14903
|
}
|
|
14949
14904
|
}
|
|
14950
14905
|
};
|
|
14951
|
-
|
|
14952
|
-
//#
|
|
14953
|
-
//#region src/modules/excel/xlsx/xform/drawing/blip-xform.ts
|
|
14906
|
+
//#endregion
|
|
14907
|
+
//#region src/modules/excel/xlsx/xform/drawing/blip-xform.ts
|
|
14954
14908
|
var BlipXform = class extends BaseXform {
|
|
14955
14909
|
constructor() {
|
|
14956
14910
|
super();
|
|
@@ -14982,9 +14936,8 @@ var ExcelTS = (function(exports) {
|
|
|
14982
14936
|
}
|
|
14983
14937
|
}
|
|
14984
14938
|
};
|
|
14985
|
-
|
|
14986
|
-
//#
|
|
14987
|
-
//#region src/modules/excel/xlsx/xform/drawing/blip-fill-xform.ts
|
|
14939
|
+
//#endregion
|
|
14940
|
+
//#region src/modules/excel/xlsx/xform/drawing/blip-fill-xform.ts
|
|
14988
14941
|
var BlipFillXform = class extends BaseXform {
|
|
14989
14942
|
constructor() {
|
|
14990
14943
|
super();
|
|
@@ -15031,9 +14984,8 @@ var ExcelTS = (function(exports) {
|
|
|
15031
14984
|
}
|
|
15032
14985
|
}
|
|
15033
14986
|
};
|
|
15034
|
-
|
|
15035
|
-
//#
|
|
15036
|
-
//#region src/modules/excel/xlsx/xform/drawing/hlink-click-xform.ts
|
|
14987
|
+
//#endregion
|
|
14988
|
+
//#region src/modules/excel/xlsx/xform/drawing/hlink-click-xform.ts
|
|
15037
14989
|
var HLinkClickXform = class extends BaseXform {
|
|
15038
14990
|
constructor() {
|
|
15039
14991
|
super();
|
|
@@ -15066,9 +15018,8 @@ var ExcelTS = (function(exports) {
|
|
|
15066
15018
|
return false;
|
|
15067
15019
|
}
|
|
15068
15020
|
};
|
|
15069
|
-
|
|
15070
|
-
//#
|
|
15071
|
-
//#region src/modules/excel/xlsx/xform/drawing/ext-lst-xform.ts
|
|
15021
|
+
//#endregion
|
|
15022
|
+
//#region src/modules/excel/xlsx/xform/drawing/ext-lst-xform.ts
|
|
15072
15023
|
var ExtLstXform = class extends BaseXform {
|
|
15073
15024
|
get tag() {
|
|
15074
15025
|
return "a:extLst";
|
|
@@ -15097,9 +15048,8 @@ var ExcelTS = (function(exports) {
|
|
|
15097
15048
|
}
|
|
15098
15049
|
}
|
|
15099
15050
|
};
|
|
15100
|
-
|
|
15101
|
-
//#
|
|
15102
|
-
//#region src/modules/excel/xlsx/xform/drawing/c-nv-pr-xform.ts
|
|
15051
|
+
//#endregion
|
|
15052
|
+
//#region src/modules/excel/xlsx/xform/drawing/c-nv-pr-xform.ts
|
|
15103
15053
|
var CNvPrXform = class extends BaseXform {
|
|
15104
15054
|
constructor() {
|
|
15105
15055
|
super();
|
|
@@ -15150,9 +15100,8 @@ var ExcelTS = (function(exports) {
|
|
|
15150
15100
|
}
|
|
15151
15101
|
}
|
|
15152
15102
|
};
|
|
15153
|
-
|
|
15154
|
-
//#
|
|
15155
|
-
//#region src/modules/excel/xlsx/xform/drawing/c-nv-pic-pr-xform.ts
|
|
15103
|
+
//#endregion
|
|
15104
|
+
//#region src/modules/excel/xlsx/xform/drawing/c-nv-pic-pr-xform.ts
|
|
15156
15105
|
var CNvPicPrXform = class extends BaseXform {
|
|
15157
15106
|
get tag() {
|
|
15158
15107
|
return "xdr:cNvPicPr";
|
|
@@ -15176,9 +15125,8 @@ var ExcelTS = (function(exports) {
|
|
|
15176
15125
|
}
|
|
15177
15126
|
}
|
|
15178
15127
|
};
|
|
15179
|
-
|
|
15180
|
-
//#
|
|
15181
|
-
//#region src/modules/excel/xlsx/xform/drawing/nv-pic-pr-xform.ts
|
|
15128
|
+
//#endregion
|
|
15129
|
+
//#region src/modules/excel/xlsx/xform/drawing/nv-pic-pr-xform.ts
|
|
15182
15130
|
var NvPicPrXform = class extends BaseXform {
|
|
15183
15131
|
constructor() {
|
|
15184
15132
|
super();
|
|
@@ -15226,9 +15174,8 @@ var ExcelTS = (function(exports) {
|
|
|
15226
15174
|
}
|
|
15227
15175
|
}
|
|
15228
15176
|
};
|
|
15229
|
-
|
|
15230
|
-
//#
|
|
15231
|
-
//#region src/modules/excel/xlsx/xform/drawing/sp-pr.ts
|
|
15177
|
+
//#endregion
|
|
15178
|
+
//#region src/modules/excel/xlsx/xform/drawing/sp-pr.ts
|
|
15232
15179
|
const spPrJSON = {
|
|
15233
15180
|
tag: "xdr:spPr",
|
|
15234
15181
|
c: [{
|
|
@@ -15252,9 +15199,8 @@ var ExcelTS = (function(exports) {
|
|
|
15252
15199
|
c: [{ tag: "a:avLst" }]
|
|
15253
15200
|
}]
|
|
15254
15201
|
};
|
|
15255
|
-
|
|
15256
|
-
//#
|
|
15257
|
-
//#region src/modules/excel/xlsx/xform/drawing/pic-xform.ts
|
|
15202
|
+
//#endregion
|
|
15203
|
+
//#region src/modules/excel/xlsx/xform/drawing/pic-xform.ts
|
|
15258
15204
|
var PicXform = class extends BaseXform {
|
|
15259
15205
|
constructor() {
|
|
15260
15206
|
super();
|
|
@@ -15308,9 +15254,8 @@ var ExcelTS = (function(exports) {
|
|
|
15308
15254
|
}
|
|
15309
15255
|
}
|
|
15310
15256
|
};
|
|
15311
|
-
|
|
15312
|
-
//#
|
|
15313
|
-
//#region src/modules/excel/xlsx/xform/drawing/sp-xform.ts
|
|
15257
|
+
//#endregion
|
|
15258
|
+
//#region src/modules/excel/xlsx/xform/drawing/sp-xform.ts
|
|
15314
15259
|
var SpXform = class extends BaseXform {
|
|
15315
15260
|
get tag() {
|
|
15316
15261
|
return "xdr:sp";
|
|
@@ -15436,9 +15381,8 @@ var ExcelTS = (function(exports) {
|
|
|
15436
15381
|
xmlStream.closeNode();
|
|
15437
15382
|
}
|
|
15438
15383
|
};
|
|
15439
|
-
|
|
15440
|
-
//#
|
|
15441
|
-
//#region src/modules/excel/xlsx/xform/drawing/two-cell-anchor-xform.ts
|
|
15384
|
+
//#endregion
|
|
15385
|
+
//#region src/modules/excel/xlsx/xform/drawing/two-cell-anchor-xform.ts
|
|
15442
15386
|
var TwoCellAnchorXform = class extends BaseCellAnchorXform {
|
|
15443
15387
|
constructor() {
|
|
15444
15388
|
super();
|
|
@@ -15496,10 +15440,9 @@ var ExcelTS = (function(exports) {
|
|
|
15496
15440
|
model.medium = this.reconcilePicture(model.picture, options);
|
|
15497
15441
|
}
|
|
15498
15442
|
};
|
|
15499
|
-
|
|
15500
|
-
//#
|
|
15501
|
-
|
|
15502
|
-
/** https://en.wikipedia.org/wiki/Office_Open_XML_file_formats#DrawingML */
|
|
15443
|
+
//#endregion
|
|
15444
|
+
//#region src/modules/excel/xlsx/xform/drawing/ext-xform.ts
|
|
15445
|
+
/** https://en.wikipedia.org/wiki/Office_Open_XML_file_formats#DrawingML */
|
|
15503
15446
|
const EMU_PER_PIXEL_AT_96_DPI = 9525;
|
|
15504
15447
|
var ExtXform = class extends BaseXform {
|
|
15505
15448
|
constructor(options) {
|
|
@@ -15534,9 +15477,8 @@ var ExcelTS = (function(exports) {
|
|
|
15534
15477
|
return false;
|
|
15535
15478
|
}
|
|
15536
15479
|
};
|
|
15537
|
-
|
|
15538
|
-
//#
|
|
15539
|
-
//#region src/modules/excel/xlsx/xform/drawing/one-cell-anchor-xform.ts
|
|
15480
|
+
//#endregion
|
|
15481
|
+
//#region src/modules/excel/xlsx/xform/drawing/one-cell-anchor-xform.ts
|
|
15540
15482
|
var OneCellAnchorXform = class extends BaseCellAnchorXform {
|
|
15541
15483
|
constructor() {
|
|
15542
15484
|
super();
|
|
@@ -15579,9 +15521,8 @@ var ExcelTS = (function(exports) {
|
|
|
15579
15521
|
model.medium = this.reconcilePicture(model.picture, options);
|
|
15580
15522
|
}
|
|
15581
15523
|
};
|
|
15582
|
-
|
|
15583
|
-
//#
|
|
15584
|
-
//#region src/modules/excel/xlsx/xform/drawing/drawing-xform.ts
|
|
15524
|
+
//#endregion
|
|
15525
|
+
//#region src/modules/excel/xlsx/xform/drawing/drawing-xform.ts
|
|
15585
15526
|
function getAnchorType(model) {
|
|
15586
15527
|
return (typeof model.range === "string" ? colCache.decode(model.range) : model.range).br ? "xdr:twoCellAnchor" : "xdr:oneCellAnchor";
|
|
15587
15528
|
}
|
|
@@ -15658,9 +15599,8 @@ var ExcelTS = (function(exports) {
|
|
|
15658
15599
|
};
|
|
15659
15600
|
}
|
|
15660
15601
|
};
|
|
15661
|
-
|
|
15662
|
-
//#
|
|
15663
|
-
//#region src/modules/excel/xlsx/xform/table/custom-filter-xform.ts
|
|
15602
|
+
//#endregion
|
|
15603
|
+
//#region src/modules/excel/xlsx/xform/table/custom-filter-xform.ts
|
|
15664
15604
|
var CustomFilterXform = class extends BaseXform {
|
|
15665
15605
|
constructor() {
|
|
15666
15606
|
super();
|
|
@@ -15690,9 +15630,8 @@ var ExcelTS = (function(exports) {
|
|
|
15690
15630
|
return false;
|
|
15691
15631
|
}
|
|
15692
15632
|
};
|
|
15693
|
-
|
|
15694
|
-
//#
|
|
15695
|
-
//#region src/modules/excel/xlsx/xform/table/filter-xform.ts
|
|
15633
|
+
//#endregion
|
|
15634
|
+
//#region src/modules/excel/xlsx/xform/table/filter-xform.ts
|
|
15696
15635
|
var FilterXform = class extends BaseXform {
|
|
15697
15636
|
constructor() {
|
|
15698
15637
|
super();
|
|
@@ -15716,9 +15655,8 @@ var ExcelTS = (function(exports) {
|
|
|
15716
15655
|
return false;
|
|
15717
15656
|
}
|
|
15718
15657
|
};
|
|
15719
|
-
|
|
15720
|
-
//#
|
|
15721
|
-
//#region src/modules/excel/xlsx/xform/table/filter-column-xform.ts
|
|
15658
|
+
//#endregion
|
|
15659
|
+
//#region src/modules/excel/xlsx/xform/table/filter-column-xform.ts
|
|
15722
15660
|
var FilterColumnXform = class extends BaseXform {
|
|
15723
15661
|
constructor() {
|
|
15724
15662
|
super();
|
|
@@ -15793,9 +15731,8 @@ var ExcelTS = (function(exports) {
|
|
|
15793
15731
|
}
|
|
15794
15732
|
}
|
|
15795
15733
|
};
|
|
15796
|
-
|
|
15797
|
-
//#
|
|
15798
|
-
//#region src/modules/excel/xlsx/xform/table/auto-filter-xform.ts
|
|
15734
|
+
//#endregion
|
|
15735
|
+
//#region src/modules/excel/xlsx/xform/table/auto-filter-xform.ts
|
|
15799
15736
|
var AutoFilterXform = class extends BaseXform {
|
|
15800
15737
|
constructor() {
|
|
15801
15738
|
super();
|
|
@@ -15858,9 +15795,8 @@ var ExcelTS = (function(exports) {
|
|
|
15858
15795
|
}
|
|
15859
15796
|
}
|
|
15860
15797
|
};
|
|
15861
|
-
|
|
15862
|
-
//#
|
|
15863
|
-
//#region src/modules/excel/xlsx/xform/table/table-column-xform.ts
|
|
15798
|
+
//#endregion
|
|
15799
|
+
//#region src/modules/excel/xlsx/xform/table/table-column-xform.ts
|
|
15864
15800
|
var TableColumnXform = class extends BaseXform {
|
|
15865
15801
|
constructor() {
|
|
15866
15802
|
super();
|
|
@@ -15919,9 +15855,8 @@ var ExcelTS = (function(exports) {
|
|
|
15919
15855
|
return true;
|
|
15920
15856
|
}
|
|
15921
15857
|
};
|
|
15922
|
-
|
|
15923
|
-
//#
|
|
15924
|
-
//#region src/modules/excel/xlsx/xform/table/table-style-info-xform.ts
|
|
15858
|
+
//#endregion
|
|
15859
|
+
//#region src/modules/excel/xlsx/xform/table/table-style-info-xform.ts
|
|
15925
15860
|
var TableStyleInfoXform = class extends BaseXform {
|
|
15926
15861
|
constructor() {
|
|
15927
15862
|
super();
|
|
@@ -15964,9 +15899,8 @@ var ExcelTS = (function(exports) {
|
|
|
15964
15899
|
return false;
|
|
15965
15900
|
}
|
|
15966
15901
|
};
|
|
15967
|
-
|
|
15968
|
-
//#
|
|
15969
|
-
//#region src/modules/excel/xlsx/xform/table/table-xform.ts
|
|
15902
|
+
//#endregion
|
|
15903
|
+
//#region src/modules/excel/xlsx/xform/table/table-xform.ts
|
|
15970
15904
|
var TableXform = class TableXform extends BaseXform {
|
|
15971
15905
|
constructor() {
|
|
15972
15906
|
super();
|
|
@@ -16067,10 +16001,9 @@ var ExcelTS = (function(exports) {
|
|
|
16067
16001
|
this.TABLE_ATTRIBUTES = { xmlns: "http://schemas.openxmlformats.org/spreadsheetml/2006/main" };
|
|
16068
16002
|
}
|
|
16069
16003
|
};
|
|
16070
|
-
|
|
16071
|
-
//#
|
|
16072
|
-
|
|
16073
|
-
/**
|
|
16004
|
+
//#endregion
|
|
16005
|
+
//#region src/modules/excel/xlsx/xform/pivot-table/cache-field.ts
|
|
16006
|
+
/**
|
|
16074
16007
|
* Format a Date for OOXML pivot cache output.
|
|
16075
16008
|
* Excel expects `"2024-01-15T00:00:00"` — no milliseconds, no trailing "Z".
|
|
16076
16009
|
*/
|
|
@@ -16192,10 +16125,9 @@ var ExcelTS = (function(exports) {
|
|
|
16192
16125
|
if (cf.containsDate !== void 0) parts.push(`containsDate="${cf.containsDate}"`);
|
|
16193
16126
|
return parts.length > 0 ? ` ${parts.join(" ")}` : "";
|
|
16194
16127
|
}
|
|
16195
|
-
|
|
16196
|
-
//#
|
|
16197
|
-
|
|
16198
|
-
/** Attribute keys on <pivotCacheRecords> that are individually parsed (not collected into extraRootAttrs). */
|
|
16128
|
+
//#endregion
|
|
16129
|
+
//#region src/modules/excel/xlsx/xform/pivot-table/pivot-cache-records-xform.ts
|
|
16130
|
+
/** Attribute keys on <pivotCacheRecords> that are individually parsed (not collected into extraRootAttrs). */
|
|
16199
16131
|
const KNOWN_CACHE_RECORDS_ROOT_KEYS = new Set([
|
|
16200
16132
|
"xmlns",
|
|
16201
16133
|
"xmlns:r",
|
|
@@ -16429,10 +16361,9 @@ var ExcelTS = (function(exports) {
|
|
|
16429
16361
|
}
|
|
16430
16362
|
return sharedItems.indexOf(value);
|
|
16431
16363
|
}
|
|
16432
|
-
|
|
16433
|
-
//#
|
|
16434
|
-
|
|
16435
|
-
/**
|
|
16364
|
+
//#endregion
|
|
16365
|
+
//#region src/modules/excel/xlsx/xform/pivot-table/raw-xml-collector.ts
|
|
16366
|
+
/**
|
|
16436
16367
|
* Reusable utility for collecting raw XML fragments during SAX parsing.
|
|
16437
16368
|
*
|
|
16438
16369
|
* Many pivot-table xforms need to capture entire sub-trees (extLst, formats,
|
|
@@ -16550,10 +16481,9 @@ var ExcelTS = (function(exports) {
|
|
|
16550
16481
|
if (entries.length === 0) return "";
|
|
16551
16482
|
return entries.filter(([, v]) => v != null).map(([k, v]) => `${k}="${xmlEncode(String(v))}"`).join(" ");
|
|
16552
16483
|
}
|
|
16553
|
-
|
|
16554
|
-
//#
|
|
16555
|
-
|
|
16556
|
-
/** Attribute keys on <cacheField> that are individually parsed (not collected into extraAttrs). */
|
|
16484
|
+
//#endregion
|
|
16485
|
+
//#region src/modules/excel/xlsx/xform/pivot-table/cache-field-xform.ts
|
|
16486
|
+
/** Attribute keys on <cacheField> that are individually parsed (not collected into extraAttrs). */
|
|
16557
16487
|
const KNOWN_CACHE_FIELD_KEYS = new Set(["name", "numFmtId"]);
|
|
16558
16488
|
/**
|
|
16559
16489
|
* Xform for parsing individual <cacheField> elements within a pivot cache definition.
|
|
@@ -16692,10 +16622,9 @@ var ExcelTS = (function(exports) {
|
|
|
16692
16622
|
default: return null;
|
|
16693
16623
|
}
|
|
16694
16624
|
}
|
|
16695
|
-
|
|
16696
|
-
//#
|
|
16697
|
-
|
|
16698
|
-
/** Attribute keys on <pivotCacheDefinition> that are individually parsed (not collected into extraRootAttrs). */
|
|
16625
|
+
//#endregion
|
|
16626
|
+
//#region src/modules/excel/xlsx/xform/pivot-table/pivot-cache-definition-xform.ts
|
|
16627
|
+
/** Attribute keys on <pivotCacheDefinition> that are individually parsed (not collected into extraRootAttrs). */
|
|
16699
16628
|
const KNOWN_CACHE_DEF_ROOT_KEYS = new Set([
|
|
16700
16629
|
"xmlns",
|
|
16701
16630
|
"xmlns:r",
|
|
@@ -16951,10 +16880,9 @@ var ExcelTS = (function(exports) {
|
|
|
16951
16880
|
};
|
|
16952
16881
|
}
|
|
16953
16882
|
};
|
|
16954
|
-
|
|
16955
|
-
//#
|
|
16956
|
-
|
|
16957
|
-
/** OOXML sentinel field index meaning "data values" pseudo-field (used in pivotArea references) */
|
|
16883
|
+
//#endregion
|
|
16884
|
+
//#region src/modules/excel/xlsx/xform/pivot-table/pivot-table-xform.ts
|
|
16885
|
+
/** OOXML sentinel field index meaning "data values" pseudo-field (used in pivotArea references) */
|
|
16958
16886
|
const FIELD_INDEX_DATA_VALUES = 4294967294;
|
|
16959
16887
|
/**
|
|
16960
16888
|
* Signed sentinel for the "Values" pseudo-field in colFields/rowFields.
|
|
@@ -17759,9 +17687,8 @@ var ExcelTS = (function(exports) {
|
|
|
17759
17687
|
attrs.defaultSubtotal = "0";
|
|
17760
17688
|
xmlStream.leafNode("pivotField", attrs);
|
|
17761
17689
|
}
|
|
17762
|
-
|
|
17763
|
-
//#
|
|
17764
|
-
//#region src/modules/excel/xlsx/xform/comment/comment-xform.ts
|
|
17690
|
+
//#endregion
|
|
17691
|
+
//#region src/modules/excel/xlsx/xform/comment/comment-xform.ts
|
|
17765
17692
|
var CommentXform = class extends BaseXform {
|
|
17766
17693
|
constructor(model) {
|
|
17767
17694
|
super();
|
|
@@ -17827,9 +17754,8 @@ var ExcelTS = (function(exports) {
|
|
|
17827
17754
|
}
|
|
17828
17755
|
}
|
|
17829
17756
|
};
|
|
17830
|
-
|
|
17831
|
-
//#
|
|
17832
|
-
//#region src/modules/excel/xlsx/xform/comment/comments-xform.ts
|
|
17757
|
+
//#endregion
|
|
17758
|
+
//#region src/modules/excel/xlsx/xform/comment/comments-xform.ts
|
|
17833
17759
|
var CommentsXform = class CommentsXform extends BaseXform {
|
|
17834
17760
|
constructor() {
|
|
17835
17761
|
super();
|
|
@@ -17885,9 +17811,8 @@ var ExcelTS = (function(exports) {
|
|
|
17885
17811
|
this.COMMENTS_ATTRIBUTES = { xmlns: "http://schemas.openxmlformats.org/spreadsheetml/2006/main" };
|
|
17886
17812
|
}
|
|
17887
17813
|
};
|
|
17888
|
-
|
|
17889
|
-
//#
|
|
17890
|
-
//#region src/modules/excel/xlsx/xform/comment/vml-textbox-xform.ts
|
|
17814
|
+
//#endregion
|
|
17815
|
+
//#region src/modules/excel/xlsx/xform/comment/vml-textbox-xform.ts
|
|
17891
17816
|
var VmlTextboxXform = class extends BaseXform {
|
|
17892
17817
|
constructor() {
|
|
17893
17818
|
super();
|
|
@@ -17933,9 +17858,8 @@ var ExcelTS = (function(exports) {
|
|
|
17933
17858
|
}
|
|
17934
17859
|
}
|
|
17935
17860
|
};
|
|
17936
|
-
|
|
17937
|
-
//#
|
|
17938
|
-
//#region src/modules/excel/xlsx/xform/comment/vml-anchor-xform.ts
|
|
17861
|
+
//#endregion
|
|
17862
|
+
//#region src/modules/excel/xlsx/xform/comment/vml-anchor-xform.ts
|
|
17939
17863
|
var VmlAnchorXform = class extends BaseXform {
|
|
17940
17864
|
constructor() {
|
|
17941
17865
|
super();
|
|
@@ -17997,9 +17921,8 @@ var ExcelTS = (function(exports) {
|
|
|
17997
17921
|
return false;
|
|
17998
17922
|
}
|
|
17999
17923
|
};
|
|
18000
|
-
|
|
18001
|
-
//#
|
|
18002
|
-
//#region src/modules/excel/xlsx/xform/comment/style/vml-protection-xform.ts
|
|
17924
|
+
//#endregion
|
|
17925
|
+
//#region src/modules/excel/xlsx/xform/comment/style/vml-protection-xform.ts
|
|
18003
17926
|
var VmlProtectionXform = class extends BaseXform {
|
|
18004
17927
|
constructor(model) {
|
|
18005
17928
|
super();
|
|
@@ -18027,9 +17950,8 @@ var ExcelTS = (function(exports) {
|
|
|
18027
17950
|
return false;
|
|
18028
17951
|
}
|
|
18029
17952
|
};
|
|
18030
|
-
|
|
18031
|
-
//#
|
|
18032
|
-
//#region src/modules/excel/xlsx/xform/comment/style/vml-position-xform.ts
|
|
17953
|
+
//#endregion
|
|
17954
|
+
//#region src/modules/excel/xlsx/xform/comment/style/vml-position-xform.ts
|
|
18033
17955
|
var VmlPositionXform = class extends BaseXform {
|
|
18034
17956
|
constructor(model) {
|
|
18035
17957
|
super();
|
|
@@ -18057,9 +17979,8 @@ var ExcelTS = (function(exports) {
|
|
|
18057
17979
|
return false;
|
|
18058
17980
|
}
|
|
18059
17981
|
};
|
|
18060
|
-
|
|
18061
|
-
//#
|
|
18062
|
-
//#region src/modules/excel/xlsx/xform/comment/vml-client-data-xform.ts
|
|
17982
|
+
//#endregion
|
|
17983
|
+
//#region src/modules/excel/xlsx/xform/comment/vml-client-data-xform.ts
|
|
18063
17984
|
const POSITION_TYPE = [
|
|
18064
17985
|
"twoCells",
|
|
18065
17986
|
"oneCells",
|
|
@@ -18138,9 +18059,8 @@ var ExcelTS = (function(exports) {
|
|
|
18138
18059
|
this.model.protection.lockText = this.map["x:LockText"].text;
|
|
18139
18060
|
}
|
|
18140
18061
|
};
|
|
18141
|
-
|
|
18142
|
-
//#
|
|
18143
|
-
//#region src/modules/excel/xlsx/xform/comment/vml-shape-xform.ts
|
|
18062
|
+
//#endregion
|
|
18063
|
+
//#region src/modules/excel/xlsx/xform/comment/vml-shape-xform.ts
|
|
18144
18064
|
var VmlShapeXform = class VmlShapeXform extends BaseXform {
|
|
18145
18065
|
constructor() {
|
|
18146
18066
|
super();
|
|
@@ -18215,9 +18135,8 @@ var ExcelTS = (function(exports) {
|
|
|
18215
18135
|
});
|
|
18216
18136
|
}
|
|
18217
18137
|
};
|
|
18218
|
-
|
|
18219
|
-
//#
|
|
18220
|
-
//#region src/modules/excel/xlsx/xform/drawing/vml-drawing-xform.ts
|
|
18138
|
+
//#endregion
|
|
18139
|
+
//#region src/modules/excel/xlsx/xform/drawing/vml-drawing-xform.ts
|
|
18221
18140
|
var VmlDrawingXform = class VmlDrawingXform extends BaseXform {
|
|
18222
18141
|
constructor() {
|
|
18223
18142
|
super();
|
|
@@ -18235,8 +18154,10 @@ var ExcelTS = (function(exports) {
|
|
|
18235
18154
|
*/
|
|
18236
18155
|
render(xmlStream, model) {
|
|
18237
18156
|
const renderModel = model || this.model;
|
|
18238
|
-
const
|
|
18239
|
-
const
|
|
18157
|
+
const comments = renderModel.comments;
|
|
18158
|
+
const formControls = renderModel.formControls;
|
|
18159
|
+
const hasComments = comments && comments.length > 0;
|
|
18160
|
+
const hasFormControls = formControls && formControls.length > 0;
|
|
18240
18161
|
xmlStream.openXml(XmlStream.StdDocAttributes);
|
|
18241
18162
|
xmlStream.openNode(this.tag, VmlDrawingXform.DRAWING_ATTRIBUTES);
|
|
18242
18163
|
xmlStream.openNode("o:shapelayout", { "v:ext": "edit" });
|
|
@@ -18280,11 +18201,8 @@ var ExcelTS = (function(exports) {
|
|
|
18280
18201
|
});
|
|
18281
18202
|
xmlStream.closeNode();
|
|
18282
18203
|
}
|
|
18283
|
-
if (hasComments)
|
|
18284
|
-
|
|
18285
|
-
for (let i = 0; i < comments.length; i++) this.map["v:shape"].render(xmlStream, comments[i], i);
|
|
18286
|
-
}
|
|
18287
|
-
if (hasFormControls) for (const control of renderModel.formControls) this._renderCheckboxShape(xmlStream, control);
|
|
18204
|
+
if (hasComments) for (let i = 0; i < comments.length; i++) this.map["v:shape"].render(xmlStream, comments[i], i);
|
|
18205
|
+
if (hasFormControls) for (const control of formControls) this._renderCheckboxShape(xmlStream, control);
|
|
18288
18206
|
xmlStream.closeNode();
|
|
18289
18207
|
}
|
|
18290
18208
|
/**
|
|
@@ -18389,10 +18307,9 @@ var ExcelTS = (function(exports) {
|
|
|
18389
18307
|
};
|
|
18390
18308
|
}
|
|
18391
18309
|
};
|
|
18392
|
-
|
|
18393
|
-
//#
|
|
18394
|
-
|
|
18395
|
-
/**
|
|
18310
|
+
//#endregion
|
|
18311
|
+
//#region src/modules/excel/xlsx/xform/drawing/ctrl-prop-xform.ts
|
|
18312
|
+
/**
|
|
18396
18313
|
* Control Properties Xform - Generates ctrlProp*.xml for form controls
|
|
18397
18314
|
*
|
|
18398
18315
|
* Each form control (checkbox, button, etc.) has an associated ctrlProp file
|
|
@@ -18443,13 +18360,11 @@ var ExcelTS = (function(exports) {
|
|
|
18443
18360
|
return false;
|
|
18444
18361
|
}
|
|
18445
18362
|
};
|
|
18446
|
-
|
|
18447
|
-
//#
|
|
18448
|
-
//#region src/modules/excel/xlsx/xml/theme1.ts
|
|
18363
|
+
//#endregion
|
|
18364
|
+
//#region src/modules/excel/xlsx/xml/theme1.ts
|
|
18449
18365
|
const theme1Xml = "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n<a:theme xmlns:a=\"http://schemas.openxmlformats.org/drawingml/2006/main\" name=\"Office Theme\"> <a:themeElements> <a:clrScheme name=\"Office\"> <a:dk1> <a:sysClr val=\"windowText\" lastClr=\"000000\"/> </a:dk1> <a:lt1> <a:sysClr val=\"window\" lastClr=\"FFFFFF\"/> </a:lt1> <a:dk2> <a:srgbClr val=\"1F497D\"/> </a:dk2> <a:lt2> <a:srgbClr val=\"EEECE1\"/> </a:lt2> <a:accent1> <a:srgbClr val=\"4F81BD\"/> </a:accent1> <a:accent2> <a:srgbClr val=\"C0504D\"/> </a:accent2> <a:accent3> <a:srgbClr val=\"9BBB59\"/> </a:accent3> <a:accent4> <a:srgbClr val=\"8064A2\"/> </a:accent4> <a:accent5> <a:srgbClr val=\"4BACC6\"/> </a:accent5> <a:accent6> <a:srgbClr val=\"F79646\"/> </a:accent6> <a:hlink> <a:srgbClr val=\"0000FF\"/> </a:hlink> <a:folHlink> <a:srgbClr val=\"800080\"/> </a:folHlink> </a:clrScheme> <a:fontScheme name=\"Office\"> <a:majorFont> <a:latin typeface=\"Cambria\"/> <a:ea typeface=\"\"/> <a:cs typeface=\"\"/> <a:font script=\"Jpan\" typeface=\"MS Pゴシック\"/> <a:font script=\"Hang\" typeface=\"맑은 고딕\"/> <a:font script=\"Hans\" typeface=\"宋体\"/> <a:font script=\"Hant\" typeface=\"新細明體\"/> <a:font script=\"Arab\" typeface=\"Times New Roman\"/> <a:font script=\"Hebr\" typeface=\"Times New Roman\"/> <a:font script=\"Thai\" typeface=\"Tahoma\"/> <a:font script=\"Ethi\" typeface=\"Nyala\"/> <a:font script=\"Beng\" typeface=\"Vrinda\"/> <a:font script=\"Gujr\" typeface=\"Shruti\"/> <a:font script=\"Khmr\" typeface=\"MoolBoran\"/> <a:font script=\"Knda\" typeface=\"Tunga\"/> <a:font script=\"Guru\" typeface=\"Raavi\"/> <a:font script=\"Cans\" typeface=\"Euphemia\"/> <a:font script=\"Cher\" typeface=\"Plantagenet Cherokee\"/> <a:font script=\"Yiii\" typeface=\"Microsoft Yi Baiti\"/> <a:font script=\"Tibt\" typeface=\"Microsoft Himalaya\"/> <a:font script=\"Thaa\" typeface=\"MV Boli\"/> <a:font script=\"Deva\" typeface=\"Mangal\"/> <a:font script=\"Telu\" typeface=\"Gautami\"/> <a:font script=\"Taml\" typeface=\"Latha\"/> <a:font script=\"Syrc\" typeface=\"Estrangelo Edessa\"/> <a:font script=\"Orya\" typeface=\"Kalinga\"/> <a:font script=\"Mlym\" typeface=\"Kartika\"/> <a:font script=\"Laoo\" typeface=\"DokChampa\"/> <a:font script=\"Sinh\" typeface=\"Iskoola Pota\"/> <a:font script=\"Mong\" typeface=\"Mongolian Baiti\"/> <a:font script=\"Viet\" typeface=\"Times New Roman\"/> <a:font script=\"Uigh\" typeface=\"Microsoft Uighur\"/> <a:font script=\"Geor\" typeface=\"Sylfaen\"/> </a:majorFont> <a:minorFont> <a:latin typeface=\"Calibri\"/> <a:ea typeface=\"\"/> <a:cs typeface=\"\"/> <a:font script=\"Jpan\" typeface=\"MS Pゴシック\"/> <a:font script=\"Hang\" typeface=\"맑은 고딕\"/> <a:font script=\"Hans\" typeface=\"宋体\"/> <a:font script=\"Hant\" typeface=\"新細明體\"/> <a:font script=\"Arab\" typeface=\"Arial\"/> <a:font script=\"Hebr\" typeface=\"Arial\"/> <a:font script=\"Thai\" typeface=\"Tahoma\"/> <a:font script=\"Ethi\" typeface=\"Nyala\"/> <a:font script=\"Beng\" typeface=\"Vrinda\"/> <a:font script=\"Gujr\" typeface=\"Shruti\"/> <a:font script=\"Khmr\" typeface=\"DaunPenh\"/> <a:font script=\"Knda\" typeface=\"Tunga\"/> <a:font script=\"Guru\" typeface=\"Raavi\"/> <a:font script=\"Cans\" typeface=\"Euphemia\"/> <a:font script=\"Cher\" typeface=\"Plantagenet Cherokee\"/> <a:font script=\"Yiii\" typeface=\"Microsoft Yi Baiti\"/> <a:font script=\"Tibt\" typeface=\"Microsoft Himalaya\"/> <a:font script=\"Thaa\" typeface=\"MV Boli\"/> <a:font script=\"Deva\" typeface=\"Mangal\"/> <a:font script=\"Telu\" typeface=\"Gautami\"/> <a:font script=\"Taml\" typeface=\"Latha\"/> <a:font script=\"Syrc\" typeface=\"Estrangelo Edessa\"/> <a:font script=\"Orya\" typeface=\"Kalinga\"/> <a:font script=\"Mlym\" typeface=\"Kartika\"/> <a:font script=\"Laoo\" typeface=\"DokChampa\"/> <a:font script=\"Sinh\" typeface=\"Iskoola Pota\"/> <a:font script=\"Mong\" typeface=\"Mongolian Baiti\"/> <a:font script=\"Viet\" typeface=\"Arial\"/> <a:font script=\"Uigh\" typeface=\"Microsoft Uighur\"/> <a:font script=\"Geor\" typeface=\"Sylfaen\"/> </a:minorFont> </a:fontScheme> <a:fmtScheme name=\"Office\"> <a:fillStyleLst> <a:solidFill> <a:schemeClr val=\"phClr\"/> </a:solidFill> <a:gradFill rotWithShape=\"1\"> <a:gsLst> <a:gs pos=\"0\"> <a:schemeClr val=\"phClr\"> <a:tint val=\"50000\"/> <a:satMod val=\"300000\"/> </a:schemeClr> </a:gs> <a:gs pos=\"35000\"> <a:schemeClr val=\"phClr\"> <a:tint val=\"37000\"/> <a:satMod val=\"300000\"/> </a:schemeClr> </a:gs> <a:gs pos=\"100000\"> <a:schemeClr val=\"phClr\"> <a:tint val=\"15000\"/> <a:satMod val=\"350000\"/> </a:schemeClr> </a:gs> </a:gsLst> <a:lin ang=\"16200000\" scaled=\"1\"/> </a:gradFill> <a:gradFill rotWithShape=\"1\"> <a:gsLst> <a:gs pos=\"0\"> <a:schemeClr val=\"phClr\"> <a:tint val=\"100000\"/> <a:shade val=\"100000\"/> <a:satMod val=\"130000\"/> </a:schemeClr> </a:gs> <a:gs pos=\"100000\"> <a:schemeClr val=\"phClr\"> <a:tint val=\"50000\"/> <a:shade val=\"100000\"/> <a:satMod val=\"350000\"/> </a:schemeClr> </a:gs> </a:gsLst> <a:lin ang=\"16200000\" scaled=\"0\"/> </a:gradFill> </a:fillStyleLst> <a:lnStyleLst> <a:ln w=\"9525\" cap=\"flat\" cmpd=\"sng\" algn=\"ctr\"> <a:solidFill> <a:schemeClr val=\"phClr\"> <a:shade val=\"95000\"/> <a:satMod val=\"105000\"/> </a:schemeClr> </a:solidFill> <a:prstDash val=\"solid\"/> </a:ln> <a:ln w=\"25400\" cap=\"flat\" cmpd=\"sng\" algn=\"ctr\"> <a:solidFill> <a:schemeClr val=\"phClr\"/> </a:solidFill> <a:prstDash val=\"solid\"/> </a:ln> <a:ln w=\"38100\" cap=\"flat\" cmpd=\"sng\" algn=\"ctr\"> <a:solidFill> <a:schemeClr val=\"phClr\"/> </a:solidFill> <a:prstDash val=\"solid\"/> </a:ln> </a:lnStyleLst> <a:effectStyleLst> <a:effectStyle> <a:effectLst> <a:outerShdw blurRad=\"40000\" dist=\"20000\" dir=\"5400000\" rotWithShape=\"0\"> <a:srgbClr val=\"000000\"> <a:alpha val=\"38000\"/> </a:srgbClr> </a:outerShdw> </a:effectLst> </a:effectStyle> <a:effectStyle> <a:effectLst> <a:outerShdw blurRad=\"40000\" dist=\"23000\" dir=\"5400000\" rotWithShape=\"0\"> <a:srgbClr val=\"000000\"> <a:alpha val=\"35000\"/> </a:srgbClr> </a:outerShdw> </a:effectLst> </a:effectStyle> <a:effectStyle> <a:effectLst> <a:outerShdw blurRad=\"40000\" dist=\"23000\" dir=\"5400000\" rotWithShape=\"0\"> <a:srgbClr val=\"000000\"> <a:alpha val=\"35000\"/> </a:srgbClr> </a:outerShdw> </a:effectLst> <a:scene3d> <a:camera prst=\"orthographicFront\"> <a:rot lat=\"0\" lon=\"0\" rev=\"0\"/> </a:camera> <a:lightRig rig=\"threePt\" dir=\"t\"> <a:rot lat=\"0\" lon=\"0\" rev=\"1200000\"/> </a:lightRig> </a:scene3d> <a:sp3d> <a:bevelT w=\"63500\" h=\"25400\"/> </a:sp3d> </a:effectStyle> </a:effectStyleLst> <a:bgFillStyleLst> <a:solidFill> <a:schemeClr val=\"phClr\"/> </a:solidFill> <a:gradFill rotWithShape=\"1\"> <a:gsLst> <a:gs pos=\"0\"> <a:schemeClr val=\"phClr\"> <a:tint val=\"40000\"/> <a:satMod val=\"350000\"/> </a:schemeClr> </a:gs> <a:gs pos=\"40000\"> <a:schemeClr val=\"phClr\"> <a:tint val=\"45000\"/> <a:shade val=\"99000\"/> <a:satMod val=\"350000\"/> </a:schemeClr> </a:gs> <a:gs pos=\"100000\"> <a:schemeClr val=\"phClr\"> <a:shade val=\"20000\"/> <a:satMod val=\"255000\"/> </a:schemeClr> </a:gs> </a:gsLst> <a:path path=\"circle\"> <a:fillToRect l=\"50000\" t=\"-80000\" r=\"50000\" b=\"180000\"/> </a:path> </a:gradFill> <a:gradFill rotWithShape=\"1\"> <a:gsLst> <a:gs pos=\"0\"> <a:schemeClr val=\"phClr\"> <a:tint val=\"80000\"/> <a:satMod val=\"300000\"/> </a:schemeClr> </a:gs> <a:gs pos=\"100000\"> <a:schemeClr val=\"phClr\"> <a:shade val=\"30000\"/> <a:satMod val=\"200000\"/> </a:schemeClr> </a:gs> </a:gsLst> <a:path path=\"circle\"> <a:fillToRect l=\"50000\" t=\"50000\" r=\"50000\" b=\"50000\"/> </a:path> </a:gradFill> </a:bgFillStyleLst> </a:fmtScheme> </a:themeElements> <a:objectDefaults> <a:spDef> <a:spPr/> <a:bodyPr/> <a:lstStyle/> <a:style> <a:lnRef idx=\"1\"> <a:schemeClr val=\"accent1\"/> </a:lnRef> <a:fillRef idx=\"3\"> <a:schemeClr val=\"accent1\"/> </a:fillRef> <a:effectRef idx=\"2\"> <a:schemeClr val=\"accent1\"/> </a:effectRef> <a:fontRef idx=\"minor\"> <a:schemeClr val=\"lt1\"/> </a:fontRef> </a:style> </a:spDef> <a:lnDef> <a:spPr/> <a:bodyPr/> <a:lstStyle/> <a:style> <a:lnRef idx=\"2\"> <a:schemeClr val=\"accent1\"/> </a:lnRef> <a:fillRef idx=\"0\"> <a:schemeClr val=\"accent1\"/> </a:fillRef> <a:effectRef idx=\"1\"> <a:schemeClr val=\"accent1\"/> </a:effectRef> <a:fontRef idx=\"minor\"> <a:schemeClr val=\"tx1\"/> </a:fontRef> </a:style> </a:lnDef> </a:objectDefaults> <a:extraClrSchemeLst/> </a:theme>";
|
|
18450
|
-
|
|
18451
|
-
//#
|
|
18452
|
-
//#region src/modules/excel/utils/string-buf.ts
|
|
18366
|
+
//#endregion
|
|
18367
|
+
//#region src/modules/excel/utils/string-buf.ts
|
|
18453
18368
|
const encoder = new TextEncoder();
|
|
18454
18369
|
/**
|
|
18455
18370
|
* StringBuf - efficient string builder using Uint8Array
|
|
@@ -18503,10 +18418,9 @@ var ExcelTS = (function(exports) {
|
|
|
18503
18418
|
}
|
|
18504
18419
|
}
|
|
18505
18420
|
};
|
|
18506
|
-
|
|
18507
|
-
//#
|
|
18508
|
-
|
|
18509
|
-
/**
|
|
18421
|
+
//#endregion
|
|
18422
|
+
//#region src/modules/excel/utils/stream-buf.ts
|
|
18423
|
+
/**
|
|
18510
18424
|
* StreamBuf - Cross-Platform Multi-purpose Read-Write Stream
|
|
18511
18425
|
*
|
|
18512
18426
|
* A unified implementation that works in both Node.js and Browser environments
|
|
@@ -18890,10 +18804,9 @@ var ExcelTS = (function(exports) {
|
|
|
18890
18804
|
}
|
|
18891
18805
|
return result;
|
|
18892
18806
|
}
|
|
18893
|
-
|
|
18894
|
-
//#
|
|
18895
|
-
|
|
18896
|
-
/**
|
|
18807
|
+
//#endregion
|
|
18808
|
+
//#region src/modules/archive/compression/crc32.base.ts
|
|
18809
|
+
/**
|
|
18897
18810
|
* CRC32 calculation core (shared between Node.js and browser).
|
|
18898
18811
|
*
|
|
18899
18812
|
* Implements CRC-32 IEEE 802.3 using the reversed polynomial 0xEDB88320.
|
|
@@ -18938,9 +18851,8 @@ var ExcelTS = (function(exports) {
|
|
|
18938
18851
|
function crc32JS(data) {
|
|
18939
18852
|
return crc32Finalize(crc32UpdateJS(4294967295, data));
|
|
18940
18853
|
}
|
|
18941
|
-
|
|
18942
|
-
//#
|
|
18943
|
-
//#region src/modules/archive/utils/bytes.ts
|
|
18854
|
+
//#endregion
|
|
18855
|
+
//#region src/modules/archive/utils/bytes.ts
|
|
18944
18856
|
function sumUint8ArrayLengths(arrays) {
|
|
18945
18857
|
let totalLength = 0;
|
|
18946
18858
|
for (let i = 0; i < arrays.length; i++) totalLength += arrays[i].length;
|
|
@@ -19015,10 +18927,9 @@ var ExcelTS = (function(exports) {
|
|
|
19015
18927
|
}
|
|
19016
18928
|
return -1;
|
|
19017
18929
|
}
|
|
19018
|
-
|
|
19019
|
-
//#
|
|
19020
|
-
|
|
19021
|
-
/**
|
|
18930
|
+
//#endregion
|
|
18931
|
+
//#region src/modules/archive/compression/deflate-fallback.ts
|
|
18932
|
+
/**
|
|
19022
18933
|
* Pure JavaScript DEFLATE implementation for browsers without CompressionStream support
|
|
19023
18934
|
*
|
|
19024
18935
|
* This fallback supports:
|
|
@@ -19691,9 +19602,8 @@ var ExcelTS = (function(exports) {
|
|
|
19691
19602
|
output.writeBitsReverse(code, 5);
|
|
19692
19603
|
if (extraBits > 0) output.writeBits(extraValue, extraBits);
|
|
19693
19604
|
}
|
|
19694
|
-
|
|
19695
|
-
//#
|
|
19696
|
-
//#region src/modules/archive/internal/byte-queue.ts
|
|
19605
|
+
//#endregion
|
|
19606
|
+
//#region src/modules/archive/internal/byte-queue.ts
|
|
19697
19607
|
var ByteQueue = class ByteQueue {
|
|
19698
19608
|
static {
|
|
19699
19609
|
this.EMPTY = new Uint8Array(0);
|
|
@@ -20008,26 +19918,6 @@ var ExcelTS = (function(exports) {
|
|
|
20008
19918
|
throw new RangeError("ByteQueue: peek beyond available data");
|
|
20009
19919
|
}
|
|
20010
19920
|
};
|
|
20011
|
-
|
|
20012
|
-
//#endregion
|
|
20013
|
-
//#region src/modules/archive/compression/compress.base.ts
|
|
20014
|
-
/**
|
|
20015
|
-
* Base compression utilities using Web Streams API
|
|
20016
|
-
* Shared between Node.js and Browser implementations
|
|
20017
|
-
*
|
|
20018
|
-
* Uses CompressionStream/DecompressionStream API with "deflate-raw" format
|
|
20019
|
-
* (raw DEFLATE without zlib header/trailer, required for ZIP files)
|
|
20020
|
-
*
|
|
20021
|
-
* Browser fallback: For browsers without deflate-raw support (Firefox < 113, Safari < 16.4),
|
|
20022
|
-
* see deflate-fallback.ts for pure JS implementation
|
|
20023
|
-
*/
|
|
20024
|
-
/**
|
|
20025
|
-
* Default threshold (in bytes) to choose the lower-overhead path.
|
|
20026
|
-
*
|
|
20027
|
-
* This is a performance knob, not a correctness requirement.
|
|
20028
|
-
* Default: 8MB.
|
|
20029
|
-
*/
|
|
20030
|
-
const DEFAULT_COMPRESS_THRESHOLD_BYTES = 8 * 1024 * 1024;
|
|
20031
19921
|
/**
|
|
20032
19922
|
* Check if CompressionStream is available
|
|
20033
19923
|
*/
|
|
@@ -20138,23 +20028,14 @@ var ExcelTS = (function(exports) {
|
|
|
20138
20028
|
async function decompressWithStream(data) {
|
|
20139
20029
|
return transformWithStream(data, new DecompressionStream("deflate-raw"));
|
|
20140
20030
|
}
|
|
20141
|
-
|
|
20142
|
-
//#
|
|
20143
|
-
//#region src/modules/archive/defaults.ts
|
|
20144
|
-
const DEFAULT_DEFLATE_LEVEL = 6;
|
|
20145
|
-
const DEFAULT_COMPRESS_LEVEL = DEFAULT_DEFLATE_LEVEL;
|
|
20146
|
-
const DEFAULT_ZIP_LEVEL = DEFAULT_DEFLATE_LEVEL;
|
|
20147
|
-
const DEFAULT_ZIP_TIMESTAMPS = "dos";
|
|
20148
|
-
|
|
20149
|
-
//#endregion
|
|
20150
|
-
//#region src/modules/archive/compression/streaming-compress.base.ts
|
|
20031
|
+
//#endregion
|
|
20032
|
+
//#region src/modules/archive/compression/streaming-compress.base.ts
|
|
20151
20033
|
function asError(err) {
|
|
20152
20034
|
return err instanceof Error ? err : new Error(String(err));
|
|
20153
20035
|
}
|
|
20154
|
-
|
|
20155
|
-
//#
|
|
20156
|
-
|
|
20157
|
-
/**
|
|
20036
|
+
//#endregion
|
|
20037
|
+
//#region src/modules/archive/compression/streaming-compress.browser.ts
|
|
20038
|
+
/**
|
|
20158
20039
|
* Browser True Streaming Compression
|
|
20159
20040
|
*
|
|
20160
20041
|
* Uses native CompressionStream("deflate-raw") for real chunk-by-chunk streaming.
|
|
@@ -20325,7 +20206,7 @@ var ExcelTS = (function(exports) {
|
|
|
20325
20206
|
* Create a streaming DEFLATE compressor
|
|
20326
20207
|
*/
|
|
20327
20208
|
function createDeflateStream(options = {}) {
|
|
20328
|
-
const level = options.level ??
|
|
20209
|
+
const level = options.level ?? 6;
|
|
20329
20210
|
if (hasNativeDeflateRawWebStreams()) return new TrueStreamingDeflate(level);
|
|
20330
20211
|
else return new FallbackDeflate(level);
|
|
20331
20212
|
}
|
|
@@ -20379,10 +20260,9 @@ var ExcelTS = (function(exports) {
|
|
|
20379
20260
|
if (hasNativeDeflateRawWebStreams()) return new TrueStreamingInflate();
|
|
20380
20261
|
else return new FallbackInflate();
|
|
20381
20262
|
}
|
|
20382
|
-
|
|
20383
|
-
//#
|
|
20384
|
-
|
|
20385
|
-
/**
|
|
20263
|
+
//#endregion
|
|
20264
|
+
//#region src/modules/archive/utils/text.ts
|
|
20265
|
+
/**
|
|
20386
20266
|
* Shared text encoding/decoding utilities.
|
|
20387
20267
|
*
|
|
20388
20268
|
* Caches encoder/decoder instances for performance.
|
|
@@ -20414,9 +20294,8 @@ var ExcelTS = (function(exports) {
|
|
|
20414
20294
|
}
|
|
20415
20295
|
return out;
|
|
20416
20296
|
}
|
|
20417
|
-
|
|
20418
|
-
//#
|
|
20419
|
-
//#region src/modules/archive/utils/timestamps.ts
|
|
20297
|
+
//#endregion
|
|
20298
|
+
//#region src/modules/archive/utils/timestamps.ts
|
|
20420
20299
|
const EXTENDED_TIMESTAMP_ID$1 = 21589;
|
|
20421
20300
|
function clampUint32(value) {
|
|
20422
20301
|
if (!Number.isFinite(value)) return 0;
|
|
@@ -20483,10 +20362,9 @@ var ExcelTS = (function(exports) {
|
|
|
20483
20362
|
dosDate
|
|
20484
20363
|
};
|
|
20485
20364
|
}
|
|
20486
|
-
|
|
20487
|
-
//#
|
|
20488
|
-
|
|
20489
|
-
/**
|
|
20365
|
+
//#endregion
|
|
20366
|
+
//#region src/modules/archive/zip-spec/zip-records.ts
|
|
20367
|
+
/**
|
|
20490
20368
|
* ZIP record builders (PKWARE APPNOTE)
|
|
20491
20369
|
*
|
|
20492
20370
|
* Shared by streaming zip writer and buffer zip builder.
|
|
@@ -20497,19 +20375,9 @@ var ExcelTS = (function(exports) {
|
|
|
20497
20375
|
const DATA_DESCRIPTOR_SIG = 134695760;
|
|
20498
20376
|
const ZIP64_END_OF_CENTRAL_DIR_SIG = 101075792;
|
|
20499
20377
|
const ZIP64_END_OF_CENTRAL_DIR_LOCATOR_SIG = 117853008;
|
|
20500
|
-
const VERSION_NEEDED = 20;
|
|
20501
|
-
const VERSION_MADE_BY = 20;
|
|
20502
|
-
const COMPRESSION_STORE = 0;
|
|
20503
|
-
const COMPRESSION_DEFLATE = 8;
|
|
20504
20378
|
const FLAG_UTF8 = 2048;
|
|
20505
|
-
const FLAG_DATA_DESCRIPTOR = 8;
|
|
20506
|
-
const UINT16_MAX = 65535;
|
|
20507
|
-
const UINT32_MAX = 4294967295;
|
|
20508
|
-
const ZIP_LOCAL_FILE_HEADER_FIXED_SIZE = 30;
|
|
20509
|
-
const ZIP_CENTRAL_DIR_HEADER_FIXED_SIZE = 46;
|
|
20510
|
-
const ZIP_END_OF_CENTRAL_DIR_FIXED_SIZE = 22;
|
|
20511
20379
|
function writeLocalFileHeaderInto(out, view, offset, input) {
|
|
20512
|
-
const versionNeeded = input.versionNeeded ??
|
|
20380
|
+
const versionNeeded = input.versionNeeded ?? 20;
|
|
20513
20381
|
view.setUint32(offset + 0, LOCAL_FILE_HEADER_SIG, true);
|
|
20514
20382
|
view.setUint16(offset + 4, versionNeeded, true);
|
|
20515
20383
|
view.setUint16(offset + 6, input.flags, true);
|
|
@@ -20521,18 +20389,18 @@ var ExcelTS = (function(exports) {
|
|
|
20521
20389
|
view.setUint32(offset + 22, input.uncompressedSize, true);
|
|
20522
20390
|
view.setUint16(offset + 26, input.fileName.length, true);
|
|
20523
20391
|
view.setUint16(offset + 28, input.extraField.length, true);
|
|
20524
|
-
out.set(input.fileName, offset +
|
|
20525
|
-
if (input.extraField.length > 0) out.set(input.extraField, offset +
|
|
20526
|
-
return
|
|
20392
|
+
out.set(input.fileName, offset + 30);
|
|
20393
|
+
if (input.extraField.length > 0) out.set(input.extraField, offset + 30 + input.fileName.length);
|
|
20394
|
+
return 30 + input.fileName.length + input.extraField.length;
|
|
20527
20395
|
}
|
|
20528
20396
|
function buildLocalFileHeader(input) {
|
|
20529
|
-
const header = new Uint8Array(
|
|
20397
|
+
const header = new Uint8Array(30 + input.fileName.length + input.extraField.length);
|
|
20530
20398
|
writeLocalFileHeaderInto(header, new DataView(header.buffer, header.byteOffset, header.byteLength), 0, input);
|
|
20531
20399
|
return header;
|
|
20532
20400
|
}
|
|
20533
20401
|
function writeCentralDirectoryHeaderInto(out, view, offset, input) {
|
|
20534
|
-
const versionMadeBy = input.versionMadeBy ??
|
|
20535
|
-
const versionNeeded = input.versionNeeded ??
|
|
20402
|
+
const versionMadeBy = input.versionMadeBy ?? 20;
|
|
20403
|
+
const versionNeeded = input.versionNeeded ?? 20;
|
|
20536
20404
|
const externalAttributes = input.externalAttributes ?? 0;
|
|
20537
20405
|
view.setUint32(offset + 0, CENTRAL_DIR_HEADER_SIG, true);
|
|
20538
20406
|
view.setUint16(offset + 4, versionMadeBy, true);
|
|
@@ -20551,13 +20419,13 @@ var ExcelTS = (function(exports) {
|
|
|
20551
20419
|
view.setUint16(offset + 36, 0, true);
|
|
20552
20420
|
view.setUint32(offset + 38, externalAttributes, true);
|
|
20553
20421
|
view.setUint32(offset + 42, input.localHeaderOffset, true);
|
|
20554
|
-
out.set(input.fileName, offset +
|
|
20555
|
-
if (input.extraField.length > 0) out.set(input.extraField, offset +
|
|
20556
|
-
if (input.comment.length > 0) out.set(input.comment, offset +
|
|
20557
|
-
return
|
|
20422
|
+
out.set(input.fileName, offset + 46);
|
|
20423
|
+
if (input.extraField.length > 0) out.set(input.extraField, offset + 46 + input.fileName.length);
|
|
20424
|
+
if (input.comment.length > 0) out.set(input.comment, offset + 46 + input.fileName.length + input.extraField.length);
|
|
20425
|
+
return 46 + input.fileName.length + input.extraField.length + input.comment.length;
|
|
20558
20426
|
}
|
|
20559
20427
|
function buildCentralDirectoryHeader(input) {
|
|
20560
|
-
const header = new Uint8Array(
|
|
20428
|
+
const header = new Uint8Array(46 + input.fileName.length + input.extraField.length + input.comment.length);
|
|
20561
20429
|
writeCentralDirectoryHeaderInto(header, new DataView(header.buffer, header.byteOffset, header.byteLength), 0, input);
|
|
20562
20430
|
return header;
|
|
20563
20431
|
}
|
|
@@ -20570,11 +20438,11 @@ var ExcelTS = (function(exports) {
|
|
|
20570
20438
|
view.setUint32(offset + 12, input.centralDirSize, true);
|
|
20571
20439
|
view.setUint32(offset + 16, input.centralDirOffset, true);
|
|
20572
20440
|
view.setUint16(offset + 20, input.comment.length, true);
|
|
20573
|
-
if (input.comment.length > 0) out.set(input.comment, offset +
|
|
20574
|
-
return
|
|
20441
|
+
if (input.comment.length > 0) out.set(input.comment, offset + 22);
|
|
20442
|
+
return 22 + input.comment.length;
|
|
20575
20443
|
}
|
|
20576
20444
|
function buildEndOfCentralDirectory(input) {
|
|
20577
|
-
const record = new Uint8Array(
|
|
20445
|
+
const record = new Uint8Array(22 + input.comment.length);
|
|
20578
20446
|
writeEndOfCentralDirectoryInto(record, new DataView(record.buffer, record.byteOffset, record.byteLength), 0, input);
|
|
20579
20447
|
return record;
|
|
20580
20448
|
}
|
|
@@ -20587,14 +20455,13 @@ var ExcelTS = (function(exports) {
|
|
|
20587
20455
|
view.setUint32(12, uncompressedSize, true);
|
|
20588
20456
|
return descriptor;
|
|
20589
20457
|
}
|
|
20590
|
-
|
|
20591
|
-
//#
|
|
20592
|
-
//#region src/modules/archive/zip/zip-entry-metadata.ts
|
|
20458
|
+
//#endregion
|
|
20459
|
+
//#region src/modules/archive/zip/zip-entry-metadata.ts
|
|
20593
20460
|
function resolveZipCompressionMethod(deflate) {
|
|
20594
|
-
return deflate ?
|
|
20461
|
+
return deflate ? 8 : 0;
|
|
20595
20462
|
}
|
|
20596
20463
|
function resolveZipFlags(useDataDescriptor) {
|
|
20597
|
-
return useDataDescriptor ? FLAG_UTF8 |
|
|
20464
|
+
return useDataDescriptor ? FLAG_UTF8 | 8 : FLAG_UTF8;
|
|
20598
20465
|
}
|
|
20599
20466
|
function buildZipEntryMetadata(input) {
|
|
20600
20467
|
const nameBytes = encodeUtf8(input.name);
|
|
@@ -20610,9 +20477,8 @@ var ExcelTS = (function(exports) {
|
|
|
20610
20477
|
flags: resolveZipFlags(input.useDataDescriptor)
|
|
20611
20478
|
};
|
|
20612
20479
|
}
|
|
20613
|
-
|
|
20614
|
-
//#
|
|
20615
|
-
//#region src/modules/archive/utils/compressibility.ts
|
|
20480
|
+
//#endregion
|
|
20481
|
+
//#region src/modules/archive/utils/compressibility.ts
|
|
20616
20482
|
const DEFAULT_SAMPLE_BYTES = 64 * 1024;
|
|
20617
20483
|
const MIN_DECISION_BYTES = 16 * 1024;
|
|
20618
20484
|
function log2(x) {
|
|
@@ -20656,10 +20522,9 @@ var ExcelTS = (function(exports) {
|
|
|
20656
20522
|
if (unique < 200) return false;
|
|
20657
20523
|
return shannonEntropy(sample) >= 7.95;
|
|
20658
20524
|
}
|
|
20659
|
-
|
|
20660
|
-
//#
|
|
20661
|
-
|
|
20662
|
-
/**
|
|
20525
|
+
//#endregion
|
|
20526
|
+
//#region src/modules/archive/zip/stream.ts
|
|
20527
|
+
/**
|
|
20663
20528
|
* True Streaming ZIP creator - shared implementation.
|
|
20664
20529
|
*
|
|
20665
20530
|
* This module is intentionally platform-agnostic.
|
|
@@ -20696,14 +20561,14 @@ var ExcelTS = (function(exports) {
|
|
|
20696
20561
|
this.name = name;
|
|
20697
20562
|
const modTime = options?.modTime ?? /* @__PURE__ */ new Date();
|
|
20698
20563
|
this._modTime = modTime;
|
|
20699
|
-
this.level = options?.level ??
|
|
20564
|
+
this.level = options?.level ?? 6;
|
|
20700
20565
|
this._smartStore = options?.smartStore ?? true;
|
|
20701
20566
|
this._sampleBuffer = this._smartStore ? new Uint8Array(64 * 1024) : new Uint8Array(0);
|
|
20702
20567
|
const metadata = buildZipEntryMetadata({
|
|
20703
20568
|
name,
|
|
20704
20569
|
comment: options?.comment ?? "",
|
|
20705
20570
|
modTime,
|
|
20706
|
-
timestamps: options?.timestamps ??
|
|
20571
|
+
timestamps: options?.timestamps ?? "dos",
|
|
20707
20572
|
useDataDescriptor: true,
|
|
20708
20573
|
deflate: false
|
|
20709
20574
|
});
|
|
@@ -20757,7 +20622,7 @@ var ExcelTS = (function(exports) {
|
|
|
20757
20622
|
crc32: 0,
|
|
20758
20623
|
compressedSize: 0,
|
|
20759
20624
|
uncompressedSize: 0,
|
|
20760
|
-
versionNeeded:
|
|
20625
|
+
versionNeeded: 20
|
|
20761
20626
|
});
|
|
20762
20627
|
}
|
|
20763
20628
|
_accumulateSample(data) {
|
|
@@ -21064,8 +20929,8 @@ var ExcelTS = (function(exports) {
|
|
|
21064
20929
|
compressedSize: entry.compressedSize,
|
|
21065
20930
|
uncompressedSize: entry.uncompressedSize,
|
|
21066
20931
|
localHeaderOffset: entry.offset,
|
|
21067
|
-
versionMadeBy:
|
|
21068
|
-
versionNeeded:
|
|
20932
|
+
versionMadeBy: 20,
|
|
20933
|
+
versionNeeded: 20
|
|
21069
20934
|
});
|
|
21070
20935
|
centralDirSize += header.length;
|
|
21071
20936
|
this.callback(null, header, false);
|
|
@@ -21084,10 +20949,9 @@ var ExcelTS = (function(exports) {
|
|
|
21084
20949
|
if (!this.activeFile) this._finalize();
|
|
21085
20950
|
}
|
|
21086
20951
|
};
|
|
21087
|
-
|
|
21088
|
-
//#
|
|
21089
|
-
|
|
21090
|
-
/**
|
|
20952
|
+
//#endregion
|
|
20953
|
+
//#region src/modules/archive/compression/compress.browser.ts
|
|
20954
|
+
/**
|
|
21091
20955
|
* Browser compression utilities
|
|
21092
20956
|
*
|
|
21093
20957
|
* Primary: CompressionStream API (Chrome 103+, Firefox 113+, Safari 16.4+)
|
|
@@ -21116,7 +20980,7 @@ var ExcelTS = (function(exports) {
|
|
|
21116
20980
|
* ```
|
|
21117
20981
|
*/
|
|
21118
20982
|
async function compress(data, options = {}) {
|
|
21119
|
-
if ((options.level ??
|
|
20983
|
+
if ((options.level ?? 6) === 0) return data;
|
|
21120
20984
|
if (hasDeflateRawCompressionStream()) return compressWithStream(data);
|
|
21121
20985
|
return deflateRawCompressed(data);
|
|
21122
20986
|
}
|
|
@@ -21128,7 +20992,7 @@ var ExcelTS = (function(exports) {
|
|
|
21128
20992
|
* @returns Compressed data
|
|
21129
20993
|
*/
|
|
21130
20994
|
function compressSync(data, options = {}) {
|
|
21131
|
-
if ((options.level ??
|
|
20995
|
+
if ((options.level ?? 6) === 0) return data;
|
|
21132
20996
|
return deflateRawCompressed(data);
|
|
21133
20997
|
}
|
|
21134
20998
|
/**
|
|
@@ -21155,10 +21019,9 @@ var ExcelTS = (function(exports) {
|
|
|
21155
21019
|
function decompressSync(data) {
|
|
21156
21020
|
return inflateRaw(data);
|
|
21157
21021
|
}
|
|
21158
|
-
|
|
21159
|
-
//#
|
|
21160
|
-
|
|
21161
|
-
/**
|
|
21022
|
+
//#endregion
|
|
21023
|
+
//#region src/modules/archive/utils/binary.ts
|
|
21024
|
+
/**
|
|
21162
21025
|
* Tiny binary reader for Uint8Array-backed DataView.
|
|
21163
21026
|
* Shared by ZIP parsers.
|
|
21164
21027
|
*/
|
|
@@ -21224,10 +21087,9 @@ var ExcelTS = (function(exports) {
|
|
|
21224
21087
|
return this.view.getUint32(offset, true);
|
|
21225
21088
|
}
|
|
21226
21089
|
};
|
|
21227
|
-
|
|
21228
|
-
//#
|
|
21229
|
-
|
|
21230
|
-
/**
|
|
21090
|
+
//#endregion
|
|
21091
|
+
//#region src/modules/archive/utils/zip-extra-fields.ts
|
|
21092
|
+
/**
|
|
21231
21093
|
* ZIP extra field parsing helpers.
|
|
21232
21094
|
*
|
|
21233
21095
|
* Kept standalone so both streaming parser (`stream.base.ts`) and buffer parser
|
|
@@ -21286,10 +21148,9 @@ var ExcelTS = (function(exports) {
|
|
|
21286
21148
|
if (vars.offsetToLocalFileHeader === 4294967295) vars.offsetToLocalFileHeader = extra.offsetToLocalFileHeader;
|
|
21287
21149
|
return extra;
|
|
21288
21150
|
}
|
|
21289
|
-
|
|
21290
|
-
//#
|
|
21291
|
-
|
|
21292
|
-
/**
|
|
21151
|
+
//#endregion
|
|
21152
|
+
//#region src/modules/archive/unzip/zip-parser.ts
|
|
21153
|
+
/**
|
|
21293
21154
|
* Pure Uint8Array-based ZIP parser
|
|
21294
21155
|
* Works in both Node.js and browser environments
|
|
21295
21156
|
* No dependency on Node.js stream module
|
|
@@ -21338,7 +21199,7 @@ var ExcelTS = (function(exports) {
|
|
|
21338
21199
|
locatorReader.skip(4);
|
|
21339
21200
|
locatorReader.skip(4);
|
|
21340
21201
|
const zip64Reader = new BinaryReader(data, Number(locatorReader.readBigUint64()));
|
|
21341
|
-
if (zip64Reader.readUint32() ===
|
|
21202
|
+
if (zip64Reader.readUint32() === 101075792) {
|
|
21342
21203
|
zip64Reader.skip(8);
|
|
21343
21204
|
zip64Reader.skip(2);
|
|
21344
21205
|
zip64Reader.skip(2);
|
|
@@ -21347,14 +21208,14 @@ var ExcelTS = (function(exports) {
|
|
|
21347
21208
|
const zip64TotalEntries = Number(zip64Reader.readBigUint64());
|
|
21348
21209
|
zip64Reader.skip(8);
|
|
21349
21210
|
const zip64CentralDirOffset = Number(zip64Reader.readBigUint64());
|
|
21350
|
-
if (totalEntries ===
|
|
21351
|
-
if (centralDirOffset ===
|
|
21211
|
+
if (totalEntries === 65535) totalEntries = zip64TotalEntries;
|
|
21212
|
+
if (centralDirOffset === 4294967295) centralDirOffset = zip64CentralDirOffset;
|
|
21352
21213
|
}
|
|
21353
21214
|
}
|
|
21354
21215
|
if (totalEntries > 0) entries = new Array(totalEntries);
|
|
21355
21216
|
const centralReader = new BinaryReader(data, centralDirOffset);
|
|
21356
21217
|
for (let i = 0; i < totalEntries; i++) {
|
|
21357
|
-
if (centralReader.readUint32() !==
|
|
21218
|
+
if (centralReader.readUint32() !== 33639248) throw new Error(`Invalid Central Directory header signature at entry ${i}`);
|
|
21358
21219
|
centralReader.skip(2);
|
|
21359
21220
|
centralReader.skip(2);
|
|
21360
21221
|
const flags = centralReader.readUint16();
|
|
@@ -21415,8 +21276,8 @@ var ExcelTS = (function(exports) {
|
|
|
21415
21276
|
if (entry.isDirectory) return new Uint8Array(0);
|
|
21416
21277
|
if (entry.isEncrypted) throw new Error(`File "${entry.path}" is encrypted and cannot be extracted`);
|
|
21417
21278
|
const compressedData = readEntryCompressedData(data, entry);
|
|
21418
|
-
if (entry.compressionMethod ===
|
|
21419
|
-
if (entry.compressionMethod ===
|
|
21279
|
+
if (entry.compressionMethod === 0) return compressedData;
|
|
21280
|
+
if (entry.compressionMethod === 8) return decompress(compressedData);
|
|
21420
21281
|
throw new Error(`Unsupported compression method: ${entry.compressionMethod}`);
|
|
21421
21282
|
}
|
|
21422
21283
|
/**
|
|
@@ -21426,13 +21287,13 @@ var ExcelTS = (function(exports) {
|
|
|
21426
21287
|
if (entry.isDirectory) return new Uint8Array(0);
|
|
21427
21288
|
if (entry.isEncrypted) throw new Error(`File "${entry.path}" is encrypted and cannot be extracted`);
|
|
21428
21289
|
const compressedData = readEntryCompressedData(data, entry);
|
|
21429
|
-
if (entry.compressionMethod ===
|
|
21430
|
-
if (entry.compressionMethod ===
|
|
21290
|
+
if (entry.compressionMethod === 0) return compressedData;
|
|
21291
|
+
if (entry.compressionMethod === 8) return decompressSync(compressedData);
|
|
21431
21292
|
throw new Error(`Unsupported compression method: ${entry.compressionMethod}`);
|
|
21432
21293
|
}
|
|
21433
21294
|
function readEntryCompressedData(data, entry) {
|
|
21434
21295
|
const reader = new BinaryReader(data, entry.localHeaderOffset);
|
|
21435
|
-
if (reader.readUint32() !==
|
|
21296
|
+
if (reader.readUint32() !== 67324752) throw new Error(`Invalid local file header signature for "${entry.path}"`);
|
|
21436
21297
|
reader.skip(2);
|
|
21437
21298
|
reader.skip(2);
|
|
21438
21299
|
reader.skip(2);
|
|
@@ -21532,10 +21393,9 @@ var ExcelTS = (function(exports) {
|
|
|
21532
21393
|
}
|
|
21533
21394
|
}
|
|
21534
21395
|
};
|
|
21535
|
-
|
|
21536
|
-
//#
|
|
21537
|
-
|
|
21538
|
-
/**
|
|
21396
|
+
//#endregion
|
|
21397
|
+
//#region src/modules/excel/utils/passthrough-manager.ts
|
|
21398
|
+
/**
|
|
21539
21399
|
* Content type definitions for passthrough files
|
|
21540
21400
|
*/
|
|
21541
21401
|
const PASSTHROUGH_CONTENT_TYPES = new Map([
|
|
@@ -21641,10 +21501,9 @@ var ExcelTS = (function(exports) {
|
|
|
21641
21501
|
return this.files.size;
|
|
21642
21502
|
}
|
|
21643
21503
|
};
|
|
21644
|
-
|
|
21645
|
-
//#
|
|
21646
|
-
|
|
21647
|
-
/**
|
|
21504
|
+
//#endregion
|
|
21505
|
+
//#region src/modules/excel/xlsx/xlsx.browser.ts
|
|
21506
|
+
/**
|
|
21648
21507
|
* XLSX - Abstract base class for XLSX operations
|
|
21649
21508
|
*
|
|
21650
21509
|
* Contains all platform-agnostic logic shared between Node.js and Browser versions:
|
|
@@ -22429,7 +22288,7 @@ var ExcelTS = (function(exports) {
|
|
|
22429
22288
|
zip.append(xform.toXml(model), { name: OOXML_PATHS.docPropsCore });
|
|
22430
22289
|
}
|
|
22431
22290
|
async addThemes(zip, model) {
|
|
22432
|
-
const themes = model.themes || { theme1:
|
|
22291
|
+
const themes = model.themes || { theme1: "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n<a:theme xmlns:a=\"http://schemas.openxmlformats.org/drawingml/2006/main\" name=\"Office Theme\"> <a:themeElements> <a:clrScheme name=\"Office\"> <a:dk1> <a:sysClr val=\"windowText\" lastClr=\"000000\"/> </a:dk1> <a:lt1> <a:sysClr val=\"window\" lastClr=\"FFFFFF\"/> </a:lt1> <a:dk2> <a:srgbClr val=\"1F497D\"/> </a:dk2> <a:lt2> <a:srgbClr val=\"EEECE1\"/> </a:lt2> <a:accent1> <a:srgbClr val=\"4F81BD\"/> </a:accent1> <a:accent2> <a:srgbClr val=\"C0504D\"/> </a:accent2> <a:accent3> <a:srgbClr val=\"9BBB59\"/> </a:accent3> <a:accent4> <a:srgbClr val=\"8064A2\"/> </a:accent4> <a:accent5> <a:srgbClr val=\"4BACC6\"/> </a:accent5> <a:accent6> <a:srgbClr val=\"F79646\"/> </a:accent6> <a:hlink> <a:srgbClr val=\"0000FF\"/> </a:hlink> <a:folHlink> <a:srgbClr val=\"800080\"/> </a:folHlink> </a:clrScheme> <a:fontScheme name=\"Office\"> <a:majorFont> <a:latin typeface=\"Cambria\"/> <a:ea typeface=\"\"/> <a:cs typeface=\"\"/> <a:font script=\"Jpan\" typeface=\"MS Pゴシック\"/> <a:font script=\"Hang\" typeface=\"맑은 고딕\"/> <a:font script=\"Hans\" typeface=\"宋体\"/> <a:font script=\"Hant\" typeface=\"新細明體\"/> <a:font script=\"Arab\" typeface=\"Times New Roman\"/> <a:font script=\"Hebr\" typeface=\"Times New Roman\"/> <a:font script=\"Thai\" typeface=\"Tahoma\"/> <a:font script=\"Ethi\" typeface=\"Nyala\"/> <a:font script=\"Beng\" typeface=\"Vrinda\"/> <a:font script=\"Gujr\" typeface=\"Shruti\"/> <a:font script=\"Khmr\" typeface=\"MoolBoran\"/> <a:font script=\"Knda\" typeface=\"Tunga\"/> <a:font script=\"Guru\" typeface=\"Raavi\"/> <a:font script=\"Cans\" typeface=\"Euphemia\"/> <a:font script=\"Cher\" typeface=\"Plantagenet Cherokee\"/> <a:font script=\"Yiii\" typeface=\"Microsoft Yi Baiti\"/> <a:font script=\"Tibt\" typeface=\"Microsoft Himalaya\"/> <a:font script=\"Thaa\" typeface=\"MV Boli\"/> <a:font script=\"Deva\" typeface=\"Mangal\"/> <a:font script=\"Telu\" typeface=\"Gautami\"/> <a:font script=\"Taml\" typeface=\"Latha\"/> <a:font script=\"Syrc\" typeface=\"Estrangelo Edessa\"/> <a:font script=\"Orya\" typeface=\"Kalinga\"/> <a:font script=\"Mlym\" typeface=\"Kartika\"/> <a:font script=\"Laoo\" typeface=\"DokChampa\"/> <a:font script=\"Sinh\" typeface=\"Iskoola Pota\"/> <a:font script=\"Mong\" typeface=\"Mongolian Baiti\"/> <a:font script=\"Viet\" typeface=\"Times New Roman\"/> <a:font script=\"Uigh\" typeface=\"Microsoft Uighur\"/> <a:font script=\"Geor\" typeface=\"Sylfaen\"/> </a:majorFont> <a:minorFont> <a:latin typeface=\"Calibri\"/> <a:ea typeface=\"\"/> <a:cs typeface=\"\"/> <a:font script=\"Jpan\" typeface=\"MS Pゴシック\"/> <a:font script=\"Hang\" typeface=\"맑은 고딕\"/> <a:font script=\"Hans\" typeface=\"宋体\"/> <a:font script=\"Hant\" typeface=\"新細明體\"/> <a:font script=\"Arab\" typeface=\"Arial\"/> <a:font script=\"Hebr\" typeface=\"Arial\"/> <a:font script=\"Thai\" typeface=\"Tahoma\"/> <a:font script=\"Ethi\" typeface=\"Nyala\"/> <a:font script=\"Beng\" typeface=\"Vrinda\"/> <a:font script=\"Gujr\" typeface=\"Shruti\"/> <a:font script=\"Khmr\" typeface=\"DaunPenh\"/> <a:font script=\"Knda\" typeface=\"Tunga\"/> <a:font script=\"Guru\" typeface=\"Raavi\"/> <a:font script=\"Cans\" typeface=\"Euphemia\"/> <a:font script=\"Cher\" typeface=\"Plantagenet Cherokee\"/> <a:font script=\"Yiii\" typeface=\"Microsoft Yi Baiti\"/> <a:font script=\"Tibt\" typeface=\"Microsoft Himalaya\"/> <a:font script=\"Thaa\" typeface=\"MV Boli\"/> <a:font script=\"Deva\" typeface=\"Mangal\"/> <a:font script=\"Telu\" typeface=\"Gautami\"/> <a:font script=\"Taml\" typeface=\"Latha\"/> <a:font script=\"Syrc\" typeface=\"Estrangelo Edessa\"/> <a:font script=\"Orya\" typeface=\"Kalinga\"/> <a:font script=\"Mlym\" typeface=\"Kartika\"/> <a:font script=\"Laoo\" typeface=\"DokChampa\"/> <a:font script=\"Sinh\" typeface=\"Iskoola Pota\"/> <a:font script=\"Mong\" typeface=\"Mongolian Baiti\"/> <a:font script=\"Viet\" typeface=\"Arial\"/> <a:font script=\"Uigh\" typeface=\"Microsoft Uighur\"/> <a:font script=\"Geor\" typeface=\"Sylfaen\"/> </a:minorFont> </a:fontScheme> <a:fmtScheme name=\"Office\"> <a:fillStyleLst> <a:solidFill> <a:schemeClr val=\"phClr\"/> </a:solidFill> <a:gradFill rotWithShape=\"1\"> <a:gsLst> <a:gs pos=\"0\"> <a:schemeClr val=\"phClr\"> <a:tint val=\"50000\"/> <a:satMod val=\"300000\"/> </a:schemeClr> </a:gs> <a:gs pos=\"35000\"> <a:schemeClr val=\"phClr\"> <a:tint val=\"37000\"/> <a:satMod val=\"300000\"/> </a:schemeClr> </a:gs> <a:gs pos=\"100000\"> <a:schemeClr val=\"phClr\"> <a:tint val=\"15000\"/> <a:satMod val=\"350000\"/> </a:schemeClr> </a:gs> </a:gsLst> <a:lin ang=\"16200000\" scaled=\"1\"/> </a:gradFill> <a:gradFill rotWithShape=\"1\"> <a:gsLst> <a:gs pos=\"0\"> <a:schemeClr val=\"phClr\"> <a:tint val=\"100000\"/> <a:shade val=\"100000\"/> <a:satMod val=\"130000\"/> </a:schemeClr> </a:gs> <a:gs pos=\"100000\"> <a:schemeClr val=\"phClr\"> <a:tint val=\"50000\"/> <a:shade val=\"100000\"/> <a:satMod val=\"350000\"/> </a:schemeClr> </a:gs> </a:gsLst> <a:lin ang=\"16200000\" scaled=\"0\"/> </a:gradFill> </a:fillStyleLst> <a:lnStyleLst> <a:ln w=\"9525\" cap=\"flat\" cmpd=\"sng\" algn=\"ctr\"> <a:solidFill> <a:schemeClr val=\"phClr\"> <a:shade val=\"95000\"/> <a:satMod val=\"105000\"/> </a:schemeClr> </a:solidFill> <a:prstDash val=\"solid\"/> </a:ln> <a:ln w=\"25400\" cap=\"flat\" cmpd=\"sng\" algn=\"ctr\"> <a:solidFill> <a:schemeClr val=\"phClr\"/> </a:solidFill> <a:prstDash val=\"solid\"/> </a:ln> <a:ln w=\"38100\" cap=\"flat\" cmpd=\"sng\" algn=\"ctr\"> <a:solidFill> <a:schemeClr val=\"phClr\"/> </a:solidFill> <a:prstDash val=\"solid\"/> </a:ln> </a:lnStyleLst> <a:effectStyleLst> <a:effectStyle> <a:effectLst> <a:outerShdw blurRad=\"40000\" dist=\"20000\" dir=\"5400000\" rotWithShape=\"0\"> <a:srgbClr val=\"000000\"> <a:alpha val=\"38000\"/> </a:srgbClr> </a:outerShdw> </a:effectLst> </a:effectStyle> <a:effectStyle> <a:effectLst> <a:outerShdw blurRad=\"40000\" dist=\"23000\" dir=\"5400000\" rotWithShape=\"0\"> <a:srgbClr val=\"000000\"> <a:alpha val=\"35000\"/> </a:srgbClr> </a:outerShdw> </a:effectLst> </a:effectStyle> <a:effectStyle> <a:effectLst> <a:outerShdw blurRad=\"40000\" dist=\"23000\" dir=\"5400000\" rotWithShape=\"0\"> <a:srgbClr val=\"000000\"> <a:alpha val=\"35000\"/> </a:srgbClr> </a:outerShdw> </a:effectLst> <a:scene3d> <a:camera prst=\"orthographicFront\"> <a:rot lat=\"0\" lon=\"0\" rev=\"0\"/> </a:camera> <a:lightRig rig=\"threePt\" dir=\"t\"> <a:rot lat=\"0\" lon=\"0\" rev=\"1200000\"/> </a:lightRig> </a:scene3d> <a:sp3d> <a:bevelT w=\"63500\" h=\"25400\"/> </a:sp3d> </a:effectStyle> </a:effectStyleLst> <a:bgFillStyleLst> <a:solidFill> <a:schemeClr val=\"phClr\"/> </a:solidFill> <a:gradFill rotWithShape=\"1\"> <a:gsLst> <a:gs pos=\"0\"> <a:schemeClr val=\"phClr\"> <a:tint val=\"40000\"/> <a:satMod val=\"350000\"/> </a:schemeClr> </a:gs> <a:gs pos=\"40000\"> <a:schemeClr val=\"phClr\"> <a:tint val=\"45000\"/> <a:shade val=\"99000\"/> <a:satMod val=\"350000\"/> </a:schemeClr> </a:gs> <a:gs pos=\"100000\"> <a:schemeClr val=\"phClr\"> <a:shade val=\"20000\"/> <a:satMod val=\"255000\"/> </a:schemeClr> </a:gs> </a:gsLst> <a:path path=\"circle\"> <a:fillToRect l=\"50000\" t=\"-80000\" r=\"50000\" b=\"180000\"/> </a:path> </a:gradFill> <a:gradFill rotWithShape=\"1\"> <a:gsLst> <a:gs pos=\"0\"> <a:schemeClr val=\"phClr\"> <a:tint val=\"80000\"/> <a:satMod val=\"300000\"/> </a:schemeClr> </a:gs> <a:gs pos=\"100000\"> <a:schemeClr val=\"phClr\"> <a:shade val=\"30000\"/> <a:satMod val=\"200000\"/> </a:schemeClr> </a:gs> </a:gsLst> <a:path path=\"circle\"> <a:fillToRect l=\"50000\" t=\"50000\" r=\"50000\" b=\"50000\"/> </a:path> </a:gradFill> </a:bgFillStyleLst> </a:fmtScheme> </a:themeElements> <a:objectDefaults> <a:spDef> <a:spPr/> <a:bodyPr/> <a:lstStyle/> <a:style> <a:lnRef idx=\"1\"> <a:schemeClr val=\"accent1\"/> </a:lnRef> <a:fillRef idx=\"3\"> <a:schemeClr val=\"accent1\"/> </a:fillRef> <a:effectRef idx=\"2\"> <a:schemeClr val=\"accent1\"/> </a:effectRef> <a:fontRef idx=\"minor\"> <a:schemeClr val=\"lt1\"/> </a:fontRef> </a:style> </a:spDef> <a:lnDef> <a:spPr/> <a:bodyPr/> <a:lstStyle/> <a:style> <a:lnRef idx=\"2\"> <a:schemeClr val=\"accent1\"/> </a:lnRef> <a:fillRef idx=\"0\"> <a:schemeClr val=\"accent1\"/> </a:fillRef> <a:effectRef idx=\"1\"> <a:schemeClr val=\"accent1\"/> </a:effectRef> <a:fontRef idx=\"minor\"> <a:schemeClr val=\"tx1\"/> </a:fontRef> </a:style> </a:lnDef> </a:objectDefaults> <a:extraClrSchemeLst/> </a:theme>" };
|
|
22433
22292
|
Object.keys(themes).forEach((name) => {
|
|
22434
22293
|
const xml = themes[name];
|
|
22435
22294
|
zip.append(xml, { name: themePath(name) });
|
|
@@ -22704,9 +22563,8 @@ var ExcelTS = (function(exports) {
|
|
|
22704
22563
|
model.passthroughContentTypes = passthroughManager.getContentTypes();
|
|
22705
22564
|
}
|
|
22706
22565
|
};
|
|
22707
|
-
|
|
22708
|
-
//#
|
|
22709
|
-
//#region src/utils/datetime.ts
|
|
22566
|
+
//#endregion
|
|
22567
|
+
//#region src/utils/datetime.ts
|
|
22710
22568
|
const PAD2 = Array.from({ length: 60 }, (_, i) => i < 10 ? `0${i}` : `${i}`);
|
|
22711
22569
|
const C_0 = 48;
|
|
22712
22570
|
const C_DASH = 45;
|
|
@@ -23021,9 +22879,8 @@ var ExcelTS = (function(exports) {
|
|
|
23021
22879
|
return out;
|
|
23022
22880
|
}
|
|
23023
22881
|
};
|
|
23024
|
-
|
|
23025
|
-
//#
|
|
23026
|
-
//#region src/modules/csv/csv-number.ts
|
|
22882
|
+
//#endregion
|
|
22883
|
+
//#region src/modules/csv/csv-number.ts
|
|
23027
22884
|
function formatNumberForCsv(value, decimalSeparator) {
|
|
23028
22885
|
if (decimalSeparator !== ",") return String(value);
|
|
23029
22886
|
return String(value).split(".").join(",");
|
|
@@ -23034,10 +22891,9 @@ var ExcelTS = (function(exports) {
|
|
|
23034
22891
|
if (/^-?\d+(,\d+)?([eE][+-]?\d+)?$/.test(trimmed)) return Number(trimmed.replace(",", "."));
|
|
23035
22892
|
return Number(value);
|
|
23036
22893
|
}
|
|
23037
|
-
|
|
23038
|
-
//#
|
|
23039
|
-
|
|
23040
|
-
/**
|
|
22894
|
+
//#endregion
|
|
22895
|
+
//#region src/modules/csv/csv-core.ts
|
|
22896
|
+
/**
|
|
23041
22897
|
* CSV Parser and Formatter - RFC 4180 compliant
|
|
23042
22898
|
*
|
|
23043
22899
|
* A lightweight, cross-platform CSV implementation that works in both
|
|
@@ -23349,10 +23205,9 @@ var ExcelTS = (function(exports) {
|
|
|
23349
23205
|
if (writeBOM) result = "" + result;
|
|
23350
23206
|
return result;
|
|
23351
23207
|
}
|
|
23352
|
-
|
|
23353
|
-
//#
|
|
23354
|
-
|
|
23355
|
-
/**
|
|
23208
|
+
//#endregion
|
|
23209
|
+
//#region src/modules/csv/csv-stream.ts
|
|
23210
|
+
/**
|
|
23356
23211
|
* CSV Streaming Support - Cross-Platform
|
|
23357
23212
|
*
|
|
23358
23213
|
* Provides true streaming CSV parsing and formatting using our cross-platform stream module.
|
|
@@ -23834,10 +23689,9 @@ var ExcelTS = (function(exports) {
|
|
|
23834
23689
|
function escapeRegex(str) {
|
|
23835
23690
|
return str.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
23836
23691
|
}
|
|
23837
|
-
|
|
23838
|
-
//#
|
|
23839
|
-
|
|
23840
|
-
/**
|
|
23692
|
+
//#endregion
|
|
23693
|
+
//#region src/modules/csv/csv.browser.ts
|
|
23694
|
+
/**
|
|
23841
23695
|
* CSV class - Cross-Platform Base Implementation
|
|
23842
23696
|
*
|
|
23843
23697
|
* Provides CSV read/write functionality for both Node.js and Browser.
|
|
@@ -23995,9 +23849,8 @@ var ExcelTS = (function(exports) {
|
|
|
23995
23849
|
throw new Error("csv.writeFile() is not available in browser.\nUse csv.writeBuffer() and trigger a download instead.\nExample: const buffer = await workbook.csv.writeBuffer();\n download(new Blob([buffer]), 'output.csv');");
|
|
23996
23850
|
}
|
|
23997
23851
|
};
|
|
23998
|
-
|
|
23999
|
-
//#
|
|
24000
|
-
//#region src/modules/excel/utils/shared-strings.ts
|
|
23852
|
+
//#endregion
|
|
23853
|
+
//#region src/modules/excel/utils/shared-strings.ts
|
|
24001
23854
|
var SharedStrings = class {
|
|
24002
23855
|
constructor() {
|
|
24003
23856
|
this._values = [];
|
|
@@ -24026,9 +23879,8 @@ var ExcelTS = (function(exports) {
|
|
|
24026
23879
|
return index;
|
|
24027
23880
|
}
|
|
24028
23881
|
};
|
|
24029
|
-
|
|
24030
|
-
//#
|
|
24031
|
-
//#region src/modules/excel/stream/sheet-rels-writer.ts
|
|
23882
|
+
//#endregion
|
|
23883
|
+
//#region src/modules/excel/stream/sheet-rels-writer.ts
|
|
24032
23884
|
var HyperlinksProxy = class {
|
|
24033
23885
|
constructor(sheetRelsWriter) {
|
|
24034
23886
|
this.writer = sheetRelsWriter;
|
|
@@ -24096,9 +23948,8 @@ var ExcelTS = (function(exports) {
|
|
|
24096
23948
|
this.stream.write("</Relationships>");
|
|
24097
23949
|
}
|
|
24098
23950
|
};
|
|
24099
|
-
|
|
24100
|
-
//#
|
|
24101
|
-
//#region src/modules/excel/stream/sheet-comments-writer.ts
|
|
23951
|
+
//#endregion
|
|
23952
|
+
//#region src/modules/excel/stream/sheet-comments-writer.ts
|
|
24102
23953
|
var SheetCommentsWriter = class {
|
|
24103
23954
|
constructor(worksheet, sheetRelsWriter, options) {
|
|
24104
23955
|
this.id = options.id;
|
|
@@ -24177,9 +24028,8 @@ var ExcelTS = (function(exports) {
|
|
|
24177
24028
|
}
|
|
24178
24029
|
}
|
|
24179
24030
|
};
|
|
24180
|
-
|
|
24181
|
-
//#
|
|
24182
|
-
//#region src/modules/excel/stream/worksheet-writer.ts
|
|
24031
|
+
//#endregion
|
|
24032
|
+
//#region src/modules/excel/stream/worksheet-writer.ts
|
|
24183
24033
|
const xmlBuffer = new StringBuf();
|
|
24184
24034
|
const xform = {
|
|
24185
24035
|
dataValidations: new DataValidationsXform(),
|
|
@@ -24628,10 +24478,9 @@ var ExcelTS = (function(exports) {
|
|
|
24628
24478
|
this._write("</worksheet>");
|
|
24629
24479
|
}
|
|
24630
24480
|
};
|
|
24631
|
-
|
|
24632
|
-
//#
|
|
24633
|
-
|
|
24634
|
-
/**
|
|
24481
|
+
//#endregion
|
|
24482
|
+
//#region src/modules/excel/stream/workbook-writer.browser.ts
|
|
24483
|
+
/**
|
|
24635
24484
|
* WorkbookWriter - Browser Streaming Excel Writer
|
|
24636
24485
|
*
|
|
24637
24486
|
* This module contains the full cross-platform implementation for the streaming
|
|
@@ -24960,10 +24809,9 @@ var ExcelTS = (function(exports) {
|
|
|
24960
24809
|
super(options, WorksheetWriter);
|
|
24961
24810
|
}
|
|
24962
24811
|
};
|
|
24963
|
-
|
|
24964
|
-
//#
|
|
24965
|
-
|
|
24966
|
-
/**
|
|
24812
|
+
//#endregion
|
|
24813
|
+
//#region src/modules/archive/utils/parse-buffer.ts
|
|
24814
|
+
/**
|
|
24967
24815
|
* Parses sequential unsigned little endian numbers from the head of the passed buffer according to
|
|
24968
24816
|
* the specified format passed. If the buffer is not large enough to satisfy the full format,
|
|
24969
24817
|
* null values will be assigned to the remaining keys.
|
|
@@ -25009,10 +24857,9 @@ var ExcelTS = (function(exports) {
|
|
|
25009
24857
|
function parseTyped(buffer, format) {
|
|
25010
24858
|
return parse(buffer, format);
|
|
25011
24859
|
}
|
|
25012
|
-
|
|
25013
|
-
//#
|
|
25014
|
-
|
|
25015
|
-
/**
|
|
24860
|
+
//#endregion
|
|
24861
|
+
//#region src/modules/archive/utils/pattern-scanner.ts
|
|
24862
|
+
/**
|
|
25016
24863
|
* Stateful helper for incremental pattern scanning in growing buffers.
|
|
25017
24864
|
*
|
|
25018
24865
|
* The scanner tracks a `searchFrom` cursor and an `overlap` region so callers
|
|
@@ -25037,9 +24884,8 @@ var ExcelTS = (function(exports) {
|
|
|
25037
24884
|
this.searchFrom = Math.max(this.searchFrom, Math.max(0, bufferLength - this.overlap));
|
|
25038
24885
|
}
|
|
25039
24886
|
};
|
|
25040
|
-
|
|
25041
|
-
//#
|
|
25042
|
-
//#region src/modules/archive/unzip/stream.base.ts
|
|
24887
|
+
//#endregion
|
|
24888
|
+
//#region src/modules/archive/unzip/stream.base.ts
|
|
25043
24889
|
const DATA_DESCRIPTOR_SIGNATURE_BYTES = writeUint32LE(DATA_DESCRIPTOR_SIG);
|
|
25044
24890
|
const DEFAULT_UNZIP_STREAM_HIGH_WATER_MARK$1 = 256 * 1024;
|
|
25045
24891
|
const CRX_HEADER_FORMAT = [
|
|
@@ -25093,7 +24939,7 @@ var ExcelTS = (function(exports) {
|
|
|
25093
24939
|
["commentLength", 2]
|
|
25094
24940
|
];
|
|
25095
24941
|
const textDecoder = new TextDecoder();
|
|
25096
|
-
|
|
24942
|
+
new TextEncoder();
|
|
25097
24943
|
function decodeZipEntryPath(pathBuffer) {
|
|
25098
24944
|
return textDecoder.decode(pathBuffer);
|
|
25099
24945
|
}
|
|
@@ -25287,14 +25133,12 @@ var ExcelTS = (function(exports) {
|
|
|
25287
25133
|
if (written > 0) {
|
|
25288
25134
|
source.discard(written);
|
|
25289
25135
|
bytesEmitted += written;
|
|
25290
|
-
available -= written;
|
|
25291
25136
|
scanner.onConsume(written);
|
|
25292
25137
|
}
|
|
25293
25138
|
if (waitingDrain) return;
|
|
25294
25139
|
} else {
|
|
25295
25140
|
const ok = output.write(source.read(idx));
|
|
25296
25141
|
bytesEmitted += idx;
|
|
25297
|
-
available -= idx;
|
|
25298
25142
|
scanner.onConsume(idx);
|
|
25299
25143
|
if (!ok) {
|
|
25300
25144
|
waitingDrain = true;
|
|
@@ -25371,13 +25215,9 @@ var ExcelTS = (function(exports) {
|
|
|
25371
25215
|
queueMicrotask(pull);
|
|
25372
25216
|
return output;
|
|
25373
25217
|
}
|
|
25374
|
-
/**
|
|
25375
|
-
* Default threshold for small file optimization (5MB).
|
|
25376
|
-
*/
|
|
25377
|
-
const DEFAULT_PARSE_THRESHOLD_BYTES = 5 * 1024 * 1024;
|
|
25378
25218
|
const endDirectorySignature = writeUint32LE(END_OF_CENTRAL_DIR_SIG);
|
|
25379
25219
|
async function runParseLoop(opts, io, emitter, inflateFactory, state, inflateRawSync) {
|
|
25380
|
-
const thresholdBytes = opts.thresholdBytes ??
|
|
25220
|
+
const thresholdBytes = opts.thresholdBytes ?? 5242880;
|
|
25381
25221
|
while (true) {
|
|
25382
25222
|
const sigBytes = await io.pull(4);
|
|
25383
25223
|
if (sigBytes.length === 0) {
|
|
@@ -25390,16 +25230,16 @@ var ExcelTS = (function(exports) {
|
|
|
25390
25230
|
emitter.emitCrxHeader(state.crxHeader);
|
|
25391
25231
|
continue;
|
|
25392
25232
|
}
|
|
25393
|
-
if (signature ===
|
|
25233
|
+
if (signature === 67324752) {
|
|
25394
25234
|
await readFileRecord(opts, io, emitter, inflateFactory, state, thresholdBytes, inflateRawSync);
|
|
25395
25235
|
continue;
|
|
25396
25236
|
}
|
|
25397
|
-
if (signature ===
|
|
25237
|
+
if (signature === 33639248) {
|
|
25398
25238
|
state.reachedCD = true;
|
|
25399
25239
|
await consumeCentralDirectoryFileHeader(async (length) => io.pull(length));
|
|
25400
25240
|
continue;
|
|
25401
25241
|
}
|
|
25402
|
-
if (signature ===
|
|
25242
|
+
if (signature === 101010256) {
|
|
25403
25243
|
await consumeEndOfCentralDirectoryRecord(async (length) => io.pull(length));
|
|
25404
25244
|
io.setDone();
|
|
25405
25245
|
emitter.emitClose();
|
|
@@ -25517,8 +25357,17 @@ var ExcelTS = (function(exports) {
|
|
|
25517
25357
|
else if (entry.type === "File") if (vars.compressionMethod === 0) console.log(" extracting:", fileName);
|
|
25518
25358
|
else console.log(" inflating:", fileName);
|
|
25519
25359
|
}
|
|
25520
|
-
const
|
|
25521
|
-
|
|
25360
|
+
const zipVars = {
|
|
25361
|
+
uncompressedSize: vars.uncompressedSize ?? 0,
|
|
25362
|
+
compressedSize: vars.compressedSize ?? 0
|
|
25363
|
+
};
|
|
25364
|
+
const extra = parseExtraField(extraFieldData, zipVars);
|
|
25365
|
+
vars.lastModifiedDateTime = resolveZipEntryLastModifiedDateTime({
|
|
25366
|
+
flags: vars.flags,
|
|
25367
|
+
uncompressedSize: zipVars.uncompressedSize,
|
|
25368
|
+
lastModifiedDate: vars.lastModifiedDate,
|
|
25369
|
+
lastModifiedTime: vars.lastModifiedTime
|
|
25370
|
+
}, extra);
|
|
25522
25371
|
entry.vars = vars;
|
|
25523
25372
|
entry.extraFields = extra;
|
|
25524
25373
|
entry.__autodraining = autodraining;
|
|
@@ -25551,10 +25400,9 @@ var ExcelTS = (function(exports) {
|
|
|
25551
25400
|
await pipeline(io.streamUntilDataDescriptor(), inflater, entry);
|
|
25552
25401
|
entry.size = (await readDataDescriptor(async (l) => io.pull(l))).uncompressedSize ?? 0;
|
|
25553
25402
|
}
|
|
25554
|
-
|
|
25555
|
-
//#
|
|
25556
|
-
|
|
25557
|
-
/**
|
|
25403
|
+
//#endregion
|
|
25404
|
+
//#region src/modules/archive/unzip/stream.browser.ts
|
|
25405
|
+
/**
|
|
25558
25406
|
* ZIP Stream Parser - Browser Version
|
|
25559
25407
|
*
|
|
25560
25408
|
* A streaming ZIP parser for browsers using native DecompressionStream.
|
|
@@ -25665,7 +25513,7 @@ var ExcelTS = (function(exports) {
|
|
|
25665
25513
|
destroy(error) {
|
|
25666
25514
|
if (!this.writeClosed) this.writer.abort(error ?? void 0).catch(() => {});
|
|
25667
25515
|
this.reader.cancel(error ?? void 0).catch(() => {});
|
|
25668
|
-
return super.destroy(error);
|
|
25516
|
+
return super.destroy(error ?? void 0);
|
|
25669
25517
|
}
|
|
25670
25518
|
};
|
|
25671
25519
|
let _inflateWorkerUrl = null;
|
|
@@ -25855,7 +25703,7 @@ onmessage = async (ev) => {
|
|
|
25855
25703
|
} catch {}
|
|
25856
25704
|
}
|
|
25857
25705
|
this._terminateWorker();
|
|
25858
|
-
return super.destroy(error);
|
|
25706
|
+
return super.destroy(error ?? void 0);
|
|
25859
25707
|
}
|
|
25860
25708
|
};
|
|
25861
25709
|
/**
|
|
@@ -25894,7 +25742,7 @@ onmessage = async (ev) => {
|
|
|
25894
25742
|
destroy(error) {
|
|
25895
25743
|
this._finished = true;
|
|
25896
25744
|
this.chunks = [];
|
|
25897
|
-
return super.destroy(error);
|
|
25745
|
+
return super.destroy(error ?? void 0);
|
|
25898
25746
|
}
|
|
25899
25747
|
};
|
|
25900
25748
|
function createInflateRaw() {
|
|
@@ -26215,9 +26063,8 @@ onmessage = async (ev) => {
|
|
|
26215
26063
|
function createParse(opts) {
|
|
26216
26064
|
return new Parse(opts);
|
|
26217
26065
|
}
|
|
26218
|
-
|
|
26219
|
-
//#
|
|
26220
|
-
//#region src/modules/excel/utils/iterate-stream.ts
|
|
26066
|
+
//#endregion
|
|
26067
|
+
//#region src/modules/excel/utils/iterate-stream.ts
|
|
26221
26068
|
async function* iterateStream(stream) {
|
|
26222
26069
|
const contents = [];
|
|
26223
26070
|
let resolveDataPromise = null;
|
|
@@ -26266,10 +26113,9 @@ onmessage = async (ev) => {
|
|
|
26266
26113
|
stream.removeListener("error", onError);
|
|
26267
26114
|
}
|
|
26268
26115
|
}
|
|
26269
|
-
|
|
26270
|
-
//#
|
|
26271
|
-
|
|
26272
|
-
/**
|
|
26116
|
+
//#endregion
|
|
26117
|
+
//#region src/modules/excel/stream/worksheet-reader.ts
|
|
26118
|
+
/**
|
|
26273
26119
|
* WorksheetReader - Cross-Platform Streaming Worksheet Reader
|
|
26274
26120
|
*
|
|
26275
26121
|
* Works in both Node.js and Browser.
|
|
@@ -26465,7 +26311,10 @@ onmessage = async (ev) => {
|
|
|
26465
26311
|
break;
|
|
26466
26312
|
case "row":
|
|
26467
26313
|
if (row) {
|
|
26468
|
-
this._dimensions.expandRow(
|
|
26314
|
+
this._dimensions.expandRow({
|
|
26315
|
+
number: row.number,
|
|
26316
|
+
dimensions: row.dimensions ?? void 0
|
|
26317
|
+
});
|
|
26469
26318
|
(worksheetEvents ||= []).push({
|
|
26470
26319
|
eventType: "row",
|
|
26471
26320
|
value: row
|
|
@@ -26536,10 +26385,9 @@ onmessage = async (ev) => {
|
|
|
26536
26385
|
}
|
|
26537
26386
|
}
|
|
26538
26387
|
};
|
|
26539
|
-
|
|
26540
|
-
//#
|
|
26541
|
-
|
|
26542
|
-
/**
|
|
26388
|
+
//#endregion
|
|
26389
|
+
//#region src/modules/excel/stream/hyperlink-reader.ts
|
|
26390
|
+
/**
|
|
26543
26391
|
* HyperlinkReader - Streaming Hyperlink Reader
|
|
26544
26392
|
*
|
|
26545
26393
|
* Cross-platform implementation.
|
|
@@ -26602,10 +26450,9 @@ onmessage = async (ev) => {
|
|
|
26602
26450
|
}
|
|
26603
26451
|
}
|
|
26604
26452
|
};
|
|
26605
|
-
|
|
26606
|
-
//#
|
|
26607
|
-
|
|
26608
|
-
/**
|
|
26453
|
+
//#endregion
|
|
26454
|
+
//#region src/modules/excel/stream/workbook-reader.browser.ts
|
|
26455
|
+
/**
|
|
26609
26456
|
* WorkbookReader - Browser Streaming Workbook Reader
|
|
26610
26457
|
*
|
|
26611
26458
|
* This module contains the full shared implementation for the streaming
|
|
@@ -26956,10 +26803,9 @@ onmessage = async (ev) => {
|
|
|
26956
26803
|
}
|
|
26957
26804
|
}
|
|
26958
26805
|
};
|
|
26959
|
-
|
|
26960
|
-
//#
|
|
26961
|
-
|
|
26962
|
-
/**
|
|
26806
|
+
//#endregion
|
|
26807
|
+
//#region src/modules/excel/workbook.ts
|
|
26808
|
+
/**
|
|
26963
26809
|
* Workbook - Cross-platform Excel Workbook
|
|
26964
26810
|
*
|
|
26965
26811
|
* Full functionality:
|
|
@@ -27214,9 +27060,8 @@ onmessage = async (ev) => {
|
|
|
27214
27060
|
this._defaultFont = value.defaultFont;
|
|
27215
27061
|
}
|
|
27216
27062
|
};
|
|
27217
|
-
|
|
27218
|
-
//#
|
|
27219
|
-
//#region src/modules/excel/types.ts
|
|
27063
|
+
//#endregion
|
|
27064
|
+
//#region src/modules/excel/types.ts
|
|
27220
27065
|
let PaperSize = /* @__PURE__ */ function(PaperSize) {
|
|
27221
27066
|
PaperSize[PaperSize["Legal"] = 5] = "Legal";
|
|
27222
27067
|
PaperSize[PaperSize["Executive"] = 7] = "Executive";
|
|
@@ -27232,10 +27077,9 @@ onmessage = async (ev) => {
|
|
|
27232
27077
|
PaperSize[PaperSize["K16_197x273_mm"] = 119] = "K16_197x273_mm";
|
|
27233
27078
|
return PaperSize;
|
|
27234
27079
|
}({});
|
|
27235
|
-
|
|
27236
|
-
//#
|
|
27237
|
-
|
|
27238
|
-
/**
|
|
27080
|
+
//#endregion
|
|
27081
|
+
//#region src/modules/excel/utils/cell-format.ts
|
|
27082
|
+
/**
|
|
27239
27083
|
* Excel Cell Format Parser
|
|
27240
27084
|
* A simplified implementation for formatting cell values according to Excel numFmt patterns
|
|
27241
27085
|
* Supports: General, percentages, decimals, thousands separators, dates, currencies,
|
|
@@ -27696,10 +27540,9 @@ onmessage = async (ev) => {
|
|
|
27696
27540
|
const formattedNum = formatNumberPattern(numVal, cleanFmt);
|
|
27697
27541
|
return prefix + formattedNum + suffix;
|
|
27698
27542
|
}
|
|
27699
|
-
|
|
27700
|
-
//#
|
|
27701
|
-
|
|
27702
|
-
/**
|
|
27543
|
+
//#endregion
|
|
27544
|
+
//#region src/modules/excel/utils/sheet-utils.ts
|
|
27545
|
+
/**
|
|
27703
27546
|
* Utility functions for ExcelTS
|
|
27704
27547
|
* Provides convenient helper functions for common spreadsheet operations
|
|
27705
27548
|
*/
|
|
@@ -28090,7 +27933,7 @@ onmessage = async (ev) => {
|
|
|
28090
27933
|
});
|
|
28091
27934
|
});
|
|
28092
27935
|
worksheet.columns?.forEach((col, idx) => {
|
|
28093
|
-
if (col && newWs.columns[idx]) {
|
|
27936
|
+
if (col && newWs.columns?.[idx]) {
|
|
28094
27937
|
if (col.width) newWs.getColumn(idx + 1).width = col.width;
|
|
28095
27938
|
}
|
|
28096
27939
|
});
|
|
@@ -28161,10 +28004,9 @@ onmessage = async (ev) => {
|
|
|
28161
28004
|
});
|
|
28162
28005
|
return result;
|
|
28163
28006
|
}
|
|
28164
|
-
|
|
28165
|
-
//#
|
|
28166
|
-
|
|
28167
|
-
/**
|
|
28007
|
+
//#endregion
|
|
28008
|
+
//#region src/modules/archive/zip/zip-bytes.ts
|
|
28009
|
+
/**
|
|
28168
28010
|
* ZIP file format encoder (single-buffer output)
|
|
28169
28011
|
*
|
|
28170
28012
|
* Implements ZIP file structure according to PKWARE's APPNOTE.TXT specification
|
|
@@ -28227,10 +28069,10 @@ onmessage = async (ev) => {
|
|
|
28227
28069
|
};
|
|
28228
28070
|
}
|
|
28229
28071
|
function computeLocalRecordSize(entry) {
|
|
28230
|
-
return
|
|
28072
|
+
return 30 + entry.name.length + entry.extraField.length + entry.compressedData.length;
|
|
28231
28073
|
}
|
|
28232
28074
|
function computeCentralDirHeaderSize(entry) {
|
|
28233
|
-
return
|
|
28075
|
+
return 46 + entry.name.length + entry.extraField.length + entry.comment.length;
|
|
28234
28076
|
}
|
|
28235
28077
|
function buildProcessedEntry(entry, offset, settings, compressedData, deflate) {
|
|
28236
28078
|
const modDate = entry.modTime ?? settings.defaultModTime;
|
|
@@ -28271,7 +28113,7 @@ onmessage = async (ev) => {
|
|
|
28271
28113
|
centralDirSize += computeCentralDirHeaderSize(entry);
|
|
28272
28114
|
}
|
|
28273
28115
|
const centralDirOffset = localSectionSize;
|
|
28274
|
-
const totalSize = localSectionSize + centralDirSize +
|
|
28116
|
+
const totalSize = localSectionSize + centralDirSize + 22 + zipComment.length;
|
|
28275
28117
|
const out = new Uint8Array(totalSize);
|
|
28276
28118
|
const view = new DataView(out.buffer, out.byteOffset, out.byteLength);
|
|
28277
28119
|
let offset = 0;
|
|
@@ -28316,10 +28158,10 @@ onmessage = async (ev) => {
|
|
|
28316
28158
|
*/
|
|
28317
28159
|
async function createZip(entries, options = {}) {
|
|
28318
28160
|
const reproducible = options.reproducible ?? false;
|
|
28319
|
-
const level = options.level ??
|
|
28161
|
+
const level = options.level ?? 6;
|
|
28320
28162
|
const smartStore = options.smartStore ?? true;
|
|
28321
28163
|
const concurrency = options.concurrency ?? 4;
|
|
28322
|
-
const timestamps = options.timestamps ?? (reproducible ? "dos" :
|
|
28164
|
+
const timestamps = options.timestamps ?? (reproducible ? "dos" : "dos");
|
|
28323
28165
|
const zipComment = encodeZipComment(options.comment);
|
|
28324
28166
|
const settings = {
|
|
28325
28167
|
level,
|
|
@@ -28362,9 +28204,9 @@ onmessage = async (ev) => {
|
|
|
28362
28204
|
*/
|
|
28363
28205
|
function createZipSync(entries, options = {}) {
|
|
28364
28206
|
const reproducible = options.reproducible ?? false;
|
|
28365
|
-
const level = options.level ??
|
|
28207
|
+
const level = options.level ?? 6;
|
|
28366
28208
|
const smartStore = options.smartStore ?? true;
|
|
28367
|
-
const timestamps = options.timestamps ?? (reproducible ? "dos" :
|
|
28209
|
+
const timestamps = options.timestamps ?? (reproducible ? "dos" : "dos");
|
|
28368
28210
|
const zipComment = encodeZipComment(options.comment);
|
|
28369
28211
|
const settings = {
|
|
28370
28212
|
level,
|
|
@@ -28384,9 +28226,8 @@ onmessage = async (ev) => {
|
|
|
28384
28226
|
}
|
|
28385
28227
|
return finalizeZip(processedEntries, zipComment);
|
|
28386
28228
|
}
|
|
28387
|
-
|
|
28388
|
-
//#
|
|
28389
|
-
//#region src/modules/stream/internal/event-utils.ts
|
|
28229
|
+
//#endregion
|
|
28230
|
+
//#region src/modules/stream/internal/event-utils.ts
|
|
28390
28231
|
function off(emitter, event, listener) {
|
|
28391
28232
|
if (typeof emitter.off === "function") emitter.off(event, listener);
|
|
28392
28233
|
else if (typeof emitter.removeListener === "function") emitter.removeListener(event, listener);
|
|
@@ -28417,9 +28258,8 @@ onmessage = async (ev) => {
|
|
|
28417
28258
|
emitter.on?.(event, onDone);
|
|
28418
28259
|
});
|
|
28419
28260
|
}
|
|
28420
|
-
|
|
28421
|
-
//#
|
|
28422
|
-
//#region src/modules/archive/io/archive-sink.ts
|
|
28261
|
+
//#endregion
|
|
28262
|
+
//#region src/modules/archive/io/archive-sink.ts
|
|
28423
28263
|
async function pipeIterableToSink(iterable, sink) {
|
|
28424
28264
|
if (isWritableStream(sink)) {
|
|
28425
28265
|
const writer = sink.getWriter();
|
|
@@ -28446,9 +28286,8 @@ onmessage = async (ev) => {
|
|
|
28446
28286
|
}
|
|
28447
28287
|
return concatUint8Arrays$2(chunks, total);
|
|
28448
28288
|
}
|
|
28449
|
-
|
|
28450
|
-
//#
|
|
28451
|
-
//#region src/modules/archive/io/archive-source.ts
|
|
28289
|
+
//#endregion
|
|
28290
|
+
//#region src/modules/archive/io/archive-source.ts
|
|
28452
28291
|
function normalizeChunk(value) {
|
|
28453
28292
|
if (!value) return null;
|
|
28454
28293
|
if (value instanceof Uint8Array) return value.length ? value : null;
|
|
@@ -28514,9 +28353,8 @@ onmessage = async (ev) => {
|
|
|
28514
28353
|
}
|
|
28515
28354
|
throw new Error("Unsupported archive source");
|
|
28516
28355
|
}
|
|
28517
|
-
|
|
28518
|
-
//#
|
|
28519
|
-
//#region src/modules/archive/utils/async-queue.ts
|
|
28356
|
+
//#endregion
|
|
28357
|
+
//#region src/modules/archive/utils/async-queue.ts
|
|
28520
28358
|
function createAsyncQueue() {
|
|
28521
28359
|
const values = [];
|
|
28522
28360
|
let valuesHead = 0;
|
|
@@ -28612,9 +28450,8 @@ onmessage = async (ev) => {
|
|
|
28612
28450
|
} }
|
|
28613
28451
|
};
|
|
28614
28452
|
}
|
|
28615
|
-
|
|
28616
|
-
//#
|
|
28617
|
-
//#region src/modules/archive/zip/index.ts
|
|
28453
|
+
//#endregion
|
|
28454
|
+
//#region src/modules/archive/zip/index.ts
|
|
28618
28455
|
const REPRODUCIBLE_ZIP_MOD_TIME = new Date(1980, 0, 1, 0, 0, 0);
|
|
28619
28456
|
var ZipArchive = class {
|
|
28620
28457
|
constructor(options = {}) {
|
|
@@ -28622,8 +28459,8 @@ onmessage = async (ev) => {
|
|
|
28622
28459
|
this._sealed = false;
|
|
28623
28460
|
const reproducible = options.reproducible ?? false;
|
|
28624
28461
|
this._options = {
|
|
28625
|
-
level: options.level ??
|
|
28626
|
-
timestamps: options.timestamps ?? (reproducible ? "dos" :
|
|
28462
|
+
level: options.level ?? 6,
|
|
28463
|
+
timestamps: options.timestamps ?? (reproducible ? "dos" : "dos"),
|
|
28627
28464
|
comment: options.comment,
|
|
28628
28465
|
modTime: options.modTime ?? (reproducible ? REPRODUCIBLE_ZIP_MOD_TIME : /* @__PURE__ */ new Date()),
|
|
28629
28466
|
smartStore: options.smartStore ?? true
|
|
@@ -28737,9 +28574,8 @@ onmessage = async (ev) => {
|
|
|
28737
28574
|
function zip(options) {
|
|
28738
28575
|
return new ZipArchive(options);
|
|
28739
28576
|
}
|
|
28740
|
-
|
|
28741
|
-
//#
|
|
28742
|
-
//#region src/modules/archive/unzip/index.ts
|
|
28577
|
+
//#endregion
|
|
28578
|
+
//#region src/modules/archive/unzip/index.ts
|
|
28743
28579
|
const textDecoderCache = /* @__PURE__ */ new Map();
|
|
28744
28580
|
function getTextDecoder(encoding) {
|
|
28745
28581
|
const key = encoding ?? "utf-8";
|
|
@@ -28863,66 +28699,66 @@ onmessage = async (ev) => {
|
|
|
28863
28699
|
function unzip(source, options) {
|
|
28864
28700
|
return new ZipReader(source, options);
|
|
28865
28701
|
}
|
|
28866
|
-
|
|
28867
|
-
|
|
28868
|
-
exports.
|
|
28869
|
-
exports.
|
|
28870
|
-
exports.
|
|
28871
|
-
exports.
|
|
28872
|
-
exports.
|
|
28873
|
-
exports.
|
|
28874
|
-
exports.
|
|
28875
|
-
exports.
|
|
28876
|
-
exports.
|
|
28877
|
-
exports.
|
|
28878
|
-
exports.
|
|
28879
|
-
exports.
|
|
28880
|
-
exports.
|
|
28881
|
-
exports.
|
|
28882
|
-
exports.
|
|
28883
|
-
exports.
|
|
28884
|
-
exports.
|
|
28885
|
-
exports.
|
|
28886
|
-
exports.
|
|
28887
|
-
exports.
|
|
28888
|
-
exports.
|
|
28889
|
-
exports.
|
|
28890
|
-
exports.
|
|
28891
|
-
exports.
|
|
28892
|
-
exports.
|
|
28893
|
-
exports.
|
|
28894
|
-
exports.
|
|
28895
|
-
exports.
|
|
28896
|
-
exports.
|
|
28897
|
-
exports.
|
|
28898
|
-
exports.
|
|
28899
|
-
exports.
|
|
28900
|
-
exports.
|
|
28901
|
-
exports.
|
|
28902
|
-
exports.
|
|
28903
|
-
exports.
|
|
28904
|
-
exports.
|
|
28905
|
-
exports.
|
|
28906
|
-
exports.
|
|
28907
|
-
exports.
|
|
28908
|
-
exports.
|
|
28909
|
-
exports.
|
|
28910
|
-
exports.
|
|
28911
|
-
exports.
|
|
28912
|
-
exports.
|
|
28913
|
-
exports.
|
|
28914
|
-
exports.
|
|
28915
|
-
exports.
|
|
28916
|
-
exports.
|
|
28917
|
-
exports.
|
|
28918
|
-
exports.
|
|
28919
|
-
exports.
|
|
28920
|
-
exports.
|
|
28921
|
-
exports.
|
|
28922
|
-
exports.
|
|
28923
|
-
exports.
|
|
28924
|
-
exports.
|
|
28925
|
-
exports
|
|
28926
|
-
return exports;
|
|
28702
|
+
//#endregion
|
|
28703
|
+
exports.Anchor = Anchor;
|
|
28704
|
+
exports.Cell = Cell;
|
|
28705
|
+
exports.Column = Column;
|
|
28706
|
+
exports.CsvFormatterStream = CsvFormatterStream;
|
|
28707
|
+
exports.CsvParserStream = CsvParserStream;
|
|
28708
|
+
exports.DataValidations = DataValidations;
|
|
28709
|
+
exports.DocumentType = DocumentType;
|
|
28710
|
+
exports.Enums = Enums;
|
|
28711
|
+
exports.ErrorValue = ErrorValue;
|
|
28712
|
+
exports.FormCheckbox = FormCheckbox;
|
|
28713
|
+
exports.FormulaType = FormulaType;
|
|
28714
|
+
exports.Image = Image;
|
|
28715
|
+
exports.PaperSize = PaperSize;
|
|
28716
|
+
exports.Range = Range;
|
|
28717
|
+
exports.ReadingOrder = ReadingOrder;
|
|
28718
|
+
exports.RelationshipType = RelationshipType;
|
|
28719
|
+
exports.Row = Row;
|
|
28720
|
+
exports.Table = Table;
|
|
28721
|
+
exports.UnzipEntry = UnzipEntry;
|
|
28722
|
+
exports.ValueType = ValueType;
|
|
28723
|
+
exports.Workbook = Workbook;
|
|
28724
|
+
exports.WorkbookReader = WorkbookReader;
|
|
28725
|
+
exports.WorkbookWriter = WorkbookWriter;
|
|
28726
|
+
exports.Worksheet = Worksheet;
|
|
28727
|
+
exports.WorksheetReader = WorksheetReader;
|
|
28728
|
+
exports.WorksheetWriter = WorksheetWriter;
|
|
28729
|
+
exports.ZipArchive = ZipArchive;
|
|
28730
|
+
exports.ZipReader = ZipReader;
|
|
28731
|
+
exports.aoaToSheet = aoaToSheet;
|
|
28732
|
+
exports.bookAppendSheet = bookAppendSheet;
|
|
28733
|
+
exports.bookNew = bookNew;
|
|
28734
|
+
exports.compress = compress;
|
|
28735
|
+
exports.compressSync = compressSync;
|
|
28736
|
+
exports.crc32 = crc32JS;
|
|
28737
|
+
exports.crc32Finalize = crc32Finalize;
|
|
28738
|
+
exports.crc32Update = crc32UpdateJS;
|
|
28739
|
+
exports.createDeflateStream = createDeflateStream;
|
|
28740
|
+
exports.createInflateStream = createInflateStream;
|
|
28741
|
+
exports.decodeCell = decodeCell;
|
|
28742
|
+
exports.decodeCol = decodeCol;
|
|
28743
|
+
exports.decodeRange = decodeRange;
|
|
28744
|
+
exports.decodeRow = decodeRow;
|
|
28745
|
+
exports.decompress = decompress;
|
|
28746
|
+
exports.decompressSync = decompressSync;
|
|
28747
|
+
exports.encodeCell = encodeCell;
|
|
28748
|
+
exports.encodeCol = encodeCol;
|
|
28749
|
+
exports.encodeRange = encodeRange;
|
|
28750
|
+
exports.encodeRow = encodeRow;
|
|
28751
|
+
exports.hasCompressionStream = hasCompressionStream;
|
|
28752
|
+
exports.hasDeflateRaw = hasDeflateRaw;
|
|
28753
|
+
exports.jsonToSheet = jsonToSheet;
|
|
28754
|
+
exports.sheetAddAoa = sheetAddAoa;
|
|
28755
|
+
exports.sheetAddJson = sheetAddJson;
|
|
28756
|
+
exports.sheetToAoa = sheetToAoa;
|
|
28757
|
+
exports.sheetToCsv = sheetToCsv;
|
|
28758
|
+
exports.sheetToJson = sheetToJson;
|
|
28759
|
+
exports.unzip = unzip;
|
|
28760
|
+
exports.zip = zip;
|
|
28761
|
+
return exports;
|
|
28927
28762
|
})({});
|
|
28763
|
+
|
|
28928
28764
|
//# sourceMappingURL=excelts.iife.js.map
|