arthub-table 0.2.12-next.3 → 0.2.12

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.
@@ -3,7 +3,7 @@
3
3
  * 桥接 AssetMatrix ProgressTableFillerController 与 DataGrid 组件
4
4
  */
5
5
  export { ITableHeader, VIEWER_TYPE_MAP, mapHeaderToColumn, convertToDataGridColumns, getDataGridViewerType, mapViewerToNestedType, } from './columnAdapter';
6
- export { PreprocessedRow, SearchMatchResult, expandProxyRow, calculatePermissions, collectErrors, calculateSearchMatch, calculateRowBgColor, preprocessRow, preprocessSingleRow, convertToDataGridRows, refreshColumnCellValues, refreshColumnCellValuesAsync, computeStageFlags, isPerfLogEnabled, } from './rowDataAdapter';
6
+ export { PreprocessedRow, SearchMatchResult, expandProxyRow, calculatePermissions, collectErrors, calculateSearchMatch, calculateRowBgColor, preprocessRow, preprocessSingleRow, convertToDataGridRows, refreshColumnCellValues, refreshColumnCellValuesAsync, computeStageFlags, isPerfLogEnabled, invalidatePreprocessRowCache, } from './rowDataAdapter';
7
7
  export { RowStyleResult, preprocessRowStyles, getRowClassName, getCellClassName, calculateFirstLeftColor, } from './styleAdapter';
8
8
  export { DataGridEventAdapter, EventCategory, EventContext, extractEventContext, mapDomEventToDataGridEvent, } from './DataGridEventAdapter';
9
9
  export { DataGridInitOptions, DataGridCallbacks, DataGridInitResult, buildDataGridInitParams, refreshDataGridRows, refreshDataGridColumns, refreshDataGridColumnByKeys, refreshDataGridColumnByKeysAsync, refreshDataGridColumnByKeysFast, refreshDataGridRowByIndex, } from './DataGridIntegration';
@@ -92,6 +92,16 @@ export declare function calculateSearchMatch(row: Record<string, any>, searchMat
92
92
  export declare function calculateRowBgColor(row: Record<string, any>, key: string, highlightedProperties: Record<string, string>): string | undefined;
93
93
  export declare function resetPerfAccum(): void;
94
94
  export declare function dumpPerfAccum(): void;
95
+ /**
96
+ * 强制使 preprocessRow 的 WeakMap 缓存全部失效。
97
+ *
98
+ * 当行数据被异步更新(如 getNeedGetDetailNodeDetail 完成后原地修改了 Proxy 属性),
99
+ * 但 Proxy 对象引用未变,WeakMap 仍会命中旧缓存。调用此方法递增 propsVersion,
100
+ * 使所有已缓存的条目过期,下次 convertToDataGridRows 会从 Proxy 重新读取最新值。
101
+ *
102
+ * 推荐在 refreshDataGrid 入口调用(该方法本身已有 200ms 冷却期 + 50ms 防抖,频率可控)。
103
+ */
104
+ export declare function invalidatePreprocessRowCache(): void;
95
105
  /**
96
106
  * Pre-computed context for batch processing.
97
107
  * Created once in convertToDataGridRows and reused for every row.
@@ -793,8 +793,6 @@ declare class DataGrid {
793
793
  edgeScroller: EdgeScroller;
794
794
  rowIdMap: Map<string, number>;
795
795
  selectedRowIds: Set<string>;
796
- selectedGroupIds: Set<string>;
797
- _groupSelectedRowIds: Map<string, string[]>;
798
796
  lastSelectedRowIndex: number;
799
797
  /** Footer 行高度(showFooter 为 false 时返回 0) */
800
798
  get footerHeight(): number;
@@ -2278,12 +2276,6 @@ declare class DataGrid {
2278
2276
  */
2279
2277
  private ensureRowIds;
2280
2278
  syncGroupCheckedState(): void;
2281
- /**
2282
- * 受控模式下:计算组头应有的 checked 状态,如果与当前不一致则通过回调通知外部修改。
2283
- * 逻辑与 syncGroupCheckedState 的计算一致,但不直接修改 data.checked 和 selectedGroupIds,
2284
- * 而是通过 onGroupCheckboxChange 回调让外部决定是否更新。
2285
- */
2286
- private _notifyGroupCheckedChanges;
2287
2279
  /**
2288
2280
  * 折叠所有任务(受控模式下触发 onCollapseAll 回调,由外部操作 tableTaskList 后刷新)
2289
2281
  */
@@ -41,7 +41,7 @@ export { CSS_PREFIX, HEADER_HEIGHT, ROW_INDEX_WIDTH, CHECK_BOX_WIDTH, CELL_HEIGH
41
41
  export { getFieldStatisticTypes } from './core/footer/utils';
42
42
  export { convertToDataGridColumns, } from './adapters/columnAdapter';
43
43
  export type { ITableHeader, } from './adapters/columnAdapter';
44
- export { convertToDataGridRows, isPerfLogEnabled, rebuildNestedColumnData, } from './adapters/rowDataAdapter';
44
+ export { convertToDataGridRows, isPerfLogEnabled, rebuildNestedColumnData, invalidatePreprocessRowCache, } from './adapters/rowDataAdapter';
45
45
  export type { PreprocessedRow, } from './adapters/rowDataAdapter';
46
46
  export { preprocessRowStyles, } from './adapters/styleAdapter';
47
47
  export type { RowStyleResult, } from './adapters/styleAdapter';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "arthub-table",
3
- "version": "0.2.12-next.3",
3
+ "version": "0.2.12",
4
4
  "description": "High-performance canvas-based table/grid component for Vue 3 with TypeScript support, featuring virtual scrolling, cell viewers, grouped rows, and nested grids.",
5
5
  "main": "dist/arthub-table.common.js",
6
6
  "module": "dist/arthub-table.umd.min.js",