@affino/datagrid-vue-app 0.1.61 → 0.1.63
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/advanced-filter.js +1 -1
- package/dist/aggregations.js +1 -1
- package/dist/chunks/{DataGridAdvancedFilterPopover-C_MjEKFo.js → DataGridAdvancedFilterPopover-BmEL_QzN.js} +1 -1
- package/dist/chunks/{DataGridAdvancedFilterPopover.vue_vue_type_script_setup_true_lang-DxZakgyj.js → DataGridAdvancedFilterPopover.vue_vue_type_script_setup_true_lang-BkrpyjJb.js} +1 -1
- package/dist/chunks/{DataGridAggregationsPopover-C8kdwv0O.js → DataGridAggregationsPopover-D-HP10PE.js} +1 -1
- package/dist/chunks/{DataGridAggregationsPopover.vue_vue_type_script_setup_true_lang-t6v8MqIT.js → DataGridAggregationsPopover.vue_vue_type_script_setup_true_lang-VYIMuuIQ.js} +1 -1
- package/dist/chunks/DataGridFilterableCombobox.vue_vue_type_script_setup_true_lang-Dt_KqrSU.js +405 -0
- package/dist/chunks/DataGridGanttStageEntry-D6OYD0Gx.js +11781 -0
- package/dist/chunks/{useDataGridAppRowModel-B8E788Tu.js → useDataGridAppRowModel-9ZIepsHi.js} +271 -268
- package/dist/gantt.js +1 -1
- package/dist/gestures/dataGridTouchPanGuard.d.ts +1 -0
- package/dist/index.js +3 -3
- package/dist/internal.js +3 -3
- package/dist/stage/DataGridTableStageHeader.vue.d.ts +11 -1
- package/dist/stage/dataGridMouseEventGuards.d.ts +9 -0
- package/dist/stage/dataGridTableStageBody.types.d.ts +14 -1
- package/dist/stage/useDataGridStageCellRendering.d.ts +3 -1
- package/dist/stage/useDataGridStageFocusRuntime.d.ts +2 -0
- package/dist/stage/useDataGridStagePointerInteractions.d.ts +6 -0
- package/dist/stage/useDataGridStageRenderApis.d.ts +14 -1
- package/dist/stage/useDataGridStageRenderApis.grouped.d.ts +15 -2
- package/dist/stage/useDataGridStageViewportRuntime.d.ts +8 -2
- package/package.json +3 -3
- package/dist/chunks/DataGridFilterableCombobox.vue_vue_type_script_setup_true_lang-xry4J3Lx.js +0 -389
- package/dist/chunks/DataGridGanttStageEntry-B-Igcclh.js +0 -11013
package/dist/chunks/{useDataGridAppRowModel-B8E788Tu.js → useDataGridAppRowModel-9ZIepsHi.js}
RENAMED
|
@@ -3,11 +3,11 @@ import { cloneDataGridFilterSnapshot as At, resolveDataGridCellClickAction as rr
|
|
|
3
3
|
import { useDataGridAppIntentHistory as wr, createDataGridAppRowHeightMetrics as vr, useDataGridAppViewport as gr, useDataGridAppRowSizing as hr, useDataGridAppCellSelection as br, useDataGridAppRowPresentation as Rr, useDataGridAppClipboard as yr, useDataGridAppActiveCellViewport as Cr, useDataGridAppInlineEditing as pr, useDataGridAppInteractionController as Sr, useDataGridAppHeaderResize as Ir, useDataGridAppRuntimeSync as Mr, useDataGridAppViewportLifecycle as xr, useDataGridAppColumnLayoutPanel as Fr } from "@affino/datagrid-vue/app";
|
|
4
4
|
import { useDataGridViewportContextMenuRouter as Ar, useDataGridContextMenuAnchor as Dr, useDataGridContextMenuActionRouter as kr } from "@affino/datagrid-vue/advanced";
|
|
5
5
|
import { D as Or } from "./DataGridQuickFilterInput-9KGwF8HM.js";
|
|
6
|
-
import { c as _r, q as Er, D as yo, a as Co, s as Tr } from "./DataGridGanttStageEntry-
|
|
7
|
-
import { usePopoverController as
|
|
8
|
-
import { d as
|
|
9
|
-
import { u as
|
|
10
|
-
import { a as
|
|
6
|
+
import { c as _r, q as Er, D as yo, a as Co, s as Tr, t as zr } from "./DataGridGanttStageEntry-D6OYD0Gx.js";
|
|
7
|
+
import { usePopoverController as Pr, useFloatingPopover as Vr } from "@affino/popover-vue";
|
|
8
|
+
import { d as Hr, r as jr } from "./dataGridOverlayThemeVars-vzY74EIz.js";
|
|
9
|
+
import { u as Br } from "./useDataGridDraggableOverlaySurface-BgkSR_nl.js";
|
|
10
|
+
import { a as Gr } from "./dataGridAdvancedFilter-xnME5bRa.js";
|
|
11
11
|
const po = Ln({
|
|
12
12
|
name: "DataGridModuleHost",
|
|
13
13
|
props: {
|
|
@@ -90,7 +90,7 @@ function Bl(e, l) {
|
|
|
90
90
|
moveDown: je(e?.moveDown, Be.moveDown)
|
|
91
91
|
});
|
|
92
92
|
}
|
|
93
|
-
function
|
|
93
|
+
function Ei(e) {
|
|
94
94
|
if (typeof e == "boolean") {
|
|
95
95
|
const r = Bl(void 0);
|
|
96
96
|
return {
|
|
@@ -114,10 +114,10 @@ function _i(e) {
|
|
|
114
114
|
labels: l
|
|
115
115
|
};
|
|
116
116
|
}
|
|
117
|
-
const
|
|
117
|
+
const Lr = ["data-datagrid-overlay-dragging"], Nr = { class: "datagrid-column-layout__header" }, Kr = { class: "datagrid-column-layout__eyebrow" }, $r = { class: "datagrid-column-layout__title" }, Ur = { class: "datagrid-column-layout__list" }, Wr = ["onDragstart", "onDragover", "onDrop"], qr = { class: "datagrid-column-layout__visibility" }, Qr = /* @__PURE__ */ ie("span", {
|
|
118
118
|
class: "datagrid-column-layout__drag-handle",
|
|
119
119
|
"aria-hidden": "true"
|
|
120
|
-
}, "::", -1),
|
|
120
|
+
}, "::", -1), Yr = ["name", "checked", "onChange"], Jr = { class: "datagrid-column-layout__label" }, Xr = { class: "datagrid-column-layout__move-actions" }, Zr = ["disabled", "aria-label", "title", "onClick"], ea = ["disabled", "aria-label", "title", "onClick"], ta = { class: "datagrid-column-layout__footer" }, na = /* @__PURE__ */ Ln({
|
|
121
121
|
__name: "DataGridColumnLayoutPopover",
|
|
122
122
|
props: {
|
|
123
123
|
isOpen: { type: Boolean },
|
|
@@ -128,7 +128,7 @@ const Gr = ["data-datagrid-overlay-dragging"], Lr = { class: "datagrid-column-la
|
|
|
128
128
|
},
|
|
129
129
|
emits: ["open", "toggle-visibility", "move-up", "move-down", "move-to-position", "apply", "cancel"],
|
|
130
130
|
setup(e, { emit: l }) {
|
|
131
|
-
const r = e, o = l, s = Yo(
|
|
131
|
+
const r = e, o = l, s = Yo(Hr, Q(null)), d = Q({}), v = Pr(
|
|
132
132
|
{
|
|
133
133
|
id: "column-layout",
|
|
134
134
|
role: "dialog",
|
|
@@ -143,7 +143,7 @@ const Gr = ["data-datagrid-overlay-dragging"], Lr = { class: "datagrid-column-la
|
|
|
143
143
|
r.isOpen && o("cancel");
|
|
144
144
|
}
|
|
145
145
|
}
|
|
146
|
-
), b =
|
|
146
|
+
), b = Vr(v, {
|
|
147
147
|
placement: "bottom",
|
|
148
148
|
align: "start",
|
|
149
149
|
gutter: 10,
|
|
@@ -151,7 +151,7 @@ const Gr = ["data-datagrid-overlay-dragging"], Lr = { class: "datagrid-column-la
|
|
|
151
151
|
zIndex: 180,
|
|
152
152
|
lockScroll: !1,
|
|
153
153
|
returnFocus: !0
|
|
154
|
-
}), R =
|
|
154
|
+
}), R = Br({
|
|
155
155
|
surfaceId: "column-layout",
|
|
156
156
|
rootElementRef: s,
|
|
157
157
|
floating: b
|
|
@@ -175,40 +175,40 @@ const Gr = ["data-datagrid-overlay-dragging"], Lr = { class: "datagrid-column-la
|
|
|
175
175
|
}
|
|
176
176
|
);
|
|
177
177
|
function J() {
|
|
178
|
-
d.value =
|
|
178
|
+
d.value = jr(s.value);
|
|
179
179
|
}
|
|
180
|
-
function ze(H,
|
|
181
|
-
o("toggle-visibility", { key: H, visible:
|
|
180
|
+
function ze(H, K) {
|
|
181
|
+
o("toggle-visibility", { key: H, visible: K });
|
|
182
182
|
}
|
|
183
183
|
function M(H) {
|
|
184
184
|
const T = (H.currentTarget instanceof HTMLElement ? H.currentTarget : null)?.getBoundingClientRect();
|
|
185
185
|
return !T || T.height <= 0 ? "after" : H.clientY < T.top + T.height / 2 ? "before" : "after";
|
|
186
186
|
}
|
|
187
|
-
function z(H,
|
|
188
|
-
k.value =
|
|
187
|
+
function z(H, K) {
|
|
188
|
+
k.value = K, E.value = null, P.value = null, H.dataTransfer && (H.dataTransfer.effectAllowed = "move", H.dataTransfer.setData("text/plain", K));
|
|
189
189
|
}
|
|
190
|
-
function we(H,
|
|
191
|
-
if (!k.value || k.value ===
|
|
190
|
+
function we(H, K) {
|
|
191
|
+
if (!k.value || k.value === K) {
|
|
192
192
|
E.value = null, P.value = null;
|
|
193
193
|
return;
|
|
194
194
|
}
|
|
195
|
-
H.preventDefault(), H.dataTransfer && (H.dataTransfer.dropEffect = "move"), E.value =
|
|
195
|
+
H.preventDefault(), H.dataTransfer && (H.dataTransfer.dropEffect = "move"), E.value = K, P.value = M(H);
|
|
196
196
|
}
|
|
197
|
-
function se(H,
|
|
198
|
-
if (!k.value || k.value ===
|
|
197
|
+
function se(H, K) {
|
|
198
|
+
if (!k.value || k.value === K) {
|
|
199
199
|
ue();
|
|
200
200
|
return;
|
|
201
201
|
}
|
|
202
202
|
H.preventDefault(), o("move-to-position", {
|
|
203
203
|
key: k.value,
|
|
204
|
-
targetKey:
|
|
204
|
+
targetKey: K,
|
|
205
205
|
placement: M(H)
|
|
206
206
|
}), ue();
|
|
207
207
|
}
|
|
208
208
|
function ue() {
|
|
209
209
|
k.value = null, E.value = null, P.value = null;
|
|
210
210
|
}
|
|
211
|
-
return (H,
|
|
211
|
+
return (H, K) => (Qt(), Hn(go, null, [
|
|
212
212
|
ie("button", ho({
|
|
213
213
|
ref: f(b).triggerRef,
|
|
214
214
|
type: "button",
|
|
@@ -226,23 +226,23 @@ const Gr = ["data-datagrid-overlay-dragging"], Lr = { class: "datagrid-column-la
|
|
|
226
226
|
"data-datagrid-overlay-dragging": f(R).dragging.value ? "true" : "false",
|
|
227
227
|
style: [f(R).surfaceStyle.value, d.value]
|
|
228
228
|
}, F.value), [
|
|
229
|
-
ie("header",
|
|
229
|
+
ie("header", Nr, [
|
|
230
230
|
ie("div", {
|
|
231
231
|
class: "datagrid-overlay-drag-handle",
|
|
232
232
|
"data-datagrid-overlay-drag-handle": "true",
|
|
233
|
-
onPointerdown:
|
|
233
|
+
onPointerdown: K[0] || (K[0] = //@ts-ignore
|
|
234
234
|
(...T) => f(R).handlePointerDown && f(R).handlePointerDown(...T))
|
|
235
235
|
}, [
|
|
236
|
-
ie("div",
|
|
237
|
-
ie("h3",
|
|
236
|
+
ie("div", Kr, ct(C.value.eyebrow), 1),
|
|
237
|
+
ie("h3", $r, ct(C.value.title), 1)
|
|
238
238
|
], 32),
|
|
239
239
|
ie("button", {
|
|
240
240
|
type: "button",
|
|
241
241
|
class: "datagrid-column-layout__ghost",
|
|
242
|
-
onClick:
|
|
242
|
+
onClick: K[1] || (K[1] = (T) => o("cancel"))
|
|
243
243
|
}, ct(C.value.close), 1)
|
|
244
244
|
]),
|
|
245
|
-
ie("div",
|
|
245
|
+
ie("div", Ur, [
|
|
246
246
|
(Qt(!0), Hn(go, null, Zo(H.items, (T) => (Qt(), Hn("div", {
|
|
247
247
|
key: T.key,
|
|
248
248
|
class: er(["datagrid-column-layout__row", {
|
|
@@ -256,17 +256,17 @@ const Gr = ["data-datagrid-overlay-dragging"], Lr = { class: "datagrid-column-la
|
|
|
256
256
|
onDrop: (ce) => se(ce, T.key),
|
|
257
257
|
onDragend: ue
|
|
258
258
|
}, [
|
|
259
|
-
ie("label",
|
|
260
|
-
|
|
259
|
+
ie("label", qr, [
|
|
260
|
+
Qr,
|
|
261
261
|
ie("input", {
|
|
262
262
|
name: `datagrid-column-layout-visible-${T.key}`,
|
|
263
263
|
type: "checkbox",
|
|
264
264
|
checked: T.visible,
|
|
265
265
|
onChange: (ce) => ze(T.key, ce.target.checked)
|
|
266
|
-
}, null, 40,
|
|
267
|
-
ie("span",
|
|
266
|
+
}, null, 40, Yr),
|
|
267
|
+
ie("span", Jr, ct(T.label), 1)
|
|
268
268
|
]),
|
|
269
|
-
ie("div",
|
|
269
|
+
ie("div", Xr, [
|
|
270
270
|
ie("button", {
|
|
271
271
|
type: "button",
|
|
272
272
|
class: "datagrid-column-layout__icon-button",
|
|
@@ -274,7 +274,7 @@ const Gr = ["data-datagrid-overlay-dragging"], Lr = { class: "datagrid-column-la
|
|
|
274
274
|
"aria-label": `${C.value.moveUp}: ${T.label}`,
|
|
275
275
|
title: `${C.value.moveUp}: ${T.label}`,
|
|
276
276
|
onClick: (ce) => o("move-up", T.key)
|
|
277
|
-
}, " ↑ ", 8,
|
|
277
|
+
}, " ↑ ", 8, Zr),
|
|
278
278
|
ie("button", {
|
|
279
279
|
type: "button",
|
|
280
280
|
class: "datagrid-column-layout__icon-button",
|
|
@@ -282,28 +282,28 @@ const Gr = ["data-datagrid-overlay-dragging"], Lr = { class: "datagrid-column-la
|
|
|
282
282
|
"aria-label": `${C.value.moveDown}: ${T.label}`,
|
|
283
283
|
title: `${C.value.moveDown}: ${T.label}`,
|
|
284
284
|
onClick: (ce) => o("move-down", T.key)
|
|
285
|
-
}, " ↓ ", 8,
|
|
285
|
+
}, " ↓ ", 8, ea)
|
|
286
286
|
])
|
|
287
|
-
], 42,
|
|
287
|
+
], 42, Wr))), 128))
|
|
288
288
|
]),
|
|
289
|
-
ie("footer",
|
|
289
|
+
ie("footer", ta, [
|
|
290
290
|
ie("button", {
|
|
291
291
|
type: "button",
|
|
292
292
|
class: "datagrid-column-layout__secondary",
|
|
293
|
-
onClick:
|
|
293
|
+
onClick: K[2] || (K[2] = (T) => o("cancel"))
|
|
294
294
|
}, ct(C.value.cancel), 1),
|
|
295
295
|
ie("button", {
|
|
296
296
|
type: "button",
|
|
297
297
|
class: "datagrid-column-layout__primary",
|
|
298
|
-
onClick:
|
|
298
|
+
onClick: K[3] || (K[3] = (T) => o("apply"))
|
|
299
299
|
}, ct(C.value.apply), 1)
|
|
300
300
|
])
|
|
301
|
-
], 16,
|
|
301
|
+
], 16, Lr)) : tr("", !0)
|
|
302
302
|
], 8, ["to"]))
|
|
303
303
|
], 64));
|
|
304
304
|
}
|
|
305
305
|
});
|
|
306
|
-
function
|
|
306
|
+
function la(e) {
|
|
307
307
|
const l = /* @__PURE__ */ new Map();
|
|
308
308
|
for (const r of e)
|
|
309
309
|
typeof r?.key != "string" || !r.filter || l.set(r.key, r.filter);
|
|
@@ -316,7 +316,7 @@ function Dt(e, l) {
|
|
|
316
316
|
function lo(e, l) {
|
|
317
317
|
return e.get(l)?.valueSet !== !1;
|
|
318
318
|
}
|
|
319
|
-
function
|
|
319
|
+
function oa(e, l, r) {
|
|
320
320
|
return r.kind === "valueSet" ? lo(e, l) ? r : null : {
|
|
321
321
|
...r,
|
|
322
322
|
value: Dt(e, {
|
|
@@ -335,7 +335,7 @@ function la(e, l, r) {
|
|
|
335
335
|
})
|
|
336
336
|
};
|
|
337
337
|
}
|
|
338
|
-
function
|
|
338
|
+
function ra(e, l, r) {
|
|
339
339
|
return r.type === "set" && !lo(e, l) ? null : {
|
|
340
340
|
...r,
|
|
341
341
|
clauses: (r.clauses ?? []).map((o) => ({
|
|
@@ -391,17 +391,17 @@ function ql(e, l) {
|
|
|
391
391
|
const r = At(e ?? null);
|
|
392
392
|
if (!r || !l || l.length === 0)
|
|
393
393
|
return r;
|
|
394
|
-
const o =
|
|
394
|
+
const o = la(l);
|
|
395
395
|
if (o.size === 0)
|
|
396
396
|
return r;
|
|
397
397
|
const s = {};
|
|
398
398
|
for (const [v, b] of Object.entries(r.columnFilters ?? {})) {
|
|
399
|
-
const R =
|
|
399
|
+
const R = oa(o, v, b);
|
|
400
400
|
R && (s[v] = R);
|
|
401
401
|
}
|
|
402
402
|
const d = {};
|
|
403
403
|
for (const [v, b] of Object.entries(r.advancedFilters ?? {})) {
|
|
404
|
-
const R =
|
|
404
|
+
const R = ra(o, v, b);
|
|
405
405
|
R && (d[v] = R);
|
|
406
406
|
}
|
|
407
407
|
return {
|
|
@@ -411,7 +411,7 @@ function ql(e, l) {
|
|
|
411
411
|
advancedExpression: Wl(o, r.advancedExpression)
|
|
412
412
|
};
|
|
413
413
|
}
|
|
414
|
-
function
|
|
414
|
+
function Ti(e, l) {
|
|
415
415
|
const r = ql(e.rows?.snapshot?.filterModel ?? null, l);
|
|
416
416
|
return {
|
|
417
417
|
...e,
|
|
@@ -424,7 +424,7 @@ function Ei(e, l) {
|
|
|
424
424
|
}
|
|
425
425
|
};
|
|
426
426
|
}
|
|
427
|
-
const Ge = ["sort", "group", "pin", "filter"],
|
|
427
|
+
const Ge = ["sort", "group", "pin", "filter"], aa = ["button", "contextmenu", "button+contextmenu"], jo = [
|
|
428
428
|
"sortAsc",
|
|
429
429
|
"sortDesc",
|
|
430
430
|
"clearSort",
|
|
@@ -440,7 +440,7 @@ const Ge = ["sort", "group", "pin", "filter"], ra = ["button", "contextmenu", "b
|
|
|
440
440
|
"applyFilter",
|
|
441
441
|
"cancelFilter"
|
|
442
442
|
];
|
|
443
|
-
function
|
|
443
|
+
function zi(e) {
|
|
444
444
|
return e;
|
|
445
445
|
}
|
|
446
446
|
const Gl = 120, Ql = "button+contextmenu";
|
|
@@ -487,10 +487,10 @@ function Go(e) {
|
|
|
487
487
|
const l = Object.entries(e).filter(([r, o]) => Ge.includes(r) && typeof o == "string").map(([r, o]) => [r, o.trim()]).filter(([, r]) => r.length > 0);
|
|
488
488
|
return Object.freeze(Object.fromEntries(l));
|
|
489
489
|
}
|
|
490
|
-
function aa(e) {
|
|
491
|
-
return ra.includes(e) ? e : Ql;
|
|
492
|
-
}
|
|
493
490
|
function ia(e) {
|
|
491
|
+
return aa.includes(e) ? e : Ql;
|
|
492
|
+
}
|
|
493
|
+
function sa(e) {
|
|
494
494
|
if (e === "start" || e === "end")
|
|
495
495
|
return !0;
|
|
496
496
|
if (!e.includes(":"))
|
|
@@ -507,7 +507,7 @@ function ro(e) {
|
|
|
507
507
|
if (s.length === 0 || d.length === 0 || r.has(s))
|
|
508
508
|
continue;
|
|
509
509
|
r.add(s);
|
|
510
|
-
const v = typeof o.placement == "string" &&
|
|
510
|
+
const v = typeof o.placement == "string" && sa(o.placement) ? o.placement : void 0, b = {
|
|
511
511
|
key: s,
|
|
512
512
|
label: d,
|
|
513
513
|
...v ? { placement: v } : {},
|
|
@@ -547,7 +547,7 @@ function Lo(e) {
|
|
|
547
547
|
}).filter(([, r]) => Object.keys(r).length > 0);
|
|
548
548
|
return Object.freeze(Object.fromEntries(l));
|
|
549
549
|
}
|
|
550
|
-
function
|
|
550
|
+
function ua(e) {
|
|
551
551
|
if (!e)
|
|
552
552
|
return {};
|
|
553
553
|
const l = Object.entries(e).filter(([r]) => r.trim().length > 0).map(([r, o]) => {
|
|
@@ -567,7 +567,7 @@ function sa(e) {
|
|
|
567
567
|
});
|
|
568
568
|
return Object.fromEntries(l);
|
|
569
569
|
}
|
|
570
|
-
function
|
|
570
|
+
function Pi(e) {
|
|
571
571
|
return typeof e == "boolean" ? {
|
|
572
572
|
enabled: e,
|
|
573
573
|
trigger: Ql,
|
|
@@ -581,7 +581,7 @@ function zi(e) {
|
|
|
581
581
|
columns: {}
|
|
582
582
|
} : e ? {
|
|
583
583
|
enabled: e.enabled ?? !0,
|
|
584
|
-
trigger:
|
|
584
|
+
trigger: ia(e.trigger),
|
|
585
585
|
maxFilterValues: Number.isFinite(e.maxFilterValues) ? Math.max(20, Math.trunc(e.maxFilterValues)) : Gl,
|
|
586
586
|
items: oo(e.items),
|
|
587
587
|
disabled: Yl(e.disabled),
|
|
@@ -589,7 +589,7 @@ function zi(e) {
|
|
|
589
589
|
labels: Bo(e.labels),
|
|
590
590
|
actions: Lo(e.actions),
|
|
591
591
|
customItems: ro(e.customItems),
|
|
592
|
-
columns:
|
|
592
|
+
columns: ua(e.columns)
|
|
593
593
|
} : {
|
|
594
594
|
enabled: !1,
|
|
595
595
|
trigger: Ql,
|
|
@@ -607,23 +607,23 @@ function No(e, l) {
|
|
|
607
607
|
const r = e.columns[l], o = r?.items ? oo(r.items) : e.items, s = new Set(r?.hide ?? []), d = o.filter((v) => !s.has(v));
|
|
608
608
|
return d.length > 0 ? d : [];
|
|
609
609
|
}
|
|
610
|
-
function
|
|
610
|
+
function ca(e, l) {
|
|
611
611
|
const r = No(e, l), o = new Set(e.columns[l]?.disabled ?? []), s = new Set(e.disabled);
|
|
612
612
|
return r.filter((d) => s.has(d) || o.has(d));
|
|
613
613
|
}
|
|
614
|
-
function
|
|
614
|
+
function da(e, l) {
|
|
615
615
|
return Object.freeze({
|
|
616
616
|
...e.labels,
|
|
617
617
|
...e.columns[l]?.labels ?? {}
|
|
618
618
|
});
|
|
619
619
|
}
|
|
620
|
-
function
|
|
620
|
+
function ma(e, l) {
|
|
621
621
|
return Object.freeze({
|
|
622
622
|
...e.disabledReasons,
|
|
623
623
|
...e.columns[l]?.disabledReasons ?? {}
|
|
624
624
|
});
|
|
625
625
|
}
|
|
626
|
-
function
|
|
626
|
+
function fa(e, l) {
|
|
627
627
|
const r = e.columns[l]?.actions ?? {}, o = jo.map((s) => {
|
|
628
628
|
const d = {
|
|
629
629
|
...e.actions[s] ?? {},
|
|
@@ -633,7 +633,7 @@ function ma(e, l) {
|
|
|
633
633
|
}).filter(([, s]) => Object.keys(s).length > 0);
|
|
634
634
|
return Object.freeze(Object.fromEntries(o));
|
|
635
635
|
}
|
|
636
|
-
function
|
|
636
|
+
function wa(e, l) {
|
|
637
637
|
const r = /* @__PURE__ */ new Map();
|
|
638
638
|
for (const o of e.customItems)
|
|
639
639
|
r.set(o.key, o);
|
|
@@ -683,7 +683,7 @@ function io(e, l) {
|
|
|
683
683
|
}).filter(([, o]) => Object.keys(o).length > 0);
|
|
684
684
|
return Object.freeze(Object.fromEntries(r));
|
|
685
685
|
}
|
|
686
|
-
function
|
|
686
|
+
function va(e) {
|
|
687
687
|
if (e === "start" || e === "end")
|
|
688
688
|
return !0;
|
|
689
689
|
if (!e.includes(":"))
|
|
@@ -700,7 +700,7 @@ function so(e) {
|
|
|
700
700
|
if (s.length === 0 || d.length === 0 || r.has(s))
|
|
701
701
|
continue;
|
|
702
702
|
r.add(s);
|
|
703
|
-
const v = typeof o.placement == "string" &&
|
|
703
|
+
const v = typeof o.placement == "string" && va(o.placement) ? o.placement : void 0, b = {
|
|
704
704
|
key: s,
|
|
705
705
|
label: d,
|
|
706
706
|
...v ? { placement: v } : {},
|
|
@@ -726,7 +726,7 @@ function so(e) {
|
|
|
726
726
|
}
|
|
727
727
|
return Object.freeze(l);
|
|
728
728
|
}
|
|
729
|
-
function
|
|
729
|
+
function ga(e) {
|
|
730
730
|
if (!e)
|
|
731
731
|
return {};
|
|
732
732
|
const l = Object.entries(e).filter(([r]) => r.trim().length > 0).map(([r, o]) => {
|
|
@@ -746,7 +746,7 @@ function va(e) {
|
|
|
746
746
|
});
|
|
747
747
|
return Object.freeze(Object.fromEntries(l));
|
|
748
748
|
}
|
|
749
|
-
function
|
|
749
|
+
function Vi(e) {
|
|
750
750
|
return typeof e == "boolean" ? {
|
|
751
751
|
enabled: e,
|
|
752
752
|
items: [...Re],
|
|
@@ -764,7 +764,7 @@ function Pi(e) {
|
|
|
764
764
|
labels: kt(e.labels, Re),
|
|
765
765
|
actions: io(e.actions, ao),
|
|
766
766
|
customItems: so(e.customItems),
|
|
767
|
-
columns:
|
|
767
|
+
columns: ga(e.columns)
|
|
768
768
|
} : {
|
|
769
769
|
enabled: !1,
|
|
770
770
|
items: [...Re],
|
|
@@ -780,23 +780,23 @@ function Bn(e, l) {
|
|
|
780
780
|
const r = e.columns[l], o = r?.items ? Nn(r.items, Re) : e.items, s = new Set(r?.hide ?? []), d = o.filter((v) => !s.has(v));
|
|
781
781
|
return d.length > 0 ? d : [];
|
|
782
782
|
}
|
|
783
|
-
function
|
|
783
|
+
function ha(e, l) {
|
|
784
784
|
const r = Bn(e, l), o = new Set(e.columns[l]?.disabled ?? []), s = new Set(e.disabled);
|
|
785
785
|
return r.filter((d) => s.has(d) || o.has(d));
|
|
786
786
|
}
|
|
787
|
-
function
|
|
787
|
+
function ba(e, l) {
|
|
788
788
|
return Object.freeze({
|
|
789
789
|
...e.labels,
|
|
790
790
|
...e.columns[l]?.labels ?? {}
|
|
791
791
|
});
|
|
792
792
|
}
|
|
793
|
-
function
|
|
793
|
+
function Ra(e, l) {
|
|
794
794
|
return Object.freeze({
|
|
795
795
|
...e.disabledReasons,
|
|
796
796
|
...e.columns[l]?.disabledReasons ?? {}
|
|
797
797
|
});
|
|
798
798
|
}
|
|
799
|
-
function
|
|
799
|
+
function ya(e, l) {
|
|
800
800
|
const r = e.columns[l]?.actions ?? {}, o = ao.map((s) => {
|
|
801
801
|
const d = {
|
|
802
802
|
...e.actions[s] ?? {},
|
|
@@ -806,7 +806,7 @@ function Ra(e, l) {
|
|
|
806
806
|
}).filter(([, s]) => Object.keys(s).length > 0);
|
|
807
807
|
return Object.freeze(Object.fromEntries(o));
|
|
808
808
|
}
|
|
809
|
-
function
|
|
809
|
+
function Ca(e, l) {
|
|
810
810
|
const r = /* @__PURE__ */ new Map();
|
|
811
811
|
for (const o of e.customItems)
|
|
812
812
|
r.set(o.key, o);
|
|
@@ -814,7 +814,7 @@ function ya(e, l) {
|
|
|
814
814
|
r.set(o.key, o);
|
|
815
815
|
return Object.freeze(Array.from(r.values()));
|
|
816
816
|
}
|
|
817
|
-
function
|
|
817
|
+
function Hi(e) {
|
|
818
818
|
return typeof e == "boolean" ? {
|
|
819
819
|
enabled: e,
|
|
820
820
|
items: [...Ft],
|
|
@@ -838,16 +838,16 @@ function Vi(e) {
|
|
|
838
838
|
actions: Object.freeze({})
|
|
839
839
|
};
|
|
840
840
|
}
|
|
841
|
-
function
|
|
841
|
+
function pa(e) {
|
|
842
842
|
return e.items;
|
|
843
843
|
}
|
|
844
|
-
function
|
|
844
|
+
function Sa(e) {
|
|
845
845
|
return e.disabled;
|
|
846
846
|
}
|
|
847
|
-
function
|
|
847
|
+
function Ia(e) {
|
|
848
848
|
return e.disabledReasons;
|
|
849
849
|
}
|
|
850
|
-
function
|
|
850
|
+
function Ma(e) {
|
|
851
851
|
const l = Ko.map((r) => [r, Object.freeze({ ...e.actions[r] ?? {} })]).filter(([, r]) => Object.keys(r).length > 0);
|
|
852
852
|
return Object.freeze(Object.fromEntries(l));
|
|
853
853
|
}
|
|
@@ -856,7 +856,7 @@ function Io(e) {
|
|
|
856
856
|
e.value = l instanceof HTMLElement ? l : null;
|
|
857
857
|
};
|
|
858
858
|
}
|
|
859
|
-
function
|
|
859
|
+
function xa(e) {
|
|
860
860
|
const l = Io(e.headerViewportRef), r = Io(e.bodyViewportRef), o = (D) => {
|
|
861
861
|
e.editingCellValueRef.value = D;
|
|
862
862
|
}, s = g(() => ({
|
|
@@ -1026,7 +1026,7 @@ function Ma(e) {
|
|
|
1026
1026
|
updateEditingCellValue: o
|
|
1027
1027
|
};
|
|
1028
1028
|
}
|
|
1029
|
-
function
|
|
1029
|
+
function Fa(e) {
|
|
1030
1030
|
const l = (d, v) => Number.isFinite(d.displayIndex) ? Math.max(0, Math.trunc(d.displayIndex)) : e.viewportRowStart.value + v;
|
|
1031
1031
|
return {
|
|
1032
1032
|
readStageCell: (d, v) => e.isRowSelectionColumnKey(v) ? e.readRowSelectionCell(d) : e.readCell(d, v),
|
|
@@ -1093,7 +1093,7 @@ function xa(e) {
|
|
|
1093
1093
|
};
|
|
1094
1094
|
}
|
|
1095
1095
|
const Mo = 140, jn = 108, Ll = "__datagrid_row_selection__";
|
|
1096
|
-
function
|
|
1096
|
+
function Aa(e) {
|
|
1097
1097
|
const l = g(() => (e.showRowSelection?.value ?? !0) && e.runtime.api.rowSelection.hasSupport()), r = g(() => l.value ? {
|
|
1098
1098
|
key: Ll,
|
|
1099
1099
|
state: {
|
|
@@ -1181,7 +1181,7 @@ function Fa(e) {
|
|
|
1181
1181
|
rowSelectionColumn: r
|
|
1182
1182
|
};
|
|
1183
1183
|
}
|
|
1184
|
-
function
|
|
1184
|
+
function Da(e) {
|
|
1185
1185
|
const l = g(() => {
|
|
1186
1186
|
const o = e.lastAppliedFill.value, s = e.selectionRange.value;
|
|
1187
1187
|
return !o || !s || e.isFillDragging.value || o.allowBehaviorToggle === !1 || o.previewRange.startRow !== s.startRow || o.previewRange.endRow !== s.endRow || o.previewRange.startColumn !== s.startColumn || o.previewRange.endColumn !== s.endColumn ? null : {
|
|
@@ -1194,7 +1194,7 @@ function Aa(e) {
|
|
|
1194
1194
|
fillActionBehavior: r
|
|
1195
1195
|
};
|
|
1196
1196
|
}
|
|
1197
|
-
function
|
|
1197
|
+
function ka(e) {
|
|
1198
1198
|
const l = e.enabled === !1 || e.history ? null : wr({
|
|
1199
1199
|
runtime: e.runtime,
|
|
1200
1200
|
cloneRowData: e.cloneRowData,
|
|
@@ -1230,7 +1230,7 @@ function Da(e) {
|
|
|
1230
1230
|
}
|
|
1231
1231
|
};
|
|
1232
1232
|
}
|
|
1233
|
-
function
|
|
1233
|
+
function Oa(e) {
|
|
1234
1234
|
const l = e.isPlaceholderRow ?? (() => !1), r = e.applyRowSelectionMutation ?? ((M) => {
|
|
1235
1235
|
e.runtime.api.rowSelection.hasSupport() && M(e.runtime.api.rowSelection);
|
|
1236
1236
|
}), o = g(() => new Set(e.rowSelectionSnapshot.value?.selectedRows ?? [])), s = g(() => new Set(e.rowSelectionSnapshot.value?.excludedRows ?? [])), d = g(() => e.rowSelectionSnapshot.value?.mode === "all"), v = g(() => e.runtime.api.rows.getSnapshot().kind === "server"), b = (M) => !l(M) && M.rowId != null && e.rowSelectionSnapshot.value?.focusedRow === M.rowId, R = (M) => l(M) || M.kind === "group" || M.rowId == null ? !1 : d.value ? !s.value.has(M.rowId) : o.value.has(M.rowId), S = (M) => R(M), F = (M) => S(M) ? "true" : "false", Y = (M) => {
|
|
@@ -1327,7 +1327,7 @@ function ka(e) {
|
|
|
1327
1327
|
}
|
|
1328
1328
|
};
|
|
1329
1329
|
}
|
|
1330
|
-
function
|
|
1330
|
+
function _a(e) {
|
|
1331
1331
|
const l = (v) => ({ target: v });
|
|
1332
1332
|
return {
|
|
1333
1333
|
handleWindowMouseMove: (v) => {
|
|
@@ -1346,14 +1346,17 @@ function Oa(e) {
|
|
|
1346
1346
|
},
|
|
1347
1347
|
handleHeaderScroll: (v) => {
|
|
1348
1348
|
const b = v.target, R = e.bodyViewportRef.value;
|
|
1349
|
-
!b || !R
|
|
1349
|
+
if (!b || !R)
|
|
1350
|
+
return;
|
|
1351
|
+
const S = b.scrollLeft;
|
|
1352
|
+
R.scrollLeft !== S && (R.scrollLeft = S, e.syncViewport(l(R)));
|
|
1350
1353
|
},
|
|
1351
1354
|
handleWindowMouseUp: () => {
|
|
1352
1355
|
e.stopColumnResize(), e.handleInteractionWindowMouseUp();
|
|
1353
1356
|
}
|
|
1354
1357
|
};
|
|
1355
1358
|
}
|
|
1356
|
-
function
|
|
1359
|
+
function Ea(e) {
|
|
1357
1360
|
const l = (d) => d.ctrlKey || d.metaKey || d.altKey ? !1 : d.key.startsWith("Arrow") || d.key === "Home" || d.key === "End" || d.key === "PageUp" || d.key === "PageDown" || d.key === "Tab" || d.key === "Enter" || d.key === " " || d.key === "Spacebar" || d.key === "F2" || d.key === "Escape" || d.key.length === 1, r = (d) => (d.ctrlKey || d.metaKey) && !d.altKey && !d.shiftKey && d.key.toLowerCase() === "a", o = () => {
|
|
1358
1361
|
const d = e.totalRows.value - 1, v = e.orderedVisibleColumns.value.length - 1;
|
|
1359
1362
|
d < 0 || v < 0 || e.applySelectionRange({
|
|
@@ -1381,7 +1384,7 @@ function _a(e) {
|
|
|
1381
1384
|
}
|
|
1382
1385
|
};
|
|
1383
1386
|
}
|
|
1384
|
-
function
|
|
1387
|
+
function Ta(e) {
|
|
1385
1388
|
const l = g(() => e.interactionSelectionRange.value ?? e.resolveCommittedSelectionRange()), r = g(() => {
|
|
1386
1389
|
const I = e.interactionSelectionRange.value;
|
|
1387
1390
|
return I ? [I] : e.resolveCommittedSelectionRanges();
|
|
@@ -1450,7 +1453,7 @@ function Ea(e) {
|
|
|
1450
1453
|
}
|
|
1451
1454
|
};
|
|
1452
1455
|
}
|
|
1453
|
-
function
|
|
1456
|
+
function za(e) {
|
|
1454
1457
|
const l = e.rowModel;
|
|
1455
1458
|
if (!l || typeof l.getRow != "function" || typeof l.getRowCount != "function")
|
|
1456
1459
|
return e.fallbackRows;
|
|
@@ -1483,8 +1486,8 @@ function Ta(e) {
|
|
|
1483
1486
|
}
|
|
1484
1487
|
return o.length > 0 ? o : e.fallbackRows;
|
|
1485
1488
|
}
|
|
1486
|
-
const Nl = 140,
|
|
1487
|
-
function
|
|
1489
|
+
const Nl = 140, Pa = 72, Va = 80, Ha = 24, xo = 400;
|
|
1490
|
+
function ja(e) {
|
|
1488
1491
|
const l = e.syncRowSelectionSnapshotFromRuntime ?? (() => {
|
|
1489
1492
|
}), r = e.flushRowSelectionSnapshotUpdates ?? (() => {
|
|
1490
1493
|
}), o = e.rowSelectionSnapshot ?? Q(null), s = Q(null), d = g(() => e.showRowIndex?.value !== !1), v = g(() => e.runtime.rowPartition.value.bodyRowCount), b = Er({
|
|
@@ -1493,7 +1496,7 @@ function Ha(e) {
|
|
|
1493
1496
|
totalBodyRows: v,
|
|
1494
1497
|
placeholderRows: e.placeholderRows,
|
|
1495
1498
|
cloneRowData: e.cloneRowData
|
|
1496
|
-
}), R = g(() => Math.max(0, b.totalVisualRows.value)), S = g(() => Math.max(0, R.value + e.runtime.rowPartition.value.pinnedBottomRows.length)), F = g(() => d.value ?
|
|
1499
|
+
}), R = g(() => Math.max(0, b.totalVisualRows.value)), S = g(() => Math.max(0, R.value + e.runtime.rowPartition.value.pinnedBottomRows.length)), F = g(() => d.value ? Pa : 0), Y = Aa({
|
|
1497
1500
|
runtime: e.runtime,
|
|
1498
1501
|
visibleColumns: e.visibleColumns,
|
|
1499
1502
|
showRowSelection: e.showRowSelection,
|
|
@@ -1539,7 +1542,7 @@ function Ha(e) {
|
|
|
1539
1542
|
});
|
|
1540
1543
|
let H = () => !1;
|
|
1541
1544
|
const {
|
|
1542
|
-
headerViewportRef:
|
|
1545
|
+
headerViewportRef: K,
|
|
1543
1546
|
bodyViewportRef: T,
|
|
1544
1547
|
displayRows: ce,
|
|
1545
1548
|
displayRowsRevision: Jt,
|
|
@@ -1620,7 +1623,7 @@ function Ha(e) {
|
|
|
1620
1623
|
viewportRowStart: le,
|
|
1621
1624
|
bodyViewportRef: T,
|
|
1622
1625
|
runtime: e.runtime,
|
|
1623
|
-
minRowHeight:
|
|
1626
|
+
minRowHeight: Ha,
|
|
1624
1627
|
syncViewport: () => me()
|
|
1625
1628
|
}), at = br({
|
|
1626
1629
|
mode: e.mode,
|
|
@@ -1679,12 +1682,12 @@ function Ha(e) {
|
|
|
1679
1682
|
return !!be && !b.isPlaceholderRow(be);
|
|
1680
1683
|
},
|
|
1681
1684
|
getRowIdAtIndex: (Fe) => X.getBodyRowAtIndex(Fe)?.rowId ?? null
|
|
1682
|
-
}),
|
|
1685
|
+
}), L = O.virtual.projectionIdentity ?? w, ne = O.virtual.projectionStale === !0 || O.virtual.projectionIdentity != null && w != null && !ke(O.virtual.projectionIdentity, w), he = dr({
|
|
1683
1686
|
range: O,
|
|
1684
1687
|
anchorCell: O.anchor,
|
|
1685
1688
|
focusCell: O.focus,
|
|
1686
1689
|
coverage: ge,
|
|
1687
|
-
projectionIdentity:
|
|
1690
|
+
projectionIdentity: L,
|
|
1688
1691
|
projectionStale: ne,
|
|
1689
1692
|
staleReason: ne ? O.virtual.staleReason ?? "Selection projection changed after refresh." : O.virtual.staleReason ?? null
|
|
1690
1693
|
});
|
|
@@ -1742,7 +1745,7 @@ function Ha(e) {
|
|
|
1742
1745
|
rowIndex: Math.trunc(y.rowIndex),
|
|
1743
1746
|
columnIndex: Math.trunc(y.colIndex)
|
|
1744
1747
|
};
|
|
1745
|
-
}), mn =
|
|
1748
|
+
}), mn = Oa({
|
|
1746
1749
|
runtime: e.runtime,
|
|
1747
1750
|
isPlaceholderRow: b.isPlaceholderRow,
|
|
1748
1751
|
rowSelectionColumn: ze,
|
|
@@ -1767,7 +1770,7 @@ function Ha(e) {
|
|
|
1767
1770
|
minWidth: i,
|
|
1768
1771
|
maxWidth: i
|
|
1769
1772
|
};
|
|
1770
|
-
}), Pt =
|
|
1773
|
+
}), Pt = ka({
|
|
1771
1774
|
runtime: e.runtime,
|
|
1772
1775
|
cloneRowData: e.cloneRowData,
|
|
1773
1776
|
syncViewport: () => me(),
|
|
@@ -1805,7 +1808,7 @@ function Ha(e) {
|
|
|
1805
1808
|
runtime: e.runtime,
|
|
1806
1809
|
viewportRowStart: le,
|
|
1807
1810
|
firstColumnKey: e.firstColumnKey
|
|
1808
|
-
}), Vt =
|
|
1811
|
+
}), Vt = Fa({
|
|
1809
1812
|
runtime: e.runtime,
|
|
1810
1813
|
viewportRowStart: le,
|
|
1811
1814
|
ensureEditableRowAtIndex: (i) => b.ensureMaterializedRowAt(i, "toggle"),
|
|
@@ -1962,27 +1965,27 @@ function Ha(e) {
|
|
|
1962
1965
|
startRow: Ot.value.start,
|
|
1963
1966
|
endRow: Ot.value.end,
|
|
1964
1967
|
endColumn: Math.max(0, e.visibleColumns.value.length - 1)
|
|
1965
|
-
} : null, ge = Me(),
|
|
1968
|
+
} : null, ge = Me(), L = G ?? O ?? ge ?? {
|
|
1966
1969
|
startRow: le.value,
|
|
1967
1970
|
endRow: _t.value,
|
|
1968
1971
|
endColumn: Math.max(0, e.visibleColumns.value.length - 1)
|
|
1969
1972
|
}, ne = i != null && !w(i) ? Lt(i) : w(i) && i.kind === "range" ? Lt(i.range) : null, he = w(i) && i.kind === "rows" ? i.rowIds : null;
|
|
1970
|
-
e.reportFillPlumbingDetail?.("server_fill_latest_rendered_viewport", ut(s.value)), e.reportFillPlumbingDetail?.("server_fill_runtime_rendered_viewport", Ze(O)), e.reportFillPlumbingDetail?.("server_fill_displayrows_rendered_viewport", Ze(ge)), e.reportFillPlumbingDetail?.("server_fill_selected_rendered_viewport", Ze(
|
|
1973
|
+
e.reportFillPlumbingDetail?.("server_fill_latest_rendered_viewport", ut(s.value)), e.reportFillPlumbingDetail?.("server_fill_runtime_rendered_viewport", Ze(O)), e.reportFillPlumbingDetail?.("server_fill_displayrows_rendered_viewport", Ze(ge)), e.reportFillPlumbingDetail?.("server_fill_selected_rendered_viewport", Ze(L)), e.reportFillPlumbingDetail?.("server_fill_refresh_used_stored_rendered", G ? "yes" : "no");
|
|
1971
1974
|
const Fe = Lt({
|
|
1972
|
-
startRow:
|
|
1973
|
-
endRow:
|
|
1975
|
+
startRow: L.startRow,
|
|
1976
|
+
endRow: L.endRow
|
|
1974
1977
|
}), be = ne ?? Fe;
|
|
1975
|
-
e.reportFillPlumbingDetail?.("server_fill_raw_invalidation", i ? JSON.stringify(i) : "none"), e.reportFillPlumbingDetail?.("server_fill_invalidation_range", ne ? `${ne.start}..${ne.end}` : "none"), e.reportFillPlumbingDetail?.("server_fill_normalized_invalidation", be ? `${be.start}..${be.end}` : "none"), e.reportFillPlumbingDetail?.("server_fill_sync_input_range", Ze(
|
|
1976
|
-
start:
|
|
1977
|
-
end:
|
|
1978
|
-
}), e.reportFillPlumbingDetail?.("server_fill_rendered_viewport", Ze(
|
|
1978
|
+
e.reportFillPlumbingDetail?.("server_fill_raw_invalidation", i ? JSON.stringify(i) : "none"), e.reportFillPlumbingDetail?.("server_fill_invalidation_range", ne ? `${ne.start}..${ne.end}` : "none"), e.reportFillPlumbingDetail?.("server_fill_normalized_invalidation", be ? `${be.start}..${be.end}` : "none"), e.reportFillPlumbingDetail?.("server_fill_sync_input_range", Ze(L)), e.reportFillPlumbingDetail?.("server_fill_runtime_rowModel_invalidate_type", typeof y?.invalidateRange == "function" ? "function" : typeof y?.invalidateRange), L && (e.runtime.setViewportRange?.({
|
|
1979
|
+
start: L.startRow,
|
|
1980
|
+
end: L.endRow
|
|
1981
|
+
}), e.reportFillPlumbingDetail?.("server_fill_rendered_viewport", Ze(L)));
|
|
1979
1982
|
const Mt = e.runtime.getBodyRowAtIndex(1);
|
|
1980
1983
|
let j = !1;
|
|
1981
1984
|
ne && typeof y?.invalidateRange == "function" ? (y.invalidateRange(ne), j = !0) : he && typeof y?.invalidateRows == "function" && (y.invalidateRows(he), j = !0);
|
|
1982
1985
|
const U = e.runtime.getBodyRowAtIndex(1);
|
|
1983
|
-
e.reportFillPlumbingState?.("server_fill_invalidation_called", j), e.reportFillPlumbingDetail?.("server_fill_cache_row1_before_invalidation", Mt ? "yes" : "no"), e.reportFillPlumbingDetail?.("server_fill_cache_row1_after_invalidation", U ? "yes" : "no"), e.reportFillPlumbingState?.("server_fill_invalidation_applied", j), !j && typeof A.refresh == "function" && await A.refresh(),
|
|
1984
|
-
start:
|
|
1985
|
-
end:
|
|
1986
|
+
e.reportFillPlumbingState?.("server_fill_invalidation_called", j), e.reportFillPlumbingDetail?.("server_fill_cache_row1_before_invalidation", Mt ? "yes" : "no"), e.reportFillPlumbingDetail?.("server_fill_cache_row1_after_invalidation", U ? "yes" : "no"), e.reportFillPlumbingState?.("server_fill_invalidation_applied", j), !j && typeof A.refresh == "function" && await A.refresh(), L ? Xn({
|
|
1987
|
+
start: L.startRow,
|
|
1988
|
+
end: L.endRow
|
|
1986
1989
|
}) : me(), await mt();
|
|
1987
1990
|
}
|
|
1988
1991
|
function ut(i) {
|
|
@@ -2024,8 +2027,8 @@ function Ha(e) {
|
|
|
2024
2027
|
revision: y.revision,
|
|
2025
2028
|
projection: G
|
|
2026
2029
|
})).then(async (ge) => {
|
|
2027
|
-
const
|
|
2028
|
-
return e.reportFillPlumbingDetail?.("server_fill_affected_range", Ze(ne)), e.reportFillPlumbingDetail?.("server_fill_visible_overlap", In(ne) ? "yes" : "no"), await Ve(
|
|
2030
|
+
const L = ge?.invalidation ?? y.affectedRange ?? null, ne = L && !("kind" in L) ? L : L && "kind" in L && L.kind === "range" ? L.range : y.affectedRange ?? null;
|
|
2031
|
+
return e.reportFillPlumbingDetail?.("server_fill_affected_range", Ze(ne)), e.reportFillPlumbingDetail?.("server_fill_visible_overlap", In(ne) ? "yes" : "no"), await Ve(L), Se.value = i === "undo" ? "undone" : "committed", y.operationId;
|
|
2029
2032
|
});
|
|
2030
2033
|
}
|
|
2031
2034
|
return ml(i);
|
|
@@ -2035,7 +2038,7 @@ function Ha(e) {
|
|
|
2035
2038
|
return !1;
|
|
2036
2039
|
if (Mn() && (!Nt(y) || !Nt(A)))
|
|
2037
2040
|
return e.reportFillWarning?.("Range move includes unloaded rows. Load the full source and target ranges before moving."), !1;
|
|
2038
|
-
const G = Bt(y), O = y.endRow - y.startRow + 1, ge = y.endColumn - y.startColumn + 1,
|
|
2041
|
+
const G = Bt(y), O = y.endRow - y.startRow + 1, ge = y.endColumn - y.startColumn + 1, L = /* @__PURE__ */ new Map();
|
|
2039
2042
|
for (let j = 0; j < O; j += 1) {
|
|
2040
2043
|
let U = !1;
|
|
2041
2044
|
for (let Z = 0; Z < ge; Z += 1)
|
|
@@ -2043,7 +2046,7 @@ function Ha(e) {
|
|
|
2043
2046
|
U = !0;
|
|
2044
2047
|
break;
|
|
2045
2048
|
}
|
|
2046
|
-
|
|
2049
|
+
L.set(A.startRow + j, U);
|
|
2047
2050
|
}
|
|
2048
2051
|
const ne = Ue(), he = /* @__PURE__ */ new Map();
|
|
2049
2052
|
let Fe = 0, be = 0;
|
|
@@ -2064,7 +2067,7 @@ function Ha(e) {
|
|
|
2064
2067
|
}
|
|
2065
2068
|
for (let j = A.startRow; j <= A.endRow; j += 1) {
|
|
2066
2069
|
let U = X.getBodyRowAtIndex(j);
|
|
2067
|
-
b.isPlaceholderRow(U) &&
|
|
2070
|
+
b.isPlaceholderRow(U) && L.get(j) === !0 && (U = b.ensureMaterializedRowAt(j, "paste"));
|
|
2068
2071
|
for (let Z = A.startColumn; Z <= A.endColumn; Z += 1) {
|
|
2069
2072
|
const Te = I.value[Z]?.key;
|
|
2070
2073
|
if (!Te || k(Te))
|
|
@@ -2211,11 +2214,11 @@ function Ha(e) {
|
|
|
2211
2214
|
isFillHandleCell: It,
|
|
2212
2215
|
clearSelectedCells: lt,
|
|
2213
2216
|
dispose: Al
|
|
2214
|
-
} = xn, Dl = g(() => $t.value ? Ml.value : null), kl = g(() => (e.rowVersion.value,
|
|
2217
|
+
} = xn, Dl = g(() => $t.value ? Ml.value : null), kl = g(() => (e.rowVersion.value, za({
|
|
2215
2218
|
rowModel: e.runtimeRowModel,
|
|
2216
2219
|
fallbackRows: e.sourceRows?.value ?? e.rows.value,
|
|
2217
2220
|
sampleLimit: xo
|
|
2218
|
-
}))), Ol =
|
|
2221
|
+
}))), Ol = Ea({
|
|
2219
2222
|
runtime: X,
|
|
2220
2223
|
selectionSnapshot: e.selectionSnapshot,
|
|
2221
2224
|
totalRows: R,
|
|
@@ -2237,7 +2240,7 @@ function Ha(e) {
|
|
|
2237
2240
|
e.runtime.api.columns.setWidth(i, w);
|
|
2238
2241
|
},
|
|
2239
2242
|
defaultColumnWidth: Nl,
|
|
2240
|
-
minColumnWidth:
|
|
2243
|
+
minColumnWidth: Va,
|
|
2241
2244
|
autoSizeSampleLimit: xo,
|
|
2242
2245
|
autoSizeCharWidth: 7.2,
|
|
2243
2246
|
autoSizeHorizontalPadding: 42,
|
|
@@ -2254,7 +2257,7 @@ function Ha(e) {
|
|
|
2254
2257
|
const y = i[w];
|
|
2255
2258
|
return y == null ? "" : String(y);
|
|
2256
2259
|
}
|
|
2257
|
-
}), zn =
|
|
2260
|
+
}), zn = Ta({
|
|
2258
2261
|
mode: e.mode,
|
|
2259
2262
|
viewportRowStart: le,
|
|
2260
2263
|
selectionAnchorCell: zt,
|
|
@@ -2267,11 +2270,11 @@ function Ha(e) {
|
|
|
2267
2270
|
isCommittedCellSelected: cn,
|
|
2268
2271
|
shouldHighlightCommittedSelectedCell: Tt,
|
|
2269
2272
|
isCommittedCellOnSelectionEdge: tl
|
|
2270
|
-
}), { selectionRange: ae, selectionRanges: Ee } = zn, te =
|
|
2273
|
+
}), { selectionRange: ae, selectionRanges: Ee } = zn, te = Da({
|
|
2271
2274
|
lastAppliedFill: Sl,
|
|
2272
2275
|
selectionRange: ae,
|
|
2273
2276
|
isFillDragging: nt
|
|
2274
|
-
}), fe =
|
|
2277
|
+
}), fe = _a({
|
|
2275
2278
|
bodyViewportRef: T,
|
|
2276
2279
|
isColumnResizing: ye,
|
|
2277
2280
|
applyColumnResizeFromPointer: El,
|
|
@@ -2279,7 +2282,7 @@ function Ha(e) {
|
|
|
2279
2282
|
handleInteractionWindowMouseMove: xe,
|
|
2280
2283
|
handleInteractionWindowMouseUp: Fl,
|
|
2281
2284
|
syncViewport: Zt
|
|
2282
|
-
}),
|
|
2285
|
+
}), $ = {
|
|
2283
2286
|
rowSelection: mn,
|
|
2284
2287
|
history: Pt,
|
|
2285
2288
|
cellIo: Vt,
|
|
@@ -2290,7 +2293,7 @@ function Ha(e) {
|
|
|
2290
2293
|
}, {
|
|
2291
2294
|
tableStageProps: zl,
|
|
2292
2295
|
tableStageContext: He
|
|
2293
|
-
} =
|
|
2296
|
+
} = xa({
|
|
2294
2297
|
mode: e.mode,
|
|
2295
2298
|
rowHeightMode: e.rowHeightMode,
|
|
2296
2299
|
layoutMode: e.layoutMode,
|
|
@@ -2337,7 +2340,7 @@ function Ha(e) {
|
|
|
2337
2340
|
rangeMoveEnabled: g(() => e.enableRangeMove.value),
|
|
2338
2341
|
isFillDragging: nt,
|
|
2339
2342
|
isRangeMoving: Il,
|
|
2340
|
-
headerViewportRef:
|
|
2343
|
+
headerViewportRef: K,
|
|
2341
2344
|
bodyViewportRef: T,
|
|
2342
2345
|
columnStyle: wt,
|
|
2343
2346
|
reorderColumnsByHeader: e.reorderColumnsByHeader,
|
|
@@ -2367,33 +2370,33 @@ function Ha(e) {
|
|
|
2367
2370
|
applyColumnMenuGroupBy: e.applyColumnMenuGroupBy,
|
|
2368
2371
|
applyColumnMenuFilter: e.applyColumnMenuFilter,
|
|
2369
2372
|
clearColumnMenuFilter: e.clearColumnMenuFilter,
|
|
2370
|
-
handleHeaderWheel:
|
|
2371
|
-
handleHeaderScroll:
|
|
2373
|
+
handleHeaderWheel: $.scrollSync.handleHeaderWheel,
|
|
2374
|
+
handleHeaderScroll: $.scrollSync.handleHeaderScroll,
|
|
2372
2375
|
handleViewportScroll: Zt,
|
|
2373
|
-
handleViewportKeydown:
|
|
2376
|
+
handleViewportKeydown: $.viewportKeyboard.handleViewportKeydown,
|
|
2374
2377
|
rowClass: vn,
|
|
2375
2378
|
isRowAutosizeProbe: nn,
|
|
2376
2379
|
rowStyle: tn,
|
|
2377
2380
|
isRowInPendingClipboardCut: e.isRowInPendingClipboardCut,
|
|
2378
|
-
isRowFocused:
|
|
2379
|
-
isRowCheckboxSelected:
|
|
2380
|
-
allVisibleRowsSelected:
|
|
2381
|
-
someVisibleRowsSelected:
|
|
2382
|
-
handleRowClick:
|
|
2383
|
-
handleRowIndexClick:
|
|
2381
|
+
isRowFocused: $.rowSelection.isRowFocused,
|
|
2382
|
+
isRowCheckboxSelected: $.rowSelection.isRowCheckboxSelected,
|
|
2383
|
+
allVisibleRowsSelected: $.rowSelection.areAllVisibleRowsSelected,
|
|
2384
|
+
someVisibleRowsSelected: $.rowSelection.areSomeVisibleRowsSelected,
|
|
2385
|
+
handleRowClick: $.rowSelection.focusRow,
|
|
2386
|
+
handleRowIndexClick: $.rowSelection.selectRowRange,
|
|
2384
2387
|
handleRowIndexKeydown: Wt,
|
|
2385
2388
|
reorderRowsByIndex: e.reorderRowsByIndex,
|
|
2386
|
-
handleToggleAllVisibleRows:
|
|
2389
|
+
handleToggleAllVisibleRows: $.rowSelection.toggleVisibleRowsSelected,
|
|
2387
2390
|
toggleGroupRow: gn,
|
|
2388
2391
|
rowIndexLabel: fl,
|
|
2389
2392
|
startResize: _l,
|
|
2390
2393
|
handleResizeDoubleClick: Tn,
|
|
2391
2394
|
startRowResize: on,
|
|
2392
2395
|
autosizeRow: rn,
|
|
2393
|
-
isCellSelected:
|
|
2394
|
-
isSelectionAnchorCell:
|
|
2395
|
-
shouldHighlightSelectedCell:
|
|
2396
|
-
isCellOnSelectionEdge:
|
|
2396
|
+
isCellSelected: $.visualSelection.isCellSelected,
|
|
2397
|
+
isSelectionAnchorCell: $.visualSelection.isSelectionAnchorCell,
|
|
2398
|
+
shouldHighlightSelectedCell: $.visualSelection.shouldHighlightSelectedCell,
|
|
2399
|
+
isCellOnSelectionEdge: $.visualSelection.isCellOnSelectionEdge,
|
|
2397
2400
|
isCellInFillPreview: St,
|
|
2398
2401
|
isCellInPendingClipboardRange: gl,
|
|
2399
2402
|
isCellOnPendingClipboardEdge: hl,
|
|
@@ -2404,21 +2407,21 @@ function Ha(e) {
|
|
|
2404
2407
|
() => P(i, le.value + w, y)
|
|
2405
2408
|
),
|
|
2406
2409
|
handleCellMouseDown: Ut,
|
|
2407
|
-
handleCellClick:
|
|
2410
|
+
handleCellClick: $.cellIo.handleCellClick,
|
|
2408
2411
|
handleCellKeydown: En,
|
|
2409
2412
|
startInlineEdit: yt,
|
|
2410
2413
|
isFillHandleCell: It,
|
|
2411
2414
|
startFillHandleDrag: kn,
|
|
2412
2415
|
startFillHandleDoubleClick: On,
|
|
2413
|
-
fillActionAnchorCell:
|
|
2414
|
-
fillActionBehavior:
|
|
2416
|
+
fillActionAnchorCell: $.fillAction.fillActionAnchorCell,
|
|
2417
|
+
fillActionBehavior: $.fillAction.fillActionBehavior,
|
|
2415
2418
|
applyFillActionBehavior: _n,
|
|
2416
2419
|
handleEditorKeydown: Sn,
|
|
2417
2420
|
handleEditorBlur: Oe,
|
|
2418
2421
|
commitInlineEdit: pn,
|
|
2419
2422
|
cancelInlineEdit: Gt,
|
|
2420
|
-
readCell:
|
|
2421
|
-
readDisplayCell:
|
|
2423
|
+
readCell: $.cellIo.readStageCell,
|
|
2424
|
+
readDisplayCell: $.cellIo.readStageDisplayCell,
|
|
2422
2425
|
cellClass: e.cellClass ? (i, w, y, A) => e.cellClass?.(
|
|
2423
2426
|
i,
|
|
2424
2427
|
le.value + w,
|
|
@@ -2449,8 +2452,8 @@ function Ha(e) {
|
|
|
2449
2452
|
}), xr({
|
|
2450
2453
|
bodyViewportRef: T,
|
|
2451
2454
|
syncViewport: me,
|
|
2452
|
-
handleWindowMouseMove:
|
|
2453
|
-
handleWindowMouseUp:
|
|
2455
|
+
handleWindowMouseMove: $.scrollSync.handleWindowMouseMove,
|
|
2456
|
+
handleWindowMouseUp: $.scrollSync.handleWindowMouseUp,
|
|
2454
2457
|
cancelScheduledViewportSync: Ke,
|
|
2455
2458
|
onAfterMount: () => {
|
|
2456
2459
|
e.syncSelectionSnapshotFromRuntime(), l(), mt(() => {
|
|
@@ -2461,7 +2464,7 @@ function Ha(e) {
|
|
|
2461
2464
|
an,
|
|
2462
2465
|
qt,
|
|
2463
2466
|
Al,
|
|
2464
|
-
|
|
2467
|
+
$.history.disposeIntentHistory
|
|
2465
2468
|
]
|
|
2466
2469
|
}), {
|
|
2467
2470
|
tableStageProps: zl,
|
|
@@ -2488,7 +2491,7 @@ function Jl(e) {
|
|
|
2488
2491
|
function uo(e) {
|
|
2489
2492
|
return e == null ? "" : e instanceof Date ? e.toISOString() : Array.isArray(e) ? e.map((l) => uo(l)).filter((l) => l.length > 0).join(", ") : String(e);
|
|
2490
2493
|
}
|
|
2491
|
-
function
|
|
2494
|
+
function Ba(e) {
|
|
2492
2495
|
const l = e.indexOf(":");
|
|
2493
2496
|
if (l > 0) {
|
|
2494
2497
|
const r = e.slice(0, l);
|
|
@@ -2497,14 +2500,14 @@ function ja(e) {
|
|
|
2497
2500
|
}
|
|
2498
2501
|
return e;
|
|
2499
2502
|
}
|
|
2500
|
-
function
|
|
2503
|
+
function Ga(e) {
|
|
2501
2504
|
const l = [];
|
|
2502
2505
|
for (const [r, o] of Object.entries(e.columnFilters ?? {})) {
|
|
2503
2506
|
if (!o)
|
|
2504
2507
|
continue;
|
|
2505
2508
|
if (o.kind === "valueSet") {
|
|
2506
2509
|
const d = Array.from(new Set(
|
|
2507
|
-
(o.tokens ?? []).map((v) =>
|
|
2510
|
+
(o.tokens ?? []).map((v) => Ba(String(v ?? ""))).map((v) => v.trim()).filter((v) => v.length > 0)
|
|
2508
2511
|
));
|
|
2509
2512
|
if (d.length === 0)
|
|
2510
2513
|
continue;
|
|
@@ -2559,7 +2562,7 @@ function $o(e) {
|
|
|
2559
2562
|
function Fo(e) {
|
|
2560
2563
|
if (!e)
|
|
2561
2564
|
return [];
|
|
2562
|
-
const l =
|
|
2565
|
+
const l = Ga(e), r = e.advancedExpression ?? mr(e.advancedFilters), o = $o(r ?? null);
|
|
2563
2566
|
return [
|
|
2564
2567
|
...l,
|
|
2565
2568
|
...o.map((d, v) => l.length > 0 && v === 0 ? {
|
|
@@ -2572,14 +2575,14 @@ function Fo(e) {
|
|
|
2572
2575
|
join: v === 0 ? Jl("and") : d.join
|
|
2573
2576
|
}));
|
|
2574
2577
|
}
|
|
2575
|
-
const
|
|
2576
|
-
function
|
|
2578
|
+
const La = no(() => import("./DataGridAdvancedFilterPopover-BmEL_QzN.js")), Na = no(() => import("./DataGridAggregationsPopover-D-HP10PE.js")), Ka = no(() => import("./DataGridFindReplacePopover-Dou8Fsm3.js")), $a = "__AFFINO_DATAGRID_PERF__", Ao = 50;
|
|
2579
|
+
function Ua(e) {
|
|
2577
2580
|
return {
|
|
2578
2581
|
...e,
|
|
2579
2582
|
component: nr(lr(e.component))
|
|
2580
2583
|
};
|
|
2581
2584
|
}
|
|
2582
|
-
function
|
|
2585
|
+
function Wa(e) {
|
|
2583
2586
|
const l = [];
|
|
2584
2587
|
for (const r of e) {
|
|
2585
2588
|
const o = r.key.trim();
|
|
@@ -2593,7 +2596,7 @@ function dt() {
|
|
|
2593
2596
|
function Do(e) {
|
|
2594
2597
|
if (typeof window > "u")
|
|
2595
2598
|
return;
|
|
2596
|
-
window[
|
|
2599
|
+
window[$a]?.push?.(e);
|
|
2597
2600
|
}
|
|
2598
2601
|
function Kl(e) {
|
|
2599
2602
|
if (typeof window < "u" && typeof window.requestAnimationFrame == "function")
|
|
@@ -2601,7 +2604,7 @@ function Kl(e) {
|
|
|
2601
2604
|
const l = globalThis.setTimeout(e, 0);
|
|
2602
2605
|
return Number(l);
|
|
2603
2606
|
}
|
|
2604
|
-
function
|
|
2607
|
+
function qa(e) {
|
|
2605
2608
|
if (e !== null) {
|
|
2606
2609
|
if (typeof window < "u" && typeof window.cancelAnimationFrame == "function") {
|
|
2607
2610
|
window.cancelAnimationFrame(e);
|
|
@@ -2610,7 +2613,7 @@ function Wa(e) {
|
|
|
2610
2613
|
globalThis.clearTimeout(e);
|
|
2611
2614
|
}
|
|
2612
2615
|
}
|
|
2613
|
-
function
|
|
2616
|
+
function Qa(e, l) {
|
|
2614
2617
|
if (!e)
|
|
2615
2618
|
return l ?? null;
|
|
2616
2619
|
if (!l)
|
|
@@ -2633,7 +2636,7 @@ function qa(e, l) {
|
|
|
2633
2636
|
};
|
|
2634
2637
|
return o(e), o(l), Object.keys(r).length > 0 ? r : null;
|
|
2635
2638
|
}
|
|
2636
|
-
function
|
|
2639
|
+
function Ya(e) {
|
|
2637
2640
|
return Number.isFinite(e) ? Math.max(24, Math.trunc(e)) : 31;
|
|
2638
2641
|
}
|
|
2639
2642
|
function ko(e) {
|
|
@@ -2655,13 +2658,13 @@ function Xl() {
|
|
|
2655
2658
|
function ot(e) {
|
|
2656
2659
|
return At(e ?? Xl()) ?? Xl();
|
|
2657
2660
|
}
|
|
2658
|
-
function
|
|
2661
|
+
function Ja(e, l) {
|
|
2659
2662
|
return JSON.stringify(At(e ?? null)) === JSON.stringify(At(l ?? null));
|
|
2660
2663
|
}
|
|
2661
2664
|
function Zl(e) {
|
|
2662
2665
|
return e.startsWith("string:") ? `string:${e.slice(7).toLowerCase()}` : e;
|
|
2663
2666
|
}
|
|
2664
|
-
function
|
|
2667
|
+
function Xa(e) {
|
|
2665
2668
|
const l = {};
|
|
2666
2669
|
for (const [d, v] of Object.entries(e.columnFilters ?? {})) {
|
|
2667
2670
|
if (v.kind === "valueSet") {
|
|
@@ -2697,7 +2700,7 @@ function Ja(e) {
|
|
|
2697
2700
|
...s ? { quickFilter: s } : {}
|
|
2698
2701
|
};
|
|
2699
2702
|
}
|
|
2700
|
-
function
|
|
2703
|
+
function Za(e) {
|
|
2701
2704
|
const l = {}, r = e?.columnFilters ?? {};
|
|
2702
2705
|
for (const [o, s] of Object.entries(r))
|
|
2703
2706
|
s?.kind === "predicate" && typeof s.value == "string" && (l[o] = s.value);
|
|
@@ -2742,7 +2745,7 @@ function Uo(e) {
|
|
|
2742
2745
|
const l = Object.getPrototypeOf(e);
|
|
2743
2746
|
return l === Object.prototype || l === null;
|
|
2744
2747
|
}
|
|
2745
|
-
function
|
|
2748
|
+
function ei(e) {
|
|
2746
2749
|
const l = /* @__PURE__ */ new WeakSet();
|
|
2747
2750
|
try {
|
|
2748
2751
|
return JSON.stringify(e, (r, o) => {
|
|
@@ -2763,7 +2766,7 @@ function Yt(e) {
|
|
|
2763
2766
|
basis: e.basis === "source" ? "source" : "filtered"
|
|
2764
2767
|
} : null;
|
|
2765
2768
|
}
|
|
2766
|
-
function
|
|
2769
|
+
function ti(e) {
|
|
2767
2770
|
return e ? {
|
|
2768
2771
|
fields: [...e.fields],
|
|
2769
2772
|
expandedByDefault: e.expandedByDefault
|
|
@@ -2773,9 +2776,9 @@ function Le(e) {
|
|
|
2773
2776
|
return e == null ? "blank" : e instanceof Date ? e.toISOString() : typeof e == "string" ? `"${e}"` : String(e);
|
|
2774
2777
|
}
|
|
2775
2778
|
function Ne(e, l) {
|
|
2776
|
-
return
|
|
2779
|
+
return Gr(l, e);
|
|
2777
2780
|
}
|
|
2778
|
-
function
|
|
2781
|
+
function ni(e, l) {
|
|
2779
2782
|
const r = String(e ?? "");
|
|
2780
2783
|
if (r === "null")
|
|
2781
2784
|
return l.blankValueLabel;
|
|
@@ -2785,10 +2788,10 @@ function ti(e, l) {
|
|
|
2785
2788
|
const s = r.slice(0, o), d = r.slice(o + 1);
|
|
2786
2789
|
return s === "string" || s === "number" || s === "boolean" || s === "bigint" || s === "date" || s === "repr" || s === "json" ? d : r;
|
|
2787
2790
|
}
|
|
2788
|
-
function ni(e, l, r) {
|
|
2789
|
-
return l.kind === "valueSet" ? l.tokens.length === 1 ? `${e}: ${ti(l.tokens[0] ?? "", r)}` : `${e}: ${l.tokens.length} ${r.valuesSummaryLabel}` : l.operator === "between" ? `${e} ${Ne(l.operator, r)} ${Le(l.value)} ${r.betweenJoiner} ${Le(l.value2)}` : l.operator === "isEmpty" || l.operator === "notEmpty" || l.operator === "isNull" || l.operator === "notNull" ? `${e} ${Ne(l.operator, r)}` : `${e} ${Ne(l.operator, r)} ${Le(l.value)}`;
|
|
2790
|
-
}
|
|
2791
2791
|
function li(e, l, r) {
|
|
2792
|
+
return l.kind === "valueSet" ? l.tokens.length === 1 ? `${e}: ${ni(l.tokens[0] ?? "", r)}` : `${e}: ${l.tokens.length} ${r.valuesSummaryLabel}` : l.operator === "between" ? `${e} ${Ne(l.operator, r)} ${Le(l.value)} ${r.betweenJoiner} ${Le(l.value2)}` : l.operator === "isEmpty" || l.operator === "notEmpty" || l.operator === "isNull" || l.operator === "notNull" ? `${e} ${Ne(l.operator, r)}` : `${e} ${Ne(l.operator, r)} ${Le(l.value)}`;
|
|
2793
|
+
}
|
|
2794
|
+
function oi(e, l, r) {
|
|
2792
2795
|
const o = l.clauses.map((s, d) => {
|
|
2793
2796
|
const v = s.join === "or" ? r.joins.or : r.joins.and, b = d === 0 ? "" : `${v} `;
|
|
2794
2797
|
return s.operator === "between" ? `${b}${Ne(s.operator, r)} ${Le(s.value)} ${r.betweenJoiner} ${Le(s.value2)}` : s.operator === "isEmpty" || s.operator === "notEmpty" || s.operator === "isNull" || s.operator === "notNull" ? `${b}${Ne(s.operator, r)}` : `${b}${Ne(s.operator, r)} ${Le(s.value)}`;
|
|
@@ -2808,7 +2811,7 @@ function to(e, l, r) {
|
|
|
2808
2811
|
function _o(e, l) {
|
|
2809
2812
|
return l.activeSummaryPrefix.length > 0 ? `${l.activeSummaryPrefix}: ${e}` : e;
|
|
2810
2813
|
}
|
|
2811
|
-
const
|
|
2814
|
+
const ri = [
|
|
2812
2815
|
"sum",
|
|
2813
2816
|
"avg",
|
|
2814
2817
|
"min",
|
|
@@ -2817,27 +2820,27 @@ const oi = [
|
|
|
2817
2820
|
"countNonNull",
|
|
2818
2821
|
"first",
|
|
2819
2822
|
"last"
|
|
2820
|
-
],
|
|
2823
|
+
], ai = [
|
|
2821
2824
|
"min",
|
|
2822
2825
|
"max",
|
|
2823
2826
|
"count",
|
|
2824
2827
|
"countNonNull",
|
|
2825
2828
|
"first",
|
|
2826
2829
|
"last"
|
|
2827
|
-
],
|
|
2830
|
+
], ii = [
|
|
2828
2831
|
"count",
|
|
2829
2832
|
"countNonNull",
|
|
2830
2833
|
"first",
|
|
2831
2834
|
"last"
|
|
2832
2835
|
];
|
|
2833
|
-
function
|
|
2834
|
-
return e === "number" || e === "currency" || e === "percent" ?
|
|
2836
|
+
function si(e) {
|
|
2837
|
+
return e === "number" || e === "currency" || e === "percent" ? ri : e === "date" || e === "datetime" ? ai : ii;
|
|
2835
2838
|
}
|
|
2836
|
-
const
|
|
2839
|
+
const ui = {
|
|
2837
2840
|
clipboard: ["cut", "copy", "paste"],
|
|
2838
2841
|
pasteSpecial: ["paste-values"],
|
|
2839
2842
|
edit: ["clear"]
|
|
2840
|
-
},
|
|
2843
|
+
}, ci = {
|
|
2841
2844
|
insert: ["insert-row-above", "insert-row-below"],
|
|
2842
2845
|
clipboard: ["cut-row", "copy-row", "paste-row"],
|
|
2843
2846
|
selection: ["delete-selected-rows"]
|
|
@@ -2858,12 +2861,12 @@ const si = {
|
|
|
2858
2861
|
"sort-clear": "Clear sort",
|
|
2859
2862
|
filter: "Filter column",
|
|
2860
2863
|
"auto-size": "Auto size column"
|
|
2861
|
-
},
|
|
2864
|
+
}, di = {
|
|
2862
2865
|
"insert-row-above": "Insert / Ctrl/Cmd+I",
|
|
2863
2866
|
"copy-row": "Ctrl/Cmd+C",
|
|
2864
2867
|
"paste-row": "Ctrl/Cmd+V",
|
|
2865
2868
|
"cut-row": "Ctrl/Cmd+X"
|
|
2866
|
-
},
|
|
2869
|
+
}, ji = Ln({
|
|
2867
2870
|
name: "DataGridDefaultRenderer",
|
|
2868
2871
|
props: {
|
|
2869
2872
|
mode: {
|
|
@@ -3138,7 +3141,7 @@ const si = {
|
|
|
3138
3141
|
e.gridLines.pinnedSeparators ? "sep:1" : "sep:0"
|
|
3139
3142
|
].join("|")), o = Q(0), s = Q(Oo(e.sortModel)), d = Q(null);
|
|
3140
3143
|
let v = null, b = 0, R = null;
|
|
3141
|
-
const S = Q(ot(e.filterModel)), F = Q(e.filterModelNormalized), Y = g(() =>
|
|
3144
|
+
const S = Q(ot(e.filterModel)), F = Q(e.filterModelNormalized), Y = g(() => Za(S.value));
|
|
3142
3145
|
let I = "";
|
|
3143
3146
|
const C = () => {
|
|
3144
3147
|
const t = e.runtimeRowModel.getSnapshot();
|
|
@@ -3167,7 +3170,7 @@ const si = {
|
|
|
3167
3170
|
() => e.filterModel,
|
|
3168
3171
|
(t) => {
|
|
3169
3172
|
const n = ql(S.value, e.appColumns);
|
|
3170
|
-
!F.value &&
|
|
3173
|
+
!F.value && Ja(n, t ?? null) || (S.value = ot(t), F.value = e.filterModelNormalized);
|
|
3171
3174
|
},
|
|
3172
3175
|
{ deep: !0 }
|
|
3173
3176
|
), q(
|
|
@@ -3192,8 +3195,8 @@ const si = {
|
|
|
3192
3195
|
}))), we = g(() => ze.value.filter((t) => t.column.capabilities?.aggregatable === !0).map((t) => ({
|
|
3193
3196
|
key: t.key,
|
|
3194
3197
|
label: t.column.label ?? t.key,
|
|
3195
|
-
allowedOps:
|
|
3196
|
-
}))), se = Q(e.rowHeightMode), ue = g(() =>
|
|
3198
|
+
allowedOps: si(t.column.dataType)
|
|
3199
|
+
}))), se = Q(e.rowHeightMode), ue = g(() => Ya(e.baseRowHeight)), H = g(() => J.value[0]?.key ?? "name"), K = g(() => {
|
|
3197
3200
|
const t = /* @__PURE__ */ new Map();
|
|
3198
3201
|
for (const n of ze.value)
|
|
3199
3202
|
t.set(n.key, n.column.label ?? n.key);
|
|
@@ -3254,7 +3257,7 @@ const si = {
|
|
|
3254
3257
|
return t ? (t.applyAdvancedFilterPanel(), t.appliedAdvancedFilterExpression.value) : null;
|
|
3255
3258
|
}, Zn = () => {
|
|
3256
3259
|
de.value?.clearAdvancedFilterPanel();
|
|
3257
|
-
}, Ke = Q(!1), oe = Q(null), rt = g(() => !!e.groupBy?.fields?.length), wt = g(() => (o.value, Yt(e.runtime.api.rows.getAggregationModel()))), X = g(() => (o.value,
|
|
3260
|
+
}, Ke = Q(!1), oe = Q(null), rt = g(() => !!e.groupBy?.fields?.length), wt = g(() => (o.value, Yt(e.runtime.api.rows.getAggregationModel()))), X = g(() => (o.value, ti(e.runtime.api.rows.getSnapshot().groupBy))), en = g(() => {
|
|
3258
3261
|
const t = new Map(
|
|
3259
3262
|
(oe.value?.columns ?? []).map((n) => [n.key, n.op])
|
|
3260
3263
|
);
|
|
@@ -3295,7 +3298,7 @@ const si = {
|
|
|
3295
3298
|
...a.length > 0 ? { search: a } : {},
|
|
3296
3299
|
...typeof u == "number" ? { limit: u } : {}
|
|
3297
3300
|
});
|
|
3298
|
-
}, on = (t) => No(e.columnMenu, t), rn = (t) =>
|
|
3301
|
+
}, on = (t) => No(e.columnMenu, t), rn = (t) => ca(e.columnMenu, t), el = (t) => ma(e.columnMenu, t), an = (t) => da(e.columnMenu, t), at = (t) => fa(e.columnMenu, t), sn = (t) => wa(e.columnMenu, t), Et = (t) => {
|
|
3299
3302
|
const n = X.value?.fields.findIndex((a) => a === t) ?? -1;
|
|
3300
3303
|
return n >= 0 ? n : null;
|
|
3301
3304
|
}, gt = (t) => Et(t) !== null, ve = (t = S.value, n) => {
|
|
@@ -3315,27 +3318,27 @@ const si = {
|
|
|
3315
3318
|
), p = dt();
|
|
3316
3319
|
e.runtime.api.rows.setSortAndFilterModel({
|
|
3317
3320
|
sortModel: a,
|
|
3318
|
-
filterModel: m ?
|
|
3321
|
+
filterModel: m ? Xa(m) : null
|
|
3319
3322
|
});
|
|
3320
|
-
const x = dt(), V = e.runtime.api.rows.getSnapshot(), _ = V.projection,
|
|
3323
|
+
const x = dt(), V = e.runtime.api.rows.getSnapshot(), _ = V.projection, N = _?.performance?.stageTimes ?? {};
|
|
3321
3324
|
return {
|
|
3322
3325
|
setSortModelMs: Math.max(0, x - p),
|
|
3323
3326
|
projectionRebuildMs: Number.isFinite(_?.performance?.totalTime) ? Math.max(0, Number(_?.performance?.totalTime)) : 0,
|
|
3324
|
-
projectionSortMs: Number.isFinite(
|
|
3325
|
-
projectionFilterMs: Number.isFinite(
|
|
3326
|
-
projectionGroupMs: Number.isFinite(
|
|
3327
|
+
projectionSortMs: Number.isFinite(N.sort) ? Math.max(0, Number(N.sort)) : 0,
|
|
3328
|
+
projectionFilterMs: Number.isFinite(N.filter) ? Math.max(0, Number(N.filter)) : 0,
|
|
3329
|
+
projectionGroupMs: Number.isFinite(N.group) ? Math.max(0, Number(N.group)) : 0,
|
|
3327
3330
|
recomputeVersion: Number.isFinite(_?.recomputeVersion) ? Number(_?.recomputeVersion) : 0,
|
|
3328
3331
|
rowCount: V.rowCount
|
|
3329
3332
|
};
|
|
3330
3333
|
}, un = () => {
|
|
3331
3334
|
qn(Fo(S.value));
|
|
3332
|
-
}, $e = g(() => S.value.advancedExpression ?? null), Pe = g(() => typeof S.value.quickFilter?.query == "string" ? S.value.quickFilter.query.trim() : ""), pe = Q(Pe.value), ht = g(() => pe.value.trim() !== Pe.value), cn = g(() =>
|
|
3333
|
-
const t = (u) =>
|
|
3335
|
+
}, $e = g(() => S.value.advancedExpression ?? null), Pe = g(() => typeof S.value.quickFilter?.query == "string" ? S.value.quickFilter.query.trim() : ""), pe = Q(Pe.value), ht = g(() => pe.value.trim() !== Pe.value), cn = g(() => Wa(J.value)), dn = g(() => {
|
|
3336
|
+
const t = (u) => K.value.get(u) ?? u, n = e.advancedFilter.labels, a = [];
|
|
3334
3337
|
for (const [u, c] of Object.entries(S.value.columnFilters ?? {}))
|
|
3335
|
-
c && a.push(
|
|
3338
|
+
c && a.push(li(t(u), c, n));
|
|
3336
3339
|
for (const [u, c] of Object.entries(S.value.advancedFilters ?? {}))
|
|
3337
3340
|
c && a.push(_o(
|
|
3338
|
-
|
|
3341
|
+
oi(t(u), c, n),
|
|
3339
3342
|
n
|
|
3340
3343
|
));
|
|
3341
3344
|
return $e.value && a.push(_o(
|
|
@@ -3501,7 +3504,7 @@ const si = {
|
|
|
3501
3504
|
e.runtime.api.rows.setAggregationModel(t), oe.value = Yt(t), Ke.value = !1;
|
|
3502
3505
|
}, Se = (t) => s.value.find((n) => n.key === t)?.direction ?? null;
|
|
3503
3506
|
function fn() {
|
|
3504
|
-
|
|
3507
|
+
qa(v), v = null;
|
|
3505
3508
|
}
|
|
3506
3509
|
const fl = (t, n, a, u, c) => {
|
|
3507
3510
|
if (v = null, t !== b)
|
|
@@ -3858,7 +3861,7 @@ const si = {
|
|
|
3858
3861
|
operation: n,
|
|
3859
3862
|
sourceRowIds: a.map((h) => String(h))
|
|
3860
3863
|
};
|
|
3861
|
-
const c =
|
|
3864
|
+
const c = ei(u);
|
|
3862
3865
|
return c && await Cl(c), !0;
|
|
3863
3866
|
}, Oe = () => e.runtime.api.rows.hasInsertSupport(), Xe = () => e.runtime.api.rows.hasDataMutationSupport(), Ct = (t) => !t || typeof t != "object" ? !1 : "data" in t || "row" in t || "kind" in t || "state" in t || "sourceIndex" in t || "originalIndex" in t || "displayIndex" in t, Me = (t) => {
|
|
3864
3867
|
const n = t;
|
|
@@ -3965,16 +3968,16 @@ const si = {
|
|
|
3965
3968
|
if (p < 0 || p >= e.runtime.api.rows.getCount())
|
|
3966
3969
|
return !1;
|
|
3967
3970
|
const x = e.runtime.getBodyRowAtIndex(p);
|
|
3968
|
-
return x != null && x.kind !== "group" && !
|
|
3971
|
+
return x != null && x.kind !== "group" && !zr(x);
|
|
3969
3972
|
}, a = () => {
|
|
3970
3973
|
const m = st(), p = yn();
|
|
3971
3974
|
if (!m || p < 0)
|
|
3972
3975
|
return [];
|
|
3973
|
-
const x = Math.min(m.startColumn, m.endColumn), V = Math.max(m.startColumn, m.endColumn), _ = Math.min(m.startRow, m.endRow),
|
|
3974
|
-
if (x !== 0 || V !== p || ee >= 0 && (ee < _ || ee >
|
|
3976
|
+
const x = Math.min(m.startColumn, m.endColumn), V = Math.max(m.startColumn, m.endColumn), _ = Math.min(m.startRow, m.endRow), N = Math.max(m.startRow, m.endRow), ee = t.length > 0 ? e.runtime.resolveBodyRowIndexById(t) : -1;
|
|
3977
|
+
if (x !== 0 || V !== p || ee >= 0 && (ee < _ || ee > N))
|
|
3975
3978
|
return [];
|
|
3976
3979
|
const Ae = [];
|
|
3977
|
-
for (let Ce = _; Ce <=
|
|
3980
|
+
for (let Ce = _; Ce <= N; Ce += 1) {
|
|
3978
3981
|
const W = e.runtime.getBodyRowAtIndex(Ce);
|
|
3979
3982
|
if (!W || W.kind === "group" || W.rowId == null)
|
|
3980
3983
|
continue;
|
|
@@ -4050,10 +4053,10 @@ const si = {
|
|
|
4050
4053
|
const u = tt(et(n)), c = u.includes(n) ? u : tt([n]);
|
|
4051
4054
|
if (c.length === 0 || c.includes(a))
|
|
4052
4055
|
return !1;
|
|
4053
|
-
const h = _e(), m = new Set(c), x = h.filter((
|
|
4054
|
-
const ee = Me(
|
|
4056
|
+
const h = _e(), m = new Set(c), x = h.filter((N) => {
|
|
4057
|
+
const ee = Me(N);
|
|
4055
4058
|
return ee == null || !m.has(ee);
|
|
4056
|
-
}).findIndex((
|
|
4059
|
+
}).findIndex((N) => Me(N) === a);
|
|
4057
4060
|
if (x < 0)
|
|
4058
4061
|
return !1;
|
|
4059
4062
|
const V = ye(), _ = nt(
|
|
@@ -4078,8 +4081,8 @@ const si = {
|
|
|
4078
4081
|
const _ = m.indexOf(a);
|
|
4079
4082
|
if (_ < 0)
|
|
4080
4083
|
return !1;
|
|
4081
|
-
const
|
|
4082
|
-
m.splice(
|
|
4084
|
+
const N = t.placement === "after" ? _ + 1 : _;
|
|
4085
|
+
m.splice(N, 0, V);
|
|
4083
4086
|
const ee = gl(), Ae = h.pin ?? "none";
|
|
4084
4087
|
return (c.pin ?? "none") !== Ae && e.runtime.api.columns.setPin(n, Ae), e.runtime.api.columns.setOrder(m), Rn(ee), !0;
|
|
4085
4088
|
}, Ml = () => re.value ? (re.value = null, !0) : !1, xl = (t) => {
|
|
@@ -4096,7 +4099,7 @@ const si = {
|
|
|
4096
4099
|
const En = (t, n) => {
|
|
4097
4100
|
if (n)
|
|
4098
4101
|
return n;
|
|
4099
|
-
const a = Eo[t], u =
|
|
4102
|
+
const a = Eo[t], u = di[t];
|
|
4100
4103
|
return u ? `${a} (${u})` : a;
|
|
4101
4104
|
}, Wt = () => {
|
|
4102
4105
|
const t = e.runtimeRowModel?.dataSource;
|
|
@@ -4158,7 +4161,7 @@ const si = {
|
|
|
4158
4161
|
captureHistorySnapshotForRowIds: _l,
|
|
4159
4162
|
recordHistoryIntentTransaction: Tn,
|
|
4160
4163
|
revealCellInComfortZone: El
|
|
4161
|
-
} =
|
|
4164
|
+
} = ja({
|
|
4162
4165
|
mode: k,
|
|
4163
4166
|
layoutMode: g(() => e.layoutMode),
|
|
4164
4167
|
minRows: g(() => e.minRows),
|
|
@@ -4242,7 +4245,7 @@ const si = {
|
|
|
4242
4245
|
"grid-cell--find-match-flash-a": c.flashPhase === 0,
|
|
4243
4246
|
"grid-cell--find-match-flash-b": c.flashPhase === 1
|
|
4244
4247
|
};
|
|
4245
|
-
return
|
|
4248
|
+
return Qa(
|
|
4246
4249
|
h,
|
|
4247
4250
|
e.cellClass?.(t, n, a, u)
|
|
4248
4251
|
);
|
|
@@ -4344,7 +4347,7 @@ const si = {
|
|
|
4344
4347
|
);
|
|
4345
4348
|
const {
|
|
4346
4349
|
contextMenu: fe,
|
|
4347
|
-
contextMenuRef:
|
|
4350
|
+
contextMenuRef: $,
|
|
4348
4351
|
contextMenuStyle: zl,
|
|
4349
4352
|
closeContextMenu: He,
|
|
4350
4353
|
openContextMenu: i,
|
|
@@ -4486,14 +4489,14 @@ const si = {
|
|
|
4486
4489
|
return !1;
|
|
4487
4490
|
const V = Math.max(0, u + 1), _ = Ve(
|
|
4488
4491
|
p[0] ?? a
|
|
4489
|
-
) ?? Ve(a),
|
|
4492
|
+
) ?? Ve(a), N = p.length > 0 ? nt(p, V) : e.runtime.api.rows.insertDataAt(
|
|
4490
4493
|
V,
|
|
4491
4494
|
h.map((ee) => Mn(ee, _))
|
|
4492
4495
|
);
|
|
4493
|
-
return
|
|
4496
|
+
return N && re.value?.operation === "cut" && (re.value = null), N && O(
|
|
4494
4497
|
m,
|
|
4495
4498
|
p.length > 0 ? p.length > 1 ? `Move ${p.length} rows` : "Move row" : h.length > 1 ? `Paste ${h.length} rows` : "Paste row"
|
|
4496
|
-
),
|
|
4499
|
+
), N;
|
|
4497
4500
|
}
|
|
4498
4501
|
return !1;
|
|
4499
4502
|
}
|
|
@@ -4535,7 +4538,7 @@ const si = {
|
|
|
4535
4538
|
}
|
|
4536
4539
|
return !1;
|
|
4537
4540
|
};
|
|
4538
|
-
const
|
|
4541
|
+
const L = kr({
|
|
4539
4542
|
resolveContextMenuState: () => ({
|
|
4540
4543
|
zone: fe.value.zone,
|
|
4541
4544
|
columnKey: fe.value.columnKey,
|
|
@@ -4625,15 +4628,15 @@ const si = {
|
|
|
4625
4628
|
const n = fe.value.columnKey ?? "";
|
|
4626
4629
|
if (!e.cellMenu.enabled || !n)
|
|
4627
4630
|
return [];
|
|
4628
|
-
const a = Bn(e.cellMenu, n), u = new Set(
|
|
4631
|
+
const a = Bn(e.cellMenu, n), u = new Set(ha(e.cellMenu, n)), c = Ra(e.cellMenu, n), h = ba(e.cellMenu, n), m = ya(e.cellMenu, n), p = Ca(e.cellMenu, n), x = [];
|
|
4629
4632
|
for (const V of a) {
|
|
4630
|
-
const
|
|
4633
|
+
const N = (ui[V] ?? []).flatMap((ee) => {
|
|
4631
4634
|
const Ae = Mt(V, ee, u, c, m);
|
|
4632
4635
|
return Ae ? [Ae] : [];
|
|
4633
4636
|
});
|
|
4634
|
-
if (
|
|
4637
|
+
if (N.length !== 0) {
|
|
4635
4638
|
if (V === "pasteSpecial") {
|
|
4636
|
-
const ee = u.has(V) ||
|
|
4639
|
+
const ee = u.has(V) || N.every((Ae) => Ae.disabled);
|
|
4637
4640
|
x.push({
|
|
4638
4641
|
itemKey: V,
|
|
4639
4642
|
entries: [{
|
|
@@ -4641,15 +4644,15 @@ const si = {
|
|
|
4641
4644
|
id: "paste-special-submenu",
|
|
4642
4645
|
label: h.pasteSpecial ?? "Paste special",
|
|
4643
4646
|
disabled: ee,
|
|
4644
|
-
title: c[V] ?? (
|
|
4645
|
-
entries:
|
|
4647
|
+
title: c[V] ?? (N.length === 1 ? N[0]?.title : void 0),
|
|
4648
|
+
entries: N
|
|
4646
4649
|
}]
|
|
4647
4650
|
});
|
|
4648
4651
|
continue;
|
|
4649
4652
|
}
|
|
4650
4653
|
x.push({
|
|
4651
4654
|
itemKey: V,
|
|
4652
|
-
entries:
|
|
4655
|
+
entries: N
|
|
4653
4656
|
});
|
|
4654
4657
|
}
|
|
4655
4658
|
}
|
|
@@ -4662,9 +4665,9 @@ const si = {
|
|
|
4662
4665
|
if (t === "row-index") {
|
|
4663
4666
|
if (!e.rowIndexMenu.enabled)
|
|
4664
4667
|
return [];
|
|
4665
|
-
const n = yt(fe.value.rowId ?? ""), a =
|
|
4668
|
+
const n = yt(fe.value.rowId ?? ""), a = pa(e.rowIndexMenu), u = new Set(Sa(e.rowIndexMenu)), c = Ia(e.rowIndexMenu), h = Ma(e.rowIndexMenu), m = [];
|
|
4666
4669
|
for (const p of a) {
|
|
4667
|
-
const V = (
|
|
4670
|
+
const V = (ci[p] ?? []).flatMap((_) => {
|
|
4668
4671
|
const ee = h[_ === "insert-row-above" ? "insertAbove" : _ === "insert-row-below" ? "insertBelow" : _ === "copy-row" ? "copy" : _ === "paste-row" ? "paste" : _ === "delete-selected-rows" ? "deleteSelected" : "cut"];
|
|
4669
4672
|
if (ee?.hidden)
|
|
4670
4673
|
return [];
|
|
@@ -4686,7 +4689,7 @@ const si = {
|
|
|
4686
4689
|
}
|
|
4687
4690
|
return [];
|
|
4688
4691
|
}), Te = (t) => {
|
|
4689
|
-
y.dispatchViewportContextMenu(t);
|
|
4692
|
+
Tr(t) || y.dispatchViewportContextMenu(t);
|
|
4690
4693
|
}, xt = () => {
|
|
4691
4694
|
Ie.value?.querySelector(".grid-body-viewport")?.focus({ preventScroll: !0 });
|
|
4692
4695
|
}, Pl = () => {
|
|
@@ -4700,7 +4703,7 @@ const si = {
|
|
|
4700
4703
|
xt();
|
|
4701
4704
|
});
|
|
4702
4705
|
}, Vl = async (t) => {
|
|
4703
|
-
await
|
|
4706
|
+
await L.runContextMenuAction(t) && (xt(), He(), Pl());
|
|
4704
4707
|
}, Wo = async (t) => {
|
|
4705
4708
|
if (!t.disabled && t.kind !== "submenu") {
|
|
4706
4709
|
if (t.actionId) {
|
|
@@ -4760,7 +4763,7 @@ const si = {
|
|
|
4760
4763
|
}
|
|
4761
4764
|
}, u.label)];
|
|
4762
4765
|
}), mo = () => !fe.value.visible || Z.value.length === 0 ? null : B("div", {
|
|
4763
|
-
ref:
|
|
4766
|
+
ref: $,
|
|
4764
4767
|
class: "datagrid-context-menu",
|
|
4765
4768
|
style: zl.value,
|
|
4766
4769
|
role: "menu",
|
|
@@ -4799,7 +4802,7 @@ const si = {
|
|
|
4799
4802
|
return;
|
|
4800
4803
|
const u = (h) => {
|
|
4801
4804
|
const m = h.target;
|
|
4802
|
-
m &&
|
|
4805
|
+
m && $.value?.contains(m) || He();
|
|
4803
4806
|
}, c = () => {
|
|
4804
4807
|
He();
|
|
4805
4808
|
};
|
|
@@ -4861,7 +4864,7 @@ const si = {
|
|
|
4861
4864
|
}
|
|
4862
4865
|
})), e.columnLayout.enabled && t.push({
|
|
4863
4866
|
key: "column-layout",
|
|
4864
|
-
component:
|
|
4867
|
+
component: na,
|
|
4865
4868
|
props: {
|
|
4866
4869
|
isOpen: T.value,
|
|
4867
4870
|
items: ce.value,
|
|
@@ -4893,7 +4896,7 @@ const si = {
|
|
|
4893
4896
|
}
|
|
4894
4897
|
}), e.advancedFilter.enabled && t.push({
|
|
4895
4898
|
key: "advanced-filter",
|
|
4896
|
-
component:
|
|
4899
|
+
component: La,
|
|
4897
4900
|
props: {
|
|
4898
4901
|
isOpen: Xt.value,
|
|
4899
4902
|
clauses: Wn.value,
|
|
@@ -4914,7 +4917,7 @@ const si = {
|
|
|
4914
4917
|
}
|
|
4915
4918
|
}), e.findReplace.enabled && t.push({
|
|
4916
4919
|
key: "find-replace",
|
|
4917
|
-
component:
|
|
4920
|
+
component: Ka,
|
|
4918
4921
|
props: {
|
|
4919
4922
|
isOpen: te.isPanelOpen.value,
|
|
4920
4923
|
findText: te.findText.value,
|
|
@@ -4938,7 +4941,7 @@ const si = {
|
|
|
4938
4941
|
}
|
|
4939
4942
|
}), e.aggregations.enabled && e.mode !== "pivot" && t.push({
|
|
4940
4943
|
key: "aggregations",
|
|
4941
|
-
component:
|
|
4944
|
+
component: Na,
|
|
4942
4945
|
props: {
|
|
4943
4946
|
isOpen: Ke.value,
|
|
4944
4947
|
basis: vt.value,
|
|
@@ -4955,7 +4958,7 @@ const si = {
|
|
|
4955
4958
|
onApply: Qe,
|
|
4956
4959
|
onCancel: We
|
|
4957
4960
|
}
|
|
4958
|
-
}), [...t, ...e.toolbarModules].map(
|
|
4961
|
+
}), [...t, ...e.toolbarModules].map(Ua);
|
|
4959
4962
|
});
|
|
4960
4963
|
q(
|
|
4961
4964
|
Pn,
|
|
@@ -5055,11 +5058,11 @@ const si = {
|
|
|
5055
5058
|
]);
|
|
5056
5059
|
}
|
|
5057
5060
|
});
|
|
5058
|
-
function
|
|
5061
|
+
function Bi() {
|
|
5059
5062
|
return (e) => e;
|
|
5060
5063
|
}
|
|
5061
5064
|
const $l = /* @__PURE__ */ new WeakMap(), To = /* @__PURE__ */ new WeakMap();
|
|
5062
|
-
function
|
|
5065
|
+
function mi(e) {
|
|
5063
5066
|
if (!e)
|
|
5064
5067
|
return;
|
|
5065
5068
|
const l = $l.get(e);
|
|
@@ -5076,16 +5079,16 @@ function di(e) {
|
|
|
5076
5079
|
expandedByDefault: r
|
|
5077
5080
|
}), $l.set(e, o), o;
|
|
5078
5081
|
}
|
|
5079
|
-
function mi(e) {
|
|
5080
|
-
return !e || e.length === 0 ? [] : e.map((l) => ({ ...l }));
|
|
5081
|
-
}
|
|
5082
5082
|
function fi(e) {
|
|
5083
5083
|
return !e || e.length === 0 ? [] : e.map((l) => ({ ...l }));
|
|
5084
5084
|
}
|
|
5085
5085
|
function wi(e) {
|
|
5086
|
-
return !e || e.length === 0 ? [] : e.map((
|
|
5086
|
+
return !e || e.length === 0 ? [] : e.map((l) => ({ ...l }));
|
|
5087
5087
|
}
|
|
5088
5088
|
function vi(e) {
|
|
5089
|
+
return !e || e.length === 0 ? [] : e.map(({ formula: l, filter: r, ...o }) => ({ ...o }));
|
|
5090
|
+
}
|
|
5091
|
+
function gi(e) {
|
|
5089
5092
|
return !e || e.length === 0 ? [] : e.flatMap((l) => {
|
|
5090
5093
|
const r = typeof l.formula == "string" ? l.formula.trim() : "";
|
|
5091
5094
|
return r ? [{
|
|
@@ -5094,19 +5097,19 @@ function vi(e) {
|
|
|
5094
5097
|
}] : [];
|
|
5095
5098
|
});
|
|
5096
5099
|
}
|
|
5097
|
-
function
|
|
5100
|
+
function hi(e, l) {
|
|
5098
5101
|
const r = /* @__PURE__ */ new Map();
|
|
5099
5102
|
for (const o of e)
|
|
5100
5103
|
r.set(o.name, { ...o });
|
|
5101
|
-
for (const o of
|
|
5104
|
+
for (const o of fi(l))
|
|
5102
5105
|
r.set(o.name, o);
|
|
5103
5106
|
return Array.from(r.values());
|
|
5104
5107
|
}
|
|
5105
|
-
function Bi(e) {
|
|
5106
|
-
return wi(e);
|
|
5107
|
-
}
|
|
5108
5108
|
function Gi(e) {
|
|
5109
|
-
|
|
5109
|
+
return vi(e);
|
|
5110
|
+
}
|
|
5111
|
+
function Li(e) {
|
|
5112
|
+
const l = mi(e.clientRowModelOptions), r = e.enterpriseClientRowModelOptions, o = gi(e.columns), s = e.formulas !== void 0, d = e.computedFields !== void 0, v = e.formulaFunctions !== void 0, b = o.length > 0, R = s || b ? hi(o, e.formulas) : void 0, S = d ? wi(e.computedFields) : void 0, F = v ? e.formulaFunctions ?? {} : void 0, Y = !!(b || s || d || v);
|
|
5110
5113
|
if (!l && !Y)
|
|
5111
5114
|
return r ? {
|
|
5112
5115
|
...r
|
|
@@ -5142,7 +5145,7 @@ function Gi(e) {
|
|
|
5142
5145
|
...r?.formulaColumnCacheMaxColumns !== void 0 ? { formulaColumnCacheMaxColumns: r.formulaColumnCacheMaxColumns } : {}
|
|
5143
5146
|
};
|
|
5144
5147
|
}
|
|
5145
|
-
const
|
|
5148
|
+
const bi = "comfortable", Ri = {
|
|
5146
5149
|
comfortable: {
|
|
5147
5150
|
toolbarGap: 10,
|
|
5148
5151
|
workspaceGap: 12
|
|
@@ -5152,25 +5155,25 @@ const hi = "comfortable", bi = {
|
|
|
5152
5155
|
workspaceGap: 8
|
|
5153
5156
|
}
|
|
5154
5157
|
};
|
|
5155
|
-
function Ri(e) {
|
|
5156
|
-
return e === "compact" ? "compact" : hi;
|
|
5157
|
-
}
|
|
5158
5158
|
function yi(e) {
|
|
5159
|
+
return e === "compact" ? "compact" : bi;
|
|
5160
|
+
}
|
|
5161
|
+
function Ci(e) {
|
|
5159
5162
|
return e === "integrated" || e === "hidden" || e === "stacked" ? e : "stacked";
|
|
5160
5163
|
}
|
|
5161
5164
|
function zo(e, l) {
|
|
5162
5165
|
return Number.isFinite(e) ? Math.max(0, e) : l;
|
|
5163
5166
|
}
|
|
5164
|
-
function
|
|
5165
|
-
const l = typeof e == "object" && e !== null ? e : null, r =
|
|
5167
|
+
function Ni(e) {
|
|
5168
|
+
const l = typeof e == "object" && e !== null ? e : null, r = yi(typeof e == "string" ? e : l?.density), o = Ri[r];
|
|
5166
5169
|
return {
|
|
5167
5170
|
density: r,
|
|
5168
|
-
toolbarPlacement:
|
|
5171
|
+
toolbarPlacement: Ci(l?.toolbarPlacement),
|
|
5169
5172
|
toolbarGap: zo(l?.toolbarGap, o.toolbarGap),
|
|
5170
5173
|
workspaceGap: zo(l?.workspaceGap, o.workspaceGap)
|
|
5171
5174
|
};
|
|
5172
5175
|
}
|
|
5173
|
-
function
|
|
5176
|
+
function Ki(e) {
|
|
5174
5177
|
return typeof e == "boolean" ? {
|
|
5175
5178
|
enabled: e
|
|
5176
5179
|
} : e ? {
|
|
@@ -5179,7 +5182,7 @@ function Ni(e) {
|
|
|
5179
5182
|
enabled: !1
|
|
5180
5183
|
};
|
|
5181
5184
|
}
|
|
5182
|
-
function
|
|
5185
|
+
function $i(e) {
|
|
5183
5186
|
return typeof e == "boolean" ? {
|
|
5184
5187
|
enabled: e
|
|
5185
5188
|
} : e ? {
|
|
@@ -5192,7 +5195,7 @@ function Po() {
|
|
|
5192
5195
|
const e = globalThis.performance;
|
|
5193
5196
|
return e && typeof e.now == "function" ? e.now() : Date.now();
|
|
5194
5197
|
}
|
|
5195
|
-
const
|
|
5198
|
+
const pi = (e, l) => {
|
|
5196
5199
|
const r = Po();
|
|
5197
5200
|
return {
|
|
5198
5201
|
result: l(),
|
|
@@ -5201,11 +5204,11 @@ const Ci = (e, l) => {
|
|
|
5201
5204
|
};
|
|
5202
5205
|
function Vo(e) {
|
|
5203
5206
|
return {
|
|
5204
|
-
projectionStageTimer:
|
|
5207
|
+
projectionStageTimer: pi,
|
|
5205
5208
|
...e ?? {}
|
|
5206
5209
|
};
|
|
5207
5210
|
}
|
|
5208
|
-
function
|
|
5211
|
+
function Ui(e) {
|
|
5209
5212
|
const l = Q(0), r = jl(), o = Ul(
|
|
5210
5213
|
e.rowModel.value ? null : jl({
|
|
5211
5214
|
rows: e.rows.value,
|
|
@@ -5257,22 +5260,22 @@ function $i(e) {
|
|
|
5257
5260
|
};
|
|
5258
5261
|
}
|
|
5259
5262
|
export {
|
|
5260
|
-
|
|
5263
|
+
ji as D,
|
|
5261
5264
|
po as a,
|
|
5262
|
-
|
|
5263
|
-
|
|
5264
|
-
|
|
5265
|
-
|
|
5266
|
-
|
|
5267
|
-
|
|
5268
|
-
|
|
5269
|
-
|
|
5270
|
-
|
|
5265
|
+
Ki as b,
|
|
5266
|
+
Li as c,
|
|
5267
|
+
$i as d,
|
|
5268
|
+
xa as e,
|
|
5269
|
+
ja as f,
|
|
5270
|
+
Pi as g,
|
|
5271
|
+
Vi as h,
|
|
5272
|
+
Hi as i,
|
|
5273
|
+
Ei as j,
|
|
5271
5274
|
ql as k,
|
|
5272
|
-
|
|
5273
|
-
|
|
5274
|
-
|
|
5275
|
-
|
|
5276
|
-
|
|
5277
|
-
|
|
5275
|
+
Gi as l,
|
|
5276
|
+
zi as m,
|
|
5277
|
+
Ti as n,
|
|
5278
|
+
Bi as o,
|
|
5279
|
+
Ni as r,
|
|
5280
|
+
Ui as u
|
|
5278
5281
|
};
|