@affino/datagrid-vue-app 0.1.44 → 0.1.45
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/DataGrid.d.ts +28 -2
- package/dist/DataGridTableStage.vue.d.ts +27 -0
- package/dist/chunks/{DataGridGanttStageEntry-z-xnwnvx.js → DataGridGanttStageEntry-CKjSVRMy.js} +3549 -3410
- package/dist/chunks/useDataGridAppRowModel-BoU8RlUc.js +4742 -0
- package/dist/gantt.js +1 -1
- package/dist/host/DataGridDefaultRenderer.d.ts +20 -2
- package/dist/index.js +90 -78
- package/dist/internal.js +2 -2
- package/dist/stage/DataGridTableStage.vue.d.ts +27 -0
- package/dist/stage/DataGridTableStageCenterPane.vue.d.ts +46 -1
- package/dist/stage/dataGridTableStage.types.d.ts +20 -0
- package/dist/stage/useDataGridTableStageRuntime.d.ts +4 -1
- package/package.json +2 -2
- package/dist/chunks/useDataGridAppRowModel-BjIIJmYg.js +0 -4586
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type PropType } from "vue";
|
|
2
2
|
import type { DataGridTableStageBodyRow, DataGridTableStageCenterPaneRenderApi, DataGridTableStageOverlayLane, DataGridTableStageOverlaySegment } from "./dataGridTableStageBody.types";
|
|
3
|
-
import type { DataGridElementRefHandler } from "./dataGridTableStage.types";
|
|
3
|
+
import type { DataGridElementRefHandler, DataGridTableStageCenterPaneDiagnostics } from "./dataGridTableStage.types";
|
|
4
4
|
declare const __VLS_export: import("vue").DefineComponent<{
|
|
5
5
|
viewportRef: {
|
|
6
6
|
type: PropType<DataGridElementRefHandler>;
|
|
@@ -10,6 +10,14 @@ declare const __VLS_export: import("vue").DefineComponent<{
|
|
|
10
10
|
type: PropType<readonly DataGridTableStageBodyRow[]>;
|
|
11
11
|
required: true;
|
|
12
12
|
};
|
|
13
|
+
runtimeRevision: {
|
|
14
|
+
type: PropType<string | number | null>;
|
|
15
|
+
default: null;
|
|
16
|
+
};
|
|
17
|
+
bodyRowsRevision: {
|
|
18
|
+
type: PropType<string | number | null>;
|
|
19
|
+
default: null;
|
|
20
|
+
};
|
|
13
21
|
topSpacerHeight: {
|
|
14
22
|
type: NumberConstructor;
|
|
15
23
|
default: undefined;
|
|
@@ -54,6 +62,18 @@ declare const __VLS_export: import("vue").DefineComponent<{
|
|
|
54
62
|
type: PropType<readonly DataGridTableStageOverlayLane[]>;
|
|
55
63
|
default: () => never[];
|
|
56
64
|
};
|
|
65
|
+
reportCenterPaneDiagnostics: {
|
|
66
|
+
type: PropType<((payload: DataGridTableStageCenterPaneDiagnostics) => void) | undefined>;
|
|
67
|
+
default: undefined;
|
|
68
|
+
};
|
|
69
|
+
reportFillPlumbingState: {
|
|
70
|
+
type: PropType<((layer: string, present: boolean) => void) | undefined>;
|
|
71
|
+
default: undefined;
|
|
72
|
+
};
|
|
73
|
+
reportFillPlumbingDetail: {
|
|
74
|
+
type: PropType<((layer: string, value: string) => void) | undefined>;
|
|
75
|
+
default: undefined;
|
|
76
|
+
};
|
|
57
77
|
renderApi: {
|
|
58
78
|
type: PropType<DataGridTableStageCenterPaneRenderApi>;
|
|
59
79
|
required: true;
|
|
@@ -67,6 +87,14 @@ declare const __VLS_export: import("vue").DefineComponent<{
|
|
|
67
87
|
type: PropType<readonly DataGridTableStageBodyRow[]>;
|
|
68
88
|
required: true;
|
|
69
89
|
};
|
|
90
|
+
runtimeRevision: {
|
|
91
|
+
type: PropType<string | number | null>;
|
|
92
|
+
default: null;
|
|
93
|
+
};
|
|
94
|
+
bodyRowsRevision: {
|
|
95
|
+
type: PropType<string | number | null>;
|
|
96
|
+
default: null;
|
|
97
|
+
};
|
|
70
98
|
topSpacerHeight: {
|
|
71
99
|
type: NumberConstructor;
|
|
72
100
|
default: undefined;
|
|
@@ -111,6 +139,18 @@ declare const __VLS_export: import("vue").DefineComponent<{
|
|
|
111
139
|
type: PropType<readonly DataGridTableStageOverlayLane[]>;
|
|
112
140
|
default: () => never[];
|
|
113
141
|
};
|
|
142
|
+
reportCenterPaneDiagnostics: {
|
|
143
|
+
type: PropType<((payload: DataGridTableStageCenterPaneDiagnostics) => void) | undefined>;
|
|
144
|
+
default: undefined;
|
|
145
|
+
};
|
|
146
|
+
reportFillPlumbingState: {
|
|
147
|
+
type: PropType<((layer: string, present: boolean) => void) | undefined>;
|
|
148
|
+
default: undefined;
|
|
149
|
+
};
|
|
150
|
+
reportFillPlumbingDetail: {
|
|
151
|
+
type: PropType<((layer: string, value: string) => void) | undefined>;
|
|
152
|
+
default: undefined;
|
|
153
|
+
};
|
|
114
154
|
renderApi: {
|
|
115
155
|
type: PropType<DataGridTableStageCenterPaneRenderApi>;
|
|
116
156
|
required: true;
|
|
@@ -118,8 +158,13 @@ declare const __VLS_export: import("vue").DefineComponent<{
|
|
|
118
158
|
}>>, {
|
|
119
159
|
topSpacerHeight: number;
|
|
120
160
|
bottomSpacerHeight: number;
|
|
161
|
+
runtimeRevision: string | number | null;
|
|
162
|
+
reportCenterPaneDiagnostics: ((payload: DataGridTableStageCenterPaneDiagnostics) => void) | undefined;
|
|
163
|
+
reportFillPlumbingState: ((layer: string, present: boolean) => void) | undefined;
|
|
164
|
+
reportFillPlumbingDetail: ((layer: string, value: string) => void) | undefined;
|
|
121
165
|
handleKeydown: (event: KeyboardEvent) => void;
|
|
122
166
|
viewportRef: DataGridElementRefHandler;
|
|
167
|
+
bodyRowsRevision: string | number | null;
|
|
123
168
|
viewportClass: string;
|
|
124
169
|
handleScroll: (event: Event) => void;
|
|
125
170
|
handleWheel: (event: WheelEvent) => void;
|
|
@@ -21,6 +21,17 @@ export interface DataGridTableStageCustomOverlay {
|
|
|
21
21
|
hideSingleCell?: boolean;
|
|
22
22
|
zIndex?: number;
|
|
23
23
|
}
|
|
24
|
+
export interface DataGridTableStageCenterPaneDiagnostics {
|
|
25
|
+
mounted?: boolean;
|
|
26
|
+
debugJson?: string;
|
|
27
|
+
renderedViewport?: {
|
|
28
|
+
start: number;
|
|
29
|
+
end: number;
|
|
30
|
+
} | null;
|
|
31
|
+
displayRowsRecomputeCount?: number;
|
|
32
|
+
centerPaneRuntimeRevision?: string | number | null;
|
|
33
|
+
centerPaneBodyRowsRevision?: string | number | null;
|
|
34
|
+
}
|
|
24
35
|
export interface DataGridTableStageAnchorCell {
|
|
25
36
|
rowIndex: number;
|
|
26
37
|
columnIndex: number;
|
|
@@ -95,6 +106,8 @@ export interface DataGridTableStageColumnsSection {
|
|
|
95
106
|
}
|
|
96
107
|
export interface DataGridTableStageRowsSection<TRow extends Record<string, unknown>> {
|
|
97
108
|
displayRows: readonly DataGridTableRow<TRow>[];
|
|
109
|
+
displayRowsRevision?: number;
|
|
110
|
+
runtimeRevision?: string | number | null;
|
|
98
111
|
pinnedBottomRows: readonly DataGridTableRow<TRow>[];
|
|
99
112
|
sourceRows?: readonly TRow[];
|
|
100
113
|
showRowIndex?: boolean;
|
|
@@ -191,6 +204,9 @@ export interface DataGridTableStageProps<TRow extends Record<string, unknown>> e
|
|
|
191
204
|
layoutMode: DataGridLayoutMode;
|
|
192
205
|
chromeSignature?: string;
|
|
193
206
|
customOverlays?: readonly DataGridTableStageCustomOverlay[];
|
|
207
|
+
reportCenterPaneDiagnostics?: (payload: DataGridTableStageCenterPaneDiagnostics) => void;
|
|
208
|
+
reportFillPlumbingState?: (layer: string, present: boolean) => void;
|
|
209
|
+
reportFillPlumbingDetail?: (layer: string, value: string) => void;
|
|
194
210
|
}
|
|
195
211
|
interface DataGridTableStageBindingsSource<TRow extends Record<string, unknown>> extends DataGridTableStageLayoutSection, DataGridTableStageViewportSection, DataGridTableStageColumnsSection, DataGridTableStageRowsSection<TRow>, DataGridTableStageSelectionSection, DataGridTableStageEditingSection<TRow>, DataGridTableStageCellsSection<TRow>, DataGridTableStageInteractionSection<TRow> {
|
|
196
212
|
mode: DataGridTableMode;
|
|
@@ -204,5 +220,9 @@ export interface UseDataGridTableStageBindingsOptions<TRow extends Record<string
|
|
|
204
220
|
editingCellValueRef: Ref<string>;
|
|
205
221
|
headerViewportRef: Ref<HTMLElement | null>;
|
|
206
222
|
bodyViewportRef: Ref<HTMLElement | null>;
|
|
223
|
+
customOverlays?: DataGridMaybeRef<readonly DataGridTableStageCustomOverlay[]>;
|
|
224
|
+
reportCenterPaneDiagnostics?: DataGridMaybeRef<(payload: DataGridTableStageCenterPaneDiagnostics) => void>;
|
|
225
|
+
reportFillPlumbingState?: DataGridMaybeRef<(layer: string, present: boolean) => void>;
|
|
226
|
+
reportFillPlumbingDetail?: DataGridMaybeRef<(layer: string, value: string) => void>;
|
|
207
227
|
}
|
|
208
228
|
export {};
|
|
@@ -11,7 +11,7 @@ import type { DataGridPlaceholderRowsOptions } from "../config/dataGridPlacehold
|
|
|
11
11
|
import type { DataGridVirtualizationOptions } from "../config/dataGridVirtualization";
|
|
12
12
|
import type { DataGridTableStageContext } from "./dataGridTableStageContext";
|
|
13
13
|
import type { DataGridTableStageHistoryAdapter } from "./useDataGridTableStageHistory";
|
|
14
|
-
import type { DataGridColumnMenuValueEntriesResult, DataGridTableRow, DataGridTableStageCellClass, DataGridTableStageProps } from "./dataGridTableStage.types";
|
|
14
|
+
import type { DataGridColumnMenuValueEntriesResult, DataGridTableRow, DataGridTableStageCellClass, DataGridTableStageCenterPaneDiagnostics, DataGridTableStageProps } from "./dataGridTableStage.types";
|
|
15
15
|
export type { DataGridTableStageHistoryAdapter } from "./useDataGridTableStageHistory";
|
|
16
16
|
interface DataGridAppFillProjectionContext {
|
|
17
17
|
sortModel: readonly DataGridSortState[];
|
|
@@ -42,6 +42,7 @@ interface DataGridAppResolveFillBoundaryResult {
|
|
|
42
42
|
type DataGridFillBehavior = "copy" | "series";
|
|
43
43
|
type DataGridTableStageBodyRuntime<TRow extends Record<string, unknown>> = {
|
|
44
44
|
api: UseDataGridRuntimeResult<TRow>["api"];
|
|
45
|
+
rowModel?: UseDataGridRuntimeResult<TRow>["rowModel"];
|
|
45
46
|
syncBodyRowsInRange: UseDataGridRuntimeResult<TRow>["syncBodyRowsInRange"];
|
|
46
47
|
setViewportRange: UseDataGridRuntimeResult<TRow>["setViewportRange"];
|
|
47
48
|
setRows?: UseDataGridRuntimeResult<TRow>["setRows"];
|
|
@@ -270,7 +271,9 @@ export interface UseDataGridTableStageRuntimeOptions<TRow extends Record<string,
|
|
|
270
271
|
openContextMenuFromCurrentCell?: () => void;
|
|
271
272
|
clearExternalPendingClipboardOperation?: () => boolean;
|
|
272
273
|
reportFillWarning?: (message: string) => void;
|
|
274
|
+
reportCenterPaneDiagnostics?: (payload: DataGridTableStageCenterPaneDiagnostics) => void;
|
|
273
275
|
reportFillPlumbingState?: (layer: string, present: boolean) => void;
|
|
276
|
+
reportFillPlumbingDetail?: (layer: string, value: string) => void;
|
|
274
277
|
runRowIndexKeyboardAction?: (action: "insert-row-above" | "copy-row" | "cut-row" | "paste-row" | "delete-selected-rows" | "open-row-menu", rowId: string | number) => Promise<boolean> | boolean;
|
|
275
278
|
reorderRowsByIndex?: (payload: {
|
|
276
279
|
sourceRowId: string | number;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@affino/datagrid-vue-app",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.45",
|
|
4
4
|
"description": "Declarative Vue DataGrid component for Affino",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"@affino/datagrid-chrome": "0.1.1",
|
|
45
45
|
"@affino/datagrid-gantt": "0.1.2",
|
|
46
46
|
"@affino/datagrid-theme": "0.2.2",
|
|
47
|
-
"@affino/datagrid-vue": "0.3.
|
|
47
|
+
"@affino/datagrid-vue": "0.3.32"
|
|
48
48
|
},
|
|
49
49
|
"peerDependencies": {
|
|
50
50
|
"vue": "^3.3.0"
|