@citruslime/ui 3.0.1-beta.1 → 3.0.1-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.
- package/dist/citrus-lime-ui.es.js +495 -494
- package/dist/citrus-lime-ui.umd.js +2 -2
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Icon as
|
|
2
|
-
import { defineComponent as B, ref as N, openBlock as p, createElementBlock as v, renderSlot as M, normalizeProps as fe, guardReactiveProps as ge, Fragment as J, createElementVNode as f, normalizeClass as
|
|
1
|
+
import { Icon as G } from "@iconify/vue";
|
|
2
|
+
import { defineComponent as B, ref as N, openBlock as p, createElementBlock as v, renderSlot as M, normalizeProps as fe, guardReactiveProps as ge, Fragment as J, createElementVNode as f, normalizeClass as L, createVNode as D, unref as g, Transition as Te, withCtx as R, withDirectives as Q, mergeProps as le, vShow as te, createBlock as H, Teleport as rl, renderList as ue, toDisplayString as I, createCommentVNode as F, computed as S, mergeModels as ve, useModel as Se, createSlots as Ie, vModelDynamic as Al, watch as ae, toRefs as tt, withKeys as be, onMounted as Pe, onUnmounted as Je, withModifiers as oe, nextTick as Re, resolveComponent as Ae, createTextVNode as pe, inject as sl, vModelCheckbox as ot, toValue as hl, watchEffect as at, useAttrs as Vl, useCssVars as Nl, vModelText as Il, toHandlers as nt, pushScopeId as Rl, popScopeId as Ml, provide as yl, normalizeStyle as rt } from "vue";
|
|
3
3
|
import { generateStringId as st, highlightText as it, validateEmail as ct } from "@citruslime/utils";
|
|
4
4
|
import { onKeyDown as Qe, unrefElement as ut, tryOnScopeDispose as dt, onClickOutside as il, useTimeoutFn as Ul, useMouseInElement as pt, useFocusWithin as ft, useMediaQuery as zl, useThrottle as mt, useElementBounding as gt, useDebounceFn as vt, useWindowSize as bt } from "@vueuse/core";
|
|
5
|
-
import { useI18n as
|
|
5
|
+
import { useI18n as ce, createI18n as ht } from "vue-i18n";
|
|
6
6
|
import { createFocusTrap as yt } from "focus-trap";
|
|
7
7
|
import { copy as me } from "@citruslime/vue-utils";
|
|
8
8
|
import { DateTime as W } from "luxon";
|
|
@@ -47,15 +47,15 @@ const kt = { class: "cl-overflow-hidden" }, $t = /* @__PURE__ */ B({
|
|
|
47
47
|
}
|
|
48
48
|
return (a, d) => (p(), v(J, null, [
|
|
49
49
|
f("div", {
|
|
50
|
-
class:
|
|
50
|
+
class: L(["cl-border-b cl-border-grey-1 cl-relative", {
|
|
51
51
|
"cl-bg-grey-0": a.disabled,
|
|
52
52
|
"cl-cursor-pointer": !a.disabled
|
|
53
53
|
}]),
|
|
54
54
|
onClick: n
|
|
55
55
|
}, [
|
|
56
56
|
f("div", Ct, [
|
|
57
|
-
D(g(
|
|
58
|
-
class:
|
|
57
|
+
D(g(G), {
|
|
58
|
+
class: L(["cl-duration-300 cl-ease-in-out cl-text-grey-3 cl-transform-gpu cl-transition-transform", {
|
|
59
59
|
"cl-rotate-180": a.open
|
|
60
60
|
}]),
|
|
61
61
|
icon: "ph:caret-down-bold",
|
|
@@ -80,7 +80,7 @@ const kt = { class: "cl-overflow-hidden" }, $t = /* @__PURE__ */ B({
|
|
|
80
80
|
])
|
|
81
81
|
], 64));
|
|
82
82
|
}
|
|
83
|
-
}),
|
|
83
|
+
}), ye = (t, o) => {
|
|
84
84
|
const l = t.__vccOpts || t;
|
|
85
85
|
for (const [e, n] of o)
|
|
86
86
|
l[e] = n;
|
|
@@ -91,18 +91,18 @@ function Et(t, o) {
|
|
|
91
91
|
M(t.$slots, "default")
|
|
92
92
|
]);
|
|
93
93
|
}
|
|
94
|
-
const At = /* @__PURE__ */
|
|
94
|
+
const At = /* @__PURE__ */ ye(Ot, [["render", Et]]), _e = N([]);
|
|
95
95
|
function wl(t) {
|
|
96
96
|
const o = {
|
|
97
97
|
id: st(),
|
|
98
98
|
...t
|
|
99
99
|
};
|
|
100
|
-
_e.value.push(o), setTimeout(() =>
|
|
100
|
+
_e.value.push(o), setTimeout(() => Fl(o), t.duration);
|
|
101
101
|
}
|
|
102
|
-
function
|
|
102
|
+
function Fl(t) {
|
|
103
103
|
_e.value = _e.value.filter((o) => o.id !== t.id);
|
|
104
104
|
}
|
|
105
|
-
const Vt = ["onClick"], Nt = { class: "cl-flex-1 cl-select-none cl-text-ellipsis cl-w-64" },
|
|
105
|
+
const Vt = ["onClick"], Nt = { class: "cl-flex-1 cl-select-none cl-text-ellipsis cl-w-64" }, Ll = /* @__PURE__ */ B({
|
|
106
106
|
inheritAttrs: !1,
|
|
107
107
|
__name: "cl-ui-notification",
|
|
108
108
|
props: {
|
|
@@ -112,7 +112,7 @@ const Vt = ["onClick"], Nt = { class: "cl-flex-1 cl-select-none cl-text-ellipsis
|
|
|
112
112
|
setup(t) {
|
|
113
113
|
return (o, l) => (p(), H(rl, { to: o.container }, [
|
|
114
114
|
f("div", {
|
|
115
|
-
class:
|
|
115
|
+
class: L(["cl-fixed cl-w-80 cl-z-50", {
|
|
116
116
|
"cl-top-5 cl-left-5": o.position === "top-left",
|
|
117
117
|
"cl-top-5 cl-left-1/2": o.position === "top-centre",
|
|
118
118
|
"cl-top-5 cl-right-5": o.position === "top-right",
|
|
@@ -130,10 +130,10 @@ const Vt = ["onClick"], Nt = { class: "cl-flex-1 cl-select-none cl-text-ellipsis
|
|
|
130
130
|
"cl-bg-danger-default": e.colour === "danger",
|
|
131
131
|
"cl-bg-warning-default": e.colour === "warning"
|
|
132
132
|
}],
|
|
133
|
-
onClick: (a) => g(
|
|
133
|
+
onClick: (a) => g(Fl)(e)
|
|
134
134
|
}), [
|
|
135
135
|
f("span", Nt, I(e.message), 1),
|
|
136
|
-
D(g(
|
|
136
|
+
D(g(G), {
|
|
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,
|
|
@@ -150,22 +150,22 @@ const Vt = ["onClick"], Nt = { class: "cl-flex-1 cl-select-none cl-text-ellipsis
|
|
|
150
150
|
},
|
|
151
151
|
setup(t) {
|
|
152
152
|
return (o, l) => (p(), v(J, null, [
|
|
153
|
-
D(
|
|
154
|
-
class:
|
|
153
|
+
D(Ll, {
|
|
154
|
+
class: L({
|
|
155
155
|
"first:cl-mt-[4.25rem]": o.$slots.header
|
|
156
156
|
})
|
|
157
157
|
}, null, 8, ["class"]),
|
|
158
158
|
f("div", It, [
|
|
159
159
|
M(o.$slots, "header"),
|
|
160
160
|
f("div", {
|
|
161
|
-
class:
|
|
161
|
+
class: L(["cl-content-start cl-flex cl-flex-nowrap cl-h-dscreen cl-items-stretch cl-max-h-full cl-relative cl-w-full xl:cl-max-h-screen", {
|
|
162
162
|
"cl-pt-20": o.$slots.header
|
|
163
163
|
}])
|
|
164
164
|
}, [
|
|
165
165
|
M(o.$slots, "navigation"),
|
|
166
166
|
f("div", {
|
|
167
167
|
id: "cl-ui-app-container",
|
|
168
|
-
class:
|
|
168
|
+
class: L(["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": o.removePadding,
|
|
170
170
|
"lg:cl-pb-8 md:cl-px-8 cl-px-2 md:cl-pt-8 cl-pt-2": !o.removePadding
|
|
171
171
|
}])
|
|
@@ -180,7 +180,7 @@ const Vt = ["onClick"], Nt = { class: "cl-flex-1 cl-select-none cl-text-ellipsis
|
|
|
180
180
|
function zt(t, o) {
|
|
181
181
|
return p(), v("div", Ut);
|
|
182
182
|
}
|
|
183
|
-
const Xe = /* @__PURE__ */
|
|
183
|
+
const Xe = /* @__PURE__ */ ye(Mt, [["render", zt], ["__scopeId", "data-v-a21dc5d2"]]), Ft = ["disabled"], Ce = /* @__PURE__ */ B({
|
|
184
184
|
inheritAttrs: !1,
|
|
185
185
|
__name: "cl-ui-button",
|
|
186
186
|
props: {
|
|
@@ -217,12 +217,12 @@ const Xe = /* @__PURE__ */ he(Mt, [["render", zt], ["__scopeId", "data-v-a21dc5d
|
|
|
217
217
|
disabled: e.disabled
|
|
218
218
|
}), [
|
|
219
219
|
M(e.$slots, "default")
|
|
220
|
-
], 16,
|
|
220
|
+
], 16, Ft), [
|
|
221
221
|
[te, !e.loading]
|
|
222
222
|
])
|
|
223
223
|
], 64));
|
|
224
224
|
}
|
|
225
|
-
}),
|
|
225
|
+
}), Lt = [
|
|
226
226
|
"default",
|
|
227
227
|
"primary",
|
|
228
228
|
"secondary",
|
|
@@ -241,16 +241,16 @@ const Xe = /* @__PURE__ */ he(Mt, [["render", zt], ["__scopeId", "data-v-a21dc5d
|
|
|
241
241
|
},
|
|
242
242
|
setup(t) {
|
|
243
243
|
return (o, l) => (p(), v("div", {
|
|
244
|
-
class:
|
|
244
|
+
class: L(["cl-border cl-border-transparent cl-overflow-hidden cl-relative cl-rounded-md cl-shadow-lg cl-transition-all", {
|
|
245
245
|
"cl-cursor-pointer hover:cl-shadow-xl hover:cl-border-grey-0": o.hover
|
|
246
246
|
}])
|
|
247
247
|
}, [
|
|
248
248
|
o.$slots.image ? (p(), v("div", Bt, [
|
|
249
249
|
M(o.$slots, "image")
|
|
250
|
-
])) :
|
|
250
|
+
])) : F("", !0),
|
|
251
251
|
o.$slots.title ? (p(), v("div", {
|
|
252
252
|
key: 1,
|
|
253
|
-
class:
|
|
253
|
+
class: L(["cl-border-grey-2 cl-font-normal", {
|
|
254
254
|
"cl-p-2 cl-text-2xl cl-leading-8": o.size === "small",
|
|
255
255
|
"cl-p-4 cl-text-3xl cl-leading-9": o.size === "medium",
|
|
256
256
|
"cl-p-6 cl-text-4xl cl-leading-10": o.size === "large",
|
|
@@ -258,9 +258,9 @@ const Xe = /* @__PURE__ */ he(Mt, [["render", zt], ["__scopeId", "data-v-a21dc5d
|
|
|
258
258
|
}])
|
|
259
259
|
}, [
|
|
260
260
|
M(o.$slots, "title")
|
|
261
|
-
], 2)) :
|
|
261
|
+
], 2)) : F("", !0),
|
|
262
262
|
f("div", {
|
|
263
|
-
class:
|
|
263
|
+
class: L(["cl-border-grey-2", {
|
|
264
264
|
"cl-p-2": o.size === "small",
|
|
265
265
|
"cl-p-4": o.size === "medium",
|
|
266
266
|
"cl-p-6": o.size === "large",
|
|
@@ -271,14 +271,14 @@ const Xe = /* @__PURE__ */ he(Mt, [["render", zt], ["__scopeId", "data-v-a21dc5d
|
|
|
271
271
|
], 2),
|
|
272
272
|
o.$slots.footer ? (p(), v("div", {
|
|
273
273
|
key: 2,
|
|
274
|
-
class:
|
|
274
|
+
class: L(["cl-border-grey-2 cl-border-t", {
|
|
275
275
|
"cl-p-2": o.size === "small",
|
|
276
276
|
"cl-p-4": o.size === "medium",
|
|
277
277
|
"cl-p-6": o.size === "large"
|
|
278
278
|
}])
|
|
279
279
|
}, [
|
|
280
280
|
M(o.$slots, "footer")
|
|
281
|
-
], 2)) :
|
|
281
|
+
], 2)) : F("", !0)
|
|
282
282
|
], 2));
|
|
283
283
|
}
|
|
284
284
|
}), Ht = [
|
|
@@ -307,8 +307,8 @@ const Xe = /* @__PURE__ */ he(Mt, [["render", zt], ["__scopeId", "data-v-a21dc5d
|
|
|
307
307
|
f("div", Gt, [
|
|
308
308
|
e.$slots.label ? (p(), v("span", Kt, [
|
|
309
309
|
M(e.$slots, "label")
|
|
310
|
-
])) :
|
|
311
|
-
e.showRequiredAsterisk ? (p(), v("span", Qt, "*")) :
|
|
310
|
+
])) : F("", !0),
|
|
311
|
+
e.showRequiredAsterisk ? (p(), v("span", Qt, "*")) : F("", !0)
|
|
312
312
|
]),
|
|
313
313
|
f("div", _t, [
|
|
314
314
|
M(e.$slots, "default")
|
|
@@ -321,7 +321,7 @@ const Xe = /* @__PURE__ */ he(Mt, [["render", zt], ["__scopeId", "data-v-a21dc5d
|
|
|
321
321
|
class: "cl-bg-danger-light cl-px-2 cl-rounded-md cl-text-center cl-text-danger-default cl-text-xs cl-w-full cl-whitespace-pre-line"
|
|
322
322
|
}, I(a), 1))), 128))
|
|
323
323
|
])
|
|
324
|
-
])) :
|
|
324
|
+
])) : F("", !0)
|
|
325
325
|
]));
|
|
326
326
|
}
|
|
327
327
|
}), Jt = ["type", "maxlength", "disabled", "placeholder"], Ve = /* @__PURE__ */ B({
|
|
@@ -469,7 +469,7 @@ const eo = /* @__PURE__ */ f("div", { tabindex: "0" }, null, -1), lo = {
|
|
|
469
469
|
}]
|
|
470
470
|
}), [
|
|
471
471
|
Q(f("div", {
|
|
472
|
-
class:
|
|
472
|
+
class: L(["cl-absolute cl-cursor-pointer cl-right-4 cl-top-4 cl-transition-colors cl-w-3", {
|
|
473
473
|
"cl-text-white hover:cl-text-off-white": i.headerColour === "secondary",
|
|
474
474
|
"cl-text-secondary hover:cl-text-off-white": i.headerColour === "primary",
|
|
475
475
|
"cl-text-black hover:cl-text-grey-7": i.headerColour === "white"
|
|
@@ -478,18 +478,18 @@ const eo = /* @__PURE__ */ f("div", { tabindex: "0" }, null, -1), lo = {
|
|
|
478
478
|
onKeypress: be(u, ["enter"]),
|
|
479
479
|
onClick: u
|
|
480
480
|
}, [
|
|
481
|
-
D(g(
|
|
481
|
+
D(g(G), { icon: "ph:x" })
|
|
482
482
|
], 34), [
|
|
483
483
|
[te, !i.preventClose]
|
|
484
484
|
]),
|
|
485
485
|
f("div", {
|
|
486
|
-
class:
|
|
486
|
+
class: L(["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", {
|
|
487
487
|
"cl-bg-secondary-default cl-text-white": i.headerColour === "secondary",
|
|
488
488
|
"cl-bg-primary-default cl-text-secondary": i.headerColour === "primary"
|
|
489
489
|
}])
|
|
490
490
|
}, [
|
|
491
491
|
M(i.$slots, "title"),
|
|
492
|
-
i.headerColour === "white" ? (p(), v("hr", lo)) :
|
|
492
|
+
i.headerColour === "white" ? (p(), v("hr", lo)) : F("", !0)
|
|
493
493
|
], 2),
|
|
494
494
|
f("div", to, [
|
|
495
495
|
M(i.$slots, "default", fe(ge({ close: u })))
|
|
@@ -518,9 +518,9 @@ const eo = /* @__PURE__ */ f("div", { tabindex: "0" }, null, -1), lo = {
|
|
|
518
518
|
emits: ["clear-object"],
|
|
519
519
|
setup(t) {
|
|
520
520
|
return (o, l) => (p(), v("div", oo, [
|
|
521
|
-
o.additionalText !== "" ? (p(), v("div", ao, I(o.additionalText), 1)) :
|
|
521
|
+
o.additionalText !== "" ? (p(), v("div", ao, I(o.additionalText), 1)) : F("", !0),
|
|
522
522
|
f("div", {
|
|
523
|
-
class:
|
|
523
|
+
class: L({
|
|
524
524
|
"cl-w-1/2": o.additionalText !== "",
|
|
525
525
|
"cl-w-full": o.additionalText === ""
|
|
526
526
|
})
|
|
@@ -529,7 +529,7 @@ const eo = /* @__PURE__ */ f("div", { tabindex: "0" }, null, -1), lo = {
|
|
|
529
529
|
class: "cl-cursor-pointer cl-float-right",
|
|
530
530
|
onMousedown: l[0] || (l[0] = (e) => o.$emit("clear-object"))
|
|
531
531
|
}, [
|
|
532
|
-
D(g(
|
|
532
|
+
D(g(G), {
|
|
533
533
|
class: "cl-mt-1 cl-transition-colors hover:cl-text-link-default",
|
|
534
534
|
icon: "ph:x"
|
|
535
535
|
})
|
|
@@ -572,7 +572,7 @@ const eo = /* @__PURE__ */ f("div", { tabindex: "0" }, null, -1), lo = {
|
|
|
572
572
|
return ae(() => l.selectedIndex, () => i()), (c, s) => {
|
|
573
573
|
var m, h;
|
|
574
574
|
return p(), v("div", {
|
|
575
|
-
class:
|
|
575
|
+
class: L(["cl-cursor-pointer cl-duration-75 cl-flex cl-p-1 cl-text-left cl-transition-colors", {
|
|
576
576
|
"cl-bg-white": d.value === !1,
|
|
577
577
|
"cl-bg-link-light cl-text-white cl-opacity-90": d.value && c.isCreateNewOption === !1,
|
|
578
578
|
"cl-bg-primary-default cl-text-black cl-opacity-90": d.value && c.isCreateNewOption
|
|
@@ -581,15 +581,15 @@ const eo = /* @__PURE__ */ f("div", { tabindex: "0" }, null, -1), lo = {
|
|
|
581
581
|
onMousemove: s[0] || (s[0] = (b) => r(!0)),
|
|
582
582
|
onMouseleave: s[1] || (s[1] = (b) => r(!1))
|
|
583
583
|
}, [
|
|
584
|
-
c.option !== null && ((m = c.option) == null ? void 0 : m.parentId) !== 0 && ((h = c.option) == null ? void 0 : h.parentId) !== void 0 ? (p(), v("div", no, I(a.value), 1)) :
|
|
584
|
+
c.option !== null && ((m = c.option) == null ? void 0 : m.parentId) !== 0 && ((h = c.option) == null ? void 0 : h.parentId) !== void 0 ? (p(), v("div", no, I(a.value), 1)) : F("", !0),
|
|
585
585
|
f("div", {
|
|
586
|
-
class:
|
|
586
|
+
class: L({
|
|
587
587
|
"cl-w-1/2": a.value !== "",
|
|
588
588
|
"cl-w-full": a.value === ""
|
|
589
589
|
})
|
|
590
590
|
}, I(n.value), 3),
|
|
591
591
|
Q(f("div", ro, [
|
|
592
|
-
D(g(
|
|
592
|
+
D(g(G), {
|
|
593
593
|
class: "cl-transition-colors",
|
|
594
594
|
icon: "ph:plus"
|
|
595
595
|
})
|
|
@@ -618,7 +618,7 @@ const eo = /* @__PURE__ */ f("div", { tabindex: "0" }, null, -1), lo = {
|
|
|
618
618
|
},
|
|
619
619
|
emits: ["clear-object", "create-object", "select-object", "search", "hide-dropdown"],
|
|
620
620
|
setup(t, { emit: o }) {
|
|
621
|
-
const l = t, e = o, { t: n } =
|
|
621
|
+
const l = t, e = o, { t: n } = ce(), a = N(""), d = N(!1), u = N(-1), r = S(() => d.value ? -1 : 0), i = N();
|
|
622
622
|
function c(E) {
|
|
623
623
|
(E === void 0 || E.code && E.code.startsWith("Arrow") === !1 && E.code.startsWith("Control") === !1 && E.code.startsWith("Shift") === !1 && E.code.startsWith("Tab") === !1 && E.code !== "Enter") && (e("search", a.value), u.value = -2);
|
|
624
624
|
}
|
|
@@ -637,16 +637,16 @@ const eo = /* @__PURE__ */ f("div", { tabindex: "0" }, null, -1), lo = {
|
|
|
637
637
|
function $(E) {
|
|
638
638
|
u.value > E ? u.value-- : u.value = l.results.length - 1, U();
|
|
639
639
|
}
|
|
640
|
-
function
|
|
640
|
+
function q() {
|
|
641
641
|
u.value >= 0 && l.results !== void 0 ? s(l.results[u.value].id) : u.value === -1 && m();
|
|
642
642
|
}
|
|
643
643
|
function C(E) {
|
|
644
644
|
if (E.key === "Tab" && E.shiftKey === !0) {
|
|
645
645
|
const x = document.getElementsByTagName("input");
|
|
646
|
-
let
|
|
646
|
+
let ne = -1;
|
|
647
647
|
for (let w = 0; w < x.length; w++)
|
|
648
|
-
x[w] === E.target && (
|
|
649
|
-
|
|
648
|
+
x[w] === E.target && (ne = w - 1);
|
|
649
|
+
ne >= 0 && (x[ne].focus(), h());
|
|
650
650
|
}
|
|
651
651
|
}
|
|
652
652
|
function U() {
|
|
@@ -673,22 +673,22 @@ const eo = /* @__PURE__ */ f("div", { tabindex: "0" }, null, -1), lo = {
|
|
|
673
673
|
var E;
|
|
674
674
|
return (E = i.value) == null ? void 0 : E.removeEventListener("keydown", C);
|
|
675
675
|
}), (E, x) => {
|
|
676
|
-
var
|
|
676
|
+
var ne;
|
|
677
677
|
return p(), v("div", {
|
|
678
678
|
ref_key: "container",
|
|
679
679
|
ref: i,
|
|
680
|
-
class:
|
|
680
|
+
class: L(["cl-absolute cl-bg-white cl-border cl-border-collapse cl-border-grey-0 cl-h-52 cl-mt-2 cl-overflow-y-auto cl-overscroll-y-none cl-rounded cl-text-sm cl-w-full cl-z-20", {
|
|
681
681
|
"cl-overflow-y-hidden": E.loading
|
|
682
682
|
}]),
|
|
683
683
|
onKeydown: [
|
|
684
684
|
x[2] || (x[2] = be(oe((w) => $(r.value), ["prevent", "stop"]), ["up"])),
|
|
685
685
|
x[3] || (x[3] = be(oe((w) => b(r.value), ["prevent", "stop"]), ["down"]))
|
|
686
686
|
],
|
|
687
|
-
onKeyup: be(oe(
|
|
687
|
+
onKeyup: be(oe(q, ["prevent", "stop"]), ["enter"])
|
|
688
688
|
}, [
|
|
689
689
|
E.loading ? (p(), v("div", io, [
|
|
690
690
|
D(Xe)
|
|
691
|
-
])) :
|
|
691
|
+
])) : F("", !0),
|
|
692
692
|
f("div", co, [
|
|
693
693
|
f("div", uo, [
|
|
694
694
|
D(Ve, {
|
|
@@ -713,22 +713,22 @@ const eo = /* @__PURE__ */ f("div", { tabindex: "0" }, null, -1), lo = {
|
|
|
713
713
|
"show-clear-button": E.canClearSelectedObject,
|
|
714
714
|
text: E.currentObjectName,
|
|
715
715
|
onClearObject: x[1] || (x[1] = (w) => E.$emit("clear-object"))
|
|
716
|
-
}, null, 8, ["show-clear-button", "text"])) :
|
|
716
|
+
}, null, 8, ["show-clear-button", "text"])) : F("", !0),
|
|
717
717
|
E.objectParentType !== "" && E.results !== void 0 && E.results.length > 0 && E.errorMessage === "" ? (p(), H(Ge, {
|
|
718
718
|
key: 2,
|
|
719
719
|
text: E.objectType,
|
|
720
720
|
"additional-text": E.objectParentType,
|
|
721
721
|
class: "cl-bg-grey-2 cl-mt-1"
|
|
722
|
-
}, null, 8, ["text", "additional-text"])) :
|
|
723
|
-
E.results !== null && ((
|
|
722
|
+
}, null, 8, ["text", "additional-text"])) : F("", !0),
|
|
723
|
+
E.results !== null && ((ne = E.results) == null ? void 0 : ne.length) === 0 && a.value.trim() !== "" && E.canCreateNewObject === !1 && E.errorMessage === "" ? (p(), H(Ge, {
|
|
724
724
|
key: 3,
|
|
725
725
|
text: g(n)("comboBox.noResults", { value: a.value })
|
|
726
|
-
}, null, 8, ["text"])) :
|
|
726
|
+
}, null, 8, ["text"])) : F("", !0),
|
|
727
727
|
E.errorMessage !== "" ? (p(), H(Ge, {
|
|
728
728
|
key: 4,
|
|
729
729
|
class: "!cl-bg-danger-light cl-border-danger-light cl-rounded cl-text-danger-dark",
|
|
730
730
|
text: g(n)("comboBox.errorMessage", { error: E.errorMessage })
|
|
731
|
-
}, null, 8, ["text"])) :
|
|
731
|
+
}, null, 8, ["text"])) : F("", !0),
|
|
732
732
|
d.value ? (p(), H(kl, {
|
|
733
733
|
key: 5,
|
|
734
734
|
"is-create-new-option": !0,
|
|
@@ -738,7 +738,7 @@ const eo = /* @__PURE__ */ f("div", { tabindex: "0" }, null, -1), lo = {
|
|
|
738
738
|
class: "cl-px-2",
|
|
739
739
|
onCreateObject: m,
|
|
740
740
|
onOptionHighlighted: P
|
|
741
|
-
}, null, 8, ["text", "selected-index"])) :
|
|
741
|
+
}, null, 8, ["text", "selected-index"])) : F("", !0),
|
|
742
742
|
E.errorMessage === "" && E.results !== null ? (p(), v("div", fo, [
|
|
743
743
|
(p(!0), v(J, null, ue(E.results, (w, V) => (p(), H(kl, {
|
|
744
744
|
key: V,
|
|
@@ -749,7 +749,7 @@ const eo = /* @__PURE__ */ f("div", { tabindex: "0" }, null, -1), lo = {
|
|
|
749
749
|
onSelectObject: s,
|
|
750
750
|
onOptionHighlighted: P
|
|
751
751
|
}, null, 8, ["option", "index", "selected-index"]))), 128))
|
|
752
|
-
])) :
|
|
752
|
+
])) : F("", !0)
|
|
753
753
|
], 42, so);
|
|
754
754
|
};
|
|
755
755
|
}
|
|
@@ -775,122 +775,122 @@ const eo = /* @__PURE__ */ f("div", { tabindex: "0" }, null, -1), lo = {
|
|
|
775
775
|
},
|
|
776
776
|
emits: ["focus", "search", "search-parent", "create-object", "create-parent-object", "update:current-object"],
|
|
777
777
|
setup(t, { expose: o, emit: l }) {
|
|
778
|
-
const e = t, n = l, a = S(() => e.placeholderText ? e.placeholderText : u("comboBox.emptyHintText", { object: e.objectType })), d = S(() => e.searchHint ? e.searchHint : u("comboBox.searchHint", { object: e.objectType })), { t: u } =
|
|
778
|
+
const e = t, n = l, a = S(() => e.placeholderText ? e.placeholderText : u("comboBox.emptyHintText", { object: e.objectType })), d = S(() => e.searchHint ? e.searchHint : u("comboBox.searchHint", { object: e.objectType })), { t: u } = ce(), r = N(!1), i = S({
|
|
779
779
|
get: () => e.currentObject,
|
|
780
|
-
set: (
|
|
781
|
-
}), c = N(null), s = S(() => z()), m = N(""), h = N(""), b = N(), $ = N(!0),
|
|
782
|
-
function C(
|
|
780
|
+
set: (O) => n("update:current-object", O)
|
|
781
|
+
}), c = N(null), s = S(() => z()), m = N(""), h = N(""), b = N(), $ = N(!0), q = N(!1);
|
|
782
|
+
function C(O) {
|
|
783
783
|
var Y;
|
|
784
|
-
const
|
|
785
|
-
|
|
784
|
+
const Z = ((Y = re.value) == null ? void 0 : Y.getBoundingClientRect().top) || 0;
|
|
785
|
+
q.value = window.innerHeight - Z < 280, e.disabled || (typeof O < "u" ? r.value = O : r.value = !r.value);
|
|
786
786
|
}
|
|
787
|
-
function U(
|
|
788
|
-
m.value =
|
|
787
|
+
function U(O) {
|
|
788
|
+
m.value = O, n("search", O);
|
|
789
789
|
}
|
|
790
|
-
function T(
|
|
791
|
-
h.value =
|
|
790
|
+
function T(O) {
|
|
791
|
+
h.value = O, n("search-parent", O);
|
|
792
792
|
}
|
|
793
793
|
function P() {
|
|
794
794
|
i.value = null, C(!1);
|
|
795
795
|
}
|
|
796
|
-
function _(
|
|
797
|
-
const
|
|
798
|
-
i.value =
|
|
796
|
+
function _(O) {
|
|
797
|
+
const Z = E(O ?? 0);
|
|
798
|
+
i.value = Z, C(!1);
|
|
799
799
|
}
|
|
800
|
-
function E(
|
|
801
|
-
let
|
|
800
|
+
function E(O) {
|
|
801
|
+
let Z = null;
|
|
802
802
|
if (e.results !== null) {
|
|
803
803
|
for (let Y = 0; Y < e.results.length; Y++)
|
|
804
|
-
if (e.results[Y].id ===
|
|
805
|
-
|
|
804
|
+
if (e.results[Y].id === O) {
|
|
805
|
+
Z = e.results[Y];
|
|
806
806
|
break;
|
|
807
807
|
}
|
|
808
808
|
}
|
|
809
|
-
return
|
|
809
|
+
return Z;
|
|
810
810
|
}
|
|
811
811
|
function x() {
|
|
812
|
-
var
|
|
812
|
+
var O;
|
|
813
813
|
b.value = {
|
|
814
814
|
name: m.value,
|
|
815
|
-
parentId: ((
|
|
815
|
+
parentId: ((O = c.value) == null ? void 0 : O.id) ?? 0
|
|
816
816
|
}, n("create-object", b.value);
|
|
817
817
|
}
|
|
818
|
-
function
|
|
818
|
+
function ne() {
|
|
819
819
|
b.value = {
|
|
820
820
|
name: h.value,
|
|
821
821
|
parentId: 0
|
|
822
822
|
}, n("create-parent-object", b.value);
|
|
823
823
|
}
|
|
824
824
|
function w() {
|
|
825
|
-
var
|
|
826
|
-
(
|
|
825
|
+
var O, Z;
|
|
826
|
+
(O = e.objectCreatedResponse) != null && O.error ? wl({
|
|
827
827
|
message: u("comboBox.createFailed", {
|
|
828
828
|
name: m.value,
|
|
829
829
|
error: e.objectCreatedResponse.error
|
|
830
830
|
}),
|
|
831
831
|
colour: "danger",
|
|
832
832
|
duration: 1e4
|
|
833
|
-
}) : (
|
|
833
|
+
}) : (Z = e.objectCreatedResponse) != null && Z.id && k();
|
|
834
834
|
}
|
|
835
835
|
function V() {
|
|
836
|
-
var
|
|
837
|
-
(
|
|
836
|
+
var O;
|
|
837
|
+
(O = e.parentObjectCreatedResponse) != null && O.id && (c.value = {
|
|
838
838
|
id: e.parentObjectCreatedResponse.id,
|
|
839
839
|
name: e.parentObjectCreatedResponse.name ?? ""
|
|
840
840
|
});
|
|
841
841
|
}
|
|
842
842
|
function k() {
|
|
843
|
-
var
|
|
843
|
+
var Z, Y, se, ie, he;
|
|
844
844
|
wl({
|
|
845
845
|
message: u("comboBox.createSuccessful", {
|
|
846
846
|
object: e.objectType,
|
|
847
|
-
name: ((
|
|
847
|
+
name: ((Z = e.objectCreatedResponse) == null ? void 0 : Z.name) ?? ""
|
|
848
848
|
}),
|
|
849
849
|
colour: "primary",
|
|
850
850
|
duration: 1e4
|
|
851
851
|
});
|
|
852
|
-
let
|
|
853
|
-
c.value && c.value.id === ((Y = e.objectCreatedResponse) == null ? void 0 : Y.parentId) && (
|
|
852
|
+
let O = "";
|
|
853
|
+
c.value && c.value.id === ((Y = e.objectCreatedResponse) == null ? void 0 : Y.parentId) && (O = c.value.name), i.value = {
|
|
854
854
|
id: ((se = e.objectCreatedResponse) == null ? void 0 : se.id) ?? 0,
|
|
855
|
-
name: ((
|
|
856
|
-
parentId: ((
|
|
857
|
-
parentName:
|
|
855
|
+
name: ((ie = e.objectCreatedResponse) == null ? void 0 : ie.name) ?? "",
|
|
856
|
+
parentId: ((he = e.objectCreatedResponse) == null ? void 0 : he.parentId) ?? 0,
|
|
857
|
+
parentName: O
|
|
858
858
|
};
|
|
859
859
|
}
|
|
860
860
|
function z() {
|
|
861
|
-
let
|
|
862
|
-
return i.value && (i.value.parentName ?
|
|
861
|
+
let O = "";
|
|
862
|
+
return i.value && (i.value.parentName ? O = i.value.parentName + "; " + i.value.name : O = i.value.name), O;
|
|
863
863
|
}
|
|
864
864
|
function A() {
|
|
865
|
-
let
|
|
866
|
-
m.value === "" && (
|
|
865
|
+
let O = !0;
|
|
866
|
+
m.value === "" && (O = !1), e.objectParentType !== "" && c.value === null && (O = !1), $.value = O;
|
|
867
867
|
}
|
|
868
868
|
ae(() => e.objectCreatedResponse, () => w()), ae(() => e.parentObjectCreatedResponse, () => V()), ae(() => m.value, () => A()), ae(() => c.value, () => A());
|
|
869
|
-
const
|
|
870
|
-
return il(
|
|
869
|
+
const re = N();
|
|
870
|
+
return il(re, () => r.value ? C(!1) : ""), o({
|
|
871
871
|
focus() {
|
|
872
872
|
C(), n("focus");
|
|
873
873
|
}
|
|
874
|
-
}), (
|
|
874
|
+
}), (O, Z) => {
|
|
875
875
|
const Y = Ae("cl-ui-combo-box", !0);
|
|
876
876
|
return p(), v("div", {
|
|
877
877
|
ref_key: "outsideRef",
|
|
878
|
-
ref:
|
|
878
|
+
ref: re,
|
|
879
879
|
class: "cl-relative"
|
|
880
880
|
}, [
|
|
881
881
|
f("div", go, [
|
|
882
882
|
f("div", vo, [
|
|
883
883
|
D(Ve, {
|
|
884
|
-
id: `cl-ui-combo-box-input-${
|
|
884
|
+
id: `cl-ui-combo-box-input-${O.objectType}`,
|
|
885
885
|
modelValue: s.value,
|
|
886
|
-
"onUpdate:modelValue":
|
|
887
|
-
class:
|
|
888
|
-
"cl-cursor-pointer":
|
|
886
|
+
"onUpdate:modelValue": Z[0] || (Z[0] = (se) => s.value = se),
|
|
887
|
+
class: L(["cl-box-border cl-font-light cl-mb-0 cl-p-2 cl-placeholder-grey-3 cl-rounded-r-none cl-text-sm", {
|
|
888
|
+
"cl-cursor-pointer": O.disabled === !1
|
|
889
889
|
}]),
|
|
890
890
|
placeholder: a.value,
|
|
891
|
-
disabled:
|
|
892
|
-
onFocus:
|
|
893
|
-
C(),
|
|
891
|
+
disabled: O.disabled,
|
|
892
|
+
onFocus: Z[1] || (Z[1] = (se) => {
|
|
893
|
+
C(), O.$emit("focus");
|
|
894
894
|
})
|
|
895
895
|
}, {
|
|
896
896
|
default: R(() => [
|
|
@@ -902,37 +902,37 @@ const eo = /* @__PURE__ */ f("div", { tabindex: "0" }, null, -1), lo = {
|
|
|
902
902
|
Q(f("div", ho, [
|
|
903
903
|
f("div", yo, [
|
|
904
904
|
pe(I(g(u)("comboBox.required")) + " ", 1),
|
|
905
|
-
D(g(
|
|
905
|
+
D(g(G), {
|
|
906
906
|
class: "cl-ml-1 cl-mt-1",
|
|
907
907
|
icon: "ph:warning"
|
|
908
908
|
})
|
|
909
909
|
])
|
|
910
910
|
], 512), [
|
|
911
|
-
[te,
|
|
911
|
+
[te, O.required && O.disabled === !1 && O.currentObject === null]
|
|
912
912
|
]),
|
|
913
913
|
r.value ? (p(), v("div", {
|
|
914
914
|
key: 1,
|
|
915
|
-
class:
|
|
916
|
-
"cl-cursor-default cl-bg-off-white":
|
|
917
|
-
"cl-cursor-pointer hover:cl-bg-link-light hover:cl-opacity-90 hover:cl-text-white cl-bg-white":
|
|
915
|
+
class: L(["cl-border cl-border-grey-2 cl-border-l-0 cl-float-right cl-rounded cl-rounded-l-none cl-text-grey-3 cl-transition-colors cl-w-[27px]", {
|
|
916
|
+
"cl-cursor-default cl-bg-off-white": O.disabled,
|
|
917
|
+
"cl-cursor-pointer hover:cl-bg-link-light hover:cl-opacity-90 hover:cl-text-white cl-bg-white": O.disabled === !1
|
|
918
918
|
}]),
|
|
919
|
-
disabled:
|
|
920
|
-
onClick:
|
|
919
|
+
disabled: O.disabled,
|
|
920
|
+
onClick: Z[3] || (Z[3] = (se) => C(!1))
|
|
921
921
|
}, [
|
|
922
|
-
D(g(
|
|
922
|
+
D(g(G), {
|
|
923
923
|
icon: "ph:caret-up-bold",
|
|
924
924
|
class: "cl-ml-[4px] cl-mt-[12px]"
|
|
925
925
|
})
|
|
926
926
|
], 10, ko)) : (p(), v("div", {
|
|
927
927
|
key: 0,
|
|
928
|
-
class:
|
|
929
|
-
"cl-cursor-default cl-bg-off-white":
|
|
930
|
-
"cl-cursor-pointer hover:cl-bg-link-light hover:cl-opacity-90 hover:cl-text-white cl-bg-white":
|
|
928
|
+
class: L(["cl-border cl-border-grey-2 cl-border-l-0 cl-float-right cl-rounded cl-rounded-l-none cl-text-grey-3 cl-transition-colors cl-w-[27px]", {
|
|
929
|
+
"cl-cursor-default cl-bg-off-white": O.disabled,
|
|
930
|
+
"cl-cursor-pointer hover:cl-bg-link-light hover:cl-opacity-90 hover:cl-text-white cl-bg-white": O.disabled === !1
|
|
931
931
|
}]),
|
|
932
|
-
disabled:
|
|
933
|
-
onClick:
|
|
932
|
+
disabled: O.disabled,
|
|
933
|
+
onClick: Z[2] || (Z[2] = (se) => C(!0))
|
|
934
934
|
}, [
|
|
935
|
-
D(g(
|
|
935
|
+
D(g(G), {
|
|
936
936
|
icon: "ph:caret-down-bold",
|
|
937
937
|
class: "cl-ml-[4px] cl-mt-[12px]"
|
|
938
938
|
})
|
|
@@ -940,35 +940,35 @@ const eo = /* @__PURE__ */ f("div", { tabindex: "0" }, null, -1), lo = {
|
|
|
940
940
|
]),
|
|
941
941
|
D(jl, { size: "small" }, {
|
|
942
942
|
title: R(() => [
|
|
943
|
-
pe(I(g(u)("comboBox.createTitle", { object:
|
|
943
|
+
pe(I(g(u)("comboBox.createTitle", { object: O.objectType })), 1)
|
|
944
944
|
]),
|
|
945
945
|
trigger: R(({ open: se }) => [
|
|
946
946
|
Q(D(mo, {
|
|
947
|
-
"can-create-new-object":
|
|
948
|
-
"can-clear-selected-object":
|
|
949
|
-
loading:
|
|
950
|
-
results:
|
|
951
|
-
"object-type":
|
|
952
|
-
"object-parent-type":
|
|
953
|
-
"error-message":
|
|
947
|
+
"can-create-new-object": O.canCreateNewObject,
|
|
948
|
+
"can-clear-selected-object": O.canClearSelectedObject,
|
|
949
|
+
loading: O.loading,
|
|
950
|
+
results: O.results,
|
|
951
|
+
"object-type": O.objectType,
|
|
952
|
+
"object-parent-type": O.objectParentType,
|
|
953
|
+
"error-message": O.errorMessage,
|
|
954
954
|
"current-object-name": s.value,
|
|
955
955
|
"is-visible": r.value,
|
|
956
|
-
class:
|
|
957
|
-
"cl-bottom-full":
|
|
956
|
+
class: L({
|
|
957
|
+
"cl-bottom-full": q.value
|
|
958
958
|
}),
|
|
959
959
|
"search-hint": d.value,
|
|
960
|
-
onCreateObject: () =>
|
|
960
|
+
onCreateObject: () => O.objectParentType === "" && O.skipObjectCreationModal === !0 ? x() : se(),
|
|
961
961
|
onSelectObject: _,
|
|
962
962
|
onClearObject: P,
|
|
963
963
|
onSearch: U,
|
|
964
|
-
onHideDropdown:
|
|
964
|
+
onHideDropdown: Z[4] || (Z[4] = (ie) => C(!1))
|
|
965
965
|
}, null, 8, ["can-create-new-object", "can-clear-selected-object", "loading", "results", "object-type", "object-parent-type", "error-message", "current-object-name", "is-visible", "class", "search-hint", "onCreateObject"]), [
|
|
966
966
|
[te, r.value]
|
|
967
967
|
])
|
|
968
968
|
]),
|
|
969
969
|
footer: R(({ close: se }) => [
|
|
970
970
|
f("div", Co, [
|
|
971
|
-
D(
|
|
971
|
+
D(Ce, {
|
|
972
972
|
class: "cl-mr-3",
|
|
973
973
|
colour: "default",
|
|
974
974
|
size: "small",
|
|
@@ -979,11 +979,11 @@ const eo = /* @__PURE__ */ f("div", { tabindex: "0" }, null, -1), lo = {
|
|
|
979
979
|
]),
|
|
980
980
|
_: 2
|
|
981
981
|
}, 1032, ["onClick"]),
|
|
982
|
-
D(
|
|
982
|
+
D(Ce, {
|
|
983
983
|
colour: "primary",
|
|
984
984
|
size: "small",
|
|
985
985
|
disabled: !$.value,
|
|
986
|
-
onClick: (
|
|
986
|
+
onClick: (ie) => {
|
|
987
987
|
x(), se();
|
|
988
988
|
}
|
|
989
989
|
}, {
|
|
@@ -996,24 +996,24 @@ const eo = /* @__PURE__ */ f("div", { tabindex: "0" }, null, -1), lo = {
|
|
|
996
996
|
]),
|
|
997
997
|
default: R(() => [
|
|
998
998
|
f("div", $o, [
|
|
999
|
-
|
|
999
|
+
O.objectParentType ? (p(), H(Y, {
|
|
1000
1000
|
key: 0,
|
|
1001
1001
|
"current-object": c.value,
|
|
1002
|
-
"onUpdate:currentObject":
|
|
1002
|
+
"onUpdate:currentObject": Z[5] || (Z[5] = (se) => c.value = se),
|
|
1003
1003
|
class: "cl-mt-3",
|
|
1004
|
-
results:
|
|
1005
|
-
loading:
|
|
1006
|
-
"object-type":
|
|
1007
|
-
"object-created-response":
|
|
1008
|
-
"can-create-new-object":
|
|
1009
|
-
"can-clear-selected-object":
|
|
1010
|
-
"error-message":
|
|
1004
|
+
results: O.parentResults,
|
|
1005
|
+
loading: O.loading,
|
|
1006
|
+
"object-type": O.objectParentType,
|
|
1007
|
+
"object-created-response": O.parentObjectCreatedResponse,
|
|
1008
|
+
"can-create-new-object": O.canCreateNewObject,
|
|
1009
|
+
"can-clear-selected-object": O.canClearSelectedObject,
|
|
1010
|
+
"error-message": O.errorMessage,
|
|
1011
1011
|
onSearch: T,
|
|
1012
|
-
onCreateObject:
|
|
1013
|
-
}, null, 8, ["current-object", "results", "loading", "object-type", "object-created-response", "can-create-new-object", "can-clear-selected-object", "error-message"])) :
|
|
1012
|
+
onCreateObject: ne
|
|
1013
|
+
}, null, 8, ["current-object", "results", "loading", "object-type", "object-created-response", "can-create-new-object", "can-clear-selected-object", "error-message"])) : F("", !0),
|
|
1014
1014
|
D(Ve, {
|
|
1015
1015
|
modelValue: m.value,
|
|
1016
|
-
"onUpdate:modelValue":
|
|
1016
|
+
"onUpdate:modelValue": Z[6] || (Z[6] = (se) => m.value = se),
|
|
1017
1017
|
class: "cl-box-border cl-font-light cl-mb-2 cl-p-2 cl-placeholder-grey-3 cl-text-sm"
|
|
1018
1018
|
}, {
|
|
1019
1019
|
default: R(() => [
|
|
@@ -1046,7 +1046,7 @@ function Io(t, o) {
|
|
|
1046
1046
|
return p(), v("div", Do, [
|
|
1047
1047
|
t.$slots.default ? (p(), v("div", Eo, [
|
|
1048
1048
|
M(t.$slots, "default")
|
|
1049
|
-
])) :
|
|
1049
|
+
])) : F("", !0),
|
|
1050
1050
|
t.$slots.left || t.$slots.right ? (p(), v("div", Ao, [
|
|
1051
1051
|
f("span", Vo, [
|
|
1052
1052
|
M(t.$slots, "left")
|
|
@@ -1054,10 +1054,10 @@ function Io(t, o) {
|
|
|
1054
1054
|
f("span", No, [
|
|
1055
1055
|
M(t.$slots, "right")
|
|
1056
1056
|
])
|
|
1057
|
-
])) :
|
|
1057
|
+
])) : F("", !0)
|
|
1058
1058
|
]);
|
|
1059
1059
|
}
|
|
1060
|
-
const Ro = /* @__PURE__ */
|
|
1060
|
+
const Ro = /* @__PURE__ */ ye(Oo, [["render", Io]]), Bl = Symbol();
|
|
1061
1061
|
function Ke(t) {
|
|
1062
1062
|
const o = t.type !== "slot" || t.slotType !== void 0 && t.field !== void 0, l = t.sortable ?? !0;
|
|
1063
1063
|
return o && l;
|
|
@@ -1072,7 +1072,7 @@ function Mo(t) {
|
|
|
1072
1072
|
function $l(t) {
|
|
1073
1073
|
return t.some((o) => cl(o));
|
|
1074
1074
|
}
|
|
1075
|
-
const Uo = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, zo = { class: "cl-gap-1 cl-grid cl-grid-cols-2 cl-justify-end cl-mb-2 lg:cl-flex lg:cl-gap-2" },
|
|
1075
|
+
const Uo = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, zo = { class: "cl-gap-1 cl-grid cl-grid-cols-2 cl-justify-end cl-mb-2 lg:cl-flex lg:cl-gap-2" }, Fo = { class: "cl-basis-0 cl-col-span-2 cl-flex-grow" }, Lo = /* @__PURE__ */ f("hr", { class: "cl-block cl-border-grey-3 cl-col-span-2 cl-my-4 lg:cl-hidden" }, null, -1), jo = {
|
|
1076
1076
|
key: 1,
|
|
1077
1077
|
class: "cl-hidden lg:cl-block"
|
|
1078
1078
|
}, Bo = { class: "cl-block lg:cl-hidden" }, Po = /* @__PURE__ */ B({
|
|
@@ -1087,20 +1087,20 @@ const Uo = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, zo = { class: "cl-gap-1
|
|
|
1087
1087
|
},
|
|
1088
1088
|
emits: ["update:edit-mode", "update:filterPanelOpen", "clear-filters"],
|
|
1089
1089
|
setup(t) {
|
|
1090
|
-
const o = t, { t: l } =
|
|
1090
|
+
const o = t, { t: l } = ce(), e = S(() => o.request.filters.some((a) => a.filterValue !== "")), n = sl("cl-ui-grid-id") ?? "cl-ui-grid-filter";
|
|
1091
1091
|
return (a, d) => (p(), v(J, null, [
|
|
1092
1092
|
f("div", Uo, [
|
|
1093
1093
|
f("strong", null, I(g(l)("grid.gridTools")), 1)
|
|
1094
1094
|
]),
|
|
1095
1095
|
f("div", zo, [
|
|
1096
|
-
f("div",
|
|
1096
|
+
f("div", Fo, [
|
|
1097
1097
|
M(a.$slots, "additional-grid-actions", fe(ge({
|
|
1098
1098
|
loading: a.loading,
|
|
1099
1099
|
editMode: a.editMode
|
|
1100
1100
|
})))
|
|
1101
1101
|
]),
|
|
1102
|
-
|
|
1103
|
-
a.columns.some((u) => u.editable) ? (p(), H(
|
|
1102
|
+
Lo,
|
|
1103
|
+
a.columns.some((u) => u.editable) ? (p(), H(Ce, {
|
|
1104
1104
|
key: 0,
|
|
1105
1105
|
size: "small",
|
|
1106
1106
|
colour: "default",
|
|
@@ -1115,13 +1115,13 @@ const Uo = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, zo = { class: "cl-gap-1
|
|
|
1115
1115
|
], 64))
|
|
1116
1116
|
]),
|
|
1117
1117
|
_: 1
|
|
1118
|
-
}, 8, ["disabled"])) :
|
|
1119
|
-
a.options.hideViewManager ?
|
|
1118
|
+
}, 8, ["disabled"])) : F("", !0),
|
|
1119
|
+
a.options.hideViewManager ? F("", !0) : (p(), v("div", jo, [
|
|
1120
1120
|
M(a.$slots, "view-manager")
|
|
1121
1121
|
])),
|
|
1122
1122
|
g($l)(a.columns) || g(Mo)(a.columns) ? (p(), v(J, { key: 2 }, [
|
|
1123
1123
|
f("div", Bo, [
|
|
1124
|
-
D(
|
|
1124
|
+
D(Ce, {
|
|
1125
1125
|
class: "cl-w-full",
|
|
1126
1126
|
size: "small",
|
|
1127
1127
|
disabled: a.loading,
|
|
@@ -1133,13 +1133,13 @@ const Uo = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, zo = { class: "cl-gap-1
|
|
|
1133
1133
|
_: 1
|
|
1134
1134
|
}, 8, ["disabled"])
|
|
1135
1135
|
]),
|
|
1136
|
-
g($l)(a.columns) ? (p(), H(
|
|
1136
|
+
g($l)(a.columns) ? (p(), H(Ce, {
|
|
1137
1137
|
key: 0,
|
|
1138
1138
|
id: `${g(n)}-clear-filters`,
|
|
1139
1139
|
size: "small",
|
|
1140
1140
|
colour: "danger",
|
|
1141
1141
|
disabled: !e.value || a.loading,
|
|
1142
|
-
class:
|
|
1142
|
+
class: L({
|
|
1143
1143
|
"cl-col-span-2": a.columns.some((u) => u.editable)
|
|
1144
1144
|
}),
|
|
1145
1145
|
onClick: d[2] || (d[2] = oe((u) => a.$emit("clear-filters"), ["prevent"]))
|
|
@@ -1148,8 +1148,8 @@ const Uo = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, zo = { class: "cl-gap-1
|
|
|
1148
1148
|
pe(I(g(l)("grid.clearFilters")), 1)
|
|
1149
1149
|
]),
|
|
1150
1150
|
_: 1
|
|
1151
|
-
}, 8, ["id", "disabled", "class"])) :
|
|
1152
|
-
], 64)) :
|
|
1151
|
+
}, 8, ["id", "disabled", "class"])) : F("", !0)
|
|
1152
|
+
], 64)) : F("", !0)
|
|
1153
1153
|
])
|
|
1154
1154
|
], 64));
|
|
1155
1155
|
}
|
|
@@ -1210,7 +1210,7 @@ const Uo = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, zo = { class: "cl-gap-1
|
|
|
1210
1210
|
} : void 0
|
|
1211
1211
|
]), 1032, ["show-required-asterisk", "errors"]));
|
|
1212
1212
|
}
|
|
1213
|
-
}), ul = /* @__PURE__ */
|
|
1213
|
+
}), ul = /* @__PURE__ */ ye(Wo, [["__scopeId", "data-v-d8bbd8db"]]);
|
|
1214
1214
|
var ee = /* @__PURE__ */ ((t) => (t.CURRENCY = "currency", t.PERCENTAGE = "percentage", t.INTEGER = "integer", t.DECIMAL = "decimal", t.MULTIPLIER = "multiplier", t))(ee || {}), de = /* @__PURE__ */ ((t) => (t.SHORT_DATE = "short-date", t.SHORT_DATETIME = "short-datetime", t.DATE = "date", t.DATETIME = "datetime", t.LONG_DATE = "long-date", t.LONG_DATETIME = "long-datetime", t.TIME = "time", t.MONTH_YEAR = "month-year", t))(de || {});
|
|
1215
1215
|
const Zo = {
|
|
1216
1216
|
"en-GB": {
|
|
@@ -1383,7 +1383,7 @@ const Zo = {
|
|
|
1383
1383
|
year: "numeric"
|
|
1384
1384
|
}
|
|
1385
1385
|
}
|
|
1386
|
-
},
|
|
1386
|
+
}, we = ht({
|
|
1387
1387
|
locale: "en-GB",
|
|
1388
1388
|
fallbackLocale: "en-GB",
|
|
1389
1389
|
messages: Zo,
|
|
@@ -1395,18 +1395,18 @@ const Zo = {
|
|
|
1395
1395
|
warnHtmlMessage: !1
|
|
1396
1396
|
});
|
|
1397
1397
|
function gi(t, o) {
|
|
1398
|
-
return
|
|
1398
|
+
return we.global.mergeLocaleMessage(t, o), Re();
|
|
1399
1399
|
}
|
|
1400
1400
|
function vi(t, o) {
|
|
1401
|
-
return
|
|
1401
|
+
return we.global.mergeNumberFormat(t, o), Re();
|
|
1402
1402
|
}
|
|
1403
1403
|
function bi(t, o) {
|
|
1404
|
-
return
|
|
1404
|
+
return we.global.mergeDateTimeFormat(t, o), Re();
|
|
1405
1405
|
}
|
|
1406
1406
|
function hi(t) {
|
|
1407
|
-
return
|
|
1407
|
+
return we.global.locale.value = t, Re();
|
|
1408
1408
|
}
|
|
1409
|
-
const { locale: Qo, getNumberFormat: _o } =
|
|
1409
|
+
const { locale: Qo, getNumberFormat: _o } = we.global, el = ee.DECIMAL;
|
|
1410
1410
|
function De(t) {
|
|
1411
1411
|
return Ee(t, ee.DECIMAL, { additionalOptions: {
|
|
1412
1412
|
minimumFractionDigits: 0,
|
|
@@ -1474,10 +1474,10 @@ function Cl(t, o, l) {
|
|
|
1474
1474
|
","
|
|
1475
1475
|
], d = Ne(n, 1, "currency", "unit"), u = Ne(n, 1, "percentSign"), r = Ne(n, 1, "plusSign"), i = Ne(n, -1, "minusSign"), c = Ne(n, -10000.11111, "literal", "unknown"), s = i.some((C) => t.startsWith(C) || t.endsWith(C)) || t.startsWith("(") && t.endsWith(")"), m = u.some((C) => t.startsWith(C) || t.endsWith(C)), h = (s ? -1 : 1) * (m ? 0.01 : 1);
|
|
1476
1476
|
let b = t;
|
|
1477
|
-
if (a.some((C) => t.includes(C)) &&
|
|
1477
|
+
if (a.some((C) => t.includes(C)) && q())
|
|
1478
1478
|
return NaN;
|
|
1479
1479
|
return b = Oe(b, a, "."), b = Oe(b, d, ""), b = Oe(b, u, ""), b = Oe(b, r, ""), b = Oe(b, i, ""), b = Oe(b, c, ""), +b * h;
|
|
1480
|
-
function
|
|
1480
|
+
function q() {
|
|
1481
1481
|
return a.some((C) => b.indexOf(C) !== b.lastIndexOf(C));
|
|
1482
1482
|
}
|
|
1483
1483
|
}
|
|
@@ -1546,7 +1546,7 @@ function Xo(t) {
|
|
|
1546
1546
|
function yi() {
|
|
1547
1547
|
return Xo;
|
|
1548
1548
|
}
|
|
1549
|
-
const { t:
|
|
1549
|
+
const { t: ke } = we.global;
|
|
1550
1550
|
function ea(t, o, l, e, n) {
|
|
1551
1551
|
return new Promise((a) => {
|
|
1552
1552
|
let d = {
|
|
@@ -1562,14 +1562,14 @@ function ea(t, o, l, e, n) {
|
|
|
1562
1562
|
case "tel":
|
|
1563
1563
|
case "text":
|
|
1564
1564
|
case "url":
|
|
1565
|
-
u = ((e == null ? void 0 : e.length) ?? 0) >= (Number(t) || 0), d =
|
|
1565
|
+
u = ((e == null ? void 0 : e.length) ?? 0) >= (Number(t) || 0), d = $e(u, ke("input.greaterOrEqualToCharacters", {
|
|
1566
1566
|
label: l,
|
|
1567
1567
|
min: t.toString()
|
|
1568
1568
|
}));
|
|
1569
1569
|
break;
|
|
1570
1570
|
case "number":
|
|
1571
1571
|
case "range":
|
|
1572
|
-
u = e >= (Number(t) || 0), d =
|
|
1572
|
+
u = e >= (Number(t) || 0), d = $e(u, ke("input.greaterOrEqualToValue", {
|
|
1573
1573
|
label: l,
|
|
1574
1574
|
min: t.toString()
|
|
1575
1575
|
}));
|
|
@@ -1579,9 +1579,9 @@ function ea(t, o, l, e, n) {
|
|
|
1579
1579
|
zone: "UTC"
|
|
1580
1580
|
}), i = W.fromISO(t, {
|
|
1581
1581
|
zone: "UTC"
|
|
1582
|
-
})), u = r >= i, d =
|
|
1582
|
+
})), u = r >= i, d = $e(u, ke("input.afterOrEqualToValue", {
|
|
1583
1583
|
label: l,
|
|
1584
|
-
min: i.setLocale(
|
|
1584
|
+
min: i.setLocale(we.global.locale.value).toFormat("D")
|
|
1585
1585
|
}));
|
|
1586
1586
|
break;
|
|
1587
1587
|
case "datetime":
|
|
@@ -1589,9 +1589,9 @@ function ea(t, o, l, e, n) {
|
|
|
1589
1589
|
zone: "UTC"
|
|
1590
1590
|
}), i = W.fromISO(t, {
|
|
1591
1591
|
zone: "UTC"
|
|
1592
|
-
})), u = r >= i, n && (i = i.setZone(n)), d =
|
|
1592
|
+
})), u = r >= i, n && (i = i.setZone(n)), d = $e(u, ke("input.afterOrEqualToValue", {
|
|
1593
1593
|
label: l,
|
|
1594
|
-
min: i.setLocale(
|
|
1594
|
+
min: i.setLocale(we.global.locale.value).toFormat("f")
|
|
1595
1595
|
}));
|
|
1596
1596
|
break;
|
|
1597
1597
|
default:
|
|
@@ -1617,14 +1617,14 @@ function la(t, o, l, e, n) {
|
|
|
1617
1617
|
case "tel":
|
|
1618
1618
|
case "text":
|
|
1619
1619
|
case "url":
|
|
1620
|
-
u = ((e == null ? void 0 : e.length) ?? 0) <= (Number(t) || 0), d =
|
|
1620
|
+
u = ((e == null ? void 0 : e.length) ?? 0) <= (Number(t) || 0), d = $e(u, ke("input.lessOrEqualToCharacters", {
|
|
1621
1621
|
label: l,
|
|
1622
1622
|
max: t.toString()
|
|
1623
1623
|
}));
|
|
1624
1624
|
break;
|
|
1625
1625
|
case "number":
|
|
1626
1626
|
case "range":
|
|
1627
|
-
u = e <= (Number(t) || 0), d =
|
|
1627
|
+
u = e <= (Number(t) || 0), d = $e(u, ke("input.lessOrEqualToValue", {
|
|
1628
1628
|
label: l,
|
|
1629
1629
|
max: t.toString()
|
|
1630
1630
|
}));
|
|
@@ -1634,9 +1634,9 @@ function la(t, o, l, e, n) {
|
|
|
1634
1634
|
zone: "UTC"
|
|
1635
1635
|
}), i = W.fromISO(t, {
|
|
1636
1636
|
zone: "UTC"
|
|
1637
|
-
})), u = r <= i, d =
|
|
1637
|
+
})), u = r <= i, d = $e(u, ke("input.beforeOrEqualToValue", {
|
|
1638
1638
|
label: l,
|
|
1639
|
-
max: i.setLocale(
|
|
1639
|
+
max: i.setLocale(we.global.locale.value).toFormat("D")
|
|
1640
1640
|
}));
|
|
1641
1641
|
break;
|
|
1642
1642
|
case "datetime":
|
|
@@ -1644,9 +1644,9 @@ function la(t, o, l, e, n) {
|
|
|
1644
1644
|
zone: "UTC"
|
|
1645
1645
|
}), i = W.fromISO(t, {
|
|
1646
1646
|
zone: "UTC"
|
|
1647
|
-
})), u = r <= i, d =
|
|
1647
|
+
})), u = r <= i, d = $e(u, ke("input.beforeOrEqualToValue", {
|
|
1648
1648
|
label: l,
|
|
1649
|
-
max: i.setLocale(
|
|
1649
|
+
max: i.setLocale(we.global.locale.value).toFormat("f")
|
|
1650
1650
|
}));
|
|
1651
1651
|
break;
|
|
1652
1652
|
default:
|
|
@@ -1659,17 +1659,17 @@ function la(t, o, l, e, n) {
|
|
|
1659
1659
|
}
|
|
1660
1660
|
function ta(t, o) {
|
|
1661
1661
|
return new Promise((l) => {
|
|
1662
|
-
const e = o != null && o !== "" && o.toString().trim() !== "", n =
|
|
1662
|
+
const e = o != null && o !== "" && o.toString().trim() !== "", n = $e(e, ke("input.valueIsRequired", { label: t }));
|
|
1663
1663
|
l(n);
|
|
1664
1664
|
});
|
|
1665
1665
|
}
|
|
1666
1666
|
function oa(t, o) {
|
|
1667
1667
|
return new Promise((l) => {
|
|
1668
|
-
const n = o === "" || /[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?\.)+[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?/.exec(o) !== null, a =
|
|
1668
|
+
const n = o === "" || /[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?\.)+[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?/.exec(o) !== null, a = $e(n, ke("input.valueNotValidEmail", { label: t }));
|
|
1669
1669
|
l(a);
|
|
1670
1670
|
});
|
|
1671
1671
|
}
|
|
1672
|
-
function
|
|
1672
|
+
function $e(t, o) {
|
|
1673
1673
|
return {
|
|
1674
1674
|
valid: t,
|
|
1675
1675
|
message: t ? "" : o
|
|
@@ -1693,7 +1693,7 @@ const aa = {
|
|
|
1693
1693
|
searchValue: {}
|
|
1694
1694
|
},
|
|
1695
1695
|
setup(t) {
|
|
1696
|
-
const o = t, l = sl(Bl), { t: e, locale: n } =
|
|
1696
|
+
const o = t, l = sl(Bl), { t: e, locale: n } = ce();
|
|
1697
1697
|
function a(r, i) {
|
|
1698
1698
|
let c;
|
|
1699
1699
|
o.timeZone ? c = W.fromISO(r, {
|
|
@@ -1758,7 +1758,7 @@ const aa = {
|
|
|
1758
1758
|
f("span", {
|
|
1759
1759
|
innerHTML: d()
|
|
1760
1760
|
}, null, 8, sa)
|
|
1761
|
-
])) :
|
|
1761
|
+
])) : F("", !0);
|
|
1762
1762
|
};
|
|
1763
1763
|
}
|
|
1764
1764
|
}), ia = { class: "cl-font-semibold lg:cl-hidden" }, ca = /* @__PURE__ */ B({
|
|
@@ -1772,7 +1772,7 @@ const aa = {
|
|
|
1772
1772
|
},
|
|
1773
1773
|
emits: ["edit", "focus", "undo"],
|
|
1774
1774
|
setup(t, { emit: o }) {
|
|
1775
|
-
const l = t, e = o, { t: n } =
|
|
1775
|
+
const l = t, e = o, { t: n } = ce(), a = N(me(l.data)), d = S(() => l.column.field !== void 0 && a.value[l.column.field] !== l.data[l.column.field]), u = S(() => {
|
|
1776
1776
|
var r;
|
|
1777
1777
|
return ((r = l.column.listEntries) == null ? void 0 : r.map((i, c) => ({
|
|
1778
1778
|
id: c,
|
|
@@ -1785,7 +1785,7 @@ const aa = {
|
|
|
1785
1785
|
}, {
|
|
1786
1786
|
deep: !0
|
|
1787
1787
|
}), (r, i) => (p(), v("td", {
|
|
1788
|
-
class:
|
|
1788
|
+
class: L(["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", {
|
|
1789
1789
|
"cl-bg-link-lighter": d.value
|
|
1790
1790
|
}])
|
|
1791
1791
|
}, [
|
|
@@ -1876,7 +1876,7 @@ const aa = {
|
|
|
1876
1876
|
},
|
|
1877
1877
|
emits: ["row-select", "row-edit", "row-edit-cancelled", "clear-filters"],
|
|
1878
1878
|
setup(t, { emit: o }) {
|
|
1879
|
-
const l = t, e = o, { t: n } =
|
|
1879
|
+
const l = t, e = o, { t: n } = ce(), a = N({
|
|
1880
1880
|
index: -1,
|
|
1881
1881
|
record: {}
|
|
1882
1882
|
});
|
|
@@ -1900,13 +1900,13 @@ const aa = {
|
|
|
1900
1900
|
const c = N({});
|
|
1901
1901
|
ae(() => l.data, () => {
|
|
1902
1902
|
var h, b;
|
|
1903
|
-
return c.value = Object.fromEntries(((b = (h = l.data) == null ? void 0 : h.results) == null ? void 0 : b.map(($,
|
|
1904
|
-
[
|
|
1903
|
+
return c.value = Object.fromEntries(((b = (h = l.data) == null ? void 0 : h.results) == null ? void 0 : b.map(($, q) => [
|
|
1904
|
+
[q],
|
|
1905
1905
|
{
|
|
1906
1906
|
count: 0,
|
|
1907
1907
|
target: null,
|
|
1908
1908
|
reset: Ul(() => {
|
|
1909
|
-
c.value[
|
|
1909
|
+
c.value[q] && (c.value[q].count = 0, c.value[q].target = null);
|
|
1910
1910
|
}, 2500, { immediate: !1 })
|
|
1911
1911
|
}
|
|
1912
1912
|
])) ?? []);
|
|
@@ -1915,8 +1915,8 @@ const aa = {
|
|
|
1915
1915
|
immediate: !0
|
|
1916
1916
|
});
|
|
1917
1917
|
function s(h, b, $) {
|
|
1918
|
-
const { currentTarget:
|
|
1919
|
-
l.options.rowSelectionEnabled ? (m(
|
|
1918
|
+
const { currentTarget: q } = $;
|
|
1919
|
+
l.options.rowSelectionEnabled ? (m(q), e("row-select", b)) : (c.value[h].count++, c.value[h].target = q, c.value[h].count > 1 ? (c.value[h].reset.stop(), c.value[h].count = 0, m(q), c.value[h].target = null, e("row-select", b)) : c.value[h].reset.start());
|
|
1920
1920
|
}
|
|
1921
1921
|
function m(h) {
|
|
1922
1922
|
l.options.highlightRowSelection === !0 && (h == null || h.classList.toggle("!cl-bg-link-lighter"));
|
|
@@ -1926,21 +1926,21 @@ const aa = {
|
|
|
1926
1926
|
}), (h, b) => {
|
|
1927
1927
|
var $;
|
|
1928
1928
|
return p(), v("tbody", null, [
|
|
1929
|
-
h.data && (($ = h.data.results) != null && $.length) ? (p(!0), v(J, { key: 0 }, ue(h.data.results, (
|
|
1929
|
+
h.data && (($ = h.data.results) != null && $.length) ? (p(!0), v(J, { key: 0 }, ue(h.data.results, (q, C) => (p(), H(ua, {
|
|
1930
1930
|
key: C,
|
|
1931
|
-
data:
|
|
1931
|
+
data: q,
|
|
1932
1932
|
columns: h.columns,
|
|
1933
1933
|
"time-zone": h.timeZone,
|
|
1934
1934
|
"search-value": h.searchValue,
|
|
1935
1935
|
"edit-mode": h.editMode,
|
|
1936
|
-
class:
|
|
1936
|
+
class: L(["cl-bg-opacity-100 cl-transition-colors", {
|
|
1937
1937
|
"cl-bg-white": C % 2 === 0 && h.data.totalRecords > 1,
|
|
1938
1938
|
"cl-bg-off-white": C % 2 === 1 || h.data.totalRecords === 1,
|
|
1939
1939
|
"cl-cursor-pointer": (h.options.highlightRowSelection || h.options.rowSelectionEnabled) && !h.editMode,
|
|
1940
1940
|
"hover:cl-bg-link-lighter": h.options.rowSelectionEnabled && h.options.highlightRowSelection === !0 && !h.editMode
|
|
1941
1941
|
}]),
|
|
1942
1942
|
onClick: (U) => {
|
|
1943
|
-
h.editMode || s(C,
|
|
1943
|
+
h.editMode || s(C, q, U);
|
|
1944
1944
|
},
|
|
1945
1945
|
onCellFocus: (U) => {
|
|
1946
1946
|
u(C);
|
|
@@ -1956,25 +1956,25 @@ const aa = {
|
|
|
1956
1956
|
M(h.$slots, T, le(P, { disabled: h.loading }))
|
|
1957
1957
|
])
|
|
1958
1958
|
}))
|
|
1959
|
-
]), 1032, ["data", "columns", "time-zone", "search-value", "edit-mode", "class", "onClick", "onCellFocus", "onCellEdit"]))), 128)) : h.loading ?
|
|
1959
|
+
]), 1032, ["data", "columns", "time-zone", "search-value", "edit-mode", "class", "onClick", "onCellFocus", "onCellEdit"]))), 128)) : h.loading ? F("", !0) : (p(), v("tr", da, [
|
|
1960
1960
|
f("td", {
|
|
1961
1961
|
colspan: h.columns.length
|
|
1962
1962
|
}, [
|
|
1963
1963
|
f("div", fa, [
|
|
1964
1964
|
f("strong", ma, I(g(n)("grid.noData")), 1),
|
|
1965
|
-
h.request.filters.some((
|
|
1965
|
+
h.request.filters.some((q) => q.filterValue !== "") ? (p(), v("div", ga, [
|
|
1966
1966
|
f("div", va, I(g(n)("grid.noDataFiltersPresent")), 1),
|
|
1967
|
-
D(
|
|
1967
|
+
D(Ce, {
|
|
1968
1968
|
size: "small",
|
|
1969
1969
|
colour: "danger",
|
|
1970
|
-
onClick: b[0] || (b[0] = oe((
|
|
1970
|
+
onClick: b[0] || (b[0] = oe((q) => h.$emit("clear-filters"), ["prevent"]))
|
|
1971
1971
|
}, {
|
|
1972
1972
|
default: R(() => [
|
|
1973
1973
|
pe(I(g(n)("grid.clearFilters")), 1)
|
|
1974
1974
|
]),
|
|
1975
1975
|
_: 1
|
|
1976
1976
|
})
|
|
1977
|
-
])) :
|
|
1977
|
+
])) : F("", !0)
|
|
1978
1978
|
])
|
|
1979
1979
|
], 8, pa)
|
|
1980
1980
|
]))
|
|
@@ -2018,7 +2018,7 @@ const aa = {
|
|
|
2018
2018
|
})), h = S(() => e.format ? dl(e.format, {
|
|
2019
2019
|
locale: e.locale,
|
|
2020
2020
|
additionalOptions: m.value
|
|
2021
|
-
}) : m.value), b = S(() => Math.pow(10, h.value.maximumFractionDigits ?? 0)), $ = S(() => Math.pow(10, e.format === ee.PERCENTAGE ? 2 : 0)),
|
|
2021
|
+
}) : m.value), b = S(() => Math.pow(10, h.value.maximumFractionDigits ?? 0)), $ = S(() => Math.pow(10, e.format === ee.PERCENTAGE ? 2 : 0)), q = S(() => b.value * $.value), C = N(void 0);
|
|
2022
2022
|
ae(n, () => C.value = void 0);
|
|
2023
2023
|
const U = S({
|
|
2024
2024
|
get: () => C.value ? x(C.value) : n.value,
|
|
@@ -2035,7 +2035,7 @@ const aa = {
|
|
|
2035
2035
|
n.value = null;
|
|
2036
2036
|
else if (w !== "") {
|
|
2037
2037
|
let k = typeof w == "number" ? w : x(w);
|
|
2038
|
-
V && e.format === ee.PERCENTAGE && (k = k / $.value), isNaN(k) === !1 && (n.value = P(Math.round(k *
|
|
2038
|
+
V && e.format === ee.PERCENTAGE && (k = k / $.value), isNaN(k) === !1 && (n.value = P(Math.round(k * q.value) / q.value));
|
|
2039
2039
|
}
|
|
2040
2040
|
}
|
|
2041
2041
|
function E(w) {
|
|
@@ -2050,8 +2050,8 @@ const aa = {
|
|
|
2050
2050
|
additionalOptions: m.value
|
|
2051
2051
|
}) : +w;
|
|
2052
2052
|
}
|
|
2053
|
-
function
|
|
2054
|
-
const V = (U.value || 0) + (w ? -1 : 1) /
|
|
2053
|
+
function ne(w) {
|
|
2054
|
+
const V = (U.value || 0) + (w ? -1 : 1) / q.value;
|
|
2055
2055
|
_(V, !1);
|
|
2056
2056
|
}
|
|
2057
2057
|
return Qe(!0, (w) => Re(() => a("keySinglePress", w.key)), {
|
|
@@ -2091,18 +2091,18 @@ const aa = {
|
|
|
2091
2091
|
onInput: V[0] || (V[0] = (z) => T.value = z.target.value),
|
|
2092
2092
|
onKeydown: [
|
|
2093
2093
|
V[1] || (V[1] = be(oe((z) => _(z.target.value, !0), ["stop", "prevent"]), ["enter"])),
|
|
2094
|
-
V[2] || (V[2] = be(oe((z) =>
|
|
2095
|
-
V[3] || (V[3] = be(oe((z) =>
|
|
2094
|
+
V[2] || (V[2] = be(oe((z) => ne(!0), ["stop", "prevent"]), ["down"])),
|
|
2095
|
+
V[3] || (V[3] = be(oe((z) => ne(!1), ["stop", "prevent"]), ["up"]))
|
|
2096
2096
|
]
|
|
2097
2097
|
}), null, 16, ha)),
|
|
2098
2098
|
Q(f("div", ya, [
|
|
2099
2099
|
f("button", {
|
|
2100
2100
|
class: "cl-bg-opacity-30 cl-bg-secondary-light cl-border cl-border-grey-3 cl-px-1 cl-rounded hover:cl-bg-opacity-20",
|
|
2101
2101
|
disabled: w.disabled,
|
|
2102
|
-
onClick: V[4] || (V[4] = (z) =>
|
|
2102
|
+
onClick: V[4] || (V[4] = (z) => ne(!1)),
|
|
2103
2103
|
onKeydown: [
|
|
2104
|
-
V[5] || (V[5] = be(oe((z) =>
|
|
2105
|
-
V[6] || (V[6] = be(oe((z) =>
|
|
2104
|
+
V[5] || (V[5] = be(oe((z) => ne(!0), ["stop", "prevent"]), ["down"])),
|
|
2105
|
+
V[6] || (V[6] = be(oe((z) => ne(!1), ["stop", "prevent"]), ["up"]))
|
|
2106
2106
|
]
|
|
2107
2107
|
}, [
|
|
2108
2108
|
D(k, { icon: "ph:caret-up-bold" })
|
|
@@ -2110,10 +2110,10 @@ const aa = {
|
|
|
2110
2110
|
f("button", {
|
|
2111
2111
|
class: "cl-bg-opacity-30 cl-bg-secondary-light cl-border cl-border-grey-3 cl-px-1 cl-rounded hover:cl-bg-opacity-20",
|
|
2112
2112
|
disabled: w.disabled,
|
|
2113
|
-
onClick: V[7] || (V[7] = (z) =>
|
|
2113
|
+
onClick: V[7] || (V[7] = (z) => ne(!0)),
|
|
2114
2114
|
onKeydown: [
|
|
2115
|
-
V[8] || (V[8] = be(oe((z) =>
|
|
2116
|
-
V[9] || (V[9] = be(oe((z) =>
|
|
2115
|
+
V[8] || (V[8] = be(oe((z) => ne(!0), ["stop", "prevent"]), ["down"])),
|
|
2116
|
+
V[9] || (V[9] = be(oe((z) => ne(!1), ["stop", "prevent"]), ["up"]))
|
|
2117
2117
|
]
|
|
2118
2118
|
}, [
|
|
2119
2119
|
D(k, { icon: "ph:caret-down-bold" })
|
|
@@ -2138,7 +2138,7 @@ const aa = {
|
|
|
2138
2138
|
}), $a = {
|
|
2139
2139
|
key: 0,
|
|
2140
2140
|
class: "cl-flex cl-flex-wrap cl-justify-end cl-mt-2 cl-w-full"
|
|
2141
|
-
}, Ca = { 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" }, Ta = { class: "cl-text-grey-3 cl-w-max" }, Sa = /* @__PURE__ */ f("span", null, null, -1), qa = { 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" }, Oa = { 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" }, Da = { class: "cl-flex cl-flex-wrap cl-mb-2 cl-w-full lg:cl-mb-0 lg:cl-mr-2 lg:cl-w-auto" }, Ea = { class: "cl-text-grey-3 cl-w-full lg:cl-mr-2 lg:cl-w-auto" }, Aa = { class: "cl-flex cl-flex-wrap cl-text-sm mb:cl-flex-nowrap" }, Va = { class: "cl-pr-2" }, Na = ["onClick"], Ia = { 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" }, Ra = { class: "cl-mb-2 cl-text-grey-3 cl-w-full lg:cl-mb-0 lg:cl-mr-2 lg:cl-w-auto" }, Ma = ["onClick"], Ua = { class: "cl-mb-2 cl-w-full lg:cl-p-2 md:cl-mb-0 md:cl-w-auto" }, za = { 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" },
|
|
2141
|
+
}, Ca = { 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" }, Ta = { class: "cl-text-grey-3 cl-w-max" }, Sa = /* @__PURE__ */ f("span", null, null, -1), qa = { 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" }, Oa = { 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" }, Da = { class: "cl-flex cl-flex-wrap cl-mb-2 cl-w-full lg:cl-mb-0 lg:cl-mr-2 lg:cl-w-auto" }, Ea = { class: "cl-text-grey-3 cl-w-full lg:cl-mr-2 lg:cl-w-auto" }, Aa = { class: "cl-flex cl-flex-wrap cl-text-sm mb:cl-flex-nowrap" }, Va = { class: "cl-pr-2" }, Na = ["onClick"], Ia = { 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" }, Ra = { class: "cl-mb-2 cl-text-grey-3 cl-w-full lg:cl-mb-0 lg:cl-mr-2 lg:cl-w-auto" }, Ma = ["onClick"], Ua = { class: "cl-mb-2 cl-w-full lg:cl-p-2 md:cl-mb-0 md:cl-w-auto" }, za = { 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" }, Fa = { class: "cl-block lg:cl-inline-block" }, La = /* @__PURE__ */ B({
|
|
2142
2142
|
__name: "cl-ui-grid-footer",
|
|
2143
2143
|
props: {
|
|
2144
2144
|
request: {},
|
|
@@ -2148,7 +2148,7 @@ const aa = {
|
|
|
2148
2148
|
},
|
|
2149
2149
|
emits: ["update:request"],
|
|
2150
2150
|
setup(t, { emit: o }) {
|
|
2151
|
-
const l = t, e = o, { t: n } =
|
|
2151
|
+
const l = t, e = o, { t: n } = ce(), a = S(() => {
|
|
2152
2152
|
var c;
|
|
2153
2153
|
return l.data !== null ? Math.ceil((((c = l.data) == null ? void 0 : c.totalRecords) ?? 0) / l.request.pageSize) : 1;
|
|
2154
2154
|
}), d = S(() => {
|
|
@@ -2211,7 +2211,7 @@ const aa = {
|
|
|
2211
2211
|
class: "cl-cursor-pointer cl-mr-1 cl-mt-1 lg:cl-mr-2",
|
|
2212
2212
|
onClick: s[0] || (s[0] = (b) => u(1))
|
|
2213
2213
|
}, [
|
|
2214
|
-
D(g(
|
|
2214
|
+
D(g(G), {
|
|
2215
2215
|
icon: "ph:caret-double-left",
|
|
2216
2216
|
size: 14
|
|
2217
2217
|
})
|
|
@@ -2222,7 +2222,7 @@ const aa = {
|
|
|
2222
2222
|
class: "cl-cursor-pointer cl-mt-1 lg:cl-mr-2 mr-1",
|
|
2223
2223
|
onClick: s[1] || (s[1] = (b) => u(c.request.pageNumber - 1))
|
|
2224
2224
|
}, [
|
|
2225
|
-
D(g(
|
|
2225
|
+
D(g(G), {
|
|
2226
2226
|
icon: "ph:caret-left",
|
|
2227
2227
|
size: 14
|
|
2228
2228
|
})
|
|
@@ -2231,17 +2231,17 @@ const aa = {
|
|
|
2231
2231
|
]),
|
|
2232
2232
|
(p(!0), v(J, null, ue(d.value, (b, $) => (p(), v("li", {
|
|
2233
2233
|
key: $,
|
|
2234
|
-
class:
|
|
2234
|
+
class: L(["cl-cursor-pointer cl-mr-1 lg:cl-mr-2", {
|
|
2235
2235
|
"cl-text-black cl-font-bold": c.request.pageNumber === b,
|
|
2236
2236
|
"cl-text-grey-6": c.request.pageNumber !== b
|
|
2237
2237
|
}]),
|
|
2238
|
-
onClick: (
|
|
2238
|
+
onClick: (q) => u(b)
|
|
2239
2239
|
}, I(g(De)(b)), 11, Na))), 128)),
|
|
2240
2240
|
Q(f("li", {
|
|
2241
2241
|
class: "cl-cursor-pointer cl-mr-1 cl-mt-1 lg:cl-mr-2",
|
|
2242
2242
|
onClick: s[2] || (s[2] = (b) => u(c.request.pageNumber + 1))
|
|
2243
2243
|
}, [
|
|
2244
|
-
D(g(
|
|
2244
|
+
D(g(G), {
|
|
2245
2245
|
icon: "ph:caret-right",
|
|
2246
2246
|
size: 14
|
|
2247
2247
|
})
|
|
@@ -2252,7 +2252,7 @@ const aa = {
|
|
|
2252
2252
|
class: "cl-cursor-pointer cl-mr-1 cl-mt-1 lg:cl-mr-2",
|
|
2253
2253
|
onClick: s[3] || (s[3] = (b) => u(a.value))
|
|
2254
2254
|
}, [
|
|
2255
|
-
D(g(
|
|
2255
|
+
D(g(G), {
|
|
2256
2256
|
icon: "ph:caret-double-right",
|
|
2257
2257
|
size: 14
|
|
2258
2258
|
})
|
|
@@ -2265,19 +2265,19 @@ const aa = {
|
|
|
2265
2265
|
f("li", Ra, I(g(n)("grid.pageSize")), 1),
|
|
2266
2266
|
(p(), v(J, null, ue(r, (b, $) => f("li", {
|
|
2267
2267
|
key: $,
|
|
2268
|
-
class:
|
|
2268
|
+
class: L(["cl-cursor-pointer cl-mr-1 lg:cl-mr-2", {
|
|
2269
2269
|
"cl-text-black cl-font-bold": c.request.pageSize === b,
|
|
2270
2270
|
"cl-text-grey-6": c.request.pageSize !== b
|
|
2271
2271
|
}]),
|
|
2272
|
-
onClick: (
|
|
2272
|
+
onClick: (q) => i(b)
|
|
2273
2273
|
}, I(g(De)(b)), 11, Ma)), 64))
|
|
2274
2274
|
]),
|
|
2275
2275
|
f("ul", Ua, [
|
|
2276
2276
|
f("li", za, I(g(n)("grid.totalRecords")), 1),
|
|
2277
|
-
f("li",
|
|
2277
|
+
f("li", Fa, I(g(De)(c.data.totalRecords)), 1)
|
|
2278
2278
|
])
|
|
2279
2279
|
])
|
|
2280
|
-
])) :
|
|
2280
|
+
])) : F("", !0);
|
|
2281
2281
|
};
|
|
2282
2282
|
}
|
|
2283
2283
|
});
|
|
@@ -2397,13 +2397,13 @@ const Ba = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, Pa = ["onClick"], Ha =
|
|
|
2397
2397
|
},
|
|
2398
2398
|
emits: ["quick-date-selected"],
|
|
2399
2399
|
setup(t, { emit: o }) {
|
|
2400
|
-
const l = o, { t: e } =
|
|
2400
|
+
const l = o, { t: e } = ce();
|
|
2401
2401
|
return (n, a) => (p(), v("div", Ba, [
|
|
2402
2402
|
(p(!0), v(J, null, ue(n.dates, (d, u) => {
|
|
2403
2403
|
var r, i;
|
|
2404
2404
|
return p(), v("button", {
|
|
2405
2405
|
key: u,
|
|
2406
|
-
class:
|
|
2406
|
+
class: L(["cl-border cl-cursor-pointer cl-py-1 cl-rounded-md cl-text-center", {
|
|
2407
2407
|
"cl-bg-primary-lighter cl-bg-opacity-30 cl-border-primary-default cl-font-bold hover:cl-border-primary-darker": ((r = n.selectedQuickDate) == null ? void 0 : r.name) === d.name,
|
|
2408
2408
|
"cl-border-grey-2 hover:cl-border-grey-3 hover:cl-opacity-95 cl-opacity-60": ((i = n.selectedQuickDate) == null ? void 0 : i.name) !== d.name
|
|
2409
2409
|
}]),
|
|
@@ -2517,7 +2517,7 @@ const Ba = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, Pa = ["onClick"], Ha =
|
|
|
2517
2517
|
},
|
|
2518
2518
|
emits: ["quick-date-selected"],
|
|
2519
2519
|
setup(t, { emit: o }) {
|
|
2520
|
-
const l = t, e = o, { t: n } =
|
|
2520
|
+
const l = t, e = o, { t: n } = ce(), a = S(() => {
|
|
2521
2521
|
const d = [];
|
|
2522
2522
|
switch (l.scope) {
|
|
2523
2523
|
case "past":
|
|
@@ -2552,7 +2552,7 @@ const Ba = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, Pa = ["onClick"], Ha =
|
|
|
2552
2552
|
"selected-quick-date": d.selectedQuickDate,
|
|
2553
2553
|
onQuickDateSelected: u[0] || (u[0] = (c) => e("quick-date-selected", c))
|
|
2554
2554
|
}, null, 8, ["dates", "selected-quick-date"]),
|
|
2555
|
-
i < a.value.length - 1 ? (p(), v("div", Ga)) :
|
|
2555
|
+
i < a.value.length - 1 ? (p(), v("div", Ga)) : F("", !0)
|
|
2556
2556
|
]))), 128))
|
|
2557
2557
|
]));
|
|
2558
2558
|
}
|
|
@@ -2566,14 +2566,14 @@ const Ba = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, Pa = ["onClick"], Ha =
|
|
|
2566
2566
|
},
|
|
2567
2567
|
emits: ["togglePopover", "clear"],
|
|
2568
2568
|
setup(t) {
|
|
2569
|
-
const { t: o } =
|
|
2569
|
+
const { t: o } = ce(), l = S(() => {
|
|
2570
2570
|
const { class: e, ...n } = Vl();
|
|
2571
2571
|
return n;
|
|
2572
2572
|
});
|
|
2573
2573
|
return (e, n) => {
|
|
2574
2574
|
const a = Ae("icon"), d = Ae("cl-ui-button");
|
|
2575
2575
|
return p(), v("div", {
|
|
2576
|
-
class:
|
|
2576
|
+
class: L(["cl-border cl-border-grey-1 cl-flex cl-flex-nowrap cl-flex-row cl-overflow-hidden cl-rounded-sm range-input", [
|
|
2577
2577
|
e.$attrs.class,
|
|
2578
2578
|
{
|
|
2579
2579
|
"cl-bg-grey-3 ": e.disabled
|
|
@@ -2596,12 +2596,12 @@ const Ba = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, Pa = ["onClick"], Ha =
|
|
|
2596
2596
|
]),
|
|
2597
2597
|
_: 1
|
|
2598
2598
|
}, 16, ["disabled", "class"]),
|
|
2599
|
-
e.required ?
|
|
2599
|
+
e.required ? F("", !0) : (p(), H(d, {
|
|
2600
2600
|
key: 0,
|
|
2601
2601
|
id: e.$attrs.id ? e.$attrs.id + "Clear" : "clUiDateRangeInputClear",
|
|
2602
2602
|
title: g(o)("input.clearDateRange"),
|
|
2603
2603
|
size: "small",
|
|
2604
|
-
class:
|
|
2604
|
+
class: L(["cl-basis-0 cl-border-transparent cl-flex cl-items-center cl-justify-center hover:cl-border-transparent", {
|
|
2605
2605
|
"cl-text-grey-4 hover:cl-text-grey-3": !e.dateRangeSelected && !e.disabled,
|
|
2606
2606
|
"cl-text-danger-dark hover:cl-text-danger-default": e.dateRangeSelected && !e.disabled
|
|
2607
2607
|
}]),
|
|
@@ -2652,21 +2652,21 @@ const Ba = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, Pa = ["onClick"], Ha =
|
|
|
2652
2652
|
},
|
|
2653
2653
|
set($) {
|
|
2654
2654
|
if ($ !== null) {
|
|
2655
|
-
const
|
|
2655
|
+
const q = $;
|
|
2656
2656
|
l.value = {
|
|
2657
|
-
start: Ue(
|
|
2658
|
-
end: Ue(
|
|
2657
|
+
start: Ue(q.start, "start", !1, o.timeZone) ?? "",
|
|
2658
|
+
end: Ue(q.end, "end", !1, o.timeZone) ?? ""
|
|
2659
2659
|
};
|
|
2660
2660
|
} else
|
|
2661
2661
|
l.value = null;
|
|
2662
2662
|
}
|
|
2663
|
-
}), { locale: a } =
|
|
2663
|
+
}), { locale: a } = ce(), d = S(() => o.dateFormatLocale ?? a.value), u = S(() => fl(o.disabled, o.popoverPlacement)), r = S(() => ml(l.value, o.initialCalendarDate, e.value, "dateRange")), i = S(() => Gl(n.value, e.value, d.value)), c = N(null), s = N(null);
|
|
2664
2664
|
function m($) {
|
|
2665
|
-
const
|
|
2666
|
-
n.value =
|
|
2665
|
+
const q = Zl($, e.value);
|
|
2666
|
+
n.value = q, c.value = $, s.value.move(q.start), s.value.hidePopover();
|
|
2667
2667
|
}
|
|
2668
2668
|
const h = zl("(min-width: 768px)"), b = S(() => h.value ? 2 : 1);
|
|
2669
|
-
return ($,
|
|
2669
|
+
return ($, q) => {
|
|
2670
2670
|
const C = Ae("cl-ui-input-layout-wrapper");
|
|
2671
2671
|
return p(), H(C, { "show-required-asterisk": $.required }, {
|
|
2672
2672
|
label: R(() => [
|
|
@@ -2677,7 +2677,7 @@ const Ba = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, Pa = ["onClick"], Ha =
|
|
|
2677
2677
|
ref_key: "calendar",
|
|
2678
2678
|
ref: s,
|
|
2679
2679
|
modelValue: n.value,
|
|
2680
|
-
"onUpdate:modelValue":
|
|
2680
|
+
"onUpdate:modelValue": q[1] || (q[1] = (U) => n.value = U),
|
|
2681
2681
|
modelModifiers: { range: !0 },
|
|
2682
2682
|
mode: "date",
|
|
2683
2683
|
color: "primary",
|
|
@@ -2689,7 +2689,7 @@ const Ba = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, Pa = ["onClick"], Ha =
|
|
|
2689
2689
|
"min-date": $.minDate,
|
|
2690
2690
|
"max-date": $.maxDate,
|
|
2691
2691
|
"initial-page": r.value,
|
|
2692
|
-
onDayclick:
|
|
2692
|
+
onDayclick: q[2] || (q[2] = (U) => c.value = null)
|
|
2693
2693
|
}, {
|
|
2694
2694
|
default: R(({ togglePopover: U }) => [
|
|
2695
2695
|
D(vl, le($.$attrs, {
|
|
@@ -2698,7 +2698,7 @@ const Ba = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, Pa = ["onClick"], Ha =
|
|
|
2698
2698
|
"date-range-selected": !!n.value,
|
|
2699
2699
|
title: i.value,
|
|
2700
2700
|
onTogglePopover: U,
|
|
2701
|
-
onClear:
|
|
2701
|
+
onClear: q[0] || (q[0] = (T) => {
|
|
2702
2702
|
n.value = null, c.value = null, s.value.hidePopover();
|
|
2703
2703
|
})
|
|
2704
2704
|
}), null, 16, ["required", "disabled", "date-range-selected", "title", "onTogglePopover"])
|
|
@@ -2710,7 +2710,7 @@ const Ba = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, Pa = ["onClick"], Ha =
|
|
|
2710
2710
|
"selected-quick-date": c.value,
|
|
2711
2711
|
"current-date-range": l.value,
|
|
2712
2712
|
onQuickDateSelected: m
|
|
2713
|
-
}, null, 8, ["scope", "selected-quick-date", "current-date-range"])) :
|
|
2713
|
+
}, null, 8, ["scope", "selected-quick-date", "current-date-range"])) : F("", !0)
|
|
2714
2714
|
]),
|
|
2715
2715
|
_: 1
|
|
2716
2716
|
}, 8, ["modelValue", "locale", "timezone", "columns", "popover", "min-date", "max-date", "initial-page"])
|
|
@@ -2745,7 +2745,7 @@ const Ba = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, Pa = ["onClick"], Ha =
|
|
|
2745
2745
|
Nl((s) => ({
|
|
2746
2746
|
"28c20101": u.value
|
|
2747
2747
|
}));
|
|
2748
|
-
const l = t, e = Se(t, "modelValue"), { t: n } =
|
|
2748
|
+
const l = t, e = Se(t, "modelValue"), { t: n } = ce(), a = N(), d = N(), u = S(() => `${100 * (e.value - l.min) / (l.max - l.min)}%`), r = N(!1), i = mt(e, 50);
|
|
2749
2749
|
function c(s) {
|
|
2750
2750
|
var m;
|
|
2751
2751
|
e.value = s, (m = a.value) == null || m.focus();
|
|
@@ -2841,7 +2841,7 @@ const Ba = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, Pa = ["onClick"], Ha =
|
|
|
2841
2841
|
]), 1032, ["errors", "show-required-asterisk"]);
|
|
2842
2842
|
};
|
|
2843
2843
|
}
|
|
2844
|
-
}), on = /* @__PURE__ */
|
|
2844
|
+
}), on = /* @__PURE__ */ ye(tn, [["__scopeId", "data-v-b105db31"]]), Jl = [
|
|
2845
2845
|
"date",
|
|
2846
2846
|
"datetime",
|
|
2847
2847
|
"time"
|
|
@@ -2882,7 +2882,7 @@ const Ba = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, Pa = ["onClick"], Ha =
|
|
|
2882
2882
|
var u;
|
|
2883
2883
|
(u = e.value) == null || u.focus();
|
|
2884
2884
|
}
|
|
2885
|
-
const { t: a } =
|
|
2885
|
+
const { t: a } = ce(), d = S(() => {
|
|
2886
2886
|
let u = "";
|
|
2887
2887
|
switch (l.type) {
|
|
2888
2888
|
case "date":
|
|
@@ -2915,28 +2915,28 @@ const Ba = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, Pa = ["onClick"], Ha =
|
|
|
2915
2915
|
disabled: u.disabled,
|
|
2916
2916
|
placeholder: d.value
|
|
2917
2917
|
}, nt(u.events, !0)), null, 16, rn),
|
|
2918
|
-
D(g(
|
|
2918
|
+
D(g(G), {
|
|
2919
2919
|
class: "cl-absolute cl-bg-transparent cl-cursor-text cl-left-2 cl-text-grey-4 cl-top-3.5 icon",
|
|
2920
2920
|
icon: u.type === "time" ? "ph-clock" : "ph:calendar",
|
|
2921
2921
|
onClick: n
|
|
2922
2922
|
}, null, 8, ["icon"]),
|
|
2923
|
-
u.disabled ?
|
|
2924
|
-
u.type !== "time" ? (p(), H(g(
|
|
2923
|
+
u.disabled ? F("", !0) : (p(), v("div", sn, [
|
|
2924
|
+
u.type !== "time" ? (p(), H(g(G), {
|
|
2925
2925
|
key: 0,
|
|
2926
2926
|
class: "cl-cursor-pointer hover:cl-text-link-light",
|
|
2927
2927
|
icon: "ph:arrow-counter-clockwise",
|
|
2928
2928
|
onClick: r[2] || (r[2] = oe((i) => u.$emit("reset"), ["prevent"]))
|
|
2929
|
-
})) :
|
|
2930
|
-
!u.required && u.date && (u.type !== "time" || u.date !== "00:00") ? (p(), H(g(
|
|
2929
|
+
})) : F("", !0),
|
|
2930
|
+
!u.required && u.date && (u.type !== "time" || u.date !== "00:00") ? (p(), H(g(G), {
|
|
2931
2931
|
key: 1,
|
|
2932
2932
|
class: "cl-cursor-pointer clear-icon hover:cl-text-link-light md:cl-ml-0.5",
|
|
2933
2933
|
icon: "ph:x",
|
|
2934
2934
|
onClick: r[3] || (r[3] = oe((i) => u.$emit("clear"), ["prevent"]))
|
|
2935
|
-
})) :
|
|
2935
|
+
})) : F("", !0)
|
|
2936
2936
|
]))
|
|
2937
2937
|
]));
|
|
2938
2938
|
}
|
|
2939
|
-
}), Be = /* @__PURE__ */
|
|
2939
|
+
}), Be = /* @__PURE__ */ ye(cn, [["__scopeId", "data-v-307fea23"]]), Xl = /* @__PURE__ */ B({
|
|
2940
2940
|
inheritAttrs: !1,
|
|
2941
2941
|
__name: "cl-ui-input-datetime",
|
|
2942
2942
|
props: /* @__PURE__ */ ve({
|
|
@@ -2966,7 +2966,7 @@ const Ba = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, Pa = ["onClick"], Ha =
|
|
|
2966
2966
|
set(b) {
|
|
2967
2967
|
e.type === "time" ? n.value = b : b !== null ? n.value = Ue(b, null, !0, e.timeZone) : n.value = null;
|
|
2968
2968
|
}
|
|
2969
|
-
}), { locale: r } =
|
|
2969
|
+
}), { locale: r } = ce(), i = S(() => e.dateFormatLocale ?? r.value), c = S(() => fl(e.disabled, e.popoverPlacement)), s = S(() => Wl(i.value, e.type)), m = N(null), h = S(() => ml(n.value, e.initialCalendarDate, d.value, e.type));
|
|
2970
2970
|
return ae(() => [
|
|
2971
2971
|
e.minDate,
|
|
2972
2972
|
e.maxDate
|
|
@@ -2978,8 +2978,8 @@ const Ba = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, Pa = ["onClick"], Ha =
|
|
|
2978
2978
|
(b = m.value) == null || b.focus(), a("focus");
|
|
2979
2979
|
}
|
|
2980
2980
|
}), (b, $) => {
|
|
2981
|
-
const
|
|
2982
|
-
return p(), H(
|
|
2981
|
+
const q = Ae("cl-ui-input-layout-wrapper");
|
|
2982
|
+
return p(), H(q, { "show-required-asterisk": b.required }, {
|
|
2983
2983
|
label: R(() => [
|
|
2984
2984
|
M(b.$slots, "default")
|
|
2985
2985
|
]),
|
|
@@ -3249,7 +3249,7 @@ const hn = {
|
|
|
3249
3249
|
},
|
|
3250
3250
|
emits: ["update:filter"],
|
|
3251
3251
|
setup(t, { emit: o }) {
|
|
3252
|
-
const l = t, e = o, { t: n } =
|
|
3252
|
+
const l = t, e = o, { t: n } = ce(), a = S(() => {
|
|
3253
3253
|
let s = [];
|
|
3254
3254
|
return l.column.type !== "slot" ? s = ql.filter((m) => m.allowedTypes.includes(l.column.type)) : typeof l.column.slotType < "u" && typeof l.column.field < "u" && (s = ql.filter((m) => m.allowedTypes.includes(l.column.slotType))), l.column.type === "date" || l.column.type === "datetime" || l.column.slotType === "date" || l.column.slotType === "datetime" ? s.forEach((m) => {
|
|
3255
3255
|
m.description = n(`grid.${m.key}`);
|
|
@@ -3286,17 +3286,17 @@ const hn = {
|
|
|
3286
3286
|
class: "cl-group cl-inline cl-relative cl-w-auto"
|
|
3287
3287
|
}, [
|
|
3288
3288
|
f("div", kn, [
|
|
3289
|
-
d.value ? (p(), H(g(
|
|
3289
|
+
d.value ? (p(), H(g(G), {
|
|
3290
3290
|
key: 0,
|
|
3291
3291
|
icon: d.value.icon,
|
|
3292
|
-
class:
|
|
3292
|
+
class: L(["cl-text-lg", {
|
|
3293
3293
|
"cl-text-grey-4": l.filter === void 0 || l.filter.filterValue === "",
|
|
3294
3294
|
"cl-text-primary-default": l.filter && l.filter.filterValue !== ""
|
|
3295
3295
|
}])
|
|
3296
|
-
}, null, 8, ["icon", "class"])) :
|
|
3296
|
+
}, null, 8, ["icon", "class"])) : F("", !0)
|
|
3297
3297
|
]),
|
|
3298
3298
|
f("div", {
|
|
3299
|
-
class:
|
|
3299
|
+
class: L(["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", {
|
|
3300
3300
|
"group-hover:cl-flex group-hover:cl-h-auto group-hover:cl-w-52": s.loading === !1,
|
|
3301
3301
|
"cl-right-0": c.value === !1,
|
|
3302
3302
|
"cl-left-0": c.value
|
|
@@ -3307,13 +3307,13 @@ const hn = {
|
|
|
3307
3307
|
var $;
|
|
3308
3308
|
return p(), v("span", {
|
|
3309
3309
|
key: b,
|
|
3310
|
-
class:
|
|
3310
|
+
class: L(["cl-cursor-pointer cl-px-4 cl-py-1 cl-transition-colors cl-w-full hover:cl-bg-grey-0", {
|
|
3311
3311
|
"cl-bg-primary-default cl-opacity-80": h.method === (($ = d.value) == null ? void 0 : $.method)
|
|
3312
3312
|
}]),
|
|
3313
|
-
onClick: oe((
|
|
3313
|
+
onClick: oe((q) => u(h.method), ["prevent"])
|
|
3314
3314
|
}, [
|
|
3315
3315
|
pe(I(h.description) + " ", 1),
|
|
3316
|
-
D(g(
|
|
3316
|
+
D(g(G), {
|
|
3317
3317
|
icon: h.icon,
|
|
3318
3318
|
class: "cl-float-right cl-text-grey-4 cl-text-sm"
|
|
3319
3319
|
}, null, 8, ["icon"])
|
|
@@ -3322,7 +3322,7 @@ const hn = {
|
|
|
3322
3322
|
], 2)
|
|
3323
3323
|
], 512));
|
|
3324
3324
|
}
|
|
3325
|
-
}), ol = (t) => (Rl("data-v-
|
|
3325
|
+
}), ol = (t) => (Rl("data-v-66e89969"), t = t(), Ml(), t), Sn = {
|
|
3326
3326
|
key: 0,
|
|
3327
3327
|
class: "cl-border cl-border-grey-2 cl-flex cl-overflow-hidden cl-rounded-md lg:cl-overflow-visible"
|
|
3328
3328
|
}, qn = ["id", "disabled"], On = /* @__PURE__ */ ol(() => /* @__PURE__ */ f("option", { value: void 0 }, null, -1)), Dn = ["selected"], En = ["selected"], An = {
|
|
@@ -3334,7 +3334,7 @@ const hn = {
|
|
|
3334
3334
|
}, Nn = /* @__PURE__ */ ol(() => /* @__PURE__ */ f("span", null, null, -1)), In = {
|
|
3335
3335
|
key: 4,
|
|
3336
3336
|
class: "cl-w-full"
|
|
3337
|
-
}, Rn = /* @__PURE__ */ ol(() => /* @__PURE__ */ f("span", null, null, -1)), Mn = ["id", "disabled"], Un = /* @__PURE__ */ ol(() => /* @__PURE__ */ f("option", { value: void 0 }, null, -1)), zn = ["value", "selected"],
|
|
3337
|
+
}, Rn = /* @__PURE__ */ ol(() => /* @__PURE__ */ f("span", null, null, -1)), Mn = ["id", "disabled"], Un = /* @__PURE__ */ ol(() => /* @__PURE__ */ f("option", { value: void 0 }, null, -1)), zn = ["value", "selected"], Fn = /* @__PURE__ */ B({
|
|
3338
3338
|
__name: "cl-ui-grid-filter",
|
|
3339
3339
|
props: {
|
|
3340
3340
|
loading: { type: Boolean },
|
|
@@ -3346,7 +3346,7 @@ const hn = {
|
|
|
3346
3346
|
},
|
|
3347
3347
|
emits: ["update:filter", "perform-data-request"],
|
|
3348
3348
|
setup(t, { emit: o }) {
|
|
3349
|
-
const l = t, e = o, { t: n, locale: a } =
|
|
3349
|
+
const l = t, e = o, { t: n, locale: a } = ce();
|
|
3350
3350
|
function d() {
|
|
3351
3351
|
return l.column.type === "string" || l.column.slotType === "string" ? X.CONTAINS : l.column.type === "datetime" || l.column.slotType === "datetime" || l.column.type === "date" || l.column.slotType === "date" ? X.LESS_THAN : X.EQUAL;
|
|
3352
3352
|
}
|
|
@@ -3355,38 +3355,38 @@ const hn = {
|
|
|
3355
3355
|
set: (k) => e("update:filter", k)
|
|
3356
3356
|
}), r = S(() => l.column.type === "date" || l.column.type === "datetime" || l.column.type === "slot" && (l.column.slotType === "date" || l.column.slotType === "datetime")), i = S(() => l.column.type === "dateRange" || l.column.type === "slot" && l.column.slotType === "dateRange"), c = S(() => l.column.type === "list" || l.column.type === "slot" && l.column.slotType === "list"), s = S(() => c.value && l.column.listType === "number"), m = S(() => l.column.format === ee.INTEGER ? ee.DECIMAL : l.column.format ?? ee.DECIMAL), h = S({
|
|
3357
3357
|
get() {
|
|
3358
|
-
var z, A,
|
|
3358
|
+
var z, A, re, O, Z, Y, se;
|
|
3359
3359
|
let k = (z = u.value) == null ? void 0 : z[0];
|
|
3360
3360
|
if (k) {
|
|
3361
3361
|
if (r.value) {
|
|
3362
3362
|
if ((((A = l.filter) == null ? void 0 : A.length) ?? 0) > 1) {
|
|
3363
|
-
const
|
|
3364
|
-
|
|
3363
|
+
const ie = (re = u.value) == null ? void 0 : re.find((y) => y.filterOperation === X.EQUAL_OR_GREATER_THAN), he = (O = u.value) == null ? void 0 : O.find((y) => y.filterOperation === X.LESS_THAN);
|
|
3364
|
+
ie && he && (k = {
|
|
3365
3365
|
filterOnColumn: l.column.field,
|
|
3366
3366
|
filterOperation: X.EQUAL,
|
|
3367
3367
|
filterMethod: "equal",
|
|
3368
|
-
filterValue:
|
|
3368
|
+
filterValue: ie.filterValue
|
|
3369
3369
|
});
|
|
3370
3370
|
} else if (k.filterOperation === X.EQUAL_OR_LESS_THAN || k.filterOperation === X.GREATER_THAN) {
|
|
3371
|
-
let
|
|
3371
|
+
let ie = W.fromISO(k.filterValue, {
|
|
3372
3372
|
zone: l.timeZone ?? "UTC"
|
|
3373
3373
|
});
|
|
3374
|
-
l.column.type === "date" || l.column.type === "slot" && l.column.slotType === "date" ?
|
|
3374
|
+
l.column.type === "date" || l.column.type === "slot" && l.column.slotType === "date" ? ie = ie.minus({ days: 1 }) : ie = ie.minus({ minutes: 1 }), k = {
|
|
3375
3375
|
filterOnColumn: l.column.field,
|
|
3376
3376
|
filterOperation: k.filterOperation,
|
|
3377
3377
|
filterMethod: k.filterOperation === X.EQUAL_OR_LESS_THAN ? "equalorlessthan" : "greaterthan",
|
|
3378
|
-
filterValue:
|
|
3378
|
+
filterValue: ie.plus({ milliseconds: 1 }).toISO() ?? ""
|
|
3379
3379
|
};
|
|
3380
3380
|
}
|
|
3381
|
-
} else if (i.value && (((
|
|
3382
|
-
const
|
|
3383
|
-
|
|
3381
|
+
} else if (i.value && (((Z = l.filter) == null ? void 0 : Z.length) ?? 0) > 1) {
|
|
3382
|
+
const ie = (Y = u.value) == null ? void 0 : Y.find((y) => y.filterOperation === X.EQUAL_OR_GREATER_THAN), he = (se = u.value) == null ? void 0 : se.find((y) => y.filterOperation === X.EQUAL_OR_LESS_THAN);
|
|
3383
|
+
ie && he && (k = {
|
|
3384
3384
|
filterOnColumn: l.column.field,
|
|
3385
3385
|
filterOperation: X.EQUAL,
|
|
3386
3386
|
filterMethod: "equal",
|
|
3387
3387
|
filterValue: {
|
|
3388
|
-
start:
|
|
3389
|
-
end:
|
|
3388
|
+
start: ie.filterValue,
|
|
3389
|
+
end: he.filterValue
|
|
3390
3390
|
}
|
|
3391
3391
|
});
|
|
3392
3392
|
}
|
|
@@ -3396,8 +3396,8 @@ const hn = {
|
|
|
3396
3396
|
set(k) {
|
|
3397
3397
|
let z = null;
|
|
3398
3398
|
if (r.value) {
|
|
3399
|
-
const A = k,
|
|
3400
|
-
if (
|
|
3399
|
+
const A = k, re = (A == null ? void 0 : A.filterMethod) && $(A.filterMethod, A.filterValue, "equal"), O = (A == null ? void 0 : A.filterMethod) && $(A.filterMethod, A.filterValue, "equalorlessthan"), Z = (A == null ? void 0 : A.filterMethod) && $(A.filterMethod, A.filterValue, "greaterthan");
|
|
3400
|
+
if (re) {
|
|
3401
3401
|
let Y = W.fromISO(A.filterValue, {
|
|
3402
3402
|
zone: l.timeZone ?? "UTC"
|
|
3403
3403
|
}).set({
|
|
@@ -3406,7 +3406,7 @@ const hn = {
|
|
|
3406
3406
|
});
|
|
3407
3407
|
const se = Y.toISO();
|
|
3408
3408
|
l.column.type === "date" || l.column.type === "slot" && l.column.slotType === "date" ? Y = Y.plus({ days: 1 }) : Y = Y.plus({ minutes: 1 });
|
|
3409
|
-
const
|
|
3409
|
+
const ie = Y.toISO();
|
|
3410
3410
|
z = [
|
|
3411
3411
|
{
|
|
3412
3412
|
filterOnColumn: l.column.field,
|
|
@@ -3418,10 +3418,10 @@ const hn = {
|
|
|
3418
3418
|
filterOnColumn: l.column.field,
|
|
3419
3419
|
filterOperation: X.LESS_THAN,
|
|
3420
3420
|
filterMethod: "lessthan",
|
|
3421
|
-
filterValue:
|
|
3421
|
+
filterValue: ie
|
|
3422
3422
|
}
|
|
3423
3423
|
];
|
|
3424
|
-
} else if (
|
|
3424
|
+
} else if (O || Z) {
|
|
3425
3425
|
let Y = W.fromISO(A.filterValue, {
|
|
3426
3426
|
zone: l.timeZone ?? "UTC"
|
|
3427
3427
|
}).set({
|
|
@@ -3431,16 +3431,16 @@ const hn = {
|
|
|
3431
3431
|
l.column.type === "date" || l.column.type === "slot" && l.column.slotType === "date" ? Y = Y.plus({ days: 1 }) : Y = Y.plus({ minutes: 1 }), z = [
|
|
3432
3432
|
{
|
|
3433
3433
|
filterOnColumn: l.column.field,
|
|
3434
|
-
filterOperation:
|
|
3435
|
-
filterMethod:
|
|
3434
|
+
filterOperation: O ? X.EQUAL_OR_LESS_THAN : X.GREATER_THAN,
|
|
3435
|
+
filterMethod: O ? "equalorlessthan" : "greaterthan",
|
|
3436
3436
|
filterValue: Y.minus({ milliseconds: 1 }).toISO()
|
|
3437
3437
|
}
|
|
3438
3438
|
];
|
|
3439
3439
|
}
|
|
3440
3440
|
} else if (i.value && (k != null && k.filterValue)) {
|
|
3441
|
-
const A = k.filterValue,
|
|
3441
|
+
const A = k.filterValue, re = W.fromISO(A.start, {
|
|
3442
3442
|
zone: l.timeZone ?? "UTC"
|
|
3443
|
-
}).toISO(),
|
|
3443
|
+
}).toISO(), O = W.fromISO(A.end, {
|
|
3444
3444
|
zone: l.timeZone ?? "UTC"
|
|
3445
3445
|
}).toISO();
|
|
3446
3446
|
z = [
|
|
@@ -3448,13 +3448,13 @@ const hn = {
|
|
|
3448
3448
|
filterOnColumn: l.column.field,
|
|
3449
3449
|
filterOperation: X.EQUAL_OR_GREATER_THAN,
|
|
3450
3450
|
filterMethod: "equalorgreaterthan",
|
|
3451
|
-
filterValue:
|
|
3451
|
+
filterValue: re
|
|
3452
3452
|
},
|
|
3453
3453
|
{
|
|
3454
3454
|
filterOnColumn: l.column.field,
|
|
3455
3455
|
filterOperation: X.EQUAL_OR_LESS_THAN,
|
|
3456
3456
|
filterMethod: "equalorlessthan",
|
|
3457
|
-
filterValue:
|
|
3457
|
+
filterValue: O
|
|
3458
3458
|
}
|
|
3459
3459
|
];
|
|
3460
3460
|
}
|
|
@@ -3476,51 +3476,52 @@ const hn = {
|
|
|
3476
3476
|
function $(k, z, A) {
|
|
3477
3477
|
return z !== void 0 && z !== "" && k === A && r.value;
|
|
3478
3478
|
}
|
|
3479
|
-
const
|
|
3479
|
+
const q = S(() => {
|
|
3480
3480
|
var k;
|
|
3481
3481
|
return ((k = h.value) == null ? void 0 : k.filterValue) ?? "";
|
|
3482
|
-
}), C = S(() =>
|
|
3482
|
+
}), C = S(() => q.value === "" ? null : q.value), U = S(() => q.value === "" ? null : q.value), T = S(() => cl(l.column));
|
|
3483
3483
|
function P(k, z) {
|
|
3484
|
-
var
|
|
3485
|
-
let A;
|
|
3486
|
-
const
|
|
3487
|
-
|
|
3488
|
-
|
|
3489
|
-
|
|
3490
|
-
|
|
3491
|
-
|
|
3492
|
-
|
|
3493
|
-
|
|
3494
|
-
|
|
3495
|
-
|
|
3496
|
-
|
|
3497
|
-
|
|
3498
|
-
|
|
3499
|
-
|
|
3500
|
-
|
|
3484
|
+
var ie;
|
|
3485
|
+
let A, re = (k == null ? void 0 : k.value) ?? z;
|
|
3486
|
+
const O = ((ie = h.value) == null ? void 0 : ie.filterValue.toString()) ?? "", Z = !!re.trim(), Y = !!O.trim();
|
|
3487
|
+
if (Z === !1 && Y && (re = ""), Z || Y) {
|
|
3488
|
+
if (h.value)
|
|
3489
|
+
A = me(b.value), A.filterValue = re;
|
|
3490
|
+
else if (Z && typeof l.column.field < "u") {
|
|
3491
|
+
const he = d();
|
|
3492
|
+
A = {
|
|
3493
|
+
filterOnColumn: l.column.field,
|
|
3494
|
+
filterMethod: X[he].replace("_", "").toLowerCase(),
|
|
3495
|
+
filterOperation: he,
|
|
3496
|
+
filterValue: re
|
|
3497
|
+
};
|
|
3498
|
+
} else
|
|
3499
|
+
return;
|
|
3500
|
+
h.value = A;
|
|
3501
|
+
}
|
|
3501
3502
|
}
|
|
3502
3503
|
function _(k, z) {
|
|
3503
3504
|
let A = (k == null ? void 0 : k.value) ?? z ?? 0;
|
|
3504
3505
|
if (typeof A == "string") {
|
|
3505
|
-
const
|
|
3506
|
-
A = Pl(A,
|
|
3507
|
-
maximumFractionDigits:
|
|
3508
|
-
minimumFractionDigits:
|
|
3506
|
+
const re = l.column.format === ee.INTEGER, O = (re ? ee.DECIMAL : l.column.format) ?? ee.DECIMAL;
|
|
3507
|
+
A = Pl(A, O, { additionalOptions: {
|
|
3508
|
+
maximumFractionDigits: re ? 0 : void 0,
|
|
3509
|
+
minimumFractionDigits: re ? 0 : void 0
|
|
3509
3510
|
} });
|
|
3510
3511
|
}
|
|
3511
3512
|
P(null, isNaN(A) ? "" : A.toString());
|
|
3512
3513
|
}
|
|
3513
3514
|
function E(k) {
|
|
3514
|
-
var
|
|
3515
|
+
var re;
|
|
3515
3516
|
let z, A = !1;
|
|
3516
3517
|
if (h.value)
|
|
3517
|
-
A = ((
|
|
3518
|
+
A = ((re = h.value) == null ? void 0 : re.filterValue) === k, z = me(h.value), z.filterValue = k ?? "";
|
|
3518
3519
|
else if (k !== null && typeof l.column.field < "u") {
|
|
3519
|
-
const
|
|
3520
|
+
const O = d();
|
|
3520
3521
|
z = {
|
|
3521
3522
|
filterOnColumn: l.column.field,
|
|
3522
|
-
filterMethod: X[
|
|
3523
|
-
filterOperation:
|
|
3523
|
+
filterMethod: X[O].replace("_", "").toLowerCase(),
|
|
3524
|
+
filterOperation: O,
|
|
3524
3525
|
filterValue: k
|
|
3525
3526
|
};
|
|
3526
3527
|
} else
|
|
@@ -3530,9 +3531,9 @@ const hn = {
|
|
|
3530
3531
|
function x(k) {
|
|
3531
3532
|
k === "Enter" && e("perform-data-request");
|
|
3532
3533
|
}
|
|
3533
|
-
const
|
|
3534
|
+
const ne = N(), w = N();
|
|
3534
3535
|
Qe("Enter", () => e("perform-data-request"), {
|
|
3535
|
-
target:
|
|
3536
|
+
target: ne,
|
|
3536
3537
|
dedupe: !0
|
|
3537
3538
|
}), Qe("Enter", () => e("perform-data-request"), {
|
|
3538
3539
|
target: w,
|
|
@@ -3544,7 +3545,7 @@ const hn = {
|
|
|
3544
3545
|
key: 0,
|
|
3545
3546
|
id: `${g(V)}-${k.column.name}`,
|
|
3546
3547
|
ref_key: "booleanSelectRef",
|
|
3547
|
-
ref:
|
|
3548
|
+
ref: ne,
|
|
3548
3549
|
disabled: k.loading,
|
|
3549
3550
|
class: "!cl-h-[2rem] cl-bg-white cl-border-none cl-font-normal cl-mb-0 cl-rounded-md cl-w-full",
|
|
3550
3551
|
onChange: z[0] || (z[0] = (A) => P(A.target))
|
|
@@ -3552,11 +3553,11 @@ const hn = {
|
|
|
3552
3553
|
On,
|
|
3553
3554
|
f("option", {
|
|
3554
3555
|
value: "true",
|
|
3555
|
-
selected:
|
|
3556
|
+
selected: q.value === "true"
|
|
3556
3557
|
}, I(g(n)("grid.true")), 9, Dn),
|
|
3557
3558
|
f("option", {
|
|
3558
3559
|
value: "false",
|
|
3559
|
-
selected:
|
|
3560
|
+
selected: q.value === "false"
|
|
3560
3561
|
}, I(g(n)("grid.false")), 9, En)
|
|
3561
3562
|
], 40, qn)) : r.value ? (p(), H(Xl, {
|
|
3562
3563
|
key: 1,
|
|
@@ -3582,7 +3583,7 @@ const hn = {
|
|
|
3582
3583
|
])) : k.column.type === "number" || k.column.type === "slot" && k.column.slotType === "number" ? (p(), v("div", Vn, [
|
|
3583
3584
|
D(We, {
|
|
3584
3585
|
id: `${g(V)}-${k.column.name}`,
|
|
3585
|
-
"model-value":
|
|
3586
|
+
"model-value": q.value === "" || isNaN(+q.value) ? null : +q.value,
|
|
3586
3587
|
format: m.value,
|
|
3587
3588
|
precision: k.column.format === g(ee).INTEGER ? 0 : g(dl)(m.value, { locale: g(a), additionalOptions: { maximumFractionDigits: 2 } }).maximumFractionDigits,
|
|
3588
3589
|
class: "cl-border-none cl-font-normal cl-h-[2rem] cl-mb-0 cl-text-xs cl-w-full lg:cl-text-base readonly-filter",
|
|
@@ -3600,7 +3601,7 @@ const hn = {
|
|
|
3600
3601
|
])) : k.column.type === "string" || k.column.type === "slot" && k.column.slotType === "string" ? (p(), v("div", In, [
|
|
3601
3602
|
D(Ve, {
|
|
3602
3603
|
id: `${g(V)}-${k.column.name}`,
|
|
3603
|
-
"model-value":
|
|
3604
|
+
"model-value": q.value,
|
|
3604
3605
|
class: "cl-border-none cl-font-normal cl-h-[2rem] cl-px-3 cl-text-xs lg:cl-text-base readonly-filter",
|
|
3605
3606
|
readonly: k.loading,
|
|
3606
3607
|
"onUpdate:modelValue": z[4] || (z[4] = (A) => P(null, A)),
|
|
@@ -3624,10 +3625,10 @@ const hn = {
|
|
|
3624
3625
|
(p(!0), v(J, null, ue(k.column.listEntries ?? [], (A) => (p(), v("option", {
|
|
3625
3626
|
key: A.value,
|
|
3626
3627
|
value: A.value,
|
|
3627
|
-
selected:
|
|
3628
|
+
selected: q.value === A.value.toString()
|
|
3628
3629
|
}, I(g(n)(A.translationKey)), 9, zn))), 128))
|
|
3629
|
-
], 40, Mn)) :
|
|
3630
|
-
i.value ?
|
|
3630
|
+
], 40, Mn)) : F("", !0),
|
|
3631
|
+
i.value ? F("", !0) : (p(), H(Tn, {
|
|
3631
3632
|
key: 6,
|
|
3632
3633
|
filter: b.value,
|
|
3633
3634
|
"onUpdate:filter": z[6] || (z[6] = (A) => b.value = A),
|
|
@@ -3635,9 +3636,9 @@ const hn = {
|
|
|
3635
3636
|
column: k.column,
|
|
3636
3637
|
"default-operation": d()
|
|
3637
3638
|
}, null, 8, ["filter", "loading", "column", "default-operation"]))
|
|
3638
|
-
])) :
|
|
3639
|
+
])) : F("", !0);
|
|
3639
3640
|
}
|
|
3640
|
-
}),
|
|
3641
|
+
}), Ln = /* @__PURE__ */ ye(Fn, [["__scopeId", "data-v-66e89969"]]), jn = { 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" }, Bn = { class: "cl-hidden lg:cl-table-row" }, Pn = ["onClick"], Hn = { class: "cl-flex cl-justify-end cl-w-full lg:cl-hidden" }, Wn = { class: "cl-col-span-2 lg:cl-hidden" }, Zn = ["onClick"], Gn = { class: "cl-font-normal cl-mr-1" }, Kn = /* @__PURE__ */ B({
|
|
3641
3642
|
__name: "cl-ui-grid-header",
|
|
3642
3643
|
props: {
|
|
3643
3644
|
request: {},
|
|
@@ -3649,7 +3650,7 @@ const hn = {
|
|
|
3649
3650
|
},
|
|
3650
3651
|
emits: ["update:request", "update:filterPanelOpen", "perform-data-request"],
|
|
3651
3652
|
setup(t, { emit: o }) {
|
|
3652
|
-
const l = t, e = o, { t: n } =
|
|
3653
|
+
const l = t, e = o, { t: n } = ce(), a = S({
|
|
3653
3654
|
get: () => l.request,
|
|
3654
3655
|
set: (i) => e("update:request", i)
|
|
3655
3656
|
});
|
|
@@ -3679,20 +3680,20 @@ const hn = {
|
|
|
3679
3680
|
f("tr", Bn, [
|
|
3680
3681
|
(p(!0), v(J, null, ue(i.columns, (s, m) => (p(), v("th", {
|
|
3681
3682
|
key: m,
|
|
3682
|
-
class:
|
|
3683
|
+
class: L(["cl-text-grey-3 cl-text-sm", {
|
|
3683
3684
|
"cl-cursor-pointer": g(Ke)(s) && i.loading === !1
|
|
3684
3685
|
}]),
|
|
3685
3686
|
onClick: (h) => g(Ke)(s) && i.loading === !1 ? u(s.field) : () => {
|
|
3686
3687
|
}
|
|
3687
3688
|
}, [
|
|
3688
3689
|
pe(I(s.caption) + " ", 1),
|
|
3689
|
-
Q(D(g(
|
|
3690
|
+
Q(D(g(G), {
|
|
3690
3691
|
class: "cl-inline-block",
|
|
3691
3692
|
icon: "ph:caret-up"
|
|
3692
3693
|
}, null, 512), [
|
|
3693
3694
|
[te, d(s, !0)]
|
|
3694
3695
|
]),
|
|
3695
|
-
Q(D(g(
|
|
3696
|
+
Q(D(g(G), {
|
|
3696
3697
|
class: "cl-inline-block",
|
|
3697
3698
|
icon: "ph:caret-down"
|
|
3698
3699
|
}, null, 512), [
|
|
@@ -3701,12 +3702,12 @@ const hn = {
|
|
|
3701
3702
|
], 10, Pn))), 128))
|
|
3702
3703
|
]),
|
|
3703
3704
|
f("tr", {
|
|
3704
|
-
class:
|
|
3705
|
+
class: L(["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", {
|
|
3705
3706
|
"cl-hidden lg:cl-table-row": !i.filterPanelOpen
|
|
3706
3707
|
}])
|
|
3707
3708
|
}, [
|
|
3708
3709
|
f("div", Hn, [
|
|
3709
|
-
D(g(
|
|
3710
|
+
D(g(G), {
|
|
3710
3711
|
class: "cl-text-grey-4 hover:cl-cursor-pointer hover:cl-text-link-default",
|
|
3711
3712
|
icon: "ph:x",
|
|
3712
3713
|
size: 16,
|
|
@@ -3715,7 +3716,7 @@ const hn = {
|
|
|
3715
3716
|
]),
|
|
3716
3717
|
(p(!0), v(J, null, ue(i.columns, (s, m) => (p(), v("th", {
|
|
3717
3718
|
key: m,
|
|
3718
|
-
class:
|
|
3719
|
+
class: L(["cl-grid cl-grid-cols-4 cl-py-1 cl-text-xs cl-w-full lg:cl-table-cell lg:cl-w-auto", {
|
|
3719
3720
|
"cl-hidden lg:cl-table-cell": !g(cl)(s)
|
|
3720
3721
|
}])
|
|
3721
3722
|
}, [
|
|
@@ -3726,21 +3727,21 @@ const hn = {
|
|
|
3726
3727
|
onClick: (h) => i.loading === !1 ? u(s.field) : void 0
|
|
3727
3728
|
}, [
|
|
3728
3729
|
f("span", Gn, I(g(n)("grid.sortBy")), 1),
|
|
3729
|
-
d(s, !0) ? (p(), H(g(
|
|
3730
|
+
d(s, !0) ? (p(), H(g(G), {
|
|
3730
3731
|
key: 0,
|
|
3731
3732
|
class: "cl-cursor-pointer cl-inline-block",
|
|
3732
3733
|
icon: "ph:caret-up"
|
|
3733
|
-
})) : d(s, !1) ? (p(), H(g(
|
|
3734
|
+
})) : d(s, !1) ? (p(), H(g(G), {
|
|
3734
3735
|
key: 1,
|
|
3735
3736
|
class: "cl-cursor-pointer cl-inline-block",
|
|
3736
3737
|
icon: "ph:caret-down"
|
|
3737
|
-
})) : (p(), H(g(
|
|
3738
|
+
})) : (p(), H(g(G), {
|
|
3738
3739
|
key: 2,
|
|
3739
3740
|
class: "cl-cursor-pointer cl-inline-block",
|
|
3740
3741
|
icon: "ph:minus"
|
|
3741
3742
|
}))
|
|
3742
|
-
], 8, Zn)) :
|
|
3743
|
-
D(
|
|
3743
|
+
], 8, Zn)) : F("", !0),
|
|
3744
|
+
D(Ln, {
|
|
3744
3745
|
class: "cl-col-span-4",
|
|
3745
3746
|
loading: i.loading,
|
|
3746
3747
|
filter: a.value.filters.filter((h) => h.filterOnColumn === s.field),
|
|
@@ -3785,7 +3786,7 @@ const hn = {
|
|
|
3785
3786
|
}, e.value = r;
|
|
3786
3787
|
}
|
|
3787
3788
|
ae(() => l.columns, () => d(e.value));
|
|
3788
|
-
const { t: u } =
|
|
3789
|
+
const { t: u } = ce();
|
|
3789
3790
|
return (r, i) => {
|
|
3790
3791
|
const c = Ae("icon");
|
|
3791
3792
|
return M(r.$slots, "search", fe(ge({ searchValue: e.value, performSearch: d })), () => [
|
|
@@ -3824,7 +3825,7 @@ const hn = {
|
|
|
3824
3825
|
},
|
|
3825
3826
|
emits: ["update:columns"],
|
|
3826
3827
|
setup(t, { emit: o }) {
|
|
3827
|
-
const l = t, e = o, { t: n } =
|
|
3828
|
+
const l = t, e = o, { t: n } = ce(), a = N(!1);
|
|
3828
3829
|
function d(i, c, s) {
|
|
3829
3830
|
s < i.length && s >= 0 && i.splice(s, 0, i.splice(c, 1)[0]);
|
|
3830
3831
|
}
|
|
@@ -3837,7 +3838,7 @@ const hn = {
|
|
|
3837
3838
|
d(s, i, m), e("update:columns", s);
|
|
3838
3839
|
}
|
|
3839
3840
|
return (i, c) => (p(), v(J, null, [
|
|
3840
|
-
D(
|
|
3841
|
+
D(Ce, le(i.$attrs, {
|
|
3841
3842
|
class: "cl-w-full",
|
|
3842
3843
|
size: "small",
|
|
3843
3844
|
disabled: i.loading,
|
|
@@ -3853,7 +3854,7 @@ const hn = {
|
|
|
3853
3854
|
default: R(() => [
|
|
3854
3855
|
Q(f("div", Jn, [
|
|
3855
3856
|
f("div", Xn, [
|
|
3856
|
-
D(g(
|
|
3857
|
+
D(g(G), {
|
|
3857
3858
|
class: "cl-absolute cl-cursor-pointer cl-right-3 cl-text-off-white cl-top-3",
|
|
3858
3859
|
icon: "ph:x",
|
|
3859
3860
|
size: 16,
|
|
@@ -3879,18 +3880,18 @@ const hn = {
|
|
|
3879
3880
|
]),
|
|
3880
3881
|
f("div", ir, [
|
|
3881
3882
|
s.visible === void 0 || s.visible === !0 ? (p(), v(J, { key: 0 }, [
|
|
3882
|
-
m !== 0 ? (p(), H(g(
|
|
3883
|
+
m !== 0 ? (p(), H(g(G), {
|
|
3883
3884
|
key: 0,
|
|
3884
3885
|
class: "cl-cursor-pointer cl-inline-block cl-mr-2",
|
|
3885
3886
|
icon: "ph:arrow-left",
|
|
3886
3887
|
onClick: (h) => r(m, "down")
|
|
3887
|
-
}, null, 8, ["onClick"])) :
|
|
3888
|
-
m !== i.columns.length - 1 ? (p(), H(g(
|
|
3888
|
+
}, null, 8, ["onClick"])) : F("", !0),
|
|
3889
|
+
m !== i.columns.length - 1 ? (p(), H(g(G), {
|
|
3889
3890
|
key: 1,
|
|
3890
3891
|
class: "cl-cursor-pointer cl-inline-block",
|
|
3891
3892
|
icon: "ph:arrow-right",
|
|
3892
3893
|
onClick: (h) => r(m, "up")
|
|
3893
|
-
}, null, 8, ["onClick"])) :
|
|
3894
|
+
}, null, 8, ["onClick"])) : F("", !0)
|
|
3894
3895
|
], 64)) : (p(), v("em", cr, I(g(n)("grid.hidden")), 1))
|
|
3895
3896
|
])
|
|
3896
3897
|
]))), 128))
|
|
@@ -3919,7 +3920,7 @@ const hn = {
|
|
|
3919
3920
|
},
|
|
3920
3921
|
emits: ["update:columns", "update:request", "data-request", "row-edit", "row-edit-cancelled", "edit-start", "edit-end", "row-select"],
|
|
3921
3922
|
setup(t, { emit: o }) {
|
|
3922
|
-
var
|
|
3923
|
+
var ne;
|
|
3923
3924
|
const l = t, e = o, n = Vl();
|
|
3924
3925
|
yl("cl-ui-grid-id", n.id);
|
|
3925
3926
|
const a = S(() => l.headerDisplayTimezone ?? l.timeZone), d = S(() => l.dateFormatLocale);
|
|
@@ -3957,7 +3958,7 @@ const hn = {
|
|
|
3957
3958
|
deep: !0,
|
|
3958
3959
|
immediate: !0
|
|
3959
3960
|
});
|
|
3960
|
-
function
|
|
3961
|
+
function q() {
|
|
3961
3962
|
$(!0), b(!1);
|
|
3962
3963
|
}
|
|
3963
3964
|
const C = S(() => l.data), U = N(!1), T = N(!1);
|
|
@@ -3983,7 +3984,7 @@ const hn = {
|
|
|
3983
3984
|
filters: V
|
|
3984
3985
|
};
|
|
3985
3986
|
}
|
|
3986
|
-
}), E = N(((
|
|
3987
|
+
}), E = N(((ne = l.request.filters.find((w) => w.filterMethod === "andcontains" || w.filterOperation === X.AND_CONTAINS)) == null ? void 0 : ne.filterValue) ?? ""), x = S(() => l.columns.filter((w) => (w.type === "string" || w.type === "slot" && w.slotType === "string") && w.searchable));
|
|
3987
3988
|
return (w, V) => (p(), v("div", dr, [
|
|
3988
3989
|
x.value.length > 0 ? (p(), H(Yn, {
|
|
3989
3990
|
key: 0,
|
|
@@ -3997,7 +3998,7 @@ const hn = {
|
|
|
3997
3998
|
M(w.$slots, "search", fe(ge(k)))
|
|
3998
3999
|
]),
|
|
3999
4000
|
_: 3
|
|
4000
|
-
}, 8, ["search-value", "request", "columns"])) :
|
|
4001
|
+
}, 8, ["search-value", "request", "columns"])) : F("", !0),
|
|
4001
4002
|
D(Te, { name: "fade" }, {
|
|
4002
4003
|
default: R(() => [
|
|
4003
4004
|
Q(f("div", pr, [
|
|
@@ -4033,7 +4034,7 @@ const hn = {
|
|
|
4033
4034
|
}, 8, ["edit-mode", "filter-panel-open", "columns", "options", "request", "loading"]),
|
|
4034
4035
|
f("div", fr, [
|
|
4035
4036
|
f("table", {
|
|
4036
|
-
class:
|
|
4037
|
+
class: L(["cl-delay-75 cl-min-h-[276px] cl-overflow-x-auto cl-overscroll-x-none cl-text-left cl-transition-opacity cl-w-full", {
|
|
4037
4038
|
"cl-opacity-40 cl-pointer-events-none": w.loading
|
|
4038
4039
|
}])
|
|
4039
4040
|
}, [
|
|
@@ -4054,7 +4055,7 @@ const hn = {
|
|
|
4054
4055
|
loading: w.loading,
|
|
4055
4056
|
"time-zone": w.timeZone,
|
|
4056
4057
|
"header-display-timezone": a.value,
|
|
4057
|
-
onPerformDataRequest:
|
|
4058
|
+
onPerformDataRequest: q
|
|
4058
4059
|
}, null, 8, ["request", "filter-panel-open", "columns", "options", "loading", "time-zone", "header-display-timezone"]),
|
|
4059
4060
|
D(ba, {
|
|
4060
4061
|
columns: r.value,
|
|
@@ -4079,7 +4080,7 @@ const hn = {
|
|
|
4079
4080
|
]), 1032, ["columns", "request", "data", "time-zone", "loading", "search-value", "options", "edit-mode"])
|
|
4080
4081
|
], 2)
|
|
4081
4082
|
]),
|
|
4082
|
-
D(
|
|
4083
|
+
D(La, {
|
|
4083
4084
|
request: m.value,
|
|
4084
4085
|
loading: w.loading,
|
|
4085
4086
|
"show-unsaved-changes-warning": U.value && P.value.disableUnsavedChangesWarning === !1,
|
|
@@ -4132,7 +4133,7 @@ const hn = {
|
|
|
4132
4133
|
},
|
|
4133
4134
|
setup(t) {
|
|
4134
4135
|
return (o, l) => (p(), v("div", {
|
|
4135
|
-
class:
|
|
4136
|
+
class: L(["md:cl-relative", {
|
|
4136
4137
|
"cl-bg-primary-default": o.colour === "default",
|
|
4137
4138
|
"cl-bg-blue-light": o.colour === "secondary"
|
|
4138
4139
|
}])
|
|
@@ -4142,7 +4143,7 @@ const hn = {
|
|
|
4142
4143
|
key: 0,
|
|
4143
4144
|
src: o.image,
|
|
4144
4145
|
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"
|
|
4145
|
-
}, null, 8, yr)) : (p(), H(g(
|
|
4146
|
+
}, null, 8, yr)) : (p(), H(g(G), {
|
|
4146
4147
|
key: 1,
|
|
4147
4148
|
class: "cl-hidden cl-m-4 cl-text-white md:cl-block",
|
|
4148
4149
|
icon: "ph:user-circle",
|
|
@@ -4150,17 +4151,17 @@ const hn = {
|
|
|
4150
4151
|
height: "48"
|
|
4151
4152
|
})),
|
|
4152
4153
|
f("div", {
|
|
4153
|
-
class:
|
|
4154
|
+
class: L(["cl-grow cl-hidden cl-my-4 md:cl-block", {
|
|
4154
4155
|
"cl-text-secondary-default": o.colour === "default",
|
|
4155
4156
|
"cl-text-white": o.colour === "secondary"
|
|
4156
4157
|
}])
|
|
4157
4158
|
}, [
|
|
4158
|
-
o.username ? (p(), v("div", wr, I(o.username), 1)) :
|
|
4159
|
-
o.group ? (p(), v("div", kr, I(o.group), 1)) :
|
|
4159
|
+
o.username ? (p(), v("div", wr, I(o.username), 1)) : F("", !0),
|
|
4160
|
+
o.group ? (p(), v("div", kr, I(o.group), 1)) : F("", !0)
|
|
4160
4161
|
], 2),
|
|
4161
4162
|
f("div", $r, [
|
|
4162
|
-
D(g(
|
|
4163
|
-
class:
|
|
4163
|
+
D(g(G), {
|
|
4164
|
+
class: L(["cl-transform-gpu cl-transition-transform", {
|
|
4164
4165
|
"cl-rotate-180": o.isOpen,
|
|
4165
4166
|
"cl-text-secondary-default": o.colour === "default",
|
|
4166
4167
|
"cl-text-white": o.colour === "secondary"
|
|
@@ -4231,12 +4232,12 @@ const hn = {
|
|
|
4231
4232
|
}
|
|
4232
4233
|
n("update:date", P);
|
|
4233
4234
|
}
|
|
4234
|
-
}), { locale: u } =
|
|
4235
|
+
}), { locale: u } = ce(), r = S(() => e.dateFormatLocale ?? u.value), i = S(() => fl(e.disabled, "auto")), c = S(() => Wl(r.value, e.type)), s = N(null), m = S(() => ml(e.date, e.initialDate, a.value, e.type)), h = N(null), b = N();
|
|
4235
4236
|
function $(T) {
|
|
4236
4237
|
const P = Zl(T, a.value);
|
|
4237
4238
|
d.value = P, h.value = T, b.value.move(P.start), b.value.hidePopover();
|
|
4238
4239
|
}
|
|
4239
|
-
const
|
|
4240
|
+
const q = S(() => Gl(d.value, a.value, r.value)), C = zl("(min-width: 768px)"), U = S(() => C.value ? 2 : 1);
|
|
4240
4241
|
return o({
|
|
4241
4242
|
focus() {
|
|
4242
4243
|
var T;
|
|
@@ -4300,7 +4301,7 @@ const hn = {
|
|
|
4300
4301
|
required: T.required,
|
|
4301
4302
|
disabled: T.disabled,
|
|
4302
4303
|
"range-selected": d.value !== null,
|
|
4303
|
-
title:
|
|
4304
|
+
title: q.value,
|
|
4304
4305
|
placeholder: null,
|
|
4305
4306
|
onTogglePopover: _,
|
|
4306
4307
|
onClear: P[2] || (P[2] = (E) => {
|
|
@@ -4315,7 +4316,7 @@ const hn = {
|
|
|
4315
4316
|
"selected-quick-date": h.value,
|
|
4316
4317
|
"current-date-range": e.date,
|
|
4317
4318
|
onQuickDateSelected: $
|
|
4318
|
-
}, null, 8, ["scope", "selected-quick-date", "current-date-range"])) :
|
|
4319
|
+
}, null, 8, ["scope", "selected-quick-date", "current-date-range"])) : F("", !0)
|
|
4319
4320
|
]),
|
|
4320
4321
|
_: 1
|
|
4321
4322
|
}, 8, ["modelValue", "locale", "is24hr", "timezone", "columns", "popover", "min-date", "max-date", "initial-page"])) : (p(), H(g(Me), {
|
|
@@ -4354,7 +4355,7 @@ const hn = {
|
|
|
4354
4355
|
_: 1
|
|
4355
4356
|
}, 8, ["modelValue", "locale", "is24hr", "timezone", "mode", "min-date", "max-date", "initial-page", "is-required", "masks", "popover"]));
|
|
4356
4357
|
}
|
|
4357
|
-
}),
|
|
4358
|
+
}), Fe = [
|
|
4358
4359
|
...Jl,
|
|
4359
4360
|
"dateRange"
|
|
4360
4361
|
], Or = ["disabled", "step", "placeholder", "name"], Dr = /* @__PURE__ */ B({
|
|
@@ -4383,7 +4384,7 @@ const hn = {
|
|
|
4383
4384
|
c(r.value) === !1 && u(i.value), n("update:modelValue", r.value);
|
|
4384
4385
|
}
|
|
4385
4386
|
function h($) {
|
|
4386
|
-
return Object.values($).some((
|
|
4387
|
+
return Object.values($).some((q) => q !== "");
|
|
4387
4388
|
}
|
|
4388
4389
|
function b($) {
|
|
4389
4390
|
c(r.value) && n("change", $, r.value ?? 0);
|
|
@@ -4407,12 +4408,12 @@ const hn = {
|
|
|
4407
4408
|
var $;
|
|
4408
4409
|
($ = a.value) == null || $.blur();
|
|
4409
4410
|
}
|
|
4410
|
-
}), ($,
|
|
4411
|
+
}), ($, q) => (p(), v("input", {
|
|
4411
4412
|
ref_key: "inputRef",
|
|
4412
4413
|
ref: a,
|
|
4413
4414
|
type: "text",
|
|
4414
4415
|
disabled: $.disabled,
|
|
4415
|
-
class:
|
|
4416
|
+
class: L(["!cl-mb-1 cl-block cl-border cl-duration-300 cl-h-full cl-p-3 cl-rounded-lg cl-transition cl-w-full focus:cl-outline-none", {
|
|
4416
4417
|
"hover:!cl-border-grey-3": $.disabled === !1,
|
|
4417
4418
|
"!cl-cursor-default": $.disabled,
|
|
4418
4419
|
"!cl-border-danger-default": !$.isValid,
|
|
@@ -4426,7 +4427,7 @@ const hn = {
|
|
|
4426
4427
|
onKeydown: be(s, ["enter"]),
|
|
4427
4428
|
onChange: b,
|
|
4428
4429
|
onBlur: m,
|
|
4429
|
-
onFocus:
|
|
4430
|
+
onFocus: q[0] || (q[0] = (C) => n("focus"))
|
|
4430
4431
|
}, null, 42, Or));
|
|
4431
4432
|
}
|
|
4432
4433
|
}), Er = (t) => (Rl("data-v-5cb4ccea"), t = t(), Ml(), t), Ar = { class: "cl-flex cl-items-start" }, Vr = { class: "cl-w-full" }, Nr = /* @__PURE__ */ Er(() => /* @__PURE__ */ f("span", null, null, -1)), Ir = ["min", "max", "step", "disabled"], Rr = { class: "cl-bg-transparent cl-text-center cl-text-sm cl-w-full" }, Mr = { class: "cl-bg-transparent cl-text-sm" }, Ur = {
|
|
@@ -4450,7 +4451,7 @@ const hn = {
|
|
|
4450
4451
|
Nl((i) => ({
|
|
4451
4452
|
"59055b28": d.value
|
|
4452
4453
|
}));
|
|
4453
|
-
const l = t, e = Se(t, "value"), { t: n } =
|
|
4454
|
+
const l = t, e = Se(t, "value"), { t: n } = ce(), a = N(), d = S(() => {
|
|
4454
4455
|
let i = (e.value - l.min) / (l.max - l.min) * 100;
|
|
4455
4456
|
return i < 35 && i > 0 ? i < 20 ? i += 0.5 : i += 0.25 : i > 65 && i < 100 && (i > 80 ? i -= 0.5 : i -= 0.25), `${i}%`;
|
|
4456
4457
|
}), u = S(() => l.min <= l.max && l.step > 0), r = N(!1);
|
|
@@ -4462,7 +4463,7 @@ const hn = {
|
|
|
4462
4463
|
}), (i, c) => u.value ? (p(), v("div", fe(le({ key: 0 }, i.$attrs)), [
|
|
4463
4464
|
f("div", Ar, [
|
|
4464
4465
|
f("span", {
|
|
4465
|
-
class:
|
|
4466
|
+
class: L(["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", {
|
|
4466
4467
|
"cl-bg-white cl-cursor-pointer hover:cl-border-grey-1": !i.disabled,
|
|
4467
4468
|
"cl-bg-grey-0": i.disabled
|
|
4468
4469
|
}]),
|
|
@@ -4511,7 +4512,7 @@ const hn = {
|
|
|
4511
4512
|
], 64))
|
|
4512
4513
|
]),
|
|
4513
4514
|
f("span", {
|
|
4514
|
-
class:
|
|
4515
|
+
class: L(["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", {
|
|
4515
4516
|
"cl-bg-white cl-cursor-pointer hover:cl-border-grey-1": !i.disabled,
|
|
4516
4517
|
"cl-bg-grey-0": i.disabled
|
|
4517
4518
|
}]),
|
|
@@ -4522,13 +4523,13 @@ const hn = {
|
|
|
4522
4523
|
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",
|
|
4523
4524
|
onClick: c[4] || (c[4] = (s) => r.value = !r.value)
|
|
4524
4525
|
}, [
|
|
4525
|
-
D(g(
|
|
4526
|
+
D(g(G), { icon: "ph:arrows-left-right-thin" })
|
|
4526
4527
|
])
|
|
4527
4528
|
])
|
|
4528
4529
|
])
|
|
4529
4530
|
], 16)) : (p(), v("div", Ur, I(g(n)("slider.invalidProps")), 1));
|
|
4530
4531
|
}
|
|
4531
|
-
}),
|
|
4532
|
+
}), Fr = /* @__PURE__ */ ye(zr, [["__scopeId", "data-v-5cb4ccea"]]);
|
|
4532
4533
|
function Ol(t) {
|
|
4533
4534
|
let o = !1;
|
|
4534
4535
|
switch (t) {
|
|
@@ -4546,7 +4547,7 @@ function Ol(t) {
|
|
|
4546
4547
|
}
|
|
4547
4548
|
return o;
|
|
4548
4549
|
}
|
|
4549
|
-
function
|
|
4550
|
+
function Lr(t) {
|
|
4550
4551
|
return t === "number" || t === "range";
|
|
4551
4552
|
}
|
|
4552
4553
|
function Dl(t) {
|
|
@@ -4564,31 +4565,31 @@ function Dl(t) {
|
|
|
4564
4565
|
}
|
|
4565
4566
|
return o;
|
|
4566
4567
|
}
|
|
4567
|
-
function
|
|
4568
|
+
function Le(t) {
|
|
4568
4569
|
return t === "button" || t === "submit" || t === "reset";
|
|
4569
4570
|
}
|
|
4570
4571
|
function jr(t) {
|
|
4571
4572
|
let o;
|
|
4572
4573
|
switch (t) {
|
|
4573
4574
|
case "datetime":
|
|
4574
|
-
o =
|
|
4575
|
+
o = Fe[1];
|
|
4575
4576
|
break;
|
|
4576
4577
|
case "time":
|
|
4577
|
-
o =
|
|
4578
|
+
o = Fe[2];
|
|
4578
4579
|
break;
|
|
4579
4580
|
case "dateRange":
|
|
4580
|
-
o =
|
|
4581
|
+
o = Fe[3];
|
|
4581
4582
|
break;
|
|
4582
4583
|
case "date":
|
|
4583
4584
|
default:
|
|
4584
|
-
o =
|
|
4585
|
+
o = Fe[0];
|
|
4585
4586
|
break;
|
|
4586
4587
|
}
|
|
4587
4588
|
return o;
|
|
4588
4589
|
}
|
|
4589
4590
|
function El(t, o) {
|
|
4590
4591
|
const l = t.target;
|
|
4591
|
-
return
|
|
4592
|
+
return Lr(o) ? l.valueAsNumber : Le(o) ? l.checked : l.value;
|
|
4592
4593
|
}
|
|
4593
4594
|
const Br = { class: "cl-flex cl-justify-between" }, Pr = { class: "cl-w-full" }, Hr = {
|
|
4594
4595
|
key: 0,
|
|
@@ -4653,8 +4654,8 @@ const Br = { class: "cl-flex cl-justify-between" }, Pr = { class: "cl-w-full" },
|
|
|
4653
4654
|
set: (y) => w(y, !1)
|
|
4654
4655
|
}), h = S({
|
|
4655
4656
|
get: () => e.modelValue,
|
|
4656
|
-
set: (y) =>
|
|
4657
|
-
}), b = S(() => typeof e.min == "number" ? e.min.toString() : e.min), $ = S(() => typeof e.max == "number" ? e.max.toString() : e.max),
|
|
4657
|
+
set: (y) => ne(y)
|
|
4658
|
+
}), b = S(() => typeof e.min == "number" ? e.min.toString() : e.min), $ = S(() => typeof e.max == "number" ? e.max.toString() : e.max), q = S(() => typeof e.min == "number" || e.min === null ? e.min : parseFloat(e.min)), C = S(() => typeof e.max == "number" || e.max === null ? e.max : parseFloat(e.max)), U = S(() => e.messageWhenValid.trim() !== "" ? e.messageWhenValid : ""), T = N(!0), P = N(!0), _ = N([]), E = S(() => {
|
|
4658
4659
|
var y, j;
|
|
4659
4660
|
return [
|
|
4660
4661
|
...((y = _.value) == null ? void 0 : y.filter((K) => ((K == null ? void 0 : K.length) ?? 0) > 0)) ?? [],
|
|
@@ -4670,7 +4671,7 @@ const Br = { class: "cl-flex cl-justify-between" }, Pr = { class: "cl-w-full" },
|
|
|
4670
4671
|
},
|
|
4671
4672
|
...e.currencyOptions
|
|
4672
4673
|
}));
|
|
4673
|
-
async function
|
|
4674
|
+
async function ne(y) {
|
|
4674
4675
|
e.validateOn === "input" && await V(y), n("update:model-value", y);
|
|
4675
4676
|
}
|
|
4676
4677
|
async function w(y, j) {
|
|
@@ -4697,7 +4698,7 @@ const Br = { class: "cl-flex cl-justify-between" }, Pr = { class: "cl-w-full" },
|
|
|
4697
4698
|
return e.inputType === "color" && m.value && (e.disabled ? y = "background: #999999" : y = `background: ${m.value};`), y;
|
|
4698
4699
|
}
|
|
4699
4700
|
function z(y) {
|
|
4700
|
-
|
|
4701
|
+
Le(e.inputType) ? (y.preventDefault(), n("click", y)) : e.inputType === "checkbox" && n("click", y);
|
|
4701
4702
|
}
|
|
4702
4703
|
function A(y) {
|
|
4703
4704
|
if (a.value) {
|
|
@@ -4708,7 +4709,7 @@ const Br = { class: "cl-flex cl-justify-between" }, Pr = { class: "cl-w-full" },
|
|
|
4708
4709
|
n("input", j, a.value.valueAsNumber), n("change", y, a.value.valueAsNumber);
|
|
4709
4710
|
}
|
|
4710
4711
|
}
|
|
4711
|
-
function
|
|
4712
|
+
function re(y) {
|
|
4712
4713
|
if (a.value) {
|
|
4713
4714
|
a.value.stepDown(), a.value.focus(), w(a.value.valueAsNumber, !1);
|
|
4714
4715
|
const j = {
|
|
@@ -4717,11 +4718,11 @@ const Br = { class: "cl-flex cl-justify-between" }, Pr = { class: "cl-w-full" },
|
|
|
4717
4718
|
n("input", j, a.value.valueAsNumber), n("change", y, a.value.valueAsNumber);
|
|
4718
4719
|
}
|
|
4719
4720
|
}
|
|
4720
|
-
function
|
|
4721
|
+
function O(y) {
|
|
4721
4722
|
u.value = y;
|
|
4722
4723
|
}
|
|
4723
|
-
async function
|
|
4724
|
-
r.value = !0,
|
|
4724
|
+
async function Z() {
|
|
4725
|
+
r.value = !0, O(!1), e.validateOn === "change" && await V(m.value);
|
|
4725
4726
|
}
|
|
4726
4727
|
function Y() {
|
|
4727
4728
|
document.querySelectorAll(":-webkit-autofill").length < 1 && s.value++;
|
|
@@ -4729,14 +4730,14 @@ const Br = { class: "cl-flex cl-justify-between" }, Pr = { class: "cl-w-full" },
|
|
|
4729
4730
|
function se(y) {
|
|
4730
4731
|
y.target.blur();
|
|
4731
4732
|
}
|
|
4732
|
-
async function
|
|
4733
|
+
async function ie(y, j) {
|
|
4733
4734
|
if (y) {
|
|
4734
4735
|
const K = e.inputType === "currency" ? j ?? 0 : El(y, e.inputType);
|
|
4735
4736
|
e.validateOn === "change" && await V(K), n("change", y, K);
|
|
4736
4737
|
}
|
|
4737
4738
|
}
|
|
4738
|
-
async function
|
|
4739
|
-
await
|
|
4739
|
+
async function he() {
|
|
4740
|
+
await Z(), Y();
|
|
4740
4741
|
}
|
|
4741
4742
|
return Pe(() => {
|
|
4742
4743
|
e.validateImmediately && w(e.modelValue, !0);
|
|
@@ -4761,8 +4762,8 @@ const Br = { class: "cl-flex cl-justify-between" }, Pr = { class: "cl-w-full" },
|
|
|
4761
4762
|
class: "cl-align-top cl-border-none cl-inline-block cl-text-left"
|
|
4762
4763
|
}), [
|
|
4763
4764
|
f("div", {
|
|
4764
|
-
onMouseenter: j[13] || (j[13] = (K) =>
|
|
4765
|
-
onMouseleave: j[14] || (j[14] = (K) =>
|
|
4765
|
+
onMouseenter: j[13] || (j[13] = (K) => O(!0)),
|
|
4766
|
+
onMouseleave: j[14] || (j[14] = (K) => O(!1))
|
|
4766
4767
|
}, [
|
|
4767
4768
|
f("div", Br, [
|
|
4768
4769
|
f("div", Pr, [
|
|
@@ -4770,7 +4771,7 @@ const Br = { class: "cl-flex cl-justify-between" }, Pr = { class: "cl-w-full" },
|
|
|
4770
4771
|
[te, y.showLabel && y.label !== ""]
|
|
4771
4772
|
])
|
|
4772
4773
|
]),
|
|
4773
|
-
i.value ? (p(), v("label", Hr, " * ")) : y.isRequired && y.requiredText.length ? (p(), v("label", Wr, I(y.requiredText), 1)) :
|
|
4774
|
+
i.value ? (p(), v("label", Hr, " * ")) : y.isRequired && y.requiredText.length ? (p(), v("label", Wr, I(y.requiredText), 1)) : F("", !0)
|
|
4774
4775
|
]),
|
|
4775
4776
|
y.inputType !== "range" && y.inputType !== "currency" && !g(Dl)(y.inputType) ? (p(), v("div", Zr, [
|
|
4776
4777
|
Q(f("input", le({
|
|
@@ -4779,13 +4780,13 @@ const Br = { class: "cl-flex cl-justify-between" }, Pr = { class: "cl-w-full" },
|
|
|
4779
4780
|
"onUpdate:modelValue": j[0] || (j[0] = (K) => m.value = K)
|
|
4780
4781
|
}, y.$attrs, {
|
|
4781
4782
|
class: ["!cl-mb-1 cl-block cl-border cl-duration-300 cl-h-full cl-transition cl-w-full focus:cl-outline-none", {
|
|
4782
|
-
"hover:!cl-border-grey-3": y.disabled === !1 && !g(
|
|
4783
|
+
"hover:!cl-border-grey-3": y.disabled === !1 && !g(Le)(y.inputType),
|
|
4783
4784
|
"!cl-cursor-default": y.disabled,
|
|
4784
4785
|
"!cl-border-danger-default": !T.value,
|
|
4785
4786
|
"!cl-border-primary-default": T.value && y.highlightWhenValid,
|
|
4786
|
-
"cl-border-grey-0 focus:cl-border-blue-light": T.value && !g(
|
|
4787
|
+
"cl-border-grey-0 focus:cl-border-blue-light": T.value && !g(Le)(y.inputType),
|
|
4787
4788
|
"!cl-p-2": y.inputType === "checkbox" || y.inputType === "radio",
|
|
4788
|
-
"cl-p-3 cl-rounded-lg": !g(
|
|
4789
|
+
"cl-p-3 cl-rounded-lg": !g(Le)(y.inputType),
|
|
4789
4790
|
[`${y.inputSpecificClasses}`]: y.inputSpecificClasses !== ""
|
|
4790
4791
|
}],
|
|
4791
4792
|
style: k(),
|
|
@@ -4801,12 +4802,12 @@ const Br = { class: "cl-flex cl-justify-between" }, Pr = { class: "cl-w-full" },
|
|
|
4801
4802
|
autocomplete: y.autocomplete,
|
|
4802
4803
|
onClick: j[1] || (j[1] = (K) => z(K)),
|
|
4803
4804
|
onFocus: j[2] || (j[2] = (K) => n("focus")),
|
|
4804
|
-
onBlur: oe(
|
|
4805
|
+
onBlur: oe(he, ["self"]),
|
|
4805
4806
|
onMousewheelPassive: se,
|
|
4806
4807
|
onInput: j[3] || (j[3] = (K) => {
|
|
4807
4808
|
n("input", K, g(El)(K, y.inputType));
|
|
4808
4809
|
}),
|
|
4809
|
-
onChange:
|
|
4810
|
+
onChange: ie
|
|
4810
4811
|
}), null, 16, Gr), [
|
|
4811
4812
|
[Al, m.value]
|
|
4812
4813
|
]),
|
|
@@ -4816,23 +4817,23 @@ const Br = { class: "cl-flex cl-justify-between" }, Pr = { class: "cl-w-full" },
|
|
|
4816
4817
|
}, {
|
|
4817
4818
|
default: R(() => [
|
|
4818
4819
|
y.inputType === "number" && !y.disabled && y.showArrows ? Q((p(), v("div", Kr, [
|
|
4819
|
-
D(g(
|
|
4820
|
+
D(g(G), {
|
|
4820
4821
|
icon: "ph:caret-up-bold",
|
|
4821
4822
|
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",
|
|
4822
4823
|
onClick: A,
|
|
4823
4824
|
onMousedown: j[4] || (j[4] = oe(() => {
|
|
4824
4825
|
}, ["prevent"]))
|
|
4825
4826
|
}),
|
|
4826
|
-
D(g(
|
|
4827
|
+
D(g(G), {
|
|
4827
4828
|
icon: "ph:caret-down-bold",
|
|
4828
4829
|
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",
|
|
4829
|
-
onClick:
|
|
4830
|
+
onClick: re,
|
|
4830
4831
|
onMousedown: j[5] || (j[5] = oe(() => {
|
|
4831
4832
|
}, ["prevent"]))
|
|
4832
4833
|
})
|
|
4833
4834
|
], 512)), [
|
|
4834
4835
|
[te, u.value]
|
|
4835
|
-
]) :
|
|
4836
|
+
]) : F("", !0)
|
|
4836
4837
|
]),
|
|
4837
4838
|
_: 1
|
|
4838
4839
|
})
|
|
@@ -4852,9 +4853,9 @@ const Br = { class: "cl-flex cl-justify-between" }, Pr = { class: "cl-w-full" },
|
|
|
4852
4853
|
group: y.group,
|
|
4853
4854
|
step: y.step,
|
|
4854
4855
|
"currency-options": x.value,
|
|
4855
|
-
onChange: j[7] || (j[7] = (K, qe) =>
|
|
4856
|
+
onChange: j[7] || (j[7] = (K, qe) => ie(K, qe)),
|
|
4856
4857
|
onFocus: j[8] || (j[8] = (K) => n("focus")),
|
|
4857
|
-
onBlur:
|
|
4858
|
+
onBlur: Z
|
|
4858
4859
|
}), null, 16, ["modelValue", "disabled", "placeholder", "is-valid", "highlight-when-valid", "input-specific-classes", "group", "step", "currency-options"])
|
|
4859
4860
|
])) : g(Dl)(y.inputType) ? (p(), H(g(qr), le({ key: 2 }, y.$attrs, {
|
|
4860
4861
|
ref_key: "inputElement",
|
|
@@ -4876,30 +4877,30 @@ const Br = { class: "cl-flex cl-justify-between" }, Pr = { class: "cl-w-full" },
|
|
|
4876
4877
|
"initial-date": y.initialDate,
|
|
4877
4878
|
"quick-date-scope": y.quickDateScope,
|
|
4878
4879
|
"date-format-locale": y.dateFormatLocale,
|
|
4879
|
-
onBlur: oe(
|
|
4880
|
+
onBlur: oe(Z, ["self"]),
|
|
4880
4881
|
onFocus: j[10] || (j[10] = (K) => n("focus"))
|
|
4881
4882
|
}), null, 16, ["date", "class", "disabled", "required", "type", "time-zone", "min", "max", "placeholder", "initial-date", "quick-date-scope", "date-format-locale"])) : y.inputType === "range" && typeof m.value == "number" ? (p(), v("div", _r, [
|
|
4882
|
-
D(g(
|
|
4883
|
+
D(g(Fr), {
|
|
4883
4884
|
ref_key: "inputElement",
|
|
4884
4885
|
ref: a,
|
|
4885
4886
|
value: m.value,
|
|
4886
4887
|
"onUpdate:value": j[11] || (j[11] = (K) => m.value = K),
|
|
4887
|
-
min:
|
|
4888
|
+
min: q.value ?? 0,
|
|
4888
4889
|
max: C.value ?? 1e3,
|
|
4889
4890
|
step: y.step,
|
|
4890
4891
|
placeholder: c.value,
|
|
4891
4892
|
"enforce-step": !0,
|
|
4892
4893
|
disabled: y.disabled,
|
|
4893
|
-
onBlur: oe(
|
|
4894
|
+
onBlur: oe(Z, ["self"]),
|
|
4894
4895
|
onFocus: j[12] || (j[12] = (K) => n("focus"))
|
|
4895
4896
|
}, null, 8, ["value", "min", "max", "step", "placeholder", "disabled"])
|
|
4896
|
-
])) :
|
|
4897
|
+
])) : F("", !0)
|
|
4897
4898
|
], 32),
|
|
4898
|
-
T.value && U.value && P.value ? (p(), v("div", xr, I(U.value), 1)) :
|
|
4899
|
-
!T.value && E.value.length > 0 && y.showValidationMessages && P.value ? (p(), v("div", Yr, I(E.value), 1)) :
|
|
4899
|
+
T.value && U.value && P.value ? (p(), v("div", xr, I(U.value), 1)) : F("", !0),
|
|
4900
|
+
!T.value && E.value.length > 0 && y.showValidationMessages && P.value ? (p(), v("div", Yr, I(E.value), 1)) : F("", !0)
|
|
4900
4901
|
], 16));
|
|
4901
4902
|
}
|
|
4902
|
-
}), Xr = /* @__PURE__ */
|
|
4903
|
+
}), Xr = /* @__PURE__ */ ye(Jr, [["__scopeId", "data-v-2373f106"]]), es = [
|
|
4903
4904
|
"button",
|
|
4904
4905
|
"checkbox",
|
|
4905
4906
|
"color",
|
|
@@ -4916,7 +4917,7 @@ const Br = { class: "cl-flex cl-justify-between" }, Pr = { class: "cl-w-full" },
|
|
|
4916
4917
|
"tel",
|
|
4917
4918
|
"text",
|
|
4918
4919
|
"url",
|
|
4919
|
-
...
|
|
4920
|
+
...Fe
|
|
4920
4921
|
];
|
|
4921
4922
|
function nl(t) {
|
|
4922
4923
|
return /[a-z]{2}-[A-Z]{2}/gm.test(t.localeCode);
|
|
@@ -4947,7 +4948,7 @@ const os = {
|
|
|
4947
4948
|
},
|
|
4948
4949
|
emits: ["language-select"],
|
|
4949
4950
|
setup(t, { emit: o }) {
|
|
4950
|
-
const l = t, e = o, { locale: n } =
|
|
4951
|
+
const l = t, e = o, { locale: n } = ce(), a = N(!1), d = S(() => l.supportedLanguages.find((c) => c.localeCode === n.value) ?? r(l.supportedLanguages, n.value) ?? l.defaultLangauge), u = S(() => l.supportedLanguages.filter((c) => nl(c)).sort((c, s) => c.nativeName > s.nativeName ? 1 : s.nativeName > c.nativeName ? -1 : 0));
|
|
4951
4952
|
function r(c, s) {
|
|
4952
4953
|
const m = s.split("-")[0];
|
|
4953
4954
|
return c.find((b) => b.localeCode.split("-")[0] === m) ?? null;
|
|
@@ -4959,13 +4960,13 @@ const os = {
|
|
|
4959
4960
|
c && (a.value = !1);
|
|
4960
4961
|
}), (c, s) => d.value !== null && g(nl)(d.value) ? (p(), v("div", os, [
|
|
4961
4962
|
f("div", {
|
|
4962
|
-
class:
|
|
4963
|
+
class: L(["cl-flex cl-items-center", {
|
|
4963
4964
|
"cl-cursor-pointer": !c.disabled
|
|
4964
4965
|
}]),
|
|
4965
4966
|
onClick: i
|
|
4966
4967
|
}, [
|
|
4967
4968
|
f("span", {
|
|
4968
|
-
class:
|
|
4969
|
+
class: L(["cl-font-semibold cl-text-xs", {
|
|
4969
4970
|
"cl-opacity-50": c.disabled
|
|
4970
4971
|
}])
|
|
4971
4972
|
}, I(d.value.nativeName), 3)
|
|
@@ -4990,7 +4991,7 @@ const os = {
|
|
|
4990
4991
|
]),
|
|
4991
4992
|
_: 1
|
|
4992
4993
|
})
|
|
4993
|
-
])) :
|
|
4994
|
+
])) : F("", !0);
|
|
4994
4995
|
}
|
|
4995
4996
|
}), is = { class: "cl-relative" }, cs = { class: "cl-h-full cl-z-0 xl:cl-h-screen" }, us = { 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" }, ds = { class: "cl-col-span-10 lg:cl-col-span-3" }, ps = {
|
|
4996
4997
|
key: 0,
|
|
@@ -5006,7 +5007,7 @@ const os = {
|
|
|
5006
5007
|
},
|
|
5007
5008
|
emits: ["login", "update:errors"],
|
|
5008
5009
|
setup(t, { emit: o }) {
|
|
5009
|
-
const l = o, { t: e } =
|
|
5010
|
+
const l = o, { t: e } = ce(), n = N(""), a = N(""), d = N("password"), u = S(() => ct(n.value));
|
|
5010
5011
|
function r() {
|
|
5011
5012
|
const c = {
|
|
5012
5013
|
username: n.value,
|
|
@@ -5030,16 +5031,16 @@ const os = {
|
|
|
5030
5031
|
]),
|
|
5031
5032
|
c.$slots["language-switcher"] ? (p(), v("div", ps, [
|
|
5032
5033
|
M(c.$slots, "language-switcher")
|
|
5033
|
-
])) :
|
|
5034
|
+
])) : F("", !0),
|
|
5034
5035
|
f("div", {
|
|
5035
|
-
class:
|
|
5036
|
+
class: L(["cl-gap-y-4 cl-grid cl-grid-cols-1 lg:cl-gap-x-2 lg:cl-grid-cols-8", {
|
|
5036
5037
|
"cl-col-span-7": !c.$slots["language-switcher"],
|
|
5037
5038
|
"cl-col-span-6": c.$slots["language-switcher"]
|
|
5038
5039
|
}])
|
|
5039
5040
|
}, [
|
|
5040
5041
|
f("div", fs, [
|
|
5041
5042
|
f("div", ms, [
|
|
5042
|
-
D(g(
|
|
5043
|
+
D(g(G), {
|
|
5043
5044
|
class: "cl-absolute cl-left-3 cl-top-3 cl-z-10",
|
|
5044
5045
|
icon: "ph:user",
|
|
5045
5046
|
size: 18
|
|
@@ -5050,7 +5051,7 @@ const os = {
|
|
|
5050
5051
|
modelValue: n.value,
|
|
5051
5052
|
"onUpdate:modelValue": s[0] || (s[0] = (m) => n.value = m),
|
|
5052
5053
|
modelModifiers: { trim: !0 },
|
|
5053
|
-
class:
|
|
5054
|
+
class: L(["cl-border-2 cl-outline-none cl-p-2 cl-pl-9 cl-text-grey-5 cl-text-sm", {
|
|
5054
5055
|
"!cl-border-primary-default hover:!cl-border-grey-3 focus-within:!cl-border-link-light": n.value !== "" && u.value,
|
|
5055
5056
|
"!cl-border-danger-dark hover:!cl-border-grey-3 focus-within:!cl-border-link-light": n.value !== "" && !u.value
|
|
5056
5057
|
}]),
|
|
@@ -5064,18 +5065,18 @@ const os = {
|
|
|
5064
5065
|
]),
|
|
5065
5066
|
_: 1
|
|
5066
5067
|
}, 8, ["modelValue", "class", "errors", "placeholder"]),
|
|
5067
|
-
u.value ? (p(), v("div", bs, I(g(e)("login.validEmail")), 1)) :
|
|
5068
|
+
u.value ? (p(), v("div", bs, I(g(e)("login.validEmail")), 1)) : F("", !0)
|
|
5068
5069
|
])
|
|
5069
5070
|
])
|
|
5070
5071
|
]),
|
|
5071
5072
|
f("div", hs, [
|
|
5072
5073
|
f("div", ys, [
|
|
5073
|
-
D(g(
|
|
5074
|
+
D(g(G), {
|
|
5074
5075
|
class: "cl-absolute cl-left-3 cl-top-3 cl-z-10",
|
|
5075
5076
|
icon: "ph:lock",
|
|
5076
5077
|
size: 18
|
|
5077
5078
|
}),
|
|
5078
|
-
Q(D(g(
|
|
5079
|
+
Q(D(g(G), {
|
|
5079
5080
|
class: "cl-absolute cl-cursor-pointer cl-right-4 cl-top-3 cl-z-10",
|
|
5080
5081
|
icon: "ph:eye",
|
|
5081
5082
|
size: 18,
|
|
@@ -5083,7 +5084,7 @@ const os = {
|
|
|
5083
5084
|
}, null, 512), [
|
|
5084
5085
|
[te, d.value === "password"]
|
|
5085
5086
|
]),
|
|
5086
|
-
Q(D(g(
|
|
5087
|
+
Q(D(g(G), {
|
|
5087
5088
|
class: "cl-absolute cl-cursor-pointer cl-right-4 cl-top-3 cl-z-10",
|
|
5088
5089
|
icon: "ph:eye-slash",
|
|
5089
5090
|
size: 18,
|
|
@@ -5095,7 +5096,7 @@ const os = {
|
|
|
5095
5096
|
id: "cl-ui-login-passwordinput",
|
|
5096
5097
|
modelValue: a.value,
|
|
5097
5098
|
"onUpdate:modelValue": s[3] || (s[3] = (m) => a.value = m),
|
|
5098
|
-
class:
|
|
5099
|
+
class: L(["cl-border-2 cl-outline-none cl-p-2 cl-px-9 cl-text-grey-5 cl-text-sm", {
|
|
5099
5100
|
"!cl-border-primary-default hover:!cl-border-grey-3 focus-within:!cl-border-link-light": a.value
|
|
5100
5101
|
}]),
|
|
5101
5102
|
type: d.value,
|
|
@@ -5110,11 +5111,11 @@ const os = {
|
|
|
5110
5111
|
])
|
|
5111
5112
|
]),
|
|
5112
5113
|
f("div", {
|
|
5113
|
-
class:
|
|
5114
|
+
class: L(["cl-col-span-2", {
|
|
5114
5115
|
"cl-mt-1.5 cl-mb-1 md:cl-mt-0.5 md:cl-mb-7 lg:cl-mb-0": c.loading
|
|
5115
5116
|
}])
|
|
5116
5117
|
}, [
|
|
5117
|
-
D(
|
|
5118
|
+
D(Ce, {
|
|
5118
5119
|
id: "cl-ui-login-loginbutton",
|
|
5119
5120
|
class: "cl-w-full",
|
|
5120
5121
|
colour: "blue",
|
|
@@ -5168,19 +5169,19 @@ const os = {
|
|
|
5168
5169
|
},
|
|
5169
5170
|
emits: ["pinned-state", "open-state"],
|
|
5170
5171
|
setup(t, { expose: o, emit: l }) {
|
|
5171
|
-
const e = l, n = N([]), a = S(() => n.value.filter((
|
|
5172
|
-
function d(
|
|
5173
|
-
let C = n.value.find((U) => U.id ===
|
|
5172
|
+
const e = l, n = N([]), a = S(() => n.value.filter((q) => q.open === !0).length > 0);
|
|
5173
|
+
function d(q) {
|
|
5174
|
+
let C = n.value.find((U) => U.id === q);
|
|
5174
5175
|
return C || (C = {
|
|
5175
|
-
id:
|
|
5176
|
+
id: q,
|
|
5176
5177
|
open: !1
|
|
5177
5178
|
}, n.value.push(C)), C.open;
|
|
5178
5179
|
}
|
|
5179
|
-
function u(
|
|
5180
|
-
const C = n.value.find((T) => T.id ===
|
|
5180
|
+
function u(q) {
|
|
5181
|
+
const C = n.value.find((T) => T.id === q);
|
|
5181
5182
|
let U;
|
|
5182
5183
|
C && (C.open = !C.open, C.open && (U = C.id), n.value.forEach((T) => {
|
|
5183
|
-
T.id !==
|
|
5184
|
+
T.id !== q && (T.open = !1);
|
|
5184
5185
|
})), e("open-state", !!(C != null && C.open), U);
|
|
5185
5186
|
}
|
|
5186
5187
|
const r = bt();
|
|
@@ -5198,36 +5199,36 @@ const os = {
|
|
|
5198
5199
|
i.value = !i.value, e("pinned-state", i.value), c.value = !0, s();
|
|
5199
5200
|
}
|
|
5200
5201
|
const h = N();
|
|
5201
|
-
function b(
|
|
5202
|
-
m(), typeof
|
|
5202
|
+
function b(q) {
|
|
5203
|
+
m(), typeof q == "number" && u(q);
|
|
5203
5204
|
}
|
|
5204
5205
|
function $() {
|
|
5205
|
-
i.value === !1 && a.value === !0 && (n.value.forEach((
|
|
5206
|
-
|
|
5206
|
+
i.value === !1 && a.value === !0 && (n.value.forEach((q) => {
|
|
5207
|
+
q.open = !1;
|
|
5207
5208
|
}), e("open-state", !1, void 0));
|
|
5208
5209
|
}
|
|
5209
5210
|
return il(h, $), o({
|
|
5210
5211
|
closeNavigation: $,
|
|
5211
5212
|
restorePinnedNavigation: b
|
|
5212
|
-
}), (
|
|
5213
|
+
}), (q, C) => (p(), v("div", {
|
|
5213
5214
|
ref_key: "navElement",
|
|
5214
5215
|
ref: h,
|
|
5215
5216
|
class: "cl-flex cl-flex-nowrap cl-relative"
|
|
5216
5217
|
}, [
|
|
5217
5218
|
f("div", {
|
|
5218
5219
|
id: "group-container",
|
|
5219
|
-
class:
|
|
5220
|
-
"cl-bg-primary-default":
|
|
5221
|
-
"cl-bg-blue-dark":
|
|
5220
|
+
class: L(["cl-h-full cl-overflow-y-auto cl-overscroll-y-none cl-pb-20 cl-w-20 cl-z-40 xl:cl-pb-0", {
|
|
5221
|
+
"cl-bg-primary-default": q.colour === "default",
|
|
5222
|
+
"cl-bg-blue-dark": q.colour === "secondary"
|
|
5222
5223
|
}])
|
|
5223
5224
|
}, [
|
|
5224
|
-
M(
|
|
5225
|
+
M(q.$slots, "icon", le({ navcolour: q.colour }, { groupIsOpen: d, toggleOpen: u }), void 0, !0)
|
|
5225
5226
|
], 2),
|
|
5226
|
-
c.value ? (p(), v("div", Ss)) :
|
|
5227
|
+
c.value ? (p(), v("div", Ss)) : F("", !0),
|
|
5227
5228
|
D(Te, { name: "slide-right" }, {
|
|
5228
5229
|
default: R(() => [
|
|
5229
5230
|
Q(f("div", {
|
|
5230
|
-
class:
|
|
5231
|
+
class: L(["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", {
|
|
5231
5232
|
"cl-relative": i.value,
|
|
5232
5233
|
"cl-absolute cl-left-20 cl-shadow-lg": !i.value
|
|
5233
5234
|
}])
|
|
@@ -5237,15 +5238,15 @@ const os = {
|
|
|
5237
5238
|
class: "cl-absolute cl-cursor-pointer cl-hidden cl-right-0 cl-top-1.5 lg:cl-block",
|
|
5238
5239
|
onClick: C[0] || (C[0] = () => m())
|
|
5239
5240
|
}, [
|
|
5240
|
-
i.value ? (p(), H(g(
|
|
5241
|
+
i.value ? (p(), H(g(G), {
|
|
5241
5242
|
key: 1,
|
|
5242
5243
|
icon: "ph:push-pin-slash"
|
|
5243
|
-
})) : (p(), H(g(
|
|
5244
|
+
})) : (p(), H(g(G), {
|
|
5244
5245
|
key: 0,
|
|
5245
5246
|
icon: "ph:push-pin"
|
|
5246
5247
|
}))
|
|
5247
5248
|
]),
|
|
5248
|
-
M(
|
|
5249
|
+
M(q.$slots, "default", fe(ge({ groupIsOpen: d })), void 0, !0)
|
|
5249
5250
|
])
|
|
5250
5251
|
], 2), [
|
|
5251
5252
|
[te, a.value]
|
|
@@ -5255,7 +5256,7 @@ const os = {
|
|
|
5255
5256
|
})
|
|
5256
5257
|
], 512));
|
|
5257
5258
|
}
|
|
5258
|
-
}), Ds = /* @__PURE__ */
|
|
5259
|
+
}), Ds = /* @__PURE__ */ ye(Os, [["__scopeId", "data-v-db3283cd"]]), Es = /* @__PURE__ */ B({
|
|
5259
5260
|
__name: "cl-ui-navigation-icon",
|
|
5260
5261
|
props: {
|
|
5261
5262
|
iconValue: {},
|
|
@@ -5264,14 +5265,14 @@ const os = {
|
|
|
5264
5265
|
},
|
|
5265
5266
|
setup(t) {
|
|
5266
5267
|
return (o, l) => (p(), v("div", {
|
|
5267
|
-
class:
|
|
5268
|
+
class: L(["cl-cursor-pointer cl-flex cl-h-20 cl-items-center cl-justify-center cl-transition-colors cl-w-20", {
|
|
5268
5269
|
"cl-text-secondary-default hover:cl-bg-primary-dark hover:cl-text-white": o.colour === "default",
|
|
5269
5270
|
"cl-bg-primary-darker cl-text-white": o.open && o.colour === "default",
|
|
5270
5271
|
"cl-text-white hover:cl-bg-blue-light": o.colour === "secondary",
|
|
5271
5272
|
"cl-bg-blue-light": o.open && o.colour === "secondary"
|
|
5272
5273
|
}])
|
|
5273
5274
|
}, [
|
|
5274
|
-
D(g(
|
|
5275
|
+
D(g(G), {
|
|
5275
5276
|
class: "cl-block",
|
|
5276
5277
|
icon: o.iconValue,
|
|
5277
5278
|
width: "24"
|
|
@@ -5288,13 +5289,13 @@ const os = {
|
|
|
5288
5289
|
},
|
|
5289
5290
|
setup(t) {
|
|
5290
5291
|
return (o, l) => (p(), v("div", {
|
|
5291
|
-
class:
|
|
5292
|
+
class: L({
|
|
5292
5293
|
"cl-hidden": !o.open
|
|
5293
5294
|
})
|
|
5294
5295
|
}, [
|
|
5295
5296
|
o.$slots.title ? (p(), v("div", As, [
|
|
5296
5297
|
M(o.$slots, "title")
|
|
5297
|
-
])) :
|
|
5298
|
+
])) : F("", !0),
|
|
5298
5299
|
f("div", Vs, [
|
|
5299
5300
|
M(o.$slots, "default")
|
|
5300
5301
|
])
|
|
@@ -5308,19 +5309,19 @@ function zs(t, o) {
|
|
|
5308
5309
|
return p(), v("div", Rs, [
|
|
5309
5310
|
t.$slots.title ? (p(), v("div", Ms, [
|
|
5310
5311
|
M(t.$slots, "title")
|
|
5311
|
-
])) :
|
|
5312
|
+
])) : F("", !0),
|
|
5312
5313
|
f("span", Us, [
|
|
5313
5314
|
M(t.$slots, "default")
|
|
5314
5315
|
])
|
|
5315
5316
|
]);
|
|
5316
5317
|
}
|
|
5317
|
-
const
|
|
5318
|
+
const Fs = /* @__PURE__ */ ye(Is, [["render", zs]]), Ls = {}, js = { class: "cl-cursor-pointer cl-transition-colors cl-w-full hover:cl-text-primary-darker" };
|
|
5318
5319
|
function Bs(t, o) {
|
|
5319
5320
|
return p(), v("div", js, [
|
|
5320
5321
|
M(t.$slots, "default")
|
|
5321
5322
|
]);
|
|
5322
5323
|
}
|
|
5323
|
-
const Ps = /* @__PURE__ */
|
|
5324
|
+
const Ps = /* @__PURE__ */ ye(Ls, [["render", Bs]]), Hs = /* @__PURE__ */ B({
|
|
5324
5325
|
__name: "cl-ui-tab",
|
|
5325
5326
|
props: {
|
|
5326
5327
|
colour: { default: "default" },
|
|
@@ -5359,20 +5360,20 @@ const Ps = /* @__PURE__ */ he(Fs, [["render", Bs]]), Hs = /* @__PURE__ */ B({
|
|
|
5359
5360
|
T.id !== C && (T.open = !1);
|
|
5360
5361
|
}), n("tab-opened", C));
|
|
5361
5362
|
}
|
|
5362
|
-
function
|
|
5363
|
+
function q(C) {
|
|
5363
5364
|
typeof C == "number" && $(C);
|
|
5364
5365
|
}
|
|
5365
5366
|
return Pe(() => {
|
|
5366
5367
|
m(), $(a.value[0].id);
|
|
5367
5368
|
}), Je(() => window.removeEventListener("resize", s)), o({
|
|
5368
|
-
setTab:
|
|
5369
|
+
setTab: q
|
|
5369
5370
|
}), (C, U) => (p(), v("div", {
|
|
5370
|
-
class:
|
|
5371
|
+
class: L(["cl-w-full", {
|
|
5371
5372
|
"cl-flex cl-flex-row cl-gap-4 xl:cl-gap-6 cl-h-full": c.value === !1
|
|
5372
5373
|
}])
|
|
5373
5374
|
}, [
|
|
5374
5375
|
f("div", {
|
|
5375
|
-
class:
|
|
5376
|
+
class: L(["cl-flex cl-flex-nowrap", [
|
|
5376
5377
|
c.value === !1 ? "cl-items-start" : "cl-items-center",
|
|
5377
5378
|
{
|
|
5378
5379
|
"cl-border-r cl-h-full cl-border-grey-1": c.value === !1
|
|
@@ -5384,15 +5385,15 @@ const Ps = /* @__PURE__ */ he(Fs, [["render", Bs]]), Hs = /* @__PURE__ */ B({
|
|
|
5384
5385
|
class: "cl-bg-white cl-cursor-pointer cl-float-left cl-h-11 cl-w-4",
|
|
5385
5386
|
onClick: U[0] || (U[0] = (T) => h("left"))
|
|
5386
5387
|
}, [
|
|
5387
|
-
D(g(
|
|
5388
|
+
D(g(G), {
|
|
5388
5389
|
icon: "ph:caret-left",
|
|
5389
5390
|
class: "cl-mt-4 cl-text-secondary-default"
|
|
5390
5391
|
})
|
|
5391
|
-
])) :
|
|
5392
|
+
])) : F("", !0),
|
|
5392
5393
|
f("div", {
|
|
5393
5394
|
ref_key: "headerContainer",
|
|
5394
5395
|
ref: u,
|
|
5395
|
-
class:
|
|
5396
|
+
class: L(["cl-border-b cl-border-grey-1 cl-flex cl-flex-nowrap cl-flex-row", {
|
|
5396
5397
|
"cl-mr-4": i.value && c.value,
|
|
5397
5398
|
"cl-mb-4 xl:cl-mb-6 cl-overflow-x-auto cl-overscroll-x-none": c.value,
|
|
5398
5399
|
"cl-flex-col cl-border-b-0": c.value === !1
|
|
@@ -5406,11 +5407,11 @@ const Ps = /* @__PURE__ */ he(Fs, [["render", Bs]]), Hs = /* @__PURE__ */ B({
|
|
|
5406
5407
|
class: "cl-bg-white cl-cursor-pointer cl-float-right cl-h-11 cl-relative cl-w-4",
|
|
5407
5408
|
onClick: U[1] || (U[1] = (T) => h("right"))
|
|
5408
5409
|
}, [
|
|
5409
|
-
D(g(
|
|
5410
|
+
D(g(G), {
|
|
5410
5411
|
icon: "ph:caret-right",
|
|
5411
5412
|
class: "cl-mt-4 cl-text-secondary-default"
|
|
5412
5413
|
})
|
|
5413
|
-
])) :
|
|
5414
|
+
])) : F("", !0)
|
|
5414
5415
|
], 2),
|
|
5415
5416
|
Q(f("div", null, [
|
|
5416
5417
|
M(C.$slots, "content", fe(ge({ isTabOpen: b })))
|
|
@@ -5431,7 +5432,7 @@ const Ps = /* @__PURE__ */ he(Fs, [["render", Bs]]), Hs = /* @__PURE__ */ B({
|
|
|
5431
5432
|
setup(t) {
|
|
5432
5433
|
const o = t, l = S(() => o.layout === "horizontal");
|
|
5433
5434
|
return (e, n) => (p(), v("div", {
|
|
5434
|
-
class:
|
|
5435
|
+
class: L(["cl-flex cl-font-bold cl-items-center cl-px-4 cl-py-2 cl-whitespace-nowrap xl:cl-px-6 xl:cl-py-3 xl:cl-text-lg", {
|
|
5435
5436
|
"cl-border-b-4": l.value,
|
|
5436
5437
|
"cl-border-b-0 cl-border-r-4": l.value === !1,
|
|
5437
5438
|
"cl-cursor-pointer hover:cl-border-opacity-100 cl-border-link-lighter cl-border-opacity-0 cl-text-secondary-light hover:cl-text-black": e.open === !1 && !e.disabled,
|
|
@@ -5461,7 +5462,7 @@ const Ps = /* @__PURE__ */ he(Fs, [["render", Bs]]), Hs = /* @__PURE__ */ B({
|
|
|
5461
5462
|
f("h4", Ks, I(o.title), 1)
|
|
5462
5463
|
]),
|
|
5463
5464
|
M(o.$slots, "default")
|
|
5464
|
-
])) :
|
|
5465
|
+
])) : F("", !0);
|
|
5465
5466
|
}
|
|
5466
5467
|
}), _s = [
|
|
5467
5468
|
"default",
|
|
@@ -5548,7 +5549,7 @@ const Ps = /* @__PURE__ */ he(Fs, [["render", Bs]]), Hs = /* @__PURE__ */ B({
|
|
|
5548
5549
|
ref_key: "fileRefClassic",
|
|
5549
5550
|
ref: i,
|
|
5550
5551
|
type: "file",
|
|
5551
|
-
class:
|
|
5552
|
+
class: L({
|
|
5552
5553
|
"cl-cursor-default": s.disabled === !0,
|
|
5553
5554
|
"cl-cursor-pointer": s.disabled === !1
|
|
5554
5555
|
}),
|
|
@@ -5610,8 +5611,8 @@ const Ps = /* @__PURE__ */ he(Fs, [["render", Bs]]), Hs = /* @__PURE__ */ B({
|
|
|
5610
5611
|
orientation: { default: "horizontal" }
|
|
5611
5612
|
},
|
|
5612
5613
|
setup(t) {
|
|
5613
|
-
return (o, l) => (p(), H(
|
|
5614
|
-
class:
|
|
5614
|
+
return (o, l) => (p(), H(Ce, {
|
|
5615
|
+
class: L({
|
|
5615
5616
|
"!cl-bg-primary-default cl-border-primary-dark hover:cl-border-primary-dark cl-text-black !cl-bg-opacity-40 cl-font-bold": o.isSelected,
|
|
5616
5617
|
"cl-border-secondary-light hover:cl-shadow-md cl-border-opacity-40 hover:cl-border-opacity-100 !cl-text-secondary-default hover:cl-bg-primary-default hover:cl-bg-opacity-15 hover:cl-font-bold": o.isSelected === !1,
|
|
5617
5618
|
"cl-rounded-none ": o.orientation === "horizontal"
|
|
@@ -5627,14 +5628,14 @@ const Ps = /* @__PURE__ */ he(Fs, [["render", Bs]]), Hs = /* @__PURE__ */ B({
|
|
|
5627
5628
|
__proto__: null,
|
|
5628
5629
|
FilterOperation: X,
|
|
5629
5630
|
allQuickDates: _l,
|
|
5630
|
-
buttonColours:
|
|
5631
|
+
buttonColours: Lt,
|
|
5631
5632
|
buttonSizes: jt,
|
|
5632
5633
|
cardSizes: Ht,
|
|
5633
5634
|
clUiAccordion: $t,
|
|
5634
5635
|
clUiAccordionHeader: At,
|
|
5635
5636
|
clUiAccordionItem: qt,
|
|
5636
5637
|
clUiApp: Rt,
|
|
5637
|
-
clUiButton:
|
|
5638
|
+
clUiButton: Ce,
|
|
5638
5639
|
clUiCard: Pt,
|
|
5639
5640
|
clUiComboBox: To,
|
|
5640
5641
|
clUiFileUploader: li,
|
|
@@ -5658,8 +5659,8 @@ const Ps = /* @__PURE__ */ he(Fs, [["render", Bs]]), Hs = /* @__PURE__ */ B({
|
|
|
5658
5659
|
clUiNavigationGroup: Ns,
|
|
5659
5660
|
clUiNavigationIcon: Es,
|
|
5660
5661
|
clUiNavigationItem: Ps,
|
|
5661
|
-
clUiNavigationSection:
|
|
5662
|
-
clUiNotification:
|
|
5662
|
+
clUiNavigationSection: Fs,
|
|
5663
|
+
clUiNotification: Ll,
|
|
5663
5664
|
clUiTab: Hs,
|
|
5664
5665
|
clUiTabContent: Qs,
|
|
5665
5666
|
clUiTabHeader: Zs,
|
|
@@ -5691,7 +5692,7 @@ const Ps = /* @__PURE__ */ he(Fs, [["render", Bs]]), Hs = /* @__PURE__ */ B({
|
|
|
5691
5692
|
tabLayout: Ys,
|
|
5692
5693
|
tabScroll: xs
|
|
5693
5694
|
}, Symbol.toStringTag, { value: "Module" })), wi = (t) => {
|
|
5694
|
-
t.use(
|
|
5695
|
+
t.use(we), t.component("Icon", G), Object.entries(ai).forEach(([
|
|
5695
5696
|
o,
|
|
5696
5697
|
l
|
|
5697
5698
|
]) => {
|
|
@@ -5704,14 +5705,14 @@ export {
|
|
|
5704
5705
|
X as FilterOperation,
|
|
5705
5706
|
ee as NumberFormat,
|
|
5706
5707
|
_l as allQuickDates,
|
|
5707
|
-
|
|
5708
|
+
Lt as buttonColours,
|
|
5708
5709
|
jt as buttonSizes,
|
|
5709
5710
|
Ht as cardSizes,
|
|
5710
5711
|
$t as clUiAccordion,
|
|
5711
5712
|
At as clUiAccordionHeader,
|
|
5712
5713
|
qt as clUiAccordionItem,
|
|
5713
5714
|
Rt as clUiApp,
|
|
5714
|
-
|
|
5715
|
+
Ce as clUiButton,
|
|
5715
5716
|
Pt as clUiCard,
|
|
5716
5717
|
To as clUiComboBox,
|
|
5717
5718
|
li as clUiFileUploader,
|
|
@@ -5735,8 +5736,8 @@ export {
|
|
|
5735
5736
|
Ns as clUiNavigationGroup,
|
|
5736
5737
|
Es as clUiNavigationIcon,
|
|
5737
5738
|
Ps as clUiNavigationItem,
|
|
5738
|
-
|
|
5739
|
-
|
|
5739
|
+
Fs as clUiNavigationSection,
|
|
5740
|
+
Ll as clUiNotification,
|
|
5740
5741
|
Hs as clUiTab,
|
|
5741
5742
|
Qs as clUiTabContent,
|
|
5742
5743
|
Zs as clUiTabHeader,
|
|
@@ -5754,7 +5755,7 @@ export {
|
|
|
5754
5755
|
dl as getMergedFormatOptions,
|
|
5755
5756
|
un as gridColumnTypes,
|
|
5756
5757
|
Sr as headerColour,
|
|
5757
|
-
|
|
5758
|
+
we as i18n,
|
|
5758
5759
|
Ka as inputTextTypes,
|
|
5759
5760
|
es as inputTypes,
|
|
5760
5761
|
qo as isComboBoxCreateRequest,
|