@affino/datagrid-vue-app 0.1.37 → 0.1.39
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 +1 -1
- package/dist/advanced-filter.js +1 -1
- package/dist/aggregations.js +1 -1
- package/dist/chunks/{DataGridAdvancedFilterPopover-CXT1rG40.js → DataGridAdvancedFilterPopover-BBLSw7c4.js} +1 -1
- package/dist/chunks/{DataGridAdvancedFilterPopover.vue_vue_type_script_setup_true_lang-BshOPOFV.js → DataGridAdvancedFilterPopover.vue_vue_type_script_setup_true_lang-BUkG_Bz7.js} +1 -1
- package/dist/chunks/{DataGridAggregationsPopover-BRVx8c_y.js → DataGridAggregationsPopover-C8kdwv0O.js} +1 -1
- package/dist/chunks/{DataGridAggregationsPopover.vue_vue_type_script_setup_true_lang-CsQpLONh.js → DataGridAggregationsPopover.vue_vue_type_script_setup_true_lang-t6v8MqIT.js} +1 -1
- package/dist/chunks/{DataGridFilterableCombobox.vue_vue_type_script_setup_true_lang-Dc5SowKk.js → DataGridFilterableCombobox.vue_vue_type_script_setup_true_lang-xry4J3Lx.js} +66 -62
- package/dist/chunks/DataGridGanttStageEntry-o99nyV0i.js +9665 -0
- package/dist/chunks/{useDataGridAppRowModel-JUDjg-Fq.js → useDataGridAppRowModel-Dy5CF0h4.js} +1614 -1597
- package/dist/gantt.js +4 -4
- package/dist/index.js +413 -397
- package/dist/internal.js +28 -29
- package/dist/stage/dataGridTableStage.types.d.ts +2 -2
- package/dist/stage/useDataGridTableStageRuntime.d.ts +12 -12
- package/package.json +4 -4
- package/dist/chunks/DataGridGanttStage.vue_vue_type_script_setup_true_lang-DJ72Tgpd.js +0 -1007
- package/dist/chunks/DataGridGanttStageEntry-C4qhNhnp.js +0 -40
- package/dist/chunks/DataGridTableStage.vue_vue_type_script_setup_true_lang-Q2ri6J1V.js +0 -8604
package/dist/internal.js
CHANGED
|
@@ -1,46 +1,45 @@
|
|
|
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
|
|
4
|
-
import { _ as p } from "./chunks/
|
|
5
|
-
import { _ as
|
|
6
|
-
import { _ as
|
|
7
|
-
import {
|
|
8
|
-
import { buildDataGridTimelineRenderModels as I, normalizeDataGridGanttOptions as L, resolveDataGridTimelineRange as q } from "@affino/datagrid-gantt";
|
|
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-Dy5CF0h4.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-o99nyV0i.js";
|
|
5
|
+
import { _ as V } from "./chunks/DataGridAdvancedFilterPopover.vue_vue_type_script_setup_true_lang-BUkG_Bz7.js";
|
|
6
|
+
import { _ as k } from "./chunks/DataGridFindReplacePopover.vue_vue_type_script_setup_true_lang-BEVRKG31.js";
|
|
7
|
+
import { buildDataGridTimelineRenderModels as B, normalizeDataGridGanttOptions as I, resolveDataGridTimelineRange as L } from "@affino/datagrid-gantt";
|
|
9
8
|
export {
|
|
10
|
-
|
|
9
|
+
V as DataGridAdvancedFilterPopover,
|
|
11
10
|
l as DataGridDefaultRenderer,
|
|
12
|
-
|
|
11
|
+
k as DataGridFindReplacePopover,
|
|
13
12
|
p as DataGridGanttStage,
|
|
14
13
|
n as DataGridModuleHost,
|
|
15
|
-
|
|
14
|
+
c as DataGridTableStage,
|
|
16
15
|
i as buildDataGridChromePaneModel,
|
|
17
16
|
d as buildDataGridChromeRenderModel,
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
17
|
+
B as buildDataGridTimelineRenderModels,
|
|
18
|
+
R as createDataGridTableStageContext,
|
|
19
|
+
x as createDataGridTableStageContextFromProps,
|
|
21
20
|
t as dataGridAppRootElementKey,
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
21
|
+
C as dataGridTableStageContextKey,
|
|
22
|
+
I as normalizeDataGridGanttOptions,
|
|
23
|
+
f as provideDataGridTableStageContext,
|
|
25
24
|
r as readDataGridOverlayThemeVars,
|
|
26
25
|
G as resolveDataGridChrome,
|
|
27
26
|
D as resolveDataGridColumnReorder,
|
|
28
27
|
S as resolveDataGridFormulaRowModelOptions,
|
|
29
28
|
u as resolveDataGridRowReorder,
|
|
30
|
-
|
|
29
|
+
L as resolveDataGridTimelineRange,
|
|
31
30
|
g as useDataGridAppRowModel,
|
|
32
31
|
b as useDataGridTableStageBindings,
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
32
|
+
v as useDataGridTableStageCellsSection,
|
|
33
|
+
M as useDataGridTableStageColumnsSection,
|
|
34
|
+
h as useDataGridTableStageContext,
|
|
35
|
+
w as useDataGridTableStageEditingSection,
|
|
36
|
+
y as useDataGridTableStageInteractionSection,
|
|
37
|
+
F as useDataGridTableStageLayoutSection,
|
|
38
|
+
P as useDataGridTableStageMode,
|
|
39
|
+
A as useDataGridTableStageRowHeightMode,
|
|
40
|
+
O as useDataGridTableStageRowsSection,
|
|
41
|
+
T as useDataGridTableStageRuntime,
|
|
42
|
+
_ as useDataGridTableStageSection,
|
|
43
|
+
E as useDataGridTableStageSelectionSection,
|
|
44
|
+
H as useDataGridTableStageViewportSection
|
|
46
45
|
};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import type { ComponentPublicInstance, CSSProperties, Ref } from "vue";
|
|
2
|
-
import type { DataGridColumnHistogramEntry } from "@affino/datagrid-
|
|
3
|
-
import type { DataGridColumnPin, DataGridColumnSnapshot, DataGridOverlayRange, DataGridRowNode } from "@affino/datagrid-vue";
|
|
2
|
+
import type { DataGridColumnHistogramEntry, DataGridColumnPin, DataGridColumnSnapshot, DataGridOverlayRange, DataGridRowNode } from "@affino/datagrid-vue";
|
|
4
3
|
import type { DataGridFillBehavior } from "@affino/datagrid-vue/advanced";
|
|
5
4
|
import type { DataGridLayoutMode } from "../config/dataGridLayout";
|
|
6
5
|
import type { DataGridColumnMenuActionOptions, DataGridColumnMenuCustomItem, DataGridColumnMenuDisabledReasons, DataGridColumnMenuItemKey, DataGridColumnMenuItemLabels, DataGridColumnMenuTriggerMode } from "../overlays/dataGridColumnMenu";
|
|
@@ -116,6 +115,7 @@ export interface DataGridTableStageRowsSection<TRow extends Record<string, unkno
|
|
|
116
115
|
rowIndexLabel: (row: DataGridTableRow<TRow>, rowOffset: number) => string;
|
|
117
116
|
startRowResize: (event: MouseEvent, row: DataGridTableRow<TRow>, rowOffset: number) => void;
|
|
118
117
|
autosizeRow: (event: MouseEvent, row: DataGridTableRow<TRow>, rowOffset: number) => void;
|
|
118
|
+
consumeRecentRowResizeInteraction?: () => boolean;
|
|
119
119
|
}
|
|
120
120
|
export interface DataGridTableStageSelectionSection {
|
|
121
121
|
selectionRange: DataGridOverlayRange | null;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type ComputedRef, type CSSProperties, type Ref } from "vue";
|
|
2
|
-
import type { DataGridColumnSnapshot, DataGridRowSelectionSnapshot, DataGridSelectionSnapshot } from "@affino/datagrid-vue";
|
|
2
|
+
import type { DataGridColumnHistogramEntry, DataGridRowNode, DataGridColumnSnapshot, DataGridRowSelectionSnapshot, DataGridSelectionSnapshot, UseDataGridRuntimeResult } from "@affino/datagrid-vue";
|
|
3
3
|
import type { DataGridCopyRange } from "@affino/datagrid-vue/advanced";
|
|
4
4
|
import { type DataGridAppPasteOptions } from "@affino/datagrid-vue/app";
|
|
5
5
|
import type { DataGridCellEditablePredicate } from "../dataGridEditability";
|
|
@@ -13,19 +13,19 @@ import type { DataGridTableStageHistoryAdapter } from "./useDataGridTableStageHi
|
|
|
13
13
|
import type { DataGridTableRow, DataGridTableStageCellClass, DataGridTableStageProps } from "./dataGridTableStage.types";
|
|
14
14
|
export type { DataGridTableStageHistoryAdapter } from "./useDataGridTableStageHistory";
|
|
15
15
|
type DataGridTableStageBodyRuntime<TRow extends Record<string, unknown>> = {
|
|
16
|
-
api:
|
|
17
|
-
syncBodyRowsInRange:
|
|
18
|
-
setViewportRange:
|
|
19
|
-
setRows?:
|
|
20
|
-
rowPartition:
|
|
21
|
-
virtualWindow:
|
|
22
|
-
columnSnapshot:
|
|
16
|
+
api: UseDataGridRuntimeResult<TRow>["api"];
|
|
17
|
+
syncBodyRowsInRange: UseDataGridRuntimeResult<TRow>["syncBodyRowsInRange"];
|
|
18
|
+
setViewportRange: UseDataGridRuntimeResult<TRow>["setViewportRange"];
|
|
19
|
+
setRows?: UseDataGridRuntimeResult<TRow>["setRows"];
|
|
20
|
+
rowPartition: UseDataGridRuntimeResult<TRow>["rowPartition"];
|
|
21
|
+
virtualWindow: UseDataGridRuntimeResult<TRow>["virtualWindow"];
|
|
22
|
+
columnSnapshot: UseDataGridRuntimeResult<TRow>["columnSnapshot"];
|
|
23
23
|
setVirtualWindowRange?: (range: {
|
|
24
24
|
start: number;
|
|
25
25
|
end: number;
|
|
26
26
|
}) => void;
|
|
27
27
|
} & {
|
|
28
|
-
getBodyRowAtIndex: (rowIndex: number) =>
|
|
28
|
+
getBodyRowAtIndex: (rowIndex: number) => DataGridRowNode<TRow> | null;
|
|
29
29
|
resolveBodyRowIndexById: (rowId: string | number) => number;
|
|
30
30
|
};
|
|
31
31
|
export interface UseDataGridTableStageRuntimeOptions<TRow extends Record<string, unknown>> {
|
|
@@ -88,7 +88,7 @@ export interface UseDataGridTableStageRuntimeOptions<TRow extends Record<string,
|
|
|
88
88
|
resolveColumnGroupOrder?: (columnKey: string) => number | null;
|
|
89
89
|
resolveColumnMenuSortDirection?: (columnKey: string) => "asc" | "desc" | null;
|
|
90
90
|
resolveColumnMenuSelectedTokens?: (columnKey: string) => readonly string[];
|
|
91
|
-
resolveColumnMenuValueEntries?: (columnKey: string) => readonly
|
|
91
|
+
resolveColumnMenuValueEntries?: (columnKey: string) => readonly DataGridColumnHistogramEntry[];
|
|
92
92
|
applyColumnMenuSort?: (columnKey: string, direction: "asc" | "desc" | null) => void;
|
|
93
93
|
applyColumnMenuPin?: (columnKey: string, pin: import("@affino/datagrid-vue").DataGridColumnPin) => void;
|
|
94
94
|
applyColumnMenuGroupBy?: (columnKey: string, grouped: boolean) => void;
|
|
@@ -96,8 +96,8 @@ export interface UseDataGridTableStageRuntimeOptions<TRow extends Record<string,
|
|
|
96
96
|
clearColumnMenuFilter?: (columnKey: string) => void;
|
|
97
97
|
applyRowHeightSettings: () => void;
|
|
98
98
|
cloneRowData: (row: TRow) => TRow;
|
|
99
|
-
readClipboardCell?: (row:
|
|
100
|
-
readSelectionCell?: (row:
|
|
99
|
+
readClipboardCell?: (row: DataGridRowNode<TRow>, columnKey: string) => string;
|
|
100
|
+
readSelectionCell?: (row: DataGridRowNode<TRow>, columnKey: string) => unknown;
|
|
101
101
|
applyClipboardEdits?: (range: DataGridCopyRange, matrix: string[][], options?: {
|
|
102
102
|
recordHistory?: boolean;
|
|
103
103
|
}) => 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.39",
|
|
4
4
|
"description": "Declarative Vue DataGrid component for Affino",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -41,10 +41,10 @@
|
|
|
41
41
|
"dependencies": {
|
|
42
42
|
"@affino/menu-vue": "^2.1.1",
|
|
43
43
|
"@affino/popover-vue": "^1.1.0",
|
|
44
|
-
"@affino/datagrid-gantt": "0.1.2",
|
|
45
44
|
"@affino/datagrid-chrome": "0.1.1",
|
|
46
|
-
"@affino/datagrid-
|
|
47
|
-
"@affino/datagrid-theme": "0.2.2"
|
|
45
|
+
"@affino/datagrid-gantt": "0.1.2",
|
|
46
|
+
"@affino/datagrid-theme": "0.2.2",
|
|
47
|
+
"@affino/datagrid-vue": "0.3.26"
|
|
48
48
|
},
|
|
49
49
|
"peerDependencies": {
|
|
50
50
|
"vue": "^3.3.0"
|