arthub-table 0.2.8 → 0.2.9

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.
@@ -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.9",
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",