@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/dist/gantt.js CHANGED
@@ -1,4 +1,4 @@
1
- import { default as t } from "./chunks/DataGridGanttStageEntry-DgXw3IJw.js";
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, ("cell-change" | "selection-change")[], "cell-change" | "selection-change", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
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"?: ((...args: any[]) => any) | undefined;
100
- "onSelection-change"?: ((...args: any[]) => any) | undefined;
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";