@onereach/ui-components 26.4.1-beta.5876.0 → 26.4.1-beta.5878.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-B7h2wGXD.mjs → OrDataGrid-C_RY7OZe.mjs} +186 -185
- package/dist/esm/OrDataGrid-C_RY7OZe.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/package.json +3 -3
- package/dist/esm/OrDataGrid-B7h2wGXD.mjs.map +0 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { O as ee } from "./OrCheckbox-WPBzlvaV.mjs";
|
|
2
|
-
import { O as
|
|
3
|
-
import { O as
|
|
2
|
+
import { O as re } from "./OrPagination-BXzDa-Su.mjs";
|
|
3
|
+
import { O as oe } from "./OrSearch-CRFuNmg2.mjs";
|
|
4
4
|
import { O as ne } from "./OrSkeletonArea.vue_vue_type_script_lang-jgRhbZ0X.mjs";
|
|
5
|
-
import { defineComponent as G, ref as
|
|
5
|
+
import { defineComponent as G, ref as D, computed as l, openBlock as r, createElementBlock as p, normalizeClass as f, renderSlot as i, createCommentVNode as g, resolveComponent as m, normalizeStyle as K, Fragment as q, createBlock as y, watch as te, createElementVNode as le, withModifiers as x, createVNode as H, mergeProps as se, withCtx as b, onMounted as ie, createSlots as Y, normalizeProps as de, guardReactiveProps as ue, renderList as Q, createTextVNode as Z, toDisplayString as _ } from "vue";
|
|
6
6
|
import { _ as C } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
7
7
|
import { O as ce } from "./OrDatePicker-D-Do0tSf.mjs";
|
|
8
8
|
import { O as me } from "./OrDateTimePicker-myqJkQxy.mjs";
|
|
@@ -40,7 +40,7 @@ const $e = [
|
|
|
40
40
|
"root"
|
|
41
41
|
],
|
|
42
42
|
setup() {
|
|
43
|
-
const e =
|
|
43
|
+
const e = D(), t = l(() => [
|
|
44
44
|
"or-data-grid-footer-v3",
|
|
45
45
|
...$e
|
|
46
46
|
]), n = l(() => [
|
|
@@ -54,21 +54,21 @@ const $e = [
|
|
|
54
54
|
}
|
|
55
55
|
}), Se = {
|
|
56
56
|
key: 1,
|
|
57
|
-
class: /* @__PURE__ */
|
|
57
|
+
class: /* @__PURE__ */ f(["grow"])
|
|
58
58
|
};
|
|
59
|
-
function Te(e, t, n, h, v,
|
|
60
|
-
return
|
|
59
|
+
function Te(e, t, n, h, v, u) {
|
|
60
|
+
return r(), p("div", {
|
|
61
61
|
ref: "root",
|
|
62
|
-
class:
|
|
62
|
+
class: f(e.rootStyles)
|
|
63
63
|
}, [
|
|
64
|
-
e.$slots.status ? (
|
|
64
|
+
e.$slots.status ? (r(), p("div", {
|
|
65
65
|
key: 0,
|
|
66
|
-
class:
|
|
66
|
+
class: f(e.statusStyles)
|
|
67
67
|
}, [
|
|
68
68
|
i(e.$slots, "status")
|
|
69
69
|
], 2)) : g("", !0),
|
|
70
70
|
i(e.$slots, "actions"),
|
|
71
|
-
e.$slots.paging ? (
|
|
71
|
+
e.$slots.paging ? (r(), p("div", Se)) : g("", !0),
|
|
72
72
|
i(e.$slots, "paging")
|
|
73
73
|
], 2);
|
|
74
74
|
}
|
|
@@ -88,7 +88,7 @@ const Ge = /* @__PURE__ */ C(De, [["render", Te]]), Ce = [
|
|
|
88
88
|
"root"
|
|
89
89
|
],
|
|
90
90
|
setup() {
|
|
91
|
-
const e =
|
|
91
|
+
const e = D(), t = l(() => [
|
|
92
92
|
"or-data-grid-header-v3",
|
|
93
93
|
...Ce
|
|
94
94
|
]), n = l(() => [
|
|
@@ -102,20 +102,20 @@ const Ge = /* @__PURE__ */ C(De, [["render", Te]]), Ce = [
|
|
|
102
102
|
}
|
|
103
103
|
}), Re = {
|
|
104
104
|
key: 1,
|
|
105
|
-
class: /* @__PURE__ */
|
|
105
|
+
class: /* @__PURE__ */ f(["grow"])
|
|
106
106
|
};
|
|
107
|
-
function Ie(e, t, n, h, v,
|
|
108
|
-
return
|
|
107
|
+
function Ie(e, t, n, h, v, u) {
|
|
108
|
+
return r(), p("div", {
|
|
109
109
|
ref: "root",
|
|
110
|
-
class:
|
|
110
|
+
class: f(e.rootStyles)
|
|
111
111
|
}, [
|
|
112
|
-
e.$slots.title ? (
|
|
112
|
+
e.$slots.title ? (r(), p("div", {
|
|
113
113
|
key: 0,
|
|
114
|
-
class:
|
|
114
|
+
class: f(e.titleStyles)
|
|
115
115
|
}, [
|
|
116
116
|
i(e.$slots, "title")
|
|
117
117
|
], 2)) : g("", !0),
|
|
118
|
-
e.$slots.searching || e.$slots.extraActions ? (
|
|
118
|
+
e.$slots.searching || e.$slots.extraActions ? (r(), p("div", Re)) : g("", !0),
|
|
119
119
|
i(e.$slots, "searching"),
|
|
120
120
|
e.$slots.extraActions ? i(e.$slots, "extraActions", { key: 2 }) : g("", !0)
|
|
121
121
|
], 2);
|
|
@@ -203,7 +203,7 @@ const B = "52px", Fe = [
|
|
|
203
203
|
"root"
|
|
204
204
|
],
|
|
205
205
|
setup(e, t) {
|
|
206
|
-
const n =
|
|
206
|
+
const n = D(), h = l(() => {
|
|
207
207
|
var O;
|
|
208
208
|
return [
|
|
209
209
|
"or-data-grid-table-content-cell-v3",
|
|
@@ -236,7 +236,7 @@ const B = "52px", Fe = [
|
|
|
236
236
|
return {
|
|
237
237
|
justifyContent: "center"
|
|
238
238
|
};
|
|
239
|
-
}),
|
|
239
|
+
}), u = l(() => {
|
|
240
240
|
var V, R;
|
|
241
241
|
const O = ((V = e.column) == null ? void 0 : V.wrapping) ?? (e.variant === k.Dynamic && !((R = e.column) != null && R.control));
|
|
242
242
|
return [
|
|
@@ -251,7 +251,7 @@ const B = "52px", Fe = [
|
|
|
251
251
|
set: (O) => {
|
|
252
252
|
t.emit("input", O);
|
|
253
253
|
}
|
|
254
|
-
}),
|
|
254
|
+
}), S = l(() => {
|
|
255
255
|
var O;
|
|
256
256
|
return (O = e.column) == null ? void 0 : O.control;
|
|
257
257
|
});
|
|
@@ -259,42 +259,42 @@ const B = "52px", Fe = [
|
|
|
259
259
|
root: n,
|
|
260
260
|
rootStyles: h,
|
|
261
261
|
rootInlineStyles: v,
|
|
262
|
-
contentStyles:
|
|
262
|
+
contentStyles: u,
|
|
263
263
|
contentInlineStyles: T,
|
|
264
264
|
model: M,
|
|
265
|
-
control:
|
|
265
|
+
control: S,
|
|
266
266
|
DATA_GRID_DEFAULT_MIN_WIDTH: B
|
|
267
267
|
};
|
|
268
268
|
}
|
|
269
269
|
});
|
|
270
|
-
function Pe(e, t, n, h, v,
|
|
271
|
-
const T =
|
|
272
|
-
return
|
|
270
|
+
function Pe(e, t, n, h, v, u) {
|
|
271
|
+
const T = m("OrInput"), M = m("OrRating"), S = m("OrSelect"), O = m("OrCheckbox"), V = m("OrSwitch"), R = m("OrDatePicker"), I = m("OrTimePicker"), o = m("OrDateTimePicker"), c = m("OrTagInput");
|
|
272
|
+
return r(), p("div", {
|
|
273
273
|
ref: "root",
|
|
274
|
-
class:
|
|
274
|
+
class: f(e.rootStyles),
|
|
275
275
|
style: K(e.rootInlineStyles)
|
|
276
276
|
}, [
|
|
277
|
-
e.override ? i(e.$slots, "default", { key: 0 }) : e.control ? (
|
|
278
|
-
e.control.type === "text" ? (
|
|
277
|
+
e.override ? i(e.$slots, "default", { key: 0 }) : e.control ? (r(), p(q, { key: 1 }, [
|
|
278
|
+
e.control.type === "text" ? (r(), y(T, {
|
|
279
279
|
key: 0,
|
|
280
280
|
modelValue: e.model,
|
|
281
281
|
"onUpdate:modelValue": t[0] || (t[0] = (d) => e.model = d),
|
|
282
282
|
type: "text",
|
|
283
283
|
variant: "embedded"
|
|
284
284
|
}, null, 8, ["modelValue"])) : g("", !0),
|
|
285
|
-
e.control.type === "number" ? (
|
|
285
|
+
e.control.type === "number" ? (r(), y(T, {
|
|
286
286
|
key: 1,
|
|
287
287
|
modelValue: e.model,
|
|
288
288
|
"onUpdate:modelValue": t[1] || (t[1] = (d) => e.model = d),
|
|
289
289
|
type: "number",
|
|
290
290
|
variant: "embedded"
|
|
291
291
|
}, null, 8, ["modelValue"])) : g("", !0),
|
|
292
|
-
e.control.type === "rating" ? (
|
|
292
|
+
e.control.type === "rating" ? (r(), y(M, {
|
|
293
293
|
key: 2,
|
|
294
294
|
modelValue: e.model,
|
|
295
295
|
"onUpdate:modelValue": t[2] || (t[2] = (d) => e.model = d)
|
|
296
296
|
}, null, 8, ["modelValue"])) : g("", !0),
|
|
297
|
-
e.control.type === "select" ? (
|
|
297
|
+
e.control.type === "select" ? (r(), y(S, {
|
|
298
298
|
key: 3,
|
|
299
299
|
modelValue: e.model,
|
|
300
300
|
"onUpdate:modelValue": t[3] || (t[3] = (d) => e.model = d),
|
|
@@ -302,46 +302,46 @@ function Pe(e, t, n, h, v, f) {
|
|
|
302
302
|
variant: "embedded",
|
|
303
303
|
anchor: e.root
|
|
304
304
|
}, null, 8, ["modelValue", "options", "anchor"])) : g("", !0),
|
|
305
|
-
e.control.type === "checkbox" ? (
|
|
305
|
+
e.control.type === "checkbox" ? (r(), y(O, {
|
|
306
306
|
key: 4,
|
|
307
307
|
modelValue: e.model,
|
|
308
308
|
"onUpdate:modelValue": t[4] || (t[4] = (d) => e.model = d)
|
|
309
309
|
}, null, 8, ["modelValue"])) : g("", !0),
|
|
310
|
-
e.control.type === "switch" ? (
|
|
310
|
+
e.control.type === "switch" ? (r(), y(V, {
|
|
311
311
|
key: 5,
|
|
312
312
|
modelValue: e.model,
|
|
313
313
|
"onUpdate:modelValue": t[5] || (t[5] = (d) => e.model = d)
|
|
314
314
|
}, null, 8, ["modelValue"])) : g("", !0),
|
|
315
|
-
e.control.type === "date" ? (
|
|
315
|
+
e.control.type === "date" ? (r(), y(R, {
|
|
316
316
|
key: 6,
|
|
317
317
|
modelValue: e.model,
|
|
318
318
|
"onUpdate:modelValue": t[6] || (t[6] = (d) => e.model = d),
|
|
319
319
|
variant: "embedded",
|
|
320
320
|
anchor: e.root
|
|
321
321
|
}, null, 8, ["modelValue", "anchor"])) : g("", !0),
|
|
322
|
-
e.control.type === "time" ? (
|
|
322
|
+
e.control.type === "time" ? (r(), y(I, {
|
|
323
323
|
key: 7,
|
|
324
324
|
modelValue: e.model,
|
|
325
325
|
"onUpdate:modelValue": t[7] || (t[7] = (d) => e.model = d),
|
|
326
326
|
variant: "embedded",
|
|
327
327
|
anchor: e.root
|
|
328
328
|
}, null, 8, ["modelValue", "anchor"])) : g("", !0),
|
|
329
|
-
e.control.type === "datetime" ? (
|
|
329
|
+
e.control.type === "datetime" ? (r(), y(o, {
|
|
330
330
|
key: 8,
|
|
331
331
|
modelValue: e.model,
|
|
332
332
|
"onUpdate:modelValue": t[8] || (t[8] = (d) => e.model = d),
|
|
333
333
|
variant: "embedded",
|
|
334
334
|
anchor: e.root
|
|
335
335
|
}, null, 8, ["modelValue", "anchor"])) : g("", !0),
|
|
336
|
-
e.control.type === "tags" ? (
|
|
336
|
+
e.control.type === "tags" ? (r(), y(c, {
|
|
337
337
|
key: 9,
|
|
338
338
|
modelValue: e.model,
|
|
339
339
|
"onUpdate:modelValue": t[9] || (t[9] = (d) => e.model = d),
|
|
340
340
|
variant: "embedded"
|
|
341
341
|
}, null, 8, ["modelValue"])) : g("", !0)
|
|
342
|
-
], 64)) : (
|
|
342
|
+
], 64)) : (r(), p("div", {
|
|
343
343
|
key: 2,
|
|
344
|
-
class:
|
|
344
|
+
class: f(e.contentStyles),
|
|
345
345
|
style: K(e.contentInlineStyles)
|
|
346
346
|
}, [
|
|
347
347
|
i(e.$slots, "default")
|
|
@@ -407,7 +407,7 @@ const ze = /* @__PURE__ */ C(Ee, [["render", Pe]]), je = [
|
|
|
407
407
|
"root"
|
|
408
408
|
],
|
|
409
409
|
setup(e) {
|
|
410
|
-
const t =
|
|
410
|
+
const t = D(), n = l(() => [
|
|
411
411
|
"or-data-grid-table-content-row-v3",
|
|
412
412
|
...je,
|
|
413
413
|
...Ne[e.variant],
|
|
@@ -419,10 +419,10 @@ const ze = /* @__PURE__ */ C(Ee, [["render", Pe]]), je = [
|
|
|
419
419
|
};
|
|
420
420
|
}
|
|
421
421
|
}), Le = ["selected"];
|
|
422
|
-
function Ae(e, t, n, h, v,
|
|
423
|
-
return
|
|
422
|
+
function Ae(e, t, n, h, v, u) {
|
|
423
|
+
return r(), p("div", {
|
|
424
424
|
ref: "root",
|
|
425
|
-
class:
|
|
425
|
+
class: f(e.rootStyles),
|
|
426
426
|
selected: e.selected
|
|
427
427
|
}, [
|
|
428
428
|
i(e.$slots, "default")
|
|
@@ -437,7 +437,7 @@ const qe = /* @__PURE__ */ C(Ue, [["render", Ae]]), Be = [
|
|
|
437
437
|
"root"
|
|
438
438
|
],
|
|
439
439
|
setup() {
|
|
440
|
-
const e =
|
|
440
|
+
const e = D(), t = l(() => [
|
|
441
441
|
"or-data-grid-table-content-v3",
|
|
442
442
|
...Be
|
|
443
443
|
]);
|
|
@@ -447,10 +447,10 @@ const qe = /* @__PURE__ */ C(Ue, [["render", Ae]]), Be = [
|
|
|
447
447
|
};
|
|
448
448
|
}
|
|
449
449
|
});
|
|
450
|
-
function Xe(e, t, n, h, v,
|
|
451
|
-
return
|
|
450
|
+
function Xe(e, t, n, h, v, u) {
|
|
451
|
+
return r(), p("div", {
|
|
452
452
|
ref: "root",
|
|
453
|
-
class:
|
|
453
|
+
class: f(e.rootStyles)
|
|
454
454
|
}, [
|
|
455
455
|
i(e.$slots, "default")
|
|
456
456
|
], 2);
|
|
@@ -471,7 +471,7 @@ const Je = /* @__PURE__ */ C(Ke, [["render", Xe]]), Qe = [
|
|
|
471
471
|
"root"
|
|
472
472
|
],
|
|
473
473
|
setup() {
|
|
474
|
-
const e =
|
|
474
|
+
const e = D(), t = l(() => [
|
|
475
475
|
"or-data-grid-table-footer-cell-v3",
|
|
476
476
|
...Qe
|
|
477
477
|
]);
|
|
@@ -481,10 +481,10 @@ const Je = /* @__PURE__ */ C(Ke, [["render", Xe]]), Qe = [
|
|
|
481
481
|
};
|
|
482
482
|
}
|
|
483
483
|
});
|
|
484
|
-
function Ze(e, t, n, h, v,
|
|
485
|
-
return
|
|
484
|
+
function Ze(e, t, n, h, v, u) {
|
|
485
|
+
return r(), p("div", {
|
|
486
486
|
ref: "root",
|
|
487
|
-
class:
|
|
487
|
+
class: f(e.rootStyles)
|
|
488
488
|
}, [
|
|
489
489
|
i(e.$slots, "default")
|
|
490
490
|
], 2);
|
|
@@ -531,7 +531,7 @@ const _e = /* @__PURE__ */ C(Ye, [["render", Ze]]), xe = [
|
|
|
531
531
|
"root"
|
|
532
532
|
],
|
|
533
533
|
setup(e) {
|
|
534
|
-
const t =
|
|
534
|
+
const t = D(), n = l(() => [
|
|
535
535
|
"or-data-grid-table-footer-row-v3",
|
|
536
536
|
...xe,
|
|
537
537
|
...et[e.variant]
|
|
@@ -542,15 +542,15 @@ const _e = /* @__PURE__ */ C(Ye, [["render", Ze]]), xe = [
|
|
|
542
542
|
};
|
|
543
543
|
}
|
|
544
544
|
});
|
|
545
|
-
function at(e, t, n, h, v,
|
|
546
|
-
return
|
|
545
|
+
function at(e, t, n, h, v, u) {
|
|
546
|
+
return r(), p("div", {
|
|
547
547
|
ref: "root",
|
|
548
|
-
class:
|
|
548
|
+
class: f(e.rootStyles)
|
|
549
549
|
}, [
|
|
550
550
|
i(e.$slots, "default")
|
|
551
551
|
], 2);
|
|
552
552
|
}
|
|
553
|
-
const
|
|
553
|
+
const rt = /* @__PURE__ */ C(tt, [["render", at]]), ot = [
|
|
554
554
|
// Layout
|
|
555
555
|
"contents"
|
|
556
556
|
], nt = G({
|
|
@@ -559,9 +559,9 @@ const ot = /* @__PURE__ */ C(tt, [["render", at]]), rt = [
|
|
|
559
559
|
"root"
|
|
560
560
|
],
|
|
561
561
|
setup() {
|
|
562
|
-
const e =
|
|
562
|
+
const e = D(), t = l(() => [
|
|
563
563
|
"or-data-grid-table-footer-v3",
|
|
564
|
-
...
|
|
564
|
+
...ot
|
|
565
565
|
]);
|
|
566
566
|
return {
|
|
567
567
|
root: e,
|
|
@@ -569,10 +569,10 @@ const ot = /* @__PURE__ */ C(tt, [["render", at]]), rt = [
|
|
|
569
569
|
};
|
|
570
570
|
}
|
|
571
571
|
});
|
|
572
|
-
function lt(e, t, n, h, v,
|
|
573
|
-
return
|
|
572
|
+
function lt(e, t, n, h, v, u) {
|
|
573
|
+
return r(), p("div", {
|
|
574
574
|
ref: "root",
|
|
575
|
-
class:
|
|
575
|
+
class: f(e.rootStyles)
|
|
576
576
|
}, [
|
|
577
577
|
i(e.$slots, "default")
|
|
578
578
|
], 2);
|
|
@@ -641,31 +641,31 @@ const st = /* @__PURE__ */ C(nt, [["render", lt]]), it = [
|
|
|
641
641
|
"root"
|
|
642
642
|
],
|
|
643
643
|
setup(e, t) {
|
|
644
|
-
const n =
|
|
645
|
-
var
|
|
646
|
-
return !!((
|
|
644
|
+
const n = D(), h = l(() => {
|
|
645
|
+
var o, c, d;
|
|
646
|
+
return !!((o = e.features) != null && o.sorting) && !!((c = e.column) != null && c.name) && ((d = e.column) == null ? void 0 : d.sorting) !== !1;
|
|
647
647
|
}), v = l(() => {
|
|
648
|
-
var
|
|
649
|
-
return !!((
|
|
650
|
-
}),
|
|
651
|
-
var
|
|
648
|
+
var o, c;
|
|
649
|
+
return !!((o = e.features) != null && o.resizing) && !!((c = e.column) != null && c.name);
|
|
650
|
+
}), u = l(() => {
|
|
651
|
+
var o;
|
|
652
652
|
return [
|
|
653
653
|
"or-data-grid-table-header-cell-v3",
|
|
654
654
|
"relative",
|
|
655
655
|
...it,
|
|
656
|
-
...(
|
|
656
|
+
...(o = e.column) != null && o.stickiness ? [`sticky-${e.column.stickiness}`] : [],
|
|
657
657
|
...h.value ? ["interactivity-click"] : []
|
|
658
658
|
];
|
|
659
659
|
}), T = l(() => [
|
|
660
660
|
"or-data-grid-table-header-cell-resize-handle-v3",
|
|
661
661
|
...dt
|
|
662
662
|
]), M = l(() => {
|
|
663
|
-
var
|
|
663
|
+
var o, c;
|
|
664
664
|
return {
|
|
665
|
-
minWidth: ((
|
|
666
|
-
maxWidth: (
|
|
665
|
+
minWidth: ((o = e.column) == null ? void 0 : o.minWidth) || B,
|
|
666
|
+
maxWidth: (c = e.column) == null ? void 0 : c.maxWidth
|
|
667
667
|
};
|
|
668
|
-
}),
|
|
668
|
+
}), S = l(() => {
|
|
669
669
|
if (e.column)
|
|
670
670
|
switch (e.column.stickiness) {
|
|
671
671
|
case "start":
|
|
@@ -693,16 +693,16 @@ const st = /* @__PURE__ */ C(nt, [["render", lt]]), it = [
|
|
|
693
693
|
};
|
|
694
694
|
}), O = l({
|
|
695
695
|
get: () => {
|
|
696
|
-
var
|
|
696
|
+
var o, c;
|
|
697
697
|
if (h.value)
|
|
698
|
-
return ((
|
|
698
|
+
return ((o = e.modelValue) == null ? void 0 : o.column) === ((c = e.column) == null ? void 0 : c.name) ? e.modelValue : void 0;
|
|
699
699
|
},
|
|
700
|
-
set: (
|
|
701
|
-
t.emit("update:modelValue",
|
|
700
|
+
set: (o) => {
|
|
701
|
+
t.emit("update:modelValue", o);
|
|
702
702
|
}
|
|
703
703
|
});
|
|
704
704
|
function V() {
|
|
705
|
-
var
|
|
705
|
+
var o;
|
|
706
706
|
if (h.value)
|
|
707
707
|
if (O.value)
|
|
708
708
|
O.value = {
|
|
@@ -713,16 +713,16 @@ const st = /* @__PURE__ */ C(nt, [["render", lt]]), it = [
|
|
|
713
713
|
if (!e.column)
|
|
714
714
|
throw new Error("[OrDataGridTableHeaderCell]: `column` must be specified.");
|
|
715
715
|
O.value = {
|
|
716
|
-
column: ((
|
|
716
|
+
column: ((o = e.column) == null ? void 0 : o.name) || "_check",
|
|
717
717
|
direction: "asc"
|
|
718
718
|
};
|
|
719
719
|
}
|
|
720
720
|
}
|
|
721
|
-
function R(
|
|
721
|
+
function R(o) {
|
|
722
722
|
var j;
|
|
723
|
-
const
|
|
723
|
+
const c = o.pageX, d = ((j = n.value) == null ? void 0 : j.offsetWidth) || 0, W = (X) => {
|
|
724
724
|
var U, L;
|
|
725
|
-
const J = X.pageX -
|
|
725
|
+
const J = X.pageX - c;
|
|
726
726
|
let E = Math.max(0, d + J);
|
|
727
727
|
const P = ((U = e.column) == null ? void 0 : U.minWidth) || B;
|
|
728
728
|
if (P && (P.endsWith("px") || !isNaN(Number(P)))) {
|
|
@@ -744,20 +744,20 @@ const st = /* @__PURE__ */ C(nt, [["render", lt]]), it = [
|
|
|
744
744
|
n,
|
|
745
745
|
I,
|
|
746
746
|
() => {
|
|
747
|
-
var
|
|
748
|
-
return (
|
|
747
|
+
var o;
|
|
748
|
+
return (o = e.column) == null ? void 0 : o.stickiness;
|
|
749
749
|
}
|
|
750
750
|
], ([
|
|
751
|
-
|
|
752
|
-
|
|
751
|
+
o,
|
|
752
|
+
c
|
|
753
753
|
], [
|
|
754
754
|
d
|
|
755
755
|
]) => {
|
|
756
|
-
d && d !==
|
|
756
|
+
d && d !== o && t.emit("remove:scrollOffset", d), t.emit("update:scrollOffset", o, c, e.column);
|
|
757
757
|
}), {
|
|
758
758
|
root: n,
|
|
759
|
-
rootStyles:
|
|
760
|
-
rootInlineStyles:
|
|
759
|
+
rootStyles: u,
|
|
760
|
+
rootInlineStyles: S,
|
|
761
761
|
wrapInlineStyle: M,
|
|
762
762
|
resizeHandleStyles: T,
|
|
763
763
|
isSortable: h,
|
|
@@ -769,27 +769,27 @@ const st = /* @__PURE__ */ C(nt, [["render", lt]]), it = [
|
|
|
769
769
|
};
|
|
770
770
|
}
|
|
771
771
|
});
|
|
772
|
-
function ct(e, t, n, h, v,
|
|
773
|
-
const T =
|
|
774
|
-
return
|
|
772
|
+
function ct(e, t, n, h, v, u) {
|
|
773
|
+
const T = m("OrIcon");
|
|
774
|
+
return r(), p("div", {
|
|
775
775
|
ref: "root",
|
|
776
|
-
class:
|
|
776
|
+
class: f(e.rootStyles),
|
|
777
777
|
style: K(e.rootInlineStyles),
|
|
778
778
|
onClick: t[2] || (t[2] = (M) => e.toggleSorting())
|
|
779
779
|
}, [
|
|
780
780
|
le("div", {
|
|
781
|
-
class:
|
|
781
|
+
class: f(["truncate"]),
|
|
782
782
|
style: K(e.wrapInlineStyle)
|
|
783
783
|
}, [
|
|
784
784
|
i(e.$slots, "default")
|
|
785
785
|
], 4),
|
|
786
|
-
e.model ? (
|
|
786
|
+
e.model ? (r(), y(T, {
|
|
787
787
|
key: 0,
|
|
788
788
|
icon: e.model.direction === "asc" ? "arrow_upward" : "arrow_downward"
|
|
789
789
|
}, null, 8, ["icon"])) : g("", !0),
|
|
790
|
-
e.isResizable ? (
|
|
790
|
+
e.isResizable ? (r(), p("div", {
|
|
791
791
|
key: 1,
|
|
792
|
-
class:
|
|
792
|
+
class: f(e.resizeHandleStyles),
|
|
793
793
|
onMousedown: t[0] || (t[0] = x((...M) => e.onResizeStart && e.onResizeStart(...M), ["stop", "prevent"])),
|
|
794
794
|
onClick: t[1] || (t[1] = x(() => {
|
|
795
795
|
}, ["stop"]))
|
|
@@ -837,7 +837,7 @@ const mt = /* @__PURE__ */ C(ut, [["render", ct]]), ft = [
|
|
|
837
837
|
"root"
|
|
838
838
|
],
|
|
839
839
|
setup(e) {
|
|
840
|
-
const t =
|
|
840
|
+
const t = D(), n = l(() => [
|
|
841
841
|
"or-data-grid-table-header-row-v3",
|
|
842
842
|
...ft,
|
|
843
843
|
...gt[e.variant]
|
|
@@ -848,10 +848,10 @@ const mt = /* @__PURE__ */ C(ut, [["render", ct]]), ft = [
|
|
|
848
848
|
};
|
|
849
849
|
}
|
|
850
850
|
});
|
|
851
|
-
function ht(e, t, n, h, v,
|
|
852
|
-
return
|
|
851
|
+
function ht(e, t, n, h, v, u) {
|
|
852
|
+
return r(), p("div", {
|
|
853
853
|
ref: "root",
|
|
854
|
-
class:
|
|
854
|
+
class: f(e.rootStyles)
|
|
855
855
|
}, [
|
|
856
856
|
i(e.$slots, "default")
|
|
857
857
|
], 2);
|
|
@@ -865,7 +865,7 @@ const vt = /* @__PURE__ */ C(pt, [["render", ht]]), bt = [
|
|
|
865
865
|
"root"
|
|
866
866
|
],
|
|
867
867
|
setup() {
|
|
868
|
-
const e =
|
|
868
|
+
const e = D(), t = l(() => [
|
|
869
869
|
"or-data-grid-table-header-v3",
|
|
870
870
|
...bt
|
|
871
871
|
]);
|
|
@@ -875,10 +875,10 @@ const vt = /* @__PURE__ */ C(pt, [["render", ht]]), bt = [
|
|
|
875
875
|
};
|
|
876
876
|
}
|
|
877
877
|
});
|
|
878
|
-
function kt(e, t, n, h, v,
|
|
879
|
-
return
|
|
878
|
+
function kt(e, t, n, h, v, u) {
|
|
879
|
+
return r(), p("div", {
|
|
880
880
|
ref: "root",
|
|
881
|
-
class:
|
|
881
|
+
class: f(e.rootStyles)
|
|
882
882
|
}, [
|
|
883
883
|
i(e.$slots, "default")
|
|
884
884
|
], 2);
|
|
@@ -926,7 +926,7 @@ const Ot = /* @__PURE__ */ C(yt, [["render", kt]]), $t = [
|
|
|
926
926
|
"root"
|
|
927
927
|
],
|
|
928
928
|
setup(e) {
|
|
929
|
-
const t =
|
|
929
|
+
const t = D(), n = l(() => [
|
|
930
930
|
"or-data-grid-table-placeholder-v3",
|
|
931
931
|
...$t,
|
|
932
932
|
...wt[e.variant]
|
|
@@ -937,10 +937,10 @@ const Ot = /* @__PURE__ */ C(yt, [["render", kt]]), $t = [
|
|
|
937
937
|
};
|
|
938
938
|
}
|
|
939
939
|
});
|
|
940
|
-
function St(e, t, n, h, v,
|
|
941
|
-
return
|
|
940
|
+
function St(e, t, n, h, v, u) {
|
|
941
|
+
return r(), p("div", {
|
|
942
942
|
ref: "root",
|
|
943
|
-
class:
|
|
943
|
+
class: f(e.rootStyles)
|
|
944
944
|
}, [
|
|
945
945
|
i(e.$slots, "default")
|
|
946
946
|
], 2);
|
|
@@ -948,6 +948,7 @@ function St(e, t, n, h, v, f) {
|
|
|
948
948
|
const Tt = /* @__PURE__ */ C(Dt, [["render", St]]), Gt = [
|
|
949
949
|
// Layout
|
|
950
950
|
"grid content-start",
|
|
951
|
+
"w-full min-w-0",
|
|
951
952
|
// Overflow
|
|
952
953
|
"overflow-auto",
|
|
953
954
|
// Interactivity
|
|
@@ -968,18 +969,18 @@ const Tt = /* @__PURE__ */ C(Dt, [["render", St]]), Gt = [
|
|
|
968
969
|
"root"
|
|
969
970
|
],
|
|
970
971
|
setup(e) {
|
|
971
|
-
const t =
|
|
972
|
+
const t = D(), n = l(() => [
|
|
972
973
|
"or-data-grid-table-v3",
|
|
973
974
|
...Gt
|
|
974
975
|
]), h = l(() => {
|
|
975
|
-
const v = e.columns.map((
|
|
976
|
-
if (
|
|
977
|
-
return
|
|
978
|
-
const T =
|
|
979
|
-
let
|
|
980
|
-
return T.endsWith("px")
|
|
976
|
+
const v = e.columns.map((u) => {
|
|
977
|
+
if (u.width && (u.width.includes("minmax") || u.width.includes("calc")))
|
|
978
|
+
return u.width;
|
|
979
|
+
const T = u.width ?? "1fr", M = u.minWidth || (u.width ? B : "120px");
|
|
980
|
+
let S = u.maxWidth || T;
|
|
981
|
+
return T.endsWith("px") ? T : `minmax(${M}, ${S})`;
|
|
981
982
|
});
|
|
982
|
-
return e.features.selecting ? { gridTemplateColumns: `
|
|
983
|
+
return e.features.selecting ? { gridTemplateColumns: `min-content ${v.join(" ")}` } : { gridTemplateColumns: v.join(" ") };
|
|
983
984
|
});
|
|
984
985
|
return {
|
|
985
986
|
root: t,
|
|
@@ -988,10 +989,10 @@ const Tt = /* @__PURE__ */ C(Dt, [["render", St]]), Gt = [
|
|
|
988
989
|
};
|
|
989
990
|
}
|
|
990
991
|
});
|
|
991
|
-
function Vt(e, t, n, h, v,
|
|
992
|
-
return
|
|
992
|
+
function Vt(e, t, n, h, v, u) {
|
|
993
|
+
return r(), p("div", {
|
|
993
994
|
ref: "root",
|
|
994
|
-
class:
|
|
995
|
+
class: f(e.rootStyles),
|
|
995
996
|
style: K(e.rootInlineStyles)
|
|
996
997
|
}, [
|
|
997
998
|
i(e.$slots, "default")
|
|
@@ -1010,7 +1011,7 @@ const Mt = /* @__PURE__ */ C(Ct, [["render", Vt]]), Rt = [
|
|
|
1010
1011
|
"root"
|
|
1011
1012
|
],
|
|
1012
1013
|
setup() {
|
|
1013
|
-
const e =
|
|
1014
|
+
const e = D(), t = l(() => [
|
|
1014
1015
|
"or-data-grid-toolbar-v3",
|
|
1015
1016
|
...Rt
|
|
1016
1017
|
]);
|
|
@@ -1020,10 +1021,10 @@ const Mt = /* @__PURE__ */ C(Ct, [["render", Vt]]), Rt = [
|
|
|
1020
1021
|
};
|
|
1021
1022
|
}
|
|
1022
1023
|
});
|
|
1023
|
-
function Ht(e, t, n, h, v,
|
|
1024
|
-
return
|
|
1024
|
+
function Ht(e, t, n, h, v, u) {
|
|
1025
|
+
return r(), p("div", {
|
|
1025
1026
|
ref: "root",
|
|
1026
|
-
class:
|
|
1027
|
+
class: f(e.rootStyles)
|
|
1027
1028
|
}, [
|
|
1028
1029
|
i(e.$slots, "default")
|
|
1029
1030
|
], 2);
|
|
@@ -1077,10 +1078,10 @@ const Ft = /* @__PURE__ */ C(It, [["render", Ht]]), Wt = [
|
|
|
1077
1078
|
};
|
|
1078
1079
|
}
|
|
1079
1080
|
});
|
|
1080
|
-
function zt(e, t, n, h, v,
|
|
1081
|
-
const T =
|
|
1082
|
-
return
|
|
1083
|
-
class:
|
|
1081
|
+
function zt(e, t, n, h, v, u) {
|
|
1082
|
+
const T = m("OrNotification");
|
|
1083
|
+
return r(), p("div", {
|
|
1084
|
+
class: f(e.rootStyles)
|
|
1084
1085
|
}, [
|
|
1085
1086
|
H(T, se(e.notification, {
|
|
1086
1087
|
class: "rounded-0 shadow-none",
|
|
@@ -1135,7 +1136,7 @@ const jt = /* @__PURE__ */ C(Pt, [["render", zt]]), Nt = [
|
|
|
1135
1136
|
"root"
|
|
1136
1137
|
],
|
|
1137
1138
|
setup(e) {
|
|
1138
|
-
const t =
|
|
1139
|
+
const t = D(), n = l(() => [
|
|
1139
1140
|
"or-data-grid-table-extra-row-v3",
|
|
1140
1141
|
...Nt,
|
|
1141
1142
|
...Ut[e.variant]
|
|
@@ -1146,10 +1147,10 @@ const jt = /* @__PURE__ */ C(Pt, [["render", zt]]), Nt = [
|
|
|
1146
1147
|
};
|
|
1147
1148
|
}
|
|
1148
1149
|
});
|
|
1149
|
-
function At(e, t, n, h, v,
|
|
1150
|
-
return
|
|
1150
|
+
function At(e, t, n, h, v, u) {
|
|
1151
|
+
return r(), p("div", {
|
|
1151
1152
|
ref: "root",
|
|
1152
|
-
class:
|
|
1153
|
+
class: f(e.rootStyles)
|
|
1153
1154
|
}, [
|
|
1154
1155
|
i(e.$slots, "default")
|
|
1155
1156
|
], 2);
|
|
@@ -1169,7 +1170,7 @@ const qt = /* @__PURE__ */ C(Lt, [["render", At]]), Bt = [
|
|
|
1169
1170
|
OrDataGridTableContentRow: qe,
|
|
1170
1171
|
OrDataGridTableFooter: st,
|
|
1171
1172
|
OrDataGridTableFooterCell: _e,
|
|
1172
|
-
OrDataGridTableFooterRow:
|
|
1173
|
+
OrDataGridTableFooterRow: rt,
|
|
1173
1174
|
OrDataGridTableExtraRow: qt,
|
|
1174
1175
|
OrDataGridTableHeader: Ot,
|
|
1175
1176
|
OrDataGridTableHeaderCell: mt,
|
|
@@ -1177,8 +1178,8 @@ const qt = /* @__PURE__ */ C(Lt, [["render", At]]), Bt = [
|
|
|
1177
1178
|
OrDataGridTablePlaceholder: Tt,
|
|
1178
1179
|
OrDataGridToolbar: Ft,
|
|
1179
1180
|
OrDataGridNotification: jt,
|
|
1180
|
-
OrPagination:
|
|
1181
|
-
OrSearch:
|
|
1181
|
+
OrPagination: re,
|
|
1182
|
+
OrSearch: oe,
|
|
1182
1183
|
OrSkeletonText: ne
|
|
1183
1184
|
},
|
|
1184
1185
|
model: {
|
|
@@ -1233,23 +1234,23 @@ const qt = /* @__PURE__ */ C(Lt, [["render", At]]), Bt = [
|
|
|
1233
1234
|
"root"
|
|
1234
1235
|
],
|
|
1235
1236
|
setup(e, t) {
|
|
1236
|
-
const n =
|
|
1237
|
+
const n = D(), h = D(), v = D(), u = l(() => [
|
|
1237
1238
|
"or-data-grid-v3",
|
|
1238
1239
|
...Bt
|
|
1239
1240
|
]), T = l(() => ({
|
|
1240
|
-
scrollPaddingInlineStart: `${[...
|
|
1241
|
-
scrollPaddingInlineEnd: `${[...
|
|
1241
|
+
scrollPaddingInlineStart: `${[...o.value.values()].reduce((a, $) => a + $, 0)}px`,
|
|
1242
|
+
scrollPaddingInlineEnd: `${[...c.value.values()].reduce((a, $) => a + $, 0)}px`
|
|
1242
1243
|
})), M = l({
|
|
1243
|
-
get: () => !!e.items.length && e.items.every((a) =>
|
|
1244
|
+
get: () => !!e.items.length && e.items.every((a) => S.value.includes(a.id)),
|
|
1244
1245
|
set: (a) => {
|
|
1245
|
-
a ?
|
|
1246
|
+
a ? S.value = [
|
|
1246
1247
|
.../* @__PURE__ */ new Set([
|
|
1247
|
-
...
|
|
1248
|
+
...S.value,
|
|
1248
1249
|
...e.items.map(($) => $.id)
|
|
1249
1250
|
])
|
|
1250
|
-
] :
|
|
1251
|
+
] : S.value = [];
|
|
1251
1252
|
}
|
|
1252
|
-
}),
|
|
1253
|
+
}), S = l({
|
|
1253
1254
|
get: () => {
|
|
1254
1255
|
var a;
|
|
1255
1256
|
return ((a = e.modelValue) == null ? void 0 : a.selecting) ?? [];
|
|
@@ -1270,7 +1271,7 @@ const qt = /* @__PURE__ */ C(Lt, [["render", At]]), Bt = [
|
|
|
1270
1271
|
},
|
|
1271
1272
|
set: (a) => {
|
|
1272
1273
|
t.emit("update:modelValue", {
|
|
1273
|
-
selecting:
|
|
1274
|
+
selecting: S.value,
|
|
1274
1275
|
filtering: a,
|
|
1275
1276
|
searching: V.value,
|
|
1276
1277
|
sorting: R.value,
|
|
@@ -1287,7 +1288,7 @@ const qt = /* @__PURE__ */ C(Lt, [["render", At]]), Bt = [
|
|
|
1287
1288
|
},
|
|
1288
1289
|
set: (a) => {
|
|
1289
1290
|
t.emit("update:modelValue", {
|
|
1290
|
-
selecting:
|
|
1291
|
+
selecting: S.value,
|
|
1291
1292
|
filtering: O.value,
|
|
1292
1293
|
searching: a,
|
|
1293
1294
|
sorting: R.value,
|
|
@@ -1304,7 +1305,7 @@ const qt = /* @__PURE__ */ C(Lt, [["render", At]]), Bt = [
|
|
|
1304
1305
|
},
|
|
1305
1306
|
set: (a) => {
|
|
1306
1307
|
t.emit("update:modelValue", {
|
|
1307
|
-
selecting:
|
|
1308
|
+
selecting: S.value,
|
|
1308
1309
|
filtering: O.value,
|
|
1309
1310
|
searching: V.value,
|
|
1310
1311
|
sorting: a,
|
|
@@ -1321,7 +1322,7 @@ const qt = /* @__PURE__ */ C(Lt, [["render", At]]), Bt = [
|
|
|
1321
1322
|
},
|
|
1322
1323
|
set: (a) => {
|
|
1323
1324
|
t.emit("update:modelValue", {
|
|
1324
|
-
selecting:
|
|
1325
|
+
selecting: S.value,
|
|
1325
1326
|
filtering: O.value,
|
|
1326
1327
|
searching: V.value,
|
|
1327
1328
|
sorting: R.value,
|
|
@@ -1339,7 +1340,7 @@ const qt = /* @__PURE__ */ C(Lt, [["render", At]]), Bt = [
|
|
|
1339
1340
|
behavior: "smooth"
|
|
1340
1341
|
});
|
|
1341
1342
|
});
|
|
1342
|
-
const
|
|
1343
|
+
const o = D(/* @__PURE__ */ new Map()), c = D(/* @__PURE__ */ new Map()), d = l(() => e.features.selecting && (typeof e.features.selecting == "object" ? e.features.selecting.showCounter !== !1 : !0)), W = l(() => e.items.length === 0 || e.loading || typeof e.features.selecting == "object" && e.features.selecting.disabled), z = l(() => {
|
|
1343
1344
|
var a;
|
|
1344
1345
|
return ((a = h.value) == null ? void 0 : a.currentLimit) || 10;
|
|
1345
1346
|
});
|
|
@@ -1349,10 +1350,10 @@ const qt = /* @__PURE__ */ C(Lt, [["render", At]]), Bt = [
|
|
|
1349
1350
|
function X(a, $, F) {
|
|
1350
1351
|
switch (F.stickiness) {
|
|
1351
1352
|
case "start":
|
|
1352
|
-
|
|
1353
|
+
o.value.set(a, $), o.value = new Map(o.value), c.value.delete(a), c.value = new Map(c.value);
|
|
1353
1354
|
break;
|
|
1354
1355
|
case "end":
|
|
1355
|
-
|
|
1356
|
+
o.value.delete(a), o.value = new Map(o.value), c.value.set(a, $), c.value = new Map(c.value);
|
|
1356
1357
|
break;
|
|
1357
1358
|
default:
|
|
1358
1359
|
A(a);
|
|
@@ -1410,14 +1411,14 @@ const qt = /* @__PURE__ */ C(Lt, [["render", At]]), Bt = [
|
|
|
1410
1411
|
w();
|
|
1411
1412
|
});
|
|
1412
1413
|
function A(a) {
|
|
1413
|
-
|
|
1414
|
+
o.value.delete(a), o.value = new Map(o.value), c.value.delete(a), c.value = new Map(c.value);
|
|
1414
1415
|
}
|
|
1415
1416
|
function ae(a) {
|
|
1416
1417
|
a.currentTarget.scrollIntoView({ block: "nearest" });
|
|
1417
1418
|
}
|
|
1418
1419
|
return {
|
|
1419
1420
|
root: n,
|
|
1420
|
-
rootStyles:
|
|
1421
|
+
rootStyles: u,
|
|
1421
1422
|
pagination: h,
|
|
1422
1423
|
tableInlineStyles: T,
|
|
1423
1424
|
selectingIndicator: M,
|
|
@@ -1430,7 +1431,7 @@ const qt = /* @__PURE__ */ C(Lt, [["render", At]]), Bt = [
|
|
|
1430
1431
|
handleMouseLeaveCell: U,
|
|
1431
1432
|
handleRowClick: L,
|
|
1432
1433
|
updateColumnWidth: N,
|
|
1433
|
-
selectingModel:
|
|
1434
|
+
selectingModel: S,
|
|
1434
1435
|
filteringModel: O,
|
|
1435
1436
|
searchingModel: V,
|
|
1436
1437
|
sortingModel: R,
|
|
@@ -1452,15 +1453,15 @@ const qt = /* @__PURE__ */ C(Lt, [["render", At]]), Bt = [
|
|
|
1452
1453
|
};
|
|
1453
1454
|
}
|
|
1454
1455
|
});
|
|
1455
|
-
function Xt(e, t, n, h, v,
|
|
1456
|
-
const T =
|
|
1457
|
-
return
|
|
1456
|
+
function Xt(e, t, n, h, v, u) {
|
|
1457
|
+
const T = m("OrSearch"), M = m("OrDataGridHeader"), S = m("OrDataGridToolbar"), O = m("OrCheckbox"), V = m("OrDataGridTableHeaderCell"), R = m("OrDataGridTableHeaderRow"), I = m("OrDataGridTableHeader"), o = m("OrDataGridNotification"), c = m("OrDataGridTableExtraRow"), d = m("OrSkeletonText"), W = m("OrDataGridTableContentCell"), z = m("OrDataGridTableContentRow"), j = m("OrDataGridTablePlaceholder"), X = m("OrDataGridTableContent"), J = m("OrDataGridTable"), E = m("OrDataGridTableFooterCell"), P = m("OrDataGridTableFooterRow"), U = m("OrDataGridTableFooter"), L = m("OrPagination"), N = m("OrDataGridFooter");
|
|
1458
|
+
return r(), p("div", {
|
|
1458
1459
|
ref: "root",
|
|
1459
|
-
class:
|
|
1460
|
+
class: f(e.rootStyles)
|
|
1460
1461
|
}, [
|
|
1461
|
-
e.$slots.title || e.features.searching || e.$slots.search || e.$slots.extraActions ? (
|
|
1462
|
+
e.$slots.title || e.features.searching || e.$slots.search || e.$slots.extraActions ? (r(), y(M, {
|
|
1462
1463
|
key: 0,
|
|
1463
|
-
class:
|
|
1464
|
+
class: f(["shrink-0"])
|
|
1464
1465
|
}, Y({ _: 2 }, [
|
|
1465
1466
|
e.$slots.title ? {
|
|
1466
1467
|
name: "title",
|
|
@@ -1489,9 +1490,9 @@ function Xt(e, t, n, h, v, f) {
|
|
|
1489
1490
|
key: "2"
|
|
1490
1491
|
} : void 0
|
|
1491
1492
|
]), 1024)) : g("", !0),
|
|
1492
|
-
e.$slots.toolbar ? (
|
|
1493
|
+
e.$slots.toolbar ? (r(), y(S, {
|
|
1493
1494
|
key: 1,
|
|
1494
|
-
class:
|
|
1495
|
+
class: f(["shrink-0"])
|
|
1495
1496
|
}, {
|
|
1496
1497
|
default: b(() => [
|
|
1497
1498
|
i(e.$slots, "toolbar")
|
|
@@ -1500,7 +1501,7 @@ function Xt(e, t, n, h, v, f) {
|
|
|
1500
1501
|
})) : g("", !0),
|
|
1501
1502
|
H(J, {
|
|
1502
1503
|
ref: "table",
|
|
1503
|
-
class:
|
|
1504
|
+
class: f(["grow", { "grid-rows-[auto_1fr]": e.items.length === 0 }]),
|
|
1504
1505
|
style: K(e.tableInlineStyles),
|
|
1505
1506
|
columns: e.columns,
|
|
1506
1507
|
features: e.features
|
|
@@ -1510,7 +1511,7 @@ function Xt(e, t, n, h, v, f) {
|
|
|
1510
1511
|
default: b(() => [
|
|
1511
1512
|
H(R, { variant: e.variant }, {
|
|
1512
1513
|
default: b(() => [
|
|
1513
|
-
e.features.selecting ? (
|
|
1514
|
+
e.features.selecting ? (r(), y(V, {
|
|
1514
1515
|
key: 0,
|
|
1515
1516
|
column: { stickiness: "start" },
|
|
1516
1517
|
class: "md:!py-none",
|
|
@@ -1527,7 +1528,7 @@ function Xt(e, t, n, h, v, f) {
|
|
|
1527
1528
|
]),
|
|
1528
1529
|
_: 1
|
|
1529
1530
|
}, 8, ["onUpdate:scrollOffset", "onRemove:scrollOffset"])) : g("", !0),
|
|
1530
|
-
(
|
|
1531
|
+
(r(!0), p(q, null, Q(e.columns, (s) => (r(), y(V, {
|
|
1531
1532
|
key: s.name,
|
|
1532
1533
|
modelValue: e.sortingModel,
|
|
1533
1534
|
"onUpdate:modelValue": t[2] || (t[2] = (w) => e.sortingModel = w),
|
|
@@ -1548,7 +1549,7 @@ function Xt(e, t, n, h, v, f) {
|
|
|
1548
1549
|
]),
|
|
1549
1550
|
_: 1
|
|
1550
1551
|
}),
|
|
1551
|
-
e.notification ? (
|
|
1552
|
+
e.notification ? (r(), y(o, {
|
|
1552
1553
|
key: 0,
|
|
1553
1554
|
notification: e.notification,
|
|
1554
1555
|
variant: e.variant,
|
|
@@ -1564,7 +1565,7 @@ function Xt(e, t, n, h, v, f) {
|
|
|
1564
1565
|
]), 1032, ["notification", "variant"])) : g("", !0),
|
|
1565
1566
|
H(X, null, {
|
|
1566
1567
|
default: b(() => [
|
|
1567
|
-
e.$slots["before-rows"] ? (
|
|
1568
|
+
e.$slots["before-rows"] ? (r(), y(c, {
|
|
1568
1569
|
key: 0,
|
|
1569
1570
|
variant: e.variant,
|
|
1570
1571
|
class: "border-b-1"
|
|
@@ -1574,13 +1575,13 @@ function Xt(e, t, n, h, v, f) {
|
|
|
1574
1575
|
]),
|
|
1575
1576
|
_: 3
|
|
1576
1577
|
}, 8, ["variant"])) : g("", !0),
|
|
1577
|
-
e.loading ? (
|
|
1578
|
+
e.loading ? (r(!0), p(q, { key: 1 }, Q(e.skeletonsLength, (s) => (r(), y(z, {
|
|
1578
1579
|
key: s,
|
|
1579
1580
|
variant: e.variant,
|
|
1580
1581
|
interactive: e.interactiveRows
|
|
1581
1582
|
}, {
|
|
1582
1583
|
default: b(() => [
|
|
1583
|
-
e.features.selecting ? (
|
|
1584
|
+
e.features.selecting ? (r(), y(W, {
|
|
1584
1585
|
key: 0,
|
|
1585
1586
|
column: { stickiness: "start" },
|
|
1586
1587
|
variant: e.variant,
|
|
@@ -1591,7 +1592,7 @@ function Xt(e, t, n, h, v, f) {
|
|
|
1591
1592
|
]),
|
|
1592
1593
|
_: 1
|
|
1593
1594
|
}, 8, ["variant"])) : g("", !0),
|
|
1594
|
-
(
|
|
1595
|
+
(r(!0), p(q, null, Q(e.columns, (w) => (r(), y(W, {
|
|
1595
1596
|
key: w.name,
|
|
1596
1597
|
column: w,
|
|
1597
1598
|
features: e.features,
|
|
@@ -1607,7 +1608,7 @@ function Xt(e, t, n, h, v, f) {
|
|
|
1607
1608
|
}, 1032, ["column", "features", "variant"]))), 128))
|
|
1608
1609
|
]),
|
|
1609
1610
|
_: 2
|
|
1610
|
-
}, 1032, ["variant", "interactive"]))), 128)) : e.items.length > 0 ? (
|
|
1611
|
+
}, 1032, ["variant", "interactive"]))), 128)) : e.items.length > 0 ? (r(!0), p(q, { key: 2 }, Q(e.items, (s) => (r(), y(z, {
|
|
1611
1612
|
key: s.id,
|
|
1612
1613
|
variant: e.variant,
|
|
1613
1614
|
selected: e.selectingModel.includes(s.id),
|
|
@@ -1617,7 +1618,7 @@ function Xt(e, t, n, h, v, f) {
|
|
|
1617
1618
|
onClick: () => e.handleRowClick(s)
|
|
1618
1619
|
}, {
|
|
1619
1620
|
default: b(() => [
|
|
1620
|
-
e.features.selecting ? (
|
|
1621
|
+
e.features.selecting ? (r(), y(W, {
|
|
1621
1622
|
key: 0,
|
|
1622
1623
|
column: { stickiness: "start" },
|
|
1623
1624
|
variant: e.variant,
|
|
@@ -1637,7 +1638,7 @@ function Xt(e, t, n, h, v, f) {
|
|
|
1637
1638
|
]),
|
|
1638
1639
|
_: 2
|
|
1639
1640
|
}, 1032, ["variant", "onMouseenter", "onMouseleave"])) : g("", !0),
|
|
1640
|
-
(
|
|
1641
|
+
(r(!0), p(q, null, Q(e.columns, (w) => (r(), y(W, {
|
|
1641
1642
|
key: w.name,
|
|
1642
1643
|
"model-value": s[w.name],
|
|
1643
1644
|
column: w,
|
|
@@ -1660,9 +1661,9 @@ function Xt(e, t, n, h, v, f) {
|
|
|
1660
1661
|
}, 1032, ["model-value", "column", "features", "variant", "onInput", "onMouseenter", "onMouseleave"]))), 128))
|
|
1661
1662
|
]),
|
|
1662
1663
|
_: 2
|
|
1663
|
-
}, 1032, ["variant", "selected", "interactive", "onMouseenter", "onMouseleave", "onClick"]))), 128)) : e.$slots.noSearchResults && (e.features.filtering && e.filteringModel || e.features.searching && e.searchingModel) ? (
|
|
1664
|
+
}, 1032, ["variant", "selected", "interactive", "onMouseenter", "onMouseleave", "onClick"]))), 128)) : e.$slots.noSearchResults && (e.features.filtering && e.filteringModel || e.features.searching && e.searchingModel) ? (r(), y(j, {
|
|
1664
1665
|
key: 3,
|
|
1665
|
-
class:
|
|
1666
|
+
class: f(["col-span-full"]),
|
|
1666
1667
|
variant: e.variant
|
|
1667
1668
|
}, {
|
|
1668
1669
|
default: b(() => [
|
|
@@ -1672,9 +1673,9 @@ function Xt(e, t, n, h, v, f) {
|
|
|
1672
1673
|
})
|
|
1673
1674
|
]),
|
|
1674
1675
|
_: 3
|
|
1675
|
-
}, 8, ["variant"])) : e.$slots.empty ? (
|
|
1676
|
+
}, 8, ["variant"])) : e.$slots.empty ? (r(), y(j, {
|
|
1676
1677
|
key: 4,
|
|
1677
|
-
class:
|
|
1678
|
+
class: f(["col-span-full"]),
|
|
1678
1679
|
variant: e.variant
|
|
1679
1680
|
}, {
|
|
1680
1681
|
default: b(() => [
|
|
@@ -1682,7 +1683,7 @@ function Xt(e, t, n, h, v, f) {
|
|
|
1682
1683
|
]),
|
|
1683
1684
|
_: 3
|
|
1684
1685
|
}, 8, ["variant"])) : g("", !0),
|
|
1685
|
-
e.$slots["after-rows"] ? (
|
|
1686
|
+
e.$slots["after-rows"] ? (r(), y(c, {
|
|
1686
1687
|
key: 5,
|
|
1687
1688
|
variant: e.variant
|
|
1688
1689
|
}, {
|
|
@@ -1697,10 +1698,10 @@ function Xt(e, t, n, h, v, f) {
|
|
|
1697
1698
|
]),
|
|
1698
1699
|
_: 3
|
|
1699
1700
|
}, 8, ["class", "style", "columns", "features"]),
|
|
1700
|
-
e.$slots["extra-row"] ? (
|
|
1701
|
+
e.$slots["extra-row"] ? (r(), y(U, { key: 2 }, {
|
|
1701
1702
|
default: b(() => [
|
|
1702
1703
|
H(P, {
|
|
1703
|
-
class:
|
|
1704
|
+
class: f(["shrink-0"]),
|
|
1704
1705
|
variant: e.variant
|
|
1705
1706
|
}, {
|
|
1706
1707
|
default: b(() => [
|
|
@@ -1716,9 +1717,9 @@ function Xt(e, t, n, h, v, f) {
|
|
|
1716
1717
|
]),
|
|
1717
1718
|
_: 3
|
|
1718
1719
|
})) : g("", !0),
|
|
1719
|
-
e.$slots.actions || e.showSelectingCouter || e.features.paging ? (
|
|
1720
|
+
e.$slots.actions || e.showSelectingCouter || e.features.paging ? (r(), y(N, {
|
|
1720
1721
|
key: 3,
|
|
1721
|
-
class:
|
|
1722
|
+
class: f(["shrink-0"])
|
|
1722
1723
|
}, Y({ _: 2 }, [
|
|
1723
1724
|
e.features.selecting && e.selectingModel.length > 0 ? {
|
|
1724
1725
|
name: "status",
|
|
@@ -1761,7 +1762,7 @@ export {
|
|
|
1761
1762
|
qe as e,
|
|
1762
1763
|
Je as f,
|
|
1763
1764
|
_e as g,
|
|
1764
|
-
|
|
1765
|
+
rt as h,
|
|
1765
1766
|
st as i,
|
|
1766
1767
|
mt as j,
|
|
1767
1768
|
vt as k,
|
|
@@ -1772,4 +1773,4 @@ export {
|
|
|
1772
1773
|
jt as p,
|
|
1773
1774
|
qt as q
|
|
1774
1775
|
};
|
|
1775
|
-
//# sourceMappingURL=OrDataGrid-
|
|
1776
|
+
//# sourceMappingURL=OrDataGrid-C_RY7OZe.mjs.map
|