@canvas-components/list-table 0.3.27 → 0.3.28

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/index.js CHANGED
@@ -19278,7 +19278,7 @@ var ListTableContentActionController = class {
19278
19278
  options = { ...this.options.getOptions().exportOptions, ...options };
19279
19279
  this.startExportTask(
19280
19280
  (fileName, settings) => exportAllRowsXlsxContent({
19281
- rows: this.options.getOptions().dataSource,
19281
+ rows: this.options.getExportRows?.() ?? this.options.getOptions().dataSource,
19282
19282
  columns: getListTableExportCandidateColumns(
19283
19283
  this.options.getOptions().columns
19284
19284
  ),
@@ -30238,7 +30238,7 @@ var ListTableEventController = class {
30238
30238
  this.host.bodyTooltipController.clear();
30239
30239
  },
30240
30240
  getRows: () => this.host.getDisplayData(),
30241
- getAllRows: () => this.host.options.dataSource,
30241
+ getAllRows: () => this.host.getBaseDisplayData?.() ?? this.host.getDisplayData(),
30242
30242
  getExportSummaryEnabled: () => Boolean(this.host.currentRenderSnapshot?.hasSummary),
30243
30243
  getExportSortState: () => this.host.getSortState(),
30244
30244
  getExportColumns: () => getListTableExportCandidateColumns(this.host.options.columns),
@@ -31564,7 +31564,7 @@ var ListTableEventController = class {
31564
31564
  const contextMenu = nestedFeatures.length > 0 ? { features: nestedFeatures } : false;
31565
31565
  const actions = createListTableContextMenuActions({
31566
31566
  getRows: () => resolveNestedTableDisplayRows(content, getNestedState()),
31567
- getAllRows: () => content.dataSource,
31567
+ getAllRows: () => resolveNestedTableDisplayRows(content, getNestedState()),
31568
31568
  getExportSummaryEnabled: () => getNestedState()?.summaryVisible === true,
31569
31569
  getExportSortState: () => getNestedState()?.sortState ?? [],
31570
31570
  getColumns: () => columns,
@@ -33033,6 +33033,7 @@ function createListTableEventHost(core) {
33033
33033
  // 可见行在百万行窗口化后只包含当前视口;事件层需要完整的查询结果,
33034
33034
  // 否则自动列宽等基于全局 dataRowIndex 的逻辑会在深滚动时丢失采样行。
33035
33035
  getDisplayData: () => core.queryController.getDisplayData(),
33036
+ getBaseDisplayData: () => core.queryController.getBaseDisplayData(),
33036
33037
  getSortState: () => core.storeFacade.sortState,
33037
33038
  getSummaryValueMap: () => core.summaryController.getSummaryValueMap(),
33038
33039
  getSummaryValuesAsync: (snapshot) => core.summaryController.getSummaryValuesAsync(snapshot),
@@ -37051,6 +37052,7 @@ function assembleListTableCoreControllers(core, options) {
37051
37052
  core.contentActionController = new ListTableContentActionController({
37052
37053
  getSummaryVisible: () => Boolean(getCurrentRenderSnapshot()?.hasSummary),
37053
37054
  getSortState: () => core.storeFacade.sortState,
37055
+ getExportRows: () => core.queryController.getBaseDisplayData(),
37054
37056
  getOptions: () => core.options,
37055
37057
  getLeafColumns: () => core.leafColumns,
37056
37058
  overlayController: core.overlayController,