@cj-tech-master/excelts 1.6.1-canary.20251218045758.9050533 → 1.6.1-canary.20251220005812.d075b45
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.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @cj-tech-master/excelts v1.6.1-canary.
|
|
2
|
+
* @cj-tech-master/excelts v1.6.1-canary.20251220005812.d075b45
|
|
3
3
|
* TypeScript Excel Workbook Manager - Read and Write xlsx and csv Files.
|
|
4
4
|
* (c) 2025 cjnoname
|
|
5
5
|
* Released under the MIT License
|
|
@@ -26901,27 +26901,17 @@ var ExcelTS = (function(exports) {
|
|
|
26901
26901
|
});
|
|
26902
26902
|
return count;
|
|
26903
26903
|
}
|
|
26904
|
-
/**
|
|
26905
|
-
* Get or create row by 1-based index
|
|
26906
|
-
*/
|
|
26907
26904
|
getRow(r) {
|
|
26908
26905
|
let row = this._rows[r - 1];
|
|
26909
26906
|
if (!row) row = this._rows[r - 1] = new Row(this, r);
|
|
26910
26907
|
return row;
|
|
26911
26908
|
}
|
|
26912
|
-
/**
|
|
26913
|
-
* Get or create rows by 1-based index
|
|
26914
|
-
*/
|
|
26915
26909
|
getRows(start, length) {
|
|
26916
26910
|
if (length < 1) return;
|
|
26917
26911
|
const rows = [];
|
|
26918
26912
|
for (let i$1 = start; i$1 < start + length; i$1++) rows.push(this.getRow(i$1));
|
|
26919
26913
|
return rows;
|
|
26920
26914
|
}
|
|
26921
|
-
/**
|
|
26922
|
-
* Add a couple of Rows by key-value, after the last current row, using the column keys,
|
|
26923
|
-
* or add a row by contiguous Array (assign to columns A, B & C)
|
|
26924
|
-
*/
|
|
26925
26915
|
addRow(value, style = "n") {
|
|
26926
26916
|
const rowNo = this._nextRow;
|
|
26927
26917
|
const row = this.getRow(rowNo);
|
|
@@ -26929,9 +26919,6 @@ var ExcelTS = (function(exports) {
|
|
|
26929
26919
|
this._setStyleOption(rowNo, style[0] === "i" ? style : "n");
|
|
26930
26920
|
return row;
|
|
26931
26921
|
}
|
|
26932
|
-
/**
|
|
26933
|
-
* Add multiple rows by providing an array of arrays or key-value pairs
|
|
26934
|
-
*/
|
|
26935
26922
|
addRows(value, style = "n") {
|
|
26936
26923
|
const rows = [];
|
|
26937
26924
|
value.forEach((row) => {
|
|
@@ -26939,19 +26926,11 @@ var ExcelTS = (function(exports) {
|
|
|
26939
26926
|
});
|
|
26940
26927
|
return rows;
|
|
26941
26928
|
}
|
|
26942
|
-
/**
|
|
26943
|
-
* Insert a Row by key-value, at the position (shifting down all rows from position),
|
|
26944
|
-
* using the column keys, or add a row by contiguous Array (assign to columns A, B & C)
|
|
26945
|
-
*/
|
|
26946
26929
|
insertRow(pos, value, style = "n") {
|
|
26947
26930
|
this.spliceRows(pos, 0, value);
|
|
26948
26931
|
this._setStyleOption(pos, style);
|
|
26949
26932
|
return this.getRow(pos);
|
|
26950
26933
|
}
|
|
26951
|
-
/**
|
|
26952
|
-
* Insert multiple rows at position (shifting down all rows from position)
|
|
26953
|
-
* by providing an array of arrays or key-value pairs
|
|
26954
|
-
*/
|
|
26955
26934
|
insertRows(pos, values, style = "n") {
|
|
26956
26935
|
this.spliceRows(pos, 0, ...values);
|
|
26957
26936
|
if (style !== "n") {
|