@hotelinking/ui 5.37.8 → 5.38.0
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/CHANGELOG.md +4 -1
- package/dist/ui.es.js +135 -135
- package/dist/ui.umd.cjs +1 -1
- package/package.json +1 -1
package/dist/ui.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { openBlock as e, createBlock as t, resolveDynamicComponent as l, normalizeClass as n, createElementBlock as a, createVNode as o, renderSlot as r, createElementVNode as i, ref as s, computed as u, unref as d, shallowRef as c, watch as p, triggerRef as g, onScopeDispose as m, inject as f, nextTick as v, watchEffect as h, onMounted as b, cloneVNode as y, h as x, Fragment as w, defineComponent as k, provide as S, reactive as C, onUnmounted as O, toRaw as M, getCurrentInstance as D, Teleport as
|
|
1
|
+
import { openBlock as e, createBlock as t, resolveDynamicComponent as l, normalizeClass as n, createElementBlock as a, createVNode as o, renderSlot as r, createElementVNode as i, ref as s, computed as u, unref as d, shallowRef as c, watch as p, triggerRef as g, onScopeDispose as m, inject as f, nextTick as v, watchEffect as h, onMounted as b, cloneVNode as y, h as x, Fragment as w, defineComponent as k, provide as S, reactive as C, onUnmounted as O, toRaw as M, getCurrentInstance as D, Teleport as T, withCtx as E, createTextVNode as I, toDisplayString as _, Transition as P, renderList as j, createCommentVNode as R, withDirectives as B, vModelDynamic as A, vShow as L, withModifiers as F, vModelText as N, createStaticVNode as z, resolveComponent as $, vModelCheckbox as V, isRef as H } from "vue";
|
|
2
2
|
import Y from "dayjs";
|
|
3
3
|
import U from "vue3-apexcharts";
|
|
4
4
|
import q from "vue3-draggable";
|
|
@@ -280,20 +280,20 @@ let Oe = Symbol("headlessui.useid"), Me = 0;
|
|
|
280
280
|
function De() {
|
|
281
281
|
return f(Oe, () => "" + ++Me)();
|
|
282
282
|
}
|
|
283
|
-
function
|
|
283
|
+
function Te(e2) {
|
|
284
284
|
var t2;
|
|
285
285
|
if (null == e2 || null == e2.value)
|
|
286
286
|
return null;
|
|
287
287
|
let l2 = null != (t2 = e2.value.$el) ? t2 : e2.value;
|
|
288
288
|
return l2 instanceof Node ? l2 : null;
|
|
289
289
|
}
|
|
290
|
-
function
|
|
290
|
+
function Ee(e2, t2, ...l2) {
|
|
291
291
|
if (e2 in t2) {
|
|
292
292
|
let n3 = t2[e2];
|
|
293
293
|
return "function" == typeof n3 ? n3(...l2) : n3;
|
|
294
294
|
}
|
|
295
295
|
let n2 = new Error(`Tried to handle "${e2}" but there is no handler defined. Only defined handlers are: ${Object.keys(t2).map((e3) => `"${e3}"`).join(", ")}.`);
|
|
296
|
-
throw Error.captureStackTrace && Error.captureStackTrace(n2,
|
|
296
|
+
throw Error.captureStackTrace && Error.captureStackTrace(n2, Ee), n2;
|
|
297
297
|
}
|
|
298
298
|
var Ie = Object.defineProperty, _e = (e2, t2, l2) => (((e3, t3, l3) => {
|
|
299
299
|
t3 in e3 ? Ie(e3, t3, { enumerable: true, configurable: true, writable: true, value: l3 }) : e3[t3] = l3;
|
|
@@ -327,7 +327,7 @@ function je(e2) {
|
|
|
327
327
|
if (e2 instanceof Node)
|
|
328
328
|
return e2.ownerDocument;
|
|
329
329
|
if (null != e2 && e2.hasOwnProperty("value")) {
|
|
330
|
-
let t2 =
|
|
330
|
+
let t2 = Te(e2);
|
|
331
331
|
if (t2)
|
|
332
332
|
return t2.ownerDocument;
|
|
333
333
|
}
|
|
@@ -341,7 +341,7 @@ function Fe(e2 = document.body) {
|
|
|
341
341
|
var Ne = ((e2) => (e2[e2.Strict = 0] = "Strict", e2[e2.Loose = 1] = "Loose", e2))(Ne || {});
|
|
342
342
|
function ze(e2, t2 = 0) {
|
|
343
343
|
var l2;
|
|
344
|
-
return e2 !== (null == (l2 = je(e2)) ? void 0 : l2.body) &&
|
|
344
|
+
return e2 !== (null == (l2 = je(e2)) ? void 0 : l2.body) && Ee(t2, { 0: () => e2.matches(Re), 1() {
|
|
345
345
|
let t3 = e2;
|
|
346
346
|
for (; null !== t3; ) {
|
|
347
347
|
if (t3.matches(Re))
|
|
@@ -445,7 +445,7 @@ function Ze(e2, t2, l2 = u(() => true)) {
|
|
|
445
445
|
for (let e3 of r2) {
|
|
446
446
|
if (null === e3)
|
|
447
447
|
continue;
|
|
448
|
-
let t3 = e3 instanceof HTMLElement ? e3 :
|
|
448
|
+
let t3 = e3 instanceof HTMLElement ? e3 : Te(e3);
|
|
449
449
|
if (null != t3 && t3.contains(o2) || n3.composed && n3.composedPath().includes(t3))
|
|
450
450
|
return;
|
|
451
451
|
}
|
|
@@ -474,7 +474,7 @@ function Qe(e2, t2) {
|
|
|
474
474
|
l2.value = Xe(e2.value.type, e2.value.as);
|
|
475
475
|
}), h(() => {
|
|
476
476
|
var e3;
|
|
477
|
-
l2.value ||
|
|
477
|
+
l2.value || Te(t2) && Te(t2) instanceof HTMLButtonElement && (null == (e3 = Te(t2)) || !e3.hasAttribute("type")) && (l2.value = "button");
|
|
478
478
|
}), l2;
|
|
479
479
|
}
|
|
480
480
|
function et(e2) {
|
|
@@ -509,7 +509,7 @@ function ot({ visible: e2 = true, features: t2 = 0, ourProps: l2, theirProps: n2
|
|
|
509
509
|
if (e2 || 2 & t2 && r2.static)
|
|
510
510
|
return rt(i2);
|
|
511
511
|
if (1 & t2) {
|
|
512
|
-
return
|
|
512
|
+
return Ee(null == (o2 = r2.unmount) || o2 ? 0 : 1, { 0: () => null, 1: () => rt({ ...a2, props: { ...r2, hidden: true, style: { display: "none" } } }) });
|
|
513
513
|
}
|
|
514
514
|
return rt(i2);
|
|
515
515
|
}
|
|
@@ -699,10 +699,10 @@ function Ot(e2, t2, l2) {
|
|
|
699
699
|
else
|
|
700
700
|
l2 instanceof Date ? e2.push([t2, l2.toISOString()]) : "boolean" == typeof l2 ? e2.push([t2, l2 ? "1" : "0"]) : "string" == typeof l2 ? e2.push([t2, l2]) : "number" == typeof l2 ? e2.push([t2, `${l2}`]) : null == l2 ? e2.push([t2, ""]) : St(l2, t2, e2);
|
|
701
701
|
}
|
|
702
|
-
var Mt = ((e2) => (e2[e2.Open = 0] = "Open", e2[e2.Closed = 1] = "Closed", e2))(Mt || {}), Dt = ((e2) => (e2[e2.Single = 0] = "Single", e2[e2.Multi = 1] = "Multi", e2))(Dt || {}),
|
|
703
|
-
let
|
|
702
|
+
var Mt = ((e2) => (e2[e2.Open = 0] = "Open", e2[e2.Closed = 1] = "Closed", e2))(Mt || {}), Dt = ((e2) => (e2[e2.Single = 0] = "Single", e2[e2.Multi = 1] = "Multi", e2))(Dt || {}), Tt = ((e2) => (e2[e2.Pointer = 0] = "Pointer", e2[e2.Focus = 1] = "Focus", e2[e2.Other = 2] = "Other", e2))(Tt || {});
|
|
703
|
+
let Et = Symbol("ComboboxContext");
|
|
704
704
|
function It(e2) {
|
|
705
|
-
let t2 = f(
|
|
705
|
+
let t2 = f(Et, null);
|
|
706
706
|
if (null === t2) {
|
|
707
707
|
let t3 = new Error(`<${e2} /> is missing a parent <Combobox /> component.`);
|
|
708
708
|
throw Error.captureStackTrace && Error.captureStackTrace(t3, It), t3;
|
|
@@ -711,12 +711,12 @@ function It(e2) {
|
|
|
711
711
|
}
|
|
712
712
|
let _t = Symbol("VirtualContext"), Pt = k({ name: "VirtualProvider", setup(e2, { slots: t2 }) {
|
|
713
713
|
let l2 = It("VirtualProvider"), n2 = u(() => {
|
|
714
|
-
let e3 =
|
|
714
|
+
let e3 = Te(l2.optionsRef);
|
|
715
715
|
if (!e3)
|
|
716
716
|
return { start: 0, end: 0 };
|
|
717
717
|
let t3 = window.getComputedStyle(e3);
|
|
718
718
|
return { start: parseFloat(t3.paddingBlockStart || t3.paddingTop), end: parseFloat(t3.paddingBlockEnd || t3.paddingBottom) };
|
|
719
|
-
}), a2 = Se(u(() => ({ scrollPaddingStart: n2.value.start, scrollPaddingEnd: n2.value.end, count: l2.virtual.value.options.length, estimateSize: () => 40, getScrollElement: () =>
|
|
719
|
+
}), a2 = Se(u(() => ({ scrollPaddingStart: n2.value.start, scrollPaddingEnd: n2.value.end, count: l2.virtual.value.options.length, estimateSize: () => 40, getScrollElement: () => Te(l2.optionsRef), overscan: 12 }))), o2 = u(() => {
|
|
720
720
|
var e3;
|
|
721
721
|
return null == (e3 = l2.virtual.value) ? void 0 : e3.options;
|
|
722
722
|
}), r2 = s(0);
|
|
@@ -732,12 +732,12 @@ let _t = Symbol("VirtualContext"), Pt = k({ name: "VirtualProvider", setup(e2, {
|
|
|
732
732
|
} }), jt = k({ name: "Combobox", emits: { "update:modelValue": (e2) => true }, props: { as: { type: [Object, String], default: "template" }, disabled: { type: [Boolean], default: false }, by: { type: [String, Function], nullable: true, default: null }, modelValue: { type: [Object, String, Number, Boolean], default: void 0 }, defaultValue: { type: [Object, String, Number, Boolean], default: void 0 }, form: { type: String, optional: true }, name: { type: String, optional: true }, nullable: { type: Boolean, default: false }, multiple: { type: [Boolean], default: false }, immediate: { type: [Boolean], default: false }, virtual: { type: Object, default: null } }, inheritAttrs: false, setup(e2, { slots: t2, attrs: l2, emit: n2 }) {
|
|
733
733
|
let a2 = s(1), o2 = s(null), r2 = s(null), i2 = s(null), d2 = s(null), c2 = s({ static: false, hold: false }), g2 = s([]), m2 = s(null), f2 = s(2), v2 = s(false);
|
|
734
734
|
function h2(e3 = (e4) => e4) {
|
|
735
|
-
let t3 = null !== m2.value ? g2.value[m2.value] : null, l3 = e3(g2.value.slice()), n3 = l3.length > 0 && null !== l3[0].dataRef.order.value ? l3.sort((e4, t4) => e4.dataRef.order.value - t4.dataRef.order.value) : Ue(l3, (e4) =>
|
|
735
|
+
let t3 = null !== m2.value ? g2.value[m2.value] : null, l3 = e3(g2.value.slice()), n3 = l3.length > 0 && null !== l3[0].dataRef.order.value ? l3.sort((e4, t4) => e4.dataRef.order.value - t4.dataRef.order.value) : Ue(l3, (e4) => Te(e4.dataRef.domRef)), a3 = t3 ? n3.indexOf(t3) : null;
|
|
736
736
|
return -1 === a3 && (a3 = null), { options: n3, activeOptionIndex: a3 };
|
|
737
737
|
}
|
|
738
|
-
let y2 = u(() => e2.multiple ? 1 : 0), k2 = u(() => e2.nullable), [O2, D2] = Ce(u(() => e2.modelValue), (e3) => n2("update:modelValue", e3), u(() => e2.defaultValue)),
|
|
738
|
+
let y2 = u(() => e2.multiple ? 1 : 0), k2 = u(() => e2.nullable), [O2, D2] = Ce(u(() => e2.modelValue), (e3) => n2("update:modelValue", e3), u(() => e2.defaultValue)), T2 = u(() => void 0 === O2.value ? Ee(y2.value, { 1: [], 0: void 0 }) : O2.value), E2 = null, I2 = null;
|
|
739
739
|
function _2(e3) {
|
|
740
|
-
return
|
|
740
|
+
return Ee(y2.value, { 0: () => null == D2 ? void 0 : D2(e3), 1: () => {
|
|
741
741
|
let t3 = M(j2.value.value).slice(), l3 = M(e3), n3 = t3.findIndex((e4) => j2.compare(l3, M(e4)));
|
|
742
742
|
return -1 === n3 ? t3.push(l3) : t3.splice(n3, 1), null == D2 ? void 0 : D2(t3);
|
|
743
743
|
} });
|
|
@@ -750,7 +750,7 @@ let _t = Symbol("VirtualContext"), Pt = k({ name: "VirtualProvider", setup(e2, {
|
|
|
750
750
|
m2.value = -1 !== l3 ? l3 : null;
|
|
751
751
|
}
|
|
752
752
|
});
|
|
753
|
-
let j2 = { comboboxState: a2, value:
|
|
753
|
+
let j2 = { comboboxState: a2, value: T2, mode: y2, compare(t3, l3) {
|
|
754
754
|
if ("string" == typeof e2.by) {
|
|
755
755
|
let n3 = e2.by;
|
|
756
756
|
return (null == t3 ? void 0 : t3[n3]) === (null == l3 ? void 0 : l3[n3]);
|
|
@@ -788,7 +788,7 @@ let _t = Symbol("VirtualContext"), Pt = k({ name: "VirtualProvider", setup(e2, {
|
|
|
788
788
|
}, setActivationTrigger(e3) {
|
|
789
789
|
f2.value = e3;
|
|
790
790
|
}, goToOption(t3, l3, n3) {
|
|
791
|
-
v2.value = false, null !==
|
|
791
|
+
v2.value = false, null !== E2 && cancelAnimationFrame(E2), E2 = requestAnimationFrame(() => {
|
|
792
792
|
if (e2.disabled || d2.value && !c2.value.static && 1 === a2.value)
|
|
793
793
|
return;
|
|
794
794
|
if (j2.virtual.value)
|
|
@@ -831,23 +831,23 @@ let _t = Symbol("VirtualContext"), Pt = k({ name: "VirtualProvider", setup(e2, {
|
|
|
831
831
|
return void g2.value.push(l3);
|
|
832
832
|
I2 && cancelAnimationFrame(I2);
|
|
833
833
|
let n3 = h2((e4) => (e4.push(l3), e4));
|
|
834
|
-
null === m2.value && j2.isSelected(t3.value.value) && (n3.activeOptionIndex = n3.options.indexOf(l3)), g2.value = n3.options, m2.value = n3.activeOptionIndex, f2.value = 2, n3.options.some((e4) => !
|
|
834
|
+
null === m2.value && j2.isSelected(t3.value.value) && (n3.activeOptionIndex = n3.options.indexOf(l3)), g2.value = n3.options, m2.value = n3.activeOptionIndex, f2.value = 2, n3.options.some((e4) => !Te(e4.dataRef.domRef)) && (I2 = requestAnimationFrame(() => {
|
|
835
835
|
let e4 = h2();
|
|
836
836
|
g2.value = e4.options, m2.value = e4.activeOptionIndex;
|
|
837
837
|
}));
|
|
838
838
|
}, unregisterOption(e3, t3) {
|
|
839
|
-
if (null !==
|
|
839
|
+
if (null !== E2 && cancelAnimationFrame(E2), t3 && (v2.value = true), j2.virtual.value)
|
|
840
840
|
return void (g2.value = g2.value.filter((t4) => t4.id !== e3));
|
|
841
841
|
let l3 = h2((t4) => {
|
|
842
842
|
let l4 = t4.findIndex((t5) => t5.id === e3);
|
|
843
843
|
return -1 !== l4 && t4.splice(l4, 1), t4;
|
|
844
844
|
});
|
|
845
845
|
g2.value = l3.options, m2.value = l3.activeOptionIndex, f2.value = 2;
|
|
846
|
-
}, isSelected: (e3) =>
|
|
847
|
-
Ze([r2, i2, d2], () => j2.closeCombobox(), u(() => 0 === a2.value)), S(
|
|
846
|
+
}, isSelected: (e3) => Ee(y2.value, { 0: () => j2.compare(M(j2.value.value), M(e3)), 1: () => M(j2.value.value).some((t3) => j2.compare(M(t3), M(e3))) }), isActive: (e3) => m2.value === j2.calculateIndex(e3) };
|
|
847
|
+
Ze([r2, i2, d2], () => j2.closeCombobox(), u(() => 0 === a2.value)), S(Et, j2), vt(u(() => Ee(a2.value, { 0: mt.Open, 1: mt.Closed })));
|
|
848
848
|
let R2 = u(() => {
|
|
849
849
|
var e3;
|
|
850
|
-
return null == (e3 =
|
|
850
|
+
return null == (e3 = Te(r2)) ? void 0 : e3.closest("form");
|
|
851
851
|
});
|
|
852
852
|
return b(() => {
|
|
853
853
|
p([R2], () => {
|
|
@@ -862,15 +862,15 @@ let _t = Symbol("VirtualContext"), Pt = k({ name: "VirtualProvider", setup(e2, {
|
|
|
862
862
|
}, { immediate: true });
|
|
863
863
|
}), () => {
|
|
864
864
|
var n3, o3, r3;
|
|
865
|
-
let { name: i3, disabled: s2, form: u2, ...d3 } = e2, c3 = { open: 0 === a2.value, disabled: s2, activeIndex: j2.activeOptionIndex.value, activeOption: null === j2.activeOptionIndex.value ? null : j2.virtual.value ? j2.virtual.value.options[null != (n3 = j2.activeOptionIndex.value) ? n3 : 0] : null != (r3 = null == (o3 = j2.options.value[j2.activeOptionIndex.value]) ? void 0 : o3.dataRef.value) ? r3 : null, value:
|
|
866
|
-
return x(w, [...null != i3 && null !=
|
|
865
|
+
let { name: i3, disabled: s2, form: u2, ...d3 } = e2, c3 = { open: 0 === a2.value, disabled: s2, activeIndex: j2.activeOptionIndex.value, activeOption: null === j2.activeOptionIndex.value ? null : j2.virtual.value ? j2.virtual.value.options[null != (n3 = j2.activeOptionIndex.value) ? n3 : 0] : null != (r3 = null == (o3 = j2.options.value[j2.activeOptionIndex.value]) ? void 0 : o3.dataRef.value) ? r3 : null, value: T2.value };
|
|
866
|
+
return x(w, [...null != i3 && null != T2.value ? St({ [i3]: T2.value }).map(([e3, t3]) => x(pt, ut({ features: ct.Hidden, key: e3, as: "input", type: "hidden", hidden: true, readOnly: true, form: u2, disabled: s2, name: e3, value: t3 }))) : [], ot({ theirProps: { ...l2, ...dt(d3, ["by", "defaultValue", "immediate", "modelValue", "multiple", "nullable", "onUpdate:modelValue", "virtual"]) }, ourProps: {}, slot: c3, slots: t2, attrs: l2, name: "Combobox" })]);
|
|
867
867
|
};
|
|
868
868
|
} }), Rt = k({ name: "ComboboxLabel", props: { as: { type: [Object, String], default: "label" }, id: { type: String, default: null } }, setup(e2, { attrs: t2, slots: l2 }) {
|
|
869
869
|
var n2;
|
|
870
870
|
let a2 = null != (n2 = e2.id) ? n2 : `headlessui-combobox-label-${De()}`, o2 = It("ComboboxLabel");
|
|
871
871
|
function r2() {
|
|
872
872
|
var e3;
|
|
873
|
-
null == (e3 =
|
|
873
|
+
null == (e3 = Te(o2.inputRef)) || e3.focus({ preventScroll: true });
|
|
874
874
|
}
|
|
875
875
|
return () => {
|
|
876
876
|
let n3 = { open: 0 === o2.comboboxState.value, disabled: o2.disabled.value }, { ...i2 } = e2;
|
|
@@ -882,7 +882,7 @@ let _t = Symbol("VirtualContext"), Pt = k({ name: "VirtualProvider", setup(e2, {
|
|
|
882
882
|
function i2(e3) {
|
|
883
883
|
r2.disabled.value || (0 === r2.comboboxState.value ? r2.closeCombobox() : (e3.preventDefault(), r2.openCombobox()), v(() => {
|
|
884
884
|
var e4;
|
|
885
|
-
return null == (e4 =
|
|
885
|
+
return null == (e4 = Te(r2.inputRef)) ? void 0 : e4.focus({ preventScroll: true });
|
|
886
886
|
}));
|
|
887
887
|
}
|
|
888
888
|
function s2(e3) {
|
|
@@ -913,27 +913,27 @@ let _t = Symbol("VirtualContext"), Pt = k({ name: "VirtualProvider", setup(e2, {
|
|
|
913
913
|
return () => {
|
|
914
914
|
var n3, a3;
|
|
915
915
|
let u2 = { open: 0 === r2.comboboxState.value, disabled: r2.disabled.value, value: r2.value.value }, { ...c2 } = e2;
|
|
916
|
-
return ot({ ourProps: { ref: r2.buttonRef, id: o2, type: d2.value, tabindex: "-1", "aria-haspopup": "listbox", "aria-controls": null == (n3 =
|
|
916
|
+
return ot({ ourProps: { ref: r2.buttonRef, id: o2, type: d2.value, tabindex: "-1", "aria-haspopup": "listbox", "aria-controls": null == (n3 = Te(r2.optionsRef)) ? void 0 : n3.id, "aria-expanded": 0 === r2.comboboxState.value, "aria-labelledby": r2.labelRef.value ? [null == (a3 = Te(r2.labelRef)) ? void 0 : a3.id, o2].join(" ") : void 0, disabled: true === r2.disabled.value || void 0, onKeydown: s2, onClick: i2 }, theirProps: c2, slot: u2, attrs: t2, slots: l2, name: "ComboboxButton" });
|
|
917
917
|
};
|
|
918
918
|
} }), At = k({ name: "ComboboxInput", props: { as: { type: [Object, String], default: "input" }, static: { type: Boolean, default: false }, unmount: { type: Boolean, default: true }, displayValue: { type: Function }, defaultValue: { type: String, default: void 0 }, id: { type: String, default: null } }, emits: { change: (e2) => true }, setup(e2, { emit: t2, attrs: l2, slots: n2, expose: a2 }) {
|
|
919
919
|
var o2;
|
|
920
|
-
let r2 = null != (o2 = e2.id) ? o2 : `headlessui-combobox-input-${De()}`, i2 = It("ComboboxInput"), d2 = u(() => je(
|
|
920
|
+
let r2 = null != (o2 = e2.id) ? o2 : `headlessui-combobox-input-${De()}`, i2 = It("ComboboxInput"), d2 = u(() => je(Te(i2.inputRef))), c2 = { value: false };
|
|
921
921
|
function g2() {
|
|
922
922
|
i2.change(null);
|
|
923
|
-
let e3 =
|
|
923
|
+
let e3 = Te(i2.optionsRef);
|
|
924
924
|
e3 && (e3.scrollTop = 0), i2.goToOption(yt.Nothing);
|
|
925
925
|
}
|
|
926
926
|
a2({ el: i2.inputRef, $el: i2.inputRef });
|
|
927
927
|
let m2 = u(() => {
|
|
928
928
|
var t3;
|
|
929
929
|
let l3 = i2.value.value;
|
|
930
|
-
return
|
|
930
|
+
return Te(i2.inputRef) ? void 0 !== e2.displayValue && void 0 !== l3 ? null != (t3 = e2.displayValue(l3)) ? t3 : "" : "string" == typeof l3 ? l3 : "" : "";
|
|
931
931
|
});
|
|
932
932
|
b(() => {
|
|
933
933
|
p([m2, i2.comboboxState, d2], ([e3, t3], [l3, n3]) => {
|
|
934
934
|
if (c2.value)
|
|
935
935
|
return;
|
|
936
|
-
let a3 =
|
|
936
|
+
let a3 = Te(i2.inputRef);
|
|
937
937
|
a3 && ((0 === n3 && 1 === t3 || e3 !== l3) && (a3.value = e3), requestAnimationFrame(() => {
|
|
938
938
|
var e4;
|
|
939
939
|
if (c2.value || !a3 || (null == (e4 = d2.value) ? void 0 : e4.activeElement) !== a3)
|
|
@@ -945,7 +945,7 @@ let _t = Symbol("VirtualContext"), Pt = k({ name: "VirtualProvider", setup(e2, {
|
|
|
945
945
|
if (0 === e3 && 1 === t3) {
|
|
946
946
|
if (c2.value)
|
|
947
947
|
return;
|
|
948
|
-
let e4 =
|
|
948
|
+
let e4 = Te(i2.inputRef);
|
|
949
949
|
if (!e4)
|
|
950
950
|
return;
|
|
951
951
|
let t4 = e4.value, { selectionStart: l3, selectionEnd: n3, selectionDirection: a3 } = e4;
|
|
@@ -972,9 +972,9 @@ let _t = Symbol("VirtualContext"), Pt = k({ name: "VirtualProvider", setup(e2, {
|
|
|
972
972
|
i2.selectActiveOption(), 0 === i2.mode.value && i2.closeCombobox();
|
|
973
973
|
break;
|
|
974
974
|
case ht.ArrowDown:
|
|
975
|
-
return c2.value = false, e3.preventDefault(), e3.stopPropagation(),
|
|
975
|
+
return c2.value = false, e3.preventDefault(), e3.stopPropagation(), Ee(i2.comboboxState.value, { 0: () => i2.goToOption(yt.Next), 1: () => i2.openCombobox() });
|
|
976
976
|
case ht.ArrowUp:
|
|
977
|
-
return c2.value = false, e3.preventDefault(), e3.stopPropagation(),
|
|
977
|
+
return c2.value = false, e3.preventDefault(), e3.stopPropagation(), Ee(i2.comboboxState.value, { 0: () => i2.goToOption(yt.Previous), 1: () => {
|
|
978
978
|
i2.openCombobox(), v(() => {
|
|
979
979
|
i2.value.value || i2.goToOption(yt.Last);
|
|
980
980
|
});
|
|
@@ -1008,13 +1008,13 @@ let _t = Symbol("VirtualContext"), Pt = k({ name: "VirtualProvider", setup(e2, {
|
|
|
1008
1008
|
function k2(e3) {
|
|
1009
1009
|
var t3, l3, n3;
|
|
1010
1010
|
let a3 = null != (t3 = e3.relatedTarget) ? t3 : bt.find((t4) => t4 !== e3.currentTarget);
|
|
1011
|
-
if (c2.value = false, !(null != (l3 =
|
|
1011
|
+
if (c2.value = false, !(null != (l3 = Te(i2.optionsRef)) && l3.contains(a3) || null != (n3 = Te(i2.buttonRef)) && n3.contains(a3) || 0 !== i2.comboboxState.value))
|
|
1012
1012
|
return e3.preventDefault(), 0 === i2.mode.value && (i2.nullable.value && null === i2.value.value ? g2() : 1 !== i2.activationTrigger.value && i2.selectActiveOption()), i2.closeCombobox();
|
|
1013
1013
|
}
|
|
1014
1014
|
function S2(e3) {
|
|
1015
1015
|
var t3, l3, n3;
|
|
1016
1016
|
let a3 = null != (t3 = e3.relatedTarget) ? t3 : bt.find((t4) => t4 !== e3.currentTarget);
|
|
1017
|
-
null != (l3 =
|
|
1017
|
+
null != (l3 = Te(i2.buttonRef)) && l3.contains(a3) || null != (n3 = Te(i2.optionsRef)) && n3.contains(a3) || i2.disabled.value || i2.immediate.value && 0 !== i2.comboboxState.value && (i2.openCombobox(), kt().nextFrame(() => {
|
|
1018
1018
|
i2.setActivationTrigger(1);
|
|
1019
1019
|
}));
|
|
1020
1020
|
}
|
|
@@ -1024,7 +1024,7 @@ let _t = Symbol("VirtualContext"), Pt = k({ name: "VirtualProvider", setup(e2, {
|
|
|
1024
1024
|
});
|
|
1025
1025
|
return () => {
|
|
1026
1026
|
var t3, a3, o3, s2, u2, d3, c3;
|
|
1027
|
-
let p2 = { open: 0 === i2.comboboxState.value }, { displayValue: g3, onChange: m3, ...f3 } = e2, v2 = { "aria-controls": null == (t3 = i2.optionsRef.value) ? void 0 : t3.id, "aria-expanded": 0 === i2.comboboxState.value, "aria-activedescendant": null === i2.activeOptionIndex.value ? void 0 : i2.virtual.value ? null == (a3 = i2.options.value.find((e3) => !i2.virtual.value.disabled(e3.dataRef.value) && i2.compare(e3.dataRef.value, i2.virtual.value.options[i2.activeOptionIndex.value]))) ? void 0 : a3.id : null == (o3 = i2.options.value[i2.activeOptionIndex.value]) ? void 0 : o3.id, "aria-labelledby": null != (d3 = null == (s2 =
|
|
1027
|
+
let p2 = { open: 0 === i2.comboboxState.value }, { displayValue: g3, onChange: m3, ...f3 } = e2, v2 = { "aria-controls": null == (t3 = i2.optionsRef.value) ? void 0 : t3.id, "aria-expanded": 0 === i2.comboboxState.value, "aria-activedescendant": null === i2.activeOptionIndex.value ? void 0 : i2.virtual.value ? null == (a3 = i2.options.value.find((e3) => !i2.virtual.value.disabled(e3.dataRef.value) && i2.compare(e3.dataRef.value, i2.virtual.value.options[i2.activeOptionIndex.value]))) ? void 0 : a3.id : null == (o3 = i2.options.value[i2.activeOptionIndex.value]) ? void 0 : o3.id, "aria-labelledby": null != (d3 = null == (s2 = Te(i2.labelRef)) ? void 0 : s2.id) ? d3 : null == (u2 = Te(i2.buttonRef)) ? void 0 : u2.id, "aria-autocomplete": "list", id: r2, onCompositionstart: h2, onCompositionend: y2, onKeydown: x2, onInput: w2, onFocus: S2, onBlur: k2, role: "combobox", type: null != (c3 = l2.type) ? c3 : "text", tabIndex: 0, ref: i2.inputRef, defaultValue: C2.value, disabled: true === i2.disabled.value || void 0 };
|
|
1028
1028
|
return ot({ ourProps: v2, theirProps: f3, slot: p2, attrs: l2, slots: n2, features: nt.RenderStrategy | nt.Static, name: "ComboboxInput" });
|
|
1029
1029
|
};
|
|
1030
1030
|
} }), Lt = k({ name: "ComboboxOptions", props: { as: { type: [Object, String], default: "ul" }, static: { type: Boolean, default: false }, unmount: { type: Boolean, default: true }, hold: { type: [Boolean], default: false } }, setup(e2, { attrs: t2, slots: l2, expose: n2 }) {
|
|
@@ -1038,12 +1038,12 @@ let _t = Symbol("VirtualContext"), Pt = k({ name: "VirtualProvider", setup(e2, {
|
|
|
1038
1038
|
function s2(e3) {
|
|
1039
1039
|
e3.preventDefault();
|
|
1040
1040
|
}
|
|
1041
|
-
return lt({ container: u(() =>
|
|
1041
|
+
return lt({ container: u(() => Te(a2.optionsRef)), enabled: u(() => 0 === a2.comboboxState.value), accept: (e3) => "option" === e3.getAttribute("role") ? NodeFilter.FILTER_REJECT : e3.hasAttribute("role") ? NodeFilter.FILTER_SKIP : NodeFilter.FILTER_ACCEPT, walk(e3) {
|
|
1042
1042
|
e3.setAttribute("role", "none");
|
|
1043
1043
|
} }), () => {
|
|
1044
1044
|
var n3, r3, u2;
|
|
1045
1045
|
let d2 = { open: 0 === a2.comboboxState.value };
|
|
1046
|
-
return ot({ ourProps: { "aria-labelledby": null != (u2 = null == (n3 =
|
|
1046
|
+
return ot({ ourProps: { "aria-labelledby": null != (u2 = null == (n3 = Te(a2.labelRef)) ? void 0 : n3.id) ? u2 : null == (r3 = Te(a2.buttonRef)) ? void 0 : r3.id, id: o2, ref: a2.optionsRef, role: "listbox", "aria-multiselectable": 1 === a2.mode.value || void 0, onMousedown: s2 }, theirProps: dt(e2, ["hold"]), slot: d2, attrs: t2, slots: a2.virtual.value && 0 === a2.comboboxState.value ? { ...l2, default: () => [x(Pt, {}, l2.default)] } : l2, features: nt.RenderStrategy | nt.Static, visible: i2.value, name: "ComboboxOptions" });
|
|
1047
1047
|
};
|
|
1048
1048
|
} }), Ft = k({ name: "ComboboxOption", props: { as: { type: [Object, String], default: "li" }, value: { type: [Object, String, Number, Boolean] }, disabled: { type: Boolean, default: false }, order: { type: [Number], default: null } }, setup(e2, { slots: t2, attrs: l2, expose: n2 }) {
|
|
1049
1049
|
let a2 = It("ComboboxOption"), o2 = `headlessui-combobox-option-${De()}`, r2 = s(null);
|
|
@@ -1058,7 +1058,7 @@ let _t = Symbol("VirtualContext"), Pt = k({ name: "VirtualProvider", setup(e2, {
|
|
|
1058
1058
|
return t3.preventDefault();
|
|
1059
1059
|
a2.selectOption(o2), Ke() || requestAnimationFrame(() => {
|
|
1060
1060
|
var e3;
|
|
1061
|
-
return null == (e3 =
|
|
1061
|
+
return null == (e3 = Te(a2.inputRef)) ? void 0 : e3.focus({ preventScroll: true });
|
|
1062
1062
|
}), 0 === a2.mode.value && requestAnimationFrame(() => a2.closeCombobox());
|
|
1063
1063
|
}
|
|
1064
1064
|
function m2() {
|
|
@@ -1069,12 +1069,12 @@ let _t = Symbol("VirtualContext"), Pt = k({ name: "VirtualProvider", setup(e2, {
|
|
|
1069
1069
|
a2.goToOption(yt.Specific, l3);
|
|
1070
1070
|
}
|
|
1071
1071
|
b(() => a2.registerOption(o2, p2)), O(() => a2.unregisterOption(o2, i2.value)), h(() => {
|
|
1072
|
-
let e3 =
|
|
1072
|
+
let e3 = Te(r2);
|
|
1073
1073
|
e3 && (null == c2 || c2.value.measureElement(e3));
|
|
1074
1074
|
}), h(() => {
|
|
1075
1075
|
0 === a2.comboboxState.value && i2.value && (a2.virtual.value || 0 !== a2.activationTrigger.value && v(() => {
|
|
1076
1076
|
var e3, t3;
|
|
1077
|
-
return null == (t3 = null == (e3 =
|
|
1077
|
+
return null == (t3 = null == (e3 = Te(r2)) ? void 0 : e3.scrollIntoView) ? void 0 : t3.call(e3, { block: "nearest" });
|
|
1078
1078
|
}));
|
|
1079
1079
|
});
|
|
1080
1080
|
let y2 = tt();
|
|
@@ -1110,7 +1110,7 @@ function $t(e2) {
|
|
|
1110
1110
|
return new Set(e2());
|
|
1111
1111
|
let t2 = /* @__PURE__ */ new Set();
|
|
1112
1112
|
for (let l2 of e2.value) {
|
|
1113
|
-
let e3 =
|
|
1113
|
+
let e3 = Te(l2);
|
|
1114
1114
|
e3 instanceof HTMLElement && t2.add(e3);
|
|
1115
1115
|
}
|
|
1116
1116
|
return t2;
|
|
@@ -1147,12 +1147,12 @@ let Ht = Object.assign(k({ name: "FocusTrap", props: { as: { type: [Object, Stri
|
|
|
1147
1147
|
p([t3, l3, n3], (r3, i3) => {
|
|
1148
1148
|
if (r3.every((e4, t4) => (null == i3 ? void 0 : i3[t4]) === e4) || !n3.value)
|
|
1149
1149
|
return;
|
|
1150
|
-
let s2 =
|
|
1150
|
+
let s2 = Te(t3);
|
|
1151
1151
|
s2 && wt(() => {
|
|
1152
1152
|
var t4, n4;
|
|
1153
1153
|
if (!o3.value)
|
|
1154
1154
|
return;
|
|
1155
|
-
let r4 =
|
|
1155
|
+
let r4 = Te(l3), i4 = null == (t4 = e3.value) ? void 0 : t4.activeElement;
|
|
1156
1156
|
if (r4) {
|
|
1157
1157
|
if (r4 === i4)
|
|
1158
1158
|
return void (a3.value = i4);
|
|
@@ -1169,7 +1169,7 @@ let Ht = Object.assign(k({ name: "FocusTrap", props: { as: { type: [Object, Stri
|
|
|
1169
1169
|
if (!a3.value)
|
|
1170
1170
|
return;
|
|
1171
1171
|
let o4 = $t(l3);
|
|
1172
|
-
|
|
1172
|
+
Te(t3) instanceof HTMLElement && o4.add(Te(t3));
|
|
1173
1173
|
let r3 = n3.value;
|
|
1174
1174
|
if (!r3)
|
|
1175
1175
|
return;
|
|
@@ -1184,8 +1184,8 @@ let Ht = Object.assign(k({ name: "FocusTrap", props: { as: { type: [Object, Stri
|
|
|
1184
1184
|
}), e3;
|
|
1185
1185
|
}();
|
|
1186
1186
|
function c2(e3) {
|
|
1187
|
-
let t3 =
|
|
1188
|
-
t3 &&
|
|
1187
|
+
let t3 = Te(a2);
|
|
1188
|
+
t3 && Ee(d2.value, { [zt.Forwards]: () => {
|
|
1189
1189
|
qe(t3, Be.First, { skipElements: [e3.relatedTarget] });
|
|
1190
1190
|
}, [zt.Backwards]: () => {
|
|
1191
1191
|
qe(t3, Be.Last, { skipElements: [e3.relatedTarget] });
|
|
@@ -1201,9 +1201,9 @@ let Ht = Object.assign(k({ name: "FocusTrap", props: { as: { type: [Object, Stri
|
|
|
1201
1201
|
if (!r2.value)
|
|
1202
1202
|
return;
|
|
1203
1203
|
let l3 = $t(e2.containers);
|
|
1204
|
-
|
|
1204
|
+
Te(a2) instanceof HTMLElement && l3.add(Te(a2));
|
|
1205
1205
|
let n3 = t3.relatedTarget;
|
|
1206
|
-
n3 instanceof HTMLElement && "true" !== n3.dataset.headlessuiFocusGuard && (Yt(l3, n3) || (g2.value ? qe(
|
|
1206
|
+
n3 instanceof HTMLElement && "true" !== n3.dataset.headlessuiFocusGuard && (Yt(l3, n3) || (g2.value ? qe(Te(a2), Ee(d2.value, { [zt.Forwards]: () => Be.Next, [zt.Backwards]: () => Be.Previous }) | Be.WrapAround, { relativeTo: t3.target }) : t3.target instanceof HTMLElement && He(t3.target)));
|
|
1207
1207
|
}
|
|
1208
1208
|
return () => {
|
|
1209
1209
|
let n3 = { ref: a2, onKeydown: m2, onFocusout: f2 }, { features: o3, initialFocus: r3, containers: i3, ...s2 } = e2;
|
|
@@ -1336,7 +1336,7 @@ function Zt(e2, t2 = s(true)) {
|
|
|
1336
1336
|
var n2;
|
|
1337
1337
|
if (!t2.value)
|
|
1338
1338
|
return;
|
|
1339
|
-
let a2 =
|
|
1339
|
+
let a2 = Te(e2);
|
|
1340
1340
|
if (!a2)
|
|
1341
1341
|
return;
|
|
1342
1342
|
l2(function() {
|
|
@@ -1432,7 +1432,7 @@ let sl = k({ name: "Portal", props: { as: { type: [Object, String], default: "di
|
|
|
1432
1432
|
return p(n2, () => {
|
|
1433
1433
|
if (g2 || !c2)
|
|
1434
1434
|
return;
|
|
1435
|
-
let e3 =
|
|
1435
|
+
let e3 = Te(n2);
|
|
1436
1436
|
e3 && (O(c2.register(e3), m2), g2 = true);
|
|
1437
1437
|
}), O(() => {
|
|
1438
1438
|
var e3, t3;
|
|
@@ -1442,7 +1442,7 @@ let sl = k({ name: "Portal", props: { as: { type: [Object, String], default: "di
|
|
|
1442
1442
|
if (!d2.value || null === i2.value)
|
|
1443
1443
|
return null;
|
|
1444
1444
|
let a3 = { ref: n2, "data-headlessui-portal": "" };
|
|
1445
|
-
return x(
|
|
1445
|
+
return x(T, { to: i2.value }, ot({ ourProps: a3, theirProps: e2, slot: {}, attrs: l2, slots: t2, name: "Portal" }));
|
|
1446
1446
|
};
|
|
1447
1447
|
} }), ul = Symbol("PortalParentContext");
|
|
1448
1448
|
let dl = Symbol("PortalGroupContext"), cl = k({ name: "PortalGroup", props: { as: { type: [Object, String], default: "template" }, target: { type: Object, default: null } }, setup(e2, { attrs: t2, slots: l2 }) {
|
|
@@ -1473,7 +1473,7 @@ let fl = "DC8F892D-2EBD-447C-A4C8-A03058436FF4", vl = k({ name: "Dialog", inheri
|
|
|
1473
1473
|
throw new Error("You forgot to provide an `open` prop to the `Dialog`.");
|
|
1474
1474
|
if ("boolean" != typeof y2.value)
|
|
1475
1475
|
throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${y2.value === fl ? void 0 : e2.open}`);
|
|
1476
|
-
let O2 = u(() => d2.value && y2.value ? 0 : 1), M2 = u(() => 0 === O2.value), D2 = u(() => g2.value > 1),
|
|
1476
|
+
let O2 = u(() => d2.value && y2.value ? 0 : 1), M2 = u(() => 0 === O2.value), D2 = u(() => g2.value > 1), T2 = null !== f(gl, null), [E2, I2] = function() {
|
|
1477
1477
|
let e3 = f(ul, null), t3 = s([]);
|
|
1478
1478
|
function l3(l4) {
|
|
1479
1479
|
let n4 = t3.value.indexOf(l4);
|
|
@@ -1497,25 +1497,25 @@ let fl = "DC8F892D-2EBD-447C-A4C8-A03058436FF4", vl = k({ name: "Dialog", inheri
|
|
|
1497
1497
|
for (let e4 of t3.value)
|
|
1498
1498
|
i3.push(e4);
|
|
1499
1499
|
for (let e4 of null != (l4 = null == a3 ? void 0 : a3.querySelectorAll("html > *, body > *")) ? l4 : [])
|
|
1500
|
-
e4 !== document.body && e4 !== document.head && e4 instanceof HTMLElement && "headlessui-portal-root" !== e4.id && (e4.contains(
|
|
1500
|
+
e4 !== document.body && e4 !== document.head && e4 instanceof HTMLElement && "headlessui-portal-root" !== e4.id && (e4.contains(Te(n3)) || e4.contains(null == (r3 = null == (o4 = Te(n3)) ? void 0 : o4.getRootNode()) ? void 0 : r3.host) || i3.some((t4) => e4.contains(t4)) || i3.push(e4));
|
|
1501
1501
|
return i3;
|
|
1502
1502
|
}
|
|
1503
1503
|
return { resolveContainers: o3, contains: (e4) => o3().some((t4) => t4.contains(e4)), mainTreeNodeRef: n3, MainTreeNode: () => null != l3 ? null : x(pt, { features: ct.Hidden, ref: n3 }) };
|
|
1504
|
-
}({ portals:
|
|
1504
|
+
}({ portals: E2, defaultContainers: [u(() => {
|
|
1505
1505
|
var e3;
|
|
1506
1506
|
return null != (e3 = V2.panelRef.value) ? e3 : w2.value;
|
|
1507
|
-
})] }), R2 = u(() => D2.value ? "parent" : "leaf"), B2 = u(() => null !== m2 && (m2.value & mt.Closing) === mt.Closing), A2 = u(() => !
|
|
1507
|
+
})] }), R2 = u(() => D2.value ? "parent" : "leaf"), B2 = u(() => null !== m2 && (m2.value & mt.Closing) === mt.Closing), A2 = u(() => !T2 && !B2.value && M2.value), L2 = u(() => {
|
|
1508
1508
|
var e3, t3, l3;
|
|
1509
|
-
return null != (l3 = Array.from(null != (t3 = null == (e3 = C2.value) ? void 0 : e3.querySelectorAll("body > *")) ? t3 : []).find((e4) => "headlessui-portal-root" !== e4.id && (e4.contains(
|
|
1509
|
+
return null != (l3 = Array.from(null != (t3 = null == (e3 = C2.value) ? void 0 : e3.querySelectorAll("body > *")) ? t3 : []).find((e4) => "headlessui-portal-root" !== e4.id && (e4.contains(Te(P2)) && e4 instanceof HTMLElement))) ? l3 : null;
|
|
1510
1510
|
});
|
|
1511
1511
|
Zt(L2, A2);
|
|
1512
1512
|
let F2 = u(() => !!D2.value || M2.value), N2 = u(() => {
|
|
1513
1513
|
var e3, t3, l3;
|
|
1514
|
-
return null != (l3 = Array.from(null != (t3 = null == (e3 = C2.value) ? void 0 : e3.querySelectorAll("[data-headlessui-portal]")) ? t3 : []).find((e4) => e4.contains(
|
|
1514
|
+
return null != (l3 = Array.from(null != (t3 = null == (e3 = C2.value) ? void 0 : e3.querySelectorAll("[data-headlessui-portal]")) ? t3 : []).find((e4) => e4.contains(Te(P2)) && e4 instanceof HTMLElement)) ? l3 : null;
|
|
1515
1515
|
});
|
|
1516
1516
|
Zt(N2, F2), nl({ type: "Dialog", enabled: u(() => 0 === O2.value), element: w2, onUpdate: (e3, t3) => {
|
|
1517
1517
|
if ("Dialog" === t3)
|
|
1518
|
-
return
|
|
1518
|
+
return Ee(e3, { [ll.Add]: () => g2.value += 1, [ll.Remove]: () => g2.value -= 1 });
|
|
1519
1519
|
} });
|
|
1520
1520
|
let z2 = ol({ name: "DialogDescription", slot: u(() => ({ open: y2.value })) }), $2 = s(null), V2 = { titleId: $2, panelRef: s(null), dialogState: O2, setTitleId(e3) {
|
|
1521
1521
|
$2.value !== e3 && ($2.value = e3);
|
|
@@ -1531,14 +1531,14 @@ let fl = "DC8F892D-2EBD-447C-A4C8-A03058436FF4", vl = k({ name: "Dialog", inheri
|
|
|
1531
1531
|
Nt(null == (r2 = C2.value) ? void 0 : r2.defaultView, "keydown", (e3) => {
|
|
1532
1532
|
Y2.value && (e3.defaultPrevented || e3.key === ht.Escape && (e3.preventDefault(), e3.stopPropagation(), V2.close()));
|
|
1533
1533
|
});
|
|
1534
|
-
let U2 = u(() => !(B2.value || 0 !== O2.value ||
|
|
1534
|
+
let U2 = u(() => !(B2.value || 0 !== O2.value || T2));
|
|
1535
1535
|
return Kt(C2, U2, (e3) => {
|
|
1536
1536
|
var t3;
|
|
1537
1537
|
return { containers: [...null != (t3 = e3.containers) ? t3 : [], _2] };
|
|
1538
1538
|
}), h((e3) => {
|
|
1539
1539
|
if (0 !== O2.value)
|
|
1540
1540
|
return;
|
|
1541
|
-
let t3 =
|
|
1541
|
+
let t3 = Te(w2);
|
|
1542
1542
|
if (!t3)
|
|
1543
1543
|
return;
|
|
1544
1544
|
let l3 = new ResizeObserver((e4) => {
|
|
@@ -1550,7 +1550,7 @@ let fl = "DC8F892D-2EBD-447C-A4C8-A03058436FF4", vl = k({ name: "Dialog", inheri
|
|
|
1550
1550
|
l3.observe(t3), e3(() => l3.disconnect());
|
|
1551
1551
|
}), () => {
|
|
1552
1552
|
let { open: t3, initialFocus: a3, ...o3 } = e2, r3 = { ...l2, ref: w2, id: i2, role: p2.value, "aria-modal": 0 === O2.value || void 0, "aria-labelledby": $2.value, "aria-describedby": z2.value }, s2 = { open: 0 === O2.value };
|
|
1553
|
-
return x(el, { force: true }, () => [x(sl, () => x(cl, { target: w2.value }, () => x(el, { force: false }, () => x(Ht, { initialFocus: a3, containers: _2, features: M2.value ?
|
|
1553
|
+
return x(el, { force: true }, () => [x(sl, () => x(cl, { target: w2.value }, () => x(el, { force: false }, () => x(Ht, { initialFocus: a3, containers: _2, features: M2.value ? Ee(R2.value, { parent: Ht.features.RestoreFocus, leaf: Ht.features.All & ~Ht.features.FocusLock }) : Ht.features.None }, () => x(I2, {}, () => ot({ ourProps: r3, theirProps: { ...o3, ...l2 }, slot: s2, attrs: l2, slots: n2, visible: 0 === O2.value, features: nt.RenderStrategy | nt.Static, name: "Dialog" })))))), x(j2)]);
|
|
1554
1554
|
};
|
|
1555
1555
|
} });
|
|
1556
1556
|
k({ name: "DialogOverlay", props: { as: { type: [Object, String], default: "div" }, id: { type: String, default: null } }, setup(e2, { attrs: t2, slots: l2 }) {
|
|
@@ -1607,15 +1607,15 @@ function wl(e2) {
|
|
|
1607
1607
|
let kl = Symbol("DisclosurePanelContext");
|
|
1608
1608
|
let Sl = k({ name: "Disclosure", props: { as: { type: [Object, String], default: "template" }, defaultOpen: { type: [Boolean], default: false } }, setup(e2, { slots: t2, attrs: l2 }) {
|
|
1609
1609
|
let n2 = s(e2.defaultOpen ? 0 : 1), a2 = s(null), o2 = s(null), r2 = { buttonId: s(`headlessui-disclosure-button-${De()}`), panelId: s(`headlessui-disclosure-panel-${De()}`), disclosureState: n2, panel: a2, button: o2, toggleDisclosure() {
|
|
1610
|
-
n2.value =
|
|
1610
|
+
n2.value = Ee(n2.value, { 0: 1, 1: 0 });
|
|
1611
1611
|
}, closeDisclosure() {
|
|
1612
1612
|
1 !== n2.value && (n2.value = 1);
|
|
1613
1613
|
}, close(e3) {
|
|
1614
1614
|
r2.closeDisclosure();
|
|
1615
|
-
let t3 = e3 ? e3 instanceof HTMLElement ? e3 : e3.value instanceof HTMLElement ?
|
|
1615
|
+
let t3 = e3 ? e3 instanceof HTMLElement ? e3 : e3.value instanceof HTMLElement ? Te(e3) : Te(r2.button) : Te(r2.button);
|
|
1616
1616
|
null == t3 || t3.focus();
|
|
1617
1617
|
} };
|
|
1618
|
-
return S(xl, r2), vt(u(() =>
|
|
1618
|
+
return S(xl, r2), vt(u(() => Ee(n2.value, { 0: mt.Open, 1: mt.Closed }))), () => {
|
|
1619
1619
|
let { defaultOpen: a3, ...o3 } = e2;
|
|
1620
1620
|
return ot({ theirProps: o3, ourProps: {}, slot: { open: 0 === n2.value, close: r2.close }, slots: t2, attrs: l2, name: "Disclosure" });
|
|
1621
1621
|
};
|
|
@@ -1633,7 +1633,7 @@ let Sl = k({ name: "Disclosure", props: { as: { type: [Object, String], default:
|
|
|
1633
1633
|
let d2 = Qe(u(() => ({ as: e2.as, type: t2.type })), i2);
|
|
1634
1634
|
function c2() {
|
|
1635
1635
|
var t3;
|
|
1636
|
-
e2.disabled || (r2.value ? (a2.toggleDisclosure(), null == (t3 =
|
|
1636
|
+
e2.disabled || (r2.value ? (a2.toggleDisclosure(), null == (t3 = Te(a2.button)) || t3.focus()) : a2.toggleDisclosure());
|
|
1637
1637
|
}
|
|
1638
1638
|
function p2(t3) {
|
|
1639
1639
|
var l3;
|
|
@@ -1642,7 +1642,7 @@ let Sl = k({ name: "Disclosure", props: { as: { type: [Object, String], default:
|
|
|
1642
1642
|
switch (t3.key) {
|
|
1643
1643
|
case ht.Space:
|
|
1644
1644
|
case ht.Enter:
|
|
1645
|
-
t3.preventDefault(), t3.stopPropagation(), a2.toggleDisclosure(), null == (l3 =
|
|
1645
|
+
t3.preventDefault(), t3.stopPropagation(), a2.toggleDisclosure(), null == (l3 = Te(a2.button)) || l3.focus();
|
|
1646
1646
|
}
|
|
1647
1647
|
else
|
|
1648
1648
|
switch (t3.key) {
|
|
@@ -1658,7 +1658,7 @@ let Sl = k({ name: "Disclosure", props: { as: { type: [Object, String], default:
|
|
|
1658
1658
|
return () => {
|
|
1659
1659
|
var n3;
|
|
1660
1660
|
let o3 = { open: 0 === a2.disclosureState.value }, { id: s2, ...u2 } = e2;
|
|
1661
|
-
return ot({ ourProps: r2.value ? { ref: i2, type: d2.value, onClick: c2, onKeydown: p2 } : { id: null != (n3 = a2.buttonId.value) ? n3 : s2, ref: i2, type: d2.value, "aria-expanded": 0 === a2.disclosureState.value, "aria-controls": 0 === a2.disclosureState.value ||
|
|
1661
|
+
return ot({ ourProps: r2.value ? { ref: i2, type: d2.value, onClick: c2, onKeydown: p2 } : { id: null != (n3 = a2.buttonId.value) ? n3 : s2, ref: i2, type: d2.value, "aria-expanded": 0 === a2.disclosureState.value, "aria-controls": 0 === a2.disclosureState.value || Te(a2.panel) ? a2.panelId.value : void 0, disabled: !!e2.disabled || void 0, onClick: c2, onKeydown: p2, onKeyup: g2 }, theirProps: u2, slot: o3, attrs: t2, slots: l2, name: "DisclosureButton" });
|
|
1662
1662
|
};
|
|
1663
1663
|
} }), Ol = k({ name: "DisclosurePanel", props: { as: { type: [Object, String], default: "div" }, static: { type: Boolean, default: false }, unmount: { type: Boolean, default: true }, id: { type: String, default: null } }, setup(e2, { attrs: t2, slots: l2, expose: n2 }) {
|
|
1664
1664
|
let a2 = wl("DisclosurePanel");
|
|
@@ -1685,10 +1685,10 @@ function Dl(e2) {
|
|
|
1685
1685
|
let r2 = o2 ? null != (l2 = a2.innerText) ? l2 : "" : n2;
|
|
1686
1686
|
return Ml.test(r2) && (r2 = r2.replace(Ml, "")), r2;
|
|
1687
1687
|
}
|
|
1688
|
-
function
|
|
1688
|
+
function Tl(e2) {
|
|
1689
1689
|
let t2 = s(""), l2 = s("");
|
|
1690
1690
|
return () => {
|
|
1691
|
-
let n2 =
|
|
1691
|
+
let n2 = Te(e2);
|
|
1692
1692
|
if (!n2)
|
|
1693
1693
|
return "";
|
|
1694
1694
|
let a2 = n2.innerText;
|
|
@@ -1716,7 +1716,7 @@ function El(e2) {
|
|
|
1716
1716
|
return t2.value = a2, l2.value = o2, o2;
|
|
1717
1717
|
};
|
|
1718
1718
|
}
|
|
1719
|
-
var
|
|
1719
|
+
var El = ((e2) => (e2[e2.Open = 0] = "Open", e2[e2.Closed = 1] = "Closed", e2))(El || {}), Il = ((e2) => (e2[e2.Pointer = 0] = "Pointer", e2[e2.Other = 1] = "Other", e2))(Il || {});
|
|
1720
1720
|
let _l = Symbol("MenuContext");
|
|
1721
1721
|
function Pl(e2) {
|
|
1722
1722
|
let t2 = f(_l, null);
|
|
@@ -1729,7 +1729,7 @@ function Pl(e2) {
|
|
|
1729
1729
|
let jl = k({ name: "Menu", props: { as: { type: [Object, String], default: "template" } }, setup(e2, { slots: t2, attrs: l2 }) {
|
|
1730
1730
|
let n2 = s(1), a2 = s(null), o2 = s(null), r2 = s([]), i2 = s(""), d2 = s(null), c2 = s(1);
|
|
1731
1731
|
function p2(e3 = (e4) => e4) {
|
|
1732
|
-
let t3 = null !== d2.value ? r2.value[d2.value] : null, l3 = Ue(e3(r2.value.slice()), (e4) =>
|
|
1732
|
+
let t3 = null !== d2.value ? r2.value[d2.value] : null, l3 = Ue(e3(r2.value.slice()), (e4) => Te(e4.dataRef.domRef)), n3 = t3 ? l3.indexOf(t3) : null;
|
|
1733
1733
|
return -1 === n3 && (n3 = null), { items: l3, activeItemIndex: n3 };
|
|
1734
1734
|
}
|
|
1735
1735
|
let g2 = { menuState: n2, buttonRef: a2, itemsRef: o2, items: r2, searchQuery: i2, activeItemIndex: d2, activationTrigger: c2, closeMenu: () => {
|
|
@@ -1756,8 +1756,8 @@ let jl = k({ name: "Menu", props: { as: { type: [Object, String], default: "temp
|
|
|
1756
1756
|
} };
|
|
1757
1757
|
return Ze([a2, o2], (e3, t3) => {
|
|
1758
1758
|
var l3;
|
|
1759
|
-
g2.closeMenu(), ze(t3, Ne.Loose) || (e3.preventDefault(), null == (l3 =
|
|
1760
|
-
}, u(() => 0 === n2.value)), S(_l, g2), vt(u(() =>
|
|
1759
|
+
g2.closeMenu(), ze(t3, Ne.Loose) || (e3.preventDefault(), null == (l3 = Te(a2)) || l3.focus());
|
|
1760
|
+
}, u(() => 0 === n2.value)), S(_l, g2), vt(u(() => Ee(n2.value, { 0: mt.Open, 1: mt.Closed }))), () => {
|
|
1761
1761
|
let a3 = { open: 0 === n2.value, close: g2.closeMenu };
|
|
1762
1762
|
return ot({ ourProps: {}, theirProps: e2, slot: a3, slots: t2, attrs: l2, name: "Menu" });
|
|
1763
1763
|
};
|
|
@@ -1771,13 +1771,13 @@ let jl = k({ name: "Menu", props: { as: { type: [Object, String], default: "temp
|
|
|
1771
1771
|
case ht.ArrowDown:
|
|
1772
1772
|
e3.preventDefault(), e3.stopPropagation(), r2.openMenu(), v(() => {
|
|
1773
1773
|
var e4;
|
|
1774
|
-
null == (e4 =
|
|
1774
|
+
null == (e4 = Te(r2.itemsRef)) || e4.focus({ preventScroll: true }), r2.goToItem(yt.First);
|
|
1775
1775
|
});
|
|
1776
1776
|
break;
|
|
1777
1777
|
case ht.ArrowUp:
|
|
1778
1778
|
e3.preventDefault(), e3.stopPropagation(), r2.openMenu(), v(() => {
|
|
1779
1779
|
var e4;
|
|
1780
|
-
null == (e4 =
|
|
1780
|
+
null == (e4 = Te(r2.itemsRef)) || e4.focus({ preventScroll: true }), r2.goToItem(yt.Last);
|
|
1781
1781
|
});
|
|
1782
1782
|
}
|
|
1783
1783
|
}
|
|
@@ -1788,12 +1788,12 @@ let jl = k({ name: "Menu", props: { as: { type: [Object, String], default: "temp
|
|
|
1788
1788
|
function d2(t3) {
|
|
1789
1789
|
e2.disabled || (0 === r2.menuState.value ? (r2.closeMenu(), v(() => {
|
|
1790
1790
|
var e3;
|
|
1791
|
-
return null == (e3 =
|
|
1791
|
+
return null == (e3 = Te(r2.buttonRef)) ? void 0 : e3.focus({ preventScroll: true });
|
|
1792
1792
|
})) : (t3.preventDefault(), r2.openMenu(), function(e3) {
|
|
1793
1793
|
requestAnimationFrame(() => requestAnimationFrame(e3));
|
|
1794
1794
|
}(() => {
|
|
1795
1795
|
var e3;
|
|
1796
|
-
return null == (e3 =
|
|
1796
|
+
return null == (e3 = Te(r2.itemsRef)) ? void 0 : e3.focus({ preventScroll: true });
|
|
1797
1797
|
})));
|
|
1798
1798
|
}
|
|
1799
1799
|
n2({ el: r2.buttonRef, $el: r2.buttonRef });
|
|
@@ -1801,7 +1801,7 @@ let jl = k({ name: "Menu", props: { as: { type: [Object, String], default: "temp
|
|
|
1801
1801
|
return () => {
|
|
1802
1802
|
var n3;
|
|
1803
1803
|
let a3 = { open: 0 === r2.menuState.value }, { ...u2 } = e2;
|
|
1804
|
-
return ot({ ourProps: { ref: r2.buttonRef, id: o2, type: c2.value, "aria-haspopup": "menu", "aria-controls": null == (n3 =
|
|
1804
|
+
return ot({ ourProps: { ref: r2.buttonRef, id: o2, type: c2.value, "aria-haspopup": "menu", "aria-controls": null == (n3 = Te(r2.itemsRef)) ? void 0 : n3.id, "aria-expanded": 0 === r2.menuState.value, onKeydown: i2, onKeyup: s2, onClick: d2 }, theirProps: u2, slot: a3, attrs: t2, slots: l2, name: "MenuButton" });
|
|
1805
1805
|
};
|
|
1806
1806
|
} }), Bl = k({ name: "MenuItems", props: { as: { type: [Object, String], default: "div" }, static: { type: Boolean, default: false }, unmount: { type: Boolean, default: true }, id: { type: String, default: null } }, setup(e2, { attrs: t2, slots: l2, expose: n2 }) {
|
|
1807
1807
|
var a2;
|
|
@@ -1814,9 +1814,9 @@ let jl = k({ name: "Menu", props: { as: { type: [Object, String], default: "temp
|
|
|
1814
1814
|
return e3.preventDefault(), e3.stopPropagation(), r2.search(e3.key);
|
|
1815
1815
|
case ht.Enter:
|
|
1816
1816
|
if (e3.preventDefault(), e3.stopPropagation(), null !== r2.activeItemIndex.value) {
|
|
1817
|
-
null == (t3 =
|
|
1817
|
+
null == (t3 = Te(r2.items.value[r2.activeItemIndex.value].dataRef.domRef)) || t3.click();
|
|
1818
1818
|
}
|
|
1819
|
-
r2.closeMenu(), $e(
|
|
1819
|
+
r2.closeMenu(), $e(Te(r2.buttonRef));
|
|
1820
1820
|
break;
|
|
1821
1821
|
case ht.ArrowDown:
|
|
1822
1822
|
return e3.preventDefault(), e3.stopPropagation(), r2.goToItem(yt.Next);
|
|
@@ -1831,13 +1831,13 @@ let jl = k({ name: "Menu", props: { as: { type: [Object, String], default: "temp
|
|
|
1831
1831
|
case ht.Escape:
|
|
1832
1832
|
e3.preventDefault(), e3.stopPropagation(), r2.closeMenu(), v(() => {
|
|
1833
1833
|
var e4;
|
|
1834
|
-
return null == (e4 =
|
|
1834
|
+
return null == (e4 = Te(r2.buttonRef)) ? void 0 : e4.focus({ preventScroll: true });
|
|
1835
1835
|
});
|
|
1836
1836
|
break;
|
|
1837
1837
|
case ht.Tab:
|
|
1838
1838
|
e3.preventDefault(), e3.stopPropagation(), r2.closeMenu(), v(() => function(e4, t4) {
|
|
1839
1839
|
return qe(Fe(), t4, { relativeTo: e4 });
|
|
1840
|
-
}(
|
|
1840
|
+
}(Te(r2.buttonRef), e3.shiftKey ? Be.Previous : Be.Next));
|
|
1841
1841
|
break;
|
|
1842
1842
|
default:
|
|
1843
1843
|
1 === e3.key.length && (r2.search(e3.key), i2.value = setTimeout(() => r2.clearSearch(), 350));
|
|
@@ -1847,26 +1847,26 @@ let jl = k({ name: "Menu", props: { as: { type: [Object, String], default: "temp
|
|
|
1847
1847
|
if (e3.key === ht.Space)
|
|
1848
1848
|
e3.preventDefault();
|
|
1849
1849
|
}
|
|
1850
|
-
n2({ el: r2.itemsRef, $el: r2.itemsRef }), lt({ container: u(() =>
|
|
1850
|
+
n2({ el: r2.itemsRef, $el: r2.itemsRef }), lt({ container: u(() => Te(r2.itemsRef)), enabled: u(() => 0 === r2.menuState.value), accept: (e3) => "menuitem" === e3.getAttribute("role") ? NodeFilter.FILTER_REJECT : e3.hasAttribute("role") ? NodeFilter.FILTER_SKIP : NodeFilter.FILTER_ACCEPT, walk(e3) {
|
|
1851
1851
|
e3.setAttribute("role", "none");
|
|
1852
1852
|
} });
|
|
1853
1853
|
let p2 = ft(), g2 = u(() => null !== p2 ? (p2.value & mt.Open) === mt.Open : 0 === r2.menuState.value);
|
|
1854
1854
|
return () => {
|
|
1855
1855
|
var n3, a3;
|
|
1856
1856
|
let i3 = { open: 0 === r2.menuState.value }, { ...s2 } = e2;
|
|
1857
|
-
return ot({ ourProps: { "aria-activedescendant": null === r2.activeItemIndex.value || null == (n3 = r2.items.value[r2.activeItemIndex.value]) ? void 0 : n3.id, "aria-labelledby": null == (a3 =
|
|
1857
|
+
return ot({ ourProps: { "aria-activedescendant": null === r2.activeItemIndex.value || null == (n3 = r2.items.value[r2.activeItemIndex.value]) ? void 0 : n3.id, "aria-labelledby": null == (a3 = Te(r2.buttonRef)) ? void 0 : a3.id, id: o2, onKeydown: d2, onKeyup: c2, role: "menu", tabIndex: 0, ref: r2.itemsRef }, theirProps: s2, slot: i3, attrs: t2, slots: l2, features: nt.RenderStrategy | nt.Static, visible: g2.value, name: "MenuItems" });
|
|
1858
1858
|
};
|
|
1859
1859
|
} }), Al = k({ name: "MenuItem", inheritAttrs: false, props: { as: { type: [Object, String], default: "template" }, disabled: { type: Boolean, default: false }, id: { type: String, default: null } }, setup(e2, { slots: t2, attrs: l2, expose: n2 }) {
|
|
1860
1860
|
var a2;
|
|
1861
1861
|
let o2 = null != (a2 = e2.id) ? a2 : `headlessui-menu-item-${De()}`, r2 = Pl("MenuItem"), i2 = s(null);
|
|
1862
1862
|
n2({ el: i2, $el: i2 });
|
|
1863
|
-
let d2 = u(() => null !== r2.activeItemIndex.value && r2.items.value[r2.activeItemIndex.value].id === o2), c2 =
|
|
1863
|
+
let d2 = u(() => null !== r2.activeItemIndex.value && r2.items.value[r2.activeItemIndex.value].id === o2), c2 = Tl(i2), p2 = u(() => ({ disabled: e2.disabled, get textValue() {
|
|
1864
1864
|
return c2();
|
|
1865
1865
|
}, domRef: i2 }));
|
|
1866
1866
|
function g2(t3) {
|
|
1867
1867
|
if (e2.disabled)
|
|
1868
1868
|
return t3.preventDefault();
|
|
1869
|
-
r2.closeMenu(), $e(
|
|
1869
|
+
r2.closeMenu(), $e(Te(r2.buttonRef));
|
|
1870
1870
|
}
|
|
1871
1871
|
function m2() {
|
|
1872
1872
|
if (e2.disabled)
|
|
@@ -1876,7 +1876,7 @@ let jl = k({ name: "Menu", props: { as: { type: [Object, String], default: "temp
|
|
|
1876
1876
|
b(() => r2.registerItem(o2, p2)), O(() => r2.unregisterItem(o2)), h(() => {
|
|
1877
1877
|
0 === r2.menuState.value && d2.value && 0 !== r2.activationTrigger.value && v(() => {
|
|
1878
1878
|
var e3, t3;
|
|
1879
|
-
return null == (t3 = null == (e3 =
|
|
1879
|
+
return null == (t3 = null == (e3 = Te(i2)) ? void 0 : e3.scrollIntoView) ? void 0 : t3.call(e3, { block: "nearest" });
|
|
1880
1880
|
});
|
|
1881
1881
|
});
|
|
1882
1882
|
let f2 = tt();
|
|
@@ -1953,7 +1953,7 @@ let Nl = k({ name: "Label", props: { as: { type: [Object, String], default: "lab
|
|
|
1953
1953
|
a2({ el: v2, $el: v2 });
|
|
1954
1954
|
let C2 = u(() => {
|
|
1955
1955
|
var e3, t3;
|
|
1956
|
-
return null == (t3 = null == (e3 =
|
|
1956
|
+
return null == (t3 = null == (e3 = Te(v2)) ? void 0 : e3.closest) ? void 0 : t3.call(e3, "form");
|
|
1957
1957
|
});
|
|
1958
1958
|
return b(() => {
|
|
1959
1959
|
p([C2], () => {
|
|
@@ -2013,7 +2013,7 @@ function Ql(e2) {
|
|
|
2013
2013
|
let t2 = s([]), l2 = s(false);
|
|
2014
2014
|
function n2(n3, a2 = at.Hidden) {
|
|
2015
2015
|
let o2 = t2.value.findIndex(({ id: e3 }) => e3 === n3);
|
|
2016
|
-
-1 !== o2 && (
|
|
2016
|
+
-1 !== o2 && (Ee(a2, { [at.Unmount]() {
|
|
2017
2017
|
t2.value.splice(o2, 1);
|
|
2018
2018
|
}, [at.Hidden]() {
|
|
2019
2019
|
t2.value[o2].state = "hidden";
|
|
@@ -2052,24 +2052,24 @@ let en = nt.RenderStrategy, tn = k({ props: { as: { type: [Object, String], defa
|
|
|
2052
2052
|
if (null === e3)
|
|
2053
2053
|
throw new Error("A <TransitionChild /> is used but it is missing a parent <TransitionRoot />.");
|
|
2054
2054
|
return e3;
|
|
2055
|
-
}(), M2 = s(y2.value ? "visible" : "hidden"), D2 = { value: true },
|
|
2056
|
-
!
|
|
2055
|
+
}(), M2 = s(y2.value ? "visible" : "hidden"), D2 = { value: true }, T2 = De(), E2 = { value: false }, I2 = Ql(() => {
|
|
2056
|
+
!E2.value && "hidden" !== M2.value && (M2.value = "hidden", C2(T2), g2());
|
|
2057
2057
|
});
|
|
2058
2058
|
b(() => {
|
|
2059
|
-
let e3 = k2(
|
|
2059
|
+
let e3 = k2(T2);
|
|
2060
2060
|
O(e3);
|
|
2061
2061
|
}), h(() => {
|
|
2062
|
-
if (v2.value === at.Hidden &&
|
|
2062
|
+
if (v2.value === at.Hidden && T2) {
|
|
2063
2063
|
if (y2.value && "visible" !== M2.value)
|
|
2064
2064
|
return void (M2.value = "visible");
|
|
2065
|
-
|
|
2065
|
+
Ee(M2.value, { hidden: () => C2(T2), visible: () => k2(T2) });
|
|
2066
2066
|
}
|
|
2067
2067
|
});
|
|
2068
2068
|
let _2 = Kl(e2.enter), P2 = Kl(e2.enterFrom), j2 = Kl(e2.enterTo), R2 = Kl(e2.entered), B2 = Kl(e2.leave), A2 = Kl(e2.leaveFrom), L2 = Kl(e2.leaveTo);
|
|
2069
2069
|
return b(() => {
|
|
2070
2070
|
h(() => {
|
|
2071
2071
|
if ("visible" === M2.value) {
|
|
2072
|
-
let e3 =
|
|
2072
|
+
let e3 = Te(m2);
|
|
2073
2073
|
if (e3 instanceof Comment && "" === e3.data)
|
|
2074
2074
|
throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?");
|
|
2075
2075
|
}
|
|
@@ -2077,15 +2077,15 @@ let en = nt.RenderStrategy, tn = k({ props: { as: { type: [Object, String], defa
|
|
|
2077
2077
|
}), b(() => {
|
|
2078
2078
|
p([y2], (e3, t3, l3) => {
|
|
2079
2079
|
(function(e4) {
|
|
2080
|
-
let t4 = D2.value && !w2.value, l4 =
|
|
2081
|
-
!l4 || !(l4 instanceof HTMLElement) || t4 || (
|
|
2082
|
-
|
|
2080
|
+
let t4 = D2.value && !w2.value, l4 = Te(m2);
|
|
2081
|
+
!l4 || !(l4 instanceof HTMLElement) || t4 || (E2.value = true, y2.value && i2(), y2.value || c2(), e4(y2.value ? Wl(l4, _2, P2, j2, R2, (e5) => {
|
|
2082
|
+
E2.value = false, e5 === ql.Finished && d2();
|
|
2083
2083
|
}) : Wl(l4, B2, A2, L2, R2, (e5) => {
|
|
2084
|
-
|
|
2084
|
+
E2.value = false, e5 === ql.Finished && (Xl(I2) || (M2.value = "hidden", C2(T2), g2()));
|
|
2085
2085
|
})));
|
|
2086
2086
|
})(l3), D2.value = false;
|
|
2087
2087
|
}, { immediate: true });
|
|
2088
|
-
}), S(Zl, I2), vt(u(() =>
|
|
2088
|
+
}), S(Zl, I2), vt(u(() => Ee(M2.value, { visible: mt.Open, hidden: mt.Closed }) | r2.value)), () => {
|
|
2089
2089
|
let { appear: t3, show: o3, enter: r3, enterFrom: i3, enterTo: s2, entered: u2, leave: d3, leaveFrom: c3, leaveTo: p2, ...g3 } = e2, f2 = { ref: m2 };
|
|
2090
2090
|
return ot({ theirProps: { ...g3, ...w2.value && y2.value && Pe.isServer ? { class: n([l2.class, g3.class, ..._2, ...P2]) } : {} }, ourProps: f2, slot: {}, slots: a2, attrs: l2, features: en, visible: "visible" === M2.value, name: "TransitionChild" });
|
|
2091
2091
|
};
|
|
@@ -2161,20 +2161,20 @@ function wn(t2, l2) {
|
|
|
2161
2161
|
function kn(t2, l2) {
|
|
2162
2162
|
return e(), a("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", "stroke-width": "1.5", stroke: "currentColor", "aria-hidden": "true", "data-slot": "icon" }, [i("path", { "stroke-linecap": "round", "stroke-linejoin": "round", d: "M6 18 18 6M6 6l12 12" })]);
|
|
2163
2163
|
}
|
|
2164
|
-
const Sn = { class: "py-1" }, Cn = ["onClick"], On = { key: 1, class: "animate-pulse px-4 py-2 bg-gray-200 rounded-md flex inline-flex items-center relative inline-block text-left" }, Mn = i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-28" }, null, -1), Dn = { name: "uiDropdown" },
|
|
2164
|
+
const Sn = { class: "py-1" }, Cn = ["onClick"], On = { key: 1, class: "animate-pulse px-4 py-2 bg-gray-200 rounded-md flex inline-flex items-center relative inline-block text-left" }, Mn = i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-28" }, null, -1), Dn = { name: "uiDropdown" }, Tn = Object.assign(Dn, { props: { items: { type: Array, required: true }, position: { type: String, default: "left" }, disabled: Boolean, label: String, loading: { type: Boolean, default: true } }, emits: ["optionSelected"], setup(l2, { emit: r2 }) {
|
|
2165
2165
|
const s2 = r2, c2 = l2, p2 = u(() => {
|
|
2166
2166
|
let e2 = c2.items.find((e3) => true === e3.active);
|
|
2167
2167
|
return e2 ? e2.name : c2.label;
|
|
2168
2168
|
});
|
|
2169
|
-
return (r3, u2) => l2.loading ? (e(), a("div", On, [Mn, o(d(dn), { "aria-hidden": "true", class: "-mr-1 ml-2 h-5 w-5 text-gray-200 dark:text-gray-300" })])) : (e(), t(d(jl), { key: 0, as: "div", class: n(["relative inline-block text-left", { "opacity-25": l2.disabled }]) }, { default:
|
|
2169
|
+
return (r3, u2) => l2.loading ? (e(), a("div", On, [Mn, o(d(dn), { "aria-hidden": "true", class: "-mr-1 ml-2 h-5 w-5 text-gray-200 dark:text-gray-300" })])) : (e(), t(d(jl), { key: 0, as: "div", class: n(["relative inline-block text-left", { "opacity-25": l2.disabled }]) }, { default: E(() => [i("div", null, [o(d(Rl), { class: "inline-flex justify-between w-full rounded-md border border-gray-300 shadow-sm px-4 py-2 bg-white text-sm font-medium text-gray-700 hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-gray-100 focus:ring-indigo-500" }, { default: E(() => [I(_(p2.value) + " ", 1), o(d(dn), { "aria-hidden": "true", class: "-mr-1 ml-2 h-5 w-5" })]), _: 1 })]), o(P, { "enter-active-class": "transition ease-out duration-100", "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: E(() => [l2.disabled ? R("", true) : (e(), t(d(Bl), { key: 0, class: n([{ "right-0": "right" === l2.position, "left-0": "left" === l2.position }, "origin-top-right absolute mt-2 w-56 rounded-md shadow-lg bg-white ring-1 ring-black ring-opacity-5 focus:outline-none z-10"]) }, { default: E(() => [i("div", Sn, [(e(true), a(w, null, j(l2.items, (l3, a2) => (e(), t(d(Al), { key: a2 }, { default: E(() => [i("a", { onClick: (e2) => ((e3) => {
|
|
2170
2170
|
c2.disabled || s2("optionSelected", e3.value);
|
|
2171
2171
|
})(l3), class: n([l3.active ? "bg-gray-100 text-gray-900" : "text-gray-700", "block px-4 py-2 text-sm cursor-pointer"]) }, _(l3.name), 11, Cn)]), _: 2 }, 1024))), 128))])]), _: 1 }, 8, ["class"]))]), _: 1 })]), _: 1 }, 8, ["class"]));
|
|
2172
|
-
} }),
|
|
2172
|
+
} }), En = { key: 0 }, In = { class: "flex justify-between" }, _n = { key: 0, class: "block text-sm font-medium text-gray-700" }, Pn = { key: 1, class: "text-[10px] text-gray-500 uppercase justify-self-end" }, jn = ["disabled", "name", "placeholder", "type"], Rn = { key: 2, class: "absolute inset-y-0 right-0 pr-3 flex items-center pointer-events-none" }, Bn = { key: 1, class: "animate-pulse" }, An = { key: 0, class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-2/3 md:w-1/4 mb-1.5" }, Ln = i("div", { class: "animate-pulse px-4 py-3.5 bg-gray-200 rounded-md flex inline-flex items-center relative inline-block text-left w-full" }, [i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-28" })], -1), Fn = { name: "uiInput" }, Nn = Object.assign(Fn, { props: { label: String, type: { type: String, default: "text" }, name: String, placeholder: { type: String, default: "..." }, icon: { type: Function, default: () => {
|
|
2173
2173
|
} }, disabled: Boolean, color: { type: String, default: "gray" }, value: { type: String, default: "" }, error: String, optional: String, addOn: String, rightAddOn: String, loading: { type: Boolean, default: true } }, emits: ["inputChanged", "rightAddOnClicked", "addOnClicked"], setup(t2, { emit: l2 }) {
|
|
2174
2174
|
const r2 = l2, u2 = t2, c2 = s(u2.value);
|
|
2175
2175
|
return p(() => u2.value, (e2) => {
|
|
2176
2176
|
c2.value = e2, r2("inputChanged", { name: u2.name, value: c2.value });
|
|
2177
|
-
}), (l3, r3) => t2.loading ? (e(), a("div", Bn, [void 0 !== t2.label ? (e(), a("div", An)) : R("", true), Ln])) : (e(), a("div",
|
|
2177
|
+
}), (l3, r3) => t2.loading ? (e(), a("div", Bn, [void 0 !== t2.label ? (e(), a("div", An)) : R("", true), Ln])) : (e(), a("div", En, [i("div", In, [t2.label ? (e(), a("label", _n, _(t2.label), 1)) : R("", true), t2.optional ? (e(), a("span", Pn, _(t2.optional), 1)) : R("", true)]), i("div", { class: n([{ "mt-1": t2.label }, "relative flex"]) }, [t2.addOn ? (e(), a("span", { key: 0, onClick: r3[0] || (r3[0] = (e2) => l3.$emit("addOnClicked")), class: "inline-flex items-center px-3 rounded-l-md border border-r-0 border-gray-300 bg-gray-50 text-gray-500 sm:text-sm cursor-pointer" }, _(t2.addOn), 1)) : R("", true), B(i("input", { "onUpdate:modelValue": r3[1] || (r3[1] = (e2) => c2.value = e2), class: n([{ "border-gray-300": "danger" !== t2.color || "warning" !== t2.color || "success" !== t2.color, "border-red-400": "danger" === t2.color, "border-yellow-400": "warning" === t2.color, "border-green-400": "success" === t2.color, "bg-gray-100": t2.disabled, "text-black": "danger" !== t2.color || "warning" !== t2.color || "success" !== t2.color, "text-red-400": "danger" === t2.color, "text-yellow-400": "warning" === t2.color, "text-green-400": "success" === t2.color, "rounded-md": !t2.addOn || !t2.rightAddOn, "rounded-r-md": t2.addOn, "rounded-l-none": t2.addOn, "rounded-l-md": t2.rightAddOn, "rounded-r-none": t2.rightAddOn }, "shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm border-gray-300 placeholder-gray-300"]), disabled: t2.disabled, name: t2.name, placeholder: t2.placeholder, type: t2.type, onInput: r3[2] || (r3[2] = (e2) => l3.$emit("inputChanged", { value: e2.target.value, name: e2.target.name })) }, null, 42, jn), [[A, c2.value]]), t2.rightAddOn ? (e(), a("span", { key: 1, onClick: r3[3] || (r3[3] = (e2) => l3.$emit("rightAddOnClicked")), class: "inline-flex items-center px-3 rounded-r-md border border-l-0 border-gray-300 bg-gray-50 hover:bg-gray-200 text-gray-500 sm:text-sm cursor-pointer" }, _(t2.rightAddOn), 1)) : R("", true), t2.icon ? (e(), a("div", Rn, [o(J, { icon: t2.icon, color: t2.color, loading: t2.loading }, null, 8, ["icon", "color", "loading"]), B(o(J, { icon: d(un), color: "green", loading: t2.loading }, null, 8, ["icon", "loading"]), [[L, "success" === t2.color]]), B(o(J, { icon: d(fn), color: "yellow", loading: t2.loading }, null, 8, ["icon", "loading"]), [[L, "warning" === t2.color]]), B(o(J, { icon: d(kn), color: "red", loading: t2.loading }, null, 8, ["icon", "loading"]), [[L, "danger" === t2.color]])])) : R("", true)], 2), B(i("p", { class: n([{ "text-gray-400": "danger" !== t2.color || "warning" !== t2.color || "success" !== t2.color, "text-red-400": "danger" === t2.color, "text-yellow-400": "warning" === t2.color, "text-green-400": "success" === t2.color }, "mt-2 text-xs flex flex-row items-center"]) }, _(t2.error), 3), [[L, t2.error]])]));
|
|
2178
2178
|
} }), zn = { key: 0 }, $n = { class: "flex justify-between" }, Vn = { key: 0, class: "block text-sm font-medium text-gray-700" }, Hn = { key: 1, class: "text-[10px] text-gray-500 uppercase" }, Yn = { class: "space-y-1 flex flex-col items-center justify-center" }, Un = { class: "flex text-sm text-gray-600 flex flex-col sm:flex-row text-center" }, qn = { for: "file-upload", class: "relative cursor-pointer rounded-md font-medium text-indigo-600 focus-within:outline-none focus-within:ring-2 focus-within:ring-indigo-500 focus-within:ring-offset-2 hover:text-indigo-500" }, Wn = ["accept"], Kn = { class: "pl-1" }, Jn = { class: "text-xs text-gray-500 pb-4" }, Gn = { class: "mt-2 text-xs flex flex-row items-center text-red-300" }, Zn = { key: 1, class: "animate-pulse" }, Xn = [i("div", { class: "flex justify-center items-center flex-col rounded-md border-2 border-dashed px-6 pt-5 pb-6 border-gray-200" }, [i("div", { class: "rounded-full h-20 w-20 bg-gray-200 mb-4" }), i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-full md:w-1/3 mb-3" }), i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-full md:w-1/4 mb-3" })], -1)], Qn = { name: "uiInputFile" }, ea = Object.assign(Qn, { props: { name: String, label: String, optional: String, placeholder: String, dragAndDrop: String, fileTypesAndSizes: String, error: String, accept: String, icon: { type: Function, default: function(t2, l2) {
|
|
2179
2179
|
return e(), a("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", "stroke-width": "1.5", stroke: "currentColor", "aria-hidden": "true", "data-slot": "icon" }, [i("path", { "stroke-linecap": "round", "stroke-linejoin": "round", d: "M7.5 7.5h-.75A2.25 2.25 0 0 0 4.5 9.75v7.5a2.25 2.25 0 0 0 2.25 2.25h7.5a2.25 2.25 0 0 0 2.25-2.25v-7.5a2.25 2.25 0 0 0-2.25-2.25h-.75m0-3-3-3m0 0-3 3m3-3v11.25m6-2.25h.75a2.25 2.25 0 0 1 2.25 2.25v7.5a2.25 2.25 0 0 1-2.25 2.25h-7.5a2.25 2.25 0 0 1-2.25-2.25v-.75" })]);
|
|
2180
2180
|
} }, loading: { type: Boolean, default: true } }, emits: ["filesUploaded"], setup(t2, { emit: l2 }) {
|
|
@@ -2188,7 +2188,7 @@ const Sn = { class: "py-1" }, Cn = ["onClick"], On = { key: 1, class: "animate-p
|
|
|
2188
2188
|
}, ["prevent"])), onDrop: F(p2, ["prevent"]) }, [i("div", Yn, [o(J, { icon: t2.icon, size: "massive", color: "gray", "aria-hidden": "true", class: "mb-4", loading: t2.loading }, null, 8, ["icon", "loading"]), i("div", Un, [i("label", qn, [i("span", null, _(t2.placeholder), 1), i("input", { id: "file-upload", name: "file-upload", type: "file", class: "sr-only", accept: t2.accept, onChange: g2 }, null, 40, Wn)]), i("p", Kn, _(t2.dragAndDrop), 1)]), i("p", Jn, _(t2.fileTypesAndSizes), 1), B(i("p", { class: "font-bold text-xs uppercase block p-2 bg-gray-200 rounded" }, _(r2.value), 513), [[L, "" !== r2.value]])])], 34), B(i("p", Gn, [o(J, { icon: d(wn), color: "red", class: "mr-2", loading: t2.loading }, null, 8, ["icon", "loading"]), I(_(t2.error), 1)], 512), [[L, t2.error]])]));
|
|
2189
2189
|
} }), ta = { class: "relative mt-1" }, la = { key: 1, class: "animate-pulse px-4 py-2.5 bg-gray-200 rounded-md flex justify-between items-center w-full" }, na = i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/2" }, null, -1), aa = { name: "uiSelect" }, oa = Object.assign(aa, { props: { items: { type: Array, required: true }, label: String, error: String, color: String, select: Object, loading: { type: Boolean, default: true }, disabled: { type: Boolean, default: false } }, emits: ["selectChanged"], setup(l2, { emit: r2 }) {
|
|
2190
2190
|
const c2 = s(""), p2 = r2, g2 = l2, m2 = u(() => "" === c2.value ? g2.items : g2.items.filter((e2) => e2.name.toLowerCase().includes(c2.value.toLowerCase()))), f2 = u(() => g2.select);
|
|
2191
|
-
return (r3, s2) => l2.loading ? (e(), a("div", la, [na, o(d(gn), { "aria-hidden": "true", class: "-mr-1 ml-2 h-5 w-5 text-gray-300 dark:text-gray-400" })])) : (e(), t(d(jt), { key: 0, modelValue: f2.value, "onUpdate:modelValue": [s2[1] || (s2[1] = (e2) => f2.value = e2), s2[2] || (s2[2] = (e2) => p2("selectChanged", e2))], disabled: l2.disabled, as: "div" }, { default:
|
|
2191
|
+
return (r3, s2) => l2.loading ? (e(), a("div", la, [na, o(d(gn), { "aria-hidden": "true", class: "-mr-1 ml-2 h-5 w-5 text-gray-300 dark:text-gray-400" })])) : (e(), t(d(jt), { key: 0, modelValue: f2.value, "onUpdate:modelValue": [s2[1] || (s2[1] = (e2) => f2.value = e2), s2[2] || (s2[2] = (e2) => p2("selectChanged", e2))], disabled: l2.disabled, as: "div" }, { default: E(() => [o(d(Rt), { class: "block text-sm font-medium" }, { default: E(() => [I(_(l2.label), 1)]), _: 1 }), i("div", ta, [o(d(At), { "display-value": (e2) => e2 == null ? void 0 : e2.name, class: n([{ "border-gray-300": "danger" !== l2.color || "warning" !== l2.color || "success" !== l2.color, "border-red-400": "danger" === l2.color, "border-yellow-400": "warning" === l2.color, "border-green-400": "success" === l2.color, "bg-gray-100": l2.disabled, "bg-white": !l2.disabled, "text-black": "danger" !== l2.color || "warning" !== l2.color || "success" !== l2.color, "text-gray-300": l2.disabled, "text-red-400": "danger" === l2.color, "text-yellow-400": "warning" === l2.color, "text-green-400": "success" === l2.color }, "w-full rounded-md border py-2 pl-3 pr-10 shadow-sm focus:border-indigo-500 focus:outline-none focus:ring-1 focus:ring-indigo-500 sm:text-sm"]), onChange: s2[0] || (s2[0] = (e2) => c2.value = e2.target.value) }, null, 8, ["display-value", "class"]), o(d(Bt), { class: "absolute inset-y-0 right-0 flex items-center rounded-r-md px-2 focus:outline-none" }, { default: E(() => [o(d(gn), { "aria-hidden": "true", class: "h-5 w-5 text-gray-400" })]), _: 1 }), m2.value.length > 0 ? (e(), t(d(Lt), { key: 0, class: "absolute z-10 mt-1 max-h-60 w-full overflow-auto rounded-md bg-white py-1 text-base shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none sm:text-sm" }, { default: E(() => [(e(true), a(w, null, j(m2.value, (l3) => (e(), t(d(Ft), { key: l3.id, value: l3, as: "template" }, { default: E(({ active: t2, selected: r4 }) => [i("li", { class: n(["relative cursor-default select-none py-2 pl-3 pr-9", t2 ? "bg-indigo-600 text-white" : "text-gray-900"]) }, [i("span", { class: n(["block truncate", r4 && "font-semibold"]) }, _(l3.name), 3), r4 ? (e(), a("span", { key: 0, class: n(["absolute inset-y-0 right-0 flex items-center pr-4", t2 ? "text-white" : "text-indigo-600"]) }, [o(d(un), { "aria-hidden": "true", class: "h-5 w-5", loading: true })], 2)) : R("", true)], 2)]), _: 2 }, 1032, ["value"]))), 128))]), _: 1 })) : R("", true)]), B(i("p", { class: n([{ "text-gray-400": "danger" !== l2.color || "warning" !== l2.color || "success" !== l2.color, "text-red-400": "danger" === l2.color, "text-yellow-400": "warning" === l2.color, "text-green-400": "success" === l2.color }, "mt-2 text-xs flex flex-row items-center"]) }, _(l2.error), 3), [[L, l2.error]])]), _: 1 }, 8, ["modelValue", "disabled"]));
|
|
2192
2192
|
} }), ra = { key: 1, class: "inline-flex items-center px-3 py-2.5 rounded text-xs font-medium leading-none animate-pulse bg-gray-200" }, ia = [i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-12" }, null, -1)], sa = { name: "uiTag" }, ua = Object.assign(sa, { props: { color: { type: String, default: "primary" }, loading: { type: Boolean, default: true } }, setup: (t2) => (l2, o2) => t2.loading ? (e(), a("div", ra, ia)) : (e(), a("span", { key: 0, class: n([{ "bg-indigo-100 text-indigo-800 border border-indigo-200": "primary" === t2.color, "bg-red-100 text-red-800 border border-red-200": "danger" === t2.color, "bg-yellow-100 text-yellow-800 border border-yellow-200": "warning" === t2.color, "bg-green-100 text-green-800 border border-green-200": "success" === t2.color, "bg-black text-white border border-black": "black" === t2.color, "text-black border border-gray-200 bg-white": "white" === t2.color }, "inline-flex items-center px-3 py-2 rounded text-xs font-medium leading-none"]) }, [r(l2.$slots, "default")], 2)) }), da = { key: 0 }, ca = { key: 0, class: "block text-sm font-medium text-gray-700" }, pa = ["disabled", "placeholder"], ga = { key: 1, class: "animate-pulse" }, ma = [i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-2/3 md:w-1/4 mb-1.5" }, null, -1), i("div", { class: "h-24 bg-gray-200 rounded-lg flex inline-flex items-center relative inline-block text-left w-full" }, null, -1)], fa = { name: "uiTextArea" }, va = Object.assign(fa, { props: { label: String, placeholder: { type: String, default: "..." }, value: String, color: String, disabled: { type: Boolean, default: false }, error: String, loading: { type: Boolean, default: true } }, emits: ["inputChanged"], setup(t2, { emit: l2 }) {
|
|
2193
2193
|
const r2 = l2, u2 = t2, c2 = (e2) => {
|
|
2194
2194
|
r2("inputChanged", e2.target.value);
|
|
@@ -2198,13 +2198,13 @@ const Sn = { class: "py-1" }, Cn = ["onClick"], On = { key: 1, class: "animate-p
|
|
|
2198
2198
|
}), (l3, r3) => t2.loading ? (e(), a("div", ga, ma)) : (e(), a("div", da, [t2.label ? (e(), a("label", ca, _(t2.label), 1)) : R("", true), i("div", { class: n({ "mt-1": t2.label }) }, [B(i("textarea", { disabled: t2.disabled, rows: "4", "onUpdate:modelValue": r3[0] || (r3[0] = (e2) => g2.value = e2), placeholder: t2.placeholder, class: n(["shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm rounded-md", { "border-gray-300": "danger" !== t2.color || "warning" !== t2.color || "success" !== t2.color, "border-red-300": "danger" === t2.color, "border-yellow-400": "warning" === t2.color, "border-green-400": "success" === t2.color, "bg-gray-100": t2.disabled, "text-black": "danger" !== t2.color || "warning" !== t2.color || "success" !== t2.color, "text-red-300": "danger" === t2.color, "text-yellow-400": "warning" === t2.color, "text-green-400": "success" === t2.color }]), onChange: c2 }, null, 42, pa), [[N, g2.value]])], 2), B(i("p", { class: n([{ "text-gray-300": "danger" !== t2.color || "warning" !== t2.color || "success" !== t2.color, "text-red-300": "danger" === t2.color, "text-yellow-400": "warning" === t2.color, "text-green-400": "success" === t2.color }, "mt-2 text-xs flex flex-row items-center"]) }, [o(J, { icon: d(wn), color: "red", class: "mr-2" }, null, 8, ["icon"]), I(_(t2.error), 1)], 2), [[L, t2.error]])]));
|
|
2199
2199
|
} }), ha = { class: "text-sm font-medium text-gray-900" }, ba = { key: 0, class: "text-sm text-gray-500 ml-2" }, ya = { key: 1, class: "animate-pulse flex items-center" }, xa = [i("div", { class: "relative bg-gray-200 rounded-full w-12 h-6 p-1 flex items-center" }, [i("div", { class: "rounded-full bg-gray-300 dark:bg-gray-400 h-4 w-4" })], -1), i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-16 ml-2" }, null, -1)], wa = { name: "uiToggle" }, ka = Object.assign(wa, { props: { item: { type: Object, required: true }, checked: { type: Boolean, default: false }, disabled: { type: Boolean, default: false }, loading: { type: Boolean, default: true } }, setup(l2) {
|
|
2200
2200
|
const r2 = s(l2.checked);
|
|
2201
|
-
return (s2, u2) => l2.loading ? (e(), a("div", ya, xa)) : (e(), t(d($l), { key: 0, as: "div", class: "flex items-center relative" }, { default:
|
|
2202
|
-
} }), Sa = { key: 0, class: "flex flex-col" }, Ca = { class: "flex" }, Oa = { class: "flex-shrink-0" }, Ma = { class: "ml-3" }, Da = { class: "mt-4" },
|
|
2201
|
+
return (s2, u2) => l2.loading ? (e(), a("div", ya, xa)) : (e(), t(d($l), { key: 0, as: "div", class: "flex items-center relative" }, { default: E(() => [o(d(Vl), { disabled: l2.disabled, onClick: u2[0] || (u2[0] = (e2) => s2.$emit("toggleChanged", { item: l2.item, active: !r2.value })), modelValue: r2.value, "onUpdate:modelValue": u2[1] || (u2[1] = (e2) => r2.value = e2), class: n([r2.value ? "bg-indigo-600" : "bg-gray-200", "relative inline-flex h-6 w-11 flex-shrink-0 cursor-pointer rounded-full border-2 border-transparent transition-colors duration-200 ease-in-out focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2"]) }, { default: E(() => [i("span", { "aria-hidden": "true", class: n([r2.value ? "translate-x-5" : "translate-x-0", l2.disabled ? "bg-gray-300" : "", "pointer-events-none inline-block h-5 w-5 transform rounded-full bg-white shadow ring-0 transition duration-200 ease-in-out"]) }, null, 2)]), _: 1 }, 8, ["disabled", "modelValue", "class"]), o(d(Hl), { as: "span", class: "ml-3" }, { default: E(() => [i("span", ha, _(l2.item.title), 1), l2.item.subtitle ? (e(), a("span", ba, _(l2.item.subtitle), 1)) : R("", true)]), _: 1 }), l2.item.action ? (e(), a("span", { key: 0, class: "cursor-pointer text-indigo-600 hover:text-indigo-400 uppercase text-xs absolute right-0 bottom-0.5", onClick: u2[2] || (u2[2] = (e2) => s2.$emit("actionClicked", l2.item)) }, _(l2.item.action), 1)) : R("", true)]), _: 1 }));
|
|
2202
|
+
} }), Sa = { key: 0, class: "flex flex-col" }, Ca = { class: "flex" }, Oa = { class: "flex-shrink-0" }, Ma = { class: "ml-3" }, Da = { class: "mt-4" }, Ta = { class: "-mx-2 -my-1.5 flex" }, Ea = ["onClick"], Ia = { key: 1, class: "flex flex-col animate-pulse" }, _a = [z('<div class="p-4 border-l-4 bg-gray-100 border-gray-400 rounded"><div class="flex"><div class="flex-shrink-0"><div class="h-6 w-6 animate-pulse rounded-full bg-gray-200 dark:bg-gray-300"></div></div><div class="ml-3 w-full"><div class="h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-2/3 mb-2"></div><div class="h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-full mb-2"></div><div class="h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-3/5"></div></div></div></div>', 1)], Pa = { name: "uiAlert" }, ja = Object.assign(Pa, { props: { actions: { type: Array }, title: { type: String }, type: { type: String, default: "info" }, loading: { type: Boolean, default: true } }, setup: (l2) => (o2, s2) => l2.loading ? (e(), a("div", Ia, _a)) : (e(), a("div", Sa, [i("div", { class: n([{ "bg-indigo-50 border-indigo-400": "info" === l2.type, "bg-red-50 border-red-400": "danger" === l2.type, "bg-yellow-50 border-yellow-400": "warning" === l2.type, "bg-green-50 border-green-400": "success" === l2.type }, "p-4 border-l-4 rounded"]) }, [i("div", Ca, [i("div", Oa, ["info" === l2.type ? (e(), t(d(bn), { key: 0, class: "h-8 w-8 text-indigo-400", "aria-hidden": "true" })) : R("", true), "danger" === l2.type ? (e(), t(d(wn), { key: 1, class: "h-8 w-8 text-red-400", "aria-hidden": "true" })) : R("", true), "warning" === l2.type ? (e(), t(d(fn), { key: 2, class: "h-8 w-8 text-yellow-400", "aria-hidden": "true" })) : R("", true), "success" === l2.type ? (e(), t(d(sn), { key: 3, class: "h-8 w-8 text-green-400", "aria-hidden": "true" })) : R("", true)]), i("div", Ma, [i("h3", { class: n([{ "text-red-800": "danger" === l2.type, "text-yellow-800": "warning" === l2.type, "text-green-800": "success" === l2.type }, "text-sm font-medium"]) }, _(l2.title), 3), i("div", { class: n([{ "text-red-700": "danger" === l2.type, "text-yellow-700": "warning" === l2.type, "text-green-700": "success" === l2.type }, "mt-2 text-sm"]) }, [r(o2.$slots, "default")], 2), i("div", Da, [i("div", Ta, [(e(true), a(w, null, j(l2.actions, (t2, r2) => (e(), a("button", { onClick: (e2) => o2.$emit("alertEvent", t2.event), type: "button", key: r2, class: n([{ "bg-green-50 text-green-800 hover:bg-green-100 focus:ring-green-600 focus:ring-offset-green-50": "success" === l2.type, "bg-indigo-50 text-indigo-800 hover:bg-indigo-100 focus:ring-indigo-600 focus:ring-offset-indigo-50": "info" === l2.type, "bg-red-50 text-red-800 hover:bg-red-100 focus:ring-red-600 focus:ring-offset-red-50": "danger" === l2.type, "bg-yellow-50 text-yellow-800 hover:bg-yellow-100 focus:ring-yellow-600 focus:ring-offset-yellow-50": "warning" === l2.type }, "px-2 py-1.5 text-sm font-medium rounded-md focus:outline-none focus:ring-2 focus:ring-offset-2"]) }, _(t2.name), 11, Ea))), 128))])])])])], 2)])) }), Ra = { key: 0, class: "inline-flex", "aria-label": "Breadcrumb" }, Ba = { role: "list", class: "flex items-center space-x-4 text-xs" }, Aa = { key: 0 }, La = ["onClick"], Fa = { key: 1, class: "flex items-center" }, Na = ["onClick", "aria-current"], za = { key: 1, class: "flex flex-row items-center animate-pulse" }, $a = [i("div", { class: "animate-pulse rounded-full bg-gray-200 dark:bg-gray-300 h-4 w-4 mr-4" }, null, -1), i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/5 mr-4" }, null, -1), i("div", { class: "animate-pulse rounded-full bg-gray-200 dark:bg-gray-300 h-4 w-4 mr-4" }, null, -1), i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/5" }, null, -1)], Va = { name: "uiBreadcrumbs" }, Ha = Object.assign(Va, { props: { pages: { type: Array, required: true }, loading: { type: Boolean, default: true } }, setup: (t2) => (l2, r2) => t2.loading ? (e(), a("div", za, $a)) : (e(), a("nav", Ra, [i("ol", Ba, [(e(true), a(w, null, j(t2.pages, (t3, r3) => (e(), a("li", { key: r3 }, [0 === r3 ? (e(), a("div", Aa, [i("p", { onClick: (e2) => l2.$emit("breadCrumbClicked", t3.routeName), class: "flex flex-row items-center justify-center text-indigo-600 hover:text-indigo-800 cursor-pointer" }, [o(d(hn), { class: "flex-shrink-0 h-3 w-3 text-gray-400 mr-4", "aria-hidden": "true" }), i("span", null, _(t3.name), 1)], 8, La)])) : (e(), a("div", Fa, [o(d(pn), { class: "flex-shrink-0 h-3 w-3 text-gray-400", "aria-hidden": "true" }), i("span", { onClick: (e2) => l2.$emit("breadCrumbClicked", t3.routeName), class: n(["cursor-pointer ml-4 text-xs text-gray-400 hover:text-gray-500", { "text-indigo-600 hover:text-indigo-800": !t3.current }]), "aria-current": t3.current ? "page" : "" }, _(t3.name), 11, Na)]))]))), 128))])])) }), Ya = { class: "flex items-center flex-col sm:flex-row justify-center sm:justify-start" }, Ua = ["src"], qa = { class: "font-bold text-center sm:text-left" }, Wa = { class: "mt-1 text-xs text-center sm:text-left" }, Ka = { key: 0, class: "flex flex-wrap mt-4 justify-center sm:justify-start" }, Ja = { key: 1, class: "rounded-lg bg-white shadow p-6 cursor-pointer animate-pulse" }, Ga = [z('<div class="flex items-center flex-col sm:flex-row justify-center sm:justify-start w-full"><div class="w-16 h-16 rounded-full bg-gray-200 flex self-center"></div><div class="w-full ml-4"><div class="h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-full mt-4 sm:mt-0 sm:w-16 mb-2"></div><div class="h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-full sm:w-32"></div></div></div>', 1)], Za = { name: "uiCard" }, Xa = Object.assign(Za, { props: { id: { type: String, required: true }, name: { type: String, required: true }, type: String, tags: Array, logo: String, loading: { type: Boolean, default: true } }, setup: (l2) => (n2, o2) => {
|
|
2203
2203
|
var _a2;
|
|
2204
|
-
return l2.loading ? (e(), a("div", Ja, Ga)) : (e(), a("div", { key: 0, class: "rounded-lg bg-white shadow p-6 cursor-pointer", onClick: o2[0] || (o2[0] = (e2) => n2.$emit("cardSelected", { id: l2.id, name: l2.name, type: l2.type, tags: l2.tags })) }, [i("div", Ya, [i("img", { class: "w-16 h-16 rounded-full mb-4 sm:mb-0 sm:mr-4", src: l2.logo }, null, 8, Ua), i("div", null, [i("h4", qa, _(l2.name), 1), i("p", Wa, _(l2.type), 1)])]), ((_a2 = l2.tags) == null ? void 0 : _a2.length) > 0 ? (e(), a("div", Ka, [(e(true), a(w, null, j(l2.tags, (n3) => (e(), t(ua, { class: "mb-1 mr-1", key: n3.name, color: n3.color, loading: l2.loading }, { default:
|
|
2204
|
+
return l2.loading ? (e(), a("div", Ja, Ga)) : (e(), a("div", { key: 0, class: "rounded-lg bg-white shadow p-6 cursor-pointer", onClick: o2[0] || (o2[0] = (e2) => n2.$emit("cardSelected", { id: l2.id, name: l2.name, type: l2.type, tags: l2.tags })) }, [i("div", Ya, [i("img", { class: "w-16 h-16 rounded-full mb-4 sm:mb-0 sm:mr-4", src: l2.logo }, null, 8, Ua), i("div", null, [i("h4", qa, _(l2.name), 1), i("p", Wa, _(l2.type), 1)])]), ((_a2 = l2.tags) == null ? void 0 : _a2.length) > 0 ? (e(), a("div", Ka, [(e(true), a(w, null, j(l2.tags, (n3) => (e(), t(ua, { class: "mb-1 mr-1", key: n3.name, color: n3.color, loading: l2.loading }, { default: E(() => [I(_(n3.name), 1)]), _: 2 }, 1032, ["color", "loading"]))), 128))])) : R("", true)]));
|
|
2205
2205
|
} }), Qa = { name: "uiFilter" }, eo = Object.assign(Qa, { props: { position: { type: String, default: "left" }, items: { type: Array, required: true }, label: { type: String, required: true }, loading: { type: Boolean, default: true } }, emits: ["filterSelected"], setup(l2, { emit: n2 }) {
|
|
2206
2206
|
const a2 = n2, o2 = s(l2.items);
|
|
2207
|
-
return (n3, r2) => (e(), t(
|
|
2207
|
+
return (n3, r2) => (e(), t(Tn, { loading: l2.loading, onOptionSelected: r2[0] || (r2[0] = (e2) => ((e3) => {
|
|
2208
2208
|
o2.value.forEach((t2) => {
|
|
2209
2209
|
t2.value !== e3 ? t2.active = false : t2.active = true;
|
|
2210
2210
|
}), a2("filterSelected", e3);
|
|
@@ -2213,11 +2213,11 @@ const Sn = { class: "py-1" }, Cn = ["onClick"], On = { key: 1, class: "animate-p
|
|
|
2213
2213
|
const u2 = l2, c2 = s2, p2 = (e2) => {
|
|
2214
2214
|
c2("modalAction", { modal: u2.modalName, action: e2 });
|
|
2215
2215
|
};
|
|
2216
|
-
return (s3, u3) => (e(), t(d(nn), { as: "template", show: l2.open }, { default:
|
|
2216
|
+
return (s3, u3) => (e(), t(d(nn), { as: "template", show: l2.open }, { default: E(() => [o(d(vl), { as: "div", class: "relative z-10", onClose: u3[1] || (u3[1] = (e2) => p2("close")) }, { default: E(() => [o(d(tn), { as: "template", enter: "ease-out duration-300", "enter-from": "opacity-0", "enter-to": "opacity-100", leave: "ease-in duration-200", "leave-from": "opacity-100", "leave-to": "opacity-0" }, { default: E(() => [to]), _: 1 }), i("div", lo, [i("div", no, [o(d(tn), { as: "template", enter: "ease-out duration-300", "enter-from": "opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95", "enter-to": "opacity-100 translate-y-0 sm:scale-100", leave: "ease-in duration-200", "leave-from": "opacity-100 translate-y-0 sm:scale-100", "leave-to": "opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95" }, { default: E(() => [o(d(hl), { class: "relative transform rounded-lg bg-white px-4 pb-4 pt-5 text-left shadow-xl transition-all sm:my-8 w-9/12 sm:w-full sm:max-w-lg sm:p-6" }, { default: E(() => [i("div", ao, [i("button", { type: "button", class: "rounded-md bg-white text-gray-400 hover:text-gray-500 focus:outline-none", onClick: u3[0] || (u3[0] = (e2) => p2("close")) }, [oo, o(J, { icon: d(kn), "aria-hidden": "true", loading: l2.loading }, null, 8, ["icon", "loading"])])]), i("div", ro, [i("div", { class: n(["mx-auto flex h-12 w-12 flex-shrink-0 items-center justify-center rounded-full sm:mx-0 sm:h-10 sm:w-10", { "bg-red-100": "danger" === l2.type, "bg-green-100": "success" === l2.type, "bg-indigo-100": "default" === l2.type, "bg-yellow-100": "warning" === l2.type }]) }, [B(o(d(kn), { class: "h-6 w-6 text-red-600", "aria-hidden": "true" }, null, 512), [[L, "danger" === l2.type]]), B(o(d(un), { class: "h-6 w-6 text-green-600", "aria-hidden": "true" }, null, 512), [[L, "success" === l2.type]]), B(o(d(fn), { class: "h-6 w-6 text-yellow-600", "aria-hidden": "true" }, null, 512), [[L, "warning" === l2.type]]), B(o(d(vn), { class: "h-6 w-6 text-indigo-600", "aria-hidden": "true" }, null, 512), [[L, "default" === l2.type]])], 2), i("div", io, [o(d(bl), { as: "h3", class: "text-lg font-medium leading-6 text-gray-900" }, { default: E(() => [I(_(l2.title), 1)]), _: 1 }), i("div", so, [r(s3.$slots, "default")]), l2.actions ? (e(), a("div", uo, [(e(true), a(w, null, j(l2.actions, (t2, l3) => (e(), a("button", { key: l3, type: "button", class: "inline-flex w-full justify-center rounded-md border border-transparent bg-indigo-600 px-4 py-2 text-base font-medium text-white shadow-sm hover:bg-indigo-700 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", onClick: (e2) => p2(t2.value) }, _(t2.name), 9, co))), 128))])) : R("", true)])])]), _: 3 })]), _: 3 })])])]), _: 3 })]), _: 3 }, 8, ["show"]));
|
|
2217
2217
|
} }), mo = { class: "w-full flex flex-col items-center space-y-4 sm:items-end" }, fo = { key: 0, class: "max-w-sm w-full bg-white shadow-lg rounded-lg pointer-events-auto ring-1 ring-black ring-opacity-5 overflow-hidden" }, vo = { class: "p-4" }, ho = { class: "flex items-start" }, bo = { class: "flex-shrink-0 mt-0.5" }, yo = { class: "ml-3 w-0 flex-1 pt-0.5" }, xo = { class: "font-medium text-gray-900" }, wo = { class: "mt-1 text-sm text-gray-500" }, ko = { class: "ml-4 flex-shrink-0 flex" }, So = i("span", { class: "sr-only" }, "Close", -1), Co = { name: "uiNotification" }, Oo = Object.assign(Co, { props: { show: Boolean, type: { type: String, default: "info" }, title: String, message: String, fixed: { type: Boolean, default: true } }, setup(t2) {
|
|
2218
2218
|
const l2 = t2, r2 = u(() => l2.show);
|
|
2219
|
-
return (l3, s2) => (e(), a("div", { "aria-live": "assertive", class: n([{ fixed: t2.fixed }, "inset-0 flex items-end px-4 py-6 pointer-events-none sm:p-6 sm:items-start"]) }, [i("div", mo, [o(P, { "enter-active-class": "transform ease-out duration-300 transition", "enter-from-class": "translate-y-2 opacity-0 sm:translate-y-0 sm:translate-x-2", "enter-to-class": "translate-y-0 opacity-100 sm:translate-x-0", "leave-active-class": "transition ease-in duration-100", "leave-from-class": "opacity-100", "leave-to-class": "opacity-0" }, { default:
|
|
2220
|
-
} }), Mo = { key: 0, role: "list", class: "divide-y divide-gray-100" }, Do = { class: "min-w-0" },
|
|
2219
|
+
return (l3, s2) => (e(), a("div", { "aria-live": "assertive", class: n([{ fixed: t2.fixed }, "inset-0 flex items-end px-4 py-6 pointer-events-none sm:p-6 sm:items-start"]) }, [i("div", mo, [o(P, { "enter-active-class": "transform ease-out duration-300 transition", "enter-from-class": "translate-y-2 opacity-0 sm:translate-y-0 sm:translate-x-2", "enter-to-class": "translate-y-0 opacity-100 sm:translate-x-0", "leave-active-class": "transition ease-in duration-100", "leave-from-class": "opacity-100", "leave-to-class": "opacity-0" }, { default: E(() => [r2.value ? (e(), a("div", fo, [i("div", vo, [i("div", ho, [i("div", bo, [B(o(d(sn), { "aria-hidden": "true", class: "h-6 w-6 text-green-400" }, null, 512), [[L, "success" === t2.type]]), B(o(d(wn), { "aria-hidden": "true", class: "h-6 w-6 text-red-400" }, null, 512), [[L, "danger" === t2.type]]), B(o(d(fn), { "aria-hidden": "true", class: "h-6 w-6 text-yellow-400" }, null, 512), [[L, "warning" === t2.type]]), B(o(d(bn), { "aria-hidden": "true", class: "h-6 w-6 text-indigo-600" }, null, 512), [[L, "info" === t2.type]])]), i("div", yo, [i("p", xo, _(t2.title), 1), i("p", wo, _(t2.message), 1)]), i("div", ko, [i("button", { class: "bg-white rounded-md inline-flex text-gray-400 hover:text-gray-500 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500", type: "button", onClick: s2[0] || (s2[0] = (e2) => l3.$emit("closeNotification")) }, [So, o(d(kn), { "aria-hidden": "true", class: "h-5 w-5" })])])])])])) : R("", true)]), _: 1 })])], 2));
|
|
2220
|
+
} }), Mo = { key: 0, role: "list", class: "divide-y divide-gray-100" }, Do = { class: "min-w-0" }, To = { class: "flex items-start gap-x-3" }, Eo = { class: "text-sm font-semibold leading-6 text-gray-900" }, Io = { class: "mt-1 flex items-center gap-x-2 text-xs leading-5 text-gray-500" }, _o = { class: "truncate" }, Po = { class: "flex flex-none items-center gap-x-4" }, jo = ["href"], Ro = { class: "sr-only" }, Bo = { key: 1, class: "divide-y divide-gray-100 animate-pulse" }, Ao = [z('<div class="min-w-0 w-full"><div class="flex items-start gap-x-3"><p class="h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/2"></p></div></div><div class="flex flex-none items-center gap-x-4"><div class="hidden rounded-md bg-gray-200 px-2.5 py-1.5 text-sm font-semibold text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 hover:bg-gray-50 sm:block"><p class="h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-10"></p></div></div>', 2)], Lo = { name: "uiTaskList" }, Fo = Object.assign(Lo, { props: { tasks: { type: Array, required: true }, loading: { type: Boolean, default: true } }, setup: (t2) => (l2, o2) => t2.loading ? (e(), a("ul", Bo, [(e(true), a(w, null, j(t2.tasks, (t3) => (e(), a("li", { key: t3.id, class: "flex items-center justify-between gap-x-6 py-5" }, Ao))), 128))])) : (e(), a("ul", Mo, [(e(true), a(w, null, j(t2.tasks, (t3) => (e(), a("li", { key: t3.id, class: "flex items-center justify-between gap-x-6 py-5" }, [i("div", Do, [i("div", To, [i("p", Eo, _(t3.name), 1), i("p", { class: n([{ "text-green-700 bg-green-50 ring-green-600/20": "Complete" === t3.status, "text-gray-600 bg-gray-50 ring-gray-500/10": "In progress" === t3.status, "text-yellow-800 bg-yellow-50 ring-yellow-600/20": "Incomplete" === t3.status }, "rounded-md whitespace-nowrap mt-0.5 px-1.5 py-0.5 text-xs font-medium ring-1 ring-inset"]) }, _(t3.statusLiteral), 3)]), i("div", Io, [i("p", _o, _(t3.description), 1)])]), i("div", Po, [i("a", { href: t3.href, class: "hidden rounded-md bg-white px-2.5 py-1.5 text-sm font-semibold text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 hover:bg-gray-50 sm:block" }, [I(_(t3.action), 1), i("span", Ro, ", " + _(t3.name), 1)], 8, jo)])]))), 128))])) });
|
|
2221
2221
|
"undefined" != typeof globalThis ? globalThis : "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof self && self;
|
|
2222
2222
|
function No(e2) {
|
|
2223
2223
|
return e2 && e2.__esModule && Object.prototype.hasOwnProperty.call(e2, "default") ? e2.default : e2;
|
|
@@ -2312,11 +2312,11 @@ const cr = { name: "uiPriceCalendar", data: () => ({ today: /* @__PURE__ */ new
|
|
|
2312
2312
|
this.$emit("tableAction", e2);
|
|
2313
2313
|
}, changeRoomPrice(e2) {
|
|
2314
2314
|
this.$emit("changeRoomPrice", e2);
|
|
2315
|
-
} } }, pr = { key: 0, class: "px-4 sm:px-6 lg:px-8" }, gr = { class: "flow-root" }, mr = { class: "overflow-x-auto sm:-mx-6 lg:-mx-8 shadow ring-1 ring-black ring-opacity-5 sm:rounded-lg" }, fr = { class: "inline-block min-w-full align-middle" }, vr = { class: "min-w-full text-sm" }, hr = { class: "bg-white" }, br = { colspan: "6", scope: "colgroup", class: "bg-gray-50 py-2 pl-4 pr-3 text-left text-sm font-semibold text-gray-900 sm:pl-3" }, yr = { colspan: "20", scope: "colgroup", class: "bg-gray-200 py-2 pl-4 pr-3 text-left font-semibold text-gray-900" }, xr = { key: 0 }, wr = { colspan: "6", class: "pl-4" }, kr = { key: 1 }, Sr = { colspan: "6", class: "pl-4" }, Cr = { key: 2 }, Or = { colspan: "6", class: "pl-4" }, Mr = { colspan: "20", scope: "colgroup", class: "bg-gray-200 py-2 pl-4 pr-3 text-left font-semibold text-gray-900 relative" }, Dr = { key: 0, class: "absolute top-0 left-12 flex h-12 items-center space-x-3 sm:left-48 bg-white shadow rounded px-4 py-1 z-10" },
|
|
2315
|
+
} } }, pr = { key: 0, class: "px-4 sm:px-6 lg:px-8" }, gr = { class: "flow-root" }, mr = { class: "overflow-x-auto sm:-mx-6 lg:-mx-8 shadow ring-1 ring-black ring-opacity-5 sm:rounded-lg" }, fr = { class: "inline-block min-w-full align-middle" }, vr = { class: "min-w-full text-sm" }, hr = { class: "bg-white" }, br = { colspan: "6", scope: "colgroup", class: "bg-gray-50 py-2 pl-4 pr-3 text-left text-sm font-semibold text-gray-900 sm:pl-3" }, yr = { colspan: "20", scope: "colgroup", class: "bg-gray-200 py-2 pl-4 pr-3 text-left font-semibold text-gray-900" }, xr = { key: 0 }, wr = { colspan: "6", class: "pl-4" }, kr = { key: 1 }, Sr = { colspan: "6", class: "pl-4" }, Cr = { key: 2 }, Or = { colspan: "6", class: "pl-4" }, Mr = { colspan: "20", scope: "colgroup", class: "bg-gray-200 py-2 pl-4 pr-3 text-left font-semibold text-gray-900 relative" }, Dr = { key: 0, class: "absolute top-0 left-12 flex h-12 items-center space-x-3 sm:left-48 bg-white shadow rounded px-4 py-1 z-10" }, Tr = ["onClick"], Er = { colspan: "2", scope: "colgroup", class: "relative bg-gray-100 py-3.5 pl-4 pr-3 text-left font-semibold text-gray-900" }, Ir = ["checked", "indeterminate"], _r = { class: "pl-6" }, Pr = { colspan: "2", scope: "colgroup", class: "bg-gray-100 py-2 pl-4 pr-3 text-left font-semibold text-gray-900" }, jr = { colspan: "2", scope: "colgroup", class: "bg-gray-100 py-2 pl-4 pr-3 text-left font-semibold text-gray-900" }, Rr = i("th", { colspan: "14", scope: "colgroup", class: "bg-gray-100 py-2 pl-4 pr-3 text-left font-semibold text-gray-900" }, null, -1), Br = { colspan: "2", class: "relative py-3.5 pl-4 pr-3 text-left text-sm font-semibold text-gray-900 sm:pl-6" }, Ar = { key: 0, class: "absolute inset-y-0 left-0 w-0.5 bg-indigo-600" }, Lr = ["value"], Fr = { class: "pl-6" }, Nr = { colspan: "2", class: "pl-4" }, zr = { colspan: "2", class: "pl-4" };
|
|
2316
2316
|
const $r = zo(cr, [["render", function(l2, r2, s2, u2, d2, c2) {
|
|
2317
2317
|
var _a2, _b;
|
|
2318
2318
|
const p2 = $("DateSelector"), g2 = $("Day"), m2 = $("uiButton"), f2 = $("Price"), v2 = $("SkeletonTable");
|
|
2319
|
-
return s2.loading ? (e(), t(v2, { key: 1 })) : (e(), a("div", pr, [i("div", gr, [i("div", mr, [i("div", fr, [i("table", vr, [i("tbody", hr, [i("tr", null, [i("th", br, [o(p2, { selectedDate: l2.date, onDateSelected: r2[0] || (r2[0] = (e2) => c2.changeDate(e2)) }, null, 8, ["selectedDate"])]), (e(true), a(w, null, j(c2.days, (t2, l3) => (e(), a("th", { scope: "col", key: l3, class: "text-sm font-semibold text-gray-900 p-0" }, [o(g2, { class: "border-l border-gray-200 px-6 py-3", day: t2 }, null, 8, ["day"])]))), 128))]), i("tr", null, [i("th", yr, [i("span", null, _(s2.literals.category) + " " + _(s2.category.name), 1), o(m2, { loading: s2.loading, class: "ml-4", size: "small", onClick: c2.changeCategoryBulkPrices }, { default:
|
|
2319
|
+
return s2.loading ? (e(), t(v2, { key: 1 })) : (e(), a("div", pr, [i("div", gr, [i("div", mr, [i("div", fr, [i("table", vr, [i("tbody", hr, [i("tr", null, [i("th", br, [o(p2, { selectedDate: l2.date, onDateSelected: r2[0] || (r2[0] = (e2) => c2.changeDate(e2)) }, null, 8, ["selectedDate"])]), (e(true), a(w, null, j(c2.days, (t2, l3) => (e(), a("th", { scope: "col", key: l3, class: "text-sm font-semibold text-gray-900 p-0" }, [o(g2, { class: "border-l border-gray-200 px-6 py-3", day: t2 }, null, 8, ["day"])]))), 128))]), i("tr", null, [i("th", yr, [i("span", null, _(s2.literals.category) + " " + _(s2.category.name), 1), o(m2, { loading: s2.loading, class: "ml-4", size: "small", onClick: c2.changeCategoryBulkPrices }, { default: E(() => [I(_(s2.literals.changeInBulk), 1)]), _: 1 }, 8, ["loading", "onClick"])])]), "discounts" === s2.type ? (e(), a("tr", xr, [i("td", wr, _(s2.literals.pricesDiscount), 1), (e(true), a(w, null, j(s2.category.selectionPrices, (t2, l3) => (e(), a("td", { key: l3, class: "p-0" }, [o(f2, { onClick: (e2) => c2.changeCategorySelectionPrice(t2), class: "border-l border-gray-200 px-6 py-3 text-indigo-600 hover:text-indigo-400 font-bold cursor-pointer", price: t2, currency: s2.currency.symbol, isBasePrice: true }, null, 8, ["onClick", "price", "currency"])]))), 128))])) : R("", true), "prices" === s2.type ? (e(), a("tr", kr, [i("td", Sr, _(s2.literals.pricesSelection), 1), (e(true), a(w, null, j(s2.category.selectionPrices, (t2, l3) => (e(), a("td", { key: l3, class: "p-0" }, [o(f2, { onClick: (e2) => c2.changeCategorySelectionPrice(t2), class: "border-l border-gray-200 px-6 py-3 text-indigo-600 hover:text-indigo-400 font-bold cursor-pointer", price: t2, currency: s2.currency.symbol, isBasePrice: true }, null, 8, ["onClick", "price", "currency"])]))), 128))])) : R("", true), "prices" === s2.type ? (e(), a("tr", Cr, [i("td", Or, _(s2.literals.pricesUpgrade), 1), (e(true), a(w, null, j(s2.category.upgradePrices, (t2, l3) => (e(), a("td", { key: l3, class: "p-0" }, [o(f2, { onClick: (e2) => c2.changeCategoryUpgradePrice(t2), class: "border-l border-gray-200 px-6 py-3 text-indigo-600 hover:text-indigo-400 font-bold cursor-pointer bg-gray-100", price: t2, currency: s2.currency.symbol, isBasePrice: true }, null, 8, ["onClick", "price", "currency"])]))), 128))])) : R("", true), i("tr", null, [i("th", Mr, [((_a2 = l2.selectedRooms) == null ? void 0 : _a2.length) > 0 && ((_b = s2.actions) == null ? void 0 : _b.length) > 0 ? (e(), a("div", Dr, [(e(true), a(w, null, j(s2.actions, (t2, n2) => (e(), a("button", { onClick: (e2) => c2.tableAction({ action: t2.id, items: l2.selectedRooms }), key: n2, 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, Tr))), 128))])) : R("", true), i("span", null, _(s2.literals.pricesSelection), 1)])]), i("tr", null, [i("th", Er, [i("input", { type: "checkbox", class: "absolute left-4 top-1/2 -mt-2 h-4 w-4 rounded border-gray-300 text-indigo-600 focus:ring-indigo-600", checked: c2.indeterminate || l2.selectedRooms.length === s2.rooms.length, indeterminate: c2.indeterminate, onChange: r2[1] || (r2[1] = (e2) => l2.selectedRooms = e2.target.checked ? s2.rooms.map((e3) => e3.name) : []) }, null, 40, Ir), i("span", _r, _(s2.literals.room), 1)]), i("th", Pr, _(s2.literals.building), 1), i("th", jr, _(s2.literals.floor), 1), Rr]), (e(true), a(w, null, j(s2.rooms, (t2) => (e(), a("tr", { key: t2.name, class: n([{ "even:bg-gray-100": "prices" === s2.type, "odd:bg-gray-100": "discounts" === s2.type }]) }, [i("td", Br, [l2.selectedRooms.includes(t2.name) ? (e(), a("div", Ar)) : R("", true), B(i("input", { type: "checkbox", class: "absolute left-4 top-1/2 -mt-2 h-4 w-4 rounded border-gray-300 text-indigo-600 focus:ring-indigo-600", value: t2.name, "onUpdate:modelValue": r2[2] || (r2[2] = (e2) => l2.selectedRooms = e2) }, null, 8, Lr), [[V, l2.selectedRooms]]), i("span", Fr, _(t2.name), 1)]), i("td", Nr, _(t2.building), 1), i("td", zr, _(t2.floor), 1), (e(true), a(w, null, j(t2.selectionPrices, (t3, l3) => (e(), a("td", { class: "p-0", key: l3 }, [o(f2, { onClick: (e2) => c2.changeRoomPrice(t3), class: "border-l border-gray-200 px-6 py-3 text-indigo-600 hover:text-indigo-400 cursor-pointer", price: t3, currency: s2.currency.symbol, basePrice: c2.getSelectionBasePrice(t3) }, null, 8, ["onClick", "price", "currency", "basePrice"])]))), 128))], 2))), 128))])])])])])]));
|
|
2320
2320
|
}]]), Vr = { class: "chart-selector flex flex-row items-center justify-center" }, Hr = { name: "rangeSelector" }, Yr = Object.assign(Hr, { props: { range: { type: String } }, emits: ["rangeSelected"], setup(t2, { emit: l2 }) {
|
|
2321
2321
|
const o2 = l2, r2 = t2;
|
|
2322
2322
|
let s2 = u(() => r2.range);
|
|
@@ -2343,13 +2343,13 @@ const ni = zo(ei, [["render", function(t2, l2, n2, o2, r2, i2) {
|
|
|
2343
2343
|
return e2;
|
|
2344
2344
|
});
|
|
2345
2345
|
return (l3, s2) => t2.loading ? (e(), a("div", yi, xi)) : (e(), a("div", ii, [i("div", si, [i("a", ui, [r(l3.$slots, "previous")]), i("a", di, [r(l3.$slots, "next")])]), i("div", ci, [i("div", null, [i("p", pi, [r(l3.$slots, "showing"), I(), i("span", gi, _(t2.current + " "), 1), r(l3.$slots, "of"), I(), i("span", mi, _(t2.total), 1)])]), i("div", null, [i("nav", fi, [B(i("button", { onClick: s2[0] || (s2[0] = (e2) => c2("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", vi, [r(l3.$slots, "previous")]), o(d(cn), { class: "h-5 w-5", "aria-hidden": "true" })], 512), [[L, 1 !== t2.current]]), (e(true), a(w, null, j(v2.value, (l4) => (e(), a("button", { onClick: (e2) => c2("changePage", l4), key: l4, "aria-current": "page", class: n([[l4 === 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"]) }, _(l4), 11, hi))), 128)), B(i("button", { onClick: s2[1] || (s2[1] = (e2) => c2("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", bi, [r(l3.$slots, "next")]), o(d(pn), { class: "h-5 w-5", "aria-hidden": "true" })], 512), [[L, t2.current !== t2.total]])])])])]));
|
|
2346
|
-
} }), Si = { class: "hidden md:flex md:flex-col sticky md:inset-y-0" }, Ci = { class: "flex flex-col flex-grow overflow-y-auto" }, Oi = { class: "grow flex flex-col" }, Mi = { class: "flex-1 space-y-1", "aria-label": "Sidebar" }, Di = { key: 0 },
|
|
2346
|
+
} }), Si = { class: "hidden md:flex md:flex-col sticky md:inset-y-0" }, Ci = { class: "flex flex-col flex-grow overflow-y-auto" }, Oi = { class: "grow flex flex-col" }, Mi = { class: "flex-1 space-y-1", "aria-label": "Sidebar" }, Di = { key: 0 }, Ti = ["onClick"], Ei = { key: 0, class: "text-left" }, Ii = { key: 0, class: "flex-1 text-left" }, _i = { key: 1, class: "flex-1" }, Pi = [i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/2" }, null, -1)], ji = { key: 0, class: "align-left" }, Ri = { key: 1, class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/2" }, Bi = { class: "h-12 flex flex-row items-center" }, Ai = [i("div", { class: "w-6 h-6 animate-pulse bg-gray-200 rounded-full dark:bg-gray-300 mr-4" }, null, -1), i("div", { class: "h-3 animate-pulse bg-gray-200 rounded-full dark:bg-gray-300 grow" }, null, -1)], Li = { name: "uiSidebar" }, Fi = Object.assign(Li, { props: { navigation: { type: Array, required: true }, loading: { type: Boolean, default: true } }, emits: ["sideBarClick"], setup(l2, { emit: r2 }) {
|
|
2347
2347
|
const s2 = r2;
|
|
2348
|
-
return (r3, u2) => (e(), a("div", Si, [i("div", Ci, [i("div", Oi, [i("nav", Mi, [l2.loading ? (e(), a(w, { key: 1 }, j(5, (e2) => i("div", Bi, Ai)), 64)) : (e(true), a(w, { key: 0 }, j(l2.navigation, (r4) => (e(), a(w, { key: r4.name }, [r4.children ? (e(), t(d(Sl), { key: 1, as: "div", class: "space-y-1" }, { default:
|
|
2348
|
+
return (r3, u2) => (e(), a("div", Si, [i("div", Ci, [i("div", Oi, [i("nav", Mi, [l2.loading ? (e(), a(w, { key: 1 }, j(5, (e2) => i("div", Bi, Ai)), 64)) : (e(true), a(w, { key: 0 }, j(l2.navigation, (r4) => (e(), a(w, { key: r4.name }, [r4.children ? (e(), t(d(Sl), { key: 1, as: "div", class: "space-y-1" }, { default: E(({ open: i2 }) => [o(d(Cl), { class: n([r4.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: E(() => [o(J, { loading: l2.loading, icon: r4.icon, class: n([r4.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(), a("div", _i, Pi)) : (e(), a("span", Ii, _(r4.name), 1)), o(d(pn), { class: n([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"]), o(d(Ol), { class: "space-y-1" }, { default: E(() => [(e(true), a(w, null, j(r4.children, (o2) => (e(), t(d(Cl), { onClick: (e2) => s2("sideBarClick", o2.id), key: o2.name, class: n([o2.current ? "bg-gray-200" : "hover:text-gray-900 hover:bg-gray-100", "group text-gray-600 w-full flex items-center text-left pl-11 pr-2 py-2 text-sm font-medium rounded-md"]) }, { default: E(() => [l2.loading ? (e(), a("div", Ri)) : (e(), a("span", ji, _(o2.name), 1))]), _: 2 }, 1032, ["onClick", "class"]))), 128))]), _: 2 }, 1024)]), _: 2 }, 1024)) : (e(), a("div", Di, [i("button", { onClick: (e2) => s2("sideBarClick", r4.id), class: n([r4.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"]) }, [o(J, { loading: l2.loading, icon: r4.icon, class: n([r4.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 ? R("", true) : (e(), a("span", Ei, _(r4.name), 1))], 10, Ti)]))], 64))), 128))])])])]));
|
|
2349
2349
|
} }), Ni = { key: 0 }, zi = { class: "ml-16 text-sm font-medium text-gray-500 truncate" }, $i = { class: "ml-16 flex items-baseline pb-5" }, Vi = { class: "text-2xl font-semibold text-gray-900" }, Hi = { key: 0, class: "text-black ml-2 flex items-baseline text-sm font-semibold" }, Yi = { class: "absolute bottom-0 inset-x-0 bg-gray-50 px-4 py-4 sm:px-6" }, Ui = { class: "text-sm" }, qi = { key: 1 }, Wi = { class: "relative bg-white pt-5 px-4 sm:pt-6 sm:px-6 shadow rounded-lg overflow-hidden h-full pb-6" }, Ki = { class: "absolute bg-gray-200 rounded-md p-3 animate-pulse" }, Ji = 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), Gi = 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), Zi = { name: "uiStats" }, Xi = Object.assign(Zi, { props: { item: { type: Object, required: true }, loading: { type: Boolean, default: true } }, emits: ["statClick"], setup(l2, { emit: r2 }) {
|
|
2350
2350
|
const s2 = r2;
|
|
2351
2351
|
return (r3, u2) => l2.loading ? (e(), a("div", qi, [i("div", Wi, [i("dt", null, [i("div", Ki, [o(J, { loading: l2.loading, icon: l2.item.icon, class: "h-6 w-6 text-white", "aria-hidden": "true" }, null, 8, ["loading", "icon"])]), Ji, Gi])])])) : (e(), a("div", Ni, [i("div", { class: n(["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: n(["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 }]) }, [o(J, { icon: l2.item.icon, class: "h-6 w-6 text-white", "aria-hidden": "true", loading: l2.loading }, null, 8, ["icon", "loading"])], 2), i("p", zi, _(l2.item.name), 1)]), i("dd", $i, [i("p", Vi, _(l2.item.stat), 1), l2.item.explanation ? (e(), a("p", Hi, _(l2.item.explanation), 1)) : R("", true), l2.item.changeType ? (e(), a("p", { key: 1, class: n([{ "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(d(on), { key: 0, class: "self-center flex-shrink-0 h-3 w-3 text-green-500", "aria-hidden": "true" })) : R("", true), "decrease" === l2.item.changeType ? (e(), t(d(an), { key: 1, class: "self-center flex-shrink-0 h-3 w-3 text-red-500", "aria-hidden": "true" })) : R("", true), I(" " + _(l2.item.change), 1)], 2)) : R("", true), B(i("div", Yi, [i("div", Ui, [i("span", { onClick: u2[0] || (u2[0] = (e2) => s2("statClick", l2.item.id)), class: "font-medium text-indigo-600 hover:text-indigo-500 cursor-pointer" }, _(l2.item.actionText), 1)])], 512), [[L, l2.item.showFooter]])])], 2)]));
|
|
2352
|
-
} }), Qi = { key: 0, class: "overflow-hidden bg-white shadow sm:rounded-lg" }, es = { class: "px-4 py-5 sm:px-6" }, ts = { class: "text-lg font-medium leading-6 text-gray-900" }, ls = { class: "mt-1 max-w-2xl text-sm text-gray-500" }, ns = { class: "border-t border-gray-200" }, as = { class: "text-sm font-medium text-gray-500" }, os = { key: 0, class: "mt-1 text-sm text-gray-900 sm:col-span-2 sm:mt-0 break-normal" }, rs = { key: 1, class: "mt-1 text-sm text-gray-900 sm:col-span-2 sm:mt-0 break-normal" }, is = ["onClick"], ss = { key: 3, class: "mt-1 text-sm text-gray-900 sm:col-span-2 sm:mt-0 break-words" }, us = { key: 1, class: "overflow-hidden bg-white shadow sm:rounded-lg" }, ds = z('<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), cs = { class: "border-t border-gray-200" }, ps = [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)], gs = { name: "uiStripedCard" }, ms = Object.assign(gs, { props: { title: String, subtitle: String, items: Object, loading: { type: Boolean, default: true } }, emits: ["itemClicked"], setup: (l2, { emit: r2 }) => (r3, s2) => l2.loading ? (e(), a("div", us, [ds, i("div", cs, [i("dl", null, [(e(), a(w, null, j(5, (e2) => i("div", { key: e2, class: n(["px-4 py-5 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-6", [e2 % 2 == 0 ? "bg-gray-50" : "bg-white"]]) }, ps, 2)), 64))])])])) : (e(), a("div", Qi, [i("div", es, [i("h3", ts, _(l2.title), 1), i("p", ls, _(l2.subtitle), 1)]), i("div", ns, [i("dl", null, [(e(true), a(w, null, j(l2.items, (s3, u2) => (e(), a("div", { key: u2, class: n(["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", as, _(s3.title), 1), "tag" === s3.type ? (e(), a("dd", os, [o(ua, { color: s3.color }, { default:
|
|
2352
|
+
} }), Qi = { key: 0, class: "overflow-hidden bg-white shadow sm:rounded-lg" }, es = { class: "px-4 py-5 sm:px-6" }, ts = { class: "text-lg font-medium leading-6 text-gray-900" }, ls = { class: "mt-1 max-w-2xl text-sm text-gray-500" }, ns = { class: "border-t border-gray-200" }, as = { class: "text-sm font-medium text-gray-500" }, os = { key: 0, class: "mt-1 text-sm text-gray-900 sm:col-span-2 sm:mt-0 break-normal" }, rs = { key: 1, class: "mt-1 text-sm text-gray-900 sm:col-span-2 sm:mt-0 break-normal" }, is = ["onClick"], ss = { key: 3, class: "mt-1 text-sm text-gray-900 sm:col-span-2 sm:mt-0 break-words" }, us = { key: 1, class: "overflow-hidden bg-white shadow sm:rounded-lg" }, ds = z('<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), cs = { class: "border-t border-gray-200" }, ps = [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)], gs = { name: "uiStripedCard" }, ms = Object.assign(gs, { props: { title: String, subtitle: String, items: Object, loading: { type: Boolean, default: true } }, emits: ["itemClicked"], setup: (l2, { emit: r2 }) => (r3, s2) => l2.loading ? (e(), a("div", us, [ds, i("div", cs, [i("dl", null, [(e(), a(w, null, j(5, (e2) => i("div", { key: e2, class: n(["px-4 py-5 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-6", [e2 % 2 == 0 ? "bg-gray-50" : "bg-white"]]) }, ps, 2)), 64))])])])) : (e(), a("div", Qi, [i("div", es, [i("h3", ts, _(l2.title), 1), i("p", ls, _(l2.subtitle), 1)]), i("div", ns, [i("dl", null, [(e(true), a(w, null, j(l2.items, (s3, u2) => (e(), a("div", { key: u2, class: n(["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", as, _(s3.title), 1), "tag" === s3.type ? (e(), a("dd", os, [o(ua, { color: s3.color }, { default: E(() => [I(_(s3.text), 1)]), _: 2 }, 1032, ["color"])])) : "tags" === s3.type ? (e(), a("dd", rs, [(e(true), a(w, null, j(s3.tags, (n2, a2) => (e(), t(ua, { loading: l2.loading, key: a2, color: n2.color, class: "mr-2 mb-2" }, { default: E(() => [I(_(n2.text), 1)]), _: 2 }, 1032, ["loading", "color"]))), 128))])) : "link" === s3.type ? (e(), a("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) => r3.$emit("itemClicked", s3.emits) }, _(s3.text), 9, is)) : (e(), a("dd", ss, _(s3.text), 1))], 2))), 128))])])])) }), fs = { 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" }, vs = 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), hs = { class: "ml-2" }, bs = { __name: "tooltip", props: { tip: { type: String, required: true } }, setup: (t2) => (l2, n2) => (e(), a("div", fs, [vs, i("div", null, [o(J, { icon: d(yn), loading: false, color: "white", size: "big" }, null, 8, ["icon"])]), i("span", hs, _(t2.tip), 1)])) }, ys = { key: 0 }, xs = { class: "flex flex-col" }, ws = { class: "-my-2 overflow-x-auto" }, ks = { class: "inline-block min-w-full py-2 align-middle px-1" }, Ss = { class: "relative overflow-hidden shadow ring-1 ring-black ring-opacity-5 md:rounded-lg" }, Cs = { 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 z-10" }, Os = ["onClick"], Ms = { class: "min-w-full table-fixed divide-y divide-gray-300" }, Ds = { class: "bg-gray-50" }, Ts = ["checked", "indeterminate"], Es = ["onMouseover", "onMouseleave"], Is = ["onClick"], _s = { key: 2, class: "group flex items-center uppercase text-xs" }, Ps = { class: "divide-y divide-gray-200 bg-white" }, js = { key: 0, class: "absolute inset-y-0 left-0 w-0.5 bg-indigo-600" }, Rs = ["value"], Bs = ["onClick"], As = ["href"], Ls = { key: 3 }, Fs = { name: "uiTable" }, Ns = Object.assign(Fs, { 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: r2 }) {
|
|
2353
2353
|
let c2 = s([]);
|
|
2354
2354
|
s(false);
|
|
2355
2355
|
let p2 = s(void 0);
|
|
@@ -2358,9 +2358,9 @@ const ni = zo(ei, [["render", function(t2, l2, n2, o2, r2, i2) {
|
|
|
2358
2358
|
};
|
|
2359
2359
|
return (r3, s2) => {
|
|
2360
2360
|
var _a2, _b;
|
|
2361
|
-
return l2.loading ? (e(), t(lr, { key: 1 })) : (e(), a("div", ys, [i("div", xs, [i("div", ws, [i("div", ks, [i("div", Ss, [((_a2 = d(c2)) == null ? void 0 : _a2.length) > 0 && ((_b = l2.actions) == null ? void 0 : _b.length) > 0 ? (e(), a("div", Cs, [(e(true), a(w, null, j(l2.actions, (t2, l3) => (e(), a("button", { onClick: (e2) => g2("tableAction", { action: t2.id, items: d(c2) }), 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, Os))), 128))])) : R("", true), i("table", Ms, [i("thead", Ds, [i("tr", null, [i("th", { scope: "col", class: n([l2.actions ? "px-6 sm:px-8" : "px-3", "relative"]) }, [l2.actions ? (e(), a("input", { key: 0, checked: f2.value || d(c2).length === l2.items.length, indeterminate: f2.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: s2[0] || (s2[0] = (e2) => H(c2) ? c2.value = e2.target.checked ? l2.items.map((e3) => e3.id) : [] : c2 = e2.target.checked ? l2.items.map((e3) => e3.id) : []) }, null, 40,
|
|
2361
|
+
return l2.loading ? (e(), t(lr, { key: 1 })) : (e(), a("div", ys, [i("div", xs, [i("div", ws, [i("div", ks, [i("div", Ss, [((_a2 = d(c2)) == null ? void 0 : _a2.length) > 0 && ((_b = l2.actions) == null ? void 0 : _b.length) > 0 ? (e(), a("div", Cs, [(e(true), a(w, null, j(l2.actions, (t2, l3) => (e(), a("button", { onClick: (e2) => g2("tableAction", { action: t2.id, items: d(c2) }), 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, Os))), 128))])) : R("", true), i("table", Ms, [i("thead", Ds, [i("tr", null, [i("th", { scope: "col", class: n([l2.actions ? "px-6 sm:px-8" : "px-3", "relative"]) }, [l2.actions ? (e(), a("input", { key: 0, checked: f2.value || d(c2).length === l2.items.length, indeterminate: f2.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: s2[0] || (s2[0] = (e2) => H(c2) ? c2.value = e2.target.checked ? l2.items.map((e3) => e3.id) : [] : c2 = e2.target.checked ? l2.items.map((e3) => e3.id) : []) }, null, 40, Ts)) : R("", true)], 2), (e(true), a(w, null, j(l2.header, (r4, s3) => (e(), a("th", { key: s3, class: "py-3.5 pr-3 text-left font-semibold text-gray-900 flex-wrap relative", scope: "col", onMouseover: (e2) => v2(r4.name, true), onMouseleave: (e2) => v2(r4.name, false) }, [r4.tooltip ? B((e(), t(bs, { key: 0, tip: r4.tooltip }, null, 8, ["tip"])), [[L, d(p2) === r4.name]]) : R("", true), r4.value ? (e(), a("button", { key: 1, class: "group flex items-center uppercase text-xs relative", onClick: (e2) => g2("orderBy", { value: r4.value, orderDirection: "asc" === l2.orderDirection ? "desc" : "asc" }) }, [i("span", null, _(r4.name), 1), i("span", { class: n([[r4.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"]) }, [o(J, { icon: "asc" === l2.orderDirection ? d(dn) : d(mn), loading: l2.loading, color: r4.value === l2.orderedBy ? "white" : "primary" }, null, 8, ["icon", "loading", "color"])], 2)], 8, Is)) : (e(), a("p", _s, [i("span", null, _(r4.name), 1)]))], 40, Es))), 128))])]), i("tbody", Ps, [(e(true), a(w, null, j(l2.items, (o2, r4) => {
|
|
2362
2362
|
var _a3, _b2;
|
|
2363
|
-
return e(), a("tr", { key: o2.id, class: n([d(c2).includes(o2.id) && "bg-gray-50", r4 % 2 == 0 ? void 0 : "bg-gray-50"]) }, [i("td", { class: n([((_a3 = l2.actions) == null ? void 0 : _a3.length) > 0 ? "w-2" : "w-0", "relative"]) }, [d(c2).includes(o2.id) ? (e(), a("div", js)) : R("", true), ((_b2 = l2.actions) == null ? void 0 : _b2.length) > 0 ? B((e(), a("input", { key: 1, "onUpdate:modelValue": s2[1] || (s2[1] = (e2) => H(c2) ? c2.value = e2 : c2 = e2), value: o2.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, Rs)), [[V, d(c2)]]) : R("", true)], 2), (e(true), a(w, null, j(o2.row, (r5, i2) => (e(), a("td", { key: i2, class: n(["whitespace-nowrap py-4 pr-3 text-sm", d(c2).includes(o2.id) ? "text-indigo-600" : "text-gray-900"]) }, ["object" == typeof r5 && "tag" === r5.type ? (e(), t(ua, { key: 0, loading: l2.loading, color: r5.color }, { default:
|
|
2363
|
+
return e(), a("tr", { key: o2.id, class: n([d(c2).includes(o2.id) && "bg-gray-50", r4 % 2 == 0 ? void 0 : "bg-gray-50"]) }, [i("td", { class: n([((_a3 = l2.actions) == null ? void 0 : _a3.length) > 0 ? "w-2" : "w-0", "relative"]) }, [d(c2).includes(o2.id) ? (e(), a("div", js)) : R("", true), ((_b2 = l2.actions) == null ? void 0 : _b2.length) > 0 ? B((e(), a("input", { key: 1, "onUpdate:modelValue": s2[1] || (s2[1] = (e2) => H(c2) ? c2.value = e2 : c2 = e2), value: o2.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, Rs)), [[V, d(c2)]]) : R("", true)], 2), (e(true), a(w, null, j(o2.row, (r5, i2) => (e(), a("td", { key: i2, class: n(["whitespace-nowrap py-4 pr-3 text-sm", d(c2).includes(o2.id) ? "text-indigo-600" : "text-gray-900"]) }, ["object" == typeof r5 && "tag" === r5.type ? (e(), t(ua, { key: 0, loading: l2.loading, color: r5.color }, { default: E(() => [I(_(r5.content), 1)]), _: 2 }, 1032, ["loading", "color"])) : "object" == typeof r5 && "link" === r5.type ? (e(), a("span", { key: 1, class: "text-indigo-600 hover:text-indigo-400 cursor-pointer", onClick: (e2) => g2(r5.emits, { id: o2.id, data: (o2 == null ? void 0 : o2.emitWith) || null }) }, _(r5.content), 9, Bs)) : "object" == typeof r5 && "href" === r5.type ? (e(), a("a", { key: 2, class: "text-indigo-600 hover:text-indigo-400 cursor-pointer", href: r5.href, target: "_blank" }, _(r5.content), 9, As)) : (e(), a("span", Ls, _(r5), 1))], 2))), 128))], 2);
|
|
2364
2364
|
}), 128))])])])])])])]));
|
|
2365
2365
|
};
|
|
2366
2366
|
} }), zs = { class: "lg:hidden" }, $s = ["value"], Vs = { class: "hidden lg:block" }, Hs = { class: "border-b border-gray-200" }, Ys = { class: "-mb-px flex space-x-8", "aria-label": "Tabs" }, Us = ["onClick", "aria-current"], qs = { name: "uiTabs" }, Ws = Object.assign(qs, { props: { tabs: Array }, emits: ["tabClicked"], setup(t2, { emit: l2 }) {
|
|
@@ -2373,10 +2373,10 @@ const ni = zo(ei, [["render", function(t2, l2, n2, o2, r2, i2) {
|
|
|
2373
2373
|
return t2.loading ? (e(), a("div", pu, [gu, i("div", mu, [i("div", fu, [i("ul", vu, [(e(), a(w, null, j(10, (t3) => i("li", { key: l2.index }, [i("div", hu, [10 !== t3 ? (e(), a("span", bu)) : R("", true), yu])])), 64))])])]), xu])) : (e(), a("div", Ks, [i("div", Js, [i("h1", Gs, _(t2.name), 1)]), B(i("div", Zs, [i("div", Xs, [i("ul", Qs, [(e(true), a(w, null, j(t2.timeline.items, (r3, u2) => (e(), a("li", { key: u2 }, [i("div", eu, [u2 !== t2.timeline.items.length - 1 ? (e(), a("span", tu)) : R("", true), i("div", lu, [i("div", null, [i("span", { class: n([r3.iconBackground, "h-8 w-8 rounded-full flex items-center justify-center ring-4 ring-white"]) }, [o(s2, { loading: t2.loading, icon: r3.icon, "aria-hidden": "true", class: "h-5 w-5 text-white", color: "white" }, null, 8, ["loading", "icon"])], 2)]), i("div", nu, [i("div", null, [i("p", au, [i("a", { onClick: (e2) => l2.$emit("timelineEventClicked", r3.linkId), class: "font-medium text-indigo-600 hover:text-indigo-800 cursor-pointer" }, _(r3.target), 9, ou), I(" " + _(r3.content), 1)])]), i("div", ru, [i("time", { datetime: r3.datetime }, _(r3.date), 9, iu)])])])])]))), 128))])])], 512), [[L, !t2.empty]]), B(i("div", su, [i("div", uu, [i("a", { class: "cursor-pointer font-medium text-indigo-600 hover:text-indigo-500", onClick: r2[0] || (r2[0] = (e2) => l2.$emit("timelineFooterClicked", t2.timeline.id)) }, _(t2.timeline.footerText), 1)])], 512), [[L, !t2.empty]]), B(i("div", du, [o(J, { icon: d(fn), color: "gray", loading: false, size: "huge" }, null, 8, ["icon"]), cu], 512), [[L, t2.empty]])]));
|
|
2374
2374
|
} }), Su = { name: "uiTopbar", props: ["navigation", "logo", "profileMenu", "brand", "accountLogo", "alerted"], components: { Disclosure: Sl, DisclosureButton: Cl, DisclosurePanel: Ol, Menu: jl, MenuButton: Rl, MenuItem: Al, MenuItems: Bl, Bars3Icon: function(t2, l2) {
|
|
2375
2375
|
return e(), a("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", "stroke-width": "1.5", stroke: "currentColor", "aria-hidden": "true", "data-slot": "icon" }, [i("path", { "stroke-linecap": "round", "stroke-linejoin": "round", d: "M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25h16.5" })]);
|
|
2376
|
-
}, XMarkIcon: kn } }, Cu = { class: "mx-auto px-6 lg:px-8" }, Ou = { class: "flex justify-between h-20" }, Mu = { class: "flex" }, Du = { class: "-ml-2 mr-2 flex items-center lg:hidden" },
|
|
2376
|
+
}, XMarkIcon: kn } }, Cu = { class: "mx-auto px-6 lg:px-8" }, Ou = { class: "flex justify-between h-20" }, Mu = { class: "flex" }, Du = { class: "-ml-2 mr-2 flex items-center lg:hidden" }, Tu = i("span", { class: "sr-only" }, "Open main menu", -1), Eu = ["src"], Iu = { class: "flex items-center" }, _u = { class: "lg:ml-4 lg:flex-shrink-0 lg:flex lg:items-center hidden" }, Pu = { class: "redCircle flex items-center justify-center h-4 w-4 bg-red-500 rounded-full absolute -top-0 -left-1" }, ju = [i("span", { class: "animate-ping absolute inline-flex h-4 w-4 bg-red-500 rounded-full opacity-75" }, null, -1)], Ru = ["src"], Bu = ["onClick"], Au = { class: "pt-2 pb-3 space-y-1" }, Lu = ["onClick"], Fu = { class: "pt-4 pb-3 border-t border-gray-200" }, Nu = { class: "flex items-center px-4 sm:px-6" }, zu = { class: "flex-shrink-0" }, $u = ["src"], Vu = { key: 0, class: "ml-3" }, Hu = { class: "text-base font-medium text-gray-800" }, Yu = { class: "text-sm font-medium text-gray-500" }, Uu = { class: "mt-3 space-y-1" }, qu = ["onClick"];
|
|
2377
2377
|
const Wu = zo(Su, [["render", function(l2, r2, s2, u2, d2, c2) {
|
|
2378
2378
|
const p2 = $("Bars3Icon"), g2 = $("XMarkIcon"), m2 = $("DisclosureButton"), f2 = $("MenuButton"), v2 = $("MenuItem"), h2 = $("MenuItems"), b2 = $("Menu"), y2 = $("DisclosurePanel"), x2 = $("Disclosure");
|
|
2379
|
-
return e(), t(x2, { as: "nav", class: "bg-white shadow z-10" }, { default:
|
|
2379
|
+
return e(), t(x2, { as: "nav", class: "bg-white shadow z-10" }, { default: E(({ open: u3 }) => [i("div", Cu, [i("div", Ou, [i("div", Mu, [i("div", Du, [o(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: E(() => [Tu, u3 ? (e(), t(g2, { key: 1, class: "block h-6 w-6", "aria-hidden": "true" })) : (e(), t(p2, { 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: r2[0] || (r2[0] = (e2) => l2.$emit("topBarClick", "logo")) }, [i("img", { class: "h-10", src: s2.logo, alt: "Hotelinking suite product logo" }, null, 8, Eu)])]), i("div", Iu, [i("div", _u, [o(b2, { as: "div", class: "ml-3 relative" }, { default: E(() => [i("div", null, [B(o(f2, { class: "bg-white rounded-full flex text-sm focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 relative" }, { default: E(() => [B(i("div", Pu, ju, 512), [[L, s2.alerted]]), i("img", { class: "h-10 w-10 rounded-full", src: s2.accountLogo }, null, 8, Ru)]), _: 1 }, 512), [[L, s2.accountLogo]])]), o(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: E(() => [o(h2, { 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: E(() => [(e(true), a(w, null, j(s2.profileMenu, (a2) => (e(), t(v2, { key: a2.name }, { default: E(({ active: e2 }) => [i("p", { onClick: (e3) => l2.$emit("topBarClick", a2.id), class: n(["cursor-pointer", [e2 ? "bg-gray-100" : "", "block px-4 py-2 text-sm text-gray-700"]]) }, _(a2.name), 11, Bu)]), _: 2 }, 1024))), 128))]), _: 1 })]), _: 1 })]), _: 1 })])])])]), o(y2, { class: "lg:hidden" }, { default: E(() => [i("div", Au, [(e(true), a(w, null, j(s2.navigation, (a2) => (e(), t(m2, { as: "template", key: a2.name, class: n(["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": a2.current && true === a2.current, "border-transparent text-gray-500 hover:bg-gray-50 hover:border-gray-300 hover:text-gray-700": !a2.current }]) }, { default: E(() => [i("p", { onClick: (e2) => l2.$emit("topBarClick", a2.id) }, _(a2.name), 9, Lu)]), _: 2 }, 1032, ["class"]))), 128))]), i("div", Fu, [i("div", Nu, [i("div", zu, [i("img", { class: "h-10 w-10 rounded-full", src: s2.accountLogo }, null, 8, $u)]), s2.brand ? (e(), a("div", Vu, [i("div", Hu, _(s2.brand.title), 1), i("div", Yu, _(s2.brand.subtitle), 1)])) : R("", true)]), i("div", Uu, [(e(true), a(w, null, j(s2.profileMenu, (n2) => (e(), t(m2, { as: "template", key: n2.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: E(() => [i("p", { onClick: (e2) => l2.$emit("topBarClick", n2.id) }, _(n2.name), 9, qu)]), _: 2 }, 1024))), 128))])])]), _: 1 })]), _: 1 });
|
|
2380
2380
|
}]]), Ku = { chart: { type: "bar", toolbar: { show: false }, zoom: { enabled: false } }, colors: ["#715aff"], dataLabels: { enabled: true, formatter: function(e2, t2) {
|
|
2381
2381
|
return t2.w.globals.labels[t2.dataPointIndex] + ": " + e2;
|
|
2382
2382
|
} }, markers: { strokeWidth: 0, size: 4, hover: { size: 8 } }, plotOptions: { bar: { borderRadius: 0, horizontal: true, barHeight: "80%", isFunnel: true } } }, Ju = { class: "chart-header flex flex-row justify-between" }, Gu = { class: "text-sm font-medium text-gray-500 truncate" }, Zu = { class: "chart-content" }, Xu = { class: "h-full w-full flex items-center justify-center flex-col" }, Qu = i("p", { class: "text-xs uppercase text-gray-300 font-bold" }, "No data", -1), ed = { class: "card chart apex-chart px-4 py-5 bg-white shadow rounded-lg overflow-hidden sm:p-6 flex grow h-80" }, td = [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)], ld = { name: "uiChart" }, nd = Object.assign(ld, { 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", "dataPointSelection"], setup(t2, { emit: l2 }) {
|
|
@@ -2384,21 +2384,21 @@ const Wu = zo(Su, [["render", function(l2, r2, s2, u2, d2, c2) {
|
|
|
2384
2384
|
r2("dataPointSelection", { id: s2.id, chartContext: t3, config: l3, event: e2 });
|
|
2385
2385
|
};
|
|
2386
2386
|
return (l3, r3) => (e(), a(w, null, [B(i("div", { class: n(["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", Ju, [i("div", Gu, _(t2.title), 1), o(Yr, { range: t2.range, onRangeSelected: r3[0] || (r3[0] = (e2) => l3.$emit("selectedRange", { range: e2, chartId: t2.id })) }, null, 8, ["range"])]), B(i("div", Zu, [o(d(U), { type: l3.bar, series: p2.value, width: "100%", height: t2.height, options: c2.value, onUpdated: g2, onMounted: g2, onDataPointSelection: m2 }, null, 8, ["type", "series", "height", "options"])], 512), [[L, !t2.empty]]), B(i("div", Xu, [o(J, { icon: d(fn), color: "gray", loading: false, size: "huge" }, null, 8, ["icon"]), Qu], 512), [[L, t2.empty]])], 2), [[L, !t2.loading]]), B(i("div", ed, td, 512), [[L, t2.loading]])], 64));
|
|
2387
|
-
} }), ad = { class: "w-full flex flex-col items-center justify-center p-10 grow" }, od = { class: "text-2xl mt-4 font-bold" }, rd = { class: "buttons flex flex-row items-center justify-center mt-8 gap-x-1" }, id = { __name: "uiNoResults", props: { title: { type: String, required: true }, message: { type: String, required: true }, actions: { type: Array } }, emits: ["action"], setup: (l2, { emit: n2 }) => (n3, r2) => (e(), a("div", ad, [o(J, { loading: false, icon: d(fn), size: "massive", color: "gray" }, null, 8, ["icon"]), i("h2", od, _(l2.title), 1), i("p", null, _(l2.message), 1), i("div", rd, [(e(true), a(w, null, j(l2.actions, (l3, a2) => (e(), t(ee, { key: a2, loading: false, onClick: (e2) => n3.$emit("action", l3.action) }, { default:
|
|
2387
|
+
} }), ad = { class: "w-full flex flex-col items-center justify-center p-10 grow" }, od = { class: "text-2xl mt-4 font-bold" }, rd = { class: "buttons flex flex-row items-center justify-center mt-8 gap-x-1" }, id = { __name: "uiNoResults", props: { title: { type: String, required: true }, message: { type: String, required: true }, actions: { type: Array } }, emits: ["action"], setup: (l2, { emit: n2 }) => (n3, r2) => (e(), a("div", ad, [o(J, { loading: false, icon: d(fn), size: "massive", color: "gray" }, null, 8, ["icon"]), i("h2", od, _(l2.title), 1), i("p", null, _(l2.message), 1), i("div", rd, [(e(true), a(w, null, j(l2.actions, (l3, a2) => (e(), t(ee, { key: a2, loading: false, onClick: (e2) => n3.$emit("action", l3.action) }, { default: E(() => [I(_(l3.text), 1)]), _: 2 }, 1032, ["onClick"]))), 128))])])) }, sd = i("div", { class: "fixed inset-0" }, null, -1), ud = { class: "fixed inset-0 overflow-hidden" }, dd = { class: "absolute inset-0 overflow-hidden" }, cd = { class: "pointer-events-none fixed inset-y-0 right-0 flex max-w-full pl-10" }, pd = { class: "flex h-full flex-col overflow-y-scroll bg-white shadow-xl" }, gd = { class: "bg-indigo-700 px-4 py-6 sm:px-6" }, md = { class: "flex items-center justify-between" }, fd = { class: "ml-3 flex h-7 items-center" }, vd = i("span", { class: "absolute -inset-2.5" }, null, -1), hd = i("span", { class: "sr-only" }, "Close panel", -1), bd = { class: "mt-1" }, yd = { class: "text-sm text-indigo-300" }, xd = { class: "relative flex-1 px-4 py-6 sm:px-6" }, wd = { name: "uiRightSidebar" }, kd = Object.assign(wd, { props: { title: { type: String, required: true }, description: { type: String }, open: { type: Boolean, default: false } }, emits: ["closeRightBar"], setup(l2, { emit: n2 }) {
|
|
2388
2388
|
const a2 = n2;
|
|
2389
|
-
return (n3, s2) => (e(), t(d(nn), { as: "template", show: l2.open }, { default:
|
|
2390
|
-
} }), Sd = { class: "uiGallery" }, Cd = { key: 1, role: "list", class: "grid grid-cols-2 gap-x-4 gap-y-8 sm:grid-cols-3 sm:gap-x-4 lg:grid-cols-6" }, Od = { class: "group aspect-h-7 aspect-w-10 block w-full overflow-hidden rounded-lg bg-gray-100 focus-within:ring-2 focus-within:ring-indigo-500 focus-within:ring-offset-2 focus-within:ring-offset-gray-100" }, Md = ["src"], Dd = ["onClick"],
|
|
2389
|
+
return (n3, s2) => (e(), t(d(nn), { as: "template", show: l2.open }, { default: E(() => [o(d(vl), { as: "div", class: "relative z-10", onClose: s2[1] || (s2[1] = (e2) => a2("closeRightBar")) }, { default: E(() => [sd, i("div", ud, [i("div", dd, [i("div", cd, [o(d(tn), { 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: E(() => [o(d(hl), { class: "pointer-events-auto w-screen max-w-md" }, { default: E(() => [i("div", pd, [i("div", gd, [i("div", md, [o(d(bl), { class: "text-base font-semibold leading-6 text-white" }, { default: E(() => [I(_(l2.title), 1)]), _: 1 }), i("div", fd, [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")) }, [vd, hd, o(d(kn), { class: "h-6 w-6 ring-0", "aria-hidden": "true" })])])]), i("div", bd, [i("p", yd, _(l2.description), 1)])]), i("div", xd, [r(n3.$slots, "default")])])]), _: 3 })]), _: 3 })])])])]), _: 3 })]), _: 3 }, 8, ["show"]));
|
|
2390
|
+
} }), Sd = { class: "uiGallery" }, Cd = { key: 1, role: "list", class: "grid grid-cols-2 gap-x-4 gap-y-8 sm:grid-cols-3 sm:gap-x-4 lg:grid-cols-6" }, Od = { class: "group aspect-h-7 aspect-w-10 block w-full overflow-hidden rounded-lg bg-gray-100 focus-within:ring-2 focus-within:ring-indigo-500 focus-within:ring-offset-2 focus-within:ring-offset-gray-100" }, Md = ["src"], Dd = ["onClick"], Td = { class: "pointer-events-none mt-2 block truncate text-sm font-medium text-gray-900" }, Ed = { class: "flex items-center justify-between" }, Id = { class: "pointer-events-none block text-sm font-medium text-gray-500" }, _d = { key: 2, role: "list", class: "grid grid-cols-2 gap-x-4 gap-y-8 sm:grid-cols-3 sm:gap-x-4 lg:grid-cols-6" }, Pd = [i("div", { class: "group aspect-h-7 aspect-w-10 block w-full overflow-hidden rounded-lg bg-gray-200 animate-pulse dark:bg-gray-200 focus-within:ring-2 focus-within:ring-indigo-500 focus-within:ring-offset-2 focus-within:ring-offset-gray-100" }, null, -1), i("p", { class: "animate-pulse h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-28 mt-4" }, null, -1), i("p", { class: "animate-pulse h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-14 mt-2" }, null, -1)], jd = { name: "uiGallery" }, Rd = Object.assign(jd, { props: { galleryId: String, gallery: Array, loading: Boolean, literals: Object }, setup(l2, { emit: n2 }) {
|
|
2391
2391
|
const r2 = n2, u2 = s(false);
|
|
2392
2392
|
return (n3, s2) => (e(), a("div", Sd, [l2.loading ? R("", true) : (e(), t(go, { key: 0, open: u2.value, modalName: "deleteAllImagesModal", title: l2.literals.modalTitle, type: "warning", actions: [{ value: "close", name: l2.literals.closeAction }, { value: `deleteGallery_${l2.galleryId}`, name: l2.literals.deleteAction }], onModalAction: s2[0] || (s2[0] = (e2) => {
|
|
2393
2393
|
var t2;
|
|
2394
2394
|
"close" !== (t2 = e2).action ? r2("modalAction", t2) : u2.value = false;
|
|
2395
|
-
}) }, { default:
|
|
2395
|
+
}) }, { default: E(() => [i("p", null, _(l2.literals.modalText), 1)]), _: 1 }, 8, ["open", "title", "actions"])), l2.loading ? (e(), a("ul", _d, [(e(), a(w, null, j(4, (e2) => i("li", null, Pd)), 64))])) : (e(), a("ul", Cd, [(e(true), a(w, null, j(l2.gallery, (t2) => (e(), a("li", { key: t2.source, class: "relative" }, [i("div", Od, [i("img", { src: t2.source, alt: "", class: "pointer-events-none object-cover group-hover:opacity-75" }, null, 8, Md), i("button", { type: "button", class: "absolute inset-0 focus:outline-none", onClick: (e2) => n3.$emit("imgClicked", t2) }, null, 8, Dd)]), i("p", Td, _(t2.title), 1), i("div", Ed, [i("p", Id, _(t2.size), 1), o(J, { class: "cursor-pointer", icon: d(xn), color: "red", loading: false, onClick: (e2) => r2("deleteImage", t2) }, null, 8, ["icon", "onClick"])])]))), 128))])), l2.gallery.length > 0 && !l2.loading ? (e(), t(ee, { key: 3, onClick: s2[1] || (s2[1] = (e2) => u2.value = true), class: "mt-8", loading: false, color: "red", size: "small" }, { default: E(() => [I(_(l2.literals.deleteAllImages), 1)]), _: 1 })) : R("", true)]));
|
|
2396
2396
|
} }), Bd = { class: "cursor-move mb-1 relative flex items-center space-x-3 rounded-lg border border-gray-300 bg-white p-4 shadow-sm focus-within:ring-2 focus-within:ring-indigo-500 focus-within:ring-offset-2 hover:border-gray-400" }, Ad = { class: "flex flex-row items-center w-full" }, Ld = { class: "content text-sm grow" }, Fd = { class: "font-bold" }, Nd = { key: 0 }, zd = { class: "font-bold text-gray-400" }, $d = { key: 1, class: "animate-pulse" }, Vd = [z('<div class="h-16 mb-1 relative flex items-center space-x-3 rounded-lg bg-gray-200 dark:bg-gray-300 p-4 shadow-sm"></div><div class="h-16 mb-1 relative flex items-center space-x-3 rounded-lg bg-gray-200 dark:bg-gray-300 p-4 shadow-sm"></div><div class="h-16 mb-1 relative flex items-center space-x-3 rounded-lg bg-gray-200 dark:bg-gray-300 p-4 shadow-sm"></div><div class="h-16 mb-1 relative flex items-center space-x-3 rounded-lg bg-gray-200 dark:bg-gray-300 p-4 shadow-sm"></div><div class="h-16 relative flex items-center space-x-3 rounded-lg bg-gray-200 dark:bg-gray-300 p-4 shadow-sm"></div>', 5)], Hd = { name: "uiDragAndDrop" }, Yd = Object.assign(Hd, { props: { elements: { type: Array, required: true }, loading: true }, setup(l2) {
|
|
2397
2397
|
const n2 = l2;
|
|
2398
2398
|
let r2 = s(n2.elements);
|
|
2399
2399
|
return p(() => n2.elements, (e2) => {
|
|
2400
2400
|
r2.value = e2;
|
|
2401
|
-
}), (n3, s2) => l2.loading ? (e(), a("div", $d, Vd)) : (e(), t(d(q), { key: 0, modelValue: d(r2), "onUpdate:modelValue": s2[0] || (s2[0] = (e2) => H(r2) ? r2.value = e2 : r2 = e2) }, { item:
|
|
2401
|
+
}), (n3, s2) => l2.loading ? (e(), a("div", $d, Vd)) : (e(), t(d(q), { key: 0, modelValue: d(r2), "onUpdate:modelValue": s2[0] || (s2[0] = (e2) => H(r2) ? r2.value = e2 : r2 = e2) }, { item: E(({ item: t2 }) => [i("div", Bd, [i("div", Ad, [o(J, { icon: d(rn), loading: false, color: "gray", class: "mr-4", size: "big" }, null, 8, ["icon"]), i("div", Ld, [i("p", Fd, _(t2.name), 1), t2.description ? (e(), a("p", Nd, _(t2.description), 1)) : R("", true)]), i("div", zd, _(d(r2).indexOf(t2) + 1), 1)])])]), _: 1 }, 8, ["modelValue"]));
|
|
2402
2402
|
} }), Ud = { class: "chart-header flex flex-row justify-between" }, qd = { class: "text-sm font-medium text-gray-500 truncate" }, Wd = { class: "chart-content" }, Kd = { class: "h-full w-full flex items-center justify-center flex-col" }, Jd = i("p", { class: "text-xs uppercase text-gray-300 font-bold" }, "No data", -1), Gd = { class: "card chart apex-chart px-4 py-5 bg-white shadow rounded-lg overflow-hidden sm:p-6 flex grow h-80" }, Zd = [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)], Xd = { name: "uiCircleChart" }, Qd = Object.assign(Xd, { props: { title: String, id: { type: String, default: "noChartId" }, series: { type: Array, required: true }, labels: { type: Array, 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", "dataPointSelection"], setup(t2, { emit: l2 }) {
|
|
2403
2403
|
const r2 = l2, s2 = t2;
|
|
2404
2404
|
let c2 = { labels: s2.labels, chart: { toolbar: { show: false }, zoom: { enabled: false } }, colors: ["#715aff", "#00ffff", "#aba9ba"], stroke: { show: true, curve: "stepline", lineCap: "butt", width: 1, dashArray: 0 }, dataLabels: { enabled: true, dropShadow: { enabled: false } } };
|
|
@@ -2408,15 +2408,15 @@ const Wu = zo(Su, [["render", function(l2, r2, s2, u2, d2, c2) {
|
|
|
2408
2408
|
return (l3, r3) => (e(), a(w, null, [B(i("div", { class: n(["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", Ud, [i("div", qd, _(t2.title), 1), o(Yr, { range: t2.range, onRangeSelected: r3[0] || (r3[0] = (e2) => l3.$emit("selectedRange", { range: e2, chartId: t2.id })) }, null, 8, ["range"])]), B(i("div", Wd, [o(d(U), { class: "flex items-center justify-center", type: "donut", series: p2.value, options: g2.value, height: t2.height, onUpdated: m2, onMounted: m2, onDataPointSelection: f2 }, null, 8, ["series", "options", "height"])], 512), [[L, !t2.empty]]), B(i("div", Kd, [o(J, { icon: d(fn), color: "gray", loading: false, size: "huge" }, null, 8, ["icon"]), Jd], 512), [[L, t2.empty]])], 2), [[L, !t2.loading]]), B(i("div", Gd, Zd, 512), [[L, t2.loading]])], 64));
|
|
2409
2409
|
} }), ec = { class: "flex flex-col lg:flex-row w-full gap-y-4 gap-x-2" }, tc = { name: "uiDateRange" }, lc = Object.assign(tc, { props: { id: { type: String, required: true }, loading: { type: Boolean, default: true }, literals: { type: Object, required: true }, color: String, values: { type: Object, default: () => ({ from: "", to: "" }) }, error: String, disabled: Boolean, label: String }, setup(t2) {
|
|
2410
2410
|
let l2 = C({ from: void 0, to: void 0 });
|
|
2411
|
-
return (r2, i2) => (e(), a("div", ec, [o(Nn, { type: "date", loading: t2.loading, addOn: t2.literals.from, name: `dateFrom_${t2.id}`, color: t2.color, value: t2.values.from, error: t2.error, disabled: t2.disabled, label: t2.label, onInputChanged: i2[0] || (i2[0] = (e2) => d(l2).from = e2.value) }, null, 8, ["loading", "addOn", "name", "color", "value", "error", "disabled", "label"]), o(Nn, { class: n([{ "mt-6": t2.label && !t2.loading }, { "mt-4": t2.loading }]), type: "date", loading: t2.loading, addOn: t2.literals.to, name: `dateTo_${t2.id}`, color: t2.color, value: t2.values.to, error: t2.error, disabled: t2.disabled, onInputChanged: i2[1] || (i2[1] = (e2) => d(l2).to = e2.value) }, null, 8, ["class", "loading", "addOn", "name", "color", "value", "error", "disabled"]), o(ee, { disabled: t2.disabled, color: "primary", loading: t2.loading, class: n([{ "mt-6": t2.label && !t2.loading, "mt-4": t2.label && t2.loading }, "h-10"]), onClick: i2[2] || (i2[2] = (e2) => r2.$emit("uiDateRangeButtonClicked", d(l2))) }, { default:
|
|
2411
|
+
return (r2, i2) => (e(), a("div", ec, [o(Nn, { type: "date", loading: t2.loading, addOn: t2.literals.from, name: `dateFrom_${t2.id}`, color: t2.color, value: t2.values.from, error: t2.error, disabled: t2.disabled, label: t2.label, onInputChanged: i2[0] || (i2[0] = (e2) => d(l2).from = e2.value) }, null, 8, ["loading", "addOn", "name", "color", "value", "error", "disabled", "label"]), o(Nn, { class: n([{ "mt-6": t2.label && !t2.loading }, { "mt-4": t2.loading }]), type: "date", loading: t2.loading, addOn: t2.literals.to, name: `dateTo_${t2.id}`, color: t2.color, value: t2.values.to, error: t2.error, disabled: t2.disabled, onInputChanged: i2[1] || (i2[1] = (e2) => d(l2).to = e2.value) }, null, 8, ["class", "loading", "addOn", "name", "color", "value", "error", "disabled"]), o(ee, { disabled: t2.disabled, color: "primary", loading: t2.loading, class: n([{ "mt-6": t2.label && !t2.loading, "mt-4": t2.label && t2.loading }, "h-10"]), onClick: i2[2] || (i2[2] = (e2) => r2.$emit("uiDateRangeButtonClicked", d(l2))) }, { default: E(() => [I(_(t2.literals.search), 1)]), _: 1 }, 8, ["disabled", "loading", "class"])]));
|
|
2412
2412
|
} }), nc = { class: "flex justify-between items-center" }, ac = { key: 0, class: "block text-sm font-medium text-gray-700" }, oc = { key: 1, class: "text-[10px] text-gray-500 uppercase justify-self-end" }, rc = { key: 1, class: "h-2 animate-pulse bg-gray-200 rounded-full dark:bg-gray-300 w-full" }, ic = { name: "uiRangeSlider" }, sc = Object.assign(ic, { props: { loading: { type: Boolean, default: true }, disabled: { type: Boolean, default: false }, min: Number, max: Number, sliderValue: [Array, Number], label: String, optional: String }, emits: ["sliderUpdated"], setup(l2, { emit: o2 }) {
|
|
2413
2413
|
const r2 = o2, u2 = s(l2.sliderValue);
|
|
2414
2414
|
return (o3, s2) => (e(), a("div", null, [i("div", nc, [l2.label ? (e(), a("label", ac, _(l2.label), 1)) : R("", true), l2.optional ? (e(), a("span", oc, _(l2.optional), 1)) : R("", true)]), i("div", { class: n([{ "mt-1": l2.label }, "pt-16 px-6 pb-6 bg-gray-50 border border-gray-300 rounded-lg shadow-sm"]) }, [l2.loading ? (e(), a("p", rc)) : (e(), t(d(W), { key: 0, modelValue: u2.value, "onUpdate:modelValue": s2[0] || (s2[0] = (e2) => u2.value = e2), min: l2.min, max: l2.max, disabled: l2.disabled, onChange: s2[1] || (s2[1] = (e2) => r2("sliderUpdated", e2)), classes: { base: "w-full h-full relative z-1 bg-gray-300 rounded", tooltip: "absolute block text-sm font-semibold whitespace-nowrap py-1 px-1.5 min-w-5 text-center text-white rounded border border-indigo-600 bg-indigo-600 transform h:-translate-x-1/2 h:left-1/2 v:-translate-y-1/2 v:top-1/2 slider-disabled:bg-gray-400 slider-disabled:border-gray-400 merge-h:translate-x-1/2 merge-h:left-auto merge-v:-translate-x-4 merge-v:top-auto tt-focus:hidden tt-focused:block tt-drag:hidden tt-dragging:block" } }, null, 8, ["modelValue", "min", "max", "disabled"]))], 2)]));
|
|
2415
|
-
} }), uc = { uiButton: ee, uiIcon: J, uiCheckbox: ue, uiDropdown:
|
|
2416
|
-
Object.keys(
|
|
2417
|
-
e2.component(t2,
|
|
2415
|
+
} }), uc = { class: "mt-1 mb-8 text-sm text-gray-500" }, dc = { name: "uiSectionTitle" }, cc = { uiButton: ee, uiIcon: J, uiCheckbox: ue, uiDropdown: Tn, uiInput: Nn, uiInputFile: ea, uiSelect: oa, uiTag: ua, uiTextArea: va, uiToggle: ka, uiAlert: ja, uiBreadcrumbs: Ha, uiCard: Xa, uiFilter: eo, uiModal: go, uiNotification: Oo, uiTaskList: Fo, uiPriceCalendar: $r, uiChart: Qr, uiFooter: ni, uiLoadingScreen: ri, uiPagination: ki, uiSidebar: Fi, uiStats: Xi, uiStripedCard: ms, uiTable: Ns, uiTabs: Ws, uiTimeline: ku, uiTopbar: Wu, uiFunnelChartV2: nd, uiNoResults: id, uiRightSidebar: kd, uiGallery: Rd, uiDragAndDrop: Yd, uiCircleChart: Qd, uiDateRange: lc, uiRangeSlider: sc, uiSectionTitle: Object.assign(dc, { props: { title: { type: String, required: true }, description: { type: String, default: void 0 } }, setup: (t2) => (l2, o2) => (e(), a(w, null, [i("h3", { class: n(["text-lg font-medium leading-6 text-gray-900", { "mb-8": void 0 === t2.description }]) }, _(t2.title), 3), i("p", uc, _(t2.description), 1)], 64)) }) }, pc = { install(e2) {
|
|
2416
|
+
Object.keys(cc).forEach((t2) => {
|
|
2417
|
+
e2.component(t2, cc[t2]);
|
|
2418
2418
|
});
|
|
2419
2419
|
} };
|
|
2420
2420
|
export {
|
|
2421
|
-
|
|
2421
|
+
pc as default
|
|
2422
2422
|
};
|