@affino/datagrid-vue-app 0.1.13 → 0.1.15

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.
package/dist/internal.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import { d as t, r } from "./chunks/DataGridFilterableCombobox.vue_vue_type_script_setup_true_lang-_1TDQseN.js";
2
2
  import { buildDataGridChromePaneModel as o, buildDataGridChromeRenderModel as d } from "@affino/datagrid-chrome";
3
- import { D as l, a as n, r as G, u as D, b as S, c as u } from "./chunks/useDataGridAppRowModel-DJYtqvD0.js";
4
- import { _ as b } from "./chunks/DataGridGanttStage.vue_vue_type_script_setup_true_lang-BY-MSNPc.js";
5
- import { _ as m } from "./chunks/DataGridAdvancedFilterPopover.vue_vue_type_script_setup_true_lang-DixN56Qv.js";
6
- import { _ as c, c as x, a as R, d as f, p as C, u as M, b as v, e as h, f as w, g as y, h as A, i as F, j as O, k as P, l as _, m as E, n as H } from "./chunks/DataGridTableStage.vue_vue_type_script_setup_true_lang-Cec3mpHC.js";
3
+ import { D as l, a as n, r as G, u as D, b as S, c as u } from "./chunks/useDataGridAppRowModel-Bxzexir6.js";
4
+ import { _ as b } from "./chunks/DataGridGanttStage.vue_vue_type_script_setup_true_lang-DPozU5Z5.js";
5
+ import { _ as m } from "./chunks/DataGridAdvancedFilterPopover.vue_vue_type_script_setup_true_lang-x-cfVm5j.js";
6
+ import { _ as c, c as x, a as R, d as f, p as C, u as M, b as v, e as h, f as w, g as y, h as A, i as F, j as O, k as P, l as _, m as E, n as H } from "./chunks/DataGridTableStage.vue_vue_type_script_setup_true_lang-C9CKLdfN.js";
7
7
  import { buildDataGridTimelineRenderModels as V, normalizeDataGridGanttOptions as j, resolveDataGridTimelineRange as k } from "@affino/datagrid-gantt";
8
8
  export {
9
9
  m as DataGridAdvancedFilterPopover,
@@ -7,12 +7,14 @@ type __VLS_Props = {
7
7
  hasAnyFilters?: boolean;
8
8
  buttonLabel?: string;
9
9
  active?: boolean;
10
+ showActiveIcon?: boolean;
10
11
  };
11
12
  declare const __VLS_export: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<__VLS_Props>, {
12
13
  appliedFilterSummaryItems: () => never[];
13
14
  hasAnyFilters: boolean;
14
15
  buttonLabel: string;
15
16
  active: boolean;
17
+ showActiveIcon: boolean;
16
18
  }>, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
17
19
  cancel: () => void;
18
20
  add: () => void;
@@ -26,6 +28,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_WithDefaults<__V
26
28
  hasAnyFilters: boolean;
27
29
  buttonLabel: string;
28
30
  active: boolean;
31
+ showActiveIcon: boolean;
29
32
  }>>> & {
30
33
  onCancel?: (() => any) | undefined;
31
34
  onOpen?: (() => any) | undefined;
@@ -39,6 +42,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_WithDefaults<__V
39
42
  buttonLabel: string;
40
43
  appliedFilterSummaryItems: readonly string[];
41
44
  hasAnyFilters: boolean;
45
+ showActiveIcon: boolean;
42
46
  }, {}>;
43
47
  declare const _default: typeof __VLS_export;
44
48
  export default _default;
@@ -1,14 +1,15 @@
1
- import type { DataGridColumnSnapshot, DataGridRowId, DataGridRowSelectionSnapshot } from "@affino/datagrid-vue";
1
+ import type { DataGridColumnSnapshot, DataGridRowId, DataGridRowSelectionSnapshot, UseDataGridRuntimeResult } from "@affino/datagrid-vue";
2
2
  import { type ComputedRef, type Ref } from "vue";
3
3
  import type { DataGridCopyRange } from "@affino/datagrid-vue/advanced";
4
4
  import type { DataGridTableRow, DataGridTableStageAnchorCell } from "./dataGridTableStage.types";
5
+ type DataGridTableStageRowSelectionApi<TRow extends Record<string, unknown>> = UseDataGridRuntimeResult<TRow>["api"]["rowSelection"];
5
6
  export interface UseDataGridTableStageRowSelectionOptions<TRow extends Record<string, unknown>> {
6
7
  runtime: Pick<import("@affino/datagrid-vue").UseDataGridRuntimeResult<TRow>, "api">;
7
8
  rowSelectionColumn: ComputedRef<DataGridColumnSnapshot | null>;
8
9
  orderedVisibleColumns: ComputedRef<readonly DataGridColumnSnapshot[]>;
9
10
  displayRows: Ref<readonly DataGridTableRow<TRow>[]>;
10
11
  rowSelectionSnapshot: Ref<DataGridRowSelectionSnapshot | null>;
11
- syncRowSelectionSnapshotFromRuntime?: () => void;
12
+ applyRowSelectionMutation?: (mutator: (api: DataGridTableStageRowSelectionApi<TRow>) => void) => void;
12
13
  viewportRowStart: Ref<number>;
13
14
  selectionAnchorCell: ComputedRef<DataGridTableStageAnchorCell | null>;
14
15
  applySelectionRange: (range: DataGridCopyRange) => void;
@@ -27,3 +28,4 @@ export interface UseDataGridTableStageRowSelectionResult<TRow extends Record<str
27
28
  selectRowRange: (row: DataGridTableRow<TRow>, rowOffset: number, extend: boolean) => void;
28
29
  }
29
30
  export declare function useDataGridTableStageRowSelection<TRow extends Record<string, unknown>>(options: UseDataGridTableStageRowSelectionOptions<TRow>): UseDataGridTableStageRowSelectionResult<TRow>;
31
+ export {};
@@ -39,6 +39,7 @@ export interface UseDataGridTableStageRuntimeOptions<TRow extends Record<string,
39
39
  showRowSelection?: Ref<boolean>;
40
40
  isRowInPendingClipboardCut?: (row: import("@affino/datagrid-vue").DataGridRowNode<TRow>) => boolean;
41
41
  syncRowSelectionSnapshotFromRuntime?: () => void;
42
+ flushRowSelectionSnapshotUpdates?: () => void;
42
43
  firstColumnKey: Ref<string>;
43
44
  columnFilterTextByKey: Ref<Record<string, string>>;
44
45
  virtualization: Ref<DataGridVirtualizationOptions>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@affino/datagrid-vue-app",
3
- "version": "0.1.13",
3
+ "version": "0.1.15",
4
4
  "description": "Declarative Vue DataGrid component for Affino",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -34,9 +34,9 @@
34
34
  "@affino/menu-vue": "^2.1.1",
35
35
  "@affino/popover-vue": "^1.1.0",
36
36
  "@affino/datagrid-chrome": "0.1.1",
37
+ "@affino/datagrid-vue": "0.3.8",
37
38
  "@affino/datagrid-gantt": "0.1.1",
38
- "@affino/datagrid-theme": "0.2.2",
39
- "@affino/datagrid-vue": "0.3.7"
39
+ "@affino/datagrid-theme": "0.2.2"
40
40
  },
41
41
  "peerDependencies": {
42
42
  "vue": "^3.3.0"