@citruslime/ui 3.1.0-beta.10 → 3.1.0-beta.11
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 +681 -678
- package/dist/citrus-lime-ui.umd.js +2 -2
- package/package.json +1 -1
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { Icon as _ } from "@iconify/vue";
|
|
2
2
|
import { defineComponent as P, ref as V, openBlock as u, createElementBlock as g, renderSlot as q, normalizeProps as ge, guardReactiveProps as ve, Fragment as H, createElementVNode as v, normalizeClass as E, createVNode as T, unref as m, Transition as Ie, withCtx as O, withDirectives as ne, mergeProps as Z, vShow as fe, createBlock as F, Teleport as $l, renderList as J, toDisplayString as I, createCommentVNode as R, computed as $, createTextVNode as ie, mergeModels as me, useModel as ye, createSlots as he, vModelDynamic as Kl, watch as le, toRefs as Ql, withKeys as $e, onMounted as je, onUnmounted as Cl, withModifiers as re, nextTick as ze, useAttrs as Ye, resolveComponent as Te, inject as il, vModelCheckbox as qt, toValue as Vl, watchEffect as Dt, vModelText as Tl, useCssVars as Yl, toHandlers as Ot, useSlots as Et, provide as vl, normalizeStyle as Jl, isRef as At } from "vue";
|
|
3
|
-
import { generateStringId as Mt, highlightText as Vt, validateEmail as It } from "@citruslime/utils";
|
|
4
|
-
import { onKeyDown as hl, unrefElement as
|
|
5
|
-
import { useI18n as de, createI18n as
|
|
6
|
-
import { createFocusTrap as
|
|
3
|
+
import { generateStringId as Mt, highlightText as Vt, validateEmail as It, escapeStringForRegExp as Nt } from "@citruslime/utils";
|
|
4
|
+
import { onKeyDown as hl, unrefElement as Rt, tryOnScopeDispose as Ut, onClickOutside as Je, useTimeoutFn as xl, useMouseInElement as zt, useFocusWithin as Bt, useMediaQuery as Xl, useThrottle as Lt, useElementBounding as bl, useDebounceFn as Ke, useBreakpoints as _l, breakpointsTailwind as et, useThrottleFn as Ft, useWindowSize as Pt, useElementSize as Il } from "@vueuse/core";
|
|
5
|
+
import { useI18n as de, createI18n as jt } from "vue-i18n";
|
|
6
|
+
import { createFocusTrap as Gt } from "focus-trap";
|
|
7
7
|
import { copy as be } from "@citruslime/vue-utils";
|
|
8
8
|
import { DateTime as Q } from "luxon";
|
|
9
9
|
import { DatePicker as Le } from "v-calendar";
|
|
10
|
-
import { useCurrencyInput as
|
|
11
|
-
const
|
|
10
|
+
import { useCurrencyInput as Ht } from "vue-currency-input";
|
|
11
|
+
const Zt = { class: "cl-overflow-hidden" }, Wt = /* @__PURE__ */ P({
|
|
12
12
|
__name: "cl-ui-accordion",
|
|
13
13
|
props: {
|
|
14
14
|
exclusive: { type: Boolean, default: !1 }
|
|
@@ -28,11 +28,11 @@ const Ht = { class: "cl-overflow-hidden" }, Zt = /* @__PURE__ */ P({
|
|
|
28
28
|
d.id !== a && (d.open = !1);
|
|
29
29
|
}), i.open = !i.open);
|
|
30
30
|
}
|
|
31
|
-
return (a, i) => (u(), g("div",
|
|
31
|
+
return (a, i) => (u(), g("div", Zt, [
|
|
32
32
|
q(a.$slots, "default", ge(ve({ isItemOpen: e, toggleItem: r })))
|
|
33
33
|
]));
|
|
34
34
|
}
|
|
35
|
-
}),
|
|
35
|
+
}), Kt = { class: "cl-absolute cl-left-5 cl-top-5" }, Qt = { class: "cl-font-semibold cl-ml-10 cl-p-4 cl-select-none cl-text-grey-5" }, Yt = { class: "cl-overflow-hidden" }, Jt = /* @__PURE__ */ P({
|
|
36
36
|
inheritAttrs: !1,
|
|
37
37
|
__name: "cl-ui-accordion-item",
|
|
38
38
|
props: {
|
|
@@ -53,7 +53,7 @@ const Ht = { class: "cl-overflow-hidden" }, Zt = /* @__PURE__ */ P({
|
|
|
53
53
|
}]),
|
|
54
54
|
onClick: r
|
|
55
55
|
}, [
|
|
56
|
-
v("div",
|
|
56
|
+
v("div", Kt, [
|
|
57
57
|
T(m(_), {
|
|
58
58
|
class: E(["cl-duration-300 cl-ease-in-out cl-text-grey-3 cl-transform-gpu cl-transition-transform", {
|
|
59
59
|
"cl-rotate-180": a.open
|
|
@@ -62,11 +62,11 @@ const Ht = { class: "cl-overflow-hidden" }, Zt = /* @__PURE__ */ P({
|
|
|
62
62
|
width: "20"
|
|
63
63
|
}, null, 8, ["class"])
|
|
64
64
|
]),
|
|
65
|
-
v("div",
|
|
65
|
+
v("div", Qt, [
|
|
66
66
|
q(a.$slots, "title")
|
|
67
67
|
])
|
|
68
68
|
], 2),
|
|
69
|
-
v("div",
|
|
69
|
+
v("div", Yt, [
|
|
70
70
|
T(Ie, { name: "grow-down" }, {
|
|
71
71
|
default: O(() => [
|
|
72
72
|
ne(v("div", Z(a.$attrs, { class: "cl-ml-10 cl-p-4" }), [
|
|
@@ -85,13 +85,13 @@ const Ht = { class: "cl-overflow-hidden" }, Zt = /* @__PURE__ */ P({
|
|
|
85
85
|
for (const [e, r] of l)
|
|
86
86
|
t[e] = r;
|
|
87
87
|
return t;
|
|
88
|
-
},
|
|
89
|
-
function
|
|
88
|
+
}, xt = {}, Xt = { class: "cl-border-b cl-border-grey-1 cl-font-semibold cl-pl-14 cl-pr-4 cl-py-2 cl-text-grey-3 cl-text-sm" };
|
|
89
|
+
function _t(o, l) {
|
|
90
90
|
return u(), g("div", Xt, [
|
|
91
91
|
q(o.$slots, "default")
|
|
92
92
|
]);
|
|
93
93
|
}
|
|
94
|
-
const
|
|
94
|
+
const eo = /* @__PURE__ */ ke(xt, [["render", _t]]), ol = V([]);
|
|
95
95
|
function Nl(o) {
|
|
96
96
|
const l = {
|
|
97
97
|
id: Mt(),
|
|
@@ -102,7 +102,7 @@ function Nl(o) {
|
|
|
102
102
|
function lt(o) {
|
|
103
103
|
ol.value = ol.value.filter((l) => l.id !== o.id);
|
|
104
104
|
}
|
|
105
|
-
const
|
|
105
|
+
const lo = ["onClick"], to = { class: "cl-flex-1 cl-select-none cl-text-ellipsis cl-w-64" }, tt = /* @__PURE__ */ P({
|
|
106
106
|
inheritAttrs: !1,
|
|
107
107
|
__name: "cl-ui-notification",
|
|
108
108
|
props: {
|
|
@@ -136,18 +136,18 @@ const eo = ["onClick"], lo = { class: "cl-flex-1 cl-select-none cl-text-ellipsis
|
|
|
136
136
|
}],
|
|
137
137
|
onClick: (a) => m(lt)(e)
|
|
138
138
|
}), [
|
|
139
|
-
v("span",
|
|
139
|
+
v("span", to, I(e.message), 1),
|
|
140
140
|
T(m(_), {
|
|
141
141
|
class: "cl-inline-block cl-opacity-0 cl-transition-opacity group-hover:cl-opacity-100",
|
|
142
142
|
icon: "ph:x",
|
|
143
143
|
size: 16,
|
|
144
144
|
weight: "bold"
|
|
145
145
|
})
|
|
146
|
-
], 16,
|
|
146
|
+
], 16, lo))), 128))
|
|
147
147
|
], 2)
|
|
148
148
|
], 8, ["to"]));
|
|
149
149
|
}
|
|
150
|
-
}),
|
|
150
|
+
}), oo = { class: "cl-absolute cl-flex cl-flex-wrap cl-h-full cl-max-h-full cl-max-w-full cl-min-h-full cl-min-w-full cl-w-full xl:cl-h-screen xl:cl-max-h-screen xl:cl-min-h-screen" }, ao = /* @__PURE__ */ P({
|
|
151
151
|
__name: "cl-ui-app",
|
|
152
152
|
props: {
|
|
153
153
|
removePadding: { type: Boolean, default: !1 }
|
|
@@ -157,7 +157,7 @@ const eo = ["onClick"], lo = { class: "cl-flex-1 cl-select-none cl-text-ellipsis
|
|
|
157
157
|
T(tt, {
|
|
158
158
|
"header-visible": !!l.$slots.header
|
|
159
159
|
}, null, 8, ["header-visible"]),
|
|
160
|
-
v("div",
|
|
160
|
+
v("div", oo, [
|
|
161
161
|
q(l.$slots, "header"),
|
|
162
162
|
v("div", {
|
|
163
163
|
class: E(["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", {
|
|
@@ -178,11 +178,11 @@ const eo = ["onClick"], lo = { class: "cl-flex-1 cl-select-none cl-text-ellipsis
|
|
|
178
178
|
])
|
|
179
179
|
], 64));
|
|
180
180
|
}
|
|
181
|
-
}),
|
|
182
|
-
function
|
|
183
|
-
return u(), g("div",
|
|
181
|
+
}), no = {}, so = { class: "loading-spinner" };
|
|
182
|
+
function ro(o, l) {
|
|
183
|
+
return u(), g("div", so);
|
|
184
184
|
}
|
|
185
|
-
const
|
|
185
|
+
const xe = /* @__PURE__ */ ke(no, [["render", ro], ["__scopeId", "data-v-a21dc5d2"]]), io = ["disabled"], Ce = /* @__PURE__ */ P({
|
|
186
186
|
inheritAttrs: !1,
|
|
187
187
|
__name: "cl-ui-button",
|
|
188
188
|
props: {
|
|
@@ -198,7 +198,7 @@ const Xe = /* @__PURE__ */ ke(ao, [["render", so], ["__scopeId", "data-v-a21dc5d
|
|
|
198
198
|
t.value && t.value.focus();
|
|
199
199
|
}
|
|
200
200
|
}), (e, r) => (u(), g(H, null, [
|
|
201
|
-
ne(T(
|
|
201
|
+
ne(T(xe, { class: "relative" }, null, 512), [
|
|
202
202
|
[fe, e.loading]
|
|
203
203
|
]),
|
|
204
204
|
ne(v("button", Z(e.$attrs, {
|
|
@@ -219,23 +219,23 @@ const Xe = /* @__PURE__ */ ke(ao, [["render", so], ["__scopeId", "data-v-a21dc5d
|
|
|
219
219
|
disabled: e.disabled
|
|
220
220
|
}), [
|
|
221
221
|
q(e.$slots, "default")
|
|
222
|
-
], 16,
|
|
222
|
+
], 16, io), [
|
|
223
223
|
[fe, !e.loading]
|
|
224
224
|
])
|
|
225
225
|
], 64));
|
|
226
226
|
}
|
|
227
|
-
}),
|
|
227
|
+
}), co = [
|
|
228
228
|
"default",
|
|
229
229
|
"primary",
|
|
230
230
|
"secondary",
|
|
231
231
|
"danger",
|
|
232
232
|
"blue",
|
|
233
233
|
"orange"
|
|
234
|
-
],
|
|
234
|
+
], uo = [
|
|
235
235
|
"small",
|
|
236
236
|
"medium",
|
|
237
237
|
"large"
|
|
238
|
-
],
|
|
238
|
+
], po = { key: 0 }, fo = /* @__PURE__ */ P({
|
|
239
239
|
__name: "cl-ui-card",
|
|
240
240
|
props: {
|
|
241
241
|
size: { default: "medium" },
|
|
@@ -247,7 +247,7 @@ const Xe = /* @__PURE__ */ ke(ao, [["render", so], ["__scopeId", "data-v-a21dc5d
|
|
|
247
247
|
"cl-cursor-pointer hover:cl-shadow-xl hover:cl-border-grey-0": l.hover
|
|
248
248
|
}])
|
|
249
249
|
}, [
|
|
250
|
-
l.$slots.image ? (u(), g("div",
|
|
250
|
+
l.$slots.image ? (u(), g("div", po, [
|
|
251
251
|
q(l.$slots, "image")
|
|
252
252
|
])) : R("", !0),
|
|
253
253
|
l.$slots.title ? (u(), g("div", {
|
|
@@ -283,23 +283,23 @@ const Xe = /* @__PURE__ */ ke(ao, [["render", so], ["__scopeId", "data-v-a21dc5d
|
|
|
283
283
|
], 2)) : R("", !0)
|
|
284
284
|
], 2));
|
|
285
285
|
}
|
|
286
|
-
}),
|
|
286
|
+
}), mo = [
|
|
287
287
|
"small",
|
|
288
288
|
"medium",
|
|
289
289
|
"large"
|
|
290
|
-
],
|
|
290
|
+
], go = { class: "cl-w-full sm:cl-w-auto" }, vo = { class: "cl-flex cl-flex-nowrap cl-gap-2 cl-text-grey-4 cl-text-xs cl-tracking-widest" }, ho = {
|
|
291
291
|
key: 0,
|
|
292
292
|
class: "cl-self-center"
|
|
293
|
-
},
|
|
293
|
+
}, bo = {
|
|
294
294
|
key: 1,
|
|
295
295
|
class: "cl-text-danger-dark"
|
|
296
|
-
},
|
|
296
|
+
}, yo = {
|
|
297
297
|
key: 0,
|
|
298
298
|
class: "cl-pt-1 cl-w-full"
|
|
299
|
-
},
|
|
299
|
+
}, wo = { class: "cl-flex cl-flex-col cl-flex-nowrap cl-gap-1 cl-w-full" }, ko = {
|
|
300
300
|
key: 1,
|
|
301
301
|
class: "cl-pt-1 cl-select-none cl-text-xs"
|
|
302
|
-
},
|
|
302
|
+
}, $o = { class: "cl-text-xs cl-w-full" }, Ne = /* @__PURE__ */ P({
|
|
303
303
|
__name: "cl-ui-input-layout-wrapper",
|
|
304
304
|
props: {
|
|
305
305
|
showRequiredAsterisk: { type: Boolean },
|
|
@@ -308,29 +308,29 @@ const Xe = /* @__PURE__ */ ke(ao, [["render", so], ["__scopeId", "data-v-a21dc5d
|
|
|
308
308
|
},
|
|
309
309
|
setup(o) {
|
|
310
310
|
const l = o, t = $(() => Object.keys(l.errors ?? []).length > 0);
|
|
311
|
-
return (e, r) => (u(), g("div",
|
|
311
|
+
return (e, r) => (u(), g("div", go, [
|
|
312
312
|
v("div", {
|
|
313
313
|
class: E(["cl-flex", { "cl-flex-col": e.labelPosition === "above", "cl-flex-row-reverse cl-gap-2 cl-items-center cl-justify-end": e.labelPosition === "right" }])
|
|
314
314
|
}, [
|
|
315
|
-
v("div",
|
|
316
|
-
e.$slots.label ? (u(), g("span",
|
|
315
|
+
v("div", vo, [
|
|
316
|
+
e.$slots.label ? (u(), g("span", ho, [
|
|
317
317
|
q(e.$slots, "label")
|
|
318
318
|
])) : R("", !0),
|
|
319
|
-
e.showRequiredAsterisk ? (u(), g("span",
|
|
319
|
+
e.showRequiredAsterisk ? (u(), g("span", bo, "*")) : R("", !0)
|
|
320
320
|
]),
|
|
321
321
|
v("div", null, [
|
|
322
322
|
q(e.$slots, "default")
|
|
323
323
|
])
|
|
324
324
|
], 2),
|
|
325
|
-
t.value ? (u(), g("div",
|
|
326
|
-
v("div",
|
|
325
|
+
t.value ? (u(), g("div", yo, [
|
|
326
|
+
v("div", wo, [
|
|
327
327
|
(u(!0), g(H, null, J(e.errors, (a, i) => (u(), g("div", {
|
|
328
328
|
key: i,
|
|
329
329
|
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"
|
|
330
330
|
}, I(a), 1))), 128))
|
|
331
331
|
])
|
|
332
|
-
])) : e.errors || e.$slots.helpText ? (u(), g("div",
|
|
333
|
-
v("span",
|
|
332
|
+
])) : e.errors || e.$slots.helpText ? (u(), g("div", ko, [
|
|
333
|
+
v("span", $o, [
|
|
334
334
|
q(e.$slots, "helpText", {}, () => [
|
|
335
335
|
r[0] || (r[0] = ie(" "))
|
|
336
336
|
])
|
|
@@ -338,7 +338,7 @@ const Xe = /* @__PURE__ */ ke(ao, [["render", so], ["__scopeId", "data-v-a21dc5d
|
|
|
338
338
|
])) : R("", !0)
|
|
339
339
|
]));
|
|
340
340
|
}
|
|
341
|
-
}),
|
|
341
|
+
}), Co = ["type", "maxlength", "disabled", "placeholder"], Ue = /* @__PURE__ */ P({
|
|
342
342
|
inheritAttrs: !1,
|
|
343
343
|
__name: "cl-ui-input-text",
|
|
344
344
|
props: /* @__PURE__ */ me({
|
|
@@ -383,7 +383,7 @@ const Xe = /* @__PURE__ */ ke(ao, [["render", so], ["__scopeId", "data-v-a21dc5d
|
|
|
383
383
|
placeholder: i.placeholder ?? void 0,
|
|
384
384
|
onFocus: d[1] || (d[1] = (h) => r("focus")),
|
|
385
385
|
onBlur: d[2] || (d[2] = (h) => r("blur"))
|
|
386
|
-
}), null, 16,
|
|
386
|
+
}), null, 16, Co), [
|
|
387
387
|
[Kl, e.value]
|
|
388
388
|
])
|
|
389
389
|
]),
|
|
@@ -410,8 +410,8 @@ function Rl(o) {
|
|
|
410
410
|
return typeof o == "function" ? o() : m(o);
|
|
411
411
|
}
|
|
412
412
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
413
|
-
const
|
|
414
|
-
function
|
|
413
|
+
const To = (o) => o != null;
|
|
414
|
+
function So(o, l = {}) {
|
|
415
415
|
let t;
|
|
416
416
|
const { immediate: e, ...r } = l, a = V(!1), i = V(!1), d = (p) => t && t.activate(p), h = (p) => t && t.deactivate(p), s = () => {
|
|
417
417
|
t && (t.pause(), i.value = !0);
|
|
@@ -421,13 +421,13 @@ function To(o, l = {}) {
|
|
|
421
421
|
const p = Rl(o);
|
|
422
422
|
return (Array.isArray(p) ? p : [p]).map((w) => {
|
|
423
423
|
const b = Rl(w);
|
|
424
|
-
return typeof b == "string" ? b :
|
|
425
|
-
}).filter(
|
|
424
|
+
return typeof b == "string" ? b : Rt(b);
|
|
425
|
+
}).filter(To);
|
|
426
426
|
});
|
|
427
427
|
return le(
|
|
428
428
|
c,
|
|
429
429
|
(p) => {
|
|
430
|
-
p.length && (t =
|
|
430
|
+
p.length && (t = Gt(p, {
|
|
431
431
|
...r,
|
|
432
432
|
onActivate() {
|
|
433
433
|
a.value = !0, l.onActivate && l.onActivate();
|
|
@@ -438,7 +438,7 @@ function To(o, l = {}) {
|
|
|
438
438
|
}), e && d());
|
|
439
439
|
},
|
|
440
440
|
{ flush: "post" }
|
|
441
|
-
),
|
|
441
|
+
), Ut(() => h()), {
|
|
442
442
|
hasFocus: a,
|
|
443
443
|
isPaused: i,
|
|
444
444
|
activate: d,
|
|
@@ -447,10 +447,10 @@ function To(o, l = {}) {
|
|
|
447
447
|
unpause: n
|
|
448
448
|
};
|
|
449
449
|
}
|
|
450
|
-
const
|
|
450
|
+
const qo = {
|
|
451
451
|
key: 0,
|
|
452
452
|
class: "cl-mt-1 cl-opacity-60 cl-text-primary-default"
|
|
453
|
-
},
|
|
453
|
+
}, Do = { class: "cl-overflow-y-auto cl-overscroll-y-none cl-p-2 cl-w-full" }, ot = /* @__PURE__ */ P({
|
|
454
454
|
inheritAttrs: !1,
|
|
455
455
|
__name: "cl-ui-modal",
|
|
456
456
|
props: /* @__PURE__ */ me({
|
|
@@ -464,7 +464,7 @@ const So = {
|
|
|
464
464
|
}),
|
|
465
465
|
emits: ["update:visible"],
|
|
466
466
|
setup(o) {
|
|
467
|
-
const l = o, t = ye(o, "visible"), { trapFocus: e } = Ql(l), r = V(), a =
|
|
467
|
+
const l = o, t = ye(o, "visible"), { trapFocus: e } = Ql(l), r = V(), a = So(r);
|
|
468
468
|
le([
|
|
469
469
|
e,
|
|
470
470
|
t
|
|
@@ -525,9 +525,9 @@ const So = {
|
|
|
525
525
|
}])
|
|
526
526
|
}, [
|
|
527
527
|
q(s.$slots, "title"),
|
|
528
|
-
s.headerColour === "white" ? (u(), g("hr",
|
|
528
|
+
s.headerColour === "white" ? (u(), g("hr", qo)) : R("", !0)
|
|
529
529
|
], 2),
|
|
530
|
-
v("div",
|
|
530
|
+
v("div", Do, [
|
|
531
531
|
q(s.$slots, "default", ge(ve({ close: d })))
|
|
532
532
|
]),
|
|
533
533
|
q(s.$slots, "footer", ge(ve({ close: d })))
|
|
@@ -541,7 +541,7 @@ const So = {
|
|
|
541
541
|
]))
|
|
542
542
|
], 64));
|
|
543
543
|
}
|
|
544
|
-
}),
|
|
544
|
+
}), Oo = { class: "cl-bg-grey-0 cl-flex cl-p-1 cl-text-left" }, Eo = {
|
|
545
545
|
key: 0,
|
|
546
546
|
class: "cl-w-1/2"
|
|
547
547
|
}, ll = /* @__PURE__ */ P({
|
|
@@ -553,8 +553,8 @@ const So = {
|
|
|
553
553
|
},
|
|
554
554
|
emits: ["clear-object"],
|
|
555
555
|
setup(o) {
|
|
556
|
-
return (l, t) => (u(), g("div",
|
|
557
|
-
l.additionalText !== "" ? (u(), g("div",
|
|
556
|
+
return (l, t) => (u(), g("div", Oo, [
|
|
557
|
+
l.additionalText !== "" ? (u(), g("div", Eo, I(l.additionalText), 1)) : R("", !0),
|
|
558
558
|
v("div", {
|
|
559
559
|
class: E({
|
|
560
560
|
"cl-w-1/2": l.additionalText !== "",
|
|
@@ -574,10 +574,10 @@ const So = {
|
|
|
574
574
|
])
|
|
575
575
|
]));
|
|
576
576
|
}
|
|
577
|
-
}),
|
|
577
|
+
}), Ao = {
|
|
578
578
|
key: 0,
|
|
579
579
|
class: "cl-w-1/2"
|
|
580
|
-
},
|
|
580
|
+
}, Mo = { class: "cl-float-right cl-py-1 cl-text-black" }, Ul = /* @__PURE__ */ P({
|
|
581
581
|
__name: "cl-ui-combo-box-selectable",
|
|
582
582
|
props: {
|
|
583
583
|
isCreateNewOption: { type: Boolean, default: !1 },
|
|
@@ -617,14 +617,14 @@ const So = {
|
|
|
617
617
|
onMousemove: c[0] || (c[0] = (b) => h(!0)),
|
|
618
618
|
onMouseleave: c[1] || (c[1] = (b) => h(!1))
|
|
619
619
|
}, [
|
|
620
|
-
n.option !== null && ((p = n.option) == null ? void 0 : p.parentId) !== 0 && ((w = n.option) == null ? void 0 : w.parentId) !== void 0 ? (u(), g("div",
|
|
620
|
+
n.option !== null && ((p = n.option) == null ? void 0 : p.parentId) !== 0 && ((w = n.option) == null ? void 0 : w.parentId) !== void 0 ? (u(), g("div", Ao, I(a.value), 1)) : R("", !0),
|
|
621
621
|
v("div", {
|
|
622
622
|
class: E({
|
|
623
623
|
"cl-w-1/2": a.value !== "",
|
|
624
624
|
"cl-w-full": a.value === ""
|
|
625
625
|
})
|
|
626
626
|
}, I(r.value), 3),
|
|
627
|
-
ne(v("div",
|
|
627
|
+
ne(v("div", Mo, [
|
|
628
628
|
T(m(_), {
|
|
629
629
|
class: "cl-transition-colors",
|
|
630
630
|
icon: "ph:plus"
|
|
@@ -635,10 +635,10 @@ const So = {
|
|
|
635
635
|
], 34);
|
|
636
636
|
};
|
|
637
637
|
}
|
|
638
|
-
}),
|
|
638
|
+
}), Vo = ["onKeyup"], Io = {
|
|
639
639
|
key: 0,
|
|
640
640
|
class: "cl-absolute cl-bg-off-white cl-flex cl-h-full cl-items-center cl-justify-center cl-top-0 cl-w-full cl-z-20"
|
|
641
|
-
},
|
|
641
|
+
}, No = { class: "cl-bg-white cl-flex cl-p-2 cl-pb-1 cl-sticky cl-top-0 cl-w-full cl-z-10" }, Ro = { class: "cl-inline-block cl-w-full" }, Uo = { key: 6 }, zo = /* @__PURE__ */ P({
|
|
642
642
|
__name: "cl-ui-combo-box-search",
|
|
643
643
|
props: {
|
|
644
644
|
loading: { type: Boolean, default: !1 },
|
|
@@ -680,8 +680,8 @@ const So = {
|
|
|
680
680
|
if (M.key === "Tab" && M.shiftKey === !0) {
|
|
681
681
|
const te = document.getElementsByTagName("input");
|
|
682
682
|
let se = -1;
|
|
683
|
-
for (let
|
|
684
|
-
te[
|
|
683
|
+
for (let X = 0; X < te.length; X++)
|
|
684
|
+
te[X] === M.target && (se = X - 1);
|
|
685
685
|
se >= 0 && (te[se].focus(), w());
|
|
686
686
|
}
|
|
687
687
|
}
|
|
@@ -717,20 +717,20 @@ const So = {
|
|
|
717
717
|
"cl-overflow-y-hidden": M.loading
|
|
718
718
|
}]),
|
|
719
719
|
onKeydown: [
|
|
720
|
-
te[2] || (te[2] = $e(re((
|
|
721
|
-
te[3] || (te[3] = $e(re((
|
|
720
|
+
te[2] || (te[2] = $e(re((X) => f(h.value), ["prevent", "stop"]), ["up"])),
|
|
721
|
+
te[3] || (te[3] = $e(re((X) => b(h.value), ["prevent", "stop"]), ["down"]))
|
|
722
722
|
],
|
|
723
723
|
onKeyup: $e(re(C, ["prevent", "stop"]), ["enter"])
|
|
724
724
|
}, [
|
|
725
|
-
M.loading ? (u(), g("div",
|
|
726
|
-
T(
|
|
725
|
+
M.loading ? (u(), g("div", Io, [
|
|
726
|
+
T(xe)
|
|
727
727
|
])) : R("", !0),
|
|
728
|
-
v("div",
|
|
729
|
-
v("div",
|
|
728
|
+
v("div", No, [
|
|
729
|
+
v("div", Ro, [
|
|
730
730
|
T(Ue, {
|
|
731
731
|
id: `cl-ui-combo-box-search-input-${M.objectType}`,
|
|
732
732
|
modelValue: a.value,
|
|
733
|
-
"onUpdate:modelValue": te[0] || (te[0] = (
|
|
733
|
+
"onUpdate:modelValue": te[0] || (te[0] = (X) => a.value = X),
|
|
734
734
|
class: "cl-box-border cl-font-light cl-mb-2 cl-p-2 cl-placeholder-grey-3 cl-text-sm",
|
|
735
735
|
placeholder: M.searchHint,
|
|
736
736
|
type: "search",
|
|
@@ -748,7 +748,7 @@ const So = {
|
|
|
748
748
|
key: 1,
|
|
749
749
|
"show-clear-button": M.canClearSelectedObject,
|
|
750
750
|
text: M.currentObjectName,
|
|
751
|
-
onClearObject: te[1] || (te[1] = (
|
|
751
|
+
onClearObject: te[1] || (te[1] = (X) => M.$emit("clear-object"))
|
|
752
752
|
}, null, 8, ["show-clear-button", "text"])) : R("", !0),
|
|
753
753
|
M.objectParentType !== "" && M.results !== void 0 && M.results.length > 0 && M.errorMessage === "" ? (u(), F(ll, {
|
|
754
754
|
key: 2,
|
|
@@ -775,10 +775,10 @@ const So = {
|
|
|
775
775
|
onCreateObject: p,
|
|
776
776
|
onOptionHighlighted: B
|
|
777
777
|
}, null, 8, ["text", "selected-index"])) : R("", !0),
|
|
778
|
-
M.errorMessage === "" && M.results !== null ? (u(), g("div",
|
|
779
|
-
(u(!0), g(H, null, J(M.results, (
|
|
778
|
+
M.errorMessage === "" && M.results !== null ? (u(), g("div", Uo, [
|
|
779
|
+
(u(!0), g(H, null, J(M.results, (X, j) => (u(), F(Ul, {
|
|
780
780
|
key: j,
|
|
781
|
-
option:
|
|
781
|
+
option: X,
|
|
782
782
|
index: j,
|
|
783
783
|
class: "cl-px-2",
|
|
784
784
|
"selected-index": d.value,
|
|
@@ -786,10 +786,10 @@ const So = {
|
|
|
786
786
|
onOptionHighlighted: B
|
|
787
787
|
}, null, 8, ["option", "index", "selected-index"]))), 128))
|
|
788
788
|
])) : R("", !0)
|
|
789
|
-
], 42,
|
|
789
|
+
], 42, Vo);
|
|
790
790
|
};
|
|
791
791
|
}
|
|
792
|
-
}),
|
|
792
|
+
}), Bo = { class: "cl-flex" }, Lo = { class: "cl-inline-block cl-w-full" }, Fo = { class: "cl-pointer-events-none cl-relative cl-top-0.5" }, Po = { class: "cl-absolute cl-flex cl-float-right cl-font-semibold cl-mt-[5px] cl-right-2 cl-text-danger-default cl-text-sm cl-z-10" }, jo = ["disabled"], Go = ["disabled"], Ho = { class: "cl-min-h-[16rem] cl-mx-4" }, Zo = { class: "cl-p-2 cl-text-right cl-w-full" }, Wo = /* @__PURE__ */ P({
|
|
793
793
|
inheritAttrs: !1,
|
|
794
794
|
__name: "cl-ui-combo-box",
|
|
795
795
|
props: {
|
|
@@ -831,10 +831,10 @@ const So = {
|
|
|
831
831
|
p.value = null, B(!1);
|
|
832
832
|
}
|
|
833
833
|
function se(k) {
|
|
834
|
-
const z =
|
|
834
|
+
const z = X(k ?? 0);
|
|
835
835
|
p.value = z, B(!1);
|
|
836
836
|
}
|
|
837
|
-
function
|
|
837
|
+
function X(k) {
|
|
838
838
|
let z = null;
|
|
839
839
|
if (e.results !== null) {
|
|
840
840
|
for (let Y = 0; Y < e.results.length; Y++)
|
|
@@ -867,7 +867,7 @@ const So = {
|
|
|
867
867
|
}),
|
|
868
868
|
colour: "danger",
|
|
869
869
|
duration: 1e4
|
|
870
|
-
}) : (z = e.objectCreatedResponse) != null && z.id &&
|
|
870
|
+
}) : (z = e.objectCreatedResponse) != null && z.id && x();
|
|
871
871
|
}
|
|
872
872
|
function U() {
|
|
873
873
|
var k;
|
|
@@ -876,7 +876,7 @@ const So = {
|
|
|
876
876
|
name: e.parentObjectCreatedResponse.name ?? ""
|
|
877
877
|
});
|
|
878
878
|
}
|
|
879
|
-
function
|
|
879
|
+
function x() {
|
|
880
880
|
var z, Y, y, L, K;
|
|
881
881
|
Nl({
|
|
882
882
|
message: n("comboBox.createSuccessful", {
|
|
@@ -914,8 +914,8 @@ const So = {
|
|
|
914
914
|
ref_key: "outsideRef",
|
|
915
915
|
ref: G
|
|
916
916
|
}, i, { class: "cl-relative" }), [
|
|
917
|
-
v("div",
|
|
918
|
-
v("div",
|
|
917
|
+
v("div", Bo, [
|
|
918
|
+
v("div", Lo, [
|
|
919
919
|
T(Ue, {
|
|
920
920
|
id: m(d),
|
|
921
921
|
modelValue: b.value,
|
|
@@ -935,8 +935,8 @@ const So = {
|
|
|
935
935
|
_: 1
|
|
936
936
|
}, 8, ["id", "modelValue", "class", "placeholder", "disabled"])
|
|
937
937
|
]),
|
|
938
|
-
ne(v("div",
|
|
939
|
-
v("div",
|
|
938
|
+
ne(v("div", Fo, [
|
|
939
|
+
v("div", Po, [
|
|
940
940
|
ie(I(m(n)("comboBox.required")) + " ", 1),
|
|
941
941
|
T(m(_), {
|
|
942
942
|
class: "cl-ml-1 cl-mt-[3px]",
|
|
@@ -959,7 +959,7 @@ const So = {
|
|
|
959
959
|
icon: "ph:caret-up-bold",
|
|
960
960
|
class: "cl-ml-[4px] cl-mt-[9px]"
|
|
961
961
|
})
|
|
962
|
-
], 10,
|
|
962
|
+
], 10, Go)) : (u(), g("div", {
|
|
963
963
|
key: 0,
|
|
964
964
|
class: E(["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]", {
|
|
965
965
|
"cl-cursor-default cl-bg-off-white": k.disabled,
|
|
@@ -972,14 +972,14 @@ const So = {
|
|
|
972
972
|
icon: "ph:caret-down-bold",
|
|
973
973
|
class: "cl-ml-[4px] cl-mt-[9px]"
|
|
974
974
|
})
|
|
975
|
-
], 10,
|
|
975
|
+
], 10, jo))
|
|
976
976
|
]),
|
|
977
977
|
T(ot, { size: "small" }, {
|
|
978
978
|
title: O(() => [
|
|
979
979
|
ie(I(m(n)("comboBox.createTitle", { object: k.objectType })), 1)
|
|
980
980
|
]),
|
|
981
981
|
trigger: O(({ open: y }) => [
|
|
982
|
-
ne(T(
|
|
982
|
+
ne(T(zo, {
|
|
983
983
|
"can-create-new-object": k.canCreateNewObject,
|
|
984
984
|
"can-clear-selected-object": k.canClearSelectedObject,
|
|
985
985
|
loading: k.loading,
|
|
@@ -1003,7 +1003,7 @@ const So = {
|
|
|
1003
1003
|
])
|
|
1004
1004
|
]),
|
|
1005
1005
|
footer: O(({ close: y }) => [
|
|
1006
|
-
v("div",
|
|
1006
|
+
v("div", Zo, [
|
|
1007
1007
|
T(Ce, {
|
|
1008
1008
|
class: "cl-mr-3",
|
|
1009
1009
|
colour: "default",
|
|
@@ -1031,7 +1031,7 @@ const So = {
|
|
|
1031
1031
|
])
|
|
1032
1032
|
]),
|
|
1033
1033
|
default: O(() => [
|
|
1034
|
-
v("div",
|
|
1034
|
+
v("div", Ho, [
|
|
1035
1035
|
k.objectParentType ? (u(), F(Y, {
|
|
1036
1036
|
key: 0,
|
|
1037
1037
|
"current-object": w.value,
|
|
@@ -1065,43 +1065,43 @@ const So = {
|
|
|
1065
1065
|
};
|
|
1066
1066
|
}
|
|
1067
1067
|
});
|
|
1068
|
-
function
|
|
1068
|
+
function Ko(o) {
|
|
1069
1069
|
return typeof o.id == "number" && typeof o.name == "string";
|
|
1070
1070
|
}
|
|
1071
|
-
function
|
|
1071
|
+
function Qo(o) {
|
|
1072
1072
|
return typeof o.name == "string";
|
|
1073
1073
|
}
|
|
1074
|
-
const
|
|
1074
|
+
const Yo = {}, Jo = { class: "cl-flex cl-flex-wrap cl-left-0 cl-mt-4 cl-w-full" }, xo = {
|
|
1075
1075
|
key: 0,
|
|
1076
1076
|
class: "cl-w-full"
|
|
1077
1077
|
}, Xo = {
|
|
1078
1078
|
key: 1,
|
|
1079
1079
|
class: "cl-leading-10 cl-text-sm cl-w-full"
|
|
1080
|
-
},
|
|
1081
|
-
function
|
|
1082
|
-
return u(), g("div",
|
|
1083
|
-
o.$slots.default ? (u(), g("div",
|
|
1080
|
+
}, _o = { class: "cl-float-left" }, ea = { class: "cl-float-right" };
|
|
1081
|
+
function la(o, l) {
|
|
1082
|
+
return u(), g("div", Jo, [
|
|
1083
|
+
o.$slots.default ? (u(), g("div", xo, [
|
|
1084
1084
|
q(o.$slots, "default")
|
|
1085
1085
|
])) : R("", !0),
|
|
1086
1086
|
o.$slots.left || o.$slots.right ? (u(), g("div", Xo, [
|
|
1087
|
-
v("span",
|
|
1087
|
+
v("span", _o, [
|
|
1088
1088
|
q(o.$slots, "left")
|
|
1089
1089
|
]),
|
|
1090
|
-
v("span",
|
|
1090
|
+
v("span", ea, [
|
|
1091
1091
|
q(o.$slots, "right")
|
|
1092
1092
|
])
|
|
1093
1093
|
])) : R("", !0)
|
|
1094
1094
|
]);
|
|
1095
1095
|
}
|
|
1096
|
-
const
|
|
1097
|
-
function
|
|
1098
|
-
return u(), g("div",
|
|
1096
|
+
const ta = /* @__PURE__ */ ke(Yo, [["render", la]]), cl = Symbol(), oa = {}, aa = { class: "cl-animate-pulse cl-bg-off-white cl-h-[33px] cl-px-20 cl-rounded-md" };
|
|
1097
|
+
function na(o, l) {
|
|
1098
|
+
return u(), g("div", aa);
|
|
1099
1099
|
}
|
|
1100
|
-
const
|
|
1101
|
-
function
|
|
1102
|
-
return u(), g("div",
|
|
1100
|
+
const sa = /* @__PURE__ */ ke(oa, [["render", na]]), ra = {}, ia = { class: "cl-animate-pulse cl-bg-off-white cl-h-8 cl-rounded-md" };
|
|
1101
|
+
function ca(o, l) {
|
|
1102
|
+
return u(), g("div", ia);
|
|
1103
1103
|
}
|
|
1104
|
-
const Sl = /* @__PURE__ */ ke(
|
|
1104
|
+
const Sl = /* @__PURE__ */ ke(ra, [["render", ca]]), yl = /* @__PURE__ */ P({
|
|
1105
1105
|
inheritAttrs: !1,
|
|
1106
1106
|
__name: "cl-ui-skeleton-text",
|
|
1107
1107
|
props: {
|
|
@@ -1138,13 +1138,13 @@ function zl(o) {
|
|
|
1138
1138
|
function fl(o) {
|
|
1139
1139
|
return o.some((l) => Qe(l));
|
|
1140
1140
|
}
|
|
1141
|
-
const
|
|
1141
|
+
const ua = {
|
|
1142
1142
|
key: 0,
|
|
1143
1143
|
class: "cl-flex cl-gap-2 cl-justify-between cl-mb-2 cl-w-full"
|
|
1144
|
-
},
|
|
1144
|
+
}, da = { key: 1 }, pa = { class: "cl-flex cl-flex-wrap cl-gap-1 cl-overflow-auto cl-pb-2 lg:cl-flex-nowrap lg:cl-gap-2 lg:cl-overflow-visible md:cl-justify-end" }, fa = { class: "cl-basis-full cl-col-span-2 cl-flex-grow lg:cl-basis-0" }, ma = {
|
|
1145
1145
|
key: 2,
|
|
1146
1146
|
class: "cl-flex-1 lg:cl-block lg:cl-flex-none"
|
|
1147
|
-
},
|
|
1147
|
+
}, ga = /* @__PURE__ */ P({
|
|
1148
1148
|
__name: "cl-ui-grid-action-row",
|
|
1149
1149
|
props: {
|
|
1150
1150
|
editMode: { type: Boolean },
|
|
@@ -1159,12 +1159,12 @@ const ca = {
|
|
|
1159
1159
|
emits: ["update:edit-mode", "update:filterPanelOpen", "clear-filters"],
|
|
1160
1160
|
setup(o) {
|
|
1161
1161
|
const l = o, { t } = de(), e = $(() => l.request.filters.some((a) => a.filterValue !== "")), r = il("cl-ui-grid-id") ?? "cl-ui-grid-filter";
|
|
1162
|
-
return (a, i) => a.initialLoad && (a.$slots["additional-grid-actions"] || m(fl)(a.columns) || m(zl)(a.columns)) ? (u(), g("div",
|
|
1163
|
-
(u(), g(H, null, J(2, (d) => T(m(
|
|
1162
|
+
return (a, i) => a.initialLoad && (a.$slots["additional-grid-actions"] || m(fl)(a.columns) || m(zl)(a.columns)) ? (u(), g("div", ua, [
|
|
1163
|
+
(u(), g(H, null, J(2, (d) => T(m(sa), {
|
|
1164
1164
|
key: d,
|
|
1165
1165
|
class: "cl-flex-1 lg:cl-flex-initial"
|
|
1166
1166
|
})), 64))
|
|
1167
|
-
])) : (u(), g("div",
|
|
1167
|
+
])) : (u(), g("div", da, [
|
|
1168
1168
|
v("div", {
|
|
1169
1169
|
class: E(["cl-mb-2 cl-text-sm lg:cl-hidden", {
|
|
1170
1170
|
"cl-hidden": a.options.hideGridMobileView
|
|
@@ -1172,8 +1172,8 @@ const ca = {
|
|
|
1172
1172
|
}, [
|
|
1173
1173
|
v("strong", null, I(m(t)("grid.gridTools")), 1)
|
|
1174
1174
|
], 2),
|
|
1175
|
-
v("div",
|
|
1176
|
-
v("div",
|
|
1175
|
+
v("div", pa, [
|
|
1176
|
+
v("div", fa, [
|
|
1177
1177
|
q(a.$slots, "additional-grid-actions", ge(ve({
|
|
1178
1178
|
loading: a.loading,
|
|
1179
1179
|
editMode: a.options.forceEditMode || a.editMode
|
|
@@ -1214,7 +1214,7 @@ const ca = {
|
|
|
1214
1214
|
]),
|
|
1215
1215
|
_: 1
|
|
1216
1216
|
}, 8, ["disabled"])) : R("", !0),
|
|
1217
|
-
a.options.hideViewManager === !1 ? (u(), g("div",
|
|
1217
|
+
a.options.hideViewManager === !1 ? (u(), g("div", ma, [
|
|
1218
1218
|
q(a.$slots, "view-manager")
|
|
1219
1219
|
])) : R("", !0),
|
|
1220
1220
|
m(fl)(a.columns) || m(zl)(a.columns) ? (u(), g(H, { key: 3 }, [
|
|
@@ -1253,7 +1253,7 @@ const ca = {
|
|
|
1253
1253
|
])
|
|
1254
1254
|
]));
|
|
1255
1255
|
}
|
|
1256
|
-
}),
|
|
1256
|
+
}), va = ["for"], ha = ["required", "disabled"], ba = /* @__PURE__ */ P({
|
|
1257
1257
|
inheritAttrs: !1,
|
|
1258
1258
|
__name: "cl-ui-input-checkbox",
|
|
1259
1259
|
props: /* @__PURE__ */ me({
|
|
@@ -1296,7 +1296,7 @@ const ca = {
|
|
|
1296
1296
|
}, ["stop", "prevent"]), ["enter"])),
|
|
1297
1297
|
onFocus: d[2] || (d[2] = (h) => r("focus")),
|
|
1298
1298
|
onBlur: d[3] || (d[3] = (h) => r("blur"))
|
|
1299
|
-
}), null, 16,
|
|
1299
|
+
}), null, 16, ha), [
|
|
1300
1300
|
[qt, e.value]
|
|
1301
1301
|
])
|
|
1302
1302
|
]),
|
|
@@ -1309,7 +1309,7 @@ const ca = {
|
|
|
1309
1309
|
for: i.$attrs.id ? i.$attrs.id.toString() : ""
|
|
1310
1310
|
}, [
|
|
1311
1311
|
q(i.$slots, "default", {}, void 0, !0)
|
|
1312
|
-
], 8,
|
|
1312
|
+
], 8, va)
|
|
1313
1313
|
]),
|
|
1314
1314
|
key: "0"
|
|
1315
1315
|
} : void 0,
|
|
@@ -1322,9 +1322,9 @@ const ca = {
|
|
|
1322
1322
|
} : void 0
|
|
1323
1323
|
]), 1032, ["show-required-asterisk", "errors"]));
|
|
1324
1324
|
}
|
|
1325
|
-
}), ul = /* @__PURE__ */ ke(
|
|
1325
|
+
}), ul = /* @__PURE__ */ ke(ba, [["__scopeId", "data-v-96a278cf"]]);
|
|
1326
1326
|
var ae = /* @__PURE__ */ ((o) => (o.CURRENCY = "currency", o.PERCENTAGE = "percentage", o.INTEGER = "integer", o.DECIMAL = "decimal", o.MULTIPLIER = "multiplier", o))(ae || {}), ue = /* @__PURE__ */ ((o) => (o.SHORT_DATE = "short-date", o.SHORT_DATETIME = "short-datetime", o.DATE = "date", o.DATETIME = "datetime", o.LONG_DATE = "long-date", o.LONG_DATETIME = "long-datetime", o.TIME = "time", o.MONTH_YEAR = "month-year", o))(ue || {});
|
|
1327
|
-
const
|
|
1327
|
+
const ya = {
|
|
1328
1328
|
"en-GB": {
|
|
1329
1329
|
comboBox: {
|
|
1330
1330
|
emptyHintText: "Choose a {object}",
|
|
@@ -1431,7 +1431,7 @@ const ba = {
|
|
|
1431
1431
|
invalidFileType: "{filename} is not a valid file type."
|
|
1432
1432
|
}
|
|
1433
1433
|
}
|
|
1434
|
-
},
|
|
1434
|
+
}, wa = {
|
|
1435
1435
|
"en-GB": {
|
|
1436
1436
|
[ae.PERCENTAGE]: {
|
|
1437
1437
|
style: "percent",
|
|
@@ -1454,7 +1454,7 @@ const ba = {
|
|
|
1454
1454
|
minimumFractionDigits: 2
|
|
1455
1455
|
}
|
|
1456
1456
|
}
|
|
1457
|
-
},
|
|
1457
|
+
}, ka = {
|
|
1458
1458
|
"en-GB": {
|
|
1459
1459
|
[ue.SHORT_DATE]: {
|
|
1460
1460
|
day: "numeric",
|
|
@@ -1501,30 +1501,30 @@ const ba = {
|
|
|
1501
1501
|
year: "numeric"
|
|
1502
1502
|
}
|
|
1503
1503
|
}
|
|
1504
|
-
}, qe =
|
|
1504
|
+
}, qe = jt({
|
|
1505
1505
|
locale: "en-GB",
|
|
1506
1506
|
fallbackLocale: "en-GB",
|
|
1507
|
-
messages:
|
|
1508
|
-
numberFormats:
|
|
1509
|
-
datetimeFormats:
|
|
1507
|
+
messages: ya,
|
|
1508
|
+
numberFormats: wa,
|
|
1509
|
+
datetimeFormats: ka,
|
|
1510
1510
|
useScope: "global",
|
|
1511
1511
|
missingWarn: !1,
|
|
1512
1512
|
fallbackWarn: !1,
|
|
1513
1513
|
warnHtmlMessage: !1
|
|
1514
1514
|
});
|
|
1515
|
-
function
|
|
1515
|
+
function xc(o, l) {
|
|
1516
1516
|
return qe.global.mergeLocaleMessage(o, l), ze();
|
|
1517
1517
|
}
|
|
1518
1518
|
function Xc(o, l) {
|
|
1519
1519
|
return qe.global.mergeNumberFormat(o, l), ze();
|
|
1520
1520
|
}
|
|
1521
|
-
function
|
|
1521
|
+
function _c(o, l) {
|
|
1522
1522
|
return qe.global.mergeDateTimeFormat(o, l), ze();
|
|
1523
1523
|
}
|
|
1524
|
-
function
|
|
1524
|
+
function eu(o) {
|
|
1525
1525
|
return qe.global.locale.value = o, ze();
|
|
1526
1526
|
}
|
|
1527
|
-
const { locale:
|
|
1527
|
+
const { locale: $a, getNumberFormat: Ca } = qe.global, dl = ae.DECIMAL;
|
|
1528
1528
|
function Se(o) {
|
|
1529
1529
|
return Ae(o, ae.DECIMAL, { additionalOptions: {
|
|
1530
1530
|
minimumFractionDigits: 0,
|
|
@@ -1545,7 +1545,7 @@ function Ae(o, l, t) {
|
|
|
1545
1545
|
const e = Pe(Dl(l), t);
|
|
1546
1546
|
let r = Ll(o, e) ?? "";
|
|
1547
1547
|
if (l === "currency-without-symbol") {
|
|
1548
|
-
const a =
|
|
1548
|
+
const a = Xe(e);
|
|
1549
1549
|
if (a) {
|
|
1550
1550
|
const i = Ve(a, 0, "unit", "currency", "literal");
|
|
1551
1551
|
r = Re(r, i, "");
|
|
@@ -1556,7 +1556,7 @@ function Ae(o, l, t) {
|
|
|
1556
1556
|
}
|
|
1557
1557
|
function at(o, l, t) {
|
|
1558
1558
|
if (pl(l)) {
|
|
1559
|
-
const e =
|
|
1559
|
+
const e = Sa(o, l);
|
|
1560
1560
|
return Bl(e ?? o, dl, t);
|
|
1561
1561
|
} else
|
|
1562
1562
|
return Bl(o, Dl(l), t);
|
|
@@ -1564,11 +1564,11 @@ function at(o, l, t) {
|
|
|
1564
1564
|
function ql(o, l) {
|
|
1565
1565
|
return pl(o) ? Pe(dl, l) : Pe(Dl(o), l);
|
|
1566
1566
|
}
|
|
1567
|
-
function
|
|
1568
|
-
const e =
|
|
1567
|
+
function Ta(o, l, t) {
|
|
1568
|
+
const e = Xe(t);
|
|
1569
1569
|
return !!e && (o.includes(Ve(e, 10000.11111, l)[0]) || o.includes(Ve(e, -10000.11111, l)[0]));
|
|
1570
1570
|
}
|
|
1571
|
-
function
|
|
1571
|
+
function Sa(o, l) {
|
|
1572
1572
|
let t = null;
|
|
1573
1573
|
o = `!${o}!`;
|
|
1574
1574
|
const e = `!${l}!`.split("{0}");
|
|
@@ -1588,7 +1588,7 @@ function Ta(o, l) {
|
|
|
1588
1588
|
function Bl(o, l, t) {
|
|
1589
1589
|
if (!o)
|
|
1590
1590
|
return NaN;
|
|
1591
|
-
const e = Pe(l, t), r =
|
|
1591
|
+
const e = Pe(l, t), r = Xe(e);
|
|
1592
1592
|
if (r === null)
|
|
1593
1593
|
return NaN;
|
|
1594
1594
|
const a = [
|
|
@@ -1619,9 +1619,9 @@ function Ve(o, l, ...t) {
|
|
|
1619
1619
|
}
|
|
1620
1620
|
function Ll(o, l) {
|
|
1621
1621
|
var t;
|
|
1622
|
-
return isNaN(o) ? "" : ((t =
|
|
1622
|
+
return isNaN(o) ? "" : ((t = Xe(l)) == null ? void 0 : t.format(o)) ?? null;
|
|
1623
1623
|
}
|
|
1624
|
-
function
|
|
1624
|
+
function Xe(o) {
|
|
1625
1625
|
try {
|
|
1626
1626
|
return new Intl.NumberFormat(o.locale, o);
|
|
1627
1627
|
} catch (l) {
|
|
@@ -1629,7 +1629,7 @@ function xe(o) {
|
|
|
1629
1629
|
}
|
|
1630
1630
|
}
|
|
1631
1631
|
function Pe(o, l) {
|
|
1632
|
-
const t = Vl(l == null ? void 0 : l.locale) || m(
|
|
1632
|
+
const t = Vl(l == null ? void 0 : l.locale) || m($a), e = Ca(t), r = be(Vl(l == null ? void 0 : l.additionalOptions) ?? {});
|
|
1633
1633
|
let a = "decimal";
|
|
1634
1634
|
switch (o) {
|
|
1635
1635
|
case ae.PERCENTAGE:
|
|
@@ -1648,22 +1648,22 @@ function Pe(o, l) {
|
|
|
1648
1648
|
};
|
|
1649
1649
|
}
|
|
1650
1650
|
function Dl(o) {
|
|
1651
|
-
return
|
|
1651
|
+
return qa(o) ? o : ae.CURRENCY;
|
|
1652
1652
|
}
|
|
1653
1653
|
function pl(o) {
|
|
1654
1654
|
return o.includes("{0}");
|
|
1655
1655
|
}
|
|
1656
|
-
function
|
|
1656
|
+
function qa(o) {
|
|
1657
1657
|
return !pl(o) && o !== "currency-without-symbol";
|
|
1658
1658
|
}
|
|
1659
|
-
function
|
|
1660
|
-
const t = Pe(dl, l), e =
|
|
1659
|
+
function Da(o, l) {
|
|
1660
|
+
const t = Pe(dl, l), e = Xe(t);
|
|
1661
1661
|
if (e === null)
|
|
1662
1662
|
return o;
|
|
1663
1663
|
const r = Ve(e, 10000.11111, "group");
|
|
1664
1664
|
return Re(o, r, "", o.length, !0);
|
|
1665
1665
|
}
|
|
1666
|
-
function
|
|
1666
|
+
function Oa(o) {
|
|
1667
1667
|
if (o.startsWith("ClUi"))
|
|
1668
1668
|
return {
|
|
1669
1669
|
name: `clUi${o.slice(4)}`,
|
|
@@ -1675,11 +1675,11 @@ function Da(o) {
|
|
|
1675
1675
|
from: "@iconify/vue"
|
|
1676
1676
|
};
|
|
1677
1677
|
}
|
|
1678
|
-
function
|
|
1679
|
-
return
|
|
1678
|
+
function lu() {
|
|
1679
|
+
return Oa;
|
|
1680
1680
|
}
|
|
1681
1681
|
const { t: Oe } = qe.global;
|
|
1682
|
-
function
|
|
1682
|
+
function Ea(o, l, t, e, r) {
|
|
1683
1683
|
return new Promise((a) => {
|
|
1684
1684
|
let i = {
|
|
1685
1685
|
valid: !1,
|
|
@@ -1734,7 +1734,7 @@ function Oa(o, l, t, e, r) {
|
|
|
1734
1734
|
a(i);
|
|
1735
1735
|
});
|
|
1736
1736
|
}
|
|
1737
|
-
function
|
|
1737
|
+
function Aa(o, l, t, e, r) {
|
|
1738
1738
|
return new Promise((a) => {
|
|
1739
1739
|
let i = {
|
|
1740
1740
|
valid: !1,
|
|
@@ -1789,13 +1789,13 @@ function Ea(o, l, t, e, r) {
|
|
|
1789
1789
|
a(i);
|
|
1790
1790
|
});
|
|
1791
1791
|
}
|
|
1792
|
-
function
|
|
1792
|
+
function Ma(o, l) {
|
|
1793
1793
|
return new Promise((t) => {
|
|
1794
1794
|
const e = l != null && l !== "" && l.toString().trim() !== "", r = Ee(e, Oe("input.valueIsRequired", { label: o }));
|
|
1795
1795
|
t(r);
|
|
1796
1796
|
});
|
|
1797
1797
|
}
|
|
1798
|
-
function
|
|
1798
|
+
function Va(o, l) {
|
|
1799
1799
|
return new Promise((t) => {
|
|
1800
1800
|
const r = l === "" || /[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(l) !== null, a = Ee(r, Oe("input.valueNotValidEmail", { label: o }));
|
|
1801
1801
|
t(a);
|
|
@@ -1807,16 +1807,16 @@ function Ee(o, l) {
|
|
|
1807
1807
|
message: o ? "" : l
|
|
1808
1808
|
};
|
|
1809
1809
|
}
|
|
1810
|
-
const
|
|
1810
|
+
const Ia = {
|
|
1811
1811
|
key: 3,
|
|
1812
1812
|
class: "cl-inline-block cl-whitespace-nowrap"
|
|
1813
|
-
},
|
|
1813
|
+
}, Na = {
|
|
1814
1814
|
key: 4,
|
|
1815
1815
|
class: "cl-inline-block cl-whitespace-nowrap"
|
|
1816
|
-
},
|
|
1816
|
+
}, Ra = {
|
|
1817
1817
|
key: 5,
|
|
1818
1818
|
class: "cl-inline-block cl-whitespace-nowrap"
|
|
1819
|
-
},
|
|
1819
|
+
}, Ua = ["title", "innerHTML"], Fl = /* @__PURE__ */ P({
|
|
1820
1820
|
__name: "cl-ui-grid-cell-value",
|
|
1821
1821
|
props: {
|
|
1822
1822
|
data: {},
|
|
@@ -1897,15 +1897,15 @@ const Va = {
|
|
|
1897
1897
|
], 64)) : (u(), g(H, { key: 2 }, [
|
|
1898
1898
|
ie(I(i(s.data[s.column.field], m(ue).DATETIME)), 1)
|
|
1899
1899
|
], 64))
|
|
1900
|
-
], 64)) : s.column.type === "list" && s.column.field !== void 0 && s.column.listEntries !== void 0 ? (u(), g("span",
|
|
1900
|
+
], 64)) : s.column.type === "list" && s.column.field !== void 0 && s.column.listEntries !== void 0 ? (u(), g("span", Ia, I(m(e)(((c = s.column.listEntries.find((p) => p.value === s.data[s.column.field])) == null ? void 0 : c.translationKey) ?? "")), 1)) : s.column.type === "number" && s.column.field !== void 0 ? (u(), g("span", Na, I(h(s.data[s.column.field], m(r))), 1)) : s.column.field !== void 0 ? (u(), g("span", Ra, [
|
|
1901
1901
|
v("span", {
|
|
1902
1902
|
title: a.value ? s.data[s.column.field] : void 0,
|
|
1903
1903
|
innerHTML: d()
|
|
1904
|
-
}, null, 8,
|
|
1904
|
+
}, null, 8, Ua)
|
|
1905
1905
|
])) : R("", !0);
|
|
1906
1906
|
};
|
|
1907
1907
|
}
|
|
1908
|
-
}),
|
|
1908
|
+
}), za = /* @__PURE__ */ P({
|
|
1909
1909
|
__name: "cl-ui-grid-cell",
|
|
1910
1910
|
props: {
|
|
1911
1911
|
data: {},
|
|
@@ -1985,7 +1985,7 @@ const Va = {
|
|
|
1985
1985
|
}, 1032, ["column", "data", "time-zone", "search-value", "row-index"]))
|
|
1986
1986
|
], 2));
|
|
1987
1987
|
}
|
|
1988
|
-
}),
|
|
1988
|
+
}), Ba = /* @__PURE__ */ P({
|
|
1989
1989
|
__name: "cl-ui-grid-row",
|
|
1990
1990
|
props: {
|
|
1991
1991
|
data: {},
|
|
@@ -1999,7 +1999,7 @@ const Va = {
|
|
|
1999
1999
|
emits: ["cell-focus", "cell-edit", "cell-undo"],
|
|
2000
2000
|
setup(o) {
|
|
2001
2001
|
return (l, t) => (u(), g("tr", null, [
|
|
2002
|
-
(u(!0), g(H, null, J(l.columns, (e, r) => (u(), F(
|
|
2002
|
+
(u(!0), g(H, null, J(l.columns, (e, r) => (u(), F(za, {
|
|
2003
2003
|
key: r,
|
|
2004
2004
|
data: l.data,
|
|
2005
2005
|
column: e,
|
|
@@ -2021,13 +2021,13 @@ const Va = {
|
|
|
2021
2021
|
]), 1032, ["data", "column", "options", "time-zone", "search-value", "edit-mode", "row-index", "onEdit", "onUndo"]))), 128))
|
|
2022
2022
|
]));
|
|
2023
2023
|
}
|
|
2024
|
-
}),
|
|
2024
|
+
}), La = ["colspan"], Fa = ["colspan"], Pa = { key: 2 }, ja = ["colspan"], Ga = { class: "cl-flex cl-flex-wrap cl-justify-center cl-text-center cl-text-sm cl-w-full" }, Ha = { key: 0 }, Za = {
|
|
2025
2025
|
key: 1,
|
|
2026
2026
|
class: "cl-mt-6 cl-w-full"
|
|
2027
|
-
},
|
|
2027
|
+
}, Wa = {
|
|
2028
2028
|
key: 2,
|
|
2029
2029
|
class: "cl-mt-4"
|
|
2030
|
-
},
|
|
2030
|
+
}, Ka = { class: "cl-mb-2 cl-w-full" }, Qa = /* @__PURE__ */ P({
|
|
2031
2031
|
__name: "cl-ui-grid-body",
|
|
2032
2032
|
props: {
|
|
2033
2033
|
columns: {},
|
|
@@ -2071,7 +2071,7 @@ const Va = {
|
|
|
2071
2071
|
{
|
|
2072
2072
|
count: 0,
|
|
2073
2073
|
target: null,
|
|
2074
|
-
reset:
|
|
2074
|
+
reset: xl(() => {
|
|
2075
2075
|
n.value[A] && (n.value[A].count = 0, n.value[A].target = null);
|
|
2076
2076
|
}, 400, { immediate: !1 })
|
|
2077
2077
|
}
|
|
@@ -2107,10 +2107,10 @@ const Va = {
|
|
|
2107
2107
|
"cl-border-t cl-border-off-white": A % 2 === 0
|
|
2108
2108
|
}
|
|
2109
2109
|
)
|
|
2110
|
-
}, " ", 10,
|
|
2110
|
+
}, " ", 10, La)
|
|
2111
2111
|
]))), 128)) : R("", !0),
|
|
2112
2112
|
f.data && ((N = f.data.results) != null && N.length) && !f.initialLoad ? (u(), g(H, { key: 1 }, [
|
|
2113
|
-
(u(!0), g(H, null, J(f.data.results, (A, D) => (u(), F(
|
|
2113
|
+
(u(!0), g(H, null, J(f.data.results, (A, D) => (u(), F(Ba, {
|
|
2114
2114
|
key: D,
|
|
2115
2115
|
data: A,
|
|
2116
2116
|
options: f.options,
|
|
@@ -2153,18 +2153,18 @@ const Va = {
|
|
|
2153
2153
|
v("td", {
|
|
2154
2154
|
colspan: f.columns.length,
|
|
2155
2155
|
class: "cl-gap-1 cl-py-2 cl-text-xs lg:cl-px-1"
|
|
2156
|
-
}, " ", 8,
|
|
2156
|
+
}, " ", 8, Fa)
|
|
2157
2157
|
], 2))), 128)) : R("", !0)
|
|
2158
|
-
], 64)) : f.loading ? R("", !0) : (u(), g("tr",
|
|
2158
|
+
], 64)) : f.loading ? R("", !0) : (u(), g("tr", Pa, [
|
|
2159
2159
|
v("td", {
|
|
2160
2160
|
colspan: f.columns.length
|
|
2161
2161
|
}, [
|
|
2162
|
-
v("div",
|
|
2163
|
-
f.$slots.noData && f.request.filters.some((A) => A.filterValue !== "") === !1 ? (u(), g("div",
|
|
2162
|
+
v("div", Ga, [
|
|
2163
|
+
f.$slots.noData && f.request.filters.some((A) => A.filterValue !== "") === !1 ? (u(), g("div", Ha, [
|
|
2164
2164
|
q(f.$slots, "noData")
|
|
2165
|
-
])) : (u(), g("strong",
|
|
2166
|
-
f.request.filters.some((A) => A.filterValue !== "") ? (u(), g("div",
|
|
2167
|
-
v("div",
|
|
2165
|
+
])) : (u(), g("strong", Za, I(m(r)("grid.noData")), 1)),
|
|
2166
|
+
f.request.filters.some((A) => A.filterValue !== "") ? (u(), g("div", Wa, [
|
|
2167
|
+
v("div", Ka, I(m(r)("grid.noDataFiltersPresent")), 1),
|
|
2168
2168
|
T(Ce, {
|
|
2169
2169
|
size: "small",
|
|
2170
2170
|
colour: "danger",
|
|
@@ -2177,12 +2177,12 @@ const Va = {
|
|
|
2177
2177
|
})
|
|
2178
2178
|
])) : R("", !0)
|
|
2179
2179
|
])
|
|
2180
|
-
], 8,
|
|
2180
|
+
], 8, ja)
|
|
2181
2181
|
]))
|
|
2182
2182
|
]);
|
|
2183
2183
|
};
|
|
2184
2184
|
}
|
|
2185
|
-
}),
|
|
2185
|
+
}), Ya = ["value", "inputmode", "disabled", "placeholder"], Ja = { class: "cl-absolute cl-flex-col cl-flex-nowrap cl-h-full cl-hidden cl-justify-between cl-py-0.5 cl-right-1 cl-text-xs cl-top-0 xl:cl-flex" }, xa = ["disabled"], Xa = ["disabled"], _e = /* @__PURE__ */ P({
|
|
2186
2186
|
inheritAttrs: !1,
|
|
2187
2187
|
__name: "cl-ui-input-number",
|
|
2188
2188
|
props: /* @__PURE__ */ me({
|
|
@@ -2204,9 +2204,9 @@ const Va = {
|
|
|
2204
2204
|
}),
|
|
2205
2205
|
emits: /* @__PURE__ */ me(["focus", "blur"], ["update:modelValue"]),
|
|
2206
2206
|
setup(o, { expose: l, emit: t }) {
|
|
2207
|
-
const e = o, r = ye(o, "modelValue"), a = t, i = V(0), d = V(), h = V(), { isOutside: s } =
|
|
2207
|
+
const e = o, r = ye(o, "modelValue"), a = t, i = V(0), d = V(), h = V(), { isOutside: s } = zt(h), { focused: n } = Bt(d), c = $(() => e.showArrows && s.value === !1);
|
|
2208
2208
|
le(n, () => {
|
|
2209
|
-
n.value ? (N.value =
|
|
2209
|
+
n.value ? (N.value = Da(B.value, {
|
|
2210
2210
|
locale: e.locale
|
|
2211
2211
|
}), A.value = !1, a("focus")) : (A.value && M(B.value, !0), N.value = void 0, A.value = !1, a("blur"));
|
|
2212
2212
|
});
|
|
@@ -2238,7 +2238,7 @@ const Va = {
|
|
|
2238
2238
|
r.value = null;
|
|
2239
2239
|
else if (j !== "") {
|
|
2240
2240
|
let we = typeof j == "number" ? j : se(j);
|
|
2241
|
-
oe && e.format === ae.PERCENTAGE && !
|
|
2241
|
+
oe && e.format === ae.PERCENTAGE && !Ta(B.value, "percentSign", w.value) && (we = we / f.value), isNaN(we) === !1 && (r.value = ee(Math.round(we * C.value) / C.value));
|
|
2242
2242
|
}
|
|
2243
2243
|
}
|
|
2244
2244
|
function te(j) {
|
|
@@ -2253,7 +2253,7 @@ const Va = {
|
|
|
2253
2253
|
additionalOptions: p.value
|
|
2254
2254
|
}) : +j;
|
|
2255
2255
|
}
|
|
2256
|
-
function
|
|
2256
|
+
function X(j) {
|
|
2257
2257
|
const oe = (D.value || 0) + (j ? -1 : 1) / C.value;
|
|
2258
2258
|
M(oe, !1);
|
|
2259
2259
|
}
|
|
@@ -2293,29 +2293,29 @@ const Va = {
|
|
|
2293
2293
|
oe[1] || (oe[1] = $e(re((U) => {
|
|
2294
2294
|
M(U.target.value, A.value), A.value = !1;
|
|
2295
2295
|
}, ["stop", "prevent"]), ["enter"])),
|
|
2296
|
-
oe[2] || (oe[2] = $e(re((U) =>
|
|
2297
|
-
oe[3] || (oe[3] = $e(re((U) =>
|
|
2296
|
+
oe[2] || (oe[2] = $e(re((U) => X(!0), ["stop", "prevent"]), ["down"])),
|
|
2297
|
+
oe[3] || (oe[3] = $e(re((U) => X(!1), ["stop", "prevent"]), ["up"]))
|
|
2298
2298
|
]
|
|
2299
|
-
}), null, 16,
|
|
2300
|
-
ne(v("div",
|
|
2299
|
+
}), null, 16, Ya)),
|
|
2300
|
+
ne(v("div", Ja, [
|
|
2301
2301
|
v("button", {
|
|
2302
2302
|
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",
|
|
2303
2303
|
disabled: j.disabled,
|
|
2304
|
-
onClick: oe[4] || (oe[4] = (U) =>
|
|
2304
|
+
onClick: oe[4] || (oe[4] = (U) => X(!1)),
|
|
2305
2305
|
onKeydown: [
|
|
2306
|
-
oe[5] || (oe[5] = $e(re((U) =>
|
|
2307
|
-
oe[6] || (oe[6] = $e(re((U) =>
|
|
2306
|
+
oe[5] || (oe[5] = $e(re((U) => X(!0), ["stop", "prevent"]), ["down"])),
|
|
2307
|
+
oe[6] || (oe[6] = $e(re((U) => X(!1), ["stop", "prevent"]), ["up"]))
|
|
2308
2308
|
]
|
|
2309
2309
|
}, [
|
|
2310
2310
|
T(we, { icon: "ph:caret-up-bold" })
|
|
2311
|
-
], 40,
|
|
2311
|
+
], 40, xa),
|
|
2312
2312
|
v("button", {
|
|
2313
2313
|
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",
|
|
2314
2314
|
disabled: j.disabled,
|
|
2315
|
-
onClick: oe[7] || (oe[7] = (U) =>
|
|
2315
|
+
onClick: oe[7] || (oe[7] = (U) => X(!0)),
|
|
2316
2316
|
onKeydown: [
|
|
2317
|
-
oe[8] || (oe[8] = $e(re((U) =>
|
|
2318
|
-
oe[9] || (oe[9] = $e(re((U) =>
|
|
2317
|
+
oe[8] || (oe[8] = $e(re((U) => X(!0), ["stop", "prevent"]), ["down"])),
|
|
2318
|
+
oe[9] || (oe[9] = $e(re((U) => X(!1), ["stop", "prevent"]), ["up"]))
|
|
2319
2319
|
]
|
|
2320
2320
|
}, [
|
|
2321
2321
|
T(we, { icon: "ph:caret-down-bold" })
|
|
@@ -2344,13 +2344,13 @@ const Va = {
|
|
|
2344
2344
|
]), 1032, ["show-required-asterisk", "errors"]);
|
|
2345
2345
|
};
|
|
2346
2346
|
}
|
|
2347
|
-
}),
|
|
2347
|
+
}), _a = {
|
|
2348
2348
|
key: 0,
|
|
2349
2349
|
class: "cl-flex cl-flex-col lg:cl-flex-row lg:cl-gap-2"
|
|
2350
|
-
},
|
|
2350
|
+
}, en = { class: "cl-border cl-border-off-white cl-flex cl-items-center cl-mt-2 cl-p-2 cl-rounded-lg cl-w-full lg:cl-px-4 lg:cl-py-3" }, ln = { class: "cl-border cl-border-off-white cl-mt-2 cl-p-2 cl-rounded-lg lg:cl-px-4 lg:cl-py-3" }, tn = ["inert"], on = { class: "cl-basis-full cl-bg-off-white cl-border cl-border-grey-1 cl-flex cl-flex-1 cl-items-center cl-justify-between cl-mt-2 cl-p-2 cl-rounded-lg cl-shadow cl-text-sm lg:cl-basis-0 lg:cl-px-4 lg:cl-py-3" }, an = { class: "cl-flex cl-flex-wrap cl-gap-x-4 cl-gap-y-2 cl-items-center cl-justify-between cl-w-full" }, nn = { class: "cl-flex cl-flex-wrap cl-gap-x-4" }, sn = { class: "cl-flex cl-flex-col lg:cl-flex-row" }, rn = { class: "cl-mr-2 cl-text-grey-3" }, cn = { class: "cl-flex cl-flex-col lg:cl-flex-row" }, un = { class: "cl-mr-1 cl-text-grey-3" }, dn = {
|
|
2351
2351
|
key: 0,
|
|
2352
2352
|
class: "cl-flex cl-flex-col lg:cl-flex-row"
|
|
2353
|
-
},
|
|
2353
|
+
}, pn = { class: "cl-basis-full cl-mr-1 cl-text-grey-3" }, fn = { class: "cl-flex cl-gap-0.5" }, mn = ["onClick"], gn = { class: "cl-flex cl-gap-1 cl-items-center" }, vn = ["onClick"], hn = { class: "cl-basis-full cl-bg-off-white cl-border cl-border-grey-1 cl-flex cl-gap-2 cl-items-center cl-justify-between cl-mt-2 cl-px-2 cl-py-1 cl-rounded-lg cl-shadow cl-text-sm lg:cl-basis-auto lg:cl-px-4 lg:cl-py-3" }, bn = { class: "cl-flex cl-items-center" }, yn = { class: "cl-mr-2 cl-text-grey-3" }, wn = /* @__PURE__ */ P({
|
|
2354
2354
|
__name: "cl-ui-grid-footer",
|
|
2355
2355
|
props: {
|
|
2356
2356
|
request: {},
|
|
@@ -2396,15 +2396,15 @@ const Va = {
|
|
|
2396
2396
|
}
|
|
2397
2397
|
return (n, c) => {
|
|
2398
2398
|
var p, w, b;
|
|
2399
|
-
return n.initialLoad ? (u(), g("div",
|
|
2400
|
-
v("div",
|
|
2399
|
+
return n.initialLoad ? (u(), g("div", _a, [
|
|
2400
|
+
v("div", en, [
|
|
2401
2401
|
T(m(yl), { words: 3 }),
|
|
2402
2402
|
T(m(yl), {
|
|
2403
2403
|
class: "cl-ml-auto",
|
|
2404
2404
|
words: 2
|
|
2405
2405
|
})
|
|
2406
2406
|
]),
|
|
2407
|
-
v("div",
|
|
2407
|
+
v("div", ln, [
|
|
2408
2408
|
T(m(Sl), { class: "cl-w-64" })
|
|
2409
2409
|
])
|
|
2410
2410
|
])) : n.loading || (w = (p = n.data) == null ? void 0 : p.results) != null && w.length && n.request ? (u(), g("div", {
|
|
@@ -2414,20 +2414,20 @@ const Va = {
|
|
|
2414
2414
|
}]),
|
|
2415
2415
|
inert: n.loading
|
|
2416
2416
|
}, [
|
|
2417
|
-
v("div",
|
|
2418
|
-
v("div",
|
|
2419
|
-
v("div",
|
|
2420
|
-
v("div",
|
|
2421
|
-
v("span",
|
|
2417
|
+
v("div", on, [
|
|
2418
|
+
v("div", an, [
|
|
2419
|
+
v("div", nn, [
|
|
2420
|
+
v("div", sn, [
|
|
2421
|
+
v("span", rn, I(m(r)("grid.page")), 1),
|
|
2422
2422
|
v("span", null, I(m(Se)(n.request.pageNumber)) + " / " + I(m(Se)(a.value)), 1)
|
|
2423
2423
|
]),
|
|
2424
|
-
v("div",
|
|
2425
|
-
v("span",
|
|
2424
|
+
v("div", cn, [
|
|
2425
|
+
v("span", un, I(m(r)("grid.totalRecords")), 1),
|
|
2426
2426
|
v("span", null, I(m(Se)(((b = n.data) == null ? void 0 : b.totalRecords) ?? 0)), 1)
|
|
2427
2427
|
]),
|
|
2428
|
-
n.options.hidePageSizeOptions === !1 ? (u(), g("div",
|
|
2429
|
-
v("span",
|
|
2430
|
-
v("ul",
|
|
2428
|
+
n.options.hidePageSizeOptions === !1 ? (u(), g("div", dn, [
|
|
2429
|
+
v("span", pn, I(m(r)("grid.pageSize")), 1),
|
|
2430
|
+
v("ul", fn, [
|
|
2431
2431
|
(u(), g(H, null, J(h, (f, C) => v("li", {
|
|
2432
2432
|
key: C,
|
|
2433
2433
|
class: E(["cl-mr-1 last:cl-mr-0", {
|
|
@@ -2435,12 +2435,12 @@ const Va = {
|
|
|
2435
2435
|
"cl-cursor-pointer": n.request.pageSize !== f
|
|
2436
2436
|
}]),
|
|
2437
2437
|
onClick: (N) => s(f)
|
|
2438
|
-
}, I(m(Se)(f)), 11,
|
|
2438
|
+
}, I(m(Se)(f)), 11, mn)), 64))
|
|
2439
2439
|
])
|
|
2440
2440
|
])) : R("", !0)
|
|
2441
2441
|
]),
|
|
2442
2442
|
v("div", null, [
|
|
2443
|
-
v("ul",
|
|
2443
|
+
v("ul", gn, [
|
|
2444
2444
|
v("li", {
|
|
2445
2445
|
class: E({
|
|
2446
2446
|
"cl-text-grey-2 cl-pointer-events-none": n.request.pageNumber === 1,
|
|
@@ -2473,7 +2473,7 @@ const Va = {
|
|
|
2473
2473
|
"cl-bg-grey-0": n.loading
|
|
2474
2474
|
}]),
|
|
2475
2475
|
onClick: (N) => d(f)
|
|
2476
|
-
}, I(m(Se)(f)), 11,
|
|
2476
|
+
}, I(m(Se)(f)), 11, vn))), 128)),
|
|
2477
2477
|
v("li", {
|
|
2478
2478
|
class: E({
|
|
2479
2479
|
"cl-text-grey-2 cl-pointer-events-none": n.request.pageNumber >= a.value,
|
|
@@ -2502,9 +2502,9 @@ const Va = {
|
|
|
2502
2502
|
])
|
|
2503
2503
|
])
|
|
2504
2504
|
]),
|
|
2505
|
-
v("div",
|
|
2506
|
-
v("div",
|
|
2507
|
-
v("span",
|
|
2505
|
+
v("div", hn, [
|
|
2506
|
+
v("div", bn, [
|
|
2507
|
+
v("span", yn, I(m(r)("grid.jumpToPage")), 1),
|
|
2508
2508
|
T(_e, {
|
|
2509
2509
|
"model-value": n.request.pageNumber,
|
|
2510
2510
|
min: 1,
|
|
@@ -2521,7 +2521,7 @@ const Va = {
|
|
|
2521
2521
|
}, 8, ["model-value", "max", "disabled"])
|
|
2522
2522
|
])
|
|
2523
2523
|
])
|
|
2524
|
-
], 10,
|
|
2524
|
+
], 10, tn)) : R("", !0);
|
|
2525
2525
|
};
|
|
2526
2526
|
}
|
|
2527
2527
|
});
|
|
@@ -2536,7 +2536,7 @@ function nt(o, l, t, e) {
|
|
|
2536
2536
|
let r = Al(Q.now(), t, e);
|
|
2537
2537
|
return r = ut(l, t, r, e), r = ct(o, t, r, e), r.toJSDate();
|
|
2538
2538
|
}
|
|
2539
|
-
function
|
|
2539
|
+
function kn(o, l, t, e, r) {
|
|
2540
2540
|
let a = Q.fromJSDate(t, { zone: e });
|
|
2541
2541
|
return a = ut(l, e, a, r), a = ct(o, e, a, r), a.toJSDate();
|
|
2542
2542
|
}
|
|
@@ -2633,7 +2633,7 @@ function ut(o, l, t, e) {
|
|
|
2633
2633
|
}
|
|
2634
2634
|
return t;
|
|
2635
2635
|
}
|
|
2636
|
-
const
|
|
2636
|
+
const $n = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, Cn = ["onClick"], Tn = /* @__PURE__ */ P({
|
|
2637
2637
|
__name: "cl-ui-quick-dates-group",
|
|
2638
2638
|
props: {
|
|
2639
2639
|
dates: {},
|
|
@@ -2642,7 +2642,7 @@ const kn = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, $n = ["onClick"], Cn =
|
|
|
2642
2642
|
emits: ["quick-date-selected"],
|
|
2643
2643
|
setup(o, { emit: l }) {
|
|
2644
2644
|
const t = l, { t: e } = de();
|
|
2645
|
-
return (r, a) => (u(), g("div",
|
|
2645
|
+
return (r, a) => (u(), g("div", $n, [
|
|
2646
2646
|
(u(!0), g(H, null, J(r.dates, (i, d) => {
|
|
2647
2647
|
var h, s;
|
|
2648
2648
|
return u(), g("button", {
|
|
@@ -2654,11 +2654,11 @@ const kn = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, $n = ["onClick"], Cn =
|
|
|
2654
2654
|
onClick: (n) => t("quick-date-selected", i)
|
|
2655
2655
|
}, [
|
|
2656
2656
|
v("span", null, I(m(e)(i.translationKey)), 1)
|
|
2657
|
-
], 10,
|
|
2657
|
+
], 10, Cn);
|
|
2658
2658
|
}), 128))
|
|
2659
2659
|
]));
|
|
2660
2660
|
}
|
|
2661
|
-
}),
|
|
2661
|
+
}), Sn = [
|
|
2662
2662
|
"today",
|
|
2663
2663
|
"this week",
|
|
2664
2664
|
"this month",
|
|
@@ -2750,7 +2750,7 @@ const kn = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, $n = ["onClick"], Cn =
|
|
|
2750
2750
|
...al,
|
|
2751
2751
|
...nl,
|
|
2752
2752
|
...Ze
|
|
2753
|
-
],
|
|
2753
|
+
], qn = { class: "cl-p-2 cl-pt-0" }, Dn = {
|
|
2754
2754
|
key: 0,
|
|
2755
2755
|
class: "cl-mt-2 cl-opacity-20"
|
|
2756
2756
|
}, pt = /* @__PURE__ */ P({
|
|
@@ -2785,18 +2785,18 @@ const kn = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, $n = ["onClick"], Cn =
|
|
|
2785
2785
|
}
|
|
2786
2786
|
return i;
|
|
2787
2787
|
});
|
|
2788
|
-
return (i, d) => (u(), g("div",
|
|
2788
|
+
return (i, d) => (u(), g("div", qn, [
|
|
2789
2789
|
v("div", null, I(m(r)("quickDates.quickDatesHeader")), 1),
|
|
2790
2790
|
(u(!0), g(H, null, J(a.value, (h, s) => (u(), g("div", {
|
|
2791
2791
|
key: s,
|
|
2792
2792
|
class: "cl-pt-2"
|
|
2793
2793
|
}, [
|
|
2794
|
-
T(
|
|
2794
|
+
T(Tn, {
|
|
2795
2795
|
dates: h,
|
|
2796
2796
|
"selected-quick-date": i.selectedQuickDate,
|
|
2797
2797
|
onQuickDateSelected: d[0] || (d[0] = (n) => e("quick-date-selected", n))
|
|
2798
2798
|
}, null, 8, ["dates", "selected-quick-date"]),
|
|
2799
|
-
s < a.value.length - 1 ? (u(), g("div",
|
|
2799
|
+
s < a.value.length - 1 ? (u(), g("div", Dn)) : R("", !0)
|
|
2800
2800
|
]))), 128))
|
|
2801
2801
|
]));
|
|
2802
2802
|
}
|
|
@@ -2909,7 +2909,7 @@ const kn = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, $n = ["onClick"], Cn =
|
|
|
2909
2909
|
const C = rt(f, e.value);
|
|
2910
2910
|
r.value = C, n.value = f, c.value.move(C.start), c.value.hidePopover();
|
|
2911
2911
|
}
|
|
2912
|
-
const w =
|
|
2912
|
+
const w = Xl("(min-width: 768px)"), b = $(() => w.value ? 2 : 1);
|
|
2913
2913
|
return (f, C) => (u(), F(Ne, { "show-required-asterisk": f.required }, he({
|
|
2914
2914
|
label: O(() => [
|
|
2915
2915
|
q(f.$slots, "default")
|
|
@@ -2968,13 +2968,13 @@ const kn = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, $n = ["onClick"], Cn =
|
|
|
2968
2968
|
} : void 0
|
|
2969
2969
|
]), 1032, ["show-required-asterisk"]));
|
|
2970
2970
|
}
|
|
2971
|
-
}),
|
|
2971
|
+
}), On = [
|
|
2972
2972
|
"text",
|
|
2973
2973
|
"email",
|
|
2974
2974
|
"tel",
|
|
2975
2975
|
"password",
|
|
2976
2976
|
"search"
|
|
2977
|
-
],
|
|
2977
|
+
], En = /* @__PURE__ */ P({
|
|
2978
2978
|
inheritAttrs: !1,
|
|
2979
2979
|
__name: "cl-ui-input-text-area",
|
|
2980
2980
|
props: /* @__PURE__ */ me({
|
|
@@ -3061,7 +3061,7 @@ const kn = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, $n = ["onClick"], Cn =
|
|
|
3061
3061
|
} : void 0
|
|
3062
3062
|
]), 1032, ["errors", "show-required-asterisk"]));
|
|
3063
3063
|
}
|
|
3064
|
-
}),
|
|
3064
|
+
}), An = { class: "cl-gap-1 cl-grid cl-grid-cols-[auto_1fr_auto_auto] cl-pt-0.5 cl-w-full" }, Mn = ["disabled"], Vn = { class: "cl-max-w-max" }, In = { class: "cl-flex cl-flex-col cl-gap-1 cl-w-full" }, Nn = ["min", "disabled", "required", "step", "max"], Rn = { class: "cl-bg-white cl-border cl-border-grey-2 cl-leading-none cl-rounded-full cl-text-center cl-text-xs" }, Un = ["disabled"], zn = ["disabled", "title"], Bn = /* @__PURE__ */ P({
|
|
3065
3065
|
inheritAttrs: !1,
|
|
3066
3066
|
__name: "cl-ui-input-range",
|
|
3067
3067
|
props: /* @__PURE__ */ me({
|
|
@@ -3081,7 +3081,7 @@ const kn = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, $n = ["onClick"], Cn =
|
|
|
3081
3081
|
Yl((c) => ({
|
|
3082
3082
|
"312117e7": d.value
|
|
3083
3083
|
}));
|
|
3084
|
-
const t = o, e = ye(o, "modelValue"), { t: r } = de(), a = V(), i = V(), d = $(() => `${100 * (e.value - t.min) / (t.max - t.min)}%`), h = V(!1), s =
|
|
3084
|
+
const t = o, e = ye(o, "modelValue"), { t: r } = de(), a = V(), i = V(), d = $(() => `${100 * (e.value - t.min) / (t.max - t.min)}%`), h = V(!1), s = Lt(e, 50);
|
|
3085
3085
|
function n(c) {
|
|
3086
3086
|
var p;
|
|
3087
3087
|
e.value = c, (p = a.value) == null || p.focus();
|
|
@@ -3102,14 +3102,14 @@ const kn = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, $n = ["onClick"], Cn =
|
|
|
3102
3102
|
"show-required-asterisk": c.required
|
|
3103
3103
|
}, he({
|
|
3104
3104
|
default: O(() => [
|
|
3105
|
-
v("div",
|
|
3105
|
+
v("div", An, [
|
|
3106
3106
|
v("button", {
|
|
3107
3107
|
disabled: c.disabled,
|
|
3108
3108
|
class: "active:cl-bg-grey-0 cl-bg-white cl-border cl-border-grey-2 cl-leading-none cl-min-w-[26px] cl-p-[5px] cl-rounded-full cl-shadow cl-text-xs cl-transition-colors disabled:cl-bg-grey-1 hover:cl-bg-off-white",
|
|
3109
3109
|
onClick: p[0] || (p[0] = (b) => n(c.min))
|
|
3110
|
-
}, I(m(ml)(c.min, c.precision)), 9,
|
|
3111
|
-
v("div",
|
|
3112
|
-
ne(v("div",
|
|
3110
|
+
}, I(m(ml)(c.min, c.precision)), 9, Mn),
|
|
3111
|
+
v("div", Vn, [
|
|
3112
|
+
ne(v("div", In, [
|
|
3113
3113
|
ne(v("input", Z({
|
|
3114
3114
|
ref_key: "sliderRef",
|
|
3115
3115
|
ref: a,
|
|
@@ -3122,7 +3122,7 @@ const kn = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, $n = ["onClick"], Cn =
|
|
|
3122
3122
|
required: c.required,
|
|
3123
3123
|
step: 1 / Math.pow(10, c.precision),
|
|
3124
3124
|
max: c.max
|
|
3125
|
-
}), null, 16,
|
|
3125
|
+
}), null, 16, Nn), [
|
|
3126
3126
|
[
|
|
3127
3127
|
Tl,
|
|
3128
3128
|
e.value,
|
|
@@ -3130,7 +3130,7 @@ const kn = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, $n = ["onClick"], Cn =
|
|
|
3130
3130
|
{ number: !0 }
|
|
3131
3131
|
]
|
|
3132
3132
|
]),
|
|
3133
|
-
v("div",
|
|
3133
|
+
v("div", Rn, I(m(ml)(m(s), c.precision)), 1)
|
|
3134
3134
|
], 512), [
|
|
3135
3135
|
[fe, h.value === !1]
|
|
3136
3136
|
]),
|
|
@@ -3154,7 +3154,7 @@ const kn = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, $n = ["onClick"], Cn =
|
|
|
3154
3154
|
disabled: c.disabled,
|
|
3155
3155
|
class: "active:cl-bg-grey-0 cl-bg-white cl-border cl-border-grey-2 cl-leading-none cl-min-w-[26px] cl-p-[5px] cl-rounded-full cl-shadow cl-text-xs cl-transition-colors disabled:cl-bg-grey-1 hover:cl-bg-off-white",
|
|
3156
3156
|
onClick: p[3] || (p[3] = (b) => n(c.max))
|
|
3157
|
-
}, I(m(ml)(c.max, c.precision)), 9,
|
|
3157
|
+
}, I(m(ml)(c.max, c.precision)), 9, Un),
|
|
3158
3158
|
v("button", {
|
|
3159
3159
|
disabled: c.disabled,
|
|
3160
3160
|
class: "active:cl-bg-grey-0 cl-bg-white cl-border cl-border-grey-2 cl-leading-none cl-min-w-0 cl-p-[5px] cl-rounded-full cl-shadow cl-text-xs cl-transition-colors disabled:cl-bg-grey-1 hover:cl-bg-off-white",
|
|
@@ -3162,7 +3162,7 @@ const kn = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, $n = ["onClick"], Cn =
|
|
|
3162
3162
|
onClick: p[4] || (p[4] = (b) => h.value = !h.value)
|
|
3163
3163
|
}, [
|
|
3164
3164
|
T(w, { icon: "ph:arrows-left-right-thin" })
|
|
3165
|
-
], 8,
|
|
3165
|
+
], 8, zn)
|
|
3166
3166
|
])
|
|
3167
3167
|
]),
|
|
3168
3168
|
_: 2
|
|
@@ -3184,11 +3184,11 @@ const kn = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, $n = ["onClick"], Cn =
|
|
|
3184
3184
|
]), 1032, ["errors", "show-required-asterisk"]);
|
|
3185
3185
|
};
|
|
3186
3186
|
}
|
|
3187
|
-
}),
|
|
3187
|
+
}), Ln = /* @__PURE__ */ ke(Bn, [["__scopeId", "data-v-d2902c00"]]), mt = [
|
|
3188
3188
|
"date",
|
|
3189
3189
|
"datetime",
|
|
3190
3190
|
"time"
|
|
3191
|
-
],
|
|
3191
|
+
], Fn = [
|
|
3192
3192
|
"auto",
|
|
3193
3193
|
"auto-start",
|
|
3194
3194
|
"auto-end",
|
|
@@ -3200,13 +3200,13 @@ const kn = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, $n = ["onClick"], Cn =
|
|
|
3200
3200
|
"right-end",
|
|
3201
3201
|
"left-start",
|
|
3202
3202
|
"left-end"
|
|
3203
|
-
],
|
|
3203
|
+
], Pn = {
|
|
3204
3204
|
key: 1,
|
|
3205
3205
|
class: "cl-relative"
|
|
3206
|
-
},
|
|
3206
|
+
}, jn = ["value", "disabled", "placeholder"], Gn = {
|
|
3207
3207
|
key: 0,
|
|
3208
3208
|
class: "action-icon cl-absolute cl-bg-transparent cl-flex cl-right-2 cl-text-grey-4 cl-top-3.5"
|
|
3209
|
-
},
|
|
3209
|
+
}, Hn = /* @__PURE__ */ P({
|
|
3210
3210
|
inheritAttrs: !1,
|
|
3211
3211
|
__name: "cl-ui-calendar-input",
|
|
3212
3212
|
props: {
|
|
@@ -3248,7 +3248,7 @@ const kn = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, $n = ["onClick"], Cn =
|
|
|
3248
3248
|
"date-range-selected": !!d.rangeSelected,
|
|
3249
3249
|
onTogglePopover: h[0] || (h[0] = (s) => d.$emit("togglePopover")),
|
|
3250
3250
|
onClear: h[1] || (h[1] = (s) => d.$emit("clear"))
|
|
3251
|
-
}), null, 16, ["disabled", "required", "date-range-selected"])) : (u(), g("div",
|
|
3251
|
+
}), null, 16, ["disabled", "required", "date-range-selected"])) : (u(), g("div", Pn, [
|
|
3252
3252
|
v("input", Z({
|
|
3253
3253
|
ref_key: "element",
|
|
3254
3254
|
ref: e
|
|
@@ -3257,13 +3257,13 @@ const kn = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, $n = ["onClick"], Cn =
|
|
|
3257
3257
|
type: "text",
|
|
3258
3258
|
disabled: d.disabled,
|
|
3259
3259
|
placeholder: i.value
|
|
3260
|
-
}, Ot(d.events, !0)), null, 16,
|
|
3260
|
+
}, Ot(d.events, !0)), null, 16, jn),
|
|
3261
3261
|
T(m(_), {
|
|
3262
3262
|
class: "cl-absolute cl-bg-transparent cl-cursor-text cl-left-2 cl-text-grey-4 cl-top-3.5 icon",
|
|
3263
3263
|
icon: d.type === "time" ? "ph-clock" : "ph:calendar",
|
|
3264
3264
|
onClick: r
|
|
3265
3265
|
}, null, 8, ["icon"]),
|
|
3266
|
-
d.disabled ? R("", !0) : (u(), g("div",
|
|
3266
|
+
d.disabled ? R("", !0) : (u(), g("div", Gn, [
|
|
3267
3267
|
d.type !== "time" ? (u(), F(m(_), {
|
|
3268
3268
|
key: 0,
|
|
3269
3269
|
class: "cl-cursor-pointer hover:cl-text-link-light",
|
|
@@ -3279,7 +3279,7 @@ const kn = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, $n = ["onClick"], Cn =
|
|
|
3279
3279
|
]))
|
|
3280
3280
|
]));
|
|
3281
3281
|
}
|
|
3282
|
-
}), We = /* @__PURE__ */ ke(
|
|
3282
|
+
}), We = /* @__PURE__ */ ke(Hn, [["__scopeId", "data-v-307fea23"]]), gt = /* @__PURE__ */ P({
|
|
3283
3283
|
inheritAttrs: !1,
|
|
3284
3284
|
__name: "cl-ui-input-datetime",
|
|
3285
3285
|
props: /* @__PURE__ */ me({
|
|
@@ -3315,7 +3315,7 @@ const kn = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, $n = ["onClick"], Cn =
|
|
|
3315
3315
|
e.minDate,
|
|
3316
3316
|
e.maxDate
|
|
3317
3317
|
], () => {
|
|
3318
|
-
e.type !== "time" && (d.value instanceof Date || d.value === null) && (d.value =
|
|
3318
|
+
e.type !== "time" && (d.value instanceof Date || d.value === null) && (d.value = kn(e.minDate, e.maxDate, d.value, i.value, e.type));
|
|
3319
3319
|
}), l({
|
|
3320
3320
|
focus() {
|
|
3321
3321
|
var f;
|
|
@@ -3416,7 +3416,7 @@ const kn = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, $n = ["onClick"], Cn =
|
|
|
3416
3416
|
q(r.$slots, "default", ge(ve({ toggleModalInput: e })))
|
|
3417
3417
|
], 16));
|
|
3418
3418
|
}
|
|
3419
|
-
}),
|
|
3419
|
+
}), Zn = ["placeholder"], Wn = ["value", "disabled"], Kn = ["value", "disabled"], Qn = ["disabled"], wl = /* @__PURE__ */ P({
|
|
3420
3420
|
inheritAttrs: !1,
|
|
3421
3421
|
__name: "cl-ui-select",
|
|
3422
3422
|
props: /* @__PURE__ */ me({
|
|
@@ -3487,19 +3487,19 @@ const kn = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, $n = ["onClick"], Cn =
|
|
|
3487
3487
|
class: [s.value, "cl-outline-none cl-overflow-hidden cl-px-2 cl-py-1 cl-rounded-lg cl-text-ellipsis cl-transition-colors cl-w-full cl-whitespace-nowrap"],
|
|
3488
3488
|
placeholder: n.placeholder,
|
|
3489
3489
|
onClick: c[0] || (c[0] = (w) => i())
|
|
3490
|
-
}), null, 16,
|
|
3490
|
+
}), null, 16, Zn)) : h(t.value) ? (u(), g("input", Z({ key: 1 }, n.$attrs, {
|
|
3491
3491
|
readonly: "",
|
|
3492
3492
|
class: [s.value, "cl-outline-none cl-overflow-hidden cl-px-2 cl-py-1 cl-rounded-lg cl-text-ellipsis cl-transition-colors cl-w-full cl-whitespace-nowrap"],
|
|
3493
3493
|
value: t.value.name,
|
|
3494
3494
|
disabled: n.disabled,
|
|
3495
3495
|
onClick: c[1] || (c[1] = (w) => i())
|
|
3496
|
-
}), null, 16,
|
|
3496
|
+
}), null, 16, Wn)) : (u(), g("input", Z({ key: 2 }, n.$attrs, {
|
|
3497
3497
|
readonly: "",
|
|
3498
3498
|
class: [s.value, "cl-outline-none cl-overflow-hidden cl-px-2 cl-py-1 cl-rounded-lg cl-text-ellipsis cl-transition-colors cl-w-full cl-whitespace-nowrap"],
|
|
3499
3499
|
value: t.value,
|
|
3500
3500
|
disabled: n.disabled,
|
|
3501
3501
|
onClick: c[2] || (c[2] = (w) => i())
|
|
3502
|
-
}), null, 16,
|
|
3502
|
+
}), null, 16, Kn)),
|
|
3503
3503
|
v("div", {
|
|
3504
3504
|
class: "cl-flex cl-items-center cl-px-2 cl-py-1 cl-relative cl-text-grey-3 cl-z-10",
|
|
3505
3505
|
disabled: n.disabled,
|
|
@@ -3508,7 +3508,7 @@ const kn = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, $n = ["onClick"], Cn =
|
|
|
3508
3508
|
T(p, {
|
|
3509
3509
|
icon: r.value ? "ph:caret-up-bold" : "ph:caret-down-bold"
|
|
3510
3510
|
}, null, 8, ["icon"])
|
|
3511
|
-
], 8,
|
|
3511
|
+
], 8, Qn)
|
|
3512
3512
|
]),
|
|
3513
3513
|
_: 1
|
|
3514
3514
|
}, 8, ["class"])) : R("", !0)
|
|
@@ -3559,7 +3559,7 @@ const kn = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, $n = ["onClick"], Cn =
|
|
|
3559
3559
|
q(e.$slots, "default")
|
|
3560
3560
|
], 2));
|
|
3561
3561
|
}
|
|
3562
|
-
}),
|
|
3562
|
+
}), Yn = [
|
|
3563
3563
|
"string",
|
|
3564
3564
|
"boolean",
|
|
3565
3565
|
"number",
|
|
@@ -3572,7 +3572,7 @@ const kn = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, $n = ["onClick"], Cn =
|
|
|
3572
3572
|
function vt(o) {
|
|
3573
3573
|
return typeof o.caption == "string" && typeof o.name == "string" && typeof o.type == "string";
|
|
3574
3574
|
}
|
|
3575
|
-
function
|
|
3575
|
+
function Jn(o) {
|
|
3576
3576
|
let l = Array.isArray(o);
|
|
3577
3577
|
if (l) {
|
|
3578
3578
|
for (const t of o)
|
|
@@ -3583,7 +3583,7 @@ function Yn(o) {
|
|
|
3583
3583
|
}
|
|
3584
3584
|
return l;
|
|
3585
3585
|
}
|
|
3586
|
-
const
|
|
3586
|
+
const xn = [
|
|
3587
3587
|
"ellipsis",
|
|
3588
3588
|
"wrap-text"
|
|
3589
3589
|
];
|
|
@@ -3601,24 +3601,24 @@ const Xn = [
|
|
|
3601
3601
|
"equalorgreaterthan",
|
|
3602
3602
|
"andcontains"
|
|
3603
3603
|
];
|
|
3604
|
-
function
|
|
3604
|
+
function _n(o) {
|
|
3605
3605
|
return typeof o.filterOnColumn == "string" && typeof o.filterOperation == "number" && typeof o.filterValue == "string";
|
|
3606
3606
|
}
|
|
3607
|
-
function
|
|
3607
|
+
function es(o) {
|
|
3608
3608
|
return o === null || typeof o.sortByAscending == "boolean" && typeof o.sortOnColumn == "string";
|
|
3609
3609
|
}
|
|
3610
|
-
function
|
|
3611
|
-
let l = typeof o.filters == "object" && Array.isArray(o.filters) && typeof o.pageNumber == "number" && typeof o.pageSize == "number" && typeof o.sort == "object" &&
|
|
3610
|
+
function ls(o) {
|
|
3611
|
+
let l = typeof o.filters == "object" && Array.isArray(o.filters) && typeof o.pageNumber == "number" && typeof o.pageSize == "number" && typeof o.sort == "object" && es(o.sort);
|
|
3612
3612
|
if (l) {
|
|
3613
3613
|
for (const t of o.filters)
|
|
3614
|
-
if (!
|
|
3614
|
+
if (!_n(t)) {
|
|
3615
3615
|
l = !1;
|
|
3616
3616
|
break;
|
|
3617
3617
|
}
|
|
3618
3618
|
}
|
|
3619
3619
|
return l;
|
|
3620
3620
|
}
|
|
3621
|
-
function
|
|
3621
|
+
function ts(o, l) {
|
|
3622
3622
|
let t = typeof o.results == "object" && Array.isArray(o.results) && typeof o.totalRecords == "number";
|
|
3623
3623
|
if (t) {
|
|
3624
3624
|
for (const e of o.results)
|
|
@@ -3629,7 +3629,7 @@ function ls(o, l) {
|
|
|
3629
3629
|
}
|
|
3630
3630
|
return t;
|
|
3631
3631
|
}
|
|
3632
|
-
const
|
|
3632
|
+
const os = {
|
|
3633
3633
|
method: "equal",
|
|
3634
3634
|
icon: "mdi:equal",
|
|
3635
3635
|
description: "Equals",
|
|
@@ -3642,12 +3642,12 @@ const ts = {
|
|
|
3642
3642
|
"list"
|
|
3643
3643
|
],
|
|
3644
3644
|
key: "equal"
|
|
3645
|
-
},
|
|
3645
|
+
}, as = {
|
|
3646
3646
|
method: "contains",
|
|
3647
3647
|
icon: "mdi:format-letter-matches",
|
|
3648
3648
|
description: "Contains",
|
|
3649
3649
|
allowedTypes: ["string"]
|
|
3650
|
-
},
|
|
3650
|
+
}, ns = {
|
|
3651
3651
|
method: "lessthan",
|
|
3652
3652
|
icon: "mdi:less-than",
|
|
3653
3653
|
description: "Before",
|
|
@@ -3657,7 +3657,7 @@ const ts = {
|
|
|
3657
3657
|
],
|
|
3658
3658
|
key: "before"
|
|
3659
3659
|
}, Pl = [
|
|
3660
|
-
|
|
3660
|
+
as,
|
|
3661
3661
|
{
|
|
3662
3662
|
method: "notcontains",
|
|
3663
3663
|
icon: "mdi:format-letter-spacing-variant",
|
|
@@ -3676,7 +3676,7 @@ const ts = {
|
|
|
3676
3676
|
description: "Ends with",
|
|
3677
3677
|
allowedTypes: ["string"]
|
|
3678
3678
|
},
|
|
3679
|
-
|
|
3679
|
+
os,
|
|
3680
3680
|
{
|
|
3681
3681
|
method: "notequal",
|
|
3682
3682
|
icon: "mdi:not-equal",
|
|
@@ -3689,7 +3689,7 @@ const ts = {
|
|
|
3689
3689
|
],
|
|
3690
3690
|
key: "notequal"
|
|
3691
3691
|
},
|
|
3692
|
-
|
|
3692
|
+
ns,
|
|
3693
3693
|
{
|
|
3694
3694
|
method: "greaterthan",
|
|
3695
3695
|
icon: "mdi:greater-than",
|
|
@@ -3744,7 +3744,7 @@ const ts = {
|
|
|
3744
3744
|
description: "Less than",
|
|
3745
3745
|
allowedTypes: ["number"]
|
|
3746
3746
|
}
|
|
3747
|
-
],
|
|
3747
|
+
], ss = { class: "cl-bg-off-white cl-border-grey-1 cl-border-r cl-flex cl-h-full cl-items-center cl-justify-center cl-rounded-md cl-w-10" }, rs = { class: "cl-p-2 cl-select-none" }, is = ["onClick"], cs = /* @__PURE__ */ P({
|
|
3748
3748
|
__name: "cl-ui-grid-method-selector",
|
|
3749
3749
|
props: {
|
|
3750
3750
|
filter: {},
|
|
@@ -3790,7 +3790,7 @@ const ts = {
|
|
|
3790
3790
|
ref: h,
|
|
3791
3791
|
class: "cl-group cl-inline cl-relative cl-w-auto"
|
|
3792
3792
|
}, [
|
|
3793
|
-
v("div",
|
|
3793
|
+
v("div", ss, [
|
|
3794
3794
|
i.value ? (u(), F(m(_), {
|
|
3795
3795
|
key: 0,
|
|
3796
3796
|
icon: i.value.icon,
|
|
@@ -3807,7 +3807,7 @@ const ts = {
|
|
|
3807
3807
|
"cl-left-0": n.value
|
|
3808
3808
|
}])
|
|
3809
3809
|
}, [
|
|
3810
|
-
v("strong",
|
|
3810
|
+
v("strong", rs, I(m(r)("grid.availableMethods")), 1),
|
|
3811
3811
|
(u(!0), g(H, null, J(a.value, (w, b) => {
|
|
3812
3812
|
var f;
|
|
3813
3813
|
return u(), g("span", {
|
|
@@ -3822,24 +3822,24 @@ const ts = {
|
|
|
3822
3822
|
icon: w.icon,
|
|
3823
3823
|
class: "cl-float-right cl-text-grey-4 cl-text-sm"
|
|
3824
3824
|
}, null, 8, ["icon"])
|
|
3825
|
-
], 10,
|
|
3825
|
+
], 10, is);
|
|
3826
3826
|
}), 128))
|
|
3827
3827
|
], 2)
|
|
3828
3828
|
], 512));
|
|
3829
3829
|
}
|
|
3830
|
-
}),
|
|
3830
|
+
}), us = ["onClick"], ds = { class: "cl-p-1" }, ps = ["disabled"], fs = {
|
|
3831
3831
|
key: 1,
|
|
3832
3832
|
class: "cl-w-full"
|
|
3833
|
-
},
|
|
3833
|
+
}, ms = {
|
|
3834
3834
|
key: 2,
|
|
3835
3835
|
class: "cl-w-full"
|
|
3836
|
-
},
|
|
3836
|
+
}, gs = {
|
|
3837
3837
|
key: 3,
|
|
3838
3838
|
class: "cl-w-full"
|
|
3839
|
-
},
|
|
3839
|
+
}, vs = {
|
|
3840
3840
|
key: 4,
|
|
3841
3841
|
class: "cl-w-full"
|
|
3842
|
-
},
|
|
3842
|
+
}, hs = ["onClick"], bs = { class: "cl-p-1" }, ys = ["disabled"], ws = /* @__PURE__ */ P({
|
|
3843
3843
|
__name: "cl-ui-grid-filter-input",
|
|
3844
3844
|
props: {
|
|
3845
3845
|
loading: { type: Boolean },
|
|
@@ -4008,7 +4008,7 @@ const ts = {
|
|
|
4008
4008
|
C.value = k;
|
|
4009
4009
|
}
|
|
4010
4010
|
}
|
|
4011
|
-
function
|
|
4011
|
+
function X(S, G) {
|
|
4012
4012
|
let k = (S == null ? void 0 : S.value) ?? G ?? 0;
|
|
4013
4013
|
if (typeof k == "string") {
|
|
4014
4014
|
const z = t.column.format === ae.INTEGER, Y = (z ? ae.DECIMAL : t.column.format) ?? ae.DECIMAL;
|
|
@@ -4045,12 +4045,12 @@ const ts = {
|
|
|
4045
4045
|
}, {
|
|
4046
4046
|
immediate: !0
|
|
4047
4047
|
});
|
|
4048
|
-
const U = V(),
|
|
4048
|
+
const U = V(), x = V();
|
|
4049
4049
|
hl("Enter", () => e("perform-data-request"), {
|
|
4050
4050
|
target: U,
|
|
4051
4051
|
dedupe: !0
|
|
4052
4052
|
}), hl("Enter", () => e("perform-data-request"), {
|
|
4053
|
-
target:
|
|
4053
|
+
target: x,
|
|
4054
4054
|
dedupe: !0
|
|
4055
4055
|
});
|
|
4056
4056
|
const W = il("cl-ui-grid-id") ?? "cl-ui-grid-filter";
|
|
@@ -4078,7 +4078,7 @@ const ts = {
|
|
|
4078
4078
|
class: "!cl-h-[2rem] cl-bg-white cl-flex cl-font-normal cl-items-center cl-mb-0 cl-rounded-md cl-w-full",
|
|
4079
4079
|
onClick: y
|
|
4080
4080
|
}, [
|
|
4081
|
-
v("span",
|
|
4081
|
+
v("span", ds, I(B.value === "" ? "" : B.value === "true" ? m(r)("grid.true") : m(r)("grid.false")), 1),
|
|
4082
4082
|
v("div", {
|
|
4083
4083
|
class: "cl-absolute cl-flex cl-items-center cl-right-11 cl-text-grey-3 cl-z-10",
|
|
4084
4084
|
disabled: S.loading
|
|
@@ -4086,8 +4086,8 @@ const ts = {
|
|
|
4086
4086
|
T(k, {
|
|
4087
4087
|
icon: z ? "ph:caret-up-bold" : "ph:caret-down-bold"
|
|
4088
4088
|
}, null, 8, ["icon"])
|
|
4089
|
-
], 8,
|
|
4090
|
-
], 8,
|
|
4089
|
+
], 8, ps)
|
|
4090
|
+
], 8, us)
|
|
4091
4091
|
]),
|
|
4092
4092
|
_: 2
|
|
4093
4093
|
}, 1032, ["onToggleModal"])
|
|
@@ -4124,7 +4124,7 @@ const ts = {
|
|
|
4124
4124
|
}, 1032, ["is-selected", "onSelect"])
|
|
4125
4125
|
]),
|
|
4126
4126
|
_: 1
|
|
4127
|
-
}, 8, ["disabled", "model-value"])) : h.value ? (u(), g("div",
|
|
4127
|
+
}, 8, ["disabled", "model-value"])) : h.value ? (u(), g("div", fs, [
|
|
4128
4128
|
T(gt, {
|
|
4129
4129
|
id: `${m(W)}-${S.column.name}`,
|
|
4130
4130
|
"model-value": ee.value,
|
|
@@ -4135,7 +4135,7 @@ const ts = {
|
|
|
4135
4135
|
"popover-placement": "bottom-start",
|
|
4136
4136
|
"onUpdate:modelValue": G[1] || (G[1] = (z) => se(null, z ?? ""))
|
|
4137
4137
|
}, null, 8, ["id", "model-value", "time-zone", "readonly", "type"])
|
|
4138
|
-
])) : s.value ? (u(), g("div",
|
|
4138
|
+
])) : s.value ? (u(), g("div", ms, [
|
|
4139
4139
|
T(ft, {
|
|
4140
4140
|
id: `${m(W)}-${S.column.name}`,
|
|
4141
4141
|
"model-value": M.value,
|
|
@@ -4146,7 +4146,7 @@ const ts = {
|
|
|
4146
4146
|
"popover-placement": "bottom-start",
|
|
4147
4147
|
"onUpdate:modelValue": G[2] || (G[2] = (z) => j(z))
|
|
4148
4148
|
}, null, 8, ["id", "model-value", "disabled", "time-zone", "quick-date-scope"])
|
|
4149
|
-
])) : S.column.type === "number" || S.column.type === "slot" && S.column.slotType === "number" ? (u(), g("div",
|
|
4149
|
+
])) : S.column.type === "number" || S.column.type === "slot" && S.column.slotType === "number" ? (u(), g("div", gs, [
|
|
4150
4150
|
T(_e, {
|
|
4151
4151
|
id: `${m(W)}-${S.column.name}`,
|
|
4152
4152
|
"model-value": B.value === "" || isNaN(+B.value) ? null : +B.value,
|
|
@@ -4156,14 +4156,14 @@ const ts = {
|
|
|
4156
4156
|
readonly: S.loading,
|
|
4157
4157
|
"show-arrows": !1,
|
|
4158
4158
|
"allow-empty": !0,
|
|
4159
|
-
"onUpdate:modelValue": G[3] || (G[3] = (z) => z !== null ?
|
|
4159
|
+
"onUpdate:modelValue": G[3] || (G[3] = (z) => z !== null ? X(null, z) : se(null, ""))
|
|
4160
4160
|
}, {
|
|
4161
4161
|
default: O(() => G[10] || (G[10] = [
|
|
4162
4162
|
v("span", null, null, -1)
|
|
4163
4163
|
])),
|
|
4164
4164
|
_: 1
|
|
4165
4165
|
}, 8, ["id", "model-value", "format", "precision", "readonly"])
|
|
4166
|
-
])) : S.column.type === "string" || S.column.type === "slot" && S.column.slotType === "string" ? (u(), g("div",
|
|
4166
|
+
])) : S.column.type === "string" || S.column.type === "slot" && S.column.slotType === "string" ? (u(), g("div", vs, [
|
|
4167
4167
|
T(Ue, {
|
|
4168
4168
|
id: `${m(W)}-${S.column.name}`,
|
|
4169
4169
|
modelValue: oe.value,
|
|
@@ -4187,7 +4187,7 @@ const ts = {
|
|
|
4187
4187
|
class: "!cl-border-t !cl-max-h-52 !cl-min-h-0 !cl-rounded-lg cl-bg-white cl-font-normal",
|
|
4188
4188
|
disabled: S.loading,
|
|
4189
4189
|
"is-grid-filter": !0,
|
|
4190
|
-
"onUpdate:modelValue": G[6] || (G[6] = (z) => c.value ?
|
|
4190
|
+
"onUpdate:modelValue": G[6] || (G[6] = (z) => c.value ? X(null, z) : se(null, z))
|
|
4191
4191
|
}, {
|
|
4192
4192
|
input: O(({ selectModalVisible: z, toggleSelectModalState: Y }) => [
|
|
4193
4193
|
T(sl, { onToggleModal: Y }, {
|
|
@@ -4198,7 +4198,7 @@ const ts = {
|
|
|
4198
4198
|
class: "!cl-h-[2rem] cl-bg-white cl-flex cl-font-normal cl-items-center cl-mb-0 cl-rounded-md cl-w-full",
|
|
4199
4199
|
onClick: y
|
|
4200
4200
|
}, [
|
|
4201
|
-
v("span",
|
|
4201
|
+
v("span", bs, I(m(r)(((K = (L = S.column.listEntries) == null ? void 0 : L.find((pe) => pe.value.toString() === B.value)) == null ? void 0 : K.translationKey) ?? "")), 1),
|
|
4202
4202
|
v("div", {
|
|
4203
4203
|
class: "cl-absolute cl-flex cl-items-center cl-right-11 cl-text-grey-3 cl-z-10",
|
|
4204
4204
|
disabled: S.loading
|
|
@@ -4206,8 +4206,8 @@ const ts = {
|
|
|
4206
4206
|
T(k, {
|
|
4207
4207
|
icon: z ? "ph:caret-up-bold" : "ph:caret-down-bold"
|
|
4208
4208
|
}, null, 8, ["icon"])
|
|
4209
|
-
], 8,
|
|
4210
|
-
], 8,
|
|
4209
|
+
], 8, ys)
|
|
4210
|
+
], 8, hs)
|
|
4211
4211
|
];
|
|
4212
4212
|
}),
|
|
4213
4213
|
_: 2
|
|
@@ -4237,7 +4237,7 @@ const ts = {
|
|
|
4237
4237
|
]),
|
|
4238
4238
|
_: 1
|
|
4239
4239
|
}, 8, ["id", "model-value", "disabled"])) : R("", !0),
|
|
4240
|
-
s.value ? R("", !0) : (u(), F(
|
|
4240
|
+
s.value ? R("", !0) : (u(), F(cs, {
|
|
4241
4241
|
key: 6,
|
|
4242
4242
|
filter: A.value,
|
|
4243
4243
|
"onUpdate:filter": G[7] || (G[7] = (z) => A.value = z),
|
|
@@ -4249,7 +4249,7 @@ const ts = {
|
|
|
4249
4249
|
], 2)) : R("", !0);
|
|
4250
4250
|
};
|
|
4251
4251
|
}
|
|
4252
|
-
}), jl = /* @__PURE__ */ ke(
|
|
4252
|
+
}), jl = /* @__PURE__ */ ke(ws, [["__scopeId", "data-v-ad0be7dc"]]), ks = { key: 1 }, $s = /* @__PURE__ */ P({
|
|
4253
4253
|
__name: "cl-ui-grid-filter",
|
|
4254
4254
|
props: {
|
|
4255
4255
|
loading: { type: Boolean },
|
|
@@ -4268,7 +4268,7 @@ const ts = {
|
|
|
4268
4268
|
return (e, r) => e.initialLoad && m(Qe)(e.column) ? (u(), F(m(Sl), {
|
|
4269
4269
|
key: 0,
|
|
4270
4270
|
class: "cl-h-[34px]"
|
|
4271
|
-
})) : e.bulkEditMode && e.column.editable ? (u(), g("div",
|
|
4271
|
+
})) : e.bulkEditMode && e.column.editable ? (u(), g("div", ks, [
|
|
4272
4272
|
q(e.$slots, `${e.column.name}BulkEdit`, ge(ve({
|
|
4273
4273
|
column: e.column
|
|
4274
4274
|
})), () => [
|
|
@@ -4298,7 +4298,7 @@ const ts = {
|
|
|
4298
4298
|
onPerformDataRequest: r[3] || (r[3] = (a) => e.$emit("perform-data-request"))
|
|
4299
4299
|
}, null, 8, ["loading", "filter", "column", "time-zone", "quick-date-scope", "header-display-timezone", "options"])) : R("", !0);
|
|
4300
4300
|
}
|
|
4301
|
-
}),
|
|
4301
|
+
}), Cs = ["onClick"], Ts = { key: 1 }, Ss = ["onClick"], qs = { class: "cl-font-normal cl-mr-1" }, Ds = /* @__PURE__ */ P({
|
|
4302
4302
|
__name: "cl-ui-grid-header",
|
|
4303
4303
|
props: {
|
|
4304
4304
|
request: {},
|
|
@@ -4357,7 +4357,7 @@ const ts = {
|
|
|
4357
4357
|
onClick: (w) => m(tl)(c) && s.loading === !1 ? d(c.field) : () => {
|
|
4358
4358
|
}
|
|
4359
4359
|
}, [
|
|
4360
|
-
s.initialLoad ? (u(), F(m(yl), { key: 0 })) : (u(), g("div",
|
|
4360
|
+
s.initialLoad ? (u(), F(m(yl), { key: 0 })) : (u(), g("div", Ts, [
|
|
4361
4361
|
ie(I(m(r)(c.caption)) + " ", 1),
|
|
4362
4362
|
ne(T(m(_), {
|
|
4363
4363
|
class: "cl-inline-block",
|
|
@@ -4372,7 +4372,7 @@ const ts = {
|
|
|
4372
4372
|
[fe, i(c, !1)]
|
|
4373
4373
|
])
|
|
4374
4374
|
]))
|
|
4375
|
-
], 10,
|
|
4375
|
+
], 10, Cs))), 128))
|
|
4376
4376
|
], 2),
|
|
4377
4377
|
v("tr", {
|
|
4378
4378
|
class: E(["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", {
|
|
@@ -4413,7 +4413,7 @@ const ts = {
|
|
|
4413
4413
|
}]),
|
|
4414
4414
|
onClick: (w) => s.loading === !1 ? d(c.field) : void 0
|
|
4415
4415
|
}, [
|
|
4416
|
-
v("span",
|
|
4416
|
+
v("span", qs, I(m(r)("grid.sortBy")), 1),
|
|
4417
4417
|
i(c, !0) ? (u(), F(m(_), {
|
|
4418
4418
|
key: 0,
|
|
4419
4419
|
class: "cl-cursor-pointer cl-inline-block",
|
|
@@ -4427,8 +4427,8 @@ const ts = {
|
|
|
4427
4427
|
class: "cl-cursor-pointer cl-inline-block",
|
|
4428
4428
|
icon: "ph:minus"
|
|
4429
4429
|
}))
|
|
4430
|
-
], 10,
|
|
4431
|
-
T(
|
|
4430
|
+
], 10, Ss)) : R("", !0),
|
|
4431
|
+
T($s, {
|
|
4432
4432
|
class: "cl-col-span-4 cl-min-w-[100px]",
|
|
4433
4433
|
loading: s.loading,
|
|
4434
4434
|
"initial-load": s.initialLoad,
|
|
@@ -4453,7 +4453,7 @@ const ts = {
|
|
|
4453
4453
|
], 2)
|
|
4454
4454
|
], 2));
|
|
4455
4455
|
}
|
|
4456
|
-
}),
|
|
4456
|
+
}), Os = { class: "cl-flex cl-mb-2" }, Es = { class: "cl-basis-full cl-grow" }, As = /* @__PURE__ */ P({
|
|
4457
4457
|
__name: "cl-ui-grid-search",
|
|
4458
4458
|
props: /* @__PURE__ */ me({
|
|
4459
4459
|
columns: {},
|
|
@@ -4495,8 +4495,8 @@ const ts = {
|
|
|
4495
4495
|
}), (c, p) => {
|
|
4496
4496
|
const w = Te("icon");
|
|
4497
4497
|
return q(c.$slots, "search", ge(ve({ searchValue: r.value, performSearch: d })), () => [
|
|
4498
|
-
v("div",
|
|
4499
|
-
v("div",
|
|
4498
|
+
v("div", Os, [
|
|
4499
|
+
v("div", Es, [
|
|
4500
4500
|
T(Ue, {
|
|
4501
4501
|
ref_key: "gridSearchInputRef",
|
|
4502
4502
|
ref: n,
|
|
@@ -4526,7 +4526,7 @@ const ts = {
|
|
|
4526
4526
|
]);
|
|
4527
4527
|
};
|
|
4528
4528
|
}
|
|
4529
|
-
}),
|
|
4529
|
+
}), Ms = { class: "cl-fixed cl-flex cl-h-full cl-justify-end cl-right-0 cl-shadow-lg cl-top-0 cl-z-40" }, Vs = { class: "cl-bg-secondary-default cl-h-full cl-overflow-y-auto cl-overscroll-y-none cl-px-10 cl-py-20 cl-relative cl-text-grey-2 cl-w-80" }, Is = { class: "cl-mb-4 cl-text-2xl cl-text-off-white" }, Ns = { class: "cl-border-grey-3 cl-border-t cl-flex cl-flex-wrap cl-text-sm cl-w-full" }, Rs = { class: "cl-border-b cl-border-grey-2 cl-flex cl-py-2 cl-text-sm cl-w-full" }, Us = { class: "cl-flex-1 cl-py-2" }, zs = { class: "cl-py-2 cl-w-1/4" }, Bs = { class: "cl-py-2 cl-w-1/5" }, Ls = { class: "cl-flex-1 cl-py-2" }, Fs = { class: "cl-py-2 cl-w-1/4" }, Ps = { class: "cl-py-2 cl-text-off-white cl-w-1/5" }, js = { key: 1 }, Gs = /* @__PURE__ */ P({
|
|
4530
4530
|
inheritAttrs: !1,
|
|
4531
4531
|
__name: "cl-ui-grid-view-manager",
|
|
4532
4532
|
props: {
|
|
@@ -4562,33 +4562,33 @@ const ts = {
|
|
|
4562
4562
|
(u(), F($l, { to: "body" }, [
|
|
4563
4563
|
T(Ie, { name: "slide-left" }, {
|
|
4564
4564
|
default: O(() => [
|
|
4565
|
-
ne(v("div",
|
|
4566
|
-
v("div",
|
|
4565
|
+
ne(v("div", Ms, [
|
|
4566
|
+
v("div", Vs, [
|
|
4567
4567
|
T(m(_), {
|
|
4568
4568
|
class: "cl-absolute cl-cursor-pointer cl-right-3 cl-text-off-white cl-top-3",
|
|
4569
4569
|
icon: "ph:x",
|
|
4570
4570
|
size: 16,
|
|
4571
4571
|
onClick: n[1] || (n[1] = (c) => a.value = !1)
|
|
4572
4572
|
}),
|
|
4573
|
-
v("h3",
|
|
4574
|
-
v("ul",
|
|
4575
|
-
v("li",
|
|
4576
|
-
v("strong",
|
|
4577
|
-
v("strong",
|
|
4578
|
-
v("strong",
|
|
4573
|
+
v("h3", Is, I(m(r)("grid.manageView")), 1),
|
|
4574
|
+
v("ul", Ns, [
|
|
4575
|
+
v("li", Rs, [
|
|
4576
|
+
v("strong", Us, I(m(r)("grid.column")), 1),
|
|
4577
|
+
v("strong", zs, I(m(r)("grid.visible")), 1),
|
|
4578
|
+
v("strong", Bs, I(m(r)("grid.order")), 1)
|
|
4579
4579
|
]),
|
|
4580
4580
|
(u(!0), g(H, null, J(s.columns, (c, p) => (u(), g("li", {
|
|
4581
4581
|
key: p,
|
|
4582
4582
|
class: "cl-border-b cl-border-grey-2 cl-flex cl-py-2 cl-text-sm cl-w-full"
|
|
4583
4583
|
}, [
|
|
4584
|
-
v("div",
|
|
4585
|
-
v("div",
|
|
4584
|
+
v("div", Ls, I(m(r)(c.caption)), 1),
|
|
4585
|
+
v("div", Fs, [
|
|
4586
4586
|
T(ul, {
|
|
4587
4587
|
"model-value": c.visible === void 0 || c.visible === !0,
|
|
4588
4588
|
"onUpdate:modelValue": (w) => d(w, c)
|
|
4589
4589
|
}, null, 8, ["model-value", "onUpdate:modelValue"])
|
|
4590
4590
|
]),
|
|
4591
|
-
v("div",
|
|
4591
|
+
v("div", Ps, [
|
|
4592
4592
|
c.visible === void 0 || c.visible === !0 ? (u(), g(H, { key: 0 }, [
|
|
4593
4593
|
p !== 0 ? (u(), F(m(_), {
|
|
4594
4594
|
key: 0,
|
|
@@ -4602,7 +4602,7 @@ const ts = {
|
|
|
4602
4602
|
icon: "ph:arrow-right",
|
|
4603
4603
|
onClick: (w) => h(p, "up")
|
|
4604
4604
|
}, null, 8, ["onClick"])) : R("", !0)
|
|
4605
|
-
], 64)) : (u(), g("em",
|
|
4605
|
+
], 64)) : (u(), g("em", js, I(m(r)("grid.hidden")), 1))
|
|
4606
4606
|
])
|
|
4607
4607
|
]))), 128))
|
|
4608
4608
|
])
|
|
@@ -4616,10 +4616,10 @@ const ts = {
|
|
|
4616
4616
|
]))
|
|
4617
4617
|
], 64));
|
|
4618
4618
|
}
|
|
4619
|
-
}),
|
|
4619
|
+
}), Hs = { class: "cl-relative cl-w-full grid-wrapper lg:cl-min-h-fit" }, Zs = {
|
|
4620
4620
|
key: 0,
|
|
4621
4621
|
class: "cl-absolute cl-flex cl-items-center cl-justify-center cl-min-h-full cl-p-28 cl-pt-0 cl-w-full"
|
|
4622
|
-
},
|
|
4622
|
+
}, Ws = { class: "cl-overflow-x-auto cl-overscroll-x-none cl-pt-1" }, Ks = /* @__PURE__ */ P({
|
|
4623
4623
|
__name: "cl-ui-grid",
|
|
4624
4624
|
props: {
|
|
4625
4625
|
columns: {},
|
|
@@ -4643,9 +4643,9 @@ const ts = {
|
|
|
4643
4643
|
set: (U) => r("update:columns", U)
|
|
4644
4644
|
}), c = $(() => n.value.filter((U) => U.visible ?? !0)), p = V({});
|
|
4645
4645
|
function w() {
|
|
4646
|
-
var
|
|
4646
|
+
var x;
|
|
4647
4647
|
const U = {};
|
|
4648
|
-
(window.innerWidth >= 1024 || (
|
|
4648
|
+
(window.innerWidth >= 1024 || (x = e.options) != null && x.hideGridMobileView) && n.value.forEach((W) => {
|
|
4649
4649
|
const S = W.width ? `${W.width}px` : "";
|
|
4650
4650
|
U[`${W.name}`] = `width: ${S}; min-width: ${S};`;
|
|
4651
4651
|
}), p.value = U;
|
|
@@ -4661,7 +4661,7 @@ const ts = {
|
|
|
4661
4661
|
const U = be(f.value);
|
|
4662
4662
|
U.pageNumber = 1, U.filters = [], se.value = "", f.value = U;
|
|
4663
4663
|
}
|
|
4664
|
-
const N =
|
|
4664
|
+
const N = Ft(() => r("data-request"), 400);
|
|
4665
4665
|
le(f, () => {
|
|
4666
4666
|
N();
|
|
4667
4667
|
}, {
|
|
@@ -4691,19 +4691,19 @@ const ts = {
|
|
|
4691
4691
|
})), te = $({
|
|
4692
4692
|
get() {
|
|
4693
4693
|
const U = be(f.value);
|
|
4694
|
-
return U.filters = U.filters.filter((
|
|
4694
|
+
return U.filters = U.filters.filter((x) => x.filterMethod !== "andcontains" && x.filterOperation !== ce.AND_CONTAINS), U;
|
|
4695
4695
|
},
|
|
4696
4696
|
set(U) {
|
|
4697
|
-
const
|
|
4697
|
+
const x = [
|
|
4698
4698
|
...U.filters,
|
|
4699
4699
|
...f.value.filters.filter((W) => W.filterMethod === "andcontains" || W.filterOperation === ce.AND_CONTAINS)
|
|
4700
4700
|
];
|
|
4701
4701
|
f.value = {
|
|
4702
4702
|
...U,
|
|
4703
|
-
filters:
|
|
4703
|
+
filters: x
|
|
4704
4704
|
};
|
|
4705
4705
|
}
|
|
4706
|
-
}), se = V(((we = e.request.filters.find((U) => U.filterMethod === "andcontains" || U.filterOperation === ce.AND_CONTAINS)) == null ? void 0 : we.filterValue) ?? ""),
|
|
4706
|
+
}), se = V(((we = e.request.filters.find((U) => U.filterMethod === "andcontains" || U.filterOperation === ce.AND_CONTAINS)) == null ? void 0 : we.filterValue) ?? ""), X = $(() => e.columns.filter((U) => (U.type === "string" || U.type === "slot" && U.slotType === "string") && U.searchable)), j = V(!0);
|
|
4707
4707
|
le(() => e.loading, () => {
|
|
4708
4708
|
j.value = !1;
|
|
4709
4709
|
}, {
|
|
@@ -4713,8 +4713,8 @@ const ts = {
|
|
|
4713
4713
|
}), Cl(() => window.removeEventListener("resize", Ke(w, 50))), le(() => e.data, () => {
|
|
4714
4714
|
U();
|
|
4715
4715
|
function U() {
|
|
4716
|
-
var
|
|
4717
|
-
((
|
|
4716
|
+
var x;
|
|
4717
|
+
((x = e.data) == null ? void 0 : x.results.length) === 0 && f.value.pageNumber > 1 && (f.value.pageNumber = e.data.totalRecords > 0 ? Math.ceil(e.data.totalRecords / f.value.pageSize) : 1);
|
|
4718
4718
|
}
|
|
4719
4719
|
});
|
|
4720
4720
|
const oe = V();
|
|
@@ -4723,19 +4723,19 @@ const ts = {
|
|
|
4723
4723
|
var U;
|
|
4724
4724
|
return (U = oe.value) == null ? void 0 : U.focusMegaSearch();
|
|
4725
4725
|
}
|
|
4726
|
-
}), (U,
|
|
4727
|
-
j.value &&
|
|
4726
|
+
}), (U, x) => (u(), g("div", Hs, [
|
|
4727
|
+
j.value && X.value.length > 0 ? (u(), F(m(Sl), {
|
|
4728
4728
|
key: 0,
|
|
4729
4729
|
class: "cl-h-[39px] cl-mb-2"
|
|
4730
|
-
})) :
|
|
4730
|
+
})) : X.value.length > 0 ? (u(), F(As, {
|
|
4731
4731
|
key: 1,
|
|
4732
4732
|
ref_key: "gridSearchRef",
|
|
4733
4733
|
ref: oe,
|
|
4734
4734
|
"search-value": se.value,
|
|
4735
|
-
"onUpdate:searchValue":
|
|
4735
|
+
"onUpdate:searchValue": x[0] || (x[0] = (W) => se.value = W),
|
|
4736
4736
|
request: f.value,
|
|
4737
|
-
"onUpdate:request":
|
|
4738
|
-
columns:
|
|
4737
|
+
"onUpdate:request": x[1] || (x[1] = (W) => f.value = W),
|
|
4738
|
+
columns: X.value
|
|
4739
4739
|
}, {
|
|
4740
4740
|
search: O((W) => [
|
|
4741
4741
|
q(U.$slots, "search", ge(ve(W)))
|
|
@@ -4744,17 +4744,17 @@ const ts = {
|
|
|
4744
4744
|
}, 8, ["search-value", "request", "columns"])) : R("", !0),
|
|
4745
4745
|
T(Ie, { name: "fade" }, {
|
|
4746
4746
|
default: O(() => [
|
|
4747
|
-
U.loading && j.value === !1 ? (u(), g("div",
|
|
4748
|
-
T(
|
|
4747
|
+
U.loading && j.value === !1 ? (u(), g("div", Zs, [
|
|
4748
|
+
T(xe, { class: "after:!cl-h-20 after:!cl-w-20 cl-h-20 cl-w-20" })
|
|
4749
4749
|
])) : R("", !0)
|
|
4750
4750
|
]),
|
|
4751
4751
|
_: 1
|
|
4752
4752
|
}),
|
|
4753
|
-
T(
|
|
4753
|
+
T(ga, {
|
|
4754
4754
|
"edit-mode": D.value,
|
|
4755
|
-
"onUpdate:editMode":
|
|
4755
|
+
"onUpdate:editMode": x[3] || (x[3] = (W) => D.value = W),
|
|
4756
4756
|
"filter-panel-open": ee.value,
|
|
4757
|
-
"onUpdate:filterPanelOpen":
|
|
4757
|
+
"onUpdate:filterPanelOpen": x[4] || (x[4] = (W) => ee.value = W),
|
|
4758
4758
|
"can-bulk-edit": m(i) && (U.options.hideGridMobileView || m(a)),
|
|
4759
4759
|
columns: U.columns,
|
|
4760
4760
|
options: M.value,
|
|
@@ -4767,15 +4767,15 @@ const ts = {
|
|
|
4767
4767
|
q(U.$slots, "additional-grid-actions", ge(ve(W)))
|
|
4768
4768
|
]),
|
|
4769
4769
|
"view-manager": O(() => [
|
|
4770
|
-
T(
|
|
4770
|
+
T(Gs, {
|
|
4771
4771
|
columns: n.value,
|
|
4772
|
-
"onUpdate:columns":
|
|
4772
|
+
"onUpdate:columns": x[2] || (x[2] = (W) => n.value = W),
|
|
4773
4773
|
loading: U.loading
|
|
4774
4774
|
}, null, 8, ["columns", "loading"])
|
|
4775
4775
|
]),
|
|
4776
4776
|
_: 3
|
|
4777
4777
|
}, 8, ["edit-mode", "filter-panel-open", "can-bulk-edit", "columns", "options", "request", "loading", "initial-load"]),
|
|
4778
|
-
v("div",
|
|
4778
|
+
v("div", Ws, [
|
|
4779
4779
|
v("table", {
|
|
4780
4780
|
class: E(["cl-delay-75 cl-min-h-[276px] cl-overflow-x-auto cl-overscroll-x-none cl-text-left cl-transition-opacity cl-w-full", {
|
|
4781
4781
|
"cl-opacity-40 cl-pointer-events-none": U.loading && j.value === !1
|
|
@@ -4792,11 +4792,11 @@ const ts = {
|
|
|
4792
4792
|
span: 1
|
|
4793
4793
|
}, null, 4))), 128))
|
|
4794
4794
|
], 2),
|
|
4795
|
-
T(
|
|
4795
|
+
T(Ds, {
|
|
4796
4796
|
request: te.value,
|
|
4797
|
-
"onUpdate:request":
|
|
4797
|
+
"onUpdate:request": x[5] || (x[5] = (W) => te.value = W),
|
|
4798
4798
|
"filter-panel-open": ee.value,
|
|
4799
|
-
"onUpdate:filterPanelOpen":
|
|
4799
|
+
"onUpdate:filterPanelOpen": x[6] || (x[6] = (W) => ee.value = W),
|
|
4800
4800
|
columns: c.value,
|
|
4801
4801
|
options: M.value,
|
|
4802
4802
|
loading: U.loading,
|
|
@@ -4804,7 +4804,7 @@ const ts = {
|
|
|
4804
4804
|
"bulk-edit-mode": m(i) && D.value && (U.options.hideGridMobileView || m(a)),
|
|
4805
4805
|
"time-zone": U.timeZone,
|
|
4806
4806
|
"header-display-timezone": h.value,
|
|
4807
|
-
onPerformDataRequest:
|
|
4807
|
+
onPerformDataRequest: x[7] || (x[7] = (W) => r("data-request"))
|
|
4808
4808
|
}, he({ _: 2 }, [
|
|
4809
4809
|
J(U.$slots, (W, S) => ({
|
|
4810
4810
|
name: S,
|
|
@@ -4813,7 +4813,7 @@ const ts = {
|
|
|
4813
4813
|
])
|
|
4814
4814
|
}))
|
|
4815
4815
|
]), 1032, ["request", "filter-panel-open", "columns", "options", "loading", "initial-load", "bulk-edit-mode", "time-zone", "header-display-timezone"]),
|
|
4816
|
-
T(
|
|
4816
|
+
T(Qa, {
|
|
4817
4817
|
columns: c.value,
|
|
4818
4818
|
request: f.value,
|
|
4819
4819
|
data: A.value,
|
|
@@ -4824,9 +4824,9 @@ const ts = {
|
|
|
4824
4824
|
options: M.value,
|
|
4825
4825
|
"edit-mode": B.value,
|
|
4826
4826
|
onClearFilters: C,
|
|
4827
|
-
onRowEdit:
|
|
4828
|
-
onRowEditCancelled:
|
|
4829
|
-
onRowSelect:
|
|
4827
|
+
onRowEdit: x[8] || (x[8] = (W) => U.$emit("row-edit", W)),
|
|
4828
|
+
onRowEditCancelled: x[9] || (x[9] = (W) => U.$emit("row-edit-cancelled", W)),
|
|
4829
|
+
onRowSelect: x[10] || (x[10] = (W) => U.$emit("row-select", W))
|
|
4830
4830
|
}, he({ _: 2 }, [
|
|
4831
4831
|
J(U.$slots, (W, S) => ({
|
|
4832
4832
|
name: S,
|
|
@@ -4837,7 +4837,7 @@ const ts = {
|
|
|
4837
4837
|
]), 1032, ["columns", "request", "data", "time-zone", "loading", "initial-load", "search-value", "options", "edit-mode"])
|
|
4838
4838
|
], 2)
|
|
4839
4839
|
]),
|
|
4840
|
-
U.options.hidePagination !== !0 ? (u(), F(
|
|
4840
|
+
U.options.hidePagination !== !0 ? (u(), F(wn, {
|
|
4841
4841
|
key: 2,
|
|
4842
4842
|
request: f.value,
|
|
4843
4843
|
loading: U.loading,
|
|
@@ -4845,13 +4845,13 @@ const ts = {
|
|
|
4845
4845
|
"show-unsaved-changes-warning": B.value && M.value.disableUnsavedChangesWarning === !1,
|
|
4846
4846
|
data: U.data,
|
|
4847
4847
|
options: M.value,
|
|
4848
|
-
"onUpdate:request":
|
|
4848
|
+
"onUpdate:request": x[11] || (x[11] = (W) => {
|
|
4849
4849
|
B.value = !1, f.value = W;
|
|
4850
4850
|
})
|
|
4851
4851
|
}, null, 8, ["request", "loading", "initial-load", "show-unsaved-changes-warning", "data", "options"])) : R("", !0)
|
|
4852
4852
|
]));
|
|
4853
4853
|
}
|
|
4854
|
-
}),
|
|
4854
|
+
}), Qs = { class: "cl-relative" }, Ys = ["id"], Js = /* @__PURE__ */ P({
|
|
4855
4855
|
inheritAttrs: !1,
|
|
4856
4856
|
__name: "cl-ui-grid-lite",
|
|
4857
4857
|
props: /* @__PURE__ */ me({
|
|
@@ -4888,7 +4888,7 @@ const ts = {
|
|
|
4888
4888
|
p.value = !1;
|
|
4889
4889
|
}, {
|
|
4890
4890
|
once: !0
|
|
4891
|
-
}), (w, b) => (u(), g("div",
|
|
4891
|
+
}), (w, b) => (u(), g("div", Qs, [
|
|
4892
4892
|
v("div", Z({ id: m(i) }, a, {
|
|
4893
4893
|
class: ["cl-border cl-border-off-white cl-grid cl-overflow-hidden cl-rounded cl-text-base cl-w-full", {
|
|
4894
4894
|
"cl-opacity-60": w.loading,
|
|
@@ -4935,8 +4935,8 @@ const ts = {
|
|
|
4935
4935
|
"initial-load": p.value,
|
|
4936
4936
|
options: c.value
|
|
4937
4937
|
}, null, 8, ["request", "inert", "grid-id", "data", "initial-load", "options"])) : R("", !0)
|
|
4938
|
-
], 16,
|
|
4939
|
-
w.loading && !p.value ? (u(), F(
|
|
4938
|
+
], 16, Ys),
|
|
4939
|
+
w.loading && !p.value ? (u(), F(xe, {
|
|
4940
4940
|
key: 0,
|
|
4941
4941
|
class: "after:!cl-h-14 after:!cl-w-14 cl-absolute cl-left-1/2 cl-top-20"
|
|
4942
4942
|
})) : R("", !0)
|
|
@@ -4947,7 +4947,7 @@ function gl(o) {
|
|
|
4947
4947
|
const l = o.type !== "slot" || o.slotType !== void 0 && o.field !== void 0, t = o.sortable ?? !0;
|
|
4948
4948
|
return l && t;
|
|
4949
4949
|
}
|
|
4950
|
-
const
|
|
4950
|
+
const xs = { class: "cl-col-[1_/_-1] cl-grid cl-grid-cols-subgrid" }, Xs = ["id", "onClick"], ht = /* @__PURE__ */ P({
|
|
4951
4951
|
inheritAttrs: !1,
|
|
4952
4952
|
__name: "cl-ui-grid-lite-header",
|
|
4953
4953
|
props: /* @__PURE__ */ me({
|
|
@@ -4977,7 +4977,7 @@ const Js = { class: "cl-col-[1_/_-1] cl-grid cl-grid-cols-subgrid" }, Xs = ["id"
|
|
|
4977
4977
|
}
|
|
4978
4978
|
return (a, i) => {
|
|
4979
4979
|
const d = Te("icon");
|
|
4980
|
-
return u(), g("div",
|
|
4980
|
+
return u(), g("div", xs, [
|
|
4981
4981
|
(u(!0), g(H, null, J(a.columns, (h, s) => (u(), g("div", Z({ ref_for: !0 }, a.$attrs, {
|
|
4982
4982
|
id: `${a.gridId}-header-${h.name}`,
|
|
4983
4983
|
key: h.name,
|
|
@@ -5043,7 +5043,7 @@ const Js = { class: "cl-col-[1_/_-1] cl-grid cl-grid-cols-subgrid" }, Xs = ["id"
|
|
|
5043
5043
|
}, " ", 2))), 128))
|
|
5044
5044
|
]))), 128));
|
|
5045
5045
|
}
|
|
5046
|
-
}),
|
|
5046
|
+
}), _s = { class: "cl-col-[1_/_-1] cl-grid cl-grid-cols-subgrid" }, yt = /* @__PURE__ */ P({
|
|
5047
5047
|
inheritAttrs: !1,
|
|
5048
5048
|
__name: "cl-ui-grid-lite-row",
|
|
5049
5049
|
props: {
|
|
@@ -5054,7 +5054,7 @@ const Js = { class: "cl-col-[1_/_-1] cl-grid cl-grid-cols-subgrid" }, Xs = ["id"
|
|
|
5054
5054
|
gridId: {}
|
|
5055
5055
|
},
|
|
5056
5056
|
setup(o) {
|
|
5057
|
-
return (l, t) => (u(), g("div",
|
|
5057
|
+
return (l, t) => (u(), g("div", _s, [
|
|
5058
5058
|
(u(!0), g(H, null, J(l.columns, (e, r) => (u(), F(m(kt), Z({ ref_for: !0 }, l.$attrs, {
|
|
5059
5059
|
id: `${l.gridId}-c${r}`,
|
|
5060
5060
|
key: e.name,
|
|
@@ -5075,7 +5075,7 @@ const Js = { class: "cl-col-[1_/_-1] cl-grid cl-grid-cols-subgrid" }, Xs = ["id"
|
|
|
5075
5075
|
]), 1040, ["id", "data", "time-zone", "column", "is-small-grid", "class"]))), 128))
|
|
5076
5076
|
]));
|
|
5077
5077
|
}
|
|
5078
|
-
}),
|
|
5078
|
+
}), er = { class: "cl-col-[1_/_-1] cl-grid cl-grid-cols-subgrid" }, wt = /* @__PURE__ */ P({
|
|
5079
5079
|
__name: "cl-ui-grid-lite-body",
|
|
5080
5080
|
props: {
|
|
5081
5081
|
columns: {},
|
|
@@ -5090,7 +5090,7 @@ const Js = { class: "cl-col-[1_/_-1] cl-grid cl-grid-cols-subgrid" }, Xs = ["id"
|
|
|
5090
5090
|
const l = o, { t } = de(), e = $(() => l.options.smallGridText ?? !1), r = $(() => l.options.alternatingRows ?? !1);
|
|
5091
5091
|
return (a, i) => {
|
|
5092
5092
|
var d;
|
|
5093
|
-
return u(), g("div",
|
|
5093
|
+
return u(), g("div", er, [
|
|
5094
5094
|
a.initialLoad && a.pageSize > 0 ? (u(), F(bt, {
|
|
5095
5095
|
key: 0,
|
|
5096
5096
|
"page-size": a.pageSize,
|
|
@@ -5129,10 +5129,10 @@ const Js = { class: "cl-col-[1_/_-1] cl-grid cl-grid-cols-subgrid" }, Xs = ["id"
|
|
|
5129
5129
|
]);
|
|
5130
5130
|
};
|
|
5131
5131
|
}
|
|
5132
|
-
}),
|
|
5132
|
+
}), lr = ["id"], tr = ["id"], or = ["id"], ar = {
|
|
5133
5133
|
key: 5,
|
|
5134
5134
|
class: "cl-inline-block cl-whitespace-nowrap"
|
|
5135
|
-
},
|
|
5135
|
+
}, nr = ["id", "innerHTML"], kt = /* @__PURE__ */ P({
|
|
5136
5136
|
inheritAttrs: !1,
|
|
5137
5137
|
__name: "cl-ui-grid-lite-cell",
|
|
5138
5138
|
props: {
|
|
@@ -5218,26 +5218,26 @@ const Js = { class: "cl-col-[1_/_-1] cl-grid cl-grid-cols-subgrid" }, Xs = ["id"
|
|
|
5218
5218
|
], 64)) : (u(), g(H, { key: 2 }, [
|
|
5219
5219
|
ie(I(d(n.data[n.column.field], m(ue).DATETIME)), 1)
|
|
5220
5220
|
], 64))
|
|
5221
|
-
], 8,
|
|
5221
|
+
], 8, lr)) : n.column.type === "list" && n.column.field !== void 0 && n.column.listEntries !== void 0 ? (u(), g("span", {
|
|
5222
5222
|
key: 3,
|
|
5223
5223
|
id: m(t),
|
|
5224
5224
|
class: "cl-inline-block cl-whitespace-nowrap"
|
|
5225
|
-
}, I(m(a)(((p = n.column.listEntries.find((w) => w.value === n.data[n.column.field])) == null ? void 0 : p.translationKey) ?? "")), 9,
|
|
5225
|
+
}, I(m(a)(((p = n.column.listEntries.find((w) => w.value === n.data[n.column.field])) == null ? void 0 : p.translationKey) ?? "")), 9, tr)) : n.column.type === "number" && n.column.field !== void 0 ? (u(), g("span", {
|
|
5226
5226
|
key: 4,
|
|
5227
5227
|
id: m(t),
|
|
5228
5228
|
class: "cl-inline-block cl-whitespace-nowrap"
|
|
5229
|
-
}, I(s(n.data[n.column.field], m(i))), 9,
|
|
5229
|
+
}, I(s(n.data[n.column.field], m(i))), 9, or)) : n.column.field !== void 0 ? (u(), g("span", ar, [
|
|
5230
5230
|
v("span", {
|
|
5231
5231
|
id: m(t),
|
|
5232
5232
|
innerHTML: h()
|
|
5233
|
-
}, null, 8,
|
|
5233
|
+
}, null, 8, nr)
|
|
5234
5234
|
])) : R("", !0)
|
|
5235
5235
|
], 16);
|
|
5236
5236
|
};
|
|
5237
5237
|
}
|
|
5238
|
-
}),
|
|
5239
|
-
function
|
|
5240
|
-
return u(), g("div",
|
|
5238
|
+
}), sr = {}, rr = { class: "cl-border cl-border-off-white cl-border-t cl-flex cl-justify-between cl-p-2" };
|
|
5239
|
+
function ir(o, l) {
|
|
5240
|
+
return u(), g("div", rr, l[0] || (l[0] = [
|
|
5241
5241
|
v("div", { class: "cl-flex cl-gap-2 cl-w-full" }, [
|
|
5242
5242
|
v("p", { class: "cl-animate-pulse cl-basis-3/12 cl-bg-grey-1 cl-leading-none cl-rounded-full" }, " "),
|
|
5243
5243
|
v("p", { class: "cl-animate-pulse cl-basis-1/12 cl-bg-grey-1 cl-leading-none cl-rounded-full" }, " ")
|
|
@@ -5245,10 +5245,10 @@ function rr(o, l) {
|
|
|
5245
5245
|
v("p", { class: "cl-animate-pulse cl-basis-1/12 cl-bg-grey-1 cl-leading-none cl-rounded-full" }, " ", -1)
|
|
5246
5246
|
]));
|
|
5247
5247
|
}
|
|
5248
|
-
const $t = /* @__PURE__ */ ke(
|
|
5248
|
+
const $t = /* @__PURE__ */ ke(sr, [["render", ir]]), cr = { class: "cl-flex cl-gap-4" }, ur = { class: "cl-mr-2" }, dr = {
|
|
5249
5249
|
key: 0,
|
|
5250
5250
|
class: "cl-flex cl-gap-0.5"
|
|
5251
|
-
},
|
|
5251
|
+
}, pr = { class: "cl-mr-1 cl-w-full" }, fr = ["id", "onClick"], mr = { class: "cl-flex cl-gap-1 cl-items-center" }, gr = ["id"], vr = ["id"], hr = ["id", "onClick"], br = ["id"], yr = ["id"], Ct = /* @__PURE__ */ P({
|
|
5252
5252
|
__name: "cl-ui-grid-lite-footer",
|
|
5253
5253
|
props: /* @__PURE__ */ me({
|
|
5254
5254
|
gridId: {},
|
|
@@ -5299,13 +5299,13 @@ const $t = /* @__PURE__ */ ke(nr, [["render", rr]]), ir = { class: "cl-flex cl-g
|
|
|
5299
5299
|
n.options.smallGridText ? "cl-px-1 cl-py-1.5 cl-text-xs" : "cl-p-2 cl-text-sm"
|
|
5300
5300
|
]])
|
|
5301
5301
|
}, [
|
|
5302
|
-
v("div",
|
|
5302
|
+
v("div", cr, [
|
|
5303
5303
|
v("div", null, [
|
|
5304
|
-
v("span",
|
|
5304
|
+
v("span", ur, I(m(e)("grid.page")), 1),
|
|
5305
5305
|
v("span", null, I(m(Se)(t.value.pageNumber)) + " / " + I(m(Se)(r.value)), 1)
|
|
5306
5306
|
]),
|
|
5307
|
-
h.value.length && n.options.showPageSizeOptions ? (u(), g("ul",
|
|
5308
|
-
v("li",
|
|
5307
|
+
h.value.length && n.options.showPageSizeOptions ? (u(), g("ul", dr, [
|
|
5308
|
+
v("li", pr, I(m(e)("grid.pageSize")), 1),
|
|
5309
5309
|
(u(!0), g(H, null, J(h.value, (b, f) => (u(), g("li", {
|
|
5310
5310
|
id: `${n.gridId}-page-size-${b}`,
|
|
5311
5311
|
key: f,
|
|
@@ -5314,11 +5314,11 @@ const $t = /* @__PURE__ */ ke(nr, [["render", rr]]), ir = { class: "cl-flex cl-g
|
|
|
5314
5314
|
"cl-border-b-transparent hover:cl-border-b-link-lighter hover:cl-text-link-light cl-cursor-pointer": t.value.pageSize !== b
|
|
5315
5315
|
}]),
|
|
5316
5316
|
onClick: (C) => t.value.pageSize !== b ? s(b) : null
|
|
5317
|
-
}, I(m(Se)(b)), 11,
|
|
5317
|
+
}, I(m(Se)(b)), 11, fr))), 128))
|
|
5318
5318
|
])) : R("", !0)
|
|
5319
5319
|
]),
|
|
5320
5320
|
v("div", null, [
|
|
5321
|
-
v("ul",
|
|
5321
|
+
v("ul", mr, [
|
|
5322
5322
|
v("li", {
|
|
5323
5323
|
id: `${n.gridId}-page-first`,
|
|
5324
5324
|
class: E({
|
|
@@ -5331,7 +5331,7 @@ const $t = /* @__PURE__ */ ke(nr, [["render", rr]]), ir = { class: "cl-flex cl-g
|
|
|
5331
5331
|
icon: "ph:caret-double-left-bold",
|
|
5332
5332
|
size: 14
|
|
5333
5333
|
})
|
|
5334
|
-
], 10,
|
|
5334
|
+
], 10, gr),
|
|
5335
5335
|
v("li", {
|
|
5336
5336
|
id: `${n.gridId}-page-previous`,
|
|
5337
5337
|
class: E({
|
|
@@ -5344,7 +5344,7 @@ const $t = /* @__PURE__ */ ke(nr, [["render", rr]]), ir = { class: "cl-flex cl-g
|
|
|
5344
5344
|
icon: "ph:caret-left-bold",
|
|
5345
5345
|
size: 14
|
|
5346
5346
|
})
|
|
5347
|
-
], 10,
|
|
5347
|
+
], 10, vr),
|
|
5348
5348
|
(u(!0), g(H, null, J(a.value, (b, f) => (u(), g("li", {
|
|
5349
5349
|
id: `${n.gridId}-page-${b}`,
|
|
5350
5350
|
key: f,
|
|
@@ -5353,7 +5353,7 @@ const $t = /* @__PURE__ */ ke(nr, [["render", rr]]), ir = { class: "cl-flex cl-g
|
|
|
5353
5353
|
"cl-cursor-pointer ": t.value.pageNumber !== b
|
|
5354
5354
|
}]),
|
|
5355
5355
|
onClick: (C) => t.value.pageNumber !== b ? i(b) : null
|
|
5356
|
-
}, I(m(Se)(b)), 11,
|
|
5356
|
+
}, I(m(Se)(b)), 11, hr))), 128)),
|
|
5357
5357
|
v("li", {
|
|
5358
5358
|
id: `${n.gridId}-page-next`,
|
|
5359
5359
|
class: E({
|
|
@@ -5366,7 +5366,7 @@ const $t = /* @__PURE__ */ ke(nr, [["render", rr]]), ir = { class: "cl-flex cl-g
|
|
|
5366
5366
|
icon: "ph:caret-right-bold",
|
|
5367
5367
|
size: 14
|
|
5368
5368
|
})
|
|
5369
|
-
], 10,
|
|
5369
|
+
], 10, br),
|
|
5370
5370
|
v("li", {
|
|
5371
5371
|
id: `${n.gridId}-page-last`,
|
|
5372
5372
|
class: E({
|
|
@@ -5379,13 +5379,13 @@ const $t = /* @__PURE__ */ ke(nr, [["render", rr]]), ir = { class: "cl-flex cl-g
|
|
|
5379
5379
|
icon: "ph:caret-double-right-bold",
|
|
5380
5380
|
size: 14
|
|
5381
5381
|
})
|
|
5382
|
-
], 10,
|
|
5382
|
+
], 10, yr)
|
|
5383
5383
|
])
|
|
5384
5384
|
])
|
|
5385
5385
|
], 2)) : R("", !0);
|
|
5386
5386
|
};
|
|
5387
5387
|
}
|
|
5388
|
-
}),
|
|
5388
|
+
}), wr = { class: "cl-absolute cl-bg-secondary-default cl-flex cl-h-20 cl-items-center cl-justify-between cl-left-0 cl-top-0 cl-w-full cl-z-40" }, kr = /* @__PURE__ */ P({
|
|
5389
5389
|
__name: "cl-ui-header",
|
|
5390
5390
|
props: {
|
|
5391
5391
|
isOpen: { type: Boolean }
|
|
@@ -5395,7 +5395,7 @@ const $t = /* @__PURE__ */ ke(nr, [["render", rr]]), ir = { class: "cl-flex cl-g
|
|
|
5395
5395
|
const t = o, e = l, r = V();
|
|
5396
5396
|
return Je(r, () => {
|
|
5397
5397
|
(t.isOpen ?? !1) && e("open-click");
|
|
5398
|
-
}), (a, i) => (u(), g("header",
|
|
5398
|
+
}), (a, i) => (u(), g("header", wr, [
|
|
5399
5399
|
q(a.$slots, "logo"),
|
|
5400
5400
|
v("div", {
|
|
5401
5401
|
ref_key: "headerMenuElement",
|
|
@@ -5408,15 +5408,15 @@ const $t = /* @__PURE__ */ ke(nr, [["render", rr]]), ir = { class: "cl-flex cl-g
|
|
|
5408
5408
|
], 512)
|
|
5409
5409
|
]));
|
|
5410
5410
|
}
|
|
5411
|
-
}),
|
|
5411
|
+
}), $r = { class: "cl-bg-transparent cl-flex cl-items-center cl-select-none hover:cl-bg-opacity-10 hover:cl-bg-white md:cl-min-w-[320px]" }, Cr = ["src"], Tr = {
|
|
5412
5412
|
key: 0,
|
|
5413
5413
|
id: "cl-ui-header-menu-username",
|
|
5414
5414
|
class: "cl-text-ellipsis cl-whitespace-nowrap"
|
|
5415
|
-
},
|
|
5415
|
+
}, Sr = {
|
|
5416
5416
|
key: 1,
|
|
5417
5417
|
id: "cl-ui-header-menu-group",
|
|
5418
5418
|
class: "cl-text-ellipsis cl-text-xs cl-whitespace-nowrap"
|
|
5419
|
-
},
|
|
5419
|
+
}, qr = { class: "cl-content-center cl-flex cl-h-20 cl-items-center cl-justify-center cl-justify-items-center cl-transition-all cl-w-10 md:cl-ml-4 md:cl-w-20" }, Dr = { class: "cl-absolute cl-bg-white cl-right-0 cl-shadow-2xl cl-top-20 cl-w-full cl-z-20" }, Or = /* @__PURE__ */ P({
|
|
5420
5420
|
__name: "cl-ui-header-menu",
|
|
5421
5421
|
props: {
|
|
5422
5422
|
username: { default: "" },
|
|
@@ -5432,12 +5432,12 @@ const $t = /* @__PURE__ */ ke(nr, [["render", rr]]), ir = { class: "cl-flex cl-g
|
|
|
5432
5432
|
"cl-bg-blue-light": l.colour === "secondary"
|
|
5433
5433
|
}])
|
|
5434
5434
|
}, [
|
|
5435
|
-
v("div",
|
|
5435
|
+
v("div", $r, [
|
|
5436
5436
|
l.image ? (u(), g("img", {
|
|
5437
5437
|
key: 0,
|
|
5438
5438
|
src: l.image,
|
|
5439
5439
|
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"
|
|
5440
|
-
}, null, 8,
|
|
5440
|
+
}, null, 8, Cr)) : (u(), F(m(_), {
|
|
5441
5441
|
key: 1,
|
|
5442
5442
|
class: "cl-hidden cl-m-4 cl-text-white md:cl-block",
|
|
5443
5443
|
icon: "ph:user-circle",
|
|
@@ -5450,10 +5450,10 @@ const $t = /* @__PURE__ */ ke(nr, [["render", rr]]), ir = { class: "cl-flex cl-g
|
|
|
5450
5450
|
"cl-text-white": l.colour === "secondary"
|
|
5451
5451
|
}])
|
|
5452
5452
|
}, [
|
|
5453
|
-
l.username ? (u(), g("div",
|
|
5454
|
-
l.group ? (u(), g("div",
|
|
5453
|
+
l.username ? (u(), g("div", Tr, I(l.username), 1)) : R("", !0),
|
|
5454
|
+
l.group ? (u(), g("div", Sr, I(l.group), 1)) : R("", !0)
|
|
5455
5455
|
], 2),
|
|
5456
|
-
v("div",
|
|
5456
|
+
v("div", qr, [
|
|
5457
5457
|
T(m(_), {
|
|
5458
5458
|
class: E(["cl-transform-gpu cl-transition-transform", {
|
|
5459
5459
|
"cl-rotate-180": l.isOpen,
|
|
@@ -5466,7 +5466,7 @@ const $t = /* @__PURE__ */ ke(nr, [["render", rr]]), ir = { class: "cl-flex cl-g
|
|
|
5466
5466
|
]),
|
|
5467
5467
|
T(Ie, { name: "fade" }, {
|
|
5468
5468
|
default: O(() => [
|
|
5469
|
-
ne(v("div",
|
|
5469
|
+
ne(v("div", Dr, [
|
|
5470
5470
|
q(l.$slots, "default")
|
|
5471
5471
|
], 512), [
|
|
5472
5472
|
[fe, l.isOpen]
|
|
@@ -5476,10 +5476,10 @@ const $t = /* @__PURE__ */ ke(nr, [["render", rr]]), ir = { class: "cl-flex cl-g
|
|
|
5476
5476
|
})
|
|
5477
5477
|
], 2));
|
|
5478
5478
|
}
|
|
5479
|
-
}),
|
|
5479
|
+
}), Er = [
|
|
5480
5480
|
"default",
|
|
5481
5481
|
"secondary"
|
|
5482
|
-
],
|
|
5482
|
+
], Ar = /* @__PURE__ */ P({
|
|
5483
5483
|
inheritAttrs: !1,
|
|
5484
5484
|
__name: "cl-ui-calendar",
|
|
5485
5485
|
props: {
|
|
@@ -5531,7 +5531,7 @@ const $t = /* @__PURE__ */ ke(nr, [["render", rr]]), ir = { class: "cl-flex cl-g
|
|
|
5531
5531
|
const B = rt(D, a.value);
|
|
5532
5532
|
i.value = B, w.value = D, b.value.move(B.start), b.value.hidePopover();
|
|
5533
5533
|
}
|
|
5534
|
-
const C = $(() => it(i.value, a.value, h.value)), N =
|
|
5534
|
+
const C = $(() => it(i.value, a.value, h.value)), N = Xl("(min-width: 768px)"), A = $(() => N.value ? 2 : 1);
|
|
5535
5535
|
return l({
|
|
5536
5536
|
focus() {
|
|
5537
5537
|
var D;
|
|
@@ -5652,7 +5652,7 @@ const $t = /* @__PURE__ */ ke(nr, [["render", rr]]), ir = { class: "cl-flex cl-g
|
|
|
5652
5652
|
}), Ge = [
|
|
5653
5653
|
...mt,
|
|
5654
5654
|
"dateRange"
|
|
5655
|
-
],
|
|
5655
|
+
], Mr = ["disabled", "step", "placeholder", "name"], Vr = /* @__PURE__ */ P({
|
|
5656
5656
|
__name: "cl-ui-currency-input",
|
|
5657
5657
|
props: {
|
|
5658
5658
|
modelValue: { type: [String, Object, Number, Boolean, null] },
|
|
@@ -5667,7 +5667,7 @@ const $t = /* @__PURE__ */ ke(nr, [["render", rr]]), ir = { class: "cl-flex cl-g
|
|
|
5667
5667
|
},
|
|
5668
5668
|
emits: ["update:modelValue", "focus", "change"],
|
|
5669
5669
|
setup(o, { expose: l, emit: t }) {
|
|
5670
|
-
const e = o, r = t, { inputRef: a, setOptions: i, setValue: d, numberValue: h } =
|
|
5670
|
+
const e = o, r = t, { inputRef: a, setOptions: i, setValue: d, numberValue: h } = Ht(e.currencyOptions, !1), s = $(() => n(e.modelValue) ? e.modelValue : 0);
|
|
5671
5671
|
function n(f) {
|
|
5672
5672
|
return typeof f == "number" && isNaN(f) === !1;
|
|
5673
5673
|
}
|
|
@@ -5722,12 +5722,12 @@ const $t = /* @__PURE__ */ ke(nr, [["render", rr]]), ir = { class: "cl-flex cl-g
|
|
|
5722
5722
|
onChange: b,
|
|
5723
5723
|
onBlur: p,
|
|
5724
5724
|
onFocus: C[0] || (C[0] = (N) => r("focus"))
|
|
5725
|
-
}, null, 42,
|
|
5725
|
+
}, null, 42, Mr));
|
|
5726
5726
|
}
|
|
5727
|
-
}),
|
|
5727
|
+
}), Ir = { class: "cl-flex cl-items-start" }, Nr = { class: "cl-w-full" }, Rr = ["min", "max", "step", "disabled"], Ur = { class: "cl-bg-transparent cl-text-center cl-text-sm cl-w-full" }, zr = { class: "cl-bg-transparent cl-text-sm" }, Br = {
|
|
5728
5728
|
key: 1,
|
|
5729
5729
|
class: "cl-emphasis-danger cl-text-sm cl-w-full"
|
|
5730
|
-
},
|
|
5730
|
+
}, Lr = /* @__PURE__ */ P({
|
|
5731
5731
|
inheritAttrs: !1,
|
|
5732
5732
|
__name: "cl-ui-slider",
|
|
5733
5733
|
props: /* @__PURE__ */ me({
|
|
@@ -5755,7 +5755,7 @@ const $t = /* @__PURE__ */ ke(nr, [["render", rr]]), ir = { class: "cl-flex cl-g
|
|
|
5755
5755
|
(s = a.value) == null || s.focus();
|
|
5756
5756
|
}
|
|
5757
5757
|
}), (s, n) => d.value ? (u(), g("div", ge(Z({ key: 0 }, s.$attrs)), [
|
|
5758
|
-
v("div",
|
|
5758
|
+
v("div", Ir, [
|
|
5759
5759
|
v("span", {
|
|
5760
5760
|
class: E(["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", {
|
|
5761
5761
|
"cl-bg-white cl-cursor-pointer hover:cl-border-grey-1": !s.disabled,
|
|
@@ -5763,7 +5763,7 @@ const $t = /* @__PURE__ */ ke(nr, [["render", rr]]), ir = { class: "cl-flex cl-g
|
|
|
5763
5763
|
}]),
|
|
5764
5764
|
onClick: n[0] || (n[0] = (c) => e.value = s.disabled ? e.value : s.min)
|
|
5765
5765
|
}, I(Number.isInteger(s.min) ? m(Se)(s.min) : m(Ae)(s.min, m(ae).DECIMAL)), 3),
|
|
5766
|
-
v("div",
|
|
5766
|
+
v("div", Nr, [
|
|
5767
5767
|
h.value ? (u(), F(_e, {
|
|
5768
5768
|
key: 0,
|
|
5769
5769
|
ref_key: "sliderRef",
|
|
@@ -5794,7 +5794,7 @@ const $t = /* @__PURE__ */ ke(nr, [["render", rr]]), ir = { class: "cl-flex cl-g
|
|
|
5794
5794
|
max: s.max,
|
|
5795
5795
|
step: s.step,
|
|
5796
5796
|
disabled: s.disabled
|
|
5797
|
-
}, null, 8,
|
|
5797
|
+
}, null, 8, Rr), [
|
|
5798
5798
|
[
|
|
5799
5799
|
Tl,
|
|
5800
5800
|
e.value,
|
|
@@ -5802,7 +5802,7 @@ const $t = /* @__PURE__ */ ke(nr, [["render", rr]]), ir = { class: "cl-flex cl-g
|
|
|
5802
5802
|
{ number: !0 }
|
|
5803
5803
|
]
|
|
5804
5804
|
]),
|
|
5805
|
-
v("div",
|
|
5805
|
+
v("div", Ur, I(Number.isInteger(e.value) ? m(Se)(e.value) : m(Ae)(e.value, m(ae).DECIMAL)), 1)
|
|
5806
5806
|
], 64))
|
|
5807
5807
|
]),
|
|
5808
5808
|
v("span", {
|
|
@@ -5812,7 +5812,7 @@ const $t = /* @__PURE__ */ ke(nr, [["render", rr]]), ir = { class: "cl-flex cl-g
|
|
|
5812
5812
|
}]),
|
|
5813
5813
|
onClick: n[3] || (n[3] = (c) => e.value = s.disabled ? e.value : s.max)
|
|
5814
5814
|
}, I(Number.isInteger(s.max) ? m(Se)(s.max) : m(Ae)(s.max, m(ae).DECIMAL)), 3),
|
|
5815
|
-
v("div",
|
|
5815
|
+
v("div", zr, [
|
|
5816
5816
|
v("div", {
|
|
5817
5817
|
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",
|
|
5818
5818
|
onClick: n[4] || (n[4] = (c) => h.value = !h.value)
|
|
@@ -5821,9 +5821,9 @@ const $t = /* @__PURE__ */ ke(nr, [["render", rr]]), ir = { class: "cl-flex cl-g
|
|
|
5821
5821
|
])
|
|
5822
5822
|
])
|
|
5823
5823
|
])
|
|
5824
|
-
], 16)) : (u(), g("div",
|
|
5824
|
+
], 16)) : (u(), g("div", Br, I(m(r)("slider.invalidProps")), 1));
|
|
5825
5825
|
}
|
|
5826
|
-
}),
|
|
5826
|
+
}), Fr = /* @__PURE__ */ ke(Lr, [["__scopeId", "data-v-5cb4ccea"]]);
|
|
5827
5827
|
function Gl(o) {
|
|
5828
5828
|
let l = !1;
|
|
5829
5829
|
switch (o) {
|
|
@@ -5841,7 +5841,7 @@ function Gl(o) {
|
|
|
5841
5841
|
}
|
|
5842
5842
|
return l;
|
|
5843
5843
|
}
|
|
5844
|
-
function
|
|
5844
|
+
function Pr(o) {
|
|
5845
5845
|
return o === "number" || o === "range";
|
|
5846
5846
|
}
|
|
5847
5847
|
function Hl(o) {
|
|
@@ -5862,7 +5862,7 @@ function Hl(o) {
|
|
|
5862
5862
|
function He(o) {
|
|
5863
5863
|
return o === "button" || o === "submit" || o === "reset";
|
|
5864
5864
|
}
|
|
5865
|
-
function
|
|
5865
|
+
function jr(o) {
|
|
5866
5866
|
let l;
|
|
5867
5867
|
switch (o) {
|
|
5868
5868
|
case "datetime":
|
|
@@ -5883,27 +5883,27 @@ function Pr(o) {
|
|
|
5883
5883
|
}
|
|
5884
5884
|
function Zl(o, l) {
|
|
5885
5885
|
const t = o.target;
|
|
5886
|
-
return
|
|
5886
|
+
return Pr(l) ? t.valueAsNumber : He(l) ? t.checked : t.value;
|
|
5887
5887
|
}
|
|
5888
|
-
const
|
|
5888
|
+
const Gr = { class: "cl-flex cl-justify-between" }, Hr = { class: "cl-w-full" }, Zr = {
|
|
5889
5889
|
key: 0,
|
|
5890
5890
|
class: "cl-block cl-left-auto cl-relative cl-text-danger-default"
|
|
5891
|
-
},
|
|
5891
|
+
}, Wr = {
|
|
5892
5892
|
key: 1,
|
|
5893
5893
|
class: "cl-bg-danger-light cl-block cl-max-h-6 cl-mb-1 cl-ml-2 cl-px-2 cl-rounded-md cl-text-center cl-text-danger-default cl-text-xs"
|
|
5894
|
-
},
|
|
5894
|
+
}, Kr = {
|
|
5895
5895
|
key: 0,
|
|
5896
5896
|
class: "cl-relative"
|
|
5897
|
-
},
|
|
5897
|
+
}, Qr = ["type", "disabled", "min", "max", "minlength", "maxlength", "step", "placeholder", "name", "autocomplete"], Yr = { key: 0 }, Jr = { key: 1 }, xr = {
|
|
5898
5898
|
key: 3,
|
|
5899
5899
|
class: "cl-max-h-[2.75rem] cl-pb-0.5"
|
|
5900
5900
|
}, Xr = {
|
|
5901
5901
|
key: 0,
|
|
5902
5902
|
class: "cl-bg-primary-lighter cl-px-2 cl-rounded-md cl-text-center cl-text-secondary-light cl-text-xs cl-w-auto cl-whitespace-pre-line"
|
|
5903
|
-
},
|
|
5903
|
+
}, _r = {
|
|
5904
5904
|
key: 1,
|
|
5905
5905
|
class: "cl-bg-danger-light cl-px-2 cl-rounded-md cl-text-center cl-text-danger-default cl-text-xs cl-w-auto cl-whitespace-pre-line"
|
|
5906
|
-
},
|
|
5906
|
+
}, ei = /* @__PURE__ */ P({
|
|
5907
5907
|
inheritAttrs: !1,
|
|
5908
5908
|
__name: "cl-ui-input",
|
|
5909
5909
|
props: {
|
|
@@ -5945,7 +5945,7 @@ const jr = { class: "cl-flex cl-justify-between" }, Gr = { class: "cl-w-full" },
|
|
|
5945
5945
|
return h.value && ((L = p.value) == null ? void 0 : L.toString().trim()) === "" && e.requiredText.trim() !== "" && (y = !1), !e.hideRequiredAsterisk && y;
|
|
5946
5946
|
}), n = $(() => e.placeholderText.trim() !== "" ? e.placeholderText : e.label), c = V(0), p = $({
|
|
5947
5947
|
get: () => e.modelValue,
|
|
5948
|
-
set: (y) =>
|
|
5948
|
+
set: (y) => X(y, !1)
|
|
5949
5949
|
}), w = $({
|
|
5950
5950
|
get: () => e.modelValue,
|
|
5951
5951
|
set: (y) => se(y)
|
|
@@ -5968,7 +5968,7 @@ const jr = { class: "cl-flex cl-justify-between" }, Gr = { class: "cl-w-full" },
|
|
|
5968
5968
|
async function se(y) {
|
|
5969
5969
|
e.validateOn === "input" && await j(y), r("update:model-value", y);
|
|
5970
5970
|
}
|
|
5971
|
-
async function
|
|
5971
|
+
async function X(y, L) {
|
|
5972
5972
|
e.onInputFunction !== void 0 && (y = e.onInputFunction(y)), e.validateOn === "change" && (B.value = !1), (L || e.validateOn === "input") && await j(y), r("update:model-value", y);
|
|
5973
5973
|
}
|
|
5974
5974
|
function j(y) {
|
|
@@ -5982,7 +5982,7 @@ const jr = { class: "cl-flex cl-justify-between" }, Gr = { class: "cl-w-full" },
|
|
|
5982
5982
|
pe(e.customValidationFunction(e.label, y));
|
|
5983
5983
|
})
|
|
5984
5984
|
];
|
|
5985
|
-
return (typeof y == "string" || typeof y == "number") && (K.push(
|
|
5985
|
+
return (typeof y == "string" || typeof y == "number") && (K.push(Ea(e.min, e.inputType, e.label, y, e.timeZone)), K.push(Aa(e.max, e.inputType, e.label, y, e.timeZone))), e.isRequired && K.push(Ma(e.label, y)), e.inputType === "email" && typeof y == "string" && K.push(Va(e.label, y)), Promise.all(K).then((pe) => {
|
|
5986
5986
|
const Me = [...pe.map((el) => el.message)], De = pe.some((el) => el.message.length > 0 && el.valid === !1) || e.externalErrors.length > 0;
|
|
5987
5987
|
B.value = !0, De ? (ee.value = Me, r("validated", !1, y)) : (ee.value = [], r("validated", !0, y)), D.value = !De;
|
|
5988
5988
|
});
|
|
@@ -5996,16 +5996,16 @@ const jr = { class: "cl-flex cl-justify-between" }, Gr = { class: "cl-w-full" },
|
|
|
5996
5996
|
}
|
|
5997
5997
|
function U(y) {
|
|
5998
5998
|
if (a.value) {
|
|
5999
|
-
a.value.stepUp(), a.value.focus(),
|
|
5999
|
+
a.value.stepUp(), a.value.focus(), X(a.value.valueAsNumber, !1);
|
|
6000
6000
|
const L = {
|
|
6001
6001
|
target: a.value
|
|
6002
6002
|
};
|
|
6003
6003
|
r("input", L, a.value.valueAsNumber), r("change", y, a.value.valueAsNumber);
|
|
6004
6004
|
}
|
|
6005
6005
|
}
|
|
6006
|
-
function
|
|
6006
|
+
function x(y) {
|
|
6007
6007
|
if (a.value) {
|
|
6008
|
-
a.value.stepDown(), a.value.focus(),
|
|
6008
|
+
a.value.stepDown(), a.value.focus(), X(a.value.valueAsNumber, !1);
|
|
6009
6009
|
const L = {
|
|
6010
6010
|
target: a.value
|
|
6011
6011
|
};
|
|
@@ -6034,13 +6034,13 @@ const jr = { class: "cl-flex cl-justify-between" }, Gr = { class: "cl-w-full" },
|
|
|
6034
6034
|
await S(), G();
|
|
6035
6035
|
}
|
|
6036
6036
|
return je(() => {
|
|
6037
|
-
e.validateImmediately &&
|
|
6038
|
-
}), le(() => e.isRequired, () =>
|
|
6037
|
+
e.validateImmediately && X(e.modelValue, !0);
|
|
6038
|
+
}), le(() => e.isRequired, () => X(e.modelValue, !0)), le(() => e.externalErrors, async () => {
|
|
6039
6039
|
await j(p.value), r("update:model-value", p.value);
|
|
6040
6040
|
}), le(
|
|
6041
6041
|
() => e.modelValue,
|
|
6042
6042
|
() => {
|
|
6043
|
-
|
|
6043
|
+
X(e.modelValue, e.validateImmediately);
|
|
6044
6044
|
}
|
|
6045
6045
|
), l({
|
|
6046
6046
|
focus() {
|
|
@@ -6059,15 +6059,15 @@ const jr = { class: "cl-flex cl-justify-between" }, Gr = { class: "cl-w-full" },
|
|
|
6059
6059
|
onMouseenter: L[13] || (L[13] = (K) => W(!0)),
|
|
6060
6060
|
onMouseleave: L[14] || (L[14] = (K) => W(!1))
|
|
6061
6061
|
}, [
|
|
6062
|
-
v("div",
|
|
6063
|
-
v("div",
|
|
6062
|
+
v("div", Gr, [
|
|
6063
|
+
v("div", Hr, [
|
|
6064
6064
|
ne(v("label", { class: "cl-block cl-mb-1 cl-text-grey-4 cl-text-xs cl-tracking-widest" }, I(y.label), 513), [
|
|
6065
6065
|
[fe, y.showLabel && y.label !== ""]
|
|
6066
6066
|
])
|
|
6067
6067
|
]),
|
|
6068
|
-
s.value ? (u(), g("label",
|
|
6068
|
+
s.value ? (u(), g("label", Zr, " * ")) : y.isRequired && y.requiredText.length ? (u(), g("label", Wr, I(y.requiredText), 1)) : R("", !0)
|
|
6069
6069
|
]),
|
|
6070
|
-
y.inputType !== "range" && y.inputType !== "currency" && !m(Hl)(y.inputType) ? (u(), g("div",
|
|
6070
|
+
y.inputType !== "range" && y.inputType !== "currency" && !m(Hl)(y.inputType) ? (u(), g("div", Kr, [
|
|
6071
6071
|
ne(v("input", Z({
|
|
6072
6072
|
ref_key: "inputElement",
|
|
6073
6073
|
ref: a,
|
|
@@ -6102,7 +6102,7 @@ const jr = { class: "cl-flex cl-justify-between" }, Gr = { class: "cl-w-full" },
|
|
|
6102
6102
|
r("input", K, m(Zl)(K, y.inputType));
|
|
6103
6103
|
}),
|
|
6104
6104
|
onChange: z
|
|
6105
|
-
}), null, 16,
|
|
6105
|
+
}), null, 16, Qr), [
|
|
6106
6106
|
[Kl, p.value]
|
|
6107
6107
|
]),
|
|
6108
6108
|
T(Ie, {
|
|
@@ -6110,7 +6110,7 @@ const jr = { class: "cl-flex cl-justify-between" }, Gr = { class: "cl-w-full" },
|
|
|
6110
6110
|
duration: 300
|
|
6111
6111
|
}, {
|
|
6112
6112
|
default: O(() => [
|
|
6113
|
-
y.inputType === "number" && !y.disabled && y.showArrows ? ne((u(), g("div",
|
|
6113
|
+
y.inputType === "number" && !y.disabled && y.showArrows ? ne((u(), g("div", Yr, [
|
|
6114
6114
|
T(m(_), {
|
|
6115
6115
|
icon: "ph:caret-up-bold",
|
|
6116
6116
|
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",
|
|
@@ -6121,7 +6121,7 @@ const jr = { class: "cl-flex cl-justify-between" }, Gr = { class: "cl-w-full" },
|
|
|
6121
6121
|
T(m(_), {
|
|
6122
6122
|
icon: "ph:caret-down-bold",
|
|
6123
6123
|
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",
|
|
6124
|
-
onClick:
|
|
6124
|
+
onClick: x,
|
|
6125
6125
|
onMousedown: L[5] || (L[5] = re(() => {
|
|
6126
6126
|
}, ["prevent"]))
|
|
6127
6127
|
})
|
|
@@ -6131,8 +6131,8 @@ const jr = { class: "cl-flex cl-justify-between" }, Gr = { class: "cl-w-full" },
|
|
|
6131
6131
|
]),
|
|
6132
6132
|
_: 1
|
|
6133
6133
|
})
|
|
6134
|
-
])) : y.inputType === "currency" ? (u(), g("div",
|
|
6135
|
-
T(
|
|
6134
|
+
])) : y.inputType === "currency" ? (u(), g("div", Jr, [
|
|
6135
|
+
T(Vr, Z({
|
|
6136
6136
|
ref_key: "currencyInputRef",
|
|
6137
6137
|
ref: i,
|
|
6138
6138
|
modelValue: p.value,
|
|
@@ -6151,7 +6151,7 @@ const jr = { class: "cl-flex cl-justify-between" }, Gr = { class: "cl-w-full" },
|
|
|
6151
6151
|
onFocus: L[8] || (L[8] = (K) => r("focus")),
|
|
6152
6152
|
onBlur: S
|
|
6153
6153
|
}), null, 16, ["modelValue", "disabled", "placeholder", "is-valid", "highlight-when-valid", "input-specific-classes", "group", "step", "currency-options"])
|
|
6154
|
-
])) : m(Hl)(y.inputType) ? (u(), F(m(
|
|
6154
|
+
])) : m(Hl)(y.inputType) ? (u(), F(m(Ar), Z({ key: 2 }, y.$attrs, {
|
|
6155
6155
|
ref_key: "inputElement",
|
|
6156
6156
|
ref: a,
|
|
6157
6157
|
date: w.value,
|
|
@@ -6163,7 +6163,7 @@ const jr = { class: "cl-flex cl-justify-between" }, Gr = { class: "cl-w-full" },
|
|
|
6163
6163
|
}],
|
|
6164
6164
|
disabled: y.disabled,
|
|
6165
6165
|
required: y.isRequired,
|
|
6166
|
-
type: m(
|
|
6166
|
+
type: m(jr)(y.inputType),
|
|
6167
6167
|
"time-zone": y.timeZone,
|
|
6168
6168
|
min: b.value,
|
|
6169
6169
|
max: f.value,
|
|
@@ -6173,8 +6173,8 @@ const jr = { class: "cl-flex cl-justify-between" }, Gr = { class: "cl-w-full" },
|
|
|
6173
6173
|
"date-format-locale": y.dateFormatLocale,
|
|
6174
6174
|
onBlur: re(S, ["self"]),
|
|
6175
6175
|
onFocus: L[10] || (L[10] = (K) => r("focus"))
|
|
6176
|
-
}), null, 16, ["date", "class", "disabled", "required", "type", "time-zone", "min", "max", "placeholder", "initial-date", "quick-date-scope", "date-format-locale"])) : y.inputType === "range" && typeof p.value == "number" ? (u(), g("div",
|
|
6177
|
-
T(m(
|
|
6176
|
+
}), null, 16, ["date", "class", "disabled", "required", "type", "time-zone", "min", "max", "placeholder", "initial-date", "quick-date-scope", "date-format-locale"])) : y.inputType === "range" && typeof p.value == "number" ? (u(), g("div", xr, [
|
|
6177
|
+
T(m(Fr), {
|
|
6178
6178
|
ref_key: "inputElement",
|
|
6179
6179
|
ref: a,
|
|
6180
6180
|
value: p.value,
|
|
@@ -6191,10 +6191,10 @@ const jr = { class: "cl-flex cl-justify-between" }, Gr = { class: "cl-w-full" },
|
|
|
6191
6191
|
])) : R("", !0)
|
|
6192
6192
|
], 32),
|
|
6193
6193
|
D.value && A.value && B.value ? (u(), g("div", Xr, I(A.value), 1)) : R("", !0),
|
|
6194
|
-
!D.value && M.value.length > 0 && y.showValidationMessages && B.value ? (u(), g("div",
|
|
6194
|
+
!D.value && M.value.length > 0 && y.showValidationMessages && B.value ? (u(), g("div", _r, I(M.value), 1)) : R("", !0)
|
|
6195
6195
|
], 16));
|
|
6196
6196
|
}
|
|
6197
|
-
}),
|
|
6197
|
+
}), li = /* @__PURE__ */ ke(ei, [["__scopeId", "data-v-2373f106"]]), ti = [
|
|
6198
6198
|
"button",
|
|
6199
6199
|
"checkbox",
|
|
6200
6200
|
"color",
|
|
@@ -6216,24 +6216,24 @@ const jr = { class: "cl-flex cl-justify-between" }, Gr = { class: "cl-w-full" },
|
|
|
6216
6216
|
function kl(o) {
|
|
6217
6217
|
return /[a-z]{2}-[A-Z]{2}/gm.test(o.localeCode);
|
|
6218
6218
|
}
|
|
6219
|
-
function
|
|
6219
|
+
function oi(o) {
|
|
6220
6220
|
let l = Array.isArray(o);
|
|
6221
6221
|
if (l) {
|
|
6222
6222
|
for (const t of o)
|
|
6223
|
-
if (!
|
|
6223
|
+
if (!ai(t)) {
|
|
6224
6224
|
l = !1;
|
|
6225
6225
|
break;
|
|
6226
6226
|
}
|
|
6227
6227
|
}
|
|
6228
6228
|
return l;
|
|
6229
6229
|
}
|
|
6230
|
-
function
|
|
6230
|
+
function ai(o) {
|
|
6231
6231
|
return typeof o.name == "string" && typeof o.nativeName == "string" && typeof o.localeCode == "string";
|
|
6232
6232
|
}
|
|
6233
|
-
const
|
|
6233
|
+
const ni = {
|
|
6234
6234
|
key: 0,
|
|
6235
6235
|
class: "cl-flex cl-relative cl-select-none cl-w-auto cl-z-30"
|
|
6236
|
-
},
|
|
6236
|
+
}, si = { class: "cl-absolute cl-bg-white cl-border cl-border-grey-0 cl-overflow-hidden cl-right-0 cl-rounded cl-shadow-xl cl-text-black cl-top-6 cl-z-30" }, ri = ["data-localename", "data-localecode", "onClick"], ii = { class: "cl-text-xs" }, ci = /* @__PURE__ */ P({
|
|
6237
6237
|
__name: "cl-ui-language-switcher",
|
|
6238
6238
|
props: {
|
|
6239
6239
|
supportedLanguages: {},
|
|
@@ -6252,7 +6252,7 @@ const ai = {
|
|
|
6252
6252
|
}
|
|
6253
6253
|
return le(() => t.disabled, (n) => {
|
|
6254
6254
|
n && (a.value = !1);
|
|
6255
|
-
}), (n, c) => i.value !== null && m(kl)(i.value) ? (u(), g("div",
|
|
6255
|
+
}), (n, c) => i.value !== null && m(kl)(i.value) ? (u(), g("div", ni, [
|
|
6256
6256
|
v("div", {
|
|
6257
6257
|
class: E(["cl-flex cl-items-center", {
|
|
6258
6258
|
"cl-cursor-pointer": !n.disabled
|
|
@@ -6267,7 +6267,7 @@ const ai = {
|
|
|
6267
6267
|
], 2),
|
|
6268
6268
|
T(Ie, { name: "fade" }, {
|
|
6269
6269
|
default: O(() => [
|
|
6270
|
-
ne(v("div",
|
|
6270
|
+
ne(v("div", si, [
|
|
6271
6271
|
(u(!0), g(H, null, J(d.value, (p, w) => (u(), g("div", {
|
|
6272
6272
|
key: w,
|
|
6273
6273
|
class: "cl-border-b cl-border-grey-0 cl-cursor-pointer cl-flex cl-items-center cl-justify-center cl-p-1 cl-text-center cl-transition-colors cl-w-28 hover:cl-bg-grey-0 last-child:cl-border-b-0 last:cl-border-b-0 lg:cl-p-2",
|
|
@@ -6277,8 +6277,8 @@ const ai = {
|
|
|
6277
6277
|
r.value = p.localeCode, s(), e("language-select", p.localeCode);
|
|
6278
6278
|
}
|
|
6279
6279
|
}, [
|
|
6280
|
-
v("span",
|
|
6281
|
-
], 8,
|
|
6280
|
+
v("span", ii, I(p.nativeName), 1)
|
|
6281
|
+
], 8, ri))), 128))
|
|
6282
6282
|
], 512), [
|
|
6283
6283
|
[fe, a.value]
|
|
6284
6284
|
])
|
|
@@ -6287,13 +6287,13 @@ const ai = {
|
|
|
6287
6287
|
})
|
|
6288
6288
|
])) : R("", !0);
|
|
6289
6289
|
}
|
|
6290
|
-
}),
|
|
6290
|
+
}), ui = { class: "cl-relative" }, di = { class: "cl-h-full cl-z-0 xl:cl-h-screen" }, pi = { 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" }, fi = { class: "cl-col-span-10 lg:cl-col-span-3" }, mi = {
|
|
6291
6291
|
key: 0,
|
|
6292
6292
|
class: "cl-col-span-10 cl-flex cl-items-start cl-justify-end cl-text-white lg:cl-col-span-1 lg:cl-p-2"
|
|
6293
|
-
},
|
|
6293
|
+
}, gi = { class: "cl-col-span-3" }, vi = { class: "cl-relative cl-text-grey-4" }, hi = { class: "cl-w-full" }, bi = {
|
|
6294
6294
|
key: 0,
|
|
6295
6295
|
class: "cl-bg-primary-lighter cl-mt-1 cl-rounded-md cl-text-center cl-text-secondary-default cl-text-xs cl-w-full"
|
|
6296
|
-
},
|
|
6296
|
+
}, yi = { class: "cl-col-span-3" }, wi = { class: "cl-relative cl-text-grey-4" }, ki = { class: "cl-col-span-10 cl-emphasis-danger cl-mt-10 cl-p-3 cl-rounded-md cl-text-sm md:cl-mt-3" }, $i = /* @__PURE__ */ P({
|
|
6297
6297
|
__name: "cl-ui-login",
|
|
6298
6298
|
props: {
|
|
6299
6299
|
errors: { default: () => [] },
|
|
@@ -6315,15 +6315,15 @@ const ai = {
|
|
|
6315
6315
|
return le([
|
|
6316
6316
|
r,
|
|
6317
6317
|
a
|
|
6318
|
-
], n), (c, p) => (u(), g("div",
|
|
6319
|
-
v("div",
|
|
6318
|
+
], n), (c, p) => (u(), g("div", ui, [
|
|
6319
|
+
v("div", di, [
|
|
6320
6320
|
q(c.$slots, "background")
|
|
6321
6321
|
]),
|
|
6322
|
-
v("form",
|
|
6323
|
-
v("div",
|
|
6322
|
+
v("form", pi, [
|
|
6323
|
+
v("div", fi, [
|
|
6324
6324
|
q(c.$slots, "logo")
|
|
6325
6325
|
]),
|
|
6326
|
-
c.$slots["language-switcher"] ? (u(), g("div",
|
|
6326
|
+
c.$slots["language-switcher"] ? (u(), g("div", mi, [
|
|
6327
6327
|
q(c.$slots, "language-switcher")
|
|
6328
6328
|
])) : R("", !0),
|
|
6329
6329
|
v("div", {
|
|
@@ -6332,14 +6332,14 @@ const ai = {
|
|
|
6332
6332
|
"cl-col-span-6": c.$slots["language-switcher"]
|
|
6333
6333
|
}])
|
|
6334
6334
|
}, [
|
|
6335
|
-
v("div",
|
|
6336
|
-
v("div",
|
|
6335
|
+
v("div", gi, [
|
|
6336
|
+
v("div", vi, [
|
|
6337
6337
|
T(m(_), {
|
|
6338
6338
|
class: "cl-absolute cl-left-3 cl-top-3 cl-z-10",
|
|
6339
6339
|
icon: "ph:user",
|
|
6340
6340
|
size: 18
|
|
6341
6341
|
}),
|
|
6342
|
-
v("div",
|
|
6342
|
+
v("div", hi, [
|
|
6343
6343
|
T(Ue, {
|
|
6344
6344
|
id: "cl-ui-login-usernameinput",
|
|
6345
6345
|
modelValue: r.value,
|
|
@@ -6359,12 +6359,12 @@ const ai = {
|
|
|
6359
6359
|
])),
|
|
6360
6360
|
_: 1
|
|
6361
6361
|
}, 8, ["modelValue", "class", "errors", "placeholder"]),
|
|
6362
|
-
d.value ? (u(), g("div",
|
|
6362
|
+
d.value ? (u(), g("div", bi, I(m(e)("login.validEmail")), 1)) : R("", !0)
|
|
6363
6363
|
])
|
|
6364
6364
|
])
|
|
6365
6365
|
]),
|
|
6366
|
-
v("div",
|
|
6367
|
-
v("div",
|
|
6366
|
+
v("div", yi, [
|
|
6367
|
+
v("div", wi, [
|
|
6368
6368
|
T(m(_), {
|
|
6369
6369
|
class: "cl-absolute cl-left-3 cl-top-3 cl-z-10",
|
|
6370
6370
|
icon: "ph:lock",
|
|
@@ -6428,7 +6428,7 @@ const ai = {
|
|
|
6428
6428
|
default: O(() => {
|
|
6429
6429
|
var w;
|
|
6430
6430
|
return [
|
|
6431
|
-
ne(v("span",
|
|
6431
|
+
ne(v("span", ki, [
|
|
6432
6432
|
(u(!0), g(H, null, J(c.errors, (b, f) => (u(), g("div", {
|
|
6433
6433
|
id: "cl-ui-login-errors",
|
|
6434
6434
|
key: f,
|
|
@@ -6444,19 +6444,19 @@ const ai = {
|
|
|
6444
6444
|
])
|
|
6445
6445
|
]));
|
|
6446
6446
|
}
|
|
6447
|
-
}),
|
|
6447
|
+
}), Ci = [
|
|
6448
6448
|
"x-small",
|
|
6449
6449
|
"small",
|
|
6450
6450
|
"medium",
|
|
6451
6451
|
"large"
|
|
6452
|
-
],
|
|
6452
|
+
], Ti = [
|
|
6453
6453
|
"primary",
|
|
6454
6454
|
"secondary",
|
|
6455
6455
|
"white"
|
|
6456
|
-
],
|
|
6456
|
+
], Si = {
|
|
6457
6457
|
key: 0,
|
|
6458
6458
|
class: "cl-h-0 cl-w-0"
|
|
6459
|
-
},
|
|
6459
|
+
}, qi = { class: "cl-relative cl-w-full" }, Di = /* @__PURE__ */ P({
|
|
6460
6460
|
__name: "cl-ui-navigation",
|
|
6461
6461
|
props: {
|
|
6462
6462
|
colour: { default: "default" }
|
|
@@ -6478,7 +6478,7 @@ const ai = {
|
|
|
6478
6478
|
D.id !== C && (D.open = !1);
|
|
6479
6479
|
})), e("open-state", !!(N != null && N.open), A);
|
|
6480
6480
|
}
|
|
6481
|
-
const h =
|
|
6481
|
+
const h = Pt();
|
|
6482
6482
|
le(
|
|
6483
6483
|
() => h,
|
|
6484
6484
|
() => {
|
|
@@ -6488,7 +6488,7 @@ const ai = {
|
|
|
6488
6488
|
deep: !0
|
|
6489
6489
|
}
|
|
6490
6490
|
);
|
|
6491
|
-
const s = V(!1), n = V(!1), { start: c } =
|
|
6491
|
+
const s = V(!1), n = V(!1), { start: c } = xl(() => n.value = !1, 100);
|
|
6492
6492
|
function p() {
|
|
6493
6493
|
s.value = !s.value, e("pinned-state", s.value), n.value = !0, c();
|
|
6494
6494
|
}
|
|
@@ -6518,7 +6518,7 @@ const ai = {
|
|
|
6518
6518
|
}, [
|
|
6519
6519
|
q(C.$slots, "icon", Z({ navcolour: C.colour }, { groupIsOpen: i, toggleOpen: d }), void 0, !0)
|
|
6520
6520
|
], 2),
|
|
6521
|
-
n.value ? (u(), g("div",
|
|
6521
|
+
n.value ? (u(), g("div", Si)) : R("", !0),
|
|
6522
6522
|
T(Ie, { name: "slide-right" }, {
|
|
6523
6523
|
default: O(() => [
|
|
6524
6524
|
ne(v("div", {
|
|
@@ -6527,7 +6527,7 @@ const ai = {
|
|
|
6527
6527
|
"cl-absolute cl-left-20 cl-shadow-lg": !s.value
|
|
6528
6528
|
}])
|
|
6529
6529
|
}, [
|
|
6530
|
-
v("div",
|
|
6530
|
+
v("div", qi, [
|
|
6531
6531
|
v("span", {
|
|
6532
6532
|
class: "cl-absolute cl-cursor-pointer cl-hidden cl-right-0 cl-top-1.5 lg:cl-block",
|
|
6533
6533
|
onClick: N[0] || (N[0] = () => p())
|
|
@@ -6550,7 +6550,7 @@ const ai = {
|
|
|
6550
6550
|
})
|
|
6551
6551
|
], 512));
|
|
6552
6552
|
}
|
|
6553
|
-
}),
|
|
6553
|
+
}), Oi = /* @__PURE__ */ ke(Di, [["__scopeId", "data-v-db3283cd"]]), Ei = /* @__PURE__ */ P({
|
|
6554
6554
|
__name: "cl-ui-navigation-icon",
|
|
6555
6555
|
props: {
|
|
6556
6556
|
iconValue: {},
|
|
@@ -6573,10 +6573,10 @@ const ai = {
|
|
|
6573
6573
|
}, null, 8, ["icon"])
|
|
6574
6574
|
], 2));
|
|
6575
6575
|
}
|
|
6576
|
-
}),
|
|
6576
|
+
}), Ai = {
|
|
6577
6577
|
key: 0,
|
|
6578
6578
|
class: "cl-font-bold cl-leading-8 cl-mb-8 cl-pr-8 cl-select-none cl-text-lg cl-text-secondary-default"
|
|
6579
|
-
},
|
|
6579
|
+
}, Mi = { class: "cl-flex cl-flex-wrap cl-space-y-8 cl-text-sm cl-w-full" }, Vi = /* @__PURE__ */ P({
|
|
6580
6580
|
__name: "cl-ui-navigation-group",
|
|
6581
6581
|
props: {
|
|
6582
6582
|
open: { type: Boolean }
|
|
@@ -6587,35 +6587,35 @@ const ai = {
|
|
|
6587
6587
|
"cl-hidden": !l.open
|
|
6588
6588
|
})
|
|
6589
6589
|
}, [
|
|
6590
|
-
l.$slots.title ? (u(), g("div",
|
|
6590
|
+
l.$slots.title ? (u(), g("div", Ai, [
|
|
6591
6591
|
q(l.$slots, "title")
|
|
6592
6592
|
])) : R("", !0),
|
|
6593
|
-
v("div",
|
|
6593
|
+
v("div", Mi, [
|
|
6594
6594
|
q(l.$slots, "default")
|
|
6595
6595
|
])
|
|
6596
6596
|
], 2));
|
|
6597
6597
|
}
|
|
6598
|
-
}),
|
|
6598
|
+
}), Ii = {}, Ni = { class: "cl-w-full" }, Ri = {
|
|
6599
6599
|
key: 0,
|
|
6600
6600
|
class: "cl-font-bold cl-mb-4 cl-select-none"
|
|
6601
|
-
},
|
|
6602
|
-
function
|
|
6603
|
-
return u(), g("div",
|
|
6604
|
-
o.$slots.title ? (u(), g("div",
|
|
6601
|
+
}, Ui = { class: "cl-flex cl-flex-wrap cl-space-y-2" };
|
|
6602
|
+
function zi(o, l) {
|
|
6603
|
+
return u(), g("div", Ni, [
|
|
6604
|
+
o.$slots.title ? (u(), g("div", Ri, [
|
|
6605
6605
|
q(o.$slots, "title")
|
|
6606
6606
|
])) : R("", !0),
|
|
6607
|
-
v("span",
|
|
6607
|
+
v("span", Ui, [
|
|
6608
6608
|
q(o.$slots, "default")
|
|
6609
6609
|
])
|
|
6610
6610
|
]);
|
|
6611
6611
|
}
|
|
6612
|
-
const
|
|
6613
|
-
function
|
|
6614
|
-
return u(), g("div",
|
|
6612
|
+
const Bi = /* @__PURE__ */ ke(Ii, [["render", zi]]), Li = {}, Fi = { class: "cl-cursor-pointer cl-transition-colors cl-w-full hover:cl-text-primary-darker" };
|
|
6613
|
+
function Pi(o, l) {
|
|
6614
|
+
return u(), g("div", Fi, [
|
|
6615
6615
|
q(o.$slots, "default")
|
|
6616
6616
|
]);
|
|
6617
6617
|
}
|
|
6618
|
-
const
|
|
6618
|
+
const ji = /* @__PURE__ */ ke(Li, [["render", Pi]]), Gi = /* @__PURE__ */ P({
|
|
6619
6619
|
__name: "cl-ui-tab",
|
|
6620
6620
|
props: {
|
|
6621
6621
|
colour: { default: "default" },
|
|
@@ -6680,7 +6680,7 @@ const Pi = /* @__PURE__ */ ke(Bi, [["render", Fi]]), ji = /* @__PURE__ */ P({
|
|
|
6680
6680
|
])
|
|
6681
6681
|
], 2));
|
|
6682
6682
|
}
|
|
6683
|
-
}),
|
|
6683
|
+
}), Hi = ["inert"], Zi = /* @__PURE__ */ P({
|
|
6684
6684
|
__name: "cl-ui-tab-header",
|
|
6685
6685
|
props: {
|
|
6686
6686
|
open: { type: Boolean },
|
|
@@ -6709,32 +6709,32 @@ const Pi = /* @__PURE__ */ ke(Bi, [["render", Fi]]), ji = /* @__PURE__ */ P({
|
|
|
6709
6709
|
q(e.$slots, "default", {}, () => [
|
|
6710
6710
|
ie(I(e.title), 1)
|
|
6711
6711
|
])
|
|
6712
|
-
], 10,
|
|
6712
|
+
], 10, Hi));
|
|
6713
6713
|
}
|
|
6714
|
-
}),
|
|
6714
|
+
}), Wi = { key: 0 }, Ki = { class: "cl-font-bold cl-mb-4" }, Qi = /* @__PURE__ */ P({
|
|
6715
6715
|
__name: "cl-ui-tab-content",
|
|
6716
6716
|
props: {
|
|
6717
6717
|
open: { type: Boolean },
|
|
6718
6718
|
title: { default: "" }
|
|
6719
6719
|
},
|
|
6720
6720
|
setup(o) {
|
|
6721
|
-
return (l, t) => l.open ? (u(), g("div",
|
|
6721
|
+
return (l, t) => l.open ? (u(), g("div", Wi, [
|
|
6722
6722
|
l.$slots.header || l.title ? q(l.$slots, "header", { key: 0 }, () => [
|
|
6723
|
-
v("h4",
|
|
6723
|
+
v("h4", Ki, I(l.title), 1)
|
|
6724
6724
|
]) : R("", !0),
|
|
6725
6725
|
q(l.$slots, "default")
|
|
6726
6726
|
])) : R("", !0);
|
|
6727
6727
|
}
|
|
6728
|
-
}),
|
|
6728
|
+
}), Yi = [
|
|
6729
6729
|
"default",
|
|
6730
6730
|
"primary",
|
|
6731
6731
|
"secondary",
|
|
6732
6732
|
"danger",
|
|
6733
6733
|
"blue"
|
|
6734
|
-
],
|
|
6734
|
+
], Ji = [
|
|
6735
6735
|
"horizontal",
|
|
6736
6736
|
"vertical"
|
|
6737
|
-
],
|
|
6737
|
+
], xi = { class: "cl-flex cl-flex-col cl-h-full cl-w-full" }, Xi = ["multiple", "accept", "disabled"], _i = ["multiple", "accept", "disabled"], ec = /* @__PURE__ */ P({
|
|
6738
6738
|
inheritAttrs: !1,
|
|
6739
6739
|
__name: "cl-ui-file-uploader",
|
|
6740
6740
|
props: {
|
|
@@ -6762,7 +6762,10 @@ const Pi = /* @__PURE__ */ ke(Bi, [["render", Fi]]), ji = /* @__PURE__ */ P({
|
|
|
6762
6762
|
function h(b) {
|
|
6763
6763
|
const f = t.acceptedFileTypes.split(",").map((A) => A.trim()), C = [], N = [];
|
|
6764
6764
|
b.forEach((A) => {
|
|
6765
|
-
f.some((D) =>
|
|
6765
|
+
f.some((D) => {
|
|
6766
|
+
const B = Nt(D).replace(/\\\*/g, ".*?");
|
|
6767
|
+
return new RegExp(`^${B}$`).test(A.type) || A.name.endsWith(D);
|
|
6768
|
+
}) ? C.push(A) : N.push(A);
|
|
6766
6769
|
}), C.length && e("files-uploaded", C), a.value = N, N.length && e("invalid-files", N), w();
|
|
6767
6770
|
}
|
|
6768
6771
|
const s = [
|
|
@@ -6784,7 +6787,7 @@ const Pi = /* @__PURE__ */ ke(Bi, [["render", Fi]]), ji = /* @__PURE__ */ P({
|
|
|
6784
6787
|
function w() {
|
|
6785
6788
|
c.value && (c.value.value = ""), p.value && (p.value.value = "");
|
|
6786
6789
|
}
|
|
6787
|
-
return (b, f) => (u(), g("div",
|
|
6790
|
+
return (b, f) => (u(), g("div", xi, [
|
|
6788
6791
|
b.uploaderType === "dragDrop" ? (u(), g("label", Z({ key: 0 }, b.$attrs, {
|
|
6789
6792
|
role: "button",
|
|
6790
6793
|
class: ["cl-bg-opacity-10 cl-border cl-border-dashed cl-duration-300 cl-ease-in-out cl-flex cl-justify-center cl-relative cl-rounded-lg", {
|
|
@@ -6821,7 +6824,7 @@ const Pi = /* @__PURE__ */ ke(Bi, [["render", Fi]]), ji = /* @__PURE__ */ P({
|
|
|
6821
6824
|
accept: b.acceptedFileTypes,
|
|
6822
6825
|
disabled: b.disabled,
|
|
6823
6826
|
onInput: d
|
|
6824
|
-
}, null, 42,
|
|
6827
|
+
}, null, 42, _i)),
|
|
6825
6828
|
a.value.length > 0 ? q(b.$slots, "invalid-files", {
|
|
6826
6829
|
key: 2,
|
|
6827
6830
|
invalidFiles: a.value
|
|
@@ -6840,7 +6843,7 @@ const Pi = /* @__PURE__ */ ke(Bi, [["render", Fi]]), ji = /* @__PURE__ */ P({
|
|
|
6840
6843
|
]) : R("", !0)
|
|
6841
6844
|
]));
|
|
6842
6845
|
}
|
|
6843
|
-
}),
|
|
6846
|
+
}), lc = /* @__PURE__ */ P({
|
|
6844
6847
|
inheritAttrs: !1,
|
|
6845
6848
|
__name: "cl-ui-toggle",
|
|
6846
6849
|
props: /* @__PURE__ */ me({
|
|
@@ -6892,7 +6895,7 @@ const Pi = /* @__PURE__ */ ke(Bi, [["render", Fi]]), ji = /* @__PURE__ */ P({
|
|
|
6892
6895
|
} : void 0
|
|
6893
6896
|
]), 1032, ["show-required-asterisk"]));
|
|
6894
6897
|
}
|
|
6895
|
-
}),
|
|
6898
|
+
}), tc = /* @__PURE__ */ P({
|
|
6896
6899
|
__name: "cl-ui-toggle-button",
|
|
6897
6900
|
props: {
|
|
6898
6901
|
isSelected: { type: Boolean },
|
|
@@ -6912,7 +6915,7 @@ const Pi = /* @__PURE__ */ ke(Bi, [["render", Fi]]), ji = /* @__PURE__ */ P({
|
|
|
6912
6915
|
_: 3
|
|
6913
6916
|
}, 8, ["class"]));
|
|
6914
6917
|
}
|
|
6915
|
-
}),
|
|
6918
|
+
}), oc = { class: "*:cl-cursor-pointer cl-flex cl-gap-2 cl-items-center cl-select-none" }, ac = ["id", "name", "checked"], Tt = /* @__PURE__ */ P({
|
|
6916
6919
|
__name: "cl-ui-radio",
|
|
6917
6920
|
props: {
|
|
6918
6921
|
id: {},
|
|
@@ -6921,7 +6924,7 @@ const Pi = /* @__PURE__ */ ke(Bi, [["render", Fi]]), ji = /* @__PURE__ */ P({
|
|
|
6921
6924
|
},
|
|
6922
6925
|
emits: ["click"],
|
|
6923
6926
|
setup(o) {
|
|
6924
|
-
return (l, t) => (u(), g("div",
|
|
6927
|
+
return (l, t) => (u(), g("div", oc, [
|
|
6925
6928
|
v("input", {
|
|
6926
6929
|
id: l.id,
|
|
6927
6930
|
name: l.name,
|
|
@@ -6929,11 +6932,11 @@ const Pi = /* @__PURE__ */ ke(Bi, [["render", Fi]]), ji = /* @__PURE__ */ P({
|
|
|
6929
6932
|
checked: l.checked,
|
|
6930
6933
|
class: "after:checked:cl-bg-secondary-default after:cl-h-1.5 after:cl-m-1 after:cl-rounded-full after:cl-w-1.5 checked:cl-bg-primary-default checked:cl-border-primary-darker cl-appearance-none cl-bg-clip-content cl-border cl-border-grey-3 cl-cursor-pointer cl-flex cl-gap-2 cl-h-4 cl-items-center cl-rounded-full cl-w-4",
|
|
6931
6934
|
onClick: t[0] || (t[0] = (e) => l.$emit("click"))
|
|
6932
|
-
}, null, 8,
|
|
6935
|
+
}, null, 8, ac),
|
|
6933
6936
|
q(l.$slots, "default")
|
|
6934
6937
|
]));
|
|
6935
6938
|
}
|
|
6936
|
-
}),
|
|
6939
|
+
}), nc = /* @__PURE__ */ P({
|
|
6937
6940
|
__name: "cl-ui-radio-group",
|
|
6938
6941
|
props: {
|
|
6939
6942
|
id: {},
|
|
@@ -6957,19 +6960,19 @@ const Pi = /* @__PURE__ */ ke(Bi, [["render", Fi]]), ji = /* @__PURE__ */ P({
|
|
|
6957
6960
|
_: 2
|
|
6958
6961
|
}, 1032, ["id", "checked", "name", "onClick"]))), 128));
|
|
6959
6962
|
}
|
|
6960
|
-
}),
|
|
6963
|
+
}), sc = {
|
|
6961
6964
|
key: 0,
|
|
6962
6965
|
class: "cl-flex-1"
|
|
6963
|
-
},
|
|
6966
|
+
}, rc = {
|
|
6964
6967
|
key: 0,
|
|
6965
6968
|
class: "cl-mb-1 cl-mt-0.5"
|
|
6966
|
-
},
|
|
6969
|
+
}, ic = { class: "cl-overflow-y-auto cl-w-full" }, cc = {
|
|
6967
6970
|
key: 1,
|
|
6968
6971
|
class: "cl-border-grey-2 cl-border-t cl-mt-auto cl-pt-1 cl-text-white cl-w-full hover:cl-text-secondary-default"
|
|
6969
|
-
},
|
|
6972
|
+
}, uc = {
|
|
6970
6973
|
key: 0,
|
|
6971
6974
|
class: "cl-flex cl-flex-shrink-0 cl-w-16"
|
|
6972
|
-
},
|
|
6975
|
+
}, dc = /* @__PURE__ */ P({
|
|
6973
6976
|
inheritAttrs: !1,
|
|
6974
6977
|
__name: "cl-ui-menu",
|
|
6975
6978
|
props: {
|
|
@@ -7026,7 +7029,7 @@ const Pi = /* @__PURE__ */ ke(Bi, [["render", Fi]]), ji = /* @__PURE__ */ P({
|
|
|
7026
7029
|
}),
|
|
7027
7030
|
onClick: n[0] || (n[0] = re(() => a(), ["stop"]))
|
|
7028
7031
|
}, null, 8, ["icon-value", "class"]),
|
|
7029
|
-
l.value && s.$slots.menuHeader ? (u(), g("div",
|
|
7032
|
+
l.value && s.$slots.menuHeader ? (u(), g("div", sc, [
|
|
7030
7033
|
q(s.$slots, "menuHeader")
|
|
7031
7034
|
])) : R("", !0)
|
|
7032
7035
|
], 34),
|
|
@@ -7046,24 +7049,24 @@ const Pi = /* @__PURE__ */ ke(Bi, [["render", Fi]]), ji = /* @__PURE__ */ P({
|
|
|
7046
7049
|
"cl-text-secondary-default": l.value === !1
|
|
7047
7050
|
})
|
|
7048
7051
|
}, null, 8, ["class"]),
|
|
7049
|
-
l.value ? (u(), g("div",
|
|
7052
|
+
l.value ? (u(), g("div", rc, [
|
|
7050
7053
|
q(s.$slots, "searchInput")
|
|
7051
7054
|
])) : R("", !0)
|
|
7052
7055
|
], 2)) : R("", !0),
|
|
7053
|
-
v("div",
|
|
7056
|
+
v("div", ic, [
|
|
7054
7057
|
q(s.$slots, "default", ge(ve({ toggleOpen: r, groupIsOpen: e })))
|
|
7055
7058
|
]),
|
|
7056
|
-
s.$slots.footer ? (u(), g("div",
|
|
7059
|
+
s.$slots.footer ? (u(), g("div", cc, [
|
|
7057
7060
|
q(s.$slots, "footer", ge(ve({ toggleOpen: r, groupIsOpen: e })))
|
|
7058
7061
|
])) : R("", !0)
|
|
7059
7062
|
], 16),
|
|
7060
|
-
m(d) === !1 && l.value ? (u(), g("div",
|
|
7063
|
+
m(d) === !1 && l.value ? (u(), g("div", uc)) : R("", !0)
|
|
7061
7064
|
], 64));
|
|
7062
7065
|
}
|
|
7063
|
-
}),
|
|
7066
|
+
}), pc = { class: "cl-overflow-hidden cl-w-full" }, fc = ["title"], mc = { class: "cl-flex cl-flex-1 cl-items-center cl-justify-between" }, gc = { class: "cl-font-semibold" }, vc = { class: "cl-overflow-hidden" }, hc = {
|
|
7064
7067
|
key: 0,
|
|
7065
7068
|
class: "cl-mt-1"
|
|
7066
|
-
},
|
|
7069
|
+
}, bc = /* @__PURE__ */ P({
|
|
7067
7070
|
__name: "cl-ui-menu-group",
|
|
7068
7071
|
props: {
|
|
7069
7072
|
title: {},
|
|
@@ -7075,15 +7078,15 @@ const Pi = /* @__PURE__ */ ke(Bi, [["render", Fi]]), ji = /* @__PURE__ */ P({
|
|
|
7075
7078
|
setup(o) {
|
|
7076
7079
|
return (l, t) => {
|
|
7077
7080
|
const e = Te("icon");
|
|
7078
|
-
return u(), g("div",
|
|
7081
|
+
return u(), g("div", pc, [
|
|
7079
7082
|
v("div", {
|
|
7080
7083
|
class: "cl-cursor-pointer cl-flex cl-items-center cl-rounded-lg cl-text-secondary-default cl-transition-colors hover:cl-bg-primary-lighter",
|
|
7081
7084
|
title: l.title,
|
|
7082
7085
|
onClick: t[0] || (t[0] = (r) => l.$emit("toggle-open"))
|
|
7083
7086
|
}, [
|
|
7084
7087
|
T(m(rl), { "icon-value": l.iconValue }, null, 8, ["icon-value"]),
|
|
7085
|
-
ne(v("div",
|
|
7086
|
-
v("span",
|
|
7088
|
+
ne(v("div", mc, [
|
|
7089
|
+
v("span", gc, I(l.title), 1),
|
|
7087
7090
|
l.$slots.default ? (u(), F(e, {
|
|
7088
7091
|
key: 0,
|
|
7089
7092
|
icon: l.open ? "ph:caret-up" : "ph:caret-down",
|
|
@@ -7092,9 +7095,9 @@ const Pi = /* @__PURE__ */ ke(Bi, [["render", Fi]]), ji = /* @__PURE__ */ P({
|
|
|
7092
7095
|
], 512), [
|
|
7093
7096
|
[fe, l.menuOpen]
|
|
7094
7097
|
])
|
|
7095
|
-
], 8,
|
|
7096
|
-
v("div",
|
|
7097
|
-
l.open && l.menuOpen === !0 ? (u(), g("div",
|
|
7098
|
+
], 8, fc),
|
|
7099
|
+
v("div", vc, [
|
|
7100
|
+
l.open && l.menuOpen === !0 ? (u(), g("div", hc, [
|
|
7098
7101
|
T(m(St), null, {
|
|
7099
7102
|
default: O(() => [
|
|
7100
7103
|
q(l.$slots, "default")
|
|
@@ -7106,7 +7109,7 @@ const Pi = /* @__PURE__ */ ke(Bi, [["render", Fi]]), ji = /* @__PURE__ */ P({
|
|
|
7106
7109
|
]);
|
|
7107
7110
|
};
|
|
7108
7111
|
}
|
|
7109
|
-
}),
|
|
7112
|
+
}), yc = { class: "cl-flex cl-flex-shrink-0 cl-h-12 cl-items-center cl-justify-center cl-w-12" }, Wl = "24", rl = /* @__PURE__ */ P({
|
|
7110
7113
|
__name: "cl-ui-menu-icon",
|
|
7111
7114
|
props: {
|
|
7112
7115
|
iconValue: {}
|
|
@@ -7114,7 +7117,7 @@ const Pi = /* @__PURE__ */ ke(Bi, [["render", Fi]]), ji = /* @__PURE__ */ P({
|
|
|
7114
7117
|
setup(o) {
|
|
7115
7118
|
return (l, t) => {
|
|
7116
7119
|
const e = Te("icon");
|
|
7117
|
-
return u(), g("div",
|
|
7120
|
+
return u(), g("div", yc, [
|
|
7118
7121
|
T(e, {
|
|
7119
7122
|
icon: l.iconValue,
|
|
7120
7123
|
width: Wl,
|
|
@@ -7123,26 +7126,26 @@ const Pi = /* @__PURE__ */ ke(Bi, [["render", Fi]]), ji = /* @__PURE__ */ P({
|
|
|
7123
7126
|
]);
|
|
7124
7127
|
};
|
|
7125
7128
|
}
|
|
7126
|
-
}),
|
|
7129
|
+
}), wc = { class: "cl-flex cl-flex-row" }, kc = { class: "cl-flex cl-flex-1 cl-flex-col cl-pl-1" }, St = /* @__PURE__ */ P({
|
|
7127
7130
|
__name: "cl-ui-menu-section",
|
|
7128
7131
|
setup(o) {
|
|
7129
|
-
return (l, t) => (u(), g("div",
|
|
7132
|
+
return (l, t) => (u(), g("div", wc, [
|
|
7130
7133
|
t[0] || (t[0] = v("div", { class: "cl-flex cl-flex-shrink-0 cl-justify-center cl-w-[47px]" }, [
|
|
7131
7134
|
v("div", { class: "cl-bg-grey-2 cl-w-[1px]" }, " ")
|
|
7132
7135
|
], -1)),
|
|
7133
|
-
v("div",
|
|
7136
|
+
v("div", kc, [
|
|
7134
7137
|
q(l.$slots, "default")
|
|
7135
7138
|
])
|
|
7136
7139
|
]));
|
|
7137
7140
|
}
|
|
7138
|
-
}),
|
|
7141
|
+
}), $c = { class: "cl-cursor-pointer cl-text-secondary-default cl-text-sm cl-transition-colors cl-w-full hover:cl-text-primary-dark" }, Cc = /* @__PURE__ */ P({
|
|
7139
7142
|
__name: "cl-ui-menu-item",
|
|
7140
7143
|
setup(o) {
|
|
7141
|
-
return (l, t) => (u(), g("div",
|
|
7144
|
+
return (l, t) => (u(), g("div", $c, [
|
|
7142
7145
|
q(l.$slots, "default")
|
|
7143
7146
|
]));
|
|
7144
7147
|
}
|
|
7145
|
-
}),
|
|
7148
|
+
}), Tc = ["height"], Sc = ["y2"], qc = ["y1", "y2"], Dc = /* @__PURE__ */ P({
|
|
7146
7149
|
__name: "cl-ui-tree-list-tree-path",
|
|
7147
7150
|
props: {
|
|
7148
7151
|
branchesAt: {}
|
|
@@ -7163,7 +7166,7 @@ const Pi = /* @__PURE__ */ ke(Bi, [["render", Fi]]), ji = /* @__PURE__ */ P({
|
|
|
7163
7166
|
x2: "50%",
|
|
7164
7167
|
y2: l.branchesAt.at(-1) ?? 0,
|
|
7165
7168
|
"stroke-linecap": "round"
|
|
7166
|
-
}, null, 8,
|
|
7169
|
+
}, null, 8, Sc),
|
|
7167
7170
|
(u(!0), g(H, null, J(e.branchesAt, (a, i) => (u(), g("line", {
|
|
7168
7171
|
key: i,
|
|
7169
7172
|
x1: "50%",
|
|
@@ -7171,14 +7174,14 @@ const Pi = /* @__PURE__ */ ke(Bi, [["render", Fi]]), ji = /* @__PURE__ */ P({
|
|
|
7171
7174
|
x2: "100%",
|
|
7172
7175
|
y2: a,
|
|
7173
7176
|
"stroke-linecap": "round"
|
|
7174
|
-
}, null, 8,
|
|
7175
|
-
], 8,
|
|
7177
|
+
}, null, 8, qc))), 128))
|
|
7178
|
+
], 8, Tc));
|
|
7176
7179
|
}
|
|
7177
7180
|
});
|
|
7178
|
-
function
|
|
7181
|
+
function Oc(...o) {
|
|
7179
7182
|
return o.map((l) => l.replace(/ /g, "_")).join(" ");
|
|
7180
7183
|
}
|
|
7181
|
-
function
|
|
7184
|
+
function Ec(o, l) {
|
|
7182
7185
|
var r;
|
|
7183
7186
|
const t = l.split(" ");
|
|
7184
7187
|
let e;
|
|
@@ -7187,13 +7190,13 @@ function Oc(o, l) {
|
|
|
7187
7190
|
break;
|
|
7188
7191
|
return e ?? null;
|
|
7189
7192
|
}
|
|
7190
|
-
const
|
|
7193
|
+
const Ac = { class: "cl-flex cl-flex-nowrap cl-flex-row cl-w-full" }, Mc = { class: "cl-h-8 cl-px-1.5 cl-py-[3px] cl-w-8" }, Vc = ["id"], Ic = {
|
|
7191
7194
|
key: 0,
|
|
7192
7195
|
class: "cl-w-8"
|
|
7193
|
-
},
|
|
7196
|
+
}, Nc = ["id"], Rc = ["id"], Uc = {
|
|
7194
7197
|
key: 3,
|
|
7195
7198
|
class: "cl-basis-full cl-flex cl-flex-col cl-gap-2 cl-pt-2"
|
|
7196
|
-
},
|
|
7199
|
+
}, zc = /* @__PURE__ */ P({
|
|
7197
7200
|
__name: "cl-ui-tree-list-subtree",
|
|
7198
7201
|
props: /* @__PURE__ */ me({
|
|
7199
7202
|
idPrefix: {},
|
|
@@ -7208,7 +7211,7 @@ const Ec = { class: "cl-flex cl-flex-nowrap cl-flex-row cl-w-full" }, Ac = { cla
|
|
|
7208
7211
|
emits: /* @__PURE__ */ me(["recalculate-tree-path", "set-child-node-height"], ["update:selectedPath"]),
|
|
7209
7212
|
setup(o, { emit: l }) {
|
|
7210
7213
|
var N;
|
|
7211
|
-
const t = o, e = ye(o, "selectedPath"), r = l, a = $(() =>
|
|
7214
|
+
const t = o, e = ye(o, "selectedPath"), r = l, a = $(() => Oc(...t.pathFragments)), i = At(t.rootNode.expanded) ? t.rootNode.expanded : V(t.rootNode.expanded ?? !1), d = V(), { height: h } = Il(d), s = bl(d), n = V([]), c = $(() => n.value.map((A) => Il(A))), p = $(() => n.value.map((A) => bl(A))), w = V(new Array(((N = t.rootNode.children) == null ? void 0 : N.length) ?? 0).fill(0)), b = V([]);
|
|
7212
7215
|
function f() {
|
|
7213
7216
|
s.update(), b.value = p.value.map((A, D) => (A.update(), A.top.value - s.bottom.value + w.value[D] / 2 + 3)), r("recalculate-tree-path");
|
|
7214
7217
|
}
|
|
@@ -7224,8 +7227,8 @@ const Ec = { class: "cl-flex cl-flex-nowrap cl-flex-row cl-w-full" }, Ac = { cla
|
|
|
7224
7227
|
deep: !0
|
|
7225
7228
|
}), je(C), (A, D) => {
|
|
7226
7229
|
const B = Te("icon"), ee = Te("cl-ui-tree-list-subtree", !0);
|
|
7227
|
-
return u(), g("div",
|
|
7228
|
-
v("div",
|
|
7230
|
+
return u(), g("div", Ac, [
|
|
7231
|
+
v("div", Mc, [
|
|
7229
7232
|
A.rootNode.children && A.rootNode.children.length > 0 ? (u(), g("button", {
|
|
7230
7233
|
key: 0,
|
|
7231
7234
|
id: `${A.idPrefix}-expand-button`,
|
|
@@ -7235,9 +7238,9 @@ const Ec = { class: "cl-flex cl-flex-nowrap cl-flex-row cl-w-full" }, Ac = { cla
|
|
|
7235
7238
|
T(B, {
|
|
7236
7239
|
icon: m(i) ? "ph:minus-square" : "ph:plus-square"
|
|
7237
7240
|
}, null, 8, ["icon"])
|
|
7238
|
-
], 8,
|
|
7241
|
+
], 8, Vc)) : R("", !0)
|
|
7239
7242
|
]),
|
|
7240
|
-
A.depth > 0 ? (u(), g("div",
|
|
7243
|
+
A.depth > 0 ? (u(), g("div", Ic)) : R("", !0),
|
|
7241
7244
|
v("div", {
|
|
7242
7245
|
class: E(["cl-basis-full cl-relative", {
|
|
7243
7246
|
"cl-tree-list-selection": e.value === a.value
|
|
@@ -7259,7 +7262,7 @@ const Ec = { class: "cl-flex cl-flex-nowrap cl-flex-row cl-w-full" }, Ac = { cla
|
|
|
7259
7262
|
isExpanded: m(i),
|
|
7260
7263
|
expand: (M) => i.value = M
|
|
7261
7264
|
})
|
|
7262
|
-
], 8,
|
|
7265
|
+
], 8, Nc)) : (u(), g("button", {
|
|
7263
7266
|
key: 1,
|
|
7264
7267
|
id: `${A.idPrefix}-node-content`,
|
|
7265
7268
|
ref_key: "nodeContentDiv",
|
|
@@ -7279,13 +7282,13 @@ const Ec = { class: "cl-flex cl-flex-nowrap cl-flex-row cl-w-full" }, Ac = { cla
|
|
|
7279
7282
|
isExpanded: m(i),
|
|
7280
7283
|
expand: (M) => i.value = M
|
|
7281
7284
|
})
|
|
7282
|
-
], 10,
|
|
7283
|
-
A.rootNode.children && A.rootNode.children.length > 0 && m(i) ? (u(), F(
|
|
7285
|
+
], 10, Rc)),
|
|
7286
|
+
A.rootNode.children && A.rootNode.children.length > 0 && m(i) ? (u(), F(Dc, {
|
|
7284
7287
|
key: 2,
|
|
7285
7288
|
class: "cl-tree-list-path",
|
|
7286
7289
|
"branches-at": b.value
|
|
7287
7290
|
}, null, 8, ["branches-at"])) : R("", !0),
|
|
7288
|
-
A.rootNode.children && A.rootNode.children.length > 0 && m(i) ? (u(), g("div",
|
|
7291
|
+
A.rootNode.children && A.rootNode.children.length > 0 && m(i) ? (u(), g("div", Uc, [
|
|
7289
7292
|
(u(!0), g(H, null, J(A.rootNode.children, (M, te) => (u(), g("div", {
|
|
7290
7293
|
key: M.id,
|
|
7291
7294
|
ref_for: !0,
|
|
@@ -7303,10 +7306,10 @@ const Ec = { class: "cl-flex cl-flex-nowrap cl-flex-row cl-w-full" }, Ac = { cla
|
|
|
7303
7306
|
onRecalculateTreePath: m(C),
|
|
7304
7307
|
onSetChildNodeHeight: (se) => w.value[te] = se
|
|
7305
7308
|
}, he({ _: 2 }, [
|
|
7306
|
-
J(A.$slots, (se,
|
|
7307
|
-
name:
|
|
7309
|
+
J(A.$slots, (se, X) => ({
|
|
7310
|
+
name: X,
|
|
7308
7311
|
fn: O((j) => [
|
|
7309
|
-
q(A.$slots,
|
|
7312
|
+
q(A.$slots, X, Z({ ref_for: !0 }, j))
|
|
7310
7313
|
])
|
|
7311
7314
|
}))
|
|
7312
7315
|
]), 1032, ["selected-path", "id-prefix", "depth", "breadth", "path-fragments", "root-node", "onRecalculateTreePath", "onSetChildNodeHeight"])
|
|
@@ -7316,7 +7319,7 @@ const Ec = { class: "cl-flex cl-flex-nowrap cl-flex-row cl-w-full" }, Ac = { cla
|
|
|
7316
7319
|
]);
|
|
7317
7320
|
};
|
|
7318
7321
|
}
|
|
7319
|
-
}),
|
|
7322
|
+
}), Bc = { class: "cl-flex cl-flex-col cl-flex-nowrap cl-gap-4 cl-w-full" }, Lc = /* @__PURE__ */ P({
|
|
7320
7323
|
__name: "cl-ui-tree-list",
|
|
7321
7324
|
props: {
|
|
7322
7325
|
idPrefix: {},
|
|
@@ -7330,11 +7333,11 @@ const Ec = { class: "cl-flex cl-flex-nowrap cl-flex-row cl-w-full" }, Ac = { cla
|
|
|
7330
7333
|
const t = o, e = l, r = V(""), a = $({
|
|
7331
7334
|
get: () => t.allowSelect ? r.value : null,
|
|
7332
7335
|
set(i) {
|
|
7333
|
-
i ? (r.value = i, e("select",
|
|
7336
|
+
i ? (r.value = i, e("select", Ec(t.rootNodes, i))) : t.allowDeselect && (r.value = "", e("select", null));
|
|
7334
7337
|
}
|
|
7335
7338
|
});
|
|
7336
|
-
return (i, d) => (u(), g("div",
|
|
7337
|
-
(u(!0), g(H, null, J(i.rootNodes, (h, s) => (u(), F(
|
|
7339
|
+
return (i, d) => (u(), g("div", Bc, [
|
|
7340
|
+
(u(!0), g(H, null, J(i.rootNodes, (h, s) => (u(), F(zc, {
|
|
7338
7341
|
key: h.id,
|
|
7339
7342
|
"selected-path": a.value,
|
|
7340
7343
|
"onUpdate:selectedPath": d[0] || (d[0] = (n) => a.value = n),
|
|
@@ -7356,25 +7359,25 @@ const Ec = { class: "cl-flex cl-flex-nowrap cl-flex-row cl-w-full" }, Ac = { cla
|
|
|
7356
7359
|
]), 1032, ["selected-path", "class", "root-node", "breadth", "id-prefix", "path-fragments"]))), 128))
|
|
7357
7360
|
]));
|
|
7358
7361
|
}
|
|
7359
|
-
}),
|
|
7362
|
+
}), Fc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
7360
7363
|
__proto__: null,
|
|
7361
7364
|
FilterOperation: ce,
|
|
7362
7365
|
allQuickDates: dt,
|
|
7363
|
-
buttonColours:
|
|
7364
|
-
buttonSizes:
|
|
7365
|
-
cardSizes:
|
|
7366
|
+
buttonColours: co,
|
|
7367
|
+
buttonSizes: uo,
|
|
7368
|
+
cardSizes: mo,
|
|
7366
7369
|
clUISlectInput: sl,
|
|
7367
|
-
clUiAccordion:
|
|
7368
|
-
clUiAccordionHeader:
|
|
7369
|
-
clUiAccordionItem:
|
|
7370
|
-
clUiApp:
|
|
7370
|
+
clUiAccordion: Wt,
|
|
7371
|
+
clUiAccordionHeader: eo,
|
|
7372
|
+
clUiAccordionItem: Jt,
|
|
7373
|
+
clUiApp: ao,
|
|
7371
7374
|
clUiButton: Ce,
|
|
7372
|
-
clUiCard:
|
|
7373
|
-
clUiComboBox:
|
|
7374
|
-
clUiFileUploader:
|
|
7375
|
-
clUiFooter:
|
|
7376
|
-
clUiGrid:
|
|
7377
|
-
clUiGridLite:
|
|
7375
|
+
clUiCard: fo,
|
|
7376
|
+
clUiComboBox: Wo,
|
|
7377
|
+
clUiFileUploader: ec,
|
|
7378
|
+
clUiFooter: ta,
|
|
7379
|
+
clUiGrid: Ks,
|
|
7380
|
+
clUiGridLite: Js,
|
|
7378
7381
|
clUiGridLiteBody: wt,
|
|
7379
7382
|
clUiGridLiteBodySkeleton: bt,
|
|
7380
7383
|
clUiGridLiteCell: kt,
|
|
@@ -7382,68 +7385,68 @@ const Ec = { class: "cl-flex cl-flex-nowrap cl-flex-row cl-w-full" }, Ac = { cla
|
|
|
7382
7385
|
clUiGridLiteFooterSkeleton: $t,
|
|
7383
7386
|
clUiGridLiteHeader: ht,
|
|
7384
7387
|
clUiGridLiteRow: yt,
|
|
7385
|
-
clUiHeader:
|
|
7386
|
-
clUiHeaderMenu:
|
|
7387
|
-
clUiInput:
|
|
7388
|
+
clUiHeader: kr,
|
|
7389
|
+
clUiHeaderMenu: Or,
|
|
7390
|
+
clUiInput: li,
|
|
7388
7391
|
clUiInputCheckbox: ul,
|
|
7389
7392
|
clUiInputDateRange: ft,
|
|
7390
7393
|
clUiInputDateRangeInput: Ml,
|
|
7391
7394
|
clUiInputDateTime: gt,
|
|
7392
7395
|
clUiInputNumber: _e,
|
|
7393
|
-
clUiInputRange:
|
|
7396
|
+
clUiInputRange: Ln,
|
|
7394
7397
|
clUiInputText: Ue,
|
|
7395
|
-
clUiInputTextArea:
|
|
7396
|
-
clUiLanguageSwitcher:
|
|
7397
|
-
clUiLoadingSpinner:
|
|
7398
|
-
clUiLogin:
|
|
7399
|
-
clUiMenu:
|
|
7400
|
-
clUiMenuGroup:
|
|
7398
|
+
clUiInputTextArea: En,
|
|
7399
|
+
clUiLanguageSwitcher: ci,
|
|
7400
|
+
clUiLoadingSpinner: xe,
|
|
7401
|
+
clUiLogin: $i,
|
|
7402
|
+
clUiMenu: dc,
|
|
7403
|
+
clUiMenuGroup: bc,
|
|
7401
7404
|
clUiMenuIcon: rl,
|
|
7402
|
-
clUiMenuItem:
|
|
7405
|
+
clUiMenuItem: Cc,
|
|
7403
7406
|
clUiMenuSection: St,
|
|
7404
7407
|
clUiModal: ot,
|
|
7405
|
-
clUiNavigation:
|
|
7406
|
-
clUiNavigationGroup:
|
|
7407
|
-
clUiNavigationIcon:
|
|
7408
|
-
clUiNavigationItem:
|
|
7409
|
-
clUiNavigationSection:
|
|
7408
|
+
clUiNavigation: Oi,
|
|
7409
|
+
clUiNavigationGroup: Vi,
|
|
7410
|
+
clUiNavigationIcon: Ei,
|
|
7411
|
+
clUiNavigationItem: ji,
|
|
7412
|
+
clUiNavigationSection: Bi,
|
|
7410
7413
|
clUiNotification: tt,
|
|
7411
7414
|
clUiRadio: Tt,
|
|
7412
|
-
clUiRadioGroup:
|
|
7415
|
+
clUiRadioGroup: nc,
|
|
7413
7416
|
clUiSelect: wl,
|
|
7414
7417
|
clUiSelectOption: Be,
|
|
7415
|
-
clUiTab:
|
|
7416
|
-
clUiTabContent:
|
|
7417
|
-
clUiTabHeader:
|
|
7418
|
-
clUiToggle:
|
|
7419
|
-
clUiToggleButton:
|
|
7420
|
-
clUiTreeList:
|
|
7418
|
+
clUiTab: Gi,
|
|
7419
|
+
clUiTabContent: Qi,
|
|
7420
|
+
clUiTabHeader: Zi,
|
|
7421
|
+
clUiToggle: lc,
|
|
7422
|
+
clUiToggleButton: tc,
|
|
7423
|
+
clUiTreeList: Lc,
|
|
7421
7424
|
currentQuickDates: Ze,
|
|
7422
7425
|
dateTimeCalendarTypes: mt,
|
|
7423
7426
|
filterMethodTypes: Xn,
|
|
7424
7427
|
futureQuickDates: nl,
|
|
7425
|
-
gridColumnTypes:
|
|
7426
|
-
headerColour:
|
|
7427
|
-
inputTextTypes:
|
|
7428
|
-
inputTypes:
|
|
7429
|
-
isComboBoxCreateRequest:
|
|
7430
|
-
isComboBoxItem:
|
|
7431
|
-
isFilterRequest:
|
|
7432
|
-
isFilterResponse:
|
|
7428
|
+
gridColumnTypes: Yn,
|
|
7429
|
+
headerColour: Er,
|
|
7430
|
+
inputTextTypes: On,
|
|
7431
|
+
inputTypes: ti,
|
|
7432
|
+
isComboBoxCreateRequest: Qo,
|
|
7433
|
+
isComboBoxItem: Ko,
|
|
7434
|
+
isFilterRequest: ls,
|
|
7435
|
+
isFilterResponse: ts,
|
|
7433
7436
|
isGridColumn: vt,
|
|
7434
|
-
isGridColumnArray:
|
|
7435
|
-
isLanguageArray:
|
|
7437
|
+
isGridColumnArray: Jn,
|
|
7438
|
+
isLanguageArray: oi,
|
|
7436
7439
|
isLanguageLocaleFormat: kl,
|
|
7437
|
-
modalColours:
|
|
7438
|
-
modalSizes:
|
|
7440
|
+
modalColours: Ti,
|
|
7441
|
+
modalSizes: Ci,
|
|
7439
7442
|
pastQuickDates: al,
|
|
7440
|
-
popoverPlacements:
|
|
7441
|
-
quickDateNames:
|
|
7442
|
-
stringFormats:
|
|
7443
|
-
tabColours:
|
|
7444
|
-
tabLayout:
|
|
7445
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
7446
|
-
o.use(qe), o.component("Icon", _), Object.entries(
|
|
7443
|
+
popoverPlacements: Fn,
|
|
7444
|
+
quickDateNames: Sn,
|
|
7445
|
+
stringFormats: xn,
|
|
7446
|
+
tabColours: Yi,
|
|
7447
|
+
tabLayout: Ji
|
|
7448
|
+
}, Symbol.toStringTag, { value: "Module" })), tu = (o) => {
|
|
7449
|
+
o.use(qe), o.component("Icon", _), Object.entries(Fc).forEach(([
|
|
7447
7450
|
l,
|
|
7448
7451
|
t
|
|
7449
7452
|
]) => {
|
|
@@ -7451,26 +7454,26 @@ const Ec = { class: "cl-flex cl-flex-nowrap cl-flex-row cl-w-full" }, Ac = { cla
|
|
|
7451
7454
|
});
|
|
7452
7455
|
};
|
|
7453
7456
|
export {
|
|
7454
|
-
|
|
7457
|
+
lu as CitrusLimeUI,
|
|
7455
7458
|
ue as DateFormat,
|
|
7456
7459
|
ce as FilterOperation,
|
|
7457
7460
|
ae as NumberFormat,
|
|
7458
7461
|
dt as allQuickDates,
|
|
7459
|
-
|
|
7460
|
-
|
|
7461
|
-
|
|
7462
|
+
co as buttonColours,
|
|
7463
|
+
uo as buttonSizes,
|
|
7464
|
+
mo as cardSizes,
|
|
7462
7465
|
sl as clUISlectInput,
|
|
7463
|
-
|
|
7464
|
-
|
|
7465
|
-
|
|
7466
|
-
|
|
7466
|
+
Wt as clUiAccordion,
|
|
7467
|
+
eo as clUiAccordionHeader,
|
|
7468
|
+
Jt as clUiAccordionItem,
|
|
7469
|
+
ao as clUiApp,
|
|
7467
7470
|
Ce as clUiButton,
|
|
7468
|
-
|
|
7469
|
-
|
|
7470
|
-
|
|
7471
|
-
|
|
7472
|
-
|
|
7473
|
-
|
|
7471
|
+
fo as clUiCard,
|
|
7472
|
+
Wo as clUiComboBox,
|
|
7473
|
+
ec as clUiFileUploader,
|
|
7474
|
+
ta as clUiFooter,
|
|
7475
|
+
Ks as clUiGrid,
|
|
7476
|
+
Js as clUiGridLite,
|
|
7474
7477
|
wt as clUiGridLiteBody,
|
|
7475
7478
|
bt as clUiGridLiteBodySkeleton,
|
|
7476
7479
|
kt as clUiGridLiteCell,
|
|
@@ -7478,84 +7481,84 @@ export {
|
|
|
7478
7481
|
$t as clUiGridLiteFooterSkeleton,
|
|
7479
7482
|
ht as clUiGridLiteHeader,
|
|
7480
7483
|
yt as clUiGridLiteRow,
|
|
7481
|
-
|
|
7482
|
-
|
|
7483
|
-
|
|
7484
|
+
kr as clUiHeader,
|
|
7485
|
+
Or as clUiHeaderMenu,
|
|
7486
|
+
li as clUiInput,
|
|
7484
7487
|
ul as clUiInputCheckbox,
|
|
7485
7488
|
ft as clUiInputDateRange,
|
|
7486
7489
|
Ml as clUiInputDateRangeInput,
|
|
7487
7490
|
gt as clUiInputDateTime,
|
|
7488
7491
|
_e as clUiInputNumber,
|
|
7489
|
-
|
|
7492
|
+
Ln as clUiInputRange,
|
|
7490
7493
|
Ue as clUiInputText,
|
|
7491
|
-
|
|
7492
|
-
|
|
7493
|
-
|
|
7494
|
-
|
|
7495
|
-
|
|
7496
|
-
|
|
7494
|
+
En as clUiInputTextArea,
|
|
7495
|
+
ci as clUiLanguageSwitcher,
|
|
7496
|
+
xe as clUiLoadingSpinner,
|
|
7497
|
+
$i as clUiLogin,
|
|
7498
|
+
dc as clUiMenu,
|
|
7499
|
+
bc as clUiMenuGroup,
|
|
7497
7500
|
rl as clUiMenuIcon,
|
|
7498
|
-
|
|
7501
|
+
Cc as clUiMenuItem,
|
|
7499
7502
|
St as clUiMenuSection,
|
|
7500
7503
|
ot as clUiModal,
|
|
7501
|
-
|
|
7502
|
-
|
|
7503
|
-
|
|
7504
|
-
|
|
7505
|
-
|
|
7504
|
+
Oi as clUiNavigation,
|
|
7505
|
+
Vi as clUiNavigationGroup,
|
|
7506
|
+
Ei as clUiNavigationIcon,
|
|
7507
|
+
ji as clUiNavigationItem,
|
|
7508
|
+
Bi as clUiNavigationSection,
|
|
7506
7509
|
tt as clUiNotification,
|
|
7507
7510
|
Tt as clUiRadio,
|
|
7508
|
-
|
|
7511
|
+
nc as clUiRadioGroup,
|
|
7509
7512
|
wl as clUiSelect,
|
|
7510
7513
|
Be as clUiSelectOption,
|
|
7511
|
-
|
|
7512
|
-
|
|
7513
|
-
|
|
7514
|
-
|
|
7515
|
-
|
|
7516
|
-
|
|
7514
|
+
Gi as clUiTab,
|
|
7515
|
+
Qi as clUiTabContent,
|
|
7516
|
+
Zi as clUiTabHeader,
|
|
7517
|
+
lc as clUiToggle,
|
|
7518
|
+
tc as clUiToggleButton,
|
|
7519
|
+
Lc as clUiTreeList,
|
|
7517
7520
|
Ze as currentQuickDates,
|
|
7518
7521
|
mt as dateTimeCalendarTypes,
|
|
7519
|
-
|
|
7520
|
-
|
|
7521
|
-
|
|
7522
|
+
ka as datetimeFormats,
|
|
7523
|
+
tu as default,
|
|
7524
|
+
Ta as doesNumberStringContainPart,
|
|
7522
7525
|
Xn as filterMethodTypes,
|
|
7523
7526
|
Ae as formatNumber,
|
|
7524
7527
|
ml as formatNumberAsDecimal,
|
|
7525
7528
|
Se as formatNumberAsInteger,
|
|
7526
7529
|
nl as futureQuickDates,
|
|
7527
7530
|
ql as getMergedFormatOptions,
|
|
7528
|
-
|
|
7529
|
-
|
|
7531
|
+
Yn as gridColumnTypes,
|
|
7532
|
+
Er as headerColour,
|
|
7530
7533
|
qe as i18n,
|
|
7531
|
-
|
|
7532
|
-
|
|
7533
|
-
|
|
7534
|
-
|
|
7535
|
-
|
|
7536
|
-
|
|
7534
|
+
On as inputTextTypes,
|
|
7535
|
+
ti as inputTypes,
|
|
7536
|
+
Qo as isComboBoxCreateRequest,
|
|
7537
|
+
Ko as isComboBoxItem,
|
|
7538
|
+
ls as isFilterRequest,
|
|
7539
|
+
ts as isFilterResponse,
|
|
7537
7540
|
vt as isGridColumn,
|
|
7538
|
-
|
|
7539
|
-
|
|
7541
|
+
Jn as isGridColumnArray,
|
|
7542
|
+
oi as isLanguageArray,
|
|
7540
7543
|
kl as isLanguageLocaleFormat,
|
|
7541
|
-
|
|
7542
|
-
|
|
7543
|
-
|
|
7544
|
-
|
|
7544
|
+
ya as messages,
|
|
7545
|
+
Ti as modalColours,
|
|
7546
|
+
Ci as modalSizes,
|
|
7547
|
+
wa as numberFormats,
|
|
7545
7548
|
al as pastQuickDates,
|
|
7546
|
-
|
|
7547
|
-
|
|
7548
|
-
|
|
7549
|
-
|
|
7550
|
-
|
|
7551
|
-
|
|
7549
|
+
Fn as popoverPlacements,
|
|
7550
|
+
Sn as quickDateNames,
|
|
7551
|
+
Da as scrubGroupSeparatorsFromFormattedValue,
|
|
7552
|
+
eu as setCurrentLocale,
|
|
7553
|
+
_c as setLocaleDateTimeFormats,
|
|
7554
|
+
xc as setLocaleMessages,
|
|
7552
7555
|
Xc as setLocaleNumberFormats,
|
|
7553
7556
|
Nl as showNotification,
|
|
7554
|
-
|
|
7555
|
-
|
|
7556
|
-
|
|
7557
|
+
xn as stringFormats,
|
|
7558
|
+
Yi as tabColours,
|
|
7559
|
+
Ji as tabLayout,
|
|
7557
7560
|
at as unformatNumber,
|
|
7558
|
-
|
|
7559
|
-
|
|
7560
|
-
|
|
7561
|
+
Va as validateEmail,
|
|
7562
|
+
Aa as validateMaxValue,
|
|
7563
|
+
Ea as validateMinValue
|
|
7561
7564
|
};
|