@affino/datagrid-vue-app 0.1.44 → 0.1.45
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 +28 -2
- package/dist/DataGridTableStage.vue.d.ts +27 -0
- package/dist/chunks/{DataGridGanttStageEntry-z-xnwnvx.js → DataGridGanttStageEntry-CKjSVRMy.js} +3549 -3410
- package/dist/chunks/useDataGridAppRowModel-BoU8RlUc.js +4742 -0
- package/dist/gantt.js +1 -1
- package/dist/host/DataGridDefaultRenderer.d.ts +20 -2
- package/dist/index.js +90 -78
- package/dist/internal.js +2 -2
- package/dist/stage/DataGridTableStage.vue.d.ts +27 -0
- package/dist/stage/DataGridTableStageCenterPane.vue.d.ts +46 -1
- package/dist/stage/dataGridTableStage.types.d.ts +20 -0
- package/dist/stage/useDataGridTableStageRuntime.d.ts +4 -1
- package/package.json +2 -2
- package/dist/chunks/useDataGridAppRowModel-BjIIJmYg.js +0 -4586
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-CKjSVRMy.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,
|
|
@@ -19,7 +19,7 @@ import type { DataGridPlaceholderRowsOptions } from "../config/dataGridPlacehold
|
|
|
19
19
|
import type { DataGridVirtualizationOptions } from "../config/dataGridVirtualization";
|
|
20
20
|
import type { DataGridHistoryController, DataGridResolvedHistoryOptions } from "../dataGridHistory";
|
|
21
21
|
import type { DataGridStructuralRowActionHandler, DataGridStructuralRowActionId } from "../dataGridStructuralRowActions";
|
|
22
|
-
import type { DataGridTableStageCellClass, DataGridTableStageCustomOverlay } from "../stage/dataGridTableStage.types";
|
|
22
|
+
import type { DataGridTableStageCenterPaneDiagnostics, DataGridTableStageCellClass, DataGridTableStageCustomOverlay } from "../stage/dataGridTableStage.types";
|
|
23
23
|
type DataGridMode = "base" | "tree" | "pivot" | "worker";
|
|
24
24
|
type DataGridDefaultRendererRuntime = {
|
|
25
25
|
api: UseDataGridRuntimeResult<Record<string, unknown>>["api"];
|
|
@@ -64,10 +64,18 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
64
64
|
type: PropType<((message: string) => void) | undefined>;
|
|
65
65
|
default: undefined;
|
|
66
66
|
};
|
|
67
|
+
reportCenterPaneDiagnostics: {
|
|
68
|
+
type: PropType<((payload: DataGridTableStageCenterPaneDiagnostics) => void) | undefined>;
|
|
69
|
+
default: undefined;
|
|
70
|
+
};
|
|
67
71
|
reportFillPlumbingState: {
|
|
68
72
|
type: PropType<((layer: string, present: boolean) => void) | undefined>;
|
|
69
73
|
default: undefined;
|
|
70
74
|
};
|
|
75
|
+
reportFillPlumbingDetail: {
|
|
76
|
+
type: PropType<((layer: string, value: string) => void) | undefined>;
|
|
77
|
+
default: undefined;
|
|
78
|
+
};
|
|
71
79
|
selectionSnapshot: {
|
|
72
80
|
type: PropType<Ref<import("@affino/datagrid-vue").DataGridSelectionSnapshot | null>>;
|
|
73
81
|
required: true;
|
|
@@ -307,10 +315,18 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
307
315
|
type: PropType<((message: string) => void) | undefined>;
|
|
308
316
|
default: undefined;
|
|
309
317
|
};
|
|
318
|
+
reportCenterPaneDiagnostics: {
|
|
319
|
+
type: PropType<((payload: DataGridTableStageCenterPaneDiagnostics) => void) | undefined>;
|
|
320
|
+
default: undefined;
|
|
321
|
+
};
|
|
310
322
|
reportFillPlumbingState: {
|
|
311
323
|
type: PropType<((layer: string, present: boolean) => void) | undefined>;
|
|
312
324
|
default: undefined;
|
|
313
325
|
};
|
|
326
|
+
reportFillPlumbingDetail: {
|
|
327
|
+
type: PropType<((layer: string, value: string) => void) | undefined>;
|
|
328
|
+
default: undefined;
|
|
329
|
+
};
|
|
314
330
|
selectionSnapshot: {
|
|
315
331
|
type: PropType<Ref<import("@affino/datagrid-vue").DataGridSelectionSnapshot | null>>;
|
|
316
332
|
required: true;
|
|
@@ -532,10 +548,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
532
548
|
cellStyle: ((row: DataGridRowNode<Record<string, unknown>>, rowIndex: number, column: DataGridColumnSnapshot, columnIndex: number) => CSSProperties | null | undefined) | undefined;
|
|
533
549
|
isCellEditable: DataGridCellEditablePredicate<Record<string, unknown>> | undefined;
|
|
534
550
|
customOverlays: readonly DataGridTableStageCustomOverlay[] | undefined;
|
|
551
|
+
reportCenterPaneDiagnostics: ((payload: DataGridTableStageCenterPaneDiagnostics) => void) | undefined;
|
|
552
|
+
reportFillPlumbingState: ((layer: string, present: boolean) => void) | undefined;
|
|
553
|
+
reportFillPlumbingDetail: ((layer: string, value: string) => void) | undefined;
|
|
535
554
|
rowSelection: boolean;
|
|
536
555
|
gantt: DataGridGanttProp | undefined;
|
|
537
556
|
reportFillWarning: ((message: string) => void) | undefined;
|
|
538
|
-
reportFillPlumbingState: ((layer: string, present: boolean) => void) | undefined;
|
|
539
557
|
onCellEdit: ((payload: {
|
|
540
558
|
rowId: string | number;
|
|
541
559
|
columnKey: string;
|
package/dist/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { defineComponent as je, ref as
|
|
1
|
+
import { defineComponent as je, ref as G, provide as tt, computed as m, watch as S, onBeforeUnmount as pe, h as ge, mergeProps as ot, unref as Me, toRef as Ce } from "vue";
|
|
2
2
|
import { useDataGridRuntime as nt } from "@affino/datagrid-vue";
|
|
3
3
|
import { useDataGridAppSelection as rt, useDataGridAppRowSelection as lt } from "@affino/datagrid-vue/app";
|
|
4
|
-
import { r as at, g as it, h as ut, i as st, j as dt, b as ct, d as ft, c as mt, k as yt, u as vt, D as gt } from "./chunks/useDataGridAppRowModel-
|
|
5
|
-
import { a as Ao, l as Bo } from "./chunks/useDataGridAppRowModel-
|
|
6
|
-
import { r as
|
|
7
|
-
import { r as
|
|
4
|
+
import { r as at, g as it, h as ut, i as st, j as dt, b as ct, d as ft, c as mt, k as yt, u as vt, D as gt } from "./chunks/useDataGridAppRowModel-BoU8RlUc.js";
|
|
5
|
+
import { a as Ao, l as Bo } from "./chunks/useDataGridAppRowModel-BoU8RlUc.js";
|
|
6
|
+
import { r as pt } from "./chunks/dataGridAdvancedFilter-xnME5bRa.js";
|
|
7
|
+
import { r as wt } from "./chunks/DataGridGanttStageEntry-CKjSVRMy.js";
|
|
8
8
|
import { applyGridTheme as St, resolveGridThemeTokens as ht, defaultStyleConfig as j, sugarTheme as Ie, industrialNeutralTheme as Oe } from "@affino/datagrid-theme";
|
|
9
9
|
import { d as Rt } from "./chunks/dataGridOverlayThemeVars-vzY74EIz.js";
|
|
10
10
|
function fo() {
|
|
@@ -64,7 +64,7 @@ function Ae(e, t) {
|
|
|
64
64
|
function Be(e, t) {
|
|
65
65
|
return Number.isFinite(e) ? Math.max(0, Math.trunc(e)) : t;
|
|
66
66
|
}
|
|
67
|
-
function
|
|
67
|
+
function De(e, t) {
|
|
68
68
|
return Number.isFinite(e) ? Math.max(1, Math.trunc(e)) : t;
|
|
69
69
|
}
|
|
70
70
|
function Bt(e) {
|
|
@@ -82,23 +82,23 @@ function Bt(e) {
|
|
|
82
82
|
return e;
|
|
83
83
|
}
|
|
84
84
|
}
|
|
85
|
-
function
|
|
85
|
+
function Dt(e, t) {
|
|
86
86
|
return t === !0 || t && typeof t == "object" ? "pagination" : e ?? "virtualization";
|
|
87
87
|
}
|
|
88
|
-
function
|
|
88
|
+
function Pt(e, t, l, o) {
|
|
89
89
|
if (t !== "pagination")
|
|
90
90
|
return null;
|
|
91
|
-
const u = 100, a =
|
|
91
|
+
const u = 100, a = De(l, u), v = Be(o, 0);
|
|
92
92
|
return e === !0 || e === !1 || e == null ? {
|
|
93
93
|
pageSize: a,
|
|
94
94
|
currentPage: v
|
|
95
95
|
} : {
|
|
96
|
-
pageSize:
|
|
96
|
+
pageSize: De(l ?? e.pageSize, u),
|
|
97
97
|
currentPage: Be(o ?? e.currentPage, 0)
|
|
98
98
|
};
|
|
99
99
|
}
|
|
100
100
|
const me = "Find / replace";
|
|
101
|
-
function
|
|
101
|
+
function Gt(e) {
|
|
102
102
|
return typeof e == "boolean" ? {
|
|
103
103
|
enabled: e,
|
|
104
104
|
buttonLabel: me
|
|
@@ -116,13 +116,13 @@ const Ft = "all", Ke = {
|
|
|
116
116
|
columns: "columns",
|
|
117
117
|
none: "none"
|
|
118
118
|
};
|
|
119
|
-
function
|
|
119
|
+
function Pe(e) {
|
|
120
120
|
return e === "rows" || e === "columns" || e === "none" || e === "all" ? e : Ft;
|
|
121
121
|
}
|
|
122
122
|
function xt(e, t) {
|
|
123
123
|
return e === "columns" || e === "none" ? e : Ke[t];
|
|
124
124
|
}
|
|
125
|
-
function
|
|
125
|
+
function Ge(e, t) {
|
|
126
126
|
return e !== "none" || t === "columns";
|
|
127
127
|
}
|
|
128
128
|
function Fe(e) {
|
|
@@ -138,18 +138,18 @@ function Fe(e) {
|
|
|
138
138
|
}
|
|
139
139
|
function jt(e) {
|
|
140
140
|
if (typeof e == "string") {
|
|
141
|
-
const o =
|
|
141
|
+
const o = Pe(e), u = Ke[o];
|
|
142
142
|
return Fe({
|
|
143
143
|
body: o,
|
|
144
144
|
header: u,
|
|
145
|
-
pinnedSeparators:
|
|
145
|
+
pinnedSeparators: Ge(o, u)
|
|
146
146
|
});
|
|
147
147
|
}
|
|
148
|
-
const t =
|
|
148
|
+
const t = Pe(e?.body), l = xt(e?.header, t);
|
|
149
149
|
return Fe({
|
|
150
150
|
body: t,
|
|
151
151
|
header: l,
|
|
152
|
-
pinnedSeparators: typeof e?.pinnedSeparators == "boolean" ? e.pinnedSeparators :
|
|
152
|
+
pinnedSeparators: typeof e?.pinnedSeparators == "boolean" ? e.pinnedSeparators : Ge(t, l)
|
|
153
153
|
});
|
|
154
154
|
}
|
|
155
155
|
function xe(e) {
|
|
@@ -328,7 +328,7 @@ const Wt = je({
|
|
|
328
328
|
"row-selection-change": (e) => !0
|
|
329
329
|
},
|
|
330
330
|
setup(e, { attrs: t, slots: l, emit: o, expose: u }) {
|
|
331
|
-
const a =
|
|
331
|
+
const a = G(null);
|
|
332
332
|
tt(Rt, a);
|
|
333
333
|
let v = null;
|
|
334
334
|
const s = nt({
|
|
@@ -339,7 +339,7 @@ const Wt = je({
|
|
|
339
339
|
services: e.services,
|
|
340
340
|
startupOrder: e.startupOrder,
|
|
341
341
|
autoStart: e.autoStart
|
|
342
|
-
}),
|
|
342
|
+
}), w = s, h = {
|
|
343
343
|
api: s.api,
|
|
344
344
|
syncBodyRowsInRange: s.syncBodyRowsInRange,
|
|
345
345
|
setViewportRange: s.setViewportRange,
|
|
@@ -348,8 +348,8 @@ const Wt = je({
|
|
|
348
348
|
rowPartition: s.rowPartition,
|
|
349
349
|
virtualWindow: s.virtualWindow,
|
|
350
350
|
columnSnapshot: s.columnSnapshot,
|
|
351
|
-
getBodyRowAtIndex:
|
|
352
|
-
resolveBodyRowIndexById:
|
|
351
|
+
getBodyRowAtIndex: w.getBodyRowAtIndex,
|
|
352
|
+
resolveBodyRowIndexById: w.resolveBodyRowIndexById
|
|
353
353
|
}, A = () => {
|
|
354
354
|
if (e.renderMode === "pagination") {
|
|
355
355
|
const f = e.pagination ?? { pageSize: 100, currentPage: 0 };
|
|
@@ -394,10 +394,10 @@ const Wt = je({
|
|
|
394
394
|
}), F = s.api.events.on("row-selection:changed", (f) => {
|
|
395
395
|
o("row-selection-change", f);
|
|
396
396
|
});
|
|
397
|
-
|
|
397
|
+
pe(() => {
|
|
398
398
|
b(), R(), F(), v?.disconnect(), v = null;
|
|
399
399
|
});
|
|
400
|
-
const
|
|
400
|
+
const P = m(() => {
|
|
401
401
|
const f = s.virtualWindow.value;
|
|
402
402
|
return {
|
|
403
403
|
...f ?? {},
|
|
@@ -415,8 +415,8 @@ const Wt = je({
|
|
|
415
415
|
rowPartition: s.rowPartition,
|
|
416
416
|
setRows: s.setRows,
|
|
417
417
|
syncBodyRowsInRange: s.syncBodyRowsInRange,
|
|
418
|
-
getBodyRowAtIndex:
|
|
419
|
-
resolveBodyRowIndexById:
|
|
418
|
+
getBodyRowAtIndex: w.getBodyRowAtIndex,
|
|
419
|
+
resolveBodyRowIndexById: w.resolveBodyRowIndexById,
|
|
420
420
|
virtualWindow: s.virtualWindow,
|
|
421
421
|
start: s.start,
|
|
422
422
|
stop: s.stop
|
|
@@ -447,9 +447,9 @@ const Wt = je({
|
|
|
447
447
|
rowPartition: s.rowPartition.value,
|
|
448
448
|
setRows: s.setRows,
|
|
449
449
|
syncBodyRowsInRange: s.syncBodyRowsInRange,
|
|
450
|
-
getBodyRowAtIndex:
|
|
451
|
-
resolveBodyRowIndexById:
|
|
452
|
-
virtualWindow:
|
|
450
|
+
getBodyRowAtIndex: w.getBodyRowAtIndex,
|
|
451
|
+
resolveBodyRowIndexById: w.resolveBodyRowIndexById,
|
|
452
|
+
virtualWindow: P.value
|
|
453
453
|
}) ?? []
|
|
454
454
|
);
|
|
455
455
|
}
|
|
@@ -471,13 +471,13 @@ function Tt(e) {
|
|
|
471
471
|
} : null;
|
|
472
472
|
}
|
|
473
473
|
function _t(e) {
|
|
474
|
-
let t = null, l = null, o = !1, u = null, a = null, v = null, s = null,
|
|
474
|
+
let t = null, l = null, o = !1, u = null, a = null, v = null, s = null, w = null, h = null, A = null, b = null, R = null;
|
|
475
475
|
const F = () => {
|
|
476
476
|
t?.(), l?.(), t = null, l = null;
|
|
477
|
-
},
|
|
477
|
+
}, P = () => {
|
|
478
478
|
const n = e.gridRef.value;
|
|
479
479
|
return !n || n.api.lifecycle.state === "disposed" ? null : n;
|
|
480
|
-
}, f = () =>
|
|
480
|
+
}, f = () => P()?.api ?? null, x = () => {
|
|
481
481
|
const n = f()?.columns;
|
|
482
482
|
if (!n)
|
|
483
483
|
return null;
|
|
@@ -502,7 +502,7 @@ function _t(e) {
|
|
|
502
502
|
}
|
|
503
503
|
if (d) {
|
|
504
504
|
const i = Tt(d.rows.getSnapshot().groupBy), y = O(i);
|
|
505
|
-
y !==
|
|
505
|
+
y !== w && (w = y, e.emit.groupBy(i));
|
|
506
506
|
const C = d.state.get(), M = O(C);
|
|
507
507
|
A = M, M !== s && (s = M, e.emit.state(C));
|
|
508
508
|
}
|
|
@@ -634,7 +634,7 @@ function _t(e) {
|
|
|
634
634
|
const n = f();
|
|
635
635
|
n && (n.view.setRowHeightMode(e.props.rowHeightMode), n.view.setBaseRowHeight(Math.max(24, Math.trunc(e.props.baseRowHeight))));
|
|
636
636
|
}, N = () => {
|
|
637
|
-
const n =
|
|
637
|
+
const n = P();
|
|
638
638
|
n && (u = null, a = null, F(), t = n.rowModel.subscribe(() => {
|
|
639
639
|
g();
|
|
640
640
|
}), l = n.columnModel.subscribe(() => {
|
|
@@ -723,7 +723,7 @@ function _t(e) {
|
|
|
723
723
|
const Y = () => {
|
|
724
724
|
F();
|
|
725
725
|
};
|
|
726
|
-
return
|
|
726
|
+
return pe(() => {
|
|
727
727
|
Y();
|
|
728
728
|
}), {
|
|
729
729
|
emitSnapshotUpdates: g,
|
|
@@ -785,10 +785,10 @@ function Jt(e) {
|
|
|
785
785
|
function go() {
|
|
786
786
|
return (e) => e;
|
|
787
787
|
}
|
|
788
|
-
function
|
|
788
|
+
function po() {
|
|
789
789
|
return (e) => e;
|
|
790
790
|
}
|
|
791
|
-
function
|
|
791
|
+
function wo() {
|
|
792
792
|
return (e) => e;
|
|
793
793
|
}
|
|
794
794
|
function So() {
|
|
@@ -840,8 +840,8 @@ function $t(e, t) {
|
|
|
840
840
|
const s = typeof a.field == "string" ? a.field.trim() : "";
|
|
841
841
|
if (!s)
|
|
842
842
|
return;
|
|
843
|
-
const
|
|
844
|
-
return typeof
|
|
843
|
+
const w = v[s];
|
|
844
|
+
return typeof w < "u" ? w : Yt(v, s);
|
|
845
845
|
};
|
|
846
846
|
}
|
|
847
847
|
function Qt() {
|
|
@@ -1202,9 +1202,17 @@ const oo = {
|
|
|
1202
1202
|
type: Function,
|
|
1203
1203
|
default: void 0
|
|
1204
1204
|
},
|
|
1205
|
+
reportCenterPaneDiagnostics: {
|
|
1206
|
+
type: Function,
|
|
1207
|
+
default: void 0
|
|
1208
|
+
},
|
|
1205
1209
|
reportFillPlumbingState: {
|
|
1206
1210
|
type: Function,
|
|
1207
1211
|
default: void 0
|
|
1212
|
+
},
|
|
1213
|
+
reportFillPlumbingDetail: {
|
|
1214
|
+
type: Function,
|
|
1215
|
+
default: void 0
|
|
1208
1216
|
}
|
|
1209
1217
|
}, Le = je({
|
|
1210
1218
|
name: "DataGrid",
|
|
@@ -1229,14 +1237,14 @@ const oo = {
|
|
|
1229
1237
|
ready: (e) => !0
|
|
1230
1238
|
},
|
|
1231
1239
|
setup(e, { attrs: t, slots: l, emit: o, expose: u }) {
|
|
1232
|
-
const a =
|
|
1240
|
+
const a = G(null), v = qt(), s = G(null), w = G(null), h = G([]);
|
|
1233
1241
|
let A = null, b = !1;
|
|
1234
|
-
const R =
|
|
1242
|
+
const R = G(e.viewMode === "gantt" ? "gantt" : "table"), F = G(e.state ?? null), P = m(() => Jt(e.history)), f = m(() => at(e.chrome)), x = m(() => Dt(e.renderMode, e.pagination)), g = m(() => Pt(
|
|
1235
1243
|
e.pagination,
|
|
1236
1244
|
x.value,
|
|
1237
1245
|
e.pageSize,
|
|
1238
1246
|
e.currentPage
|
|
1239
|
-
)), L = m(() => it(e.columnMenu)), Z = m(() => ut(e.cellMenu)), ee = m(() => st(e.rowIndexMenu)), z = m(() => dt(e.columnLayout)), E = m(() => ct(e.columnReorder)), U = m(() => Et(e.aggregations)), I = m(() =>
|
|
1247
|
+
)), L = m(() => it(e.columnMenu)), Z = m(() => ut(e.cellMenu)), ee = m(() => st(e.rowIndexMenu)), z = m(() => dt(e.columnLayout)), E = m(() => ct(e.columnReorder)), U = m(() => Et(e.aggregations)), I = m(() => pt(e.advancedFilter)), V = m(() => Gt(e.findReplace)), W = m(() => jt(e.gridLines)), K = m(() => Bt(e.groupBy)), B = m(() => e.state ?? F.value), T = m(() => e.sortModel !== void 0 ? e.sortModel : B.value?.rows?.snapshot?.sortModel), _ = m(() => e.filterModel !== void 0 ? e.filterModel : B.value?.rows?.snapshot?.filterModel ?? null), N = m(() => e.groupBy !== void 0 ? K.value ?? null : B.value?.rows?.snapshot?.groupBy ?? null), q = m(() => e.pivotModel !== void 0 ? e.pivotModel : B.value?.rows?.snapshot?.pivotModel ?? null), te = m(() => Vt(e.virtualization, x.value)), H = m(() => It(e.layoutMode, e.minRows, e.maxRows)), oe = m(() => wt(e.placeholderRows)), ne = m(() => ft(e.rowReorder)), J = m(() => {
|
|
1240
1248
|
const r = e.clientRowModelOptions?.readFilterCell;
|
|
1241
1249
|
return $t(
|
|
1242
1250
|
e.columns,
|
|
@@ -1311,11 +1319,11 @@ const oo = {
|
|
|
1311
1319
|
const c = a.value?.runtime;
|
|
1312
1320
|
if (!c)
|
|
1313
1321
|
return null;
|
|
1314
|
-
const
|
|
1322
|
+
const D = Me(c.rowPartition), ce = D.bodyRowCount;
|
|
1315
1323
|
if (r < ce)
|
|
1316
1324
|
return c.getBodyRowAtIndex(r);
|
|
1317
1325
|
const et = r - ce;
|
|
1318
|
-
return
|
|
1326
|
+
return D.pinnedBottomRows[et] ?? null;
|
|
1319
1327
|
}, C = {
|
|
1320
1328
|
mode: m(() => n.value),
|
|
1321
1329
|
resolveRuntime: () => a.value,
|
|
@@ -1334,10 +1342,10 @@ const oo = {
|
|
|
1334
1342
|
rowSelectionSnapshot: ae,
|
|
1335
1343
|
syncRowSelectionSnapshotFromRuntime: ie,
|
|
1336
1344
|
reconcileRowSelectionFromRuntime: Te,
|
|
1337
|
-
selectionService:
|
|
1345
|
+
selectionService: we
|
|
1338
1346
|
} = lt({
|
|
1339
1347
|
resolveRuntime: () => a.value
|
|
1340
|
-
}), _e = m(() => e.rowSelection ?
|
|
1348
|
+
}), _e = m(() => e.rowSelection ? we : Qt()), ke = m(() => ({
|
|
1341
1349
|
...e.services ?? {},
|
|
1342
1350
|
selection: Xt({
|
|
1343
1351
|
userSelectionService: e.services?.selection,
|
|
@@ -1352,9 +1360,9 @@ const oo = {
|
|
|
1352
1360
|
rowModel: Ce(e, "rowModel"),
|
|
1353
1361
|
clientRowModelOptions: k,
|
|
1354
1362
|
onOwnedRowModelRecreated: () => {
|
|
1355
|
-
|
|
1363
|
+
p.dispose();
|
|
1356
1364
|
}
|
|
1357
|
-
}),
|
|
1365
|
+
}), p = _t({
|
|
1358
1366
|
gridRef: a,
|
|
1359
1367
|
props: Y,
|
|
1360
1368
|
emit: {
|
|
@@ -1373,7 +1381,7 @@ const oo = {
|
|
|
1373
1381
|
})
|
|
1374
1382
|
}
|
|
1375
1383
|
}), Ne = (r) => {
|
|
1376
|
-
Te(), o("cell-change", r),
|
|
1384
|
+
Te(), o("cell-change", r), p.emitSnapshotUpdates();
|
|
1377
1385
|
}, se = (r) => {
|
|
1378
1386
|
o("cell-edit", r);
|
|
1379
1387
|
}, qe = (r) => {
|
|
@@ -1381,7 +1389,7 @@ const oo = {
|
|
|
1381
1389
|
}, Je = (r) => {
|
|
1382
1390
|
o("row-selection-change", r);
|
|
1383
1391
|
}, Se = () => {
|
|
1384
|
-
|
|
1392
|
+
p.emitSnapshotUpdates();
|
|
1385
1393
|
};
|
|
1386
1394
|
S(
|
|
1387
1395
|
ae,
|
|
@@ -1394,14 +1402,14 @@ const oo = {
|
|
|
1394
1402
|
([r, c]) => {
|
|
1395
1403
|
if (r) {
|
|
1396
1404
|
if (c !== void 0) {
|
|
1397
|
-
const
|
|
1398
|
-
Zt(ae.value, c) || (c ?
|
|
1405
|
+
const D = a.value?.api.rowSelection;
|
|
1406
|
+
Zt(ae.value, c) || (c ? D?.setSnapshot(c) : D?.clear(), ie());
|
|
1399
1407
|
return;
|
|
1400
1408
|
}
|
|
1401
1409
|
ie();
|
|
1402
1410
|
return;
|
|
1403
1411
|
}
|
|
1404
|
-
|
|
1412
|
+
we.clearRowSelection?.();
|
|
1405
1413
|
},
|
|
1406
1414
|
{ immediate: !0 }
|
|
1407
1415
|
), S(
|
|
@@ -1417,7 +1425,7 @@ const oo = {
|
|
|
1417
1425
|
}, Ye = (r) => {
|
|
1418
1426
|
s.value = r;
|
|
1419
1427
|
}, Re = (r) => {
|
|
1420
|
-
|
|
1428
|
+
w.value = r;
|
|
1421
1429
|
}, $e = (r) => {
|
|
1422
1430
|
to(h.value, r) || (h.value = r, A = r, !b && (b = !0, Promise.resolve().then(() => {
|
|
1423
1431
|
b = !1;
|
|
@@ -1425,8 +1433,8 @@ const oo = {
|
|
|
1425
1433
|
A = null, c && o("toolbar-modules-change", c);
|
|
1426
1434
|
})));
|
|
1427
1435
|
}, de = m(() => {
|
|
1428
|
-
const r =
|
|
1429
|
-
return !
|
|
1436
|
+
const r = P.value.adapter;
|
|
1437
|
+
return !P.value.enabled || !r ? v : {
|
|
1430
1438
|
canUndo: () => r.canUndo(),
|
|
1431
1439
|
canRedo: () => r.canRedo(),
|
|
1432
1440
|
runHistoryAction: (c) => r.runHistoryAction(c)
|
|
@@ -1436,17 +1444,17 @@ const oo = {
|
|
|
1436
1444
|
canRedo: () => (s.value ?? de.value).canRedo(),
|
|
1437
1445
|
runHistoryAction: (r) => (s.value ?? de.value).runHistoryAction(r)
|
|
1438
1446
|
}, Qe = () => {
|
|
1439
|
-
const r =
|
|
1447
|
+
const r = p.getState();
|
|
1440
1448
|
return r ? X({
|
|
1441
1449
|
state: r,
|
|
1442
1450
|
viewMode: R.value
|
|
1443
1451
|
}) : null;
|
|
1444
|
-
}, Xe = (r, c) => He(r,
|
|
1445
|
-
const
|
|
1446
|
-
return
|
|
1452
|
+
}, Xe = (r, c) => He(r, p.migrateState, c), Ze = (r, c) => {
|
|
1453
|
+
const D = X(r);
|
|
1454
|
+
return p.applyState(D.state, c) ? (D.viewMode && he(D.viewMode), !0) : !1;
|
|
1447
1455
|
};
|
|
1448
|
-
return
|
|
1449
|
-
|
|
1456
|
+
return pe(() => {
|
|
1457
|
+
p.dispose(), Re(null);
|
|
1450
1458
|
}), u({
|
|
1451
1459
|
grid: a,
|
|
1452
1460
|
rowModel: ue,
|
|
@@ -1457,10 +1465,10 @@ const oo = {
|
|
|
1457
1465
|
getApi: () => a.value?.api ?? null,
|
|
1458
1466
|
getRuntime: () => a.value?.runtime ?? null,
|
|
1459
1467
|
getCore: () => a.value?.core ?? null,
|
|
1460
|
-
getColumnState: () =>
|
|
1468
|
+
getColumnState: () => p.getColumnState(),
|
|
1461
1469
|
getColumnSnapshot: () => a.value?.api.columns.getSnapshot() ?? null,
|
|
1462
1470
|
getSelectionAggregatesLabel: () => We.value,
|
|
1463
|
-
runStructuralRowAction: (r, c) =>
|
|
1471
|
+
runStructuralRowAction: (r, c) => w.value?.(r, c) ?? Promise.resolve(!1),
|
|
1464
1472
|
getSelectionSummary: () => {
|
|
1465
1473
|
const r = a.value?.api.selection.summarize;
|
|
1466
1474
|
if (!r)
|
|
@@ -1475,15 +1483,15 @@ const oo = {
|
|
|
1475
1483
|
getSavedView: Qe,
|
|
1476
1484
|
migrateSavedView: Xe,
|
|
1477
1485
|
applySavedView: Ze,
|
|
1478
|
-
applyColumnState:
|
|
1479
|
-
getState:
|
|
1480
|
-
migrateState:
|
|
1481
|
-
applyState:
|
|
1482
|
-
exportPivotLayout:
|
|
1483
|
-
exportPivotInterop:
|
|
1484
|
-
importPivotLayout:
|
|
1485
|
-
expandAllGroups:
|
|
1486
|
-
collapseAllGroups:
|
|
1486
|
+
applyColumnState: p.applyColumnState,
|
|
1487
|
+
getState: p.getState,
|
|
1488
|
+
migrateState: p.migrateState,
|
|
1489
|
+
applyState: p.applyState,
|
|
1490
|
+
exportPivotLayout: p.exportPivotLayout,
|
|
1491
|
+
exportPivotInterop: p.exportPivotInterop,
|
|
1492
|
+
importPivotLayout: p.importPivotLayout,
|
|
1493
|
+
expandAllGroups: p.expandAllGroups,
|
|
1494
|
+
collapseAllGroups: p.collapseAllGroups,
|
|
1487
1495
|
insertRowsAt: (r, c) => a.value?.api.rows.insertDataAt(r, c) ?? !1,
|
|
1488
1496
|
insertRowBefore: (r, c) => a.value?.api.rows.insertDataBefore(r, c) ?? !1,
|
|
1489
1497
|
insertRowAfter: (r, c) => a.value?.api.rows.insertDataAfter(r, c) ?? !1,
|
|
@@ -1536,7 +1544,7 @@ const oo = {
|
|
|
1536
1544
|
rowReorder: ne.value,
|
|
1537
1545
|
viewMode: R.value,
|
|
1538
1546
|
gantt: e.gantt,
|
|
1539
|
-
history:
|
|
1547
|
+
history: P.value,
|
|
1540
1548
|
chrome: f.value,
|
|
1541
1549
|
registerHistoryController: Ye,
|
|
1542
1550
|
registerStructuralRowActionRunner: Re,
|
|
@@ -1576,7 +1584,9 @@ const oo = {
|
|
|
1576
1584
|
runtimeRowModel: c.rowModel,
|
|
1577
1585
|
onCellEdit: se,
|
|
1578
1586
|
reportFillWarning: e.reportFillWarning,
|
|
1579
|
-
|
|
1587
|
+
reportCenterPaneDiagnostics: e.reportCenterPaneDiagnostics,
|
|
1588
|
+
reportFillPlumbingState: e.reportFillPlumbingState,
|
|
1589
|
+
reportFillPlumbingDetail: e.reportFillPlumbingDetail
|
|
1580
1590
|
}
|
|
1581
1591
|
})
|
|
1582
1592
|
} : {
|
|
@@ -1586,7 +1596,9 @@ const oo = {
|
|
|
1586
1596
|
runtimeRowModel: c.rowModel,
|
|
1587
1597
|
onCellEdit: se,
|
|
1588
1598
|
reportFillWarning: e.reportFillWarning,
|
|
1589
|
-
|
|
1599
|
+
reportCenterPaneDiagnostics: e.reportCenterPaneDiagnostics,
|
|
1600
|
+
reportFillPlumbingState: e.reportFillPlumbingState,
|
|
1601
|
+
reportFillPlumbingDetail: e.reportFillPlumbingDetail
|
|
1590
1602
|
})
|
|
1591
1603
|
}
|
|
1592
1604
|
);
|
|
@@ -1594,7 +1606,7 @@ const oo = {
|
|
|
1594
1606
|
}
|
|
1595
1607
|
});
|
|
1596
1608
|
function Ro() {
|
|
1597
|
-
return
|
|
1609
|
+
return G(null);
|
|
1598
1610
|
}
|
|
1599
1611
|
function bo() {
|
|
1600
1612
|
return Le;
|
|
@@ -1609,8 +1621,8 @@ export {
|
|
|
1609
1621
|
ho as defineDataGridCellStyleResolver,
|
|
1610
1622
|
Bo as defineDataGridColumns,
|
|
1611
1623
|
bo as defineDataGridComponent,
|
|
1612
|
-
|
|
1613
|
-
|
|
1624
|
+
po as defineDataGridFilterCellReader,
|
|
1625
|
+
wo as defineDataGridFilterCellStyleReader,
|
|
1614
1626
|
go as defineDataGridSelectionCellReader,
|
|
1615
1627
|
fo as defineDataGridStructuralRowActionHandler,
|
|
1616
1628
|
He as migrateDataGridSavedView,
|
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-BoU8RlUc.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-CKjSVRMy.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";
|
|
@@ -18,6 +18,14 @@ declare const __VLS_export: import("vue").DefineComponent<{
|
|
|
18
18
|
type: PropType<DataGridTableStageProps<Record<string, unknown>>["chromeSignature"]>;
|
|
19
19
|
default: string;
|
|
20
20
|
};
|
|
21
|
+
reportFillPlumbingState: {
|
|
22
|
+
type: PropType<DataGridTableStageProps<Record<string, unknown>>["reportFillPlumbingState"]>;
|
|
23
|
+
default: undefined;
|
|
24
|
+
};
|
|
25
|
+
reportFillPlumbingDetail: {
|
|
26
|
+
type: PropType<DataGridTableStageProps<Record<string, unknown>>["reportFillPlumbingDetail"]>;
|
|
27
|
+
default: undefined;
|
|
28
|
+
};
|
|
21
29
|
layout: {
|
|
22
30
|
type: PropType<DataGridTableStageProps<Record<string, unknown>>["layout"]>;
|
|
23
31
|
required: true;
|
|
@@ -54,6 +62,10 @@ declare const __VLS_export: import("vue").DefineComponent<{
|
|
|
54
62
|
type: PropType<readonly DataGridTableStageCustomOverlay[]>;
|
|
55
63
|
default: () => never[];
|
|
56
64
|
};
|
|
65
|
+
reportCenterPaneDiagnostics: {
|
|
66
|
+
type: PropType<DataGridTableStageProps<Record<string, unknown>>["reportCenterPaneDiagnostics"]>;
|
|
67
|
+
default: undefined;
|
|
68
|
+
};
|
|
57
69
|
onViewportContextMenu: {
|
|
58
70
|
type: PropType<(event: MouseEvent) => void>;
|
|
59
71
|
default: undefined;
|
|
@@ -87,6 +99,14 @@ declare const __VLS_export: import("vue").DefineComponent<{
|
|
|
87
99
|
type: PropType<DataGridTableStageProps<Record<string, unknown>>["chromeSignature"]>;
|
|
88
100
|
default: string;
|
|
89
101
|
};
|
|
102
|
+
reportFillPlumbingState: {
|
|
103
|
+
type: PropType<DataGridTableStageProps<Record<string, unknown>>["reportFillPlumbingState"]>;
|
|
104
|
+
default: undefined;
|
|
105
|
+
};
|
|
106
|
+
reportFillPlumbingDetail: {
|
|
107
|
+
type: PropType<DataGridTableStageProps<Record<string, unknown>>["reportFillPlumbingDetail"]>;
|
|
108
|
+
default: undefined;
|
|
109
|
+
};
|
|
90
110
|
layout: {
|
|
91
111
|
type: PropType<DataGridTableStageProps<Record<string, unknown>>["layout"]>;
|
|
92
112
|
required: true;
|
|
@@ -123,6 +143,10 @@ declare const __VLS_export: import("vue").DefineComponent<{
|
|
|
123
143
|
type: PropType<readonly DataGridTableStageCustomOverlay[]>;
|
|
124
144
|
default: () => never[];
|
|
125
145
|
};
|
|
146
|
+
reportCenterPaneDiagnostics: {
|
|
147
|
+
type: PropType<DataGridTableStageProps<Record<string, unknown>>["reportCenterPaneDiagnostics"]>;
|
|
148
|
+
default: undefined;
|
|
149
|
+
};
|
|
126
150
|
onViewportContextMenu: {
|
|
127
151
|
type: PropType<(event: MouseEvent) => void>;
|
|
128
152
|
default: undefined;
|
|
@@ -134,6 +158,9 @@ declare const __VLS_export: import("vue").DefineComponent<{
|
|
|
134
158
|
}>>, {
|
|
135
159
|
chromeSignature: string | undefined;
|
|
136
160
|
customOverlays: readonly DataGridTableStageCustomOverlay[];
|
|
161
|
+
reportCenterPaneDiagnostics: ((payload: import("./dataGridTableStage.types").DataGridTableStageCenterPaneDiagnostics) => void) | undefined;
|
|
162
|
+
reportFillPlumbingState: ((layer: string, present: boolean) => void) | undefined;
|
|
163
|
+
reportFillPlumbingDetail: ((layer: string, value: string) => void) | undefined;
|
|
137
164
|
onViewportContextMenu: (event: MouseEvent) => void;
|
|
138
165
|
stageContext: DataGridTableStageContext<Record<string, unknown>>;
|
|
139
166
|
}, {}>;
|