@affino/datagrid-vue-app 0.1.42 → 0.1.44

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";
@@ -320,6 +320,14 @@ 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 reportFillPlumbingState: {
328
+ readonly type: PropType<((layer: string, present: boolean) => void) | undefined>;
329
+ readonly default: undefined;
330
+ };
323
331
  };
324
332
  type DataGridPublicPropsBase = ExtractPublicPropTypes<typeof dataGridProps>;
325
333
  export type DataGridProps<TRow = unknown> = Omit<DataGridPublicPropsBase, "rows" | "rowModel" | "clientRowModelOptions" | "computedFields" | "columns" | "plugins" | "state" | "placeholderRows" | "readSelectionCell" | "readFilterCell" | "readFilterCellStyle" | "cellClass" | "cellStyle" | "isCellEditable"> & {
@@ -352,6 +360,16 @@ export interface DataGridExposed<TRow = unknown> {
352
360
  migrateState: (state: unknown, options?: DataGridMigrateStateOptions) => DataGridUnifiedState<TRow> | null;
353
361
  applyState: (state: DataGridUnifiedState<TRow> | null, options?: DataGridSetStateOptions) => boolean;
354
362
  }
363
+ export interface DataGridCellEditEvent<TRow = unknown> {
364
+ rowId: DataGridRowId;
365
+ columnKey: string;
366
+ oldValue: unknown;
367
+ newValue: unknown;
368
+ patch: {
369
+ rowId: DataGridRowId;
370
+ data: Partial<TRow>;
371
+ };
372
+ }
355
373
  declare const DataGridRuntimeComponent: import("vue").DefineComponent<{
356
374
  readonly rows: {
357
375
  readonly type: PropType<readonly unknown[]>;
@@ -613,8 +631,17 @@ declare const DataGridRuntimeComponent: import("vue").DefineComponent<{
613
631
  readonly type: PropType<readonly DataGridTableStageCustomOverlay[] | undefined>;
614
632
  readonly default: undefined;
615
633
  };
634
+ readonly reportFillWarning: {
635
+ readonly type: PropType<((message: string) => void) | undefined>;
636
+ readonly default: undefined;
637
+ };
638
+ readonly reportFillPlumbingState: {
639
+ readonly type: PropType<((layer: string, present: boolean) => void) | undefined>;
640
+ readonly default: undefined;
641
+ };
616
642
  }, () => VNode, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
617
643
  "cell-change": (_payload: unknown) => true;
644
+ "cell-edit": (_payload: DataGridCellEditEvent<Record<string, unknown>>) => true;
618
645
  "selection-change": (_payload: DataGridApiSelectionChangedEvent) => true;
619
646
  "row-selection-change": (_payload: DataGridApiRowSelectionChangedEvent) => true;
620
647
  "row-select": (_payload: DataGridRowSelectionSnapshot | null) => true;
@@ -893,10 +920,19 @@ declare const DataGridRuntimeComponent: import("vue").DefineComponent<{
893
920
  readonly type: PropType<readonly DataGridTableStageCustomOverlay[] | undefined>;
894
921
  readonly default: undefined;
895
922
  };
923
+ readonly reportFillWarning: {
924
+ readonly type: PropType<((message: string) => void) | undefined>;
925
+ readonly default: undefined;
926
+ };
927
+ readonly reportFillPlumbingState: {
928
+ readonly type: PropType<((layer: string, present: boolean) => void) | undefined>;
929
+ readonly default: undefined;
930
+ };
896
931
  }>> & {
897
932
  "onCell-change"?: ((_payload: unknown) => any) | undefined;
898
933
  "onSelection-change"?: ((_payload: DataGridApiSelectionChangedEvent) => any) | undefined;
899
934
  "onRow-selection-change"?: ((_payload: DataGridApiRowSelectionChangedEvent) => any) | undefined;
935
+ "onCell-edit"?: ((_payload: DataGridCellEditEvent<Record<string, unknown>>) => any) | undefined;
900
936
  "onRow-select"?: ((_payload: DataGridRowSelectionSnapshot | null) => any) | undefined;
901
937
  "onUpdate:rowSelectionState"?: ((_payload: DataGridRowSelectionSnapshot | null) => any) | undefined;
902
938
  "onUpdate:columnState"?: ((_payload: DataGridUnifiedColumnState | null) => any) | undefined;
@@ -936,6 +972,8 @@ declare const DataGridRuntimeComponent: import("vue").DefineComponent<{
936
972
  readonly pagination: DataGridPaginationProp | undefined;
937
973
  readonly rowModel: DataGridRowModel<unknown> | undefined;
938
974
  readonly aggregations: DataGridAggregationsProp | undefined;
975
+ readonly reportFillWarning: ((message: string) => void) | undefined;
976
+ readonly reportFillPlumbingState: ((layer: string, present: boolean) => void) | undefined;
939
977
  readonly sortModel: readonly DataGridSortState[] | undefined;
940
978
  readonly filterModel: DataGridFilterSnapshot | null | undefined;
941
979
  readonly groupBy: DataGridGroupByProp | undefined;