@affino/datagrid-vue-app 0.1.37 → 0.1.39

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 (19) hide show
  1. package/dist/DataGrid.d.ts +1 -1
  2. package/dist/advanced-filter.js +1 -1
  3. package/dist/aggregations.js +1 -1
  4. package/dist/chunks/{DataGridAdvancedFilterPopover-CXT1rG40.js → DataGridAdvancedFilterPopover-BBLSw7c4.js} +1 -1
  5. package/dist/chunks/{DataGridAdvancedFilterPopover.vue_vue_type_script_setup_true_lang-BshOPOFV.js → DataGridAdvancedFilterPopover.vue_vue_type_script_setup_true_lang-BUkG_Bz7.js} +1 -1
  6. package/dist/chunks/{DataGridAggregationsPopover-BRVx8c_y.js → DataGridAggregationsPopover-C8kdwv0O.js} +1 -1
  7. package/dist/chunks/{DataGridAggregationsPopover.vue_vue_type_script_setup_true_lang-CsQpLONh.js → DataGridAggregationsPopover.vue_vue_type_script_setup_true_lang-t6v8MqIT.js} +1 -1
  8. package/dist/chunks/{DataGridFilterableCombobox.vue_vue_type_script_setup_true_lang-Dc5SowKk.js → DataGridFilterableCombobox.vue_vue_type_script_setup_true_lang-xry4J3Lx.js} +66 -62
  9. package/dist/chunks/DataGridGanttStageEntry-o99nyV0i.js +9665 -0
  10. package/dist/chunks/{useDataGridAppRowModel-JUDjg-Fq.js → useDataGridAppRowModel-Dy5CF0h4.js} +1614 -1597
  11. package/dist/gantt.js +4 -4
  12. package/dist/index.js +413 -397
  13. package/dist/internal.js +28 -29
  14. package/dist/stage/dataGridTableStage.types.d.ts +2 -2
  15. package/dist/stage/useDataGridTableStageRuntime.d.ts +12 -12
  16. package/package.json +4 -4
  17. package/dist/chunks/DataGridGanttStage.vue_vue_type_script_setup_true_lang-DJ72Tgpd.js +0 -1007
  18. package/dist/chunks/DataGridGanttStageEntry-C4qhNhnp.js +0 -40
  19. package/dist/chunks/DataGridTableStage.vue_vue_type_script_setup_true_lang-Q2ri6J1V.js +0 -8604
package/dist/internal.js CHANGED
@@ -1,46 +1,45 @@
1
1
  import { d as t, r } from "./chunks/dataGridOverlayThemeVars-vzY74EIz.js";
2
2
  import { buildDataGridChromePaneModel as i, buildDataGridChromeRenderModel as d } from "@affino/datagrid-chrome";
3
- import { D as l, a as n, r as G, b as D, c as S, d as u, u as g, e as b, f as m } from "./chunks/useDataGridAppRowModel-JUDjg-Fq.js";
4
- import { _ as p } from "./chunks/DataGridGanttStage.vue_vue_type_script_setup_true_lang-DJ72Tgpd.js";
5
- import { _ as R } from "./chunks/DataGridAdvancedFilterPopover.vue_vue_type_script_setup_true_lang-BshOPOFV.js";
6
- import { _ as f } from "./chunks/DataGridFindReplacePopover.vue_vue_type_script_setup_true_lang-BEVRKG31.js";
7
- import { _ as v, c as M, a as h, d as w, p as y, u as F, b as P, e as _, f as A, g as O, h as E, i as H, j as K, k as V, l as j, m as k, n as z } from "./chunks/DataGridTableStage.vue_vue_type_script_setup_true_lang-Q2ri6J1V.js";
8
- import { buildDataGridTimelineRenderModels as I, normalizeDataGridGanttOptions as L, resolveDataGridTimelineRange as q } from "@affino/datagrid-gantt";
3
+ import { D as l, a as n, r as G, b as D, c as S, d as u, u as g, e as b, f as T } from "./chunks/useDataGridAppRowModel-Dy5CF0h4.js";
4
+ import { _ as p, a as c, c as R, b as x, d as C, p as f, u as v, e as M, f as h, g as w, h as y, i as F, j as P, k as A, l as O, m as _, n as E, o as H } from "./chunks/DataGridGanttStageEntry-o99nyV0i.js";
5
+ import { _ as V } from "./chunks/DataGridAdvancedFilterPopover.vue_vue_type_script_setup_true_lang-BUkG_Bz7.js";
6
+ import { _ as k } from "./chunks/DataGridFindReplacePopover.vue_vue_type_script_setup_true_lang-BEVRKG31.js";
7
+ import { buildDataGridTimelineRenderModels as B, normalizeDataGridGanttOptions as I, resolveDataGridTimelineRange as L } from "@affino/datagrid-gantt";
9
8
  export {
10
- R as DataGridAdvancedFilterPopover,
9
+ V as DataGridAdvancedFilterPopover,
11
10
  l as DataGridDefaultRenderer,
12
- f as DataGridFindReplacePopover,
11
+ k as DataGridFindReplacePopover,
13
12
  p as DataGridGanttStage,
14
13
  n as DataGridModuleHost,
15
- v as DataGridTableStage,
14
+ c as DataGridTableStage,
16
15
  i as buildDataGridChromePaneModel,
17
16
  d as buildDataGridChromeRenderModel,
18
- I as buildDataGridTimelineRenderModels,
19
- M as createDataGridTableStageContext,
20
- h as createDataGridTableStageContextFromProps,
17
+ B as buildDataGridTimelineRenderModels,
18
+ R as createDataGridTableStageContext,
19
+ x as createDataGridTableStageContextFromProps,
21
20
  t as dataGridAppRootElementKey,
22
- w as dataGridTableStageContextKey,
23
- L as normalizeDataGridGanttOptions,
24
- y as provideDataGridTableStageContext,
21
+ C as dataGridTableStageContextKey,
22
+ I as normalizeDataGridGanttOptions,
23
+ f as provideDataGridTableStageContext,
25
24
  r as readDataGridOverlayThemeVars,
26
25
  G as resolveDataGridChrome,
27
26
  D as resolveDataGridColumnReorder,
28
27
  S as resolveDataGridFormulaRowModelOptions,
29
28
  u as resolveDataGridRowReorder,
30
- q as resolveDataGridTimelineRange,
29
+ L as resolveDataGridTimelineRange,
31
30
  g as useDataGridAppRowModel,
32
31
  b as useDataGridTableStageBindings,
33
- F as useDataGridTableStageCellsSection,
34
- P as useDataGridTableStageColumnsSection,
35
- _ as useDataGridTableStageContext,
36
- A as useDataGridTableStageEditingSection,
37
- O as useDataGridTableStageInteractionSection,
38
- E as useDataGridTableStageLayoutSection,
39
- H as useDataGridTableStageMode,
40
- K as useDataGridTableStageRowHeightMode,
41
- V as useDataGridTableStageRowsSection,
42
- m as useDataGridTableStageRuntime,
43
- j as useDataGridTableStageSection,
44
- k as useDataGridTableStageSelectionSection,
45
- z as useDataGridTableStageViewportSection
32
+ v as useDataGridTableStageCellsSection,
33
+ M as useDataGridTableStageColumnsSection,
34
+ h as useDataGridTableStageContext,
35
+ w as useDataGridTableStageEditingSection,
36
+ y as useDataGridTableStageInteractionSection,
37
+ F as useDataGridTableStageLayoutSection,
38
+ P as useDataGridTableStageMode,
39
+ A as useDataGridTableStageRowHeightMode,
40
+ O as useDataGridTableStageRowsSection,
41
+ T as useDataGridTableStageRuntime,
42
+ _ as useDataGridTableStageSection,
43
+ E as useDataGridTableStageSelectionSection,
44
+ H as useDataGridTableStageViewportSection
46
45
  };
@@ -1,6 +1,5 @@
1
1
  import type { ComponentPublicInstance, CSSProperties, Ref } from "vue";
2
- import type { DataGridColumnHistogramEntry } from "@affino/datagrid-core";
3
- import type { DataGridColumnPin, DataGridColumnSnapshot, DataGridOverlayRange, DataGridRowNode } from "@affino/datagrid-vue";
2
+ import type { DataGridColumnHistogramEntry, DataGridColumnPin, DataGridColumnSnapshot, DataGridOverlayRange, DataGridRowNode } from "@affino/datagrid-vue";
4
3
  import type { DataGridFillBehavior } from "@affino/datagrid-vue/advanced";
5
4
  import type { DataGridLayoutMode } from "../config/dataGridLayout";
6
5
  import type { DataGridColumnMenuActionOptions, DataGridColumnMenuCustomItem, DataGridColumnMenuDisabledReasons, DataGridColumnMenuItemKey, DataGridColumnMenuItemLabels, DataGridColumnMenuTriggerMode } from "../overlays/dataGridColumnMenu";
@@ -116,6 +115,7 @@ export interface DataGridTableStageRowsSection<TRow extends Record<string, unkno
116
115
  rowIndexLabel: (row: DataGridTableRow<TRow>, rowOffset: number) => string;
117
116
  startRowResize: (event: MouseEvent, row: DataGridTableRow<TRow>, rowOffset: number) => void;
118
117
  autosizeRow: (event: MouseEvent, row: DataGridTableRow<TRow>, rowOffset: number) => void;
118
+ consumeRecentRowResizeInteraction?: () => boolean;
119
119
  }
120
120
  export interface DataGridTableStageSelectionSection {
121
121
  selectionRange: DataGridOverlayRange | null;
@@ -1,5 +1,5 @@
1
1
  import { type ComputedRef, type CSSProperties, type Ref } from "vue";
2
- import type { DataGridColumnSnapshot, DataGridRowSelectionSnapshot, DataGridSelectionSnapshot } from "@affino/datagrid-vue";
2
+ import type { DataGridColumnHistogramEntry, DataGridRowNode, DataGridColumnSnapshot, DataGridRowSelectionSnapshot, DataGridSelectionSnapshot, UseDataGridRuntimeResult } from "@affino/datagrid-vue";
3
3
  import type { DataGridCopyRange } from "@affino/datagrid-vue/advanced";
4
4
  import { type DataGridAppPasteOptions } from "@affino/datagrid-vue/app";
5
5
  import type { DataGridCellEditablePredicate } from "../dataGridEditability";
@@ -13,19 +13,19 @@ import type { DataGridTableStageHistoryAdapter } from "./useDataGridTableStageHi
13
13
  import type { DataGridTableRow, DataGridTableStageCellClass, DataGridTableStageProps } from "./dataGridTableStage.types";
14
14
  export type { DataGridTableStageHistoryAdapter } from "./useDataGridTableStageHistory";
15
15
  type DataGridTableStageBodyRuntime<TRow extends Record<string, unknown>> = {
16
- api: import("@affino/datagrid-vue").UseDataGridRuntimeResult<TRow>["api"];
17
- syncBodyRowsInRange: import("@affino/datagrid-vue").UseDataGridRuntimeResult<TRow>["syncBodyRowsInRange"];
18
- setViewportRange: import("@affino/datagrid-vue").UseDataGridRuntimeResult<TRow>["setViewportRange"];
19
- setRows?: import("@affino/datagrid-vue").UseDataGridRuntimeResult<TRow>["setRows"];
20
- rowPartition: import("@affino/datagrid-vue").UseDataGridRuntimeResult<TRow>["rowPartition"];
21
- virtualWindow: import("@affino/datagrid-vue").UseDataGridRuntimeResult<TRow>["virtualWindow"];
22
- columnSnapshot: import("@affino/datagrid-vue").UseDataGridRuntimeResult<TRow>["columnSnapshot"];
16
+ api: UseDataGridRuntimeResult<TRow>["api"];
17
+ syncBodyRowsInRange: UseDataGridRuntimeResult<TRow>["syncBodyRowsInRange"];
18
+ setViewportRange: UseDataGridRuntimeResult<TRow>["setViewportRange"];
19
+ setRows?: UseDataGridRuntimeResult<TRow>["setRows"];
20
+ rowPartition: UseDataGridRuntimeResult<TRow>["rowPartition"];
21
+ virtualWindow: UseDataGridRuntimeResult<TRow>["virtualWindow"];
22
+ columnSnapshot: UseDataGridRuntimeResult<TRow>["columnSnapshot"];
23
23
  setVirtualWindowRange?: (range: {
24
24
  start: number;
25
25
  end: number;
26
26
  }) => void;
27
27
  } & {
28
- getBodyRowAtIndex: (rowIndex: number) => import("@affino/datagrid-vue").DataGridRowNode<TRow> | null;
28
+ getBodyRowAtIndex: (rowIndex: number) => DataGridRowNode<TRow> | null;
29
29
  resolveBodyRowIndexById: (rowId: string | number) => number;
30
30
  };
31
31
  export interface UseDataGridTableStageRuntimeOptions<TRow extends Record<string, unknown>> {
@@ -88,7 +88,7 @@ export interface UseDataGridTableStageRuntimeOptions<TRow extends Record<string,
88
88
  resolveColumnGroupOrder?: (columnKey: string) => number | null;
89
89
  resolveColumnMenuSortDirection?: (columnKey: string) => "asc" | "desc" | null;
90
90
  resolveColumnMenuSelectedTokens?: (columnKey: string) => readonly string[];
91
- resolveColumnMenuValueEntries?: (columnKey: string) => readonly import("@affino/datagrid-core").DataGridColumnHistogramEntry[];
91
+ resolveColumnMenuValueEntries?: (columnKey: string) => readonly DataGridColumnHistogramEntry[];
92
92
  applyColumnMenuSort?: (columnKey: string, direction: "asc" | "desc" | null) => void;
93
93
  applyColumnMenuPin?: (columnKey: string, pin: import("@affino/datagrid-vue").DataGridColumnPin) => void;
94
94
  applyColumnMenuGroupBy?: (columnKey: string, grouped: boolean) => void;
@@ -96,8 +96,8 @@ export interface UseDataGridTableStageRuntimeOptions<TRow extends Record<string,
96
96
  clearColumnMenuFilter?: (columnKey: string) => void;
97
97
  applyRowHeightSettings: () => void;
98
98
  cloneRowData: (row: TRow) => TRow;
99
- readClipboardCell?: (row: import("@affino/datagrid-core").DataGridRowNode<TRow>, columnKey: string) => string;
100
- readSelectionCell?: (row: import("@affino/datagrid-core").DataGridRowNode<TRow>, columnKey: string) => unknown;
99
+ readClipboardCell?: (row: DataGridRowNode<TRow>, columnKey: string) => string;
100
+ readSelectionCell?: (row: DataGridRowNode<TRow>, columnKey: string) => unknown;
101
101
  applyClipboardEdits?: (range: DataGridCopyRange, matrix: string[][], options?: {
102
102
  recordHistory?: boolean;
103
103
  }) => number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@affino/datagrid-vue-app",
3
- "version": "0.1.37",
3
+ "version": "0.1.39",
4
4
  "description": "Declarative Vue DataGrid component for Affino",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -41,10 +41,10 @@
41
41
  "dependencies": {
42
42
  "@affino/menu-vue": "^2.1.1",
43
43
  "@affino/popover-vue": "^1.1.0",
44
- "@affino/datagrid-gantt": "0.1.2",
45
44
  "@affino/datagrid-chrome": "0.1.1",
46
- "@affino/datagrid-vue": "0.3.25",
47
- "@affino/datagrid-theme": "0.2.2"
45
+ "@affino/datagrid-gantt": "0.1.2",
46
+ "@affino/datagrid-theme": "0.2.2",
47
+ "@affino/datagrid-vue": "0.3.26"
48
48
  },
49
49
  "peerDependencies": {
50
50
  "vue": "^3.3.0"