@onereach/ui-components 26.4.1-beta.5881.0 → 26.4.1-beta.5882.0
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/esm/{OrDataGrid-DnLT39dk.mjs → OrDataGrid-CjCdOIvf.mjs} +256 -256
- package/dist/esm/OrDataGrid-CjCdOIvf.mjs.map +1 -0
- package/dist/esm/components/index.mjs +1 -1
- package/dist/esm/components/or-data-grid-v3/index.mjs +1 -1
- package/dist/esm/index.mjs +1 -1
- package/dist/types/components/or-data-grid-v3/OrDataGrid.vue.d.ts +1 -0
- package/dist/types/components/or-data-grid-v3/partials/or-data-grid-table-header-cell/OrDataGridTableHeaderCell.vue.d.ts +1 -0
- package/dist/types/components/or-data-grid-v3/types.d.ts +1 -0
- package/package.json +3 -3
- package/dist/esm/OrDataGrid-DnLT39dk.mjs.map +0 -1
|
@@ -2,7 +2,7 @@ import { O as ne } from "./OrCheckbox-WPBzlvaV.mjs";
|
|
|
2
2
|
import { O as ce } from "./OrPagination-BXzDa-Su.mjs";
|
|
3
3
|
import { O as ue } from "./OrSearch-CRFuNmg2.mjs";
|
|
4
4
|
import { O as me } from "./OrSkeletonArea.vue_vue_type_script_lang-jgRhbZ0X.mjs";
|
|
5
|
-
import { defineComponent as M, ref as D, computed as o, openBlock as r, createElementBlock as p, normalizeClass as
|
|
5
|
+
import { defineComponent as M, ref as D, computed as o, openBlock as r, createElementBlock as p, normalizeClass as u, renderSlot as c, createCommentVNode as h, resolveComponent as f, normalizeStyle as A, createBlock as y, watch as se, createElementVNode as fe, withModifiers as oe, createVNode as E, mergeProps as ge, withCtx as k, onMounted as he, createSlots as Z, normalizeProps as pe, guardReactiveProps as ve, Fragment as Q, renderList as Y, createTextVNode as _, toDisplayString as x } from "vue";
|
|
6
6
|
import { _ as R } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
7
7
|
import { O as ke } from "./OrDatePicker-D-Do0tSf.mjs";
|
|
8
8
|
import { O as ye } from "./OrDateTimePicker-myqJkQxy.mjs";
|
|
@@ -15,8 +15,8 @@ import { O as we } from "./OrSwitch-BtoXDsZx.mjs";
|
|
|
15
15
|
import { O as De } from "./OrTagInput-B2U22gXE.mjs";
|
|
16
16
|
import { O as Se } from "./OrTimePicker-QPUb8olp.mjs";
|
|
17
17
|
import { O as Te } from "./OrIcon-k8cyvh-D.mjs";
|
|
18
|
-
import { useElementSize as
|
|
19
|
-
import { O as
|
|
18
|
+
import { useElementSize as Ce } from "@vueuse/core";
|
|
19
|
+
import { O as Ge } from "./OrNotification-BkjmRseb.mjs";
|
|
20
20
|
const Ve = [
|
|
21
21
|
// Layout
|
|
22
22
|
"layout-row",
|
|
@@ -54,35 +54,35 @@ const Ve = [
|
|
|
54
54
|
}
|
|
55
55
|
}), Ie = {
|
|
56
56
|
key: 1,
|
|
57
|
-
class: /* @__PURE__ */
|
|
57
|
+
class: /* @__PURE__ */ u(["grow"])
|
|
58
58
|
};
|
|
59
|
-
function ze(e, t, n, v, g,
|
|
59
|
+
function ze(e, t, n, v, g, l) {
|
|
60
60
|
return r(), p("div", {
|
|
61
61
|
ref: "root",
|
|
62
|
-
class:
|
|
62
|
+
class: u(e.rootStyles)
|
|
63
63
|
}, [
|
|
64
64
|
e.$slots.status ? (r(), p("div", {
|
|
65
65
|
key: 0,
|
|
66
|
-
class:
|
|
66
|
+
class: u(e.statusStyles)
|
|
67
67
|
}, [
|
|
68
|
-
|
|
68
|
+
c(e.$slots, "status")
|
|
69
69
|
], 2)) : h("", !0),
|
|
70
|
-
|
|
70
|
+
c(e.$slots, "actions"),
|
|
71
71
|
e.$slots.paging ? (r(), p("div", Ie)) : h("", !0),
|
|
72
|
-
|
|
72
|
+
c(e.$slots, "paging")
|
|
73
73
|
], 2);
|
|
74
74
|
}
|
|
75
|
-
const He = /* @__PURE__ */ R(Re, [["render", ze]]),
|
|
75
|
+
const He = /* @__PURE__ */ R(Re, [["render", ze]]), Fe = [
|
|
76
76
|
// Layout
|
|
77
77
|
"layout-row items-start gap-md",
|
|
78
78
|
// Interactivity
|
|
79
79
|
"interactivity-default",
|
|
80
80
|
// Box
|
|
81
81
|
"h-3xl"
|
|
82
|
-
],
|
|
82
|
+
], We = [
|
|
83
83
|
// Typography
|
|
84
84
|
"typography-headline-2"
|
|
85
|
-
],
|
|
85
|
+
], Ee = M({
|
|
86
86
|
name: "OrDataGridHeader",
|
|
87
87
|
expose: [
|
|
88
88
|
"root"
|
|
@@ -90,9 +90,9 @@ const He = /* @__PURE__ */ R(Re, [["render", ze]]), Ee = [
|
|
|
90
90
|
setup() {
|
|
91
91
|
const e = D(), t = o(() => [
|
|
92
92
|
"or-data-grid-header-v3",
|
|
93
|
-
...Ee
|
|
94
|
-
]), n = o(() => [
|
|
95
93
|
...Fe
|
|
94
|
+
]), n = o(() => [
|
|
95
|
+
...We
|
|
96
96
|
]);
|
|
97
97
|
return {
|
|
98
98
|
root: e,
|
|
@@ -102,25 +102,25 @@ const He = /* @__PURE__ */ R(Re, [["render", ze]]), Ee = [
|
|
|
102
102
|
}
|
|
103
103
|
}), Pe = {
|
|
104
104
|
key: 1,
|
|
105
|
-
class: /* @__PURE__ */
|
|
105
|
+
class: /* @__PURE__ */ u(["grow"])
|
|
106
106
|
};
|
|
107
|
-
function Ne(e, t, n, v, g,
|
|
107
|
+
function Ne(e, t, n, v, g, l) {
|
|
108
108
|
return r(), p("div", {
|
|
109
109
|
ref: "root",
|
|
110
|
-
class:
|
|
110
|
+
class: u(e.rootStyles)
|
|
111
111
|
}, [
|
|
112
112
|
e.$slots.title ? (r(), p("div", {
|
|
113
113
|
key: 0,
|
|
114
|
-
class:
|
|
114
|
+
class: u(e.titleStyles)
|
|
115
115
|
}, [
|
|
116
|
-
|
|
116
|
+
c(e.$slots, "title")
|
|
117
117
|
], 2)) : h("", !0),
|
|
118
118
|
e.$slots.searching || e.$slots.extraActions ? (r(), p("div", Pe)) : h("", !0),
|
|
119
|
-
|
|
120
|
-
e.$slots.extraActions ?
|
|
119
|
+
c(e.$slots, "searching"),
|
|
120
|
+
e.$slots.extraActions ? c(e.$slots, "extraActions", { key: 2 }) : h("", !0)
|
|
121
121
|
], 2);
|
|
122
122
|
}
|
|
123
|
-
const je = /* @__PURE__ */ R(
|
|
123
|
+
const je = /* @__PURE__ */ R(Ee, [["render", Ne]]);
|
|
124
124
|
var b = /* @__PURE__ */ ((e) => (e.Standard = "standard", e.Comfortable = "comfortable", e.Compact = "compact", e.Dynamic = "dynamic", e))(b || {});
|
|
125
125
|
const K = "52px", Ue = [
|
|
126
126
|
// Layout
|
|
@@ -213,12 +213,12 @@ const K = "52px", Ue = [
|
|
|
213
213
|
],
|
|
214
214
|
setup(e, t) {
|
|
215
215
|
const n = D(), v = o(() => {
|
|
216
|
-
var O,
|
|
216
|
+
var O, C, I, G;
|
|
217
217
|
return [
|
|
218
218
|
"or-data-grid-table-content-cell-v3",
|
|
219
219
|
...Ue,
|
|
220
|
-
...(O = e.column) != null && O.stickiness ? [`sticky-${e.column.stickiness}
|
|
221
|
-
...(
|
|
220
|
+
...(O = e.column) != null && O.stickiness ? ["overflow-hidden", `sticky-${e.column.stickiness}`] : [],
|
|
221
|
+
...(C = e.features) != null && C.resizing && ((I = e.column) != null && I.name) && ((G = e.column) == null ? void 0 : G.resizing) !== !1 ? ["resizable"] : []
|
|
222
222
|
];
|
|
223
223
|
}), g = o(() => {
|
|
224
224
|
if (e.column)
|
|
@@ -248,16 +248,16 @@ const K = "52px", Ue = [
|
|
|
248
248
|
return {
|
|
249
249
|
justifyContent: "center"
|
|
250
250
|
};
|
|
251
|
-
}),
|
|
252
|
-
var
|
|
253
|
-
const O = ((
|
|
251
|
+
}), l = o(() => {
|
|
252
|
+
var G, d, w, s, F;
|
|
253
|
+
const O = ((G = e.column) == null ? void 0 : G.wrapping) ?? (e.variant === b.Dynamic && !((d = e.column) != null && d.control)), C = ((s = (w = e.column) == null ? void 0 : w.control) == null ? void 0 : s.type) === "tags", I = (F = e.column) == null ? void 0 : F.fitContent;
|
|
254
254
|
return [
|
|
255
255
|
"layout-row items-center w-full min-w-0",
|
|
256
|
-
...
|
|
256
|
+
...C ? ["overflow-hidden"] : [],
|
|
257
257
|
...Le.filter((P) => P !== "truncate"),
|
|
258
|
-
...O ? ["whitespace-pre-wrap break-words"] : ["truncate"]
|
|
258
|
+
...O ? ["whitespace-pre-wrap break-words"] : I ? ["overflow-hidden"] : ["truncate"]
|
|
259
259
|
];
|
|
260
|
-
}),
|
|
260
|
+
}), S = o(() => ({
|
|
261
261
|
minWidth: e.column && e.column.minWidth || K,
|
|
262
262
|
maxWidth: e.column && e.column.maxWidth
|
|
263
263
|
})), H = o({
|
|
@@ -265,7 +265,7 @@ const K = "52px", Ue = [
|
|
|
265
265
|
set: (O) => {
|
|
266
266
|
t.emit("input", O);
|
|
267
267
|
}
|
|
268
|
-
}),
|
|
268
|
+
}), T = o(() => {
|
|
269
269
|
var O;
|
|
270
270
|
return (O = e.column) == null ? void 0 : O.control;
|
|
271
271
|
});
|
|
@@ -273,34 +273,34 @@ const K = "52px", Ue = [
|
|
|
273
273
|
root: n,
|
|
274
274
|
rootStyles: v,
|
|
275
275
|
rootInlineStyles: g,
|
|
276
|
-
contentStyles:
|
|
277
|
-
contentInlineStyles:
|
|
276
|
+
contentStyles: l,
|
|
277
|
+
contentInlineStyles: S,
|
|
278
278
|
model: H,
|
|
279
|
-
control:
|
|
279
|
+
control: T,
|
|
280
280
|
DATA_GRID_DEFAULT_MIN_WIDTH: K
|
|
281
281
|
};
|
|
282
282
|
}
|
|
283
283
|
});
|
|
284
|
-
function qe(e, t, n, v, g,
|
|
285
|
-
const
|
|
284
|
+
function qe(e, t, n, v, g, l) {
|
|
285
|
+
const S = f("OrInput"), H = f("OrRating"), T = f("OrSelect"), O = f("OrCheckbox"), C = f("OrSwitch"), I = f("OrDatePicker"), G = f("OrTimePicker"), d = f("OrDateTimePicker"), w = f("OrTagInput");
|
|
286
286
|
return r(), p("div", {
|
|
287
287
|
ref: "root",
|
|
288
|
-
class:
|
|
288
|
+
class: u(e.rootStyles),
|
|
289
289
|
style: A(e.rootInlineStyles)
|
|
290
290
|
}, [
|
|
291
|
-
e.override ?
|
|
291
|
+
e.override ? c(e.$slots, "default", { key: 0 }) : e.control ? (r(), p("div", {
|
|
292
292
|
key: 1,
|
|
293
|
-
class:
|
|
293
|
+
class: u(e.contentStyles),
|
|
294
294
|
style: A(e.contentInlineStyles)
|
|
295
295
|
}, [
|
|
296
|
-
e.control.type === "text" ? (r(), y(
|
|
296
|
+
e.control.type === "text" ? (r(), y(S, {
|
|
297
297
|
key: 0,
|
|
298
298
|
modelValue: e.model,
|
|
299
299
|
"onUpdate:modelValue": t[0] || (t[0] = (s) => e.model = s),
|
|
300
300
|
type: "text",
|
|
301
301
|
variant: "embedded"
|
|
302
302
|
}, null, 8, ["modelValue"])) : h("", !0),
|
|
303
|
-
e.control.type === "number" ? (r(), y(
|
|
303
|
+
e.control.type === "number" ? (r(), y(S, {
|
|
304
304
|
key: 1,
|
|
305
305
|
modelValue: e.model,
|
|
306
306
|
"onUpdate:modelValue": t[1] || (t[1] = (s) => e.model = s),
|
|
@@ -312,7 +312,7 @@ function qe(e, t, n, v, g, u) {
|
|
|
312
312
|
modelValue: e.model,
|
|
313
313
|
"onUpdate:modelValue": t[2] || (t[2] = (s) => e.model = s)
|
|
314
314
|
}, null, 8, ["modelValue"])) : h("", !0),
|
|
315
|
-
e.control.type === "select" ? (r(), y(
|
|
315
|
+
e.control.type === "select" ? (r(), y(T, {
|
|
316
316
|
key: 3,
|
|
317
317
|
modelValue: e.model,
|
|
318
318
|
"onUpdate:modelValue": t[3] || (t[3] = (s) => e.model = s),
|
|
@@ -325,7 +325,7 @@ function qe(e, t, n, v, g, u) {
|
|
|
325
325
|
modelValue: e.model,
|
|
326
326
|
"onUpdate:modelValue": t[4] || (t[4] = (s) => e.model = s)
|
|
327
327
|
}, null, 8, ["modelValue"])) : h("", !0),
|
|
328
|
-
e.control.type === "switch" ? (r(), y(
|
|
328
|
+
e.control.type === "switch" ? (r(), y(C, {
|
|
329
329
|
key: 5,
|
|
330
330
|
modelValue: e.model,
|
|
331
331
|
"onUpdate:modelValue": t[5] || (t[5] = (s) => e.model = s)
|
|
@@ -337,14 +337,14 @@ function qe(e, t, n, v, g, u) {
|
|
|
337
337
|
variant: "embedded",
|
|
338
338
|
anchor: e.root
|
|
339
339
|
}, null, 8, ["modelValue", "anchor"])) : h("", !0),
|
|
340
|
-
e.control.type === "time" ? (r(), y(
|
|
340
|
+
e.control.type === "time" ? (r(), y(G, {
|
|
341
341
|
key: 7,
|
|
342
342
|
modelValue: e.model,
|
|
343
343
|
"onUpdate:modelValue": t[7] || (t[7] = (s) => e.model = s),
|
|
344
344
|
variant: "embedded",
|
|
345
345
|
anchor: e.root
|
|
346
346
|
}, null, 8, ["modelValue", "anchor"])) : h("", !0),
|
|
347
|
-
e.control.type === "datetime" ? (r(), y(
|
|
347
|
+
e.control.type === "datetime" ? (r(), y(d, {
|
|
348
348
|
key: 8,
|
|
349
349
|
modelValue: e.model,
|
|
350
350
|
"onUpdate:modelValue": t[8] || (t[8] = (s) => e.model = s),
|
|
@@ -356,14 +356,14 @@ function qe(e, t, n, v, g, u) {
|
|
|
356
356
|
modelValue: e.model,
|
|
357
357
|
"onUpdate:modelValue": t[9] || (t[9] = (s) => e.model = s),
|
|
358
358
|
variant: "embedded",
|
|
359
|
-
class:
|
|
359
|
+
class: u(["grow min-w-0"])
|
|
360
360
|
}, null, 8, ["modelValue"])) : h("", !0)
|
|
361
361
|
], 6)) : (r(), p("div", {
|
|
362
362
|
key: 2,
|
|
363
|
-
class:
|
|
363
|
+
class: u(e.contentStyles),
|
|
364
364
|
style: A(e.contentInlineStyles)
|
|
365
365
|
}, [
|
|
366
|
-
|
|
366
|
+
c(e.$slots, "default")
|
|
367
367
|
], 6))
|
|
368
368
|
], 6);
|
|
369
369
|
}
|
|
@@ -440,13 +440,13 @@ const Be = /* @__PURE__ */ R(Ae, [["render", qe]]), Ke = [
|
|
|
440
440
|
};
|
|
441
441
|
}
|
|
442
442
|
}), Qe = ["selected"];
|
|
443
|
-
function Ye(e, t, n, v, g,
|
|
443
|
+
function Ye(e, t, n, v, g, l) {
|
|
444
444
|
return r(), p("div", {
|
|
445
445
|
ref: "root",
|
|
446
|
-
class:
|
|
446
|
+
class: u(e.rootStyles),
|
|
447
447
|
selected: e.selected
|
|
448
448
|
}, [
|
|
449
|
-
|
|
449
|
+
c(e.$slots, "default")
|
|
450
450
|
], 10, Qe);
|
|
451
451
|
}
|
|
452
452
|
const Ze = /* @__PURE__ */ R(Je, [["render", Ye]]), _e = [
|
|
@@ -468,12 +468,12 @@ const Ze = /* @__PURE__ */ R(Je, [["render", Ye]]), _e = [
|
|
|
468
468
|
};
|
|
469
469
|
}
|
|
470
470
|
});
|
|
471
|
-
function et(e, t, n, v, g,
|
|
471
|
+
function et(e, t, n, v, g, l) {
|
|
472
472
|
return r(), p("div", {
|
|
473
473
|
ref: "root",
|
|
474
|
-
class:
|
|
474
|
+
class: u(e.rootStyles)
|
|
475
475
|
}, [
|
|
476
|
-
|
|
476
|
+
c(e.$slots, "default")
|
|
477
477
|
], 2);
|
|
478
478
|
}
|
|
479
479
|
const tt = /* @__PURE__ */ R(xe, [["render", et]]), at = [
|
|
@@ -502,12 +502,12 @@ const tt = /* @__PURE__ */ R(xe, [["render", et]]), at = [
|
|
|
502
502
|
};
|
|
503
503
|
}
|
|
504
504
|
});
|
|
505
|
-
function ot(e, t, n, v, g,
|
|
505
|
+
function ot(e, t, n, v, g, l) {
|
|
506
506
|
return r(), p("div", {
|
|
507
507
|
ref: "root",
|
|
508
|
-
class:
|
|
508
|
+
class: u(e.rootStyles)
|
|
509
509
|
}, [
|
|
510
|
-
|
|
510
|
+
c(e.$slots, "default")
|
|
511
511
|
], 2);
|
|
512
512
|
}
|
|
513
513
|
const nt = /* @__PURE__ */ R(rt, [["render", ot]]), st = [
|
|
@@ -563,12 +563,12 @@ const nt = /* @__PURE__ */ R(rt, [["render", ot]]), st = [
|
|
|
563
563
|
};
|
|
564
564
|
}
|
|
565
565
|
});
|
|
566
|
-
function dt(e, t, n, v, g,
|
|
566
|
+
function dt(e, t, n, v, g, l) {
|
|
567
567
|
return r(), p("div", {
|
|
568
568
|
ref: "root",
|
|
569
|
-
class:
|
|
569
|
+
class: u(e.rootStyles)
|
|
570
570
|
}, [
|
|
571
|
-
|
|
571
|
+
c(e.$slots, "default")
|
|
572
572
|
], 2);
|
|
573
573
|
}
|
|
574
574
|
const ct = /* @__PURE__ */ R(it, [["render", dt]]), ut = [
|
|
@@ -590,12 +590,12 @@ const ct = /* @__PURE__ */ R(it, [["render", dt]]), ut = [
|
|
|
590
590
|
};
|
|
591
591
|
}
|
|
592
592
|
});
|
|
593
|
-
function ft(e, t, n, v, g,
|
|
593
|
+
function ft(e, t, n, v, g, l) {
|
|
594
594
|
return r(), p("div", {
|
|
595
595
|
ref: "root",
|
|
596
|
-
class:
|
|
596
|
+
class: u(e.rootStyles)
|
|
597
597
|
}, [
|
|
598
|
-
|
|
598
|
+
c(e.$slots, "default")
|
|
599
599
|
], 2);
|
|
600
600
|
}
|
|
601
601
|
const gt = /* @__PURE__ */ R(mt, [["render", ft]]), ht = [
|
|
@@ -670,31 +670,32 @@ const gt = /* @__PURE__ */ R(mt, [["render", ft]]), ht = [
|
|
|
670
670
|
],
|
|
671
671
|
setup(e, t) {
|
|
672
672
|
const n = D(), v = o(() => {
|
|
673
|
-
var
|
|
674
|
-
return !!((
|
|
673
|
+
var d, w, s;
|
|
674
|
+
return !!((d = e.features) != null && d.sorting) && !!((w = e.column) != null && w.name) && ((s = e.column) == null ? void 0 : s.sorting) !== !1;
|
|
675
675
|
}), g = o(() => {
|
|
676
|
-
var
|
|
677
|
-
return !!((
|
|
678
|
-
}),
|
|
679
|
-
var
|
|
676
|
+
var d, w, s;
|
|
677
|
+
return !!((d = e.features) != null && d.resizing) && !!((w = e.column) != null && w.name) && ((s = e.column) == null ? void 0 : s.resizing) !== !1;
|
|
678
|
+
}), l = o(() => {
|
|
679
|
+
var d;
|
|
680
680
|
return [
|
|
681
681
|
"or-data-grid-table-header-cell-v3",
|
|
682
682
|
"relative",
|
|
683
683
|
...ht,
|
|
684
|
-
...(
|
|
684
|
+
...(d = e.column) != null && d.stickiness ? ["overflow-hidden", `sticky-${e.column.stickiness}`] : [],
|
|
685
685
|
...g.value ? ["resizable"] : [],
|
|
686
686
|
...v.value ? ["interactivity-click"] : []
|
|
687
687
|
];
|
|
688
|
-
}),
|
|
688
|
+
}), S = o(() => [
|
|
689
689
|
"or-data-grid-table-header-cell-resize-handle-v3",
|
|
690
690
|
...pt
|
|
691
691
|
]), H = o(() => {
|
|
692
|
-
var
|
|
692
|
+
var d, w;
|
|
693
693
|
return {
|
|
694
|
-
minWidth: ((
|
|
695
|
-
maxWidth: (w = e.column) == null ? void 0 : w.maxWidth
|
|
694
|
+
minWidth: ((d = e.column) == null ? void 0 : d.minWidth) || K,
|
|
695
|
+
maxWidth: (w = e.column) == null ? void 0 : w.maxWidth,
|
|
696
|
+
overflow: "hidden"
|
|
696
697
|
};
|
|
697
|
-
}),
|
|
698
|
+
}), T = o(() => {
|
|
698
699
|
if (e.column)
|
|
699
700
|
switch (e.column.stickiness) {
|
|
700
701
|
case "start":
|
|
@@ -724,16 +725,16 @@ const gt = /* @__PURE__ */ R(mt, [["render", ft]]), ht = [
|
|
|
724
725
|
};
|
|
725
726
|
}), O = o({
|
|
726
727
|
get: () => {
|
|
727
|
-
var
|
|
728
|
+
var d, w;
|
|
728
729
|
if (v.value)
|
|
729
|
-
return ((
|
|
730
|
+
return ((d = e.modelValue) == null ? void 0 : d.column) === ((w = e.column) == null ? void 0 : w.name) ? e.modelValue : void 0;
|
|
730
731
|
},
|
|
731
|
-
set: (
|
|
732
|
-
t.emit("update:modelValue",
|
|
732
|
+
set: (d) => {
|
|
733
|
+
t.emit("update:modelValue", d);
|
|
733
734
|
}
|
|
734
735
|
});
|
|
735
|
-
function
|
|
736
|
-
var
|
|
736
|
+
function C() {
|
|
737
|
+
var d;
|
|
737
738
|
if (v.value)
|
|
738
739
|
if (O.value)
|
|
739
740
|
O.value = {
|
|
@@ -744,16 +745,16 @@ const gt = /* @__PURE__ */ R(mt, [["render", ft]]), ht = [
|
|
|
744
745
|
if (!e.column)
|
|
745
746
|
throw new Error("[OrDataGridTableHeaderCell]: `column` must be specified.");
|
|
746
747
|
O.value = {
|
|
747
|
-
column: ((
|
|
748
|
+
column: ((d = e.column) == null ? void 0 : d.name) || "_check",
|
|
748
749
|
direction: "asc"
|
|
749
750
|
};
|
|
750
751
|
}
|
|
751
752
|
}
|
|
752
|
-
function I(
|
|
753
|
+
function I(d) {
|
|
753
754
|
var V;
|
|
754
|
-
const w =
|
|
755
|
+
const w = d.pageX, s = ((V = n.value) == null ? void 0 : V.offsetWidth) || 0, F = (W) => {
|
|
755
756
|
var q, B;
|
|
756
|
-
const X =
|
|
757
|
+
const X = W.pageX - w;
|
|
757
758
|
let j = Math.max(0, s + X);
|
|
758
759
|
const U = ((q = e.column) == null ? void 0 : q.minWidth) || K;
|
|
759
760
|
if (U && (U.endsWith("px") || !isNaN(Number(U)))) {
|
|
@@ -766,61 +767,61 @@ const gt = /* @__PURE__ */ R(mt, [["render", ft]]), ht = [
|
|
|
766
767
|
}
|
|
767
768
|
t.emit("update:column-width", j);
|
|
768
769
|
}, P = () => {
|
|
769
|
-
document.removeEventListener("mousemove",
|
|
770
|
+
document.removeEventListener("mousemove", F), document.removeEventListener("mouseup", P);
|
|
770
771
|
};
|
|
771
|
-
document.addEventListener("mousemove",
|
|
772
|
+
document.addEventListener("mousemove", F), document.addEventListener("mouseup", P);
|
|
772
773
|
}
|
|
773
|
-
const { width:
|
|
774
|
+
const { width: G } = Ce(n, void 0, { box: "border-box" });
|
|
774
775
|
return se([
|
|
775
776
|
n,
|
|
776
|
-
|
|
777
|
+
G,
|
|
777
778
|
() => {
|
|
778
|
-
var
|
|
779
|
-
return (
|
|
779
|
+
var d;
|
|
780
|
+
return (d = e.column) == null ? void 0 : d.stickiness;
|
|
780
781
|
}
|
|
781
782
|
], ([
|
|
782
|
-
|
|
783
|
+
d,
|
|
783
784
|
w
|
|
784
785
|
], [
|
|
785
786
|
s
|
|
786
787
|
]) => {
|
|
787
|
-
s && s !==
|
|
788
|
+
s && s !== d && t.emit("remove:scrollOffset", s), t.emit("update:scrollOffset", d, w, e.column);
|
|
788
789
|
}), {
|
|
789
790
|
root: n,
|
|
790
|
-
rootStyles:
|
|
791
|
-
rootInlineStyles:
|
|
791
|
+
rootStyles: l,
|
|
792
|
+
rootInlineStyles: T,
|
|
792
793
|
wrapInlineStyle: H,
|
|
793
|
-
resizeHandleStyles:
|
|
794
|
+
resizeHandleStyles: S,
|
|
794
795
|
isSortable: v,
|
|
795
796
|
isResizable: g,
|
|
796
797
|
model: O,
|
|
797
|
-
toggleSorting:
|
|
798
|
+
toggleSorting: C,
|
|
798
799
|
onResizeStart: I,
|
|
799
800
|
DATA_GRID_DEFAULT_MIN_WIDTH: K
|
|
800
801
|
};
|
|
801
802
|
}
|
|
802
803
|
});
|
|
803
|
-
function kt(e, t, n, v, g,
|
|
804
|
-
const
|
|
804
|
+
function kt(e, t, n, v, g, l) {
|
|
805
|
+
const S = f("OrIcon");
|
|
805
806
|
return r(), p("div", {
|
|
806
807
|
ref: "root",
|
|
807
|
-
class:
|
|
808
|
+
class: u(e.rootStyles),
|
|
808
809
|
style: A(e.rootInlineStyles),
|
|
809
810
|
onClick: t[2] || (t[2] = (H) => e.toggleSorting())
|
|
810
811
|
}, [
|
|
811
812
|
fe("div", {
|
|
812
|
-
class:
|
|
813
|
+
class: u(["truncate"]),
|
|
813
814
|
style: A(e.wrapInlineStyle)
|
|
814
815
|
}, [
|
|
815
|
-
|
|
816
|
+
c(e.$slots, "default")
|
|
816
817
|
], 4),
|
|
817
|
-
e.model ? (r(), y(
|
|
818
|
+
e.model ? (r(), y(S, {
|
|
818
819
|
key: 0,
|
|
819
820
|
icon: e.model.direction === "asc" ? "arrow_upward" : "arrow_downward"
|
|
820
821
|
}, null, 8, ["icon"])) : h("", !0),
|
|
821
822
|
e.isResizable ? (r(), p("div", {
|
|
822
823
|
key: 1,
|
|
823
|
-
class:
|
|
824
|
+
class: u(e.resizeHandleStyles),
|
|
824
825
|
onMousedown: t[0] || (t[0] = oe((...H) => e.onResizeStart && e.onResizeStart(...H), ["stop", "prevent"])),
|
|
825
826
|
onClick: t[1] || (t[1] = oe(() => {
|
|
826
827
|
}, ["stop"]))
|
|
@@ -879,12 +880,12 @@ const yt = /* @__PURE__ */ R(vt, [["render", kt]]), bt = [
|
|
|
879
880
|
};
|
|
880
881
|
}
|
|
881
882
|
});
|
|
882
|
-
function wt(e, t, n, v, g,
|
|
883
|
+
function wt(e, t, n, v, g, l) {
|
|
883
884
|
return r(), p("div", {
|
|
884
885
|
ref: "root",
|
|
885
|
-
class:
|
|
886
|
+
class: u(e.rootStyles)
|
|
886
887
|
}, [
|
|
887
|
-
|
|
888
|
+
c(e.$slots, "default")
|
|
888
889
|
], 2);
|
|
889
890
|
}
|
|
890
891
|
const Dt = /* @__PURE__ */ R($t, [["render", wt]]), St = [
|
|
@@ -906,15 +907,15 @@ const Dt = /* @__PURE__ */ R($t, [["render", wt]]), St = [
|
|
|
906
907
|
};
|
|
907
908
|
}
|
|
908
909
|
});
|
|
909
|
-
function
|
|
910
|
+
function Ct(e, t, n, v, g, l) {
|
|
910
911
|
return r(), p("div", {
|
|
911
912
|
ref: "root",
|
|
912
|
-
class:
|
|
913
|
+
class: u(e.rootStyles)
|
|
913
914
|
}, [
|
|
914
|
-
|
|
915
|
+
c(e.$slots, "default")
|
|
915
916
|
], 2);
|
|
916
917
|
}
|
|
917
|
-
const
|
|
918
|
+
const Gt = /* @__PURE__ */ R(Tt, [["render", Ct]]), Vt = [
|
|
918
919
|
// Layout
|
|
919
920
|
"layout-row justify-center items-center",
|
|
920
921
|
// Spacing
|
|
@@ -968,12 +969,12 @@ const Ct = /* @__PURE__ */ R(Tt, [["render", Gt]]), Vt = [
|
|
|
968
969
|
};
|
|
969
970
|
}
|
|
970
971
|
});
|
|
971
|
-
function It(e, t, n, v, g,
|
|
972
|
+
function It(e, t, n, v, g, l) {
|
|
972
973
|
return r(), p("div", {
|
|
973
974
|
ref: "root",
|
|
974
|
-
class:
|
|
975
|
+
class: u(e.rootStyles)
|
|
975
976
|
}, [
|
|
976
|
-
|
|
977
|
+
c(e.$slots, "default")
|
|
977
978
|
], 2);
|
|
978
979
|
}
|
|
979
980
|
const zt = /* @__PURE__ */ R(Rt, [["render", It]]), Ht = [
|
|
@@ -984,7 +985,7 @@ const zt = /* @__PURE__ */ R(Rt, [["render", It]]), Ht = [
|
|
|
984
985
|
"overflow-auto",
|
|
985
986
|
// Interactivity
|
|
986
987
|
"interactivity-default"
|
|
987
|
-
],
|
|
988
|
+
], Ft = M({
|
|
988
989
|
name: "OrDataGridTable",
|
|
989
990
|
props: {
|
|
990
991
|
columns: {
|
|
@@ -1004,12 +1005,11 @@ const zt = /* @__PURE__ */ R(Rt, [["render", It]]), Ht = [
|
|
|
1004
1005
|
"or-data-grid-table-v3",
|
|
1005
1006
|
...Ht
|
|
1006
1007
|
]), v = o(() => {
|
|
1007
|
-
const g = e.columns.map((
|
|
1008
|
-
if (
|
|
1009
|
-
return
|
|
1010
|
-
const
|
|
1011
|
-
|
|
1012
|
-
return T.endsWith("px") ? T : `minmax(${H}, ${S})`;
|
|
1008
|
+
const g = e.columns.map((l) => {
|
|
1009
|
+
if (l.width && (l.width.includes("minmax") || l.width.includes("calc")))
|
|
1010
|
+
return l.width;
|
|
1011
|
+
const S = l.width ?? "1fr", H = l.minWidth || (l.width ? K : l.fitContent || l.stickiness ? "max-content" : "120px"), T = l.maxWidth || (l.width ? S === "max-content" ? "max-content" : S : l.fitContent || l.minWidth || l.stickiness ? "max-content" : "1fr");
|
|
1012
|
+
return l.fitContent ? "max-content" : S.endsWith("px") ? S : `minmax(${H}, ${T})`;
|
|
1013
1013
|
});
|
|
1014
1014
|
return e.features.selecting ? { gridTemplateColumns: `min-content ${g.join(" ")}` } : { gridTemplateColumns: g.join(" ") };
|
|
1015
1015
|
});
|
|
@@ -1020,16 +1020,16 @@ const zt = /* @__PURE__ */ R(Rt, [["render", It]]), Ht = [
|
|
|
1020
1020
|
};
|
|
1021
1021
|
}
|
|
1022
1022
|
});
|
|
1023
|
-
function
|
|
1023
|
+
function Wt(e, t, n, v, g, l) {
|
|
1024
1024
|
return r(), p("div", {
|
|
1025
1025
|
ref: "root",
|
|
1026
|
-
class:
|
|
1026
|
+
class: u(e.rootStyles),
|
|
1027
1027
|
style: A(e.rootInlineStyles)
|
|
1028
1028
|
}, [
|
|
1029
|
-
|
|
1029
|
+
c(e.$slots, "default")
|
|
1030
1030
|
], 6);
|
|
1031
1031
|
}
|
|
1032
|
-
const
|
|
1032
|
+
const Et = /* @__PURE__ */ R(Ft, [["render", Wt]]), Pt = [
|
|
1033
1033
|
// Layout
|
|
1034
1034
|
"layout-row",
|
|
1035
1035
|
// Box
|
|
@@ -1052,12 +1052,12 @@ const Wt = /* @__PURE__ */ R(Et, [["render", Ft]]), Pt = [
|
|
|
1052
1052
|
};
|
|
1053
1053
|
}
|
|
1054
1054
|
});
|
|
1055
|
-
function jt(e, t, n, v, g,
|
|
1055
|
+
function jt(e, t, n, v, g, l) {
|
|
1056
1056
|
return r(), p("div", {
|
|
1057
1057
|
ref: "root",
|
|
1058
|
-
class:
|
|
1058
|
+
class: u(e.rootStyles)
|
|
1059
1059
|
}, [
|
|
1060
|
-
|
|
1060
|
+
c(e.$slots, "default")
|
|
1061
1061
|
], 2);
|
|
1062
1062
|
}
|
|
1063
1063
|
const Ut = /* @__PURE__ */ R(Nt, [["render", jt]]), Lt = [
|
|
@@ -1084,7 +1084,7 @@ const Ut = /* @__PURE__ */ R(Nt, [["render", jt]]), Lt = [
|
|
|
1084
1084
|
]
|
|
1085
1085
|
}, qt = M({
|
|
1086
1086
|
components: {
|
|
1087
|
-
OrNotification:
|
|
1087
|
+
OrNotification: Ge
|
|
1088
1088
|
},
|
|
1089
1089
|
props: {
|
|
1090
1090
|
notification: {
|
|
@@ -1109,17 +1109,17 @@ const Ut = /* @__PURE__ */ R(Nt, [["render", jt]]), Lt = [
|
|
|
1109
1109
|
};
|
|
1110
1110
|
}
|
|
1111
1111
|
});
|
|
1112
|
-
function Bt(e, t, n, v, g,
|
|
1113
|
-
const
|
|
1112
|
+
function Bt(e, t, n, v, g, l) {
|
|
1113
|
+
const S = f("OrNotification");
|
|
1114
1114
|
return r(), p("div", {
|
|
1115
|
-
class:
|
|
1115
|
+
class: u(e.rootStyles)
|
|
1116
1116
|
}, [
|
|
1117
|
-
|
|
1117
|
+
E(S, ge(e.notification, {
|
|
1118
1118
|
class: "rounded-0 shadow-none",
|
|
1119
1119
|
onClose: t[0] || (t[0] = (H) => e.$emit("close-notification"))
|
|
1120
1120
|
}), {
|
|
1121
1121
|
default: k(() => [
|
|
1122
|
-
e.$slots.notification ?
|
|
1122
|
+
e.$slots.notification ? c(e.$slots, "notification", { key: 0 }) : h("", !0)
|
|
1123
1123
|
]),
|
|
1124
1124
|
_: 3
|
|
1125
1125
|
}, 16)
|
|
@@ -1178,12 +1178,12 @@ const Kt = /* @__PURE__ */ R(qt, [["render", Bt]]), Xt = [
|
|
|
1178
1178
|
};
|
|
1179
1179
|
}
|
|
1180
1180
|
});
|
|
1181
|
-
function Yt(e, t, n, v, g,
|
|
1181
|
+
function Yt(e, t, n, v, g, l) {
|
|
1182
1182
|
return r(), p("div", {
|
|
1183
1183
|
ref: "root",
|
|
1184
|
-
class:
|
|
1184
|
+
class: u(e.rootStyles)
|
|
1185
1185
|
}, [
|
|
1186
|
-
|
|
1186
|
+
c(e.$slots, "default")
|
|
1187
1187
|
], 2);
|
|
1188
1188
|
}
|
|
1189
1189
|
const Zt = /* @__PURE__ */ R(Qt, [["render", Yt]]), _t = [
|
|
@@ -1195,7 +1195,7 @@ const Zt = /* @__PURE__ */ R(Qt, [["render", Yt]]), _t = [
|
|
|
1195
1195
|
OrCheckbox: ne,
|
|
1196
1196
|
OrDataGridFooter: He,
|
|
1197
1197
|
OrDataGridHeader: je,
|
|
1198
|
-
OrDataGridTable:
|
|
1198
|
+
OrDataGridTable: Et,
|
|
1199
1199
|
OrDataGridTableContent: tt,
|
|
1200
1200
|
OrDataGridTableContentCell: Be,
|
|
1201
1201
|
OrDataGridTableContentRow: Ze,
|
|
@@ -1203,7 +1203,7 @@ const Zt = /* @__PURE__ */ R(Qt, [["render", Yt]]), _t = [
|
|
|
1203
1203
|
OrDataGridTableFooterCell: nt,
|
|
1204
1204
|
OrDataGridTableFooterRow: ct,
|
|
1205
1205
|
OrDataGridTableExtraRow: Zt,
|
|
1206
|
-
OrDataGridTableHeader:
|
|
1206
|
+
OrDataGridTableHeader: Gt,
|
|
1207
1207
|
OrDataGridTableHeaderCell: yt,
|
|
1208
1208
|
OrDataGridTableHeaderRow: Dt,
|
|
1209
1209
|
OrDataGridTablePlaceholder: zt,
|
|
@@ -1265,23 +1265,23 @@ const Zt = /* @__PURE__ */ R(Qt, [["render", Yt]]), _t = [
|
|
|
1265
1265
|
"root"
|
|
1266
1266
|
],
|
|
1267
1267
|
setup(e, t) {
|
|
1268
|
-
const n = D(), v = D(), g = D(),
|
|
1268
|
+
const n = D(), v = D(), g = D(), l = o(() => [
|
|
1269
1269
|
"or-data-grid-v3",
|
|
1270
1270
|
..._t
|
|
1271
|
-
]),
|
|
1271
|
+
]), S = o(() => ({
|
|
1272
1272
|
scrollPaddingInlineStart: `${[...V.value.values()].reduce((a, $) => a + $, 0)}px`,
|
|
1273
|
-
scrollPaddingInlineEnd: `${[...
|
|
1273
|
+
scrollPaddingInlineEnd: `${[...W.value.values()].reduce((a, $) => a + $, 0)}px`
|
|
1274
1274
|
})), H = o({
|
|
1275
|
-
get: () => !!e.items.length && e.items.every((a) =>
|
|
1275
|
+
get: () => !!e.items.length && e.items.every((a) => T.value.includes(a.id)),
|
|
1276
1276
|
set: (a) => {
|
|
1277
|
-
a ?
|
|
1277
|
+
a ? T.value = [
|
|
1278
1278
|
.../* @__PURE__ */ new Set([
|
|
1279
|
-
...
|
|
1279
|
+
...T.value,
|
|
1280
1280
|
...e.items.map(($) => $.id)
|
|
1281
1281
|
])
|
|
1282
|
-
] :
|
|
1282
|
+
] : T.value = [];
|
|
1283
1283
|
}
|
|
1284
|
-
}),
|
|
1284
|
+
}), T = o({
|
|
1285
1285
|
get: () => {
|
|
1286
1286
|
var a;
|
|
1287
1287
|
return ((a = e.modelValue) == null ? void 0 : a.selecting) ?? [];
|
|
@@ -1290,9 +1290,9 @@ const Zt = /* @__PURE__ */ R(Qt, [["render", Yt]]), _t = [
|
|
|
1290
1290
|
t.emit("update:modelValue", {
|
|
1291
1291
|
selecting: a,
|
|
1292
1292
|
filtering: O.value,
|
|
1293
|
-
searching:
|
|
1293
|
+
searching: C.value,
|
|
1294
1294
|
sorting: I.value,
|
|
1295
|
-
paging:
|
|
1295
|
+
paging: G.value
|
|
1296
1296
|
});
|
|
1297
1297
|
}
|
|
1298
1298
|
}), O = o({
|
|
@@ -1302,29 +1302,29 @@ const Zt = /* @__PURE__ */ R(Qt, [["render", Yt]]), _t = [
|
|
|
1302
1302
|
},
|
|
1303
1303
|
set: (a) => {
|
|
1304
1304
|
t.emit("update:modelValue", {
|
|
1305
|
-
selecting:
|
|
1305
|
+
selecting: T.value,
|
|
1306
1306
|
filtering: a,
|
|
1307
|
-
searching:
|
|
1307
|
+
searching: C.value,
|
|
1308
1308
|
sorting: I.value,
|
|
1309
1309
|
paging: {
|
|
1310
|
-
...
|
|
1310
|
+
...G.value,
|
|
1311
1311
|
offset: 0
|
|
1312
1312
|
}
|
|
1313
1313
|
});
|
|
1314
1314
|
}
|
|
1315
|
-
}),
|
|
1315
|
+
}), C = o({
|
|
1316
1316
|
get: () => {
|
|
1317
1317
|
var a;
|
|
1318
1318
|
return (a = e.modelValue) == null ? void 0 : a.searching;
|
|
1319
1319
|
},
|
|
1320
1320
|
set: (a) => {
|
|
1321
1321
|
t.emit("update:modelValue", {
|
|
1322
|
-
selecting:
|
|
1322
|
+
selecting: T.value,
|
|
1323
1323
|
filtering: O.value,
|
|
1324
1324
|
searching: a,
|
|
1325
1325
|
sorting: I.value,
|
|
1326
1326
|
paging: {
|
|
1327
|
-
...
|
|
1327
|
+
...G.value,
|
|
1328
1328
|
offset: 0
|
|
1329
1329
|
}
|
|
1330
1330
|
});
|
|
@@ -1336,26 +1336,26 @@ const Zt = /* @__PURE__ */ R(Qt, [["render", Yt]]), _t = [
|
|
|
1336
1336
|
},
|
|
1337
1337
|
set: (a) => {
|
|
1338
1338
|
t.emit("update:modelValue", {
|
|
1339
|
-
selecting:
|
|
1339
|
+
selecting: T.value,
|
|
1340
1340
|
filtering: O.value,
|
|
1341
|
-
searching:
|
|
1341
|
+
searching: C.value,
|
|
1342
1342
|
sorting: a,
|
|
1343
1343
|
paging: {
|
|
1344
|
-
...
|
|
1344
|
+
...G.value,
|
|
1345
1345
|
offset: 0
|
|
1346
1346
|
}
|
|
1347
1347
|
});
|
|
1348
1348
|
}
|
|
1349
|
-
}),
|
|
1349
|
+
}), G = o({
|
|
1350
1350
|
get: () => {
|
|
1351
1351
|
var a;
|
|
1352
1352
|
return (a = e.modelValue) == null ? void 0 : a.paging;
|
|
1353
1353
|
},
|
|
1354
1354
|
set: (a) => {
|
|
1355
1355
|
t.emit("update:modelValue", {
|
|
1356
|
-
selecting:
|
|
1356
|
+
selecting: T.value,
|
|
1357
1357
|
filtering: O.value,
|
|
1358
|
-
searching:
|
|
1358
|
+
searching: C.value,
|
|
1359
1359
|
sorting: I.value,
|
|
1360
1360
|
paging: a
|
|
1361
1361
|
});
|
|
@@ -1363,7 +1363,7 @@ const Zt = /* @__PURE__ */ R(Qt, [["render", Yt]]), _t = [
|
|
|
1363
1363
|
});
|
|
1364
1364
|
se(() => {
|
|
1365
1365
|
var a;
|
|
1366
|
-
return (a =
|
|
1366
|
+
return (a = G.value) == null ? void 0 : a.offset;
|
|
1367
1367
|
}, () => {
|
|
1368
1368
|
var a;
|
|
1369
1369
|
(a = g.value) != null && a.root && g.value.root.scrollTo({
|
|
@@ -1371,13 +1371,13 @@ const Zt = /* @__PURE__ */ R(Qt, [["render", Yt]]), _t = [
|
|
|
1371
1371
|
behavior: "smooth"
|
|
1372
1372
|
});
|
|
1373
1373
|
});
|
|
1374
|
-
const
|
|
1374
|
+
const d = o(() => e.features.selecting && (typeof e.features.selecting == "object" ? e.features.selecting.showCounter !== !1 : !0)), w = o(() => e.items.length === 0 || e.loading || typeof e.features.selecting == "object" && e.features.selecting.disabled), s = o(() => {
|
|
1375
1375
|
var a;
|
|
1376
1376
|
return ((a = v.value) == null ? void 0 : a.currentLimit) || 10;
|
|
1377
|
-
}),
|
|
1377
|
+
}), F = D({}), P = o(() => e.columns.map((a) => ({
|
|
1378
1378
|
...a,
|
|
1379
|
-
width:
|
|
1380
|
-
}))), V = D(/* @__PURE__ */ new Map()),
|
|
1379
|
+
width: F.value[a.name] || a.width
|
|
1380
|
+
}))), V = D(/* @__PURE__ */ new Map()), W = D(/* @__PURE__ */ new Map()), X = o(() => {
|
|
1381
1381
|
const a = /* @__PURE__ */ new Map(), $ = /* @__PURE__ */ new Map(), z = [], te = [];
|
|
1382
1382
|
e.features.selecting && z.push({
|
|
1383
1383
|
name: "_check",
|
|
@@ -1391,22 +1391,22 @@ const Zt = /* @__PURE__ */ R(Qt, [["render", Yt]]), _t = [
|
|
|
1391
1391
|
});
|
|
1392
1392
|
let re = 0;
|
|
1393
1393
|
return [...te].reverse().forEach((N) => {
|
|
1394
|
-
$.set(N.name, re), re +=
|
|
1394
|
+
$.set(N.name, re), re += W.value.get(N.name) || 0;
|
|
1395
1395
|
}), {
|
|
1396
1396
|
start: a,
|
|
1397
1397
|
end: $
|
|
1398
1398
|
};
|
|
1399
1399
|
});
|
|
1400
1400
|
function j(a) {
|
|
1401
|
-
|
|
1401
|
+
C.value = a;
|
|
1402
1402
|
}
|
|
1403
1403
|
function U(a, $, z) {
|
|
1404
1404
|
switch (z.stickiness) {
|
|
1405
1405
|
case "start":
|
|
1406
|
-
V.value.set(z.name, $), V.value = new Map(V.value),
|
|
1406
|
+
V.value.set(z.name, $), V.value = new Map(V.value), W.value.delete(z.name), W.value = new Map(W.value);
|
|
1407
1407
|
break;
|
|
1408
1408
|
case "end":
|
|
1409
|
-
V.value.delete(z.name), V.value = new Map(V.value),
|
|
1409
|
+
V.value.delete(z.name), V.value = new Map(V.value), W.value.set(z.name, $), W.value = new Map(W.value);
|
|
1410
1410
|
break;
|
|
1411
1411
|
default:
|
|
1412
1412
|
ee(z.name);
|
|
@@ -1426,7 +1426,7 @@ const Zt = /* @__PURE__ */ R(Qt, [["render", Yt]]), _t = [
|
|
|
1426
1426
|
value: z
|
|
1427
1427
|
});
|
|
1428
1428
|
}
|
|
1429
|
-
function
|
|
1429
|
+
function i(a, $, z) {
|
|
1430
1430
|
e.interactiveRows && t.emit("blur:cell", {
|
|
1431
1431
|
item: a,
|
|
1432
1432
|
columnName: $,
|
|
@@ -1437,8 +1437,8 @@ const Zt = /* @__PURE__ */ R(Qt, [["render", Yt]]), _t = [
|
|
|
1437
1437
|
e.interactiveRows && t.emit("click:row", a);
|
|
1438
1438
|
}
|
|
1439
1439
|
function J(a, $) {
|
|
1440
|
-
|
|
1441
|
-
...
|
|
1440
|
+
F.value = {
|
|
1441
|
+
...F.value,
|
|
1442
1442
|
[a.name]: `${$}px`
|
|
1443
1443
|
}, e.features.storageKey && le();
|
|
1444
1444
|
}
|
|
@@ -1455,7 +1455,7 @@ const Zt = /* @__PURE__ */ R(Qt, [["render", Yt]]), _t = [
|
|
|
1455
1455
|
const a = localStorage.getItem(`or-data-grid-v3-widths-${e.features.storageKey}`);
|
|
1456
1456
|
if (a) {
|
|
1457
1457
|
const $ = JSON.parse(a);
|
|
1458
|
-
|
|
1458
|
+
F.value = $;
|
|
1459
1459
|
}
|
|
1460
1460
|
} catch (a) {
|
|
1461
1461
|
console.error("[OrDataGrid]: Failed to load column widths from localStorage", a);
|
|
@@ -1465,32 +1465,32 @@ const Zt = /* @__PURE__ */ R(Qt, [["render", Yt]]), _t = [
|
|
|
1465
1465
|
ie();
|
|
1466
1466
|
});
|
|
1467
1467
|
function ee(a) {
|
|
1468
|
-
V.value.delete(a), V.value = new Map(V.value),
|
|
1468
|
+
V.value.delete(a), V.value = new Map(V.value), W.value.delete(a), W.value = new Map(W.value);
|
|
1469
1469
|
}
|
|
1470
1470
|
function de(a) {
|
|
1471
1471
|
a.currentTarget.scrollIntoView({ block: "nearest" });
|
|
1472
1472
|
}
|
|
1473
1473
|
return {
|
|
1474
1474
|
root: n,
|
|
1475
|
-
rootStyles:
|
|
1475
|
+
rootStyles: l,
|
|
1476
1476
|
pagination: v,
|
|
1477
|
-
tableInlineStyles:
|
|
1477
|
+
tableInlineStyles: S,
|
|
1478
1478
|
selectingIndicator: H,
|
|
1479
|
-
showSelectingCouter:
|
|
1479
|
+
showSelectingCouter: d,
|
|
1480
1480
|
selectingDisabled: w,
|
|
1481
1481
|
skeletonsLength: s,
|
|
1482
1482
|
actualColumns: P,
|
|
1483
1483
|
handleMouseEnterRow: q,
|
|
1484
1484
|
handleMouseLeaveRow: B,
|
|
1485
1485
|
handleMouseEnterCell: L,
|
|
1486
|
-
handleMouseLeaveCell:
|
|
1486
|
+
handleMouseLeaveCell: i,
|
|
1487
1487
|
handleRowClick: m,
|
|
1488
1488
|
updateColumnWidth: J,
|
|
1489
|
-
selectingModel:
|
|
1489
|
+
selectingModel: T,
|
|
1490
1490
|
filteringModel: O,
|
|
1491
|
-
searchingModel:
|
|
1491
|
+
searchingModel: C,
|
|
1492
1492
|
sortingModel: I,
|
|
1493
|
-
pagingModel:
|
|
1493
|
+
pagingModel: G,
|
|
1494
1494
|
stickyOffsets: X,
|
|
1495
1495
|
updateScrollOffset: U,
|
|
1496
1496
|
removeScrollOffset: ee,
|
|
@@ -1509,30 +1509,30 @@ const Zt = /* @__PURE__ */ R(Qt, [["render", Yt]]), _t = [
|
|
|
1509
1509
|
};
|
|
1510
1510
|
}
|
|
1511
1511
|
});
|
|
1512
|
-
function ea(e, t, n, v, g,
|
|
1513
|
-
const
|
|
1512
|
+
function ea(e, t, n, v, g, l) {
|
|
1513
|
+
const S = f("OrSearch"), H = f("OrDataGridHeader"), T = f("OrDataGridToolbar"), O = f("OrCheckbox"), C = f("OrDataGridTableHeaderCell"), I = f("OrDataGridTableHeaderRow"), G = f("OrDataGridTableHeader"), d = f("OrDataGridNotification"), w = f("OrDataGridTableExtraRow"), s = f("OrSkeletonText"), F = f("OrDataGridTableContentCell"), P = f("OrDataGridTableContentRow"), V = f("OrDataGridTablePlaceholder"), W = f("OrDataGridTableContent"), X = f("OrDataGridTable"), j = f("OrDataGridTableFooterCell"), U = f("OrDataGridTableFooterRow"), q = f("OrDataGridTableFooter"), B = f("OrPagination"), L = f("OrDataGridFooter");
|
|
1514
1514
|
return r(), p("div", {
|
|
1515
1515
|
ref: "root",
|
|
1516
|
-
class:
|
|
1516
|
+
class: u(e.rootStyles)
|
|
1517
1517
|
}, [
|
|
1518
1518
|
e.$slots.title || e.features.searching || e.$slots.search || e.$slots.extraActions ? (r(), y(H, {
|
|
1519
1519
|
key: 0,
|
|
1520
|
-
class:
|
|
1520
|
+
class: u(["shrink-0"])
|
|
1521
1521
|
}, Z({ _: 2 }, [
|
|
1522
1522
|
e.$slots.title ? {
|
|
1523
1523
|
name: "title",
|
|
1524
1524
|
fn: k(() => [
|
|
1525
|
-
|
|
1525
|
+
c(e.$slots, "title")
|
|
1526
1526
|
]),
|
|
1527
1527
|
key: "0"
|
|
1528
1528
|
} : void 0,
|
|
1529
1529
|
e.features.searching ? {
|
|
1530
1530
|
name: "searching",
|
|
1531
1531
|
fn: k(() => [
|
|
1532
|
-
|
|
1533
|
-
|
|
1532
|
+
c(e.$slots, "search", pe(ve({ updateSearchingModel: e.updateSearchingModel, searchingModel: e.searchingModel })), () => [
|
|
1533
|
+
E(S, {
|
|
1534
1534
|
modelValue: e.searchingModel,
|
|
1535
|
-
"onUpdate:modelValue": t[0] || (t[0] = (
|
|
1535
|
+
"onUpdate:modelValue": t[0] || (t[0] = (i) => e.searchingModel = i)
|
|
1536
1536
|
}, null, 8, ["modelValue"])
|
|
1537
1537
|
])
|
|
1538
1538
|
]),
|
|
@@ -1541,33 +1541,33 @@ function ea(e, t, n, v, g, u) {
|
|
|
1541
1541
|
e.$slots.extraActions ? {
|
|
1542
1542
|
name: "extraActions",
|
|
1543
1543
|
fn: k(() => [
|
|
1544
|
-
|
|
1544
|
+
c(e.$slots, "extraActions")
|
|
1545
1545
|
]),
|
|
1546
1546
|
key: "2"
|
|
1547
1547
|
} : void 0
|
|
1548
1548
|
]), 1024)) : h("", !0),
|
|
1549
|
-
e.$slots.toolbar ? (r(), y(
|
|
1549
|
+
e.$slots.toolbar ? (r(), y(T, {
|
|
1550
1550
|
key: 1,
|
|
1551
|
-
class:
|
|
1551
|
+
class: u(["shrink-0"])
|
|
1552
1552
|
}, {
|
|
1553
1553
|
default: k(() => [
|
|
1554
|
-
|
|
1554
|
+
c(e.$slots, "toolbar")
|
|
1555
1555
|
]),
|
|
1556
1556
|
_: 3
|
|
1557
1557
|
})) : h("", !0),
|
|
1558
|
-
|
|
1558
|
+
E(X, {
|
|
1559
1559
|
ref: "table",
|
|
1560
|
-
class:
|
|
1560
|
+
class: u(["grow", { "grid-rows-[auto_1fr]": e.items.length === 0 }]),
|
|
1561
1561
|
style: A(e.tableInlineStyles),
|
|
1562
1562
|
columns: e.actualColumns,
|
|
1563
1563
|
features: e.features
|
|
1564
1564
|
}, {
|
|
1565
1565
|
default: k(() => [
|
|
1566
|
-
|
|
1566
|
+
E(G, null, {
|
|
1567
1567
|
default: k(() => [
|
|
1568
|
-
|
|
1568
|
+
E(I, { variant: e.variant }, {
|
|
1569
1569
|
default: k(() => [
|
|
1570
|
-
e.features.selecting ? (r(), y(
|
|
1570
|
+
e.features.selecting ? (r(), y(C, {
|
|
1571
1571
|
key: 0,
|
|
1572
1572
|
column: { name: "_check", stickiness: "start" },
|
|
1573
1573
|
"sticky-offset": e.stickyOffsets.start.get("_check"),
|
|
@@ -1576,28 +1576,28 @@ function ea(e, t, n, v, g, u) {
|
|
|
1576
1576
|
"onRemove:scrollOffset": e.removeScrollOffset
|
|
1577
1577
|
}, {
|
|
1578
1578
|
default: k(() => [
|
|
1579
|
-
|
|
1579
|
+
E(O, {
|
|
1580
1580
|
modelValue: e.selectingIndicator,
|
|
1581
|
-
"onUpdate:modelValue": t[1] || (t[1] = (
|
|
1581
|
+
"onUpdate:modelValue": t[1] || (t[1] = (i) => e.selectingIndicator = i),
|
|
1582
1582
|
indeterminate: !e.selectingIndicator && e.selectingModel.length > 0,
|
|
1583
1583
|
disabled: e.selectingDisabled
|
|
1584
1584
|
}, null, 8, ["modelValue", "indeterminate", "disabled"])
|
|
1585
1585
|
]),
|
|
1586
1586
|
_: 1
|
|
1587
1587
|
}, 8, ["sticky-offset", "onUpdate:scrollOffset", "onRemove:scrollOffset"])) : h("", !0),
|
|
1588
|
-
(r(!0), p(Q, null, Y(e.actualColumns, (
|
|
1589
|
-
key:
|
|
1588
|
+
(r(!0), p(Q, null, Y(e.actualColumns, (i) => (r(), y(C, {
|
|
1589
|
+
key: i.name,
|
|
1590
1590
|
modelValue: e.sortingModel,
|
|
1591
1591
|
"onUpdate:modelValue": t[2] || (t[2] = (m) => e.sortingModel = m),
|
|
1592
|
-
column:
|
|
1592
|
+
column: i,
|
|
1593
1593
|
features: e.features,
|
|
1594
|
-
"sticky-offset":
|
|
1594
|
+
"sticky-offset": i.stickiness === "start" ? e.stickyOffsets.start.get(i.name) : i.stickiness === "end" ? e.stickyOffsets.end.get(i.name) : void 0,
|
|
1595
1595
|
"onUpdate:scrollOffset": e.updateScrollOffset,
|
|
1596
1596
|
"onRemove:scrollOffset": e.removeScrollOffset,
|
|
1597
|
-
"onUpdate:columnWidth": (m) => e.updateColumnWidth(
|
|
1597
|
+
"onUpdate:columnWidth": (m) => e.updateColumnWidth(i, m)
|
|
1598
1598
|
}, {
|
|
1599
1599
|
default: k(() => [
|
|
1600
|
-
_(x(
|
|
1600
|
+
_(x(i.label), 1)
|
|
1601
1601
|
]),
|
|
1602
1602
|
_: 2
|
|
1603
1603
|
}, 1032, ["modelValue", "column", "features", "sticky-offset", "onUpdate:scrollOffset", "onRemove:scrollOffset", "onUpdate:columnWidth"]))), 128))
|
|
@@ -1607,21 +1607,21 @@ function ea(e, t, n, v, g, u) {
|
|
|
1607
1607
|
]),
|
|
1608
1608
|
_: 1
|
|
1609
1609
|
}),
|
|
1610
|
-
e.notification ? (r(), y(
|
|
1610
|
+
e.notification ? (r(), y(d, {
|
|
1611
1611
|
key: 0,
|
|
1612
1612
|
notification: e.notification,
|
|
1613
1613
|
variant: e.variant,
|
|
1614
|
-
onCloseNotification: t[3] || (t[3] = (
|
|
1614
|
+
onCloseNotification: t[3] || (t[3] = (i) => e.$emit("close-notification"))
|
|
1615
1615
|
}, Z({ _: 2 }, [
|
|
1616
1616
|
e.$slots.notification ? {
|
|
1617
1617
|
name: "notification",
|
|
1618
1618
|
fn: k(() => [
|
|
1619
|
-
|
|
1619
|
+
c(e.$slots, "notification")
|
|
1620
1620
|
]),
|
|
1621
1621
|
key: "0"
|
|
1622
1622
|
} : void 0
|
|
1623
1623
|
]), 1032, ["notification", "variant"])) : h("", !0),
|
|
1624
|
-
W
|
|
1624
|
+
E(W, null, {
|
|
1625
1625
|
default: k(() => [
|
|
1626
1626
|
e.$slots["before-rows"] ? (r(), y(w, {
|
|
1627
1627
|
key: 0,
|
|
@@ -1629,17 +1629,17 @@ function ea(e, t, n, v, g, u) {
|
|
|
1629
1629
|
class: "border-b-1"
|
|
1630
1630
|
}, {
|
|
1631
1631
|
default: k(() => [
|
|
1632
|
-
|
|
1632
|
+
c(e.$slots, "before-rows")
|
|
1633
1633
|
]),
|
|
1634
1634
|
_: 3
|
|
1635
1635
|
}, 8, ["variant"])) : h("", !0),
|
|
1636
|
-
e.loading ? (r(!0), p(Q, { key: 1 }, Y(e.skeletonsLength, (
|
|
1637
|
-
key:
|
|
1636
|
+
e.loading ? (r(!0), p(Q, { key: 1 }, Y(e.skeletonsLength, (i) => (r(), y(P, {
|
|
1637
|
+
key: i,
|
|
1638
1638
|
variant: e.variant,
|
|
1639
1639
|
interactive: e.interactiveRows
|
|
1640
1640
|
}, {
|
|
1641
1641
|
default: k(() => [
|
|
1642
|
-
e.features.selecting ? (r(), y(
|
|
1642
|
+
e.features.selecting ? (r(), y(F, {
|
|
1643
1643
|
key: 0,
|
|
1644
1644
|
column: { name: "_check", stickiness: "start" },
|
|
1645
1645
|
"sticky-offset": e.stickyOffsets.start.get("_check"),
|
|
@@ -1647,11 +1647,11 @@ function ea(e, t, n, v, g, u) {
|
|
|
1647
1647
|
override: !0
|
|
1648
1648
|
}, {
|
|
1649
1649
|
default: k(() => [
|
|
1650
|
-
|
|
1650
|
+
E(s)
|
|
1651
1651
|
]),
|
|
1652
1652
|
_: 1
|
|
1653
1653
|
}, 8, ["sticky-offset", "variant"])) : h("", !0),
|
|
1654
|
-
(r(!0), p(Q, null, Y(e.actualColumns, (m) => (r(), y(
|
|
1654
|
+
(r(!0), p(Q, null, Y(e.actualColumns, (m) => (r(), y(F, {
|
|
1655
1655
|
key: m.name,
|
|
1656
1656
|
column: m,
|
|
1657
1657
|
features: e.features,
|
|
@@ -1660,25 +1660,25 @@ function ea(e, t, n, v, g, u) {
|
|
|
1660
1660
|
override: !0
|
|
1661
1661
|
}, {
|
|
1662
1662
|
default: k(() => [
|
|
1663
|
-
|
|
1664
|
-
|
|
1663
|
+
c(e.$slots, "column-loading", { column: m }, () => [
|
|
1664
|
+
E(s)
|
|
1665
1665
|
])
|
|
1666
1666
|
]),
|
|
1667
1667
|
_: 2
|
|
1668
1668
|
}, 1032, ["column", "features", "sticky-offset", "variant"]))), 128))
|
|
1669
1669
|
]),
|
|
1670
1670
|
_: 2
|
|
1671
|
-
}, 1032, ["variant", "interactive"]))), 128)) : e.items.length > 0 ? (r(!0), p(Q, { key: 2 }, Y(e.items, (
|
|
1672
|
-
key:
|
|
1671
|
+
}, 1032, ["variant", "interactive"]))), 128)) : e.items.length > 0 ? (r(!0), p(Q, { key: 2 }, Y(e.items, (i) => (r(), y(P, {
|
|
1672
|
+
key: i.id,
|
|
1673
1673
|
variant: e.variant,
|
|
1674
|
-
selected: e.selectingModel.includes(
|
|
1674
|
+
selected: e.selectingModel.includes(i.id),
|
|
1675
1675
|
interactive: e.interactiveRows,
|
|
1676
|
-
onMouseenter: () => e.handleMouseEnterRow(
|
|
1677
|
-
onMouseleave: () => e.handleMouseLeaveRow(
|
|
1678
|
-
onClick: () => e.handleRowClick(
|
|
1676
|
+
onMouseenter: () => e.handleMouseEnterRow(i),
|
|
1677
|
+
onMouseleave: () => e.handleMouseLeaveRow(i),
|
|
1678
|
+
onClick: () => e.handleRowClick(i)
|
|
1679
1679
|
}, {
|
|
1680
1680
|
default: k(() => [
|
|
1681
|
-
e.features.selecting ? (r(), y(
|
|
1681
|
+
e.features.selecting ? (r(), y(F, {
|
|
1682
1682
|
key: 0,
|
|
1683
1683
|
column: { name: "_check", stickiness: "start" },
|
|
1684
1684
|
"sticky-offset": e.stickyOffsets.start.get("_check"),
|
|
@@ -1686,37 +1686,37 @@ function ea(e, t, n, v, g, u) {
|
|
|
1686
1686
|
override: !0,
|
|
1687
1687
|
"force-state": "none",
|
|
1688
1688
|
class: "md:!py-none",
|
|
1689
|
-
onMouseenter: () => e.handleMouseEnterCell(
|
|
1690
|
-
onMouseleave: () => e.handleMouseLeaveCell(
|
|
1689
|
+
onMouseenter: () => e.handleMouseEnterCell(i, "selecting", e.selectingModel.includes(i.id)),
|
|
1690
|
+
onMouseleave: () => e.handleMouseLeaveCell(i, "selecting", e.selectingModel.includes(i.id))
|
|
1691
1691
|
}, {
|
|
1692
1692
|
default: k(() => [
|
|
1693
|
-
|
|
1693
|
+
E(O, {
|
|
1694
1694
|
modelValue: e.selectingModel,
|
|
1695
1695
|
"onUpdate:modelValue": t[4] || (t[4] = (m) => e.selectingModel = m),
|
|
1696
|
-
value:
|
|
1696
|
+
value: i.id,
|
|
1697
1697
|
disabled: e.selectingDisabled
|
|
1698
1698
|
}, null, 8, ["modelValue", "value", "disabled"])
|
|
1699
1699
|
]),
|
|
1700
1700
|
_: 2
|
|
1701
1701
|
}, 1032, ["sticky-offset", "variant", "onMouseenter", "onMouseleave"])) : h("", !0),
|
|
1702
|
-
(r(!0), p(Q, null, Y(e.actualColumns, (m) => (r(), y(
|
|
1702
|
+
(r(!0), p(Q, null, Y(e.actualColumns, (m) => (r(), y(F, {
|
|
1703
1703
|
key: m.name,
|
|
1704
|
-
"model-value":
|
|
1704
|
+
"model-value": i[m.name],
|
|
1705
1705
|
column: m,
|
|
1706
1706
|
features: e.features,
|
|
1707
1707
|
"sticky-offset": m.stickiness === "start" ? e.stickyOffsets.start.get(m.name) : m.stickiness === "end" ? e.stickyOffsets.end.get(m.name) : void 0,
|
|
1708
1708
|
variant: e.variant,
|
|
1709
|
-
onInput: (J) => e.onInput(
|
|
1709
|
+
onInput: (J) => e.onInput(i, m.name, J),
|
|
1710
1710
|
onFocusin: t[5] || (t[5] = (J) => e.scrollTo(J)),
|
|
1711
|
-
onMouseenter: () => e.handleMouseEnterCell(
|
|
1712
|
-
onMouseleave: () => e.handleMouseLeaveCell(
|
|
1711
|
+
onMouseenter: () => e.handleMouseEnterCell(i, m.name, i[m.name]),
|
|
1712
|
+
onMouseleave: () => e.handleMouseLeaveCell(i, m.name, i[m.name])
|
|
1713
1713
|
}, {
|
|
1714
1714
|
default: k(() => [
|
|
1715
|
-
|
|
1715
|
+
c(e.$slots, m.name, {
|
|
1716
1716
|
column: m,
|
|
1717
|
-
item:
|
|
1717
|
+
item: i
|
|
1718
1718
|
}, () => [
|
|
1719
|
-
_(x(
|
|
1719
|
+
_(x(i[m.name]), 1)
|
|
1720
1720
|
])
|
|
1721
1721
|
]),
|
|
1722
1722
|
_: 2
|
|
@@ -1725,11 +1725,11 @@ function ea(e, t, n, v, g, u) {
|
|
|
1725
1725
|
_: 2
|
|
1726
1726
|
}, 1032, ["variant", "selected", "interactive", "onMouseenter", "onMouseleave", "onClick"]))), 128)) : e.$slots.noSearchResults && (e.features.filtering && e.filteringModel || e.features.searching && e.searchingModel) ? (r(), y(V, {
|
|
1727
1727
|
key: 3,
|
|
1728
|
-
class:
|
|
1728
|
+
class: u(["col-span-full"]),
|
|
1729
1729
|
variant: e.variant
|
|
1730
1730
|
}, {
|
|
1731
1731
|
default: k(() => [
|
|
1732
|
-
|
|
1732
|
+
c(e.$slots, "noSearchResults", {
|
|
1733
1733
|
filter: e.filteringModel,
|
|
1734
1734
|
search: e.searchingModel
|
|
1735
1735
|
})
|
|
@@ -1737,11 +1737,11 @@ function ea(e, t, n, v, g, u) {
|
|
|
1737
1737
|
_: 3
|
|
1738
1738
|
}, 8, ["variant"])) : e.$slots.empty ? (r(), y(V, {
|
|
1739
1739
|
key: 4,
|
|
1740
|
-
class:
|
|
1740
|
+
class: u(["col-span-full"]),
|
|
1741
1741
|
variant: e.variant
|
|
1742
1742
|
}, {
|
|
1743
1743
|
default: k(() => [
|
|
1744
|
-
|
|
1744
|
+
c(e.$slots, "empty")
|
|
1745
1745
|
]),
|
|
1746
1746
|
_: 3
|
|
1747
1747
|
}, 8, ["variant"])) : h("", !0),
|
|
@@ -1750,7 +1750,7 @@ function ea(e, t, n, v, g, u) {
|
|
|
1750
1750
|
variant: e.variant
|
|
1751
1751
|
}, {
|
|
1752
1752
|
default: k(() => [
|
|
1753
|
-
|
|
1753
|
+
c(e.$slots, "after-rows")
|
|
1754
1754
|
]),
|
|
1755
1755
|
_: 3
|
|
1756
1756
|
}, 8, ["variant"])) : h("", !0)
|
|
@@ -1762,14 +1762,14 @@ function ea(e, t, n, v, g, u) {
|
|
|
1762
1762
|
}, 8, ["class", "style", "columns", "features"]),
|
|
1763
1763
|
e.$slots["extra-row"] ? (r(), y(q, { key: 2 }, {
|
|
1764
1764
|
default: k(() => [
|
|
1765
|
-
|
|
1766
|
-
class:
|
|
1765
|
+
E(U, {
|
|
1766
|
+
class: u(["shrink-0"]),
|
|
1767
1767
|
variant: e.variant
|
|
1768
1768
|
}, {
|
|
1769
1769
|
default: k(() => [
|
|
1770
|
-
|
|
1770
|
+
E(j, null, {
|
|
1771
1771
|
default: k(() => [
|
|
1772
|
-
|
|
1772
|
+
c(e.$slots, "extra-row")
|
|
1773
1773
|
]),
|
|
1774
1774
|
_: 3
|
|
1775
1775
|
})
|
|
@@ -1781,7 +1781,7 @@ function ea(e, t, n, v, g, u) {
|
|
|
1781
1781
|
})) : h("", !0),
|
|
1782
1782
|
e.$slots.actions || e.showSelectingCouter || e.features.paging ? (r(), y(L, {
|
|
1783
1783
|
key: 3,
|
|
1784
|
-
class:
|
|
1784
|
+
class: u(["shrink-0"])
|
|
1785
1785
|
}, Z({ _: 2 }, [
|
|
1786
1786
|
e.features.selecting && e.selectingModel.length > 0 ? {
|
|
1787
1787
|
name: "status",
|
|
@@ -1793,17 +1793,17 @@ function ea(e, t, n, v, g, u) {
|
|
|
1793
1793
|
e.$slots.actions ? {
|
|
1794
1794
|
name: "actions",
|
|
1795
1795
|
fn: k(() => [
|
|
1796
|
-
|
|
1796
|
+
c(e.$slots, "actions")
|
|
1797
1797
|
]),
|
|
1798
1798
|
key: "1"
|
|
1799
1799
|
} : void 0,
|
|
1800
1800
|
e.features.paging ? {
|
|
1801
1801
|
name: "paging",
|
|
1802
1802
|
fn: k(() => [
|
|
1803
|
-
|
|
1803
|
+
E(B, {
|
|
1804
1804
|
ref: "pagination",
|
|
1805
1805
|
modelValue: e.pagingModel,
|
|
1806
|
-
"onUpdate:modelValue": t[6] || (t[6] = (
|
|
1806
|
+
"onUpdate:modelValue": t[6] || (t[6] = (i) => e.pagingModel = i),
|
|
1807
1807
|
length: e.features.paging.length,
|
|
1808
1808
|
options: e.features.paging.options
|
|
1809
1809
|
}, null, 8, ["modelValue", "length", "options"])
|
|
@@ -1828,11 +1828,11 @@ export {
|
|
|
1828
1828
|
gt as i,
|
|
1829
1829
|
yt as j,
|
|
1830
1830
|
Dt as k,
|
|
1831
|
-
|
|
1831
|
+
Gt as l,
|
|
1832
1832
|
zt as m,
|
|
1833
|
-
|
|
1833
|
+
Et as n,
|
|
1834
1834
|
Ut as o,
|
|
1835
1835
|
Kt as p,
|
|
1836
1836
|
Zt as q
|
|
1837
1837
|
};
|
|
1838
|
-
//# sourceMappingURL=OrDataGrid-
|
|
1838
|
+
//# sourceMappingURL=OrDataGrid-CjCdOIvf.mjs.map
|