arthub-table 0.2.87 → 0.2.88
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/core/DataGrid.d.ts +10 -0
- package/dist/types/core/ImageManager.d.ts +9 -0
- package/dist/types/core/StyleManager.d.ts +2 -0
- package/package.json +1 -1
|
@@ -1013,6 +1013,10 @@ declare class DataGrid {
|
|
|
1013
1013
|
onGroupHeaderStatRefresh?: (info: GroupHeaderStatRefreshInfo) => void;
|
|
1014
1014
|
/** Footer 弹窗激活的列标识 key(弹窗打开时设置,关闭时清除),保持该列的下拉箭头和刷新图标始终显示 */
|
|
1015
1015
|
footerPopoverActiveKey: string | null;
|
|
1016
|
+
/** 人员工时图标激活状态(弹窗打开时记录 groupId,关闭时置 null),用于绘制蓝色激活图标 */
|
|
1017
|
+
userWorkingHoursActiveState: {
|
|
1018
|
+
groupId: string | number;
|
|
1019
|
+
} | null;
|
|
1016
1020
|
/** 组头弹窗激活状态(弹窗打开时设置,关闭时清除),包含列标识和分组 ID,确保只有对应分组的列显示激活样式 */
|
|
1017
1021
|
groupHeaderPopoverActiveState: {
|
|
1018
1022
|
key: string;
|
|
@@ -2499,6 +2503,12 @@ declare class DataGrid {
|
|
|
2499
2503
|
* 若省略 groupId 但当前已有激活状态,则保留已有的 groupId(兼容外部只传 key 的调用)
|
|
2500
2504
|
*/
|
|
2501
2505
|
setGroupHeaderPopoverActive(key: string | null, groupId?: string | number): void;
|
|
2506
|
+
/**
|
|
2507
|
+
* 设置人员工时图标的激活状态(弹窗打开时调用,关闭时传 null)。
|
|
2508
|
+
* 与 setGroupHeaderPopoverActive 不同:专用于"工时摘要弹窗"激活态,激活时该分组行的工时图标渲染为蓝色。
|
|
2509
|
+
* @param groupId - 分组 ID;传 null 表示关闭弹窗、清除激活状态
|
|
2510
|
+
*/
|
|
2511
|
+
setUserWorkingHoursActive(groupId: string | number | null): void;
|
|
2502
2512
|
/** 从 body.data 中查找指定 groupId 的 GroupRowData */
|
|
2503
2513
|
private findGroupRowData;
|
|
2504
2514
|
/**
|
|
@@ -116,6 +116,15 @@ declare class ImageManager {
|
|
|
116
116
|
* @returns HTMLCanvasElement with colored icon, or null if source icon not yet loaded
|
|
117
117
|
*/
|
|
118
118
|
getColoredFilterIcon(color: string, size?: number): HTMLCanvasElement | null;
|
|
119
|
+
/**
|
|
120
|
+
* 按目标色给"任意按需加载的图标"着色(通用版,供 GroupRow 等使用)。
|
|
121
|
+
* 复用类内已有的 recolorIcon(source-in 合成,不缓存、每次现算)。
|
|
122
|
+
* @param src 图标资源 URL(即 getCachedImage / loadImage 使用的同一个 src)
|
|
123
|
+
* @param color 目标填充色
|
|
124
|
+
* @param size 显示尺寸(正方形)
|
|
125
|
+
* @returns 着色后的 canvas;原图未加载完成时返回 null(调用方需兜底)
|
|
126
|
+
*/
|
|
127
|
+
getColoredIcon(src: string, color: string, size?: number): HTMLCanvasElement | null;
|
|
119
128
|
/**
|
|
120
129
|
* Load settings icon (for nested column parent headers)
|
|
121
130
|
*/
|
|
@@ -271,6 +271,8 @@ export interface ThemeTokens {
|
|
|
271
271
|
iconExpandActive: string;
|
|
272
272
|
/** 筛选激活色(筛选命中该列时,筛选图标常驻且使用此色) */
|
|
273
273
|
iconFilterActive: string;
|
|
274
|
+
/** 人员工时图标激活色(工时摘要弹窗打开时,该分组行工时图标使用此色) */
|
|
275
|
+
iconUserWorkingHoursActive: string;
|
|
274
276
|
/** WfState 默认图标色 */
|
|
275
277
|
iconWfStateDefault: string;
|
|
276
278
|
/** 审核图标色 */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "arthub-table",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.88",
|
|
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",
|