@cj-tech-master/excelts 3.0.1-canary.20251229011802.ccfcbcc → 3.0.1-canary.20251230172852.9dca08f
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/excelts.esm.js +22 -1
- package/dist/browser/excelts.esm.js.map +1 -1
- package/dist/browser/excelts.esm.min.js +2 -2
- package/dist/browser/excelts.iife.js +22 -1
- package/dist/browser/excelts.iife.js.map +1 -1
- package/dist/browser/excelts.iife.min.js +2 -2
- package/dist/cjs/doc/row.js +23 -0
- package/dist/esm/doc/row.js +23 -0
- package/dist/types/doc/row.d.ts +13 -0
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @cj-tech-master/excelts v3.0.1-canary.
|
|
2
|
+
* @cj-tech-master/excelts v3.0.1-canary.20251230172852.9dca08f
|
|
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
|
|
@@ -1675,6 +1675,27 @@ var ExcelTS = (function(exports) {
|
|
|
1675
1675
|
});
|
|
1676
1676
|
}
|
|
1677
1677
|
/**
|
|
1678
|
+
* Get row values as a 0-based sparse array (column 1 => index 0).
|
|
1679
|
+
*
|
|
1680
|
+
* This is useful when you want to compare/stringify values without the
|
|
1681
|
+
* leading separator produced by the 1-based sparse array returned by `values`.
|
|
1682
|
+
*/
|
|
1683
|
+
getValues() {
|
|
1684
|
+
const values = [];
|
|
1685
|
+
this._cells.forEach((cell) => {
|
|
1686
|
+
if (cell && cell.type !== Enums.ValueType.Null) values[cell.col - 1] = cell.value;
|
|
1687
|
+
});
|
|
1688
|
+
return values;
|
|
1689
|
+
}
|
|
1690
|
+
/**
|
|
1691
|
+
* Convenience stringification for row values.
|
|
1692
|
+
*
|
|
1693
|
+
* Equivalent to `row.getValues().join(separator)`.
|
|
1694
|
+
*/
|
|
1695
|
+
valuesToString(separator = ",") {
|
|
1696
|
+
return this.getValues().join(separator);
|
|
1697
|
+
}
|
|
1698
|
+
/**
|
|
1678
1699
|
* Returns true if the row includes at least one cell with a value
|
|
1679
1700
|
*/
|
|
1680
1701
|
get hasValues() {
|