@affino/datagrid-vue-app 0.1.52 → 0.1.54

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.
Files changed (41) hide show
  1. package/README.md +3 -1
  2. package/dist/DataGrid.d.ts +15 -1
  3. package/dist/chunks/DataGridGanttStageEntry-D3nLenyk.js +10971 -0
  4. package/dist/chunks/DataGridQuickFilterInput-9KGwF8HM.js +83 -0
  5. package/dist/chunks/useDataGridAppRowModel-CPlFP2el.js +5083 -0
  6. package/dist/config/dataGridQuickFilter.d.ts +5 -0
  7. package/dist/config/dataGridStatePersistence.d.ts +23 -0
  8. package/dist/gantt.js +1 -1
  9. package/dist/host/DataGridQuickFilterInput.d.ts +27 -0
  10. package/dist/index.d.ts +2 -1
  11. package/dist/index.js +758 -643
  12. package/dist/internal.js +2 -2
  13. package/dist/overlays/DataGridAdvancedFilterPopover.vue.d.ts +1 -1
  14. package/dist/overlays/DataGridAggregationsPopover.vue.d.ts +1 -1
  15. package/dist/overlays/DataGridColumnLayoutPopover.vue.d.ts +1 -1
  16. package/dist/perf/dataGridPerfTrace.d.ts +27 -0
  17. package/dist/quick-filter.d.ts +1 -1
  18. package/dist/quick-filter.js +1 -1
  19. package/dist/stage/dataGridStageOverlayGeometry.d.ts +88 -0
  20. package/dist/stage/dataGridTableStageHelpers.d.ts +10 -0
  21. package/dist/stage/useDataGridPerfTrace.d.ts +9 -0
  22. package/dist/stage/useDataGridStageCellRendering.d.ts +38 -0
  23. package/dist/stage/useDataGridStageCellState.d.ts +31 -0
  24. package/dist/stage/useDataGridStageChromeCanvas.d.ts +41 -0
  25. package/dist/stage/useDataGridStageChromeModel.d.ts +73 -0
  26. package/dist/stage/useDataGridStageFillAction.d.ts +51 -0
  27. package/dist/stage/useDataGridStageFocusRuntime.d.ts +33 -0
  28. package/dist/stage/useDataGridStageOverlays.d.ts +69 -0
  29. package/dist/stage/useDataGridStagePanes.d.ts +76 -0
  30. package/dist/stage/useDataGridStagePanes.grouped.d.ts +86 -0
  31. package/dist/stage/useDataGridStagePointerInteractions.d.ts +30 -0
  32. package/dist/stage/useDataGridStageRenderApis.d.ts +141 -0
  33. package/dist/stage/useDataGridStageRenderApis.grouped.d.ts +140 -0
  34. package/dist/stage/useDataGridStageRowIndex.d.ts +36 -0
  35. package/dist/stage/useDataGridStageRowState.d.ts +69 -0
  36. package/dist/stage/useDataGridStageViewportRuntime.d.ts +37 -0
  37. package/dist/stage/useDataGridTableStageRuntime.d.ts +5 -0
  38. package/package.json +3 -3
  39. package/dist/chunks/DataGridGanttStageEntry-DQBFS3-m.js +0 -10121
  40. package/dist/chunks/DataGridQuickFilterInput-TYJI9vo6.js +0 -60
  41. package/dist/chunks/useDataGridAppRowModel-DUbwsPak.js +0 -5092
package/README.md CHANGED
@@ -1482,11 +1482,13 @@ The object form controls placeholder text, explicit searchable columns, and matc
1482
1482
  placeholder: 'Search accounts',
1483
1483
  columns: ['service', 'owner', 'region'],
1484
1484
  mode: 'tokens',
1485
+ applyMode: 'debounce',
1486
+ debounceMs: 400,
1485
1487
  }"
1486
1488
  />
1487
1489
  ```
1488
1490
 
1489
- This prop is a shell convenience API. Typing in the input updates `filterModel.quickFilter`; clearing the input removes it from the snapshot. It does not add a separate `update:quickFilter` event or a second state channel.
1491
+ This prop is a shell convenience API. By default, typing in the input updates `filterModel.quickFilter` immediately. `applyMode: 'debounce'` commits after `debounceMs`, while `applyMode: 'manual'` keeps a local draft until Enter or the built-in Apply button. Clearing the input removes quick filter from the snapshot. It does not add a separate `update:quickFilter` event or a second state channel.
1490
1492
 
1491
1493
  Controlled consumers can still manage quick filter directly through the same `filter-model` contract:
1492
1494
 
@@ -7,6 +7,7 @@ import { type DataGridAppClientRowModelOptions, type DataGridAppColumnInput } fr
7
7
  import { type DataGridChromeProp } from "./config/dataGridChrome";
8
8
  import { type DataGridThemeProp } from "./theme/dataGridTheme";
9
9
  import { type DataGridGroupByProp, type DataGridPaginationProp } from "./config/dataGridPublicProps";
10
+ import { type DataGridStatePersistenceProp } from "./config/dataGridStatePersistence";
10
11
  import { type DataGridAdvancedFilterProp } from "./config/dataGridAdvancedFilter";
11
12
  import { type DataGridQuickFilterProp } from "./config/dataGridQuickFilter";
12
13
  import { type DataGridFindReplaceProp } from "./config/dataGridFindReplace";
@@ -59,7 +60,7 @@ export declare function defineDataGridFilterCellStyleReader<TRow = unknown>(): <
59
60
  export declare function defineDataGridCellClassResolver<TRow = unknown>(): <TResolver extends DataGridCellClassResolver<TRow>>(resolver: TResolver) => TResolver;
60
61
  export declare function defineDataGridCellStyleResolver<TRow = unknown>(): <TResolver extends DataGridCellStyleResolver<TRow>>(resolver: TResolver) => TResolver;
61
62
  export { defineDataGridStructuralRowActionHandler };
62
- export type DataGridExposedRuntime<TRow = unknown> = Pick<UseDataGridRuntimeResult<TRow>, "api" | "syncBodyRowsInRange" | "setViewportRange" | "setVirtualWindowRange" | "setRows" | "rowPartition" | "virtualWindow" | "columnSnapshot" | "getBodyRowAtIndex" | "resolveBodyRowIndexById">;
63
+ export type DataGridExposedRuntime<TRow = unknown> = Pick<UseDataGridRuntimeResult<TRow>, "api" | "syncBodyRowsInRange" | "setViewportRange" | "setVirtualWindowRange" | "setRows" | "rowPartition" | "virtualWindow" | "columnSnapshot" | "getBodyRowAtIndex" | "resolveBodyRowIndexById" | "getViewportPosition" | "setViewportPosition" | "scrollToRow" | "scrollToColumn" | "scrollToCell">;
63
64
  declare const dataGridProps: {
64
65
  readonly rows: {
65
66
  readonly type: PropType<readonly unknown[]>;
@@ -237,6 +238,10 @@ declare const dataGridProps: {
237
238
  readonly type: PropType<DataGridSetStateOptions | null | undefined>;
238
239
  readonly default: undefined;
239
240
  };
241
+ readonly statePersistence: {
242
+ readonly type: PropType<DataGridStatePersistenceProp>;
243
+ readonly default: undefined;
244
+ };
240
245
  readonly rowHeightMode: {
241
246
  readonly type: PropType<"fixed" | "auto">;
242
247
  readonly default: "fixed";
@@ -561,6 +566,10 @@ declare const DataGridRuntimeComponent: import("vue").DefineComponent<{
561
566
  readonly type: PropType<DataGridSetStateOptions | null | undefined>;
562
567
  readonly default: undefined;
563
568
  };
569
+ readonly statePersistence: {
570
+ readonly type: PropType<DataGridStatePersistenceProp>;
571
+ readonly default: undefined;
572
+ };
564
573
  readonly rowHeightMode: {
565
574
  readonly type: PropType<"fixed" | "auto">;
566
575
  readonly default: "fixed";
@@ -862,6 +871,10 @@ declare const DataGridRuntimeComponent: import("vue").DefineComponent<{
862
871
  readonly type: PropType<DataGridSetStateOptions | null | undefined>;
863
872
  readonly default: undefined;
864
873
  };
874
+ readonly statePersistence: {
875
+ readonly type: PropType<DataGridStatePersistenceProp>;
876
+ readonly default: undefined;
877
+ };
865
878
  readonly rowHeightMode: {
866
879
  readonly type: PropType<"fixed" | "auto">;
867
880
  readonly default: "fixed";
@@ -1057,6 +1070,7 @@ declare const DataGridRuntimeComponent: import("vue").DefineComponent<{
1057
1070
  readonly columnWidths: Readonly<Record<string, number | null>> | null | undefined;
1058
1071
  readonly columnPins: Readonly<Record<string, DataGridColumnPin>> | null | undefined;
1059
1072
  readonly stateOptions: DataGridSetStateOptions | null | undefined;
1073
+ readonly statePersistence: DataGridStatePersistenceProp;
1060
1074
  }, {}>;
1061
1075
  type DataGridRuntimeStatics = {
1062
1076
  [K in keyof typeof DataGridRuntimeComponent]: (typeof DataGridRuntimeComponent)[K];