@hotelinking/ui 3.33.7 → 3.33.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ui.es.js +28 -28
- package/dist/ui.umd.cjs +1 -1
- package/package.json +1 -1
package/dist/ui.es.js
CHANGED
|
@@ -1904,21 +1904,21 @@ const yo = br(Vr, [["render", function(l2, a2, o2, s2, u2, d2) {
|
|
|
1904
1904
|
o2.value = e2, l2("rangeSelected", e2);
|
|
1905
1905
|
};
|
|
1906
1906
|
return (t3, l3) => (e(), n("ul", bo, [i("li", { class: a({ selected: "24h" === C(o2) }), onClick: l3[0] || (l3[0] = (e2) => s2("24h")) }, " 24H ", 2), i("li", { class: a({ selected: "7d" === C(o2) }), onClick: l3[1] || (l3[1] = (e2) => s2("7d")) }, "7D", 2), i("li", { class: a({ selected: "1m" === C(o2) }), onClick: l3[2] || (l3[2] = (e2) => s2("1m")) }, "1M", 2), i("li", { class: a({ selected: "3m" === C(o2) }), onClick: l3[3] || (l3[3] = (e2) => s2("3m")) }, "3M", 2)]));
|
|
1907
|
-
} }), wo = { chart: { toolbar: { show: false }, zoom: { enabled: false } }, colors: ["#715aff", "#00ffff", "#aba9ba"], stroke: { show: true, curve: "stepline", lineCap: "butt", width: 1, dashArray: 0 }, dataLabels: { enabled: false }, markers: { strokeWidth: 0, size: 4, hover: { size: 8 } }, plotOptions: {} }, ko = { class: "
|
|
1908
|
-
const
|
|
1909
|
-
return (l3,
|
|
1910
|
-
} }),
|
|
1911
|
-
const
|
|
1912
|
-
return e(), n("footer",
|
|
1913
|
-
}]]),
|
|
1907
|
+
} }), wo = { chart: { toolbar: { show: false }, zoom: { enabled: false } }, colors: ["#715aff", "#00ffff", "#aba9ba"], stroke: { show: true, curve: "stepline", lineCap: "butt", width: 1, dashArray: 0 }, dataLabels: { enabled: false }, markers: { strokeWidth: 0, size: 4, hover: { size: 8 } }, plotOptions: {} }, ko = { class: "chart-header flex flex-row justify-between" }, So = { class: "text-sm font-medium text-gray-500 truncate" }, Co = { class: "chart-content" }, Oo = { class: "h-full w-full flex items-center justify-center flex-col" }, Do = i("p", { class: "text-xs uppercase text-gray-300 font-bold" }, "No data", -1), Mo = { class: "card chart apex-chart px-4 py-5 bg-white shadow rounded-lg overflow-hidden sm:p-6 flex grow h-80" }, _o = [i("div", { role: "status", class: "w-full animate-pulse h-full flex flex-col" }, [i("div", { class: "h-2.5 w-36 bg-gray-200 rounded-full mb-2.5" }), i("div", { class: "w-48 h-2 mb-6 bg-gray-200 rounded-full" }), i("div", { class: "flex flex-row justify-between items-baseline grow gap-x-1" }, [i("div", { class: "w-full bg-gray-200 rounded h-full" }), i("div", { class: "w-full bg-gray-200 rounded h-1/2" }), i("div", { class: "w-full bg-gray-200 rounded h-1/3" }), i("div", { class: "w-full bg-gray-200 rounded h-4/5" }), i("div", { class: "w-full bg-gray-200 rounded h-full" }), i("div", { class: "w-full bg-gray-200 rounded h-1/2" }), i("div", { class: "w-full bg-gray-200 rounded h-1/3" }), i("div", { class: "w-full bg-gray-200 rounded h-1/2" }), i("div", { class: "w-full bg-gray-200 rounded h-1/3" }), i("div", { class: "w-full bg-gray-200 rounded h-4/5" }), i("div", { class: "w-full bg-gray-200 rounded h-full" }), i("div", { class: "w-full bg-gray-200 rounded h-4/5" }), i("div", { class: "w-full bg-gray-200 rounded h-full" }), i("div", { class: "w-full bg-gray-200 rounded h-1/2" }), i("div", { class: "w-full bg-gray-200 rounded h-1/3" }), i("div", { class: "w-full bg-gray-200 rounded h-1/2" })])], -1)], Po = { name: "uiChart" }, jo = Object.assign(Po, { props: { title: String, id: { type: String, default: "noChartId" }, type: { type: String, default: "area" }, series: { type: Array, required: true }, options: { type: Object, required: true }, loading: { type: Boolean, default: true }, empty: { type: Boolean, default: false }, range: { type: String, default: "24h" }, horizontal: { type: Boolean, default: false }, stacked: { type: Boolean, default: false }, height: { type: Number, default: 320 } }, emits: ["selectedRange", "chartUpdated"], setup(t2, { emit: l2 }) {
|
|
1908
|
+
const o2 = t2, s2 = y(() => (o2.stacked && (wo.chart.stacked = true), { ...o2.options, ...wo, plotOptions: { bar: { horizontal: o2.horizontal } } })), u2 = y(() => o2.series), d2 = () => l2("chartUpdated");
|
|
1909
|
+
return (l3, o3) => (e(), n(c, null, [E(i("div", { class: a(["h-[" + t2.height + "px]", "card chart apex-chart px-4 py-5 bg-white shadow rounded-lg overflow-hidden sm:p-6 flex grow"]) }, [i("div", ko, [i("div", So, _(t2.title), 1), r(xo, { range: t2.range, onRangeSelected: o3[0] || (o3[0] = (e2) => l3.$emit("selectedRange", { range: e2, chartId: t2.id })) }, null, 8, ["range"])]), E(i("div", Co, [r(C(V), { type: t2.type, series: u2.value, width: "100%", height: t2.height, options: s2.value, onUpdated: d2, onMounted: d2 }, null, 8, ["type", "series", "height", "options"])], 512), [[B, !t2.empty]]), E(i("div", Oo, [r(q, { icon: C(Wl), color: "gray", loading: false, size: "huge" }, null, 8, ["icon"]), Do], 512), [[B, t2.empty]])], 2), [[B, !t2.loading]]), E(i("div", Mo, _o, 512), [[B, t2.loading]])], 64));
|
|
1910
|
+
} }), To = { name: "uiFooter" }, Eo = { class: "bg-white" }, Lo = [i("div", { class: "mx-auto py-6 px-4 sm:px-6 md:flex md:items-center md:justify-between lg:px-8" }, [i("div", { class: "mt-8 md:mt-0 md:order-1" }, [i("p", { class: "text-center text-base text-gray-400" }, "© Made by Hotelinking.")])], -1)];
|
|
1911
|
+
const Bo = br(To, [["render", function(t2, l2, a2, r2, o2, i2) {
|
|
1912
|
+
return e(), n("footer", Eo, Lo);
|
|
1913
|
+
}]]), Io = i("div", { class: "spinner h-12 w-12 mb-6" }, [i("img", { src: "https://images.hotelinking.com/ui/loader.gif", alt: "loading animation" })], -1), Ro = { name: "uiLoadScreen" }, Ao = Object.assign(Ro, { props: { title: String, message: String, fixed: { type: Boolean, default: true } }, setup: (t2) => (l2, r2) => (e(), n("div", { class: a([{ fixed: t2.fixed }, "load-screen h-full w-full top-0 left-0 z-50 flex flex-col items-center justify-center bg-gray-50"]) }, [Io, E(i("h2", { class: "text-xs font-bold text-center uppercase mb-2" }, _(t2.title), 513), [[B, t2.title]]), E(i("p", { class: "text-xs text-center uppercase md:w-1/4" }, _(t2.message), 513), [[B, t2.message]])], 2)) }), Fo = { key: 0, class: "py-6 flex items-center justify-between" }, No = { class: "flex-1 flex justify-between sm:hidden" }, $o = { href: "#", class: "relative inline-flex items-center px-4 py-2 border border-gray-300 text-sm font-medium rounded-md text-gray-700 bg-white hover:bg-gray-50" }, Ho = { href: "#", class: "ml-3 relative inline-flex items-center px-4 py-2 border border-gray-300 text-sm font-medium rounded-md text-gray-700 bg-white hover:bg-gray-50" }, Vo = { class: "hidden sm:flex-1 sm:flex sm:items-center sm:justify-between" }, Yo = { class: "text-sm text-gray-700" }, zo = { class: "font-bold" }, qo = { class: "font-bold" }, Uo = { class: "relative z-0 inline-flex rounded-md shadow-sm -space-x-px", "aria-label": "Pagination" }, Wo = { class: "sr-only" }, Ko = ["onClick"], Jo = { class: "sr-only" }, Go = { key: 1, class: "py-6 flex flex-row justify-between items-center animate-pulse" }, Xo = [i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/5" }, null, -1), i("div", { class: "h-10 w-32 bg-gray-200 rounded dark:bg-gray-300" }, null, -1)], Zo = { name: "uiPagination" }, Qo = Object.assign(Zo, { props: { current: { type: Number, requires: true }, total: { type: Number, requires: true }, loading: { type: Boolean, default: true } }, emits: ["changePage"], setup(t2, { emit: l2 }) {
|
|
1914
1914
|
const u2 = t2, d2 = s(3), p2 = y(() => Math.max(1, Number(u2.current) - Number(d2.value))), g2 = y(() => Math.min(Number(u2.current) + Number(d2.value), Number(u2.total))), f2 = y(() => {
|
|
1915
1915
|
let e2 = [];
|
|
1916
1916
|
for (let t3 = Number(p2.value); t3 <= Number(g2.value); t3++)
|
|
1917
1917
|
e2.push(t3);
|
|
1918
1918
|
return e2;
|
|
1919
1919
|
});
|
|
1920
|
-
return (s2, u3) => t2.loading ? (e(), n("div",
|
|
1921
|
-
} }), ti = { class: "hidden md:flex md:flex-col sticky md:inset-y-0" }, li = { class: "flex flex-col flex-grow overflow-y-auto" }, ai = { class: "grow flex flex-col" }, ni = { class: "flex-1 space-y-1", "aria-label": "Sidebar" }, ri = { key: 0 }, oi = ["onClick"], ii = { key: 0 }, si = { key: 1, class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/2" }, ui = { key: 0, class: "flex-1" }, di = { key: 1, class: "flex-1" }, ci = [i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/2" }, null, -1)], pi = { key: 0 }, gi = { key: 1, class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/2" }, fi = { name: "uiSidebar" }, mi = Object.assign(fi, { props: { navigation: { type: Array, required: true }, loading: { type: Boolean, default: true } }, emits: ["sideBarClick"], setup: (l2, { emit: o2 }) => (s2, u2) => (e(), n("div", ti, [i("div", li, [i("div", ai, [i("nav", ni, [(e(true), n(c, null, j(l2.navigation, (s3) => (e(), n(c, { key: s3.name }, [s3.children ? (e(), t(C(ll), { key: 1, as: "div", class: "space-y-1" }, { default: D(({ open: i2 }) => [r(C(al), { class: a([s3.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"]) }, { default: D(() => [r(q, { loading: l2.loading, icon: s3.icon, class: "mr-3 flex-shrink-0 h-6 w-6 text-gray-400 group-hover:text-gray-500", "aria-hidden": "true" }, null, 8, ["loading", "icon"]), l2.loading ? (e(), n("div", di, ci)) : (e(), n("span", ui, _(s3.name), 1)), r(C(zl), { class: a([i2 ? "text-gray-400 rotate-90" : "text-gray-400", "ml-3 flex-shrink-0 h-3 w-3 transform group-hover:text-gray-400 transition-colors ease-in-out duration-150"]) }, null, 8, ["class"])]), _: 2 }, 1032, ["class"]), r(C(nl), { class: "space-y-1" }, { default: D(() => [(e(true), n(c, null, j(s3.children, (a2) => (e(), t(C(al), { onClick: (e2) => o2("sideBarClick", a2.id), key: a2.name, class: "group w-full flex items-center pl-11 pr-2 py-2 text-sm font-medium text-gray-600 rounded-md hover:text-gray-900 hover:bg-gray-50" }, { default: D(() => [l2.loading ? (e(), n("div", gi)) : (e(), n("span", pi, _(a2.name), 1))]), _: 2 }, 1032, ["onClick"]))), 128))]), _: 2 }, 1024)]), _: 2 }, 1024)) : (e(), n("div", ri, [i("button", { onClick: (e2) => o2("sideBarClick", s3.id), class: a([s3.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 py-2 text-sm font-medium rounded-md"]) }, [r(q, { loading: l2.loading, icon: s3.icon, class: a([s3.current ? "text-white" : "text-gray-400 group-hover:text-gray-500", "mr-3 flex-shrink-0 h-6 w-6"]), "aria-hidden": "true" }, null, 8, ["loading", "icon", "class"]), l2.loading ? (e(), n("div", si)) : (e(), n("span", ii, _(s3.name), 1))], 10, oi)]))], 64))), 128))])])])])) }), vi = { key: 0 }, yi = { class: "ml-16 text-sm font-medium text-gray-500 truncate" }, bi = { class: "ml-16 flex items-baseline pb-5" }, hi = { class: "text-2xl font-semibold text-gray-900" }, xi = { class: "absolute bottom-0 inset-x-0 bg-gray-50 px-4 py-4 sm:px-6" }, wi = { class: "text-sm" }, ki = { key: 1 }, Si = { class: "relative bg-white pt-5 px-4 sm:pt-6 sm:px-6 shadow rounded-lg overflow-hidden h-full pb-6" }, Ci = { class: "absolute bg-gray-200 rounded-md p-3 animate-pulse" }, Oi = i("div", { class: "ml-16" }, [i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/2 mb-4 animate-pulse" })], -1), Di = i("div", { class: "ml-16" }, [i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/2 animate-pulse" })], -1), Mi = { name: "uiStats" }, _i = Object.assign(Mi, { props: { item: { type: Object, required: true }, loading: { type: Boolean, default: true } }, emits: ["statClick"], setup: (l2, { emit: o2 }) => (s2, u2) => l2.loading ? (e(), n("div", ki, [i("div", Si, [i("dt", null, [i("div", Ci, [r(q, { loading: l2.loading, icon: l2.item.icon, class: "h-6 w-6 text-white", "aria-hidden": "true" }, null, 8, ["loading", "icon"])]), Oi, Di])])])) : (e(), n("div", vi, [i("div", { class: a(["relative bg-white pt-5 px-4 sm:pt-6 sm:px-6 shadow rounded-lg overflow-hidden h-full", { "pb-12": l2.item.showFooter }]) }, [i("dt", null, [i("div", { class: a(["absolute rounded-md p-3", { "bg-indigo-500": !l2.item.color, "bg-green-500": "success" === l2.item.color, "bg-red-500": "danger" === l2.item.color, "bg-yellow-500": "warning" === l2.item.color }]) }, [r(q, { icon: l2.item.icon, class: "h-6 w-6 text-white", "aria-hidden": "true", loading: l2.loading }, null, 8, ["icon", "loading"])], 2), i("p", yi, _(l2.item.name), 1)]), i("dd", bi, [i("p", hi, _(l2.item.stat), 1), l2.item.changeType ? (e(), n("p", { key: 0, class: a([{ "text-green-600": "increase" === l2.item.changeType, "text-red-600": "decrease" === l2.item.changeType, "text-black": "neutral" === l2.item.changeType }, "ml-2 flex items-baseline text-sm font-semibold"]) }, ["increase" === l2.item.changeType ? (e(), t(C(Nl), { key: 0, class: "self-center flex-shrink-0 h-3 w-3 text-green-500", "aria-hidden": "true" })) : T("", true), "decrease" === l2.item.changeType ? (e(), t(C(Fl), { key: 1, class: "self-center flex-shrink-0 h-3 w-3 text-red-500", "aria-hidden": "true" })) : T("", true), M(" " + _(l2.item.change), 1)], 2)) : T("", true), E(i("div", xi, [i("div", wi, [i("span", { onClick: u2[0] || (u2[0] = (e2) => o2("statClick", l2.item.id)), class: "font-medium text-indigo-600 hover:text-indigo-500 cursor-pointer" }, _(l2.item.actionText), 1)])], 512), [[B, l2.item.showFooter]])])], 2)])) }), Pi = { key: 0, class: "overflow-hidden bg-white shadow sm:rounded-lg" }, ji = { class: "px-4 py-5 sm:px-6" }, Ti = { class: "text-lg font-medium leading-6 text-gray-900" }, Ei = { class: "mt-1 max-w-2xl text-sm text-gray-500" }, Li = { class: "border-t border-gray-200" }, Bi = { class: "text-sm font-medium text-gray-500" }, Ii = { key: 0, class: "mt-1 text-sm text-gray-900 sm:col-span-2 sm:mt-0 break-normal" }, Ri = { key: 1, class: "mt-1 text-sm text-gray-900 sm:col-span-2 sm:mt-0 break-normal" }, Ai = ["onClick"], Fi = { key: 3, class: "mt-1 text-sm text-gray-900 sm:col-span-2 sm:mt-0 break-words" }, Ni = { key: 1, class: "overflow-hidden bg-white shadow sm:rounded-lg" }, $i = A('<div class="px-4 py-5 sm:px-6 animate-pulse"><h3 class="text-lg font-medium leading-6 text-gray-900"><div class="h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/4"></div></h3><p class="mt-1 max-w-2xl text-sm text-gray-500"><div class="h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-2/5"></div></p></div>', 1), Hi = { class: "border-t border-gray-200" }, Vi = [i("dt", { class: "text-sm font-medium text-gray-500" }, [i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-12" })], -1), i("dd", { class: "mt-1 text-sm text-gray-900 sm:col-span-2 sm:mt-0 break-words" }, [i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-12" })], -1)], Yi = { name: "uiStripedCard" }, zi = Object.assign(Yi, { props: { title: String, subtitle: String, items: Object, loading: { type: Boolean, default: true } }, emits: ["itemClicked"], setup: (l2, { emit: o2 }) => (o3, s2) => l2.loading ? (e(), n("div", Ni, [$i, i("div", Hi, [i("dl", null, [(e(), n(c, null, j(5, (e2) => i("div", { key: e2, class: a(["px-4 py-5 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-6", [e2 % 2 == 0 ? "bg-gray-50" : "bg-white"]]) }, Vi, 2)), 64))])])])) : (e(), n("div", Pi, [i("div", ji, [i("h3", Ti, _(l2.title), 1), i("p", Ei, _(l2.subtitle), 1)]), i("div", Li, [i("dl", null, [(e(true), n(c, null, j(l2.items, (s3, u2) => (e(), n("div", { key: u2, class: a(["px-4 py-5 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-6", [u2 % 2 == 0 ? "bg-gray-50" : "bg-white"]]) }, [i("dt", Bi, _(s3.title), 1), "tag" === s3.type ? (e(), n("dd", Ii, [r(Ha, { color: s3.color }, { default: D(() => [M(_(s3.text), 1)]), _: 2 }, 1032, ["color"])])) : "tags" === s3.type ? (e(), n("dd", Ri, [(e(true), n(c, null, j(s3.tags, (a2, n2) => (e(), t(Ha, { loading: l2.loading, key: n2, color: a2.color, class: "mr-2 mb-2" }, { default: D(() => [M(_(a2.text), 1)]), _: 2 }, 1032, ["loading", "color"]))), 128))])) : "link" === s3.type ? (e(), n("dd", { key: 2, class: "mt-1 text-sm text-indigo-600 hover:text-indigo-400 sm:col-span-2 sm:mt-0 cursor-pointer", onClick: (e2) => o3.$emit("itemClicked", s3.emits) }, _(s3.text), 9, Ai)) : (e(), n("dd", Fi, _(s3.text), 1))], 2))), 128))])])])) }), qi = { class: "absolute top-10 bg-indigo-600 text-white text-xs p-2 rounded z-10 font-light w-60 flex flex-row items-start" }, Ui = i("svg", { class: "absolute -top-3 left-0", xmlns: "http://www.w3.org/2000/svg", width: "27.687", height: "26.954", viewBox: "0 0 27.687 26.954" }, [i("path", { id: "Polígono_1", "data-name": "Polígono 1", d: "M10.5,0,21,19H0Z", transform: "translate(0 10.5) rotate(-30)", fill: "#4f46e5" })], -1), Wi = { class: "ml-2" }, Ki = { __name: "tooltip", props: { tip: { type: String, required: true } }, setup: (t2) => (l2, a2) => (e(), n("div", qi, [Ui, i("div", null, [r(q, { icon: C(Xl), loading: false, color: "white", size: "big" }, null, 8, ["icon"])]), i("span", Wi, _(t2.tip), 1)])) }, Ji = { key: 0 }, Gi = { class: "flex flex-col" }, Xi = { class: "-my-2 overflow-x-auto" }, Zi = { class: "inline-block min-w-full py-2 align-middle px-1" }, Qi = { class: "relative overflow-hidden shadow ring-1 ring-black ring-opacity-5 md:rounded-lg" }, es = { key: 0, 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" }, ts = ["onClick"], ls = { class: "min-w-full table-fixed divide-y divide-gray-300" }, as = { class: "bg-gray-50" }, ns = ["checked", "indeterminate"], rs = ["onMouseover", "onMouseleave"], os = ["onClick"], is = { key: 2, class: "group flex items-center uppercase text-xs" }, ss = { class: "divide-y divide-gray-200 bg-white" }, us = { key: 0, class: "absolute inset-y-0 left-0 w-0.5 bg-indigo-600" }, ds = ["value"], cs = ["onClick"], ps = { key: 2 }, gs = { name: "uiTable" }, fs = Object.assign(gs, { props: { header: { type: Array, required: true }, items: { type: Array, required: true }, orderedBy: String, orderDirection: { type: String, default: "asc" }, actions: Array, loading: { type: Boolean, default: true } }, emits: ["tableAction", "orderBy"], setup(l2, { emit: o2 }) {
|
|
1920
|
+
return (s2, u3) => t2.loading ? (e(), n("div", Go, Xo)) : (e(), n("div", Fo, [i("div", No, [i("a", $o, [o(s2.$slots, "previous")]), i("a", Ho, [o(s2.$slots, "next")])]), i("div", Vo, [i("div", null, [i("p", Yo, [o(s2.$slots, "showing"), M(), i("span", zo, _(t2.current + " "), 1), o(s2.$slots, "of"), M(), i("span", qo, _(t2.total), 1)])]), i("div", null, [i("nav", Uo, [E(i("button", { onClick: u3[0] || (u3[0] = (e2) => l2("changePage", t2.current - 1)), class: "relative inline-flex items-center px-2 py-2 rounded-l-md border border-gray-300 bg-white text-sm font-medium text-gray-500 hover:bg-gray-50" }, [i("span", Wo, [o(s2.$slots, "previous")]), r(C(Yl), { class: "h-5 w-5", "aria-hidden": "true" })], 512), [[B, 1 !== t2.current]]), (e(true), n(c, null, j(f2.value, (r2) => (e(), n("button", { onClick: (e2) => l2("changePage", r2), key: r2, "aria-current": "page", class: a([[r2 === t2.current ? "z-10 bg-indigo-50 border-indigo-500 text-indigo-600" : "bg-white border-gray-300 text-gray-500 hover:bg-gray-50"], "relative inline-flex items-center px-4 py-2 border text-sm font-medium"]) }, _(r2), 11, Ko))), 128)), E(i("button", { onClick: u3[1] || (u3[1] = (e2) => l2("changePage", t2.current + 1)), class: "relative inline-flex items-center px-2 py-2 rounded-r-md border border-gray-300 bg-white text-sm font-medium text-gray-500 hover:bg-gray-50" }, [i("span", Jo, [o(s2.$slots, "next")]), r(C(zl), { class: "h-5 w-5", "aria-hidden": "true" })], 512), [[B, t2.current !== t2.total]])])])])]));
|
|
1921
|
+
} }), ei = { class: "hidden md:flex md:flex-col sticky md:inset-y-0" }, ti = { class: "flex flex-col flex-grow overflow-y-auto" }, li = { class: "grow flex flex-col" }, ai = { class: "flex-1 space-y-1", "aria-label": "Sidebar" }, ni = { key: 0 }, ri = ["onClick"], oi = { key: 0 }, ii = { key: 1, class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/2" }, si = { key: 0, class: "flex-1" }, ui = { key: 1, class: "flex-1" }, di = [i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/2" }, null, -1)], ci = { key: 0 }, pi = { key: 1, class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/2" }, gi = { name: "uiSidebar" }, fi = Object.assign(gi, { props: { navigation: { type: Array, required: true }, loading: { type: Boolean, default: true } }, emits: ["sideBarClick"], setup: (l2, { emit: o2 }) => (s2, u2) => (e(), n("div", ei, [i("div", ti, [i("div", li, [i("nav", ai, [(e(true), n(c, null, j(l2.navigation, (s3) => (e(), n(c, { key: s3.name }, [s3.children ? (e(), t(C(ll), { key: 1, as: "div", class: "space-y-1" }, { default: D(({ open: i2 }) => [r(C(al), { class: a([s3.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"]) }, { default: D(() => [r(q, { loading: l2.loading, icon: s3.icon, class: "mr-3 flex-shrink-0 h-6 w-6 text-gray-400 group-hover:text-gray-500", "aria-hidden": "true" }, null, 8, ["loading", "icon"]), l2.loading ? (e(), n("div", ui, di)) : (e(), n("span", si, _(s3.name), 1)), r(C(zl), { class: a([i2 ? "text-gray-400 rotate-90" : "text-gray-400", "ml-3 flex-shrink-0 h-3 w-3 transform group-hover:text-gray-400 transition-colors ease-in-out duration-150"]) }, null, 8, ["class"])]), _: 2 }, 1032, ["class"]), r(C(nl), { class: "space-y-1" }, { default: D(() => [(e(true), n(c, null, j(s3.children, (a2) => (e(), t(C(al), { onClick: (e2) => o2("sideBarClick", a2.id), key: a2.name, class: "group w-full flex items-center pl-11 pr-2 py-2 text-sm font-medium text-gray-600 rounded-md hover:text-gray-900 hover:bg-gray-50" }, { default: D(() => [l2.loading ? (e(), n("div", pi)) : (e(), n("span", ci, _(a2.name), 1))]), _: 2 }, 1032, ["onClick"]))), 128))]), _: 2 }, 1024)]), _: 2 }, 1024)) : (e(), n("div", ni, [i("button", { onClick: (e2) => o2("sideBarClick", s3.id), class: a([s3.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 py-2 text-sm font-medium rounded-md"]) }, [r(q, { loading: l2.loading, icon: s3.icon, class: a([s3.current ? "text-white" : "text-gray-400 group-hover:text-gray-500", "mr-3 flex-shrink-0 h-6 w-6"]), "aria-hidden": "true" }, null, 8, ["loading", "icon", "class"]), l2.loading ? (e(), n("div", ii)) : (e(), n("span", oi, _(s3.name), 1))], 10, ri)]))], 64))), 128))])])])])) }), mi = { key: 0 }, vi = { class: "ml-16 text-sm font-medium text-gray-500 truncate" }, yi = { class: "ml-16 flex items-baseline pb-5" }, bi = { class: "text-2xl font-semibold text-gray-900" }, hi = { class: "absolute bottom-0 inset-x-0 bg-gray-50 px-4 py-4 sm:px-6" }, xi = { class: "text-sm" }, wi = { key: 1 }, ki = { class: "relative bg-white pt-5 px-4 sm:pt-6 sm:px-6 shadow rounded-lg overflow-hidden h-full pb-6" }, Si = { class: "absolute bg-gray-200 rounded-md p-3 animate-pulse" }, Ci = i("div", { class: "ml-16" }, [i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/2 mb-4 animate-pulse" })], -1), Oi = i("div", { class: "ml-16" }, [i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/2 animate-pulse" })], -1), Di = { name: "uiStats" }, Mi = Object.assign(Di, { props: { item: { type: Object, required: true }, loading: { type: Boolean, default: true } }, emits: ["statClick"], setup: (l2, { emit: o2 }) => (s2, u2) => l2.loading ? (e(), n("div", wi, [i("div", ki, [i("dt", null, [i("div", Si, [r(q, { loading: l2.loading, icon: l2.item.icon, class: "h-6 w-6 text-white", "aria-hidden": "true" }, null, 8, ["loading", "icon"])]), Ci, Oi])])])) : (e(), n("div", mi, [i("div", { class: a(["relative bg-white pt-5 px-4 sm:pt-6 sm:px-6 shadow rounded-lg overflow-hidden h-full", { "pb-12": l2.item.showFooter }]) }, [i("dt", null, [i("div", { class: a(["absolute rounded-md p-3", { "bg-indigo-500": !l2.item.color, "bg-green-500": "success" === l2.item.color, "bg-red-500": "danger" === l2.item.color, "bg-yellow-500": "warning" === l2.item.color }]) }, [r(q, { icon: l2.item.icon, class: "h-6 w-6 text-white", "aria-hidden": "true", loading: l2.loading }, null, 8, ["icon", "loading"])], 2), i("p", vi, _(l2.item.name), 1)]), i("dd", yi, [i("p", bi, _(l2.item.stat), 1), l2.item.changeType ? (e(), n("p", { key: 0, class: a([{ "text-green-600": "increase" === l2.item.changeType, "text-red-600": "decrease" === l2.item.changeType, "text-black": "neutral" === l2.item.changeType }, "ml-2 flex items-baseline text-sm font-semibold"]) }, ["increase" === l2.item.changeType ? (e(), t(C(Nl), { key: 0, class: "self-center flex-shrink-0 h-3 w-3 text-green-500", "aria-hidden": "true" })) : T("", true), "decrease" === l2.item.changeType ? (e(), t(C(Fl), { key: 1, class: "self-center flex-shrink-0 h-3 w-3 text-red-500", "aria-hidden": "true" })) : T("", true), M(" " + _(l2.item.change), 1)], 2)) : T("", true), E(i("div", hi, [i("div", xi, [i("span", { onClick: u2[0] || (u2[0] = (e2) => o2("statClick", l2.item.id)), class: "font-medium text-indigo-600 hover:text-indigo-500 cursor-pointer" }, _(l2.item.actionText), 1)])], 512), [[B, l2.item.showFooter]])])], 2)])) }), _i = { key: 0, class: "overflow-hidden bg-white shadow sm:rounded-lg" }, Pi = { class: "px-4 py-5 sm:px-6" }, ji = { class: "text-lg font-medium leading-6 text-gray-900" }, Ti = { class: "mt-1 max-w-2xl text-sm text-gray-500" }, Ei = { class: "border-t border-gray-200" }, Li = { class: "text-sm font-medium text-gray-500" }, Bi = { key: 0, class: "mt-1 text-sm text-gray-900 sm:col-span-2 sm:mt-0 break-normal" }, Ii = { key: 1, class: "mt-1 text-sm text-gray-900 sm:col-span-2 sm:mt-0 break-normal" }, Ri = ["onClick"], Ai = { key: 3, class: "mt-1 text-sm text-gray-900 sm:col-span-2 sm:mt-0 break-words" }, Fi = { key: 1, class: "overflow-hidden bg-white shadow sm:rounded-lg" }, Ni = A('<div class="px-4 py-5 sm:px-6 animate-pulse"><h3 class="text-lg font-medium leading-6 text-gray-900"><div class="h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/4"></div></h3><p class="mt-1 max-w-2xl text-sm text-gray-500"><div class="h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-2/5"></div></p></div>', 1), $i = { class: "border-t border-gray-200" }, Hi = [i("dt", { class: "text-sm font-medium text-gray-500" }, [i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-12" })], -1), i("dd", { class: "mt-1 text-sm text-gray-900 sm:col-span-2 sm:mt-0 break-words" }, [i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-12" })], -1)], Vi = { name: "uiStripedCard" }, Yi = Object.assign(Vi, { props: { title: String, subtitle: String, items: Object, loading: { type: Boolean, default: true } }, emits: ["itemClicked"], setup: (l2, { emit: o2 }) => (o3, s2) => l2.loading ? (e(), n("div", Fi, [Ni, i("div", $i, [i("dl", null, [(e(), n(c, null, j(5, (e2) => i("div", { key: e2, class: a(["px-4 py-5 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-6", [e2 % 2 == 0 ? "bg-gray-50" : "bg-white"]]) }, Hi, 2)), 64))])])])) : (e(), n("div", _i, [i("div", Pi, [i("h3", ji, _(l2.title), 1), i("p", Ti, _(l2.subtitle), 1)]), i("div", Ei, [i("dl", null, [(e(true), n(c, null, j(l2.items, (s3, u2) => (e(), n("div", { key: u2, class: a(["px-4 py-5 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-6", [u2 % 2 == 0 ? "bg-gray-50" : "bg-white"]]) }, [i("dt", Li, _(s3.title), 1), "tag" === s3.type ? (e(), n("dd", Bi, [r(Ha, { color: s3.color }, { default: D(() => [M(_(s3.text), 1)]), _: 2 }, 1032, ["color"])])) : "tags" === s3.type ? (e(), n("dd", Ii, [(e(true), n(c, null, j(s3.tags, (a2, n2) => (e(), t(Ha, { loading: l2.loading, key: n2, color: a2.color, class: "mr-2 mb-2" }, { default: D(() => [M(_(a2.text), 1)]), _: 2 }, 1032, ["loading", "color"]))), 128))])) : "link" === s3.type ? (e(), n("dd", { key: 2, class: "mt-1 text-sm text-indigo-600 hover:text-indigo-400 sm:col-span-2 sm:mt-0 cursor-pointer", onClick: (e2) => o3.$emit("itemClicked", s3.emits) }, _(s3.text), 9, Ri)) : (e(), n("dd", Ai, _(s3.text), 1))], 2))), 128))])])])) }), zi = { class: "absolute top-10 bg-indigo-600 text-white text-xs p-2 rounded z-10 font-light w-60 flex flex-row items-start" }, qi = i("svg", { class: "absolute -top-3 left-0", xmlns: "http://www.w3.org/2000/svg", width: "27.687", height: "26.954", viewBox: "0 0 27.687 26.954" }, [i("path", { id: "Polígono_1", "data-name": "Polígono 1", d: "M10.5,0,21,19H0Z", transform: "translate(0 10.5) rotate(-30)", fill: "#4f46e5" })], -1), Ui = { class: "ml-2" }, Wi = { __name: "tooltip", props: { tip: { type: String, required: true } }, setup: (t2) => (l2, a2) => (e(), n("div", zi, [qi, i("div", null, [r(q, { icon: C(Xl), loading: false, color: "white", size: "big" }, null, 8, ["icon"])]), i("span", Ui, _(t2.tip), 1)])) }, Ki = { key: 0 }, Ji = { class: "flex flex-col" }, Gi = { class: "-my-2 overflow-x-auto" }, Xi = { class: "inline-block min-w-full py-2 align-middle px-1" }, Zi = { class: "relative overflow-hidden shadow ring-1 ring-black ring-opacity-5 md:rounded-lg" }, Qi = { key: 0, 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" }, es = ["onClick"], ts = { class: "min-w-full table-fixed divide-y divide-gray-300" }, ls = { class: "bg-gray-50" }, as = ["checked", "indeterminate"], ns = ["onMouseover", "onMouseleave"], rs = ["onClick"], os = { key: 2, class: "group flex items-center uppercase text-xs" }, is = { class: "divide-y divide-gray-200 bg-white" }, ss = { key: 0, class: "absolute inset-y-0 left-0 w-0.5 bg-indigo-600" }, us = ["value"], ds = ["onClick"], cs = { key: 2 }, ps = { name: "uiTable" }, gs = Object.assign(ps, { props: { header: { type: Array, required: true }, items: { type: Array, required: true }, orderedBy: String, orderDirection: { type: String, default: "asc" }, actions: Array, loading: { type: Boolean, default: true } }, emits: ["tableAction", "orderBy"], setup(l2, { emit: o2 }) {
|
|
1922
1922
|
const u2 = l2;
|
|
1923
1923
|
let d2 = s([]);
|
|
1924
1924
|
s(false);
|
|
@@ -1928,39 +1928,39 @@ const Io = br(Eo, [["render", function(t2, l2, a2, r2, o2, i2) {
|
|
|
1928
1928
|
};
|
|
1929
1929
|
return (s2, u3) => {
|
|
1930
1930
|
var _a2, _b;
|
|
1931
|
-
return l2.loading ? (e(), t(Br, { key: 1 })) : (e(), n("div",
|
|
1931
|
+
return l2.loading ? (e(), t(Br, { key: 1 })) : (e(), n("div", Ki, [i("div", Ji, [i("div", Gi, [i("div", Xi, [i("div", Zi, [((_a2 = C(d2)) == null ? void 0 : _a2.length) > 0 && ((_b = l2.actions) == null ? void 0 : _b.length) > 0 ? (e(), n("div", Qi, [(e(true), n(c, null, j(l2.actions, (t2, l3) => (e(), n("button", { onClick: (e2) => o2("tableAction", { action: t2.id, items: C(d2) }), key: l3, type: "button", class: "inline-flex items-center rounded bg-indigo-600 hover:bg-indigo-800 px-2.5 py-1.5 text-xs font-medium text-white shadow-sm disabled:cursor-not-allowed disabled:opacity-30" }, _(t2.name), 9, es))), 128))])) : T("", true), i("table", ts, [i("thead", ls, [i("tr", null, [i("th", { scope: "col", class: a([l2.actions ? "px-6 sm:px-8" : "px-3", "relative"]) }, [l2.actions ? (e(), n("input", { key: 0, checked: g2.value || C(d2).length === l2.items.length, indeterminate: g2.value, class: "absolute left-4 top-1/2 -mt-2 h-4 w-4 rounded border-gray-300 text-indigo-600 focus:ring-indigo-500", type: "checkbox", onChange: u3[0] || (u3[0] = (e2) => $(d2) ? d2.value = e2.target.checked ? l2.items.map((e3) => e3.id) : [] : d2 = e2.target.checked ? l2.items.map((e3) => e3.id) : []) }, null, 40, as)) : T("", true)], 2), (e(true), n(c, null, j(l2.header, (s3, u4) => (e(), n("th", { key: u4, class: "py-3.5 pr-3 text-left font-semibold text-gray-900 flex-wrap relative", scope: "col", onMouseover: (e2) => f2(s3.name, true), onMouseleave: (e2) => f2(s3.name, false) }, [s3.tooltip ? E((e(), t(Wi, { key: 0, tip: s3.tooltip }, null, 8, ["tip"])), [[B, C(p2) === s3.name]]) : T("", true), s3.value ? (e(), n("button", { key: 1, class: "group flex items-center uppercase text-xs relative", onClick: (e2) => o2("orderBy", { value: s3.value, orderDirection: "asc" === l2.orderDirection ? "desc" : "asc" }) }, [i("span", null, _(s3.name), 1), i("span", { class: a([[s3.value === l2.orderedBy ? "bg-indigo-600 text-white group-hover:bg-gray-300" : "text-gray-400 group-hover:visible group-focus:visible"], "ml-2 flex-none rounded group-hover:bg-indigo-200 group-hover:text-white"]) }, [r(q, { icon: "asc" === l2.orderDirection ? C(Vl) : C(Ul), loading: l2.loading, color: s3.value === l2.orderedBy ? "white" : "primary" }, null, 8, ["icon", "loading", "color"])], 2)], 8, rs)) : (e(), n("p", os, [i("span", null, _(s3.name), 1)]))], 40, ns))), 128))])]), i("tbody", is, [(e(true), n(c, null, j(l2.items, (r2, s3) => {
|
|
1932
1932
|
var _a3, _b2;
|
|
1933
|
-
return e(), n("tr", { key: r2.id, class: a([C(d2).includes(r2.id) && "bg-gray-50", s3 % 2 == 0 ? void 0 : "bg-gray-50"]) }, [i("td", { class: a([((_a3 = l2.actions) == null ? void 0 : _a3.length) > 0 ? "w-2" : "w-0", "relative"]) }, [C(d2).includes(r2.id) ? (e(), n("div",
|
|
1933
|
+
return e(), n("tr", { key: r2.id, class: a([C(d2).includes(r2.id) && "bg-gray-50", s3 % 2 == 0 ? void 0 : "bg-gray-50"]) }, [i("td", { class: a([((_a3 = l2.actions) == null ? void 0 : _a3.length) > 0 ? "w-2" : "w-0", "relative"]) }, [C(d2).includes(r2.id) ? (e(), n("div", ss)) : T("", true), ((_b2 = l2.actions) == null ? void 0 : _b2.length) > 0 ? E((e(), n("input", { key: 1, "onUpdate:modelValue": u3[1] || (u3[1] = (e2) => $(d2) ? d2.value = e2 : d2 = e2), value: r2.id, class: "absolute left-4 top-1/2 -mt-2 h-4 w-4 rounded border-gray-300 text-indigo-600 focus:ring-indigo-500 flex-wrap", type: "checkbox" }, null, 8, us)), [[N, C(d2)]]) : T("", true)], 2), (e(true), n(c, null, j(r2.row, (i2, s4) => (e(), n("td", { key: s4, class: a(["whitespace-nowrap py-4 pr-3 text-sm", C(d2).includes(r2.id) ? "text-indigo-600" : "text-gray-900"]) }, ["object" == typeof i2 && "tag" === i2.type ? (e(), t(Ha, { key: 0, loading: l2.loading, color: i2.color }, { default: D(() => [M(_(i2.content), 1)]), _: 2 }, 1032, ["loading", "color"])) : "object" == typeof i2 && "link" === i2.type ? (e(), n("span", { key: 1, class: "text-indigo-600 hover:text-indigo-400 cursor-pointer", onClick: (e2) => o2(i2.emits, { id: r2.id, data: (r2 == null ? void 0 : r2.emitWith) || null }) }, _(i2.content), 9, ds)) : (e(), n("span", cs, _(i2), 1))], 2))), 128))], 2);
|
|
1934
1934
|
}), 128))])])])])])])]));
|
|
1935
1935
|
};
|
|
1936
|
-
} }),
|
|
1936
|
+
} }), fs = { class: "lg:hidden" }, ms = ["value"], vs = { class: "hidden lg:block" }, ys = { class: "border-b border-gray-200" }, bs = { class: "-mb-px flex space-x-8", "aria-label": "Tabs" }, hs = ["onClick", "aria-current"], xs = { name: "uiTabs" }, ws = Object.assign(xs, { props: { tabs: Array }, emits: ["tabClicked"], setup: (t2, { emit: l2 }) => (r2, o2) => (e(), n("div", null, [i("div", fs, [i("select", { onChange: o2[0] || (o2[0] = (e2) => {
|
|
1937
1937
|
l2("tabClicked", e2.target.value);
|
|
1938
|
-
}), id: "tabs", name: "tabs", class: "block w-full rounded-md border-gray-300 py-2 pl-3 pr-10 text-base focus:border-indigo-500 focus:outline-none focus:ring-indigo-500 sm:text-sm" }, [(e(true), n(c, null, j(t2.tabs, (t3) => (e(), n("option", { value: t3.id, key: t3.name }, _(t3.name), 9,
|
|
1938
|
+
}), id: "tabs", name: "tabs", class: "block w-full rounded-md border-gray-300 py-2 pl-3 pr-10 text-base focus:border-indigo-500 focus:outline-none focus:ring-indigo-500 sm:text-sm" }, [(e(true), n(c, null, j(t2.tabs, (t3) => (e(), n("option", { value: t3.id, key: t3.name }, _(t3.name), 9, ms))), 128))], 32)]), i("div", vs, [i("div", ys, [i("nav", bs, [(e(true), n(c, null, j(t2.tabs, (t3) => (e(), n("a", { key: t3.name, onClick: (e2) => l2("tabClicked", t3.id), class: a([t3.current ? "border-indigo-500 text-indigo-600" : "border-transparent text-gray-500 hover:text-gray-700 hover:border-gray-200", "whitespace-nowrap flex py-4 px-1 border-b-2 font-medium text-sm cursor-pointer"]), "aria-current": t3.current ? "page" : void 0 }, [M(_(t3.name) + " ", 1), t3.count ? (e(), n("span", { key: 0, class: a([t3.current ? "bg-indigo-100 text-indigo-600" : "bg-gray-100 text-gray-900", "hidden ml-3 py-0.5 px-2.5 rounded-full text-xs font-medium md:inline-block"]) }, _(t3.count), 3)) : T("", true)], 10, hs))), 128))])])])])) }), ks = { key: 0, class: "bg-white overflow-hidden shadow rounded-lg" }, Ss = { class: "px-4 py-5 sm:px-6" }, Cs = { class: "text-xl font-bold" }, Os = { class: "px-4 py-5 sm:p-6" }, Ds = { class: "flow-root" }, Ms = { class: "-mb-8", role: "list" }, _s = { class: "relative pb-8" }, Ps = { key: 0, class: "absolute left-4 top-4 -ml-px h-full w-0.5 bg-gray-200", "aria-hidden": "true" }, js = { class: "relative flex space-x-3" }, Ts = { class: "min-w-0 flex-1 pt-1.5 flex justify-between space-x-4 items-center" }, Es = { class: "text-sm text-gray-500" }, Ls = ["onClick"], Bs = { class: "text-right text-sm whitespace-nowrap text-gray-500" }, Is = ["datetime"], Rs = { class: "bg-gray-50 px-4 py-4 sm:px-6 z-10" }, As = { class: "text-sm" }, Fs = { class: "h-full w-full flex items-center justify-center flex-col mb-5" }, Ns = i("p", { class: "text-xs uppercase text-gray-300 font-bold" }, "No data", -1), $s = { key: 1, class: "bg-white overflow-hidden shadow rounded-lg" }, Hs = i("div", { class: "px-4 py-5 sm:px-6 animate-pulse" }, [i("h1", { class: "text-xl font-bold" }, [i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/4" })])], -1), Vs = { class: "px-4 py-5 sm:p-6 animate-pulse" }, Ys = { class: "flow-root" }, zs = { class: "-mb-8", role: "list" }, qs = { class: "relative pb-8" }, Us = { key: 0, class: "absolute left-4 top-4 -ml-px h-full w-0.5 bg-gray-200", "aria-hidden": "true" }, Ws = A('<div class="relative flex space-x-3"><div><span class="h-8 w-8 rounded-full bg-gray-300 flex items-center justify-center ring-4 ring-white"></span></div><div class="min-w-0 flex-1 pt-1.5 flex justify-between space-x-4 items-center"><div><p class="text-sm text-gray-500 flex-1"><div class="h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-full"></div></p></div><div class="text-right text-sm whitespace-nowrap text-gray-500 flex-1"><div class="h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/4"></div></div></div></div>', 1), Ks = i("div", { class: "bg-gray-50 px-4 py-4 sm:px-6 z-10 animate-pulse" }, [i("div", { class: "text-sm" }, [i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/4" })])], -1), Js = { name: "uiTimeline" }, Gs = Object.assign(Js, { props: { name: { type: String, required: true }, timeline: { type: Object }, loading: { type: Boolean, default: true }, empty: { type: Boolean, default: false } }, setup: (t2) => (l2, o2) => {
|
|
1939
1939
|
const s2 = F("uiIcon");
|
|
1940
|
-
return t2.loading ? (e(), n("div",
|
|
1941
|
-
} }),
|
|
1940
|
+
return t2.loading ? (e(), n("div", $s, [Hs, i("div", Vs, [i("div", Ys, [i("ul", zs, [(e(), n(c, null, j(10, (t3) => i("li", { key: l2.index }, [i("div", qs, [10 !== t3 ? (e(), n("span", Us)) : T("", true), Ws])])), 64))])])]), Ks])) : (e(), n("div", ks, [i("div", Ss, [i("h1", Cs, _(t2.name), 1)]), E(i("div", Os, [i("div", Ds, [i("ul", Ms, [(e(true), n(c, null, j(t2.timeline.items, (o3, u2) => (e(), n("li", { key: u2 }, [i("div", _s, [u2 !== t2.timeline.items.length - 1 ? (e(), n("span", Ps)) : T("", true), i("div", js, [i("div", null, [i("span", { class: a([o3.iconBackground, "h-8 w-8 rounded-full flex items-center justify-center ring-4 ring-white"]) }, [r(s2, { loading: t2.loading, icon: o3.icon, "aria-hidden": "true", class: "h-5 w-5 text-white", color: "white" }, null, 8, ["loading", "icon"])], 2)]), i("div", Ts, [i("div", null, [i("p", Es, [i("a", { onClick: (e2) => l2.$emit("timelineEventClicked", o3.linkId), class: "font-medium text-indigo-600 hover:text-indigo-800 cursor-pointer" }, _(o3.target), 9, Ls), M(" " + _(o3.content), 1)])]), i("div", Bs, [i("time", { datetime: o3.datetime }, _(o3.date), 9, Is)])])])])]))), 128))])])], 512), [[B, !t2.empty]]), E(i("div", Rs, [i("div", As, [i("a", { class: "cursor-pointer font-medium text-indigo-600 hover:text-indigo-500", onClick: o2[0] || (o2[0] = (e2) => l2.$emit("timelineFooterClicked", t2.timeline.id)) }, _(t2.timeline.footerText), 1)])], 512), [[B, !t2.empty]]), E(i("div", Fs, [r(q, { icon: C(Wl), color: "gray", loading: false, size: "huge" }, null, 8, ["icon"]), Ns], 512), [[B, t2.empty]])]));
|
|
1941
|
+
} }), Xs = { name: "uiTopbar", props: ["navigation", "logo", "profileMenu", "brand", "accountLogo", "alerted"], components: { Disclosure: ll, DisclosureButton: al, DisclosurePanel: nl, Menu: pl, MenuButton: gl, MenuItem: ml, MenuItems: fl, Bars3Icon: function(t2, l2) {
|
|
1942
1942
|
return e(), n("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", "stroke-width": "1.5", stroke: "currentColor", "aria-hidden": "true" }, [i("path", { "stroke-linecap": "round", "stroke-linejoin": "round", d: "M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25h16.5" })]);
|
|
1943
|
-
}, XMarkIcon: Ql } },
|
|
1944
|
-
const
|
|
1943
|
+
}, XMarkIcon: Ql } }, Zs = { class: "mx-auto px-6 lg:px-8" }, Qs = { class: "flex justify-between h-20" }, eu = { class: "flex" }, tu = { class: "-ml-2 mr-2 flex items-center lg:hidden" }, lu = i("span", { class: "sr-only" }, "Open main menu", -1), au = ["src"], nu = { class: "flex items-center" }, ru = { class: "md:ml-4 md:flex-shrink-0 md:flex md:items-center" }, ou = { class: "redCircle flex items-center justify-center h-4 w-4 bg-red-500 rounded-full absolute -top-0 -left-1" }, iu = [i("span", { class: "animate-ping absolute inline-flex h-4 w-4 bg-red-500 rounded-full opacity-75" }, null, -1)], su = ["src"], uu = ["onClick"], du = { class: "pt-2 pb-3 space-y-1" }, cu = ["onClick"], pu = { class: "pt-4 pb-3 border-t border-gray-200" }, gu = { class: "flex items-center px-4 sm:px-6" }, fu = { class: "flex-shrink-0" }, mu = ["src"], vu = { key: 0, class: "ml-3" }, yu = { class: "text-base font-medium text-gray-800" }, bu = { class: "text-sm font-medium text-gray-500" }, hu = { class: "mt-3 space-y-1" }, xu = ["onClick"];
|
|
1944
|
+
const wu = br(Xs, [["render", function(l2, o2, s2, u2, d2, p2) {
|
|
1945
1945
|
const g2 = F("Bars3Icon"), f2 = F("XMarkIcon"), m2 = F("DisclosureButton"), v2 = F("MenuButton"), y2 = F("MenuItem"), b2 = F("MenuItems"), h2 = F("Menu"), x2 = F("DisclosurePanel"), w2 = F("Disclosure");
|
|
1946
|
-
return e(), t(w2, { as: "nav", class: "bg-white shadow z-10" }, { default: D(({ open: u3 }) => [i("div",
|
|
1947
|
-
}]]),
|
|
1946
|
+
return e(), t(w2, { as: "nav", class: "bg-white shadow z-10" }, { default: D(({ open: u3 }) => [i("div", Zs, [i("div", Qs, [i("div", eu, [i("div", tu, [r(m2, { class: "inline-flex items-center justify-center p-2 rounded-md text-gray-400 hover:text-gray-500 hover:bg-gray-100 focus:outline-none focus:ring-2 focus:ring-inset focus:ring-indigo-500" }, { default: D(() => [lu, u3 ? (e(), t(f2, { key: 1, class: "block h-6 w-6", "aria-hidden": "true" })) : (e(), t(g2, { key: 0, class: "block h-6 w-6", "aria-hidden": "true" }))]), _: 2 }, 1024)]), i("div", { class: "flex-shrink-0 flex items-center cursor-pointer", onClick: o2[0] || (o2[0] = (e2) => l2.$emit("topBarClick", "logo")) }, [i("img", { class: "h-10", src: s2.logo, alt: "Hotelinking suite product logo" }, null, 8, au)])]), i("div", nu, [i("div", ru, [r(h2, { as: "div", class: "ml-3 relative" }, { default: D(() => [i("div", null, [E(r(v2, { class: "bg-white rounded-full flex text-sm focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 relative" }, { default: D(() => [E(i("div", ou, iu, 512), [[B, s2.alerted]]), i("img", { class: "h-10 w-10 rounded-full", src: s2.accountLogo }, null, 8, su)]), _: 1 }, 512), [[B, s2.accountLogo]])]), r(P, { "enter-active-class": "transition ease-out duration-200", "enter-from-class": "transform opacity-0 scale-95", "enter-to-class": "transform opacity-100 scale-100", "leave-active-class": "transition ease-in duration-75", "leave-from-class": "transform opacity-100 scale-100", "leave-to-class": "transform opacity-0 scale-95" }, { default: D(() => [r(b2, { class: "origin-top-right absolute right-0 mt-2 w-48 rounded-md shadow-lg py-1 bg-white ring-1 ring-black ring-opacity-5 focus:outline-none" }, { default: D(() => [(e(true), n(c, null, j(s2.profileMenu, (n2) => (e(), t(y2, { key: n2.name }, { default: D(({ active: e2 }) => [i("p", { onClick: (e3) => l2.$emit("topBarClick", n2.id), class: a(["cursor-pointer", [e2 ? "bg-gray-100" : "", "block px-4 py-2 text-sm text-gray-700"]]) }, _(n2.name), 11, uu)]), _: 2 }, 1024))), 128))]), _: 1 })]), _: 1 })]), _: 1 })])])])]), r(x2, { class: "lg:hidden" }, { default: D(() => [i("div", du, [(e(true), n(c, null, j(s2.navigation, (n2) => (e(), t(m2, { as: "template", key: n2.name, class: a(["block pl-3 pr-4 py-2 border-l-4 text-base font-medium sm:pl-5 sm:pr-6", { "bg-indigo-50 border-indigo-500 text-indigo-700": n2.current && true === n2.current, "border-transparent text-gray-500 hover:bg-gray-50 hover:border-gray-300 hover:text-gray-700": !n2.current }]) }, { default: D(() => [i("p", { onClick: (e2) => l2.$emit("topBarClick", n2.id) }, _(n2.name), 9, cu)]), _: 2 }, 1032, ["class"]))), 128))]), i("div", pu, [i("div", gu, [i("div", fu, [i("img", { class: "h-10 w-10 rounded-full", src: s2.accountLogo }, null, 8, mu)]), s2.brand ? (e(), n("div", vu, [i("div", yu, _(s2.brand.title), 1), i("div", bu, _(s2.brand.subtitle), 1)])) : T("", true)]), i("div", hu, [(e(true), n(c, null, j(s2.profileMenu, (a2) => (e(), t(m2, { as: "template", key: a2.name, class: "block px-4 py-2 text-base font-medium text-gray-500 hover:text-gray-800 hover:bg-gray-100 sm:px-6" }, { default: D(() => [i("p", { onClick: (e2) => l2.$emit("topBarClick", a2.id) }, _(a2.name), 9, xu)]), _: 2 }, 1024))), 128))])])]), _: 1 })]), _: 1 });
|
|
1947
|
+
}]]), ku = { class: "h-full" }, Su = { class: "chart-header flex flex-row justify-between" }, Cu = { class: "text-sm font-medium text-gray-500 truncate" }, Ou = { class: "chart-selector flex flex-row items-center justify-center" }, Du = { class: "chart-content pt-6" }, Mu = { class: "card chart funnel-chart px-4 py-5 bg-white shadow rounded-lg overflow-hidden sm:p-6 flex grow h-full" }, _u = [i("div", { role: "status", class: "w-full animate-pulse h-full flex flex-col" }, [i("div", { class: "h-2.5 w-36 bg-gray-200 rounded-full mb-2.5" }), i("div", { class: "w-48 h-2 mb-6 bg-gray-200 rounded-full" }), i("svg", { class: "w-80 h-full mx-auto animate-pulse fill-gray-300 grow", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 386 333.828" }, [i("path", { d: "M193,333.828V0H386s0,156.045-83.854,204.954S214.3,333.828,214.3,333.828Zm-21.3,0s-3.993-79.964-87.848-128.873S0,0,0,0H193V333.828Z" })])], -1)], Pu = { name: "uiFunnelChart" }, ju = Object.assign(Pu, { props: { title: String, id: { type: String, default: "noChartId" }, labels: { type: Array, required: true }, subLabels: { type: Array, required: true }, values: { type: Array, required: true }, loading: { type: Boolean, default: true } }, emits: ["selectedRange", "chartUpdated"], setup(l2, { emit: r2 }) {
|
|
1948
1948
|
const o2 = l2, u2 = s("24h"), d2 = s(null), c2 = [["#725CFF", "#C9C4EB"], ["#00FFFF", "#D6FFFF"], ["#aba9ba", "#f5f4ff"]], p2 = s(0), g2 = s(0), m2 = (e2) => {
|
|
1949
1949
|
u2.value = e2, r2("selectedRange", { range: e2, chartId: o2.id });
|
|
1950
1950
|
};
|
|
1951
1951
|
return f(() => {
|
|
1952
1952
|
d2.value.focus(), p2.value = d2.value.clientHeight - d2.value.clientHeight / 4, g2.value = d2.value.clientWidth - d2.value.clientHeight / 4;
|
|
1953
|
-
}), (r3, o3) => (e(), n("div",
|
|
1954
|
-
} }),
|
|
1953
|
+
}), (r3, o3) => (e(), n("div", ku, [E(i("div", { ref_key: "funnelChart", ref: d2, class: "card chart funnel-chart px-4 py-5 bg-white shadow rounded-lg overflow-hidden sm:p-6 flex grow h-full" }, [i("div", Su, [i("div", Cu, _(l2.title), 1), i("ul", Ou, [i("li", { class: a({ selected: "24h" === u2.value }), onClick: o3[0] || (o3[0] = (e2) => m2("24h")) }, " 24H ", 2), i("li", { class: a({ selected: "7d" === u2.value }), onClick: o3[1] || (o3[1] = (e2) => m2("7d")) }, " 7D ", 2), i("li", { class: a({ selected: "1m" === u2.value }), onClick: o3[2] || (o3[2] = (e2) => m2("1m")) }, " 1M ", 2), i("li", { class: a({ selected: "3m" === u2.value }), onClick: o3[3] || (o3[3] = (e2) => m2("3m")) }, " 3M ", 2)])]), i("div", Du, [g2.value > 0 && p2.value > 0 ? (e(), t(C(Y), { key: 0, width: g2.value, height: p2.value, labels: l2.labels, values: l2.values, colors: c2, "sub-labels": l2.subLabels, direction: "vertical", "gradient-direction": "vertical", animated: true, "display-percentage": true }, null, 8, ["width", "height", "labels", "values", "sub-labels"])) : T("", true)])], 512), [[B, !l2.loading]]), E(i("div", Mu, _u, 512), [[B, l2.loading]])]));
|
|
1954
|
+
} }), Tu = { chart: { type: "bar", toolbar: { show: false }, zoom: { enabled: false } }, colors: ["#715aff"], dataLabels: { enabled: true, formatter: function(e2, t2) {
|
|
1955
1955
|
return t2.w.globals.labels[t2.dataPointIndex] + ": " + e2;
|
|
1956
|
-
} }, markers: { strokeWidth: 0, size: 4, hover: { size: 8 } }, plotOptions: { bar: { borderRadius: 0, horizontal: true, barHeight: "80%", isFunnel: true } } },
|
|
1957
|
-
const
|
|
1958
|
-
return (l3,
|
|
1959
|
-
} }),
|
|
1960
|
-
Object.keys(
|
|
1961
|
-
e2.component(t2,
|
|
1956
|
+
} }, markers: { strokeWidth: 0, size: 4, hover: { size: 8 } }, plotOptions: { bar: { borderRadius: 0, horizontal: true, barHeight: "80%", isFunnel: true } } }, Eu = { class: "chart-header flex flex-row justify-between" }, Lu = { class: "text-sm font-medium text-gray-500 truncate" }, Bu = { class: "chart-content" }, Iu = { class: "h-full w-full flex items-center justify-center flex-col" }, Ru = i("p", { class: "text-xs uppercase text-gray-300 font-bold" }, "No data", -1), Au = { class: "card chart apex-chart px-4 py-5 bg-white shadow rounded-lg overflow-hidden sm:p-6 flex grow h-80" }, Fu = [i("div", { role: "status", class: "w-full animate-pulse h-full flex flex-col" }, [i("div", { class: "h-2.5 w-36 bg-gray-200 rounded-full mb-2.5" }), i("div", { class: "w-48 h-2 mb-6 bg-gray-200 rounded-full" }), i("div", { class: "flex flex-row justify-between items-baseline grow gap-x-1" }, [i("div", { class: "w-full bg-gray-200 rounded h-full" }), i("div", { class: "w-full bg-gray-200 rounded h-1/2" }), i("div", { class: "w-full bg-gray-200 rounded h-1/3" }), i("div", { class: "w-full bg-gray-200 rounded h-4/5" }), i("div", { class: "w-full bg-gray-200 rounded h-full" }), i("div", { class: "w-full bg-gray-200 rounded h-1/2" }), i("div", { class: "w-full bg-gray-200 rounded h-1/3" }), i("div", { class: "w-full bg-gray-200 rounded h-1/2" }), i("div", { class: "w-full bg-gray-200 rounded h-1/3" }), i("div", { class: "w-full bg-gray-200 rounded h-4/5" }), i("div", { class: "w-full bg-gray-200 rounded h-full" }), i("div", { class: "w-full bg-gray-200 rounded h-4/5" }), i("div", { class: "w-full bg-gray-200 rounded h-full" }), i("div", { class: "w-full bg-gray-200 rounded h-1/2" }), i("div", { class: "w-full bg-gray-200 rounded h-1/3" }), i("div", { class: "w-full bg-gray-200 rounded h-1/2" })])], -1)], Nu = { name: "uiChart" }, $u = Object.assign(Nu, { props: { title: String, id: { type: String, default: "noChartId" }, series: { type: Object, required: true }, options: { type: Object, required: true }, loading: { type: Boolean, default: true }, empty: { type: Boolean, default: false }, range: { type: String, default: "24h" }, height: { type: Number, default: 320 } }, emits: ["selectedRange", "chartUpdated"], setup(t2, { emit: l2 }) {
|
|
1957
|
+
const o2 = t2, s2 = y(() => ({ ...o2.options, ...Tu })), u2 = y(() => o2.series), d2 = () => l2("chartUpdated");
|
|
1958
|
+
return (l3, o3) => (e(), n(c, null, [E(i("div", { class: a(["h-[" + t2.height + "px]", "card chart apex-chart px-4 py-5 bg-white shadow rounded-lg overflow-hidden sm:p-6 flex grow"]) }, [i("div", Eu, [i("div", Lu, _(t2.title), 1), r(xo, { range: t2.range, onRangeSelected: o3[0] || (o3[0] = (e2) => l3.$emit("selectedRange", { range: e2, chartId: t2.id })) }, null, 8, ["range"])]), E(i("div", Bu, [r(C(V), { type: l3.bar, series: u2.value, width: "100%", height: t2.height, options: s2.value, onUpdated: d2, onMounted: d2 }, null, 8, ["type", "series", "height", "options"])], 512), [[B, !t2.empty]]), E(i("div", Iu, [r(q, { icon: C(Wl), color: "gray", loading: false, size: "huge" }, null, 8, ["icon"]), Ru], 512), [[B, t2.empty]])], 2), [[B, !t2.loading]]), E(i("div", Au, Fu, 512), [[B, t2.loading]])], 64));
|
|
1959
|
+
} }), Hu = { class: "w-full flex flex-col items-center justify-center p-10 grow" }, Vu = { class: "text-2xl mt-4 font-bold" }, Yu = { class: "buttons flex flex-row items-center justify-center mt-8 gap-x-1" }, zu = { __name: "uiNoResults", props: { title: { type: String, required: true }, message: { type: String, required: true }, actions: { type: Array } }, emits: ["action"], setup: (l2, { emit: a2 }) => (a3, o2) => (e(), n("div", Hu, [r(q, { loading: false, icon: C(Wl), size: "massive", color: "gray" }, null, 8, ["icon"]), i("h2", Vu, _(l2.title), 1), i("p", null, _(l2.message), 1), i("div", Yu, [(e(true), n(c, null, j(l2.actions, (l3, n2) => (e(), t(G, { key: n2, loading: false, onClick: (e2) => a3.$emit("action", l3.action) }, { default: D(() => [M(_(l3.text), 1)]), _: 2 }, 1032, ["onClick"]))), 128))])])) }, qu = i("div", { class: "fixed inset-0" }, null, -1), Uu = { class: "fixed inset-0 overflow-hidden" }, Wu = { class: "absolute inset-0 overflow-hidden" }, Ku = { class: "pointer-events-none fixed inset-y-0 right-0 flex max-w-full pl-10" }, Ju = { class: "flex h-full flex-col overflow-y-scroll bg-white shadow-xl" }, Gu = { class: "bg-indigo-700 px-4 py-6 sm:px-6" }, Xu = { class: "flex items-center justify-between" }, Zu = { class: "ml-3 flex h-7 items-center" }, Qu = i("span", { class: "absolute -inset-2.5" }, null, -1), ed = i("span", { class: "sr-only" }, "Close panel", -1), td = { class: "mt-1" }, ld = { class: "text-sm text-indigo-300" }, ad = { class: "relative flex-1 px-4 py-6 sm:px-6" }, nd = { name: "uiRightSidebar" }, rd = Object.assign(nd, { props: { title: { type: String, required: true }, description: { type: String }, open: { type: Boolean, default: false } }, emits: ["closeRightBar"], setup: (l2, { emit: a2 }) => (n2, s2) => (e(), t(C(Al), { as: "template", show: l2.open }, { default: D(() => [r(C(Jt), { as: "div", class: "relative z-10", onClose: s2[1] || (s2[1] = (e2) => a2("closeRightBar")) }, { default: D(() => [qu, i("div", Uu, [i("div", Wu, [i("div", Ku, [r(C(Il), { as: "template", enter: "transform transition ease-in-out duration-500 sm:duration-700", "enter-from": "translate-x-full", "enter-to": "translate-x-0", leave: "transform transition ease-in-out duration-500 sm:duration-700", "leave-from": "translate-x-0", "leave-to": "translate-x-full" }, { default: D(() => [r(C(Gt), { class: "pointer-events-auto w-screen max-w-md" }, { default: D(() => [i("div", Ju, [i("div", Gu, [i("div", Xu, [r(C(Xt), { class: "text-base font-semibold leading-6 text-white" }, { default: D(() => [M(_(l2.title), 1)]), _: 1 }), i("div", Zu, [i("button", { type: "button", class: "relative rounded-md bg-indigo-700 text-indigo-200 hover:text-white outline-none", onClick: s2[0] || (s2[0] = (e2) => a2("closeRightBar")) }, [Qu, ed, r(C(Ql), { class: "h-6 w-6 ring-0", "aria-hidden": "true" })])])]), i("div", td, [i("p", ld, _(l2.description), 1)])]), i("div", ad, [o(n2.$slots, "default")])])]), _: 3 })]), _: 3 })])])])]), _: 3 })]), _: 3 }, 8, ["show"])) }), od = { uiButton: G, uiIcon: q, uiCheckbox: re, uiDropdown: ra, uiInput: va, uiInputFile: Ea, uiSelect: Aa, uiTag: Ha, uiTextArea: Ka, uiToggle: en, uiAlert: pn, uiBreadcrumbs: kn, uiCard: Tn, uiFilter: Ln, uiModal: qn, uiNotification: ar, uiTaskList: vr, uiPriceCalendar: yo, uiChart: jo, uiFooter: Bo, uiLoadingScreen: Ao, uiPagination: Qo, uiSidebar: fi, uiStats: Mi, uiStripedCard: Yi, uiTable: gs, uiTabs: ws, uiTimeline: Gs, uiTopbar: wu, uiFunnelChart: ju, uiFunnelChartV2: $u, uiNoResults: zu, uiRightSidebar: rd }, id = { install(e2) {
|
|
1960
|
+
Object.keys(od).forEach((t2) => {
|
|
1961
|
+
e2.component(t2, od[t2]);
|
|
1962
1962
|
});
|
|
1963
1963
|
} };
|
|
1964
1964
|
export {
|
|
1965
|
-
|
|
1965
|
+
id as default
|
|
1966
1966
|
};
|