osl-base-extended 1.1.42 → 1.1.43
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.
|
@@ -3592,8 +3592,13 @@ class OslReportGrid {
|
|
|
3592
3592
|
this.pageSizeChange.emit({ page: 1, pageSize: this.pageSize });
|
|
3593
3593
|
}
|
|
3594
3594
|
// ─── Export Excel ─────────────────────────────────────────────────────────────
|
|
3595
|
-
|
|
3596
|
-
|
|
3595
|
+
exportExcel() {
|
|
3596
|
+
this._doExportExcel().catch(err => console.error('Excel export failed:', err));
|
|
3597
|
+
}
|
|
3598
|
+
async _doExportExcel() {
|
|
3599
|
+
const xlsxMod = await import('xlsx-js-style');
|
|
3600
|
+
// Handle both ESM default-export and CJS direct-export shapes
|
|
3601
|
+
const XLSX = xlsxMod.default ?? xlsxMod;
|
|
3597
3602
|
const cols = this.visibleCols;
|
|
3598
3603
|
const filteredRows = this.getSortedFilteredRows();
|
|
3599
3604
|
const thinBorder = (rgb = 'D9D9D9') => ({
|