@hotelinking/ui 5.39.5 → 5.39.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ui.es.js +129 -123
- 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 d, unref as u, shallowRef as c, watch as p, triggerRef as g, onScopeDispose 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 d, unref as u, shallowRef as c, watch as p, triggerRef as g, onScopeDispose as f, onUnmounted as m, inject as v, nextTick as h, watchEffect as b, onMounted as y, cloneVNode as x, h as w, Fragment as k, defineComponent as S, provide as C, reactive as O, toRaw as M, getCurrentInstance as D, Teleport as E, withCtx as T, createTextVNode as I, toDisplayString as _, Transition as j, renderList as P, 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 q from "vue3-apexcharts";
|
|
4
4
|
import U from "vue3-draggable";
|
|
@@ -44,12 +44,12 @@ const pe = (e2, t2, l2) => {
|
|
|
44
44
|
return function(...a2) {
|
|
45
45
|
e2.clearTimeout(n2), n2 = e2.setTimeout(() => t2.apply(this, a2), l2);
|
|
46
46
|
};
|
|
47
|
-
}, ge = (e2) => e2,
|
|
47
|
+
}, ge = (e2) => e2, fe = (e2) => {
|
|
48
48
|
const t2 = Math.max(e2.startIndex - e2.overscan, 0), l2 = Math.min(e2.endIndex + e2.overscan, e2.count - 1), n2 = [];
|
|
49
49
|
for (let e3 = t2; e3 <= l2; e3++)
|
|
50
50
|
n2.push(e3);
|
|
51
51
|
return n2;
|
|
52
|
-
},
|
|
52
|
+
}, me = (e2, t2) => {
|
|
53
53
|
const l2 = e2.scrollElement;
|
|
54
54
|
if (!l2)
|
|
55
55
|
return;
|
|
@@ -127,7 +127,7 @@ class we {
|
|
|
127
127
|
})(), this.range = null, this.setOptions = (e3) => {
|
|
128
128
|
Object.entries(e3).forEach(([t2, l2]) => {
|
|
129
129
|
void 0 === l2 && delete e3[t2];
|
|
130
|
-
}), this.options = { debug: false, initialOffset: 0, overscan: 1, paddingStart: 0, paddingEnd: 0, scrollPaddingStart: 0, scrollPaddingEnd: 0, horizontal: false, getItemKey: ge, rangeExtractor:
|
|
130
|
+
}), this.options = { debug: false, initialOffset: 0, overscan: 1, paddingStart: 0, paddingEnd: 0, scrollPaddingStart: 0, scrollPaddingEnd: 0, horizontal: false, getItemKey: ge, rangeExtractor: fe, onChange: () => {
|
|
131
131
|
}, measureElement: ye, initialRect: { width: 0, height: 0 }, scrollMargin: 0, gap: 0, indexAttribute: "data-index", initialMeasurementsCache: [], lanes: 1, isScrollingResetDelay: 150, ...e3 };
|
|
132
132
|
}, this.notify = (e3, t2) => {
|
|
133
133
|
var l2, n2;
|
|
@@ -274,8 +274,8 @@ function Se(e2) {
|
|
|
274
274
|
var a2;
|
|
275
275
|
g(l2), null == (a2 = e4.onChange) || a2.call(e4, t3, n3);
|
|
276
276
|
} }), t2._willUpdate(), g(l2);
|
|
277
|
-
}, { immediate: true }),
|
|
278
|
-
}(d(() => ({ observeElementRect:
|
|
277
|
+
}, { immediate: true }), f(n2), l2;
|
|
278
|
+
}(d(() => ({ observeElementRect: me, observeElementOffset: be, scrollToFn: xe, ...u(e2) })));
|
|
279
279
|
}
|
|
280
280
|
function Ce(e2, t2, l2) {
|
|
281
281
|
let n2 = s(null == l2 ? void 0 : l2.value), a2 = d(() => void 0 !== e2.value);
|
|
@@ -328,7 +328,7 @@ function Me() {
|
|
|
328
328
|
function De() {
|
|
329
329
|
let e2 = function() {
|
|
330
330
|
let e3 = Me();
|
|
331
|
-
return
|
|
331
|
+
return m(() => e3.dispose()), e3;
|
|
332
332
|
}();
|
|
333
333
|
return (t2) => {
|
|
334
334
|
e2.dispose(), e2.nextFrame(t2);
|
|
@@ -633,8 +633,8 @@ function gt(e2, t2 = []) {
|
|
|
633
633
|
e3 in l2 && delete l2[e3];
|
|
634
634
|
return l2;
|
|
635
635
|
}
|
|
636
|
-
var
|
|
637
|
-
let
|
|
636
|
+
var ft = ((e2) => (e2[e2.None = 1] = "None", e2[e2.Focusable = 2] = "Focusable", e2[e2.Hidden = 4] = "Hidden", e2))(ft || {});
|
|
637
|
+
let mt = S({ name: "Hidden", props: { as: { type: [Object, String], default: "div" }, features: { type: Number, default: 1 } }, setup: (e2, { slots: t2, attrs: l2 }) => () => {
|
|
638
638
|
var n2;
|
|
639
639
|
let { features: a2, ...o2 } = e2;
|
|
640
640
|
return st({ ourProps: { "aria-hidden": !(2 & ~a2) || (null != (n2 = o2["aria-hidden"]) ? n2 : void 0), hidden: !(4 & ~a2) || void 0, style: { position: "fixed", top: 1, left: 1, width: 1, height: 0, padding: 0, margin: -1, overflow: "hidden", clip: "rect(0, 0, 0, 0)", whiteSpace: "nowrap", borderWidth: "0", ...!(4 & ~a2) && !!(2 & ~a2) && { display: "none" } } }, theirProps: o2, slot: {}, attrs: l2, slots: t2, name: "Hidden" });
|
|
@@ -746,9 +746,9 @@ let Pt = Symbol("VirtualContext"), Rt = S({ name: "VirtualProvider", setup(e2, {
|
|
|
746
746
|
}
|
|
747
747
|
} }, a2.value.getVirtualItems().map((e3) => x(t2.default({ option: l2.virtual.value.options[e3.index], open: 0 === l2.comboboxState.value })[0], { key: `${r2.value}-${e3.index}`, "data-index": e3.index, "aria-setsize": l2.virtual.value.options.length, "aria-posinset": e3.index + 1, style: { position: "absolute", top: 0, left: 0, transform: `translateY(${e3.start}px)`, overflowAnchor: "none" } })))];
|
|
748
748
|
} }), Bt = S({ 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 }) {
|
|
749
|
-
let a2 = s(1), o2 = s(null), r2 = s(null), i2 = s(null), u2 = s(null), c2 = s({ static: false, hold: false }), g2 = s([]),
|
|
749
|
+
let a2 = s(1), o2 = s(null), r2 = s(null), i2 = s(null), u2 = s(null), c2 = s({ static: false, hold: false }), g2 = s([]), f2 = s(null), m2 = s(2), v2 = s(false);
|
|
750
750
|
function h2(e3 = (e4) => e4) {
|
|
751
|
-
let t3 = null !==
|
|
751
|
+
let t3 = null !== f2.value ? g2.value[f2.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) : Ke(l3, (e4) => _e(e4.dataRef.domRef)), a3 = t3 ? n3.indexOf(t3) : null;
|
|
752
752
|
return -1 === a3 && (a3 = null), { options: n3, activeOptionIndex: a3 };
|
|
753
753
|
}
|
|
754
754
|
let b2 = d(() => e2.multiple ? 1 : 0), x2 = d(() => e2.nullable), [S2, D2] = Ce(d(() => e2.modelValue), (e3) => n2("update:modelValue", e3), d(() => e2.defaultValue)), E2 = d(() => void 0 === S2.value ? je(b2.value, { 1: [], 0: void 0 }) : S2.value), T2 = null, I2 = null;
|
|
@@ -761,9 +761,9 @@ let Pt = Symbol("VirtualContext"), Rt = S({ name: "VirtualProvider", setup(e2, {
|
|
|
761
761
|
let j2 = d(() => {
|
|
762
762
|
});
|
|
763
763
|
p([j2], ([e3], [t3]) => {
|
|
764
|
-
if (P2.virtual.value && e3 && t3 && null !==
|
|
765
|
-
let l3 = e3.indexOf(t3[
|
|
766
|
-
|
|
764
|
+
if (P2.virtual.value && e3 && t3 && null !== f2.value) {
|
|
765
|
+
let l3 = e3.indexOf(t3[f2.value]);
|
|
766
|
+
f2.value = -1 !== l3 ? l3 : null;
|
|
767
767
|
}
|
|
768
768
|
});
|
|
769
769
|
let P2 = { comboboxState: a2, value: E2, mode: b2, compare(t3, l3) {
|
|
@@ -777,7 +777,7 @@ let Pt = Symbol("VirtualContext"), Rt = S({ name: "VirtualProvider", setup(e2, {
|
|
|
777
777
|
}, calculateIndex: (t3) => P2.virtual.value ? null === e2.by ? P2.virtual.value.options.indexOf(t3) : P2.virtual.value.options.findIndex((e3) => P2.compare(e3, t3)) : g2.value.findIndex((e3) => P2.compare(e3.dataRef.value, t3)), defaultValue: d(() => e2.defaultValue), nullable: x2, immediate: d(() => false), virtual: d(() => null), inputRef: r2, labelRef: o2, buttonRef: i2, optionsRef: u2, disabled: d(() => e2.disabled), options: g2, change(e3) {
|
|
778
778
|
D2(e3);
|
|
779
779
|
}, activeOptionIndex: d(() => {
|
|
780
|
-
if (v2.value && null ===
|
|
780
|
+
if (v2.value && null === f2.value && (P2.virtual.value ? P2.virtual.value.options.length > 0 : g2.value.length > 0)) {
|
|
781
781
|
if (P2.virtual.value) {
|
|
782
782
|
let e4 = P2.virtual.value.options.findIndex((e5) => {
|
|
783
783
|
var t3;
|
|
@@ -790,25 +790,25 @@ let Pt = Symbol("VirtualContext"), Rt = S({ name: "VirtualProvider", setup(e2, {
|
|
|
790
790
|
if (-1 !== e3)
|
|
791
791
|
return e3;
|
|
792
792
|
}
|
|
793
|
-
return
|
|
794
|
-
}), activationTrigger:
|
|
795
|
-
v2.value = false, !e2.disabled && 1 !== a2.value && (a2.value = 1,
|
|
793
|
+
return f2.value;
|
|
794
|
+
}), activationTrigger: m2, optionsPropsRef: c2, closeCombobox() {
|
|
795
|
+
v2.value = false, !e2.disabled && 1 !== a2.value && (a2.value = 1, f2.value = null);
|
|
796
796
|
}, openCombobox() {
|
|
797
797
|
if (v2.value = true, !e2.disabled && 0 !== a2.value) {
|
|
798
798
|
if (P2.value.value) {
|
|
799
799
|
let e3 = P2.calculateIndex(P2.value.value);
|
|
800
|
-
-1 !== e3 && (
|
|
800
|
+
-1 !== e3 && (f2.value = e3);
|
|
801
801
|
}
|
|
802
802
|
a2.value = 0;
|
|
803
803
|
}
|
|
804
804
|
}, setActivationTrigger(e3) {
|
|
805
|
-
|
|
805
|
+
m2.value = e3;
|
|
806
806
|
}, goToOption(t3, l3, n3) {
|
|
807
807
|
v2.value = false, null !== T2 && cancelAnimationFrame(T2), T2 = requestAnimationFrame(() => {
|
|
808
808
|
if (e2.disabled || u2.value && !c2.value.static && 1 === a2.value)
|
|
809
809
|
return;
|
|
810
810
|
if (P2.virtual.value)
|
|
811
|
-
return
|
|
811
|
+
return f2.value = t3 === St.Specific ? l3 : Ct({ focus: t3 }, { resolveItems: () => P2.virtual.value.options, resolveActiveIndex: () => {
|
|
812
812
|
var e3, t4;
|
|
813
813
|
return null != (t4 = null != (e3 = P2.activeOptionIndex.value) ? e3 : P2.virtual.value.options.findIndex((e4) => {
|
|
814
814
|
var t5;
|
|
@@ -816,14 +816,14 @@ let Pt = Symbol("VirtualContext"), Rt = S({ name: "VirtualProvider", setup(e2, {
|
|
|
816
816
|
})) ? t4 : null;
|
|
817
817
|
}, resolveDisabled: (e3) => P2.virtual.value.disabled(e3), resolveId() {
|
|
818
818
|
throw new Error("Function not implemented.");
|
|
819
|
-
} }), void (
|
|
819
|
+
} }), void (m2.value = null != n3 ? n3 : 2);
|
|
820
820
|
let o3 = h2();
|
|
821
821
|
if (null === o3.activeOptionIndex) {
|
|
822
822
|
let e3 = o3.options.findIndex((e4) => !e4.dataRef.disabled);
|
|
823
823
|
-1 !== e3 && (o3.activeOptionIndex = e3);
|
|
824
824
|
}
|
|
825
825
|
let r3 = t3 === St.Specific ? l3 : Ct({ focus: t3 }, { resolveItems: () => o3.options, resolveActiveIndex: () => o3.activeOptionIndex, resolveId: (e3) => e3.id, resolveDisabled: (e3) => e3.dataRef.disabled });
|
|
826
|
-
|
|
826
|
+
f2.value = r3, m2.value = null != n3 ? n3 : 2, g2.value = o3.options;
|
|
827
827
|
});
|
|
828
828
|
}, selectOption(e3) {
|
|
829
829
|
let t3 = g2.value.find((t4) => t4.id === e3);
|
|
@@ -847,9 +847,9 @@ let Pt = Symbol("VirtualContext"), Rt = S({ name: "VirtualProvider", setup(e2, {
|
|
|
847
847
|
return void g2.value.push(l3);
|
|
848
848
|
I2 && cancelAnimationFrame(I2);
|
|
849
849
|
let n3 = h2((e4) => (e4.push(l3), e4));
|
|
850
|
-
null ===
|
|
850
|
+
null === f2.value && P2.isSelected(t3.value.value) && (n3.activeOptionIndex = n3.options.indexOf(l3)), g2.value = n3.options, f2.value = n3.activeOptionIndex, m2.value = 2, n3.options.some((e4) => !_e(e4.dataRef.domRef)) && (I2 = requestAnimationFrame(() => {
|
|
851
851
|
let e4 = h2();
|
|
852
|
-
g2.value = e4.options,
|
|
852
|
+
g2.value = e4.options, f2.value = e4.activeOptionIndex;
|
|
853
853
|
}));
|
|
854
854
|
}, unregisterOption(e3, t3) {
|
|
855
855
|
if (null !== T2 && cancelAnimationFrame(T2), t3 && (v2.value = true), P2.virtual.value)
|
|
@@ -858,8 +858,8 @@ let Pt = Symbol("VirtualContext"), Rt = S({ name: "VirtualProvider", setup(e2, {
|
|
|
858
858
|
let l4 = t4.findIndex((t5) => t5.id === e3);
|
|
859
859
|
return -1 !== l4 && t4.splice(l4, 1), t4;
|
|
860
860
|
});
|
|
861
|
-
g2.value = l3.options,
|
|
862
|
-
}, isSelected: (e3) => je(b2.value, { 0: () => P2.compare(M(P2.value.value), M(e3)), 1: () => M(P2.value.value).some((t3) => P2.compare(M(t3), M(e3))) }), isActive: (e3) =>
|
|
861
|
+
g2.value = l3.options, f2.value = l3.activeOptionIndex, m2.value = 2;
|
|
862
|
+
}, isSelected: (e3) => je(b2.value, { 0: () => P2.compare(M(P2.value.value), M(e3)), 1: () => M(P2.value.value).some((t3) => P2.compare(M(t3), M(e3))) }), isActive: (e3) => f2.value === P2.calculateIndex(e3) };
|
|
863
863
|
et([r2, i2, u2], () => P2.closeCombobox(), d(() => 0 === a2.value)), C(_t, P2), yt(d(() => je(a2.value, { 0: ht.Open, 1: ht.Closed })));
|
|
864
864
|
let R2 = d(() => {
|
|
865
865
|
var e3;
|
|
@@ -879,7 +879,7 @@ let Pt = Symbol("VirtualContext"), Rt = S({ name: "VirtualProvider", setup(e2, {
|
|
|
879
879
|
}), () => {
|
|
880
880
|
var n3, o3, r3;
|
|
881
881
|
let { name: i3, disabled: s2, form: d2, ...u3 } = e2, c3 = { open: 0 === a2.value, disabled: s2, activeIndex: P2.activeOptionIndex.value, activeOption: null === P2.activeOptionIndex.value ? null : P2.virtual.value ? P2.virtual.value.options[null != (n3 = P2.activeOptionIndex.value) ? n3 : 0] : null != (r3 = null == (o3 = P2.options.value[P2.activeOptionIndex.value]) ? void 0 : o3.dataRef.value) ? r3 : null, value: E2.value };
|
|
882
|
-
return w(k, [...null != i3 && null != E2.value ? Ot({ [i3]: E2.value }).map(([e3, t3]) => w(
|
|
882
|
+
return w(k, [...null != i3 && null != E2.value ? Ot({ [i3]: E2.value }).map(([e3, t3]) => w(mt, pt({ features: ft.Hidden, key: e3, as: "input", type: "hidden", hidden: true, readOnly: true, form: d2, disabled: s2, name: e3, value: t3 }))) : [], st({ theirProps: { ...l2, ...gt(u3, ["by", "defaultValue", "immediate", "modelValue", "multiple", "nullable", "onUpdate:modelValue", "virtual"]) }, ourProps: {}, slot: c3, slots: t2, attrs: l2, name: "Combobox" })]);
|
|
883
883
|
};
|
|
884
884
|
} }), At = S({ name: "ComboboxLabel", props: { as: { type: [Object, String], default: "label" }, id: { type: String, default: null } }, setup(e2, { attrs: t2, slots: l2 }) {
|
|
885
885
|
var n2;
|
|
@@ -940,13 +940,13 @@ let Pt = Symbol("VirtualContext"), Rt = S({ name: "VirtualProvider", setup(e2, {
|
|
|
940
940
|
e3 && (e3.scrollTop = 0), i2.goToOption(St.Nothing);
|
|
941
941
|
}
|
|
942
942
|
a2({ el: i2.inputRef, $el: i2.inputRef });
|
|
943
|
-
let
|
|
943
|
+
let f2 = d(() => {
|
|
944
944
|
var t3;
|
|
945
945
|
let l3 = i2.value.value;
|
|
946
946
|
return _e(i2.inputRef) ? void 0 !== e2.displayValue && void 0 !== l3 ? null != (t3 = e2.displayValue(l3)) ? t3 : "" : "string" == typeof l3 ? l3 : "" : "";
|
|
947
947
|
});
|
|
948
948
|
y(() => {
|
|
949
|
-
p([
|
|
949
|
+
p([f2, i2.comboboxState, u2], ([e3, t3], [l3, n3]) => {
|
|
950
950
|
if (c2.value)
|
|
951
951
|
return;
|
|
952
952
|
let a3 = _e(i2.inputRef);
|
|
@@ -969,13 +969,13 @@ let Pt = Symbol("VirtualContext"), Rt = S({ name: "VirtualProvider", setup(e2, {
|
|
|
969
969
|
}
|
|
970
970
|
});
|
|
971
971
|
});
|
|
972
|
-
let
|
|
972
|
+
let m2 = s(false);
|
|
973
973
|
function v2() {
|
|
974
|
-
|
|
974
|
+
m2.value = true;
|
|
975
975
|
}
|
|
976
976
|
function b2() {
|
|
977
977
|
Me().nextFrame(() => {
|
|
978
|
-
|
|
978
|
+
m2.value = false;
|
|
979
979
|
});
|
|
980
980
|
}
|
|
981
981
|
let x2 = De();
|
|
@@ -984,7 +984,7 @@ let Pt = Symbol("VirtualContext"), Rt = S({ name: "VirtualProvider", setup(e2, {
|
|
|
984
984
|
c2.value = false;
|
|
985
985
|
}), e3.key) {
|
|
986
986
|
case xt.Enter:
|
|
987
|
-
if (c2.value = false, 0 !== i2.comboboxState.value ||
|
|
987
|
+
if (c2.value = false, 0 !== i2.comboboxState.value || m2.value)
|
|
988
988
|
return;
|
|
989
989
|
if (e3.preventDefault(), e3.stopPropagation(), null === i2.activeOptionIndex.value)
|
|
990
990
|
return void i2.closeCombobox();
|
|
@@ -1043,8 +1043,8 @@ let Pt = Symbol("VirtualContext"), Rt = S({ name: "VirtualProvider", setup(e2, {
|
|
|
1043
1043
|
});
|
|
1044
1044
|
return () => {
|
|
1045
1045
|
var t3, a3, o3, s2, d2, u3, c3;
|
|
1046
|
-
let p2 = { open: 0 === i2.comboboxState.value }, { displayValue: g3, onChange:
|
|
1047
|
-
return st({ ourProps: h2, theirProps:
|
|
1046
|
+
let p2 = { open: 0 === i2.comboboxState.value }, { displayValue: g3, onChange: f3, ...m3 } = e2, h2 = { "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 != (u3 = null == (s2 = _e(i2.labelRef)) ? void 0 : s2.id) ? u3 : null == (d2 = _e(i2.buttonRef)) ? void 0 : d2.id, "aria-autocomplete": "list", id: r2, onCompositionstart: v2, onCompositionend: b2, onKeydown: w2, onInput: k2, onFocus: C2, onBlur: S2, role: "combobox", type: null != (c3 = l2.type) ? c3 : "text", tabIndex: 0, ref: i2.inputRef, defaultValue: O2.value, disabled: true === i2.disabled.value || void 0 };
|
|
1047
|
+
return st({ ourProps: h2, theirProps: m3, slot: p2, attrs: l2, slots: n2, features: rt.RenderStrategy | rt.Static, name: "ComboboxInput" });
|
|
1048
1048
|
};
|
|
1049
1049
|
} }), Nt = S({ 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 }) {
|
|
1050
1050
|
let a2 = jt("ComboboxOptions"), o2 = `headlessui-combobox-options-${Ie()}`;
|
|
@@ -1071,7 +1071,7 @@ let Pt = Symbol("VirtualContext"), Rt = S({ name: "VirtualProvider", setup(e2, {
|
|
|
1071
1071
|
var t3;
|
|
1072
1072
|
return a2.virtual.value ? a2.activeOptionIndex.value === a2.calculateIndex(e2.value) : null !== a2.activeOptionIndex.value && (null == (t3 = a2.options.value[a2.activeOptionIndex.value]) ? void 0 : t3.id) === o2;
|
|
1073
1073
|
}), c2 = d(() => a2.isSelected(e2.value)), p2 = v(Pt, null), g2 = d(() => ({ disabled: e2.disabled, value: e2.value, domRef: r2, order: d(() => e2.order) }));
|
|
1074
|
-
function
|
|
1074
|
+
function f2(e3) {
|
|
1075
1075
|
e3.preventDefault(), e3.button === wt.Left && (i2.value || (a2.selectOption(o2), Ze() || requestAnimationFrame(() => {
|
|
1076
1076
|
var e4;
|
|
1077
1077
|
return null == (e4 = _e(a2.inputRef)) ? void 0 : e4.focus({ preventScroll: true });
|
|
@@ -1084,7 +1084,7 @@ let Pt = Symbol("VirtualContext"), Rt = S({ name: "VirtualProvider", setup(e2, {
|
|
|
1084
1084
|
let l3 = a2.calculateIndex(e2.value);
|
|
1085
1085
|
a2.goToOption(St.Specific, l3);
|
|
1086
1086
|
}
|
|
1087
|
-
y(() => a2.registerOption(o2, g2)),
|
|
1087
|
+
y(() => a2.registerOption(o2, g2)), m(() => a2.unregisterOption(o2, u2.value)), b(() => {
|
|
1088
1088
|
let e3 = _e(r2);
|
|
1089
1089
|
e3 && (null == p2 || p2.value.measureElement(e3));
|
|
1090
1090
|
}), b(() => {
|
|
@@ -1110,7 +1110,7 @@ let Pt = Symbol("VirtualContext"), Rt = S({ name: "VirtualProvider", setup(e2, {
|
|
|
1110
1110
|
}
|
|
1111
1111
|
return () => {
|
|
1112
1112
|
let { disabled: n3 } = e2, a3 = { active: u2.value, selected: c2.value, disabled: n3 };
|
|
1113
|
-
return st({ ourProps: { id: o2, ref: r2, role: "option", tabIndex: true === n3 ? void 0 : -1, "aria-disabled": true === n3 || void 0, "aria-selected": c2.value, disabled: void 0, onMousedown:
|
|
1113
|
+
return st({ ourProps: { id: o2, ref: r2, role: "option", tabIndex: true === n3 ? void 0 : -1, "aria-disabled": true === n3 || void 0, "aria-selected": c2.value, disabled: void 0, onMousedown: f2, onFocus: x2, onPointerenter: k2, onMouseenter: k2, onPointermove: S2, onMousemove: S2, onPointerleave: C2, onMouseleave: C2 }, theirProps: gt(e2, ["order", "value"]), slot: a3, attrs: l2, slots: t2, name: "ComboboxOption" });
|
|
1114
1114
|
};
|
|
1115
1115
|
} });
|
|
1116
1116
|
function $t(e2, t2, l2, n2) {
|
|
@@ -1136,7 +1136,7 @@ let qt = Object.assign(S({ name: "FocusTrap", props: { as: { type: [Object, Stri
|
|
|
1136
1136
|
let a2 = s(null);
|
|
1137
1137
|
n2({ el: a2, $el: a2 });
|
|
1138
1138
|
let o2 = d(() => Ae(a2)), r2 = s(false);
|
|
1139
|
-
y(() => r2.value = true),
|
|
1139
|
+
y(() => r2.value = true), m(() => r2.value = false), function({ ownerDocument: e3 }, t3) {
|
|
1140
1140
|
let l3 = function(e4) {
|
|
1141
1141
|
let t4 = s(kt.slice());
|
|
1142
1142
|
return p([e4], ([e5], [l4]) => {
|
|
@@ -1153,13 +1153,13 @@ let qt = Object.assign(S({ name: "FocusTrap", props: { as: { type: [Object, Stri
|
|
|
1153
1153
|
var n3, a3;
|
|
1154
1154
|
t3.value || (null == (n3 = e3.value) ? void 0 : n3.activeElement) === (null == (a3 = e3.value) ? void 0 : a3.body) && Ue(l3());
|
|
1155
1155
|
}, { flush: "post" });
|
|
1156
|
-
}),
|
|
1156
|
+
}), m(() => {
|
|
1157
1157
|
t3.value && Ue(l3());
|
|
1158
1158
|
});
|
|
1159
1159
|
}({ ownerDocument: o2 }, d(() => r2.value && Boolean(16 & e2.features)));
|
|
1160
1160
|
let i2 = function({ ownerDocument: e3, container: t3, initialFocus: l3 }, n3) {
|
|
1161
1161
|
let a3 = s(null), o3 = s(false);
|
|
1162
|
-
return y(() => o3.value = true),
|
|
1162
|
+
return y(() => o3.value = true), m(() => o3.value = false), y(() => {
|
|
1163
1163
|
p([t3, l3, n3], (r3, i3) => {
|
|
1164
1164
|
if (r3.every((e4, t4) => (null == i3 ? void 0 : i3[t4]) === e4) || !n3.value)
|
|
1165
1165
|
return;
|
|
@@ -1208,7 +1208,7 @@ let qt = Object.assign(S({ name: "FocusTrap", props: { as: { type: [Object, Stri
|
|
|
1208
1208
|
} });
|
|
1209
1209
|
}
|
|
1210
1210
|
let g2 = s(false);
|
|
1211
|
-
function
|
|
1211
|
+
function f2(e3) {
|
|
1212
1212
|
"Tab" === e3.key && (g2.value = true, requestAnimationFrame(() => {
|
|
1213
1213
|
g2.value = false;
|
|
1214
1214
|
}));
|
|
@@ -1222,8 +1222,8 @@ let qt = Object.assign(S({ name: "FocusTrap", props: { as: { type: [Object, Stri
|
|
|
1222
1222
|
n3 instanceof HTMLElement && "true" !== n3.dataset.headlessuiFocusGuard && (Ut(l3, n3) || (g2.value ? Je(_e(a2), je(u2.value, { [Vt.Forwards]: () => Fe.Next, [Vt.Backwards]: () => Fe.Previous }) | Fe.WrapAround, { relativeTo: t3.target }) : t3.target instanceof HTMLElement && Ue(t3.target)));
|
|
1223
1223
|
}
|
|
1224
1224
|
return () => {
|
|
1225
|
-
let n3 = { ref: a2, onKeydown:
|
|
1226
|
-
return w(k, [Boolean(4 & o3) && w(
|
|
1225
|
+
let n3 = { ref: a2, onKeydown: f2, onFocusout: v2 }, { features: o3, initialFocus: r3, containers: i3, ...s2 } = e2;
|
|
1226
|
+
return w(k, [Boolean(4 & o3) && w(mt, { as: "button", type: "button", "data-headlessui-focus-guard": true, onFocus: c2, features: ft.Focusable }), st({ ourProps: n3, theirProps: { ...t2, ...s2 }, slot: {}, attrs: t2, slots: l2, name: "FocusTrap" }), Boolean(4 & o3) && w(mt, { as: "button", type: "button", "data-headlessui-focus-guard": true, onFocus: c2, features: ft.Focusable })]);
|
|
1227
1227
|
};
|
|
1228
1228
|
} }), { features: Yt });
|
|
1229
1229
|
function Ut(e2, t2) {
|
|
@@ -1323,7 +1323,7 @@ let Jt = function(e2, t2) {
|
|
|
1323
1323
|
function Gt(e2, t2, l2) {
|
|
1324
1324
|
let n2 = function(e3) {
|
|
1325
1325
|
let t3 = c(e3.getSnapshot());
|
|
1326
|
-
return
|
|
1326
|
+
return m(e3.subscribe(() => {
|
|
1327
1327
|
t3.value = e3.getSnapshot();
|
|
1328
1328
|
})), t3;
|
|
1329
1329
|
}(Jt), a2 = d(() => {
|
|
@@ -1391,7 +1391,7 @@ function ol({ type: e2, enabled: t2, element: l2, onUpdate: n2 }) {
|
|
|
1391
1391
|
p(t2, (t3, n3) => {
|
|
1392
1392
|
t3 ? o2(0, e2, l2) : true === n3 && o2(1, e2, l2);
|
|
1393
1393
|
}, { immediate: true, flush: "sync" });
|
|
1394
|
-
}),
|
|
1394
|
+
}), m(() => {
|
|
1395
1395
|
t2.value && o2(1, e2, l2);
|
|
1396
1396
|
}), C(nl, o2);
|
|
1397
1397
|
}
|
|
@@ -1413,7 +1413,7 @@ S({ name: "Description", props: { as: { type: [Object, String], default: "p" },
|
|
|
1413
1413
|
throw new Error("Missing parent");
|
|
1414
1414
|
return e3;
|
|
1415
1415
|
}();
|
|
1416
|
-
return y(() =>
|
|
1416
|
+
return y(() => m(o2.register(a2))), () => {
|
|
1417
1417
|
let { name: n3 = "Description", slot: r2 = s({}), props: i2 = {} } = o2, { ...d2 } = e2, c2 = { ...Object.entries(i2).reduce((e3, [t3, l3]) => Object.assign(e3, { [t3]: u(l3) }), {}), id: a2 };
|
|
1418
1418
|
return st({ ourProps: c2, theirProps: d2, slot: r2.value, attrs: t2, slots: l2, name: n3 });
|
|
1419
1419
|
};
|
|
@@ -1447,13 +1447,13 @@ let ul = S({ name: "Portal", props: { as: { type: [Object, String], default: "di
|
|
|
1447
1447
|
}), b(() => {
|
|
1448
1448
|
o2 || null != r2 && (i2.value = r2.resolveTarget());
|
|
1449
1449
|
});
|
|
1450
|
-
let c2 = v(cl, null), g2 = false,
|
|
1450
|
+
let c2 = v(cl, null), g2 = false, f2 = D();
|
|
1451
1451
|
return p(n2, () => {
|
|
1452
1452
|
if (g2 || !c2)
|
|
1453
1453
|
return;
|
|
1454
1454
|
let e3 = _e(n2);
|
|
1455
|
-
e3 && (
|
|
1456
|
-
}),
|
|
1455
|
+
e3 && (m(c2.register(e3), f2), g2 = true);
|
|
1456
|
+
}), m(() => {
|
|
1457
1457
|
var e3, t3;
|
|
1458
1458
|
let l3 = null == (e3 = a2.value) ? void 0 : e3.getElementById("headlessui-portal-root");
|
|
1459
1459
|
!l3 || i2.value !== l3 || dl(i2.value, (e4) => e4 - 1) || i2.value.children.length > 0 || null == (t3 = i2.value.parentElement) || t3.removeChild(i2.value);
|
|
@@ -1471,10 +1471,10 @@ let pl = Symbol("PortalGroupContext"), gl = S({ name: "PortalGroup", props: { as
|
|
|
1471
1471
|
return st({ theirProps: a2, ourProps: {}, slot: {}, attrs: t2, slots: l2, name: "PortalGroup" });
|
|
1472
1472
|
};
|
|
1473
1473
|
} });
|
|
1474
|
-
var
|
|
1475
|
-
let
|
|
1474
|
+
var fl = ((e2) => (e2[e2.Open = 0] = "Open", e2[e2.Closed = 1] = "Closed", e2))(fl || {});
|
|
1475
|
+
let ml = Symbol("DialogContext");
|
|
1476
1476
|
function vl(e2) {
|
|
1477
|
-
let t2 = v(
|
|
1477
|
+
let t2 = v(ml, null);
|
|
1478
1478
|
if (null === t2) {
|
|
1479
1479
|
let t3 = new Error(`<${e2} /> is missing a parent <Dialog /> component.`);
|
|
1480
1480
|
throw Error.captureStackTrace && Error.captureStackTrace(t3, vl), t3;
|
|
@@ -1487,12 +1487,12 @@ let hl = "DC8F892D-2EBD-447C-A4C8-A03058436FF4", bl = S({ name: "Dialog", inheri
|
|
|
1487
1487
|
y(() => {
|
|
1488
1488
|
u2.value = true;
|
|
1489
1489
|
});
|
|
1490
|
-
let c2 = false, p2 = d(() => "dialog" === e2.role || "alertdialog" === e2.role ? e2.role : (c2 || (c2 = true, console.warn(`Invalid role [${p2}] passed to <Dialog />. Only \`dialog\` and and \`alertdialog\` are supported. Using \`dialog\` instead.`)), "dialog")), g2 = s(0),
|
|
1491
|
-
if (a2({ el: x2, $el: x2 }), e2.open === hl && null ===
|
|
1490
|
+
let c2 = false, p2 = d(() => "dialog" === e2.role || "alertdialog" === e2.role ? e2.role : (c2 || (c2 = true, console.warn(`Invalid role [${p2}] passed to <Dialog />. Only \`dialog\` and and \`alertdialog\` are supported. Using \`dialog\` instead.`)), "dialog")), g2 = s(0), f2 = bt(), m2 = d(() => e2.open === hl && null !== f2 ? (f2.value & ht.Open) === ht.Open : e2.open), x2 = s(null), k2 = d(() => Ae(x2));
|
|
1491
|
+
if (a2({ el: x2, $el: x2 }), e2.open === hl && null === f2)
|
|
1492
1492
|
throw new Error("You forgot to provide an `open` prop to the `Dialog`.");
|
|
1493
|
-
if ("boolean" != typeof
|
|
1494
|
-
throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${
|
|
1495
|
-
let O2 = d(() => u2.value &&
|
|
1493
|
+
if ("boolean" != typeof m2.value)
|
|
1494
|
+
throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${m2.value === hl ? void 0 : e2.open}`);
|
|
1495
|
+
let O2 = d(() => u2.value && m2.value ? 0 : 1), M2 = d(() => 0 === O2.value), D2 = d(() => g2.value > 1), E2 = null !== v(ml, null), [T2, I2] = function() {
|
|
1496
1496
|
let e3 = v(cl, null), t3 = s([]);
|
|
1497
1497
|
function l3(l4) {
|
|
1498
1498
|
let n4 = t3.value.indexOf(l4);
|
|
@@ -1519,11 +1519,11 @@ let hl = "DC8F892D-2EBD-447C-A4C8-A03058436FF4", bl = S({ name: "Dialog", inheri
|
|
|
1519
1519
|
e4 !== document.body && e4 !== document.head && e4 instanceof HTMLElement && "headlessui-portal-root" !== e4.id && (e4.contains(_e(n3)) || e4.contains(null == (r3 = null == (o4 = _e(n3)) ? void 0 : o4.getRootNode()) ? void 0 : r3.host) || i3.some((t4) => e4.contains(t4)) || i3.push(e4));
|
|
1520
1520
|
return i3;
|
|
1521
1521
|
}
|
|
1522
|
-
return { resolveContainers: o3, contains: (e4) => o3().some((t4) => t4.contains(e4)), mainTreeNodeRef: n3, MainTreeNode: () => null != l3 ? null : w(
|
|
1522
|
+
return { resolveContainers: o3, contains: (e4) => o3().some((t4) => t4.contains(e4)), mainTreeNodeRef: n3, MainTreeNode: () => null != l3 ? null : w(mt, { features: ft.Hidden, ref: n3 }) };
|
|
1523
1523
|
}({ portals: T2, defaultContainers: [d(() => {
|
|
1524
1524
|
var e3;
|
|
1525
1525
|
return null != (e3 = V2.panelRef.value) ? e3 : x2.value;
|
|
1526
|
-
})] }), R2 = d(() => D2.value ? "parent" : "leaf"), B2 = d(() => null !==
|
|
1526
|
+
})] }), R2 = d(() => D2.value ? "parent" : "leaf"), B2 = d(() => null !== f2 && (f2.value & ht.Closing) === ht.Closing), A2 = d(() => !E2 && !B2.value && M2.value), L2 = d(() => {
|
|
1527
1527
|
var e3, t3, l3;
|
|
1528
1528
|
return null != (l3 = Array.from(null != (t3 = null == (e3 = k2.value) ? void 0 : e3.querySelectorAll("body > *")) ? t3 : []).find((e4) => "headlessui-portal-root" !== e4.id && (e4.contains(_e(j2)) && e4 instanceof HTMLElement))) ? l3 : null;
|
|
1529
1529
|
});
|
|
@@ -1536,12 +1536,12 @@ let hl = "DC8F892D-2EBD-447C-A4C8-A03058436FF4", bl = S({ name: "Dialog", inheri
|
|
|
1536
1536
|
if ("Dialog" === t3)
|
|
1537
1537
|
return je(e3, { [al.Add]: () => g2.value += 1, [al.Remove]: () => g2.value -= 1 });
|
|
1538
1538
|
} });
|
|
1539
|
-
let z2 = il({ name: "DialogDescription", slot: d(() => ({ open:
|
|
1539
|
+
let z2 = il({ name: "DialogDescription", slot: d(() => ({ open: m2.value })) }), $2 = s(null), V2 = { titleId: $2, panelRef: s(null), dialogState: O2, setTitleId(e3) {
|
|
1540
1540
|
$2.value !== e3 && ($2.value = e3);
|
|
1541
1541
|
}, close() {
|
|
1542
1542
|
t2("close", false);
|
|
1543
1543
|
} };
|
|
1544
|
-
C(
|
|
1544
|
+
C(ml, V2);
|
|
1545
1545
|
let H2 = d(() => !(!M2.value || D2.value));
|
|
1546
1546
|
et(_2, (e3, t3) => {
|
|
1547
1547
|
e3.preventDefault(), V2.close(), h(() => null == t3 ? void 0 : t3.focus());
|
|
@@ -1607,7 +1607,7 @@ let yl = S({ name: "DialogPanel", props: { as: { type: [Object, String], default
|
|
|
1607
1607
|
var n2;
|
|
1608
1608
|
let a2 = null != (n2 = e2.id) ? n2 : `headlessui-dialog-title-${Ie()}`, o2 = vl("DialogTitle");
|
|
1609
1609
|
return y(() => {
|
|
1610
|
-
o2.setTitleId(a2),
|
|
1610
|
+
o2.setTitleId(a2), m(() => o2.setTitleId(null));
|
|
1611
1611
|
}), () => {
|
|
1612
1612
|
let { ...n3 } = e2;
|
|
1613
1613
|
return st({ ourProps: { id: a2 }, theirProps: n3, slot: { open: 0 === o2.dialogState.value }, attrs: t2, slots: l2, name: "DialogTitle" });
|
|
@@ -1642,7 +1642,7 @@ let Ol = S({ name: "Disclosure", props: { as: { type: [Object, String], default:
|
|
|
1642
1642
|
let a2 = Sl("DisclosureButton"), o2 = v(Cl, null), r2 = d(() => null !== o2 && o2.value === a2.panelId.value);
|
|
1643
1643
|
y(() => {
|
|
1644
1644
|
r2.value || null !== e2.id && (a2.buttonId.value = e2.id);
|
|
1645
|
-
}),
|
|
1645
|
+
}), m(() => {
|
|
1646
1646
|
r2.value || (a2.buttonId.value = null);
|
|
1647
1647
|
});
|
|
1648
1648
|
let i2 = s(null);
|
|
@@ -1683,7 +1683,7 @@ let Ol = S({ name: "Disclosure", props: { as: { type: [Object, String], default:
|
|
|
1683
1683
|
let a2 = Sl("DisclosurePanel");
|
|
1684
1684
|
y(() => {
|
|
1685
1685
|
null !== e2.id && (a2.panelId.value = e2.id);
|
|
1686
|
-
}),
|
|
1686
|
+
}), m(() => {
|
|
1687
1687
|
a2.panelId.value = null;
|
|
1688
1688
|
}), n2({ el: a2.panel, $el: a2.panel }), C(Cl, a2.panelId);
|
|
1689
1689
|
let o2 = bt(), r2 = d(() => null !== o2 ? (o2.value & ht.Open) === ht.Open : 0 === a2.disclosureState.value);
|
|
@@ -1887,12 +1887,12 @@ let Bl = S({ name: "Menu", props: { as: { type: [Object, String], default: "temp
|
|
|
1887
1887
|
return t3.preventDefault();
|
|
1888
1888
|
r2.closeMenu(), Ye(_e(r2.buttonRef));
|
|
1889
1889
|
}
|
|
1890
|
-
function
|
|
1890
|
+
function f2() {
|
|
1891
1891
|
if (e2.disabled)
|
|
1892
1892
|
return r2.goToItem(St.Nothing);
|
|
1893
1893
|
r2.goToItem(St.Specific, o2);
|
|
1894
1894
|
}
|
|
1895
|
-
y(() => r2.registerItem(o2, p2)),
|
|
1895
|
+
y(() => r2.registerItem(o2, p2)), m(() => r2.unregisterItem(o2)), b(() => {
|
|
1896
1896
|
0 === r2.menuState.value && u2.value && 0 !== r2.activationTrigger.value && h(() => {
|
|
1897
1897
|
var e3, t3;
|
|
1898
1898
|
return null == (t3 = null == (e3 = _e(i2)) ? void 0 : e3.scrollIntoView) ? void 0 : t3.call(e3, { block: "nearest" });
|
|
@@ -1910,7 +1910,7 @@ let Bl = S({ name: "Menu", props: { as: { type: [Object, String], default: "temp
|
|
|
1910
1910
|
}
|
|
1911
1911
|
return () => {
|
|
1912
1912
|
let { disabled: n3, ...a3 } = e2, s2 = { active: u2.value, disabled: n3, close: r2.closeMenu };
|
|
1913
|
-
return st({ ourProps: { id: o2, ref: i2, role: "menuitem", tabIndex: true === n3 ? void 0 : -1, "aria-disabled": true === n3 || void 0, onClick: g2, onFocus:
|
|
1913
|
+
return st({ ourProps: { id: o2, ref: i2, role: "menuitem", tabIndex: true === n3 ? void 0 : -1, "aria-disabled": true === n3 || void 0, onClick: g2, onFocus: f2, onPointerenter: x2, onMouseenter: x2, onPointermove: w2, onMousemove: w2, onPointerleave: k2, onMouseleave: k2 }, theirProps: { ...l2, ...a3 }, slot: s2, attrs: l2, slots: t2, name: "MenuItem" });
|
|
1914
1914
|
};
|
|
1915
1915
|
} }), Nl = Symbol("LabelContext");
|
|
1916
1916
|
function zl() {
|
|
@@ -1924,7 +1924,7 @@ function zl() {
|
|
|
1924
1924
|
let $l = S({ name: "Label", props: { as: { type: [Object, String], default: "label" }, passive: { type: [Boolean], default: false }, id: { type: String, default: null } }, setup(e2, { slots: t2, attrs: l2 }) {
|
|
1925
1925
|
var n2;
|
|
1926
1926
|
let a2 = null != (n2 = e2.id) ? n2 : `headlessui-label-${Ie()}`, o2 = zl();
|
|
1927
|
-
return y(() =>
|
|
1927
|
+
return y(() => m(o2.register(a2))), () => {
|
|
1928
1928
|
let { name: n3 = "Label", slot: r2 = {}, props: i2 = {} } = o2, { passive: s2, ...d2 } = e2, c2 = { ...Object.entries(i2).reduce((e3, [t3, l3]) => Object.assign(e3, { [t3]: u(l3) }), {}), id: a2 };
|
|
1929
1929
|
return s2 && (delete c2.onClick, delete c2.htmlFor, delete d2.onClick), st({ ourProps: c2, theirProps: d2, slot: r2, attrs: l2, slots: t2, name: n3 });
|
|
1930
1930
|
};
|
|
@@ -1950,7 +1950,7 @@ let $l = S({ name: "Label", props: { as: { type: [Object, String], default: "lab
|
|
|
1950
1950
|
function g2() {
|
|
1951
1951
|
c2(!u2.value);
|
|
1952
1952
|
}
|
|
1953
|
-
let
|
|
1953
|
+
let f2 = s(null), m2 = null === i2 ? f2 : i2.switchRef, h2 = lt(d(() => ({ as: e2.as, type: l2.type })), m2);
|
|
1954
1954
|
function b2(e3) {
|
|
1955
1955
|
e3.preventDefault(), g2();
|
|
1956
1956
|
}
|
|
@@ -1969,10 +1969,10 @@ let $l = S({ name: "Label", props: { as: { type: [Object, String], default: "lab
|
|
|
1969
1969
|
function S2(e3) {
|
|
1970
1970
|
e3.preventDefault();
|
|
1971
1971
|
}
|
|
1972
|
-
a2({ el:
|
|
1972
|
+
a2({ el: m2, $el: m2 });
|
|
1973
1973
|
let C2 = d(() => {
|
|
1974
1974
|
var e3, t3;
|
|
1975
|
-
return null == (t3 = null == (e3 = _e(
|
|
1975
|
+
return null == (t3 = null == (e3 = _e(m2)) ? void 0 : e3.closest) ? void 0 : t3.call(e3, "form");
|
|
1976
1976
|
});
|
|
1977
1977
|
return y(() => {
|
|
1978
1978
|
p([C2], () => {
|
|
@@ -1986,8 +1986,8 @@ let $l = S({ name: "Label", props: { as: { type: [Object, String], default: "lab
|
|
|
1986
1986
|
}
|
|
1987
1987
|
}, { immediate: true });
|
|
1988
1988
|
}), () => {
|
|
1989
|
-
let { name: t3, value: a3, form: o3, tabIndex: s2, ...d2 } = e2, c3 = { checked: u2.value }, p2 = { id: r2, ref:
|
|
1990
|
-
return w(k, [null != t3 && null != u2.value ? w(
|
|
1989
|
+
let { name: t3, value: a3, form: o3, tabIndex: s2, ...d2 } = e2, c3 = { checked: u2.value }, p2 = { id: r2, ref: m2, role: "switch", type: h2.value, tabIndex: -1 === s2 ? 0 : s2, "aria-checked": u2.value, "aria-labelledby": null == i2 ? void 0 : i2.labelledby.value, "aria-describedby": null == i2 ? void 0 : i2.describedby.value, onClick: b2, onKeyup: x2, onKeypress: S2 };
|
|
1990
|
+
return w(k, [null != t3 && null != u2.value ? w(mt, pt({ features: ft.Hidden, as: "input", type: "checkbox", hidden: true, readOnly: true, checked: u2.value, form: o3, disabled: d2.disabled, name: t3, value: a3 })) : null, st({ ourProps: p2, theirProps: { ...l2, ...gt(d2, ["modelValue", "defaultChecked"]) }, slot: c3, attrs: l2, slots: n2, name: "Switch" })]);
|
|
1991
1991
|
};
|
|
1992
1992
|
} }), ql = $l;
|
|
1993
1993
|
function Ul(e2, ...t2) {
|
|
@@ -2038,7 +2038,7 @@ function tn(e2) {
|
|
|
2038
2038
|
t2.value[o2].state = "hidden";
|
|
2039
2039
|
} }), !en(t2) && l2.value && (null == e2 || e2()));
|
|
2040
2040
|
}
|
|
2041
|
-
return y(() => l2.value = true),
|
|
2041
|
+
return y(() => l2.value = true), m(() => l2.value = false), { children: t2, register: function(e3) {
|
|
2042
2042
|
let l3 = t2.value.find(({ id: t3 }) => t3 === e3);
|
|
2043
2043
|
return l3 ? "visible" !== l3.state && (l3.state = "visible") : t2.value.push({ id: e3, state: "visible" }), () => n2(e3, it.Unmount);
|
|
2044
2044
|
}, unregister: n2 };
|
|
@@ -2059,8 +2059,8 @@ let ln = rt.RenderStrategy, nn = S({ props: { as: { type: [Object, String], defa
|
|
|
2059
2059
|
}
|
|
2060
2060
|
if (null === v(Zl, null) && null !== bt())
|
|
2061
2061
|
return () => w(on, { ...e2, onBeforeEnter: i2, onAfterEnter: u2, onBeforeLeave: c2, onAfterLeave: g2 }, a2);
|
|
2062
|
-
let
|
|
2063
|
-
o2({ el:
|
|
2062
|
+
let f2 = s(null), h2 = d(() => e2.unmount ? it.Unmount : it.Hidden);
|
|
2063
|
+
o2({ el: f2, $el: f2 });
|
|
2064
2064
|
let { show: x2, appear: k2 } = function() {
|
|
2065
2065
|
let e3 = v(Zl, null);
|
|
2066
2066
|
if (null === e3)
|
|
@@ -2076,7 +2076,7 @@ let ln = rt.RenderStrategy, nn = S({ props: { as: { type: [Object, String], defa
|
|
|
2076
2076
|
});
|
|
2077
2077
|
y(() => {
|
|
2078
2078
|
let e3 = S2(E2);
|
|
2079
|
-
|
|
2079
|
+
m(e3);
|
|
2080
2080
|
}), b(() => {
|
|
2081
2081
|
if (h2.value === it.Hidden && E2) {
|
|
2082
2082
|
if (x2.value && "visible" !== M2.value)
|
|
@@ -2088,7 +2088,7 @@ let ln = rt.RenderStrategy, nn = S({ props: { as: { type: [Object, String], defa
|
|
|
2088
2088
|
return y(() => {
|
|
2089
2089
|
b(() => {
|
|
2090
2090
|
if ("visible" === M2.value) {
|
|
2091
|
-
let e3 = _e(
|
|
2091
|
+
let e3 = _e(f2);
|
|
2092
2092
|
if (e3 instanceof Comment && "" === e3.data)
|
|
2093
2093
|
throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?");
|
|
2094
2094
|
}
|
|
@@ -2096,7 +2096,7 @@ let ln = rt.RenderStrategy, nn = S({ props: { as: { type: [Object, String], defa
|
|
|
2096
2096
|
}), y(() => {
|
|
2097
2097
|
p([x2], (e3, t3, l3) => {
|
|
2098
2098
|
(function(e4) {
|
|
2099
|
-
let t4 = D2.value && !k2.value, l4 = _e(
|
|
2099
|
+
let t4 = D2.value && !k2.value, l4 = _e(f2);
|
|
2100
2100
|
!l4 || !(l4 instanceof HTMLElement) || t4 || (T2.value = true, x2.value && i2(), x2.value || c2(), e4(x2.value ? Jl(l4, _2, j2, P2, R2, (e5) => {
|
|
2101
2101
|
T2.value = false, e5 === Kl.Finished && u2();
|
|
2102
2102
|
}) : Jl(l4, B2, A2, L2, R2, (e5) => {
|
|
@@ -2105,8 +2105,8 @@ let ln = rt.RenderStrategy, nn = S({ props: { as: { type: [Object, String], defa
|
|
|
2105
2105
|
})(l3), D2.value = false;
|
|
2106
2106
|
}, { immediate: true });
|
|
2107
2107
|
}), C(Ql, I2), yt(d(() => je(M2.value, { visible: ht.Open, hidden: ht.Closed }) | r2.value)), () => {
|
|
2108
|
-
let { appear: t3, show: o3, enter: r3, enterFrom: i3, enterTo: s2, entered: d2, leave: u3, leaveFrom: c3, leaveTo: p2, ...g3 } = e2,
|
|
2109
|
-
return st({ theirProps: { ...g3, ...k2.value && x2.value && Be.isServer ? { class: n([l2.class, g3.class, ..._2, ...j2]) } : {} }, ourProps:
|
|
2108
|
+
let { appear: t3, show: o3, enter: r3, enterFrom: i3, enterTo: s2, entered: d2, leave: u3, leaveFrom: c3, leaveTo: p2, ...g3 } = e2, m2 = { ref: f2 };
|
|
2109
|
+
return st({ theirProps: { ...g3, ...k2.value && x2.value && Be.isServer ? { class: n([l2.class, g3.class, ..._2, ...j2]) } : {} }, ourProps: m2, slot: {}, slots: a2, attrs: l2, features: ln, visible: "visible" === M2.value, name: "TransitionChild" });
|
|
2110
2110
|
};
|
|
2111
2111
|
} }), an = nn, on = S({ inheritAttrs: false, props: { as: { type: [Object, String], default: "div" }, show: { type: [Boolean], default: null }, unmount: { type: [Boolean], default: true }, appear: { type: [Boolean], default: false }, enter: { type: [String], default: "" }, enterFrom: { type: [String], default: "" }, enterTo: { type: [String], default: "" }, entered: { type: [String], default: "" }, leave: { type: [String], default: "" }, leaveFrom: { type: [String], default: "" }, leaveTo: { type: [String], default: "" } }, emits: { beforeEnter: () => true, afterEnter: () => true, beforeLeave: () => true, afterLeave: () => true }, setup(e2, { emit: t2, attrs: l2, slots: n2 }) {
|
|
2112
2112
|
let a2 = bt(), o2 = d(() => null === e2.show && null !== a2 ? (a2.value & ht.Open) === ht.Open : e2.show);
|
|
@@ -2147,10 +2147,10 @@ function pn(t2, l2) {
|
|
|
2147
2147
|
function gn(t2, l2) {
|
|
2148
2148
|
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: "M15.75 19.5 8.25 12l7.5-7.5" })]);
|
|
2149
2149
|
}
|
|
2150
|
-
function
|
|
2150
|
+
function fn(t2, l2) {
|
|
2151
2151
|
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: "m8.25 4.5 7.5 7.5-7.5 7.5" })]);
|
|
2152
2152
|
}
|
|
2153
|
-
function
|
|
2153
|
+
function mn(t2, l2) {
|
|
2154
2154
|
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: "M8.25 15 12 18.75 15.75 15m-7.5-6L12 5.25 15.75 9" })]);
|
|
2155
2155
|
}
|
|
2156
2156
|
function vn(t2, l2) {
|
|
@@ -2194,36 +2194,42 @@ const On = { class: "py-1" }, Mn = ["onClick"], Dn = { key: 1, class: "animate-p
|
|
|
2194
2194
|
return p(() => d2.value, (e2) => {
|
|
2195
2195
|
c2.value = e2, r2("inputChanged", { name: d2.name, value: c2.value });
|
|
2196
2196
|
}), (l3, r3) => t2.loading ? (e(), a("div", Ln, [void 0 !== t2.label ? (e(), a("div", Fn)) : R("", true), Nn])) : (e(), a("div", _n, [i("div", jn, [t2.label ? (e(), a("label", Pn, _(t2.label), 1)) : R("", true), t2.optional ? (e(), a("span", Rn, _(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, Bn), [[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", An, [o(J, { icon: t2.icon, color: t2.color, loading: t2.loading }, null, 8, ["icon", "color", "loading"]), B(o(J, { icon: u(cn), color: "green", loading: t2.loading }, null, 8, ["icon", "loading"]), [[L, "success" === t2.color]]), B(o(J, { icon: u(hn), color: "yellow", loading: t2.loading }, null, 8, ["icon", "loading"]), [[L, "warning" === t2.color]]), B(o(J, { icon: u(Cn), 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]])]));
|
|
2197
|
-
} }), Vn = { key: 0 }, Hn = { class: "flex justify-between" }, Yn = { key: 0, class: "block text-sm font-medium text-gray-700" }, qn = { key: 1, class: "text-[10px] text-gray-500 uppercase" }, Un = { class: "space-y-1 flex flex-col items-center justify-center" }, Wn = { class: "flex text-sm text-gray-600 flex flex-col sm:flex-row text-center" }, Kn =
|
|
2197
|
+
} }), Vn = { key: 0 }, Hn = { class: "flex justify-between" }, Yn = { key: 0, class: "block text-sm font-medium text-gray-700" }, qn = { key: 1, class: "text-[10px] text-gray-500 uppercase" }, Un = { class: "space-y-1 flex flex-col items-center justify-center" }, Wn = { class: "flex text-sm text-gray-600 flex flex-col sm:flex-row text-center" }, Kn = ["for"], Jn = ["id", "name", "accept"], Gn = { class: "pl-1" }, Zn = { class: "text-xs text-gray-500 pb-4" }, Xn = { class: "mt-2 text-xs flex flex-row items-center text-red-300" }, Qn = { key: 1, class: "animate-pulse" }, ea = [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)], ta = { name: "uiInputFile" }, la = Object.assign(ta, { props: { name: String, id: String, label: String, optional: String, placeholder: String, dragAndDrop: String, fileTypesAndSizes: String, error: String, accept: String, icon: { type: Function, default: function(t2, l2) {
|
|
2198
2198
|
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" })]);
|
|
2199
2199
|
} }, loading: { type: Boolean, default: true } }, emits: ["filesUploaded"], setup(t2, { emit: l2 }) {
|
|
2200
|
-
|
|
2201
|
-
|
|
2202
|
-
d2("filesUploaded",
|
|
2200
|
+
let r2 = s(null);
|
|
2201
|
+
const d2 = l2, c2 = t2, p2 = (e2) => {
|
|
2202
|
+
d2("filesUploaded", { id: c2.id, files: e2.dataTransfer.files }), f2(e2.dataTransfer.files);
|
|
2203
2203
|
}, g2 = (e2) => {
|
|
2204
|
-
d2("filesUploaded", e2.
|
|
2204
|
+
d2("filesUploaded", { id: c2.id, files: e2.dataTransfer.files }), f2(e2.target.files);
|
|
2205
|
+
}, f2 = (e2) => {
|
|
2206
|
+
r2.value = null;
|
|
2207
|
+
let t3 = 0;
|
|
2208
|
+
Object.values(e2).forEach((l3) => {
|
|
2209
|
+
t3++, r2.value += l3.name, t3 >= 1 && t3 < e2.length && (r2.value += ", ");
|
|
2210
|
+
});
|
|
2205
2211
|
};
|
|
2206
2212
|
return (l3, s2) => t2.loading ? (e(), a("div", Qn, ea)) : (e(), a("div", Vn, [i("div", Hn, [t2.label ? (e(), a("label", Yn, _(t2.label), 1)) : R("", true), t2.optional ? (e(), a("span", qn, _(t2.optional), 1)) : R("", true)]), i("div", { class: n([[{ "mt-1": t2.label }, { "border-gray-300 hover:border-gray-400": !t2.error }, { "border-red-300 hover:border-red-400": t2.error }], "dropArea flex justify-center rounded-md border-2 border-dashed px-6 pt-5 pb-6"]), onDragover: s2[0] || (s2[0] = F(() => {
|
|
2207
|
-
}, ["prevent"])), onDrop: F(p2, ["prevent"]) }, [i("div", Un, [o(J, { icon: t2.icon, size: "massive", color: "gray", "aria-hidden": "true", class: "mb-4", loading: t2.loading }, null, 8, ["icon", "loading"]), i("div", Wn, [i("label",
|
|
2213
|
+
}, ["prevent"])), onDrop: F(p2, ["prevent"]) }, [i("div", Un, [o(J, { icon: t2.icon, size: "massive", color: "gray", "aria-hidden": "true", class: "mb-4", loading: t2.loading }, null, 8, ["icon", "loading"]), i("div", Wn, [i("label", { for: t2.id, 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" }, [i("span", null, _(t2.placeholder), 1), i("input", { id: t2.id, name: t2.name, type: "file", class: "sr-only", accept: t2.accept, multiple: "", onChange: g2 }, null, 40, Jn)], 8, Kn), i("p", Gn, _(t2.dragAndDrop), 1)]), i("p", Zn, _(t2.fileTypesAndSizes), 1), B(i("p", { class: "font-bold text-xs uppercase block p-2 bg-gray-200 rounded" }, _(u(r2)), 513), [[L, null !== u(r2)]])])], 34), B(i("p", Xn, [o(J, { icon: u(Sn), color: "red", class: "mr-2", loading: t2.loading }, null, 8, ["icon", "loading"]), I(_(t2.error), 1)], 512), [[L, t2.error]])]));
|
|
2208
2214
|
} }), na = { class: "relative mt-1" }, aa = { key: 1, class: "animate-pulse px-4 py-2.5 bg-gray-200 rounded-md flex justify-between items-center w-full" }, oa = i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/2" }, null, -1), ra = { name: "uiSelect" }, ia = Object.assign(ra, { 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 }) {
|
|
2209
|
-
const c2 = s(""), p2 = r2, g2 = l2,
|
|
2210
|
-
return (r3, s2) => l2.loading ? (e(), a("div", aa, [oa, o(u(
|
|
2215
|
+
const c2 = s(""), p2 = r2, g2 = l2, f2 = d(() => "" === c2.value ? g2.items : g2.items.filter((e2) => e2.name.toLowerCase().includes(c2.value.toLowerCase()))), m2 = d(() => g2.select);
|
|
2216
|
+
return (r3, s2) => l2.loading ? (e(), a("div", aa, [oa, o(u(mn), { "aria-hidden": "true", class: "-mr-1 ml-2 h-5 w-5 text-gray-300 dark:text-gray-400" })])) : (e(), t(u(Bt), { key: 0, modelValue: m2.value, "onUpdate:modelValue": [s2[1] || (s2[1] = (e2) => m2.value = e2), s2[2] || (s2[2] = (e2) => p2("selectChanged", e2))], disabled: l2.disabled, as: "div" }, { default: T(() => [o(u(At), { class: "block text-sm font-medium" }, { default: T(() => [I(_(l2.label), 1)]), _: 1 }), i("div", na, [o(u(Ft), { "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(u(Lt), { class: "absolute inset-y-0 right-0 flex items-center rounded-r-md px-2 focus:outline-none" }, { default: T(() => [o(u(mn), { "aria-hidden": "true", class: "h-5 w-5 text-gray-400" })]), _: 1 }), f2.value.length > 0 ? (e(), t(u(Nt), { 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: T(() => [(e(true), a(k, null, P(f2.value, (l3) => (e(), t(u(zt), { key: l3.id, value: l3, as: "template" }, { default: T(({ 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(u(cn), { "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"]));
|
|
2211
2217
|
} }), sa = { key: 1, class: "inline-flex items-center px-3 py-2.5 rounded text-xs font-medium leading-none animate-pulse bg-gray-200" }, da = [i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-12" }, null, -1)], ua = { name: "uiTag" }, ca = Object.assign(ua, { props: { color: { type: String, default: "primary" }, loading: { type: Boolean, default: true }, event: String }, emits: ["tagEvent"], setup(t2, { emit: l2 }) {
|
|
2212
2218
|
const o2 = l2, i2 = t2, s2 = () => {
|
|
2213
2219
|
void 0 !== i2.event && o2("tagEvent", i2.event);
|
|
2214
2220
|
};
|
|
2215
2221
|
return (l3, o3) => t2.loading ? (e(), a("div", sa, da)) : (e(), a("span", { key: 0, onClick: s2, class: n([{ "bg-indigo-100 text-indigo-800 border border-indigo-200": "primary" === t2.color, "hover:bg-indigo-200 cursor-pointer": void 0 !== t2.event && "primary" === t2.color, "bg-red-100 text-red-800 border border-red-200": "danger" === t2.color, "hover:bg-red-200 cursor-pointer": void 0 !== t2.event && "danger" === t2.color, "bg-yellow-100 text-yellow-800 border border-yellow-200": "warning" === t2.color, "hover:bg-yellow-200 cursor-pointer": void 0 !== t2.event && "warning" === t2.color, "bg-green-100 text-green-800 border border-green-200": "success" === t2.color, "hover:bg-green-200 cursor-pointer": void 0 !== t2.event && "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(l3.$slots, "default")], 2));
|
|
2216
|
-
} }), pa = { key: 0 }, ga = { key: 0, class: "block text-sm font-medium text-gray-700" },
|
|
2222
|
+
} }), pa = { key: 0 }, ga = { key: 0, class: "block text-sm font-medium text-gray-700" }, fa = ["disabled", "placeholder"], ma = { key: 1, class: "animate-pulse" }, va = [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)], ha = { name: "uiTextArea" }, ba = Object.assign(ha, { 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 }) {
|
|
2217
2223
|
const r2 = l2, d2 = t2, c2 = (e2) => {
|
|
2218
2224
|
r2("inputChanged", e2.target.value);
|
|
2219
2225
|
}, g2 = s(d2.value);
|
|
2220
2226
|
return p(() => d2.value, (e2) => {
|
|
2221
2227
|
g2.value = e2, r2("inputChanged", e2);
|
|
2222
|
-
}), (l3, r3) => t2.loading ? (e(), a("div",
|
|
2228
|
+
}), (l3, r3) => t2.loading ? (e(), a("div", ma, va)) : (e(), a("div", pa, [t2.label ? (e(), a("label", ga, _(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, fa), [[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: u(Sn), color: "red", class: "mr-2" }, null, 8, ["icon"]), I(_(t2.error), 1)], 2), [[L, t2.error]])]));
|
|
2223
2229
|
} }), ya = { class: "text-sm font-medium text-gray-900" }, xa = { key: 0, class: "text-sm text-gray-500 ml-2" }, wa = { key: 1, class: "animate-pulse flex items-center" }, ka = [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)], Sa = { name: "uiToggle" }, Ca = Object.assign(Sa, { props: { item: { type: Object, required: true }, checked: { type: Boolean, default: false }, disabled: { type: Boolean, default: false }, loading: { type: Boolean, default: true } }, setup(l2) {
|
|
2224
2230
|
const r2 = s(l2.checked);
|
|
2225
2231
|
return (s2, d2) => l2.loading ? (e(), a("div", wa, ka)) : (e(), t(u(Hl), { key: 0, as: "div", class: "flex items-center relative" }, { default: T(() => [o(u(Yl), { disabled: l2.disabled, onClick: d2[0] || (d2[0] = (e2) => s2.$emit("toggleChanged", { item: l2.item, active: !r2.value })), modelValue: r2.value, "onUpdate:modelValue": d2[1] || (d2[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: T(() => [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(u(ql), { as: "span", class: "ml-3" }, { default: T(() => [i("span", ya, _(l2.item.title), 1), l2.item.subtitle ? (e(), a("span", xa, _(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: d2[2] || (d2[2] = (e2) => s2.$emit("actionClicked", l2.item)) }, _(l2.item.action), 1)) : R("", true)]), _: 1 }));
|
|
2226
|
-
} }), Oa = { key: 0, class: "flex flex-col" }, Ma = { class: "flex" }, Da = { class: "flex-shrink-0" }, Ea = { class: "ml-3" }, Ta = { class: "mt-4" }, Ia = { class: "-mx-2 -my-1.5 flex" }, _a = ["onClick"], ja = { key: 1, class: "flex flex-col animate-pulse" }, Pa = [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)], Ra = { name: "uiAlert" }, Ba = Object.assign(Ra, { 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", ja, Pa)) : (e(), a("div", Oa, [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", Ma, [i("div", Da, ["info" === l2.type ? (e(), t(u(xn), { key: 0, class: "h-8 w-8 text-indigo-400", "aria-hidden": "true" })) : R("", true), "danger" === l2.type ? (e(), t(u(Sn), { key: 1, class: "h-8 w-8 text-red-400", "aria-hidden": "true" })) : R("", true), "warning" === l2.type ? (e(), t(u(hn), { key: 2, class: "h-8 w-8 text-yellow-400", "aria-hidden": "true" })) : R("", true), "success" === l2.type ? (e(), t(u(un), { key: 3, class: "h-8 w-8 text-green-400", "aria-hidden": "true" })) : R("", true)]), i("div", Ea, [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", Ta, [i("div", Ia, [(e(true), a(k, null, P(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, _a))), 128))])])])])], 2)])) }), Aa = { key: 0, class: "inline-flex", "aria-label": "Breadcrumb" }, La = { role: "list", class: "flex items-center space-x-4 text-xs" }, Fa = { key: 0 }, Na = ["onClick"], za = { key: 1, class: "flex items-center" }, $a = ["onClick", "aria-current"], Va = { key: 1, class: "flex flex-row items-center animate-pulse" }, Ha = [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)], Ya = { name: "uiBreadcrumbs" }, qa = Object.assign(Ya, { props: { pages: { type: Array, required: true }, loading: { type: Boolean, default: true } }, setup: (t2) => (l2, r2) => t2.loading ? (e(), a("div", Va, Ha)) : (e(), a("nav", Aa, [i("ol", La, [(e(true), a(k, null, P(t2.pages, (t3, r3) => (e(), a("li", { key: r3 }, [0 === r3 ? (e(), a("div", Fa, [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(u(yn), { class: "flex-shrink-0 h-3 w-3 text-gray-400 mr-4", "aria-hidden": "true" }), i("span", null, _(t3.name), 1)], 8, Na)])) : (e(), a("div", za, [o(u(
|
|
2232
|
+
} }), Oa = { key: 0, class: "flex flex-col" }, Ma = { class: "flex" }, Da = { class: "flex-shrink-0" }, Ea = { class: "ml-3" }, Ta = { class: "mt-4" }, Ia = { class: "-mx-2 -my-1.5 flex" }, _a = ["onClick"], ja = { key: 1, class: "flex flex-col animate-pulse" }, Pa = [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)], Ra = { name: "uiAlert" }, Ba = Object.assign(Ra, { 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", ja, Pa)) : (e(), a("div", Oa, [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", Ma, [i("div", Da, ["info" === l2.type ? (e(), t(u(xn), { key: 0, class: "h-8 w-8 text-indigo-400", "aria-hidden": "true" })) : R("", true), "danger" === l2.type ? (e(), t(u(Sn), { key: 1, class: "h-8 w-8 text-red-400", "aria-hidden": "true" })) : R("", true), "warning" === l2.type ? (e(), t(u(hn), { key: 2, class: "h-8 w-8 text-yellow-400", "aria-hidden": "true" })) : R("", true), "success" === l2.type ? (e(), t(u(un), { key: 3, class: "h-8 w-8 text-green-400", "aria-hidden": "true" })) : R("", true)]), i("div", Ea, [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", Ta, [i("div", Ia, [(e(true), a(k, null, P(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, _a))), 128))])])])])], 2)])) }), Aa = { key: 0, class: "inline-flex", "aria-label": "Breadcrumb" }, La = { role: "list", class: "flex items-center space-x-4 text-xs" }, Fa = { key: 0 }, Na = ["onClick"], za = { key: 1, class: "flex items-center" }, $a = ["onClick", "aria-current"], Va = { key: 1, class: "flex flex-row items-center animate-pulse" }, Ha = [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)], Ya = { name: "uiBreadcrumbs" }, qa = Object.assign(Ya, { props: { pages: { type: Array, required: true }, loading: { type: Boolean, default: true } }, setup: (t2) => (l2, r2) => t2.loading ? (e(), a("div", Va, Ha)) : (e(), a("nav", Aa, [i("ol", La, [(e(true), a(k, null, P(t2.pages, (t3, r3) => (e(), a("li", { key: r3 }, [0 === r3 ? (e(), a("div", Fa, [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(u(yn), { class: "flex-shrink-0 h-3 w-3 text-gray-400 mr-4", "aria-hidden": "true" }), i("span", null, _(t3.name), 1)], 8, Na)])) : (e(), a("div", za, [o(u(fn), { 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, $a)]))]))), 128))])])) }), Ua = { class: "flex items-center flex-col sm:flex-row justify-center sm:justify-start" }, Wa = ["src"], Ka = { class: "font-bold text-center sm:text-left" }, Ja = { class: "mt-1 text-xs text-center sm:text-left" }, Ga = { key: 0, class: "flex flex-wrap mt-4 justify-center sm:justify-start" }, Za = { key: 1, class: "rounded-lg bg-white shadow p-6 cursor-pointer animate-pulse" }, Xa = [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)], Qa = { name: "uiCard" }, eo = Object.assign(Qa, { 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) => {
|
|
2227
2233
|
var _a2;
|
|
2228
2234
|
return l2.loading ? (e(), a("div", Za, Xa)) : (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", Ua, [i("img", { class: "w-16 h-16 rounded-full mb-4 sm:mb-0 sm:mr-4", src: l2.logo }, null, 8, Wa), i("div", null, [i("h4", Ka, _(l2.name), 1), i("p", Ja, _(l2.type), 1)])]), ((_a2 = l2.tags) == null ? void 0 : _a2.length) > 0 ? (e(), a("div", Ga, [(e(true), a(k, null, P(l2.tags, (n3) => (e(), t(ca, { class: "mb-1 mr-1", key: n3.name, color: n3.color, loading: l2.loading }, { default: T(() => [I(_(n3.name), 1)]), _: 2 }, 1032, ["color", "loading"]))), 128))])) : R("", true)]));
|
|
2229
2235
|
} }), to = { name: "uiFilter" }, lo = Object.assign(to, { 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 }) {
|
|
@@ -2233,7 +2239,7 @@ const On = { class: "py-1" }, Mn = ["onClick"], Dn = { key: 1, class: "animate-p
|
|
|
2233
2239
|
t2.value !== e3 ? t2.active = false : t2.active = true;
|
|
2234
2240
|
}), a2("filterSelected", e3);
|
|
2235
2241
|
})(e2)), position: l2.position, items: o2.value, label: l2.label }, null, 8, ["loading", "position", "items", "label"]));
|
|
2236
|
-
} }), no = i("div", { class: "fixed inset-0 bg-gray-500 bg-opacity-75 transition-opacity" }, null, -1), ao = { class: "fixed inset-0 z-10 overflow-y-auto" }, oo = { class: "flex min-h-full items-end justify-center p-4 text-center sm:items-center sm:p-0" }, ro = { class: "absolute top-0 right-0 hidden pt-4 pr-4 sm:block" }, io = i("span", { class: "sr-only" }, "X", -1), so = { class: "sm:flex sm:items-start" }, uo = { class: "mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left sm:mr-4 sm:w-10/12 break-words" }, co = { class: "mt-4 text-gray-500 text-sm" }, po = { key: 0, class: "mt-8" }, go = ["onClick"],
|
|
2242
|
+
} }), no = i("div", { class: "fixed inset-0 bg-gray-500 bg-opacity-75 transition-opacity" }, null, -1), ao = { class: "fixed inset-0 z-10 overflow-y-auto" }, oo = { class: "flex min-h-full items-end justify-center p-4 text-center sm:items-center sm:p-0" }, ro = { class: "absolute top-0 right-0 hidden pt-4 pr-4 sm:block" }, io = i("span", { class: "sr-only" }, "X", -1), so = { class: "sm:flex sm:items-start" }, uo = { class: "mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left sm:mr-4 sm:w-10/12 break-words" }, co = { class: "mt-4 text-gray-500 text-sm" }, po = { key: 0, class: "mt-8" }, go = ["onClick"], fo = { name: "uiModal" }, mo = Object.assign(fo, { props: { title: String, actions: Object, modalName: String, open: { type: Boolean, default: false }, type: { type: String, default: "default" }, loading: { type: Boolean, default: false } }, emits: ["modalAction"], setup(l2, { emit: s2 }) {
|
|
2237
2243
|
const d2 = l2, c2 = s2, p2 = (e2) => {
|
|
2238
2244
|
c2("modalAction", { modal: d2.modalName, action: e2 });
|
|
2239
2245
|
};
|
|
@@ -2285,7 +2291,7 @@ const Vo = (e2, t2) => {
|
|
|
2285
2291
|
l2[e3] = n2;
|
|
2286
2292
|
return l2;
|
|
2287
2293
|
}, Ho = { class: "dateSelector flex items-center text-white flex-row" }, Yo = { class: "pagination flex items-center my-1 md:my-0" }, qo = { class: "date mx-4 font-bold text-center text-indigo-600 select-none uppercase" }, Uo = { class: "pagination flex items-center my-1 sm:my-0" };
|
|
2288
|
-
const Wo = Vo({ name: "dateSelector", components: { ChevronLeftIcon: gn, ChevronRightIcon:
|
|
2294
|
+
const Wo = Vo({ name: "dateSelector", components: { ChevronLeftIcon: gn, ChevronRightIcon: fn }, computed: { currentDate() {
|
|
2289
2295
|
return Y(this.selectedDate).locale("es").format("DD MMM. YYYY");
|
|
2290
2296
|
} }, props: { selectedDate: { type: Object, required: true } }, methods: { selectDate(e2, t2) {
|
|
2291
2297
|
let l2;
|
|
@@ -2336,11 +2342,11 @@ const gr = { name: "uiPriceCalendar", data: () => ({ today: /* @__PURE__ */ new
|
|
|
2336
2342
|
this.$emit("tableAction", e2);
|
|
2337
2343
|
}, changeRoomPrice(e2) {
|
|
2338
2344
|
this.$emit("changeRoomPrice", e2);
|
|
2339
|
-
} } },
|
|
2345
|
+
} } }, fr = { key: 0, class: "px-4 sm:px-6 lg:px-8" }, mr = { class: "flow-root" }, vr = { class: "overflow-x-auto sm:-mx-6 lg:-mx-8 shadow ring-1 ring-black ring-opacity-5 sm:rounded-lg" }, hr = { class: "inline-block min-w-full align-middle" }, br = { class: "min-w-full text-sm" }, yr = { class: "bg-white" }, xr = { 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" }, wr = { colspan: "20", scope: "colgroup", class: "bg-gray-200 py-2 pl-4 pr-3 text-left font-semibold text-gray-900" }, kr = { key: 0 }, Sr = { colspan: "6", class: "pl-4" }, Cr = { key: 1 }, Or = { colspan: "6", class: "pl-4" }, Mr = { key: 2 }, Dr = { colspan: "6", class: "pl-4" }, Er = { colspan: "20", scope: "colgroup", class: "bg-gray-200 py-2 pl-4 pr-3 text-left font-semibold text-gray-900 relative" }, Tr = { 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" }, Ir = ["onClick"], _r = { colspan: "2", scope: "colgroup", class: "relative bg-gray-100 py-3.5 pl-4 pr-3 text-left font-semibold text-gray-900" }, jr = ["checked", "indeterminate"], Pr = { class: "pl-6" }, Rr = { colspan: "2", scope: "colgroup", class: "bg-gray-100 py-2 pl-4 pr-3 text-left font-semibold text-gray-900" }, Br = { colspan: "2", scope: "colgroup", class: "bg-gray-100 py-2 pl-4 pr-3 text-left font-semibold text-gray-900" }, Ar = 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), Lr = { colspan: "2", class: "relative py-3.5 pl-4 pr-3 text-left text-sm font-semibold text-gray-900 sm:pl-6" }, Fr = { key: 0, class: "absolute inset-y-0 left-0 w-0.5 bg-indigo-600" }, Nr = ["value"], zr = { class: "pl-6" }, $r = { colspan: "2", class: "pl-4" }, Vr = { colspan: "2", class: "pl-4" };
|
|
2340
2346
|
const Hr = Vo(gr, [["render", function(l2, r2, s2, d2, u2, c2) {
|
|
2341
2347
|
var _a2, _b;
|
|
2342
|
-
const p2 = $("DateSelector"), g2 = $("Day"),
|
|
2343
|
-
return s2.loading ? (e(), t(v2, { key: 1 })) : (e(), a("div",
|
|
2348
|
+
const p2 = $("DateSelector"), g2 = $("Day"), f2 = $("uiButton"), m2 = $("Price"), v2 = $("SkeletonTable");
|
|
2349
|
+
return s2.loading ? (e(), t(v2, { key: 1 })) : (e(), a("div", fr, [i("div", mr, [i("div", vr, [i("div", hr, [i("table", br, [i("tbody", yr, [i("tr", null, [i("th", xr, [o(p2, { selectedDate: l2.date, onDateSelected: r2[0] || (r2[0] = (e2) => c2.changeDate(e2)) }, null, 8, ["selectedDate"])]), (e(true), a(k, null, P(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", wr, [i("span", null, _(s2.literals.category) + " " + _(s2.category.name), 1), o(f2, { loading: s2.loading, class: "ml-4", size: "small", onClick: c2.changeCategoryBulkPrices }, { default: T(() => [I(_(s2.literals.changeInBulk), 1)]), _: 1 }, 8, ["loading", "onClick"])])]), "discounts" === s2.type ? (e(), a("tr", kr, [i("td", Sr, _(s2.literals.pricesDiscount), 1), (e(true), a(k, null, P(s2.category.selectionPrices, (t2, l3) => (e(), a("td", { key: l3, class: "p-0" }, [o(m2, { 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.pricesSelection), 1), (e(true), a(k, null, P(s2.category.selectionPrices, (t2, l3) => (e(), a("td", { key: l3, class: "p-0" }, [o(m2, { 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", Mr, [i("td", Dr, _(s2.literals.pricesUpgrade), 1), (e(true), a(k, null, P(s2.category.upgradePrices, (t2, l3) => (e(), a("td", { key: l3, class: "p-0" }, [o(m2, { 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", Er, [((_a2 = l2.selectedRooms) == null ? void 0 : _a2.length) > 0 && ((_b = s2.actions) == null ? void 0 : _b.length) > 0 ? (e(), a("div", Tr, [(e(true), a(k, null, P(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, Ir))), 128))])) : R("", true), i("span", null, _(s2.literals.pricesSelection), 1)])]), i("tr", null, [i("th", _r, [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, jr), i("span", Pr, _(s2.literals.room), 1)]), i("th", Rr, _(s2.literals.building), 1), i("th", Br, _(s2.literals.floor), 1), Ar]), (e(true), a(k, null, P(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", Lr, [l2.selectedRooms.includes(t2.name) ? (e(), a("div", Fr)) : 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, Nr), [[V, l2.selectedRooms]]), i("span", zr, _(t2.name), 1)]), i("td", $r, _(t2.building), 1), i("td", Vr, _(t2.floor), 1), (e(true), a(k, null, P(t2.selectionPrices, (t3, l3) => (e(), a("td", { class: "p-0", key: l3 }, [o(m2, { 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))])])])])])]));
|
|
2344
2350
|
}]]), Yr = { class: "chart-selector flex flex-row items-center justify-center" }, qr = { name: "rangeSelector" }, Ur = Object.assign(qr, { props: { range: { type: String } }, emits: ["rangeSelected"], setup(t2, { emit: l2 }) {
|
|
2345
2351
|
const o2 = l2, r2 = t2;
|
|
2346
2352
|
let s2 = d(() => r2.range);
|
|
@@ -2352,37 +2358,37 @@ const Hr = Vo(gr, [["render", function(l2, r2, s2, d2, u2, c2) {
|
|
|
2352
2358
|
const r2 = l2, s2 = t2;
|
|
2353
2359
|
let c2 = { 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 }, markers: { strokeWidth: 0, size: 4, hover: { size: 8 } } };
|
|
2354
2360
|
s2.annotations && (c2.annotations = { yaxis: [{ y: s2.annotations.high, borderColor: "#4f46e5", label: { borderColor: "#4f46e5", style: { color: "#fff", background: "#4f46e5" }, text: s2.annotations.text } }] }), "area" === s2.type && (c2.tooltip = { intersect: true, shared: false });
|
|
2355
|
-
const p2 = d(() => s2.series), g2 = d(() => (c2.chart.stacked = s2.stacked, { ...c2, ...s2.options, plotOptions: { bar: { horizontal: s2.horizontal } } })),
|
|
2361
|
+
const p2 = d(() => s2.series), g2 = d(() => (c2.chart.stacked = s2.stacked, { ...c2, ...s2.options, plotOptions: { bar: { horizontal: s2.horizontal } } })), f2 = () => r2("chartUpdated"), m2 = (e2, t3, l3) => {
|
|
2356
2362
|
r2("dataPointSelection", { id: s2.id, chartContext: t3, config: l3, event: e2 });
|
|
2357
2363
|
};
|
|
2358
|
-
return (l3, r3) => (e(), a(k, 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", Wr, [i("div", Kr, _(t2.title), 1), o(Ur, { range: t2.range, onRangeSelected: r3[0] || (r3[0] = (e2) => l3.$emit("selectedRange", { range: e2, chartId: t2.id })) }, null, 8, ["range"])]), B(i("div", Jr, [o(u(q), { type: t2.type, series: p2.value, width: "100%", height: t2.height, options: g2.value, onUpdated:
|
|
2364
|
+
return (l3, r3) => (e(), a(k, 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", Wr, [i("div", Kr, _(t2.title), 1), o(Ur, { range: t2.range, onRangeSelected: r3[0] || (r3[0] = (e2) => l3.$emit("selectedRange", { range: e2, chartId: t2.id })) }, null, 8, ["range"])]), B(i("div", Jr, [o(u(q), { type: t2.type, series: p2.value, width: "100%", height: t2.height, options: g2.value, onUpdated: f2, onMounted: f2, onDataPointSelection: m2 }, null, 8, ["type", "series", "height", "options"])], 512), [[L, !t2.empty]]), B(i("div", Gr, [o(J, { icon: u(hn), color: "gray", loading: false, size: "huge" }, null, 8, ["icon"]), Zr], 512), [[L, t2.empty]])], 2), [[L, !t2.loading]]), B(i("div", Xr, Qr, 512), [[L, t2.loading]])], 64));
|
|
2359
2365
|
} }), li = { name: "uiFooter" }, ni = { class: "bg-white" }, ai = [i("div", { class: "mx-auto py-6 px-4 sm:px-6 md:flex md:items-center md:justify-between lg:px-8" }, [i("div", { class: "mt-8 md:mt-0 md:order-1" }, [i("p", { class: "text-center text-base text-gray-400" }, "© Made by Hotelinking.")])], -1)];
|
|
2360
2366
|
const oi = Vo(li, [["render", function(t2, l2, n2, o2, r2, i2) {
|
|
2361
2367
|
return e(), a("footer", ni, ai);
|
|
2362
|
-
}]]), ri = i("div", { class: "spinner h-12 w-12 mb-6" }, [i("img", { src: "https://images.hotelinking.com/ui/loader.gif", alt: "loading animation" })], -1), ii = { name: "uiLoadScreen" }, si = Object.assign(ii, { props: { title: String, message: String, fixed: { type: Boolean, default: true } }, setup: (t2) => (l2, o2) => (e(), a("div", { class: n([{ fixed: t2.fixed }, "load-screen h-full w-full top-0 left-0 z-50 flex flex-col items-center justify-center bg-gray-50"]) }, [ri, B(i("h2", { class: "text-xs font-bold text-center uppercase mb-2" }, _(t2.title), 513), [[L, t2.title]]), B(i("p", { class: "text-xs text-center uppercase md:w-1/4" }, _(t2.message), 513), [[L, t2.message]])], 2)) }), di = { key: 0, class: "py-6 flex items-center justify-between" }, ui = { class: "flex-1 flex justify-between sm:hidden" }, ci = { href: "#", class: "relative inline-flex items-center px-4 py-2 border border-gray-300 text-sm font-medium rounded-md text-gray-700 bg-white hover:bg-gray-50" }, pi = { href: "#", class: "ml-3 relative inline-flex items-center px-4 py-2 border border-gray-300 text-sm font-medium rounded-md text-gray-700 bg-white hover:bg-gray-50" }, gi = { class: "hidden sm:flex-1 sm:flex sm:items-center sm:justify-between" },
|
|
2363
|
-
const c2 = l2, p2 = t2, g2 = s(3),
|
|
2368
|
+
}]]), ri = i("div", { class: "spinner h-12 w-12 mb-6" }, [i("img", { src: "https://images.hotelinking.com/ui/loader.gif", alt: "loading animation" })], -1), ii = { name: "uiLoadScreen" }, si = Object.assign(ii, { props: { title: String, message: String, fixed: { type: Boolean, default: true } }, setup: (t2) => (l2, o2) => (e(), a("div", { class: n([{ fixed: t2.fixed }, "load-screen h-full w-full top-0 left-0 z-50 flex flex-col items-center justify-center bg-gray-50"]) }, [ri, B(i("h2", { class: "text-xs font-bold text-center uppercase mb-2" }, _(t2.title), 513), [[L, t2.title]]), B(i("p", { class: "text-xs text-center uppercase md:w-1/4" }, _(t2.message), 513), [[L, t2.message]])], 2)) }), di = { key: 0, class: "py-6 flex items-center justify-between" }, ui = { class: "flex-1 flex justify-between sm:hidden" }, ci = { href: "#", class: "relative inline-flex items-center px-4 py-2 border border-gray-300 text-sm font-medium rounded-md text-gray-700 bg-white hover:bg-gray-50" }, pi = { href: "#", class: "ml-3 relative inline-flex items-center px-4 py-2 border border-gray-300 text-sm font-medium rounded-md text-gray-700 bg-white hover:bg-gray-50" }, gi = { class: "hidden sm:flex-1 sm:flex sm:items-center sm:justify-between" }, fi = { class: "text-sm text-gray-700" }, mi = { class: "font-bold" }, vi = { class: "font-bold" }, hi = { class: "relative z-0 inline-flex rounded-md shadow-sm -space-x-px", "aria-label": "Pagination" }, bi = { class: "sr-only" }, yi = ["onClick"], xi = { class: "sr-only" }, wi = { key: 1, class: "py-6 flex flex-row justify-between items-center animate-pulse" }, ki = [i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/5" }, null, -1), i("div", { class: "h-10 w-32 bg-gray-200 rounded dark:bg-gray-300" }, null, -1)], Si = { name: "uiPagination" }, Ci = Object.assign(Si, { props: { current: { type: Number, requires: true }, total: { type: Number, requires: true }, loading: { type: Boolean, default: true } }, emits: ["changePage"], setup(t2, { emit: l2 }) {
|
|
2369
|
+
const c2 = l2, p2 = t2, g2 = s(3), f2 = d(() => Math.max(1, Number(p2.current) - Number(g2.value))), m2 = d(() => Math.min(Number(p2.current) + Number(g2.value), Number(p2.total))), v2 = d(() => {
|
|
2364
2370
|
let e2 = [];
|
|
2365
|
-
for (let t3 = Number(
|
|
2371
|
+
for (let t3 = Number(f2.value); t3 <= Number(m2.value); t3++)
|
|
2366
2372
|
e2.push(t3);
|
|
2367
2373
|
return e2;
|
|
2368
2374
|
});
|
|
2369
|
-
return (l3, s2) => t2.loading ? (e(), a("div", wi, ki)) : (e(), a("div", di, [i("div", ui, [i("a", ci, [r(l3.$slots, "previous")]), i("a", pi, [r(l3.$slots, "next")])]), i("div", gi, [i("div", null, [i("p",
|
|
2375
|
+
return (l3, s2) => t2.loading ? (e(), a("div", wi, ki)) : (e(), a("div", di, [i("div", ui, [i("a", ci, [r(l3.$slots, "previous")]), i("a", pi, [r(l3.$slots, "next")])]), i("div", gi, [i("div", null, [i("p", fi, [r(l3.$slots, "showing"), I(), i("span", mi, _(t2.current + " "), 1), r(l3.$slots, "of"), I(), i("span", vi, _(t2.total), 1)])]), i("div", null, [i("nav", hi, [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", bi, [r(l3.$slots, "previous")]), o(u(gn), { class: "h-5 w-5", "aria-hidden": "true" })], 512), [[L, 1 !== t2.current]]), (e(true), a(k, null, P(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, yi))), 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", xi, [r(l3.$slots, "next")]), o(u(fn), { class: "h-5 w-5", "aria-hidden": "true" })], 512), [[L, t2.current !== t2.total]])])])])]));
|
|
2370
2376
|
} }), Oi = { class: "hidden md:flex md:flex-col sticky md:inset-y-0" }, Mi = { class: "flex flex-col flex-grow overflow-y-auto" }, Di = { class: "grow flex flex-col" }, Ei = { class: "flex-1 space-y-1", "aria-label": "Sidebar" }, Ti = { key: 0 }, Ii = ["onClick"], _i = { key: 0, class: "text-left" }, ji = { key: 0, class: "flex-1 text-left" }, Pi = { key: 1, class: "flex-1" }, Ri = [i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/2" }, null, -1)], Bi = { key: 0, class: "align-left" }, Ai = { key: 1, class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/2" }, Li = { class: "h-12 flex flex-row items-center" }, Fi = [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)], Ni = { name: "uiSidebar" }, zi = Object.assign(Ni, { props: { navigation: { type: Array, required: true }, loading: { type: Boolean, default: true } }, emits: ["sideBarClick"], setup(l2, { emit: r2 }) {
|
|
2371
2377
|
const s2 = r2;
|
|
2372
|
-
return (r3, d2) => (e(), a("div", Oi, [i("div", Mi, [i("div", Di, [i("nav", Ei, [l2.loading ? (e(), a(k, { key: 1 }, P(5, (e2) => i("div", Li, Fi)), 64)) : (e(true), a(k, { key: 0 }, P(l2.navigation, (r4) => (e(), a(k, { key: r4.name }, [r4.children ? (e(), t(u(Ol), { key: 1, as: "div", class: "space-y-1" }, { default: T(({ open: i2 }) => [o(u(Ml), { 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: T(() => [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", Pi, Ri)) : (e(), a("span", ji, _(r4.name), 1)), o(u(
|
|
2378
|
+
return (r3, d2) => (e(), a("div", Oi, [i("div", Mi, [i("div", Di, [i("nav", Ei, [l2.loading ? (e(), a(k, { key: 1 }, P(5, (e2) => i("div", Li, Fi)), 64)) : (e(true), a(k, { key: 0 }, P(l2.navigation, (r4) => (e(), a(k, { key: r4.name }, [r4.children ? (e(), t(u(Ol), { key: 1, as: "div", class: "space-y-1" }, { default: T(({ open: i2 }) => [o(u(Ml), { 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: T(() => [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", Pi, Ri)) : (e(), a("span", ji, _(r4.name), 1)), o(u(fn), { 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(u(Dl), { class: "space-y-1" }, { default: T(() => [(e(true), a(k, null, P(r4.children, (o2) => (e(), t(u(Ml), { 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: T(() => [l2.loading ? (e(), a("div", Ai)) : (e(), a("span", Bi, _(o2.name), 1))]), _: 2 }, 1032, ["onClick", "class"]))), 128))]), _: 2 }, 1024)]), _: 2 }, 1024)) : (e(), a("div", Ti, [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", _i, _(r4.name), 1))], 10, Ii)]))], 64))), 128))])])])]));
|
|
2373
2379
|
} }), $i = { key: 0 }, Vi = { class: "ml-16 text-sm font-medium text-gray-500 truncate" }, Hi = { class: "ml-16 flex items-baseline pb-5" }, Yi = { class: "text-2xl font-semibold text-gray-900" }, qi = { key: 0, class: "text-black ml-2 flex items-baseline text-sm font-semibold" }, Ui = { class: "absolute bottom-0 inset-x-0 bg-gray-50 px-4 py-4 sm:px-6" }, Wi = { class: "text-sm" }, Ki = { key: 1 }, Ji = { class: "relative bg-white pt-5 px-4 sm:pt-6 sm:px-6 shadow rounded-lg overflow-hidden h-full pb-6" }, Gi = { class: "absolute bg-gray-200 rounded-md p-3 animate-pulse" }, Zi = 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), Xi = 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), Qi = { name: "uiStats" }, es = Object.assign(Qi, { props: { item: { type: Object, required: true }, loading: { type: Boolean, default: true } }, emits: ["statClick"], setup(l2, { emit: r2 }) {
|
|
2374
2380
|
const s2 = r2;
|
|
2375
2381
|
return (r3, d2) => l2.loading ? (e(), a("div", Ki, [i("div", Ji, [i("dt", null, [i("div", Gi, [o(J, { loading: l2.loading, icon: l2.item.icon, class: "h-6 w-6 text-white", "aria-hidden": "true" }, null, 8, ["loading", "icon"])]), Zi, Xi])])])) : (e(), a("div", $i, [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", Vi, _(l2.item.name), 1)]), i("dd", Hi, [i("p", Yi, _(l2.item.stat), 1), l2.item.explanation ? (e(), a("p", qi, _(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(u(sn), { 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(u(rn), { 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", Ui, [i("div", Wi, [i("span", { onClick: d2[0] || (d2[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)]));
|
|
2376
|
-
} }), ts = { key: 0, class: "overflow-hidden bg-white shadow sm:rounded-lg" }, ls = { class: "px-4 py-5 sm:px-6" }, ns = { class: "text-lg font-medium leading-6 text-gray-900" }, as = { class: "mt-1 max-w-2xl text-sm text-gray-500" }, os = { class: "border-t border-gray-200" }, rs = { class: "text-sm font-medium text-gray-500" }, is = { key: 0, class: "mt-1 text-sm text-gray-900 sm:col-span-2 sm:mt-0 break-normal" }, ss = { key: 1, class: "mt-1 text-sm text-gray-900 sm:col-span-2 sm:mt-0 break-normal" }, ds = ["onClick"], us = { key: 3, class: "mt-1 text-sm text-gray-900 sm:col-span-2 sm:mt-0 break-words" }, cs = { key: 1, class: "overflow-hidden bg-white shadow sm:rounded-lg" }, ps = 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), gs = { class: "border-t border-gray-200" },
|
|
2382
|
+
} }), ts = { key: 0, class: "overflow-hidden bg-white shadow sm:rounded-lg" }, ls = { class: "px-4 py-5 sm:px-6" }, ns = { class: "text-lg font-medium leading-6 text-gray-900" }, as = { class: "mt-1 max-w-2xl text-sm text-gray-500" }, os = { class: "border-t border-gray-200" }, rs = { class: "text-sm font-medium text-gray-500" }, is = { key: 0, class: "mt-1 text-sm text-gray-900 sm:col-span-2 sm:mt-0 break-normal" }, ss = { key: 1, class: "mt-1 text-sm text-gray-900 sm:col-span-2 sm:mt-0 break-normal" }, ds = ["onClick"], us = { key: 3, class: "mt-1 text-sm text-gray-900 sm:col-span-2 sm:mt-0 break-words" }, cs = { key: 1, class: "overflow-hidden bg-white shadow sm:rounded-lg" }, ps = 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), gs = { class: "border-t border-gray-200" }, fs = [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)], ms = { name: "uiStripedCard" }, vs = Object.assign(ms, { 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", cs, [ps, i("div", gs, [i("dl", null, [(e(), a(k, null, P(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"]]) }, fs, 2)), 64))])])])) : (e(), a("div", ts, [i("div", ls, [i("h3", ns, _(l2.title), 1), i("p", as, _(l2.subtitle), 1)]), i("div", os, [i("dl", null, [(e(true), a(k, null, P(l2.items, (s3, d2) => (e(), a("div", { key: d2, class: n(["px-4 py-5 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-6", [d2 % 2 == 0 ? "bg-gray-50" : "bg-white"]]) }, [i("dt", rs, _(s3.title), 1), "tag" === s3.type ? (e(), a("dd", is, [o(ca, { color: s3.color }, { default: T(() => [I(_(s3.text), 1)]), _: 2 }, 1032, ["color"])])) : "tags" === s3.type ? (e(), a("dd", ss, [(e(true), a(k, null, P(s3.tags, (n2, a2) => (e(), t(ca, { loading: l2.loading, key: a2, color: n2.color, class: "mr-2 mb-2" }, { default: T(() => [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, ds)) : (e(), a("dd", us, _(s3.text), 1))], 2))), 128))])])])) }), hs = { 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" }, bs = 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), ys = { class: "ml-2" }, xs = { __name: "tooltip", props: { tip: { type: String, required: true } }, setup: (t2) => (l2, n2) => (e(), a("div", hs, [bs, i("div", null, [o(J, { icon: u(wn), loading: false, color: "white", size: "big" }, null, 8, ["icon"])]), i("span", ys, _(t2.tip), 1)])) }, ws = { key: 0 }, ks = { class: "flex flex-col" }, Ss = { class: "-my-2 overflow-x-auto" }, Cs = { class: "inline-block min-w-full py-2 align-middle px-1" }, Os = { class: "relative overflow-hidden shadow ring-1 ring-black ring-opacity-5 md:rounded-lg" }, Ms = { 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" }, Ds = ["onClick"], Es = { class: "min-w-full table-fixed divide-y divide-gray-300" }, Ts = { class: "bg-gray-50" }, Is = ["checked", "indeterminate"], _s = ["onMouseover", "onMouseleave"], js = ["onClick"], Ps = { key: 2, class: "group flex items-center uppercase text-xs" }, Rs = { class: "divide-y divide-gray-200 bg-white" }, Bs = { key: 0, class: "absolute inset-y-0 left-0 w-0.5 bg-indigo-600" }, As = ["value"], Ls = ["onClick"], Fs = ["href"], Ns = { key: 3 }, zs = { name: "uiTable" }, $s = Object.assign(zs, { 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 }) {
|
|
2377
2383
|
let c2 = s([]);
|
|
2378
2384
|
s(false);
|
|
2379
2385
|
let p2 = s(void 0);
|
|
2380
|
-
const g2 = r2,
|
|
2386
|
+
const g2 = r2, f2 = l2, m2 = d(() => c2.value.length > 0 && c2.value.length < f2.items.length), v2 = (e2, t2) => {
|
|
2381
2387
|
p2 !== e2 && t2 && (p2.value = e2), t2 || (p2.value = void 0);
|
|
2382
2388
|
};
|
|
2383
2389
|
return (r3, s2) => {
|
|
2384
2390
|
var _a2, _b;
|
|
2385
|
-
return l2.loading ? (e(), t(ar, { key: 1 })) : (e(), a("div", ws, [i("div", ks, [i("div", Ss, [i("div", Cs, [i("div", Os, [((_a2 = u(c2)) == null ? void 0 : _a2.length) > 0 && ((_b = l2.actions) == null ? void 0 : _b.length) > 0 ? (e(), a("div", Ms, [(e(true), a(k, null, P(l2.actions, (t2, l3) => (e(), a("button", { onClick: (e2) => g2("tableAction", { action: t2.id, items: u(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, Ds))), 128))])) : R("", true), i("table", Es, [i("thead", Ts, [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:
|
|
2391
|
+
return l2.loading ? (e(), t(ar, { key: 1 })) : (e(), a("div", ws, [i("div", ks, [i("div", Ss, [i("div", Cs, [i("div", Os, [((_a2 = u(c2)) == null ? void 0 : _a2.length) > 0 && ((_b = l2.actions) == null ? void 0 : _b.length) > 0 ? (e(), a("div", Ms, [(e(true), a(k, null, P(l2.actions, (t2, l3) => (e(), a("button", { onClick: (e2) => g2("tableAction", { action: t2.id, items: u(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, Ds))), 128))])) : R("", true), i("table", Es, [i("thead", Ts, [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: m2.value || u(c2).length === l2.items.length, indeterminate: m2.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, Is)) : R("", true)], 2), (e(true), a(k, null, P(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(xs, { key: 0, tip: r4.tooltip }, null, 8, ["tip"])), [[L, u(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 ? u(pn) : u(vn), loading: l2.loading, color: r4.value === l2.orderedBy ? "white" : "primary" }, null, 8, ["icon", "loading", "color"])], 2)], 8, js)) : (e(), a("p", Ps, [i("span", null, _(r4.name), 1)]))], 40, _s))), 128))])]), i("tbody", Rs, [(e(true), a(k, null, P(l2.items, (o2, r4) => {
|
|
2386
2392
|
var _a3, _b2;
|
|
2387
2393
|
return e(), a("tr", { key: o2.id, class: n([u(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"]) }, [u(c2).includes(o2.id) ? (e(), a("div", Bs)) : 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, As)), [[V, u(c2)]]) : R("", true)], 2), (e(true), a(k, null, P(o2.row, (r5, i2) => (e(), a("td", { key: i2, class: n(["whitespace-nowrap py-4 pr-3 text-sm", u(c2).includes(o2.id) ? "text-indigo-600" : "text-gray-900"]) }, ["object" == typeof r5 && "tag" === r5.type ? (e(), t(ca, { key: 0, loading: l2.loading, color: r5.color }, { default: T(() => [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, Ls)) : "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, Fs)) : (e(), a("span", Ns, _(r5), 1))], 2))), 128))], 2);
|
|
2388
2394
|
}), 128))])])])])])])]));
|
|
@@ -2392,28 +2398,28 @@ const oi = Vo(li, [["render", function(t2, l2, n2, o2, r2, i2) {
|
|
|
2392
2398
|
return (l3, r2) => (e(), a("div", null, [i("div", Vs, [i("select", { onChange: r2[0] || (r2[0] = (e2) => {
|
|
2393
2399
|
o2("tabClicked", e2.target.value);
|
|
2394
2400
|
}), id: "tabs", name: "tabs", class: "block w-full rounded-md border-gray-300 py-2 pl-3 pr-10 text-base focus:border-indigo-500 focus:outline-none focus:ring-indigo-500 sm:text-sm" }, [(e(true), a(k, null, P(t2.tabs, (t3) => (e(), a("option", { value: t3.id, key: t3.name }, _(t3.name), 9, Hs))), 128))], 32)]), i("div", Ys, [i("div", qs, [i("nav", Us, [(e(true), a(k, null, P(t2.tabs, (t3) => (e(), a("a", { key: t3.name, onClick: (e2) => o2("tabClicked", t3.id), class: n([t3.current ? "border-indigo-500 text-indigo-600" : "border-transparent text-gray-500 hover:text-gray-700 hover:border-gray-200", "whitespace-nowrap flex py-4 px-1 border-b-2 font-medium text-sm cursor-pointer"]), "aria-current": t3.current ? "page" : void 0 }, [I(_(t3.name) + " ", 1), t3.count ? (e(), a("span", { key: 0, class: n([t3.current ? "bg-indigo-100 text-indigo-600" : "bg-gray-100 text-gray-900", "hidden ml-3 py-0.5 px-2.5 rounded-full text-xs font-medium md:inline-block"]) }, _(t3.count), 3)) : R("", true)], 10, Ws))), 128))])])])]));
|
|
2395
|
-
} }), Gs = { key: 0, class: "bg-white overflow-hidden shadow rounded-lg" }, Zs = { class: "px-4 py-5 sm:px-6" }, Xs = { class: "text-xl font-bold" }, Qs = { class: "px-4 py-5 sm:p-6" }, ed = { class: "flow-root" }, td = { class: "-mb-8", role: "list" }, ld = { class: "relative pb-8" }, nd = { key: 0, class: "absolute left-4 top-4 -ml-px h-full w-0.5 bg-gray-200", "aria-hidden": "true" }, ad = { class: "relative flex space-x-3" }, od = { class: "min-w-0 flex-1 pt-1.5 flex justify-between space-x-4 items-center" }, rd = { class: "text-sm text-gray-500" }, id = ["onClick"], sd = { class: "text-right text-sm whitespace-nowrap text-gray-500" }, dd = ["datetime"], ud = { class: "bg-gray-50 px-4 py-4 sm:px-6 z-10" }, cd = { class: "text-sm" }, pd = { class: "h-full w-full flex items-center justify-center flex-col mb-5" }, gd = i("p", { class: "text-xs uppercase text-gray-300 font-bold" }, "No data", -1),
|
|
2401
|
+
} }), Gs = { key: 0, class: "bg-white overflow-hidden shadow rounded-lg" }, Zs = { class: "px-4 py-5 sm:px-6" }, Xs = { class: "text-xl font-bold" }, Qs = { class: "px-4 py-5 sm:p-6" }, ed = { class: "flow-root" }, td = { class: "-mb-8", role: "list" }, ld = { class: "relative pb-8" }, nd = { key: 0, class: "absolute left-4 top-4 -ml-px h-full w-0.5 bg-gray-200", "aria-hidden": "true" }, ad = { class: "relative flex space-x-3" }, od = { class: "min-w-0 flex-1 pt-1.5 flex justify-between space-x-4 items-center" }, rd = { class: "text-sm text-gray-500" }, id = ["onClick"], sd = { class: "text-right text-sm whitespace-nowrap text-gray-500" }, dd = ["datetime"], ud = { class: "bg-gray-50 px-4 py-4 sm:px-6 z-10" }, cd = { class: "text-sm" }, pd = { class: "h-full w-full flex items-center justify-center flex-col mb-5" }, gd = i("p", { class: "text-xs uppercase text-gray-300 font-bold" }, "No data", -1), fd = { key: 1, class: "bg-white overflow-hidden shadow rounded-lg" }, md = i("div", { class: "px-4 py-5 sm:px-6 animate-pulse" }, [i("h1", { class: "text-xl font-bold" }, [i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/4" })])], -1), vd = { class: "px-4 py-5 sm:p-6 animate-pulse" }, hd = { class: "flow-root" }, bd = { class: "-mb-8", role: "list" }, yd = { class: "relative pb-8" }, xd = { key: 0, class: "absolute left-4 top-4 -ml-px h-full w-0.5 bg-gray-200", "aria-hidden": "true" }, wd = z('<div class="relative flex space-x-3"><div><span class="h-8 w-8 rounded-full bg-gray-300 flex items-center justify-center ring-4 ring-white"></span></div><div class="min-w-0 flex-1 pt-1.5 flex justify-between space-x-4 items-center"><div><p class="text-sm text-gray-500 flex-1"><div class="h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-full"></div></p></div><div class="text-right text-sm whitespace-nowrap text-gray-500 flex-1"><div class="h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/4"></div></div></div></div>', 1), kd = i("div", { class: "bg-gray-50 px-4 py-4 sm:px-6 z-10 animate-pulse" }, [i("div", { class: "text-sm" }, [i("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/4" })])], -1), Sd = { name: "uiTimeline" }, Cd = Object.assign(Sd, { props: { name: { type: String, required: true }, timeline: { type: Object }, loading: { type: Boolean, default: true }, empty: { type: Boolean, default: false } }, setup: (t2) => (l2, r2) => {
|
|
2396
2402
|
const s2 = $("uiIcon");
|
|
2397
|
-
return t2.loading ? (e(), a("div",
|
|
2403
|
+
return t2.loading ? (e(), a("div", fd, [md, i("div", vd, [i("div", hd, [i("ul", bd, [(e(), a(k, null, P(10, (t3) => i("li", { key: l2.index }, [i("div", yd, [10 !== t3 ? (e(), a("span", xd)) : R("", true), wd])])), 64))])])]), kd])) : (e(), a("div", Gs, [i("div", Zs, [i("h1", Xs, _(t2.name), 1)]), B(i("div", Qs, [i("div", ed, [i("ul", td, [(e(true), a(k, null, P(t2.timeline.items, (r3, d2) => (e(), a("li", { key: d2 }, [i("div", ld, [d2 !== t2.timeline.items.length - 1 ? (e(), a("span", nd)) : R("", true), i("div", ad, [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", od, [i("div", null, [i("p", rd, [i("a", { onClick: (e2) => l2.$emit("timelineEventClicked", r3.linkId), class: "font-medium text-indigo-600 hover:text-indigo-800 cursor-pointer" }, _(r3.target), 9, id), I(" " + _(r3.content), 1)])]), i("div", sd, [i("time", { datetime: r3.datetime }, _(r3.date), 9, dd)])])])])]))), 128))])])], 512), [[L, !t2.empty]]), B(i("div", ud, [i("div", cd, [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", pd, [o(J, { icon: u(hn), color: "gray", loading: false, size: "huge" }, null, 8, ["icon"]), gd], 512), [[L, t2.empty]])]));
|
|
2398
2404
|
} }), Od = { name: "uiTopbar", props: ["navigation", "logo", "profileMenu", "brand", "accountLogo", "alerted"], components: { Disclosure: Ol, DisclosureButton: Ml, DisclosurePanel: Dl, Menu: Bl, MenuButton: Al, MenuItem: Fl, MenuItems: Ll, Bars3Icon: function(t2, l2) {
|
|
2399
2405
|
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" })]);
|
|
2400
2406
|
}, XMarkIcon: Cn } }, Md = { class: "mx-auto px-6 lg:px-8" }, Dd = { class: "flex justify-between h-20" }, Ed = { class: "flex" }, Td = { class: "-ml-2 mr-2 flex items-center lg:hidden" }, Id = i("span", { class: "sr-only" }, "Open main menu", -1), _d = ["src"], jd = { class: "flex items-center" }, Pd = { class: "lg:ml-4 lg:flex-shrink-0 lg:flex lg:items-center hidden" }, Rd = { class: "redCircle flex items-center justify-center h-4 w-4 bg-red-500 rounded-full absolute -top-0 -left-1" }, Bd = [i("span", { class: "animate-ping absolute inline-flex h-4 w-4 bg-red-500 rounded-full opacity-75" }, null, -1)], Ad = ["src"], Ld = ["onClick"], Fd = { class: "pt-2 pb-3 space-y-1" }, Nd = ["onClick"], zd = { class: "pt-4 pb-3 border-t border-gray-200" }, $d = { class: "flex items-center px-4 sm:px-6" }, Vd = { class: "flex-shrink-0" }, Hd = ["src"], Yd = { key: 0, class: "ml-3" }, qd = { class: "text-base font-medium text-gray-800" }, Ud = { class: "text-sm font-medium text-gray-500" }, Wd = { class: "mt-3 space-y-1" }, Kd = ["onClick"];
|
|
2401
2407
|
const Jd = Vo(Od, [["render", function(l2, r2, s2, d2, u2, c2) {
|
|
2402
|
-
const p2 = $("Bars3Icon"), g2 = $("XMarkIcon"),
|
|
2403
|
-
return e(), t(x2, { as: "nav", class: "bg-white shadow z-10" }, { default: T(({ open: d3 }) => [i("div", Md, [i("div", Dd, [i("div", Ed, [i("div", Td, [o(
|
|
2408
|
+
const p2 = $("Bars3Icon"), g2 = $("XMarkIcon"), f2 = $("DisclosureButton"), m2 = $("MenuButton"), v2 = $("MenuItem"), h2 = $("MenuItems"), b2 = $("Menu"), y2 = $("DisclosurePanel"), x2 = $("Disclosure");
|
|
2409
|
+
return e(), t(x2, { as: "nav", class: "bg-white shadow z-10" }, { default: T(({ open: d3 }) => [i("div", Md, [i("div", Dd, [i("div", Ed, [i("div", Td, [o(f2, { 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: T(() => [Id, d3 ? (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, _d)])]), i("div", jd, [i("div", Pd, [o(b2, { as: "div", class: "ml-3 relative" }, { default: T(() => [i("div", null, [B(o(m2, { class: "bg-white rounded-full flex text-sm focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 relative" }, { default: T(() => [B(i("div", Rd, Bd, 512), [[L, s2.alerted]]), i("img", { class: "h-10 w-10 rounded-full", src: s2.accountLogo }, null, 8, Ad)]), _: 1 }, 512), [[L, s2.accountLogo]])]), o(j, { "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: T(() => [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: T(() => [(e(true), a(k, null, P(s2.profileMenu, (a2) => (e(), t(v2, { key: a2.name }, { default: T(({ 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, Ld)]), _: 2 }, 1024))), 128))]), _: 1 })]), _: 1 })]), _: 1 })])])])]), o(y2, { class: "lg:hidden" }, { default: T(() => [i("div", Fd, [(e(true), a(k, null, P(s2.navigation, (a2) => (e(), t(f2, { 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: T(() => [i("p", { onClick: (e2) => l2.$emit("topBarClick", a2.id) }, _(a2.name), 9, Nd)]), _: 2 }, 1032, ["class"]))), 128))]), i("div", zd, [i("div", $d, [i("div", Vd, [i("img", { class: "h-10 w-10 rounded-full", src: s2.accountLogo }, null, 8, Hd)]), s2.brand ? (e(), a("div", Yd, [i("div", qd, _(s2.brand.title), 1), i("div", Ud, _(s2.brand.subtitle), 1)])) : R("", true)]), i("div", Wd, [(e(true), a(k, null, P(s2.profileMenu, (n2) => (e(), t(f2, { 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: T(() => [i("p", { onClick: (e2) => l2.$emit("topBarClick", n2.id) }, _(n2.name), 9, Kd)]), _: 2 }, 1024))), 128))])])]), _: 1 })]), _: 1 });
|
|
2404
2410
|
}]]), Gd = { chart: { type: "bar", toolbar: { show: false }, zoom: { enabled: false } }, colors: ["#715aff"], dataLabels: { enabled: true, formatter: function(e2, t2) {
|
|
2405
2411
|
return t2.w.globals.labels[t2.dataPointIndex] + ": " + e2;
|
|
2406
2412
|
} }, markers: { strokeWidth: 0, size: 4, hover: { size: 8 } }, plotOptions: { bar: { borderRadius: 0, horizontal: true, barHeight: "80%", isFunnel: true } } }, Zd = { class: "chart-header flex flex-row justify-between" }, Xd = { class: "text-sm font-medium text-gray-500 truncate" }, Qd = { class: "chart-content" }, eu = { class: "h-full w-full flex items-center justify-center flex-col" }, tu = i("p", { class: "text-xs uppercase text-gray-300 font-bold" }, "No data", -1), lu = { class: "card chart apex-chart px-4 py-5 bg-white shadow rounded-lg overflow-hidden sm:p-6 flex grow h-80" }, nu = [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)], au = { name: "uiChart" }, ou = Object.assign(au, { 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 }) {
|
|
2407
|
-
const r2 = l2, s2 = t2, c2 = d(() => ({ ...s2.options, ...Gd })), p2 = d(() => s2.series), g2 = () => r2("chartUpdated"),
|
|
2413
|
+
const r2 = l2, s2 = t2, c2 = d(() => ({ ...s2.options, ...Gd })), p2 = d(() => s2.series), g2 = () => r2("chartUpdated"), f2 = (e2, t3, l3) => {
|
|
2408
2414
|
r2("dataPointSelection", { id: s2.id, chartContext: t3, config: l3, event: e2 });
|
|
2409
2415
|
};
|
|
2410
|
-
return (l3, r3) => (e(), a(k, 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", Zd, [i("div", Xd, _(t2.title), 1), o(Ur, { range: t2.range, onRangeSelected: r3[0] || (r3[0] = (e2) => l3.$emit("selectedRange", { range: e2, chartId: t2.id })) }, null, 8, ["range"])]), B(i("div", Qd, [o(u(q), { type: l3.bar, series: p2.value, width: "100%", height: t2.height, options: c2.value, onUpdated: g2, onMounted: g2, onDataPointSelection:
|
|
2411
|
-
} }), ru = { class: "w-full flex flex-col items-center justify-center p-10 grow" }, iu = { class: "text-2xl mt-4 font-bold" }, su = { class: "buttons flex flex-row items-center justify-center mt-8 gap-x-1" }, du = { __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", ru, [o(J, { loading: false, icon: u(hn), size: "massive", color: "gray" }, null, 8, ["icon"]), i("h2", iu, _(l2.title), 1), i("p", null, _(l2.message), 1), i("div", su, [(e(true), a(k, null, P(l2.actions, (l3, a2) => (e(), t(ee, { key: a2, loading: false, onClick: (e2) => n3.$emit("action", l3.action) }, { default: T(() => [I(_(l3.text), 1)]), _: 2 }, 1032, ["onClick"]))), 128))])])) }, uu = i("div", { class: "fixed inset-0" }, null, -1), cu = { class: "fixed inset-0 overflow-hidden" }, pu = { class: "absolute inset-0 overflow-hidden" }, gu = { class: "pointer-events-none fixed inset-y-0 right-0 flex max-w-full pl-10" },
|
|
2416
|
+
return (l3, r3) => (e(), a(k, 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", Zd, [i("div", Xd, _(t2.title), 1), o(Ur, { range: t2.range, onRangeSelected: r3[0] || (r3[0] = (e2) => l3.$emit("selectedRange", { range: e2, chartId: t2.id })) }, null, 8, ["range"])]), B(i("div", Qd, [o(u(q), { type: l3.bar, series: p2.value, width: "100%", height: t2.height, options: c2.value, onUpdated: g2, onMounted: g2, onDataPointSelection: f2 }, null, 8, ["type", "series", "height", "options"])], 512), [[L, !t2.empty]]), B(i("div", eu, [o(J, { icon: u(hn), color: "gray", loading: false, size: "huge" }, null, 8, ["icon"]), tu], 512), [[L, t2.empty]])], 2), [[L, !t2.loading]]), B(i("div", lu, nu, 512), [[L, t2.loading]])], 64));
|
|
2417
|
+
} }), ru = { class: "w-full flex flex-col items-center justify-center p-10 grow" }, iu = { class: "text-2xl mt-4 font-bold" }, su = { class: "buttons flex flex-row items-center justify-center mt-8 gap-x-1" }, du = { __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", ru, [o(J, { loading: false, icon: u(hn), size: "massive", color: "gray" }, null, 8, ["icon"]), i("h2", iu, _(l2.title), 1), i("p", null, _(l2.message), 1), i("div", su, [(e(true), a(k, null, P(l2.actions, (l3, a2) => (e(), t(ee, { key: a2, loading: false, onClick: (e2) => n3.$emit("action", l3.action) }, { default: T(() => [I(_(l3.text), 1)]), _: 2 }, 1032, ["onClick"]))), 128))])])) }, uu = i("div", { class: "fixed inset-0" }, null, -1), cu = { class: "fixed inset-0 overflow-hidden" }, pu = { class: "absolute inset-0 overflow-hidden" }, gu = { class: "pointer-events-none fixed inset-y-0 right-0 flex max-w-full pl-10" }, fu = { class: "flex h-full flex-col overflow-y-scroll bg-white shadow-xl" }, mu = { class: "bg-indigo-700 px-4 py-6 sm:px-6" }, vu = { class: "flex items-center justify-between" }, hu = { class: "ml-3 flex h-7 items-center" }, bu = i("span", { class: "absolute -inset-2.5" }, null, -1), yu = i("span", { class: "sr-only" }, "Close panel", -1), xu = { class: "mt-1" }, wu = { class: "text-sm text-indigo-300" }, ku = { class: "relative flex-1 px-4 py-6 sm:px-6" }, Su = { name: "uiRightSidebar" }, Cu = Object.assign(Su, { props: { title: { type: String, required: true }, description: { type: String }, open: { type: Boolean, default: false } }, emits: ["closeRightBar"], setup(l2, { emit: n2 }) {
|
|
2412
2418
|
const a2 = n2;
|
|
2413
|
-
return (n3, s2) => (e(), t(u(on), { as: "template", show: l2.open }, { default: T(() => [o(u(bl), { as: "div", class: "relative z-10", onClose: s2[1] || (s2[1] = (e2) => a2("closeRightBar")) }, { default: T(() => [uu, i("div", cu, [i("div", pu, [i("div", gu, [o(u(nn), { 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: T(() => [o(u(yl), { class: "pointer-events-auto w-screen max-w-md" }, { default: T(() => [i("div",
|
|
2419
|
+
return (n3, s2) => (e(), t(u(on), { as: "template", show: l2.open }, { default: T(() => [o(u(bl), { as: "div", class: "relative z-10", onClose: s2[1] || (s2[1] = (e2) => a2("closeRightBar")) }, { default: T(() => [uu, i("div", cu, [i("div", pu, [i("div", gu, [o(u(nn), { 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: T(() => [o(u(yl), { class: "pointer-events-auto w-screen max-w-md" }, { default: T(() => [i("div", fu, [i("div", mu, [i("div", vu, [o(u(xl), { class: "text-base font-semibold leading-6 text-white" }, { default: T(() => [I(_(l2.title), 1)]), _: 1 }), i("div", hu, [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")) }, [bu, yu, o(u(Cn), { class: "h-6 w-6 ring-0", "aria-hidden": "true" })])])]), i("div", xu, [i("p", wu, _(l2.description), 1)])]), i("div", ku, [r(n3.$slots, "default")])])]), _: 3 })]), _: 3 })])])])]), _: 3 })]), _: 3 }, 8, ["show"]));
|
|
2414
2420
|
} }), Ou = { class: "uiGallery" }, Mu = { 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" }, Du = { 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" }, Eu = ["src"], Tu = ["onClick"], Iu = { class: "pointer-events-none mt-2 block truncate text-sm font-medium text-gray-900" }, _u = { class: "flex items-center justify-between" }, ju = { class: "pointer-events-none block text-sm font-medium text-gray-500" }, Pu = { 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" }, Ru = [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)], Bu = { name: "uiGallery" }, Au = Object.assign(Bu, { props: { galleryId: String, gallery: Array, loading: Boolean, literals: Object }, setup(l2, { emit: n2 }) {
|
|
2415
2421
|
const r2 = n2, d2 = s(false);
|
|
2416
|
-
return (n3, s2) => (e(), a("div", Ou, [l2.loading ? R("", true) : (e(), t(
|
|
2422
|
+
return (n3, s2) => (e(), a("div", Ou, [l2.loading ? R("", true) : (e(), t(mo, { key: 0, open: d2.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) => {
|
|
2417
2423
|
return t2 = e2, d2.value = false, void r2("modalAction", t2);
|
|
2418
2424
|
var t2;
|
|
2419
2425
|
}) }, { default: T(() => [i("p", null, _(l2.literals.modalText), 1)]), _: 1 }, 8, ["open", "title", "actions"])), l2.loading ? (e(), a("ul", Pu, [(e(), a(k, null, P(4, (e2) => i("li", null, Ru)), 64))])) : (e(), a("ul", Mu, [(e(true), a(k, null, P(l2.gallery, (t2) => (e(), a("li", { key: t2.source, class: "relative" }, [i("div", Du, [i("img", { src: t2.source, alt: "", class: "pointer-events-none object-cover group-hover:opacity-75" }, null, 8, Eu), i("button", { type: "button", class: "absolute inset-0 focus:outline-none", onClick: (e2) => n3.$emit("imgClicked", t2) }, null, 8, Tu)]), i("p", Iu, _(t2.title), 1), i("div", _u, [i("p", ju, _(t2.size), 1), o(J, { class: "cursor-pointer", icon: u(kn), 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) => d2.value = true), class: "mt-8", loading: false, color: "red", size: "small" }, { default: T(() => [I(_(l2.literals.deleteAllImages), 1)]), _: 1 })) : R("", true)]));
|
|
@@ -2426,17 +2432,17 @@ const Jd = Vo(Od, [["render", function(l2, r2, s2, d2, u2, c2) {
|
|
|
2426
2432
|
} }), Wu = { class: "chart-header flex flex-row justify-between" }, Ku = { class: "text-sm font-medium text-gray-500 truncate" }, Ju = { class: "chart-content" }, Gu = { class: "h-full w-full flex items-center justify-center flex-col" }, Zu = i("p", { class: "text-xs uppercase text-gray-300 font-bold" }, "No data", -1), Xu = { class: "card chart apex-chart px-4 py-5 bg-white shadow rounded-lg overflow-hidden sm:p-6 flex grow h-80" }, Qu = [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)], ec = { name: "uiCircleChart" }, tc = Object.assign(ec, { 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 }) {
|
|
2427
2433
|
const r2 = l2, s2 = t2;
|
|
2428
2434
|
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 } } };
|
|
2429
|
-
const p2 = d(() => s2.series), g2 = d(() => ({ ...c2, ...s2.options })),
|
|
2435
|
+
const p2 = d(() => s2.series), g2 = d(() => ({ ...c2, ...s2.options })), f2 = () => r2("chartUpdated"), m2 = (e2, t3, l3) => {
|
|
2430
2436
|
r2("dataPointSelection", { id: s2.id, chartContext: t3, config: l3, event: e2 });
|
|
2431
2437
|
};
|
|
2432
|
-
return (l3, r3) => (e(), a(k, 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", Wu, [i("div", Ku, _(t2.title), 1), o(Ur, { range: t2.range, onRangeSelected: r3[0] || (r3[0] = (e2) => l3.$emit("selectedRange", { range: e2, chartId: t2.id })) }, null, 8, ["range"])]), B(i("div", Ju, [o(u(q), { class: "flex items-center justify-center", type: "donut", series: p2.value, options: g2.value, height: t2.height, onUpdated:
|
|
2438
|
+
return (l3, r3) => (e(), a(k, 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", Wu, [i("div", Ku, _(t2.title), 1), o(Ur, { range: t2.range, onRangeSelected: r3[0] || (r3[0] = (e2) => l3.$emit("selectedRange", { range: e2, chartId: t2.id })) }, null, 8, ["range"])]), B(i("div", Ju, [o(u(q), { class: "flex items-center justify-center", type: "donut", series: p2.value, options: g2.value, height: t2.height, onUpdated: f2, onMounted: f2, onDataPointSelection: m2 }, null, 8, ["series", "options", "height"])], 512), [[L, !t2.empty]]), B(i("div", Gu, [o(J, { icon: u(hn), color: "gray", loading: false, size: "huge" }, null, 8, ["icon"]), Zu], 512), [[L, t2.empty]])], 2), [[L, !t2.loading]]), B(i("div", Xu, Qu, 512), [[L, t2.loading]])], 64));
|
|
2433
2439
|
} }), lc = { key: 0, class: "flex flex-col lg:flex-row w-full gap-y-4 gap-x-2" }, nc = { key: 1, class: "flex flex-col lg:flex-row w-full gap-y-4 gap-x-2" }, ac = { name: "uiDateRange" }, oc = Object.assign(ac, { 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) {
|
|
2434
2440
|
let l2 = O({ from: void 0, to: void 0 });
|
|
2435
2441
|
return (r2, i2) => t2.loading ? (e(), a("div", nc, [o($n, { loading: true }), o($n, { loading: true }), o(ee, { loading: true }, { default: T(() => [I("Search")]), _: 1 })])) : (e(), a("div", lc, [o($n, { type: "date", loading: false, 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) => u(l2).from = e2.value) }, null, 8, ["addOn", "name", "color", "value", "error", "disabled", "label"]), o($n, { type: "date", loading: false, class: n([{ "mt-6": t2.label }]), 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) => u(l2).to = e2.value) }, null, 8, ["class", "addOn", "name", "color", "value", "error", "disabled"]), o(ee, { disabled: t2.disabled, color: "primary", loading: false, class: n([{ "mt-6": t2.label }, "h-10"]), onClick: i2[2] || (i2[2] = (e2) => r2.$emit("uiDateRangeButtonClicked", u(l2))) }, { default: T(() => [I(_(t2.literals.search), 1)]), _: 1 }, 8, ["disabled", "class"])]));
|
|
2436
2442
|
} }), rc = { class: "flex justify-between items-center" }, ic = { key: 0, class: "block text-sm font-medium text-gray-700" }, sc = { key: 1, class: "text-[10px] text-gray-500 uppercase justify-self-end" }, dc = { key: 1, class: "h-2 animate-pulse bg-gray-200 rounded-full dark:bg-gray-300 w-full" }, uc = { name: "uiRangeSlider" }, cc = Object.assign(uc, { 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 }) {
|
|
2437
2443
|
const r2 = o2, d2 = s(l2.sliderValue);
|
|
2438
2444
|
return (o3, s2) => (e(), a("div", null, [i("div", rc, [l2.label ? (e(), a("label", ic, _(l2.label), 1)) : R("", true), l2.optional ? (e(), a("span", sc, _(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", dc)) : (e(), t(u(W), { key: 0, modelValue: d2.value, "onUpdate:modelValue": s2[0] || (s2[0] = (e2) => d2.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)]));
|
|
2439
|
-
} }), pc = { class: "mt-1 mb-8 text-sm text-gray-500" }, gc = { name: "uiSectionTitle" },
|
|
2445
|
+
} }), pc = { class: "mt-1 mb-8 text-sm text-gray-500" }, gc = { name: "uiSectionTitle" }, fc = Object.assign(gc, { props: { title: { type: String, required: true }, description: { type: String, default: void 0 } }, setup: (t2) => (l2, o2) => (e(), a(k, 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", pc, _(t2.description), 1)], 64)) }), mc = { key: 0, class: "col-span-1 flex flex-col divide-y divide-gray-200 rounded-lg bg-white text-center shadow" }, vc = { class: "flex flex-1 flex-col p-8" }, hc = { class: "text-2xl font-bold text-gray-900" }, bc = { class: "mt-1 flex flex-grow flex-col justify-between" }, yc = { class: "mt-3 flex flex-wrap gap-x-1 gap-y-1 justify-center" }, xc = { key: 1, class: "col-span-1 flex flex-col divide-y divide-gray-200 rounded-lg bg-white text-center shadow" }, wc = { class: "flex flex-1 flex-col p-8" }, kc = { class: "rounded-md p-3 flex items-center justify-center mx-auto mb-4 bg-gray-200" }, Sc = i("div", { class: "h-4 bg-gray-200 rounded-full dark:bg-gray-300 w-1/3 mx-auto" }, null, -1), Cc = { class: "mt-1 flex flex-grow flex-col justify-between" }, Oc = { class: "mt-3 flex flex-wrap gap-x-1 gap-y-1 justify-center" }, Mc = { name: "uiDeviceStatus" }, Dc = Object.assign(Mc, { props: { id: { type: String, required: true }, name: { type: String, required: true }, icon: { type: Function, required: true }, color: String, qty: Number, tags: Array, loading: { type: Boolean, default: true } }, setup: (l2) => (r2, s2) => l2.loading ? (e(), a("div", xc, [i("div", wc, [i("div", kc, [o(J, { icon: l2.icon, size: "huge", class: "text-white", "aria-hidden": "true", loading: l2.loading }, null, 8, ["icon", "loading"])]), Sc, i("dl", Cc, [i("dd", Oc, [(e(true), a(k, null, P(l2.tags, (n2, a2) => (e(), t(ca, { key: a2, loading: l2.loading, event: n2.event, color: n2.color, onTagEvent: s2[2] || (s2[2] = (e2) => r2.$emit("deviceStatusTagClicked", e2)) }, { default: T(() => [I(_(n2.name), 1)]), _: 2 }, 1032, ["loading", "event", "color"]))), 128))])])])])) : (e(), a("div", mc, [i("div", vc, [i("div", { class: n(["rounded-md p-3 flex items-center justify-center mx-auto mb-4", { "bg-green-500": !l2.color || "success" === l2.color, "bg-red-500": "danger" === l2.color, "bg-yellow-500": "warning" === l2.color }]) }, [o(J, { icon: l2.icon, size: "huge", class: "text-white", "aria-hidden": "true", loading: false }, null, 8, ["icon"])], 2), i("h3", hc, [I(_(l2.name) + " ", 1), B(i("span", { class: "text-indigo-600 hover:text-indigo-900 cursor-pointer", onClick: s2[0] || (s2[0] = (e2) => r2.$emit("deviceStatusQtyClicked", l2.id)) }, "(" + _(l2.qty) + ")", 513), [[L, l2.qty]])]), i("dl", bc, [i("dd", yc, [(e(true), a(k, null, P(l2.tags, (l3, n2) => (e(), t(ca, { key: n2, loading: false, event: l3.event, color: l3.color, onTagEvent: s2[1] || (s2[1] = (e2) => r2.$emit("deviceStatusTagClicked", e2)) }, { default: T(() => [I(_(l3.name), 1)]), _: 2 }, 1032, ["event", "color"]))), 128))])])])])) }), Ec = { uiButton: ee, uiIcon: J, uiCheckbox: de, uiDropdown: In, uiInput: $n, uiInputFile: la, uiSelect: ia, uiTag: ca, uiTextArea: ba, uiToggle: Ca, uiAlert: Ba, uiBreadcrumbs: qa, uiCard: eo, uiFilter: lo, uiModal: mo, uiNotification: Do, uiTaskList: zo, uiPriceCalendar: Hr, uiChart: ti, uiFooter: oi, uiLoadingScreen: si, uiPagination: Ci, uiSidebar: zi, uiStats: es, uiStripedCard: vs, uiTable: $s, uiTabs: Js, uiTimeline: Cd, uiTopbar: Jd, uiFunnelChartV2: ou, uiNoResults: du, uiRightSidebar: Cu, uiGallery: Au, uiDragAndDrop: Uu, uiCircleChart: tc, uiDateRange: oc, uiRangeSlider: cc, uiSectionTitle: fc, uiDeviceStatus: Dc }, Tc = { install(e2) {
|
|
2440
2446
|
Object.keys(Ec).forEach((t2) => {
|
|
2441
2447
|
e2.component(t2, Ec[t2]);
|
|
2442
2448
|
});
|