arthub-table 0.2.96 → 0.2.97

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, invalidatePreprocessRowCache, } from './rowDataAdapter';
6
+ export { PreprocessedRow, SearchMatchResult, expandProxyRow, calculatePermissions, collectErrors, calculateSearchMatch, calculateRowBgColor, preprocessRow, preprocessSingleRow, convertToDataGridRows, refreshColumnCellValues, refreshColumnCellValuesAsync, computeStageFlags, isPerfLogEnabled, invalidatePreprocessRowCache, invalidatePreprocessRowCacheForRows, } 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';
@@ -133,6 +133,11 @@ export declare function dumpPerfAccum(): void;
133
133
  * 推荐在 refreshDataGrid 入口调用(该方法本身已有 200ms 冷却期 + 50ms 防抖,频率可控)。
134
134
  */
135
135
  export declare function invalidatePreprocessRowCache(): void;
136
+ /**
137
+ * Invalidate only the supplied raw row references without changing the global props version.
138
+ * Callers updating shared proxyedData must include every outer Proxy alias that needs refreshing.
139
+ */
140
+ export declare function invalidatePreprocessRowCacheForRows(rawRows: Iterable<Record<string, any>>): void;
136
141
  /**
137
142
  * Pre-computed context for batch processing.
138
143
  * Created once in convertToDataGridRows and reused for every row.
@@ -35,6 +35,7 @@ export declare function calculateFirstLeftColor(rowTaskId: string | number, path
35
35
  * @param totalColumns - Total column count
36
36
  * @param props - Controller props containing highlighted properties, etc.
37
37
  * @param tapdSyncStateColors - Optional TAPD sync state color map
38
+ * @param customBgCandidateKeys - Header keys that can be consumed by cells; omit for legacy whole-row scanning
38
39
  * @returns Style result object to merge into row data
39
40
  */
40
- export declare function preprocessRowStyles(row: Record<string, any>, rowIndex: number, totalColumns: number, props: Record<string, any>, tapdSyncStateColors?: Record<string, string>): RowStyleResult;
41
+ export declare function preprocessRowStyles(row: Record<string, any>, rowIndex: number, totalColumns: number, props: Record<string, any>, tapdSyncStateColors?: Record<string, string>, customBgCandidateKeys?: readonly string[]): RowStyleResult;
@@ -43,7 +43,7 @@ export { CSS_PREFIX, HEADER_HEIGHT, ROW_INDEX_WIDTH, CHECK_BOX_WIDTH, CELL_HEIGH
43
43
  export { getFieldStatisticTypes } from './core/footer/utils';
44
44
  export { convertToDataGridColumns, } from './adapters/columnAdapter';
45
45
  export type { ITableHeader, } from './adapters/columnAdapter';
46
- export { convertToDataGridRows, isPerfLogEnabled, rebuildNestedColumnData, invalidatePreprocessRowCache, } from './adapters/rowDataAdapter';
46
+ export { convertToDataGridRows, isPerfLogEnabled, rebuildNestedColumnData, invalidatePreprocessRowCache, invalidatePreprocessRowCacheForRows, } from './adapters/rowDataAdapter';
47
47
  export type { PreprocessedRow, PendingRelocateInfo, } from './adapters/rowDataAdapter';
48
48
  export { preprocessRowStyles, } from './adapters/styleAdapter';
49
49
  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.96",
3
+ "version": "0.2.97",
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",