@citruslime/ui 3.0.2-beta.7 → 3.0.2-beta.9
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.
|
@@ -4636,7 +4636,7 @@ const ts = {
|
|
|
4636
4636
|
}), f + ";";
|
|
4637
4637
|
}
|
|
4638
4638
|
const a = $(() => t.data), i = $(() => ({
|
|
4639
|
-
showPagination: !
|
|
4639
|
+
showPagination: !0,
|
|
4640
4640
|
alternatingRows: !1,
|
|
4641
4641
|
smallGridText: !1,
|
|
4642
4642
|
...t.options
|
|
@@ -4689,7 +4689,7 @@ function gl(o) {
|
|
|
4689
4689
|
const t = o.type !== "slot" || o.slotType !== void 0 && o.field !== void 0, l = o.sortable ?? !0;
|
|
4690
4690
|
return t && l;
|
|
4691
4691
|
}
|
|
4692
|
-
const xs = { class: "cl-
|
|
4692
|
+
const xs = { class: "cl-col-[1_/_-1] cl-grid cl-grid-cols-subgrid" }, Js = ["id", "onClick"], mt = /* @__PURE__ */ G({
|
|
4693
4693
|
inheritAttrs: !1,
|
|
4694
4694
|
__name: "cl-ui-grid-lite-header",
|
|
4695
4695
|
props: /* @__PURE__ */ fe({
|
|
@@ -4775,7 +4775,7 @@ const xs = { class: "cl-contents" }, Js = ["id", "onClick"], mt = /* @__PURE__ *
|
|
|
4775
4775
|
setup(o) {
|
|
4776
4776
|
return (t, l) => (p(!0), b(_, null, le(t.pageSize, (e) => (p(), b("div", {
|
|
4777
4777
|
key: e,
|
|
4778
|
-
class: "cl-
|
|
4778
|
+
class: "cl-col-[1_/_-1] cl-grid cl-grid-cols-subgrid"
|
|
4779
4779
|
}, [
|
|
4780
4780
|
(p(!0), b(_, null, le(t.columnCount, (s) => (p(), b("div", {
|
|
4781
4781
|
key: s,
|
|
@@ -4785,7 +4785,7 @@ const xs = { class: "cl-contents" }, Js = ["id", "onClick"], mt = /* @__PURE__ *
|
|
|
4785
4785
|
}, " ", 2))), 128))
|
|
4786
4786
|
]))), 128));
|
|
4787
4787
|
}
|
|
4788
|
-
}), Xs = { class: "cl-
|
|
4788
|
+
}), Xs = { class: "cl-col-[1_/_-1] cl-grid cl-grid-cols-subgrid" }, vt = /* @__PURE__ */ G({
|
|
4789
4789
|
inheritAttrs: !1,
|
|
4790
4790
|
__name: "cl-ui-grid-lite-row",
|
|
4791
4791
|
props: {
|
|
@@ -4817,7 +4817,7 @@ const xs = { class: "cl-contents" }, Js = ["id", "onClick"], mt = /* @__PURE__ *
|
|
|
4817
4817
|
]), 1040, ["id", "data", "time-zone", "column", "is-small-grid", "class"]))), 128))
|
|
4818
4818
|
]));
|
|
4819
4819
|
}
|
|
4820
|
-
}), er = { class: "cl-
|
|
4820
|
+
}), er = { class: "cl-col-[1_/_-1] cl-grid cl-grid-cols-subgrid" }, bt = /* @__PURE__ */ G({
|
|
4821
4821
|
__name: "cl-ui-grid-lite-body",
|
|
4822
4822
|
props: {
|
|
4823
4823
|
columns: {},
|
|
@@ -4839,38 +4839,35 @@ const xs = { class: "cl-contents" }, Js = ["id", "onClick"], mt = /* @__PURE__ *
|
|
|
4839
4839
|
"column-count": n.columns.length
|
|
4840
4840
|
}, null, 8, ["page-size", "column-count"])) : (((u = n.data) == null ? void 0 : u.results.length) ?? 0) < 1 && n.loading === !1 ? (p(), b("div", {
|
|
4841
4841
|
key: 1,
|
|
4842
|
-
class: D(["cl-text-center cl-w-full", [
|
|
4842
|
+
class: D(["cl-col-[1_/_-1] cl-text-center cl-w-full", [
|
|
4843
4843
|
e.value ? "cl-p-1" : "cl-p-2"
|
|
4844
4844
|
]])
|
|
4845
4845
|
}, [
|
|
4846
4846
|
N(n.$slots, "noData", {}, () => [
|
|
4847
4847
|
se(V(m(l)("grid.noData")), 1)
|
|
4848
4848
|
])
|
|
4849
|
-
], 2)) : (p(!0), b(_, { key: 2 }, le(n.data.results, (c, r) => {
|
|
4850
|
-
|
|
4851
|
-
|
|
4852
|
-
|
|
4853
|
-
|
|
4854
|
-
|
|
4855
|
-
|
|
4856
|
-
|
|
4857
|
-
|
|
4858
|
-
|
|
4859
|
-
|
|
4860
|
-
|
|
4861
|
-
|
|
4862
|
-
|
|
4863
|
-
|
|
4864
|
-
|
|
4865
|
-
|
|
4866
|
-
|
|
4867
|
-
|
|
4868
|
-
|
|
4869
|
-
|
|
4870
|
-
|
|
4871
|
-
}))
|
|
4872
|
-
]), 1032, ["id", "grid-id", "row", "columns", "class", "time-zone", "is-small-grid"]);
|
|
4873
|
-
}), 128))
|
|
4849
|
+
], 2)) : (p(!0), b(_, { key: 2 }, le(n.data.results, (c, r) => (p(), P(vt, {
|
|
4850
|
+
id: `${n.gridId}-r${r}`,
|
|
4851
|
+
key: r,
|
|
4852
|
+
"grid-id": `${n.gridId}-r${r}`,
|
|
4853
|
+
row: c,
|
|
4854
|
+
columns: n.columns,
|
|
4855
|
+
class: D(
|
|
4856
|
+
{
|
|
4857
|
+
"cl-border-b cl-border-off-white": r !== n.data.results.length - 1,
|
|
4858
|
+
"cl-bg-off-white cl-bg-opacity-75": r % 2 != 0 && s.value
|
|
4859
|
+
}
|
|
4860
|
+
),
|
|
4861
|
+
"time-zone": n.timeZone,
|
|
4862
|
+
"is-small-grid": e.value
|
|
4863
|
+
}, Te({ _: 2 }, [
|
|
4864
|
+
le(n.$slots, (a, i) => ({
|
|
4865
|
+
name: i,
|
|
4866
|
+
fn: M((f) => [
|
|
4867
|
+
N(n.$slots, i, ie(pe(f)))
|
|
4868
|
+
])
|
|
4869
|
+
}))
|
|
4870
|
+
]), 1032, ["id", "grid-id", "row", "columns", "class", "time-zone", "is-small-grid"]))), 128))
|
|
4874
4871
|
]);
|
|
4875
4872
|
};
|
|
4876
4873
|
}
|
|
@@ -5040,7 +5037,7 @@ const yt = /* @__PURE__ */ he(sr, [["render", dr]]), pr = { class: "cl-flex cl-g
|
|
|
5040
5037
|
const f = Se("icon");
|
|
5041
5038
|
return a.loading ? (p(), P(yt, { key: 0 })) : (y = a.data) != null && y.results.length && l.value && s.value > 1 ? (p(), b("div", {
|
|
5042
5039
|
key: 1,
|
|
5043
|
-
class: D(["cl-border
|
|
5040
|
+
class: D(["cl-border-off-white cl-border-t cl-flex cl-justify-between cl-p-2 cl-text-grey-4", [
|
|
5044
5041
|
a.isSmallGrid ? "cl-px-1 cl-py-1.5 cl-text-xs" : "cl-p-2 cl-text-sm"
|
|
5045
5042
|
]])
|
|
5046
5043
|
}, [
|