@citruslime/ui 4.0.0-beta.7 → 4.0.0-beta.8
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 +633 -637
- package/dist/citrus-lime-ui.umd.js +2 -2
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { Icon as le } from "@iconify/vue";
|
|
2
|
-
import { defineComponent as j, ref as V, openBlock as u, createElementBlock as g, renderSlot as D, normalizeProps as me, guardReactiveProps as be, Fragment as K, createElementVNode as h, normalizeClass as O, createVNode as q, unref as m, Transition as Ne, withCtx as M, withDirectives as se, mergeProps as Q, vShow as fe, createBlock as L, Teleport as Tl, renderList as _, toDisplayString as R,
|
|
2
|
+
import { defineComponent as j, ref as V, openBlock as u, createElementBlock as g, renderSlot as D, normalizeProps as me, guardReactiveProps as be, Fragment as K, createElementVNode as h, normalizeClass as O, createVNode as q, unref as m, Transition as Ne, withCtx as M, withDirectives as se, mergeProps as Q, vShow as fe, createBlock as L, Teleport as Tl, renderList as _, toDisplayString as R, createCommentVNode as U, computed as $, createTextVNode as ue, mergeModels as de, useModel as ke, createSlots as ye, vModelDynamic as Yl, watch as te, toRefs as Jl, withKeys as re, onMounted as Ge, onUnmounted as Cl, withModifiers as x, nextTick as Fe, useAttrs as Ze, resolveComponent as Se, inject as il, vModelCheckbox as At, toValue as Il, watchEffect as Vt, vModelText as Sl, useCssVars as Xl, toHandlers as Mt, useSlots as It, provide as vl, normalizeStyle as xl, isRef as Nt } from "vue";
|
|
3
3
|
import { generateStringId as Rt, highlightText as Ut, validateEmail as zt, escapeStringForRegExp as Bt } from "@citruslime/utils";
|
|
4
4
|
import { onKeyDown as hl, unrefElement as Lt, tryOnScopeDispose as Ft, onClickOutside as xe, useTimeoutFn as _l, useMouseInElement as jt, useFocusWithin as Pt, useMediaQuery as et, useThrottle as Ht, useElementBounding as bl, useDebounceFn as Je, useBreakpoints as lt, breakpointsTailwind as tt, useThrottleFn as Gt, useWindowSize as Zt, useElementSize as Nl } from "@vueuse/core";
|
|
5
5
|
import { useI18n as ce, createI18n as Wt } from "vue-i18n";
|
|
6
6
|
import { createFocusTrap as Kt } from "focus-trap";
|
|
7
7
|
import { copy as we } from "@citruslime/vue-utils";
|
|
8
8
|
import { DateTime as Y } from "luxon";
|
|
9
|
-
import { DatePicker as
|
|
9
|
+
import { DatePicker as je } from "v-calendar";
|
|
10
10
|
import { useCurrencyInput as Qt } from "vue-currency-input";
|
|
11
11
|
const Yt = { class: "cl-overflow-hidden" }, Jt = /* @__PURE__ */ j({
|
|
12
12
|
__name: "cl-ui-accordion",
|
|
@@ -182,7 +182,10 @@ const no = ["onClick"], so = { class: "cl-flex-1 cl-select-none cl-text-ellipsis
|
|
|
182
182
|
function po(o, l) {
|
|
183
183
|
return u(), g("div", co);
|
|
184
184
|
}
|
|
185
|
-
const _e = /* @__PURE__ */ Te(uo, [["render", po], ["__scopeId", "data-v-a21dc5d2"]]), fo = ["disabled"],
|
|
185
|
+
const _e = /* @__PURE__ */ Te(uo, [["render", po], ["__scopeId", "data-v-a21dc5d2"]]), fo = ["disabled"], mo = {
|
|
186
|
+
key: 0,
|
|
187
|
+
class: "cl-absolute cl-bg-opacity-40 cl-bg-secondary-default cl-flex cl-h-full cl-items-center cl-justify-center cl-left-0 cl-rounded cl-top-0 cl-w-full"
|
|
188
|
+
}, Ce = /* @__PURE__ */ j({
|
|
186
189
|
inheritAttrs: !1,
|
|
187
190
|
__name: "cl-ui-button",
|
|
188
191
|
props: {
|
|
@@ -192,60 +195,53 @@ const _e = /* @__PURE__ */ Te(uo, [["render", po], ["__scopeId", "data-v-a21dc5d
|
|
|
192
195
|
disabled: { type: Boolean, default: !1 }
|
|
193
196
|
},
|
|
194
197
|
setup(o, { expose: l }) {
|
|
195
|
-
const t =
|
|
198
|
+
const t = V(null);
|
|
196
199
|
return l({
|
|
197
200
|
focus() {
|
|
198
|
-
|
|
201
|
+
t.value && t.value.focus();
|
|
199
202
|
}
|
|
200
|
-
}), (
|
|
203
|
+
}), (e, r) => (u(), g("button", Q(e.$attrs, {
|
|
201
204
|
ref_key: "buttonRef",
|
|
202
|
-
ref:
|
|
205
|
+
ref: t,
|
|
203
206
|
class: ["cl-align-middle cl-border cl-font-semibold cl-inline-block cl-relative cl-rounded cl-select-none cl-shadow cl-text-center cl-transition-colors", {
|
|
204
|
-
"cl-cursor-default":
|
|
205
|
-
"cl-py-[5px] cl-px-4 cl-text-sm":
|
|
206
|
-
"cl-py-[9px] cl-px-8 cl-text-sm":
|
|
207
|
-
"cl-px-10 cl-py-4":
|
|
208
|
-
"cl-bg-white cl-border-grey-0 cl-text-secondary":
|
|
209
|
-
"hover:cl-border-grey-2":
|
|
210
|
-
"cl-border-primary-default cl-bg-primary-default cl-text-secondary-default":
|
|
211
|
-
"hover:cl-bg-primary-dark hover:cl-text-white hover:cl-border-primary-dark":
|
|
212
|
-
"cl-border-secondary-default cl-bg-secondary-default cl-text-white":
|
|
213
|
-
"hover:cl-bg-secondary-light hover:cl-border-secondary-light":
|
|
214
|
-
"cl-border-danger-default cl-bg-danger-default cl-text-white":
|
|
215
|
-
"hover:cl-bg-danger-dark hover:cl-border-danger-dark":
|
|
216
|
-
"cl-border-link-default cl-bg-link-default cl-text-white":
|
|
217
|
-
"hover:cl-bg-link-light hover:cl-border-link-light":
|
|
218
|
-
"cl-border-orange-default cl-bg-orange-default cl-opacity-100 cl-text-white":
|
|
219
|
-
"hover:cl-bg-orange-dark hover:cl-border-orange-dark":
|
|
220
|
-
"cl-border-grey-3 cl-bg-grey-3 cl-text-grey-0 hover:cl-bg-grey-3 hover:cl-border-grey-3 cl-cursor-default":
|
|
207
|
+
"cl-cursor-default cl-text-opacity-80": e.loading,
|
|
208
|
+
"cl-py-[5px] cl-px-4 cl-text-sm": e.size === "small",
|
|
209
|
+
"cl-py-[9px] cl-px-8 cl-text-sm": e.size === "medium",
|
|
210
|
+
"cl-px-10 cl-py-4": e.size === "large",
|
|
211
|
+
"cl-bg-white cl-border-grey-0 cl-text-secondary-default": e.colour === "default" && !e.disabled,
|
|
212
|
+
"hover:cl-border-grey-2": e.colour === "default" && !e.disabled && !e.loading,
|
|
213
|
+
"cl-border-primary-default cl-bg-primary-default cl-text-secondary-default": e.colour === "primary" && !e.disabled,
|
|
214
|
+
"hover:cl-bg-primary-dark hover:cl-text-white hover:cl-border-primary-dark": e.colour === "primary" && !e.disabled && !e.loading,
|
|
215
|
+
"cl-border-secondary-default cl-bg-secondary-default cl-text-white": e.colour === "secondary" && !e.disabled,
|
|
216
|
+
"hover:cl-bg-secondary-light hover:cl-border-secondary-light": e.colour === "secondary" && !e.disabled && !e.loading,
|
|
217
|
+
"cl-border-danger-default cl-bg-danger-default cl-text-white": e.colour === "danger" && !e.disabled,
|
|
218
|
+
"hover:cl-bg-danger-dark hover:cl-border-danger-dark": e.colour === "danger" && !e.disabled && !e.loading,
|
|
219
|
+
"cl-border-link-default cl-bg-link-default cl-text-white": e.colour === "blue" && !e.disabled,
|
|
220
|
+
"hover:cl-bg-link-light hover:cl-border-link-light": e.colour === "blue" && !e.disabled && !e.loading,
|
|
221
|
+
"cl-border-orange-default cl-bg-orange-default cl-opacity-100 cl-text-white": e.colour === "orange" && !e.disabled,
|
|
222
|
+
"hover:cl-bg-orange-dark hover:cl-border-orange-dark": e.colour === "orange" && !e.disabled && !e.loading,
|
|
223
|
+
"cl-border-grey-3 cl-bg-grey-3 cl-text-grey-0 hover:cl-bg-grey-3 hover:cl-border-grey-3 cl-cursor-default": e.disabled
|
|
221
224
|
}],
|
|
222
|
-
disabled:
|
|
225
|
+
disabled: e.disabled
|
|
223
226
|
}), [
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
}, [
|
|
227
|
-
D(a.$slots, "default")
|
|
228
|
-
], 2),
|
|
229
|
-
a.loading ? (u(), g("div", {
|
|
230
|
-
key: 0,
|
|
231
|
-
class: O(["cl-absolute cl-bg-black cl-bg-opacity-20 cl-flex cl-h-full cl-items-center cl-justify-center cl-left-0 cl-rounded cl-top-0 cl-w-full", { "cl-bg-opacity-30": a.colour === "default" }])
|
|
232
|
-
}, [
|
|
227
|
+
D(e.$slots, "default"),
|
|
228
|
+
e.loading ? (u(), g("div", mo, [
|
|
233
229
|
q(_e, { class: "!cl-h-6 !cl-w-6 after:!cl-h-6 after:!cl-w-6 cl--translate-x-1/2" })
|
|
234
|
-
]
|
|
230
|
+
])) : U("", !0)
|
|
235
231
|
], 16, fo));
|
|
236
232
|
}
|
|
237
|
-
}),
|
|
233
|
+
}), go = [
|
|
238
234
|
"default",
|
|
239
235
|
"primary",
|
|
240
236
|
"secondary",
|
|
241
237
|
"danger",
|
|
242
238
|
"blue",
|
|
243
239
|
"orange"
|
|
244
|
-
],
|
|
240
|
+
], vo = [
|
|
245
241
|
"small",
|
|
246
242
|
"medium",
|
|
247
243
|
"large"
|
|
248
|
-
],
|
|
244
|
+
], ho = { key: 0 }, bo = /* @__PURE__ */ j({
|
|
249
245
|
__name: "cl-ui-card",
|
|
250
246
|
props: {
|
|
251
247
|
size: { default: "medium" },
|
|
@@ -257,7 +253,7 @@ const _e = /* @__PURE__ */ Te(uo, [["render", po], ["__scopeId", "data-v-a21dc5d
|
|
|
257
253
|
"cl-cursor-pointer hover:cl-shadow-xl hover:cl-border-grey-0": l.hover
|
|
258
254
|
}])
|
|
259
255
|
}, [
|
|
260
|
-
l.$slots.image ? (u(), g("div",
|
|
256
|
+
l.$slots.image ? (u(), g("div", ho, [
|
|
261
257
|
D(l.$slots, "image")
|
|
262
258
|
])) : U("", !0),
|
|
263
259
|
l.$slots.title ? (u(), g("div", {
|
|
@@ -293,23 +289,23 @@ const _e = /* @__PURE__ */ Te(uo, [["render", po], ["__scopeId", "data-v-a21dc5d
|
|
|
293
289
|
], 2)) : U("", !0)
|
|
294
290
|
], 2));
|
|
295
291
|
}
|
|
296
|
-
}),
|
|
292
|
+
}), yo = [
|
|
297
293
|
"small",
|
|
298
294
|
"medium",
|
|
299
295
|
"large"
|
|
300
|
-
],
|
|
296
|
+
], wo = { class: "cl-w-full sm:cl-w-auto" }, ko = { class: "cl-flex cl-flex-nowrap cl-gap-2 cl-text-grey-4 cl-text-xs cl-tracking-widest" }, $o = {
|
|
301
297
|
key: 0,
|
|
302
298
|
class: "cl-self-center"
|
|
303
|
-
},
|
|
299
|
+
}, To = {
|
|
304
300
|
key: 1,
|
|
305
301
|
class: "cl-text-danger-dark"
|
|
306
|
-
},
|
|
302
|
+
}, Co = {
|
|
307
303
|
key: 0,
|
|
308
304
|
class: "cl-pt-1 cl-w-full"
|
|
309
|
-
},
|
|
305
|
+
}, So = { class: "cl-flex cl-flex-col cl-flex-nowrap cl-gap-1 cl-w-full" }, qo = {
|
|
310
306
|
key: 1,
|
|
311
307
|
class: "cl-pt-1 cl-select-none cl-text-xs"
|
|
312
|
-
},
|
|
308
|
+
}, Do = { class: "cl-text-xs cl-w-full" }, Re = /* @__PURE__ */ j({
|
|
313
309
|
__name: "cl-ui-input-layout-wrapper",
|
|
314
310
|
props: {
|
|
315
311
|
showRequiredAsterisk: { type: Boolean },
|
|
@@ -318,29 +314,29 @@ const _e = /* @__PURE__ */ Te(uo, [["render", po], ["__scopeId", "data-v-a21dc5d
|
|
|
318
314
|
},
|
|
319
315
|
setup(o) {
|
|
320
316
|
const l = o, t = $(() => Object.keys(l.errors ?? []).length > 0);
|
|
321
|
-
return (e, r) => (u(), g("div",
|
|
317
|
+
return (e, r) => (u(), g("div", wo, [
|
|
322
318
|
h("div", {
|
|
323
319
|
class: O(["cl-flex", { "cl-flex-col": e.labelPosition === "above", "cl-flex-row-reverse cl-gap-2 cl-items-center cl-justify-end": e.labelPosition === "right" }])
|
|
324
320
|
}, [
|
|
325
|
-
h("div",
|
|
326
|
-
e.$slots.label ? (u(), g("span",
|
|
321
|
+
h("div", ko, [
|
|
322
|
+
e.$slots.label ? (u(), g("span", $o, [
|
|
327
323
|
D(e.$slots, "label")
|
|
328
324
|
])) : U("", !0),
|
|
329
|
-
e.showRequiredAsterisk ? (u(), g("span",
|
|
325
|
+
e.showRequiredAsterisk ? (u(), g("span", To, "*")) : U("", !0)
|
|
330
326
|
]),
|
|
331
327
|
h("div", null, [
|
|
332
328
|
D(e.$slots, "default")
|
|
333
329
|
])
|
|
334
330
|
], 2),
|
|
335
|
-
t.value ? (u(), g("div",
|
|
336
|
-
h("div",
|
|
331
|
+
t.value ? (u(), g("div", Co, [
|
|
332
|
+
h("div", So, [
|
|
337
333
|
(u(!0), g(K, null, _(e.errors, (a, i) => (u(), g("div", {
|
|
338
334
|
key: i,
|
|
339
335
|
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"
|
|
340
336
|
}, R(a), 1))), 128))
|
|
341
337
|
])
|
|
342
|
-
])) : e.errors || e.$slots.helpText ? (u(), g("div",
|
|
343
|
-
h("span",
|
|
338
|
+
])) : e.errors || e.$slots.helpText ? (u(), g("div", qo, [
|
|
339
|
+
h("span", Do, [
|
|
344
340
|
D(e.$slots, "helpText", {}, () => [
|
|
345
341
|
r[0] || (r[0] = ue(" "))
|
|
346
342
|
])
|
|
@@ -348,7 +344,7 @@ const _e = /* @__PURE__ */ Te(uo, [["render", po], ["__scopeId", "data-v-a21dc5d
|
|
|
348
344
|
])) : U("", !0)
|
|
349
345
|
]));
|
|
350
346
|
}
|
|
351
|
-
}),
|
|
347
|
+
}), Oo = ["type", "maxlength", "disabled", "placeholder"], ze = /* @__PURE__ */ j({
|
|
352
348
|
inheritAttrs: !1,
|
|
353
349
|
__name: "cl-ui-input-text",
|
|
354
350
|
props: /* @__PURE__ */ de({
|
|
@@ -393,7 +389,7 @@ const _e = /* @__PURE__ */ Te(uo, [["render", po], ["__scopeId", "data-v-a21dc5d
|
|
|
393
389
|
placeholder: i.placeholder ?? void 0,
|
|
394
390
|
onFocus: d[1] || (d[1] = (b) => r("focus")),
|
|
395
391
|
onBlur: d[2] || (d[2] = (b) => r("blur"))
|
|
396
|
-
}), null, 16,
|
|
392
|
+
}), null, 16, Oo), [
|
|
397
393
|
[Yl, e.value]
|
|
398
394
|
])
|
|
399
395
|
]),
|
|
@@ -420,8 +416,8 @@ function Ul(o) {
|
|
|
420
416
|
return typeof o == "function" ? o() : m(o);
|
|
421
417
|
}
|
|
422
418
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
423
|
-
const
|
|
424
|
-
function
|
|
419
|
+
const Eo = (o) => o != null;
|
|
420
|
+
function Ao(o, l = {}) {
|
|
425
421
|
let t;
|
|
426
422
|
const { immediate: e, ...r } = l, a = V(!1), i = V(!1), d = (p) => t && t.activate(p), b = (p) => t && t.deactivate(p), n = () => {
|
|
427
423
|
t && (t.pause(), i.value = !0);
|
|
@@ -432,7 +428,7 @@ function Eo(o, l = {}) {
|
|
|
432
428
|
return (Array.isArray(p) ? p : [p]).map((w) => {
|
|
433
429
|
const y = Ul(w);
|
|
434
430
|
return typeof y == "string" ? y : Lt(y);
|
|
435
|
-
}).filter(
|
|
431
|
+
}).filter(Eo);
|
|
436
432
|
});
|
|
437
433
|
return te(
|
|
438
434
|
c,
|
|
@@ -457,10 +453,10 @@ function Eo(o, l = {}) {
|
|
|
457
453
|
unpause: s
|
|
458
454
|
};
|
|
459
455
|
}
|
|
460
|
-
const
|
|
456
|
+
const Vo = {
|
|
461
457
|
key: 0,
|
|
462
458
|
class: "cl-mt-1 cl-opacity-60 cl-text-primary-default"
|
|
463
|
-
},
|
|
459
|
+
}, Mo = { class: "cl-overflow-y-auto cl-overscroll-y-none cl-p-2 cl-w-full" }, nt = /* @__PURE__ */ j({
|
|
464
460
|
inheritAttrs: !1,
|
|
465
461
|
__name: "cl-ui-modal",
|
|
466
462
|
props: /* @__PURE__ */ de({
|
|
@@ -474,7 +470,7 @@ const Ao = {
|
|
|
474
470
|
}),
|
|
475
471
|
emits: ["update:visible"],
|
|
476
472
|
setup(o) {
|
|
477
|
-
const l = o, t = ke(o, "visible"), { trapFocus: e } = Jl(l), r = V(), a =
|
|
473
|
+
const l = o, t = ke(o, "visible"), { trapFocus: e } = Jl(l), r = V(), a = Ao(r);
|
|
478
474
|
te([
|
|
479
475
|
e,
|
|
480
476
|
t
|
|
@@ -535,9 +531,9 @@ const Ao = {
|
|
|
535
531
|
}])
|
|
536
532
|
}, [
|
|
537
533
|
D(n.$slots, "title"),
|
|
538
|
-
n.headerColour === "white" ? (u(), g("hr",
|
|
534
|
+
n.headerColour === "white" ? (u(), g("hr", Vo)) : U("", !0)
|
|
539
535
|
], 2),
|
|
540
|
-
h("div",
|
|
536
|
+
h("div", Mo, [
|
|
541
537
|
D(n.$slots, "default", me(be({ close: d })))
|
|
542
538
|
]),
|
|
543
539
|
D(n.$slots, "footer", me(be({ close: d })))
|
|
@@ -551,7 +547,7 @@ const Ao = {
|
|
|
551
547
|
]))
|
|
552
548
|
], 64));
|
|
553
549
|
}
|
|
554
|
-
}),
|
|
550
|
+
}), Io = { class: "cl-bg-grey-0 cl-flex cl-p-1 cl-text-left" }, No = {
|
|
555
551
|
key: 0,
|
|
556
552
|
class: "cl-w-1/2"
|
|
557
553
|
}, tl = /* @__PURE__ */ j({
|
|
@@ -563,8 +559,8 @@ const Ao = {
|
|
|
563
559
|
},
|
|
564
560
|
emits: ["clear-object"],
|
|
565
561
|
setup(o) {
|
|
566
|
-
return (l, t) => (u(), g("div",
|
|
567
|
-
l.additionalText !== "" ? (u(), g("div",
|
|
562
|
+
return (l, t) => (u(), g("div", Io, [
|
|
563
|
+
l.additionalText !== "" ? (u(), g("div", No, R(l.additionalText), 1)) : U("", !0),
|
|
568
564
|
h("div", {
|
|
569
565
|
class: O({
|
|
570
566
|
"cl-w-1/2": l.additionalText !== "",
|
|
@@ -584,10 +580,10 @@ const Ao = {
|
|
|
584
580
|
])
|
|
585
581
|
]));
|
|
586
582
|
}
|
|
587
|
-
}),
|
|
583
|
+
}), Ro = {
|
|
588
584
|
key: 0,
|
|
589
585
|
class: "cl-w-1/2"
|
|
590
|
-
},
|
|
586
|
+
}, Uo = { class: "cl-float-right cl-py-1 cl-text-black" }, zl = /* @__PURE__ */ j({
|
|
591
587
|
__name: "cl-ui-combo-box-selectable",
|
|
592
588
|
props: {
|
|
593
589
|
isCreateNewOption: { type: Boolean, default: !1 },
|
|
@@ -627,14 +623,14 @@ const Ao = {
|
|
|
627
623
|
onMousemove: c[0] || (c[0] = (y) => b(!0)),
|
|
628
624
|
onMouseleave: c[1] || (c[1] = (y) => b(!1))
|
|
629
625
|
}, [
|
|
630
|
-
s.option !== null && ((p = s.option) == null ? void 0 : p.parentId) !== 0 && ((w = s.option) == null ? void 0 : w.parentId) !== void 0 ? (u(), g("div",
|
|
626
|
+
s.option !== null && ((p = s.option) == null ? void 0 : p.parentId) !== 0 && ((w = s.option) == null ? void 0 : w.parentId) !== void 0 ? (u(), g("div", Ro, R(a.value), 1)) : U("", !0),
|
|
631
627
|
h("div", {
|
|
632
628
|
class: O({
|
|
633
629
|
"cl-w-1/2": a.value !== "",
|
|
634
630
|
"cl-w-full": a.value === ""
|
|
635
631
|
})
|
|
636
632
|
}, R(r.value), 3),
|
|
637
|
-
se(h("div",
|
|
633
|
+
se(h("div", Uo, [
|
|
638
634
|
q(m(le), {
|
|
639
635
|
class: "cl-transition-colors",
|
|
640
636
|
icon: "ph:plus"
|
|
@@ -645,10 +641,10 @@ const Ao = {
|
|
|
645
641
|
], 34);
|
|
646
642
|
};
|
|
647
643
|
}
|
|
648
|
-
}),
|
|
644
|
+
}), zo = ["onKeyup"], Bo = {
|
|
649
645
|
key: 0,
|
|
650
646
|
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"
|
|
651
|
-
},
|
|
647
|
+
}, Lo = { class: "cl-bg-white cl-flex cl-p-2 cl-pb-1 cl-sticky cl-top-0 cl-w-full cl-z-10" }, Fo = { class: "cl-inline-block cl-w-full" }, jo = { key: 6 }, Po = /* @__PURE__ */ j({
|
|
652
648
|
__name: "cl-ui-combo-box-search",
|
|
653
649
|
props: {
|
|
654
650
|
loading: { type: Boolean, default: !1 },
|
|
@@ -707,12 +703,12 @@ const Ao = {
|
|
|
707
703
|
d.value = k;
|
|
708
704
|
}
|
|
709
705
|
function I() {
|
|
710
|
-
t.isVisible === !0 && (a.value = "", s(),
|
|
706
|
+
t.isVisible === !0 && (a.value = "", s(), Fe(() => {
|
|
711
707
|
var k, W;
|
|
712
708
|
return (W = (k = n.value) == null ? void 0 : k.querySelector("input")) == null ? void 0 : W.focus();
|
|
713
709
|
}));
|
|
714
710
|
}
|
|
715
|
-
return te(() => t.results, () => S()), te(() => t.errorMessage, () => S()), te(() => t.isVisible, () => I()),
|
|
711
|
+
return te(() => t.results, () => S()), te(() => t.errorMessage, () => S()), te(() => t.isVisible, () => I()), Ge(() => {
|
|
716
712
|
var k;
|
|
717
713
|
return (k = n.value) == null ? void 0 : k.addEventListener("keydown", A);
|
|
718
714
|
}), Cl(() => {
|
|
@@ -733,11 +729,11 @@ const Ao = {
|
|
|
733
729
|
],
|
|
734
730
|
onKeyup: re(x(C, ["prevent", "stop"]), ["enter"])
|
|
735
731
|
}, [
|
|
736
|
-
k.loading ? (u(), g("div",
|
|
732
|
+
k.loading ? (u(), g("div", Bo, [
|
|
737
733
|
q(_e)
|
|
738
734
|
])) : U("", !0),
|
|
739
|
-
h("div",
|
|
740
|
-
h("div",
|
|
735
|
+
h("div", Lo, [
|
|
736
|
+
h("div", Fo, [
|
|
741
737
|
q(ze, {
|
|
742
738
|
id: `cl-ui-combo-box-search-input-${k.objectType}`,
|
|
743
739
|
modelValue: a.value,
|
|
@@ -786,7 +782,7 @@ const Ao = {
|
|
|
786
782
|
onCreateObject: p,
|
|
787
783
|
onOptionHighlighted: P
|
|
788
784
|
}, null, 8, ["text", "selected-index"])) : U("", !0),
|
|
789
|
-
k.errorMessage === "" && k.results !== null ? (u(), g("div",
|
|
785
|
+
k.errorMessage === "" && k.results !== null ? (u(), g("div", jo, [
|
|
790
786
|
(u(!0), g(K, null, _(k.results, (G, B) => (u(), L(zl, {
|
|
791
787
|
key: B,
|
|
792
788
|
option: G,
|
|
@@ -797,10 +793,10 @@ const Ao = {
|
|
|
797
793
|
onOptionHighlighted: P
|
|
798
794
|
}, null, 8, ["option", "index", "selected-index"]))), 128))
|
|
799
795
|
])) : U("", !0)
|
|
800
|
-
], 42,
|
|
796
|
+
], 42, zo)) : U("", !0);
|
|
801
797
|
};
|
|
802
798
|
}
|
|
803
|
-
}),
|
|
799
|
+
}), Ho = { class: "cl-flex" }, Go = { class: "cl-inline-block cl-w-full" }, Zo = { class: "cl-pointer-events-none cl-relative cl-top-0.5" }, Wo = { 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" }, Ko = ["disabled"], Qo = ["disabled"], Yo = { class: "cl-min-h-[16rem] cl-mx-4" }, Jo = { class: "cl-p-2 cl-text-right cl-w-full" }, Xo = /* @__PURE__ */ j({
|
|
804
800
|
inheritAttrs: !1,
|
|
805
801
|
__name: "cl-ui-combo-box",
|
|
806
802
|
props: {
|
|
@@ -823,7 +819,7 @@ const Ao = {
|
|
|
823
819
|
},
|
|
824
820
|
emits: ["focus", "search", "search-parent", "create-object", "create-parent-object", "update:current-object"],
|
|
825
821
|
setup(o, { expose: l, emit: t }) {
|
|
826
|
-
const e = o, r = t, { id: a, ...i } =
|
|
822
|
+
const e = o, r = t, { id: a, ...i } = Ze(), d = a ?? `cl-ui-combo-box-input-${e.objectType}`, b = $(() => e.placeholderText ? e.placeholderText : s("comboBox.emptyHintText", { object: e.objectType })), n = $(() => e.searchHint ? e.searchHint : s("comboBox.searchHint", { object: e.objectType })), { t: s } = ce(), c = V(!1), p = $({
|
|
827
823
|
get: () => e.currentObject,
|
|
828
824
|
set: (F) => r("update:current-object", F)
|
|
829
825
|
}), w = V(null), y = $(() => J()), f = V(""), C = V(""), A = V(), E = V(!0), S = V(!1);
|
|
@@ -925,8 +921,8 @@ const Ao = {
|
|
|
925
921
|
ref_key: "outsideRef",
|
|
926
922
|
ref: Oe
|
|
927
923
|
}, i, { class: "cl-relative" }), [
|
|
928
|
-
h("div",
|
|
929
|
-
h("div",
|
|
924
|
+
h("div", Ho, [
|
|
925
|
+
h("div", Go, [
|
|
930
926
|
q(ze, {
|
|
931
927
|
id: m(d),
|
|
932
928
|
modelValue: y.value,
|
|
@@ -946,8 +942,8 @@ const Ao = {
|
|
|
946
942
|
_: 1
|
|
947
943
|
}, 8, ["id", "modelValue", "class", "placeholder", "disabled"])
|
|
948
944
|
]),
|
|
949
|
-
se(h("div",
|
|
950
|
-
h("div",
|
|
945
|
+
se(h("div", Zo, [
|
|
946
|
+
h("div", Wo, [
|
|
951
947
|
ue(R(m(s)("comboBox.required")) + " ", 1),
|
|
952
948
|
q(m(le), {
|
|
953
949
|
class: "cl-ml-1 cl-mt-[3px]",
|
|
@@ -970,7 +966,7 @@ const Ao = {
|
|
|
970
966
|
icon: "ph:caret-up-bold",
|
|
971
967
|
class: "cl-ml-[4px] cl-mt-[9px]"
|
|
972
968
|
})
|
|
973
|
-
], 10,
|
|
969
|
+
], 10, Qo)) : (u(), g("div", {
|
|
974
970
|
key: 0,
|
|
975
971
|
class: O(["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]", {
|
|
976
972
|
"cl-cursor-default cl-bg-off-white": F.disabled,
|
|
@@ -983,14 +979,14 @@ const Ao = {
|
|
|
983
979
|
icon: "ph:caret-down-bold",
|
|
984
980
|
class: "cl-ml-[4px] cl-mt-[9px]"
|
|
985
981
|
})
|
|
986
|
-
], 10,
|
|
982
|
+
], 10, Ko))
|
|
987
983
|
]),
|
|
988
984
|
q(nt, { size: "small" }, {
|
|
989
985
|
title: M(() => [
|
|
990
986
|
ue(R(m(s)("comboBox.createTitle", { object: F.objectType })), 1)
|
|
991
987
|
]),
|
|
992
988
|
trigger: M(({ open: v }) => [
|
|
993
|
-
se(q(
|
|
989
|
+
se(q(Po, {
|
|
994
990
|
"can-create-new-object": F.canCreateNewObject,
|
|
995
991
|
"can-clear-selected-object": F.canClearSelectedObject,
|
|
996
992
|
loading: F.loading,
|
|
@@ -1014,7 +1010,7 @@ const Ao = {
|
|
|
1014
1010
|
])
|
|
1015
1011
|
]),
|
|
1016
1012
|
footer: M(({ close: v }) => [
|
|
1017
|
-
h("div",
|
|
1013
|
+
h("div", Jo, [
|
|
1018
1014
|
q(Ce, {
|
|
1019
1015
|
class: "cl-mr-3",
|
|
1020
1016
|
colour: "default",
|
|
@@ -1042,7 +1038,7 @@ const Ao = {
|
|
|
1042
1038
|
])
|
|
1043
1039
|
]),
|
|
1044
1040
|
default: M(() => [
|
|
1045
|
-
h("div",
|
|
1041
|
+
h("div", Yo, [
|
|
1046
1042
|
F.objectParentType ? (u(), L(H, {
|
|
1047
1043
|
key: 0,
|
|
1048
1044
|
"current-object": w.value,
|
|
@@ -1076,43 +1072,43 @@ const Ao = {
|
|
|
1076
1072
|
};
|
|
1077
1073
|
}
|
|
1078
1074
|
});
|
|
1079
|
-
function
|
|
1075
|
+
function xo(o) {
|
|
1080
1076
|
return typeof o.id == "number" && typeof o.name == "string";
|
|
1081
1077
|
}
|
|
1082
|
-
function
|
|
1078
|
+
function _o(o) {
|
|
1083
1079
|
return typeof o.name == "string";
|
|
1084
1080
|
}
|
|
1085
|
-
const
|
|
1081
|
+
const ea = {}, la = { class: "cl-flex cl-flex-wrap cl-left-0 cl-mt-4 cl-w-full" }, ta = {
|
|
1086
1082
|
key: 0,
|
|
1087
1083
|
class: "cl-w-full"
|
|
1088
|
-
},
|
|
1084
|
+
}, oa = {
|
|
1089
1085
|
key: 1,
|
|
1090
1086
|
class: "cl-leading-10 cl-text-sm cl-w-full"
|
|
1091
|
-
},
|
|
1092
|
-
function
|
|
1093
|
-
return u(), g("div",
|
|
1094
|
-
o.$slots.default ? (u(), g("div",
|
|
1087
|
+
}, aa = { class: "cl-float-left" }, na = { class: "cl-float-right" };
|
|
1088
|
+
function sa(o, l) {
|
|
1089
|
+
return u(), g("div", la, [
|
|
1090
|
+
o.$slots.default ? (u(), g("div", ta, [
|
|
1095
1091
|
D(o.$slots, "default")
|
|
1096
1092
|
])) : U("", !0),
|
|
1097
|
-
o.$slots.left || o.$slots.right ? (u(), g("div",
|
|
1098
|
-
h("span",
|
|
1093
|
+
o.$slots.left || o.$slots.right ? (u(), g("div", oa, [
|
|
1094
|
+
h("span", aa, [
|
|
1099
1095
|
D(o.$slots, "left")
|
|
1100
1096
|
]),
|
|
1101
|
-
h("span",
|
|
1097
|
+
h("span", na, [
|
|
1102
1098
|
D(o.$slots, "right")
|
|
1103
1099
|
])
|
|
1104
1100
|
])) : U("", !0)
|
|
1105
1101
|
]);
|
|
1106
1102
|
}
|
|
1107
|
-
const
|
|
1108
|
-
function
|
|
1109
|
-
return u(), g("div",
|
|
1103
|
+
const ra = /* @__PURE__ */ Te(ea, [["render", sa]]), ul = Symbol(), ia = {}, ua = { class: "cl-animate-pulse cl-bg-off-white cl-h-[33px] cl-px-20 cl-rounded-md" };
|
|
1104
|
+
function ca(o, l) {
|
|
1105
|
+
return u(), g("div", ua);
|
|
1110
1106
|
}
|
|
1111
|
-
const
|
|
1112
|
-
function
|
|
1113
|
-
return u(), g("div",
|
|
1107
|
+
const da = /* @__PURE__ */ Te(ia, [["render", ca]]), pa = {}, fa = { class: "cl-animate-pulse cl-bg-off-white cl-h-8 cl-rounded-md" };
|
|
1108
|
+
function ma(o, l) {
|
|
1109
|
+
return u(), g("div", fa);
|
|
1114
1110
|
}
|
|
1115
|
-
const ql = /* @__PURE__ */ Te(
|
|
1111
|
+
const ql = /* @__PURE__ */ Te(pa, [["render", ma]]), yl = /* @__PURE__ */ j({
|
|
1116
1112
|
inheritAttrs: !1,
|
|
1117
1113
|
__name: "cl-ui-skeleton-text",
|
|
1118
1114
|
props: {
|
|
@@ -1149,13 +1145,13 @@ function Bl(o) {
|
|
|
1149
1145
|
function fl(o) {
|
|
1150
1146
|
return o.some((l) => Xe(l));
|
|
1151
1147
|
}
|
|
1152
|
-
const
|
|
1148
|
+
const ga = {
|
|
1153
1149
|
key: 0,
|
|
1154
1150
|
class: "cl-flex cl-gap-2 cl-justify-between cl-mb-2 cl-w-full"
|
|
1155
|
-
},
|
|
1151
|
+
}, va = { key: 1 }, ha = { 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" }, ba = { class: "cl-basis-full cl-col-span-2 cl-flex-grow lg:cl-basis-0" }, ya = {
|
|
1156
1152
|
key: 2,
|
|
1157
1153
|
class: "cl-flex-1 lg:cl-block lg:cl-flex-none"
|
|
1158
|
-
},
|
|
1154
|
+
}, wa = /* @__PURE__ */ j({
|
|
1159
1155
|
__name: "cl-ui-grid-action-row",
|
|
1160
1156
|
props: {
|
|
1161
1157
|
editMode: { type: Boolean },
|
|
@@ -1170,12 +1166,12 @@ const ma = {
|
|
|
1170
1166
|
emits: ["update:edit-mode", "update:filterPanelOpen", "clear-filters"],
|
|
1171
1167
|
setup(o) {
|
|
1172
1168
|
const l = o, { t } = ce(), e = $(() => l.request.filters.some((a) => a.filterValue !== "")), r = il("cl-ui-grid-id") ?? "cl-ui-grid-filter";
|
|
1173
|
-
return (a, i) => a.initialLoad && (a.$slots["additional-grid-actions"] || m(fl)(a.columns) || m(Bl)(a.columns)) ? (u(), g("div",
|
|
1174
|
-
(u(), g(K, null, _(2, (d) => q(m(
|
|
1169
|
+
return (a, i) => a.initialLoad && (a.$slots["additional-grid-actions"] || m(fl)(a.columns) || m(Bl)(a.columns)) ? (u(), g("div", ga, [
|
|
1170
|
+
(u(), g(K, null, _(2, (d) => q(m(da), {
|
|
1175
1171
|
key: d,
|
|
1176
1172
|
class: "cl-flex-1 lg:cl-flex-initial"
|
|
1177
1173
|
})), 64))
|
|
1178
|
-
])) : (u(), g("div",
|
|
1174
|
+
])) : (u(), g("div", va, [
|
|
1179
1175
|
h("div", {
|
|
1180
1176
|
class: O(["cl-mb-2 cl-text-sm lg:cl-hidden", {
|
|
1181
1177
|
"cl-hidden": a.options.hideGridMobileView
|
|
@@ -1183,8 +1179,8 @@ const ma = {
|
|
|
1183
1179
|
}, [
|
|
1184
1180
|
h("strong", null, R(m(t)("grid.gridTools")), 1)
|
|
1185
1181
|
], 2),
|
|
1186
|
-
h("div",
|
|
1187
|
-
h("div",
|
|
1182
|
+
h("div", ha, [
|
|
1183
|
+
h("div", ba, [
|
|
1188
1184
|
D(a.$slots, "additional-grid-actions", me(be({
|
|
1189
1185
|
loading: a.loading,
|
|
1190
1186
|
editMode: a.options.forceEditMode || a.editMode
|
|
@@ -1225,7 +1221,7 @@ const ma = {
|
|
|
1225
1221
|
]),
|
|
1226
1222
|
_: 1
|
|
1227
1223
|
}, 8, ["disabled"])) : U("", !0),
|
|
1228
|
-
a.options.hideViewManager === !1 ? (u(), g("div",
|
|
1224
|
+
a.options.hideViewManager === !1 ? (u(), g("div", ya, [
|
|
1229
1225
|
D(a.$slots, "view-manager")
|
|
1230
1226
|
])) : U("", !0),
|
|
1231
1227
|
m(fl)(a.columns) || m(Bl)(a.columns) ? (u(), g(K, { key: 3 }, [
|
|
@@ -1264,7 +1260,7 @@ const ma = {
|
|
|
1264
1260
|
])
|
|
1265
1261
|
]));
|
|
1266
1262
|
}
|
|
1267
|
-
}),
|
|
1263
|
+
}), ka = ["for"], $a = ["required", "disabled"], Ta = /* @__PURE__ */ j({
|
|
1268
1264
|
inheritAttrs: !1,
|
|
1269
1265
|
__name: "cl-ui-input-checkbox",
|
|
1270
1266
|
props: /* @__PURE__ */ de({
|
|
@@ -1307,7 +1303,7 @@ const ma = {
|
|
|
1307
1303
|
}, ["stop", "prevent"]), ["enter"])),
|
|
1308
1304
|
onFocus: d[2] || (d[2] = (b) => r("focus")),
|
|
1309
1305
|
onBlur: d[3] || (d[3] = (b) => r("blur"))
|
|
1310
|
-
}), null, 16,
|
|
1306
|
+
}), null, 16, $a), [
|
|
1311
1307
|
[At, e.value]
|
|
1312
1308
|
])
|
|
1313
1309
|
]),
|
|
@@ -1320,7 +1316,7 @@ const ma = {
|
|
|
1320
1316
|
for: i.$attrs.id ? i.$attrs.id.toString() : ""
|
|
1321
1317
|
}, [
|
|
1322
1318
|
D(i.$slots, "default", {}, void 0, !0)
|
|
1323
|
-
], 8,
|
|
1319
|
+
], 8, ka)
|
|
1324
1320
|
]),
|
|
1325
1321
|
key: "0"
|
|
1326
1322
|
} : void 0,
|
|
@@ -1333,9 +1329,9 @@ const ma = {
|
|
|
1333
1329
|
} : void 0
|
|
1334
1330
|
]), 1032, ["show-required-asterisk", "errors"]));
|
|
1335
1331
|
}
|
|
1336
|
-
}), cl = /* @__PURE__ */ Te(
|
|
1332
|
+
}), cl = /* @__PURE__ */ Te(Ta, [["__scopeId", "data-v-96a278cf"]]);
|
|
1337
1333
|
var ae = /* @__PURE__ */ ((o) => (o.CURRENCY = "currency", o.PERCENTAGE = "percentage", o.INTEGER = "integer", o.DECIMAL = "decimal", o.MULTIPLIER = "multiplier", o))(ae || {}), ie = /* @__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))(ie || {});
|
|
1338
|
-
const
|
|
1334
|
+
const Ca = {
|
|
1339
1335
|
"en-GB": {
|
|
1340
1336
|
comboBox: {
|
|
1341
1337
|
emptyHintText: "Choose a {object}",
|
|
@@ -1442,7 +1438,7 @@ const Ta = {
|
|
|
1442
1438
|
invalidFileType: "{filename} is not a valid file type."
|
|
1443
1439
|
}
|
|
1444
1440
|
}
|
|
1445
|
-
},
|
|
1441
|
+
}, Sa = {
|
|
1446
1442
|
"en-GB": {
|
|
1447
1443
|
[ae.PERCENTAGE]: {
|
|
1448
1444
|
style: "percent",
|
|
@@ -1465,7 +1461,7 @@ const Ta = {
|
|
|
1465
1461
|
minimumFractionDigits: 2
|
|
1466
1462
|
}
|
|
1467
1463
|
}
|
|
1468
|
-
},
|
|
1464
|
+
}, qa = {
|
|
1469
1465
|
"en-GB": {
|
|
1470
1466
|
[ie.SHORT_DATE]: {
|
|
1471
1467
|
day: "numeric",
|
|
@@ -1515,27 +1511,27 @@ const Ta = {
|
|
|
1515
1511
|
}, qe = Wt({
|
|
1516
1512
|
locale: "en-GB",
|
|
1517
1513
|
fallbackLocale: "en-GB",
|
|
1518
|
-
messages:
|
|
1519
|
-
numberFormats:
|
|
1520
|
-
datetimeFormats:
|
|
1514
|
+
messages: Ca,
|
|
1515
|
+
numberFormats: Sa,
|
|
1516
|
+
datetimeFormats: qa,
|
|
1521
1517
|
useScope: "global",
|
|
1522
1518
|
missingWarn: !1,
|
|
1523
1519
|
fallbackWarn: !1,
|
|
1524
1520
|
warnHtmlMessage: !1
|
|
1525
1521
|
});
|
|
1526
|
-
function Qu(o, l) {
|
|
1527
|
-
return qe.global.mergeLocaleMessage(o, l), je();
|
|
1528
|
-
}
|
|
1529
1522
|
function Yu(o, l) {
|
|
1530
|
-
return qe.global.
|
|
1523
|
+
return qe.global.mergeLocaleMessage(o, l), Fe();
|
|
1531
1524
|
}
|
|
1532
1525
|
function Ju(o, l) {
|
|
1533
|
-
return qe.global.
|
|
1526
|
+
return qe.global.mergeNumberFormat(o, l), Fe();
|
|
1534
1527
|
}
|
|
1535
|
-
function Xu(o) {
|
|
1536
|
-
return qe.global.
|
|
1528
|
+
function Xu(o, l) {
|
|
1529
|
+
return qe.global.mergeDateTimeFormat(o, l), Fe();
|
|
1537
1530
|
}
|
|
1538
|
-
|
|
1531
|
+
function xu(o) {
|
|
1532
|
+
return qe.global.locale.value = o, Fe();
|
|
1533
|
+
}
|
|
1534
|
+
const { locale: Da, getNumberFormat: Oa } = qe.global, dl = ae.DECIMAL;
|
|
1539
1535
|
function De(o) {
|
|
1540
1536
|
return Me(o, ae.DECIMAL, { additionalOptions: {
|
|
1541
1537
|
minimumFractionDigits: 0,
|
|
@@ -1550,10 +1546,10 @@ function ml(o, l) {
|
|
|
1550
1546
|
}
|
|
1551
1547
|
function Me(o, l, t) {
|
|
1552
1548
|
if (pl(l)) {
|
|
1553
|
-
const e =
|
|
1549
|
+
const e = He(dl, t);
|
|
1554
1550
|
return l.replace(/\{0\}/g, Fl(o, e) ?? "");
|
|
1555
1551
|
} else {
|
|
1556
|
-
const e =
|
|
1552
|
+
const e = He(Ol(l), t);
|
|
1557
1553
|
let r = Fl(o, e) ?? "";
|
|
1558
1554
|
if (l === "currency-without-symbol") {
|
|
1559
1555
|
const a = el(e);
|
|
@@ -1567,19 +1563,19 @@ function Me(o, l, t) {
|
|
|
1567
1563
|
}
|
|
1568
1564
|
function st(o, l, t) {
|
|
1569
1565
|
if (pl(l)) {
|
|
1570
|
-
const e =
|
|
1566
|
+
const e = Aa(o, l);
|
|
1571
1567
|
return Ll(e ?? o, dl, t);
|
|
1572
1568
|
} else
|
|
1573
1569
|
return Ll(o, Ol(l), t);
|
|
1574
1570
|
}
|
|
1575
1571
|
function Dl(o, l) {
|
|
1576
|
-
return pl(o) ?
|
|
1572
|
+
return pl(o) ? He(dl, l) : He(Ol(o), l);
|
|
1577
1573
|
}
|
|
1578
|
-
function
|
|
1574
|
+
function Ea(o, l, t) {
|
|
1579
1575
|
const e = el(t);
|
|
1580
1576
|
return !!e && (o.includes(Ie(e, 10000.11111, l)[0]) || o.includes(Ie(e, -10000.11111, l)[0]));
|
|
1581
1577
|
}
|
|
1582
|
-
function
|
|
1578
|
+
function Aa(o, l) {
|
|
1583
1579
|
let t = null;
|
|
1584
1580
|
o = `!${o}!`;
|
|
1585
1581
|
const e = `!${l}!`.split("{0}");
|
|
@@ -1599,7 +1595,7 @@ function Ea(o, l) {
|
|
|
1599
1595
|
function Ll(o, l, t) {
|
|
1600
1596
|
if (!o)
|
|
1601
1597
|
return NaN;
|
|
1602
|
-
const e =
|
|
1598
|
+
const e = He(l, t), r = el(e);
|
|
1603
1599
|
if (r === null)
|
|
1604
1600
|
return NaN;
|
|
1605
1601
|
const a = [
|
|
@@ -1639,8 +1635,8 @@ function el(o) {
|
|
|
1639
1635
|
return console.error(l), null;
|
|
1640
1636
|
}
|
|
1641
1637
|
}
|
|
1642
|
-
function
|
|
1643
|
-
const t = Il(l == null ? void 0 : l.locale) || m(
|
|
1638
|
+
function He(o, l) {
|
|
1639
|
+
const t = Il(l == null ? void 0 : l.locale) || m(Da), e = Oa(t), r = we(Il(l == null ? void 0 : l.additionalOptions) ?? {});
|
|
1644
1640
|
let a = "decimal";
|
|
1645
1641
|
switch (o) {
|
|
1646
1642
|
case ae.PERCENTAGE:
|
|
@@ -1659,22 +1655,22 @@ function Ge(o, l) {
|
|
|
1659
1655
|
};
|
|
1660
1656
|
}
|
|
1661
1657
|
function Ol(o) {
|
|
1662
|
-
return
|
|
1658
|
+
return Va(o) ? o : ae.CURRENCY;
|
|
1663
1659
|
}
|
|
1664
1660
|
function pl(o) {
|
|
1665
1661
|
return o.includes("{0}");
|
|
1666
1662
|
}
|
|
1667
|
-
function
|
|
1663
|
+
function Va(o) {
|
|
1668
1664
|
return !pl(o) && o !== "currency-without-symbol";
|
|
1669
1665
|
}
|
|
1670
|
-
function
|
|
1671
|
-
const t =
|
|
1666
|
+
function Ma(o, l) {
|
|
1667
|
+
const t = He(dl, l), e = el(t);
|
|
1672
1668
|
if (e === null)
|
|
1673
1669
|
return o;
|
|
1674
1670
|
const r = Ie(e, 10000.11111, "group");
|
|
1675
1671
|
return Ue(o, r, "", o.length, !0);
|
|
1676
1672
|
}
|
|
1677
|
-
function
|
|
1673
|
+
function Ia(o) {
|
|
1678
1674
|
if (o.startsWith("ClUi"))
|
|
1679
1675
|
return {
|
|
1680
1676
|
name: `clUi${o.slice(4)}`,
|
|
@@ -1686,11 +1682,11 @@ function Ma(o) {
|
|
|
1686
1682
|
from: "@iconify/vue"
|
|
1687
1683
|
};
|
|
1688
1684
|
}
|
|
1689
|
-
function
|
|
1690
|
-
return
|
|
1685
|
+
function _u() {
|
|
1686
|
+
return Ia;
|
|
1691
1687
|
}
|
|
1692
1688
|
const { t: Ae } = qe.global;
|
|
1693
|
-
function
|
|
1689
|
+
function Na(o, l, t, e, r) {
|
|
1694
1690
|
return new Promise((a) => {
|
|
1695
1691
|
let i = {
|
|
1696
1692
|
valid: !1,
|
|
@@ -1745,7 +1741,7 @@ function Ia(o, l, t, e, r) {
|
|
|
1745
1741
|
a(i);
|
|
1746
1742
|
});
|
|
1747
1743
|
}
|
|
1748
|
-
function
|
|
1744
|
+
function Ra(o, l, t, e, r) {
|
|
1749
1745
|
return new Promise((a) => {
|
|
1750
1746
|
let i = {
|
|
1751
1747
|
valid: !1,
|
|
@@ -1800,13 +1796,13 @@ function Na(o, l, t, e, r) {
|
|
|
1800
1796
|
a(i);
|
|
1801
1797
|
});
|
|
1802
1798
|
}
|
|
1803
|
-
function
|
|
1799
|
+
function Ua(o, l) {
|
|
1804
1800
|
return new Promise((t) => {
|
|
1805
1801
|
const e = l != null && l !== "" && l.toString().trim() !== "", r = Ve(e, Ae("input.valueIsRequired", { label: o }));
|
|
1806
1802
|
t(r);
|
|
1807
1803
|
});
|
|
1808
1804
|
}
|
|
1809
|
-
function
|
|
1805
|
+
function za(o, l) {
|
|
1810
1806
|
return new Promise((t) => {
|
|
1811
1807
|
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 = Ve(r, Ae("input.valueNotValidEmail", { label: o }));
|
|
1812
1808
|
t(a);
|
|
@@ -1818,16 +1814,16 @@ function Ve(o, l) {
|
|
|
1818
1814
|
message: o ? "" : l
|
|
1819
1815
|
};
|
|
1820
1816
|
}
|
|
1821
|
-
const
|
|
1817
|
+
const Ba = {
|
|
1822
1818
|
key: 3,
|
|
1823
1819
|
class: "cl-inline-block cl-whitespace-nowrap"
|
|
1824
|
-
},
|
|
1820
|
+
}, La = {
|
|
1825
1821
|
key: 4,
|
|
1826
1822
|
class: "cl-inline-block cl-whitespace-nowrap"
|
|
1827
|
-
},
|
|
1823
|
+
}, Fa = {
|
|
1828
1824
|
key: 5,
|
|
1829
1825
|
class: "cl-inline-block cl-whitespace-nowrap"
|
|
1830
|
-
},
|
|
1826
|
+
}, ja = ["title", "innerHTML"], jl = /* @__PURE__ */ j({
|
|
1831
1827
|
__name: "cl-ui-grid-cell-value",
|
|
1832
1828
|
props: {
|
|
1833
1829
|
data: {},
|
|
@@ -1908,15 +1904,15 @@ const za = {
|
|
|
1908
1904
|
], 64)) : (u(), g(K, { key: 2 }, [
|
|
1909
1905
|
ue(R(i(n.data[n.column.field], m(ie).DATETIME)), 1)
|
|
1910
1906
|
], 64))
|
|
1911
|
-
], 64)) : n.column.type === "list" && n.column.field !== void 0 && n.column.listEntries !== void 0 ? (u(), g("span",
|
|
1907
|
+
], 64)) : n.column.type === "list" && n.column.field !== void 0 && n.column.listEntries !== void 0 ? (u(), g("span", Ba, R(m(e)(((c = n.column.listEntries.find((p) => p.value === n.data[n.column.field])) == null ? void 0 : c.translationKey) ?? "")), 1)) : n.column.type === "number" && n.column.field !== void 0 ? (u(), g("span", La, R(b(n.data[n.column.field], m(r))), 1)) : n.column.field !== void 0 ? (u(), g("span", Fa, [
|
|
1912
1908
|
h("span", {
|
|
1913
1909
|
title: a.value ? n.data[n.column.field] : void 0,
|
|
1914
1910
|
innerHTML: d()
|
|
1915
|
-
}, null, 8,
|
|
1911
|
+
}, null, 8, ja)
|
|
1916
1912
|
])) : U("", !0);
|
|
1917
1913
|
};
|
|
1918
1914
|
}
|
|
1919
|
-
}),
|
|
1915
|
+
}), Pa = /* @__PURE__ */ j({
|
|
1920
1916
|
__name: "cl-ui-grid-cell",
|
|
1921
1917
|
props: {
|
|
1922
1918
|
data: {},
|
|
@@ -1996,7 +1992,7 @@ const za = {
|
|
|
1996
1992
|
}, 1032, ["column", "data", "time-zone", "search-value", "row-index"]))
|
|
1997
1993
|
], 2));
|
|
1998
1994
|
}
|
|
1999
|
-
}),
|
|
1995
|
+
}), Ha = /* @__PURE__ */ j({
|
|
2000
1996
|
__name: "cl-ui-grid-row",
|
|
2001
1997
|
props: {
|
|
2002
1998
|
data: {},
|
|
@@ -2010,7 +2006,7 @@ const za = {
|
|
|
2010
2006
|
emits: ["cell-focus", "cell-edit", "cell-undo"],
|
|
2011
2007
|
setup(o) {
|
|
2012
2008
|
return (l, t) => (u(), g("tr", null, [
|
|
2013
|
-
(u(!0), g(K, null, _(l.columns, (e, r) => (u(), L(
|
|
2009
|
+
(u(!0), g(K, null, _(l.columns, (e, r) => (u(), L(Pa, {
|
|
2014
2010
|
key: r,
|
|
2015
2011
|
data: l.data,
|
|
2016
2012
|
column: e,
|
|
@@ -2032,13 +2028,13 @@ const za = {
|
|
|
2032
2028
|
]), 1032, ["data", "column", "options", "time-zone", "search-value", "edit-mode", "row-index", "onEdit", "onUndo"]))), 128))
|
|
2033
2029
|
]));
|
|
2034
2030
|
}
|
|
2035
|
-
}),
|
|
2031
|
+
}), Ga = ["colspan"], Za = ["colspan"], Wa = { key: 2 }, Ka = ["colspan"], Qa = { class: "cl-flex cl-flex-wrap cl-justify-center cl-text-center cl-text-sm cl-w-full" }, Ya = { key: 0 }, Ja = {
|
|
2036
2032
|
key: 1,
|
|
2037
2033
|
class: "cl-mt-6 cl-w-full"
|
|
2038
|
-
},
|
|
2034
|
+
}, Xa = {
|
|
2039
2035
|
key: 2,
|
|
2040
2036
|
class: "cl-mt-4"
|
|
2041
|
-
},
|
|
2037
|
+
}, xa = { class: "cl-mb-2 cl-w-full" }, _a = /* @__PURE__ */ j({
|
|
2042
2038
|
__name: "cl-ui-grid-body",
|
|
2043
2039
|
props: {
|
|
2044
2040
|
columns: {},
|
|
@@ -2118,10 +2114,10 @@ const za = {
|
|
|
2118
2114
|
"cl-border-t cl-border-off-white": E % 2 === 0
|
|
2119
2115
|
}
|
|
2120
2116
|
)
|
|
2121
|
-
}, " ", 10,
|
|
2117
|
+
}, " ", 10, Ga)
|
|
2122
2118
|
]))), 128)) : U("", !0),
|
|
2123
2119
|
f.data && ((A = f.data.results) != null && A.length) && !f.initialLoad ? (u(), g(K, { key: 1 }, [
|
|
2124
|
-
(u(!0), g(K, null, _(f.data.results, (E, S) => (u(), L(
|
|
2120
|
+
(u(!0), g(K, null, _(f.data.results, (E, S) => (u(), L(Ha, {
|
|
2125
2121
|
key: S,
|
|
2126
2122
|
data: E,
|
|
2127
2123
|
options: f.options,
|
|
@@ -2164,18 +2160,18 @@ const za = {
|
|
|
2164
2160
|
h("td", {
|
|
2165
2161
|
colspan: f.columns.length,
|
|
2166
2162
|
class: "cl-gap-1 cl-py-2 cl-text-xs lg:cl-px-1"
|
|
2167
|
-
}, " ", 8,
|
|
2163
|
+
}, " ", 8, Za)
|
|
2168
2164
|
], 2))), 128)) : U("", !0)
|
|
2169
|
-
], 64)) : f.loading ? U("", !0) : (u(), g("tr",
|
|
2165
|
+
], 64)) : f.loading ? U("", !0) : (u(), g("tr", Wa, [
|
|
2170
2166
|
h("td", {
|
|
2171
2167
|
colspan: f.columns.length
|
|
2172
2168
|
}, [
|
|
2173
|
-
h("div",
|
|
2174
|
-
f.$slots.noData && f.request.filters.some((E) => E.filterValue !== "") === !1 ? (u(), g("div",
|
|
2169
|
+
h("div", Qa, [
|
|
2170
|
+
f.$slots.noData && f.request.filters.some((E) => E.filterValue !== "") === !1 ? (u(), g("div", Ya, [
|
|
2175
2171
|
D(f.$slots, "noData")
|
|
2176
|
-
])) : (u(), g("strong",
|
|
2177
|
-
f.request.filters.some((E) => E.filterValue !== "") ? (u(), g("div",
|
|
2178
|
-
h("div",
|
|
2172
|
+
])) : (u(), g("strong", Ja, R(m(r)("grid.noData")), 1)),
|
|
2173
|
+
f.request.filters.some((E) => E.filterValue !== "") ? (u(), g("div", Xa, [
|
|
2174
|
+
h("div", xa, R(m(r)("grid.noDataFiltersPresent")), 1),
|
|
2179
2175
|
q(Ce, {
|
|
2180
2176
|
size: "small",
|
|
2181
2177
|
colour: "danger",
|
|
@@ -2188,12 +2184,12 @@ const za = {
|
|
|
2188
2184
|
})
|
|
2189
2185
|
])) : U("", !0)
|
|
2190
2186
|
])
|
|
2191
|
-
], 8,
|
|
2187
|
+
], 8, Ka)
|
|
2192
2188
|
]))
|
|
2193
2189
|
]);
|
|
2194
2190
|
};
|
|
2195
2191
|
}
|
|
2196
|
-
}),
|
|
2192
|
+
}), en = ["value", "inputmode", "disabled", "placeholder"], ln = { 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" }, tn = ["disabled"], on = ["disabled"], ll = /* @__PURE__ */ j({
|
|
2197
2193
|
inheritAttrs: !1,
|
|
2198
2194
|
__name: "cl-ui-input-number",
|
|
2199
2195
|
props: /* @__PURE__ */ de({
|
|
@@ -2217,7 +2213,7 @@ const za = {
|
|
|
2217
2213
|
setup(o, { expose: l, emit: t }) {
|
|
2218
2214
|
const e = o, r = ke(o, "modelValue"), a = t, i = V(0), d = V(), b = V(), { isOutside: n } = jt(b), { focused: s } = Pt(d), c = $(() => e.showArrows && n.value === !1);
|
|
2219
2215
|
te(s, () => {
|
|
2220
|
-
s.value ? (A.value =
|
|
2216
|
+
s.value ? (A.value = Ma(P.value, {
|
|
2221
2217
|
locale: e.locale
|
|
2222
2218
|
}), E.value = !1, a("focus")) : (E.value && k(P.value, !0), A.value = void 0, E.value = !1, a("blur"));
|
|
2223
2219
|
});
|
|
@@ -2249,7 +2245,7 @@ const za = {
|
|
|
2249
2245
|
r.value = null;
|
|
2250
2246
|
else if (B !== "") {
|
|
2251
2247
|
let $e = typeof B == "number" ? B : oe(B);
|
|
2252
|
-
ee && e.format === ae.PERCENTAGE && !
|
|
2248
|
+
ee && e.format === ae.PERCENTAGE && !Ea(P.value, "percentSign", w.value) && ($e = $e / f.value), isNaN($e) === !1 && (r.value = I(Math.round($e * C.value) / C.value));
|
|
2253
2249
|
}
|
|
2254
2250
|
}
|
|
2255
2251
|
function W(B) {
|
|
@@ -2307,8 +2303,8 @@ const za = {
|
|
|
2307
2303
|
ee[2] || (ee[2] = re(x((z) => G(!0), ["stop", "prevent"]), ["down"])),
|
|
2308
2304
|
ee[3] || (ee[3] = re(x((z) => G(!1), ["stop", "prevent"]), ["up"]))
|
|
2309
2305
|
]
|
|
2310
|
-
}), null, 16,
|
|
2311
|
-
se(h("div",
|
|
2306
|
+
}), null, 16, en)),
|
|
2307
|
+
se(h("div", ln, [
|
|
2312
2308
|
h("button", {
|
|
2313
2309
|
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
2310
|
disabled: B.disabled,
|
|
@@ -2319,7 +2315,7 @@ const za = {
|
|
|
2319
2315
|
]
|
|
2320
2316
|
}, [
|
|
2321
2317
|
q($e, { icon: "ph:caret-up-bold" })
|
|
2322
|
-
], 40,
|
|
2318
|
+
], 40, tn),
|
|
2323
2319
|
h("button", {
|
|
2324
2320
|
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",
|
|
2325
2321
|
disabled: B.disabled,
|
|
@@ -2330,7 +2326,7 @@ const za = {
|
|
|
2330
2326
|
]
|
|
2331
2327
|
}, [
|
|
2332
2328
|
q($e, { icon: "ph:caret-down-bold" })
|
|
2333
|
-
], 40,
|
|
2329
|
+
], 40, on)
|
|
2334
2330
|
], 512), [
|
|
2335
2331
|
[fe, c.value && !B.disabled]
|
|
2336
2332
|
])
|
|
@@ -2355,13 +2351,13 @@ const za = {
|
|
|
2355
2351
|
]), 1032, ["show-required-asterisk", "errors"]);
|
|
2356
2352
|
};
|
|
2357
2353
|
}
|
|
2358
|
-
}),
|
|
2354
|
+
}), an = {
|
|
2359
2355
|
key: 0,
|
|
2360
2356
|
class: "cl-flex cl-flex-col lg:cl-flex-row lg:cl-gap-2"
|
|
2361
|
-
},
|
|
2357
|
+
}, nn = { 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" }, sn = { class: "cl-border cl-border-off-white cl-mt-2 cl-p-2 cl-rounded-lg lg:cl-px-4 lg:cl-py-3" }, rn = ["inert"], un = { 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" }, cn = { class: "cl-flex cl-flex-wrap cl-gap-x-4 cl-gap-y-2 cl-items-center cl-justify-between cl-w-full" }, dn = { class: "cl-flex cl-flex-wrap cl-gap-x-4" }, pn = { class: "cl-flex cl-flex-col lg:cl-flex-row" }, fn = { class: "cl-mr-2 cl-text-grey-3" }, mn = { class: "cl-flex cl-flex-col lg:cl-flex-row" }, gn = { class: "cl-mr-1 cl-text-grey-3" }, vn = {
|
|
2362
2358
|
key: 0,
|
|
2363
2359
|
class: "cl-flex cl-flex-col lg:cl-flex-row"
|
|
2364
|
-
},
|
|
2360
|
+
}, hn = { class: "cl-basis-full cl-mr-1 cl-text-grey-3" }, bn = { class: "cl-flex cl-gap-0.5" }, yn = ["onClick"], wn = { class: "cl-flex cl-gap-1 cl-items-center" }, kn = ["onClick"], $n = { 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" }, Tn = { class: "cl-flex cl-items-center" }, Cn = { class: "cl-mr-2 cl-text-grey-3" }, Sn = /* @__PURE__ */ j({
|
|
2365
2361
|
__name: "cl-ui-grid-footer",
|
|
2366
2362
|
props: {
|
|
2367
2363
|
request: {},
|
|
@@ -2407,15 +2403,15 @@ const za = {
|
|
|
2407
2403
|
}
|
|
2408
2404
|
return (s, c) => {
|
|
2409
2405
|
var p, w, y;
|
|
2410
|
-
return s.initialLoad ? (u(), g("div",
|
|
2411
|
-
h("div",
|
|
2406
|
+
return s.initialLoad ? (u(), g("div", an, [
|
|
2407
|
+
h("div", nn, [
|
|
2412
2408
|
q(m(yl), { words: 3 }),
|
|
2413
2409
|
q(m(yl), {
|
|
2414
2410
|
class: "cl-ml-auto",
|
|
2415
2411
|
words: 2
|
|
2416
2412
|
})
|
|
2417
2413
|
]),
|
|
2418
|
-
h("div",
|
|
2414
|
+
h("div", sn, [
|
|
2419
2415
|
q(m(ql), { class: "cl-w-64" })
|
|
2420
2416
|
])
|
|
2421
2417
|
])) : s.loading || (w = (p = s.data) == null ? void 0 : p.results) != null && w.length && s.request ? (u(), g("div", {
|
|
@@ -2425,20 +2421,20 @@ const za = {
|
|
|
2425
2421
|
}]),
|
|
2426
2422
|
inert: s.loading
|
|
2427
2423
|
}, [
|
|
2428
|
-
h("div",
|
|
2429
|
-
h("div",
|
|
2430
|
-
h("div",
|
|
2431
|
-
h("div",
|
|
2432
|
-
h("span",
|
|
2424
|
+
h("div", un, [
|
|
2425
|
+
h("div", cn, [
|
|
2426
|
+
h("div", dn, [
|
|
2427
|
+
h("div", pn, [
|
|
2428
|
+
h("span", fn, R(m(r)("grid.page")), 1),
|
|
2433
2429
|
h("span", null, R(m(De)(s.request.pageNumber)) + " / " + R(m(De)(a.value)), 1)
|
|
2434
2430
|
]),
|
|
2435
|
-
h("div",
|
|
2436
|
-
h("span",
|
|
2431
|
+
h("div", mn, [
|
|
2432
|
+
h("span", gn, R(m(r)("grid.totalRecords")), 1),
|
|
2437
2433
|
h("span", null, R(m(De)(((y = s.data) == null ? void 0 : y.totalRecords) ?? 0)), 1)
|
|
2438
2434
|
]),
|
|
2439
|
-
s.options.hidePageSizeOptions === !1 ? (u(), g("div",
|
|
2440
|
-
h("span",
|
|
2441
|
-
h("ul",
|
|
2435
|
+
s.options.hidePageSizeOptions === !1 ? (u(), g("div", vn, [
|
|
2436
|
+
h("span", hn, R(m(r)("grid.pageSize")), 1),
|
|
2437
|
+
h("ul", bn, [
|
|
2442
2438
|
(u(), g(K, null, _(b, (f, C) => h("li", {
|
|
2443
2439
|
key: C,
|
|
2444
2440
|
class: O(["cl-mr-1 last:cl-mr-0", {
|
|
@@ -2446,12 +2442,12 @@ const za = {
|
|
|
2446
2442
|
"cl-cursor-pointer": s.request.pageSize !== f
|
|
2447
2443
|
}]),
|
|
2448
2444
|
onClick: (A) => n(f)
|
|
2449
|
-
}, R(m(De)(f)), 11,
|
|
2445
|
+
}, R(m(De)(f)), 11, yn)), 64))
|
|
2450
2446
|
])
|
|
2451
2447
|
])) : U("", !0)
|
|
2452
2448
|
]),
|
|
2453
2449
|
h("div", null, [
|
|
2454
|
-
h("ul",
|
|
2450
|
+
h("ul", wn, [
|
|
2455
2451
|
h("li", {
|
|
2456
2452
|
class: O({
|
|
2457
2453
|
"cl-text-grey-2 cl-pointer-events-none": s.request.pageNumber === 1,
|
|
@@ -2484,7 +2480,7 @@ const za = {
|
|
|
2484
2480
|
"cl-bg-grey-0": s.loading
|
|
2485
2481
|
}]),
|
|
2486
2482
|
onClick: (A) => d(f)
|
|
2487
|
-
}, R(m(De)(f)), 11,
|
|
2483
|
+
}, R(m(De)(f)), 11, kn))), 128)),
|
|
2488
2484
|
h("li", {
|
|
2489
2485
|
class: O({
|
|
2490
2486
|
"cl-text-grey-2 cl-pointer-events-none": s.request.pageNumber >= a.value,
|
|
@@ -2513,9 +2509,9 @@ const za = {
|
|
|
2513
2509
|
])
|
|
2514
2510
|
])
|
|
2515
2511
|
]),
|
|
2516
|
-
h("div",
|
|
2517
|
-
h("div",
|
|
2518
|
-
h("span",
|
|
2512
|
+
h("div", $n, [
|
|
2513
|
+
h("div", Tn, [
|
|
2514
|
+
h("span", Cn, R(m(r)("grid.jumpToPage")), 1),
|
|
2519
2515
|
q(ll, {
|
|
2520
2516
|
"model-value": s.request.pageNumber,
|
|
2521
2517
|
min: 1,
|
|
@@ -2532,11 +2528,11 @@ const za = {
|
|
|
2532
2528
|
}, 8, ["model-value", "max", "disabled"])
|
|
2533
2529
|
])
|
|
2534
2530
|
])
|
|
2535
|
-
], 10,
|
|
2531
|
+
], 10, rn)) : U("", !0);
|
|
2536
2532
|
};
|
|
2537
2533
|
}
|
|
2538
2534
|
});
|
|
2539
|
-
function
|
|
2535
|
+
function Pe(o, l, t, e) {
|
|
2540
2536
|
const r = e ?? "UTC";
|
|
2541
2537
|
let a = Y.fromJSDate(o, { zone: r }).setZone(r);
|
|
2542
2538
|
l === "start" ? a = a.startOf("day") : l === "end" && (a = a.endOf("day").set({ millisecond: 0 }));
|
|
@@ -2547,7 +2543,7 @@ function rt(o, l, t, e) {
|
|
|
2547
2543
|
let r = Vl(Y.now(), t, e);
|
|
2548
2544
|
return r = pt(l, t, r, e), r = dt(o, t, r, e), r.toJSDate();
|
|
2549
2545
|
}
|
|
2550
|
-
function
|
|
2546
|
+
function qn(o, l, t, e, r) {
|
|
2551
2547
|
let a = Y.fromJSDate(t, { zone: e });
|
|
2552
2548
|
return a = pt(l, e, a, r), a = dt(o, e, a, r), a.toJSDate();
|
|
2553
2549
|
}
|
|
@@ -2644,7 +2640,7 @@ function pt(o, l, t, e) {
|
|
|
2644
2640
|
}
|
|
2645
2641
|
return t;
|
|
2646
2642
|
}
|
|
2647
|
-
const
|
|
2643
|
+
const Dn = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, On = ["onClick"], En = /* @__PURE__ */ j({
|
|
2648
2644
|
__name: "cl-ui-quick-dates-group",
|
|
2649
2645
|
props: {
|
|
2650
2646
|
dates: {},
|
|
@@ -2653,7 +2649,7 @@ const qn = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, Dn = ["onClick"], On =
|
|
|
2653
2649
|
emits: ["quick-date-selected"],
|
|
2654
2650
|
setup(o, { emit: l }) {
|
|
2655
2651
|
const t = l, { t: e } = ce();
|
|
2656
|
-
return (r, a) => (u(), g("div",
|
|
2652
|
+
return (r, a) => (u(), g("div", Dn, [
|
|
2657
2653
|
(u(!0), g(K, null, _(r.dates, (i, d) => {
|
|
2658
2654
|
var b, n;
|
|
2659
2655
|
return u(), g("button", {
|
|
@@ -2665,11 +2661,11 @@ const qn = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, Dn = ["onClick"], On =
|
|
|
2665
2661
|
onClick: (s) => t("quick-date-selected", i)
|
|
2666
2662
|
}, [
|
|
2667
2663
|
h("span", null, R(m(e)(i.translationKey)), 1)
|
|
2668
|
-
], 10,
|
|
2664
|
+
], 10, On);
|
|
2669
2665
|
}), 128))
|
|
2670
2666
|
]));
|
|
2671
2667
|
}
|
|
2672
|
-
}),
|
|
2668
|
+
}), An = [
|
|
2673
2669
|
"today",
|
|
2674
2670
|
"this week",
|
|
2675
2671
|
"this month",
|
|
@@ -2761,7 +2757,7 @@ const qn = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, Dn = ["onClick"], On =
|
|
|
2761
2757
|
...nl,
|
|
2762
2758
|
...sl,
|
|
2763
2759
|
...Qe
|
|
2764
|
-
],
|
|
2760
|
+
], Vn = { class: "cl-p-2 cl-pt-0" }, Mn = {
|
|
2765
2761
|
key: 0,
|
|
2766
2762
|
class: "cl-mt-2 cl-opacity-20"
|
|
2767
2763
|
}, mt = /* @__PURE__ */ j({
|
|
@@ -2796,18 +2792,18 @@ const qn = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, Dn = ["onClick"], On =
|
|
|
2796
2792
|
}
|
|
2797
2793
|
return i;
|
|
2798
2794
|
});
|
|
2799
|
-
return (i, d) => (u(), g("div",
|
|
2795
|
+
return (i, d) => (u(), g("div", Vn, [
|
|
2800
2796
|
h("div", null, R(m(r)("quickDates.quickDatesHeader")), 1),
|
|
2801
2797
|
(u(!0), g(K, null, _(a.value, (b, n) => (u(), g("div", {
|
|
2802
2798
|
key: n,
|
|
2803
2799
|
class: "cl-pt-2"
|
|
2804
2800
|
}, [
|
|
2805
|
-
q(
|
|
2801
|
+
q(En, {
|
|
2806
2802
|
dates: b,
|
|
2807
2803
|
"selected-quick-date": i.selectedQuickDate,
|
|
2808
2804
|
onQuickDateSelected: d[0] || (d[0] = (s) => e("quick-date-selected", s))
|
|
2809
2805
|
}, null, 8, ["dates", "selected-quick-date"]),
|
|
2810
|
-
n < a.value.length - 1 ? (u(), g("div",
|
|
2806
|
+
n < a.value.length - 1 ? (u(), g("div", Mn)) : U("", !0)
|
|
2811
2807
|
]))), 128))
|
|
2812
2808
|
]));
|
|
2813
2809
|
}
|
|
@@ -2822,7 +2818,7 @@ const qn = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, Dn = ["onClick"], On =
|
|
|
2822
2818
|
emits: ["togglePopover", "clear"],
|
|
2823
2819
|
setup(o) {
|
|
2824
2820
|
const { t: l } = ce(), t = $(() => {
|
|
2825
|
-
const { class: e, ...r } =
|
|
2821
|
+
const { class: e, ...r } = Ze();
|
|
2826
2822
|
return r;
|
|
2827
2823
|
});
|
|
2828
2824
|
return (e, r) => {
|
|
@@ -2909,8 +2905,8 @@ const qn = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, Dn = ["onClick"], On =
|
|
|
2909
2905
|
if (f !== null) {
|
|
2910
2906
|
const C = f;
|
|
2911
2907
|
t.value = {
|
|
2912
|
-
start:
|
|
2913
|
-
end:
|
|
2908
|
+
start: Pe(C.start, "start", !1, l.timeZone) ?? "",
|
|
2909
|
+
end: Pe(C.end, "end", !1, l.timeZone) ?? ""
|
|
2914
2910
|
};
|
|
2915
2911
|
} else
|
|
2916
2912
|
t.value = null;
|
|
@@ -2926,7 +2922,7 @@ const qn = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, Dn = ["onClick"], On =
|
|
|
2926
2922
|
D(f.$slots, "default")
|
|
2927
2923
|
]),
|
|
2928
2924
|
default: M(() => [
|
|
2929
|
-
q(m(
|
|
2925
|
+
q(m(je), {
|
|
2930
2926
|
ref_key: "calendar",
|
|
2931
2927
|
ref: c,
|
|
2932
2928
|
modelValue: r.value,
|
|
@@ -2979,13 +2975,13 @@ const qn = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, Dn = ["onClick"], On =
|
|
|
2979
2975
|
} : void 0
|
|
2980
2976
|
]), 1032, ["show-required-asterisk"]));
|
|
2981
2977
|
}
|
|
2982
|
-
}),
|
|
2978
|
+
}), In = [
|
|
2983
2979
|
"text",
|
|
2984
2980
|
"email",
|
|
2985
2981
|
"tel",
|
|
2986
2982
|
"password",
|
|
2987
2983
|
"search"
|
|
2988
|
-
],
|
|
2984
|
+
], Nn = /* @__PURE__ */ j({
|
|
2989
2985
|
inheritAttrs: !1,
|
|
2990
2986
|
__name: "cl-ui-input-text-area",
|
|
2991
2987
|
props: /* @__PURE__ */ de({
|
|
@@ -3004,7 +3000,7 @@ const qn = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, Dn = ["onClick"], On =
|
|
|
3004
3000
|
a,
|
|
3005
3001
|
r
|
|
3006
3002
|
], () => {
|
|
3007
|
-
|
|
3003
|
+
Fe(() => {
|
|
3008
3004
|
a.value && r.value === "auto" && (a.value.style.height = "auto", i());
|
|
3009
3005
|
});
|
|
3010
3006
|
}, {
|
|
@@ -3072,7 +3068,7 @@ const qn = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, Dn = ["onClick"], On =
|
|
|
3072
3068
|
} : void 0
|
|
3073
3069
|
]), 1032, ["errors", "show-required-asterisk"]));
|
|
3074
3070
|
}
|
|
3075
|
-
}),
|
|
3071
|
+
}), Rn = { class: "cl-gap-1 cl-grid cl-grid-cols-[auto_1fr_auto_auto] cl-pt-0.5 cl-w-full" }, Un = ["disabled"], zn = { class: "cl-max-w-max" }, Bn = { class: "cl-flex cl-flex-col cl-gap-1 cl-w-full" }, Ln = ["min", "disabled", "required", "step", "max"], Fn = { class: "cl-bg-white cl-border cl-border-grey-2 cl-leading-none cl-rounded-full cl-text-center cl-text-xs" }, jn = ["disabled"], Pn = ["disabled", "title"], Hn = /* @__PURE__ */ j({
|
|
3076
3072
|
inheritAttrs: !1,
|
|
3077
3073
|
__name: "cl-ui-input-range",
|
|
3078
3074
|
props: /* @__PURE__ */ de({
|
|
@@ -3113,14 +3109,14 @@ const qn = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, Dn = ["onClick"], On =
|
|
|
3113
3109
|
"show-required-asterisk": c.required
|
|
3114
3110
|
}, ye({
|
|
3115
3111
|
default: M(() => [
|
|
3116
|
-
h("div",
|
|
3112
|
+
h("div", Rn, [
|
|
3117
3113
|
h("button", {
|
|
3118
3114
|
disabled: c.disabled,
|
|
3119
3115
|
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",
|
|
3120
3116
|
onClick: p[0] || (p[0] = (y) => s(c.min))
|
|
3121
|
-
}, R(m(ml)(c.min, c.precision)), 9,
|
|
3122
|
-
h("div",
|
|
3123
|
-
se(h("div",
|
|
3117
|
+
}, R(m(ml)(c.min, c.precision)), 9, Un),
|
|
3118
|
+
h("div", zn, [
|
|
3119
|
+
se(h("div", Bn, [
|
|
3124
3120
|
se(h("input", Q({
|
|
3125
3121
|
ref_key: "sliderRef",
|
|
3126
3122
|
ref: a,
|
|
@@ -3133,7 +3129,7 @@ const qn = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, Dn = ["onClick"], On =
|
|
|
3133
3129
|
required: c.required,
|
|
3134
3130
|
step: 1 / Math.pow(10, c.precision),
|
|
3135
3131
|
max: c.max
|
|
3136
|
-
}), null, 16,
|
|
3132
|
+
}), null, 16, Ln), [
|
|
3137
3133
|
[
|
|
3138
3134
|
Sl,
|
|
3139
3135
|
e.value,
|
|
@@ -3141,7 +3137,7 @@ const qn = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, Dn = ["onClick"], On =
|
|
|
3141
3137
|
{ number: !0 }
|
|
3142
3138
|
]
|
|
3143
3139
|
]),
|
|
3144
|
-
h("div",
|
|
3140
|
+
h("div", Fn, R(m(ml)(m(n), c.precision)), 1)
|
|
3145
3141
|
], 512), [
|
|
3146
3142
|
[fe, b.value === !1]
|
|
3147
3143
|
]),
|
|
@@ -3165,7 +3161,7 @@ const qn = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, Dn = ["onClick"], On =
|
|
|
3165
3161
|
disabled: c.disabled,
|
|
3166
3162
|
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",
|
|
3167
3163
|
onClick: p[3] || (p[3] = (y) => s(c.max))
|
|
3168
|
-
}, R(m(ml)(c.max, c.precision)), 9,
|
|
3164
|
+
}, R(m(ml)(c.max, c.precision)), 9, jn),
|
|
3169
3165
|
h("button", {
|
|
3170
3166
|
disabled: c.disabled,
|
|
3171
3167
|
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",
|
|
@@ -3173,7 +3169,7 @@ const qn = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, Dn = ["onClick"], On =
|
|
|
3173
3169
|
onClick: p[4] || (p[4] = (y) => b.value = !b.value)
|
|
3174
3170
|
}, [
|
|
3175
3171
|
q(w, { icon: "ph:arrows-left-right-thin" })
|
|
3176
|
-
], 8,
|
|
3172
|
+
], 8, Pn)
|
|
3177
3173
|
])
|
|
3178
3174
|
]),
|
|
3179
3175
|
_: 2
|
|
@@ -3195,11 +3191,11 @@ const qn = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, Dn = ["onClick"], On =
|
|
|
3195
3191
|
]), 1032, ["errors", "show-required-asterisk"]);
|
|
3196
3192
|
};
|
|
3197
3193
|
}
|
|
3198
|
-
}),
|
|
3194
|
+
}), Gn = /* @__PURE__ */ Te(Hn, [["__scopeId", "data-v-d2902c00"]]), vt = [
|
|
3199
3195
|
"date",
|
|
3200
3196
|
"datetime",
|
|
3201
3197
|
"time"
|
|
3202
|
-
],
|
|
3198
|
+
], Zn = [
|
|
3203
3199
|
"auto",
|
|
3204
3200
|
"auto-start",
|
|
3205
3201
|
"auto-end",
|
|
@@ -3211,13 +3207,13 @@ const qn = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, Dn = ["onClick"], On =
|
|
|
3211
3207
|
"right-end",
|
|
3212
3208
|
"left-start",
|
|
3213
3209
|
"left-end"
|
|
3214
|
-
],
|
|
3210
|
+
], Wn = {
|
|
3215
3211
|
key: 1,
|
|
3216
3212
|
class: "cl-relative"
|
|
3217
|
-
},
|
|
3213
|
+
}, Kn = ["value", "disabled", "placeholder"], Qn = {
|
|
3218
3214
|
key: 0,
|
|
3219
3215
|
class: "action-icon cl-absolute cl-bg-transparent cl-flex cl-right-2 cl-text-grey-4 cl-top-3.5"
|
|
3220
|
-
},
|
|
3216
|
+
}, Yn = /* @__PURE__ */ j({
|
|
3221
3217
|
inheritAttrs: !1,
|
|
3222
3218
|
__name: "cl-ui-calendar-input",
|
|
3223
3219
|
props: {
|
|
@@ -3259,7 +3255,7 @@ const qn = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, Dn = ["onClick"], On =
|
|
|
3259
3255
|
"date-range-selected": !!d.rangeSelected,
|
|
3260
3256
|
onTogglePopover: b[0] || (b[0] = (n) => d.$emit("togglePopover")),
|
|
3261
3257
|
onClear: b[1] || (b[1] = (n) => d.$emit("clear"))
|
|
3262
|
-
}), null, 16, ["disabled", "required", "date-range-selected"])) : (u(), g("div",
|
|
3258
|
+
}), null, 16, ["disabled", "required", "date-range-selected"])) : (u(), g("div", Wn, [
|
|
3263
3259
|
h("input", Q({
|
|
3264
3260
|
ref_key: "element",
|
|
3265
3261
|
ref: e
|
|
@@ -3268,13 +3264,13 @@ const qn = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, Dn = ["onClick"], On =
|
|
|
3268
3264
|
type: "text",
|
|
3269
3265
|
disabled: d.disabled,
|
|
3270
3266
|
placeholder: i.value
|
|
3271
|
-
}, Mt(d.events, !0)), null, 16,
|
|
3267
|
+
}, Mt(d.events, !0)), null, 16, Kn),
|
|
3272
3268
|
q(m(le), {
|
|
3273
3269
|
class: "cl-absolute cl-bg-transparent cl-cursor-text cl-left-2 cl-text-grey-4 cl-top-3.5 icon",
|
|
3274
3270
|
icon: d.type === "time" ? "ph-clock" : "ph:calendar",
|
|
3275
3271
|
onClick: r
|
|
3276
3272
|
}, null, 8, ["icon"]),
|
|
3277
|
-
d.disabled ? U("", !0) : (u(), g("div",
|
|
3273
|
+
d.disabled ? U("", !0) : (u(), g("div", Qn, [
|
|
3278
3274
|
d.type !== "time" ? (u(), L(m(le), {
|
|
3279
3275
|
key: 0,
|
|
3280
3276
|
class: "cl-cursor-pointer hover:cl-text-link-light",
|
|
@@ -3290,7 +3286,7 @@ const qn = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, Dn = ["onClick"], On =
|
|
|
3290
3286
|
]))
|
|
3291
3287
|
]));
|
|
3292
3288
|
}
|
|
3293
|
-
}), Ye = /* @__PURE__ */ Te(
|
|
3289
|
+
}), Ye = /* @__PURE__ */ Te(Yn, [["__scopeId", "data-v-72ad6b70"]]), ht = /* @__PURE__ */ j({
|
|
3294
3290
|
inheritAttrs: !1,
|
|
3295
3291
|
__name: "cl-ui-input-datetime",
|
|
3296
3292
|
props: /* @__PURE__ */ de({
|
|
@@ -3319,14 +3315,14 @@ const qn = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, Dn = ["onClick"], On =
|
|
|
3319
3315
|
}).toJSDate()), f;
|
|
3320
3316
|
},
|
|
3321
3317
|
set(f) {
|
|
3322
|
-
e.type === "time" ? r.value = f : f !== null ? r.value =
|
|
3318
|
+
e.type === "time" ? r.value = f : f !== null ? r.value = Pe(f, null, !1, e.timeZone) : r.value = null;
|
|
3323
3319
|
}
|
|
3324
3320
|
}), { locale: b } = ce(), n = $(() => e.dateFormatLocale ?? b.value), s = $(() => e.showPopover !== void 0 ? e.showPopover : e.type !== "time"), c = $(() => El(e.disabled || !s.value, e.popoverPlacement)), p = $(() => it(n.value, e.type)), w = V(null), y = $(() => Al(r.value, e.initialCalendarDate, i.value, e.type));
|
|
3325
3321
|
return te(() => [
|
|
3326
3322
|
e.minDate,
|
|
3327
3323
|
e.maxDate
|
|
3328
3324
|
], () => {
|
|
3329
|
-
e.type !== "time" && (d.value instanceof Date || d.value === null) && (d.value =
|
|
3325
|
+
e.type !== "time" && (d.value instanceof Date || d.value === null) && (d.value = qn(e.minDate, e.maxDate, d.value, i.value, e.type));
|
|
3330
3326
|
}), l({
|
|
3331
3327
|
focus() {
|
|
3332
3328
|
var f;
|
|
@@ -3337,7 +3333,7 @@ const qn = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, Dn = ["onClick"], On =
|
|
|
3337
3333
|
D(f.$slots, "default")
|
|
3338
3334
|
]),
|
|
3339
3335
|
default: M(() => [
|
|
3340
|
-
f.type === "time" ? (u(), L(m(
|
|
3336
|
+
f.type === "time" ? (u(), L(m(je), {
|
|
3341
3337
|
key: 0,
|
|
3342
3338
|
modelValue: d.value,
|
|
3343
3339
|
"onUpdate:modelValue": C[1] || (C[1] = (A) => d.value = A),
|
|
@@ -3367,7 +3363,7 @@ const qn = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, Dn = ["onClick"], On =
|
|
|
3367
3363
|
}), null, 16, ["date", "events", "type", "placeholder", "required", "disabled"])
|
|
3368
3364
|
]),
|
|
3369
3365
|
_: 1
|
|
3370
|
-
}, 8, ["modelValue", "locale", "is24hr", "mode", "is-required", "masks", "popover"])) : (u(), L(m(
|
|
3366
|
+
}, 8, ["modelValue", "locale", "is24hr", "mode", "is-required", "masks", "popover"])) : (u(), L(m(je), {
|
|
3371
3367
|
key: 1,
|
|
3372
3368
|
modelValue: d.value,
|
|
3373
3369
|
"onUpdate:modelValue": C[4] || (C[4] = (A) => d.value = A),
|
|
@@ -3427,7 +3423,7 @@ const qn = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, Dn = ["onClick"], On =
|
|
|
3427
3423
|
D(r.$slots, "default", me(be({ toggleModalInput: e })))
|
|
3428
3424
|
], 16));
|
|
3429
3425
|
}
|
|
3430
|
-
}),
|
|
3426
|
+
}), Jn = ["placeholder", "value", "disabled", "onKeydown"], Xn = ["disabled"], xn = ["id", "tabindex", "inert", "onKeydown"], wl = /* @__PURE__ */ j({
|
|
3431
3427
|
inheritAttrs: !1,
|
|
3432
3428
|
__name: "cl-ui-select",
|
|
3433
3429
|
props: /* @__PURE__ */ de({
|
|
@@ -3444,7 +3440,7 @@ const qn = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, Dn = ["onClick"], On =
|
|
|
3444
3440
|
}),
|
|
3445
3441
|
emits: ["update:modelValue"],
|
|
3446
3442
|
setup(o) {
|
|
3447
|
-
const l = o, t = ke(o, "modelValue"), e = V(-1), r = V(), a = V(), i = V(!1), d = $(() => Array.isArray(t.value)), b =
|
|
3443
|
+
const l = o, t = ke(o, "modelValue"), e = V(-1), r = V(), a = V(), i = V(!1), d = $(() => Array.isArray(t.value)), b = Ze().id ?? "select";
|
|
3448
3444
|
function n(I) {
|
|
3449
3445
|
typeof I < "u" ? i.value = I : l.disabled === !1 && (i.value = !i.value), i.value === !1 && (e.value = -1);
|
|
3450
3446
|
}
|
|
@@ -3564,7 +3560,7 @@ const qn = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, Dn = ["onClick"], On =
|
|
|
3564
3560
|
A(), G.target.blur();
|
|
3565
3561
|
}, ["stop", "prevent"]), ["enter"]))
|
|
3566
3562
|
]
|
|
3567
|
-
}), null, 16,
|
|
3563
|
+
}), null, 16, Jn),
|
|
3568
3564
|
h("div", {
|
|
3569
3565
|
class: "cl-flex cl-items-center cl-px-2 cl-py-1 cl-relative cl-text-grey-3 cl-z-10",
|
|
3570
3566
|
disabled: I.disabled,
|
|
@@ -3573,7 +3569,7 @@ const qn = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, Dn = ["onClick"], On =
|
|
|
3573
3569
|
q(W, {
|
|
3574
3570
|
icon: i.value ? "ph:caret-up-bold" : "ph:caret-down-bold"
|
|
3575
3571
|
}, null, 8, ["icon"])
|
|
3576
|
-
], 8,
|
|
3572
|
+
], 8, Xn)
|
|
3577
3573
|
]),
|
|
3578
3574
|
_: 1
|
|
3579
3575
|
}, 8, ["class"])) : U("", !0)
|
|
@@ -3620,7 +3616,7 @@ const qn = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, Dn = ["onClick"], On =
|
|
|
3620
3616
|
}, 1032, ["id", "disabled", "is-highlighted", "is-selected", "onSelect"]))
|
|
3621
3617
|
])
|
|
3622
3618
|
]))), 128))
|
|
3623
|
-
], 16,
|
|
3619
|
+
], 16, xn)) : U("", !0)
|
|
3624
3620
|
], 2)
|
|
3625
3621
|
]),
|
|
3626
3622
|
_: 2
|
|
@@ -3658,7 +3654,7 @@ const qn = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, Dn = ["onClick"], On =
|
|
|
3658
3654
|
D(e.$slots, "default")
|
|
3659
3655
|
], 2));
|
|
3660
3656
|
}
|
|
3661
|
-
}),
|
|
3657
|
+
}), _n = [
|
|
3662
3658
|
"string",
|
|
3663
3659
|
"boolean",
|
|
3664
3660
|
"number",
|
|
@@ -3671,7 +3667,7 @@ const qn = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, Dn = ["onClick"], On =
|
|
|
3671
3667
|
function yt(o) {
|
|
3672
3668
|
return typeof o.caption == "string" && typeof o.name == "string" && typeof o.type == "string";
|
|
3673
3669
|
}
|
|
3674
|
-
function
|
|
3670
|
+
function es(o) {
|
|
3675
3671
|
let l = Array.isArray(o);
|
|
3676
3672
|
if (l) {
|
|
3677
3673
|
for (const t of o)
|
|
@@ -3682,12 +3678,12 @@ function _n(o) {
|
|
|
3682
3678
|
}
|
|
3683
3679
|
return l;
|
|
3684
3680
|
}
|
|
3685
|
-
const
|
|
3681
|
+
const ls = [
|
|
3686
3682
|
"ellipsis",
|
|
3687
3683
|
"wrap-text"
|
|
3688
3684
|
];
|
|
3689
3685
|
var ne = /* @__PURE__ */ ((o) => (o[o.CONTAINS = 0] = "CONTAINS", o[o.NOT_CONTAINS = 1] = "NOT_CONTAINS", o[o.EQUAL = 2] = "EQUAL", o[o.NOT_EQUAL = 3] = "NOT_EQUAL", o[o.STARTS_WITH = 4] = "STARTS_WITH", o[o.ENDS_WITH = 5] = "ENDS_WITH", o[o.GREATER_THAN = 6] = "GREATER_THAN", o[o.LESS_THAN = 7] = "LESS_THAN", o[o.EQUAL_OR_GREATER_THAN = 8] = "EQUAL_OR_GREATER_THAN", o[o.EQUAL_OR_LESS_THAN = 9] = "EQUAL_OR_LESS_THAN", o[o.AND_CONTAINS = 10] = "AND_CONTAINS", o))(ne || {});
|
|
3690
|
-
const
|
|
3686
|
+
const ts = [
|
|
3691
3687
|
"equal",
|
|
3692
3688
|
"notequal",
|
|
3693
3689
|
"contains",
|
|
@@ -3700,24 +3696,24 @@ const ls = [
|
|
|
3700
3696
|
"equalorgreaterthan",
|
|
3701
3697
|
"andcontains"
|
|
3702
3698
|
];
|
|
3703
|
-
function
|
|
3699
|
+
function os(o) {
|
|
3704
3700
|
return typeof o.filterOnColumn == "string" && typeof o.filterOperation == "number" && typeof o.filterValue == "string";
|
|
3705
3701
|
}
|
|
3706
|
-
function
|
|
3702
|
+
function as(o) {
|
|
3707
3703
|
return o === null || typeof o.sortByAscending == "boolean" && typeof o.sortOnColumn == "string";
|
|
3708
3704
|
}
|
|
3709
|
-
function
|
|
3710
|
-
let l = typeof o.filters == "object" && Array.isArray(o.filters) && typeof o.pageNumber == "number" && typeof o.pageSize == "number" && typeof o.sort == "object" &&
|
|
3705
|
+
function ns(o) {
|
|
3706
|
+
let l = typeof o.filters == "object" && Array.isArray(o.filters) && typeof o.pageNumber == "number" && typeof o.pageSize == "number" && typeof o.sort == "object" && as(o.sort);
|
|
3711
3707
|
if (l) {
|
|
3712
3708
|
for (const t of o.filters)
|
|
3713
|
-
if (!
|
|
3709
|
+
if (!os(t)) {
|
|
3714
3710
|
l = !1;
|
|
3715
3711
|
break;
|
|
3716
3712
|
}
|
|
3717
3713
|
}
|
|
3718
3714
|
return l;
|
|
3719
3715
|
}
|
|
3720
|
-
function
|
|
3716
|
+
function ss(o, l) {
|
|
3721
3717
|
let t = typeof o.results == "object" && Array.isArray(o.results) && typeof o.totalRecords == "number";
|
|
3722
3718
|
if (t) {
|
|
3723
3719
|
for (const e of o.results)
|
|
@@ -3728,7 +3724,7 @@ function ns(o, l) {
|
|
|
3728
3724
|
}
|
|
3729
3725
|
return t;
|
|
3730
3726
|
}
|
|
3731
|
-
const
|
|
3727
|
+
const rs = {
|
|
3732
3728
|
method: "equal",
|
|
3733
3729
|
icon: "mdi:equal",
|
|
3734
3730
|
description: "Equals",
|
|
@@ -3741,12 +3737,12 @@ const ss = {
|
|
|
3741
3737
|
"list"
|
|
3742
3738
|
],
|
|
3743
3739
|
key: "equal"
|
|
3744
|
-
},
|
|
3740
|
+
}, is = {
|
|
3745
3741
|
method: "contains",
|
|
3746
3742
|
icon: "mdi:format-letter-matches",
|
|
3747
3743
|
description: "Contains",
|
|
3748
3744
|
allowedTypes: ["string"]
|
|
3749
|
-
},
|
|
3745
|
+
}, us = {
|
|
3750
3746
|
method: "lessthan",
|
|
3751
3747
|
icon: "mdi:less-than",
|
|
3752
3748
|
description: "Before",
|
|
@@ -3756,7 +3752,7 @@ const ss = {
|
|
|
3756
3752
|
],
|
|
3757
3753
|
key: "before"
|
|
3758
3754
|
}, Pl = [
|
|
3759
|
-
|
|
3755
|
+
is,
|
|
3760
3756
|
{
|
|
3761
3757
|
method: "notcontains",
|
|
3762
3758
|
icon: "mdi:format-letter-spacing-variant",
|
|
@@ -3775,7 +3771,7 @@ const ss = {
|
|
|
3775
3771
|
description: "Ends with",
|
|
3776
3772
|
allowedTypes: ["string"]
|
|
3777
3773
|
},
|
|
3778
|
-
|
|
3774
|
+
rs,
|
|
3779
3775
|
{
|
|
3780
3776
|
method: "notequal",
|
|
3781
3777
|
icon: "mdi:not-equal",
|
|
@@ -3788,7 +3784,7 @@ const ss = {
|
|
|
3788
3784
|
],
|
|
3789
3785
|
key: "notequal"
|
|
3790
3786
|
},
|
|
3791
|
-
|
|
3787
|
+
us,
|
|
3792
3788
|
{
|
|
3793
3789
|
method: "greaterthan",
|
|
3794
3790
|
icon: "mdi:greater-than",
|
|
@@ -3843,7 +3839,7 @@ const ss = {
|
|
|
3843
3839
|
description: "Less than",
|
|
3844
3840
|
allowedTypes: ["number"]
|
|
3845
3841
|
}
|
|
3846
|
-
],
|
|
3842
|
+
], cs = { 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" }, ds = { class: "cl-p-2 cl-select-none" }, ps = ["onClick"], fs = /* @__PURE__ */ j({
|
|
3847
3843
|
__name: "cl-ui-grid-method-selector",
|
|
3848
3844
|
props: {
|
|
3849
3845
|
filter: {},
|
|
@@ -3889,7 +3885,7 @@ const ss = {
|
|
|
3889
3885
|
ref: b,
|
|
3890
3886
|
class: "cl-group cl-inline cl-relative cl-w-auto"
|
|
3891
3887
|
}, [
|
|
3892
|
-
h("div",
|
|
3888
|
+
h("div", cs, [
|
|
3893
3889
|
i.value ? (u(), L(m(le), {
|
|
3894
3890
|
key: 0,
|
|
3895
3891
|
icon: i.value.icon,
|
|
@@ -3906,7 +3902,7 @@ const ss = {
|
|
|
3906
3902
|
"cl-left-0": s.value
|
|
3907
3903
|
}])
|
|
3908
3904
|
}, [
|
|
3909
|
-
h("strong",
|
|
3905
|
+
h("strong", ds, R(m(r)("grid.availableMethods")), 1),
|
|
3910
3906
|
(u(!0), g(K, null, _(a.value, (w, y) => {
|
|
3911
3907
|
var f;
|
|
3912
3908
|
return u(), g("span", {
|
|
@@ -3921,7 +3917,7 @@ const ss = {
|
|
|
3921
3917
|
icon: w.icon,
|
|
3922
3918
|
class: "cl-float-right cl-text-grey-4 cl-text-sm"
|
|
3923
3919
|
}, null, 8, ["icon"])
|
|
3924
|
-
], 10,
|
|
3920
|
+
], 10, ps);
|
|
3925
3921
|
}), 128))
|
|
3926
3922
|
], 2)
|
|
3927
3923
|
], 512));
|
|
@@ -3942,19 +3938,19 @@ const ss = {
|
|
|
3942
3938
|
name: qe.global.t("grid.false"),
|
|
3943
3939
|
value: "false"
|
|
3944
3940
|
}
|
|
3945
|
-
]),
|
|
3941
|
+
]), ms = {
|
|
3946
3942
|
key: 1,
|
|
3947
3943
|
class: "cl-w-full"
|
|
3948
|
-
},
|
|
3944
|
+
}, gs = {
|
|
3949
3945
|
key: 2,
|
|
3950
3946
|
class: "cl-w-full"
|
|
3951
|
-
},
|
|
3947
|
+
}, vs = {
|
|
3952
3948
|
key: 3,
|
|
3953
3949
|
class: "cl-w-full"
|
|
3954
|
-
},
|
|
3950
|
+
}, hs = {
|
|
3955
3951
|
key: 4,
|
|
3956
3952
|
class: "cl-w-full"
|
|
3957
|
-
},
|
|
3953
|
+
}, bs = /* @__PURE__ */ j({
|
|
3958
3954
|
__name: "cl-ui-grid-filter-input",
|
|
3959
3955
|
props: {
|
|
3960
3956
|
loading: { type: Boolean },
|
|
@@ -4209,7 +4205,7 @@ const ss = {
|
|
|
4209
4205
|
}, 1032, ["is-selected", "is-highlighted", "onSelect"])
|
|
4210
4206
|
]),
|
|
4211
4207
|
_: 1
|
|
4212
|
-
}, 8, ["id", "list", "disabled", "model-value"])) : b.value ? (u(), g("div",
|
|
4208
|
+
}, 8, ["id", "list", "disabled", "model-value"])) : b.value ? (u(), g("div", ms, [
|
|
4213
4209
|
q(ht, {
|
|
4214
4210
|
id: `${m(F)}-${T.column.name}`,
|
|
4215
4211
|
"model-value": oe.value,
|
|
@@ -4220,7 +4216,7 @@ const ss = {
|
|
|
4220
4216
|
"popover-placement": "bottom-start",
|
|
4221
4217
|
"onUpdate:modelValue": H[1] || (H[1] = (v) => ee(null, v ?? ""))
|
|
4222
4218
|
}, null, 8, ["id", "model-value", "time-zone", "readonly", "type"])
|
|
4223
|
-
])) : n.value ? (u(), g("div",
|
|
4219
|
+
])) : n.value ? (u(), g("div", gs, [
|
|
4224
4220
|
q(gt, {
|
|
4225
4221
|
id: `${m(F)}-${T.column.name}`,
|
|
4226
4222
|
"model-value": G.value,
|
|
@@ -4231,7 +4227,7 @@ const ss = {
|
|
|
4231
4227
|
"popover-placement": "bottom-start",
|
|
4232
4228
|
"onUpdate:modelValue": H[2] || (H[2] = (v) => z(v))
|
|
4233
4229
|
}, null, 8, ["id", "model-value", "disabled", "time-zone", "quick-date-scope"])
|
|
4234
|
-
])) : T.column.type === "number" || T.column.type === "slot" && T.column.slotType === "number" ? (u(), g("div",
|
|
4230
|
+
])) : T.column.type === "number" || T.column.type === "slot" && T.column.slotType === "number" ? (u(), g("div", vs, [
|
|
4235
4231
|
q(ll, {
|
|
4236
4232
|
id: `${m(F)}-${T.column.name}`,
|
|
4237
4233
|
"model-value": W.value === "" || isNaN(+W.value) ? null : +W.value,
|
|
@@ -4248,7 +4244,7 @@ const ss = {
|
|
|
4248
4244
|
])),
|
|
4249
4245
|
_: 1
|
|
4250
4246
|
}, 8, ["id", "model-value", "format", "precision", "readonly"])
|
|
4251
|
-
])) : T.column.type === "string" || T.column.type === "slot" && T.column.slotType === "string" ? (u(), g("div",
|
|
4247
|
+
])) : T.column.type === "string" || T.column.type === "slot" && T.column.slotType === "string" ? (u(), g("div", hs, [
|
|
4252
4248
|
q(ze, {
|
|
4253
4249
|
id: `${m(F)}-${T.column.name}`,
|
|
4254
4250
|
modelValue: X.value,
|
|
@@ -4293,7 +4289,7 @@ const ss = {
|
|
|
4293
4289
|
]),
|
|
4294
4290
|
_: 1
|
|
4295
4291
|
}, 8, ["id", "list", "model-value", "disabled"])) : U("", !0),
|
|
4296
|
-
n.value ? U("", !0) : (u(), L(
|
|
4292
|
+
n.value ? U("", !0) : (u(), L(fs, {
|
|
4297
4293
|
key: 6,
|
|
4298
4294
|
filter: I.value,
|
|
4299
4295
|
"onUpdate:filter": H[7] || (H[7] = (v) => I.value = v),
|
|
@@ -4304,7 +4300,7 @@ const ss = {
|
|
|
4304
4300
|
}, null, 8, ["filter", "loading", "column", "default-operation"]))
|
|
4305
4301
|
], 2)) : U("", !0);
|
|
4306
4302
|
}
|
|
4307
|
-
}), Gl = /* @__PURE__ */ Te(
|
|
4303
|
+
}), Gl = /* @__PURE__ */ Te(bs, [["__scopeId", "data-v-a6f8df27"]]), ys = { key: 1 }, ws = /* @__PURE__ */ j({
|
|
4308
4304
|
__name: "cl-ui-grid-filter",
|
|
4309
4305
|
props: {
|
|
4310
4306
|
loading: { type: Boolean },
|
|
@@ -4323,7 +4319,7 @@ const ss = {
|
|
|
4323
4319
|
return (e, r) => e.initialLoad && m(Xe)(e.column) ? (u(), L(m(ql), {
|
|
4324
4320
|
key: 0,
|
|
4325
4321
|
class: "cl-h-[34px]"
|
|
4326
|
-
})) : e.bulkEditMode && e.column.editable ? (u(), g("div",
|
|
4322
|
+
})) : e.bulkEditMode && e.column.editable ? (u(), g("div", ys, [
|
|
4327
4323
|
D(e.$slots, `${e.column.name}BulkEdit`, me(be({
|
|
4328
4324
|
column: e.column
|
|
4329
4325
|
})), () => [
|
|
@@ -4353,7 +4349,7 @@ const ss = {
|
|
|
4353
4349
|
onPerformDataRequest: r[3] || (r[3] = (a) => e.$emit("perform-data-request"))
|
|
4354
4350
|
}, null, 8, ["loading", "filter", "column", "time-zone", "quick-date-scope", "header-display-timezone", "options"])) : U("", !0);
|
|
4355
4351
|
}
|
|
4356
|
-
}),
|
|
4352
|
+
}), ks = ["onClick"], $s = { key: 1 }, Ts = ["onClick"], Cs = { class: "cl-font-normal cl-mr-1" }, Ss = /* @__PURE__ */ j({
|
|
4357
4353
|
__name: "cl-ui-grid-header",
|
|
4358
4354
|
props: {
|
|
4359
4355
|
request: {},
|
|
@@ -4412,7 +4408,7 @@ const ss = {
|
|
|
4412
4408
|
onClick: (w) => m(ol)(c) && n.loading === !1 ? d(c.field) : () => {
|
|
4413
4409
|
}
|
|
4414
4410
|
}, [
|
|
4415
|
-
n.initialLoad ? (u(), L(m(yl), { key: 0 })) : (u(), g("div",
|
|
4411
|
+
n.initialLoad ? (u(), L(m(yl), { key: 0 })) : (u(), g("div", $s, [
|
|
4416
4412
|
ue(R(m(r)(c.caption)) + " ", 1),
|
|
4417
4413
|
se(q(m(le), {
|
|
4418
4414
|
class: "cl-inline-block",
|
|
@@ -4427,7 +4423,7 @@ const ss = {
|
|
|
4427
4423
|
[fe, i(c, !1)]
|
|
4428
4424
|
])
|
|
4429
4425
|
]))
|
|
4430
|
-
], 10,
|
|
4426
|
+
], 10, ks))), 128))
|
|
4431
4427
|
], 2),
|
|
4432
4428
|
h("tr", {
|
|
4433
4429
|
class: O(["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", {
|
|
@@ -4468,7 +4464,7 @@ const ss = {
|
|
|
4468
4464
|
}]),
|
|
4469
4465
|
onClick: (w) => n.loading === !1 ? d(c.field) : void 0
|
|
4470
4466
|
}, [
|
|
4471
|
-
h("span",
|
|
4467
|
+
h("span", Cs, R(m(r)("grid.sortBy")), 1),
|
|
4472
4468
|
i(c, !0) ? (u(), L(m(le), {
|
|
4473
4469
|
key: 0,
|
|
4474
4470
|
class: "cl-cursor-pointer cl-inline-block",
|
|
@@ -4482,8 +4478,8 @@ const ss = {
|
|
|
4482
4478
|
class: "cl-cursor-pointer cl-inline-block",
|
|
4483
4479
|
icon: "ph:minus"
|
|
4484
4480
|
}))
|
|
4485
|
-
], 10,
|
|
4486
|
-
q(
|
|
4481
|
+
], 10, Ts)) : U("", !0),
|
|
4482
|
+
q(ws, {
|
|
4487
4483
|
class: "cl-col-span-4 cl-min-w-[100px]",
|
|
4488
4484
|
loading: n.loading,
|
|
4489
4485
|
"initial-load": n.initialLoad,
|
|
@@ -4508,7 +4504,7 @@ const ss = {
|
|
|
4508
4504
|
], 2)
|
|
4509
4505
|
], 2));
|
|
4510
4506
|
}
|
|
4511
|
-
}),
|
|
4507
|
+
}), qs = { class: "cl-flex cl-mb-2" }, Ds = { class: "cl-basis-full cl-grow" }, Os = /* @__PURE__ */ j({
|
|
4512
4508
|
__name: "cl-ui-grid-search",
|
|
4513
4509
|
props: /* @__PURE__ */ de({
|
|
4514
4510
|
columns: {},
|
|
@@ -4550,8 +4546,8 @@ const ss = {
|
|
|
4550
4546
|
}), (c, p) => {
|
|
4551
4547
|
const w = Se("icon");
|
|
4552
4548
|
return D(c.$slots, "search", me(be({ searchValue: r.value, performSearch: d })), () => [
|
|
4553
|
-
h("div",
|
|
4554
|
-
h("div",
|
|
4549
|
+
h("div", qs, [
|
|
4550
|
+
h("div", Ds, [
|
|
4555
4551
|
q(ze, {
|
|
4556
4552
|
ref_key: "gridSearchInputRef",
|
|
4557
4553
|
ref: s,
|
|
@@ -4581,7 +4577,7 @@ const ss = {
|
|
|
4581
4577
|
]);
|
|
4582
4578
|
};
|
|
4583
4579
|
}
|
|
4584
|
-
}),
|
|
4580
|
+
}), Es = { class: "cl-fixed cl-flex cl-h-full cl-justify-end cl-right-0 cl-shadow-lg cl-top-0 cl-z-40" }, As = { 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" }, Vs = { class: "cl-mb-4 cl-text-2xl cl-text-off-white" }, Ms = { class: "cl-border-grey-3 cl-border-t cl-flex cl-flex-wrap cl-text-sm cl-w-full" }, Is = { class: "cl-border-b cl-border-grey-2 cl-flex cl-py-2 cl-text-sm cl-w-full" }, Ns = { class: "cl-flex-1 cl-py-2" }, Rs = { class: "cl-py-2 cl-w-1/4" }, Us = { class: "cl-py-2 cl-w-1/5" }, zs = { class: "cl-flex-1 cl-py-2" }, Bs = { class: "cl-py-2 cl-w-1/4" }, Ls = { class: "cl-py-2 cl-text-off-white cl-w-1/5" }, Fs = { key: 1 }, js = /* @__PURE__ */ j({
|
|
4585
4581
|
inheritAttrs: !1,
|
|
4586
4582
|
__name: "cl-ui-grid-view-manager",
|
|
4587
4583
|
props: {
|
|
@@ -4621,33 +4617,33 @@ const ss = {
|
|
|
4621
4617
|
(u(), L(Tl, { to: "body" }, [
|
|
4622
4618
|
q(Ne, { name: "slide-left" }, {
|
|
4623
4619
|
default: M(() => [
|
|
4624
|
-
se(h("div",
|
|
4625
|
-
h("div",
|
|
4620
|
+
se(h("div", Es, [
|
|
4621
|
+
h("div", As, [
|
|
4626
4622
|
q(m(le), {
|
|
4627
4623
|
class: "cl-absolute cl-cursor-pointer cl-right-3 cl-text-off-white cl-top-3",
|
|
4628
4624
|
icon: "ph:x",
|
|
4629
4625
|
size: 16,
|
|
4630
4626
|
onClick: c[1] || (c[1] = (p) => a.value = !1)
|
|
4631
4627
|
}),
|
|
4632
|
-
h("h3",
|
|
4633
|
-
h("ul",
|
|
4634
|
-
h("li",
|
|
4635
|
-
h("strong",
|
|
4636
|
-
h("strong",
|
|
4637
|
-
h("strong",
|
|
4628
|
+
h("h3", Vs, R(m(r)("grid.manageView")), 1),
|
|
4629
|
+
h("ul", Ms, [
|
|
4630
|
+
h("li", Is, [
|
|
4631
|
+
h("strong", Ns, R(m(r)("grid.column")), 1),
|
|
4632
|
+
h("strong", Rs, R(m(r)("grid.visible")), 1),
|
|
4633
|
+
h("strong", Us, R(m(r)("grid.order")), 1)
|
|
4638
4634
|
]),
|
|
4639
4635
|
(u(!0), g(K, null, _(i.value, (p, w) => (u(), g("li", {
|
|
4640
4636
|
key: w,
|
|
4641
4637
|
class: "cl-border-b cl-border-grey-2 cl-flex cl-py-2 cl-text-sm cl-w-full"
|
|
4642
4638
|
}, [
|
|
4643
|
-
h("div",
|
|
4644
|
-
h("div",
|
|
4639
|
+
h("div", zs, R(p.viewManagerCaption ? m(r)(p.viewManagerCaption) : m(r)(p.caption)), 1),
|
|
4640
|
+
h("div", Bs, [
|
|
4645
4641
|
q(cl, {
|
|
4646
4642
|
"model-value": p.visible === void 0 || p.visible === !0,
|
|
4647
4643
|
"onUpdate:modelValue": (y) => b(y, p)
|
|
4648
4644
|
}, null, 8, ["model-value", "onUpdate:modelValue"])
|
|
4649
4645
|
]),
|
|
4650
|
-
h("div",
|
|
4646
|
+
h("div", Ls, [
|
|
4651
4647
|
p.visible === void 0 || p.visible === !0 ? (u(), g(K, { key: 0 }, [
|
|
4652
4648
|
w !== 0 ? (u(), L(m(le), {
|
|
4653
4649
|
key: 0,
|
|
@@ -4661,7 +4657,7 @@ const ss = {
|
|
|
4661
4657
|
icon: "ph:arrow-right",
|
|
4662
4658
|
onClick: (y) => n(p, "up")
|
|
4663
4659
|
}, null, 8, ["onClick"])) : U("", !0)
|
|
4664
|
-
], 64)) : (u(), g("em",
|
|
4660
|
+
], 64)) : (u(), g("em", Fs, R(m(r)("grid.hidden")), 1))
|
|
4665
4661
|
])
|
|
4666
4662
|
]))), 128))
|
|
4667
4663
|
])
|
|
@@ -4675,10 +4671,10 @@ const ss = {
|
|
|
4675
4671
|
]))
|
|
4676
4672
|
], 64));
|
|
4677
4673
|
}
|
|
4678
|
-
}),
|
|
4674
|
+
}), Ps = { class: "cl-relative cl-w-full grid-wrapper lg:cl-min-h-fit" }, Hs = {
|
|
4679
4675
|
key: 0,
|
|
4680
4676
|
class: "cl-absolute cl-flex cl-items-center cl-justify-center cl-min-h-full cl-p-28 cl-pt-0 cl-w-full"
|
|
4681
|
-
},
|
|
4677
|
+
}, Gs = { class: "cl-overflow-x-auto cl-overscroll-x-none cl-pt-1" }, Zs = /* @__PURE__ */ j({
|
|
4682
4678
|
__name: "cl-ui-grid",
|
|
4683
4679
|
props: {
|
|
4684
4680
|
columns: {},
|
|
@@ -4693,7 +4689,7 @@ const ss = {
|
|
|
4693
4689
|
emits: ["update:columns", "update:request", "data-request", "row-edit", "row-edit-cancelled", "edit-start", "edit-end", "row-select"],
|
|
4694
4690
|
setup(o, { expose: l, emit: t }) {
|
|
4695
4691
|
var $e;
|
|
4696
|
-
const e = o, r = t, { lg: a } = lt(tt), i = Object.keys(It()).some((z) => z.endsWith("BulkEdit")), d =
|
|
4692
|
+
const e = o, r = t, { lg: a } = lt(tt), i = Object.keys(It()).some((z) => z.endsWith("BulkEdit")), d = Ze();
|
|
4697
4693
|
vl("cl-ui-grid-id", d.id);
|
|
4698
4694
|
const b = $(() => e.headerDisplayTimezone ?? e.timeZone), n = $(() => e.dateFormatLocale);
|
|
4699
4695
|
vl(ul, n);
|
|
@@ -4734,7 +4730,7 @@ const ss = {
|
|
|
4734
4730
|
}
|
|
4735
4731
|
}), I = V(!1);
|
|
4736
4732
|
te(P, () => {
|
|
4737
|
-
P.value ? r("edit-start") :
|
|
4733
|
+
P.value ? r("edit-start") : Fe(() => r("edit-end"));
|
|
4738
4734
|
});
|
|
4739
4735
|
const k = $(() => ({
|
|
4740
4736
|
rowSelectionEnabled: !1,
|
|
@@ -4767,7 +4763,7 @@ const ss = {
|
|
|
4767
4763
|
B.value = !1;
|
|
4768
4764
|
}, {
|
|
4769
4765
|
once: !0
|
|
4770
|
-
}),
|
|
4766
|
+
}), Ge(() => {
|
|
4771
4767
|
window.addEventListener("resize", Je(w, 50)), w();
|
|
4772
4768
|
}), Cl(() => window.removeEventListener("resize", Je(w, 50))), te(() => e.data, () => {
|
|
4773
4769
|
z();
|
|
@@ -4782,11 +4778,11 @@ const ss = {
|
|
|
4782
4778
|
var z;
|
|
4783
4779
|
return (z = ee.value) == null ? void 0 : z.focusMegaSearch();
|
|
4784
4780
|
}
|
|
4785
|
-
}), (z, X) => (u(), g("div",
|
|
4781
|
+
}), (z, X) => (u(), g("div", Ps, [
|
|
4786
4782
|
B.value && G.value.length > 0 ? (u(), L(m(ql), {
|
|
4787
4783
|
key: 0,
|
|
4788
4784
|
class: "cl-h-[39px] cl-mb-2"
|
|
4789
|
-
})) : G.value.length > 0 ? (u(), L(
|
|
4785
|
+
})) : G.value.length > 0 ? (u(), L(Os, {
|
|
4790
4786
|
key: 1,
|
|
4791
4787
|
ref_key: "gridSearchRef",
|
|
4792
4788
|
ref: ee,
|
|
@@ -4803,13 +4799,13 @@ const ss = {
|
|
|
4803
4799
|
}, 8, ["search-value", "request", "columns"])) : U("", !0),
|
|
4804
4800
|
q(Ne, { name: "fade" }, {
|
|
4805
4801
|
default: M(() => [
|
|
4806
|
-
z.loading && B.value === !1 ? (u(), g("div",
|
|
4802
|
+
z.loading && B.value === !1 ? (u(), g("div", Hs, [
|
|
4807
4803
|
q(_e, { class: "after:!cl-h-20 after:!cl-w-20 cl-h-20 cl-w-20" })
|
|
4808
4804
|
])) : U("", !0)
|
|
4809
4805
|
]),
|
|
4810
4806
|
_: 1
|
|
4811
4807
|
}),
|
|
4812
|
-
q(
|
|
4808
|
+
q(wa, {
|
|
4813
4809
|
"edit-mode": S.value,
|
|
4814
4810
|
"onUpdate:editMode": X[3] || (X[3] = (J) => S.value = J),
|
|
4815
4811
|
"filter-panel-open": I.value,
|
|
@@ -4826,7 +4822,7 @@ const ss = {
|
|
|
4826
4822
|
D(z.$slots, "additional-grid-actions", me(be(J)))
|
|
4827
4823
|
]),
|
|
4828
4824
|
"view-manager": M(() => [
|
|
4829
|
-
q(
|
|
4825
|
+
q(js, {
|
|
4830
4826
|
columns: s.value,
|
|
4831
4827
|
"onUpdate:columns": X[2] || (X[2] = (J) => s.value = J),
|
|
4832
4828
|
loading: z.loading
|
|
@@ -4834,7 +4830,7 @@ const ss = {
|
|
|
4834
4830
|
]),
|
|
4835
4831
|
_: 3
|
|
4836
4832
|
}, 8, ["edit-mode", "filter-panel-open", "can-bulk-edit", "columns", "options", "request", "loading", "initial-load"]),
|
|
4837
|
-
h("div",
|
|
4833
|
+
h("div", Gs, [
|
|
4838
4834
|
h("table", {
|
|
4839
4835
|
class: O(["cl-delay-75 cl-min-h-[276px] cl-overflow-x-auto cl-overscroll-x-none cl-text-left cl-transition-opacity cl-w-full", {
|
|
4840
4836
|
"cl-opacity-40 cl-pointer-events-none": z.loading && B.value === !1
|
|
@@ -4851,7 +4847,7 @@ const ss = {
|
|
|
4851
4847
|
span: 1
|
|
4852
4848
|
}, null, 4))), 128))
|
|
4853
4849
|
], 2),
|
|
4854
|
-
q(
|
|
4850
|
+
q(Ss, {
|
|
4855
4851
|
request: W.value,
|
|
4856
4852
|
"onUpdate:request": X[5] || (X[5] = (J) => W.value = J),
|
|
4857
4853
|
"filter-panel-open": I.value,
|
|
@@ -4872,7 +4868,7 @@ const ss = {
|
|
|
4872
4868
|
])
|
|
4873
4869
|
}))
|
|
4874
4870
|
]), 1032, ["request", "filter-panel-open", "columns", "options", "loading", "initial-load", "bulk-edit-mode", "time-zone", "header-display-timezone"]),
|
|
4875
|
-
q(
|
|
4871
|
+
q(_a, {
|
|
4876
4872
|
columns: c.value,
|
|
4877
4873
|
request: f.value,
|
|
4878
4874
|
data: E.value,
|
|
@@ -4896,7 +4892,7 @@ const ss = {
|
|
|
4896
4892
|
]), 1032, ["columns", "request", "data", "time-zone", "loading", "initial-load", "search-value", "options", "edit-mode"])
|
|
4897
4893
|
], 2)
|
|
4898
4894
|
]),
|
|
4899
|
-
z.options.hidePagination !== !0 ? (u(), L(
|
|
4895
|
+
z.options.hidePagination !== !0 ? (u(), L(Sn, {
|
|
4900
4896
|
key: 2,
|
|
4901
4897
|
request: f.value,
|
|
4902
4898
|
loading: z.loading,
|
|
@@ -4910,7 +4906,7 @@ const ss = {
|
|
|
4910
4906
|
}, null, 8, ["request", "loading", "initial-load", "show-unsaved-changes-warning", "data", "options"])) : U("", !0)
|
|
4911
4907
|
]));
|
|
4912
4908
|
}
|
|
4913
|
-
}),
|
|
4909
|
+
}), Ws = { class: "cl-relative" }, Ks = ["id"], Qs = /* @__PURE__ */ j({
|
|
4914
4910
|
inheritAttrs: !1,
|
|
4915
4911
|
__name: "cl-ui-grid-lite",
|
|
4916
4912
|
props: /* @__PURE__ */ de({
|
|
@@ -4927,7 +4923,7 @@ const ss = {
|
|
|
4927
4923
|
}),
|
|
4928
4924
|
emits: ["update:columns", "update:request"],
|
|
4929
4925
|
setup(o) {
|
|
4930
|
-
const l = o, t = ke(o, "columns"), e = ke(o, "request"), { id: r, ...a } =
|
|
4926
|
+
const l = o, t = ke(o, "columns"), e = ke(o, "request"), { id: r, ...a } = Ze(), i = r ?? "cl-ui-grid-lite", d = $(() => l.dateFormatLocale);
|
|
4931
4927
|
vl(ul, d);
|
|
4932
4928
|
const b = $(() => t.value.filter((w) => w.visible ?? !0));
|
|
4933
4929
|
function n() {
|
|
@@ -4947,7 +4943,7 @@ const ss = {
|
|
|
4947
4943
|
p.value = !1;
|
|
4948
4944
|
}, {
|
|
4949
4945
|
once: !0
|
|
4950
|
-
}), (w, y) => (u(), g("div",
|
|
4946
|
+
}), (w, y) => (u(), g("div", Ws, [
|
|
4951
4947
|
h("div", Q({ id: m(i) }, a, {
|
|
4952
4948
|
class: ["cl-border cl-border-off-white cl-grid cl-overflow-hidden cl-rounded cl-text-base cl-w-full", {
|
|
4953
4949
|
"cl-opacity-60": w.loading,
|
|
@@ -4994,7 +4990,7 @@ const ss = {
|
|
|
4994
4990
|
"initial-load": p.value,
|
|
4995
4991
|
options: c.value
|
|
4996
4992
|
}, null, 8, ["request", "inert", "grid-id", "data", "initial-load", "options"])) : U("", !0)
|
|
4997
|
-
], 16,
|
|
4993
|
+
], 16, Ks),
|
|
4998
4994
|
w.loading && !p.value ? (u(), L(_e, {
|
|
4999
4995
|
key: 0,
|
|
5000
4996
|
class: "after:!cl-h-14 after:!cl-w-14 cl-absolute cl-left-1/2 cl-top-20"
|
|
@@ -5006,7 +5002,7 @@ function gl(o) {
|
|
|
5006
5002
|
const l = o.type !== "slot" || o.slotType !== void 0 && o.field !== void 0, t = o.sortable ?? !0;
|
|
5007
5003
|
return l && t;
|
|
5008
5004
|
}
|
|
5009
|
-
const
|
|
5005
|
+
const Ys = { class: "cl-col-[1_/_-1] cl-grid cl-grid-cols-subgrid" }, Js = ["id", "onClick"], kt = /* @__PURE__ */ j({
|
|
5010
5006
|
inheritAttrs: !1,
|
|
5011
5007
|
__name: "cl-ui-grid-lite-header",
|
|
5012
5008
|
props: /* @__PURE__ */ de({
|
|
@@ -5036,7 +5032,7 @@ const Qs = { class: "cl-col-[1_/_-1] cl-grid cl-grid-cols-subgrid" }, Ys = ["id"
|
|
|
5036
5032
|
}
|
|
5037
5033
|
return (a, i) => {
|
|
5038
5034
|
const d = Se("icon");
|
|
5039
|
-
return u(), g("div",
|
|
5035
|
+
return u(), g("div", Ys, [
|
|
5040
5036
|
(u(!0), g(K, null, _(a.columns, (b, n) => (u(), g("div", Q({ ref_for: !0 }, a.$attrs, {
|
|
5041
5037
|
id: `${a.gridId}-header-${b.name}`,
|
|
5042
5038
|
key: b.name,
|
|
@@ -5079,7 +5075,7 @@ const Qs = { class: "cl-col-[1_/_-1] cl-grid cl-grid-cols-subgrid" }, Ys = ["id"
|
|
|
5079
5075
|
], 2), [
|
|
5080
5076
|
[fe, m(gl)(b)]
|
|
5081
5077
|
])
|
|
5082
|
-
], 16,
|
|
5078
|
+
], 16, Js))), 128))
|
|
5083
5079
|
]);
|
|
5084
5080
|
};
|
|
5085
5081
|
}
|
|
@@ -5102,7 +5098,7 @@ const Qs = { class: "cl-col-[1_/_-1] cl-grid cl-grid-cols-subgrid" }, Ys = ["id"
|
|
|
5102
5098
|
}, " ", 2))), 128))
|
|
5103
5099
|
]))), 128));
|
|
5104
5100
|
}
|
|
5105
|
-
}),
|
|
5101
|
+
}), Xs = { class: "cl-col-[1_/_-1] cl-grid cl-grid-cols-subgrid" }, Tt = /* @__PURE__ */ j({
|
|
5106
5102
|
inheritAttrs: !1,
|
|
5107
5103
|
__name: "cl-ui-grid-lite-row",
|
|
5108
5104
|
props: {
|
|
@@ -5113,7 +5109,7 @@ const Qs = { class: "cl-col-[1_/_-1] cl-grid cl-grid-cols-subgrid" }, Ys = ["id"
|
|
|
5113
5109
|
gridId: {}
|
|
5114
5110
|
},
|
|
5115
5111
|
setup(o) {
|
|
5116
|
-
return (l, t) => (u(), g("div",
|
|
5112
|
+
return (l, t) => (u(), g("div", Xs, [
|
|
5117
5113
|
(u(!0), g(K, null, _(l.columns, (e, r) => (u(), L(m(St), Q({ ref_for: !0 }, l.$attrs, {
|
|
5118
5114
|
id: `${l.gridId}-c${r}`,
|
|
5119
5115
|
key: e.name,
|
|
@@ -5134,7 +5130,7 @@ const Qs = { class: "cl-col-[1_/_-1] cl-grid cl-grid-cols-subgrid" }, Ys = ["id"
|
|
|
5134
5130
|
]), 1040, ["id", "data", "time-zone", "column", "is-small-grid", "class"]))), 128))
|
|
5135
5131
|
]));
|
|
5136
5132
|
}
|
|
5137
|
-
}),
|
|
5133
|
+
}), xs = { class: "cl-col-[1_/_-1] cl-grid cl-grid-cols-subgrid" }, Ct = /* @__PURE__ */ j({
|
|
5138
5134
|
__name: "cl-ui-grid-lite-body",
|
|
5139
5135
|
props: {
|
|
5140
5136
|
columns: {},
|
|
@@ -5149,7 +5145,7 @@ const Qs = { class: "cl-col-[1_/_-1] cl-grid cl-grid-cols-subgrid" }, Ys = ["id"
|
|
|
5149
5145
|
const l = o, { t } = ce(), e = $(() => l.options.smallGridText ?? !1), r = $(() => l.options.alternatingRows ?? !1);
|
|
5150
5146
|
return (a, i) => {
|
|
5151
5147
|
var d;
|
|
5152
|
-
return u(), g("div",
|
|
5148
|
+
return u(), g("div", xs, [
|
|
5153
5149
|
a.initialLoad && a.pageSize > 0 ? (u(), L($t, {
|
|
5154
5150
|
key: 0,
|
|
5155
5151
|
"page-size": a.pageSize,
|
|
@@ -5188,10 +5184,10 @@ const Qs = { class: "cl-col-[1_/_-1] cl-grid cl-grid-cols-subgrid" }, Ys = ["id"
|
|
|
5188
5184
|
]);
|
|
5189
5185
|
};
|
|
5190
5186
|
}
|
|
5191
|
-
}),
|
|
5187
|
+
}), _s = ["id"], er = ["id"], lr = ["id"], tr = {
|
|
5192
5188
|
key: 5,
|
|
5193
5189
|
class: "cl-inline-block cl-whitespace-nowrap"
|
|
5194
|
-
},
|
|
5190
|
+
}, or = ["id", "innerHTML"], St = /* @__PURE__ */ j({
|
|
5195
5191
|
inheritAttrs: !1,
|
|
5196
5192
|
__name: "cl-ui-grid-lite-cell",
|
|
5197
5193
|
props: {
|
|
@@ -5201,7 +5197,7 @@ const Qs = { class: "cl-col-[1_/_-1] cl-grid cl-grid-cols-subgrid" }, Ys = ["id"
|
|
|
5201
5197
|
isSmallGrid: { type: Boolean }
|
|
5202
5198
|
},
|
|
5203
5199
|
setup(o) {
|
|
5204
|
-
const l = o, { id: t, ...e } =
|
|
5200
|
+
const l = o, { id: t, ...e } = Ze(), r = il(ul), { t: a, locale: i } = ce();
|
|
5205
5201
|
function d(s, c) {
|
|
5206
5202
|
let p;
|
|
5207
5203
|
l.timeZone ? p = Y.fromISO(s, {
|
|
@@ -5277,26 +5273,26 @@ const Qs = { class: "cl-col-[1_/_-1] cl-grid cl-grid-cols-subgrid" }, Ys = ["id"
|
|
|
5277
5273
|
], 64)) : (u(), g(K, { key: 2 }, [
|
|
5278
5274
|
ue(R(d(s.data[s.column.field], m(ie).DATETIME)), 1)
|
|
5279
5275
|
], 64))
|
|
5280
|
-
], 8,
|
|
5276
|
+
], 8, _s)) : s.column.type === "list" && s.column.field !== void 0 && s.column.listEntries !== void 0 ? (u(), g("span", {
|
|
5281
5277
|
key: 3,
|
|
5282
5278
|
id: m(t),
|
|
5283
5279
|
class: "cl-inline-block cl-whitespace-nowrap"
|
|
5284
|
-
}, R(m(a)(((p = s.column.listEntries.find((w) => w.value === s.data[s.column.field])) == null ? void 0 : p.translationKey) ?? "")), 9,
|
|
5280
|
+
}, R(m(a)(((p = s.column.listEntries.find((w) => w.value === s.data[s.column.field])) == null ? void 0 : p.translationKey) ?? "")), 9, er)) : s.column.type === "number" && s.column.field !== void 0 ? (u(), g("span", {
|
|
5285
5281
|
key: 4,
|
|
5286
5282
|
id: m(t),
|
|
5287
5283
|
class: "cl-inline-block cl-whitespace-nowrap"
|
|
5288
|
-
}, R(n(s.data[s.column.field], m(i))), 9,
|
|
5284
|
+
}, R(n(s.data[s.column.field], m(i))), 9, lr)) : s.column.field !== void 0 ? (u(), g("span", tr, [
|
|
5289
5285
|
h("span", {
|
|
5290
5286
|
id: m(t),
|
|
5291
5287
|
innerHTML: b()
|
|
5292
|
-
}, null, 8,
|
|
5288
|
+
}, null, 8, or)
|
|
5293
5289
|
])) : U("", !0)
|
|
5294
5290
|
], 16);
|
|
5295
5291
|
};
|
|
5296
5292
|
}
|
|
5297
|
-
}),
|
|
5298
|
-
function
|
|
5299
|
-
return u(), g("div",
|
|
5293
|
+
}), ar = {}, nr = { class: "cl-border cl-border-off-white cl-border-t cl-flex cl-justify-between cl-p-2" };
|
|
5294
|
+
function sr(o, l) {
|
|
5295
|
+
return u(), g("div", nr, l[0] || (l[0] = [
|
|
5300
5296
|
h("div", { class: "cl-flex cl-gap-2 cl-w-full" }, [
|
|
5301
5297
|
h("p", { class: "cl-animate-pulse cl-basis-3/12 cl-bg-grey-1 cl-leading-none cl-rounded-full" }, " "),
|
|
5302
5298
|
h("p", { class: "cl-animate-pulse cl-basis-1/12 cl-bg-grey-1 cl-leading-none cl-rounded-full" }, " ")
|
|
@@ -5304,10 +5300,10 @@ function nr(o, l) {
|
|
|
5304
5300
|
h("p", { class: "cl-animate-pulse cl-basis-1/12 cl-bg-grey-1 cl-leading-none cl-rounded-full" }, " ", -1)
|
|
5305
5301
|
]));
|
|
5306
5302
|
}
|
|
5307
|
-
const qt = /* @__PURE__ */ Te(
|
|
5303
|
+
const qt = /* @__PURE__ */ Te(ar, [["render", sr]]), rr = { class: "cl-flex cl-gap-4" }, ir = { class: "cl-mr-2" }, ur = {
|
|
5308
5304
|
key: 0,
|
|
5309
5305
|
class: "cl-flex cl-gap-0.5"
|
|
5310
|
-
},
|
|
5306
|
+
}, cr = { class: "cl-mr-1 cl-w-full" }, dr = ["id", "onClick"], pr = { class: "cl-flex cl-gap-1 cl-items-center" }, fr = ["id"], mr = ["id"], gr = ["id", "onClick"], vr = ["id"], hr = ["id"], Dt = /* @__PURE__ */ j({
|
|
5311
5307
|
__name: "cl-ui-grid-lite-footer",
|
|
5312
5308
|
props: /* @__PURE__ */ de({
|
|
5313
5309
|
gridId: {},
|
|
@@ -5358,13 +5354,13 @@ const qt = /* @__PURE__ */ Te(or, [["render", nr]]), sr = { class: "cl-flex cl-g
|
|
|
5358
5354
|
s.options.smallGridText ? "cl-px-1 cl-py-1.5 cl-text-xs" : "cl-p-2 cl-text-sm"
|
|
5359
5355
|
]])
|
|
5360
5356
|
}, [
|
|
5361
|
-
h("div",
|
|
5357
|
+
h("div", rr, [
|
|
5362
5358
|
h("div", null, [
|
|
5363
|
-
h("span",
|
|
5359
|
+
h("span", ir, R(m(e)("grid.page")), 1),
|
|
5364
5360
|
h("span", null, R(m(De)(t.value.pageNumber)) + " / " + R(m(De)(r.value)), 1)
|
|
5365
5361
|
]),
|
|
5366
|
-
b.value.length && s.options.showPageSizeOptions ? (u(), g("ul",
|
|
5367
|
-
h("li",
|
|
5362
|
+
b.value.length && s.options.showPageSizeOptions ? (u(), g("ul", ur, [
|
|
5363
|
+
h("li", cr, R(m(e)("grid.pageSize")), 1),
|
|
5368
5364
|
(u(!0), g(K, null, _(b.value, (y, f) => (u(), g("li", {
|
|
5369
5365
|
id: `${s.gridId}-page-size-${y}`,
|
|
5370
5366
|
key: f,
|
|
@@ -5373,11 +5369,11 @@ const qt = /* @__PURE__ */ Te(or, [["render", nr]]), sr = { class: "cl-flex cl-g
|
|
|
5373
5369
|
"cl-border-b-transparent hover:cl-border-b-link-lighter hover:cl-text-link-light cl-cursor-pointer": t.value.pageSize !== y
|
|
5374
5370
|
}]),
|
|
5375
5371
|
onClick: (C) => t.value.pageSize !== y ? n(y) : null
|
|
5376
|
-
}, R(m(De)(y)), 11,
|
|
5372
|
+
}, R(m(De)(y)), 11, dr))), 128))
|
|
5377
5373
|
])) : U("", !0)
|
|
5378
5374
|
]),
|
|
5379
5375
|
h("div", null, [
|
|
5380
|
-
h("ul",
|
|
5376
|
+
h("ul", pr, [
|
|
5381
5377
|
h("li", {
|
|
5382
5378
|
id: `${s.gridId}-page-first`,
|
|
5383
5379
|
class: O({
|
|
@@ -5390,7 +5386,7 @@ const qt = /* @__PURE__ */ Te(or, [["render", nr]]), sr = { class: "cl-flex cl-g
|
|
|
5390
5386
|
icon: "ph:caret-double-left-bold",
|
|
5391
5387
|
size: 14
|
|
5392
5388
|
})
|
|
5393
|
-
], 10,
|
|
5389
|
+
], 10, fr),
|
|
5394
5390
|
h("li", {
|
|
5395
5391
|
id: `${s.gridId}-page-previous`,
|
|
5396
5392
|
class: O({
|
|
@@ -5403,7 +5399,7 @@ const qt = /* @__PURE__ */ Te(or, [["render", nr]]), sr = { class: "cl-flex cl-g
|
|
|
5403
5399
|
icon: "ph:caret-left-bold",
|
|
5404
5400
|
size: 14
|
|
5405
5401
|
})
|
|
5406
|
-
], 10,
|
|
5402
|
+
], 10, mr),
|
|
5407
5403
|
(u(!0), g(K, null, _(a.value, (y, f) => (u(), g("li", {
|
|
5408
5404
|
id: `${s.gridId}-page-${y}`,
|
|
5409
5405
|
key: f,
|
|
@@ -5412,7 +5408,7 @@ const qt = /* @__PURE__ */ Te(or, [["render", nr]]), sr = { class: "cl-flex cl-g
|
|
|
5412
5408
|
"cl-cursor-pointer ": t.value.pageNumber !== y
|
|
5413
5409
|
}]),
|
|
5414
5410
|
onClick: (C) => t.value.pageNumber !== y ? i(y) : null
|
|
5415
|
-
}, R(m(De)(y)), 11,
|
|
5411
|
+
}, R(m(De)(y)), 11, gr))), 128)),
|
|
5416
5412
|
h("li", {
|
|
5417
5413
|
id: `${s.gridId}-page-next`,
|
|
5418
5414
|
class: O({
|
|
@@ -5425,7 +5421,7 @@ const qt = /* @__PURE__ */ Te(or, [["render", nr]]), sr = { class: "cl-flex cl-g
|
|
|
5425
5421
|
icon: "ph:caret-right-bold",
|
|
5426
5422
|
size: 14
|
|
5427
5423
|
})
|
|
5428
|
-
], 10,
|
|
5424
|
+
], 10, vr),
|
|
5429
5425
|
h("li", {
|
|
5430
5426
|
id: `${s.gridId}-page-last`,
|
|
5431
5427
|
class: O({
|
|
@@ -5438,13 +5434,13 @@ const qt = /* @__PURE__ */ Te(or, [["render", nr]]), sr = { class: "cl-flex cl-g
|
|
|
5438
5434
|
icon: "ph:caret-double-right-bold",
|
|
5439
5435
|
size: 14
|
|
5440
5436
|
})
|
|
5441
|
-
], 10,
|
|
5437
|
+
], 10, hr)
|
|
5442
5438
|
])
|
|
5443
5439
|
])
|
|
5444
5440
|
], 2)) : U("", !0);
|
|
5445
5441
|
};
|
|
5446
5442
|
}
|
|
5447
|
-
}),
|
|
5443
|
+
}), br = { 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" }, yr = /* @__PURE__ */ j({
|
|
5448
5444
|
__name: "cl-ui-header",
|
|
5449
5445
|
props: {
|
|
5450
5446
|
isOpen: { type: Boolean }
|
|
@@ -5454,7 +5450,7 @@ const qt = /* @__PURE__ */ Te(or, [["render", nr]]), sr = { class: "cl-flex cl-g
|
|
|
5454
5450
|
const t = o, e = l, r = V();
|
|
5455
5451
|
return xe(r, () => {
|
|
5456
5452
|
(t.isOpen ?? !1) && e("open-click");
|
|
5457
|
-
}), (a, i) => (u(), g("header",
|
|
5453
|
+
}), (a, i) => (u(), g("header", br, [
|
|
5458
5454
|
D(a.$slots, "logo"),
|
|
5459
5455
|
h("div", {
|
|
5460
5456
|
ref_key: "headerMenuElement",
|
|
@@ -5467,15 +5463,15 @@ const qt = /* @__PURE__ */ Te(or, [["render", nr]]), sr = { class: "cl-flex cl-g
|
|
|
5467
5463
|
], 512)
|
|
5468
5464
|
]));
|
|
5469
5465
|
}
|
|
5470
|
-
}),
|
|
5466
|
+
}), wr = { 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]" }, kr = ["src"], $r = {
|
|
5471
5467
|
key: 0,
|
|
5472
5468
|
id: "cl-ui-header-menu-username",
|
|
5473
5469
|
class: "cl-text-ellipsis cl-whitespace-nowrap"
|
|
5474
|
-
},
|
|
5470
|
+
}, Tr = {
|
|
5475
5471
|
key: 1,
|
|
5476
5472
|
id: "cl-ui-header-menu-group",
|
|
5477
5473
|
class: "cl-text-ellipsis cl-text-xs cl-whitespace-nowrap"
|
|
5478
|
-
},
|
|
5474
|
+
}, Cr = { 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" }, Sr = { class: "cl-absolute cl-bg-white cl-right-0 cl-shadow-2xl cl-top-20 cl-w-full cl-z-20" }, qr = /* @__PURE__ */ j({
|
|
5479
5475
|
__name: "cl-ui-header-menu",
|
|
5480
5476
|
props: {
|
|
5481
5477
|
username: { default: "" },
|
|
@@ -5491,12 +5487,12 @@ const qt = /* @__PURE__ */ Te(or, [["render", nr]]), sr = { class: "cl-flex cl-g
|
|
|
5491
5487
|
"cl-bg-blue-light": l.colour === "secondary"
|
|
5492
5488
|
}])
|
|
5493
5489
|
}, [
|
|
5494
|
-
h("div",
|
|
5490
|
+
h("div", wr, [
|
|
5495
5491
|
l.image ? (u(), g("img", {
|
|
5496
5492
|
key: 0,
|
|
5497
5493
|
src: l.image,
|
|
5498
5494
|
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"
|
|
5499
|
-
}, null, 8,
|
|
5495
|
+
}, null, 8, kr)) : (u(), L(m(le), {
|
|
5500
5496
|
key: 1,
|
|
5501
5497
|
class: "cl-hidden cl-m-4 cl-text-white md:cl-block",
|
|
5502
5498
|
icon: "ph:user-circle",
|
|
@@ -5509,10 +5505,10 @@ const qt = /* @__PURE__ */ Te(or, [["render", nr]]), sr = { class: "cl-flex cl-g
|
|
|
5509
5505
|
"cl-text-white": l.colour === "secondary"
|
|
5510
5506
|
}])
|
|
5511
5507
|
}, [
|
|
5512
|
-
l.username ? (u(), g("div",
|
|
5513
|
-
l.group ? (u(), g("div",
|
|
5508
|
+
l.username ? (u(), g("div", $r, R(l.username), 1)) : U("", !0),
|
|
5509
|
+
l.group ? (u(), g("div", Tr, R(l.group), 1)) : U("", !0)
|
|
5514
5510
|
], 2),
|
|
5515
|
-
h("div",
|
|
5511
|
+
h("div", Cr, [
|
|
5516
5512
|
q(m(le), {
|
|
5517
5513
|
class: O(["cl-transform-gpu cl-transition-transform", {
|
|
5518
5514
|
"cl-rotate-180": l.isOpen,
|
|
@@ -5525,7 +5521,7 @@ const qt = /* @__PURE__ */ Te(or, [["render", nr]]), sr = { class: "cl-flex cl-g
|
|
|
5525
5521
|
]),
|
|
5526
5522
|
q(Ne, { name: "fade" }, {
|
|
5527
5523
|
default: M(() => [
|
|
5528
|
-
se(h("div",
|
|
5524
|
+
se(h("div", Sr, [
|
|
5529
5525
|
D(l.$slots, "default")
|
|
5530
5526
|
], 512), [
|
|
5531
5527
|
[fe, l.isOpen]
|
|
@@ -5535,10 +5531,10 @@ const qt = /* @__PURE__ */ Te(or, [["render", nr]]), sr = { class: "cl-flex cl-g
|
|
|
5535
5531
|
})
|
|
5536
5532
|
], 2));
|
|
5537
5533
|
}
|
|
5538
|
-
}),
|
|
5534
|
+
}), Dr = [
|
|
5539
5535
|
"default",
|
|
5540
5536
|
"secondary"
|
|
5541
|
-
],
|
|
5537
|
+
], Or = /* @__PURE__ */ j({
|
|
5542
5538
|
inheritAttrs: !1,
|
|
5543
5539
|
__name: "cl-ui-calendar",
|
|
5544
5540
|
props: {
|
|
@@ -5575,12 +5571,12 @@ const qt = /* @__PURE__ */ Te(or, [["render", nr]]), sr = { class: "cl-flex cl-g
|
|
|
5575
5571
|
if (e.type === "time")
|
|
5576
5572
|
P = S;
|
|
5577
5573
|
else if (S !== null && e.type !== "dateRange")
|
|
5578
|
-
P =
|
|
5574
|
+
P = Pe(S, null, !0, e.timeZone);
|
|
5579
5575
|
else if (S !== null) {
|
|
5580
5576
|
const I = S;
|
|
5581
5577
|
P = {
|
|
5582
|
-
start:
|
|
5583
|
-
end:
|
|
5578
|
+
start: Pe(I.start, "start", !1, e.timeZone) ?? "",
|
|
5579
|
+
end: Pe(I.end, "end", !1, e.timeZone) ?? ""
|
|
5584
5580
|
};
|
|
5585
5581
|
}
|
|
5586
5582
|
r("update:date", P);
|
|
@@ -5596,7 +5592,7 @@ const qt = /* @__PURE__ */ Te(or, [["render", nr]]), sr = { class: "cl-flex cl-g
|
|
|
5596
5592
|
var S;
|
|
5597
5593
|
(S = c.value) == null || S.focus();
|
|
5598
5594
|
}
|
|
5599
|
-
}), (S, P) => S.type === "time" ? (u(), L(m(
|
|
5595
|
+
}), (S, P) => S.type === "time" ? (u(), L(m(je), {
|
|
5600
5596
|
key: 0,
|
|
5601
5597
|
modelValue: i.value,
|
|
5602
5598
|
"onUpdate:modelValue": P[1] || (P[1] = (I) => i.value = I),
|
|
@@ -5626,7 +5622,7 @@ const qt = /* @__PURE__ */ Te(or, [["render", nr]]), sr = { class: "cl-flex cl-g
|
|
|
5626
5622
|
}), null, 16, ["date", "events", "type", "placeholder", "required", "disabled"])
|
|
5627
5623
|
]),
|
|
5628
5624
|
_: 1
|
|
5629
|
-
}, 8, ["modelValue", "locale", "is24hr", "mode", "is-required", "masks", "popover"])) : S.type === "dateRange" ? (u(), L(m(
|
|
5625
|
+
}, 8, ["modelValue", "locale", "is24hr", "mode", "is-required", "masks", "popover"])) : S.type === "dateRange" ? (u(), L(m(je), {
|
|
5630
5626
|
key: 1,
|
|
5631
5627
|
ref_key: "calendar",
|
|
5632
5628
|
ref: y,
|
|
@@ -5672,7 +5668,7 @@ const qt = /* @__PURE__ */ Te(or, [["render", nr]]), sr = { class: "cl-flex cl-g
|
|
|
5672
5668
|
}, null, 8, ["scope", "selected-quick-date", "current-date-range"])) : U("", !0)
|
|
5673
5669
|
]),
|
|
5674
5670
|
_: 1
|
|
5675
|
-
}, 8, ["modelValue", "locale", "is24hr", "timezone", "columns", "popover", "min-date", "max-date", "initial-page"])) : (u(), L(m(
|
|
5671
|
+
}, 8, ["modelValue", "locale", "is24hr", "timezone", "columns", "popover", "min-date", "max-date", "initial-page"])) : (u(), L(m(je), {
|
|
5676
5672
|
key: 2,
|
|
5677
5673
|
modelValue: i.value,
|
|
5678
5674
|
"onUpdate:modelValue": P[7] || (P[7] = (I) => i.value = I),
|
|
@@ -5711,7 +5707,7 @@ const qt = /* @__PURE__ */ Te(or, [["render", nr]]), sr = { class: "cl-flex cl-g
|
|
|
5711
5707
|
}), We = [
|
|
5712
5708
|
...vt,
|
|
5713
5709
|
"dateRange"
|
|
5714
|
-
],
|
|
5710
|
+
], Er = ["disabled", "step", "placeholder", "name"], Ar = /* @__PURE__ */ j({
|
|
5715
5711
|
__name: "cl-ui-currency-input",
|
|
5716
5712
|
props: {
|
|
5717
5713
|
modelValue: { type: [String, Object, Number, Boolean, null] },
|
|
@@ -5781,12 +5777,12 @@ const qt = /* @__PURE__ */ Te(or, [["render", nr]]), sr = { class: "cl-flex cl-g
|
|
|
5781
5777
|
onChange: y,
|
|
5782
5778
|
onBlur: p,
|
|
5783
5779
|
onFocus: C[0] || (C[0] = (A) => r("focus"))
|
|
5784
|
-
}, null, 42,
|
|
5780
|
+
}, null, 42, Er));
|
|
5785
5781
|
}
|
|
5786
|
-
}),
|
|
5782
|
+
}), Vr = { class: "cl-flex cl-items-start" }, Mr = { class: "cl-w-full" }, Ir = ["min", "max", "step", "disabled"], Nr = { class: "cl-bg-transparent cl-text-center cl-text-sm cl-w-full" }, Rr = { class: "cl-bg-transparent cl-text-sm" }, Ur = {
|
|
5787
5783
|
key: 1,
|
|
5788
5784
|
class: "cl-emphasis-danger cl-text-sm cl-w-full"
|
|
5789
|
-
},
|
|
5785
|
+
}, zr = /* @__PURE__ */ j({
|
|
5790
5786
|
inheritAttrs: !1,
|
|
5791
5787
|
__name: "cl-ui-slider",
|
|
5792
5788
|
props: /* @__PURE__ */ de({
|
|
@@ -5814,7 +5810,7 @@ const qt = /* @__PURE__ */ Te(or, [["render", nr]]), sr = { class: "cl-flex cl-g
|
|
|
5814
5810
|
(n = a.value) == null || n.focus();
|
|
5815
5811
|
}
|
|
5816
5812
|
}), (n, s) => d.value ? (u(), g("div", me(Q({ key: 0 }, n.$attrs)), [
|
|
5817
|
-
h("div",
|
|
5813
|
+
h("div", Vr, [
|
|
5818
5814
|
h("span", {
|
|
5819
5815
|
class: O(["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", {
|
|
5820
5816
|
"cl-bg-white cl-cursor-pointer hover:cl-border-grey-1": !n.disabled,
|
|
@@ -5822,7 +5818,7 @@ const qt = /* @__PURE__ */ Te(or, [["render", nr]]), sr = { class: "cl-flex cl-g
|
|
|
5822
5818
|
}]),
|
|
5823
5819
|
onClick: s[0] || (s[0] = (c) => e.value = n.disabled ? e.value : n.min)
|
|
5824
5820
|
}, R(Number.isInteger(n.min) ? m(De)(n.min) : m(Me)(n.min, m(ae).DECIMAL)), 3),
|
|
5825
|
-
h("div",
|
|
5821
|
+
h("div", Mr, [
|
|
5826
5822
|
b.value ? (u(), L(ll, {
|
|
5827
5823
|
key: 0,
|
|
5828
5824
|
ref_key: "sliderRef",
|
|
@@ -5853,7 +5849,7 @@ const qt = /* @__PURE__ */ Te(or, [["render", nr]]), sr = { class: "cl-flex cl-g
|
|
|
5853
5849
|
max: n.max,
|
|
5854
5850
|
step: n.step,
|
|
5855
5851
|
disabled: n.disabled
|
|
5856
|
-
}, null, 8,
|
|
5852
|
+
}, null, 8, Ir), [
|
|
5857
5853
|
[
|
|
5858
5854
|
Sl,
|
|
5859
5855
|
e.value,
|
|
@@ -5861,7 +5857,7 @@ const qt = /* @__PURE__ */ Te(or, [["render", nr]]), sr = { class: "cl-flex cl-g
|
|
|
5861
5857
|
{ number: !0 }
|
|
5862
5858
|
]
|
|
5863
5859
|
]),
|
|
5864
|
-
h("div",
|
|
5860
|
+
h("div", Nr, R(Number.isInteger(e.value) ? m(De)(e.value) : m(Me)(e.value, m(ae).DECIMAL)), 1)
|
|
5865
5861
|
], 64))
|
|
5866
5862
|
]),
|
|
5867
5863
|
h("span", {
|
|
@@ -5871,7 +5867,7 @@ const qt = /* @__PURE__ */ Te(or, [["render", nr]]), sr = { class: "cl-flex cl-g
|
|
|
5871
5867
|
}]),
|
|
5872
5868
|
onClick: s[3] || (s[3] = (c) => e.value = n.disabled ? e.value : n.max)
|
|
5873
5869
|
}, R(Number.isInteger(n.max) ? m(De)(n.max) : m(Me)(n.max, m(ae).DECIMAL)), 3),
|
|
5874
|
-
h("div",
|
|
5870
|
+
h("div", Rr, [
|
|
5875
5871
|
h("div", {
|
|
5876
5872
|
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",
|
|
5877
5873
|
onClick: s[4] || (s[4] = (c) => b.value = !b.value)
|
|
@@ -5880,9 +5876,9 @@ const qt = /* @__PURE__ */ Te(or, [["render", nr]]), sr = { class: "cl-flex cl-g
|
|
|
5880
5876
|
])
|
|
5881
5877
|
])
|
|
5882
5878
|
])
|
|
5883
|
-
], 16)) : (u(), g("div",
|
|
5879
|
+
], 16)) : (u(), g("div", Ur, R(m(r)("slider.invalidProps")), 1));
|
|
5884
5880
|
}
|
|
5885
|
-
}),
|
|
5881
|
+
}), Br = /* @__PURE__ */ Te(zr, [["__scopeId", "data-v-5cb4ccea"]]);
|
|
5886
5882
|
function Zl(o) {
|
|
5887
5883
|
let l = !1;
|
|
5888
5884
|
switch (o) {
|
|
@@ -5900,7 +5896,7 @@ function Zl(o) {
|
|
|
5900
5896
|
}
|
|
5901
5897
|
return l;
|
|
5902
5898
|
}
|
|
5903
|
-
function
|
|
5899
|
+
function Lr(o) {
|
|
5904
5900
|
return o === "number" || o === "range";
|
|
5905
5901
|
}
|
|
5906
5902
|
function Wl(o) {
|
|
@@ -5921,7 +5917,7 @@ function Wl(o) {
|
|
|
5921
5917
|
function Ke(o) {
|
|
5922
5918
|
return o === "button" || o === "submit" || o === "reset";
|
|
5923
5919
|
}
|
|
5924
|
-
function
|
|
5920
|
+
function Fr(o) {
|
|
5925
5921
|
let l;
|
|
5926
5922
|
switch (o) {
|
|
5927
5923
|
case "datetime":
|
|
@@ -5942,27 +5938,27 @@ function Lr(o) {
|
|
|
5942
5938
|
}
|
|
5943
5939
|
function Kl(o, l) {
|
|
5944
5940
|
const t = o.target;
|
|
5945
|
-
return
|
|
5941
|
+
return Lr(l) ? t.valueAsNumber : Ke(l) ? t.checked : t.value;
|
|
5946
5942
|
}
|
|
5947
|
-
const
|
|
5943
|
+
const jr = { class: "cl-flex cl-justify-between" }, Pr = { class: "cl-w-full" }, Hr = {
|
|
5948
5944
|
key: 0,
|
|
5949
5945
|
class: "cl-block cl-left-auto cl-relative cl-text-danger-default"
|
|
5950
|
-
},
|
|
5946
|
+
}, Gr = {
|
|
5951
5947
|
key: 1,
|
|
5952
5948
|
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"
|
|
5953
|
-
},
|
|
5949
|
+
}, Zr = {
|
|
5954
5950
|
key: 0,
|
|
5955
5951
|
class: "cl-relative"
|
|
5956
|
-
},
|
|
5952
|
+
}, Wr = ["type", "disabled", "min", "max", "minlength", "maxlength", "step", "placeholder", "name", "autocomplete"], Kr = { key: 0 }, Qr = { key: 1 }, Yr = {
|
|
5957
5953
|
key: 3,
|
|
5958
5954
|
class: "cl-max-h-[2.75rem] cl-pb-0.5"
|
|
5959
|
-
},
|
|
5955
|
+
}, Jr = {
|
|
5960
5956
|
key: 0,
|
|
5961
5957
|
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"
|
|
5962
|
-
},
|
|
5958
|
+
}, Xr = {
|
|
5963
5959
|
key: 1,
|
|
5964
5960
|
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"
|
|
5965
|
-
},
|
|
5961
|
+
}, xr = /* @__PURE__ */ j({
|
|
5966
5962
|
inheritAttrs: !1,
|
|
5967
5963
|
__name: "cl-ui-input",
|
|
5968
5964
|
props: {
|
|
@@ -6041,7 +6037,7 @@ const Fr = { class: "cl-flex cl-justify-between" }, jr = { class: "cl-w-full" },
|
|
|
6041
6037
|
ge(e.customValidationFunction(e.label, v));
|
|
6042
6038
|
})
|
|
6043
6039
|
];
|
|
6044
|
-
return (typeof v == "string" || typeof v == "number") && (Z.push(
|
|
6040
|
+
return (typeof v == "string" || typeof v == "number") && (Z.push(Na(e.min, e.inputType, e.label, v, e.timeZone)), Z.push(Ra(e.max, e.inputType, e.label, v, e.timeZone))), e.isRequired && Z.push(Ua(e.label, v)), e.inputType === "email" && typeof v == "string" && Z.push(za(e.label, v)), Promise.all(Z).then((ge) => {
|
|
6045
6041
|
const pe = [...ge.map((ve) => ve.message)], Ee = ge.some((ve) => ve.message.length > 0 && ve.valid === !1) || e.externalErrors.length > 0;
|
|
6046
6042
|
P.value = !0, Ee ? (I.value = pe, r("validated", !1, v)) : (I.value = [], r("validated", !0, v)), S.value = !Ee;
|
|
6047
6043
|
});
|
|
@@ -6092,7 +6088,7 @@ const Fr = { class: "cl-flex cl-justify-between" }, jr = { class: "cl-w-full" },
|
|
|
6092
6088
|
async function H() {
|
|
6093
6089
|
await he(), Oe();
|
|
6094
6090
|
}
|
|
6095
|
-
return
|
|
6091
|
+
return Ge(() => {
|
|
6096
6092
|
e.validateImmediately && G(e.modelValue, !0);
|
|
6097
6093
|
}), te(() => e.isRequired, () => G(e.modelValue, !0)), te(() => e.externalErrors, async () => {
|
|
6098
6094
|
await B(p.value), r("update:model-value", p.value);
|
|
@@ -6118,15 +6114,15 @@ const Fr = { class: "cl-flex cl-justify-between" }, jr = { class: "cl-w-full" },
|
|
|
6118
6114
|
onMouseenter: N[13] || (N[13] = (Z) => J(!0)),
|
|
6119
6115
|
onMouseleave: N[14] || (N[14] = (Z) => J(!1))
|
|
6120
6116
|
}, [
|
|
6121
|
-
h("div",
|
|
6122
|
-
h("div",
|
|
6117
|
+
h("div", jr, [
|
|
6118
|
+
h("div", Pr, [
|
|
6123
6119
|
se(h("label", { class: "cl-block cl-mb-1 cl-text-grey-4 cl-text-xs cl-tracking-widest" }, R(v.label), 513), [
|
|
6124
6120
|
[fe, v.showLabel && v.label !== ""]
|
|
6125
6121
|
])
|
|
6126
6122
|
]),
|
|
6127
|
-
n.value ? (u(), g("label",
|
|
6123
|
+
n.value ? (u(), g("label", Hr, " * ")) : v.isRequired && v.requiredText.length ? (u(), g("label", Gr, R(v.requiredText), 1)) : U("", !0)
|
|
6128
6124
|
]),
|
|
6129
|
-
v.inputType !== "range" && v.inputType !== "currency" && !m(Wl)(v.inputType) ? (u(), g("div",
|
|
6125
|
+
v.inputType !== "range" && v.inputType !== "currency" && !m(Wl)(v.inputType) ? (u(), g("div", Zr, [
|
|
6130
6126
|
se(h("input", Q({
|
|
6131
6127
|
ref_key: "inputElement",
|
|
6132
6128
|
ref: a,
|
|
@@ -6161,7 +6157,7 @@ const Fr = { class: "cl-flex cl-justify-between" }, jr = { class: "cl-w-full" },
|
|
|
6161
6157
|
r("input", Z, m(Kl)(Z, v.inputType));
|
|
6162
6158
|
}),
|
|
6163
6159
|
onChange: T
|
|
6164
|
-
}), null, 16,
|
|
6160
|
+
}), null, 16, Wr), [
|
|
6165
6161
|
[Yl, p.value]
|
|
6166
6162
|
]),
|
|
6167
6163
|
q(Ne, {
|
|
@@ -6169,7 +6165,7 @@ const Fr = { class: "cl-flex cl-justify-between" }, jr = { class: "cl-w-full" },
|
|
|
6169
6165
|
duration: 300
|
|
6170
6166
|
}, {
|
|
6171
6167
|
default: M(() => [
|
|
6172
|
-
v.inputType === "number" && !v.disabled && v.showArrows ? se((u(), g("div",
|
|
6168
|
+
v.inputType === "number" && !v.disabled && v.showArrows ? se((u(), g("div", Kr, [
|
|
6173
6169
|
q(m(le), {
|
|
6174
6170
|
icon: "ph:caret-up-bold",
|
|
6175
6171
|
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",
|
|
@@ -6190,8 +6186,8 @@ const Fr = { class: "cl-flex cl-justify-between" }, jr = { class: "cl-w-full" },
|
|
|
6190
6186
|
]),
|
|
6191
6187
|
_: 1
|
|
6192
6188
|
})
|
|
6193
|
-
])) : v.inputType === "currency" ? (u(), g("div",
|
|
6194
|
-
q(
|
|
6189
|
+
])) : v.inputType === "currency" ? (u(), g("div", Qr, [
|
|
6190
|
+
q(Ar, Q({
|
|
6195
6191
|
ref_key: "currencyInputRef",
|
|
6196
6192
|
ref: i,
|
|
6197
6193
|
modelValue: p.value,
|
|
@@ -6210,7 +6206,7 @@ const Fr = { class: "cl-flex cl-justify-between" }, jr = { class: "cl-w-full" },
|
|
|
6210
6206
|
onFocus: N[8] || (N[8] = (Z) => r("focus")),
|
|
6211
6207
|
onBlur: he
|
|
6212
6208
|
}), null, 16, ["modelValue", "disabled", "placeholder", "is-valid", "highlight-when-valid", "input-specific-classes", "group", "step", "currency-options"])
|
|
6213
|
-
])) : m(Wl)(v.inputType) ? (u(), L(m(
|
|
6209
|
+
])) : m(Wl)(v.inputType) ? (u(), L(m(Or), Q({ key: 2 }, v.$attrs, {
|
|
6214
6210
|
ref_key: "inputElement",
|
|
6215
6211
|
ref: a,
|
|
6216
6212
|
date: w.value,
|
|
@@ -6222,7 +6218,7 @@ const Fr = { class: "cl-flex cl-justify-between" }, jr = { class: "cl-w-full" },
|
|
|
6222
6218
|
}],
|
|
6223
6219
|
disabled: v.disabled,
|
|
6224
6220
|
required: v.isRequired,
|
|
6225
|
-
type: m(
|
|
6221
|
+
type: m(Fr)(v.inputType),
|
|
6226
6222
|
"time-zone": v.timeZone,
|
|
6227
6223
|
min: y.value,
|
|
6228
6224
|
max: f.value,
|
|
@@ -6232,8 +6228,8 @@ const Fr = { class: "cl-flex cl-justify-between" }, jr = { class: "cl-w-full" },
|
|
|
6232
6228
|
"date-format-locale": v.dateFormatLocale,
|
|
6233
6229
|
onBlur: x(he, ["self"]),
|
|
6234
6230
|
onFocus: N[10] || (N[10] = (Z) => r("focus"))
|
|
6235
|
-
}), null, 16, ["date", "class", "disabled", "required", "type", "time-zone", "min", "max", "placeholder", "initial-date", "quick-date-scope", "date-format-locale"])) : v.inputType === "range" && typeof p.value == "number" ? (u(), g("div",
|
|
6236
|
-
q(m(
|
|
6231
|
+
}), null, 16, ["date", "class", "disabled", "required", "type", "time-zone", "min", "max", "placeholder", "initial-date", "quick-date-scope", "date-format-locale"])) : v.inputType === "range" && typeof p.value == "number" ? (u(), g("div", Yr, [
|
|
6232
|
+
q(m(Br), {
|
|
6237
6233
|
ref_key: "inputElement",
|
|
6238
6234
|
ref: a,
|
|
6239
6235
|
value: p.value,
|
|
@@ -6249,11 +6245,11 @@ const Fr = { class: "cl-flex cl-justify-between" }, jr = { class: "cl-w-full" },
|
|
|
6249
6245
|
}, null, 8, ["value", "min", "max", "step", "placeholder", "disabled"])
|
|
6250
6246
|
])) : U("", !0)
|
|
6251
6247
|
], 32),
|
|
6252
|
-
S.value && E.value && P.value ? (u(), g("div",
|
|
6253
|
-
!S.value && k.value.length > 0 && v.showValidationMessages && P.value ? (u(), g("div",
|
|
6248
|
+
S.value && E.value && P.value ? (u(), g("div", Jr, R(E.value), 1)) : U("", !0),
|
|
6249
|
+
!S.value && k.value.length > 0 && v.showValidationMessages && P.value ? (u(), g("div", Xr, R(k.value), 1)) : U("", !0)
|
|
6254
6250
|
], 16));
|
|
6255
6251
|
}
|
|
6256
|
-
}),
|
|
6252
|
+
}), _r = /* @__PURE__ */ Te(xr, [["__scopeId", "data-v-7fedabde"]]), ei = [
|
|
6257
6253
|
"button",
|
|
6258
6254
|
"checkbox",
|
|
6259
6255
|
"color",
|
|
@@ -6275,24 +6271,24 @@ const Fr = { class: "cl-flex cl-justify-between" }, jr = { class: "cl-w-full" },
|
|
|
6275
6271
|
function $l(o) {
|
|
6276
6272
|
return /[a-z]{2}-[A-Z]{2}/gm.test(o.localeCode);
|
|
6277
6273
|
}
|
|
6278
|
-
function
|
|
6274
|
+
function li(o) {
|
|
6279
6275
|
let l = Array.isArray(o);
|
|
6280
6276
|
if (l) {
|
|
6281
6277
|
for (const t of o)
|
|
6282
|
-
if (!
|
|
6278
|
+
if (!ti(t)) {
|
|
6283
6279
|
l = !1;
|
|
6284
6280
|
break;
|
|
6285
6281
|
}
|
|
6286
6282
|
}
|
|
6287
6283
|
return l;
|
|
6288
6284
|
}
|
|
6289
|
-
function
|
|
6285
|
+
function ti(o) {
|
|
6290
6286
|
return typeof o.name == "string" && typeof o.nativeName == "string" && typeof o.localeCode == "string";
|
|
6291
6287
|
}
|
|
6292
|
-
const
|
|
6288
|
+
const oi = {
|
|
6293
6289
|
key: 0,
|
|
6294
6290
|
class: "cl-flex cl-relative cl-select-none cl-w-auto cl-z-30"
|
|
6295
|
-
},
|
|
6291
|
+
}, ai = { 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" }, ni = ["data-localename", "data-localecode", "onClick"], si = { class: "cl-text-xs" }, ri = /* @__PURE__ */ j({
|
|
6296
6292
|
__name: "cl-ui-language-switcher",
|
|
6297
6293
|
props: {
|
|
6298
6294
|
supportedLanguages: {},
|
|
@@ -6311,7 +6307,7 @@ const ti = {
|
|
|
6311
6307
|
}
|
|
6312
6308
|
return te(() => t.disabled, (s) => {
|
|
6313
6309
|
s && (a.value = !1);
|
|
6314
|
-
}), (s, c) => i.value !== null && m($l)(i.value) ? (u(), g("div",
|
|
6310
|
+
}), (s, c) => i.value !== null && m($l)(i.value) ? (u(), g("div", oi, [
|
|
6315
6311
|
h("div", {
|
|
6316
6312
|
class: O(["cl-flex cl-items-center", {
|
|
6317
6313
|
"cl-cursor-pointer": !s.disabled
|
|
@@ -6326,7 +6322,7 @@ const ti = {
|
|
|
6326
6322
|
], 2),
|
|
6327
6323
|
q(Ne, { name: "fade" }, {
|
|
6328
6324
|
default: M(() => [
|
|
6329
|
-
se(h("div",
|
|
6325
|
+
se(h("div", ai, [
|
|
6330
6326
|
(u(!0), g(K, null, _(d.value, (p, w) => (u(), g("div", {
|
|
6331
6327
|
key: w,
|
|
6332
6328
|
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",
|
|
@@ -6336,8 +6332,8 @@ const ti = {
|
|
|
6336
6332
|
r.value = p.localeCode, n(), e("language-select", p.localeCode);
|
|
6337
6333
|
}
|
|
6338
6334
|
}, [
|
|
6339
|
-
h("span",
|
|
6340
|
-
], 8,
|
|
6335
|
+
h("span", si, R(p.nativeName), 1)
|
|
6336
|
+
], 8, ni))), 128))
|
|
6341
6337
|
], 512), [
|
|
6342
6338
|
[fe, a.value]
|
|
6343
6339
|
])
|
|
@@ -6346,13 +6342,13 @@ const ti = {
|
|
|
6346
6342
|
})
|
|
6347
6343
|
])) : U("", !0);
|
|
6348
6344
|
}
|
|
6349
|
-
}),
|
|
6345
|
+
}), ii = { class: "cl-relative" }, ui = { class: "cl-h-full cl-z-0 xl:cl-h-screen" }, ci = { 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" }, di = { class: "cl-col-span-10 lg:cl-col-span-3" }, pi = {
|
|
6350
6346
|
key: 0,
|
|
6351
6347
|
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"
|
|
6352
|
-
},
|
|
6348
|
+
}, fi = { class: "cl-col-span-3" }, mi = { class: "cl-relative cl-text-grey-4" }, gi = { class: "cl-w-full" }, vi = {
|
|
6353
6349
|
key: 0,
|
|
6354
6350
|
class: "cl-bg-primary-lighter cl-mt-1 cl-rounded-md cl-text-center cl-text-secondary-default cl-text-xs cl-w-full"
|
|
6355
|
-
},
|
|
6351
|
+
}, hi = { class: "cl-col-span-3" }, bi = { class: "cl-relative cl-text-grey-4" }, yi = { class: "cl-col-span-10 cl-emphasis-danger cl-mt-10 cl-p-3 cl-rounded-md cl-text-sm md:cl-mt-3" }, wi = /* @__PURE__ */ j({
|
|
6356
6352
|
__name: "cl-ui-login",
|
|
6357
6353
|
props: {
|
|
6358
6354
|
errors: { default: () => [] },
|
|
@@ -6374,15 +6370,15 @@ const ti = {
|
|
|
6374
6370
|
return te([
|
|
6375
6371
|
r,
|
|
6376
6372
|
a
|
|
6377
|
-
], s), (c, p) => (u(), g("div",
|
|
6378
|
-
h("div",
|
|
6373
|
+
], s), (c, p) => (u(), g("div", ii, [
|
|
6374
|
+
h("div", ui, [
|
|
6379
6375
|
D(c.$slots, "background")
|
|
6380
6376
|
]),
|
|
6381
|
-
h("form",
|
|
6382
|
-
h("div",
|
|
6377
|
+
h("form", ci, [
|
|
6378
|
+
h("div", di, [
|
|
6383
6379
|
D(c.$slots, "logo")
|
|
6384
6380
|
]),
|
|
6385
|
-
c.$slots["language-switcher"] ? (u(), g("div",
|
|
6381
|
+
c.$slots["language-switcher"] ? (u(), g("div", pi, [
|
|
6386
6382
|
D(c.$slots, "language-switcher")
|
|
6387
6383
|
])) : U("", !0),
|
|
6388
6384
|
h("div", {
|
|
@@ -6391,14 +6387,14 @@ const ti = {
|
|
|
6391
6387
|
"cl-col-span-6": c.$slots["language-switcher"]
|
|
6392
6388
|
}])
|
|
6393
6389
|
}, [
|
|
6394
|
-
h("div",
|
|
6395
|
-
h("div",
|
|
6390
|
+
h("div", fi, [
|
|
6391
|
+
h("div", mi, [
|
|
6396
6392
|
q(m(le), {
|
|
6397
6393
|
class: "cl-absolute cl-left-3 cl-top-3 cl-z-10",
|
|
6398
6394
|
icon: "ph:user",
|
|
6399
6395
|
size: 18
|
|
6400
6396
|
}),
|
|
6401
|
-
h("div",
|
|
6397
|
+
h("div", gi, [
|
|
6402
6398
|
q(ze, {
|
|
6403
6399
|
id: "cl-ui-login-usernameinput",
|
|
6404
6400
|
modelValue: r.value,
|
|
@@ -6418,12 +6414,12 @@ const ti = {
|
|
|
6418
6414
|
])),
|
|
6419
6415
|
_: 1
|
|
6420
6416
|
}, 8, ["modelValue", "class", "errors", "placeholder"]),
|
|
6421
|
-
d.value ? (u(), g("div",
|
|
6417
|
+
d.value ? (u(), g("div", vi, R(m(e)("login.validEmail")), 1)) : U("", !0)
|
|
6422
6418
|
])
|
|
6423
6419
|
])
|
|
6424
6420
|
]),
|
|
6425
|
-
h("div",
|
|
6426
|
-
h("div",
|
|
6421
|
+
h("div", hi, [
|
|
6422
|
+
h("div", bi, [
|
|
6427
6423
|
q(m(le), {
|
|
6428
6424
|
class: "cl-absolute cl-left-3 cl-top-3 cl-z-10",
|
|
6429
6425
|
icon: "ph:lock",
|
|
@@ -6487,7 +6483,7 @@ const ti = {
|
|
|
6487
6483
|
default: M(() => {
|
|
6488
6484
|
var w;
|
|
6489
6485
|
return [
|
|
6490
|
-
se(h("span",
|
|
6486
|
+
se(h("span", yi, [
|
|
6491
6487
|
(u(!0), g(K, null, _(c.errors, (y, f) => (u(), g("div", {
|
|
6492
6488
|
id: "cl-ui-login-errors",
|
|
6493
6489
|
key: f,
|
|
@@ -6503,19 +6499,19 @@ const ti = {
|
|
|
6503
6499
|
])
|
|
6504
6500
|
]));
|
|
6505
6501
|
}
|
|
6506
|
-
}),
|
|
6502
|
+
}), ki = [
|
|
6507
6503
|
"x-small",
|
|
6508
6504
|
"small",
|
|
6509
6505
|
"medium",
|
|
6510
6506
|
"large"
|
|
6511
|
-
],
|
|
6507
|
+
], $i = [
|
|
6512
6508
|
"primary",
|
|
6513
6509
|
"secondary",
|
|
6514
6510
|
"white"
|
|
6515
|
-
],
|
|
6511
|
+
], Ti = {
|
|
6516
6512
|
key: 0,
|
|
6517
6513
|
class: "cl-h-0 cl-w-0"
|
|
6518
|
-
},
|
|
6514
|
+
}, Ci = { class: "cl-relative cl-w-full" }, Si = /* @__PURE__ */ j({
|
|
6519
6515
|
__name: "cl-ui-navigation",
|
|
6520
6516
|
props: {
|
|
6521
6517
|
colour: { default: "default" }
|
|
@@ -6577,7 +6573,7 @@ const ti = {
|
|
|
6577
6573
|
}, [
|
|
6578
6574
|
D(C.$slots, "icon", Q({ navcolour: C.colour }, { groupIsOpen: i, toggleOpen: d }), void 0, !0)
|
|
6579
6575
|
], 2),
|
|
6580
|
-
s.value ? (u(), g("div",
|
|
6576
|
+
s.value ? (u(), g("div", Ti)) : U("", !0),
|
|
6581
6577
|
q(Ne, { name: "slide-right" }, {
|
|
6582
6578
|
default: M(() => [
|
|
6583
6579
|
se(h("div", {
|
|
@@ -6586,7 +6582,7 @@ const ti = {
|
|
|
6586
6582
|
"cl-absolute cl-left-20 cl-shadow-lg": !n.value
|
|
6587
6583
|
}])
|
|
6588
6584
|
}, [
|
|
6589
|
-
h("div",
|
|
6585
|
+
h("div", Ci, [
|
|
6590
6586
|
h("span", {
|
|
6591
6587
|
class: "cl-absolute cl-cursor-pointer cl-hidden cl-right-0 cl-top-1.5 lg:cl-block",
|
|
6592
6588
|
onClick: A[0] || (A[0] = () => p())
|
|
@@ -6609,7 +6605,7 @@ const ti = {
|
|
|
6609
6605
|
})
|
|
6610
6606
|
], 512));
|
|
6611
6607
|
}
|
|
6612
|
-
}),
|
|
6608
|
+
}), qi = /* @__PURE__ */ Te(Si, [["__scopeId", "data-v-db3283cd"]]), Di = /* @__PURE__ */ j({
|
|
6613
6609
|
__name: "cl-ui-navigation-icon",
|
|
6614
6610
|
props: {
|
|
6615
6611
|
iconValue: {},
|
|
@@ -6632,10 +6628,10 @@ const ti = {
|
|
|
6632
6628
|
}, null, 8, ["icon"])
|
|
6633
6629
|
], 2));
|
|
6634
6630
|
}
|
|
6635
|
-
}),
|
|
6631
|
+
}), Oi = {
|
|
6636
6632
|
key: 0,
|
|
6637
6633
|
class: "cl-font-bold cl-leading-8 cl-mb-8 cl-pr-8 cl-select-none cl-text-lg cl-text-secondary-default"
|
|
6638
|
-
},
|
|
6634
|
+
}, Ei = { class: "cl-flex cl-flex-wrap cl-space-y-8 cl-text-sm cl-w-full" }, Ai = /* @__PURE__ */ j({
|
|
6639
6635
|
__name: "cl-ui-navigation-group",
|
|
6640
6636
|
props: {
|
|
6641
6637
|
open: { type: Boolean }
|
|
@@ -6646,35 +6642,35 @@ const ti = {
|
|
|
6646
6642
|
"cl-hidden": !l.open
|
|
6647
6643
|
})
|
|
6648
6644
|
}, [
|
|
6649
|
-
l.$slots.title ? (u(), g("div",
|
|
6645
|
+
l.$slots.title ? (u(), g("div", Oi, [
|
|
6650
6646
|
D(l.$slots, "title")
|
|
6651
6647
|
])) : U("", !0),
|
|
6652
|
-
h("div",
|
|
6648
|
+
h("div", Ei, [
|
|
6653
6649
|
D(l.$slots, "default")
|
|
6654
6650
|
])
|
|
6655
6651
|
], 2));
|
|
6656
6652
|
}
|
|
6657
|
-
}),
|
|
6653
|
+
}), Vi = {}, Mi = { class: "cl-w-full" }, Ii = {
|
|
6658
6654
|
key: 0,
|
|
6659
6655
|
class: "cl-font-bold cl-mb-4 cl-select-none"
|
|
6660
|
-
},
|
|
6661
|
-
function
|
|
6662
|
-
return u(), g("div",
|
|
6663
|
-
o.$slots.title ? (u(), g("div",
|
|
6656
|
+
}, Ni = { class: "cl-flex cl-flex-wrap cl-space-y-2" };
|
|
6657
|
+
function Ri(o, l) {
|
|
6658
|
+
return u(), g("div", Mi, [
|
|
6659
|
+
o.$slots.title ? (u(), g("div", Ii, [
|
|
6664
6660
|
D(o.$slots, "title")
|
|
6665
6661
|
])) : U("", !0),
|
|
6666
|
-
h("span",
|
|
6662
|
+
h("span", Ni, [
|
|
6667
6663
|
D(o.$slots, "default")
|
|
6668
6664
|
])
|
|
6669
6665
|
]);
|
|
6670
6666
|
}
|
|
6671
|
-
const
|
|
6672
|
-
function
|
|
6673
|
-
return u(), g("div",
|
|
6667
|
+
const Ui = /* @__PURE__ */ Te(Vi, [["render", Ri]]), zi = {}, Bi = { class: "cl-cursor-pointer cl-transition-colors cl-w-full hover:cl-text-primary-darker" };
|
|
6668
|
+
function Li(o, l) {
|
|
6669
|
+
return u(), g("div", Bi, [
|
|
6674
6670
|
D(o.$slots, "default")
|
|
6675
6671
|
]);
|
|
6676
6672
|
}
|
|
6677
|
-
const
|
|
6673
|
+
const Fi = /* @__PURE__ */ Te(zi, [["render", Li]]), ji = /* @__PURE__ */ j({
|
|
6678
6674
|
__name: "cl-ui-tab",
|
|
6679
6675
|
props: {
|
|
6680
6676
|
colour: { default: "default" },
|
|
@@ -6700,7 +6696,7 @@ const Li = /* @__PURE__ */ Te(Ui, [["render", Bi]]), Fi = /* @__PURE__ */ j({
|
|
|
6700
6696
|
function c(p) {
|
|
6701
6697
|
typeof p == "number" && s(p);
|
|
6702
6698
|
}
|
|
6703
|
-
return
|
|
6699
|
+
return Ge(() => {
|
|
6704
6700
|
s(a.value[0].id);
|
|
6705
6701
|
}), l({
|
|
6706
6702
|
setTab: c
|
|
@@ -6739,7 +6735,7 @@ const Li = /* @__PURE__ */ Te(Ui, [["render", Bi]]), Fi = /* @__PURE__ */ j({
|
|
|
6739
6735
|
])
|
|
6740
6736
|
], 2));
|
|
6741
6737
|
}
|
|
6742
|
-
}),
|
|
6738
|
+
}), Pi = ["inert"], Hi = /* @__PURE__ */ j({
|
|
6743
6739
|
__name: "cl-ui-tab-header",
|
|
6744
6740
|
props: {
|
|
6745
6741
|
open: { type: Boolean },
|
|
@@ -6768,32 +6764,32 @@ const Li = /* @__PURE__ */ Te(Ui, [["render", Bi]]), Fi = /* @__PURE__ */ j({
|
|
|
6768
6764
|
D(e.$slots, "default", {}, () => [
|
|
6769
6765
|
ue(R(e.title), 1)
|
|
6770
6766
|
])
|
|
6771
|
-
], 10,
|
|
6767
|
+
], 10, Pi));
|
|
6772
6768
|
}
|
|
6773
|
-
}),
|
|
6769
|
+
}), Gi = { key: 0 }, Zi = { class: "cl-font-bold cl-mb-4" }, Wi = /* @__PURE__ */ j({
|
|
6774
6770
|
__name: "cl-ui-tab-content",
|
|
6775
6771
|
props: {
|
|
6776
6772
|
open: { type: Boolean },
|
|
6777
6773
|
title: { default: "" }
|
|
6778
6774
|
},
|
|
6779
6775
|
setup(o) {
|
|
6780
|
-
return (l, t) => l.open ? (u(), g("div",
|
|
6776
|
+
return (l, t) => l.open ? (u(), g("div", Gi, [
|
|
6781
6777
|
l.$slots.header || l.title ? D(l.$slots, "header", { key: 0 }, () => [
|
|
6782
|
-
h("h4",
|
|
6778
|
+
h("h4", Zi, R(l.title), 1)
|
|
6783
6779
|
]) : U("", !0),
|
|
6784
6780
|
D(l.$slots, "default")
|
|
6785
6781
|
])) : U("", !0);
|
|
6786
6782
|
}
|
|
6787
|
-
}),
|
|
6783
|
+
}), Ki = [
|
|
6788
6784
|
"default",
|
|
6789
6785
|
"primary",
|
|
6790
6786
|
"secondary",
|
|
6791
6787
|
"danger",
|
|
6792
6788
|
"blue"
|
|
6793
|
-
],
|
|
6789
|
+
], Qi = [
|
|
6794
6790
|
"horizontal",
|
|
6795
6791
|
"vertical"
|
|
6796
|
-
],
|
|
6792
|
+
], Yi = { class: "cl-flex cl-flex-col cl-h-full cl-w-full" }, Ji = ["multiple", "accept", "disabled"], Xi = ["multiple", "accept", "disabled"], xi = /* @__PURE__ */ j({
|
|
6797
6793
|
inheritAttrs: !1,
|
|
6798
6794
|
__name: "cl-ui-file-uploader",
|
|
6799
6795
|
props: {
|
|
@@ -6833,7 +6829,7 @@ const Li = /* @__PURE__ */ Te(Ui, [["render", Bi]]), Fi = /* @__PURE__ */ j({
|
|
|
6833
6829
|
"dragleave",
|
|
6834
6830
|
"drop"
|
|
6835
6831
|
], s = V(!1);
|
|
6836
|
-
|
|
6832
|
+
Ge(() => {
|
|
6837
6833
|
n.forEach((y) => {
|
|
6838
6834
|
document.body.addEventListener(y, (f) => f.preventDefault());
|
|
6839
6835
|
});
|
|
@@ -6846,7 +6842,7 @@ const Li = /* @__PURE__ */ Te(Ui, [["render", Bi]]), Fi = /* @__PURE__ */ j({
|
|
|
6846
6842
|
function w() {
|
|
6847
6843
|
c.value && (c.value.value = ""), p.value && (p.value.value = "");
|
|
6848
6844
|
}
|
|
6849
|
-
return (y, f) => (u(), g("div",
|
|
6845
|
+
return (y, f) => (u(), g("div", Yi, [
|
|
6850
6846
|
y.uploaderType === "dragDrop" ? (u(), g("label", Q({ key: 0 }, y.$attrs, {
|
|
6851
6847
|
role: "button",
|
|
6852
6848
|
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", {
|
|
@@ -6868,7 +6864,7 @@ const Li = /* @__PURE__ */ Te(Ui, [["render", Bi]]), Fi = /* @__PURE__ */ j({
|
|
|
6868
6864
|
accept: y.acceptedFileTypes,
|
|
6869
6865
|
disabled: y.disabled,
|
|
6870
6866
|
onInput: d
|
|
6871
|
-
}, null, 40,
|
|
6867
|
+
}, null, 40, Ji),
|
|
6872
6868
|
D(y.$slots, "default")
|
|
6873
6869
|
], 16)) : (u(), g("input", {
|
|
6874
6870
|
key: 1,
|
|
@@ -6883,7 +6879,7 @@ const Li = /* @__PURE__ */ Te(Ui, [["render", Bi]]), Fi = /* @__PURE__ */ j({
|
|
|
6883
6879
|
accept: y.acceptedFileTypes,
|
|
6884
6880
|
disabled: y.disabled,
|
|
6885
6881
|
onInput: d
|
|
6886
|
-
}, null, 42,
|
|
6882
|
+
}, null, 42, Xi)),
|
|
6887
6883
|
a.value.length > 0 ? D(y.$slots, "invalid-files", {
|
|
6888
6884
|
key: 2,
|
|
6889
6885
|
invalidFiles: a.value
|
|
@@ -6902,7 +6898,7 @@ const Li = /* @__PURE__ */ Te(Ui, [["render", Bi]]), Fi = /* @__PURE__ */ j({
|
|
|
6902
6898
|
]) : U("", !0)
|
|
6903
6899
|
]));
|
|
6904
6900
|
}
|
|
6905
|
-
}),
|
|
6901
|
+
}), _i = /* @__PURE__ */ j({
|
|
6906
6902
|
inheritAttrs: !1,
|
|
6907
6903
|
__name: "cl-ui-toggle",
|
|
6908
6904
|
props: /* @__PURE__ */ de({
|
|
@@ -6954,7 +6950,7 @@ const Li = /* @__PURE__ */ Te(Ui, [["render", Bi]]), Fi = /* @__PURE__ */ j({
|
|
|
6954
6950
|
} : void 0
|
|
6955
6951
|
]), 1032, ["show-required-asterisk"]));
|
|
6956
6952
|
}
|
|
6957
|
-
}),
|
|
6953
|
+
}), eu = /* @__PURE__ */ j({
|
|
6958
6954
|
__name: "cl-ui-toggle-button",
|
|
6959
6955
|
props: {
|
|
6960
6956
|
isSelected: { type: Boolean },
|
|
@@ -6974,7 +6970,7 @@ const Li = /* @__PURE__ */ Te(Ui, [["render", Bi]]), Fi = /* @__PURE__ */ j({
|
|
|
6974
6970
|
_: 3
|
|
6975
6971
|
}, 8, ["class"]));
|
|
6976
6972
|
}
|
|
6977
|
-
}),
|
|
6973
|
+
}), lu = { class: "*:cl-cursor-pointer cl-flex cl-gap-2 cl-items-center cl-select-none" }, tu = ["id", "name", "checked"], Ot = /* @__PURE__ */ j({
|
|
6978
6974
|
__name: "cl-ui-radio",
|
|
6979
6975
|
props: {
|
|
6980
6976
|
id: {},
|
|
@@ -6983,7 +6979,7 @@ const Li = /* @__PURE__ */ Te(Ui, [["render", Bi]]), Fi = /* @__PURE__ */ j({
|
|
|
6983
6979
|
},
|
|
6984
6980
|
emits: ["click"],
|
|
6985
6981
|
setup(o) {
|
|
6986
|
-
return (l, t) => (u(), g("div",
|
|
6982
|
+
return (l, t) => (u(), g("div", lu, [
|
|
6987
6983
|
h("input", {
|
|
6988
6984
|
id: l.id,
|
|
6989
6985
|
name: l.name,
|
|
@@ -6991,11 +6987,11 @@ const Li = /* @__PURE__ */ Te(Ui, [["render", Bi]]), Fi = /* @__PURE__ */ j({
|
|
|
6991
6987
|
checked: l.checked,
|
|
6992
6988
|
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",
|
|
6993
6989
|
onClick: t[0] || (t[0] = (e) => l.$emit("click"))
|
|
6994
|
-
}, null, 8,
|
|
6990
|
+
}, null, 8, tu),
|
|
6995
6991
|
D(l.$slots, "default")
|
|
6996
6992
|
]));
|
|
6997
6993
|
}
|
|
6998
|
-
}),
|
|
6994
|
+
}), ou = /* @__PURE__ */ j({
|
|
6999
6995
|
__name: "cl-ui-radio-group",
|
|
7000
6996
|
props: {
|
|
7001
6997
|
id: {},
|
|
@@ -7019,19 +7015,19 @@ const Li = /* @__PURE__ */ Te(Ui, [["render", Bi]]), Fi = /* @__PURE__ */ j({
|
|
|
7019
7015
|
_: 2
|
|
7020
7016
|
}, 1032, ["id", "checked", "name", "onClick"]))), 128));
|
|
7021
7017
|
}
|
|
7022
|
-
}),
|
|
7018
|
+
}), au = {
|
|
7023
7019
|
key: 0,
|
|
7024
7020
|
class: "cl-flex-1"
|
|
7025
|
-
},
|
|
7021
|
+
}, nu = {
|
|
7026
7022
|
key: 0,
|
|
7027
7023
|
class: "cl-mb-1 cl-mt-0.5"
|
|
7028
|
-
},
|
|
7024
|
+
}, su = { class: "cl-overflow-y-auto cl-w-full" }, ru = {
|
|
7029
7025
|
key: 1,
|
|
7030
7026
|
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"
|
|
7031
|
-
},
|
|
7027
|
+
}, iu = {
|
|
7032
7028
|
key: 0,
|
|
7033
7029
|
class: "cl-flex cl-flex-shrink-0 cl-w-16"
|
|
7034
|
-
},
|
|
7030
|
+
}, uu = /* @__PURE__ */ j({
|
|
7035
7031
|
inheritAttrs: !1,
|
|
7036
7032
|
__name: "cl-ui-menu",
|
|
7037
7033
|
props: {
|
|
@@ -7088,7 +7084,7 @@ const Li = /* @__PURE__ */ Te(Ui, [["render", Bi]]), Fi = /* @__PURE__ */ j({
|
|
|
7088
7084
|
}),
|
|
7089
7085
|
onClick: s[0] || (s[0] = x(() => a(), ["stop"]))
|
|
7090
7086
|
}, null, 8, ["icon-value", "class"]),
|
|
7091
|
-
l.value && n.$slots.menuHeader ? (u(), g("div",
|
|
7087
|
+
l.value && n.$slots.menuHeader ? (u(), g("div", au, [
|
|
7092
7088
|
D(n.$slots, "menuHeader")
|
|
7093
7089
|
])) : U("", !0)
|
|
7094
7090
|
], 34),
|
|
@@ -7108,24 +7104,24 @@ const Li = /* @__PURE__ */ Te(Ui, [["render", Bi]]), Fi = /* @__PURE__ */ j({
|
|
|
7108
7104
|
"cl-text-secondary-default": l.value === !1
|
|
7109
7105
|
})
|
|
7110
7106
|
}, null, 8, ["class"]),
|
|
7111
|
-
l.value ? (u(), g("div",
|
|
7107
|
+
l.value ? (u(), g("div", nu, [
|
|
7112
7108
|
D(n.$slots, "searchInput")
|
|
7113
7109
|
])) : U("", !0)
|
|
7114
7110
|
], 2)) : U("", !0),
|
|
7115
|
-
h("div",
|
|
7111
|
+
h("div", su, [
|
|
7116
7112
|
D(n.$slots, "default", me(be({ toggleOpen: r, groupIsOpen: e })))
|
|
7117
7113
|
]),
|
|
7118
|
-
n.$slots.footer ? (u(), g("div",
|
|
7114
|
+
n.$slots.footer ? (u(), g("div", ru, [
|
|
7119
7115
|
D(n.$slots, "footer", me(be({ toggleOpen: r, groupIsOpen: e })))
|
|
7120
7116
|
])) : U("", !0)
|
|
7121
7117
|
], 16),
|
|
7122
|
-
m(d) === !1 && l.value ? (u(), g("div",
|
|
7118
|
+
m(d) === !1 && l.value ? (u(), g("div", iu)) : U("", !0)
|
|
7123
7119
|
], 64));
|
|
7124
7120
|
}
|
|
7125
|
-
}),
|
|
7121
|
+
}), cu = { class: "cl-overflow-hidden cl-w-full" }, du = ["title"], pu = { class: "cl-flex cl-flex-1 cl-items-center cl-justify-between" }, fu = { class: "cl-font-semibold" }, mu = { class: "cl-overflow-hidden" }, gu = {
|
|
7126
7122
|
key: 0,
|
|
7127
7123
|
class: "cl-mt-1"
|
|
7128
|
-
},
|
|
7124
|
+
}, vu = /* @__PURE__ */ j({
|
|
7129
7125
|
__name: "cl-ui-menu-group",
|
|
7130
7126
|
props: {
|
|
7131
7127
|
title: {},
|
|
@@ -7137,15 +7133,15 @@ const Li = /* @__PURE__ */ Te(Ui, [["render", Bi]]), Fi = /* @__PURE__ */ j({
|
|
|
7137
7133
|
setup(o) {
|
|
7138
7134
|
return (l, t) => {
|
|
7139
7135
|
const e = Se("icon");
|
|
7140
|
-
return u(), g("div",
|
|
7136
|
+
return u(), g("div", cu, [
|
|
7141
7137
|
h("div", {
|
|
7142
7138
|
class: "cl-cursor-pointer cl-flex cl-items-center cl-rounded-lg cl-text-secondary-default cl-transition-colors hover:cl-bg-primary-lighter",
|
|
7143
7139
|
title: l.title,
|
|
7144
7140
|
onClick: t[0] || (t[0] = (r) => l.$emit("toggle-open"))
|
|
7145
7141
|
}, [
|
|
7146
7142
|
q(m(rl), { "icon-value": l.iconValue }, null, 8, ["icon-value"]),
|
|
7147
|
-
se(h("div",
|
|
7148
|
-
h("span",
|
|
7143
|
+
se(h("div", pu, [
|
|
7144
|
+
h("span", fu, R(l.title), 1),
|
|
7149
7145
|
l.$slots.default ? (u(), L(e, {
|
|
7150
7146
|
key: 0,
|
|
7151
7147
|
icon: l.open ? "ph:caret-up" : "ph:caret-down",
|
|
@@ -7154,9 +7150,9 @@ const Li = /* @__PURE__ */ Te(Ui, [["render", Bi]]), Fi = /* @__PURE__ */ j({
|
|
|
7154
7150
|
], 512), [
|
|
7155
7151
|
[fe, l.menuOpen]
|
|
7156
7152
|
])
|
|
7157
|
-
], 8,
|
|
7158
|
-
h("div",
|
|
7159
|
-
l.open && l.menuOpen === !0 ? (u(), g("div",
|
|
7153
|
+
], 8, du),
|
|
7154
|
+
h("div", mu, [
|
|
7155
|
+
l.open && l.menuOpen === !0 ? (u(), g("div", gu, [
|
|
7160
7156
|
q(m(Et), null, {
|
|
7161
7157
|
default: M(() => [
|
|
7162
7158
|
D(l.$slots, "default")
|
|
@@ -7168,7 +7164,7 @@ const Li = /* @__PURE__ */ Te(Ui, [["render", Bi]]), Fi = /* @__PURE__ */ j({
|
|
|
7168
7164
|
]);
|
|
7169
7165
|
};
|
|
7170
7166
|
}
|
|
7171
|
-
}),
|
|
7167
|
+
}), hu = { class: "cl-flex cl-flex-shrink-0 cl-h-12 cl-items-center cl-justify-center cl-w-12" }, Ql = "24", rl = /* @__PURE__ */ j({
|
|
7172
7168
|
__name: "cl-ui-menu-icon",
|
|
7173
7169
|
props: {
|
|
7174
7170
|
iconValue: {}
|
|
@@ -7176,7 +7172,7 @@ const Li = /* @__PURE__ */ Te(Ui, [["render", Bi]]), Fi = /* @__PURE__ */ j({
|
|
|
7176
7172
|
setup(o) {
|
|
7177
7173
|
return (l, t) => {
|
|
7178
7174
|
const e = Se("icon");
|
|
7179
|
-
return u(), g("div",
|
|
7175
|
+
return u(), g("div", hu, [
|
|
7180
7176
|
q(e, {
|
|
7181
7177
|
icon: l.iconValue,
|
|
7182
7178
|
width: Ql,
|
|
@@ -7185,26 +7181,26 @@ const Li = /* @__PURE__ */ Te(Ui, [["render", Bi]]), Fi = /* @__PURE__ */ j({
|
|
|
7185
7181
|
]);
|
|
7186
7182
|
};
|
|
7187
7183
|
}
|
|
7188
|
-
}),
|
|
7184
|
+
}), bu = { class: "cl-flex cl-flex-row" }, yu = { class: "cl-flex cl-flex-1 cl-flex-col cl-pl-1" }, Et = /* @__PURE__ */ j({
|
|
7189
7185
|
__name: "cl-ui-menu-section",
|
|
7190
7186
|
setup(o) {
|
|
7191
|
-
return (l, t) => (u(), g("div",
|
|
7187
|
+
return (l, t) => (u(), g("div", bu, [
|
|
7192
7188
|
t[0] || (t[0] = h("div", { class: "cl-flex cl-flex-shrink-0 cl-justify-center cl-w-[47px]" }, [
|
|
7193
7189
|
h("div", { class: "cl-bg-grey-2 cl-w-[1px]" }, " ")
|
|
7194
7190
|
], -1)),
|
|
7195
|
-
h("div",
|
|
7191
|
+
h("div", yu, [
|
|
7196
7192
|
D(l.$slots, "default")
|
|
7197
7193
|
])
|
|
7198
7194
|
]));
|
|
7199
7195
|
}
|
|
7200
|
-
}),
|
|
7196
|
+
}), wu = { class: "cl-cursor-pointer cl-text-secondary-default cl-text-sm cl-transition-colors cl-w-full hover:cl-text-primary-dark" }, ku = /* @__PURE__ */ j({
|
|
7201
7197
|
__name: "cl-ui-menu-item",
|
|
7202
7198
|
setup(o) {
|
|
7203
|
-
return (l, t) => (u(), g("div",
|
|
7199
|
+
return (l, t) => (u(), g("div", wu, [
|
|
7204
7200
|
D(l.$slots, "default")
|
|
7205
7201
|
]));
|
|
7206
7202
|
}
|
|
7207
|
-
}),
|
|
7203
|
+
}), $u = ["height"], Tu = ["y2"], Cu = ["y1", "y2"], Su = /* @__PURE__ */ j({
|
|
7208
7204
|
__name: "cl-ui-tree-list-tree-path",
|
|
7209
7205
|
props: {
|
|
7210
7206
|
branchesAt: {}
|
|
@@ -7225,7 +7221,7 @@ const Li = /* @__PURE__ */ Te(Ui, [["render", Bi]]), Fi = /* @__PURE__ */ j({
|
|
|
7225
7221
|
x2: "50%",
|
|
7226
7222
|
y2: l.branchesAt.at(-1) ?? 0,
|
|
7227
7223
|
"stroke-linecap": "round"
|
|
7228
|
-
}, null, 8,
|
|
7224
|
+
}, null, 8, Tu),
|
|
7229
7225
|
(u(!0), g(K, null, _(e.branchesAt, (a, i) => (u(), g("line", {
|
|
7230
7226
|
key: i,
|
|
7231
7227
|
x1: "50%",
|
|
@@ -7233,14 +7229,14 @@ const Li = /* @__PURE__ */ Te(Ui, [["render", Bi]]), Fi = /* @__PURE__ */ j({
|
|
|
7233
7229
|
x2: "100%",
|
|
7234
7230
|
y2: a,
|
|
7235
7231
|
"stroke-linecap": "round"
|
|
7236
|
-
}, null, 8,
|
|
7237
|
-
], 8,
|
|
7232
|
+
}, null, 8, Cu))), 128))
|
|
7233
|
+
], 8, $u));
|
|
7238
7234
|
}
|
|
7239
7235
|
});
|
|
7240
|
-
function
|
|
7236
|
+
function qu(...o) {
|
|
7241
7237
|
return o.map((l) => l.replace(/ /g, "_")).join(" ");
|
|
7242
7238
|
}
|
|
7243
|
-
function
|
|
7239
|
+
function Du(o, l) {
|
|
7244
7240
|
var r;
|
|
7245
7241
|
const t = l.split(" ");
|
|
7246
7242
|
let e;
|
|
@@ -7249,13 +7245,13 @@ function qu(o, l) {
|
|
|
7249
7245
|
break;
|
|
7250
7246
|
return e ?? null;
|
|
7251
7247
|
}
|
|
7252
|
-
const
|
|
7248
|
+
const Ou = { class: "cl-flex cl-flex-nowrap cl-flex-row cl-w-full" }, Eu = { class: "cl-h-8 cl-px-1.5 cl-py-[3px] cl-w-8" }, Au = ["id"], Vu = {
|
|
7253
7249
|
key: 0,
|
|
7254
7250
|
class: "cl-w-8"
|
|
7255
|
-
},
|
|
7251
|
+
}, Mu = ["id"], Iu = ["id"], Nu = {
|
|
7256
7252
|
key: 3,
|
|
7257
7253
|
class: "cl-basis-full cl-flex cl-flex-col cl-gap-2 cl-pt-2"
|
|
7258
|
-
},
|
|
7254
|
+
}, Ru = /* @__PURE__ */ j({
|
|
7259
7255
|
__name: "cl-ui-tree-list-subtree",
|
|
7260
7256
|
props: /* @__PURE__ */ de({
|
|
7261
7257
|
idPrefix: {},
|
|
@@ -7270,7 +7266,7 @@ const Du = { class: "cl-flex cl-flex-nowrap cl-flex-row cl-w-full" }, Ou = { cla
|
|
|
7270
7266
|
emits: /* @__PURE__ */ de(["recalculate-tree-path", "set-child-node-height"], ["update:selectedPath"]),
|
|
7271
7267
|
setup(o, { emit: l }) {
|
|
7272
7268
|
var A;
|
|
7273
|
-
const t = o, e = ke(o, "selectedPath"), r = l, a = $(() =>
|
|
7269
|
+
const t = o, e = ke(o, "selectedPath"), r = l, a = $(() => qu(...t.pathFragments)), i = Nt(t.rootNode.expanded) ? t.rootNode.expanded : V(t.rootNode.expanded ?? !1), d = V(), { height: b } = Nl(d), n = bl(d), s = V([]), c = $(() => s.value.map((E) => Nl(E))), p = $(() => s.value.map((E) => bl(E))), w = V(new Array(((A = t.rootNode.children) == null ? void 0 : A.length) ?? 0).fill(0)), y = V([]);
|
|
7274
7270
|
function f() {
|
|
7275
7271
|
n.update(), y.value = p.value.map((E, S) => (E.update(), E.top.value - n.bottom.value + w.value[S] / 2 + 3)), r("recalculate-tree-path");
|
|
7276
7272
|
}
|
|
@@ -7284,10 +7280,10 @@ const Du = { class: "cl-flex cl-flex-nowrap cl-flex-row cl-w-full" }, Ou = { cla
|
|
|
7284
7280
|
], C, {
|
|
7285
7281
|
flush: "post",
|
|
7286
7282
|
deep: !0
|
|
7287
|
-
}),
|
|
7283
|
+
}), Ge(C), (E, S) => {
|
|
7288
7284
|
const P = Se("icon"), I = Se("cl-ui-tree-list-subtree", !0);
|
|
7289
|
-
return u(), g("div",
|
|
7290
|
-
h("div",
|
|
7285
|
+
return u(), g("div", Ou, [
|
|
7286
|
+
h("div", Eu, [
|
|
7291
7287
|
E.rootNode.children && E.rootNode.children.length > 0 ? (u(), g("button", {
|
|
7292
7288
|
key: 0,
|
|
7293
7289
|
id: `${E.idPrefix}-expand-button`,
|
|
@@ -7297,9 +7293,9 @@ const Du = { class: "cl-flex cl-flex-nowrap cl-flex-row cl-w-full" }, Ou = { cla
|
|
|
7297
7293
|
q(P, {
|
|
7298
7294
|
icon: m(i) ? "ph:minus-square" : "ph:plus-square"
|
|
7299
7295
|
}, null, 8, ["icon"])
|
|
7300
|
-
], 8,
|
|
7296
|
+
], 8, Au)) : U("", !0)
|
|
7301
7297
|
]),
|
|
7302
|
-
E.depth > 0 ? (u(), g("div",
|
|
7298
|
+
E.depth > 0 ? (u(), g("div", Vu)) : U("", !0),
|
|
7303
7299
|
h("div", {
|
|
7304
7300
|
class: O(["cl-basis-full cl-relative", {
|
|
7305
7301
|
"cl-tree-list-selection": e.value === a.value
|
|
@@ -7321,7 +7317,7 @@ const Du = { class: "cl-flex cl-flex-nowrap cl-flex-row cl-w-full" }, Ou = { cla
|
|
|
7321
7317
|
isExpanded: m(i),
|
|
7322
7318
|
expand: (k) => i.value = k
|
|
7323
7319
|
})
|
|
7324
|
-
], 8,
|
|
7320
|
+
], 8, Mu)) : (u(), g("button", {
|
|
7325
7321
|
key: 1,
|
|
7326
7322
|
id: `${E.idPrefix}-node-content`,
|
|
7327
7323
|
ref_key: "nodeContentDiv",
|
|
@@ -7341,13 +7337,13 @@ const Du = { class: "cl-flex cl-flex-nowrap cl-flex-row cl-w-full" }, Ou = { cla
|
|
|
7341
7337
|
isExpanded: m(i),
|
|
7342
7338
|
expand: (k) => i.value = k
|
|
7343
7339
|
})
|
|
7344
|
-
], 10,
|
|
7345
|
-
E.rootNode.children && E.rootNode.children.length > 0 && m(i) ? (u(), L(
|
|
7340
|
+
], 10, Iu)),
|
|
7341
|
+
E.rootNode.children && E.rootNode.children.length > 0 && m(i) ? (u(), L(Su, {
|
|
7346
7342
|
key: 2,
|
|
7347
7343
|
class: "cl-tree-list-path",
|
|
7348
7344
|
"branches-at": y.value
|
|
7349
7345
|
}, null, 8, ["branches-at"])) : U("", !0),
|
|
7350
|
-
E.rootNode.children && E.rootNode.children.length > 0 && m(i) ? (u(), g("div",
|
|
7346
|
+
E.rootNode.children && E.rootNode.children.length > 0 && m(i) ? (u(), g("div", Nu, [
|
|
7351
7347
|
(u(!0), g(K, null, _(E.rootNode.children, (k, W) => (u(), g("div", {
|
|
7352
7348
|
key: k.id,
|
|
7353
7349
|
ref_for: !0,
|
|
@@ -7378,7 +7374,7 @@ const Du = { class: "cl-flex cl-flex-nowrap cl-flex-row cl-w-full" }, Ou = { cla
|
|
|
7378
7374
|
]);
|
|
7379
7375
|
};
|
|
7380
7376
|
}
|
|
7381
|
-
}),
|
|
7377
|
+
}), Uu = { class: "cl-flex cl-flex-col cl-flex-nowrap cl-gap-4 cl-w-full" }, zu = /* @__PURE__ */ j({
|
|
7382
7378
|
__name: "cl-ui-tree-list",
|
|
7383
7379
|
props: {
|
|
7384
7380
|
idPrefix: {},
|
|
@@ -7392,11 +7388,11 @@ const Du = { class: "cl-flex cl-flex-nowrap cl-flex-row cl-w-full" }, Ou = { cla
|
|
|
7392
7388
|
const t = o, e = l, r = V(""), a = $({
|
|
7393
7389
|
get: () => t.allowSelect ? r.value : null,
|
|
7394
7390
|
set(i) {
|
|
7395
|
-
i ? (r.value = i, e("select",
|
|
7391
|
+
i ? (r.value = i, e("select", Du(t.rootNodes, i))) : t.allowDeselect && (r.value = "", e("select", null));
|
|
7396
7392
|
}
|
|
7397
7393
|
});
|
|
7398
|
-
return (i, d) => (u(), g("div",
|
|
7399
|
-
(u(!0), g(K, null, _(i.rootNodes, (b, n) => (u(), L(
|
|
7394
|
+
return (i, d) => (u(), g("div", Uu, [
|
|
7395
|
+
(u(!0), g(K, null, _(i.rootNodes, (b, n) => (u(), L(Ru, {
|
|
7400
7396
|
key: b.id,
|
|
7401
7397
|
"selected-path": a.value,
|
|
7402
7398
|
"onUpdate:selectedPath": d[0] || (d[0] = (s) => a.value = s),
|
|
@@ -7418,25 +7414,25 @@ const Du = { class: "cl-flex cl-flex-nowrap cl-flex-row cl-w-full" }, Ou = { cla
|
|
|
7418
7414
|
]), 1032, ["selected-path", "class", "root-node", "breadth", "id-prefix", "path-fragments"]))), 128))
|
|
7419
7415
|
]));
|
|
7420
7416
|
}
|
|
7421
|
-
}),
|
|
7417
|
+
}), Bu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
7422
7418
|
__proto__: null,
|
|
7423
7419
|
FilterOperation: ne,
|
|
7424
7420
|
allQuickDates: ft,
|
|
7425
|
-
buttonColours:
|
|
7426
|
-
buttonSizes:
|
|
7427
|
-
cardSizes:
|
|
7421
|
+
buttonColours: go,
|
|
7422
|
+
buttonSizes: vo,
|
|
7423
|
+
cardSizes: yo,
|
|
7428
7424
|
clUISlectInput: bt,
|
|
7429
7425
|
clUiAccordion: Jt,
|
|
7430
7426
|
clUiAccordionHeader: ao,
|
|
7431
7427
|
clUiAccordionItem: eo,
|
|
7432
7428
|
clUiApp: io,
|
|
7433
7429
|
clUiButton: Ce,
|
|
7434
|
-
clUiCard:
|
|
7435
|
-
clUiComboBox:
|
|
7436
|
-
clUiFileUploader:
|
|
7437
|
-
clUiFooter:
|
|
7438
|
-
clUiGrid:
|
|
7439
|
-
clUiGridLite:
|
|
7430
|
+
clUiCard: bo,
|
|
7431
|
+
clUiComboBox: Xo,
|
|
7432
|
+
clUiFileUploader: xi,
|
|
7433
|
+
clUiFooter: ra,
|
|
7434
|
+
clUiGrid: Zs,
|
|
7435
|
+
clUiGridLite: Qs,
|
|
7440
7436
|
clUiGridLiteBody: Ct,
|
|
7441
7437
|
clUiGridLiteBodySkeleton: $t,
|
|
7442
7438
|
clUiGridLiteCell: St,
|
|
@@ -7444,68 +7440,68 @@ const Du = { class: "cl-flex cl-flex-nowrap cl-flex-row cl-w-full" }, Ou = { cla
|
|
|
7444
7440
|
clUiGridLiteFooterSkeleton: qt,
|
|
7445
7441
|
clUiGridLiteHeader: kt,
|
|
7446
7442
|
clUiGridLiteRow: Tt,
|
|
7447
|
-
clUiHeader:
|
|
7448
|
-
clUiHeaderMenu:
|
|
7449
|
-
clUiInput:
|
|
7443
|
+
clUiHeader: yr,
|
|
7444
|
+
clUiHeaderMenu: qr,
|
|
7445
|
+
clUiInput: _r,
|
|
7450
7446
|
clUiInputCheckbox: cl,
|
|
7451
7447
|
clUiInputDateRange: gt,
|
|
7452
7448
|
clUiInputDateRangeInput: Ml,
|
|
7453
7449
|
clUiInputDateTime: ht,
|
|
7454
7450
|
clUiInputNumber: ll,
|
|
7455
|
-
clUiInputRange:
|
|
7451
|
+
clUiInputRange: Gn,
|
|
7456
7452
|
clUiInputText: ze,
|
|
7457
|
-
clUiInputTextArea:
|
|
7458
|
-
clUiLanguageSwitcher:
|
|
7453
|
+
clUiInputTextArea: Nn,
|
|
7454
|
+
clUiLanguageSwitcher: ri,
|
|
7459
7455
|
clUiLoadingSpinner: _e,
|
|
7460
|
-
clUiLogin:
|
|
7461
|
-
clUiMenu:
|
|
7462
|
-
clUiMenuGroup:
|
|
7456
|
+
clUiLogin: wi,
|
|
7457
|
+
clUiMenu: uu,
|
|
7458
|
+
clUiMenuGroup: vu,
|
|
7463
7459
|
clUiMenuIcon: rl,
|
|
7464
|
-
clUiMenuItem:
|
|
7460
|
+
clUiMenuItem: ku,
|
|
7465
7461
|
clUiMenuSection: Et,
|
|
7466
7462
|
clUiModal: nt,
|
|
7467
|
-
clUiNavigation:
|
|
7468
|
-
clUiNavigationGroup:
|
|
7469
|
-
clUiNavigationIcon:
|
|
7470
|
-
clUiNavigationItem:
|
|
7471
|
-
clUiNavigationSection:
|
|
7463
|
+
clUiNavigation: qi,
|
|
7464
|
+
clUiNavigationGroup: Ai,
|
|
7465
|
+
clUiNavigationIcon: Di,
|
|
7466
|
+
clUiNavigationItem: Fi,
|
|
7467
|
+
clUiNavigationSection: Ui,
|
|
7472
7468
|
clUiNotification: at,
|
|
7473
7469
|
clUiRadio: Ot,
|
|
7474
|
-
clUiRadioGroup:
|
|
7470
|
+
clUiRadioGroup: ou,
|
|
7475
7471
|
clUiSelect: wl,
|
|
7476
7472
|
clUiSelectOption: kl,
|
|
7477
|
-
clUiTab:
|
|
7478
|
-
clUiTabContent:
|
|
7479
|
-
clUiTabHeader:
|
|
7480
|
-
clUiToggle:
|
|
7481
|
-
clUiToggleButton:
|
|
7482
|
-
clUiTreeList:
|
|
7473
|
+
clUiTab: ji,
|
|
7474
|
+
clUiTabContent: Wi,
|
|
7475
|
+
clUiTabHeader: Hi,
|
|
7476
|
+
clUiToggle: _i,
|
|
7477
|
+
clUiToggleButton: eu,
|
|
7478
|
+
clUiTreeList: zu,
|
|
7483
7479
|
currentQuickDates: Qe,
|
|
7484
7480
|
dateTimeCalendarTypes: vt,
|
|
7485
|
-
filterMethodTypes:
|
|
7481
|
+
filterMethodTypes: ts,
|
|
7486
7482
|
futureQuickDates: sl,
|
|
7487
|
-
gridColumnTypes:
|
|
7488
|
-
headerColour:
|
|
7489
|
-
inputTextTypes:
|
|
7490
|
-
inputTypes:
|
|
7491
|
-
isComboBoxCreateRequest:
|
|
7492
|
-
isComboBoxItem:
|
|
7493
|
-
isFilterRequest:
|
|
7494
|
-
isFilterResponse:
|
|
7483
|
+
gridColumnTypes: _n,
|
|
7484
|
+
headerColour: Dr,
|
|
7485
|
+
inputTextTypes: In,
|
|
7486
|
+
inputTypes: ei,
|
|
7487
|
+
isComboBoxCreateRequest: _o,
|
|
7488
|
+
isComboBoxItem: xo,
|
|
7489
|
+
isFilterRequest: ns,
|
|
7490
|
+
isFilterResponse: ss,
|
|
7495
7491
|
isGridColumn: yt,
|
|
7496
|
-
isGridColumnArray:
|
|
7497
|
-
isLanguageArray:
|
|
7492
|
+
isGridColumnArray: es,
|
|
7493
|
+
isLanguageArray: li,
|
|
7498
7494
|
isLanguageLocaleFormat: $l,
|
|
7499
|
-
modalColours:
|
|
7500
|
-
modalSizes:
|
|
7495
|
+
modalColours: $i,
|
|
7496
|
+
modalSizes: ki,
|
|
7501
7497
|
pastQuickDates: nl,
|
|
7502
|
-
popoverPlacements:
|
|
7503
|
-
quickDateNames:
|
|
7504
|
-
stringFormats:
|
|
7505
|
-
tabColours:
|
|
7506
|
-
tabLayout:
|
|
7507
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
7508
|
-
o.use(qe), o.component("Icon", le), Object.entries(
|
|
7498
|
+
popoverPlacements: Zn,
|
|
7499
|
+
quickDateNames: An,
|
|
7500
|
+
stringFormats: ls,
|
|
7501
|
+
tabColours: Ki,
|
|
7502
|
+
tabLayout: Qi
|
|
7503
|
+
}, Symbol.toStringTag, { value: "Module" })), ec = (o) => {
|
|
7504
|
+
o.use(qe), o.component("Icon", le), Object.entries(Bu).forEach(([
|
|
7509
7505
|
l,
|
|
7510
7506
|
t
|
|
7511
7507
|
]) => {
|
|
@@ -7513,26 +7509,26 @@ const Du = { class: "cl-flex cl-flex-nowrap cl-flex-row cl-w-full" }, Ou = { cla
|
|
|
7513
7509
|
});
|
|
7514
7510
|
};
|
|
7515
7511
|
export {
|
|
7516
|
-
|
|
7512
|
+
_u as CitrusLimeUI,
|
|
7517
7513
|
ie as DateFormat,
|
|
7518
7514
|
ne as FilterOperation,
|
|
7519
7515
|
ae as NumberFormat,
|
|
7520
7516
|
ft as allQuickDates,
|
|
7521
|
-
|
|
7522
|
-
|
|
7523
|
-
|
|
7517
|
+
go as buttonColours,
|
|
7518
|
+
vo as buttonSizes,
|
|
7519
|
+
yo as cardSizes,
|
|
7524
7520
|
bt as clUISlectInput,
|
|
7525
7521
|
Jt as clUiAccordion,
|
|
7526
7522
|
ao as clUiAccordionHeader,
|
|
7527
7523
|
eo as clUiAccordionItem,
|
|
7528
7524
|
io as clUiApp,
|
|
7529
7525
|
Ce as clUiButton,
|
|
7530
|
-
|
|
7531
|
-
|
|
7532
|
-
|
|
7533
|
-
|
|
7534
|
-
|
|
7535
|
-
|
|
7526
|
+
bo as clUiCard,
|
|
7527
|
+
Xo as clUiComboBox,
|
|
7528
|
+
xi as clUiFileUploader,
|
|
7529
|
+
ra as clUiFooter,
|
|
7530
|
+
Zs as clUiGrid,
|
|
7531
|
+
Qs as clUiGridLite,
|
|
7536
7532
|
Ct as clUiGridLiteBody,
|
|
7537
7533
|
$t as clUiGridLiteBodySkeleton,
|
|
7538
7534
|
St as clUiGridLiteCell,
|
|
@@ -7540,84 +7536,84 @@ export {
|
|
|
7540
7536
|
qt as clUiGridLiteFooterSkeleton,
|
|
7541
7537
|
kt as clUiGridLiteHeader,
|
|
7542
7538
|
Tt as clUiGridLiteRow,
|
|
7543
|
-
|
|
7544
|
-
|
|
7545
|
-
|
|
7539
|
+
yr as clUiHeader,
|
|
7540
|
+
qr as clUiHeaderMenu,
|
|
7541
|
+
_r as clUiInput,
|
|
7546
7542
|
cl as clUiInputCheckbox,
|
|
7547
7543
|
gt as clUiInputDateRange,
|
|
7548
7544
|
Ml as clUiInputDateRangeInput,
|
|
7549
7545
|
ht as clUiInputDateTime,
|
|
7550
7546
|
ll as clUiInputNumber,
|
|
7551
|
-
|
|
7547
|
+
Gn as clUiInputRange,
|
|
7552
7548
|
ze as clUiInputText,
|
|
7553
|
-
|
|
7554
|
-
|
|
7549
|
+
Nn as clUiInputTextArea,
|
|
7550
|
+
ri as clUiLanguageSwitcher,
|
|
7555
7551
|
_e as clUiLoadingSpinner,
|
|
7556
|
-
|
|
7557
|
-
|
|
7558
|
-
|
|
7552
|
+
wi as clUiLogin,
|
|
7553
|
+
uu as clUiMenu,
|
|
7554
|
+
vu as clUiMenuGroup,
|
|
7559
7555
|
rl as clUiMenuIcon,
|
|
7560
|
-
|
|
7556
|
+
ku as clUiMenuItem,
|
|
7561
7557
|
Et as clUiMenuSection,
|
|
7562
7558
|
nt as clUiModal,
|
|
7563
|
-
|
|
7564
|
-
|
|
7565
|
-
|
|
7566
|
-
|
|
7567
|
-
|
|
7559
|
+
qi as clUiNavigation,
|
|
7560
|
+
Ai as clUiNavigationGroup,
|
|
7561
|
+
Di as clUiNavigationIcon,
|
|
7562
|
+
Fi as clUiNavigationItem,
|
|
7563
|
+
Ui as clUiNavigationSection,
|
|
7568
7564
|
at as clUiNotification,
|
|
7569
7565
|
Ot as clUiRadio,
|
|
7570
|
-
|
|
7566
|
+
ou as clUiRadioGroup,
|
|
7571
7567
|
wl as clUiSelect,
|
|
7572
7568
|
kl as clUiSelectOption,
|
|
7573
|
-
|
|
7574
|
-
|
|
7575
|
-
|
|
7576
|
-
|
|
7577
|
-
|
|
7578
|
-
|
|
7569
|
+
ji as clUiTab,
|
|
7570
|
+
Wi as clUiTabContent,
|
|
7571
|
+
Hi as clUiTabHeader,
|
|
7572
|
+
_i as clUiToggle,
|
|
7573
|
+
eu as clUiToggleButton,
|
|
7574
|
+
zu as clUiTreeList,
|
|
7579
7575
|
Qe as currentQuickDates,
|
|
7580
7576
|
vt as dateTimeCalendarTypes,
|
|
7581
|
-
|
|
7582
|
-
|
|
7583
|
-
|
|
7584
|
-
|
|
7577
|
+
qa as datetimeFormats,
|
|
7578
|
+
ec as default,
|
|
7579
|
+
Ea as doesNumberStringContainPart,
|
|
7580
|
+
ts as filterMethodTypes,
|
|
7585
7581
|
Me as formatNumber,
|
|
7586
7582
|
ml as formatNumberAsDecimal,
|
|
7587
7583
|
De as formatNumberAsInteger,
|
|
7588
7584
|
sl as futureQuickDates,
|
|
7589
7585
|
Dl as getMergedFormatOptions,
|
|
7590
|
-
|
|
7591
|
-
|
|
7586
|
+
_n as gridColumnTypes,
|
|
7587
|
+
Dr as headerColour,
|
|
7592
7588
|
qe as i18n,
|
|
7593
|
-
|
|
7594
|
-
|
|
7595
|
-
|
|
7596
|
-
|
|
7597
|
-
|
|
7598
|
-
|
|
7589
|
+
In as inputTextTypes,
|
|
7590
|
+
ei as inputTypes,
|
|
7591
|
+
_o as isComboBoxCreateRequest,
|
|
7592
|
+
xo as isComboBoxItem,
|
|
7593
|
+
ns as isFilterRequest,
|
|
7594
|
+
ss as isFilterResponse,
|
|
7599
7595
|
yt as isGridColumn,
|
|
7600
|
-
|
|
7601
|
-
|
|
7596
|
+
es as isGridColumnArray,
|
|
7597
|
+
li as isLanguageArray,
|
|
7602
7598
|
$l as isLanguageLocaleFormat,
|
|
7603
|
-
|
|
7604
|
-
|
|
7605
|
-
|
|
7606
|
-
|
|
7599
|
+
Ca as messages,
|
|
7600
|
+
$i as modalColours,
|
|
7601
|
+
ki as modalSizes,
|
|
7602
|
+
Sa as numberFormats,
|
|
7607
7603
|
nl as pastQuickDates,
|
|
7608
|
-
|
|
7609
|
-
|
|
7610
|
-
|
|
7611
|
-
|
|
7612
|
-
|
|
7613
|
-
|
|
7614
|
-
|
|
7604
|
+
Zn as popoverPlacements,
|
|
7605
|
+
An as quickDateNames,
|
|
7606
|
+
Ma as scrubGroupSeparatorsFromFormattedValue,
|
|
7607
|
+
xu as setCurrentLocale,
|
|
7608
|
+
Xu as setLocaleDateTimeFormats,
|
|
7609
|
+
Yu as setLocaleMessages,
|
|
7610
|
+
Ju as setLocaleNumberFormats,
|
|
7615
7611
|
Rl as showNotification,
|
|
7616
|
-
|
|
7617
|
-
|
|
7618
|
-
|
|
7612
|
+
ls as stringFormats,
|
|
7613
|
+
Ki as tabColours,
|
|
7614
|
+
Qi as tabLayout,
|
|
7619
7615
|
st as unformatNumber,
|
|
7620
|
-
|
|
7621
|
-
|
|
7622
|
-
|
|
7616
|
+
za as validateEmail,
|
|
7617
|
+
Ra as validateMaxValue,
|
|
7618
|
+
Na as validateMinValue
|
|
7623
7619
|
};
|