@affino/datagrid-vue-app 0.1.13 → 0.1.15
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 +86 -0
- package/dist/DataGrid.d.ts +45 -14
- package/dist/advanced-filter.js +1 -1
- package/dist/chunks/{DataGridAdvancedFilterPopover-Bak_CkaO.js → DataGridAdvancedFilterPopover-CabJ-Ztk.js} +1 -1
- package/dist/chunks/{DataGridAdvancedFilterPopover.vue_vue_type_script_setup_true_lang-DixN56Qv.js → DataGridAdvancedFilterPopover.vue_vue_type_script_setup_true_lang-x-cfVm5j.js} +92 -72
- package/dist/chunks/{DataGridGanttStage.vue_vue_type_script_setup_true_lang-BY-MSNPc.js → DataGridGanttStage.vue_vue_type_script_setup_true_lang-DPozU5Z5.js} +1 -1
- package/dist/chunks/{DataGridGanttStageEntry-DgXw3IJw.js → DataGridGanttStageEntry-BnzXZ_y8.js} +1 -1
- package/dist/chunks/{DataGridTableStage.vue_vue_type_script_setup_true_lang-Cec3mpHC.js → DataGridTableStage.vue_vue_type_script_setup_true_lang-C9CKLdfN.js} +22 -0
- package/dist/chunks/useDataGridAppRowModel-Bxzexir6.js +2877 -0
- package/dist/gantt.js +1 -1
- package/dist/host/DataGridDefaultRenderer.d.ts +9 -0
- package/dist/host/DataGridRuntimeHost.d.ts +18 -4
- package/dist/index.d.ts +1 -0
- package/dist/index.js +324 -306
- package/dist/internal.js +4 -4
- package/dist/overlays/DataGridAdvancedFilterPopover.vue.d.ts +4 -0
- package/dist/stage/useDataGridTableStageRowSelection.d.ts +4 -2
- package/dist/stage/useDataGridTableStageRuntime.d.ts +1 -0
- package/package.json +3 -3
- package/dist/chunks/useDataGridAppRowModel-DJYtqvD0.js +0 -2854
package/dist/gantt.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { default as t } from "./chunks/DataGridGanttStageEntry-
|
|
1
|
+
import { default as t } from "./chunks/DataGridGanttStageEntry-BnzXZ_y8.js";
|
|
2
2
|
import { buildDataGridTimelineRenderModels as r, normalizeDataGridGanttOptions as d, resolveDataGridTimelineRange as n } from "@affino/datagrid-gantt";
|
|
3
3
|
export {
|
|
4
4
|
t as DataGridGanttStage,
|
|
@@ -53,6 +53,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
53
53
|
type: PropType<() => void>;
|
|
54
54
|
default: () => undefined;
|
|
55
55
|
};
|
|
56
|
+
flushRowSelectionSnapshotUpdates: {
|
|
57
|
+
type: PropType<() => void>;
|
|
58
|
+
default: () => undefined;
|
|
59
|
+
};
|
|
56
60
|
sortModel: {
|
|
57
61
|
type: PropType<readonly DataGridSortState[] | undefined>;
|
|
58
62
|
default: undefined;
|
|
@@ -204,6 +208,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
204
208
|
type: PropType<() => void>;
|
|
205
209
|
default: () => undefined;
|
|
206
210
|
};
|
|
211
|
+
flushRowSelectionSnapshotUpdates: {
|
|
212
|
+
type: PropType<() => void>;
|
|
213
|
+
default: () => undefined;
|
|
214
|
+
};
|
|
207
215
|
sortModel: {
|
|
208
216
|
type: PropType<readonly DataGridSortState[] | undefined>;
|
|
209
217
|
default: undefined;
|
|
@@ -328,6 +336,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
328
336
|
gantt: DataGridGanttProp | undefined;
|
|
329
337
|
baseRowHeight: number;
|
|
330
338
|
syncRowSelectionSnapshotFromRuntime: () => void;
|
|
339
|
+
flushRowSelectionSnapshotUpdates: () => void;
|
|
331
340
|
sortModel: readonly DataGridSortState[] | undefined;
|
|
332
341
|
filterModel: DataGridFilterSnapshot | null | undefined;
|
|
333
342
|
groupBy: DataGridGroupBySpec | null | undefined;
|
|
@@ -1,10 +1,19 @@
|
|
|
1
1
|
import { type PropType, type VNode } from "vue";
|
|
2
|
-
import type { CreateDataGridCoreOptions, DataGridApiPluginDefinition, DataGridColumnInput, DataGridCoreServiceRegistry, DataGridPaginationInput, DataGridRowModel } from "@affino/datagrid-vue";
|
|
2
|
+
import type { CreateDataGridCoreOptions, DataGridApiPluginDefinition, DataGridColumnInput, DataGridCoreServiceRegistry, DataGridPaginationInput, DataGridRowSelectionSnapshot, DataGridRowModel, DataGridRowModelSnapshot, DataGridSelectionSnapshot } from "@affino/datagrid-vue";
|
|
3
3
|
import { type DataGridThemeProp } from "../theme/dataGridTheme";
|
|
4
4
|
import type { DataGridLayoutMode } from "../config/dataGridLayout";
|
|
5
5
|
type DataGridRuntimeOverrides = Omit<Partial<DataGridCoreServiceRegistry>, "rowModel" | "columnModel" | "viewport"> & {
|
|
6
6
|
viewport?: DataGridCoreServiceRegistry["viewport"];
|
|
7
7
|
};
|
|
8
|
+
interface DataGridRowsChangedEvent {
|
|
9
|
+
snapshot: DataGridRowModelSnapshot<unknown>;
|
|
10
|
+
}
|
|
11
|
+
interface DataGridSelectionChangedEvent {
|
|
12
|
+
snapshot: DataGridSelectionSnapshot | null;
|
|
13
|
+
}
|
|
14
|
+
interface DataGridRowSelectionChangedEvent {
|
|
15
|
+
snapshot: DataGridRowSelectionSnapshot | null;
|
|
16
|
+
}
|
|
8
17
|
declare const _default: import("vue").DefineComponent<{
|
|
9
18
|
rows: {
|
|
10
19
|
type: PropType<readonly unknown[]>;
|
|
@@ -50,7 +59,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
50
59
|
type: PropType<DataGridPaginationInput | null>;
|
|
51
60
|
default: null;
|
|
52
61
|
};
|
|
53
|
-
}, () => VNode, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
|
62
|
+
}, () => VNode, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
63
|
+
"cell-change": (_payload: DataGridRowsChangedEvent) => true;
|
|
64
|
+
"selection-change": (_payload: DataGridSelectionChangedEvent) => true;
|
|
65
|
+
"row-selection-change": (_payload: DataGridRowSelectionChangedEvent) => true;
|
|
66
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
54
67
|
rows: {
|
|
55
68
|
type: PropType<readonly unknown[]>;
|
|
56
69
|
default: () => never[];
|
|
@@ -96,8 +109,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
96
109
|
default: null;
|
|
97
110
|
};
|
|
98
111
|
}>> & {
|
|
99
|
-
"onCell-change"?: ((
|
|
100
|
-
"onSelection-change"?: ((
|
|
112
|
+
"onCell-change"?: ((_payload: DataGridRowsChangedEvent) => any) | undefined;
|
|
113
|
+
"onSelection-change"?: ((_payload: DataGridSelectionChangedEvent) => any) | undefined;
|
|
114
|
+
"onRow-selection-change"?: ((_payload: DataGridRowSelectionChangedEvent) => any) | undefined;
|
|
101
115
|
}, {
|
|
102
116
|
rows: readonly unknown[];
|
|
103
117
|
columns: readonly DataGridColumnInput<unknown>[];
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { Component } from "vue";
|
|
2
2
|
export declare const DataGrid: Component;
|
|
3
3
|
export type { DataGridAppCellRenderer, DataGridAppCellRendererContext, DataGridAppCellRendererInteractiveContext, DataGridAppColumnInput, DataGridDeclarativeFormulaOptions, } from "./config/dataGridFormulaOptions";
|
|
4
|
+
export type { DataGridAppToolbarModule, } from "./host/DataGridModuleHost";
|
|
4
5
|
export type { DataGridLayoutMode, DataGridResolvedLayoutOptions, } from "./config/dataGridLayout";
|
|
5
6
|
export type { DataGridCellEditablePredicate, DataGridCellEditablePredicateContext, } from "./dataGridEditability";
|
|
6
7
|
export type { DataGridThemePreset, DataGridThemeProp, } from "./theme/dataGridTheme";
|