@hotelinking/ui 16.49.19 → 16.49.21
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/ui.cjs +1 -1
- package/dist/ui.d.ts +44 -10
- package/dist/ui.es.js +400 -336
- package/package.json +1 -1
package/dist/ui.es.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as T, createBlock as w, createElementBlock as s, openBlock as l, resolveDynamicComponent as Fe, normalizeClass as x, computed as A, createCommentVNode as b, renderSlot as G, createElementVNode as t, ref as V, watch as Z, unref as f, withCtx as y, createVNode as m, toDisplayString as u, createTextVNode as B, Transition as we, Fragment as k, renderList as S, withDirectives as L, vModelDynamic as yl, vShow as O, withModifiers as ne, vModelText as xe, createStaticVNode as ee, resolveComponent as it, vModelCheckbox as yt, onMounted as Oe, mergeProps as Le, reactive as ke, normalizeStyle as qe, nextTick as be, onUnmounted as bl, TransitionGroup as vl, isRef as bt } from "vue";
|
|
2
2
|
import { Menu as Ze, MenuButton as We, MenuItems as Ge, MenuItem as Je, Combobox as vt, ComboboxLabel as xt, ComboboxInput as pt, ComboboxButton as wt, ComboboxOptions as kt, ComboboxOption as $t, SwitchGroup as xl, Switch as pl, SwitchLabel as wl, TransitionRoot as Ke, Dialog as Qe, TransitionChild as ce, DialogPanel as Xe, DialogTitle as Ct, Disclosure as _e, DisclosureButton as se, DisclosurePanel as Ie, Popover as kl, PopoverButton as $l, PopoverPanel as Cl, Listbox as Sl, ListboxLabel as Bl, ListboxButton as Ml, ListboxOptions as zl, ListboxOption as jl } from "@headlessui/vue";
|
|
3
3
|
import Y from "dayjs";
|
|
4
4
|
import Al from "@vueform/slider";
|
|
5
|
-
const
|
|
5
|
+
const P = /* @__PURE__ */ T({
|
|
6
6
|
__name: "uiIcon",
|
|
7
7
|
props: {
|
|
8
8
|
icon: {},
|
|
@@ -38,7 +38,7 @@ const L = /* @__PURE__ */ A({
|
|
|
38
38
|
})
|
|
39
39
|
}, null, 8, ["class"]));
|
|
40
40
|
}
|
|
41
|
-
}), Tl = ["disabled"], Dl = "group inline-flex items-center border border-transparent font-medium focus:outline-none focus:ring-2 focus:ring-offset-2 disabled:opacity-25 text-nowrap", U = /* @__PURE__ */
|
|
41
|
+
}), Tl = ["disabled"], Dl = "group inline-flex items-center border border-transparent font-medium focus:outline-none focus:ring-2 focus:ring-offset-2 disabled:opacity-25 text-nowrap", U = /* @__PURE__ */ T({
|
|
42
42
|
__name: "uiButton",
|
|
43
43
|
props: {
|
|
44
44
|
block: { type: Boolean },
|
|
@@ -59,10 +59,10 @@ const L = /* @__PURE__ */ A({
|
|
|
59
59
|
small: "px-2.5 py-1.5 text-xs rounded leading-none",
|
|
60
60
|
medium: "px-4 py-2 text-sm rounded-md",
|
|
61
61
|
big: "px-6 py-3 text-base rounded-md"
|
|
62
|
-
}, n =
|
|
62
|
+
}, n = A(() => {
|
|
63
63
|
const a = [Dl];
|
|
64
64
|
return g.color && i[g.color] && a.push(i[g.color]), g.size && o[g.size] && a.push(o[g.size]), g.block && a.push("w-full flex items-center justify-center"), a.join(" ");
|
|
65
|
-
}), r =
|
|
65
|
+
}), r = A(() => [
|
|
66
66
|
"animate-pulse px-4 py-2.5 text-sm rounded-md inline-flex items-center border border-transparent font-medium shadow-sm text-white focus:outline-none focus:ring-2 focus:ring-offset-2 disabled:opacity-25 bg-gray-200"
|
|
67
67
|
].join(" "));
|
|
68
68
|
return (a, d) => e.loading ? (l(), s("button", {
|
|
@@ -70,7 +70,7 @@ const L = /* @__PURE__ */ A({
|
|
|
70
70
|
class: x(r.value),
|
|
71
71
|
type: "button"
|
|
72
72
|
}, [
|
|
73
|
-
e.icon ? (l(), w(
|
|
73
|
+
e.icon ? (l(), w(P, {
|
|
74
74
|
key: 0,
|
|
75
75
|
icon: e.icon,
|
|
76
76
|
color: "white",
|
|
@@ -84,7 +84,7 @@ const L = /* @__PURE__ */ A({
|
|
|
84
84
|
class: x(n.value),
|
|
85
85
|
type: "button"
|
|
86
86
|
}, [
|
|
87
|
-
e.icon ? (l(), w(
|
|
87
|
+
e.icon ? (l(), w(P, {
|
|
88
88
|
key: 0,
|
|
89
89
|
icon: e.icon,
|
|
90
90
|
class: "-ml-0.5 mr-2",
|
|
@@ -100,7 +100,7 @@ const L = /* @__PURE__ */ A({
|
|
|
100
100
|
}, Pl = { class: "flex items-center h-5" }, Fl = ["checked", "value", "disabled"], Ol = { class: "ml-3 text-sm" }, _l = { class: "text-black" }, Il = {
|
|
101
101
|
key: 1,
|
|
102
102
|
class: "flex items-center animate-pulse"
|
|
103
|
-
}, ue = /* @__PURE__ */
|
|
103
|
+
}, ue = /* @__PURE__ */ T({
|
|
104
104
|
__name: "uiCheckbox",
|
|
105
105
|
props: {
|
|
106
106
|
check: { type: Boolean, default: !1 },
|
|
@@ -714,7 +714,7 @@ const ts = {
|
|
|
714
714
|
}, ss = { class: "-py-1" }, ns = ["onClick"], as = {
|
|
715
715
|
key: 1,
|
|
716
716
|
class: "animate-pulse px-4 py-2 bg-gray-200 rounded-md inline-flex items-center relative text-left h-10"
|
|
717
|
-
}, ge = /* @__PURE__ */
|
|
717
|
+
}, ge = /* @__PURE__ */ T({
|
|
718
718
|
__name: "uiDropdown",
|
|
719
719
|
props: {
|
|
720
720
|
items: {},
|
|
@@ -727,7 +727,7 @@ const ts = {
|
|
|
727
727
|
},
|
|
728
728
|
emits: ["optionSelected"],
|
|
729
729
|
setup(e, { emit: g }) {
|
|
730
|
-
const i = g, o = e, n =
|
|
730
|
+
const i = g, o = e, n = A(() => {
|
|
731
731
|
let a = o.items.find((d) => d.active === !0);
|
|
732
732
|
return a ? a.name : o.label;
|
|
733
733
|
}), r = (a) => {
|
|
@@ -825,7 +825,7 @@ const ts = {
|
|
|
825
825
|
}, ms = {
|
|
826
826
|
key: 0,
|
|
827
827
|
class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-2/3 md:w-1/4 mb-1.5"
|
|
828
|
-
}, ae = /* @__PURE__ */
|
|
828
|
+
}, ae = /* @__PURE__ */ T({
|
|
829
829
|
__name: "uiInput",
|
|
830
830
|
props: {
|
|
831
831
|
label: {},
|
|
@@ -871,7 +871,7 @@ const ts = {
|
|
|
871
871
|
onClick: d[0] || (d[0] = (c) => a.$emit("addOnClicked")),
|
|
872
872
|
class: "inline-flex items-center px-3 rounded-l-md border border-r-0 border-gray-800 bg-black text-white hover:text-black hover:bg-lime-400 sm:text-sm cursor-pointer"
|
|
873
873
|
}, u(e.addOn), 1)) : b("", !0),
|
|
874
|
-
|
|
874
|
+
L(t("input", {
|
|
875
875
|
"onUpdate:modelValue": d[1] || (d[1] = (c) => n.value = c),
|
|
876
876
|
max: e.max,
|
|
877
877
|
class: x([{
|
|
@@ -904,27 +904,27 @@ const ts = {
|
|
|
904
904
|
class: "inline-flex items-center px-3 rounded-r-md border border-l-0 border-black bg-black hover:bg-lime-400 hover:text-black text-white sm:text-sm cursor-pointer"
|
|
905
905
|
}, u(e.rightAddOn), 1)) : b("", !0),
|
|
906
906
|
t("div", us, [
|
|
907
|
-
e.icon ? (l(), w(
|
|
907
|
+
e.icon ? (l(), w(P, {
|
|
908
908
|
key: 0,
|
|
909
909
|
icon: e.icon,
|
|
910
910
|
color: e.color,
|
|
911
911
|
loading: e.loading
|
|
912
912
|
}, null, 8, ["icon", "color", "loading"])) : b("", !0),
|
|
913
|
-
|
|
913
|
+
L(m(P, {
|
|
914
914
|
icon: f(et),
|
|
915
915
|
color: "green",
|
|
916
916
|
loading: e.loading
|
|
917
917
|
}, null, 8, ["icon", "loading"]), [
|
|
918
918
|
[O, e.color === "green"]
|
|
919
919
|
]),
|
|
920
|
-
|
|
920
|
+
L(m(P, {
|
|
921
921
|
icon: f(te),
|
|
922
922
|
color: "yellow",
|
|
923
923
|
loading: e.loading
|
|
924
924
|
}, null, 8, ["icon", "loading"]), [
|
|
925
925
|
[O, e.color === "yellow"]
|
|
926
926
|
]),
|
|
927
|
-
|
|
927
|
+
L(m(P, {
|
|
928
928
|
icon: f(ie),
|
|
929
929
|
color: "red",
|
|
930
930
|
loading: e.loading
|
|
@@ -933,7 +933,7 @@ const ts = {
|
|
|
933
933
|
])
|
|
934
934
|
])
|
|
935
935
|
], 2),
|
|
936
|
-
|
|
936
|
+
L(t("p", {
|
|
937
937
|
class: x([{
|
|
938
938
|
"text-gray-400": e.color === "gray",
|
|
939
939
|
"text-red-600": e.color === "red",
|
|
@@ -954,7 +954,7 @@ const ts = {
|
|
|
954
954
|
}, vs = { class: "space-y-1 flex flex-col items-center justify-center" }, xs = { class: "flex text-sm flex-col sm:flex-row text-center" }, ps = ["for"], ws = ["id", "name", "accept"], ks = { class: "pl-1" }, $s = { class: "text-xs pb-4" }, Cs = { class: "mt-2 text-xs flex flex-row items-center text-red-600" }, Ss = {
|
|
955
955
|
key: 1,
|
|
956
956
|
class: "animate-pulse"
|
|
957
|
-
}, Ee = /* @__PURE__ */
|
|
957
|
+
}, Ee = /* @__PURE__ */ T({
|
|
958
958
|
__name: "uiInputFile",
|
|
959
959
|
props: {
|
|
960
960
|
name: {},
|
|
@@ -1008,7 +1008,7 @@ const ts = {
|
|
|
1008
1008
|
onDrop: ne(r, ["prevent"])
|
|
1009
1009
|
}, [
|
|
1010
1010
|
t("div", vs, [
|
|
1011
|
-
m(
|
|
1011
|
+
m(P, {
|
|
1012
1012
|
icon: e.icon,
|
|
1013
1013
|
size: "massive",
|
|
1014
1014
|
color: "black",
|
|
@@ -1035,13 +1035,13 @@ const ts = {
|
|
|
1035
1035
|
t("p", ks, u(e.dragAndDrop), 1)
|
|
1036
1036
|
]),
|
|
1037
1037
|
t("p", $s, u(e.fileTypesAndSizes), 1),
|
|
1038
|
-
|
|
1038
|
+
L(t("p", { class: "font-bold text-xs uppercase block p-2 bg-lime-50 rounded" }, u(f(i)), 513), [
|
|
1039
1039
|
[O, f(i) !== null]
|
|
1040
1040
|
])
|
|
1041
1041
|
])
|
|
1042
1042
|
], 34),
|
|
1043
|
-
|
|
1044
|
-
m(
|
|
1043
|
+
L(t("p", Cs, [
|
|
1044
|
+
m(P, {
|
|
1045
1045
|
icon: f(Ve),
|
|
1046
1046
|
color: "red",
|
|
1047
1047
|
class: "mr-2",
|
|
@@ -1059,7 +1059,7 @@ const ts = {
|
|
|
1059
1059
|
}, zs = { class: "relative" }, js = {
|
|
1060
1060
|
key: 1,
|
|
1061
1061
|
class: "animate-pulse px-4 py-2.5 bg-gray-200 rounded-md flex justify-between items-center w-full"
|
|
1062
|
-
}, As = /* @__PURE__ */
|
|
1062
|
+
}, As = /* @__PURE__ */ T({
|
|
1063
1063
|
__name: "uiSelect",
|
|
1064
1064
|
props: {
|
|
1065
1065
|
items: {},
|
|
@@ -1075,9 +1075,9 @@ const ts = {
|
|
|
1075
1075
|
},
|
|
1076
1076
|
emits: ["selectChanged"],
|
|
1077
1077
|
setup(e, { expose: g, emit: i }) {
|
|
1078
|
-
const o = V(""), n = i, r = e, a =
|
|
1078
|
+
const o = V(""), n = i, r = e, a = A(() => o.value === "" ? r.items : r.items.filter((p) => p.name.toLowerCase().includes(o.value.toLowerCase()))), d = (p) => p?.name ?? "", c = (p) => {
|
|
1079
1079
|
n("selectChanged", p);
|
|
1080
|
-
}, v =
|
|
1080
|
+
}, v = A({
|
|
1081
1081
|
get: () => r.select,
|
|
1082
1082
|
set: (p) => {
|
|
1083
1083
|
c(p);
|
|
@@ -1150,7 +1150,7 @@ const ts = {
|
|
|
1150
1150
|
value: N,
|
|
1151
1151
|
as: "template"
|
|
1152
1152
|
}, {
|
|
1153
|
-
default: y(({ active: E, selected:
|
|
1153
|
+
default: y(({ active: E, selected: M }) => [
|
|
1154
1154
|
t("li", {
|
|
1155
1155
|
class: x([
|
|
1156
1156
|
"relative cursor-default select-none py-2 pl-3 pr-9",
|
|
@@ -1158,9 +1158,9 @@ const ts = {
|
|
|
1158
1158
|
])
|
|
1159
1159
|
}, [
|
|
1160
1160
|
t("span", {
|
|
1161
|
-
class: x(["block truncate",
|
|
1161
|
+
class: x(["block truncate", M && "font-semibold"])
|
|
1162
1162
|
}, u(N.name), 3),
|
|
1163
|
-
|
|
1163
|
+
M ? (l(), s("span", {
|
|
1164
1164
|
key: 0,
|
|
1165
1165
|
class: x([
|
|
1166
1166
|
"absolute inset-y-0 right-0 flex items-center pr-4",
|
|
@@ -1181,7 +1181,7 @@ const ts = {
|
|
|
1181
1181
|
_: 1
|
|
1182
1182
|
})) : b("", !0)
|
|
1183
1183
|
]),
|
|
1184
|
-
|
|
1184
|
+
L(t("p", {
|
|
1185
1185
|
class: x([{
|
|
1186
1186
|
"text-gray-400": e.color === "gray",
|
|
1187
1187
|
"text-red-600": e.color === "red",
|
|
@@ -1229,7 +1229,7 @@ function Ts(e, g) {
|
|
|
1229
1229
|
const Ds = { class: "flex justify-between" }, Ls = {
|
|
1230
1230
|
key: 0,
|
|
1231
1231
|
class: "text-[10px] uppercase justify-self-end self-center"
|
|
1232
|
-
}, ve = /* @__PURE__ */
|
|
1232
|
+
}, ve = /* @__PURE__ */ T({
|
|
1233
1233
|
__name: "uiSelect_v2",
|
|
1234
1234
|
props: {
|
|
1235
1235
|
items: {},
|
|
@@ -1245,7 +1245,7 @@ const Ds = { class: "flex justify-between" }, Ls = {
|
|
|
1245
1245
|
},
|
|
1246
1246
|
emits: ["selectChanged"],
|
|
1247
1247
|
setup(e, { emit: g }) {
|
|
1248
|
-
const i = e, o = g, n = V(""), r = V(i.select), a =
|
|
1248
|
+
const i = e, o = g, n = V(""), r = V(i.select), a = A(
|
|
1249
1249
|
() => n.value === "" ? i.items : i.items.filter((c) => {
|
|
1250
1250
|
const v = n.value.toLowerCase();
|
|
1251
1251
|
return c.name.toLowerCase().includes(v) || (c.label?.toLowerCase().includes(v) ?? !1);
|
|
@@ -1345,7 +1345,7 @@ const Ds = { class: "flex justify-between" }, Ls = {
|
|
|
1345
1345
|
_: 1
|
|
1346
1346
|
})) : b("", !0)
|
|
1347
1347
|
], 2),
|
|
1348
|
-
|
|
1348
|
+
L(t("p", {
|
|
1349
1349
|
class: x([{
|
|
1350
1350
|
// Colores de texto de error según la prop color
|
|
1351
1351
|
"text-gray-400": e.color === "gray",
|
|
@@ -1363,7 +1363,7 @@ const Ds = { class: "flex justify-between" }, Ls = {
|
|
|
1363
1363
|
}), Ps = {
|
|
1364
1364
|
key: 1,
|
|
1365
1365
|
class: "inline-flex items-center px-3 py-2.5 rounded text-xs font-medium leading-none animate-pulse bg-gray-200"
|
|
1366
|
-
}, J = /* @__PURE__ */
|
|
1366
|
+
}, J = /* @__PURE__ */ T({
|
|
1367
1367
|
__name: "uiTag",
|
|
1368
1368
|
props: {
|
|
1369
1369
|
color: { default: "primary" },
|
|
@@ -1411,7 +1411,7 @@ const Ds = { class: "flex justify-between" }, Ls = {
|
|
|
1411
1411
|
}, Vs = ["disabled", "placeholder"], Ns = {
|
|
1412
1412
|
key: 1,
|
|
1413
1413
|
class: "animate-pulse"
|
|
1414
|
-
}, Rs = /* @__PURE__ */
|
|
1414
|
+
}, Rs = /* @__PURE__ */ T({
|
|
1415
1415
|
__name: "uiTextArea",
|
|
1416
1416
|
props: {
|
|
1417
1417
|
name: {},
|
|
@@ -1442,7 +1442,7 @@ const Ds = { class: "flex justify-between" }, Ls = {
|
|
|
1442
1442
|
t("div", {
|
|
1443
1443
|
class: x({ "mt-1": e.label })
|
|
1444
1444
|
}, [
|
|
1445
|
-
|
|
1445
|
+
L(t("textarea", {
|
|
1446
1446
|
disabled: e.disabled,
|
|
1447
1447
|
rows: "4",
|
|
1448
1448
|
"onUpdate:modelValue": d[0] || (d[0] = (c) => r.value = c),
|
|
@@ -1464,7 +1464,7 @@ const Ds = { class: "flex justify-between" }, Ls = {
|
|
|
1464
1464
|
[xe, r.value]
|
|
1465
1465
|
])
|
|
1466
1466
|
], 2),
|
|
1467
|
-
|
|
1467
|
+
L(t("p", {
|
|
1468
1468
|
class: x([{
|
|
1469
1469
|
"text-gray-300": e.color === "gray",
|
|
1470
1470
|
"text-red-600": e.color === "red",
|
|
@@ -1472,7 +1472,7 @@ const Ds = { class: "flex justify-between" }, Ls = {
|
|
|
1472
1472
|
"text-green-600": e.color === "green"
|
|
1473
1473
|
}, "mt-2 text-xs flex flex-row items-center"])
|
|
1474
1474
|
}, [
|
|
1475
|
-
m(
|
|
1475
|
+
m(P, {
|
|
1476
1476
|
icon: f(Ve),
|
|
1477
1477
|
color: "red",
|
|
1478
1478
|
class: "mr-2",
|
|
@@ -1490,7 +1490,7 @@ const Ds = { class: "flex justify-between" }, Ls = {
|
|
|
1490
1490
|
}, Ys = {
|
|
1491
1491
|
key: 1,
|
|
1492
1492
|
class: "animate-pulse flex items-center"
|
|
1493
|
-
}, Es = /* @__PURE__ */
|
|
1493
|
+
}, Es = /* @__PURE__ */ T({
|
|
1494
1494
|
__name: "uiToggle",
|
|
1495
1495
|
props: {
|
|
1496
1496
|
item: {},
|
|
@@ -1567,7 +1567,7 @@ const Ds = { class: "flex justify-between" }, Ls = {
|
|
|
1567
1567
|
}, Ks = ["onClick"], Qs = {
|
|
1568
1568
|
key: 1,
|
|
1569
1569
|
class: "flex flex-row items-center animate-pulse"
|
|
1570
|
-
}, Dt = /* @__PURE__ */
|
|
1570
|
+
}, Dt = /* @__PURE__ */ T({
|
|
1571
1571
|
__name: "uiBreadcrumbs",
|
|
1572
1572
|
props: {
|
|
1573
1573
|
pages: {},
|
|
@@ -1624,7 +1624,7 @@ const Ds = { class: "flex justify-between" }, Ls = {
|
|
|
1624
1624
|
}, dn = {
|
|
1625
1625
|
key: 1,
|
|
1626
1626
|
class: "animate-pulse mb-12"
|
|
1627
|
-
}, cn = /* @__PURE__ */
|
|
1627
|
+
}, cn = /* @__PURE__ */ T({
|
|
1628
1628
|
__name: "uiViewHeader",
|
|
1629
1629
|
props: {
|
|
1630
1630
|
pages: {},
|
|
@@ -1683,7 +1683,7 @@ const Ds = { class: "flex justify-between" }, Ls = {
|
|
|
1683
1683
|
}, gn = { class: "flex" }, mn = { class: "flex-shrink-0" }, fn = { class: "ml-3" }, hn = { class: "mt-4" }, yn = { class: "-my-1.5 -mx-2 gap-x-2 flex" }, bn = ["onClick"], vn = {
|
|
1684
1684
|
key: 1,
|
|
1685
1685
|
class: "flex flex-col animate-pulse"
|
|
1686
|
-
}, xn = /* @__PURE__ */
|
|
1686
|
+
}, xn = /* @__PURE__ */ T({
|
|
1687
1687
|
__name: "uiAlert",
|
|
1688
1688
|
props: {
|
|
1689
1689
|
actions: {},
|
|
@@ -1776,7 +1776,7 @@ const Ds = { class: "flex justify-between" }, Ls = {
|
|
|
1776
1776
|
}, Sn = {
|
|
1777
1777
|
key: 1,
|
|
1778
1778
|
class: "rounded-lg bg-white shadow p-6 cursor-pointer animate-pulse h-full flex flex-col"
|
|
1779
|
-
}, Bn = /* @__PURE__ */
|
|
1779
|
+
}, Bn = /* @__PURE__ */ T({
|
|
1780
1780
|
__name: "uiCard",
|
|
1781
1781
|
props: {
|
|
1782
1782
|
id: {},
|
|
@@ -1841,7 +1841,7 @@ const Ds = { class: "flex justify-between" }, Ls = {
|
|
|
1841
1841
|
}, Nn = { class: "flex flex-col xl:flex-row xl:flex-wrap items-stretch xl:items-center gap-2" }, Rn = {
|
|
1842
1842
|
key: 1,
|
|
1843
1843
|
class: "rounded-lg bg-white shadow p-6 animate-pulse h-full flex flex-col"
|
|
1844
|
-
}, qn = { class: "flex items-center justify-between mb-4" }, Hn = { class: "flex items-center gap-3" }, Yn = { class: "flex flex-col pt-4 border-t border-gray-200 mt-auto" }, En = { class: "flex flex-col xl:flex-row xl:flex-wrap items-stretch xl:items-center gap-2" }, Un = /* @__PURE__ */
|
|
1844
|
+
}, qn = { class: "flex items-center justify-between mb-4" }, Hn = { class: "flex items-center gap-3" }, Yn = { class: "flex flex-col pt-4 border-t border-gray-200 mt-auto" }, En = { class: "flex flex-col xl:flex-row xl:flex-wrap items-stretch xl:items-center gap-2" }, Un = /* @__PURE__ */ T({
|
|
1845
1845
|
__name: "uiCardWithImage",
|
|
1846
1846
|
props: {
|
|
1847
1847
|
id: {},
|
|
@@ -1912,7 +1912,7 @@ const Ds = { class: "flex justify-between" }, Ls = {
|
|
|
1912
1912
|
])) : (l(), s("div", Mn, [
|
|
1913
1913
|
t("div", zn, [
|
|
1914
1914
|
t("div", jn, [
|
|
1915
|
-
m(
|
|
1915
|
+
m(P, {
|
|
1916
1916
|
icon: e.icon || f(Zl),
|
|
1917
1917
|
size: "medium",
|
|
1918
1918
|
color: "primary",
|
|
@@ -1936,7 +1936,7 @@ const Ds = { class: "flex justify-between" }, Ls = {
|
|
|
1936
1936
|
class: "p-1 hover:bg-gray-100 rounded transition-colors",
|
|
1937
1937
|
type: "button"
|
|
1938
1938
|
}, [
|
|
1939
|
-
m(
|
|
1939
|
+
m(P, {
|
|
1940
1940
|
icon: f(Ul),
|
|
1941
1941
|
size: "medium",
|
|
1942
1942
|
color: "primary",
|
|
@@ -1950,14 +1950,14 @@ const Ds = { class: "flex justify-between" }, Ls = {
|
|
|
1950
1950
|
]),
|
|
1951
1951
|
t("div", Ln, [
|
|
1952
1952
|
o.value ? (l(), s("div", Pn, [
|
|
1953
|
-
m(
|
|
1953
|
+
m(P, {
|
|
1954
1954
|
icon: f(Xl),
|
|
1955
1955
|
size: "bigger",
|
|
1956
1956
|
color: "gray",
|
|
1957
1957
|
loading: !1
|
|
1958
1958
|
}, null, 8, ["icon"])
|
|
1959
1959
|
])) : b("", !0),
|
|
1960
|
-
|
|
1960
|
+
L(t("img", {
|
|
1961
1961
|
src: e.image,
|
|
1962
1962
|
alt: e.title,
|
|
1963
1963
|
class: "w-full h-36 object-cover rounded-lg",
|
|
@@ -2021,7 +2021,7 @@ const Ds = { class: "flex justify-between" }, Ls = {
|
|
|
2021
2021
|
])
|
|
2022
2022
|
]));
|
|
2023
2023
|
}
|
|
2024
|
-
}), Zn = /* @__PURE__ */
|
|
2024
|
+
}), Zn = /* @__PURE__ */ T({
|
|
2025
2025
|
__name: "uiFilter",
|
|
2026
2026
|
props: {
|
|
2027
2027
|
items: {},
|
|
@@ -2048,7 +2048,7 @@ const Ds = { class: "flex justify-between" }, Ls = {
|
|
|
2048
2048
|
}), Wn = { class: "fixed inset-0 z-10 overflow-y-auto" }, Gn = { class: "flex min-h-full items-end justify-center p-4 text-center sm:items-center sm:p-0" }, Jn = { class: "absolute top-0 right-0 hidden pt-4 pr-4 sm:block" }, Kn = { class: "sm:flex sm:items-start" }, Qn = { class: "mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left w-full break-words" }, Xn = { class: "mt-4 text-gray-500 text-sm" }, ea = {
|
|
2049
2049
|
key: 0,
|
|
2050
2050
|
class: "mt-8"
|
|
2051
|
-
}, ta = ["onClick"], Pe = /* @__PURE__ */
|
|
2051
|
+
}, ta = ["onClick"], Pe = /* @__PURE__ */ T({
|
|
2052
2052
|
__name: "uiModal",
|
|
2053
2053
|
props: {
|
|
2054
2054
|
title: {},
|
|
@@ -2116,7 +2116,7 @@ const Ds = { class: "flex justify-between" }, Ls = {
|
|
|
2116
2116
|
onClick: a[0] || (a[0] = (d) => n("close"))
|
|
2117
2117
|
}, [
|
|
2118
2118
|
a[3] || (a[3] = t("span", { class: "sr-only" }, "X", -1)),
|
|
2119
|
-
m(
|
|
2119
|
+
m(P, {
|
|
2120
2120
|
icon: f(ie),
|
|
2121
2121
|
"aria-hidden": "true",
|
|
2122
2122
|
loading: e.loading
|
|
@@ -2132,25 +2132,25 @@ const Ds = { class: "flex justify-between" }, Ls = {
|
|
|
2132
2132
|
"bg-yellow-100": e.type === "warning"
|
|
2133
2133
|
}])
|
|
2134
2134
|
}, [
|
|
2135
|
-
|
|
2135
|
+
L(m(f(ie), {
|
|
2136
2136
|
class: "h-6 w-6 text-red-600",
|
|
2137
2137
|
"aria-hidden": "true"
|
|
2138
2138
|
}, null, 512), [
|
|
2139
2139
|
[O, e.type === "danger"]
|
|
2140
2140
|
]),
|
|
2141
|
-
|
|
2141
|
+
L(m(f(et), {
|
|
2142
2142
|
class: "h-6 w-6 text-green-600",
|
|
2143
2143
|
"aria-hidden": "true"
|
|
2144
2144
|
}, null, 512), [
|
|
2145
2145
|
[O, e.type === "success"]
|
|
2146
2146
|
]),
|
|
2147
|
-
|
|
2147
|
+
L(m(f(te), {
|
|
2148
2148
|
class: "h-6 w-6 text-yellow-600",
|
|
2149
2149
|
"aria-hidden": "true"
|
|
2150
2150
|
}, null, 512), [
|
|
2151
2151
|
[O, e.type === "warning"]
|
|
2152
2152
|
]),
|
|
2153
|
-
|
|
2153
|
+
L(m(f(Kl), {
|
|
2154
2154
|
class: "h-6 w-6 text-black",
|
|
2155
2155
|
"aria-hidden": "true"
|
|
2156
2156
|
}, null, 512), [
|
|
@@ -2198,7 +2198,7 @@ const Ds = { class: "flex justify-between" }, Ls = {
|
|
|
2198
2198
|
}), la = { class: "w-full flex flex-col items-center space-y-4 sm:items-end" }, sa = {
|
|
2199
2199
|
key: 0,
|
|
2200
2200
|
class: "max-w-sm w-full bg-white shadow-lg rounded-lg pointer-events-auto ring-1 ring-black ring-opacity-5 overflow-hidden"
|
|
2201
|
-
}, na = { class: "p-4" }, aa = { class: "flex items-start" }, oa = { class: "flex-shrink-0 mt-0.5" }, ia = { class: "ml-3 w-0 flex-1 pt-0.5" }, ra = { class: "font-medium text-gray-900" }, da = { class: "mt-1 text-sm text-gray-500" }, ca = { class: "ml-4 flex-shrink-0 flex" }, ua = /* @__PURE__ */
|
|
2201
|
+
}, na = { class: "p-4" }, aa = { class: "flex items-start" }, oa = { class: "flex-shrink-0 mt-0.5" }, ia = { class: "ml-3 w-0 flex-1 pt-0.5" }, ra = { class: "font-medium text-gray-900" }, da = { class: "mt-1 text-sm text-gray-500" }, ca = { class: "ml-4 flex-shrink-0 flex" }, ua = /* @__PURE__ */ T({
|
|
2202
2202
|
__name: "uiNotification",
|
|
2203
2203
|
props: {
|
|
2204
2204
|
type: { default: "info" },
|
|
@@ -2209,7 +2209,7 @@ const Ds = { class: "flex justify-between" }, Ls = {
|
|
|
2209
2209
|
},
|
|
2210
2210
|
emits: ["closeNotification"],
|
|
2211
2211
|
setup(e, { emit: g }) {
|
|
2212
|
-
const i = e, o =
|
|
2212
|
+
const i = e, o = A(() => i.show);
|
|
2213
2213
|
return (n, r) => (l(), s("div", {
|
|
2214
2214
|
"aria-live": "assertive",
|
|
2215
2215
|
class: x([{ fixed: e.fixed }, "inset-0 flex items-end px-4 py-6 pointer-events-none sm:p-6 sm:items-start z-[9999]"])
|
|
@@ -2228,25 +2228,25 @@ const Ds = { class: "flex justify-between" }, Ls = {
|
|
|
2228
2228
|
t("div", na, [
|
|
2229
2229
|
t("div", aa, [
|
|
2230
2230
|
t("div", oa, [
|
|
2231
|
-
|
|
2231
|
+
L(m(f(Mt), {
|
|
2232
2232
|
"aria-hidden": "true",
|
|
2233
2233
|
class: "h-6 w-6 text-green-600"
|
|
2234
2234
|
}, null, 512), [
|
|
2235
2235
|
[O, e.type === "success"]
|
|
2236
2236
|
]),
|
|
2237
|
-
|
|
2237
|
+
L(m(f(Ve), {
|
|
2238
2238
|
"aria-hidden": "true",
|
|
2239
2239
|
class: "h-6 w-6 text-red-600"
|
|
2240
2240
|
}, null, 512), [
|
|
2241
2241
|
[O, e.type === "danger"]
|
|
2242
2242
|
]),
|
|
2243
|
-
|
|
2243
|
+
L(m(f(te), {
|
|
2244
2244
|
"aria-hidden": "true",
|
|
2245
2245
|
class: "h-6 w-6 text-yellow-400"
|
|
2246
2246
|
}, null, 512), [
|
|
2247
2247
|
[O, e.type === "warning"]
|
|
2248
2248
|
]),
|
|
2249
|
-
|
|
2249
|
+
L(m(f(At), {
|
|
2250
2250
|
"aria-hidden": "true",
|
|
2251
2251
|
class: "h-6 w-6 text-black"
|
|
2252
2252
|
}, null, 512), [
|
|
@@ -2286,7 +2286,7 @@ const Ds = { class: "flex justify-between" }, Ls = {
|
|
|
2286
2286
|
}, ma = { class: "min-w-0" }, fa = { class: "flex items-start gap-x-3" }, ha = { class: "text-sm font-semibold leading-6 text-gray-900" }, ya = { class: "mt-1 flex items-center gap-x-2 text-xs leading-5 text-gray-500" }, ba = { class: "truncate" }, va = { class: "flex flex-none items-center gap-x-4" }, xa = ["href"], pa = { class: "sr-only" }, wa = {
|
|
2287
2287
|
key: 1,
|
|
2288
2288
|
class: "divide-y divide-gray-100 animate-pulse"
|
|
2289
|
-
}, ka = /* @__PURE__ */
|
|
2289
|
+
}, ka = /* @__PURE__ */ T({
|
|
2290
2290
|
__name: "uiTaskList",
|
|
2291
2291
|
props: {
|
|
2292
2292
|
tasks: {},
|
|
@@ -2680,7 +2680,7 @@ const Me = /* @__PURE__ */ Ce(no, [["render", io]]), ro = {
|
|
|
2680
2680
|
}, xo = { class: "sr-only" }, po = ["onClick"], wo = { class: "sr-only" }, ko = {
|
|
2681
2681
|
key: 1,
|
|
2682
2682
|
class: "py-6 flex flex-row justify-between items-center animate-pulse"
|
|
2683
|
-
}, Pt = /* @__PURE__ */
|
|
2683
|
+
}, Pt = /* @__PURE__ */ T({
|
|
2684
2684
|
__name: "uiPagination",
|
|
2685
2685
|
props: {
|
|
2686
2686
|
current: {},
|
|
@@ -2690,11 +2690,11 @@ const Me = /* @__PURE__ */ Ce(no, [["render", io]]), ro = {
|
|
|
2690
2690
|
},
|
|
2691
2691
|
emits: ["changePage"],
|
|
2692
2692
|
setup(e, { emit: g }) {
|
|
2693
|
-
const i = g, o = e, n = V(3), r =
|
|
2693
|
+
const i = g, o = e, n = V(3), r = A(
|
|
2694
2694
|
() => Math.max(1, Number(o.current) - Number(n.value))
|
|
2695
|
-
), a =
|
|
2695
|
+
), a = A(
|
|
2696
2696
|
() => Math.min(Number(o.current) + Number(n.value), Number(o.total))
|
|
2697
|
-
), d =
|
|
2697
|
+
), d = A(() => {
|
|
2698
2698
|
let c = [];
|
|
2699
2699
|
for (let v = Number(r.value); v <= Number(a.value); v++)
|
|
2700
2700
|
c.push(v);
|
|
@@ -2727,7 +2727,7 @@ const Me = /* @__PURE__ */ Ce(no, [["render", io]]), ro = {
|
|
|
2727
2727
|
]),
|
|
2728
2728
|
t("div", null, [
|
|
2729
2729
|
t("nav", vo, [
|
|
2730
|
-
|
|
2730
|
+
L(t("button", {
|
|
2731
2731
|
ref: "test-first-button",
|
|
2732
2732
|
onClick: v[0] || (v[0] = (p) => i("changePage", e.current - 1)),
|
|
2733
2733
|
class: "relative inline-flex items-center px-2 py-2 rounded-l-md border border-gray-300 bg-white text-sm font-medium text-gray-500 hover:bg-gray-50"
|
|
@@ -2750,7 +2750,7 @@ const Me = /* @__PURE__ */ Ce(no, [["render", io]]), ro = {
|
|
|
2750
2750
|
p === e.current ? "z-10 bg-lime-50 border-lime-400 text-black" : "bg-white border-gray-300 text-gray-500 hover:bg-gray-50"
|
|
2751
2751
|
], "relative inline-flex items-center px-4 py-2 border text-sm font-medium"])
|
|
2752
2752
|
}, u(p), 11, po))), 128)),
|
|
2753
|
-
|
|
2753
|
+
L(t("button", {
|
|
2754
2754
|
ref: "test-last-button",
|
|
2755
2755
|
onClick: v[1] || (v[1] = (p) => i("changePage", e.current + 1)),
|
|
2756
2756
|
class: "relative inline-flex items-center px-2 py-2 rounded-r-md border border-gray-300 bg-white text-sm font-medium text-gray-500 hover:bg-gray-50"
|
|
@@ -2824,7 +2824,7 @@ const Me = /* @__PURE__ */ Ce(no, [["render", io]]), ro = {
|
|
|
2824
2824
|
}, Ko = {
|
|
2825
2825
|
key: 1,
|
|
2826
2826
|
class: "flex flex-row justify-between items-center mt-4"
|
|
2827
|
-
}, Qo = { key: 0 }, Xo = /* @__PURE__ */
|
|
2827
|
+
}, Qo = { key: 0 }, Xo = /* @__PURE__ */ T({
|
|
2828
2828
|
__name: "uiPriceCalendar",
|
|
2829
2829
|
props: {
|
|
2830
2830
|
loading: { type: Boolean },
|
|
@@ -2847,29 +2847,29 @@ const Me = /* @__PURE__ */ Ce(no, [["render", io]]), ro = {
|
|
|
2847
2847
|
Z(() => i.today, ($) => {
|
|
2848
2848
|
r.value = $;
|
|
2849
2849
|
});
|
|
2850
|
-
const d =
|
|
2850
|
+
const d = A(() => {
|
|
2851
2851
|
let $ = [];
|
|
2852
2852
|
for (let F = 0; F < 14; F++)
|
|
2853
2853
|
$.push(Y(r.value).add(F, "day"));
|
|
2854
2854
|
return $;
|
|
2855
|
-
}), c =
|
|
2855
|
+
}), c = A(() => a.value.length > 0 && a.value.length < i.rooms.length), v = A(
|
|
2856
2856
|
() => i.paginationCurrent !== void 0 || i.paginationTotal !== void 0
|
|
2857
|
-
), p =
|
|
2857
|
+
), p = A(
|
|
2858
2858
|
() => i.paginationCurrent !== void 0 && i.paginationTotal !== void 0 && i.paginationTotalItems !== void 0
|
|
2859
|
-
), C =
|
|
2859
|
+
), C = A(
|
|
2860
2860
|
() => i.pageSizeOptions && i.pageSizeOptions.length > 0
|
|
2861
|
-
), N =
|
|
2861
|
+
), N = A(() => i.pageSizeOptions ? i.pageSizeOptions.map(($) => ({
|
|
2862
2862
|
name: $.name,
|
|
2863
2863
|
value: String($.value),
|
|
2864
2864
|
active: !!($.active || i.currentPageSize && $.value === i.currentPageSize)
|
|
2865
2865
|
})) : []), E = ($) => {
|
|
2866
2866
|
Y($).isBefore(n.value) || (r.value = $, o("dateChanged", r.value));
|
|
2867
|
-
},
|
|
2867
|
+
}, M = ($) => {
|
|
2868
2868
|
let F = i.category.selectionPrices.find((I) => Y(I.date).isSame($.date));
|
|
2869
2869
|
return F ? F.price : $.price;
|
|
2870
2870
|
}, R = ($) => {
|
|
2871
2871
|
a.value = $.target.checked ? i.rooms.map((F) => F.id) : [];
|
|
2872
|
-
}, K = () => o("changeCategoryBulkPrices"), re = ($) => o("changeCategorySelectionPrice", $), me = ($) => o("changeCategoryUpgradePrice", $), fe = ($) => o("tableAction", $),
|
|
2872
|
+
}, K = () => o("changeCategoryBulkPrices"), re = ($) => o("changeCategorySelectionPrice", $), me = ($) => o("changeCategoryUpgradePrice", $), fe = ($) => o("tableAction", $), j = ($, F, I) => o("changeRoomPrice", { price: $, roomId: F, roomName: I }), q = ($) => {
|
|
2873
2873
|
o("changePage", $);
|
|
2874
2874
|
}, H = ($) => {
|
|
2875
2875
|
o("changePageSize", $.value);
|
|
@@ -2998,7 +2998,7 @@ const Me = /* @__PURE__ */ Ce(no, [["render", io]]), ro = {
|
|
|
2998
2998
|
}, [
|
|
2999
2999
|
t("td", Eo, [
|
|
3000
3000
|
a.value.length > 0 ? (l(), s("div", Uo)) : b("", !0),
|
|
3001
|
-
|
|
3001
|
+
L(t("input", {
|
|
3002
3002
|
type: "checkbox",
|
|
3003
3003
|
class: "absolute left-4 top-1/2 -mt-2 h-4 w-4 rounded border-gray-300 text-lime-400 focus:ring-lime-400",
|
|
3004
3004
|
value: I.name,
|
|
@@ -3015,11 +3015,11 @@ const Me = /* @__PURE__ */ Ce(no, [["render", io]]), ro = {
|
|
|
3015
3015
|
key: le
|
|
3016
3016
|
}, [
|
|
3017
3017
|
m(Me, {
|
|
3018
|
-
onClick: (st) =>
|
|
3018
|
+
onClick: (st) => j(W, I.id, I.name),
|
|
3019
3019
|
class: "border-l border-gray-200 px-6 py-3 text-black hover:text-lime-400 cursor-pointer",
|
|
3020
3020
|
price: W,
|
|
3021
3021
|
currency: e.currency.symbol,
|
|
3022
|
-
basePrice:
|
|
3022
|
+
basePrice: M(W)
|
|
3023
3023
|
}, null, 8, ["onClick", "price", "currency", "basePrice"])
|
|
3024
3024
|
]))), 128))
|
|
3025
3025
|
], 2))), 128))
|
|
@@ -3073,7 +3073,7 @@ const Me = /* @__PURE__ */ Ce(no, [["render", io]]), ro = {
|
|
|
3073
3073
|
])) : (l(), w(Lt, { key: 2 }))
|
|
3074
3074
|
], 64));
|
|
3075
3075
|
}
|
|
3076
|
-
}), tt = /* @__PURE__ */
|
|
3076
|
+
}), tt = /* @__PURE__ */ T({
|
|
3077
3077
|
__name: "ApexChartWrapper",
|
|
3078
3078
|
emits: ["updated", "mounted", "dataPointSelection"],
|
|
3079
3079
|
setup(e) {
|
|
@@ -3098,7 +3098,7 @@ const Me = /* @__PURE__ */ Ce(no, [["render", io]]), ro = {
|
|
|
3098
3098
|
}), ei = { class: "chart-header flex flex-row items-center w-full justify-between" }, ti = { class: "text-lg font-bold truncate mr-8" }, li = {
|
|
3099
3099
|
key: 0,
|
|
3100
3100
|
class: "flex items-center gap-x-2 grow"
|
|
3101
|
-
}, si = { class: "self-center ml-2" }, ni = { class: "self-center ml-2" }, ai = { class: "self-center ml-2" }, oi = { class: "hidden sm:flex items-center" }, ii = { class: "w-1/2 min-w-0 flex-1" }, ri = ["max"], di = { class: "min-w-0 flex-1" }, ci = ["max"], ui = { class: "chart-content pb-6" }, gi = { class: "'w-full h-full flex items-center justify-center flex-col" }, mi = { class: "card chart apex-chart px-4 py-5 bg-white shadow rounded-lg overflow-hidden sm:p-6 flex grow h-80" }, fi = /* @__PURE__ */
|
|
3101
|
+
}, si = { class: "self-center ml-2" }, ni = { class: "self-center ml-2" }, ai = { class: "self-center ml-2" }, oi = { class: "hidden sm:flex items-center" }, ii = { class: "w-1/2 min-w-0 flex-1" }, ri = ["max"], di = { class: "min-w-0 flex-1" }, ci = ["max"], ui = { class: "chart-content pb-6" }, gi = { class: "'w-full h-full flex items-center justify-center flex-col" }, mi = { class: "card chart apex-chart px-4 py-5 bg-white shadow rounded-lg overflow-hidden sm:p-6 flex grow h-80" }, fi = /* @__PURE__ */ T({
|
|
3102
3102
|
__name: "uiChart",
|
|
3103
3103
|
props: {
|
|
3104
3104
|
labels: {},
|
|
@@ -3122,8 +3122,8 @@ const Me = /* @__PURE__ */ Ce(no, [["render", io]]), ro = {
|
|
|
3122
3122
|
setup(e, { emit: g }) {
|
|
3123
3123
|
const i = g, o = V((/* @__PURE__ */ new Date()).toISOString().slice(0, (/* @__PURE__ */ new Date()).toISOString().lastIndexOf(":"))), n = e;
|
|
3124
3124
|
let r = ke(n.dates || { from: "", to: o });
|
|
3125
|
-
Z(() => n.dates, (
|
|
3126
|
-
|
|
3125
|
+
Z(() => n.dates, (M) => {
|
|
3126
|
+
M && (r = M);
|
|
3127
3127
|
});
|
|
3128
3128
|
let d = {
|
|
3129
3129
|
chart: {
|
|
@@ -3132,14 +3132,19 @@ const Me = /* @__PURE__ */ Ce(no, [["render", io]]), ro = {
|
|
|
3132
3132
|
},
|
|
3133
3133
|
zoom: {
|
|
3134
3134
|
enabled: !0
|
|
3135
|
+
},
|
|
3136
|
+
animations: {
|
|
3137
|
+
enabled: !0,
|
|
3138
|
+
easing: "easeinout",
|
|
3139
|
+
speed: 800
|
|
3135
3140
|
}
|
|
3136
3141
|
},
|
|
3137
3142
|
colors: function() {
|
|
3138
3143
|
return n.isNps ? [
|
|
3139
|
-
function({ dataPointIndex:
|
|
3140
|
-
if (
|
|
3141
|
-
if (
|
|
3142
|
-
if (
|
|
3144
|
+
function({ dataPointIndex: M }) {
|
|
3145
|
+
if (M <= 5) return "#F87171";
|
|
3146
|
+
if (M > 5 && M <= 7) return "#eab308";
|
|
3147
|
+
if (M >= 8) return "#84cc16";
|
|
3143
3148
|
}
|
|
3144
3149
|
] : n.type === "rangeBar" ? ["#00E396", "#FEB019", "#FF4560"] : ["#000000", "#a3e635", "#38f7ea"];
|
|
3145
3150
|
}(),
|
|
@@ -3176,14 +3181,73 @@ const Me = /* @__PURE__ */ Ce(no, [["render", io]]), ro = {
|
|
|
3176
3181
|
}
|
|
3177
3182
|
}
|
|
3178
3183
|
]
|
|
3179
|
-
}), n.type === "area" && (d.tooltip = { intersect: !1, shared: !
|
|
3180
|
-
const c = () =>
|
|
3184
|
+
}), n.type === "area" ? d.tooltip = { intersect: !1, shared: !0 } : n.type !== "rangeBar" && (d.tooltip = { intersect: !1, shared: !1 });
|
|
3185
|
+
const c = () => {
|
|
3186
|
+
d.chart.stacked = n.stacked, n.options && (n.options.xaxis.hideOverlappingLabels = !0, n.options.xaxis.decimalsInFloat = 2, n.options.xaxis.tickAmount = 10);
|
|
3187
|
+
const M = { ...d, ...n.options };
|
|
3188
|
+
return n.type === "rangeBar" ? (M.tooltip = {
|
|
3189
|
+
enabled: !0,
|
|
3190
|
+
shared: !1,
|
|
3191
|
+
intersect: !1,
|
|
3192
|
+
followCursor: !1
|
|
3193
|
+
}, M.chart = {
|
|
3194
|
+
...M.chart,
|
|
3195
|
+
animations: {
|
|
3196
|
+
enabled: !1
|
|
3197
|
+
// Deshabilitado para datasets grandes
|
|
3198
|
+
},
|
|
3199
|
+
toolbar: {
|
|
3200
|
+
show: !1
|
|
3201
|
+
},
|
|
3202
|
+
zoom: {
|
|
3203
|
+
enabled: !1
|
|
3204
|
+
// Deshabilitado para evitar cálculos costosos
|
|
3205
|
+
},
|
|
3206
|
+
selection: {
|
|
3207
|
+
enabled: !1
|
|
3208
|
+
// Deshabilitado para mejor rendimiento
|
|
3209
|
+
}
|
|
3210
|
+
}, M.dataLabels = {
|
|
3211
|
+
enabled: !1
|
|
3212
|
+
}, M.markers = {
|
|
3213
|
+
strokeWidth: 0,
|
|
3214
|
+
size: 0,
|
|
3215
|
+
hover: {
|
|
3216
|
+
size: 0
|
|
3217
|
+
}
|
|
3218
|
+
}, M.plotOptions = {
|
|
3219
|
+
bar: {
|
|
3220
|
+
horizontal: n.horizontal,
|
|
3221
|
+
rangeBarGroupRows: !0,
|
|
3222
|
+
// Agrupa filas que no se solapan para mejor rendimiento
|
|
3223
|
+
barHeight: "70%",
|
|
3224
|
+
borderRadius: 0
|
|
3225
|
+
// Sin bordes redondeados para mejor rendimiento
|
|
3226
|
+
}
|
|
3227
|
+
}, M.xaxis && !M.xaxis.type && (M.xaxis.type = "datetime"), M.grid || (M.grid = {
|
|
3228
|
+
show: !0,
|
|
3229
|
+
borderColor: "#e0e0e0",
|
|
3230
|
+
strokeDashArray: 0,
|
|
3231
|
+
position: "back",
|
|
3232
|
+
xaxis: {
|
|
3233
|
+
lines: {
|
|
3234
|
+
show: !1
|
|
3235
|
+
// Sin líneas X para mejor rendimiento
|
|
3236
|
+
}
|
|
3237
|
+
},
|
|
3238
|
+
yaxis: {
|
|
3239
|
+
lines: {
|
|
3240
|
+
show: !0
|
|
3241
|
+
}
|
|
3242
|
+
}
|
|
3243
|
+
})) : M.plotOptions = { bar: { horizontal: n.horizontal } }, M;
|
|
3244
|
+
}, v = () => {
|
|
3181
3245
|
r.from !== "" && r.to !== "" && Y(r.from).isBefore(Y(r.to)) && i("selectedRange", { range: r, chartId: n.id });
|
|
3182
|
-
}, p =
|
|
3183
|
-
i("dataPointSelection", { id: n.id, chartContext: R, config: K, event:
|
|
3246
|
+
}, p = A(() => n.series), C = A(() => c()), N = () => i("chartUpdated"), E = (M, R, K) => {
|
|
3247
|
+
i("dataPointSelection", { id: n.id, chartContext: R, config: K, event: M });
|
|
3184
3248
|
};
|
|
3185
|
-
return (
|
|
3186
|
-
|
|
3249
|
+
return (M, R) => (l(), s(k, null, [
|
|
3250
|
+
L(t("div", {
|
|
3187
3251
|
class: "card chart apex-chart p-4 bg-white shadow rounded-lg overflow-hidden flex grow",
|
|
3188
3252
|
style: qe({ height: e.height + "px" })
|
|
3189
3253
|
}, [
|
|
@@ -3196,7 +3260,7 @@ const Me = /* @__PURE__ */ Ce(no, [["render", io]]), ro = {
|
|
|
3196
3260
|
loading: !1
|
|
3197
3261
|
}, {
|
|
3198
3262
|
default: y(() => [
|
|
3199
|
-
m(
|
|
3263
|
+
m(P, {
|
|
3200
3264
|
icon: f(Gl),
|
|
3201
3265
|
loading: !1,
|
|
3202
3266
|
color: "red"
|
|
@@ -3211,7 +3275,7 @@ const Me = /* @__PURE__ */ Ce(no, [["render", io]]), ro = {
|
|
|
3211
3275
|
loading: !1
|
|
3212
3276
|
}, {
|
|
3213
3277
|
default: y(() => [
|
|
3214
|
-
m(
|
|
3278
|
+
m(P, {
|
|
3215
3279
|
icon: f(El),
|
|
3216
3280
|
loading: !1,
|
|
3217
3281
|
color: "yellow"
|
|
@@ -3226,7 +3290,7 @@ const Me = /* @__PURE__ */ Ce(no, [["render", io]]), ro = {
|
|
|
3226
3290
|
loading: !1
|
|
3227
3291
|
}, {
|
|
3228
3292
|
default: y(() => [
|
|
3229
|
-
m(
|
|
3293
|
+
m(P, {
|
|
3230
3294
|
icon: f(Jl),
|
|
3231
3295
|
loading: !1,
|
|
3232
3296
|
color: "green"
|
|
@@ -3238,7 +3302,7 @@ const Me = /* @__PURE__ */ Ce(no, [["render", io]]), ro = {
|
|
|
3238
3302
|
])) : b("", !0),
|
|
3239
3303
|
t("div", oi, [
|
|
3240
3304
|
t("div", ii, [
|
|
3241
|
-
|
|
3305
|
+
L(t("input", {
|
|
3242
3306
|
type: "datetime-local",
|
|
3243
3307
|
"onUpdate:modelValue": R[0] || (R[0] = (K) => f(r).from = K),
|
|
3244
3308
|
max: o.value.toString(),
|
|
@@ -3251,7 +3315,7 @@ const Me = /* @__PURE__ */ Ce(no, [["render", io]]), ro = {
|
|
|
3251
3315
|
])
|
|
3252
3316
|
]),
|
|
3253
3317
|
t("div", di, [
|
|
3254
|
-
|
|
3318
|
+
L(t("input", {
|
|
3255
3319
|
type: "datetime-local",
|
|
3256
3320
|
"onUpdate:modelValue": R[1] || (R[1] = (K) => f(r).to = K),
|
|
3257
3321
|
max: o.value.toString(),
|
|
@@ -3263,16 +3327,16 @@ const Me = /* @__PURE__ */ Ce(no, [["render", io]]), ro = {
|
|
|
3263
3327
|
[xe, f(r).to]
|
|
3264
3328
|
])
|
|
3265
3329
|
]),
|
|
3266
|
-
m(
|
|
3330
|
+
m(P, {
|
|
3267
3331
|
class: "ml-4 cursor-pointer",
|
|
3268
3332
|
size: "big",
|
|
3269
3333
|
loading: e.loading,
|
|
3270
3334
|
icon: f(St),
|
|
3271
|
-
onClick: R[2] || (R[2] = (K) =>
|
|
3335
|
+
onClick: R[2] || (R[2] = (K) => M.$emit("maximizeChart", e.id))
|
|
3272
3336
|
}, null, 8, ["loading", "icon"])
|
|
3273
3337
|
])
|
|
3274
3338
|
]),
|
|
3275
|
-
|
|
3339
|
+
L(t("div", ui, [
|
|
3276
3340
|
m(tt, {
|
|
3277
3341
|
class: "chart",
|
|
3278
3342
|
type: e.type,
|
|
@@ -3286,8 +3350,8 @@ const Me = /* @__PURE__ */ Ce(no, [["render", io]]), ro = {
|
|
|
3286
3350
|
], 512), [
|
|
3287
3351
|
[O, !e.empty]
|
|
3288
3352
|
]),
|
|
3289
|
-
|
|
3290
|
-
m(
|
|
3353
|
+
L(t("div", gi, [
|
|
3354
|
+
m(P, {
|
|
3291
3355
|
icon: f(te),
|
|
3292
3356
|
color: "gray",
|
|
3293
3357
|
loading: !1,
|
|
@@ -3300,7 +3364,7 @@ const Me = /* @__PURE__ */ Ce(no, [["render", io]]), ro = {
|
|
|
3300
3364
|
], 4), [
|
|
3301
3365
|
[O, !e.loading]
|
|
3302
3366
|
]),
|
|
3303
|
-
|
|
3367
|
+
L(t("div", mi, [...R[4] || (R[4] = [
|
|
3304
3368
|
t("div", {
|
|
3305
3369
|
role: "status",
|
|
3306
3370
|
class: "w-full animate-pulse h-full flex flex-col"
|
|
@@ -3343,7 +3407,7 @@ function bi(e, g, i, o, n, r) {
|
|
|
3343
3407
|
], -1)
|
|
3344
3408
|
])]);
|
|
3345
3409
|
}
|
|
3346
|
-
const vi = /* @__PURE__ */ Ce(hi, [["render", bi]]), xi = /* @__PURE__ */
|
|
3410
|
+
const vi = /* @__PURE__ */ Ce(hi, [["render", bi]]), xi = /* @__PURE__ */ T({
|
|
3347
3411
|
__name: "uiLoadingScreen",
|
|
3348
3412
|
props: {
|
|
3349
3413
|
title: {},
|
|
@@ -3363,10 +3427,10 @@ const vi = /* @__PURE__ */ Ce(hi, [["render", bi]]), xi = /* @__PURE__ */ A({
|
|
|
3363
3427
|
alt: "loading animation"
|
|
3364
3428
|
})
|
|
3365
3429
|
], -1)),
|
|
3366
|
-
|
|
3430
|
+
L(t("h2", { class: "text-xs font-bold text-center uppercase mb-2" }, u(e.title), 513), [
|
|
3367
3431
|
[O, e.title]
|
|
3368
3432
|
]),
|
|
3369
|
-
|
|
3433
|
+
L(t("p", { class: "text-xs text-center uppercase md:w-1/4" }, u(e.message), 513), [
|
|
3370
3434
|
[O, e.message]
|
|
3371
3435
|
])
|
|
3372
3436
|
], 2));
|
|
@@ -3389,7 +3453,7 @@ const vi = /* @__PURE__ */ Ce(hi, [["render", bi]]), xi = /* @__PURE__ */ A({
|
|
|
3389
3453
|
}, Ai = {
|
|
3390
3454
|
key: 1,
|
|
3391
3455
|
class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/2"
|
|
3392
|
-
}, Ti = { class: "h-12 flex flex-row items-center" }, Di = /* @__PURE__ */
|
|
3456
|
+
}, Ti = { class: "h-12 flex flex-row items-center" }, Di = /* @__PURE__ */ T({
|
|
3393
3457
|
__name: "uiSidebar",
|
|
3394
3458
|
props: {
|
|
3395
3459
|
navigation: {},
|
|
@@ -3400,7 +3464,7 @@ const vi = /* @__PURE__ */ Ce(hi, [["render", bi]]), xi = /* @__PURE__ */ A({
|
|
|
3400
3464
|
},
|
|
3401
3465
|
emits: ["sideBarClick"],
|
|
3402
3466
|
setup(e, { emit: g }) {
|
|
3403
|
-
const i = e, o = g, n =
|
|
3467
|
+
const i = e, o = g, n = A(() => i.navigation ? Array.isArray(i.navigation) ? i.navigation : [i.navigation] : []);
|
|
3404
3468
|
return (r, a) => (l(), s("div", pi, [
|
|
3405
3469
|
t("div", wi, [
|
|
3406
3470
|
t("div", ki, [
|
|
@@ -3421,7 +3485,7 @@ const vi = /* @__PURE__ */ Ce(hi, [["render", bi]]), xi = /* @__PURE__ */ A({
|
|
|
3421
3485
|
class: x([d.current ? "bg-indigo-600 text-white" : "text-gray-600 hover:bg-gray-50 hover:text-gray-900", "group w-full flex items-center pl-2 pr-1 py-2 text-left text-sm font-medium rounded-md focus:outline-none"])
|
|
3422
3486
|
}, {
|
|
3423
3487
|
default: y(() => [
|
|
3424
|
-
d.icon ? (l(), w(
|
|
3488
|
+
d.icon ? (l(), w(P, {
|
|
3425
3489
|
key: 0,
|
|
3426
3490
|
loading: e.loading,
|
|
3427
3491
|
icon: d.icon,
|
|
@@ -3465,7 +3529,7 @@ const vi = /* @__PURE__ */ Ce(hi, [["render", bi]]), xi = /* @__PURE__ */ A({
|
|
|
3465
3529
|
"group w-full flex items-center pl-2 py-2 text-sm font-medium rounded-md"
|
|
3466
3530
|
])
|
|
3467
3531
|
}, [
|
|
3468
|
-
d.icon ? (l(), w(
|
|
3532
|
+
d.icon ? (l(), w(P, {
|
|
3469
3533
|
key: 0,
|
|
3470
3534
|
loading: e.loading,
|
|
3471
3535
|
icon: d.icon,
|
|
@@ -3501,7 +3565,7 @@ const vi = /* @__PURE__ */ Ce(hi, [["render", bi]]), xi = /* @__PURE__ */ A({
|
|
|
3501
3565
|
}, Ei = { class: "ml-2 space-y-1" }, Ui = { class: "font-bold mb-4" }, Zi = {
|
|
3502
3566
|
key: 1,
|
|
3503
3567
|
class: "flex flex-col grow h-full"
|
|
3504
|
-
}, Wi = { class: "flex-1 overflow-y-auto pr-6" }, Gi = { class: "h-12 flex flex-row items-center" }, Ue = /* @__PURE__ */
|
|
3568
|
+
}, Wi = { class: "flex-1 overflow-y-auto pr-6" }, Gi = { class: "h-12 flex flex-row items-center" }, Ue = /* @__PURE__ */ T({
|
|
3505
3569
|
__name: "uiSidebarV2",
|
|
3506
3570
|
props: {
|
|
3507
3571
|
navigation: {},
|
|
@@ -3513,7 +3577,7 @@ const vi = /* @__PURE__ */ Ce(hi, [["render", bi]]), xi = /* @__PURE__ */ A({
|
|
|
3513
3577
|
},
|
|
3514
3578
|
emits: ["productBarClick", "sideBarClick", "inputChanged"],
|
|
3515
3579
|
setup(e, { emit: g }) {
|
|
3516
|
-
const i = e, o =
|
|
3580
|
+
const i = e, o = A(() => i.navigation ? Array.isArray(i.navigation) ? i.navigation : [i.navigation] : []);
|
|
3517
3581
|
return (n, r) => (l(), s("div", Li, [
|
|
3518
3582
|
t("div", Pi, [
|
|
3519
3583
|
t("ul", null, [
|
|
@@ -3565,7 +3629,7 @@ const vi = /* @__PURE__ */ Ce(hi, [["render", bi]]), xi = /* @__PURE__ */ A({
|
|
|
3565
3629
|
class: x([a.current ? "bg-lime-100" : "hover:bg-lime-100", "flex w-full items-center gap-x-3 rounded-md p-2 text-left text-sm font-semibold leading-6 text-gray-700"])
|
|
3566
3630
|
}, {
|
|
3567
3631
|
default: y(() => [
|
|
3568
|
-
m(
|
|
3632
|
+
m(P, {
|
|
3569
3633
|
icon: a.icon,
|
|
3570
3634
|
color: "primary",
|
|
3571
3635
|
size: "big",
|
|
@@ -3581,7 +3645,7 @@ const vi = /* @__PURE__ */ Ce(hi, [["render", bi]]), xi = /* @__PURE__ */ A({
|
|
|
3581
3645
|
]),
|
|
3582
3646
|
_: 2
|
|
3583
3647
|
}, 1032, ["onClick", "class"]),
|
|
3584
|
-
|
|
3648
|
+
L(t("div", null, [
|
|
3585
3649
|
m(f(Ie), {
|
|
3586
3650
|
as: "ul",
|
|
3587
3651
|
class: "mt-1 px-2",
|
|
@@ -3615,7 +3679,7 @@ const vi = /* @__PURE__ */ Ce(hi, [["render", bi]]), xi = /* @__PURE__ */ A({
|
|
|
3615
3679
|
onClick: (d) => n.$emit("sideBarClick", a.id),
|
|
3616
3680
|
class: x([a.current ? "bg-lime-100" : "hover:bg-lime-100", "group flex gap-x-3 rounded-md p-2 text-sm font-semibold leading-6 text-gray-700 cursor-pointer"])
|
|
3617
3681
|
}, [
|
|
3618
|
-
m(
|
|
3682
|
+
m(P, {
|
|
3619
3683
|
icon: a.icon,
|
|
3620
3684
|
color: "primary",
|
|
3621
3685
|
size: "big",
|
|
@@ -3666,7 +3730,7 @@ const vi = /* @__PURE__ */ Ce(hi, [["render", bi]]), xi = /* @__PURE__ */ A({
|
|
|
3666
3730
|
}), Ji = { key: 0 }, Ki = ["title"], Qi = { class: "ml-16 flex items-baseline pb-5" }, Xi = { class: "text-2xl font-semibold" }, er = {
|
|
3667
3731
|
key: 0,
|
|
3668
3732
|
class: "text-black ml-2 flex items-baseline text-sm font-semibold"
|
|
3669
|
-
}, tr = { class: "absolute bottom-0 inset-x-0 bg-gray-50 px-4 py-4 sm:px-6" }, lr = { class: "text-sm" }, sr = { key: 1 }, nr = { class: "relative bg-white pt-5 px-4 sm:pt-6 sm:px-6 shadow rounded-lg overflow-hidden h-full pb-6" }, ar = { class: "absolute bg-gray-200 rounded-md p-3 animate-pulse" }, Ft = /* @__PURE__ */
|
|
3733
|
+
}, tr = { class: "absolute bottom-0 inset-x-0 bg-gray-50 px-4 py-4 sm:px-6" }, lr = { class: "text-sm" }, sr = { key: 1 }, nr = { class: "relative bg-white pt-5 px-4 sm:pt-6 sm:px-6 shadow rounded-lg overflow-hidden h-full pb-6" }, ar = { class: "absolute bg-gray-200 rounded-md p-3 animate-pulse" }, Ft = /* @__PURE__ */ T({
|
|
3670
3734
|
__name: "uiStats",
|
|
3671
3735
|
props: {
|
|
3672
3736
|
item: {},
|
|
@@ -3678,7 +3742,7 @@ const vi = /* @__PURE__ */ Ce(hi, [["render", bi]]), xi = /* @__PURE__ */ A({
|
|
|
3678
3742
|
t("div", nr, [
|
|
3679
3743
|
t("dt", null, [
|
|
3680
3744
|
t("div", ar, [
|
|
3681
|
-
m(
|
|
3745
|
+
m(P, {
|
|
3682
3746
|
loading: e.loading,
|
|
3683
3747
|
icon: e.item.icon,
|
|
3684
3748
|
class: "h-6 w-6 text-white",
|
|
@@ -3705,7 +3769,7 @@ const vi = /* @__PURE__ */ Ce(hi, [["render", bi]]), xi = /* @__PURE__ */ A({
|
|
|
3705
3769
|
"bg-yellow-400": e.item.color === "yellow"
|
|
3706
3770
|
}])
|
|
3707
3771
|
}, [
|
|
3708
|
-
m(
|
|
3772
|
+
m(P, {
|
|
3709
3773
|
icon: e.item.icon,
|
|
3710
3774
|
class: "h-6 w-6",
|
|
3711
3775
|
"aria-hidden": "true",
|
|
@@ -3743,7 +3807,7 @@ const vi = /* @__PURE__ */ Ce(hi, [["render", bi]]), xi = /* @__PURE__ */ A({
|
|
|
3743
3807
|
})) : b("", !0),
|
|
3744
3808
|
B(" " + u(e.item.change), 1)
|
|
3745
3809
|
], 2)) : b("", !0),
|
|
3746
|
-
|
|
3810
|
+
L(t("div", tr, [
|
|
3747
3811
|
t("div", lr, [
|
|
3748
3812
|
t("span", {
|
|
3749
3813
|
onClick: o[0] || (o[0] = (n) => i.$emit("statClick", e.item.id)),
|
|
@@ -3769,7 +3833,7 @@ const vi = /* @__PURE__ */ Ce(hi, [["render", bi]]), xi = /* @__PURE__ */ A({
|
|
|
3769
3833
|
}, hr = {
|
|
3770
3834
|
key: 1,
|
|
3771
3835
|
class: "overflow-hidden bg-white shadow sm:rounded-lg"
|
|
3772
|
-
}, yr = { class: "border-t border-gray-200" }, br = /* @__PURE__ */
|
|
3836
|
+
}, yr = { class: "border-t border-gray-200" }, br = /* @__PURE__ */ T({
|
|
3773
3837
|
__name: "uiStripedCard",
|
|
3774
3838
|
props: {
|
|
3775
3839
|
title: {},
|
|
@@ -3856,7 +3920,7 @@ const vi = /* @__PURE__ */ Ce(hi, [["render", bi]]), xi = /* @__PURE__ */ A({
|
|
|
3856
3920
|
})
|
|
3857
3921
|
], -1)),
|
|
3858
3922
|
t("div", null, [
|
|
3859
|
-
m(
|
|
3923
|
+
m(P, {
|
|
3860
3924
|
icon: f(es),
|
|
3861
3925
|
loading: !1,
|
|
3862
3926
|
color: "white",
|
|
@@ -3872,7 +3936,7 @@ const vi = /* @__PURE__ */ Ce(hi, [["render", bi]]), xi = /* @__PURE__ */ A({
|
|
|
3872
3936
|
}, $r = { class: "w-screen max-w-md flex-auto rounded bg-white text-sm/6 shadow-lg ring-1 ring-gray-900/5 lg:max-w-3xl" }, Cr = { class: "p-6 gap-y-2 flex flex-col" }, Sr = { class: "flex items-center gap-x-2 w-full" }, Br = { class: "px-6 pb-6 gap-x-2 flex justify-end" }, Mr = {
|
|
3873
3937
|
key: 1,
|
|
3874
3938
|
class: "relative animate-pulse"
|
|
3875
|
-
}, zr = /* @__PURE__ */
|
|
3939
|
+
}, zr = /* @__PURE__ */ T({
|
|
3876
3940
|
__name: "uiSmartFilterMultipleV2",
|
|
3877
3941
|
props: {
|
|
3878
3942
|
literals: { default: () => ({
|
|
@@ -3890,8 +3954,8 @@ const vi = /* @__PURE__ */ Ce(hi, [["render", bi]]), xi = /* @__PURE__ */ A({
|
|
|
3890
3954
|
},
|
|
3891
3955
|
emits: ["smartFiltersSent", "smartFiltersCleared", "smartFilterDeleted"],
|
|
3892
3956
|
setup(e, { emit: g }) {
|
|
3893
|
-
const i = e, o = g, n = V({ id: "1", name: i.literals.and }), r = ke([]), a = V(i.availableCategories[0] || {}), d = (
|
|
3894
|
-
r.splice(0, r.length),
|
|
3957
|
+
const i = e, o = g, n = V({ id: "1", name: i.literals.and }), r = ke([]), a = V(i.availableCategories[0] || {}), d = (j) => j ? j === "uiInput" ? i.literals.contains : i.literals.is : "", c = (j) => {
|
|
3958
|
+
r.splice(0, r.length), j.logicOperator === "and" || j.logicOperator === i.literals.and ? n.value = { id: "1", name: i.literals.and } : (j.logicOperator === "or" || j.logicOperator === i.literals.or) && (n.value = { id: "2", name: i.literals.or }), j.filters.forEach((q) => {
|
|
3895
3959
|
const H = i.availableCategories.find(($) => $.name === q.name);
|
|
3896
3960
|
if (H) {
|
|
3897
3961
|
const $ = {
|
|
@@ -3910,60 +3974,60 @@ const vi = /* @__PURE__ */ Ce(hi, [["render", bi]]), xi = /* @__PURE__ */ A({
|
|
|
3910
3974
|
}
|
|
3911
3975
|
});
|
|
3912
3976
|
};
|
|
3913
|
-
Z(() => i.literals, (
|
|
3914
|
-
n.value.id === "1" ? n.value.name =
|
|
3915
|
-
}, { deep: !0 }), Z(() => i.availableCategories, (
|
|
3916
|
-
|
|
3917
|
-
}, { deep: !0, immediate: !0 }), Z(() => i.filters, (
|
|
3918
|
-
|
|
3977
|
+
Z(() => i.literals, (j) => {
|
|
3978
|
+
n.value.id === "1" ? n.value.name = j.and : n.value.id === "2" && (n.value.name = j.or);
|
|
3979
|
+
}, { deep: !0 }), Z(() => i.availableCategories, (j) => {
|
|
3980
|
+
j.length > 0 && (!a.value.name || !j.some((q) => q.name === a.value.name)) && (a.value = j[0]);
|
|
3981
|
+
}, { deep: !0, immediate: !0 }), Z(() => i.filters, (j) => {
|
|
3982
|
+
j && c(j);
|
|
3919
3983
|
}, { deep: !0, immediate: !0 });
|
|
3920
|
-
const v =
|
|
3984
|
+
const v = A(() => [
|
|
3921
3985
|
{ id: "1", name: i.literals.and },
|
|
3922
3986
|
{ id: "2", name: i.literals.or }
|
|
3923
|
-
]), p =
|
|
3924
|
-
id:
|
|
3925
|
-
name:
|
|
3926
|
-
label:
|
|
3927
|
-
}))), C =
|
|
3987
|
+
]), p = A(() => i.availableCategories.map((j) => ({
|
|
3988
|
+
id: j.name,
|
|
3989
|
+
name: j.name,
|
|
3990
|
+
label: j.label
|
|
3991
|
+
}))), C = A(() => ({
|
|
3928
3992
|
id: a.value.name,
|
|
3929
3993
|
label: a.value.label,
|
|
3930
3994
|
name: a.value.name
|
|
3931
|
-
})), N =
|
|
3932
|
-
name:
|
|
3995
|
+
})), N = A(() => r.map((j) => j.type === "uiInput" ? {
|
|
3996
|
+
name: j.label,
|
|
3933
3997
|
operator: i.literals.contains,
|
|
3934
|
-
value:
|
|
3935
|
-
} :
|
|
3936
|
-
name:
|
|
3998
|
+
value: j.props.value || ""
|
|
3999
|
+
} : j.type === "uiSelect" ? {
|
|
4000
|
+
name: j.label,
|
|
3937
4001
|
operator: i.literals.is,
|
|
3938
|
-
value:
|
|
4002
|
+
value: j.props.select?.name || ""
|
|
3939
4003
|
} : {
|
|
3940
|
-
name:
|
|
4004
|
+
name: j.label,
|
|
3941
4005
|
operator: i.literals.contains,
|
|
3942
4006
|
value: ""
|
|
3943
|
-
})), E = (
|
|
3944
|
-
n.value = Array.isArray(
|
|
3945
|
-
},
|
|
3946
|
-
const q = Array.isArray(
|
|
4007
|
+
})), E = (j) => {
|
|
4008
|
+
n.value = Array.isArray(j) ? j[0] || { id: "1", name: i.literals.and } : j;
|
|
4009
|
+
}, M = (j) => {
|
|
4010
|
+
const q = Array.isArray(j) ? j[0] : j, H = i.availableCategories.find(($) => $.name === q.id);
|
|
3947
4011
|
H && (a.value = H);
|
|
3948
4012
|
}, R = () => {
|
|
3949
4013
|
if (!a.value || !a.value.name)
|
|
3950
4014
|
return;
|
|
3951
|
-
const
|
|
4015
|
+
const j = {
|
|
3952
4016
|
label: a.value.label,
|
|
3953
4017
|
name: a.value.name,
|
|
3954
4018
|
type: a.value.componentType,
|
|
3955
4019
|
props: { ...a.value.defaultProps }
|
|
3956
4020
|
};
|
|
3957
|
-
r.push(
|
|
3958
|
-
}, K = (
|
|
3959
|
-
if (
|
|
3960
|
-
const H = r[
|
|
4021
|
+
r.push(j);
|
|
4022
|
+
}, K = (j, q) => {
|
|
4023
|
+
if (j < 0 || j >= r.length) return;
|
|
4024
|
+
const H = r[j];
|
|
3961
4025
|
H.type === "uiInput" ? typeof q == "string" && (H.props.value = q) : H.type === "uiSelect" && (Array.isArray(q) ? H.props.select = q[0] : typeof q == "object" && q !== null && (H.props.select = q));
|
|
3962
|
-
}, re = (
|
|
3963
|
-
|
|
4026
|
+
}, re = (j) => {
|
|
4027
|
+
j >= 0 && j < r.length && (r.splice(j, 1), o("smartFilterDeleted", j));
|
|
3964
4028
|
}, me = () => {
|
|
3965
4029
|
r.splice(0, r.length), o("smartFiltersCleared");
|
|
3966
|
-
}, fe = (
|
|
4030
|
+
}, fe = (j) => {
|
|
3967
4031
|
const H = {
|
|
3968
4032
|
logicOperator: n.value.id === "1" ? "and" : "or",
|
|
3969
4033
|
filters: r.map(($) => ({
|
|
@@ -3973,9 +4037,9 @@ const vi = /* @__PURE__ */ Ce(hi, [["render", bi]]), xi = /* @__PURE__ */ A({
|
|
|
3973
4037
|
value: $.type === "uiInput" ? $.props.value : $.props.select?.name
|
|
3974
4038
|
}))
|
|
3975
4039
|
};
|
|
3976
|
-
o("smartFiltersSent", H),
|
|
4040
|
+
o("smartFiltersSent", H), j();
|
|
3977
4041
|
};
|
|
3978
|
-
return (
|
|
4042
|
+
return (j, q) => e.loading ? (l(), s("div", Mr, [...q[1] || (q[1] = [
|
|
3979
4043
|
ee('<div class="inline-flex items-center gap-x-2 text-sm/6 font-semibold text-gray-900 outline-none flex-wrap gap-y-1"><div class="h-4 bg-gray-200 rounded-lg w-32"></div><div class="h-4 bg-gray-200 rounded-lg w-20"></div><div class="h-4 bg-gray-200 rounded-lg w-16"></div><div class="h-5 w-5 bg-gray-200 rounded-lg"></div></div>', 1)
|
|
3980
4044
|
])])) : (l(), w(f(kl), {
|
|
3981
4045
|
key: 0,
|
|
@@ -4015,7 +4079,7 @@ const vi = /* @__PURE__ */ Ce(hi, [["render", bi]]), xi = /* @__PURE__ */ A({
|
|
|
4015
4079
|
class: "w-60",
|
|
4016
4080
|
items: p.value,
|
|
4017
4081
|
select: C.value,
|
|
4018
|
-
onSelectChanged:
|
|
4082
|
+
onSelectChanged: M
|
|
4019
4083
|
}, null, 8, ["loading", "items", "select"]),
|
|
4020
4084
|
m(U, {
|
|
4021
4085
|
loading: i.loading,
|
|
@@ -4087,7 +4151,7 @@ const vi = /* @__PURE__ */ Ce(hi, [["render", bi]]), xi = /* @__PURE__ */ A({
|
|
|
4087
4151
|
]),
|
|
4088
4152
|
_: 1
|
|
4089
4153
|
}, 8, ["loading"])) : b("", !0),
|
|
4090
|
-
m(
|
|
4154
|
+
m(P, {
|
|
4091
4155
|
icon: f(pe),
|
|
4092
4156
|
color: "red",
|
|
4093
4157
|
loading: i.loading,
|
|
@@ -4131,7 +4195,7 @@ const vi = /* @__PURE__ */ Ce(hi, [["render", bi]]), xi = /* @__PURE__ */ A({
|
|
|
4131
4195
|
_: 1
|
|
4132
4196
|
}));
|
|
4133
4197
|
}
|
|
4134
|
-
}), jr = { class: "w-full flex flex-col justify-center p-10 grow" }, Ar = { class: "text-center" }, Tr = { class: "text-2xl mt-4 font-bold" }, Dr = { class: "mt-4" }, Lr = { class: "buttons flex mt-8 gap-x-1 justify-center flex-col gap-y-2 md:flex-row md:gap-y-0" }, lt = /* @__PURE__ */
|
|
4198
|
+
}), jr = { class: "w-full flex flex-col justify-center p-10 grow" }, Ar = { class: "text-center" }, Tr = { class: "text-2xl mt-4 font-bold" }, Dr = { class: "mt-4" }, Lr = { class: "buttons flex mt-8 gap-x-1 justify-center flex-col gap-y-2 md:flex-row md:gap-y-0" }, lt = /* @__PURE__ */ T({
|
|
4135
4199
|
__name: "uiNoResults",
|
|
4136
4200
|
props: {
|
|
4137
4201
|
title: {},
|
|
@@ -4143,7 +4207,7 @@ const vi = /* @__PURE__ */ Ce(hi, [["render", bi]]), xi = /* @__PURE__ */ A({
|
|
|
4143
4207
|
emits: ["action", "noResultsOptionSelected"],
|
|
4144
4208
|
setup(e) {
|
|
4145
4209
|
return (g, i) => (l(), s("div", jr, [
|
|
4146
|
-
m(
|
|
4210
|
+
m(P, {
|
|
4147
4211
|
class: "mx-auto",
|
|
4148
4212
|
loading: !1,
|
|
4149
4213
|
icon: f(te),
|
|
@@ -4210,7 +4274,7 @@ const vi = /* @__PURE__ */ Ce(hi, [["render", bi]]), xi = /* @__PURE__ */ A({
|
|
|
4210
4274
|
}, rd = ["onClick"], dd = { key: 0 }, cd = {
|
|
4211
4275
|
key: 2,
|
|
4212
4276
|
class: "devicesFooter px-1 flex flex-row justify-between items-center"
|
|
4213
|
-
}, ud = { key: 0 }, gd = /* @__PURE__ */
|
|
4277
|
+
}, ud = { key: 0 }, gd = /* @__PURE__ */ T({
|
|
4214
4278
|
__name: "uiTable",
|
|
4215
4279
|
props: {
|
|
4216
4280
|
selectAllItemsModal: {},
|
|
@@ -4239,33 +4303,33 @@ const vi = /* @__PURE__ */ Ce(hi, [["render", bi]]), xi = /* @__PURE__ */ A({
|
|
|
4239
4303
|
setup(e, { emit: g }) {
|
|
4240
4304
|
const i = {
|
|
4241
4305
|
uiTag: J
|
|
4242
|
-
}, o = g, n = e, r = V([]), a = V(""), d = V(!1), c = V(null), v = V(null), p = V(!1), C = V(null), N = V(null), E =
|
|
4306
|
+
}, o = g, n = e, r = V([]), a = V(""), d = V(!1), c = V(null), v = V(null), p = V(!1), C = V(null), N = V(null), E = A(() => n.items && n.items.length > 0), M = A(() => r.value.length > 0), R = A(() => n.actions && n.actions.length > 0 || !1), K = A(
|
|
4243
4307
|
() => r.value.length === n.items.length && n.items.length > 0
|
|
4244
|
-
), re =
|
|
4308
|
+
), re = A(
|
|
4245
4309
|
() => r.value.length > 0 && r.value.length < n.items.length
|
|
4246
|
-
), me =
|
|
4247
|
-
() => n.header.filter((h,
|
|
4248
|
-
), fe =
|
|
4310
|
+
), me = A(
|
|
4311
|
+
() => n.header.filter((h, D) => nt(D))
|
|
4312
|
+
), fe = A(() => [
|
|
4249
4313
|
n.actions ? "px-6 sm:px-8" : "px-3",
|
|
4250
4314
|
"relative"
|
|
4251
|
-
]),
|
|
4315
|
+
]), j = A(() => [
|
|
4252
4316
|
n.actions && n.actions.length > 0 ? "w-2" : "w-0",
|
|
4253
4317
|
"relative"
|
|
4254
|
-
]), q =
|
|
4318
|
+
]), q = A(
|
|
4255
4319
|
() => n.smartFilterCategories && n.smartFilterCategories.length > 0
|
|
4256
|
-
), H =
|
|
4320
|
+
), H = A(
|
|
4257
4321
|
() => n.tableActionsDropdown && n.tableActionsDropdown.items && n.tableActionsDropdown.items.length > 0
|
|
4258
|
-
), $ =
|
|
4322
|
+
), $ = A(
|
|
4259
4323
|
() => n.tableActionButtons && n.tableActionButtons.length > 0
|
|
4260
|
-
), F =
|
|
4324
|
+
), F = A(
|
|
4261
4325
|
() => q.value || H.value || $.value
|
|
4262
|
-
), I =
|
|
4326
|
+
), I = A(
|
|
4263
4327
|
() => n.paginationCurrent !== void 0 || n.paginationTotal !== void 0
|
|
4264
|
-
), W =
|
|
4328
|
+
), W = A(
|
|
4265
4329
|
() => n.paginationCurrent !== void 0 && n.paginationTotal !== void 0 && n.paginationTotalItems !== void 0
|
|
4266
|
-
), le =
|
|
4330
|
+
), le = A(
|
|
4267
4331
|
() => n.pageSizeOptions && n.pageSizeOptions.length > 0
|
|
4268
|
-
), st =
|
|
4332
|
+
), st = A(() => n.pageSizeOptions ? n.pageSizeOptions.map((h) => ({
|
|
4269
4333
|
name: h.name,
|
|
4270
4334
|
value: String(h.value),
|
|
4271
4335
|
active: !!(h.active || n.currentPageSize && h.value === n.currentPageSize)
|
|
@@ -4279,14 +4343,14 @@ const vi = /* @__PURE__ */ Ce(hi, [["render", bi]]), xi = /* @__PURE__ */ A({
|
|
|
4279
4343
|
filter: "Filtrar"
|
|
4280
4344
|
}, _t = (h) => {
|
|
4281
4345
|
h.action === "close" ? Se.value = !1 : (Se.value = !1, n.selectAllItemsModal && o("modalAction", { modal: n.selectAllItemsModal.modalName, action: h.action }));
|
|
4282
|
-
}, nt = (h) => n.hiddenColumns && n.hiddenColumns.length > 0 ? !n.hiddenColumns.includes(h) : !0, Ne = (h) => r.value.includes(h), It = (h) => a.value === h, Vt = (h) => h.filter((
|
|
4283
|
-
const
|
|
4284
|
-
return Ne(h.id) &&
|
|
4346
|
+
}, nt = (h) => n.hiddenColumns && n.hiddenColumns.length > 0 ? !n.hiddenColumns.includes(h) : !0, Ne = (h) => r.value.includes(h), It = (h) => a.value === h, Vt = (h) => h.filter((D, z) => nt(z)), Nt = (h, D) => {
|
|
4347
|
+
const z = [];
|
|
4348
|
+
return Ne(h.id) && z.push("bg-gray-50"), D % 2 !== 0 && z.push("bg-gray-50"), z;
|
|
4285
4349
|
}, Rt = (h) => {
|
|
4286
|
-
const
|
|
4287
|
-
return Ne(h) &&
|
|
4350
|
+
const D = ["whitespace-nowrap", "py-4", "pr-3", "text-sm"];
|
|
4351
|
+
return Ne(h) && D.push("text-black", "font-bold"), D;
|
|
4288
4352
|
}, qt = (h) => {
|
|
4289
|
-
const
|
|
4353
|
+
const D = [
|
|
4290
4354
|
"absolute",
|
|
4291
4355
|
"left-4",
|
|
4292
4356
|
"top-1/2",
|
|
@@ -4299,10 +4363,10 @@ const vi = /* @__PURE__ */ Ce(hi, [["render", bi]]), xi = /* @__PURE__ */ A({
|
|
|
4299
4363
|
"focus:ring-lime-400",
|
|
4300
4364
|
"flex-wrap"
|
|
4301
4365
|
];
|
|
4302
|
-
return h &&
|
|
4366
|
+
return h && D.push("bg-gray-100"), D;
|
|
4303
4367
|
}, Ht = (h) => {
|
|
4304
|
-
const
|
|
4305
|
-
return h === n.orderedBy ?
|
|
4368
|
+
const D = [];
|
|
4369
|
+
return h === n.orderedBy ? D.push("bg-black", "text-white", "group-hover:bg-lime-400", "group-hover:text-black") : D.push("group-hover:visible", "group-focus:visible"), D;
|
|
4306
4370
|
}, Yt = (h) => typeof h == "object" && h.type === "tag" ? i.uiTag : typeof h == "object" && h.type === "link" ? "span" : typeof h == "object" && h.type === "href" ? "a" : typeof h == "object" && h.type === "guest" ? "div" : typeof h == "object" && h.type === "action" ? "button" : "span", at = (h) => typeof h == "object" && h.type === "tag" ? {
|
|
4307
4371
|
loading: n.loading,
|
|
4308
4372
|
color: h.color || "primary",
|
|
@@ -4321,13 +4385,13 @@ const vi = /* @__PURE__ */ Ce(hi, [["render", bi]]), xi = /* @__PURE__ */ A({
|
|
|
4321
4385
|
} : {}, ot = (h) => typeof h == "object" ? h.content || "" : h || "", Et = (h) => h === n.orderedBy ? n.orderDirection === "asc" ? oe : jt : oe, Ut = (h) => h === n.orderedBy ? "white" : "primary", Zt = (h) => {
|
|
4322
4386
|
o("tableAction", { action: h.id, items: r.value });
|
|
4323
4387
|
}, Wt = (h) => {
|
|
4324
|
-
const
|
|
4325
|
-
|
|
4388
|
+
const D = h.target;
|
|
4389
|
+
D.checked ? Se.value = !0 : o("deselectAllItems"), r.value = D.checked ? n.items.map((z) => z.disabled ? null : z.id) : [];
|
|
4326
4390
|
}, Gt = (h) => {
|
|
4327
|
-
const
|
|
4328
|
-
o("orderBy", { value: h, orderDirection:
|
|
4329
|
-
}, de = (h,
|
|
4330
|
-
typeof h == "object" && (h.type === "link" || h.type === "action") && o("customEmit", { data: h, rowId:
|
|
4391
|
+
const D = n.orderDirection === "asc" ? "desc" : "asc";
|
|
4392
|
+
o("orderBy", { value: h, orderDirection: D });
|
|
4393
|
+
}, de = (h, D) => {
|
|
4394
|
+
typeof h == "object" && (h.type === "link" || h.type === "action") && o("customEmit", { data: h, rowId: D });
|
|
4331
4395
|
}, Jt = (h) => {
|
|
4332
4396
|
typeof h == "object" && h.type === "tag" && o("customEmit", { data: h });
|
|
4333
4397
|
}, Kt = (h) => {
|
|
@@ -4349,13 +4413,13 @@ const vi = /* @__PURE__ */ Ce(hi, [["render", bi]]), xi = /* @__PURE__ */ A({
|
|
|
4349
4413
|
}, al = (h) => {
|
|
4350
4414
|
o("changePageSize", h.value);
|
|
4351
4415
|
}, ol = (h) => {
|
|
4352
|
-
const
|
|
4353
|
-
h.checked ? o("columnsVisibilityChanged", { index:
|
|
4416
|
+
const D = Number(h.value);
|
|
4417
|
+
h.checked ? o("columnsVisibilityChanged", { index: D, hidden: !0 }) : o("columnsVisibilityChanged", { index: D, hidden: !1 });
|
|
4354
4418
|
}, il = (h) => {
|
|
4355
4419
|
o("noResultsAction", h);
|
|
4356
4420
|
}, rl = (h) => {
|
|
4357
4421
|
o("noResultsOptionSelected", h);
|
|
4358
|
-
}, dl = (h) => !!(n.hiddenColumns && n.hiddenColumns.includes(h)), cl =
|
|
4422
|
+
}, dl = (h) => !!(n.hiddenColumns && n.hiddenColumns.includes(h)), cl = A(() => n.smartFilterCategories ? n.smartFilterCategories.map((h) => ({
|
|
4359
4423
|
id: h.id,
|
|
4360
4424
|
label: h.name,
|
|
4361
4425
|
// uiSmartFilterMultipleV2 usa 'label' en lugar de 'name'
|
|
@@ -4363,10 +4427,10 @@ const vi = /* @__PURE__ */ Ce(hi, [["render", bi]]), xi = /* @__PURE__ */ A({
|
|
|
4363
4427
|
// Mantenemos name para compatibilidad
|
|
4364
4428
|
componentType: h.componentType,
|
|
4365
4429
|
defaultProps: h.defaultProps
|
|
4366
|
-
})) : []), ul =
|
|
4430
|
+
})) : []), ul = A(() => p.value && n.items.length > 25 ? "overflow-y-auto" : ""), gl = A(() => {
|
|
4367
4431
|
const h = "bg-lime-50 z-10";
|
|
4368
4432
|
return p.value && n.items.length > 25 ? `${h} sticky top-0` : h;
|
|
4369
|
-
}), ml =
|
|
4433
|
+
}), ml = A(() => ({})), fl = A(() => p.value && C.value !== null && n.items.length > 25 ? { maxHeight: `${C.value}px` } : {}), he = () => {
|
|
4370
4434
|
if (!v.value || !c.value) return;
|
|
4371
4435
|
if (n.items.length <= 25) {
|
|
4372
4436
|
C.value = null, p.value = !1;
|
|
@@ -4375,9 +4439,9 @@ const vi = /* @__PURE__ */ Ce(hi, [["render", bi]]), xi = /* @__PURE__ */ A({
|
|
|
4375
4439
|
const h = c.value.querySelector("table");
|
|
4376
4440
|
h && be(() => {
|
|
4377
4441
|
if (!c.value || !h) return;
|
|
4378
|
-
const
|
|
4379
|
-
if (!
|
|
4380
|
-
const Q =
|
|
4442
|
+
const D = h.querySelector("thead"), z = h.querySelector("tbody");
|
|
4443
|
+
if (!D || !z) return;
|
|
4444
|
+
const Q = D.offsetHeight, _ = z.querySelector("tr");
|
|
4381
4445
|
if (!_) return;
|
|
4382
4446
|
const Re = _.offsetHeight, X = Q + Re * 25;
|
|
4383
4447
|
C.value = X, p.value = !0;
|
|
@@ -4413,14 +4477,14 @@ const vi = /* @__PURE__ */ Ce(hi, [["render", bi]]), xi = /* @__PURE__ */ A({
|
|
|
4413
4477
|
});
|
|
4414
4478
|
}), bl(() => {
|
|
4415
4479
|
N.value && (window.removeEventListener("resize", N.value), N.value = null);
|
|
4416
|
-
}), (h,
|
|
4480
|
+
}), (h, D) => !e.loading && E.value ? (l(), s("div", Pr, [
|
|
4417
4481
|
e.selectAllItemsModal ? (l(), w(Pe, {
|
|
4418
4482
|
key: 0,
|
|
4419
4483
|
title: e.selectAllItemsModal.title,
|
|
4420
4484
|
modalName: e.selectAllItemsModal.modalName,
|
|
4421
4485
|
open: Se.value,
|
|
4422
4486
|
actions: e.selectAllItemsModal.actions,
|
|
4423
|
-
onModalAction:
|
|
4487
|
+
onModalAction: D[0] || (D[0] = (z) => _t(z))
|
|
4424
4488
|
}, {
|
|
4425
4489
|
default: y(() => [
|
|
4426
4490
|
B(u(e.selectAllItemsModal.content), 1)
|
|
@@ -4431,11 +4495,11 @@ const vi = /* @__PURE__ */ Ce(hi, [["render", bi]]), xi = /* @__PURE__ */ A({
|
|
|
4431
4495
|
title: "Seleccione las columnas que desea ocultar",
|
|
4432
4496
|
modalName: "columnsModal",
|
|
4433
4497
|
open: Be.value,
|
|
4434
|
-
onClose:
|
|
4435
|
-
onModalAction:
|
|
4498
|
+
onClose: D[1] || (D[1] = (z) => Be.value = !1),
|
|
4499
|
+
onModalAction: D[2] || (D[2] = (z) => z.action === "close" ? Be.value = !1 : null)
|
|
4436
4500
|
}, {
|
|
4437
4501
|
default: y(() => [
|
|
4438
|
-
(l(!0), s(k, null, S(n.header, (
|
|
4502
|
+
(l(!0), s(k, null, S(n.header, (z, Q) => (l(), w(ue, {
|
|
4439
4503
|
onCheckboxChanged: ol,
|
|
4440
4504
|
check: dl(Q),
|
|
4441
4505
|
class: "mb-2",
|
|
@@ -4444,7 +4508,7 @@ const vi = /* @__PURE__ */ Ce(hi, [["render", bi]]), xi = /* @__PURE__ */ A({
|
|
|
4444
4508
|
value: String(Q)
|
|
4445
4509
|
}, {
|
|
4446
4510
|
default: y(() => [
|
|
4447
|
-
B(u(
|
|
4511
|
+
B(u(z.name), 1)
|
|
4448
4512
|
]),
|
|
4449
4513
|
_: 2
|
|
4450
4514
|
}, 1032, ["check", "value"]))), 128))
|
|
@@ -4465,18 +4529,18 @@ const vi = /* @__PURE__ */ Ce(hi, [["render", bi]]), xi = /* @__PURE__ */ A({
|
|
|
4465
4529
|
])) : b("", !0),
|
|
4466
4530
|
H.value || $.value ? (l(), s("div", _r, [
|
|
4467
4531
|
$.value ? (l(), s("div", Ir, [
|
|
4468
|
-
(l(!0), s(k, null, S(n.tableActionButtons, (
|
|
4469
|
-
key:
|
|
4470
|
-
loading:
|
|
4471
|
-
disabled:
|
|
4472
|
-
color:
|
|
4473
|
-
size:
|
|
4474
|
-
icon:
|
|
4532
|
+
(l(!0), s(k, null, S(n.tableActionButtons, (z) => (l(), w(U, {
|
|
4533
|
+
key: z.id,
|
|
4534
|
+
loading: z.loading !== void 0 ? z.loading : n.loading,
|
|
4535
|
+
disabled: z.disabled,
|
|
4536
|
+
color: z.color || "primary",
|
|
4537
|
+
size: z.size || "medium",
|
|
4538
|
+
icon: z.icon,
|
|
4475
4539
|
class: "w-auto",
|
|
4476
|
-
onClick: (Q) => sl(
|
|
4540
|
+
onClick: (Q) => sl(z)
|
|
4477
4541
|
}, {
|
|
4478
4542
|
default: y(() => [
|
|
4479
|
-
B(u(
|
|
4543
|
+
B(u(z.text), 1)
|
|
4480
4544
|
]),
|
|
4481
4545
|
_: 2
|
|
4482
4546
|
}, 1032, ["loading", "disabled", "color", "size", "icon", "onClick"]))), 128))
|
|
@@ -4500,13 +4564,13 @@ const vi = /* @__PURE__ */ Ce(hi, [["render", bi]]), xi = /* @__PURE__ */ A({
|
|
|
4500
4564
|
t("div", Nr, [
|
|
4501
4565
|
t("div", Rr, [
|
|
4502
4566
|
t("div", qr, [
|
|
4503
|
-
|
|
4504
|
-
(l(!0), s(k, null, S(e.actions, (
|
|
4567
|
+
M.value && R.value ? (l(), s("div", Hr, [
|
|
4568
|
+
(l(!0), s(k, null, S(e.actions, (z, Q) => (l(), s("button", {
|
|
4505
4569
|
key: Q,
|
|
4506
4570
|
type: "button",
|
|
4507
4571
|
class: "inline-flex items-center rounded bg-lime-400 hover:bg-black px-2.5 py-1.5 text-xs font-medium text-white shadow-sm disabled:cursor-not-allowed disabled:opacity-30",
|
|
4508
|
-
onClick: (_) => Zt(
|
|
4509
|
-
}, u(
|
|
4572
|
+
onClick: (_) => Zt(z)
|
|
4573
|
+
}, u(z.name), 9, Yr))), 128))
|
|
4510
4574
|
])) : b("", !0),
|
|
4511
4575
|
t("div", {
|
|
4512
4576
|
ref_key: "tableScrollContainer",
|
|
@@ -4532,61 +4596,61 @@ const vi = /* @__PURE__ */ Ce(hi, [["render", bi]]), xi = /* @__PURE__ */ A({
|
|
|
4532
4596
|
onChange: Wt
|
|
4533
4597
|
}, null, 40, Ur)) : b("", !0)
|
|
4534
4598
|
], 2),
|
|
4535
|
-
(l(!0), s(k, null, S(me.value, (
|
|
4599
|
+
(l(!0), s(k, null, S(me.value, (z, Q) => (l(), s("th", {
|
|
4536
4600
|
key: Q,
|
|
4537
4601
|
class: "py-3.5 pr-3 text-left font-semibold relative",
|
|
4538
4602
|
scope: "col",
|
|
4539
|
-
onMouseover: (_) => Kt(
|
|
4540
|
-
onMouseleave:
|
|
4603
|
+
onMouseover: (_) => Kt(z.name),
|
|
4604
|
+
onMouseleave: D[3] || (D[3] = (_) => Qt())
|
|
4541
4605
|
}, [
|
|
4542
|
-
|
|
4606
|
+
z.tooltip && It(z.name) ? (l(), w(pr, {
|
|
4543
4607
|
key: 0,
|
|
4544
|
-
tip:
|
|
4608
|
+
tip: z.tooltip
|
|
4545
4609
|
}, null, 8, ["tip"])) : b("", !0),
|
|
4546
|
-
|
|
4610
|
+
z.value ? (l(), s("button", {
|
|
4547
4611
|
key: 1,
|
|
4548
4612
|
class: "group flex items-center uppercase text-xs relative text-nowrap",
|
|
4549
|
-
onClick: (_) => Gt(
|
|
4613
|
+
onClick: (_) => Gt(z.value)
|
|
4550
4614
|
}, [
|
|
4551
|
-
t("span", null, u(
|
|
4615
|
+
t("span", null, u(z.name), 1),
|
|
4552
4616
|
t("span", {
|
|
4553
|
-
class: x([Ht(
|
|
4617
|
+
class: x([Ht(z.value), "ml-2 flex-none rounded group-hover:bg-lime-200 group-hover:text-white"])
|
|
4554
4618
|
}, [
|
|
4555
|
-
m(
|
|
4556
|
-
icon: Et(
|
|
4619
|
+
m(P, {
|
|
4620
|
+
icon: Et(z.value),
|
|
4557
4621
|
loading: e.loading,
|
|
4558
|
-
color: Ut(
|
|
4622
|
+
color: Ut(z.value)
|
|
4559
4623
|
}, null, 8, ["icon", "loading", "color"])
|
|
4560
4624
|
], 2)
|
|
4561
4625
|
], 8, Wr)) : (l(), s("p", Gr, [
|
|
4562
|
-
t("span", null, u(
|
|
4626
|
+
t("span", null, u(z.name), 1)
|
|
4563
4627
|
]))
|
|
4564
4628
|
], 40, Zr))), 128))
|
|
4565
4629
|
])
|
|
4566
4630
|
], 2),
|
|
4567
4631
|
t("tbody", Jr, [
|
|
4568
|
-
(l(!0), s(k, null, S(e.items, (
|
|
4569
|
-
key:
|
|
4570
|
-
class: x(Nt(
|
|
4632
|
+
(l(!0), s(k, null, S(e.items, (z, Q) => (l(), s("tr", {
|
|
4633
|
+
key: z.id,
|
|
4634
|
+
class: x(Nt(z, Q))
|
|
4571
4635
|
}, [
|
|
4572
4636
|
t("td", {
|
|
4573
|
-
class: x(
|
|
4637
|
+
class: x(j.value)
|
|
4574
4638
|
}, [
|
|
4575
|
-
Ne(
|
|
4576
|
-
R.value ?
|
|
4639
|
+
Ne(z.id) ? (l(), s("div", Kr)) : b("", !0),
|
|
4640
|
+
R.value ? L((l(), s("input", {
|
|
4577
4641
|
key: 1,
|
|
4578
|
-
"onUpdate:modelValue":
|
|
4579
|
-
value:
|
|
4580
|
-
class: x(qt(
|
|
4642
|
+
"onUpdate:modelValue": D[4] || (D[4] = (_) => r.value = _),
|
|
4643
|
+
value: z.id,
|
|
4644
|
+
class: x(qt(z.disabled)),
|
|
4581
4645
|
type: "checkbox",
|
|
4582
|
-
disabled:
|
|
4646
|
+
disabled: z.disabled
|
|
4583
4647
|
}, null, 10, Qr)), [
|
|
4584
4648
|
[yt, r.value]
|
|
4585
4649
|
]) : b("", !0)
|
|
4586
4650
|
], 2),
|
|
4587
|
-
(l(!0), s(k, null, S(Vt(
|
|
4651
|
+
(l(!0), s(k, null, S(Vt(z.row), (_, Re) => (l(), s("td", {
|
|
4588
4652
|
key: Re,
|
|
4589
|
-
class: x(Rt(
|
|
4653
|
+
class: x(Rt(z.id))
|
|
4590
4654
|
}, [
|
|
4591
4655
|
typeof _ == "object" && _.type === "guest" ? (l(), s("div", Xr, [
|
|
4592
4656
|
t("span", ed, u(_.content), 1),
|
|
@@ -4595,9 +4659,9 @@ const vi = /* @__PURE__ */ Ce(hi, [["render", bi]]), xi = /* @__PURE__ */ A({
|
|
|
4595
4659
|
key: 1,
|
|
4596
4660
|
type: "button",
|
|
4597
4661
|
class: "inline-flex items-center gap-2 px-3 py-1.5 text-sm font-medium text-gray-700 bg-white border border-gray-300 rounded-md hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-lime-400 focus:ring-offset-2",
|
|
4598
|
-
onClick: (X) => de(_,
|
|
4662
|
+
onClick: (X) => de(_, z.id)
|
|
4599
4663
|
}, [
|
|
4600
|
-
_.icon ? (l(), w(
|
|
4664
|
+
_.icon ? (l(), w(P, {
|
|
4601
4665
|
key: 0,
|
|
4602
4666
|
loading: e.loading,
|
|
4603
4667
|
icon: _.icon,
|
|
@@ -4609,10 +4673,10 @@ const vi = /* @__PURE__ */ Ce(hi, [["render", bi]]), xi = /* @__PURE__ */ A({
|
|
|
4609
4673
|
key: 2,
|
|
4610
4674
|
ref_for: !0
|
|
4611
4675
|
}, at(_), {
|
|
4612
|
-
onClick: (X) => de(_,
|
|
4676
|
+
onClick: (X) => de(_, z.id)
|
|
4613
4677
|
}), [
|
|
4614
4678
|
B(u(ot(_)) + " ", 1),
|
|
4615
|
-
_.icon ? (l(), w(
|
|
4679
|
+
_.icon ? (l(), w(P, {
|
|
4616
4680
|
key: 0,
|
|
4617
4681
|
loading: e.loading,
|
|
4618
4682
|
icon: _.icon,
|
|
@@ -4624,10 +4688,10 @@ const vi = /* @__PURE__ */ Ce(hi, [["render", bi]]), xi = /* @__PURE__ */ A({
|
|
|
4624
4688
|
t("span", null, u(_.content), 1),
|
|
4625
4689
|
t("button", {
|
|
4626
4690
|
type: "button",
|
|
4627
|
-
onClick: (X) => de({ type: "action", action: "reveal", value: _.value },
|
|
4691
|
+
onClick: (X) => de({ type: "action", action: "reveal", value: _.value }, z.id),
|
|
4628
4692
|
class: "inline-flex items-center p-1 text-gray-500 hover:text-gray-700 focus:outline-none"
|
|
4629
4693
|
}, [
|
|
4630
|
-
m(
|
|
4694
|
+
m(P, {
|
|
4631
4695
|
loading: e.loading,
|
|
4632
4696
|
icon: f(Wl),
|
|
4633
4697
|
size: "small",
|
|
@@ -4636,10 +4700,10 @@ const vi = /* @__PURE__ */ Ce(hi, [["render", bi]]), xi = /* @__PURE__ */ A({
|
|
|
4636
4700
|
], 8, ad),
|
|
4637
4701
|
t("button", {
|
|
4638
4702
|
type: "button",
|
|
4639
|
-
onClick: (X) => de({ type: "action", action: "copy", value: _.value },
|
|
4703
|
+
onClick: (X) => de({ type: "action", action: "copy", value: _.value }, z.id),
|
|
4640
4704
|
class: "inline-flex items-center p-1 text-gray-500 hover:text-gray-700 focus:outline-none"
|
|
4641
4705
|
}, [
|
|
4642
|
-
m(
|
|
4706
|
+
m(P, {
|
|
4643
4707
|
loading: e.loading,
|
|
4644
4708
|
icon: f(Ye),
|
|
4645
4709
|
size: "small",
|
|
@@ -4650,10 +4714,10 @@ const vi = /* @__PURE__ */ Ce(hi, [["render", bi]]), xi = /* @__PURE__ */ A({
|
|
|
4650
4714
|
(l(!0), s(k, null, S(_.actions, (X, hl) => (l(), s("button", {
|
|
4651
4715
|
key: hl,
|
|
4652
4716
|
type: "button",
|
|
4653
|
-
onClick: (kg) => de({ type: "action", action: X.action },
|
|
4717
|
+
onClick: (kg) => de({ type: "action", action: X.action }, z.id),
|
|
4654
4718
|
class: x(X.action === "viewCode" ? "inline-flex items-center gap-1 px-3 py-1.5 text-sm font-medium text-gray-700 bg-white border border-gray-300 rounded-md hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-lime-400 focus:ring-offset-2" : "inline-flex items-center p-1 text-gray-500 hover:text-gray-700 focus:outline-none")
|
|
4655
4719
|
}, [
|
|
4656
|
-
m(
|
|
4720
|
+
m(P, {
|
|
4657
4721
|
loading: e.loading,
|
|
4658
4722
|
icon: X.icon,
|
|
4659
4723
|
size: "small",
|
|
@@ -4702,22 +4766,22 @@ const vi = /* @__PURE__ */ Ce(hi, [["render", bi]]), xi = /* @__PURE__ */ A({
|
|
|
4702
4766
|
loading: n.loading,
|
|
4703
4767
|
onChangePage: nl
|
|
4704
4768
|
}, {
|
|
4705
|
-
previous: y(() => [...
|
|
4769
|
+
previous: y(() => [...D[5] || (D[5] = [
|
|
4706
4770
|
B("Anterior", -1)
|
|
4707
4771
|
])]),
|
|
4708
|
-
next: y(() => [...
|
|
4772
|
+
next: y(() => [...D[6] || (D[6] = [
|
|
4709
4773
|
B("Siguiente", -1)
|
|
4710
4774
|
])]),
|
|
4711
|
-
showing: y(() => [...
|
|
4775
|
+
showing: y(() => [...D[7] || (D[7] = [
|
|
4712
4776
|
B("Mostrando", -1)
|
|
4713
4777
|
])]),
|
|
4714
|
-
of: y(() => [...
|
|
4778
|
+
of: y(() => [...D[8] || (D[8] = [
|
|
4715
4779
|
B("de", -1)
|
|
4716
4780
|
])]),
|
|
4717
|
-
pages: y(() => [...
|
|
4781
|
+
pages: y(() => [...D[9] || (D[9] = [
|
|
4718
4782
|
B("páginas", -1)
|
|
4719
4783
|
])]),
|
|
4720
|
-
fromTotal: y(() => [...
|
|
4784
|
+
fromTotal: y(() => [...D[10] || (D[10] = [
|
|
4721
4785
|
B("Elementos totales:", -1)
|
|
4722
4786
|
])]),
|
|
4723
4787
|
_: 1
|
|
@@ -4738,7 +4802,7 @@ const vi = /* @__PURE__ */ Ce(hi, [["render", bi]]), xi = /* @__PURE__ */ A({
|
|
|
4738
4802
|
}), md = { class: "lg:hidden" }, fd = ["value"], hd = { class: "hidden lg:block overflow-x-auto" }, yd = { class: "border-b border-gray-200" }, bd = {
|
|
4739
4803
|
class: "-mb-px flex space-x-8",
|
|
4740
4804
|
"aria-label": "Tabs"
|
|
4741
|
-
}, vd = ["onClick", "aria-current"], xd = /* @__PURE__ */
|
|
4805
|
+
}, vd = ["onClick", "aria-current"], xd = /* @__PURE__ */ T({
|
|
4742
4806
|
__name: "uiTabs",
|
|
4743
4807
|
props: {
|
|
4744
4808
|
tabs: {}
|
|
@@ -4812,7 +4876,7 @@ const vi = /* @__PURE__ */ Ce(hi, [["render", bi]]), xi = /* @__PURE__ */ A({
|
|
|
4812
4876
|
key: 0,
|
|
4813
4877
|
class: "absolute left-4 top-4 -ml-px h-full w-0.5 bg-gray-200",
|
|
4814
4878
|
"aria-hidden": "true"
|
|
4815
|
-
}, Rd = /* @__PURE__ */
|
|
4879
|
+
}, Rd = /* @__PURE__ */ T({
|
|
4816
4880
|
__name: "uiTimeline",
|
|
4817
4881
|
props: {
|
|
4818
4882
|
name: {},
|
|
@@ -4874,7 +4938,7 @@ const vi = /* @__PURE__ */ Ce(hi, [["render", bi]]), xi = /* @__PURE__ */ A({
|
|
|
4874
4938
|
"bg-yellow-400": a?.iconBackground === "warning"
|
|
4875
4939
|
}, "h-8 w-8 rounded-full flex items-center justify-center ring-4 ring-white"])
|
|
4876
4940
|
}, [
|
|
4877
|
-
m(
|
|
4941
|
+
m(P, {
|
|
4878
4942
|
loading: e.loading,
|
|
4879
4943
|
icon: a?.icon,
|
|
4880
4944
|
"aria-hidden": "true",
|
|
@@ -4915,7 +4979,7 @@ const vi = /* @__PURE__ */ Ce(hi, [["render", bi]]), xi = /* @__PURE__ */ A({
|
|
|
4915
4979
|
}, u(e.timeline.footerText), 1)
|
|
4916
4980
|
])
|
|
4917
4981
|
])) : (l(), s("div", Pd, [
|
|
4918
|
-
m(
|
|
4982
|
+
m(P, {
|
|
4919
4983
|
icon: f(te),
|
|
4920
4984
|
color: "gray",
|
|
4921
4985
|
loading: !1,
|
|
@@ -4928,7 +4992,7 @@ const vi = /* @__PURE__ */ Ce(hi, [["render", bi]]), xi = /* @__PURE__ */ A({
|
|
|
4928
4992
|
}), qd = { class: "mx-auto px-6 lg:px-8" }, Hd = { class: "flex justify-between h-20" }, Yd = { class: "flex" }, Ed = { class: "-ml-2 mr-2 flex items-center lg:hidden" }, Ud = ["src"], Zd = { class: "flex items-center" }, Wd = { class: "lg:ml-4 lg:flex-shrink-0 lg:flex lg:items-center hidden" }, Gd = { class: "redCircle flex items-center justify-center h-4 w-4 bg-red-500 rounded-full absolute -top-0 -left-1" }, Jd = ["src"], Kd = ["onClick"], Qd = { class: "pt-2 pb-3 space-y-1" }, Xd = ["onClick"], ec = { class: "pt-4 pb-3 border-t border-gray-200" }, tc = { class: "flex items-center px-4 sm:px-6" }, lc = { class: "flex-shrink-0" }, sc = ["src"], nc = {
|
|
4929
4993
|
key: 0,
|
|
4930
4994
|
class: "ml-3"
|
|
4931
|
-
}, ac = { class: "text-base font-medium text-gray-800" }, oc = { class: "text-sm font-medium text-gray-500" }, ic = { class: "mt-3 space-y-1" }, rc = ["onClick"], dc = /* @__PURE__ */
|
|
4995
|
+
}, ac = { class: "text-base font-medium text-gray-800" }, oc = { class: "text-sm font-medium text-gray-500" }, ic = { class: "mt-3 space-y-1" }, rc = ["onClick"], dc = /* @__PURE__ */ T({
|
|
4932
4996
|
__name: "uiTopbar",
|
|
4933
4997
|
props: {
|
|
4934
4998
|
logo: {},
|
|
@@ -4940,7 +5004,7 @@ const vi = /* @__PURE__ */ Ce(hi, [["render", bi]]), xi = /* @__PURE__ */ A({
|
|
|
4940
5004
|
},
|
|
4941
5005
|
emits: ["topBarClick"],
|
|
4942
5006
|
setup(e, { emit: g }) {
|
|
4943
|
-
const i = e, o =
|
|
5007
|
+
const i = e, o = A(() => i.navigation ? Array.isArray(i.navigation) ? i.navigation : [i.navigation] : []);
|
|
4944
5008
|
return (n, r) => (l(), w(f(_e), {
|
|
4945
5009
|
as: "nav",
|
|
4946
5010
|
class: "bg-white shadow z-10"
|
|
@@ -4985,9 +5049,9 @@ const vi = /* @__PURE__ */ Ce(hi, [["render", bi]]), xi = /* @__PURE__ */ A({
|
|
|
4985
5049
|
}, {
|
|
4986
5050
|
default: y(() => [
|
|
4987
5051
|
t("div", null, [
|
|
4988
|
-
|
|
5052
|
+
L(m(f(We), { class: "bg-white rounded-full flex text-sm focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 relative" }, {
|
|
4989
5053
|
default: y(() => [
|
|
4990
|
-
|
|
5054
|
+
L(t("div", Gd, [...r[2] || (r[2] = [
|
|
4991
5055
|
t("span", { class: "animate-ping absolute inline-flex h-4 w-4 bg-red-500 rounded-full opacity-75" }, null, -1)
|
|
4992
5056
|
])], 512), [
|
|
4993
5057
|
[O, e.alerted]
|
|
@@ -5094,13 +5158,13 @@ const vi = /* @__PURE__ */ Ce(hi, [["render", bi]]), xi = /* @__PURE__ */ A({
|
|
|
5094
5158
|
_: 1
|
|
5095
5159
|
}));
|
|
5096
5160
|
}
|
|
5097
|
-
}), cc = { class: "chart-selector flex flex-row items-center justify-center" }, uc = /* @__PURE__ */
|
|
5161
|
+
}), cc = { class: "chart-selector flex flex-row items-center justify-center" }, uc = /* @__PURE__ */ T({
|
|
5098
5162
|
__name: "RangeSelector",
|
|
5099
5163
|
props: { range: { type: String } },
|
|
5100
5164
|
emits: ["rangeSelected"],
|
|
5101
5165
|
setup(e, { emit: g }) {
|
|
5102
5166
|
const i = g, o = e;
|
|
5103
|
-
let n =
|
|
5167
|
+
let n = A(() => o.range);
|
|
5104
5168
|
const r = (a) => {
|
|
5105
5169
|
n = a, i("rangeSelected", a);
|
|
5106
5170
|
};
|
|
@@ -5123,7 +5187,7 @@ const vi = /* @__PURE__ */ Ce(hi, [["render", bi]]), xi = /* @__PURE__ */ A({
|
|
|
5123
5187
|
}, "3M", 2)
|
|
5124
5188
|
]));
|
|
5125
5189
|
}
|
|
5126
|
-
}), gc = { class: "chart-header flex flex-row justify-between" }, mc = { class: "text-sm font-medium text-gray-500 truncate" }, fc = { class: "chart-content" }, hc = { class: "h-full w-full flex items-center justify-center flex-col" }, yc = { class: "card chart apex-chart px-4 py-5 bg-white shadow rounded-lg overflow-hidden sm:p-6 flex grow h-80" }, bc = /* @__PURE__ */
|
|
5190
|
+
}), gc = { class: "chart-header flex flex-row justify-between" }, mc = { class: "text-sm font-medium text-gray-500 truncate" }, fc = { class: "chart-content" }, hc = { class: "h-full w-full flex items-center justify-center flex-col" }, yc = { class: "card chart apex-chart px-4 py-5 bg-white shadow rounded-lg overflow-hidden sm:p-6 flex grow h-80" }, bc = /* @__PURE__ */ T({
|
|
5127
5191
|
__name: "uiFunnelChartV2",
|
|
5128
5192
|
props: {
|
|
5129
5193
|
labels: {},
|
|
@@ -5181,11 +5245,11 @@ const vi = /* @__PURE__ */ Ce(hi, [["render", bi]]), xi = /* @__PURE__ */ A({
|
|
|
5181
5245
|
}
|
|
5182
5246
|
}
|
|
5183
5247
|
};
|
|
5184
|
-
const r =
|
|
5248
|
+
const r = A(() => ({ ...o.options, ...n })), a = A(() => o.series), d = () => i("chartUpdated"), c = (v, p, C) => {
|
|
5185
5249
|
i("dataPointSelection", { id: o.id, chartContext: p, config: C, event: v });
|
|
5186
5250
|
};
|
|
5187
5251
|
return (v, p) => (l(), s(k, null, [
|
|
5188
|
-
|
|
5252
|
+
L(t("div", {
|
|
5189
5253
|
class: x(["h-[" + e.height + "px]", "card chart apex-chart px-4 py-5 bg-white shadow rounded-lg overflow-hidden sm:p-6 flex grow"])
|
|
5190
5254
|
}, [
|
|
5191
5255
|
t("div", gc, [
|
|
@@ -5195,7 +5259,7 @@ const vi = /* @__PURE__ */ Ce(hi, [["render", bi]]), xi = /* @__PURE__ */ A({
|
|
|
5195
5259
|
onRangeSelected: p[0] || (p[0] = (C) => v.$emit("selectedRange", { range: C, chartId: e.id }))
|
|
5196
5260
|
}, null, 8, ["range"])
|
|
5197
5261
|
]),
|
|
5198
|
-
|
|
5262
|
+
L(t("div", fc, [
|
|
5199
5263
|
m(tt, {
|
|
5200
5264
|
type: e.type,
|
|
5201
5265
|
series: a.value,
|
|
@@ -5209,8 +5273,8 @@ const vi = /* @__PURE__ */ Ce(hi, [["render", bi]]), xi = /* @__PURE__ */ A({
|
|
|
5209
5273
|
], 512), [
|
|
5210
5274
|
[O, !e.empty]
|
|
5211
5275
|
]),
|
|
5212
|
-
|
|
5213
|
-
m(
|
|
5276
|
+
L(t("div", hc, [
|
|
5277
|
+
m(P, {
|
|
5214
5278
|
icon: f(te),
|
|
5215
5279
|
color: "gray",
|
|
5216
5280
|
loading: !1,
|
|
@@ -5223,7 +5287,7 @@ const vi = /* @__PURE__ */ Ce(hi, [["render", bi]]), xi = /* @__PURE__ */ A({
|
|
|
5223
5287
|
], 2), [
|
|
5224
5288
|
[O, !e.loading]
|
|
5225
5289
|
]),
|
|
5226
|
-
|
|
5290
|
+
L(t("div", yc, [...p[2] || (p[2] = [
|
|
5227
5291
|
t("div", {
|
|
5228
5292
|
role: "status",
|
|
5229
5293
|
class: "w-full animate-pulse h-full flex flex-col"
|
|
@@ -5254,7 +5318,7 @@ const vi = /* @__PURE__ */ Ce(hi, [["render", bi]]), xi = /* @__PURE__ */ A({
|
|
|
5254
5318
|
])
|
|
5255
5319
|
], 64));
|
|
5256
5320
|
}
|
|
5257
|
-
}), vc = { class: "fixed inset-0 overflow-hidden" }, xc = { class: "absolute inset-0 overflow-hidden" }, pc = { class: "pointer-events-none fixed inset-y-0 right-0 flex max-w-full pl-10" }, wc = { class: "flex h-full flex-col overflow-y-scroll bg-white shadow-xl" }, kc = { class: "bg-lime-400 px-4 py-6 sm:px-6" }, $c = { class: "flex items-center justify-between" }, Cc = { class: "ml-3 flex h-7 items-center" }, Sc = { class: "mt-1" }, Bc = { class: "text-sm" }, Mc = { class: "relative flex-1 px-4 py-6 sm:px-6" }, zc = /* @__PURE__ */
|
|
5321
|
+
}), vc = { class: "fixed inset-0 overflow-hidden" }, xc = { class: "absolute inset-0 overflow-hidden" }, pc = { class: "pointer-events-none fixed inset-y-0 right-0 flex max-w-full pl-10" }, wc = { class: "flex h-full flex-col overflow-y-scroll bg-white shadow-xl" }, kc = { class: "bg-lime-400 px-4 py-6 sm:px-6" }, $c = { class: "flex items-center justify-between" }, Cc = { class: "ml-3 flex h-7 items-center" }, Sc = { class: "mt-1" }, Bc = { class: "text-sm" }, Mc = { class: "relative flex-1 px-4 py-6 sm:px-6" }, zc = /* @__PURE__ */ T({
|
|
5258
5322
|
__name: "uiRightSidebar",
|
|
5259
5323
|
props: {
|
|
5260
5324
|
title: {},
|
|
@@ -5346,7 +5410,7 @@ const vi = /* @__PURE__ */ Ce(hi, [["render", bi]]), xi = /* @__PURE__ */ A({
|
|
|
5346
5410
|
key: 2,
|
|
5347
5411
|
role: "list",
|
|
5348
5412
|
class: "grid grid-cols-2 gap-x-4 gap-y-8 sm:grid-cols-3 sm:gap-x-4 lg:grid-cols-6"
|
|
5349
|
-
}, Ic = /* @__PURE__ */
|
|
5413
|
+
}, Ic = /* @__PURE__ */ T({
|
|
5350
5414
|
__name: "uiGallery",
|
|
5351
5415
|
props: {
|
|
5352
5416
|
galleryId: {},
|
|
@@ -5400,7 +5464,7 @@ const vi = /* @__PURE__ */ Ce(hi, [["render", bi]]), xi = /* @__PURE__ */ A({
|
|
|
5400
5464
|
t("p", Pc, u(d.title), 1),
|
|
5401
5465
|
t("div", Fc, [
|
|
5402
5466
|
t("p", Oc, u(d.size), 1),
|
|
5403
|
-
m(
|
|
5467
|
+
m(P, {
|
|
5404
5468
|
class: "cursor-pointer",
|
|
5405
5469
|
icon: f(pe),
|
|
5406
5470
|
color: "red",
|
|
@@ -5428,7 +5492,7 @@ const vi = /* @__PURE__ */ Ce(hi, [["render", bi]]), xi = /* @__PURE__ */ A({
|
|
|
5428
5492
|
}), Vc = {
|
|
5429
5493
|
key: 1,
|
|
5430
5494
|
class: "animate-pulse"
|
|
5431
|
-
}, Nc = /* @__PURE__ */
|
|
5495
|
+
}, Nc = /* @__PURE__ */ T({
|
|
5432
5496
|
__name: "DraggableWrapper",
|
|
5433
5497
|
emits: ["update:modelValue"],
|
|
5434
5498
|
setup(e) {
|
|
@@ -5459,7 +5523,7 @@ const vi = /* @__PURE__ */ Ce(hi, [["render", bi]]), xi = /* @__PURE__ */ A({
|
|
|
5459
5523
|
}), Rc = { class: "cursor-move mb-1 relative flex items-center space-x-3 rounded-lg border border-gray-300 bg-white p-4 shadow-sm focus-within:ring-2 focus-within:ring-indigo-500 focus-within:ring-offset-2 hover:border-gray-400" }, qc = { class: "flex flex-row items-center w-full" }, Hc = { class: "content text-sm grow" }, Yc = { class: "font-bold" }, Ec = { key: 0 }, Uc = { class: "font-bold text-gray-400" }, Zc = {
|
|
5460
5524
|
key: 1,
|
|
5461
5525
|
class: "animate-pulse"
|
|
5462
|
-
}, Wc = /* @__PURE__ */
|
|
5526
|
+
}, Wc = /* @__PURE__ */ T({
|
|
5463
5527
|
__name: "uiDragAndDrop",
|
|
5464
5528
|
props: {
|
|
5465
5529
|
elements: {},
|
|
@@ -5488,7 +5552,7 @@ const vi = /* @__PURE__ */ Ce(hi, [["render", bi]]), xi = /* @__PURE__ */ A({
|
|
|
5488
5552
|
item: y(({ item: c }) => [
|
|
5489
5553
|
t("div", Rc, [
|
|
5490
5554
|
t("div", qc, [
|
|
5491
|
-
m(
|
|
5555
|
+
m(P, {
|
|
5492
5556
|
icon: f(Hl),
|
|
5493
5557
|
loading: !1,
|
|
5494
5558
|
color: "gray",
|
|
@@ -5506,7 +5570,7 @@ const vi = /* @__PURE__ */ Ce(hi, [["render", bi]]), xi = /* @__PURE__ */ A({
|
|
|
5506
5570
|
_: 1
|
|
5507
5571
|
}, 8, ["modelValue"]));
|
|
5508
5572
|
}
|
|
5509
|
-
}), Gc = { class: "chart-header flex flex-row justify-between" }, Jc = { class: "text-sm font-medium text-gray-500 truncate" }, Kc = { class: "hidden sm:flex items-center" }, Qc = { class: "w-1/2 min-w-0 flex-1" }, Xc = ["max"], eu = { class: "min-w-0 flex-1" }, tu = ["max"], lu = { class: "chart-content" }, su = { class: "h-full w-full flex items-center justify-center flex-col" }, nu = { class: "card chart apex-chart px-4 py-5 bg-white shadow rounded-lg overflow-hidden sm:p-6 flex grow h-80" }, au = /* @__PURE__ */
|
|
5573
|
+
}), Gc = { class: "chart-header flex flex-row justify-between" }, Jc = { class: "text-sm font-medium text-gray-500 truncate" }, Kc = { class: "hidden sm:flex items-center" }, Qc = { class: "w-1/2 min-w-0 flex-1" }, Xc = ["max"], eu = { class: "min-w-0 flex-1" }, tu = ["max"], lu = { class: "chart-content" }, su = { class: "h-full w-full flex items-center justify-center flex-col" }, nu = { class: "card chart apex-chart px-4 py-5 bg-white shadow rounded-lg overflow-hidden sm:p-6 flex grow h-80" }, au = /* @__PURE__ */ T({
|
|
5510
5574
|
__name: "uiCircleChart",
|
|
5511
5575
|
props: {
|
|
5512
5576
|
labels: {},
|
|
@@ -5565,22 +5629,22 @@ const vi = /* @__PURE__ */ Ce(hi, [["render", bi]]), xi = /* @__PURE__ */ A({
|
|
|
5565
5629
|
}
|
|
5566
5630
|
}
|
|
5567
5631
|
};
|
|
5568
|
-
const d = () => ({ ...a, ...o.options }), c =
|
|
5569
|
-
i("dataPointSelection", { id: o.id, chartContext:
|
|
5632
|
+
const d = () => ({ ...a, ...o.options }), c = A(() => o.series), v = A(() => d()), p = () => i("chartUpdated"), C = (E, M, R) => {
|
|
5633
|
+
i("dataPointSelection", { id: o.id, chartContext: M, config: R, event: E });
|
|
5570
5634
|
}, N = () => {
|
|
5571
5635
|
r.from !== "" && r.to !== "" && Y(r.from).isBefore(Y(r.to)) && i("selectedRange", { range: r, chartId: o.id });
|
|
5572
5636
|
};
|
|
5573
|
-
return (E,
|
|
5574
|
-
|
|
5637
|
+
return (E, M) => (l(), s(k, null, [
|
|
5638
|
+
L(t("div", {
|
|
5575
5639
|
class: x(["h-[" + e.height + "px]", "card chart apex-chart px-4 py-5 bg-white shadow rounded-lg overflow-hidden sm:p-6 flex grow"])
|
|
5576
5640
|
}, [
|
|
5577
5641
|
t("div", Gc, [
|
|
5578
5642
|
t("div", Jc, u(e.title), 1),
|
|
5579
5643
|
t("div", Kc, [
|
|
5580
5644
|
t("div", Qc, [
|
|
5581
|
-
|
|
5645
|
+
L(t("input", {
|
|
5582
5646
|
type: "datetime-local",
|
|
5583
|
-
"onUpdate:modelValue":
|
|
5647
|
+
"onUpdate:modelValue": M[0] || (M[0] = (R) => f(r).from = R),
|
|
5584
5648
|
max: n.value.toString(),
|
|
5585
5649
|
onChange: N,
|
|
5586
5650
|
name: "from",
|
|
@@ -5591,9 +5655,9 @@ const vi = /* @__PURE__ */ Ce(hi, [["render", bi]]), xi = /* @__PURE__ */ A({
|
|
|
5591
5655
|
])
|
|
5592
5656
|
]),
|
|
5593
5657
|
t("div", eu, [
|
|
5594
|
-
|
|
5658
|
+
L(t("input", {
|
|
5595
5659
|
type: "datetime-local",
|
|
5596
|
-
"onUpdate:modelValue":
|
|
5660
|
+
"onUpdate:modelValue": M[1] || (M[1] = (R) => f(r).to = R),
|
|
5597
5661
|
max: n.value.toString(),
|
|
5598
5662
|
onChange: N,
|
|
5599
5663
|
name: "to",
|
|
@@ -5603,16 +5667,16 @@ const vi = /* @__PURE__ */ Ce(hi, [["render", bi]]), xi = /* @__PURE__ */ A({
|
|
|
5603
5667
|
[xe, f(r).to]
|
|
5604
5668
|
])
|
|
5605
5669
|
]),
|
|
5606
|
-
m(
|
|
5670
|
+
m(P, {
|
|
5607
5671
|
class: "ml-4 cursor-pointer",
|
|
5608
5672
|
size: "big",
|
|
5609
5673
|
loading: e.loading,
|
|
5610
5674
|
icon: f(St),
|
|
5611
|
-
onClick:
|
|
5675
|
+
onClick: M[2] || (M[2] = (R) => E.$emit("maximizeChart", e.id))
|
|
5612
5676
|
}, null, 8, ["loading", "icon"])
|
|
5613
5677
|
])
|
|
5614
5678
|
]),
|
|
5615
|
-
|
|
5679
|
+
L(t("div", lu, [
|
|
5616
5680
|
m(tt, {
|
|
5617
5681
|
class: "flex items-center justify-center mt-4",
|
|
5618
5682
|
type: "donut",
|
|
@@ -5626,21 +5690,21 @@ const vi = /* @__PURE__ */ Ce(hi, [["render", bi]]), xi = /* @__PURE__ */ A({
|
|
|
5626
5690
|
], 512), [
|
|
5627
5691
|
[O, !e.empty]
|
|
5628
5692
|
]),
|
|
5629
|
-
|
|
5630
|
-
m(
|
|
5693
|
+
L(t("div", su, [
|
|
5694
|
+
m(P, {
|
|
5631
5695
|
icon: f(te),
|
|
5632
5696
|
color: "gray",
|
|
5633
5697
|
loading: !1,
|
|
5634
5698
|
size: "huge"
|
|
5635
5699
|
}, null, 8, ["icon"]),
|
|
5636
|
-
|
|
5700
|
+
M[3] || (M[3] = t("p", { class: "text-xs uppercase text-gray-300 font-bold" }, "No data", -1))
|
|
5637
5701
|
], 512), [
|
|
5638
5702
|
[O, e.empty]
|
|
5639
5703
|
])
|
|
5640
5704
|
], 2), [
|
|
5641
5705
|
[O, !e.loading]
|
|
5642
5706
|
]),
|
|
5643
|
-
|
|
5707
|
+
L(t("div", nu, [...M[4] || (M[4] = [
|
|
5644
5708
|
t("div", {
|
|
5645
5709
|
role: "status",
|
|
5646
5710
|
class: "w-full animate-pulse h-full flex flex-col"
|
|
@@ -5677,7 +5741,7 @@ const vi = /* @__PURE__ */ Ce(hi, [["render", bi]]), xi = /* @__PURE__ */ A({
|
|
|
5677
5741
|
}, iu = {
|
|
5678
5742
|
key: 1,
|
|
5679
5743
|
class: "flex flex-col lg:flex-row w-full gap-y-4 gap-x-2"
|
|
5680
|
-
}, ru = /* @__PURE__ */
|
|
5744
|
+
}, ru = /* @__PURE__ */ T({
|
|
5681
5745
|
__name: "uiDateRange",
|
|
5682
5746
|
props: {
|
|
5683
5747
|
id: {},
|
|
@@ -5768,7 +5832,7 @@ const vi = /* @__PURE__ */ Ce(hi, [["render", bi]]), xi = /* @__PURE__ */ A({
|
|
|
5768
5832
|
}, gu = {
|
|
5769
5833
|
key: 1,
|
|
5770
5834
|
class: "h-2 animate-pulse bg-gray-200 rounded-full dark:bg-gray-300 w-full"
|
|
5771
|
-
}, mu = /* @__PURE__ */
|
|
5835
|
+
}, mu = /* @__PURE__ */ T({
|
|
5772
5836
|
__name: "uiRangeSlider",
|
|
5773
5837
|
props: {
|
|
5774
5838
|
loading: { type: Boolean, default: !0 },
|
|
@@ -5809,7 +5873,7 @@ const vi = /* @__PURE__ */ Ce(hi, [["render", bi]]), xi = /* @__PURE__ */ A({
|
|
|
5809
5873
|
}), fu = {
|
|
5810
5874
|
key: 0,
|
|
5811
5875
|
class: "mt-1 mb-8 text-sm"
|
|
5812
|
-
}, hu = /* @__PURE__ */
|
|
5876
|
+
}, hu = /* @__PURE__ */ T({
|
|
5813
5877
|
__name: "uiSectionTitle",
|
|
5814
5878
|
props: {
|
|
5815
5879
|
title: {},
|
|
@@ -5850,7 +5914,7 @@ const vi = /* @__PURE__ */ Ce(hi, [["render", bi]]), xi = /* @__PURE__ */ A({
|
|
|
5850
5914
|
}, zu = {
|
|
5851
5915
|
key: 4,
|
|
5852
5916
|
class: "h-3 w-8 bg-gray-200 rounded animate-pulse"
|
|
5853
|
-
}, ju = /* @__PURE__ */
|
|
5917
|
+
}, ju = /* @__PURE__ */ T({
|
|
5854
5918
|
__name: "uiSecondarySidebar",
|
|
5855
5919
|
props: {
|
|
5856
5920
|
title: {},
|
|
@@ -5875,7 +5939,7 @@ const vi = /* @__PURE__ */ Ce(hi, [["render", bi]]), xi = /* @__PURE__ */ A({
|
|
|
5875
5939
|
return (r, a) => (l(), s("aside", yu, [
|
|
5876
5940
|
t("div", bu, [
|
|
5877
5941
|
e.title ? (l(), s("div", vu, [
|
|
5878
|
-
e.titleIcon ? (l(), w(
|
|
5942
|
+
e.titleIcon ? (l(), w(P, {
|
|
5879
5943
|
key: 0,
|
|
5880
5944
|
icon: e.titleIcon,
|
|
5881
5945
|
loading: e.loading,
|
|
@@ -5898,7 +5962,7 @@ const vi = /* @__PURE__ */ Ce(hi, [["render", bi]]), xi = /* @__PURE__ */ A({
|
|
|
5898
5962
|
d.selectedItemId === v.id ? d.selectionStyle === "primary" ? "bg-gray-800 text-white" : "bg-gray-100 text-gray-900" : "text-gray-700 hover:bg-gray-100"
|
|
5899
5963
|
])
|
|
5900
5964
|
}, [
|
|
5901
|
-
v.icon || d.defaultIcon ? (l(), w(
|
|
5965
|
+
v.icon || d.defaultIcon ? (l(), w(P, {
|
|
5902
5966
|
key: 0,
|
|
5903
5967
|
icon: v.icon || d.defaultIcon,
|
|
5904
5968
|
loading: e.loading,
|
|
@@ -5925,7 +5989,7 @@ const vi = /* @__PURE__ */ Ce(hi, [["render", bi]]), xi = /* @__PURE__ */ A({
|
|
|
5925
5989
|
}, Tu = { class: "flex flex-1 flex-col p-8" }, Du = { class: "text-2xl font-bold" }, Lu = { class: "mt-1 flex flex-grow flex-col justify-between" }, Pu = { class: "mt-3 flex flex-wrap gap-x-1 gap-y-1 justify-center" }, Fu = {
|
|
5926
5990
|
key: 1,
|
|
5927
5991
|
class: "col-span-1 flex flex-col divide-y divide-gray-200 rounded-lg bg-white text-center shadow"
|
|
5928
|
-
}, Ou = { class: "flex flex-1 flex-col p-8" }, _u = { class: "rounded-md p-3 flex items-center justify-center mx-auto mb-4 bg-gray-200" }, Iu = { class: "mt-1 flex flex-grow flex-col justify-between" }, Vu = { class: "mt-3 flex flex-wrap gap-x-1 gap-y-1 justify-center" }, Nu = /* @__PURE__ */
|
|
5992
|
+
}, Ou = { class: "flex flex-1 flex-col p-8" }, _u = { class: "rounded-md p-3 flex items-center justify-center mx-auto mb-4 bg-gray-200" }, Iu = { class: "mt-1 flex flex-grow flex-col justify-between" }, Vu = { class: "mt-3 flex flex-wrap gap-x-1 gap-y-1 justify-center" }, Nu = /* @__PURE__ */ T({
|
|
5929
5993
|
__name: "uiDeviceStatus",
|
|
5930
5994
|
props: {
|
|
5931
5995
|
id: {},
|
|
@@ -5941,7 +6005,7 @@ const vi = /* @__PURE__ */ Ce(hi, [["render", bi]]), xi = /* @__PURE__ */ A({
|
|
|
5941
6005
|
return (i, o) => e.loading ? (l(), s("div", Fu, [
|
|
5942
6006
|
t("div", Ou, [
|
|
5943
6007
|
t("div", _u, [
|
|
5944
|
-
m(
|
|
6008
|
+
m(P, {
|
|
5945
6009
|
icon: e.icon,
|
|
5946
6010
|
size: "huge",
|
|
5947
6011
|
class: "text-white",
|
|
@@ -5978,7 +6042,7 @@ const vi = /* @__PURE__ */ Ce(hi, [["render", bi]]), xi = /* @__PURE__ */ A({
|
|
|
5978
6042
|
"bg-gray-100": e.color === "light"
|
|
5979
6043
|
}])
|
|
5980
6044
|
}, [
|
|
5981
|
-
m(
|
|
6045
|
+
m(P, {
|
|
5982
6046
|
icon: e.icon,
|
|
5983
6047
|
size: "huge",
|
|
5984
6048
|
color: "black",
|
|
@@ -5988,7 +6052,7 @@ const vi = /* @__PURE__ */ Ce(hi, [["render", bi]]), xi = /* @__PURE__ */ A({
|
|
|
5988
6052
|
], 2),
|
|
5989
6053
|
t("h3", Du, [
|
|
5990
6054
|
B(u(e.name) + " ", 1),
|
|
5991
|
-
|
|
6055
|
+
L(t("span", {
|
|
5992
6056
|
class: "text-black hover:text-lime-400 underline cursor-pointer",
|
|
5993
6057
|
onClick: o[0] || (o[0] = (n) => i.$emit("deviceStatusQtyClicked", e.id))
|
|
5994
6058
|
}, "(" + u(e.qty) + ")", 513), [
|
|
@@ -6014,7 +6078,7 @@ const vi = /* @__PURE__ */ Ce(hi, [["render", bi]]), xi = /* @__PURE__ */ A({
|
|
|
6014
6078
|
])
|
|
6015
6079
|
]));
|
|
6016
6080
|
}
|
|
6017
|
-
}), Ru = { class: "fixed inset-0 flex" }, qu = { class: "absolute left-full top-0 flex w-16 justify-center pt-5" }, Hu = { class: "hidden lg:fixed lg:inset-y-0 lg:z-50 lg:flex lg:w-[25rem] lg:flex-col" }, Yu = { class: "lg:pl-[25rem] flex flex-col h-screen" }, Eu = { class: "sticky top-0 z-10 flex h-16 shrink-0 items-center gap-x-4 border-b border-gray-200 bg-white px-4 shadow-sm sm:gap-x-6 sm:px-6 lg:px-8" }, Uu = { class: "flex flex-1 gap-x-4 self-stretch lg:gap-x-6" }, Zu = { class: "flex items-center gap-x-4 lg:gap-x-6 ml-auto" }, Wu = { class: "redCircle flex items-center justify-center h-4 w-4 bg-red-500 rounded-full absolute top-1 left-2" }, Gu = ["src"], Ju = { class: "hidden lg:flex lg:items-center" }, Ku = ["onClick"], Qu = { class: "bg-gray-50 flex-1 overflow-auto" }, Xu = { class: "p-7 lg:p-10" }, e0 = /* @__PURE__ */
|
|
6081
|
+
}), Ru = { class: "fixed inset-0 flex" }, qu = { class: "absolute left-full top-0 flex w-16 justify-center pt-5" }, Hu = { class: "hidden lg:fixed lg:inset-y-0 lg:z-50 lg:flex lg:w-[25rem] lg:flex-col" }, Yu = { class: "lg:pl-[25rem] flex flex-col h-screen" }, Eu = { class: "sticky top-0 z-10 flex h-16 shrink-0 items-center gap-x-4 border-b border-gray-200 bg-white px-4 shadow-sm sm:gap-x-6 sm:px-6 lg:px-8" }, Uu = { class: "flex flex-1 gap-x-4 self-stretch lg:gap-x-6" }, Zu = { class: "flex items-center gap-x-4 lg:gap-x-6 ml-auto" }, Wu = { class: "redCircle flex items-center justify-center h-4 w-4 bg-red-500 rounded-full absolute top-1 left-2" }, Gu = ["src"], Ju = { class: "hidden lg:flex lg:items-center" }, Ku = ["onClick"], Qu = { class: "bg-gray-50 flex-1 overflow-auto" }, Xu = { class: "p-7 lg:p-10" }, e0 = /* @__PURE__ */ T({
|
|
6018
6082
|
__name: "uiWrapper",
|
|
6019
6083
|
props: {
|
|
6020
6084
|
topbar: {},
|
|
@@ -6162,7 +6226,7 @@ const vi = /* @__PURE__ */ Ce(hi, [["render", bi]]), xi = /* @__PURE__ */ A({
|
|
|
6162
6226
|
onClick: d[9] || (d[9] = (c) => o("bellClick"))
|
|
6163
6227
|
}, [
|
|
6164
6228
|
d[14] || (d[14] = t("span", { class: "sr-only" }, "View notifications", -1)),
|
|
6165
|
-
|
|
6229
|
+
L(t("div", Wu, [...d[13] || (d[13] = [
|
|
6166
6230
|
t("span", { class: "animate-ping absolute inline-flex h-4 w-4 bg-red-500 rounded-full opacity-75" }, null, -1)
|
|
6167
6231
|
])], 512), [
|
|
6168
6232
|
[O, e.topbar.alerted]
|
|
@@ -6244,7 +6308,7 @@ const vi = /* @__PURE__ */ Ce(hi, [["render", bi]]), xi = /* @__PURE__ */ A({
|
|
|
6244
6308
|
])
|
|
6245
6309
|
]));
|
|
6246
6310
|
}
|
|
6247
|
-
}), t0 = /* @__PURE__ */
|
|
6311
|
+
}), t0 = /* @__PURE__ */ T({
|
|
6248
6312
|
__name: "uiDynamicStats",
|
|
6249
6313
|
props: {
|
|
6250
6314
|
dynamicStats: {},
|
|
@@ -6276,7 +6340,7 @@ const vi = /* @__PURE__ */ Ce(hi, [["render", bi]]), xi = /* @__PURE__ */ A({
|
|
|
6276
6340
|
}, i0 = ["onClick"], r0 = { class: "absolute mt-1 w-full rounded-md bg-white shadow-lg z-50" }, d0 = {
|
|
6277
6341
|
key: 1,
|
|
6278
6342
|
class: "animate-pulse px-4 py-2.5 bg-gray-200 rounded-md flex justify-between items-center w-full"
|
|
6279
|
-
}, c0 = /* @__PURE__ */
|
|
6343
|
+
}, c0 = /* @__PURE__ */ T({
|
|
6280
6344
|
__name: "uiSelectMultiple",
|
|
6281
6345
|
props: {
|
|
6282
6346
|
items: {},
|
|
@@ -6428,7 +6492,7 @@ const vi = /* @__PURE__ */ Ce(hi, [["render", bi]]), xi = /* @__PURE__ */ A({
|
|
|
6428
6492
|
_: 1
|
|
6429
6493
|
})
|
|
6430
6494
|
]),
|
|
6431
|
-
|
|
6495
|
+
L(t("p", {
|
|
6432
6496
|
class: x([{
|
|
6433
6497
|
"text-gray-400": e.color === "gray",
|
|
6434
6498
|
"text-red-600": e.color === "red",
|
|
@@ -6446,7 +6510,7 @@ const vi = /* @__PURE__ */ Ce(hi, [["render", bi]]), xi = /* @__PURE__ */ A({
|
|
|
6446
6510
|
}), u0 = { class: "space-y-6" }, g0 = { class: "mb-6" }, m0 = { class: "grid grid-cols-1 md:grid-cols-2 gap-4" }, f0 = { class: "mt-4 mb-12 space-y-4" }, h0 = { class: "space-y-4" }, y0 = { class: "text-xl font-bold text-gray-800" }, b0 = { class: "grid grid-cols-1 md:grid-cols-2 gap-4 mt-4 transition-all duration-300 ease-in-out" }, v0 = { class: "bg-white border border-gray-300 rounded-lg p-4" }, x0 = { class: "font-bold mb-4 text-sm text-gray-700" }, p0 = { class: "space-y-2" }, w0 = { class: "bg-white border border-gray-300 rounded-lg p-4" }, k0 = { class: "font-bold mb-4 text-sm text-gray-700" }, $0 = { class: "space-y-2" }, C0 = {
|
|
6447
6511
|
key: 0,
|
|
6448
6512
|
class: "mt-6"
|
|
6449
|
-
}, S0 = /* @__PURE__ */
|
|
6513
|
+
}, S0 = /* @__PURE__ */ T({
|
|
6450
6514
|
__name: "Comparator",
|
|
6451
6515
|
props: {
|
|
6452
6516
|
toCompare: {},
|
|
@@ -6455,7 +6519,7 @@ const vi = /* @__PURE__ */ Ce(hi, [["render", bi]]), xi = /* @__PURE__ */ A({
|
|
|
6455
6519
|
},
|
|
6456
6520
|
emits: ["compareButtonClicked", "filesUploaded", "checkboxChanged", "generateNewFile"],
|
|
6457
6521
|
setup(e, { emit: g }) {
|
|
6458
|
-
const i = e, o = g, n =
|
|
6522
|
+
const i = e, o = g, n = A(() => i.toCompare && Object.keys(i.toCompare).length > 0 && i.toCompare.constructor === Object), r = A(() => n.value ? Object.entries(i.toCompare).map(([v, p]) => ({
|
|
6459
6523
|
name: v,
|
|
6460
6524
|
commands: p
|
|
6461
6525
|
})) : []), a = (v, p, C, N) => {
|
|
@@ -6527,7 +6591,7 @@ const vi = /* @__PURE__ */ Ce(hi, [["render", bi]]), xi = /* @__PURE__ */ A({
|
|
|
6527
6591
|
m(f(se), { class: "flex items-center justify-between w-full" }, {
|
|
6528
6592
|
default: y(() => [
|
|
6529
6593
|
t("h2", y0, u(C.name), 1),
|
|
6530
|
-
m(
|
|
6594
|
+
m(P, {
|
|
6531
6595
|
icon: f(oe),
|
|
6532
6596
|
loading: !1,
|
|
6533
6597
|
class: x(["cursor-pointer transition-transform duration-300 ease-in-out", { "rotate-180 transform": N }])
|
|
@@ -6541,13 +6605,13 @@ const vi = /* @__PURE__ */ Ce(hi, [["render", bi]]), xi = /* @__PURE__ */ A({
|
|
|
6541
6605
|
t("div", v0, [
|
|
6542
6606
|
t("p", x0, u(e.literals.file1Content), 1),
|
|
6543
6607
|
t("div", p0, [
|
|
6544
|
-
(l(!0), s(k, null, S(C.commands[0]?.entries || [], (E,
|
|
6545
|
-
key: `file1_${C.name}_${
|
|
6546
|
-
name: `file1_${C.name}_${
|
|
6547
|
-
id: `file1_${C.name}_${
|
|
6608
|
+
(l(!0), s(k, null, S(C.commands[0]?.entries || [], (E, M) => (l(), w(ue, {
|
|
6609
|
+
key: `file1_${C.name}_${M}`,
|
|
6610
|
+
name: `file1_${C.name}_${M}`,
|
|
6611
|
+
id: `file1_${C.name}_${M}`,
|
|
6548
6612
|
loading: !1,
|
|
6549
|
-
value: `file1_${C.name}_${
|
|
6550
|
-
onCheckboxChanged: (R) => a(C.name, "1",
|
|
6613
|
+
value: `file1_${C.name}_${M}`,
|
|
6614
|
+
onCheckboxChanged: (R) => a(C.name, "1", M, R.checked)
|
|
6551
6615
|
}, {
|
|
6552
6616
|
default: y(() => [
|
|
6553
6617
|
B(u(E), 1)
|
|
@@ -6559,13 +6623,13 @@ const vi = /* @__PURE__ */ Ce(hi, [["render", bi]]), xi = /* @__PURE__ */ A({
|
|
|
6559
6623
|
t("div", w0, [
|
|
6560
6624
|
t("p", k0, u(e.literals.file2Content), 1),
|
|
6561
6625
|
t("div", $0, [
|
|
6562
|
-
(l(!0), s(k, null, S(C.commands[1]?.entries || [], (E,
|
|
6563
|
-
key: `file2_${C.name}_${
|
|
6564
|
-
name: `file2_${C.name}_${
|
|
6565
|
-
id: `file2_${C.name}_${
|
|
6626
|
+
(l(!0), s(k, null, S(C.commands[1]?.entries || [], (E, M) => (l(), w(ue, {
|
|
6627
|
+
key: `file2_${C.name}_${M}`,
|
|
6628
|
+
name: `file2_${C.name}_${M}`,
|
|
6629
|
+
id: `file2_${C.name}_${M}`,
|
|
6566
6630
|
loading: !1,
|
|
6567
|
-
value: `file2_${C.name}_${
|
|
6568
|
-
onCheckboxChanged: (R) => a(C.name, "2",
|
|
6631
|
+
value: `file2_${C.name}_${M}`,
|
|
6632
|
+
onCheckboxChanged: (R) => a(C.name, "2", M, R.checked)
|
|
6569
6633
|
}, {
|
|
6570
6634
|
default: y(() => [
|
|
6571
6635
|
B(u(E), 1)
|
|
@@ -6618,14 +6682,14 @@ const vi = /* @__PURE__ */ Ce(hi, [["render", bi]]), xi = /* @__PURE__ */ A({
|
|
|
6618
6682
|
key: 0,
|
|
6619
6683
|
class: "absolute left-4 top-4 -ml-px mt-0.5 h-full w-0.5 bg-gray-300",
|
|
6620
6684
|
"aria-hidden": "true"
|
|
6621
|
-
}, R0 = ["onClick"], q0 = { class: "ml-4 flex min-w-0 flex-col text-left" }, H0 = { class: "text-sm font-medium text-left" }, Y0 = { class: "text-sm text-left" }, E0 = /* @__PURE__ */
|
|
6685
|
+
}, R0 = ["onClick"], q0 = { class: "ml-4 flex min-w-0 flex-col text-left" }, H0 = { class: "text-sm font-medium text-left" }, Y0 = { class: "text-sm text-left" }, E0 = /* @__PURE__ */ T({
|
|
6622
6686
|
__name: "uiSteps",
|
|
6623
6687
|
props: {
|
|
6624
6688
|
steps: {}
|
|
6625
6689
|
},
|
|
6626
6690
|
emits: ["stepCompleted", "stepCurrent", "stepUpcoming", "stepClick"],
|
|
6627
6691
|
setup(e, { emit: g }) {
|
|
6628
|
-
const i = e, o = g, n =
|
|
6692
|
+
const i = e, o = g, n = A(() => i.steps.map((a) => ({
|
|
6629
6693
|
...a,
|
|
6630
6694
|
// Solo mantener el status si es "complete" o "current", de lo contrario usar "upcoming"
|
|
6631
6695
|
status: a.status === "complete" || a.status === "current" ? a.status : "upcoming"
|
|
@@ -6732,14 +6796,14 @@ const Z0 = { "aria-label": "Progress" }, W0 = {
|
|
|
6732
6796
|
key: 3,
|
|
6733
6797
|
class: "absolute right-0 top-0 hidden h-full w-5 lg:block",
|
|
6734
6798
|
"aria-hidden": "true"
|
|
6735
|
-
}, dg = /* @__PURE__ */
|
|
6799
|
+
}, dg = /* @__PURE__ */ T({
|
|
6736
6800
|
__name: "uiStepsV4",
|
|
6737
6801
|
props: {
|
|
6738
6802
|
steps: {}
|
|
6739
6803
|
},
|
|
6740
6804
|
emits: ["stepCompleted", "stepCurrent", "stepUpcoming", "stepClick"],
|
|
6741
6805
|
setup(e, { emit: g }) {
|
|
6742
|
-
const i = e, o = g, n =
|
|
6806
|
+
const i = e, o = g, n = A(() => i.steps.map((a, d) => ({
|
|
6743
6807
|
...a,
|
|
6744
6808
|
// Si no tiene id, usar el índice + 1 formateado
|
|
6745
6809
|
id: a.id || String(d + 1).padStart(2, "0"),
|
|
@@ -6812,7 +6876,7 @@ const Z0 = { "aria-label": "Progress" }, W0 = {
|
|
|
6812
6876
|
])
|
|
6813
6877
|
]));
|
|
6814
6878
|
}
|
|
6815
|
-
}), cg = { class: "grid min-h-full place-items-center bg-white px-6 py-24 sm:py-32 lg:px-8" }, ug = { class: "text-center" }, gg = { class: "mt-4 text-balance text-5xl font-semibold tracking-tight text-gray-900 sm:text-7xl" }, mg = { class: "mt-6 text-pretty text-lg font-medium text-gray-500 sm:text-xl/8" }, fg = { class: "mt-10 flex items-center justify-center gap-x-6" }, hg = ["href"], yg = /* @__PURE__ */
|
|
6879
|
+
}), cg = { class: "grid min-h-full place-items-center bg-white px-6 py-24 sm:py-32 lg:px-8" }, ug = { class: "text-center" }, gg = { class: "mt-4 text-balance text-5xl font-semibold tracking-tight text-gray-900 sm:text-7xl" }, mg = { class: "mt-6 text-pretty text-lg font-medium text-gray-500 sm:text-xl/8" }, fg = { class: "mt-10 flex items-center justify-center gap-x-6" }, hg = ["href"], yg = /* @__PURE__ */ T({
|
|
6816
6880
|
__name: "ui404",
|
|
6817
6881
|
props: {
|
|
6818
6882
|
lang: { default: "es" },
|
|
@@ -6832,7 +6896,7 @@ const Z0 = { "aria-label": "Progress" }, W0 = {
|
|
|
6832
6896
|
goBackHome: "Go back home",
|
|
6833
6897
|
contactSupport: "Contact support"
|
|
6834
6898
|
}
|
|
6835
|
-
}, o =
|
|
6899
|
+
}, o = A(() => i[g.lang]);
|
|
6836
6900
|
return (n, r) => (l(), s("main", cg, [
|
|
6837
6901
|
t("div", ug, [
|
|
6838
6902
|
r[1] || (r[1] = t("p", { class: "text-base font-semibold text-lime-400" }, "404", -1)),
|
|
@@ -6871,7 +6935,7 @@ const Z0 = { "aria-label": "Progress" }, W0 = {
|
|
|
6871
6935
|
uiFooter: vi,
|
|
6872
6936
|
uiFunnelChartV2: bc,
|
|
6873
6937
|
uiGallery: Ic,
|
|
6874
|
-
uiIcon:
|
|
6938
|
+
uiIcon: P,
|
|
6875
6939
|
uiInput: ae,
|
|
6876
6940
|
uiInputFile: Ee,
|
|
6877
6941
|
uiLoadingScreen: xi,
|
|
@@ -6951,7 +7015,7 @@ export {
|
|
|
6951
7015
|
vi as uiFooter,
|
|
6952
7016
|
bc as uiFunnelChartV2,
|
|
6953
7017
|
Ic as uiGallery,
|
|
6954
|
-
|
|
7018
|
+
P as uiIcon,
|
|
6955
7019
|
ae as uiInput,
|
|
6956
7020
|
Ee as uiInputFile,
|
|
6957
7021
|
xi as uiLoadingScreen,
|