@affino/datagrid-vue-app 0.1.46 → 0.1.48
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/DataGrid.d.ts +1 -0
- package/dist/chunks/{DataGridGanttStageEntry-DNXWCKVs.js → DataGridGanttStageEntry-BpEn4dPx.js} +776 -776
- package/dist/chunks/useDataGridAppRowModel-OUmmuuko.js +4963 -0
- package/dist/gantt.js +1 -1
- package/dist/index.js +346 -317
- package/dist/internal.js +2 -2
- package/dist/stage/useDataGridTableStageRuntime.d.ts +13 -0
- package/package.json +3 -3
- package/dist/chunks/useDataGridAppRowModel-DKyzpK78.js +0 -4858
package/dist/chunks/{DataGridGanttStageEntry-DNXWCKVs.js → DataGridGanttStageEntry-BpEn4dPx.js}
RENAMED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as er, computed as l, resolveComponent as Ml, openBlock as m, createBlock as De, unref as y, withCtx as Me, createVNode as nt, createElementVNode as F, toDisplayString as oe, normalizeStyle as X, createElementBlock as w, Fragment as Re, renderList as Fe, ref as N, inject as yi, watch as je, renderSlot as Qr, createTextVNode as xi, createCommentVNode as q, withModifiers as R, normalizeClass as ge, withDirectives as Il, vModelText as Tl, toRef as cr, provide as Dl, toRefs as El, onMounted as hn, shallowRef as Al, nextTick as Jr, onBeforeUnmount as wi, mergeProps as Pl, h as Ll } from "vue";
|
|
2
2
|
import { resolveDataGridCellInteraction as ni, buildDataGridCellRenderModel as Bl, getDataGridRowRenderMeta as Fl, invokeDataGridCellInteraction as zl } from "@affino/datagrid-vue";
|
|
3
3
|
import { useDataGridLinkedPaneScrollSync as Vl, useDataGridManagedWheelScroll as Hl } from "@affino/datagrid-vue/advanced";
|
|
4
4
|
import { restoreDataGridFocus as Ol } from "@affino/datagrid-vue/app";
|
|
5
|
-
import { buildDataGridChromeRenderModel as
|
|
6
|
-
import { UiSubMenu as ki, UiSubMenuTrigger as Ci, UiSubMenuContent as Si, UiMenuItem as
|
|
5
|
+
import { buildDataGridChromeRenderModel as tn } from "@affino/datagrid-chrome";
|
|
6
|
+
import { UiSubMenu as ki, UiSubMenuTrigger as Ci, UiSubMenuContent as Si, UiMenuItem as zr, UiMenu as $l, UiMenuTrigger as Wl, UiMenuContent as Gl, UiMenuLabel as Kl, UiMenuSeparator as Fa } from "@affino/menu-vue";
|
|
7
7
|
import { d as Nl, r as jl } from "./dataGridOverlayThemeVars-vzY74EIz.js";
|
|
8
8
|
import { _ as ql } from "./DataGridFilterableCombobox.vue_vue_type_script_setup_true_lang-xry4J3Lx.js";
|
|
9
|
-
import { resolveDataGridGanttAnalysis as Ul, buildDataGridGanttVisibleBars as Xl, buildDataGridGanttDependencyPaths as Yl, resolveDataGridGanttRangeFrame as
|
|
10
|
-
const rd = ["title"], ad = /* @__PURE__ */
|
|
9
|
+
import { resolveDataGridGanttAnalysis as Ul, buildDataGridGanttVisibleBars as Xl, buildDataGridGanttDependencyPaths as Yl, resolveDataGridGanttRangeFrame as rn, buildDataGridTimelineRenderModels as ii, resolveDataGridTimelineDateToPixel as oi, resolveDataGridTimelineScrollLeftForDate as Zl, applyDataGridGanttDragDelta as Jl, hitTestDataGridGanttBar as li, clampDataGridTimelineScrollLeft as Ql, buildDataGridGanttRowEditPatch as ed, normalizeDataGridGanttOptions as td } from "@affino/datagrid-gantt";
|
|
10
|
+
const rd = ["title"], ad = /* @__PURE__ */ er({
|
|
11
11
|
__name: "DataGridColumnMenuCustomEntry",
|
|
12
12
|
props: {
|
|
13
13
|
item: {},
|
|
@@ -64,7 +64,7 @@ const rd = ["title"], ad = /* @__PURE__ */ Qt({
|
|
|
64
64
|
}, 8, ["style"])
|
|
65
65
|
]),
|
|
66
66
|
_: 1
|
|
67
|
-
}, 8, ["options"])) : (m(), De(y(
|
|
67
|
+
}, 8, ["options"])) : (m(), De(y(zr), {
|
|
68
68
|
key: 1,
|
|
69
69
|
class: "datagrid-column-menu__item",
|
|
70
70
|
"data-datagrid-column-menu-action": V.value,
|
|
@@ -128,7 +128,7 @@ const rd = ["title"], ad = /* @__PURE__ */ Qt({
|
|
|
128
128
|
}, Hd = {
|
|
129
129
|
key: 10,
|
|
130
130
|
class: "datagrid-column-menu__footer"
|
|
131
|
-
}, Od = ["data-disabled-reason", "disabled", "title"], $d = 1e5, Wd = 1e4,
|
|
131
|
+
}, Od = ["data-disabled-reason", "disabled", "title"], $d = 1e5, Wd = 1e4, an = /* @__PURE__ */ er({
|
|
132
132
|
__name: "DataGridColumnMenu",
|
|
133
133
|
props: {
|
|
134
134
|
rowCount: {},
|
|
@@ -167,10 +167,10 @@ const rd = ["title"], ad = /* @__PURE__ */ Qt({
|
|
|
167
167
|
}), Ie = l(() => Number.isFinite(u.maxFilterValues) && u.maxFilterValues > 0 ? Math.max(20, Math.trunc(u.maxFilterValues)) : 120), J = l(() => u.filterEnabled ? u.rowCount <= ce.value : !1), ae = l(() => u.rowCount >= Wd), $ = l(() => u.filterEnabled && !J.value), P = l(() => u.items.filter((d) => d === "sort" ? pe("sortAsc") || pe("sortDesc") || pe("clearSort") : d === "group" ? pe("toggleGroup") : d === "pin" ? me.value : d === "filter" ? Ye.value : !0)), Q = l(() => C(P.value, u.customItems)), K = l(() => we.value.has("sort")), Z = l(() => we.value.has("group")), U = l(() => we.value.has("pin")), re = l(() => we.value.has("filter")), qe = l(() => new Set(O.value)), Ye = l(() => J.value || u.textFilterEnabled), ze = l(() => u.textFilterEnabled && !J.value), be = l(() => G.value.trim().length > 0), Ae = l(() => D.value || S.value !== null), me = l(() => pe("pinMenu") && (pe("pinLeft") || pe("pinRight") || pe("unpin"))), yt = l(() => Ve(
|
|
168
168
|
"toggleGroup",
|
|
169
169
|
u.labels.group ?? (u.grouped ? "Ungroup column" : "Group by this column")
|
|
170
|
-
)), xt = l(() => Ve("pinMenu", u.labels.pin ?? "Pin column")),
|
|
170
|
+
)), xt = l(() => Ve("pinMenu", u.labels.pin ?? "Pin column")), tr = l(() => u.labels.filter ?? (J.value ? "Filter" : "Filter by text")), kr = l(() => Ve("sortAsc", We.value.asc)), wt = l(() => Ve("sortDesc", We.value.desc)), Ze = l(() => Ve("clearSort", "Clear sort")), it = l(() => Ve("pinLeft", "Pin left")), kt = l(() => Ve("pinRight", "Pin right")), Kt = l(() => Ve("unpin", "Unpin")), vr = l(() => Ve("clearFilter", "Clear filter")), ye = l(() => Ve(
|
|
171
171
|
"addCurrentSelectionToFilter",
|
|
172
172
|
"Add current selection to filter"
|
|
173
|
-
)), Pt = l(() => Ve("selectAllValues", "Select all")),
|
|
173
|
+
)), Pt = l(() => Ve("selectAllValues", "Select all")), rr = l(() => Ve("clearAllValues", "Clear all")), Lt = l(() => Ve("cancelFilter", "Cancel")), Je = l(() => Ve("applyFilter", "Apply")), Qe = l(() => {
|
|
174
174
|
const d = G.value.trim().toLowerCase();
|
|
175
175
|
return d.length > 0 ? v.value.filter((f) => f.searchText.includes(d)) : v.value;
|
|
176
176
|
}), le = l(() => be.value ? Qe.value : Qe.value.slice(0, I.value)), Bt = l(() => be.value ? 0 : Math.max(0, Qe.value.length - le.value.length)), Ge = l(() => {
|
|
@@ -179,7 +179,7 @@ const rd = ["title"], ad = /* @__PURE__ */ Qt({
|
|
|
179
179
|
return O.value.filter((f) => d.has(f));
|
|
180
180
|
}
|
|
181
181
|
return O.value;
|
|
182
|
-
}), ot = l(() => be.value ? W.value ? v.value.length : le.value.length : v.value.length), lt = l(() => Ge.value.length), mt = l(() => v.value.length > 0 && O.value.length === v.value.length),
|
|
182
|
+
}), ot = l(() => be.value ? W.value ? v.value.length : le.value.length : v.value.length), lt = l(() => Ge.value.length), mt = l(() => v.value.length > 0 && O.value.length === v.value.length), ar = l(() => J.value && !Ae.value && v.value.length > 0 && Ge.value.length > 0), pr = {
|
|
183
183
|
mousePrediction: {},
|
|
184
184
|
loopFocus: !0,
|
|
185
185
|
closeOnSelect: !0,
|
|
@@ -193,7 +193,7 @@ const rd = ["title"], ad = /* @__PURE__ */ Qt({
|
|
|
193
193
|
closeDelay: 120
|
|
194
194
|
}, Ft = {
|
|
195
195
|
onOpen: () => {
|
|
196
|
-
H.value = !0,
|
|
196
|
+
H.value = !0, hr(), Ct();
|
|
197
197
|
},
|
|
198
198
|
onClose: () => {
|
|
199
199
|
H.value = !1, tt();
|
|
@@ -206,7 +206,7 @@ const rd = ["title"], ad = /* @__PURE__ */ Qt({
|
|
|
206
206
|
}
|
|
207
207
|
H.value && J.value && jt(!1);
|
|
208
208
|
}), je(V, () => {
|
|
209
|
-
H.value &&
|
|
209
|
+
H.value && hr();
|
|
210
210
|
}), je(
|
|
211
211
|
() => [
|
|
212
212
|
u.filterEnabled,
|
|
@@ -231,13 +231,13 @@ const rd = ["title"], ad = /* @__PURE__ */ Qt({
|
|
|
231
231
|
function Ve(d, f) {
|
|
232
232
|
return u.actionOptions[d]?.label ?? f;
|
|
233
233
|
}
|
|
234
|
-
function
|
|
234
|
+
function mr(d) {
|
|
235
235
|
return u.disabledReasons[d] ?? "";
|
|
236
236
|
}
|
|
237
237
|
function ct(d, f) {
|
|
238
238
|
if (!f)
|
|
239
239
|
return;
|
|
240
|
-
const L =
|
|
240
|
+
const L = mr(d);
|
|
241
241
|
return L.length > 0 ? L : void 0;
|
|
242
242
|
}
|
|
243
243
|
function ne(d, f = !1, L) {
|
|
@@ -249,10 +249,10 @@ const rd = ["title"], ad = /* @__PURE__ */ Qt({
|
|
|
249
249
|
if (L)
|
|
250
250
|
return ct(L, !0);
|
|
251
251
|
}
|
|
252
|
-
function
|
|
252
|
+
function nr(d) {
|
|
253
253
|
return d.disabled === !0;
|
|
254
254
|
}
|
|
255
|
-
function
|
|
255
|
+
function ir(d, f) {
|
|
256
256
|
if (d == null)
|
|
257
257
|
return "(Blanks)";
|
|
258
258
|
const L = typeof f == "string" && f.length > 0 ? f : String(d);
|
|
@@ -264,7 +264,7 @@ const rd = ["title"], ad = /* @__PURE__ */ Qt({
|
|
|
264
264
|
const se = et(String(L.token ?? ""));
|
|
265
265
|
if (!se)
|
|
266
266
|
continue;
|
|
267
|
-
const ee =
|
|
267
|
+
const ee = ir(L.value, L.text);
|
|
268
268
|
f.push({
|
|
269
269
|
token: se,
|
|
270
270
|
label: ee,
|
|
@@ -286,14 +286,14 @@ const rd = ["title"], ad = /* @__PURE__ */ Qt({
|
|
|
286
286
|
function bt(d) {
|
|
287
287
|
ht(), z("sort", d);
|
|
288
288
|
}
|
|
289
|
-
async function
|
|
290
|
-
|
|
289
|
+
async function fr(d) {
|
|
290
|
+
nr(d) || await d.onSelect?.({
|
|
291
291
|
columnKey: u.columnKey,
|
|
292
292
|
columnLabel: u.columnLabel,
|
|
293
293
|
closeMenu: ht
|
|
294
294
|
});
|
|
295
295
|
}
|
|
296
|
-
function
|
|
296
|
+
function Cr(d) {
|
|
297
297
|
if (!d)
|
|
298
298
|
return;
|
|
299
299
|
const f = M.value?.controller;
|
|
@@ -307,14 +307,14 @@ const rd = ["title"], ad = /* @__PURE__ */ Qt({
|
|
|
307
307
|
height: 0
|
|
308
308
|
}), f.open("programmatic");
|
|
309
309
|
}
|
|
310
|
-
function
|
|
310
|
+
function or(d) {
|
|
311
311
|
if (H.value) {
|
|
312
312
|
ht();
|
|
313
313
|
return;
|
|
314
314
|
}
|
|
315
|
-
|
|
315
|
+
Cr(d);
|
|
316
316
|
}
|
|
317
|
-
function
|
|
317
|
+
function hr() {
|
|
318
318
|
Se.value = jl(V.value);
|
|
319
319
|
}
|
|
320
320
|
function Ct() {
|
|
@@ -344,7 +344,7 @@ const rd = ["title"], ad = /* @__PURE__ */ Qt({
|
|
|
344
344
|
tt();
|
|
345
345
|
const L = te + 1;
|
|
346
346
|
if (te = L, D.value = !0, S.value = null, !f.defer) {
|
|
347
|
-
|
|
347
|
+
br(L, d);
|
|
348
348
|
return;
|
|
349
349
|
}
|
|
350
350
|
let se = 0;
|
|
@@ -354,12 +354,12 @@ const rd = ["title"], ad = /* @__PURE__ */ Qt({
|
|
|
354
354
|
Oe(ee);
|
|
355
355
|
return;
|
|
356
356
|
}
|
|
357
|
-
|
|
357
|
+
br(L, d);
|
|
358
358
|
}
|
|
359
359
|
};
|
|
360
360
|
Oe(ee);
|
|
361
361
|
}
|
|
362
|
-
async function
|
|
362
|
+
async function br(d, f) {
|
|
363
363
|
try {
|
|
364
364
|
const L = u.resolveValueEntries?.(G.value.trim()) ?? [], se = Nt(L) ? await L : L;
|
|
365
365
|
if (d !== te)
|
|
@@ -427,8 +427,8 @@ const rd = ["title"], ad = /* @__PURE__ */ Qt({
|
|
|
427
427
|
function Pe(d) {
|
|
428
428
|
re.value || (W.value = d.target.checked);
|
|
429
429
|
}
|
|
430
|
-
function
|
|
431
|
-
re.value || !
|
|
430
|
+
function Sr() {
|
|
431
|
+
re.value || !ar.value || (!be.value && Ge.value.length === v.value.length ? z("clear-filter") : z("apply-filter", [...Ge.value]), ht());
|
|
432
432
|
}
|
|
433
433
|
function St(d) {
|
|
434
434
|
re.value || z("update-text-filter", d.target.value);
|
|
@@ -471,26 +471,26 @@ const rd = ["title"], ad = /* @__PURE__ */ Qt({
|
|
|
471
471
|
for (const _t of f) {
|
|
472
472
|
if (_t.hidden === !0)
|
|
473
473
|
continue;
|
|
474
|
-
const
|
|
474
|
+
const lr = {
|
|
475
475
|
kind: "custom",
|
|
476
476
|
key: _t.key,
|
|
477
477
|
item: _t
|
|
478
|
-
},
|
|
479
|
-
if (
|
|
480
|
-
L.push(
|
|
478
|
+
}, _r = _t.placement ?? "end";
|
|
479
|
+
if (_r === "start") {
|
|
480
|
+
L.push(lr);
|
|
481
481
|
continue;
|
|
482
482
|
}
|
|
483
|
-
if (
|
|
484
|
-
se.push(
|
|
483
|
+
if (_r === "end") {
|
|
484
|
+
se.push(lr);
|
|
485
485
|
continue;
|
|
486
486
|
}
|
|
487
|
-
const [
|
|
487
|
+
const [Hr, i] = _r.split(":");
|
|
488
488
|
if (!Ht.has(i)) {
|
|
489
|
-
se.push(
|
|
489
|
+
se.push(lr);
|
|
490
490
|
continue;
|
|
491
491
|
}
|
|
492
|
-
const p =
|
|
493
|
-
_ ? _.push(
|
|
492
|
+
const p = Hr === "before" ? ee : Vt, _ = p.get(i);
|
|
493
|
+
_ ? _.push(lr) : p.set(i, [lr]);
|
|
494
494
|
}
|
|
495
495
|
const Ut = [...L];
|
|
496
496
|
for (const _t of d)
|
|
@@ -501,7 +501,7 @@ const rd = ["title"], ad = /* @__PURE__ */ Qt({
|
|
|
501
501
|
ref_key: "menuRef",
|
|
502
502
|
ref: M,
|
|
503
503
|
callbacks: Ft,
|
|
504
|
-
options:
|
|
504
|
+
options: pr
|
|
505
505
|
}, {
|
|
506
506
|
default: Me(() => [
|
|
507
507
|
ue.value ? (m(), De(y(Wl), {
|
|
@@ -510,16 +510,16 @@ const rd = ["title"], ad = /* @__PURE__ */ Qt({
|
|
|
510
510
|
trigger: "contextmenu"
|
|
511
511
|
}, {
|
|
512
512
|
default: Me(() => [
|
|
513
|
-
|
|
513
|
+
Qr(d.$slots, "default", {
|
|
514
514
|
open: H.value,
|
|
515
|
-
toggleMenuFromElement:
|
|
515
|
+
toggleMenuFromElement: or
|
|
516
516
|
})
|
|
517
517
|
]),
|
|
518
518
|
_: 3
|
|
519
|
-
})) :
|
|
519
|
+
})) : Qr(d.$slots, "default", {
|
|
520
520
|
key: 1,
|
|
521
521
|
open: H.value,
|
|
522
|
-
toggleMenuFromElement:
|
|
522
|
+
toggleMenuFromElement: or
|
|
523
523
|
}),
|
|
524
524
|
nt(y(Gl), {
|
|
525
525
|
"class-name": "ui-menu-content datagrid-column-menu__panel",
|
|
@@ -536,13 +536,13 @@ const rd = ["title"], ad = /* @__PURE__ */ Qt({
|
|
|
536
536
|
]),
|
|
537
537
|
_: 1
|
|
538
538
|
}),
|
|
539
|
-
Q.value.length > 0 ? (m(), De(y(
|
|
539
|
+
Q.value.length > 0 ? (m(), De(y(Fa), { key: 0 })) : q("", !0),
|
|
540
540
|
(m(!0), w(Re, null, Fe(Q.value, (L, se) => (m(), w(Re, {
|
|
541
541
|
key: L.key
|
|
542
542
|
}, [
|
|
543
|
-
se > 0 ? (m(), De(y(
|
|
543
|
+
se > 0 ? (m(), De(y(Fa), { key: 0 })) : q("", !0),
|
|
544
544
|
L.kind === "section" && L.key === "sort" ? (m(), w(Re, { key: 1 }, [
|
|
545
|
-
pe("sortAsc") ? (m(), De(y(
|
|
545
|
+
pe("sortAsc") ? (m(), De(y(zr), {
|
|
546
546
|
key: 0,
|
|
547
547
|
class: "datagrid-column-menu__item",
|
|
548
548
|
"data-datagrid-column-menu-action": "sort-asc",
|
|
@@ -554,12 +554,12 @@ const rd = ["title"], ad = /* @__PURE__ */ Qt({
|
|
|
554
554
|
default: Me(() => [
|
|
555
555
|
F("span", {
|
|
556
556
|
title: ne("sortAsc", K.value || !d.sortEnabled, "sort")
|
|
557
|
-
}, oe(
|
|
557
|
+
}, oe(kr.value), 9, nd),
|
|
558
558
|
d.sortDirection === "asc" ? (m(), w("span", id, "Active")) : q("", !0)
|
|
559
559
|
]),
|
|
560
560
|
_: 1
|
|
561
561
|
}, 8, ["data-disabled-reason", "disabled", "title"])) : q("", !0),
|
|
562
|
-
pe("sortDesc") ? (m(), De(y(
|
|
562
|
+
pe("sortDesc") ? (m(), De(y(zr), {
|
|
563
563
|
key: 1,
|
|
564
564
|
class: "datagrid-column-menu__item",
|
|
565
565
|
"data-datagrid-column-menu-action": "sort-desc",
|
|
@@ -576,7 +576,7 @@ const rd = ["title"], ad = /* @__PURE__ */ Qt({
|
|
|
576
576
|
]),
|
|
577
577
|
_: 1
|
|
578
578
|
}, 8, ["data-disabled-reason", "disabled", "title"])) : q("", !0),
|
|
579
|
-
pe("clearSort") ? (m(), De(y(
|
|
579
|
+
pe("clearSort") ? (m(), De(y(zr), {
|
|
580
580
|
key: 2,
|
|
581
581
|
class: "datagrid-column-menu__item",
|
|
582
582
|
"data-datagrid-column-menu-action": "sort-clear",
|
|
@@ -592,7 +592,7 @@ const rd = ["title"], ad = /* @__PURE__ */ Qt({
|
|
|
592
592
|
]),
|
|
593
593
|
_: 1
|
|
594
594
|
}, 8, ["data-disabled-reason", "disabled", "title"])) : q("", !0)
|
|
595
|
-
], 64)) : L.kind === "section" && L.key === "group" && pe("toggleGroup") ? (m(), De(y(
|
|
595
|
+
], 64)) : L.kind === "section" && L.key === "group" && pe("toggleGroup") ? (m(), De(y(zr), {
|
|
596
596
|
key: 2,
|
|
597
597
|
class: "datagrid-column-menu__item",
|
|
598
598
|
"data-datagrid-column-menu-action": "toggle-group",
|
|
@@ -631,7 +631,7 @@ const rd = ["title"], ad = /* @__PURE__ */ Qt({
|
|
|
631
631
|
style: X(Se.value)
|
|
632
632
|
}, {
|
|
633
633
|
default: Me(() => [
|
|
634
|
-
pe("pinLeft") ? (m(), De(y(
|
|
634
|
+
pe("pinLeft") ? (m(), De(y(zr), {
|
|
635
635
|
key: 0,
|
|
636
636
|
class: "datagrid-column-menu__item",
|
|
637
637
|
"data-datagrid-column-menu-action": "pin-left",
|
|
@@ -648,7 +648,7 @@ const rd = ["title"], ad = /* @__PURE__ */ Qt({
|
|
|
648
648
|
]),
|
|
649
649
|
_: 1
|
|
650
650
|
}, 8, ["data-disabled-reason", "disabled", "title"])) : q("", !0),
|
|
651
|
-
pe("pinRight") ? (m(), De(y(
|
|
651
|
+
pe("pinRight") ? (m(), De(y(zr), {
|
|
652
652
|
key: 1,
|
|
653
653
|
class: "datagrid-column-menu__item",
|
|
654
654
|
"data-datagrid-column-menu-action": "pin-right",
|
|
@@ -665,7 +665,7 @@ const rd = ["title"], ad = /* @__PURE__ */ Qt({
|
|
|
665
665
|
]),
|
|
666
666
|
_: 1
|
|
667
667
|
}, 8, ["data-disabled-reason", "disabled", "title"])) : q("", !0),
|
|
668
|
-
pe("unpin") ? (m(), De(y(
|
|
668
|
+
pe("unpin") ? (m(), De(y(zr), {
|
|
669
669
|
key: 2,
|
|
670
670
|
class: "datagrid-column-menu__item",
|
|
671
671
|
"data-datagrid-column-menu-action": "pin-none",
|
|
@@ -701,7 +701,7 @@ const rd = ["title"], ad = /* @__PURE__ */ Qt({
|
|
|
701
701
|
}, ["stop"]))
|
|
702
702
|
}, [
|
|
703
703
|
F("div", fd, [
|
|
704
|
-
F("span", hd, oe(
|
|
704
|
+
F("span", hd, oe(tr.value), 1),
|
|
705
705
|
pe("clearFilter") ? (m(), w("button", {
|
|
706
706
|
key: 0,
|
|
707
707
|
type: "button",
|
|
@@ -711,7 +711,7 @@ const rd = ["title"], ad = /* @__PURE__ */ Qt({
|
|
|
711
711
|
disabled: Te("clearFilter", re.value || !d.filterActive),
|
|
712
712
|
title: ne("clearFilter", re.value || !d.filterActive, "filter"),
|
|
713
713
|
onClick: c
|
|
714
|
-
}, oe(
|
|
714
|
+
}, oe(vr.value), 9, bd)) : q("", !0)
|
|
715
715
|
]),
|
|
716
716
|
ze.value ? (m(), w("input", {
|
|
717
717
|
key: 0,
|
|
@@ -760,7 +760,7 @@ const rd = ["title"], ad = /* @__PURE__ */ Qt({
|
|
|
760
760
|
}, null, 40, Cd),
|
|
761
761
|
F("span", null, oe(ye.value), 1)
|
|
762
762
|
])) : q("", !0),
|
|
763
|
-
J.value ? (m(), De(y(
|
|
763
|
+
J.value ? (m(), De(y(Fa), {
|
|
764
764
|
key: 4,
|
|
765
765
|
class: "datagrid-column-menu__section-separator"
|
|
766
766
|
})) : q("", !0),
|
|
@@ -784,7 +784,7 @@ const rd = ["title"], ad = /* @__PURE__ */ Qt({
|
|
|
784
784
|
disabled: Te("clearAllValues", re.value || Ae.value || O.value.length === 0),
|
|
785
785
|
title: ne("clearAllValues", re.value || Ae.value || O.value.length === 0, "filter"),
|
|
786
786
|
onClick: Ce
|
|
787
|
-
}, oe(
|
|
787
|
+
}, oe(rr.value), 9, Rd)) : q("", !0),
|
|
788
788
|
F("div", Md, oe(lt.value) + " / " + oe(ot.value) + " selected ", 1)
|
|
789
789
|
])) : q("", !0),
|
|
790
790
|
J.value ? (m(), w("div", Id, [
|
|
@@ -820,7 +820,7 @@ const rd = ["title"], ad = /* @__PURE__ */ Qt({
|
|
|
820
820
|
])) : q("", !0),
|
|
821
821
|
J.value && Bt.value > 0 ? (m(), w("div", zd, " Showing " + oe(le.value.length) + " of " + oe(Qe.value.length) + " values. Scroll to load more or search. ", 1)) : q("", !0),
|
|
822
822
|
J.value && Ge.value.length === 0 ? (m(), w("div", Vd, " Select at least one value to apply the filter. ")) : q("", !0),
|
|
823
|
-
J.value ? (m(), De(y(
|
|
823
|
+
J.value ? (m(), De(y(Fa), {
|
|
824
824
|
key: 9,
|
|
825
825
|
class: "datagrid-column-menu__section-separator"
|
|
826
826
|
})) : q("", !0),
|
|
@@ -837,10 +837,10 @@ const rd = ["title"], ad = /* @__PURE__ */ Qt({
|
|
|
837
837
|
type: "button",
|
|
838
838
|
class: "datagrid-column-menu__button datagrid-column-menu__button--primary",
|
|
839
839
|
"data-datagrid-column-menu-action": "apply-filter",
|
|
840
|
-
"data-disabled-reason": ne("applyFilter", re.value || Ae.value || !
|
|
841
|
-
disabled: Te("applyFilter", re.value || Ae.value || !
|
|
842
|
-
title: ne("applyFilter", re.value || Ae.value || !
|
|
843
|
-
onClick:
|
|
840
|
+
"data-disabled-reason": ne("applyFilter", re.value || Ae.value || !ar.value, "filter"),
|
|
841
|
+
disabled: Te("applyFilter", re.value || Ae.value || !ar.value),
|
|
842
|
+
title: ne("applyFilter", re.value || Ae.value || !ar.value, "filter"),
|
|
843
|
+
onClick: Sr
|
|
844
844
|
}, oe(Je.value), 9, Od)) : q("", !0)
|
|
845
845
|
])) : q("", !0)
|
|
846
846
|
], 34)) : L.kind === "custom" ? (m(), De(ad, {
|
|
@@ -848,7 +848,7 @@ const rd = ["title"], ad = /* @__PURE__ */ Qt({
|
|
|
848
848
|
item: L.item,
|
|
849
849
|
"menu-theme-vars": Se.value,
|
|
850
850
|
"submenu-options": ft,
|
|
851
|
-
onSelect:
|
|
851
|
+
onSelect: fr
|
|
852
852
|
}, null, 8, ["item", "menu-theme-vars"])) : q("", !0)
|
|
853
853
|
], 64))), 128))
|
|
854
854
|
]),
|
|
@@ -876,17 +876,17 @@ function Gd(r) {
|
|
|
876
876
|
}
|
|
877
877
|
function Kd(r) {
|
|
878
878
|
return Gd({
|
|
879
|
-
mode:
|
|
880
|
-
rowHeightMode:
|
|
881
|
-
layoutMode:
|
|
882
|
-
layout:
|
|
883
|
-
viewport:
|
|
884
|
-
columns:
|
|
885
|
-
rows:
|
|
886
|
-
selection:
|
|
887
|
-
editing:
|
|
888
|
-
cells:
|
|
889
|
-
interaction:
|
|
879
|
+
mode: cr(r, "mode"),
|
|
880
|
+
rowHeightMode: cr(r, "rowHeightMode"),
|
|
881
|
+
layoutMode: cr(r, "layoutMode"),
|
|
882
|
+
layout: cr(r, "layout"),
|
|
883
|
+
viewport: cr(r, "viewport"),
|
|
884
|
+
columns: cr(r, "columns"),
|
|
885
|
+
rows: cr(r, "rows"),
|
|
886
|
+
selection: cr(r, "selection"),
|
|
887
|
+
editing: cr(r, "editing"),
|
|
888
|
+
cells: cr(r, "cells"),
|
|
889
|
+
interaction: cr(r, "interaction")
|
|
890
890
|
});
|
|
891
891
|
}
|
|
892
892
|
function Nd(r) {
|
|
@@ -910,47 +910,47 @@ function jd(r) {
|
|
|
910
910
|
r
|
|
911
911
|
), r;
|
|
912
912
|
}
|
|
913
|
-
function
|
|
913
|
+
function $a() {
|
|
914
914
|
const r = yi(_i);
|
|
915
915
|
if (!r)
|
|
916
916
|
throw new Error("DataGrid table stage context is not available outside of DataGridTableStage.");
|
|
917
917
|
return r;
|
|
918
918
|
}
|
|
919
|
-
function
|
|
920
|
-
return
|
|
919
|
+
function bn() {
|
|
920
|
+
return $a().mode;
|
|
921
921
|
}
|
|
922
922
|
function tc() {
|
|
923
|
-
return
|
|
923
|
+
return $a().rowHeightMode;
|
|
924
924
|
}
|
|
925
925
|
function Ri() {
|
|
926
|
-
return
|
|
926
|
+
return $a().layoutMode;
|
|
927
927
|
}
|
|
928
|
-
function
|
|
929
|
-
return
|
|
928
|
+
function Vr(r) {
|
|
929
|
+
return $a()[r];
|
|
930
930
|
}
|
|
931
931
|
function Mi() {
|
|
932
|
-
return
|
|
932
|
+
return Vr("layout");
|
|
933
933
|
}
|
|
934
|
-
function
|
|
935
|
-
return
|
|
934
|
+
function yn() {
|
|
935
|
+
return Vr("viewport");
|
|
936
936
|
}
|
|
937
937
|
function Ii() {
|
|
938
|
-
return
|
|
938
|
+
return Vr("columns");
|
|
939
939
|
}
|
|
940
|
-
function
|
|
941
|
-
return
|
|
940
|
+
function xn() {
|
|
941
|
+
return Vr("rows");
|
|
942
942
|
}
|
|
943
943
|
function Ti() {
|
|
944
|
-
return
|
|
944
|
+
return Vr("selection");
|
|
945
945
|
}
|
|
946
946
|
function Di() {
|
|
947
|
-
return
|
|
947
|
+
return Vr("editing");
|
|
948
948
|
}
|
|
949
949
|
function rc() {
|
|
950
|
-
return
|
|
950
|
+
return Vr("cells");
|
|
951
951
|
}
|
|
952
952
|
function ac() {
|
|
953
|
-
return
|
|
953
|
+
return Vr("interaction");
|
|
954
954
|
}
|
|
955
955
|
const qd = ["data-datagrid-pivot-group-label", "data-datagrid-pivot-group-span", "data-datagrid-pivot-group-depth"], Ud = {
|
|
956
956
|
key: 0,
|
|
@@ -1024,7 +1024,7 @@ const qd = ["data-datagrid-pivot-group-label", "data-datagrid-pivot-group-span",
|
|
|
1024
1024
|
}, Ys = ["onMousedown", "onDblclick"], Zs = ["data-column-key", "draggable", "onClick", "onDragstart", "onDragover", "onDrop"], Js = { class: "col-head" }, Qs = {
|
|
1025
1025
|
class: "sort-indicator",
|
|
1026
1026
|
"aria-hidden": "true"
|
|
1027
|
-
}, eu = ["onMousedown", "onDblclick"], tu = ["name", "value", "disabled", "onInput"], ru = /* @__PURE__ */
|
|
1027
|
+
}, eu = ["onMousedown", "onDblclick"], tu = ["name", "value", "disabled", "onInput"], ru = /* @__PURE__ */ er({
|
|
1028
1028
|
__name: "DataGridTableStageHeader",
|
|
1029
1029
|
props: {
|
|
1030
1030
|
paneLayoutStyle: {
|
|
@@ -1061,7 +1061,7 @@ const qd = ["data-datagrid-pivot-group-label", "data-datagrid-pivot-group-span",
|
|
|
1061
1061
|
}
|
|
1062
1062
|
},
|
|
1063
1063
|
setup(r) {
|
|
1064
|
-
const k =
|
|
1064
|
+
const k = bn(), u = Mi(), z = yn(), M = Ii(), V = xn(), H = Ti(), G = l(() => V.value.sourceRows ?? []), W = l(() => M.value.visibleColumns), T = l(() => M.value.renderedColumns), v = l(() => W.value.filter((c) => c.pin === "left")), D = l(() => W.value.filter((c) => c.pin === "right")), S = l(() => k.value !== "pivot" ? 0 : W.value.reduce((c, s) => {
|
|
1065
1065
|
const n = Ae(s);
|
|
1066
1066
|
return Math.max(c, n?.groupLabels?.length ?? 0);
|
|
1067
1067
|
}, 0)), O = l(() => S.value > 0), I = l(() => xt(v.value)), Se = l(() => xt(T.value)), h = l(() => xt(D.value)), te = l(() => u.value.mainTrackStyle), he = l(() => z.value.leftColumnSpacerWidth), ve = l(() => z.value.rightColumnSpacerWidth), We = l(() => M.value.columnFilterTextByKey), we = l(() => typeof M.value.columnMenuMaxFilterValues == "number" ? M.value.columnMenuMaxFilterValues : 250), ue = l(() => typeof M.value.columnMenuValueFilterRowLimit == "number" ? M.value.columnMenuValueFilterRowLimit : Number.MAX_SAFE_INTEGER), de = N(null), ce = N(null), Ie = N(null);
|
|
@@ -1090,7 +1090,7 @@ const qd = ["data-datagrid-pivot-group-label", "data-datagrid-pivot-group-span",
|
|
|
1090
1090
|
de.value = null, ce.value = null, Ie.value = null, c && Q();
|
|
1091
1091
|
}
|
|
1092
1092
|
function Z(c) {
|
|
1093
|
-
return typeof M.value.reorderColumnsByHeader == "function" && k.value !== "pivot" && !
|
|
1093
|
+
return typeof M.value.reorderColumnsByHeader == "function" && k.value !== "pivot" && !vr(c);
|
|
1094
1094
|
}
|
|
1095
1095
|
function U(c) {
|
|
1096
1096
|
return !!(c.target instanceof HTMLElement ? c.target : null)?.closest(".col-resize, .col-menu-trigger, .col-filter, .col-filter-input, input, button");
|
|
@@ -1163,7 +1163,7 @@ const qd = ["data-datagrid-pivot-group-label", "data-datagrid-pivot-group-span",
|
|
|
1163
1163
|
s.push(yt(c, n));
|
|
1164
1164
|
return s;
|
|
1165
1165
|
}
|
|
1166
|
-
function
|
|
1166
|
+
function tr(c) {
|
|
1167
1167
|
const s = `${Math.max(0, c.width)}px`;
|
|
1168
1168
|
return {
|
|
1169
1169
|
width: s,
|
|
@@ -1172,7 +1172,7 @@ const qd = ["data-datagrid-pivot-group-label", "data-datagrid-pivot-group-span",
|
|
|
1172
1172
|
textAlign: "center"
|
|
1173
1173
|
};
|
|
1174
1174
|
}
|
|
1175
|
-
function
|
|
1175
|
+
function kr(c) {
|
|
1176
1176
|
return M.value.sortIndicator(c);
|
|
1177
1177
|
}
|
|
1178
1178
|
function wt(c, s) {
|
|
@@ -1190,7 +1190,7 @@ const qd = ["data-datagrid-pivot-group-label", "data-datagrid-pivot-group-span",
|
|
|
1190
1190
|
function Kt(c) {
|
|
1191
1191
|
z.value.handleHeaderScroll(c);
|
|
1192
1192
|
}
|
|
1193
|
-
function
|
|
1193
|
+
function vr(c) {
|
|
1194
1194
|
return c.column.meta?.rowSelection === !0;
|
|
1195
1195
|
}
|
|
1196
1196
|
function ye(c) {
|
|
@@ -1199,7 +1199,7 @@ const qd = ["data-datagrid-pivot-group-label", "data-datagrid-pivot-group-span",
|
|
|
1199
1199
|
function Pt(c) {
|
|
1200
1200
|
return c.column.capabilities?.filterable !== !1;
|
|
1201
1201
|
}
|
|
1202
|
-
function
|
|
1202
|
+
function rr(c) {
|
|
1203
1203
|
return c.column.capabilities?.groupable !== !1;
|
|
1204
1204
|
}
|
|
1205
1205
|
function Lt(c) {
|
|
@@ -1265,10 +1265,10 @@ const qd = ["data-datagrid-pivot-group-label", "data-datagrid-pivot-group-span",
|
|
|
1265
1265
|
const s = M.value.resolveColumnMenuSortDirection;
|
|
1266
1266
|
return typeof s == "function" ? s(c) : null;
|
|
1267
1267
|
}
|
|
1268
|
-
function
|
|
1268
|
+
function ar(c) {
|
|
1269
1269
|
return mt(c) !== null;
|
|
1270
1270
|
}
|
|
1271
|
-
function
|
|
1271
|
+
function pr(c) {
|
|
1272
1272
|
return lt(c);
|
|
1273
1273
|
}
|
|
1274
1274
|
function ft(c) {
|
|
@@ -1288,37 +1288,37 @@ const qd = ["data-datagrid-pivot-group-label", "data-datagrid-pivot-group-span",
|
|
|
1288
1288
|
return Number.isFinite(s) ? `Grouped column, level ${Number(s) + 1}` : "Grouped column";
|
|
1289
1289
|
}
|
|
1290
1290
|
function Te(c) {
|
|
1291
|
-
return
|
|
1291
|
+
return pr(c);
|
|
1292
1292
|
}
|
|
1293
1293
|
function Ve(c) {
|
|
1294
1294
|
return mt(c) === "asc";
|
|
1295
1295
|
}
|
|
1296
|
-
function
|
|
1296
|
+
function mr(c) {
|
|
1297
1297
|
return mt(c) === "desc";
|
|
1298
1298
|
}
|
|
1299
1299
|
function ct(c, s) {
|
|
1300
1300
|
return {
|
|
1301
1301
|
"col-menu-trigger--open": s,
|
|
1302
|
-
"col-menu-trigger--active": s ||
|
|
1303
|
-
"col-menu-trigger--filtered":
|
|
1302
|
+
"col-menu-trigger--active": s || ar(c) || pr(c) || ft(c),
|
|
1303
|
+
"col-menu-trigger--filtered": pr(c),
|
|
1304
1304
|
"col-menu-trigger--grouped": ft(c),
|
|
1305
|
-
"col-menu-trigger--sorted":
|
|
1305
|
+
"col-menu-trigger--sorted": ar(c)
|
|
1306
1306
|
};
|
|
1307
1307
|
}
|
|
1308
1308
|
function ne(c) {
|
|
1309
1309
|
const s = [];
|
|
1310
|
-
if (
|
|
1310
|
+
if (pr(c.key) && s.push("filtered"), ft(c.key)) {
|
|
1311
1311
|
const C = Ft(c.key);
|
|
1312
1312
|
s.push(Number.isFinite(C) ? `grouped level ${Number(C) + 1}` : "grouped");
|
|
1313
1313
|
}
|
|
1314
|
-
Ve(c.key) ? s.push("sorted ascending") :
|
|
1314
|
+
Ve(c.key) ? s.push("sorted ascending") : mr(c.key) && s.push("sorted descending");
|
|
1315
1315
|
const n = s.length > 0 ? `, ${s.join(" and ")}` : "";
|
|
1316
1316
|
return `Open column menu for ${c.column.label ?? c.key}${n}`;
|
|
1317
1317
|
}
|
|
1318
|
-
function
|
|
1318
|
+
function nr(c, s) {
|
|
1319
1319
|
c(s.currentTarget instanceof HTMLElement ? s.currentTarget : null);
|
|
1320
1320
|
}
|
|
1321
|
-
function
|
|
1321
|
+
function ir(c) {
|
|
1322
1322
|
const s = M.value.resolveColumnMenuSelectedTokens;
|
|
1323
1323
|
return typeof s == "function" ? s(c) : [];
|
|
1324
1324
|
}
|
|
@@ -1336,19 +1336,19 @@ const qd = ["data-datagrid-pivot-group-label", "data-datagrid-pivot-group-span",
|
|
|
1336
1336
|
const s = M.value.resolveColumnMenuItems;
|
|
1337
1337
|
return typeof s == "function" ? s(c) : ["sort", "group", "pin", "filter"];
|
|
1338
1338
|
}
|
|
1339
|
-
function
|
|
1339
|
+
function fr(c) {
|
|
1340
1340
|
const s = M.value.resolveColumnMenuDisabledItems;
|
|
1341
1341
|
return typeof s == "function" ? s(c) : [];
|
|
1342
1342
|
}
|
|
1343
|
-
function
|
|
1343
|
+
function Cr(c) {
|
|
1344
1344
|
const s = M.value.resolveColumnMenuDisabledReasons;
|
|
1345
1345
|
return typeof s == "function" ? s(c) : {};
|
|
1346
1346
|
}
|
|
1347
|
-
function
|
|
1347
|
+
function or(c) {
|
|
1348
1348
|
const s = M.value.resolveColumnMenuLabels;
|
|
1349
1349
|
return typeof s == "function" ? s(c) : {};
|
|
1350
1350
|
}
|
|
1351
|
-
function
|
|
1351
|
+
function hr(c) {
|
|
1352
1352
|
const s = M.value.resolveColumnMenuActionOptions;
|
|
1353
1353
|
return typeof s == "function" ? s(c) : {};
|
|
1354
1354
|
}
|
|
@@ -1370,7 +1370,7 @@ const qd = ["data-datagrid-pivot-group-label", "data-datagrid-pivot-group-span",
|
|
|
1370
1370
|
function jt(c, s) {
|
|
1371
1371
|
M.value.applyColumnMenuPin?.(c, s);
|
|
1372
1372
|
}
|
|
1373
|
-
function
|
|
1373
|
+
function br(c, s) {
|
|
1374
1374
|
M.value.applyColumnMenuGroupBy?.(c, s);
|
|
1375
1375
|
}
|
|
1376
1376
|
function qt(c, s) {
|
|
@@ -1395,7 +1395,7 @@ const qd = ["data-datagrid-pivot-group-label", "data-datagrid-pivot-group-span",
|
|
|
1395
1395
|
triggerClass: Ce(),
|
|
1396
1396
|
markClass: Pe(),
|
|
1397
1397
|
activate: () => {
|
|
1398
|
-
|
|
1398
|
+
Sr();
|
|
1399
1399
|
}
|
|
1400
1400
|
}));
|
|
1401
1401
|
function Ce() {
|
|
@@ -1410,7 +1410,7 @@ const qd = ["data-datagrid-pivot-group-label", "data-datagrid-pivot-group-span",
|
|
|
1410
1410
|
"grid-checkbox-indicator__mark--mixed": st() && !Ke()
|
|
1411
1411
|
};
|
|
1412
1412
|
}
|
|
1413
|
-
function
|
|
1413
|
+
function Sr() {
|
|
1414
1414
|
V.value.handleToggleAllVisibleRows?.();
|
|
1415
1415
|
}
|
|
1416
1416
|
function St(c) {
|
|
@@ -1425,14 +1425,14 @@ const qd = ["data-datagrid-pivot-group-label", "data-datagrid-pivot-group-span",
|
|
|
1425
1425
|
class: ge(["grid-header-shell", { "grid-header-shell--pivot-groups": O.value }]),
|
|
1426
1426
|
style: X(r.paneLayoutStyle)
|
|
1427
1427
|
}, [
|
|
1428
|
-
|
|
1428
|
+
Qr(c.$slots, "center-chrome"),
|
|
1429
1429
|
F("div", {
|
|
1430
1430
|
class: "grid-header-pane grid-header-pane--left",
|
|
1431
1431
|
style: X(r.leftPaneStyle),
|
|
1432
1432
|
onWheel: s[12] || (s[12] = //@ts-ignore
|
|
1433
1433
|
(...n) => r.onLinkedViewportWheel && r.onLinkedViewportWheel(...n))
|
|
1434
1434
|
}, [
|
|
1435
|
-
|
|
1435
|
+
Qr(c.$slots, "left-chrome"),
|
|
1436
1436
|
(m(!0), w(Re, null, Fe(I.value, (n, C) => (m(), w("div", {
|
|
1437
1437
|
key: `left-pivot-group-row-${C}`,
|
|
1438
1438
|
class: "grid-header-row grid-pane-track grid-header-row--pivot-groups",
|
|
@@ -1450,7 +1450,7 @@ const qd = ["data-datagrid-pivot-group-label", "data-datagrid-pivot-group-span",
|
|
|
1450
1450
|
"grid-cell--header-group-empty": !d.label,
|
|
1451
1451
|
"grid-cell--header-group-last": f === n.length - 1
|
|
1452
1452
|
}]),
|
|
1453
|
-
style: X(
|
|
1453
|
+
style: X(tr(d)),
|
|
1454
1454
|
"data-datagrid-pivot-group-label": d.label ?? void 0,
|
|
1455
1455
|
"data-datagrid-pivot-group-span": d.columns.length,
|
|
1456
1456
|
"data-datagrid-pivot-group-depth": C
|
|
@@ -1473,7 +1473,7 @@ const qd = ["data-datagrid-pivot-group-label", "data-datagrid-pivot-group-span",
|
|
|
1473
1473
|
$() ? (m(!0), w(Re, { key: 1 }, Fe(v.value, (n) => (m(), w(Re, {
|
|
1474
1474
|
key: `header-left-${n.key}`
|
|
1475
1475
|
}, [
|
|
1476
|
-
|
|
1476
|
+
vr(n) ? (m(), w("div", {
|
|
1477
1477
|
key: 0,
|
|
1478
1478
|
class: "grid-cell grid-cell--header grid-cell--pinned-left grid-cell--checkbox grid-cell--row-selection",
|
|
1479
1479
|
style: X([ze(n.key), Je(n)]),
|
|
@@ -1504,15 +1504,15 @@ const qd = ["data-datagrid-pivot-group-label", "data-datagrid-pivot-group-span",
|
|
|
1504
1504
|
], 2)
|
|
1505
1505
|
], 42, Qd)
|
|
1506
1506
|
])
|
|
1507
|
-
], 12, Zd)) : (m(), De(
|
|
1507
|
+
], 12, Zd)) : (m(), De(an, {
|
|
1508
1508
|
key: tt(n.key),
|
|
1509
1509
|
"row-count": G.value.length,
|
|
1510
1510
|
"resolve-value-entries": (C) => zt(n.key, C),
|
|
1511
1511
|
items: bt(n.key),
|
|
1512
|
-
"disabled-items":
|
|
1513
|
-
"disabled-reasons":
|
|
1514
|
-
labels:
|
|
1515
|
-
"action-options":
|
|
1512
|
+
"disabled-items": fr(n.key),
|
|
1513
|
+
"disabled-reasons": Cr(n.key),
|
|
1514
|
+
labels: or(n.key),
|
|
1515
|
+
"action-options": hr(n.key),
|
|
1516
1516
|
"custom-items": Ct(n.key),
|
|
1517
1517
|
"trigger-mode": Nt(),
|
|
1518
1518
|
"column-key": n.key,
|
|
@@ -1523,18 +1523,18 @@ const qd = ["data-datagrid-pivot-group-label", "data-datagrid-pivot-group-span",
|
|
|
1523
1523
|
pin: n.pin,
|
|
1524
1524
|
grouped: ft(n.key),
|
|
1525
1525
|
"group-order": Ft(n.key),
|
|
1526
|
-
"group-enabled":
|
|
1526
|
+
"group-enabled": rr(n),
|
|
1527
1527
|
"filter-enabled": Lt(n),
|
|
1528
1528
|
"value-filter-row-limit": ue.value,
|
|
1529
1529
|
"text-filter-enabled": Pt(n),
|
|
1530
1530
|
"text-filter-value": We.value[n.key] ?? "",
|
|
1531
1531
|
"filter-active": lt(n.key),
|
|
1532
|
-
"selected-filter-tokens":
|
|
1532
|
+
"selected-filter-tokens": ir(n.key),
|
|
1533
1533
|
"max-filter-values": we.value,
|
|
1534
1534
|
onSort: (C) => Oe(n.key, C),
|
|
1535
1535
|
onPin: (C) => jt(n.key, C),
|
|
1536
1536
|
onApplyFilter: (C) => qt(n.key, C),
|
|
1537
|
-
onGroup: (C) =>
|
|
1537
|
+
onGroup: (C) => br(n.key, C),
|
|
1538
1538
|
onUpdateTextFilter: (C) => it(n.key, C),
|
|
1539
1539
|
onClearFilter: (C) => dt(n.key)
|
|
1540
1540
|
}, {
|
|
@@ -1563,11 +1563,11 @@ const qd = ["data-datagrid-pivot-group-label", "data-datagrid-pivot-group-span",
|
|
|
1563
1563
|
"data-datagrid-column-menu-button": "true",
|
|
1564
1564
|
onMousedown: s[3] || (s[3] = R(() => {
|
|
1565
1565
|
}, ["stop"])),
|
|
1566
|
-
onClick: R((f) =>
|
|
1566
|
+
onClick: R((f) => nr(d, f), ["stop"])
|
|
1567
1567
|
}, [
|
|
1568
1568
|
(m(), w("svg", ns, [
|
|
1569
1569
|
Te(n.key) ? (m(), w("path", is)) : q("", !0),
|
|
1570
|
-
Ve(n.key) ? (m(), w("path", os)) :
|
|
1570
|
+
Ve(n.key) ? (m(), w("path", os)) : mr(n.key) ? (m(), w("path", ls)) : (m(), w("path", ds))
|
|
1571
1571
|
]))
|
|
1572
1572
|
], 42, as)) : q("", !0),
|
|
1573
1573
|
F("button", {
|
|
@@ -1587,7 +1587,7 @@ const qd = ["data-datagrid-pivot-group-label", "data-datagrid-pivot-group-span",
|
|
|
1587
1587
|
], 64))), 128)) : (m(!0), w(Re, { key: 2 }, Fe(v.value, (n) => (m(), w(Re, {
|
|
1588
1588
|
key: `header-left-${n.key}`
|
|
1589
1589
|
}, [
|
|
1590
|
-
|
|
1590
|
+
vr(n) ? (m(), w("div", {
|
|
1591
1591
|
key: 0,
|
|
1592
1592
|
class: "grid-cell grid-cell--header grid-cell--pinned-left grid-cell--checkbox grid-cell--row-selection",
|
|
1593
1593
|
style: X([ze(n.key), Je(n)]),
|
|
@@ -1637,7 +1637,7 @@ const qd = ["data-datagrid-pivot-group-label", "data-datagrid-pivot-group-span",
|
|
|
1637
1637
|
class: "col-head__group-badge",
|
|
1638
1638
|
title: pe(n.key)
|
|
1639
1639
|
}, oe(et(n.key)), 9, ms)) : q("", !0),
|
|
1640
|
-
F("span", fs, oe(
|
|
1640
|
+
F("span", fs, oe(kr(n.key)), 1),
|
|
1641
1641
|
F("button", {
|
|
1642
1642
|
type: "button",
|
|
1643
1643
|
class: "col-resize",
|
|
@@ -1693,7 +1693,7 @@ const qd = ["data-datagrid-pivot-group-label", "data-datagrid-pivot-group-span",
|
|
|
1693
1693
|
"grid-cell--header-group-empty": !d.label,
|
|
1694
1694
|
"grid-cell--header-group-last": f === n.length - 1 && ve.value <= 0
|
|
1695
1695
|
}]),
|
|
1696
|
-
style: X(
|
|
1696
|
+
style: X(tr(d)),
|
|
1697
1697
|
"data-datagrid-pivot-group-label": d.label ?? void 0,
|
|
1698
1698
|
"data-datagrid-pivot-group-span": d.columns.length,
|
|
1699
1699
|
"data-datagrid-pivot-group-depth": C
|
|
@@ -1715,15 +1715,15 @@ const qd = ["data-datagrid-pivot-group-label", "data-datagrid-pivot-group-span",
|
|
|
1715
1715
|
class: "grid-column-spacer",
|
|
1716
1716
|
style: X(St(he.value))
|
|
1717
1717
|
}, null, 4)) : q("", !0),
|
|
1718
|
-
$() ? (m(!0), w(Re, { key: 1 }, Fe(T.value, (n) => (m(), De(
|
|
1718
|
+
$() ? (m(!0), w(Re, { key: 1 }, Fe(T.value, (n) => (m(), De(an, {
|
|
1719
1719
|
key: tt(n.key),
|
|
1720
1720
|
"row-count": G.value.length,
|
|
1721
1721
|
"resolve-value-entries": (C) => zt(n.key, C),
|
|
1722
1722
|
items: bt(n.key),
|
|
1723
|
-
"disabled-items":
|
|
1724
|
-
"disabled-reasons":
|
|
1725
|
-
labels:
|
|
1726
|
-
"action-options":
|
|
1723
|
+
"disabled-items": fr(n.key),
|
|
1724
|
+
"disabled-reasons": Cr(n.key),
|
|
1725
|
+
labels: or(n.key),
|
|
1726
|
+
"action-options": hr(n.key),
|
|
1727
1727
|
"custom-items": Ct(n.key),
|
|
1728
1728
|
"trigger-mode": Nt(),
|
|
1729
1729
|
"column-key": n.key,
|
|
@@ -1734,17 +1734,17 @@ const qd = ["data-datagrid-pivot-group-label", "data-datagrid-pivot-group-span",
|
|
|
1734
1734
|
pin: n.pin,
|
|
1735
1735
|
grouped: ft(n.key),
|
|
1736
1736
|
"group-order": Ft(n.key),
|
|
1737
|
-
"group-enabled":
|
|
1737
|
+
"group-enabled": rr(n),
|
|
1738
1738
|
"filter-enabled": Lt(n),
|
|
1739
1739
|
"value-filter-row-limit": ue.value,
|
|
1740
1740
|
"text-filter-enabled": Pt(n),
|
|
1741
1741
|
"text-filter-value": We.value[n.key] ?? "",
|
|
1742
1742
|
"filter-active": lt(n.key),
|
|
1743
|
-
"selected-filter-tokens":
|
|
1743
|
+
"selected-filter-tokens": ir(n.key),
|
|
1744
1744
|
"max-filter-values": we.value,
|
|
1745
1745
|
onSort: (C) => Oe(n.key, C),
|
|
1746
1746
|
onPin: (C) => jt(n.key, C),
|
|
1747
|
-
onGroup: (C) =>
|
|
1747
|
+
onGroup: (C) => br(n.key, C),
|
|
1748
1748
|
onApplyFilter: (C) => qt(n.key, C),
|
|
1749
1749
|
onUpdateTextFilter: (C) => it(n.key, C),
|
|
1750
1750
|
onClearFilter: (C) => dt(n.key)
|
|
@@ -1779,11 +1779,11 @@ const qd = ["data-datagrid-pivot-group-label", "data-datagrid-pivot-group-span",
|
|
|
1779
1779
|
"data-datagrid-column-menu-button": "true",
|
|
1780
1780
|
onMousedown: s[13] || (s[13] = R(() => {
|
|
1781
1781
|
}, ["stop"])),
|
|
1782
|
-
onClick: R((f) =>
|
|
1782
|
+
onClick: R((f) => nr(d, f), ["stop"])
|
|
1783
1783
|
}, [
|
|
1784
1784
|
(m(), w("svg", Rs, [
|
|
1785
1785
|
Te(n.key) ? (m(), w("path", Ms)) : q("", !0),
|
|
1786
|
-
Ve(n.key) ? (m(), w("path", Is)) :
|
|
1786
|
+
Ve(n.key) ? (m(), w("path", Is)) : mr(n.key) ? (m(), w("path", Ts)) : (m(), w("path", Ds))
|
|
1787
1787
|
]))
|
|
1788
1788
|
], 42, _s)) : q("", !0),
|
|
1789
1789
|
F("button", {
|
|
@@ -1818,7 +1818,7 @@ const qd = ["data-datagrid-pivot-group-label", "data-datagrid-pivot-group-span",
|
|
|
1818
1818
|
class: "col-head__group-badge",
|
|
1819
1819
|
title: pe(n.key)
|
|
1820
1820
|
}, oe(et(n.key)), 9, Ls)) : q("", !0),
|
|
1821
|
-
F("span", Bs, oe(
|
|
1821
|
+
F("span", Bs, oe(kr(n.key)), 1),
|
|
1822
1822
|
F("button", {
|
|
1823
1823
|
type: "button",
|
|
1824
1824
|
class: "col-resize",
|
|
@@ -1861,7 +1861,7 @@ const qd = ["data-datagrid-pivot-group-label", "data-datagrid-pivot-group-span",
|
|
|
1861
1861
|
onWheel: s[26] || (s[26] = //@ts-ignore
|
|
1862
1862
|
(...n) => r.onLinkedViewportWheel && r.onLinkedViewportWheel(...n))
|
|
1863
1863
|
}, [
|
|
1864
|
-
|
|
1864
|
+
Qr(c.$slots, "right-chrome"),
|
|
1865
1865
|
(m(!0), w(Re, null, Fe(h.value, (n, C) => (m(), w("div", {
|
|
1866
1866
|
key: `right-pivot-group-row-${C}`,
|
|
1867
1867
|
class: "grid-header-row grid-pane-track grid-header-row--pivot-groups",
|
|
@@ -1873,7 +1873,7 @@ const qd = ["data-datagrid-pivot-group-label", "data-datagrid-pivot-group-span",
|
|
|
1873
1873
|
"grid-cell--header-group-empty": !d.label,
|
|
1874
1874
|
"grid-cell--header-group-last": f === n.length - 1
|
|
1875
1875
|
}]),
|
|
1876
|
-
style: X(
|
|
1876
|
+
style: X(tr(d)),
|
|
1877
1877
|
"data-datagrid-pivot-group-label": d.label ?? void 0,
|
|
1878
1878
|
"data-datagrid-pivot-group-span": d.columns.length,
|
|
1879
1879
|
"data-datagrid-pivot-group-depth": C
|
|
@@ -1885,15 +1885,15 @@ const qd = ["data-datagrid-pivot-group-label", "data-datagrid-pivot-group-span",
|
|
|
1885
1885
|
class: "grid-header-row grid-pane-track",
|
|
1886
1886
|
style: X(r.rightTrackStyle)
|
|
1887
1887
|
}, [
|
|
1888
|
-
$() ? (m(!0), w(Re, { key: 0 }, Fe(D.value, (n) => (m(), De(
|
|
1888
|
+
$() ? (m(!0), w(Re, { key: 0 }, Fe(D.value, (n) => (m(), De(an, {
|
|
1889
1889
|
key: tt(n.key),
|
|
1890
1890
|
"row-count": G.value.length,
|
|
1891
1891
|
"resolve-value-entries": (C) => zt(n.key, C),
|
|
1892
1892
|
items: bt(n.key),
|
|
1893
|
-
"disabled-items":
|
|
1894
|
-
"disabled-reasons":
|
|
1895
|
-
labels:
|
|
1896
|
-
"action-options":
|
|
1893
|
+
"disabled-items": fr(n.key),
|
|
1894
|
+
"disabled-reasons": Cr(n.key),
|
|
1895
|
+
labels: or(n.key),
|
|
1896
|
+
"action-options": hr(n.key),
|
|
1897
1897
|
"custom-items": Ct(n.key),
|
|
1898
1898
|
"trigger-mode": Nt(),
|
|
1899
1899
|
"column-key": n.key,
|
|
@@ -1904,18 +1904,18 @@ const qd = ["data-datagrid-pivot-group-label", "data-datagrid-pivot-group-span",
|
|
|
1904
1904
|
pin: n.pin,
|
|
1905
1905
|
grouped: ft(n.key),
|
|
1906
1906
|
"group-order": Ft(n.key),
|
|
1907
|
-
"group-enabled":
|
|
1907
|
+
"group-enabled": rr(n),
|
|
1908
1908
|
"filter-enabled": Lt(n),
|
|
1909
1909
|
"value-filter-row-limit": ue.value,
|
|
1910
1910
|
"text-filter-enabled": Pt(n),
|
|
1911
1911
|
"text-filter-value": We.value[n.key] ?? "",
|
|
1912
1912
|
"filter-active": lt(n.key),
|
|
1913
|
-
"selected-filter-tokens":
|
|
1913
|
+
"selected-filter-tokens": ir(n.key),
|
|
1914
1914
|
"max-filter-values": we.value,
|
|
1915
1915
|
onSort: (C) => Oe(n.key, C),
|
|
1916
1916
|
onPin: (C) => jt(n.key, C),
|
|
1917
1917
|
onApplyFilter: (C) => qt(n.key, C),
|
|
1918
|
-
onGroup: (C) =>
|
|
1918
|
+
onGroup: (C) => br(n.key, C),
|
|
1919
1919
|
onUpdateTextFilter: (C) => it(n.key, C),
|
|
1920
1920
|
onClearFilter: (C) => dt(n.key)
|
|
1921
1921
|
}, {
|
|
@@ -1949,11 +1949,11 @@ const qd = ["data-datagrid-pivot-group-label", "data-datagrid-pivot-group-span",
|
|
|
1949
1949
|
"data-datagrid-column-menu-button": "true",
|
|
1950
1950
|
onMousedown: s[20] || (s[20] = R(() => {
|
|
1951
1951
|
}, ["stop"])),
|
|
1952
|
-
onClick: R((f) =>
|
|
1952
|
+
onClick: R((f) => nr(d, f), ["stop"])
|
|
1953
1953
|
}, [
|
|
1954
1954
|
(m(), w("svg", Ns, [
|
|
1955
1955
|
Te(n.key) ? (m(), w("path", js)) : q("", !0),
|
|
1956
|
-
Ve(n.key) ? (m(), w("path", qs)) :
|
|
1956
|
+
Ve(n.key) ? (m(), w("path", qs)) : mr(n.key) ? (m(), w("path", Us)) : (m(), w("path", Xs))
|
|
1957
1957
|
]))
|
|
1958
1958
|
], 42, Ks)) : q("", !0),
|
|
1959
1959
|
F("button", {
|
|
@@ -1983,7 +1983,7 @@ const qd = ["data-datagrid-pivot-group-label", "data-datagrid-pivot-group-span",
|
|
|
1983
1983
|
}, [
|
|
1984
1984
|
F("div", Js, [
|
|
1985
1985
|
F("span", null, oe(me(n)), 1),
|
|
1986
|
-
F("span", Qs, oe(
|
|
1986
|
+
F("span", Qs, oe(kr(n.key)), 1),
|
|
1987
1987
|
F("button", {
|
|
1988
1988
|
type: "button",
|
|
1989
1989
|
class: "col-resize",
|
|
@@ -2017,7 +2017,7 @@ const qd = ["data-datagrid-pivot-group-label", "data-datagrid-pivot-group-span",
|
|
|
2017
2017
|
], 36)
|
|
2018
2018
|
], 6));
|
|
2019
2019
|
}
|
|
2020
|
-
}), Ei = /* @__PURE__ */
|
|
2020
|
+
}), Ei = /* @__PURE__ */ er({
|
|
2021
2021
|
__name: "DataGridCellComboboxEditor",
|
|
2022
2022
|
props: {
|
|
2023
2023
|
value: {},
|
|
@@ -2049,7 +2049,7 @@ const qd = ["data-datagrid-pivot-group-label", "data-datagrid-pivot-group-span",
|
|
|
2049
2049
|
onOptionsResolved: M
|
|
2050
2050
|
}, null, 8, ["value", "options", "load-options", "placeholder", "initial-filter", "open-on-mount"]));
|
|
2051
2051
|
}
|
|
2052
|
-
}), Ai =
|
|
2052
|
+
}), Ai = er({
|
|
2053
2053
|
name: "DataGridCellContentRenderer",
|
|
2054
2054
|
props: {
|
|
2055
2055
|
content: {
|
|
@@ -2060,7 +2060,7 @@ const qd = ["data-datagrid-pivot-group-label", "data-datagrid-pivot-group-span",
|
|
|
2060
2060
|
setup(r) {
|
|
2061
2061
|
return () => r.content;
|
|
2062
2062
|
}
|
|
2063
|
-
}), au = ["data-datagrid-overlay-lane"],
|
|
2063
|
+
}), au = ["data-datagrid-overlay-lane"], un = /* @__PURE__ */ er({
|
|
2064
2064
|
__name: "DataGridTableStageOverlayLayer",
|
|
2065
2065
|
props: {
|
|
2066
2066
|
selectionSegments: {},
|
|
@@ -2120,7 +2120,7 @@ const qd = ["data-datagrid-pivot-group-label", "data-datagrid-pivot-group-span",
|
|
|
2120
2120
|
], 10, au))), 128))
|
|
2121
2121
|
], 64));
|
|
2122
2122
|
}
|
|
2123
|
-
}), nu = ["data-row-index", "onClick", "onMouseenter"], iu = ["data-row-id", "data-column-key", "data-row-index", "data-column-index", "tabindex", "role", "aria-checked", "aria-pressed", "aria-label", "aria-disabled", "onMousedown", "onClick", "onMousemove", "onKeydown", "onDblclick"], ou = ["name", "type", "value"], lu = ["name", "value"], di = /* @__PURE__ */
|
|
2123
|
+
}), nu = ["data-row-index", "onClick", "onMouseenter"], iu = ["data-row-id", "data-column-key", "data-row-index", "data-column-index", "tabindex", "role", "aria-checked", "aria-pressed", "aria-label", "aria-disabled", "onMousedown", "onClick", "onMousemove", "onKeydown", "onDblclick"], ou = ["name", "type", "value"], lu = ["name", "value"], di = /* @__PURE__ */ er({
|
|
2124
2124
|
__name: "DataGridTableStageCenterPane",
|
|
2125
2125
|
props: {
|
|
2126
2126
|
viewportRef: {
|
|
@@ -2201,7 +2201,7 @@ const qd = ["data-datagrid-pivot-group-label", "data-datagrid-pivot-group-span",
|
|
|
2201
2201
|
}
|
|
2202
2202
|
},
|
|
2203
2203
|
setup(r) {
|
|
2204
|
-
const k = r, u =
|
|
2204
|
+
const k = r, u = bn(), z = Ri(), M = Mi(), V = yn(), H = Ii(), G = xn(), W = Di(), {
|
|
2205
2205
|
displayRows: T,
|
|
2206
2206
|
viewportClass: v,
|
|
2207
2207
|
viewportRef: D,
|
|
@@ -2276,7 +2276,7 @@ const qd = ["data-datagrid-pivot-group-label", "data-datagrid-pivot-group-span",
|
|
|
2276
2276
|
centerPaneBodyRowsRevision: k.bodyRowsRevision
|
|
2277
2277
|
});
|
|
2278
2278
|
}
|
|
2279
|
-
return
|
|
2279
|
+
return hn(() => {
|
|
2280
2280
|
k.reportCenterPaneDiagnostics?.({ mounted: !0 }), J();
|
|
2281
2281
|
}), je(
|
|
2282
2282
|
() => [
|
|
@@ -2448,7 +2448,7 @@ const qd = ["data-datagrid-pivot-group-label", "data-datagrid-pivot-group-span",
|
|
|
2448
2448
|
class: "grid-spacer",
|
|
2449
2449
|
style: X({ height: `${he.value}px` })
|
|
2450
2450
|
}, null, 4)) : q("", !0),
|
|
2451
|
-
nt(
|
|
2451
|
+
nt(un, {
|
|
2452
2452
|
"selection-segments": y(S),
|
|
2453
2453
|
"fill-preview-segments": y(O),
|
|
2454
2454
|
"move-preview-segments": y(I),
|
|
@@ -2461,7 +2461,7 @@ const qd = ["data-datagrid-pivot-group-label", "data-datagrid-pivot-group-span",
|
|
|
2461
2461
|
key: 0,
|
|
2462
2462
|
class: "grid-fill-action__menu",
|
|
2463
2463
|
role: "menu"
|
|
2464
|
-
}, uu = ["aria-checked"], cu = ["aria-checked"], gu = /* @__PURE__ */
|
|
2464
|
+
}, uu = ["aria-checked"], cu = ["aria-checked"], gu = /* @__PURE__ */ er({
|
|
2465
2465
|
__name: "DataGridTableStageFillActionMenu",
|
|
2466
2466
|
props: {
|
|
2467
2467
|
isOpen: {
|
|
@@ -2513,7 +2513,7 @@ const qd = ["data-datagrid-pivot-group-label", "data-datagrid-pivot-group-span",
|
|
|
2513
2513
|
])) : q("", !0)
|
|
2514
2514
|
], 4)) : q("", !0);
|
|
2515
2515
|
}
|
|
2516
|
-
}), vu = ["data-row-index", "onClick", "onMouseenter"], pu = ["data-row-id", "data-row-index", "tabindex", "draggable", "onClick", "onKeydown", "onDragstart", "onDragover", "onDrop"], mu = ["onMousedown", "onDblclick"], fu = ["data-row-id", "data-column-key", "data-row-index", "data-column-index", "tabindex", "role", "aria-checked", "aria-pressed", "aria-label", "aria-disabled", "onMousedown", "onClick", "onMousemove", "onKeydown", "onDblclick"], hu = ["name", "type", "value"], bu = ["name", "value"],
|
|
2516
|
+
}), vu = ["data-row-index", "onClick", "onMouseenter"], pu = ["data-row-id", "data-row-index", "tabindex", "draggable", "onClick", "onKeydown", "onDragstart", "onDragover", "onDrop"], mu = ["onMousedown", "onDblclick"], fu = ["data-row-id", "data-column-key", "data-row-index", "data-column-index", "tabindex", "role", "aria-checked", "aria-pressed", "aria-label", "aria-disabled", "onMousedown", "onClick", "onMousemove", "onKeydown", "onDblclick"], hu = ["name", "type", "value"], bu = ["name", "value"], za = /* @__PURE__ */ er({
|
|
2517
2517
|
__name: "DataGridTableStagePinnedPane",
|
|
2518
2518
|
props: {
|
|
2519
2519
|
pane: {
|
|
@@ -2530,7 +2530,7 @@ const qd = ["data-datagrid-pivot-group-label", "data-datagrid-pivot-group-span",
|
|
|
2530
2530
|
}
|
|
2531
2531
|
},
|
|
2532
2532
|
setup(r) {
|
|
2533
|
-
const k = r, u =
|
|
2533
|
+
const k = r, u = bn(), z = Ri(), M = yn(), V = xn(), H = Di(), G = k.handleContextMenu;
|
|
2534
2534
|
return (W, T) => (m(), w("div", {
|
|
2535
2535
|
class: ge(["grid-body-pane", [
|
|
2536
2536
|
r.pane.side === "left" ? "grid-body-pane--left" : "grid-body-pane--right",
|
|
@@ -2540,8 +2540,8 @@ const qd = ["data-datagrid-pivot-group-label", "data-datagrid-pivot-group-span",
|
|
|
2540
2540
|
onWheel: T[19] || (T[19] = //@ts-ignore
|
|
2541
2541
|
(...v) => r.renderApi.handleLinkedViewportWheel && r.renderApi.handleLinkedViewportWheel(...v))
|
|
2542
2542
|
}, [
|
|
2543
|
-
|
|
2544
|
-
nt(
|
|
2543
|
+
Qr(W.$slots, "chrome"),
|
|
2544
|
+
nt(un, {
|
|
2545
2545
|
"layer-class": "grid-selection-overlay--pane-seam",
|
|
2546
2546
|
"selection-segments": r.pane.selectionSeamOverlaySegments,
|
|
2547
2547
|
"fill-preview-segments": r.pane.fillPreviewSeamOverlaySegments,
|
|
@@ -2714,7 +2714,7 @@ const qd = ["data-datagrid-pivot-group-label", "data-datagrid-pivot-group-span",
|
|
|
2714
2714
|
class: "grid-spacer",
|
|
2715
2715
|
style: X({ height: `${r.pane.bottomSpacerHeight ?? y(M).bottomSpacerHeight}px` })
|
|
2716
2716
|
}, null, 4)) : q("", !0),
|
|
2717
|
-
nt(
|
|
2717
|
+
nt(un, {
|
|
2718
2718
|
"selection-segments": r.pane.selectionOverlaySegments,
|
|
2719
2719
|
"fill-preview-segments": r.pane.fillPreviewOverlaySegments,
|
|
2720
2720
|
"move-preview-segments": r.pane.movePreviewOverlaySegments,
|
|
@@ -2730,15 +2730,15 @@ function Pi(r) {
|
|
|
2730
2730
|
function yu(r) {
|
|
2731
2731
|
return Number.isFinite(r) && r > 0 ? r : 0;
|
|
2732
2732
|
}
|
|
2733
|
-
function
|
|
2733
|
+
function nn(r, k) {
|
|
2734
2734
|
return Number.isFinite(r) ? Math.max(0, Math.trunc(r)) : k;
|
|
2735
2735
|
}
|
|
2736
2736
|
function xu(r) {
|
|
2737
|
-
const k =
|
|
2737
|
+
const k = nn(r.rowTotal, 0);
|
|
2738
2738
|
if (k <= 0)
|
|
2739
2739
|
return [];
|
|
2740
|
-
const u = k - 1, z = Math.min(
|
|
2741
|
-
Math.max(z,
|
|
2740
|
+
const u = k - 1, z = Math.min(nn(r.rowStart, 0), u), M = Math.min(
|
|
2741
|
+
Math.max(z, nn(r.rowEnd, z)),
|
|
2742
2742
|
u
|
|
2743
2743
|
), V = Math.max(1, Math.trunc(Number.isFinite(r.baseRowHeight) ? r.baseRowHeight : 1)), H = Number.isFinite(r.topSpacerHeight) ? Math.max(0, r.topSpacerHeight) : 0, G = [];
|
|
2744
2744
|
let W = H;
|
|
@@ -2753,7 +2753,7 @@ function xu(r) {
|
|
|
2753
2753
|
}
|
|
2754
2754
|
return G;
|
|
2755
2755
|
}
|
|
2756
|
-
function
|
|
2756
|
+
function cn(r, k) {
|
|
2757
2757
|
const u = yu(r);
|
|
2758
2758
|
if (u <= 0)
|
|
2759
2759
|
return 0;
|
|
@@ -2761,10 +2761,10 @@ function un(r, k) {
|
|
|
2761
2761
|
return Math.max(1, Math.round(u * z)) / z;
|
|
2762
2762
|
}
|
|
2763
2763
|
function si(r, k, u) {
|
|
2764
|
-
const z = Pi(u), M =
|
|
2764
|
+
const z = Pi(u), M = cn(k, z);
|
|
2765
2765
|
return Math.round(r * z) / z - M / 2;
|
|
2766
2766
|
}
|
|
2767
|
-
const wu = 6,
|
|
2767
|
+
const wu = 6, Oa = 0.5;
|
|
2768
2768
|
function ui(r, k) {
|
|
2769
2769
|
return Math.min(Math.max(0, r), Math.max(0, k));
|
|
2770
2770
|
}
|
|
@@ -2772,7 +2772,7 @@ function ku(r) {
|
|
|
2772
2772
|
const k = Math.abs(r.deltaX), u = Math.abs(r.deltaY);
|
|
2773
2773
|
if (Math.max(k, u) < wu)
|
|
2774
2774
|
return null;
|
|
2775
|
-
const M = r.maxScrollLeft >
|
|
2775
|
+
const M = r.maxScrollLeft > Oa, V = r.maxScrollTop > Oa;
|
|
2776
2776
|
return !M && !V ? null : M && !V ? "x" : V && !M ? "y" : k >= u ? "x" : "y";
|
|
2777
2777
|
}
|
|
2778
2778
|
function Li(r) {
|
|
@@ -2820,13 +2820,13 @@ function Li(r) {
|
|
|
2820
2820
|
deltaY: D,
|
|
2821
2821
|
maxScrollLeft: O,
|
|
2822
2822
|
maxScrollTop: S
|
|
2823
|
-
}), !k.lockedAxis) || (G.preventDefault(), k.lockedAxis === "x" && O >
|
|
2823
|
+
}), !k.lockedAxis) || (G.preventDefault(), k.lockedAxis === "x" && O > Oa && (T.scrollLeft = ui(k.startScrollLeft - v, O)), k.lockedAxis === "y" && S > Oa && (T.scrollTop = ui(k.startScrollTop - D, S)));
|
|
2824
2824
|
};
|
|
2825
2825
|
return r.root.addEventListener("touchstart", V, { capture: !0, passive: !0 }), r.root.addEventListener("touchmove", H, { capture: !0, passive: !1 }), r.root.addEventListener("touchend", M, !0), r.root.addEventListener("touchcancel", M, !0), () => {
|
|
2826
2826
|
r.root.removeEventListener("touchstart", V, !0), r.root.removeEventListener("touchmove", H, !0), r.root.removeEventListener("touchend", M, !0), r.root.removeEventListener("touchcancel", M, !0);
|
|
2827
2827
|
};
|
|
2828
2828
|
}
|
|
2829
|
-
const ci = "affino-datagrid-vue-app-styles",
|
|
2829
|
+
const ci = "affino-datagrid-vue-app-styles", on = `
|
|
2830
2830
|
.affino-datagrid-app-root {
|
|
2831
2831
|
display: flex;
|
|
2832
2832
|
min-width: 0;
|
|
@@ -6099,23 +6099,23 @@ function Bi() {
|
|
|
6099
6099
|
return;
|
|
6100
6100
|
const r = document.getElementById(ci);
|
|
6101
6101
|
if (r instanceof HTMLStyleElement) {
|
|
6102
|
-
r.textContent !==
|
|
6102
|
+
r.textContent !== on && (r.textContent = on);
|
|
6103
6103
|
return;
|
|
6104
6104
|
}
|
|
6105
6105
|
const k = document.createElement("style");
|
|
6106
|
-
k.id = ci, k.textContent =
|
|
6106
|
+
k.id = ci, k.textContent = on, document.head.append(k);
|
|
6107
6107
|
}
|
|
6108
|
-
const
|
|
6108
|
+
const xa = ["edit", "paste", "toggle"];
|
|
6109
6109
|
function gi(r) {
|
|
6110
6110
|
return Number.isFinite(r) ? Math.max(0, Math.trunc(r)) : 0;
|
|
6111
6111
|
}
|
|
6112
6112
|
function Cu(r) {
|
|
6113
6113
|
if (!Array.isArray(r) || r.length === 0)
|
|
6114
|
-
return
|
|
6114
|
+
return xa;
|
|
6115
6115
|
const k = Array.from(new Set(
|
|
6116
|
-
r.filter((u) =>
|
|
6116
|
+
r.filter((u) => xa.includes(u))
|
|
6117
6117
|
));
|
|
6118
|
-
return k.length > 0 ? k :
|
|
6118
|
+
return k.length > 0 ? k : xa;
|
|
6119
6119
|
}
|
|
6120
6120
|
function nc(r) {
|
|
6121
6121
|
if (r == null)
|
|
@@ -6123,7 +6123,7 @@ function nc(r) {
|
|
|
6123
6123
|
enabled: !1,
|
|
6124
6124
|
policy: "fixed-tail",
|
|
6125
6125
|
count: 0,
|
|
6126
|
-
materializeOn:
|
|
6126
|
+
materializeOn: xa,
|
|
6127
6127
|
createRowAt: null
|
|
6128
6128
|
};
|
|
6129
6129
|
if (typeof r == "number") {
|
|
@@ -6132,7 +6132,7 @@ function nc(r) {
|
|
|
6132
6132
|
enabled: z > 0,
|
|
6133
6133
|
policy: "fixed-tail",
|
|
6134
6134
|
count: z,
|
|
6135
|
-
materializeOn:
|
|
6135
|
+
materializeOn: xa,
|
|
6136
6136
|
createRowAt: null
|
|
6137
6137
|
};
|
|
6138
6138
|
}
|
|
@@ -6148,14 +6148,14 @@ function nc(r) {
|
|
|
6148
6148
|
function Su(r, k) {
|
|
6149
6149
|
return r.enabled && r.materializeOn.includes(k);
|
|
6150
6150
|
}
|
|
6151
|
-
const
|
|
6151
|
+
const gn = "__datagrid_placeholder__:";
|
|
6152
6152
|
function _u(r) {
|
|
6153
|
-
return `${
|
|
6153
|
+
return `${gn}${r}`;
|
|
6154
6154
|
}
|
|
6155
6155
|
function Ru(r) {
|
|
6156
|
-
if (typeof r != "string" || !r.startsWith(
|
|
6156
|
+
if (typeof r != "string" || !r.startsWith(gn))
|
|
6157
6157
|
return -1;
|
|
6158
|
-
const k = Number.parseInt(r.slice(
|
|
6158
|
+
const k = Number.parseInt(r.slice(gn.length), 10);
|
|
6159
6159
|
return Number.isFinite(k) ? Math.max(0, k) : -1;
|
|
6160
6160
|
}
|
|
6161
6161
|
function Mu(r) {
|
|
@@ -6179,17 +6179,17 @@ function Mu(r) {
|
|
|
6179
6179
|
row: {}
|
|
6180
6180
|
};
|
|
6181
6181
|
}
|
|
6182
|
-
function
|
|
6182
|
+
function vn(r) {
|
|
6183
6183
|
return r?.__placeholder === !0;
|
|
6184
6184
|
}
|
|
6185
|
-
function
|
|
6185
|
+
function pn(r, k) {
|
|
6186
6186
|
if (k <= 0)
|
|
6187
6187
|
return { start: 0, end: 0 };
|
|
6188
6188
|
const u = Math.max(0, Math.min(k - 1, Math.trunc(r.start))), z = Math.max(u, Math.min(k - 1, Math.trunc(r.end)));
|
|
6189
6189
|
return { start: u, end: z };
|
|
6190
6190
|
}
|
|
6191
6191
|
function Iu(r, k, u) {
|
|
6192
|
-
const z =
|
|
6192
|
+
const z = pn(
|
|
6193
6193
|
k ?? (r ? { start: r.rowStart, end: r.rowEnd } : { start: 0, end: Math.max(0, u - 1) }),
|
|
6194
6194
|
u
|
|
6195
6195
|
), M = Math.max(0, r?.colTotal ?? 0), V = Math.max(0, M - 1), H = r ? Math.max(0, Math.min(V, Math.trunc(r.colStart))) : 0, G = r ? Math.max(H, Math.min(V, Math.trunc(r.colEnd))) : V;
|
|
@@ -6215,7 +6215,7 @@ function ic(r) {
|
|
|
6215
6215
|
}, V = (D) => r.placeholderRows.value.createRowAt != null && D?.column.capabilities?.editable !== !1, H = (D, S) => {
|
|
6216
6216
|
if (r.totalBodyRows.value <= 0)
|
|
6217
6217
|
return;
|
|
6218
|
-
const O = r.totalBodyRows.value, I =
|
|
6218
|
+
const O = r.totalBodyRows.value, I = pn({
|
|
6219
6219
|
start: Math.min(D.start, O - 1),
|
|
6220
6220
|
end: Math.min(D.end, O - 1)
|
|
6221
6221
|
}, O);
|
|
@@ -6225,7 +6225,7 @@ function ic(r) {
|
|
|
6225
6225
|
}
|
|
6226
6226
|
(r.runtime.setVirtualWindowRange ?? r.runtime.setViewportRange)?.(I);
|
|
6227
6227
|
}, G = (D, S) => {
|
|
6228
|
-
const O =
|
|
6228
|
+
const O = pn(D, k.value);
|
|
6229
6229
|
return u.value = O, H(O, S), O;
|
|
6230
6230
|
}, W = l(() => Iu(
|
|
6231
6231
|
r.runtime.virtualWindow.value,
|
|
@@ -6295,12 +6295,12 @@ function ic(r) {
|
|
|
6295
6295
|
return {
|
|
6296
6296
|
totalVisualRows: k,
|
|
6297
6297
|
visualRuntime: v,
|
|
6298
|
-
isPlaceholderRow:
|
|
6298
|
+
isPlaceholderRow: vn,
|
|
6299
6299
|
isPlaceholderCellEditable: V,
|
|
6300
6300
|
ensureMaterializedRowAt: T
|
|
6301
6301
|
};
|
|
6302
6302
|
}
|
|
6303
|
-
const Tu = "dgPerfTrace", Du = "affino-datagrid-perf-trace",
|
|
6303
|
+
const Tu = "dgPerfTrace", Du = "affino-datagrid-perf-trace", ln = "__AFFINO_DATAGRID_PERF__", vi = 400, Eu = 6, Au = ".grid-fill-action", gr = 14, Qt = 8, dn = 10, pi = 72, Va = "datagrid-fill-drag-cursor", Pu = /* @__PURE__ */ er({
|
|
6304
6304
|
__name: "DataGridTableStage",
|
|
6305
6305
|
props: {
|
|
6306
6306
|
mode: {
|
|
@@ -6444,7 +6444,7 @@ const Tu = "dgPerfTrace", Du = "affino-datagrid-perf-trace", on = "__AFFINO_DATA
|
|
|
6444
6444
|
if (typeof window > "u")
|
|
6445
6445
|
return null;
|
|
6446
6446
|
const e = window;
|
|
6447
|
-
return e[
|
|
6447
|
+
return e[ln] || (e[ln] = V()), e[ln] ?? null;
|
|
6448
6448
|
}
|
|
6449
6449
|
function G(e) {
|
|
6450
6450
|
H()?.push(e);
|
|
@@ -6458,7 +6458,7 @@ const Tu = "dgPerfTrace", Du = "affino-datagrid-perf-trace", on = "__AFFINO_DATA
|
|
|
6458
6458
|
const ue = l(() => Se.value?.visibleColumns ?? []), de = l(() => Se.value?.renderedColumns ?? []), ce = l(() => h.value?.displayRows ?? []), Ie = l(() => h.value?.pinnedBottomRows ?? []), J = l(() => te.value?.selectionRange ?? null), ae = l(() => {
|
|
6459
6459
|
const e = te.value?.selectionRanges;
|
|
6460
6460
|
return Array.isArray(e) && e.length > 0 ? e : J.value ? [J.value] : [];
|
|
6461
|
-
}), $ = l(() => te.value?.isFillDragging === !0), P = l(() => ue.value.some((e) =>
|
|
6461
|
+
}), $ = l(() => te.value?.isFillDragging === !0), P = l(() => ue.value.some((e) => kr(e)));
|
|
6462
6462
|
function Q(e) {
|
|
6463
6463
|
return O.value.columnStyle(e);
|
|
6464
6464
|
}
|
|
@@ -6505,7 +6505,7 @@ const Tu = "dgPerfTrace", Du = "affino-datagrid-perf-trace", on = "__AFFINO_DATA
|
|
|
6505
6505
|
}
|
|
6506
6506
|
function yt(e) {
|
|
6507
6507
|
const t = e.column.meta?.affinoPivotHeader;
|
|
6508
|
-
if (!
|
|
6508
|
+
if (!tr(t))
|
|
6509
6509
|
return null;
|
|
6510
6510
|
const a = Array.isArray(t.groupLabels) ? t.groupLabels.filter((o) => typeof o == "string" && o.length > 0) : [];
|
|
6511
6511
|
return a.length > 0 ? { groupLabels: a } : null;
|
|
@@ -6513,10 +6513,10 @@ const Tu = "dgPerfTrace", Du = "affino-datagrid-perf-trace", on = "__AFFINO_DATA
|
|
|
6513
6513
|
function xt(e) {
|
|
6514
6514
|
return e === "left" || e === "center" || e === "right" ? e : void 0;
|
|
6515
6515
|
}
|
|
6516
|
-
function
|
|
6516
|
+
function tr(e) {
|
|
6517
6517
|
return !!e && typeof e == "object";
|
|
6518
6518
|
}
|
|
6519
|
-
function
|
|
6519
|
+
function kr(e) {
|
|
6520
6520
|
return typeof e.column.groupCellRenderer == "function";
|
|
6521
6521
|
}
|
|
6522
6522
|
function wt(e) {
|
|
@@ -6531,7 +6531,7 @@ const Tu = "dgPerfTrace", Du = "affino-datagrid-perf-trace", on = "__AFFINO_DATA
|
|
|
6531
6531
|
}
|
|
6532
6532
|
function kt(e, t, a = {}) {
|
|
6533
6533
|
let o = null;
|
|
6534
|
-
return
|
|
6534
|
+
return ra(e, t) ? o = "var(--datagrid-row-band-hover-bg)" : aa(e, t) && (o = "var(--datagrid-row-band-striped-bg)"), o ? a.fullBleed === !0 ? {
|
|
6535
6535
|
backgroundImage: `linear-gradient(${o}, ${o})`,
|
|
6536
6536
|
backgroundSize: "100% calc(100% - var(--datagrid-row-divider-size))",
|
|
6537
6537
|
backgroundPosition: "top left",
|
|
@@ -6546,14 +6546,14 @@ const Tu = "dgPerfTrace", Du = "affino-datagrid-perf-trace", on = "__AFFINO_DATA
|
|
|
6546
6546
|
function Kt(e, t, a, o) {
|
|
6547
6547
|
if (bt(a, o))
|
|
6548
6548
|
return t.pin === "left" ? { background: "var(--datagrid-pinned-left-bg)" } : t.pin === "right" ? { background: "var(--datagrid-pinned-right-bg)" } : { background: "var(--datagrid-row-background-color)" };
|
|
6549
|
-
if (
|
|
6549
|
+
if (fr(a, o))
|
|
6550
6550
|
return { background: "var(--datagrid-selection-range-bg)" };
|
|
6551
6551
|
const b = kt(e, a, {
|
|
6552
6552
|
fullBleed: t.pin === "left" || t.pin === "right"
|
|
6553
6553
|
});
|
|
6554
6554
|
return b || {};
|
|
6555
6555
|
}
|
|
6556
|
-
function
|
|
6556
|
+
function vr(e, t) {
|
|
6557
6557
|
const a = kt(e, t, { fullBleed: !0 });
|
|
6558
6558
|
return a ? {
|
|
6559
6559
|
...Ke.value,
|
|
@@ -6582,7 +6582,7 @@ const Tu = "dgPerfTrace", Du = "affino-datagrid-perf-trace", on = "__AFFINO_DATA
|
|
|
6582
6582
|
"grid-cell--index-selected-bottom": x && !E
|
|
6583
6583
|
};
|
|
6584
6584
|
}
|
|
6585
|
-
function
|
|
6585
|
+
function rr(e, t, a, o) {
|
|
6586
6586
|
return ve.value.cellClass?.(e, t, a, o) ?? null;
|
|
6587
6587
|
}
|
|
6588
6588
|
function Lt(e, t, a, o) {
|
|
@@ -6625,26 +6625,26 @@ const Tu = "dgPerfTrace", Du = "affino-datagrid-perf-trace", on = "__AFFINO_DATA
|
|
|
6625
6625
|
return bt(e, t) ? 0 : -1;
|
|
6626
6626
|
}
|
|
6627
6627
|
function Ge(e) {
|
|
6628
|
-
return
|
|
6628
|
+
return Ca(e) ? 0 : -1;
|
|
6629
6629
|
}
|
|
6630
6630
|
function ot() {
|
|
6631
6631
|
xe.value = null, rt.value = null, $e.value = null;
|
|
6632
6632
|
}
|
|
6633
6633
|
function lt(e) {
|
|
6634
|
-
return typeof h.value.reorderRowsByIndex == "function" && e.kind !== "group" && e.rowId != null && e.state.pinned === "none" && !
|
|
6634
|
+
return typeof h.value.reorderRowsByIndex == "function" && e.kind !== "group" && e.rowId != null && e.state.pinned === "none" && !vn(e);
|
|
6635
6635
|
}
|
|
6636
6636
|
function mt(e) {
|
|
6637
6637
|
const a = (e.currentTarget instanceof HTMLElement ? e.currentTarget : null)?.getBoundingClientRect();
|
|
6638
6638
|
return !a || a.height <= 0 ? "after" : e.clientY < a.top + a.height / 2 ? "before" : "after";
|
|
6639
6639
|
}
|
|
6640
|
-
function
|
|
6640
|
+
function ar(e, t, a) {
|
|
6641
6641
|
if (!lt(t)) {
|
|
6642
6642
|
ot();
|
|
6643
6643
|
return;
|
|
6644
6644
|
}
|
|
6645
6645
|
xe.value = String(t.rowId), rt.value = null, $e.value = null, e.dataTransfer && (e.dataTransfer.effectAllowed = "move", e.dataTransfer.dropEffect = "move", e.dataTransfer.setData("text/plain", `${String(t.rowId)}:${It(t, a)}`));
|
|
6646
6646
|
}
|
|
6647
|
-
function
|
|
6647
|
+
function pr(e, t, a) {
|
|
6648
6648
|
if (!xe.value || !lt(t)) {
|
|
6649
6649
|
rt.value = null, $e.value = null;
|
|
6650
6650
|
return;
|
|
@@ -6696,13 +6696,13 @@ const Tu = "dgPerfTrace", Du = "affino-datagrid-perf-trace", on = "__AFFINO_DATA
|
|
|
6696
6696
|
te.value?.totalRowCount ?? 0
|
|
6697
6697
|
);
|
|
6698
6698
|
}
|
|
6699
|
-
function
|
|
6699
|
+
function mr() {
|
|
6700
6700
|
const e = I.value?.baseRowHeight;
|
|
6701
6701
|
if (Number.isFinite(e) && e > 0)
|
|
6702
6702
|
return Math.max(1, Math.trunc(e));
|
|
6703
6703
|
const t = ce.value[0];
|
|
6704
6704
|
if (t) {
|
|
6705
|
-
const a = h.value?.rowStyle(t,
|
|
6705
|
+
const a = h.value?.rowStyle(t, Rr(t, 0)) ?? {};
|
|
6706
6706
|
return Math.max(1, Math.trunc(Ae(a.height ?? a.minHeight, 31)));
|
|
6707
6707
|
}
|
|
6708
6708
|
return 31;
|
|
@@ -6713,24 +6713,24 @@ const Tu = "dgPerfTrace", Du = "affino-datagrid-perf-trace", on = "__AFFINO_DATA
|
|
|
6713
6713
|
function ne() {
|
|
6714
6714
|
return I.value?.rightColumnSpacerWidth ?? 0;
|
|
6715
6715
|
}
|
|
6716
|
-
function
|
|
6716
|
+
function nr() {
|
|
6717
6717
|
const e = te.value.fillActionAnchorCell;
|
|
6718
6718
|
if (!e) {
|
|
6719
6719
|
f.value?.focus({ preventScroll: !0 });
|
|
6720
6720
|
return;
|
|
6721
6721
|
}
|
|
6722
|
-
const t =
|
|
6722
|
+
const t = Ka(e.rowIndex, e.columnIndex);
|
|
6723
6723
|
if (t) {
|
|
6724
6724
|
t.focus({ preventScroll: !0 });
|
|
6725
6725
|
return;
|
|
6726
6726
|
}
|
|
6727
6727
|
f.value?.focus({ preventScroll: !0 });
|
|
6728
6728
|
}
|
|
6729
|
-
function
|
|
6730
|
-
|
|
6729
|
+
function ir(e) {
|
|
6730
|
+
qn.value && (e.preventDefault(), e.stopPropagation(), nr(), He.value = !He.value);
|
|
6731
6731
|
}
|
|
6732
6732
|
function zt() {
|
|
6733
|
-
He.value = !1,
|
|
6733
|
+
He.value = !1, nr();
|
|
6734
6734
|
}
|
|
6735
6735
|
function Nt(e, t) {
|
|
6736
6736
|
const a = ve.value.isCellSelected;
|
|
@@ -6746,20 +6746,20 @@ const Tu = "dgPerfTrace", Du = "affino-datagrid-perf-trace", on = "__AFFINO_DATA
|
|
|
6746
6746
|
const a = ht();
|
|
6747
6747
|
return !!(a && I.value.viewportRowStart + e === a.rowIndex && t === a.columnIndex);
|
|
6748
6748
|
}
|
|
6749
|
-
function
|
|
6750
|
-
return !Nt(e, t) || bt(e, t) ? !1 : !
|
|
6749
|
+
function fr(e, t) {
|
|
6750
|
+
return !Nt(e, t) || bt(e, t) ? !1 : !Jt.value;
|
|
6751
6751
|
}
|
|
6752
|
-
function
|
|
6752
|
+
function Cr(e, t) {
|
|
6753
6753
|
if (bt(e, t))
|
|
6754
6754
|
return !0;
|
|
6755
6755
|
const a = ve.value.isSelectionAnchorCell;
|
|
6756
6756
|
return typeof a == "function" ? a(e, t) : !1;
|
|
6757
6757
|
}
|
|
6758
|
-
function
|
|
6758
|
+
function or(e, t) {
|
|
6759
6759
|
const a = ve.value.isCellInFillPreview;
|
|
6760
6760
|
return typeof a == "function" ? a(e, t) : !1;
|
|
6761
6761
|
}
|
|
6762
|
-
function
|
|
6762
|
+
function hr(e, t) {
|
|
6763
6763
|
const a = ve.value.isCellInPendingClipboardRange;
|
|
6764
6764
|
return typeof a == "function" ? a(e, t) : !1;
|
|
6765
6765
|
}
|
|
@@ -6779,7 +6779,7 @@ const Tu = "dgPerfTrace", Du = "affino-datagrid-perf-trace", on = "__AFFINO_DATA
|
|
|
6779
6779
|
const a = te.value.isFillHandleCell;
|
|
6780
6780
|
return typeof a == "function" ? a(e, t) : !1;
|
|
6781
6781
|
}
|
|
6782
|
-
function
|
|
6782
|
+
function br(e, t) {
|
|
6783
6783
|
const a = e - I.value.viewportRowStart, o = ce.value[a], b = ue.value[t];
|
|
6784
6784
|
return a < 0 || !o || !b ? !1 : Oe(o, a, b, t);
|
|
6785
6785
|
}
|
|
@@ -6799,7 +6799,7 @@ const Tu = "dgPerfTrace", Du = "affino-datagrid-perf-trace", on = "__AFFINO_DATA
|
|
|
6799
6799
|
minWidth: e,
|
|
6800
6800
|
maxWidth: e
|
|
6801
6801
|
};
|
|
6802
|
-
}), st = l(() => te.value.isRangeMoving), Xe = l(() => ue.value.filter((e) => e.pin === "left")), ke = l(() => ue.value.filter((e) => e.pin === "right")), Ce = l(() => dt.value + (Xe.value ?? []).reduce((e, t) => e + me(t), 0)), Pe = l(() => (ke.value ?? []).reduce((e, t) => e + me(t), 0)),
|
|
6802
|
+
}), st = l(() => te.value.isRangeMoving), Xe = l(() => ue.value.filter((e) => e.pin === "left")), ke = l(() => ue.value.filter((e) => e.pin === "right")), Ce = l(() => dt.value + (Xe.value ?? []).reduce((e, t) => e + me(t), 0)), Pe = l(() => (ke.value ?? []).reduce((e, t) => e + me(t), 0)), Sr = l(() => ({
|
|
6803
6803
|
gridTemplateColumns: `${Ce.value}px minmax(0, 1fr) ${Pe.value}px`
|
|
6804
6804
|
})), St = l(() => ({
|
|
6805
6805
|
width: `${Ce.value}px`,
|
|
@@ -6821,45 +6821,45 @@ const Tu = "dgPerfTrace", Du = "affino-datagrid-perf-trace", on = "__AFFINO_DATA
|
|
|
6821
6821
|
left: `${Ce.value}px`,
|
|
6822
6822
|
width: `${Math.max(0, Ot.value)}px`,
|
|
6823
6823
|
height: `${Math.max(0, Mt.value)}px`
|
|
6824
|
-
})), d = N(null), f = N(null), L = N(null), se = N(null), ee = N(null), Vt = N(null), Ht = N(null), Ut = N(null), _t = N(null),
|
|
6825
|
-
let
|
|
6826
|
-
function
|
|
6824
|
+
})), d = N(null), f = N(null), L = N(null), se = N(null), ee = N(null), Vt = N(null), Ht = N(null), Ut = N(null), _t = N(null), lr = N(null), _r = N(null), Hr = N(null), i = N(null), p = N(null), _ = N(null), B = N(null), Y = N(null), g = N(null), _e = N(null), xe = N(null), rt = N(null), $e = N(null), He = N(!1), Rt = N(0), Xt = N(0), gt = N(0), vt = N(0), Ot = N(0), at = N(0), Mt = N(0), pt = N(0), Yt = N(null), Er = N(null);
|
|
6825
|
+
let yr = 0, $t = null, Or = "full", ea = null;
|
|
6826
|
+
function ta(e) {
|
|
6827
6827
|
if (typeof document > "u")
|
|
6828
6828
|
return;
|
|
6829
6829
|
const t = document.body, a = document.documentElement;
|
|
6830
6830
|
if (!(!t || !a)) {
|
|
6831
6831
|
if (e) {
|
|
6832
|
-
Yt.value == null && (Yt.value = t.style.cursor),
|
|
6832
|
+
Yt.value == null && (Yt.value = t.style.cursor), Er.value == null && (Er.value = a.style.cursor), a.classList.add(Va), t.classList.add(Va), a.style.setProperty("cursor", "crosshair", "important"), t.style.setProperty("cursor", "crosshair", "important");
|
|
6833
6833
|
return;
|
|
6834
6834
|
}
|
|
6835
|
-
a.classList.remove(
|
|
6835
|
+
a.classList.remove(Va), t.classList.remove(Va), Er.value != null && (Er.value ? a.style.setProperty("cursor", Er.value) : a.style.removeProperty("cursor"), Er.value = null), Yt.value != null && (Yt.value ? t.style.setProperty("cursor", Yt.value) : t.style.removeProperty("cursor"), Yt.value = null);
|
|
6836
6836
|
}
|
|
6837
6837
|
}
|
|
6838
|
-
function
|
|
6838
|
+
function Ar() {
|
|
6839
6839
|
g.value = null;
|
|
6840
6840
|
}
|
|
6841
|
-
function
|
|
6841
|
+
function wa() {
|
|
6842
6842
|
_e.value = null;
|
|
6843
6843
|
}
|
|
6844
6844
|
function It(e, t) {
|
|
6845
6845
|
return Number.isFinite(e.displayIndex) ? Math.max(0, Math.trunc(e.displayIndex)) : I.value.viewportRowStart + t;
|
|
6846
6846
|
}
|
|
6847
|
-
function
|
|
6847
|
+
function Rr(e, t) {
|
|
6848
6848
|
return It(e, t) - I.value.viewportRowStart;
|
|
6849
6849
|
}
|
|
6850
|
-
function
|
|
6850
|
+
function ka(e, t) {
|
|
6851
6851
|
h.value.rowHover && (_e.value = It(e, t));
|
|
6852
6852
|
}
|
|
6853
|
-
function
|
|
6853
|
+
function ra(e, t) {
|
|
6854
6854
|
return h.value.rowHover === !0 && _e.value === It(e, t);
|
|
6855
6855
|
}
|
|
6856
|
-
function
|
|
6856
|
+
function aa(e, t) {
|
|
6857
6857
|
return h.value.stripedRows === !0 && It(e, t) % 2 === 1;
|
|
6858
6858
|
}
|
|
6859
|
-
function
|
|
6859
|
+
function Ca(e) {
|
|
6860
6860
|
return typeof h.value.isRowFocused == "function" ? h.value.isRowFocused(e) : !1;
|
|
6861
6861
|
}
|
|
6862
|
-
function
|
|
6862
|
+
function jr(e) {
|
|
6863
6863
|
return typeof h.value.isRowCheckboxSelected == "function" ? h.value.isRowCheckboxSelected(e) : !1;
|
|
6864
6864
|
}
|
|
6865
6865
|
function A(e) {
|
|
@@ -6876,7 +6876,7 @@ const Tu = "dgPerfTrace", Du = "affino-datagrid-perf-trace", on = "__AFFINO_DATA
|
|
|
6876
6876
|
return a === "true" || a === "1" || a === "yes" || a === "on";
|
|
6877
6877
|
}
|
|
6878
6878
|
function Le(e, t, a, o) {
|
|
6879
|
-
const b = e.kind !== "group" ? Zt(e, a) : "none", x = Oe(e, t, a, o), E =
|
|
6879
|
+
const b = e.kind !== "group" ? Zt(e, a) : "none", x = Oe(e, t, a, o), E = Pr(e, t, a, o);
|
|
6880
6880
|
return {
|
|
6881
6881
|
"grid-cell--checkbox": Wt(e, a),
|
|
6882
6882
|
"grid-cell--row-selection": Ue(a),
|
|
@@ -6885,7 +6885,7 @@ const Tu = "dgPerfTrace", Du = "affino-datagrid-perf-trace", on = "__AFFINO_DATA
|
|
|
6885
6885
|
"grid-cell--interactive": E !== null
|
|
6886
6886
|
};
|
|
6887
6887
|
}
|
|
6888
|
-
function
|
|
6888
|
+
function Pr(e, t, a, o) {
|
|
6889
6889
|
return ni({
|
|
6890
6890
|
column: a.column,
|
|
6891
6891
|
row: e.kind !== "group" ? e.data : void 0,
|
|
@@ -6893,27 +6893,27 @@ const Tu = "dgPerfTrace", Du = "affino-datagrid-perf-trace", on = "__AFFINO_DATA
|
|
|
6893
6893
|
editable: Oe(e, t, a, o)
|
|
6894
6894
|
});
|
|
6895
6895
|
}
|
|
6896
|
-
function
|
|
6897
|
-
return
|
|
6896
|
+
function Sa(e, t, a, o) {
|
|
6897
|
+
return Pr(e, t, a, o)?.role ?? (Wt(e, a) ? "checkbox" : void 0);
|
|
6898
6898
|
}
|
|
6899
|
-
function
|
|
6900
|
-
return
|
|
6899
|
+
function Mr(e, t, a, o) {
|
|
6900
|
+
return Pr(e, t, a, o)?.checked ?? (Wt(e, a) ? Ee(e, a) ? "true" : "false" : void 0);
|
|
6901
6901
|
}
|
|
6902
|
-
function
|
|
6903
|
-
return
|
|
6902
|
+
function _a(e, t, a, o) {
|
|
6903
|
+
return Pr(e, t, a, o)?.pressed;
|
|
6904
6904
|
}
|
|
6905
|
-
function
|
|
6906
|
-
return
|
|
6905
|
+
function na(e, t, a, o) {
|
|
6906
|
+
return Pr(e, t, a, o)?.label;
|
|
6907
6907
|
}
|
|
6908
|
-
function
|
|
6909
|
-
return
|
|
6908
|
+
function dr(e, t, a, o) {
|
|
6909
|
+
return Pr(e, t, a, o)?.disabled ? "true" : void 0;
|
|
6910
6910
|
}
|
|
6911
|
-
function
|
|
6911
|
+
function Ir(e, t) {
|
|
6912
6912
|
return {
|
|
6913
6913
|
"grid-checkbox-indicator--checked": Ee(e, t)
|
|
6914
6914
|
};
|
|
6915
6915
|
}
|
|
6916
|
-
function
|
|
6916
|
+
function ia(e, t) {
|
|
6917
6917
|
return {
|
|
6918
6918
|
"grid-checkbox-indicator__mark--checked": Ee(e, t)
|
|
6919
6919
|
};
|
|
@@ -6925,7 +6925,7 @@ const Tu = "dgPerfTrace", Du = "affino-datagrid-perf-trace", on = "__AFFINO_DATA
|
|
|
6925
6925
|
editable: !0
|
|
6926
6926
|
}).editorMode;
|
|
6927
6927
|
}
|
|
6928
|
-
function
|
|
6928
|
+
function qr(e) {
|
|
6929
6929
|
if (e && typeof e == "object" && "label" in e) {
|
|
6930
6930
|
const t = e, a = String(t.label ?? "");
|
|
6931
6931
|
return {
|
|
@@ -6938,14 +6938,14 @@ const Tu = "dgPerfTrace", Du = "affino-datagrid-perf-trace", on = "__AFFINO_DATA
|
|
|
6938
6938
|
value: String(e ?? "")
|
|
6939
6939
|
};
|
|
6940
6940
|
}
|
|
6941
|
-
function
|
|
6941
|
+
function oa(e, t) {
|
|
6942
6942
|
return e.kind === "group" ? null : `${String(e.rowId)}::${t}`;
|
|
6943
6943
|
}
|
|
6944
|
-
function
|
|
6945
|
-
const a =
|
|
6944
|
+
function Ur(e, t) {
|
|
6945
|
+
const a = oa(e, t);
|
|
6946
6946
|
return a ? Ye.value.get(a) ?? [] : [];
|
|
6947
6947
|
}
|
|
6948
|
-
function
|
|
6948
|
+
function la(e, t) {
|
|
6949
6949
|
if (e.kind === "group")
|
|
6950
6950
|
return;
|
|
6951
6951
|
if (typeof t.column.accessor == "function")
|
|
@@ -6953,32 +6953,32 @@ const Tu = "dgPerfTrace", Du = "affino-datagrid-perf-trace", on = "__AFFINO_DATA
|
|
|
6953
6953
|
if (typeof t.column.valueGetter == "function")
|
|
6954
6954
|
return t.column.valueGetter(e.data);
|
|
6955
6955
|
const a = typeof t.column.field == "string" && t.column.field.length > 0 ? t.column.field : t.key;
|
|
6956
|
-
return
|
|
6956
|
+
return tr(e.data) ? e.data[a] : void 0;
|
|
6957
6957
|
}
|
|
6958
|
-
function
|
|
6958
|
+
function Wa(e, t) {
|
|
6959
6959
|
const a = t.column.presentation?.options;
|
|
6960
6960
|
return typeof a == "function" ? e.kind !== "group" ? a(e.data) : [] : a;
|
|
6961
6961
|
}
|
|
6962
|
-
function xn(e, t) {
|
|
6963
|
-
const a = $a(e, t);
|
|
6964
|
-
return Array.isArray(a) ? a.map(jr) : wt(a) ? qr(e, t.key) : [];
|
|
6965
|
-
}
|
|
6966
6962
|
function wn(e, t) {
|
|
6963
|
+
const a = Wa(e, t);
|
|
6964
|
+
return Array.isArray(a) ? a.map(qr) : wt(a) ? Ur(e, t.key) : [];
|
|
6965
|
+
}
|
|
6966
|
+
function kn(e, t) {
|
|
6967
6967
|
if (e.kind === "group")
|
|
6968
6968
|
return;
|
|
6969
|
-
const a =
|
|
6969
|
+
const a = Wa(e, t);
|
|
6970
6970
|
if (wt(a))
|
|
6971
6971
|
return async (o) => {
|
|
6972
|
-
const b =
|
|
6972
|
+
const b = Wa(e, t);
|
|
6973
6973
|
if (wt(b)) {
|
|
6974
6974
|
const x = await b;
|
|
6975
|
-
return Array.isArray(x) ? x.map(
|
|
6975
|
+
return Array.isArray(x) ? x.map(qr) : [];
|
|
6976
6976
|
}
|
|
6977
|
-
return Array.isArray(b) ? b.map(
|
|
6977
|
+
return Array.isArray(b) ? b.map(qr) : [];
|
|
6978
6978
|
};
|
|
6979
6979
|
}
|
|
6980
|
-
function
|
|
6981
|
-
const o =
|
|
6980
|
+
function Cn(e, t, a) {
|
|
6981
|
+
const o = oa(e, t.key);
|
|
6982
6982
|
if (!o)
|
|
6983
6983
|
return;
|
|
6984
6984
|
const b = Ye.value.get(o);
|
|
@@ -6987,23 +6987,23 @@ const Tu = "dgPerfTrace", Du = "affino-datagrid-perf-trace", on = "__AFFINO_DATA
|
|
|
6987
6987
|
const x = new Map(Ye.value);
|
|
6988
6988
|
x.set(o, [...a]), Ye.value = x;
|
|
6989
6989
|
}
|
|
6990
|
-
function
|
|
6990
|
+
function Ga(e, t) {
|
|
6991
6991
|
const a = ve.value.readDisplayCell(e, t.key);
|
|
6992
6992
|
if (e.kind === "group" || Zt(e, t) !== "select")
|
|
6993
6993
|
return a;
|
|
6994
|
-
const o =
|
|
6994
|
+
const o = Ur(e, t.key);
|
|
6995
6995
|
if (o.length === 0)
|
|
6996
6996
|
return a;
|
|
6997
|
-
const b =
|
|
6997
|
+
const b = la(e, t);
|
|
6998
6998
|
return o.find((E) => E.value === String(b ?? ""))?.label ?? a;
|
|
6999
6999
|
}
|
|
7000
7000
|
function zi(e) {
|
|
7001
7001
|
return {
|
|
7002
|
-
kind:
|
|
7002
|
+
kind: vn(e) ? "placeholder" : "real"
|
|
7003
7003
|
};
|
|
7004
7004
|
}
|
|
7005
|
-
function
|
|
7006
|
-
const b =
|
|
7005
|
+
function Sn(e, t, a, o) {
|
|
7006
|
+
const b = Ga(e, a), x = zi(e), E = Oe(e, t, a, o), j = ni({
|
|
7007
7007
|
column: a.column,
|
|
7008
7008
|
row: e.kind !== "group" ? e.data : void 0,
|
|
7009
7009
|
rowId: e.rowId,
|
|
@@ -7029,7 +7029,7 @@ const Tu = "dgPerfTrace", Du = "affino-datagrid-perf-trace", on = "__AFFINO_DATA
|
|
|
7029
7029
|
const Ne = a.column.groupCellRenderer ?? a.column.cellRenderer;
|
|
7030
7030
|
if (typeof Ne != "function")
|
|
7031
7031
|
return b;
|
|
7032
|
-
const Dt = e, Et = Number.isFinite(e.groupMeta?.childrenCount) ? Math.max(0, Math.trunc(e.groupMeta?.childrenCount)) : 0,
|
|
7032
|
+
const Dt = e, Et = Number.isFinite(e.groupMeta?.childrenCount) ? Math.max(0, Math.trunc(e.groupMeta?.childrenCount)) : 0, sr = Fl(Dt);
|
|
7033
7033
|
return Ne({
|
|
7034
7034
|
row: void 0,
|
|
7035
7035
|
rowNode: Dt,
|
|
@@ -7047,7 +7047,7 @@ const Tu = "dgPerfTrace", Du = "affino-datagrid-perf-trace", on = "__AFFINO_DATA
|
|
|
7047
7047
|
childrenCount: Et,
|
|
7048
7048
|
isLabelColumn: W.mode === "tree" ? a.key === "name" : a.key === (W.columns.visibleColumns[0]?.key ?? "name"),
|
|
7049
7049
|
renderMeta: {
|
|
7050
|
-
...
|
|
7050
|
+
...sr,
|
|
7051
7051
|
isGroup: !0
|
|
7052
7052
|
},
|
|
7053
7053
|
toggle: () => {
|
|
@@ -7069,33 +7069,33 @@ const Tu = "dgPerfTrace", Du = "affino-datagrid-perf-trace", on = "__AFFINO_DATA
|
|
|
7069
7069
|
interactive: ie
|
|
7070
7070
|
}) ?? b;
|
|
7071
7071
|
}
|
|
7072
|
-
function
|
|
7073
|
-
const a =
|
|
7072
|
+
function _n(e, t) {
|
|
7073
|
+
const a = la(e, t);
|
|
7074
7074
|
return a == null ? "" : String(a);
|
|
7075
7075
|
}
|
|
7076
|
-
function
|
|
7076
|
+
function Rn(e, t, a, o) {
|
|
7077
7077
|
return Oe(e, t, a, o) && tt(e, a.key) && Zt(e, a) === "select";
|
|
7078
7078
|
}
|
|
7079
|
-
function
|
|
7079
|
+
function Mn(e, t, a, o) {
|
|
7080
7080
|
const b = Zt(e, a);
|
|
7081
7081
|
return Oe(e, t, a, o) && tt(e, a.key) && (b === "date" || b === "datetime");
|
|
7082
7082
|
}
|
|
7083
|
-
function
|
|
7083
|
+
function In(e, t) {
|
|
7084
7084
|
return Zt(e, t) === "datetime" ? "datetime-local" : "date";
|
|
7085
7085
|
}
|
|
7086
|
-
function
|
|
7086
|
+
function Tn(e, t, a, o) {
|
|
7087
7087
|
return Oe(e, t, a, o) && tt(e, a.key) && Zt(e, a) === "text";
|
|
7088
7088
|
}
|
|
7089
|
-
function
|
|
7089
|
+
function Dn(e, t = "stay") {
|
|
7090
7090
|
he.value.updateEditingCellValue(e), he.value.commitInlineEdit(t);
|
|
7091
7091
|
}
|
|
7092
|
-
function
|
|
7092
|
+
function En() {
|
|
7093
7093
|
he.value.cancelInlineEdit();
|
|
7094
7094
|
}
|
|
7095
|
-
function
|
|
7095
|
+
function An(e, t = "stay") {
|
|
7096
7096
|
he.value.updateEditingCellValue(e), he.value.commitInlineEdit(t);
|
|
7097
7097
|
}
|
|
7098
|
-
function
|
|
7098
|
+
function Pn() {
|
|
7099
7099
|
he.value.handleEditorBlur();
|
|
7100
7100
|
}
|
|
7101
7101
|
function Vi(e) {
|
|
@@ -7109,25 +7109,25 @@ const Tu = "dgPerfTrace", Du = "affino-datagrid-perf-trace", on = "__AFFINO_DATA
|
|
|
7109
7109
|
function Oi(e, t, a) {
|
|
7110
7110
|
h.value.handleRowIndexKeydown?.(e, t, a);
|
|
7111
7111
|
}
|
|
7112
|
-
function
|
|
7112
|
+
function Ln(e) {
|
|
7113
7113
|
Vi(e);
|
|
7114
7114
|
}
|
|
7115
|
-
function
|
|
7115
|
+
function Bn(e, t) {
|
|
7116
7116
|
return {
|
|
7117
7117
|
"grid-row--hoverable": h.value.rowHover === !0,
|
|
7118
|
-
"grid-row--hovered":
|
|
7119
|
-
"grid-row--striped":
|
|
7118
|
+
"grid-row--hovered": ra(e, t),
|
|
7119
|
+
"grid-row--striped": aa(e, t),
|
|
7120
7120
|
"grid-row--group-explicit-trigger": e.kind === "group" && P.value,
|
|
7121
7121
|
"grid-row--clipboard-pending": h.value.isRowInPendingClipboardCut?.(e) === !0,
|
|
7122
|
-
"grid-row--focused":
|
|
7123
|
-
"grid-row--checkbox-selected":
|
|
7122
|
+
"grid-row--focused": Ca(e),
|
|
7123
|
+
"grid-row--checkbox-selected": jr(e)
|
|
7124
7124
|
};
|
|
7125
7125
|
}
|
|
7126
7126
|
function $i(e, t) {
|
|
7127
7127
|
const a = t ? It(t, e) : I.value.viewportRowStart + e;
|
|
7128
7128
|
return ye(a);
|
|
7129
7129
|
}
|
|
7130
|
-
function
|
|
7130
|
+
function Ra(e, t, a) {
|
|
7131
7131
|
const o = ve.value.isCellOnSelectionEdge;
|
|
7132
7132
|
return typeof o == "function" ? o(e, t, a) : !1;
|
|
7133
7133
|
}
|
|
@@ -7151,11 +7151,11 @@ const Tu = "dgPerfTrace", Du = "affino-datagrid-perf-trace", on = "__AFFINO_DATA
|
|
|
7151
7151
|
Math.floor(E.height / 2)
|
|
7152
7152
|
)
|
|
7153
7153
|
), ie = e.clientX - E.left, Be = e.clientY - E.top;
|
|
7154
|
-
return Be <= j &&
|
|
7154
|
+
return Be <= j && Ra(t, a, "top") || E.height - Be <= j && Ra(t, a, "bottom") || ie <= j && Ra(t, a, "left") || E.width - ie <= j && Ra(t, a, "right");
|
|
7155
7155
|
}
|
|
7156
|
-
function
|
|
7156
|
+
function Fn(e, t, a) {
|
|
7157
7157
|
if ($.value || te.value.rangeMoveEnabled !== !0) {
|
|
7158
|
-
|
|
7158
|
+
Ar();
|
|
7159
7159
|
return;
|
|
7160
7160
|
}
|
|
7161
7161
|
if (Wi(e, t, a)) {
|
|
@@ -7165,12 +7165,12 @@ const Tu = "dgPerfTrace", Du = "affino-datagrid-perf-trace", on = "__AFFINO_DATA
|
|
|
7165
7165
|
};
|
|
7166
7166
|
return;
|
|
7167
7167
|
}
|
|
7168
|
-
|
|
7168
|
+
Ar();
|
|
7169
7169
|
}
|
|
7170
7170
|
function Gi(e) {
|
|
7171
7171
|
e.kind === "group" && (P.value || h.value.toggleGroupRow(e));
|
|
7172
7172
|
}
|
|
7173
|
-
function
|
|
7173
|
+
function zn(e, t, a, o, b) {
|
|
7174
7174
|
if (Ue(o)) {
|
|
7175
7175
|
if (t.kind === "group")
|
|
7176
7176
|
return;
|
|
@@ -7191,14 +7191,14 @@ const Tu = "dgPerfTrace", Du = "affino-datagrid-perf-trace", on = "__AFFINO_DATA
|
|
|
7191
7191
|
function Ni() {
|
|
7192
7192
|
for (let e = 0; e < ce.value.length; e += 1)
|
|
7193
7193
|
for (let t = 0; t < ue.value.length; t += 1)
|
|
7194
|
-
if (
|
|
7194
|
+
if (Cr(e, t))
|
|
7195
7195
|
return {
|
|
7196
7196
|
rowIndex: It(ce.value[e], e),
|
|
7197
7197
|
columnIndex: t
|
|
7198
7198
|
};
|
|
7199
7199
|
return null;
|
|
7200
7200
|
}
|
|
7201
|
-
function
|
|
7201
|
+
function Ka(e, t) {
|
|
7202
7202
|
const a = `.grid-cell[data-row-index="${e}"][data-column-index="${t}"]`;
|
|
7203
7203
|
for (const o of [
|
|
7204
7204
|
ee.value,
|
|
@@ -7230,16 +7230,16 @@ const Tu = "dgPerfTrace", Du = "affino-datagrid-perf-trace", on = "__AFFINO_DATA
|
|
|
7230
7230
|
}
|
|
7231
7231
|
return null;
|
|
7232
7232
|
}
|
|
7233
|
-
function
|
|
7234
|
-
return
|
|
7233
|
+
function Na() {
|
|
7234
|
+
return Ma()?.querySelector(".grid-header-viewport") ?? null;
|
|
7235
7235
|
}
|
|
7236
|
-
function
|
|
7236
|
+
function Ma() {
|
|
7237
7237
|
return d.value?.querySelector(".grid-header-shell") ?? null;
|
|
7238
7238
|
}
|
|
7239
|
-
function
|
|
7239
|
+
function Vn(e) {
|
|
7240
7240
|
if (!e)
|
|
7241
7241
|
return null;
|
|
7242
|
-
const t =
|
|
7242
|
+
const t = Ka(e.rowIndex, e.columnIndex), a = se.value?.getBoundingClientRect();
|
|
7243
7243
|
if (!t || !a)
|
|
7244
7244
|
return null;
|
|
7245
7245
|
const o = t.getBoundingClientRect();
|
|
@@ -7256,7 +7256,7 @@ const Tu = "dgPerfTrace", Du = "affino-datagrid-perf-trace", on = "__AFFINO_DATA
|
|
|
7256
7256
|
f.value?.focus({ preventScroll: !0 });
|
|
7257
7257
|
return;
|
|
7258
7258
|
}
|
|
7259
|
-
const t =
|
|
7259
|
+
const t = Ka(e.rowIndex, e.columnIndex);
|
|
7260
7260
|
if (t) {
|
|
7261
7261
|
t.focus({ preventScroll: !0 });
|
|
7262
7262
|
return;
|
|
@@ -7267,10 +7267,10 @@ const Tu = "dgPerfTrace", Du = "affino-datagrid-perf-trace", on = "__AFFINO_DATA
|
|
|
7267
7267
|
Ol(qi);
|
|
7268
7268
|
}
|
|
7269
7269
|
function Xi(e) {
|
|
7270
|
-
f.value = ze(e), I.value.bodyViewportRef(e),
|
|
7270
|
+
f.value = ze(e), I.value.bodyViewportRef(e), $r(), Gn(), Lr();
|
|
7271
7271
|
}
|
|
7272
7272
|
function Yi(e) {
|
|
7273
|
-
L.value = ze(e),
|
|
7273
|
+
L.value = ze(e), Hn(), qa();
|
|
7274
7274
|
}
|
|
7275
7275
|
function Zi(e) {
|
|
7276
7276
|
ee.value = ze(e);
|
|
@@ -7284,7 +7284,7 @@ const Tu = "dgPerfTrace", Du = "affino-datagrid-perf-trace", on = "__AFFINO_DATA
|
|
|
7284
7284
|
function eo(e) {
|
|
7285
7285
|
Ut.value = ze(e);
|
|
7286
7286
|
}
|
|
7287
|
-
function
|
|
7287
|
+
function ja(e) {
|
|
7288
7288
|
gt.value = e.scrollTop, vt.value = e.scrollLeft, Ot.value = e.clientWidth, at.value = e.clientHeight;
|
|
7289
7289
|
}
|
|
7290
7290
|
je(
|
|
@@ -7293,7 +7293,7 @@ const Tu = "dgPerfTrace", Du = "affino-datagrid-perf-trace", on = "__AFFINO_DATA
|
|
|
7293
7293
|
if (!we)
|
|
7294
7294
|
return;
|
|
7295
7295
|
const t = M(), a = I.value.viewportRowStart, o = ce.value.length;
|
|
7296
|
-
|
|
7296
|
+
Jr(() => {
|
|
7297
7297
|
G({
|
|
7298
7298
|
scope: "stageScrollFlush",
|
|
7299
7299
|
ts: Date.now(),
|
|
@@ -7310,7 +7310,7 @@ const Tu = "dgPerfTrace", Du = "affino-datagrid-perf-trace", on = "__AFFINO_DATA
|
|
|
7310
7310
|
if (!we)
|
|
7311
7311
|
return;
|
|
7312
7312
|
const e = M(), t = I.value.viewportRowStart, a = ce.value.length, o = I.value.topSpacerHeight, b = I.value.bottomSpacerHeight;
|
|
7313
|
-
|
|
7313
|
+
Jr(() => {
|
|
7314
7314
|
G({
|
|
7315
7315
|
scope: "stageWindowFlush",
|
|
7316
7316
|
ts: Date.now(),
|
|
@@ -7329,31 +7329,31 @@ const Tu = "dgPerfTrace", Du = "affino-datagrid-perf-trace", on = "__AFFINO_DATA
|
|
|
7329
7329
|
ce.value.map((e) => `${String(e.rowId)}:${String(e.row?.region ?? "")}`).join("|")
|
|
7330
7330
|
].join("|"),
|
|
7331
7331
|
() => {
|
|
7332
|
-
|
|
7332
|
+
Jr(() => {
|
|
7333
7333
|
Z("body-rows-update");
|
|
7334
7334
|
});
|
|
7335
7335
|
},
|
|
7336
7336
|
{ immediate: !0 }
|
|
7337
7337
|
);
|
|
7338
|
-
function
|
|
7338
|
+
function qa() {
|
|
7339
7339
|
const e = L.value;
|
|
7340
7340
|
!e || e.scrollLeft === vt.value || (e.scrollLeft = vt.value);
|
|
7341
7341
|
}
|
|
7342
|
-
function
|
|
7342
|
+
function Hn() {
|
|
7343
7343
|
Mt.value = L.value?.clientHeight ?? 0;
|
|
7344
7344
|
}
|
|
7345
|
-
function
|
|
7345
|
+
function $r() {
|
|
7346
7346
|
const e = f.value, t = se.value;
|
|
7347
7347
|
if (!e || !t)
|
|
7348
7348
|
return;
|
|
7349
|
-
|
|
7349
|
+
ja(e);
|
|
7350
7350
|
const a = e.getBoundingClientRect(), o = t.getBoundingClientRect();
|
|
7351
|
-
pt.value = Math.max(0, a.top - o.top), Rt.value =
|
|
7351
|
+
pt.value = Math.max(0, a.top - o.top), Rt.value = Ma()?.getBoundingClientRect().height ?? 0, Xt.value = Na()?.clientWidth ?? Ot.value, Hn(), qa();
|
|
7352
7352
|
}
|
|
7353
|
-
function
|
|
7353
|
+
function Ua() {
|
|
7354
7354
|
return typeof window > "u" ? 1 : Math.max(1, window.devicePixelRatio || 1);
|
|
7355
7355
|
}
|
|
7356
|
-
function
|
|
7356
|
+
function On(e) {
|
|
7357
7357
|
if (typeof window > "u")
|
|
7358
7358
|
return "";
|
|
7359
7359
|
let t = d.value;
|
|
@@ -7365,20 +7365,20 @@ const Tu = "dgPerfTrace", Du = "affino-datagrid-perf-trace", on = "__AFFINO_DATA
|
|
|
7365
7365
|
}
|
|
7366
7366
|
return window.getComputedStyle(document.documentElement).getPropertyValue(e).trim();
|
|
7367
7367
|
}
|
|
7368
|
-
function
|
|
7369
|
-
return
|
|
7368
|
+
function xr(e, t) {
|
|
7369
|
+
return On(e) || t;
|
|
7370
7370
|
}
|
|
7371
|
-
function
|
|
7372
|
-
const a =
|
|
7371
|
+
function Xa(e, t) {
|
|
7372
|
+
const a = On(e);
|
|
7373
7373
|
if (a.length === 0)
|
|
7374
7374
|
return t;
|
|
7375
7375
|
const o = Number.parseFloat(a);
|
|
7376
7376
|
return Number.isFinite(o) && o >= 0 ? o : t;
|
|
7377
7377
|
}
|
|
7378
|
-
function
|
|
7378
|
+
function Tr(e, t, a) {
|
|
7379
7379
|
if (!e || t <= 0 || a <= 0)
|
|
7380
7380
|
return e && e.getContext("2d")?.clearRect(0, 0, e.width, e.height), null;
|
|
7381
|
-
const o =
|
|
7381
|
+
const o = Ua(), b = Math.max(1, Math.round(t * o)), x = Math.max(1, Math.round(a * o));
|
|
7382
7382
|
e.width !== b && (e.width = b), e.height !== x && (e.height = x);
|
|
7383
7383
|
const E = e.getContext("2d");
|
|
7384
7384
|
return E ? (E.setTransform(o, 0, 0, o, 0, 0), E.clearRect(0, 0, t, a), E) : null;
|
|
@@ -7386,7 +7386,7 @@ const Tu = "dgPerfTrace", Du = "affino-datagrid-perf-trace", on = "__AFFINO_DATA
|
|
|
7386
7386
|
function to(e, t, a, o) {
|
|
7387
7387
|
if (t.width <= 0 || t.height <= 0 || o <= 0)
|
|
7388
7388
|
return;
|
|
7389
|
-
const b =
|
|
7389
|
+
const b = Ua(), x = cn(o, b);
|
|
7390
7390
|
e.save(), e.strokeStyle = a, e.lineWidth = x, e.beginPath();
|
|
7391
7391
|
for (const E of t.horizontalLines) {
|
|
7392
7392
|
const j = si(E.position, x, b);
|
|
@@ -7397,37 +7397,37 @@ const Tu = "dgPerfTrace", Du = "affino-datagrid-perf-trace", on = "__AFFINO_DATA
|
|
|
7397
7397
|
function ro(e) {
|
|
7398
7398
|
switch (e) {
|
|
7399
7399
|
case "hover":
|
|
7400
|
-
return
|
|
7400
|
+
return xr(
|
|
7401
7401
|
"--datagrid-row-band-hover-bg",
|
|
7402
7402
|
"rgba(251, 146, 60, 0.18)"
|
|
7403
7403
|
);
|
|
7404
7404
|
case "base":
|
|
7405
|
-
return
|
|
7405
|
+
return xr(
|
|
7406
7406
|
"--datagrid-row-band-base-bg",
|
|
7407
7407
|
"rgba(255, 255, 255, 1)"
|
|
7408
7408
|
);
|
|
7409
7409
|
case "striped":
|
|
7410
|
-
return
|
|
7410
|
+
return xr(
|
|
7411
7411
|
"--datagrid-row-band-striped-bg",
|
|
7412
7412
|
"rgba(59, 130, 246, 0.06)"
|
|
7413
7413
|
);
|
|
7414
7414
|
case "group":
|
|
7415
|
-
return
|
|
7415
|
+
return xr(
|
|
7416
7416
|
"--datagrid-row-band-group-bg",
|
|
7417
7417
|
"rgba(59, 130, 246, 0.08)"
|
|
7418
7418
|
);
|
|
7419
7419
|
case "tree":
|
|
7420
|
-
return
|
|
7420
|
+
return xr(
|
|
7421
7421
|
"--datagrid-row-band-tree-bg",
|
|
7422
7422
|
"rgba(59, 130, 246, 0.12)"
|
|
7423
7423
|
);
|
|
7424
7424
|
case "pivot":
|
|
7425
|
-
return
|
|
7425
|
+
return xr(
|
|
7426
7426
|
"--datagrid-row-band-pivot-bg",
|
|
7427
7427
|
"rgba(59, 130, 246, 0.1)"
|
|
7428
7428
|
);
|
|
7429
7429
|
case "pivot-group":
|
|
7430
|
-
return
|
|
7430
|
+
return xr(
|
|
7431
7431
|
"--datagrid-row-band-pivot-group-bg",
|
|
7432
7432
|
"rgba(59, 130, 246, 0.14)"
|
|
7433
7433
|
);
|
|
@@ -7448,10 +7448,10 @@ const Tu = "dgPerfTrace", Du = "affino-datagrid-perf-trace", on = "__AFFINO_DATA
|
|
|
7448
7448
|
e.restore();
|
|
7449
7449
|
}
|
|
7450
7450
|
}
|
|
7451
|
-
function
|
|
7451
|
+
function $n(e, t, a, o) {
|
|
7452
7452
|
if (t.height <= 0 || o <= 0 || t.verticalLines.length === 0)
|
|
7453
7453
|
return;
|
|
7454
|
-
const b =
|
|
7454
|
+
const b = Ua(), x = cn(o, b);
|
|
7455
7455
|
e.save(), e.strokeStyle = a, e.lineWidth = x, e.beginPath();
|
|
7456
7456
|
for (const E of t.verticalLines) {
|
|
7457
7457
|
if (E.position <= 0.5 || E.position >= t.width - 0.5)
|
|
@@ -7461,34 +7461,34 @@ const Tu = "dgPerfTrace", Du = "affino-datagrid-perf-trace", on = "__AFFINO_DATA
|
|
|
7461
7461
|
}
|
|
7462
7462
|
e.stroke(), e.restore();
|
|
7463
7463
|
}
|
|
7464
|
-
function
|
|
7465
|
-
e && (ao(e, t), to(e, t, a, o),
|
|
7464
|
+
function Xr(e, t, a, o, b, x) {
|
|
7465
|
+
e && (ao(e, t), to(e, t, a, o), $n(e, t, b, x));
|
|
7466
7466
|
}
|
|
7467
|
-
function
|
|
7468
|
-
!e ||
|
|
7467
|
+
function Ya(e, t, a, o) {
|
|
7468
|
+
!e || Nn.value || $n(e, t, a, o);
|
|
7469
7469
|
}
|
|
7470
|
-
function
|
|
7471
|
-
|
|
7472
|
-
const t = io.value, a = no.value, o =
|
|
7470
|
+
function Wn(e = "full") {
|
|
7471
|
+
yr = 0, Or = "full";
|
|
7472
|
+
const t = io.value, a = no.value, o = xr("--datagrid-row-divider-color", "rgba(0, 0, 0, 0.08)"), b = xr("--datagrid-column-divider-color", "rgba(0, 0, 0, 0.08)"), x = xr("--datagrid-header-column-divider-color", b), E = Xa("--datagrid-row-divider-size", 1), j = Xa("--datagrid-column-divider-size", 1), ie = Xa("--datagrid-header-column-divider-size", j), Be = e === "full" ? Tr(
|
|
7473
7473
|
_t.value,
|
|
7474
7474
|
t.left.width,
|
|
7475
7475
|
t.left.height
|
|
7476
7476
|
) : null;
|
|
7477
|
-
Be &&
|
|
7478
|
-
const Ne =
|
|
7479
|
-
|
|
7477
|
+
Be && Ya(Be, t.left, x, ie);
|
|
7478
|
+
const Ne = Tr(
|
|
7479
|
+
lr.value,
|
|
7480
7480
|
t.center.width,
|
|
7481
7481
|
t.center.height
|
|
7482
7482
|
);
|
|
7483
|
-
|
|
7484
|
-
const Dt = e === "full" ?
|
|
7485
|
-
|
|
7483
|
+
Ya(Ne, t.center, x, ie);
|
|
7484
|
+
const Dt = e === "full" ? Tr(
|
|
7485
|
+
_r.value,
|
|
7486
7486
|
t.right.width,
|
|
7487
7487
|
t.right.height
|
|
7488
7488
|
) : null;
|
|
7489
|
-
Dt &&
|
|
7490
|
-
const Et = e === "full" ?
|
|
7491
|
-
Et &&
|
|
7489
|
+
Dt && Ya(Dt, t.right, x, ie);
|
|
7490
|
+
const Et = e === "full" ? Tr(Hr.value, a.left.width, a.left.height) : null;
|
|
7491
|
+
Et && Xr(
|
|
7492
7492
|
Et,
|
|
7493
7493
|
a.left,
|
|
7494
7494
|
o,
|
|
@@ -7496,17 +7496,17 @@ const Tu = "dgPerfTrace", Du = "affino-datagrid-perf-trace", on = "__AFFINO_DATA
|
|
|
7496
7496
|
b,
|
|
7497
7497
|
0
|
|
7498
7498
|
);
|
|
7499
|
-
const
|
|
7500
|
-
|
|
7501
|
-
|
|
7499
|
+
const sr = Tr(i.value, a.center.width, a.center.height);
|
|
7500
|
+
Xr(
|
|
7501
|
+
sr,
|
|
7502
7502
|
a.center,
|
|
7503
7503
|
o,
|
|
7504
7504
|
E,
|
|
7505
7505
|
b,
|
|
7506
7506
|
j
|
|
7507
7507
|
);
|
|
7508
|
-
const At = e === "full" ?
|
|
7509
|
-
At &&
|
|
7508
|
+
const At = e === "full" ? Tr(p.value, a.right.width, a.right.height) : null;
|
|
7509
|
+
At && Xr(
|
|
7510
7510
|
At,
|
|
7511
7511
|
a.right,
|
|
7512
7512
|
o,
|
|
@@ -7514,12 +7514,12 @@ const Tu = "dgPerfTrace", Du = "affino-datagrid-perf-trace", on = "__AFFINO_DATA
|
|
|
7514
7514
|
b,
|
|
7515
7515
|
0
|
|
7516
7516
|
);
|
|
7517
|
-
const fe = lo.value, ut = e === "full" ?
|
|
7517
|
+
const fe = lo.value, ut = e === "full" ? Tr(
|
|
7518
7518
|
_.value,
|
|
7519
7519
|
fe.left.width,
|
|
7520
7520
|
fe.left.height
|
|
7521
7521
|
) : null;
|
|
7522
|
-
ut &&
|
|
7522
|
+
ut && Xr(
|
|
7523
7523
|
ut,
|
|
7524
7524
|
fe.left,
|
|
7525
7525
|
o,
|
|
@@ -7527,26 +7527,26 @@ const Tu = "dgPerfTrace", Du = "affino-datagrid-perf-trace", on = "__AFFINO_DATA
|
|
|
7527
7527
|
b,
|
|
7528
7528
|
0
|
|
7529
7529
|
);
|
|
7530
|
-
const
|
|
7530
|
+
const Nr = Tr(
|
|
7531
7531
|
B.value,
|
|
7532
7532
|
fe.center.width,
|
|
7533
7533
|
fe.center.height
|
|
7534
7534
|
);
|
|
7535
|
-
|
|
7536
|
-
|
|
7535
|
+
Xr(
|
|
7536
|
+
Nr,
|
|
7537
7537
|
fe.center,
|
|
7538
7538
|
o,
|
|
7539
7539
|
E,
|
|
7540
7540
|
b,
|
|
7541
7541
|
j
|
|
7542
7542
|
);
|
|
7543
|
-
const
|
|
7543
|
+
const Zr = e === "full" ? Tr(
|
|
7544
7544
|
Y.value,
|
|
7545
7545
|
fe.right.width,
|
|
7546
7546
|
fe.right.height
|
|
7547
7547
|
) : null;
|
|
7548
|
-
|
|
7549
|
-
|
|
7548
|
+
Zr && Xr(
|
|
7549
|
+
Zr,
|
|
7550
7550
|
fe.right,
|
|
7551
7551
|
o,
|
|
7552
7552
|
E,
|
|
@@ -7554,27 +7554,27 @@ const Tu = "dgPerfTrace", Du = "affino-datagrid-perf-trace", on = "__AFFINO_DATA
|
|
|
7554
7554
|
0
|
|
7555
7555
|
);
|
|
7556
7556
|
}
|
|
7557
|
-
function
|
|
7558
|
-
if (
|
|
7559
|
-
|
|
7557
|
+
function Lr(e = "full") {
|
|
7558
|
+
if (Or = yr === 0 ? e : e === "full" || Or === "full" ? "full" : "center-scroll", typeof window > "u") {
|
|
7559
|
+
Wn(Or);
|
|
7560
7560
|
return;
|
|
7561
7561
|
}
|
|
7562
|
-
|
|
7563
|
-
|
|
7562
|
+
yr === 0 && (yr = window.requestAnimationFrame(() => {
|
|
7563
|
+
Wn(Or);
|
|
7564
7564
|
}));
|
|
7565
7565
|
}
|
|
7566
|
-
function
|
|
7566
|
+
function Gn() {
|
|
7567
7567
|
if (typeof ResizeObserver > "u")
|
|
7568
7568
|
return;
|
|
7569
7569
|
$t || ($t = new ResizeObserver(() => {
|
|
7570
|
-
|
|
7570
|
+
$r(), Lr();
|
|
7571
7571
|
})), $t.disconnect(), f.value && $t.observe(f.value), L.value && $t.observe(L.value), se.value && $t.observe(se.value);
|
|
7572
|
-
const e =
|
|
7572
|
+
const e = Ma();
|
|
7573
7573
|
e && $t.observe(e);
|
|
7574
|
-
const t =
|
|
7574
|
+
const t = Na();
|
|
7575
7575
|
t && $t.observe(t);
|
|
7576
7576
|
}
|
|
7577
|
-
const no = l(() =>
|
|
7577
|
+
const no = l(() => tn({
|
|
7578
7578
|
rowMetrics: bo(),
|
|
7579
7579
|
rowBands: ko(),
|
|
7580
7580
|
scrollTop: gt.value,
|
|
@@ -7593,7 +7593,7 @@ const Tu = "dgPerfTrace", Du = "affino-datagrid-perf-trace", on = "__AFFINO_DATA
|
|
|
7593
7593
|
].filter((e) => e > 0),
|
|
7594
7594
|
rightColumnWidths: (ke.value ?? []).map(me),
|
|
7595
7595
|
centerScrollLeft: vt.value
|
|
7596
|
-
})), io = l(() =>
|
|
7596
|
+
})), io = l(() => tn({
|
|
7597
7597
|
rowMetrics: Rt.value > 0 ? [{ top: 0, height: Rt.value }] : [],
|
|
7598
7598
|
scrollTop: 0,
|
|
7599
7599
|
leftPaneWidth: Ce.value,
|
|
@@ -7611,8 +7611,8 @@ const Tu = "dgPerfTrace", Du = "affino-datagrid-perf-trace", on = "__AFFINO_DATA
|
|
|
7611
7611
|
].filter((e) => e > 0),
|
|
7612
7612
|
rightColumnWidths: (ke.value ?? []).map(me),
|
|
7613
7613
|
centerScrollLeft: vt.value
|
|
7614
|
-
})),
|
|
7615
|
-
const a =
|
|
7614
|
+
})), Kn = l(() => Ie.value.flatMap((e, t) => {
|
|
7615
|
+
const a = Gr.value[t], o = Yn(e, Rr(e, t));
|
|
7616
7616
|
return !a || !o ? [] : [{
|
|
7617
7617
|
rowIndex: t,
|
|
7618
7618
|
top: a.top,
|
|
@@ -7621,9 +7621,9 @@ const Tu = "dgPerfTrace", Du = "affino-datagrid-perf-trace", on = "__AFFINO_DATA
|
|
|
7621
7621
|
}];
|
|
7622
7622
|
}));
|
|
7623
7623
|
function oo() {
|
|
7624
|
-
return
|
|
7624
|
+
return Kn.value ?? [];
|
|
7625
7625
|
}
|
|
7626
|
-
const lo = l(() =>
|
|
7626
|
+
const lo = l(() => tn({
|
|
7627
7627
|
rowMetrics: yo(),
|
|
7628
7628
|
rowBands: oo(),
|
|
7629
7629
|
scrollTop: 0,
|
|
@@ -7642,35 +7642,35 @@ const Tu = "dgPerfTrace", Du = "affino-datagrid-perf-trace", on = "__AFFINO_DATA
|
|
|
7642
7642
|
].filter((e) => e > 0),
|
|
7643
7643
|
rightColumnWidths: (ke.value ?? []).map(me),
|
|
7644
7644
|
centerScrollLeft: vt.value
|
|
7645
|
-
})),
|
|
7646
|
-
function
|
|
7645
|
+
})), Nn = l(() => v.value !== "pivot" ? !1 : ue.value.some((e) => (yt(e)?.groupLabels?.length ?? 0) > 0));
|
|
7646
|
+
function Br(e, t, a) {
|
|
7647
7647
|
return a < t ? t : Math.min(Math.max(e, t), a);
|
|
7648
7648
|
}
|
|
7649
|
-
const so = l(() => ue.value.filter((e) => e.pin !== "left" && e.pin !== "right")),
|
|
7650
|
-
function
|
|
7649
|
+
const so = l(() => ue.value.filter((e) => e.pin !== "left" && e.pin !== "right")), Ia = l(() => Ot.value > 0 ? Ot.value : Ae(O.value.gridContentStyle.width ?? O.value.gridContentStyle.minWidth, 0));
|
|
7650
|
+
function jn() {
|
|
7651
7651
|
const e = te.value.fillActionAnchorCell;
|
|
7652
7652
|
if (!e)
|
|
7653
7653
|
return null;
|
|
7654
|
-
const t = pe(), a = pe() + Math.max(0, ce.value.length - 1), o = J.value, b = o ? Math.min(o.startRow, o.endRow) : e.rowIndex, x = o ? Math.max(o.startRow, o.endRow) : e.rowIndex, E = o ? Math.min(o.startColumn, o.endColumn) : e.columnIndex, j = o ? Math.max(o.startColumn, o.endColumn) : e.columnIndex, ie = Math.max(b, t), Be = Math.min(x, a), Ne = ie <= Be ?
|
|
7654
|
+
const t = pe(), a = pe() + Math.max(0, ce.value.length - 1), o = J.value, b = o ? Math.min(o.startRow, o.endRow) : e.rowIndex, x = o ? Math.max(o.startRow, o.endRow) : e.rowIndex, E = o ? Math.min(o.startColumn, o.endColumn) : e.columnIndex, j = o ? Math.max(o.startColumn, o.endColumn) : e.columnIndex, ie = Math.max(b, t), Be = Math.min(x, a), Ne = ie <= Be ? Br(e.rowIndex, ie, Be) : e.rowIndex, Dt = new Set((de.value ?? []).map((At) => At.key)), Et = ue.value.map((At, fe) => ({ column: At, columnIndex: fe })).filter(({ column: At, columnIndex: fe }) => fe < E || fe > j ? !1 : At.pin === "left" || At.pin === "right" || Dt.has(At.key)).map(({ columnIndex: At }) => At), sr = Et.length > 0 ? Br(
|
|
7655
7655
|
e.columnIndex,
|
|
7656
7656
|
Et[0] ?? e.columnIndex,
|
|
7657
7657
|
Et[Et.length - 1] ?? e.columnIndex
|
|
7658
7658
|
) : e.columnIndex;
|
|
7659
|
-
return
|
|
7659
|
+
return br(Ne, sr) ? {
|
|
7660
7660
|
rowIndex: Ne,
|
|
7661
|
-
columnIndex:
|
|
7661
|
+
columnIndex: sr
|
|
7662
7662
|
} : null;
|
|
7663
7663
|
}
|
|
7664
7664
|
function uo() {
|
|
7665
|
-
const e =
|
|
7665
|
+
const e = jn();
|
|
7666
7666
|
if (!e)
|
|
7667
7667
|
return null;
|
|
7668
|
-
const t =
|
|
7668
|
+
const t = Vn(e);
|
|
7669
7669
|
if (t)
|
|
7670
|
-
return
|
|
7671
|
-
t.right -
|
|
7672
|
-
|
|
7673
|
-
Ce.value +
|
|
7670
|
+
return Br(
|
|
7671
|
+
t.right - gr,
|
|
7672
|
+
Qt,
|
|
7673
|
+
Ce.value + Ia.value + Pe.value - gr - Qt
|
|
7674
7674
|
);
|
|
7675
7675
|
const a = ue.value[e.columnIndex];
|
|
7676
7676
|
if (!a)
|
|
@@ -7680,24 +7680,24 @@ const Tu = "dgPerfTrace", Du = "affino-datagrid-perf-trace", on = "__AFFINO_DATA
|
|
|
7680
7680
|
for (const j of Xe.value)
|
|
7681
7681
|
if (E += me(j), j.key === a.key)
|
|
7682
7682
|
break;
|
|
7683
|
-
return
|
|
7684
|
-
E -
|
|
7685
|
-
|
|
7686
|
-
Math.max(
|
|
7683
|
+
return Br(
|
|
7684
|
+
E - gr,
|
|
7685
|
+
Qt,
|
|
7686
|
+
Math.max(Qt, Ce.value - gr - Qt)
|
|
7687
7687
|
);
|
|
7688
7688
|
}
|
|
7689
7689
|
if (a.pin === "right") {
|
|
7690
|
-
let E = Ce.value +
|
|
7690
|
+
let E = Ce.value + Ia.value;
|
|
7691
7691
|
for (const ie of ke.value)
|
|
7692
7692
|
if (E += me(ie), ie.key === a.key)
|
|
7693
7693
|
break;
|
|
7694
|
-
const j = Ce.value +
|
|
7695
|
-
return
|
|
7696
|
-
E -
|
|
7697
|
-
j +
|
|
7694
|
+
const j = Ce.value + Ia.value;
|
|
7695
|
+
return Br(
|
|
7696
|
+
E - gr,
|
|
7697
|
+
j + Qt,
|
|
7698
7698
|
Math.max(
|
|
7699
|
-
j +
|
|
7700
|
-
j + Pe.value -
|
|
7699
|
+
j + Qt,
|
|
7700
|
+
j + Pe.value - gr - Qt
|
|
7701
7701
|
)
|
|
7702
7702
|
);
|
|
7703
7703
|
}
|
|
@@ -7705,32 +7705,32 @@ const Tu = "dgPerfTrace", Du = "affino-datagrid-perf-trace", on = "__AFFINO_DATA
|
|
|
7705
7705
|
for (const E of so.value)
|
|
7706
7706
|
if (o += me(E), E.key === a.key)
|
|
7707
7707
|
break;
|
|
7708
|
-
const b = Ce.value +
|
|
7709
|
-
return
|
|
7708
|
+
const b = Ce.value + Qt, x = Ce.value + Ia.value - gr - Qt;
|
|
7709
|
+
return Br(o - gr, b, x);
|
|
7710
7710
|
}
|
|
7711
7711
|
function co() {
|
|
7712
|
-
const e = pt.value +
|
|
7712
|
+
const e = pt.value + Qt, t = pt.value + Math.max(
|
|
7713
7713
|
0,
|
|
7714
|
-
at.value -
|
|
7715
|
-
), a = te.value.fillActionAnchorCell, o =
|
|
7714
|
+
at.value - gr - Qt - dn
|
|
7715
|
+
), a = te.value.fillActionAnchorCell, o = jn();
|
|
7716
7716
|
if (!o)
|
|
7717
7717
|
return null;
|
|
7718
7718
|
if (a && a.rowIndex !== o.rowIndex)
|
|
7719
7719
|
return t;
|
|
7720
|
-
const b =
|
|
7720
|
+
const b = Vn(o);
|
|
7721
7721
|
if (b)
|
|
7722
|
-
return
|
|
7723
|
-
b.bottom -
|
|
7722
|
+
return Br(
|
|
7723
|
+
b.bottom - gr - dn,
|
|
7724
7724
|
e,
|
|
7725
7725
|
t
|
|
7726
7726
|
);
|
|
7727
7727
|
const x = se.value?.getBoundingClientRect(), E = o ? ji(o.rowIndex) : null;
|
|
7728
7728
|
if (!x || !E)
|
|
7729
7729
|
return t;
|
|
7730
|
-
const ie = E.getBoundingClientRect().bottom - x.top -
|
|
7731
|
-
return
|
|
7730
|
+
const ie = E.getBoundingClientRect().bottom - x.top - gr - dn;
|
|
7731
|
+
return Br(ie, e, t);
|
|
7732
7732
|
}
|
|
7733
|
-
const
|
|
7733
|
+
const qn = l(() => {
|
|
7734
7734
|
if (!te.value.fillActionAnchorCell)
|
|
7735
7735
|
return null;
|
|
7736
7736
|
const e = uo(), t = co();
|
|
@@ -7752,7 +7752,7 @@ const Tu = "dgPerfTrace", Du = "affino-datagrid-perf-trace", on = "__AFFINO_DATA
|
|
|
7752
7752
|
), je(
|
|
7753
7753
|
() => te.value.isFillDragging,
|
|
7754
7754
|
(e) => {
|
|
7755
|
-
e &&
|
|
7755
|
+
e && Ar();
|
|
7756
7756
|
}
|
|
7757
7757
|
), je(He, (e, t, a) => {
|
|
7758
7758
|
if (!e || typeof window > "u")
|
|
@@ -7760,7 +7760,7 @@ const Tu = "dgPerfTrace", Du = "affino-datagrid-perf-trace", on = "__AFFINO_DATA
|
|
|
7760
7760
|
const o = (x) => {
|
|
7761
7761
|
(x.target instanceof HTMLElement ? x.target : null)?.closest(Au) || (He.value = !1);
|
|
7762
7762
|
}, b = (x) => {
|
|
7763
|
-
x.key === "Escape" && (He.value = !1,
|
|
7763
|
+
x.key === "Escape" && (He.value = !1, nr());
|
|
7764
7764
|
};
|
|
7765
7765
|
window.addEventListener("mousedown", o, !0), window.addEventListener("keydown", b), a(() => {
|
|
7766
7766
|
window.removeEventListener("mousedown", o, !0), window.removeEventListener("keydown", b);
|
|
@@ -7768,15 +7768,15 @@ const Tu = "dgPerfTrace", Du = "affino-datagrid-perf-trace", on = "__AFFINO_DATA
|
|
|
7768
7768
|
}), je(
|
|
7769
7769
|
() => te.value.isFillDragging,
|
|
7770
7770
|
(e) => {
|
|
7771
|
-
|
|
7771
|
+
ta(e);
|
|
7772
7772
|
},
|
|
7773
7773
|
{ immediate: !0 }
|
|
7774
7774
|
);
|
|
7775
|
-
const
|
|
7775
|
+
const da = Vl({
|
|
7776
7776
|
resolveSourceScrollTop: () => f.value?.scrollTop ?? 0,
|
|
7777
7777
|
mode: "direct-transform",
|
|
7778
7778
|
resolvePaneElements: () => [ee.value, Vt.value]
|
|
7779
|
-
}),
|
|
7779
|
+
}), Za = Hl({
|
|
7780
7780
|
resolveBodyViewport: () => f.value,
|
|
7781
7781
|
resolveMainViewport: () => f.value,
|
|
7782
7782
|
setHandledScrollTop: (e) => {
|
|
@@ -7786,10 +7786,10 @@ const Tu = "dgPerfTrace", Du = "affino-datagrid-perf-trace", on = "__AFFINO_DATA
|
|
|
7786
7786
|
f.value && (f.value.scrollLeft = e);
|
|
7787
7787
|
},
|
|
7788
7788
|
syncLinkedScroll: (e) => {
|
|
7789
|
-
|
|
7789
|
+
da.syncNow(e);
|
|
7790
7790
|
},
|
|
7791
|
-
scheduleLinkedScrollSyncLoop:
|
|
7792
|
-
isLinkedScrollSyncLoopScheduled:
|
|
7791
|
+
scheduleLinkedScrollSyncLoop: da.scheduleSyncLoop,
|
|
7792
|
+
isLinkedScrollSyncLoopScheduled: da.isSyncLoopScheduled,
|
|
7793
7793
|
onWheelConsumed: () => {
|
|
7794
7794
|
const e = f.value;
|
|
7795
7795
|
e && I.value.handleViewportScroll(be(e));
|
|
@@ -7801,34 +7801,34 @@ const Tu = "dgPerfTrace", Du = "affino-datagrid-perf-trace", on = "__AFFINO_DATA
|
|
|
7801
7801
|
if (!t)
|
|
7802
7802
|
return;
|
|
7803
7803
|
const a = gt.value, o = vt.value;
|
|
7804
|
-
|
|
7804
|
+
da.onSourceScroll(t.scrollTop), ja(t), qa(), Lr(
|
|
7805
7805
|
t.scrollLeft !== o && t.scrollTop === a ? "center-scroll" : "full"
|
|
7806
7806
|
);
|
|
7807
7807
|
}
|
|
7808
7808
|
function vo(e) {
|
|
7809
7809
|
const t = e.target, a = f.value;
|
|
7810
|
-
!t || !a || a.scrollLeft === t.scrollLeft || (a.scrollLeft = t.scrollLeft, I.value.handleViewportScroll(be(a)),
|
|
7810
|
+
!t || !a || a.scrollLeft === t.scrollLeft || (a.scrollLeft = t.scrollLeft, I.value.handleViewportScroll(be(a)), ja(a), Lr("center-scroll"));
|
|
7811
7811
|
}
|
|
7812
7812
|
function po(e) {
|
|
7813
7813
|
I.value.handleViewportKeydown(e);
|
|
7814
7814
|
}
|
|
7815
|
-
function qn(e) {
|
|
7816
|
-
Ya.onLinkedViewportWheel(e);
|
|
7817
|
-
}
|
|
7818
7815
|
function Un(e) {
|
|
7819
|
-
|
|
7816
|
+
Za.onLinkedViewportWheel(e);
|
|
7817
|
+
}
|
|
7818
|
+
function Xn(e) {
|
|
7819
|
+
Za.onBodyViewportWheel(e);
|
|
7820
7820
|
}
|
|
7821
7821
|
wi(() => {
|
|
7822
|
-
|
|
7823
|
-
}),
|
|
7824
|
-
|
|
7822
|
+
ta(!1), da.reset(), Za.reset(), ea?.(), ea = null, yr !== 0 && typeof window < "u" && (window.cancelAnimationFrame(yr), yr = 0), $t?.disconnect(), $t = null, typeof window < "u" && window.removeEventListener("resize", $r);
|
|
7823
|
+
}), hn(() => {
|
|
7824
|
+
$r(), Gn(), Lr(), d.value && (ea = Li({
|
|
7825
7825
|
root: d.value,
|
|
7826
7826
|
resolveScrollContainers: () => [
|
|
7827
7827
|
f.value,
|
|
7828
7828
|
L.value,
|
|
7829
|
-
|
|
7829
|
+
Na()
|
|
7830
7830
|
]
|
|
7831
|
-
})), typeof window < "u" && window.addEventListener("resize",
|
|
7831
|
+
})), typeof window < "u" && window.addEventListener("resize", $r);
|
|
7832
7832
|
});
|
|
7833
7833
|
const mo = l(() => ({
|
|
7834
7834
|
width: `${Ce.value}px`,
|
|
@@ -7845,7 +7845,7 @@ const Tu = "dgPerfTrace", Du = "affino-datagrid-perf-trace", on = "__AFFINO_DATA
|
|
|
7845
7845
|
rowEnd: Te(),
|
|
7846
7846
|
rowTotal: Ve(),
|
|
7847
7847
|
topSpacerHeight: I.value?.topSpacerHeight ?? 0,
|
|
7848
|
-
baseRowHeight:
|
|
7848
|
+
baseRowHeight: mr(),
|
|
7849
7849
|
resolveRowHeight: I.value?.resolveRowHeight,
|
|
7850
7850
|
resolveRowOffset: I.value?.resolveRowOffset
|
|
7851
7851
|
}).map((t) => ({
|
|
@@ -7853,18 +7853,18 @@ const Tu = "dgPerfTrace", Du = "affino-datagrid-perf-trace", on = "__AFFINO_DATA
|
|
|
7853
7853
|
height: t.height
|
|
7854
7854
|
}));
|
|
7855
7855
|
}
|
|
7856
|
-
const
|
|
7856
|
+
const Wr = l(() => {
|
|
7857
7857
|
const e = ho();
|
|
7858
|
-
return v.value === "base" && D.value === "auto" ? (gt.value,
|
|
7858
|
+
return v.value === "base" && D.value === "auto" ? (gt.value, Jn(e)) : e;
|
|
7859
7859
|
});
|
|
7860
7860
|
function bo() {
|
|
7861
|
-
return
|
|
7861
|
+
return Wr.value ?? [];
|
|
7862
7862
|
}
|
|
7863
|
-
const
|
|
7863
|
+
const Gr = l(() => {
|
|
7864
7864
|
const e = [];
|
|
7865
7865
|
let t = 0;
|
|
7866
7866
|
return Ie.value.forEach((a, o) => {
|
|
7867
|
-
const b = h.value?.rowStyle(a,
|
|
7867
|
+
const b = h.value?.rowStyle(a, Rr(a, o)) ?? {}, x = Ae(b.height ?? b.minHeight, 31);
|
|
7868
7868
|
e.push({
|
|
7869
7869
|
top: t,
|
|
7870
7870
|
height: x
|
|
@@ -7872,17 +7872,17 @@ const Tu = "dgPerfTrace", Du = "affino-datagrid-perf-trace", on = "__AFFINO_DATA
|
|
|
7872
7872
|
}), e;
|
|
7873
7873
|
});
|
|
7874
7874
|
function yo() {
|
|
7875
|
-
return
|
|
7875
|
+
return Gr.value ?? [];
|
|
7876
7876
|
}
|
|
7877
|
-
const xo = l(() =>
|
|
7878
|
-
function
|
|
7879
|
-
if (
|
|
7877
|
+
const xo = l(() => Wr.value.map((e) => `${e.top}:${e.height}`).join("|")), wo = l(() => Gr.value.map((e) => `${e.top}:${e.height}`).join("|"));
|
|
7878
|
+
function Yn(e, t) {
|
|
7879
|
+
if (ra(e, t))
|
|
7880
7880
|
return "hover";
|
|
7881
7881
|
const a = h.value.rowClass(e);
|
|
7882
|
-
return a.includes("row--group") && a.includes("row--pivot") ? "pivot-group" : a.includes("row--group") ? "group" : a.includes("row--tree") ? "tree" : a.includes("row--pivot") ? "pivot" :
|
|
7882
|
+
return a.includes("row--group") && a.includes("row--pivot") ? "pivot-group" : a.includes("row--group") ? "group" : a.includes("row--tree") ? "tree" : a.includes("row--pivot") ? "pivot" : aa(e, t) ? "striped" : "base";
|
|
7883
7883
|
}
|
|
7884
|
-
const
|
|
7885
|
-
const e = pe(), t =
|
|
7884
|
+
const Zn = l(() => {
|
|
7885
|
+
const e = pe(), t = Wr.value.map((o, b) => {
|
|
7886
7886
|
const x = e + b;
|
|
7887
7887
|
return {
|
|
7888
7888
|
rowIndex: b,
|
|
@@ -7891,7 +7891,7 @@ const Tu = "dgPerfTrace", Du = "affino-datagrid-perf-trace", on = "__AFFINO_DATA
|
|
|
7891
7891
|
kind: h.value.stripedRows === !0 && x % 2 === 1 ? "striped" : "base"
|
|
7892
7892
|
};
|
|
7893
7893
|
}), a = ce.value.flatMap((o, b) => {
|
|
7894
|
-
const x = It(o, b) - e, E =
|
|
7894
|
+
const x = It(o, b) - e, E = Wr.value[x], j = Yn(o, Rr(o, b));
|
|
7895
7895
|
return !E || !j ? [] : [{
|
|
7896
7896
|
rowIndex: x,
|
|
7897
7897
|
top: E.top,
|
|
@@ -7905,16 +7905,16 @@ const Tu = "dgPerfTrace", Du = "affino-datagrid-perf-trace", on = "__AFFINO_DATA
|
|
|
7905
7905
|
];
|
|
7906
7906
|
});
|
|
7907
7907
|
function ko() {
|
|
7908
|
-
return
|
|
7908
|
+
return Zn.value ?? [];
|
|
7909
7909
|
}
|
|
7910
|
-
const Co = l(() =>
|
|
7910
|
+
const Co = l(() => Zn.value.map((e) => `${e.kind}:${e.top}:${e.height}`).join("|")), So = l(() => Kn.value.map((e) => `${e.kind}:${e.top}:${e.height}`).join("|")), _o = l(() => [
|
|
7911
7911
|
dt.value,
|
|
7912
7912
|
...(Xe.value ?? []).map(me)
|
|
7913
7913
|
].join("|")), Ro = l(() => [
|
|
7914
7914
|
ct(),
|
|
7915
7915
|
...(de.value ?? []).map(me),
|
|
7916
7916
|
ne()
|
|
7917
|
-
].join("|")), Mo = l(() => (ke.value ?? []).map(me).join("|")), Io = l(() =>
|
|
7917
|
+
].join("|")), Mo = l(() => (ke.value ?? []).map(me).join("|")), Io = l(() => Nn.value ? ue.value.map((e) => `${e.key}:${yt(e)?.groupLabels?.join(">") ?? ""}`).join("|") : "none");
|
|
7918
7918
|
je(
|
|
7919
7919
|
() => [
|
|
7920
7920
|
Ce.value,
|
|
@@ -7925,13 +7925,13 @@ const Tu = "dgPerfTrace", Du = "affino-datagrid-perf-trace", on = "__AFFINO_DATA
|
|
|
7925
7925
|
Io.value
|
|
7926
7926
|
].join("|"),
|
|
7927
7927
|
() => {
|
|
7928
|
-
|
|
7928
|
+
$r(), Lr();
|
|
7929
7929
|
}
|
|
7930
7930
|
), je(
|
|
7931
7931
|
() => W.chromeSignature,
|
|
7932
7932
|
() => {
|
|
7933
|
-
|
|
7934
|
-
|
|
7933
|
+
Jr(() => {
|
|
7934
|
+
$r(), Lr();
|
|
7935
7935
|
});
|
|
7936
7936
|
}
|
|
7937
7937
|
), je(
|
|
@@ -7942,10 +7942,10 @@ const Tu = "dgPerfTrace", Du = "affino-datagrid-perf-trace", on = "__AFFINO_DATA
|
|
|
7942
7942
|
So.value
|
|
7943
7943
|
].join("|"),
|
|
7944
7944
|
() => {
|
|
7945
|
-
|
|
7945
|
+
Lr();
|
|
7946
7946
|
}
|
|
7947
7947
|
);
|
|
7948
|
-
function
|
|
7948
|
+
function Jn(e) {
|
|
7949
7949
|
if (ce.value.length !== e.length)
|
|
7950
7950
|
return e;
|
|
7951
7951
|
const t = f.value;
|
|
@@ -7978,18 +7978,18 @@ const Tu = "dgPerfTrace", Du = "affino-datagrid-perf-trace", on = "__AFFINO_DATA
|
|
|
7978
7978
|
startColumnIndex: a,
|
|
7979
7979
|
endColumnIndex: o
|
|
7980
7980
|
};
|
|
7981
|
-
}),
|
|
7981
|
+
}), Ta = l(() => {
|
|
7982
7982
|
let e = null, t = null, a = null, o = null;
|
|
7983
7983
|
for (let b = 0; b < ce.value.length; b += 1)
|
|
7984
7984
|
for (let x = 0; x < ue.value.length; x += 1)
|
|
7985
|
-
|
|
7985
|
+
or(b, x) && (e ??= b, t = b, a = a == null ? x : Math.min(a, x), o = o == null ? x : Math.max(o, x));
|
|
7986
7986
|
return e == null || t == null || a == null || o == null ? null : {
|
|
7987
7987
|
startRowOffset: e,
|
|
7988
7988
|
endRowOffset: t,
|
|
7989
7989
|
startColumnIndex: a,
|
|
7990
7990
|
endColumnIndex: o
|
|
7991
7991
|
};
|
|
7992
|
-
}),
|
|
7992
|
+
}), Jt = l(() => {
|
|
7993
7993
|
const e = ae.value;
|
|
7994
7994
|
if (e.length !== 1)
|
|
7995
7995
|
return !1;
|
|
@@ -8001,7 +8001,7 @@ const Tu = "dgPerfTrace", Du = "affino-datagrid-perf-trace", on = "__AFFINO_DATA
|
|
|
8001
8001
|
}
|
|
8002
8002
|
function Eo(e, t, a) {
|
|
8003
8003
|
return {
|
|
8004
|
-
...h.value.rowStyle(e,
|
|
8004
|
+
...h.value.rowStyle(e, Rr(e, t)),
|
|
8005
8005
|
width: `${a}px`,
|
|
8006
8006
|
minWidth: `${a}px`,
|
|
8007
8007
|
maxWidth: `${a}px`
|
|
@@ -8035,7 +8035,7 @@ const Tu = "dgPerfTrace", Du = "affino-datagrid-perf-trace", on = "__AFFINO_DATA
|
|
|
8035
8035
|
endColumnIndex: x
|
|
8036
8036
|
};
|
|
8037
8037
|
}
|
|
8038
|
-
function
|
|
8038
|
+
function Ja(e) {
|
|
8039
8039
|
if (!e || ue.value.length === 0)
|
|
8040
8040
|
return null;
|
|
8041
8041
|
const t = 0, a = ue.value.length - 1, o = Math.max(e.startColumn, t), b = Math.min(e.endColumn, a);
|
|
@@ -8049,10 +8049,10 @@ const Tu = "dgPerfTrace", Du = "affino-datagrid-perf-trace", on = "__AFFINO_DATA
|
|
|
8049
8049
|
endColumnIndex: b
|
|
8050
8050
|
};
|
|
8051
8051
|
}
|
|
8052
|
-
function
|
|
8052
|
+
function sa(e) {
|
|
8053
8053
|
return Lo(e, Ie.value);
|
|
8054
8054
|
}
|
|
8055
|
-
function
|
|
8055
|
+
function ua(e, t = Wr.value) {
|
|
8056
8056
|
if (!e)
|
|
8057
8057
|
return null;
|
|
8058
8058
|
const a = t[e.startRowOffset], o = t[e.endRowOffset];
|
|
@@ -8070,7 +8070,7 @@ const Tu = "dgPerfTrace", Du = "affino-datagrid-perf-trace", on = "__AFFINO_DATA
|
|
|
8070
8070
|
endColumnIndex: Math.max(e.endColumnIndex, t.endColumnIndex)
|
|
8071
8071
|
} : e : t;
|
|
8072
8072
|
}
|
|
8073
|
-
function
|
|
8073
|
+
function Qa(e, t, a, o, b, x) {
|
|
8074
8074
|
const E = Math.max(0, x?.topBleed ?? 1), j = Math.max(0, x?.bottomBleed ?? 1), ie = x?.omitLeftBorder ? 0 : Math.max(0, x?.leftBleed ?? 1), Be = x?.omitRightBorder ? 0 : Math.max(0, x?.rightBleed ?? 1);
|
|
8075
8075
|
return {
|
|
8076
8076
|
key: e,
|
|
@@ -8118,7 +8118,7 @@ const Tu = "dgPerfTrace", Du = "affino-datagrid-perf-trace", on = "__AFFINO_DATA
|
|
|
8118
8118
|
}
|
|
8119
8119
|
};
|
|
8120
8120
|
}
|
|
8121
|
-
function
|
|
8121
|
+
function Dr(e, t, a, o, b = Math.max(0, at.value)) {
|
|
8122
8122
|
if (!e)
|
|
8123
8123
|
return [];
|
|
8124
8124
|
if (o?.hideSingleCell === !0 && e.startRowOffset === e.endRowOffset && e.startColumnIndex === e.endColumnIndex)
|
|
@@ -8126,8 +8126,8 @@ const Tu = "dgPerfTrace", Du = "affino-datagrid-perf-trace", on = "__AFFINO_DATA
|
|
|
8126
8126
|
const E = e.top <= 0 ? 0 : 1, j = b > 0 && e.top + e.height >= b ? 0 : 1;
|
|
8127
8127
|
if (t === "left") {
|
|
8128
8128
|
const Ne = Xe.value.filter((Et) => {
|
|
8129
|
-
const
|
|
8130
|
-
return
|
|
8129
|
+
const sr = Tt(Et.key);
|
|
8130
|
+
return sr >= e.startColumnIndex && sr <= e.endColumnIndex;
|
|
8131
8131
|
});
|
|
8132
8132
|
if (Ne.length === 0)
|
|
8133
8133
|
return [];
|
|
@@ -8181,33 +8181,33 @@ const Tu = "dgPerfTrace", Du = "affino-datagrid-perf-trace", on = "__AFFINO_DATA
|
|
|
8181
8181
|
return [];
|
|
8182
8182
|
const E = e.top <= 0 ? 0 : 1, j = b > 0 && e.top + e.height >= b ? 0 : 1;
|
|
8183
8183
|
if (t === "left") {
|
|
8184
|
-
const fe = Xe.value.filter((
|
|
8185
|
-
const
|
|
8186
|
-
return
|
|
8184
|
+
const fe = Xe.value.filter((Fr) => {
|
|
8185
|
+
const ur = Tt(Fr.key);
|
|
8186
|
+
return ur >= e.startColumnIndex && ur <= e.endColumnIndex;
|
|
8187
8187
|
});
|
|
8188
8188
|
if (fe.length === 0)
|
|
8189
8189
|
return [];
|
|
8190
8190
|
let ut = dt.value;
|
|
8191
|
-
for (const
|
|
8192
|
-
if (
|
|
8191
|
+
for (const Fr of Xe.value) {
|
|
8192
|
+
if (Fr.key === fe[0]?.key)
|
|
8193
8193
|
break;
|
|
8194
|
-
ut += me(
|
|
8194
|
+
ut += me(Fr);
|
|
8195
8195
|
}
|
|
8196
|
-
const
|
|
8196
|
+
const Nr = fe.reduce((Fr, ur) => Fr + me(ur), 0), Zr = Tt(fe[fe.length - 1]?.key ?? ""), Pa = Ce.value, La = ut <= 0 ? 0 : 1, en = Pa > 0 && ut + Nr >= Pa ? 0 : 1;
|
|
8197
8197
|
return [
|
|
8198
|
-
|
|
8198
|
+
Qa(
|
|
8199
8199
|
`${a}-left-${e.startRowOffset}-${e.endRowOffset}`,
|
|
8200
8200
|
e.top,
|
|
8201
8201
|
ut,
|
|
8202
|
-
|
|
8202
|
+
Nr,
|
|
8203
8203
|
e.height,
|
|
8204
8204
|
{
|
|
8205
8205
|
hideBorder: x,
|
|
8206
|
-
omitRightBorder: e.endColumnIndex >
|
|
8206
|
+
omitRightBorder: e.endColumnIndex > Zr,
|
|
8207
8207
|
topBleed: E,
|
|
8208
8208
|
bottomBleed: j,
|
|
8209
|
-
leftBleed:
|
|
8210
|
-
rightBleed:
|
|
8209
|
+
leftBleed: La,
|
|
8210
|
+
rightBleed: en,
|
|
8211
8211
|
borderColor: o?.borderColor,
|
|
8212
8212
|
backgroundColor: o?.backgroundColor,
|
|
8213
8213
|
borderStyle: o?.borderStyle,
|
|
@@ -8217,37 +8217,37 @@ const Tu = "dgPerfTrace", Du = "affino-datagrid-perf-trace", on = "__AFFINO_DATA
|
|
|
8217
8217
|
];
|
|
8218
8218
|
}
|
|
8219
8219
|
if (t === "center") {
|
|
8220
|
-
const fe = de.value.filter((
|
|
8221
|
-
const
|
|
8222
|
-
return
|
|
8220
|
+
const fe = de.value.filter((ur) => {
|
|
8221
|
+
const Ba = Tt(ur.key);
|
|
8222
|
+
return Ba >= e.startColumnIndex && Ba <= e.endColumnIndex;
|
|
8223
8223
|
});
|
|
8224
8224
|
if (fe.length === 0)
|
|
8225
8225
|
return [];
|
|
8226
8226
|
let ut = ct();
|
|
8227
|
-
for (const
|
|
8228
|
-
if (
|
|
8227
|
+
for (const ur of de.value) {
|
|
8228
|
+
if (ur.key === fe[0]?.key)
|
|
8229
8229
|
break;
|
|
8230
|
-
ut += me(
|
|
8230
|
+
ut += me(ur);
|
|
8231
8231
|
}
|
|
8232
|
-
const
|
|
8232
|
+
const Nr = fe.reduce((ur, Ba) => ur + me(Ba), 0), Zr = Tt(fe[0]?.key ?? ""), Pa = Tt(fe[fe.length - 1]?.key ?? ""), La = Math.max(
|
|
8233
8233
|
0,
|
|
8234
8234
|
Ae(O.value.gridContentStyle.width ?? O.value.gridContentStyle.minWidth, 0)
|
|
8235
|
-
),
|
|
8235
|
+
), en = ut <= 0 ? 0 : 1, Fr = La > 0 && ut + Nr >= La ? 0 : 1;
|
|
8236
8236
|
return [
|
|
8237
|
-
|
|
8237
|
+
Qa(
|
|
8238
8238
|
`${a}-center-${e.startRowOffset}-${e.endRowOffset}`,
|
|
8239
8239
|
e.top,
|
|
8240
8240
|
ut,
|
|
8241
|
-
|
|
8241
|
+
Nr,
|
|
8242
8242
|
e.height,
|
|
8243
8243
|
{
|
|
8244
8244
|
hideBorder: x,
|
|
8245
|
-
omitLeftBorder: e.startColumnIndex <
|
|
8246
|
-
omitRightBorder: e.endColumnIndex >
|
|
8245
|
+
omitLeftBorder: e.startColumnIndex < Zr,
|
|
8246
|
+
omitRightBorder: e.endColumnIndex > Pa,
|
|
8247
8247
|
topBleed: E,
|
|
8248
8248
|
bottomBleed: j,
|
|
8249
|
-
leftBleed:
|
|
8250
|
-
rightBleed:
|
|
8249
|
+
leftBleed: en,
|
|
8250
|
+
rightBleed: Fr,
|
|
8251
8251
|
borderColor: o?.borderColor,
|
|
8252
8252
|
backgroundColor: o?.backgroundColor,
|
|
8253
8253
|
borderStyle: o?.borderStyle,
|
|
@@ -8268,9 +8268,9 @@ const Tu = "dgPerfTrace", Du = "affino-datagrid-perf-trace", on = "__AFFINO_DATA
|
|
|
8268
8268
|
break;
|
|
8269
8269
|
Be += me(fe);
|
|
8270
8270
|
}
|
|
8271
|
-
const Ne = ie.reduce((fe, ut) => fe + me(ut), 0), Dt = Tt(ie[0]?.key ?? ""), Et = Pe.value,
|
|
8271
|
+
const Ne = ie.reduce((fe, ut) => fe + me(ut), 0), Dt = Tt(ie[0]?.key ?? ""), Et = Pe.value, sr = Be <= 0 ? 0 : 1, At = Et > 0 && Be + Ne >= Et ? 0 : 1;
|
|
8272
8272
|
return [
|
|
8273
|
-
|
|
8273
|
+
Qa(
|
|
8274
8274
|
`${a}-right-${e.startRowOffset}-${e.endRowOffset}`,
|
|
8275
8275
|
e.top,
|
|
8276
8276
|
Be,
|
|
@@ -8281,7 +8281,7 @@ const Tu = "dgPerfTrace", Du = "affino-datagrid-perf-trace", on = "__AFFINO_DATA
|
|
|
8281
8281
|
omitLeftBorder: e.startColumnIndex < Dt,
|
|
8282
8282
|
topBleed: E,
|
|
8283
8283
|
bottomBleed: j,
|
|
8284
|
-
leftBleed:
|
|
8284
|
+
leftBleed: sr,
|
|
8285
8285
|
rightBleed: At,
|
|
8286
8286
|
borderColor: o?.borderColor,
|
|
8287
8287
|
backgroundColor: o?.backgroundColor,
|
|
@@ -8291,10 +8291,10 @@ const Tu = "dgPerfTrace", Du = "affino-datagrid-perf-trace", on = "__AFFINO_DATA
|
|
|
8291
8291
|
)
|
|
8292
8292
|
];
|
|
8293
8293
|
}
|
|
8294
|
-
function
|
|
8295
|
-
return e.map((o) =>
|
|
8294
|
+
function Da(e, t, a = Wr.value) {
|
|
8295
|
+
return e.map((o) => ua(t(o), a)).filter((o) => o != null);
|
|
8296
8296
|
}
|
|
8297
|
-
function
|
|
8297
|
+
function Kr(e, t, a, o, b = Math.max(0, at.value)) {
|
|
8298
8298
|
return e.length === 0 ? [] : e.flatMap((x, E) => Gt(
|
|
8299
8299
|
x,
|
|
8300
8300
|
t,
|
|
@@ -8303,8 +8303,8 @@ const Tu = "dgPerfTrace", Du = "affino-datagrid-perf-trace", on = "__AFFINO_DATA
|
|
|
8303
8303
|
b
|
|
8304
8304
|
));
|
|
8305
8305
|
}
|
|
8306
|
-
function
|
|
8307
|
-
return e.length === 0 ? [] : e.flatMap((x, E) =>
|
|
8306
|
+
function ca(e, t, a, o, b = Math.max(0, at.value)) {
|
|
8307
|
+
return e.length === 0 ? [] : e.flatMap((x, E) => Dr(
|
|
8308
8308
|
x,
|
|
8309
8309
|
t,
|
|
8310
8310
|
e.length === 1 ? a : `${a}-${E}`,
|
|
@@ -8313,8 +8313,8 @@ const Tu = "dgPerfTrace", Du = "affino-datagrid-perf-trace", on = "__AFFINO_DATA
|
|
|
8313
8313
|
));
|
|
8314
8314
|
}
|
|
8315
8315
|
const Bo = l(() => W.customOverlays ?? []);
|
|
8316
|
-
function
|
|
8317
|
-
const b =
|
|
8316
|
+
function Yr(e, t, a, o = Math.max(0, at.value)) {
|
|
8317
|
+
const b = Kr(
|
|
8318
8318
|
a,
|
|
8319
8319
|
t,
|
|
8320
8320
|
e.key,
|
|
@@ -8334,8 +8334,8 @@ const Tu = "dgPerfTrace", Du = "affino-datagrid-perf-trace", on = "__AFFINO_DATA
|
|
|
8334
8334
|
segments: b
|
|
8335
8335
|
};
|
|
8336
8336
|
}
|
|
8337
|
-
function
|
|
8338
|
-
const b =
|
|
8337
|
+
function Ea(e, t, a, o = Math.max(0, at.value)) {
|
|
8338
|
+
const b = ca(
|
|
8339
8339
|
a,
|
|
8340
8340
|
t,
|
|
8341
8341
|
e.key,
|
|
@@ -8355,247 +8355,247 @@ const Tu = "dgPerfTrace", Du = "affino-datagrid-perf-trace", on = "__AFFINO_DATA
|
|
|
8355
8355
|
segments: b
|
|
8356
8356
|
};
|
|
8357
8357
|
}
|
|
8358
|
-
const
|
|
8358
|
+
const wr = l(() => Bo.value.map((e) => ({
|
|
8359
8359
|
overlay: e,
|
|
8360
|
-
body:
|
|
8361
|
-
pinnedBottom:
|
|
8360
|
+
body: Da(e.ranges, Ja),
|
|
8361
|
+
pinnedBottom: Da(
|
|
8362
8362
|
e.ranges,
|
|
8363
|
-
|
|
8364
|
-
|
|
8363
|
+
sa,
|
|
8364
|
+
Gr.value
|
|
8365
8365
|
)
|
|
8366
|
-
}))), Fo = l(() =>
|
|
8366
|
+
}))), Fo = l(() => wr.value.map(({ overlay: e, body: t }) => Yr(e, "left", t)).filter((e) => e != null)), zo = l(() => wr.value.map(({ overlay: e, body: t }) => Yr(e, "center", t)).filter((e) => e != null)), Vo = l(() => wr.value.map(({ overlay: e, body: t }) => Yr(e, "right", t)).filter((e) => e != null)), Ho = l(() => wr.value.map(({ overlay: e, body: t }) => Ea(e, "left", t)).filter((e) => e != null)), Oo = l(() => wr.value.map(({ overlay: e, body: t }) => Ea(e, "right", t)).filter((e) => e != null)), $o = l(() => wr.value.map(({ overlay: e, pinnedBottom: t }) => Yr(
|
|
8367
8367
|
e,
|
|
8368
8368
|
"left",
|
|
8369
8369
|
t,
|
|
8370
8370
|
L.value?.clientHeight ?? 0
|
|
8371
|
-
)).filter((e) => e != null)), Wo = l(() =>
|
|
8371
|
+
)).filter((e) => e != null)), Wo = l(() => wr.value.map(({ overlay: e, pinnedBottom: t }) => Yr(
|
|
8372
8372
|
e,
|
|
8373
8373
|
"center",
|
|
8374
8374
|
t,
|
|
8375
8375
|
L.value?.clientHeight ?? 0
|
|
8376
|
-
)).filter((e) => e != null)), Go = l(() =>
|
|
8376
|
+
)).filter((e) => e != null)), Go = l(() => wr.value.map(({ overlay: e, pinnedBottom: t }) => Yr(
|
|
8377
8377
|
e,
|
|
8378
8378
|
"right",
|
|
8379
8379
|
t,
|
|
8380
8380
|
L.value?.clientHeight ?? 0
|
|
8381
|
-
)).filter((e) => e != null)), Ko = l(() =>
|
|
8381
|
+
)).filter((e) => e != null)), Ko = l(() => wr.value.map(({ overlay: e, pinnedBottom: t }) => Ea(
|
|
8382
8382
|
e,
|
|
8383
8383
|
"left",
|
|
8384
8384
|
t,
|
|
8385
8385
|
L.value?.clientHeight ?? 0
|
|
8386
|
-
)).filter((e) => e != null)), No = l(() =>
|
|
8386
|
+
)).filter((e) => e != null)), No = l(() => wr.value.map(({ overlay: e, pinnedBottom: t }) => Ea(
|
|
8387
8387
|
e,
|
|
8388
8388
|
"right",
|
|
8389
8389
|
t,
|
|
8390
8390
|
L.value?.clientHeight ?? 0
|
|
8391
|
-
)).filter((e) => e != null)), ti = l(() => !te.value.isRangeMoving || !te.value.rangeMovePreviewRange || Po(te.value.rangeMovePreviewRange, J.value) ? null : te.value.rangeMovePreviewRange), jo = l(() =>
|
|
8391
|
+
)).filter((e) => e != null)), ti = l(() => !te.value.isRangeMoving || !te.value.rangeMovePreviewRange || Po(te.value.rangeMovePreviewRange, J.value) ? null : te.value.rangeMovePreviewRange), jo = l(() => Ta.value ? Qn(Do.value, Ta.value) : null), ga = l(() => Ta.value ? [] : Da(ae.value, Ja)), va = l(() => ua(jo.value)), pa = l(() => ua(Ja(ti.value))), ma = l(() => Ta.value ? [] : Da(
|
|
8392
8392
|
ae.value,
|
|
8393
|
-
|
|
8394
|
-
|
|
8395
|
-
)),
|
|
8393
|
+
sa,
|
|
8394
|
+
Gr.value
|
|
8395
|
+
)), fa = l(() => ua(
|
|
8396
8396
|
Qn(
|
|
8397
|
-
|
|
8398
|
-
|
|
8397
|
+
sa(J.value),
|
|
8398
|
+
sa(te.value.fillPreviewRange)
|
|
8399
8399
|
),
|
|
8400
|
-
|
|
8401
|
-
)),
|
|
8402
|
-
|
|
8403
|
-
|
|
8404
|
-
)), qo = l(() =>
|
|
8405
|
-
|
|
8400
|
+
Gr.value
|
|
8401
|
+
)), ha = l(() => ua(
|
|
8402
|
+
sa(ti.value),
|
|
8403
|
+
Gr.value
|
|
8404
|
+
)), qo = l(() => Kr(
|
|
8405
|
+
ga.value,
|
|
8406
8406
|
"left",
|
|
8407
8407
|
"selection",
|
|
8408
8408
|
{
|
|
8409
8409
|
borderColor: "var(--datagrid-selection-overlay-border)",
|
|
8410
|
-
hideSingleCell:
|
|
8410
|
+
hideSingleCell: Jt.value
|
|
8411
8411
|
}
|
|
8412
|
-
)), Uo = l(() =>
|
|
8413
|
-
|
|
8412
|
+
)), Uo = l(() => ca(
|
|
8413
|
+
ga.value,
|
|
8414
8414
|
"left",
|
|
8415
8415
|
"selection",
|
|
8416
8416
|
{
|
|
8417
8417
|
borderColor: "var(--datagrid-selection-overlay-border)",
|
|
8418
|
-
hideSingleCell:
|
|
8418
|
+
hideSingleCell: Jt.value
|
|
8419
8419
|
}
|
|
8420
|
-
)), Xo = l(() =>
|
|
8421
|
-
|
|
8420
|
+
)), Xo = l(() => Kr(
|
|
8421
|
+
ga.value,
|
|
8422
8422
|
"center",
|
|
8423
8423
|
"selection",
|
|
8424
8424
|
{
|
|
8425
8425
|
borderColor: "var(--datagrid-selection-overlay-border)",
|
|
8426
|
-
hideSingleCell:
|
|
8426
|
+
hideSingleCell: Jt.value
|
|
8427
8427
|
}
|
|
8428
|
-
)), Yo = l(() =>
|
|
8429
|
-
|
|
8428
|
+
)), Yo = l(() => Kr(
|
|
8429
|
+
ga.value,
|
|
8430
8430
|
"right",
|
|
8431
8431
|
"selection",
|
|
8432
8432
|
{
|
|
8433
8433
|
borderColor: "var(--datagrid-selection-overlay-border)",
|
|
8434
|
-
hideSingleCell:
|
|
8434
|
+
hideSingleCell: Jt.value
|
|
8435
8435
|
}
|
|
8436
|
-
)), Zo = l(() =>
|
|
8437
|
-
|
|
8436
|
+
)), Zo = l(() => ca(
|
|
8437
|
+
ga.value,
|
|
8438
8438
|
"right",
|
|
8439
8439
|
"selection",
|
|
8440
8440
|
{
|
|
8441
8441
|
borderColor: "var(--datagrid-selection-overlay-border)",
|
|
8442
|
-
hideSingleCell:
|
|
8442
|
+
hideSingleCell: Jt.value
|
|
8443
8443
|
}
|
|
8444
|
-
)), Jo = l(() =>
|
|
8445
|
-
|
|
8444
|
+
)), Jo = l(() => Kr(
|
|
8445
|
+
ma.value,
|
|
8446
8446
|
"left",
|
|
8447
8447
|
"selection",
|
|
8448
8448
|
{
|
|
8449
8449
|
borderColor: "var(--datagrid-selection-overlay-border)",
|
|
8450
|
-
hideSingleCell:
|
|
8450
|
+
hideSingleCell: Jt.value
|
|
8451
8451
|
},
|
|
8452
8452
|
L.value?.clientHeight ?? 0
|
|
8453
|
-
)), Qo = l(() =>
|
|
8454
|
-
|
|
8453
|
+
)), Qo = l(() => ca(
|
|
8454
|
+
ma.value,
|
|
8455
8455
|
"left",
|
|
8456
8456
|
"selection",
|
|
8457
8457
|
{
|
|
8458
8458
|
borderColor: "var(--datagrid-selection-overlay-border)",
|
|
8459
|
-
hideSingleCell:
|
|
8459
|
+
hideSingleCell: Jt.value
|
|
8460
8460
|
},
|
|
8461
8461
|
L.value?.clientHeight ?? 0
|
|
8462
|
-
)), el = l(() =>
|
|
8463
|
-
|
|
8462
|
+
)), el = l(() => Kr(
|
|
8463
|
+
ma.value,
|
|
8464
8464
|
"center",
|
|
8465
8465
|
"selection",
|
|
8466
8466
|
{
|
|
8467
8467
|
borderColor: "var(--datagrid-selection-overlay-border)",
|
|
8468
|
-
hideSingleCell:
|
|
8468
|
+
hideSingleCell: Jt.value
|
|
8469
8469
|
},
|
|
8470
8470
|
L.value?.clientHeight ?? 0
|
|
8471
|
-
)), tl = l(() =>
|
|
8472
|
-
|
|
8471
|
+
)), tl = l(() => Kr(
|
|
8472
|
+
ma.value,
|
|
8473
8473
|
"right",
|
|
8474
8474
|
"selection",
|
|
8475
8475
|
{
|
|
8476
8476
|
borderColor: "var(--datagrid-selection-overlay-border)",
|
|
8477
|
-
hideSingleCell:
|
|
8477
|
+
hideSingleCell: Jt.value
|
|
8478
8478
|
},
|
|
8479
8479
|
L.value?.clientHeight ?? 0
|
|
8480
|
-
)), rl = l(() =>
|
|
8481
|
-
|
|
8480
|
+
)), rl = l(() => ca(
|
|
8481
|
+
ma.value,
|
|
8482
8482
|
"right",
|
|
8483
8483
|
"selection",
|
|
8484
8484
|
{
|
|
8485
8485
|
borderColor: "var(--datagrid-selection-overlay-border)",
|
|
8486
|
-
hideSingleCell:
|
|
8486
|
+
hideSingleCell: Jt.value
|
|
8487
8487
|
},
|
|
8488
8488
|
L.value?.clientHeight ?? 0
|
|
8489
|
-
)), al = l(() => Gt(
|
|
8489
|
+
)), al = l(() => Gt(va.value, "left", "fill-preview", {
|
|
8490
8490
|
borderColor: "var(--datagrid-selection-overlay-fill-border)",
|
|
8491
8491
|
backgroundColor: "var(--datagrid-selection-overlay-fill-bg)"
|
|
8492
|
-
})), nl = l(() =>
|
|
8492
|
+
})), nl = l(() => Dr(va.value, "left", "fill-preview", {
|
|
8493
8493
|
borderColor: "var(--datagrid-selection-overlay-fill-border)",
|
|
8494
8494
|
backgroundColor: "var(--datagrid-selection-overlay-fill-bg)"
|
|
8495
|
-
})), il = l(() => Gt(
|
|
8495
|
+
})), il = l(() => Gt(va.value, "center", "fill-preview", {
|
|
8496
8496
|
borderColor: "var(--datagrid-selection-overlay-fill-border)",
|
|
8497
8497
|
backgroundColor: "var(--datagrid-selection-overlay-fill-bg)"
|
|
8498
|
-
})), ol = l(() => Gt(
|
|
8498
|
+
})), ol = l(() => Gt(va.value, "right", "fill-preview", {
|
|
8499
8499
|
borderColor: "var(--datagrid-selection-overlay-fill-border)",
|
|
8500
8500
|
backgroundColor: "var(--datagrid-selection-overlay-fill-bg)"
|
|
8501
|
-
})), ll = l(() =>
|
|
8501
|
+
})), ll = l(() => Dr(va.value, "right", "fill-preview", {
|
|
8502
8502
|
borderColor: "var(--datagrid-selection-overlay-fill-border)",
|
|
8503
8503
|
backgroundColor: "var(--datagrid-selection-overlay-fill-bg)"
|
|
8504
|
-
})), dl = l(() => Gt(
|
|
8504
|
+
})), dl = l(() => Gt(fa.value, "left", "fill-preview", {
|
|
8505
8505
|
borderColor: "var(--datagrid-selection-overlay-fill-border)",
|
|
8506
8506
|
backgroundColor: "var(--datagrid-selection-overlay-fill-bg)"
|
|
8507
|
-
}, L.value?.clientHeight ?? 0)), sl = l(() =>
|
|
8507
|
+
}, L.value?.clientHeight ?? 0)), sl = l(() => Dr(fa.value, "left", "fill-preview", {
|
|
8508
8508
|
borderColor: "var(--datagrid-selection-overlay-fill-border)",
|
|
8509
8509
|
backgroundColor: "var(--datagrid-selection-overlay-fill-bg)"
|
|
8510
|
-
}, L.value?.clientHeight ?? 0)), ul = l(() => Gt(
|
|
8510
|
+
}, L.value?.clientHeight ?? 0)), ul = l(() => Gt(fa.value, "center", "fill-preview", {
|
|
8511
8511
|
borderColor: "var(--datagrid-selection-overlay-fill-border)",
|
|
8512
8512
|
backgroundColor: "var(--datagrid-selection-overlay-fill-bg)"
|
|
8513
|
-
}, L.value?.clientHeight ?? 0)), cl = l(() => Gt(
|
|
8513
|
+
}, L.value?.clientHeight ?? 0)), cl = l(() => Gt(fa.value, "right", "fill-preview", {
|
|
8514
8514
|
borderColor: "var(--datagrid-selection-overlay-fill-border)",
|
|
8515
8515
|
backgroundColor: "var(--datagrid-selection-overlay-fill-bg)"
|
|
8516
|
-
}, L.value?.clientHeight ?? 0)), gl = l(() =>
|
|
8516
|
+
}, L.value?.clientHeight ?? 0)), gl = l(() => Dr(fa.value, "right", "fill-preview", {
|
|
8517
8517
|
borderColor: "var(--datagrid-selection-overlay-fill-border)",
|
|
8518
8518
|
backgroundColor: "var(--datagrid-selection-overlay-fill-bg)"
|
|
8519
|
-
}, L.value?.clientHeight ?? 0)), vl = l(() => Gt(
|
|
8519
|
+
}, L.value?.clientHeight ?? 0)), vl = l(() => Gt(pa.value, "left", "move-preview", {
|
|
8520
8520
|
borderColor: "var(--datagrid-selection-overlay-move-border)",
|
|
8521
8521
|
backgroundColor: "var(--datagrid-selection-overlay-move-bg)",
|
|
8522
8522
|
borderStyle: "dashed"
|
|
8523
|
-
})), pl = l(() =>
|
|
8523
|
+
})), pl = l(() => Dr(pa.value, "left", "move-preview", {
|
|
8524
8524
|
borderColor: "var(--datagrid-selection-overlay-move-border)",
|
|
8525
8525
|
backgroundColor: "var(--datagrid-selection-overlay-move-bg)",
|
|
8526
8526
|
borderStyle: "dashed"
|
|
8527
|
-
})), ml = l(() => Gt(
|
|
8527
|
+
})), ml = l(() => Gt(pa.value, "center", "move-preview", {
|
|
8528
8528
|
borderColor: "var(--datagrid-selection-overlay-move-border)",
|
|
8529
8529
|
backgroundColor: "var(--datagrid-selection-overlay-move-bg)",
|
|
8530
8530
|
borderStyle: "dashed"
|
|
8531
|
-
})), fl = l(() => Gt(
|
|
8531
|
+
})), fl = l(() => Gt(pa.value, "right", "move-preview", {
|
|
8532
8532
|
borderColor: "var(--datagrid-selection-overlay-move-border)",
|
|
8533
8533
|
backgroundColor: "var(--datagrid-selection-overlay-move-bg)",
|
|
8534
8534
|
borderStyle: "dashed"
|
|
8535
|
-
})), hl = l(() =>
|
|
8535
|
+
})), hl = l(() => Dr(pa.value, "right", "move-preview", {
|
|
8536
8536
|
borderColor: "var(--datagrid-selection-overlay-move-border)",
|
|
8537
8537
|
backgroundColor: "var(--datagrid-selection-overlay-move-bg)",
|
|
8538
8538
|
borderStyle: "dashed"
|
|
8539
|
-
})), bl = l(() => Gt(
|
|
8539
|
+
})), bl = l(() => Gt(ha.value, "left", "move-preview", {
|
|
8540
8540
|
borderColor: "var(--datagrid-selection-overlay-move-border)",
|
|
8541
8541
|
backgroundColor: "var(--datagrid-selection-overlay-move-bg)",
|
|
8542
8542
|
borderStyle: "dashed"
|
|
8543
|
-
}, L.value?.clientHeight ?? 0)), yl = l(() =>
|
|
8543
|
+
}, L.value?.clientHeight ?? 0)), yl = l(() => Dr(ha.value, "left", "move-preview", {
|
|
8544
8544
|
borderColor: "var(--datagrid-selection-overlay-move-border)",
|
|
8545
8545
|
backgroundColor: "var(--datagrid-selection-overlay-move-bg)",
|
|
8546
8546
|
borderStyle: "dashed"
|
|
8547
|
-
}, L.value?.clientHeight ?? 0)), xl = l(() => Gt(
|
|
8547
|
+
}, L.value?.clientHeight ?? 0)), xl = l(() => Gt(ha.value, "center", "move-preview", {
|
|
8548
8548
|
borderColor: "var(--datagrid-selection-overlay-move-border)",
|
|
8549
8549
|
backgroundColor: "var(--datagrid-selection-overlay-move-bg)",
|
|
8550
8550
|
borderStyle: "dashed"
|
|
8551
|
-
}, L.value?.clientHeight ?? 0)), wl = l(() => Gt(
|
|
8551
|
+
}, L.value?.clientHeight ?? 0)), wl = l(() => Gt(ha.value, "right", "move-preview", {
|
|
8552
8552
|
borderColor: "var(--datagrid-selection-overlay-move-border)",
|
|
8553
8553
|
backgroundColor: "var(--datagrid-selection-overlay-move-bg)",
|
|
8554
8554
|
borderStyle: "dashed"
|
|
8555
|
-
}, L.value?.clientHeight ?? 0)), kl = l(() =>
|
|
8555
|
+
}, L.value?.clientHeight ?? 0)), kl = l(() => Dr(ha.value, "right", "move-preview", {
|
|
8556
8556
|
borderColor: "var(--datagrid-selection-overlay-move-border)",
|
|
8557
8557
|
backgroundColor: "var(--datagrid-selection-overlay-move-bg)",
|
|
8558
8558
|
borderStyle: "dashed"
|
|
8559
|
-
}, L.value?.clientHeight ?? 0)),
|
|
8560
|
-
handleLinkedViewportWheel:
|
|
8559
|
+
}, L.value?.clientHeight ?? 0)), Aa = {
|
|
8560
|
+
handleLinkedViewportWheel: Un,
|
|
8561
8561
|
absoluteRowIndex: It,
|
|
8562
|
-
viewportRowOffset:
|
|
8563
|
-
rowStateClasses:
|
|
8562
|
+
viewportRowOffset: Rr,
|
|
8563
|
+
rowStateClasses: Bn,
|
|
8564
8564
|
paneRowStyle: Eo,
|
|
8565
|
-
handleRowContainerClick:
|
|
8566
|
-
setHoveredRow:
|
|
8565
|
+
handleRowContainerClick: Ln,
|
|
8566
|
+
setHoveredRow: ka,
|
|
8567
8567
|
isFullRowSelectionSafe: $i,
|
|
8568
8568
|
get rowIndexColumnStyle() {
|
|
8569
8569
|
return Ke.value;
|
|
8570
8570
|
},
|
|
8571
8571
|
rowIndexCellClasses: Pt,
|
|
8572
|
-
rowIndexCellStyle:
|
|
8572
|
+
rowIndexCellStyle: vr,
|
|
8573
8573
|
rowIndexTabIndex: Ge,
|
|
8574
8574
|
isRowIndexDraggable: lt,
|
|
8575
8575
|
handleRowIndexClickSafe: Hi,
|
|
8576
8576
|
handleRowIndexKeydown: Oi,
|
|
8577
|
-
handleRowIndexDragStart:
|
|
8578
|
-
handleRowIndexDragOver:
|
|
8577
|
+
handleRowIndexDragStart: ar,
|
|
8578
|
+
handleRowIndexDragOver: pr,
|
|
8579
8579
|
handleRowIndexDrop: ft,
|
|
8580
8580
|
handleRowIndexDragEnd: ot,
|
|
8581
8581
|
builtInCellClasses: Le,
|
|
8582
8582
|
cellStateClasses: ai,
|
|
8583
|
-
resolveCellCustomClass:
|
|
8583
|
+
resolveCellCustomClass: rr,
|
|
8584
8584
|
columnStyle: Q,
|
|
8585
8585
|
bodyCellPresentationStyle: it,
|
|
8586
8586
|
bodyCellSelectionStyle: Kt,
|
|
8587
8587
|
resolveCellCustomStyle: Lt,
|
|
8588
8588
|
columnIndexByKey: Tt,
|
|
8589
8589
|
cellTabIndex: Bt,
|
|
8590
|
-
cellAriaRole:
|
|
8591
|
-
cellAriaChecked:
|
|
8592
|
-
cellAriaPressed:
|
|
8593
|
-
cellAriaLabel:
|
|
8594
|
-
cellAriaDisabled:
|
|
8590
|
+
cellAriaRole: Sa,
|
|
8591
|
+
cellAriaChecked: Mr,
|
|
8592
|
+
cellAriaPressed: _a,
|
|
8593
|
+
cellAriaLabel: na,
|
|
8594
|
+
cellAriaDisabled: dr,
|
|
8595
8595
|
handleCellMouseDown: re,
|
|
8596
|
-
handleBodyCellClick:
|
|
8597
|
-
handleCellMouseMove:
|
|
8598
|
-
clearRangeMoveHandleHover:
|
|
8596
|
+
handleBodyCellClick: zn,
|
|
8597
|
+
handleCellMouseMove: Fn,
|
|
8598
|
+
clearRangeMoveHandleHover: Ar,
|
|
8599
8599
|
handleCellKeydown: qe,
|
|
8600
8600
|
startInlineEditIfAllowed: Je,
|
|
8601
8601
|
isCellEditableSafe: Oe,
|
|
@@ -8603,55 +8603,55 @@ const Tu = "dgPerfTrace", Du = "affino-datagrid-perf-trace", on = "__AFFINO_DATA
|
|
|
8603
8603
|
isEditingCellSafe: tt,
|
|
8604
8604
|
handleFillHandleMouseDown: Ft,
|
|
8605
8605
|
handleFillHandleDoubleClick: et,
|
|
8606
|
-
isSelectEditorCell:
|
|
8607
|
-
resolveSelectEditorValue:
|
|
8608
|
-
resolveSelectEditorOptions:
|
|
8609
|
-
resolveSelectEditorOptionsLoader:
|
|
8610
|
-
handleSelectEditorCommit:
|
|
8611
|
-
handleSelectEditorCancel:
|
|
8612
|
-
handleSelectEditorOptionsResolved:
|
|
8613
|
-
isDateEditorCell:
|
|
8614
|
-
resolveDateEditorInputType:
|
|
8615
|
-
handleDateEditorChange:
|
|
8616
|
-
isTextEditorCell:
|
|
8606
|
+
isSelectEditorCell: Rn,
|
|
8607
|
+
resolveSelectEditorValue: _n,
|
|
8608
|
+
resolveSelectEditorOptions: wn,
|
|
8609
|
+
resolveSelectEditorOptionsLoader: kn,
|
|
8610
|
+
handleSelectEditorCommit: Dn,
|
|
8611
|
+
handleSelectEditorCancel: En,
|
|
8612
|
+
handleSelectEditorOptionsResolved: Cn,
|
|
8613
|
+
isDateEditorCell: Mn,
|
|
8614
|
+
resolveDateEditorInputType: In,
|
|
8615
|
+
handleDateEditorChange: An,
|
|
8616
|
+
isTextEditorCell: Tn,
|
|
8617
8617
|
updateEditingCellValue: K,
|
|
8618
8618
|
handleEditorKeydown: U,
|
|
8619
|
-
handleTextEditorBlur:
|
|
8619
|
+
handleTextEditorBlur: Pn,
|
|
8620
8620
|
shouldRenderCheckboxCell: Wt,
|
|
8621
|
-
checkboxIndicatorClass:
|
|
8622
|
-
checkboxIndicatorMarkClass:
|
|
8623
|
-
readResolvedDisplayCell:
|
|
8624
|
-
renderResolvedCellContent:
|
|
8621
|
+
checkboxIndicatorClass: Ir,
|
|
8622
|
+
checkboxIndicatorMarkClass: ia,
|
|
8623
|
+
readResolvedDisplayCell: Ga,
|
|
8624
|
+
renderResolvedCellContent: Sn
|
|
8625
8625
|
}, ri = {
|
|
8626
8626
|
handleCenterViewportScroll: go,
|
|
8627
|
-
handleBodyViewportWheel:
|
|
8627
|
+
handleBodyViewportWheel: Xn,
|
|
8628
8628
|
absoluteRowIndex: It,
|
|
8629
|
-
viewportRowOffset:
|
|
8629
|
+
viewportRowOffset: Rr,
|
|
8630
8630
|
handleViewportKeydown(e) {
|
|
8631
8631
|
I.value.handleViewportKeydown(e);
|
|
8632
8632
|
},
|
|
8633
|
-
rowStateClasses:
|
|
8634
|
-
handleRowContainerClick:
|
|
8635
|
-
setHoveredRow:
|
|
8633
|
+
rowStateClasses: Bn,
|
|
8634
|
+
handleRowContainerClick: Ln,
|
|
8635
|
+
setHoveredRow: ka,
|
|
8636
8636
|
spacerStyle: Ao,
|
|
8637
8637
|
builtInCellClasses: Le,
|
|
8638
8638
|
cellStateClasses: ai,
|
|
8639
|
-
resolveCellCustomClass:
|
|
8639
|
+
resolveCellCustomClass: rr,
|
|
8640
8640
|
columnStyle: Q,
|
|
8641
8641
|
bodyCellPresentationStyle: it,
|
|
8642
8642
|
bodyCellSelectionStyle: Kt,
|
|
8643
8643
|
resolveCellCustomStyle: Lt,
|
|
8644
8644
|
columnIndexByKey: Tt,
|
|
8645
8645
|
cellTabIndex: Bt,
|
|
8646
|
-
cellAriaRole:
|
|
8647
|
-
cellAriaChecked:
|
|
8648
|
-
cellAriaPressed:
|
|
8649
|
-
cellAriaLabel:
|
|
8650
|
-
cellAriaDisabled:
|
|
8646
|
+
cellAriaRole: Sa,
|
|
8647
|
+
cellAriaChecked: Mr,
|
|
8648
|
+
cellAriaPressed: _a,
|
|
8649
|
+
cellAriaLabel: na,
|
|
8650
|
+
cellAriaDisabled: dr,
|
|
8651
8651
|
handleCellMouseDown: re,
|
|
8652
|
-
handleBodyCellClick:
|
|
8653
|
-
handleCellMouseMove:
|
|
8654
|
-
clearRangeMoveHandleHover:
|
|
8652
|
+
handleBodyCellClick: zn,
|
|
8653
|
+
handleCellMouseMove: Fn,
|
|
8654
|
+
clearRangeMoveHandleHover: Ar,
|
|
8655
8655
|
handleCellKeydown: qe,
|
|
8656
8656
|
startInlineEditIfAllowed: Je,
|
|
8657
8657
|
isCellEditableSafe: Oe,
|
|
@@ -8659,25 +8659,25 @@ const Tu = "dgPerfTrace", Du = "affino-datagrid-perf-trace", on = "__AFFINO_DATA
|
|
|
8659
8659
|
isEditingCellSafe: tt,
|
|
8660
8660
|
handleFillHandleMouseDown: Ft,
|
|
8661
8661
|
handleFillHandleDoubleClick: et,
|
|
8662
|
-
isSelectEditorCell:
|
|
8663
|
-
resolveSelectEditorValue:
|
|
8664
|
-
resolveSelectEditorOptions:
|
|
8665
|
-
resolveSelectEditorOptionsLoader:
|
|
8666
|
-
handleSelectEditorCommit:
|
|
8667
|
-
handleSelectEditorCancel:
|
|
8668
|
-
handleSelectEditorOptionsResolved:
|
|
8669
|
-
isDateEditorCell:
|
|
8670
|
-
resolveDateEditorInputType:
|
|
8671
|
-
handleDateEditorChange:
|
|
8672
|
-
isTextEditorCell:
|
|
8662
|
+
isSelectEditorCell: Rn,
|
|
8663
|
+
resolveSelectEditorValue: _n,
|
|
8664
|
+
resolveSelectEditorOptions: wn,
|
|
8665
|
+
resolveSelectEditorOptionsLoader: kn,
|
|
8666
|
+
handleSelectEditorCommit: Dn,
|
|
8667
|
+
handleSelectEditorCancel: En,
|
|
8668
|
+
handleSelectEditorOptionsResolved: Cn,
|
|
8669
|
+
isDateEditorCell: Mn,
|
|
8670
|
+
resolveDateEditorInputType: In,
|
|
8671
|
+
handleDateEditorChange: An,
|
|
8672
|
+
isTextEditorCell: Tn,
|
|
8673
8673
|
updateEditingCellValue: K,
|
|
8674
8674
|
handleEditorKeydown: U,
|
|
8675
|
-
handleTextEditorBlur:
|
|
8675
|
+
handleTextEditorBlur: Pn,
|
|
8676
8676
|
shouldRenderCheckboxCell: Wt,
|
|
8677
|
-
checkboxIndicatorClass:
|
|
8678
|
-
checkboxIndicatorMarkClass:
|
|
8679
|
-
readResolvedDisplayCell:
|
|
8680
|
-
renderResolvedCellContent:
|
|
8677
|
+
checkboxIndicatorClass: Ir,
|
|
8678
|
+
checkboxIndicatorMarkClass: ia,
|
|
8679
|
+
readResolvedDisplayCell: Ga,
|
|
8680
|
+
renderResolvedCellContent: Sn
|
|
8681
8681
|
}, Cl = l(() => ({
|
|
8682
8682
|
side: "left",
|
|
8683
8683
|
width: Ce.value,
|
|
@@ -8754,11 +8754,11 @@ const Tu = "dgPerfTrace", Du = "affino-datagrid-perf-trace", on = "__AFFINO_DATA
|
|
|
8754
8754
|
function ai(e, t, a) {
|
|
8755
8755
|
const o = ue.value[a]?.key ?? "", b = bt(t, a);
|
|
8756
8756
|
return {
|
|
8757
|
-
"grid-cell--selected": !b &&
|
|
8757
|
+
"grid-cell--selected": !b && fr(t, a),
|
|
8758
8758
|
"grid-cell--selection-anchor": b,
|
|
8759
8759
|
"grid-cell--range-move-handle-hover": Ki(t, a),
|
|
8760
|
-
"grid-cell--fill-preview":
|
|
8761
|
-
"grid-cell--clipboard-pending":
|
|
8760
|
+
"grid-cell--fill-preview": or(t, a),
|
|
8761
|
+
"grid-cell--clipboard-pending": hr(t, a),
|
|
8762
8762
|
"grid-cell--clipboard-pending-top": Ct(t, a, "top"),
|
|
8763
8763
|
"grid-cell--clipboard-pending-right": Ct(t, a, "right"),
|
|
8764
8764
|
"grid-cell--clipboard-pending-bottom": Ct(t, a, "bottom"),
|
|
@@ -8768,9 +8768,9 @@ const Tu = "dgPerfTrace", Du = "affino-datagrid-perf-trace", on = "__AFFINO_DATA
|
|
|
8768
8768
|
}
|
|
8769
8769
|
return k({
|
|
8770
8770
|
getStageRootElement: () => d.value,
|
|
8771
|
-
getHeaderElement: () =>
|
|
8771
|
+
getHeaderElement: () => Ma(),
|
|
8772
8772
|
getBodyViewportElement: () => f.value,
|
|
8773
|
-
getVisibleRowMetrics: () =>
|
|
8773
|
+
getVisibleRowMetrics: () => Jn(Wr.value)
|
|
8774
8774
|
}), (e, t) => (m(), w("section", {
|
|
8775
8775
|
ref_key: "stageRootEl",
|
|
8776
8776
|
ref: d,
|
|
@@ -8781,24 +8781,24 @@ const Tu = "dgPerfTrace", Du = "affino-datagrid-perf-trace", on = "__AFFINO_DATA
|
|
|
8781
8781
|
"grid-stage--layout-auto-height": y(S) === "auto-height",
|
|
8782
8782
|
"grid-stage--fill-dragging": $.value,
|
|
8783
8783
|
"grid-stage--range-moving": st.value,
|
|
8784
|
-
"grid-stage--single-cell-selection":
|
|
8784
|
+
"grid-stage--single-cell-selection": Jt.value
|
|
8785
8785
|
}]),
|
|
8786
8786
|
style: X(y(O).stageStyle)
|
|
8787
8787
|
}, [
|
|
8788
8788
|
nt(ru, {
|
|
8789
|
-
"pane-layout-style":
|
|
8789
|
+
"pane-layout-style": Sr.value,
|
|
8790
8790
|
"left-pane-style": St.value,
|
|
8791
8791
|
"right-pane-style": c.value,
|
|
8792
8792
|
"left-track-style": mo.value,
|
|
8793
8793
|
"right-track-style": fo.value,
|
|
8794
8794
|
"row-index-column-style": Ke.value,
|
|
8795
8795
|
"show-index-column": qt.value,
|
|
8796
|
-
"on-linked-viewport-wheel":
|
|
8796
|
+
"on-linked-viewport-wheel": Un
|
|
8797
8797
|
}, {
|
|
8798
8798
|
"center-chrome": Me(() => [
|
|
8799
8799
|
F("canvas", {
|
|
8800
8800
|
ref_key: "centerHeaderChromeCanvasEl",
|
|
8801
|
-
ref:
|
|
8801
|
+
ref: lr,
|
|
8802
8802
|
class: "grid-chrome-canvas grid-chrome-canvas--header-center",
|
|
8803
8803
|
style: X(s.value),
|
|
8804
8804
|
"aria-hidden": "true"
|
|
@@ -8815,7 +8815,7 @@ const Tu = "dgPerfTrace", Du = "affino-datagrid-perf-trace", on = "__AFFINO_DATA
|
|
|
8815
8815
|
"right-chrome": Me(() => [
|
|
8816
8816
|
F("canvas", {
|
|
8817
8817
|
ref_key: "rightHeaderChromeCanvasEl",
|
|
8818
|
-
ref:
|
|
8818
|
+
ref: _r,
|
|
8819
8819
|
class: "grid-chrome-canvas",
|
|
8820
8820
|
"aria-hidden": "true"
|
|
8821
8821
|
}, null, 512)
|
|
@@ -8826,8 +8826,8 @@ const Tu = "dgPerfTrace", Du = "affino-datagrid-perf-trace", on = "__AFFINO_DATA
|
|
|
8826
8826
|
ref_key: "bodyShellRef",
|
|
8827
8827
|
ref: se,
|
|
8828
8828
|
class: "grid-body-shell",
|
|
8829
|
-
style: X([
|
|
8830
|
-
onMouseleave:
|
|
8829
|
+
style: X([Sr.value, y(O).bodyShellStyle]),
|
|
8830
|
+
onMouseleave: wa
|
|
8831
8831
|
}, [
|
|
8832
8832
|
F("canvas", {
|
|
8833
8833
|
ref_key: "centerChromeCanvasEl",
|
|
@@ -8836,15 +8836,15 @@ const Tu = "dgPerfTrace", Du = "affino-datagrid-perf-trace", on = "__AFFINO_DATA
|
|
|
8836
8836
|
style: X(n.value),
|
|
8837
8837
|
"aria-hidden": "true"
|
|
8838
8838
|
}, null, 4),
|
|
8839
|
-
nt(
|
|
8839
|
+
nt(za, {
|
|
8840
8840
|
pane: Cl.value,
|
|
8841
|
-
"render-api":
|
|
8841
|
+
"render-api": Aa,
|
|
8842
8842
|
"handle-context-menu": r.onViewportContextMenu
|
|
8843
8843
|
}, {
|
|
8844
8844
|
chrome: Me(() => [
|
|
8845
8845
|
F("canvas", {
|
|
8846
8846
|
ref_key: "leftChromeCanvasEl",
|
|
8847
|
-
ref:
|
|
8847
|
+
ref: Hr,
|
|
8848
8848
|
class: "grid-chrome-canvas",
|
|
8849
8849
|
"aria-hidden": "true"
|
|
8850
8850
|
}, null, 512)
|
|
@@ -8868,9 +8868,9 @@ const Tu = "dgPerfTrace", Du = "affino-datagrid-perf-trace", on = "__AFFINO_DATA
|
|
|
8868
8868
|
"overlay-lanes": zo.value,
|
|
8869
8869
|
"render-api": ri
|
|
8870
8870
|
}, null, 8, ["display-rows", "runtime-revision", "body-rows-revision", "top-spacer-height", "bottom-spacer-height", "report-center-pane-diagnostics", "report-fill-plumbing-state", "report-fill-plumbing-detail", "handle-context-menu", "selection-overlay-segments", "fill-preview-overlay-segments", "move-preview-overlay-segments", "overlay-lanes"]),
|
|
8871
|
-
nt(
|
|
8871
|
+
nt(za, {
|
|
8872
8872
|
pane: Sl.value,
|
|
8873
|
-
"render-api":
|
|
8873
|
+
"render-api": Aa,
|
|
8874
8874
|
"handle-context-menu": r.onViewportContextMenu
|
|
8875
8875
|
}, {
|
|
8876
8876
|
chrome: Me(() => [
|
|
@@ -8885,16 +8885,16 @@ const Tu = "dgPerfTrace", Du = "affino-datagrid-perf-trace", on = "__AFFINO_DATA
|
|
|
8885
8885
|
}, 8, ["pane", "handle-context-menu"]),
|
|
8886
8886
|
nt(gu, {
|
|
8887
8887
|
"is-open": He.value,
|
|
8888
|
-
style: X(
|
|
8889
|
-
onToggle:
|
|
8888
|
+
style: X(qn.value),
|
|
8889
|
+
onToggle: ir,
|
|
8890
8890
|
onSelected: zt
|
|
8891
8891
|
}, null, 8, ["is-open", "style"])
|
|
8892
8892
|
], 36),
|
|
8893
8893
|
y(h).pinnedBottomRows.length > 0 ? (m(), w("div", {
|
|
8894
8894
|
key: 0,
|
|
8895
8895
|
class: "grid-body-shell grid-body-shell--pinned-bottom",
|
|
8896
|
-
style: X(
|
|
8897
|
-
onMouseleave:
|
|
8896
|
+
style: X(Sr.value),
|
|
8897
|
+
onMouseleave: wa
|
|
8898
8898
|
}, [
|
|
8899
8899
|
F("canvas", {
|
|
8900
8900
|
ref_key: "centerBottomChromeCanvasEl",
|
|
@@ -8903,9 +8903,9 @@ const Tu = "dgPerfTrace", Du = "affino-datagrid-perf-trace", on = "__AFFINO_DATA
|
|
|
8903
8903
|
style: X(C.value),
|
|
8904
8904
|
"aria-hidden": "true"
|
|
8905
8905
|
}, null, 4),
|
|
8906
|
-
nt(
|
|
8906
|
+
nt(za, {
|
|
8907
8907
|
pane: _l.value,
|
|
8908
|
-
"render-api":
|
|
8908
|
+
"render-api": Aa,
|
|
8909
8909
|
"handle-context-menu": r.onViewportContextMenu
|
|
8910
8910
|
}, {
|
|
8911
8911
|
chrome: Me(() => [
|
|
@@ -8928,7 +8928,7 @@ const Tu = "dgPerfTrace", Du = "affino-datagrid-perf-trace", on = "__AFFINO_DATA
|
|
|
8928
8928
|
"report-fill-plumbing-state": W.reportFillPlumbingState,
|
|
8929
8929
|
"report-fill-plumbing-detail": W.reportFillPlumbingDetail,
|
|
8930
8930
|
"handle-scroll": vo,
|
|
8931
|
-
"handle-wheel":
|
|
8931
|
+
"handle-wheel": Xn,
|
|
8932
8932
|
"handle-keydown": po,
|
|
8933
8933
|
"handle-context-menu": r.onViewportContextMenu,
|
|
8934
8934
|
"selection-overlay-segments": el.value,
|
|
@@ -8937,9 +8937,9 @@ const Tu = "dgPerfTrace", Du = "affino-datagrid-perf-trace", on = "__AFFINO_DATA
|
|
|
8937
8937
|
"overlay-lanes": Wo.value,
|
|
8938
8938
|
"render-api": ri
|
|
8939
8939
|
}, null, 8, ["display-rows", "runtime-revision", "body-rows-revision", "report-center-pane-diagnostics", "report-fill-plumbing-state", "report-fill-plumbing-detail", "handle-context-menu", "selection-overlay-segments", "fill-preview-overlay-segments", "move-preview-overlay-segments", "overlay-lanes"]),
|
|
8940
|
-
nt(
|
|
8940
|
+
nt(za, {
|
|
8941
8941
|
pane: Rl.value,
|
|
8942
|
-
"render-api":
|
|
8942
|
+
"render-api": Aa,
|
|
8943
8943
|
"handle-context-menu": r.onViewportContextMenu
|
|
8944
8944
|
}, {
|
|
8945
8945
|
chrome: Me(() => [
|
|
@@ -8955,17 +8955,17 @@ const Tu = "dgPerfTrace", Du = "affino-datagrid-perf-trace", on = "__AFFINO_DATA
|
|
|
8955
8955
|
], 36)) : q("", !0)
|
|
8956
8956
|
], 6));
|
|
8957
8957
|
}
|
|
8958
|
-
}),
|
|
8958
|
+
}), ba = 0.5, Lu = 1.25;
|
|
8959
8959
|
function Bu(r) {
|
|
8960
8960
|
const k = Math.abs(r.deltaX), u = Math.abs(r.deltaY);
|
|
8961
8961
|
if (r.shiftKey) {
|
|
8962
|
-
const z = k >
|
|
8963
|
-
return Math.abs(z) >
|
|
8962
|
+
const z = k > ba ? r.deltaX : r.deltaY;
|
|
8963
|
+
return Math.abs(z) > ba ? { horizontalDelta: z, verticalDelta: 0 } : { horizontalDelta: 0, verticalDelta: 0 };
|
|
8964
8964
|
}
|
|
8965
|
-
return k <=
|
|
8965
|
+
return k <= ba && u <= ba ? {
|
|
8966
8966
|
horizontalDelta: 0,
|
|
8967
8967
|
verticalDelta: 0
|
|
8968
|
-
} : k >
|
|
8968
|
+
} : k > ba && k > u * Lu ? {
|
|
8969
8969
|
horizontalDelta: r.deltaX,
|
|
8970
8970
|
verticalDelta: 0
|
|
8971
8971
|
} : {
|
|
@@ -8973,18 +8973,18 @@ function Bu(r) {
|
|
|
8973
8973
|
verticalDelta: r.deltaY
|
|
8974
8974
|
};
|
|
8975
8975
|
}
|
|
8976
|
-
const Fu = 12,
|
|
8977
|
-
function
|
|
8976
|
+
const Fu = 12, mn = 280, fn = 240;
|
|
8977
|
+
function sn(r, k) {
|
|
8978
8978
|
return Number.isFinite(r) ? Math.max(1, Math.round(Number(r))) : k;
|
|
8979
8979
|
}
|
|
8980
8980
|
function Fi(r) {
|
|
8981
|
-
const k =
|
|
8981
|
+
const k = sn(
|
|
8982
8982
|
r.minTableWidth,
|
|
8983
|
-
pn
|
|
8984
|
-
), u = dn(
|
|
8985
|
-
r.minTimelineWidth,
|
|
8986
8983
|
mn
|
|
8987
|
-
),
|
|
8984
|
+
), u = sn(
|
|
8985
|
+
r.minTimelineWidth,
|
|
8986
|
+
fn
|
|
8987
|
+
), z = sn(r.requestedWidth, k), M = Number.isFinite(r.stageWidth) ? Math.max(0, Number(r.stageWidth)) : 0, V = Number.isFinite(r.maxTableWidth) ? Math.max(k, Math.round(Number(r.maxTableWidth))) : Number.POSITIVE_INFINITY, H = M > 0 ? Math.max(k, M - u) : Number.POSITIVE_INFINITY;
|
|
8988
8988
|
return Math.min(
|
|
8989
8989
|
Math.max(z, k),
|
|
8990
8990
|
Math.min(V, H)
|
|
@@ -9017,7 +9017,7 @@ function Hu(r, k, u) {
|
|
|
9017
9017
|
return W.length > 0 ? W : null;
|
|
9018
9018
|
}
|
|
9019
9019
|
const Ou = 6;
|
|
9020
|
-
function
|
|
9020
|
+
function ya(r) {
|
|
9021
9021
|
return [
|
|
9022
9022
|
r.dependencyTaskId,
|
|
9023
9023
|
r.dependencyType,
|
|
@@ -9050,7 +9050,7 @@ function mi(r, k, u = Ou) {
|
|
|
9050
9050
|
const Wu = { class: "datagrid-gantt-stage__timeline" }, Gu = { class: "datagrid-gantt-stage__timeline-body" }, Ku = {
|
|
9051
9051
|
key: 0,
|
|
9052
9052
|
class: "datagrid-gantt-stage__empty"
|
|
9053
|
-
}, fi = 48, hi = 240,
|
|
9053
|
+
}, fi = 48, hi = 240, Ha = 40, bi = 24, Nu = /* @__PURE__ */ er({
|
|
9054
9054
|
__name: "DataGridGanttStage",
|
|
9055
9055
|
props: {
|
|
9056
9056
|
stageContext: {},
|
|
@@ -9104,10 +9104,10 @@ const Wu = { class: "datagrid-gantt-stage__timeline" }, Gu = { class: "datagrid-
|
|
|
9104
9104
|
const Y = Math.max(1, B / 2);
|
|
9105
9105
|
i.beginPath(), i.moveTo(p, _ - Y), i.lineTo(p + Y, _), i.lineTo(p, _ + Y), i.lineTo(p - Y, _), i.closePath();
|
|
9106
9106
|
}
|
|
9107
|
-
function
|
|
9107
|
+
function tr(i, p, _, B, Y) {
|
|
9108
9108
|
Math.abs(_ - p) < 2 || (i.save(), i.strokeStyle = Y, i.lineWidth = 1.5, i.lineCap = "round", i.beginPath(), i.moveTo(p, B), i.lineTo(_, B), i.moveTo(p, B - 3), i.lineTo(p, B + 3), i.moveTo(_, B - 3), i.lineTo(_, B + 3), i.stroke(), i.restore());
|
|
9109
9109
|
}
|
|
9110
|
-
function
|
|
9110
|
+
function kr(i, p, _, B, Y) {
|
|
9111
9111
|
const g = p[0];
|
|
9112
9112
|
if (!g || p.length < 2)
|
|
9113
9113
|
return;
|
|
@@ -9172,7 +9172,7 @@ const Wu = { class: "datagrid-gantt-stage__timeline" }, Gu = { class: "datagrid-
|
|
|
9172
9172
|
me(S.value)
|
|
9173
9173
|
);
|
|
9174
9174
|
}
|
|
9175
|
-
function
|
|
9175
|
+
function vr(i) {
|
|
9176
9176
|
if (!i)
|
|
9177
9177
|
return;
|
|
9178
9178
|
const p = Math.max(0, i.clientWidth);
|
|
@@ -9181,13 +9181,13 @@ const Wu = { class: "datagrid-gantt-stage__timeline" }, Gu = { class: "datagrid-
|
|
|
9181
9181
|
function ye(i = "both") {
|
|
9182
9182
|
Q = Q || i !== "body", K = K || i !== "header", !(P.value != null || typeof window > "u") && (P.value = window.requestAnimationFrame(() => {
|
|
9183
9183
|
const p = Q, _ = K;
|
|
9184
|
-
P.value = null, Q = !1, K = !1, p &&
|
|
9184
|
+
P.value = null, Q = !1, K = !1, p && br(), _ && qt();
|
|
9185
9185
|
}));
|
|
9186
9186
|
}
|
|
9187
9187
|
function Pt() {
|
|
9188
9188
|
P.value == null || typeof window > "u" || (window.cancelAnimationFrame(P.value), P.value = null, Q = !1, K = !1);
|
|
9189
9189
|
}
|
|
9190
|
-
function
|
|
9190
|
+
function rr(i) {
|
|
9191
9191
|
return u.runtime.api.view.getRowHeightOverride(i) ?? u.baseRowHeight;
|
|
9192
9192
|
}
|
|
9193
9193
|
const Lt = l(() => u.runtime.api.view.getRowHeightVersion()), Je = l(() => {
|
|
@@ -9195,7 +9195,7 @@ const Wu = { class: "datagrid-gantt-stage__timeline" }, Gu = { class: "datagrid-
|
|
|
9195
9195
|
const i = [];
|
|
9196
9196
|
let p = H.value.topSpacerHeight;
|
|
9197
9197
|
for (let _ = 0; _ < V.value.displayRows.length; _ += 1) {
|
|
9198
|
-
const B = H.value.viewportRowStart + _, Y = Math.max(1,
|
|
9198
|
+
const B = H.value.viewportRowStart + _, Y = Math.max(1, rr(B));
|
|
9199
9199
|
i.push({
|
|
9200
9200
|
top: p,
|
|
9201
9201
|
height: Y
|
|
@@ -9218,7 +9218,7 @@ const Wu = { class: "datagrid-gantt-stage__timeline" }, Gu = { class: "datagrid-
|
|
|
9218
9218
|
V.value.displayRows.length * u.baseRowHeight
|
|
9219
9219
|
),
|
|
9220
9220
|
baseRowHeight: u.baseRowHeight,
|
|
9221
|
-
resolveRowHeight:
|
|
9221
|
+
resolveRowHeight: rr,
|
|
9222
9222
|
timeline: le.value,
|
|
9223
9223
|
options: u.gantt,
|
|
9224
9224
|
criticalTaskIds: Bt.value
|
|
@@ -9234,7 +9234,7 @@ const Wu = { class: "datagrid-gantt-stage__timeline" }, Gu = { class: "datagrid-
|
|
|
9234
9234
|
return !i || !u.gantt ? [] : Yl({
|
|
9235
9235
|
bars: Ge.value,
|
|
9236
9236
|
resolveFrame: (p) => {
|
|
9237
|
-
const _ = tt(p), B =
|
|
9237
|
+
const _ = tt(p), B = rn(
|
|
9238
9238
|
_,
|
|
9239
9239
|
i,
|
|
9240
9240
|
u.gantt?.minBarWidth ?? 6,
|
|
@@ -9248,13 +9248,13 @@ const Wu = { class: "datagrid-gantt-stage__timeline" }, Gu = { class: "datagrid-
|
|
|
9248
9248
|
};
|
|
9249
9249
|
}
|
|
9250
9250
|
});
|
|
9251
|
-
}), mt = l(() => ae.value ? lt.value.find((i) =>
|
|
9251
|
+
}), mt = l(() => ae.value ? lt.value.find((i) => ya(i) === ae.value) ?? null : null), ar = l(() => {
|
|
9252
9252
|
const i = mt.value;
|
|
9253
9253
|
return i ? /* @__PURE__ */ new Set([
|
|
9254
9254
|
i.sourceBar.rowId,
|
|
9255
9255
|
i.targetBar.rowId
|
|
9256
9256
|
]) : /* @__PURE__ */ new Set();
|
|
9257
|
-
}),
|
|
9257
|
+
}), pr = l(() => {
|
|
9258
9258
|
const i = G.value.selectionRange, p = W.value.visibleColumns.length;
|
|
9259
9259
|
if (!i || p <= 0)
|
|
9260
9260
|
return null;
|
|
@@ -9264,7 +9264,7 @@ const Wu = { class: "datagrid-gantt-stage__timeline" }, Gu = { class: "datagrid-
|
|
|
9264
9264
|
endRow: Math.max(i.startRow, i.endRow)
|
|
9265
9265
|
};
|
|
9266
9266
|
}), ft = l(() => {
|
|
9267
|
-
const i = /* @__PURE__ */ new Set(), p =
|
|
9267
|
+
const i = /* @__PURE__ */ new Set(), p = pr.value;
|
|
9268
9268
|
return V.value.displayRows.forEach((_, B) => {
|
|
9269
9269
|
if (_.rowId == null)
|
|
9270
9270
|
return;
|
|
@@ -9323,7 +9323,7 @@ const Wu = { class: "datagrid-gantt-stage__timeline" }, Gu = { class: "datagrid-
|
|
|
9323
9323
|
}
|
|
9324
9324
|
}), u.runtime.api.rowSelection.hasSupport() && u.runtime.api.rowSelection.setFocusedRow(p.rowId));
|
|
9325
9325
|
}
|
|
9326
|
-
const
|
|
9326
|
+
const mr = l(() => {
|
|
9327
9327
|
if (!u.gantt)
|
|
9328
9328
|
return "off";
|
|
9329
9329
|
const i = [
|
|
@@ -9374,11 +9374,11 @@ const Wu = { class: "datagrid-gantt-stage__timeline" }, Gu = { class: "datagrid-
|
|
|
9374
9374
|
i.baselineStartMs ?? "",
|
|
9375
9375
|
i.baselineEndMs ?? "",
|
|
9376
9376
|
i.dependencyRefs.map((p) => `${p.taskId}:${p.type}`).join(",")
|
|
9377
|
-
].join(":")).join("|")),
|
|
9378
|
-
requestedWidth:
|
|
9377
|
+
].join(":")).join("|")), nr = l(() => ot.value.join("|")), ir = N(u.gantt?.paneWidth ?? 520), zt = l(() => Fi({
|
|
9378
|
+
requestedWidth: ir.value,
|
|
9379
9379
|
stageWidth: We.value,
|
|
9380
|
-
minTableWidth:
|
|
9381
|
-
minTimelineWidth:
|
|
9380
|
+
minTableWidth: mn,
|
|
9381
|
+
minTimelineWidth: fn
|
|
9382
9382
|
})), Nt = l(() => ({
|
|
9383
9383
|
width: `${zt.value}px`,
|
|
9384
9384
|
minWidth: `${zt.value}px`,
|
|
@@ -9388,17 +9388,17 @@ const Wu = { class: "datagrid-gantt-stage__timeline" }, Gu = { class: "datagrid-
|
|
|
9388
9388
|
width: `${Fu}px`
|
|
9389
9389
|
})), bt = l(() => ({
|
|
9390
9390
|
height: `${te.value}px`
|
|
9391
|
-
})),
|
|
9391
|
+
})), fr = l(() => ({
|
|
9392
9392
|
height: `${te.value}px`
|
|
9393
|
-
})),
|
|
9393
|
+
})), Cr = l(() => ({
|
|
9394
9394
|
width: `${le.value?.totalWidth ?? 1}px`,
|
|
9395
9395
|
minWidth: `${le.value?.totalWidth ?? 1}px`,
|
|
9396
9396
|
height: `${te.value}px`
|
|
9397
|
-
})),
|
|
9397
|
+
})), or = l(() => ({
|
|
9398
9398
|
width: `${le.value?.totalWidth ?? 1}px`,
|
|
9399
9399
|
minWidth: `${le.value?.totalWidth ?? 1}px`,
|
|
9400
9400
|
height: `${Math.max(ve.value, 1)}px`
|
|
9401
|
-
})),
|
|
9401
|
+
})), hr = l(() => ce.value ? "col-resize" : de.value ? de.value.mode === "move" ? "grabbing" : "col-resize" : Ie.value ? Ie.value.mode === "move" ? "grab" : "col-resize" : J.value ? "pointer" : "default");
|
|
9402
9402
|
function Ct() {
|
|
9403
9403
|
ae.value == null && J.value == null || (ae.value = null, J.value = null, ye("body"));
|
|
9404
9404
|
}
|
|
@@ -9427,7 +9427,7 @@ const Wu = { class: "datagrid-gantt-stage__timeline" }, Gu = { class: "datagrid-
|
|
|
9427
9427
|
), i.restore());
|
|
9428
9428
|
}
|
|
9429
9429
|
}
|
|
9430
|
-
function
|
|
9430
|
+
function br() {
|
|
9431
9431
|
const i = le.value, p = S.value;
|
|
9432
9432
|
if (!i || !p)
|
|
9433
9433
|
return;
|
|
@@ -9479,11 +9479,11 @@ const Wu = { class: "datagrid-gantt-stage__timeline" }, Gu = { class: "datagrid-
|
|
|
9479
9479
|
}).body, g = Ae(Se.value, B, _);
|
|
9480
9480
|
if (!g)
|
|
9481
9481
|
return;
|
|
9482
|
-
const _e = be("--datagrid-viewport-bg", "#ffffff"), xe = be("--datagrid-column-divider-color", "rgba(148, 163, 184, 0.16)"), rt = be("--datagrid-row-divider-color", "rgba(148, 163, 184, 0.18)"), $e = be("--datagrid-weekend-bg", "rgba(148, 163, 184, 0.08)"), He = be("--datagrid-selection-range-bg", "rgba(37, 99, 235, 0.16)"), Rt = be("--datagrid-accent-strong", "#2563eb"), Xt = be("--datagrid-selection-range-bg", "rgba(37, 99, 235, 0.16)"), gt = "rgba(30, 64, 175, 0.24)", vt = "rgba(30, 64, 175, 0.96)", Ot = "rgba(59, 130, 246, 0.92)", at = "rgba(100, 116, 139, 0.28)", Mt = "rgba(71, 85, 105, 0.44)", pt = "rgba(220, 38, 38, 0.62)", Yt = "rgba(5, 150, 105, 0.56)",
|
|
9483
|
-
stroke:
|
|
9484
|
-
underlay:
|
|
9482
|
+
const _e = be("--datagrid-viewport-bg", "#ffffff"), xe = be("--datagrid-column-divider-color", "rgba(148, 163, 184, 0.16)"), rt = be("--datagrid-row-divider-color", "rgba(148, 163, 184, 0.18)"), $e = be("--datagrid-weekend-bg", "rgba(148, 163, 184, 0.08)"), He = be("--datagrid-selection-range-bg", "rgba(37, 99, 235, 0.16)"), Rt = be("--datagrid-accent-strong", "#2563eb"), Xt = be("--datagrid-selection-range-bg", "rgba(37, 99, 235, 0.16)"), gt = "rgba(30, 64, 175, 0.24)", vt = "rgba(30, 64, 175, 0.96)", Ot = "rgba(59, 130, 246, 0.92)", at = "rgba(100, 116, 139, 0.28)", Mt = "rgba(71, 85, 105, 0.44)", pt = "rgba(220, 38, 38, 0.62)", Yt = "rgba(5, 150, 105, 0.56)", Er = "rgba(255, 255, 255, 0.28)", yr = "#dc2626", $t = "rgba(220, 38, 38, 0.76)", Or = "rgba(15, 23, 42, 0.32)", ea = "rgba(255, 255, 255, 0.72)", ta = "rgba(15, 23, 42, 0.84)", Ar = "rgba(255, 255, 255, 0.94)", wa = "rgba(37, 99, 235, 0.68)", It = "rgba(255, 255, 255, 0.9)", Rr = be("--datagrid-header-divider-color", "rgba(148, 163, 184, 0.3)"), ka = "#ffffff", ra = be("--datagrid-font-family", "ui-sans-serif, system-ui, sans-serif"), aa = be("--datagrid-accent-strong", "#2563eb"), Ca = (A) => A.isDependencySelectedBar ? {
|
|
9483
|
+
stroke: ta,
|
|
9484
|
+
underlay: Ar
|
|
9485
9485
|
} : A.isTableRowSelected ? {
|
|
9486
|
-
stroke:
|
|
9486
|
+
stroke: wa,
|
|
9487
9487
|
underlay: It
|
|
9488
9488
|
} : null;
|
|
9489
9489
|
g.fillStyle = _e, g.fillRect(0, 0, B, _), g.fillStyle = $e;
|
|
@@ -9501,7 +9501,7 @@ const Wu = { class: "datagrid-gantt-stage__timeline" }, Gu = { class: "datagrid-
|
|
|
9501
9501
|
const Ue = Math.round(A.x) + 0.5;
|
|
9502
9502
|
g.beginPath(), g.moveTo(Ue, 0), g.lineTo(Ue, _), g.stroke();
|
|
9503
9503
|
}
|
|
9504
|
-
g.strokeStyle =
|
|
9504
|
+
g.strokeStyle = Rr;
|
|
9505
9505
|
for (const A of Y.primaryLines) {
|
|
9506
9506
|
const Ue = Math.round(A.x) + 0.5;
|
|
9507
9507
|
g.beginPath(), g.moveTo(Ue, 0), g.lineTo(Ue, _), g.stroke();
|
|
@@ -9509,31 +9509,31 @@ const Wu = { class: "datagrid-gantt-stage__timeline" }, Gu = { class: "datagrid-
|
|
|
9509
9509
|
g.strokeStyle = rt;
|
|
9510
9510
|
for (const A of ot.value)
|
|
9511
9511
|
g.beginPath(), g.moveTo(0, A), g.lineTo(B, A), g.stroke();
|
|
9512
|
-
const
|
|
9513
|
-
|
|
9512
|
+
const jr = oi(Ye(Date.now()), i) - we.value;
|
|
9513
|
+
jr >= -1 && jr <= B + 1 && (g.strokeStyle = aa, g.lineWidth = 2, g.beginPath(), g.moveTo(Math.round(jr) + 0.5, 0), g.lineTo(Math.round(jr) + 0.5, _), g.stroke());
|
|
9514
9514
|
for (const A of lt.value) {
|
|
9515
|
-
const Ue =
|
|
9516
|
-
|
|
9515
|
+
const Ue = ya(A) === ae.value;
|
|
9516
|
+
kr(
|
|
9517
9517
|
g,
|
|
9518
9518
|
A.points,
|
|
9519
9519
|
A.dependencyType,
|
|
9520
|
-
Ue ?
|
|
9521
|
-
Ue ?
|
|
9520
|
+
Ue ? ta : Or,
|
|
9521
|
+
Ue ? Ar : ea
|
|
9522
9522
|
);
|
|
9523
9523
|
}
|
|
9524
|
-
g.font = `12px ${
|
|
9524
|
+
g.font = `12px ${ra}`, g.textBaseline = "middle";
|
|
9525
9525
|
for (const A of Ge.value) {
|
|
9526
|
-
const Ue = tt(A), Wt =
|
|
9526
|
+
const Ue = tt(A), Wt = rn(
|
|
9527
9527
|
Ue,
|
|
9528
9528
|
i,
|
|
9529
9529
|
u.gantt?.minBarWidth ?? 6,
|
|
9530
9530
|
A.milestone ? A.height : void 0
|
|
9531
|
-
), Ee = Wt.x - we.value, Le = Wt.width,
|
|
9532
|
-
isTableRowSelected:
|
|
9533
|
-
isDependencySelectedBar:
|
|
9534
|
-
}),
|
|
9535
|
-
if (
|
|
9536
|
-
const
|
|
9531
|
+
), Ee = Wt.x - we.value, Le = Wt.width, Pr = ft.value.has(A.rowId), Sa = ar.value.has(A.rowId), Mr = Ca({
|
|
9532
|
+
isTableRowSelected: Pr,
|
|
9533
|
+
isDependencySelectedBar: Sa
|
|
9534
|
+
}), _a = A.baselineStartMs != null && A.baselineEndMs != null && (A.baselineStartMs !== A.startMs || A.baselineEndMs !== A.endMs), na = A.summary ? gt : de.value?.rowId === A.rowId ? Xt : Rt;
|
|
9535
|
+
if (_a) {
|
|
9536
|
+
const dr = rn(
|
|
9537
9537
|
{
|
|
9538
9538
|
startMs: A.baselineStartMs,
|
|
9539
9539
|
endMs: A.baselineEndMs
|
|
@@ -9541,42 +9541,42 @@ const Wu = { class: "datagrid-gantt-stage__timeline" }, Gu = { class: "datagrid-
|
|
|
9541
9541
|
i,
|
|
9542
9542
|
u.gantt?.minBarWidth ?? 6,
|
|
9543
9543
|
A.milestone ? A.height : void 0
|
|
9544
|
-
),
|
|
9544
|
+
), Ir = dr.x - we.value, ia = Ee, Zt = Ee + Le, qr = Ir, oa = Ir + dr.width;
|
|
9545
9545
|
if (A.milestone)
|
|
9546
9546
|
xt(
|
|
9547
9547
|
g,
|
|
9548
|
-
|
|
9548
|
+
Ir + dr.width / 2,
|
|
9549
9549
|
A.y + A.height / 2,
|
|
9550
|
-
Math.max(Math.max(8,
|
|
9550
|
+
Math.max(Math.max(8, dr.width - 2), A.height - 2)
|
|
9551
9551
|
), g.fillStyle = at, g.fill(), xt(
|
|
9552
9552
|
g,
|
|
9553
|
-
|
|
9553
|
+
Ir + dr.width / 2,
|
|
9554
9554
|
A.y + A.height / 2,
|
|
9555
|
-
Math.max(Math.max(8,
|
|
9555
|
+
Math.max(Math.max(8, dr.width - 2), A.height - 2)
|
|
9556
9556
|
), g.strokeStyle = Mt, g.lineWidth = 1, g.stroke();
|
|
9557
9557
|
else {
|
|
9558
|
-
const
|
|
9559
|
-
yt(g,
|
|
9558
|
+
const Ur = Math.max(4, Math.min(6, Math.round(A.height * 0.34))), la = A.y + A.height - Ur;
|
|
9559
|
+
yt(g, Ir, la, dr.width, Ur, 3), g.fillStyle = at, g.fill(), yt(g, Ir, la, dr.width, Ur, 3), g.strokeStyle = Mt, g.lineWidth = 1, g.stroke();
|
|
9560
9560
|
}
|
|
9561
|
-
|
|
9561
|
+
tr(
|
|
9562
9562
|
g,
|
|
9563
|
-
|
|
9564
|
-
|
|
9563
|
+
qr,
|
|
9564
|
+
ia,
|
|
9565
9565
|
A.y + 2.5,
|
|
9566
|
-
|
|
9567
|
-
),
|
|
9566
|
+
ia >= qr ? pt : Yt
|
|
9567
|
+
), tr(
|
|
9568
9568
|
g,
|
|
9569
|
-
|
|
9569
|
+
oa,
|
|
9570
9570
|
Zt,
|
|
9571
9571
|
A.y + A.height - 2.5,
|
|
9572
|
-
Zt >=
|
|
9572
|
+
Zt >= oa ? pt : Yt
|
|
9573
9573
|
);
|
|
9574
9574
|
}
|
|
9575
9575
|
if (A.milestone) {
|
|
9576
|
-
xt(g, Ee + Le / 2, A.y + A.height / 2, Math.max(Le, A.height)), g.fillStyle =
|
|
9576
|
+
xt(g, Ee + Le / 2, A.y + A.height / 2, Math.max(Le, A.height)), g.fillStyle = na, g.fill(), Mr && (xt(g, Ee + Le / 2, A.y + A.height / 2, Math.max(Le, A.height)), g.strokeStyle = Mr.underlay, g.lineWidth = 4, g.stroke(), xt(g, Ee + Le / 2, A.y + A.height / 2, Math.max(Le, A.height)), g.strokeStyle = Mr.stroke, g.lineWidth = 2, g.stroke()), A.critical && (xt(g, Ee + Le / 2, A.y + A.height / 2, Math.max(Le, A.height)), g.strokeStyle = A.criticalSource === "computed" ? $t : yr, g.lineWidth = 2, g.stroke());
|
|
9577
9577
|
continue;
|
|
9578
9578
|
}
|
|
9579
|
-
yt(g, Ee, A.y, Le, A.height, A.summary ? 4 : 6), g.fillStyle =
|
|
9579
|
+
yt(g, Ee, A.y, Le, A.height, A.summary ? 4 : 6), g.fillStyle = na, g.fill(), A.summary && (g.fillStyle = Ot, g.fillRect(Ee + 4, A.y + 3, Math.max(8, Le - 8), 2), g.strokeStyle = vt, g.lineWidth = 2.5, g.beginPath(), g.moveTo(Ee, A.y + A.height), g.lineTo(Ee + 6, A.y), g.lineTo(Ee + Le - 6, A.y), g.lineTo(Ee + Le, A.y + A.height), g.stroke()), !A.summary && A.progress > 0 && (yt(g, Ee, A.y, Math.max(0, Le * A.progress), A.height, 6), g.fillStyle = Er, g.fill()), Mr && (yt(g, Ee, A.y, Le, A.height, 6), g.strokeStyle = Mr.underlay, g.lineWidth = 4, g.stroke(), yt(g, Ee, A.y, Le, A.height, 6), g.strokeStyle = Mr.stroke, g.lineWidth = 2, g.stroke()), A.critical && (yt(g, Ee, A.y, Le, A.height, 6), g.strokeStyle = A.criticalSource === "computed" ? $t : yr, g.lineWidth = 2, g.stroke()), g.fillStyle = ka, wt(g, A.label, Ee, A.y, Le, A.height);
|
|
9580
9580
|
}
|
|
9581
9581
|
}
|
|
9582
9582
|
function dt(i) {
|
|
@@ -9584,12 +9584,12 @@ const Wu = { class: "datagrid-gantt-stage__timeline" }, Gu = { class: "datagrid-
|
|
|
9584
9584
|
if (!p)
|
|
9585
9585
|
return 0;
|
|
9586
9586
|
const _ = p.getBoundingClientRect();
|
|
9587
|
-
if (i <= _.left +
|
|
9588
|
-
const Y = 1 - Math.max(0, i - _.left) /
|
|
9587
|
+
if (i <= _.left + Ha) {
|
|
9588
|
+
const Y = 1 - Math.max(0, i - _.left) / Ha;
|
|
9589
9589
|
return -Math.max(1, Math.round(bi * Y));
|
|
9590
9590
|
}
|
|
9591
|
-
if (i >= _.right -
|
|
9592
|
-
const Y = 1 - Math.max(0, _.right - i) /
|
|
9591
|
+
if (i >= _.right - Ha) {
|
|
9592
|
+
const Y = 1 - Math.max(0, _.right - i) / Ha;
|
|
9593
9593
|
return Math.max(1, Math.round(bi * Y));
|
|
9594
9594
|
}
|
|
9595
9595
|
return 0;
|
|
@@ -9625,11 +9625,11 @@ const Wu = { class: "datagrid-gantt-stage__timeline" }, Gu = { class: "datagrid-
|
|
|
9625
9625
|
}
|
|
9626
9626
|
function ke(i) {
|
|
9627
9627
|
const p = i.target;
|
|
9628
|
-
p && (
|
|
9628
|
+
p && (vr(p), Ke(p.scrollLeft, "body"));
|
|
9629
9629
|
}
|
|
9630
9630
|
function Ce(i) {
|
|
9631
9631
|
const p = i.target;
|
|
9632
|
-
p && (
|
|
9632
|
+
p && (vr(p), Ke(p.scrollLeft, "header"));
|
|
9633
9633
|
}
|
|
9634
9634
|
function Pe(i) {
|
|
9635
9635
|
const p = h.value, _ = O.value;
|
|
@@ -9645,21 +9645,21 @@ const Wu = { class: "datagrid-gantt-stage__timeline" }, Gu = { class: "datagrid-
|
|
|
9645
9645
|
p.scrollTop = g + Y, p.scrollTop !== g && (Ze(), ye("body"));
|
|
9646
9646
|
}
|
|
9647
9647
|
}
|
|
9648
|
-
function
|
|
9648
|
+
function Sr(i) {
|
|
9649
9649
|
i != null && ce.value && ce.value.pointerId !== i || (ce.value = null, Oe(!1), typeof window < "u" && (window.removeEventListener("pointermove", St), window.removeEventListener("pointerup", c)));
|
|
9650
9650
|
}
|
|
9651
9651
|
function St(i) {
|
|
9652
9652
|
const p = ce.value;
|
|
9653
|
-
p && (
|
|
9653
|
+
p && (ir.value = zu({
|
|
9654
9654
|
originWidth: p.originWidth,
|
|
9655
9655
|
deltaX: i.clientX - p.originClientX,
|
|
9656
9656
|
stageWidth: We.value,
|
|
9657
|
-
minTableWidth:
|
|
9658
|
-
minTimelineWidth:
|
|
9657
|
+
minTableWidth: mn,
|
|
9658
|
+
minTimelineWidth: fn
|
|
9659
9659
|
}), Kt(), ye());
|
|
9660
9660
|
}
|
|
9661
9661
|
function c(i) {
|
|
9662
|
-
|
|
9662
|
+
Sr(i.pointerId);
|
|
9663
9663
|
}
|
|
9664
9664
|
function s(i) {
|
|
9665
9665
|
i.button === 0 && (i.preventDefault(), kt(), ce.value = {
|
|
@@ -9696,7 +9696,7 @@ const Wu = { class: "datagrid-gantt-stage__timeline" }, Gu = { class: "datagrid-
|
|
|
9696
9696
|
return;
|
|
9697
9697
|
}
|
|
9698
9698
|
const B = mi(lt.value, p);
|
|
9699
|
-
J.value = B ?
|
|
9699
|
+
J.value = B ? ya(B) : null, Ie.value = li(
|
|
9700
9700
|
Ge.value,
|
|
9701
9701
|
_,
|
|
9702
9702
|
u.gantt.resizeHandleWidth
|
|
@@ -9758,7 +9758,7 @@ const Wu = { class: "datagrid-gantt-stage__timeline" }, Gu = { class: "datagrid-
|
|
|
9758
9758
|
if (B && (Ve(B.bar.rowId), ae.value = null, J.value = null), !B) {
|
|
9759
9759
|
const Y = mi(lt.value, p);
|
|
9760
9760
|
if (Y) {
|
|
9761
|
-
i.preventDefault(), ae.value =
|
|
9761
|
+
i.preventDefault(), ae.value = ya(Y), ye("body");
|
|
9762
9762
|
return;
|
|
9763
9763
|
}
|
|
9764
9764
|
Ct();
|
|
@@ -9788,7 +9788,7 @@ const Wu = { class: "datagrid-gantt-stage__timeline" }, Gu = { class: "datagrid-
|
|
|
9788
9788
|
function _t() {
|
|
9789
9789
|
Z?.(), Z = null, h.value = null;
|
|
9790
9790
|
}
|
|
9791
|
-
function
|
|
9791
|
+
function lr() {
|
|
9792
9792
|
if (re?.disconnect(), re = null, typeof window > "u" || typeof window.ResizeObserver != "function")
|
|
9793
9793
|
return;
|
|
9794
9794
|
re = new window.ResizeObserver(() => {
|
|
@@ -9797,10 +9797,10 @@ const Wu = { class: "datagrid-gantt-stage__timeline" }, Gu = { class: "datagrid-
|
|
|
9797
9797
|
const i = D.value?.getHeaderElement() ?? null;
|
|
9798
9798
|
i && re.observe(i), h.value && re.observe(h.value), v.value && re.observe(v.value), O.value && re.observe(O.value);
|
|
9799
9799
|
}
|
|
9800
|
-
function
|
|
9800
|
+
function _r() {
|
|
9801
9801
|
const i = D.value?.getBodyViewportElement() ?? null;
|
|
9802
9802
|
if (i === h.value) {
|
|
9803
|
-
kt(), it(), Ze(),
|
|
9803
|
+
kt(), it(), Ze(), lr(), st(), ye();
|
|
9804
9804
|
return;
|
|
9805
9805
|
}
|
|
9806
9806
|
if (_t(), h.value = i, !i) {
|
|
@@ -9812,15 +9812,15 @@ const Wu = { class: "datagrid-gantt-stage__timeline" }, Gu = { class: "datagrid-
|
|
|
9812
9812
|
};
|
|
9813
9813
|
i.addEventListener("scroll", p, { passive: !0 }), kt(), it(), Ze(), Z = () => {
|
|
9814
9814
|
i.removeEventListener("scroll", p);
|
|
9815
|
-
},
|
|
9815
|
+
}, lr(), st(), ye();
|
|
9816
9816
|
}
|
|
9817
|
-
function
|
|
9817
|
+
function Hr() {
|
|
9818
9818
|
kt(), it(), Ze(), Kt(), st(), ye();
|
|
9819
9819
|
}
|
|
9820
9820
|
return je(
|
|
9821
9821
|
() => u.gantt?.paneWidth,
|
|
9822
9822
|
(i) => {
|
|
9823
|
-
|
|
9823
|
+
ir.value = i ?? 520;
|
|
9824
9824
|
},
|
|
9825
9825
|
{ immediate: !0 }
|
|
9826
9826
|
), je(
|
|
@@ -9829,13 +9829,13 @@ const Wu = { class: "datagrid-gantt-stage__timeline" }, Gu = { class: "datagrid-
|
|
|
9829
9829
|
V.value.displayRows.length,
|
|
9830
9830
|
H.value.topSpacerHeight,
|
|
9831
9831
|
H.value.viewportRowStart,
|
|
9832
|
-
|
|
9832
|
+
mr.value,
|
|
9833
9833
|
u.rowVersion,
|
|
9834
9834
|
Lt.value
|
|
9835
9835
|
],
|
|
9836
9836
|
() => {
|
|
9837
|
-
|
|
9838
|
-
|
|
9837
|
+
Jr(() => {
|
|
9838
|
+
_r(), Ze(), Kt(), st(), Xe(), ye();
|
|
9839
9839
|
});
|
|
9840
9840
|
}
|
|
9841
9841
|
), je(
|
|
@@ -9847,7 +9847,7 @@ const Wu = { class: "datagrid-gantt-stage__timeline" }, Gu = { class: "datagrid-
|
|
|
9847
9847
|
() => [
|
|
9848
9848
|
ne.value,
|
|
9849
9849
|
pe.value,
|
|
9850
|
-
|
|
9850
|
+
nr.value,
|
|
9851
9851
|
he.value,
|
|
9852
9852
|
ve.value
|
|
9853
9853
|
],
|
|
@@ -9863,11 +9863,11 @@ const Wu = { class: "datagrid-gantt-stage__timeline" }, Gu = { class: "datagrid-
|
|
|
9863
9863
|
ye();
|
|
9864
9864
|
}
|
|
9865
9865
|
), je(
|
|
9866
|
-
() => lt.value.map((i) =>
|
|
9866
|
+
() => lt.value.map((i) => ya(i)).join("|"),
|
|
9867
9867
|
(i) => {
|
|
9868
9868
|
ae.value && !i.split("|").includes(ae.value) && (ae.value = null, ye("body"));
|
|
9869
9869
|
}
|
|
9870
|
-
),
|
|
9870
|
+
), hn(() => {
|
|
9871
9871
|
v.value && (U = Li({
|
|
9872
9872
|
root: v.value,
|
|
9873
9873
|
resolveScrollContainers: () => [
|
|
@@ -9875,11 +9875,11 @@ const Wu = { class: "datagrid-gantt-stage__timeline" }, Gu = { class: "datagrid-
|
|
|
9875
9875
|
O.value,
|
|
9876
9876
|
S.value
|
|
9877
9877
|
]
|
|
9878
|
-
})),
|
|
9879
|
-
kt(),
|
|
9880
|
-
}), typeof window < "u" && (window.addEventListener("resize",
|
|
9878
|
+
})), Jr(() => {
|
|
9879
|
+
kt(), _r(), Kt(), st(), Xe(), ye();
|
|
9880
|
+
}), typeof window < "u" && (window.addEventListener("resize", Hr), window.addEventListener("keydown", Ut));
|
|
9881
9881
|
}), wi(() => {
|
|
9882
|
-
Pt(), U?.(), U = null, _t(), re?.disconnect(), re = null, typeof window < "u" && (window.removeEventListener("resize",
|
|
9882
|
+
Pt(), U?.(), U = null, _t(), re?.disconnect(), re = null, typeof window < "u" && (window.removeEventListener("resize", Hr), window.removeEventListener("keydown", Ut), window.removeEventListener("pointermove", L), window.removeEventListener("pointerup", se), window.removeEventListener("pointermove", St), window.removeEventListener("pointerup", c)), Oe(!1);
|
|
9883
9883
|
}), (i, p) => (m(), w("section", {
|
|
9884
9884
|
ref_key: "stageRootRef",
|
|
9885
9885
|
ref: v,
|
|
@@ -9911,13 +9911,13 @@ const Wu = { class: "datagrid-gantt-stage__timeline" }, Gu = { class: "datagrid-
|
|
|
9911
9911
|
ref_key: "timelineHeaderViewportRef",
|
|
9912
9912
|
ref: S,
|
|
9913
9913
|
class: "datagrid-gantt-timeline__viewport datagrid-gantt-timeline__viewport--header",
|
|
9914
|
-
style: X(
|
|
9914
|
+
style: X(fr.value),
|
|
9915
9915
|
onScroll: Ce,
|
|
9916
9916
|
onWheel: Pe
|
|
9917
9917
|
}, [
|
|
9918
9918
|
F("div", {
|
|
9919
9919
|
class: "datagrid-gantt-timeline__track-spacer",
|
|
9920
|
-
style: X(
|
|
9920
|
+
style: X(Cr.value)
|
|
9921
9921
|
}, null, 4)
|
|
9922
9922
|
], 36),
|
|
9923
9923
|
F("canvas", {
|
|
@@ -9938,14 +9938,14 @@ const Wu = { class: "datagrid-gantt-stage__timeline" }, Gu = { class: "datagrid-
|
|
|
9938
9938
|
}, [
|
|
9939
9939
|
F("div", {
|
|
9940
9940
|
class: "datagrid-gantt-timeline__track-spacer",
|
|
9941
|
-
style: X(
|
|
9941
|
+
style: X(or.value)
|
|
9942
9942
|
}, null, 4)
|
|
9943
9943
|
], 544)) : (m(), w("div", Ku, " Configure `gantt.startKey` and `gantt.endKey` to enable the timeline renderer. ")),
|
|
9944
9944
|
F("canvas", {
|
|
9945
9945
|
ref_key: "bodyCanvasRef",
|
|
9946
9946
|
ref: Se,
|
|
9947
9947
|
class: "datagrid-gantt-timeline__canvas datagrid-gantt-timeline__canvas--body",
|
|
9948
|
-
style: X({ cursor:
|
|
9948
|
+
style: X({ cursor: hr.value }),
|
|
9949
9949
|
onPointerdown: ee,
|
|
9950
9950
|
onPointermove: Vt,
|
|
9951
9951
|
onPointerleave: Ht,
|
|
@@ -9955,7 +9955,7 @@ const Wu = { class: "datagrid-gantt-stage__timeline" }, Gu = { class: "datagrid-
|
|
|
9955
9955
|
])
|
|
9956
9956
|
], 512));
|
|
9957
9957
|
}
|
|
9958
|
-
}), oc =
|
|
9958
|
+
}), oc = er({
|
|
9959
9959
|
name: "DataGridGanttStageEntry",
|
|
9960
9960
|
props: {
|
|
9961
9961
|
stageContext: {
|
|
@@ -9997,19 +9997,19 @@ export {
|
|
|
9997
9997
|
Gd as c,
|
|
9998
9998
|
_i as d,
|
|
9999
9999
|
Ii as e,
|
|
10000
|
-
|
|
10000
|
+
$a as f,
|
|
10001
10001
|
Di as g,
|
|
10002
10002
|
ac as h,
|
|
10003
10003
|
Mi as i,
|
|
10004
|
-
|
|
10004
|
+
bn as j,
|
|
10005
10005
|
tc as k,
|
|
10006
|
-
|
|
10007
|
-
|
|
10006
|
+
xn as l,
|
|
10007
|
+
Vr as m,
|
|
10008
10008
|
Ti as n,
|
|
10009
|
-
|
|
10009
|
+
yn as o,
|
|
10010
10010
|
jd as p,
|
|
10011
10011
|
ic as q,
|
|
10012
10012
|
nc as r,
|
|
10013
|
-
|
|
10013
|
+
vn as s,
|
|
10014
10014
|
rc as u
|
|
10015
10015
|
};
|