@hotelinking/ui 14.48.7 → 14.48.8
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 +105 -96
- package/package.json +1 -1
package/dist/ui.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as B, createBlock as p, createElementBlock as n, openBlock as l, resolveDynamicComponent as me, normalizeClass as y, computed as
|
|
2
|
-
import { Menu as
|
|
1
|
+
import { defineComponent as B, createBlock as p, createElementBlock as n, openBlock as l, resolveDynamicComponent as me, normalizeClass as y, computed as L, createCommentVNode as b, renderSlot as Z, createElementVNode as t, ref as F, watch as W, unref as f, withCtx as h, createVNode as m, toDisplayString as u, createTextVNode as T, Transition as fe, Fragment as $, renderList as S, withDirectives as M, vModelDynamic as jt, vShow as z, withModifiers as je, vModelText as ge, createStaticVNode as re, resolveComponent as _e, vModelCheckbox as Xe, onMounted as Le, mergeProps as ie, normalizeStyle as Dt, reactive as he, TransitionGroup as Tt, isRef as et, shallowRef as zt } from "vue";
|
|
2
|
+
import { Menu as Fe, MenuButton as Oe, MenuItems as Pe, MenuItem as Ne, Combobox as tt, ComboboxLabel as lt, ComboboxInput as at, ComboboxButton as st, ComboboxOptions as nt, ComboboxOption as ot, SwitchGroup as At, Switch as Lt, SwitchLabel as Ft, TransitionRoot as Ie, Dialog as Ve, TransitionChild as ne, DialogPanel as Ye, DialogTitle as it, Disclosure as Ce, DisclosureButton as le, DisclosurePanel as Se, Listbox as Ot, ListboxLabel as Pt, ListboxButton as Nt, ListboxOptions as It, ListboxOption as Vt, Popover as Yt, PopoverButton as qt, PopoverPanel as Rt } from "@headlessui/vue";
|
|
3
3
|
import q from "dayjs";
|
|
4
4
|
import _t from "@vueform/slider";
|
|
5
5
|
const A = /* @__PURE__ */ B({
|
|
@@ -59,10 +59,10 @@ const A = /* @__PURE__ */ B({
|
|
|
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
|
-
}, o =
|
|
62
|
+
}, o = L(() => {
|
|
63
63
|
const a = [Ht];
|
|
64
64
|
return g.color && i[g.color] && a.push(i[g.color]), g.size && s[g.size] && a.push(s[g.size]), g.block && a.push("w-full flex items-center justify-center"), a.join(" ");
|
|
65
|
-
}), r =
|
|
65
|
+
}), r = L(() => [
|
|
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(), n("button", {
|
|
@@ -111,7 +111,7 @@ const A = /* @__PURE__ */ B({
|
|
|
111
111
|
},
|
|
112
112
|
emits: ["checkboxChanged"],
|
|
113
113
|
setup(e, { emit: g }) {
|
|
114
|
-
const i = g, s = e, o =
|
|
114
|
+
const i = g, s = e, o = F(s.check), r = () => {
|
|
115
115
|
s.disabled || (o.value = !o.value, i("checkboxChanged", { checked: o.value, value: s.value }));
|
|
116
116
|
};
|
|
117
117
|
return W(() => s.check, (a) => {
|
|
@@ -637,7 +637,7 @@ const cl = {
|
|
|
637
637
|
},
|
|
638
638
|
emits: ["optionSelected"],
|
|
639
639
|
setup(e, { emit: g }) {
|
|
640
|
-
const i = g, s = e, o =
|
|
640
|
+
const i = g, s = e, o = L(() => {
|
|
641
641
|
let a = s.items.find((d) => d.active === !0);
|
|
642
642
|
return a ? a.name : s.label;
|
|
643
643
|
}), r = (a) => {
|
|
@@ -649,7 +649,7 @@ const cl = {
|
|
|
649
649
|
"aria-hidden": "true",
|
|
650
650
|
class: "-mr-1 ml-2 h-5 w-5 text-gray-200 dark:text-gray-300"
|
|
651
651
|
})
|
|
652
|
-
])) : (l(), p(f(
|
|
652
|
+
])) : (l(), p(f(Fe), {
|
|
653
653
|
key: 0,
|
|
654
654
|
as: "div",
|
|
655
655
|
class: y(["relative text-left", { "opacity-25": e.disabled }])
|
|
@@ -756,7 +756,7 @@ const cl = {
|
|
|
756
756
|
},
|
|
757
757
|
emits: ["inputChanged", "rightAddOnClicked", "addOnClicked"],
|
|
758
758
|
setup(e, { emit: g }) {
|
|
759
|
-
const i = g, s = e, o =
|
|
759
|
+
const i = g, s = e, o = F(s.value);
|
|
760
760
|
W(() => s.value, (a) => {
|
|
761
761
|
o.value = a, o.value && i("inputChanged", { name: s.name, value: o.value });
|
|
762
762
|
});
|
|
@@ -861,7 +861,7 @@ const cl = {
|
|
|
861
861
|
}, Bl = {
|
|
862
862
|
key: 1,
|
|
863
863
|
class: "place-self-center text-[10px] uppercase"
|
|
864
|
-
}, Ml = { class: "space-y-1 flex flex-col items-center justify-center" }, jl = { class: "flex text-sm flex-col sm:flex-row text-center" }, Dl = ["for"], Tl = ["id", "name", "accept"], zl = { class: "pl-1" }, Al = { class: "text-xs pb-4" },
|
|
864
|
+
}, Ml = { class: "space-y-1 flex flex-col items-center justify-center" }, jl = { class: "flex text-sm flex-col sm:flex-row text-center" }, Dl = ["for"], Tl = ["id", "name", "accept"], zl = { class: "pl-1" }, Al = { class: "text-xs pb-4" }, Ll = { class: "mt-2 text-xs flex flex-row items-center text-red-600" }, Fl = {
|
|
865
865
|
key: 1,
|
|
866
866
|
class: "animate-pulse"
|
|
867
867
|
}, Te = /* @__PURE__ */ B({
|
|
@@ -881,7 +881,7 @@ const cl = {
|
|
|
881
881
|
},
|
|
882
882
|
emits: ["filesUploaded"],
|
|
883
883
|
setup(e, { emit: g }) {
|
|
884
|
-
let i =
|
|
884
|
+
let i = F("");
|
|
885
885
|
const s = g, o = e, r = (c) => {
|
|
886
886
|
d(c.dataTransfer.files), s("filesUploaded", { id: o.id, files: c.dataTransfer.files });
|
|
887
887
|
}, a = (c) => {
|
|
@@ -893,7 +893,7 @@ const cl = {
|
|
|
893
893
|
v++, i.value += x.name, v >= 1 && v < c.length && (i.value += ", ");
|
|
894
894
|
});
|
|
895
895
|
};
|
|
896
|
-
return (c, v) => e.loading ? (l(), n("div",
|
|
896
|
+
return (c, v) => e.loading ? (l(), n("div", Fl, [...v[1] || (v[1] = [
|
|
897
897
|
t("div", { class: "flex justify-center items-center flex-col rounded-md border-2 border-dashed px-6 pt-5 pb-6 border-gray-200" }, [
|
|
898
898
|
t("div", { class: "rounded-full h-20 w-20 bg-gray-200 mb-4" }),
|
|
899
899
|
t("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-full md:w-1/3 mb-3" }),
|
|
@@ -950,7 +950,7 @@ const cl = {
|
|
|
950
950
|
])
|
|
951
951
|
])
|
|
952
952
|
], 34),
|
|
953
|
-
M(t("p",
|
|
953
|
+
M(t("p", Ll, [
|
|
954
954
|
m(A, {
|
|
955
955
|
icon: f(Be),
|
|
956
956
|
color: "red",
|
|
@@ -985,9 +985,9 @@ const cl = {
|
|
|
985
985
|
},
|
|
986
986
|
emits: ["selectChanged"],
|
|
987
987
|
setup(e, { expose: g, emit: i }) {
|
|
988
|
-
const s =
|
|
988
|
+
const s = F(""), o = i, r = e, a = L(() => s.value === "" ? r.items : r.items.filter((x) => x.name.toLowerCase().includes(s.value.toLowerCase()))), d = (x) => x?.name ?? "", c = (x) => {
|
|
989
989
|
o("selectChanged", x);
|
|
990
|
-
}, v =
|
|
990
|
+
}, v = L({
|
|
991
991
|
get: () => r.select,
|
|
992
992
|
set: (x) => {
|
|
993
993
|
c(x);
|
|
@@ -1155,8 +1155,11 @@ const Rl = { class: "flex justify-between" }, _l = {
|
|
|
1155
1155
|
},
|
|
1156
1156
|
emits: ["selectChanged"],
|
|
1157
1157
|
setup(e, { emit: g }) {
|
|
1158
|
-
const i = e, s = g, o =
|
|
1159
|
-
() => o.value === "" ? i.items : i.items.filter((c) =>
|
|
1158
|
+
const i = e, s = g, o = F(""), r = F(i.select), a = L(
|
|
1159
|
+
() => o.value === "" ? i.items : i.items.filter((c) => {
|
|
1160
|
+
const v = o.value.toLowerCase();
|
|
1161
|
+
return c.name.toLowerCase().includes(v) || (c.label?.toLowerCase().includes(v) ?? !1);
|
|
1162
|
+
})
|
|
1160
1163
|
), d = (c) => {
|
|
1161
1164
|
o.value = "", s("selectChanged", c);
|
|
1162
1165
|
};
|
|
@@ -1183,15 +1186,21 @@ const Rl = { class: "flex justify-between" }, _l = {
|
|
|
1183
1186
|
}, [
|
|
1184
1187
|
m(f(at), {
|
|
1185
1188
|
class: y([{
|
|
1189
|
+
// Estilos condicionales basados en props
|
|
1186
1190
|
"!border-transparent !shadow-none": e.isWrapped,
|
|
1191
|
+
// Sin borde si está envuelto
|
|
1187
1192
|
"mt-1": e.requiredText || e.label,
|
|
1193
|
+
// Margen superior si hay label o texto requerido
|
|
1194
|
+
// Colores de borde según la prop color
|
|
1188
1195
|
"border-gray-300": e.color === "gray",
|
|
1189
1196
|
"border-black": e.color === "black",
|
|
1190
1197
|
"border-red-600": e.color === "red",
|
|
1191
1198
|
"border-yellow-400": e.color === "yellow",
|
|
1192
1199
|
"border-green-600": e.color === "green",
|
|
1200
|
+
// Estilos para estado deshabilitado
|
|
1193
1201
|
"bg-gray-100 border-gray-300": e.disabled,
|
|
1194
1202
|
"bg-white": !e.disabled,
|
|
1203
|
+
// Colores de texto según la prop color
|
|
1195
1204
|
"text-black": e.color === "gray",
|
|
1196
1205
|
"text-gray-300": e.disabled,
|
|
1197
1206
|
"text-red-600": e.color === "red",
|
|
@@ -1218,8 +1227,7 @@ const Rl = { class: "flex justify-between" }, _l = {
|
|
|
1218
1227
|
default: h(() => [
|
|
1219
1228
|
(l(!0), n($, null, S(a.value, (x) => (l(), p(f(ot), {
|
|
1220
1229
|
key: x.id,
|
|
1221
|
-
value: x
|
|
1222
|
-
as: "template"
|
|
1230
|
+
value: x
|
|
1223
1231
|
}, {
|
|
1224
1232
|
default: h(({ active: k, selected: j }) => [
|
|
1225
1233
|
t("li", {
|
|
@@ -1247,6 +1255,7 @@ const Rl = { class: "flex justify-between" }, _l = {
|
|
|
1247
1255
|
], 2),
|
|
1248
1256
|
M(t("p", {
|
|
1249
1257
|
class: y([{
|
|
1258
|
+
// Colores de texto de error según la prop color
|
|
1250
1259
|
"text-gray-400": e.color === "gray",
|
|
1251
1260
|
"text-red-600": e.color === "red",
|
|
1252
1261
|
"text-yellow-400": e.color === "yellow",
|
|
@@ -1329,7 +1338,7 @@ const Rl = { class: "flex justify-between" }, _l = {
|
|
|
1329
1338
|
setup(e, { emit: g }) {
|
|
1330
1339
|
const i = g, s = e, o = (a) => {
|
|
1331
1340
|
i("inputChanged", a.target.value);
|
|
1332
|
-
}, r =
|
|
1341
|
+
}, r = F(s.value);
|
|
1333
1342
|
return W(() => s.value, (a) => {
|
|
1334
1343
|
r.value = a, i("inputChanged", { name: s.name, value: r.value });
|
|
1335
1344
|
}), (a, d) => e.loading ? (l(), n("div", Gl, [...d[1] || (d[1] = [
|
|
@@ -1401,7 +1410,7 @@ const Rl = { class: "flex justify-between" }, _l = {
|
|
|
1401
1410
|
},
|
|
1402
1411
|
emits: ["toggleChanged", "actionClicked"],
|
|
1403
1412
|
setup(e, { emit: g }) {
|
|
1404
|
-
const i = e, s =
|
|
1413
|
+
const i = e, s = F(i.checked);
|
|
1405
1414
|
return W(() => i.checked, (o) => s.value = o), (o, r) => e.loading ? (l(), n("div", ea, [...r[3] || (r[3] = [
|
|
1406
1415
|
t("div", { class: "relative bg-gray-200 rounded-full w-12 h-6 p-1 flex items-center" }, [
|
|
1407
1416
|
t("div", { class: "rounded-full bg-gray-300 dark:bg-gray-400 h-4 w-4" })
|
|
@@ -1413,7 +1422,7 @@ const Rl = { class: "flex justify-between" }, _l = {
|
|
|
1413
1422
|
class: "flex items-center relative"
|
|
1414
1423
|
}, {
|
|
1415
1424
|
default: h(() => [
|
|
1416
|
-
m(f(
|
|
1425
|
+
m(f(Lt), {
|
|
1417
1426
|
disabled: e.disabled,
|
|
1418
1427
|
onClick: r[0] || (r[0] = (a) => o.$emit("toggleChanged", { item: e.item, active: !s.value })),
|
|
1419
1428
|
modelValue: s.value,
|
|
@@ -1436,7 +1445,7 @@ const Rl = { class: "flex justify-between" }, _l = {
|
|
|
1436
1445
|
]),
|
|
1437
1446
|
_: 1
|
|
1438
1447
|
}, 8, ["disabled", "modelValue", "class"]),
|
|
1439
|
-
m(f(
|
|
1448
|
+
m(f(Ft), {
|
|
1440
1449
|
as: "span",
|
|
1441
1450
|
class: "ml-3"
|
|
1442
1451
|
}, {
|
|
@@ -1667,7 +1676,7 @@ const Rl = { class: "flex justify-between" }, _l = {
|
|
|
1667
1676
|
r.value.forEach((d) => {
|
|
1668
1677
|
d.active = d.value === a.value;
|
|
1669
1678
|
}), i("filterSelected", a);
|
|
1670
|
-
}, r =
|
|
1679
|
+
}, r = F(s.items);
|
|
1671
1680
|
return (a, d) => (l(), p(Me, {
|
|
1672
1681
|
class: "text-nowrap",
|
|
1673
1682
|
loading: e.loading,
|
|
@@ -1680,7 +1689,7 @@ const Rl = { class: "flex justify-between" }, _l = {
|
|
|
1680
1689
|
}), Ba = { class: "fixed inset-0 z-10 overflow-y-auto" }, Ma = { class: "flex min-h-full items-end justify-center p-4 text-center sm:items-center sm:p-0" }, ja = { class: "absolute top-0 right-0 hidden pt-4 pr-4 sm:block" }, Da = { class: "sm:flex sm:items-start" }, Ta = { class: "mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left w-full break-words" }, za = { class: "mt-4 text-gray-500 text-sm" }, Aa = {
|
|
1681
1690
|
key: 0,
|
|
1682
1691
|
class: "mt-8"
|
|
1683
|
-
},
|
|
1692
|
+
}, La = ["onClick"], ht = /* @__PURE__ */ B({
|
|
1684
1693
|
__name: "uiModal",
|
|
1685
1694
|
props: {
|
|
1686
1695
|
title: {},
|
|
@@ -1807,7 +1816,7 @@ const Rl = { class: "flex justify-between" }, _l = {
|
|
|
1807
1816
|
type: "button",
|
|
1808
1817
|
class: "inline-flex w-full justify-center rounded-md border border-transparent bg-black px-4 py-2 text-base font-medium text-white shadow-sm hover:bg-lime-400 hover:text-black focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2 mb-2 sm:mb-0 mr-2 sm:w-auto sm:text-sm",
|
|
1809
1818
|
onClick: (v) => o(d.value)
|
|
1810
|
-
}, u(d.name), 9,
|
|
1819
|
+
}, u(d.name), 9, La))), 128))
|
|
1811
1820
|
])) : b("", !0)
|
|
1812
1821
|
])
|
|
1813
1822
|
])
|
|
@@ -1826,7 +1835,7 @@ const Rl = { class: "flex justify-between" }, _l = {
|
|
|
1826
1835
|
_: 3
|
|
1827
1836
|
}, 8, ["show"]));
|
|
1828
1837
|
}
|
|
1829
|
-
}),
|
|
1838
|
+
}), Fa = { class: "w-full flex flex-col items-center space-y-4 sm:items-end" }, Oa = {
|
|
1830
1839
|
key: 0,
|
|
1831
1840
|
class: "max-w-sm w-full bg-white shadow-lg rounded-lg pointer-events-auto ring-1 ring-black ring-opacity-5 overflow-hidden"
|
|
1832
1841
|
}, Pa = { class: "p-4" }, Na = { class: "flex items-start" }, Ia = { class: "flex-shrink-0 mt-0.5" }, Va = { class: "ml-3 w-0 flex-1 pt-0.5" }, Ya = { class: "font-medium text-gray-900" }, qa = { class: "mt-1 text-sm text-gray-500" }, Ra = { class: "ml-4 flex-shrink-0 flex" }, _a = /* @__PURE__ */ B({
|
|
@@ -1840,12 +1849,12 @@ const Rl = { class: "flex justify-between" }, _l = {
|
|
|
1840
1849
|
},
|
|
1841
1850
|
emits: ["closeNotification"],
|
|
1842
1851
|
setup(e, { emit: g }) {
|
|
1843
|
-
const i = e, s =
|
|
1852
|
+
const i = e, s = L(() => i.show);
|
|
1844
1853
|
return (o, r) => (l(), n("div", {
|
|
1845
1854
|
"aria-live": "assertive",
|
|
1846
1855
|
class: y([{ fixed: e.fixed }, "inset-0 flex items-end px-4 py-6 pointer-events-none sm:p-6 sm:items-start z-[9999]"])
|
|
1847
1856
|
}, [
|
|
1848
|
-
t("div",
|
|
1857
|
+
t("div", Fa, [
|
|
1849
1858
|
m(fe, {
|
|
1850
1859
|
"enter-active-class": "transform ease-out duration-300 transition",
|
|
1851
1860
|
"enter-from-class": "translate-y-2 opacity-0 sm:translate-y-0 sm:translate-x-2",
|
|
@@ -2251,8 +2260,8 @@ const Ds = /* @__PURE__ */ ts(js), Ts = {
|
|
|
2251
2260
|
};
|
|
2252
2261
|
}
|
|
2253
2262
|
}
|
|
2254
|
-
}, zs = { class: "text-xs" }, As = { class: "font-bold text-lg" },
|
|
2255
|
-
function
|
|
2263
|
+
}, zs = { class: "text-xs" }, As = { class: "font-bold text-lg" }, Ls = { class: "text-xs font-medium" };
|
|
2264
|
+
function Fs(e, g, i, s, o, r) {
|
|
2256
2265
|
return l(), n("div", {
|
|
2257
2266
|
class: y([
|
|
2258
2267
|
"day select-none text-center",
|
|
@@ -2264,10 +2273,10 @@ function Ls(e, g, i, s, o, r) {
|
|
|
2264
2273
|
}, [
|
|
2265
2274
|
t("p", zs, u(r.currentDay.dayName), 1),
|
|
2266
2275
|
t("p", As, u(r.currentDay.day), 1),
|
|
2267
|
-
t("p",
|
|
2276
|
+
t("p", Ls, u(r.currentDay.month), 1)
|
|
2268
2277
|
], 2);
|
|
2269
2278
|
}
|
|
2270
|
-
const Os = /* @__PURE__ */ de(Ts, [["render",
|
|
2279
|
+
const Os = /* @__PURE__ */ de(Ts, [["render", Fs]]), Ps = {
|
|
2271
2280
|
name: "dayPrice",
|
|
2272
2281
|
props: {
|
|
2273
2282
|
currency: String,
|
|
@@ -2370,16 +2379,16 @@ const ve = /* @__PURE__ */ de(Ps, [["render", Vs]]), Ys = {
|
|
|
2370
2379
|
},
|
|
2371
2380
|
emits: ["dateChanged", "changeCategoryBulkPrices", "changeCategorySelectionPrice", "changeCategoryUpgradePrice", "changeRoomPrice", "tableAction"],
|
|
2372
2381
|
setup(e, { emit: g }) {
|
|
2373
|
-
const i = e, s = g, o =
|
|
2382
|
+
const i = e, s = g, o = F(/* @__PURE__ */ new Date()), r = F(i.today), a = F([]);
|
|
2374
2383
|
W(() => i.today, (_) => {
|
|
2375
2384
|
r.value = _;
|
|
2376
2385
|
});
|
|
2377
|
-
const d =
|
|
2386
|
+
const d = L(() => {
|
|
2378
2387
|
let _ = [];
|
|
2379
2388
|
for (let H = 0; H < 14; H++)
|
|
2380
2389
|
_.push(q(r.value).add(H, "day"));
|
|
2381
2390
|
return _;
|
|
2382
|
-
}), c =
|
|
2391
|
+
}), c = L(() => a.value.length > 0 && a.value.length < i.rooms.length), v = (_) => {
|
|
2383
2392
|
q(_).isBefore(o.value) || (r.value = _, s("dateChanged", r.value));
|
|
2384
2393
|
}, x = (_) => {
|
|
2385
2394
|
let H = i.category.selectionPrices.find((O) => q(O.date).isSame(_.date));
|
|
@@ -2549,8 +2558,8 @@ const ve = /* @__PURE__ */ de(Ps, [["render", Vs]]), Ys = {
|
|
|
2549
2558
|
},
|
|
2550
2559
|
emits: ["updated", "mounted", "dataPointSelection"],
|
|
2551
2560
|
setup(e) {
|
|
2552
|
-
const g =
|
|
2553
|
-
return
|
|
2561
|
+
const g = F(null);
|
|
2562
|
+
return Le(async () => {
|
|
2554
2563
|
if (typeof window < "u")
|
|
2555
2564
|
try {
|
|
2556
2565
|
const { default: i } = await import("vue3-apexcharts");
|
|
@@ -2597,7 +2606,7 @@ const ve = /* @__PURE__ */ de(Ps, [["render", Vs]]), Ys = {
|
|
|
2597
2606
|
},
|
|
2598
2607
|
emits: ["selectedRange", "chartUpdated", "dataPointSelection", "maximizeChart"],
|
|
2599
2608
|
setup(e, { emit: g }) {
|
|
2600
|
-
const i = g, s =
|
|
2609
|
+
const i = g, s = F((/* @__PURE__ */ new Date()).toISOString().slice(0, (/* @__PURE__ */ new Date()).toISOString().lastIndexOf(":"))), o = e;
|
|
2601
2610
|
let r = he(o.dates || { from: "", to: s });
|
|
2602
2611
|
W(() => o.dates, (D) => {
|
|
2603
2612
|
D && (r = D);
|
|
@@ -2660,7 +2669,7 @@ const ve = /* @__PURE__ */ de(Ps, [["render", Vs]]), Ys = {
|
|
|
2660
2669
|
}), o.type === "area" && (d.tooltip = { intersect: !1, shared: !0 });
|
|
2661
2670
|
const c = () => (d.chart.stacked = o.stacked, o.options && (o.options.xaxis.hideOverlappingLabels = !0, o.options.xaxis.decimalsInFloat = 2, o.options.xaxis.tickAmount = 10), { ...d, ...o.options, plotOptions: { bar: { horizontal: o.horizontal } } }), v = () => {
|
|
2662
2671
|
r.from !== "" && r.to !== "" && q(r.from).isBefore(q(r.to)) && i("selectedRange", { range: r, chartId: o.id });
|
|
2663
|
-
}, x =
|
|
2672
|
+
}, x = L(() => o.series), k = L(() => c()), j = () => i("chartUpdated"), Y = (D, V, J) => {
|
|
2664
2673
|
i("dataPointSelection", { id: o.id, chartContext: V, config: J, event: D });
|
|
2665
2674
|
};
|
|
2666
2675
|
return (D, V) => (l(), n($, null, [
|
|
@@ -2827,7 +2836,7 @@ function zn(e, g, i, s, o, r) {
|
|
|
2827
2836
|
], -1)
|
|
2828
2837
|
])]);
|
|
2829
2838
|
}
|
|
2830
|
-
const An = /* @__PURE__ */ de(Dn, [["render", zn]]),
|
|
2839
|
+
const An = /* @__PURE__ */ de(Dn, [["render", zn]]), Ln = /* @__PURE__ */ B({
|
|
2831
2840
|
__name: "uiLoadingScreen",
|
|
2832
2841
|
props: {
|
|
2833
2842
|
title: {},
|
|
@@ -2855,7 +2864,7 @@ const An = /* @__PURE__ */ de(Dn, [["render", zn]]), Fn = /* @__PURE__ */ B({
|
|
|
2855
2864
|
])
|
|
2856
2865
|
], 2));
|
|
2857
2866
|
}
|
|
2858
|
-
}),
|
|
2867
|
+
}), Fn = {
|
|
2859
2868
|
key: 0,
|
|
2860
2869
|
class: "py-6 flex items-center justify-between"
|
|
2861
2870
|
}, On = { class: "flex-1 flex justify-between sm:hidden" }, Pn = {
|
|
@@ -2880,11 +2889,11 @@ const An = /* @__PURE__ */ de(Dn, [["render", zn]]), Fn = /* @__PURE__ */ B({
|
|
|
2880
2889
|
},
|
|
2881
2890
|
emits: ["changePage"],
|
|
2882
2891
|
setup(e, { emit: g }) {
|
|
2883
|
-
const i = g, s = e, o =
|
|
2892
|
+
const i = g, s = e, o = F(3), r = L(
|
|
2884
2893
|
() => Math.max(1, Number(s.current) - Number(o.value))
|
|
2885
|
-
), a =
|
|
2894
|
+
), a = L(
|
|
2886
2895
|
() => Math.min(Number(s.current) + Number(o.value), Number(s.total))
|
|
2887
|
-
), d =
|
|
2896
|
+
), d = L(() => {
|
|
2888
2897
|
let c = [];
|
|
2889
2898
|
for (let v = Number(r.value); v <= Number(a.value); v++)
|
|
2890
2899
|
c.push(v);
|
|
@@ -2893,7 +2902,7 @@ const An = /* @__PURE__ */ de(Dn, [["render", zn]]), Fn = /* @__PURE__ */ B({
|
|
|
2893
2902
|
return (c, v) => e.loading ? (l(), n("div", Zn, [...v[3] || (v[3] = [
|
|
2894
2903
|
t("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/5" }, null, -1),
|
|
2895
2904
|
t("div", { class: "h-10 w-32 bg-gray-200 rounded dark:bg-gray-300" }, null, -1)
|
|
2896
|
-
])])) : (l(), n("div",
|
|
2905
|
+
])])) : (l(), n("div", Fn, [
|
|
2897
2906
|
t("div", On, [
|
|
2898
2907
|
t("a", Pn, [
|
|
2899
2908
|
Z(c.$slots, "previous")
|
|
@@ -2989,7 +2998,7 @@ const An = /* @__PURE__ */ de(Dn, [["render", zn]]), Fn = /* @__PURE__ */ B({
|
|
|
2989
2998
|
},
|
|
2990
2999
|
emits: ["sideBarClick"],
|
|
2991
3000
|
setup(e, { emit: g }) {
|
|
2992
|
-
const i = e, s = g, o =
|
|
3001
|
+
const i = e, s = g, o = L(() => i.navigation ? Array.isArray(i.navigation) ? i.navigation : [i.navigation] : []);
|
|
2993
3002
|
return (r, a) => (l(), n("div", Wn, [
|
|
2994
3003
|
t("div", Gn, [
|
|
2995
3004
|
t("div", Qn, [
|
|
@@ -3102,7 +3111,7 @@ const An = /* @__PURE__ */ de(Dn, [["render", zn]]), Fn = /* @__PURE__ */ B({
|
|
|
3102
3111
|
},
|
|
3103
3112
|
emits: ["productBarClick", "sideBarClick", "inputChanged"],
|
|
3104
3113
|
setup(e, { emit: g }) {
|
|
3105
|
-
const i = e, s =
|
|
3114
|
+
const i = e, s = L(() => i.navigation ? Array.isArray(i.navigation) ? i.navigation : [i.navigation] : []);
|
|
3106
3115
|
return (o, r) => (l(), n("div", ro, [
|
|
3107
3116
|
t("div", co, [
|
|
3108
3117
|
t("ul", null, [
|
|
@@ -3255,7 +3264,7 @@ const An = /* @__PURE__ */ de(Dn, [["render", zn]]), Fn = /* @__PURE__ */ B({
|
|
|
3255
3264
|
}), Bo = { key: 0 }, Mo = { class: "ml-16 text-sm font-medium truncate" }, jo = { class: "ml-16 flex items-baseline pb-5" }, Do = { class: "text-2xl font-semibold" }, To = {
|
|
3256
3265
|
key: 0,
|
|
3257
3266
|
class: "text-black ml-2 flex items-baseline text-sm font-semibold"
|
|
3258
|
-
}, zo = { class: "absolute bottom-0 inset-x-0 bg-lime-50 px-4 py-4 sm:px-6" }, Ao = { class: "text-sm" },
|
|
3267
|
+
}, zo = { class: "absolute bottom-0 inset-x-0 bg-lime-50 px-4 py-4 sm:px-6" }, Ao = { class: "text-sm" }, Lo = { key: 1 }, Fo = { class: "relative bg-white pt-5 px-4 sm:pt-6 sm:px-6 shadow rounded-lg overflow-hidden h-full pb-6" }, Oo = { class: "absolute bg-gray-200 rounded-md p-3 animate-pulse" }, vt = /* @__PURE__ */ B({
|
|
3259
3268
|
__name: "uiStats",
|
|
3260
3269
|
props: {
|
|
3261
3270
|
item: {},
|
|
@@ -3263,8 +3272,8 @@ const An = /* @__PURE__ */ de(Dn, [["render", zn]]), Fn = /* @__PURE__ */ B({
|
|
|
3263
3272
|
},
|
|
3264
3273
|
emits: ["statClick"],
|
|
3265
3274
|
setup(e, { emit: g }) {
|
|
3266
|
-
return (i, s) => e.loading ? (l(), n("div",
|
|
3267
|
-
t("div",
|
|
3275
|
+
return (i, s) => e.loading ? (l(), n("div", Lo, [
|
|
3276
|
+
t("div", Fo, [
|
|
3268
3277
|
t("dt", null, [
|
|
3269
3278
|
t("div", Oo, [
|
|
3270
3279
|
m(A, {
|
|
@@ -3475,16 +3484,16 @@ const An = /* @__PURE__ */ de(Dn, [["render", zn]]), Fn = /* @__PURE__ */ B({
|
|
|
3475
3484
|
},
|
|
3476
3485
|
emits: ["tableAction", "orderBy", "customEmit", "selectedItemsDeleted"],
|
|
3477
3486
|
setup(e, { emit: g }) {
|
|
3478
|
-
const i = g, s = e, o =
|
|
3487
|
+
const i = g, s = e, o = F([]), r = F(""), a = F(!1), d = L(() => o.value.length > 0), c = L(() => s.actions?.length > 0), v = L(
|
|
3479
3488
|
() => o.value.length === s.items.length && s.items.length > 0
|
|
3480
|
-
), x =
|
|
3489
|
+
), x = L(
|
|
3481
3490
|
() => o.value.length > 0 && o.value.length < s.items.length
|
|
3482
|
-
), k =
|
|
3491
|
+
), k = L(
|
|
3483
3492
|
() => s.header.filter((C, U) => D(U))
|
|
3484
|
-
), j =
|
|
3493
|
+
), j = L(() => [
|
|
3485
3494
|
s.actions ? "px-6 sm:px-8" : "px-3",
|
|
3486
3495
|
"relative"
|
|
3487
|
-
]), Y =
|
|
3496
|
+
]), Y = L(() => [
|
|
3488
3497
|
s.actions?.length > 0 ? "w-2" : "w-0",
|
|
3489
3498
|
"relative"
|
|
3490
3499
|
]), D = (C) => s.hiddenColumns && s.hiddenColumns.length > 0 ? !s.hiddenColumns.includes(C) : !0, V = (C) => o.value.includes(C), J = (C) => r.value === C, _ = (C) => C.filter((U, I) => D(I)), H = (C, U) => {
|
|
@@ -3700,10 +3709,10 @@ const An = /* @__PURE__ */ de(Dn, [["render", zn]]), Fn = /* @__PURE__ */ B({
|
|
|
3700
3709
|
key: 0,
|
|
3701
3710
|
class: "absolute left-4 top-4 -ml-px h-full w-0.5 bg-gray-200",
|
|
3702
3711
|
"aria-hidden": "true"
|
|
3703
|
-
}, Mi = { class: "relative flex space-x-3" }, ji = { class: "min-w-0 flex-1 pt-1.5 flex justify-between space-x-4 items-center" }, Di = { class: "text-sm text-gray-500" }, Ti = ["onClick"], zi = { class: "text-right text-sm whitespace-nowrap text-gray-500" }, Ai = ["datetime"],
|
|
3712
|
+
}, Mi = { class: "relative flex space-x-3" }, ji = { class: "min-w-0 flex-1 pt-1.5 flex justify-between space-x-4 items-center" }, Di = { class: "text-sm text-gray-500" }, Ti = ["onClick"], zi = { class: "text-right text-sm whitespace-nowrap text-gray-500" }, Ai = ["datetime"], Li = {
|
|
3704
3713
|
key: 1,
|
|
3705
3714
|
class: "bg-lime-50 px-4 py-4 sm:px-6 z-10"
|
|
3706
|
-
},
|
|
3715
|
+
}, Fi = { class: "text-sm" }, Oi = {
|
|
3707
3716
|
key: 2,
|
|
3708
3717
|
class: "h-full w-full flex items-center justify-center flex-col px-4 py-5 sm:p-6"
|
|
3709
3718
|
}, Pi = {
|
|
@@ -3811,8 +3820,8 @@ const An = /* @__PURE__ */ de(Dn, [["render", zn]]), Fn = /* @__PURE__ */ B({
|
|
|
3811
3820
|
})
|
|
3812
3821
|
])
|
|
3813
3822
|
])) : b("", !0),
|
|
3814
|
-
s.items.length > 0 ? (l(), n("div",
|
|
3815
|
-
t("div",
|
|
3823
|
+
s.items.length > 0 ? (l(), n("div", Li, [
|
|
3824
|
+
t("div", Fi, [
|
|
3816
3825
|
t("a", {
|
|
3817
3826
|
class: "cursor-pointer font-medium text-black hover:text-lime-400",
|
|
3818
3827
|
onClick: r[0] || (r[0] = (a) => o.$emit("timelineFooterClicked", e.timeline.id))
|
|
@@ -3844,7 +3853,7 @@ const An = /* @__PURE__ */ de(Dn, [["render", zn]]), Fn = /* @__PURE__ */ B({
|
|
|
3844
3853
|
},
|
|
3845
3854
|
emits: ["topBarClick"],
|
|
3846
3855
|
setup(e, { emit: g }) {
|
|
3847
|
-
const i = e, s =
|
|
3856
|
+
const i = e, s = L(() => i.navigation ? Array.isArray(i.navigation) ? i.navigation : [i.navigation] : []);
|
|
3848
3857
|
return (o, r) => (l(), p(f(Ce), {
|
|
3849
3858
|
as: "nav",
|
|
3850
3859
|
class: "bg-white shadow z-10"
|
|
@@ -3883,7 +3892,7 @@ const An = /* @__PURE__ */ de(Dn, [["render", zn]]), Fn = /* @__PURE__ */ B({
|
|
|
3883
3892
|
]),
|
|
3884
3893
|
t("div", Ji, [
|
|
3885
3894
|
t("div", Wi, [
|
|
3886
|
-
m(f(
|
|
3895
|
+
m(f(Fe), {
|
|
3887
3896
|
as: "div",
|
|
3888
3897
|
class: "ml-3 relative"
|
|
3889
3898
|
}, {
|
|
@@ -4004,7 +4013,7 @@ const An = /* @__PURE__ */ de(Dn, [["render", zn]]), Fn = /* @__PURE__ */ B({
|
|
|
4004
4013
|
emits: ["rangeSelected"],
|
|
4005
4014
|
setup(e, { emit: g }) {
|
|
4006
4015
|
const i = g, s = e;
|
|
4007
|
-
let o =
|
|
4016
|
+
let o = L(() => s.range);
|
|
4008
4017
|
const r = (a) => {
|
|
4009
4018
|
o = a, i("rangeSelected", a);
|
|
4010
4019
|
};
|
|
@@ -4085,7 +4094,7 @@ const An = /* @__PURE__ */ de(Dn, [["render", zn]]), Fn = /* @__PURE__ */ B({
|
|
|
4085
4094
|
}
|
|
4086
4095
|
}
|
|
4087
4096
|
};
|
|
4088
|
-
const r =
|
|
4097
|
+
const r = L(() => ({ ...s.options, ...o })), a = L(() => s.series), d = () => i("chartUpdated"), c = (v, x, k) => {
|
|
4089
4098
|
i("dataPointSelection", { id: s.id, chartContext: x, config: k, event: v });
|
|
4090
4099
|
};
|
|
4091
4100
|
return (v, x) => (l(), n($, null, [
|
|
@@ -4201,7 +4210,7 @@ const An = /* @__PURE__ */ de(Dn, [["render", zn]]), Fn = /* @__PURE__ */ B({
|
|
|
4201
4210
|
])
|
|
4202
4211
|
]));
|
|
4203
4212
|
}
|
|
4204
|
-
}), Cr = { class: "fixed inset-0 overflow-hidden" }, Sr = { class: "absolute inset-0 overflow-hidden" }, Br = { class: "pointer-events-none fixed inset-y-0 right-0 flex max-w-full pl-10" }, Mr = { class: "flex h-full flex-col overflow-y-scroll bg-white shadow-xl" }, jr = { class: "bg-lime-400 px-4 py-6 sm:px-6" }, Dr = { class: "flex items-center justify-between" }, Tr = { class: "ml-3 flex h-7 items-center" }, zr = { class: "mt-1" }, Ar = { class: "text-sm" },
|
|
4213
|
+
}), Cr = { class: "fixed inset-0 overflow-hidden" }, Sr = { class: "absolute inset-0 overflow-hidden" }, Br = { class: "pointer-events-none fixed inset-y-0 right-0 flex max-w-full pl-10" }, Mr = { class: "flex h-full flex-col overflow-y-scroll bg-white shadow-xl" }, jr = { class: "bg-lime-400 px-4 py-6 sm:px-6" }, Dr = { class: "flex items-center justify-between" }, Tr = { class: "ml-3 flex h-7 items-center" }, zr = { class: "mt-1" }, Ar = { class: "text-sm" }, Lr = { class: "relative flex-1 px-4 py-6 sm:px-6" }, Fr = /* @__PURE__ */ B({
|
|
4205
4214
|
__name: "uiRightSidebar",
|
|
4206
4215
|
props: {
|
|
4207
4216
|
title: {},
|
|
@@ -4265,7 +4274,7 @@ const An = /* @__PURE__ */ de(Dn, [["render", zn]]), Fn = /* @__PURE__ */ B({
|
|
|
4265
4274
|
t("p", Ar, u(e.description), 1)
|
|
4266
4275
|
])
|
|
4267
4276
|
]),
|
|
4268
|
-
t("div",
|
|
4277
|
+
t("div", Lr, [
|
|
4269
4278
|
Z(i.$slots, "default")
|
|
4270
4279
|
])
|
|
4271
4280
|
])
|
|
@@ -4303,7 +4312,7 @@ const An = /* @__PURE__ */ de(Dn, [["render", zn]]), Fn = /* @__PURE__ */ B({
|
|
|
4303
4312
|
},
|
|
4304
4313
|
emits: ["modalAction", "deleteImage", "imgClicked"],
|
|
4305
4314
|
setup(e, { emit: g }) {
|
|
4306
|
-
const i = g, s =
|
|
4315
|
+
const i = g, s = F(!1), o = (r) => {
|
|
4307
4316
|
s.value = !1, i("modalAction", r);
|
|
4308
4317
|
};
|
|
4309
4318
|
return (r, a) => (l(), n("div", Or, [
|
|
@@ -4379,8 +4388,8 @@ const An = /* @__PURE__ */ de(Dn, [["render", zn]]), Fn = /* @__PURE__ */ B({
|
|
|
4379
4388
|
__name: "DraggableWrapper",
|
|
4380
4389
|
emits: ["update:modelValue"],
|
|
4381
4390
|
setup(e) {
|
|
4382
|
-
const g =
|
|
4383
|
-
return
|
|
4391
|
+
const g = F(null);
|
|
4392
|
+
return Le(async () => {
|
|
4384
4393
|
if (typeof window < "u")
|
|
4385
4394
|
try {
|
|
4386
4395
|
const { default: i } = await import("vue3-draggable");
|
|
@@ -4415,7 +4424,7 @@ const An = /* @__PURE__ */ de(Dn, [["render", zn]]), Fn = /* @__PURE__ */ B({
|
|
|
4415
4424
|
emits: ["dragAndDropUpdated"],
|
|
4416
4425
|
setup(e, { emit: g }) {
|
|
4417
4426
|
const i = g, s = e;
|
|
4418
|
-
let o =
|
|
4427
|
+
let o = F(s.elements);
|
|
4419
4428
|
W(() => s.elements, (a) => {
|
|
4420
4429
|
o.value = a;
|
|
4421
4430
|
});
|
|
@@ -4475,7 +4484,7 @@ const An = /* @__PURE__ */ de(Dn, [["render", zn]]), Fn = /* @__PURE__ */ B({
|
|
|
4475
4484
|
},
|
|
4476
4485
|
emits: ["selectedRange", "chartUpdated", "dataPointSelection", "maximizeChart"],
|
|
4477
4486
|
setup(e, { emit: g }) {
|
|
4478
|
-
const i = g, s = e, o =
|
|
4487
|
+
const i = g, s = e, o = F((/* @__PURE__ */ new Date()).toISOString().slice(0, (/* @__PURE__ */ new Date()).toISOString().lastIndexOf(":")));
|
|
4479
4488
|
let r = he(s.dates || { from: "", to: o });
|
|
4480
4489
|
W(() => s.dates, (Y) => {
|
|
4481
4490
|
Y && (r = Y);
|
|
@@ -4512,7 +4521,7 @@ const An = /* @__PURE__ */ de(Dn, [["render", zn]]), Fn = /* @__PURE__ */ B({
|
|
|
4512
4521
|
}
|
|
4513
4522
|
}
|
|
4514
4523
|
};
|
|
4515
|
-
const d = () => ({ ...a, ...s.options }), c =
|
|
4524
|
+
const d = () => ({ ...a, ...s.options }), c = L(() => s.series), v = L(() => d()), x = () => i("chartUpdated"), k = (Y, D, V) => {
|
|
4516
4525
|
i("dataPointSelection", { id: s.id, chartContext: D, config: V, event: Y });
|
|
4517
4526
|
}, j = () => {
|
|
4518
4527
|
r.from !== "" && r.to !== "" && q(r.from).isBefore(q(r.to)) && i("selectedRange", { range: r, chartId: s.id });
|
|
@@ -4639,7 +4648,7 @@ const An = /* @__PURE__ */ de(Dn, [["render", zn]]), Fn = /* @__PURE__ */ B({
|
|
|
4639
4648
|
},
|
|
4640
4649
|
emits: ["uiDateRangeButtonClicked"],
|
|
4641
4650
|
setup(e, { emit: g }) {
|
|
4642
|
-
const i = e, s =
|
|
4651
|
+
const i = e, s = F((/* @__PURE__ */ new Date()).toISOString().slice(0, (/* @__PURE__ */ new Date()).toISOString().lastIndexOf(":")));
|
|
4643
4652
|
let o = he(i.values || { from: "", to: s });
|
|
4644
4653
|
const r = g;
|
|
4645
4654
|
W(() => i.values, (d) => {
|
|
@@ -4728,7 +4737,7 @@ const An = /* @__PURE__ */ de(Dn, [["render", zn]]), Fn = /* @__PURE__ */ B({
|
|
|
4728
4737
|
},
|
|
4729
4738
|
emits: ["sliderUpdated"],
|
|
4730
4739
|
setup(e, { emit: g }) {
|
|
4731
|
-
const i = g, o =
|
|
4740
|
+
const i = g, o = F(e.sliderValue);
|
|
4732
4741
|
return (r, a) => (l(), n("div", null, [
|
|
4733
4742
|
t("div", hd, [
|
|
4734
4743
|
e.label ? (l(), n("label", yd, u(e.label), 1)) : b("", !0),
|
|
@@ -4862,7 +4871,7 @@ const An = /* @__PURE__ */ de(Dn, [["render", zn]]), Fn = /* @__PURE__ */ B({
|
|
|
4862
4871
|
])
|
|
4863
4872
|
]));
|
|
4864
4873
|
}
|
|
4865
|
-
}),
|
|
4874
|
+
}), Ld = { class: "fixed inset-0 flex" }, Fd = { class: "absolute left-full top-0 flex w-16 justify-center pt-5" }, Od = { class: "hidden lg:fixed lg:inset-y-0 lg:z-50 lg:flex lg:w-[25rem] lg:flex-col" }, Pd = { class: "lg:pl-[25rem]" }, Nd = { 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" }, Id = { class: "flex flex-1 gap-x-4 self-stretch lg:gap-x-6" }, Vd = { class: "flex items-center gap-x-4 lg:gap-x-6" }, Yd = { class: "redCircle flex items-center justify-center h-4 w-4 bg-red-500 rounded-full absolute top-1 left-2" }, qd = ["src"], Rd = { class: "hidden lg:flex lg:items-center" }, _d = ["onClick"], Ud = { class: "py-7" }, Hd = { class: "px-7 lg:px-10" }, Ed = /* @__PURE__ */ B({
|
|
4866
4875
|
__name: "uiWrapper",
|
|
4867
4876
|
props: {
|
|
4868
4877
|
topbar: {},
|
|
@@ -4871,7 +4880,7 @@ const An = /* @__PURE__ */ de(Dn, [["render", zn]]), Fn = /* @__PURE__ */ B({
|
|
|
4871
4880
|
},
|
|
4872
4881
|
emits: ["productBarClick", "sideBarClick", "selectChanged", "topBarClick", "checkboxChanged", "inputChanged", "sidebarToggle", "bellClick"],
|
|
4873
4882
|
setup(e, { emit: g }) {
|
|
4874
|
-
const i = e, s = g, o =
|
|
4883
|
+
const i = e, s = g, o = F(i.sidebarOpen), r = () => {
|
|
4875
4884
|
o.value = !o.value, s("sidebarToggle", o.value);
|
|
4876
4885
|
};
|
|
4877
4886
|
return (a, d) => (l(), n("div", null, [
|
|
@@ -4899,7 +4908,7 @@ const An = /* @__PURE__ */ de(Dn, [["render", zn]]), Fn = /* @__PURE__ */ B({
|
|
|
4899
4908
|
])]),
|
|
4900
4909
|
_: 1
|
|
4901
4910
|
}),
|
|
4902
|
-
t("div",
|
|
4911
|
+
t("div", Ld, [
|
|
4903
4912
|
m(f(ne), {
|
|
4904
4913
|
as: "template",
|
|
4905
4914
|
enter: "transition ease-in-out duration-300 transform",
|
|
@@ -4922,7 +4931,7 @@ const An = /* @__PURE__ */ de(Dn, [["render", zn]]), Fn = /* @__PURE__ */ B({
|
|
|
4922
4931
|
"leave-to": "opacity-0"
|
|
4923
4932
|
}, {
|
|
4924
4933
|
default: h(() => [
|
|
4925
|
-
t("div",
|
|
4934
|
+
t("div", Fd, [
|
|
4926
4935
|
t("button", {
|
|
4927
4936
|
type: "button",
|
|
4928
4937
|
class: "-m-2.5 p-2.5",
|
|
@@ -5023,7 +5032,7 @@ const An = /* @__PURE__ */ de(Dn, [["render", zn]]), Fn = /* @__PURE__ */ B({
|
|
|
5023
5032
|
class: "hidden lg:block lg:h-6 lg:w-px lg:bg-gray-200",
|
|
5024
5033
|
"aria-hidden": "true"
|
|
5025
5034
|
}, null, -1)),
|
|
5026
|
-
m(f(
|
|
5035
|
+
m(f(Fe), {
|
|
5027
5036
|
as: "div",
|
|
5028
5037
|
class: "relative"
|
|
5029
5038
|
}, {
|
|
@@ -5097,8 +5106,8 @@ const An = /* @__PURE__ */ de(Dn, [["render", zn]]), Fn = /* @__PURE__ */ B({
|
|
|
5097
5106
|
setup(e, { emit: g }) {
|
|
5098
5107
|
const i = e, s = g, o = (c) => {
|
|
5099
5108
|
s("statClick", c);
|
|
5100
|
-
}, r = () => i.dynamicStats.length <= 5 ? `lg:grid-cols-${i.dynamicStats.length}` : `lg:grid-cols-${Math.floor(i.dynamicStats.length / 2)} xl:grid-cols-${i.dynamicStats.length}`, a =
|
|
5101
|
-
return
|
|
5109
|
+
}, r = () => i.dynamicStats.length <= 5 ? `lg:grid-cols-${i.dynamicStats.length}` : `lg:grid-cols-${Math.floor(i.dynamicStats.length / 2)} xl:grid-cols-${i.dynamicStats.length}`, a = F(0), d = F(r());
|
|
5110
|
+
return Le(() => a.value += 1), (c, v) => (l(), n("div", {
|
|
5102
5111
|
class: y([d.value, "grid grid-cols-1 md:grid-cols-2 gap-4"]),
|
|
5103
5112
|
key: a.value
|
|
5104
5113
|
}, [
|
|
@@ -5136,7 +5145,7 @@ const An = /* @__PURE__ */ de(Dn, [["render", zn]]), Fn = /* @__PURE__ */ B({
|
|
|
5136
5145
|
emits: ["selectChanged"],
|
|
5137
5146
|
setup(e, { emit: g }) {
|
|
5138
5147
|
const i = g, s = e;
|
|
5139
|
-
let o =
|
|
5148
|
+
let o = F(Array.isArray(s.select) ? s.select : s.select ? [s.select] : []);
|
|
5140
5149
|
const r = (d) => {
|
|
5141
5150
|
i("selectChanged", d);
|
|
5142
5151
|
};
|
|
@@ -5298,7 +5307,7 @@ const An = /* @__PURE__ */ de(Dn, [["render", zn]]), Fn = /* @__PURE__ */ B({
|
|
|
5298
5307
|
},
|
|
5299
5308
|
emits: ["smartFilterSelected", "smartInputChanged", "smartSelectChanged", "smartOptionSelected", "rightAddOnClicked"],
|
|
5300
5309
|
setup(e, { emit: g }) {
|
|
5301
|
-
const i = e, s = g, o = zt(X), r =
|
|
5310
|
+
const i = e, s = g, o = zt(X), r = F(i.items[0].props), a = (d) => {
|
|
5302
5311
|
switch (d.type) {
|
|
5303
5312
|
case "uiInput":
|
|
5304
5313
|
o.value = X, s("smartFilterSelected", d.value);
|
|
@@ -5357,7 +5366,7 @@ const Qe = /* @__PURE__ */ de(ac, [["render", nc]]), oc = { class: "flex flex-co
|
|
|
5357
5366
|
},
|
|
5358
5367
|
emits: ["smartFilterMultipleSent", "smartFilterSelected", "smartInputChanged", "smartSelectChanged", "smartOptionSelected", "rightAddOnClicked"],
|
|
5359
5368
|
setup(e, { emit: g }) {
|
|
5360
|
-
const i = e, s = g, o =
|
|
5369
|
+
const i = e, s = g, o = F([JSON.parse(JSON.stringify(i))]), r = F([{ name: i.items[0].name, value: null }]), a = () => {
|
|
5361
5370
|
o.value.push(JSON.parse(JSON.stringify(i))), r.value.push({ name: i.items[0].name, value: null });
|
|
5362
5371
|
}, d = () => {
|
|
5363
5372
|
r.value.pop(), o.value.pop();
|
|
@@ -5478,7 +5487,7 @@ const Qe = /* @__PURE__ */ de(ac, [["render", nc]]), oc = { class: "flex flex-co
|
|
|
5478
5487
|
},
|
|
5479
5488
|
emits: ["smartFiltersSent", "smartFiltersCleared", "smartFilterDeleted"],
|
|
5480
5489
|
setup(e, { emit: g }) {
|
|
5481
|
-
const i = e, s = g, o =
|
|
5490
|
+
const i = e, s = g, o = F({ id: "1", name: i.literals.and }), r = he([]), a = F(i.availableCategories[0] || {}), d = (w) => w ? w === "uiInput" ? i.literals.contains : i.literals.is : "", c = (w) => {
|
|
5482
5491
|
r.splice(0, r.length), w.logicOperator === "and" || w.logicOperator === i.literals.and ? o.value = { id: "1", name: i.literals.and } : (w.logicOperator === "or" || w.logicOperator === i.literals.or) && (o.value = { id: "2", name: i.literals.or }), w.filters.forEach((P) => {
|
|
5483
5492
|
const R = i.availableCategories.find((N) => N.name === P.name);
|
|
5484
5493
|
if (R) {
|
|
@@ -5505,18 +5514,18 @@ const Qe = /* @__PURE__ */ de(ac, [["render", nc]]), oc = { class: "flex flex-co
|
|
|
5505
5514
|
}, { deep: !0, immediate: !0 }), W(() => i.filters, (w) => {
|
|
5506
5515
|
w && c(w);
|
|
5507
5516
|
}, { deep: !0, immediate: !0 });
|
|
5508
|
-
const v =
|
|
5517
|
+
const v = L(() => [
|
|
5509
5518
|
{ id: "1", name: i.literals.and },
|
|
5510
5519
|
{ id: "2", name: i.literals.or }
|
|
5511
|
-
]), x =
|
|
5520
|
+
]), x = L(() => i.availableCategories.map((w) => ({
|
|
5512
5521
|
id: w.name,
|
|
5513
5522
|
name: w.name,
|
|
5514
5523
|
label: w.label
|
|
5515
|
-
}))), k =
|
|
5524
|
+
}))), k = L(() => ({
|
|
5516
5525
|
id: a.value.name,
|
|
5517
5526
|
label: a.value.label,
|
|
5518
5527
|
name: a.value.name
|
|
5519
|
-
})), j =
|
|
5528
|
+
})), j = L(() => r.map((w) => w.type === "uiInput" ? {
|
|
5520
5529
|
name: w.label,
|
|
5521
5530
|
operator: i.literals.contains,
|
|
5522
5531
|
value: w.props.value || ""
|
|
@@ -5726,7 +5735,7 @@ const Qe = /* @__PURE__ */ de(ac, [["render", nc]]), oc = { class: "flex flex-co
|
|
|
5726
5735
|
},
|
|
5727
5736
|
emits: ["compareButtonClicked", "filesUploaded", "checkboxChanged", "generateNewFile"],
|
|
5728
5737
|
setup(e, { emit: g }) {
|
|
5729
|
-
const i = e, s = g, o =
|
|
5738
|
+
const i = e, s = g, o = L(() => i.toCompare && Object.keys(i.toCompare).length > 0 && i.toCompare.constructor === Object), r = L(() => o.value ? Object.entries(i.toCompare).map(([v, x]) => ({
|
|
5730
5739
|
name: v,
|
|
5731
5740
|
commands: x
|
|
5732
5741
|
})) : []), a = (v, x, k, j) => {
|
|
@@ -5896,14 +5905,14 @@ const Qe = /* @__PURE__ */ de(ac, [["render", nc]]), oc = { class: "flex flex-co
|
|
|
5896
5905
|
uiIcon: A,
|
|
5897
5906
|
uiInput: X,
|
|
5898
5907
|
uiInputFile: Te,
|
|
5899
|
-
uiLoadingScreen:
|
|
5908
|
+
uiLoadingScreen: Ln,
|
|
5900
5909
|
uiModal: ht,
|
|
5901
5910
|
uiNoResults: bt,
|
|
5902
5911
|
uiNotification: _a,
|
|
5903
5912
|
uiPagination: Jn,
|
|
5904
5913
|
uiPriceCalendar: hn,
|
|
5905
5914
|
uiRangeSlider: xd,
|
|
5906
|
-
uiRightSidebar:
|
|
5915
|
+
uiRightSidebar: Fr,
|
|
5907
5916
|
uiSectionTitle: wd,
|
|
5908
5917
|
uiSelect: Vl,
|
|
5909
5918
|
uiSelectMultiple: xt,
|
|
@@ -5938,7 +5947,7 @@ const Qe = /* @__PURE__ */ de(ac, [["render", nc]]), oc = { class: "flex flex-co
|
|
|
5938
5947
|
"number",
|
|
5939
5948
|
"date",
|
|
5940
5949
|
"datetime-local"
|
|
5941
|
-
], Ac = ["black", "gray", "white"], Rc = [...zc, ...Ac],
|
|
5950
|
+
], Ac = ["black", "gray", "white"], Rc = [...zc, ...Ac], Lc = ["small", "medium", "big"], Fc = ["bigger", "huge", "massive"], _c = [...Lc, ...Fc], Uc = ["default", "success", "warning", "danger"];
|
|
5942
5951
|
function Oc(e) {
|
|
5943
5952
|
for (const g in Ke)
|
|
5944
5953
|
e.component(g, Ke[g]);
|
|
@@ -5947,10 +5956,10 @@ const Hc = { install: Oc };
|
|
|
5947
5956
|
export {
|
|
5948
5957
|
Rc as AllColors,
|
|
5949
5958
|
_c as AllSizes,
|
|
5950
|
-
|
|
5959
|
+
Fc as BiggerSizes,
|
|
5951
5960
|
zc as Colors,
|
|
5952
5961
|
Ac as MonoColors,
|
|
5953
|
-
|
|
5962
|
+
Lc as Sizes,
|
|
5954
5963
|
Uc as Types,
|
|
5955
5964
|
qc as UiInputTypes,
|
|
5956
5965
|
Hc as default,
|
|
@@ -5974,14 +5983,14 @@ export {
|
|
|
5974
5983
|
A as uiIcon,
|
|
5975
5984
|
X as uiInput,
|
|
5976
5985
|
Te as uiInputFile,
|
|
5977
|
-
|
|
5986
|
+
Ln as uiLoadingScreen,
|
|
5978
5987
|
ht as uiModal,
|
|
5979
5988
|
bt as uiNoResults,
|
|
5980
5989
|
_a as uiNotification,
|
|
5981
5990
|
Jn as uiPagination,
|
|
5982
5991
|
hn as uiPriceCalendar,
|
|
5983
5992
|
xd as uiRangeSlider,
|
|
5984
|
-
|
|
5993
|
+
Fr as uiRightSidebar,
|
|
5985
5994
|
wd as uiSectionTitle,
|
|
5986
5995
|
Vl as uiSelect,
|
|
5987
5996
|
xt as uiSelectMultiple,
|