@affino/datagrid-vue-app 0.4.2 → 0.4.4
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/chunks/{DataGridGanttStageEntry-Cypf1c3l.js → DataGridGanttStageEntry-1xef6fbI.js} +309 -309
- package/dist/chunks/{DataGridQuickFilterInput-9KGwF8HM.js → DataGridQuickFilterInput-DEjquEBe.js} +1 -1
- package/dist/chunks/{useDataGridAppRowModel-b5bfkfo3.js → useDataGridAppRowModel-BWqF5kAt.js} +2 -2
- package/dist/gantt.js +1 -1
- package/dist/index.js +3 -3
- package/dist/internal.js +2 -2
- package/dist/quick-filter.js +1 -1
- package/package.json +1 -1
package/dist/chunks/{DataGridGanttStageEntry-Cypf1c3l.js → DataGridGanttStageEntry-1xef6fbI.js}
RENAMED
|
@@ -24,7 +24,7 @@ const Ed = ["title"], _d = /* @__PURE__ */ jt({
|
|
|
24
24
|
I.value && s("select", I.value);
|
|
25
25
|
}
|
|
26
26
|
return (T, E) => {
|
|
27
|
-
const
|
|
27
|
+
const b = Jo("DataGridColumnMenuCustomEntry", !0);
|
|
28
28
|
return T.item.kind === "submenu" && N.value.length > 0 ? (_(), Ae(u(dl), {
|
|
29
29
|
key: 0,
|
|
30
30
|
options: T.submenuOptions
|
|
@@ -50,7 +50,7 @@ const Ed = ["title"], _d = /* @__PURE__ */ jt({
|
|
|
50
50
|
style: de(T.menuThemeVars)
|
|
51
51
|
}, {
|
|
52
52
|
default: Te(() => [
|
|
53
|
-
(_(!0), H(Re, null, He(N.value, (k) => (_(), Ae(
|
|
53
|
+
(_(!0), H(Re, null, He(N.value, (k) => (_(), Ae(b, {
|
|
54
54
|
key: k.key,
|
|
55
55
|
item: k,
|
|
56
56
|
"path-prefix": h.value,
|
|
@@ -155,14 +155,14 @@ const Ed = ["title"], _d = /* @__PURE__ */ jt({
|
|
|
155
155
|
},
|
|
156
156
|
emits: ["sort", "pin", "group", "apply-filter", "clear-filter", "update-text-filter"],
|
|
157
157
|
setup(e, { emit: r }) {
|
|
158
|
-
const a = e, s = r, h = Z(null), o = il(sd, Z(null)), w = Z(!1), I = Z(""), N = Z(!1), M = Z(null), T = Z([]), E = Z(!1),
|
|
158
|
+
const a = e, s = r, h = Z(null), o = il(sd, Z(null)), w = Z(!1), I = Z(""), N = Z(!1), M = Z(null), T = Z([]), E = Z(!1), b = Z(null), k = Z([]), D = Z(0), G = Z({}), C = Z(!1);
|
|
159
159
|
let i = 0, p = !1, x = null;
|
|
160
|
-
const v = m(() => n(a.columnDataType)),
|
|
160
|
+
const v = m(() => n(a.columnDataType)), f = m(() => new Set(a.disabledItems)), y = m(() => a.triggerMode !== "button"), $ = m(() => !a.grouped || !Number.isFinite(a.groupOrder) ? null : Qe(a.labels.groupLevel, "Level {level}", {
|
|
161
161
|
level: Number(a.groupOrder) + 1
|
|
162
162
|
})), V = m(() => {
|
|
163
163
|
const t = Number.isFinite(a.valueFilterRowLimit) && a.valueFilterRowLimit >= 0 ? a.valueFilterRowLimit : Number.POSITIVE_INFINITY;
|
|
164
164
|
return Math.min(t, gu);
|
|
165
|
-
}), A = m(() => Number.isFinite(a.maxFilterValues) && a.maxFilterValues > 0 ? Math.max(20, Math.trunc(a.maxFilterValues)) : 120), B = m(() => a.filterEnabled ? a.rowCount <= V.value : !1), K = m(() => a.rowCount >= vu), ae = m(() => a.filterEnabled && !B.value), ne = m(() => a.items.filter((t) => t === "sort" ? Se("sortAsc") || Se("sortDesc") || Se("clearSort") : t === "group" ? Se("toggleGroup") : t === "pin" ? Ee.value : t === "filter" ? le.value : !0)), se = m(() => l(ne.value, a.customItems)), Q = m(() =>
|
|
165
|
+
}), A = m(() => Number.isFinite(a.maxFilterValues) && a.maxFilterValues > 0 ? Math.max(20, Math.trunc(a.maxFilterValues)) : 120), B = m(() => a.filterEnabled ? a.rowCount <= V.value : !1), K = m(() => a.rowCount >= vu), ae = m(() => a.filterEnabled && !B.value), ne = m(() => a.items.filter((t) => t === "sort" ? Se("sortAsc") || Se("sortDesc") || Se("clearSort") : t === "group" ? Se("toggleGroup") : t === "pin" ? Ee.value : t === "filter" ? le.value : !0)), se = m(() => l(ne.value, a.customItems)), Q = m(() => f.value.has("sort")), O = m(() => f.value.has("group")), F = m(() => f.value.has("pin")), q = m(() => f.value.has("filter")), te = m(() => new Set(k.value)), le = m(() => B.value || a.textFilterEnabled), U = m(() => a.textFilterEnabled && !B.value), ge = m(() => I.value.trim().length > 0), xe = m(() => E.value || b.value !== null), Ee = m(() => Se("pinMenu") && (Se("pinLeft") || Se("pinRight") || Se("unpin"))), Fe = m(() => Me(
|
|
166
166
|
"toggleGroup",
|
|
167
167
|
a.labels.group ?? (a.grouped ? "Ungroup column" : "Group by this column")
|
|
168
168
|
)), Ce = m(() => Me("pinMenu", a.labels.pin ?? "Pin column")), Ft = m(() => a.labels.filter ?? (B.value ? "Filter" : "Filter by text")), wt = m(() => Me("sortAsc", v.value.asc)), Je = m(() => Me("sortDesc", v.value.desc)), Ke = m(() => Me("clearSort", "Clear sort")), ct = m(() => Me("pinLeft", "Pin left")), et = m(() => Me("pinRight", "Pin right")), dt = m(() => Me("unpin", "Unpin")), ke = m(() => Me("clearFilter", "Clear filter")), j = m(() => Me(
|
|
@@ -363,7 +363,7 @@ const Ed = ["title"], _d = /* @__PURE__ */ jt({
|
|
|
363
363
|
}
|
|
364
364
|
function $t() {
|
|
365
365
|
if (I.value !== "" && (p = !0, I.value = ""), N.value = !1, Zt(), Jt(), Lt(), !B.value) {
|
|
366
|
-
T.value = [], E.value = !1,
|
|
366
|
+
T.value = [], E.value = !1, b.value = null, k.value = [], C.value = !1;
|
|
367
367
|
return;
|
|
368
368
|
}
|
|
369
369
|
Qt(!0, { defer: K.value });
|
|
@@ -390,7 +390,7 @@ const Ed = ["title"], _d = /* @__PURE__ */ jt({
|
|
|
390
390
|
function Qt(t, c = {}) {
|
|
391
391
|
Dt();
|
|
392
392
|
const L = i + 1;
|
|
393
|
-
if (i = L, E.value = !0,
|
|
393
|
+
if (i = L, E.value = !0, b.value = null, !c.defer) {
|
|
394
394
|
Bt(L, t);
|
|
395
395
|
return;
|
|
396
396
|
}
|
|
@@ -416,7 +416,7 @@ const Ed = ["title"], _d = /* @__PURE__ */ jt({
|
|
|
416
416
|
} catch (L) {
|
|
417
417
|
if (t !== i)
|
|
418
418
|
return;
|
|
419
|
-
T.value = [],
|
|
419
|
+
T.value = [], b.value = L instanceof Error ? L.message : String(L), k.value = [], C.value = !1;
|
|
420
420
|
} finally {
|
|
421
421
|
t === i && (E.value = !1);
|
|
422
422
|
}
|
|
@@ -845,7 +845,7 @@ const Ed = ["title"], _d = /* @__PURE__ */ jt({
|
|
|
845
845
|
"aria-label": oe.value,
|
|
846
846
|
onScrollPassive: lr
|
|
847
847
|
}, [
|
|
848
|
-
E.value ? (_(), H("div", ru, ue(pe.value), 1)) :
|
|
848
|
+
E.value ? (_(), H("div", ru, ue(pe.value), 1)) : b.value ? (_(), H("div", au, ue(qt.value), 1)) : (_(!0), H(Re, { key: 2 }, He(rt.value, (ee) => (_(), H("label", {
|
|
849
849
|
key: ee.token,
|
|
850
850
|
class: "datagrid-column-menu__value",
|
|
851
851
|
role: "option",
|
|
@@ -862,7 +862,7 @@ const Ed = ["title"], _d = /* @__PURE__ */ jt({
|
|
|
862
862
|
Y("span", iu, ue(ee.label), 1),
|
|
863
863
|
Y("span", ou, ue(ee.count), 1)
|
|
864
864
|
], 8, nu))), 128)),
|
|
865
|
-
!E.value && !
|
|
865
|
+
!E.value && !b.value && rt.value.length === 0 ? (_(), H("div", du, ue(ge.value ? Pt.value : Xt.value), 1)) : re("", !0)
|
|
866
866
|
], 40, tu)
|
|
867
867
|
])) : re("", !0),
|
|
868
868
|
B.value && Rr.value > 0 ? (_(), H("div", uu, ue(vr.value), 1)) : re("", !0),
|
|
@@ -1153,13 +1153,13 @@ const xu = `${cn}-header-row-index`, Cu = ["data-datagrid-pivot-group-label", "d
|
|
|
1153
1153
|
}
|
|
1154
1154
|
},
|
|
1155
1155
|
setup(e) {
|
|
1156
|
-
const r = e, a = ln(), s = ml(), h = on(), o = hl(), w = dn(), I = un(), N = m(() => w.value.sourceRows ?? []), M = m(() => o.value.visibleColumns), T = m(() => o.value.renderedColumns), E = m(() => M.value.filter((n) => n.pin === "left")),
|
|
1156
|
+
const r = e, a = ln(), s = ml(), h = on(), o = hl(), w = dn(), I = un(), N = m(() => w.value.sourceRows ?? []), M = m(() => o.value.visibleColumns), T = m(() => o.value.renderedColumns), E = m(() => M.value.filter((n) => n.pin === "left")), b = m(() => M.value.filter((n) => n.pin === "right")), k = m(() => ({
|
|
1157
1157
|
interactionMode: "auto",
|
|
1158
1158
|
isCoarsePointer: r.isCoarsePointer
|
|
1159
1159
|
})), D = m(() => a.value !== "pivot" ? 0 : M.value.reduce((n, l) => {
|
|
1160
1160
|
const t = wt(l);
|
|
1161
1161
|
return Math.max(n, t?.groupLabels?.length ?? 0);
|
|
1162
|
-
}, 0)), G = m(() => M.value.reduce((n, l) => Math.max(n, l.groupPath?.length ?? 0), 0)), C = m(() => Math.max(D.value, G.value)), i = m(() => C.value > 0), p = m(() => et(E.value)), x = m(() => et(T.value)), v = m(() => et(
|
|
1162
|
+
}, 0)), G = m(() => M.value.reduce((n, l) => Math.max(n, l.groupPath?.length ?? 0), 0)), C = m(() => Math.max(D.value, G.value)), i = m(() => C.value > 0), p = m(() => et(E.value)), x = m(() => et(T.value)), v = m(() => et(b.value)), f = m(() => s.value.mainTrackStyle), y = m(() => h.value.leftColumnSpacerWidth), $ = m(() => h.value.rightColumnSpacerWidth), V = m(() => o.value.columnFilterTextByKey), A = m(() => typeof o.value.columnMenuMaxFilterValues == "number" ? o.value.columnMenuMaxFilterValues : 250), B = m(() => typeof o.value.columnMenuValueFilterRowLimit == "number" ? o.value.columnMenuValueFilterRowLimit : Number.MAX_SAFE_INTEGER), K = Z(null), ae = Z(null), ne = Z(null);
|
|
1163
1163
|
let se = !1, Q = null;
|
|
1164
1164
|
function O() {
|
|
1165
1165
|
return o.value.columnMenuEnabled === !0 ? !0 : typeof o.value.applyColumnMenuSort == "function" || typeof o.value.applyColumnMenuPin == "function" || typeof o.value.applyColumnMenuFilter == "function" || typeof o.value.clearColumnMenuFilter == "function";
|
|
@@ -1894,7 +1894,7 @@ const xu = `${cn}-header-row-index`, Cu = ["data-datagrid-pivot-group-label", "d
|
|
|
1894
1894
|
(_(!0), H(Re, null, He(x.value, (t, c) => (_(), H("div", {
|
|
1895
1895
|
key: `center-pivot-group-row-${c}`,
|
|
1896
1896
|
class: "grid-header-row grid-center-track grid-header-row--pivot-groups",
|
|
1897
|
-
style: de(
|
|
1897
|
+
style: de(f.value)
|
|
1898
1898
|
}, [
|
|
1899
1899
|
y.value > 0 ? (_(), H("div", {
|
|
1900
1900
|
key: 0,
|
|
@@ -1925,7 +1925,7 @@ const xu = `${cn}-header-row-index`, Cu = ["data-datagrid-pivot-group-label", "d
|
|
|
1925
1925
|
], 4))), 128)),
|
|
1926
1926
|
Y("div", {
|
|
1927
1927
|
class: "grid-header-row grid-center-track",
|
|
1928
|
-
style: de(
|
|
1928
|
+
style: de(f.value)
|
|
1929
1929
|
}, [
|
|
1930
1930
|
y.value > 0 ? (_(), H("div", {
|
|
1931
1931
|
key: 0,
|
|
@@ -2120,7 +2120,7 @@ const xu = `${cn}-header-row-index`, Cu = ["data-datagrid-pivot-group-label", "d
|
|
|
2120
2120
|
class: "grid-header-row grid-pane-track",
|
|
2121
2121
|
style: de(e.rightTrackStyle)
|
|
2122
2122
|
}, [
|
|
2123
|
-
F() ? (_(!0), H(Re, { key: 0 }, He(
|
|
2123
|
+
F() ? (_(!0), H(Re, { key: 0 }, He(b.value, (t) => (_(), Ae(La, {
|
|
2124
2124
|
key: Qt(t.key),
|
|
2125
2125
|
"row-count": N.value.length,
|
|
2126
2126
|
"resolve-value-entries": (c) => kt(t.key, c),
|
|
@@ -2211,7 +2211,7 @@ const xu = `${cn}-header-row-index`, Cu = ["data-datagrid-pivot-group-label", "d
|
|
|
2211
2211
|
], 16, ps)
|
|
2212
2212
|
]),
|
|
2213
2213
|
_: 2
|
|
2214
|
-
}, 1032, ["row-count", "resolve-value-entries", "items", "disabled-items", "disabled-reasons", "labels", "action-options", "custom-items", "trigger-mode", "column-key", "column-label", "column-data-type", "sort-direction", "sort-enabled", "pin", "grouped", "group-order", "group-enabled", "filter-enabled", "value-filter-row-limit", "text-filter-enabled", "text-filter-value", "filter-active", "selected-filter-tokens", "max-filter-values", "onSort", "onPin", "onApplyFilter", "onGroup", "onUpdateTextFilter", "onClearFilter"]))), 128)) : (_(!0), H(Re, { key: 1 }, He(
|
|
2214
|
+
}, 1032, ["row-count", "resolve-value-entries", "items", "disabled-items", "disabled-reasons", "labels", "action-options", "custom-items", "trigger-mode", "column-key", "column-label", "column-data-type", "sort-direction", "sort-enabled", "pin", "grouped", "group-order", "group-enabled", "filter-enabled", "value-filter-row-limit", "text-filter-enabled", "text-filter-value", "filter-active", "selected-filter-tokens", "max-filter-values", "onSort", "onPin", "onApplyFilter", "onGroup", "onUpdateTextFilter", "onClearFilter"]))), 128)) : (_(!0), H(Re, { key: 1 }, He(b.value, (t) => (_(), H("div", fr({
|
|
2215
2215
|
key: `header-right-${t.key}`,
|
|
2216
2216
|
class: ["grid-cell grid-cell--header grid-cell--header-sortable grid-cell--pinned-right", Ee(t)],
|
|
2217
2217
|
style: [Ce(t.key), Ge(t)],
|
|
@@ -2545,13 +2545,13 @@ const Sl = jt({
|
|
|
2545
2545
|
const r = e, a = ln(), s = vl(), h = ml(), o = on(), w = hl(), I = dn(), N = un(), M = pl(), {
|
|
2546
2546
|
displayRows: T,
|
|
2547
2547
|
viewportClass: E,
|
|
2548
|
-
viewportRef:
|
|
2548
|
+
viewportRef: b,
|
|
2549
2549
|
selectionOverlaySegments: k,
|
|
2550
2550
|
fillPreviewOverlaySegments: D,
|
|
2551
2551
|
movePreviewOverlaySegments: G,
|
|
2552
2552
|
overlayLanes: C,
|
|
2553
2553
|
renderApi: i
|
|
2554
|
-
} = ad(r), p = m(() => r.topSpacerHeight ?? o.value.topSpacerHeight), x = m(() => r.bottomSpacerHeight ?? o.value.bottomSpacerHeight), v = m(() => r.handleScroll ?? i.value.handleCenterViewportScroll),
|
|
2554
|
+
} = ad(r), p = m(() => r.topSpacerHeight ?? o.value.topSpacerHeight), x = m(() => r.bottomSpacerHeight ?? o.value.bottomSpacerHeight), v = m(() => r.handleScroll ?? i.value.handleCenterViewportScroll), f = m(() => r.handleWheel ?? i.value.handleBodyViewportWheel), y = m(() => r.handleKeydown ?? i.value.handleViewportKeydown), $ = m(() => r.handleContextMenu), V = m(() => [
|
|
2555
2555
|
E.value,
|
|
2556
2556
|
s.value === "auto-height" ? "grid-body-viewport--layout-auto-height" : "grid-body-viewport--layout-fill"
|
|
2557
2557
|
]), A = m(() => w.value.renderedColumns.map((Q) => ({
|
|
@@ -2686,7 +2686,7 @@ const Sl = jt({
|
|
|
2686
2686
|
},
|
|
2687
2687
|
{ immediate: !0 }
|
|
2688
2688
|
), (Q, O) => (_(), H("div", {
|
|
2689
|
-
ref: u(
|
|
2689
|
+
ref: u(b) ?? void 0,
|
|
2690
2690
|
class: fe(V.value),
|
|
2691
2691
|
role: "grid",
|
|
2692
2692
|
"aria-rowcount": B.value,
|
|
@@ -2696,7 +2696,7 @@ const Sl = jt({
|
|
|
2696
2696
|
onScrollPassive: O[32] || (O[32] = //@ts-ignore
|
|
2697
2697
|
(...F) => v.value && v.value(...F)),
|
|
2698
2698
|
onWheel: O[33] || (O[33] = //@ts-ignore
|
|
2699
|
-
(...F) =>
|
|
2699
|
+
(...F) => f.value && f.value(...F)),
|
|
2700
2700
|
onContextmenu: O[34] || (O[34] = //@ts-ignore
|
|
2701
2701
|
(...F) => $.value && $.value(...F)),
|
|
2702
2702
|
onKeydown: O[35] || (O[35] = R(
|
|
@@ -3010,7 +3010,7 @@ const Sl = jt({
|
|
|
3010
3010
|
clientY: i.clientY
|
|
3011
3011
|
});
|
|
3012
3012
|
}
|
|
3013
|
-
function
|
|
3013
|
+
function b(C, i, p) {
|
|
3014
3014
|
const x = C.touches.length === 1 ? T(C.touches) : null;
|
|
3015
3015
|
if (!x) {
|
|
3016
3016
|
N = null;
|
|
@@ -3150,7 +3150,7 @@ const Sl = jt({
|
|
|
3150
3150
|
class: "row-resize-handle",
|
|
3151
3151
|
"aria-label": "Resize rows",
|
|
3152
3152
|
onMousedown: R((v) => u(o).startRowResize(v, p, e.renderApi.viewportRowOffset(p, x)), ["stop"]),
|
|
3153
|
-
onTouchstart: R((v) =>
|
|
3153
|
+
onTouchstart: R((v) => b(v, p, e.renderApi.viewportRowOffset(p, x)), ["stop", "prevent"]),
|
|
3154
3154
|
onTouchmove: i[0] || (i[0] = R((v) => k(v), ["stop", "prevent"])),
|
|
3155
3155
|
onTouchend: i[1] || (i[1] = R((v) => D(v), ["stop", "prevent"])),
|
|
3156
3156
|
onTouchcancel: i[2] || (i[2] = R((v) => D(v), ["stop", "prevent"])),
|
|
@@ -3159,13 +3159,13 @@ const Sl = jt({
|
|
|
3159
3159
|
onDblclick: R((v) => u(o).autosizeRow(v, p, e.renderApi.viewportRowOffset(p, x)), ["stop"])
|
|
3160
3160
|
}, null, 40, Qs)) : re("", !0)
|
|
3161
3161
|
], 46, Ys)) : re("", !0),
|
|
3162
|
-
(_(!0), H(Re, null, He(e.pane.columns, (v,
|
|
3162
|
+
(_(!0), H(Re, null, He(e.pane.columns, (v, f) => (_(), H("div", {
|
|
3163
3163
|
key: `${String(p.rowId)}-${e.pane.side}-${v.key}`,
|
|
3164
3164
|
class: fe(["grid-cell", [
|
|
3165
3165
|
"datagrid-stage__cell",
|
|
3166
3166
|
e.pane.side === "left" ? "grid-cell--pinned-left" : "grid-cell--pinned-right",
|
|
3167
|
-
e.pane.side === "left" &&
|
|
3168
|
-
e.pane.side === "right" &&
|
|
3167
|
+
e.pane.side === "left" && f < e.pane.columns.length - 1 ? "grid-cell--pinned-divider-right" : null,
|
|
3168
|
+
e.pane.side === "right" && f > 0 ? "grid-cell--pinned-divider-left" : null,
|
|
3169
3169
|
e.renderApi.builtInCellClasses(p, e.renderApi.viewportRowOffset(p, x), v, e.renderApi.columnIndexByKey(v.key)),
|
|
3170
3170
|
e.renderApi.cellStateClasses(p, e.renderApi.viewportRowOffset(p, x), e.renderApi.columnIndexByKey(v.key)),
|
|
3171
3171
|
e.renderApi.resolveCellCustomClass(p, e.renderApi.viewportRowOffset(p, x), v, e.renderApi.columnIndexByKey(v.key))
|
|
@@ -3822,7 +3822,7 @@ const Fn = "affino-datagrid-vue-app-styles", Ha = `
|
|
|
3822
3822
|
|
|
3823
3823
|
.datagrid-app-quick-filter__input {
|
|
3824
3824
|
min-width: 0;
|
|
3825
|
-
width:
|
|
3825
|
+
width: 192px;
|
|
3826
3826
|
border: 0;
|
|
3827
3827
|
outline: 0;
|
|
3828
3828
|
background: transparent;
|
|
@@ -7001,36 +7001,36 @@ function xg(e) {
|
|
|
7001
7001
|
const r = m(() => Math.max(0, e.totalBodyRows.value + e.placeholderRows.value.count)), a = Ua(null), s = (E) => {
|
|
7002
7002
|
if (!Number.isFinite(E))
|
|
7003
7003
|
return null;
|
|
7004
|
-
const
|
|
7005
|
-
return
|
|
7004
|
+
const b = Math.max(0, Math.trunc(E));
|
|
7005
|
+
return b < e.totalBodyRows.value ? e.runtime.getBodyRowAtIndex(b) : b >= r.value ? null : gc(b);
|
|
7006
7006
|
}, h = (E) => {
|
|
7007
|
-
const
|
|
7008
|
-
return
|
|
7009
|
-
}, o = (E) => e.placeholderRows.value.createRowAt != null && E?.column.capabilities?.editable !== !1, w = (E,
|
|
7007
|
+
const b = cc(E);
|
|
7008
|
+
return b >= 0 ? b : e.runtime.resolveBodyRowIndexById(E);
|
|
7009
|
+
}, o = (E) => e.placeholderRows.value.createRowAt != null && E?.column.capabilities?.editable !== !1, w = (E, b) => {
|
|
7010
7010
|
if (e.totalBodyRows.value <= 0)
|
|
7011
7011
|
return;
|
|
7012
7012
|
const k = e.totalBodyRows.value, D = en({
|
|
7013
7013
|
start: Math.min(E.start, k - 1),
|
|
7014
7014
|
end: Math.min(E.end, k - 1)
|
|
7015
7015
|
}, k);
|
|
7016
|
-
if (
|
|
7016
|
+
if (b === "viewport") {
|
|
7017
7017
|
e.runtime.setViewportRange(D);
|
|
7018
7018
|
return;
|
|
7019
7019
|
}
|
|
7020
7020
|
(e.runtime.setVirtualWindowRange ?? e.runtime.setViewportRange)?.(D);
|
|
7021
|
-
}, I = (E,
|
|
7021
|
+
}, I = (E, b) => {
|
|
7022
7022
|
const k = en(E, r.value);
|
|
7023
|
-
return a.value = k, w(k,
|
|
7023
|
+
return a.value = k, w(k, b), k;
|
|
7024
7024
|
}, N = m(() => vc(
|
|
7025
7025
|
e.runtime.virtualWindow.value,
|
|
7026
7026
|
a.value,
|
|
7027
7027
|
r.value
|
|
7028
|
-
)), M = (E,
|
|
7028
|
+
)), M = (E, b) => {
|
|
7029
7029
|
const k = Math.max(0, Math.trunc(E));
|
|
7030
7030
|
if (k < e.totalBodyRows.value)
|
|
7031
7031
|
return e.runtime.getBodyRowAtIndex(k);
|
|
7032
7032
|
const D = e.placeholderRows.value;
|
|
7033
|
-
if (!D.enabled || !D.createRowAt || !uc(D,
|
|
7033
|
+
if (!D.enabled || !D.createRowAt || !uc(D, b) || k >= r.value)
|
|
7034
7034
|
return null;
|
|
7035
7035
|
const G = [...e.sourceRows.value];
|
|
7036
7036
|
let C = e.totalBodyRows.value;
|
|
@@ -7039,7 +7039,7 @@ function xg(e) {
|
|
|
7039
7039
|
visualRowIndex: C,
|
|
7040
7040
|
materializedRowCount: C,
|
|
7041
7041
|
sourceRows: G,
|
|
7042
|
-
reason:
|
|
7042
|
+
reason: b
|
|
7043
7043
|
});
|
|
7044
7044
|
if (!i)
|
|
7045
7045
|
return null;
|
|
@@ -7063,15 +7063,15 @@ function xg(e) {
|
|
|
7063
7063
|
bodyRowCount: r.value
|
|
7064
7064
|
})),
|
|
7065
7065
|
syncBodyRowsInRange: (E) => {
|
|
7066
|
-
const
|
|
7066
|
+
const b = I(E, "virtual-window");
|
|
7067
7067
|
if (E.end < E.start)
|
|
7068
7068
|
return [];
|
|
7069
|
-
const k = [], D = Math.min(
|
|
7070
|
-
|
|
7071
|
-
start:
|
|
7069
|
+
const k = [], D = Math.min(b.end, Math.max(0, e.totalBodyRows.value - 1));
|
|
7070
|
+
b.start <= D && typeof e.runtime.syncBodyRowsInRange == "function" && k.push(...e.runtime.syncBodyRowsInRange({
|
|
7071
|
+
start: b.start,
|
|
7072
7072
|
end: D
|
|
7073
7073
|
}));
|
|
7074
|
-
for (let G = Math.max(
|
|
7074
|
+
for (let G = Math.max(b.start, e.totalBodyRows.value); G <= b.end; G += 1) {
|
|
7075
7075
|
const C = s(G);
|
|
7076
7076
|
C && k.push(C);
|
|
7077
7077
|
}
|
|
@@ -7270,7 +7270,7 @@ function pc(e) {
|
|
|
7270
7270
|
kind: Or(A) ? "placeholder" : "real"
|
|
7271
7271
|
};
|
|
7272
7272
|
}
|
|
7273
|
-
function
|
|
7273
|
+
function b(A, B, K, ae) {
|
|
7274
7274
|
const ne = T(A, K), se = E(A), Q = e.isCellEditableSafe(A, B, K, ae), O = cl({
|
|
7275
7275
|
column: K.column,
|
|
7276
7276
|
row: A.kind !== "group" ? A.data : void 0,
|
|
@@ -7403,7 +7403,7 @@ function pc(e) {
|
|
|
7403
7403
|
function v() {
|
|
7404
7404
|
e.editing.value.cancelInlineEdit();
|
|
7405
7405
|
}
|
|
7406
|
-
function
|
|
7406
|
+
function f(A, B = "stay") {
|
|
7407
7407
|
e.editing.value.updateEditingCellValue(A), e.editing.value.commitInlineEdit(B);
|
|
7408
7408
|
}
|
|
7409
7409
|
function y() {
|
|
@@ -7422,7 +7422,7 @@ function pc(e) {
|
|
|
7422
7422
|
resolveSelectEditorOptionsLoader: N,
|
|
7423
7423
|
handleSelectEditorOptionsResolved: M,
|
|
7424
7424
|
readResolvedDisplayCell: T,
|
|
7425
|
-
renderResolvedCellContent:
|
|
7425
|
+
renderResolvedCellContent: b,
|
|
7426
7426
|
resolveSelectEditorValue: k,
|
|
7427
7427
|
isSelectEditorCell: D,
|
|
7428
7428
|
isDateEditorCell: G,
|
|
@@ -7430,7 +7430,7 @@ function pc(e) {
|
|
|
7430
7430
|
isTextEditorCell: i,
|
|
7431
7431
|
handleSelectEditorCommit: x,
|
|
7432
7432
|
handleSelectEditorCancel: v,
|
|
7433
|
-
handleDateEditorChange:
|
|
7433
|
+
handleDateEditorChange: f,
|
|
7434
7434
|
handleTextEditorBlur: y,
|
|
7435
7435
|
updateEditingCellValue: $,
|
|
7436
7436
|
handleEditorKeydown: V
|
|
@@ -7458,20 +7458,20 @@ function Br(e, r, a, s, h) {
|
|
|
7458
7458
|
});
|
|
7459
7459
|
}
|
|
7460
7460
|
function yc(e) {
|
|
7461
|
-
function r(
|
|
7462
|
-
return
|
|
7461
|
+
function r(b, k) {
|
|
7462
|
+
return b.kind !== "group" && fc(k);
|
|
7463
7463
|
}
|
|
7464
|
-
function a(
|
|
7465
|
-
const C =
|
|
7464
|
+
function a(b, k, D, G) {
|
|
7465
|
+
const C = b.kind !== "group" ? e.resolveCellEditorMode(b, D) : "none", i = e.isCellEditableSafe(b, k, D, G), p = Br(e, b, k, D, G);
|
|
7466
7466
|
return {
|
|
7467
|
-
"grid-cell--checkbox": r(
|
|
7467
|
+
"grid-cell--checkbox": r(b, D),
|
|
7468
7468
|
"grid-cell--row-selection": zn(D),
|
|
7469
7469
|
"grid-cell--select": i && C === "select",
|
|
7470
7470
|
"grid-cell--date": i && (C === "date" || C === "datetime"),
|
|
7471
7471
|
"grid-cell--interactive": p !== null
|
|
7472
7472
|
};
|
|
7473
7473
|
}
|
|
7474
|
-
function s(
|
|
7474
|
+
function s(b, k, D) {
|
|
7475
7475
|
const G = e.visibleColumns.value[D]?.key ?? "", C = e.isVisualSelectionAnchorCell(k, D);
|
|
7476
7476
|
return {
|
|
7477
7477
|
"grid-cell--selected": !C && e.shouldHighlightSelectedCellVisual(k, D),
|
|
@@ -7483,35 +7483,35 @@ function yc(e) {
|
|
|
7483
7483
|
"grid-cell--clipboard-pending-right": e.isCellOnPendingClipboardEdgeSafe(k, D, "right"),
|
|
7484
7484
|
"grid-cell--clipboard-pending-bottom": e.isCellOnPendingClipboardEdgeSafe(k, D, "bottom"),
|
|
7485
7485
|
"grid-cell--clipboard-pending-left": e.isCellOnPendingClipboardEdgeSafe(k, D, "left"),
|
|
7486
|
-
"grid-cell--editing": e.isEditingCellSafe(
|
|
7486
|
+
"grid-cell--editing": e.isEditingCellSafe(b, G)
|
|
7487
7487
|
};
|
|
7488
7488
|
}
|
|
7489
|
-
function h(
|
|
7490
|
-
return e.isVisualSelectionAnchorCell(
|
|
7489
|
+
function h(b, k) {
|
|
7490
|
+
return e.isVisualSelectionAnchorCell(b, k) || e.isCellSelectedSafe(b, k) || e.shouldHighlightSelectedCellVisual(b, k) ? "true" : "false";
|
|
7491
7491
|
}
|
|
7492
|
-
function o(
|
|
7493
|
-
return Br(e,
|
|
7492
|
+
function o(b, k, D, G) {
|
|
7493
|
+
return Br(e, b, k, D, G)?.role ?? (r(b, D) ? "checkbox" : void 0);
|
|
7494
7494
|
}
|
|
7495
|
-
function w(
|
|
7496
|
-
return Br(e,
|
|
7495
|
+
function w(b, k, D, G) {
|
|
7496
|
+
return Br(e, b, k, D, G)?.checked ?? (r(b, D) ? Wa(e, b, D) ? "true" : "false" : void 0);
|
|
7497
7497
|
}
|
|
7498
|
-
function I(
|
|
7499
|
-
return Br(e,
|
|
7498
|
+
function I(b, k, D, G) {
|
|
7499
|
+
return Br(e, b, k, D, G)?.pressed;
|
|
7500
7500
|
}
|
|
7501
|
-
function N(
|
|
7502
|
-
return Br(e,
|
|
7501
|
+
function N(b, k, D, G) {
|
|
7502
|
+
return Br(e, b, k, D, G)?.label;
|
|
7503
7503
|
}
|
|
7504
|
-
function M(
|
|
7505
|
-
return bc(
|
|
7504
|
+
function M(b, k, D, G) {
|
|
7505
|
+
return bc(b) && !e.isCellEditableSafe(b, k, D, G) || Br(e, b, k, D, G)?.disabled ? "true" : void 0;
|
|
7506
7506
|
}
|
|
7507
|
-
function T(
|
|
7507
|
+
function T(b, k) {
|
|
7508
7508
|
return {
|
|
7509
|
-
"grid-checkbox-indicator--checked": Wa(e,
|
|
7509
|
+
"grid-checkbox-indicator--checked": Wa(e, b, k)
|
|
7510
7510
|
};
|
|
7511
7511
|
}
|
|
7512
|
-
function E(
|
|
7512
|
+
function E(b, k) {
|
|
7513
7513
|
return {
|
|
7514
|
-
"grid-checkbox-indicator__mark--checked": Wa(e,
|
|
7514
|
+
"grid-checkbox-indicator__mark--checked": Wa(e, b, k)
|
|
7515
7515
|
};
|
|
7516
7516
|
}
|
|
7517
7517
|
return {
|
|
@@ -7539,10 +7539,10 @@ function xc(e) {
|
|
|
7539
7539
|
const M = e.selection.value?.fillActionAnchorCell;
|
|
7540
7540
|
if (!M)
|
|
7541
7541
|
return null;
|
|
7542
|
-
const T = e.resolveViewportRowStart(), E = e.resolveViewportRowStart() + Math.max(0, e.displayRows.value.length - 1),
|
|
7542
|
+
const T = e.resolveViewportRowStart(), E = e.resolveViewportRowStart() + Math.max(0, e.displayRows.value.length - 1), b = e.selectionRange.value, k = b ? Math.min(b.startRow, b.endRow) : M.rowIndex, D = b ? Math.max(b.startRow, b.endRow) : M.rowIndex, G = b ? Math.min(b.startColumn, b.endColumn) : M.columnIndex, C = b ? Math.max(b.startColumn, b.endColumn) : M.columnIndex, i = Math.max(k, T), p = Math.min(D, E), x = i <= p ? xr(M.rowIndex, i, p) : M.rowIndex, v = new Set((e.renderedColumns.value ?? []).map(($) => $.key)), f = e.visibleColumns.value.map(($, V) => ({ column: $, columnIndex: V })).filter(({ column: $, columnIndex: V }) => V < G || V > C ? !1 : $.pin === "left" || $.pin === "right" || v.has($.key)).map(({ columnIndex: $ }) => $), y = f.length > 0 ? xr(
|
|
7543
7543
|
M.columnIndex,
|
|
7544
|
-
|
|
7545
|
-
|
|
7544
|
+
f[0] ?? M.columnIndex,
|
|
7545
|
+
f[f.length - 1] ?? M.columnIndex
|
|
7546
7546
|
) : M.columnIndex;
|
|
7547
7547
|
return e.isVisibleCellEditableByAbsoluteCoord(x, y) ? {
|
|
7548
7548
|
rowIndex: x,
|
|
@@ -7589,30 +7589,30 @@ function xc(e) {
|
|
|
7589
7589
|
)
|
|
7590
7590
|
);
|
|
7591
7591
|
}
|
|
7592
|
-
let
|
|
7592
|
+
let b = e.leftPaneWidth.value - e.bodyViewportScrollLeft.value;
|
|
7593
7593
|
for (const G of e.visibleColumns.value.filter((C) => C.pin !== "left" && C.pin !== "right"))
|
|
7594
|
-
if (
|
|
7594
|
+
if (b += e.resolveColumnWidth(G), G.key === E.key)
|
|
7595
7595
|
break;
|
|
7596
7596
|
const k = e.leftPaneWidth.value + Nt, D = e.leftPaneWidth.value + e.effectiveBodyViewportWidth.value - rr - Nt;
|
|
7597
|
-
return xr(
|
|
7597
|
+
return xr(b - rr, k, D);
|
|
7598
7598
|
}
|
|
7599
7599
|
function h() {
|
|
7600
7600
|
const M = e.bodyViewportTopOffset.value + Nt, T = e.bodyViewportTopOffset.value + Math.max(
|
|
7601
7601
|
0,
|
|
7602
7602
|
e.bodyViewportClientHeight.value - rr - Nt - za
|
|
7603
|
-
), E = e.selection.value?.fillActionAnchorCell,
|
|
7604
|
-
if (!
|
|
7603
|
+
), E = e.selection.value?.fillActionAnchorCell, b = a();
|
|
7604
|
+
if (!b)
|
|
7605
7605
|
return null;
|
|
7606
|
-
if (E && E.rowIndex !==
|
|
7606
|
+
if (E && E.rowIndex !== b.rowIndex)
|
|
7607
7607
|
return T;
|
|
7608
|
-
const k = e.resolveRelativeCellRect(
|
|
7608
|
+
const k = e.resolveRelativeCellRect(b);
|
|
7609
7609
|
if (k)
|
|
7610
7610
|
return xr(
|
|
7611
7611
|
k.bottom - rr - za,
|
|
7612
7612
|
M,
|
|
7613
7613
|
T
|
|
7614
7614
|
);
|
|
7615
|
-
const D = e.bodyShellRef.value?.getBoundingClientRect(), G = e.resolveVisibleRowElement(
|
|
7615
|
+
const D = e.bodyShellRef.value?.getBoundingClientRect(), G = e.resolveVisibleRowElement(b.rowIndex);
|
|
7616
7616
|
if (!D || !G)
|
|
7617
7617
|
return T;
|
|
7618
7618
|
const i = G.getBoundingClientRect().bottom - D.top - rr - za;
|
|
@@ -7659,13 +7659,13 @@ function xc(e) {
|
|
|
7659
7659
|
), De(r, (M, T, E) => {
|
|
7660
7660
|
if (!M || typeof window > "u")
|
|
7661
7661
|
return;
|
|
7662
|
-
const
|
|
7662
|
+
const b = (D) => {
|
|
7663
7663
|
(D.target instanceof HTMLElement ? D.target : null)?.closest(wc) || (r.value = !1);
|
|
7664
7664
|
}, k = (D) => {
|
|
7665
7665
|
D.key === "Escape" && (r.value = !1, w());
|
|
7666
7666
|
};
|
|
7667
|
-
window.addEventListener("mousedown",
|
|
7668
|
-
window.removeEventListener("mousedown",
|
|
7667
|
+
window.addEventListener("mousedown", b, !0), window.addEventListener("keydown", k), E(() => {
|
|
7668
|
+
window.removeEventListener("mousedown", b, !0), window.removeEventListener("keydown", k);
|
|
7669
7669
|
});
|
|
7670
7670
|
}), {
|
|
7671
7671
|
fillActionMenuOpen: r,
|
|
@@ -7696,14 +7696,14 @@ function Sc(e) {
|
|
|
7696
7696
|
}
|
|
7697
7697
|
function s(M, T) {
|
|
7698
7698
|
const E = `.grid-cell[data-row-index="${M}"][data-column-index="${T}"]`;
|
|
7699
|
-
for (const
|
|
7699
|
+
for (const b of [
|
|
7700
7700
|
e.leftPaneContentRef.value,
|
|
7701
7701
|
e.bodyViewportEl.value,
|
|
7702
7702
|
e.rightPaneContentRef.value,
|
|
7703
7703
|
e.leftBottomPaneContentRef.value,
|
|
7704
7704
|
e.rightBottomPaneContentRef.value
|
|
7705
7705
|
]) {
|
|
7706
|
-
const k =
|
|
7706
|
+
const k = b?.querySelector(E);
|
|
7707
7707
|
if (k)
|
|
7708
7708
|
return k;
|
|
7709
7709
|
}
|
|
@@ -7718,9 +7718,9 @@ function Sc(e) {
|
|
|
7718
7718
|
e.leftBottomPaneContentRef.value,
|
|
7719
7719
|
e.rightBottomPaneContentRef.value
|
|
7720
7720
|
]) {
|
|
7721
|
-
const
|
|
7722
|
-
if (
|
|
7723
|
-
return
|
|
7721
|
+
const b = E?.querySelector(T);
|
|
7722
|
+
if (b)
|
|
7723
|
+
return b;
|
|
7724
7724
|
}
|
|
7725
7725
|
return null;
|
|
7726
7726
|
}
|
|
@@ -7730,17 +7730,17 @@ function Sc(e) {
|
|
|
7730
7730
|
const T = s(M.rowIndex, M.columnIndex), E = e.bodyShellRef.value?.getBoundingClientRect();
|
|
7731
7731
|
if (!T || !E)
|
|
7732
7732
|
return null;
|
|
7733
|
-
const
|
|
7733
|
+
const b = T.getBoundingClientRect();
|
|
7734
7734
|
return {
|
|
7735
|
-
left:
|
|
7736
|
-
right:
|
|
7737
|
-
top:
|
|
7738
|
-
bottom:
|
|
7735
|
+
left: b.left - E.left,
|
|
7736
|
+
right: b.right - E.left,
|
|
7737
|
+
top: b.top - E.top,
|
|
7738
|
+
bottom: b.bottom - E.top
|
|
7739
7739
|
};
|
|
7740
7740
|
}
|
|
7741
7741
|
function w(M, T) {
|
|
7742
|
-
const E = M - e.viewportRowStart.value,
|
|
7743
|
-
return E < 0 || !
|
|
7742
|
+
const E = M - e.viewportRowStart.value, b = e.displayRows.value[E], k = e.visibleColumns.value[T];
|
|
7743
|
+
return E < 0 || !b || !k ? !1 : e.isCellEditableSafe(b, E, k, T);
|
|
7744
7744
|
}
|
|
7745
7745
|
function I() {
|
|
7746
7746
|
if (e.shouldRestoreAnchorFocus?.() === !1) {
|
|
@@ -7794,35 +7794,35 @@ const Rc = 6, ga = "datagrid-fill-drag-cursor";
|
|
|
7794
7794
|
function kc(e) {
|
|
7795
7795
|
const r = Z(null), a = Z(null), s = Z(null);
|
|
7796
7796
|
let h = null;
|
|
7797
|
-
function o(v,
|
|
7797
|
+
function o(v, f) {
|
|
7798
7798
|
Cl({
|
|
7799
7799
|
scope: "interactionPreventDefault",
|
|
7800
7800
|
totalMs: 0,
|
|
7801
7801
|
owner: "fill",
|
|
7802
7802
|
eventType: v,
|
|
7803
|
-
reason:
|
|
7803
|
+
reason: f
|
|
7804
7804
|
});
|
|
7805
7805
|
}
|
|
7806
7806
|
function w(v) {
|
|
7807
7807
|
if (typeof document > "u")
|
|
7808
7808
|
return;
|
|
7809
|
-
const
|
|
7810
|
-
if (!(!
|
|
7809
|
+
const f = document.body, y = document.documentElement;
|
|
7810
|
+
if (!(!f || !y)) {
|
|
7811
7811
|
if (v) {
|
|
7812
|
-
a.value == null && (a.value =
|
|
7812
|
+
a.value == null && (a.value = f.style.cursor), s.value == null && (s.value = y.style.cursor), y.classList.add(ga), f.classList.add(ga), y.style.setProperty("cursor", "crosshair", "important"), f.style.setProperty("cursor", "crosshair", "important");
|
|
7813
7813
|
return;
|
|
7814
7814
|
}
|
|
7815
|
-
y.classList.remove(ga),
|
|
7815
|
+
y.classList.remove(ga), f.classList.remove(ga), s.value != null && (s.value ? y.style.setProperty("cursor", s.value) : y.style.removeProperty("cursor"), s.value = null), a.value != null && (a.value ? f.style.setProperty("cursor", a.value) : f.style.removeProperty("cursor"), a.value = null);
|
|
7816
7816
|
}
|
|
7817
7817
|
}
|
|
7818
7818
|
function I() {
|
|
7819
7819
|
r.value != null && (r.value = null);
|
|
7820
7820
|
}
|
|
7821
|
-
function N(v,
|
|
7822
|
-
if (e.mode.value !== "base" || e.selection.value?.isFillDragging || !e.selectionRange.value || !e.isCellSelectedSafe(
|
|
7821
|
+
function N(v, f, y) {
|
|
7822
|
+
if (e.mode.value !== "base" || e.selection.value?.isFillDragging || !e.selectionRange.value || !e.isCellSelectedSafe(f, y))
|
|
7823
7823
|
return !1;
|
|
7824
|
-
const $ = e.displayRows.value[
|
|
7825
|
-
if (!$ || !V || !e.isCellEditableSafe($,
|
|
7824
|
+
const $ = e.displayRows.value[f], V = e.visibleColumns.value[y];
|
|
7825
|
+
if (!$ || !V || !e.isCellEditableSafe($, f, V, y))
|
|
7826
7826
|
return !1;
|
|
7827
7827
|
const A = v.currentTarget instanceof HTMLElement ? v.currentTarget : null;
|
|
7828
7828
|
if (!A)
|
|
@@ -7838,16 +7838,16 @@ function kc(e) {
|
|
|
7838
7838
|
Math.floor(B.height / 2)
|
|
7839
7839
|
)
|
|
7840
7840
|
), ae = v.clientX - B.left, ne = v.clientY - B.top;
|
|
7841
|
-
return ne <= K && e.isCellOnSelectionEdgeSafe(
|
|
7841
|
+
return ne <= K && e.isCellOnSelectionEdgeSafe(f, y, "top") || B.height - ne <= K && e.isCellOnSelectionEdgeSafe(f, y, "bottom") || ae <= K && e.isCellOnSelectionEdgeSafe(f, y, "left") || B.width - ae <= K && e.isCellOnSelectionEdgeSafe(f, y, "right");
|
|
7842
7842
|
}
|
|
7843
|
-
function M(v,
|
|
7843
|
+
function M(v, f, y) {
|
|
7844
7844
|
if (e.suppressHoverInteractions?.value === !0 || e.selection.value?.isFillDragging || e.selection.value?.rangeMoveEnabled !== !0) {
|
|
7845
7845
|
I();
|
|
7846
7846
|
return;
|
|
7847
7847
|
}
|
|
7848
|
-
if (N(v,
|
|
7848
|
+
if (N(v, f, y)) {
|
|
7849
7849
|
r.value = {
|
|
7850
|
-
rowIndex: e.viewportRowStart.value +
|
|
7850
|
+
rowIndex: e.viewportRowStart.value + f,
|
|
7851
7851
|
columnIndex: y
|
|
7852
7852
|
};
|
|
7853
7853
|
return;
|
|
@@ -7864,52 +7864,52 @@ function kc(e) {
|
|
|
7864
7864
|
return;
|
|
7865
7865
|
v.preventDefault(), o("dblclick", "fill-handle"), e.fillActionMenuOpen.value = !1, (v.currentTarget instanceof HTMLElement ? v.currentTarget : null)?.closest(".grid-cell")?.focus({ preventScroll: !0 }), e.selection.value?.startFillHandleDoubleClick(v);
|
|
7866
7866
|
}
|
|
7867
|
-
function
|
|
7867
|
+
function b(v, f) {
|
|
7868
7868
|
const y = v;
|
|
7869
7869
|
for (let $ = 0; $ < v.length; $ += 1) {
|
|
7870
7870
|
const V = typeof v.item == "function" ? v.item($) : y[$];
|
|
7871
|
-
if (V?.identifier ===
|
|
7871
|
+
if (V?.identifier === f)
|
|
7872
7872
|
return V;
|
|
7873
7873
|
}
|
|
7874
7874
|
return null;
|
|
7875
7875
|
}
|
|
7876
7876
|
function k(v) {
|
|
7877
|
-
const
|
|
7878
|
-
return (typeof v.item == "function" ? v.item(0) :
|
|
7877
|
+
const f = v;
|
|
7878
|
+
return (typeof v.item == "function" ? v.item(0) : f[0]) ?? null;
|
|
7879
7879
|
}
|
|
7880
|
-
function D(v,
|
|
7880
|
+
function D(v, f) {
|
|
7881
7881
|
return new MouseEvent(v, {
|
|
7882
7882
|
bubbles: !0,
|
|
7883
7883
|
cancelable: !0,
|
|
7884
7884
|
button: 0,
|
|
7885
|
-
clientX:
|
|
7886
|
-
clientY:
|
|
7885
|
+
clientX: f.clientX,
|
|
7886
|
+
clientY: f.clientY
|
|
7887
7887
|
});
|
|
7888
7888
|
}
|
|
7889
7889
|
function G(v) {
|
|
7890
|
-
const
|
|
7891
|
-
if (!
|
|
7890
|
+
const f = v.touches.length === 1 ? k(v.touches) : null;
|
|
7891
|
+
if (!f) {
|
|
7892
7892
|
h = null;
|
|
7893
7893
|
return;
|
|
7894
7894
|
}
|
|
7895
|
-
v.preventDefault(), o("touchstart", "fill-handle"), e.fillActionMenuOpen.value = !1, h =
|
|
7895
|
+
v.preventDefault(), o("touchstart", "fill-handle"), e.fillActionMenuOpen.value = !1, h = f.identifier, (v.currentTarget instanceof HTMLElement ? v.currentTarget : null)?.closest(".grid-cell")?.focus({ preventScroll: !0 }), e.selection.value?.startFillHandleDrag(D("mousedown", f));
|
|
7896
7896
|
}
|
|
7897
7897
|
function C(v) {
|
|
7898
7898
|
if (h == null || typeof window > "u")
|
|
7899
7899
|
return;
|
|
7900
|
-
const
|
|
7901
|
-
|
|
7900
|
+
const f = b(v.touches, h);
|
|
7901
|
+
f && (v.preventDefault(), o("touchmove", "fill-handle"), window.dispatchEvent(D("mousemove", f)));
|
|
7902
7902
|
}
|
|
7903
7903
|
function i(v) {
|
|
7904
7904
|
if (h == null || typeof window > "u") {
|
|
7905
7905
|
h = null;
|
|
7906
7906
|
return;
|
|
7907
7907
|
}
|
|
7908
|
-
const
|
|
7909
|
-
h = null,
|
|
7908
|
+
const f = b(v.changedTouches, h);
|
|
7909
|
+
h = null, f && (v.preventDefault(), o("touchend", "fill-handle"), window.dispatchEvent(D("mouseup", f)));
|
|
7910
7910
|
}
|
|
7911
|
-
function p(v,
|
|
7912
|
-
return r.value?.rowIndex === v + e.viewportRowStart.value && r.value?.columnIndex ===
|
|
7911
|
+
function p(v, f) {
|
|
7912
|
+
return r.value?.rowIndex === v + e.viewportRowStart.value && r.value?.columnIndex === f;
|
|
7913
7913
|
}
|
|
7914
7914
|
De(
|
|
7915
7915
|
() => e.selection.value?.isFillDragging === !0,
|
|
@@ -7943,14 +7943,14 @@ function Mc(e, r) {
|
|
|
7943
7943
|
}
|
|
7944
7944
|
function Tc(e) {
|
|
7945
7945
|
function r(x, v) {
|
|
7946
|
-
const
|
|
7947
|
-
return !!(
|
|
7946
|
+
const f = Mc(e.selection, e.selectionRange);
|
|
7947
|
+
return !!(f && e.viewportRowStart.value + x === f.rowIndex && v === f.columnIndex);
|
|
7948
7948
|
}
|
|
7949
7949
|
function a(x, v) {
|
|
7950
7950
|
if (!e.isCellSelectedSafe(x, v) || r(x, v))
|
|
7951
7951
|
return !1;
|
|
7952
|
-
const
|
|
7953
|
-
return
|
|
7952
|
+
const f = e.selectionRange.value;
|
|
7953
|
+
return f ? e.selectionRanges.value.length > 1 || !(f.startRow === f.endRow && f.startColumn === f.endColumn) : !0;
|
|
7954
7954
|
}
|
|
7955
7955
|
function s(x) {
|
|
7956
7956
|
return x.column.meta?.rowSelection === !0;
|
|
@@ -7958,42 +7958,42 @@ function Tc(e) {
|
|
|
7958
7958
|
function h(x, v) {
|
|
7959
7959
|
if (r(x, v))
|
|
7960
7960
|
return !0;
|
|
7961
|
-
const
|
|
7962
|
-
return typeof
|
|
7961
|
+
const f = e.cells.value.isSelectionAnchorCell;
|
|
7962
|
+
return typeof f == "function" ? f(x, v) : !1;
|
|
7963
7963
|
}
|
|
7964
7964
|
function o(x, v) {
|
|
7965
|
-
const
|
|
7966
|
-
return typeof
|
|
7965
|
+
const f = e.cells.value.isCellInFillPreview;
|
|
7966
|
+
return typeof f == "function" ? f(x, v) : !1;
|
|
7967
7967
|
}
|
|
7968
7968
|
function w(x, v) {
|
|
7969
|
-
const
|
|
7970
|
-
return typeof
|
|
7969
|
+
const f = e.cells.value.isCellInPendingClipboardRange;
|
|
7970
|
+
return typeof f == "function" ? f(x, v) : !1;
|
|
7971
7971
|
}
|
|
7972
|
-
function I(x, v,
|
|
7972
|
+
function I(x, v, f) {
|
|
7973
7973
|
const y = e.cells.value.isCellOnPendingClipboardEdge;
|
|
7974
|
-
return typeof y == "function" ? y(x, v,
|
|
7974
|
+
return typeof y == "function" ? y(x, v, f) : !1;
|
|
7975
7975
|
}
|
|
7976
|
-
function N(x, v,
|
|
7976
|
+
function N(x, v, f) {
|
|
7977
7977
|
const y = e.cells.value.isCellOnSelectionEdge;
|
|
7978
|
-
return typeof y == "function" ? y(x, v,
|
|
7978
|
+
return typeof y == "function" ? y(x, v, f) : !1;
|
|
7979
7979
|
}
|
|
7980
7980
|
function M(x, v) {
|
|
7981
|
-
const
|
|
7982
|
-
return typeof
|
|
7981
|
+
const f = e.selection.value?.isFillHandleCell;
|
|
7982
|
+
return typeof f == "function" ? f(x, v) : !1;
|
|
7983
7983
|
}
|
|
7984
7984
|
function T(x, v) {
|
|
7985
7985
|
return e.isEditingCellSafe(x, v);
|
|
7986
7986
|
}
|
|
7987
|
-
function E(x, v,
|
|
7988
|
-
return e.isCellEditableSafe(x, v,
|
|
7987
|
+
function E(x, v, f, y) {
|
|
7988
|
+
return e.isCellEditableSafe(x, v, f, y);
|
|
7989
7989
|
}
|
|
7990
|
-
function
|
|
7991
|
-
const
|
|
7992
|
-
return
|
|
7990
|
+
function b(x, v) {
|
|
7991
|
+
const f = x - e.viewportRowStart.value, y = e.displayRows.value[f], $ = e.visibleColumns.value[v];
|
|
7992
|
+
return f < 0 || !y || !$ ? !1 : E(y, f, $, v);
|
|
7993
7993
|
}
|
|
7994
|
-
function k(x, v,
|
|
7994
|
+
function k(x, v, f = {}) {
|
|
7995
7995
|
let y = null;
|
|
7996
|
-
return e.isHoveredRow(x, v) ? y = "var(--datagrid-row-band-hover-bg)" : e.isStripedRow(x, v) && (y = "var(--datagrid-row-band-striped-bg)"), y ?
|
|
7996
|
+
return e.isHoveredRow(x, v) ? y = "var(--datagrid-row-band-hover-bg)" : e.isStripedRow(x, v) && (y = "var(--datagrid-row-band-striped-bg)"), y ? f.fullBleed === !0 ? {
|
|
7997
7997
|
backgroundImage: `linear-gradient(${y}, ${y})`,
|
|
7998
7998
|
backgroundSize: "100% calc(100% - var(--datagrid-row-divider-size))",
|
|
7999
7999
|
backgroundPosition: "top left",
|
|
@@ -8006,32 +8006,32 @@ function Tc(e) {
|
|
|
8006
8006
|
} : null;
|
|
8007
8007
|
}
|
|
8008
8008
|
function D(x, v) {
|
|
8009
|
-
const
|
|
8009
|
+
const f = e.rows.value.isRowInPendingClipboardCut?.(x) === !0, y = e.displayRows.value[v - 1], $ = e.displayRows.value[v + 1], V = y ? e.rows.value.isRowInPendingClipboardCut?.(y) === !0 : !1, A = $ ? e.rows.value.isRowInPendingClipboardCut?.($) === !0 : !1;
|
|
8010
8010
|
return {
|
|
8011
8011
|
"grid-row--hoverable": e.rows.value.rowHover === !0,
|
|
8012
8012
|
"grid-row--hovered": e.isHoveredRow(x, v),
|
|
8013
8013
|
"grid-row--striped": e.isStripedRow(x, v),
|
|
8014
8014
|
"grid-row--group-explicit-trigger": x.kind === "group" && e.hasExplicitGroupCellRenderer.value,
|
|
8015
|
-
"grid-row--clipboard-pending":
|
|
8016
|
-
"grid-row--clipboard-pending-top":
|
|
8017
|
-
"grid-row--clipboard-pending-middle":
|
|
8018
|
-
"grid-row--clipboard-pending-bottom":
|
|
8015
|
+
"grid-row--clipboard-pending": f,
|
|
8016
|
+
"grid-row--clipboard-pending-top": f && !V,
|
|
8017
|
+
"grid-row--clipboard-pending-middle": f && V && A,
|
|
8018
|
+
"grid-row--clipboard-pending-bottom": f && !A,
|
|
8019
8019
|
"grid-row--focused": typeof e.rows.value.isRowFocused == "function" ? e.rows.value.isRowFocused(x) : !1,
|
|
8020
8020
|
"grid-row--checkbox-selected": typeof e.rows.value.isRowCheckboxSelected == "function" ? e.rows.value.isRowCheckboxSelected(x) : !1
|
|
8021
8021
|
};
|
|
8022
8022
|
}
|
|
8023
|
-
function G(x, v,
|
|
8024
|
-
if (r(
|
|
8023
|
+
function G(x, v, f, y) {
|
|
8024
|
+
if (r(f, y))
|
|
8025
8025
|
return v.pin === "left" ? { background: "var(--datagrid-pinned-left-bg)" } : v.pin === "right" ? { background: "var(--datagrid-pinned-right-bg)" } : { background: "var(--datagrid-row-background-color)" };
|
|
8026
|
-
if (a(
|
|
8026
|
+
if (a(f, y))
|
|
8027
8027
|
return { background: "var(--datagrid-selection-range-bg)" };
|
|
8028
|
-
const $ = k(x,
|
|
8028
|
+
const $ = k(x, f, {
|
|
8029
8029
|
fullBleed: v.pin === "left" || v.pin === "right"
|
|
8030
8030
|
});
|
|
8031
8031
|
return $ || {};
|
|
8032
8032
|
}
|
|
8033
|
-
function C(x, v,
|
|
8034
|
-
if (v.kind === "group" || e.resolveCellEditorMode(v,
|
|
8033
|
+
function C(x, v, f) {
|
|
8034
|
+
if (v.kind === "group" || e.resolveCellEditorMode(v, f) !== "select")
|
|
8035
8035
|
return !1;
|
|
8036
8036
|
const y = x.currentTarget instanceof HTMLElement ? x.currentTarget : null;
|
|
8037
8037
|
if (!y)
|
|
@@ -8042,8 +8042,8 @@ function Tc(e) {
|
|
|
8042
8042
|
const V = x.clientX - $.left, A = Math.min(24, Math.max(16, Math.floor($.width * 0.22)));
|
|
8043
8043
|
return V >= $.width - A;
|
|
8044
8044
|
}
|
|
8045
|
-
function i(x, v,
|
|
8046
|
-
const y = v.kind === "group" ? "none" : e.resolveCellEditorMode(v,
|
|
8045
|
+
function i(x, v, f) {
|
|
8046
|
+
const y = v.kind === "group" ? "none" : e.resolveCellEditorMode(v, f);
|
|
8047
8047
|
if (y !== "date" && y !== "datetime")
|
|
8048
8048
|
return !1;
|
|
8049
8049
|
const $ = x.currentTarget instanceof HTMLElement ? x.currentTarget : null;
|
|
@@ -8055,11 +8055,11 @@ function Tc(e) {
|
|
|
8055
8055
|
const A = x.clientX - V.left, B = Math.min(24, Math.max(16, Math.floor(V.width * 0.22)));
|
|
8056
8056
|
return A >= V.width - B;
|
|
8057
8057
|
}
|
|
8058
|
-
function p(x, v,
|
|
8058
|
+
function p(x, v, f, y, $) {
|
|
8059
8059
|
if (s(y)) {
|
|
8060
8060
|
if (v.kind === "group")
|
|
8061
8061
|
return;
|
|
8062
|
-
e.handleCellClick(v,
|
|
8062
|
+
e.handleCellClick(v, f, y, $);
|
|
8063
8063
|
return;
|
|
8064
8064
|
}
|
|
8065
8065
|
if (v.kind === "group") {
|
|
@@ -8067,10 +8067,10 @@ function Tc(e) {
|
|
|
8067
8067
|
return;
|
|
8068
8068
|
}
|
|
8069
8069
|
if (!sn(x) && !T(v, y.key) && (C(x, v, y) || i(x, v, y))) {
|
|
8070
|
-
e.startInlineEditIfAllowed(v, y,
|
|
8070
|
+
e.startInlineEditIfAllowed(v, y, f);
|
|
8071
8071
|
return;
|
|
8072
8072
|
}
|
|
8073
|
-
e.handleCellClick(v,
|
|
8073
|
+
e.handleCellClick(v, f, y, $);
|
|
8074
8074
|
}
|
|
8075
8075
|
return {
|
|
8076
8076
|
rowStateClasses: D,
|
|
@@ -8085,7 +8085,7 @@ function Tc(e) {
|
|
|
8085
8085
|
isCellOnPendingClipboardEdgeSafe: I,
|
|
8086
8086
|
isCellOnSelectionEdgeSafe: N,
|
|
8087
8087
|
isFillHandleCellSafe: M,
|
|
8088
|
-
isVisibleCellEditableByAbsoluteCoord:
|
|
8088
|
+
isVisibleCellEditableByAbsoluteCoord: b,
|
|
8089
8089
|
isCellEditableSafe: E,
|
|
8090
8090
|
isEditingCellSafe: T
|
|
8091
8091
|
};
|
|
@@ -8113,60 +8113,60 @@ function Pc(e) {
|
|
|
8113
8113
|
const r = Z(null), a = Z(null), s = Z(null), h = m(() => e.rows.value.showRowIndex !== !1), o = m(() => {
|
|
8114
8114
|
if (!h.value)
|
|
8115
8115
|
return 0;
|
|
8116
|
-
const
|
|
8116
|
+
const f = _c(
|
|
8117
8117
|
e.layout.value.indexColumnStyle.width ?? e.layout.value.indexColumnStyle.minWidth,
|
|
8118
8118
|
Gn
|
|
8119
8119
|
);
|
|
8120
|
-
return
|
|
8120
|
+
return f > 0 ? f : Gn;
|
|
8121
8121
|
}), w = m(() => {
|
|
8122
|
-
const
|
|
8122
|
+
const f = `${o.value}px`;
|
|
8123
8123
|
return {
|
|
8124
8124
|
...e.layout.value.indexColumnStyle,
|
|
8125
|
-
width:
|
|
8126
|
-
minWidth:
|
|
8127
|
-
maxWidth:
|
|
8125
|
+
width: f,
|
|
8126
|
+
minWidth: f,
|
|
8127
|
+
maxWidth: f
|
|
8128
8128
|
};
|
|
8129
8129
|
});
|
|
8130
|
-
function I(
|
|
8131
|
-
e.rows.value.handleRowClick?.(
|
|
8130
|
+
function I(f) {
|
|
8131
|
+
e.rows.value.handleRowClick?.(f);
|
|
8132
8132
|
}
|
|
8133
|
-
function N(
|
|
8133
|
+
function N(f, y, $) {
|
|
8134
8134
|
if (e.rows.value.consumeRecentRowResizeInteraction?.() === !0)
|
|
8135
8135
|
return;
|
|
8136
|
-
($.currentTarget instanceof HTMLElement ? $.currentTarget : null)?.focus({ preventScroll: !0 }), e.rows.value.handleRowIndexClick?.(
|
|
8136
|
+
($.currentTarget instanceof HTMLElement ? $.currentTarget : null)?.focus({ preventScroll: !0 }), e.rows.value.handleRowIndexClick?.(f, y, $.shiftKey);
|
|
8137
8137
|
}
|
|
8138
|
-
function M(
|
|
8139
|
-
e.rows.value.handleRowIndexKeydown?.(
|
|
8138
|
+
function M(f, y, $) {
|
|
8139
|
+
e.rows.value.handleRowIndexKeydown?.(f, y, $);
|
|
8140
8140
|
}
|
|
8141
|
-
function T(
|
|
8142
|
-
return typeof e.rows.value.isRowFocused == "function" && e.rows.value.isRowFocused(
|
|
8141
|
+
function T(f) {
|
|
8142
|
+
return typeof e.rows.value.isRowFocused == "function" && e.rows.value.isRowFocused(f) ? 0 : -1;
|
|
8143
8143
|
}
|
|
8144
|
-
function E(
|
|
8144
|
+
function E(f) {
|
|
8145
8145
|
const y = e.visibleColumns.value.length - 1;
|
|
8146
|
-
return y < 0 ? !1 : (e.selectionRanges?.value ?? (e.selectionRange.value ? [e.selectionRange.value] : [])).some((V) =>
|
|
8146
|
+
return y < 0 ? !1 : (e.selectionRanges?.value ?? (e.selectionRange.value ? [e.selectionRange.value] : [])).some((V) => f >= Math.min(V.startRow, V.endRow) && f <= Math.max(V.startRow, V.endRow) && Math.min(V.startColumn, V.endColumn) === 0 && Math.max(V.startColumn, V.endColumn) >= y);
|
|
8147
8147
|
}
|
|
8148
|
-
function f
|
|
8149
|
-
const $ = y ? e.resolveAbsoluteRowIndex(y,
|
|
8148
|
+
function b(f, y) {
|
|
8149
|
+
const $ = y ? e.resolveAbsoluteRowIndex(y, f) : e.viewportRowStart.value + f;
|
|
8150
8150
|
return E($);
|
|
8151
8151
|
}
|
|
8152
|
-
function k(
|
|
8153
|
-
return typeof e.rows.value.reorderRowsByIndex == "function" &&
|
|
8152
|
+
function k(f) {
|
|
8153
|
+
return typeof e.rows.value.reorderRowsByIndex == "function" && f.kind !== "group" && f.rowId != null && f.state.pinned === "none" && !e.isDataGridPlaceholderSurfaceRow(f);
|
|
8154
8154
|
}
|
|
8155
|
-
function D(
|
|
8156
|
-
const $ = (
|
|
8157
|
-
return !$ || $.height <= 0 ? "after" :
|
|
8155
|
+
function D(f) {
|
|
8156
|
+
const $ = (f.currentTarget instanceof HTMLElement ? f.currentTarget : null)?.getBoundingClientRect();
|
|
8157
|
+
return !$ || $.height <= 0 ? "after" : f.clientY < $.top + $.height / 2 ? "before" : "after";
|
|
8158
8158
|
}
|
|
8159
8159
|
function G() {
|
|
8160
8160
|
r.value = null, a.value = null, s.value = null;
|
|
8161
8161
|
}
|
|
8162
|
-
function C(
|
|
8163
|
-
if (!k(y) || ea(
|
|
8162
|
+
function C(f, y, $) {
|
|
8163
|
+
if (!k(y) || ea(f)) {
|
|
8164
8164
|
G();
|
|
8165
8165
|
return;
|
|
8166
8166
|
}
|
|
8167
|
-
r.value = String(y.rowId), a.value = null, s.value = null,
|
|
8167
|
+
r.value = String(y.rowId), a.value = null, s.value = null, f.dataTransfer && (f.dataTransfer.effectAllowed = "move", f.dataTransfer.dropEffect = "move", f.dataTransfer.setData("text/plain", `${String(y.rowId)}:${e.resolveAbsoluteRowIndex(y, $)}`));
|
|
8168
8168
|
}
|
|
8169
|
-
function i(
|
|
8169
|
+
function i(f, y, $) {
|
|
8170
8170
|
if (!r.value || !k(y)) {
|
|
8171
8171
|
a.value = null, s.value = null;
|
|
8172
8172
|
return;
|
|
@@ -8176,9 +8176,9 @@ function Pc(e) {
|
|
|
8176
8176
|
a.value = null, s.value = null;
|
|
8177
8177
|
return;
|
|
8178
8178
|
}
|
|
8179
|
-
|
|
8179
|
+
f.preventDefault(), f.dataTransfer && (f.dataTransfer.dropEffect = "move"), a.value = V, s.value = D(f);
|
|
8180
8180
|
}
|
|
8181
|
-
function p(
|
|
8181
|
+
function p(f, y, $) {
|
|
8182
8182
|
if (!r.value || !k(y)) {
|
|
8183
8183
|
G();
|
|
8184
8184
|
return;
|
|
@@ -8188,17 +8188,17 @@ function Pc(e) {
|
|
|
8188
8188
|
G();
|
|
8189
8189
|
return;
|
|
8190
8190
|
}
|
|
8191
|
-
|
|
8191
|
+
f.preventDefault(), e.rows.value.reorderRowsByIndex?.({
|
|
8192
8192
|
sourceRowId: r.value,
|
|
8193
8193
|
targetRowId: V,
|
|
8194
|
-
placement: D(
|
|
8194
|
+
placement: D(f)
|
|
8195
8195
|
}), G();
|
|
8196
8196
|
}
|
|
8197
|
-
function x(
|
|
8197
|
+
function x(f, y) {
|
|
8198
8198
|
const $ = Ec(
|
|
8199
8199
|
e.isHoveredRow,
|
|
8200
8200
|
e.isStripedRow,
|
|
8201
|
-
|
|
8201
|
+
f,
|
|
8202
8202
|
y,
|
|
8203
8203
|
{ fullBleed: !0 }
|
|
8204
8204
|
);
|
|
@@ -8207,8 +8207,8 @@ function Pc(e) {
|
|
|
8207
8207
|
...$
|
|
8208
8208
|
} : w.value;
|
|
8209
8209
|
}
|
|
8210
|
-
function v(
|
|
8211
|
-
const $ = e.resolveAbsoluteRowIndex(
|
|
8210
|
+
function v(f, y) {
|
|
8211
|
+
const $ = e.resolveAbsoluteRowIndex(f, y), V = f.rowId == null ? null : String(f.rowId), A = {
|
|
8212
8212
|
"grid-cell--index-reorder-source": V != null && r.value === V,
|
|
8213
8213
|
"grid-cell--index-drop-before": V != null && a.value === V && s.value === "before",
|
|
8214
8214
|
"grid-cell--index-drop-after": V != null && a.value === V && s.value === "after"
|
|
@@ -8232,7 +8232,7 @@ function Pc(e) {
|
|
|
8232
8232
|
rowIndexCellClasses: v,
|
|
8233
8233
|
rowIndexCellStyle: x,
|
|
8234
8234
|
rowIndexTabIndex: T,
|
|
8235
|
-
isFullRowSelectionSafe:
|
|
8235
|
+
isFullRowSelectionSafe: b,
|
|
8236
8236
|
isRowIndexDraggable: k,
|
|
8237
8237
|
handleRowClickSafe: I,
|
|
8238
8238
|
handleRowIndexClickSafe: N,
|
|
@@ -8260,8 +8260,8 @@ function Kn(e) {
|
|
|
8260
8260
|
return { target: e };
|
|
8261
8261
|
}
|
|
8262
8262
|
function Ac(e) {
|
|
8263
|
-
const r = Z(null), a = Z(null), s = Z(null), h = Z(0), o = Z(0), w = Z(0), I = Z(0), N = Z(0), M = Z(0), T = Z(0), E = Z(0),
|
|
8264
|
-
let G = !1, C = null, i = null, p = null, x = !1, v = null,
|
|
8263
|
+
const r = Z(null), a = Z(null), s = Z(null), h = Z(0), o = Z(0), w = Z(0), I = Z(0), N = Z(0), M = Z(0), T = Z(0), E = Z(0), b = Z(0), k = Z(!1), D = Z(!0);
|
|
8264
|
+
let G = !1, C = null, i = null, p = null, x = !1, v = null, f = 0, y = 0;
|
|
8265
8265
|
const $ = e.perfTraceEnabled ?? wa(), V = pd({
|
|
8266
8266
|
resolveSourceScrollTop: () => r.value?.scrollTop ?? 0,
|
|
8267
8267
|
mode: "direct-transform",
|
|
@@ -8322,10 +8322,10 @@ function Ac(e) {
|
|
|
8322
8322
|
};
|
|
8323
8323
|
}
|
|
8324
8324
|
function Q(j) {
|
|
8325
|
-
|
|
8325
|
+
f = j.scrollTop, y = j.scrollLeft;
|
|
8326
8326
|
}
|
|
8327
8327
|
function O(j) {
|
|
8328
|
-
return j.scrollTop !==
|
|
8328
|
+
return j.scrollTop !== f || j.scrollLeft !== y;
|
|
8329
8329
|
}
|
|
8330
8330
|
function F(j) {
|
|
8331
8331
|
Q(j), w.value !== j.scrollTop && (w.value = j.scrollTop), I.value !== j.scrollLeft && (I.value = j.scrollLeft);
|
|
@@ -8339,7 +8339,7 @@ function Ac(e) {
|
|
|
8339
8339
|
scope: "stageScrollFrame",
|
|
8340
8340
|
ts: Date.now(),
|
|
8341
8341
|
totalMs: ht() - j,
|
|
8342
|
-
scrollTop: he?.scrollTop ??
|
|
8342
|
+
scrollTop: he?.scrollTop ?? f,
|
|
8343
8343
|
scrollLeft: he?.scrollLeft ?? y,
|
|
8344
8344
|
hasScrollState: he ? 1 : 0,
|
|
8345
8345
|
syncedPinnedBottomScrollLeft: Le ? 1 : 0,
|
|
@@ -8392,7 +8392,7 @@ function Ac(e) {
|
|
|
8392
8392
|
const he = j.target;
|
|
8393
8393
|
if (!he)
|
|
8394
8394
|
return;
|
|
8395
|
-
const Le =
|
|
8395
|
+
const Le = f, ze = y, be = se(he);
|
|
8396
8396
|
if (O(be)) {
|
|
8397
8397
|
if (e.viewport.value.handleViewportScroll(j), Fe(), V.syncNow(be.scrollTop), te(be), be.scrollLeft !== ze && le(), be.scrollLeft !== ze && be.scrollTop === Le) {
|
|
8398
8398
|
U("center-scroll");
|
|
@@ -8428,7 +8428,7 @@ function Ac(e) {
|
|
|
8428
8428
|
bodyViewportClientHeight: M,
|
|
8429
8429
|
pinnedTopViewportClientHeight: T,
|
|
8430
8430
|
pinnedBottomViewportClientHeight: E,
|
|
8431
|
-
bodyViewportTopOffset:
|
|
8431
|
+
bodyViewportTopOffset: b,
|
|
8432
8432
|
headerShellHeight: h,
|
|
8433
8433
|
headerViewportClientWidth: o,
|
|
8434
8434
|
isBodyViewportScrolling: k,
|
|
@@ -8460,7 +8460,7 @@ function va(e) {
|
|
|
8460
8460
|
maxWidth: `${e.value}px`
|
|
8461
8461
|
}));
|
|
8462
8462
|
}
|
|
8463
|
-
function Vr(e, r, a, s, h, o, w, I, N, M, T, E,
|
|
8463
|
+
function Vr(e, r, a, s, h, o, w, I, N, M, T, E, b, k, D) {
|
|
8464
8464
|
return m(() => ({
|
|
8465
8465
|
side: e,
|
|
8466
8466
|
width: r.value,
|
|
@@ -8477,7 +8477,7 @@ function Vr(e, r, a, s, h, o, w, I, N, M, T, E, f, k, D) {
|
|
|
8477
8477
|
movePreviewOverlaySegments: M.value,
|
|
8478
8478
|
overlayLanes: T.value,
|
|
8479
8479
|
selectionSeamOverlaySegments: E.value,
|
|
8480
|
-
fillPreviewSeamOverlaySegments:
|
|
8480
|
+
fillPreviewSeamOverlaySegments: b.value,
|
|
8481
8481
|
movePreviewSeamOverlaySegments: k.value,
|
|
8482
8482
|
seamOverlayLanes: D.value
|
|
8483
8483
|
}));
|
|
@@ -8493,7 +8493,7 @@ function Lc(e) {
|
|
|
8493
8493
|
left: `${r.value}px`,
|
|
8494
8494
|
width: `${Math.max(0, e.layoutRuntime.value.bodyViewportClientWidth)}px`,
|
|
8495
8495
|
height: `${Math.max(0, e.layoutRuntime.value.bodyViewportClientHeight)}px`
|
|
8496
|
-
})),
|
|
8496
|
+
})), b = m(() => ({
|
|
8497
8497
|
left: `${r.value}px`,
|
|
8498
8498
|
width: `${Math.max(0, e.layoutRuntime.value.bodyViewportClientWidth)}px`,
|
|
8499
8499
|
height: `${Math.max(0, e.layoutRuntime.value.pinnedBottomViewportClientHeight)}px`
|
|
@@ -8606,7 +8606,7 @@ function Lc(e) {
|
|
|
8606
8606
|
rightTrackStyle: M,
|
|
8607
8607
|
centerHeaderChromeCanvasStyle: T,
|
|
8608
8608
|
centerChromeCanvasStyle: E,
|
|
8609
|
-
centerTopChromeCanvasStyle:
|
|
8609
|
+
centerTopChromeCanvasStyle: b,
|
|
8610
8610
|
centerBottomChromeCanvasStyle: k,
|
|
8611
8611
|
leftPinnedPane: D,
|
|
8612
8612
|
rightPinnedPane: G,
|
|
@@ -8818,10 +8818,10 @@ function Hc(e) {
|
|
|
8818
8818
|
), o = Math.max(1, Math.trunc(Number.isFinite(e.baseRowHeight) ? e.baseRowHeight : 1)), w = Number.isFinite(e.topSpacerHeight) ? Math.max(0, e.topSpacerHeight) : 0, I = [];
|
|
8819
8819
|
let N = w;
|
|
8820
8820
|
for (let M = s; M <= h; M += 1) {
|
|
8821
|
-
const T = e.resolveRowOffset?.(M), E = Number.isFinite(T) ? Math.max(0, T) : N,
|
|
8821
|
+
const T = e.resolveRowOffset?.(M), E = Number.isFinite(T) ? Math.max(0, T) : N, b = e.resolveRowHeight?.(M), k = e.resolveRowOffset?.(M + 1), D = Number.isFinite(k) && Number.isFinite(T) ? Math.max(1, k - T) : null, G = Math.max(
|
|
8822
8822
|
1,
|
|
8823
8823
|
Math.trunc(
|
|
8824
|
-
Number.isFinite(
|
|
8824
|
+
Number.isFinite(b) ? b : D ?? o
|
|
8825
8825
|
)
|
|
8826
8826
|
);
|
|
8827
8827
|
I.push({ rowIndex: M, top: E, height: G }), N = E + G;
|
|
@@ -8939,7 +8939,7 @@ function Fc(e) {
|
|
|
8939
8939
|
...A,
|
|
8940
8940
|
...B
|
|
8941
8941
|
];
|
|
8942
|
-
}),
|
|
8942
|
+
}), b = m(() => e.pinnedBottomRows.value.flatMap((V, A) => {
|
|
8943
8943
|
const B = T.value[A], K = jn(
|
|
8944
8944
|
e.rows,
|
|
8945
8945
|
e.isHoveredRow,
|
|
@@ -8993,7 +8993,7 @@ function Fc(e) {
|
|
|
8993
8993
|
centerScrollLeft: e.bodyViewportScrollLeft.value
|
|
8994
8994
|
})), G = m(() => Aa({
|
|
8995
8995
|
rowMetrics: T.value,
|
|
8996
|
-
rowBands:
|
|
8996
|
+
rowBands: b.value,
|
|
8997
8997
|
scrollTop: 0,
|
|
8998
8998
|
leftPaneWidth: e.leftPaneWidth.value,
|
|
8999
8999
|
centerPaneWidth: e.bodyViewportClientWidth.value,
|
|
@@ -9038,16 +9038,16 @@ function Fc(e) {
|
|
|
9038
9038
|
M.value,
|
|
9039
9039
|
T.value,
|
|
9040
9040
|
E.value,
|
|
9041
|
-
|
|
9041
|
+
b.value
|
|
9042
9042
|
],
|
|
9043
9043
|
() => {
|
|
9044
9044
|
s.value += 1;
|
|
9045
9045
|
}
|
|
9046
9046
|
);
|
|
9047
|
-
const C = m(() => M.value.map((V) => `${V.top}:${V.height}`).join("|")), i = m(() => T.value.map((V) => `${V.top}:${V.height}`).join("|")), p = m(() => E.value.map((V) => `${V.kind}:${V.top}:${V.height}`).join("|")), x = m(() =>
|
|
9047
|
+
const C = m(() => M.value.map((V) => `${V.top}:${V.height}`).join("|")), i = m(() => T.value.map((V) => `${V.top}:${V.height}`).join("|")), p = m(() => E.value.map((V) => `${V.kind}:${V.top}:${V.height}`).join("|")), x = m(() => b.value.map((V) => `${V.kind}:${V.top}:${V.height}`).join("|")), v = m(() => [
|
|
9048
9048
|
e.indexColumnWidthPx.value,
|
|
9049
9049
|
...(e.pinnedLeftColumns.value ?? []).map(e.resolveColumnWidth)
|
|
9050
|
-
].join("|")),
|
|
9050
|
+
].join("|")), f = m(() => [
|
|
9051
9051
|
e.resolveLeftColumnSpacerWidth(),
|
|
9052
9052
|
...(e.renderedColumns.value ?? []).map(e.resolveColumnWidth),
|
|
9053
9053
|
e.resolveRightColumnSpacerWidth()
|
|
@@ -9066,7 +9066,7 @@ function Fc(e) {
|
|
|
9066
9066
|
rowBandsSignature: p,
|
|
9067
9067
|
pinnedBottomRowBandsSignature: x,
|
|
9068
9068
|
leftChromeColumnsSignature: v,
|
|
9069
|
-
centerChromeColumnsSignature:
|
|
9069
|
+
centerChromeColumnsSignature: f,
|
|
9070
9070
|
rightChromeColumnsSignature: y,
|
|
9071
9071
|
headerPivotGroupsSignature: $,
|
|
9072
9072
|
resolveVisibleRowMetricsFromDom: (V) => Nn(e.bodyViewportEl, e.displayRows, V)
|
|
@@ -9195,50 +9195,50 @@ function Xn(e) {
|
|
|
9195
9195
|
function $c(e) {
|
|
9196
9196
|
let r = 0, a = null, s = "full";
|
|
9197
9197
|
function h() {
|
|
9198
|
-
const
|
|
9199
|
-
!
|
|
9198
|
+
const b = e.bottomViewportEl.value;
|
|
9199
|
+
!b || b.scrollLeft === e.bodyViewportScrollLeft.value || (b.scrollLeft = e.bodyViewportScrollLeft.value);
|
|
9200
9200
|
}
|
|
9201
9201
|
function o() {
|
|
9202
9202
|
e.pinnedBottomViewportClientHeight.value = e.bottomViewportEl.value?.clientHeight ?? 0;
|
|
9203
9203
|
}
|
|
9204
9204
|
function w() {
|
|
9205
|
-
const
|
|
9206
|
-
if (!
|
|
9205
|
+
const b = e.bodyViewportEl.value, k = e.bodyShellRef.value;
|
|
9206
|
+
if (!b || !k)
|
|
9207
9207
|
return;
|
|
9208
|
-
e.bodyViewportScrollTop.value =
|
|
9209
|
-
const D =
|
|
9208
|
+
e.bodyViewportScrollTop.value = b.scrollTop, e.bodyViewportScrollLeft.value = b.scrollLeft, e.bodyViewportClientWidth.value = b.clientWidth, e.bodyViewportClientHeight.value = b.clientHeight;
|
|
9209
|
+
const D = b.getBoundingClientRect(), G = k.getBoundingClientRect();
|
|
9210
9210
|
e.bodyViewportTopOffset.value = Math.max(0, D.top - G.top), e.headerShellHeight.value = e.stageRootEl.value?.querySelector(".grid-header-shell")?.getBoundingClientRect().height ?? 0;
|
|
9211
9211
|
const C = e.stageRootEl.value?.querySelector(".grid-header-viewport");
|
|
9212
9212
|
e.headerViewportClientWidth.value = C?.clientWidth ?? e.bodyViewportClientWidth.value, o(), h();
|
|
9213
9213
|
}
|
|
9214
|
-
function I(
|
|
9214
|
+
function I(b = "full") {
|
|
9215
9215
|
const k = e.perfTraceEnabled ? ht() : 0;
|
|
9216
9216
|
r = 0, s = "full";
|
|
9217
|
-
const D = e.headerChromeRenderModel.value, G = e.chromeRenderModel.value, C = e.pinnedBottomChromeRenderModel.value, i = cr(e.stageRootEl, "--datagrid-row-divider-color", "rgba(0, 0, 0, 0.08)"), p = cr(e.stageRootEl, "--datagrid-column-divider-color", "rgba(0, 0, 0, 0.08)"), x = cr(e.stageRootEl, "--datagrid-header-column-divider-color", p), v = Ka(e.stageRootEl, "--datagrid-row-divider-size", 1),
|
|
9217
|
+
const D = e.headerChromeRenderModel.value, G = e.chromeRenderModel.value, C = e.pinnedBottomChromeRenderModel.value, i = cr(e.stageRootEl, "--datagrid-row-divider-color", "rgba(0, 0, 0, 0.08)"), p = cr(e.stageRootEl, "--datagrid-column-divider-color", "rgba(0, 0, 0, 0.08)"), x = cr(e.stageRootEl, "--datagrid-header-column-divider-color", p), v = Ka(e.stageRootEl, "--datagrid-row-divider-size", 1), f = Ka(e.stageRootEl, "--datagrid-column-divider-size", 1), y = Ka(e.stageRootEl, "--datagrid-header-column-divider-size", f), $ = b === "full" ? pr(e.leftHeaderChromeCanvasEl.value, D.left.width, D.left.height) : null;
|
|
9218
9218
|
$ && Na($, D.left, x, y, e.hasPivotHeaderGroups);
|
|
9219
9219
|
const V = pr(e.centerHeaderChromeCanvasEl.value, D.center.width, D.center.height);
|
|
9220
9220
|
Na(V, D.center, x, y, e.hasPivotHeaderGroups);
|
|
9221
|
-
const A =
|
|
9221
|
+
const A = b === "full" ? pr(e.rightHeaderChromeCanvasEl.value, D.right.width, D.right.height) : null;
|
|
9222
9222
|
A && Na(A, D.right, x, y, e.hasPivotHeaderGroups);
|
|
9223
|
-
const B =
|
|
9224
|
-
B && Hr(e.stageRootEl, B, G.left, i, v, p,
|
|
9223
|
+
const B = b === "full" ? pr(e.leftChromeCanvasEl.value, G.left.width, G.left.height) : null;
|
|
9224
|
+
B && Hr(e.stageRootEl, B, G.left, i, v, p, f);
|
|
9225
9225
|
const K = pr(e.centerChromeCanvasEl.value, G.center.width, G.center.height);
|
|
9226
|
-
Hr(e.stageRootEl, K, G.center, i, v, p,
|
|
9227
|
-
const ae =
|
|
9228
|
-
ae && Hr(e.stageRootEl, ae, G.right, i, v, p,
|
|
9229
|
-
const ne =
|
|
9230
|
-
ne && Hr(e.stageRootEl, ne, C.left, i, v, p,
|
|
9226
|
+
Hr(e.stageRootEl, K, G.center, i, v, p, f);
|
|
9227
|
+
const ae = b === "full" ? pr(e.rightChromeCanvasEl.value, G.right.width, G.right.height) : null;
|
|
9228
|
+
ae && Hr(e.stageRootEl, ae, G.right, i, v, p, f);
|
|
9229
|
+
const ne = b === "full" ? pr(e.leftBottomChromeCanvasEl.value, C.left.width, C.left.height) : null;
|
|
9230
|
+
ne && Hr(e.stageRootEl, ne, C.left, i, v, p, f);
|
|
9231
9231
|
const se = pr(e.centerBottomChromeCanvasEl.value, C.center.width, C.center.height);
|
|
9232
|
-
Hr(e.stageRootEl, se, C.center, i, v, p,
|
|
9233
|
-
const Q =
|
|
9234
|
-
if (Q && Hr(e.stageRootEl, Q, C.right, i, v, p,
|
|
9232
|
+
Hr(e.stageRootEl, se, C.center, i, v, p, f);
|
|
9233
|
+
const Q = b === "full" ? pr(e.rightBottomChromeCanvasEl.value, C.right.width, C.right.height) : null;
|
|
9234
|
+
if (Q && Hr(e.stageRootEl, Q, C.right, i, v, p, f), e.perfTraceEnabled) {
|
|
9235
9235
|
const O = ht();
|
|
9236
9236
|
gr({
|
|
9237
9237
|
scope: "chromeDraw",
|
|
9238
9238
|
ts: O,
|
|
9239
9239
|
totalMs: O - k,
|
|
9240
|
-
redrawMode:
|
|
9241
|
-
drawnPaneCount: Gc(
|
|
9240
|
+
redrawMode: b,
|
|
9241
|
+
drawnPaneCount: Gc(b, D, G, C),
|
|
9242
9242
|
bodyLineCount: ja(G),
|
|
9243
9243
|
headerLineCount: ja(D),
|
|
9244
9244
|
pinnedBottomLineCount: ja(C),
|
|
@@ -9247,8 +9247,8 @@ function $c(e) {
|
|
|
9247
9247
|
});
|
|
9248
9248
|
}
|
|
9249
9249
|
}
|
|
9250
|
-
function N(
|
|
9251
|
-
if (s = r === 0 ?
|
|
9250
|
+
function N(b = "full") {
|
|
9251
|
+
if (s = r === 0 ? b : qn(s, b), typeof window > "u") {
|
|
9252
9252
|
I(s);
|
|
9253
9253
|
return;
|
|
9254
9254
|
}
|
|
@@ -9256,8 +9256,8 @@ function $c(e) {
|
|
|
9256
9256
|
I(s);
|
|
9257
9257
|
}));
|
|
9258
9258
|
}
|
|
9259
|
-
function M(
|
|
9260
|
-
const k = r === 0 ?
|
|
9259
|
+
function M(b = "full") {
|
|
9260
|
+
const k = r === 0 ? b : qn(s, b);
|
|
9261
9261
|
r !== 0 && typeof window < "u" && (window.cancelAnimationFrame(r), r = 0), I(k);
|
|
9262
9262
|
}
|
|
9263
9263
|
function T() {
|
|
@@ -9266,8 +9266,8 @@ function $c(e) {
|
|
|
9266
9266
|
a || (a = new ResizeObserver(() => {
|
|
9267
9267
|
w(), N();
|
|
9268
9268
|
})), a.disconnect(), e.bodyViewportEl.value && a.observe(e.bodyViewportEl.value), e.bottomViewportEl.value && a.observe(e.bottomViewportEl.value), e.bodyShellRef.value && a.observe(e.bodyShellRef.value);
|
|
9269
|
-
const
|
|
9270
|
-
|
|
9269
|
+
const b = e.stageRootEl.value?.querySelector(".grid-header-shell");
|
|
9270
|
+
b && a.observe(b);
|
|
9271
9271
|
const k = e.stageRootEl.value?.querySelector(".grid-header-viewport");
|
|
9272
9272
|
k && a.observe(k);
|
|
9273
9273
|
}
|
|
@@ -9373,7 +9373,7 @@ function Ht(e, r, a, s, h, o = Math.max(0, e.bodyViewportClientHeight)) {
|
|
|
9373
9373
|
break;
|
|
9374
9374
|
x += e.resolveColumnWidth(K);
|
|
9375
9375
|
}
|
|
9376
|
-
const v = p.reduce((K, ae) => K + e.resolveColumnWidth(ae), 0),
|
|
9376
|
+
const v = p.reduce((K, ae) => K + e.resolveColumnWidth(ae), 0), f = e.columnIndexByKey(p[p.length - 1]?.key ?? ""), y = e.columnIndexByKey(e.pinnedLeftColumns[e.pinnedLeftColumns.length - 1]?.key ?? ""), $ = e.leftPaneWidth, V = y >= 0 && f === y, A = x <= 0 ? 0 : 1, B = $ > 0 && x + v >= $ ? 0 : 1;
|
|
9377
9377
|
return [
|
|
9378
9378
|
qa(
|
|
9379
9379
|
`${s}-left-${r.startRowOffset}-${r.endRowOffset}`,
|
|
@@ -9382,7 +9382,7 @@ function Ht(e, r, a, s, h, o = Math.max(0, e.bodyViewportClientHeight)) {
|
|
|
9382
9382
|
v,
|
|
9383
9383
|
r.height,
|
|
9384
9384
|
{
|
|
9385
|
-
omitRightBorder: V || r.endColumnIndex >
|
|
9385
|
+
omitRightBorder: V || r.endColumnIndex > f,
|
|
9386
9386
|
topBleed: I,
|
|
9387
9387
|
bottomBleed: N,
|
|
9388
9388
|
leftBleed: A,
|
|
@@ -9408,7 +9408,7 @@ function Ht(e, r, a, s, h, o = Math.max(0, e.bodyViewportClientHeight)) {
|
|
|
9408
9408
|
break;
|
|
9409
9409
|
x += e.resolveColumnWidth(A);
|
|
9410
9410
|
}
|
|
9411
|
-
const v = p.reduce((A, B) => A + e.resolveColumnWidth(B), 0),
|
|
9411
|
+
const v = p.reduce((A, B) => A + e.resolveColumnWidth(B), 0), f = e.columnIndexByKey(p[0]?.key ?? ""), y = e.columnIndexByKey(p[p.length - 1]?.key ?? ""), $ = x <= 0 ? 0 : 1, V = e.layoutGridContentWidth > 0 && x + v >= e.layoutGridContentWidth ? 0 : 1;
|
|
9412
9412
|
return [
|
|
9413
9413
|
qa(
|
|
9414
9414
|
`${s}-center-${r.startRowOffset}-${r.endRowOffset}`,
|
|
@@ -9417,7 +9417,7 @@ function Ht(e, r, a, s, h, o = Math.max(0, e.bodyViewportClientHeight)) {
|
|
|
9417
9417
|
v,
|
|
9418
9418
|
r.height,
|
|
9419
9419
|
{
|
|
9420
|
-
omitLeftBorder: r.startColumnIndex <
|
|
9420
|
+
omitLeftBorder: r.startColumnIndex < f,
|
|
9421
9421
|
omitRightBorder: r.endColumnIndex > y,
|
|
9422
9422
|
topBleed: I,
|
|
9423
9423
|
bottomBleed: N,
|
|
@@ -9443,7 +9443,7 @@ function Ht(e, r, a, s, h, o = Math.max(0, e.bodyViewportClientHeight)) {
|
|
|
9443
9443
|
break;
|
|
9444
9444
|
T += e.resolveColumnWidth(p);
|
|
9445
9445
|
}
|
|
9446
|
-
const E = M.reduce((p, x) => p + e.resolveColumnWidth(x), 0),
|
|
9446
|
+
const E = M.reduce((p, x) => p + e.resolveColumnWidth(x), 0), b = e.columnIndexByKey(M[0]?.key ?? ""), k = e.columnIndexByKey(e.pinnedRightColumns[0]?.key ?? ""), D = e.rightPaneWidth, G = k >= 0 && b === k, C = T <= 0 ? 0 : 1, i = D > 0 && T + E >= D ? 0 : 1;
|
|
9447
9447
|
return [
|
|
9448
9448
|
qa(
|
|
9449
9449
|
`${s}-right-${r.startRowOffset}-${r.endRowOffset}`,
|
|
@@ -9452,7 +9452,7 @@ function Ht(e, r, a, s, h, o = Math.max(0, e.bodyViewportClientHeight)) {
|
|
|
9452
9452
|
E,
|
|
9453
9453
|
r.height,
|
|
9454
9454
|
{
|
|
9455
|
-
omitLeftBorder: G || r.startColumnIndex <
|
|
9455
|
+
omitLeftBorder: G || r.startColumnIndex < b,
|
|
9456
9456
|
topBleed: I,
|
|
9457
9457
|
bottomBleed: N,
|
|
9458
9458
|
leftBleed: C,
|
|
@@ -9509,7 +9509,7 @@ function br(e, r, a, s, h, o = Math.max(0, e.bodyViewportClientHeight)) {
|
|
|
9509
9509
|
const T = e.columnIndexByKey(M[0]?.key ?? ""), E = e.columnIndexByKey(e.pinnedRightColumns[0]?.key ?? "");
|
|
9510
9510
|
if (T !== E)
|
|
9511
9511
|
return [];
|
|
9512
|
-
const
|
|
9512
|
+
const b = r.startColumnIndex < T;
|
|
9513
9513
|
return [
|
|
9514
9514
|
Qn(
|
|
9515
9515
|
`${s}-right-seam-${r.startRowOffset}-${r.endRowOffset}`,
|
|
@@ -9517,7 +9517,7 @@ function br(e, r, a, s, h, o = Math.max(0, e.bodyViewportClientHeight)) {
|
|
|
9517
9517
|
r.height,
|
|
9518
9518
|
"right",
|
|
9519
9519
|
{
|
|
9520
|
-
seamEdge:
|
|
9520
|
+
seamEdge: b ? void 0 : "left",
|
|
9521
9521
|
topBleed: I,
|
|
9522
9522
|
bottomBleed: N,
|
|
9523
9523
|
borderColor: h?.borderColor,
|
|
@@ -9677,7 +9677,7 @@ function Nc(e) {
|
|
|
9677
9677
|
)), E = m(() => Qr(
|
|
9678
9678
|
e.resolvePinnedBottomVisibleRangeBounds(r.value),
|
|
9679
9679
|
e.pinnedBottomRowMetrics.value
|
|
9680
|
-
)),
|
|
9680
|
+
)), b = {
|
|
9681
9681
|
borderColor: "var(--datagrid-selection-overlay-border)"
|
|
9682
9682
|
}, k = {
|
|
9683
9683
|
borderColor: "var(--datagrid-selection-overlay-fill-border)",
|
|
@@ -9691,65 +9691,65 @@ function Nc(e) {
|
|
|
9691
9691
|
w.value,
|
|
9692
9692
|
"left",
|
|
9693
9693
|
"selection",
|
|
9694
|
-
|
|
9695
|
-
)),
|
|
9694
|
+
b
|
|
9695
|
+
)), f = we(e, "selection", "body-seam", "left", () => Zr(
|
|
9696
9696
|
e.overlayGeometryContext.value,
|
|
9697
9697
|
i.value,
|
|
9698
9698
|
"left",
|
|
9699
9699
|
"selection",
|
|
9700
|
-
|
|
9700
|
+
b
|
|
9701
9701
|
)), y = we(e, "selection", "body", "center", () => _r(
|
|
9702
9702
|
e.overlayGeometryContext.value,
|
|
9703
9703
|
w.value,
|
|
9704
9704
|
"center",
|
|
9705
9705
|
"selection",
|
|
9706
|
-
|
|
9706
|
+
b
|
|
9707
9707
|
)), $ = we(e, "selection", "body", "right", () => _r(
|
|
9708
9708
|
e.overlayGeometryContext.value,
|
|
9709
9709
|
w.value,
|
|
9710
9710
|
"right",
|
|
9711
9711
|
"selection",
|
|
9712
|
-
|
|
9712
|
+
b
|
|
9713
9713
|
)), V = we(e, "selection", "body-seam", "right", () => Zr(
|
|
9714
9714
|
e.overlayGeometryContext.value,
|
|
9715
9715
|
i.value,
|
|
9716
9716
|
"right",
|
|
9717
9717
|
"selection",
|
|
9718
|
-
|
|
9718
|
+
b
|
|
9719
9719
|
)), A = we(e, "selection", "pinned-bottom", "left", () => _r(
|
|
9720
9720
|
e.overlayGeometryContext.value,
|
|
9721
9721
|
M.value,
|
|
9722
9722
|
"left",
|
|
9723
9723
|
"selection",
|
|
9724
|
-
|
|
9724
|
+
b,
|
|
9725
9725
|
C.value
|
|
9726
9726
|
)), B = we(e, "selection", "pinned-bottom-seam", "left", () => Zr(
|
|
9727
9727
|
e.overlayGeometryContext.value,
|
|
9728
9728
|
M.value,
|
|
9729
9729
|
"left",
|
|
9730
9730
|
"selection",
|
|
9731
|
-
|
|
9731
|
+
b,
|
|
9732
9732
|
C.value
|
|
9733
9733
|
)), K = we(e, "selection", "pinned-bottom", "center", () => _r(
|
|
9734
9734
|
e.overlayGeometryContext.value,
|
|
9735
9735
|
M.value,
|
|
9736
9736
|
"center",
|
|
9737
9737
|
"selection",
|
|
9738
|
-
|
|
9738
|
+
b,
|
|
9739
9739
|
C.value
|
|
9740
9740
|
)), ae = we(e, "selection", "pinned-bottom", "right", () => _r(
|
|
9741
9741
|
e.overlayGeometryContext.value,
|
|
9742
9742
|
M.value,
|
|
9743
9743
|
"right",
|
|
9744
9744
|
"selection",
|
|
9745
|
-
|
|
9745
|
+
b,
|
|
9746
9746
|
C.value
|
|
9747
9747
|
)), ne = we(e, "selection", "pinned-bottom-seam", "right", () => Zr(
|
|
9748
9748
|
e.overlayGeometryContext.value,
|
|
9749
9749
|
M.value,
|
|
9750
9750
|
"right",
|
|
9751
9751
|
"selection",
|
|
9752
|
-
|
|
9752
|
+
b,
|
|
9753
9753
|
C.value
|
|
9754
9754
|
)), se = we(e, "fill-preview", "body", "left", () => Ht(
|
|
9755
9755
|
e.overlayGeometryContext.value,
|
|
@@ -9906,7 +9906,7 @@ function Nc(e) {
|
|
|
9906
9906
|
})), j = sr(e, "custom", "body", "left", () => ke.value.map(({ overlay: oe, body: pe }) => Fr(e.overlayGeometryContext.value, oe, "left", pe)).filter((oe) => oe != null)), he = sr(e, "custom", "body", "center", () => ke.value.map(({ overlay: oe, body: pe }) => Fr(e.overlayGeometryContext.value, oe, "center", pe)).filter((oe) => oe != null)), Le = sr(e, "custom", "body", "right", () => ke.value.map(({ overlay: oe, body: pe }) => Fr(e.overlayGeometryContext.value, oe, "right", pe)).filter((oe) => oe != null)), ze = sr(e, "custom", "body-seam", "left", () => ke.value.map(({ overlay: oe, bodyPinnedPaneSeam: pe }) => ha(e.overlayGeometryContext.value, oe, "left", pe)).filter((oe) => oe != null)), be = sr(e, "custom", "body-seam", "right", () => ke.value.map(({ overlay: oe, bodyPinnedPaneSeam: pe }) => ha(e.overlayGeometryContext.value, oe, "right", pe)).filter((oe) => oe != null)), nt = sr(e, "custom", "pinned-bottom", "left", () => ke.value.map(({ overlay: oe, pinnedBottom: pe }) => Fr(e.overlayGeometryContext.value, oe, "left", pe, C.value)).filter((oe) => oe != null)), ce = sr(e, "custom", "pinned-bottom", "center", () => ke.value.map(({ overlay: oe, pinnedBottom: pe }) => Fr(e.overlayGeometryContext.value, oe, "center", pe, C.value)).filter((oe) => oe != null)), xt = sr(e, "custom", "pinned-bottom", "right", () => ke.value.map(({ overlay: oe, pinnedBottom: pe }) => Fr(e.overlayGeometryContext.value, oe, "right", pe, C.value)).filter((oe) => oe != null)), tt = sr(e, "custom", "pinned-bottom-seam", "left", () => ke.value.map(({ overlay: oe, pinnedBottom: pe }) => ha(e.overlayGeometryContext.value, oe, "left", pe, C.value)).filter((oe) => oe != null)), ar = sr(e, "custom", "pinned-bottom-seam", "right", () => ke.value.map(({ overlay: oe, pinnedBottom: pe }) => ha(e.overlayGeometryContext.value, oe, "right", pe, C.value)).filter((oe) => oe != null));
|
|
9907
9907
|
return {
|
|
9908
9908
|
leftSelectionOverlaySegments: v,
|
|
9909
|
-
leftSelectionSeamOverlaySegments:
|
|
9909
|
+
leftSelectionSeamOverlaySegments: f,
|
|
9910
9910
|
centerSelectionOverlaySegments: y,
|
|
9911
9911
|
rightSelectionOverlaySegments: $,
|
|
9912
9912
|
rightSelectionSeamOverlaySegments: V,
|
|
@@ -10002,16 +10002,16 @@ function Pl(e) {
|
|
|
10002
10002
|
const E = Array.from(T.touches).find((i) => i.identifier === r?.identifier);
|
|
10003
10003
|
if (!E)
|
|
10004
10004
|
return;
|
|
10005
|
-
const
|
|
10006
|
-
if (!
|
|
10005
|
+
const b = r.container?.isConnected ? r.container : h(T.target);
|
|
10006
|
+
if (!b)
|
|
10007
10007
|
return;
|
|
10008
|
-
const k = E.clientX - r.startX, D = E.clientY - r.startY, G = Math.max(0,
|
|
10008
|
+
const k = E.clientX - r.startX, D = E.clientY - r.startY, G = Math.max(0, b.scrollHeight - b.clientHeight), C = Math.max(0, b.scrollWidth - b.clientWidth);
|
|
10009
10009
|
!r.lockedAxis && (r.lockedAxis = qc({
|
|
10010
10010
|
deltaX: k,
|
|
10011
10011
|
deltaY: D,
|
|
10012
10012
|
maxScrollLeft: C,
|
|
10013
10013
|
maxScrollTop: G
|
|
10014
|
-
}), !r.lockedAxis) || (T.preventDefault(), r.lockedAxis === "x" && C > fa && (
|
|
10014
|
+
}), !r.lockedAxis) || (T.preventDefault(), r.lockedAxis === "x" && C > fa && (b.scrollLeft = el(r.startScrollLeft - k, C)), r.lockedAxis === "y" && G > fa && (b.scrollTop = el(r.startScrollTop - D, G)));
|
|
10015
10015
|
};
|
|
10016
10016
|
return e.root.addEventListener("touchstart", N, { capture: !0, passive: !0 }), e.root.addEventListener("touchend", I, { capture: !0, passive: !0 }), e.root.addEventListener("touchcancel", I, { capture: !0, passive: !0 }), () => {
|
|
10017
10017
|
w(), e.root.removeEventListener("touchstart", N, !0), e.root.removeEventListener("touchend", I, !0), e.root.removeEventListener("touchcancel", I, !0);
|
|
@@ -10099,10 +10099,10 @@ const tl = 8, Xc = 700, Uc = 520, Yc = /* @__PURE__ */ jt({
|
|
|
10099
10099
|
s
|
|
10100
10100
|
);
|
|
10101
10101
|
bu(h);
|
|
10102
|
-
const o = h.mode, w = h.rowHeightMode, I = h.layoutMode, N = h.layout, M = h.viewport, T = h.columns, E = h.rows,
|
|
10103
|
-
const g =
|
|
10104
|
-
return Array.isArray(g) && g.length > 0 ? g :
|
|
10105
|
-
}), $ = m(() =>
|
|
10102
|
+
const o = h.mode, w = h.rowHeightMode, I = h.layoutMode, N = h.layout, M = h.viewport, T = h.columns, E = h.rows, b = h.selection, k = h.editing, D = h.cells, G = h.interaction, C = m(() => T.value?.visibleColumns ?? []), i = m(() => T.value?.renderedColumns ?? []), p = m(() => E.value?.displayRows ?? []), x = m(() => E.value?.pinnedTopRows ?? []), v = m(() => E.value?.pinnedBottomRows ?? []), f = m(() => b.value?.selectionRange ?? null), y = m(() => {
|
|
10103
|
+
const g = b.value?.selectionRanges;
|
|
10104
|
+
return Array.isArray(g) && g.length > 0 ? g : f.value ? [f.value] : [];
|
|
10105
|
+
}), $ = m(() => b.value?.isFillDragging === !0), V = m(() => C.value.some((g) => oc(g)));
|
|
10106
10106
|
function A(g) {
|
|
10107
10107
|
return N.value.columnStyle(g);
|
|
10108
10108
|
}
|
|
@@ -10423,7 +10423,7 @@ const tl = 8, Xc = 700, Uc = 520, Yc = /* @__PURE__ */ jt({
|
|
|
10423
10423
|
function Gt(g, S) {
|
|
10424
10424
|
return mt?.isVisibleCellEditableByAbsoluteCoord(g, S) === !0;
|
|
10425
10425
|
}
|
|
10426
|
-
const St = m(() =>
|
|
10426
|
+
const St = m(() => b.value.isRangeMoving), ve = m(() => C.value.filter((g) => g.pin === "left")), Rt = m(() => C.value.filter((g) => g.pin === "right")), ut = m(() => []), at = m(() => []), Ne = Z(null), Ze = Z(null), kt = Z(null), bt = Z(null), nr = Z(null), At = Z(null), Mt = Z(null), $t = Z(null), Dt = Z(null), Lt = Z(null), Yt = Z(null), Qt = Z(null), Bt = Z(null), Kt = Z(null), Zt = Z(null), Jt = Z(null), lr = Z(null), yt = Z(!1), Vt = Z(null), Tt = Z(!1), Pe = Z(!1), ir = m(() => ({
|
|
10427
10427
|
interactionMode: "auto",
|
|
10428
10428
|
isCoarsePointer: Tt.value
|
|
10429
10429
|
})), d = m(() => fl(ir.value)), P = m(() => Tt.value || Pe.value);
|
|
@@ -10492,7 +10492,7 @@ const tl = 8, Xc = 700, Uc = 520, Yc = /* @__PURE__ */ jt({
|
|
|
10492
10492
|
rows: E,
|
|
10493
10493
|
layout: N,
|
|
10494
10494
|
viewportRowStart: m(() => M.value.viewportRowStart),
|
|
10495
|
-
selectionRange:
|
|
10495
|
+
selectionRange: f,
|
|
10496
10496
|
selectionRanges: y,
|
|
10497
10497
|
visibleColumns: C,
|
|
10498
10498
|
isHoveredRow: $r,
|
|
@@ -10555,7 +10555,7 @@ const tl = 8, Xc = 700, Uc = 520, Yc = /* @__PURE__ */ jt({
|
|
|
10555
10555
|
renderedColumns: i,
|
|
10556
10556
|
displayRows: p,
|
|
10557
10557
|
pinnedBottomRows: v,
|
|
10558
|
-
selectionTotalRowCount: m(() =>
|
|
10558
|
+
selectionTotalRowCount: m(() => b.value?.totalRowCount ?? null),
|
|
10559
10559
|
leftPaneWidth: Tr,
|
|
10560
10560
|
rightPaneWidth: Pr,
|
|
10561
10561
|
bodyViewportScrollTop: Ir,
|
|
@@ -10625,8 +10625,8 @@ const tl = 8, Xc = 700, Uc = 520, Yc = /* @__PURE__ */ jt({
|
|
|
10625
10625
|
perfTraceEnabled: a
|
|
10626
10626
|
}), mt = Tc({
|
|
10627
10627
|
rows: E,
|
|
10628
|
-
selection:
|
|
10629
|
-
selectionRange:
|
|
10628
|
+
selection: b,
|
|
10629
|
+
selectionRange: f,
|
|
10630
10630
|
selectionRanges: y,
|
|
10631
10631
|
displayRows: p,
|
|
10632
10632
|
visibleColumns: C,
|
|
@@ -10659,7 +10659,7 @@ const tl = 8, Xc = 700, Uc = 520, Yc = /* @__PURE__ */ jt({
|
|
|
10659
10659
|
return !ie || Ye(g, ie.key) || Be(g, S, ie, J) && Qe(S, J) ? !1 : pt(S, J);
|
|
10660
10660
|
}
|
|
10661
10661
|
function vi(g, S, J) {
|
|
10662
|
-
if (d.value !== "touch" || Pe.value || o.value !== "base" || g.kind === "group" ||
|
|
10662
|
+
if (d.value !== "touch" || Pe.value || o.value !== "base" || g.kind === "group" || b.value?.rangeMoveEnabled !== !0 || b.value?.isFillDragging === !0)
|
|
10663
10663
|
return !1;
|
|
10664
10664
|
const ie = C.value[J];
|
|
10665
10665
|
return !ie || Ye(g, ie.key) ? !1 : pt(S, J) && Be(g, S, ie, J);
|
|
@@ -10799,8 +10799,8 @@ const tl = 8, Xc = 700, Uc = 520, Yc = /* @__PURE__ */ jt({
|
|
|
10799
10799
|
toggleFloatingFillActionMenu: Li,
|
|
10800
10800
|
handleFillActionSelection: Bi
|
|
10801
10801
|
} = xc({
|
|
10802
|
-
selection:
|
|
10803
|
-
selectionRange:
|
|
10802
|
+
selection: b,
|
|
10803
|
+
selectionRange: f,
|
|
10804
10804
|
visibleColumns: C,
|
|
10805
10805
|
renderedColumns: i,
|
|
10806
10806
|
displayRows: p,
|
|
@@ -10833,8 +10833,8 @@ const tl = 8, Xc = 700, Uc = 520, Yc = /* @__PURE__ */ jt({
|
|
|
10833
10833
|
handleFillHandleTouchEnd: Gi
|
|
10834
10834
|
} = kc({
|
|
10835
10835
|
mode: o,
|
|
10836
|
-
selection:
|
|
10837
|
-
selectionRange:
|
|
10836
|
+
selection: b,
|
|
10837
|
+
selectionRange: f,
|
|
10838
10838
|
visibleColumns: C,
|
|
10839
10839
|
displayRows: p,
|
|
10840
10840
|
viewportRowStart: m(() => M.value.viewportRowStart),
|
|
@@ -11109,9 +11109,9 @@ const tl = 8, Xc = 700, Uc = 520, Yc = /* @__PURE__ */ jt({
|
|
|
11109
11109
|
visibleColumns: C,
|
|
11110
11110
|
displayRows: p,
|
|
11111
11111
|
selectionRanges: y,
|
|
11112
|
-
selectionRange:
|
|
11113
|
-
fillPreviewRange: m(() =>
|
|
11114
|
-
rangeMovePreviewRange: m(() =>
|
|
11112
|
+
selectionRange: f,
|
|
11113
|
+
fillPreviewRange: m(() => b.value?.fillPreviewRange ?? null),
|
|
11114
|
+
rangeMovePreviewRange: m(() => b.value?.rangeMovePreviewRange ?? null),
|
|
11115
11115
|
rowMetrics: qr,
|
|
11116
11116
|
pinnedBottomRowMetrics: Al,
|
|
11117
11117
|
isCellSelectedSafe: Ke,
|
|
@@ -11534,8 +11534,8 @@ function Yr(e) {
|
|
|
11534
11534
|
function ng(e, r, a) {
|
|
11535
11535
|
const s = a.x - r.x, h = a.y - r.y;
|
|
11536
11536
|
if (s === 0 && h === 0) {
|
|
11537
|
-
const E = e.x - r.x,
|
|
11538
|
-
return E * E +
|
|
11537
|
+
const E = e.x - r.x, b = e.y - r.y;
|
|
11538
|
+
return E * E + b * b;
|
|
11539
11539
|
}
|
|
11540
11540
|
const o = ((e.x - r.x) * s + (e.y - r.y) * h) / (s * s + h * h), w = Math.max(0, Math.min(1, o)), I = r.x + s * w, N = r.y + h * w, M = e.x - I, T = e.y - N;
|
|
11541
11541
|
return M * M + T * T;
|
|
@@ -11567,7 +11567,7 @@ const lg = { class: "datagrid-gantt-stage__timeline" }, ig = { class: "datagrid-
|
|
|
11567
11567
|
},
|
|
11568
11568
|
setup(e) {
|
|
11569
11569
|
Rl();
|
|
11570
|
-
const r = /* @__PURE__ */ new Set(), a = e, s = a.stageContext, h = m(() => fu(s)), o = m(() => s.rows.value), w = m(() => s.viewport.value), I = m(() => s.selection.value), N = m(() => s.columns.value), M = m(() => s.rowHeightMode.value), T = Z(null), E = Z(null),
|
|
11570
|
+
const r = /* @__PURE__ */ new Set(), a = e, s = a.stageContext, h = m(() => fu(s)), o = m(() => s.rows.value), w = m(() => s.viewport.value), I = m(() => s.selection.value), N = m(() => s.columns.value), M = m(() => s.rowHeightMode.value), T = Z(null), E = Z(null), b = Z(null), k = Z(null), D = Z(null), G = Z(null), C = Z(null), i = Z(al), p = Z(0), x = Z(0), v = Z(0), f = Z(0), y = Z(0), $ = Z(null), V = Z(null), A = Z(null), B = Z(null), K = Z(null), ae = Z(!1), ne = Z(null);
|
|
11571
11571
|
let se = !1, Q = !1, O = null, F = null, q = null, te = !1;
|
|
11572
11572
|
function le(d) {
|
|
11573
11573
|
const P = new Date(d);
|
|
@@ -11675,7 +11675,7 @@ const lg = { class: "datagrid-gantt-stage__timeline" }, ig = { class: "datagrid-
|
|
|
11675
11675
|
function dt() {
|
|
11676
11676
|
y.value = Math.max(
|
|
11677
11677
|
Ee(k.value),
|
|
11678
|
-
Ee(
|
|
11678
|
+
Ee(b.value)
|
|
11679
11679
|
);
|
|
11680
11680
|
}
|
|
11681
11681
|
function ke(d) {
|
|
@@ -11747,7 +11747,7 @@ const lg = { class: "datagrid-gantt-stage__timeline" }, ig = { class: "datagrid-
|
|
|
11747
11747
|
P.milestone ? P.height : void 0
|
|
11748
11748
|
);
|
|
11749
11749
|
return {
|
|
11750
|
-
x: n.x -
|
|
11750
|
+
x: n.x - f.value,
|
|
11751
11751
|
width: n.width,
|
|
11752
11752
|
y: P.y,
|
|
11753
11753
|
height: P.height
|
|
@@ -11934,12 +11934,12 @@ const lg = { class: "datagrid-gantt-stage__timeline" }, ig = { class: "datagrid-
|
|
|
11934
11934
|
}
|
|
11935
11935
|
}
|
|
11936
11936
|
function St() {
|
|
11937
|
-
const d = ce.value, P =
|
|
11937
|
+
const d = ce.value, P = b.value;
|
|
11938
11938
|
if (!d || !P)
|
|
11939
11939
|
return;
|
|
11940
11940
|
const z = Math.max(1, i.value), n = Math.max(1, y.value || P.clientWidth || 1), l = Dn({
|
|
11941
11941
|
timeline: d,
|
|
11942
|
-
scrollLeft:
|
|
11942
|
+
scrollLeft: f.value,
|
|
11943
11943
|
viewportWidth: n,
|
|
11944
11944
|
workingCalendar: a.gantt?.workingCalendar ?? null,
|
|
11945
11945
|
headerBufferPx: 0,
|
|
@@ -11968,7 +11968,7 @@ const lg = { class: "datagrid-gantt-stage__timeline" }, ig = { class: "datagrid-
|
|
|
11968
11968
|
t.beginPath(), t.moveTo(st, 0), t.lineTo(st, z), t.stroke();
|
|
11969
11969
|
}
|
|
11970
11970
|
t.beginPath(), t.moveTo(0, lt - 0.5), t.lineTo(n, lt - 0.5), t.stroke(), t.strokeStyle = L, t.beginPath(), t.moveTo(0, z - 0.5), t.lineTo(n, z - 0.5), t.stroke(), t.fillStyle = ye, t.font = `12px ${Ve}`, t.textBaseline = "middle", Gt(t, l.primarySegments, 0, $e, n), Gt(t, l.secondarySegments, lt, qe, n);
|
|
11971
|
-
const Et = Ln(le(Date.now()), d) -
|
|
11971
|
+
const Et = Ln(le(Date.now()), d) - f.value;
|
|
11972
11972
|
Et >= -1 && Et <= n + 1 && (t.strokeStyle = je, t.lineWidth = 2, t.beginPath(), t.moveTo(Math.round(Et) + 0.5, 0), t.lineTo(Math.round(Et) + 0.5, z), t.stroke());
|
|
11973
11973
|
}
|
|
11974
11974
|
function ve() {
|
|
@@ -11977,7 +11977,7 @@ const lg = { class: "datagrid-gantt-stage__timeline" }, ig = { class: "datagrid-
|
|
|
11977
11977
|
return;
|
|
11978
11978
|
const z = Math.max(1, x.value || P.clientHeight || tt.value.length * a.baseRowHeight), n = Math.max(1, y.value || P.clientWidth || 1), l = Dn({
|
|
11979
11979
|
timeline: d,
|
|
11980
|
-
scrollLeft:
|
|
11980
|
+
scrollLeft: f.value,
|
|
11981
11981
|
viewportWidth: n,
|
|
11982
11982
|
workingCalendar: a.gantt?.workingCalendar ?? null,
|
|
11983
11983
|
headerBufferPx: 0,
|
|
@@ -12015,7 +12015,7 @@ const lg = { class: "datagrid-gantt-stage__timeline" }, ig = { class: "datagrid-
|
|
|
12015
12015
|
t.strokeStyle = W;
|
|
12016
12016
|
for (const X of ar.value)
|
|
12017
12017
|
t.beginPath(), t.moveTo(0, X), t.lineTo(n, X), t.stroke();
|
|
12018
|
-
const mr = Ln(le(Date.now()), d) -
|
|
12018
|
+
const mr = Ln(le(Date.now()), d) - f.value;
|
|
12019
12019
|
mr >= -1 && mr <= n + 1 && (t.strokeStyle = Er, t.lineWidth = 2, t.beginPath(), t.moveTo(Math.round(mr) + 0.5, 0), t.lineTo(Math.round(mr) + 0.5, z), t.stroke());
|
|
12020
12020
|
for (const X of oe.value) {
|
|
12021
12021
|
const Xe = Yr(X) === K.value;
|
|
@@ -12034,7 +12034,7 @@ const lg = { class: "datagrid-gantt-stage__timeline" }, ig = { class: "datagrid-
|
|
|
12034
12034
|
d,
|
|
12035
12035
|
a.gantt?.minBarWidth ?? 6,
|
|
12036
12036
|
X.milestone ? X.height : void 0
|
|
12037
|
-
), Oe = er.x -
|
|
12037
|
+
), Oe = er.x - f.value, We = er.width, Sa = Xt.value.has(X.rowId), Ra = qt.value.has(X.rowId), wr = yr({
|
|
12038
12038
|
isTableRowSelected: Sa,
|
|
12039
12039
|
isDependencySelectedBar: Ra
|
|
12040
12040
|
}), ka = X.baselineStartMs != null && X.baselineEndMs != null && (X.baselineStartMs !== X.startMs || X.baselineEndMs !== X.endMs), aa = X.summary ? $e : $.value?.rowId === X.rowId ? je : Ve;
|
|
@@ -12047,7 +12047,7 @@ const lg = { class: "datagrid-gantt-stage__timeline" }, ig = { class: "datagrid-
|
|
|
12047
12047
|
d,
|
|
12048
12048
|
a.gantt?.minBarWidth ?? 6,
|
|
12049
12049
|
X.milestone ? X.height : void 0
|
|
12050
|
-
), hr = ur.x -
|
|
12050
|
+
), hr = ur.x - f.value, Ar = Oe, na = Oe + We, la = hr, ia = hr + ur.width;
|
|
12051
12051
|
if (X.milestone)
|
|
12052
12052
|
Ce(
|
|
12053
12053
|
t,
|
|
@@ -12101,7 +12101,7 @@ const lg = { class: "datagrid-gantt-stage__timeline" }, ig = { class: "datagrid-
|
|
|
12101
12101
|
return 0;
|
|
12102
12102
|
}
|
|
12103
12103
|
function ut(d, P) {
|
|
12104
|
-
if (
|
|
12104
|
+
if (f.value = kd(
|
|
12105
12105
|
d,
|
|
12106
12106
|
ce.value?.totalWidth ?? 0,
|
|
12107
12107
|
y.value
|
|
@@ -12109,14 +12109,14 @@ const lg = { class: "datagrid-gantt-stage__timeline" }, ig = { class: "datagrid-
|
|
|
12109
12109
|
j();
|
|
12110
12110
|
return;
|
|
12111
12111
|
}
|
|
12112
|
-
te = !0, P !== "header" &&
|
|
12112
|
+
te = !0, P !== "header" && b.value && b.value.scrollLeft !== f.value && (b.value.scrollLeft = f.value), P !== "body" && k.value && k.value.scrollLeft !== f.value && (k.value.scrollLeft = f.value), te = !1, j();
|
|
12113
12113
|
}
|
|
12114
12114
|
function at() {
|
|
12115
12115
|
if (!ce.value) {
|
|
12116
12116
|
ut(0, "body");
|
|
12117
12117
|
return;
|
|
12118
12118
|
}
|
|
12119
|
-
ut(
|
|
12119
|
+
ut(f.value, "body");
|
|
12120
12120
|
}
|
|
12121
12121
|
function Ne() {
|
|
12122
12122
|
if (ae.value || !ce.value || y.value <= 0)
|
|
@@ -12187,7 +12187,7 @@ const lg = { class: "datagrid-gantt-stage__timeline" }, ig = { class: "datagrid-
|
|
|
12187
12187
|
function Lt(d) {
|
|
12188
12188
|
const P = Dt(d);
|
|
12189
12189
|
return P ? {
|
|
12190
|
-
x: P.x +
|
|
12190
|
+
x: P.x + f.value,
|
|
12191
12191
|
y: P.y
|
|
12192
12192
|
} : null;
|
|
12193
12193
|
}
|
|
@@ -12233,7 +12233,7 @@ const lg = { class: "datagrid-gantt-stage__timeline" }, ig = { class: "datagrid-
|
|
|
12233
12233
|
if (!$.value || !ce.value)
|
|
12234
12234
|
return;
|
|
12235
12235
|
const P = Rt(d.clientX);
|
|
12236
|
-
P !== 0 && ut(
|
|
12236
|
+
P !== 0 && ut(f.value + P, "body");
|
|
12237
12237
|
const z = Lt(d);
|
|
12238
12238
|
if (!z)
|
|
12239
12239
|
return;
|
|
@@ -12379,7 +12379,7 @@ const lg = { class: "datagrid-gantt-stage__timeline" }, ig = { class: "datagrid-
|
|
|
12379
12379
|
resolveScrollContainers: () => [
|
|
12380
12380
|
C.value,
|
|
12381
12381
|
k.value,
|
|
12382
|
-
|
|
12382
|
+
b.value
|
|
12383
12383
|
]
|
|
12384
12384
|
})), Gr(() => {
|
|
12385
12385
|
et(), Pe(), dt(), at(), Ne(), j();
|
|
@@ -12415,7 +12415,7 @@ const lg = { class: "datagrid-gantt-stage__timeline" }, ig = { class: "datagrid-
|
|
|
12415
12415
|
}, [
|
|
12416
12416
|
Y("div", {
|
|
12417
12417
|
ref_key: "timelineHeaderViewportRef",
|
|
12418
|
-
ref:
|
|
12418
|
+
ref: b,
|
|
12419
12419
|
class: "datagrid-gantt-timeline__viewport datagrid-gantt-timeline__viewport--header",
|
|
12420
12420
|
style: de(zt.value),
|
|
12421
12421
|
onScrollPassive: kt,
|