arthub-table 0.2.19 → 0.2.21

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.
@@ -802,7 +802,6 @@ declare class DataGrid {
802
802
  rowIdMap: Map<string, number>;
803
803
  selectedRowIds: Set<string>;
804
804
  selectedGroupIds: Set<string>;
805
- _groupSelectedRowIds: Map<string, string[]>;
806
805
  lastSelectedRowIndex: number;
807
806
  /** Footer 行高度(showFooter 为 false 时返回 0) */
808
807
  get footerHeight(): number;
@@ -1600,7 +1599,7 @@ declare class DataGrid {
1600
1599
  isRowCheckedByIndex(rowIndex: number): boolean | undefined;
1601
1600
  /**
1602
1601
  * 获取全量数据(非受控模式下包含折叠隐藏的行)
1603
- * 用于 GroupRow.selectGroupRows 遍历所有子行(包括折叠不可见的)
1602
+ * 用于需要遍历所有行(包括折叠不可见的)的场景
1604
1603
  */
1605
1604
  getFullData(): RowData[];
1606
1605
  getChangedRows(): RowData[];
@@ -2294,12 +2293,6 @@ declare class DataGrid {
2294
2293
  */
2295
2294
  private ensureRowIds;
2296
2295
  syncGroupCheckedState(): void;
2297
- /**
2298
- * 受控模式下:计算组头应有的 checked 状态,如果与当前不一致则通过回调通知外部修改。
2299
- * 逻辑与 syncGroupCheckedState 的计算一致,但不直接修改 data.checked 和 selectedGroupIds,
2300
- * 而是通过 onGroupCheckboxChange 回调让外部决定是否更新。
2301
- */
2302
- private _notifyGroupCheckedChanges;
2303
2296
  /**
2304
2297
  * 折叠所有任务(受控模式下触发 onCollapseAll 回调,由外部操作 tableTaskList 后刷新)
2305
2298
  */
@@ -280,19 +280,6 @@ declare class GroupRow extends Context {
280
280
  * Handle click on group row
281
281
  */
282
282
  handleClick(mouseX: number, mouseY: number): boolean;
283
- /**
284
- * 选中/取消选中该组下的所有子行(包括子分组及其子行)
285
- *
286
- * 使用全量数据(_fullData)而非 body.data,确保收起的组也能正确选中/取消选中。
287
- * 从当前组头在全量数据中的位置开始,往后遍历,直到遇到同级或更高级的分组行为止,
288
- * 期间所有的普通数据行都属于该组。
289
- * 对可见行通过 Row 对象调用 handleCheck,对不可见行直接操作 selectedRowIds。
290
- *
291
- * @param groupId - 组头行的 ID
292
- * @param checked - 目标选中状态
293
- * @returns 变更后该组内所有行的 rowId 数组
294
- */
295
- private selectGroupRows;
296
283
  /**
297
284
  * 计算该组下将新增的选中行数(不含已选中的行)
298
285
  * 用于 maxSelectedRows 前置校验
@@ -16,7 +16,7 @@ declare class Row extends Context {
16
16
  rowHeader: RowHeader;
17
17
  constructor(grid: DataGrid, rowIndex: number, x: number, y: number, height: number, data: RowData);
18
18
  isInVerticalAutofill(mouseX: number, mouseY: number): boolean;
19
- handleCheck(checked?: boolean, event?: MouseEvent): void;
19
+ handleCheck(checked?: boolean, event?: MouseEvent, silent?: boolean): void;
20
20
  mouseDown(x: number, y: number): void;
21
21
  mouseMove(mouseX: number, mouseY: number): void;
22
22
  handleAutofill(x: number, y: number): void;
@@ -84,6 +84,17 @@ declare class RelatedTaskViewer implements CellViewer<RelatedTaskViewerData> {
84
84
  * Draw empty placeholder — consistent with other viewers
85
85
  */
86
86
  private drawEmptyPlaceholder;
87
+ /**
88
+ * Draw the deliverable acceptance mark badge (bottom-right circle) on a thumbnail.
89
+ * Aligned with FileViewer.drawMarkIcon / ImageViewer.drawMarkIcon:
90
+ * - ah-icon_finish1: green circle + white check (已验收)
91
+ * - ah-icon_help2: orange circle + white question mark (待验收)
92
+ *
93
+ * Only invoked when the related-task display field's fileData item carries a `mark`
94
+ * (the business layer gates it by 被引用字段.showAcceptanceRemind && 节点关联任务列.isAcceptanceRemind).
95
+ */
96
+ private drawFileMark;
97
+ private drawMarkIcon;
87
98
  /**
88
99
  * Draw a file status/format icon when coverUrl is not available.
89
100
  * Uses the same getIconByFileStatus logic as FileViewer for visual consistency.
@@ -1351,6 +1351,7 @@ export interface RelatedTaskDisplayField {
1351
1351
  assetId?: number;
1352
1352
  status?: number;
1353
1353
  fileFormat?: string;
1354
+ mark?: string;
1354
1355
  }>;
1355
1356
  /** File meta key for file-type fields (e.g. 'deliverable') */
1356
1357
  fileMeta?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "arthub-table",
3
- "version": "0.2.19",
3
+ "version": "0.2.21",
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",