arthub-table 0.2.66-next.2 → 0.2.66
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 -4
- package/dist/types/core/Paint.d.ts +0 -4
- package/dist/types/core/RowHeader.d.ts +0 -3
- package/dist/types/core/StyleManager.d.ts +0 -4
- package/dist/types/core/types.d.ts +0 -8
- package/dist/types/index.d.ts +1 -1
- package/package.json +1 -1
|
@@ -26,10 +26,6 @@ export interface PreprocessedRow {
|
|
|
26
26
|
_searchMatch: SearchMatchResult;
|
|
27
27
|
_cellBgColors: Record<string, string>;
|
|
28
28
|
_bgColor?: string;
|
|
29
|
-
/** CP 行高亮标记 */
|
|
30
|
-
_cpHighLight?: boolean;
|
|
31
|
-
/** CP 高亮行中需要使用高亮文字色的列 key */
|
|
32
|
-
_cpHighLightFields?: string[];
|
|
33
29
|
_isTopLevelEntity?: boolean;
|
|
34
30
|
_isEmpty?: boolean;
|
|
35
31
|
_isGroup?: boolean;
|
|
@@ -110,10 +110,6 @@ declare class Paint {
|
|
|
110
110
|
borderRadius?: number;
|
|
111
111
|
/** 半选状态(indeterminate),蓝色背景 + 白色横线 */
|
|
112
112
|
indeterminate?: boolean;
|
|
113
|
-
/** 禁用态:不画对勾(优先于 checked),背景用 disabledBgColor */
|
|
114
|
-
disabled?: boolean;
|
|
115
|
-
/** 禁用态背景色,默认 #f5f5f5(明显灰),用于和未选中(白底)区分 */
|
|
116
|
-
disabledBgColor?: string;
|
|
117
113
|
}): void;
|
|
118
114
|
clearCanvas(x?: number, y?: number, width?: number, height?: number): void;
|
|
119
115
|
/**
|
|
@@ -6,8 +6,6 @@ interface RowHeaderOptions {
|
|
|
6
6
|
borderWidth?: number;
|
|
7
7
|
color?: string;
|
|
8
8
|
checked?: boolean;
|
|
9
|
-
/** 该行 checkbox 是否置灰禁用 */
|
|
10
|
-
disabled?: boolean;
|
|
11
9
|
/** 数据驱动模式下的序号值(undefined 表示不显示序号) */
|
|
12
10
|
dataIndex?: number | string;
|
|
13
11
|
/** 父级分组层级(0/1/2),用于序号列分层背景色 */
|
|
@@ -17,7 +15,6 @@ declare class RowHeader extends Context {
|
|
|
17
15
|
rowIndex: number;
|
|
18
16
|
text: string | number;
|
|
19
17
|
checked: boolean;
|
|
20
|
-
disabled: boolean;
|
|
21
18
|
borderColor?: string;
|
|
22
19
|
fillColor?: string;
|
|
23
20
|
borderWidth?: number;
|
|
@@ -173,10 +173,6 @@ export interface ThemeTokens {
|
|
|
173
173
|
bgTopLevelEntity: string;
|
|
174
174
|
/** 顶层实体行 hover 背景色 */
|
|
175
175
|
bgTopLevelEntityHover: string;
|
|
176
|
-
/** CP 高亮行背景色 */
|
|
177
|
-
bgCpHighlight: string;
|
|
178
|
-
/** CP 高亮行文字色 */
|
|
179
|
-
textCpHighlight: string;
|
|
180
176
|
/** 需求变更-新增需求背景色 */
|
|
181
177
|
bgDemandChangeAdd: string;
|
|
182
178
|
/** 需求变更-新增需求 hover 背景色 */
|
|
@@ -342,8 +342,6 @@ export interface NormalRowData extends BaseGroupedRowData {
|
|
|
342
342
|
};
|
|
343
343
|
/** Filter match status */
|
|
344
344
|
filterMatched?: boolean;
|
|
345
|
-
/** 该行是否禁止勾选(选中):为 true 时不可被任何方式选中,checkbox 显示为置灰禁用态 */
|
|
346
|
-
disableSelect?: boolean;
|
|
347
345
|
[key: string]: any;
|
|
348
346
|
}
|
|
349
347
|
/**
|
|
@@ -362,12 +360,6 @@ export declare function isSeparateRow(row: unknown): row is SeparateRowData;
|
|
|
362
360
|
* Type guard to check if a row is a normal data row
|
|
363
361
|
*/
|
|
364
362
|
export declare function isNormalRow(row: unknown): row is NormalRowData;
|
|
365
|
-
/**
|
|
366
|
-
* 是否为「可勾选(可选中)」的数据行。
|
|
367
|
-
* 组头行 / 分隔行 / 新建任务行 / 被业务标记 disableSelect 的行 均不可选。
|
|
368
|
-
* 所有写 selectedRowIds 的路径统一调用本谓词判断,未来扩展只改此处。
|
|
369
|
-
*/
|
|
370
|
-
export declare function isRowSelectable(rowData: unknown): boolean;
|
|
371
363
|
/**
|
|
372
364
|
* Constants for grouped table rendering
|
|
373
365
|
*/
|
package/dist/types/index.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ declare const install: (app: App) => void;
|
|
|
9
9
|
export { install };
|
|
10
10
|
export default DataGrid;
|
|
11
11
|
export type { CellData, CellStyle, RowData, ColData, DataGridOptions, Position, Size, Rect, Range, CellRange, HistoryItem, ValidatorRule, ColumnType, ColumnConfig, SelectorState, EditorState, AutofillState, RangeState, DrawOptions, TextOptions, ClipboardState, EventHandlers, Direction, ScrollDirection, GroupLevel, SeparateLevel, BaseGroupedRowData, GroupRowData, SeparateRowData, NormalRowData, GroupedTableRowData, GroupRowStyle, SeparatorRowStyle, StatisticOption, FooterCellData, FooterData, FooterCellClickInfo, } from './core/types';
|
|
12
|
-
export { isGroupRow, isSeparateRow, isNormalRow,
|
|
12
|
+
export { isGroupRow, isSeparateRow, isNormalRow, GROUP_TABLE_CONSTANTS, DEFAULT_GROUP_STYLES, DEFAULT_SEPARATOR_STYLES, } from './core/types';
|
|
13
13
|
export type { CellBounds, ViewerRenderContext, ViewerDragState, CellViewer, CellViewerData, ViewerOption, ViewerStyle, TextViewerData, DropdownViewerData, ImageViewerData, PreImageViewerData, PersonViewerData, PersonInfo, ProgressViewerData, DatetimeViewerData, BooleanViewerData, StatusViewerData, StatusOption, GroupHeaderViewerData, GroupNameViewerData, GroupNameTagItem, GroupNamePersonItem, SeparatorRowViewerData, PunchViewerData, PunchValue, ModuleInfo, ModuleViewerData, TextViewerWithSwitcherData, FileItem, FileViewerData, HyperlinkTextViewerData, IUpstreamModule, IUpstreamReminderProperties, IUpstreamSyncProperty, IUpstreamFieldViewItem, UpstreamViewerData, TaskNodeItem, TaskNodeViewerData, NestedGridViewerData, NestedColumnConfig, ViewerConstructor, ViewerFactory, ViewerTypeMap, ViewerType, TypedCellData, TableActionButtonOption, TableActionButtonViewerData, } from './core/viewers/types';
|
|
14
14
|
export { isTextViewerData, isDropdownViewerData, isPersonViewerData, isProgressViewerData, isNestedGridViewerData, } from './core/viewers/types';
|
|
15
15
|
export { default as ViewerRegistry, getViewerRegistry, } from './core/viewers/ViewerRegistry';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "arthub-table",
|
|
3
|
-
"version": "0.2.66
|
|
3
|
+
"version": "0.2.66",
|
|
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",
|