@cj-tech-master/excelts 4.0.2-canary.20260104092100.3972145 → 4.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/modules/excel/table.d.ts +0 -1
- package/dist/browser/modules/excel/table.js +7 -12
- package/dist/browser/modules/excel/types.d.ts +0 -7
- package/dist/cjs/modules/excel/table.js +7 -12
- package/dist/esm/modules/excel/table.js +7 -12
- package/dist/iife/excelts.iife.js +5 -8
- package/dist/iife/excelts.iife.js.map +1 -1
- package/dist/iife/excelts.iife.min.js +2 -2
- package/dist/types/modules/excel/table.d.ts +0 -1
- package/dist/types/modules/excel/types.d.ts +0 -7
- package/package.json +1 -1
|
@@ -174,18 +174,13 @@ class Table {
|
|
|
174
174
|
data.forEach((value, j) => {
|
|
175
175
|
const cell = r.getCell(col + j);
|
|
176
176
|
const formula = value?.formula;
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
};
|
|
185
|
-
}
|
|
186
|
-
else {
|
|
187
|
-
cell.value = value;
|
|
188
|
-
}
|
|
177
|
+
cell.value =
|
|
178
|
+
typeof formula === "string"
|
|
179
|
+
? {
|
|
180
|
+
...value,
|
|
181
|
+
formula: formula.replace(/(^|[^A-Za-z0-9_])\[@\[?([^\[\]]+?)\]?\]/g, `$1${table.name}[[#This Row],[$2]]`)
|
|
182
|
+
}
|
|
183
|
+
: value;
|
|
189
184
|
assignStyle(cell, table.columns[j].style);
|
|
190
185
|
});
|
|
191
186
|
});
|
|
@@ -476,13 +476,6 @@ export interface TableProperties {
|
|
|
476
476
|
ref: string;
|
|
477
477
|
headerRow?: boolean;
|
|
478
478
|
totalsRow?: boolean;
|
|
479
|
-
/**
|
|
480
|
-
* When true, expands implicit structured references like [@A] to
|
|
481
|
-
* TableName[[#This Row],[A]] when storing table row formulas.
|
|
482
|
-
*
|
|
483
|
-
* Default: false (keeps formulas as provided, e.g. [@A]).
|
|
484
|
-
*/
|
|
485
|
-
qualifyImplicitStructuredReferences?: boolean;
|
|
486
479
|
style?: TableStyleProperties;
|
|
487
480
|
columns: TableColumnProperties[];
|
|
488
481
|
rows: any[][];
|
|
@@ -177,18 +177,13 @@ class Table {
|
|
|
177
177
|
data.forEach((value, j) => {
|
|
178
178
|
const cell = r.getCell(col + j);
|
|
179
179
|
const formula = value?.formula;
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
};
|
|
188
|
-
}
|
|
189
|
-
else {
|
|
190
|
-
cell.value = value;
|
|
191
|
-
}
|
|
180
|
+
cell.value =
|
|
181
|
+
typeof formula === "string"
|
|
182
|
+
? {
|
|
183
|
+
...value,
|
|
184
|
+
formula: formula.replace(/(^|[^A-Za-z0-9_])\[@\[?([^\[\]]+?)\]?\]/g, `$1${table.name}[[#This Row],[$2]]`)
|
|
185
|
+
}
|
|
186
|
+
: value;
|
|
192
187
|
assignStyle(cell, table.columns[j].style);
|
|
193
188
|
});
|
|
194
189
|
});
|
|
@@ -174,18 +174,13 @@ class Table {
|
|
|
174
174
|
data.forEach((value, j) => {
|
|
175
175
|
const cell = r.getCell(col + j);
|
|
176
176
|
const formula = value?.formula;
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
};
|
|
185
|
-
}
|
|
186
|
-
else {
|
|
187
|
-
cell.value = value;
|
|
188
|
-
}
|
|
177
|
+
cell.value =
|
|
178
|
+
typeof formula === "string"
|
|
179
|
+
? {
|
|
180
|
+
...value,
|
|
181
|
+
formula: formula.replace(/(^|[^A-Za-z0-9_])\[@\[?([^\[\]]+?)\]?\]/g, `$1${table.name}[[#This Row],[$2]]`)
|
|
182
|
+
}
|
|
183
|
+
: value;
|
|
189
184
|
assignStyle(cell, table.columns[j].style);
|
|
190
185
|
});
|
|
191
186
|
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @cj-tech-master/excelts v4.0.2
|
|
2
|
+
* @cj-tech-master/excelts v4.0.2
|
|
3
3
|
* TypeScript Excel Workbook Manager - Read and Write xlsx and csv Files.
|
|
4
4
|
* (c) 2026 cjnoname
|
|
5
5
|
* Released under the MIT License
|
|
@@ -2396,13 +2396,10 @@ var ExcelTS = (function(exports) {
|
|
|
2396
2396
|
data.forEach((value, j) => {
|
|
2397
2397
|
const cell = r.getCell(col + j);
|
|
2398
2398
|
const formula = value?.formula;
|
|
2399
|
-
|
|
2400
|
-
|
|
2401
|
-
|
|
2402
|
-
|
|
2403
|
-
formula: shouldQualify ? formula.replace(/(^|[^A-Za-z0-9_])\[@\[?([^\[\]]+?)\]?\]/g, `$1${table.name}[[#This Row],[$2]]`) : formula
|
|
2404
|
-
};
|
|
2405
|
-
} else cell.value = value;
|
|
2399
|
+
cell.value = typeof formula === "string" ? {
|
|
2400
|
+
...value,
|
|
2401
|
+
formula: formula.replace(/(^|[^A-Za-z0-9_])\[@\[?([^\[\]]+?)\]?\]/g, `$1${table.name}[[#This Row],[$2]]`)
|
|
2402
|
+
} : value;
|
|
2406
2403
|
assignStyle(cell, table.columns[j].style);
|
|
2407
2404
|
});
|
|
2408
2405
|
});
|