@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/README.md +86 -0
- package/dist/DataGrid.d.ts +45 -14
- package/dist/advanced-filter.js +1 -1
- package/dist/chunks/{DataGridAdvancedFilterPopover-Bak_CkaO.js → DataGridAdvancedFilterPopover-CabJ-Ztk.js} +1 -1
- package/dist/chunks/{DataGridAdvancedFilterPopover.vue_vue_type_script_setup_true_lang-DixN56Qv.js → DataGridAdvancedFilterPopover.vue_vue_type_script_setup_true_lang-x-cfVm5j.js} +92 -72
- package/dist/chunks/{DataGridGanttStage.vue_vue_type_script_setup_true_lang-BY-MSNPc.js → DataGridGanttStage.vue_vue_type_script_setup_true_lang-DPozU5Z5.js} +1 -1
- package/dist/chunks/{DataGridGanttStageEntry-DgXw3IJw.js → DataGridGanttStageEntry-BnzXZ_y8.js} +1 -1
- package/dist/chunks/{DataGridTableStage.vue_vue_type_script_setup_true_lang-Cec3mpHC.js → DataGridTableStage.vue_vue_type_script_setup_true_lang-C9CKLdfN.js} +22 -0
- package/dist/chunks/useDataGridAppRowModel-Bxzexir6.js +2877 -0
- package/dist/gantt.js +1 -1
- package/dist/host/DataGridDefaultRenderer.d.ts +9 -0
- package/dist/host/DataGridRuntimeHost.d.ts +18 -4
- package/dist/index.d.ts +1 -0
- package/dist/index.js +324 -306
- package/dist/internal.js +4 -4
- package/dist/overlays/DataGridAdvancedFilterPopover.vue.d.ts +4 -0
- package/dist/stage/useDataGridTableStageRowSelection.d.ts +4 -2
- package/dist/stage/useDataGridTableStageRuntime.d.ts +1 -0
- package/package.json +3 -3
- package/dist/chunks/useDataGridAppRowModel-DJYtqvD0.js +0 -2854
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-
|
|
4
|
-
import { _ as b } from "./chunks/DataGridGanttStage.vue_vue_type_script_setup_true_lang-
|
|
5
|
-
import { _ as m } from "./chunks/DataGridAdvancedFilterPopover.vue_vue_type_script_setup_true_lang-
|
|
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-
|
|
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
|
-
|
|
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.
|
|
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"
|