@citruslime/ui 2.6.6-beta.0 → 2.6.6-beta.2
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.
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { Icon as
|
|
2
|
-
import { defineComponent as Q, ref as I, openBlock as p, createElementBlock as
|
|
3
|
-
import { generateStringId as
|
|
1
|
+
import { Icon as H } from "@iconify/vue";
|
|
2
|
+
import { defineComponent as Q, ref as I, openBlock as p, createElementBlock as h, renderSlot as P, normalizeProps as ce, guardReactiveProps as ve, Fragment as X, createElementVNode as b, normalizeClass as V, createVNode as S, unref as v, Transition as Te, withCtx as Y, withDirectives as le, mergeProps as fe, vShow as te, createBlock as G, Teleport as ll, renderList as se, toDisplayString as q, createCommentVNode as F, nextTick as Fe, computed as R, toHandlers as Vl, withModifiers as ne, useCssVars as Ll, vModelText as Pl, onMounted as Ze, watch as oe, vModelDynamic as Ul, toRefs as Bl, withKeys as Ee, onUnmounted as tl, resolveComponent as Tl, createTextVNode as de, watchEffect as zl, createSlots as al, normalizeStyle as _l } from "vue";
|
|
3
|
+
import { generateStringId as Hl, highlightText as xl } from "@citruslime/utils";
|
|
4
4
|
import { useMediaQuery as Gl, useDebounceFn as ol, unrefElement as Zl, tryOnScopeDispose as Kl, onClickOutside as nl, useTimeoutFn as $l, useWindowSize as Ql } from "@vueuse/core";
|
|
5
5
|
import { createI18n as Wl, useI18n as ie } from "vue-i18n";
|
|
6
|
-
import { DateTime as
|
|
6
|
+
import { DateTime as x } from "luxon";
|
|
7
7
|
import { DatePicker as We } from "v-calendar";
|
|
8
8
|
import { copy as ge } from "@citruslime/vue-utils";
|
|
9
9
|
const Yl = { class: "cl-overflow-hidden" }, Jl = /* @__PURE__ */ Q({
|
|
@@ -26,8 +26,8 @@ const Yl = { class: "cl-overflow-hidden" }, Jl = /* @__PURE__ */ Q({
|
|
|
26
26
|
o.id !== c && (o.open = !1);
|
|
27
27
|
}), r.open = !r.open);
|
|
28
28
|
}
|
|
29
|
-
return (c, r) => (p(),
|
|
30
|
-
|
|
29
|
+
return (c, r) => (p(), h("div", Yl, [
|
|
30
|
+
P(c.$slots, "default", ce(ve({ isItemOpen: t, toggleItem: n })))
|
|
31
31
|
]));
|
|
32
32
|
}
|
|
33
33
|
}), Xl = { class: "cl-absolute cl-left-5 cl-top-5" }, et = { class: "cl-font-semibold cl-ml-10 cl-p-4 cl-select-none cl-text-grey-5" }, lt = { class: "cl-overflow-hidden" }, tt = /* @__PURE__ */ Q({
|
|
@@ -45,17 +45,17 @@ const Yl = { class: "cl-overflow-hidden" }, Jl = /* @__PURE__ */ Q({
|
|
|
45
45
|
function t() {
|
|
46
46
|
l.disabled || e("toggle");
|
|
47
47
|
}
|
|
48
|
-
return (n, c) => (p(),
|
|
48
|
+
return (n, c) => (p(), h(X, null, [
|
|
49
49
|
b("div", {
|
|
50
|
-
class:
|
|
50
|
+
class: V(["cl-border-b cl-border-grey-1 cl-relative", {
|
|
51
51
|
"cl-bg-grey-0": n.disabled,
|
|
52
52
|
"cl-cursor-pointer": !n.disabled
|
|
53
53
|
}]),
|
|
54
54
|
onClick: t
|
|
55
55
|
}, [
|
|
56
56
|
b("div", Xl, [
|
|
57
|
-
S(v(
|
|
58
|
-
class:
|
|
57
|
+
S(v(H), {
|
|
58
|
+
class: V(["cl-duration-300 cl-ease-in-out cl-text-grey-3 cl-transform-gpu cl-transition-transform", {
|
|
59
59
|
"cl-rotate-180": n.open
|
|
60
60
|
}]),
|
|
61
61
|
icon: "ph:caret-down-bold",
|
|
@@ -63,14 +63,14 @@ const Yl = { class: "cl-overflow-hidden" }, Jl = /* @__PURE__ */ Q({
|
|
|
63
63
|
}, null, 8, ["class"])
|
|
64
64
|
]),
|
|
65
65
|
b("div", et, [
|
|
66
|
-
|
|
66
|
+
P(n.$slots, "title")
|
|
67
67
|
])
|
|
68
68
|
], 2),
|
|
69
69
|
b("div", lt, [
|
|
70
70
|
S(Te, { name: "grow-down" }, {
|
|
71
71
|
default: Y(() => [
|
|
72
72
|
le(b("div", fe(n.$attrs, { class: "cl-ml-10 cl-p-4" }), [
|
|
73
|
-
|
|
73
|
+
P(n.$slots, "default")
|
|
74
74
|
], 16), [
|
|
75
75
|
[te, n.open]
|
|
76
76
|
])
|
|
@@ -87,14 +87,14 @@ const Yl = { class: "cl-overflow-hidden" }, Jl = /* @__PURE__ */ Q({
|
|
|
87
87
|
return l;
|
|
88
88
|
}, at = {}, ot = { class: "cl-border-b cl-border-grey-1 cl-font-semibold cl-pl-14 cl-pr-4 cl-py-2 cl-text-grey-3 cl-text-sm" };
|
|
89
89
|
function nt(a, e) {
|
|
90
|
-
return p(),
|
|
91
|
-
|
|
90
|
+
return p(), h("div", ot, [
|
|
91
|
+
P(a.$slots, "default")
|
|
92
92
|
]);
|
|
93
93
|
}
|
|
94
94
|
const rt = /* @__PURE__ */ ke(at, [["render", nt]]), Pe = I([]);
|
|
95
95
|
function sl(a) {
|
|
96
96
|
const e = {
|
|
97
|
-
id:
|
|
97
|
+
id: Hl(),
|
|
98
98
|
...a
|
|
99
99
|
};
|
|
100
100
|
Pe.value.push(e), setTimeout(() => Cl(e), a.duration);
|
|
@@ -112,7 +112,7 @@ const st = ["onClick"], it = { class: "cl-flex-1 cl-select-none cl-text-ellipsis
|
|
|
112
112
|
setup(a) {
|
|
113
113
|
return (e, l) => (p(), G(ll, { to: e.container }, [
|
|
114
114
|
b("div", {
|
|
115
|
-
class:
|
|
115
|
+
class: V(["cl-fixed cl-w-80 cl-z-50", {
|
|
116
116
|
"cl-top-5 cl-left-5": e.position === "top-left",
|
|
117
117
|
"cl-top-5 cl-left-1/2": e.position === "top-centre",
|
|
118
118
|
"cl-top-5 cl-right-5": e.position === "top-right",
|
|
@@ -121,7 +121,7 @@ const st = ["onClick"], it = { class: "cl-flex-1 cl-select-none cl-text-ellipsis
|
|
|
121
121
|
"cl-bottom-5 cl-right-5": e.position === "bottom-right"
|
|
122
122
|
}])
|
|
123
123
|
}, [
|
|
124
|
-
(p(!0),
|
|
124
|
+
(p(!0), h(X, null, se(v(Pe), (t, n) => (p(), h("div", fe(e.$attrs, {
|
|
125
125
|
key: n,
|
|
126
126
|
class: ["cl-break-words cl-cursor-pointer cl-flex cl-font-semibold cl-group cl-mb-2 cl-overflow-hidden cl-p-4 cl-rounded cl-shadow-lg cl-text-sm", {
|
|
127
127
|
"cl-bg-white": t.colour === "default",
|
|
@@ -133,7 +133,7 @@ const st = ["onClick"], it = { class: "cl-flex-1 cl-select-none cl-text-ellipsis
|
|
|
133
133
|
onClick: (c) => v(Cl)(t)
|
|
134
134
|
}), [
|
|
135
135
|
b("span", it, q(t.message), 1),
|
|
136
|
-
S(v(
|
|
136
|
+
S(v(H), {
|
|
137
137
|
class: "cl-inline-block cl-opacity-0 cl-transition-opacity group-hover:cl-opacity-100",
|
|
138
138
|
icon: "ph:x",
|
|
139
139
|
size: 16,
|
|
@@ -149,28 +149,28 @@ const st = ["onClick"], it = { class: "cl-flex-1 cl-select-none cl-text-ellipsis
|
|
|
149
149
|
removePadding: { type: Boolean, default: !1 }
|
|
150
150
|
},
|
|
151
151
|
setup(a) {
|
|
152
|
-
return (e, l) => (p(),
|
|
152
|
+
return (e, l) => (p(), h(X, null, [
|
|
153
153
|
S(Ol, {
|
|
154
|
-
class:
|
|
154
|
+
class: V({
|
|
155
155
|
"first:cl-mt-[4.25rem]": e.$slots.header
|
|
156
156
|
})
|
|
157
157
|
}, null, 8, ["class"]),
|
|
158
158
|
b("div", ct, [
|
|
159
|
-
|
|
159
|
+
P(e.$slots, "header"),
|
|
160
160
|
b("div", {
|
|
161
|
-
class:
|
|
161
|
+
class: V(["cl-content-start cl-flex cl-flex-nowrap cl-items-stretch cl-max-h-full cl-relative cl-w-full xl:cl-max-h-screen", {
|
|
162
162
|
"cl-pt-20": e.$slots.header
|
|
163
163
|
}])
|
|
164
164
|
}, [
|
|
165
|
-
|
|
165
|
+
P(e.$slots, "navigation"),
|
|
166
166
|
b("div", {
|
|
167
167
|
id: "cl-ui-app-container",
|
|
168
|
-
class:
|
|
168
|
+
class: V(["cl-grow cl-max-h-full cl-overflow-x-hidden cl-overflow-y-auto cl-overscroll-y-none cl-w-auto", {
|
|
169
169
|
"lg:cl-pb-0": e.removePadding,
|
|
170
170
|
"lg:cl-pb-8 md:cl-px-8 cl-px-2 md:cl-pt-8 cl-pt-2": !e.removePadding
|
|
171
171
|
}])
|
|
172
172
|
}, [
|
|
173
|
-
|
|
173
|
+
P(e.$slots, "default")
|
|
174
174
|
], 2)
|
|
175
175
|
], 2)
|
|
176
176
|
])
|
|
@@ -179,7 +179,7 @@ const st = ["onClick"], it = { class: "cl-flex-1 cl-select-none cl-text-ellipsis
|
|
|
179
179
|
});
|
|
180
180
|
const dt = {}, ft = { class: "loading-spinner" };
|
|
181
181
|
function pt(a, e) {
|
|
182
|
-
return p(),
|
|
182
|
+
return p(), h("div", ft);
|
|
183
183
|
}
|
|
184
184
|
const Ke = /* @__PURE__ */ ke(dt, [["render", pt], ["__scopeId", "data-v-a21dc5d2"]]), mt = ["disabled"], be = /* @__PURE__ */ Q({
|
|
185
185
|
inheritAttrs: !1,
|
|
@@ -196,7 +196,7 @@ const Ke = /* @__PURE__ */ ke(dt, [["render", pt], ["__scopeId", "data-v-a21dc5d
|
|
|
196
196
|
focus() {
|
|
197
197
|
l.value && l.value.focus();
|
|
198
198
|
}
|
|
199
|
-
}), (t, n) => (p(),
|
|
199
|
+
}), (t, n) => (p(), h(X, null, [
|
|
200
200
|
le(S(Ke, { class: "relative" }, null, 512), [
|
|
201
201
|
[te, t.loading]
|
|
202
202
|
]),
|
|
@@ -217,7 +217,7 @@ const Ke = /* @__PURE__ */ ke(dt, [["render", pt], ["__scopeId", "data-v-a21dc5d
|
|
|
217
217
|
}],
|
|
218
218
|
disabled: t.disabled
|
|
219
219
|
}), [
|
|
220
|
-
|
|
220
|
+
P(t.$slots, "default")
|
|
221
221
|
], 16, mt), [
|
|
222
222
|
[te, !t.loading]
|
|
223
223
|
])
|
|
@@ -241,45 +241,45 @@ const Ke = /* @__PURE__ */ ke(dt, [["render", pt], ["__scopeId", "data-v-a21dc5d
|
|
|
241
241
|
hover: { type: Boolean, default: !1 }
|
|
242
242
|
},
|
|
243
243
|
setup(a) {
|
|
244
|
-
return (e, l) => (p(),
|
|
245
|
-
class:
|
|
244
|
+
return (e, l) => (p(), h("div", {
|
|
245
|
+
class: V(["cl-border cl-border-transparent cl-overflow-hidden cl-relative cl-rounded-md cl-shadow-lg cl-transition-all", {
|
|
246
246
|
"cl-cursor-pointer hover:cl-shadow-xl hover:cl-border-grey-0": e.hover
|
|
247
247
|
}])
|
|
248
248
|
}, [
|
|
249
|
-
e.$slots.image ? (p(),
|
|
250
|
-
|
|
251
|
-
])) :
|
|
252
|
-
e.$slots.title ? (p(),
|
|
249
|
+
e.$slots.image ? (p(), h("div", bt, [
|
|
250
|
+
P(e.$slots, "image")
|
|
251
|
+
])) : F("", !0),
|
|
252
|
+
e.$slots.title ? (p(), h("div", {
|
|
253
253
|
key: 1,
|
|
254
|
-
class:
|
|
254
|
+
class: V(["cl-border-grey-2 cl-font-normal", {
|
|
255
255
|
"cl-p-2 cl-text-2xl cl-leading-8": e.size === "small",
|
|
256
256
|
"cl-p-4 cl-text-3xl cl-leading-9": e.size === "medium",
|
|
257
257
|
"cl-p-6 cl-text-4xl cl-leading-10": e.size === "large",
|
|
258
258
|
"cl-border-t": e.$slots.image
|
|
259
259
|
}])
|
|
260
260
|
}, [
|
|
261
|
-
|
|
262
|
-
], 2)) :
|
|
261
|
+
P(e.$slots, "title")
|
|
262
|
+
], 2)) : F("", !0),
|
|
263
263
|
b("div", {
|
|
264
|
-
class:
|
|
264
|
+
class: V(["cl-border-grey-2", {
|
|
265
265
|
"cl-p-2": e.size === "small",
|
|
266
266
|
"cl-p-4": e.size === "medium",
|
|
267
267
|
"cl-p-6": e.size === "large",
|
|
268
268
|
"cl-border-t": e.$slots.image || e.$slots.title
|
|
269
269
|
}])
|
|
270
270
|
}, [
|
|
271
|
-
|
|
271
|
+
P(e.$slots, "default")
|
|
272
272
|
], 2),
|
|
273
|
-
e.$slots.footer ? (p(),
|
|
273
|
+
e.$slots.footer ? (p(), h("div", {
|
|
274
274
|
key: 2,
|
|
275
|
-
class:
|
|
275
|
+
class: V(["cl-border-grey-2 cl-border-t", {
|
|
276
276
|
"cl-p-2": e.size === "small",
|
|
277
277
|
"cl-p-4": e.size === "medium",
|
|
278
278
|
"cl-p-6": e.size === "large"
|
|
279
279
|
}])
|
|
280
280
|
}, [
|
|
281
|
-
|
|
282
|
-
], 2)) :
|
|
281
|
+
P(e.$slots, "footer")
|
|
282
|
+
], 2)) : F("", !0)
|
|
283
283
|
], 2));
|
|
284
284
|
}
|
|
285
285
|
}), yt = [
|
|
@@ -496,9 +496,9 @@ function $t(a, e, l, t, n) {
|
|
|
496
496
|
o = t >= (Number(a) || 0), r = ye(o, he("input.greaterOrEqualToValue", { label: l, min: a.toString() }));
|
|
497
497
|
break;
|
|
498
498
|
case "date":
|
|
499
|
-
n ? (s =
|
|
499
|
+
n ? (s = x.fromISO(t).setZone(n), i = x.fromISO(a).setZone(n)) : (s = x.fromISO(t, {
|
|
500
500
|
zone: "UTC"
|
|
501
|
-
}), i =
|
|
501
|
+
}), i = x.fromISO(a, {
|
|
502
502
|
zone: "UTC"
|
|
503
503
|
})), o = s >= i, r = ye(o, he("input.afterOrEqualToValue", {
|
|
504
504
|
label: l,
|
|
@@ -506,9 +506,9 @@ function $t(a, e, l, t, n) {
|
|
|
506
506
|
}));
|
|
507
507
|
break;
|
|
508
508
|
case "datetime":
|
|
509
|
-
n ? (s =
|
|
509
|
+
n ? (s = x.fromISO(t).setZone(n), i = x.fromISO(a).setZone(n)) : (s = x.fromISO(t, {
|
|
510
510
|
zone: "UTC"
|
|
511
|
-
}), i =
|
|
511
|
+
}), i = x.fromISO(a, {
|
|
512
512
|
zone: "UTC"
|
|
513
513
|
})), o = s >= i, n && (i = i.setZone(n)), r = ye(o, he("input.afterOrEqualToValue", {
|
|
514
514
|
label: l,
|
|
@@ -545,9 +545,9 @@ function Ct(a, e, l, t, n) {
|
|
|
545
545
|
o = t <= (Number(a) || 0), r = ye(o, he("input.lessOrEqualToValue", { label: l, max: a.toString() }));
|
|
546
546
|
break;
|
|
547
547
|
case "date":
|
|
548
|
-
n ? (s =
|
|
548
|
+
n ? (s = x.fromISO(t).setZone(n), i = x.fromISO(a).setZone(n)) : (s = x.fromISO(t, {
|
|
549
549
|
zone: "UTC"
|
|
550
|
-
}), i =
|
|
550
|
+
}), i = x.fromISO(a, {
|
|
551
551
|
zone: "UTC"
|
|
552
552
|
})), o = s <= i, r = ye(o, he("input.beforeOrEqualToValue", {
|
|
553
553
|
label: l,
|
|
@@ -555,9 +555,9 @@ function Ct(a, e, l, t, n) {
|
|
|
555
555
|
}));
|
|
556
556
|
break;
|
|
557
557
|
case "datetime":
|
|
558
|
-
n ? (s =
|
|
558
|
+
n ? (s = x.fromISO(t).setZone(n), i = x.fromISO(a).setZone(n)) : (s = x.fromISO(t, {
|
|
559
559
|
zone: "UTC"
|
|
560
|
-
}), i =
|
|
560
|
+
}), i = x.fromISO(a, {
|
|
561
561
|
zone: "UTC"
|
|
562
562
|
})), o = s <= i, r = ye(o, he("input.beforeOrEqualToValue", {
|
|
563
563
|
label: l,
|
|
@@ -634,9 +634,9 @@ const Nt = {
|
|
|
634
634
|
});
|
|
635
635
|
return e({
|
|
636
636
|
focus: n
|
|
637
|
-
}), (o, s) => o.type === "dateRange" ? (p(),
|
|
637
|
+
}), (o, s) => o.type === "dateRange" ? (p(), h("div", Nt, [
|
|
638
638
|
S(be, {
|
|
639
|
-
class:
|
|
639
|
+
class: V(["cl-basis-full cl-border-transparent cl-col-span-4 cl-flex cl-items-center cl-justify-center hover:cl-border-transparent", {
|
|
640
640
|
"cl-text-grey-4 hover:cl-text-grey-3": !o.rangeSelected,
|
|
641
641
|
"cl-text-primary-darker hover:cl-text-primary-dark": o.rangeSelected
|
|
642
642
|
}]),
|
|
@@ -644,17 +644,17 @@ const Nt = {
|
|
|
644
644
|
onClick: s[0] || (s[0] = (i) => o.$emit("togglePopover"))
|
|
645
645
|
}, {
|
|
646
646
|
default: Y(() => [
|
|
647
|
-
S(v(
|
|
647
|
+
S(v(H), {
|
|
648
648
|
icon: "bi:calendar3",
|
|
649
649
|
class: "cl-text-xl icon"
|
|
650
650
|
})
|
|
651
651
|
]),
|
|
652
652
|
_: 1
|
|
653
653
|
}, 8, ["disabled", "class"]),
|
|
654
|
-
o.required ?
|
|
654
|
+
o.required ? F("", !0) : (p(), G(be, {
|
|
655
655
|
key: 0,
|
|
656
656
|
size: "small",
|
|
657
|
-
class:
|
|
657
|
+
class: V(["cl-basis-0 cl-border-transparent cl-flex cl-items-center cl-justify-center hover:cl-border-transparent", {
|
|
658
658
|
"cl-text-grey-4 hover:cl-text-grey-3": !o.rangeSelected,
|
|
659
659
|
"cl-text-danger-dark hover:cl-text-danger-default": o.rangeSelected
|
|
660
660
|
}]),
|
|
@@ -662,14 +662,14 @@ const Nt = {
|
|
|
662
662
|
onClick: s[1] || (s[1] = (i) => o.$emit("clear"))
|
|
663
663
|
}, {
|
|
664
664
|
default: Y(() => [
|
|
665
|
-
S(v(
|
|
665
|
+
S(v(H), {
|
|
666
666
|
icon: "ph:x",
|
|
667
667
|
class: "clear-icon"
|
|
668
668
|
})
|
|
669
669
|
]),
|
|
670
670
|
_: 1
|
|
671
671
|
}, 8, ["disabled", "class"]))
|
|
672
|
-
])) : (p(),
|
|
672
|
+
])) : (p(), h("div", Et, [
|
|
673
673
|
b("input", fe({
|
|
674
674
|
ref_key: "element",
|
|
675
675
|
ref: t
|
|
@@ -679,8 +679,8 @@ const Nt = {
|
|
|
679
679
|
disabled: o.disabled,
|
|
680
680
|
placeholder: r.value
|
|
681
681
|
}, Vl(o.events, !0)), null, 16, At),
|
|
682
|
-
le(S(v(
|
|
683
|
-
class:
|
|
682
|
+
le(S(v(H), {
|
|
683
|
+
class: V(["cl-absolute cl-bg-transparent cl-cursor-text cl-left-2 cl-text-grey-4 cl-top-3.5 icon", {
|
|
684
684
|
"!cl-bg-off-white": o.disabled
|
|
685
685
|
}]),
|
|
686
686
|
icon: o.type === "time" ? "ph-clock" : "ph:calendar",
|
|
@@ -688,19 +688,19 @@ const Nt = {
|
|
|
688
688
|
}, null, 8, ["class", "icon"]), [
|
|
689
689
|
[te, !o.disabled]
|
|
690
690
|
]),
|
|
691
|
-
o.disabled ?
|
|
692
|
-
o.type !== "time" ? (p(), G(v(
|
|
691
|
+
o.disabled ? F("", !0) : (p(), h("div", qt, [
|
|
692
|
+
o.type !== "time" ? (p(), G(v(H), {
|
|
693
693
|
key: 0,
|
|
694
694
|
class: "cl-cursor-pointer hover:cl-text-link-light",
|
|
695
695
|
icon: "ph:arrow-counter-clockwise",
|
|
696
696
|
onClick: s[2] || (s[2] = ne((i) => o.$emit("reset"), ["prevent"]))
|
|
697
|
-
})) :
|
|
698
|
-
!o.required && o.date && (o.type !== "time" || o.date !== "00:00") ? (p(), G(v(
|
|
697
|
+
})) : F("", !0),
|
|
698
|
+
!o.required && o.date && (o.type !== "time" || o.date !== "00:00") ? (p(), G(v(H), {
|
|
699
699
|
key: 1,
|
|
700
700
|
class: "cl-cursor-pointer clear-icon hover:cl-text-link-light md:cl-ml-0.5",
|
|
701
701
|
icon: "ph:x",
|
|
702
702
|
onClick: s[3] || (s[3] = ne((i) => o.$emit("clear"), ["prevent"]))
|
|
703
|
-
})) :
|
|
703
|
+
})) : F("", !0)
|
|
704
704
|
]))
|
|
705
705
|
]));
|
|
706
706
|
}
|
|
@@ -714,12 +714,12 @@ const Ye = /* @__PURE__ */ ke(Rt, [["__scopeId", "data-v-905eee52"]]), Dt = { cl
|
|
|
714
714
|
emits: ["quick-date-selected"],
|
|
715
715
|
setup(a, { emit: e }) {
|
|
716
716
|
const { t: l } = ie();
|
|
717
|
-
return (t, n) => (p(),
|
|
718
|
-
(p(!0),
|
|
717
|
+
return (t, n) => (p(), h("div", Dt, [
|
|
718
|
+
(p(!0), h(X, null, se(t.dates, (c, r) => {
|
|
719
719
|
var o, s;
|
|
720
|
-
return p(),
|
|
720
|
+
return p(), h("button", {
|
|
721
721
|
key: r,
|
|
722
|
-
class:
|
|
722
|
+
class: V(["cl-border cl-cursor-pointer cl-py-1 cl-rounded-md cl-text-center", {
|
|
723
723
|
"cl-bg-primary-lighter cl-bg-opacity-30 cl-border-primary-default cl-font-bold hover:cl-border-primary-darker": ((o = t.selectedQuickDate) == null ? void 0 : o.name) === c.name,
|
|
724
724
|
"cl-border-grey-2 hover:cl-border-grey-3 hover:cl-opacity-95 cl-opacity-60": ((s = t.selectedQuickDate) == null ? void 0 : s.name) !== c.name
|
|
725
725
|
}]),
|
|
@@ -858,9 +858,9 @@ const Ye = /* @__PURE__ */ ke(Rt, [["__scopeId", "data-v-905eee52"]]), Dt = { cl
|
|
|
858
858
|
}
|
|
859
859
|
return c;
|
|
860
860
|
});
|
|
861
|
-
return (c, r) => (p(),
|
|
861
|
+
return (c, r) => (p(), h("div", Mt, [
|
|
862
862
|
b("div", null, q(v(t)("quickDates.quickDatesHeader")), 1),
|
|
863
|
-
(p(!0),
|
|
863
|
+
(p(!0), h(X, null, se(n.value, (o, s) => (p(), h("div", {
|
|
864
864
|
key: s,
|
|
865
865
|
class: "cl-pt-2"
|
|
866
866
|
}, [
|
|
@@ -869,7 +869,7 @@ const Ye = /* @__PURE__ */ ke(Rt, [["__scopeId", "data-v-905eee52"]]), Dt = { cl
|
|
|
869
869
|
"selected-quick-date": c.selectedQuickDate,
|
|
870
870
|
onQuickDateSelected: r[0] || (r[0] = (i) => e("quick-date-selected", i))
|
|
871
871
|
}, null, 8, ["dates", "selected-quick-date"]),
|
|
872
|
-
s < n.value.length - 1 ? (p(),
|
|
872
|
+
s < n.value.length - 1 ? (p(), h("div", Vt)) : F("", !0)
|
|
873
873
|
]))), 128))
|
|
874
874
|
]));
|
|
875
875
|
}
|
|
@@ -892,26 +892,26 @@ const Ye = /* @__PURE__ */ ke(Rt, [["__scopeId", "data-v-905eee52"]]), Dt = { cl
|
|
|
892
892
|
setup(a, { expose: e, emit: l }) {
|
|
893
893
|
const t = a, n = R(() => t.timeZone ?? "UTC"), c = R({
|
|
894
894
|
get() {
|
|
895
|
-
let
|
|
896
|
-
return t.type === "time" ?
|
|
895
|
+
let d = null;
|
|
896
|
+
return t.type === "time" ? d = t.date === null ? "00:00" : t.date : t.date !== null && typeof t.date == "string" ? d = x.fromISO(t.date, {
|
|
897
897
|
zone: n.value
|
|
898
|
-
}).toJSDate() : t.date !== null && t.date.start && t.date.end && (
|
|
899
|
-
start:
|
|
898
|
+
}).toJSDate() : t.date !== null && t.date.start && t.date.end && (d = {
|
|
899
|
+
start: x.fromISO(t.date.start, {
|
|
900
900
|
zone: n.value
|
|
901
901
|
}).toJSDate(),
|
|
902
|
-
end:
|
|
902
|
+
end: x.fromISO(t.date.end, {
|
|
903
903
|
zone: n.value
|
|
904
904
|
}).endOf("day").toJSDate()
|
|
905
|
-
}),
|
|
905
|
+
}), d;
|
|
906
906
|
},
|
|
907
|
-
set(
|
|
907
|
+
set(d) {
|
|
908
908
|
let f = null;
|
|
909
909
|
if (t.type === "time")
|
|
910
|
-
f =
|
|
911
|
-
else if (
|
|
912
|
-
f = r(
|
|
913
|
-
else if (
|
|
914
|
-
const O =
|
|
910
|
+
f = d;
|
|
911
|
+
else if (d !== null && t.type !== "dateRange")
|
|
912
|
+
f = r(d, !1);
|
|
913
|
+
else if (d !== null) {
|
|
914
|
+
const O = d;
|
|
915
915
|
f = {
|
|
916
916
|
start: r(O.start, !0) ?? "",
|
|
917
917
|
end: r(O.end, !1) ?? ""
|
|
@@ -920,8 +920,8 @@ const Ye = /* @__PURE__ */ ke(Rt, [["__scopeId", "data-v-905eee52"]]), Dt = { cl
|
|
|
920
920
|
l("update:date", f);
|
|
921
921
|
}
|
|
922
922
|
});
|
|
923
|
-
function r(
|
|
924
|
-
let O =
|
|
923
|
+
function r(d, f) {
|
|
924
|
+
let O = x.fromJSDate(d, { zone: n.value }).setZone(n.value);
|
|
925
925
|
f && (O = O.startOf("day"));
|
|
926
926
|
let $ = O.toISO();
|
|
927
927
|
return t.timeZone === null && ($ = ($ == null ? void 0 : $.replace("Z", "")) ?? null), $;
|
|
@@ -942,23 +942,23 @@ const Ye = /* @__PURE__ */ ke(Rt, [["__scopeId", "data-v-905eee52"]]), Dt = { cl
|
|
|
942
942
|
]
|
|
943
943
|
});
|
|
944
944
|
function i() {
|
|
945
|
-
let
|
|
945
|
+
let d = m(x.now());
|
|
946
946
|
if (t.max) {
|
|
947
|
-
const f =
|
|
948
|
-
|
|
947
|
+
const f = x.fromISO(t.max).setZone(n.value);
|
|
948
|
+
d > f && (d = m(f), d.equals(f) || (t.type === "date" ? d = d.minus({ days: 1 }) : d = d.minus({ minutes: 1 })));
|
|
949
949
|
}
|
|
950
950
|
if (t.min) {
|
|
951
|
-
const f =
|
|
952
|
-
|
|
951
|
+
const f = x.fromISO(t.min).setZone(n.value);
|
|
952
|
+
d < f && (d = m(f), d.equals(f) || (t.type === "date" ? d = d.plus({ days: 1 }) : d = d.plus({ minutes: 1 })));
|
|
953
953
|
}
|
|
954
|
-
c.value =
|
|
954
|
+
c.value = d.toJSDate();
|
|
955
955
|
}
|
|
956
|
-
function m(
|
|
957
|
-
let f =
|
|
956
|
+
function m(d) {
|
|
957
|
+
let f = d.set({ second: 0, millisecond: 0 }).setZone(n.value);
|
|
958
958
|
return t.type === "date" && (f = f.set({ hour: 0, minute: 0 }).setZone(n.value)), f;
|
|
959
959
|
}
|
|
960
960
|
const k = R(() => {
|
|
961
|
-
const
|
|
961
|
+
const d = x.fromObject({
|
|
962
962
|
day: 3,
|
|
963
963
|
month: 4,
|
|
964
964
|
year: 2e3,
|
|
@@ -966,60 +966,60 @@ const Ye = /* @__PURE__ */ ke(Rt, [["__scopeId", "data-v-905eee52"]]), Dt = { cl
|
|
|
966
966
|
minute: 6
|
|
967
967
|
}).setLocale(o.value);
|
|
968
968
|
let f;
|
|
969
|
-
return t.type === "date" ? f =
|
|
970
|
-
}),
|
|
971
|
-
let
|
|
969
|
+
return t.type === "date" ? f = d.toFormat("D") : t.type === "datetime" ? f = d.toFormat("f") : f = d.toFormat("t"), f.replace("2000", "YYYY").replace("20", "YY").replace("04", "MM").replace("4", "M").replace("03", "DD").replace("3", "D").replace("05", "HH").replace("5", "H").replace("06", "mm").replace("6", "m").replace("AM", "A").trim();
|
|
970
|
+
}), u = I(null), w = R(() => {
|
|
971
|
+
let d;
|
|
972
972
|
if (t.date && t.type !== "dateRange")
|
|
973
|
-
|
|
973
|
+
d = x.fromISO(t.date, {
|
|
974
974
|
zone: n.value
|
|
975
975
|
});
|
|
976
976
|
else if (t.date && t.type === "dateRange") {
|
|
977
977
|
const f = t.date;
|
|
978
|
-
|
|
978
|
+
d = x.fromISO(f.start, {
|
|
979
979
|
zone: n.value
|
|
980
980
|
});
|
|
981
981
|
} else
|
|
982
|
-
t.initialDate ?
|
|
982
|
+
t.initialDate ? d = x.fromISO(t.initialDate, {
|
|
983
983
|
zone: n.value
|
|
984
|
-
}) :
|
|
985
|
-
return
|
|
984
|
+
}) : d = x.utc().setZone(n.value);
|
|
985
|
+
return d;
|
|
986
986
|
});
|
|
987
987
|
e({
|
|
988
988
|
focus() {
|
|
989
|
-
var
|
|
990
|
-
(
|
|
989
|
+
var d;
|
|
990
|
+
(d = u.value) == null || d.focus();
|
|
991
991
|
}
|
|
992
992
|
});
|
|
993
|
-
const
|
|
994
|
-
function
|
|
995
|
-
const f = Z(
|
|
996
|
-
c.value = f,
|
|
993
|
+
const N = I(null), L = I();
|
|
994
|
+
function j(d) {
|
|
995
|
+
const f = Z(d);
|
|
996
|
+
c.value = f, N.value = d, L.value.move(f.start), L.value.hidePopover();
|
|
997
997
|
}
|
|
998
|
-
function Z(
|
|
999
|
-
const f =
|
|
998
|
+
function Z(d) {
|
|
999
|
+
const f = d.range, O = d.scope === "past" ? -1 : d.scope === "current" ? 0 : 1, $ = x.now().setZone(n.value).startOf(f).plus({ days: f === "day" ? O : 0, weeks: f === "week" ? O : 0, months: f === "month" ? O : 0, years: f === "year" ? O : 0 }), _ = $.endOf(f);
|
|
1000
1000
|
return {
|
|
1001
1001
|
start: $.toJSDate(),
|
|
1002
1002
|
end: _.toJSDate()
|
|
1003
1003
|
};
|
|
1004
1004
|
}
|
|
1005
1005
|
const ae = R(() => {
|
|
1006
|
-
let
|
|
1006
|
+
let d = "";
|
|
1007
1007
|
const f = c.value;
|
|
1008
1008
|
if (f !== null && Object.hasOwn(f, "start") && Object.hasOwn(f, "end")) {
|
|
1009
|
-
const O =
|
|
1010
|
-
|
|
1009
|
+
const O = x.fromJSDate(f.start).setZone(n.value).setLocale(o.value).toLocaleString(x.DATETIME_SHORT), $ = x.fromJSDate(f.end).setZone(n.value).setLocale(o.value).toLocaleString(x.DATETIME_SHORT);
|
|
1010
|
+
d = `${O} - ${$}`;
|
|
1011
1011
|
}
|
|
1012
|
-
return
|
|
1013
|
-
}),
|
|
1014
|
-
return (
|
|
1012
|
+
return d;
|
|
1013
|
+
}), E = Gl("(min-width: 768px)"), B = R(() => E.value ? 2 : 1);
|
|
1014
|
+
return (d, f) => d.type === "time" ? (p(), G(v(We), {
|
|
1015
1015
|
key: 0,
|
|
1016
1016
|
modelValue: c.value,
|
|
1017
1017
|
"onUpdate:modelValue": f[1] || (f[1] = (O) => c.value = O),
|
|
1018
1018
|
modelModifiers: { string: !0 },
|
|
1019
1019
|
locale: v(o),
|
|
1020
1020
|
is24hr: v(o) !== "en-US",
|
|
1021
|
-
mode:
|
|
1022
|
-
"is-required":
|
|
1021
|
+
mode: d.type,
|
|
1022
|
+
"is-required": d.required,
|
|
1023
1023
|
"update-on-input": !1,
|
|
1024
1024
|
masks: { modelValue: "HH:mm", input: k.value, inputTime: [k.value], inputTime24hr: [k.value] },
|
|
1025
1025
|
color: "primary",
|
|
@@ -1028,23 +1028,23 @@ const Ye = /* @__PURE__ */ ke(Rt, [["__scopeId", "data-v-905eee52"]]), Dt = { cl
|
|
|
1028
1028
|
popover: s.value
|
|
1029
1029
|
}, {
|
|
1030
1030
|
default: Y(({ inputValue: O, inputEvents: $ }) => [
|
|
1031
|
-
S(Ye, fe(
|
|
1031
|
+
S(Ye, fe(d.$attrs, {
|
|
1032
1032
|
ref_key: "input",
|
|
1033
|
-
ref:
|
|
1033
|
+
ref: u,
|
|
1034
1034
|
date: O,
|
|
1035
1035
|
events: $,
|
|
1036
|
-
type:
|
|
1037
|
-
placeholder:
|
|
1038
|
-
required:
|
|
1039
|
-
disabled:
|
|
1036
|
+
type: d.type,
|
|
1037
|
+
placeholder: d.placeholder,
|
|
1038
|
+
required: d.required,
|
|
1039
|
+
disabled: d.disabled,
|
|
1040
1040
|
onClear: f[0] || (f[0] = (_) => c.value = null)
|
|
1041
1041
|
}), null, 16, ["date", "events", "type", "placeholder", "required", "disabled"])
|
|
1042
1042
|
]),
|
|
1043
1043
|
_: 1
|
|
1044
|
-
}, 8, ["modelValue", "locale", "is24hr", "mode", "is-required", "masks", "popover"])) :
|
|
1044
|
+
}, 8, ["modelValue", "locale", "is24hr", "mode", "is-required", "masks", "popover"])) : d.type === "dateRange" ? (p(), G(v(We), {
|
|
1045
1045
|
key: 1,
|
|
1046
1046
|
ref_key: "calendar",
|
|
1047
|
-
ref:
|
|
1047
|
+
ref: L,
|
|
1048
1048
|
modelValue: c.value,
|
|
1049
1049
|
"onUpdate:modelValue": f[3] || (f[3] = (O) => c.value = O),
|
|
1050
1050
|
modelModifiers: { range: !0 },
|
|
@@ -1055,35 +1055,35 @@ const Ye = /* @__PURE__ */ ke(Rt, [["__scopeId", "data-v-905eee52"]]), Dt = { cl
|
|
|
1055
1055
|
timezone: n.value,
|
|
1056
1056
|
columns: B.value,
|
|
1057
1057
|
popover: s.value,
|
|
1058
|
-
"min-date":
|
|
1059
|
-
"max-date":
|
|
1060
|
-
"initial-page":
|
|
1061
|
-
onDayclick: f[4] || (f[4] = (O) =>
|
|
1058
|
+
"min-date": d.min,
|
|
1059
|
+
"max-date": d.max,
|
|
1060
|
+
"initial-page": w.value,
|
|
1061
|
+
onDayclick: f[4] || (f[4] = (O) => N.value = null)
|
|
1062
1062
|
}, {
|
|
1063
1063
|
default: Y(({ togglePopover: O }) => [
|
|
1064
|
-
S(Ye, fe(
|
|
1064
|
+
S(Ye, fe(d.$attrs, {
|
|
1065
1065
|
ref_key: "input",
|
|
1066
|
-
ref:
|
|
1067
|
-
type:
|
|
1068
|
-
required:
|
|
1069
|
-
disabled:
|
|
1066
|
+
ref: u,
|
|
1067
|
+
type: d.type,
|
|
1068
|
+
required: d.required,
|
|
1069
|
+
disabled: d.disabled,
|
|
1070
1070
|
"range-selected": c.value !== null,
|
|
1071
1071
|
title: ae.value,
|
|
1072
1072
|
placeholder: null,
|
|
1073
1073
|
onTogglePopover: O,
|
|
1074
1074
|
onClear: f[2] || (f[2] = ($) => {
|
|
1075
|
-
c.value = null,
|
|
1075
|
+
c.value = null, N.value = null, L.value.hidePopover();
|
|
1076
1076
|
})
|
|
1077
1077
|
}), null, 16, ["type", "required", "disabled", "range-selected", "title", "onTogglePopover"])
|
|
1078
1078
|
]),
|
|
1079
1079
|
footer: Y(() => [
|
|
1080
|
-
|
|
1080
|
+
d.quickDateScope !== "none" ? (p(), G(Lt, {
|
|
1081
1081
|
key: 0,
|
|
1082
|
-
scope:
|
|
1083
|
-
"selected-quick-date":
|
|
1082
|
+
scope: d.quickDateScope,
|
|
1083
|
+
"selected-quick-date": N.value,
|
|
1084
1084
|
"current-date-range": t.date,
|
|
1085
|
-
onQuickDateSelected:
|
|
1086
|
-
}, null, 8, ["scope", "selected-quick-date", "current-date-range"])) :
|
|
1085
|
+
onQuickDateSelected: j
|
|
1086
|
+
}, null, 8, ["scope", "selected-quick-date", "current-date-range"])) : F("", !0)
|
|
1087
1087
|
]),
|
|
1088
1088
|
_: 1
|
|
1089
1089
|
}, 8, ["modelValue", "locale", "timezone", "columns", "popover", "min-date", "max-date", "initial-page"])) : (p(), G(v(We), {
|
|
@@ -1093,11 +1093,11 @@ const Ye = /* @__PURE__ */ ke(Rt, [["__scopeId", "data-v-905eee52"]]), Dt = { cl
|
|
|
1093
1093
|
locale: v(o),
|
|
1094
1094
|
is24hr: v(o) !== "en-US",
|
|
1095
1095
|
timezone: n.value,
|
|
1096
|
-
mode:
|
|
1097
|
-
"min-date":
|
|
1098
|
-
"max-date":
|
|
1099
|
-
"initial-page":
|
|
1100
|
-
"is-required":
|
|
1096
|
+
mode: d.type,
|
|
1097
|
+
"min-date": d.min,
|
|
1098
|
+
"max-date": d.max,
|
|
1099
|
+
"initial-page": w.value,
|
|
1100
|
+
"is-required": d.required,
|
|
1101
1101
|
"update-on-input": !1,
|
|
1102
1102
|
masks: { L: k.value, inputDateTime: [k.value], inputDateTime24hr: [k.value] },
|
|
1103
1103
|
color: "primary",
|
|
@@ -1106,15 +1106,15 @@ const Ye = /* @__PURE__ */ ke(Rt, [["__scopeId", "data-v-905eee52"]]), Dt = { cl
|
|
|
1106
1106
|
popover: s.value
|
|
1107
1107
|
}, {
|
|
1108
1108
|
default: Y(({ inputValue: O, inputEvents: $ }) => [
|
|
1109
|
-
S(Ye, fe(
|
|
1109
|
+
S(Ye, fe(d.$attrs, {
|
|
1110
1110
|
ref_key: "input",
|
|
1111
|
-
ref:
|
|
1111
|
+
ref: u,
|
|
1112
1112
|
date: O,
|
|
1113
1113
|
events: $,
|
|
1114
|
-
type:
|
|
1115
|
-
placeholder:
|
|
1116
|
-
required:
|
|
1117
|
-
disabled:
|
|
1114
|
+
type: d.type,
|
|
1115
|
+
placeholder: d.placeholder,
|
|
1116
|
+
required: d.required,
|
|
1117
|
+
disabled: d.disabled,
|
|
1118
1118
|
onClear: f[5] || (f[5] = (_) => c.value = null),
|
|
1119
1119
|
onReset: i
|
|
1120
1120
|
}), null, 16, ["date", "events", "type", "placeholder", "required", "disabled"])
|
|
@@ -1161,7 +1161,7 @@ const Bt = [
|
|
|
1161
1161
|
"text",
|
|
1162
1162
|
"url",
|
|
1163
1163
|
...Re
|
|
1164
|
-
], zt = { class: "cl-flex cl-items-start" }, _t = { class: "cl-w-full" },
|
|
1164
|
+
], zt = { class: "cl-flex cl-items-start" }, _t = { class: "cl-w-full" }, Ht = ["min", "max", "step", "disabled"], xt = { class: "cl-bg-transparent cl-text-center cl-text-sm cl-w-full" }, Gt = { class: "cl-bg-transparent cl-text-sm" }, Zt = {
|
|
1165
1165
|
key: 1,
|
|
1166
1166
|
class: "cl-emphasis-danger cl-text-sm cl-w-full"
|
|
1167
1167
|
}, Kt = /* @__PURE__ */ Q({
|
|
@@ -1180,32 +1180,32 @@ const Bt = [
|
|
|
1180
1180
|
},
|
|
1181
1181
|
setup(a, { expose: e, emit: l }) {
|
|
1182
1182
|
const t = a;
|
|
1183
|
-
Ll((
|
|
1183
|
+
Ll((u) => ({
|
|
1184
1184
|
44703202: i.value
|
|
1185
1185
|
}));
|
|
1186
1186
|
const { n, t: c } = ie(), r = I(), o = R({
|
|
1187
1187
|
get: () => t.value,
|
|
1188
|
-
set: (
|
|
1189
|
-
}), s = ol((
|
|
1190
|
-
let
|
|
1191
|
-
return
|
|
1188
|
+
set: (u) => l("update:value", u ?? "")
|
|
1189
|
+
}), s = ol((u) => o.value = u || u === 0 ? u : t.min, 1e3), i = R(() => {
|
|
1190
|
+
let w = ((typeof o.value == "number" ? o.value : t.min) - t.min) / (t.max - t.min) * 100;
|
|
1191
|
+
return w < 35 && w > 0 ? w < 20 ? w += 0.5 : w += 0.25 : w > 65 && w < 100 && (w > 80 ? w -= 0.5 : w -= 0.25), `${w}%`;
|
|
1192
1192
|
}), m = R(() => t.min <= t.max && t.step > 0);
|
|
1193
1193
|
e({
|
|
1194
1194
|
focus() {
|
|
1195
|
-
var
|
|
1196
|
-
(
|
|
1195
|
+
var u;
|
|
1196
|
+
(u = r.value) == null || u.focus();
|
|
1197
1197
|
}
|
|
1198
1198
|
});
|
|
1199
1199
|
const k = I(!1);
|
|
1200
|
-
return (
|
|
1200
|
+
return (u, w) => m.value ? (p(), h("div", ce(fe({ key: 0 }, u.$attrs)), [
|
|
1201
1201
|
b("div", zt, [
|
|
1202
1202
|
b("span", {
|
|
1203
|
-
class:
|
|
1204
|
-
"cl-bg-white cl-cursor-pointer hover:cl-border-grey-1": !
|
|
1205
|
-
"cl-bg-grey-0":
|
|
1203
|
+
class: V(["cl-border cl-border-transparent cl-leading-6 cl-mr-1 cl-px-2 cl-rounded-full cl-select-none cl-shadow cl-text-center cl-text-xs", {
|
|
1204
|
+
"cl-bg-white cl-cursor-pointer hover:cl-border-grey-1": !u.disabled,
|
|
1205
|
+
"cl-bg-grey-0": u.disabled
|
|
1206
1206
|
}]),
|
|
1207
|
-
onClick:
|
|
1208
|
-
}, q(v(n)(
|
|
1207
|
+
onClick: w[0] || (w[0] = (N) => o.value = u.disabled ? o.value : u.min)
|
|
1208
|
+
}, q(v(n)(u.min, Number.isInteger(u.min) ? v(ue).INTEGER : v(ue).DECIMAL)), 3),
|
|
1209
1209
|
b("div", _t, [
|
|
1210
1210
|
k.value ? (p(), G(v(me), {
|
|
1211
1211
|
key: 0,
|
|
@@ -1213,29 +1213,29 @@ const Bt = [
|
|
|
1213
1213
|
ref: r,
|
|
1214
1214
|
modelValue: o.value,
|
|
1215
1215
|
"onUpdate:modelValue": [
|
|
1216
|
-
|
|
1216
|
+
w[1] || (w[1] = (N) => o.value = N),
|
|
1217
1217
|
v(s)
|
|
1218
1218
|
],
|
|
1219
1219
|
class: "cl-min-w-[8.5rem] cl-w-full",
|
|
1220
1220
|
"input-type": "number",
|
|
1221
|
-
min:
|
|
1222
|
-
max:
|
|
1223
|
-
step:
|
|
1224
|
-
disabled:
|
|
1225
|
-
"placeholder-text":
|
|
1221
|
+
min: u.min,
|
|
1222
|
+
max: u.max,
|
|
1223
|
+
step: u.step,
|
|
1224
|
+
disabled: u.disabled,
|
|
1225
|
+
"placeholder-text": u.placeholder,
|
|
1226
1226
|
"show-validation-messages": !1
|
|
1227
|
-
}, null, 8, ["modelValue", "min", "max", "step", "disabled", "placeholder-text", "onUpdate:modelValue"])) : (p(),
|
|
1227
|
+
}, null, 8, ["modelValue", "min", "max", "step", "disabled", "placeholder-text", "onUpdate:modelValue"])) : (p(), h(X, { key: 1 }, [
|
|
1228
1228
|
le(b("input", {
|
|
1229
1229
|
ref_key: "sliderRef",
|
|
1230
1230
|
ref: r,
|
|
1231
|
-
"onUpdate:modelValue":
|
|
1231
|
+
"onUpdate:modelValue": w[2] || (w[2] = (N) => o.value = N),
|
|
1232
1232
|
class: "cl-align-middle cl-appearance-none cl-border cl-border-grey-2 cl-delay-500 cl-ease-in cl-flex-1 cl-h-5 cl-min-w-[8.5rem] cl-outline-none cl-rounded-full cl-transition-colors cl-w-full",
|
|
1233
1233
|
type: "range",
|
|
1234
|
-
min:
|
|
1235
|
-
max:
|
|
1236
|
-
step:
|
|
1237
|
-
disabled:
|
|
1238
|
-
}, null, 8,
|
|
1234
|
+
min: u.min,
|
|
1235
|
+
max: u.max,
|
|
1236
|
+
step: u.step,
|
|
1237
|
+
disabled: u.disabled
|
|
1238
|
+
}, null, 8, Ht), [
|
|
1239
1239
|
[
|
|
1240
1240
|
Pl,
|
|
1241
1241
|
o.value,
|
|
@@ -1243,26 +1243,26 @@ const Bt = [
|
|
|
1243
1243
|
{ number: !0 }
|
|
1244
1244
|
]
|
|
1245
1245
|
]),
|
|
1246
|
-
b("div",
|
|
1246
|
+
b("div", xt, q(o.value), 1)
|
|
1247
1247
|
], 64))
|
|
1248
1248
|
]),
|
|
1249
1249
|
b("span", {
|
|
1250
|
-
class:
|
|
1251
|
-
"cl-bg-white cl-cursor-pointer hover:cl-border-grey-1": !
|
|
1252
|
-
"cl-bg-grey-0":
|
|
1250
|
+
class: V(["cl-border cl-border-transparent cl-leading-6 cl-ml-1 cl-px-2 cl-rounded-full cl-select-none cl-shadow cl-text-center cl-text-xs", {
|
|
1251
|
+
"cl-bg-white cl-cursor-pointer hover:cl-border-grey-1": !u.disabled,
|
|
1252
|
+
"cl-bg-grey-0": u.disabled
|
|
1253
1253
|
}]),
|
|
1254
|
-
onClick:
|
|
1255
|
-
}, q(v(n)(
|
|
1254
|
+
onClick: w[3] || (w[3] = (N) => o.value = u.disabled ? o.value : u.max)
|
|
1255
|
+
}, q(v(n)(u.max, Number.isInteger(u.max) ? v(ue).INTEGER : v(ue).DECIMAL)), 3),
|
|
1256
1256
|
b("div", Gt, [
|
|
1257
1257
|
b("div", {
|
|
1258
1258
|
class: "cl-bg-white cl-border cl-border-transparent cl-cursor-pointer cl-float-right cl-p-1.5 cl-px-2 cl-rounded-full cl-shadow cl-text-xs hover:cl-border-grey-1",
|
|
1259
|
-
onClick:
|
|
1259
|
+
onClick: w[4] || (w[4] = (N) => k.value = !k.value)
|
|
1260
1260
|
}, [
|
|
1261
|
-
S(v(
|
|
1261
|
+
S(v(H), { icon: "ph:arrows-left-right-thin" })
|
|
1262
1262
|
])
|
|
1263
1263
|
])
|
|
1264
1264
|
])
|
|
1265
|
-
], 16)) : (p(),
|
|
1265
|
+
], 16)) : (p(), h("div", Zt, q(v(c)("slider.invalidProps")), 1));
|
|
1266
1266
|
}
|
|
1267
1267
|
});
|
|
1268
1268
|
const Qt = /* @__PURE__ */ ke(Kt, [["__scopeId", "data-v-470989ac"]]);
|
|
@@ -1385,35 +1385,35 @@ const Jt = { class: "cl-flex cl-justify-between" }, Xt = { class: "cl-w-full" },
|
|
|
1385
1385
|
set: (g) => f(g, !1)
|
|
1386
1386
|
}), k = R({
|
|
1387
1387
|
get: () => t.modelValue,
|
|
1388
|
-
set: (g) =>
|
|
1389
|
-
}),
|
|
1390
|
-
var g,
|
|
1388
|
+
set: (g) => d(g)
|
|
1389
|
+
}), u = R(() => typeof t.min == "number" ? t.min.toString() : t.min), w = R(() => typeof t.max == "number" ? t.max.toString() : t.max), N = R(() => typeof t.min == "number" || t.min === null ? t.min : parseFloat(t.min)), L = R(() => typeof t.max == "number" || t.max === null ? t.max : parseFloat(t.max)), j = R(() => t.messageWhenValid.trim() !== "" ? t.messageWhenValid : ""), Z = I(!0), ae = I(!0), E = I([]), B = R(() => {
|
|
1390
|
+
var g, M;
|
|
1391
1391
|
return [
|
|
1392
|
-
...((g =
|
|
1393
|
-
...((
|
|
1392
|
+
...((g = E.value) == null ? void 0 : g.filter((K) => ((K == null ? void 0 : K.length) ?? 0) > 0)) ?? [],
|
|
1393
|
+
...((M = t.externalErrors) == null ? void 0 : M.filter((K) => ((K == null ? void 0 : K.length) ?? 0) > 0)) ?? []
|
|
1394
1394
|
].join(`
|
|
1395
1395
|
`);
|
|
1396
1396
|
});
|
|
1397
|
-
async function
|
|
1397
|
+
async function d(g) {
|
|
1398
1398
|
t.validateOn === "input" && await O(g), l("update:model-value", g);
|
|
1399
1399
|
}
|
|
1400
|
-
async function f(g,
|
|
1401
|
-
t.onInputFunction !== void 0 && (g = t.onInputFunction(g)), t.validateOn === "change" && (ae.value = !1), (
|
|
1400
|
+
async function f(g, M) {
|
|
1401
|
+
t.onInputFunction !== void 0 && (g = t.onInputFunction(g)), t.validateOn === "change" && (ae.value = !1), (M || t.validateOn === "input") && await O(g), l("update:model-value", g);
|
|
1402
1402
|
}
|
|
1403
1403
|
function O(g) {
|
|
1404
|
-
const
|
|
1404
|
+
const M = {
|
|
1405
1405
|
message: "",
|
|
1406
1406
|
valid: !0
|
|
1407
1407
|
}, K = [
|
|
1408
1408
|
t.customValidationFunction === null || t.customValidationFunction === void 0 ? new Promise((pe) => {
|
|
1409
|
-
pe(
|
|
1409
|
+
pe(M);
|
|
1410
1410
|
}) : new Promise((pe) => {
|
|
1411
1411
|
pe(t.customValidationFunction(t.label, g));
|
|
1412
1412
|
})
|
|
1413
1413
|
];
|
|
1414
1414
|
return (typeof g == "string" || typeof g == "number") && (K.push($t(t.min, t.inputType, t.label, g, t.timeZone)), K.push(Ct(t.max, t.inputType, t.label, g, t.timeZone))), t.isRequired && K.push(Ot(t.label, g)), t.inputType === "email" && typeof g == "string" && K.push(St(t.label, g)), Promise.all(K).then((pe) => {
|
|
1415
1415
|
const Ce = [...pe.map(($e) => $e.message)], Ae = pe.some(($e) => $e.message.length > 0 && $e.valid === !1) || t.externalErrors.length > 0;
|
|
1416
|
-
ae.value = !0, Ae ? (
|
|
1416
|
+
ae.value = !0, Ae ? (E.value = Ce, l("validated", !1, g)) : (E.value = [], l("validated", !0, g)), Z.value = !Ae;
|
|
1417
1417
|
});
|
|
1418
1418
|
}
|
|
1419
1419
|
function $() {
|
|
@@ -1426,28 +1426,28 @@ const Jt = { class: "cl-flex cl-justify-between" }, Xt = { class: "cl-w-full" },
|
|
|
1426
1426
|
function z(g) {
|
|
1427
1427
|
if (n.value) {
|
|
1428
1428
|
n.value.stepUp(), n.value.focus(), f(n.value.valueAsNumber, !1);
|
|
1429
|
-
const
|
|
1429
|
+
const M = {
|
|
1430
1430
|
target: n.value
|
|
1431
1431
|
};
|
|
1432
|
-
l("input",
|
|
1432
|
+
l("input", M, n.value.valueAsNumber), l("change", g, n.value.valueAsNumber);
|
|
1433
1433
|
}
|
|
1434
1434
|
}
|
|
1435
1435
|
function T(g) {
|
|
1436
1436
|
if (n.value) {
|
|
1437
1437
|
n.value.stepDown(), n.value.focus(), f(n.value.valueAsNumber, !1);
|
|
1438
|
-
const
|
|
1438
|
+
const M = {
|
|
1439
1439
|
target: n.value
|
|
1440
1440
|
};
|
|
1441
|
-
l("input",
|
|
1441
|
+
l("input", M, n.value.valueAsNumber), l("change", g, n.value.valueAsNumber);
|
|
1442
1442
|
}
|
|
1443
1443
|
}
|
|
1444
|
-
function
|
|
1444
|
+
function y(g) {
|
|
1445
1445
|
c.value = g;
|
|
1446
1446
|
}
|
|
1447
|
-
async function
|
|
1448
|
-
r.value = !0,
|
|
1447
|
+
async function A() {
|
|
1448
|
+
r.value = !0, y(!1), t.validateOn === "change" && await O(m.value);
|
|
1449
1449
|
}
|
|
1450
|
-
function
|
|
1450
|
+
function U() {
|
|
1451
1451
|
i.value++;
|
|
1452
1452
|
}
|
|
1453
1453
|
function C(g) {
|
|
@@ -1456,15 +1456,15 @@ const Jt = { class: "cl-flex cl-justify-between" }, Xt = { class: "cl-w-full" },
|
|
|
1456
1456
|
function D() {
|
|
1457
1457
|
var K;
|
|
1458
1458
|
let g = !0;
|
|
1459
|
-
const
|
|
1460
|
-
return c.value ? g =
|
|
1459
|
+
const M = o.value;
|
|
1460
|
+
return c.value ? g = M : r.value && ((K = m.value) == null ? void 0 : K.toString().trim()) === "" && t.requiredText.trim() !== "" && (g = !1), !t.hideRequiredAsterisk && g;
|
|
1461
1461
|
}
|
|
1462
1462
|
async function J(g) {
|
|
1463
|
-
const
|
|
1464
|
-
t.validateOn === "change" && await O(
|
|
1463
|
+
const M = ul(g, t.inputType);
|
|
1464
|
+
t.validateOn === "change" && await O(M), l("change", g, M);
|
|
1465
1465
|
}
|
|
1466
1466
|
async function W() {
|
|
1467
|
-
await
|
|
1467
|
+
await A(), U();
|
|
1468
1468
|
}
|
|
1469
1469
|
return Ze(() => {
|
|
1470
1470
|
t.validateImmediately && f(t.modelValue, !0);
|
|
@@ -1484,13 +1484,13 @@ const Jt = { class: "cl-flex cl-justify-between" }, Xt = { class: "cl-w-full" },
|
|
|
1484
1484
|
var g;
|
|
1485
1485
|
(g = n.value) == null || g.blur();
|
|
1486
1486
|
}
|
|
1487
|
-
}), (g,
|
|
1487
|
+
}), (g, M) => (p(), h("div", fe({ ...g.$attrs, id: void 0 }, {
|
|
1488
1488
|
key: i.value,
|
|
1489
1489
|
class: "cl-align-top cl-border-none cl-inline-block cl-text-left"
|
|
1490
1490
|
}), [
|
|
1491
1491
|
b("div", {
|
|
1492
|
-
onMouseenter:
|
|
1493
|
-
onMouseleave:
|
|
1492
|
+
onMouseenter: M[10] || (M[10] = (K) => y(!0)),
|
|
1493
|
+
onMouseleave: M[11] || (M[11] = (K) => y(!1))
|
|
1494
1494
|
}, [
|
|
1495
1495
|
b("div", Jt, [
|
|
1496
1496
|
b("div", Xt, [
|
|
@@ -1498,14 +1498,14 @@ const Jt = { class: "cl-flex cl-justify-between" }, Xt = { class: "cl-w-full" },
|
|
|
1498
1498
|
[te, g.showLabel && g.label !== ""]
|
|
1499
1499
|
])
|
|
1500
1500
|
]),
|
|
1501
|
-
g.isRequired && o.value ? (p(),
|
|
1502
|
-
g.isRequired && !o.value && g.requiredText.length ? (p(),
|
|
1501
|
+
g.isRequired && o.value ? (p(), h("label", ea, " * ")) : F("", !0),
|
|
1502
|
+
g.isRequired && !o.value && g.requiredText.length ? (p(), h("label", la, q(g.requiredText), 1)) : F("", !0)
|
|
1503
1503
|
]),
|
|
1504
|
-
g.inputType !== "range" && !v(cl)(g.inputType) ? (p(),
|
|
1504
|
+
g.inputType !== "range" && !v(cl)(g.inputType) ? (p(), h("div", ta, [
|
|
1505
1505
|
le(b("input", fe({
|
|
1506
1506
|
ref_key: "inputElement",
|
|
1507
1507
|
ref: n,
|
|
1508
|
-
"onUpdate:modelValue":
|
|
1508
|
+
"onUpdate:modelValue": M[0] || (M[0] = (K) => m.value = K)
|
|
1509
1509
|
}, g.$attrs, {
|
|
1510
1510
|
class: ["!cl-mb-1 cl-block cl-border cl-duration-300 cl-h-full cl-transition cl-w-full focus:cl-outline-none", {
|
|
1511
1511
|
"hover:!cl-border-grey-3": g.disabled === !1 && !v(De)(g.inputType),
|
|
@@ -1529,11 +1529,11 @@ const Jt = { class: "cl-flex cl-justify-between" }, Xt = { class: "cl-w-full" },
|
|
|
1529
1529
|
accept: g.fileExtensions,
|
|
1530
1530
|
name: g.group,
|
|
1531
1531
|
autocomplete: g.autocomplete,
|
|
1532
|
-
onClick:
|
|
1533
|
-
onFocus:
|
|
1532
|
+
onClick: M[1] || (M[1] = (K) => _(K)),
|
|
1533
|
+
onFocus: M[2] || (M[2] = (K) => l("focus")),
|
|
1534
1534
|
onBlur: ne(W, ["self"]),
|
|
1535
1535
|
onMousewheelPassive: C,
|
|
1536
|
-
onInput:
|
|
1536
|
+
onInput: M[3] || (M[3] = (K) => {
|
|
1537
1537
|
l("input", K, v(ul)(K, g.inputType));
|
|
1538
1538
|
}),
|
|
1539
1539
|
onChange: J
|
|
@@ -1545,24 +1545,24 @@ const Jt = { class: "cl-flex cl-justify-between" }, Xt = { class: "cl-w-full" },
|
|
|
1545
1545
|
duration: 300
|
|
1546
1546
|
}, {
|
|
1547
1547
|
default: Y(() => [
|
|
1548
|
-
g.inputType === "number" && !g.disabled && g.showArrows ? le((p(),
|
|
1549
|
-
S(v(
|
|
1548
|
+
g.inputType === "number" && !g.disabled && g.showArrows ? le((p(), h("div", oa, [
|
|
1549
|
+
S(v(H), {
|
|
1550
1550
|
icon: "ph:caret-up-bold",
|
|
1551
1551
|
class: "cl-absolute cl-bg-link-default cl-right-1 cl-rounded-full cl-text-sm cl-text-white cl-top-1 hover:cl-bg-link-light hover:cl-cursor-pointer",
|
|
1552
1552
|
onClick: z,
|
|
1553
|
-
onMousedown:
|
|
1553
|
+
onMousedown: M[4] || (M[4] = ne(() => {
|
|
1554
1554
|
}, ["prevent"]))
|
|
1555
1555
|
}),
|
|
1556
|
-
S(v(
|
|
1556
|
+
S(v(H), {
|
|
1557
1557
|
icon: "ph:caret-down-bold",
|
|
1558
1558
|
class: "cl-absolute cl-bg-link-default cl-bottom-2 cl-right-1 cl-rounded-full cl-text-sm cl-text-white hover:cl-bg-link-light hover:cl-cursor-pointer",
|
|
1559
1559
|
onClick: T,
|
|
1560
|
-
onMousedown:
|
|
1560
|
+
onMousedown: M[5] || (M[5] = ne(() => {
|
|
1561
1561
|
}, ["prevent"]))
|
|
1562
1562
|
})
|
|
1563
1563
|
], 512)), [
|
|
1564
1564
|
[te, c.value]
|
|
1565
|
-
]) :
|
|
1565
|
+
]) : F("", !0)
|
|
1566
1566
|
]),
|
|
1567
1567
|
_: 1
|
|
1568
1568
|
})
|
|
@@ -1570,7 +1570,7 @@ const Jt = { class: "cl-flex cl-justify-between" }, Xt = { class: "cl-w-full" },
|
|
|
1570
1570
|
ref_key: "inputElement",
|
|
1571
1571
|
ref: n,
|
|
1572
1572
|
date: k.value,
|
|
1573
|
-
"onUpdate:date":
|
|
1573
|
+
"onUpdate:date": M[6] || (M[6] = (K) => k.value = K),
|
|
1574
1574
|
class: ["cl-block cl-duration-300 cl-h-fit cl-mb-1 cl-rounded-lg cl-text-sm cl-transition cl-w-full focus:cl-outline-none", {
|
|
1575
1575
|
"hover:cl-border-grey-3": !g.disabled && g.inputType !== "dateRange",
|
|
1576
1576
|
"!cl-border-danger-default": !Z.value,
|
|
@@ -1580,32 +1580,32 @@ const Jt = { class: "cl-flex cl-justify-between" }, Xt = { class: "cl-w-full" },
|
|
|
1580
1580
|
required: g.isRequired,
|
|
1581
1581
|
type: v(Yt)(g.inputType),
|
|
1582
1582
|
"time-zone": g.timeZone,
|
|
1583
|
-
min:
|
|
1584
|
-
max:
|
|
1583
|
+
min: u.value,
|
|
1584
|
+
max: w.value,
|
|
1585
1585
|
placeholder: s.value,
|
|
1586
1586
|
"initial-date": g.initialDate,
|
|
1587
1587
|
"quick-date-scope": g.quickDateScope,
|
|
1588
|
-
onBlur: ne(
|
|
1589
|
-
onFocus:
|
|
1590
|
-
}), null, 16, ["date", "class", "disabled", "required", "type", "time-zone", "min", "max", "placeholder", "initial-date", "quick-date-scope", "onBlur"])) : g.inputType === "range" && (typeof m.value == "number" || typeof m.value == "string") ? (p(),
|
|
1588
|
+
onBlur: ne(A, ["self"]),
|
|
1589
|
+
onFocus: M[7] || (M[7] = (K) => l("focus"))
|
|
1590
|
+
}), null, 16, ["date", "class", "disabled", "required", "type", "time-zone", "min", "max", "placeholder", "initial-date", "quick-date-scope", "onBlur"])) : g.inputType === "range" && (typeof m.value == "number" || typeof m.value == "string") ? (p(), h("div", na, [
|
|
1591
1591
|
S(v(Qt), {
|
|
1592
1592
|
ref_key: "inputElement",
|
|
1593
1593
|
ref: n,
|
|
1594
1594
|
value: m.value,
|
|
1595
|
-
"onUpdate:value":
|
|
1596
|
-
min:
|
|
1597
|
-
max:
|
|
1595
|
+
"onUpdate:value": M[8] || (M[8] = (K) => m.value = K),
|
|
1596
|
+
min: N.value ?? 0,
|
|
1597
|
+
max: L.value ?? 1e3,
|
|
1598
1598
|
step: g.step,
|
|
1599
1599
|
placeholder: s.value,
|
|
1600
1600
|
"enforce-step": !0,
|
|
1601
1601
|
disabled: g.disabled,
|
|
1602
|
-
onBlur: ne(
|
|
1603
|
-
onFocus:
|
|
1602
|
+
onBlur: ne(A, ["self"]),
|
|
1603
|
+
onFocus: M[9] || (M[9] = (K) => l("focus"))
|
|
1604
1604
|
}, null, 8, ["value", "min", "max", "step", "placeholder", "disabled", "onBlur"])
|
|
1605
|
-
])) :
|
|
1605
|
+
])) : F("", !0)
|
|
1606
1606
|
], 32),
|
|
1607
|
-
Z.value &&
|
|
1608
|
-
!Z.value && B.value.length > 0 && g.showValidationMessages && ae.value ? (p(),
|
|
1607
|
+
Z.value && j.value && ae.value ? (p(), h("div", ra, q(j.value), 1)) : F("", !0),
|
|
1608
|
+
!Z.value && B.value.length > 0 && g.showValidationMessages && ae.value ? (p(), h("div", sa, q(B.value), 1)) : F("", !0)
|
|
1609
1609
|
], 16));
|
|
1610
1610
|
}
|
|
1611
1611
|
});
|
|
@@ -1620,7 +1620,7 @@ var Nl = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
1620
1620
|
return a == null || (e = a.getRootNode) === null || e === void 0 ? void 0 : e.call(a);
|
|
1621
1621
|
} : function(a) {
|
|
1622
1622
|
return a == null ? void 0 : a.ownerDocument;
|
|
1623
|
-
},
|
|
1623
|
+
}, He = function a(e, l) {
|
|
1624
1624
|
var t;
|
|
1625
1625
|
l === void 0 && (l = !0);
|
|
1626
1626
|
var n = e == null || (t = e.getAttribute) === null || t === void 0 ? void 0 : t.call(e, "inert"), c = n === "" || n === "true", r = c || l && e && a(e.parentNode);
|
|
@@ -1629,14 +1629,14 @@ var Nl = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
1629
1629
|
var l, t = e == null || (l = e.getAttribute) === null || l === void 0 ? void 0 : l.call(e, "contenteditable");
|
|
1630
1630
|
return t === "" || t === "true";
|
|
1631
1631
|
}, Al = function(e, l, t) {
|
|
1632
|
-
if (
|
|
1632
|
+
if (He(e))
|
|
1633
1633
|
return [];
|
|
1634
1634
|
var n = Array.prototype.slice.apply(e.querySelectorAll(ze));
|
|
1635
1635
|
return l && Se.call(e, ze) && n.unshift(e), n = n.filter(t), n;
|
|
1636
1636
|
}, ql = function a(e, l, t) {
|
|
1637
1637
|
for (var n = [], c = Array.from(e); c.length; ) {
|
|
1638
1638
|
var r = c.shift();
|
|
1639
|
-
if (!
|
|
1639
|
+
if (!He(r, !1))
|
|
1640
1640
|
if (r.tagName === "SLOT") {
|
|
1641
1641
|
var o = r.assignedElements(), s = o.length ? o : r.children, i = a(s, !0, t);
|
|
1642
1642
|
t.flatten ? n.push.apply(n, i) : n.push({
|
|
@@ -1647,12 +1647,12 @@ var Nl = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
1647
1647
|
var m = Se.call(r, ze);
|
|
1648
1648
|
m && t.filter(r) && (l || !e.includes(r)) && n.push(r);
|
|
1649
1649
|
var k = r.shadowRoot || // check for an undisclosed shadow
|
|
1650
|
-
typeof t.getShadowRoot == "function" && t.getShadowRoot(r),
|
|
1651
|
-
if (k &&
|
|
1652
|
-
var
|
|
1653
|
-
t.flatten ? n.push.apply(n,
|
|
1650
|
+
typeof t.getShadowRoot == "function" && t.getShadowRoot(r), u = !He(k, !1) && (!t.shadowRootFilter || t.shadowRootFilter(r));
|
|
1651
|
+
if (k && u) {
|
|
1652
|
+
var w = a(k === !0 ? r.children : k.children, !0, t);
|
|
1653
|
+
t.flatten ? n.push.apply(n, w) : n.push({
|
|
1654
1654
|
scopeParent: r,
|
|
1655
|
-
candidates:
|
|
1655
|
+
candidates: w
|
|
1656
1656
|
});
|
|
1657
1657
|
} else
|
|
1658
1658
|
c.unshift.apply(c, r.children);
|
|
@@ -1754,14 +1754,14 @@ var Nl = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
1754
1754
|
l = l.parentElement;
|
|
1755
1755
|
}
|
|
1756
1756
|
return !1;
|
|
1757
|
-
},
|
|
1757
|
+
}, xe = function(e, l) {
|
|
1758
1758
|
return !(l.disabled || // we must do an inert look up to filter out any elements inside an inert ancestor
|
|
1759
1759
|
// because we're limited in the type of selectors we can use in JSDom (see related
|
|
1760
1760
|
// note related to `candidateSelectors`)
|
|
1761
|
-
|
|
1761
|
+
He(l) || fa(l) || ya(l, e) || // For a details element with a summary, the summary element gets the focus
|
|
1762
1762
|
pa(l) || wa(l));
|
|
1763
1763
|
}, Xe = function(e, l) {
|
|
1764
|
-
return !(ba(l) || Oe(l) < 0 || !
|
|
1764
|
+
return !(ba(l) || Oe(l) < 0 || !xe(e, l));
|
|
1765
1765
|
}, ka = function(e) {
|
|
1766
1766
|
var l = parseInt(e.getAttribute("tabindex"), 10);
|
|
1767
1767
|
return !!(isNaN(l) || l >= 0);
|
|
@@ -1792,10 +1792,10 @@ var Nl = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
1792
1792
|
l = l || {};
|
|
1793
1793
|
var t;
|
|
1794
1794
|
return l.getShadowRoot ? t = ql([e], l.includeContainer, {
|
|
1795
|
-
filter:
|
|
1795
|
+
filter: xe.bind(null, l),
|
|
1796
1796
|
flatten: !0,
|
|
1797
1797
|
getShadowRoot: l.getShadowRoot
|
|
1798
|
-
}) : t = Al(e, l.includeContainer,
|
|
1798
|
+
}) : t = Al(e, l.includeContainer, xe.bind(null, l)), t;
|
|
1799
1799
|
}, Ne = function(e, l) {
|
|
1800
1800
|
if (l = l || {}, !e)
|
|
1801
1801
|
throw new Error("No node provided");
|
|
@@ -1803,7 +1803,7 @@ var Nl = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
1803
1803
|
}, Oa = /* @__PURE__ */ Nl.concat("iframe").join(","), Je = function(e, l) {
|
|
1804
1804
|
if (l = l || {}, !e)
|
|
1805
1805
|
throw new Error("No node provided");
|
|
1806
|
-
return Se.call(e, Oa) === !1 ? !1 :
|
|
1806
|
+
return Se.call(e, Oa) === !1 ? !1 : xe(l, e);
|
|
1807
1807
|
};
|
|
1808
1808
|
/*!
|
|
1809
1809
|
* focus-trap 7.5.2
|
|
@@ -1933,34 +1933,34 @@ var ml = {
|
|
|
1933
1933
|
delayInitialFocusTimer: void 0,
|
|
1934
1934
|
// the most recent KeyboardEvent for the configured nav key (typically [SHIFT+]TAB), if any
|
|
1935
1935
|
recentNavEvent: void 0
|
|
1936
|
-
}, o, s = function(T,
|
|
1937
|
-
return T && T[
|
|
1938
|
-
}, i = function(T,
|
|
1939
|
-
var
|
|
1940
|
-
return r.containerGroups.findIndex(function(
|
|
1941
|
-
var C =
|
|
1936
|
+
}, o, s = function(T, y, A) {
|
|
1937
|
+
return T && T[y] !== void 0 ? T[y] : c[A || y];
|
|
1938
|
+
}, i = function(T, y) {
|
|
1939
|
+
var A = typeof (y == null ? void 0 : y.composedPath) == "function" ? y.composedPath() : void 0;
|
|
1940
|
+
return r.containerGroups.findIndex(function(U) {
|
|
1941
|
+
var C = U.container, D = U.tabbableNodes;
|
|
1942
1942
|
return C.contains(T) || // fall back to explicit tabbable search which will take into consideration any
|
|
1943
1943
|
// web components if the `tabbableOptions.getShadowRoot` option was used for
|
|
1944
1944
|
// the trap, enabling shadow DOM support in tabbable (`Node.contains()` doesn't
|
|
1945
1945
|
// look inside web components even if open)
|
|
1946
|
-
(
|
|
1946
|
+
(A == null ? void 0 : A.includes(C)) || D.find(function(J) {
|
|
1947
1947
|
return J === T;
|
|
1948
1948
|
});
|
|
1949
1949
|
});
|
|
1950
1950
|
}, m = function(T) {
|
|
1951
|
-
var
|
|
1952
|
-
if (typeof
|
|
1953
|
-
for (var
|
|
1954
|
-
|
|
1955
|
-
|
|
1951
|
+
var y = c[T];
|
|
1952
|
+
if (typeof y == "function") {
|
|
1953
|
+
for (var A = arguments.length, U = new Array(A > 1 ? A - 1 : 0), C = 1; C < A; C++)
|
|
1954
|
+
U[C - 1] = arguments[C];
|
|
1955
|
+
y = y.apply(void 0, U);
|
|
1956
1956
|
}
|
|
1957
|
-
if (
|
|
1958
|
-
if (
|
|
1959
|
-
return
|
|
1957
|
+
if (y === !0 && (y = void 0), !y) {
|
|
1958
|
+
if (y === void 0 || y === !1)
|
|
1959
|
+
return y;
|
|
1960
1960
|
throw new Error("`".concat(T, "` was specified but was not a node, or did not return a node"));
|
|
1961
1961
|
}
|
|
1962
|
-
var D =
|
|
1963
|
-
if (typeof
|
|
1962
|
+
var D = y;
|
|
1963
|
+
if (typeof y == "string" && (D = t.querySelector(y), !D))
|
|
1964
1964
|
throw new Error("`".concat(T, "` as selector refers to no known node"));
|
|
1965
1965
|
return D;
|
|
1966
1966
|
}, k = function() {
|
|
@@ -1971,29 +1971,29 @@ var ml = {
|
|
|
1971
1971
|
if (i(t.activeElement) >= 0)
|
|
1972
1972
|
T = t.activeElement;
|
|
1973
1973
|
else {
|
|
1974
|
-
var
|
|
1975
|
-
T =
|
|
1974
|
+
var y = r.tabbableGroups[0], A = y && y.firstTabbableNode;
|
|
1975
|
+
T = A || m("fallbackFocus");
|
|
1976
1976
|
}
|
|
1977
1977
|
if (!T)
|
|
1978
1978
|
throw new Error("Your focus-trap needs to have at least one focusable element");
|
|
1979
1979
|
return T;
|
|
1980
|
-
},
|
|
1980
|
+
}, u = function() {
|
|
1981
1981
|
if (r.containerGroups = r.containers.map(function(T) {
|
|
1982
|
-
var
|
|
1982
|
+
var y = $a(T, c.tabbableOptions), A = Ca(T, c.tabbableOptions), U = y.length > 0 ? y[0] : void 0, C = y.length > 0 ? y[y.length - 1] : void 0, D = A.find(function(g) {
|
|
1983
1983
|
return Ne(g);
|
|
1984
|
-
}), J =
|
|
1984
|
+
}), J = A.slice().reverse().find(function(g) {
|
|
1985
1985
|
return Ne(g);
|
|
1986
|
-
}), W = !!
|
|
1986
|
+
}), W = !!y.find(function(g) {
|
|
1987
1987
|
return Oe(g) > 0;
|
|
1988
1988
|
});
|
|
1989
1989
|
return {
|
|
1990
1990
|
container: T,
|
|
1991
|
-
tabbableNodes:
|
|
1992
|
-
focusableNodes:
|
|
1991
|
+
tabbableNodes: y,
|
|
1992
|
+
focusableNodes: A,
|
|
1993
1993
|
/** True if at least one node with positive `tabindex` was found in this container. */
|
|
1994
1994
|
posTabIndexesFound: W,
|
|
1995
1995
|
/** First tabbable node in container, __tabindex__ order; `undefined` if none. */
|
|
1996
|
-
firstTabbableNode:
|
|
1996
|
+
firstTabbableNode: U,
|
|
1997
1997
|
/** Last tabbable node in container, __tabindex__ order; `undefined` if none. */
|
|
1998
1998
|
lastTabbableNode: C,
|
|
1999
1999
|
// NOTE: DOM order is NOT NECESSARILY "document position" order, but figuring that out
|
|
@@ -2015,13 +2015,13 @@ var ml = {
|
|
|
2015
2015
|
* in reverse.
|
|
2016
2016
|
* @returns {HTMLElement|undefined} The next tabbable node, if any.
|
|
2017
2017
|
*/
|
|
2018
|
-
nextTabbableNode: function(
|
|
2019
|
-
var K = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, pe =
|
|
2020
|
-
return pe < 0 ? K ?
|
|
2018
|
+
nextTabbableNode: function(M) {
|
|
2019
|
+
var K = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, pe = y.indexOf(M);
|
|
2020
|
+
return pe < 0 ? K ? A.slice(A.indexOf(M) + 1).find(function(Ce) {
|
|
2021
2021
|
return Ne(Ce);
|
|
2022
|
-
}) :
|
|
2022
|
+
}) : A.slice(0, A.indexOf(M)).reverse().find(function(Ce) {
|
|
2023
2023
|
return Ne(Ce);
|
|
2024
|
-
}) :
|
|
2024
|
+
}) : y[pe + (K ? 1 : -1)];
|
|
2025
2025
|
}
|
|
2026
2026
|
};
|
|
2027
2027
|
}), r.tabbableGroups = r.containerGroups.filter(function(T) {
|
|
@@ -2032,7 +2032,7 @@ var ml = {
|
|
|
2032
2032
|
return T.posTabIndexesFound;
|
|
2033
2033
|
}) && r.containerGroups.length > 1)
|
|
2034
2034
|
throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.");
|
|
2035
|
-
},
|
|
2035
|
+
}, w = function z(T) {
|
|
2036
2036
|
if (T !== !1 && T !== t.activeElement) {
|
|
2037
2037
|
if (!T || !T.focus) {
|
|
2038
2038
|
z(k());
|
|
@@ -2042,44 +2042,44 @@ var ml = {
|
|
|
2042
2042
|
preventScroll: !!c.preventScroll
|
|
2043
2043
|
}), r.mostRecentlyFocusedNode = T, Aa(T) && T.select();
|
|
2044
2044
|
}
|
|
2045
|
-
},
|
|
2046
|
-
var
|
|
2047
|
-
return
|
|
2048
|
-
},
|
|
2049
|
-
var
|
|
2050
|
-
|
|
2045
|
+
}, N = function(T) {
|
|
2046
|
+
var y = m("setReturnFocus", T);
|
|
2047
|
+
return y || (y === !1 ? !1 : T);
|
|
2048
|
+
}, L = function(T) {
|
|
2049
|
+
var y = T.target, A = T.event, U = T.isBackward, C = U === void 0 ? !1 : U;
|
|
2050
|
+
y = y || Me(A), u();
|
|
2051
2051
|
var D = null;
|
|
2052
2052
|
if (r.tabbableGroups.length > 0) {
|
|
2053
|
-
var J = i(
|
|
2053
|
+
var J = i(y, A), W = J >= 0 ? r.containerGroups[J] : void 0;
|
|
2054
2054
|
if (J < 0)
|
|
2055
2055
|
C ? D = r.tabbableGroups[r.tabbableGroups.length - 1].lastTabbableNode : D = r.tabbableGroups[0].firstTabbableNode;
|
|
2056
2056
|
else if (C) {
|
|
2057
2057
|
var g = gl(r.tabbableGroups, function($e) {
|
|
2058
2058
|
var Qe = $e.firstTabbableNode;
|
|
2059
|
-
return
|
|
2059
|
+
return y === Qe;
|
|
2060
2060
|
});
|
|
2061
|
-
if (g < 0 && (W.container ===
|
|
2062
|
-
var
|
|
2063
|
-
D = Oe(
|
|
2061
|
+
if (g < 0 && (W.container === y || Je(y, c.tabbableOptions) && !Ne(y, c.tabbableOptions) && !W.nextTabbableNode(y, !1)) && (g = J), g >= 0) {
|
|
2062
|
+
var M = g === 0 ? r.tabbableGroups.length - 1 : g - 1, K = r.tabbableGroups[M];
|
|
2063
|
+
D = Oe(y) >= 0 ? K.lastTabbableNode : K.lastDomTabbableNode;
|
|
2064
2064
|
} else
|
|
2065
|
-
je(
|
|
2065
|
+
je(A) || (D = W.nextTabbableNode(y, !1));
|
|
2066
2066
|
} else {
|
|
2067
2067
|
var pe = gl(r.tabbableGroups, function($e) {
|
|
2068
2068
|
var Qe = $e.lastTabbableNode;
|
|
2069
|
-
return
|
|
2069
|
+
return y === Qe;
|
|
2070
2070
|
});
|
|
2071
|
-
if (pe < 0 && (W.container ===
|
|
2071
|
+
if (pe < 0 && (W.container === y || Je(y, c.tabbableOptions) && !Ne(y, c.tabbableOptions) && !W.nextTabbableNode(y)) && (pe = J), pe >= 0) {
|
|
2072
2072
|
var Ce = pe === r.tabbableGroups.length - 1 ? 0 : pe + 1, Ae = r.tabbableGroups[Ce];
|
|
2073
|
-
D = Oe(
|
|
2073
|
+
D = Oe(y) >= 0 ? Ae.firstTabbableNode : Ae.firstDomTabbableNode;
|
|
2074
2074
|
} else
|
|
2075
|
-
je(
|
|
2075
|
+
je(A) || (D = W.nextTabbableNode(y));
|
|
2076
2076
|
}
|
|
2077
2077
|
} else
|
|
2078
2078
|
D = m("fallbackFocus");
|
|
2079
2079
|
return D;
|
|
2080
|
-
},
|
|
2081
|
-
var
|
|
2082
|
-
if (!(i(
|
|
2080
|
+
}, j = function(T) {
|
|
2081
|
+
var y = Me(T);
|
|
2082
|
+
if (!(i(y, T) >= 0)) {
|
|
2083
2083
|
if (qe(c.clickOutsideDeactivates, T)) {
|
|
2084
2084
|
o.deactivate({
|
|
2085
2085
|
// NOTE: by setting `returnFocus: false`, deactivate() will do nothing,
|
|
@@ -2095,12 +2095,12 @@ var ml = {
|
|
|
2095
2095
|
qe(c.allowOutsideClick, T) || T.preventDefault();
|
|
2096
2096
|
}
|
|
2097
2097
|
}, Z = function(T) {
|
|
2098
|
-
var
|
|
2099
|
-
if (
|
|
2100
|
-
|
|
2098
|
+
var y = Me(T), A = i(y, T) >= 0;
|
|
2099
|
+
if (A || y instanceof Document)
|
|
2100
|
+
A && (r.mostRecentlyFocusedNode = y);
|
|
2101
2101
|
else {
|
|
2102
2102
|
T.stopImmediatePropagation();
|
|
2103
|
-
var
|
|
2103
|
+
var U, C = !0;
|
|
2104
2104
|
if (r.mostRecentlyFocusedNode)
|
|
2105
2105
|
if (Oe(r.mostRecentlyFocusedNode) > 0) {
|
|
2106
2106
|
var D = i(r.mostRecentlyFocusedNode), J = r.containerGroups[D].tabbableNodes;
|
|
@@ -2108,69 +2108,69 @@ var ml = {
|
|
|
2108
2108
|
var W = J.findIndex(function(g) {
|
|
2109
2109
|
return g === r.mostRecentlyFocusedNode;
|
|
2110
2110
|
});
|
|
2111
|
-
W >= 0 && (c.isKeyForward(r.recentNavEvent) ? W + 1 < J.length && (
|
|
2111
|
+
W >= 0 && (c.isKeyForward(r.recentNavEvent) ? W + 1 < J.length && (U = J[W + 1], C = !1) : W - 1 >= 0 && (U = J[W - 1], C = !1));
|
|
2112
2112
|
}
|
|
2113
2113
|
} else
|
|
2114
2114
|
r.containerGroups.some(function(g) {
|
|
2115
|
-
return g.tabbableNodes.some(function(
|
|
2116
|
-
return Oe(
|
|
2115
|
+
return g.tabbableNodes.some(function(M) {
|
|
2116
|
+
return Oe(M) > 0;
|
|
2117
2117
|
});
|
|
2118
2118
|
}) || (C = !1);
|
|
2119
2119
|
else
|
|
2120
2120
|
C = !1;
|
|
2121
|
-
C && (
|
|
2121
|
+
C && (U = L({
|
|
2122
2122
|
// move FROM the MRU node, not event-related node (which will be the node that is
|
|
2123
2123
|
// outside the trap causing the focus escape we're trying to fix)
|
|
2124
2124
|
target: r.mostRecentlyFocusedNode,
|
|
2125
2125
|
isBackward: c.isKeyBackward(r.recentNavEvent)
|
|
2126
|
-
})),
|
|
2126
|
+
})), w(U || r.mostRecentlyFocusedNode || k());
|
|
2127
2127
|
}
|
|
2128
2128
|
r.recentNavEvent = void 0;
|
|
2129
2129
|
}, ae = function(T) {
|
|
2130
|
-
var
|
|
2130
|
+
var y = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
|
|
2131
2131
|
r.recentNavEvent = T;
|
|
2132
|
-
var
|
|
2132
|
+
var A = L({
|
|
2133
2133
|
event: T,
|
|
2134
|
-
isBackward:
|
|
2134
|
+
isBackward: y
|
|
2135
2135
|
});
|
|
2136
|
-
|
|
2137
|
-
},
|
|
2136
|
+
A && (je(T) && T.preventDefault(), w(A));
|
|
2137
|
+
}, E = function(T) {
|
|
2138
2138
|
if (qa(T) && qe(c.escapeDeactivates, T) !== !1) {
|
|
2139
2139
|
T.preventDefault(), o.deactivate();
|
|
2140
2140
|
return;
|
|
2141
2141
|
}
|
|
2142
2142
|
(c.isKeyForward(T) || c.isKeyBackward(T)) && ae(T, c.isKeyBackward(T));
|
|
2143
2143
|
}, B = function(T) {
|
|
2144
|
-
var
|
|
2145
|
-
i(
|
|
2146
|
-
},
|
|
2144
|
+
var y = Me(T);
|
|
2145
|
+
i(y, T) >= 0 || qe(c.clickOutsideDeactivates, T) || qe(c.allowOutsideClick, T) || (T.preventDefault(), T.stopImmediatePropagation());
|
|
2146
|
+
}, d = function() {
|
|
2147
2147
|
if (r.active)
|
|
2148
2148
|
return ml.activateTrap(n, o), r.delayInitialFocusTimer = c.delayInitialFocus ? vl(function() {
|
|
2149
|
-
|
|
2150
|
-
}) :
|
|
2149
|
+
w(k());
|
|
2150
|
+
}) : w(k()), t.addEventListener("focusin", Z, !0), t.addEventListener("mousedown", j, {
|
|
2151
2151
|
capture: !0,
|
|
2152
2152
|
passive: !1
|
|
2153
|
-
}), t.addEventListener("touchstart",
|
|
2153
|
+
}), t.addEventListener("touchstart", j, {
|
|
2154
2154
|
capture: !0,
|
|
2155
2155
|
passive: !1
|
|
2156
2156
|
}), t.addEventListener("click", B, {
|
|
2157
2157
|
capture: !0,
|
|
2158
2158
|
passive: !1
|
|
2159
|
-
}), t.addEventListener("keydown",
|
|
2159
|
+
}), t.addEventListener("keydown", E, {
|
|
2160
2160
|
capture: !0,
|
|
2161
2161
|
passive: !1
|
|
2162
2162
|
}), o;
|
|
2163
2163
|
}, f = function() {
|
|
2164
2164
|
if (r.active)
|
|
2165
|
-
return t.removeEventListener("focusin", Z, !0), t.removeEventListener("mousedown",
|
|
2165
|
+
return t.removeEventListener("focusin", Z, !0), t.removeEventListener("mousedown", j, !0), t.removeEventListener("touchstart", j, !0), t.removeEventListener("click", B, !0), t.removeEventListener("keydown", E, !0), o;
|
|
2166
2166
|
}, O = function(T) {
|
|
2167
|
-
var
|
|
2168
|
-
var
|
|
2169
|
-
return
|
|
2167
|
+
var y = T.some(function(A) {
|
|
2168
|
+
var U = Array.from(A.removedNodes);
|
|
2169
|
+
return U.some(function(C) {
|
|
2170
2170
|
return C === r.mostRecentlyFocusedNode;
|
|
2171
2171
|
});
|
|
2172
2172
|
});
|
|
2173
|
-
|
|
2173
|
+
y && w(k());
|
|
2174
2174
|
}, $ = typeof window < "u" && "MutationObserver" in window ? new MutationObserver(O) : void 0, _ = function() {
|
|
2175
2175
|
$ && ($.disconnect(), r.active && !r.paused && r.containers.map(function(T) {
|
|
2176
2176
|
$.observe(T, {
|
|
@@ -2189,48 +2189,48 @@ var ml = {
|
|
|
2189
2189
|
activate: function(T) {
|
|
2190
2190
|
if (r.active)
|
|
2191
2191
|
return this;
|
|
2192
|
-
var
|
|
2193
|
-
|
|
2192
|
+
var y = s(T, "onActivate"), A = s(T, "onPostActivate"), U = s(T, "checkCanFocusTrap");
|
|
2193
|
+
U || u(), r.active = !0, r.paused = !1, r.nodeFocusedBeforeActivation = t.activeElement, y == null || y();
|
|
2194
2194
|
var C = function() {
|
|
2195
|
-
|
|
2195
|
+
U && u(), d(), _(), A == null || A();
|
|
2196
2196
|
};
|
|
2197
|
-
return
|
|
2197
|
+
return U ? (U(r.containers.concat()).then(C, C), this) : (C(), this);
|
|
2198
2198
|
},
|
|
2199
2199
|
deactivate: function(T) {
|
|
2200
2200
|
if (!r.active)
|
|
2201
2201
|
return this;
|
|
2202
|
-
var
|
|
2202
|
+
var y = pl({
|
|
2203
2203
|
onDeactivate: c.onDeactivate,
|
|
2204
2204
|
onPostDeactivate: c.onPostDeactivate,
|
|
2205
2205
|
checkCanReturnFocus: c.checkCanReturnFocus
|
|
2206
2206
|
}, T);
|
|
2207
2207
|
clearTimeout(r.delayInitialFocusTimer), r.delayInitialFocusTimer = void 0, f(), r.active = !1, r.paused = !1, _(), ml.deactivateTrap(n, o);
|
|
2208
|
-
var
|
|
2209
|
-
|
|
2208
|
+
var A = s(y, "onDeactivate"), U = s(y, "onPostDeactivate"), C = s(y, "checkCanReturnFocus"), D = s(y, "returnFocus", "returnFocusOnDeactivate");
|
|
2209
|
+
A == null || A();
|
|
2210
2210
|
var J = function() {
|
|
2211
2211
|
vl(function() {
|
|
2212
|
-
D &&
|
|
2212
|
+
D && w(N(r.nodeFocusedBeforeActivation)), U == null || U();
|
|
2213
2213
|
});
|
|
2214
2214
|
};
|
|
2215
|
-
return D && C ? (C(
|
|
2215
|
+
return D && C ? (C(N(r.nodeFocusedBeforeActivation)).then(J, J), this) : (J(), this);
|
|
2216
2216
|
},
|
|
2217
2217
|
pause: function(T) {
|
|
2218
2218
|
if (r.paused || !r.active)
|
|
2219
2219
|
return this;
|
|
2220
|
-
var
|
|
2221
|
-
return r.paused = !0,
|
|
2220
|
+
var y = s(T, "onPause"), A = s(T, "onPostPause");
|
|
2221
|
+
return r.paused = !0, y == null || y(), f(), _(), A == null || A(), this;
|
|
2222
2222
|
},
|
|
2223
2223
|
unpause: function(T) {
|
|
2224
2224
|
if (!r.paused || !r.active)
|
|
2225
2225
|
return this;
|
|
2226
|
-
var
|
|
2227
|
-
return r.paused = !1,
|
|
2226
|
+
var y = s(T, "onUnpause"), A = s(T, "onPostUnpause");
|
|
2227
|
+
return r.paused = !1, y == null || y(), u(), d(), _(), A == null || A(), this;
|
|
2228
2228
|
},
|
|
2229
2229
|
updateContainerElements: function(T) {
|
|
2230
|
-
var
|
|
2231
|
-
return r.containers =
|
|
2232
|
-
return typeof
|
|
2233
|
-
}), r.active &&
|
|
2230
|
+
var y = [].concat(T).filter(Boolean);
|
|
2231
|
+
return r.containers = y.map(function(A) {
|
|
2232
|
+
return typeof A == "string" ? t.querySelector(A) : A;
|
|
2233
|
+
}), r.active && u(), _(), this;
|
|
2234
2234
|
}
|
|
2235
2235
|
}, o.updateContainerElements(e), o;
|
|
2236
2236
|
}, Fa = Object.defineProperty, Ma = Object.defineProperties, Va = Object.getOwnPropertyDescriptors, Ge = Object.getOwnPropertySymbols, Il = Object.prototype.hasOwnProperty, jl = Object.prototype.propertyIsEnumerable, bl = (a, e, l) => e in a ? Fa(a, e, { enumerable: !0, configurable: !0, writable: !0, value: l }) : a[e] = l, La = (a, e) => {
|
|
@@ -2251,15 +2251,15 @@ var ml = {
|
|
|
2251
2251
|
};
|
|
2252
2252
|
function Ba(a, e = {}) {
|
|
2253
2253
|
let l;
|
|
2254
|
-
const t = e, { immediate: n } = t, c = Ua(t, ["immediate"]), r = I(!1), o = I(!1), s = (
|
|
2254
|
+
const t = e, { immediate: n } = t, c = Ua(t, ["immediate"]), r = I(!1), o = I(!1), s = (u) => l && l.activate(u), i = (u) => l && l.deactivate(u), m = () => {
|
|
2255
2255
|
l && (l.pause(), o.value = !0);
|
|
2256
2256
|
}, k = () => {
|
|
2257
2257
|
l && (l.unpause(), o.value = !1);
|
|
2258
2258
|
};
|
|
2259
2259
|
return oe(
|
|
2260
2260
|
() => Zl(a),
|
|
2261
|
-
(
|
|
2262
|
-
|
|
2261
|
+
(u) => {
|
|
2262
|
+
u && (l = ja(u, Pa(La({}, c), {
|
|
2263
2263
|
onActivate() {
|
|
2264
2264
|
r.value = !0, e.onActivate && e.onActivate();
|
|
2265
2265
|
},
|
|
@@ -2278,10 +2278,10 @@ function Ba(a, e = {}) {
|
|
|
2278
2278
|
unpause: k
|
|
2279
2279
|
};
|
|
2280
2280
|
}
|
|
2281
|
-
const za = /* @__PURE__ */ b("div", { tabindex: "0" }, null, -1), _a = ["onKeypress"],
|
|
2281
|
+
const za = /* @__PURE__ */ b("div", { tabindex: "0" }, null, -1), _a = ["onKeypress"], Ha = {
|
|
2282
2282
|
key: 0,
|
|
2283
2283
|
class: "cl-mt-1 cl-opacity-60 cl-text-primary-default"
|
|
2284
|
-
},
|
|
2284
|
+
}, xa = { class: "cl-overflow-y-auto cl-overscroll-y-none cl-p-2 cl-w-full" }, Fl = /* @__PURE__ */ Q({
|
|
2285
2285
|
inheritAttrs: !1,
|
|
2286
2286
|
__name: "cl-ui-modal",
|
|
2287
2287
|
props: {
|
|
@@ -2312,8 +2312,8 @@ const za = /* @__PURE__ */ b("div", { tabindex: "0" }, null, -1), _a = ["onKeypr
|
|
|
2312
2312
|
function s(i) {
|
|
2313
2313
|
i.key === "Escape" && o();
|
|
2314
2314
|
}
|
|
2315
|
-
return (i, m) => (p(),
|
|
2316
|
-
|
|
2315
|
+
return (i, m) => (p(), h(X, null, [
|
|
2316
|
+
P(i.$slots, "trigger", ce(ve({ open: r }))),
|
|
2317
2317
|
(p(), G(ll, { to: "body" }, [
|
|
2318
2318
|
S(Te, { name: "fade" }, {
|
|
2319
2319
|
default: Y(() => [
|
|
@@ -2332,7 +2332,7 @@ const za = /* @__PURE__ */ b("div", { tabindex: "0" }, null, -1), _a = ["onKeypr
|
|
|
2332
2332
|
}]
|
|
2333
2333
|
}), [
|
|
2334
2334
|
le(b("div", {
|
|
2335
|
-
class:
|
|
2335
|
+
class: V(["cl-absolute cl-cursor-pointer cl-right-4 cl-top-4 cl-transition-colors cl-w-3", {
|
|
2336
2336
|
"cl-text-white hover:cl-text-off-white": i.headerColour === "secondary",
|
|
2337
2337
|
"cl-text-secondary hover:cl-text-off-white": i.headerColour === "primary",
|
|
2338
2338
|
"cl-text-black hover:cl-text-grey-7": i.headerColour === "white"
|
|
@@ -2341,23 +2341,23 @@ const za = /* @__PURE__ */ b("div", { tabindex: "0" }, null, -1), _a = ["onKeypr
|
|
|
2341
2341
|
onKeypress: Ee(o, ["enter"]),
|
|
2342
2342
|
onClick: o
|
|
2343
2343
|
}, [
|
|
2344
|
-
S(v(
|
|
2344
|
+
S(v(H), { icon: "ph:x" })
|
|
2345
2345
|
], 42, _a), [
|
|
2346
2346
|
[te, !i.preventClose]
|
|
2347
2347
|
]),
|
|
2348
2348
|
b("div", {
|
|
2349
|
-
class:
|
|
2349
|
+
class: V(["cl-leading-[2.75rem] cl-min-h-12 cl-overflow-hidden cl-pb-2 cl-pl-4 cl-pr-8 cl-pt-2 cl-text-2xl cl-w-full", {
|
|
2350
2350
|
"cl-bg-secondary-default cl-text-white": i.headerColour === "secondary",
|
|
2351
2351
|
"cl-bg-primary-default cl-text-secondary": i.headerColour === "primary"
|
|
2352
2352
|
}])
|
|
2353
2353
|
}, [
|
|
2354
|
-
|
|
2355
|
-
i.headerColour === "white" ? (p(),
|
|
2354
|
+
P(i.$slots, "title"),
|
|
2355
|
+
i.headerColour === "white" ? (p(), h("hr", Ha)) : F("", !0)
|
|
2356
2356
|
], 2),
|
|
2357
|
-
b("div",
|
|
2358
|
-
|
|
2357
|
+
b("div", xa, [
|
|
2358
|
+
P(i.$slots, "default", ce(ve({ close: o })))
|
|
2359
2359
|
]),
|
|
2360
|
-
|
|
2360
|
+
P(i.$slots, "footer", ce(ve({ close: o })))
|
|
2361
2361
|
], 16)
|
|
2362
2362
|
], 512), [
|
|
2363
2363
|
[te, t.value]
|
|
@@ -2382,10 +2382,10 @@ const za = /* @__PURE__ */ b("div", { tabindex: "0" }, null, -1), _a = ["onKeypr
|
|
|
2382
2382
|
"clear-object": null
|
|
2383
2383
|
},
|
|
2384
2384
|
setup(a) {
|
|
2385
|
-
return (e, l) => (p(),
|
|
2386
|
-
e.additionalText !== "" ? (p(),
|
|
2385
|
+
return (e, l) => (p(), h("div", Ga, [
|
|
2386
|
+
e.additionalText !== "" ? (p(), h("div", Za, q(e.additionalText), 1)) : F("", !0),
|
|
2387
2387
|
b("div", {
|
|
2388
|
-
class:
|
|
2388
|
+
class: V({
|
|
2389
2389
|
"cl-w-1/2": e.additionalText !== "",
|
|
2390
2390
|
"cl-w-full": e.additionalText === ""
|
|
2391
2391
|
})
|
|
@@ -2394,7 +2394,7 @@ const za = /* @__PURE__ */ b("div", { tabindex: "0" }, null, -1), _a = ["onKeypr
|
|
|
2394
2394
|
class: "cl-cursor-pointer cl-float-right",
|
|
2395
2395
|
onMousedown: l[0] || (l[0] = (t) => e.$emit("clear-object"))
|
|
2396
2396
|
}, [
|
|
2397
|
-
S(v(
|
|
2397
|
+
S(v(H), {
|
|
2398
2398
|
class: "cl-mt-1 cl-transition-colors hover:cl-text-link-default",
|
|
2399
2399
|
icon: "ph:x"
|
|
2400
2400
|
})
|
|
@@ -2439,26 +2439,26 @@ const za = /* @__PURE__ */ b("div", { tabindex: "0" }, null, -1), _a = ["onKeypr
|
|
|
2439
2439
|
l.selectedIndex === l.index ? c.value = !0 : c.value = !1;
|
|
2440
2440
|
}
|
|
2441
2441
|
return oe(() => l.selectedIndex, () => s()), (i, m) => {
|
|
2442
|
-
var k,
|
|
2443
|
-
return p(),
|
|
2444
|
-
class:
|
|
2442
|
+
var k, u;
|
|
2443
|
+
return p(), h("div", {
|
|
2444
|
+
class: V(["cl-cursor-pointer cl-duration-75 cl-flex cl-p-1 cl-text-left cl-transition-colors", {
|
|
2445
2445
|
"cl-bg-white": c.value === !1,
|
|
2446
2446
|
"cl-bg-link-light cl-text-white cl-opacity-90": c.value && i.isCreateNewOption === !1,
|
|
2447
2447
|
"cl-bg-primary-default cl-text-black cl-opacity-90": c.value && i.isCreateNewOption
|
|
2448
2448
|
}]),
|
|
2449
2449
|
onMousedown: r,
|
|
2450
|
-
onMousemove: m[0] || (m[0] = (
|
|
2451
|
-
onMouseleave: m[1] || (m[1] = (
|
|
2450
|
+
onMousemove: m[0] || (m[0] = (w) => o(!0)),
|
|
2451
|
+
onMouseleave: m[1] || (m[1] = (w) => o(!1))
|
|
2452
2452
|
}, [
|
|
2453
|
-
i.option !== null && ((k = i.option) == null ? void 0 : k.parentId) !== 0 && ((
|
|
2453
|
+
i.option !== null && ((k = i.option) == null ? void 0 : k.parentId) !== 0 && ((u = i.option) == null ? void 0 : u.parentId) !== void 0 ? (p(), h("div", Ka, q(n.value), 1)) : F("", !0),
|
|
2454
2454
|
b("div", {
|
|
2455
|
-
class:
|
|
2455
|
+
class: V({
|
|
2456
2456
|
"cl-w-1/2": n.value !== "",
|
|
2457
2457
|
"cl-w-full": n.value === ""
|
|
2458
2458
|
})
|
|
2459
2459
|
}, q(t.value), 3),
|
|
2460
2460
|
le(b("div", Qa, [
|
|
2461
|
-
S(v(
|
|
2461
|
+
S(v(H), {
|
|
2462
2462
|
class: "cl-transition-colors",
|
|
2463
2463
|
icon: "ph:plus"
|
|
2464
2464
|
})
|
|
@@ -2491,70 +2491,70 @@ const za = /* @__PURE__ */ b("div", { tabindex: "0" }, null, -1), _a = ["onKeypr
|
|
|
2491
2491
|
},
|
|
2492
2492
|
setup(a, { emit: e }) {
|
|
2493
2493
|
const l = a, { t } = ie(), n = I(""), c = I(!1), r = I(-1), o = R(() => c.value ? -1 : 0), s = I();
|
|
2494
|
-
function i(
|
|
2495
|
-
(
|
|
2494
|
+
function i(d) {
|
|
2495
|
+
(d === void 0 || (d == null ? void 0 : d.code.startsWith("Arrow")) === !1 && (d == null ? void 0 : d.code.startsWith("Control")) === !1 && (d == null ? void 0 : d.code.startsWith("Shift")) === !1 && (d == null ? void 0 : d.code.startsWith("Tab")) === !1 && (d == null ? void 0 : d.code) !== "Enter") && (e("search", n.value), r.value = -2);
|
|
2496
2496
|
}
|
|
2497
|
-
function m(
|
|
2498
|
-
e("select-object",
|
|
2497
|
+
function m(d) {
|
|
2498
|
+
e("select-object", d);
|
|
2499
2499
|
}
|
|
2500
2500
|
function k() {
|
|
2501
|
-
e("create-object", n.value),
|
|
2501
|
+
e("create-object", n.value), u();
|
|
2502
2502
|
}
|
|
2503
|
-
function
|
|
2503
|
+
function u() {
|
|
2504
2504
|
e("hide-dropdown");
|
|
2505
2505
|
}
|
|
2506
|
-
function
|
|
2507
|
-
r.value < l.results.length - 1 ? (r.value === -2 && n.value === "" && r.value++, r.value++) : r.value =
|
|
2506
|
+
function w(d) {
|
|
2507
|
+
r.value < l.results.length - 1 ? (r.value === -2 && n.value === "" && r.value++, r.value++) : r.value = d, Z();
|
|
2508
2508
|
}
|
|
2509
|
-
function
|
|
2510
|
-
r.value >
|
|
2509
|
+
function N(d) {
|
|
2510
|
+
r.value > d ? r.value-- : r.value = l.results.length - 1, Z();
|
|
2511
2511
|
}
|
|
2512
|
-
function
|
|
2512
|
+
function L() {
|
|
2513
2513
|
r.value >= 0 && l.results !== void 0 ? m(l.results[r.value].id) : r.value === -1 && k();
|
|
2514
2514
|
}
|
|
2515
|
-
function
|
|
2516
|
-
if (
|
|
2515
|
+
function j(d) {
|
|
2516
|
+
if (d.key === "Tab" && d.shiftKey === !0) {
|
|
2517
2517
|
const f = document.getElementsByTagName("input");
|
|
2518
2518
|
let O = -1;
|
|
2519
2519
|
for (let $ = 0; $ < f.length; $++)
|
|
2520
|
-
f[$] ===
|
|
2521
|
-
O >= 0 && (f[O].focus(),
|
|
2520
|
+
f[$] === d.target && (O = $ - 1);
|
|
2521
|
+
O >= 0 && (f[O].focus(), u());
|
|
2522
2522
|
}
|
|
2523
2523
|
}
|
|
2524
2524
|
function Z() {
|
|
2525
|
-
var
|
|
2526
|
-
l.results && l.results.length > 1 && ((
|
|
2525
|
+
var d;
|
|
2526
|
+
l.results && l.results.length > 1 && ((d = s.value) == null || d.scrollTo(0, (r.value + 1) * 34 - 34 * 2));
|
|
2527
2527
|
}
|
|
2528
2528
|
function ae() {
|
|
2529
|
-
let
|
|
2530
|
-
l.results !== null && l.results.length === 1 && (
|
|
2529
|
+
let d = !1;
|
|
2530
|
+
l.results !== null && l.results.length === 1 && (d = n.value.toUpperCase().trim() === l.results[0].name.toUpperCase().trim()), c.value = l.canCreateNewObject === !0 && l.errorMessage === "" && n.value.trim() !== "" && d === !1;
|
|
2531
2531
|
}
|
|
2532
|
-
function
|
|
2533
|
-
r.value =
|
|
2532
|
+
function E(d) {
|
|
2533
|
+
r.value = d;
|
|
2534
2534
|
}
|
|
2535
2535
|
function B() {
|
|
2536
2536
|
l.isVisible === !0 && (n.value = "", i(), Fe(() => {
|
|
2537
|
-
var
|
|
2538
|
-
return (f = (
|
|
2537
|
+
var d, f;
|
|
2538
|
+
return (f = (d = s.value) == null ? void 0 : d.querySelector("input")) == null ? void 0 : f.focus();
|
|
2539
2539
|
}));
|
|
2540
2540
|
}
|
|
2541
2541
|
return oe(() => l.results, () => ae()), oe(() => l.errorMessage, () => ae()), oe(() => l.isVisible, () => B()), Ze(() => {
|
|
2542
|
-
var
|
|
2543
|
-
return (
|
|
2542
|
+
var d;
|
|
2543
|
+
return (d = s.value) == null ? void 0 : d.addEventListener("keydown", j);
|
|
2544
2544
|
}), tl(() => {
|
|
2545
|
-
var
|
|
2546
|
-
return (
|
|
2547
|
-
}), (
|
|
2545
|
+
var d;
|
|
2546
|
+
return (d = s.value) == null ? void 0 : d.removeEventListener("keydown", j);
|
|
2547
|
+
}), (d, f) => {
|
|
2548
2548
|
var O;
|
|
2549
|
-
return p(),
|
|
2549
|
+
return p(), h("div", {
|
|
2550
2550
|
ref_key: "container",
|
|
2551
2551
|
ref: s,
|
|
2552
2552
|
class: "cl-absolute cl-bg-white cl-border cl-border-collapse cl-border-grey-0 cl-h-52 cl-overflow-y-auto cl-overscroll-y-none cl-rounded cl-text-sm cl-w-full cl-z-20",
|
|
2553
2553
|
onKeydown: [
|
|
2554
|
-
f[2] || (f[2] = Ee(ne(($) =>
|
|
2555
|
-
f[3] || (f[3] = Ee(ne(($) =>
|
|
2554
|
+
f[2] || (f[2] = Ee(ne(($) => N(o.value), ["prevent", "stop"]), ["up"])),
|
|
2555
|
+
f[3] || (f[3] = Ee(ne(($) => w(o.value), ["prevent", "stop"]), ["down"]))
|
|
2556
2556
|
],
|
|
2557
|
-
onKeyup: Ee(ne(
|
|
2557
|
+
onKeyup: Ee(ne(L, ["prevent", "stop"]), ["enter"])
|
|
2558
2558
|
}, [
|
|
2559
2559
|
b("div", Ya, [
|
|
2560
2560
|
S(me, {
|
|
@@ -2562,56 +2562,56 @@ const za = /* @__PURE__ */ b("div", { tabindex: "0" }, null, -1), _a = ["onKeypr
|
|
|
2562
2562
|
"onUpdate:modelValue": f[0] || (f[0] = ($) => n.value = $),
|
|
2563
2563
|
class: "!cl-mr-0 cl-w-full",
|
|
2564
2564
|
"input-type": "text",
|
|
2565
|
-
"placeholder-text":
|
|
2565
|
+
"placeholder-text": d.searchHint,
|
|
2566
2566
|
onKeyup: i,
|
|
2567
|
-
onBlur:
|
|
2567
|
+
onBlur: u
|
|
2568
2568
|
}, null, 8, ["modelValue", "placeholder-text"]),
|
|
2569
2569
|
le(S(Ke, { class: "cl-absolute cl-ml-2 cl-mt-11" }, null, 512), [
|
|
2570
|
-
[te,
|
|
2570
|
+
[te, d.loading]
|
|
2571
2571
|
])
|
|
2572
2572
|
]),
|
|
2573
|
-
|
|
2573
|
+
d.currentObjectName !== "" ? (p(), G(Ve, {
|
|
2574
2574
|
key: 0,
|
|
2575
|
-
"show-clear-button":
|
|
2576
|
-
text:
|
|
2577
|
-
onClearObject: f[1] || (f[1] = ($) =>
|
|
2578
|
-
}, null, 8, ["show-clear-button", "text"])) :
|
|
2579
|
-
|
|
2575
|
+
"show-clear-button": d.canClearSelectedObject,
|
|
2576
|
+
text: d.currentObjectName,
|
|
2577
|
+
onClearObject: f[1] || (f[1] = ($) => d.$emit("clear-object"))
|
|
2578
|
+
}, null, 8, ["show-clear-button", "text"])) : F("", !0),
|
|
2579
|
+
d.objectParentType !== "" && d.results !== void 0 && d.results.length > 0 && d.errorMessage === "" ? (p(), G(Ve, {
|
|
2580
2580
|
key: 1,
|
|
2581
|
-
text:
|
|
2582
|
-
"additional-text":
|
|
2581
|
+
text: d.objectType,
|
|
2582
|
+
"additional-text": d.objectParentType,
|
|
2583
2583
|
class: "cl-bg-grey-2 cl-mt-1"
|
|
2584
|
-
}, null, 8, ["text", "additional-text"])) :
|
|
2585
|
-
|
|
2584
|
+
}, null, 8, ["text", "additional-text"])) : F("", !0),
|
|
2585
|
+
d.results !== null && ((O = d.results) == null ? void 0 : O.length) === 0 && n.value.trim() !== "" && d.canCreateNewObject === !1 && d.errorMessage === "" ? (p(), G(Ve, {
|
|
2586
2586
|
key: 2,
|
|
2587
2587
|
text: v(t)("comboBox.noResults", { value: n.value })
|
|
2588
|
-
}, null, 8, ["text"])) :
|
|
2589
|
-
|
|
2588
|
+
}, null, 8, ["text"])) : F("", !0),
|
|
2589
|
+
d.errorMessage !== "" ? (p(), G(Ve, {
|
|
2590
2590
|
key: 3,
|
|
2591
2591
|
class: "!cl-bg-danger-light cl-border-danger-light cl-rounded cl-text-danger-dark",
|
|
2592
|
-
text: v(t)("comboBox.errorMessage", { error:
|
|
2593
|
-
}, null, 8, ["text"])) :
|
|
2592
|
+
text: v(t)("comboBox.errorMessage", { error: d.errorMessage })
|
|
2593
|
+
}, null, 8, ["text"])) : F("", !0),
|
|
2594
2594
|
c.value ? (p(), G(hl, {
|
|
2595
2595
|
key: 4,
|
|
2596
2596
|
"is-create-new-option": !0,
|
|
2597
|
-
text: v(t)("comboBox.addPrompt", { value: n.value, object:
|
|
2597
|
+
text: v(t)("comboBox.addPrompt", { value: n.value, object: d.objectType }),
|
|
2598
2598
|
index: -1,
|
|
2599
2599
|
"selected-index": r.value,
|
|
2600
2600
|
class: "cl-px-2",
|
|
2601
2601
|
onCreateObject: k,
|
|
2602
|
-
onOptionHighlighted:
|
|
2603
|
-
}, null, 8, ["text", "selected-index"])) :
|
|
2604
|
-
|
|
2605
|
-
(p(!0),
|
|
2602
|
+
onOptionHighlighted: E
|
|
2603
|
+
}, null, 8, ["text", "selected-index"])) : F("", !0),
|
|
2604
|
+
d.errorMessage === "" && d.results !== null ? (p(), h("div", Ja, [
|
|
2605
|
+
(p(!0), h(X, null, se(d.results, ($, _) => (p(), G(hl, {
|
|
2606
2606
|
key: _,
|
|
2607
2607
|
option: $,
|
|
2608
2608
|
index: _,
|
|
2609
2609
|
class: "cl-px-2",
|
|
2610
2610
|
"selected-index": r.value,
|
|
2611
2611
|
onSelectObject: m,
|
|
2612
|
-
onOptionHighlighted:
|
|
2612
|
+
onOptionHighlighted: E
|
|
2613
2613
|
}, null, 8, ["option", "index", "selected-index"]))), 128))
|
|
2614
|
-
])) :
|
|
2614
|
+
])) : F("", !0)
|
|
2615
2615
|
], 40, Wa);
|
|
2616
2616
|
};
|
|
2617
2617
|
}
|
|
@@ -2647,22 +2647,22 @@ const za = /* @__PURE__ */ b("div", { tabindex: "0" }, null, -1), _a = ["onKeypr
|
|
|
2647
2647
|
const t = a, n = R(() => t.placeholderText ? t.placeholderText : r("comboBox.emptyHintText", { object: t.objectType })), c = R(() => t.searchHint ? t.searchHint : r("comboBox.searchHint", { object: t.objectType })), { t: r } = ie(), o = I(!1), s = R({
|
|
2648
2648
|
get: () => t.currentObject,
|
|
2649
2649
|
set: (C) => l("update:current-object", C)
|
|
2650
|
-
}), i = I(null), m = I(null), k = R(() =>
|
|
2650
|
+
}), i = I(null), m = I(null), k = R(() => y()), u = I(""), w = I(""), N = I(), L = I(!0), j = I(!1);
|
|
2651
2651
|
function Z(C) {
|
|
2652
2652
|
var J, W;
|
|
2653
|
-
const D = ((J =
|
|
2654
|
-
|
|
2653
|
+
const D = ((J = U.value) == null ? void 0 : J.getBoundingClientRect().top) || 0;
|
|
2654
|
+
j.value = window.innerHeight - D < 280, t.disabled || (typeof C < "u" ? o.value = C : o.value = !o.value), (W = i.value) == null || W.blur();
|
|
2655
2655
|
}
|
|
2656
2656
|
function ae(C) {
|
|
2657
|
-
|
|
2657
|
+
u.value = C, l("search", C);
|
|
2658
2658
|
}
|
|
2659
|
-
function
|
|
2660
|
-
|
|
2659
|
+
function E(C) {
|
|
2660
|
+
w.value = C, l("search-parent", C);
|
|
2661
2661
|
}
|
|
2662
2662
|
function B() {
|
|
2663
2663
|
s.value = null, Z(!1);
|
|
2664
2664
|
}
|
|
2665
|
-
function
|
|
2665
|
+
function d(C) {
|
|
2666
2666
|
const D = f(C);
|
|
2667
2667
|
s.value = D, Z(!1);
|
|
2668
2668
|
}
|
|
@@ -2679,21 +2679,21 @@ const za = /* @__PURE__ */ b("div", { tabindex: "0" }, null, -1), _a = ["onKeypr
|
|
|
2679
2679
|
}
|
|
2680
2680
|
function O() {
|
|
2681
2681
|
var C;
|
|
2682
|
-
|
|
2683
|
-
name:
|
|
2682
|
+
N.value = {
|
|
2683
|
+
name: u.value,
|
|
2684
2684
|
parentId: ((C = m.value) == null ? void 0 : C.id) ?? 0
|
|
2685
|
-
}, l("create-object",
|
|
2685
|
+
}, l("create-object", N.value);
|
|
2686
2686
|
}
|
|
2687
2687
|
function $() {
|
|
2688
|
-
|
|
2689
|
-
name:
|
|
2688
|
+
N.value = {
|
|
2689
|
+
name: w.value,
|
|
2690
2690
|
parentId: 0
|
|
2691
|
-
}, l("create-parent-object",
|
|
2691
|
+
}, l("create-parent-object", N.value);
|
|
2692
2692
|
}
|
|
2693
2693
|
function _() {
|
|
2694
2694
|
var C, D;
|
|
2695
2695
|
(C = t.objectCreatedResponse) != null && C.error ? sl({
|
|
2696
|
-
message: r("comboBox.createFailed", { name:
|
|
2696
|
+
message: r("comboBox.createFailed", { name: u.value, error: t.objectCreatedResponse.error }),
|
|
2697
2697
|
colour: "danger",
|
|
2698
2698
|
duration: 1e4
|
|
2699
2699
|
}) : (D = t.objectCreatedResponse) != null && D.id && T();
|
|
@@ -2706,7 +2706,7 @@ const za = /* @__PURE__ */ b("div", { tabindex: "0" }, null, -1), _a = ["onKeypr
|
|
|
2706
2706
|
});
|
|
2707
2707
|
}
|
|
2708
2708
|
function T() {
|
|
2709
|
-
var D, J, W, g,
|
|
2709
|
+
var D, J, W, g, M;
|
|
2710
2710
|
sl({
|
|
2711
2711
|
message: r("comboBox.createSuccessful", { object: t.objectType, name: ((D = t.objectCreatedResponse) == null ? void 0 : D.name) ?? "" }),
|
|
2712
2712
|
colour: "primary",
|
|
@@ -2716,30 +2716,30 @@ const za = /* @__PURE__ */ b("div", { tabindex: "0" }, null, -1), _a = ["onKeypr
|
|
|
2716
2716
|
m.value && m.value.id === ((J = t.objectCreatedResponse) == null ? void 0 : J.parentId) && (C = m.value.name), s.value = {
|
|
2717
2717
|
id: ((W = t.objectCreatedResponse) == null ? void 0 : W.id) ?? 0,
|
|
2718
2718
|
name: ((g = t.objectCreatedResponse) == null ? void 0 : g.name) ?? "",
|
|
2719
|
-
parentId: ((
|
|
2719
|
+
parentId: ((M = t.objectCreatedResponse) == null ? void 0 : M.parentId) ?? 0,
|
|
2720
2720
|
parentName: C
|
|
2721
2721
|
};
|
|
2722
2722
|
}
|
|
2723
|
-
function
|
|
2723
|
+
function y() {
|
|
2724
2724
|
let C = "";
|
|
2725
2725
|
return s.value && (s.value.parentName ? C = s.value.parentName + "; " + s.value.name : C = s.value.name), C;
|
|
2726
2726
|
}
|
|
2727
|
-
function
|
|
2727
|
+
function A() {
|
|
2728
2728
|
let C = !0;
|
|
2729
|
-
|
|
2729
|
+
u.value === "" && (C = !1), t.objectParentType !== "" && m.value === null && (C = !1), L.value = C;
|
|
2730
2730
|
}
|
|
2731
|
-
oe(() => t.objectCreatedResponse, () => _()), oe(() => t.parentObjectCreatedResponse, () => z()), oe(() =>
|
|
2731
|
+
oe(() => t.objectCreatedResponse, () => _()), oe(() => t.parentObjectCreatedResponse, () => z()), oe(() => u.value, () => A()), oe(() => m.value, () => A()), e({
|
|
2732
2732
|
focus() {
|
|
2733
2733
|
var C;
|
|
2734
2734
|
(C = i.value) == null || C.focus();
|
|
2735
2735
|
}
|
|
2736
2736
|
});
|
|
2737
|
-
const
|
|
2738
|
-
return nl(
|
|
2737
|
+
const U = I();
|
|
2738
|
+
return nl(U, () => o.value ? Z(!1) : ""), (C, D) => {
|
|
2739
2739
|
const J = Tl("cl-ui-combo-box", !0);
|
|
2740
|
-
return p(),
|
|
2740
|
+
return p(), h("div", {
|
|
2741
2741
|
ref_key: "outsideRef",
|
|
2742
|
-
ref:
|
|
2742
|
+
ref: U,
|
|
2743
2743
|
class: "cl-relative"
|
|
2744
2744
|
}, [
|
|
2745
2745
|
b("div", eo, [
|
|
@@ -2748,7 +2748,7 @@ const za = /* @__PURE__ */ b("div", { tabindex: "0" }, null, -1), _a = ["onKeypr
|
|
|
2748
2748
|
ref: i,
|
|
2749
2749
|
modelValue: k.value,
|
|
2750
2750
|
"onUpdate:modelValue": D[0] || (D[0] = (W) => k.value = W),
|
|
2751
|
-
class:
|
|
2751
|
+
class: V(["!cl-mr-0 cl-mb-0 cl-rounded-r-none cl-w-full cl-z-10", {
|
|
2752
2752
|
"cl-cursor-pointer": C.disabled === !1
|
|
2753
2753
|
}]),
|
|
2754
2754
|
"input-type": "text",
|
|
@@ -2760,7 +2760,7 @@ const za = /* @__PURE__ */ b("div", { tabindex: "0" }, null, -1), _a = ["onKeypr
|
|
|
2760
2760
|
le(b("div", lo, [
|
|
2761
2761
|
b("div", to, [
|
|
2762
2762
|
de(q(v(r)("comboBox.required")) + " ", 1),
|
|
2763
|
-
S(v(
|
|
2763
|
+
S(v(H), {
|
|
2764
2764
|
class: "cl-ml-1 cl-mt-1",
|
|
2765
2765
|
icon: "ph:warning"
|
|
2766
2766
|
})
|
|
@@ -2768,27 +2768,27 @@ const za = /* @__PURE__ */ b("div", { tabindex: "0" }, null, -1), _a = ["onKeypr
|
|
|
2768
2768
|
], 512), [
|
|
2769
2769
|
[te, C.required && C.disabled === !1 && C.currentObject === null]
|
|
2770
2770
|
]),
|
|
2771
|
-
o.value ? (p(),
|
|
2771
|
+
o.value ? (p(), h("div", {
|
|
2772
2772
|
key: 1,
|
|
2773
|
-
class:
|
|
2773
|
+
class: V(["cl-bg-white cl-border cl-border-grey-1 cl-float-right cl-h-10 cl-rounded cl-rounded-l-none cl-text-grey-3 cl-transition-colors cl-w-[27px] hover:cl-bg-link-light hover:cl-opacity-90 hover:cl-text-white", {
|
|
2774
2774
|
"cl-cursor-default": C.disabled,
|
|
2775
2775
|
"cl-cursor-pointer": C.disabled === !1
|
|
2776
2776
|
}]),
|
|
2777
2777
|
onClick: D[3] || (D[3] = (W) => Z(!1))
|
|
2778
2778
|
}, [
|
|
2779
|
-
S(v(
|
|
2779
|
+
S(v(H), {
|
|
2780
2780
|
icon: "ph:caret-up-bold",
|
|
2781
2781
|
class: "cl-ml-[4px] cl-mt-[12px]"
|
|
2782
2782
|
})
|
|
2783
|
-
], 2)) : (p(),
|
|
2783
|
+
], 2)) : (p(), h("div", {
|
|
2784
2784
|
key: 0,
|
|
2785
|
-
class:
|
|
2785
|
+
class: V(["cl-bg-white cl-border cl-border-grey-1 cl-float-right cl-h-10 cl-rounded cl-rounded-l-none cl-text-grey-3 cl-transition-colors cl-w-[27px] hover:cl-bg-link-light hover:cl-opacity-90 hover:cl-text-white", {
|
|
2786
2786
|
"cl-cursor-default": C.disabled,
|
|
2787
2787
|
"cl-cursor-pointer": C.disabled === !1
|
|
2788
2788
|
}]),
|
|
2789
2789
|
onClick: D[2] || (D[2] = (W) => Z(!0))
|
|
2790
2790
|
}, [
|
|
2791
|
-
S(v(
|
|
2791
|
+
S(v(H), {
|
|
2792
2792
|
icon: "ph:caret-down-bold",
|
|
2793
2793
|
class: "cl-ml-[4px] cl-mt-[12px]"
|
|
2794
2794
|
})
|
|
@@ -2809,12 +2809,12 @@ const za = /* @__PURE__ */ b("div", { tabindex: "0" }, null, -1), _a = ["onKeypr
|
|
|
2809
2809
|
"error-message": C.errorMessage,
|
|
2810
2810
|
"current-object-name": k.value,
|
|
2811
2811
|
"is-visible": o.value,
|
|
2812
|
-
class:
|
|
2813
|
-
"cl-bottom-full":
|
|
2812
|
+
class: V({
|
|
2813
|
+
"cl-bottom-full": j.value
|
|
2814
2814
|
}),
|
|
2815
2815
|
"search-hint": c.value,
|
|
2816
2816
|
onCreateObject: () => C.objectParentType === "" && C.skipObjectCreationModal === !0 ? O() : W(),
|
|
2817
|
-
onSelectObject:
|
|
2817
|
+
onSelectObject: d,
|
|
2818
2818
|
onClearObject: B,
|
|
2819
2819
|
onSearch: ae,
|
|
2820
2820
|
onHideDropdown: D[4] || (D[4] = (g) => Z(!1))
|
|
@@ -2838,7 +2838,7 @@ const za = /* @__PURE__ */ b("div", { tabindex: "0" }, null, -1), _a = ["onKeypr
|
|
|
2838
2838
|
S(be, {
|
|
2839
2839
|
colour: "primary",
|
|
2840
2840
|
size: "small",
|
|
2841
|
-
disabled: !
|
|
2841
|
+
disabled: !L.value,
|
|
2842
2842
|
onClick: (g) => {
|
|
2843
2843
|
O(), W();
|
|
2844
2844
|
}
|
|
@@ -2864,12 +2864,12 @@ const za = /* @__PURE__ */ b("div", { tabindex: "0" }, null, -1), _a = ["onKeypr
|
|
|
2864
2864
|
"can-create-new-object": C.canCreateNewObject,
|
|
2865
2865
|
"can-clear-selected-object": C.canClearSelectedObject,
|
|
2866
2866
|
"error-message": C.errorMessage,
|
|
2867
|
-
onSearch:
|
|
2867
|
+
onSearch: E,
|
|
2868
2868
|
onCreateObject: $
|
|
2869
|
-
}, null, 8, ["current-object", "results", "loading", "object-type", "object-created-response", "can-create-new-object", "can-clear-selected-object", "error-message"])) :
|
|
2869
|
+
}, null, 8, ["current-object", "results", "loading", "object-type", "object-created-response", "can-create-new-object", "can-clear-selected-object", "error-message"])) : F("", !0),
|
|
2870
2870
|
S(me, {
|
|
2871
|
-
modelValue:
|
|
2872
|
-
"onUpdate:modelValue": D[6] || (D[6] = (W) =>
|
|
2871
|
+
modelValue: u.value,
|
|
2872
|
+
"onUpdate:modelValue": D[6] || (D[6] = (W) => u.value = W),
|
|
2873
2873
|
label: v(r)("comboBox.createProperty"),
|
|
2874
2874
|
class: "cl-mb-2 cl-pt-3 cl-w-full",
|
|
2875
2875
|
"input-type": "text"
|
|
@@ -2896,18 +2896,18 @@ const io = {}, co = { class: "cl-flex cl-flex-wrap cl-left-0 cl-mt-4 cl-w-full"
|
|
|
2896
2896
|
class: "cl-leading-10 cl-text-sm cl-w-full"
|
|
2897
2897
|
}, po = { class: "cl-float-left" }, mo = { class: "cl-float-right" };
|
|
2898
2898
|
function vo(a, e) {
|
|
2899
|
-
return p(),
|
|
2900
|
-
a.$slots.default ? (p(),
|
|
2901
|
-
|
|
2902
|
-
])) :
|
|
2903
|
-
a.$slots.left || a.$slots.right ? (p(),
|
|
2899
|
+
return p(), h("div", co, [
|
|
2900
|
+
a.$slots.default ? (p(), h("div", uo, [
|
|
2901
|
+
P(a.$slots, "default")
|
|
2902
|
+
])) : F("", !0),
|
|
2903
|
+
a.$slots.left || a.$slots.right ? (p(), h("div", fo, [
|
|
2904
2904
|
b("span", po, [
|
|
2905
|
-
|
|
2905
|
+
P(a.$slots, "left")
|
|
2906
2906
|
]),
|
|
2907
2907
|
b("span", mo, [
|
|
2908
|
-
|
|
2908
|
+
P(a.$slots, "right")
|
|
2909
2909
|
])
|
|
2910
|
-
])) :
|
|
2910
|
+
])) : F("", !0)
|
|
2911
2911
|
]);
|
|
2912
2912
|
}
|
|
2913
2913
|
const go = /* @__PURE__ */ ke(io, [["render", vo]]);
|
|
@@ -2941,13 +2941,13 @@ const ho = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, yo = { class: "cl-gap-1
|
|
|
2941
2941
|
emits: ["update:edit-mode", "update:filterPanelOpen", "clear-filters"],
|
|
2942
2942
|
setup(a) {
|
|
2943
2943
|
const e = a, { t: l } = ie(), t = R(() => e.request.filters.some((n) => n.filterValue !== ""));
|
|
2944
|
-
return (n, c) => (p(),
|
|
2944
|
+
return (n, c) => (p(), h(X, null, [
|
|
2945
2945
|
b("div", ho, [
|
|
2946
2946
|
b("strong", null, q(v(l)("grid.gridTools")), 1)
|
|
2947
2947
|
]),
|
|
2948
2948
|
b("div", yo, [
|
|
2949
2949
|
b("div", wo, [
|
|
2950
|
-
|
|
2950
|
+
P(n.$slots, "additional-grid-actions", ce(ve({
|
|
2951
2951
|
loading: n.loading,
|
|
2952
2952
|
editMode: n.editMode
|
|
2953
2953
|
})))
|
|
@@ -2961,18 +2961,18 @@ const ho = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, yo = { class: "cl-gap-1
|
|
|
2961
2961
|
onClick: c[0] || (c[0] = ne((r) => n.$emit("update:edit-mode", !n.editMode), ["prevent"]))
|
|
2962
2962
|
}, {
|
|
2963
2963
|
default: Y(() => [
|
|
2964
|
-
n.editMode ? (p(),
|
|
2964
|
+
n.editMode ? (p(), h(X, { key: 0 }, [
|
|
2965
2965
|
de(q(v(l)("grid.finishEditing")), 1)
|
|
2966
|
-
], 64)) : (p(),
|
|
2966
|
+
], 64)) : (p(), h(X, { key: 1 }, [
|
|
2967
2967
|
de(q(v(l)("grid.editData")), 1)
|
|
2968
2968
|
], 64))
|
|
2969
2969
|
]),
|
|
2970
2970
|
_: 1
|
|
2971
|
-
}, 8, ["disabled"])) :
|
|
2972
|
-
n.options.hideViewManager ?
|
|
2973
|
-
|
|
2971
|
+
}, 8, ["disabled"])) : F("", !0),
|
|
2972
|
+
n.options.hideViewManager ? F("", !0) : (p(), h("div", To, [
|
|
2973
|
+
P(n.$slots, "view-manager")
|
|
2974
2974
|
])),
|
|
2975
|
-
v(yl)(n.columns) || v(bo)(n.columns) ? (p(),
|
|
2975
|
+
v(yl)(n.columns) || v(bo)(n.columns) ? (p(), h(X, { key: 2 }, [
|
|
2976
2976
|
b("div", $o, [
|
|
2977
2977
|
S(be, {
|
|
2978
2978
|
class: "cl-w-full",
|
|
@@ -2991,7 +2991,7 @@ const ho = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, yo = { class: "cl-gap-1
|
|
|
2991
2991
|
size: "small",
|
|
2992
2992
|
colour: "danger",
|
|
2993
2993
|
disabled: !t.value || n.loading,
|
|
2994
|
-
class:
|
|
2994
|
+
class: V({
|
|
2995
2995
|
"cl-col-span-2": n.columns.some((r) => r.editable)
|
|
2996
2996
|
}),
|
|
2997
2997
|
onClick: c[2] || (c[2] = ne((r) => n.$emit("clear-filters"), ["prevent"]))
|
|
@@ -3000,8 +3000,8 @@ const ho = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, yo = { class: "cl-gap-1
|
|
|
3000
3000
|
de(q(v(l)("grid.clearFilters")), 1)
|
|
3001
3001
|
]),
|
|
3002
3002
|
_: 1
|
|
3003
|
-
}, 8, ["disabled", "class"])) :
|
|
3004
|
-
], 64)) :
|
|
3003
|
+
}, 8, ["disabled", "class"])) : F("", !0)
|
|
3004
|
+
], 64)) : F("", !0)
|
|
3005
3005
|
])
|
|
3006
3006
|
], 64));
|
|
3007
3007
|
}
|
|
@@ -3026,9 +3026,9 @@ const ho = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, yo = { class: "cl-gap-1
|
|
|
3026
3026
|
const e = a, { t: l, locale: t, n } = ie();
|
|
3027
3027
|
function c(o, s) {
|
|
3028
3028
|
let i;
|
|
3029
|
-
e.timeZone ? i =
|
|
3029
|
+
e.timeZone ? i = x.fromISO(o, {
|
|
3030
3030
|
locale: t.value
|
|
3031
|
-
}).setZone(e.timeZone) : i =
|
|
3031
|
+
}).setZone(e.timeZone) : i = x.fromISO(o, {
|
|
3032
3032
|
locale: t.value,
|
|
3033
3033
|
zone: "UTC"
|
|
3034
3034
|
});
|
|
@@ -3058,28 +3058,28 @@ const ho = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, yo = { class: "cl-gap-1
|
|
|
3058
3058
|
}
|
|
3059
3059
|
function r() {
|
|
3060
3060
|
let o = e.data[e.column.field];
|
|
3061
|
-
return e.column.maxLength && (o = o.trimToLength(e.column.maxLength, e.column.format !== void 0 ? e.column.format === "ellipsis" : !1)), e.searchValue && e.column.searchable && (o =
|
|
3061
|
+
return e.column.maxLength && (o = o.trimToLength(e.column.maxLength, e.column.format !== void 0 ? e.column.format === "ellipsis" : !1)), e.searchValue && e.column.searchable && (o = xl(o, e.searchValue.split(" "))), e.column.format === "wrap-text" && (o = `<span class="cl-break-words cl-whitespace-pre-wrap">${o}</span>`), o;
|
|
3062
3062
|
}
|
|
3063
3063
|
return (o, s) => {
|
|
3064
3064
|
var i;
|
|
3065
|
-
return o.column.type === "slot" ?
|
|
3065
|
+
return o.column.type === "slot" ? P(o.$slots, o.column.name, { key: 0 }) : o.column.type === "boolean" && o.column.field !== void 0 ? (p(), G(me, {
|
|
3066
3066
|
key: 1,
|
|
3067
3067
|
"input-type": "checkbox",
|
|
3068
3068
|
"model-value": o.data[o.column.field],
|
|
3069
3069
|
disabled: !0
|
|
3070
|
-
}, null, 8, ["model-value"])) : (o.column.type === "date" || o.column.type === "datetime" || o.column.type === "dateRange") && o.column.field !== void 0 ? (p(),
|
|
3071
|
-
o.column.format !== void 0 ? (p(),
|
|
3070
|
+
}, null, 8, ["model-value"])) : (o.column.type === "date" || o.column.type === "datetime" || o.column.type === "dateRange") && o.column.field !== void 0 ? (p(), h(X, { key: 2 }, [
|
|
3071
|
+
o.column.format !== void 0 ? (p(), h(X, { key: 0 }, [
|
|
3072
3072
|
de(q(c(o.data[o.column.field], o.column.format)), 1)
|
|
3073
|
-
], 64)) : o.column.type === "date" || o.column.type === "dateRange" ? (p(),
|
|
3073
|
+
], 64)) : o.column.type === "date" || o.column.type === "dateRange" ? (p(), h(X, { key: 1 }, [
|
|
3074
3074
|
de(q(c(o.data[o.column.field], v(re).DATE)), 1)
|
|
3075
|
-
], 64)) : (p(),
|
|
3075
|
+
], 64)) : (p(), h(X, { key: 2 }, [
|
|
3076
3076
|
de(q(c(o.data[o.column.field], v(re).DATETIME)), 1)
|
|
3077
3077
|
], 64))
|
|
3078
|
-
], 64)) : o.column.type === "list" && o.column.field !== void 0 && o.column.listEntries !== void 0 ? (p(),
|
|
3078
|
+
], 64)) : o.column.type === "list" && o.column.field !== void 0 && o.column.listEntries !== void 0 ? (p(), h("span", Oo, q(v(l)(((i = o.column.listEntries.find((m) => m.value === o.data[o.column.field])) == null ? void 0 : i.translationKey) ?? "")), 1)) : o.column.type === "number" && o.column.field !== void 0 ? (p(), h("span", So, q(v(n)(o.data[o.column.field], o.column.format ?? v(ue).DECIMAL)), 1)) : o.column.field !== void 0 ? (p(), h("span", No, [
|
|
3079
3079
|
b("span", {
|
|
3080
3080
|
innerHTML: r()
|
|
3081
3081
|
}, null, 8, Eo)
|
|
3082
|
-
])) :
|
|
3082
|
+
])) : F("", !0);
|
|
3083
3083
|
};
|
|
3084
3084
|
}
|
|
3085
3085
|
}), Ao = { class: "cl-font-semibold lg:cl-hidden" }, qo = /* @__PURE__ */ Q({
|
|
@@ -3105,13 +3105,13 @@ const ho = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, yo = { class: "cl-gap-1
|
|
|
3105
3105
|
s !== "" && (o[s] !== l.data[s] ? e("edit", o[s]) : e("undo"));
|
|
3106
3106
|
}, {
|
|
3107
3107
|
deep: !0
|
|
3108
|
-
}), (o, s) => (p(),
|
|
3109
|
-
class:
|
|
3108
|
+
}), (o, s) => (p(), h("td", {
|
|
3109
|
+
class: V(["cl-border-b cl-border-grey-1 cl-gap-1 cl-grid cl-grid-cols-2 cl-m-1 cl-mb-0 cl-py-2 cl-text-xs lg:cl-border-b-0 lg:cl-m-0 lg:cl-px-1 lg:cl-table-cell lg:cl-text-base", {
|
|
3110
3110
|
"cl-bg-link-lighter": c.value
|
|
3111
3111
|
}])
|
|
3112
3112
|
}, [
|
|
3113
3113
|
b("span", Ao, q(o.column.caption), 1),
|
|
3114
|
-
o.editMode && o.column.editable === !0 ?
|
|
3114
|
+
o.editMode && o.column.editable === !0 ? P(o.$slots, `${o.column.name}Edit`, ce(fe({ key: 0 }, {
|
|
3115
3115
|
cellFocused: () => e("focus"),
|
|
3116
3116
|
column: o.column,
|
|
3117
3117
|
edited: c.value,
|
|
@@ -3126,7 +3126,7 @@ const ho = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, yo = { class: "cl-gap-1
|
|
|
3126
3126
|
"search-value": o.searchValue
|
|
3127
3127
|
}, {
|
|
3128
3128
|
[o.column.name]: Y(() => [
|
|
3129
|
-
|
|
3129
|
+
P(o.$slots, o.column.name, ce(ve({
|
|
3130
3130
|
column: o.column,
|
|
3131
3131
|
record: o.data,
|
|
3132
3132
|
searchValue: o.searchValue
|
|
@@ -3142,7 +3142,7 @@ const ho = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, yo = { class: "cl-gap-1
|
|
|
3142
3142
|
"search-value": o.searchValue
|
|
3143
3143
|
}, {
|
|
3144
3144
|
[o.column.name]: Y(() => [
|
|
3145
|
-
|
|
3145
|
+
P(o.$slots, o.column.name, ce(ve({ column: o.column, record: o.data, searchValue: o.searchValue })))
|
|
3146
3146
|
]),
|
|
3147
3147
|
_: 2
|
|
3148
3148
|
}, 1032, ["column", "data", "time-zone", "search-value"]))
|
|
@@ -3159,8 +3159,8 @@ const ho = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, yo = { class: "cl-gap-1
|
|
|
3159
3159
|
},
|
|
3160
3160
|
emits: ["cell-focus", "cell-edit", "cell-undo", "row-select"],
|
|
3161
3161
|
setup(a) {
|
|
3162
|
-
return (e, l) => (p(),
|
|
3163
|
-
(p(!0),
|
|
3162
|
+
return (e, l) => (p(), h("tr", null, [
|
|
3163
|
+
(p(!0), h(X, null, se(e.columns, (t, n) => (p(), G(qo, {
|
|
3164
3164
|
key: n,
|
|
3165
3165
|
data: e.data,
|
|
3166
3166
|
column: t,
|
|
@@ -3174,7 +3174,7 @@ const ho = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, yo = { class: "cl-gap-1
|
|
|
3174
3174
|
se(e.$slots, (c, r) => ({
|
|
3175
3175
|
name: r,
|
|
3176
3176
|
fn: Y((o) => [
|
|
3177
|
-
|
|
3177
|
+
P(e.$slots, r, ce(ve(o)))
|
|
3178
3178
|
])
|
|
3179
3179
|
}))
|
|
3180
3180
|
]), 1032, ["data", "column", "time-zone", "search-value", "edit-mode", "onEdit", "onUndo"]))), 128))
|
|
@@ -3204,30 +3204,30 @@ const ho = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, yo = { class: "cl-gap-1
|
|
|
3204
3204
|
function c() {
|
|
3205
3205
|
Object.keys(n.value.record).length !== 0 && (e("row-edit", ge(n.value)), n.value.record = {});
|
|
3206
3206
|
}
|
|
3207
|
-
function r(
|
|
3208
|
-
n.value.index !== -1 && n.value.index !==
|
|
3207
|
+
function r(u) {
|
|
3208
|
+
n.value.index !== -1 && n.value.index !== u && c(), n.value.index = u;
|
|
3209
3209
|
}
|
|
3210
|
-
function o(
|
|
3211
|
-
r(
|
|
3210
|
+
function o(u, w) {
|
|
3211
|
+
r(u), w.field !== void 0 && (n.value.record[w.field] = w.value);
|
|
3212
3212
|
}
|
|
3213
|
-
function s(
|
|
3214
|
-
if (
|
|
3215
|
-
const { [
|
|
3213
|
+
function s(u) {
|
|
3214
|
+
if (u !== void 0) {
|
|
3215
|
+
const { [u]: w, ...N } = n.value.record;
|
|
3216
3216
|
n.value.record = {
|
|
3217
|
-
...
|
|
3217
|
+
...N
|
|
3218
3218
|
};
|
|
3219
3219
|
}
|
|
3220
3220
|
}
|
|
3221
3221
|
const i = I({});
|
|
3222
3222
|
oe(() => l.data, () => {
|
|
3223
|
-
var
|
|
3224
|
-
return i.value = Object.fromEntries(((
|
|
3225
|
-
[
|
|
3223
|
+
var u, w;
|
|
3224
|
+
return i.value = Object.fromEntries(((w = (u = l.data) == null ? void 0 : u.results) == null ? void 0 : w.map((N, L) => [
|
|
3225
|
+
[L],
|
|
3226
3226
|
{
|
|
3227
3227
|
count: 0,
|
|
3228
3228
|
target: null,
|
|
3229
3229
|
reset: $l(() => {
|
|
3230
|
-
i.value[
|
|
3230
|
+
i.value[L] && (i.value[L].count = 0, i.value[L].target = null);
|
|
3231
3231
|
}, 2500, { immediate: !1 })
|
|
3232
3232
|
}
|
|
3233
3233
|
])) ?? []);
|
|
@@ -3235,66 +3235,67 @@ const ho = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, yo = { class: "cl-gap-1
|
|
|
3235
3235
|
deep: !0,
|
|
3236
3236
|
immediate: !0
|
|
3237
3237
|
});
|
|
3238
|
-
function m(
|
|
3239
|
-
const { currentTarget:
|
|
3240
|
-
l.options.rowSelectionEnabled ? (k(
|
|
3238
|
+
function m(u, w, N) {
|
|
3239
|
+
const { currentTarget: L } = N;
|
|
3240
|
+
l.options.rowSelectionEnabled ? (k(L), e("row-select", w)) : (i.value[u].count++, i.value[u].target = L, i.value[u].count > 1 ? (i.value[u].reset.stop(), i.value[u].count = 0, k(L), i.value[u].target = null, e("row-select", w)) : i.value[u].reset.start());
|
|
3241
3241
|
}
|
|
3242
|
-
function k(
|
|
3243
|
-
l.options.highlightRowSelection && (
|
|
3242
|
+
function k(u) {
|
|
3243
|
+
l.options.highlightRowSelection && (u == null || u.classList.toggle("!cl-bg-link-lighter"));
|
|
3244
3244
|
}
|
|
3245
3245
|
return oe(() => l.editMode, () => {
|
|
3246
3246
|
l.editMode || (c(), n.value.index = -1);
|
|
3247
|
-
}), (
|
|
3248
|
-
var
|
|
3249
|
-
return p(),
|
|
3250
|
-
|
|
3251
|
-
key:
|
|
3252
|
-
data:
|
|
3253
|
-
columns:
|
|
3254
|
-
"time-zone":
|
|
3255
|
-
"search-value":
|
|
3256
|
-
"edit-mode":
|
|
3257
|
-
class:
|
|
3258
|
-
"cl-bg-white":
|
|
3259
|
-
"cl-bg-off-white":
|
|
3260
|
-
"cl-cursor-pointer
|
|
3247
|
+
}), (u, w) => {
|
|
3248
|
+
var N;
|
|
3249
|
+
return p(), h("tbody", null, [
|
|
3250
|
+
u.data && ((N = u.data.results) != null && N.length) ? (p(!0), h(X, { key: 0 }, se(u.data.results, (L, j) => (p(), G(Ro, {
|
|
3251
|
+
key: j,
|
|
3252
|
+
data: L,
|
|
3253
|
+
columns: u.columns,
|
|
3254
|
+
"time-zone": u.timeZone,
|
|
3255
|
+
"search-value": u.searchValue,
|
|
3256
|
+
"edit-mode": u.editMode,
|
|
3257
|
+
class: V(["cl-bg-opacity-100 cl-transition-colors", {
|
|
3258
|
+
"cl-bg-white": j % 2 === 0 && u.data.totalRecords > 1,
|
|
3259
|
+
"cl-bg-off-white": j % 2 === 1 || u.data.totalRecords === 1,
|
|
3260
|
+
"cl-cursor-pointer": (u.options.highlightRowSelection || u.options.rowSelectionEnabled) && !u.editMode,
|
|
3261
|
+
"hover:cl-bg-link-lighter": u.options.rowSelectionEnabled && u.options.highlightRowSelection && !u.editMode
|
|
3261
3262
|
}]),
|
|
3262
3263
|
onClick: (Z) => {
|
|
3263
|
-
|
|
3264
|
+
u.editMode || m(j, L, Z);
|
|
3264
3265
|
},
|
|
3265
3266
|
onCellFocus: (Z) => {
|
|
3266
|
-
r(
|
|
3267
|
+
r(j);
|
|
3267
3268
|
},
|
|
3268
3269
|
onCellEdit: (Z) => {
|
|
3269
|
-
o(
|
|
3270
|
+
o(j, Z);
|
|
3270
3271
|
},
|
|
3271
3272
|
onCellUndo: s
|
|
3272
3273
|
}, al({ _: 2 }, [
|
|
3273
|
-
se(
|
|
3274
|
+
se(u.$slots, (Z, ae) => ({
|
|
3274
3275
|
name: ae,
|
|
3275
|
-
fn: Y((
|
|
3276
|
-
|
|
3276
|
+
fn: Y((E) => [
|
|
3277
|
+
P(u.$slots, ae, fe(E, { disabled: u.loading }))
|
|
3277
3278
|
])
|
|
3278
3279
|
}))
|
|
3279
|
-
]), 1032, ["data", "columns", "time-zone", "search-value", "edit-mode", "class", "onClick", "onCellFocus", "onCellEdit"]))), 128)) :
|
|
3280
|
+
]), 1032, ["data", "columns", "time-zone", "search-value", "edit-mode", "class", "onClick", "onCellFocus", "onCellEdit"]))), 128)) : u.loading ? F("", !0) : (p(), h("tr", Do, [
|
|
3280
3281
|
b("td", {
|
|
3281
|
-
colspan:
|
|
3282
|
+
colspan: u.columns.length
|
|
3282
3283
|
}, [
|
|
3283
3284
|
b("div", jo, [
|
|
3284
3285
|
b("strong", Fo, q(v(t)("grid.noData")), 1),
|
|
3285
|
-
|
|
3286
|
+
u.request.filters.some((L) => L.filterValue !== "") ? (p(), h("div", Mo, [
|
|
3286
3287
|
b("div", Vo, q(v(t)("grid.noDataFiltersPresent")), 1),
|
|
3287
3288
|
S(be, {
|
|
3288
3289
|
size: "small",
|
|
3289
3290
|
colour: "danger",
|
|
3290
|
-
onClick:
|
|
3291
|
+
onClick: w[0] || (w[0] = ne((L) => u.$emit("clear-filters"), ["prevent"]))
|
|
3291
3292
|
}, {
|
|
3292
3293
|
default: Y(() => [
|
|
3293
3294
|
de(q(v(t)("grid.clearFilters")), 1)
|
|
3294
3295
|
]),
|
|
3295
3296
|
_: 1
|
|
3296
3297
|
})
|
|
3297
|
-
])) :
|
|
3298
|
+
])) : F("", !0)
|
|
3298
3299
|
])
|
|
3299
3300
|
], 8, Io)
|
|
3300
3301
|
]))
|
|
@@ -3304,7 +3305,7 @@ const ho = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, yo = { class: "cl-gap-1
|
|
|
3304
3305
|
}), Po = {
|
|
3305
3306
|
key: 0,
|
|
3306
3307
|
class: "cl-flex cl-flex-wrap cl-justify-end cl-mt-2 cl-w-full"
|
|
3307
|
-
}, Uo = { class: "cl-bg-off-white cl-border cl-border-grey-1 cl-flex cl-items-center cl-mb-2 cl-px-3 cl-rounded-lg cl-shadow-md cl-text-sm cl-w-full lg:cl-w-auto" }, Bo = { class: "cl-text-grey-3 cl-w-max" }, zo = { class: "cl-bg-off-white cl-border cl-border-grey-1 cl-flex cl-flex-wrap cl-items-center cl-mb-2 cl-px-3 cl-py-2 cl-rounded-lg cl-shadow-md cl-text-sm cl-w-full lg:cl-ml-2 lg:cl-w-auto mb:cl-flex-nowrap" }, _o = { class: "cl-flex cl-flex-wrap cl-mb-2 cl-text-sm cl-w-full lg:cl-p-2 md:cl-mb-0 md:cl-w-auto" },
|
|
3308
|
+
}, Uo = { class: "cl-bg-off-white cl-border cl-border-grey-1 cl-flex cl-items-center cl-mb-2 cl-px-3 cl-rounded-lg cl-shadow-md cl-text-sm cl-w-full lg:cl-w-auto" }, Bo = { class: "cl-text-grey-3 cl-w-max" }, zo = { class: "cl-bg-off-white cl-border cl-border-grey-1 cl-flex cl-flex-wrap cl-items-center cl-mb-2 cl-px-3 cl-py-2 cl-rounded-lg cl-shadow-md cl-text-sm cl-w-full lg:cl-ml-2 lg:cl-w-auto mb:cl-flex-nowrap" }, _o = { class: "cl-flex cl-flex-wrap cl-mb-2 cl-text-sm cl-w-full lg:cl-p-2 md:cl-mb-0 md:cl-w-auto" }, Ho = { class: "cl-flex cl-flex-wrap cl-mb-2 cl-w-full lg:cl-mb-0 lg:cl-mr-2 lg:cl-w-auto" }, xo = { class: "cl-text-grey-3 cl-w-full lg:cl-mr-2 lg:cl-w-auto" }, Go = { class: "cl-flex cl-flex-wrap cl-text-sm mb:cl-flex-nowrap" }, Zo = { class: "cl-pr-2" }, Ko = ["onClick"], Qo = { class: "cl-flex cl-flex-wrap cl-mb-2 cl-text-sm cl-w-full lg:cl-p-2 md:cl-mb-0 md:cl-w-auto" }, Wo = { class: "cl-mb-2 cl-text-grey-3 cl-w-full lg:cl-mb-0 lg:cl-mr-2 lg:cl-w-auto" }, Yo = ["onClick"], Jo = { class: "cl-mb-2 cl-w-full lg:cl-p-2 md:cl-mb-0 md:cl-w-auto" }, Xo = { class: "cl-block cl-mb-2 cl-text-grey-3 cl-w-full lg:cl-inline-block lg:cl-mb-0 lg:cl-mr-1 lg:cl-w-auto" }, en = { class: "cl-block lg:cl-inline-block" }, ln = /* @__PURE__ */ Q({
|
|
3308
3309
|
__name: "cl-ui-grid-footer",
|
|
3309
3310
|
props: {
|
|
3310
3311
|
request: {},
|
|
@@ -3316,24 +3317,24 @@ const ho = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, yo = { class: "cl-gap-1
|
|
|
3316
3317
|
},
|
|
3317
3318
|
setup(a, { emit: e }) {
|
|
3318
3319
|
const l = a, { n: t, t: n } = ie(), c = R(() => {
|
|
3319
|
-
var
|
|
3320
|
-
return l.data !== null ? Math.ceil((((
|
|
3320
|
+
var u;
|
|
3321
|
+
return l.data !== null ? Math.ceil((((u = l.data) == null ? void 0 : u.totalRecords) ?? 0) / l.request.pageSize) : 1;
|
|
3321
3322
|
}), r = R(() => {
|
|
3322
|
-
const
|
|
3323
|
-
let
|
|
3324
|
-
if (
|
|
3325
|
-
const
|
|
3326
|
-
|
|
3323
|
+
const u = Array.from(Array(c.value + 1).keys());
|
|
3324
|
+
let w = [];
|
|
3325
|
+
if (u.shift(), u.length) {
|
|
3326
|
+
const N = l.request.pageNumber === c.value || l.request.pageNumber === c.value - 1 ? c.value - 3 : l.request.pageNumber - 1;
|
|
3327
|
+
w = u.slice(N, N + 3);
|
|
3327
3328
|
}
|
|
3328
|
-
return
|
|
3329
|
+
return w;
|
|
3329
3330
|
});
|
|
3330
|
-
function o(
|
|
3331
|
-
const
|
|
3332
|
-
|
|
3331
|
+
function o(u) {
|
|
3332
|
+
const w = ge(l.request);
|
|
3333
|
+
w.pageNumber !== u && (w.pageNumber = Math.max(Math.min(Math.trunc(u), c.value), 1), e("update:request", w));
|
|
3333
3334
|
}
|
|
3334
|
-
function s(
|
|
3335
|
-
const
|
|
3336
|
-
o(
|
|
3335
|
+
function s(u) {
|
|
3336
|
+
const w = parseInt(u == null ? void 0 : u.value) || 1;
|
|
3337
|
+
o(w);
|
|
3337
3338
|
}
|
|
3338
3339
|
const i = [
|
|
3339
3340
|
5,
|
|
@@ -3343,105 +3344,105 @@ const ho = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, yo = { class: "cl-gap-1
|
|
|
3343
3344
|
100,
|
|
3344
3345
|
200
|
|
3345
3346
|
];
|
|
3346
|
-
function m(
|
|
3347
|
-
const
|
|
3348
|
-
|
|
3347
|
+
function m(u) {
|
|
3348
|
+
const w = ge(l.request);
|
|
3349
|
+
w.pageSize = u, w.pageNumber = 1, e("update:request", w);
|
|
3349
3350
|
}
|
|
3350
3351
|
const k = ol(s, 750);
|
|
3351
|
-
return (
|
|
3352
|
-
var
|
|
3353
|
-
return (
|
|
3352
|
+
return (u, w) => {
|
|
3353
|
+
var N, L;
|
|
3354
|
+
return (L = (N = u.data) == null ? void 0 : N.results) != null && L.length && u.request ? (p(), h("div", Po, [
|
|
3354
3355
|
b("div", Uo, [
|
|
3355
3356
|
b("span", Bo, q(v(n)("grid.jumpToPage")), 1),
|
|
3356
3357
|
S(me, {
|
|
3357
|
-
"model-value":
|
|
3358
|
+
"model-value": u.request.pageNumber,
|
|
3358
3359
|
class: "cl-ml-1 cl-mt-0.5 cl-text-sm",
|
|
3359
3360
|
"input-type": "number",
|
|
3360
|
-
disabled:
|
|
3361
|
+
disabled: u.loading,
|
|
3361
3362
|
"show-label": !1,
|
|
3362
3363
|
min: 1,
|
|
3363
3364
|
max: c.value,
|
|
3364
|
-
onInput:
|
|
3365
|
+
onInput: w[0] || (w[0] = (j) => v(k)(j.target))
|
|
3365
3366
|
}, null, 8, ["model-value", "disabled", "max"])
|
|
3366
3367
|
]),
|
|
3367
3368
|
b("div", zo, [
|
|
3368
3369
|
b("div", _o, [
|
|
3369
|
-
b("li",
|
|
3370
|
-
b("span",
|
|
3370
|
+
b("li", Ho, [
|
|
3371
|
+
b("span", xo, q(v(n)("grid.page")), 1)
|
|
3371
3372
|
]),
|
|
3372
3373
|
b("ul", Go, [
|
|
3373
|
-
b("li", Zo, q(v(t)(
|
|
3374
|
+
b("li", Zo, q(v(t)(u.request.pageNumber, v(ue).INTEGER)) + " / " + q(v(t)(c.value, v(ue).INTEGER)), 1),
|
|
3374
3375
|
le(b("li", {
|
|
3375
3376
|
class: "cl-cursor-pointer cl-mr-1 cl-mt-1 lg:cl-mr-2",
|
|
3376
|
-
onClick:
|
|
3377
|
+
onClick: w[1] || (w[1] = (j) => o(1))
|
|
3377
3378
|
}, [
|
|
3378
|
-
S(v(
|
|
3379
|
+
S(v(H), {
|
|
3379
3380
|
icon: "ph:caret-double-left",
|
|
3380
3381
|
size: 14
|
|
3381
3382
|
})
|
|
3382
3383
|
], 512), [
|
|
3383
|
-
[te,
|
|
3384
|
+
[te, u.request.pageNumber > 1]
|
|
3384
3385
|
]),
|
|
3385
3386
|
le(b("li", {
|
|
3386
3387
|
class: "cl-cursor-pointer cl-mt-1 lg:cl-mr-2 mr-1",
|
|
3387
|
-
onClick:
|
|
3388
|
+
onClick: w[2] || (w[2] = (j) => o(u.request.pageNumber - 1))
|
|
3388
3389
|
}, [
|
|
3389
|
-
S(v(
|
|
3390
|
+
S(v(H), {
|
|
3390
3391
|
icon: "ph:caret-left",
|
|
3391
3392
|
size: 14
|
|
3392
3393
|
})
|
|
3393
3394
|
], 512), [
|
|
3394
|
-
[te,
|
|
3395
|
+
[te, u.request.pageNumber > 1]
|
|
3395
3396
|
]),
|
|
3396
|
-
(p(!0),
|
|
3397
|
+
(p(!0), h(X, null, se(r.value, (j, Z) => (p(), h("li", {
|
|
3397
3398
|
key: Z,
|
|
3398
|
-
class:
|
|
3399
|
-
"cl-text-black cl-font-bold":
|
|
3400
|
-
"cl-text-grey-6":
|
|
3399
|
+
class: V(["cl-cursor-pointer cl-mr-1 lg:cl-mr-2", {
|
|
3400
|
+
"cl-text-black cl-font-bold": u.request.pageNumber === j,
|
|
3401
|
+
"cl-text-grey-6": u.request.pageNumber !== j
|
|
3401
3402
|
}]),
|
|
3402
|
-
onClick: (ae) => o(
|
|
3403
|
-
}, q(v(t)(
|
|
3403
|
+
onClick: (ae) => o(j)
|
|
3404
|
+
}, q(v(t)(j, v(ue).INTEGER)), 11, Ko))), 128)),
|
|
3404
3405
|
le(b("li", {
|
|
3405
3406
|
class: "cl-cursor-pointer cl-mr-1 cl-mt-1 lg:cl-mr-2",
|
|
3406
|
-
onClick:
|
|
3407
|
+
onClick: w[3] || (w[3] = (j) => o(u.request.pageNumber + 1))
|
|
3407
3408
|
}, [
|
|
3408
|
-
S(v(
|
|
3409
|
+
S(v(H), {
|
|
3409
3410
|
icon: "ph:caret-right",
|
|
3410
3411
|
size: 14
|
|
3411
3412
|
})
|
|
3412
3413
|
], 512), [
|
|
3413
|
-
[te,
|
|
3414
|
+
[te, u.request.pageNumber < c.value]
|
|
3414
3415
|
]),
|
|
3415
3416
|
le(b("li", {
|
|
3416
3417
|
class: "cl-cursor-pointer cl-mr-1 cl-mt-1 lg:cl-mr-2",
|
|
3417
|
-
onClick:
|
|
3418
|
+
onClick: w[4] || (w[4] = (j) => o(c.value))
|
|
3418
3419
|
}, [
|
|
3419
|
-
S(v(
|
|
3420
|
+
S(v(H), {
|
|
3420
3421
|
icon: "ph:caret-double-right",
|
|
3421
3422
|
size: 14
|
|
3422
3423
|
})
|
|
3423
3424
|
], 512), [
|
|
3424
|
-
[te,
|
|
3425
|
+
[te, u.request.pageNumber < c.value]
|
|
3425
3426
|
])
|
|
3426
3427
|
])
|
|
3427
3428
|
]),
|
|
3428
3429
|
b("ul", Qo, [
|
|
3429
3430
|
b("li", Wo, q(v(n)("grid.pageSize")), 1),
|
|
3430
|
-
(p(),
|
|
3431
|
+
(p(), h(X, null, se(i, (j, Z) => b("li", {
|
|
3431
3432
|
key: Z,
|
|
3432
|
-
class:
|
|
3433
|
-
"cl-text-black cl-font-bold":
|
|
3434
|
-
"cl-text-grey-6":
|
|
3433
|
+
class: V(["cl-cursor-pointer cl-mr-1 lg:cl-mr-2", {
|
|
3434
|
+
"cl-text-black cl-font-bold": u.request.pageSize === j,
|
|
3435
|
+
"cl-text-grey-6": u.request.pageSize !== j
|
|
3435
3436
|
}]),
|
|
3436
|
-
onClick: (ae) => m(
|
|
3437
|
-
}, q(v(t)(
|
|
3437
|
+
onClick: (ae) => m(j)
|
|
3438
|
+
}, q(v(t)(j, v(ue).INTEGER)), 11, Yo)), 64))
|
|
3438
3439
|
]),
|
|
3439
3440
|
b("ul", Jo, [
|
|
3440
3441
|
b("li", Xo, q(v(n)("grid.totalRecords")), 1),
|
|
3441
|
-
b("li", en, q(v(t)(
|
|
3442
|
+
b("li", en, q(v(t)(u.data.totalRecords, v(ue).INTEGER)), 1)
|
|
3442
3443
|
])
|
|
3443
3444
|
])
|
|
3444
|
-
])) :
|
|
3445
|
+
])) : F("", !0);
|
|
3445
3446
|
};
|
|
3446
3447
|
}
|
|
3447
3448
|
}), tn = [
|
|
@@ -3670,36 +3671,36 @@ const dn = {
|
|
|
3670
3671
|
return;
|
|
3671
3672
|
e("update:filter", s);
|
|
3672
3673
|
}
|
|
3673
|
-
return (o, s) => (p(),
|
|
3674
|
+
return (o, s) => (p(), h("div", mn, [
|
|
3674
3675
|
b("div", vn, [
|
|
3675
|
-
c.value ? (p(), G(v(
|
|
3676
|
+
c.value ? (p(), G(v(H), {
|
|
3676
3677
|
key: 0,
|
|
3677
3678
|
icon: c.value.icon,
|
|
3678
|
-
class:
|
|
3679
|
+
class: V(["cl-text-lg", {
|
|
3679
3680
|
"cl-text-grey-4": l.filter === void 0 || l.filter.filterValue === "",
|
|
3680
3681
|
"cl-text-primary-default": l.filter && l.filter.filterValue !== ""
|
|
3681
3682
|
}])
|
|
3682
|
-
}, null, 8, ["icon", "class"])) :
|
|
3683
|
+
}, null, 8, ["icon", "class"])) : F("", !0)
|
|
3683
3684
|
]),
|
|
3684
3685
|
b("div", {
|
|
3685
|
-
class:
|
|
3686
|
+
class: V(["cl-absolute cl-bg-white cl-border cl-border-grey-0 cl-flex-wrap cl-font-normal cl-h-0 cl-hidden cl-rounded cl-shadow-lg cl-text-left cl-text-xs cl-top-8 cl-z-10", {
|
|
3686
3687
|
"group-hover:cl-flex group-hover:cl-h-auto group-hover:cl-w-52": o.loading === !1,
|
|
3687
3688
|
"cl-left-0": o.firstHalf,
|
|
3688
3689
|
"cl--left-44": !o.firstHalf
|
|
3689
3690
|
}])
|
|
3690
3691
|
}, [
|
|
3691
3692
|
b("strong", gn, q(v(t)("grid.availableMethods")), 1),
|
|
3692
|
-
(p(!0),
|
|
3693
|
+
(p(!0), h(X, null, se(n.value, (i, m) => {
|
|
3693
3694
|
var k;
|
|
3694
|
-
return p(),
|
|
3695
|
+
return p(), h("span", {
|
|
3695
3696
|
key: m,
|
|
3696
|
-
class:
|
|
3697
|
+
class: V(["cl-cursor-pointer cl-px-4 cl-py-1 cl-transition-colors cl-w-full hover:cl-bg-grey-0", {
|
|
3697
3698
|
"cl-bg-primary-default cl-opacity-80": i.method === ((k = c.value) == null ? void 0 : k.method)
|
|
3698
3699
|
}]),
|
|
3699
|
-
onClick: ne((
|
|
3700
|
+
onClick: ne((u) => r(i.method), ["prevent"])
|
|
3700
3701
|
}, [
|
|
3701
3702
|
de(q(i.description) + " ", 1),
|
|
3702
|
-
S(v(
|
|
3703
|
+
S(v(H), {
|
|
3703
3704
|
icon: i.icon,
|
|
3704
3705
|
class: "cl-float-right cl-text-grey-4 cl-text-sm"
|
|
3705
3706
|
}, null, 8, ["icon"])
|
|
@@ -3732,37 +3733,37 @@ const dn = {
|
|
|
3732
3733
|
set: (f) => e("update:filter", f)
|
|
3733
3734
|
}), o = R(() => l.column.type === "date" || l.column.type === "datetime" || l.column.type === "slot" && (l.column.slotType === "date" || l.column.slotType === "datetime")), s = R(() => l.column.type === "dateRange" || l.column.type === "slot" && l.column.slotType === "dateRange"), i = R(() => l.column.type === "list" || l.column.type === "slot" && l.column.slotType === "list"), m = R(() => i.value && l.column.listType === "number"), k = R({
|
|
3734
3735
|
get() {
|
|
3735
|
-
var O, $, _, z, T,
|
|
3736
|
+
var O, $, _, z, T, y, A;
|
|
3736
3737
|
let f = (O = r.value) == null ? void 0 : O[0];
|
|
3737
3738
|
if (f) {
|
|
3738
3739
|
if (o.value) {
|
|
3739
3740
|
if (((($ = l.filter) == null ? void 0 : $.length) ?? 0) > 1) {
|
|
3740
|
-
const
|
|
3741
|
-
|
|
3741
|
+
const U = (_ = r.value) == null ? void 0 : _.find((D) => D.filterOperation === ee.EQUAL_OR_GREATER_THAN), C = (z = r.value) == null ? void 0 : z.find((D) => D.filterOperation === ee.LESS_THAN);
|
|
3742
|
+
U && C && (f = {
|
|
3742
3743
|
filterOnColumn: l.column.field,
|
|
3743
3744
|
filterOperation: ee.EQUAL,
|
|
3744
3745
|
filterMethod: "equal",
|
|
3745
|
-
filterValue:
|
|
3746
|
+
filterValue: U.filterValue
|
|
3746
3747
|
});
|
|
3747
3748
|
} else if (f.filterOperation === ee.EQUAL_OR_LESS_THAN || f.filterOperation === ee.GREATER_THAN) {
|
|
3748
|
-
let
|
|
3749
|
+
let U = x.fromISO(f.filterValue, {
|
|
3749
3750
|
zone: l.timeZone ?? "UTC"
|
|
3750
3751
|
});
|
|
3751
|
-
l.column.type === "date" || l.column.type === "slot" && l.column.slotType === "date" ?
|
|
3752
|
+
l.column.type === "date" || l.column.type === "slot" && l.column.slotType === "date" ? U = U.minus({ days: 1 }) : U = U.minus({ minutes: 1 }), f = {
|
|
3752
3753
|
filterOnColumn: l.column.field,
|
|
3753
3754
|
filterOperation: f.filterOperation,
|
|
3754
3755
|
filterMethod: f.filterOperation === ee.EQUAL_OR_LESS_THAN ? "equalorlessthan" : "greaterthan",
|
|
3755
|
-
filterValue:
|
|
3756
|
+
filterValue: U.plus({ milliseconds: 1 }).toISO() ?? ""
|
|
3756
3757
|
};
|
|
3757
3758
|
}
|
|
3758
3759
|
} else if (s.value && (((T = l.filter) == null ? void 0 : T.length) ?? 0) > 1) {
|
|
3759
|
-
const
|
|
3760
|
-
|
|
3760
|
+
const U = (y = r.value) == null ? void 0 : y.find((D) => D.filterOperation === ee.EQUAL_OR_GREATER_THAN), C = (A = r.value) == null ? void 0 : A.find((D) => D.filterOperation === ee.EQUAL_OR_LESS_THAN);
|
|
3761
|
+
U && C && (f = {
|
|
3761
3762
|
filterOnColumn: l.column.field,
|
|
3762
3763
|
filterOperation: ee.EQUAL,
|
|
3763
3764
|
filterMethod: "equal",
|
|
3764
3765
|
filterValue: {
|
|
3765
|
-
start:
|
|
3766
|
+
start: U.filterValue,
|
|
3766
3767
|
end: C.filterValue
|
|
3767
3768
|
}
|
|
3768
3769
|
});
|
|
@@ -3773,45 +3774,45 @@ const dn = {
|
|
|
3773
3774
|
set(f) {
|
|
3774
3775
|
let O = null;
|
|
3775
3776
|
if (o.value) {
|
|
3776
|
-
const $ = f, _ = ($ == null ? void 0 : $.filterMethod) &&
|
|
3777
|
+
const $ = f, _ = ($ == null ? void 0 : $.filterMethod) && w($.filterMethod, $.filterValue, "equal"), z = ($ == null ? void 0 : $.filterMethod) && w($.filterMethod, $.filterValue, "equalorlessthan"), T = ($ == null ? void 0 : $.filterMethod) && w($.filterMethod, $.filterValue, "greaterthan");
|
|
3777
3778
|
if (_) {
|
|
3778
|
-
let
|
|
3779
|
+
let y = x.fromISO($.filterValue, {
|
|
3779
3780
|
zone: l.timeZone ?? "UTC"
|
|
3780
3781
|
}).set({ second: 0, millisecond: 0 });
|
|
3781
|
-
const
|
|
3782
|
-
l.column.type === "date" || l.column.type === "slot" && l.column.slotType === "date" ?
|
|
3783
|
-
const
|
|
3782
|
+
const A = y.toISO();
|
|
3783
|
+
l.column.type === "date" || l.column.type === "slot" && l.column.slotType === "date" ? y = y.plus({ days: 1 }) : y = y.plus({ minutes: 1 });
|
|
3784
|
+
const U = y.toISO();
|
|
3784
3785
|
O = [
|
|
3785
3786
|
{
|
|
3786
3787
|
filterOnColumn: l.column.field,
|
|
3787
3788
|
filterOperation: ee.EQUAL_OR_GREATER_THAN,
|
|
3788
3789
|
filterMethod: "equalorgreaterthan",
|
|
3789
|
-
filterValue:
|
|
3790
|
+
filterValue: A
|
|
3790
3791
|
},
|
|
3791
3792
|
{
|
|
3792
3793
|
filterOnColumn: l.column.field,
|
|
3793
3794
|
filterOperation: ee.LESS_THAN,
|
|
3794
3795
|
filterMethod: "lessthan",
|
|
3795
|
-
filterValue:
|
|
3796
|
+
filterValue: U
|
|
3796
3797
|
}
|
|
3797
3798
|
];
|
|
3798
3799
|
} else if (z || T) {
|
|
3799
|
-
let
|
|
3800
|
+
let y = x.fromISO($.filterValue, {
|
|
3800
3801
|
zone: l.timeZone ?? "UTC"
|
|
3801
3802
|
}).set({ second: 0, millisecond: 0 });
|
|
3802
|
-
l.column.type === "date" || l.column.type === "slot" && l.column.slotType === "date" ?
|
|
3803
|
+
l.column.type === "date" || l.column.type === "slot" && l.column.slotType === "date" ? y = y.plus({ days: 1 }) : y = y.plus({ minutes: 1 }), O = [
|
|
3803
3804
|
{
|
|
3804
3805
|
filterOnColumn: l.column.field,
|
|
3805
3806
|
filterOperation: z ? ee.EQUAL_OR_LESS_THAN : ee.GREATER_THAN,
|
|
3806
3807
|
filterMethod: z ? "equalorlessthan" : "greaterthan",
|
|
3807
|
-
filterValue:
|
|
3808
|
+
filterValue: y.minus({ milliseconds: 1 }).toISO()
|
|
3808
3809
|
}
|
|
3809
3810
|
];
|
|
3810
3811
|
}
|
|
3811
3812
|
} else if (s.value && (f != null && f.filterValue)) {
|
|
3812
|
-
const $ = f.filterValue, _ =
|
|
3813
|
+
const $ = f.filterValue, _ = x.fromISO($.start, {
|
|
3813
3814
|
zone: l.timeZone ?? "UTC"
|
|
3814
|
-
}).toISO(), z =
|
|
3815
|
+
}).toISO(), z = x.fromISO($.end, {
|
|
3815
3816
|
zone: l.timeZone ?? "UTC"
|
|
3816
3817
|
}).toISO();
|
|
3817
3818
|
O = [
|
|
@@ -3835,34 +3836,34 @@ const dn = {
|
|
|
3835
3836
|
}
|
|
3836
3837
|
if (O && (o.value || s.value))
|
|
3837
3838
|
for (const $ of O)
|
|
3838
|
-
l.timeZone ? $.filterValue =
|
|
3839
|
+
l.timeZone ? $.filterValue = x.fromISO($.filterValue).setZone("UTC").toISO() ?? "" : $.filterValue = $.filterValue.replace("Z", "");
|
|
3839
3840
|
r.value = O;
|
|
3840
3841
|
}
|
|
3841
|
-
}),
|
|
3842
|
+
}), u = R({
|
|
3842
3843
|
get: () => k.value,
|
|
3843
3844
|
set(f) {
|
|
3844
3845
|
k.value = f;
|
|
3845
3846
|
}
|
|
3846
3847
|
});
|
|
3847
|
-
function
|
|
3848
|
+
function w(f, O, $) {
|
|
3848
3849
|
return O !== void 0 && O !== "" && f === $ && o.value;
|
|
3849
3850
|
}
|
|
3850
|
-
const
|
|
3851
|
+
const N = R(() => {
|
|
3851
3852
|
var f;
|
|
3852
3853
|
return ((f = k.value) == null ? void 0 : f.filterValue) ?? "";
|
|
3853
|
-
}),
|
|
3854
|
-
function
|
|
3854
|
+
}), L = R(() => N.value === "" ? null : N.value), j = R(() => N.value === "" ? null : N.value), Z = R(() => Intl.NumberFormat(t.value).format(1.1).replace(/[0-9]+/g, "")), ae = R(() => rl(l.column));
|
|
3855
|
+
function E(f, O) {
|
|
3855
3856
|
var T;
|
|
3856
3857
|
let $, _ = !1;
|
|
3857
3858
|
const z = ((f == null ? void 0 : f.value) ?? O).trim();
|
|
3858
3859
|
if (k.value)
|
|
3859
|
-
_ = ((T = k.value) == null ? void 0 : T.filterValue) === z, $ = ge(
|
|
3860
|
+
_ = ((T = k.value) == null ? void 0 : T.filterValue) === z, $ = ge(u.value), $.filterValue = z;
|
|
3860
3861
|
else if (z !== "" && typeof l.column.field < "u") {
|
|
3861
|
-
const
|
|
3862
|
+
const y = c();
|
|
3862
3863
|
$ = {
|
|
3863
3864
|
filterOnColumn: l.column.field,
|
|
3864
|
-
filterMethod: ee[
|
|
3865
|
-
filterOperation:
|
|
3865
|
+
filterMethod: ee[y].replace("_", "").toLowerCase(),
|
|
3866
|
+
filterOperation: y,
|
|
3866
3867
|
filterValue: z
|
|
3867
3868
|
};
|
|
3868
3869
|
} else
|
|
@@ -3871,9 +3872,9 @@ const dn = {
|
|
|
3871
3872
|
}
|
|
3872
3873
|
function B(f, O) {
|
|
3873
3874
|
let $, _ = (f == null ? void 0 : f.value) ?? O ?? 0;
|
|
3874
|
-
l.column.format === ue.INTEGER ? (typeof _ == "string" && (_ = parseInt(_)), $ = Math.round(_)) : (typeof _ == "string" && (_ = parseFloat(_.replace(Z.value, "."))), $ = _),
|
|
3875
|
+
l.column.format === ue.INTEGER ? (typeof _ == "string" && (_ = parseInt(_)), $ = Math.round(_)) : (typeof _ == "string" && (_ = parseFloat(_.replace(Z.value, "."))), $ = _), E(null, isNaN($) ? "" : $.toString());
|
|
3875
3876
|
}
|
|
3876
|
-
function
|
|
3877
|
+
function d(f) {
|
|
3877
3878
|
var _;
|
|
3878
3879
|
let O, $ = !1;
|
|
3879
3880
|
if (k.value)
|
|
@@ -3890,44 +3891,44 @@ const dn = {
|
|
|
3890
3891
|
return;
|
|
3891
3892
|
$ === !1 && (k.value = O);
|
|
3892
3893
|
}
|
|
3893
|
-
return (f, O) => ae.value ? (p(),
|
|
3894
|
-
f.column.type === "boolean" || f.column.type === "slot" && f.column.slotType === "boolean" ? (p(),
|
|
3894
|
+
return (f, O) => ae.value ? (p(), h("div", yn, [
|
|
3895
|
+
f.column.type === "boolean" || f.column.type === "slot" && f.column.slotType === "boolean" ? (p(), h("select", {
|
|
3895
3896
|
key: 0,
|
|
3896
3897
|
disabled: f.loading,
|
|
3897
3898
|
class: "!cl-h-[2rem] cl-bg-white cl-border-none cl-mb-0 cl-rounded-md cl-w-full",
|
|
3898
|
-
onChange: O[0] || (O[0] = ($) =>
|
|
3899
|
+
onChange: O[0] || (O[0] = ($) => E($.target))
|
|
3899
3900
|
}, [
|
|
3900
3901
|
kn,
|
|
3901
3902
|
b("option", {
|
|
3902
3903
|
value: "true",
|
|
3903
|
-
selected:
|
|
3904
|
+
selected: N.value === "true"
|
|
3904
3905
|
}, q(v(n)("grid.true")), 9, Tn),
|
|
3905
3906
|
b("option", {
|
|
3906
3907
|
value: "false",
|
|
3907
|
-
selected:
|
|
3908
|
+
selected: N.value === "false"
|
|
3908
3909
|
}, q(v(n)("grid.false")), 9, $n)
|
|
3909
3910
|
], 40, wn)) : o.value ? (p(), G(me, {
|
|
3910
3911
|
key: 1,
|
|
3911
|
-
"model-value":
|
|
3912
|
+
"model-value": L.value,
|
|
3912
3913
|
class: "!cl-h-[2rem] !cl-text-xs cl-border-none cl-mb-0 cl-w-full lg:!cl-text-base",
|
|
3913
3914
|
disabled: f.loading,
|
|
3914
3915
|
label: f.column.caption,
|
|
3915
3916
|
"show-label": !1,
|
|
3916
3917
|
"input-type": f.column.type === "slot" ? f.column.slotType : f.column.type,
|
|
3917
3918
|
"time-zone": f.timeZone,
|
|
3918
|
-
"onUpdate:modelValue": O[1] || (O[1] = ($) =>
|
|
3919
|
+
"onUpdate:modelValue": O[1] || (O[1] = ($) => E(null, $ ?? ""))
|
|
3919
3920
|
}, null, 8, ["model-value", "disabled", "label", "input-type", "time-zone"])) : s.value ? (p(), G(me, {
|
|
3920
3921
|
key: 2,
|
|
3921
|
-
"model-value":
|
|
3922
|
+
"model-value": j.value,
|
|
3922
3923
|
class: "!cl-h-[2rem] [&_.clear-icon]:-cl-m-1 [&_.icon]:cl-text-sm cl-border-none cl-mb-0 cl-w-full",
|
|
3923
3924
|
disabled: f.loading,
|
|
3924
3925
|
"input-type": "dateRange",
|
|
3925
3926
|
"time-zone": f.timeZone,
|
|
3926
3927
|
"quick-date-scope": f.quickDateScope,
|
|
3927
|
-
"onUpdate:modelValue": O[2] || (O[2] = ($) =>
|
|
3928
|
+
"onUpdate:modelValue": O[2] || (O[2] = ($) => d($))
|
|
3928
3929
|
}, null, 8, ["model-value", "disabled", "time-zone", "quick-date-scope"])) : f.column.type === "number" || f.column.type === "slot" && f.column.slotType === "number" ? (p(), G(me, {
|
|
3929
3930
|
key: 3,
|
|
3930
|
-
"model-value":
|
|
3931
|
+
"model-value": N.value,
|
|
3931
3932
|
class: "!cl-h-[2rem] !cl-text-xs cl-border-none cl-mb-0 cl-w-full lg:!cl-text-base",
|
|
3932
3933
|
disabled: f.loading,
|
|
3933
3934
|
"input-type": "number",
|
|
@@ -3935,34 +3936,34 @@ const dn = {
|
|
|
3935
3936
|
onInput: O[3] || (O[3] = ($, _) => B(null, _))
|
|
3936
3937
|
}, null, 8, ["model-value", "disabled"])) : f.column.type === "string" || f.column.type === "slot" && f.column.slotType === "string" ? (p(), G(me, {
|
|
3937
3938
|
key: 4,
|
|
3938
|
-
"model-value":
|
|
3939
|
+
"model-value": N.value,
|
|
3939
3940
|
class: "!cl-h-[2rem] !cl-text-xs cl-border-none cl-mb-0 cl-w-full lg:!cl-text-base",
|
|
3940
3941
|
disabled: f.loading,
|
|
3941
3942
|
"input-type": "text",
|
|
3942
|
-
onInput: O[4] || (O[4] = ($, _) =>
|
|
3943
|
-
}, null, 8, ["model-value", "disabled"])) : i.value ? (p(),
|
|
3943
|
+
onInput: O[4] || (O[4] = ($, _) => E(null, _))
|
|
3944
|
+
}, null, 8, ["model-value", "disabled"])) : i.value ? (p(), h("select", {
|
|
3944
3945
|
key: 5,
|
|
3945
3946
|
class: "!cl-h-[2rem] cl-bg-white cl-border-none cl-mb-0 cl-rounded-md cl-w-full",
|
|
3946
3947
|
disabled: f.loading,
|
|
3947
|
-
onChange: O[5] || (O[5] = ($) => m.value ? B($.target) :
|
|
3948
|
+
onChange: O[5] || (O[5] = ($) => m.value ? B($.target) : E($.target))
|
|
3948
3949
|
}, [
|
|
3949
3950
|
On,
|
|
3950
|
-
(p(!0),
|
|
3951
|
+
(p(!0), h(X, null, se(f.column.listEntries ?? [], ($) => (p(), h("option", {
|
|
3951
3952
|
key: $.value,
|
|
3952
3953
|
value: $.value,
|
|
3953
|
-
selected:
|
|
3954
|
+
selected: N.value === $.value.toString()
|
|
3954
3955
|
}, q(v(n)($.translationKey)), 9, Sn))), 128))
|
|
3955
|
-
], 40, Cn)) :
|
|
3956
|
-
s.value ?
|
|
3956
|
+
], 40, Cn)) : F("", !0),
|
|
3957
|
+
s.value ? F("", !0) : (p(), G(hn, {
|
|
3957
3958
|
key: 6,
|
|
3958
|
-
filter:
|
|
3959
|
-
"onUpdate:filter": O[6] || (O[6] = ($) =>
|
|
3959
|
+
filter: u.value,
|
|
3960
|
+
"onUpdate:filter": O[6] || (O[6] = ($) => u.value = $),
|
|
3960
3961
|
loading: f.loading,
|
|
3961
3962
|
column: f.column,
|
|
3962
3963
|
"default-operation": c(),
|
|
3963
3964
|
"first-half": f.firstHalf
|
|
3964
3965
|
}, null, 8, ["filter", "loading", "column", "default-operation", "first-half"]))
|
|
3965
|
-
])) :
|
|
3966
|
+
])) : F("", !0);
|
|
3966
3967
|
}
|
|
3967
3968
|
}), En = { class: "-cl-top-1 cl-bg-white cl-shadow-sm cl-sticky cl-z-20 lg:cl-bg-transparent lg:cl-relative lg:cl-shadow-none" }, An = { class: "cl-hidden lg:cl-table-row" }, qn = ["onClick"], Rn = { class: "cl-flex cl-justify-end cl-w-full lg:cl-hidden" }, Dn = { class: "cl-col-span-2 lg:cl-hidden" }, In = ["onClick"], jn = { class: "cl-font-normal cl-mr-1" }, Fn = /* @__PURE__ */ Q({
|
|
3968
3969
|
__name: "cl-ui-grid-header",
|
|
@@ -4002,24 +4003,24 @@ const dn = {
|
|
|
4002
4003
|
], i.pageNumber = 1, n.value = i;
|
|
4003
4004
|
}
|
|
4004
4005
|
}
|
|
4005
|
-
return (s, i) => (p(),
|
|
4006
|
+
return (s, i) => (p(), h("thead", En, [
|
|
4006
4007
|
b("tr", An, [
|
|
4007
|
-
(p(!0),
|
|
4008
|
+
(p(!0), h(X, null, se(s.columns, (m, k) => (p(), h("th", {
|
|
4008
4009
|
key: k,
|
|
4009
|
-
class:
|
|
4010
|
+
class: V(["cl-text-grey-3 cl-text-sm", {
|
|
4010
4011
|
"cl-cursor-pointer": v(Le)(m) && s.loading === !1
|
|
4011
4012
|
}]),
|
|
4012
|
-
onClick: (
|
|
4013
|
+
onClick: (u) => v(Le)(m) && s.loading === !1 ? r(m.field) : () => {
|
|
4013
4014
|
}
|
|
4014
4015
|
}, [
|
|
4015
4016
|
de(q(m.caption) + " ", 1),
|
|
4016
|
-
le(S(v(
|
|
4017
|
+
le(S(v(H), {
|
|
4017
4018
|
class: "cl-inline-block",
|
|
4018
4019
|
icon: "ph:caret-up"
|
|
4019
4020
|
}, null, 512), [
|
|
4020
4021
|
[te, c(m, !0)]
|
|
4021
4022
|
]),
|
|
4022
|
-
le(S(v(
|
|
4023
|
+
le(S(v(H), {
|
|
4023
4024
|
class: "cl-inline-block",
|
|
4024
4025
|
icon: "ph:caret-down"
|
|
4025
4026
|
}, null, 512), [
|
|
@@ -4028,49 +4029,49 @@ const dn = {
|
|
|
4028
4029
|
], 10, qn))), 128))
|
|
4029
4030
|
]),
|
|
4030
4031
|
b("tr", {
|
|
4031
|
-
class:
|
|
4032
|
+
class: V(["cl-border cl-border-grey-2 cl-flex cl-flex-wrap cl-p-2 lg:cl-border-none lg:cl-p-0 lg:cl-table-row", {
|
|
4032
4033
|
"cl-hidden lg:cl-table-row": !s.filterPanelOpen
|
|
4033
4034
|
}])
|
|
4034
4035
|
}, [
|
|
4035
4036
|
b("div", Rn, [
|
|
4036
|
-
S(v(
|
|
4037
|
+
S(v(H), {
|
|
4037
4038
|
class: "cl-text-grey-4 hover:cl-cursor-pointer hover:cl-text-link-default",
|
|
4038
4039
|
icon: "ph:x",
|
|
4039
4040
|
size: 16,
|
|
4040
4041
|
onClick: i[0] || (i[0] = ne((m) => s.loading === !1 ? s.$emit("update:filterPanelOpen", !1) : void 0, ["prevent"]))
|
|
4041
4042
|
})
|
|
4042
4043
|
]),
|
|
4043
|
-
(p(!0),
|
|
4044
|
+
(p(!0), h(X, null, se(s.columns, (m, k) => (p(), h("th", {
|
|
4044
4045
|
key: k,
|
|
4045
|
-
class:
|
|
4046
|
+
class: V(["cl-grid cl-grid-cols-4 cl-py-1 cl-text-xs cl-w-full lg:cl-table-cell lg:cl-w-auto", {
|
|
4046
4047
|
"cl-hidden lg:cl-table-cell": !v(rl)(m)
|
|
4047
4048
|
}])
|
|
4048
4049
|
}, [
|
|
4049
4050
|
b("div", Dn, q(m.caption), 1),
|
|
4050
|
-
v(Le)(m) ? (p(),
|
|
4051
|
+
v(Le)(m) ? (p(), h("div", {
|
|
4051
4052
|
key: 0,
|
|
4052
4053
|
class: "cl-col-span-2 cl-gap-1 cl-span lg:cl-hidden",
|
|
4053
|
-
onClick: (
|
|
4054
|
+
onClick: (u) => s.loading === !1 ? r(m.field) : void 0
|
|
4054
4055
|
}, [
|
|
4055
4056
|
b("span", jn, q(v(t)("grid.sortBy")), 1),
|
|
4056
|
-
c(m, !0) ? (p(), G(v(
|
|
4057
|
+
c(m, !0) ? (p(), G(v(H), {
|
|
4057
4058
|
key: 0,
|
|
4058
4059
|
class: "cl-cursor-pointer cl-inline-block",
|
|
4059
4060
|
icon: "ph:caret-up"
|
|
4060
|
-
})) : c(m, !1) ? (p(), G(v(
|
|
4061
|
+
})) : c(m, !1) ? (p(), G(v(H), {
|
|
4061
4062
|
key: 1,
|
|
4062
4063
|
class: "cl-cursor-pointer cl-inline-block",
|
|
4063
4064
|
icon: "ph:caret-down"
|
|
4064
|
-
})) : (p(), G(v(
|
|
4065
|
+
})) : (p(), G(v(H), {
|
|
4065
4066
|
key: 2,
|
|
4066
4067
|
class: "cl-cursor-pointer cl-inline-block",
|
|
4067
4068
|
icon: "ph:minus"
|
|
4068
4069
|
}))
|
|
4069
|
-
], 8, In)) :
|
|
4070
|
+
], 8, In)) : F("", !0),
|
|
4070
4071
|
S(Nn, {
|
|
4071
4072
|
class: "cl-col-span-4",
|
|
4072
4073
|
loading: s.loading,
|
|
4073
|
-
filter: n.value.filters.filter((
|
|
4074
|
+
filter: n.value.filters.filter((u) => u.filterOnColumn === m.field),
|
|
4074
4075
|
column: m,
|
|
4075
4076
|
"time-zone": s.timeZone,
|
|
4076
4077
|
"quick-date-scope": m.quickDateScope ?? null,
|
|
@@ -4112,7 +4113,7 @@ const dn = {
|
|
|
4112
4113
|
const { t: c } = ie();
|
|
4113
4114
|
return (r, o) => {
|
|
4114
4115
|
const s = Tl("icon");
|
|
4115
|
-
return
|
|
4116
|
+
return P(r.$slots, "search", ce(ve({ searchValue: r.searchValue, performSearch: n })), () => [
|
|
4116
4117
|
b("div", Mn, [
|
|
4117
4118
|
S(me, {
|
|
4118
4119
|
"model-value": r.searchValue,
|
|
@@ -4132,7 +4133,7 @@ const dn = {
|
|
|
4132
4133
|
]);
|
|
4133
4134
|
};
|
|
4134
4135
|
}
|
|
4135
|
-
}), Ln = { class: "cl-fixed cl-flex cl-h-full cl-justify-end cl-right-0 cl-shadow-lg cl-top-0 cl-z-40" }, Pn = { class: "cl-bg-secondary-default cl-h-full cl-overflow-y-auto cl-overscroll-y-none cl-px-10 cl-py-20 cl-relative cl-text-grey-2 cl-w-80" }, Un = { class: "cl-mb-4 cl-text-2xl cl-text-off-white" }, Bn = { class: "cl-border-grey-3 cl-border-t cl-flex cl-flex-wrap cl-text-sm cl-w-full" }, zn = { class: "cl-border-b cl-border-grey-2 cl-flex cl-py-2 cl-text-sm cl-w-full" }, _n = { class: "cl-flex-1 cl-py-2" },
|
|
4136
|
+
}), Ln = { class: "cl-fixed cl-flex cl-h-full cl-justify-end cl-right-0 cl-shadow-lg cl-top-0 cl-z-40" }, Pn = { class: "cl-bg-secondary-default cl-h-full cl-overflow-y-auto cl-overscroll-y-none cl-px-10 cl-py-20 cl-relative cl-text-grey-2 cl-w-80" }, Un = { class: "cl-mb-4 cl-text-2xl cl-text-off-white" }, Bn = { class: "cl-border-grey-3 cl-border-t cl-flex cl-flex-wrap cl-text-sm cl-w-full" }, zn = { class: "cl-border-b cl-border-grey-2 cl-flex cl-py-2 cl-text-sm cl-w-full" }, _n = { class: "cl-flex-1 cl-py-2" }, Hn = { class: "cl-py-2 cl-w-1/4" }, xn = { class: "cl-py-2 cl-w-1/5" }, Gn = { class: "cl-flex-1 cl-py-2" }, Zn = { class: "cl-py-2 cl-w-1/4" }, Kn = { class: "cl-py-2 cl-text-off-white cl-w-1/5" }, Qn = { key: 1 }, Wn = /* @__PURE__ */ Q({
|
|
4136
4137
|
inheritAttrs: !1,
|
|
4137
4138
|
__name: "cl-ui-grid-view-manager",
|
|
4138
4139
|
props: {
|
|
@@ -4146,14 +4147,14 @@ const dn = {
|
|
|
4146
4147
|
m < s.length && m >= 0 && s.splice(m, 0, s.splice(i, 1)[0]);
|
|
4147
4148
|
}
|
|
4148
4149
|
function r(s, i) {
|
|
4149
|
-
const m = ge(l.columns), k = (s == null ? void 0 : s.checked) ?? !1,
|
|
4150
|
-
|
|
4150
|
+
const m = ge(l.columns), k = (s == null ? void 0 : s.checked) ?? !1, u = m.findIndex((w) => w.name === i.name);
|
|
4151
|
+
u >= 0 && (m[u].visible = k), e("update:columns", m);
|
|
4151
4152
|
}
|
|
4152
4153
|
function o(s, i) {
|
|
4153
4154
|
const m = ge(l.columns), k = i === "up" ? s + 1 : s - 1;
|
|
4154
4155
|
c(m, s, k), e("update:columns", m);
|
|
4155
4156
|
}
|
|
4156
|
-
return (s, i) => (p(),
|
|
4157
|
+
return (s, i) => (p(), h(X, null, [
|
|
4157
4158
|
S(be, fe(s.$attrs, {
|
|
4158
4159
|
class: "cl-w-full",
|
|
4159
4160
|
size: "small",
|
|
@@ -4170,7 +4171,7 @@ const dn = {
|
|
|
4170
4171
|
default: Y(() => [
|
|
4171
4172
|
le(b("div", Ln, [
|
|
4172
4173
|
b("div", Pn, [
|
|
4173
|
-
S(v(
|
|
4174
|
+
S(v(H), {
|
|
4174
4175
|
class: "cl-absolute cl-cursor-pointer cl-right-3 cl-text-off-white cl-top-3",
|
|
4175
4176
|
icon: "ph:x",
|
|
4176
4177
|
size: 16,
|
|
@@ -4180,10 +4181,10 @@ const dn = {
|
|
|
4180
4181
|
b("ul", Bn, [
|
|
4181
4182
|
b("li", zn, [
|
|
4182
4183
|
b("strong", _n, q(v(t)("grid.column")), 1),
|
|
4183
|
-
b("strong",
|
|
4184
|
-
b("strong",
|
|
4184
|
+
b("strong", Hn, q(v(t)("grid.visible")), 1),
|
|
4185
|
+
b("strong", xn, q(v(t)("grid.order")), 1)
|
|
4185
4186
|
]),
|
|
4186
|
-
(p(!0),
|
|
4187
|
+
(p(!0), h(X, null, se(s.columns, (m, k) => (p(), h("li", {
|
|
4187
4188
|
key: k,
|
|
4188
4189
|
class: "cl-border-b cl-border-grey-2 cl-flex cl-py-2 cl-text-sm cl-w-full"
|
|
4189
4190
|
}, [
|
|
@@ -4192,24 +4193,24 @@ const dn = {
|
|
|
4192
4193
|
S(me, {
|
|
4193
4194
|
"model-value": m.visible === void 0 || m.visible === !0,
|
|
4194
4195
|
"input-type": "checkbox",
|
|
4195
|
-
onClick: (
|
|
4196
|
+
onClick: (u) => r(u.target, m)
|
|
4196
4197
|
}, null, 8, ["model-value", "onClick"])
|
|
4197
4198
|
]),
|
|
4198
4199
|
b("div", Kn, [
|
|
4199
|
-
m.visible === void 0 || m.visible === !0 ? (p(),
|
|
4200
|
-
k !== 0 ? (p(), G(v(
|
|
4200
|
+
m.visible === void 0 || m.visible === !0 ? (p(), h(X, { key: 0 }, [
|
|
4201
|
+
k !== 0 ? (p(), G(v(H), {
|
|
4201
4202
|
key: 0,
|
|
4202
4203
|
class: "cl-cursor-pointer cl-inline-block cl-mr-2",
|
|
4203
4204
|
icon: "ph:arrow-left",
|
|
4204
|
-
onClick: (
|
|
4205
|
-
}, null, 8, ["onClick"])) :
|
|
4206
|
-
k !== s.columns.length - 1 ? (p(), G(v(
|
|
4205
|
+
onClick: (u) => o(k, "down")
|
|
4206
|
+
}, null, 8, ["onClick"])) : F("", !0),
|
|
4207
|
+
k !== s.columns.length - 1 ? (p(), G(v(H), {
|
|
4207
4208
|
key: 1,
|
|
4208
4209
|
class: "cl-cursor-pointer cl-inline-block",
|
|
4209
4210
|
icon: "ph:arrow-right",
|
|
4210
|
-
onClick: (
|
|
4211
|
-
}, null, 8, ["onClick"])) :
|
|
4212
|
-
], 64)) : (p(),
|
|
4211
|
+
onClick: (u) => o(k, "up")
|
|
4212
|
+
}, null, 8, ["onClick"])) : F("", !0)
|
|
4213
|
+
], 64)) : (p(), h("em", Qn, q(v(t)("grid.hidden")), 1))
|
|
4213
4214
|
])
|
|
4214
4215
|
]))), 128))
|
|
4215
4216
|
])
|
|
@@ -4238,142 +4239,142 @@ const dn = {
|
|
|
4238
4239
|
var ae;
|
|
4239
4240
|
const l = a, t = R({
|
|
4240
4241
|
get: () => l.columns,
|
|
4241
|
-
set: (
|
|
4242
|
-
}), n = R(() => t.value.filter((
|
|
4242
|
+
set: (E) => e("update:columns", E)
|
|
4243
|
+
}), n = R(() => t.value.filter((E) => E.visible ?? !0)), c = I({});
|
|
4243
4244
|
function r() {
|
|
4244
|
-
const
|
|
4245
|
+
const E = {};
|
|
4245
4246
|
window.innerWidth >= 1024 && t.value.forEach((B) => {
|
|
4246
|
-
const
|
|
4247
|
-
|
|
4248
|
-
}), c.value =
|
|
4247
|
+
const d = B.width ? `${B.width}px` : "";
|
|
4248
|
+
E[`${B.name}`] = `width: ${d}; min-width: ${d};`;
|
|
4249
|
+
}), c.value = E;
|
|
4249
4250
|
}
|
|
4250
|
-
function o(
|
|
4251
|
-
return c.value[
|
|
4251
|
+
function o(E) {
|
|
4252
|
+
return c.value[E] ?? "";
|
|
4252
4253
|
}
|
|
4253
4254
|
Ze(() => {
|
|
4254
4255
|
window.addEventListener("resize", r), r();
|
|
4255
4256
|
}), tl(() => window.removeEventListener("resize", r));
|
|
4256
4257
|
const s = R({
|
|
4257
4258
|
get: () => l.request,
|
|
4258
|
-
set: (
|
|
4259
|
+
set: (E) => e("update:request", E)
|
|
4259
4260
|
});
|
|
4260
4261
|
function i() {
|
|
4261
|
-
const
|
|
4262
|
-
|
|
4262
|
+
const E = ge(s.value);
|
|
4263
|
+
E.pageNumber = 1, E.filters = [], j.value = "", s.value = E;
|
|
4263
4264
|
}
|
|
4264
4265
|
const m = ol(() => e("data-request"), 750);
|
|
4265
4266
|
oe(s, m, {
|
|
4266
4267
|
deep: !0,
|
|
4267
4268
|
immediate: !0
|
|
4268
4269
|
});
|
|
4269
|
-
const k = R(() => l.data),
|
|
4270
|
-
oe(
|
|
4271
|
-
const
|
|
4270
|
+
const k = R(() => l.data), u = I(!1), w = I(!1);
|
|
4271
|
+
oe(u, () => u.value ? e("edit-start") : e("edit-end"));
|
|
4272
|
+
const N = R(() => ({
|
|
4272
4273
|
highlightRowSelection: !0,
|
|
4273
4274
|
...l.options
|
|
4274
|
-
})),
|
|
4275
|
+
})), L = R({
|
|
4275
4276
|
get() {
|
|
4276
|
-
const
|
|
4277
|
-
return
|
|
4277
|
+
const E = ge(s.value);
|
|
4278
|
+
return E.filters = E.filters.filter((B) => B.filterMethod !== "andcontains" && B.filterOperation !== ee.AND_CONTAINS), E;
|
|
4278
4279
|
},
|
|
4279
|
-
set(
|
|
4280
|
+
set(E) {
|
|
4280
4281
|
const B = [
|
|
4281
|
-
...
|
|
4282
|
-
...s.value.filters.filter((
|
|
4282
|
+
...E.filters,
|
|
4283
|
+
...s.value.filters.filter((d) => d.filterMethod === "andcontains" || d.filterOperation === ee.AND_CONTAINS)
|
|
4283
4284
|
];
|
|
4284
4285
|
s.value = {
|
|
4285
|
-
...
|
|
4286
|
+
...E,
|
|
4286
4287
|
filters: B
|
|
4287
4288
|
};
|
|
4288
4289
|
}
|
|
4289
|
-
}),
|
|
4290
|
-
return (
|
|
4290
|
+
}), j = I(((ae = l.request.filters.find((E) => E.filterMethod === "andcontains" || E.filterOperation === ee.AND_CONTAINS)) == null ? void 0 : ae.filterValue) ?? ""), Z = R(() => l.columns.filter((E) => (E.type === "string" || E.type === "slot" && E.slotType === "string") && E.searchable));
|
|
4291
|
+
return (E, B) => (p(), h("div", Yn, [
|
|
4291
4292
|
Z.value.length > 0 ? (p(), G(Vn, {
|
|
4292
4293
|
key: 0,
|
|
4293
|
-
"search-value":
|
|
4294
|
-
"onUpdate:searchValue": B[0] || (B[0] = (
|
|
4294
|
+
"search-value": j.value,
|
|
4295
|
+
"onUpdate:searchValue": B[0] || (B[0] = (d) => j.value = d),
|
|
4295
4296
|
request: s.value,
|
|
4296
|
-
"onUpdate:request": B[1] || (B[1] = (
|
|
4297
|
+
"onUpdate:request": B[1] || (B[1] = (d) => s.value = d),
|
|
4297
4298
|
columns: Z.value
|
|
4298
4299
|
}, {
|
|
4299
|
-
search: Y((
|
|
4300
|
-
|
|
4300
|
+
search: Y((d) => [
|
|
4301
|
+
P(E.$slots, "search", ce(ve(d)))
|
|
4301
4302
|
]),
|
|
4302
4303
|
_: 3
|
|
4303
|
-
}, 8, ["search-value", "request", "columns"])) :
|
|
4304
|
+
}, 8, ["search-value", "request", "columns"])) : F("", !0),
|
|
4304
4305
|
S(Te, { name: "fade" }, {
|
|
4305
4306
|
default: Y(() => [
|
|
4306
4307
|
le(b("div", Jn, [
|
|
4307
4308
|
S(Ke, { class: "after:!cl-h-20 after:!cl-w-20 cl-h-20 cl-w-20" })
|
|
4308
4309
|
], 512), [
|
|
4309
|
-
[te,
|
|
4310
|
+
[te, E.loading]
|
|
4310
4311
|
])
|
|
4311
4312
|
]),
|
|
4312
4313
|
_: 1
|
|
4313
4314
|
}),
|
|
4314
4315
|
S(Co, {
|
|
4315
|
-
"edit-mode":
|
|
4316
|
-
"onUpdate:editMode": B[3] || (B[3] = (
|
|
4317
|
-
"filter-panel-open":
|
|
4318
|
-
"onUpdate:filterPanelOpen": B[4] || (B[4] = (
|
|
4319
|
-
columns:
|
|
4320
|
-
options:
|
|
4316
|
+
"edit-mode": u.value,
|
|
4317
|
+
"onUpdate:editMode": B[3] || (B[3] = (d) => u.value = d),
|
|
4318
|
+
"filter-panel-open": w.value,
|
|
4319
|
+
"onUpdate:filterPanelOpen": B[4] || (B[4] = (d) => w.value = d),
|
|
4320
|
+
columns: E.columns,
|
|
4321
|
+
options: N.value,
|
|
4321
4322
|
request: s.value,
|
|
4322
|
-
loading:
|
|
4323
|
+
loading: E.loading,
|
|
4323
4324
|
onClearFilters: i
|
|
4324
4325
|
}, {
|
|
4325
|
-
"additional-grid-actions": Y((
|
|
4326
|
-
|
|
4326
|
+
"additional-grid-actions": Y((d) => [
|
|
4327
|
+
P(E.$slots, "additional-grid-actions", ce(ve(d)))
|
|
4327
4328
|
]),
|
|
4328
4329
|
"view-manager": Y(() => [
|
|
4329
4330
|
S(Wn, {
|
|
4330
4331
|
columns: t.value,
|
|
4331
|
-
"onUpdate:columns": B[2] || (B[2] = (
|
|
4332
|
-
loading:
|
|
4332
|
+
"onUpdate:columns": B[2] || (B[2] = (d) => t.value = d),
|
|
4333
|
+
loading: E.loading
|
|
4333
4334
|
}, null, 8, ["columns", "loading"])
|
|
4334
4335
|
]),
|
|
4335
4336
|
_: 3
|
|
4336
4337
|
}, 8, ["edit-mode", "filter-panel-open", "columns", "options", "request", "loading"]),
|
|
4337
4338
|
b("div", Xn, [
|
|
4338
4339
|
b("table", {
|
|
4339
|
-
class:
|
|
4340
|
-
"cl-opacity-40 cl-pointer-events-none":
|
|
4340
|
+
class: V(["cl-delay-75 cl-min-h-[276px] cl-overflow-x-auto cl-overscroll-x-none cl-text-left cl-transition-opacity cl-w-full", {
|
|
4341
|
+
"cl-opacity-40 cl-pointer-events-none": E.loading
|
|
4341
4342
|
}])
|
|
4342
4343
|
}, [
|
|
4343
4344
|
b("colgroup", er, [
|
|
4344
|
-
(p(!0),
|
|
4345
|
+
(p(!0), h(X, null, se(n.value, (d, f) => (p(), h("col", {
|
|
4345
4346
|
key: f,
|
|
4346
|
-
style: _l(o(
|
|
4347
|
+
style: _l(o(d.name)),
|
|
4347
4348
|
span: 1
|
|
4348
4349
|
}, null, 4))), 128))
|
|
4349
4350
|
]),
|
|
4350
4351
|
S(Fn, {
|
|
4351
|
-
request:
|
|
4352
|
-
"onUpdate:request": B[5] || (B[5] = (
|
|
4353
|
-
"filter-panel-open":
|
|
4354
|
-
"onUpdate:filterPanelOpen": B[6] || (B[6] = (
|
|
4352
|
+
request: L.value,
|
|
4353
|
+
"onUpdate:request": B[5] || (B[5] = (d) => L.value = d),
|
|
4354
|
+
"filter-panel-open": w.value,
|
|
4355
|
+
"onUpdate:filterPanelOpen": B[6] || (B[6] = (d) => w.value = d),
|
|
4355
4356
|
columns: n.value,
|
|
4356
|
-
options:
|
|
4357
|
-
loading:
|
|
4358
|
-
"time-zone":
|
|
4357
|
+
options: N.value,
|
|
4358
|
+
loading: E.loading,
|
|
4359
|
+
"time-zone": E.timeZone
|
|
4359
4360
|
}, null, 8, ["request", "filter-panel-open", "columns", "options", "loading", "time-zone"]),
|
|
4360
4361
|
S(Lo, {
|
|
4361
4362
|
columns: n.value,
|
|
4362
4363
|
request: s.value,
|
|
4363
4364
|
data: k.value,
|
|
4364
|
-
"time-zone":
|
|
4365
|
-
loading:
|
|
4366
|
-
"search-value":
|
|
4367
|
-
options:
|
|
4368
|
-
"edit-mode":
|
|
4365
|
+
"time-zone": E.timeZone,
|
|
4366
|
+
loading: E.loading,
|
|
4367
|
+
"search-value": j.value,
|
|
4368
|
+
options: N.value,
|
|
4369
|
+
"edit-mode": u.value,
|
|
4369
4370
|
onClearFilters: i,
|
|
4370
|
-
onRowEdit: B[7] || (B[7] = (
|
|
4371
|
-
onRowSelect: B[8] || (B[8] = (
|
|
4371
|
+
onRowEdit: B[7] || (B[7] = (d) => E.$emit("row-edit", d)),
|
|
4372
|
+
onRowSelect: B[8] || (B[8] = (d) => E.$emit("row-select", d))
|
|
4372
4373
|
}, al({ _: 2 }, [
|
|
4373
|
-
se(
|
|
4374
|
+
se(E.$slots, (d, f) => ({
|
|
4374
4375
|
name: f,
|
|
4375
4376
|
fn: Y((O) => [
|
|
4376
|
-
|
|
4377
|
+
P(E.$slots, f, ce(ve(O)))
|
|
4377
4378
|
])
|
|
4378
4379
|
}))
|
|
4379
4380
|
]), 1032, ["columns", "request", "data", "time-zone", "loading", "search-value", "options", "edit-mode"])
|
|
@@ -4381,9 +4382,9 @@ const dn = {
|
|
|
4381
4382
|
]),
|
|
4382
4383
|
S(ln, {
|
|
4383
4384
|
request: s.value,
|
|
4384
|
-
"onUpdate:request": B[9] || (B[9] = (
|
|
4385
|
-
loading:
|
|
4386
|
-
data:
|
|
4385
|
+
"onUpdate:request": B[9] || (B[9] = (d) => s.value = d),
|
|
4386
|
+
loading: E.loading,
|
|
4387
|
+
data: E.data
|
|
4387
4388
|
}, null, 8, ["request", "loading", "data"])
|
|
4388
4389
|
]));
|
|
4389
4390
|
}
|
|
@@ -4397,16 +4398,16 @@ const dn = {
|
|
|
4397
4398
|
const l = a, t = I();
|
|
4398
4399
|
return nl(t, () => {
|
|
4399
4400
|
(l.isOpen ?? !1) && e("open-click");
|
|
4400
|
-
}), (n, c) => (p(),
|
|
4401
|
-
|
|
4401
|
+
}), (n, c) => (p(), h("header", tr, [
|
|
4402
|
+
P(n.$slots, "logo"),
|
|
4402
4403
|
b("div", {
|
|
4403
4404
|
ref_key: "headerMenuElement",
|
|
4404
4405
|
ref: t,
|
|
4405
4406
|
class: "cl-cursor-pointer cl-flex cl-flex-nowrap",
|
|
4406
4407
|
onClick: c[0] || (c[0] = (r) => n.$emit("open-click"))
|
|
4407
4408
|
}, [
|
|
4408
|
-
|
|
4409
|
-
|
|
4409
|
+
P(n.$slots, "menu"),
|
|
4410
|
+
P(n.$slots, "icon")
|
|
4410
4411
|
], 512)
|
|
4411
4412
|
]));
|
|
4412
4413
|
}
|
|
@@ -4427,18 +4428,18 @@ const dn = {
|
|
|
4427
4428
|
},
|
|
4428
4429
|
setup(a) {
|
|
4429
4430
|
const e = a;
|
|
4430
|
-
return (l, t) => (p(),
|
|
4431
|
-
class:
|
|
4431
|
+
return (l, t) => (p(), h("div", {
|
|
4432
|
+
class: V(["md:cl-relative", {
|
|
4432
4433
|
"cl-bg-primary-default": (e == null ? void 0 : e.colour) === "default",
|
|
4433
4434
|
"cl-bg-blue-light": e.colour === "secondary"
|
|
4434
4435
|
}])
|
|
4435
4436
|
}, [
|
|
4436
4437
|
b("div", or, [
|
|
4437
|
-
l.image ? (p(),
|
|
4438
|
+
l.image ? (p(), h("img", {
|
|
4438
4439
|
key: 0,
|
|
4439
4440
|
src: l.image,
|
|
4440
4441
|
class: "cl-hidden cl-m-4 cl-max-h-12 cl-max-w-12 cl-ring-2 cl-ring-white cl-rounded-full md:cl-block"
|
|
4441
|
-
}, null, 8, nr)) : (p(), G(v(
|
|
4442
|
+
}, null, 8, nr)) : (p(), G(v(H), {
|
|
4442
4443
|
key: 1,
|
|
4443
4444
|
class: "cl-hidden cl-m-4 cl-text-white md:cl-block",
|
|
4444
4445
|
icon: "ph:user-circle",
|
|
@@ -4446,17 +4447,17 @@ const dn = {
|
|
|
4446
4447
|
height: "48"
|
|
4447
4448
|
})),
|
|
4448
4449
|
b("div", {
|
|
4449
|
-
class:
|
|
4450
|
+
class: V(["cl-grow cl-hidden cl-my-4 md:cl-block", {
|
|
4450
4451
|
"cl-text-secondary-default": e.colour === "default",
|
|
4451
4452
|
"cl-text-white": e.colour === "secondary"
|
|
4452
4453
|
}])
|
|
4453
4454
|
}, [
|
|
4454
|
-
l.username ? (p(),
|
|
4455
|
-
l.group ? (p(),
|
|
4455
|
+
l.username ? (p(), h("div", rr, q(l.username), 1)) : F("", !0),
|
|
4456
|
+
l.group ? (p(), h("div", sr, q(l.group), 1)) : F("", !0)
|
|
4456
4457
|
], 2),
|
|
4457
4458
|
b("div", ir, [
|
|
4458
|
-
S(v(
|
|
4459
|
-
class:
|
|
4459
|
+
S(v(H), {
|
|
4460
|
+
class: V(["cl-transform-gpu cl-transition-transform", {
|
|
4460
4461
|
"cl-rotate-180": l.isOpen,
|
|
4461
4462
|
"cl-text-secondary-default": e.colour === "default",
|
|
4462
4463
|
"cl-text-white": e.colour === "secondary"
|
|
@@ -4468,7 +4469,7 @@ const dn = {
|
|
|
4468
4469
|
S(Te, { name: "fade" }, {
|
|
4469
4470
|
default: Y(() => [
|
|
4470
4471
|
le(b("div", cr, [
|
|
4471
|
-
|
|
4472
|
+
P(l.$slots, "default")
|
|
4472
4473
|
], 512), [
|
|
4473
4474
|
[te, l.isOpen]
|
|
4474
4475
|
])
|
|
@@ -4513,15 +4514,15 @@ const pr = {
|
|
|
4513
4514
|
}
|
|
4514
4515
|
return oe(() => l.disabled, (s) => {
|
|
4515
4516
|
s && (n.value = !1);
|
|
4516
|
-
}), (s, i) => c.value !== null && v(el)(c.value) ? (p(),
|
|
4517
|
+
}), (s, i) => c.value !== null && v(el)(c.value) ? (p(), h("div", pr, [
|
|
4517
4518
|
b("div", {
|
|
4518
|
-
class:
|
|
4519
|
+
class: V(["cl-flex cl-items-center", {
|
|
4519
4520
|
"cl-cursor-pointer": !s.disabled
|
|
4520
4521
|
}]),
|
|
4521
4522
|
onClick: o
|
|
4522
4523
|
}, [
|
|
4523
4524
|
b("span", {
|
|
4524
|
-
class:
|
|
4525
|
+
class: V(["cl-font-semibold cl-text-xs", {
|
|
4525
4526
|
"cl-opacity-50": s.disabled
|
|
4526
4527
|
}])
|
|
4527
4528
|
}, q(c.value.nativeName), 3)
|
|
@@ -4529,12 +4530,12 @@ const pr = {
|
|
|
4529
4530
|
S(Te, { name: "fade" }, {
|
|
4530
4531
|
default: Y(() => [
|
|
4531
4532
|
le(b("div", mr, [
|
|
4532
|
-
(p(!0),
|
|
4533
|
+
(p(!0), h(X, null, se(r.value, (m, k) => (p(), h("div", {
|
|
4533
4534
|
key: k,
|
|
4534
4535
|
class: "cl-border-b cl-border-grey-0 cl-cursor-pointer cl-flex cl-items-center cl-justify-center cl-p-1 cl-text-center cl-transition-colors cl-w-28 hover:cl-bg-grey-0 last-child:cl-border-b-0 last:cl-border-b-0 lg:cl-p-2",
|
|
4535
4536
|
"data-localename": m.name,
|
|
4536
4537
|
"data-localecode": m.localeCode,
|
|
4537
|
-
onClick: (
|
|
4538
|
+
onClick: (u) => {
|
|
4538
4539
|
t.value = m.localeCode, o(), e("language-select", m.localeCode);
|
|
4539
4540
|
}
|
|
4540
4541
|
}, [
|
|
@@ -4546,7 +4547,7 @@ const pr = {
|
|
|
4546
4547
|
]),
|
|
4547
4548
|
_: 1
|
|
4548
4549
|
})
|
|
4549
|
-
])) :
|
|
4550
|
+
])) : F("", !0);
|
|
4550
4551
|
}
|
|
4551
4552
|
}), hr = { class: "cl-relative" }, yr = { class: "cl-h-full cl-z-0 xl:cl-h-screen" }, wr = { class: "cl-absolute cl-bg-secondary-default cl-gap-y-1 cl-grid cl-grid-cols-1 cl-left-0 cl-opacity-95 cl-p-6 cl-top-0 cl-w-full cl-z-10 lg:cl-gap-x-1 lg:cl-grid-cols-10 lg:cl-p-10" }, kr = { class: "cl-col-span-10 lg:cl-col-span-3" }, Tr = {
|
|
4552
4553
|
key: 0,
|
|
@@ -4573,36 +4574,36 @@ const pr = {
|
|
|
4573
4574
|
function s() {
|
|
4574
4575
|
e("update:errors", []);
|
|
4575
4576
|
}
|
|
4576
|
-
function i(k,
|
|
4577
|
-
const
|
|
4577
|
+
function i(k, u) {
|
|
4578
|
+
const w = {
|
|
4578
4579
|
valid: !0,
|
|
4579
4580
|
message: ""
|
|
4580
4581
|
};
|
|
4581
|
-
return typeof
|
|
4582
|
+
return typeof u == "string" && u.trim() === "" && (w.valid = !1), w;
|
|
4582
4583
|
}
|
|
4583
|
-
function m(k,
|
|
4584
|
+
function m(k, u) {
|
|
4584
4585
|
r.value = k;
|
|
4585
4586
|
}
|
|
4586
|
-
return (k,
|
|
4587
|
+
return (k, u) => (p(), h("div", hr, [
|
|
4587
4588
|
b("div", yr, [
|
|
4588
|
-
|
|
4589
|
+
P(k.$slots, "background")
|
|
4589
4590
|
]),
|
|
4590
4591
|
b("form", wr, [
|
|
4591
4592
|
b("div", kr, [
|
|
4592
|
-
|
|
4593
|
+
P(k.$slots, "logo")
|
|
4593
4594
|
]),
|
|
4594
|
-
k.$slots["language-switcher"] ? (p(),
|
|
4595
|
-
|
|
4596
|
-
])) :
|
|
4595
|
+
k.$slots["language-switcher"] ? (p(), h("div", Tr, [
|
|
4596
|
+
P(k.$slots, "language-switcher")
|
|
4597
|
+
])) : F("", !0),
|
|
4597
4598
|
b("div", {
|
|
4598
|
-
class:
|
|
4599
|
+
class: V(["cl-gap-y-4 cl-grid cl-grid-cols-1 lg:cl-gap-x-2 lg:cl-grid-cols-8", {
|
|
4599
4600
|
"cl-col-span-7": !k.$slots["language-switcher"],
|
|
4600
4601
|
"cl-col-span-6": k.$slots["language-switcher"]
|
|
4601
4602
|
}])
|
|
4602
4603
|
}, [
|
|
4603
4604
|
b("div", $r, [
|
|
4604
4605
|
b("div", Cr, [
|
|
4605
|
-
S(v(
|
|
4606
|
+
S(v(H), {
|
|
4606
4607
|
class: "cl-absolute cl-left-3 cl-top-2.5 cl-z-10",
|
|
4607
4608
|
icon: "ph:user",
|
|
4608
4609
|
size: 18
|
|
@@ -4610,7 +4611,7 @@ const pr = {
|
|
|
4610
4611
|
S(me, {
|
|
4611
4612
|
id: "cl-ui-login-usernameinput",
|
|
4612
4613
|
modelValue: t.value,
|
|
4613
|
-
"onUpdate:modelValue":
|
|
4614
|
+
"onUpdate:modelValue": u[0] || (u[0] = (w) => t.value = w),
|
|
4614
4615
|
modelModifiers: { trim: !0 },
|
|
4615
4616
|
class: "!cl-border-2 !cl-mb-1 cl-w-full",
|
|
4616
4617
|
"input-type": "email",
|
|
@@ -4631,31 +4632,31 @@ const pr = {
|
|
|
4631
4632
|
]),
|
|
4632
4633
|
b("div", Or, [
|
|
4633
4634
|
b("div", Sr, [
|
|
4634
|
-
S(v(
|
|
4635
|
+
S(v(H), {
|
|
4635
4636
|
class: "cl-absolute cl-left-3 cl-top-2.5 cl-z-10",
|
|
4636
4637
|
icon: "ph:lock",
|
|
4637
4638
|
size: 18
|
|
4638
4639
|
}),
|
|
4639
|
-
le(S(v(
|
|
4640
|
+
le(S(v(H), {
|
|
4640
4641
|
class: "cl-absolute cl-cursor-pointer cl-right-4 cl-top-2.5 cl-z-10",
|
|
4641
4642
|
icon: "ph:eye",
|
|
4642
4643
|
size: 18,
|
|
4643
|
-
onClick:
|
|
4644
|
+
onClick: u[1] || (u[1] = (w) => c.value = "text")
|
|
4644
4645
|
}, null, 512), [
|
|
4645
4646
|
[te, c.value === "password"]
|
|
4646
4647
|
]),
|
|
4647
|
-
le(S(v(
|
|
4648
|
+
le(S(v(H), {
|
|
4648
4649
|
class: "cl-absolute cl-cursor-pointer cl-right-4 cl-top-2.5 cl-z-10",
|
|
4649
4650
|
icon: "ph:eye-slash",
|
|
4650
4651
|
size: 18,
|
|
4651
|
-
onClick:
|
|
4652
|
+
onClick: u[2] || (u[2] = (w) => c.value = "password")
|
|
4652
4653
|
}, null, 512), [
|
|
4653
4654
|
[te, c.value === "text"]
|
|
4654
4655
|
]),
|
|
4655
4656
|
S(me, {
|
|
4656
4657
|
id: "cl-ui-login-passwordinput",
|
|
4657
4658
|
modelValue: n.value,
|
|
4658
|
-
"onUpdate:modelValue":
|
|
4659
|
+
"onUpdate:modelValue": u[3] || (u[3] = (w) => n.value = w),
|
|
4659
4660
|
class: "!cl-border-2 cl-w-full",
|
|
4660
4661
|
"input-type": c.value,
|
|
4661
4662
|
"highlight-when-valid": n.value !== void 0 && n.value !== "",
|
|
@@ -4671,7 +4672,7 @@ const pr = {
|
|
|
4671
4672
|
])
|
|
4672
4673
|
]),
|
|
4673
4674
|
b("div", {
|
|
4674
|
-
class:
|
|
4675
|
+
class: V(["cl-col-span-2", {
|
|
4675
4676
|
"cl-mt-1.5 cl-mb-1 md:cl-mt-0.5 md:cl-mb-7 lg:cl-mb-0": k.loading
|
|
4676
4677
|
}])
|
|
4677
4678
|
}, [
|
|
@@ -4692,16 +4693,16 @@ const pr = {
|
|
|
4692
4693
|
], 2),
|
|
4693
4694
|
S(Te, { name: "cl-grow-down" }, {
|
|
4694
4695
|
default: Y(() => {
|
|
4695
|
-
var
|
|
4696
|
+
var w;
|
|
4696
4697
|
return [
|
|
4697
4698
|
le(b("span", Nr, [
|
|
4698
|
-
(p(!0),
|
|
4699
|
+
(p(!0), h(X, null, se(k.errors, (N, L) => (p(), h("div", {
|
|
4699
4700
|
id: "cl-ui-login-errors",
|
|
4700
|
-
key:
|
|
4701
|
+
key: L,
|
|
4701
4702
|
class: "cl-font-semibold"
|
|
4702
|
-
}, q(
|
|
4703
|
+
}, q(N), 1))), 128))
|
|
4703
4704
|
], 512), [
|
|
4704
|
-
[te, (
|
|
4705
|
+
[te, (w = k.errors) == null ? void 0 : w.length]
|
|
4705
4706
|
])
|
|
4706
4707
|
];
|
|
4707
4708
|
}),
|
|
@@ -4727,83 +4728,84 @@ const pr = {
|
|
|
4727
4728
|
props: {
|
|
4728
4729
|
colour: { default: "default" }
|
|
4729
4730
|
},
|
|
4730
|
-
|
|
4731
|
-
|
|
4732
|
-
|
|
4733
|
-
|
|
4734
|
-
|
|
4735
|
-
|
|
4731
|
+
emits: ["pinned-state"],
|
|
4732
|
+
setup(a, { expose: e, emit: l }) {
|
|
4733
|
+
const t = I([]), n = R(() => t.value.filter((N) => N.open === !0).length > 0);
|
|
4734
|
+
function c(N) {
|
|
4735
|
+
let L = t.value.find((j) => j.id === N);
|
|
4736
|
+
return L || (L = {
|
|
4737
|
+
id: N,
|
|
4736
4738
|
open: !1
|
|
4737
|
-
},
|
|
4739
|
+
}, t.value.push(L)), L.open;
|
|
4738
4740
|
}
|
|
4739
|
-
function
|
|
4740
|
-
const
|
|
4741
|
-
|
|
4742
|
-
|
|
4741
|
+
function r(N) {
|
|
4742
|
+
const L = t.value.find((j) => j.id === N);
|
|
4743
|
+
L && (L.open = !L.open, t.value.forEach((j) => {
|
|
4744
|
+
j.id !== N && (j.open = !1);
|
|
4743
4745
|
}));
|
|
4744
4746
|
}
|
|
4745
|
-
const
|
|
4747
|
+
const o = Ql();
|
|
4746
4748
|
oe(
|
|
4747
|
-
() =>
|
|
4749
|
+
() => o,
|
|
4748
4750
|
() => {
|
|
4749
|
-
|
|
4751
|
+
s.value = !1;
|
|
4750
4752
|
},
|
|
4751
4753
|
{
|
|
4752
4754
|
deep: !0
|
|
4753
4755
|
}
|
|
4754
4756
|
);
|
|
4755
|
-
const
|
|
4756
|
-
function
|
|
4757
|
-
|
|
4757
|
+
const s = I(!1), i = I(!1), { start: m } = $l(() => i.value = !1, 100);
|
|
4758
|
+
function k() {
|
|
4759
|
+
s.value = !s.value, l("pinned-state", s.value), i.value = !0, m();
|
|
4758
4760
|
}
|
|
4759
|
-
const
|
|
4760
|
-
function
|
|
4761
|
-
|
|
4762
|
-
|
|
4761
|
+
const u = I();
|
|
4762
|
+
function w() {
|
|
4763
|
+
s.value === !1 && n.value === !0 && t.value.forEach((N) => {
|
|
4764
|
+
N.open = !1;
|
|
4763
4765
|
});
|
|
4764
4766
|
}
|
|
4765
|
-
return nl(
|
|
4766
|
-
closeNavigation:
|
|
4767
|
-
}), (
|
|
4767
|
+
return nl(u, w), e({
|
|
4768
|
+
closeNavigation: w
|
|
4769
|
+
}), (N, L) => (p(), h("div", {
|
|
4768
4770
|
ref_key: "navElement",
|
|
4769
|
-
ref:
|
|
4771
|
+
ref: u,
|
|
4770
4772
|
class: "cl-flex cl-flex-nowrap cl-relative"
|
|
4771
4773
|
}, [
|
|
4772
4774
|
b("div", {
|
|
4773
4775
|
id: "group-container",
|
|
4774
|
-
class:
|
|
4775
|
-
"cl-bg-primary-default":
|
|
4776
|
-
"cl-bg-blue-dark":
|
|
4776
|
+
class: V(["cl-h-full cl-overflow-y-auto cl-overscroll-y-none cl-pb-20 cl-w-20 cl-z-40 xl:cl-pb-0", {
|
|
4777
|
+
"cl-bg-primary-default": N.colour === "default",
|
|
4778
|
+
"cl-bg-blue-dark": N.colour === "secondary"
|
|
4777
4779
|
}])
|
|
4778
4780
|
}, [
|
|
4779
|
-
|
|
4781
|
+
P(N.$slots, "icon", fe({ navcolour: N.colour }, { groupIsOpen: c, toggleOpen: r }), void 0, !0)
|
|
4780
4782
|
], 2),
|
|
4781
|
-
|
|
4783
|
+
i.value ? (p(), h("div", Rr)) : F("", !0),
|
|
4782
4784
|
S(Te, { name: "slide-right" }, {
|
|
4783
4785
|
default: Y(() => [
|
|
4784
4786
|
le(b("div", {
|
|
4785
|
-
class:
|
|
4786
|
-
"cl-relative":
|
|
4787
|
-
"cl-absolute cl-left-20 cl-shadow-lg": !
|
|
4787
|
+
class: V(["cl-bg-grey-0 cl-border-grey-2 cl-border-r cl-duration-75 cl-h-full cl-min-w-[260px] cl-overflow-y-auto cl-overscroll-y-none cl-p-8 cl-pb-24 cl-top-0 cl-transition-shadow cl-w-[260px] cl-z-30 xl:cl-pb-0", {
|
|
4788
|
+
"cl-relative": s.value,
|
|
4789
|
+
"cl-absolute cl-left-20 cl-shadow-lg": !s.value
|
|
4788
4790
|
}])
|
|
4789
4791
|
}, [
|
|
4790
4792
|
b("div", Dr, [
|
|
4791
4793
|
b("span", {
|
|
4792
4794
|
class: "cl-absolute cl-cursor-pointer cl-hidden cl-right-0 cl-top-1.5 lg:cl-block",
|
|
4793
|
-
onClick:
|
|
4795
|
+
onClick: k
|
|
4794
4796
|
}, [
|
|
4795
|
-
|
|
4797
|
+
s.value ? (p(), G(v(H), {
|
|
4796
4798
|
key: 1,
|
|
4797
4799
|
icon: "ph:push-pin-slash"
|
|
4798
|
-
})) : (p(), G(v(
|
|
4800
|
+
})) : (p(), G(v(H), {
|
|
4799
4801
|
key: 0,
|
|
4800
4802
|
icon: "ph:push-pin"
|
|
4801
4803
|
}))
|
|
4802
4804
|
]),
|
|
4803
|
-
|
|
4805
|
+
P(N.$slots, "default", ce(ve({ groupIsOpen: c })), void 0, !0)
|
|
4804
4806
|
])
|
|
4805
4807
|
], 2), [
|
|
4806
|
-
[te,
|
|
4808
|
+
[te, n.value]
|
|
4807
4809
|
])
|
|
4808
4810
|
]),
|
|
4809
4811
|
_: 3
|
|
@@ -4811,7 +4813,7 @@ const pr = {
|
|
|
4811
4813
|
], 512));
|
|
4812
4814
|
}
|
|
4813
4815
|
});
|
|
4814
|
-
const jr = /* @__PURE__ */ ke(Ir, [["__scopeId", "data-v-
|
|
4816
|
+
const jr = /* @__PURE__ */ ke(Ir, [["__scopeId", "data-v-0d50b687"]]), Fr = /* @__PURE__ */ Q({
|
|
4815
4817
|
__name: "cl-ui-navigation-icon",
|
|
4816
4818
|
props: {
|
|
4817
4819
|
iconValue: {},
|
|
@@ -4819,15 +4821,15 @@ const jr = /* @__PURE__ */ ke(Ir, [["__scopeId", "data-v-0958dcf5"]]), Fr = /* @
|
|
|
4819
4821
|
colour: { default: "default" }
|
|
4820
4822
|
},
|
|
4821
4823
|
setup(a) {
|
|
4822
|
-
return (e, l) => (p(),
|
|
4823
|
-
class:
|
|
4824
|
+
return (e, l) => (p(), h("div", {
|
|
4825
|
+
class: V(["cl-cursor-pointer cl-flex cl-h-20 cl-items-center cl-justify-center cl-transition-colors cl-w-20", {
|
|
4824
4826
|
"cl-text-secondary-default hover:cl-bg-primary-dark hover:cl-text-white": e.colour === "default",
|
|
4825
4827
|
"cl-bg-primary-darker cl-text-white": e.open && e.colour === "default",
|
|
4826
4828
|
"cl-text-white hover:cl-bg-blue-light": e.colour === "secondary",
|
|
4827
4829
|
"cl-bg-blue-light": e.open && e.colour === "secondary"
|
|
4828
4830
|
}])
|
|
4829
4831
|
}, [
|
|
4830
|
-
S(v(
|
|
4832
|
+
S(v(H), {
|
|
4831
4833
|
class: "cl-block",
|
|
4832
4834
|
icon: e.iconValue,
|
|
4833
4835
|
width: "24"
|
|
@@ -4843,16 +4845,16 @@ const jr = /* @__PURE__ */ ke(Ir, [["__scopeId", "data-v-0958dcf5"]]), Fr = /* @
|
|
|
4843
4845
|
open: { type: Boolean }
|
|
4844
4846
|
},
|
|
4845
4847
|
setup(a) {
|
|
4846
|
-
return (e, l) => (p(),
|
|
4847
|
-
class:
|
|
4848
|
+
return (e, l) => (p(), h("div", {
|
|
4849
|
+
class: V({
|
|
4848
4850
|
"cl-hidden": !e.open
|
|
4849
4851
|
})
|
|
4850
4852
|
}, [
|
|
4851
|
-
e.$slots.title ? (p(),
|
|
4852
|
-
|
|
4853
|
-
])) :
|
|
4853
|
+
e.$slots.title ? (p(), h("div", Mr, [
|
|
4854
|
+
P(e.$slots, "title")
|
|
4855
|
+
])) : F("", !0),
|
|
4854
4856
|
b("div", Vr, [
|
|
4855
|
-
|
|
4857
|
+
P(e.$slots, "default")
|
|
4856
4858
|
])
|
|
4857
4859
|
], 2));
|
|
4858
4860
|
}
|
|
@@ -4861,22 +4863,22 @@ const jr = /* @__PURE__ */ ke(Ir, [["__scopeId", "data-v-0958dcf5"]]), Fr = /* @
|
|
|
4861
4863
|
class: "cl-font-bold cl-mb-4 cl-select-none"
|
|
4862
4864
|
}, zr = { class: "cl-flex cl-flex-wrap cl-space-y-2" };
|
|
4863
4865
|
function _r(a, e) {
|
|
4864
|
-
return p(),
|
|
4865
|
-
a.$slots.title ? (p(),
|
|
4866
|
-
|
|
4867
|
-
])) :
|
|
4866
|
+
return p(), h("div", Ur, [
|
|
4867
|
+
a.$slots.title ? (p(), h("div", Br, [
|
|
4868
|
+
P(a.$slots, "title")
|
|
4869
|
+
])) : F("", !0),
|
|
4868
4870
|
b("span", zr, [
|
|
4869
|
-
|
|
4871
|
+
P(a.$slots, "default")
|
|
4870
4872
|
])
|
|
4871
4873
|
]);
|
|
4872
4874
|
}
|
|
4873
|
-
const
|
|
4875
|
+
const Hr = /* @__PURE__ */ ke(Pr, [["render", _r]]), xr = {}, Gr = { class: "cl-cursor-pointer cl-transition-colors cl-w-full hover:cl-text-primary-darker" };
|
|
4874
4876
|
function Zr(a, e) {
|
|
4875
|
-
return p(),
|
|
4876
|
-
|
|
4877
|
+
return p(), h("div", Gr, [
|
|
4878
|
+
P(a.$slots, "default")
|
|
4877
4879
|
]);
|
|
4878
4880
|
}
|
|
4879
|
-
const Kr = /* @__PURE__ */ ke(
|
|
4881
|
+
const Kr = /* @__PURE__ */ ke(xr, [["render", Zr]]), Qr = { class: "cl-w-full" }, Wr = /* @__PURE__ */ Q({
|
|
4880
4882
|
__name: "cl-ui-tab",
|
|
4881
4883
|
props: {
|
|
4882
4884
|
currentTab: { default: 0 },
|
|
@@ -4905,22 +4907,22 @@ const Kr = /* @__PURE__ */ ke(Hr, [["render", Zr]]), Qr = { class: "cl-w-full" }
|
|
|
4905
4907
|
i === "left" && (k = -m), l.value.scroll(l.value.scrollLeft + k, 0);
|
|
4906
4908
|
}
|
|
4907
4909
|
}
|
|
4908
|
-
return Ze(() => o()), tl(() => window.removeEventListener("resize", r)), (i, m) => (p(),
|
|
4910
|
+
return Ze(() => o()), tl(() => window.removeEventListener("resize", r)), (i, m) => (p(), h("div", Qr, [
|
|
4909
4911
|
b("div", null, [
|
|
4910
|
-
t.value ? (p(),
|
|
4912
|
+
t.value ? (p(), h("div", {
|
|
4911
4913
|
key: 0,
|
|
4912
4914
|
class: "cl-bg-white cl-cursor-pointer cl-float-left cl-h-11 cl-w-4",
|
|
4913
4915
|
onClick: m[0] || (m[0] = (k) => s("left"))
|
|
4914
4916
|
}, [
|
|
4915
|
-
S(v(
|
|
4917
|
+
S(v(H), {
|
|
4916
4918
|
icon: "ph:caret-left",
|
|
4917
4919
|
class: "cl-mt-4 cl-text-secondary-default"
|
|
4918
4920
|
})
|
|
4919
|
-
])) :
|
|
4921
|
+
])) : F("", !0),
|
|
4920
4922
|
b("div", {
|
|
4921
4923
|
ref_key: "headerContainer",
|
|
4922
4924
|
ref: l,
|
|
4923
|
-
class:
|
|
4925
|
+
class: V(["cl-flex cl-overflow-x-auto cl-overscroll-x-none", {
|
|
4924
4926
|
"cl-shadow-[inset_0_-1px_0_#eeeeee]": !i.disabled && i.colour === "default",
|
|
4925
4927
|
"cl-shadow-[inset_0_-1px_0_#dae32c]": !i.disabled && i.colour === "primary",
|
|
4926
4928
|
"cl-shadow-[inset_0_-1px_0_#30363e]": !i.disabled && i.colour === "secondary",
|
|
@@ -4931,20 +4933,20 @@ const Kr = /* @__PURE__ */ ke(Hr, [["render", Zr]]), Qr = { class: "cl-w-full" }
|
|
|
4931
4933
|
}]),
|
|
4932
4934
|
onScrollPassive: r
|
|
4933
4935
|
}, [
|
|
4934
|
-
|
|
4936
|
+
P(i.$slots, "headings", ce(ve({ isTabOpen: c, disabled: i.disabled, colour: i.colour })))
|
|
4935
4937
|
], 34),
|
|
4936
|
-
n.value ? (p(),
|
|
4938
|
+
n.value ? (p(), h("div", {
|
|
4937
4939
|
key: 1,
|
|
4938
4940
|
class: "cl-bg-white cl-bottom-12 cl-cursor-pointer cl-float-right cl-h-11 cl-relative cl-w-4",
|
|
4939
4941
|
onClick: m[1] || (m[1] = (k) => s("right"))
|
|
4940
4942
|
}, [
|
|
4941
|
-
S(v(
|
|
4943
|
+
S(v(H), {
|
|
4942
4944
|
icon: "ph:caret-right",
|
|
4943
4945
|
class: "cl-mt-4 cl-text-secondary-default"
|
|
4944
4946
|
})
|
|
4945
|
-
])) :
|
|
4947
|
+
])) : F("", !0)
|
|
4946
4948
|
]),
|
|
4947
|
-
|
|
4949
|
+
P(i.$slots, "content", ce(ve({ isTabOpen: c, disabled: i.disabled, colour: i.colour })))
|
|
4948
4950
|
]));
|
|
4949
4951
|
}
|
|
4950
4952
|
}), Yr = ["onKeyup"], Jr = /* @__PURE__ */ Q({
|
|
@@ -4963,8 +4965,8 @@ const Kr = /* @__PURE__ */ ke(Hr, [["render", Zr]]), Qr = { class: "cl-w-full" }
|
|
|
4963
4965
|
function r() {
|
|
4964
4966
|
l.disabled || (t.value = !1, n.value = !1, e("update:currentTab", l.id));
|
|
4965
4967
|
}
|
|
4966
|
-
return (o, s) => (p(),
|
|
4967
|
-
class:
|
|
4968
|
+
return (o, s) => (p(), h("div", {
|
|
4969
|
+
class: V(["cl-border-b cl-cursor-pointer cl-flex cl-items-center cl-px-4 cl-py-2 cl-rounded-b-none cl-rounded-sm cl-select-none cl-text-xl cl-transition cl-whitespace-nowrap focus:cl-outline-none", {
|
|
4968
4970
|
"!cl-cursor-default cl-text-grey-4 !cl-border-grey-2": o.disabled,
|
|
4969
4971
|
"cl-border cl-border-b-0 cl-rounded-t-md cl-shadow-[inset_0_-1px_0_#ffffff] cl-cursor-default": c.value,
|
|
4970
4972
|
"cl-border-grey-0": o.colour === "default",
|
|
@@ -4991,12 +4993,12 @@ const Kr = /* @__PURE__ */ ke(Hr, [["render", Zr]]), Qr = { class: "cl-w-full" }
|
|
|
4991
4993
|
onFocusout: s[3] || (s[3] = (i) => t.value = !1),
|
|
4992
4994
|
onKeyup: Ee(ne(r, ["self"]), ["enter"])
|
|
4993
4995
|
}, [
|
|
4994
|
-
|
|
4996
|
+
P(o.$slots, "default")
|
|
4995
4997
|
], 42, Yr));
|
|
4996
4998
|
}
|
|
4997
4999
|
}), Xr = {};
|
|
4998
5000
|
function es(a, e) {
|
|
4999
|
-
return
|
|
5001
|
+
return P(a.$slots, "default");
|
|
5000
5002
|
}
|
|
5001
5003
|
const ls = /* @__PURE__ */ ke(Xr, [["render", es]]), ts = [
|
|
5002
5004
|
"default",
|
|
@@ -5034,7 +5036,7 @@ const ls = /* @__PURE__ */ ke(Xr, [["render", es]]), ts = [
|
|
|
5034
5036
|
clUiNavigationGroup: Lr,
|
|
5035
5037
|
clUiNavigationIcon: Fr,
|
|
5036
5038
|
clUiNavigationItem: Kr,
|
|
5037
|
-
clUiNavigationSection:
|
|
5039
|
+
clUiNavigationSection: Hr,
|
|
5038
5040
|
clUiNotification: Ol,
|
|
5039
5041
|
clUiTab: Wr,
|
|
5040
5042
|
clUiTabContent: ls,
|
|
@@ -5061,7 +5063,7 @@ const ls = /* @__PURE__ */ ke(Xr, [["render", es]]), ts = [
|
|
|
5061
5063
|
tabScroll: as
|
|
5062
5064
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
5063
5065
|
const hs = (a) => {
|
|
5064
|
-
a.use(we), a.component("Icon",
|
|
5066
|
+
a.use(we), a.component("Icon", H), Object.entries(os).forEach(([
|
|
5065
5067
|
e,
|
|
5066
5068
|
l
|
|
5067
5069
|
]) => {
|
|
@@ -5097,7 +5099,7 @@ export {
|
|
|
5097
5099
|
Lr as clUiNavigationGroup,
|
|
5098
5100
|
Fr as clUiNavigationIcon,
|
|
5099
5101
|
Kr as clUiNavigationItem,
|
|
5100
|
-
|
|
5102
|
+
Hr as clUiNavigationSection,
|
|
5101
5103
|
Ol as clUiNotification,
|
|
5102
5104
|
Wr as clUiTab,
|
|
5103
5105
|
ls as clUiTabContent,
|