arthub-table 0.2.8 → 0.2.10-next.0

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.
@@ -793,6 +793,8 @@ 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[]>;
796
798
  lastSelectedRowIndex: number;
797
799
  /** Footer 行高度(showFooter 为 false 时返回 0) */
798
800
  get footerHeight(): number;
@@ -2276,6 +2278,12 @@ declare class DataGrid {
2276
2278
  */
2277
2279
  private ensureRowIds;
2278
2280
  syncGroupCheckedState(): void;
2281
+ /**
2282
+ * 受控模式下:计算组头应有的 checked 状态,如果与当前不一致则通过回调通知外部修改。
2283
+ * 逻辑与 syncGroupCheckedState 的计算一致,但不直接修改 data.checked 和 selectedGroupIds,
2284
+ * 而是通过 onGroupCheckboxChange 回调让外部决定是否更新。
2285
+ */
2286
+ private _notifyGroupCheckedChanges;
2279
2287
  /**
2280
2288
  * 折叠所有任务(受控模式下触发 onCollapseAll 回调,由外部操作 tableTaskList 后刷新)
2281
2289
  */
@@ -217,6 +217,14 @@ export interface ThemeTokens {
217
217
  loadingColor: string;
218
218
  /** autofill 边框色 */
219
219
  autofillBorder: string;
220
+ /** Boolean checkbox 边框色(未勾选 + 可编辑) */
221
+ checkboxBorder: string;
222
+ /** Boolean checkbox 边框色(未勾选 + 只读) */
223
+ checkboxBorderDisabled: string;
224
+ /** Boolean checkbox 填充色(已勾选 + 可编辑) */
225
+ checkboxChecked: string;
226
+ /** Boolean checkbox 填充色(已勾选 + 只读) */
227
+ checkboxCheckedDisabled: string;
220
228
  /** 固定列阴影 */
221
229
  shadowFixedColumn: string;
222
230
  /** Tooltip 阴影 */
@@ -32,6 +32,13 @@ declare class BooleanViewer implements CellViewer<BooleanViewerData> {
32
32
  draw(context: ViewerRenderContext, data: BooleanViewerData): void;
33
33
  /**
34
34
  * Draw checkbox style
35
+ * Colors are sourced from theme tokens (StyleManager) so the checkbox
36
+ * adapts to light/dark/blue themes consistently.
37
+ * - checkboxChecked : filled bg (editable + checked)
38
+ * - checkboxCheckedDisabled: filled bg (readonly + checked)
39
+ * - checkboxBorder : border (editable + unchecked)
40
+ * - checkboxBorderDisabled : border (readonly + unchecked)
41
+ * `data.checkedColor` may override the editable-checked fill color.
35
42
  */
36
43
  private drawCheckbox;
37
44
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "arthub-table",
3
- "version": "0.2.8",
3
+ "version": "0.2.10-next.0",
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",