@onereach/ui-components 23.3.1 → 23.3.2-beta.5625.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-DB9ETdxI.mjs → OrDataGrid-D1o18FfW.mjs} +113 -102
- package/dist/esm/OrDataGrid-D1o18FfW.mjs.map +1 -0
- package/dist/esm/components/index.mjs +265 -249
- package/dist/esm/components/or-data-grid-v3/index.mjs +19 -3
- package/dist/esm/index.mjs +265 -249
- package/dist/types/components/or-data-grid-v3/index.d.ts +1 -0
- package/package.json +4 -5
- package/dist/esm/OrDataGrid-DB9ETdxI.mjs.map +0 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { O as
|
|
2
|
-
import { O as
|
|
3
|
-
import { O as
|
|
4
|
-
import { O as
|
|
5
|
-
import { defineComponent as w, ref as D, computed as n, openBlock as a, createElementBlock as m, normalizeClass as
|
|
1
|
+
import { O as X } from "./OrCheckbox-XS2Evsl3.mjs";
|
|
2
|
+
import { O as Y } from "./OrPagination-BFUGGyGy.mjs";
|
|
3
|
+
import { O as Z } from "./OrSearch-1OFONLHk.mjs";
|
|
4
|
+
import { O as _ } from "./OrSkeletonText-Dm8s1o0l.mjs";
|
|
5
|
+
import { defineComponent as w, ref as D, computed as n, openBlock as a, createElementBlock as m, normalizeClass as d, renderSlot as s, createCommentVNode as p, resolveComponent as i, normalizeStyle as N, Fragment as H, createBlock as c, watch as x, createElementVNode as ee, createVNode as V, mergeProps as te, withCtx as f, createSlots as K, normalizeProps as oe, guardReactiveProps as ae, renderList as P, createTextVNode as Q, toDisplayString as W } from "vue";
|
|
6
6
|
import { _ as G } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
7
7
|
import { O as re } from "./OrDatePicker-B8f7IXss.mjs";
|
|
8
8
|
import { O as ne } from "./OrDateTimePicker-BjUIRfEc.mjs";
|
|
@@ -31,10 +31,10 @@ const ge = [
|
|
|
31
31
|
// Theme
|
|
32
32
|
"theme-border-disabled border-t-1",
|
|
33
33
|
"dark:theme-border-disabled-dark"
|
|
34
|
-
],
|
|
34
|
+
], be = [
|
|
35
35
|
// Typography
|
|
36
36
|
"typography-body-2-semibold"
|
|
37
|
-
],
|
|
37
|
+
], ve = w({
|
|
38
38
|
name: "OrDataGridFooter",
|
|
39
39
|
expose: [
|
|
40
40
|
"root"
|
|
@@ -44,7 +44,7 @@ const ge = [
|
|
|
44
44
|
"or-data-grid-footer-v3",
|
|
45
45
|
...ge
|
|
46
46
|
]), r = n(() => [
|
|
47
|
-
...
|
|
47
|
+
...be
|
|
48
48
|
]);
|
|
49
49
|
return {
|
|
50
50
|
root: e,
|
|
@@ -54,16 +54,16 @@ const ge = [
|
|
|
54
54
|
}
|
|
55
55
|
}), he = {
|
|
56
56
|
key: 1,
|
|
57
|
-
class: /* @__PURE__ */
|
|
57
|
+
class: /* @__PURE__ */ d(["grow"])
|
|
58
58
|
};
|
|
59
|
-
function ye(e, t, r,
|
|
59
|
+
function ye(e, t, r, b, v, u) {
|
|
60
60
|
return a(), m("div", {
|
|
61
61
|
ref: "root",
|
|
62
|
-
class:
|
|
62
|
+
class: d(e.rootStyles)
|
|
63
63
|
}, [
|
|
64
64
|
e.$slots.status ? (a(), m("div", {
|
|
65
65
|
key: 0,
|
|
66
|
-
class:
|
|
66
|
+
class: d(e.statusStyles)
|
|
67
67
|
}, [
|
|
68
68
|
s(e.$slots, "status")
|
|
69
69
|
], 2)) : p("", !0),
|
|
@@ -72,7 +72,7 @@ function ye(e, t, r, v, b, u) {
|
|
|
72
72
|
s(e.$slots, "paging")
|
|
73
73
|
], 2);
|
|
74
74
|
}
|
|
75
|
-
const ke = /* @__PURE__ */ G(
|
|
75
|
+
const ke = /* @__PURE__ */ G(ve, [["render", ye]]), Oe = [
|
|
76
76
|
// Layout
|
|
77
77
|
"layout-row items-start",
|
|
78
78
|
// Interactivity
|
|
@@ -102,16 +102,16 @@ const ke = /* @__PURE__ */ G(be, [["render", ye]]), Oe = [
|
|
|
102
102
|
}
|
|
103
103
|
}), we = {
|
|
104
104
|
key: 1,
|
|
105
|
-
class: /* @__PURE__ */
|
|
105
|
+
class: /* @__PURE__ */ d(["grow"])
|
|
106
106
|
};
|
|
107
|
-
function Ge(e, t, r,
|
|
107
|
+
function Ge(e, t, r, b, v, u) {
|
|
108
108
|
return a(), m("div", {
|
|
109
109
|
ref: "root",
|
|
110
|
-
class:
|
|
110
|
+
class: d(e.rootStyles)
|
|
111
111
|
}, [
|
|
112
112
|
e.$slots.title ? (a(), m("div", {
|
|
113
113
|
key: 0,
|
|
114
|
-
class:
|
|
114
|
+
class: d(e.titleStyles)
|
|
115
115
|
}, [
|
|
116
116
|
s(e.$slots, "title")
|
|
117
117
|
], 2)) : p("", !0),
|
|
@@ -145,7 +145,7 @@ const Te = /* @__PURE__ */ G(De, [["render", Ge]]), Se = [
|
|
|
145
145
|
], Ce = w({
|
|
146
146
|
name: "OrDataGridTableContentCell",
|
|
147
147
|
components: {
|
|
148
|
-
OrCheckbox:
|
|
148
|
+
OrCheckbox: X,
|
|
149
149
|
OrDatePicker: re,
|
|
150
150
|
OrDateTimePicker: ne,
|
|
151
151
|
OrInput: le,
|
|
@@ -184,14 +184,14 @@ const Te = /* @__PURE__ */ G(De, [["render", Ge]]), Se = [
|
|
|
184
184
|
"root"
|
|
185
185
|
],
|
|
186
186
|
setup(e, t) {
|
|
187
|
-
const r = D(),
|
|
187
|
+
const r = D(), b = n(() => {
|
|
188
188
|
var h;
|
|
189
189
|
return [
|
|
190
190
|
"or-data-grid-table-content-cell-v3",
|
|
191
191
|
...Se,
|
|
192
192
|
...(h = e.column) != null && h.stickiness ? [`sticky-${e.column.stickiness}`] : []
|
|
193
193
|
];
|
|
194
|
-
}),
|
|
194
|
+
}), v = n(() => {
|
|
195
195
|
if (e.column)
|
|
196
196
|
switch (e.column.stickiness) {
|
|
197
197
|
case "start":
|
|
@@ -228,21 +228,21 @@ const Te = /* @__PURE__ */ G(De, [["render", Ge]]), Se = [
|
|
|
228
228
|
});
|
|
229
229
|
return {
|
|
230
230
|
root: r,
|
|
231
|
-
rootStyles:
|
|
232
|
-
rootInlineStyles:
|
|
231
|
+
rootStyles: b,
|
|
232
|
+
rootInlineStyles: v,
|
|
233
233
|
model: u,
|
|
234
234
|
control: T
|
|
235
235
|
};
|
|
236
236
|
}
|
|
237
237
|
}), Ve = {
|
|
238
238
|
key: 2,
|
|
239
|
-
class: /* @__PURE__ */
|
|
239
|
+
class: /* @__PURE__ */ d(["truncate"])
|
|
240
240
|
};
|
|
241
|
-
function Me(e, t, r,
|
|
242
|
-
const T =
|
|
241
|
+
function Me(e, t, r, b, v, u) {
|
|
242
|
+
const T = i("OrInput"), h = i("OrRating"), g = i("OrSelect"), k = i("OrCheckbox"), O = i("OrSwitch"), R = i("OrDatePicker"), S = i("OrTimePicker"), C = i("OrDateTimePicker"), I = i("OrTagInput");
|
|
243
243
|
return a(), m("div", {
|
|
244
244
|
ref: "root",
|
|
245
|
-
class:
|
|
245
|
+
class: d(e.rootStyles),
|
|
246
246
|
style: N(e.rootInlineStyles)
|
|
247
247
|
}, [
|
|
248
248
|
e.override ? s(e.$slots, "default", { key: 0 }) : e.control ? (a(), m(H, { key: 1 }, [
|
|
@@ -384,10 +384,10 @@ const Ie = [
|
|
|
384
384
|
};
|
|
385
385
|
}
|
|
386
386
|
}), Pe = ["selected"];
|
|
387
|
-
function je(e, t, r,
|
|
387
|
+
function je(e, t, r, b, v, u) {
|
|
388
388
|
return a(), m("div", {
|
|
389
389
|
ref: "root",
|
|
390
|
-
class:
|
|
390
|
+
class: d(e.rootStyles),
|
|
391
391
|
selected: e.selected
|
|
392
392
|
}, [
|
|
393
393
|
s(e.$slots, "default")
|
|
@@ -412,10 +412,10 @@ const Ee = /* @__PURE__ */ G(He, [["render", je]]), Ue = [
|
|
|
412
412
|
};
|
|
413
413
|
}
|
|
414
414
|
});
|
|
415
|
-
function qe(e, t, r,
|
|
415
|
+
function qe(e, t, r, b, v, u) {
|
|
416
416
|
return a(), m("div", {
|
|
417
417
|
ref: "root",
|
|
418
|
-
class:
|
|
418
|
+
class: d(e.rootStyles)
|
|
419
419
|
}, [
|
|
420
420
|
s(e.$slots, "default")
|
|
421
421
|
], 2);
|
|
@@ -446,10 +446,10 @@ const Le = /* @__PURE__ */ G(Ne, [["render", qe]]), Be = [
|
|
|
446
446
|
};
|
|
447
447
|
}
|
|
448
448
|
});
|
|
449
|
-
function Ae(e, t, r,
|
|
449
|
+
function Ae(e, t, r, b, v, u) {
|
|
450
450
|
return a(), m("div", {
|
|
451
451
|
ref: "root",
|
|
452
|
-
class:
|
|
452
|
+
class: d(e.rootStyles)
|
|
453
453
|
}, [
|
|
454
454
|
s(e.$slots, "default")
|
|
455
455
|
], 2);
|
|
@@ -503,10 +503,10 @@ const Je = /* @__PURE__ */ G(ze, [["render", Ae]]), Ke = [
|
|
|
503
503
|
};
|
|
504
504
|
}
|
|
505
505
|
});
|
|
506
|
-
function Xe(e, t, r,
|
|
506
|
+
function Xe(e, t, r, b, v, u) {
|
|
507
507
|
return a(), m("div", {
|
|
508
508
|
ref: "root",
|
|
509
|
-
class:
|
|
509
|
+
class: d(e.rootStyles)
|
|
510
510
|
}, [
|
|
511
511
|
s(e.$slots, "default")
|
|
512
512
|
], 2);
|
|
@@ -530,10 +530,10 @@ const Ye = /* @__PURE__ */ G(We, [["render", Xe]]), Ze = [
|
|
|
530
530
|
};
|
|
531
531
|
}
|
|
532
532
|
});
|
|
533
|
-
function xe(e, t, r,
|
|
533
|
+
function xe(e, t, r, b, v, u) {
|
|
534
534
|
return a(), m("div", {
|
|
535
535
|
ref: "root",
|
|
536
|
-
class:
|
|
536
|
+
class: d(e.rootStyles)
|
|
537
537
|
}, [
|
|
538
538
|
s(e.$slots, "default")
|
|
539
539
|
], 2);
|
|
@@ -586,7 +586,7 @@ const et = /* @__PURE__ */ G(_e, [["render", xe]]), tt = [
|
|
|
586
586
|
"root"
|
|
587
587
|
],
|
|
588
588
|
setup(e, t) {
|
|
589
|
-
const r = D(),
|
|
589
|
+
const r = D(), b = n(() => {
|
|
590
590
|
var g, k, O;
|
|
591
591
|
return [
|
|
592
592
|
"or-data-grid-table-header-cell-v3",
|
|
@@ -594,7 +594,7 @@ const et = /* @__PURE__ */ G(_e, [["render", xe]]), tt = [
|
|
|
594
594
|
...(g = e.column) != null && g.stickiness ? [`sticky-${e.column.stickiness}`] : [],
|
|
595
595
|
...(k = e.features) != null && k.sorting && ((O = e.column) != null && O.name) ? ["interactivity-click"] : []
|
|
596
596
|
];
|
|
597
|
-
}),
|
|
597
|
+
}), v = n(() => {
|
|
598
598
|
if (e.column)
|
|
599
599
|
switch (e.column.stickiness) {
|
|
600
600
|
case "start":
|
|
@@ -648,7 +648,7 @@ const et = /* @__PURE__ */ G(_e, [["render", xe]]), tt = [
|
|
|
648
648
|
}
|
|
649
649
|
}
|
|
650
650
|
const { width: h } = me(r, void 0, { box: "border-box" });
|
|
651
|
-
return
|
|
651
|
+
return x([
|
|
652
652
|
r,
|
|
653
653
|
h,
|
|
654
654
|
() => {
|
|
@@ -664,24 +664,24 @@ const et = /* @__PURE__ */ G(_e, [["render", xe]]), tt = [
|
|
|
664
664
|
O && O !== g && t.emit("remove:scrollOffset", O), t.emit("update:scrollOffset", g, k, e.column);
|
|
665
665
|
}), {
|
|
666
666
|
root: r,
|
|
667
|
-
rootStyles:
|
|
668
|
-
rootInlineStyles:
|
|
667
|
+
rootStyles: b,
|
|
668
|
+
rootInlineStyles: v,
|
|
669
669
|
model: u,
|
|
670
670
|
toggleSorting: T
|
|
671
671
|
};
|
|
672
672
|
}
|
|
673
673
|
}), at = {
|
|
674
|
-
class: /* @__PURE__ */
|
|
674
|
+
class: /* @__PURE__ */ d(["truncate"])
|
|
675
675
|
};
|
|
676
|
-
function rt(e, t, r,
|
|
677
|
-
const T =
|
|
676
|
+
function rt(e, t, r, b, v, u) {
|
|
677
|
+
const T = i("OrIcon");
|
|
678
678
|
return a(), m("div", {
|
|
679
679
|
ref: "root",
|
|
680
|
-
class:
|
|
680
|
+
class: d(e.rootStyles),
|
|
681
681
|
style: N(e.rootInlineStyles),
|
|
682
682
|
onClick: t[0] || (t[0] = (h) => e.toggleSorting())
|
|
683
683
|
}, [
|
|
684
|
-
|
|
684
|
+
ee("div", at, [
|
|
685
685
|
s(e.$slots, "default")
|
|
686
686
|
]),
|
|
687
687
|
e.model ? (a(), c(T, {
|
|
@@ -738,10 +738,10 @@ const nt = /* @__PURE__ */ G(ot, [["render", rt]]), lt = [
|
|
|
738
738
|
};
|
|
739
739
|
}
|
|
740
740
|
});
|
|
741
|
-
function dt(e, t, r,
|
|
741
|
+
function dt(e, t, r, b, v, u) {
|
|
742
742
|
return a(), m("div", {
|
|
743
743
|
ref: "root",
|
|
744
|
-
class:
|
|
744
|
+
class: d(e.rootStyles)
|
|
745
745
|
}, [
|
|
746
746
|
s(e.$slots, "default")
|
|
747
747
|
], 2);
|
|
@@ -765,10 +765,10 @@ const ut = /* @__PURE__ */ G(it, [["render", dt]]), ct = [
|
|
|
765
765
|
};
|
|
766
766
|
}
|
|
767
767
|
});
|
|
768
|
-
function ft(e, t, r,
|
|
768
|
+
function ft(e, t, r, b, v, u) {
|
|
769
769
|
return a(), m("div", {
|
|
770
770
|
ref: "root",
|
|
771
|
-
class:
|
|
771
|
+
class: d(e.rootStyles)
|
|
772
772
|
}, [
|
|
773
773
|
s(e.$slots, "default")
|
|
774
774
|
], 2);
|
|
@@ -787,7 +787,7 @@ const pt = /* @__PURE__ */ G(mt, [["render", ft]]), gt = [
|
|
|
787
787
|
"dark:theme-foreground-default-dark",
|
|
788
788
|
"theme-background-default",
|
|
789
789
|
"dark:theme-background-default-dark"
|
|
790
|
-
],
|
|
790
|
+
], bt = {
|
|
791
791
|
[$.Standard]: [
|
|
792
792
|
// Box
|
|
793
793
|
"min-h-[calc(theme(spacing.2xl)+theme(spacing.xs))]"
|
|
@@ -800,7 +800,7 @@ const pt = /* @__PURE__ */ G(mt, [["render", ft]]), gt = [
|
|
|
800
800
|
// Box
|
|
801
801
|
"min-h-[calc(theme(spacing.xl)+theme(spacing.xs))]"
|
|
802
802
|
]
|
|
803
|
-
},
|
|
803
|
+
}, vt = w({
|
|
804
804
|
name: "OrDataGridTablePlaceholder",
|
|
805
805
|
props: {
|
|
806
806
|
variant: {
|
|
@@ -815,7 +815,7 @@ const pt = /* @__PURE__ */ G(mt, [["render", ft]]), gt = [
|
|
|
815
815
|
const t = D(), r = n(() => [
|
|
816
816
|
"or-data-grid-table-placeholder-v3",
|
|
817
817
|
...gt,
|
|
818
|
-
...
|
|
818
|
+
...bt[e.variant]
|
|
819
819
|
]);
|
|
820
820
|
return {
|
|
821
821
|
root: t,
|
|
@@ -823,15 +823,15 @@ const pt = /* @__PURE__ */ G(mt, [["render", ft]]), gt = [
|
|
|
823
823
|
};
|
|
824
824
|
}
|
|
825
825
|
});
|
|
826
|
-
function ht(e, t, r,
|
|
826
|
+
function ht(e, t, r, b, v, u) {
|
|
827
827
|
return a(), m("div", {
|
|
828
828
|
ref: "root",
|
|
829
|
-
class:
|
|
829
|
+
class: d(e.rootStyles)
|
|
830
830
|
}, [
|
|
831
831
|
s(e.$slots, "default")
|
|
832
832
|
], 2);
|
|
833
833
|
}
|
|
834
|
-
const yt = /* @__PURE__ */ G(
|
|
834
|
+
const yt = /* @__PURE__ */ G(vt, [["render", ht]]), kt = [
|
|
835
835
|
// Layout
|
|
836
836
|
"grid content-start",
|
|
837
837
|
// Overflow
|
|
@@ -857,21 +857,21 @@ const yt = /* @__PURE__ */ G(bt, [["render", ht]]), kt = [
|
|
|
857
857
|
const t = D(), r = n(() => [
|
|
858
858
|
"or-data-grid-table-v3",
|
|
859
859
|
...kt
|
|
860
|
-
]),
|
|
861
|
-
const
|
|
862
|
-
return e.features.selecting ? { gridTemplateColumns: `0fr ${
|
|
860
|
+
]), b = n(() => {
|
|
861
|
+
const v = e.columns.map((u) => u.width ?? "auto");
|
|
862
|
+
return e.features.selecting ? { gridTemplateColumns: `0fr ${v.join(" ")}` } : { gridTemplateColumns: v.join(" ") };
|
|
863
863
|
});
|
|
864
864
|
return {
|
|
865
865
|
root: t,
|
|
866
866
|
rootStyles: r,
|
|
867
|
-
rootInlineStyles:
|
|
867
|
+
rootInlineStyles: b
|
|
868
868
|
};
|
|
869
869
|
}
|
|
870
870
|
});
|
|
871
|
-
function $t(e, t, r,
|
|
871
|
+
function $t(e, t, r, b, v, u) {
|
|
872
872
|
return a(), m("div", {
|
|
873
873
|
ref: "root",
|
|
874
|
-
class:
|
|
874
|
+
class: d(e.rootStyles),
|
|
875
875
|
style: N(e.rootInlineStyles)
|
|
876
876
|
}, [
|
|
877
877
|
s(e.$slots, "default")
|
|
@@ -900,10 +900,10 @@ const Dt = /* @__PURE__ */ G(Ot, [["render", $t]]), wt = [
|
|
|
900
900
|
};
|
|
901
901
|
}
|
|
902
902
|
});
|
|
903
|
-
function Tt(e, t, r,
|
|
903
|
+
function Tt(e, t, r, b, v, u) {
|
|
904
904
|
return a(), m("div", {
|
|
905
905
|
ref: "root",
|
|
906
|
-
class:
|
|
906
|
+
class: d(e.rootStyles)
|
|
907
907
|
}, [
|
|
908
908
|
s(e.$slots, "default")
|
|
909
909
|
], 2);
|
|
@@ -953,10 +953,10 @@ const St = /* @__PURE__ */ G(Gt, [["render", Tt]]), Ct = [
|
|
|
953
953
|
};
|
|
954
954
|
}
|
|
955
955
|
});
|
|
956
|
-
function Rt(e, t, r,
|
|
957
|
-
const T =
|
|
956
|
+
function Rt(e, t, r, b, v, u) {
|
|
957
|
+
const T = i("OrNotification");
|
|
958
958
|
return a(), m("div", {
|
|
959
|
-
class:
|
|
959
|
+
class: d(e.rootStyles)
|
|
960
960
|
}, [
|
|
961
961
|
V(T, te(e.notification, {
|
|
962
962
|
class: "rounded-0 shadow-none",
|
|
@@ -971,7 +971,7 @@ function Rt(e, t, r, v, b, u) {
|
|
|
971
971
|
}
|
|
972
972
|
const It = /* @__PURE__ */ G(Mt, [["render", Rt]]), Ft = [
|
|
973
973
|
// Layout
|
|
974
|
-
"grid
|
|
974
|
+
"grid col-span-full grid-cols-[subgrid]",
|
|
975
975
|
// Typography
|
|
976
976
|
"typography-body-2-regular",
|
|
977
977
|
// Theme
|
|
@@ -1008,7 +1008,7 @@ const It = /* @__PURE__ */ G(Mt, [["render", Rt]]), Ft = [
|
|
|
1008
1008
|
],
|
|
1009
1009
|
setup(e) {
|
|
1010
1010
|
const t = D(), r = n(() => [
|
|
1011
|
-
"or-data-grid-table-
|
|
1011
|
+
"or-data-grid-table-extra-row-v3",
|
|
1012
1012
|
...Ft,
|
|
1013
1013
|
...Ht[e.variant]
|
|
1014
1014
|
]);
|
|
@@ -1018,10 +1018,10 @@ const It = /* @__PURE__ */ G(Mt, [["render", Rt]]), Ft = [
|
|
|
1018
1018
|
};
|
|
1019
1019
|
}
|
|
1020
1020
|
});
|
|
1021
|
-
function jt(e, t, r,
|
|
1021
|
+
function jt(e, t, r, b, v, u) {
|
|
1022
1022
|
return a(), m("div", {
|
|
1023
1023
|
ref: "root",
|
|
1024
|
-
class:
|
|
1024
|
+
class: d(e.rootStyles)
|
|
1025
1025
|
}, [
|
|
1026
1026
|
s(e.$slots, "default")
|
|
1027
1027
|
], 2);
|
|
@@ -1032,7 +1032,7 @@ const Et = /* @__PURE__ */ G(Pt, [["render", jt]]), Ut = [
|
|
|
1032
1032
|
], Nt = w({
|
|
1033
1033
|
name: "OrDataGrid",
|
|
1034
1034
|
components: {
|
|
1035
|
-
OrCheckbox:
|
|
1035
|
+
OrCheckbox: X,
|
|
1036
1036
|
OrDataGridFooter: ke,
|
|
1037
1037
|
OrDataGridHeader: Te,
|
|
1038
1038
|
OrDataGridTable: Dt,
|
|
@@ -1049,9 +1049,9 @@ const Et = /* @__PURE__ */ G(Pt, [["render", jt]]), Ut = [
|
|
|
1049
1049
|
OrDataGridTablePlaceholder: yt,
|
|
1050
1050
|
OrDataGridToolbar: St,
|
|
1051
1051
|
OrDataGridNotification: It,
|
|
1052
|
-
OrPagination:
|
|
1053
|
-
OrSearch:
|
|
1054
|
-
OrSkeletonText:
|
|
1052
|
+
OrPagination: Y,
|
|
1053
|
+
OrSearch: Z,
|
|
1054
|
+
OrSkeletonText: _
|
|
1055
1055
|
},
|
|
1056
1056
|
model: {
|
|
1057
1057
|
prop: "modelValue",
|
|
@@ -1105,7 +1105,7 @@ const Et = /* @__PURE__ */ G(Pt, [["render", jt]]), Ut = [
|
|
|
1105
1105
|
"root"
|
|
1106
1106
|
],
|
|
1107
1107
|
setup(e, t) {
|
|
1108
|
-
const r = D(),
|
|
1108
|
+
const r = D(), b = D(), v = n(() => [
|
|
1109
1109
|
"or-data-grid-v3",
|
|
1110
1110
|
...Ut
|
|
1111
1111
|
]), u = n(() => ({
|
|
@@ -1202,7 +1202,7 @@ const Et = /* @__PURE__ */ G(Pt, [["render", jt]]), Ut = [
|
|
|
1202
1202
|
}
|
|
1203
1203
|
}), S = D(/* @__PURE__ */ new Map()), C = D(/* @__PURE__ */ new Map()), I = n(() => e.features.selecting && (typeof e.features.selecting == "object" ? e.features.selecting.showCounter !== !1 : !0)), y = n(() => e.items.length === 0 || e.loading || typeof e.features.selecting == "object" && e.features.selecting.disabled), F = n(() => {
|
|
1204
1204
|
var o;
|
|
1205
|
-
return ((o =
|
|
1205
|
+
return ((o = b.value) == null ? void 0 : o.currentLimit) || 10;
|
|
1206
1206
|
});
|
|
1207
1207
|
function j(o) {
|
|
1208
1208
|
k.value = o;
|
|
@@ -1251,8 +1251,8 @@ const Et = /* @__PURE__ */ G(Pt, [["render", jt]]), Ut = [
|
|
|
1251
1251
|
}
|
|
1252
1252
|
return {
|
|
1253
1253
|
root: r,
|
|
1254
|
-
rootStyles:
|
|
1255
|
-
pagination:
|
|
1254
|
+
rootStyles: v,
|
|
1255
|
+
pagination: b,
|
|
1256
1256
|
tableInlineStyles: u,
|
|
1257
1257
|
selectingIndicator: T,
|
|
1258
1258
|
showSelectingCouter: I,
|
|
@@ -1277,16 +1277,16 @@ const Et = /* @__PURE__ */ G(Pt, [["render", jt]]), Ut = [
|
|
|
1277
1277
|
}
|
|
1278
1278
|
};
|
|
1279
1279
|
}
|
|
1280
|
-
})
|
|
1281
|
-
function
|
|
1282
|
-
const T =
|
|
1280
|
+
});
|
|
1281
|
+
function qt(e, t, r, b, v, u) {
|
|
1282
|
+
const T = i("OrSearch"), h = i("OrDataGridHeader"), g = i("OrDataGridToolbar"), k = i("OrCheckbox"), O = i("OrDataGridTableHeaderCell"), R = i("OrDataGridTableHeaderRow"), S = i("OrDataGridTableHeader"), C = i("OrDataGridNotification"), I = i("OrDataGridTableExtraRow"), y = i("OrSkeletonText"), F = i("OrDataGridTableContentCell"), j = i("OrDataGridTableContentRow"), E = i("OrDataGridTablePlaceholder"), q = i("OrDataGridTableContent"), L = i("OrDataGridTable"), B = i("OrDataGridTableFooterCell"), z = i("OrDataGridTableFooterRow"), A = i("OrDataGridTableFooter"), U = i("OrPagination"), J = i("OrDataGridFooter");
|
|
1283
1283
|
return a(), m("div", {
|
|
1284
1284
|
ref: "root",
|
|
1285
|
-
class:
|
|
1285
|
+
class: d(e.rootStyles)
|
|
1286
1286
|
}, [
|
|
1287
1287
|
e.$slots.title || e.features.searching || e.$slots.search ? (a(), c(h, {
|
|
1288
1288
|
key: 0,
|
|
1289
|
-
class:
|
|
1289
|
+
class: d(["shrink-0"])
|
|
1290
1290
|
}, K({ _: 2 }, [
|
|
1291
1291
|
e.$slots.title ? {
|
|
1292
1292
|
name: "title",
|
|
@@ -1310,7 +1310,7 @@ function Bt(e, t, r, v, b, u) {
|
|
|
1310
1310
|
]), 1024)) : p("", !0),
|
|
1311
1311
|
e.$slots.toolbar ? (a(), c(g, {
|
|
1312
1312
|
key: 1,
|
|
1313
|
-
class:
|
|
1313
|
+
class: d(["shrink-0"])
|
|
1314
1314
|
}, {
|
|
1315
1315
|
default: f(() => [
|
|
1316
1316
|
s(e.$slots, "toolbar")
|
|
@@ -1318,7 +1318,7 @@ function Bt(e, t, r, v, b, u) {
|
|
|
1318
1318
|
_: 3
|
|
1319
1319
|
})) : p("", !0),
|
|
1320
1320
|
V(L, {
|
|
1321
|
-
class:
|
|
1321
|
+
class: d(["grow", { "grid-rows-[auto_1fr]": e.items.length === 0 }]),
|
|
1322
1322
|
style: N(e.tableInlineStyles),
|
|
1323
1323
|
columns: e.columns,
|
|
1324
1324
|
features: e.features
|
|
@@ -1383,13 +1383,11 @@ function Bt(e, t, r, v, b, u) {
|
|
|
1383
1383
|
default: f(() => [
|
|
1384
1384
|
e.$slots["before-rows"] ? (a(), c(I, {
|
|
1385
1385
|
key: 0,
|
|
1386
|
-
|
|
1387
|
-
|
|
1386
|
+
variant: e.variant,
|
|
1387
|
+
class: "border-b-1"
|
|
1388
1388
|
}, {
|
|
1389
1389
|
default: f(() => [
|
|
1390
|
-
|
|
1391
|
-
s(e.$slots, "before-rows")
|
|
1392
|
-
])
|
|
1390
|
+
s(e.$slots, "before-rows")
|
|
1393
1391
|
]),
|
|
1394
1392
|
_: 3
|
|
1395
1393
|
}, 8, ["variant"])) : p("", !0),
|
|
@@ -1476,7 +1474,7 @@ function Bt(e, t, r, v, b, u) {
|
|
|
1476
1474
|
_: 2
|
|
1477
1475
|
}, 1032, ["variant", "selected", "interactive", "onMouseenter", "onMouseleave", "onClick"]))), 128)) : e.$slots.noSearchResults && (e.features.filtering && e.filteringModel || e.features.searching && e.searchingModel) ? (a(), c(E, {
|
|
1478
1476
|
key: 3,
|
|
1479
|
-
class:
|
|
1477
|
+
class: d(["col-span-full"]),
|
|
1480
1478
|
variant: e.variant
|
|
1481
1479
|
}, {
|
|
1482
1480
|
default: f(() => [
|
|
@@ -1488,7 +1486,7 @@ function Bt(e, t, r, v, b, u) {
|
|
|
1488
1486
|
_: 3
|
|
1489
1487
|
}, 8, ["variant"])) : e.$slots.empty ? (a(), c(E, {
|
|
1490
1488
|
key: 4,
|
|
1491
|
-
class:
|
|
1489
|
+
class: d(["col-span-full"]),
|
|
1492
1490
|
variant: e.variant
|
|
1493
1491
|
}, {
|
|
1494
1492
|
default: f(() => [
|
|
@@ -1498,13 +1496,10 @@ function Bt(e, t, r, v, b, u) {
|
|
|
1498
1496
|
}, 8, ["variant"])) : p("", !0),
|
|
1499
1497
|
e.$slots["after-rows"] ? (a(), c(I, {
|
|
1500
1498
|
key: 5,
|
|
1501
|
-
class: i(["col-span-full"]),
|
|
1502
1499
|
variant: e.variant
|
|
1503
1500
|
}, {
|
|
1504
1501
|
default: f(() => [
|
|
1505
|
-
|
|
1506
|
-
s(e.$slots, "after-rows")
|
|
1507
|
-
])
|
|
1502
|
+
s(e.$slots, "after-rows")
|
|
1508
1503
|
]),
|
|
1509
1504
|
_: 3
|
|
1510
1505
|
}, 8, ["variant"])) : p("", !0)
|
|
@@ -1517,7 +1512,7 @@ function Bt(e, t, r, v, b, u) {
|
|
|
1517
1512
|
e.$slots["extra-row"] ? (a(), c(A, { key: 2 }, {
|
|
1518
1513
|
default: f(() => [
|
|
1519
1514
|
V(z, {
|
|
1520
|
-
class:
|
|
1515
|
+
class: d(["shrink-0"]),
|
|
1521
1516
|
variant: e.variant
|
|
1522
1517
|
}, {
|
|
1523
1518
|
default: f(() => [
|
|
@@ -1535,7 +1530,7 @@ function Bt(e, t, r, v, b, u) {
|
|
|
1535
1530
|
})) : p("", !0),
|
|
1536
1531
|
e.$slots.actions || e.showSelectingCouter || e.features.paging ? (a(), c(J, {
|
|
1537
1532
|
key: 3,
|
|
1538
|
-
class:
|
|
1533
|
+
class: d(["shrink-0"])
|
|
1539
1534
|
}, K({ _: 2 }, [
|
|
1540
1535
|
e.features.selecting && e.selectingModel.length > 0 ? {
|
|
1541
1536
|
name: "status",
|
|
@@ -1567,9 +1562,25 @@ function Bt(e, t, r, v, b, u) {
|
|
|
1567
1562
|
]), 1024)) : p("", !0)
|
|
1568
1563
|
], 2);
|
|
1569
1564
|
}
|
|
1570
|
-
const
|
|
1565
|
+
const lo = /* @__PURE__ */ G(Nt, [["render", qt]]);
|
|
1571
1566
|
export {
|
|
1572
1567
|
$ as D,
|
|
1573
|
-
|
|
1568
|
+
lo as O,
|
|
1569
|
+
ke as a,
|
|
1570
|
+
Te as b,
|
|
1571
|
+
Re as c,
|
|
1572
|
+
Ee as d,
|
|
1573
|
+
Le as e,
|
|
1574
|
+
Je as f,
|
|
1575
|
+
Ye as g,
|
|
1576
|
+
et as h,
|
|
1577
|
+
nt as i,
|
|
1578
|
+
ut as j,
|
|
1579
|
+
pt as k,
|
|
1580
|
+
yt as l,
|
|
1581
|
+
Dt as m,
|
|
1582
|
+
St as n,
|
|
1583
|
+
It as o,
|
|
1584
|
+
Et as p
|
|
1574
1585
|
};
|
|
1575
|
-
//# sourceMappingURL=OrDataGrid-
|
|
1586
|
+
//# sourceMappingURL=OrDataGrid-D1o18FfW.mjs.map
|