@affino/datagrid-vue-app 0.1.5 → 0.1.7
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 +120 -1
- package/dist/DataGrid.d.ts +28 -0
- package/dist/DataGridTableStage.vue.d.ts +8 -0
- package/dist/chunks/{DataGridGanttStage.vue_vue_type_script_setup_true_lang-Jmd76whO.js → DataGridGanttStage.vue_vue_type_script_setup_true_lang-DiaL9sUh.js} +1 -1
- package/dist/chunks/{DataGridGanttStageEntry-bwovuF8o.js → DataGridGanttStageEntry-B8Ghe1BD.js} +1 -1
- package/dist/chunks/{DataGridTableStage.vue_vue_type_script_setup_true_lang-BI_C6XtF.js → DataGridTableStage.vue_vue_type_script_setup_true_lang-Bb5ixAcf.js} +2297 -2221
- package/dist/chunks/{useDataGridAppRowModel-7DfVdtXX.js → useDataGridAppRowModel-BX3O48Yb.js} +1192 -1140
- package/dist/config/dataGridLayout.d.ts +7 -0
- package/dist/gantt.js +1 -1
- package/dist/host/DataGridDefaultRenderer.d.ts +28 -0
- package/dist/host/DataGridRuntimeHost.d.ts +10 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +409 -366
- package/dist/internal.js +3 -3
- package/dist/stage/DataGridTableStage.vue.d.ts +8 -0
- package/dist/stage/dataGridTableStage.types.d.ts +5 -0
- package/dist/stage/dataGridTableStageContext.d.ts +3 -0
- package/dist/stage/useDataGridTableStageRuntime.d.ts +4 -0
- package/package.json +4 -4
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-
|
|
3
|
+
import { D as l, a as n, r as G, u as D, b as S, c as u } from "./chunks/useDataGridAppRowModel-BX3O48Yb.js";
|
|
4
|
+
import { _ as b } from "./chunks/DataGridGanttStage.vue_vue_type_script_setup_true_lang-DiaL9sUh.js";
|
|
5
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-
|
|
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-Bb5ixAcf.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,
|
|
@@ -10,6 +10,10 @@ declare const __VLS_export: import("vue").DefineComponent<{
|
|
|
10
10
|
type: PropType<DataGridTableStageProps<Record<string, unknown>>["rowHeightMode"]>;
|
|
11
11
|
required: true;
|
|
12
12
|
};
|
|
13
|
+
layoutMode: {
|
|
14
|
+
type: PropType<DataGridTableStageProps<Record<string, unknown>>["layoutMode"]>;
|
|
15
|
+
required: true;
|
|
16
|
+
};
|
|
13
17
|
layout: {
|
|
14
18
|
type: PropType<DataGridTableStageProps<Record<string, unknown>>["layout"]>;
|
|
15
19
|
required: true;
|
|
@@ -67,6 +71,10 @@ declare const __VLS_export: import("vue").DefineComponent<{
|
|
|
67
71
|
type: PropType<DataGridTableStageProps<Record<string, unknown>>["rowHeightMode"]>;
|
|
68
72
|
required: true;
|
|
69
73
|
};
|
|
74
|
+
layoutMode: {
|
|
75
|
+
type: PropType<DataGridTableStageProps<Record<string, unknown>>["layoutMode"]>;
|
|
76
|
+
required: true;
|
|
77
|
+
};
|
|
70
78
|
layout: {
|
|
71
79
|
type: PropType<DataGridTableStageProps<Record<string, unknown>>["layout"]>;
|
|
72
80
|
required: true;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { ComponentPublicInstance, CSSProperties, Ref } from "vue";
|
|
2
2
|
import type { DataGridColumnPin, DataGridColumnSnapshot, DataGridOverlayRange, DataGridRowNode } from "@affino/datagrid-vue";
|
|
3
3
|
import type { DataGridFillBehavior } from "@affino/datagrid-vue/advanced";
|
|
4
|
+
import type { DataGridLayoutMode } from "../config/dataGridLayout";
|
|
4
5
|
import type { DataGridColumnMenuActionOptions, DataGridColumnMenuDisabledReasons, DataGridColumnMenuItemKey, DataGridColumnMenuItemLabels } from "../overlays/dataGridColumnMenu";
|
|
5
6
|
export type DataGridTableMode = "base" | "tree" | "pivot" | "worker";
|
|
6
7
|
export type DataGridPendingEdge = "top" | "right" | "bottom" | "left";
|
|
@@ -16,6 +17,8 @@ export interface DataGridTableStageLayoutSection {
|
|
|
16
17
|
gridContentStyle: CSSProperties;
|
|
17
18
|
mainTrackStyle: CSSProperties;
|
|
18
19
|
indexColumnStyle: CSSProperties;
|
|
20
|
+
stageStyle: CSSProperties;
|
|
21
|
+
bodyShellStyle: CSSProperties;
|
|
19
22
|
columnStyle: (key: string) => CSSProperties;
|
|
20
23
|
}
|
|
21
24
|
export interface DataGridTableStageViewportSection {
|
|
@@ -145,10 +148,12 @@ export interface DataGridTableStageSectionedProps<TRow extends Record<string, un
|
|
|
145
148
|
export interface DataGridTableStageProps<TRow extends Record<string, unknown>> extends DataGridTableStageSectionedProps<TRow> {
|
|
146
149
|
mode: DataGridTableMode;
|
|
147
150
|
rowHeightMode: "fixed" | "auto";
|
|
151
|
+
layoutMode: DataGridLayoutMode;
|
|
148
152
|
}
|
|
149
153
|
interface DataGridTableStageBindingsSource<TRow extends Record<string, unknown>> extends DataGridTableStageLayoutSection, DataGridTableStageViewportSection, DataGridTableStageColumnsSection, DataGridTableStageRowsSection<TRow>, DataGridTableStageSelectionSection, DataGridTableStageEditingSection<TRow>, DataGridTableStageCellsSection<TRow>, DataGridTableStageInteractionSection<TRow> {
|
|
150
154
|
mode: DataGridTableMode;
|
|
151
155
|
rowHeightMode: "fixed" | "auto";
|
|
156
|
+
layoutMode: DataGridLayoutMode;
|
|
152
157
|
}
|
|
153
158
|
export interface UseDataGridTableStageBindingsOptions<TRow extends Record<string, unknown>> extends Omit<{
|
|
154
159
|
[K in keyof DataGridTableStageBindingsSource<TRow>]: DataGridMaybeRef<DataGridTableStageBindingsSource<TRow>[K]>;
|
|
@@ -4,6 +4,7 @@ export type DataGridTableStageSectionKey = "layout" | "viewport" | "columns" | "
|
|
|
4
4
|
export interface DataGridTableStageContext<TRow extends Record<string, unknown>> {
|
|
5
5
|
mode: Readonly<Ref<DataGridTableStageProps<TRow>["mode"]>>;
|
|
6
6
|
rowHeightMode: Readonly<Ref<DataGridTableStageProps<TRow>["rowHeightMode"]>>;
|
|
7
|
+
layoutMode: Readonly<Ref<DataGridTableStageProps<TRow>["layoutMode"]>>;
|
|
7
8
|
layout: Readonly<Ref<DataGridTableStageProps<TRow>["layout"]>>;
|
|
8
9
|
viewport: Readonly<Ref<DataGridTableStageProps<TRow>["viewport"]>>;
|
|
9
10
|
columns: Readonly<Ref<DataGridTableStageProps<TRow>["columns"]>>;
|
|
@@ -16,6 +17,7 @@ export interface DataGridTableStageContext<TRow extends Record<string, unknown>>
|
|
|
16
17
|
export interface DataGridTableStageContextSource<TRow extends Record<string, unknown>> {
|
|
17
18
|
mode: Ref<DataGridTableStageProps<TRow>["mode"]>;
|
|
18
19
|
rowHeightMode: Ref<DataGridTableStageProps<TRow>["rowHeightMode"]>;
|
|
20
|
+
layoutMode: Ref<DataGridTableStageProps<TRow>["layoutMode"]>;
|
|
19
21
|
layout: Ref<DataGridTableStageProps<TRow>["layout"]>;
|
|
20
22
|
viewport: Ref<DataGridTableStageProps<TRow>["viewport"]>;
|
|
21
23
|
columns: Ref<DataGridTableStageProps<TRow>["columns"]>;
|
|
@@ -34,6 +36,7 @@ export declare function provideDataGridTableStageContext<TRow extends Record<str
|
|
|
34
36
|
export declare function useDataGridTableStageContext<TRow extends Record<string, unknown>>(): DataGridTableStageContext<TRow>;
|
|
35
37
|
export declare function useDataGridTableStageMode<TRow extends Record<string, unknown>>(): Readonly<Ref<import("./dataGridTableStage.types").DataGridTableMode>>;
|
|
36
38
|
export declare function useDataGridTableStageRowHeightMode<TRow extends Record<string, unknown>>(): Readonly<Ref<"fixed" | "auto">>;
|
|
39
|
+
export declare function useDataGridTableStageLayoutMode<TRow extends Record<string, unknown>>(): Readonly<Ref<import("..").DataGridLayoutMode>>;
|
|
37
40
|
export declare function useDataGridTableStageSection<TRow extends Record<string, unknown>, TSectionKey extends DataGridTableStageSectionKey>(sectionKey: TSectionKey): DataGridTableStageContext<TRow>[TSectionKey];
|
|
38
41
|
export declare function useDataGridTableStageLayoutSection<TRow extends Record<string, unknown>>(): Readonly<Ref<import("./dataGridTableStage.types").DataGridTableStageLayoutSection>>;
|
|
39
42
|
export declare function useDataGridTableStageViewportSection<TRow extends Record<string, unknown>>(): Readonly<Ref<import("./dataGridTableStage.types").DataGridTableStageViewportSection>>;
|
|
@@ -3,6 +3,7 @@ import type { DataGridColumnSnapshot, DataGridRowSelectionSnapshot, DataGridSele
|
|
|
3
3
|
import type { DataGridCopyRange } from "@affino/datagrid-vue/advanced";
|
|
4
4
|
import type { DataGridCellEditablePredicate } from "../dataGridEditability";
|
|
5
5
|
import type { DataGridColumnMenuActionOptions, DataGridColumnMenuDisabledReasons, DataGridColumnMenuItemKey, DataGridColumnMenuItemLabels } from "../overlays/dataGridColumnMenu";
|
|
6
|
+
import type { DataGridLayoutMode } from "../config/dataGridLayout";
|
|
6
7
|
import type { DataGridVirtualizationOptions } from "../config/dataGridVirtualization";
|
|
7
8
|
import type { DataGridTableStageContext } from "./dataGridTableStageContext";
|
|
8
9
|
import type { DataGridTableStageHistoryAdapter } from "./useDataGridTableStageHistory";
|
|
@@ -14,6 +15,9 @@ type DataGridTableStageBodyRuntime<TRow extends Record<string, unknown>> = Pick<
|
|
|
14
15
|
};
|
|
15
16
|
export interface UseDataGridTableStageRuntimeOptions<TRow extends Record<string, unknown>> {
|
|
16
17
|
mode: Ref<"base" | "tree" | "pivot" | "worker">;
|
|
18
|
+
layoutMode: Ref<DataGridLayoutMode>;
|
|
19
|
+
minRows: Ref<number | null>;
|
|
20
|
+
maxRows: Ref<number | null>;
|
|
17
21
|
rows: Ref<readonly TRow[]>;
|
|
18
22
|
sourceRows?: Ref<readonly TRow[]>;
|
|
19
23
|
runtime: DataGridTableStageBodyRuntime<TRow>;
|
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.7",
|
|
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-
|
|
38
|
-
"@affino/datagrid-
|
|
39
|
-
"@affino/datagrid-
|
|
37
|
+
"@affino/datagrid-gantt": "0.1.1",
|
|
38
|
+
"@affino/datagrid-vue": "0.3.5",
|
|
39
|
+
"@affino/datagrid-theme": "0.2.2"
|
|
40
40
|
},
|
|
41
41
|
"peerDependencies": {
|
|
42
42
|
"vue": "^3.3.0"
|