@affino/datagrid-vue-app 0.1.38 → 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.
@@ -2,7 +2,7 @@ import { defineComponent as bn, h as G, inject as uo, ref as Q, computed as w, w
2
2
  import { resolveDataGridCellClickAction as yo, invokeDataGridCellInteraction as Co, toggleDataGridCellValue as Ro, buildDataGridCellRenderModel as So, buildDataGridAdvancedFilterExpressionFromLegacyFilters as po, useDataGridContextMenu as Io, cloneDataGridFilterSnapshot as xo, createClientRowModel as nl } from "@affino/datagrid-vue";
3
3
  import { useDataGridAppIntentHistory as Mo, createDataGridAppRowHeightMetrics as Ao, useDataGridAppViewport as Fo, useDataGridAppRowSizing as Oo, useDataGridAppCellSelection as ko, useDataGridAppRowPresentation as Do, useDataGridAppClipboard as Eo, useDataGridAppActiveCellViewport as To, useDataGridAppInlineEditing as zo, useDataGridAppInteractionController as _o, useDataGridAppHeaderResize as Ho, useDataGridAppRuntimeSync as Po, useDataGridAppViewportLifecycle as Vo, useDataGridAppColumnLayoutPanel as Bo } from "@affino/datagrid-vue/app";
4
4
  import { useDataGridViewportContextMenuRouter as jo, useDataGridContextMenuAnchor as Go, useDataGridContextMenuActionRouter as Ko } from "@affino/datagrid-vue/advanced";
5
- import { c as Lo, q as No, D as zl, a as _l, s as $o } from "./DataGridGanttStageEntry-jFh25aC1.js";
5
+ import { c as Lo, q as No, D as zl, a as _l, s as $o } from "./DataGridGanttStageEntry-o99nyV0i.js";
6
6
  import { usePopoverController as Wo, useFloatingPopover as Uo } from "@affino/popover-vue";
7
7
  import { d as qo, r as Yo } from "./dataGridOverlayThemeVars-vzY74EIz.js";
8
8
  import { u as Xo } from "./useDataGridDraggableOverlaySurface-BgkSR_nl.js";
@@ -1996,7 +1996,7 @@ function jl(e) {
1996
1996
  join: f === 0 ? cl("and") : i.join
1997
1997
  }));
1998
1998
  }
1999
- const Yr = gl(() => import("./DataGridAdvancedFilterPopover-JFXqnOOj.js")), Xr = gl(() => import("./DataGridAggregationsPopover-DS5swHvj.js")), Jr = gl(() => import("./DataGridFindReplacePopover-Dou8Fsm3.js"));
1999
+ const Yr = gl(() => import("./DataGridAdvancedFilterPopover-BBLSw7c4.js")), Xr = gl(() => import("./DataGridAggregationsPopover-C8kdwv0O.js")), Jr = gl(() => import("./DataGridFindReplacePopover-Dou8Fsm3.js"));
2000
2000
  function Zr(e) {
2001
2001
  return {
2002
2002
  ...e,
package/dist/gantt.js CHANGED
@@ -1,4 +1,4 @@
1
- import { D as t } from "./chunks/DataGridGanttStageEntry-jFh25aC1.js";
1
+ import { D as t } from "./chunks/DataGridGanttStageEntry-o99nyV0i.js";
2
2
  import { buildDataGridTimelineRenderModels as r, normalizeDataGridGanttOptions as n, resolveDataGridTimelineRange as o } from "@affino/datagrid-gantt";
3
3
  export {
4
4
  t as DataGridGanttStage,
package/dist/index.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import { defineComponent as je, ref as P, provide as ot, computed as m, watch as S, onBeforeUnmount as pe, h as we, mergeProps as nt, unref as Ce, toRef as Oe } from "vue";
2
2
  import { useDataGridRuntime as rt } from "@affino/datagrid-vue";
3
3
  import { useDataGridAppSelection as lt, useDataGridAppRowSelection as at } from "@affino/datagrid-vue/app";
4
- import { r as it, g as ut, h as st, i as dt, b as ct, d as ft, c as mt, j as yt, u as vt, D as gt } from "./chunks/useDataGridAppRowModel-CQEe1pSs.js";
5
- import { a as Ao, k as Bo } from "./chunks/useDataGridAppRowModel-CQEe1pSs.js";
6
- import { r as wt } from "./chunks/DataGridGanttStageEntry-jFh25aC1.js";
4
+ import { r as it, g as ut, h as st, i as dt, b as ct, d as ft, c as mt, j as yt, u as vt, D as gt } from "./chunks/useDataGridAppRowModel-Dy5CF0h4.js";
5
+ import { a as Ao, k as Bo } from "./chunks/useDataGridAppRowModel-Dy5CF0h4.js";
6
+ import { r as wt } from "./chunks/DataGridGanttStageEntry-o99nyV0i.js";
7
7
  import { applyGridTheme as pt, resolveGridThemeTokens as St, defaultStyleConfig as F, sugarTheme as Ie, industrialNeutralTheme as Ae } from "@affino/datagrid-theme";
8
8
  import { d as ht } from "./chunks/dataGridOverlayThemeVars-vzY74EIz.js";
9
9
  function fo() {
package/dist/internal.js CHANGED
@@ -1,8 +1,8 @@
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 T } from "./chunks/useDataGridAppRowModel-CQEe1pSs.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-jFh25aC1.js";
5
- import { _ as V } from "./chunks/DataGridAdvancedFilterPopover.vue_vue_type_script_setup_true_lang-CDuio50U.js";
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
6
  import { _ as k } from "./chunks/DataGridFindReplacePopover.vue_vue_type_script_setup_true_lang-BEVRKG31.js";
7
7
  import { buildDataGridTimelineRenderModels as B, normalizeDataGridGanttOptions as I, resolveDataGridTimelineRange as L } from "@affino/datagrid-gantt";
8
8
  export {
@@ -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";
@@ -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.38",
3
+ "version": "0.1.39",
4
4
  "description": "Declarative Vue DataGrid component for Affino",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -42,8 +42,8 @@
42
42
  "@affino/menu-vue": "^2.1.1",
43
43
  "@affino/popover-vue": "^1.1.0",
44
44
  "@affino/datagrid-chrome": "0.1.1",
45
- "@affino/datagrid-theme": "0.2.2",
46
45
  "@affino/datagrid-gantt": "0.1.2",
46
+ "@affino/datagrid-theme": "0.2.2",
47
47
  "@affino/datagrid-vue": "0.3.26"
48
48
  },
49
49
  "peerDependencies": {