@affino/datagrid-vue-app 0.1.3 → 0.1.5
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 +2 -2
- package/dist/chunks/{DataGridGanttStage.vue_vue_type_script_setup_true_lang-CYwB5Dpa.js → DataGridGanttStage.vue_vue_type_script_setup_true_lang-Jmd76whO.js} +1 -1
- package/dist/chunks/{DataGridGanttStageEntry-B9YlOHt1.js → DataGridGanttStageEntry-bwovuF8o.js} +1 -1
- package/dist/chunks/{DataGridTableStage.vue_vue_type_script_setup_true_lang-BJJoBCsA.js → DataGridTableStage.vue_vue_type_script_setup_true_lang-BI_C6XtF.js} +1342 -1315
- package/dist/chunks/{useDataGridAppRowModel-Di-Zatjs.js → useDataGridAppRowModel-7DfVdtXX.js} +2 -2
- package/dist/config/dataGridFormulaOptions.d.ts +14 -2
- package/dist/gantt.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/internal.d.ts +1 -1
- package/dist/internal.js +3 -3
- package/dist/stage/DataGridCellContentRenderer.d.ts +15 -0
- package/dist/stage/dataGridTableStageBody.types.d.ts +5 -2
- package/package.json +4 -4
|
@@ -1,50 +1,50 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { serializeColumnValueToToken as
|
|
3
|
-
import { useDataGridLinkedPaneScrollSync as
|
|
1
|
+
import { defineComponent as ot, ref as P, inject as Ja, computed as u, watch as it, openBlock as s, createBlock as oe, unref as d, withCtx as ae, createVNode as _e, renderSlot as Xt, normalizeStyle as E, createTextVNode as en, toDisplayString as z, createCommentVNode as S, createElementBlock as g, Fragment as J, renderList as le, createElementVNode as f, withModifiers as y, normalizeClass as j, withDirectives as Mi, vModelText as Ai, toRef as Xe, provide as Ii, toRefs as Ei, onBeforeUnmount as Bi, onMounted as Fi, nextTick as $i } from "vue";
|
|
2
|
+
import { serializeColumnValueToToken as Li, buildDataGridCellRenderModel as Ti } from "@affino/datagrid-vue";
|
|
3
|
+
import { useDataGridLinkedPaneScrollSync as zi, useDataGridManagedWheelScroll as Pi } from "@affino/datagrid-vue/advanced";
|
|
4
4
|
import { buildDataGridChromeRenderModel as Tr } from "@affino/datagrid-chrome";
|
|
5
|
-
import { UiMenu as
|
|
6
|
-
import { d as
|
|
7
|
-
const
|
|
5
|
+
import { UiMenu as Vi, UiMenuTrigger as Di, UiMenuContent as Hi, UiMenuLabel as Oi, UiMenuSeparator as lr, UiMenuItem as Mt, UiSubMenu as Gi, UiSubMenuTrigger as Wi, UiSubMenuContent as Ki } from "@affino/menu-vue";
|
|
6
|
+
import { d as ji, r as Ni, _ as qi } from "./DataGridFilterableCombobox.vue_vue_type_script_setup_true_lang-_1TDQseN.js";
|
|
7
|
+
const Ui = ["title"], Xi = {
|
|
8
8
|
key: 0,
|
|
9
9
|
class: "datagrid-column-menu__state"
|
|
10
|
-
},
|
|
10
|
+
}, Yi = ["title"], Zi = {
|
|
11
11
|
key: 0,
|
|
12
12
|
class: "datagrid-column-menu__state"
|
|
13
|
-
},
|
|
13
|
+
}, Qi = ["title"], Ji = ["title"], eo = {
|
|
14
14
|
key: 0,
|
|
15
15
|
class: "datagrid-column-menu__state"
|
|
16
|
-
},
|
|
16
|
+
}, to = ["title"], ro = {
|
|
17
17
|
key: 0,
|
|
18
18
|
class: "datagrid-column-menu__state"
|
|
19
|
-
},
|
|
19
|
+
}, ao = ["title"], no = {
|
|
20
20
|
key: 0,
|
|
21
21
|
class: "datagrid-column-menu__state"
|
|
22
|
-
},
|
|
22
|
+
}, io = ["title"], oo = { class: "datagrid-column-menu__section-head" }, lo = { class: "datagrid-column-menu__section-title" }, so = ["data-disabled-reason", "disabled", "title"], uo = ["value", "disabled", "title"], co = {
|
|
23
23
|
key: 1,
|
|
24
24
|
class: "datagrid-column-menu__hint"
|
|
25
|
-
},
|
|
25
|
+
}, go = ["disabled", "title"], po = {
|
|
26
26
|
key: 3,
|
|
27
27
|
class: "datagrid-column-menu__merge-toggle",
|
|
28
28
|
"data-datagrid-column-menu-action": "add-current-selection"
|
|
29
|
-
},
|
|
29
|
+
}, vo = ["checked", "disabled", "title"], mo = {
|
|
30
30
|
key: 5,
|
|
31
31
|
class: "datagrid-column-menu__toolbar"
|
|
32
|
-
},
|
|
32
|
+
}, ho = ["data-disabled-reason", "disabled", "title"], bo = ["data-disabled-reason", "disabled", "title"], fo = { class: "datagrid-column-menu__summary" }, yo = {
|
|
33
33
|
key: 6,
|
|
34
34
|
class: "datagrid-column-menu__values"
|
|
35
|
-
},
|
|
35
|
+
}, xo = ["aria-label"], wo = ["aria-selected"], ko = ["checked", "disabled", "title", "onChange"], Co = { class: "datagrid-column-menu__value-label" }, _o = { class: "datagrid-column-menu__value-count" }, So = {
|
|
36
36
|
key: 0,
|
|
37
37
|
class: "datagrid-column-menu__empty"
|
|
38
|
-
},
|
|
38
|
+
}, Ro = {
|
|
39
39
|
key: 7,
|
|
40
40
|
class: "datagrid-column-menu__summary"
|
|
41
|
-
},
|
|
41
|
+
}, Mo = {
|
|
42
42
|
key: 8,
|
|
43
43
|
class: "datagrid-column-menu__hint"
|
|
44
|
-
},
|
|
44
|
+
}, Ao = {
|
|
45
45
|
key: 10,
|
|
46
46
|
class: "datagrid-column-menu__footer"
|
|
47
|
-
},
|
|
47
|
+
}, Io = ["data-disabled-reason", "disabled", "title"], Eo = 1e5, zr = /* @__PURE__ */ ot({
|
|
48
48
|
__name: "DataGridColumnMenu",
|
|
49
49
|
props: {
|
|
50
50
|
rows: {},
|
|
@@ -71,32 +71,32 @@ const Nn = ["title"], qn = {
|
|
|
71
71
|
maxFilterValues: {}
|
|
72
72
|
},
|
|
73
73
|
emits: ["sort", "pin", "group", "apply-filter", "clear-filter", "update-text-filter"],
|
|
74
|
-
setup(
|
|
75
|
-
const A =
|
|
76
|
-
const
|
|
77
|
-
return Math.min(
|
|
78
|
-
}), H = u(() => A.filterEnabled ? A.rows.length <= Se.value : !1), fe = u(() => A.filterEnabled && !H.value),
|
|
74
|
+
setup(n, { emit: ee }) {
|
|
75
|
+
const A = n, L = ee, _ = P(null), K = Ja(ji, P(null)), D = P(!1), F = P(""), I = P(!1), p = P([]), x = P([]), w = P({}), B = u(() => Bt(A.columnDataType)), Me = u(() => new Set(A.disabledItems)), v = u(() => !A.grouped || !Number.isFinite(A.groupOrder) ? null : `Level ${Number(A.groupOrder) + 1}`), Se = u(() => {
|
|
76
|
+
const h = Number.isFinite(A.valueFilterRowLimit) && A.valueFilterRowLimit >= 0 ? A.valueFilterRowLimit : Number.POSITIVE_INFINITY;
|
|
77
|
+
return Math.min(h, Eo);
|
|
78
|
+
}), H = u(() => A.filterEnabled ? A.rows.length <= Se.value : !1), fe = u(() => A.filterEnabled && !H.value), Y = u(() => A.items.filter((h) => h === "sort" ? U("sortAsc") || U("sortDesc") || U("clearSort") : h === "group" ? U("toggleGroup") : h === "pin" ? Ye.value : h === "filter" ? N.value : !0)), Z = u(() => Me.value.has("sort")), ye = u(() => Me.value.has("group")), te = u(() => Me.value.has("pin")), C = u(() => Me.value.has("filter")), k = u(() => new Set(x.value)), N = u(() => H.value || A.textFilterEnabled), R = u(() => A.textFilterEnabled && !H.value), $ = u(() => F.value.trim().length > 0), Ye = u(() => U("pinMenu") && (U("pinLeft") || U("pinRight") || U("unpin"))), xe = u(() => re(
|
|
79
79
|
"toggleGroup",
|
|
80
80
|
A.labels.group ?? (A.grouped ? "Ungroup column" : "Group by this column")
|
|
81
|
-
)),
|
|
81
|
+
)), X = u(() => re("pinMenu", A.labels.pin ?? "Pin column")), lt = u(() => A.labels.filter ?? (H.value ? "Filter" : "Filter by text")), xt = u(() => re("sortAsc", B.value.asc)), dt = u(() => re("sortDesc", B.value.desc)), Ee = u(() => re("clearSort", "Clear sort")), Oe = u(() => re("pinLeft", "Pin left")), Te = u(() => re("pinRight", "Pin right")), At = u(() => re("unpin", "Unpin")), It = u(() => re("clearFilter", "Clear filter")), Et = u(() => re(
|
|
82
82
|
"addCurrentSelectionToFilter",
|
|
83
83
|
"Add current selection to filter"
|
|
84
84
|
)), Ze = u(() => re("selectAllValues", "Select all")), Be = u(() => re("clearAllValues", "Clear all")), Qe = u(() => re("cancelFilter", "Cancel")), wt = u(() => re("applyFilter", "Apply")), we = u(() => {
|
|
85
|
-
const
|
|
86
|
-
return
|
|
87
|
-
}), Ae = u(() => $.value ? we.value : we.value.slice(0, A.maxFilterValues)),
|
|
88
|
-
if ($.value && !
|
|
89
|
-
const
|
|
90
|
-
return x.value.filter((
|
|
85
|
+
const h = F.value.trim().toLowerCase();
|
|
86
|
+
return h.length > 0 ? p.value.filter((i) => i.searchText.includes(h)) : p.value;
|
|
87
|
+
}), Ae = u(() => $.value ? we.value : we.value.slice(0, A.maxFilterValues)), st = u(() => $.value ? 0 : Math.max(0, we.value.length - Ae.value.length)), ke = u(() => {
|
|
88
|
+
if ($.value && !I.value) {
|
|
89
|
+
const h = new Set(Ae.value.map((i) => i.token));
|
|
90
|
+
return x.value.filter((i) => h.has(i));
|
|
91
91
|
}
|
|
92
92
|
return x.value;
|
|
93
|
-
}), kt = u(() => $.value ?
|
|
93
|
+
}), kt = u(() => $.value ? I.value ? p.value.length : Ae.value.length : p.value.length), Je = u(() => ke.value.length), ge = u(() => p.value.length > 0 && x.value.length === p.value.length), pe = u(() => H.value && p.value.length > 0 && ke.value.length > 0), Re = {
|
|
94
94
|
mousePrediction: {},
|
|
95
95
|
loopFocus: !0,
|
|
96
96
|
closeOnSelect: !0,
|
|
97
97
|
openDelay: 0,
|
|
98
98
|
closeDelay: 90
|
|
99
|
-
},
|
|
99
|
+
}, ut = {
|
|
100
100
|
mousePrediction: {},
|
|
101
101
|
loopFocus: !0,
|
|
102
102
|
closeOnSelect: !0,
|
|
@@ -110,11 +110,11 @@ const Nn = ["title"], qn = {
|
|
|
110
110
|
D.value = !1;
|
|
111
111
|
}
|
|
112
112
|
};
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
}),
|
|
113
|
+
it($, (h) => {
|
|
114
|
+
h || (I.value = !1);
|
|
115
|
+
}), it(K, () => {
|
|
116
116
|
D.value && Ce();
|
|
117
|
-
}),
|
|
117
|
+
}), it(
|
|
118
118
|
() => [
|
|
119
119
|
D.value,
|
|
120
120
|
A.filterEnabled,
|
|
@@ -123,55 +123,55 @@ const Nn = ["title"], qn = {
|
|
|
123
123
|
A.rows.length,
|
|
124
124
|
A.selectedFilterTokens.length
|
|
125
125
|
],
|
|
126
|
-
([
|
|
127
|
-
|
|
126
|
+
([h]) => {
|
|
127
|
+
h && Ve();
|
|
128
128
|
}
|
|
129
129
|
);
|
|
130
|
-
function ze(
|
|
131
|
-
return
|
|
130
|
+
function ze(h) {
|
|
131
|
+
return h.startsWith("string:") ? `string:${h.slice(7).toLowerCase()}` : h;
|
|
132
132
|
}
|
|
133
|
-
function U(
|
|
134
|
-
return A.actionOptions[
|
|
133
|
+
function U(h) {
|
|
134
|
+
return A.actionOptions[h]?.hidden !== !0;
|
|
135
135
|
}
|
|
136
|
-
function
|
|
137
|
-
return
|
|
136
|
+
function Q(h, i = !1) {
|
|
137
|
+
return i || A.actionOptions[h]?.disabled === !0;
|
|
138
138
|
}
|
|
139
|
-
function re(
|
|
140
|
-
return A.actionOptions[
|
|
139
|
+
function re(h, i) {
|
|
140
|
+
return A.actionOptions[h]?.label ?? i;
|
|
141
141
|
}
|
|
142
|
-
function _t(
|
|
143
|
-
return A.disabledReasons[
|
|
142
|
+
function _t(h) {
|
|
143
|
+
return A.disabledReasons[h] ?? "";
|
|
144
144
|
}
|
|
145
|
-
function Pe(
|
|
146
|
-
if (!
|
|
145
|
+
function Pe(h, i) {
|
|
146
|
+
if (!i)
|
|
147
147
|
return;
|
|
148
|
-
const o = _t(
|
|
148
|
+
const o = _t(h);
|
|
149
149
|
return o.length > 0 ? o : void 0;
|
|
150
150
|
}
|
|
151
|
-
function V(
|
|
152
|
-
if (!
|
|
151
|
+
function V(h, i = !1, o) {
|
|
152
|
+
if (!Q(h, i))
|
|
153
153
|
return;
|
|
154
|
-
const c = A.actionOptions[
|
|
154
|
+
const c = A.actionOptions[h]?.disabledReason?.trim() ?? "";
|
|
155
155
|
if (c.length > 0)
|
|
156
156
|
return c;
|
|
157
157
|
if (o)
|
|
158
158
|
return Pe(o, !0);
|
|
159
159
|
}
|
|
160
|
-
function
|
|
161
|
-
if (
|
|
160
|
+
function Ge(h) {
|
|
161
|
+
if (h == null)
|
|
162
162
|
return "(Blanks)";
|
|
163
|
-
const
|
|
164
|
-
return
|
|
163
|
+
const i = String(h);
|
|
164
|
+
return i.length > 0 ? i : "(Blanks)";
|
|
165
165
|
}
|
|
166
|
-
function
|
|
166
|
+
function Ie(h, i) {
|
|
167
167
|
const o = /* @__PURE__ */ new Map();
|
|
168
|
-
for (const a of
|
|
169
|
-
const c = ze(
|
|
168
|
+
for (const a of h) {
|
|
169
|
+
const c = ze(Li(a[i])), T = o.get(c);
|
|
170
170
|
if (T) {
|
|
171
171
|
T.count += 1;
|
|
172
172
|
continue;
|
|
173
173
|
}
|
|
174
|
-
const O =
|
|
174
|
+
const O = Ge(a[i]);
|
|
175
175
|
o.set(c, {
|
|
176
176
|
token: c,
|
|
177
177
|
label: O,
|
|
@@ -184,74 +184,74 @@ const Nn = ["title"], qn = {
|
|
|
184
184
|
sensitivity: "base"
|
|
185
185
|
}));
|
|
186
186
|
}
|
|
187
|
-
function
|
|
187
|
+
function ce() {
|
|
188
188
|
_.value?.controller?.close("programmatic");
|
|
189
189
|
}
|
|
190
|
-
function
|
|
191
|
-
if (!
|
|
190
|
+
function ct(h) {
|
|
191
|
+
if (!h)
|
|
192
192
|
return;
|
|
193
|
-
const
|
|
194
|
-
if (!
|
|
193
|
+
const i = _.value?.controller;
|
|
194
|
+
if (!i)
|
|
195
195
|
return;
|
|
196
|
-
const o =
|
|
197
|
-
|
|
196
|
+
const o = h.getBoundingClientRect();
|
|
197
|
+
i.setAnchor({
|
|
198
198
|
x: o.left,
|
|
199
199
|
y: o.bottom,
|
|
200
200
|
width: o.width,
|
|
201
201
|
height: 0
|
|
202
|
-
}),
|
|
202
|
+
}), i.open("programmatic");
|
|
203
203
|
}
|
|
204
|
-
function
|
|
204
|
+
function We(h) {
|
|
205
205
|
if (D.value) {
|
|
206
|
-
|
|
206
|
+
ce();
|
|
207
207
|
return;
|
|
208
208
|
}
|
|
209
|
-
|
|
209
|
+
ct(h);
|
|
210
210
|
}
|
|
211
211
|
function Ce() {
|
|
212
|
-
w.value =
|
|
212
|
+
w.value = Ni(K.value);
|
|
213
213
|
}
|
|
214
214
|
function Ve() {
|
|
215
|
-
if (
|
|
215
|
+
if (F.value = "", I.value = !1, !H.value) {
|
|
216
216
|
p.value = [], x.value = [];
|
|
217
217
|
return;
|
|
218
218
|
}
|
|
219
|
-
const
|
|
220
|
-
p.value =
|
|
221
|
-
const
|
|
222
|
-
A.selectedFilterTokens.map((o) => ze(String(o ?? ""))).filter((o) =>
|
|
219
|
+
const h = Ie(A.rows, A.columnKey);
|
|
220
|
+
p.value = h;
|
|
221
|
+
const i = Array.from(new Set(
|
|
222
|
+
A.selectedFilterTokens.map((o) => ze(String(o ?? ""))).filter((o) => h.some((a) => a.token === o))
|
|
223
223
|
));
|
|
224
|
-
x.value =
|
|
224
|
+
x.value = i.length > 0 ? i : h.map((o) => o.token);
|
|
225
225
|
}
|
|
226
|
-
function
|
|
226
|
+
function gt(h) {
|
|
227
227
|
if (C.value)
|
|
228
228
|
return;
|
|
229
|
-
const
|
|
230
|
-
|
|
229
|
+
const i = new Set(x.value);
|
|
230
|
+
i.has(h) ? i.delete(h) : i.add(h), x.value = [...i];
|
|
231
231
|
}
|
|
232
232
|
function ve() {
|
|
233
|
-
C.value || (x.value = p.value.map((
|
|
233
|
+
C.value || (x.value = p.value.map((h) => h.token));
|
|
234
234
|
}
|
|
235
235
|
function me() {
|
|
236
236
|
C.value || (x.value = []);
|
|
237
237
|
}
|
|
238
|
-
function
|
|
239
|
-
C.value || (
|
|
238
|
+
function G(h) {
|
|
239
|
+
C.value || (I.value = h.target.checked);
|
|
240
240
|
}
|
|
241
|
-
function
|
|
242
|
-
C.value || !
|
|
241
|
+
function ie() {
|
|
242
|
+
C.value || !pe.value || (ke.value.length === p.value.length ? L("clear-filter") : L("apply-filter", [...ke.value]), ce());
|
|
243
243
|
}
|
|
244
|
-
function
|
|
245
|
-
C.value || L("update-text-filter",
|
|
244
|
+
function pt(h) {
|
|
245
|
+
C.value || L("update-text-filter", h.target.value);
|
|
246
246
|
}
|
|
247
247
|
function Ke() {
|
|
248
|
-
C.value || !A.filterActive || (L("clear-filter"),
|
|
248
|
+
C.value || !A.filterActive || (L("clear-filter"), ce());
|
|
249
249
|
}
|
|
250
|
-
function
|
|
251
|
-
|
|
250
|
+
function vt() {
|
|
251
|
+
Q("toggleGroup", ye.value || !A.groupEnabled) || (L("group", !A.grouped), ce());
|
|
252
252
|
}
|
|
253
|
-
function Bt(
|
|
254
|
-
switch (
|
|
253
|
+
function Bt(h) {
|
|
254
|
+
switch (h) {
|
|
255
255
|
case "date":
|
|
256
256
|
case "datetime":
|
|
257
257
|
return {
|
|
@@ -277,180 +277,180 @@ const Nn = ["title"], qn = {
|
|
|
277
277
|
};
|
|
278
278
|
}
|
|
279
279
|
}
|
|
280
|
-
return (
|
|
280
|
+
return (h, i) => (s(), oe(d(Vi), {
|
|
281
281
|
ref_key: "menuRef",
|
|
282
282
|
ref: _,
|
|
283
283
|
callbacks: Ct,
|
|
284
284
|
options: Re
|
|
285
285
|
}, {
|
|
286
286
|
default: ae(() => [
|
|
287
|
-
_e(d(
|
|
287
|
+
_e(d(Di), {
|
|
288
288
|
"as-child": "",
|
|
289
289
|
trigger: "contextmenu"
|
|
290
290
|
}, {
|
|
291
291
|
default: ae(() => [
|
|
292
|
-
Xt(
|
|
292
|
+
Xt(h.$slots, "default", {
|
|
293
293
|
open: D.value,
|
|
294
|
-
toggleMenuFromElement:
|
|
294
|
+
toggleMenuFromElement: We
|
|
295
295
|
})
|
|
296
296
|
]),
|
|
297
297
|
_: 3
|
|
298
298
|
}),
|
|
299
|
-
_e(d(
|
|
299
|
+
_e(d(Hi), {
|
|
300
300
|
"class-name": "ui-menu-content datagrid-column-menu__panel",
|
|
301
301
|
align: "start",
|
|
302
302
|
gutter: 6,
|
|
303
|
-
style:
|
|
303
|
+
style: E(w.value),
|
|
304
304
|
"data-affino-menu-root": "",
|
|
305
305
|
"data-datagrid-column-menu-panel": "true"
|
|
306
306
|
}, {
|
|
307
307
|
default: ae(() => [
|
|
308
|
-
_e(d(
|
|
308
|
+
_e(d(Oi), { class: "datagrid-column-menu__title" }, {
|
|
309
309
|
default: ae(() => [
|
|
310
|
-
|
|
310
|
+
en(z(h.columnLabel), 1)
|
|
311
311
|
]),
|
|
312
312
|
_: 1
|
|
313
313
|
}),
|
|
314
|
-
|
|
315
|
-
(s(!0), g(
|
|
316
|
-
a > 0 ? (s(),
|
|
317
|
-
o === "sort" ? (s(), g(
|
|
318
|
-
U("sortAsc") ? (s(),
|
|
314
|
+
Y.value.length > 0 ? (s(), oe(d(lr), { key: 0 })) : S("", !0),
|
|
315
|
+
(s(!0), g(J, null, le(Y.value, (o, a) => (s(), g(J, { key: o }, [
|
|
316
|
+
a > 0 ? (s(), oe(d(lr), { key: 0 })) : S("", !0),
|
|
317
|
+
o === "sort" ? (s(), g(J, { key: 1 }, [
|
|
318
|
+
U("sortAsc") ? (s(), oe(d(Mt), {
|
|
319
319
|
key: 0,
|
|
320
320
|
class: "datagrid-column-menu__item",
|
|
321
321
|
"data-datagrid-column-menu-action": "sort-asc",
|
|
322
|
-
"data-disabled-reason": V("sortAsc",
|
|
323
|
-
disabled:
|
|
324
|
-
title: V("sortAsc",
|
|
325
|
-
onSelect:
|
|
322
|
+
"data-disabled-reason": V("sortAsc", Z.value || !h.sortEnabled, "sort"),
|
|
323
|
+
disabled: Q("sortAsc", Z.value || !h.sortEnabled),
|
|
324
|
+
title: V("sortAsc", Z.value || !h.sortEnabled, "sort"),
|
|
325
|
+
onSelect: i[0] || (i[0] = (c) => h.$emit("sort", "asc"))
|
|
326
326
|
}, {
|
|
327
327
|
default: ae(() => [
|
|
328
328
|
f("span", {
|
|
329
|
-
title: V("sortAsc",
|
|
330
|
-
}, z(xt.value), 9,
|
|
331
|
-
|
|
329
|
+
title: V("sortAsc", Z.value || !h.sortEnabled, "sort")
|
|
330
|
+
}, z(xt.value), 9, Ui),
|
|
331
|
+
h.sortDirection === "asc" ? (s(), g("span", Xi, "Active")) : S("", !0)
|
|
332
332
|
]),
|
|
333
333
|
_: 1
|
|
334
334
|
}, 8, ["data-disabled-reason", "disabled", "title"])) : S("", !0),
|
|
335
|
-
U("sortDesc") ? (s(),
|
|
335
|
+
U("sortDesc") ? (s(), oe(d(Mt), {
|
|
336
336
|
key: 1,
|
|
337
337
|
class: "datagrid-column-menu__item",
|
|
338
338
|
"data-datagrid-column-menu-action": "sort-desc",
|
|
339
|
-
"data-disabled-reason": V("sortDesc",
|
|
340
|
-
disabled:
|
|
341
|
-
title: V("sortDesc",
|
|
342
|
-
onSelect:
|
|
339
|
+
"data-disabled-reason": V("sortDesc", Z.value || !h.sortEnabled, "sort"),
|
|
340
|
+
disabled: Q("sortDesc", Z.value || !h.sortEnabled),
|
|
341
|
+
title: V("sortDesc", Z.value || !h.sortEnabled, "sort"),
|
|
342
|
+
onSelect: i[1] || (i[1] = (c) => h.$emit("sort", "desc"))
|
|
343
343
|
}, {
|
|
344
344
|
default: ae(() => [
|
|
345
345
|
f("span", {
|
|
346
|
-
title: V("sortDesc",
|
|
347
|
-
}, z(
|
|
348
|
-
|
|
346
|
+
title: V("sortDesc", Z.value || !h.sortEnabled, "sort")
|
|
347
|
+
}, z(dt.value), 9, Yi),
|
|
348
|
+
h.sortDirection === "desc" ? (s(), g("span", Zi, "Active")) : S("", !0)
|
|
349
349
|
]),
|
|
350
350
|
_: 1
|
|
351
351
|
}, 8, ["data-disabled-reason", "disabled", "title"])) : S("", !0),
|
|
352
|
-
U("clearSort") ? (s(),
|
|
352
|
+
U("clearSort") ? (s(), oe(d(Mt), {
|
|
353
353
|
key: 2,
|
|
354
354
|
class: "datagrid-column-menu__item",
|
|
355
355
|
"data-datagrid-column-menu-action": "sort-clear",
|
|
356
|
-
"data-disabled-reason": V("clearSort",
|
|
357
|
-
disabled:
|
|
358
|
-
title: V("clearSort",
|
|
359
|
-
onSelect:
|
|
356
|
+
"data-disabled-reason": V("clearSort", Z.value || !h.sortEnabled || h.sortDirection === null, "sort"),
|
|
357
|
+
disabled: Q("clearSort", Z.value || !h.sortEnabled || h.sortDirection === null),
|
|
358
|
+
title: V("clearSort", Z.value || !h.sortEnabled || h.sortDirection === null, "sort"),
|
|
359
|
+
onSelect: i[2] || (i[2] = (c) => h.$emit("sort", null))
|
|
360
360
|
}, {
|
|
361
361
|
default: ae(() => [
|
|
362
362
|
f("span", {
|
|
363
|
-
title: V("clearSort",
|
|
364
|
-
}, z(
|
|
363
|
+
title: V("clearSort", Z.value || !h.sortEnabled || h.sortDirection === null, "sort")
|
|
364
|
+
}, z(Ee.value), 9, Qi)
|
|
365
365
|
]),
|
|
366
366
|
_: 1
|
|
367
367
|
}, 8, ["data-disabled-reason", "disabled", "title"])) : S("", !0)
|
|
368
|
-
], 64)) : o === "group" && U("toggleGroup") ? (s(),
|
|
368
|
+
], 64)) : o === "group" && U("toggleGroup") ? (s(), oe(d(Mt), {
|
|
369
369
|
key: 2,
|
|
370
370
|
class: "datagrid-column-menu__item",
|
|
371
371
|
"data-datagrid-column-menu-action": "toggle-group",
|
|
372
|
-
"data-disabled-reason": V("toggleGroup", ye.value || !
|
|
373
|
-
disabled:
|
|
374
|
-
title: V("toggleGroup", ye.value || !
|
|
375
|
-
onSelect:
|
|
372
|
+
"data-disabled-reason": V("toggleGroup", ye.value || !h.groupEnabled, "group"),
|
|
373
|
+
disabled: Q("toggleGroup", ye.value || !h.groupEnabled),
|
|
374
|
+
title: V("toggleGroup", ye.value || !h.groupEnabled, "group"),
|
|
375
|
+
onSelect: vt
|
|
376
376
|
}, {
|
|
377
377
|
default: ae(() => [
|
|
378
378
|
f("span", {
|
|
379
|
-
title: V("toggleGroup", ye.value || !
|
|
380
|
-
}, z(xe.value), 9,
|
|
381
|
-
|
|
379
|
+
title: V("toggleGroup", ye.value || !h.groupEnabled, "group")
|
|
380
|
+
}, z(xe.value), 9, Ji),
|
|
381
|
+
h.grouped && v.value ? (s(), g("span", eo, z(v.value), 1)) : S("", !0)
|
|
382
382
|
]),
|
|
383
383
|
_: 1
|
|
384
|
-
}, 8, ["data-disabled-reason", "disabled", "title"])) : o === "pin" && Ye.value ? (s(),
|
|
384
|
+
}, 8, ["data-disabled-reason", "disabled", "title"])) : o === "pin" && Ye.value ? (s(), oe(d(Gi), {
|
|
385
385
|
key: 3,
|
|
386
|
-
options:
|
|
386
|
+
options: ut
|
|
387
387
|
}, {
|
|
388
388
|
default: ae(() => [
|
|
389
|
-
_e(d(
|
|
389
|
+
_e(d(Wi), {
|
|
390
390
|
class: "datagrid-column-menu__item datagrid-column-menu__item--submenu",
|
|
391
391
|
"data-datagrid-column-menu-action": "pin-submenu",
|
|
392
392
|
"data-disabled-reason": V("pinMenu", te.value, "pin"),
|
|
393
|
-
"aria-disabled":
|
|
394
|
-
disabled:
|
|
393
|
+
"aria-disabled": Q("pinMenu", te.value) ? "true" : void 0,
|
|
394
|
+
disabled: Q("pinMenu", te.value),
|
|
395
395
|
title: V("pinMenu", te.value, "pin")
|
|
396
396
|
}, {
|
|
397
397
|
default: ae(() => [
|
|
398
|
-
f("span", null, z(
|
|
398
|
+
f("span", null, z(X.value), 1)
|
|
399
399
|
]),
|
|
400
400
|
_: 1
|
|
401
401
|
}, 8, ["data-disabled-reason", "aria-disabled", "disabled", "title"]),
|
|
402
|
-
_e(d(
|
|
402
|
+
_e(d(Ki), {
|
|
403
403
|
"class-name": "ui-submenu-content datagrid-column-menu__submenu-panel",
|
|
404
|
-
style:
|
|
404
|
+
style: E(w.value)
|
|
405
405
|
}, {
|
|
406
406
|
default: ae(() => [
|
|
407
|
-
U("pinLeft") ? (s(),
|
|
407
|
+
U("pinLeft") ? (s(), oe(d(Mt), {
|
|
408
408
|
key: 0,
|
|
409
409
|
class: "datagrid-column-menu__item",
|
|
410
410
|
"data-datagrid-column-menu-action": "pin-left",
|
|
411
411
|
"data-disabled-reason": V("pinLeft", te.value, "pin"),
|
|
412
|
-
disabled:
|
|
412
|
+
disabled: Q("pinLeft", te.value),
|
|
413
413
|
title: V("pinLeft", te.value, "pin"),
|
|
414
|
-
onSelect:
|
|
414
|
+
onSelect: i[3] || (i[3] = (c) => h.$emit("pin", "left"))
|
|
415
415
|
}, {
|
|
416
416
|
default: ae(() => [
|
|
417
417
|
f("span", {
|
|
418
418
|
title: V("pinLeft", te.value, "pin")
|
|
419
|
-
}, z(Oe.value), 9,
|
|
420
|
-
|
|
419
|
+
}, z(Oe.value), 9, to),
|
|
420
|
+
h.pin === "left" ? (s(), g("span", ro, "Active")) : S("", !0)
|
|
421
421
|
]),
|
|
422
422
|
_: 1
|
|
423
423
|
}, 8, ["data-disabled-reason", "disabled", "title"])) : S("", !0),
|
|
424
|
-
U("pinRight") ? (s(),
|
|
424
|
+
U("pinRight") ? (s(), oe(d(Mt), {
|
|
425
425
|
key: 1,
|
|
426
426
|
class: "datagrid-column-menu__item",
|
|
427
427
|
"data-datagrid-column-menu-action": "pin-right",
|
|
428
428
|
"data-disabled-reason": V("pinRight", te.value, "pin"),
|
|
429
|
-
disabled:
|
|
429
|
+
disabled: Q("pinRight", te.value),
|
|
430
430
|
title: V("pinRight", te.value, "pin"),
|
|
431
|
-
onSelect:
|
|
431
|
+
onSelect: i[4] || (i[4] = (c) => h.$emit("pin", "right"))
|
|
432
432
|
}, {
|
|
433
433
|
default: ae(() => [
|
|
434
434
|
f("span", {
|
|
435
435
|
title: V("pinRight", te.value, "pin")
|
|
436
|
-
}, z(Te.value), 9,
|
|
437
|
-
|
|
436
|
+
}, z(Te.value), 9, ao),
|
|
437
|
+
h.pin === "right" ? (s(), g("span", no, "Active")) : S("", !0)
|
|
438
438
|
]),
|
|
439
439
|
_: 1
|
|
440
440
|
}, 8, ["data-disabled-reason", "disabled", "title"])) : S("", !0),
|
|
441
|
-
U("unpin") ? (s(),
|
|
441
|
+
U("unpin") ? (s(), oe(d(Mt), {
|
|
442
442
|
key: 2,
|
|
443
443
|
class: "datagrid-column-menu__item",
|
|
444
444
|
"data-datagrid-column-menu-action": "pin-none",
|
|
445
|
-
"data-disabled-reason": V("unpin", te.value ||
|
|
446
|
-
disabled:
|
|
447
|
-
title: V("unpin", te.value ||
|
|
448
|
-
onSelect:
|
|
445
|
+
"data-disabled-reason": V("unpin", te.value || h.pin === "none", "pin"),
|
|
446
|
+
disabled: Q("unpin", te.value || h.pin === "none"),
|
|
447
|
+
title: V("unpin", te.value || h.pin === "none", "pin"),
|
|
448
|
+
onSelect: i[5] || (i[5] = (c) => h.$emit("pin", "none"))
|
|
449
449
|
}, {
|
|
450
450
|
default: ae(() => [
|
|
451
451
|
f("span", {
|
|
452
|
-
title: V("unpin", te.value ||
|
|
453
|
-
}, z(At.value), 9,
|
|
452
|
+
title: V("unpin", te.value || h.pin === "none", "pin")
|
|
453
|
+
}, z(At.value), 9, io)
|
|
454
454
|
]),
|
|
455
455
|
_: 1
|
|
456
456
|
}, 8, ["data-disabled-reason", "disabled", "title"])) : S("", !0)
|
|
@@ -468,103 +468,103 @@ const Nn = ["title"], qn = {
|
|
|
468
468
|
"datagrid-column-menu__section--with-values": H.value
|
|
469
469
|
}
|
|
470
470
|
]),
|
|
471
|
-
onMousedown:
|
|
471
|
+
onMousedown: i[13] || (i[13] = y(() => {
|
|
472
472
|
}, ["stop"])),
|
|
473
|
-
onClick:
|
|
473
|
+
onClick: i[14] || (i[14] = y(() => {
|
|
474
474
|
}, ["stop"]))
|
|
475
475
|
}, [
|
|
476
|
-
f("div",
|
|
477
|
-
f("span",
|
|
476
|
+
f("div", oo, [
|
|
477
|
+
f("span", lo, z(lt.value), 1),
|
|
478
478
|
U("clearFilter") ? (s(), g("button", {
|
|
479
479
|
key: 0,
|
|
480
480
|
type: "button",
|
|
481
481
|
class: "datagrid-column-menu__link",
|
|
482
482
|
"data-datagrid-column-menu-action": "clear-filter",
|
|
483
|
-
"data-disabled-reason": V("clearFilter", C.value || !
|
|
484
|
-
disabled:
|
|
485
|
-
title: V("clearFilter", C.value || !
|
|
483
|
+
"data-disabled-reason": V("clearFilter", C.value || !h.filterActive, "filter"),
|
|
484
|
+
disabled: Q("clearFilter", C.value || !h.filterActive),
|
|
485
|
+
title: V("clearFilter", C.value || !h.filterActive, "filter"),
|
|
486
486
|
onClick: Ke
|
|
487
|
-
}, z(
|
|
487
|
+
}, z(It.value), 9, so)) : S("", !0)
|
|
488
488
|
]),
|
|
489
489
|
R.value ? (s(), g("input", {
|
|
490
490
|
key: 0,
|
|
491
|
-
value:
|
|
491
|
+
value: h.textFilterValue,
|
|
492
492
|
class: "datagrid-column-menu__search",
|
|
493
493
|
type: "search",
|
|
494
494
|
placeholder: "Type to filter rows",
|
|
495
495
|
disabled: C.value,
|
|
496
496
|
title: Pe("filter", C.value),
|
|
497
|
-
onMousedown:
|
|
497
|
+
onMousedown: i[6] || (i[6] = y(() => {
|
|
498
498
|
}, ["stop"])),
|
|
499
|
-
onClick:
|
|
499
|
+
onClick: i[7] || (i[7] = y(() => {
|
|
500
500
|
}, ["stop"])),
|
|
501
|
-
onKeydown:
|
|
501
|
+
onKeydown: i[8] || (i[8] = y(() => {
|
|
502
502
|
}, ["stop"])),
|
|
503
|
-
onInput:
|
|
504
|
-
}, null, 40,
|
|
505
|
-
|
|
506
|
-
H.value ?
|
|
503
|
+
onInput: pt
|
|
504
|
+
}, null, 40, uo)) : S("", !0),
|
|
505
|
+
h.textFilterEnabled && !H.value ? (s(), g("div", co, z(fe.value ? "Value filter is disabled for this dataset size. Use text filter instead." : "Value filter is unavailable here. Use text filter instead."), 1)) : S("", !0),
|
|
506
|
+
H.value ? Mi((s(), g("input", {
|
|
507
507
|
key: 2,
|
|
508
|
-
"onUpdate:modelValue":
|
|
508
|
+
"onUpdate:modelValue": i[9] || (i[9] = (c) => F.value = c),
|
|
509
509
|
class: "datagrid-column-menu__search",
|
|
510
510
|
type: "search",
|
|
511
511
|
placeholder: "Search values",
|
|
512
512
|
disabled: C.value,
|
|
513
513
|
title: Pe("filter", C.value),
|
|
514
|
-
onMousedown:
|
|
514
|
+
onMousedown: i[10] || (i[10] = y(() => {
|
|
515
515
|
}, ["stop"])),
|
|
516
|
-
onClick:
|
|
516
|
+
onClick: i[11] || (i[11] = y(() => {
|
|
517
517
|
}, ["stop"])),
|
|
518
|
-
onKeydown:
|
|
518
|
+
onKeydown: i[12] || (i[12] = y(() => {
|
|
519
519
|
}, ["stop"]))
|
|
520
|
-
}, null, 40,
|
|
521
|
-
[
|
|
520
|
+
}, null, 40, go)), [
|
|
521
|
+
[Ai, F.value]
|
|
522
522
|
]) : S("", !0),
|
|
523
|
-
H.value && $.value && U("addCurrentSelectionToFilter") ? (s(), g("label",
|
|
523
|
+
H.value && $.value && U("addCurrentSelectionToFilter") ? (s(), g("label", po, [
|
|
524
524
|
f("input", {
|
|
525
525
|
type: "checkbox",
|
|
526
|
-
checked:
|
|
527
|
-
disabled:
|
|
526
|
+
checked: I.value,
|
|
527
|
+
disabled: Q("addCurrentSelectionToFilter", C.value),
|
|
528
528
|
title: V("addCurrentSelectionToFilter", C.value, "filter"),
|
|
529
|
-
onChange:
|
|
530
|
-
}, null, 40,
|
|
531
|
-
f("span", null, z(
|
|
529
|
+
onChange: G
|
|
530
|
+
}, null, 40, vo),
|
|
531
|
+
f("span", null, z(Et.value), 1)
|
|
532
532
|
])) : S("", !0),
|
|
533
|
-
H.value ? (s(),
|
|
533
|
+
H.value ? (s(), oe(d(lr), {
|
|
534
534
|
key: 4,
|
|
535
535
|
class: "datagrid-column-menu__section-separator"
|
|
536
536
|
})) : S("", !0),
|
|
537
|
-
H.value ? (s(), g("div",
|
|
537
|
+
H.value ? (s(), g("div", mo, [
|
|
538
538
|
U("selectAllValues") ? (s(), g("button", {
|
|
539
539
|
key: 0,
|
|
540
540
|
type: "button",
|
|
541
541
|
class: "datagrid-column-menu__link",
|
|
542
542
|
"data-datagrid-column-menu-action": "select-all-values",
|
|
543
|
-
"data-disabled-reason": V("selectAllValues", C.value || p.value.length === 0 ||
|
|
544
|
-
disabled:
|
|
545
|
-
title: V("selectAllValues", C.value || p.value.length === 0 ||
|
|
543
|
+
"data-disabled-reason": V("selectAllValues", C.value || p.value.length === 0 || ge.value, "filter"),
|
|
544
|
+
disabled: Q("selectAllValues", C.value || p.value.length === 0 || ge.value),
|
|
545
|
+
title: V("selectAllValues", C.value || p.value.length === 0 || ge.value, "filter"),
|
|
546
546
|
onClick: ve
|
|
547
|
-
}, z(Ze.value), 9,
|
|
547
|
+
}, z(Ze.value), 9, ho)) : S("", !0),
|
|
548
548
|
U("clearAllValues") ? (s(), g("button", {
|
|
549
549
|
key: 1,
|
|
550
550
|
type: "button",
|
|
551
551
|
class: "datagrid-column-menu__link",
|
|
552
552
|
"data-datagrid-column-menu-action": "clear-all-values",
|
|
553
553
|
"data-disabled-reason": V("clearAllValues", C.value || x.value.length === 0, "filter"),
|
|
554
|
-
disabled:
|
|
554
|
+
disabled: Q("clearAllValues", C.value || x.value.length === 0),
|
|
555
555
|
title: V("clearAllValues", C.value || x.value.length === 0, "filter"),
|
|
556
556
|
onClick: me
|
|
557
|
-
}, z(Be.value), 9,
|
|
558
|
-
f("div",
|
|
557
|
+
}, z(Be.value), 9, bo)) : S("", !0),
|
|
558
|
+
f("div", fo, z(Je.value) + " / " + z(kt.value) + " selected ", 1)
|
|
559
559
|
])) : S("", !0),
|
|
560
|
-
H.value ? (s(), g("div",
|
|
560
|
+
H.value ? (s(), g("div", yo, [
|
|
561
561
|
f("div", {
|
|
562
562
|
class: "datagrid-column-menu__values-list",
|
|
563
563
|
role: "listbox",
|
|
564
564
|
"aria-multiselectable": "true",
|
|
565
|
-
"aria-label": `Filter values for ${
|
|
565
|
+
"aria-label": `Filter values for ${h.columnLabel}`
|
|
566
566
|
}, [
|
|
567
|
-
(s(!0), g(
|
|
567
|
+
(s(!0), g(J, null, le(Ae.value, (c) => (s(), g("label", {
|
|
568
568
|
key: c.token,
|
|
569
569
|
class: "datagrid-column-menu__value",
|
|
570
570
|
role: "option",
|
|
@@ -575,38 +575,38 @@ const Nn = ["title"], qn = {
|
|
|
575
575
|
checked: k.value.has(c.token),
|
|
576
576
|
disabled: C.value,
|
|
577
577
|
title: Pe("filter", C.value),
|
|
578
|
-
onChange: (T) =>
|
|
579
|
-
}, null, 40,
|
|
580
|
-
f("span",
|
|
581
|
-
f("span",
|
|
582
|
-
], 8,
|
|
583
|
-
Ae.value.length === 0 ? (s(), g("div",
|
|
584
|
-
], 8,
|
|
578
|
+
onChange: (T) => gt(c.token)
|
|
579
|
+
}, null, 40, ko),
|
|
580
|
+
f("span", Co, z(c.label), 1),
|
|
581
|
+
f("span", _o, z(c.count), 1)
|
|
582
|
+
], 8, wo))), 128)),
|
|
583
|
+
Ae.value.length === 0 ? (s(), g("div", So, " No matching values ")) : S("", !0)
|
|
584
|
+
], 8, xo)
|
|
585
585
|
])) : S("", !0),
|
|
586
|
-
H.value &&
|
|
587
|
-
H.value && ke.value.length === 0 ? (s(), g("div",
|
|
588
|
-
H.value ? (s(),
|
|
586
|
+
H.value && st.value > 0 ? (s(), g("div", Ro, " Showing first " + z(Ae.value.length) + " values. Use search to filter all " + z(we.value.length) + ". ", 1)) : S("", !0),
|
|
587
|
+
H.value && ke.value.length === 0 ? (s(), g("div", Mo, " Select at least one value to apply the filter. ")) : S("", !0),
|
|
588
|
+
H.value ? (s(), oe(d(lr), {
|
|
589
589
|
key: 9,
|
|
590
590
|
class: "datagrid-column-menu__section-separator"
|
|
591
591
|
})) : S("", !0),
|
|
592
|
-
H.value ? (s(), g("div",
|
|
592
|
+
H.value ? (s(), g("div", Ao, [
|
|
593
593
|
U("cancelFilter") ? (s(), g("button", {
|
|
594
594
|
key: 0,
|
|
595
595
|
type: "button",
|
|
596
596
|
class: "datagrid-column-menu__button datagrid-column-menu__button--secondary",
|
|
597
597
|
"data-datagrid-column-menu-action": "cancel-filter",
|
|
598
|
-
onClick:
|
|
598
|
+
onClick: ce
|
|
599
599
|
}, z(Qe.value), 1)) : S("", !0),
|
|
600
600
|
U("applyFilter") ? (s(), g("button", {
|
|
601
601
|
key: 1,
|
|
602
602
|
type: "button",
|
|
603
603
|
class: "datagrid-column-menu__button datagrid-column-menu__button--primary",
|
|
604
604
|
"data-datagrid-column-menu-action": "apply-filter",
|
|
605
|
-
"data-disabled-reason": V("applyFilter", C.value || !
|
|
606
|
-
disabled:
|
|
607
|
-
title: V("applyFilter", C.value || !
|
|
608
|
-
onClick:
|
|
609
|
-
}, z(wt.value), 9,
|
|
605
|
+
"data-disabled-reason": V("applyFilter", C.value || !pe.value, "filter"),
|
|
606
|
+
disabled: Q("applyFilter", C.value || !pe.value),
|
|
607
|
+
title: V("applyFilter", C.value || !pe.value, "filter"),
|
|
608
|
+
onClick: ie
|
|
609
|
+
}, z(wt.value), 9, Io)) : S("", !0)
|
|
610
610
|
])) : S("", !0)
|
|
611
611
|
], 34)) : S("", !0)
|
|
612
612
|
], 64))), 128))
|
|
@@ -617,167 +617,167 @@ const Nn = ["title"], qn = {
|
|
|
617
617
|
_: 3
|
|
618
618
|
}, 512));
|
|
619
619
|
}
|
|
620
|
-
}),
|
|
621
|
-
function
|
|
620
|
+
}), tn = Symbol("data-grid-table-stage-context");
|
|
621
|
+
function Bo(n) {
|
|
622
622
|
return {
|
|
623
|
-
mode:
|
|
624
|
-
rowHeightMode:
|
|
625
|
-
layout:
|
|
626
|
-
viewport:
|
|
627
|
-
columns:
|
|
628
|
-
rows:
|
|
629
|
-
selection:
|
|
630
|
-
editing:
|
|
631
|
-
cells:
|
|
632
|
-
interaction:
|
|
623
|
+
mode: n.mode,
|
|
624
|
+
rowHeightMode: n.rowHeightMode,
|
|
625
|
+
layout: n.layout,
|
|
626
|
+
viewport: n.viewport,
|
|
627
|
+
columns: n.columns,
|
|
628
|
+
rows: n.rows,
|
|
629
|
+
selection: n.selection,
|
|
630
|
+
editing: n.editing,
|
|
631
|
+
cells: n.cells,
|
|
632
|
+
interaction: n.interaction
|
|
633
633
|
};
|
|
634
634
|
}
|
|
635
|
-
function
|
|
636
|
-
return
|
|
637
|
-
mode: Xe(
|
|
638
|
-
rowHeightMode: Xe(
|
|
639
|
-
layout: Xe(
|
|
640
|
-
viewport: Xe(
|
|
641
|
-
columns: Xe(
|
|
642
|
-
rows: Xe(
|
|
643
|
-
selection: Xe(
|
|
644
|
-
editing: Xe(
|
|
645
|
-
cells: Xe(
|
|
646
|
-
interaction: Xe(
|
|
635
|
+
function Fo(n) {
|
|
636
|
+
return Bo({
|
|
637
|
+
mode: Xe(n, "mode"),
|
|
638
|
+
rowHeightMode: Xe(n, "rowHeightMode"),
|
|
639
|
+
layout: Xe(n, "layout"),
|
|
640
|
+
viewport: Xe(n, "viewport"),
|
|
641
|
+
columns: Xe(n, "columns"),
|
|
642
|
+
rows: Xe(n, "rows"),
|
|
643
|
+
selection: Xe(n, "selection"),
|
|
644
|
+
editing: Xe(n, "editing"),
|
|
645
|
+
cells: Xe(n, "cells"),
|
|
646
|
+
interaction: Xe(n, "interaction")
|
|
647
647
|
});
|
|
648
648
|
}
|
|
649
|
-
function
|
|
649
|
+
function fd(n) {
|
|
650
650
|
return {
|
|
651
|
-
mode:
|
|
652
|
-
rowHeightMode:
|
|
653
|
-
layout:
|
|
654
|
-
viewport:
|
|
655
|
-
columns:
|
|
656
|
-
rows:
|
|
657
|
-
selection:
|
|
658
|
-
editing:
|
|
659
|
-
cells:
|
|
660
|
-
interaction:
|
|
651
|
+
mode: n.mode.value,
|
|
652
|
+
rowHeightMode: n.rowHeightMode.value,
|
|
653
|
+
layout: n.layout.value,
|
|
654
|
+
viewport: n.viewport.value,
|
|
655
|
+
columns: n.columns.value,
|
|
656
|
+
rows: n.rows.value,
|
|
657
|
+
selection: n.selection.value,
|
|
658
|
+
editing: n.editing.value,
|
|
659
|
+
cells: n.cells.value,
|
|
660
|
+
interaction: n.interaction.value
|
|
661
661
|
};
|
|
662
662
|
}
|
|
663
|
-
function
|
|
664
|
-
return
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
),
|
|
663
|
+
function $o(n) {
|
|
664
|
+
return Ii(
|
|
665
|
+
tn,
|
|
666
|
+
n
|
|
667
|
+
), n;
|
|
668
668
|
}
|
|
669
669
|
function Dr() {
|
|
670
|
-
const
|
|
671
|
-
if (!
|
|
670
|
+
const n = Ja(tn);
|
|
671
|
+
if (!n)
|
|
672
672
|
throw new Error("DataGrid table stage context is not available outside of DataGridTableStage.");
|
|
673
|
-
return
|
|
673
|
+
return n;
|
|
674
674
|
}
|
|
675
675
|
function Hr() {
|
|
676
676
|
return Dr().mode;
|
|
677
677
|
}
|
|
678
|
-
function
|
|
678
|
+
function yd() {
|
|
679
679
|
return Dr().rowHeightMode;
|
|
680
680
|
}
|
|
681
|
-
function yt(
|
|
682
|
-
return Dr()[
|
|
681
|
+
function yt(n) {
|
|
682
|
+
return Dr()[n];
|
|
683
683
|
}
|
|
684
|
-
function
|
|
684
|
+
function rn() {
|
|
685
685
|
return yt("layout");
|
|
686
686
|
}
|
|
687
687
|
function Or() {
|
|
688
688
|
return yt("viewport");
|
|
689
689
|
}
|
|
690
|
-
function
|
|
690
|
+
function an() {
|
|
691
691
|
return yt("columns");
|
|
692
692
|
}
|
|
693
|
-
function
|
|
693
|
+
function Gr() {
|
|
694
694
|
return yt("rows");
|
|
695
695
|
}
|
|
696
|
-
function
|
|
696
|
+
function Lo() {
|
|
697
697
|
return yt("selection");
|
|
698
698
|
}
|
|
699
|
-
function
|
|
699
|
+
function nn() {
|
|
700
700
|
return yt("editing");
|
|
701
701
|
}
|
|
702
|
-
function
|
|
702
|
+
function xd() {
|
|
703
703
|
return yt("cells");
|
|
704
704
|
}
|
|
705
|
-
function
|
|
705
|
+
function wd() {
|
|
706
706
|
return yt("interaction");
|
|
707
707
|
}
|
|
708
|
-
const
|
|
708
|
+
const To = ["data-datagrid-pivot-group-label", "data-datagrid-pivot-group-span", "data-datagrid-pivot-group-depth"], zo = {
|
|
709
709
|
key: 0,
|
|
710
710
|
class: "col-head__pivot-group-label"
|
|
711
|
-
},
|
|
711
|
+
}, Po = /* @__PURE__ */ f("div", { class: "col-head col-head--index" }, [
|
|
712
712
|
/* @__PURE__ */ f("span", null, "#")
|
|
713
|
-
], -1),
|
|
713
|
+
], -1), Vo = {
|
|
714
714
|
key: 0,
|
|
715
715
|
class: "col-filter col-filter--index-spacer",
|
|
716
716
|
"aria-hidden": "true"
|
|
717
|
-
},
|
|
717
|
+
}, Do = ["data-column-key"], Ho = { class: "col-head col-head--index" }, Oo = ["aria-checked"], Go = ["data-column-key"], Wo = { class: "col-head" }, Ko = { class: "col-head__label" }, jo = ["aria-label", "title", "data-column-key", "onClick"], No = {
|
|
718
718
|
class: "col-menu-trigger__icon",
|
|
719
719
|
viewBox: "0 0 16 16",
|
|
720
720
|
"aria-hidden": "true"
|
|
721
|
-
},
|
|
721
|
+
}, qo = {
|
|
722
722
|
key: 0,
|
|
723
723
|
d: "M2.5 3.5h11L9.25 8.5v3.25l-2.5 1.25V8.5z"
|
|
724
|
-
},
|
|
724
|
+
}, Uo = {
|
|
725
725
|
key: 1,
|
|
726
726
|
d: "M9 11V6.75M9 6.75 7.25 8.5M9 6.75 10.75 8.5"
|
|
727
|
-
},
|
|
727
|
+
}, Xo = {
|
|
728
728
|
key: 2,
|
|
729
729
|
d: "M9 5v4.25M9 9.25 7.25 7.5M9 9.25 10.75 7.5"
|
|
730
|
-
},
|
|
730
|
+
}, Yo = {
|
|
731
731
|
key: 3,
|
|
732
732
|
d: "M5.5 6.5 8 9l2.5-2.5"
|
|
733
|
-
},
|
|
733
|
+
}, Zo = ["onMousedown", "onDblclick"], Qo = ["data-column-key"], Jo = { class: "col-head col-head--index" }, el = ["aria-checked"], tl = ["data-column-key", "onClick"], rl = { class: "col-head" }, al = ["title"], nl = {
|
|
734
734
|
class: "sort-indicator",
|
|
735
735
|
"aria-hidden": "true"
|
|
736
|
-
},
|
|
736
|
+
}, il = ["onMousedown", "onDblclick"], ol = ["value", "disabled", "onInput"], ll = ["data-datagrid-pivot-group-label", "data-datagrid-pivot-group-span", "data-datagrid-pivot-group-depth"], dl = {
|
|
737
737
|
key: 0,
|
|
738
738
|
class: "col-head__pivot-group-label"
|
|
739
|
-
},
|
|
739
|
+
}, sl = ["data-column-key"], ul = { class: "col-head" }, cl = { class: "col-head__label" }, gl = ["title"], pl = ["aria-label", "title", "data-column-key", "onClick"], vl = {
|
|
740
740
|
class: "col-menu-trigger__icon",
|
|
741
741
|
viewBox: "0 0 16 16",
|
|
742
742
|
"aria-hidden": "true"
|
|
743
|
-
},
|
|
743
|
+
}, ml = {
|
|
744
744
|
key: 0,
|
|
745
745
|
d: "M2.5 3.5h11L9.25 8.5v3.25l-2.5 1.25V8.5z"
|
|
746
|
-
},
|
|
746
|
+
}, hl = {
|
|
747
747
|
key: 1,
|
|
748
748
|
d: "M9 11V6.75M9 6.75 7.25 8.5M9 6.75 10.75 8.5"
|
|
749
|
-
},
|
|
749
|
+
}, bl = {
|
|
750
750
|
key: 2,
|
|
751
751
|
d: "M9 5v4.25M9 9.25 7.25 7.5M9 9.25 10.75 7.5"
|
|
752
|
-
},
|
|
752
|
+
}, fl = {
|
|
753
753
|
key: 3,
|
|
754
754
|
d: "M5.5 6.5 8 9l2.5-2.5"
|
|
755
|
-
},
|
|
755
|
+
}, yl = ["onMousedown", "onDblclick"], xl = ["data-column-key", "onClick"], wl = { class: "col-head" }, kl = ["title"], Cl = {
|
|
756
756
|
class: "sort-indicator",
|
|
757
757
|
"aria-hidden": "true"
|
|
758
|
-
},
|
|
758
|
+
}, _l = ["onMousedown", "onDblclick"], Sl = ["value", "disabled", "onInput"], Rl = ["data-datagrid-pivot-group-label", "data-datagrid-pivot-group-span", "data-datagrid-pivot-group-depth"], Ml = {
|
|
759
759
|
key: 0,
|
|
760
760
|
class: "col-head__pivot-group-label"
|
|
761
|
-
},
|
|
761
|
+
}, Al = ["data-column-key"], Il = { class: "col-head" }, El = { class: "col-head__label" }, Bl = ["title"], Fl = ["aria-label", "title", "data-column-key", "onClick"], $l = {
|
|
762
762
|
class: "col-menu-trigger__icon",
|
|
763
763
|
viewBox: "0 0 16 16",
|
|
764
764
|
"aria-hidden": "true"
|
|
765
|
-
},
|
|
765
|
+
}, Ll = {
|
|
766
766
|
key: 0,
|
|
767
767
|
d: "M2.5 3.5h11L9.25 8.5v3.25l-2.5 1.25V8.5z"
|
|
768
|
-
},
|
|
768
|
+
}, Tl = {
|
|
769
769
|
key: 1,
|
|
770
770
|
d: "M9 11V6.75M9 6.75 7.25 8.5M9 6.75 10.75 8.5"
|
|
771
|
-
},
|
|
771
|
+
}, zl = {
|
|
772
772
|
key: 2,
|
|
773
773
|
d: "M9 5v4.25M9 9.25 7.25 7.5M9 9.25 10.75 7.5"
|
|
774
|
-
},
|
|
774
|
+
}, Pl = {
|
|
775
775
|
key: 3,
|
|
776
776
|
d: "M5.5 6.5 8 9l2.5-2.5"
|
|
777
|
-
},
|
|
777
|
+
}, Vl = ["onMousedown", "onDblclick"], Dl = ["data-column-key", "onClick"], Hl = { class: "col-head" }, Ol = {
|
|
778
778
|
class: "sort-indicator",
|
|
779
779
|
"aria-hidden": "true"
|
|
780
|
-
},
|
|
780
|
+
}, Gl = ["onMousedown", "onDblclick"], Wl = ["value", "disabled", "onInput"], Kl = /* @__PURE__ */ ot({
|
|
781
781
|
__name: "DataGridTableStageHeader",
|
|
782
782
|
props: {
|
|
783
783
|
paneLayoutStyle: {
|
|
@@ -813,29 +813,29 @@ const $o = ["data-datagrid-pivot-group-label", "data-datagrid-pivot-group-span",
|
|
|
813
813
|
required: !0
|
|
814
814
|
}
|
|
815
815
|
},
|
|
816
|
-
setup(
|
|
817
|
-
const ee = Hr(), A =
|
|
816
|
+
setup(n) {
|
|
817
|
+
const ee = Hr(), A = rn(), L = Or(), _ = an(), K = Gr(), D = u(() => K.value.sourceRows ?? []), F = u(() => _.value.visibleColumns), I = u(() => _.value.renderedColumns), p = u(() => F.value.filter((i) => i.pin === "left")), x = u(() => F.value.filter((i) => i.pin === "right")), w = u(() => ee.value !== "pivot" ? 0 : F.value.reduce((i, o) => {
|
|
818
818
|
const a = Ye(o);
|
|
819
|
-
return Math.max(
|
|
820
|
-
}, 0)),
|
|
819
|
+
return Math.max(i, a?.groupLabels?.length ?? 0);
|
|
820
|
+
}, 0)), B = u(() => w.value > 0), Me = u(() => lt(p.value)), v = u(() => lt(I.value)), Se = u(() => lt(x.value)), H = u(() => A.value.mainTrackStyle), fe = u(() => L.value.leftColumnSpacerWidth), Y = u(() => L.value.rightColumnSpacerWidth), Z = u(() => _.value.columnFilterTextByKey), ye = u(() => typeof _.value.columnMenuMaxFilterValues == "number" ? _.value.columnMenuMaxFilterValues : 250), te = u(() => typeof _.value.columnMenuValueFilterRowLimit == "number" ? _.value.columnMenuValueFilterRowLimit : Number.MAX_SAFE_INTEGER);
|
|
821
821
|
function C() {
|
|
822
822
|
return _.value.columnMenuEnabled === !0 ? !0 : typeof _.value.applyColumnMenuSort == "function" || typeof _.value.applyColumnMenuPin == "function" || typeof _.value.applyColumnMenuFilter == "function" || typeof _.value.clearColumnMenuFilter == "function";
|
|
823
823
|
}
|
|
824
824
|
function k() {
|
|
825
825
|
return C() && _.value.columnMenuValueFilterEnabled !== !1;
|
|
826
826
|
}
|
|
827
|
-
function
|
|
828
|
-
return
|
|
827
|
+
function N(i) {
|
|
828
|
+
return i === "left" || i === "center" || i === "right" ? i : void 0;
|
|
829
829
|
}
|
|
830
|
-
function R(
|
|
831
|
-
return A.value.columnStyle(
|
|
830
|
+
function R(i) {
|
|
831
|
+
return A.value.columnStyle(i);
|
|
832
832
|
}
|
|
833
|
-
function $(
|
|
834
|
-
const o = Number.parseFloat(String(A.value.columnStyle(
|
|
835
|
-
return Number.isFinite(o) && o > 0 ? Math.max(0, Math.trunc(o)) : typeof
|
|
833
|
+
function $(i) {
|
|
834
|
+
const o = Number.parseFloat(String(A.value.columnStyle(i.key).width ?? ""));
|
|
835
|
+
return Number.isFinite(o) && o > 0 ? Math.max(0, Math.trunc(o)) : typeof i.width == "number" && Number.isFinite(i.width) ? Math.max(0, Math.trunc(i.width)) : 140;
|
|
836
836
|
}
|
|
837
|
-
function Ye(
|
|
838
|
-
const o =
|
|
837
|
+
function Ye(i) {
|
|
838
|
+
const o = i.column.meta?.affinoPivotHeader;
|
|
839
839
|
if (!o || typeof o != "object")
|
|
840
840
|
return null;
|
|
841
841
|
const a = o;
|
|
@@ -845,12 +845,12 @@ const $o = ["data-datagrid-pivot-group-label", "data-datagrid-pivot-group-span",
|
|
|
845
845
|
leafLabel: typeof a.leafLabel == "string" ? a.leafLabel : void 0
|
|
846
846
|
};
|
|
847
847
|
}
|
|
848
|
-
function xe(
|
|
849
|
-
return ee.value !== "pivot" ?
|
|
848
|
+
function xe(i) {
|
|
849
|
+
return ee.value !== "pivot" ? i.column.label ?? i.key : Ye(i)?.leafLabel ?? i.column.label ?? i.key;
|
|
850
850
|
}
|
|
851
|
-
function
|
|
851
|
+
function X(i, o) {
|
|
852
852
|
const a = [];
|
|
853
|
-
for (const c of
|
|
853
|
+
for (const c of i) {
|
|
854
854
|
const T = Ye(c), O = typeof T?.groupLabels?.[o] == "string" && T.groupLabels[o].length > 0 ? T.groupLabels[o] : null, St = $(c), et = a[a.length - 1];
|
|
855
855
|
if (et && et.label === O) {
|
|
856
856
|
et.width += St, et.columns = [...et.columns, c];
|
|
@@ -865,16 +865,16 @@ const $o = ["data-datagrid-pivot-group-label", "data-datagrid-pivot-group-span",
|
|
|
865
865
|
}
|
|
866
866
|
return a;
|
|
867
867
|
}
|
|
868
|
-
function
|
|
869
|
-
if (!
|
|
868
|
+
function lt(i) {
|
|
869
|
+
if (!B.value)
|
|
870
870
|
return [];
|
|
871
871
|
const o = [];
|
|
872
872
|
for (let a = 0; a < w.value; a += 1)
|
|
873
|
-
o.push(
|
|
873
|
+
o.push(X(i, a));
|
|
874
874
|
return o;
|
|
875
875
|
}
|
|
876
|
-
function xt(
|
|
877
|
-
const o = `${Math.max(0,
|
|
876
|
+
function xt(i) {
|
|
877
|
+
const o = `${Math.max(0, i.width)}px`;
|
|
878
878
|
return {
|
|
879
879
|
width: o,
|
|
880
880
|
minWidth: o,
|
|
@@ -882,253 +882,253 @@ const $o = ["data-datagrid-pivot-group-label", "data-datagrid-pivot-group-span",
|
|
|
882
882
|
textAlign: "center"
|
|
883
883
|
};
|
|
884
884
|
}
|
|
885
|
-
function
|
|
886
|
-
return _.value.sortIndicator(
|
|
885
|
+
function dt(i) {
|
|
886
|
+
return _.value.sortIndicator(i);
|
|
887
887
|
}
|
|
888
|
-
function
|
|
889
|
-
_.value.startResize(
|
|
888
|
+
function Ee(i, o) {
|
|
889
|
+
_.value.startResize(i, o);
|
|
890
890
|
}
|
|
891
|
-
function Oe(
|
|
892
|
-
_.value.handleResizeDoubleClick(
|
|
891
|
+
function Oe(i, o) {
|
|
892
|
+
_.value.handleResizeDoubleClick(i, o);
|
|
893
893
|
}
|
|
894
|
-
function Te(
|
|
895
|
-
_.value.setColumnFilterText(
|
|
894
|
+
function Te(i, o) {
|
|
895
|
+
_.value.setColumnFilterText(i, o);
|
|
896
896
|
}
|
|
897
|
-
function At(
|
|
898
|
-
L.value.headerViewportRef(
|
|
897
|
+
function At(i) {
|
|
898
|
+
L.value.headerViewportRef(i);
|
|
899
899
|
}
|
|
900
|
-
function
|
|
901
|
-
L.value.handleHeaderScroll(
|
|
900
|
+
function It(i) {
|
|
901
|
+
L.value.handleHeaderScroll(i);
|
|
902
902
|
}
|
|
903
|
-
function
|
|
904
|
-
return
|
|
903
|
+
function Et(i) {
|
|
904
|
+
return i.column.meta?.rowSelection === !0;
|
|
905
905
|
}
|
|
906
|
-
function Ze(
|
|
907
|
-
return
|
|
906
|
+
function Ze(i) {
|
|
907
|
+
return i.column.capabilities?.sortable !== !1;
|
|
908
908
|
}
|
|
909
|
-
function Be(
|
|
910
|
-
return
|
|
909
|
+
function Be(i) {
|
|
910
|
+
return i.column.capabilities?.filterable !== !1;
|
|
911
911
|
}
|
|
912
|
-
function Qe(
|
|
913
|
-
return
|
|
912
|
+
function Qe(i) {
|
|
913
|
+
return i.column.capabilities?.groupable !== !1;
|
|
914
914
|
}
|
|
915
|
-
function wt(
|
|
916
|
-
return Be(
|
|
915
|
+
function wt(i) {
|
|
916
|
+
return Be(i) && _.value.columnMenuValueFilterEnabled !== !1;
|
|
917
917
|
}
|
|
918
|
-
function we(
|
|
919
|
-
const o =
|
|
920
|
-
|
|
918
|
+
function we(i) {
|
|
919
|
+
const o = N(
|
|
920
|
+
i.column.presentation?.headerAlign ?? i.column.presentation?.align
|
|
921
921
|
);
|
|
922
922
|
return o ? { textAlign: o } : {};
|
|
923
923
|
}
|
|
924
|
-
function Ae(
|
|
925
|
-
Ze(
|
|
924
|
+
function Ae(i, o) {
|
|
925
|
+
Ze(i) && _.value.toggleSortForColumn(i.key, o);
|
|
926
926
|
}
|
|
927
|
-
function
|
|
927
|
+
function st(i) {
|
|
928
928
|
const o = _.value.isColumnFilterActive;
|
|
929
|
-
return typeof o == "function" ? o(
|
|
929
|
+
return typeof o == "function" ? o(i) : !1;
|
|
930
930
|
}
|
|
931
|
-
function ke(
|
|
931
|
+
function ke(i) {
|
|
932
932
|
const o = _.value.resolveColumnMenuSortDirection;
|
|
933
|
-
return typeof o == "function" ? o(
|
|
933
|
+
return typeof o == "function" ? o(i) : null;
|
|
934
934
|
}
|
|
935
|
-
function kt(
|
|
936
|
-
return ke(
|
|
935
|
+
function kt(i) {
|
|
936
|
+
return ke(i) !== null;
|
|
937
937
|
}
|
|
938
|
-
function Je(
|
|
939
|
-
return
|
|
938
|
+
function Je(i) {
|
|
939
|
+
return st(i);
|
|
940
940
|
}
|
|
941
|
-
function
|
|
941
|
+
function ge(i) {
|
|
942
942
|
const o = _.value.isColumnGrouped;
|
|
943
|
-
return typeof o == "function" ? o(
|
|
943
|
+
return typeof o == "function" ? o(i) : !1;
|
|
944
944
|
}
|
|
945
|
-
function
|
|
945
|
+
function pe(i) {
|
|
946
946
|
const o = _.value.resolveColumnGroupOrder;
|
|
947
|
-
return typeof o == "function" ? o(
|
|
947
|
+
return typeof o == "function" ? o(i) : null;
|
|
948
948
|
}
|
|
949
|
-
function Re(
|
|
950
|
-
const o =
|
|
949
|
+
function Re(i) {
|
|
950
|
+
const o = pe(i);
|
|
951
951
|
return Number.isFinite(o) ? `G${Number(o) + 1}` : null;
|
|
952
952
|
}
|
|
953
|
-
function
|
|
954
|
-
const o =
|
|
953
|
+
function ut(i) {
|
|
954
|
+
const o = pe(i);
|
|
955
955
|
return Number.isFinite(o) ? `Grouped column, level ${Number(o) + 1}` : "Grouped column";
|
|
956
956
|
}
|
|
957
|
-
function Ct(
|
|
958
|
-
return Je(
|
|
957
|
+
function Ct(i) {
|
|
958
|
+
return Je(i);
|
|
959
959
|
}
|
|
960
|
-
function ze(
|
|
961
|
-
return ke(
|
|
960
|
+
function ze(i) {
|
|
961
|
+
return ke(i) === "asc";
|
|
962
962
|
}
|
|
963
|
-
function U(
|
|
964
|
-
return ke(
|
|
963
|
+
function U(i) {
|
|
964
|
+
return ke(i) === "desc";
|
|
965
965
|
}
|
|
966
|
-
function
|
|
966
|
+
function Q(i, o) {
|
|
967
967
|
return {
|
|
968
968
|
"col-menu-trigger--open": o,
|
|
969
|
-
"col-menu-trigger--active": o || kt(
|
|
970
|
-
"col-menu-trigger--filtered": Je(
|
|
971
|
-
"col-menu-trigger--grouped":
|
|
972
|
-
"col-menu-trigger--sorted": kt(
|
|
969
|
+
"col-menu-trigger--active": o || kt(i) || Je(i) || ge(i),
|
|
970
|
+
"col-menu-trigger--filtered": Je(i),
|
|
971
|
+
"col-menu-trigger--grouped": ge(i),
|
|
972
|
+
"col-menu-trigger--sorted": kt(i)
|
|
973
973
|
};
|
|
974
974
|
}
|
|
975
|
-
function re(
|
|
975
|
+
function re(i) {
|
|
976
976
|
const o = [];
|
|
977
|
-
if (Je(
|
|
978
|
-
const c =
|
|
977
|
+
if (Je(i.key) && o.push("filtered"), ge(i.key)) {
|
|
978
|
+
const c = pe(i.key);
|
|
979
979
|
o.push(Number.isFinite(c) ? `grouped level ${Number(c) + 1}` : "grouped");
|
|
980
980
|
}
|
|
981
|
-
ze(
|
|
981
|
+
ze(i.key) ? o.push("sorted ascending") : U(i.key) && o.push("sorted descending");
|
|
982
982
|
const a = o.length > 0 ? `, ${o.join(" and ")}` : "";
|
|
983
|
-
return `Open column menu for ${
|
|
983
|
+
return `Open column menu for ${i.column.label ?? i.key}${a}`;
|
|
984
984
|
}
|
|
985
|
-
function _t(
|
|
986
|
-
|
|
985
|
+
function _t(i, o) {
|
|
986
|
+
i(o.currentTarget instanceof HTMLElement ? o.currentTarget : null);
|
|
987
987
|
}
|
|
988
|
-
function Pe(
|
|
988
|
+
function Pe(i) {
|
|
989
989
|
const o = _.value.resolveColumnMenuSelectedTokens;
|
|
990
|
-
return typeof o == "function" ? o(
|
|
990
|
+
return typeof o == "function" ? o(i) : [];
|
|
991
991
|
}
|
|
992
|
-
function V(
|
|
992
|
+
function V(i) {
|
|
993
993
|
const o = _.value.resolveColumnMenuItems;
|
|
994
|
-
return typeof o == "function" ? o(
|
|
994
|
+
return typeof o == "function" ? o(i) : ["sort", "group", "pin", "filter"];
|
|
995
995
|
}
|
|
996
|
-
function
|
|
996
|
+
function Ge(i) {
|
|
997
997
|
const o = _.value.resolveColumnMenuDisabledItems;
|
|
998
|
-
return typeof o == "function" ? o(
|
|
998
|
+
return typeof o == "function" ? o(i) : [];
|
|
999
999
|
}
|
|
1000
|
-
function
|
|
1000
|
+
function Ie(i) {
|
|
1001
1001
|
const o = _.value.resolveColumnMenuDisabledReasons;
|
|
1002
|
-
return typeof o == "function" ? o(
|
|
1002
|
+
return typeof o == "function" ? o(i) : {};
|
|
1003
1003
|
}
|
|
1004
|
-
function
|
|
1004
|
+
function ce(i) {
|
|
1005
1005
|
const o = _.value.resolveColumnMenuLabels;
|
|
1006
|
-
return typeof o == "function" ? o(
|
|
1006
|
+
return typeof o == "function" ? o(i) : {};
|
|
1007
1007
|
}
|
|
1008
|
-
function
|
|
1008
|
+
function ct(i) {
|
|
1009
1009
|
const o = _.value.resolveColumnMenuActionOptions;
|
|
1010
|
-
return typeof o == "function" ? o(
|
|
1010
|
+
return typeof o == "function" ? o(i) : {};
|
|
1011
1011
|
}
|
|
1012
|
-
function
|
|
1012
|
+
function We(i) {
|
|
1013
1013
|
return [
|
|
1014
|
-
|
|
1014
|
+
i,
|
|
1015
1015
|
_.value.columnMenuValueFilterEnabled === !1 ? "text-only" : "value-filter",
|
|
1016
1016
|
te.value,
|
|
1017
1017
|
D.value.length
|
|
1018
1018
|
].join(":");
|
|
1019
1019
|
}
|
|
1020
|
-
function Ce(
|
|
1021
|
-
_.value.applyColumnMenuSort?.(
|
|
1020
|
+
function Ce(i, o) {
|
|
1021
|
+
_.value.applyColumnMenuSort?.(i, o);
|
|
1022
1022
|
}
|
|
1023
|
-
function Ve(
|
|
1024
|
-
_.value.applyColumnMenuPin?.(
|
|
1023
|
+
function Ve(i, o) {
|
|
1024
|
+
_.value.applyColumnMenuPin?.(i, o);
|
|
1025
1025
|
}
|
|
1026
|
-
function
|
|
1027
|
-
_.value.applyColumnMenuGroupBy?.(
|
|
1026
|
+
function gt(i, o) {
|
|
1027
|
+
_.value.applyColumnMenuGroupBy?.(i, o);
|
|
1028
1028
|
}
|
|
1029
|
-
function ve(
|
|
1030
|
-
_.value.applyColumnMenuFilter?.(
|
|
1029
|
+
function ve(i, o) {
|
|
1030
|
+
_.value.applyColumnMenuFilter?.(i, o);
|
|
1031
1031
|
}
|
|
1032
|
-
function me(
|
|
1033
|
-
_.value.clearColumnMenuFilter?.(
|
|
1032
|
+
function me(i) {
|
|
1033
|
+
_.value.clearColumnMenuFilter?.(i);
|
|
1034
1034
|
}
|
|
1035
|
-
function
|
|
1035
|
+
function G() {
|
|
1036
1036
|
return K.value.allVisibleRowsSelected === !0;
|
|
1037
1037
|
}
|
|
1038
|
-
function
|
|
1038
|
+
function ie() {
|
|
1039
1039
|
return K.value.someVisibleRowsSelected === !0;
|
|
1040
1040
|
}
|
|
1041
|
-
function
|
|
1042
|
-
return
|
|
1041
|
+
function pt() {
|
|
1042
|
+
return G() ? "true" : ie() ? "mixed" : "false";
|
|
1043
1043
|
}
|
|
1044
1044
|
function Ke() {
|
|
1045
1045
|
return {
|
|
1046
|
-
"grid-checkbox-indicator--checked":
|
|
1047
|
-
"grid-checkbox-indicator--mixed":
|
|
1046
|
+
"grid-checkbox-indicator--checked": G(),
|
|
1047
|
+
"grid-checkbox-indicator--mixed": ie() && !G()
|
|
1048
1048
|
};
|
|
1049
1049
|
}
|
|
1050
|
-
function
|
|
1050
|
+
function vt() {
|
|
1051
1051
|
return {
|
|
1052
|
-
"grid-checkbox-indicator__mark--checked":
|
|
1053
|
-
"grid-checkbox-indicator__mark--mixed":
|
|
1052
|
+
"grid-checkbox-indicator__mark--checked": G(),
|
|
1053
|
+
"grid-checkbox-indicator__mark--mixed": ie() && !G()
|
|
1054
1054
|
};
|
|
1055
1055
|
}
|
|
1056
1056
|
function Bt() {
|
|
1057
1057
|
K.value.handleToggleAllVisibleRows?.();
|
|
1058
1058
|
}
|
|
1059
|
-
function
|
|
1060
|
-
const o = `${
|
|
1059
|
+
function h(i) {
|
|
1060
|
+
const o = `${i}px`;
|
|
1061
1061
|
return {
|
|
1062
1062
|
width: o,
|
|
1063
1063
|
minWidth: o,
|
|
1064
1064
|
maxWidth: o
|
|
1065
1065
|
};
|
|
1066
1066
|
}
|
|
1067
|
-
return (
|
|
1068
|
-
class: j(["grid-header-shell", { "grid-header-shell--pivot-groups":
|
|
1069
|
-
style:
|
|
1067
|
+
return (i, o) => (s(), g("div", {
|
|
1068
|
+
class: j(["grid-header-shell", { "grid-header-shell--pivot-groups": B.value }]),
|
|
1069
|
+
style: E(n.paneLayoutStyle)
|
|
1070
1070
|
}, [
|
|
1071
|
-
Xt(
|
|
1071
|
+
Xt(i.$slots, "center-chrome"),
|
|
1072
1072
|
f("div", {
|
|
1073
1073
|
class: "grid-header-pane grid-header-pane--left",
|
|
1074
|
-
style:
|
|
1074
|
+
style: E(n.leftPaneStyle),
|
|
1075
1075
|
onWheel: o[10] || (o[10] = //@ts-ignore
|
|
1076
|
-
(...a) =>
|
|
1076
|
+
(...a) => n.onLinkedViewportWheel && n.onLinkedViewportWheel(...a))
|
|
1077
1077
|
}, [
|
|
1078
|
-
Xt(
|
|
1079
|
-
(s(!0), g(
|
|
1078
|
+
Xt(i.$slots, "left-chrome"),
|
|
1079
|
+
(s(!0), g(J, null, le(Me.value, (a, c) => (s(), g("div", {
|
|
1080
1080
|
key: `left-pivot-group-row-${c}`,
|
|
1081
1081
|
class: "grid-header-row grid-pane-track grid-header-row--pivot-groups",
|
|
1082
|
-
style:
|
|
1082
|
+
style: E(n.leftTrackStyle)
|
|
1083
1083
|
}, [
|
|
1084
|
-
|
|
1084
|
+
n.showIndexColumn ? (s(), g("div", {
|
|
1085
1085
|
key: 0,
|
|
1086
1086
|
class: "grid-cell grid-cell--header grid-cell--index grid-cell--index-header grid-cell--header-group grid-cell--header-group-empty",
|
|
1087
|
-
style:
|
|
1087
|
+
style: E(n.rowIndexColumnStyle),
|
|
1088
1088
|
"aria-hidden": "true"
|
|
1089
1089
|
}, null, 4)) : S("", !0),
|
|
1090
|
-
(s(!0), g(
|
|
1090
|
+
(s(!0), g(J, null, le(a, (T, O) => (s(), g("div", {
|
|
1091
1091
|
key: T.key,
|
|
1092
1092
|
class: j(["grid-cell grid-cell--header grid-cell--header-group grid-cell--pinned-left", {
|
|
1093
1093
|
"grid-cell--header-group-empty": !T.label,
|
|
1094
1094
|
"grid-cell--header-group-last": O === a.length - 1
|
|
1095
1095
|
}]),
|
|
1096
|
-
style:
|
|
1096
|
+
style: E(xt(T)),
|
|
1097
1097
|
"data-datagrid-pivot-group-label": T.label ?? void 0,
|
|
1098
1098
|
"data-datagrid-pivot-group-span": T.columns.length,
|
|
1099
1099
|
"data-datagrid-pivot-group-depth": c
|
|
1100
1100
|
}, [
|
|
1101
|
-
T.label ? (s(), g("span",
|
|
1102
|
-
], 14,
|
|
1101
|
+
T.label ? (s(), g("span", zo, z(T.label), 1)) : S("", !0)
|
|
1102
|
+
], 14, To))), 128))
|
|
1103
1103
|
], 4))), 128)),
|
|
1104
1104
|
f("div", {
|
|
1105
1105
|
class: "grid-header-row grid-pane-track",
|
|
1106
|
-
style:
|
|
1106
|
+
style: E(n.leftTrackStyle)
|
|
1107
1107
|
}, [
|
|
1108
|
-
|
|
1108
|
+
n.showIndexColumn ? (s(), g("div", {
|
|
1109
1109
|
key: 0,
|
|
1110
1110
|
class: "grid-cell grid-cell--header grid-cell--index grid-cell--index-header",
|
|
1111
|
-
style:
|
|
1111
|
+
style: E(n.rowIndexColumnStyle)
|
|
1112
1112
|
}, [
|
|
1113
|
-
|
|
1114
|
-
C() ? S("", !0) : (s(), g("div",
|
|
1113
|
+
Po,
|
|
1114
|
+
C() ? S("", !0) : (s(), g("div", Vo))
|
|
1115
1115
|
], 4)) : S("", !0),
|
|
1116
|
-
k() ? (s(!0), g(
|
|
1116
|
+
k() ? (s(!0), g(J, { key: 1 }, le(p.value, (a) => (s(), g(J, {
|
|
1117
1117
|
key: `header-left-${a.key}`
|
|
1118
1118
|
}, [
|
|
1119
|
-
|
|
1119
|
+
Et(a) ? (s(), g("div", {
|
|
1120
1120
|
key: 0,
|
|
1121
1121
|
class: "grid-cell grid-cell--header grid-cell--pinned-left grid-cell--checkbox grid-cell--row-selection",
|
|
1122
|
-
style:
|
|
1122
|
+
style: E([R(a.key), we(a)]),
|
|
1123
1123
|
"data-column-key": a.key
|
|
1124
1124
|
}, [
|
|
1125
|
-
f("div",
|
|
1125
|
+
f("div", Ho, [
|
|
1126
1126
|
f("button", {
|
|
1127
1127
|
class: j(["grid-checkbox-trigger", Ke()]),
|
|
1128
1128
|
type: "button",
|
|
1129
1129
|
role: "checkbox",
|
|
1130
1130
|
"aria-label": "Select all filtered rows",
|
|
1131
|
-
"aria-checked":
|
|
1131
|
+
"aria-checked": pt(),
|
|
1132
1132
|
onMousedown: o[0] || (o[0] = y(() => {
|
|
1133
1133
|
}, ["stop"])),
|
|
1134
1134
|
onClick: [
|
|
@@ -1142,39 +1142,39 @@ const $o = ["data-datagrid-pivot-group-label", "data-datagrid-pivot-group-span",
|
|
|
1142
1142
|
"aria-hidden": "true"
|
|
1143
1143
|
}, [
|
|
1144
1144
|
f("span", {
|
|
1145
|
-
class: j(["grid-checkbox-indicator__mark",
|
|
1145
|
+
class: j(["grid-checkbox-indicator__mark", vt()])
|
|
1146
1146
|
}, null, 2)
|
|
1147
1147
|
], 2)
|
|
1148
|
-
], 42,
|
|
1148
|
+
], 42, Oo)
|
|
1149
1149
|
])
|
|
1150
|
-
], 12,
|
|
1151
|
-
key:
|
|
1150
|
+
], 12, Do)) : (s(), oe(zr, {
|
|
1151
|
+
key: We(a.key),
|
|
1152
1152
|
rows: D.value,
|
|
1153
1153
|
items: V(a.key),
|
|
1154
|
-
"disabled-items":
|
|
1155
|
-
"disabled-reasons":
|
|
1156
|
-
labels:
|
|
1157
|
-
"action-options":
|
|
1154
|
+
"disabled-items": Ge(a.key),
|
|
1155
|
+
"disabled-reasons": Ie(a.key),
|
|
1156
|
+
labels: ce(a.key),
|
|
1157
|
+
"action-options": ct(a.key),
|
|
1158
1158
|
"column-key": a.key,
|
|
1159
1159
|
"column-label": a.column.label ?? a.key,
|
|
1160
1160
|
"column-data-type": a.column.dataType,
|
|
1161
1161
|
"sort-direction": ke(a.key),
|
|
1162
1162
|
"sort-enabled": Ze(a),
|
|
1163
1163
|
pin: a.pin,
|
|
1164
|
-
grouped:
|
|
1165
|
-
"group-order":
|
|
1164
|
+
grouped: ge(a.key),
|
|
1165
|
+
"group-order": pe(a.key),
|
|
1166
1166
|
"group-enabled": Qe(a),
|
|
1167
1167
|
"filter-enabled": wt(a),
|
|
1168
1168
|
"value-filter-row-limit": te.value,
|
|
1169
1169
|
"text-filter-enabled": Be(a),
|
|
1170
|
-
"text-filter-value":
|
|
1171
|
-
"filter-active":
|
|
1170
|
+
"text-filter-value": Z.value[a.key] ?? "",
|
|
1171
|
+
"filter-active": st(a.key),
|
|
1172
1172
|
"selected-filter-tokens": Pe(a.key),
|
|
1173
1173
|
"max-filter-values": ye.value,
|
|
1174
1174
|
onSort: (c) => Ce(a.key, c),
|
|
1175
1175
|
onPin: (c) => Ve(a.key, c),
|
|
1176
1176
|
onApplyFilter: (c) => ve(a.key, c),
|
|
1177
|
-
onGroup: (c) =>
|
|
1177
|
+
onGroup: (c) => gt(a.key, c),
|
|
1178
1178
|
onUpdateTextFilter: (c) => Te(a.key, c),
|
|
1179
1179
|
onClearFilter: (c) => me(a.key)
|
|
1180
1180
|
}, {
|
|
@@ -1184,14 +1184,14 @@ const $o = ["data-datagrid-pivot-group-label", "data-datagrid-pivot-group-span",
|
|
|
1184
1184
|
"grid-cell--header-menu-enabled": !0,
|
|
1185
1185
|
"grid-cell--header-menu-open": c
|
|
1186
1186
|
}]),
|
|
1187
|
-
style:
|
|
1187
|
+
style: E([R(a.key), we(a)]),
|
|
1188
1188
|
"data-column-key": a.key
|
|
1189
1189
|
}, [
|
|
1190
|
-
f("div",
|
|
1191
|
-
f("span",
|
|
1190
|
+
f("div", Wo, [
|
|
1191
|
+
f("span", Ko, z(xe(a)), 1),
|
|
1192
1192
|
f("button", {
|
|
1193
1193
|
type: "button",
|
|
1194
|
-
class: j(["col-menu-trigger",
|
|
1194
|
+
class: j(["col-menu-trigger", Q(a.key, c)]),
|
|
1195
1195
|
"aria-label": re(a),
|
|
1196
1196
|
title: re(a),
|
|
1197
1197
|
"data-column-key": a.key,
|
|
@@ -1201,41 +1201,41 @@ const $o = ["data-datagrid-pivot-group-label", "data-datagrid-pivot-group-span",
|
|
|
1201
1201
|
}, ["stop"])),
|
|
1202
1202
|
onClick: y((O) => _t(T, O), ["stop"])
|
|
1203
1203
|
}, [
|
|
1204
|
-
(s(), g("svg",
|
|
1205
|
-
Ct(a.key) ? (s(), g("path",
|
|
1206
|
-
ze(a.key) ? (s(), g("path",
|
|
1204
|
+
(s(), g("svg", No, [
|
|
1205
|
+
Ct(a.key) ? (s(), g("path", qo)) : S("", !0),
|
|
1206
|
+
ze(a.key) ? (s(), g("path", Uo)) : U(a.key) ? (s(), g("path", Xo)) : (s(), g("path", Yo))
|
|
1207
1207
|
]))
|
|
1208
|
-
], 42,
|
|
1208
|
+
], 42, jo),
|
|
1209
1209
|
f("button", {
|
|
1210
1210
|
type: "button",
|
|
1211
1211
|
class: "col-resize",
|
|
1212
1212
|
"aria-label": "Resize column",
|
|
1213
|
-
onMousedown: y((O) =>
|
|
1213
|
+
onMousedown: y((O) => Ee(O, a.key), ["stop", "prevent"]),
|
|
1214
1214
|
onDblclick: y((O) => Oe(O, a.key), ["stop"]),
|
|
1215
1215
|
onClick: o[3] || (o[3] = y(() => {
|
|
1216
1216
|
}, ["stop"]))
|
|
1217
|
-
}, null, 40,
|
|
1217
|
+
}, null, 40, Zo)
|
|
1218
1218
|
])
|
|
1219
|
-
], 14,
|
|
1219
|
+
], 14, Go)
|
|
1220
1220
|
]),
|
|
1221
1221
|
_: 2
|
|
1222
1222
|
}, 1032, ["rows", "items", "disabled-items", "disabled-reasons", "labels", "action-options", "column-key", "column-label", "column-data-type", "sort-direction", "sort-enabled", "pin", "grouped", "group-order", "group-enabled", "filter-enabled", "value-filter-row-limit", "text-filter-enabled", "text-filter-value", "filter-active", "selected-filter-tokens", "max-filter-values", "onSort", "onPin", "onApplyFilter", "onGroup", "onUpdateTextFilter", "onClearFilter"]))
|
|
1223
|
-
], 64))), 128)) : (s(!0), g(
|
|
1223
|
+
], 64))), 128)) : (s(!0), g(J, { key: 2 }, le(p.value, (a) => (s(), g(J, {
|
|
1224
1224
|
key: `header-left-${a.key}`
|
|
1225
1225
|
}, [
|
|
1226
|
-
|
|
1226
|
+
Et(a) ? (s(), g("div", {
|
|
1227
1227
|
key: 0,
|
|
1228
1228
|
class: "grid-cell grid-cell--header grid-cell--pinned-left grid-cell--checkbox grid-cell--row-selection",
|
|
1229
|
-
style:
|
|
1229
|
+
style: E([R(a.key), we(a)]),
|
|
1230
1230
|
"data-column-key": a.key
|
|
1231
1231
|
}, [
|
|
1232
|
-
f("div",
|
|
1232
|
+
f("div", Jo, [
|
|
1233
1233
|
f("button", {
|
|
1234
1234
|
class: j(["grid-checkbox-trigger", Ke()]),
|
|
1235
1235
|
type: "button",
|
|
1236
1236
|
role: "checkbox",
|
|
1237
1237
|
"aria-label": "Select all filtered rows",
|
|
1238
|
-
"aria-checked":
|
|
1238
|
+
"aria-checked": pt(),
|
|
1239
1239
|
onMousedown: o[4] || (o[4] = y(() => {
|
|
1240
1240
|
}, ["stop"])),
|
|
1241
1241
|
onClick: [
|
|
@@ -1249,35 +1249,35 @@ const $o = ["data-datagrid-pivot-group-label", "data-datagrid-pivot-group-span",
|
|
|
1249
1249
|
"aria-hidden": "true"
|
|
1250
1250
|
}, [
|
|
1251
1251
|
f("span", {
|
|
1252
|
-
class: j(["grid-checkbox-indicator__mark",
|
|
1252
|
+
class: j(["grid-checkbox-indicator__mark", vt()])
|
|
1253
1253
|
}, null, 2)
|
|
1254
1254
|
], 2)
|
|
1255
|
-
], 42,
|
|
1255
|
+
], 42, el)
|
|
1256
1256
|
])
|
|
1257
|
-
], 12,
|
|
1257
|
+
], 12, Qo)) : (s(), g("div", {
|
|
1258
1258
|
key: 1,
|
|
1259
1259
|
class: "grid-cell grid-cell--header grid-cell--header-sortable grid-cell--pinned-left",
|
|
1260
|
-
style:
|
|
1260
|
+
style: E([R(a.key), we(a)]),
|
|
1261
1261
|
"data-column-key": a.key,
|
|
1262
1262
|
onClick: (c) => Ae(a, c.shiftKey)
|
|
1263
1263
|
}, [
|
|
1264
|
-
f("div",
|
|
1264
|
+
f("div", rl, [
|
|
1265
1265
|
f("span", null, z(xe(a)), 1),
|
|
1266
1266
|
Re(a.key) ? (s(), g("span", {
|
|
1267
1267
|
key: 0,
|
|
1268
1268
|
class: "col-head__group-badge",
|
|
1269
|
-
title:
|
|
1270
|
-
}, z(Re(a.key)), 9,
|
|
1271
|
-
f("span",
|
|
1269
|
+
title: ut(a.key)
|
|
1270
|
+
}, z(Re(a.key)), 9, al)) : S("", !0),
|
|
1271
|
+
f("span", nl, z(dt(a.key)), 1),
|
|
1272
1272
|
f("button", {
|
|
1273
1273
|
type: "button",
|
|
1274
1274
|
class: "col-resize",
|
|
1275
1275
|
"aria-label": "Resize column",
|
|
1276
|
-
onMousedown: y((c) =>
|
|
1276
|
+
onMousedown: y((c) => Ee(c, a.key), ["stop", "prevent"]),
|
|
1277
1277
|
onDblclick: y((c) => Oe(c, a.key), ["stop"]),
|
|
1278
1278
|
onClick: o[6] || (o[6] = y(() => {
|
|
1279
1279
|
}, ["stop"]))
|
|
1280
|
-
}, null, 40,
|
|
1280
|
+
}, null, 40, il)
|
|
1281
1281
|
]),
|
|
1282
1282
|
f("div", {
|
|
1283
1283
|
class: "col-filter",
|
|
@@ -1286,7 +1286,7 @@ const $o = ["data-datagrid-pivot-group-label", "data-datagrid-pivot-group-span",
|
|
|
1286
1286
|
}, [
|
|
1287
1287
|
f("input", {
|
|
1288
1288
|
class: "col-filter-input",
|
|
1289
|
-
value:
|
|
1289
|
+
value: Z.value[a.key] ?? "",
|
|
1290
1290
|
disabled: !Be(a),
|
|
1291
1291
|
placeholder: "Filter...",
|
|
1292
1292
|
onMousedown: o[7] || (o[7] = y(() => {
|
|
@@ -1294,84 +1294,84 @@ const $o = ["data-datagrid-pivot-group-label", "data-datagrid-pivot-group-span",
|
|
|
1294
1294
|
onKeydown: o[8] || (o[8] = y(() => {
|
|
1295
1295
|
}, ["stop"])),
|
|
1296
1296
|
onInput: (c) => Te(a.key, c.target.value)
|
|
1297
|
-
}, null, 40,
|
|
1297
|
+
}, null, 40, ol)
|
|
1298
1298
|
])
|
|
1299
|
-
], 12,
|
|
1299
|
+
], 12, tl))
|
|
1300
1300
|
], 64))), 128))
|
|
1301
1301
|
], 4)
|
|
1302
1302
|
], 36),
|
|
1303
1303
|
f("div", {
|
|
1304
1304
|
ref: At,
|
|
1305
1305
|
class: "grid-header-viewport",
|
|
1306
|
-
onScroll:
|
|
1306
|
+
onScroll: It,
|
|
1307
1307
|
onWheel: o[17] || (o[17] = //@ts-ignore
|
|
1308
|
-
(...a) =>
|
|
1308
|
+
(...a) => n.onLinkedViewportWheel && n.onLinkedViewportWheel(...a))
|
|
1309
1309
|
}, [
|
|
1310
|
-
(s(!0), g(
|
|
1310
|
+
(s(!0), g(J, null, le(v.value, (a, c) => (s(), g("div", {
|
|
1311
1311
|
key: `center-pivot-group-row-${c}`,
|
|
1312
1312
|
class: "grid-header-row grid-center-track grid-header-row--pivot-groups",
|
|
1313
|
-
style:
|
|
1313
|
+
style: E(H.value)
|
|
1314
1314
|
}, [
|
|
1315
1315
|
fe.value > 0 ? (s(), g("div", {
|
|
1316
1316
|
key: 0,
|
|
1317
1317
|
class: "grid-column-spacer",
|
|
1318
|
-
style:
|
|
1318
|
+
style: E(h(fe.value))
|
|
1319
1319
|
}, null, 4)) : S("", !0),
|
|
1320
|
-
(s(!0), g(
|
|
1320
|
+
(s(!0), g(J, null, le(a, (T, O) => (s(), g("div", {
|
|
1321
1321
|
key: T.key,
|
|
1322
1322
|
class: j(["grid-cell grid-cell--header grid-cell--header-group", {
|
|
1323
1323
|
"grid-cell--header-group-empty": !T.label,
|
|
1324
|
-
"grid-cell--header-group-last": O === a.length - 1 &&
|
|
1324
|
+
"grid-cell--header-group-last": O === a.length - 1 && Y.value <= 0
|
|
1325
1325
|
}]),
|
|
1326
|
-
style:
|
|
1326
|
+
style: E(xt(T)),
|
|
1327
1327
|
"data-datagrid-pivot-group-label": T.label ?? void 0,
|
|
1328
1328
|
"data-datagrid-pivot-group-span": T.columns.length,
|
|
1329
1329
|
"data-datagrid-pivot-group-depth": c
|
|
1330
1330
|
}, [
|
|
1331
|
-
T.label ? (s(), g("span",
|
|
1332
|
-
], 14,
|
|
1333
|
-
|
|
1331
|
+
T.label ? (s(), g("span", dl, z(T.label), 1)) : S("", !0)
|
|
1332
|
+
], 14, ll))), 128)),
|
|
1333
|
+
Y.value > 0 ? (s(), g("div", {
|
|
1334
1334
|
key: 1,
|
|
1335
1335
|
class: "grid-column-spacer",
|
|
1336
|
-
style:
|
|
1336
|
+
style: E(h(Y.value))
|
|
1337
1337
|
}, null, 4)) : S("", !0)
|
|
1338
1338
|
], 4))), 128)),
|
|
1339
1339
|
f("div", {
|
|
1340
1340
|
class: "grid-header-row grid-center-track",
|
|
1341
|
-
style:
|
|
1341
|
+
style: E(H.value)
|
|
1342
1342
|
}, [
|
|
1343
1343
|
fe.value > 0 ? (s(), g("div", {
|
|
1344
1344
|
key: 0,
|
|
1345
1345
|
class: "grid-column-spacer",
|
|
1346
|
-
style:
|
|
1346
|
+
style: E(h(fe.value))
|
|
1347
1347
|
}, null, 4)) : S("", !0),
|
|
1348
|
-
k() ? (s(!0), g(
|
|
1349
|
-
key:
|
|
1348
|
+
k() ? (s(!0), g(J, { key: 1 }, le(I.value, (a) => (s(), oe(zr, {
|
|
1349
|
+
key: We(a.key),
|
|
1350
1350
|
rows: D.value,
|
|
1351
1351
|
items: V(a.key),
|
|
1352
|
-
"disabled-items":
|
|
1353
|
-
"disabled-reasons":
|
|
1354
|
-
labels:
|
|
1355
|
-
"action-options":
|
|
1352
|
+
"disabled-items": Ge(a.key),
|
|
1353
|
+
"disabled-reasons": Ie(a.key),
|
|
1354
|
+
labels: ce(a.key),
|
|
1355
|
+
"action-options": ct(a.key),
|
|
1356
1356
|
"column-key": a.key,
|
|
1357
1357
|
"column-label": a.column.label ?? a.key,
|
|
1358
1358
|
"column-data-type": a.column.dataType,
|
|
1359
1359
|
"sort-direction": ke(a.key),
|
|
1360
1360
|
"sort-enabled": Ze(a),
|
|
1361
1361
|
pin: a.pin,
|
|
1362
|
-
grouped:
|
|
1363
|
-
"group-order":
|
|
1362
|
+
grouped: ge(a.key),
|
|
1363
|
+
"group-order": pe(a.key),
|
|
1364
1364
|
"group-enabled": Qe(a),
|
|
1365
1365
|
"filter-enabled": wt(a),
|
|
1366
1366
|
"value-filter-row-limit": te.value,
|
|
1367
1367
|
"text-filter-enabled": Be(a),
|
|
1368
|
-
"text-filter-value":
|
|
1369
|
-
"filter-active":
|
|
1368
|
+
"text-filter-value": Z.value[a.key] ?? "",
|
|
1369
|
+
"filter-active": st(a.key),
|
|
1370
1370
|
"selected-filter-tokens": Pe(a.key),
|
|
1371
1371
|
"max-filter-values": ye.value,
|
|
1372
1372
|
onSort: (c) => Ce(a.key, c),
|
|
1373
1373
|
onPin: (c) => Ve(a.key, c),
|
|
1374
|
-
onGroup: (c) =>
|
|
1374
|
+
onGroup: (c) => gt(a.key, c),
|
|
1375
1375
|
onApplyFilter: (c) => ve(a.key, c),
|
|
1376
1376
|
onUpdateTextFilter: (c) => Te(a.key, c),
|
|
1377
1377
|
onClearFilter: (c) => me(a.key)
|
|
@@ -1382,19 +1382,19 @@ const $o = ["data-datagrid-pivot-group-label", "data-datagrid-pivot-group-span",
|
|
|
1382
1382
|
"grid-cell--header-menu-enabled": !0,
|
|
1383
1383
|
"grid-cell--header-menu-open": c
|
|
1384
1384
|
}]),
|
|
1385
|
-
style:
|
|
1385
|
+
style: E([R(a.key), we(a)]),
|
|
1386
1386
|
"data-column-key": a.key
|
|
1387
1387
|
}, [
|
|
1388
|
-
f("div",
|
|
1389
|
-
f("span",
|
|
1388
|
+
f("div", ul, [
|
|
1389
|
+
f("span", cl, z(xe(a)), 1),
|
|
1390
1390
|
Re(a.key) ? (s(), g("span", {
|
|
1391
1391
|
key: 0,
|
|
1392
1392
|
class: "col-head__group-badge",
|
|
1393
|
-
title:
|
|
1394
|
-
}, z(Re(a.key)), 9,
|
|
1393
|
+
title: ut(a.key)
|
|
1394
|
+
}, z(Re(a.key)), 9, gl)) : S("", !0),
|
|
1395
1395
|
f("button", {
|
|
1396
1396
|
type: "button",
|
|
1397
|
-
class: j(["col-menu-trigger",
|
|
1397
|
+
class: j(["col-menu-trigger", Q(a.key, c)]),
|
|
1398
1398
|
"aria-label": re(a),
|
|
1399
1399
|
title: re(a),
|
|
1400
1400
|
"data-column-key": a.key,
|
|
@@ -1404,48 +1404,48 @@ const $o = ["data-datagrid-pivot-group-label", "data-datagrid-pivot-group-span",
|
|
|
1404
1404
|
}, ["stop"])),
|
|
1405
1405
|
onClick: y((O) => _t(T, O), ["stop"])
|
|
1406
1406
|
}, [
|
|
1407
|
-
(s(), g("svg",
|
|
1408
|
-
Ct(a.key) ? (s(), g("path",
|
|
1409
|
-
ze(a.key) ? (s(), g("path",
|
|
1407
|
+
(s(), g("svg", vl, [
|
|
1408
|
+
Ct(a.key) ? (s(), g("path", ml)) : S("", !0),
|
|
1409
|
+
ze(a.key) ? (s(), g("path", hl)) : U(a.key) ? (s(), g("path", bl)) : (s(), g("path", fl))
|
|
1410
1410
|
]))
|
|
1411
|
-
], 42,
|
|
1411
|
+
], 42, pl),
|
|
1412
1412
|
f("button", {
|
|
1413
1413
|
type: "button",
|
|
1414
1414
|
class: "col-resize",
|
|
1415
1415
|
"aria-label": "Resize column",
|
|
1416
|
-
onMousedown: y((O) =>
|
|
1416
|
+
onMousedown: y((O) => Ee(O, a.key), ["stop", "prevent"]),
|
|
1417
1417
|
onDblclick: y((O) => Oe(O, a.key), ["stop"]),
|
|
1418
1418
|
onClick: o[12] || (o[12] = y(() => {
|
|
1419
1419
|
}, ["stop"]))
|
|
1420
|
-
}, null, 40,
|
|
1420
|
+
}, null, 40, yl)
|
|
1421
1421
|
])
|
|
1422
|
-
], 14,
|
|
1422
|
+
], 14, sl)
|
|
1423
1423
|
]),
|
|
1424
1424
|
_: 2
|
|
1425
|
-
}, 1032, ["rows", "items", "disabled-items", "disabled-reasons", "labels", "action-options", "column-key", "column-label", "column-data-type", "sort-direction", "sort-enabled", "pin", "grouped", "group-order", "group-enabled", "filter-enabled", "value-filter-row-limit", "text-filter-enabled", "text-filter-value", "filter-active", "selected-filter-tokens", "max-filter-values", "onSort", "onPin", "onGroup", "onApplyFilter", "onUpdateTextFilter", "onClearFilter"]))), 128)) : (s(!0), g(
|
|
1425
|
+
}, 1032, ["rows", "items", "disabled-items", "disabled-reasons", "labels", "action-options", "column-key", "column-label", "column-data-type", "sort-direction", "sort-enabled", "pin", "grouped", "group-order", "group-enabled", "filter-enabled", "value-filter-row-limit", "text-filter-enabled", "text-filter-value", "filter-active", "selected-filter-tokens", "max-filter-values", "onSort", "onPin", "onGroup", "onApplyFilter", "onUpdateTextFilter", "onClearFilter"]))), 128)) : (s(!0), g(J, { key: 2 }, le(I.value, (a) => (s(), g("div", {
|
|
1426
1426
|
key: `header-${a.key}`,
|
|
1427
1427
|
class: "grid-cell grid-cell--header grid-cell--header-sortable",
|
|
1428
|
-
style:
|
|
1428
|
+
style: E([R(a.key), we(a)]),
|
|
1429
1429
|
"data-column-key": a.key,
|
|
1430
1430
|
onClick: (c) => Ae(a, c.shiftKey)
|
|
1431
1431
|
}, [
|
|
1432
|
-
f("div",
|
|
1432
|
+
f("div", wl, [
|
|
1433
1433
|
f("span", null, z(xe(a)), 1),
|
|
1434
1434
|
Re(a.key) ? (s(), g("span", {
|
|
1435
1435
|
key: 0,
|
|
1436
1436
|
class: "col-head__group-badge",
|
|
1437
|
-
title:
|
|
1438
|
-
}, z(Re(a.key)), 9,
|
|
1439
|
-
f("span",
|
|
1437
|
+
title: ut(a.key)
|
|
1438
|
+
}, z(Re(a.key)), 9, kl)) : S("", !0),
|
|
1439
|
+
f("span", Cl, z(dt(a.key)), 1),
|
|
1440
1440
|
f("button", {
|
|
1441
1441
|
type: "button",
|
|
1442
1442
|
class: "col-resize",
|
|
1443
1443
|
"aria-label": "Resize column",
|
|
1444
|
-
onMousedown: y((c) =>
|
|
1444
|
+
onMousedown: y((c) => Ee(c, a.key), ["stop", "prevent"]),
|
|
1445
1445
|
onDblclick: y((c) => Oe(c, a.key), ["stop"]),
|
|
1446
1446
|
onClick: o[13] || (o[13] = y(() => {
|
|
1447
1447
|
}, ["stop"]))
|
|
1448
|
-
}, null, 40,
|
|
1448
|
+
}, null, 40, _l)
|
|
1449
1449
|
]),
|
|
1450
1450
|
f("div", {
|
|
1451
1451
|
class: "col-filter",
|
|
@@ -1454,7 +1454,7 @@ const $o = ["data-datagrid-pivot-group-label", "data-datagrid-pivot-group-span",
|
|
|
1454
1454
|
}, [
|
|
1455
1455
|
f("input", {
|
|
1456
1456
|
class: "col-filter-input",
|
|
1457
|
-
value:
|
|
1457
|
+
value: Z.value[a.key] ?? "",
|
|
1458
1458
|
disabled: !Be(a),
|
|
1459
1459
|
placeholder: "Filter...",
|
|
1460
1460
|
onMousedown: o[14] || (o[14] = y(() => {
|
|
@@ -1462,74 +1462,74 @@ const $o = ["data-datagrid-pivot-group-label", "data-datagrid-pivot-group-span",
|
|
|
1462
1462
|
onKeydown: o[15] || (o[15] = y(() => {
|
|
1463
1463
|
}, ["stop"])),
|
|
1464
1464
|
onInput: (c) => Te(a.key, c.target.value)
|
|
1465
|
-
}, null, 40,
|
|
1465
|
+
}, null, 40, Sl)
|
|
1466
1466
|
])
|
|
1467
|
-
], 12,
|
|
1468
|
-
|
|
1467
|
+
], 12, xl))), 128)),
|
|
1468
|
+
Y.value > 0 ? (s(), g("div", {
|
|
1469
1469
|
key: 3,
|
|
1470
1470
|
class: "grid-column-spacer",
|
|
1471
|
-
style:
|
|
1471
|
+
style: E(h(Y.value))
|
|
1472
1472
|
}, null, 4)) : S("", !0)
|
|
1473
1473
|
], 4)
|
|
1474
1474
|
], 32),
|
|
1475
1475
|
f("div", {
|
|
1476
1476
|
class: "grid-header-pane grid-header-pane--right",
|
|
1477
|
-
style:
|
|
1477
|
+
style: E(n.rightPaneStyle),
|
|
1478
1478
|
onWheel: o[24] || (o[24] = //@ts-ignore
|
|
1479
|
-
(...a) =>
|
|
1479
|
+
(...a) => n.onLinkedViewportWheel && n.onLinkedViewportWheel(...a))
|
|
1480
1480
|
}, [
|
|
1481
|
-
Xt(
|
|
1482
|
-
(s(!0), g(
|
|
1481
|
+
Xt(i.$slots, "right-chrome"),
|
|
1482
|
+
(s(!0), g(J, null, le(Se.value, (a, c) => (s(), g("div", {
|
|
1483
1483
|
key: `right-pivot-group-row-${c}`,
|
|
1484
1484
|
class: "grid-header-row grid-pane-track grid-header-row--pivot-groups",
|
|
1485
|
-
style:
|
|
1485
|
+
style: E(n.rightTrackStyle)
|
|
1486
1486
|
}, [
|
|
1487
|
-
(s(!0), g(
|
|
1487
|
+
(s(!0), g(J, null, le(a, (T, O) => (s(), g("div", {
|
|
1488
1488
|
key: T.key,
|
|
1489
1489
|
class: j(["grid-cell grid-cell--header grid-cell--header-group grid-cell--pinned-right", {
|
|
1490
1490
|
"grid-cell--header-group-empty": !T.label,
|
|
1491
1491
|
"grid-cell--header-group-last": O === a.length - 1
|
|
1492
1492
|
}]),
|
|
1493
|
-
style:
|
|
1493
|
+
style: E(xt(T)),
|
|
1494
1494
|
"data-datagrid-pivot-group-label": T.label ?? void 0,
|
|
1495
1495
|
"data-datagrid-pivot-group-span": T.columns.length,
|
|
1496
1496
|
"data-datagrid-pivot-group-depth": c
|
|
1497
1497
|
}, [
|
|
1498
|
-
T.label ? (s(), g("span",
|
|
1499
|
-
], 14,
|
|
1498
|
+
T.label ? (s(), g("span", Ml, z(T.label), 1)) : S("", !0)
|
|
1499
|
+
], 14, Rl))), 128))
|
|
1500
1500
|
], 4))), 128)),
|
|
1501
1501
|
f("div", {
|
|
1502
1502
|
class: "grid-header-row grid-pane-track",
|
|
1503
|
-
style:
|
|
1503
|
+
style: E(n.rightTrackStyle)
|
|
1504
1504
|
}, [
|
|
1505
|
-
k() ? (s(!0), g(
|
|
1506
|
-
key:
|
|
1505
|
+
k() ? (s(!0), g(J, { key: 0 }, le(x.value, (a) => (s(), oe(zr, {
|
|
1506
|
+
key: We(a.key),
|
|
1507
1507
|
rows: D.value,
|
|
1508
1508
|
items: V(a.key),
|
|
1509
|
-
"disabled-items":
|
|
1510
|
-
"disabled-reasons":
|
|
1511
|
-
labels:
|
|
1512
|
-
"action-options":
|
|
1509
|
+
"disabled-items": Ge(a.key),
|
|
1510
|
+
"disabled-reasons": Ie(a.key),
|
|
1511
|
+
labels: ce(a.key),
|
|
1512
|
+
"action-options": ct(a.key),
|
|
1513
1513
|
"column-key": a.key,
|
|
1514
1514
|
"column-label": a.column.label ?? a.key,
|
|
1515
1515
|
"column-data-type": a.column.dataType,
|
|
1516
1516
|
"sort-direction": ke(a.key),
|
|
1517
1517
|
"sort-enabled": Ze(a),
|
|
1518
1518
|
pin: a.pin,
|
|
1519
|
-
grouped:
|
|
1520
|
-
"group-order":
|
|
1519
|
+
grouped: ge(a.key),
|
|
1520
|
+
"group-order": pe(a.key),
|
|
1521
1521
|
"group-enabled": Qe(a),
|
|
1522
1522
|
"filter-enabled": wt(a),
|
|
1523
1523
|
"value-filter-row-limit": te.value,
|
|
1524
1524
|
"text-filter-enabled": Be(a),
|
|
1525
|
-
"text-filter-value":
|
|
1526
|
-
"filter-active":
|
|
1525
|
+
"text-filter-value": Z.value[a.key] ?? "",
|
|
1526
|
+
"filter-active": st(a.key),
|
|
1527
1527
|
"selected-filter-tokens": Pe(a.key),
|
|
1528
1528
|
"max-filter-values": ye.value,
|
|
1529
1529
|
onSort: (c) => Ce(a.key, c),
|
|
1530
1530
|
onPin: (c) => Ve(a.key, c),
|
|
1531
1531
|
onApplyFilter: (c) => ve(a.key, c),
|
|
1532
|
-
onGroup: (c) =>
|
|
1532
|
+
onGroup: (c) => gt(a.key, c),
|
|
1533
1533
|
onUpdateTextFilter: (c) => Te(a.key, c),
|
|
1534
1534
|
onClearFilter: (c) => me(a.key)
|
|
1535
1535
|
}, {
|
|
@@ -1539,19 +1539,19 @@ const $o = ["data-datagrid-pivot-group-label", "data-datagrid-pivot-group-span",
|
|
|
1539
1539
|
"grid-cell--header-menu-enabled": !0,
|
|
1540
1540
|
"grid-cell--header-menu-open": c
|
|
1541
1541
|
}]),
|
|
1542
|
-
style:
|
|
1542
|
+
style: E([R(a.key), we(a)]),
|
|
1543
1543
|
"data-column-key": a.key
|
|
1544
1544
|
}, [
|
|
1545
|
-
f("div",
|
|
1546
|
-
f("span",
|
|
1545
|
+
f("div", Il, [
|
|
1546
|
+
f("span", El, z(xe(a)), 1),
|
|
1547
1547
|
Re(a.key) ? (s(), g("span", {
|
|
1548
1548
|
key: 0,
|
|
1549
1549
|
class: "col-head__group-badge",
|
|
1550
|
-
title:
|
|
1551
|
-
}, z(Re(a.key)), 9,
|
|
1550
|
+
title: ut(a.key)
|
|
1551
|
+
}, z(Re(a.key)), 9, Bl)) : S("", !0),
|
|
1552
1552
|
f("button", {
|
|
1553
1553
|
type: "button",
|
|
1554
|
-
class: j(["col-menu-trigger",
|
|
1554
|
+
class: j(["col-menu-trigger", Q(a.key, c)]),
|
|
1555
1555
|
"aria-label": re(a),
|
|
1556
1556
|
title: re(a),
|
|
1557
1557
|
"data-column-key": a.key,
|
|
@@ -1561,43 +1561,43 @@ const $o = ["data-datagrid-pivot-group-label", "data-datagrid-pivot-group-span",
|
|
|
1561
1561
|
}, ["stop"])),
|
|
1562
1562
|
onClick: y((O) => _t(T, O), ["stop"])
|
|
1563
1563
|
}, [
|
|
1564
|
-
(s(), g("svg",
|
|
1565
|
-
Ct(a.key) ? (s(), g("path",
|
|
1566
|
-
ze(a.key) ? (s(), g("path",
|
|
1564
|
+
(s(), g("svg", $l, [
|
|
1565
|
+
Ct(a.key) ? (s(), g("path", Ll)) : S("", !0),
|
|
1566
|
+
ze(a.key) ? (s(), g("path", Tl)) : U(a.key) ? (s(), g("path", zl)) : (s(), g("path", Pl))
|
|
1567
1567
|
]))
|
|
1568
|
-
], 42,
|
|
1568
|
+
], 42, Fl),
|
|
1569
1569
|
f("button", {
|
|
1570
1570
|
type: "button",
|
|
1571
1571
|
class: "col-resize",
|
|
1572
1572
|
"aria-label": "Resize column",
|
|
1573
|
-
onMousedown: y((O) =>
|
|
1573
|
+
onMousedown: y((O) => Ee(O, a.key), ["stop", "prevent"]),
|
|
1574
1574
|
onDblclick: y((O) => Oe(O, a.key), ["stop"]),
|
|
1575
1575
|
onClick: o[19] || (o[19] = y(() => {
|
|
1576
1576
|
}, ["stop"]))
|
|
1577
|
-
}, null, 40,
|
|
1577
|
+
}, null, 40, Vl)
|
|
1578
1578
|
])
|
|
1579
|
-
], 14,
|
|
1579
|
+
], 14, Al)
|
|
1580
1580
|
]),
|
|
1581
1581
|
_: 2
|
|
1582
|
-
}, 1032, ["rows", "items", "disabled-items", "disabled-reasons", "labels", "action-options", "column-key", "column-label", "column-data-type", "sort-direction", "sort-enabled", "pin", "grouped", "group-order", "group-enabled", "filter-enabled", "value-filter-row-limit", "text-filter-enabled", "text-filter-value", "filter-active", "selected-filter-tokens", "max-filter-values", "onSort", "onPin", "onApplyFilter", "onGroup", "onUpdateTextFilter", "onClearFilter"]))), 128)) : (s(!0), g(
|
|
1582
|
+
}, 1032, ["rows", "items", "disabled-items", "disabled-reasons", "labels", "action-options", "column-key", "column-label", "column-data-type", "sort-direction", "sort-enabled", "pin", "grouped", "group-order", "group-enabled", "filter-enabled", "value-filter-row-limit", "text-filter-enabled", "text-filter-value", "filter-active", "selected-filter-tokens", "max-filter-values", "onSort", "onPin", "onApplyFilter", "onGroup", "onUpdateTextFilter", "onClearFilter"]))), 128)) : (s(!0), g(J, { key: 1 }, le(x.value, (a) => (s(), g("div", {
|
|
1583
1583
|
key: `header-right-${a.key}`,
|
|
1584
1584
|
class: "grid-cell grid-cell--header grid-cell--header-sortable grid-cell--pinned-right",
|
|
1585
|
-
style:
|
|
1585
|
+
style: E([R(a.key), we(a)]),
|
|
1586
1586
|
"data-column-key": a.key,
|
|
1587
1587
|
onClick: (c) => Ae(a, c.shiftKey)
|
|
1588
1588
|
}, [
|
|
1589
|
-
f("div",
|
|
1589
|
+
f("div", Hl, [
|
|
1590
1590
|
f("span", null, z(xe(a)), 1),
|
|
1591
|
-
f("span",
|
|
1591
|
+
f("span", Ol, z(dt(a.key)), 1),
|
|
1592
1592
|
f("button", {
|
|
1593
1593
|
type: "button",
|
|
1594
1594
|
class: "col-resize",
|
|
1595
1595
|
"aria-label": "Resize column",
|
|
1596
|
-
onMousedown: y((c) =>
|
|
1596
|
+
onMousedown: y((c) => Ee(c, a.key), ["stop", "prevent"]),
|
|
1597
1597
|
onDblclick: y((c) => Oe(c, a.key), ["stop"]),
|
|
1598
1598
|
onClick: o[20] || (o[20] = y(() => {
|
|
1599
1599
|
}, ["stop"]))
|
|
1600
|
-
}, null, 40,
|
|
1600
|
+
}, null, 40, Gl)
|
|
1601
1601
|
]),
|
|
1602
1602
|
f("div", {
|
|
1603
1603
|
class: "col-filter",
|
|
@@ -1606,7 +1606,7 @@ const $o = ["data-datagrid-pivot-group-label", "data-datagrid-pivot-group-span",
|
|
|
1606
1606
|
}, [
|
|
1607
1607
|
f("input", {
|
|
1608
1608
|
class: "col-filter-input",
|
|
1609
|
-
value:
|
|
1609
|
+
value: Z.value[a.key] ?? "",
|
|
1610
1610
|
disabled: !Be(a),
|
|
1611
1611
|
placeholder: "Filter...",
|
|
1612
1612
|
onMousedown: o[21] || (o[21] = y(() => {
|
|
@@ -1614,14 +1614,14 @@ const $o = ["data-datagrid-pivot-group-label", "data-datagrid-pivot-group-span",
|
|
|
1614
1614
|
onKeydown: o[22] || (o[22] = y(() => {
|
|
1615
1615
|
}, ["stop"])),
|
|
1616
1616
|
onInput: (c) => Te(a.key, c.target.value)
|
|
1617
|
-
}, null, 40,
|
|
1617
|
+
}, null, 40, Wl)
|
|
1618
1618
|
])
|
|
1619
|
-
], 12,
|
|
1619
|
+
], 12, Dl))), 128))
|
|
1620
1620
|
], 4)
|
|
1621
1621
|
], 36)
|
|
1622
1622
|
], 6));
|
|
1623
1623
|
}
|
|
1624
|
-
}),
|
|
1624
|
+
}), on = /* @__PURE__ */ ot({
|
|
1625
1625
|
__name: "DataGridCellComboboxEditor",
|
|
1626
1626
|
props: {
|
|
1627
1627
|
value: {},
|
|
@@ -1632,7 +1632,7 @@ const $o = ["data-datagrid-pivot-group-label", "data-datagrid-pivot-group-span",
|
|
|
1632
1632
|
openOnMount: { type: Boolean }
|
|
1633
1633
|
},
|
|
1634
1634
|
emits: ["commit", "cancel", "optionsResolved"],
|
|
1635
|
-
setup(
|
|
1635
|
+
setup(n, { emit: ee }) {
|
|
1636
1636
|
const A = ee;
|
|
1637
1637
|
function L(K, D) {
|
|
1638
1638
|
A("commit", K, D);
|
|
@@ -1640,7 +1640,7 @@ const $o = ["data-datagrid-pivot-group-label", "data-datagrid-pivot-group-span",
|
|
|
1640
1640
|
function _(K) {
|
|
1641
1641
|
A("optionsResolved", K);
|
|
1642
1642
|
}
|
|
1643
|
-
return (K, D) => (s(),
|
|
1643
|
+
return (K, D) => (s(), oe(qi, {
|
|
1644
1644
|
value: K.value,
|
|
1645
1645
|
options: K.options,
|
|
1646
1646
|
"load-options": K.loadOptions,
|
|
@@ -1649,23 +1649,34 @@ const $o = ["data-datagrid-pivot-group-label", "data-datagrid-pivot-group-span",
|
|
|
1649
1649
|
"open-on-mount": K.openOnMount,
|
|
1650
1650
|
"open-on-focus": !1,
|
|
1651
1651
|
onCommit: L,
|
|
1652
|
-
onCancel: D[0] || (D[0] = (
|
|
1652
|
+
onCancel: D[0] || (D[0] = (F) => A("cancel")),
|
|
1653
1653
|
onOptionsResolved: _
|
|
1654
1654
|
}, null, 8, ["value", "options", "load-options", "placeholder", "initial-filter", "open-on-mount"]));
|
|
1655
1655
|
}
|
|
1656
|
-
}),
|
|
1656
|
+
}), ln = ot({
|
|
1657
|
+
name: "DataGridCellContentRenderer",
|
|
1658
|
+
props: {
|
|
1659
|
+
content: {
|
|
1660
|
+
type: null,
|
|
1661
|
+
default: null
|
|
1662
|
+
}
|
|
1663
|
+
},
|
|
1664
|
+
setup(n) {
|
|
1665
|
+
return () => n.content;
|
|
1666
|
+
}
|
|
1667
|
+
}), jl = {
|
|
1657
1668
|
key: 0,
|
|
1658
1669
|
class: "grid-selection-overlay",
|
|
1659
1670
|
"aria-hidden": "true"
|
|
1660
|
-
},
|
|
1671
|
+
}, Nl = {
|
|
1661
1672
|
key: 1,
|
|
1662
1673
|
class: "grid-selection-overlay",
|
|
1663
1674
|
"aria-hidden": "true"
|
|
1664
|
-
},
|
|
1675
|
+
}, ql = {
|
|
1665
1676
|
key: 2,
|
|
1666
1677
|
class: "grid-selection-overlay",
|
|
1667
1678
|
"aria-hidden": "true"
|
|
1668
|
-
},
|
|
1679
|
+
}, dn = /* @__PURE__ */ ot({
|
|
1669
1680
|
__name: "DataGridTableStageOverlayLayer",
|
|
1670
1681
|
props: {
|
|
1671
1682
|
selectionSegments: {
|
|
@@ -1681,32 +1692,32 @@ const $o = ["data-datagrid-pivot-group-label", "data-datagrid-pivot-group-span",
|
|
|
1681
1692
|
required: !0
|
|
1682
1693
|
}
|
|
1683
1694
|
},
|
|
1684
|
-
setup(
|
|
1685
|
-
return (ee, A) => (s(), g(
|
|
1686
|
-
|
|
1687
|
-
(s(!0), g(
|
|
1695
|
+
setup(n) {
|
|
1696
|
+
return (ee, A) => (s(), g(J, null, [
|
|
1697
|
+
n.selectionSegments.length > 0 ? (s(), g("div", jl, [
|
|
1698
|
+
(s(!0), g(J, null, le(n.selectionSegments, (L) => (s(), g("div", {
|
|
1688
1699
|
key: L.key,
|
|
1689
1700
|
class: "grid-selection-overlay__segment",
|
|
1690
|
-
style:
|
|
1701
|
+
style: E(L.style)
|
|
1691
1702
|
}, null, 4))), 128))
|
|
1692
1703
|
])) : S("", !0),
|
|
1693
|
-
|
|
1694
|
-
(s(!0), g(
|
|
1704
|
+
n.fillPreviewSegments.length > 0 ? (s(), g("div", Nl, [
|
|
1705
|
+
(s(!0), g(J, null, le(n.fillPreviewSegments, (L) => (s(), g("div", {
|
|
1695
1706
|
key: L.key,
|
|
1696
1707
|
class: "grid-selection-overlay__segment grid-selection-overlay__segment--fill-preview",
|
|
1697
|
-
style:
|
|
1708
|
+
style: E(L.style)
|
|
1698
1709
|
}, null, 4))), 128))
|
|
1699
1710
|
])) : S("", !0),
|
|
1700
|
-
|
|
1701
|
-
(s(!0), g(
|
|
1711
|
+
n.movePreviewSegments.length > 0 ? (s(), g("div", ql, [
|
|
1712
|
+
(s(!0), g(J, null, le(n.movePreviewSegments, (L) => (s(), g("div", {
|
|
1702
1713
|
key: L.key,
|
|
1703
1714
|
class: "grid-selection-overlay__segment grid-selection-overlay__segment--move-preview",
|
|
1704
|
-
style:
|
|
1715
|
+
style: E(L.style)
|
|
1705
1716
|
}, null, 4))), 128))
|
|
1706
1717
|
])) : S("", !0)
|
|
1707
1718
|
], 64));
|
|
1708
1719
|
}
|
|
1709
|
-
}),
|
|
1720
|
+
}), Ul = ["data-row-index", "onClick", "onMouseenter"], Xl = ["data-row-id", "data-column-key", "data-row-index", "data-column-index", "tabindex", "role", "aria-checked", "onMousedown", "onClick", "onMousemove", "onKeydown", "onDblclick"], Yl = ["type", "value"], Zl = ["value"], Ya = /* @__PURE__ */ ot({
|
|
1710
1721
|
__name: "DataGridTableStageCenterPane",
|
|
1711
1722
|
props: {
|
|
1712
1723
|
viewportRef: {
|
|
@@ -1762,16 +1773,16 @@ const $o = ["data-datagrid-pivot-group-label", "data-datagrid-pivot-group-span",
|
|
|
1762
1773
|
required: !0
|
|
1763
1774
|
}
|
|
1764
1775
|
},
|
|
1765
|
-
setup(
|
|
1766
|
-
const ee =
|
|
1767
|
-
displayRows:
|
|
1776
|
+
setup(n) {
|
|
1777
|
+
const ee = n, A = Hr(), L = rn(), _ = Or(), K = an(), D = Gr(), F = nn(), {
|
|
1778
|
+
displayRows: I,
|
|
1768
1779
|
viewportClass: p,
|
|
1769
1780
|
viewportRef: x,
|
|
1770
1781
|
selectionOverlaySegments: w,
|
|
1771
|
-
fillPreviewOverlaySegments:
|
|
1782
|
+
fillPreviewOverlaySegments: B,
|
|
1772
1783
|
movePreviewOverlaySegments: Me,
|
|
1773
1784
|
renderApi: v
|
|
1774
|
-
} =
|
|
1785
|
+
} = Ei(ee), Se = u(() => ee.topSpacerHeight ?? _.value.topSpacerHeight), H = u(() => ee.bottomSpacerHeight ?? _.value.bottomSpacerHeight), fe = u(() => ee.handleScroll ?? v.value.handleCenterViewportScroll), Y = u(() => ee.handleWheel ?? v.value.handleBodyViewportWheel), Z = u(() => ee.handleKeydown ?? v.value.handleViewportKeydown), ye = u(() => ee.handleContextMenu);
|
|
1775
1786
|
return (te, C) => (s(), g("div", {
|
|
1776
1787
|
ref: d(x) ?? void 0,
|
|
1777
1788
|
class: j(d(p)),
|
|
@@ -1779,67 +1790,67 @@ const $o = ["data-datagrid-pivot-group-label", "data-datagrid-pivot-group-span",
|
|
|
1779
1790
|
onScroll: C[14] || (C[14] = //@ts-ignore
|
|
1780
1791
|
(...k) => fe.value && fe.value(...k)),
|
|
1781
1792
|
onWheel: C[15] || (C[15] = //@ts-ignore
|
|
1782
|
-
(...k) =>
|
|
1793
|
+
(...k) => Y.value && Y.value(...k)),
|
|
1783
1794
|
onContextmenu: C[16] || (C[16] = //@ts-ignore
|
|
1784
1795
|
(...k) => ye.value && ye.value(...k)),
|
|
1785
1796
|
onKeydown: C[17] || (C[17] = y(
|
|
1786
1797
|
//@ts-ignore
|
|
1787
|
-
(...k) =>
|
|
1798
|
+
(...k) => Z.value && Z.value(...k),
|
|
1788
1799
|
["stop"]
|
|
1789
1800
|
))
|
|
1790
1801
|
}, [
|
|
1791
1802
|
f("div", {
|
|
1792
1803
|
class: "grid-body-content",
|
|
1793
|
-
style:
|
|
1804
|
+
style: E(d(L).gridContentStyle)
|
|
1794
1805
|
}, [
|
|
1795
1806
|
Se.value > 0 ? (s(), g("div", {
|
|
1796
1807
|
key: 0,
|
|
1797
1808
|
class: "grid-spacer",
|
|
1798
|
-
style:
|
|
1809
|
+
style: E({ height: `${Se.value}px` })
|
|
1799
1810
|
}, null, 4)) : S("", !0),
|
|
1800
|
-
(s(!0), g(
|
|
1811
|
+
(s(!0), g(J, null, le(d(I), (k, N) => (s(), g("div", {
|
|
1801
1812
|
key: String(k.rowId),
|
|
1802
|
-
class: j(["grid-row", [d(D).rowClass(k), d(v).rowStateClasses(k,
|
|
1803
|
-
style:
|
|
1804
|
-
"data-row-index": d(v).absoluteRowIndex(k,
|
|
1813
|
+
class: j(["grid-row", [d(D).rowClass(k), d(v).rowStateClasses(k, N), { "grid-row--autosize-probe": d(D).isRowAutosizeProbe(k, d(v).viewportRowOffset(k, N)) }]]),
|
|
1814
|
+
style: E([d(D).rowStyle(k, d(v).viewportRowOffset(k, N)), d(L).mainTrackStyle]),
|
|
1815
|
+
"data-row-index": d(v).absoluteRowIndex(k, N),
|
|
1805
1816
|
onClick: (R) => d(v).handleRowContainerClick(k),
|
|
1806
|
-
onMouseenter: (R) => d(v).setHoveredRow(k,
|
|
1817
|
+
onMouseenter: (R) => d(v).setHoveredRow(k, N)
|
|
1807
1818
|
}, [
|
|
1808
1819
|
d(_).leftColumnSpacerWidth > 0 ? (s(), g("div", {
|
|
1809
1820
|
key: 0,
|
|
1810
1821
|
class: "grid-column-spacer",
|
|
1811
|
-
style:
|
|
1822
|
+
style: E(d(v).spacerStyle(d(_).leftColumnSpacerWidth))
|
|
1812
1823
|
}, null, 4)) : S("", !0),
|
|
1813
|
-
(s(!0), g(
|
|
1824
|
+
(s(!0), g(J, null, le(d(K).renderedColumns, (R) => (s(), g("div", {
|
|
1814
1825
|
key: `${String(k.rowId)}-${R.key}`,
|
|
1815
1826
|
class: j(["grid-cell", [
|
|
1816
1827
|
"datagrid-stage__cell",
|
|
1817
|
-
d(v).builtInCellClasses(k, R),
|
|
1818
|
-
d(v).cellStateClasses(k, d(v).viewportRowOffset(k,
|
|
1819
|
-
d(v).resolveCellCustomClass(k, d(v).viewportRowOffset(k,
|
|
1828
|
+
d(v).builtInCellClasses(k, d(v).viewportRowOffset(k, N), R, d(v).columnIndexByKey(R.key)),
|
|
1829
|
+
d(v).cellStateClasses(k, d(v).viewportRowOffset(k, N), d(v).columnIndexByKey(R.key)),
|
|
1830
|
+
d(v).resolveCellCustomClass(k, d(v).viewportRowOffset(k, N), R, d(v).columnIndexByKey(R.key))
|
|
1820
1831
|
]]),
|
|
1821
|
-
style:
|
|
1832
|
+
style: E([
|
|
1822
1833
|
d(v).columnStyle(R.key),
|
|
1823
1834
|
d(v).bodyCellPresentationStyle(R),
|
|
1824
|
-
d(v).bodyCellSelectionStyle(k, R, d(v).viewportRowOffset(k,
|
|
1825
|
-
d(v).resolveCellCustomStyle(k, d(v).viewportRowOffset(k,
|
|
1835
|
+
d(v).bodyCellSelectionStyle(k, R, d(v).viewportRowOffset(k, N), d(v).columnIndexByKey(R.key)),
|
|
1836
|
+
d(v).resolveCellCustomStyle(k, d(v).viewportRowOffset(k, N), R, d(v).columnIndexByKey(R.key))
|
|
1826
1837
|
]),
|
|
1827
1838
|
"data-row-id": String(k.rowId),
|
|
1828
1839
|
"data-column-key": R.key,
|
|
1829
|
-
"data-row-index": d(v).absoluteRowIndex(k,
|
|
1840
|
+
"data-row-index": d(v).absoluteRowIndex(k, N),
|
|
1830
1841
|
"data-column-index": d(v).columnIndexByKey(R.key),
|
|
1831
|
-
tabindex: d(v).cellTabIndex(d(v).viewportRowOffset(k,
|
|
1842
|
+
tabindex: d(v).cellTabIndex(d(v).viewportRowOffset(k, N), d(v).columnIndexByKey(R.key)),
|
|
1832
1843
|
role: d(v).checkboxCellRole(k, R),
|
|
1833
1844
|
"aria-checked": d(v).checkboxCellAriaChecked(k, R),
|
|
1834
|
-
onMousedown: y(($) => d(v).handleCellMouseDown($, k, d(v).viewportRowOffset(k,
|
|
1835
|
-
onClick: y(($) => d(v).handleBodyCellClick($, k, d(v).viewportRowOffset(k,
|
|
1836
|
-
onMousemove: ($) => d(v).handleCellMouseMove($, d(v).viewportRowOffset(k,
|
|
1845
|
+
onMousedown: y(($) => d(v).handleCellMouseDown($, k, d(v).viewportRowOffset(k, N), d(v).columnIndexByKey(R.key)), ["prevent", "stop"]),
|
|
1846
|
+
onClick: y(($) => d(v).handleBodyCellClick($, k, d(v).viewportRowOffset(k, N), R, d(v).columnIndexByKey(R.key)), ["stop"]),
|
|
1847
|
+
onMousemove: ($) => d(v).handleCellMouseMove($, d(v).viewportRowOffset(k, N), d(v).columnIndexByKey(R.key)),
|
|
1837
1848
|
onMouseleave: C[13] || (C[13] = //@ts-ignore
|
|
1838
1849
|
(...$) => d(v).clearRangeMoveHandleHover && d(v).clearRangeMoveHandleHover(...$)),
|
|
1839
|
-
onKeydown: y(($) => d(v).handleCellKeydown($, k, d(v).viewportRowOffset(k,
|
|
1840
|
-
onDblclick: y(($) => d(v).startInlineEditIfAllowed(k, R, d(v).viewportRowOffset(k,
|
|
1850
|
+
onKeydown: y(($) => d(v).handleCellKeydown($, k, d(v).viewportRowOffset(k, N), d(v).columnIndexByKey(R.key)), ["stop"]),
|
|
1851
|
+
onDblclick: y(($) => d(v).startInlineEditIfAllowed(k, R, d(v).viewportRowOffset(k, N)), ["stop"])
|
|
1841
1852
|
}, [
|
|
1842
|
-
d(A) === "base" && d(v).isCellEditableSafe(k, d(v).viewportRowOffset(k,
|
|
1853
|
+
d(A) === "base" && d(v).isCellEditableSafe(k, d(v).viewportRowOffset(k, N), R, d(v).columnIndexByKey(R.key)) && d(v).isFillHandleCellSafe(d(v).viewportRowOffset(k, N), d(v).columnIndexByKey(R.key)) && !d(v).isEditingCellSafe(k, R.key) ? (s(), g("button", {
|
|
1843
1854
|
key: 0,
|
|
1844
1855
|
type: "button",
|
|
1845
1856
|
class: "cell-fill-handle",
|
|
@@ -1848,21 +1859,21 @@ const $o = ["data-datagrid-pivot-group-label", "data-datagrid-pivot-group-span",
|
|
|
1848
1859
|
onMousedown: C[0] || (C[0] = y(($) => d(v).handleFillHandleMouseDown($), ["stop", "prevent"])),
|
|
1849
1860
|
onDblclick: C[1] || (C[1] = y(($) => d(v).handleFillHandleDoubleClick($), ["stop", "prevent"]))
|
|
1850
1861
|
}, null, 32)) : S("", !0),
|
|
1851
|
-
d(v).isSelectEditorCell(k, d(v).viewportRowOffset(k,
|
|
1862
|
+
d(v).isSelectEditorCell(k, d(v).viewportRowOffset(k, N), R, d(v).columnIndexByKey(R.key)) ? (s(), oe(on, {
|
|
1852
1863
|
key: 1,
|
|
1853
1864
|
value: d(v).resolveSelectEditorValue(k, R),
|
|
1854
1865
|
options: d(v).resolveSelectEditorOptions(k, R),
|
|
1855
1866
|
"load-options": d(v).resolveSelectEditorOptionsLoader(k, R),
|
|
1856
|
-
"initial-filter": d(
|
|
1857
|
-
"open-on-mount": d(
|
|
1867
|
+
"initial-filter": d(F).editingCellInitialFilter,
|
|
1868
|
+
"open-on-mount": d(F).editingCellOpenOnMount,
|
|
1858
1869
|
onCommit: d(v).handleSelectEditorCommit,
|
|
1859
1870
|
onCancel: d(v).handleSelectEditorCancel,
|
|
1860
1871
|
onOptionsResolved: ($) => d(v).handleSelectEditorOptionsResolved(k, R, $)
|
|
1861
|
-
}, null, 8, ["value", "options", "load-options", "initial-filter", "open-on-mount", "onCommit", "onCancel", "onOptionsResolved"])) : d(v).isDateEditorCell(k, d(v).viewportRowOffset(k,
|
|
1872
|
+
}, null, 8, ["value", "options", "load-options", "initial-filter", "open-on-mount", "onCommit", "onCancel", "onOptionsResolved"])) : d(v).isDateEditorCell(k, d(v).viewportRowOffset(k, N), R, d(v).columnIndexByKey(R.key)) ? (s(), g("input", {
|
|
1862
1873
|
key: 2,
|
|
1863
1874
|
class: "cell-editor-control cell-editor-input cell-editor-input--date",
|
|
1864
1875
|
type: d(v).resolveDateEditorInputType(k, R),
|
|
1865
|
-
value: d(
|
|
1876
|
+
value: d(F).editingCellValue,
|
|
1866
1877
|
onMousedown: C[2] || (C[2] = y(() => {
|
|
1867
1878
|
}, ["stop"])),
|
|
1868
1879
|
onClick: C[3] || (C[3] = y(() => {
|
|
@@ -1876,10 +1887,10 @@ const $o = ["data-datagrid-pivot-group-label", "data-datagrid-pivot-group-span",
|
|
|
1876
1887
|
)),
|
|
1877
1888
|
onBlur: C[7] || (C[7] = //@ts-ignore
|
|
1878
1889
|
(...$) => d(v).handleTextEditorBlur && d(v).handleTextEditorBlur(...$))
|
|
1879
|
-
}, null, 40,
|
|
1890
|
+
}, null, 40, Yl)) : d(v).isTextEditorCell(k, d(v).viewportRowOffset(k, N), R, d(v).columnIndexByKey(R.key)) ? (s(), g("input", {
|
|
1880
1891
|
key: 3,
|
|
1881
1892
|
class: "cell-editor-control cell-editor-input",
|
|
1882
|
-
value: d(
|
|
1893
|
+
value: d(F).editingCellValue,
|
|
1883
1894
|
onMousedown: C[8] || (C[8] = y(() => {
|
|
1884
1895
|
}, ["stop"])),
|
|
1885
1896
|
onClick: C[9] || (C[9] = y(() => {
|
|
@@ -1892,7 +1903,7 @@ const $o = ["data-datagrid-pivot-group-label", "data-datagrid-pivot-group-span",
|
|
|
1892
1903
|
)),
|
|
1893
1904
|
onBlur: C[12] || (C[12] = //@ts-ignore
|
|
1894
1905
|
(...$) => d(v).handleTextEditorBlur && d(v).handleTextEditorBlur(...$))
|
|
1895
|
-
}, null, 40,
|
|
1906
|
+
}, null, 40, Zl)) : d(v).shouldRenderCheckboxCell(k, R) ? (s(), g("span", {
|
|
1896
1907
|
key: 4,
|
|
1897
1908
|
class: j(["grid-checkbox-indicator", d(v).checkboxIndicatorClass(k, R)]),
|
|
1898
1909
|
"aria-hidden": "true"
|
|
@@ -1900,34 +1911,35 @@ const $o = ["data-datagrid-pivot-group-label", "data-datagrid-pivot-group-span",
|
|
|
1900
1911
|
f("span", {
|
|
1901
1912
|
class: j(["grid-checkbox-indicator__mark", d(v).checkboxIndicatorMarkClass(k, R)])
|
|
1902
1913
|
}, null, 2)
|
|
1903
|
-
], 2)) : (s(),
|
|
1904
|
-
|
|
1905
|
-
|
|
1906
|
-
|
|
1914
|
+
], 2)) : (s(), oe(d(ln), {
|
|
1915
|
+
key: 5,
|
|
1916
|
+
content: d(v).renderResolvedCellContent(k, d(v).viewportRowOffset(k, N), R, d(v).columnIndexByKey(R.key))
|
|
1917
|
+
}, null, 8, ["content"]))
|
|
1918
|
+
], 46, Xl))), 128)),
|
|
1907
1919
|
d(_).rightColumnSpacerWidth > 0 ? (s(), g("div", {
|
|
1908
1920
|
key: 1,
|
|
1909
1921
|
class: "grid-column-spacer",
|
|
1910
|
-
style:
|
|
1922
|
+
style: E(d(v).spacerStyle(d(_).rightColumnSpacerWidth))
|
|
1911
1923
|
}, null, 4)) : S("", !0)
|
|
1912
|
-
], 46,
|
|
1924
|
+
], 46, Ul))), 128)),
|
|
1913
1925
|
H.value > 0 ? (s(), g("div", {
|
|
1914
1926
|
key: 1,
|
|
1915
1927
|
class: "grid-spacer",
|
|
1916
|
-
style:
|
|
1928
|
+
style: E({ height: `${H.value}px` })
|
|
1917
1929
|
}, null, 4)) : S("", !0),
|
|
1918
|
-
_e(
|
|
1930
|
+
_e(dn, {
|
|
1919
1931
|
"selection-segments": d(w),
|
|
1920
|
-
"fill-preview-segments": d(
|
|
1932
|
+
"fill-preview-segments": d(B),
|
|
1921
1933
|
"move-preview-segments": d(Me)
|
|
1922
1934
|
}, null, 8, ["selection-segments", "fill-preview-segments", "move-preview-segments"])
|
|
1923
1935
|
], 4)
|
|
1924
1936
|
], 34));
|
|
1925
1937
|
}
|
|
1926
|
-
}),
|
|
1938
|
+
}), Ql = ["aria-expanded"], Jl = {
|
|
1927
1939
|
key: 0,
|
|
1928
1940
|
class: "grid-fill-action__menu",
|
|
1929
1941
|
role: "menu"
|
|
1930
|
-
},
|
|
1942
|
+
}, ed = ["aria-checked"], td = ["aria-checked"], rd = /* @__PURE__ */ ot({
|
|
1931
1943
|
__name: "DataGridTableStageFillActionMenu",
|
|
1932
1944
|
props: {
|
|
1933
1945
|
isOpen: {
|
|
@@ -1940,46 +1952,46 @@ const $o = ["data-datagrid-pivot-group-label", "data-datagrid-pivot-group-span",
|
|
|
1940
1952
|
}
|
|
1941
1953
|
},
|
|
1942
1954
|
emits: ["toggle", "selected"],
|
|
1943
|
-
setup(
|
|
1944
|
-
const A = ee, L =
|
|
1955
|
+
setup(n, { emit: ee }) {
|
|
1956
|
+
const A = ee, L = Lo(), _ = u(() => L.value.fillActionBehavior);
|
|
1945
1957
|
function K(D) {
|
|
1946
1958
|
L.value.applyFillActionBehavior(D), A("selected");
|
|
1947
1959
|
}
|
|
1948
|
-
return (D,
|
|
1960
|
+
return (D, F) => n.style ? (s(), g("div", {
|
|
1949
1961
|
key: 0,
|
|
1950
1962
|
class: "grid-fill-action grid-fill-action--floating",
|
|
1951
|
-
style:
|
|
1963
|
+
style: E(n.style)
|
|
1952
1964
|
}, [
|
|
1953
1965
|
f("button", {
|
|
1954
1966
|
type: "button",
|
|
1955
1967
|
class: "grid-fill-action__trigger",
|
|
1956
1968
|
"aria-label": "Fill options",
|
|
1957
1969
|
"aria-haspopup": "menu",
|
|
1958
|
-
"aria-expanded":
|
|
1970
|
+
"aria-expanded": n.isOpen ? "true" : "false",
|
|
1959
1971
|
tabindex: "-1",
|
|
1960
|
-
onMousedown:
|
|
1972
|
+
onMousedown: F[0] || (F[0] = y(() => {
|
|
1961
1973
|
}, ["stop"])),
|
|
1962
|
-
onClick:
|
|
1963
|
-
}, " v ", 40,
|
|
1964
|
-
|
|
1974
|
+
onClick: F[1] || (F[1] = y((I) => A("toggle", I), ["stop"]))
|
|
1975
|
+
}, " v ", 40, Ql),
|
|
1976
|
+
n.isOpen ? (s(), g("div", Jl, [
|
|
1965
1977
|
f("button", {
|
|
1966
1978
|
type: "button",
|
|
1967
1979
|
class: j(["grid-fill-action__item", { "grid-fill-action__item--active": _.value === "series" }]),
|
|
1968
1980
|
role: "menuitemradio",
|
|
1969
1981
|
"aria-checked": _.value === "series" ? "true" : "false",
|
|
1970
|
-
onClick:
|
|
1971
|
-
}, " Series ", 10,
|
|
1982
|
+
onClick: F[2] || (F[2] = y((I) => K("series"), ["stop"]))
|
|
1983
|
+
}, " Series ", 10, ed),
|
|
1972
1984
|
f("button", {
|
|
1973
1985
|
type: "button",
|
|
1974
1986
|
class: j(["grid-fill-action__item", { "grid-fill-action__item--active": _.value === "copy" }]),
|
|
1975
1987
|
role: "menuitemradio",
|
|
1976
1988
|
"aria-checked": _.value === "copy" ? "true" : "false",
|
|
1977
|
-
onClick:
|
|
1978
|
-
}, " Copy ", 10,
|
|
1989
|
+
onClick: F[3] || (F[3] = y((I) => K("copy"), ["stop"]))
|
|
1990
|
+
}, " Copy ", 10, td)
|
|
1979
1991
|
])) : S("", !0)
|
|
1980
1992
|
], 4)) : S("", !0);
|
|
1981
1993
|
}
|
|
1982
|
-
}),
|
|
1994
|
+
}), ad = ["data-row-index", "onClick", "onMouseenter"], nd = ["data-row-id", "data-row-index", "tabindex", "onClick", "onKeydown"], id = ["onMousedown", "onDblclick"], od = ["data-row-id", "data-column-key", "data-row-index", "data-column-index", "tabindex", "role", "aria-checked", "onMousedown", "onClick", "onMousemove", "onKeydown", "onDblclick"], ld = ["type", "value"], dd = ["value"], dr = /* @__PURE__ */ ot({
|
|
1983
1995
|
__name: "DataGridTableStagePinnedPane",
|
|
1984
1996
|
props: {
|
|
1985
1997
|
pane: {
|
|
@@ -1995,159 +2007,160 @@ const $o = ["data-datagrid-pivot-group-label", "data-datagrid-pivot-group-span",
|
|
|
1995
2007
|
default: void 0
|
|
1996
2008
|
}
|
|
1997
2009
|
},
|
|
1998
|
-
setup(
|
|
1999
|
-
const ee =
|
|
2000
|
-
return (
|
|
2001
|
-
class: j(["grid-body-pane",
|
|
2002
|
-
style:
|
|
2003
|
-
onWheel:
|
|
2004
|
-
(...p) =>
|
|
2010
|
+
setup(n) {
|
|
2011
|
+
const ee = n, A = Hr(), L = Or(), _ = Gr(), K = nn(), D = ee.handleContextMenu;
|
|
2012
|
+
return (F, I) => (s(), g("div", {
|
|
2013
|
+
class: j(["grid-body-pane", n.pane.side === "left" ? "grid-body-pane--left" : "grid-body-pane--right"]),
|
|
2014
|
+
style: E(n.pane.style),
|
|
2015
|
+
onWheel: I[15] || (I[15] = //@ts-ignore
|
|
2016
|
+
(...p) => n.renderApi.handleLinkedViewportWheel && n.renderApi.handleLinkedViewportWheel(...p))
|
|
2005
2017
|
}, [
|
|
2006
|
-
Xt(
|
|
2018
|
+
Xt(F.$slots, "chrome"),
|
|
2007
2019
|
f("div", {
|
|
2008
|
-
ref:
|
|
2020
|
+
ref: n.pane.contentRef ?? void 0,
|
|
2009
2021
|
class: "grid-pane-content",
|
|
2010
|
-
style:
|
|
2011
|
-
onContextmenu:
|
|
2022
|
+
style: E(n.pane.contentStyle),
|
|
2023
|
+
onContextmenu: I[14] || (I[14] = //@ts-ignore
|
|
2012
2024
|
(...p) => d(D) && d(D)(...p))
|
|
2013
2025
|
}, [
|
|
2014
|
-
(
|
|
2026
|
+
(n.pane.topSpacerHeight ?? d(L).topSpacerHeight) > 0 ? (s(), g("div", {
|
|
2015
2027
|
key: 0,
|
|
2016
2028
|
class: "grid-spacer",
|
|
2017
|
-
style:
|
|
2029
|
+
style: E({ height: `${n.pane.topSpacerHeight ?? d(L).topSpacerHeight}px` })
|
|
2018
2030
|
}, null, 4)) : S("", !0),
|
|
2019
|
-
(s(!0), g(
|
|
2020
|
-
key: `${String(p.rowId)}-${
|
|
2021
|
-
class: j(["grid-row", [d(_).rowClass(p),
|
|
2022
|
-
style:
|
|
2023
|
-
"data-row-index":
|
|
2024
|
-
onClick: (w) =>
|
|
2025
|
-
onMouseenter: (w) =>
|
|
2031
|
+
(s(!0), g(J, null, le(n.pane.displayRows, (p, x) => (s(), g("div", {
|
|
2032
|
+
key: `${String(p.rowId)}-${n.pane.side}-row`,
|
|
2033
|
+
class: j(["grid-row", [d(_).rowClass(p), n.renderApi.rowStateClasses(p, x), { "grid-row--autosize-probe": d(_).isRowAutosizeProbe(p, n.renderApi.viewportRowOffset(p, x)) }]]),
|
|
2034
|
+
style: E(n.renderApi.paneRowStyle(p, x, n.pane.width)),
|
|
2035
|
+
"data-row-index": n.renderApi.absoluteRowIndex(p, x),
|
|
2036
|
+
onClick: (w) => n.renderApi.handleRowContainerClick(p),
|
|
2037
|
+
onMouseenter: (w) => n.renderApi.setHoveredRow(p, x)
|
|
2026
2038
|
}, [
|
|
2027
|
-
|
|
2039
|
+
n.pane.showIndexColumn ? (s(), g("div", {
|
|
2028
2040
|
key: 0,
|
|
2029
|
-
class: j(["grid-cell grid-cell--index grid-cell--index-number datagrid-stage__row-index-cell", { "grid-cell--index-selected":
|
|
2030
|
-
style:
|
|
2041
|
+
class: j(["grid-cell grid-cell--index grid-cell--index-number datagrid-stage__row-index-cell", { "grid-cell--index-selected": n.renderApi.isFullRowSelectionSafe(n.renderApi.viewportRowOffset(p, x)) }]),
|
|
2042
|
+
style: E(n.renderApi.rowIndexCellStyle(p, n.renderApi.viewportRowOffset(p, x))),
|
|
2031
2043
|
"data-row-id": String(p.rowId),
|
|
2032
|
-
"data-row-index":
|
|
2033
|
-
tabindex:
|
|
2034
|
-
onClick: y((w) =>
|
|
2035
|
-
onKeydown: y((w) =>
|
|
2044
|
+
"data-row-index": n.renderApi.absoluteRowIndex(p, x),
|
|
2045
|
+
tabindex: n.renderApi.rowIndexTabIndex(p),
|
|
2046
|
+
onClick: y((w) => n.renderApi.handleRowIndexClickSafe(p, n.renderApi.viewportRowOffset(p, x), w), ["stop"]),
|
|
2047
|
+
onKeydown: y((w) => n.renderApi.handleRowIndexKeydown(w, p, n.renderApi.viewportRowOffset(p, x)), ["stop"])
|
|
2036
2048
|
}, [
|
|
2037
|
-
|
|
2049
|
+
en(z(d(_).rowIndexLabel(p, n.renderApi.viewportRowOffset(p, x))) + " ", 1),
|
|
2038
2050
|
d(A) === "base" ? (s(), g("button", {
|
|
2039
2051
|
key: 0,
|
|
2040
2052
|
type: "button",
|
|
2041
2053
|
class: "row-resize-handle",
|
|
2042
2054
|
"aria-label": "Resize rows",
|
|
2043
|
-
onMousedown: y((w) => d(_).startRowResize(w, p,
|
|
2044
|
-
onDblclick: y((w) => d(_).autosizeRow(w, p,
|
|
2045
|
-
}, null, 40,
|
|
2046
|
-
], 46,
|
|
2047
|
-
(s(!0), g(
|
|
2048
|
-
key: `${String(p.rowId)}-${
|
|
2055
|
+
onMousedown: y((w) => d(_).startRowResize(w, p, n.renderApi.viewportRowOffset(p, x)), ["stop", "prevent"]),
|
|
2056
|
+
onDblclick: y((w) => d(_).autosizeRow(w, p, n.renderApi.viewportRowOffset(p, x)), ["stop", "prevent"])
|
|
2057
|
+
}, null, 40, id)) : S("", !0)
|
|
2058
|
+
], 46, nd)) : S("", !0),
|
|
2059
|
+
(s(!0), g(J, null, le(n.pane.columns, (w) => (s(), g("div", {
|
|
2060
|
+
key: `${String(p.rowId)}-${n.pane.side}-${w.key}`,
|
|
2049
2061
|
class: j(["grid-cell", [
|
|
2050
2062
|
"datagrid-stage__cell",
|
|
2051
|
-
|
|
2052
|
-
|
|
2053
|
-
|
|
2054
|
-
|
|
2063
|
+
n.pane.side === "left" ? "grid-cell--pinned-left" : "grid-cell--pinned-right",
|
|
2064
|
+
n.renderApi.builtInCellClasses(p, n.renderApi.viewportRowOffset(p, x), w, n.renderApi.columnIndexByKey(w.key)),
|
|
2065
|
+
n.renderApi.cellStateClasses(p, n.renderApi.viewportRowOffset(p, x), n.renderApi.columnIndexByKey(w.key)),
|
|
2066
|
+
n.renderApi.resolveCellCustomClass(p, n.renderApi.viewportRowOffset(p, x), w, n.renderApi.columnIndexByKey(w.key))
|
|
2055
2067
|
]]),
|
|
2056
|
-
style:
|
|
2057
|
-
|
|
2058
|
-
|
|
2059
|
-
|
|
2060
|
-
|
|
2068
|
+
style: E([
|
|
2069
|
+
n.renderApi.columnStyle(w.key),
|
|
2070
|
+
n.renderApi.bodyCellPresentationStyle(w),
|
|
2071
|
+
n.renderApi.bodyCellSelectionStyle(p, w, n.renderApi.viewportRowOffset(p, x), n.renderApi.columnIndexByKey(w.key)),
|
|
2072
|
+
n.renderApi.resolveCellCustomStyle(p, n.renderApi.viewportRowOffset(p, x), w, n.renderApi.columnIndexByKey(w.key))
|
|
2061
2073
|
]),
|
|
2062
2074
|
"data-row-id": String(p.rowId),
|
|
2063
2075
|
"data-column-key": w.key,
|
|
2064
|
-
"data-row-index":
|
|
2065
|
-
"data-column-index":
|
|
2066
|
-
tabindex:
|
|
2067
|
-
role:
|
|
2068
|
-
"aria-checked":
|
|
2069
|
-
onMousedown: y((
|
|
2070
|
-
onClick: y((
|
|
2071
|
-
onMousemove: (
|
|
2072
|
-
onMouseleave:
|
|
2073
|
-
onKeydown: y((
|
|
2074
|
-
onDblclick: y((
|
|
2076
|
+
"data-row-index": n.renderApi.absoluteRowIndex(p, x),
|
|
2077
|
+
"data-column-index": n.renderApi.columnIndexByKey(w.key),
|
|
2078
|
+
tabindex: n.renderApi.cellTabIndex(n.renderApi.viewportRowOffset(p, x), n.renderApi.columnIndexByKey(w.key)),
|
|
2079
|
+
role: n.renderApi.checkboxCellRole(p, w),
|
|
2080
|
+
"aria-checked": n.renderApi.checkboxCellAriaChecked(p, w),
|
|
2081
|
+
onMousedown: y((B) => n.renderApi.handleCellMouseDown(B, p, n.renderApi.viewportRowOffset(p, x), n.renderApi.columnIndexByKey(w.key)), ["prevent", "stop"]),
|
|
2082
|
+
onClick: y((B) => n.renderApi.handleBodyCellClick(B, p, n.renderApi.viewportRowOffset(p, x), w, n.renderApi.columnIndexByKey(w.key)), ["stop"]),
|
|
2083
|
+
onMousemove: (B) => n.renderApi.handleCellMouseMove(B, n.renderApi.viewportRowOffset(p, x), n.renderApi.columnIndexByKey(w.key)),
|
|
2084
|
+
onMouseleave: I[13] || (I[13] = (B) => n.renderApi.clearRangeMoveHandleHover()),
|
|
2085
|
+
onKeydown: y((B) => n.renderApi.handleCellKeydown(B, p, n.renderApi.viewportRowOffset(p, x), n.renderApi.columnIndexByKey(w.key)), ["stop"]),
|
|
2086
|
+
onDblclick: y((B) => n.renderApi.startInlineEditIfAllowed(p, w, n.renderApi.viewportRowOffset(p, x)), ["stop"])
|
|
2075
2087
|
}, [
|
|
2076
|
-
d(A) === "base" &&
|
|
2088
|
+
d(A) === "base" && n.renderApi.isCellEditableSafe(p, n.renderApi.viewportRowOffset(p, x), w, n.renderApi.columnIndexByKey(w.key)) && n.renderApi.isFillHandleCellSafe(n.renderApi.viewportRowOffset(p, x), n.renderApi.columnIndexByKey(w.key)) && !n.renderApi.isEditingCellSafe(p, w.key) ? (s(), g("button", {
|
|
2077
2089
|
key: 0,
|
|
2078
2090
|
type: "button",
|
|
2079
2091
|
class: "cell-fill-handle",
|
|
2080
2092
|
"aria-label": "Fill handle",
|
|
2081
2093
|
tabindex: "-1",
|
|
2082
|
-
onMousedown:
|
|
2083
|
-
onDblclick:
|
|
2094
|
+
onMousedown: I[0] || (I[0] = y((B) => n.renderApi.handleFillHandleMouseDown(B), ["stop", "prevent"])),
|
|
2095
|
+
onDblclick: I[1] || (I[1] = y((B) => n.renderApi.handleFillHandleDoubleClick(B), ["stop", "prevent"]))
|
|
2084
2096
|
}, null, 32)) : S("", !0),
|
|
2085
|
-
|
|
2097
|
+
n.renderApi.isSelectEditorCell(p, n.renderApi.viewportRowOffset(p, x), w, n.renderApi.columnIndexByKey(w.key)) ? (s(), oe(on, {
|
|
2086
2098
|
key: 1,
|
|
2087
|
-
value:
|
|
2088
|
-
options:
|
|
2089
|
-
"load-options":
|
|
2099
|
+
value: n.renderApi.resolveSelectEditorValue(p, w),
|
|
2100
|
+
options: n.renderApi.resolveSelectEditorOptions(p, w),
|
|
2101
|
+
"load-options": n.renderApi.resolveSelectEditorOptionsLoader(p, w),
|
|
2090
2102
|
"initial-filter": d(K).editingCellInitialFilter,
|
|
2091
2103
|
"open-on-mount": d(K).editingCellOpenOnMount,
|
|
2092
|
-
onCommit:
|
|
2093
|
-
onCancel:
|
|
2094
|
-
onOptionsResolved: (
|
|
2095
|
-
}, null, 8, ["value", "options", "load-options", "initial-filter", "open-on-mount", "onCommit", "onCancel", "onOptionsResolved"])) :
|
|
2104
|
+
onCommit: n.renderApi.handleSelectEditorCommit,
|
|
2105
|
+
onCancel: n.renderApi.handleSelectEditorCancel,
|
|
2106
|
+
onOptionsResolved: (B) => n.renderApi.handleSelectEditorOptionsResolved(p, w, B)
|
|
2107
|
+
}, null, 8, ["value", "options", "load-options", "initial-filter", "open-on-mount", "onCommit", "onCancel", "onOptionsResolved"])) : n.renderApi.isDateEditorCell(p, n.renderApi.viewportRowOffset(p, x), w, n.renderApi.columnIndexByKey(w.key)) ? (s(), g("input", {
|
|
2096
2108
|
key: 2,
|
|
2097
2109
|
class: "cell-editor-control cell-editor-input cell-editor-input--date",
|
|
2098
|
-
type:
|
|
2110
|
+
type: n.renderApi.resolveDateEditorInputType(p, w),
|
|
2099
2111
|
value: d(K).editingCellValue,
|
|
2100
|
-
onMousedown:
|
|
2112
|
+
onMousedown: I[2] || (I[2] = y(() => {
|
|
2101
2113
|
}, ["stop"])),
|
|
2102
|
-
onClick:
|
|
2114
|
+
onClick: I[3] || (I[3] = y(() => {
|
|
2103
2115
|
}, ["stop"])),
|
|
2104
|
-
onInput:
|
|
2105
|
-
onChange:
|
|
2106
|
-
onKeydown:
|
|
2116
|
+
onInput: I[4] || (I[4] = (B) => n.renderApi.updateEditingCellValue(B.target.value)),
|
|
2117
|
+
onChange: I[5] || (I[5] = (B) => n.renderApi.handleDateEditorChange(B.target.value)),
|
|
2118
|
+
onKeydown: I[6] || (I[6] = y(
|
|
2107
2119
|
//@ts-ignore
|
|
2108
|
-
(...
|
|
2120
|
+
(...B) => n.renderApi.handleEditorKeydown && n.renderApi.handleEditorKeydown(...B),
|
|
2109
2121
|
["stop"]
|
|
2110
2122
|
)),
|
|
2111
|
-
onBlur:
|
|
2112
|
-
(...
|
|
2113
|
-
}, null, 40,
|
|
2123
|
+
onBlur: I[7] || (I[7] = //@ts-ignore
|
|
2124
|
+
(...B) => n.renderApi.handleTextEditorBlur && n.renderApi.handleTextEditorBlur(...B))
|
|
2125
|
+
}, null, 40, ld)) : n.renderApi.isTextEditorCell(p, n.renderApi.viewportRowOffset(p, x), w, n.renderApi.columnIndexByKey(w.key)) ? (s(), g("input", {
|
|
2114
2126
|
key: 3,
|
|
2115
2127
|
class: "cell-editor-control cell-editor-input",
|
|
2116
2128
|
value: d(K).editingCellValue,
|
|
2117
|
-
onMousedown:
|
|
2129
|
+
onMousedown: I[8] || (I[8] = y(() => {
|
|
2118
2130
|
}, ["stop"])),
|
|
2119
|
-
onClick:
|
|
2131
|
+
onClick: I[9] || (I[9] = y(() => {
|
|
2120
2132
|
}, ["stop"])),
|
|
2121
|
-
onInput:
|
|
2122
|
-
onKeydown:
|
|
2133
|
+
onInput: I[10] || (I[10] = (B) => n.renderApi.updateEditingCellValue(B.target.value)),
|
|
2134
|
+
onKeydown: I[11] || (I[11] = y(
|
|
2123
2135
|
//@ts-ignore
|
|
2124
|
-
(...
|
|
2136
|
+
(...B) => n.renderApi.handleEditorKeydown && n.renderApi.handleEditorKeydown(...B),
|
|
2125
2137
|
["stop"]
|
|
2126
2138
|
)),
|
|
2127
|
-
onBlur:
|
|
2128
|
-
(...
|
|
2129
|
-
}, null, 40,
|
|
2139
|
+
onBlur: I[12] || (I[12] = //@ts-ignore
|
|
2140
|
+
(...B) => n.renderApi.handleTextEditorBlur && n.renderApi.handleTextEditorBlur(...B))
|
|
2141
|
+
}, null, 40, dd)) : n.renderApi.shouldRenderCheckboxCell(p, w) ? (s(), g("span", {
|
|
2130
2142
|
key: 4,
|
|
2131
|
-
class: j(["grid-checkbox-indicator",
|
|
2143
|
+
class: j(["grid-checkbox-indicator", n.renderApi.checkboxIndicatorClass(p, w)]),
|
|
2132
2144
|
"aria-hidden": "true"
|
|
2133
2145
|
}, [
|
|
2134
2146
|
f("span", {
|
|
2135
|
-
class: j(["grid-checkbox-indicator__mark",
|
|
2147
|
+
class: j(["grid-checkbox-indicator__mark", n.renderApi.checkboxIndicatorMarkClass(p, w)])
|
|
2136
2148
|
}, null, 2)
|
|
2137
|
-
], 2)) : (s(),
|
|
2138
|
-
|
|
2139
|
-
|
|
2140
|
-
|
|
2141
|
-
|
|
2142
|
-
|
|
2149
|
+
], 2)) : (s(), oe(d(ln), {
|
|
2150
|
+
key: 5,
|
|
2151
|
+
content: n.renderApi.renderResolvedCellContent(p, n.renderApi.viewportRowOffset(p, x), w, n.renderApi.columnIndexByKey(w.key))
|
|
2152
|
+
}, null, 8, ["content"]))
|
|
2153
|
+
], 46, od))), 128))
|
|
2154
|
+
], 46, ad))), 128)),
|
|
2155
|
+
(n.pane.bottomSpacerHeight ?? d(L).bottomSpacerHeight) > 0 ? (s(), g("div", {
|
|
2143
2156
|
key: 1,
|
|
2144
2157
|
class: "grid-spacer",
|
|
2145
|
-
style:
|
|
2158
|
+
style: E({ height: `${n.pane.bottomSpacerHeight ?? d(L).bottomSpacerHeight}px` })
|
|
2146
2159
|
}, null, 4)) : S("", !0),
|
|
2147
|
-
_e(
|
|
2148
|
-
"selection-segments":
|
|
2149
|
-
"fill-preview-segments":
|
|
2150
|
-
"move-preview-segments":
|
|
2160
|
+
_e(dn, {
|
|
2161
|
+
"selection-segments": n.pane.selectionOverlaySegments,
|
|
2162
|
+
"fill-preview-segments": n.pane.fillPreviewOverlaySegments,
|
|
2163
|
+
"move-preview-segments": n.pane.movePreviewOverlaySegments
|
|
2151
2164
|
}, null, 8, ["selection-segments", "fill-preview-segments", "move-preview-segments"])
|
|
2152
2165
|
], 36)
|
|
2153
2166
|
], 38));
|
|
@@ -4791,18 +4804,18 @@ body.datagrid-fill-drag-cursor * {
|
|
|
4791
4804
|
}
|
|
4792
4805
|
}
|
|
4793
4806
|
`;
|
|
4794
|
-
function
|
|
4807
|
+
function sd() {
|
|
4795
4808
|
if (typeof document > "u")
|
|
4796
4809
|
return;
|
|
4797
|
-
const
|
|
4798
|
-
if (
|
|
4799
|
-
|
|
4810
|
+
const n = document.getElementById(Za);
|
|
4811
|
+
if (n instanceof HTMLStyleElement) {
|
|
4812
|
+
n.textContent !== Pr && (n.textContent = Pr);
|
|
4800
4813
|
return;
|
|
4801
4814
|
}
|
|
4802
4815
|
const ee = document.createElement("style");
|
|
4803
4816
|
ee.id = Za, ee.textContent = Pr, document.head.append(ee);
|
|
4804
4817
|
}
|
|
4805
|
-
const
|
|
4818
|
+
const ud = 6, cd = ".grid-fill-action", He = 14, Le = 8, Vr = 10, Qa = 72, sr = "datagrid-fill-drag-cursor", kd = /* @__PURE__ */ ot({
|
|
4806
4819
|
__name: "DataGridTableStage",
|
|
4807
4820
|
props: {
|
|
4808
4821
|
mode: {
|
|
@@ -4854,13 +4867,13 @@ const dd = 6, sd = ".grid-fill-action", He = 14, Le = 8, Vr = 10, Qa = 72, sr =
|
|
|
4854
4867
|
default: void 0
|
|
4855
4868
|
}
|
|
4856
4869
|
},
|
|
4857
|
-
setup(
|
|
4858
|
-
|
|
4859
|
-
const A =
|
|
4870
|
+
setup(n, { expose: ee }) {
|
|
4871
|
+
sd();
|
|
4872
|
+
const A = n, L = A.stageContext ?? Fo(
|
|
4860
4873
|
A
|
|
4861
4874
|
);
|
|
4862
|
-
|
|
4863
|
-
const _ = L.mode, K = L.rowHeightMode, D = L.layout,
|
|
4875
|
+
$o(L);
|
|
4876
|
+
const _ = L.mode, K = L.rowHeightMode, D = L.layout, F = L.viewport, I = L.columns, p = L.rows, x = L.selection, w = L.editing, B = L.cells, Me = L.interaction, v = u(() => I.value?.visibleColumns ?? []), Se = u(() => I.value?.renderedColumns ?? []), H = u(() => p.value?.displayRows ?? []), fe = u(() => p.value?.pinnedBottomRows ?? []), Y = u(() => x.value?.selectionRange ?? null), Z = u(() => x.value?.isFillDragging === !0);
|
|
4864
4877
|
function ye(e) {
|
|
4865
4878
|
return D.value.columnStyle(e);
|
|
4866
4879
|
}
|
|
@@ -4873,7 +4886,7 @@ const dd = 6, sd = ".grid-fill-action", He = 14, Le = 8, Vr = 10, Qa = 72, sr =
|
|
|
4873
4886
|
function k(e, t, r, l) {
|
|
4874
4887
|
Me.value.handleCellMouseDown(e, t, r, l);
|
|
4875
4888
|
}
|
|
4876
|
-
function
|
|
4889
|
+
function N(e, t, r, l) {
|
|
4877
4890
|
Me.value.handleCellKeydown(e, t, r, l);
|
|
4878
4891
|
}
|
|
4879
4892
|
const R = P(/* @__PURE__ */ new Map());
|
|
@@ -4893,13 +4906,13 @@ const dd = 6, sd = ".grid-fill-action", He = 14, Le = 8, Vr = 10, Qa = 72, sr =
|
|
|
4893
4906
|
const r = Number.parseFloat(String(e ?? ""));
|
|
4894
4907
|
return Number.isFinite(r) ? r : t;
|
|
4895
4908
|
}
|
|
4896
|
-
function
|
|
4909
|
+
function X(e) {
|
|
4897
4910
|
const t = D.value.columnStyle(e.key);
|
|
4898
4911
|
return xe(t.width ?? t.minWidth ?? e.width, e.width ?? 140);
|
|
4899
4912
|
}
|
|
4900
|
-
function
|
|
4913
|
+
function lt(e) {
|
|
4901
4914
|
const t = e.column.meta?.affinoPivotHeader;
|
|
4902
|
-
if (!
|
|
4915
|
+
if (!dt(t))
|
|
4903
4916
|
return null;
|
|
4904
4917
|
const r = Array.isArray(t.groupLabels) ? t.groupLabels.filter((l) => typeof l == "string" && l.length > 0) : [];
|
|
4905
4918
|
return r.length > 0 ? { groupLabels: r } : null;
|
|
@@ -4907,10 +4920,10 @@ const dd = 6, sd = ".grid-fill-action", He = 14, Le = 8, Vr = 10, Qa = 72, sr =
|
|
|
4907
4920
|
function xt(e) {
|
|
4908
4921
|
return e === "left" || e === "center" || e === "right" ? e : void 0;
|
|
4909
4922
|
}
|
|
4910
|
-
function
|
|
4923
|
+
function dt(e) {
|
|
4911
4924
|
return !!e && typeof e == "object";
|
|
4912
4925
|
}
|
|
4913
|
-
function
|
|
4926
|
+
function Ee(e) {
|
|
4914
4927
|
return typeof e == "object" && e !== null && "then" in e && typeof e.then == "function";
|
|
4915
4928
|
}
|
|
4916
4929
|
function Oe(e) {
|
|
@@ -4922,22 +4935,22 @@ const dd = 6, sd = ".grid-fill-action", He = 14, Le = 8, Vr = 10, Qa = 72, sr =
|
|
|
4922
4935
|
}
|
|
4923
4936
|
function At(e, t) {
|
|
4924
4937
|
let r = null;
|
|
4925
|
-
return
|
|
4938
|
+
return mr(e, t) ? r = "var(--datagrid-row-band-hover-bg)" : hr(e, t) && (r = "var(--datagrid-row-band-striped-bg)"), r ? {
|
|
4926
4939
|
backgroundImage: `linear-gradient(${r}, ${r})`,
|
|
4927
4940
|
backgroundSize: "calc(100% - var(--datagrid-column-divider-size)) calc(100% - var(--datagrid-row-divider-size))",
|
|
4928
4941
|
backgroundPosition: "top left",
|
|
4929
4942
|
backgroundRepeat: "no-repeat"
|
|
4930
4943
|
} : null;
|
|
4931
4944
|
}
|
|
4932
|
-
function
|
|
4933
|
-
if (
|
|
4945
|
+
function It(e, t, r, l) {
|
|
4946
|
+
if (Q(r, l))
|
|
4934
4947
|
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)" };
|
|
4935
4948
|
if (re(r, l))
|
|
4936
4949
|
return { background: "var(--datagrid-selection-range-bg)" };
|
|
4937
4950
|
const b = At(e, r);
|
|
4938
4951
|
return b || {};
|
|
4939
4952
|
}
|
|
4940
|
-
function
|
|
4953
|
+
function Et(e, t) {
|
|
4941
4954
|
const r = At(e, t);
|
|
4942
4955
|
return r ? {
|
|
4943
4956
|
...Ve.value,
|
|
@@ -4945,14 +4958,14 @@ const dd = 6, sd = ".grid-fill-action", He = 14, Le = 8, Vr = 10, Qa = 72, sr =
|
|
|
4945
4958
|
} : Ve.value;
|
|
4946
4959
|
}
|
|
4947
4960
|
function Ze(e, t, r, l) {
|
|
4948
|
-
return
|
|
4961
|
+
return B.value.cellClass?.(e, t, r, l) ?? null;
|
|
4949
4962
|
}
|
|
4950
4963
|
function Be(e, t, r, l) {
|
|
4951
|
-
return
|
|
4964
|
+
return B.value.cellStyle?.(e, t, r, l) ?? {};
|
|
4952
4965
|
}
|
|
4953
4966
|
function Qe(e, t, r) {
|
|
4954
4967
|
const l = Ue(t.key);
|
|
4955
|
-
r < 0 || !
|
|
4968
|
+
r < 0 || !ce(e, r, t, l) || w.value.startInlineEdit(
|
|
4956
4969
|
e,
|
|
4957
4970
|
t.key,
|
|
4958
4971
|
rt(e, t) === "select" ? { openOnMount: !0 } : void 0
|
|
@@ -4967,8 +4980,8 @@ const dd = 6, sd = ".grid-fill-action", He = 14, Le = 8, Vr = 10, Qa = 72, sr =
|
|
|
4967
4980
|
const b = l.getBoundingClientRect();
|
|
4968
4981
|
if (b.width <= 0)
|
|
4969
4982
|
return !1;
|
|
4970
|
-
const
|
|
4971
|
-
return
|
|
4983
|
+
const m = e.clientX - b.left, M = Math.min(24, Math.max(16, Math.floor(b.width * 0.22)));
|
|
4984
|
+
return m >= b.width - M;
|
|
4972
4985
|
}
|
|
4973
4986
|
function we(e, t, r) {
|
|
4974
4987
|
const l = t.kind === "group" ? "none" : rt(t, r);
|
|
@@ -4977,16 +4990,16 @@ const dd = 6, sd = ".grid-fill-action", He = 14, Le = 8, Vr = 10, Qa = 72, sr =
|
|
|
4977
4990
|
const b = e.currentTarget instanceof HTMLElement ? e.currentTarget : null;
|
|
4978
4991
|
if (!b)
|
|
4979
4992
|
return !1;
|
|
4980
|
-
const
|
|
4981
|
-
if (
|
|
4993
|
+
const m = b.getBoundingClientRect();
|
|
4994
|
+
if (m.width <= 0)
|
|
4982
4995
|
return !1;
|
|
4983
|
-
const M = e.clientX -
|
|
4984
|
-
return M >=
|
|
4996
|
+
const M = e.clientX - m.left, W = Math.min(24, Math.max(16, Math.floor(m.width * 0.22)));
|
|
4997
|
+
return M >= m.width - W;
|
|
4985
4998
|
}
|
|
4986
4999
|
function Ae(e, t) {
|
|
4987
|
-
return
|
|
5000
|
+
return Q(e, t) ? 0 : -1;
|
|
4988
5001
|
}
|
|
4989
|
-
function
|
|
5002
|
+
function st(e) {
|
|
4990
5003
|
return ra(e) ? 0 : -1;
|
|
4991
5004
|
}
|
|
4992
5005
|
function ke(e) {
|
|
@@ -4996,13 +5009,13 @@ const dd = 6, sd = ".grid-fill-action", He = 14, Le = 8, Vr = 10, Qa = 72, sr =
|
|
|
4996
5009
|
je.value = !1, (e.currentTarget instanceof HTMLElement ? e.currentTarget : null)?.closest(".grid-cell")?.focus({ preventScroll: !0 }), x.value.startFillHandleDoubleClick(e);
|
|
4997
5010
|
}
|
|
4998
5011
|
function Je() {
|
|
4999
|
-
return
|
|
5000
|
-
}
|
|
5001
|
-
function ce() {
|
|
5002
|
-
return B.value?.leftColumnSpacerWidth ?? 0;
|
|
5012
|
+
return F.value?.viewportRowStart ?? 0;
|
|
5003
5013
|
}
|
|
5004
5014
|
function ge() {
|
|
5005
|
-
return
|
|
5015
|
+
return F.value?.leftColumnSpacerWidth ?? 0;
|
|
5016
|
+
}
|
|
5017
|
+
function pe() {
|
|
5018
|
+
return F.value?.rightColumnSpacerWidth ?? 0;
|
|
5006
5019
|
}
|
|
5007
5020
|
function Re() {
|
|
5008
5021
|
const e = x.value.fillActionAnchorCell;
|
|
@@ -5017,61 +5030,61 @@ const dd = 6, sd = ".grid-fill-action", He = 14, Le = 8, Vr = 10, Qa = 72, sr =
|
|
|
5017
5030
|
}
|
|
5018
5031
|
a.value?.focus({ preventScroll: !0 });
|
|
5019
5032
|
}
|
|
5020
|
-
function
|
|
5033
|
+
function ut(e) {
|
|
5021
5034
|
Pa.value && (e.preventDefault(), e.stopPropagation(), Re(), je.value = !je.value);
|
|
5022
5035
|
}
|
|
5023
5036
|
function Ct() {
|
|
5024
5037
|
je.value = !1, Re();
|
|
5025
5038
|
}
|
|
5026
5039
|
function ze(e, t) {
|
|
5027
|
-
const r =
|
|
5040
|
+
const r = B.value.isCellSelected;
|
|
5028
5041
|
return typeof r == "function" ? r(e, t) : !1;
|
|
5029
5042
|
}
|
|
5030
5043
|
function U() {
|
|
5031
|
-
return
|
|
5032
|
-
rowIndex:
|
|
5033
|
-
columnIndex:
|
|
5044
|
+
return Y.value && Y.value.startRow === Y.value.endRow && Y.value.startColumn === Y.value.endColumn ? {
|
|
5045
|
+
rowIndex: Y.value.startRow,
|
|
5046
|
+
columnIndex: Y.value.startColumn
|
|
5034
5047
|
} : x.value.selectionAnchorCell ?? null;
|
|
5035
5048
|
}
|
|
5036
|
-
function
|
|
5049
|
+
function Q(e, t) {
|
|
5037
5050
|
const r = U();
|
|
5038
|
-
return !!(r &&
|
|
5051
|
+
return !!(r && F.value.viewportRowStart + e === r.rowIndex && t === r.columnIndex);
|
|
5039
5052
|
}
|
|
5040
5053
|
function re(e, t) {
|
|
5041
|
-
return !ze(e, t) ||
|
|
5054
|
+
return !ze(e, t) || Q(e, t) ? !1 : !Ka.value;
|
|
5042
5055
|
}
|
|
5043
5056
|
function _t(e, t) {
|
|
5044
|
-
if (
|
|
5057
|
+
if (Q(e, t))
|
|
5045
5058
|
return !0;
|
|
5046
|
-
const r =
|
|
5059
|
+
const r = B.value.isSelectionAnchorCell;
|
|
5047
5060
|
return typeof r == "function" ? r(e, t) : !1;
|
|
5048
5061
|
}
|
|
5049
5062
|
function Pe(e, t) {
|
|
5050
|
-
const r =
|
|
5063
|
+
const r = B.value.isCellInFillPreview;
|
|
5051
5064
|
return typeof r == "function" ? r(e, t) : !1;
|
|
5052
5065
|
}
|
|
5053
5066
|
function V(e, t) {
|
|
5054
|
-
const r =
|
|
5067
|
+
const r = B.value.isCellInPendingClipboardRange;
|
|
5055
5068
|
return typeof r == "function" ? r(e, t) : !1;
|
|
5056
5069
|
}
|
|
5057
|
-
function
|
|
5058
|
-
const l =
|
|
5070
|
+
function Ge(e, t, r) {
|
|
5071
|
+
const l = B.value.isCellOnPendingClipboardEdge;
|
|
5059
5072
|
return typeof l == "function" ? l(e, t, r) : !1;
|
|
5060
5073
|
}
|
|
5061
|
-
function
|
|
5074
|
+
function Ie(e, t) {
|
|
5062
5075
|
const r = w.value.isEditingCell;
|
|
5063
5076
|
return typeof r == "function" ? r(e, t) : !1;
|
|
5064
5077
|
}
|
|
5065
|
-
function
|
|
5066
|
-
const b =
|
|
5078
|
+
function ce(e, t, r, l) {
|
|
5079
|
+
const b = B.value.isCellEditable;
|
|
5067
5080
|
return typeof b == "function" ? b(e, t, r, l) : Oe(r);
|
|
5068
5081
|
}
|
|
5069
|
-
function
|
|
5082
|
+
function ct(e, t) {
|
|
5070
5083
|
const r = x.value.isFillHandleCell;
|
|
5071
5084
|
return typeof r == "function" ? r(e, t) : !1;
|
|
5072
5085
|
}
|
|
5073
|
-
const
|
|
5074
|
-
if (!
|
|
5086
|
+
const We = u(() => p.value.showRowIndex !== !1), Ce = u(() => {
|
|
5087
|
+
if (!We.value)
|
|
5075
5088
|
return 0;
|
|
5076
5089
|
const e = xe(
|
|
5077
5090
|
D.value.indexColumnStyle.width ?? D.value.indexColumnStyle.minWidth,
|
|
@@ -5086,29 +5099,29 @@ const dd = 6, sd = ".grid-fill-action", He = 14, Le = 8, Vr = 10, Qa = 72, sr =
|
|
|
5086
5099
|
minWidth: e,
|
|
5087
5100
|
maxWidth: e
|
|
5088
5101
|
};
|
|
5089
|
-
}),
|
|
5090
|
-
gridTemplateColumns: `${
|
|
5102
|
+
}), gt = u(() => x.value.isRangeMoving), ve = u(() => v.value.filter((e) => e.pin === "left")), me = u(() => v.value.filter((e) => e.pin === "right")), G = u(() => Ce.value + (ve.value ?? []).reduce((e, t) => e + X(t), 0)), ie = u(() => (me.value ?? []).reduce((e, t) => e + X(t), 0)), pt = u(() => ({
|
|
5103
|
+
gridTemplateColumns: `${G.value}px minmax(0, 1fr) ${ie.value}px`
|
|
5091
5104
|
})), Ke = u(() => ({
|
|
5092
|
-
width: `${
|
|
5093
|
-
minWidth: `${
|
|
5094
|
-
maxWidth: `${
|
|
5095
|
-
})),
|
|
5096
|
-
width: `${
|
|
5097
|
-
minWidth: `${
|
|
5098
|
-
maxWidth: `${
|
|
5105
|
+
width: `${G.value}px`,
|
|
5106
|
+
minWidth: `${G.value}px`,
|
|
5107
|
+
maxWidth: `${G.value}px`
|
|
5108
|
+
})), vt = u(() => ({
|
|
5109
|
+
width: `${ie.value}px`,
|
|
5110
|
+
minWidth: `${ie.value}px`,
|
|
5111
|
+
maxWidth: `${ie.value}px`
|
|
5099
5112
|
})), Bt = u(() => ({
|
|
5100
|
-
left: `${
|
|
5101
|
-
width: `${Math.max(0,
|
|
5113
|
+
left: `${G.value}px`,
|
|
5114
|
+
width: `${Math.max(0, gr.value)}px`,
|
|
5102
5115
|
height: `${Math.max(0, Ot.value)}px`
|
|
5103
|
-
})),
|
|
5104
|
-
left: `${
|
|
5105
|
-
width: `${Math.max(0,
|
|
5106
|
-
height: `${Math.max(0,
|
|
5107
|
-
})),
|
|
5108
|
-
left: `${
|
|
5109
|
-
width: `${Math.max(0,
|
|
5110
|
-
height: `${Math.max(0,
|
|
5111
|
-
})), o = P(null), a = P(null), c = P(null), T = P(null), O = P(null), St = P(null), et = P(null),
|
|
5116
|
+
})), h = u(() => ({
|
|
5117
|
+
left: `${G.value}px`,
|
|
5118
|
+
width: `${Math.max(0, mt.value)}px`,
|
|
5119
|
+
height: `${Math.max(0, Gt.value)}px`
|
|
5120
|
+
})), i = u(() => ({
|
|
5121
|
+
left: `${G.value}px`,
|
|
5122
|
+
width: `${Math.max(0, mt.value)}px`,
|
|
5123
|
+
height: `${Math.max(0, pr.value)}px`
|
|
5124
|
+
})), o = P(null), a = P(null), c = P(null), T = P(null), O = P(null), St = P(null), et = P(null), ur = P(null), Wr = P(null), Kr = P(null), jr = P(null), Nr = P(null), qr = P(null), Ur = P(null), Xr = P(null), Yr = P(null), Zr = P(null), Yt = P(null), cr = P(null), je = P(!1), Ot = P(0), gr = P(0), Qr = P(0), Rt = P(0), mt = P(0), Gt = P(0), pr = P(0), vr = P(0), Ft = P(null), $t = P(null);
|
|
5112
5125
|
let Lt = 0, Ne = null;
|
|
5113
5126
|
function Jr(e) {
|
|
5114
5127
|
if (typeof document > "u")
|
|
@@ -5122,79 +5135,79 @@ const dd = 6, sd = ".grid-fill-action", He = 14, Le = 8, Vr = 10, Qa = 72, sr =
|
|
|
5122
5135
|
r.classList.remove(sr), t.classList.remove(sr), $t.value != null && ($t.value ? r.style.setProperty("cursor", $t.value) : r.style.removeProperty("cursor"), $t.value = null), Ft.value != null && (Ft.value ? t.style.setProperty("cursor", Ft.value) : t.style.removeProperty("cursor"), Ft.value = null);
|
|
5123
5136
|
}
|
|
5124
5137
|
}
|
|
5125
|
-
function
|
|
5138
|
+
function Wt() {
|
|
5126
5139
|
Yt.value = null;
|
|
5127
5140
|
}
|
|
5128
5141
|
function ea() {
|
|
5129
|
-
|
|
5142
|
+
cr.value = null;
|
|
5130
5143
|
}
|
|
5131
5144
|
function tt(e, t) {
|
|
5132
|
-
return Number.isFinite(e.displayIndex) ? Math.max(0, Math.trunc(e.displayIndex)) :
|
|
5145
|
+
return Number.isFinite(e.displayIndex) ? Math.max(0, Math.trunc(e.displayIndex)) : F.value.viewportRowStart + t;
|
|
5133
5146
|
}
|
|
5134
5147
|
function Kt(e, t) {
|
|
5135
|
-
return tt(e, t) -
|
|
5148
|
+
return tt(e, t) - F.value.viewportRowStart;
|
|
5136
5149
|
}
|
|
5137
5150
|
function ta(e, t) {
|
|
5138
|
-
p.value.rowHover && (
|
|
5151
|
+
p.value.rowHover && (cr.value = tt(e, t));
|
|
5139
5152
|
}
|
|
5140
|
-
function
|
|
5141
|
-
return p.value.rowHover === !0 &&
|
|
5153
|
+
function mr(e, t) {
|
|
5154
|
+
return p.value.rowHover === !0 && cr.value === tt(e, t);
|
|
5142
5155
|
}
|
|
5143
|
-
function
|
|
5156
|
+
function hr(e, t) {
|
|
5144
5157
|
return p.value.stripedRows === !0 && tt(e, t) % 2 === 1;
|
|
5145
5158
|
}
|
|
5146
5159
|
function ra(e) {
|
|
5147
5160
|
return typeof p.value.isRowFocused == "function" ? p.value.isRowFocused(e) : !1;
|
|
5148
5161
|
}
|
|
5149
|
-
function
|
|
5162
|
+
function sn(e) {
|
|
5150
5163
|
return typeof p.value.isRowCheckboxSelected == "function" ? p.value.isRowCheckboxSelected(e) : !1;
|
|
5151
5164
|
}
|
|
5152
|
-
function
|
|
5165
|
+
function un(e) {
|
|
5153
5166
|
return e.column.cellType === "checkbox";
|
|
5154
5167
|
}
|
|
5155
5168
|
function aa(e) {
|
|
5156
5169
|
return e.column.meta?.rowSelection === !0;
|
|
5157
5170
|
}
|
|
5158
5171
|
function jt(e, t) {
|
|
5159
|
-
return e.kind !== "group" &&
|
|
5172
|
+
return e.kind !== "group" && un(t);
|
|
5160
5173
|
}
|
|
5161
|
-
function
|
|
5162
|
-
const r =
|
|
5174
|
+
function br(e, t) {
|
|
5175
|
+
const r = B.value.readCell(e, t.key).trim().toLowerCase();
|
|
5163
5176
|
return r === "true" || r === "1" || r === "yes" || r === "on";
|
|
5164
5177
|
}
|
|
5165
|
-
function
|
|
5166
|
-
const
|
|
5178
|
+
function na(e, t, r, l) {
|
|
5179
|
+
const b = e.kind !== "group" ? rt(e, r) : "none", m = ce(e, t, r, l);
|
|
5167
5180
|
return {
|
|
5168
|
-
"grid-cell--checkbox": jt(e,
|
|
5169
|
-
"grid-cell--row-selection": aa(
|
|
5170
|
-
"grid-cell--select":
|
|
5171
|
-
"grid-cell--date":
|
|
5181
|
+
"grid-cell--checkbox": jt(e, r),
|
|
5182
|
+
"grid-cell--row-selection": aa(r),
|
|
5183
|
+
"grid-cell--select": m && b === "select",
|
|
5184
|
+
"grid-cell--date": m && (b === "date" || b === "datetime")
|
|
5172
5185
|
};
|
|
5173
5186
|
}
|
|
5174
|
-
function
|
|
5187
|
+
function ia(e, t) {
|
|
5175
5188
|
return jt(e, t) ? "checkbox" : void 0;
|
|
5176
5189
|
}
|
|
5177
5190
|
function oa(e, t) {
|
|
5178
|
-
return jt(e, t) ?
|
|
5191
|
+
return jt(e, t) ? br(e, t) ? "true" : "false" : void 0;
|
|
5179
5192
|
}
|
|
5180
5193
|
function la(e, t) {
|
|
5181
5194
|
return {
|
|
5182
|
-
"grid-checkbox-indicator--checked":
|
|
5195
|
+
"grid-checkbox-indicator--checked": br(e, t)
|
|
5183
5196
|
};
|
|
5184
5197
|
}
|
|
5185
5198
|
function da(e, t) {
|
|
5186
5199
|
return {
|
|
5187
|
-
"grid-checkbox-indicator__mark--checked":
|
|
5200
|
+
"grid-checkbox-indicator__mark--checked": br(e, t)
|
|
5188
5201
|
};
|
|
5189
5202
|
}
|
|
5190
5203
|
function rt(e, t) {
|
|
5191
|
-
return
|
|
5204
|
+
return Ti({
|
|
5192
5205
|
column: t.column,
|
|
5193
5206
|
row: e.kind !== "group" ? e.data : void 0,
|
|
5194
5207
|
editable: !0
|
|
5195
5208
|
}).editorMode;
|
|
5196
5209
|
}
|
|
5197
|
-
function
|
|
5210
|
+
function fr(e) {
|
|
5198
5211
|
if (e && typeof e == "object" && "label" in e) {
|
|
5199
5212
|
const t = e, r = String(t.label ?? "");
|
|
5200
5213
|
return {
|
|
@@ -5222,28 +5235,28 @@ const dd = 6, sd = ".grid-fill-action", He = 14, Le = 8, Vr = 10, Qa = 72, sr =
|
|
|
5222
5235
|
if (typeof t.column.valueGetter == "function")
|
|
5223
5236
|
return t.column.valueGetter(e.data);
|
|
5224
5237
|
const r = typeof t.column.field == "string" && t.column.field.length > 0 ? t.column.field : t.key;
|
|
5225
|
-
return
|
|
5238
|
+
return dt(e.data) ? e.data[r] : void 0;
|
|
5226
5239
|
}
|
|
5227
|
-
function
|
|
5240
|
+
function yr(e, t) {
|
|
5228
5241
|
const r = t.column.presentation?.options;
|
|
5229
5242
|
return typeof r == "function" ? e.kind !== "group" ? r(e.data) : [] : r;
|
|
5230
5243
|
}
|
|
5231
5244
|
function ga(e, t) {
|
|
5232
|
-
const r =
|
|
5233
|
-
return Array.isArray(r) ? r.map(
|
|
5245
|
+
const r = yr(e, t);
|
|
5246
|
+
return Array.isArray(r) ? r.map(fr) : Ee(r) ? ua(e, t.key) : [];
|
|
5234
5247
|
}
|
|
5235
5248
|
function pa(e, t) {
|
|
5236
5249
|
if (e.kind === "group")
|
|
5237
5250
|
return;
|
|
5238
|
-
const r =
|
|
5239
|
-
if (
|
|
5251
|
+
const r = yr(e, t);
|
|
5252
|
+
if (Ee(r))
|
|
5240
5253
|
return async (l) => {
|
|
5241
|
-
const b =
|
|
5242
|
-
if (
|
|
5243
|
-
const
|
|
5244
|
-
return Array.isArray(
|
|
5254
|
+
const b = yr(e, t);
|
|
5255
|
+
if (Ee(b)) {
|
|
5256
|
+
const m = await b;
|
|
5257
|
+
return Array.isArray(m) ? m.map(fr) : [];
|
|
5245
5258
|
}
|
|
5246
|
-
return Array.isArray(b) ? b.map(
|
|
5259
|
+
return Array.isArray(b) ? b.map(fr) : [];
|
|
5247
5260
|
};
|
|
5248
5261
|
}
|
|
5249
5262
|
function va(e, t, r) {
|
|
@@ -5251,13 +5264,13 @@ const dd = 6, sd = ".grid-fill-action", He = 14, Le = 8, Vr = 10, Qa = 72, sr =
|
|
|
5251
5264
|
if (!l)
|
|
5252
5265
|
return;
|
|
5253
5266
|
const b = R.value.get(l);
|
|
5254
|
-
if (b && b.length === r.length && b.every((M,
|
|
5267
|
+
if (b && b.length === r.length && b.every((M, W) => M.value === r[W]?.value && M.label === r[W]?.label))
|
|
5255
5268
|
return;
|
|
5256
|
-
const
|
|
5257
|
-
|
|
5269
|
+
const m = new Map(R.value);
|
|
5270
|
+
m.set(l, [...r]), R.value = m;
|
|
5258
5271
|
}
|
|
5259
|
-
function
|
|
5260
|
-
const r =
|
|
5272
|
+
function xr(e, t) {
|
|
5273
|
+
const r = B.value.readDisplayCell(e, t.key);
|
|
5261
5274
|
if (e.kind === "group" || rt(e, t) !== "select")
|
|
5262
5275
|
return r;
|
|
5263
5276
|
const l = ua(e, t.key);
|
|
@@ -5266,22 +5279,34 @@ const dd = 6, sd = ".grid-fill-action", He = 14, Le = 8, Vr = 10, Qa = 72, sr =
|
|
|
5266
5279
|
const b = ca(e, t);
|
|
5267
5280
|
return l.find((M) => M.value === String(b ?? ""))?.label ?? r;
|
|
5268
5281
|
}
|
|
5282
|
+
function ma(e, t, r, l) {
|
|
5283
|
+
const b = xr(e, r), m = r.column.cellRenderer;
|
|
5284
|
+
return typeof m != "function" ? b : m({
|
|
5285
|
+
row: e.kind === "group" ? void 0 : e.data,
|
|
5286
|
+
rowNode: e,
|
|
5287
|
+
rowOffset: t,
|
|
5288
|
+
column: r,
|
|
5289
|
+
columnIndex: l,
|
|
5290
|
+
value: B.value.readCell(e, r.key),
|
|
5291
|
+
displayValue: b
|
|
5292
|
+
}) ?? b;
|
|
5293
|
+
}
|
|
5269
5294
|
function ha(e, t) {
|
|
5270
5295
|
const r = ca(e, t);
|
|
5271
5296
|
return r == null ? "" : String(r);
|
|
5272
5297
|
}
|
|
5273
5298
|
function ba(e, t, r, l) {
|
|
5274
|
-
return
|
|
5299
|
+
return ce(e, t, r, l) && Ie(e, r.key) && rt(e, r) === "select";
|
|
5275
5300
|
}
|
|
5276
5301
|
function fa(e, t, r, l) {
|
|
5277
5302
|
const b = rt(e, r);
|
|
5278
|
-
return
|
|
5303
|
+
return ce(e, t, r, l) && Ie(e, r.key) && (b === "date" || b === "datetime");
|
|
5279
5304
|
}
|
|
5280
5305
|
function ya(e, t) {
|
|
5281
5306
|
return rt(e, t) === "datetime" ? "datetime-local" : "date";
|
|
5282
5307
|
}
|
|
5283
5308
|
function xa(e, t, r, l) {
|
|
5284
|
-
return
|
|
5309
|
+
return ce(e, t, r, l) && Ie(e, r.key) && rt(e, r) === "text";
|
|
5285
5310
|
}
|
|
5286
5311
|
function wa(e, t = "stay") {
|
|
5287
5312
|
w.value.updateEditingCellValue(e), w.value.commitInlineEdit(t);
|
|
@@ -5295,41 +5320,41 @@ const dd = 6, sd = ".grid-fill-action", He = 14, Le = 8, Vr = 10, Qa = 72, sr =
|
|
|
5295
5320
|
function _a() {
|
|
5296
5321
|
w.value.commitInlineEdit();
|
|
5297
5322
|
}
|
|
5298
|
-
function
|
|
5323
|
+
function cn(e) {
|
|
5299
5324
|
p.value.handleRowClick?.(e);
|
|
5300
5325
|
}
|
|
5301
|
-
function
|
|
5326
|
+
function gn(e, t, r) {
|
|
5302
5327
|
(r.currentTarget instanceof HTMLElement ? r.currentTarget : null)?.focus({ preventScroll: !0 }), p.value.handleRowIndexClick?.(e, t, r.shiftKey);
|
|
5303
5328
|
}
|
|
5304
|
-
function
|
|
5329
|
+
function pn(e, t, r) {
|
|
5305
5330
|
p.value.handleRowIndexKeydown?.(e, t, r);
|
|
5306
5331
|
}
|
|
5307
5332
|
function Sa(e) {
|
|
5308
|
-
|
|
5333
|
+
cn(e), e.kind === "group" && p.value.toggleGroupRow(e);
|
|
5309
5334
|
}
|
|
5310
5335
|
function Ra(e, t) {
|
|
5311
5336
|
return {
|
|
5312
5337
|
"grid-row--hoverable": p.value.rowHover === !0,
|
|
5313
|
-
"grid-row--hovered":
|
|
5314
|
-
"grid-row--striped":
|
|
5338
|
+
"grid-row--hovered": mr(e, t),
|
|
5339
|
+
"grid-row--striped": hr(e, t),
|
|
5315
5340
|
"grid-row--clipboard-pending": p.value.isRowInPendingClipboardCut?.(e) === !0,
|
|
5316
5341
|
"grid-row--focused": ra(e),
|
|
5317
|
-
"grid-row--checkbox-selected":
|
|
5342
|
+
"grid-row--checkbox-selected": sn(e)
|
|
5318
5343
|
};
|
|
5319
5344
|
}
|
|
5320
|
-
function
|
|
5321
|
-
const r =
|
|
5345
|
+
function vn(e, t) {
|
|
5346
|
+
const r = Y.value, l = v.value.length - 1;
|
|
5322
5347
|
if (!r || l < 0)
|
|
5323
5348
|
return !1;
|
|
5324
|
-
const b = t ? tt(t, e) :
|
|
5349
|
+
const b = t ? tt(t, e) : F.value.viewportRowStart + e;
|
|
5325
5350
|
return b >= r.startRow && b <= r.endRow && r.startColumn === 0 && r.endColumn >= l;
|
|
5326
5351
|
}
|
|
5327
5352
|
function Zt(e, t, r) {
|
|
5328
|
-
const l =
|
|
5353
|
+
const l = B.value.isCellOnSelectionEdge;
|
|
5329
5354
|
return typeof l == "function" ? l(e, t, r) : !1;
|
|
5330
5355
|
}
|
|
5331
|
-
function
|
|
5332
|
-
if (_.value !== "base" ||
|
|
5356
|
+
function mn(e, t, r) {
|
|
5357
|
+
if (_.value !== "base" || gt.value || !Y.value || !ze(t, r))
|
|
5333
5358
|
return !1;
|
|
5334
5359
|
const l = e.currentTarget instanceof HTMLElement ? e.currentTarget : null;
|
|
5335
5360
|
if (!l)
|
|
@@ -5337,31 +5362,31 @@ const dd = 6, sd = ".grid-fill-action", He = 14, Le = 8, Vr = 10, Qa = 72, sr =
|
|
|
5337
5362
|
const b = l.getBoundingClientRect();
|
|
5338
5363
|
if (b.width <= 0 || b.height <= 0)
|
|
5339
5364
|
return !1;
|
|
5340
|
-
const
|
|
5365
|
+
const m = Math.max(
|
|
5341
5366
|
1,
|
|
5342
5367
|
Math.min(
|
|
5343
|
-
|
|
5368
|
+
ud,
|
|
5344
5369
|
Math.floor(b.width / 2),
|
|
5345
5370
|
Math.floor(b.height / 2)
|
|
5346
5371
|
)
|
|
5347
|
-
), M = e.clientX - b.left,
|
|
5348
|
-
return
|
|
5372
|
+
), M = e.clientX - b.left, W = e.clientY - b.top;
|
|
5373
|
+
return W <= m && Zt(t, r, "top") || b.height - W <= m && Zt(t, r, "bottom") || M <= m && Zt(t, r, "left") || b.width - M <= m && Zt(t, r, "right");
|
|
5349
5374
|
}
|
|
5350
5375
|
function Ma(e, t, r) {
|
|
5351
|
-
if (
|
|
5352
|
-
|
|
5376
|
+
if (Z.value) {
|
|
5377
|
+
Wt();
|
|
5353
5378
|
return;
|
|
5354
5379
|
}
|
|
5355
|
-
if (
|
|
5380
|
+
if (mn(e, t, r)) {
|
|
5356
5381
|
Yt.value = {
|
|
5357
|
-
rowIndex: t +
|
|
5382
|
+
rowIndex: t + F.value.viewportRowStart,
|
|
5358
5383
|
columnIndex: r
|
|
5359
5384
|
};
|
|
5360
5385
|
return;
|
|
5361
5386
|
}
|
|
5362
|
-
|
|
5387
|
+
Wt();
|
|
5363
5388
|
}
|
|
5364
|
-
function
|
|
5389
|
+
function hn(e) {
|
|
5365
5390
|
e.kind === "group" && p.value.toggleGroupRow(e);
|
|
5366
5391
|
}
|
|
5367
5392
|
function Aa(e, t, r, l, b) {
|
|
@@ -5371,18 +5396,18 @@ const dd = 6, sd = ".grid-fill-action", He = 14, Le = 8, Vr = 10, Qa = 72, sr =
|
|
|
5371
5396
|
Me.value.handleCellClick(t, r, l, b);
|
|
5372
5397
|
return;
|
|
5373
5398
|
}
|
|
5374
|
-
if (
|
|
5375
|
-
if (!
|
|
5399
|
+
if (hn(t), t.kind !== "group") {
|
|
5400
|
+
if (!Ie(t, l.key) && (wt(e, t, l) || we(e, t, l))) {
|
|
5376
5401
|
Qe(t, l, r);
|
|
5377
5402
|
return;
|
|
5378
5403
|
}
|
|
5379
5404
|
Me.value.handleCellClick(t, r, l, b);
|
|
5380
5405
|
}
|
|
5381
5406
|
}
|
|
5382
|
-
function
|
|
5383
|
-
return
|
|
5407
|
+
function bn(e, t) {
|
|
5408
|
+
return Z.value ? !1 : Yt.value?.rowIndex === e + F.value.viewportRowStart && Yt.value?.columnIndex === t;
|
|
5384
5409
|
}
|
|
5385
|
-
function
|
|
5410
|
+
function fn() {
|
|
5386
5411
|
for (let e = 0; e < H.value.length; e += 1)
|
|
5387
5412
|
for (let t = 0; t < v.value.length; t += 1)
|
|
5388
5413
|
if (_t(e, t))
|
|
@@ -5400,7 +5425,7 @@ const dd = 6, sd = ".grid-fill-action", He = 14, Le = 8, Vr = 10, Qa = 72, sr =
|
|
|
5400
5425
|
St.value,
|
|
5401
5426
|
et.value,
|
|
5402
5427
|
c.value,
|
|
5403
|
-
|
|
5428
|
+
ur.value
|
|
5404
5429
|
]) {
|
|
5405
5430
|
const b = l?.querySelector(r);
|
|
5406
5431
|
if (b)
|
|
@@ -5408,7 +5433,7 @@ const dd = 6, sd = ".grid-fill-action", He = 14, Le = 8, Vr = 10, Qa = 72, sr =
|
|
|
5408
5433
|
}
|
|
5409
5434
|
return null;
|
|
5410
5435
|
}
|
|
5411
|
-
function
|
|
5436
|
+
function yn(e) {
|
|
5412
5437
|
const t = `.grid-cell[data-row-index="${e}"]`;
|
|
5413
5438
|
for (const r of [
|
|
5414
5439
|
O.value,
|
|
@@ -5416,7 +5441,7 @@ const dd = 6, sd = ".grid-fill-action", He = 14, Le = 8, Vr = 10, Qa = 72, sr =
|
|
|
5416
5441
|
St.value,
|
|
5417
5442
|
et.value,
|
|
5418
5443
|
c.value,
|
|
5419
|
-
|
|
5444
|
+
ur.value
|
|
5420
5445
|
]) {
|
|
5421
5446
|
const l = r?.querySelector(t);
|
|
5422
5447
|
if (l)
|
|
@@ -5424,13 +5449,13 @@ const dd = 6, sd = ".grid-fill-action", He = 14, Le = 8, Vr = 10, Qa = 72, sr =
|
|
|
5424
5449
|
}
|
|
5425
5450
|
return null;
|
|
5426
5451
|
}
|
|
5427
|
-
function
|
|
5452
|
+
function Ia() {
|
|
5428
5453
|
return Qt()?.querySelector(".grid-header-viewport") ?? null;
|
|
5429
5454
|
}
|
|
5430
5455
|
function Qt() {
|
|
5431
5456
|
return o.value?.querySelector(".grid-header-shell") ?? null;
|
|
5432
5457
|
}
|
|
5433
|
-
function
|
|
5458
|
+
function Ea(e) {
|
|
5434
5459
|
if (!e)
|
|
5435
5460
|
return null;
|
|
5436
5461
|
const t = wr(e.rowIndex, e.columnIndex), r = T.value?.getBoundingClientRect();
|
|
@@ -5445,7 +5470,7 @@ const dd = 6, sd = ".grid-fill-action", He = 14, Le = 8, Vr = 10, Qa = 72, sr =
|
|
|
5445
5470
|
};
|
|
5446
5471
|
}
|
|
5447
5472
|
function kr() {
|
|
5448
|
-
const e =
|
|
5473
|
+
const e = fn();
|
|
5449
5474
|
if (!e) {
|
|
5450
5475
|
a.value?.focus({ preventScroll: !0 });
|
|
5451
5476
|
return;
|
|
@@ -5457,40 +5482,40 @@ const dd = 6, sd = ".grid-fill-action", He = 14, Le = 8, Vr = 10, Qa = 72, sr =
|
|
|
5457
5482
|
}
|
|
5458
5483
|
a.value?.focus({ preventScroll: !0 });
|
|
5459
5484
|
}
|
|
5460
|
-
function
|
|
5461
|
-
kr(),
|
|
5485
|
+
function xn() {
|
|
5486
|
+
kr(), $i(() => {
|
|
5462
5487
|
kr(), typeof window < "u" && window.requestAnimationFrame(() => {
|
|
5463
5488
|
kr();
|
|
5464
5489
|
});
|
|
5465
5490
|
});
|
|
5466
5491
|
}
|
|
5467
|
-
function
|
|
5468
|
-
a.value = $(e),
|
|
5492
|
+
function wn(e) {
|
|
5493
|
+
a.value = $(e), F.value.bodyViewportRef(e), Tt(), La(), Vt();
|
|
5469
5494
|
}
|
|
5470
|
-
function
|
|
5495
|
+
function kn(e) {
|
|
5471
5496
|
c.value = $(e), Ba(), _r();
|
|
5472
5497
|
}
|
|
5473
|
-
function
|
|
5498
|
+
function Cn(e) {
|
|
5474
5499
|
O.value = $(e);
|
|
5475
5500
|
}
|
|
5476
|
-
function
|
|
5501
|
+
function _n(e) {
|
|
5477
5502
|
St.value = $(e);
|
|
5478
5503
|
}
|
|
5479
|
-
function
|
|
5504
|
+
function Sn(e) {
|
|
5480
5505
|
et.value = $(e);
|
|
5481
5506
|
}
|
|
5482
|
-
function
|
|
5483
|
-
|
|
5507
|
+
function Rn(e) {
|
|
5508
|
+
ur.value = $(e);
|
|
5484
5509
|
}
|
|
5485
5510
|
function Cr(e) {
|
|
5486
|
-
Qr.value = e.scrollTop, Rt.value = e.scrollLeft,
|
|
5511
|
+
Qr.value = e.scrollTop, Rt.value = e.scrollLeft, mt.value = e.clientWidth, Gt.value = e.clientHeight;
|
|
5487
5512
|
}
|
|
5488
5513
|
function _r() {
|
|
5489
5514
|
const e = c.value;
|
|
5490
5515
|
!e || e.scrollLeft === Rt.value || (e.scrollLeft = Rt.value);
|
|
5491
5516
|
}
|
|
5492
5517
|
function Ba() {
|
|
5493
|
-
|
|
5518
|
+
pr.value = c.value?.clientHeight ?? 0;
|
|
5494
5519
|
}
|
|
5495
5520
|
function Tt() {
|
|
5496
5521
|
const e = a.value, t = T.value;
|
|
@@ -5498,9 +5523,9 @@ const dd = 6, sd = ".grid-fill-action", He = 14, Le = 8, Vr = 10, Qa = 72, sr =
|
|
|
5498
5523
|
return;
|
|
5499
5524
|
Cr(e);
|
|
5500
5525
|
const r = e.getBoundingClientRect(), l = t.getBoundingClientRect();
|
|
5501
|
-
|
|
5526
|
+
vr.value = Math.max(0, r.top - l.top), Ot.value = Qt()?.getBoundingClientRect().height ?? 0, gr.value = Ia()?.clientWidth ?? mt.value, Ba(), _r();
|
|
5502
5527
|
}
|
|
5503
|
-
function
|
|
5528
|
+
function Mn() {
|
|
5504
5529
|
return typeof window > "u" ? 1 : Math.max(1, window.devicePixelRatio || 1);
|
|
5505
5530
|
}
|
|
5506
5531
|
function qe(e, t) {
|
|
@@ -5517,8 +5542,8 @@ const dd = 6, sd = ".grid-fill-action", He = 14, Le = 8, Vr = 10, Qa = 72, sr =
|
|
|
5517
5542
|
function at(e, t, r) {
|
|
5518
5543
|
if (!e || t <= 0 || r <= 0)
|
|
5519
5544
|
return e && e.getContext("2d")?.clearRect(0, 0, e.width, e.height), null;
|
|
5520
|
-
const l =
|
|
5521
|
-
e.width !== b && (e.width = b), e.height !==
|
|
5545
|
+
const l = Mn(), b = Math.max(1, Math.round(t * l)), m = Math.max(1, Math.round(r * l));
|
|
5546
|
+
e.width !== b && (e.width = b), e.height !== m && (e.height = m);
|
|
5522
5547
|
const M = e.getContext("2d");
|
|
5523
5548
|
return M ? (M.setTransform(l, 0, 0, l, 0, 0), M.clearRect(0, 0, t, r), M) : null;
|
|
5524
5549
|
}
|
|
@@ -5526,13 +5551,13 @@ const dd = 6, sd = ".grid-fill-action", He = 14, Le = 8, Vr = 10, Qa = 72, sr =
|
|
|
5526
5551
|
if (!(t.width <= 0 || t.height <= 0 || l <= 0)) {
|
|
5527
5552
|
e.save(), e.strokeStyle = r, e.lineWidth = l, e.beginPath();
|
|
5528
5553
|
for (const b of t.horizontalLines) {
|
|
5529
|
-
const
|
|
5530
|
-
|
|
5554
|
+
const m = Math.round(b.position) - 0.5;
|
|
5555
|
+
m < -l || m > t.height + l || (e.moveTo(0, m), e.lineTo(t.width, m));
|
|
5531
5556
|
}
|
|
5532
5557
|
e.stroke(), e.restore();
|
|
5533
5558
|
}
|
|
5534
5559
|
}
|
|
5535
|
-
function
|
|
5560
|
+
function An(e) {
|
|
5536
5561
|
switch (e) {
|
|
5537
5562
|
case "hover":
|
|
5538
5563
|
return qe(
|
|
@@ -5577,69 +5602,69 @@ const dd = 6, sd = ".grid-fill-action", He = 14, Le = 8, Vr = 10, Qa = 72, sr =
|
|
|
5577
5602
|
if (!(t.width <= 0 || t.height <= 0 || t.bands.length === 0)) {
|
|
5578
5603
|
e.save();
|
|
5579
5604
|
for (const r of t.bands) {
|
|
5580
|
-
const l =
|
|
5605
|
+
const l = An(r.kind);
|
|
5581
5606
|
if (!l)
|
|
5582
5607
|
continue;
|
|
5583
|
-
const b = Math.round(r.top),
|
|
5584
|
-
|
|
5608
|
+
const b = Math.round(r.top), m = Math.max(1, Math.round(r.height)), M = Math.max(0, b), ne = Math.min(t.height, b + m) - M;
|
|
5609
|
+
ne <= 0 || (e.fillStyle = l, e.fillRect(0, M, t.width, ne));
|
|
5585
5610
|
}
|
|
5586
5611
|
e.restore();
|
|
5587
5612
|
}
|
|
5588
5613
|
}
|
|
5589
|
-
function
|
|
5614
|
+
function nt(e, t, r, l) {
|
|
5590
5615
|
if (!(t.height <= 0 || l <= 0 || t.verticalLines.length === 0)) {
|
|
5591
5616
|
e.save(), e.strokeStyle = r, e.lineWidth = l, e.beginPath();
|
|
5592
5617
|
for (const b of t.verticalLines) {
|
|
5593
|
-
const
|
|
5594
|
-
|
|
5618
|
+
const m = Math.round(b.position) - 0.5;
|
|
5619
|
+
m < -l || m > t.width + l || (e.moveTo(m, 0), e.lineTo(m, t.height));
|
|
5595
5620
|
}
|
|
5596
5621
|
e.stroke(), e.restore();
|
|
5597
5622
|
}
|
|
5598
5623
|
}
|
|
5599
5624
|
function $a() {
|
|
5600
5625
|
Lt = 0;
|
|
5601
|
-
const e =
|
|
5602
|
-
|
|
5626
|
+
const e = En.value, t = In.value, r = qe("--datagrid-row-divider-color", "rgba(0, 0, 0, 0.08)"), l = qe("--datagrid-column-divider-color", "rgba(0, 0, 0, 0.08)"), b = qe("--datagrid-header-column-divider-color", l), m = Fa("--datagrid-row-divider-size", 1), M = Fa("--datagrid-column-divider-size", 1), W = at(
|
|
5627
|
+
Wr.value,
|
|
5603
5628
|
e.left.width,
|
|
5604
5629
|
e.left.height
|
|
5605
5630
|
);
|
|
5606
|
-
|
|
5607
|
-
const
|
|
5631
|
+
W && !Jt.value && nt(W, e.left, b, M);
|
|
5632
|
+
const ne = at(
|
|
5608
5633
|
Kr.value,
|
|
5609
5634
|
e.center.width,
|
|
5610
5635
|
e.center.height
|
|
5611
5636
|
);
|
|
5612
|
-
|
|
5637
|
+
ne && !Jt.value && nt(ne, e.center, b, M);
|
|
5613
5638
|
const he = at(
|
|
5614
5639
|
jr.value,
|
|
5615
5640
|
e.right.width,
|
|
5616
5641
|
e.right.height
|
|
5617
5642
|
);
|
|
5618
|
-
he && !Jt.value &&
|
|
5643
|
+
he && !Jt.value && nt(he, e.right, b, M);
|
|
5619
5644
|
const Fe = at(Nr.value, t.left.width, t.left.height);
|
|
5620
|
-
Fe && (Pt(Fe, t.left), zt(Fe, t.left, r,
|
|
5621
|
-
const
|
|
5622
|
-
|
|
5645
|
+
Fe && (Pt(Fe, t.left), zt(Fe, t.left, r, m), nt(Fe, t.left, l, M));
|
|
5646
|
+
const bt = at(qr.value, t.center.width, t.center.height);
|
|
5647
|
+
bt && (Pt(bt, t.center), zt(bt, t.center, r, m), nt(bt, t.center, l, M));
|
|
5623
5648
|
const $e = at(Ur.value, t.right.width, t.right.height);
|
|
5624
|
-
$e && (Pt($e, t.right), zt($e, t.right, r,
|
|
5625
|
-
const
|
|
5649
|
+
$e && (Pt($e, t.right), zt($e, t.right, r, m), nt($e, t.right, l, M));
|
|
5650
|
+
const de = Fn.value, be = at(
|
|
5626
5651
|
Xr.value,
|
|
5627
|
-
|
|
5628
|
-
|
|
5652
|
+
de.left.width,
|
|
5653
|
+
de.left.height
|
|
5629
5654
|
);
|
|
5630
|
-
be && (Pt(be,
|
|
5631
|
-
const
|
|
5655
|
+
be && (Pt(be, de.left), zt(be, de.left, r, m), nt(be, de.left, l, M));
|
|
5656
|
+
const q = at(
|
|
5632
5657
|
Yr.value,
|
|
5633
|
-
|
|
5634
|
-
|
|
5658
|
+
de.center.width,
|
|
5659
|
+
de.center.height
|
|
5635
5660
|
);
|
|
5636
|
-
|
|
5637
|
-
const
|
|
5661
|
+
q && (Pt(q, de.center), zt(q, de.center, r, m), nt(q, de.center, l, M));
|
|
5662
|
+
const se = at(
|
|
5638
5663
|
Zr.value,
|
|
5639
|
-
|
|
5640
|
-
|
|
5664
|
+
de.right.width,
|
|
5665
|
+
de.right.height
|
|
5641
5666
|
);
|
|
5642
|
-
|
|
5667
|
+
se && (Pt(se, de.right), zt(se, de.right, r, m), nt(se, de.right, l, M));
|
|
5643
5668
|
}
|
|
5644
5669
|
function Vt() {
|
|
5645
5670
|
if (typeof window > "u") {
|
|
@@ -5658,45 +5683,45 @@ const dd = 6, sd = ".grid-fill-action", He = 14, Le = 8, Vr = 10, Qa = 72, sr =
|
|
|
5658
5683
|
})), Ne.disconnect(), a.value && Ne.observe(a.value), c.value && Ne.observe(c.value), T.value && Ne.observe(T.value);
|
|
5659
5684
|
const e = Qt();
|
|
5660
5685
|
e && Ne.observe(e);
|
|
5661
|
-
const t =
|
|
5686
|
+
const t = Ia();
|
|
5662
5687
|
t && Ne.observe(t);
|
|
5663
5688
|
}
|
|
5664
|
-
const
|
|
5665
|
-
rowMetrics:
|
|
5666
|
-
rowBands:
|
|
5689
|
+
const In = u(() => Tr({
|
|
5690
|
+
rowMetrics: Gn(),
|
|
5691
|
+
rowBands: Nn(),
|
|
5667
5692
|
scrollTop: Qr.value,
|
|
5668
|
-
leftPaneWidth:
|
|
5669
|
-
centerPaneWidth:
|
|
5670
|
-
rightPaneWidth:
|
|
5671
|
-
viewportHeight:
|
|
5693
|
+
leftPaneWidth: G.value,
|
|
5694
|
+
centerPaneWidth: mt.value,
|
|
5695
|
+
rightPaneWidth: ie.value,
|
|
5696
|
+
viewportHeight: Gt.value,
|
|
5672
5697
|
leftColumnWidths: [
|
|
5673
5698
|
Ce.value,
|
|
5674
|
-
...(ve.value ?? []).map(
|
|
5699
|
+
...(ve.value ?? []).map(X)
|
|
5675
5700
|
].filter((e) => e > 0),
|
|
5676
5701
|
centerColumnWidths: [
|
|
5677
|
-
|
|
5678
|
-
...(Se.value ?? []).map(
|
|
5679
|
-
|
|
5702
|
+
ge(),
|
|
5703
|
+
...(Se.value ?? []).map(X),
|
|
5704
|
+
pe()
|
|
5680
5705
|
].filter((e) => e > 0),
|
|
5681
|
-
rightColumnWidths: (me.value ?? []).map(
|
|
5706
|
+
rightColumnWidths: (me.value ?? []).map(X),
|
|
5682
5707
|
centerScrollLeft: Rt.value
|
|
5683
|
-
})),
|
|
5708
|
+
})), En = u(() => Tr({
|
|
5684
5709
|
rowMetrics: Ot.value > 0 ? [{ top: 0, height: Ot.value }] : [],
|
|
5685
5710
|
scrollTop: 0,
|
|
5686
|
-
leftPaneWidth:
|
|
5687
|
-
centerPaneWidth:
|
|
5688
|
-
rightPaneWidth:
|
|
5711
|
+
leftPaneWidth: G.value,
|
|
5712
|
+
centerPaneWidth: gr.value,
|
|
5713
|
+
rightPaneWidth: ie.value,
|
|
5689
5714
|
viewportHeight: Ot.value,
|
|
5690
5715
|
leftColumnWidths: [
|
|
5691
5716
|
Ce.value,
|
|
5692
|
-
...(ve.value ?? []).map(
|
|
5717
|
+
...(ve.value ?? []).map(X)
|
|
5693
5718
|
].filter((e) => e > 0),
|
|
5694
5719
|
centerColumnWidths: [
|
|
5695
|
-
|
|
5696
|
-
...(Se.value ?? []).map(
|
|
5697
|
-
|
|
5720
|
+
ge(),
|
|
5721
|
+
...(Se.value ?? []).map(X),
|
|
5722
|
+
pe()
|
|
5698
5723
|
].filter((e) => e > 0),
|
|
5699
|
-
rightColumnWidths: (me.value ?? []).map(
|
|
5724
|
+
rightColumnWidths: (me.value ?? []).map(X),
|
|
5700
5725
|
centerScrollLeft: Rt.value
|
|
5701
5726
|
})), Ta = u(() => fe.value.flatMap((e, t) => {
|
|
5702
5727
|
const r = Dt.value[t], l = Ha(e, Kt(e, t));
|
|
@@ -5707,164 +5732,164 @@ const dd = 6, sd = ".grid-fill-action", He = 14, Le = 8, Vr = 10, Qa = 72, sr =
|
|
|
5707
5732
|
kind: l
|
|
5708
5733
|
}];
|
|
5709
5734
|
}));
|
|
5710
|
-
function
|
|
5735
|
+
function Bn() {
|
|
5711
5736
|
return Ta.value ?? [];
|
|
5712
5737
|
}
|
|
5713
|
-
const
|
|
5714
|
-
rowMetrics:
|
|
5715
|
-
rowBands:
|
|
5738
|
+
const Fn = u(() => Tr({
|
|
5739
|
+
rowMetrics: Wn(),
|
|
5740
|
+
rowBands: Bn(),
|
|
5716
5741
|
scrollTop: 0,
|
|
5717
|
-
leftPaneWidth:
|
|
5718
|
-
centerPaneWidth:
|
|
5719
|
-
rightPaneWidth:
|
|
5720
|
-
viewportHeight:
|
|
5742
|
+
leftPaneWidth: G.value,
|
|
5743
|
+
centerPaneWidth: mt.value,
|
|
5744
|
+
rightPaneWidth: ie.value,
|
|
5745
|
+
viewportHeight: pr.value,
|
|
5721
5746
|
leftColumnWidths: [
|
|
5722
5747
|
Ce.value,
|
|
5723
|
-
...(ve.value ?? []).map(
|
|
5748
|
+
...(ve.value ?? []).map(X)
|
|
5724
5749
|
].filter((e) => e > 0),
|
|
5725
5750
|
centerColumnWidths: [
|
|
5726
|
-
|
|
5727
|
-
...(Se.value ?? []).map(
|
|
5728
|
-
|
|
5751
|
+
ge(),
|
|
5752
|
+
...(Se.value ?? []).map(X),
|
|
5753
|
+
pe()
|
|
5729
5754
|
].filter((e) => e > 0),
|
|
5730
|
-
rightColumnWidths: (me.value ?? []).map(
|
|
5755
|
+
rightColumnWidths: (me.value ?? []).map(X),
|
|
5731
5756
|
centerScrollLeft: Rt.value
|
|
5732
|
-
})), Jt = u(() => _.value !== "pivot" ? !1 : v.value.some((e) => (
|
|
5733
|
-
function
|
|
5757
|
+
})), Jt = u(() => _.value !== "pivot" ? !1 : v.value.some((e) => (lt(e)?.groupLabels?.length ?? 0) > 0));
|
|
5758
|
+
function ht(e, t, r) {
|
|
5734
5759
|
return r < t ? t : Math.min(Math.max(e, t), r);
|
|
5735
5760
|
}
|
|
5736
|
-
const
|
|
5761
|
+
const $n = u(() => v.value.filter((e) => e.pin !== "left" && e.pin !== "right")), er = u(() => mt.value > 0 ? mt.value : xe(D.value.gridContentStyle.width ?? D.value.gridContentStyle.minWidth, 0));
|
|
5737
5762
|
function za() {
|
|
5738
5763
|
const e = x.value.fillActionAnchorCell;
|
|
5739
5764
|
if (!e)
|
|
5740
5765
|
return null;
|
|
5741
|
-
const t = Je(), r = Je() + Math.max(0, H.value.length - 1), l =
|
|
5766
|
+
const t = Je(), r = Je() + Math.max(0, H.value.length - 1), l = Y.value, b = l ? Math.min(l.startRow, l.endRow) : e.rowIndex, m = l ? Math.max(l.startRow, l.endRow) : e.rowIndex, M = l ? Math.min(l.startColumn, l.endColumn) : e.columnIndex, W = l ? Math.max(l.startColumn, l.endColumn) : e.columnIndex, ne = Math.max(b, t), he = Math.min(m, r), Fe = ne <= he ? ht(e.rowIndex, ne, he) : e.rowIndex, bt = new Set((Se.value ?? []).map((be) => be.key)), $e = v.value.map((be, q) => ({ column: be, columnIndex: q })).filter(({ column: be, columnIndex: q }) => q < M || q > W ? !1 : be.pin === "left" || be.pin === "right" || bt.has(be.key)).map(({ columnIndex: be }) => be), de = $e.length > 0 ? ht(
|
|
5742
5767
|
e.columnIndex,
|
|
5743
5768
|
$e[0] ?? e.columnIndex,
|
|
5744
5769
|
$e[$e.length - 1] ?? e.columnIndex
|
|
5745
5770
|
) : e.columnIndex;
|
|
5746
5771
|
return {
|
|
5747
5772
|
rowIndex: Fe,
|
|
5748
|
-
columnIndex:
|
|
5773
|
+
columnIndex: de
|
|
5749
5774
|
};
|
|
5750
5775
|
}
|
|
5751
|
-
function
|
|
5776
|
+
function Ln() {
|
|
5752
5777
|
const e = za() ?? x.value.fillActionAnchorCell;
|
|
5753
5778
|
if (!e)
|
|
5754
5779
|
return null;
|
|
5755
|
-
const t =
|
|
5780
|
+
const t = Ea(e);
|
|
5756
5781
|
if (t)
|
|
5757
|
-
return
|
|
5782
|
+
return ht(
|
|
5758
5783
|
t.right - He,
|
|
5759
5784
|
Le,
|
|
5760
|
-
|
|
5785
|
+
G.value + er.value + ie.value - He - Le
|
|
5761
5786
|
);
|
|
5762
5787
|
const r = v.value[e.columnIndex];
|
|
5763
5788
|
if (!r)
|
|
5764
5789
|
return null;
|
|
5765
5790
|
if (r.pin === "left") {
|
|
5766
5791
|
let M = Ce.value;
|
|
5767
|
-
for (const
|
|
5768
|
-
if (M +=
|
|
5792
|
+
for (const W of ve.value)
|
|
5793
|
+
if (M += X(W), W.key === r.key)
|
|
5769
5794
|
break;
|
|
5770
|
-
return
|
|
5795
|
+
return ht(
|
|
5771
5796
|
M - He,
|
|
5772
5797
|
Le,
|
|
5773
|
-
Math.max(Le,
|
|
5798
|
+
Math.max(Le, G.value - He - Le)
|
|
5774
5799
|
);
|
|
5775
5800
|
}
|
|
5776
5801
|
if (r.pin === "right") {
|
|
5777
|
-
let M =
|
|
5778
|
-
for (const
|
|
5779
|
-
if (M +=
|
|
5802
|
+
let M = G.value + er.value;
|
|
5803
|
+
for (const ne of me.value)
|
|
5804
|
+
if (M += X(ne), ne.key === r.key)
|
|
5780
5805
|
break;
|
|
5781
|
-
const
|
|
5782
|
-
return
|
|
5806
|
+
const W = G.value + er.value;
|
|
5807
|
+
return ht(
|
|
5783
5808
|
M - He,
|
|
5784
|
-
|
|
5809
|
+
W + Le,
|
|
5785
5810
|
Math.max(
|
|
5786
|
-
|
|
5787
|
-
|
|
5811
|
+
W + Le,
|
|
5812
|
+
W + ie.value - He - Le
|
|
5788
5813
|
)
|
|
5789
5814
|
);
|
|
5790
5815
|
}
|
|
5791
|
-
let l =
|
|
5792
|
-
for (const M of
|
|
5793
|
-
if (l +=
|
|
5816
|
+
let l = G.value - Rt.value;
|
|
5817
|
+
for (const M of $n.value)
|
|
5818
|
+
if (l += X(M), M.key === r.key)
|
|
5794
5819
|
break;
|
|
5795
|
-
const b =
|
|
5796
|
-
return
|
|
5820
|
+
const b = G.value + Le, m = G.value + er.value - He - Le;
|
|
5821
|
+
return ht(l - He, b, m);
|
|
5797
5822
|
}
|
|
5798
|
-
function
|
|
5799
|
-
const e =
|
|
5823
|
+
function Tn() {
|
|
5824
|
+
const e = vr.value + Le, t = vr.value + Math.max(
|
|
5800
5825
|
0,
|
|
5801
|
-
|
|
5826
|
+
Gt.value - He - Le - Vr
|
|
5802
5827
|
), r = x.value.fillActionAnchorCell, l = za();
|
|
5803
5828
|
if (r && l && r.rowIndex !== l.rowIndex)
|
|
5804
5829
|
return t;
|
|
5805
|
-
const b =
|
|
5830
|
+
const b = Ea(l);
|
|
5806
5831
|
if (b)
|
|
5807
|
-
return
|
|
5832
|
+
return ht(
|
|
5808
5833
|
b.bottom - He - Vr,
|
|
5809
5834
|
e,
|
|
5810
5835
|
t
|
|
5811
5836
|
);
|
|
5812
|
-
const
|
|
5813
|
-
if (!
|
|
5837
|
+
const m = T.value?.getBoundingClientRect(), M = l ? yn(l.rowIndex) : null;
|
|
5838
|
+
if (!m || !M)
|
|
5814
5839
|
return t;
|
|
5815
|
-
const
|
|
5816
|
-
return
|
|
5840
|
+
const ne = M.getBoundingClientRect().bottom - m.top - He - Vr;
|
|
5841
|
+
return ht(ne, e, t);
|
|
5817
5842
|
}
|
|
5818
5843
|
const Pa = u(() => {
|
|
5819
5844
|
if (!x.value.fillActionAnchorCell)
|
|
5820
5845
|
return null;
|
|
5821
|
-
const e =
|
|
5846
|
+
const e = Ln();
|
|
5822
5847
|
if (e == null)
|
|
5823
5848
|
return null;
|
|
5824
|
-
const t =
|
|
5849
|
+
const t = Tn();
|
|
5825
5850
|
return {
|
|
5826
5851
|
left: `${e}px`,
|
|
5827
5852
|
top: `${t}px`
|
|
5828
5853
|
};
|
|
5829
5854
|
});
|
|
5830
|
-
|
|
5855
|
+
it(
|
|
5831
5856
|
() => x.value.fillPreviewRange,
|
|
5832
5857
|
(e, t) => {
|
|
5833
|
-
t && !e &&
|
|
5858
|
+
t && !e && xn();
|
|
5834
5859
|
}
|
|
5835
|
-
),
|
|
5860
|
+
), it(
|
|
5836
5861
|
() => x.value.fillActionAnchorCell ? `${x.value.fillActionAnchorCell.rowIndex}:${x.value.fillActionAnchorCell.columnIndex}` : "",
|
|
5837
5862
|
() => {
|
|
5838
5863
|
je.value = !1;
|
|
5839
5864
|
}
|
|
5840
|
-
),
|
|
5865
|
+
), it(
|
|
5841
5866
|
() => x.value.isFillDragging,
|
|
5842
5867
|
(e) => {
|
|
5843
|
-
e &&
|
|
5868
|
+
e && Wt();
|
|
5844
5869
|
}
|
|
5845
|
-
),
|
|
5870
|
+
), it(je, (e, t, r) => {
|
|
5846
5871
|
if (!e || typeof window > "u")
|
|
5847
5872
|
return;
|
|
5848
|
-
const l = (
|
|
5849
|
-
(
|
|
5850
|
-
}, b = (
|
|
5851
|
-
|
|
5873
|
+
const l = (m) => {
|
|
5874
|
+
(m.target instanceof HTMLElement ? m.target : null)?.closest(cd) || (je.value = !1);
|
|
5875
|
+
}, b = (m) => {
|
|
5876
|
+
m.key === "Escape" && (je.value = !1, Re());
|
|
5852
5877
|
};
|
|
5853
5878
|
window.addEventListener("mousedown", l, !0), window.addEventListener("keydown", b), r(() => {
|
|
5854
5879
|
window.removeEventListener("mousedown", l, !0), window.removeEventListener("keydown", b);
|
|
5855
5880
|
});
|
|
5856
|
-
}),
|
|
5881
|
+
}), it(
|
|
5857
5882
|
() => x.value.isFillDragging,
|
|
5858
5883
|
(e) => {
|
|
5859
5884
|
Jr(e);
|
|
5860
5885
|
},
|
|
5861
5886
|
{ immediate: !0 }
|
|
5862
5887
|
);
|
|
5863
|
-
const Nt =
|
|
5888
|
+
const Nt = zi({
|
|
5864
5889
|
resolveSourceScrollTop: () => a.value?.scrollTop ?? 0,
|
|
5865
5890
|
mode: "direct-transform",
|
|
5866
5891
|
resolvePaneElements: () => [O.value, St.value]
|
|
5867
|
-
}), Sr =
|
|
5892
|
+
}), Sr = Pi({
|
|
5868
5893
|
resolveBodyViewport: () => a.value,
|
|
5869
5894
|
resolveMainViewport: () => a.value,
|
|
5870
5895
|
setHandledScrollTop: (e) => {
|
|
@@ -5880,20 +5905,20 @@ const dd = 6, sd = ".grid-fill-action", He = 14, Le = 8, Vr = 10, Qa = 72, sr =
|
|
|
5880
5905
|
isLinkedScrollSyncLoopScheduled: Nt.isSyncLoopScheduled,
|
|
5881
5906
|
onWheelConsumed: () => {
|
|
5882
5907
|
const e = a.value;
|
|
5883
|
-
e &&
|
|
5908
|
+
e && F.value.handleViewportScroll(Ye(e));
|
|
5884
5909
|
}
|
|
5885
5910
|
});
|
|
5886
|
-
function
|
|
5887
|
-
|
|
5911
|
+
function zn(e) {
|
|
5912
|
+
F.value.handleViewportScroll(e);
|
|
5888
5913
|
const t = e.target;
|
|
5889
5914
|
t && (Nt.onSourceScroll(t.scrollTop), Cr(t), _r(), Vt());
|
|
5890
5915
|
}
|
|
5891
|
-
function
|
|
5916
|
+
function Pn(e) {
|
|
5892
5917
|
const t = e.target, r = a.value;
|
|
5893
|
-
!t || !r || r.scrollLeft === t.scrollLeft || (r.scrollLeft = t.scrollLeft,
|
|
5918
|
+
!t || !r || r.scrollLeft === t.scrollLeft || (r.scrollLeft = t.scrollLeft, F.value.handleViewportScroll(Ye(r)), Cr(r), Vt());
|
|
5894
5919
|
}
|
|
5895
|
-
function
|
|
5896
|
-
|
|
5920
|
+
function Vn(e) {
|
|
5921
|
+
F.value.handleViewportKeydown(e);
|
|
5897
5922
|
}
|
|
5898
5923
|
function Va(e) {
|
|
5899
5924
|
Sr.onLinkedViewportWheel(e);
|
|
@@ -5901,58 +5926,58 @@ const dd = 6, sd = ".grid-fill-action", He = 14, Le = 8, Vr = 10, Qa = 72, sr =
|
|
|
5901
5926
|
function Da(e) {
|
|
5902
5927
|
Sr.onBodyViewportWheel(e);
|
|
5903
5928
|
}
|
|
5904
|
-
|
|
5929
|
+
Bi(() => {
|
|
5905
5930
|
Jr(!1), Nt.reset(), Sr.reset(), Lt !== 0 && typeof window < "u" && (window.cancelAnimationFrame(Lt), Lt = 0), Ne?.disconnect(), Ne = null, typeof window < "u" && window.removeEventListener("resize", Tt);
|
|
5906
|
-
}),
|
|
5931
|
+
}), Fi(() => {
|
|
5907
5932
|
Tt(), La(), Vt(), typeof window < "u" && window.addEventListener("resize", Tt);
|
|
5908
5933
|
});
|
|
5909
|
-
const
|
|
5910
|
-
width: `${
|
|
5911
|
-
minWidth: `${
|
|
5912
|
-
maxWidth: `${
|
|
5913
|
-
})),
|
|
5914
|
-
width: `${
|
|
5915
|
-
minWidth: `${
|
|
5916
|
-
maxWidth: `${
|
|
5934
|
+
const Dn = u(() => ({
|
|
5935
|
+
width: `${G.value}px`,
|
|
5936
|
+
minWidth: `${G.value}px`,
|
|
5937
|
+
maxWidth: `${G.value}px`
|
|
5938
|
+
})), Hn = u(() => ({
|
|
5939
|
+
width: `${ie.value}px`,
|
|
5940
|
+
minWidth: `${ie.value}px`,
|
|
5941
|
+
maxWidth: `${ie.value}px`
|
|
5917
5942
|
}));
|
|
5918
|
-
function
|
|
5943
|
+
function On() {
|
|
5919
5944
|
const e = [];
|
|
5920
|
-
let t =
|
|
5945
|
+
let t = F.value?.topSpacerHeight ?? 0;
|
|
5921
5946
|
return H.value.forEach((r, l) => {
|
|
5922
|
-
const b = p.value?.rowStyle(r, l) ?? {},
|
|
5947
|
+
const b = p.value?.rowStyle(r, l) ?? {}, m = xe(b.height ?? b.minHeight, 31);
|
|
5923
5948
|
e.push({
|
|
5924
5949
|
top: t,
|
|
5925
|
-
height:
|
|
5926
|
-
}), t +=
|
|
5950
|
+
height: m
|
|
5951
|
+
}), t += m;
|
|
5927
5952
|
}), e;
|
|
5928
5953
|
}
|
|
5929
5954
|
const qt = u(() => {
|
|
5930
|
-
const e =
|
|
5931
|
-
return _.value === "base" && K.value === "auto" ?
|
|
5955
|
+
const e = On();
|
|
5956
|
+
return _.value === "base" && K.value === "auto" ? Ga(e) : e;
|
|
5932
5957
|
});
|
|
5933
|
-
function
|
|
5958
|
+
function Gn() {
|
|
5934
5959
|
return qt.value ?? [];
|
|
5935
5960
|
}
|
|
5936
5961
|
const Dt = u(() => {
|
|
5937
5962
|
const e = [];
|
|
5938
5963
|
let t = 0;
|
|
5939
5964
|
return fe.value.forEach((r, l) => {
|
|
5940
|
-
const b = p.value?.rowStyle(r, Kt(r, l)) ?? {},
|
|
5965
|
+
const b = p.value?.rowStyle(r, Kt(r, l)) ?? {}, m = xe(b.height ?? b.minHeight, 31);
|
|
5941
5966
|
e.push({
|
|
5942
5967
|
top: t,
|
|
5943
|
-
height:
|
|
5944
|
-
}), t +=
|
|
5968
|
+
height: m
|
|
5969
|
+
}), t += m;
|
|
5945
5970
|
}), e;
|
|
5946
5971
|
});
|
|
5947
|
-
function
|
|
5972
|
+
function Wn() {
|
|
5948
5973
|
return Dt.value ?? [];
|
|
5949
5974
|
}
|
|
5950
|
-
const
|
|
5975
|
+
const Kn = u(() => qt.value.map((e) => `${e.top}:${e.height}`).join("|")), jn = u(() => Dt.value.map((e) => `${e.top}:${e.height}`).join("|"));
|
|
5951
5976
|
function Ha(e, t) {
|
|
5952
|
-
if (
|
|
5977
|
+
if (mr(e, t))
|
|
5953
5978
|
return "hover";
|
|
5954
5979
|
const r = p.value.rowClass(e);
|
|
5955
|
-
return r.includes("row--group") && r.includes("row--pivot") ? "pivot-group" : r.includes("row--group") ? "group" : r.includes("row--tree") ? "tree" : r.includes("row--pivot") ? "pivot" :
|
|
5980
|
+
return r.includes("row--group") && r.includes("row--pivot") ? "pivot-group" : r.includes("row--group") ? "group" : r.includes("row--tree") ? "tree" : r.includes("row--pivot") ? "pivot" : hr(e, t) ? "striped" : "base";
|
|
5956
5981
|
}
|
|
5957
5982
|
const Oa = u(() => H.value.flatMap((e, t) => {
|
|
5958
5983
|
const r = qt.value[t], l = Ha(e, t);
|
|
@@ -5963,35 +5988,35 @@ const dd = 6, sd = ".grid-fill-action", He = 14, Le = 8, Vr = 10, Qa = 72, sr =
|
|
|
5963
5988
|
kind: l
|
|
5964
5989
|
}];
|
|
5965
5990
|
}));
|
|
5966
|
-
function
|
|
5991
|
+
function Nn() {
|
|
5967
5992
|
return Oa.value ?? [];
|
|
5968
5993
|
}
|
|
5969
|
-
const
|
|
5994
|
+
const qn = u(() => Oa.value.map((e) => `${e.kind}:${e.top}:${e.height}`).join("|")), Un = u(() => Ta.value.map((e) => `${e.kind}:${e.top}:${e.height}`).join("|")), Xn = u(() => [
|
|
5970
5995
|
Ce.value,
|
|
5971
|
-
...(ve.value ?? []).map(
|
|
5972
|
-
].join("|")),
|
|
5973
|
-
|
|
5974
|
-
...(Se.value ?? []).map(
|
|
5975
|
-
|
|
5976
|
-
].join("|")),
|
|
5977
|
-
|
|
5996
|
+
...(ve.value ?? []).map(X)
|
|
5997
|
+
].join("|")), Yn = u(() => [
|
|
5998
|
+
ge(),
|
|
5999
|
+
...(Se.value ?? []).map(X),
|
|
6000
|
+
pe()
|
|
6001
|
+
].join("|")), Zn = u(() => (me.value ?? []).map(X).join("|")), Qn = u(() => Jt.value ? v.value.map((e) => `${e.key}:${lt(e)?.groupLabels?.join(">") ?? ""}`).join("|") : "none");
|
|
6002
|
+
it(
|
|
5978
6003
|
() => [
|
|
5979
|
-
|
|
5980
|
-
|
|
5981
|
-
|
|
5982
|
-
|
|
5983
|
-
|
|
5984
|
-
|
|
5985
|
-
|
|
5986
|
-
|
|
5987
|
-
|
|
5988
|
-
|
|
6004
|
+
G.value,
|
|
6005
|
+
ie.value,
|
|
6006
|
+
Kn.value,
|
|
6007
|
+
jn.value,
|
|
6008
|
+
qn.value,
|
|
6009
|
+
Un.value,
|
|
6010
|
+
Xn.value,
|
|
6011
|
+
Yn.value,
|
|
6012
|
+
Zn.value,
|
|
6013
|
+
Qn.value
|
|
5989
6014
|
].join("|"),
|
|
5990
6015
|
() => {
|
|
5991
6016
|
Tt(), Vt();
|
|
5992
6017
|
}
|
|
5993
6018
|
);
|
|
5994
|
-
function
|
|
6019
|
+
function Ga(e) {
|
|
5995
6020
|
const t = a.value;
|
|
5996
6021
|
if (!t)
|
|
5997
6022
|
return e;
|
|
@@ -5999,23 +6024,23 @@ const dd = 6, sd = ".grid-fill-action", He = 14, Le = 8, Vr = 10, Qa = 72, sr =
|
|
|
5999
6024
|
t.querySelectorAll(".grid-body-content > .grid-row")
|
|
6000
6025
|
);
|
|
6001
6026
|
return l.length !== H.value.length ? e : l.map((b) => {
|
|
6002
|
-
const
|
|
6027
|
+
const m = b.getBoundingClientRect();
|
|
6003
6028
|
return {
|
|
6004
|
-
top: t.scrollTop + (
|
|
6005
|
-
height:
|
|
6029
|
+
top: t.scrollTop + (m.top - r.top),
|
|
6030
|
+
height: m.height
|
|
6006
6031
|
};
|
|
6007
6032
|
});
|
|
6008
6033
|
}
|
|
6009
|
-
const
|
|
6034
|
+
const Jn = u(() => {
|
|
6010
6035
|
const e = /* @__PURE__ */ new Map();
|
|
6011
6036
|
return v.value.forEach((t, r) => {
|
|
6012
6037
|
e.set(t.key, r);
|
|
6013
6038
|
}), e;
|
|
6014
|
-
}),
|
|
6039
|
+
}), Wa = u(() => {
|
|
6015
6040
|
let e = null, t = null, r = null, l = null;
|
|
6016
6041
|
for (let b = 0; b < H.value.length; b += 1)
|
|
6017
|
-
for (let
|
|
6018
|
-
ze(b,
|
|
6042
|
+
for (let m = 0; m < v.value.length; m += 1)
|
|
6043
|
+
ze(b, m) && (e ??= b, t = b, r = r == null ? m : Math.min(r, m), l = l == null ? m : Math.max(l, m));
|
|
6019
6044
|
return e == null || t == null || r == null || l == null ? null : {
|
|
6020
6045
|
startRowOffset: e,
|
|
6021
6046
|
endRowOffset: t,
|
|
@@ -6025,8 +6050,8 @@ const dd = 6, sd = ".grid-fill-action", He = 14, Le = 8, Vr = 10, Qa = 72, sr =
|
|
|
6025
6050
|
}), tr = u(() => {
|
|
6026
6051
|
let e = null, t = null, r = null, l = null;
|
|
6027
6052
|
for (let b = 0; b < H.value.length; b += 1)
|
|
6028
|
-
for (let
|
|
6029
|
-
Pe(b,
|
|
6053
|
+
for (let m = 0; m < v.value.length; m += 1)
|
|
6054
|
+
Pe(b, m) && (e ??= b, t = b, r = r == null ? m : Math.min(r, m), l = l == null ? m : Math.max(l, m));
|
|
6030
6055
|
return e == null || t == null || r == null || l == null ? null : {
|
|
6031
6056
|
startRowOffset: e,
|
|
6032
6057
|
endRowOffset: t,
|
|
@@ -6034,13 +6059,13 @@ const dd = 6, sd = ".grid-fill-action", He = 14, Le = 8, Vr = 10, Qa = 72, sr =
|
|
|
6034
6059
|
endColumnIndex: l
|
|
6035
6060
|
};
|
|
6036
6061
|
}), Ka = u(() => {
|
|
6037
|
-
const e =
|
|
6062
|
+
const e = Y.value;
|
|
6038
6063
|
return e ? e.startRow === e.endRow && e.startColumn === e.endColumn : !1;
|
|
6039
6064
|
});
|
|
6040
6065
|
function Ue(e) {
|
|
6041
|
-
return
|
|
6066
|
+
return Jn.value.get(e) ?? 0;
|
|
6042
6067
|
}
|
|
6043
|
-
function
|
|
6068
|
+
function ei(e, t, r) {
|
|
6044
6069
|
return {
|
|
6045
6070
|
...p.value.rowStyle(e, Kt(e, t)),
|
|
6046
6071
|
width: `${r}px`,
|
|
@@ -6048,7 +6073,7 @@ const dd = 6, sd = ".grid-fill-action", He = 14, Le = 8, Vr = 10, Qa = 72, sr =
|
|
|
6048
6073
|
maxWidth: `${r}px`
|
|
6049
6074
|
};
|
|
6050
6075
|
}
|
|
6051
|
-
function
|
|
6076
|
+
function ti(e) {
|
|
6052
6077
|
const t = `${e}px`;
|
|
6053
6078
|
return {
|
|
6054
6079
|
width: t,
|
|
@@ -6056,27 +6081,27 @@ const dd = 6, sd = ".grid-fill-action", He = 14, Le = 8, Vr = 10, Qa = 72, sr =
|
|
|
6056
6081
|
maxWidth: t
|
|
6057
6082
|
};
|
|
6058
6083
|
}
|
|
6059
|
-
function
|
|
6084
|
+
function ri(e, t) {
|
|
6060
6085
|
return !e || !t ? !1 : e.startRow === t.startRow && e.endRow === t.endRow && e.startColumn === t.startColumn && e.endColumn === t.endColumn;
|
|
6061
6086
|
}
|
|
6062
6087
|
function ja(e, t) {
|
|
6063
6088
|
if (!e || t.length === 0 || v.value.length === 0)
|
|
6064
6089
|
return null;
|
|
6065
|
-
const r = 0, l = v.value.length - 1, b = Math.max(e.startColumn, r),
|
|
6066
|
-
if (b >
|
|
6090
|
+
const r = 0, l = v.value.length - 1, b = Math.max(e.startColumn, r), m = Math.min(e.endColumn, l);
|
|
6091
|
+
if (b > m)
|
|
6067
6092
|
return null;
|
|
6068
|
-
let M = null,
|
|
6069
|
-
return t.forEach((
|
|
6070
|
-
const Fe = tt(
|
|
6071
|
-
Fe < e.startRow || Fe > e.endRow || (M == null && (M = he),
|
|
6072
|
-
}), M == null ||
|
|
6093
|
+
let M = null, W = null;
|
|
6094
|
+
return t.forEach((ne, he) => {
|
|
6095
|
+
const Fe = tt(ne, he);
|
|
6096
|
+
Fe < e.startRow || Fe > e.endRow || (M == null && (M = he), W = he);
|
|
6097
|
+
}), M == null || W == null ? null : {
|
|
6073
6098
|
startRowOffset: M,
|
|
6074
|
-
endRowOffset:
|
|
6099
|
+
endRowOffset: W,
|
|
6075
6100
|
startColumnIndex: b,
|
|
6076
|
-
endColumnIndex:
|
|
6101
|
+
endColumnIndex: m
|
|
6077
6102
|
};
|
|
6078
6103
|
}
|
|
6079
|
-
function
|
|
6104
|
+
function ai(e) {
|
|
6080
6105
|
return ja(e, H.value);
|
|
6081
6106
|
}
|
|
6082
6107
|
function rr(e) {
|
|
@@ -6100,66 +6125,66 @@ const dd = 6, sd = ".grid-fill-action", He = 14, Le = 8, Vr = 10, Qa = 72, sr =
|
|
|
6100
6125
|
endColumnIndex: Math.max(e.endColumnIndex, t.endColumnIndex)
|
|
6101
6126
|
} : e : t;
|
|
6102
6127
|
}
|
|
6103
|
-
function Rr(e, t, r, l, b,
|
|
6104
|
-
const M = Math.max(0,
|
|
6128
|
+
function Rr(e, t, r, l, b, m) {
|
|
6129
|
+
const M = Math.max(0, m?.topBleed ?? 1), W = Math.max(0, m?.bottomBleed ?? 1), ne = m?.omitLeftBorder ? 0 : Math.max(0, m?.leftBleed ?? 1), he = m?.omitRightBorder ? 0 : Math.max(0, m?.rightBleed ?? 1);
|
|
6105
6130
|
return {
|
|
6106
6131
|
key: e,
|
|
6107
6132
|
style: {
|
|
6108
6133
|
position: "absolute",
|
|
6109
6134
|
top: `${t - M}px`,
|
|
6110
|
-
left: `${r -
|
|
6111
|
-
width: `${Math.max(1, l +
|
|
6112
|
-
height: `${Math.max(1, b + M +
|
|
6113
|
-
border: `${
|
|
6114
|
-
borderLeftWidth:
|
|
6115
|
-
borderRightWidth:
|
|
6116
|
-
borderTopWidth:
|
|
6117
|
-
borderBottomWidth:
|
|
6118
|
-
background:
|
|
6135
|
+
left: `${r - ne}px`,
|
|
6136
|
+
width: `${Math.max(1, l + ne + he)}px`,
|
|
6137
|
+
height: `${Math.max(1, b + M + W)}px`,
|
|
6138
|
+
border: `${m?.hideBorder ? 0 : 2}px ${m?.borderStyle ?? "solid"} ${m?.borderColor ?? "var(--datagrid-selection-overlay-border)"}`,
|
|
6139
|
+
borderLeftWidth: m?.hideBorder || m?.omitLeftBorder ? "0px" : "2px",
|
|
6140
|
+
borderRightWidth: m?.hideBorder || m?.omitRightBorder ? "0px" : "2px",
|
|
6141
|
+
borderTopWidth: m?.hideBorder ? "0px" : "2px",
|
|
6142
|
+
borderBottomWidth: m?.hideBorder ? "0px" : "2px",
|
|
6143
|
+
background: m?.backgroundColor ?? "transparent",
|
|
6119
6144
|
boxSizing: "border-box",
|
|
6120
|
-
borderTopLeftRadius:
|
|
6121
|
-
borderBottomLeftRadius:
|
|
6122
|
-
borderTopRightRadius:
|
|
6123
|
-
borderBottomRightRadius:
|
|
6145
|
+
borderTopLeftRadius: m?.omitLeftBorder ? "0px" : "1px",
|
|
6146
|
+
borderBottomLeftRadius: m?.omitLeftBorder ? "0px" : "1px",
|
|
6147
|
+
borderTopRightRadius: m?.omitRightBorder ? "0px" : "1px",
|
|
6148
|
+
borderBottomRightRadius: m?.omitRightBorder ? "0px" : "1px",
|
|
6124
6149
|
pointerEvents: "none",
|
|
6125
6150
|
zIndex: 6
|
|
6126
6151
|
}
|
|
6127
6152
|
};
|
|
6128
6153
|
}
|
|
6129
|
-
function ue(e, t, r, l, b = Math.max(0,
|
|
6154
|
+
function ue(e, t, r, l, b = Math.max(0, Gt.value)) {
|
|
6130
6155
|
if (!e)
|
|
6131
6156
|
return [];
|
|
6132
|
-
const
|
|
6133
|
-
if (
|
|
6157
|
+
const m = r === "selection" && e.startRowOffset === e.endRowOffset && e.startColumnIndex === e.endColumnIndex;
|
|
6158
|
+
if (m)
|
|
6134
6159
|
return [];
|
|
6135
|
-
const M = e.top <= 0 ? 0 : 1,
|
|
6160
|
+
const M = e.top <= 0 ? 0 : 1, W = b > 0 && e.top + e.height >= b ? 0 : 1;
|
|
6136
6161
|
if (t === "left") {
|
|
6137
|
-
const
|
|
6138
|
-
const De = Ue(
|
|
6162
|
+
const q = ve.value.filter((ft) => {
|
|
6163
|
+
const De = Ue(ft.key);
|
|
6139
6164
|
return De >= e.startColumnIndex && De <= e.endColumnIndex;
|
|
6140
6165
|
});
|
|
6141
|
-
if (
|
|
6166
|
+
if (q.length === 0)
|
|
6142
6167
|
return [];
|
|
6143
|
-
let
|
|
6144
|
-
for (const
|
|
6145
|
-
if (
|
|
6168
|
+
let se = Ce.value;
|
|
6169
|
+
for (const ft of ve.value) {
|
|
6170
|
+
if (ft.key === q[0]?.key)
|
|
6146
6171
|
break;
|
|
6147
|
-
|
|
6172
|
+
se += X(ft);
|
|
6148
6173
|
}
|
|
6149
|
-
const Ut =
|
|
6174
|
+
const Ut = q.reduce((ft, De) => ft + X(De), 0), $r = Ue(q[q.length - 1]?.key ?? ""), nr = G.value, ir = se <= 0 ? 0 : 1, Lr = nr > 0 && se + Ut >= nr ? 0 : 1;
|
|
6150
6175
|
return [
|
|
6151
6176
|
Rr(
|
|
6152
6177
|
`${r}-left-${e.startRowOffset}-${e.endRowOffset}`,
|
|
6153
6178
|
e.top,
|
|
6154
|
-
|
|
6179
|
+
se,
|
|
6155
6180
|
Ut,
|
|
6156
6181
|
e.height,
|
|
6157
6182
|
{
|
|
6158
|
-
hideBorder:
|
|
6183
|
+
hideBorder: m,
|
|
6159
6184
|
omitRightBorder: e.endColumnIndex > $r,
|
|
6160
6185
|
topBleed: M,
|
|
6161
|
-
bottomBleed:
|
|
6162
|
-
leftBleed:
|
|
6186
|
+
bottomBleed: W,
|
|
6187
|
+
leftBleed: ir,
|
|
6163
6188
|
rightBleed: Lr,
|
|
6164
6189
|
borderColor: l?.borderColor,
|
|
6165
6190
|
backgroundColor: l?.backgroundColor,
|
|
@@ -6169,37 +6194,37 @@ const dd = 6, sd = ".grid-fill-action", He = 14, Le = 8, Vr = 10, Qa = 72, sr =
|
|
|
6169
6194
|
];
|
|
6170
6195
|
}
|
|
6171
6196
|
if (t === "center") {
|
|
6172
|
-
const
|
|
6197
|
+
const q = Se.value.filter((De) => {
|
|
6173
6198
|
const or = Ue(De.key);
|
|
6174
6199
|
return or >= e.startColumnIndex && or <= e.endColumnIndex;
|
|
6175
6200
|
});
|
|
6176
|
-
if (
|
|
6201
|
+
if (q.length === 0)
|
|
6177
6202
|
return [];
|
|
6178
|
-
let
|
|
6203
|
+
let se = ge();
|
|
6179
6204
|
for (const De of Se.value) {
|
|
6180
|
-
if (De.key ===
|
|
6205
|
+
if (De.key === q[0]?.key)
|
|
6181
6206
|
break;
|
|
6182
|
-
|
|
6207
|
+
se += X(De);
|
|
6183
6208
|
}
|
|
6184
|
-
const Ut =
|
|
6209
|
+
const Ut = q.reduce((De, or) => De + X(or), 0), $r = Ue(q[0]?.key ?? ""), nr = Ue(q[q.length - 1]?.key ?? ""), ir = Math.max(
|
|
6185
6210
|
0,
|
|
6186
6211
|
xe(D.value.gridContentStyle.width ?? D.value.gridContentStyle.minWidth, 0)
|
|
6187
|
-
), Lr =
|
|
6212
|
+
), Lr = se <= 0 ? 0 : 1, ft = ir > 0 && se + Ut >= ir ? 0 : 1;
|
|
6188
6213
|
return [
|
|
6189
6214
|
Rr(
|
|
6190
6215
|
`${r}-center-${e.startRowOffset}-${e.endRowOffset}`,
|
|
6191
6216
|
e.top,
|
|
6192
|
-
|
|
6217
|
+
se,
|
|
6193
6218
|
Ut,
|
|
6194
6219
|
e.height,
|
|
6195
6220
|
{
|
|
6196
|
-
hideBorder:
|
|
6221
|
+
hideBorder: m,
|
|
6197
6222
|
omitLeftBorder: e.startColumnIndex < $r,
|
|
6198
|
-
omitRightBorder: e.endColumnIndex >
|
|
6223
|
+
omitRightBorder: e.endColumnIndex > nr,
|
|
6199
6224
|
topBleed: M,
|
|
6200
|
-
bottomBleed:
|
|
6225
|
+
bottomBleed: W,
|
|
6201
6226
|
leftBleed: Lr,
|
|
6202
|
-
rightBleed:
|
|
6227
|
+
rightBleed: ft,
|
|
6203
6228
|
borderColor: l?.borderColor,
|
|
6204
6229
|
backgroundColor: l?.backgroundColor,
|
|
6205
6230
|
borderStyle: l?.borderStyle
|
|
@@ -6207,19 +6232,19 @@ const dd = 6, sd = ".grid-fill-action", He = 14, Le = 8, Vr = 10, Qa = 72, sr =
|
|
|
6207
6232
|
)
|
|
6208
6233
|
];
|
|
6209
6234
|
}
|
|
6210
|
-
const
|
|
6211
|
-
const
|
|
6212
|
-
return
|
|
6235
|
+
const ne = me.value.filter((q) => {
|
|
6236
|
+
const se = Ue(q.key);
|
|
6237
|
+
return se >= e.startColumnIndex && se <= e.endColumnIndex;
|
|
6213
6238
|
});
|
|
6214
|
-
if (
|
|
6239
|
+
if (ne.length === 0)
|
|
6215
6240
|
return [];
|
|
6216
6241
|
let he = 0;
|
|
6217
|
-
for (const
|
|
6218
|
-
if (
|
|
6242
|
+
for (const q of me.value) {
|
|
6243
|
+
if (q.key === ne[0]?.key)
|
|
6219
6244
|
break;
|
|
6220
|
-
he +=
|
|
6245
|
+
he += X(q);
|
|
6221
6246
|
}
|
|
6222
|
-
const Fe =
|
|
6247
|
+
const Fe = ne.reduce((q, se) => q + X(se), 0), bt = Ue(ne[0]?.key ?? ""), $e = ie.value, de = he <= 0 ? 0 : 1, be = $e > 0 && he + Fe >= $e ? 0 : 1;
|
|
6223
6248
|
return [
|
|
6224
6249
|
Rr(
|
|
6225
6250
|
`${r}-right-${e.startRowOffset}-${e.endRowOffset}`,
|
|
@@ -6228,11 +6253,11 @@ const dd = 6, sd = ".grid-fill-action", He = 14, Le = 8, Vr = 10, Qa = 72, sr =
|
|
|
6228
6253
|
Fe,
|
|
6229
6254
|
e.height,
|
|
6230
6255
|
{
|
|
6231
|
-
hideBorder:
|
|
6232
|
-
omitLeftBorder: e.startColumnIndex <
|
|
6256
|
+
hideBorder: m,
|
|
6257
|
+
omitLeftBorder: e.startColumnIndex < bt,
|
|
6233
6258
|
topBleed: M,
|
|
6234
|
-
bottomBleed:
|
|
6235
|
-
leftBleed:
|
|
6259
|
+
bottomBleed: W,
|
|
6260
|
+
leftBleed: de,
|
|
6236
6261
|
rightBleed: be,
|
|
6237
6262
|
borderColor: l?.borderColor,
|
|
6238
6263
|
backgroundColor: l?.backgroundColor,
|
|
@@ -6241,69 +6266,69 @@ const dd = 6, sd = ".grid-fill-action", He = 14, Le = 8, Vr = 10, Qa = 72, sr =
|
|
|
6241
6266
|
)
|
|
6242
6267
|
];
|
|
6243
6268
|
}
|
|
6244
|
-
const qa = u(() => !x.value.isRangeMoving || !x.value.rangeMovePreviewRange ||
|
|
6245
|
-
rr(
|
|
6269
|
+
const qa = u(() => !x.value.isRangeMoving || !x.value.rangeMovePreviewRange || ri(x.value.rangeMovePreviewRange, Y.value) ? null : x.value.rangeMovePreviewRange), ni = u(() => tr.value ? Na(Wa.value, tr.value) : null), Mr = u(() => tr.value ? null : Ht(Wa.value)), Ar = u(() => Ht(ni.value)), Ir = u(() => Ht(ai(qa.value))), Er = u(() => tr.value ? null : Ht(
|
|
6270
|
+
rr(Y.value),
|
|
6246
6271
|
Dt.value
|
|
6247
6272
|
)), Br = u(() => Ht(
|
|
6248
6273
|
Na(
|
|
6249
|
-
rr(
|
|
6274
|
+
rr(Y.value),
|
|
6250
6275
|
rr(x.value.fillPreviewRange)
|
|
6251
6276
|
),
|
|
6252
6277
|
Dt.value
|
|
6253
6278
|
)), Fr = u(() => Ht(
|
|
6254
6279
|
rr(qa.value),
|
|
6255
6280
|
Dt.value
|
|
6256
|
-
)),
|
|
6281
|
+
)), ii = u(() => ue(Mr.value, "left", "selection", {
|
|
6257
6282
|
borderColor: "var(--datagrid-selection-overlay-border)"
|
|
6258
|
-
})),
|
|
6283
|
+
})), oi = u(() => ue(Mr.value, "center", "selection", {
|
|
6259
6284
|
borderColor: "var(--datagrid-selection-overlay-border)"
|
|
6260
|
-
})),
|
|
6285
|
+
})), li = u(() => ue(Mr.value, "right", "selection", {
|
|
6261
6286
|
borderColor: "var(--datagrid-selection-overlay-border)"
|
|
6262
|
-
})),
|
|
6287
|
+
})), di = u(() => ue(Er.value, "left", "selection", {
|
|
6263
6288
|
borderColor: "var(--datagrid-selection-overlay-border)"
|
|
6264
|
-
}, c.value?.clientHeight ?? 0)),
|
|
6289
|
+
}, c.value?.clientHeight ?? 0)), si = u(() => ue(Er.value, "center", "selection", {
|
|
6265
6290
|
borderColor: "var(--datagrid-selection-overlay-border)"
|
|
6266
|
-
}, c.value?.clientHeight ?? 0)),
|
|
6291
|
+
}, c.value?.clientHeight ?? 0)), ui = u(() => ue(Er.value, "right", "selection", {
|
|
6267
6292
|
borderColor: "var(--datagrid-selection-overlay-border)"
|
|
6268
|
-
}, c.value?.clientHeight ?? 0)),
|
|
6293
|
+
}, c.value?.clientHeight ?? 0)), ci = u(() => ue(Ar.value, "left", "fill-preview", {
|
|
6269
6294
|
borderColor: "var(--datagrid-selection-overlay-fill-border)",
|
|
6270
6295
|
backgroundColor: "var(--datagrid-selection-overlay-fill-bg)"
|
|
6271
|
-
})),
|
|
6296
|
+
})), gi = u(() => ue(Ar.value, "center", "fill-preview", {
|
|
6272
6297
|
borderColor: "var(--datagrid-selection-overlay-fill-border)",
|
|
6273
6298
|
backgroundColor: "var(--datagrid-selection-overlay-fill-bg)"
|
|
6274
|
-
})),
|
|
6299
|
+
})), pi = u(() => ue(Ar.value, "right", "fill-preview", {
|
|
6275
6300
|
borderColor: "var(--datagrid-selection-overlay-fill-border)",
|
|
6276
6301
|
backgroundColor: "var(--datagrid-selection-overlay-fill-bg)"
|
|
6277
|
-
})),
|
|
6302
|
+
})), vi = u(() => ue(Br.value, "left", "fill-preview", {
|
|
6278
6303
|
borderColor: "var(--datagrid-selection-overlay-fill-border)",
|
|
6279
6304
|
backgroundColor: "var(--datagrid-selection-overlay-fill-bg)"
|
|
6280
|
-
}, c.value?.clientHeight ?? 0)),
|
|
6305
|
+
}, c.value?.clientHeight ?? 0)), mi = u(() => ue(Br.value, "center", "fill-preview", {
|
|
6281
6306
|
borderColor: "var(--datagrid-selection-overlay-fill-border)",
|
|
6282
6307
|
backgroundColor: "var(--datagrid-selection-overlay-fill-bg)"
|
|
6283
|
-
}, c.value?.clientHeight ?? 0)),
|
|
6308
|
+
}, c.value?.clientHeight ?? 0)), hi = u(() => ue(Br.value, "right", "fill-preview", {
|
|
6284
6309
|
borderColor: "var(--datagrid-selection-overlay-fill-border)",
|
|
6285
6310
|
backgroundColor: "var(--datagrid-selection-overlay-fill-bg)"
|
|
6286
|
-
}, c.value?.clientHeight ?? 0)),
|
|
6311
|
+
}, c.value?.clientHeight ?? 0)), bi = u(() => ue(Ir.value, "left", "move-preview", {
|
|
6287
6312
|
borderColor: "var(--datagrid-selection-overlay-move-border)",
|
|
6288
6313
|
backgroundColor: "var(--datagrid-selection-overlay-move-bg)",
|
|
6289
6314
|
borderStyle: "dashed"
|
|
6290
|
-
})),
|
|
6315
|
+
})), fi = u(() => ue(Ir.value, "center", "move-preview", {
|
|
6291
6316
|
borderColor: "var(--datagrid-selection-overlay-move-border)",
|
|
6292
6317
|
backgroundColor: "var(--datagrid-selection-overlay-move-bg)",
|
|
6293
6318
|
borderStyle: "dashed"
|
|
6294
|
-
})),
|
|
6319
|
+
})), yi = u(() => ue(Ir.value, "right", "move-preview", {
|
|
6295
6320
|
borderColor: "var(--datagrid-selection-overlay-move-border)",
|
|
6296
6321
|
backgroundColor: "var(--datagrid-selection-overlay-move-bg)",
|
|
6297
6322
|
borderStyle: "dashed"
|
|
6298
|
-
})),
|
|
6323
|
+
})), xi = u(() => ue(Fr.value, "left", "move-preview", {
|
|
6299
6324
|
borderColor: "var(--datagrid-selection-overlay-move-border)",
|
|
6300
6325
|
backgroundColor: "var(--datagrid-selection-overlay-move-bg)",
|
|
6301
6326
|
borderStyle: "dashed"
|
|
6302
|
-
}, c.value?.clientHeight ?? 0)),
|
|
6327
|
+
}, c.value?.clientHeight ?? 0)), wi = u(() => ue(Fr.value, "center", "move-preview", {
|
|
6303
6328
|
borderColor: "var(--datagrid-selection-overlay-move-border)",
|
|
6304
6329
|
backgroundColor: "var(--datagrid-selection-overlay-move-bg)",
|
|
6305
6330
|
borderStyle: "dashed"
|
|
6306
|
-
}, c.value?.clientHeight ?? 0)),
|
|
6331
|
+
}, c.value?.clientHeight ?? 0)), ki = u(() => ue(Fr.value, "right", "move-preview", {
|
|
6307
6332
|
borderColor: "var(--datagrid-selection-overlay-move-border)",
|
|
6308
6333
|
backgroundColor: "var(--datagrid-selection-overlay-move-bg)",
|
|
6309
6334
|
borderStyle: "dashed"
|
|
@@ -6312,37 +6337,37 @@ const dd = 6, sd = ".grid-fill-action", He = 14, Le = 8, Vr = 10, Qa = 72, sr =
|
|
|
6312
6337
|
absoluteRowIndex: tt,
|
|
6313
6338
|
viewportRowOffset: Kt,
|
|
6314
6339
|
rowStateClasses: Ra,
|
|
6315
|
-
paneRowStyle:
|
|
6340
|
+
paneRowStyle: ei,
|
|
6316
6341
|
handleRowContainerClick: Sa,
|
|
6317
6342
|
setHoveredRow: ta,
|
|
6318
|
-
isFullRowSelectionSafe:
|
|
6343
|
+
isFullRowSelectionSafe: vn,
|
|
6319
6344
|
get rowIndexColumnStyle() {
|
|
6320
6345
|
return Ve.value;
|
|
6321
6346
|
},
|
|
6322
|
-
rowIndexCellStyle:
|
|
6323
|
-
rowIndexTabIndex:
|
|
6324
|
-
handleRowIndexClickSafe:
|
|
6325
|
-
handleRowIndexKeydown:
|
|
6326
|
-
builtInCellClasses:
|
|
6347
|
+
rowIndexCellStyle: Et,
|
|
6348
|
+
rowIndexTabIndex: st,
|
|
6349
|
+
handleRowIndexClickSafe: gn,
|
|
6350
|
+
handleRowIndexKeydown: pn,
|
|
6351
|
+
builtInCellClasses: na,
|
|
6327
6352
|
cellStateClasses: Xa,
|
|
6328
6353
|
resolveCellCustomClass: Ze,
|
|
6329
6354
|
columnStyle: ye,
|
|
6330
6355
|
bodyCellPresentationStyle: Te,
|
|
6331
|
-
bodyCellSelectionStyle:
|
|
6356
|
+
bodyCellSelectionStyle: It,
|
|
6332
6357
|
resolveCellCustomStyle: Be,
|
|
6333
6358
|
columnIndexByKey: Ue,
|
|
6334
6359
|
cellTabIndex: Ae,
|
|
6335
|
-
checkboxCellRole:
|
|
6360
|
+
checkboxCellRole: ia,
|
|
6336
6361
|
checkboxCellAriaChecked: oa,
|
|
6337
6362
|
handleCellMouseDown: k,
|
|
6338
6363
|
handleBodyCellClick: Aa,
|
|
6339
6364
|
handleCellMouseMove: Ma,
|
|
6340
|
-
clearRangeMoveHandleHover:
|
|
6341
|
-
handleCellKeydown:
|
|
6365
|
+
clearRangeMoveHandleHover: Wt,
|
|
6366
|
+
handleCellKeydown: N,
|
|
6342
6367
|
startInlineEditIfAllowed: Qe,
|
|
6343
|
-
isCellEditableSafe:
|
|
6344
|
-
isFillHandleCellSafe:
|
|
6345
|
-
isEditingCellSafe:
|
|
6368
|
+
isCellEditableSafe: ce,
|
|
6369
|
+
isFillHandleCellSafe: ct,
|
|
6370
|
+
isEditingCellSafe: Ie,
|
|
6346
6371
|
handleFillHandleMouseDown: ke,
|
|
6347
6372
|
handleFillHandleDoubleClick: kt,
|
|
6348
6373
|
isSelectEditorCell: ba,
|
|
@@ -6362,39 +6387,40 @@ const dd = 6, sd = ".grid-fill-action", He = 14, Le = 8, Vr = 10, Qa = 72, sr =
|
|
|
6362
6387
|
shouldRenderCheckboxCell: jt,
|
|
6363
6388
|
checkboxIndicatorClass: la,
|
|
6364
6389
|
checkboxIndicatorMarkClass: da,
|
|
6365
|
-
readResolvedDisplayCell:
|
|
6390
|
+
readResolvedDisplayCell: xr,
|
|
6391
|
+
renderResolvedCellContent: ma
|
|
6366
6392
|
}, Ua = {
|
|
6367
|
-
handleCenterViewportScroll:
|
|
6393
|
+
handleCenterViewportScroll: zn,
|
|
6368
6394
|
handleBodyViewportWheel: Da,
|
|
6369
6395
|
absoluteRowIndex: tt,
|
|
6370
6396
|
viewportRowOffset: Kt,
|
|
6371
6397
|
handleViewportKeydown(e) {
|
|
6372
|
-
|
|
6398
|
+
F.value.handleViewportKeydown(e);
|
|
6373
6399
|
},
|
|
6374
6400
|
rowStateClasses: Ra,
|
|
6375
6401
|
handleRowContainerClick: Sa,
|
|
6376
6402
|
setHoveredRow: ta,
|
|
6377
|
-
spacerStyle:
|
|
6378
|
-
builtInCellClasses:
|
|
6403
|
+
spacerStyle: ti,
|
|
6404
|
+
builtInCellClasses: na,
|
|
6379
6405
|
cellStateClasses: Xa,
|
|
6380
6406
|
resolveCellCustomClass: Ze,
|
|
6381
6407
|
columnStyle: ye,
|
|
6382
6408
|
bodyCellPresentationStyle: Te,
|
|
6383
|
-
bodyCellSelectionStyle:
|
|
6409
|
+
bodyCellSelectionStyle: It,
|
|
6384
6410
|
resolveCellCustomStyle: Be,
|
|
6385
6411
|
columnIndexByKey: Ue,
|
|
6386
6412
|
cellTabIndex: Ae,
|
|
6387
|
-
checkboxCellRole:
|
|
6413
|
+
checkboxCellRole: ia,
|
|
6388
6414
|
checkboxCellAriaChecked: oa,
|
|
6389
6415
|
handleCellMouseDown: k,
|
|
6390
6416
|
handleBodyCellClick: Aa,
|
|
6391
6417
|
handleCellMouseMove: Ma,
|
|
6392
|
-
clearRangeMoveHandleHover:
|
|
6393
|
-
handleCellKeydown:
|
|
6418
|
+
clearRangeMoveHandleHover: Wt,
|
|
6419
|
+
handleCellKeydown: N,
|
|
6394
6420
|
startInlineEditIfAllowed: Qe,
|
|
6395
|
-
isCellEditableSafe:
|
|
6396
|
-
isFillHandleCellSafe:
|
|
6397
|
-
isEditingCellSafe:
|
|
6421
|
+
isCellEditableSafe: ce,
|
|
6422
|
+
isFillHandleCellSafe: ct,
|
|
6423
|
+
isEditingCellSafe: Ie,
|
|
6398
6424
|
handleFillHandleMouseDown: ke,
|
|
6399
6425
|
handleFillHandleDoubleClick: kt,
|
|
6400
6426
|
isSelectEditorCell: ba,
|
|
@@ -6414,99 +6440,100 @@ const dd = 6, sd = ".grid-fill-action", He = 14, Le = 8, Vr = 10, Qa = 72, sr =
|
|
|
6414
6440
|
shouldRenderCheckboxCell: jt,
|
|
6415
6441
|
checkboxIndicatorClass: la,
|
|
6416
6442
|
checkboxIndicatorMarkClass: da,
|
|
6417
|
-
readResolvedDisplayCell:
|
|
6418
|
-
|
|
6443
|
+
readResolvedDisplayCell: xr,
|
|
6444
|
+
renderResolvedCellContent: ma
|
|
6445
|
+
}, Ci = u(() => ({
|
|
6419
6446
|
side: "left",
|
|
6420
|
-
width:
|
|
6447
|
+
width: G.value,
|
|
6421
6448
|
style: Ke.value,
|
|
6422
6449
|
contentStyle: {},
|
|
6423
|
-
contentRef:
|
|
6450
|
+
contentRef: Cn,
|
|
6424
6451
|
columns: ve.value,
|
|
6425
|
-
showIndexColumn:
|
|
6452
|
+
showIndexColumn: We.value,
|
|
6426
6453
|
displayRows: H.value,
|
|
6427
|
-
topSpacerHeight:
|
|
6428
|
-
bottomSpacerHeight:
|
|
6429
|
-
selectionOverlaySegments:
|
|
6430
|
-
fillPreviewOverlaySegments:
|
|
6431
|
-
movePreviewOverlaySegments:
|
|
6432
|
-
})),
|
|
6454
|
+
topSpacerHeight: F.value.topSpacerHeight,
|
|
6455
|
+
bottomSpacerHeight: F.value.bottomSpacerHeight,
|
|
6456
|
+
selectionOverlaySegments: ii.value,
|
|
6457
|
+
fillPreviewOverlaySegments: ci.value,
|
|
6458
|
+
movePreviewOverlaySegments: bi.value
|
|
6459
|
+
})), _i = u(() => ({
|
|
6433
6460
|
side: "right",
|
|
6434
|
-
width:
|
|
6435
|
-
style:
|
|
6461
|
+
width: ie.value,
|
|
6462
|
+
style: vt.value,
|
|
6436
6463
|
contentStyle: {},
|
|
6437
|
-
contentRef:
|
|
6464
|
+
contentRef: _n,
|
|
6438
6465
|
columns: me.value,
|
|
6439
6466
|
showIndexColumn: !1,
|
|
6440
6467
|
displayRows: H.value,
|
|
6441
|
-
topSpacerHeight:
|
|
6442
|
-
bottomSpacerHeight:
|
|
6443
|
-
selectionOverlaySegments:
|
|
6444
|
-
fillPreviewOverlaySegments:
|
|
6445
|
-
movePreviewOverlaySegments:
|
|
6446
|
-
})),
|
|
6468
|
+
topSpacerHeight: F.value.topSpacerHeight,
|
|
6469
|
+
bottomSpacerHeight: F.value.bottomSpacerHeight,
|
|
6470
|
+
selectionOverlaySegments: li.value,
|
|
6471
|
+
fillPreviewOverlaySegments: pi.value,
|
|
6472
|
+
movePreviewOverlaySegments: yi.value
|
|
6473
|
+
})), Si = u(() => ({
|
|
6447
6474
|
side: "left",
|
|
6448
|
-
width:
|
|
6475
|
+
width: G.value,
|
|
6449
6476
|
style: Ke.value,
|
|
6450
6477
|
contentStyle: {},
|
|
6451
|
-
contentRef:
|
|
6478
|
+
contentRef: Sn,
|
|
6452
6479
|
columns: ve.value,
|
|
6453
|
-
showIndexColumn:
|
|
6480
|
+
showIndexColumn: We.value,
|
|
6454
6481
|
displayRows: fe.value,
|
|
6455
|
-
selectionOverlaySegments:
|
|
6456
|
-
fillPreviewOverlaySegments:
|
|
6457
|
-
movePreviewOverlaySegments:
|
|
6458
|
-
})),
|
|
6482
|
+
selectionOverlaySegments: di.value,
|
|
6483
|
+
fillPreviewOverlaySegments: vi.value,
|
|
6484
|
+
movePreviewOverlaySegments: xi.value
|
|
6485
|
+
})), Ri = u(() => ({
|
|
6459
6486
|
side: "right",
|
|
6460
|
-
width:
|
|
6461
|
-
style:
|
|
6487
|
+
width: ie.value,
|
|
6488
|
+
style: vt.value,
|
|
6462
6489
|
contentStyle: {},
|
|
6463
|
-
contentRef:
|
|
6490
|
+
contentRef: Rn,
|
|
6464
6491
|
columns: me.value,
|
|
6465
6492
|
showIndexColumn: !1,
|
|
6466
6493
|
displayRows: fe.value,
|
|
6467
|
-
selectionOverlaySegments:
|
|
6468
|
-
fillPreviewOverlaySegments:
|
|
6469
|
-
movePreviewOverlaySegments:
|
|
6494
|
+
selectionOverlaySegments: ui.value,
|
|
6495
|
+
fillPreviewOverlaySegments: hi.value,
|
|
6496
|
+
movePreviewOverlaySegments: ki.value
|
|
6470
6497
|
}));
|
|
6471
6498
|
function Xa(e, t, r) {
|
|
6472
|
-
const l = v.value[r]?.key ?? "", b =
|
|
6499
|
+
const l = v.value[r]?.key ?? "", b = Q(t, r);
|
|
6473
6500
|
return {
|
|
6474
6501
|
"grid-cell--selected": !b && re(t, r),
|
|
6475
6502
|
"grid-cell--selection-anchor": b,
|
|
6476
|
-
"grid-cell--range-move-handle-hover":
|
|
6503
|
+
"grid-cell--range-move-handle-hover": bn(t, r),
|
|
6477
6504
|
"grid-cell--fill-preview": Pe(t, r),
|
|
6478
6505
|
"grid-cell--clipboard-pending": V(t, r),
|
|
6479
|
-
"grid-cell--clipboard-pending-top":
|
|
6480
|
-
"grid-cell--clipboard-pending-right":
|
|
6481
|
-
"grid-cell--clipboard-pending-bottom":
|
|
6482
|
-
"grid-cell--clipboard-pending-left":
|
|
6483
|
-
"grid-cell--editing":
|
|
6506
|
+
"grid-cell--clipboard-pending-top": Ge(t, r, "top"),
|
|
6507
|
+
"grid-cell--clipboard-pending-right": Ge(t, r, "right"),
|
|
6508
|
+
"grid-cell--clipboard-pending-bottom": Ge(t, r, "bottom"),
|
|
6509
|
+
"grid-cell--clipboard-pending-left": Ge(t, r, "left"),
|
|
6510
|
+
"grid-cell--editing": Ie(e, l)
|
|
6484
6511
|
};
|
|
6485
6512
|
}
|
|
6486
6513
|
return ee({
|
|
6487
6514
|
getStageRootElement: () => o.value,
|
|
6488
6515
|
getHeaderElement: () => Qt(),
|
|
6489
6516
|
getBodyViewportElement: () => a.value,
|
|
6490
|
-
getVisibleRowMetrics: () =>
|
|
6517
|
+
getVisibleRowMetrics: () => Ga(qt.value)
|
|
6491
6518
|
}), (e, t) => (s(), g("section", {
|
|
6492
6519
|
ref_key: "stageRootEl",
|
|
6493
6520
|
ref: o,
|
|
6494
6521
|
class: j(["grid-stage", {
|
|
6495
6522
|
"grid-stage--canvas-chrome": !0,
|
|
6496
6523
|
"grid-stage--auto-row-height": d(_) === "base" && d(K) === "auto",
|
|
6497
|
-
"grid-stage--fill-dragging":
|
|
6498
|
-
"grid-stage--range-moving":
|
|
6524
|
+
"grid-stage--fill-dragging": Z.value,
|
|
6525
|
+
"grid-stage--range-moving": gt.value,
|
|
6499
6526
|
"grid-stage--single-cell-selection": Ka.value
|
|
6500
6527
|
}])
|
|
6501
6528
|
}, [
|
|
6502
|
-
_e(
|
|
6503
|
-
"pane-layout-style":
|
|
6529
|
+
_e(Kl, {
|
|
6530
|
+
"pane-layout-style": pt.value,
|
|
6504
6531
|
"left-pane-style": Ke.value,
|
|
6505
|
-
"right-pane-style":
|
|
6506
|
-
"left-track-style":
|
|
6507
|
-
"right-track-style":
|
|
6532
|
+
"right-pane-style": vt.value,
|
|
6533
|
+
"left-track-style": Dn.value,
|
|
6534
|
+
"right-track-style": Hn.value,
|
|
6508
6535
|
"row-index-column-style": Ve.value,
|
|
6509
|
-
"show-index-column":
|
|
6536
|
+
"show-index-column": We.value,
|
|
6510
6537
|
"on-linked-viewport-wheel": Va
|
|
6511
6538
|
}, {
|
|
6512
6539
|
"center-chrome": ae(() => [
|
|
@@ -6514,14 +6541,14 @@ const dd = 6, sd = ".grid-fill-action", He = 14, Le = 8, Vr = 10, Qa = 72, sr =
|
|
|
6514
6541
|
ref_key: "centerHeaderChromeCanvasEl",
|
|
6515
6542
|
ref: Kr,
|
|
6516
6543
|
class: "grid-chrome-canvas grid-chrome-canvas--header-center",
|
|
6517
|
-
style:
|
|
6544
|
+
style: E(Bt.value),
|
|
6518
6545
|
"aria-hidden": "true"
|
|
6519
6546
|
}, null, 4)
|
|
6520
6547
|
]),
|
|
6521
6548
|
"left-chrome": ae(() => [
|
|
6522
6549
|
f("canvas", {
|
|
6523
6550
|
ref_key: "leftHeaderChromeCanvasEl",
|
|
6524
|
-
ref:
|
|
6551
|
+
ref: Wr,
|
|
6525
6552
|
class: "grid-chrome-canvas",
|
|
6526
6553
|
"aria-hidden": "true"
|
|
6527
6554
|
}, null, 512)
|
|
@@ -6540,20 +6567,20 @@ const dd = 6, sd = ".grid-fill-action", He = 14, Le = 8, Vr = 10, Qa = 72, sr =
|
|
|
6540
6567
|
ref_key: "bodyShellRef",
|
|
6541
6568
|
ref: T,
|
|
6542
6569
|
class: "grid-body-shell",
|
|
6543
|
-
style:
|
|
6570
|
+
style: E(pt.value),
|
|
6544
6571
|
onMouseleave: ea
|
|
6545
6572
|
}, [
|
|
6546
6573
|
f("canvas", {
|
|
6547
6574
|
ref_key: "centerChromeCanvasEl",
|
|
6548
6575
|
ref: qr,
|
|
6549
6576
|
class: "grid-chrome-canvas grid-chrome-canvas--center-shell",
|
|
6550
|
-
style:
|
|
6577
|
+
style: E(h.value),
|
|
6551
6578
|
"aria-hidden": "true"
|
|
6552
6579
|
}, null, 4),
|
|
6553
6580
|
_e(dr, {
|
|
6554
|
-
pane:
|
|
6581
|
+
pane: Ci.value,
|
|
6555
6582
|
"render-api": ar,
|
|
6556
|
-
"handle-context-menu":
|
|
6583
|
+
"handle-context-menu": n.onViewportContextMenu
|
|
6557
6584
|
}, {
|
|
6558
6585
|
chrome: ae(() => [
|
|
6559
6586
|
f("canvas", {
|
|
@@ -6567,19 +6594,19 @@ const dd = 6, sd = ".grid-fill-action", He = 14, Le = 8, Vr = 10, Qa = 72, sr =
|
|
|
6567
6594
|
}, 8, ["pane", "handle-context-menu"]),
|
|
6568
6595
|
_e(Ya, {
|
|
6569
6596
|
"display-rows": d(p).displayRows,
|
|
6570
|
-
"top-spacer-height": d(
|
|
6571
|
-
"bottom-spacer-height": d(
|
|
6572
|
-
"viewport-ref":
|
|
6573
|
-
"handle-context-menu":
|
|
6574
|
-
"selection-overlay-segments":
|
|
6575
|
-
"fill-preview-overlay-segments":
|
|
6576
|
-
"move-preview-overlay-segments":
|
|
6597
|
+
"top-spacer-height": d(F).topSpacerHeight,
|
|
6598
|
+
"bottom-spacer-height": d(F).bottomSpacerHeight,
|
|
6599
|
+
"viewport-ref": wn,
|
|
6600
|
+
"handle-context-menu": n.onViewportContextMenu,
|
|
6601
|
+
"selection-overlay-segments": oi.value,
|
|
6602
|
+
"fill-preview-overlay-segments": gi.value,
|
|
6603
|
+
"move-preview-overlay-segments": fi.value,
|
|
6577
6604
|
"render-api": Ua
|
|
6578
6605
|
}, null, 8, ["display-rows", "top-spacer-height", "bottom-spacer-height", "handle-context-menu", "selection-overlay-segments", "fill-preview-overlay-segments", "move-preview-overlay-segments"]),
|
|
6579
6606
|
_e(dr, {
|
|
6580
|
-
pane:
|
|
6607
|
+
pane: _i.value,
|
|
6581
6608
|
"render-api": ar,
|
|
6582
|
-
"handle-context-menu":
|
|
6609
|
+
"handle-context-menu": n.onViewportContextMenu
|
|
6583
6610
|
}, {
|
|
6584
6611
|
chrome: ae(() => [
|
|
6585
6612
|
f("canvas", {
|
|
@@ -6591,30 +6618,30 @@ const dd = 6, sd = ".grid-fill-action", He = 14, Le = 8, Vr = 10, Qa = 72, sr =
|
|
|
6591
6618
|
]),
|
|
6592
6619
|
_: 1
|
|
6593
6620
|
}, 8, ["pane", "handle-context-menu"]),
|
|
6594
|
-
_e(
|
|
6621
|
+
_e(rd, {
|
|
6595
6622
|
"is-open": je.value,
|
|
6596
|
-
style:
|
|
6597
|
-
onToggle:
|
|
6623
|
+
style: E(Pa.value),
|
|
6624
|
+
onToggle: ut,
|
|
6598
6625
|
onSelected: Ct
|
|
6599
6626
|
}, null, 8, ["is-open", "style"])
|
|
6600
6627
|
], 36),
|
|
6601
6628
|
d(p).pinnedBottomRows.length > 0 ? (s(), g("div", {
|
|
6602
6629
|
key: 0,
|
|
6603
6630
|
class: "grid-body-shell grid-body-shell--pinned-bottom",
|
|
6604
|
-
style:
|
|
6631
|
+
style: E(pt.value),
|
|
6605
6632
|
onMouseleave: ea
|
|
6606
6633
|
}, [
|
|
6607
6634
|
f("canvas", {
|
|
6608
6635
|
ref_key: "centerBottomChromeCanvasEl",
|
|
6609
6636
|
ref: Yr,
|
|
6610
6637
|
class: "grid-chrome-canvas grid-chrome-canvas--center-shell",
|
|
6611
|
-
style:
|
|
6638
|
+
style: E(i.value),
|
|
6612
6639
|
"aria-hidden": "true"
|
|
6613
6640
|
}, null, 4),
|
|
6614
6641
|
_e(dr, {
|
|
6615
|
-
pane:
|
|
6642
|
+
pane: Si.value,
|
|
6616
6643
|
"render-api": ar,
|
|
6617
|
-
"handle-context-menu":
|
|
6644
|
+
"handle-context-menu": n.onViewportContextMenu
|
|
6618
6645
|
}, {
|
|
6619
6646
|
chrome: ae(() => [
|
|
6620
6647
|
f("canvas", {
|
|
@@ -6629,20 +6656,20 @@ const dd = 6, sd = ".grid-fill-action", He = 14, Le = 8, Vr = 10, Qa = 72, sr =
|
|
|
6629
6656
|
_e(Ya, {
|
|
6630
6657
|
"display-rows": d(p).pinnedBottomRows,
|
|
6631
6658
|
"viewport-class": "grid-body-viewport grid-body-viewport--pinned-bottom",
|
|
6632
|
-
"viewport-ref":
|
|
6633
|
-
"handle-scroll":
|
|
6659
|
+
"viewport-ref": kn,
|
|
6660
|
+
"handle-scroll": Pn,
|
|
6634
6661
|
"handle-wheel": Da,
|
|
6635
|
-
"handle-keydown":
|
|
6636
|
-
"handle-context-menu":
|
|
6637
|
-
"selection-overlay-segments":
|
|
6638
|
-
"fill-preview-overlay-segments":
|
|
6639
|
-
"move-preview-overlay-segments":
|
|
6662
|
+
"handle-keydown": Vn,
|
|
6663
|
+
"handle-context-menu": n.onViewportContextMenu,
|
|
6664
|
+
"selection-overlay-segments": si.value,
|
|
6665
|
+
"fill-preview-overlay-segments": mi.value,
|
|
6666
|
+
"move-preview-overlay-segments": wi.value,
|
|
6640
6667
|
"render-api": Ua
|
|
6641
6668
|
}, null, 8, ["display-rows", "handle-context-menu", "selection-overlay-segments", "fill-preview-overlay-segments", "move-preview-overlay-segments"]),
|
|
6642
6669
|
_e(dr, {
|
|
6643
|
-
pane:
|
|
6670
|
+
pane: Ri.value,
|
|
6644
6671
|
"render-api": ar,
|
|
6645
|
-
"handle-context-menu":
|
|
6672
|
+
"handle-context-menu": n.onViewportContextMenu
|
|
6646
6673
|
}, {
|
|
6647
6674
|
chrome: ae(() => [
|
|
6648
6675
|
f("canvas", {
|
|
@@ -6659,23 +6686,23 @@ const dd = 6, sd = ".grid-fill-action", He = 14, Le = 8, Vr = 10, Qa = 72, sr =
|
|
|
6659
6686
|
}
|
|
6660
6687
|
});
|
|
6661
6688
|
export {
|
|
6662
|
-
|
|
6663
|
-
|
|
6664
|
-
|
|
6665
|
-
|
|
6666
|
-
|
|
6689
|
+
kd as _,
|
|
6690
|
+
Fo as a,
|
|
6691
|
+
an as b,
|
|
6692
|
+
Bo as c,
|
|
6693
|
+
tn as d,
|
|
6667
6694
|
Dr as e,
|
|
6668
|
-
|
|
6669
|
-
|
|
6670
|
-
|
|
6695
|
+
nn as f,
|
|
6696
|
+
wd as g,
|
|
6697
|
+
rn as h,
|
|
6671
6698
|
Hr as i,
|
|
6672
|
-
|
|
6673
|
-
|
|
6699
|
+
yd as j,
|
|
6700
|
+
Gr as k,
|
|
6674
6701
|
yt as l,
|
|
6675
|
-
|
|
6702
|
+
Lo as m,
|
|
6676
6703
|
Or as n,
|
|
6677
|
-
|
|
6678
|
-
|
|
6679
|
-
|
|
6680
|
-
|
|
6704
|
+
sd as o,
|
|
6705
|
+
$o as p,
|
|
6706
|
+
fd as q,
|
|
6707
|
+
xd as u
|
|
6681
6708
|
};
|