@affino/datagrid-vue-app 0.1.43 → 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.
@@ -1,5 +1,5 @@
1
1
  import { type CSSProperties, type ExtractPublicPropTypes, type PropType, type VNode } from "vue";
2
- import { type CreateDataGridCoreOptions, type DataGridApi, type DataGridApiRowSelectionChangedEvent, type DataGridApiSelectionChangedEvent, type DataGridApiPluginDefinition, type DataGridAggregationModel, type DataGridColumnSnapshot, type DataGridColumnPin, type DataGridComputedFieldDefinition, type DataGridCoreServiceRegistry, type DataGridFilterSnapshot, type DataGridFormulaFieldDefinition, type DataGridFormulaFunctionRegistry, type DataGridGroupBySpec, type DataGridMigrateStateOptions, type DataGridRowNode, type DataGridRowSelectionSnapshot, type DataGridRowModel, type DataGridRowNodeInput, type DataGridSetStateOptions, type DataGridSortState, type DataGridUnifiedColumnState, type DataGridUnifiedState, type DataGridPivotSpec, type UseDataGridRuntimeResult } from "@affino/datagrid-vue";
2
+ import { type CreateDataGridCoreOptions, type DataGridApi, type DataGridApiRowSelectionChangedEvent, type DataGridApiSelectionChangedEvent, type DataGridApiPluginDefinition, type DataGridAggregationModel, type DataGridColumnSnapshot, type DataGridColumnPin, type DataGridComputedFieldDefinition, type DataGridCoreServiceRegistry, type DataGridFilterSnapshot, type DataGridFormulaFieldDefinition, type DataGridFormulaFunctionRegistry, type DataGridGroupBySpec, type DataGridMigrateStateOptions, type DataGridRowNode, type DataGridRowSelectionSnapshot, type DataGridRowModel, type DataGridRowNodeInput, type DataGridSetStateOptions, type DataGridSortState, type DataGridUnifiedColumnState, type DataGridUnifiedState, type DataGridPivotSpec, type DataGridRowId, type UseDataGridRuntimeResult } from "@affino/datagrid-vue";
3
3
  import { defineDataGridStructuralRowActionHandler, type DataGridStructuralRowActionHandler, type DataGridStructuralRowActionId } from "./dataGridStructuralRowActions";
4
4
  import type { DataGridBivariantCallback } from "./types/bivariance";
5
5
  import type { DataGridAppToolbarModule } from "./host/DataGridModuleHost";
@@ -23,7 +23,7 @@ import { type DataGridVirtualizationProp } from "./config/dataGridVirtualization
23
23
  import type { DataGridCellEditablePredicate } from "./dataGridEditability";
24
24
  import { type DataGridHistoryController, type DataGridHistoryProp } from "./dataGridHistory";
25
25
  import type { DataGridAppViewMode, DataGridGanttProp } from "./gantt/dataGridGantt.types";
26
- import type { DataGridTableStageCellClass, DataGridTableStageCustomOverlay } from "./stage/dataGridTableStage.types";
26
+ import type { DataGridTableStageCenterPaneDiagnostics, DataGridTableStageCellClass, DataGridTableStageCustomOverlay } from "./stage/dataGridTableStage.types";
27
27
  type DataGridRuntimeOverrides = Omit<Partial<DataGridCoreServiceRegistry>, "rowModel" | "columnModel" | "viewport"> & {
28
28
  viewport?: DataGridCoreServiceRegistry["viewport"];
29
29
  };
@@ -320,6 +320,22 @@ declare const dataGridProps: {
320
320
  readonly type: PropType<readonly DataGridTableStageCustomOverlay[] | undefined>;
321
321
  readonly default: undefined;
322
322
  };
323
+ readonly reportFillWarning: {
324
+ readonly type: PropType<((message: string) => void) | undefined>;
325
+ readonly default: undefined;
326
+ };
327
+ readonly reportCenterPaneDiagnostics: {
328
+ readonly type: PropType<((payload: DataGridTableStageCenterPaneDiagnostics) => void) | undefined>;
329
+ readonly default: undefined;
330
+ };
331
+ readonly reportFillPlumbingState: {
332
+ readonly type: PropType<((layer: string, present: boolean) => void) | undefined>;
333
+ readonly default: undefined;
334
+ };
335
+ readonly reportFillPlumbingDetail: {
336
+ readonly type: PropType<((layer: string, value: string) => void) | undefined>;
337
+ readonly default: undefined;
338
+ };
323
339
  };
324
340
  type DataGridPublicPropsBase = ExtractPublicPropTypes<typeof dataGridProps>;
325
341
  export type DataGridProps<TRow = unknown> = Omit<DataGridPublicPropsBase, "rows" | "rowModel" | "clientRowModelOptions" | "computedFields" | "columns" | "plugins" | "state" | "placeholderRows" | "readSelectionCell" | "readFilterCell" | "readFilterCellStyle" | "cellClass" | "cellStyle" | "isCellEditable"> & {
@@ -352,6 +368,16 @@ export interface DataGridExposed<TRow = unknown> {
352
368
  migrateState: (state: unknown, options?: DataGridMigrateStateOptions) => DataGridUnifiedState<TRow> | null;
353
369
  applyState: (state: DataGridUnifiedState<TRow> | null, options?: DataGridSetStateOptions) => boolean;
354
370
  }
371
+ export interface DataGridCellEditEvent<TRow = unknown> {
372
+ rowId: DataGridRowId;
373
+ columnKey: string;
374
+ oldValue: unknown;
375
+ newValue: unknown;
376
+ patch: {
377
+ rowId: DataGridRowId;
378
+ data: Partial<TRow>;
379
+ };
380
+ }
355
381
  declare const DataGridRuntimeComponent: import("vue").DefineComponent<{
356
382
  readonly rows: {
357
383
  readonly type: PropType<readonly unknown[]>;
@@ -613,8 +639,25 @@ declare const DataGridRuntimeComponent: import("vue").DefineComponent<{
613
639
  readonly type: PropType<readonly DataGridTableStageCustomOverlay[] | undefined>;
614
640
  readonly default: undefined;
615
641
  };
642
+ readonly reportFillWarning: {
643
+ readonly type: PropType<((message: string) => void) | undefined>;
644
+ readonly default: undefined;
645
+ };
646
+ readonly reportCenterPaneDiagnostics: {
647
+ readonly type: PropType<((payload: DataGridTableStageCenterPaneDiagnostics) => void) | undefined>;
648
+ readonly default: undefined;
649
+ };
650
+ readonly reportFillPlumbingState: {
651
+ readonly type: PropType<((layer: string, present: boolean) => void) | undefined>;
652
+ readonly default: undefined;
653
+ };
654
+ readonly reportFillPlumbingDetail: {
655
+ readonly type: PropType<((layer: string, value: string) => void) | undefined>;
656
+ readonly default: undefined;
657
+ };
616
658
  }, () => VNode, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
617
659
  "cell-change": (_payload: unknown) => true;
660
+ "cell-edit": (_payload: DataGridCellEditEvent<Record<string, unknown>>) => true;
618
661
  "selection-change": (_payload: DataGridApiSelectionChangedEvent) => true;
619
662
  "row-selection-change": (_payload: DataGridApiRowSelectionChangedEvent) => true;
620
663
  "row-select": (_payload: DataGridRowSelectionSnapshot | null) => true;
@@ -893,10 +936,27 @@ declare const DataGridRuntimeComponent: import("vue").DefineComponent<{
893
936
  readonly type: PropType<readonly DataGridTableStageCustomOverlay[] | undefined>;
894
937
  readonly default: undefined;
895
938
  };
939
+ readonly reportFillWarning: {
940
+ readonly type: PropType<((message: string) => void) | undefined>;
941
+ readonly default: undefined;
942
+ };
943
+ readonly reportCenterPaneDiagnostics: {
944
+ readonly type: PropType<((payload: DataGridTableStageCenterPaneDiagnostics) => void) | undefined>;
945
+ readonly default: undefined;
946
+ };
947
+ readonly reportFillPlumbingState: {
948
+ readonly type: PropType<((layer: string, present: boolean) => void) | undefined>;
949
+ readonly default: undefined;
950
+ };
951
+ readonly reportFillPlumbingDetail: {
952
+ readonly type: PropType<((layer: string, value: string) => void) | undefined>;
953
+ readonly default: undefined;
954
+ };
896
955
  }>> & {
897
956
  "onCell-change"?: ((_payload: unknown) => any) | undefined;
898
957
  "onSelection-change"?: ((_payload: DataGridApiSelectionChangedEvent) => any) | undefined;
899
958
  "onRow-selection-change"?: ((_payload: DataGridApiRowSelectionChangedEvent) => any) | undefined;
959
+ "onCell-edit"?: ((_payload: DataGridCellEditEvent<Record<string, unknown>>) => any) | undefined;
900
960
  "onRow-select"?: ((_payload: DataGridRowSelectionSnapshot | null) => any) | undefined;
901
961
  "onUpdate:rowSelectionState"?: ((_payload: DataGridRowSelectionSnapshot | null) => any) | undefined;
902
962
  "onUpdate:columnState"?: ((_payload: DataGridUnifiedColumnState | null) => any) | undefined;
@@ -928,6 +988,9 @@ declare const DataGridRuntimeComponent: import("vue").DefineComponent<{
928
988
  readonly cellStyle: DataGridCellStyleResolver<unknown> | undefined;
929
989
  readonly isCellEditable: DataGridCellEditablePredicate<Record<string, unknown>> | undefined;
930
990
  readonly customOverlays: readonly DataGridTableStageCustomOverlay[] | undefined;
991
+ readonly reportCenterPaneDiagnostics: ((payload: DataGridTableStageCenterPaneDiagnostics) => void) | undefined;
992
+ readonly reportFillPlumbingState: ((layer: string, present: boolean) => void) | undefined;
993
+ readonly reportFillPlumbingDetail: ((layer: string, value: string) => void) | undefined;
931
994
  readonly rowSelection: boolean;
932
995
  readonly state: DataGridUnifiedState<Record<string, unknown>> | null | undefined;
933
996
  readonly chrome: DataGridChromeProp | undefined;
@@ -936,6 +999,7 @@ declare const DataGridRuntimeComponent: import("vue").DefineComponent<{
936
999
  readonly pagination: DataGridPaginationProp | undefined;
937
1000
  readonly rowModel: DataGridRowModel<unknown> | undefined;
938
1001
  readonly aggregations: DataGridAggregationsProp | undefined;
1002
+ readonly reportFillWarning: ((message: string) => void) | undefined;
939
1003
  readonly sortModel: readonly DataGridSortState[] | undefined;
940
1004
  readonly filterModel: DataGridFilterSnapshot | null | undefined;
941
1005
  readonly groupBy: DataGridGroupByProp | undefined;
@@ -17,6 +17,14 @@ declare const __VLS_export: import("vue").DefineComponent<{
17
17
  type: import("vue").PropType<import("./dataGridTableStage.types.js").DataGridTableStageProps<Record<string, unknown>>["chromeSignature"]>;
18
18
  default: string;
19
19
  };
20
+ reportFillPlumbingState: {
21
+ type: import("vue").PropType<import("./dataGridTableStage.types.js").DataGridTableStageProps<Record<string, unknown>>["reportFillPlumbingState"]>;
22
+ default: undefined;
23
+ };
24
+ reportFillPlumbingDetail: {
25
+ type: import("vue").PropType<import("./dataGridTableStage.types.js").DataGridTableStageProps<Record<string, unknown>>["reportFillPlumbingDetail"]>;
26
+ default: undefined;
27
+ };
20
28
  layout: {
21
29
  type: import("vue").PropType<import("./dataGridTableStage.types.js").DataGridTableStageProps<Record<string, unknown>>["layout"]>;
22
30
  required: true;
@@ -53,6 +61,10 @@ declare const __VLS_export: import("vue").DefineComponent<{
53
61
  type: import("vue").PropType<readonly import("./dataGridTableStage.types.js").DataGridTableStageCustomOverlay[]>;
54
62
  default: () => never[];
55
63
  };
64
+ reportCenterPaneDiagnostics: {
65
+ type: import("vue").PropType<import("./dataGridTableStage.types.js").DataGridTableStageProps<Record<string, unknown>>["reportCenterPaneDiagnostics"]>;
66
+ default: undefined;
67
+ };
56
68
  onViewportContextMenu: {
57
69
  type: import("vue").PropType<(event: MouseEvent) => void>;
58
70
  default: undefined;
@@ -86,6 +98,14 @@ declare const __VLS_export: import("vue").DefineComponent<{
86
98
  type: import("vue").PropType<import("./dataGridTableStage.types.js").DataGridTableStageProps<Record<string, unknown>>["chromeSignature"]>;
87
99
  default: string;
88
100
  };
101
+ reportFillPlumbingState: {
102
+ type: import("vue").PropType<import("./dataGridTableStage.types.js").DataGridTableStageProps<Record<string, unknown>>["reportFillPlumbingState"]>;
103
+ default: undefined;
104
+ };
105
+ reportFillPlumbingDetail: {
106
+ type: import("vue").PropType<import("./dataGridTableStage.types.js").DataGridTableStageProps<Record<string, unknown>>["reportFillPlumbingDetail"]>;
107
+ default: undefined;
108
+ };
89
109
  layout: {
90
110
  type: import("vue").PropType<import("./dataGridTableStage.types.js").DataGridTableStageProps<Record<string, unknown>>["layout"]>;
91
111
  required: true;
@@ -122,6 +142,10 @@ declare const __VLS_export: import("vue").DefineComponent<{
122
142
  type: import("vue").PropType<readonly import("./dataGridTableStage.types.js").DataGridTableStageCustomOverlay[]>;
123
143
  default: () => never[];
124
144
  };
145
+ reportCenterPaneDiagnostics: {
146
+ type: import("vue").PropType<import("./dataGridTableStage.types.js").DataGridTableStageProps<Record<string, unknown>>["reportCenterPaneDiagnostics"]>;
147
+ default: undefined;
148
+ };
125
149
  onViewportContextMenu: {
126
150
  type: import("vue").PropType<(event: MouseEvent) => void>;
127
151
  default: undefined;
@@ -133,6 +157,9 @@ declare const __VLS_export: import("vue").DefineComponent<{
133
157
  }>>, {
134
158
  chromeSignature: string | undefined;
135
159
  customOverlays: readonly import("./dataGridTableStage.types.js").DataGridTableStageCustomOverlay[];
160
+ reportCenterPaneDiagnostics: ((payload: import("./dataGridTableStage.types.js").DataGridTableStageCenterPaneDiagnostics) => void) | undefined;
161
+ reportFillPlumbingState: ((layer: string, present: boolean) => void) | undefined;
162
+ reportFillPlumbingDetail: ((layer: string, value: string) => void) | undefined;
136
163
  onViewportContextMenu: (event: MouseEvent) => void;
137
164
  stageContext: import("./dataGridTableStageContext.js").DataGridTableStageContext<Record<string, unknown>>;
138
165
  }, {}>;