@affino/datagrid-vue-app 0.1.40 → 0.1.42
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/DataGrid.d.ts +1 -1
- package/dist/chunks/{DataGridGanttStageEntry-BhNAeUxC.js → DataGridGanttStageEntry-z-xnwnvx.js} +3270 -3191
- package/dist/chunks/{useDataGridAppRowModel-C-OPUq4R.js → useDataGridAppRowModel-BFLtdcfY.js} +1475 -1464
- package/dist/gantt.js +1 -1
- package/dist/host/DataGridDefaultRenderer.d.ts +1 -1
- package/dist/index.js +3 -3
- package/dist/internal.js +2 -2
- package/dist/stage/dataGridChromeCanvasMath.d.ts +15 -0
- package/dist/stage/dataGridTableStage.types.d.ts +5 -0
- package/package.json +3 -3
package/dist/gantt.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { D as t } from "./chunks/DataGridGanttStageEntry-
|
|
1
|
+
import { D as t } from "./chunks/DataGridGanttStageEntry-z-xnwnvx.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,
|
|
@@ -468,6 +468,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
468
468
|
rows: readonly Record<string, unknown>[];
|
|
469
469
|
rowHeightMode: "fixed" | "auto";
|
|
470
470
|
layoutMode: DataGridLayoutMode;
|
|
471
|
+
baseRowHeight: number;
|
|
471
472
|
showRowIndex: boolean;
|
|
472
473
|
rowHover: boolean;
|
|
473
474
|
stripedRows: boolean;
|
|
@@ -477,7 +478,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
477
478
|
customOverlays: readonly DataGridTableStageCustomOverlay[] | undefined;
|
|
478
479
|
rowSelection: boolean;
|
|
479
480
|
gantt: DataGridGanttProp | undefined;
|
|
480
|
-
baseRowHeight: number;
|
|
481
481
|
syncRowSelectionSnapshotFromRuntime: () => void;
|
|
482
482
|
flushRowSelectionSnapshotUpdates: () => void;
|
|
483
483
|
sortModel: readonly DataGridSortState[] | undefined;
|
package/dist/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { defineComponent as je, ref as P, provide as et, computed as m, watch as S, onBeforeUnmount as ge, h as ve, mergeProps as tt, unref as be, toRef as Me } from "vue";
|
|
2
2
|
import { useDataGridRuntime as ot } from "@affino/datagrid-vue";
|
|
3
3
|
import { useDataGridAppSelection as nt, useDataGridAppRowSelection as rt } from "@affino/datagrid-vue/app";
|
|
4
|
-
import { r as lt, g as at, h as it, i as ut, j as st, b as dt, d as ct, c as ft, k as mt, u as yt, D as vt } from "./chunks/useDataGridAppRowModel-
|
|
5
|
-
import { a as Oo, l as Ao } from "./chunks/useDataGridAppRowModel-
|
|
4
|
+
import { r as lt, g as at, h as it, i as ut, j as st, b as dt, d as ct, c as ft, k as mt, u as yt, D as vt } from "./chunks/useDataGridAppRowModel-BFLtdcfY.js";
|
|
5
|
+
import { a as Oo, l as Ao } from "./chunks/useDataGridAppRowModel-BFLtdcfY.js";
|
|
6
6
|
import { r as gt } from "./chunks/dataGridAdvancedFilter-xnME5bRa.js";
|
|
7
|
-
import { r as wt } from "./chunks/DataGridGanttStageEntry-
|
|
7
|
+
import { r as wt } from "./chunks/DataGridGanttStageEntry-z-xnwnvx.js";
|
|
8
8
|
import { applyGridTheme as pt, resolveGridThemeTokens as St, defaultStyleConfig as F, sugarTheme as Fe, industrialNeutralTheme as Ce } from "@affino/datagrid-theme";
|
|
9
9
|
import { d as ht } from "./chunks/dataGridOverlayThemeVars-vzY74EIz.js";
|
|
10
10
|
function co() {
|
package/dist/internal.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
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-
|
|
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-
|
|
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-BFLtdcfY.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-z-xnwnvx.js";
|
|
5
5
|
import { _ as V } from "./chunks/DataGridAdvancedFilterPopover.vue_vue_type_script_setup_true_lang-DxZakgyj.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";
|
|
@@ -1,2 +1,17 @@
|
|
|
1
|
+
export interface DataGridVirtualChromeRowMetric {
|
|
2
|
+
rowIndex: number;
|
|
3
|
+
top: number;
|
|
4
|
+
height: number;
|
|
5
|
+
}
|
|
6
|
+
export interface DataGridVirtualChromeRowMetricsOptions {
|
|
7
|
+
rowStart: number;
|
|
8
|
+
rowEnd: number;
|
|
9
|
+
rowTotal: number;
|
|
10
|
+
topSpacerHeight: number;
|
|
11
|
+
baseRowHeight: number;
|
|
12
|
+
resolveRowHeight?: (rowIndex: number) => number;
|
|
13
|
+
resolveRowOffset?: (rowIndex: number) => number;
|
|
14
|
+
}
|
|
15
|
+
export declare function resolveDataGridVirtualChromeRowMetrics(options: DataGridVirtualChromeRowMetricsOptions): readonly DataGridVirtualChromeRowMetric[];
|
|
1
16
|
export declare function resolveDeviceAlignedCanvasLineWidth(cssLineWidth: number, devicePixelRatio: number): number;
|
|
2
17
|
export declare function resolveDeviceAlignedCanvasStrokeCenter(boundaryPosition: number, cssLineWidth: number, devicePixelRatio: number): number;
|
|
@@ -37,6 +37,11 @@ export interface DataGridTableStageViewportSection {
|
|
|
37
37
|
topSpacerHeight: number;
|
|
38
38
|
bottomSpacerHeight: number;
|
|
39
39
|
viewportRowStart: number;
|
|
40
|
+
viewportRowEnd?: number;
|
|
41
|
+
virtualRowTotal?: number;
|
|
42
|
+
baseRowHeight?: number;
|
|
43
|
+
resolveRowHeight?: (rowIndex: number) => number;
|
|
44
|
+
resolveRowOffset?: (rowIndex: number) => number;
|
|
40
45
|
columnWindowStart: number;
|
|
41
46
|
leftColumnSpacerWidth: number;
|
|
42
47
|
rightColumnSpacerWidth: number;
|
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.42",
|
|
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-chrome": "0.1.1",
|
|
45
44
|
"@affino/datagrid-gantt": "0.1.2",
|
|
46
45
|
"@affino/datagrid-theme": "0.2.2",
|
|
47
|
-
"@affino/datagrid-vue": "0.3.
|
|
46
|
+
"@affino/datagrid-vue": "0.3.29",
|
|
47
|
+
"@affino/datagrid-chrome": "0.1.1"
|
|
48
48
|
},
|
|
49
49
|
"peerDependencies": {
|
|
50
50
|
"vue": "^3.3.0"
|