@hotelinking/ui 14.47.5 → 14.47.6
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.es.js +240 -240
- package/package.json +1 -1
package/dist/ui.es.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { defineComponent as M, createBlock as k, createElementBlock as n, openBlock as l, resolveDynamicComponent as Re, normalizeClass as y, createCommentVNode as b, renderSlot as E, createElementVNode as e, ref as
|
|
1
|
+
import { defineComponent as M, createBlock as k, createElementBlock as n, openBlock as l, resolveDynamicComponent as Re, normalizeClass as y, createCommentVNode as b, renderSlot as E, createElementVNode as e, ref as I, watch as H, computed as Y, unref as c, withCtx as h, createVNode as m, toDisplayString as g, createTextVNode as L, Transition as re, Fragment as $, renderList as S, withDirectives as B, vModelDynamic as ct, vShow as D, withModifiers as ye, vModelText as se, createStaticVNode as te, resolveComponent as Oe, vModelCheckbox as Ee, reactive as ae, isRef as xe, TransitionGroup as gt, onMounted as mt, shallowRef as pt, mergeProps as ve } from "vue";
|
|
2
2
|
import { Menu as _e, MenuButton as $e, MenuItems as Ce, MenuItem as Se, Combobox as Ue, ComboboxLabel as He, ComboboxInput as Ze, ComboboxButton as Je, ComboboxOptions as We, ComboboxOption as Ge, SwitchGroup as ft, Switch as ht, SwitchLabel as yt, TransitionRoot as Be, Dialog as Me, TransitionChild as X, DialogPanel as je, DialogTitle as Qe, Disclosure as De, DisclosureButton as Q, DisclosurePanel as Te, Listbox as vt, ListboxLabel as bt, ListboxButton as wt, ListboxOptions as kt, ListboxOption as xt, Popover as _t, PopoverButton as $t, PopoverPanel as Ct } from "@headlessui/vue";
|
|
3
3
|
import V from "dayjs";
|
|
4
4
|
import ze from "vue3-apexcharts";
|
|
5
5
|
import St from "vue3-draggable";
|
|
6
6
|
import Bt from "@vueform/slider";
|
|
7
|
-
const
|
|
7
|
+
const A = /* @__PURE__ */ M({
|
|
8
8
|
__name: "uiIcon",
|
|
9
9
|
props: {
|
|
10
10
|
icon: {},
|
|
@@ -55,7 +55,7 @@ const F = /* @__PURE__ */ M({
|
|
|
55
55
|
},
|
|
56
56
|
setup(p) {
|
|
57
57
|
return (u, r) => u.loading ? (l(), n("button", jt, [
|
|
58
|
-
u.icon ? (l(), k(
|
|
58
|
+
u.icon ? (l(), k(A, {
|
|
59
59
|
key: 0,
|
|
60
60
|
icon: u.icon,
|
|
61
61
|
color: "white",
|
|
@@ -79,7 +79,7 @@ const F = /* @__PURE__ */ M({
|
|
|
79
79
|
}, "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"]),
|
|
80
80
|
type: "button"
|
|
81
81
|
}, [
|
|
82
|
-
u.icon ? (l(), k(
|
|
82
|
+
u.icon ? (l(), k(A, {
|
|
83
83
|
key: 0,
|
|
84
84
|
icon: u.icon,
|
|
85
85
|
class: "-ml-0.5 mr-2",
|
|
@@ -92,7 +92,7 @@ const F = /* @__PURE__ */ M({
|
|
|
92
92
|
}), Dt = {
|
|
93
93
|
key: 0,
|
|
94
94
|
class: "relative flex items-start"
|
|
95
|
-
}, Tt = { class: "flex items-center h-5" }, zt = ["checked", "value", "disabled"], Lt = { class: "ml-3 text-sm" },
|
|
95
|
+
}, Tt = { class: "flex items-center h-5" }, zt = ["checked", "value", "disabled"], Lt = { class: "ml-3 text-sm" }, Ot = { class: "text-black" }, At = {
|
|
96
96
|
key: 1,
|
|
97
97
|
class: "flex items-center animate-pulse"
|
|
98
98
|
}, Ke = /* @__PURE__ */ M({
|
|
@@ -106,7 +106,7 @@ const F = /* @__PURE__ */ M({
|
|
|
106
106
|
},
|
|
107
107
|
emits: ["checkboxChanged"],
|
|
108
108
|
setup(p, { emit: u }) {
|
|
109
|
-
const r = u, i = p, s =
|
|
109
|
+
const r = u, i = p, s = I(i.check), o = () => {
|
|
110
110
|
i.disabled || (s.value = !s.value, r("checkboxChanged", { checked: s.value, value: i.value }));
|
|
111
111
|
};
|
|
112
112
|
return H(() => i.check, (t) => {
|
|
@@ -126,14 +126,14 @@ const F = /* @__PURE__ */ M({
|
|
|
126
126
|
}, null, 40, zt)
|
|
127
127
|
]),
|
|
128
128
|
e("div", Lt, [
|
|
129
|
-
e("span",
|
|
129
|
+
e("span", Ot, [
|
|
130
130
|
E(t.$slots, "default")
|
|
131
131
|
])
|
|
132
132
|
])
|
|
133
133
|
]));
|
|
134
134
|
}
|
|
135
135
|
});
|
|
136
|
-
function
|
|
136
|
+
function Ft(p, u) {
|
|
137
137
|
return l(), n("svg", {
|
|
138
138
|
xmlns: "http://www.w3.org/2000/svg",
|
|
139
139
|
fill: "none",
|
|
@@ -642,7 +642,7 @@ const Jt = {
|
|
|
642
642
|
], 2),
|
|
643
643
|
m(c($e), { class: "text-black inline-flex justify-between w-full rounded-md border border-gray-300 shadow-sm px-4 py-2 bg-white text-sm font-medium hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-gray-100 focus:ring-black" }, {
|
|
644
644
|
default: h(() => [
|
|
645
|
-
|
|
645
|
+
L(g(s.value) + " ", 1),
|
|
646
646
|
t.verticalPosition === "bottom" ? (l(), k(c(oe), {
|
|
647
647
|
key: 0,
|
|
648
648
|
"aria-hidden": "true",
|
|
@@ -734,7 +734,7 @@ const Jt = {
|
|
|
734
734
|
},
|
|
735
735
|
emits: ["inputChanged", "rightAddOnClicked", "addOnClicked"],
|
|
736
736
|
setup(p, { emit: u }) {
|
|
737
|
-
const r = u, i = p, s =
|
|
737
|
+
const r = u, i = p, s = I(i.value);
|
|
738
738
|
H(() => i.value, (t) => {
|
|
739
739
|
s.value = t, s.value && r("inputChanged", { name: i.name, value: s.value });
|
|
740
740
|
});
|
|
@@ -792,27 +792,27 @@ const Jt = {
|
|
|
792
792
|
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"
|
|
793
793
|
}, g(t.rightAddOn), 1)) : b("", !0),
|
|
794
794
|
e("div", ol, [
|
|
795
|
-
t.icon ? (l(), k(
|
|
795
|
+
t.icon ? (l(), k(A, {
|
|
796
796
|
key: 0,
|
|
797
797
|
icon: t.icon,
|
|
798
798
|
color: t.color,
|
|
799
799
|
loading: t.loading
|
|
800
800
|
}, null, 8, ["icon", "color", "loading"])) : b("", !0),
|
|
801
|
-
B(m(
|
|
801
|
+
B(m(A, {
|
|
802
802
|
icon: c(Le),
|
|
803
803
|
color: "green",
|
|
804
804
|
loading: t.loading
|
|
805
805
|
}, null, 8, ["icon", "loading"]), [
|
|
806
806
|
[D, t.color === "green"]
|
|
807
807
|
]),
|
|
808
|
-
B(m(
|
|
808
|
+
B(m(A, {
|
|
809
809
|
icon: c(W),
|
|
810
810
|
color: "yellow",
|
|
811
811
|
loading: t.loading
|
|
812
812
|
}, null, 8, ["icon", "loading"]), [
|
|
813
813
|
[D, t.color === "yellow"]
|
|
814
814
|
]),
|
|
815
|
-
B(m(
|
|
815
|
+
B(m(A, {
|
|
816
816
|
icon: c(K),
|
|
817
817
|
color: "red",
|
|
818
818
|
loading: t.loading
|
|
@@ -859,7 +859,7 @@ const Jt = {
|
|
|
859
859
|
},
|
|
860
860
|
emits: ["filesUploaded"],
|
|
861
861
|
setup(p, { emit: u }) {
|
|
862
|
-
let r =
|
|
862
|
+
let r = I("");
|
|
863
863
|
const i = u, s = p, o = (d) => {
|
|
864
864
|
a(d.dataTransfer.files), i("filesUploaded", { id: s.id, files: d.dataTransfer.files });
|
|
865
865
|
}, t = (d) => {
|
|
@@ -896,7 +896,7 @@ const Jt = {
|
|
|
896
896
|
onDrop: ye(o, ["prevent"])
|
|
897
897
|
}, [
|
|
898
898
|
e("div", cl, [
|
|
899
|
-
m(
|
|
899
|
+
m(A, {
|
|
900
900
|
icon: d.icon,
|
|
901
901
|
size: "massive",
|
|
902
902
|
color: "black",
|
|
@@ -929,13 +929,13 @@ const Jt = {
|
|
|
929
929
|
])
|
|
930
930
|
], 34),
|
|
931
931
|
B(e("p", yl, [
|
|
932
|
-
m(
|
|
932
|
+
m(A, {
|
|
933
933
|
icon: c(fe),
|
|
934
934
|
color: "red",
|
|
935
935
|
class: "mr-2",
|
|
936
936
|
loading: d.loading
|
|
937
937
|
}, null, 8, ["icon", "loading"]),
|
|
938
|
-
|
|
938
|
+
L(" " + g(d.error), 1)
|
|
939
939
|
], 512), [
|
|
940
940
|
[D, d.error]
|
|
941
941
|
])
|
|
@@ -963,7 +963,7 @@ const Jt = {
|
|
|
963
963
|
},
|
|
964
964
|
emits: ["selectChanged"],
|
|
965
965
|
setup(p, { expose: u, emit: r }) {
|
|
966
|
-
const i =
|
|
966
|
+
const i = I(""), s = r, o = p, t = Y(() => i.value === "" ? o.items : o.items.filter((v) => v.name.toLowerCase().includes(i.value.toLowerCase()))), a = (v) => v?.name ?? "", d = (v) => {
|
|
967
967
|
s("selectChanged", v);
|
|
968
968
|
}, f = Y({
|
|
969
969
|
get: () => o.select,
|
|
@@ -993,7 +993,7 @@ const Jt = {
|
|
|
993
993
|
e("div", wl, [
|
|
994
994
|
m(c(He), { class: "block text-sm font-medium" }, {
|
|
995
995
|
default: h(() => [
|
|
996
|
-
|
|
996
|
+
L(g(v.label), 1)
|
|
997
997
|
]),
|
|
998
998
|
_: 1
|
|
999
999
|
}),
|
|
@@ -1133,7 +1133,7 @@ const Bl = { class: "flex justify-between" }, Ml = {
|
|
|
1133
1133
|
},
|
|
1134
1134
|
emits: ["selectChanged"],
|
|
1135
1135
|
setup(p, { emit: u }) {
|
|
1136
|
-
const r = p, i = u, s =
|
|
1136
|
+
const r = p, i = u, s = I(""), o = I(r.select), t = Y(
|
|
1137
1137
|
() => s.value === "" ? r.items : r.items.filter((d) => d.name.toLowerCase().includes(s.value.toLowerCase()))
|
|
1138
1138
|
), a = (d) => {
|
|
1139
1139
|
s.value = "", i("selectChanged", d);
|
|
@@ -1150,7 +1150,7 @@ const Bl = { class: "flex justify-between" }, Ml = {
|
|
|
1150
1150
|
e("div", Bl, [
|
|
1151
1151
|
m(c(He), { class: "block text-sm font-medium" }, {
|
|
1152
1152
|
default: h(() => [
|
|
1153
|
-
|
|
1153
|
+
L(g(d.label), 1)
|
|
1154
1154
|
]),
|
|
1155
1155
|
_: 1
|
|
1156
1156
|
}),
|
|
@@ -1287,10 +1287,10 @@ const Bl = { class: "flex justify-between" }, Ml = {
|
|
|
1287
1287
|
key: 1,
|
|
1288
1288
|
"data-test": "required",
|
|
1289
1289
|
class: "text-[10px] uppercase justify-self-end"
|
|
1290
|
-
},
|
|
1290
|
+
}, Ol = ["disabled", "placeholder"], Al = {
|
|
1291
1291
|
key: 1,
|
|
1292
1292
|
class: "animate-pulse"
|
|
1293
|
-
},
|
|
1293
|
+
}, Fl = /* @__PURE__ */ M({
|
|
1294
1294
|
__name: "uiTextArea",
|
|
1295
1295
|
props: {
|
|
1296
1296
|
name: {},
|
|
@@ -1307,7 +1307,7 @@ const Bl = { class: "flex justify-between" }, Ml = {
|
|
|
1307
1307
|
setup(p, { emit: u }) {
|
|
1308
1308
|
const r = u, i = p, s = (t) => {
|
|
1309
1309
|
r("inputChanged", t.target.value);
|
|
1310
|
-
}, o =
|
|
1310
|
+
}, o = I(i.value);
|
|
1311
1311
|
return H(() => i.value, (t) => {
|
|
1312
1312
|
o.value = t, r("inputChanged", { name: i.name, value: o.value });
|
|
1313
1313
|
}), (t, a) => t.loading ? (l(), n("div", Al, a[1] || (a[1] = [
|
|
@@ -1339,7 +1339,7 @@ const Bl = { class: "flex justify-between" }, Ml = {
|
|
|
1339
1339
|
"text-green-600": t.color === "green"
|
|
1340
1340
|
}]),
|
|
1341
1341
|
onChange: s
|
|
1342
|
-
}, null, 42,
|
|
1342
|
+
}, null, 42, Ol), [
|
|
1343
1343
|
[se, o.value]
|
|
1344
1344
|
])
|
|
1345
1345
|
], 2),
|
|
@@ -1351,13 +1351,13 @@ const Bl = { class: "flex justify-between" }, Ml = {
|
|
|
1351
1351
|
"text-green-600": t.color === "green"
|
|
1352
1352
|
}, "mt-2 text-xs flex flex-row items-center"])
|
|
1353
1353
|
}, [
|
|
1354
|
-
m(
|
|
1354
|
+
m(A, {
|
|
1355
1355
|
icon: c(fe),
|
|
1356
1356
|
color: "red",
|
|
1357
1357
|
class: "mr-2",
|
|
1358
1358
|
loading: !1
|
|
1359
1359
|
}, null, 8, ["icon"]),
|
|
1360
|
-
|
|
1360
|
+
L(" " + g(t.error), 1)
|
|
1361
1361
|
], 2), [
|
|
1362
1362
|
[D, t.error]
|
|
1363
1363
|
])
|
|
@@ -1379,7 +1379,7 @@ const Bl = { class: "flex justify-between" }, Ml = {
|
|
|
1379
1379
|
},
|
|
1380
1380
|
emits: ["toggleChanged", "actionClicked"],
|
|
1381
1381
|
setup(p, { emit: u }) {
|
|
1382
|
-
const r = p, i =
|
|
1382
|
+
const r = p, i = I(r.checked);
|
|
1383
1383
|
return H(() => r.checked, (s) => i.value = s), (s, o) => s.loading ? (l(), n("div", Pl, o[3] || (o[3] = [
|
|
1384
1384
|
e("div", { class: "relative bg-gray-200 rounded-full w-12 h-6 p-1 flex items-center" }, [
|
|
1385
1385
|
e("div", { class: "rounded-full bg-gray-300 dark:bg-gray-400 h-4 w-4" })
|
|
@@ -1623,7 +1623,7 @@ const Bl = { class: "flex justify-between" }, Ml = {
|
|
|
1623
1623
|
loading: r.loading
|
|
1624
1624
|
}, {
|
|
1625
1625
|
default: h(() => [
|
|
1626
|
-
|
|
1626
|
+
L(g(s.name), 1)
|
|
1627
1627
|
]),
|
|
1628
1628
|
_: 2
|
|
1629
1629
|
}, 1032, ["color", "loading"]))), 128))
|
|
@@ -1644,7 +1644,7 @@ const Bl = { class: "flex justify-between" }, Ml = {
|
|
|
1644
1644
|
o.value.forEach((a) => {
|
|
1645
1645
|
a.active = a.value === t.value;
|
|
1646
1646
|
}), r("filterSelected", t);
|
|
1647
|
-
}, o =
|
|
1647
|
+
}, o = I(i.items);
|
|
1648
1648
|
return (t, a) => (l(), k(he, {
|
|
1649
1649
|
class: "text-nowrap",
|
|
1650
1650
|
loading: t.loading,
|
|
@@ -1725,7 +1725,7 @@ const Bl = { class: "flex justify-between" }, Ml = {
|
|
|
1725
1725
|
onClick: t[0] || (t[0] = (a) => s("close"))
|
|
1726
1726
|
}, [
|
|
1727
1727
|
t[3] || (t[3] = e("span", { class: "sr-only" }, "X", -1)),
|
|
1728
|
-
m(
|
|
1728
|
+
m(A, {
|
|
1729
1729
|
icon: c(K),
|
|
1730
1730
|
"aria-hidden": "true",
|
|
1731
1731
|
loading: o.loading
|
|
@@ -1772,7 +1772,7 @@ const Bl = { class: "flex justify-between" }, Ml = {
|
|
|
1772
1772
|
class: "text-lg font-medium leading-6"
|
|
1773
1773
|
}, {
|
|
1774
1774
|
default: h(() => [
|
|
1775
|
-
|
|
1775
|
+
L(g(o.title), 1)
|
|
1776
1776
|
]),
|
|
1777
1777
|
_: 1
|
|
1778
1778
|
}),
|
|
@@ -1892,7 +1892,7 @@ const Bl = { class: "flex justify-between" }, Ml = {
|
|
|
1892
1892
|
key: 0,
|
|
1893
1893
|
role: "list",
|
|
1894
1894
|
class: "divide-y divide-gray-100"
|
|
1895
|
-
}, Ds = { class: "min-w-0" }, Ts = { class: "flex items-start gap-x-3" }, zs = { class: "text-sm font-semibold leading-6 text-gray-900" }, Ls = { class: "mt-1 flex items-center gap-x-2 text-xs leading-5 text-gray-500" },
|
|
1895
|
+
}, Ds = { class: "min-w-0" }, Ts = { class: "flex items-start gap-x-3" }, zs = { class: "text-sm font-semibold leading-6 text-gray-900" }, Ls = { class: "mt-1 flex items-center gap-x-2 text-xs leading-5 text-gray-500" }, Os = { class: "truncate" }, As = { class: "flex flex-none items-center gap-x-4" }, Fs = ["href"], Is = { class: "sr-only" }, Ns = {
|
|
1896
1896
|
key: 1,
|
|
1897
1897
|
class: "divide-y divide-gray-100 animate-pulse"
|
|
1898
1898
|
}, Ps = /* @__PURE__ */ M({
|
|
@@ -1929,7 +1929,7 @@ const Bl = { class: "flex justify-between" }, Ml = {
|
|
|
1929
1929
|
}, g(i.statusLiteral), 3)
|
|
1930
1930
|
]),
|
|
1931
1931
|
e("div", Ls, [
|
|
1932
|
-
e("p",
|
|
1932
|
+
e("p", Os, g(i.description), 1)
|
|
1933
1933
|
])
|
|
1934
1934
|
]),
|
|
1935
1935
|
e("div", As, [
|
|
@@ -1937,9 +1937,9 @@ const Bl = { class: "flex justify-between" }, Ml = {
|
|
|
1937
1937
|
href: i.href,
|
|
1938
1938
|
class: "hidden rounded-md bg-white px-2.5 py-1.5 text-sm font-semibold text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 hover:bg-gray-50 sm:block"
|
|
1939
1939
|
}, [
|
|
1940
|
-
|
|
1940
|
+
L(g(i.action), 1),
|
|
1941
1941
|
e("span", Is, ", " + g(i.name), 1)
|
|
1942
|
-
], 8,
|
|
1942
|
+
], 8, Fs)
|
|
1943
1943
|
])
|
|
1944
1944
|
]))), 128))
|
|
1945
1945
|
]));
|
|
@@ -1948,9 +1948,9 @@ const Bl = { class: "flex justify-between" }, Ml = {
|
|
|
1948
1948
|
function Vs(p) {
|
|
1949
1949
|
return p && p.__esModule && Object.prototype.hasOwnProperty.call(p, "default") ? p.default : p;
|
|
1950
1950
|
}
|
|
1951
|
-
var de = { exports: {} }, Ys = de.exports,
|
|
1951
|
+
var de = { exports: {} }, Ys = de.exports, Fe;
|
|
1952
1952
|
function qs() {
|
|
1953
|
-
return
|
|
1953
|
+
return Fe || (Fe = 1, function(p, u) {
|
|
1954
1954
|
(function(r, i) {
|
|
1955
1955
|
p.exports = i(V);
|
|
1956
1956
|
})(Ys, function(r) {
|
|
@@ -2055,7 +2055,7 @@ const le = (p, u) => {
|
|
|
2055
2055
|
}
|
|
2056
2056
|
}, Gs = { class: "dateSelector flex items-center flex-row" }, Qs = { class: "pagination flex items-center my-1 md:my-0" }, Ks = { class: "date mx-4 font-bold text-center text-black select-none uppercase" }, Xs = { class: "pagination flex items-center my-1 sm:my-0" };
|
|
2057
2057
|
function eo(p, u, r, i, s, o) {
|
|
2058
|
-
const t =
|
|
2058
|
+
const t = Oe("ChevronLeftIcon"), a = Oe("ChevronRightIcon");
|
|
2059
2059
|
return l(), n("div", Gs, [
|
|
2060
2060
|
e("div", Qs, [
|
|
2061
2061
|
e("div", {
|
|
@@ -2182,7 +2182,7 @@ function co(p, u, r, i, s, o) {
|
|
|
2182
2182
|
}, [
|
|
2183
2183
|
e("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-6" }),
|
|
2184
2184
|
e("span", { class: "sr-only" }, [
|
|
2185
|
-
|
|
2185
|
+
L(", {"),
|
|
2186
2186
|
e("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-6" })
|
|
2187
2187
|
])
|
|
2188
2188
|
])
|
|
@@ -2292,10 +2292,10 @@ const ie = /* @__PURE__ */ le(xo, [["render", $o]]), Co = {
|
|
|
2292
2292
|
colspan: "20",
|
|
2293
2293
|
scope: "colgroup",
|
|
2294
2294
|
class: "bg-gray-200 py-2 pl-4 pr-3 text-left font-semibold"
|
|
2295
|
-
}, Lo = { key: 0 },
|
|
2295
|
+
}, Lo = { key: 0 }, Oo = {
|
|
2296
2296
|
colspan: "6",
|
|
2297
2297
|
class: "pl-4"
|
|
2298
|
-
}, Ao = { key: 1 },
|
|
2298
|
+
}, Ao = { key: 1 }, Fo = {
|
|
2299
2299
|
colspan: "6",
|
|
2300
2300
|
class: "pl-4"
|
|
2301
2301
|
}, Io = { key: 2 }, No = {
|
|
@@ -2346,7 +2346,7 @@ const ie = /* @__PURE__ */ le(xo, [["render", $o]]), Co = {
|
|
|
2346
2346
|
},
|
|
2347
2347
|
emits: ["dateChanged", "changeCategoryBulkPrices", "changeCategorySelectionPrice", "changeCategoryUpgradePrice", "changeRoomPrice", "tableAction"],
|
|
2348
2348
|
setup(p, { emit: u }) {
|
|
2349
|
-
const r = p, i = u, s =
|
|
2349
|
+
const r = p, i = u, s = I(/* @__PURE__ */ new Date()), o = I(r.today), t = I([]);
|
|
2350
2350
|
H(() => r.today, (C) => {
|
|
2351
2351
|
o.value = C;
|
|
2352
2352
|
});
|
|
@@ -2358,11 +2358,11 @@ const ie = /* @__PURE__ */ le(xo, [["render", $o]]), Co = {
|
|
|
2358
2358
|
}), d = Y(() => t.value.length > 0 && t.value.length < r.rooms.length), f = (C) => {
|
|
2359
2359
|
V(C).isBefore(s.value) || (o.value = C, i("dateChanged", o.value));
|
|
2360
2360
|
}, v = (C) => {
|
|
2361
|
-
let q = r.category.selectionPrices.find((
|
|
2361
|
+
let q = r.category.selectionPrices.find((N) => V(N.date).isSame(C.date));
|
|
2362
2362
|
return q ? q.price : C.price;
|
|
2363
2363
|
}, j = (C) => {
|
|
2364
2364
|
t.value = C.target.checked ? r.rooms.map((q) => q.id) : [];
|
|
2365
|
-
}, w = () => i("changeCategoryBulkPrices"), T = (C) => i("changeCategorySelectionPrice", C), x = (C) => i("changeCategoryUpgradePrice", C),
|
|
2365
|
+
}, w = () => i("changeCategoryBulkPrices"), T = (C) => i("changeCategorySelectionPrice", C), x = (C) => i("changeCategoryUpgradePrice", C), F = (C) => i("tableAction", C), O = (C, q, N) => i("changeRoomPrice", { price: C, roomId: q, roomName: N });
|
|
2366
2366
|
return (C, q) => C.loading ? (l(), k(nt, { key: 1 })) : (l(), n("div", Co, [
|
|
2367
2367
|
e("div", So, [
|
|
2368
2368
|
e("div", Bo, [
|
|
@@ -2373,17 +2373,17 @@ const ie = /* @__PURE__ */ le(xo, [["render", $o]]), Co = {
|
|
|
2373
2373
|
e("th", To, [
|
|
2374
2374
|
m(to, {
|
|
2375
2375
|
selectedDate: o.value,
|
|
2376
|
-
onDateSelected: q[0] || (q[0] = (
|
|
2376
|
+
onDateSelected: q[0] || (q[0] = (N) => f(N))
|
|
2377
2377
|
}, null, 8, ["selectedDate"])
|
|
2378
2378
|
]),
|
|
2379
|
-
(l(!0), n($, null, S(a.value, (
|
|
2379
|
+
(l(!0), n($, null, S(a.value, (N, _) => (l(), n("th", {
|
|
2380
2380
|
scope: "col",
|
|
2381
2381
|
key: _,
|
|
2382
2382
|
class: "text-sm font-semibold p-0"
|
|
2383
2383
|
}, [
|
|
2384
2384
|
m(ko, {
|
|
2385
2385
|
class: "border-l border-gray-200 px-6 py-3",
|
|
2386
|
-
day:
|
|
2386
|
+
day: N
|
|
2387
2387
|
}, null, 8, ["day"])
|
|
2388
2388
|
]))), 128))
|
|
2389
2389
|
]),
|
|
@@ -2397,37 +2397,37 @@ const ie = /* @__PURE__ */ le(xo, [["render", $o]]), Co = {
|
|
|
2397
2397
|
onClick: w
|
|
2398
2398
|
}, {
|
|
2399
2399
|
default: h(() => [
|
|
2400
|
-
|
|
2400
|
+
L(g(C.literals.changeInBulk), 1)
|
|
2401
2401
|
]),
|
|
2402
2402
|
_: 1
|
|
2403
2403
|
}, 8, ["loading"])
|
|
2404
2404
|
])
|
|
2405
2405
|
]),
|
|
2406
2406
|
C.type === "discounts" ? (l(), n("tr", Lo, [
|
|
2407
|
-
e("td",
|
|
2408
|
-
(l(!0), n($, null, S(C.category.selectionPrices, (
|
|
2407
|
+
e("td", Oo, g(C.literals.pricesDiscount), 1),
|
|
2408
|
+
(l(!0), n($, null, S(C.category.selectionPrices, (N, _) => (l(), n("td", {
|
|
2409
2409
|
key: _,
|
|
2410
2410
|
class: "p-0"
|
|
2411
2411
|
}, [
|
|
2412
2412
|
m(ie, {
|
|
2413
|
-
onClick: (
|
|
2413
|
+
onClick: (P) => T(N),
|
|
2414
2414
|
class: "border-l border-gray-200 px-6 py-3 text-black hover:text-lime-400 font-bold cursor-pointer",
|
|
2415
|
-
price:
|
|
2415
|
+
price: N,
|
|
2416
2416
|
currency: C.currency.symbol,
|
|
2417
2417
|
isBasePrice: !0
|
|
2418
2418
|
}, null, 8, ["onClick", "price", "currency"])
|
|
2419
2419
|
]))), 128))
|
|
2420
2420
|
])) : b("", !0),
|
|
2421
2421
|
C.type === "prices" ? (l(), n("tr", Ao, [
|
|
2422
|
-
e("td",
|
|
2423
|
-
(l(!0), n($, null, S(C.category.selectionPrices, (
|
|
2422
|
+
e("td", Fo, g(C.literals.pricesSelection), 1),
|
|
2423
|
+
(l(!0), n($, null, S(C.category.selectionPrices, (N, _) => (l(), n("td", {
|
|
2424
2424
|
key: _,
|
|
2425
2425
|
class: "p-0"
|
|
2426
2426
|
}, [
|
|
2427
2427
|
m(ie, {
|
|
2428
|
-
onClick: (
|
|
2428
|
+
onClick: (P) => T(N),
|
|
2429
2429
|
class: "border-l border-gray-200 px-6 py-3 text-black hover:text-lime-400 font-bold cursor-pointer",
|
|
2430
|
-
price:
|
|
2430
|
+
price: N,
|
|
2431
2431
|
currency: C.currency.symbol,
|
|
2432
2432
|
isBasePrice: !0
|
|
2433
2433
|
}, null, 8, ["onClick", "price", "currency"])
|
|
@@ -2435,14 +2435,14 @@ const ie = /* @__PURE__ */ le(xo, [["render", $o]]), Co = {
|
|
|
2435
2435
|
])) : b("", !0),
|
|
2436
2436
|
C.type === "prices" ? (l(), n("tr", Io, [
|
|
2437
2437
|
e("td", No, g(C.literals.pricesUpgrade), 1),
|
|
2438
|
-
(l(!0), n($, null, S(C.category.upgradePrices, (
|
|
2438
|
+
(l(!0), n($, null, S(C.category.upgradePrices, (N, _) => (l(), n("td", {
|
|
2439
2439
|
key: _,
|
|
2440
2440
|
class: "p-0"
|
|
2441
2441
|
}, [
|
|
2442
2442
|
m(ie, {
|
|
2443
|
-
onClick: (
|
|
2443
|
+
onClick: (P) => x(N),
|
|
2444
2444
|
class: "border-l border-gray-200 px-6 py-3 text-black hover:text-lime-400 font-bold cursor-pointer bg-gray-100",
|
|
2445
|
-
price:
|
|
2445
|
+
price: N,
|
|
2446
2446
|
currency: C.currency.symbol,
|
|
2447
2447
|
isBasePrice: !0
|
|
2448
2448
|
}, null, 8, ["onClick", "price", "currency"])
|
|
@@ -2451,12 +2451,12 @@ const ie = /* @__PURE__ */ le(xo, [["render", $o]]), Co = {
|
|
|
2451
2451
|
e("tr", null, [
|
|
2452
2452
|
e("th", Po, [
|
|
2453
2453
|
t.value?.length > 0 && C.actions?.length > 0 ? (l(), n("div", Vo, [
|
|
2454
|
-
(l(!0), n($, null, S(C.actions, (
|
|
2455
|
-
onClick: (
|
|
2454
|
+
(l(!0), n($, null, S(C.actions, (N, _) => (l(), n("button", {
|
|
2455
|
+
onClick: (P) => F({ action: N.id, items: t.value }),
|
|
2456
2456
|
key: _,
|
|
2457
2457
|
type: "button",
|
|
2458
2458
|
class: "inline-flex items-center rounded bg-lime-400 hover:bg-black hover:text-white px-2.5 py-1.5 text-xs font-medium shadow-sm disabled:cursor-not-allowed disabled:opacity-30"
|
|
2459
|
-
}, g(
|
|
2459
|
+
}, g(N.name), 9, Yo))), 128))
|
|
2460
2460
|
])) : b("", !0),
|
|
2461
2461
|
e("span", null, g(C.literals.pricesSelection), 1)
|
|
2462
2462
|
])
|
|
@@ -2480,8 +2480,8 @@ const ie = /* @__PURE__ */ le(xo, [["render", $o]]), Co = {
|
|
|
2480
2480
|
class: "bg-gray-100 py-2 pl-4 pr-3 text-left font-semibold"
|
|
2481
2481
|
}, null, -1))
|
|
2482
2482
|
]),
|
|
2483
|
-
(l(!0), n($, null, S(C.rooms, (
|
|
2484
|
-
key:
|
|
2483
|
+
(l(!0), n($, null, S(C.rooms, (N) => (l(), n("tr", {
|
|
2484
|
+
key: N.name,
|
|
2485
2485
|
class: y([{ "even:bg-gray-100": C.type === "prices", "odd:bg-gray-100": C.type === "discounts" }])
|
|
2486
2486
|
}, [
|
|
2487
2487
|
e("td", Zo, [
|
|
@@ -2489,21 +2489,21 @@ const ie = /* @__PURE__ */ le(xo, [["render", $o]]), Co = {
|
|
|
2489
2489
|
B(e("input", {
|
|
2490
2490
|
type: "checkbox",
|
|
2491
2491
|
class: "absolute left-4 top-1/2 -mt-2 h-4 w-4 rounded border-gray-300 text-lime-400 focus:ring-lime-400",
|
|
2492
|
-
value:
|
|
2492
|
+
value: N.name,
|
|
2493
2493
|
"onUpdate:modelValue": q[1] || (q[1] = (_) => t.value = _)
|
|
2494
2494
|
}, null, 8, Wo), [
|
|
2495
2495
|
[Ee, t.value]
|
|
2496
2496
|
]),
|
|
2497
|
-
e("span", Go, g(
|
|
2497
|
+
e("span", Go, g(N.name), 1)
|
|
2498
2498
|
]),
|
|
2499
|
-
e("td", Qo, g(
|
|
2500
|
-
e("td", Ko, g(
|
|
2501
|
-
(l(!0), n($, null, S(
|
|
2499
|
+
e("td", Qo, g(N.building), 1),
|
|
2500
|
+
e("td", Ko, g(N.floor), 1),
|
|
2501
|
+
(l(!0), n($, null, S(N.selectionPrices, (_, P) => (l(), n("td", {
|
|
2502
2502
|
class: "p-0",
|
|
2503
|
-
key:
|
|
2503
|
+
key: P
|
|
2504
2504
|
}, [
|
|
2505
2505
|
m(ie, {
|
|
2506
|
-
onClick: (
|
|
2506
|
+
onClick: (z) => O(_, N.id, N.name),
|
|
2507
2507
|
class: "border-l border-gray-200 px-6 py-3 text-black hover:text-lime-400 cursor-pointer",
|
|
2508
2508
|
price: _,
|
|
2509
2509
|
currency: C.currency.symbol,
|
|
@@ -2543,7 +2543,7 @@ const ie = /* @__PURE__ */ le(xo, [["render", $o]]), Co = {
|
|
|
2543
2543
|
},
|
|
2544
2544
|
emits: ["selectedRange", "chartUpdated", "dataPointSelection", "maximizeChart"],
|
|
2545
2545
|
setup(p, { emit: u }) {
|
|
2546
|
-
const r = u, i =
|
|
2546
|
+
const r = u, i = I((/* @__PURE__ */ new Date()).toISOString().slice(0, (/* @__PURE__ */ new Date()).toISOString().lastIndexOf(":"))), s = p;
|
|
2547
2547
|
let o = ae(s.dates || { from: "", to: i });
|
|
2548
2548
|
H(() => s.dates, (x) => {
|
|
2549
2549
|
x && (o = x);
|
|
@@ -2559,10 +2559,10 @@ const ie = /* @__PURE__ */ le(xo, [["render", $o]]), Co = {
|
|
|
2559
2559
|
},
|
|
2560
2560
|
colors: function() {
|
|
2561
2561
|
return s.isNps ? [
|
|
2562
|
-
function({ value: x, seriesIndex:
|
|
2563
|
-
if (
|
|
2564
|
-
if (
|
|
2565
|
-
if (
|
|
2562
|
+
function({ value: x, seriesIndex: F, dataPointIndex: O, w: C }) {
|
|
2563
|
+
if (O <= 5) return "#F87171";
|
|
2564
|
+
if (O > 5 && O <= 7) return "#eab308";
|
|
2565
|
+
if (O >= 8) return "#84cc16";
|
|
2566
2566
|
}
|
|
2567
2567
|
] : [
|
|
2568
2568
|
"#000000",
|
|
@@ -2606,10 +2606,10 @@ const ie = /* @__PURE__ */ le(xo, [["render", $o]]), Co = {
|
|
|
2606
2606
|
}), s.type === "area" && (a.tooltip = { intersect: !1, shared: !0 });
|
|
2607
2607
|
const d = () => (a.chart.stacked = s.stacked, s.options && (s.options.xaxis.hideOverlappingLabels = !0, s.options.xaxis.decimalsInFloat = 2, s.options.xaxis.tickAmount = 10), { ...a, ...s.options, plotOptions: { bar: { horizontal: s.horizontal } } }), f = () => {
|
|
2608
2608
|
o.from !== "" && o.to !== "" && V(o.from).isBefore(V(o.to)) && r("selectedRange", { range: o, chartId: s.id });
|
|
2609
|
-
}, v = Y(() => s.series), j = Y(() => d()), w = () => r("chartUpdated"), T = (x,
|
|
2610
|
-
r("dataPointSelection", { id: s.id, chartContext:
|
|
2609
|
+
}, v = Y(() => s.series), j = Y(() => d()), w = () => r("chartUpdated"), T = (x, F, O) => {
|
|
2610
|
+
r("dataPointSelection", { id: s.id, chartContext: F, config: O, event: x });
|
|
2611
2611
|
};
|
|
2612
|
-
return (x,
|
|
2612
|
+
return (x, F) => (l(), n($, null, [
|
|
2613
2613
|
B(e("div", {
|
|
2614
2614
|
class: y(["h-[" + x.height + "px]", "card chart apex-chart p-4 bg-white shadow rounded-lg overflow-hidden flex grow"])
|
|
2615
2615
|
}, [
|
|
@@ -2622,7 +2622,7 @@ const ie = /* @__PURE__ */ le(xo, [["render", $o]]), Co = {
|
|
|
2622
2622
|
loading: !1
|
|
2623
2623
|
}, {
|
|
2624
2624
|
default: h(() => [
|
|
2625
|
-
m(
|
|
2625
|
+
m(A, {
|
|
2626
2626
|
icon: c(Rt),
|
|
2627
2627
|
loading: !1,
|
|
2628
2628
|
color: "red"
|
|
@@ -2637,7 +2637,7 @@ const ie = /* @__PURE__ */ le(xo, [["render", $o]]), Co = {
|
|
|
2637
2637
|
loading: !1
|
|
2638
2638
|
}, {
|
|
2639
2639
|
default: h(() => [
|
|
2640
|
-
m(
|
|
2640
|
+
m(A, {
|
|
2641
2641
|
icon: c(qt),
|
|
2642
2642
|
loading: !1,
|
|
2643
2643
|
color: "yellow"
|
|
@@ -2652,7 +2652,7 @@ const ie = /* @__PURE__ */ le(xo, [["render", $o]]), Co = {
|
|
|
2652
2652
|
loading: !1
|
|
2653
2653
|
}, {
|
|
2654
2654
|
default: h(() => [
|
|
2655
|
-
m(
|
|
2655
|
+
m(A, {
|
|
2656
2656
|
icon: c(Et),
|
|
2657
2657
|
loading: !1,
|
|
2658
2658
|
color: "green"
|
|
@@ -2666,7 +2666,7 @@ const ie = /* @__PURE__ */ le(xo, [["render", $o]]), Co = {
|
|
|
2666
2666
|
e("div", nr, [
|
|
2667
2667
|
B(e("input", {
|
|
2668
2668
|
type: "datetime-local",
|
|
2669
|
-
"onUpdate:modelValue":
|
|
2669
|
+
"onUpdate:modelValue": F[0] || (F[0] = (O) => c(o).from = O),
|
|
2670
2670
|
max: i.value.toString(),
|
|
2671
2671
|
onChange: f,
|
|
2672
2672
|
name: "from",
|
|
@@ -2679,7 +2679,7 @@ const ie = /* @__PURE__ */ le(xo, [["render", $o]]), Co = {
|
|
|
2679
2679
|
e("div", dr, [
|
|
2680
2680
|
B(e("input", {
|
|
2681
2681
|
type: "datetime-local",
|
|
2682
|
-
"onUpdate:modelValue":
|
|
2682
|
+
"onUpdate:modelValue": F[1] || (F[1] = (O) => c(o).to = O),
|
|
2683
2683
|
max: i.value.toString(),
|
|
2684
2684
|
onChange: f,
|
|
2685
2685
|
name: "to",
|
|
@@ -2689,12 +2689,12 @@ const ie = /* @__PURE__ */ le(xo, [["render", $o]]), Co = {
|
|
|
2689
2689
|
[se, c(o).to]
|
|
2690
2690
|
])
|
|
2691
2691
|
]),
|
|
2692
|
-
m(
|
|
2692
|
+
m(A, {
|
|
2693
2693
|
class: "ml-4 cursor-pointer",
|
|
2694
2694
|
size: "big",
|
|
2695
2695
|
loading: x.loading,
|
|
2696
2696
|
icon: c(Xe),
|
|
2697
|
-
onClick:
|
|
2697
|
+
onClick: F[2] || (F[2] = (O) => x.$emit("maximizeChart", x.id))
|
|
2698
2698
|
}, null, 8, ["loading", "icon"])
|
|
2699
2699
|
])
|
|
2700
2700
|
]),
|
|
@@ -2715,13 +2715,13 @@ const ie = /* @__PURE__ */ le(xo, [["render", $o]]), Co = {
|
|
|
2715
2715
|
B(e("div", {
|
|
2716
2716
|
class: y(["h-[" + x.height + "px]", "w-full flex items-center justify-center flex-col"])
|
|
2717
2717
|
}, [
|
|
2718
|
-
m(
|
|
2718
|
+
m(A, {
|
|
2719
2719
|
icon: c(W),
|
|
2720
2720
|
color: "gray",
|
|
2721
2721
|
loading: !1,
|
|
2722
2722
|
size: "massive"
|
|
2723
2723
|
}, null, 8, ["icon"]),
|
|
2724
|
-
|
|
2724
|
+
F[3] || (F[3] = e("p", { class: "text-xs uppercase text-gray-300 font-bold" }, "No data for this time frame", -1))
|
|
2725
2725
|
], 2), [
|
|
2726
2726
|
[D, x.empty]
|
|
2727
2727
|
])
|
|
@@ -2730,7 +2730,7 @@ const ie = /* @__PURE__ */ le(xo, [["render", $o]]), Co = {
|
|
|
2730
2730
|
]),
|
|
2731
2731
|
B(e("div", {
|
|
2732
2732
|
class: y(["h-[" + x.height + "px]", "card chart apex-chart px-4 py-5 bg-white shadow rounded-lg overflow-hidden sm:p-6 flex grow h-80"])
|
|
2733
|
-
},
|
|
2733
|
+
}, F[4] || (F[4] = [
|
|
2734
2734
|
e("div", {
|
|
2735
2735
|
role: "status",
|
|
2736
2736
|
class: "w-full animate-pulse h-full flex flex-col"
|
|
@@ -2826,7 +2826,7 @@ const hr = /* @__PURE__ */ le(mr, [["render", fr]]), yr = /* @__PURE__ */ M({
|
|
|
2826
2826
|
},
|
|
2827
2827
|
emits: ["changePage"],
|
|
2828
2828
|
setup(p, { emit: u }) {
|
|
2829
|
-
const r = u, i = p, s =
|
|
2829
|
+
const r = u, i = p, s = I(3), o = Y(
|
|
2830
2830
|
() => Math.max(1, Number(i.current) - Number(s.value))
|
|
2831
2831
|
), t = Y(
|
|
2832
2832
|
() => Math.min(Number(i.current) + Number(s.value), Number(i.total))
|
|
@@ -2906,7 +2906,7 @@ const hr = /* @__PURE__ */ le(mr, [["render", fr]]), yr = /* @__PURE__ */ M({
|
|
|
2906
2906
|
])
|
|
2907
2907
|
]));
|
|
2908
2908
|
}
|
|
2909
|
-
}), Lr = { class: "hidden md:flex md:flex-col sticky md:inset-y-0" },
|
|
2909
|
+
}), Lr = { class: "hidden md:flex md:flex-col sticky md:inset-y-0" }, Or = { class: "flex flex-col flex-grow overflow-y-auto" }, Ar = { class: "grow flex flex-col" }, Fr = {
|
|
2910
2910
|
class: "flex-1 space-y-1",
|
|
2911
2911
|
"aria-label": "Sidebar"
|
|
2912
2912
|
}, Ir = { key: 0 }, Nr = ["onClick"], Pr = {
|
|
@@ -2937,9 +2937,9 @@ const hr = /* @__PURE__ */ le(mr, [["render", fr]]), yr = /* @__PURE__ */ M({
|
|
|
2937
2937
|
setup(p, { emit: u }) {
|
|
2938
2938
|
const r = p, i = u, s = Y(() => r.navigation ? Array.isArray(r.navigation) ? r.navigation : [r.navigation] : []);
|
|
2939
2939
|
return (o, t) => (l(), n("div", Lr, [
|
|
2940
|
-
e("div",
|
|
2940
|
+
e("div", Or, [
|
|
2941
2941
|
e("div", Ar, [
|
|
2942
|
-
e("nav",
|
|
2942
|
+
e("nav", Fr, [
|
|
2943
2943
|
o.loading ? (l(), n($, { key: 1 }, S(5, (a) => e("div", Er, t[1] || (t[1] = [
|
|
2944
2944
|
e("div", { class: "w-6 h-6 animate-pulse bg-gray-200 rounded-full dark:bg-gray-300 mr-4" }, null, -1),
|
|
2945
2945
|
e("div", { class: "h-3 animate-pulse bg-gray-200 rounded-full dark:bg-gray-300 grow" }, null, -1)
|
|
@@ -2956,7 +2956,7 @@ const hr = /* @__PURE__ */ le(mr, [["render", fr]]), yr = /* @__PURE__ */ M({
|
|
|
2956
2956
|
class: y([a.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"])
|
|
2957
2957
|
}, {
|
|
2958
2958
|
default: h(() => [
|
|
2959
|
-
a.icon ? (l(), k(
|
|
2959
|
+
a.icon ? (l(), k(A, {
|
|
2960
2960
|
key: 0,
|
|
2961
2961
|
loading: o.loading,
|
|
2962
2962
|
icon: a.icon,
|
|
@@ -3000,7 +3000,7 @@ const hr = /* @__PURE__ */ le(mr, [["render", fr]]), yr = /* @__PURE__ */ M({
|
|
|
3000
3000
|
"group w-full flex items-center pl-2 py-2 text-sm font-medium rounded-md"
|
|
3001
3001
|
])
|
|
3002
3002
|
}, [
|
|
3003
|
-
a.icon ? (l(), k(
|
|
3003
|
+
a.icon ? (l(), k(A, {
|
|
3004
3004
|
key: 0,
|
|
3005
3005
|
loading: o.loading,
|
|
3006
3006
|
icon: a.icon,
|
|
@@ -3097,7 +3097,7 @@ const hr = /* @__PURE__ */ le(mr, [["render", fr]]), yr = /* @__PURE__ */ M({
|
|
|
3097
3097
|
class: y([t.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"])
|
|
3098
3098
|
}, {
|
|
3099
3099
|
default: h(() => [
|
|
3100
|
-
m(
|
|
3100
|
+
m(A, {
|
|
3101
3101
|
icon: t.icon,
|
|
3102
3102
|
color: "primary",
|
|
3103
3103
|
size: "big",
|
|
@@ -3105,7 +3105,7 @@ const hr = /* @__PURE__ */ le(mr, [["render", fr]]), yr = /* @__PURE__ */ M({
|
|
|
3105
3105
|
"aria-hidden": "true",
|
|
3106
3106
|
class: "shrink-0"
|
|
3107
3107
|
}, null, 8, ["icon"]),
|
|
3108
|
-
|
|
3108
|
+
L(" " + g(t.name) + " ", 1),
|
|
3109
3109
|
m(c(ne), {
|
|
3110
3110
|
class: y([t.children.some((a) => a.current) || t.current ? "rotate-90 text-black" : "text-gray-400", "ml-auto h-5 w-5 shrink-0"]),
|
|
3111
3111
|
"aria-hidden": "true"
|
|
@@ -3129,7 +3129,7 @@ const hr = /* @__PURE__ */ le(mr, [["render", fr]]), yr = /* @__PURE__ */ M({
|
|
|
3129
3129
|
class: y([a.current ? "bg-lime-100" : "hover:bg-lime-100", "block rounded-md py-2 pl-9 pr-2 text-sm leading-6 text-gray-700 cursor-pointer"])
|
|
3130
3130
|
}, {
|
|
3131
3131
|
default: h(() => [
|
|
3132
|
-
|
|
3132
|
+
L(g(a.name), 1)
|
|
3133
3133
|
]),
|
|
3134
3134
|
_: 2
|
|
3135
3135
|
}, 1032, ["onClick", "class"])
|
|
@@ -3147,7 +3147,7 @@ const hr = /* @__PURE__ */ le(mr, [["render", fr]]), yr = /* @__PURE__ */ M({
|
|
|
3147
3147
|
onClick: (a) => s.$emit("sideBarClick", t.id),
|
|
3148
3148
|
class: y([t.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"])
|
|
3149
3149
|
}, [
|
|
3150
|
-
m(
|
|
3150
|
+
m(A, {
|
|
3151
3151
|
icon: t.icon,
|
|
3152
3152
|
color: "primary",
|
|
3153
3153
|
size: "big",
|
|
@@ -3155,7 +3155,7 @@ const hr = /* @__PURE__ */ le(mr, [["render", fr]]), yr = /* @__PURE__ */ M({
|
|
|
3155
3155
|
"aria-hidden": "true",
|
|
3156
3156
|
class: "shrink-0"
|
|
3157
3157
|
}, null, 8, ["icon"]),
|
|
3158
|
-
|
|
3158
|
+
L(" " + g(t.name), 1)
|
|
3159
3159
|
], 10, ta))
|
|
3160
3160
|
]))), 128))
|
|
3161
3161
|
])
|
|
@@ -3184,7 +3184,7 @@ const hr = /* @__PURE__ */ le(mr, [["render", fr]]), yr = /* @__PURE__ */ M({
|
|
|
3184
3184
|
loading: d.loading
|
|
3185
3185
|
}, {
|
|
3186
3186
|
default: h(() => [
|
|
3187
|
-
|
|
3187
|
+
L(g(d.text), 1)
|
|
3188
3188
|
]),
|
|
3189
3189
|
_: 2
|
|
3190
3190
|
}, 1032, ["value", "loading"]))), 256))
|
|
@@ -3209,7 +3209,7 @@ const hr = /* @__PURE__ */ le(mr, [["render", fr]]), yr = /* @__PURE__ */ M({
|
|
|
3209
3209
|
e("div", fa, [
|
|
3210
3210
|
e("dt", null, [
|
|
3211
3211
|
e("div", ha, [
|
|
3212
|
-
m(
|
|
3212
|
+
m(A, {
|
|
3213
3213
|
loading: r.loading,
|
|
3214
3214
|
icon: r.item.icon,
|
|
3215
3215
|
class: "h-6 w-6 text-white",
|
|
@@ -3236,7 +3236,7 @@ const hr = /* @__PURE__ */ le(mr, [["render", fr]]), yr = /* @__PURE__ */ M({
|
|
|
3236
3236
|
"bg-yellow-400": r.item.color === "yellow"
|
|
3237
3237
|
}])
|
|
3238
3238
|
}, [
|
|
3239
|
-
m(
|
|
3239
|
+
m(A, {
|
|
3240
3240
|
icon: r.item.icon,
|
|
3241
3241
|
class: "h-6 w-6",
|
|
3242
3242
|
"aria-hidden": "true",
|
|
@@ -3269,7 +3269,7 @@ const hr = /* @__PURE__ */ le(mr, [["render", fr]]), yr = /* @__PURE__ */ M({
|
|
|
3269
3269
|
class: "self-center flex-shrink-0 h-3 w-3 text-red-500",
|
|
3270
3270
|
"aria-hidden": "true"
|
|
3271
3271
|
})) : b("", !0),
|
|
3272
|
-
|
|
3272
|
+
L(" " + g(r.item.change), 1)
|
|
3273
3273
|
], 2)) : b("", !0),
|
|
3274
3274
|
B(e("div", ga, [
|
|
3275
3275
|
e("div", ma, [
|
|
@@ -3344,7 +3344,7 @@ const hr = /* @__PURE__ */ le(mr, [["render", fr]]), yr = /* @__PURE__ */ M({
|
|
|
3344
3344
|
class: "mr-2 mb-2"
|
|
3345
3345
|
}, {
|
|
3346
3346
|
default: h(() => [
|
|
3347
|
-
|
|
3347
|
+
L(g(o.text), 1)
|
|
3348
3348
|
]),
|
|
3349
3349
|
_: 2
|
|
3350
3350
|
}, 1032, ["loading", "color"]))), 128))
|
|
@@ -3384,7 +3384,7 @@ const hr = /* @__PURE__ */ le(mr, [["render", fr]]), yr = /* @__PURE__ */ M({
|
|
|
3384
3384
|
})
|
|
3385
3385
|
], -1)),
|
|
3386
3386
|
e("div", null, [
|
|
3387
|
-
m(
|
|
3387
|
+
m(A, {
|
|
3388
3388
|
icon: c(Zt),
|
|
3389
3389
|
loading: !1,
|
|
3390
3390
|
color: "white",
|
|
@@ -3394,7 +3394,7 @@ const hr = /* @__PURE__ */ le(mr, [["render", fr]]), yr = /* @__PURE__ */ M({
|
|
|
3394
3394
|
e("span", Da, g(p.tip), 1)
|
|
3395
3395
|
]));
|
|
3396
3396
|
}
|
|
3397
|
-
}, za = { key: 0 }, La = { class: "flex flex-col" },
|
|
3397
|
+
}, za = { key: 0 }, La = { class: "flex flex-col" }, Oa = { class: "-my-2 overflow-x-auto" }, Aa = { class: "inline-block min-w-full py-2 align-middle px-1" }, Fa = { class: "relative overflow-hidden shadow ring-1 ring-black ring-opacity-5 md:rounded-lg" }, Ia = {
|
|
3398
3398
|
key: 0,
|
|
3399
3399
|
class: "absolute top-0 left-12 flex h-12 items-center space-x-3 sm:left-16 bg-white shadow rounded px-4 py-1 z-10"
|
|
3400
3400
|
}, Na = ["onClick"], Pa = { class: "min-w-full table-fixed divide-y divide-gray-300" }, Va = { class: "bg-lime-50" }, Ya = ["checked", "indeterminate"], qa = ["onMouseover", "onMouseleave"], Ra = ["onClick"], Ea = {
|
|
@@ -3417,7 +3417,7 @@ const hr = /* @__PURE__ */ le(mr, [["render", fr]]), yr = /* @__PURE__ */ M({
|
|
|
3417
3417
|
},
|
|
3418
3418
|
emits: ["tableAction", "orderBy", "customEmit", "selectedItemsDeleted"],
|
|
3419
3419
|
setup(p, { emit: u }) {
|
|
3420
|
-
let r =
|
|
3420
|
+
let r = I([]), i = I(""), s = I(!1);
|
|
3421
3421
|
const o = u, t = p, a = Y(
|
|
3422
3422
|
() => r.value.length > 0 && r.value.length < t.items.length
|
|
3423
3423
|
), d = (w, T) => {
|
|
@@ -3431,13 +3431,13 @@ const hr = /* @__PURE__ */ le(mr, [["render", fr]]), yr = /* @__PURE__ */ M({
|
|
|
3431
3431
|
s.value = w, w && s.value && (r.value = [], s.value = !w, o("selectedItemsDeleted"));
|
|
3432
3432
|
}), (w, T) => w.loading ? (l(), k(nt, { key: 1 })) : (l(), n("div", za, [
|
|
3433
3433
|
e("div", La, [
|
|
3434
|
-
e("div",
|
|
3434
|
+
e("div", Oa, [
|
|
3435
3435
|
e("div", Aa, [
|
|
3436
|
-
e("div",
|
|
3436
|
+
e("div", Fa, [
|
|
3437
3437
|
c(r)?.length > 0 && w.actions?.length > 0 ? (l(), n("div", Ia, [
|
|
3438
|
-
(l(!0), n($, null, S(w.actions, (x,
|
|
3439
|
-
onClick: (
|
|
3440
|
-
key:
|
|
3438
|
+
(l(!0), n($, null, S(w.actions, (x, F) => (l(), n("button", {
|
|
3439
|
+
onClick: (O) => w.$emit("tableAction", { action: x.id, items: c(r) }),
|
|
3440
|
+
key: F,
|
|
3441
3441
|
type: "button",
|
|
3442
3442
|
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"
|
|
3443
3443
|
}, g(x.name), 9, Na))), 128))
|
|
@@ -3458,12 +3458,12 @@ const hr = /* @__PURE__ */ le(mr, [["render", fr]]), yr = /* @__PURE__ */ M({
|
|
|
3458
3458
|
onChange: f
|
|
3459
3459
|
}, null, 40, Ya)) : b("", !0)
|
|
3460
3460
|
], 2),
|
|
3461
|
-
(l(!0), n($, null, S(w.header, (x,
|
|
3462
|
-
key:
|
|
3461
|
+
(l(!0), n($, null, S(w.header, (x, F) => B((l(), n("th", {
|
|
3462
|
+
key: F,
|
|
3463
3463
|
class: "py-3.5 pr-3 text-left font-semibold relative",
|
|
3464
3464
|
scope: "col",
|
|
3465
|
-
onMouseover: (
|
|
3466
|
-
onMouseleave: (
|
|
3465
|
+
onMouseover: (O) => d(x.name, !0),
|
|
3466
|
+
onMouseleave: (O) => d(x.name, !1)
|
|
3467
3467
|
}, [
|
|
3468
3468
|
x.tooltip ? B((l(), k(Ta, {
|
|
3469
3469
|
key: 0,
|
|
@@ -3474,7 +3474,7 @@ const hr = /* @__PURE__ */ le(mr, [["render", fr]]), yr = /* @__PURE__ */ M({
|
|
|
3474
3474
|
x.value ? (l(), n("button", {
|
|
3475
3475
|
key: 1,
|
|
3476
3476
|
class: "group flex items-center uppercase text-xs relative text-nowrap",
|
|
3477
|
-
onClick: (
|
|
3477
|
+
onClick: (O) => o("orderBy", { value: x.value, orderDirection: w.orderDirection === "asc" ? "desc" : "asc" })
|
|
3478
3478
|
}, [
|
|
3479
3479
|
e("span", null, g(x.name), 1),
|
|
3480
3480
|
e("span", {
|
|
@@ -3482,7 +3482,7 @@ const hr = /* @__PURE__ */ le(mr, [["render", fr]]), yr = /* @__PURE__ */ M({
|
|
|
3482
3482
|
x.value === w.orderedBy ? "bg-black text-white group-hover:bg-lime-400 group-hover:text-black" : "group-hover:visible group-focus:visible"
|
|
3483
3483
|
], "ml-2 flex-none rounded group-hover:bg-lime-200 group-hover:text-white"])
|
|
3484
3484
|
}, [
|
|
3485
|
-
m(
|
|
3485
|
+
m(A, {
|
|
3486
3486
|
icon: w.orderDirection === "asc" ? c(oe) : c(st),
|
|
3487
3487
|
loading: w.loading,
|
|
3488
3488
|
color: x.value === w.orderedBy ? "white" : "primary"
|
|
@@ -3492,16 +3492,16 @@ const hr = /* @__PURE__ */ le(mr, [["render", fr]]), yr = /* @__PURE__ */ M({
|
|
|
3492
3492
|
e("span", null, g(x.name), 1)
|
|
3493
3493
|
]))
|
|
3494
3494
|
], 40, qa)), [
|
|
3495
|
-
[D, j(
|
|
3495
|
+
[D, j(F)]
|
|
3496
3496
|
])), 128))
|
|
3497
3497
|
])
|
|
3498
3498
|
]),
|
|
3499
3499
|
e("tbody", Ua, [
|
|
3500
|
-
(l(!0), n($, null, S(w.items, (x,
|
|
3500
|
+
(l(!0), n($, null, S(w.items, (x, F) => (l(), n("tr", {
|
|
3501
3501
|
key: x.id,
|
|
3502
3502
|
class: y([
|
|
3503
3503
|
c(r).includes(x.id) && "bg-gray-50",
|
|
3504
|
-
|
|
3504
|
+
F % 2 == 0 ? void 0 : "bg-gray-50"
|
|
3505
3505
|
])
|
|
3506
3506
|
}, [
|
|
3507
3507
|
e("td", {
|
|
@@ -3510,7 +3510,7 @@ const hr = /* @__PURE__ */ le(mr, [["render", fr]]), yr = /* @__PURE__ */ M({
|
|
|
3510
3510
|
c(r).includes(x.id) ? (l(), n("div", Ha)) : b("", !0),
|
|
3511
3511
|
w.actions?.length > 0 ? B((l(), n("input", {
|
|
3512
3512
|
key: 1,
|
|
3513
|
-
"onUpdate:modelValue": T[0] || (T[0] = (
|
|
3513
|
+
"onUpdate:modelValue": T[0] || (T[0] = (O) => xe(r) ? r.value = O : r = O),
|
|
3514
3514
|
value: x.id,
|
|
3515
3515
|
class: "absolute left-4 top-1/2 -mt-2 h-4 w-4 rounded border-gray-300 text-black focus:ring-lime-400 flex-wrap",
|
|
3516
3516
|
type: "checkbox"
|
|
@@ -3518,31 +3518,31 @@ const hr = /* @__PURE__ */ le(mr, [["render", fr]]), yr = /* @__PURE__ */ M({
|
|
|
3518
3518
|
[Ee, c(r)]
|
|
3519
3519
|
]) : b("", !0)
|
|
3520
3520
|
], 2),
|
|
3521
|
-
(l(!0), n($, null, S(x.row, (
|
|
3521
|
+
(l(!0), n($, null, S(x.row, (O, C) => B((l(), n("td", {
|
|
3522
3522
|
key: C,
|
|
3523
3523
|
class: y([
|
|
3524
3524
|
"whitespace-nowrap py-4 pr-3 text-sm",
|
|
3525
3525
|
c(r).includes(x.id) ? "text-black font-bold" : ""
|
|
3526
3526
|
])
|
|
3527
3527
|
}, [
|
|
3528
|
-
typeof
|
|
3528
|
+
typeof O == "object" && O.type === "tag" ? (l(), k(Z, {
|
|
3529
3529
|
key: 0,
|
|
3530
3530
|
loading: w.loading,
|
|
3531
|
-
color:
|
|
3531
|
+
color: O.color
|
|
3532
3532
|
}, {
|
|
3533
3533
|
default: h(() => [
|
|
3534
|
-
|
|
3534
|
+
L(g(O.content), 1)
|
|
3535
3535
|
]),
|
|
3536
3536
|
_: 2
|
|
3537
|
-
}, 1032, ["loading", "color"])) : typeof
|
|
3537
|
+
}, 1032, ["loading", "color"])) : typeof O == "object" && O.type === "link" ? (l(), n("span", {
|
|
3538
3538
|
key: 1,
|
|
3539
3539
|
class: "text-black font-bold underline hover:text-lime-400 cursor-pointer",
|
|
3540
|
-
onClick: (q) => v(
|
|
3541
|
-
}, g(
|
|
3540
|
+
onClick: (q) => v(O)
|
|
3541
|
+
}, g(O.content), 9, Ja)) : typeof O == "object" && O.type === "href" ? (l(), n("a", {
|
|
3542
3542
|
key: 2,
|
|
3543
3543
|
class: "text-black font-bold underline hover:text-lime-400 cursor-pointer",
|
|
3544
|
-
href:
|
|
3545
|
-
}, g(
|
|
3544
|
+
href: O.href
|
|
3545
|
+
}, g(O.content), 9, Wa)) : (l(), n("span", Ga, g(O), 1))
|
|
3546
3546
|
], 2)), [
|
|
3547
3547
|
[D, j(C)]
|
|
3548
3548
|
])), 128))
|
|
@@ -3595,7 +3595,7 @@ const hr = /* @__PURE__ */ le(mr, [["render", fr]]), yr = /* @__PURE__ */ M({
|
|
|
3595
3595
|
]),
|
|
3596
3596
|
"aria-current": t.current ? "page" : void 0
|
|
3597
3597
|
}, [
|
|
3598
|
-
|
|
3598
|
+
L(g(t.name) + " ", 1),
|
|
3599
3599
|
t.count ? (l(), n("span", {
|
|
3600
3600
|
key: 0,
|
|
3601
3601
|
class: y([
|
|
@@ -3694,7 +3694,7 @@ const hr = /* @__PURE__ */ le(mr, [["render", fr]]), yr = /* @__PURE__ */ M({
|
|
|
3694
3694
|
"bg-yellow-400": t?.iconBackground === "warning"
|
|
3695
3695
|
}, "h-8 w-8 rounded-full flex items-center justify-center ring-4 ring-white"])
|
|
3696
3696
|
}, [
|
|
3697
|
-
m(
|
|
3697
|
+
m(A, {
|
|
3698
3698
|
loading: s.loading,
|
|
3699
3699
|
icon: t?.icon,
|
|
3700
3700
|
"aria-hidden": "true",
|
|
@@ -3710,7 +3710,7 @@ const hr = /* @__PURE__ */ le(mr, [["render", fr]]), yr = /* @__PURE__ */ M({
|
|
|
3710
3710
|
onClick: (d) => s.$emit("timelineEventClicked", t.linkId),
|
|
3711
3711
|
class: "font-medium text-black hover:text-lime-400 cursor-pointer"
|
|
3712
3712
|
}, g(t?.target), 9, fn),
|
|
3713
|
-
|
|
3713
|
+
L(" " + g(t?.content), 1)
|
|
3714
3714
|
])
|
|
3715
3715
|
]),
|
|
3716
3716
|
e("div", hn, [
|
|
@@ -3735,7 +3735,7 @@ const hr = /* @__PURE__ */ le(mr, [["render", fr]]), yr = /* @__PURE__ */ M({
|
|
|
3735
3735
|
}, g(s.timeline.footerText), 1)
|
|
3736
3736
|
])
|
|
3737
3737
|
])) : (l(), n("div", wn, [
|
|
3738
|
-
m(
|
|
3738
|
+
m(A, {
|
|
3739
3739
|
icon: c(W),
|
|
3740
3740
|
color: "gray",
|
|
3741
3741
|
loading: !1,
|
|
@@ -3745,7 +3745,7 @@ const hr = /* @__PURE__ */ le(mr, [["render", fr]]), yr = /* @__PURE__ */ M({
|
|
|
3745
3745
|
]))
|
|
3746
3746
|
], 2));
|
|
3747
3747
|
}
|
|
3748
|
-
}), Mn = { class: "mx-auto px-6 lg:px-8" }, jn = { class: "flex justify-between h-20" }, Dn = { class: "flex" }, Tn = { class: "-ml-2 mr-2 flex items-center lg:hidden" }, zn = ["src"], Ln = { class: "flex items-center" },
|
|
3748
|
+
}), Mn = { class: "mx-auto px-6 lg:px-8" }, jn = { class: "flex justify-between h-20" }, Dn = { class: "flex" }, Tn = { class: "-ml-2 mr-2 flex items-center lg:hidden" }, zn = ["src"], Ln = { class: "flex items-center" }, On = { class: "lg:ml-4 lg:flex-shrink-0 lg:flex lg:items-center hidden" }, An = { class: "redCircle flex items-center justify-center h-4 w-4 bg-red-500 rounded-full absolute -top-0 -left-1" }, Fn = ["src"], In = ["onClick"], Nn = { class: "pt-2 pb-3 space-y-1" }, Pn = ["onClick"], Vn = { class: "pt-4 pb-3 border-t border-gray-200" }, Yn = { class: "flex items-center px-4 sm:px-6" }, qn = { class: "flex-shrink-0" }, Rn = ["src"], En = {
|
|
3749
3749
|
key: 0,
|
|
3750
3750
|
class: "ml-3"
|
|
3751
3751
|
}, Un = { class: "text-base font-medium text-gray-800" }, Hn = { class: "text-sm font-medium text-gray-500" }, Zn = { class: "mt-3 space-y-1" }, Jn = ["onClick"], Wn = /* @__PURE__ */ M({
|
|
@@ -3799,7 +3799,7 @@ const hr = /* @__PURE__ */ le(mr, [["render", fr]]), yr = /* @__PURE__ */ M({
|
|
|
3799
3799
|
])
|
|
3800
3800
|
]),
|
|
3801
3801
|
e("div", Ln, [
|
|
3802
|
-
e("div",
|
|
3802
|
+
e("div", On, [
|
|
3803
3803
|
m(c(_e), {
|
|
3804
3804
|
as: "div",
|
|
3805
3805
|
class: "ml-3 relative"
|
|
@@ -3816,7 +3816,7 @@ const hr = /* @__PURE__ */ le(mr, [["render", fr]]), yr = /* @__PURE__ */ M({
|
|
|
3816
3816
|
e("img", {
|
|
3817
3817
|
class: "h-10 w-10 rounded-full",
|
|
3818
3818
|
src: s.accountLogo
|
|
3819
|
-
}, null, 8,
|
|
3819
|
+
}, null, 8, Fn)
|
|
3820
3820
|
]),
|
|
3821
3821
|
_: 1
|
|
3822
3822
|
}, 512), [
|
|
@@ -4031,7 +4031,7 @@ const hr = /* @__PURE__ */ le(mr, [["render", fr]]), yr = /* @__PURE__ */ M({
|
|
|
4031
4031
|
[D, !f.empty]
|
|
4032
4032
|
]),
|
|
4033
4033
|
B(e("div", ti, [
|
|
4034
|
-
m(
|
|
4034
|
+
m(A, {
|
|
4035
4035
|
icon: c(W),
|
|
4036
4036
|
color: "gray",
|
|
4037
4037
|
loading: !1,
|
|
@@ -4087,7 +4087,7 @@ const hr = /* @__PURE__ */ le(mr, [["render", fr]]), yr = /* @__PURE__ */ M({
|
|
|
4087
4087
|
emits: ["action", "noResultsOptionSelected"],
|
|
4088
4088
|
setup(p) {
|
|
4089
4089
|
return (u, r) => (l(), n("div", oi, [
|
|
4090
|
-
m(
|
|
4090
|
+
m(A, {
|
|
4091
4091
|
class: "mx-auto",
|
|
4092
4092
|
loading: !1,
|
|
4093
4093
|
icon: c(W),
|
|
@@ -4104,7 +4104,7 @@ const hr = /* @__PURE__ */ le(mr, [["render", fr]]), yr = /* @__PURE__ */ M({
|
|
|
4104
4104
|
onClick: (o) => u.$emit("action", i.action)
|
|
4105
4105
|
}, {
|
|
4106
4106
|
default: h(() => [
|
|
4107
|
-
|
|
4107
|
+
L(g(i.text), 1)
|
|
4108
4108
|
]),
|
|
4109
4109
|
_: 2
|
|
4110
4110
|
}, 1032, ["onClick"]))), 128)),
|
|
@@ -4159,7 +4159,7 @@ const hr = /* @__PURE__ */ le(mr, [["render", fr]]), yr = /* @__PURE__ */ M({
|
|
|
4159
4159
|
e("div", fi, [
|
|
4160
4160
|
m(c(Qe), { class: "text-base font-semibold leading-6" }, {
|
|
4161
4161
|
default: h(() => [
|
|
4162
|
-
|
|
4162
|
+
L(g(r.title), 1)
|
|
4163
4163
|
]),
|
|
4164
4164
|
_: 1
|
|
4165
4165
|
}),
|
|
@@ -4221,7 +4221,7 @@ const hr = /* @__PURE__ */ le(mr, [["render", fr]]), yr = /* @__PURE__ */ M({
|
|
|
4221
4221
|
},
|
|
4222
4222
|
emits: ["modalAction", "deleteImage", "imgClicked"],
|
|
4223
4223
|
setup(p, { emit: u }) {
|
|
4224
|
-
const r = u, i =
|
|
4224
|
+
const r = u, i = I(!1), s = (o) => {
|
|
4225
4225
|
i.value = !1, r("modalAction", o);
|
|
4226
4226
|
};
|
|
4227
4227
|
return (o, t) => (l(), n("div", ki, [
|
|
@@ -4265,7 +4265,7 @@ const hr = /* @__PURE__ */ le(mr, [["render", fr]]), yr = /* @__PURE__ */ M({
|
|
|
4265
4265
|
e("p", Si, g(a.title), 1),
|
|
4266
4266
|
e("div", Bi, [
|
|
4267
4267
|
e("p", Mi, g(a.size), 1),
|
|
4268
|
-
m(
|
|
4268
|
+
m(A, {
|
|
4269
4269
|
class: "cursor-pointer",
|
|
4270
4270
|
icon: c(pe),
|
|
4271
4271
|
color: "red",
|
|
@@ -4284,13 +4284,13 @@ const hr = /* @__PURE__ */ le(mr, [["render", fr]]), yr = /* @__PURE__ */ M({
|
|
|
4284
4284
|
size: "small"
|
|
4285
4285
|
}, {
|
|
4286
4286
|
default: h(() => [
|
|
4287
|
-
|
|
4287
|
+
L(g(o.literals.deleteAllImages), 1)
|
|
4288
4288
|
]),
|
|
4289
4289
|
_: 1
|
|
4290
4290
|
})) : b("", !0)
|
|
4291
4291
|
]));
|
|
4292
4292
|
}
|
|
4293
|
-
}), Ti = { 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" }, zi = { class: "flex flex-row items-center w-full" }, Li = { class: "content text-sm grow" },
|
|
4293
|
+
}), Ti = { 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" }, zi = { class: "flex flex-row items-center w-full" }, Li = { class: "content text-sm grow" }, Oi = { class: "font-bold" }, Ai = { key: 0 }, Fi = { class: "font-bold text-gray-400" }, Ii = {
|
|
4294
4294
|
key: 1,
|
|
4295
4295
|
class: "animate-pulse"
|
|
4296
4296
|
}, Ni = /* @__PURE__ */ M({
|
|
@@ -4302,7 +4302,7 @@ const hr = /* @__PURE__ */ le(mr, [["render", fr]]), yr = /* @__PURE__ */ M({
|
|
|
4302
4302
|
emits: ["dragAndDropUpdated"],
|
|
4303
4303
|
setup(p, { emit: u }) {
|
|
4304
4304
|
const r = u, i = p;
|
|
4305
|
-
let s =
|
|
4305
|
+
let s = I(i.elements);
|
|
4306
4306
|
H(() => i.elements, (t) => {
|
|
4307
4307
|
s.value = t;
|
|
4308
4308
|
});
|
|
@@ -4322,7 +4322,7 @@ const hr = /* @__PURE__ */ le(mr, [["render", fr]]), yr = /* @__PURE__ */ M({
|
|
|
4322
4322
|
item: h(({ item: d }) => [
|
|
4323
4323
|
e("div", Ti, [
|
|
4324
4324
|
e("div", zi, [
|
|
4325
|
-
m(
|
|
4325
|
+
m(A, {
|
|
4326
4326
|
icon: c(Vt),
|
|
4327
4327
|
loading: !1,
|
|
4328
4328
|
color: "gray",
|
|
@@ -4330,10 +4330,10 @@ const hr = /* @__PURE__ */ le(mr, [["render", fr]]), yr = /* @__PURE__ */ M({
|
|
|
4330
4330
|
size: "big"
|
|
4331
4331
|
}, null, 8, ["icon"]),
|
|
4332
4332
|
e("div", Li, [
|
|
4333
|
-
e("p",
|
|
4333
|
+
e("p", Oi, g(d.name), 1),
|
|
4334
4334
|
d.description ? (l(), n("p", Ai, g(d.description), 1)) : b("", !0)
|
|
4335
4335
|
]),
|
|
4336
|
-
e("div",
|
|
4336
|
+
e("div", Fi, g(c(s).indexOf(d) + 1), 1)
|
|
4337
4337
|
])
|
|
4338
4338
|
])
|
|
4339
4339
|
]),
|
|
@@ -4362,7 +4362,7 @@ const hr = /* @__PURE__ */ le(mr, [["render", fr]]), yr = /* @__PURE__ */ M({
|
|
|
4362
4362
|
},
|
|
4363
4363
|
emits: ["selectedRange", "chartUpdated", "dataPointSelection", "maximizeChart"],
|
|
4364
4364
|
setup(p, { emit: u }) {
|
|
4365
|
-
const r = u, i = p, s =
|
|
4365
|
+
const r = u, i = p, s = I((/* @__PURE__ */ new Date()).toISOString().slice(0, (/* @__PURE__ */ new Date()).toISOString().lastIndexOf(":")));
|
|
4366
4366
|
let o = ae(i.dates || { from: "", to: s });
|
|
4367
4367
|
H(() => i.dates, (T) => {
|
|
4368
4368
|
T && (o = T);
|
|
@@ -4399,8 +4399,8 @@ const hr = /* @__PURE__ */ le(mr, [["render", fr]]), yr = /* @__PURE__ */ M({
|
|
|
4399
4399
|
}
|
|
4400
4400
|
}
|
|
4401
4401
|
};
|
|
4402
|
-
const a = () => ({ ...t, ...i.options }), d = Y(() => i.series), f = Y(() => a()), v = () => r("chartUpdated"), j = (T, x,
|
|
4403
|
-
r("dataPointSelection", { id: i.id, chartContext: x, config:
|
|
4402
|
+
const a = () => ({ ...t, ...i.options }), d = Y(() => i.series), f = Y(() => a()), v = () => r("chartUpdated"), j = (T, x, F) => {
|
|
4403
|
+
r("dataPointSelection", { id: i.id, chartContext: x, config: F, event: T });
|
|
4404
4404
|
}, w = () => {
|
|
4405
4405
|
o.from !== "" && o.to !== "" && V(o.from).isBefore(V(o.to)) && r("selectedRange", { range: o, chartId: i.id });
|
|
4406
4406
|
};
|
|
@@ -4414,7 +4414,7 @@ const hr = /* @__PURE__ */ le(mr, [["render", fr]]), yr = /* @__PURE__ */ M({
|
|
|
4414
4414
|
e("div", qi, [
|
|
4415
4415
|
B(e("input", {
|
|
4416
4416
|
type: "datetime-local",
|
|
4417
|
-
"onUpdate:modelValue": x[0] || (x[0] = (
|
|
4417
|
+
"onUpdate:modelValue": x[0] || (x[0] = (F) => c(o).from = F),
|
|
4418
4418
|
max: s.value.toString(),
|
|
4419
4419
|
onChange: w,
|
|
4420
4420
|
name: "from",
|
|
@@ -4427,7 +4427,7 @@ const hr = /* @__PURE__ */ le(mr, [["render", fr]]), yr = /* @__PURE__ */ M({
|
|
|
4427
4427
|
e("div", Ei, [
|
|
4428
4428
|
B(e("input", {
|
|
4429
4429
|
type: "datetime-local",
|
|
4430
|
-
"onUpdate:modelValue": x[1] || (x[1] = (
|
|
4430
|
+
"onUpdate:modelValue": x[1] || (x[1] = (F) => c(o).to = F),
|
|
4431
4431
|
max: s.value.toString(),
|
|
4432
4432
|
onChange: w,
|
|
4433
4433
|
name: "to",
|
|
@@ -4437,12 +4437,12 @@ const hr = /* @__PURE__ */ le(mr, [["render", fr]]), yr = /* @__PURE__ */ M({
|
|
|
4437
4437
|
[se, c(o).to]
|
|
4438
4438
|
])
|
|
4439
4439
|
]),
|
|
4440
|
-
m(
|
|
4440
|
+
m(A, {
|
|
4441
4441
|
class: "ml-4 cursor-pointer",
|
|
4442
4442
|
size: "big",
|
|
4443
4443
|
loading: T.loading,
|
|
4444
4444
|
icon: c(Xe),
|
|
4445
|
-
onClick: x[2] || (x[2] = (
|
|
4445
|
+
onClick: x[2] || (x[2] = (F) => T.$emit("maximizeChart", T.id))
|
|
4446
4446
|
}, null, 8, ["loading", "icon"])
|
|
4447
4447
|
])
|
|
4448
4448
|
]),
|
|
@@ -4461,7 +4461,7 @@ const hr = /* @__PURE__ */ le(mr, [["render", fr]]), yr = /* @__PURE__ */ M({
|
|
|
4461
4461
|
[D, !T.empty]
|
|
4462
4462
|
]),
|
|
4463
4463
|
B(e("div", Zi, [
|
|
4464
|
-
m(
|
|
4464
|
+
m(A, {
|
|
4465
4465
|
icon: c(W),
|
|
4466
4466
|
color: "gray",
|
|
4467
4467
|
loading: !1,
|
|
@@ -4526,7 +4526,7 @@ const hr = /* @__PURE__ */ le(mr, [["render", fr]]), yr = /* @__PURE__ */ M({
|
|
|
4526
4526
|
},
|
|
4527
4527
|
emits: ["uiDateRangeButtonClicked"],
|
|
4528
4528
|
setup(p, { emit: u }) {
|
|
4529
|
-
const r = p, i =
|
|
4529
|
+
const r = p, i = I((/* @__PURE__ */ new Date()).toISOString().slice(0, (/* @__PURE__ */ new Date()).toISOString().lastIndexOf(":")));
|
|
4530
4530
|
let s = ae(r.values || { from: "", to: i });
|
|
4531
4531
|
const o = u;
|
|
4532
4532
|
H(() => r.values, (a) => {
|
|
@@ -4546,7 +4546,7 @@ const hr = /* @__PURE__ */ le(mr, [["render", fr]]), yr = /* @__PURE__ */ M({
|
|
|
4546
4546
|
}),
|
|
4547
4547
|
m(U, { loading: !0 }, {
|
|
4548
4548
|
default: h(() => d[2] || (d[2] = [
|
|
4549
|
-
|
|
4549
|
+
L("Search")
|
|
4550
4550
|
])),
|
|
4551
4551
|
_: 1,
|
|
4552
4552
|
__: [2]
|
|
@@ -4587,7 +4587,7 @@ const hr = /* @__PURE__ */ le(mr, [["render", fr]]), yr = /* @__PURE__ */ M({
|
|
|
4587
4587
|
onClick: t
|
|
4588
4588
|
}, {
|
|
4589
4589
|
default: h(() => [
|
|
4590
|
-
|
|
4590
|
+
L(g(a.literals.search), 1)
|
|
4591
4591
|
]),
|
|
4592
4592
|
_: 1
|
|
4593
4593
|
}, 8, ["disabled", "class"])
|
|
@@ -4616,7 +4616,7 @@ const hr = /* @__PURE__ */ le(mr, [["render", fr]]), yr = /* @__PURE__ */ M({
|
|
|
4616
4616
|
},
|
|
4617
4617
|
emits: ["sliderUpdated"],
|
|
4618
4618
|
setup(p, { emit: u }) {
|
|
4619
|
-
const r = u, s =
|
|
4619
|
+
const r = u, s = I(p.sliderValue);
|
|
4620
4620
|
return (o, t) => (l(), n("div", null, [
|
|
4621
4621
|
e("div", Xi, [
|
|
4622
4622
|
o.label ? (l(), n("label", ed, g(o.label), 1)) : b("", !0),
|
|
@@ -4677,7 +4677,7 @@ const hr = /* @__PURE__ */ le(mr, [["render", fr]]), yr = /* @__PURE__ */ M({
|
|
|
4677
4677
|
return (r, i) => r.loading ? (l(), n("div", cd, [
|
|
4678
4678
|
e("div", gd, [
|
|
4679
4679
|
e("div", md, [
|
|
4680
|
-
m(
|
|
4680
|
+
m(A, {
|
|
4681
4681
|
icon: r.icon,
|
|
4682
4682
|
size: "huge",
|
|
4683
4683
|
class: "text-white",
|
|
@@ -4696,7 +4696,7 @@ const hr = /* @__PURE__ */ le(mr, [["render", fr]]), yr = /* @__PURE__ */ M({
|
|
|
4696
4696
|
onTagEvent: i[2] || (i[2] = (t) => r.$emit("deviceStatusTagClicked", t))
|
|
4697
4697
|
}, {
|
|
4698
4698
|
default: h(() => [
|
|
4699
|
-
|
|
4699
|
+
L(g(s.name), 1)
|
|
4700
4700
|
]),
|
|
4701
4701
|
_: 2
|
|
4702
4702
|
}, 1032, ["loading", "event", "color"]))), 128))
|
|
@@ -4714,7 +4714,7 @@ const hr = /* @__PURE__ */ le(mr, [["render", fr]]), yr = /* @__PURE__ */ M({
|
|
|
4714
4714
|
"bg-gray-100": r.color === "light"
|
|
4715
4715
|
}])
|
|
4716
4716
|
}, [
|
|
4717
|
-
m(
|
|
4717
|
+
m(A, {
|
|
4718
4718
|
icon: r.icon,
|
|
4719
4719
|
size: "huge",
|
|
4720
4720
|
color: "black",
|
|
@@ -4723,7 +4723,7 @@ const hr = /* @__PURE__ */ le(mr, [["render", fr]]), yr = /* @__PURE__ */ M({
|
|
|
4723
4723
|
}, null, 8, ["icon"])
|
|
4724
4724
|
], 2),
|
|
4725
4725
|
e("h3", id, [
|
|
4726
|
-
|
|
4726
|
+
L(g(r.name) + " ", 1),
|
|
4727
4727
|
B(e("span", {
|
|
4728
4728
|
class: "text-black hover:text-lime-400 underline cursor-pointer",
|
|
4729
4729
|
onClick: i[0] || (i[0] = (s) => r.$emit("deviceStatusQtyClicked", r.id))
|
|
@@ -4741,7 +4741,7 @@ const hr = /* @__PURE__ */ le(mr, [["render", fr]]), yr = /* @__PURE__ */ M({
|
|
|
4741
4741
|
onTagEvent: i[1] || (i[1] = (t) => r.$emit("deviceStatusTagClicked", t))
|
|
4742
4742
|
}, {
|
|
4743
4743
|
default: h(() => [
|
|
4744
|
-
|
|
4744
|
+
L(g(s.name), 1)
|
|
4745
4745
|
]),
|
|
4746
4746
|
_: 2
|
|
4747
4747
|
}, 1032, ["event", "color"]))), 128))
|
|
@@ -4759,7 +4759,7 @@ const hr = /* @__PURE__ */ le(mr, [["render", fr]]), yr = /* @__PURE__ */ M({
|
|
|
4759
4759
|
},
|
|
4760
4760
|
emits: ["productBarClick", "sideBarClick", "selectChanged", "topBarClick", "checkboxChanged", "inputChanged", "sidebarToggle", "bellClick"],
|
|
4761
4761
|
setup(p, { emit: u }) {
|
|
4762
|
-
const r = p, i = u, s =
|
|
4762
|
+
const r = p, i = u, s = I(r.sidebarOpen), o = () => {
|
|
4763
4763
|
s.value = !s.value, i("sidebarToggle", s.value);
|
|
4764
4764
|
};
|
|
4765
4765
|
return (t, a) => (l(), n("div", null, [
|
|
@@ -4984,7 +4984,7 @@ const hr = /* @__PURE__ */ le(mr, [["render", fr]]), yr = /* @__PURE__ */ M({
|
|
|
4984
4984
|
loading: { type: Boolean, default: !0 }
|
|
4985
4985
|
},
|
|
4986
4986
|
setup(p) {
|
|
4987
|
-
const u = p, r = () => u.dynamicStats.length <= 5 ? `lg:grid-cols-${u.dynamicStats.length}` : `lg:grid-cols-${Math.floor(u.dynamicStats.length / 2)} xl:grid-cols-${u.dynamicStats.length}`, i =
|
|
4987
|
+
const u = p, r = () => u.dynamicStats.length <= 5 ? `lg:grid-cols-${u.dynamicStats.length}` : `lg:grid-cols-${Math.floor(u.dynamicStats.length / 2)} xl:grid-cols-${u.dynamicStats.length}`, i = I(0), s = I(r());
|
|
4988
4988
|
return mt(() => i.value += 1), (o, t) => (l(), n("div", {
|
|
4989
4989
|
class: y([s.value, "grid grid-cols-1 md:grid-cols-2 gap-4"]),
|
|
4990
4990
|
key: i.value
|
|
@@ -4999,7 +4999,7 @@ const hr = /* @__PURE__ */ le(mr, [["render", fr]]), yr = /* @__PURE__ */ M({
|
|
|
4999
4999
|
}), zd = { class: "flex justify-between" }, Ld = {
|
|
5000
5000
|
key: 0,
|
|
5001
5001
|
class: "text-[10px] uppercase justify-self-end place-self-center"
|
|
5002
|
-
},
|
|
5002
|
+
}, Od = { class: "relative" }, Ad = { class: "block flex flex-wrap gap-2" }, Fd = {
|
|
5003
5003
|
key: 0,
|
|
5004
5004
|
class: "p-0.5"
|
|
5005
5005
|
}, Id = ["onClick"], Nd = { class: "absolute mt-1 w-full rounded-md bg-white shadow-lg z-50" }, Pd = {
|
|
@@ -5022,7 +5022,7 @@ const hr = /* @__PURE__ */ le(mr, [["render", fr]]), yr = /* @__PURE__ */ M({
|
|
|
5022
5022
|
emits: ["selectChanged"],
|
|
5023
5023
|
setup(p, { emit: u }) {
|
|
5024
5024
|
const r = u, i = p;
|
|
5025
|
-
let s =
|
|
5025
|
+
let s = I(Array.isArray(i.select) ? i.select : i.select ? [i.select] : []);
|
|
5026
5026
|
const o = (a) => {
|
|
5027
5027
|
r("selectChanged", a);
|
|
5028
5028
|
};
|
|
@@ -5051,13 +5051,13 @@ const hr = /* @__PURE__ */ le(mr, [["render", fr]]), yr = /* @__PURE__ */ M({
|
|
|
5051
5051
|
e("div", zd, [
|
|
5052
5052
|
m(c(bt), { class: "block text-sm font-medium" }, {
|
|
5053
5053
|
default: h(() => [
|
|
5054
|
-
|
|
5054
|
+
L(g(a.label), 1)
|
|
5055
5055
|
]),
|
|
5056
5056
|
_: 1
|
|
5057
5057
|
}),
|
|
5058
5058
|
a.requiredText ? (l(), n("span", Ld, g(a.requiredText), 1)) : b("", !0)
|
|
5059
5059
|
]),
|
|
5060
|
-
e("div",
|
|
5060
|
+
e("div", Od, [
|
|
5061
5061
|
m(c(wt), {
|
|
5062
5062
|
class: y([{
|
|
5063
5063
|
"mt-1": a.requiredText || a.label,
|
|
@@ -5077,7 +5077,7 @@ const hr = /* @__PURE__ */ le(mr, [["render", fr]]), yr = /* @__PURE__ */ M({
|
|
|
5077
5077
|
}, {
|
|
5078
5078
|
default: h(() => [
|
|
5079
5079
|
e("span", Ad, [
|
|
5080
|
-
c(s).length === 0 ? (l(), n("span",
|
|
5080
|
+
c(s).length === 0 ? (l(), n("span", Fd, "...")) : b("", !0),
|
|
5081
5081
|
(l(!0), n($, null, S(c(s), (f) => (l(), n("span", {
|
|
5082
5082
|
key: f.id,
|
|
5083
5083
|
class: "flex items-center gap-1 rounded text-xs font-medium bg-lime-400 text-black border border-lime-200 px-2 py-0.5"
|
|
@@ -5185,7 +5185,7 @@ const hr = /* @__PURE__ */ le(mr, [["render", fr]]), yr = /* @__PURE__ */ M({
|
|
|
5185
5185
|
},
|
|
5186
5186
|
emits: ["smartFilterSelected", "smartInputChanged", "smartSelectChanged", "smartOptionSelected", "rightAddOnClicked"],
|
|
5187
5187
|
setup(p, { emit: u }) {
|
|
5188
|
-
const r = p, i = u, s = pt(J), o =
|
|
5188
|
+
const r = p, i = u, s = pt(J), o = I(r.items[0].props), t = (a) => {
|
|
5189
5189
|
switch (a.type) {
|
|
5190
5190
|
case "uiInput":
|
|
5191
5191
|
s.value = J, i("smartFilterSelected", a.value);
|
|
@@ -5222,7 +5222,7 @@ const hr = /* @__PURE__ */ le(mr, [["render", fr]]), yr = /* @__PURE__ */ M({
|
|
|
5222
5222
|
loading: a.loading
|
|
5223
5223
|
}, {
|
|
5224
5224
|
default: h(() => [
|
|
5225
|
-
|
|
5225
|
+
L(g(a.buttonLiteral), 1)
|
|
5226
5226
|
]),
|
|
5227
5227
|
_: 1
|
|
5228
5228
|
}, 8, ["loading"])) : b("", !0)
|
|
@@ -5244,7 +5244,7 @@ const Ye = /* @__PURE__ */ le(Yd, [["render", Rd]]), Ed = { class: "flex flex-co
|
|
|
5244
5244
|
},
|
|
5245
5245
|
emits: ["smartFilterMultipleSent", "smartFilterSelected", "smartInputChanged", "smartSelectChanged", "smartOptionSelected", "rightAddOnClicked"],
|
|
5246
5246
|
setup(p, { emit: u }) {
|
|
5247
|
-
const r = p, i = u, s =
|
|
5247
|
+
const r = p, i = u, s = I([JSON.parse(JSON.stringify(r))]), o = I([{ name: r.items[0].name, value: null }]), t = () => {
|
|
5248
5248
|
s.value.push(JSON.parse(JSON.stringify(r))), o.value.push({ name: r.items[0].name, value: null });
|
|
5249
5249
|
}, a = () => {
|
|
5250
5250
|
o.value.pop(), s.value.pop();
|
|
@@ -5274,7 +5274,7 @@ const Ye = /* @__PURE__ */ le(Yd, [["render", Rd]]), Ed = { class: "flex flex-co
|
|
|
5274
5274
|
onClick: t
|
|
5275
5275
|
}, {
|
|
5276
5276
|
default: h(() => [
|
|
5277
|
-
|
|
5277
|
+
L(g(v.addLiteral), 1)
|
|
5278
5278
|
]),
|
|
5279
5279
|
_: 1
|
|
5280
5280
|
}, 8, ["icon"])) : b("", !0)
|
|
@@ -5303,7 +5303,7 @@ const Ye = /* @__PURE__ */ le(Yd, [["render", Rd]]), Ed = { class: "flex flex-co
|
|
|
5303
5303
|
onClick: a
|
|
5304
5304
|
}, {
|
|
5305
5305
|
default: h(() => [
|
|
5306
|
-
|
|
5306
|
+
L(g(v.removeLiteral), 1)
|
|
5307
5307
|
]),
|
|
5308
5308
|
_: 1
|
|
5309
5309
|
}, 8, ["icon"])) : b("", !0),
|
|
@@ -5315,7 +5315,7 @@ const Ye = /* @__PURE__ */ le(Yd, [["render", Rd]]), Ed = { class: "flex flex-co
|
|
|
5315
5315
|
onClick: t
|
|
5316
5316
|
}, {
|
|
5317
5317
|
default: h(() => [
|
|
5318
|
-
|
|
5318
|
+
L(g(v.addLiteral), 1)
|
|
5319
5319
|
]),
|
|
5320
5320
|
_: 1
|
|
5321
5321
|
}, 8, ["icon"])) : b("", !0)
|
|
@@ -5327,7 +5327,7 @@ const Ye = /* @__PURE__ */ le(Yd, [["render", Rd]]), Ed = { class: "flex flex-co
|
|
|
5327
5327
|
color: "secondary"
|
|
5328
5328
|
}, {
|
|
5329
5329
|
default: h(() => [
|
|
5330
|
-
|
|
5330
|
+
L(g(v.buttonLiteral), 1)
|
|
5331
5331
|
]),
|
|
5332
5332
|
_: 1
|
|
5333
5333
|
}),
|
|
@@ -5338,7 +5338,7 @@ const Ye = /* @__PURE__ */ le(Yd, [["render", Rd]]), Ed = { class: "flex flex-co
|
|
|
5338
5338
|
onClick: f
|
|
5339
5339
|
}, {
|
|
5340
5340
|
default: h(() => [
|
|
5341
|
-
|
|
5341
|
+
L(g(v.removeLiteral), 1)
|
|
5342
5342
|
]),
|
|
5343
5343
|
_: 1
|
|
5344
5344
|
})
|
|
@@ -5365,26 +5365,26 @@ const Ye = /* @__PURE__ */ le(Yd, [["render", Rd]]), Ed = { class: "flex flex-co
|
|
|
5365
5365
|
},
|
|
5366
5366
|
emits: ["smartFiltersSent"],
|
|
5367
5367
|
setup(p, { emit: u }) {
|
|
5368
|
-
const r = p, i = u, s =
|
|
5368
|
+
const r = p, i = u, s = I({ id: "1", name: r.literals.and }), o = I({
|
|
5369
5369
|
id: "1",
|
|
5370
5370
|
name: "Nombre",
|
|
5371
5371
|
componentType: "uiInput",
|
|
5372
5372
|
defaultProps: { name: "nombre", value: "" }
|
|
5373
5373
|
}), t = ae([]), a = (_) => _ ? _ === "uiInput" ? r.literals.contains : r.literals.is : "", d = (_) => {
|
|
5374
|
-
t.splice(0, t.length), _.logicOperator === r.literals.and ? s.value = { id: "1", name: r.literals.and } : _.logicOperator === r.literals.or && (s.value = { id: "2", name: r.literals.or }), _.filters.forEach((
|
|
5375
|
-
const
|
|
5376
|
-
if (
|
|
5374
|
+
t.splice(0, t.length), _.logicOperator === "and" || _.logicOperator === r.literals.and ? s.value = { id: "1", name: r.literals.and } : (_.logicOperator === "or" || _.logicOperator === r.literals.or) && (s.value = { id: "2", name: r.literals.or }), _.filters.forEach((P) => {
|
|
5375
|
+
const z = r.availableCategories.find((R) => R.name === P.category);
|
|
5376
|
+
if (z) {
|
|
5377
5377
|
const R = {
|
|
5378
5378
|
id: Date.now().toString() + Math.random().toString(36).substr(2, 9),
|
|
5379
|
-
name:
|
|
5380
|
-
type:
|
|
5381
|
-
props: { ...
|
|
5379
|
+
name: P.category,
|
|
5380
|
+
type: P.type,
|
|
5381
|
+
props: { ...z.defaultProps }
|
|
5382
5382
|
};
|
|
5383
|
-
if (
|
|
5384
|
-
R.props.value =
|
|
5385
|
-
else if (
|
|
5386
|
-
const G =
|
|
5387
|
-
G ? R.props.select = G :
|
|
5383
|
+
if (P.type === "uiInput")
|
|
5384
|
+
R.props.value = P.value || "";
|
|
5385
|
+
else if (P.type === "uiSelect") {
|
|
5386
|
+
const G = z.defaultProps.items?.find((ut) => ut.name === P.value);
|
|
5387
|
+
G ? R.props.select = G : z.defaultProps.items && z.defaultProps.items.length > 0 && (R.props.select = z.defaultProps.items[0]);
|
|
5388
5388
|
}
|
|
5389
5389
|
t.push(R);
|
|
5390
5390
|
}
|
|
@@ -5393,7 +5393,7 @@ const Ye = /* @__PURE__ */ le(Yd, [["render", Rd]]), Ed = { class: "flex flex-co
|
|
|
5393
5393
|
H(() => r.literals, (_) => {
|
|
5394
5394
|
s.value.id === "1" ? s.value.name = _.and : s.value.id === "2" && (s.value.name = _.or);
|
|
5395
5395
|
}, { deep: !0 }), H(() => r.availableCategories, (_) => {
|
|
5396
|
-
_.length > 0 && (_.some((
|
|
5396
|
+
_.length > 0 && (_.some((z) => z.id === o.value.id) || (o.value = _[0]));
|
|
5397
5397
|
}, { deep: !0 }), H(() => r.filters, (_) => {
|
|
5398
5398
|
_ && d(_);
|
|
5399
5399
|
}, { deep: !0, immediate: !0 });
|
|
@@ -5421,9 +5421,9 @@ const Ye = /* @__PURE__ */ le(Yd, [["render", Rd]]), Ed = { class: "flex flex-co
|
|
|
5421
5421
|
})), T = (_) => {
|
|
5422
5422
|
s.value = Array.isArray(_) ? _[0] || { id: "1", name: r.literals.and } : _;
|
|
5423
5423
|
}, x = (_) => {
|
|
5424
|
-
const
|
|
5425
|
-
|
|
5426
|
-
},
|
|
5424
|
+
const P = Array.isArray(_) ? _[0] : _, z = r.availableCategories.find((R) => R.id === P.id);
|
|
5425
|
+
z && (o.value = z);
|
|
5426
|
+
}, F = () => {
|
|
5427
5427
|
if (!o.value) return;
|
|
5428
5428
|
const _ = {
|
|
5429
5429
|
id: Date.now().toString(),
|
|
@@ -5432,32 +5432,32 @@ const Ye = /* @__PURE__ */ le(Yd, [["render", Rd]]), Ed = { class: "flex flex-co
|
|
|
5432
5432
|
props: { ...o.value.defaultProps }
|
|
5433
5433
|
};
|
|
5434
5434
|
t.push(_);
|
|
5435
|
-
},
|
|
5435
|
+
}, O = (_, P) => {
|
|
5436
5436
|
if (_ < 0 || _ >= t.length) return;
|
|
5437
|
-
const
|
|
5438
|
-
|
|
5437
|
+
const z = t[_];
|
|
5438
|
+
z.type === "uiInput" ? typeof P == "string" && (z.props.value = P) : z.type === "uiSelect" && (Array.isArray(P) ? z.props.select = P[0] : typeof P == "object" && P !== null && (z.props.select = P));
|
|
5439
5439
|
}, C = (_) => {
|
|
5440
5440
|
_ >= 0 && _ < t.length && t.splice(_, 1);
|
|
5441
5441
|
}, q = () => {
|
|
5442
5442
|
t.splice(0, t.length);
|
|
5443
|
-
},
|
|
5444
|
-
const
|
|
5445
|
-
logicOperator: s.value.
|
|
5446
|
-
filters: t.map((
|
|
5447
|
-
category:
|
|
5448
|
-
type:
|
|
5449
|
-
value:
|
|
5443
|
+
}, N = () => {
|
|
5444
|
+
const P = {
|
|
5445
|
+
logicOperator: s.value.id === "1" ? "and" : "or",
|
|
5446
|
+
filters: t.map((z) => ({
|
|
5447
|
+
category: z.name,
|
|
5448
|
+
type: z.type,
|
|
5449
|
+
value: z.type === "uiInput" ? z.props.value : z.props.select?.name
|
|
5450
5450
|
}))
|
|
5451
5451
|
};
|
|
5452
|
-
i("smartFiltersSent",
|
|
5452
|
+
i("smartFiltersSent", P);
|
|
5453
5453
|
};
|
|
5454
|
-
return (_,
|
|
5454
|
+
return (_, P) => (l(), k(c(_t), { class: "relative" }, {
|
|
5455
5455
|
default: h(() => [
|
|
5456
5456
|
m(c($t), { class: "inline-flex items-center gap-x-2 text-sm/6 font-semibold text-gray-900 outline-none" }, {
|
|
5457
5457
|
default: h(() => [
|
|
5458
5458
|
e("span", null, g(r.literals.filters) + ": ", 1),
|
|
5459
|
-
(l(!0), n($, null, S(w.value, (
|
|
5460
|
-
e("span", Zd, g(
|
|
5459
|
+
(l(!0), n($, null, S(w.value, (z, R) => (l(), n($, { key: R }, [
|
|
5460
|
+
e("span", Zd, g(z.name) + " " + g(z.operator) + ": " + g(z.value), 1),
|
|
5461
5461
|
R < w.value.length - 1 ? (l(), n("span", Jd, g(s.value.name), 1)) : b("", !0)
|
|
5462
5462
|
], 64))), 128)),
|
|
5463
5463
|
m(c(oe), {
|
|
@@ -5490,45 +5490,45 @@ const Ye = /* @__PURE__ */ le(Yd, [["render", Rd]]), Ed = { class: "flex flex-co
|
|
|
5490
5490
|
}, null, 8, ["items", "select"]),
|
|
5491
5491
|
m(U, {
|
|
5492
5492
|
loading: !1,
|
|
5493
|
-
onClick:
|
|
5493
|
+
onClick: F,
|
|
5494
5494
|
disabled: !o.value
|
|
5495
5495
|
}, {
|
|
5496
|
-
default: h(() =>
|
|
5497
|
-
|
|
5496
|
+
default: h(() => P[0] || (P[0] = [
|
|
5497
|
+
L(" Agregar Filtro ")
|
|
5498
5498
|
])),
|
|
5499
5499
|
_: 1,
|
|
5500
5500
|
__: [0]
|
|
5501
5501
|
}, 8, ["disabled"])
|
|
5502
5502
|
]),
|
|
5503
|
-
(l(!0), n($, null, S(t, (
|
|
5503
|
+
(l(!0), n($, null, S(t, (z, R) => (l(), n("div", {
|
|
5504
5504
|
class: "flex items-center gap-x-2 w-full",
|
|
5505
|
-
key:
|
|
5505
|
+
key: z.id
|
|
5506
5506
|
}, [
|
|
5507
|
-
e("div", Kd, g(
|
|
5507
|
+
e("div", Kd, g(z.name), 1),
|
|
5508
5508
|
m(Z, {
|
|
5509
5509
|
loading: !1,
|
|
5510
5510
|
size: "big",
|
|
5511
5511
|
color: "gray"
|
|
5512
5512
|
}, {
|
|
5513
5513
|
default: h(() => [
|
|
5514
|
-
|
|
5514
|
+
L(g(a(z.type)), 1)
|
|
5515
5515
|
]),
|
|
5516
5516
|
_: 2
|
|
5517
5517
|
}, 1024),
|
|
5518
|
-
|
|
5518
|
+
z.type === "uiSelect" ? (l(), k(ee, {
|
|
5519
5519
|
key: 0,
|
|
5520
5520
|
class: "grow",
|
|
5521
5521
|
loading: !1,
|
|
5522
|
-
items:
|
|
5523
|
-
select:
|
|
5524
|
-
onSelectChanged: (G) =>
|
|
5525
|
-
}, null, 8, ["items", "select", "onSelectChanged"])) :
|
|
5522
|
+
items: z.props.items || [],
|
|
5523
|
+
select: z.props.select || z.props.items?.[0] || { id: "0", name: "Select..." },
|
|
5524
|
+
onSelectChanged: (G) => O(R, G)
|
|
5525
|
+
}, null, 8, ["items", "select", "onSelectChanged"])) : z.type === "uiInput" ? (l(), k(J, {
|
|
5526
5526
|
key: 1,
|
|
5527
5527
|
class: "grow",
|
|
5528
5528
|
loading: !1,
|
|
5529
|
-
name:
|
|
5530
|
-
value:
|
|
5531
|
-
onInput: (G) =>
|
|
5529
|
+
name: z.props.name || "",
|
|
5530
|
+
value: z.props.value || "",
|
|
5531
|
+
onInput: (G) => O(R, G.target.value)
|
|
5532
5532
|
}, null, 8, ["name", "value", "onInput"])) : b("", !0),
|
|
5533
5533
|
R === 0 ? (l(), k(ee, {
|
|
5534
5534
|
key: 2,
|
|
@@ -5546,11 +5546,11 @@ const Ye = /* @__PURE__ */ le(Yd, [["render", Rd]]), Ed = { class: "flex flex-co
|
|
|
5546
5546
|
class: "uppercase"
|
|
5547
5547
|
}, {
|
|
5548
5548
|
default: h(() => [
|
|
5549
|
-
|
|
5549
|
+
L(g(s.value.name), 1)
|
|
5550
5550
|
]),
|
|
5551
5551
|
_: 1
|
|
5552
5552
|
})) : b("", !0),
|
|
5553
|
-
m(
|
|
5553
|
+
m(A, {
|
|
5554
5554
|
icon: c(pe),
|
|
5555
5555
|
color: "red",
|
|
5556
5556
|
loading: !1,
|
|
@@ -5568,17 +5568,17 @@ const Ye = /* @__PURE__ */ le(Yd, [["render", Rd]]), Ed = { class: "flex flex-co
|
|
|
5568
5568
|
onClick: q
|
|
5569
5569
|
}, {
|
|
5570
5570
|
default: h(() => [
|
|
5571
|
-
|
|
5571
|
+
L(g(r.literals.deleteAll), 1)
|
|
5572
5572
|
]),
|
|
5573
5573
|
_: 1
|
|
5574
5574
|
}, 8, ["icon"]),
|
|
5575
5575
|
m(U, {
|
|
5576
5576
|
loading: !1,
|
|
5577
|
-
icon: c(
|
|
5578
|
-
onClick:
|
|
5577
|
+
icon: c(Ft),
|
|
5578
|
+
onClick: N
|
|
5579
5579
|
}, {
|
|
5580
5580
|
default: h(() => [
|
|
5581
|
-
|
|
5581
|
+
L(g(r.literals.filter), 1)
|
|
5582
5582
|
]),
|
|
5583
5583
|
_: 1
|
|
5584
5584
|
}, 8, ["icon"])
|
|
@@ -5612,7 +5612,7 @@ const Ye = /* @__PURE__ */ le(Yd, [["render", Rd]]), Ed = { class: "flex flex-co
|
|
|
5612
5612
|
uiFooter: hr,
|
|
5613
5613
|
uiFunnelChartV2: si,
|
|
5614
5614
|
uiGallery: Di,
|
|
5615
|
-
uiIcon:
|
|
5615
|
+
uiIcon: A,
|
|
5616
5616
|
uiInput: J,
|
|
5617
5617
|
uiInputFile: bl,
|
|
5618
5618
|
uiLoadingScreen: yr,
|
|
@@ -5638,7 +5638,7 @@ const Ye = /* @__PURE__ */ le(Yd, [["render", Rd]]), Ed = { class: "flex flex-co
|
|
|
5638
5638
|
uiTabs: on,
|
|
5639
5639
|
uiTag: Z,
|
|
5640
5640
|
uiTaskList: Ps,
|
|
5641
|
-
uiTextArea:
|
|
5641
|
+
uiTextArea: Fl,
|
|
5642
5642
|
uiTimeline: Bn,
|
|
5643
5643
|
uiToggle: Vl,
|
|
5644
5644
|
uiTopbar: Wn,
|
|
@@ -5689,7 +5689,7 @@ export {
|
|
|
5689
5689
|
hr as uiFooter,
|
|
5690
5690
|
si as uiFunnelChartV2,
|
|
5691
5691
|
Di as uiGallery,
|
|
5692
|
-
|
|
5692
|
+
A as uiIcon,
|
|
5693
5693
|
J as uiInput,
|
|
5694
5694
|
bl as uiInputFile,
|
|
5695
5695
|
yr as uiLoadingScreen,
|
|
@@ -5715,7 +5715,7 @@ export {
|
|
|
5715
5715
|
on as uiTabs,
|
|
5716
5716
|
Z as uiTag,
|
|
5717
5717
|
Ps as uiTaskList,
|
|
5718
|
-
|
|
5718
|
+
Fl as uiTextArea,
|
|
5719
5719
|
Bn as uiTimeline,
|
|
5720
5720
|
Vl as uiToggle,
|
|
5721
5721
|
Wn as uiTopbar,
|