@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.cjs CHANGED
@@ -19300,7 +19300,7 @@ var ListTableContentActionController = class {
19300
19300
  options = { ...this.options.getOptions().exportOptions, ...options };
19301
19301
  this.startExportTask(
19302
19302
  (fileName, settings) => exportAllRowsXlsxContent({
19303
- rows: this.options.getOptions().dataSource,
19303
+ rows: this.options.getExportRows?.() ?? this.options.getOptions().dataSource,
19304
19304
  columns: getListTableExportCandidateColumns(
19305
19305
  this.options.getOptions().columns
19306
19306
  ),
@@ -30260,7 +30260,7 @@ var ListTableEventController = class {
30260
30260
  this.host.bodyTooltipController.clear();
30261
30261
  },
30262
30262
  getRows: () => this.host.getDisplayData(),
30263
- getAllRows: () => this.host.options.dataSource,
30263
+ getAllRows: () => this.host.getBaseDisplayData?.() ?? this.host.getDisplayData(),
30264
30264
  getExportSummaryEnabled: () => Boolean(this.host.currentRenderSnapshot?.hasSummary),
30265
30265
  getExportSortState: () => this.host.getSortState(),
30266
30266
  getExportColumns: () => getListTableExportCandidateColumns(this.host.options.columns),
@@ -31586,7 +31586,7 @@ var ListTableEventController = class {
31586
31586
  const contextMenu = nestedFeatures.length > 0 ? { features: nestedFeatures } : false;
31587
31587
  const actions = createListTableContextMenuActions({
31588
31588
  getRows: () => resolveNestedTableDisplayRows(content, getNestedState()),
31589
- getAllRows: () => content.dataSource,
31589
+ getAllRows: () => resolveNestedTableDisplayRows(content, getNestedState()),
31590
31590
  getExportSummaryEnabled: () => getNestedState()?.summaryVisible === true,
31591
31591
  getExportSortState: () => getNestedState()?.sortState ?? [],
31592
31592
  getColumns: () => columns,
@@ -33055,6 +33055,7 @@ function createListTableEventHost(core) {
33055
33055
  // 可见行在百万行窗口化后只包含当前视口;事件层需要完整的查询结果,
33056
33056
  // 否则自动列宽等基于全局 dataRowIndex 的逻辑会在深滚动时丢失采样行。
33057
33057
  getDisplayData: () => core.queryController.getDisplayData(),
33058
+ getBaseDisplayData: () => core.queryController.getBaseDisplayData(),
33058
33059
  getSortState: () => core.storeFacade.sortState,
33059
33060
  getSummaryValueMap: () => core.summaryController.getSummaryValueMap(),
33060
33061
  getSummaryValuesAsync: (snapshot) => core.summaryController.getSummaryValuesAsync(snapshot),
@@ -37073,6 +37074,7 @@ function assembleListTableCoreControllers(core, options) {
37073
37074
  core.contentActionController = new ListTableContentActionController({
37074
37075
  getSummaryVisible: () => Boolean(getCurrentRenderSnapshot()?.hasSummary),
37075
37076
  getSortState: () => core.storeFacade.sortState,
37077
+ getExportRows: () => core.queryController.getBaseDisplayData(),
37076
37078
  getOptions: () => core.options,
37077
37079
  getLeafColumns: () => core.leafColumns,
37078
37080
  overlayController: core.overlayController,