@affino/datagrid-vue-app 0.1.63 → 0.1.64
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/README.md +16 -0
- package/dist/advanced-filter.js +1 -1
- package/dist/aggregations.js +1 -1
- package/dist/chunks/{DataGridAdvancedFilterPopover-BmEL_QzN.js → DataGridAdvancedFilterPopover-p_hnZLCA.js} +1 -1
- package/dist/chunks/{DataGridAdvancedFilterPopover.vue_vue_type_script_setup_true_lang-BkrpyjJb.js → DataGridAdvancedFilterPopover.vue_vue_type_script_setup_true_lang-AVmOe3Bv.js} +1 -1
- package/dist/chunks/{DataGridAggregationsPopover-D-HP10PE.js → DataGridAggregationsPopover-Bzbn6Nuy.js} +1 -1
- package/dist/chunks/{DataGridAggregationsPopover.vue_vue_type_script_setup_true_lang-VYIMuuIQ.js → DataGridAggregationsPopover.vue_vue_type_script_setup_true_lang-TgxL5evy.js} +1 -1
- package/dist/chunks/DataGridFilterableCombobox.vue_vue_type_script_setup_true_lang-CpC_nuMk.js +419 -0
- package/dist/chunks/DataGridGanttStageEntry-DGDFifU8.js +12216 -0
- package/dist/chunks/useDataGridAppRowModel-DF6K2Rd8.js +5409 -0
- package/dist/gantt.js +1 -1
- package/dist/index.js +597 -573
- package/dist/internal.js +3 -3
- package/dist/overlays/DataGridCellComboboxEditor.vue.d.ts +1 -0
- package/dist/perf/dataGridPerfTrace.d.ts +7 -0
- package/dist/stage/DataGridTableStageCenterPane.vue.d.ts +9 -0
- package/dist/stage/DataGridTableStagePinnedPane.vue.d.ts +10 -1
- package/dist/stage/dataGridMouseEventGuards.d.ts +8 -0
- package/dist/stage/dataGridTableStage.types.d.ts +4 -1
- package/dist/stage/dataGridTableStageBody.types.d.ts +1 -0
- package/dist/stage/useDataGridStageCellRendering.d.ts +1 -0
- package/dist/stage/useDataGridStageCellState.d.ts +2 -0
- package/dist/stage/useDataGridStageChromeCanvas.d.ts +1 -0
- package/dist/stage/useDataGridStageFocusRuntime.d.ts +1 -0
- package/dist/stage/useDataGridStageOverlays.d.ts +1 -0
- package/dist/stage/useDataGridStageRenderApis.d.ts +1 -0
- package/dist/stage/useDataGridStageRenderApis.grouped.d.ts +1 -0
- package/dist/stage/useDataGridStageRowIndex.d.ts +1 -0
- package/dist/stage/useDataGridTableStageHistory.d.ts +3 -0
- package/dist/stage/useDataGridTableStageRuntime.d.ts +1 -0
- package/dist/stage/useDataGridTableStageScrollSync.d.ts +8 -0
- package/package.json +3 -3
- package/dist/chunks/DataGridFilterableCombobox.vue_vue_type_script_setup_true_lang-Dt_KqrSU.js +0 -405
- package/dist/chunks/DataGridGanttStageEntry-D6OYD0Gx.js +0 -11781
- package/dist/chunks/useDataGridAppRowModel-9ZIepsHi.js +0 -5281
package/dist/internal.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { d as t, r } from "./chunks/dataGridOverlayThemeVars-vzY74EIz.js";
|
|
2
2
|
import { buildDataGridChromePaneModel as i, buildDataGridChromeRenderModel as d } from "@affino/datagrid-chrome";
|
|
3
|
-
import { D as l, a as n, r as G, b as D, c as S, d as u, u as g, e as b, f as T } from "./chunks/useDataGridAppRowModel-
|
|
4
|
-
import { _ as p, a as c, c as R, b as x, d as C, p as f, u as v, e as M, f as h, g as w, h as y, i as F, j as P, k as A, l as O, m as _, n as E, o as H } from "./chunks/DataGridGanttStageEntry-
|
|
5
|
-
import { _ as V } from "./chunks/DataGridAdvancedFilterPopover.vue_vue_type_script_setup_true_lang-
|
|
3
|
+
import { D as l, a as n, r as G, b as D, c as S, d as u, u as g, e as b, f as T } from "./chunks/useDataGridAppRowModel-DF6K2Rd8.js";
|
|
4
|
+
import { _ as p, a as c, c as R, b as x, d as C, p as f, u as v, e as M, f as h, g as w, h as y, i as F, j as P, k as A, l as O, m as _, n as E, o as H } from "./chunks/DataGridGanttStageEntry-DGDFifU8.js";
|
|
5
|
+
import { _ as V } from "./chunks/DataGridAdvancedFilterPopover.vue_vue_type_script_setup_true_lang-AVmOe3Bv.js";
|
|
6
6
|
import { _ as k } from "./chunks/DataGridFindReplacePopover.vue_vue_type_script_setup_true_lang-BEVRKG31.js";
|
|
7
7
|
import { buildDataGridTimelineRenderModels as B, normalizeDataGridGanttOptions as I, resolveDataGridTimelineRange as L } from "@affino/datagrid-gantt";
|
|
8
8
|
export {
|
|
@@ -7,6 +7,7 @@ type __VLS_Props = {
|
|
|
7
7
|
placeholder?: string;
|
|
8
8
|
initialFilter?: string;
|
|
9
9
|
openOnMount?: boolean;
|
|
10
|
+
disabled?: boolean;
|
|
10
11
|
};
|
|
11
12
|
declare const __VLS_export: import("vue").DefineComponent<__VLS_TypePropsToOption<__VLS_Props>, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
12
13
|
commit: (value: string, target?: CommitTarget | undefined) => void;
|
|
@@ -5,6 +5,12 @@ export type DataGridPerfSample = {
|
|
|
5
5
|
totalMs: number;
|
|
6
6
|
[key: string]: string | number;
|
|
7
7
|
};
|
|
8
|
+
export type DataGridPerfSampleInput = {
|
|
9
|
+
scope: string;
|
|
10
|
+
totalMs: number;
|
|
11
|
+
ts?: number;
|
|
12
|
+
[key: string]: string | number | undefined;
|
|
13
|
+
};
|
|
8
14
|
export type DataGridPerfSummary = {
|
|
9
15
|
scope: string;
|
|
10
16
|
count: number;
|
|
@@ -25,3 +31,4 @@ export declare function resolveDataGridPerfNow(): number;
|
|
|
25
31
|
export declare function createDataGridPerfStore(): DataGridPerfStore;
|
|
26
32
|
export declare function resolveDataGridPerfStore(): DataGridPerfStore | null;
|
|
27
33
|
export declare function recordDataGridPerfSample(sample: DataGridPerfSample): void;
|
|
34
|
+
export declare function recordDataGridPerfSampleIfEnabled(sample: DataGridPerfSampleInput): void;
|
|
@@ -74,6 +74,10 @@ declare const __VLS_export: import("vue").DefineComponent<{
|
|
|
74
74
|
type: PropType<((layer: string, value: string) => void) | undefined>;
|
|
75
75
|
default: undefined;
|
|
76
76
|
};
|
|
77
|
+
perfTraceEnabled: {
|
|
78
|
+
type: BooleanConstructor;
|
|
79
|
+
default: boolean;
|
|
80
|
+
};
|
|
77
81
|
renderApi: {
|
|
78
82
|
type: PropType<DataGridTableStageCenterPaneRenderApi>;
|
|
79
83
|
required: true;
|
|
@@ -151,6 +155,10 @@ declare const __VLS_export: import("vue").DefineComponent<{
|
|
|
151
155
|
type: PropType<((layer: string, value: string) => void) | undefined>;
|
|
152
156
|
default: undefined;
|
|
153
157
|
};
|
|
158
|
+
perfTraceEnabled: {
|
|
159
|
+
type: BooleanConstructor;
|
|
160
|
+
default: boolean;
|
|
161
|
+
};
|
|
154
162
|
renderApi: {
|
|
155
163
|
type: PropType<DataGridTableStageCenterPaneRenderApi>;
|
|
156
164
|
required: true;
|
|
@@ -170,6 +178,7 @@ declare const __VLS_export: import("vue").DefineComponent<{
|
|
|
170
178
|
handleWheel: (event: WheelEvent) => void;
|
|
171
179
|
handleContextMenu: (event: MouseEvent) => void;
|
|
172
180
|
overlayLanes: readonly DataGridTableStageOverlayLane[];
|
|
181
|
+
perfTraceEnabled: boolean;
|
|
173
182
|
}, {}>;
|
|
174
183
|
declare const _default: typeof __VLS_export;
|
|
175
184
|
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type PropType } from "vue";
|
|
2
2
|
import type { DataGridTableStagePinnedPaneProps, DataGridTableStagePinnedPaneRenderApi } from "./dataGridTableStageBody.types";
|
|
3
3
|
declare var __VLS_1: {};
|
|
4
4
|
type __VLS_Slots = {} & {
|
|
@@ -17,6 +17,10 @@ declare const __VLS_base: import("vue").DefineComponent<{
|
|
|
17
17
|
type: PropType<(event: MouseEvent) => void>;
|
|
18
18
|
default: undefined;
|
|
19
19
|
};
|
|
20
|
+
perfTraceEnabled: {
|
|
21
|
+
type: BooleanConstructor;
|
|
22
|
+
default: boolean;
|
|
23
|
+
};
|
|
20
24
|
}, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
21
25
|
pane: {
|
|
22
26
|
type: PropType<DataGridTableStagePinnedPaneProps>;
|
|
@@ -30,8 +34,13 @@ declare const __VLS_base: import("vue").DefineComponent<{
|
|
|
30
34
|
type: PropType<(event: MouseEvent) => void>;
|
|
31
35
|
default: undefined;
|
|
32
36
|
};
|
|
37
|
+
perfTraceEnabled: {
|
|
38
|
+
type: BooleanConstructor;
|
|
39
|
+
default: boolean;
|
|
40
|
+
};
|
|
33
41
|
}>>, {
|
|
34
42
|
handleContextMenu: (event: MouseEvent) => void;
|
|
43
|
+
perfTraceEnabled: boolean;
|
|
35
44
|
}, {}>;
|
|
36
45
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
37
46
|
declare const _default: typeof __VLS_export;
|
|
@@ -3,7 +3,15 @@ export interface DataGridInteractionModeInput {
|
|
|
3
3
|
interactionMode?: DataGridInteractionMode;
|
|
4
4
|
isCoarsePointer?: boolean;
|
|
5
5
|
}
|
|
6
|
+
export interface DataGridMouseEventPolicy {
|
|
7
|
+
interactionMode: Exclude<DataGridInteractionMode, "auto">;
|
|
8
|
+
touchGenerated: boolean;
|
|
9
|
+
nativeScrollPriority: boolean;
|
|
10
|
+
preventDefaultAllowed: boolean;
|
|
11
|
+
}
|
|
6
12
|
export declare function isTouchGeneratedMouseEvent(event: MouseEvent): boolean;
|
|
7
13
|
export declare function resolveDataGridInteractionMode(input?: DataGridInteractionModeInput): Exclude<DataGridInteractionMode, "auto">;
|
|
8
14
|
export declare function shouldPrioritizeNativeScrollForMouseDown(event: MouseEvent, input?: DataGridInteractionModeInput): boolean;
|
|
9
15
|
export declare function shouldPrioritizeNativeScrollForMouseEvent(event: MouseEvent, input?: DataGridInteractionModeInput): boolean;
|
|
16
|
+
export declare function resolveDataGridMouseEventPolicy(event: MouseEvent, input?: DataGridInteractionModeInput): DataGridMouseEventPolicy;
|
|
17
|
+
export declare function shouldAllowGridPreventDefaultForMouseEvent(event: MouseEvent, input?: DataGridInteractionModeInput): boolean;
|
|
@@ -158,6 +158,9 @@ export interface DataGridTableStageEditingSection<TRow extends Record<string, un
|
|
|
158
158
|
editingCellValue: string;
|
|
159
159
|
editingCellInitialFilter: string;
|
|
160
160
|
editingCellOpenOnMount: boolean;
|
|
161
|
+
editingCellValidationMessage: string | null;
|
|
162
|
+
editingCellPending: boolean;
|
|
163
|
+
editingCellRejectedReason: string | null;
|
|
161
164
|
isEditingCell: (row: DataGridTableRow<TRow>, columnKey: string) => boolean;
|
|
162
165
|
startInlineEdit: (row: DataGridTableRow<TRow>, columnKey: string, options?: {
|
|
163
166
|
draftValue?: string;
|
|
@@ -216,7 +219,7 @@ interface DataGridTableStageBindingsSource<TRow extends Record<string, unknown>>
|
|
|
216
219
|
}
|
|
217
220
|
export interface UseDataGridTableStageBindingsOptions<TRow extends Record<string, unknown>> extends Omit<{
|
|
218
221
|
[K in keyof DataGridTableStageBindingsSource<TRow>]: DataGridMaybeRef<DataGridTableStageBindingsSource<TRow>[K]>;
|
|
219
|
-
}, "editingCellValue" | "headerViewportRef" | "bodyViewportRef"
|
|
222
|
+
}, "editingCellValue" | "headerViewportRef" | "bodyViewportRef"> {
|
|
220
223
|
editingCellValueRef: Ref<string>;
|
|
221
224
|
headerViewportRef: Ref<HTMLElement | null>;
|
|
222
225
|
bodyViewportRef: Ref<HTMLElement | null>;
|
|
@@ -49,6 +49,7 @@ export interface DataGridTableStageBodyRenderApiBase {
|
|
|
49
49
|
resolveCellCustomStyle: (row: DataGridTableStageBodyRow, rowOffset: number, column: DataGridTableStageBodyColumn, columnIndex: number) => CSSProperties;
|
|
50
50
|
columnIndexByKey: (columnKey: string) => number;
|
|
51
51
|
cellTabIndex: (rowOffset: number, columnIndex: number) => number;
|
|
52
|
+
cellAriaSelected: (rowOffset: number, columnIndex: number) => "true" | "false";
|
|
52
53
|
cellAriaRole: (row: DataGridTableStageBodyRow, rowOffset: number, column: DataGridTableStageBodyColumn, columnIndex: number) => string | undefined;
|
|
53
54
|
cellAriaChecked: (row: DataGridTableStageBodyRow, rowOffset: number, column: DataGridTableStageBodyColumn, columnIndex: number) => "true" | "false" | "mixed" | undefined;
|
|
54
55
|
cellAriaPressed: (row: DataGridTableStageBodyRow, rowOffset: number, column: DataGridTableStageBodyColumn, columnIndex: number) => "true" | "false" | "mixed" | undefined;
|
|
@@ -16,6 +16,7 @@ export interface UseDataGridStageCellRenderingOptions {
|
|
|
16
16
|
columnIndexByKey: (columnKey: string) => number;
|
|
17
17
|
suppressInlineEditStart?: Readonly<Ref<boolean>>;
|
|
18
18
|
preferLightweightCellRendering?: Readonly<Ref<boolean>>;
|
|
19
|
+
perfTraceEnabled?: boolean;
|
|
19
20
|
}
|
|
20
21
|
export interface UseDataGridStageCellRenderingResult {
|
|
21
22
|
startInlineEditIfAllowed: (row: DataGridTableRow<Record<string, unknown>>, column: DataGridTableStageBodyColumn, rowOffset: number, event?: MouseEvent) => void;
|
|
@@ -8,6 +8,7 @@ export interface UseDataGridStageCellStateOptions {
|
|
|
8
8
|
isCellEditableSafe: (row: DataGridTableStageBodyRow, rowOffset: number, column: DataGridTableStageBodyColumn, columnIndex: number) => boolean;
|
|
9
9
|
isEditingCellSafe: (row: DataGridTableStageBodyRow, columnKey: string) => boolean;
|
|
10
10
|
resolveCellEditorMode: (row: DataGridTableStageBodyRow, column: DataGridTableStageBodyColumn) => "none" | "text" | "select" | "date" | "datetime";
|
|
11
|
+
isCellSelectedSafe: (rowOffset: number, columnIndex: number) => boolean;
|
|
11
12
|
isVisualSelectionAnchorCell: (rowOffset: number, columnIndex: number) => boolean;
|
|
12
13
|
shouldHighlightSelectedCellVisual: (rowOffset: number, columnIndex: number) => boolean;
|
|
13
14
|
isRangeMoveHandleHoverCell: (rowOffset: number, columnIndex: number) => boolean;
|
|
@@ -18,6 +19,7 @@ export interface UseDataGridStageCellStateOptions {
|
|
|
18
19
|
export interface UseDataGridStageCellStateResult {
|
|
19
20
|
builtInCellClasses: (row: DataGridTableStageBodyRow, rowOffset: number, column: DataGridTableStageBodyColumn, columnIndex: number) => Record<string, boolean>;
|
|
20
21
|
cellStateClasses: (row: DataGridTableStageBodyRow, rowOffset: number, columnIndex: number) => Record<string, boolean>;
|
|
22
|
+
cellAriaSelected: (rowOffset: number, columnIndex: number) => "true" | "false";
|
|
21
23
|
cellAriaRole: (row: DataGridTableStageBodyRow, rowOffset: number, column: DataGridTableStageBodyColumn, columnIndex: number) => string | undefined;
|
|
22
24
|
cellAriaChecked: (row: DataGridTableStageBodyRow, rowOffset: number, column: DataGridTableStageBodyColumn, columnIndex: number) => "true" | "false" | "mixed" | undefined;
|
|
23
25
|
cellAriaPressed: (row: DataGridTableStageBodyRow, rowOffset: number, column: DataGridTableStageBodyColumn, columnIndex: number) => "true" | "false" | "mixed" | undefined;
|
|
@@ -27,6 +27,7 @@ export interface UseDataGridStageChromeCanvasOptions {
|
|
|
27
27
|
headerChromeRenderModel: ComputedRef<DataGridChromeRenderModel>;
|
|
28
28
|
pinnedBottomChromeRenderModel: ComputedRef<DataGridChromeRenderModel>;
|
|
29
29
|
hasPivotHeaderGroups: ComputedRef<boolean>;
|
|
30
|
+
perfTraceEnabled?: boolean;
|
|
30
31
|
}
|
|
31
32
|
export interface UseDataGridStageChromeCanvasResult {
|
|
32
33
|
syncBodyViewportMetrics: () => void;
|
|
@@ -15,6 +15,7 @@ export interface UseDataGridStageFocusRuntimeOptions {
|
|
|
15
15
|
isCellEditableSafe: (row: DataGridTableStageBodyRow, rowOffset: number, column: DataGridTableStageBodyColumn, columnIndex: number) => boolean;
|
|
16
16
|
isBodyViewportScrolling?: Readonly<Ref<boolean>>;
|
|
17
17
|
runWhenBodyViewportScrollIdle?: (callback: () => void) => void;
|
|
18
|
+
shouldRestoreAnchorFocus?: () => boolean;
|
|
18
19
|
}
|
|
19
20
|
export interface UseDataGridStageFocusRuntimeResult {
|
|
20
21
|
isVisibleCellEditableByAbsoluteCoord: (rowIndex: number, columnIndex: number) => boolean;
|
|
@@ -24,6 +24,7 @@ export interface UseDataGridStageOverlaysOptions {
|
|
|
24
24
|
resolveVisibleRangeBounds: (range: DataGridOverlayRange | null) => DataGridStageOverlayBounds | null;
|
|
25
25
|
resolvePinnedBottomVisibleRangeBounds: (range: DataGridOverlayRange | null) => DataGridStageOverlayBounds | null;
|
|
26
26
|
customOverlays: ComputedRef<readonly DataGridTableStageCustomOverlay[]>;
|
|
27
|
+
perfTraceEnabled?: boolean;
|
|
27
28
|
}
|
|
28
29
|
export interface UseDataGridStageOverlaysResult {
|
|
29
30
|
leftSelectionOverlaySegments: ComputedRef<readonly DataGridTableStageOverlaySegment[]>;
|
|
@@ -98,6 +98,7 @@ export interface UseDataGridStageRenderApisOptions {
|
|
|
98
98
|
bodyCellSelectionStyle: (row: DataGridTableStageBodyRow, column: DataGridTableStageBodyColumn, rowOffset: number, columnIndex: number) => CSSProperties;
|
|
99
99
|
resolveCellCustomStyle: (row: DataGridTableStageBodyRow, rowOffset: number, column: DataGridTableStageBodyColumn, columnIndex: number) => CSSProperties;
|
|
100
100
|
cellTabIndex: (rowOffset: number, columnIndex: number) => number;
|
|
101
|
+
cellAriaSelected: (rowOffset: number, columnIndex: number) => "true" | "false";
|
|
101
102
|
cellAriaRole: (row: DataGridTableStageBodyRow, rowOffset: number, column: DataGridTableStageBodyColumn, columnIndex: number) => string | undefined;
|
|
102
103
|
cellAriaChecked: (row: DataGridTableStageBodyRow, rowOffset: number, column: DataGridTableStageBodyColumn, columnIndex: number) => "true" | "false" | "mixed" | undefined;
|
|
103
104
|
cellAriaPressed: (row: DataGridTableStageBodyRow, rowOffset: number, column: DataGridTableStageBodyColumn, columnIndex: number) => "true" | "false" | "mixed" | undefined;
|
|
@@ -58,6 +58,7 @@ type CellRuntime = Readonly<Ref<{
|
|
|
58
58
|
bodyCellSelectionStyle: (row: DataGridTableStageBodyRow, column: DataGridTableStageBodyColumn, rowOffset: number, columnIndex: number) => CSSProperties;
|
|
59
59
|
resolveCellCustomStyle: (row: DataGridTableStageBodyRow, rowOffset: number, column: DataGridTableStageBodyColumn, columnIndex: number) => CSSProperties;
|
|
60
60
|
cellTabIndex: (rowOffset: number, columnIndex: number) => number;
|
|
61
|
+
cellAriaSelected: (rowOffset: number, columnIndex: number) => "true" | "false";
|
|
61
62
|
cellAriaRole: (row: DataGridTableStageBodyRow, rowOffset: number, column: DataGridTableStageBodyColumn, columnIndex: number) => string | undefined;
|
|
62
63
|
cellAriaChecked: (row: DataGridTableStageBodyRow, rowOffset: number, column: DataGridTableStageBodyColumn, columnIndex: number) => "true" | "false" | "mixed" | undefined;
|
|
63
64
|
cellAriaPressed: (row: DataGridTableStageBodyRow, rowOffset: number, column: DataGridTableStageBodyColumn, columnIndex: number) => "true" | "false" | "mixed" | undefined;
|
|
@@ -7,6 +7,7 @@ export interface UseDataGridStageRowIndexOptions {
|
|
|
7
7
|
layout: Readonly<Ref<DataGridTableStageLayoutSection>>;
|
|
8
8
|
viewportRowStart: Readonly<Ref<number>>;
|
|
9
9
|
selectionRange: Readonly<Ref<DataGridOverlayRange | null>>;
|
|
10
|
+
selectionRanges?: Readonly<Ref<readonly DataGridOverlayRange[]>>;
|
|
10
11
|
visibleColumns: Readonly<Ref<readonly DataGridTableStageBodyColumn[]>>;
|
|
11
12
|
isHoveredRow: (row: DataGridTableStageBodyRow, rowOffset: number) => boolean;
|
|
12
13
|
isStripedRow: (row: DataGridTableStageBodyRow, rowOffset: number) => boolean;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { DataGridAppHistoryRestorationState } from "@affino/datagrid-vue/app";
|
|
1
2
|
import type { DataGridCopyRange } from "@affino/datagrid-vue/advanced";
|
|
2
3
|
import type { DataGridHistoryController } from "../dataGridHistory";
|
|
3
4
|
export interface DataGridTableStageHistoryAdapter {
|
|
@@ -27,6 +28,8 @@ export interface UseDataGridTableStageHistoryOptions<TRow extends Record<string,
|
|
|
27
28
|
syncViewport: () => void;
|
|
28
29
|
enabled?: boolean;
|
|
29
30
|
maxHistoryDepth?: number;
|
|
31
|
+
captureRestorationState?: () => DataGridAppHistoryRestorationState | null;
|
|
32
|
+
applyRestorationState?: (state: DataGridAppHistoryRestorationState) => void | Promise<void>;
|
|
30
33
|
history?: DataGridTableStageHistoryAdapter;
|
|
31
34
|
}
|
|
32
35
|
export interface UseDataGridTableStageHistoryResult extends DataGridHistoryController {
|
|
@@ -81,6 +81,7 @@ export interface UseDataGridTableStageRuntimeOptions<TRow extends Record<string,
|
|
|
81
81
|
getRow?: DataGridRowModel<TRow>["getRow"];
|
|
82
82
|
getRowCount?: DataGridRowModel<TRow>["getRowCount"];
|
|
83
83
|
getRowsInRange?: DataGridRowModel<TRow>["getRowsInRange"];
|
|
84
|
+
getLoadedRowIntervals?: DataGridRowModel<TRow>["getLoadedRowIntervals"];
|
|
84
85
|
dataSource?: {
|
|
85
86
|
resolveFillBoundary?: (request: DataGridAppResolveFillBoundaryRequest) => Promise<DataGridAppResolveFillBoundaryResult> | DataGridAppResolveFillBoundaryResult;
|
|
86
87
|
commitFillOperation?: (request: {
|
|
@@ -6,10 +6,18 @@ export interface UseDataGridTableStageScrollSyncOptions {
|
|
|
6
6
|
stopColumnResize: () => void;
|
|
7
7
|
handleInteractionWindowMouseMove: (event: MouseEvent) => void;
|
|
8
8
|
handleInteractionWindowMouseUp: () => void;
|
|
9
|
+
handleInteractionWindowPointerUp: () => void;
|
|
10
|
+
handleInteractionWindowPointerCancel: () => void;
|
|
11
|
+
handleInteractionWindowBlur: () => void;
|
|
12
|
+
handleInteractionWindowContextMenuCapture: (event: MouseEvent) => boolean;
|
|
9
13
|
syncViewport: (event: Event) => void;
|
|
10
14
|
}
|
|
11
15
|
export interface UseDataGridTableStageScrollSyncResult {
|
|
12
16
|
handleWindowMouseMove: (event: MouseEvent) => void;
|
|
17
|
+
handleWindowPointerUp: (event: PointerEvent) => void;
|
|
18
|
+
handleWindowPointerCancel: (event: PointerEvent) => void;
|
|
19
|
+
handleWindowBlur: () => void;
|
|
20
|
+
handleWindowContextMenuCapture: (event: MouseEvent) => boolean;
|
|
13
21
|
handleHeaderWheel: (event: WheelEvent) => void;
|
|
14
22
|
handleHeaderScroll: (event: Event) => void;
|
|
15
23
|
handleWindowMouseUp: () => void;
|
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.64",
|
|
4
4
|
"description": "Declarative Vue DataGrid component for Affino",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -46,9 +46,9 @@
|
|
|
46
46
|
"@affino/menu-vue": "^2.1.1",
|
|
47
47
|
"@affino/popover-vue": "^1.1.0",
|
|
48
48
|
"@affino/datagrid-chrome": "0.1.1",
|
|
49
|
-
"@affino/datagrid-
|
|
49
|
+
"@affino/datagrid-gantt": "0.1.2",
|
|
50
50
|
"@affino/datagrid-theme": "0.2.3",
|
|
51
|
-
"@affino/datagrid-
|
|
51
|
+
"@affino/datagrid-vue": "0.3.46"
|
|
52
52
|
},
|
|
53
53
|
"peerDependencies": {
|
|
54
54
|
"vue": "^3.3.0"
|