@citruslime/ui 4.0.2-beta.3 → 4.0.2-beta.4
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 +245 -243
- package/dist/citrus-lime-ui.umd.js +1 -1
- package/dist/ui.css +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Icon as ae } from "@iconify/vue";
|
|
2
|
-
import { defineComponent as G, ref as I, createElementBlock as v, openBlock as c, renderSlot as
|
|
2
|
+
import { defineComponent as G, ref as I, createElementBlock as v, openBlock as c, renderSlot as R, normalizeProps as he, guardReactiveProps as we, Fragment as K, createElementVNode as h, normalizeClass as V, createVNode as M, unref as m, Transition as Re, withCtx as z, withDirectives as ie, mergeProps as J, vShow as ve, createBlock as j, Teleport as Ol, renderList as _, toDisplayString as U, createCommentVNode as F, computed as T, createTextVNode as de, mergeModels as pe, useModel as ye, watch as ee, createSlots as ke, vModelDynamic as tt, shallowRef as Ll, toValue as rl, toRefs as ot, withKeys as ne, onMounted as Ke, onUnmounted as Ml, withModifiers as x, nextTick as Ue, useAttrs as Qe, resolveComponent as De, inject as ml, vModelCheckbox as Rt, watchEffect as Nt, vModelText as Al, useCssVars as at, toHandlers as Bt, normalizeStyle as il, useSlots as zt, provide as $l, isRef as Ft } from "vue";
|
|
3
3
|
import { generateStringId as Ut, highlightText as Lt, isTouchDevice as Cl, validateEmail as Pt, escapeStringForRegExp as jt } from "@citruslime/utils";
|
|
4
4
|
import { useFocusWithin as Il, onKeyDown as Sl, toArray as Gt, unrefElement as Ht, tryOnScopeDispose as Wt, onClickOutside as Ye, useBreakpoints as nt, breakpointsTailwind as st, useTimeoutFn as rt, useMouseInElement as Zt, useMediaQuery as ul, useThrottle as Kt, useDebounceFn as ll, useMouse as Qt, useDraggable as Yt, useThrottleFn as Jt, useWindowSize as Xt, useElementSize as Pl, useElementBounding as jl } from "@vueuse/core";
|
|
5
5
|
import { useI18n as fe, createI18n as xt } from "vue-i18n";
|
|
@@ -29,7 +29,7 @@ const lo = { class: "cl:overflow-hidden" }, to = /* @__PURE__ */ G({
|
|
|
29
29
|
}), i.open = !i.open);
|
|
30
30
|
}
|
|
31
31
|
return (a, i) => (c(), v("div", lo, [
|
|
32
|
-
|
|
32
|
+
R(a.$slots, "default", he(we({ isItemOpen: e, toggleItem: n })))
|
|
33
33
|
]));
|
|
34
34
|
}
|
|
35
35
|
}), oo = { class: "cl:absolute cl:left-5 cl:top-5" }, ao = { class: "cl:font-semibold cl:ml-10 cl:p-4 cl:select-none cl:text-grey-5" }, no = { class: "cl:overflow-hidden" }, so = /* @__PURE__ */ G({
|
|
@@ -47,7 +47,7 @@ const lo = { class: "cl:overflow-hidden" }, to = /* @__PURE__ */ G({
|
|
|
47
47
|
}
|
|
48
48
|
return (a, i) => (c(), v(K, null, [
|
|
49
49
|
h("div", {
|
|
50
|
-
class:
|
|
50
|
+
class: V(["cl:border-b cl:border-grey-1 cl:relative", {
|
|
51
51
|
"cl:bg-grey-0": a.disabled,
|
|
52
52
|
"cl:cursor-pointer": !a.disabled
|
|
53
53
|
}]),
|
|
@@ -55,7 +55,7 @@ const lo = { class: "cl:overflow-hidden" }, to = /* @__PURE__ */ G({
|
|
|
55
55
|
}, [
|
|
56
56
|
h("div", oo, [
|
|
57
57
|
M(m(ae), {
|
|
58
|
-
class:
|
|
58
|
+
class: V(["cl:duration-300 cl:ease-in-out cl:text-grey-3 cl:transform-gpu cl:transition-transform", {
|
|
59
59
|
"cl:rotate-180": a.open
|
|
60
60
|
}]),
|
|
61
61
|
icon: "ph:caret-down-bold",
|
|
@@ -63,14 +63,14 @@ const lo = { class: "cl:overflow-hidden" }, to = /* @__PURE__ */ G({
|
|
|
63
63
|
}, null, 8, ["class"])
|
|
64
64
|
]),
|
|
65
65
|
h("div", ao, [
|
|
66
|
-
|
|
66
|
+
R(a.$slots, "title")
|
|
67
67
|
])
|
|
68
68
|
], 2),
|
|
69
69
|
h("div", no, [
|
|
70
70
|
M(Re, { name: "grow-down" }, {
|
|
71
71
|
default: z(() => [
|
|
72
72
|
ie(h("div", J(a.$attrs, { class: "cl:ml-10 cl:p-4" }), [
|
|
73
|
-
|
|
73
|
+
R(a.$slots, "default")
|
|
74
74
|
], 16), [
|
|
75
75
|
[ve, a.open]
|
|
76
76
|
])
|
|
@@ -88,7 +88,7 @@ const lo = { class: "cl:overflow-hidden" }, to = /* @__PURE__ */ G({
|
|
|
88
88
|
}, ro = {}, io = { class: "cl:border-b cl:border-grey-1 cl:font-semibold cl:pl-14 cl:pr-4 cl:py-2 cl:text-grey-3 cl:text-sm" };
|
|
89
89
|
function uo(o, t) {
|
|
90
90
|
return c(), v("div", io, [
|
|
91
|
-
|
|
91
|
+
R(o.$slots, "default")
|
|
92
92
|
]);
|
|
93
93
|
}
|
|
94
94
|
const co = /* @__PURE__ */ qe(ro, [["render", uo]]), cl = I([]);
|
|
@@ -113,7 +113,7 @@ const po = ["onClick"], fo = { class: "cl:flex-1 cl:select-none cl:text-ellipsis
|
|
|
113
113
|
setup(o) {
|
|
114
114
|
return (t, l) => (c(), j(Ol, { to: t.container }, [
|
|
115
115
|
h("div", {
|
|
116
|
-
class:
|
|
116
|
+
class: V(["cl:fixed cl:w-80 cl:z-50", {
|
|
117
117
|
"cl:top-[5.5rem] cl:left-5": t.position === "top-left" && t.headerVisible,
|
|
118
118
|
"cl:top-[5.5rem] cl:left-1/2": t.position === "top-centre" && t.headerVisible,
|
|
119
119
|
"cl:top-[5.5rem] cl:right-5": t.position === "top-right" && t.headerVisible,
|
|
@@ -158,21 +158,21 @@ const po = ["onClick"], fo = { class: "cl:flex-1 cl:select-none cl:text-ellipsis
|
|
|
158
158
|
"header-visible": !!t.$slots.header
|
|
159
159
|
}, null, 8, ["header-visible"]),
|
|
160
160
|
h("div", mo, [
|
|
161
|
-
|
|
161
|
+
R(t.$slots, "header"),
|
|
162
162
|
h("div", {
|
|
163
|
-
class:
|
|
163
|
+
class: V(["cl:content-start cl:flex cl:flex-nowrap cl:h-dscreen cl:items-stretch cl:max-h-full cl:relative cl:w-full cl:xl:max-h-screen", {
|
|
164
164
|
"cl:pt-20": t.$slots.header
|
|
165
165
|
}])
|
|
166
166
|
}, [
|
|
167
|
-
|
|
167
|
+
R(t.$slots, "navigation"),
|
|
168
168
|
h("div", {
|
|
169
169
|
id: "cl-ui-app-container",
|
|
170
|
-
class:
|
|
170
|
+
class: V(["cl:grow cl:max-h-full cl:overflow-x-hidden cl:overflow-y-auto cl:overscroll-y-none cl:w-auto", {
|
|
171
171
|
"cl:lg:pb-0": t.removePadding,
|
|
172
172
|
"cl:lg:pb-8 cl:md:px-8 cl:px-2 cl:md:pt-8 cl:pt-2": !t.removePadding
|
|
173
173
|
}])
|
|
174
174
|
}, [
|
|
175
|
-
|
|
175
|
+
R(t.$slots, "default")
|
|
176
176
|
], 2)
|
|
177
177
|
], 2)
|
|
178
178
|
])
|
|
@@ -224,7 +224,7 @@ const tl = /* @__PURE__ */ qe(vo, [["render", bo], ["__scopeId", "data-v-1eee625
|
|
|
224
224
|
}],
|
|
225
225
|
disabled: e.disabled || e.loading
|
|
226
226
|
}), [
|
|
227
|
-
|
|
227
|
+
R(e.$slots, "default"),
|
|
228
228
|
e.loading ? (c(), v("div", wo, [
|
|
229
229
|
M(tl, { class: "cl:-translate-x-1/2 cl:after:h-6! cl:after:w-6! cl:h-6! cl:w-6!" })
|
|
230
230
|
])) : F("", !0)
|
|
@@ -249,43 +249,43 @@ const tl = /* @__PURE__ */ qe(vo, [["render", bo], ["__scopeId", "data-v-1eee625
|
|
|
249
249
|
},
|
|
250
250
|
setup(o) {
|
|
251
251
|
return (t, l) => (c(), v("div", {
|
|
252
|
-
class:
|
|
252
|
+
class: V(["cl:border cl:border-transparent cl:overflow-hidden cl:relative cl:rounded-md cl:shadow-lg cl:transition-all", {
|
|
253
253
|
"cl:cursor-pointer cl:hover:shadow-xl cl:hover:border-grey-0": t.hover
|
|
254
254
|
}])
|
|
255
255
|
}, [
|
|
256
256
|
t.$slots.image ? (c(), v("div", Co, [
|
|
257
|
-
|
|
257
|
+
R(t.$slots, "image")
|
|
258
258
|
])) : F("", !0),
|
|
259
259
|
t.$slots.title ? (c(), v("div", {
|
|
260
260
|
key: 1,
|
|
261
|
-
class:
|
|
261
|
+
class: V(["cl:border-grey-2 cl:font-normal", {
|
|
262
262
|
"cl:p-2 cl:text-2xl cl:leading-8": t.size === "small",
|
|
263
263
|
"cl:p-4 cl:text-3xl cl:leading-9": t.size === "medium",
|
|
264
264
|
"cl:p-6 cl:text-4xl cl:leading-10": t.size === "large",
|
|
265
265
|
"cl:border-t": t.$slots.image
|
|
266
266
|
}])
|
|
267
267
|
}, [
|
|
268
|
-
|
|
268
|
+
R(t.$slots, "title")
|
|
269
269
|
], 2)) : F("", !0),
|
|
270
270
|
h("div", {
|
|
271
|
-
class:
|
|
271
|
+
class: V(["cl:border-grey-2", {
|
|
272
272
|
"cl:p-2": t.size === "small",
|
|
273
273
|
"cl:p-4": t.size === "medium",
|
|
274
274
|
"cl:p-6": t.size === "large",
|
|
275
275
|
"cl:border-t": t.$slots.image || t.$slots.title
|
|
276
276
|
}])
|
|
277
277
|
}, [
|
|
278
|
-
|
|
278
|
+
R(t.$slots, "default")
|
|
279
279
|
], 2),
|
|
280
280
|
t.$slots.footer ? (c(), v("div", {
|
|
281
281
|
key: 2,
|
|
282
|
-
class:
|
|
282
|
+
class: V(["cl:border-grey-2 cl:border-t", {
|
|
283
283
|
"cl:p-2": t.size === "small",
|
|
284
284
|
"cl:p-4": t.size === "medium",
|
|
285
285
|
"cl:p-6": t.size === "large"
|
|
286
286
|
}])
|
|
287
287
|
}, [
|
|
288
|
-
|
|
288
|
+
R(t.$slots, "footer")
|
|
289
289
|
], 2)) : F("", !0)
|
|
290
290
|
], 2));
|
|
291
291
|
}
|
|
@@ -316,16 +316,16 @@ const tl = /* @__PURE__ */ qe(vo, [["render", bo], ["__scopeId", "data-v-1eee625
|
|
|
316
316
|
const t = o, l = T(() => Object.keys(t.errors ?? []).length > 0);
|
|
317
317
|
return (e, n) => (c(), v("div", qo, [
|
|
318
318
|
h("div", {
|
|
319
|
-
class:
|
|
319
|
+
class: V(["cl:flex", { "cl:flex-col": e.labelPosition === "above", "cl:flex-row-reverse cl:gap-2 cl:items-center cl:justify-end": e.labelPosition === "right" }])
|
|
320
320
|
}, [
|
|
321
321
|
h("div", Do, [
|
|
322
322
|
e.$slots.label ? (c(), v("span", Eo, [
|
|
323
|
-
|
|
323
|
+
R(e.$slots, "label")
|
|
324
324
|
])) : F("", !0),
|
|
325
325
|
e.showRequiredAsterisk ? (c(), v("span", Oo, "*")) : F("", !0)
|
|
326
326
|
]),
|
|
327
327
|
h("div", null, [
|
|
328
|
-
|
|
328
|
+
R(e.$slots, "default")
|
|
329
329
|
])
|
|
330
330
|
], 2),
|
|
331
331
|
l.value ? (c(), v("div", Mo, [
|
|
@@ -337,7 +337,7 @@ const tl = /* @__PURE__ */ qe(vo, [["render", bo], ["__scopeId", "data-v-1eee625
|
|
|
337
337
|
])
|
|
338
338
|
])) : e.errors || e.$slots.helpText ? (c(), v("div", Io, [
|
|
339
339
|
h("span", Vo, [
|
|
340
|
-
|
|
340
|
+
R(e.$slots, "helpText", {}, () => [
|
|
341
341
|
n[0] || (n[0] = de(" "))
|
|
342
342
|
])
|
|
343
343
|
])
|
|
@@ -361,7 +361,7 @@ const tl = /* @__PURE__ */ qe(vo, [["render", bo], ["__scopeId", "data-v-1eee625
|
|
|
361
361
|
}),
|
|
362
362
|
emits: /* @__PURE__ */ pe(["focus", "blur", "keySinglePress"], ["update:modelValue"]),
|
|
363
363
|
setup(o, { expose: t, emit: l }) {
|
|
364
|
-
const e = o, n =
|
|
364
|
+
const e = o, n = ye(o, "modelValue"), a = l, i = I(), { focused: d } = Il(i);
|
|
365
365
|
return ee(d, () => {
|
|
366
366
|
var f;
|
|
367
367
|
d.value && e.selectOnFocus && ((f = i.value) == null || f.select());
|
|
@@ -406,14 +406,14 @@ const tl = /* @__PURE__ */ qe(vo, [["render", bo], ["__scopeId", "data-v-1eee625
|
|
|
406
406
|
f.$slots.default ? {
|
|
407
407
|
name: "label",
|
|
408
408
|
fn: z(() => [
|
|
409
|
-
|
|
409
|
+
R(f.$slots, "default")
|
|
410
410
|
]),
|
|
411
411
|
key: "0"
|
|
412
412
|
} : void 0,
|
|
413
413
|
f.$slots["help-text"] ? {
|
|
414
414
|
name: "helpText",
|
|
415
415
|
fn: z(() => [
|
|
416
|
-
|
|
416
|
+
R(f.$slots, "help-text")
|
|
417
417
|
]),
|
|
418
418
|
key: "1"
|
|
419
419
|
} : void 0
|
|
@@ -475,7 +475,7 @@ const zo = {
|
|
|
475
475
|
}),
|
|
476
476
|
emits: ["update:visible"],
|
|
477
477
|
setup(o) {
|
|
478
|
-
const t = o, l =
|
|
478
|
+
const t = o, l = ye(o, "visible"), { trapFocus: e } = ot(t), n = I(), a = Bo(n);
|
|
479
479
|
ee([
|
|
480
480
|
e,
|
|
481
481
|
l
|
|
@@ -497,7 +497,7 @@ const zo = {
|
|
|
497
497
|
r.key === "Escape" && d();
|
|
498
498
|
}
|
|
499
499
|
return (r, s) => (c(), v(K, null, [
|
|
500
|
-
|
|
500
|
+
R(r.$slots, "trigger", he(we({ open: i }))),
|
|
501
501
|
(c(), j(Ol, { to: "body" }, [
|
|
502
502
|
M(Re, { name: "fade" }, {
|
|
503
503
|
default: z(() => [
|
|
@@ -516,7 +516,7 @@ const zo = {
|
|
|
516
516
|
}]
|
|
517
517
|
}), [
|
|
518
518
|
ie(h("div", {
|
|
519
|
-
class:
|
|
519
|
+
class: V(["cl:absolute cl:cursor-pointer cl:right-4 cl:top-4 cl:transition-colors cl:w-3", {
|
|
520
520
|
"cl:text-white cl:hover:text-off-white": r.headerColour === "secondary",
|
|
521
521
|
"cl:text-secondary cl:hover:text-off-white": r.headerColour === "primary",
|
|
522
522
|
"cl:text-black cl:hover:text-grey-7": r.headerColour === "white"
|
|
@@ -530,18 +530,18 @@ const zo = {
|
|
|
530
530
|
[ve, !r.preventClose]
|
|
531
531
|
]),
|
|
532
532
|
h("div", {
|
|
533
|
-
class:
|
|
533
|
+
class: V(["cl:leading-[2.75rem] cl:min-h-12 cl:overflow-hidden cl:pb-2 cl:pl-4 cl:pr-8 cl:pt-2 cl:text-2xl cl:w-full", {
|
|
534
534
|
"cl:bg-secondary-default cl:text-white": r.headerColour === "secondary",
|
|
535
535
|
"cl:bg-primary-default cl:text-secondary": r.headerColour === "primary"
|
|
536
536
|
}])
|
|
537
537
|
}, [
|
|
538
|
-
|
|
538
|
+
R(r.$slots, "title"),
|
|
539
539
|
r.headerColour === "white" ? (c(), v("hr", zo)) : F("", !0)
|
|
540
540
|
], 2),
|
|
541
541
|
h("div", Fo, [
|
|
542
|
-
|
|
542
|
+
R(r.$slots, "default", he(we({ close: d })))
|
|
543
543
|
]),
|
|
544
|
-
|
|
544
|
+
R(r.$slots, "footer", he(we({ close: d })))
|
|
545
545
|
], 16)
|
|
546
546
|
], 512), [
|
|
547
547
|
[ve, l.value]
|
|
@@ -567,7 +567,7 @@ const zo = {
|
|
|
567
567
|
return (t, l) => (c(), v("div", Uo, [
|
|
568
568
|
t.additionalText !== "" ? (c(), v("div", Lo, U(t.additionalText), 1)) : F("", !0),
|
|
569
569
|
h("div", {
|
|
570
|
-
class:
|
|
570
|
+
class: V({
|
|
571
571
|
"cl:w-1/2": t.additionalText !== "",
|
|
572
572
|
"cl:w-full": t.additionalText === ""
|
|
573
573
|
})
|
|
@@ -619,7 +619,7 @@ const zo = {
|
|
|
619
619
|
return ee(() => l.selectedIndex, () => r()), (s, p) => {
|
|
620
620
|
var g, b;
|
|
621
621
|
return c(), v("div", {
|
|
622
|
-
class:
|
|
622
|
+
class: V(["cl:cursor-pointer cl:duration-75 cl:flex cl:p-1 cl:text-left cl:transition-colors", {
|
|
623
623
|
"cl:bg-white": i.value === !1,
|
|
624
624
|
"cl:bg-link-light cl:text-white cl:opacity-90": i.value && s.isCreateNewOption === !1,
|
|
625
625
|
"cl:bg-primary-default cl:text-black cl:opacity-90": i.value && s.isCreateNewOption
|
|
@@ -630,7 +630,7 @@ const zo = {
|
|
|
630
630
|
}, [
|
|
631
631
|
s.option !== null && ((g = s.option) == null ? void 0 : g.parentId) !== 0 && ((b = s.option) == null ? void 0 : b.parentId) !== void 0 ? (c(), v("div", Po, U(a.value), 1)) : F("", !0),
|
|
632
632
|
h("div", {
|
|
633
|
-
class:
|
|
633
|
+
class: V({
|
|
634
634
|
"cl:w-1/2": a.value !== "",
|
|
635
635
|
"cl:w-full": a.value === ""
|
|
636
636
|
})
|
|
@@ -725,7 +725,7 @@ const zo = {
|
|
|
725
725
|
key: 0,
|
|
726
726
|
ref_key: "container",
|
|
727
727
|
ref: r,
|
|
728
|
-
class:
|
|
728
|
+
class: V(["cl:absolute cl:bg-white cl:border cl:border-collapse cl:border-grey-0 cl:h-52 cl:mt-2 cl:overflow-y-auto cl:overscroll-y-none cl:rounded-sm cl:text-sm cl:w-full cl:z-20", {
|
|
729
729
|
"cl:overflow-y-hidden": $.loading
|
|
730
730
|
}]),
|
|
731
731
|
onKeydown: [
|
|
@@ -866,7 +866,7 @@ const zo = {
|
|
|
866
866
|
parentId: ((u = b.value) == null ? void 0 : u.id) ?? 0
|
|
867
867
|
}, n("create-object", y.value);
|
|
868
868
|
}
|
|
869
|
-
function
|
|
869
|
+
function be() {
|
|
870
870
|
y.value = {
|
|
871
871
|
name: E.value,
|
|
872
872
|
parentId: 0
|
|
@@ -949,7 +949,7 @@ const zo = {
|
|
|
949
949
|
modelValue: w.value,
|
|
950
950
|
"onUpdate:modelValue": S[0] || (S[0] = (Z) => w.value = Z),
|
|
951
951
|
readonly: !0,
|
|
952
|
-
class:
|
|
952
|
+
class: V(["cl:box-border cl:font-light cl:mb-0 cl:p-[5.5px] cl:rounded-r-none cl:text-sm", {
|
|
953
953
|
"cl:cursor-pointer": u.disabled === !1
|
|
954
954
|
}]),
|
|
955
955
|
placeholder: f.value,
|
|
@@ -977,7 +977,7 @@ const zo = {
|
|
|
977
977
|
]),
|
|
978
978
|
p.value ? (c(), v("div", {
|
|
979
979
|
key: 1,
|
|
980
|
-
class:
|
|
980
|
+
class: V(["cl:border cl:border-grey-2 cl:border-l-0 cl:float-right cl:rounded-l-none cl:rounded-lg cl:text-grey-3 cl:transition-colors cl:w-[27px]", {
|
|
981
981
|
"cl:cursor-default cl:bg-off-white": u.disabled,
|
|
982
982
|
"cl:cursor-pointer cl:hover:bg-link-light cl:hover:opacity-90 cl:hover:text-white cl:bg-white": u.disabled === !1
|
|
983
983
|
}]),
|
|
@@ -990,7 +990,7 @@ const zo = {
|
|
|
990
990
|
})
|
|
991
991
|
], 10, ea)) : (c(), v("div", {
|
|
992
992
|
key: 0,
|
|
993
|
-
class:
|
|
993
|
+
class: V(["cl:border cl:border-grey-2 cl:border-l-0 cl:float-right cl:rounded-l-none cl:rounded-lg cl:text-grey-3 cl:transition-colors cl:w-[27px]", {
|
|
994
994
|
"cl:cursor-default cl:bg-off-white": u.disabled,
|
|
995
995
|
"cl:cursor-pointer cl:hover:bg-link-light cl:hover:opacity-90 cl:hover:text-white cl:bg-white": u.disabled === !1
|
|
996
996
|
}]),
|
|
@@ -1018,7 +1018,7 @@ const zo = {
|
|
|
1018
1018
|
"error-message": u.errorMessage,
|
|
1019
1019
|
"current-object-name": w.value,
|
|
1020
1020
|
"is-visible": p.value,
|
|
1021
|
-
class:
|
|
1021
|
+
class: V({
|
|
1022
1022
|
"cl:bottom-full": B.value
|
|
1023
1023
|
}),
|
|
1024
1024
|
"search-hint": r.value,
|
|
@@ -1075,7 +1075,7 @@ const zo = {
|
|
|
1075
1075
|
"can-clear-selected-object": u.canClearSelectedObject,
|
|
1076
1076
|
"error-message": u.errorMessage,
|
|
1077
1077
|
onSearch: $,
|
|
1078
|
-
onCreateObject:
|
|
1078
|
+
onCreateObject: be
|
|
1079
1079
|
}, null, 8, ["current-object", "results", "loading", "object-type", "object-created-response", "can-create-new-object", "can-clear-selected-object", "error-message"])) : F("", !0),
|
|
1080
1080
|
M(Fe, {
|
|
1081
1081
|
modelValue: k.value,
|
|
@@ -1111,14 +1111,14 @@ const sa = {}, ra = { class: "cl:flex cl:flex-wrap cl:left-0 cl:mt-4 cl:w-full"
|
|
|
1111
1111
|
function pa(o, t) {
|
|
1112
1112
|
return c(), v("div", ra, [
|
|
1113
1113
|
o.$slots.default ? (c(), v("div", ia, [
|
|
1114
|
-
|
|
1114
|
+
R(o.$slots, "default")
|
|
1115
1115
|
])) : F("", !0),
|
|
1116
1116
|
o.$slots.left || o.$slots.right ? (c(), v("div", ua, [
|
|
1117
1117
|
h("span", ca, [
|
|
1118
|
-
|
|
1118
|
+
R(o.$slots, "left")
|
|
1119
1119
|
]),
|
|
1120
1120
|
h("span", da, [
|
|
1121
|
-
|
|
1121
|
+
R(o.$slots, "right")
|
|
1122
1122
|
])
|
|
1123
1123
|
])) : F("", !0)
|
|
1124
1124
|
]);
|
|
@@ -1147,7 +1147,7 @@ const Vl = /* @__PURE__ */ qe(ba, [["render", wa]]), Tl = /* @__PURE__ */ G({
|
|
|
1147
1147
|
key: n,
|
|
1148
1148
|
class: "cl:animate-pulse cl:bg-off-white cl:rounded-full cl:w-16"
|
|
1149
1149
|
}, [
|
|
1150
|
-
|
|
1150
|
+
R(t.$slots, "default", {}, () => [
|
|
1151
1151
|
l[0] || (l[0] = de(" "))
|
|
1152
1152
|
])
|
|
1153
1153
|
]))), 128))
|
|
@@ -1201,7 +1201,7 @@ const ka = {
|
|
|
1201
1201
|
})), 64))
|
|
1202
1202
|
])) : (c(), v("div", $a, [
|
|
1203
1203
|
h("div", {
|
|
1204
|
-
class:
|
|
1204
|
+
class: V(["cl:lg:hidden cl:mb-2 cl:text-sm", {
|
|
1205
1205
|
"cl:hidden": a.options.hideGridMobileView
|
|
1206
1206
|
}])
|
|
1207
1207
|
}, [
|
|
@@ -1209,7 +1209,7 @@ const ka = {
|
|
|
1209
1209
|
], 2),
|
|
1210
1210
|
h("div", Ca, [
|
|
1211
1211
|
h("div", Sa, [
|
|
1212
|
-
|
|
1212
|
+
R(a.$slots, "additional-grid-actions", he(we({
|
|
1213
1213
|
loading: a.loading,
|
|
1214
1214
|
editMode: a.options.forceEditMode || a.editMode
|
|
1215
1215
|
})))
|
|
@@ -1250,11 +1250,11 @@ const ka = {
|
|
|
1250
1250
|
_: 1
|
|
1251
1251
|
}, 8, ["disabled"])) : F("", !0),
|
|
1252
1252
|
a.options.hideViewManager === !1 ? (c(), v("div", Ta, [
|
|
1253
|
-
|
|
1253
|
+
R(a.$slots, "view-manager")
|
|
1254
1254
|
])) : F("", !0),
|
|
1255
1255
|
m(yl)(a.columns) || m(Wl)(a.options, a.columns) ? (c(), v(K, { key: 3 }, [
|
|
1256
1256
|
h("div", {
|
|
1257
|
-
class:
|
|
1257
|
+
class: V(["cl:block cl:flex-1 cl:lg:flex-none cl:lg:hidden", {
|
|
1258
1258
|
"cl:hidden": a.options.hideGridMobileView
|
|
1259
1259
|
}])
|
|
1260
1260
|
}, [
|
|
@@ -1302,7 +1302,7 @@ const ka = {
|
|
|
1302
1302
|
}),
|
|
1303
1303
|
emits: /* @__PURE__ */ pe(["focus", "blur"], ["update:modelValue"]),
|
|
1304
1304
|
setup(o, { expose: t, emit: l }) {
|
|
1305
|
-
const e =
|
|
1305
|
+
const e = ye(o, "modelValue"), n = l, a = I();
|
|
1306
1306
|
return t({
|
|
1307
1307
|
focus: () => {
|
|
1308
1308
|
var i;
|
|
@@ -1348,7 +1348,7 @@ const ka = {
|
|
|
1348
1348
|
h("label", {
|
|
1349
1349
|
for: i.$attrs.id ? i.$attrs.id.toString() : ""
|
|
1350
1350
|
}, [
|
|
1351
|
-
|
|
1351
|
+
R(i.$slots, "default", {}, void 0, !0)
|
|
1352
1352
|
], 8, Da)
|
|
1353
1353
|
]),
|
|
1354
1354
|
key: "0"
|
|
@@ -1356,7 +1356,7 @@ const ka = {
|
|
|
1356
1356
|
i.$slots["help-text"] ? {
|
|
1357
1357
|
name: "helpText",
|
|
1358
1358
|
fn: z(() => [
|
|
1359
|
-
|
|
1359
|
+
R(i.$slots, "help-text", {}, void 0, !0)
|
|
1360
1360
|
]),
|
|
1361
1361
|
key: "1"
|
|
1362
1362
|
} : void 0
|
|
@@ -1923,7 +1923,7 @@ const Ha = {
|
|
|
1923
1923
|
}
|
|
1924
1924
|
return (r, s) => {
|
|
1925
1925
|
var p;
|
|
1926
|
-
return r.column.type === "slot" ?
|
|
1926
|
+
return r.column.type === "slot" ? R(r.$slots, r.column.name, { key: 0 }) : r.column.type === "boolean" && r.column.field !== void 0 ? (c(), j(vl, {
|
|
1927
1927
|
key: 1,
|
|
1928
1928
|
id: `checkbox-${r.column.field}-${r.rowIndex}`,
|
|
1929
1929
|
readonly: !0,
|
|
@@ -1972,7 +1972,7 @@ const Ha = {
|
|
|
1972
1972
|
});
|
|
1973
1973
|
const f = T(() => l.options.textSize === "x-small" ? "cl:lg:text-xs" : l.options.textSize === "small" ? "cl:lg:text-sm" : l.options.textSize === "medium" ? "cl:lg:text-base" : l.options.textSize === "large" ? "cl:lg:text-lg" : "cl:lg:text-sm");
|
|
1974
1974
|
return (r, s) => (c(), v("td", {
|
|
1975
|
-
class:
|
|
1975
|
+
class: V(["cl:gap-1 cl:lg:px-1 cl:py-2 cl:text-xs", [
|
|
1976
1976
|
r.options.hideGridMobileView ? "cl:table-cell cl:m-0" : "cl:border-b cl:border-grey-1 cl:grid cl:grid-cols-2 cl:m-1 cl:mb-0 cl:lg:border-b-0 cl:lg:m-0 cl:lg:table-cell",
|
|
1977
1977
|
{
|
|
1978
1978
|
"cl:bg-link-lighter": i.value
|
|
@@ -1981,11 +1981,11 @@ const Ha = {
|
|
|
1981
1981
|
]])
|
|
1982
1982
|
}, [
|
|
1983
1983
|
h("span", {
|
|
1984
|
-
class:
|
|
1984
|
+
class: V(["cl:font-semibold cl:lg:hidden", {
|
|
1985
1985
|
"cl:hidden": r.options.hideGridMobileView
|
|
1986
1986
|
}])
|
|
1987
1987
|
}, U(m(n)(r.column.caption)), 3),
|
|
1988
|
-
r.editMode && r.column.editable === !0 ?
|
|
1988
|
+
r.editMode && r.column.editable === !0 ? R(r.$slots, `${r.column.name}Edit`, he(J({ key: 0 }, {
|
|
1989
1989
|
cellFocused: () => e("focus"),
|
|
1990
1990
|
column: r.column,
|
|
1991
1991
|
edited: i.value,
|
|
@@ -2001,7 +2001,7 @@ const Ha = {
|
|
|
2001
2001
|
"row-index": r.rowIndex
|
|
2002
2002
|
}, {
|
|
2003
2003
|
[r.column.name]: z(() => [
|
|
2004
|
-
|
|
2004
|
+
R(r.$slots, r.column.name, he(we({
|
|
2005
2005
|
column: r.column,
|
|
2006
2006
|
record: r.data,
|
|
2007
2007
|
searchValue: r.searchValue
|
|
@@ -2018,7 +2018,7 @@ const Ha = {
|
|
|
2018
2018
|
"row-index": r.rowIndex
|
|
2019
2019
|
}, {
|
|
2020
2020
|
[r.column.name]: z(() => [
|
|
2021
|
-
|
|
2021
|
+
R(r.$slots, r.column.name, he(we({ column: r.column, record: r.data, searchValue: r.searchValue })))
|
|
2022
2022
|
]),
|
|
2023
2023
|
_: 2
|
|
2024
2024
|
}, 1032, ["column", "data", "time-zone", "search-value", "row-index"]))
|
|
@@ -2052,7 +2052,7 @@ const Ha = {
|
|
|
2052
2052
|
"edit-mode": l.editMode,
|
|
2053
2053
|
"row-index": l.rowIndex,
|
|
2054
2054
|
rowspan: m(t) && l.groupBy === n.field ? l.groupGridAreaSpan : void 0,
|
|
2055
|
-
class:
|
|
2055
|
+
class: V({
|
|
2056
2056
|
"cl:bg-white": l.groupBy === n.field && l.groupGridAreaSpan > 1
|
|
2057
2057
|
}),
|
|
2058
2058
|
onFocus: e[0] || (e[0] = (i) => l.$emit("cell-focus")),
|
|
@@ -2062,7 +2062,7 @@ const Ha = {
|
|
|
2062
2062
|
_(l.$slots, (i, d) => ({
|
|
2063
2063
|
name: d,
|
|
2064
2064
|
fn: z((f) => [
|
|
2065
|
-
|
|
2065
|
+
R(l.$slots, d, J({ ref_for: !0 }, f))
|
|
2066
2066
|
])
|
|
2067
2067
|
}))
|
|
2068
2068
|
]), 1032, ["data", "column", "options", "time-zone", "search-value", "edit-mode", "row-index", "rowspan", "class", "onEdit", "onUndo"])) : F("", !0)
|
|
@@ -2093,7 +2093,7 @@ const Ha = {
|
|
|
2093
2093
|
}),
|
|
2094
2094
|
emits: /* @__PURE__ */ pe(["row-select", "row-edit", "row-edit-cancelled", "clear-filters"], ["update:selectedRowIndex"]),
|
|
2095
2095
|
setup(o, { emit: t }) {
|
|
2096
|
-
const l = o, e =
|
|
2096
|
+
const l = o, e = ye(o, "selectedRowIndex"), n = t, { t: a } = fe(), i = I({
|
|
2097
2097
|
index: -1,
|
|
2098
2098
|
record: {}
|
|
2099
2099
|
});
|
|
@@ -2176,7 +2176,7 @@ const Ha = {
|
|
|
2176
2176
|
y.initialLoad ? (c(!0), v(K, { key: 0 }, _(y.request.pageSize, (O) => (c(), v("tr", { key: O }, [
|
|
2177
2177
|
h("td", {
|
|
2178
2178
|
colspan: y.columns.length,
|
|
2179
|
-
class:
|
|
2179
|
+
class: V(
|
|
2180
2180
|
{
|
|
2181
2181
|
"cl:border-t cl:border-off-white": O % 2 === 0
|
|
2182
2182
|
}
|
|
@@ -2194,7 +2194,7 @@ const Ha = {
|
|
|
2194
2194
|
"time-zone": y.timeZone,
|
|
2195
2195
|
"search-value": y.searchValue,
|
|
2196
2196
|
"edit-mode": y.editMode,
|
|
2197
|
-
class:
|
|
2197
|
+
class: V(["cl:transition-colors", {
|
|
2198
2198
|
"cl:bg-white": D % 2 === 0 && y.data.totalRecords > 1,
|
|
2199
2199
|
"cl:bg-off-white": D % 2 === 1 || y.data.totalRecords === 1,
|
|
2200
2200
|
"cl:cursor-pointer": (y.options.highlightRowSelection || y.options.rowSelectionEnabled) && !y.editMode,
|
|
@@ -2219,14 +2219,14 @@ const Ha = {
|
|
|
2219
2219
|
_(y.$slots, (P, Y) => ({
|
|
2220
2220
|
name: Y,
|
|
2221
2221
|
fn: z((H) => [
|
|
2222
|
-
|
|
2222
|
+
R(y.$slots, Y, J({ ref_for: !0 }, H))
|
|
2223
2223
|
])
|
|
2224
2224
|
}))
|
|
2225
2225
|
]), 1032, ["data", "options", "columns", "time-zone", "search-value", "edit-mode", "class", "row-index", "group-by", "group-grid-area-span", "onClick", "onCellFocus", "onCellEdit"]);
|
|
2226
2226
|
}), 128)),
|
|
2227
2227
|
y.data.results.length < y.request.pageSize ? (c(!0), v(K, { key: 0 }, _(Math.max(5 - y.data.results.length, 0), (O) => (c(), v("tr", {
|
|
2228
2228
|
key: O,
|
|
2229
|
-
class:
|
|
2229
|
+
class: V(["cl:lg:table-row", {
|
|
2230
2230
|
"cl:hidden": l.options.hideGridMobileView === !1
|
|
2231
2231
|
}])
|
|
2232
2232
|
}, [
|
|
@@ -2241,7 +2241,7 @@ const Ha = {
|
|
|
2241
2241
|
}, [
|
|
2242
2242
|
h("div", en, [
|
|
2243
2243
|
y.$slots.noData && y.request.filters.some((O) => O.filterValue !== "") === !1 ? (c(), v("div", ln, [
|
|
2244
|
-
|
|
2244
|
+
R(y.$slots, "noData")
|
|
2245
2245
|
])) : (c(), v("strong", tn, U(m(a)("grid.noData")), 1)),
|
|
2246
2246
|
y.request.filters.some((O) => O.filterValue !== "") ? (c(), v("div", on, [
|
|
2247
2247
|
h("div", an, U(m(a)("grid.noDataFiltersPresent")), 1),
|
|
@@ -2286,7 +2286,7 @@ const Ha = {
|
|
|
2286
2286
|
}),
|
|
2287
2287
|
emits: /* @__PURE__ */ pe(["focus", "blur"], ["update:modelValue"]),
|
|
2288
2288
|
setup(o, { expose: t, emit: l }) {
|
|
2289
|
-
const e = o, n =
|
|
2289
|
+
const e = o, n = ye(o, "modelValue"), a = l, i = I(0), d = I(), f = I(), { isOutside: r } = Zt(f), { focused: s } = Il(d), p = T(() => e.showArrows && r.value === !1);
|
|
2290
2290
|
ee(s, () => {
|
|
2291
2291
|
s.value ? (y.value = O.value, A.value = !1, (oe.value || e.selectOnFocus || n.value === 0) && setTimeout(() => {
|
|
2292
2292
|
var C, L;
|
|
@@ -2346,7 +2346,7 @@ const Ha = {
|
|
|
2346
2346
|
}
|
|
2347
2347
|
}
|
|
2348
2348
|
const oe = I(!1);
|
|
2349
|
-
function
|
|
2349
|
+
function be() {
|
|
2350
2350
|
var C;
|
|
2351
2351
|
oe.value = !0, (C = f.value) == null || C.focus();
|
|
2352
2352
|
}
|
|
@@ -2359,7 +2359,7 @@ const Ha = {
|
|
|
2359
2359
|
var C;
|
|
2360
2360
|
return (C = f.value) == null ? void 0 : C.blur();
|
|
2361
2361
|
},
|
|
2362
|
-
select: () =>
|
|
2362
|
+
select: () => be()
|
|
2363
2363
|
}), (C, L) => {
|
|
2364
2364
|
const le = De("icon");
|
|
2365
2365
|
return c(), j(Be, {
|
|
@@ -2424,14 +2424,14 @@ const Ha = {
|
|
|
2424
2424
|
C.$slots.default ? {
|
|
2425
2425
|
name: "label",
|
|
2426
2426
|
fn: z(() => [
|
|
2427
|
-
|
|
2427
|
+
R(C.$slots, "default")
|
|
2428
2428
|
]),
|
|
2429
2429
|
key: "0"
|
|
2430
2430
|
} : void 0,
|
|
2431
2431
|
C.$slots["help-text"] ? {
|
|
2432
2432
|
name: "helpText",
|
|
2433
2433
|
fn: z(() => [
|
|
2434
|
-
|
|
2434
|
+
R(C.$slots, "help-text")
|
|
2435
2435
|
]),
|
|
2436
2436
|
key: "1"
|
|
2437
2437
|
} : void 0
|
|
@@ -2503,7 +2503,7 @@ const Ha = {
|
|
|
2503
2503
|
])
|
|
2504
2504
|
])) : s.loading || (b = (g = s.data) == null ? void 0 : g.results) != null && b.length && s.request ? (c(), v("div", {
|
|
2505
2505
|
key: 1,
|
|
2506
|
-
class:
|
|
2506
|
+
class: V(["cl:flex cl:flex-wrap cl:lg:gap-2", {
|
|
2507
2507
|
"cl:opacity-40": s.loading
|
|
2508
2508
|
}]),
|
|
2509
2509
|
inert: s.loading
|
|
@@ -2524,7 +2524,7 @@ const Ha = {
|
|
|
2524
2524
|
h("ul", Sn, [
|
|
2525
2525
|
(c(), v(K, null, _(f, (k, E) => h("li", {
|
|
2526
2526
|
key: E,
|
|
2527
|
-
class:
|
|
2527
|
+
class: V(["cl:last:mr-0 cl:mr-1", {
|
|
2528
2528
|
"cl:text-black cl:font-bold": s.request.pageSize === k,
|
|
2529
2529
|
"cl:cursor-pointer": s.request.pageSize !== k
|
|
2530
2530
|
}]),
|
|
@@ -2536,7 +2536,7 @@ const Ha = {
|
|
|
2536
2536
|
h("div", null, [
|
|
2537
2537
|
h("ul", qn, [
|
|
2538
2538
|
h("li", {
|
|
2539
|
-
class:
|
|
2539
|
+
class: V({
|
|
2540
2540
|
"cl:text-grey-2 cl:pointer-events-none": s.request.pageNumber === 1,
|
|
2541
2541
|
"cl:cursor-pointer": s.request.pageNumber > 1
|
|
2542
2542
|
}),
|
|
@@ -2548,7 +2548,7 @@ const Ha = {
|
|
|
2548
2548
|
})
|
|
2549
2549
|
], 2),
|
|
2550
2550
|
h("li", {
|
|
2551
|
-
class:
|
|
2551
|
+
class: V({
|
|
2552
2552
|
"cl:cursor-pointer": s.request.pageNumber > 1,
|
|
2553
2553
|
"cl:text-grey-2 cl:pointer-events-none": s.request.pageNumber < 2
|
|
2554
2554
|
}),
|
|
@@ -2561,7 +2561,7 @@ const Ha = {
|
|
|
2561
2561
|
], 2),
|
|
2562
2562
|
(c(!0), v(K, null, _(i.value, (k, E) => (c(), v("li", {
|
|
2563
2563
|
key: E,
|
|
2564
|
-
class:
|
|
2564
|
+
class: V(["cl:border cl:border-grey-2 cl:px-1.5 cl:rounded-sm cl:text-secondary-default", {
|
|
2565
2565
|
"cl:font-bold cl:bg-primary-lighter cl:border-primary-default": s.request.pageNumber === k && !s.loading,
|
|
2566
2566
|
"cl:cursor-pointer ": s.request.pageNumber !== k,
|
|
2567
2567
|
"cl:bg-grey-0": s.loading
|
|
@@ -2569,7 +2569,7 @@ const Ha = {
|
|
|
2569
2569
|
onClick: (y) => d(k)
|
|
2570
2570
|
}, U(m(Me)(k)), 11, Dn))), 128)),
|
|
2571
2571
|
h("li", {
|
|
2572
|
-
class:
|
|
2572
|
+
class: V({
|
|
2573
2573
|
"cl:text-grey-2 cl:pointer-events-none": s.request.pageNumber >= a.value,
|
|
2574
2574
|
"cl:cursor-pointer": s.request.pageNumber < a.value
|
|
2575
2575
|
}),
|
|
@@ -2581,7 +2581,7 @@ const Ha = {
|
|
|
2581
2581
|
})
|
|
2582
2582
|
], 2),
|
|
2583
2583
|
h("li", {
|
|
2584
|
-
class:
|
|
2584
|
+
class: V({
|
|
2585
2585
|
"cl:text-grey-2 cl:pointer-events-none": s.request.pageNumber >= a.value,
|
|
2586
2586
|
"cl:cursor-pointer": s.request.pageNumber < a.value
|
|
2587
2587
|
}),
|
|
@@ -2742,7 +2742,7 @@ const Vn = { class: "cl:gap-1 cl:grid cl:grid-cols-2" }, Rn = ["onClick"], Nn =
|
|
|
2742
2742
|
var f, r;
|
|
2743
2743
|
return c(), v("button", {
|
|
2744
2744
|
key: d,
|
|
2745
|
-
class:
|
|
2745
|
+
class: V(["cl:border cl:cursor-pointer cl:py-1 cl:rounded-md cl:text-center", {
|
|
2746
2746
|
"cl:bg-primary-lighter/30 cl:border-primary-default cl:font-bold cl:hover:border-primary-darker": ((f = n.selectedQuickDate) == null ? void 0 : f.name) === i.name,
|
|
2747
2747
|
"cl:border-grey-2 cl:hover:border-grey-3 cl:hover:opacity-95 cl:opacity-60": ((r = n.selectedQuickDate) == null ? void 0 : r.name) !== i.name
|
|
2748
2748
|
}]),
|
|
@@ -2912,7 +2912,7 @@ const Vn = { class: "cl:gap-1 cl:grid cl:grid-cols-2" }, Rn = ["onClick"], Nn =
|
|
|
2912
2912
|
return (e, n) => {
|
|
2913
2913
|
const a = De("icon");
|
|
2914
2914
|
return c(), v("div", {
|
|
2915
|
-
class:
|
|
2915
|
+
class: V(["cl:border cl:border-grey-1 cl:flex cl:flex-nowrap cl:flex-row cl:overflow-hidden cl:rounded-md range-input", [
|
|
2916
2916
|
e.$attrs.class,
|
|
2917
2917
|
{
|
|
2918
2918
|
"cl:bg-grey-3": e.disabled
|
|
@@ -2940,7 +2940,7 @@ const Vn = { class: "cl:gap-1 cl:grid cl:grid-cols-2" }, Rn = ["onClick"], Nn =
|
|
|
2940
2940
|
id: e.$attrs.id ? e.$attrs.id + "Clear" : "clUiDateRangeInputClear",
|
|
2941
2941
|
title: m(t)("input.clearDateRange"),
|
|
2942
2942
|
size: "small",
|
|
2943
|
-
class:
|
|
2943
|
+
class: V(["cl:basis-0 cl:border-transparent cl:flex cl:hover:border-transparent cl:items-center cl:justify-center cl:rounded-l-none cl:rounded-r-md", {
|
|
2944
2944
|
"cl:text-grey-4 cl:hover:text-grey-3": !e.dateRangeSelected && !e.disabled,
|
|
2945
2945
|
"cl:text-danger-dark cl:hover:text-danger-default": e.dateRangeSelected && !e.disabled
|
|
2946
2946
|
}]),
|
|
@@ -2977,7 +2977,7 @@ const Vn = { class: "cl:gap-1 cl:grid cl:grid-cols-2" }, Rn = ["onClick"], Nn =
|
|
|
2977
2977
|
}),
|
|
2978
2978
|
emits: ["update:modelValue"],
|
|
2979
2979
|
setup(o) {
|
|
2980
|
-
const t = o, l =
|
|
2980
|
+
const t = o, l = ye(o, "modelValue"), e = T(() => t.timeZone ?? "UTC"), n = T({
|
|
2981
2981
|
get() {
|
|
2982
2982
|
let E = null;
|
|
2983
2983
|
return l.value !== null && (E = {
|
|
@@ -3007,7 +3007,7 @@ const Vn = { class: "cl:gap-1 cl:grid cl:grid-cols-2" }, Rn = ["onClick"], Nn =
|
|
|
3007
3007
|
const b = ul("(min-width: 768px)"), w = T(() => b.value ? 2 : 1), k = ul("(min-height: 800px)");
|
|
3008
3008
|
return (E, y) => (c(), j(Be, { "show-required-asterisk": E.required }, ke({
|
|
3009
3009
|
label: z(() => [
|
|
3010
|
-
|
|
3010
|
+
R(E.$slots, "default")
|
|
3011
3011
|
]),
|
|
3012
3012
|
default: z(() => [
|
|
3013
3013
|
M(m(Ge), {
|
|
@@ -3057,7 +3057,7 @@ const Vn = { class: "cl:gap-1 cl:grid cl:grid-cols-2" }, Rn = ["onClick"], Nn =
|
|
|
3057
3057
|
E.$slots["help-text"] ? {
|
|
3058
3058
|
name: "helpText",
|
|
3059
3059
|
fn: z(() => [
|
|
3060
|
-
|
|
3060
|
+
R(E.$slots, "help-text")
|
|
3061
3061
|
]),
|
|
3062
3062
|
key: "0"
|
|
3063
3063
|
} : void 0
|
|
@@ -3082,7 +3082,7 @@ const Vn = { class: "cl:gap-1 cl:grid cl:grid-cols-2" }, Rn = ["onClick"], Nn =
|
|
|
3082
3082
|
}),
|
|
3083
3083
|
emits: /* @__PURE__ */ pe(["focus", "blur"], ["update:modelValue"]),
|
|
3084
3084
|
setup(o, { expose: t }) {
|
|
3085
|
-
const l = o, e =
|
|
3085
|
+
const l = o, e = ye(o, "modelValue"), { resizability: n } = ot(l), a = I();
|
|
3086
3086
|
ee([
|
|
3087
3087
|
e,
|
|
3088
3088
|
a,
|
|
@@ -3143,14 +3143,14 @@ const Vn = { class: "cl:gap-1 cl:grid cl:grid-cols-2" }, Rn = ["onClick"], Nn =
|
|
|
3143
3143
|
d.$slots.default ? {
|
|
3144
3144
|
name: "label",
|
|
3145
3145
|
fn: z(() => [
|
|
3146
|
-
|
|
3146
|
+
R(d.$slots, "default")
|
|
3147
3147
|
]),
|
|
3148
3148
|
key: "0"
|
|
3149
3149
|
} : void 0,
|
|
3150
3150
|
d.$slots["help-text"] ? {
|
|
3151
3151
|
name: "helpText",
|
|
3152
3152
|
fn: z(() => [
|
|
3153
|
-
|
|
3153
|
+
R(d.$slots, "help-text")
|
|
3154
3154
|
]),
|
|
3155
3155
|
key: "1"
|
|
3156
3156
|
} : void 0
|
|
@@ -3176,7 +3176,7 @@ const Vn = { class: "cl:gap-1 cl:grid cl:grid-cols-2" }, Rn = ["onClick"], Nn =
|
|
|
3176
3176
|
at((p) => ({
|
|
3177
3177
|
fa14ae6c: d.value
|
|
3178
3178
|
}));
|
|
3179
|
-
const l = o, e =
|
|
3179
|
+
const l = o, e = ye(o, "modelValue"), { t: n } = fe(), a = I(), i = I(), d = T(() => `${100 * (e.value - l.min) / (l.max - l.min)}%`), f = I(!1), r = Kt(e, 50);
|
|
3180
3180
|
function s(p) {
|
|
3181
3181
|
var g;
|
|
3182
3182
|
e.value = p, (g = a.value) == null || g.focus();
|
|
@@ -3265,14 +3265,14 @@ const Vn = { class: "cl:gap-1 cl:grid cl:grid-cols-2" }, Rn = ["onClick"], Nn =
|
|
|
3265
3265
|
p.$slots.default ? {
|
|
3266
3266
|
name: "label",
|
|
3267
3267
|
fn: z(() => [
|
|
3268
|
-
|
|
3268
|
+
R(p.$slots, "default", {}, void 0, !0)
|
|
3269
3269
|
]),
|
|
3270
3270
|
key: "0"
|
|
3271
3271
|
} : void 0,
|
|
3272
3272
|
p.$slots["help-text"] ? {
|
|
3273
3273
|
name: "helpText",
|
|
3274
3274
|
fn: z(() => [
|
|
3275
|
-
|
|
3275
|
+
R(p.$slots, "help-text", {}, void 0, !0)
|
|
3276
3276
|
]),
|
|
3277
3277
|
key: "1"
|
|
3278
3278
|
} : void 0
|
|
@@ -3397,7 +3397,7 @@ const Vn = { class: "cl:gap-1 cl:grid cl:grid-cols-2" }, Rn = ["onClick"], Nn =
|
|
|
3397
3397
|
}),
|
|
3398
3398
|
emits: /* @__PURE__ */ pe(["focus", "blur"], ["update:modelValue"]),
|
|
3399
3399
|
setup(o, { expose: t }) {
|
|
3400
|
-
const l = o, e =
|
|
3400
|
+
const l = o, e = ye(o, "modelValue"), n = T(() => l.timeZone ?? "UTC"), a = T({
|
|
3401
3401
|
get() {
|
|
3402
3402
|
let b = null;
|
|
3403
3403
|
return l.type === "time" ? b = e.value === null ? "00:00" : e.value : e.value !== null && (b = X.fromISO(e.value, {
|
|
@@ -3420,7 +3420,7 @@ const Vn = { class: "cl:gap-1 cl:grid cl:grid-cols-2" }, Rn = ["onClick"], Nn =
|
|
|
3420
3420
|
}
|
|
3421
3421
|
}), (b, w) => (c(), j(Be, { "show-required-asterisk": b.required }, ke({
|
|
3422
3422
|
label: z(() => [
|
|
3423
|
-
|
|
3423
|
+
R(b.$slots, "default")
|
|
3424
3424
|
]),
|
|
3425
3425
|
default: z(() => [
|
|
3426
3426
|
b.type === "time" ? (c(), j(m(Ge), {
|
|
@@ -3498,7 +3498,7 @@ const Vn = { class: "cl:gap-1 cl:grid cl:grid-cols-2" }, Rn = ["onClick"], Nn =
|
|
|
3498
3498
|
b.$slots["help-text"] ? {
|
|
3499
3499
|
name: "helpText",
|
|
3500
3500
|
fn: z(() => [
|
|
3501
|
-
|
|
3501
|
+
R(b.$slots, "help-text")
|
|
3502
3502
|
]),
|
|
3503
3503
|
key: "0"
|
|
3504
3504
|
} : void 0
|
|
@@ -3516,7 +3516,7 @@ const Vn = { class: "cl:gap-1 cl:grid cl:grid-cols-2" }, Rn = ["onClick"], Nn =
|
|
|
3516
3516
|
return (n, a) => (c(), v("div", J(n.$attrs, {
|
|
3517
3517
|
onClick: x(e, ["stop", "prevent"])
|
|
3518
3518
|
}), [
|
|
3519
|
-
|
|
3519
|
+
R(n.$slots, "default", he(we({ toggleModalInput: e })))
|
|
3520
3520
|
], 16));
|
|
3521
3521
|
}
|
|
3522
3522
|
}), ts = ["placeholder", "value", "disabled", "onKeydown"], os = ["disabled"], as = ["id", "tabindex", "inert", "onKeydown"], ql = /* @__PURE__ */ G({
|
|
@@ -3537,7 +3537,7 @@ const Vn = { class: "cl:gap-1 cl:grid cl:grid-cols-2" }, Rn = ["onClick"], Nn =
|
|
|
3537
3537
|
}),
|
|
3538
3538
|
emits: ["update:modelValue"],
|
|
3539
3539
|
setup(o, { expose: t }) {
|
|
3540
|
-
const l = o, e =
|
|
3540
|
+
const l = o, e = ye(o, "modelValue"), n = I(-1), a = I(), i = I(), d = I(!1), f = I(), { focused: r } = Il(f), s = T(() => Array.isArray(e.value)), p = Qe().id ?? "select";
|
|
3541
3541
|
function g(C) {
|
|
3542
3542
|
typeof C < "u" ? d.value = C : l.disabled === !1 && (d.value = !d.value), d.value === !1 && (n.value = -1);
|
|
3543
3543
|
}
|
|
@@ -3612,7 +3612,7 @@ const Vn = { class: "cl:gap-1 cl:grid cl:grid-cols-2" }, Rn = ["onClick"], Nn =
|
|
|
3612
3612
|
var C;
|
|
3613
3613
|
!H && l.openDropDownOnFocus && g(!0), H = !1, (C = f.value) == null || C.focus();
|
|
3614
3614
|
}
|
|
3615
|
-
function
|
|
3615
|
+
function be() {
|
|
3616
3616
|
H = !0;
|
|
3617
3617
|
}
|
|
3618
3618
|
return t({
|
|
@@ -3629,18 +3629,18 @@ const Vn = { class: "cl:gap-1 cl:grid cl:grid-cols-2" }, Rn = ["onClick"], Nn =
|
|
|
3629
3629
|
errors: C.errors
|
|
3630
3630
|
}, ke({
|
|
3631
3631
|
label: z(() => [
|
|
3632
|
-
|
|
3632
|
+
R(C.$slots, "label")
|
|
3633
3633
|
]),
|
|
3634
3634
|
default: z(() => [
|
|
3635
3635
|
h("div", {
|
|
3636
|
-
class:
|
|
3636
|
+
class: V(["cl:w-full", {
|
|
3637
3637
|
"cl:relative": C.isGridFilter === !1
|
|
3638
3638
|
}])
|
|
3639
3639
|
}, [
|
|
3640
|
-
|
|
3640
|
+
R(C.$slots, "input", he(we({ handleEnterPress: O, handleEscapePress: D, selectModalVisible: d.value, toggleSelectModalState: g, moveHighlightBackwards: E, moveHighlightForwards: y, moveHighlightToStart: w, moveHighlightToEnd: k })), () => [
|
|
3641
3641
|
s.value === !1 ? (c(), j(Ct, {
|
|
3642
3642
|
key: 0,
|
|
3643
|
-
class:
|
|
3643
|
+
class: V([[Y.value, {
|
|
3644
3644
|
"cl:border cl:border-grey-2": C.isGridFilter === !1,
|
|
3645
3645
|
"cl:border-link-light": m(r) && !C.openDropDownOnFocus && C.isGridFilter === !1
|
|
3646
3646
|
}], "cl:flex cl:gap-2 cl:items-center cl:justify-between cl:min-h-8 cl:rounded-lg cl:select-none cl:transition-colors cl:w-full"]),
|
|
@@ -3655,7 +3655,7 @@ const Vn = { class: "cl:gap-1 cl:grid cl:grid-cols-2" }, Rn = ["onClick"], Nn =
|
|
|
3655
3655
|
placeholder: e.value === null || e.value === void 0 ? C.placeholder ?? void 0 : void 0,
|
|
3656
3656
|
value: A(e.value) ? e.value.name : e.value,
|
|
3657
3657
|
disabled: C.disabled,
|
|
3658
|
-
onMousedown:
|
|
3658
|
+
onMousedown: be,
|
|
3659
3659
|
onFocus: oe,
|
|
3660
3660
|
onSelect: x(P, ["stop", "prevent"]),
|
|
3661
3661
|
onKeydown: [
|
|
@@ -3713,7 +3713,7 @@ const Vn = { class: "cl:gap-1 cl:grid cl:grid-cols-2" }, Rn = ["onClick"], Nn =
|
|
|
3713
3713
|
]
|
|
3714
3714
|
}), [
|
|
3715
3715
|
(c(!0), v(K, null, _(C.list, (te, Se) => (c(), v("div", { key: Se }, [
|
|
3716
|
-
|
|
3716
|
+
R(C.$slots, "default", J({ ref_for: !0 }, { option: te, index: Se, select: b, highlightIndex: n.value, isSelected: $ }), () => [
|
|
3717
3717
|
(c(), j(se, {
|
|
3718
3718
|
id: m(p) + "-option-" + (A(te) ? te.id : Se),
|
|
3719
3719
|
key: Se,
|
|
@@ -3737,7 +3737,7 @@ const Vn = { class: "cl:gap-1 cl:grid cl:grid-cols-2" }, Rn = ["onClick"], Nn =
|
|
|
3737
3737
|
C.$slots["help-text"] ? {
|
|
3738
3738
|
name: "helpText",
|
|
3739
3739
|
fn: z(() => [
|
|
3740
|
-
|
|
3740
|
+
R(C.$slots, "help-text")
|
|
3741
3741
|
]),
|
|
3742
3742
|
key: "0"
|
|
3743
3743
|
} : void 0
|
|
@@ -3756,7 +3756,7 @@ const Vn = { class: "cl:gap-1 cl:grid cl:grid-cols-2" }, Rn = ["onClick"], Nn =
|
|
|
3756
3756
|
setup(o, { emit: t }) {
|
|
3757
3757
|
const l = t;
|
|
3758
3758
|
return (e, n) => (c(), v("div", {
|
|
3759
|
-
class:
|
|
3759
|
+
class: V(["cl:px-2 cl:py-0.5", e.disabled ? "cl:bg-grey-1 cl:border-grey-2 cl:placeholder-grey-3" : ["cl:cursor-pointer", {
|
|
3760
3760
|
"cl:bg-primary-lighter cl:hover:bg-primary-default": e.isSelected && e.isHighlighted === !1,
|
|
3761
3761
|
"cl:bg-primary-default": e.isSelected && e.isHighlighted,
|
|
3762
3762
|
"cl:hover:bg-link-lighter": e.isSelected === !1 && e.isHighlighted === !1,
|
|
@@ -3764,7 +3764,7 @@ const Vn = { class: "cl:gap-1 cl:grid cl:grid-cols-2" }, Rn = ["onClick"], Nn =
|
|
|
3764
3764
|
}]]),
|
|
3765
3765
|
onClick: n[0] || (n[0] = (a) => e.disabled ? null : l("select"))
|
|
3766
3766
|
}, [
|
|
3767
|
-
|
|
3767
|
+
R(e.$slots, "default")
|
|
3768
3768
|
], 2));
|
|
3769
3769
|
}
|
|
3770
3770
|
}), ns = [
|
|
@@ -4003,14 +4003,14 @@ const fs = {
|
|
|
4003
4003
|
i.value ? (c(), j(m(ae), {
|
|
4004
4004
|
key: 0,
|
|
4005
4005
|
icon: i.value.icon,
|
|
4006
|
-
class:
|
|
4006
|
+
class: V(["cl:text-lg", {
|
|
4007
4007
|
"cl:text-grey-4": l.filter === void 0 || l.filter.filterValue === "",
|
|
4008
4008
|
"cl:text-primary-default": l.filter && l.filter.filterValue !== ""
|
|
4009
4009
|
}])
|
|
4010
4010
|
}, null, 8, ["icon", "class"])) : F("", !0)
|
|
4011
4011
|
]),
|
|
4012
4012
|
h("div", {
|
|
4013
|
-
class:
|
|
4013
|
+
class: V(["cl:absolute cl:bg-white cl:border cl:border-grey-0 cl:flex-wrap cl:font-normal cl:h-0 cl:hidden cl:rounded-sm cl:shadow-lg cl:text-left cl:text-xs cl:top-8 cl:z-10", {
|
|
4014
4014
|
"cl:group-hover:flex cl:group-hover:h-auto cl:group-hover:w-52": r.loading === !1,
|
|
4015
4015
|
"cl:right-0": r.dropdownPosition === "left",
|
|
4016
4016
|
"cl:left-0": r.dropdownPosition === "right"
|
|
@@ -4021,7 +4021,7 @@ const fs = {
|
|
|
4021
4021
|
var b;
|
|
4022
4022
|
return c(), v("span", {
|
|
4023
4023
|
key: g,
|
|
4024
|
-
class:
|
|
4024
|
+
class: V(["cl:cursor-pointer cl:hover:bg-grey-0 cl:px-4 cl:py-1 cl:transition-colors cl:w-full", {
|
|
4025
4025
|
"cl:bg-primary-default cl:opacity-80": p.method === ((b = i.value) == null ? void 0 : b.method)
|
|
4026
4026
|
}]),
|
|
4027
4027
|
onClick: x((w) => d(p.method), ["prevent"])
|
|
@@ -4227,7 +4227,7 @@ const fs = {
|
|
|
4227
4227
|
const H = T(() => {
|
|
4228
4228
|
var u;
|
|
4229
4229
|
return ((u = D.value) == null ? void 0 : u.filterValue) ?? "";
|
|
4230
|
-
}), oe = T(() => H.value === "" ? null : H.value),
|
|
4230
|
+
}), oe = T(() => H.value === "" ? null : H.value), be = T(() => H.value === "" ? null : H.value), C = T(() => We(l.column));
|
|
4231
4231
|
function L(u, S) {
|
|
4232
4232
|
var Te;
|
|
4233
4233
|
let q, Z = S;
|
|
@@ -4299,7 +4299,7 @@ const fs = {
|
|
|
4299
4299
|
((u = l.filter) == null ? void 0 : u.length) === 0 && (y.value = Je.id);
|
|
4300
4300
|
}), (u, S) => C.value ? (c(), v("div", {
|
|
4301
4301
|
key: 0,
|
|
4302
|
-
class:
|
|
4302
|
+
class: V(["cl:border cl:border-grey-2 cl:flex cl:relative cl:rounded-md", [
|
|
4303
4303
|
u.options.hideGridMobileView || s.value || u.column.type === "boolean" || u.column.type === "slot" && u.column.slotType === "boolean" ? "cl:overflow-visible" : "cl:overflow-hidden cl:lg:overflow-visible!"
|
|
4304
4304
|
]]),
|
|
4305
4305
|
inert: u.loading
|
|
@@ -4340,7 +4340,7 @@ const fs = {
|
|
|
4340
4340
|
])) : r.value ? (c(), v("div", $s, [
|
|
4341
4341
|
M(wt, {
|
|
4342
4342
|
id: `${m(W)}-${u.column.name}`,
|
|
4343
|
-
"model-value":
|
|
4343
|
+
"model-value": be.value,
|
|
4344
4344
|
class: "cl:[&_.clear-icon]:-pb-4 cl:[&_.icon]:text-sm cl:[&_.range-input]:h-[2rem] cl:border-none cl:h-[2rem] cl:mb-0 cl:w-full cl:z-50",
|
|
4345
4345
|
"time-zone": u.headerDisplayTimezone,
|
|
4346
4346
|
"quick-date-scope": u.quickDateScope,
|
|
@@ -4392,7 +4392,7 @@ const fs = {
|
|
|
4392
4392
|
M(Dl, {
|
|
4393
4393
|
"is-highlighted": me === Ce,
|
|
4394
4394
|
"is-selected": ge(Z),
|
|
4395
|
-
class:
|
|
4395
|
+
class: V({
|
|
4396
4396
|
"cl:py-0!": Z.name === "",
|
|
4397
4397
|
"cl:text-xs": Z.name !== ""
|
|
4398
4398
|
}),
|
|
@@ -4439,7 +4439,7 @@ const fs = {
|
|
|
4439
4439
|
key: 0,
|
|
4440
4440
|
class: "cl:h-[34px]"
|
|
4441
4441
|
})) : e.bulkEditMode && e.column.editable ? (c(), v("div", qs, [
|
|
4442
|
-
|
|
4442
|
+
R(e.$slots, `${e.column.name}BulkEdit`, he(we({
|
|
4443
4443
|
column: e.column
|
|
4444
4444
|
})), () => [
|
|
4445
4445
|
l.value ? (c(), j(Xl, {
|
|
@@ -4521,18 +4521,18 @@ const fs = {
|
|
|
4521
4521
|
function A() {
|
|
4522
4522
|
y.value++;
|
|
4523
4523
|
const D = y.value;
|
|
4524
|
-
p.value = [], l.columns.forEach((oe,
|
|
4525
|
-
p.value[
|
|
4524
|
+
p.value = [], l.columns.forEach((oe, be) => {
|
|
4525
|
+
p.value[be] = document.querySelector(`#resize-handle-${be}`);
|
|
4526
4526
|
});
|
|
4527
4527
|
const { x: $ } = Qt();
|
|
4528
4528
|
let P = 0, Y = null, H = 0;
|
|
4529
|
-
p.value.forEach((oe,
|
|
4529
|
+
p.value.forEach((oe, be) => {
|
|
4530
4530
|
oe && Yt(I(oe), {
|
|
4531
4531
|
disabled: T(() => y.value !== D),
|
|
4532
4532
|
onStart() {
|
|
4533
4533
|
P = $.value, g.value = !0, Y = oe;
|
|
4534
4534
|
const C = Y.getBoundingClientRect(), L = Y.closest("table"), le = L == null ? void 0 : L.getBoundingClientRect(), se = Y.closest("th"), te = se == null ? void 0 : se.getBoundingClientRect();
|
|
4535
|
-
H = (te == null ? void 0 : te.width) ?? 0, b.value = C.right - 5, w.value = (te == null ? void 0 : te.left) ?? 0, le && (k.value = le.top, E.value = le.height);
|
|
4535
|
+
H = (te == null ? void 0 : te.width) ?? 0, b.value = be === a.value.length - 1 ? C.right : C.right - 5, w.value = (te == null ? void 0 : te.left) ?? 0, le && (k.value = le.top, E.value = le.height);
|
|
4536
4536
|
},
|
|
4537
4537
|
onMove(C) {
|
|
4538
4538
|
document.body.classList.add("dragging-cursor"), Y && (b.value = Math.max(C.x, w.value));
|
|
@@ -4540,7 +4540,7 @@ const fs = {
|
|
|
4540
4540
|
onEnd(C) {
|
|
4541
4541
|
document.body.classList.remove("dragging-cursor");
|
|
4542
4542
|
const L = -H, le = Math.max(C.x - P, L);
|
|
4543
|
-
Math.abs(le) > 5 && e("change-column-width",
|
|
4543
|
+
Math.abs(le) > 5 && e("change-column-width", be, Math.round(H + le)), g.value = !1, Y = null;
|
|
4544
4544
|
}
|
|
4545
4545
|
});
|
|
4546
4546
|
});
|
|
@@ -4558,18 +4558,18 @@ const fs = {
|
|
|
4558
4558
|
}) : p.value = [];
|
|
4559
4559
|
}, { immediate: !0 }), (D, $) => (c(), v(K, null, [
|
|
4560
4560
|
h("thead", {
|
|
4561
|
-
class:
|
|
4561
|
+
class: V(["cl:-top-1 cl:bg-white cl:z-20", [
|
|
4562
4562
|
D.options.hideGridMobileView ? "cl:relative" : "cl:shadow cl:sticky cl:lg:bg-transparent cl:lg:relative cl:lg:shadow-none"
|
|
4563
4563
|
]])
|
|
4564
4564
|
}, [
|
|
4565
4565
|
h("tr", {
|
|
4566
|
-
class:
|
|
4566
|
+
class: V(["cl:table-row", {
|
|
4567
4567
|
"cl:hidden! cl:lg:table-row!": D.options.hideGridMobileView === !1
|
|
4568
4568
|
}])
|
|
4569
4569
|
}, [
|
|
4570
4570
|
(c(!0), v(K, null, _(a.value, (P, Y) => (c(), v("th", {
|
|
4571
4571
|
key: Y,
|
|
4572
|
-
class:
|
|
4572
|
+
class: V(["cl:text-grey-3 cl:text-sm", {
|
|
4573
4573
|
"cl:cursor-pointer": m(sl)(D.options, P) && D.loading === !1
|
|
4574
4574
|
}]),
|
|
4575
4575
|
onClick: (H) => m(sl)(D.options, P) && D.loading === !1 ? r(P.field) : () => {
|
|
@@ -4593,13 +4593,13 @@ const fs = {
|
|
|
4593
4593
|
], 10, Es))), 128))
|
|
4594
4594
|
], 2),
|
|
4595
4595
|
h("tr", {
|
|
4596
|
-
class:
|
|
4596
|
+
class: V(["cl:border cl:border-grey-2 cl:flex cl:flex-wrap cl:lg:border-none cl:lg:p-0 cl:lg:table-row cl:p-2", {
|
|
4597
4597
|
"cl:hidden cl:lg:table-row": !D.filterPanelOpen && D.options.hideGridMobileView === !1,
|
|
4598
4598
|
"cl:border-none cl:p-0 cl:table-row": D.options.hideGridMobileView
|
|
4599
4599
|
}])
|
|
4600
4600
|
}, [
|
|
4601
4601
|
h("th", {
|
|
4602
|
-
class:
|
|
4602
|
+
class: V(["cl:flex cl:justify-end cl:lg:hidden cl:w-full", {
|
|
4603
4603
|
"cl:hidden": D.options.hideGridMobileView
|
|
4604
4604
|
}])
|
|
4605
4605
|
}, [
|
|
@@ -4612,7 +4612,7 @@ const fs = {
|
|
|
4612
4612
|
], 2),
|
|
4613
4613
|
(c(!0), v(K, null, _(d.value, ({ column: P, filterIndex: Y }, H) => (c(), v("th", {
|
|
4614
4614
|
key: H,
|
|
4615
|
-
class:
|
|
4615
|
+
class: V(["cl:lg:table-cell cl:lg:w-auto cl:py-1 cl:relative cl:text-xs", [
|
|
4616
4616
|
D.options.hideGridMobileView ? "cl:table-cell cl:w-auto" : "cl:grid cl:grid-cols-4 cl:w-full",
|
|
4617
4617
|
{
|
|
4618
4618
|
"cl:hidden": !m(We)(P) && D.options.hideGridMobileView == !1
|
|
@@ -4620,13 +4620,13 @@ const fs = {
|
|
|
4620
4620
|
]])
|
|
4621
4621
|
}, [
|
|
4622
4622
|
h("div", {
|
|
4623
|
-
class:
|
|
4623
|
+
class: V(["cl:col-span-2 cl:lg:hidden", {
|
|
4624
4624
|
"cl:hidden": D.options.hideGridMobileView
|
|
4625
4625
|
}])
|
|
4626
4626
|
}, U(m(n)(P.caption)), 3),
|
|
4627
4627
|
m(sl)(D.options, P) ? (c(), v("div", {
|
|
4628
4628
|
key: 0,
|
|
4629
|
-
class:
|
|
4629
|
+
class: V(["cl:col-span-2 cl:gap-1 cl:lg:hidden cl:span", {
|
|
4630
4630
|
"cl:hidden": D.options.hideGridMobileView
|
|
4631
4631
|
}]),
|
|
4632
4632
|
onClick: (oe) => D.loading === !1 ? r(P.field) : void 0
|
|
@@ -4661,10 +4661,10 @@ const fs = {
|
|
|
4661
4661
|
"onUpdate:filter": s,
|
|
4662
4662
|
onPerformDataRequest: $[1] || ($[1] = (oe) => e("perform-data-request"))
|
|
4663
4663
|
}, ke({ _: 2 }, [
|
|
4664
|
-
_(D.$slots, (oe,
|
|
4665
|
-
name:
|
|
4664
|
+
_(D.$slots, (oe, be) => ({
|
|
4665
|
+
name: be,
|
|
4666
4666
|
fn: z((C) => [
|
|
4667
|
-
|
|
4667
|
+
R(D.$slots, be, J({ ref_for: !0 }, C, { disabled: D.loading }))
|
|
4668
4668
|
])
|
|
4669
4669
|
}))
|
|
4670
4670
|
]), 1032, ["loading", "initial-load", "bulk-edit-mode", "filter", "column", "time-zone", "quick-date-scope", "header-display-timezone", "options", "filter-dropdown-position"]),
|
|
@@ -4673,8 +4673,10 @@ const fs = {
|
|
|
4673
4673
|
id: `resize-handle-${H}`,
|
|
4674
4674
|
ref_for: !0,
|
|
4675
4675
|
ref: (oe) => p.value[H] = oe,
|
|
4676
|
-
class: "cl:-right-1 cl:absolute cl:cursor-ew-resize cl:h-[34px] cl:top-[calc(50%-17px)] cl:w-2 cl:z-10"
|
|
4677
|
-
|
|
4676
|
+
class: V(["cl:-right-1 cl:absolute cl:cursor-ew-resize cl:h-[34px] cl:top-[calc(50%-17px)] cl:w-2 cl:z-10", {
|
|
4677
|
+
"cl:right-0 cl:w-1": H === a.value.length - 1
|
|
4678
|
+
}])
|
|
4679
|
+
}, null, 10, Is)) : F("", !0)
|
|
4678
4680
|
], 2))), 128))
|
|
4679
4681
|
], 2)
|
|
4680
4682
|
], 2),
|
|
@@ -4701,7 +4703,7 @@ const fs = {
|
|
|
4701
4703
|
}),
|
|
4702
4704
|
emits: /* @__PURE__ */ pe(["update:request"], ["update:searchValue"]),
|
|
4703
4705
|
setup(o, { expose: t, emit: l }) {
|
|
4704
|
-
const e = o, n =
|
|
4706
|
+
const e = o, n = ye(o, "searchValue"), a = l, i = T({
|
|
4705
4707
|
get: () => e.request,
|
|
4706
4708
|
set: (p) => a("update:request", p)
|
|
4707
4709
|
});
|
|
@@ -4731,7 +4733,7 @@ const fs = {
|
|
|
4731
4733
|
}
|
|
4732
4734
|
}), (p, g) => {
|
|
4733
4735
|
const b = De("icon");
|
|
4734
|
-
return
|
|
4736
|
+
return R(p.$slots, "search", he(we({ searchValue: n.value, performSearch: d })), () => [
|
|
4735
4737
|
h("div", Rs, [
|
|
4736
4738
|
h("div", Ns, [
|
|
4737
4739
|
M(Fe, {
|
|
@@ -4891,7 +4893,7 @@ const fs = {
|
|
|
4891
4893
|
emits: /* @__PURE__ */ pe(["update:columns", "update:request", "data-request", "row-edit", "row-edit-cancelled", "edit-start", "edit-end", "row-select", "view-manager-visible", "clear-filters-clicked"], ["update:selectedRowIndex"]),
|
|
4892
4894
|
setup(o, { expose: t, emit: l }) {
|
|
4893
4895
|
var Se;
|
|
4894
|
-
const e = o, n =
|
|
4896
|
+
const e = o, n = ye(o, "selectedRowIndex"), a = l, { lg: i } = nt(st), d = Object.keys(zt()).some((N) => N.endsWith("BulkEdit")), f = Qe();
|
|
4895
4897
|
$l("cl-ui-grid-id", f.id);
|
|
4896
4898
|
const r = T(() => e.headerDisplayTimezone ?? e.timeZone), s = T(() => e.dateFormatLocale);
|
|
4897
4899
|
$l(gl, s);
|
|
@@ -4974,7 +4976,7 @@ const fs = {
|
|
|
4974
4976
|
ee(H, () => {
|
|
4975
4977
|
H.value ? a("edit-start") : Ue(() => a("edit-end"));
|
|
4976
4978
|
});
|
|
4977
|
-
const
|
|
4979
|
+
const be = T({
|
|
4978
4980
|
get() {
|
|
4979
4981
|
const N = $e(B.value);
|
|
4980
4982
|
return N.filters = N.filters.filter((Q) => Q.filterMethod !== "andcontains" && Q.filterOperation !== ue.AND_CONTAINS), N;
|
|
@@ -5028,7 +5030,7 @@ const fs = {
|
|
|
5028
5030
|
columns: L.value
|
|
5029
5031
|
}, {
|
|
5030
5032
|
search: z((W) => [
|
|
5031
|
-
|
|
5033
|
+
R(N.$slots, "search", he(we(W)))
|
|
5032
5034
|
]),
|
|
5033
5035
|
_: 3
|
|
5034
5036
|
}, 8, ["search-value", "request", "columns"])) : F("", !0),
|
|
@@ -5055,7 +5057,7 @@ const fs = {
|
|
|
5055
5057
|
onClearFilters: O
|
|
5056
5058
|
}, {
|
|
5057
5059
|
"additional-grid-actions": z((W) => [
|
|
5058
|
-
|
|
5060
|
+
R(N.$slots, "additional-grid-actions", he(we(W)))
|
|
5059
5061
|
]),
|
|
5060
5062
|
"view-manager": z(() => [
|
|
5061
5063
|
M(Qs, {
|
|
@@ -5069,12 +5071,12 @@ const fs = {
|
|
|
5069
5071
|
}, 8, ["edit-mode", "filter-panel-open", "can-bulk-edit", "columns", "options", "request", "loading", "initial-load", "disable-edit-mode"]),
|
|
5070
5072
|
h("div", Xs, [
|
|
5071
5073
|
h("table", {
|
|
5072
|
-
class:
|
|
5074
|
+
class: V(["cl:delay-75 cl:min-h-[276px] cl:overflow-x-auto cl:overscroll-x-none cl:text-left cl:transition-opacity cl:w-full", {
|
|
5073
5075
|
"cl:opacity-40 cl:pointer-events-none": N.loading && le.value === !1
|
|
5074
5076
|
}])
|
|
5075
5077
|
}, [
|
|
5076
5078
|
h("colgroup", {
|
|
5077
|
-
class:
|
|
5079
|
+
class: V([
|
|
5078
5080
|
N.options.hideGridMobileView ? "cl:table-column-group" : "cl:hidden cl:lg:table-column-group"
|
|
5079
5081
|
])
|
|
5080
5082
|
}, [
|
|
@@ -5086,8 +5088,8 @@ const fs = {
|
|
|
5086
5088
|
A() ? (c(), v("col", xs)) : F("", !0)
|
|
5087
5089
|
], 2),
|
|
5088
5090
|
M(Vs, {
|
|
5089
|
-
request:
|
|
5090
|
-
"onUpdate:request": Q[6] || (Q[6] = (W) =>
|
|
5091
|
+
request: be.value,
|
|
5092
|
+
"onUpdate:request": Q[6] || (Q[6] = (W) => be.value = W),
|
|
5091
5093
|
"filter-panel-open": oe.value,
|
|
5092
5094
|
"onUpdate:filterPanelOpen": Q[7] || (Q[7] = (W) => oe.value = W),
|
|
5093
5095
|
columns: g.value,
|
|
@@ -5103,7 +5105,7 @@ const fs = {
|
|
|
5103
5105
|
_(N.$slots, (W, u) => ({
|
|
5104
5106
|
name: u,
|
|
5105
5107
|
fn: z((S) => [
|
|
5106
|
-
|
|
5108
|
+
R(N.$slots, u, J(S, { disabled: N.loading }))
|
|
5107
5109
|
])
|
|
5108
5110
|
}))
|
|
5109
5111
|
]), 1032, ["request", "filter-panel-open", "columns", "options", "loading", "initial-load", "bulk-edit-mode", "time-zone", "header-display-timezone"]),
|
|
@@ -5127,7 +5129,7 @@ const fs = {
|
|
|
5127
5129
|
_(N.$slots, (W, u) => ({
|
|
5128
5130
|
name: u,
|
|
5129
5131
|
fn: z((S) => [
|
|
5130
|
-
|
|
5132
|
+
R(N.$slots, u, J(S, { disabled: N.loading }))
|
|
5131
5133
|
])
|
|
5132
5134
|
}))
|
|
5133
5135
|
]), 1032, ["selected-row-index", "columns", "request", "data", "time-zone", "loading", "initial-load", "search-value", "options", "edit-mode"])
|
|
@@ -5164,7 +5166,7 @@ const fs = {
|
|
|
5164
5166
|
}),
|
|
5165
5167
|
emits: ["update:columns", "update:request"],
|
|
5166
5168
|
setup(o) {
|
|
5167
|
-
const t = o, l =
|
|
5169
|
+
const t = o, l = ye(o, "columns"), e = ye(o, "request"), { id: n, ...a } = Qe(), i = n ?? "cl-ui-grid-lite", d = T(() => t.dateFormatLocale);
|
|
5168
5170
|
$l(gl, d);
|
|
5169
5171
|
const f = T(() => l.value.filter((b) => b.visible ?? !0));
|
|
5170
5172
|
function r() {
|
|
@@ -5216,7 +5218,7 @@ const fs = {
|
|
|
5216
5218
|
_(b.$slots, (k, E) => ({
|
|
5217
5219
|
name: E,
|
|
5218
5220
|
fn: z((y) => [
|
|
5219
|
-
|
|
5221
|
+
R(b.$slots, E, he(we(y)))
|
|
5220
5222
|
])
|
|
5221
5223
|
}))
|
|
5222
5224
|
]), 1032, ["grid-id", "columns", "data", "options", "page-size", "time-zone", "initial-load"])
|
|
@@ -5257,7 +5259,7 @@ const or = { class: "cl:col-[1_/_-1] cl:grid cl:grid-cols-subgrid" }, ar = ["id"
|
|
|
5257
5259
|
}),
|
|
5258
5260
|
emits: ["update:request"],
|
|
5259
5261
|
setup(o) {
|
|
5260
|
-
const t =
|
|
5262
|
+
const t = ye(o, "request"), { t: l } = fe();
|
|
5261
5263
|
function e(a, i) {
|
|
5262
5264
|
var d, f;
|
|
5263
5265
|
return ((d = t.value.sort) == null ? void 0 : d.sortOnColumn) === a.field && ((f = t.value.sort) == null ? void 0 : f.sortByAscending) === i;
|
|
@@ -5290,12 +5292,12 @@ const or = { class: "cl:col-[1_/_-1] cl:grid cl:grid-cols-subgrid" }, ar = ["id"
|
|
|
5290
5292
|
}
|
|
5291
5293
|
}), [
|
|
5292
5294
|
h("span", {
|
|
5293
|
-
class:
|
|
5295
|
+
class: V(["cl:tracking-wide cl:whitespace-nowrap", {
|
|
5294
5296
|
"cl:opacity-0": a.initialLoad
|
|
5295
5297
|
}])
|
|
5296
5298
|
}, U(f.caption ? m(l)(f.caption) : f.name), 3),
|
|
5297
5299
|
ie(h("div", {
|
|
5298
|
-
class:
|
|
5300
|
+
class: V(["cl:hover:bg-link-lighter cl:px-0.5 cl:py-1 cl:rounded", {
|
|
5299
5301
|
"cl:bg-link-lighter": e(f, !1) || e(f, !0),
|
|
5300
5302
|
"cl:opacity-0": a.initialLoad
|
|
5301
5303
|
}])
|
|
@@ -5333,7 +5335,7 @@ const or = { class: "cl:col-[1_/_-1] cl:grid cl:grid-cols-subgrid" }, ar = ["id"
|
|
|
5333
5335
|
}, [
|
|
5334
5336
|
(c(!0), v(K, null, _(t.columnCount, (n) => (c(), v("div", {
|
|
5335
5337
|
key: n,
|
|
5336
|
-
class:
|
|
5338
|
+
class: V(["cl:border-off-white cl:p-2 cl:w-full", {
|
|
5337
5339
|
"cl:border-r": n !== n - 1
|
|
5338
5340
|
}])
|
|
5339
5341
|
}, " ", 2))), 128))
|
|
@@ -5365,7 +5367,7 @@ const or = { class: "cl:col-[1_/_-1] cl:grid cl:grid-cols-subgrid" }, ar = ["id"
|
|
|
5365
5367
|
_(t.$slots, (a, i) => ({
|
|
5366
5368
|
name: i,
|
|
5367
5369
|
fn: z((d) => [
|
|
5368
|
-
|
|
5370
|
+
R(t.$slots, i, J({ ref_for: !0 }, d))
|
|
5369
5371
|
])
|
|
5370
5372
|
}))
|
|
5371
5373
|
]), 1040, ["id", "data", "time-zone", "column", "is-small-grid", "class"]))), 128))
|
|
@@ -5393,11 +5395,11 @@ const or = { class: "cl:col-[1_/_-1] cl:grid cl:grid-cols-subgrid" }, ar = ["id"
|
|
|
5393
5395
|
"column-count": a.columns.length
|
|
5394
5396
|
}, null, 8, ["page-size", "column-count"])) : (((d = a.data) == null ? void 0 : d.results.length) ?? 0) < 1 && a.initialLoad === !1 ? (c(), v("div", {
|
|
5395
5397
|
key: 1,
|
|
5396
|
-
class:
|
|
5398
|
+
class: V(["cl:col-[1_/_-1] cl:text-center cl:w-full", [
|
|
5397
5399
|
e.value ? "cl:p-1" : "cl:p-2"
|
|
5398
5400
|
]])
|
|
5399
5401
|
}, [
|
|
5400
|
-
|
|
5402
|
+
R(a.$slots, "noData", {}, () => [
|
|
5401
5403
|
de(U(m(l)("grid.noData")), 1)
|
|
5402
5404
|
])
|
|
5403
5405
|
], 2)) : (c(!0), v(K, { key: 2 }, _(a.data.results, (f, r) => (c(), j(Dt, {
|
|
@@ -5406,7 +5408,7 @@ const or = { class: "cl:col-[1_/_-1] cl:grid cl:grid-cols-subgrid" }, ar = ["id"
|
|
|
5406
5408
|
"grid-id": `${a.gridId}-r${r}`,
|
|
5407
5409
|
row: f,
|
|
5408
5410
|
columns: a.columns,
|
|
5409
|
-
class:
|
|
5411
|
+
class: V(
|
|
5410
5412
|
{
|
|
5411
5413
|
"cl:border-b cl:border-off-white": r !== a.data.results.length - 1,
|
|
5412
5414
|
"cl:bg-off-white/75": r % 2 != 0 && n.value
|
|
@@ -5418,7 +5420,7 @@ const or = { class: "cl:col-[1_/_-1] cl:grid cl:grid-cols-subgrid" }, ar = ["id"
|
|
|
5418
5420
|
_(a.$slots, (s, p) => ({
|
|
5419
5421
|
name: p,
|
|
5420
5422
|
fn: z((g) => [
|
|
5421
|
-
|
|
5423
|
+
R(a.$slots, p, J({ ref_for: !0 }, g))
|
|
5422
5424
|
])
|
|
5423
5425
|
}))
|
|
5424
5426
|
]), 1032, ["id", "grid-id", "row", "columns", "class", "time-zone", "is-small-grid"]))), 128))
|
|
@@ -5497,7 +5499,7 @@ const or = { class: "cl:col-[1_/_-1] cl:grid cl:grid-cols-subgrid" }, ar = ["id"
|
|
|
5497
5499
|
s.isSmallGrid ? "cl:px-1 cl:py-1.5 cl:text-xs" : "cl:p-2 cl:text-sm"
|
|
5498
5500
|
]
|
|
5499
5501
|
}, e), [
|
|
5500
|
-
s.$slots[s.column.name] ?
|
|
5502
|
+
s.$slots[s.column.name] ? R(s.$slots, s.column.name, he(J({ key: 0 }, { column: s.column, data: s.data }))) : s.column.type === "boolean" && s.column.field !== void 0 ? (c(), j(vl, {
|
|
5501
5503
|
key: 1,
|
|
5502
5504
|
id: m(l),
|
|
5503
5505
|
class: "cl:disabled:checked:bg-primary-light cl:disabled:checked:border-primary-light",
|
|
@@ -5557,7 +5559,7 @@ const Mt = /* @__PURE__ */ qe(pr, [["render", mr]]), gr = { class: "cl:flex cl:g
|
|
|
5557
5559
|
}),
|
|
5558
5560
|
emits: ["update:request"],
|
|
5559
5561
|
setup(o) {
|
|
5560
|
-
const t = o, l =
|
|
5562
|
+
const t = o, l = ye(o, "request"), { t: e } = fe(), n = T(() => {
|
|
5561
5563
|
var s;
|
|
5562
5564
|
return t.data !== null ? Math.ceil((((s = t.data) == null ? void 0 : s.totalRecords) ?? 0) / l.value.pageSize) : 1;
|
|
5563
5565
|
}), a = T(() => {
|
|
@@ -5591,7 +5593,7 @@ const Mt = /* @__PURE__ */ qe(pr, [["render", mr]]), gr = { class: "cl:flex cl:g
|
|
|
5591
5593
|
const g = De("icon");
|
|
5592
5594
|
return s.initialLoad ? (c(), j(Mt, { key: 0 })) : (b = s.data) != null && b.results.length && l.value && n.value > 1 ? (c(), v("div", {
|
|
5593
5595
|
key: 1,
|
|
5594
|
-
class:
|
|
5596
|
+
class: V(["cl:border-off-white cl:border-t cl:flex cl:flex-wrap cl:gap-y-2 cl:justify-between cl:p-2 cl:text-grey-4", [
|
|
5595
5597
|
s.options.smallGridText ? "cl:px-1 cl:py-1.5 cl:text-xs" : "cl:p-2 cl:text-sm"
|
|
5596
5598
|
]])
|
|
5597
5599
|
}, [
|
|
@@ -5605,7 +5607,7 @@ const Mt = /* @__PURE__ */ qe(pr, [["render", mr]]), gr = { class: "cl:flex cl:g
|
|
|
5605
5607
|
(c(!0), v(K, null, _(f.value, (w, k) => (c(), v("li", {
|
|
5606
5608
|
id: `${s.gridId}-page-size-${w}`,
|
|
5607
5609
|
key: k,
|
|
5608
|
-
class:
|
|
5610
|
+
class: V(["cl:border-b cl:px-1", {
|
|
5609
5611
|
"cl:text-link-default": l.value.pageSize === w,
|
|
5610
5612
|
"cl:border-b-transparent cl:hover:border-b-link-lighter cl:hover:text-link-light cl:cursor-pointer": l.value.pageSize !== w
|
|
5611
5613
|
}]),
|
|
@@ -5617,7 +5619,7 @@ const Mt = /* @__PURE__ */ qe(pr, [["render", mr]]), gr = { class: "cl:flex cl:g
|
|
|
5617
5619
|
h("ul", wr, [
|
|
5618
5620
|
h("li", {
|
|
5619
5621
|
id: `${s.gridId}-page-first`,
|
|
5620
|
-
class:
|
|
5622
|
+
class: V({
|
|
5621
5623
|
"cl:text-grey-2 cl:pointer-events-none": l.value.pageNumber === 1,
|
|
5622
5624
|
"cl:cursor-pointer": l.value.pageNumber > 1
|
|
5623
5625
|
}),
|
|
@@ -5630,7 +5632,7 @@ const Mt = /* @__PURE__ */ qe(pr, [["render", mr]]), gr = { class: "cl:flex cl:g
|
|
|
5630
5632
|
], 10, kr),
|
|
5631
5633
|
h("li", {
|
|
5632
5634
|
id: `${s.gridId}-page-previous`,
|
|
5633
|
-
class:
|
|
5635
|
+
class: V({
|
|
5634
5636
|
"cl:cursor-pointer": l.value.pageNumber > 1,
|
|
5635
5637
|
"cl:text-grey-2 cl:pointer-events-none": l.value.pageNumber < 2
|
|
5636
5638
|
}),
|
|
@@ -5644,7 +5646,7 @@ const Mt = /* @__PURE__ */ qe(pr, [["render", mr]]), gr = { class: "cl:flex cl:g
|
|
|
5644
5646
|
(c(!0), v(K, null, _(a.value, (w, k) => (c(), v("li", {
|
|
5645
5647
|
id: `${s.gridId}-page-${w}`,
|
|
5646
5648
|
key: k,
|
|
5647
|
-
class:
|
|
5649
|
+
class: V(["cl:border cl:border-grey-2 cl:hover:bg-primary-lighter cl:px-1.5 cl:rounded", {
|
|
5648
5650
|
"cl:text-secondary-default cl:bg-primary-lighter cl:border-primary-lighter": l.value.pageNumber === w,
|
|
5649
5651
|
"cl:cursor-pointer ": l.value.pageNumber !== w
|
|
5650
5652
|
}]),
|
|
@@ -5652,7 +5654,7 @@ const Mt = /* @__PURE__ */ qe(pr, [["render", mr]]), gr = { class: "cl:flex cl:g
|
|
|
5652
5654
|
}, U(m(Me)(w)), 11, Cr))), 128)),
|
|
5653
5655
|
h("li", {
|
|
5654
5656
|
id: `${s.gridId}-page-next`,
|
|
5655
|
-
class:
|
|
5657
|
+
class: V({
|
|
5656
5658
|
"cl:text-grey-2 cl:pointer-events-none": l.value.pageNumber >= n.value,
|
|
5657
5659
|
"cl:cursor-pointer": l.value.pageNumber < n.value
|
|
5658
5660
|
}),
|
|
@@ -5665,7 +5667,7 @@ const Mt = /* @__PURE__ */ qe(pr, [["render", mr]]), gr = { class: "cl:flex cl:g
|
|
|
5665
5667
|
], 10, Sr),
|
|
5666
5668
|
h("li", {
|
|
5667
5669
|
id: `${s.gridId}-page-last`,
|
|
5668
|
-
class:
|
|
5670
|
+
class: V({
|
|
5669
5671
|
"cl:text-grey-2 cl:pointer-events-none": l.value.pageNumber >= n.value,
|
|
5670
5672
|
"cl:cursor-pointer": l.value.pageNumber < n.value
|
|
5671
5673
|
}),
|
|
@@ -5692,15 +5694,15 @@ const Mt = /* @__PURE__ */ qe(pr, [["render", mr]]), gr = { class: "cl:flex cl:g
|
|
|
5692
5694
|
return Ye(n, () => {
|
|
5693
5695
|
(l.isOpen ?? !1) && e("open-click");
|
|
5694
5696
|
}), (a, i) => (c(), v("header", qr, [
|
|
5695
|
-
|
|
5697
|
+
R(a.$slots, "logo"),
|
|
5696
5698
|
h("div", {
|
|
5697
5699
|
ref_key: "headerMenuElement",
|
|
5698
5700
|
ref: n,
|
|
5699
5701
|
class: "cl:cursor-pointer cl:flex cl:flex-nowrap",
|
|
5700
5702
|
onClick: i[0] || (i[0] = (d) => a.$emit("open-click"))
|
|
5701
5703
|
}, [
|
|
5702
|
-
|
|
5703
|
-
|
|
5704
|
+
R(a.$slots, "menu"),
|
|
5705
|
+
R(a.$slots, "icon")
|
|
5704
5706
|
], 512)
|
|
5705
5707
|
]));
|
|
5706
5708
|
}
|
|
@@ -5723,7 +5725,7 @@ const Mt = /* @__PURE__ */ qe(pr, [["render", mr]]), gr = { class: "cl:flex cl:g
|
|
|
5723
5725
|
},
|
|
5724
5726
|
setup(o) {
|
|
5725
5727
|
return (t, l) => (c(), v("div", {
|
|
5726
|
-
class:
|
|
5728
|
+
class: V(["cl:md:relative", {
|
|
5727
5729
|
"cl:bg-primary-default": t.colour === "default",
|
|
5728
5730
|
"cl:bg-blue-light": t.colour === "secondary"
|
|
5729
5731
|
}])
|
|
@@ -5741,7 +5743,7 @@ const Mt = /* @__PURE__ */ qe(pr, [["render", mr]]), gr = { class: "cl:flex cl:g
|
|
|
5741
5743
|
height: "48"
|
|
5742
5744
|
})),
|
|
5743
5745
|
h("div", {
|
|
5744
|
-
class:
|
|
5746
|
+
class: V(["cl:grow cl:hidden cl:md:block cl:my-4", {
|
|
5745
5747
|
"cl:text-secondary-default": t.colour === "default",
|
|
5746
5748
|
"cl:text-white": t.colour === "secondary"
|
|
5747
5749
|
}])
|
|
@@ -5751,7 +5753,7 @@ const Mt = /* @__PURE__ */ qe(pr, [["render", mr]]), gr = { class: "cl:flex cl:g
|
|
|
5751
5753
|
], 2),
|
|
5752
5754
|
h("div", Ir, [
|
|
5753
5755
|
M(m(ae), {
|
|
5754
|
-
class:
|
|
5756
|
+
class: V(["cl:transform-gpu cl:transition-transform", {
|
|
5755
5757
|
"cl:rotate-180": t.isOpen,
|
|
5756
5758
|
"cl:text-secondary-default": t.colour === "default",
|
|
5757
5759
|
"cl:text-white": t.colour === "secondary"
|
|
@@ -5763,7 +5765,7 @@ const Mt = /* @__PURE__ */ qe(pr, [["render", mr]]), gr = { class: "cl:flex cl:g
|
|
|
5763
5765
|
M(Re, { name: "fade" }, {
|
|
5764
5766
|
default: z(() => [
|
|
5765
5767
|
ie(h("div", Vr, [
|
|
5766
|
-
|
|
5768
|
+
R(t.$slots, "default")
|
|
5767
5769
|
], 512), [
|
|
5768
5770
|
[ve, t.isOpen]
|
|
5769
5771
|
])
|
|
@@ -6003,7 +6005,7 @@ const Mt = /* @__PURE__ */ qe(pr, [["render", mr]]), gr = { class: "cl:flex cl:g
|
|
|
6003
6005
|
ref: a,
|
|
6004
6006
|
type: "text",
|
|
6005
6007
|
disabled: k.disabled,
|
|
6006
|
-
class:
|
|
6008
|
+
class: V(["cl:block cl:border cl:duration-300 cl:focus:outline-none cl:h-full cl:mb-1 cl:p-3 cl:rounded-lg cl:transition cl:w-full", {
|
|
6007
6009
|
"cl:hover:border-grey-3!": k.disabled === !1,
|
|
6008
6010
|
"cl:cursor-default!": k.disabled,
|
|
6009
6011
|
"cl:border-danger-default!": !k.isValid,
|
|
@@ -6041,7 +6043,7 @@ const Mt = /* @__PURE__ */ qe(pr, [["render", mr]]), gr = { class: "cl:flex cl:g
|
|
|
6041
6043
|
at((r) => ({
|
|
6042
6044
|
"1f0967fd": i.value
|
|
6043
6045
|
}));
|
|
6044
|
-
const l = o, e =
|
|
6046
|
+
const l = o, e = ye(o, "value"), { t: n } = fe(), a = I(), i = T(() => {
|
|
6045
6047
|
let r = (e.value - l.min) / (l.max - l.min) * 100;
|
|
6046
6048
|
return r < 35 && r > 0 ? r < 20 ? r += 0.5 : r += 0.25 : r > 65 && r < 100 && (r > 80 ? r -= 0.5 : r -= 0.25), `${r}%`;
|
|
6047
6049
|
}), d = T(() => l.min <= l.max && l.step > 0), f = I(!1);
|
|
@@ -6053,7 +6055,7 @@ const Mt = /* @__PURE__ */ qe(pr, [["render", mr]]), gr = { class: "cl:flex cl:g
|
|
|
6053
6055
|
}), (r, s) => d.value ? (c(), v("div", he(J({ key: 0 }, r.$attrs)), [
|
|
6054
6056
|
h("div", Ur, [
|
|
6055
6057
|
h("span", {
|
|
6056
|
-
class:
|
|
6058
|
+
class: V(["cl:border cl:border-transparent cl:leading-6 cl:mr-1 cl:px-2 cl:rounded-full cl:select-none cl:shadow cl:text-center cl:text-xs", {
|
|
6057
6059
|
"cl:bg-white cl:cursor-pointer cl:hover:border-grey-1": !r.disabled,
|
|
6058
6060
|
"cl:bg-grey-0": r.disabled
|
|
6059
6061
|
}]),
|
|
@@ -6102,7 +6104,7 @@ const Mt = /* @__PURE__ */ qe(pr, [["render", mr]]), gr = { class: "cl:flex cl:g
|
|
|
6102
6104
|
], 64))
|
|
6103
6105
|
]),
|
|
6104
6106
|
h("span", {
|
|
6105
|
-
class:
|
|
6107
|
+
class: V(["cl:border cl:border-transparent cl:leading-6 cl:ml-1 cl:px-2 cl:rounded-full cl:select-none cl:shadow cl:text-center cl:text-xs", {
|
|
6106
6108
|
"cl:bg-white cl:cursor-pointer cl:hover:border-grey-1": !r.disabled,
|
|
6107
6109
|
"cl:bg-grey-0": r.disabled
|
|
6108
6110
|
}]),
|
|
@@ -6283,7 +6285,7 @@ const Yr = { class: "cl:flex cl:justify-between" }, Jr = { class: "cl:w-full" },
|
|
|
6283
6285
|
O.value = !0, Ce ? (D.value = me, n("validated", !1, u)) : (D.value = [], n("validated", !0, u)), B.value = !Ce;
|
|
6284
6286
|
});
|
|
6285
6287
|
}
|
|
6286
|
-
function
|
|
6288
|
+
function be() {
|
|
6287
6289
|
let u = "";
|
|
6288
6290
|
return e.inputType === "color" && g.value && (e.disabled ? u = "background: #999999" : u = `background: ${g.value};`), u;
|
|
6289
6291
|
}
|
|
@@ -6379,7 +6381,7 @@ const Yr = { class: "cl:flex cl:justify-between" }, Jr = { class: "cl:w-full" },
|
|
|
6379
6381
|
"cl:p-3 cl:rounded-lg": !m(xe)(u.inputType),
|
|
6380
6382
|
[`${u.inputSpecificClasses}`]: u.inputSpecificClasses !== ""
|
|
6381
6383
|
}],
|
|
6382
|
-
style:
|
|
6384
|
+
style: be(),
|
|
6383
6385
|
type: u.inputType,
|
|
6384
6386
|
disabled: u.disabled,
|
|
6385
6387
|
min: u.min ?? void 0,
|
|
@@ -6550,13 +6552,13 @@ const di = {
|
|
|
6550
6552
|
s && (a.value = !1);
|
|
6551
6553
|
}), (s, p) => i.value !== null && m(El)(i.value) ? (c(), v("div", di, [
|
|
6552
6554
|
h("div", {
|
|
6553
|
-
class:
|
|
6555
|
+
class: V(["cl:flex cl:items-center", {
|
|
6554
6556
|
"cl:cursor-pointer": !s.disabled
|
|
6555
6557
|
}]),
|
|
6556
6558
|
onClick: r
|
|
6557
6559
|
}, [
|
|
6558
6560
|
h("span", {
|
|
6559
|
-
class:
|
|
6561
|
+
class: V(["cl:font-semibold cl:text-xs", {
|
|
6560
6562
|
"cl:opacity-50": s.disabled
|
|
6561
6563
|
}])
|
|
6562
6564
|
}, U(i.value.nativeName), 3)
|
|
@@ -6613,17 +6615,17 @@ const di = {
|
|
|
6613
6615
|
a
|
|
6614
6616
|
], s), (p, g) => (c(), v("div", vi, [
|
|
6615
6617
|
h("div", hi, [
|
|
6616
|
-
|
|
6618
|
+
R(p.$slots, "background")
|
|
6617
6619
|
]),
|
|
6618
6620
|
h("form", bi, [
|
|
6619
6621
|
h("div", yi, [
|
|
6620
|
-
|
|
6622
|
+
R(p.$slots, "logo")
|
|
6621
6623
|
]),
|
|
6622
6624
|
p.$slots["language-switcher"] ? (c(), v("div", wi, [
|
|
6623
|
-
|
|
6625
|
+
R(p.$slots, "language-switcher")
|
|
6624
6626
|
])) : F("", !0),
|
|
6625
6627
|
h("div", {
|
|
6626
|
-
class:
|
|
6628
|
+
class: V(["cl:gap-y-4 cl:grid cl:grid-cols-1 cl:lg:gap-x-2 cl:lg:grid-cols-8", {
|
|
6627
6629
|
"cl:col-span-7": !p.$slots["language-switcher"],
|
|
6628
6630
|
"cl:col-span-6": p.$slots["language-switcher"]
|
|
6629
6631
|
}])
|
|
@@ -6641,7 +6643,7 @@ const di = {
|
|
|
6641
6643
|
modelValue: n.value,
|
|
6642
6644
|
"onUpdate:modelValue": g[0] || (g[0] = (b) => n.value = b),
|
|
6643
6645
|
modelModifiers: { trim: !0 },
|
|
6644
|
-
class:
|
|
6646
|
+
class: V(["cl:border-2 cl:outline-none cl:p-2 cl:pl-9 cl:text-grey-5 cl:text-sm", {
|
|
6645
6647
|
"cl:border-primary-default! cl:hover:border-grey-3! cl:focus-within:border-link-light!": n.value !== "" && d.value,
|
|
6646
6648
|
"cl:border-danger-dark! cl:hover:border-grey-3! cl:focus-within:border-link-light!": n.value !== "" && !d.value
|
|
6647
6649
|
}]),
|
|
@@ -6686,7 +6688,7 @@ const di = {
|
|
|
6686
6688
|
id: "cl-ui-login-passwordinput",
|
|
6687
6689
|
modelValue: a.value,
|
|
6688
6690
|
"onUpdate:modelValue": g[3] || (g[3] = (b) => a.value = b),
|
|
6689
|
-
class:
|
|
6691
|
+
class: V(["cl:border-2 cl:outline-none cl:p-2 cl:px-9 cl:text-grey-5 cl:text-sm", {
|
|
6690
6692
|
"cl:border-primary-default! cl:hover:border-grey-3! cl:focus-within:border-link-light!": a.value
|
|
6691
6693
|
}]),
|
|
6692
6694
|
type: i.value,
|
|
@@ -6803,18 +6805,18 @@ const di = {
|
|
|
6803
6805
|
}, [
|
|
6804
6806
|
h("div", {
|
|
6805
6807
|
id: "group-container",
|
|
6806
|
-
class:
|
|
6808
|
+
class: V(["cl:h-full cl:overflow-y-auto cl:overscroll-y-none cl:pb-20 cl:w-20 cl:xl:pb-0 cl:z-40", {
|
|
6807
6809
|
"cl:bg-primary-default": E.colour === "default",
|
|
6808
6810
|
"cl:bg-blue-dark": E.colour === "secondary"
|
|
6809
6811
|
}])
|
|
6810
6812
|
}, [
|
|
6811
|
-
|
|
6813
|
+
R(E.$slots, "icon", J({ navcolour: E.colour }, { groupIsOpen: i, toggleOpen: d }), void 0, !0)
|
|
6812
6814
|
], 2),
|
|
6813
6815
|
s.value ? (c(), v("div", Ii)) : F("", !0),
|
|
6814
6816
|
M(Re, { name: "slide-right" }, {
|
|
6815
6817
|
default: z(() => [
|
|
6816
6818
|
ie(h("div", {
|
|
6817
|
-
class:
|
|
6819
|
+
class: V(["cl:bg-grey-0 cl:border-grey-2 cl:border-r cl:duration-75 cl:h-full cl:min-w-[260px] cl:overflow-y-auto cl:overscroll-y-none cl:p-8 cl:pb-24 cl:top-0 cl:transition-shadow cl:w-[260px] cl:xl:pb-0 cl:z-30", {
|
|
6818
6820
|
"cl:relative": r.value,
|
|
6819
6821
|
"cl:absolute cl:left-20 cl:shadow-lg": !r.value
|
|
6820
6822
|
}])
|
|
@@ -6832,7 +6834,7 @@ const di = {
|
|
|
6832
6834
|
icon: "ph:push-pin"
|
|
6833
6835
|
}))
|
|
6834
6836
|
]),
|
|
6835
|
-
|
|
6837
|
+
R(E.$slots, "default", he(we({ groupIsOpen: i })), void 0, !0)
|
|
6836
6838
|
])
|
|
6837
6839
|
], 2), [
|
|
6838
6840
|
[ve, a.value]
|
|
@@ -6851,7 +6853,7 @@ const di = {
|
|
|
6851
6853
|
},
|
|
6852
6854
|
setup(o) {
|
|
6853
6855
|
return (t, l) => (c(), v("div", {
|
|
6854
|
-
class:
|
|
6856
|
+
class: V(["cl:cursor-pointer cl:flex cl:h-20 cl:items-center cl:justify-center cl:transition-colors cl:w-20", {
|
|
6855
6857
|
"cl:text-secondary-default cl:hover:bg-primary-dark cl:hover:text-white": t.colour === "default",
|
|
6856
6858
|
"cl:bg-primary-darker cl:text-white": t.open && t.colour === "default",
|
|
6857
6859
|
"cl:text-white cl:hover:bg-blue-light": t.colour === "secondary",
|
|
@@ -6875,15 +6877,15 @@ const di = {
|
|
|
6875
6877
|
},
|
|
6876
6878
|
setup(o) {
|
|
6877
6879
|
return (t, l) => (c(), v("div", {
|
|
6878
|
-
class:
|
|
6880
|
+
class: V({
|
|
6879
6881
|
"cl:hidden": !t.open
|
|
6880
6882
|
})
|
|
6881
6883
|
}, [
|
|
6882
6884
|
t.$slots.title ? (c(), v("div", zi, [
|
|
6883
|
-
|
|
6885
|
+
R(t.$slots, "title")
|
|
6884
6886
|
])) : F("", !0),
|
|
6885
6887
|
h("div", Fi, [
|
|
6886
|
-
|
|
6888
|
+
R(t.$slots, "default")
|
|
6887
6889
|
])
|
|
6888
6890
|
], 2));
|
|
6889
6891
|
}
|
|
@@ -6894,17 +6896,17 @@ const di = {
|
|
|
6894
6896
|
function Hi(o, t) {
|
|
6895
6897
|
return c(), v("div", Pi, [
|
|
6896
6898
|
o.$slots.title ? (c(), v("div", ji, [
|
|
6897
|
-
|
|
6899
|
+
R(o.$slots, "title")
|
|
6898
6900
|
])) : F("", !0),
|
|
6899
6901
|
h("span", Gi, [
|
|
6900
|
-
|
|
6902
|
+
R(o.$slots, "default")
|
|
6901
6903
|
])
|
|
6902
6904
|
]);
|
|
6903
6905
|
}
|
|
6904
6906
|
const Wi = /* @__PURE__ */ qe(Li, [["render", Hi]]), Zi = {}, Ki = { class: "cl:cursor-pointer cl:hover:text-primary-darker cl:transition-colors cl:w-full" };
|
|
6905
6907
|
function Qi(o, t) {
|
|
6906
6908
|
return c(), v("div", Ki, [
|
|
6907
|
-
|
|
6909
|
+
R(o.$slots, "default")
|
|
6908
6910
|
]);
|
|
6909
6911
|
}
|
|
6910
6912
|
const Yi = /* @__PURE__ */ qe(Zi, [["render", Qi]]), Ji = /* @__PURE__ */ G({
|
|
@@ -6939,12 +6941,12 @@ const Yi = /* @__PURE__ */ qe(Zi, [["render", Qi]]), Ji = /* @__PURE__ */ G({
|
|
|
6939
6941
|
}), t({
|
|
6940
6942
|
setTab: p
|
|
6941
6943
|
}), (g, b) => (c(), v("div", {
|
|
6942
|
-
class:
|
|
6944
|
+
class: V(["cl:w-full", {
|
|
6943
6945
|
"cl:flex cl:flex-row cl:gap-4 cl:xl:gap-6": f.value === !1
|
|
6944
6946
|
}])
|
|
6945
6947
|
}, [
|
|
6946
6948
|
h("div", {
|
|
6947
|
-
class:
|
|
6949
|
+
class: V(["cl:flex cl:flex-nowrap", [
|
|
6948
6950
|
f.value === !1 ? "cl:items-start" : "cl:items-center cl:w-full",
|
|
6949
6951
|
{
|
|
6950
6952
|
"cl:border-r cl:h-full cl:border-grey-1": f.value === !1,
|
|
@@ -6955,20 +6957,20 @@ const Yi = /* @__PURE__ */ qe(Zi, [["render", Qi]]), Ji = /* @__PURE__ */ G({
|
|
|
6955
6957
|
h("div", {
|
|
6956
6958
|
ref_key: "headerContainer",
|
|
6957
6959
|
ref: d,
|
|
6958
|
-
class:
|
|
6960
|
+
class: V(["cl:border-b cl:border-grey-1 cl:flex cl:flex-nowrap", {
|
|
6959
6961
|
"cl:overflow-x-auto cl:overscroll-x-none cl:w-full cl:gap-4 cl:xl:gap-6 cl:px-4 cl:flex-row": f.value,
|
|
6960
6962
|
"cl:flex-col cl:border-b-0": f.value === !1
|
|
6961
6963
|
}])
|
|
6962
6964
|
}, [
|
|
6963
|
-
|
|
6965
|
+
R(g.$slots, "headings", he(we({ isTabOpen: r, toggleOpen: s, colour: g.colour, layout: g.layout })))
|
|
6964
6966
|
], 2)
|
|
6965
6967
|
], 2),
|
|
6966
6968
|
ie(h("div", {
|
|
6967
|
-
class:
|
|
6969
|
+
class: V(["cl:basis-full cl:p-4", {
|
|
6968
6970
|
"cl:overflow-hidden": g.overflowHidden
|
|
6969
6971
|
}])
|
|
6970
6972
|
}, [
|
|
6971
|
-
|
|
6973
|
+
R(g.$slots, "content", he(we({ isTabOpen: r })))
|
|
6972
6974
|
], 2), [
|
|
6973
6975
|
[ve, i.value]
|
|
6974
6976
|
])
|
|
@@ -6986,7 +6988,7 @@ const Yi = /* @__PURE__ */ qe(Zi, [["render", Qi]]), Ji = /* @__PURE__ */ G({
|
|
|
6986
6988
|
setup(o) {
|
|
6987
6989
|
const t = o, l = T(() => t.layout === "horizontal");
|
|
6988
6990
|
return (e, n) => (c(), v("div", {
|
|
6989
|
-
class:
|
|
6991
|
+
class: V(["cl:flex cl:font-bold cl:items-center cl:whitespace-nowrap", {
|
|
6990
6992
|
"cl:border-b-4 cl:p-2 cl:pt-4": l.value,
|
|
6991
6993
|
"cl:border-b-0 cl:border-r-4 cl:pr-4 cl:py-2": l.value === !1,
|
|
6992
6994
|
"cl:cursor-pointer cl:hover:border-link-lighter/100 cl:border-link-lighter/0 cl:text-secondary-light cl:hover:text-secondary-dark": e.open === !1 && !e.disabled,
|
|
@@ -7000,7 +7002,7 @@ const Yi = /* @__PURE__ */ qe(Zi, [["render", Qi]]), Ji = /* @__PURE__ */ G({
|
|
|
7000
7002
|
}]),
|
|
7001
7003
|
inert: e.disabled
|
|
7002
7004
|
}, [
|
|
7003
|
-
|
|
7005
|
+
R(e.$slots, "default", {}, () => [
|
|
7004
7006
|
de(U(e.title), 1)
|
|
7005
7007
|
])
|
|
7006
7008
|
], 10, Xi));
|
|
@@ -7013,10 +7015,10 @@ const Yi = /* @__PURE__ */ qe(Zi, [["render", Qi]]), Ji = /* @__PURE__ */ G({
|
|
|
7013
7015
|
},
|
|
7014
7016
|
setup(o) {
|
|
7015
7017
|
return (t, l) => t.open ? (c(), v("div", _i, [
|
|
7016
|
-
t.$slots.header || t.title ?
|
|
7018
|
+
t.$slots.header || t.title ? R(t.$slots, "header", { key: 0 }, () => [
|
|
7017
7019
|
h("h4", eu, U(t.title), 1)
|
|
7018
7020
|
]) : F("", !0),
|
|
7019
|
-
|
|
7021
|
+
R(t.$slots, "default")
|
|
7020
7022
|
])) : F("", !0);
|
|
7021
7023
|
}
|
|
7022
7024
|
}), tu = [
|
|
@@ -7115,13 +7117,13 @@ const Yi = /* @__PURE__ */ qe(Zi, [["render", Qi]]), Ji = /* @__PURE__ */ G({
|
|
|
7115
7117
|
disabled: k.disabled,
|
|
7116
7118
|
onInput: f
|
|
7117
7119
|
}, null, 40, nu),
|
|
7118
|
-
|
|
7120
|
+
R(k.$slots, "default")
|
|
7119
7121
|
], 16)) : (c(), v("input", {
|
|
7120
7122
|
key: 1,
|
|
7121
7123
|
ref_key: "fileRefClassic",
|
|
7122
7124
|
ref: b,
|
|
7123
7125
|
type: "file",
|
|
7124
|
-
class:
|
|
7126
|
+
class: V({
|
|
7125
7127
|
"cl:cursor-default": k.disabled === !0,
|
|
7126
7128
|
"cl:cursor-pointer": k.disabled === !1
|
|
7127
7129
|
}),
|
|
@@ -7130,12 +7132,12 @@ const Yi = /* @__PURE__ */ qe(Zi, [["render", Qi]]), Ji = /* @__PURE__ */ G({
|
|
|
7130
7132
|
disabled: k.disabled,
|
|
7131
7133
|
onInput: f
|
|
7132
7134
|
}, null, 42, su)),
|
|
7133
|
-
a.value.length > 0 ?
|
|
7135
|
+
a.value.length > 0 ? R(k.$slots, "invalid-files", {
|
|
7134
7136
|
key: 2,
|
|
7135
7137
|
invalidFiles: a.value
|
|
7136
7138
|
}, () => [
|
|
7137
7139
|
h("div", {
|
|
7138
|
-
class:
|
|
7140
|
+
class: V(["cl:flex cl:flex-col cl:flex-nowrap cl:gap-1 cl:pt-1", {
|
|
7139
7141
|
"cl:w-full": k.uploaderType === "dragDrop",
|
|
7140
7142
|
"cl:w-max": k.uploaderType == "classic"
|
|
7141
7143
|
}])
|
|
@@ -7160,7 +7162,7 @@ const Yi = /* @__PURE__ */ qe(Zi, [["render", Qi]]), Ji = /* @__PURE__ */ G({
|
|
|
7160
7162
|
}),
|
|
7161
7163
|
emits: /* @__PURE__ */ pe(["selection-changed"], ["update:modelValue"]),
|
|
7162
7164
|
setup(o, { emit: t }) {
|
|
7163
|
-
const l = o, e =
|
|
7165
|
+
const l = o, e = ye(o, "modelValue"), n = t;
|
|
7164
7166
|
function a(f) {
|
|
7165
7167
|
Array.isArray(e.value) ? i(f) : e.value === f && l.required === !1 ? e.value = null : e.value = f;
|
|
7166
7168
|
}
|
|
@@ -7177,7 +7179,7 @@ const Yi = /* @__PURE__ */ qe(Zi, [["render", Qi]]), Ji = /* @__PURE__ */ G({
|
|
|
7177
7179
|
"show-required-asterisk": f.required && f.$slots.label !== void 0
|
|
7178
7180
|
}, ke({
|
|
7179
7181
|
label: z(() => [
|
|
7180
|
-
|
|
7182
|
+
R(f.$slots, "label")
|
|
7181
7183
|
]),
|
|
7182
7184
|
default: z(() => [
|
|
7183
7185
|
h("div", J(f.$attrs, {
|
|
@@ -7186,7 +7188,7 @@ const Yi = /* @__PURE__ */ qe(Zi, [["render", Qi]]), Ji = /* @__PURE__ */ G({
|
|
|
7186
7188
|
"cl:gap-1 cl:flex-col": f.orientation === "vertical"
|
|
7187
7189
|
}]
|
|
7188
7190
|
}), [
|
|
7189
|
-
|
|
7191
|
+
R(f.$slots, "default", { select: a })
|
|
7190
7192
|
], 16)
|
|
7191
7193
|
]),
|
|
7192
7194
|
_: 2
|
|
@@ -7194,7 +7196,7 @@ const Yi = /* @__PURE__ */ qe(Zi, [["render", Qi]]), Ji = /* @__PURE__ */ G({
|
|
|
7194
7196
|
f.$slots["help-text"] ? {
|
|
7195
7197
|
name: "helpText",
|
|
7196
7198
|
fn: z(() => [
|
|
7197
|
-
|
|
7199
|
+
R(f.$slots, "help-text")
|
|
7198
7200
|
]),
|
|
7199
7201
|
key: "0"
|
|
7200
7202
|
} : void 0
|
|
@@ -7208,14 +7210,14 @@ const Yi = /* @__PURE__ */ qe(Zi, [["render", Qi]]), Ji = /* @__PURE__ */ G({
|
|
|
7208
7210
|
},
|
|
7209
7211
|
setup(o) {
|
|
7210
7212
|
return (t, l) => (c(), j(Ee, {
|
|
7211
|
-
class:
|
|
7213
|
+
class: V({
|
|
7212
7214
|
"cl:bg-primary-default/40! cl:border-primary-dark cl:hover:border-primary-dark cl:text-black cl:font-bold": t.isSelected,
|
|
7213
7215
|
"cl:border-secondary-light/40 cl:hover:shadow-md cl:hover:border-secondary-light/100 cl:text-secondary-default! cl:hover:bg-primary-default/15 cl:hover:font-bold": t.isSelected === !1,
|
|
7214
7216
|
"cl:rounded-none!": t.orientation === "horizontal"
|
|
7215
7217
|
})
|
|
7216
7218
|
}, {
|
|
7217
7219
|
default: z(() => [
|
|
7218
|
-
|
|
7220
|
+
R(t.$slots, "default")
|
|
7219
7221
|
]),
|
|
7220
7222
|
_: 3
|
|
7221
7223
|
}, 8, ["class"]));
|
|
@@ -7238,7 +7240,7 @@ const Yi = /* @__PURE__ */ qe(Zi, [["render", Qi]]), Ji = /* @__PURE__ */ G({
|
|
|
7238
7240
|
class: "cl:after:h-1.5 cl:after:m-1 cl:after:rounded-full cl:after:w-1.5 cl:appearance-none cl:bg-clip-content cl:border cl:border-grey-3 cl:checked:after:bg-secondary-default cl:checked:bg-primary-default cl:checked:border-primary-darker cl:cursor-pointer cl:flex cl:gap-2 cl:h-4 cl:items-center cl:rounded-full cl:w-4",
|
|
7239
7241
|
onClick: l[0] || (l[0] = (e) => t.$emit("click"))
|
|
7240
7242
|
}, null, 8, du),
|
|
7241
|
-
|
|
7243
|
+
R(t.$slots, "default")
|
|
7242
7244
|
]));
|
|
7243
7245
|
}
|
|
7244
7246
|
}), pu = /* @__PURE__ */ G({
|
|
@@ -7258,7 +7260,7 @@ const Yi = /* @__PURE__ */ qe(Zi, [["render", Qi]]), Ji = /* @__PURE__ */ G({
|
|
|
7258
7260
|
onClick: (i) => t.$emit("select", a)
|
|
7259
7261
|
}, {
|
|
7260
7262
|
default: z(() => [
|
|
7261
|
-
|
|
7263
|
+
R(t.$slots, n, {
|
|
7262
7264
|
id: t.id + "-radio-" + n
|
|
7263
7265
|
})
|
|
7264
7266
|
]),
|
|
@@ -7285,7 +7287,7 @@ const Yi = /* @__PURE__ */ qe(Zi, [["render", Qi]]), Ji = /* @__PURE__ */ G({
|
|
|
7285
7287
|
},
|
|
7286
7288
|
emits: /* @__PURE__ */ pe(["search-clicked"], ["update:open", "update:pinned"]),
|
|
7287
7289
|
setup(o) {
|
|
7288
|
-
const t =
|
|
7290
|
+
const t = ye(o, "open"), l = ye(o, "pinned"), e = I([]), n = I(!1);
|
|
7289
7291
|
function a(r) {
|
|
7290
7292
|
let s = e.value.find((p) => p.id === r);
|
|
7291
7293
|
return s || (s = {
|
|
@@ -7319,7 +7321,7 @@ const Yi = /* @__PURE__ */ qe(Zi, [["render", Qi]]), Ji = /* @__PURE__ */ G({
|
|
|
7319
7321
|
}]
|
|
7320
7322
|
}), [
|
|
7321
7323
|
h("div", {
|
|
7322
|
-
class:
|
|
7324
|
+
class: V(["cl:flex cl:items-center cl:justify-between cl:rounded-lg cl:w-full", {
|
|
7323
7325
|
"cl:hover:bg-primary-lighter cl:cursor-pointer cl:transition-colors": t.value === !1,
|
|
7324
7326
|
"cl:gap-3": t.value
|
|
7325
7327
|
}]),
|
|
@@ -7331,7 +7333,7 @@ const Yi = /* @__PURE__ */ qe(Zi, [["render", Qi]]), Ji = /* @__PURE__ */ G({
|
|
|
7331
7333
|
}, [
|
|
7332
7334
|
M(m(fl), {
|
|
7333
7335
|
"icon-value": t.value ? "ph:sidebar-simple-duotone" : n.value ? "ph:sidebar-duotone" : "ph:list",
|
|
7334
|
-
class:
|
|
7336
|
+
class: V(["cl:transition-colors", {
|
|
7335
7337
|
"cl:text-grey-3 cl:hover:text-secondary-default cl:cursor-pointer ": t.value,
|
|
7336
7338
|
"cl:text-secondary-default": t.value === !1
|
|
7337
7339
|
}]),
|
|
@@ -7339,7 +7341,7 @@ const Yi = /* @__PURE__ */ qe(Zi, [["render", Qi]]), Ji = /* @__PURE__ */ G({
|
|
|
7339
7341
|
}, null, 8, ["icon-value", "class"]),
|
|
7340
7342
|
t.value ? (c(), v("button", {
|
|
7341
7343
|
key: 0,
|
|
7342
|
-
class:
|
|
7344
|
+
class: V(["cl:p-1 cl:right-1 cl:rounded-lg cl:top-2.5", {
|
|
7343
7345
|
"cl:text-grey-3 cl:hover:text-secondary-default cl:hover:bg-primary-lightest": l.value === !1,
|
|
7344
7346
|
"cl:text-secondary-default cl:hover:bg-danger-light": l.value
|
|
7345
7347
|
}]),
|
|
@@ -7355,7 +7357,7 @@ const Yi = /* @__PURE__ */ qe(Zi, [["render", Qi]]), Ji = /* @__PURE__ */ G({
|
|
|
7355
7357
|
], 34),
|
|
7356
7358
|
r.$slots.searchInput ? (c(), v("div", {
|
|
7357
7359
|
key: 0,
|
|
7358
|
-
class:
|
|
7360
|
+
class: V(["cl:flex cl:items-center cl:mb-1 cl:relative cl:w-full", {
|
|
7359
7361
|
"cl:hover:bg-primary-lighter cl:cursor-pointer cl:rounded-lg cl:transition-colors": t.value === !1
|
|
7360
7362
|
}]),
|
|
7361
7363
|
onClick: s[5] || (s[5] = () => {
|
|
@@ -7364,20 +7366,20 @@ const Yi = /* @__PURE__ */ qe(Zi, [["render", Qi]]), Ji = /* @__PURE__ */ G({
|
|
|
7364
7366
|
}, [
|
|
7365
7367
|
M(m(fl), {
|
|
7366
7368
|
"icon-value": "ph:magnifying-glass",
|
|
7367
|
-
class:
|
|
7369
|
+
class: V({
|
|
7368
7370
|
"cl:absolute cl:z-10 cl:text-grey-3": t.value,
|
|
7369
7371
|
"cl:text-secondary-default": t.value === !1
|
|
7370
7372
|
})
|
|
7371
7373
|
}, null, 8, ["class"]),
|
|
7372
7374
|
t.value ? (c(), v("div", fu, [
|
|
7373
|
-
|
|
7375
|
+
R(r.$slots, "searchInput", {}, void 0, !0)
|
|
7374
7376
|
])) : F("", !0)
|
|
7375
7377
|
], 2)) : F("", !0),
|
|
7376
7378
|
h("div", mu, [
|
|
7377
|
-
|
|
7379
|
+
R(r.$slots, "default", he(we({ toggleOpen: i, groupIsOpen: a })), void 0, !0)
|
|
7378
7380
|
]),
|
|
7379
7381
|
r.$slots.footer ? (c(), v("div", gu, [
|
|
7380
|
-
|
|
7382
|
+
R(r.$slots, "footer", he(we({ toggleOpen: i, groupIsOpen: a })), void 0, !0)
|
|
7381
7383
|
])) : F("", !0)
|
|
7382
7384
|
], 16),
|
|
7383
7385
|
t.value && l.value === !1 ? (c(), v("div", vu)) : F("", !0)
|
|
@@ -7415,7 +7417,7 @@ const Yi = /* @__PURE__ */ qe(Zi, [["render", Qi]]), Ji = /* @__PURE__ */ G({
|
|
|
7415
7417
|
])
|
|
7416
7418
|
], 8, wu),
|
|
7417
7419
|
h("div", {
|
|
7418
|
-
class:
|
|
7420
|
+
class: V(["cl:overflow-hidden", { "animate-enabled": t.menuOpen }])
|
|
7419
7421
|
}, [
|
|
7420
7422
|
M(Re, {
|
|
7421
7423
|
name: "menu-slide",
|
|
@@ -7425,7 +7427,7 @@ const Yi = /* @__PURE__ */ qe(Zi, [["render", Qi]]), Ji = /* @__PURE__ */ G({
|
|
|
7425
7427
|
ie(h("div", Cu, [
|
|
7426
7428
|
M(m(Vt), null, {
|
|
7427
7429
|
default: z(() => [
|
|
7428
|
-
|
|
7430
|
+
R(t.$slots, "default")
|
|
7429
7431
|
]),
|
|
7430
7432
|
_: 3
|
|
7431
7433
|
})
|
|
@@ -7464,7 +7466,7 @@ const Yi = /* @__PURE__ */ qe(Zi, [["render", Qi]]), Ji = /* @__PURE__ */ G({
|
|
|
7464
7466
|
h("div", { class: "cl:bg-grey-2 cl:w-[1px]" }, " ")
|
|
7465
7467
|
], -1)),
|
|
7466
7468
|
h("div", Du, [
|
|
7467
|
-
|
|
7469
|
+
R(t.$slots, "default")
|
|
7468
7470
|
])
|
|
7469
7471
|
]));
|
|
7470
7472
|
}
|
|
@@ -7472,7 +7474,7 @@ const Yi = /* @__PURE__ */ qe(Zi, [["render", Qi]]), Ji = /* @__PURE__ */ G({
|
|
|
7472
7474
|
__name: "cl-ui-menu-item",
|
|
7473
7475
|
setup(o) {
|
|
7474
7476
|
return (t, l) => (c(), v("div", Eu, [
|
|
7475
|
-
|
|
7477
|
+
R(t.$slots, "default")
|
|
7476
7478
|
]));
|
|
7477
7479
|
}
|
|
7478
7480
|
}), Mu = ["height"], Au = ["y2"], Iu = ["y1", "y2"], Vu = /* @__PURE__ */ G({
|
|
@@ -7541,7 +7543,7 @@ const Bu = { class: "cl:flex cl:flex-nowrap cl:flex-row cl:w-full" }, zu = { cla
|
|
|
7541
7543
|
emits: /* @__PURE__ */ pe(["recalculate-tree-path", "set-child-node-height"], ["update:selectedPath"]),
|
|
7542
7544
|
setup(o, { emit: t }) {
|
|
7543
7545
|
var y;
|
|
7544
|
-
const l = o, e =
|
|
7546
|
+
const l = o, e = ye(o, "selectedPath"), n = t, a = T(() => Ru(...l.pathFragments)), i = Ft(l.rootNode.expanded) ? l.rootNode.expanded : I(l.rootNode.expanded ?? !1), d = I(), { height: f } = Pl(d), r = jl(d), s = I([]), p = T(() => s.value.map((A) => Pl(A))), g = T(() => s.value.map((A) => jl(A))), b = I(new Array(((y = l.rootNode.children) == null ? void 0 : y.length) ?? 0).fill(0)), w = I([]);
|
|
7545
7547
|
function k() {
|
|
7546
7548
|
r.update(), w.value = g.value.map((A, B) => (A.update(), A.top.value - r.bottom.value + b.value[B] / 2 + 3)), n("recalculate-tree-path");
|
|
7547
7549
|
}
|
|
@@ -7572,7 +7574,7 @@ const Bu = { class: "cl:flex cl:flex-nowrap cl:flex-row cl:w-full" }, zu = { cla
|
|
|
7572
7574
|
]),
|
|
7573
7575
|
A.depth > 0 ? (c(), v("div", Uu)) : F("", !0),
|
|
7574
7576
|
h("div", {
|
|
7575
|
-
class:
|
|
7577
|
+
class: V(["cl:basis-full cl:relative", {
|
|
7576
7578
|
"cl-tree-list-selection": e.value === a.value
|
|
7577
7579
|
}])
|
|
7578
7580
|
}, [
|
|
@@ -7583,7 +7585,7 @@ const Bu = { class: "cl:flex cl:flex-nowrap cl:flex-row cl:w-full" }, zu = { cla
|
|
|
7583
7585
|
ref: d,
|
|
7584
7586
|
class: "cl:bg-white cl:border cl:border-grey-2 cl:px-2 cl:py-1 cl:rounded"
|
|
7585
7587
|
}, [
|
|
7586
|
-
|
|
7588
|
+
R(A.$slots, A.rootNode.slotName ?? "default", {
|
|
7587
7589
|
node: A.rootNode,
|
|
7588
7590
|
path: a.value,
|
|
7589
7591
|
depth: A.depth,
|
|
@@ -7597,13 +7599,13 @@ const Bu = { class: "cl:flex cl:flex-nowrap cl:flex-row cl:w-full" }, zu = { cla
|
|
|
7597
7599
|
id: `${A.idPrefix}-node-content`,
|
|
7598
7600
|
ref_key: "nodeContentDiv",
|
|
7599
7601
|
ref: d,
|
|
7600
|
-
class:
|
|
7602
|
+
class: V(["cl:border cl:border-grey-2 cl:px-2 cl:py-1 cl:rounded-sm cl:text-left cl:w-full", {
|
|
7601
7603
|
"cl:bg-primary-lightest cl:border-primary-dark": e.value === a.value,
|
|
7602
7604
|
"cl-tree-list-button": e.value !== a.value
|
|
7603
7605
|
}]),
|
|
7604
7606
|
onClick: B[1] || (B[1] = ($) => e.value = e.value === a.value ? "" : a.value)
|
|
7605
7607
|
}, [
|
|
7606
|
-
|
|
7608
|
+
R(A.$slots, A.rootNode.slotName ?? "default", {
|
|
7607
7609
|
node: A.rootNode,
|
|
7608
7610
|
path: a.value,
|
|
7609
7611
|
depth: A.depth,
|
|
@@ -7639,7 +7641,7 @@ const Bu = { class: "cl:flex cl:flex-nowrap cl:flex-row cl:w-full" }, zu = { cla
|
|
|
7639
7641
|
_(A.$slots, (Y, H) => ({
|
|
7640
7642
|
name: H,
|
|
7641
7643
|
fn: z((oe) => [
|
|
7642
|
-
|
|
7644
|
+
R(A.$slots, H, J({ ref_for: !0 }, oe))
|
|
7643
7645
|
])
|
|
7644
7646
|
}))
|
|
7645
7647
|
]), 1032, ["selected-path", "id-prefix", "depth", "breadth", "path-fragments", "root-node", "onRecalculateTreePath", "onSetChildNodeHeight"])
|
|
@@ -7671,7 +7673,7 @@ const Bu = { class: "cl:flex cl:flex-nowrap cl:flex-row cl:w-full" }, zu = { cla
|
|
|
7671
7673
|
key: f.id,
|
|
7672
7674
|
"selected-path": a.value,
|
|
7673
7675
|
"onUpdate:selectedPath": d[0] || (d[0] = (s) => a.value = s),
|
|
7674
|
-
class:
|
|
7676
|
+
class: V({
|
|
7675
7677
|
"cl-tree-list-highlight-descendants": i.highlightSelectedDescendants
|
|
7676
7678
|
}),
|
|
7677
7679
|
"root-node": f,
|
|
@@ -7683,7 +7685,7 @@ const Bu = { class: "cl:flex cl:flex-nowrap cl:flex-row cl:w-full" }, zu = { cla
|
|
|
7683
7685
|
_(i.$slots, (s, p) => ({
|
|
7684
7686
|
name: p,
|
|
7685
7687
|
fn: z((g) => [
|
|
7686
|
-
|
|
7688
|
+
R(i.$slots, p, J({ ref_for: !0 }, g))
|
|
7687
7689
|
])
|
|
7688
7690
|
}))
|
|
7689
7691
|
]), 1032, ["selected-path", "class", "root-node", "breadth", "id-prefix", "path-fragments"]))), 128))
|