arthub-table 0.2.76-next.2 → 0.2.76
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/arthub-table.common.js +1 -1
- package/dist/arthub-table.common.js.map +1 -1
- package/dist/arthub-table.umd.js +1 -1
- package/dist/arthub-table.umd.js.map +1 -1
- package/dist/arthub-table.umd.min.js +1 -1
- package/dist/arthub-table.umd.min.js.map +1 -1
- package/dist/types/adapters/rowDataAdapter.d.ts +0 -18
- package/dist/types/core/Row.d.ts +0 -15
- package/dist/types/core/StyleManager.d.ts +0 -6
- package/dist/types/core/constants.d.ts +0 -2
- package/dist/types/index.d.ts +1 -1
- package/package.json +1 -1
|
@@ -16,20 +16,6 @@ export interface SearchMatchResult {
|
|
|
16
16
|
highlightKeys: string[];
|
|
17
17
|
currentHighlightKey?: string;
|
|
18
18
|
}
|
|
19
|
-
/**
|
|
20
|
-
* 待定迁移态(pending relocation)行信息
|
|
21
|
-
* 由业务侧(AssetMatrix)通过 controllerProps.pendingRelocateInfo 传入,
|
|
22
|
-
* preprocessRow 按 rowKey 匹配命中行后打标 result._pendingRelocate。
|
|
23
|
-
* props 驱动的优势:行对象被业务侧重建(单行刷新换新行对象)后标记不丢失。
|
|
24
|
-
*/
|
|
25
|
-
export interface PendingRelocateInfo {
|
|
26
|
-
/** 待定行的 id(按 rowKey 匹配,字符串化比较,不假设类型) */
|
|
27
|
-
rowId: string | number;
|
|
28
|
-
/** 提示条文案(如「此记录将按照分组规则调整至其他分组」) */
|
|
29
|
-
bannerText: string;
|
|
30
|
-
/** 匹配用的行 key,默认 'id'(业务侧 grid.rowKey 可配) */
|
|
31
|
-
rowKey?: string;
|
|
32
|
-
}
|
|
33
19
|
/**
|
|
34
20
|
* Preprocessed row data with computed metadata
|
|
35
21
|
*/
|
|
@@ -44,10 +30,6 @@ export interface PreprocessedRow {
|
|
|
44
30
|
_cpHighLight?: boolean;
|
|
45
31
|
/** CP 高亮行中需要使用高亮文字色的列 key */
|
|
46
32
|
_cpHighLightFields?: string[];
|
|
47
|
-
/** 待定迁移态标记:命中 props.pendingRelocateInfo 的行由 preprocessRow 写入 */
|
|
48
|
-
_pendingRelocate?: {
|
|
49
|
-
bannerText: string;
|
|
50
|
-
};
|
|
51
33
|
_isTopLevelEntity?: boolean;
|
|
52
34
|
_isEmpty?: boolean;
|
|
53
35
|
_isGroup?: boolean;
|
package/dist/types/core/Row.d.ts
CHANGED
|
@@ -15,11 +15,6 @@ declare class Row extends Context {
|
|
|
15
15
|
cells: Cell[];
|
|
16
16
|
rowHeader: RowHeader;
|
|
17
17
|
constructor(grid: DataGrid, rowIndex: number, x: number, y: number, height: number, data: RowData);
|
|
18
|
-
/**
|
|
19
|
-
* 待定迁移态提示贴片高度:本行为待定行时返回 PENDING_RELOCATE_BANNER_HEIGHT,否则 0。
|
|
20
|
-
* 贴片悬浮绘制在行顶部(不占行高,cells 几何不受影响)。
|
|
21
|
-
*/
|
|
22
|
-
get pendingRelocateBannerHeight(): number;
|
|
23
18
|
isInVerticalAutofill(mouseX: number, mouseY: number): boolean;
|
|
24
19
|
handleCheck(checked?: boolean, event?: MouseEvent, silent?: boolean): void;
|
|
25
20
|
mouseDown(x: number, y: number, _clientX?: number, _clientY?: number): void;
|
|
@@ -32,15 +27,5 @@ declare class Row extends Context {
|
|
|
32
27
|
resizeRow(rowIndex: number, height: number): void;
|
|
33
28
|
rePaint(): void;
|
|
34
29
|
draw(): void;
|
|
35
|
-
/**
|
|
36
|
-
* 绘制待迁移态提示贴片(对齐腾讯文档/智能表格交互)。
|
|
37
|
-
* - 悬浮在任务行外的左上方:底边贴行顶边线(bannerY = rowTop - height),
|
|
38
|
-
* 不占行高也不遮挡本行任何 cell 内容;clamp 到表头下缘(表头 z-order 在
|
|
39
|
-
* body 之上,越界部分会被表头盖住);
|
|
40
|
-
* - 横向冻结:锚定可视数据区开头(fixedLeftWidth),不随横向滚动移动;
|
|
41
|
-
* - 宽度自适应:仅包裹 图标+文案(padding + icon + gap + textWidth + padding),
|
|
42
|
-
* 超出可视区宽度时截断到可视宽度(clip 防溢出)。
|
|
43
|
-
*/
|
|
44
|
-
private drawPendingRelocateBanner;
|
|
45
30
|
}
|
|
46
31
|
export default Row;
|
|
@@ -177,12 +177,6 @@ export interface ThemeTokens {
|
|
|
177
177
|
bgCpHighlight: string;
|
|
178
178
|
/** CP 高亮行文字色 */
|
|
179
179
|
textCpHighlight: string;
|
|
180
|
-
/** 待定迁移态行背景色(编辑分组/筛选/搜索字段后等待迁移的行) */
|
|
181
|
-
bgPendingRelocate: string;
|
|
182
|
-
/** 待定迁移态行顶部提示条背景色(业务色,对齐智能表格 #f1c40f) */
|
|
183
|
-
bgPendingRelocateBanner: string;
|
|
184
|
-
/** 待定迁移态行顶部提示条文字色(业务色,亮黄条上的深色文字) */
|
|
185
|
-
textPendingRelocateBanner: string;
|
|
186
180
|
/** 需求变更-新增需求背景色 */
|
|
187
181
|
bgDemandChangeAdd: string;
|
|
188
182
|
/** 需求变更-新增需求 hover 背景色 */
|
|
@@ -6,8 +6,6 @@ export declare const CHECK_BOX_WIDTH = 36;
|
|
|
6
6
|
export declare const CELL_HEIGHT = 36;
|
|
7
7
|
export declare const MIN_CELL_WIDTH = 50;
|
|
8
8
|
export declare const MIN_CELL_HEIGHT = 36;
|
|
9
|
-
/** 待定迁移态(pending relocation)悬浮提示贴片高度:贴片悬浮盖在行顶部,不占行高 */
|
|
10
|
-
export declare const PENDING_RELOCATE_BANNER_HEIGHT = 24;
|
|
11
9
|
export declare const SCROLLER_TRACK_SIZE = 16;
|
|
12
10
|
export declare const SCROLLER_SIZE = 8;
|
|
13
11
|
/** @deprecated 请使用 styleManager.getToken('scrollerColor') */
|
package/dist/types/index.d.ts
CHANGED
|
@@ -43,7 +43,7 @@ export { getFieldStatisticTypes } from './core/footer/utils';
|
|
|
43
43
|
export { convertToDataGridColumns, } from './adapters/columnAdapter';
|
|
44
44
|
export type { ITableHeader, } from './adapters/columnAdapter';
|
|
45
45
|
export { convertToDataGridRows, isPerfLogEnabled, rebuildNestedColumnData, invalidatePreprocessRowCache, } from './adapters/rowDataAdapter';
|
|
46
|
-
export type { PreprocessedRow,
|
|
46
|
+
export type { PreprocessedRow, } from './adapters/rowDataAdapter';
|
|
47
47
|
export { preprocessRowStyles, } from './adapters/styleAdapter';
|
|
48
48
|
export type { RowStyleResult, } from './adapters/styleAdapter';
|
|
49
49
|
export { DataGridEventAdapter, EventCategory, extractEventContext, mapDomEventToDataGridEvent, } from './adapters/DataGridEventAdapter';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "arthub-table",
|
|
3
|
-
"version": "0.2.76
|
|
3
|
+
"version": "0.2.76",
|
|
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",
|