@citruslime/ui 3.0.3-beta.5 → 3.0.3-beta.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Icon as
|
|
2
|
-
import { defineComponent as G, ref as N, openBlock as u, createElementBlock as b, renderSlot as
|
|
1
|
+
import { Icon as x } from "@iconify/vue";
|
|
2
|
+
import { defineComponent as G, ref as N, openBlock as u, createElementBlock as b, renderSlot as E, normalizeProps as ie, guardReactiveProps as pe, Fragment as W, createElementVNode as g, normalizeClass as A, createVNode as k, unref as m, Transition as Ie, withCtx as D, withDirectives as te, mergeProps as Y, vShow as ue, createBlock as P, Teleport as kl, renderList as _, toDisplayString as M, createCommentVNode as L, computed as $, mergeModels as fe, useModel as be, createSlots as he, vModelDynamic as Gl, watch as ee, toRefs as Hl, withKeys as we, onMounted as We, onUnmounted as il, withModifiers as ae, nextTick as Ue, useAttrs as Ke, resolveComponent as Se, createTextVNode as se, inject as cl, vModelCheckbox as Ct, toValue as Vl, watchEffect as Tt, vModelText as Cl, useCssVars as Zl, toHandlers as St, pushScopeId as Wl, popScopeId as Kl, provide as bl, normalizeStyle as Ql } from "vue";
|
|
3
3
|
import { generateStringId as qt, highlightText as Ot, validateEmail as Dt } from "@citruslime/utils";
|
|
4
|
-
import { onKeyDown as hl, unrefElement as Et, tryOnScopeDispose as At, onClickOutside as Qe, useTimeoutFn as Yl, useMouseInElement as Vt, useFocusWithin as It, useMediaQuery as
|
|
4
|
+
import { onKeyDown as hl, unrefElement as Et, tryOnScopeDispose as At, onClickOutside as Qe, useTimeoutFn as Yl, useMouseInElement as Vt, useFocusWithin as It, useMediaQuery as xl, useThrottle as Mt, useElementBounding as Nt, useDebounceFn as ll, useThrottleFn as Rt, useWindowSize as Ut, useBreakpoints as zt, breakpointsTailwind as Lt } from "@vueuse/core";
|
|
5
5
|
import { useI18n as ce, createI18n as Bt } from "vue-i18n";
|
|
6
6
|
import { createFocusTrap as Ft } from "focus-trap";
|
|
7
7
|
import { copy as ve } from "@citruslime/vue-utils";
|
|
@@ -29,7 +29,7 @@ const Pt = { class: "cl-overflow-hidden" }, Gt = /* @__PURE__ */ G({
|
|
|
29
29
|
}), c.open = !c.open);
|
|
30
30
|
}
|
|
31
31
|
return (n, c) => (u(), b("div", Pt, [
|
|
32
|
-
|
|
32
|
+
E(n.$slots, "default", ie(pe({ isItemOpen: e, toggleItem: s })))
|
|
33
33
|
]));
|
|
34
34
|
}
|
|
35
35
|
}), Ht = { class: "cl-absolute cl-left-5 cl-top-5" }, Zt = { class: "cl-font-semibold cl-ml-10 cl-p-4 cl-select-none cl-text-grey-5" }, Wt = { class: "cl-overflow-hidden" }, Kt = /* @__PURE__ */ G({
|
|
@@ -47,15 +47,15 @@ const Pt = { class: "cl-overflow-hidden" }, Gt = /* @__PURE__ */ G({
|
|
|
47
47
|
}
|
|
48
48
|
return (n, c) => (u(), b(W, null, [
|
|
49
49
|
g("div", {
|
|
50
|
-
class:
|
|
50
|
+
class: A(["cl-border-b cl-border-grey-1 cl-relative", {
|
|
51
51
|
"cl-bg-grey-0": n.disabled,
|
|
52
52
|
"cl-cursor-pointer": !n.disabled
|
|
53
53
|
}]),
|
|
54
54
|
onClick: s
|
|
55
55
|
}, [
|
|
56
56
|
g("div", Ht, [
|
|
57
|
-
k(m(
|
|
58
|
-
class:
|
|
57
|
+
k(m(x), {
|
|
58
|
+
class: A(["cl-duration-300 cl-ease-in-out cl-text-grey-3 cl-transform-gpu cl-transition-transform", {
|
|
59
59
|
"cl-rotate-180": n.open
|
|
60
60
|
}]),
|
|
61
61
|
icon: "ph:caret-down-bold",
|
|
@@ -63,14 +63,14 @@ const Pt = { class: "cl-overflow-hidden" }, Gt = /* @__PURE__ */ G({
|
|
|
63
63
|
}, null, 8, ["class"])
|
|
64
64
|
]),
|
|
65
65
|
g("div", Zt, [
|
|
66
|
-
|
|
66
|
+
E(n.$slots, "title")
|
|
67
67
|
])
|
|
68
68
|
], 2),
|
|
69
69
|
g("div", Wt, [
|
|
70
70
|
k(Ie, { name: "grow-down" }, {
|
|
71
|
-
default:
|
|
71
|
+
default: D(() => [
|
|
72
72
|
te(g("div", Y(n.$attrs, { class: "cl-ml-10 cl-p-4" }), [
|
|
73
|
-
|
|
73
|
+
E(n.$slots, "default")
|
|
74
74
|
], 16), [
|
|
75
75
|
[ue, n.open]
|
|
76
76
|
])
|
|
@@ -80,29 +80,29 @@ const Pt = { class: "cl-overflow-hidden" }, Gt = /* @__PURE__ */ G({
|
|
|
80
80
|
])
|
|
81
81
|
], 64));
|
|
82
82
|
}
|
|
83
|
-
}),
|
|
83
|
+
}), ye = (o, t) => {
|
|
84
84
|
const l = o.__vccOpts || o;
|
|
85
85
|
for (const [e, s] of t)
|
|
86
86
|
l[e] = s;
|
|
87
87
|
return l;
|
|
88
88
|
}, Qt = {}, Yt = { class: "cl-border-b cl-border-grey-1 cl-font-semibold cl-pl-14 cl-pr-4 cl-py-2 cl-text-grey-3 cl-text-sm" };
|
|
89
|
-
function
|
|
89
|
+
function xt(o, t) {
|
|
90
90
|
return u(), b("div", Yt, [
|
|
91
|
-
|
|
91
|
+
E(o.$slots, "default")
|
|
92
92
|
]);
|
|
93
93
|
}
|
|
94
|
-
const
|
|
94
|
+
const Jt = /* @__PURE__ */ ye(Qt, [["render", xt]]), tl = N([]);
|
|
95
95
|
function Il(o) {
|
|
96
96
|
const t = {
|
|
97
97
|
id: qt(),
|
|
98
98
|
...o
|
|
99
99
|
};
|
|
100
|
-
tl.value.push(t), setTimeout(() =>
|
|
100
|
+
tl.value.push(t), setTimeout(() => Jl(t), o.duration);
|
|
101
101
|
}
|
|
102
|
-
function
|
|
102
|
+
function Jl(o) {
|
|
103
103
|
tl.value = tl.value.filter((t) => t.id !== o.id);
|
|
104
104
|
}
|
|
105
|
-
const
|
|
105
|
+
const _t = ["onClick"], Xt = { class: "cl-flex-1 cl-select-none cl-text-ellipsis cl-w-64" }, _l = /* @__PURE__ */ G({
|
|
106
106
|
inheritAttrs: !1,
|
|
107
107
|
__name: "cl-ui-notification",
|
|
108
108
|
props: {
|
|
@@ -113,7 +113,7 @@ const Jt = ["onClick"], Xt = { class: "cl-flex-1 cl-select-none cl-text-ellipsis
|
|
|
113
113
|
setup(o) {
|
|
114
114
|
return (t, l) => (u(), P(kl, { to: t.container }, [
|
|
115
115
|
g("div", {
|
|
116
|
-
class:
|
|
116
|
+
class: A(["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,
|
|
@@ -125,7 +125,7 @@ const Jt = ["onClick"], Xt = { class: "cl-flex-1 cl-select-none cl-text-ellipsis
|
|
|
125
125
|
"cl-bottom-5 cl-right-5": t.position === "bottom-right"
|
|
126
126
|
}])
|
|
127
127
|
}, [
|
|
128
|
-
(u(!0), b(W, null,
|
|
128
|
+
(u(!0), b(W, null, _(m(tl), (e, s) => (u(), b("div", Y(t.$attrs, {
|
|
129
129
|
key: s,
|
|
130
130
|
class: ["cl-break-words cl-cursor-pointer cl-flex cl-font-semibold cl-group cl-mb-2 cl-overflow-hidden cl-p-4 cl-rounded cl-shadow-lg cl-text-sm", {
|
|
131
131
|
"cl-bg-white": e.colour === "default",
|
|
@@ -134,16 +134,16 @@ const Jt = ["onClick"], Xt = { class: "cl-flex-1 cl-select-none cl-text-ellipsis
|
|
|
134
134
|
"cl-bg-danger-default": e.colour === "danger",
|
|
135
135
|
"cl-bg-warning-default": e.colour === "warning"
|
|
136
136
|
}],
|
|
137
|
-
onClick: (n) => m(
|
|
137
|
+
onClick: (n) => m(Jl)(e)
|
|
138
138
|
}), [
|
|
139
139
|
g("span", Xt, M(e.message), 1),
|
|
140
|
-
k(m(
|
|
140
|
+
k(m(x), {
|
|
141
141
|
class: "cl-inline-block cl-opacity-0 cl-transition-opacity group-hover:cl-opacity-100",
|
|
142
142
|
icon: "ph:x",
|
|
143
143
|
size: 16,
|
|
144
144
|
weight: "bold"
|
|
145
145
|
})
|
|
146
|
-
], 16,
|
|
146
|
+
], 16, _t))), 128))
|
|
147
147
|
], 2)
|
|
148
148
|
], 8, ["to"]));
|
|
149
149
|
}
|
|
@@ -154,25 +154,25 @@ const Jt = ["onClick"], Xt = { class: "cl-flex-1 cl-select-none cl-text-ellipsis
|
|
|
154
154
|
},
|
|
155
155
|
setup(o) {
|
|
156
156
|
return (t, l) => (u(), b(W, null, [
|
|
157
|
-
k(
|
|
157
|
+
k(_l, {
|
|
158
158
|
"header-visible": !!t.$slots.header
|
|
159
159
|
}, null, 8, ["header-visible"]),
|
|
160
160
|
g("div", eo, [
|
|
161
|
-
|
|
161
|
+
E(t.$slots, "header"),
|
|
162
162
|
g("div", {
|
|
163
|
-
class:
|
|
163
|
+
class: A(["cl-content-start cl-flex cl-flex-nowrap cl-h-dscreen cl-items-stretch cl-max-h-full cl-relative cl-w-full xl:cl-max-h-screen", {
|
|
164
164
|
"cl-pt-20": t.$slots.header
|
|
165
165
|
}])
|
|
166
166
|
}, [
|
|
167
|
-
|
|
167
|
+
E(t.$slots, "navigation"),
|
|
168
168
|
g("div", {
|
|
169
169
|
id: "cl-ui-app-container",
|
|
170
|
-
class:
|
|
170
|
+
class: A(["cl-grow cl-max-h-full cl-overflow-x-hidden cl-overflow-y-auto cl-overscroll-y-none cl-w-auto", {
|
|
171
171
|
"lg:cl-pb-0": t.removePadding,
|
|
172
172
|
"lg:cl-pb-8 md:cl-px-8 cl-px-2 md:cl-pt-8 cl-pt-2": !t.removePadding
|
|
173
173
|
}])
|
|
174
174
|
}, [
|
|
175
|
-
|
|
175
|
+
E(t.$slots, "default")
|
|
176
176
|
], 2)
|
|
177
177
|
], 2)
|
|
178
178
|
])
|
|
@@ -182,7 +182,7 @@ const Jt = ["onClick"], Xt = { class: "cl-flex-1 cl-select-none cl-text-ellipsis
|
|
|
182
182
|
function ao(o, t) {
|
|
183
183
|
return u(), b("div", oo);
|
|
184
184
|
}
|
|
185
|
-
const Ye = /* @__PURE__ */
|
|
185
|
+
const Ye = /* @__PURE__ */ ye(to, [["render", ao], ["__scopeId", "data-v-a21dc5d2"]]), no = ["disabled"], ke = /* @__PURE__ */ G({
|
|
186
186
|
inheritAttrs: !1,
|
|
187
187
|
__name: "cl-ui-button",
|
|
188
188
|
props: {
|
|
@@ -218,7 +218,7 @@ const Ye = /* @__PURE__ */ he(to, [["render", ao], ["__scopeId", "data-v-a21dc5d
|
|
|
218
218
|
}],
|
|
219
219
|
disabled: e.disabled
|
|
220
220
|
}), [
|
|
221
|
-
|
|
221
|
+
E(e.$slots, "default")
|
|
222
222
|
], 16, no), [
|
|
223
223
|
[ue, !e.loading]
|
|
224
224
|
])
|
|
@@ -243,43 +243,43 @@ const Ye = /* @__PURE__ */ he(to, [["render", ao], ["__scopeId", "data-v-a21dc5d
|
|
|
243
243
|
},
|
|
244
244
|
setup(o) {
|
|
245
245
|
return (t, l) => (u(), b("div", {
|
|
246
|
-
class:
|
|
246
|
+
class: A(["cl-border cl-border-transparent cl-overflow-hidden cl-relative cl-rounded-md cl-shadow-lg cl-transition-all", {
|
|
247
247
|
"cl-cursor-pointer hover:cl-shadow-xl hover:cl-border-grey-0": t.hover
|
|
248
248
|
}])
|
|
249
249
|
}, [
|
|
250
250
|
t.$slots.image ? (u(), b("div", io, [
|
|
251
|
-
|
|
251
|
+
E(t.$slots, "image")
|
|
252
252
|
])) : L("", !0),
|
|
253
253
|
t.$slots.title ? (u(), b("div", {
|
|
254
254
|
key: 1,
|
|
255
|
-
class:
|
|
255
|
+
class: A(["cl-border-grey-2 cl-font-normal", {
|
|
256
256
|
"cl-p-2 cl-text-2xl cl-leading-8": t.size === "small",
|
|
257
257
|
"cl-p-4 cl-text-3xl cl-leading-9": t.size === "medium",
|
|
258
258
|
"cl-p-6 cl-text-4xl cl-leading-10": t.size === "large",
|
|
259
259
|
"cl-border-t": t.$slots.image
|
|
260
260
|
}])
|
|
261
261
|
}, [
|
|
262
|
-
|
|
262
|
+
E(t.$slots, "title")
|
|
263
263
|
], 2)) : L("", !0),
|
|
264
264
|
g("div", {
|
|
265
|
-
class:
|
|
265
|
+
class: A(["cl-border-grey-2", {
|
|
266
266
|
"cl-p-2": t.size === "small",
|
|
267
267
|
"cl-p-4": t.size === "medium",
|
|
268
268
|
"cl-p-6": t.size === "large",
|
|
269
269
|
"cl-border-t": t.$slots.image || t.$slots.title
|
|
270
270
|
}])
|
|
271
271
|
}, [
|
|
272
|
-
|
|
272
|
+
E(t.$slots, "default")
|
|
273
273
|
], 2),
|
|
274
274
|
t.$slots.footer ? (u(), b("div", {
|
|
275
275
|
key: 2,
|
|
276
|
-
class:
|
|
276
|
+
class: A(["cl-border-grey-2 cl-border-t", {
|
|
277
277
|
"cl-p-2": t.size === "small",
|
|
278
278
|
"cl-p-4": t.size === "medium",
|
|
279
279
|
"cl-p-6": t.size === "large"
|
|
280
280
|
}])
|
|
281
281
|
}, [
|
|
282
|
-
|
|
282
|
+
E(t.$slots, "footer")
|
|
283
283
|
], 2)) : L("", !0)
|
|
284
284
|
], 2));
|
|
285
285
|
}
|
|
@@ -310,28 +310,28 @@ const Ye = /* @__PURE__ */ he(to, [["render", ao], ["__scopeId", "data-v-a21dc5d
|
|
|
310
310
|
const t = o, l = $(() => Object.keys(t.errors ?? []).length > 0);
|
|
311
311
|
return (e, s) => (u(), b("div", po, [
|
|
312
312
|
g("div", {
|
|
313
|
-
class:
|
|
313
|
+
class: A(["cl-flex", { "cl-flex-col": e.labelPosition === "above", "cl-flex-row-reverse cl-gap-2 cl-items-center cl-justify-end": e.labelPosition === "right" }])
|
|
314
314
|
}, [
|
|
315
315
|
g("div", fo, [
|
|
316
316
|
e.$slots.label ? (u(), b("span", mo, [
|
|
317
|
-
|
|
317
|
+
E(e.$slots, "label")
|
|
318
318
|
])) : L("", !0),
|
|
319
319
|
e.showRequiredAsterisk ? (u(), b("span", go, "*")) : L("", !0)
|
|
320
320
|
]),
|
|
321
321
|
g("div", null, [
|
|
322
|
-
|
|
322
|
+
E(e.$slots, "default")
|
|
323
323
|
])
|
|
324
324
|
], 2),
|
|
325
325
|
l.value ? (u(), b("div", vo, [
|
|
326
326
|
g("div", bo, [
|
|
327
|
-
(u(!0), b(W, null,
|
|
327
|
+
(u(!0), b(W, null, _(e.errors, (n, c) => (u(), b("div", {
|
|
328
328
|
key: c,
|
|
329
329
|
class: "cl-bg-danger-light cl-px-2 cl-rounded-md cl-text-center cl-text-danger-default cl-text-xs cl-w-full cl-whitespace-pre-line"
|
|
330
330
|
}, M(n), 1))), 128))
|
|
331
331
|
])
|
|
332
332
|
])) : e.errors || e.$slots.helpText ? (u(), b("div", ho, [
|
|
333
333
|
g("span", yo, [
|
|
334
|
-
|
|
334
|
+
E(e.$slots, "helpText")
|
|
335
335
|
])
|
|
336
336
|
])) : L("", !0)
|
|
337
337
|
]));
|
|
@@ -368,8 +368,8 @@ const Ye = /* @__PURE__ */ he(to, [["render", ao], ["__scopeId", "data-v-a21dc5d
|
|
|
368
368
|
}), (c, d) => (u(), P(Me, {
|
|
369
369
|
"show-required-asterisk": c.required,
|
|
370
370
|
errors: c.errors
|
|
371
|
-
},
|
|
372
|
-
default:
|
|
371
|
+
}, he({
|
|
372
|
+
default: D(() => [
|
|
373
373
|
te(g("input", Y(c.$attrs, {
|
|
374
374
|
ref_key: "inputRef",
|
|
375
375
|
ref: n,
|
|
@@ -389,15 +389,15 @@ const Ye = /* @__PURE__ */ he(to, [["render", ao], ["__scopeId", "data-v-a21dc5d
|
|
|
389
389
|
}, [
|
|
390
390
|
c.$slots.default ? {
|
|
391
391
|
name: "label",
|
|
392
|
-
fn:
|
|
393
|
-
|
|
392
|
+
fn: D(() => [
|
|
393
|
+
E(c.$slots, "default")
|
|
394
394
|
]),
|
|
395
395
|
key: "0"
|
|
396
396
|
} : void 0,
|
|
397
397
|
c.$slots["help-text"] ? {
|
|
398
398
|
name: "helpText",
|
|
399
|
-
fn:
|
|
400
|
-
|
|
399
|
+
fn: D(() => [
|
|
400
|
+
E(c.$slots, "help-text")
|
|
401
401
|
]),
|
|
402
402
|
key: "1"
|
|
403
403
|
} : void 0
|
|
@@ -469,10 +469,10 @@ const ko = /* @__PURE__ */ g("div", { tabindex: "0" }, null, -1), Co = {
|
|
|
469
469
|
r.key === "Escape" && d();
|
|
470
470
|
}
|
|
471
471
|
return (r, a) => (u(), b(W, null, [
|
|
472
|
-
|
|
472
|
+
E(r.$slots, "trigger", ie(pe({ open: c }))),
|
|
473
473
|
(u(), P(kl, { to: "body" }, [
|
|
474
474
|
k(Ie, { name: "fade" }, {
|
|
475
|
-
default:
|
|
475
|
+
default: D(() => [
|
|
476
476
|
te(g("div", {
|
|
477
477
|
ref_key: "clUiModal",
|
|
478
478
|
ref: s,
|
|
@@ -488,32 +488,32 @@ const ko = /* @__PURE__ */ g("div", { tabindex: "0" }, null, -1), Co = {
|
|
|
488
488
|
}]
|
|
489
489
|
}), [
|
|
490
490
|
te(g("div", {
|
|
491
|
-
class:
|
|
491
|
+
class: A(["cl-absolute cl-cursor-pointer cl-right-4 cl-top-4 cl-transition-colors cl-w-3", {
|
|
492
492
|
"cl-text-white hover:cl-text-off-white": r.headerColour === "secondary",
|
|
493
493
|
"cl-text-secondary hover:cl-text-off-white": r.headerColour === "primary",
|
|
494
494
|
"cl-text-black hover:cl-text-grey-7": r.headerColour === "white"
|
|
495
495
|
}]),
|
|
496
496
|
tabindex: 0,
|
|
497
|
-
onKeypress:
|
|
497
|
+
onKeypress: we(d, ["enter"]),
|
|
498
498
|
onClick: d
|
|
499
499
|
}, [
|
|
500
|
-
k(m(
|
|
500
|
+
k(m(x), { icon: "ph:x" })
|
|
501
501
|
], 34), [
|
|
502
502
|
[ue, !r.preventClose]
|
|
503
503
|
]),
|
|
504
504
|
g("div", {
|
|
505
|
-
class:
|
|
505
|
+
class: A(["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", {
|
|
506
506
|
"cl-bg-secondary-default cl-text-white": r.headerColour === "secondary",
|
|
507
507
|
"cl-bg-primary-default cl-text-secondary": r.headerColour === "primary"
|
|
508
508
|
}])
|
|
509
509
|
}, [
|
|
510
|
-
|
|
510
|
+
E(r.$slots, "title"),
|
|
511
511
|
r.headerColour === "white" ? (u(), b("hr", Co)) : L("", !0)
|
|
512
512
|
], 2),
|
|
513
513
|
g("div", To, [
|
|
514
|
-
|
|
514
|
+
E(r.$slots, "default", ie(pe({ close: d })))
|
|
515
515
|
]),
|
|
516
|
-
|
|
516
|
+
E(r.$slots, "footer", ie(pe({ close: d })))
|
|
517
517
|
], 16)
|
|
518
518
|
], 512), [
|
|
519
519
|
[ue, e.value]
|
|
@@ -539,7 +539,7 @@ const ko = /* @__PURE__ */ g("div", { tabindex: "0" }, null, -1), Co = {
|
|
|
539
539
|
return (t, l) => (u(), b("div", So, [
|
|
540
540
|
t.additionalText !== "" ? (u(), b("div", qo, M(t.additionalText), 1)) : L("", !0),
|
|
541
541
|
g("div", {
|
|
542
|
-
class:
|
|
542
|
+
class: A({
|
|
543
543
|
"cl-w-1/2": t.additionalText !== "",
|
|
544
544
|
"cl-w-full": t.additionalText === ""
|
|
545
545
|
})
|
|
@@ -548,7 +548,7 @@ const ko = /* @__PURE__ */ g("div", { tabindex: "0" }, null, -1), Co = {
|
|
|
548
548
|
class: "cl-cursor-pointer cl-float-right",
|
|
549
549
|
onMousedown: l[0] || (l[0] = (e) => t.$emit("clear-object"))
|
|
550
550
|
}, [
|
|
551
|
-
k(m(
|
|
551
|
+
k(m(x), {
|
|
552
552
|
class: "cl-mt-1 cl-transition-colors hover:cl-text-link-default",
|
|
553
553
|
icon: "ph:x"
|
|
554
554
|
})
|
|
@@ -591,7 +591,7 @@ const ko = /* @__PURE__ */ g("div", { tabindex: "0" }, null, -1), Co = {
|
|
|
591
591
|
return ee(() => l.selectedIndex, () => r()), (a, i) => {
|
|
592
592
|
var f, y;
|
|
593
593
|
return u(), b("div", {
|
|
594
|
-
class:
|
|
594
|
+
class: A(["cl-cursor-pointer cl-duration-75 cl-flex cl-p-1 cl-text-left cl-transition-colors", {
|
|
595
595
|
"cl-bg-white": c.value === !1,
|
|
596
596
|
"cl-bg-link-light cl-text-white cl-opacity-90": c.value && a.isCreateNewOption === !1,
|
|
597
597
|
"cl-bg-primary-default cl-text-black cl-opacity-90": c.value && a.isCreateNewOption
|
|
@@ -602,13 +602,13 @@ const ko = /* @__PURE__ */ g("div", { tabindex: "0" }, null, -1), Co = {
|
|
|
602
602
|
}, [
|
|
603
603
|
a.option !== null && ((f = a.option) == null ? void 0 : f.parentId) !== 0 && ((y = a.option) == null ? void 0 : y.parentId) !== void 0 ? (u(), b("div", Oo, M(n.value), 1)) : L("", !0),
|
|
604
604
|
g("div", {
|
|
605
|
-
class:
|
|
605
|
+
class: A({
|
|
606
606
|
"cl-w-1/2": n.value !== "",
|
|
607
607
|
"cl-w-full": n.value === ""
|
|
608
608
|
})
|
|
609
609
|
}, M(s.value), 3),
|
|
610
610
|
te(g("div", Do, [
|
|
611
|
-
k(m(
|
|
611
|
+
k(m(x), {
|
|
612
612
|
class: "cl-transition-colors",
|
|
613
613
|
icon: "ph:plus"
|
|
614
614
|
})
|
|
@@ -661,11 +661,11 @@ const ko = /* @__PURE__ */ g("div", { tabindex: "0" }, null, -1), Co = {
|
|
|
661
661
|
}
|
|
662
662
|
function C(R) {
|
|
663
663
|
if (R.key === "Tab" && R.shiftKey === !0) {
|
|
664
|
-
const
|
|
664
|
+
const J = document.getElementsByTagName("input");
|
|
665
665
|
let de = -1;
|
|
666
|
-
for (let I = 0; I <
|
|
667
|
-
|
|
668
|
-
de >= 0 && (
|
|
666
|
+
for (let I = 0; I < J.length; I++)
|
|
667
|
+
J[I] === R.target && (de = I - 1);
|
|
668
|
+
de >= 0 && (J[de].focus(), y());
|
|
669
669
|
}
|
|
670
670
|
}
|
|
671
671
|
function B() {
|
|
@@ -681,8 +681,8 @@ const ko = /* @__PURE__ */ g("div", { tabindex: "0" }, null, -1), Co = {
|
|
|
681
681
|
}
|
|
682
682
|
function X() {
|
|
683
683
|
l.isVisible === !0 && (n.value = "", a(), Ue(() => {
|
|
684
|
-
var R,
|
|
685
|
-
return (
|
|
684
|
+
var R, J;
|
|
685
|
+
return (J = (R = r.value) == null ? void 0 : R.querySelector("input")) == null ? void 0 : J.focus();
|
|
686
686
|
}));
|
|
687
687
|
}
|
|
688
688
|
return ee(() => l.results, () => q()), ee(() => l.errorMessage, () => q()), ee(() => l.isVisible, () => X()), We(() => {
|
|
@@ -691,19 +691,19 @@ const ko = /* @__PURE__ */ g("div", { tabindex: "0" }, null, -1), Co = {
|
|
|
691
691
|
}), il(() => {
|
|
692
692
|
var R;
|
|
693
693
|
return (R = r.value) == null ? void 0 : R.removeEventListener("keydown", C);
|
|
694
|
-
}), (R,
|
|
694
|
+
}), (R, J) => {
|
|
695
695
|
var de;
|
|
696
696
|
return u(), b("div", {
|
|
697
697
|
ref_key: "container",
|
|
698
698
|
ref: r,
|
|
699
|
-
class:
|
|
699
|
+
class: A(["cl-absolute cl-bg-white cl-border cl-border-collapse cl-border-grey-0 cl-h-52 cl-mt-2 cl-overflow-y-auto cl-overscroll-y-none cl-rounded cl-text-sm cl-w-full cl-z-20", {
|
|
700
700
|
"cl-overflow-y-hidden": R.loading
|
|
701
701
|
}]),
|
|
702
702
|
onKeydown: [
|
|
703
|
-
|
|
704
|
-
|
|
703
|
+
J[2] || (J[2] = we(ae((I) => v(p.value), ["prevent", "stop"]), ["up"])),
|
|
704
|
+
J[3] || (J[3] = we(ae((I) => S(p.value), ["prevent", "stop"]), ["down"]))
|
|
705
705
|
],
|
|
706
|
-
onKeyup:
|
|
706
|
+
onKeyup: we(ae(T, ["prevent", "stop"]), ["enter"])
|
|
707
707
|
}, [
|
|
708
708
|
R.loading ? (u(), b("div", Ao, [
|
|
709
709
|
k(Ye)
|
|
@@ -713,14 +713,14 @@ const ko = /* @__PURE__ */ g("div", { tabindex: "0" }, null, -1), Co = {
|
|
|
713
713
|
k(Re, {
|
|
714
714
|
id: `cl-ui-combo-box-search-input-${R.objectType}`,
|
|
715
715
|
modelValue: n.value,
|
|
716
|
-
"onUpdate:modelValue":
|
|
716
|
+
"onUpdate:modelValue": J[0] || (J[0] = (I) => n.value = I),
|
|
717
717
|
class: "cl-box-border cl-font-light cl-mb-2 cl-p-2 cl-placeholder-grey-3 cl-text-sm",
|
|
718
718
|
placeholder: R.searchHint,
|
|
719
719
|
type: "search",
|
|
720
720
|
onKeyup: a,
|
|
721
721
|
onBlur: y
|
|
722
722
|
}, {
|
|
723
|
-
default:
|
|
723
|
+
default: D(() => [
|
|
724
724
|
Mo
|
|
725
725
|
]),
|
|
726
726
|
_: 1
|
|
@@ -731,7 +731,7 @@ const ko = /* @__PURE__ */ g("div", { tabindex: "0" }, null, -1), Co = {
|
|
|
731
731
|
key: 1,
|
|
732
732
|
"show-clear-button": R.canClearSelectedObject,
|
|
733
733
|
text: R.currentObjectName,
|
|
734
|
-
onClearObject:
|
|
734
|
+
onClearObject: J[1] || (J[1] = (I) => R.$emit("clear-object"))
|
|
735
735
|
}, null, 8, ["show-clear-button", "text"])) : L("", !0),
|
|
736
736
|
R.objectParentType !== "" && R.results !== void 0 && R.results.length > 0 && R.errorMessage === "" ? (u(), P(Xe, {
|
|
737
737
|
key: 2,
|
|
@@ -759,7 +759,7 @@ const ko = /* @__PURE__ */ g("div", { tabindex: "0" }, null, -1), Co = {
|
|
|
759
759
|
onOptionHighlighted: F
|
|
760
760
|
}, null, 8, ["text", "selected-index"])) : L("", !0),
|
|
761
761
|
R.errorMessage === "" && R.results !== null ? (u(), b("div", No, [
|
|
762
|
-
(u(!0), b(W, null,
|
|
762
|
+
(u(!0), b(W, null, _(R.results, (I, O) => (u(), P(Ml, {
|
|
763
763
|
key: O,
|
|
764
764
|
option: I,
|
|
765
765
|
index: O,
|
|
@@ -810,7 +810,7 @@ const ko = /* @__PURE__ */ g("div", { tabindex: "0" }, null, -1), Co = {
|
|
|
810
810
|
function R(w) {
|
|
811
811
|
T.value = w, s("search-parent", w);
|
|
812
812
|
}
|
|
813
|
-
function
|
|
813
|
+
function J() {
|
|
814
814
|
f.value = null, F(!1);
|
|
815
815
|
}
|
|
816
816
|
function de(w) {
|
|
@@ -881,11 +881,11 @@ const ko = /* @__PURE__ */ g("div", { tabindex: "0" }, null, -1), Co = {
|
|
|
881
881
|
let w = "";
|
|
882
882
|
return f.value && (f.value.parentName ? w = f.value.parentName + "; " + f.value.name : w = f.value.name), w;
|
|
883
883
|
}
|
|
884
|
-
function
|
|
884
|
+
function V() {
|
|
885
885
|
let w = !0;
|
|
886
886
|
v.value === "" && (w = !1), e.objectParentType !== "" && y.value === null && (w = !1), B.value = w;
|
|
887
887
|
}
|
|
888
|
-
ee(() => e.objectCreatedResponse, () => me()), ee(() => e.parentObjectCreatedResponse, () => ge()), ee(() => v.value, () =>
|
|
888
|
+
ee(() => e.objectCreatedResponse, () => me()), ee(() => e.parentObjectCreatedResponse, () => ge()), ee(() => v.value, () => V()), ee(() => y.value, () => V());
|
|
889
889
|
const H = N();
|
|
890
890
|
return Qe(H, () => i.value ? F(!1) : ""), t({
|
|
891
891
|
focus() {
|
|
@@ -903,7 +903,7 @@ const ko = /* @__PURE__ */ g("div", { tabindex: "0" }, null, -1), Co = {
|
|
|
903
903
|
id: m(d),
|
|
904
904
|
modelValue: S.value,
|
|
905
905
|
"onUpdate:modelValue": U[0] || (U[0] = (h) => S.value = h),
|
|
906
|
-
class:
|
|
906
|
+
class: A(["cl-box-border cl-font-light cl-mb-0 cl-p-2 cl-placeholder-grey-3 cl-rounded-r-none cl-text-sm", {
|
|
907
907
|
"cl-cursor-pointer": w.disabled === !1
|
|
908
908
|
}]),
|
|
909
909
|
placeholder: p.value,
|
|
@@ -912,7 +912,7 @@ const ko = /* @__PURE__ */ g("div", { tabindex: "0" }, null, -1), Co = {
|
|
|
912
912
|
F(), w.$emit("focus");
|
|
913
913
|
})
|
|
914
914
|
}, {
|
|
915
|
-
default:
|
|
915
|
+
default: D(() => [
|
|
916
916
|
Lo
|
|
917
917
|
]),
|
|
918
918
|
_: 1
|
|
@@ -921,7 +921,7 @@ const ko = /* @__PURE__ */ g("div", { tabindex: "0" }, null, -1), Co = {
|
|
|
921
921
|
te(g("div", Bo, [
|
|
922
922
|
g("div", Fo, [
|
|
923
923
|
se(M(m(a)("comboBox.required")) + " ", 1),
|
|
924
|
-
k(m(
|
|
924
|
+
k(m(x), {
|
|
925
925
|
class: "cl-ml-1 cl-mt-1",
|
|
926
926
|
icon: "ph:warning"
|
|
927
927
|
})
|
|
@@ -931,37 +931,37 @@ const ko = /* @__PURE__ */ g("div", { tabindex: "0" }, null, -1), Co = {
|
|
|
931
931
|
]),
|
|
932
932
|
i.value ? (u(), b("div", {
|
|
933
933
|
key: 1,
|
|
934
|
-
class:
|
|
934
|
+
class: A(["cl-border cl-border-grey-2 cl-border-l-0 cl-float-right cl-rounded cl-rounded-l-none cl-text-grey-3 cl-transition-colors cl-w-[27px]", {
|
|
935
935
|
"cl-cursor-default cl-bg-off-white": w.disabled,
|
|
936
936
|
"cl-cursor-pointer hover:cl-bg-link-light hover:cl-opacity-90 hover:cl-text-white cl-bg-white": w.disabled === !1
|
|
937
937
|
}]),
|
|
938
938
|
disabled: w.disabled,
|
|
939
939
|
onClick: U[3] || (U[3] = (h) => F(!1))
|
|
940
940
|
}, [
|
|
941
|
-
k(m(
|
|
941
|
+
k(m(x), {
|
|
942
942
|
icon: "ph:caret-up-bold",
|
|
943
943
|
class: "cl-ml-[4px] cl-mt-[12px]"
|
|
944
944
|
})
|
|
945
945
|
], 10, Po)) : (u(), b("div", {
|
|
946
946
|
key: 0,
|
|
947
|
-
class:
|
|
947
|
+
class: A(["cl-border cl-border-grey-2 cl-border-l-0 cl-float-right cl-rounded cl-rounded-l-none cl-text-grey-3 cl-transition-colors cl-w-[27px]", {
|
|
948
948
|
"cl-cursor-default cl-bg-off-white": w.disabled,
|
|
949
949
|
"cl-cursor-pointer hover:cl-bg-link-light hover:cl-opacity-90 hover:cl-text-white cl-bg-white": w.disabled === !1
|
|
950
950
|
}]),
|
|
951
951
|
disabled: w.disabled,
|
|
952
952
|
onClick: U[2] || (U[2] = (h) => F(!0))
|
|
953
953
|
}, [
|
|
954
|
-
k(m(
|
|
954
|
+
k(m(x), {
|
|
955
955
|
icon: "ph:caret-down-bold",
|
|
956
956
|
class: "cl-ml-[4px] cl-mt-[12px]"
|
|
957
957
|
})
|
|
958
958
|
], 10, jo))
|
|
959
959
|
]),
|
|
960
960
|
k(Xl, { size: "small" }, {
|
|
961
|
-
title:
|
|
961
|
+
title: D(() => [
|
|
962
962
|
se(M(m(a)("comboBox.createTitle", { object: w.objectType })), 1)
|
|
963
963
|
]),
|
|
964
|
-
trigger:
|
|
964
|
+
trigger: D(({ open: h }) => [
|
|
965
965
|
te(k(Ro, {
|
|
966
966
|
"can-create-new-object": w.canCreateNewObject,
|
|
967
967
|
"can-clear-selected-object": w.canClearSelectedObject,
|
|
@@ -972,20 +972,20 @@ const ko = /* @__PURE__ */ g("div", { tabindex: "0" }, null, -1), Co = {
|
|
|
972
972
|
"error-message": w.errorMessage,
|
|
973
973
|
"current-object-name": S.value,
|
|
974
974
|
"is-visible": i.value,
|
|
975
|
-
class:
|
|
975
|
+
class: A({
|
|
976
976
|
"cl-bottom-full": q.value
|
|
977
977
|
}),
|
|
978
978
|
"search-hint": r.value,
|
|
979
979
|
onCreateObject: () => w.objectParentType === "" && w.skipObjectCreationModal === !0 ? O() : h(),
|
|
980
980
|
onSelectObject: de,
|
|
981
|
-
onClearObject:
|
|
981
|
+
onClearObject: J,
|
|
982
982
|
onSearch: X,
|
|
983
983
|
onHideDropdown: U[4] || (U[4] = (z) => F(!1))
|
|
984
984
|
}, null, 8, ["can-create-new-object", "can-clear-selected-object", "loading", "results", "object-type", "object-parent-type", "error-message", "current-object-name", "is-visible", "class", "search-hint", "onCreateObject"]), [
|
|
985
985
|
[ue, i.value]
|
|
986
986
|
])
|
|
987
987
|
]),
|
|
988
|
-
footer:
|
|
988
|
+
footer: D(({ close: h }) => [
|
|
989
989
|
g("div", Ho, [
|
|
990
990
|
k(ke, {
|
|
991
991
|
class: "cl-mr-3",
|
|
@@ -993,7 +993,7 @@ const ko = /* @__PURE__ */ g("div", { tabindex: "0" }, null, -1), Co = {
|
|
|
993
993
|
size: "small",
|
|
994
994
|
onClick: h
|
|
995
995
|
}, {
|
|
996
|
-
default:
|
|
996
|
+
default: D(() => [
|
|
997
997
|
se(M(m(a)("comboBox.cancel")), 1)
|
|
998
998
|
]),
|
|
999
999
|
_: 2
|
|
@@ -1006,14 +1006,14 @@ const ko = /* @__PURE__ */ g("div", { tabindex: "0" }, null, -1), Co = {
|
|
|
1006
1006
|
O(), h();
|
|
1007
1007
|
}
|
|
1008
1008
|
}, {
|
|
1009
|
-
default:
|
|
1009
|
+
default: D(() => [
|
|
1010
1010
|
se(M(m(a)("comboBox.create")), 1)
|
|
1011
1011
|
]),
|
|
1012
1012
|
_: 2
|
|
1013
1013
|
}, 1032, ["disabled", "onClick"])
|
|
1014
1014
|
])
|
|
1015
1015
|
]),
|
|
1016
|
-
default:
|
|
1016
|
+
default: D(() => [
|
|
1017
1017
|
g("div", Go, [
|
|
1018
1018
|
w.objectParentType ? (u(), P(Q, {
|
|
1019
1019
|
key: 0,
|
|
@@ -1035,7 +1035,7 @@ const ko = /* @__PURE__ */ g("div", { tabindex: "0" }, null, -1), Co = {
|
|
|
1035
1035
|
"onUpdate:modelValue": U[6] || (U[6] = (h) => v.value = h),
|
|
1036
1036
|
class: "cl-box-border cl-font-light cl-mb-2 cl-p-2 cl-placeholder-grey-3 cl-text-sm"
|
|
1037
1037
|
}, {
|
|
1038
|
-
default:
|
|
1038
|
+
default: D(() => [
|
|
1039
1039
|
se(M(m(a)("comboBox.createProperty")), 1)
|
|
1040
1040
|
]),
|
|
1041
1041
|
_: 1
|
|
@@ -1054,37 +1054,37 @@ function Wo(o) {
|
|
|
1054
1054
|
function Ko(o) {
|
|
1055
1055
|
return typeof o.name == "string";
|
|
1056
1056
|
}
|
|
1057
|
-
const Qo = {}, Yo = { class: "cl-flex cl-flex-wrap cl-left-0 cl-mt-4 cl-w-full" },
|
|
1057
|
+
const Qo = {}, Yo = { class: "cl-flex cl-flex-wrap cl-left-0 cl-mt-4 cl-w-full" }, xo = {
|
|
1058
1058
|
key: 0,
|
|
1059
1059
|
class: "cl-w-full"
|
|
1060
|
-
},
|
|
1060
|
+
}, Jo = {
|
|
1061
1061
|
key: 1,
|
|
1062
1062
|
class: "cl-leading-10 cl-text-sm cl-w-full"
|
|
1063
|
-
},
|
|
1063
|
+
}, _o = { class: "cl-float-left" }, Xo = { class: "cl-float-right" };
|
|
1064
1064
|
function ea(o, t) {
|
|
1065
1065
|
return u(), b("div", Yo, [
|
|
1066
|
-
o.$slots.default ? (u(), b("div",
|
|
1067
|
-
|
|
1066
|
+
o.$slots.default ? (u(), b("div", xo, [
|
|
1067
|
+
E(o.$slots, "default")
|
|
1068
1068
|
])) : L("", !0),
|
|
1069
|
-
o.$slots.left || o.$slots.right ? (u(), b("div",
|
|
1070
|
-
g("span",
|
|
1071
|
-
|
|
1069
|
+
o.$slots.left || o.$slots.right ? (u(), b("div", Jo, [
|
|
1070
|
+
g("span", _o, [
|
|
1071
|
+
E(o.$slots, "left")
|
|
1072
1072
|
]),
|
|
1073
1073
|
g("span", Xo, [
|
|
1074
|
-
|
|
1074
|
+
E(o.$slots, "right")
|
|
1075
1075
|
])
|
|
1076
1076
|
])) : L("", !0)
|
|
1077
1077
|
]);
|
|
1078
1078
|
}
|
|
1079
|
-
const la = /* @__PURE__ */
|
|
1079
|
+
const la = /* @__PURE__ */ ye(Qo, [["render", ea]]), ul = Symbol(), ta = {}, oa = { class: "cl-animate-pulse cl-bg-off-white cl-h-[33px] cl-px-20 cl-rounded-md" };
|
|
1080
1080
|
function aa(o, t) {
|
|
1081
1081
|
return u(), b("div", oa);
|
|
1082
1082
|
}
|
|
1083
|
-
const na = /* @__PURE__ */
|
|
1083
|
+
const na = /* @__PURE__ */ ye(ta, [["render", aa]]), sa = {}, ra = { class: "cl-animate-pulse cl-bg-off-white cl-h-8 cl-rounded-md" };
|
|
1084
1084
|
function ia(o, t) {
|
|
1085
1085
|
return u(), b("div", ra);
|
|
1086
1086
|
}
|
|
1087
|
-
const Tl = /* @__PURE__ */
|
|
1087
|
+
const Tl = /* @__PURE__ */ ye(sa, [["render", ia]]), yl = /* @__PURE__ */ G({
|
|
1088
1088
|
inheritAttrs: !1,
|
|
1089
1089
|
__name: "cl-ui-skeleton-text",
|
|
1090
1090
|
props: {
|
|
@@ -1092,12 +1092,12 @@ const Tl = /* @__PURE__ */ he(sa, [["render", ia]]), yl = /* @__PURE__ */ G({
|
|
|
1092
1092
|
rows: { default: 1 }
|
|
1093
1093
|
},
|
|
1094
1094
|
setup(o) {
|
|
1095
|
-
return (t, l) => (u(!0), b(W, null,
|
|
1096
|
-
(u(!0), b(W, null,
|
|
1095
|
+
return (t, l) => (u(!0), b(W, null, _(t.rows, (e) => (u(), b("div", Y({ key: e }, t.$attrs, { class: "cl-flex cl-gap-1 cl-items-start" }), [
|
|
1096
|
+
(u(!0), b(W, null, _(t.words, (s) => (u(), b("span", {
|
|
1097
1097
|
key: s,
|
|
1098
1098
|
class: "cl-animate-pulse cl-bg-off-white cl-rounded-full cl-w-16"
|
|
1099
1099
|
}, [
|
|
1100
|
-
|
|
1100
|
+
E(t.$slots, "default", {}, () => [
|
|
1101
1101
|
se(" ")
|
|
1102
1102
|
])
|
|
1103
1103
|
]))), 128))
|
|
@@ -1139,13 +1139,13 @@ const ca = {
|
|
|
1139
1139
|
setup(o) {
|
|
1140
1140
|
const t = o, { t: l } = ce(), e = $(() => t.request.filters.some((n) => n.filterValue !== "")), s = cl("cl-ui-grid-id") ?? "cl-ui-grid-filter";
|
|
1141
1141
|
return (n, c) => n.initialLoad && (n.$slots["additional-grid-actions"] || m(ml)(n.columns) || m(Nl)(n.columns)) ? (u(), b("div", ca, [
|
|
1142
|
-
(u(), b(W, null,
|
|
1142
|
+
(u(), b(W, null, _(2, (d) => k(m(na), {
|
|
1143
1143
|
key: d,
|
|
1144
1144
|
class: "cl-flex-1 lg:cl-flex-initial"
|
|
1145
1145
|
})), 64))
|
|
1146
1146
|
])) : (u(), b("div", ua, [
|
|
1147
1147
|
g("div", {
|
|
1148
|
-
class:
|
|
1148
|
+
class: A(["cl-mb-2 cl-text-sm lg:cl-hidden", {
|
|
1149
1149
|
"cl-hidden": n.options.hideGridMobileView
|
|
1150
1150
|
}])
|
|
1151
1151
|
}, [
|
|
@@ -1153,7 +1153,7 @@ const ca = {
|
|
|
1153
1153
|
], 2),
|
|
1154
1154
|
g("div", da, [
|
|
1155
1155
|
g("div", pa, [
|
|
1156
|
-
|
|
1156
|
+
E(n.$slots, "additional-grid-actions", ie(pe({
|
|
1157
1157
|
loading: n.loading,
|
|
1158
1158
|
editMode: n.editMode
|
|
1159
1159
|
})))
|
|
@@ -1167,7 +1167,7 @@ const ca = {
|
|
|
1167
1167
|
disabled: n.loading,
|
|
1168
1168
|
onClick: c[0] || (c[0] = ae((d) => n.$emit("update:edit-mode", !n.editMode), ["prevent"]))
|
|
1169
1169
|
}, {
|
|
1170
|
-
default:
|
|
1170
|
+
default: D(() => [
|
|
1171
1171
|
n.editMode ? (u(), b(W, { key: 0 }, [
|
|
1172
1172
|
se(M(m(l)("grid.finishEditing")), 1)
|
|
1173
1173
|
], 64)) : (u(), b(W, { key: 1 }, [
|
|
@@ -1177,11 +1177,11 @@ const ca = {
|
|
|
1177
1177
|
_: 1
|
|
1178
1178
|
}, 8, ["disabled"])) : L("", !0),
|
|
1179
1179
|
n.options.hideViewManager === !1 ? (u(), b("div", ma, [
|
|
1180
|
-
|
|
1180
|
+
E(n.$slots, "view-manager")
|
|
1181
1181
|
])) : L("", !0),
|
|
1182
1182
|
m(ml)(n.columns) || m(Nl)(n.columns) ? (u(), b(W, { key: 2 }, [
|
|
1183
1183
|
g("div", {
|
|
1184
|
-
class:
|
|
1184
|
+
class: A(["cl-block cl-flex-1 lg:cl-flex-none lg:cl-hidden", {
|
|
1185
1185
|
"cl-hidden": n.options.hideGridMobileView
|
|
1186
1186
|
}])
|
|
1187
1187
|
}, [
|
|
@@ -1191,7 +1191,7 @@ const ca = {
|
|
|
1191
1191
|
disabled: n.loading,
|
|
1192
1192
|
onClick: c[1] || (c[1] = ae((d) => n.$emit("update:filterPanelOpen", !n.filterPanelOpen), ["prevent"]))
|
|
1193
1193
|
}, {
|
|
1194
|
-
default:
|
|
1194
|
+
default: D(() => [
|
|
1195
1195
|
se(M(m(l)("grid.modifyFilters")), 1)
|
|
1196
1196
|
]),
|
|
1197
1197
|
_: 1
|
|
@@ -1206,7 +1206,7 @@ const ca = {
|
|
|
1206
1206
|
class: "cl-basis-full lg:cl-flex-none",
|
|
1207
1207
|
onClick: c[2] || (c[2] = ae((d) => n.$emit("clear-filters"), ["prevent"]))
|
|
1208
1208
|
}, {
|
|
1209
|
-
default:
|
|
1209
|
+
default: D(() => [
|
|
1210
1210
|
se(M(m(l)("grid.clearFilters")), 1)
|
|
1211
1211
|
]),
|
|
1212
1212
|
_: 1
|
|
@@ -1242,8 +1242,8 @@ const ca = {
|
|
|
1242
1242
|
"show-required-asterisk": c.required,
|
|
1243
1243
|
errors: c.errors,
|
|
1244
1244
|
"label-position": "right"
|
|
1245
|
-
},
|
|
1246
|
-
default:
|
|
1245
|
+
}, he({
|
|
1246
|
+
default: D(() => [
|
|
1247
1247
|
te(g("input", Y({
|
|
1248
1248
|
ref_key: "inputRef",
|
|
1249
1249
|
ref: n
|
|
@@ -1253,7 +1253,7 @@ const ca = {
|
|
|
1253
1253
|
type: "checkbox",
|
|
1254
1254
|
required: c.required,
|
|
1255
1255
|
disabled: c.disabled,
|
|
1256
|
-
onKeydown: d[1] || (d[1] =
|
|
1256
|
+
onKeydown: d[1] || (d[1] = we(ae((p) => {
|
|
1257
1257
|
e.value = !e.value;
|
|
1258
1258
|
}, ["stop", "prevent"]), ["enter"])),
|
|
1259
1259
|
onFocus: d[2] || (d[2] = (p) => s("focus")),
|
|
@@ -1266,25 +1266,25 @@ const ca = {
|
|
|
1266
1266
|
}, [
|
|
1267
1267
|
c.$slots.default ? {
|
|
1268
1268
|
name: "label",
|
|
1269
|
-
fn:
|
|
1269
|
+
fn: D(() => [
|
|
1270
1270
|
g("label", {
|
|
1271
1271
|
for: c.$attrs.id ? c.$attrs.id.toString() : ""
|
|
1272
1272
|
}, [
|
|
1273
|
-
|
|
1273
|
+
E(c.$slots, "default", {}, void 0, !0)
|
|
1274
1274
|
], 8, va)
|
|
1275
1275
|
]),
|
|
1276
1276
|
key: "0"
|
|
1277
1277
|
} : void 0,
|
|
1278
1278
|
c.$slots["help-text"] ? {
|
|
1279
1279
|
name: "helpText",
|
|
1280
|
-
fn:
|
|
1281
|
-
|
|
1280
|
+
fn: D(() => [
|
|
1281
|
+
E(c.$slots, "help-text", {}, void 0, !0)
|
|
1282
1282
|
]),
|
|
1283
1283
|
key: "1"
|
|
1284
1284
|
} : void 0
|
|
1285
1285
|
]), 1032, ["show-required-asterisk", "errors"]));
|
|
1286
1286
|
}
|
|
1287
|
-
}), dl = /* @__PURE__ */
|
|
1287
|
+
}), dl = /* @__PURE__ */ ye(ha, [["__scopeId", "data-v-96a278cf"]]);
|
|
1288
1288
|
var le = /* @__PURE__ */ ((o) => (o.CURRENCY = "currency", o.PERCENTAGE = "percentage", o.INTEGER = "integer", o.DECIMAL = "decimal", o.MULTIPLIER = "multiplier", o))(le || {}), ne = /* @__PURE__ */ ((o) => (o.SHORT_DATE = "short-date", o.SHORT_DATETIME = "short-datetime", o.DATE = "date", o.DATETIME = "datetime", o.LONG_DATE = "long-date", o.LONG_DATETIME = "long-datetime", o.TIME = "time", o.MONTH_YEAR = "month-year", o))(ne || {});
|
|
1289
1289
|
const ya = {
|
|
1290
1290
|
"en-GB": {
|
|
@@ -1501,7 +1501,7 @@ function Ee(o, t, l) {
|
|
|
1501
1501
|
const e = Fe(ql(t), l);
|
|
1502
1502
|
let s = Ul(o, e) ?? "";
|
|
1503
1503
|
if (t === "currency-without-symbol") {
|
|
1504
|
-
const n =
|
|
1504
|
+
const n = xe(e);
|
|
1505
1505
|
if (n) {
|
|
1506
1506
|
const c = Ve(n, 0, "unit", "currency", "literal");
|
|
1507
1507
|
s = Ne(s, c, "");
|
|
@@ -1521,7 +1521,7 @@ function Sl(o, t) {
|
|
|
1521
1521
|
return fl(o) ? Fe(pl, t) : Fe(ql(o), t);
|
|
1522
1522
|
}
|
|
1523
1523
|
function Ta(o, t, l) {
|
|
1524
|
-
const e =
|
|
1524
|
+
const e = xe(l);
|
|
1525
1525
|
return !!e && (o.includes(Ve(e, 10000.11111, t)[0]) || o.includes(Ve(e, -10000.11111, t)[0]));
|
|
1526
1526
|
}
|
|
1527
1527
|
function Sa(o, t) {
|
|
@@ -1544,7 +1544,7 @@ function Sa(o, t) {
|
|
|
1544
1544
|
function Rl(o, t, l) {
|
|
1545
1545
|
if (!o)
|
|
1546
1546
|
return NaN;
|
|
1547
|
-
const e = Fe(t, l), s =
|
|
1547
|
+
const e = Fe(t, l), s = xe(e);
|
|
1548
1548
|
if (s === null)
|
|
1549
1549
|
return NaN;
|
|
1550
1550
|
const n = [
|
|
@@ -1575,9 +1575,9 @@ function Ve(o, t, ...l) {
|
|
|
1575
1575
|
}
|
|
1576
1576
|
function Ul(o, t) {
|
|
1577
1577
|
var l;
|
|
1578
|
-
return isNaN(o) ? "" : ((l =
|
|
1578
|
+
return isNaN(o) ? "" : ((l = xe(t)) == null ? void 0 : l.format(o)) ?? null;
|
|
1579
1579
|
}
|
|
1580
|
-
function
|
|
1580
|
+
function xe(o) {
|
|
1581
1581
|
try {
|
|
1582
1582
|
return new Intl.NumberFormat(o.locale, o);
|
|
1583
1583
|
} catch (t) {
|
|
@@ -1613,7 +1613,7 @@ function qa(o) {
|
|
|
1613
1613
|
return !fl(o) && o !== "currency-without-symbol";
|
|
1614
1614
|
}
|
|
1615
1615
|
function Oa(o, t) {
|
|
1616
|
-
const l = Fe(pl, t), e =
|
|
1616
|
+
const l = Fe(pl, t), e = xe(l);
|
|
1617
1617
|
if (e === null)
|
|
1618
1618
|
return o;
|
|
1619
1619
|
const s = Ve(e, 10000.11111, "group");
|
|
@@ -1631,7 +1631,7 @@ function Da(o) {
|
|
|
1631
1631
|
from: "@iconify/vue"
|
|
1632
1632
|
};
|
|
1633
1633
|
}
|
|
1634
|
-
function
|
|
1634
|
+
function xc() {
|
|
1635
1635
|
return Da;
|
|
1636
1636
|
}
|
|
1637
1637
|
const { t: Oe } = Te.global;
|
|
@@ -1817,7 +1817,7 @@ const Ma = {
|
|
|
1817
1817
|
}
|
|
1818
1818
|
function c() {
|
|
1819
1819
|
let p = t.data[t.column.field];
|
|
1820
|
-
return t.column.maxLength && (p = p.trimToLength(t.column.maxLength, t.column.format !== void 0 ? t.column.format === "ellipsis" : !1)), t.searchValue && t.column.searchable && (p = Ot(p, t.searchValue.split(" "))), t.column.format === "wrap-text" && (p = `<span class="cl-break-words cl-whitespace-pre-wrap">${p}</span>`), p;
|
|
1820
|
+
return p ? (t.column.maxLength && (p = p.trimToLength(t.column.maxLength, t.column.format !== void 0 ? t.column.format === "ellipsis" : !1)), t.searchValue && t.column.searchable && (p = Ot(p, t.searchValue.split(" "))), t.column.format === "wrap-text" && (p = `<span class="cl-break-words cl-whitespace-pre-wrap">${p}</span>`), p) : "";
|
|
1821
1821
|
}
|
|
1822
1822
|
function d(p, r) {
|
|
1823
1823
|
return t.column.format === le.INTEGER ? Ee(p, le.DECIMAL, {
|
|
@@ -1836,7 +1836,7 @@ const Ma = {
|
|
|
1836
1836
|
}
|
|
1837
1837
|
return (p, r) => {
|
|
1838
1838
|
var a;
|
|
1839
|
-
return p.column.type === "slot" ?
|
|
1839
|
+
return p.column.type === "slot" ? E(p.$slots, p.column.name, { key: 0 }) : p.column.type === "boolean" && p.column.field !== void 0 ? (u(), P(dl, {
|
|
1840
1840
|
key: 1,
|
|
1841
1841
|
id: `checkbox-${p.column.field}-${p.rowIndex}`,
|
|
1842
1842
|
class: "disabled:checked:cl-bg-primary-light disabled:checked:cl-border-primary-light",
|
|
@@ -1885,7 +1885,7 @@ const Ma = {
|
|
|
1885
1885
|
});
|
|
1886
1886
|
const p = $(() => l.options.textSize === "x-small" ? "lg:cl-text-xs" : l.options.textSize === "small" ? "lg:cl-text-sm" : l.options.textSize === "medium" ? "lg:cl-text-base" : l.options.textSize === "large" ? "lg:cl-text-lg" : "lg:cl-text-sm");
|
|
1887
1887
|
return (r, a) => (u(), b("td", {
|
|
1888
|
-
class:
|
|
1888
|
+
class: A(["cl-gap-1 cl-py-2 cl-text-xs lg:cl-px-1", [
|
|
1889
1889
|
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 lg:cl-border-b-0 lg:cl-m-0 lg:cl-table-cell",
|
|
1890
1890
|
{
|
|
1891
1891
|
"cl-bg-link-lighter": c.value
|
|
@@ -1894,11 +1894,11 @@ const Ma = {
|
|
|
1894
1894
|
]])
|
|
1895
1895
|
}, [
|
|
1896
1896
|
g("span", {
|
|
1897
|
-
class:
|
|
1897
|
+
class: A(["cl-font-semibold lg:cl-hidden", {
|
|
1898
1898
|
"cl-hidden": r.options.hideGridMobileView
|
|
1899
1899
|
}])
|
|
1900
1900
|
}, M(r.column.caption), 3),
|
|
1901
|
-
r.editMode && r.column.editable === !0 ?
|
|
1901
|
+
r.editMode && r.column.editable === !0 ? E(r.$slots, `${r.column.name}Edit`, ie(Y({ key: 0 }, {
|
|
1902
1902
|
cellFocused: () => e("focus"),
|
|
1903
1903
|
column: r.column,
|
|
1904
1904
|
edited: c.value,
|
|
@@ -1913,8 +1913,8 @@ const Ma = {
|
|
|
1913
1913
|
"search-value": r.searchValue,
|
|
1914
1914
|
"row-index": r.rowIndex
|
|
1915
1915
|
}, {
|
|
1916
|
-
[r.column.name]:
|
|
1917
|
-
|
|
1916
|
+
[r.column.name]: D(() => [
|
|
1917
|
+
E(r.$slots, r.column.name, ie(pe({
|
|
1918
1918
|
column: r.column,
|
|
1919
1919
|
record: r.data,
|
|
1920
1920
|
searchValue: r.searchValue
|
|
@@ -1930,8 +1930,8 @@ const Ma = {
|
|
|
1930
1930
|
"search-value": r.searchValue,
|
|
1931
1931
|
"row-index": r.rowIndex
|
|
1932
1932
|
}, {
|
|
1933
|
-
[r.column.name]:
|
|
1934
|
-
|
|
1933
|
+
[r.column.name]: D(() => [
|
|
1934
|
+
E(r.$slots, r.column.name, ie(pe({ column: r.column, record: r.data, searchValue: r.searchValue })))
|
|
1935
1935
|
]),
|
|
1936
1936
|
_: 2
|
|
1937
1937
|
}, 1032, ["column", "data", "time-zone", "search-value", "row-index"]))
|
|
@@ -1951,7 +1951,7 @@ const Ma = {
|
|
|
1951
1951
|
emits: ["cell-focus", "cell-edit", "cell-undo"],
|
|
1952
1952
|
setup(o) {
|
|
1953
1953
|
return (t, l) => (u(), b("tr", null, [
|
|
1954
|
-
(u(!0), b(W, null,
|
|
1954
|
+
(u(!0), b(W, null, _(t.columns, (e, s) => (u(), P(za, {
|
|
1955
1955
|
key: s,
|
|
1956
1956
|
data: t.data,
|
|
1957
1957
|
column: e,
|
|
@@ -1963,11 +1963,11 @@ const Ma = {
|
|
|
1963
1963
|
onFocus: l[0] || (l[0] = (n) => t.$emit("cell-focus")),
|
|
1964
1964
|
onEdit: (n) => t.$emit("cell-edit", { field: e.field, value: n }),
|
|
1965
1965
|
onUndo: (n) => t.$emit("cell-undo", e.field)
|
|
1966
|
-
},
|
|
1967
|
-
|
|
1966
|
+
}, he({ _: 2 }, [
|
|
1967
|
+
_(t.$slots, (n, c) => ({
|
|
1968
1968
|
name: c,
|
|
1969
|
-
fn:
|
|
1970
|
-
|
|
1969
|
+
fn: D((d) => [
|
|
1970
|
+
E(t.$slots, c, ie(pe(d)))
|
|
1971
1971
|
])
|
|
1972
1972
|
}))
|
|
1973
1973
|
]), 1032, ["data", "column", "options", "time-zone", "search-value", "edit-mode", "row-index", "onEdit", "onUndo"]))), 128))
|
|
@@ -2051,10 +2051,10 @@ const Ma = {
|
|
|
2051
2051
|
), ee(() => l.options.rowSelectionEnabled, S), ee(() => l.request, S), (v, T) => {
|
|
2052
2052
|
var C;
|
|
2053
2053
|
return u(), b("tbody", null, [
|
|
2054
|
-
v.initialLoad ? (u(!0), b(W, { key: 0 },
|
|
2054
|
+
v.initialLoad ? (u(!0), b(W, { key: 0 }, _(v.request.pageSize, (B) => (u(), b("tr", { key: B }, [
|
|
2055
2055
|
g("td", {
|
|
2056
2056
|
colspan: v.columns.length,
|
|
2057
|
-
class:
|
|
2057
|
+
class: A(
|
|
2058
2058
|
{
|
|
2059
2059
|
"cl-border-t cl-border-off-white": B % 2 === 0
|
|
2060
2060
|
}
|
|
@@ -2062,7 +2062,7 @@ const Ma = {
|
|
|
2062
2062
|
}, " ", 10, Ba)
|
|
2063
2063
|
]))), 128)) : L("", !0),
|
|
2064
2064
|
v.data && ((C = v.data.results) != null && C.length) && !v.initialLoad ? (u(), b(W, { key: 1 }, [
|
|
2065
|
-
(u(!0), b(W, null,
|
|
2065
|
+
(u(!0), b(W, null, _(v.data.results, (B, q) => (u(), P(La, {
|
|
2066
2066
|
key: q,
|
|
2067
2067
|
data: B,
|
|
2068
2068
|
options: v.options,
|
|
@@ -2070,7 +2070,7 @@ const Ma = {
|
|
|
2070
2070
|
"time-zone": v.timeZone,
|
|
2071
2071
|
"search-value": v.searchValue,
|
|
2072
2072
|
"edit-mode": v.editMode,
|
|
2073
|
-
class:
|
|
2073
|
+
class: A(["cl-bg-opacity-100 cl-transition-colors", {
|
|
2074
2074
|
"cl-bg-white": q % 2 === 0 && v.data.totalRecords > 1,
|
|
2075
2075
|
"cl-bg-off-white": q % 2 === 1 || v.data.totalRecords === 1,
|
|
2076
2076
|
"cl-cursor-pointer": (v.options.highlightRowSelection || v.options.rowSelectionEnabled) && !v.editMode,
|
|
@@ -2088,17 +2088,17 @@ const Ma = {
|
|
|
2088
2088
|
p(q, F);
|
|
2089
2089
|
},
|
|
2090
2090
|
onCellUndo: r
|
|
2091
|
-
},
|
|
2092
|
-
|
|
2091
|
+
}, he({ _: 2 }, [
|
|
2092
|
+
_(v.$slots, (F, X) => ({
|
|
2093
2093
|
name: X,
|
|
2094
|
-
fn:
|
|
2095
|
-
|
|
2094
|
+
fn: D((R) => [
|
|
2095
|
+
E(v.$slots, X, ie(pe(R)))
|
|
2096
2096
|
])
|
|
2097
2097
|
}))
|
|
2098
2098
|
]), 1032, ["data", "options", "columns", "time-zone", "search-value", "edit-mode", "class", "row-index", "onClick", "onCellFocus", "onCellEdit"]))), 128)),
|
|
2099
|
-
v.data.results.length < v.request.pageSize ? (u(!0), b(W, { key: 0 },
|
|
2099
|
+
v.data.results.length < v.request.pageSize ? (u(!0), b(W, { key: 0 }, _(Math.max(5 - v.data.results.length, 0), (B) => (u(), b("tr", {
|
|
2100
2100
|
key: B,
|
|
2101
|
-
class:
|
|
2101
|
+
class: A(["lg:cl-table-row", {
|
|
2102
2102
|
"cl-hidden": l.options.hideGridMobileView === !1
|
|
2103
2103
|
}])
|
|
2104
2104
|
}, [
|
|
@@ -2113,7 +2113,7 @@ const Ma = {
|
|
|
2113
2113
|
}, [
|
|
2114
2114
|
g("div", Ga, [
|
|
2115
2115
|
v.$slots.noData && v.request.filters.some((B) => B.filterValue !== "") === !1 ? (u(), b("div", Ha, [
|
|
2116
|
-
|
|
2116
|
+
E(v.$slots, "noData")
|
|
2117
2117
|
])) : (u(), b("strong", Za, M(m(s)("grid.noData")), 1)),
|
|
2118
2118
|
v.request.filters.some((B) => B.filterValue !== "") ? (u(), b("div", Wa, [
|
|
2119
2119
|
g("div", Ka, M(m(s)("grid.noDataFiltersPresent")), 1),
|
|
@@ -2122,7 +2122,7 @@ const Ma = {
|
|
|
2122
2122
|
colour: "danger",
|
|
2123
2123
|
onClick: T[0] || (T[0] = ae((B) => v.$emit("clear-filters"), ["prevent"]))
|
|
2124
2124
|
}, {
|
|
2125
|
-
default:
|
|
2125
|
+
default: D(() => [
|
|
2126
2126
|
se(M(m(s)("grid.clearFilters")), 1)
|
|
2127
2127
|
]),
|
|
2128
2128
|
_: 1
|
|
@@ -2134,7 +2134,7 @@ const Ma = {
|
|
|
2134
2134
|
]);
|
|
2135
2135
|
};
|
|
2136
2136
|
}
|
|
2137
|
-
}), Ya = ["value", "inputmode", "disabled", "placeholder"],
|
|
2137
|
+
}), Ya = ["value", "inputmode", "disabled", "placeholder"], xa = { class: "cl-absolute cl-flex-col cl-flex-nowrap cl-h-full cl-hidden cl-justify-between cl-py-0.5 cl-right-1 cl-text-xs cl-top-0 xl:cl-flex" }, Ja = ["disabled"], _a = ["disabled"], Je = /* @__PURE__ */ G({
|
|
2138
2138
|
inheritAttrs: !1,
|
|
2139
2139
|
__name: "cl-ui-input-number",
|
|
2140
2140
|
props: /* @__PURE__ */ fe({
|
|
@@ -2175,9 +2175,9 @@ const Ma = {
|
|
|
2175
2175
|
ee(s, () => C.value = void 0);
|
|
2176
2176
|
const q = $({
|
|
2177
2177
|
get: () => C.value ? de(C.value) : s.value,
|
|
2178
|
-
set: (O) => C.value =
|
|
2178
|
+
set: (O) => C.value = J(O)
|
|
2179
2179
|
}), F = $({
|
|
2180
|
-
get: () => C.value ??
|
|
2180
|
+
get: () => C.value ?? J(s.value),
|
|
2181
2181
|
set(O) {
|
|
2182
2182
|
C.value = O, B.value = !0;
|
|
2183
2183
|
}
|
|
@@ -2193,7 +2193,7 @@ const Ma = {
|
|
|
2193
2193
|
j && e.format === le.PERCENTAGE && !Ta(F.value, "percentSign", y.value) && (me = me / v.value), isNaN(me) === !1 && (s.value = X(Math.round(me * T.value) / T.value));
|
|
2194
2194
|
}
|
|
2195
2195
|
}
|
|
2196
|
-
function
|
|
2196
|
+
function J(O) {
|
|
2197
2197
|
return O === null ? "" : e.format ? Ee(O, e.format, {
|
|
2198
2198
|
locale: e.locale,
|
|
2199
2199
|
additionalOptions: f.value
|
|
@@ -2223,8 +2223,8 @@ const Ma = {
|
|
|
2223
2223
|
return u(), P(Me, {
|
|
2224
2224
|
"show-required-asterisk": O.required,
|
|
2225
2225
|
errors: O.errors
|
|
2226
|
-
},
|
|
2227
|
-
default:
|
|
2226
|
+
}, he({
|
|
2227
|
+
default: D(() => [
|
|
2228
2228
|
g("div", {
|
|
2229
2229
|
ref_key: "focusWithinRef",
|
|
2230
2230
|
ref: d,
|
|
@@ -2242,36 +2242,36 @@ const Ma = {
|
|
|
2242
2242
|
placeholder: O.placeholder ?? void 0,
|
|
2243
2243
|
onInput: j[0] || (j[0] = (ge) => F.value = ge.target.value),
|
|
2244
2244
|
onKeydown: [
|
|
2245
|
-
j[1] || (j[1] =
|
|
2245
|
+
j[1] || (j[1] = we(ae((ge) => {
|
|
2246
2246
|
R(ge.target.value, B.value), B.value = !1;
|
|
2247
2247
|
}, ["stop", "prevent"]), ["enter"])),
|
|
2248
|
-
j[2] || (j[2] =
|
|
2249
|
-
j[3] || (j[3] =
|
|
2248
|
+
j[2] || (j[2] = we(ae((ge) => I(!0), ["stop", "prevent"]), ["down"])),
|
|
2249
|
+
j[3] || (j[3] = we(ae((ge) => I(!1), ["stop", "prevent"]), ["up"]))
|
|
2250
2250
|
]
|
|
2251
2251
|
}), null, 16, Ya)),
|
|
2252
|
-
te(g("div",
|
|
2252
|
+
te(g("div", xa, [
|
|
2253
2253
|
g("button", {
|
|
2254
2254
|
class: "cl-bg-opacity-30 cl-bg-secondary-light cl-border cl-border-grey-3 cl-px-1 cl-rounded hover:cl-bg-opacity-20",
|
|
2255
2255
|
disabled: O.disabled,
|
|
2256
2256
|
onClick: j[4] || (j[4] = (ge) => I(!1)),
|
|
2257
2257
|
onKeydown: [
|
|
2258
|
-
j[5] || (j[5] =
|
|
2259
|
-
j[6] || (j[6] =
|
|
2258
|
+
j[5] || (j[5] = we(ae((ge) => I(!0), ["stop", "prevent"]), ["down"])),
|
|
2259
|
+
j[6] || (j[6] = we(ae((ge) => I(!1), ["stop", "prevent"]), ["up"]))
|
|
2260
2260
|
]
|
|
2261
2261
|
}, [
|
|
2262
2262
|
k(me, { icon: "ph:caret-up-bold" })
|
|
2263
|
-
], 40,
|
|
2263
|
+
], 40, Ja),
|
|
2264
2264
|
g("button", {
|
|
2265
2265
|
class: "cl-bg-opacity-30 cl-bg-secondary-light cl-border cl-border-grey-3 cl-px-1 cl-rounded hover:cl-bg-opacity-20",
|
|
2266
2266
|
disabled: O.disabled,
|
|
2267
2267
|
onClick: j[7] || (j[7] = (ge) => I(!0)),
|
|
2268
2268
|
onKeydown: [
|
|
2269
|
-
j[8] || (j[8] =
|
|
2270
|
-
j[9] || (j[9] =
|
|
2269
|
+
j[8] || (j[8] = we(ae((ge) => I(!0), ["stop", "prevent"]), ["down"])),
|
|
2270
|
+
j[9] || (j[9] = we(ae((ge) => I(!1), ["stop", "prevent"]), ["up"]))
|
|
2271
2271
|
]
|
|
2272
2272
|
}, [
|
|
2273
2273
|
k(me, { icon: "ph:caret-down-bold" })
|
|
2274
|
-
], 40,
|
|
2274
|
+
], 40, _a)
|
|
2275
2275
|
], 512), [
|
|
2276
2276
|
[ue, i.value && !O.disabled]
|
|
2277
2277
|
])
|
|
@@ -2281,15 +2281,15 @@ const Ma = {
|
|
|
2281
2281
|
}, [
|
|
2282
2282
|
O.$slots.default ? {
|
|
2283
2283
|
name: "label",
|
|
2284
|
-
fn:
|
|
2285
|
-
|
|
2284
|
+
fn: D(() => [
|
|
2285
|
+
E(O.$slots, "default")
|
|
2286
2286
|
]),
|
|
2287
2287
|
key: "0"
|
|
2288
2288
|
} : void 0,
|
|
2289
2289
|
O.$slots["help-text"] ? {
|
|
2290
2290
|
name: "helpText",
|
|
2291
|
-
fn:
|
|
2292
|
-
|
|
2291
|
+
fn: D(() => [
|
|
2292
|
+
E(O.$slots, "help-text")
|
|
2293
2293
|
]),
|
|
2294
2294
|
key: "1"
|
|
2295
2295
|
} : void 0
|
|
@@ -2357,7 +2357,7 @@ const Ma = {
|
|
|
2357
2357
|
])
|
|
2358
2358
|
])) : a.loading || (y = (f = a.data) == null ? void 0 : f.results) != null && y.length && a.request ? (u(), b("div", {
|
|
2359
2359
|
key: 1,
|
|
2360
|
-
class:
|
|
2360
|
+
class: A(["cl-flex cl-flex-wrap lg:cl-gap-2", {
|
|
2361
2361
|
"cl-opacity-40": a.loading
|
|
2362
2362
|
}]),
|
|
2363
2363
|
inert: a.loading
|
|
@@ -2375,9 +2375,9 @@ const Ma = {
|
|
|
2375
2375
|
g("div", un, [
|
|
2376
2376
|
g("span", dn, M(m(s)("grid.pageSize")), 1),
|
|
2377
2377
|
g("ul", pn, [
|
|
2378
|
-
(u(), b(W, null,
|
|
2378
|
+
(u(), b(W, null, _(p, (v, T) => g("li", {
|
|
2379
2379
|
key: T,
|
|
2380
|
-
class:
|
|
2380
|
+
class: A(["cl-mr-1 last:cl-mr-0", {
|
|
2381
2381
|
"cl-text-black cl-font-bold": a.request.pageSize === v,
|
|
2382
2382
|
"cl-cursor-pointer": a.request.pageSize !== v
|
|
2383
2383
|
}]),
|
|
@@ -2388,32 +2388,32 @@ const Ma = {
|
|
|
2388
2388
|
g("div", null, [
|
|
2389
2389
|
g("ul", mn, [
|
|
2390
2390
|
g("li", {
|
|
2391
|
-
class:
|
|
2391
|
+
class: A({
|
|
2392
2392
|
"cl-text-grey-2 cl-pointer-events-none": a.request.pageNumber === 1,
|
|
2393
2393
|
"cl-cursor-pointer": a.request.pageNumber > 1
|
|
2394
2394
|
}),
|
|
2395
2395
|
onClick: i[0] || (i[0] = (v) => d(1))
|
|
2396
2396
|
}, [
|
|
2397
|
-
k(m(
|
|
2397
|
+
k(m(x), {
|
|
2398
2398
|
icon: "ph:caret-double-left",
|
|
2399
2399
|
size: 14
|
|
2400
2400
|
})
|
|
2401
2401
|
], 2),
|
|
2402
2402
|
g("li", {
|
|
2403
|
-
class:
|
|
2403
|
+
class: A({
|
|
2404
2404
|
"cl-cursor-pointer": a.request.pageNumber > 1,
|
|
2405
2405
|
"cl-text-grey-2 cl-pointer-events-none": a.request.pageNumber < 2
|
|
2406
2406
|
}),
|
|
2407
2407
|
onClick: i[1] || (i[1] = (v) => a.request.pageNumber > 1 ? d(a.request.pageNumber - 1) : null)
|
|
2408
2408
|
}, [
|
|
2409
|
-
k(m(
|
|
2409
|
+
k(m(x), {
|
|
2410
2410
|
icon: "ph:caret-left",
|
|
2411
2411
|
size: 14
|
|
2412
2412
|
})
|
|
2413
2413
|
], 2),
|
|
2414
|
-
(u(!0), b(W, null,
|
|
2414
|
+
(u(!0), b(W, null, _(c.value, (v, T) => (u(), b("li", {
|
|
2415
2415
|
key: T,
|
|
2416
|
-
class:
|
|
2416
|
+
class: A(["cl-border cl-border-grey-2 cl-px-1.5 cl-rounded cl-text-secondary-default", {
|
|
2417
2417
|
"cl-font-bold cl-bg-primary-lighter cl-border-primary-default": a.request.pageNumber === v && !a.loading,
|
|
2418
2418
|
"cl-cursor-pointer ": a.request.pageNumber !== v,
|
|
2419
2419
|
"cl-bg-grey-0": a.loading
|
|
@@ -2421,25 +2421,25 @@ const Ma = {
|
|
|
2421
2421
|
onClick: (C) => d(v)
|
|
2422
2422
|
}, M(m($e)(v)), 11, gn))), 128)),
|
|
2423
2423
|
g("li", {
|
|
2424
|
-
class:
|
|
2424
|
+
class: A({
|
|
2425
2425
|
"cl-text-grey-2 cl-pointer-events-none": a.request.pageNumber >= n.value,
|
|
2426
2426
|
"cl-cursor-pointer": a.request.pageNumber < n.value
|
|
2427
2427
|
}),
|
|
2428
2428
|
onClick: i[2] || (i[2] = (v) => d(a.request.pageNumber + 1))
|
|
2429
2429
|
}, [
|
|
2430
|
-
k(m(
|
|
2430
|
+
k(m(x), {
|
|
2431
2431
|
icon: "ph:caret-right",
|
|
2432
2432
|
size: 14
|
|
2433
2433
|
})
|
|
2434
2434
|
], 2),
|
|
2435
2435
|
g("li", {
|
|
2436
|
-
class:
|
|
2436
|
+
class: A({
|
|
2437
2437
|
"cl-text-grey-2 cl-pointer-events-none": a.request.pageNumber >= n.value,
|
|
2438
2438
|
"cl-cursor-pointer": a.request.pageNumber < n.value
|
|
2439
2439
|
}),
|
|
2440
2440
|
onClick: i[3] || (i[3] = (v) => d(n.value))
|
|
2441
2441
|
}, [
|
|
2442
|
-
k(m(
|
|
2442
|
+
k(m(x), {
|
|
2443
2443
|
icon: "ph:caret-double-right",
|
|
2444
2444
|
size: 14
|
|
2445
2445
|
})
|
|
@@ -2451,7 +2451,7 @@ const Ma = {
|
|
|
2451
2451
|
g("div", vn, [
|
|
2452
2452
|
g("div", bn, [
|
|
2453
2453
|
g("span", hn, M(m(s)("grid.jumpToPage")), 1),
|
|
2454
|
-
k(
|
|
2454
|
+
k(Je, {
|
|
2455
2455
|
"model-value": a.request.pageNumber,
|
|
2456
2456
|
min: 1,
|
|
2457
2457
|
max: n.value,
|
|
@@ -2460,7 +2460,7 @@ const Ma = {
|
|
|
2460
2460
|
autocomplete: "off",
|
|
2461
2461
|
"onUpdate:modelValue": d
|
|
2462
2462
|
}, {
|
|
2463
|
-
default:
|
|
2463
|
+
default: D(() => [
|
|
2464
2464
|
yn
|
|
2465
2465
|
]),
|
|
2466
2466
|
_: 1
|
|
@@ -2589,11 +2589,11 @@ const kn = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, Cn = ["onClick"], Tn =
|
|
|
2589
2589
|
setup(o, { emit: t }) {
|
|
2590
2590
|
const l = t, { t: e } = ce();
|
|
2591
2591
|
return (s, n) => (u(), b("div", kn, [
|
|
2592
|
-
(u(!0), b(W, null,
|
|
2592
|
+
(u(!0), b(W, null, _(s.dates, (c, d) => {
|
|
2593
2593
|
var p, r;
|
|
2594
2594
|
return u(), b("button", {
|
|
2595
2595
|
key: d,
|
|
2596
|
-
class:
|
|
2596
|
+
class: A(["cl-border cl-cursor-pointer cl-py-1 cl-rounded-md cl-text-center", {
|
|
2597
2597
|
"cl-bg-primary-lighter cl-bg-opacity-30 cl-border-primary-default cl-font-bold hover:cl-border-primary-darker": ((p = s.selectedQuickDate) == null ? void 0 : p.name) === c.name,
|
|
2598
2598
|
"cl-border-grey-2 hover:cl-border-grey-3 hover:cl-opacity-95 cl-opacity-60": ((r = s.selectedQuickDate) == null ? void 0 : r.name) !== c.name
|
|
2599
2599
|
}]),
|
|
@@ -2733,7 +2733,7 @@ const kn = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, Cn = ["onClick"], Tn =
|
|
|
2733
2733
|
});
|
|
2734
2734
|
return (c, d) => (u(), b("div", qn, [
|
|
2735
2735
|
g("div", null, M(m(s)("quickDates.quickDatesHeader")), 1),
|
|
2736
|
-
(u(!0), b(W, null,
|
|
2736
|
+
(u(!0), b(W, null, _(n.value, (p, r) => (u(), b("div", {
|
|
2737
2737
|
key: r,
|
|
2738
2738
|
class: "cl-pt-2"
|
|
2739
2739
|
}, [
|
|
@@ -2763,7 +2763,7 @@ const kn = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, Cn = ["onClick"], Tn =
|
|
|
2763
2763
|
return (e, s) => {
|
|
2764
2764
|
const n = Se("icon");
|
|
2765
2765
|
return u(), b("div", {
|
|
2766
|
-
class:
|
|
2766
|
+
class: A(["cl-border cl-border-grey-1 cl-flex cl-flex-nowrap cl-flex-row cl-overflow-hidden cl-rounded-sm range-input", [
|
|
2767
2767
|
e.$attrs.class,
|
|
2768
2768
|
{
|
|
2769
2769
|
"cl-bg-grey-3 ": e.disabled
|
|
@@ -2778,7 +2778,7 @@ const kn = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, Cn = ["onClick"], Tn =
|
|
|
2778
2778
|
disabled: e.disabled,
|
|
2779
2779
|
onClick: s[0] || (s[0] = (c) => e.$emit("togglePopover"))
|
|
2780
2780
|
}), {
|
|
2781
|
-
default:
|
|
2781
|
+
default: D(() => [
|
|
2782
2782
|
k(n, {
|
|
2783
2783
|
icon: "bi:calendar3",
|
|
2784
2784
|
class: "cl-text-xl icon"
|
|
@@ -2791,14 +2791,14 @@ const kn = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, Cn = ["onClick"], Tn =
|
|
|
2791
2791
|
id: e.$attrs.id ? e.$attrs.id + "Clear" : "clUiDateRangeInputClear",
|
|
2792
2792
|
title: m(t)("input.clearDateRange"),
|
|
2793
2793
|
size: "small",
|
|
2794
|
-
class:
|
|
2794
|
+
class: A(["cl-basis-0 cl-border-transparent cl-flex cl-items-center cl-justify-center hover:cl-border-transparent", {
|
|
2795
2795
|
"cl-text-grey-4 hover:cl-text-grey-3": !e.dateRangeSelected && !e.disabled,
|
|
2796
2796
|
"cl-text-danger-dark hover:cl-text-danger-default": e.dateRangeSelected && !e.disabled
|
|
2797
2797
|
}]),
|
|
2798
2798
|
disabled: e.disabled,
|
|
2799
2799
|
onClick: s[1] || (s[1] = (c) => e.$emit("clear"))
|
|
2800
2800
|
}, {
|
|
2801
|
-
default:
|
|
2801
|
+
default: D(() => [
|
|
2802
2802
|
k(n, {
|
|
2803
2803
|
icon: "ph:x",
|
|
2804
2804
|
class: "cl-text-sm clear-icon"
|
|
@@ -2855,12 +2855,12 @@ const kn = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, Cn = ["onClick"], Tn =
|
|
|
2855
2855
|
const T = ot(v, e.value);
|
|
2856
2856
|
s.value = T, a.value = v, i.value.move(T.start), i.value.hidePopover();
|
|
2857
2857
|
}
|
|
2858
|
-
const y =
|
|
2859
|
-
return (v, T) => (u(), P(Me, { "show-required-asterisk": v.required },
|
|
2860
|
-
label:
|
|
2861
|
-
|
|
2858
|
+
const y = xl("(min-width: 768px)"), S = $(() => y.value ? 2 : 1);
|
|
2859
|
+
return (v, T) => (u(), P(Me, { "show-required-asterisk": v.required }, he({
|
|
2860
|
+
label: D(() => [
|
|
2861
|
+
E(v.$slots, "default")
|
|
2862
2862
|
]),
|
|
2863
|
-
default:
|
|
2863
|
+
default: D(() => [
|
|
2864
2864
|
k(m(Le), {
|
|
2865
2865
|
ref_key: "calendar",
|
|
2866
2866
|
ref: i,
|
|
@@ -2879,7 +2879,7 @@ const kn = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, Cn = ["onClick"], Tn =
|
|
|
2879
2879
|
"initial-page": p.value,
|
|
2880
2880
|
onDayclick: T[2] || (T[2] = (C) => a.value = null)
|
|
2881
2881
|
}, {
|
|
2882
|
-
default:
|
|
2882
|
+
default: D(({ togglePopover: C }) => [
|
|
2883
2883
|
k(Al, Y(v.$attrs, {
|
|
2884
2884
|
required: v.required,
|
|
2885
2885
|
disabled: v.disabled,
|
|
@@ -2891,7 +2891,7 @@ const kn = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, Cn = ["onClick"], Tn =
|
|
|
2891
2891
|
})
|
|
2892
2892
|
}), null, 16, ["required", "disabled", "date-range-selected", "title", "onTogglePopover"])
|
|
2893
2893
|
]),
|
|
2894
|
-
footer:
|
|
2894
|
+
footer: D(() => [
|
|
2895
2895
|
v.quickDateScope !== "none" ? (u(), P(it, {
|
|
2896
2896
|
key: 0,
|
|
2897
2897
|
scope: v.quickDateScope,
|
|
@@ -2907,8 +2907,8 @@ const kn = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, Cn = ["onClick"], Tn =
|
|
|
2907
2907
|
}, [
|
|
2908
2908
|
v.$slots["help-text"] ? {
|
|
2909
2909
|
name: "helpText",
|
|
2910
|
-
fn:
|
|
2911
|
-
|
|
2910
|
+
fn: D(() => [
|
|
2911
|
+
E(v.$slots, "help-text")
|
|
2912
2912
|
]),
|
|
2913
2913
|
key: "0"
|
|
2914
2914
|
} : void 0
|
|
@@ -2970,8 +2970,8 @@ const kn = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, Cn = ["onClick"], Tn =
|
|
|
2970
2970
|
}), (d, p) => (u(), P(Me, {
|
|
2971
2971
|
errors: d.errors,
|
|
2972
2972
|
"show-required-asterisk": d.required
|
|
2973
|
-
},
|
|
2974
|
-
default:
|
|
2973
|
+
}, he({
|
|
2974
|
+
default: D(() => [
|
|
2975
2975
|
te(g("textarea", Y({
|
|
2976
2976
|
ref_key: "inputRef",
|
|
2977
2977
|
ref: n
|
|
@@ -2993,15 +2993,15 @@ const kn = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, Cn = ["onClick"], Tn =
|
|
|
2993
2993
|
}, [
|
|
2994
2994
|
d.$slots.default ? {
|
|
2995
2995
|
name: "label",
|
|
2996
|
-
fn:
|
|
2997
|
-
|
|
2996
|
+
fn: D(() => [
|
|
2997
|
+
E(d.$slots, "default")
|
|
2998
2998
|
]),
|
|
2999
2999
|
key: "0"
|
|
3000
3000
|
} : void 0,
|
|
3001
3001
|
d.$slots["help-text"] ? {
|
|
3002
3002
|
name: "helpText",
|
|
3003
|
-
fn:
|
|
3004
|
-
|
|
3003
|
+
fn: D(() => [
|
|
3004
|
+
E(d.$slots, "help-text")
|
|
3005
3005
|
]),
|
|
3006
3006
|
key: "1"
|
|
3007
3007
|
} : void 0
|
|
@@ -3046,8 +3046,8 @@ const kn = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, Cn = ["onClick"], Tn =
|
|
|
3046
3046
|
return u(), P(Me, {
|
|
3047
3047
|
errors: i.errors,
|
|
3048
3048
|
"show-required-asterisk": i.required
|
|
3049
|
-
},
|
|
3050
|
-
default:
|
|
3049
|
+
}, he({
|
|
3050
|
+
default: D(() => [
|
|
3051
3051
|
g("div", An, [
|
|
3052
3052
|
g("button", {
|
|
3053
3053
|
disabled: i.disabled,
|
|
@@ -3080,7 +3080,7 @@ const kn = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, Cn = ["onClick"], Tn =
|
|
|
3080
3080
|
], 512), [
|
|
3081
3081
|
[ue, p.value === !1]
|
|
3082
3082
|
]),
|
|
3083
|
-
te(k(
|
|
3083
|
+
te(k(Je, Y({
|
|
3084
3084
|
ref_key: "inputRef",
|
|
3085
3085
|
ref: c,
|
|
3086
3086
|
modelValue: e.value,
|
|
@@ -3115,22 +3115,22 @@ const kn = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, Cn = ["onClick"], Tn =
|
|
|
3115
3115
|
}, [
|
|
3116
3116
|
i.$slots.default ? {
|
|
3117
3117
|
name: "label",
|
|
3118
|
-
fn:
|
|
3119
|
-
|
|
3118
|
+
fn: D(() => [
|
|
3119
|
+
E(i.$slots, "default", {}, void 0, !0)
|
|
3120
3120
|
]),
|
|
3121
3121
|
key: "0"
|
|
3122
3122
|
} : void 0,
|
|
3123
3123
|
i.$slots["help-text"] ? {
|
|
3124
3124
|
name: "helpText",
|
|
3125
|
-
fn:
|
|
3126
|
-
|
|
3125
|
+
fn: D(() => [
|
|
3126
|
+
E(i.$slots, "help-text", {}, void 0, !0)
|
|
3127
3127
|
]),
|
|
3128
3128
|
key: "1"
|
|
3129
3129
|
} : void 0
|
|
3130
3130
|
]), 1032, ["errors", "show-required-asterisk"]);
|
|
3131
3131
|
};
|
|
3132
3132
|
}
|
|
3133
|
-
}), Bn = /* @__PURE__ */
|
|
3133
|
+
}), Bn = /* @__PURE__ */ ye(Ln, [["__scopeId", "data-v-d2902c00"]]), ut = [
|
|
3134
3134
|
"date",
|
|
3135
3135
|
"datetime",
|
|
3136
3136
|
"time"
|
|
@@ -3204,19 +3204,19 @@ const kn = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, Cn = ["onClick"], Tn =
|
|
|
3204
3204
|
disabled: d.disabled,
|
|
3205
3205
|
placeholder: c.value
|
|
3206
3206
|
}, St(d.events, !0)), null, 16, Pn),
|
|
3207
|
-
k(m(
|
|
3207
|
+
k(m(x), {
|
|
3208
3208
|
class: "cl-absolute cl-bg-transparent cl-cursor-text cl-left-2 cl-text-grey-4 cl-top-3.5 icon",
|
|
3209
3209
|
icon: d.type === "time" ? "ph-clock" : "ph:calendar",
|
|
3210
3210
|
onClick: s
|
|
3211
3211
|
}, null, 8, ["icon"]),
|
|
3212
3212
|
d.disabled ? L("", !0) : (u(), b("div", Gn, [
|
|
3213
|
-
d.type !== "time" ? (u(), P(m(
|
|
3213
|
+
d.type !== "time" ? (u(), P(m(x), {
|
|
3214
3214
|
key: 0,
|
|
3215
3215
|
class: "cl-cursor-pointer hover:cl-text-link-light",
|
|
3216
3216
|
icon: "ph:arrow-counter-clockwise",
|
|
3217
3217
|
onClick: p[2] || (p[2] = ae((r) => d.$emit("reset"), ["prevent"]))
|
|
3218
3218
|
})) : L("", !0),
|
|
3219
|
-
!d.required && d.date && (d.type !== "time" || d.date !== "00:00") ? (u(), P(m(
|
|
3219
|
+
!d.required && d.date && (d.type !== "time" || d.date !== "00:00") ? (u(), P(m(x), {
|
|
3220
3220
|
key: 1,
|
|
3221
3221
|
class: "cl-cursor-pointer clear-icon hover:cl-text-link-light md:cl-ml-0.5",
|
|
3222
3222
|
icon: "ph:x",
|
|
@@ -3225,7 +3225,7 @@ const kn = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, Cn = ["onClick"], Tn =
|
|
|
3225
3225
|
]))
|
|
3226
3226
|
]));
|
|
3227
3227
|
}
|
|
3228
|
-
}), Ze = /* @__PURE__ */
|
|
3228
|
+
}), Ze = /* @__PURE__ */ ye(Hn, [["__scopeId", "data-v-307fea23"]]), dt = /* @__PURE__ */ G({
|
|
3229
3229
|
inheritAttrs: !1,
|
|
3230
3230
|
__name: "cl-ui-input-datetime",
|
|
3231
3231
|
props: /* @__PURE__ */ fe({
|
|
@@ -3267,11 +3267,11 @@ const kn = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, Cn = ["onClick"], Tn =
|
|
|
3267
3267
|
var v;
|
|
3268
3268
|
(v = y.value) == null || v.focus(), n("focus");
|
|
3269
3269
|
}
|
|
3270
|
-
}), (v, T) => (u(), P(Me, { "show-required-asterisk": v.required },
|
|
3271
|
-
label:
|
|
3272
|
-
|
|
3270
|
+
}), (v, T) => (u(), P(Me, { "show-required-asterisk": v.required }, he({
|
|
3271
|
+
label: D(() => [
|
|
3272
|
+
E(v.$slots, "default")
|
|
3273
3273
|
]),
|
|
3274
|
-
default:
|
|
3274
|
+
default: D(() => [
|
|
3275
3275
|
v.type === "time" ? (u(), P(m(Le), {
|
|
3276
3276
|
key: 0,
|
|
3277
3277
|
modelValue: d.value,
|
|
@@ -3288,7 +3288,7 @@ const kn = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, Cn = ["onClick"], Tn =
|
|
|
3288
3288
|
"hide-time-header": "",
|
|
3289
3289
|
popover: i.value
|
|
3290
3290
|
}, {
|
|
3291
|
-
default:
|
|
3291
|
+
default: D(({ inputValue: C, inputEvents: B }) => [
|
|
3292
3292
|
k(Ze, Y(v.$attrs, {
|
|
3293
3293
|
ref_key: "input",
|
|
3294
3294
|
ref: y,
|
|
@@ -3321,7 +3321,7 @@ const kn = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, Cn = ["onClick"], Tn =
|
|
|
3321
3321
|
"hide-time-header": "",
|
|
3322
3322
|
popover: i.value
|
|
3323
3323
|
}, {
|
|
3324
|
-
default:
|
|
3324
|
+
default: D(({ inputValue: C, inputEvents: B }) => [
|
|
3325
3325
|
k(Ze, Y(v.$attrs, {
|
|
3326
3326
|
ref_key: "input",
|
|
3327
3327
|
ref: y,
|
|
@@ -3342,8 +3342,8 @@ const kn = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, Cn = ["onClick"], Tn =
|
|
|
3342
3342
|
}, [
|
|
3343
3343
|
v.$slots["help-text"] ? {
|
|
3344
3344
|
name: "helpText",
|
|
3345
|
-
fn:
|
|
3346
|
-
|
|
3345
|
+
fn: D(() => [
|
|
3346
|
+
E(v.$slots, "help-text")
|
|
3347
3347
|
]),
|
|
3348
3348
|
key: "0"
|
|
3349
3349
|
} : void 0
|
|
@@ -3359,7 +3359,7 @@ const kn = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, Cn = ["onClick"], Tn =
|
|
|
3359
3359
|
l("toggleModal");
|
|
3360
3360
|
}
|
|
3361
3361
|
return (s, n) => (u(), b("div", ie(pe(s.$attrs)), [
|
|
3362
|
-
|
|
3362
|
+
E(s.$slots, "default", ie(pe({ toggleModalInput: e })))
|
|
3363
3363
|
], 16));
|
|
3364
3364
|
}
|
|
3365
3365
|
}), Zn = ["placeholder"], Wn = ["value", "disabled"], Kn = ["value", "disabled"], Qn = ["disabled"], wl = /* @__PURE__ */ G({
|
|
@@ -3411,23 +3411,23 @@ const kn = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, Cn = ["onClick"], Tn =
|
|
|
3411
3411
|
k(Me, {
|
|
3412
3412
|
"show-required-asterisk": a.required,
|
|
3413
3413
|
errors: a.errors
|
|
3414
|
-
}, {
|
|
3415
|
-
label:
|
|
3416
|
-
|
|
3414
|
+
}, he({
|
|
3415
|
+
label: D(() => [
|
|
3416
|
+
E(a.$slots, "label")
|
|
3417
3417
|
]),
|
|
3418
|
-
default:
|
|
3418
|
+
default: D(() => [
|
|
3419
3419
|
g("div", {
|
|
3420
|
-
class:
|
|
3420
|
+
class: A(["cl-w-full", {
|
|
3421
3421
|
"cl-relative": a.isGridFilter === !1
|
|
3422
3422
|
}])
|
|
3423
3423
|
}, [
|
|
3424
|
-
|
|
3424
|
+
E(a.$slots, "input", ie(pe({ selectModalVisible: s.value, toggleSelectModalState: c })), () => [
|
|
3425
3425
|
n.value === !1 ? (u(), P(sl, {
|
|
3426
3426
|
key: 0,
|
|
3427
|
-
class:
|
|
3427
|
+
class: A([r.value, "cl-border cl-border-grey-2 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 disabled:cl-bg-grey-1 disabled:cl-border-grey-2 disabled:cl-placeholder-grey-3"]),
|
|
3428
3428
|
onToggleModal: c
|
|
3429
3429
|
}, {
|
|
3430
|
-
default:
|
|
3430
|
+
default: D(() => [
|
|
3431
3431
|
l.value === null || l.value === void 0 ? (u(), b("input", Y({ key: 0 }, a.$attrs, {
|
|
3432
3432
|
readonly: "",
|
|
3433
3433
|
class: [r.value, "cl-outline-none cl-overflow-hidden cl-px-2 cl-py-1 cl-rounded-lg cl-text-ellipsis cl-transition-colors cl-w-full cl-whitespace-nowrap"],
|
|
@@ -3467,12 +3467,20 @@ const kn = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, Cn = ["onClick"], Tn =
|
|
|
3467
3467
|
"cl-overflow-hidden": a.disabled
|
|
3468
3468
|
}]
|
|
3469
3469
|
}), [
|
|
3470
|
-
|
|
3470
|
+
E(a.$slots, "default", ie(pe({ select: d })))
|
|
3471
3471
|
], 16)) : L("", !0)
|
|
3472
3472
|
], 2)
|
|
3473
3473
|
]),
|
|
3474
|
-
_:
|
|
3475
|
-
},
|
|
3474
|
+
_: 2
|
|
3475
|
+
}, [
|
|
3476
|
+
a.$slots["help-text"] ? {
|
|
3477
|
+
name: "helpText",
|
|
3478
|
+
fn: D(() => [
|
|
3479
|
+
E(a.$slots, "help-text")
|
|
3480
|
+
]),
|
|
3481
|
+
key: "0"
|
|
3482
|
+
} : void 0
|
|
3483
|
+
]), 1032, ["show-required-asterisk", "errors"])
|
|
3476
3484
|
], 512);
|
|
3477
3485
|
};
|
|
3478
3486
|
}
|
|
@@ -3486,7 +3494,7 @@ const kn = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, Cn = ["onClick"], Tn =
|
|
|
3486
3494
|
setup(o, { emit: t }) {
|
|
3487
3495
|
const l = t;
|
|
3488
3496
|
return (e, s) => (u(), b("div", {
|
|
3489
|
-
class:
|
|
3497
|
+
class: A(["cl-px-2 cl-py-0.5", {
|
|
3490
3498
|
"cl-bg-primary-lighter": e.isSelected && e.disabled === !1,
|
|
3491
3499
|
"hover:cl-bg-link-lighter": e.isSelected === !1 && e.disabled === !1,
|
|
3492
3500
|
"cl-cursor-pointer": e.disabled === !1,
|
|
@@ -3494,7 +3502,7 @@ const kn = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, Cn = ["onClick"], Tn =
|
|
|
3494
3502
|
}]),
|
|
3495
3503
|
onClick: s[0] || (s[0] = (n) => e.disabled ? null : l("select"))
|
|
3496
3504
|
}, [
|
|
3497
|
-
|
|
3505
|
+
E(e.$slots, "default")
|
|
3498
3506
|
], 2));
|
|
3499
3507
|
}
|
|
3500
3508
|
}), Yn = [
|
|
@@ -3510,7 +3518,7 @@ const kn = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, Cn = ["onClick"], Tn =
|
|
|
3510
3518
|
function pt(o) {
|
|
3511
3519
|
return typeof o.caption == "string" && typeof o.name == "string" && typeof o.type == "string";
|
|
3512
3520
|
}
|
|
3513
|
-
function
|
|
3521
|
+
function xn(o) {
|
|
3514
3522
|
let t = Array.isArray(o);
|
|
3515
3523
|
if (t) {
|
|
3516
3524
|
for (const l of o)
|
|
@@ -3521,12 +3529,12 @@ function _n(o) {
|
|
|
3521
3529
|
}
|
|
3522
3530
|
return t;
|
|
3523
3531
|
}
|
|
3524
|
-
const
|
|
3532
|
+
const Jn = [
|
|
3525
3533
|
"ellipsis",
|
|
3526
3534
|
"wrap-text"
|
|
3527
3535
|
];
|
|
3528
3536
|
var oe = /* @__PURE__ */ ((o) => (o[o.CONTAINS = 0] = "CONTAINS", o[o.NOT_CONTAINS = 1] = "NOT_CONTAINS", o[o.EQUAL = 2] = "EQUAL", o[o.NOT_EQUAL = 3] = "NOT_EQUAL", o[o.STARTS_WITH = 4] = "STARTS_WITH", o[o.ENDS_WITH = 5] = "ENDS_WITH", o[o.GREATER_THAN = 6] = "GREATER_THAN", o[o.LESS_THAN = 7] = "LESS_THAN", o[o.EQUAL_OR_GREATER_THAN = 8] = "EQUAL_OR_GREATER_THAN", o[o.EQUAL_OR_LESS_THAN = 9] = "EQUAL_OR_LESS_THAN", o[o.AND_CONTAINS = 10] = "AND_CONTAINS", o))(oe || {});
|
|
3529
|
-
const
|
|
3537
|
+
const _n = [
|
|
3530
3538
|
"equal",
|
|
3531
3539
|
"notequal",
|
|
3532
3540
|
"contains",
|
|
@@ -3729,34 +3737,34 @@ const os = {
|
|
|
3729
3737
|
class: "cl-group cl-inline cl-relative cl-w-auto"
|
|
3730
3738
|
}, [
|
|
3731
3739
|
g("div", ss, [
|
|
3732
|
-
c.value ? (u(), P(m(
|
|
3740
|
+
c.value ? (u(), P(m(x), {
|
|
3733
3741
|
key: 0,
|
|
3734
3742
|
icon: c.value.icon,
|
|
3735
|
-
class:
|
|
3743
|
+
class: A(["cl-text-lg", {
|
|
3736
3744
|
"cl-text-grey-4": l.filter === void 0 || l.filter.filterValue === "",
|
|
3737
3745
|
"cl-text-primary-default": l.filter && l.filter.filterValue !== ""
|
|
3738
3746
|
}])
|
|
3739
3747
|
}, null, 8, ["icon", "class"])) : L("", !0)
|
|
3740
3748
|
]),
|
|
3741
3749
|
g("div", {
|
|
3742
|
-
class:
|
|
3750
|
+
class: A(["cl-absolute cl-bg-white cl-border cl-border-grey-0 cl-flex-wrap cl-font-normal cl-h-0 cl-hidden cl-rounded cl-shadow-lg cl-text-left cl-text-xs cl-top-8 cl-z-10", {
|
|
3743
3751
|
"group-hover:cl-flex group-hover:cl-h-auto group-hover:cl-w-52": i.loading === !1,
|
|
3744
3752
|
"cl-right-0": a.value === !1,
|
|
3745
3753
|
"cl-left-0": a.value
|
|
3746
3754
|
}])
|
|
3747
3755
|
}, [
|
|
3748
3756
|
g("strong", rs, M(m(s)("grid.availableMethods")), 1),
|
|
3749
|
-
(u(!0), b(W, null,
|
|
3757
|
+
(u(!0), b(W, null, _(n.value, (y, S) => {
|
|
3750
3758
|
var v;
|
|
3751
3759
|
return u(), b("span", {
|
|
3752
3760
|
key: S,
|
|
3753
|
-
class:
|
|
3761
|
+
class: A(["cl-cursor-pointer cl-px-4 cl-py-1 cl-transition-colors cl-w-full hover:cl-bg-grey-0", {
|
|
3754
3762
|
"cl-bg-primary-default cl-opacity-80": y.method === ((v = c.value) == null ? void 0 : v.method)
|
|
3755
3763
|
}]),
|
|
3756
3764
|
onClick: ae((T) => d(y.method), ["prevent"])
|
|
3757
3765
|
}, [
|
|
3758
3766
|
se(M(y.description) + " ", 1),
|
|
3759
|
-
k(m(
|
|
3767
|
+
k(m(x), {
|
|
3760
3768
|
icon: y.icon,
|
|
3761
3769
|
class: "cl-float-right cl-text-grey-4 cl-text-sm"
|
|
3762
3770
|
}, null, 8, ["icon"])
|
|
@@ -3797,35 +3805,35 @@ const os = {
|
|
|
3797
3805
|
}
|
|
3798
3806
|
const d = $({
|
|
3799
3807
|
get: () => l.filter,
|
|
3800
|
-
set: (
|
|
3808
|
+
set: (V) => e("update:filter", V)
|
|
3801
3809
|
}), p = $(() => l.column.type === "date" || l.column.type === "datetime" || l.column.type === "slot" && (l.column.slotType === "date" || l.column.slotType === "datetime")), r = $(() => l.column.type === "dateRange" || l.column.type === "slot" && l.column.slotType === "dateRange"), a = $(() => l.column.type === "list" || l.column.type === "slot" && l.column.slotType === "list"), i = $(() => a.value && l.column.listType === "number"), f = $(() => l.column.type === "string" || l.column.type === "slot" && l.column.slotType === "string"), y = $(() => l.column.format === le.INTEGER ? le.DECIMAL : l.column.format ?? le.DECIMAL), S = N(!1), v = $(() => S.value || f.value === !1), T = $({
|
|
3802
3810
|
get() {
|
|
3803
3811
|
var H, w, U, Q, h, z, Z;
|
|
3804
|
-
let
|
|
3805
|
-
if (
|
|
3812
|
+
let V = (H = d.value) == null ? void 0 : H[0];
|
|
3813
|
+
if (V) {
|
|
3806
3814
|
if (p.value) {
|
|
3807
3815
|
if ((((w = l.filter) == null ? void 0 : w.length) ?? 0) > 1) {
|
|
3808
3816
|
const re = (U = d.value) == null ? void 0 : U.find((qe) => qe.filterOperation === oe.EQUAL_OR_GREATER_THAN), Ae = (Q = d.value) == null ? void 0 : Q.find((qe) => qe.filterOperation === oe.LESS_THAN);
|
|
3809
|
-
re && Ae && (
|
|
3817
|
+
re && Ae && (V = {
|
|
3810
3818
|
filterOnColumn: l.column.field,
|
|
3811
3819
|
filterOperation: oe.EQUAL,
|
|
3812
3820
|
filterMethod: "equal",
|
|
3813
3821
|
filterValue: re.filterValue
|
|
3814
3822
|
});
|
|
3815
|
-
} else if (
|
|
3816
|
-
let re = K.fromISO(
|
|
3823
|
+
} else if (V.filterOperation === oe.EQUAL_OR_LESS_THAN || V.filterOperation === oe.GREATER_THAN) {
|
|
3824
|
+
let re = K.fromISO(V.filterValue, {
|
|
3817
3825
|
zone: l.timeZone ?? "UTC"
|
|
3818
3826
|
});
|
|
3819
|
-
l.column.type === "date" || l.column.type === "slot" && l.column.slotType === "date" ? re = re.minus({ days: 1 }) : re = re.minus({ minutes: 1 }),
|
|
3827
|
+
l.column.type === "date" || l.column.type === "slot" && l.column.slotType === "date" ? re = re.minus({ days: 1 }) : re = re.minus({ minutes: 1 }), V = {
|
|
3820
3828
|
filterOnColumn: l.column.field,
|
|
3821
|
-
filterOperation:
|
|
3822
|
-
filterMethod:
|
|
3829
|
+
filterOperation: V.filterOperation,
|
|
3830
|
+
filterMethod: V.filterOperation === oe.EQUAL_OR_LESS_THAN ? "equalorlessthan" : "greaterthan",
|
|
3823
3831
|
filterValue: re.plus({ milliseconds: 1 }).toISO() ?? ""
|
|
3824
3832
|
};
|
|
3825
3833
|
}
|
|
3826
3834
|
} else if (r.value && (((h = l.filter) == null ? void 0 : h.length) ?? 0) > 1) {
|
|
3827
3835
|
const re = (z = d.value) == null ? void 0 : z.find((qe) => qe.filterOperation === oe.EQUAL_OR_GREATER_THAN), Ae = (Z = d.value) == null ? void 0 : Z.find((qe) => qe.filterOperation === oe.EQUAL_OR_LESS_THAN);
|
|
3828
|
-
re && Ae && (
|
|
3836
|
+
re && Ae && (V = {
|
|
3829
3837
|
filterOnColumn: l.column.field,
|
|
3830
3838
|
filterOperation: oe.EQUAL,
|
|
3831
3839
|
filterMethod: "equal",
|
|
@@ -3836,12 +3844,12 @@ const os = {
|
|
|
3836
3844
|
});
|
|
3837
3845
|
}
|
|
3838
3846
|
}
|
|
3839
|
-
return
|
|
3847
|
+
return V;
|
|
3840
3848
|
},
|
|
3841
|
-
set(
|
|
3849
|
+
set(V) {
|
|
3842
3850
|
let H = null;
|
|
3843
3851
|
if (p.value) {
|
|
3844
|
-
const w =
|
|
3852
|
+
const w = V, U = (w == null ? void 0 : w.filterMethod) && q(w.filterMethod, w.filterValue, "equal"), Q = (w == null ? void 0 : w.filterMethod) && q(w.filterMethod, w.filterValue, "equalorlessthan"), h = (w == null ? void 0 : w.filterMethod) && q(w.filterMethod, w.filterValue, "greaterthan");
|
|
3845
3853
|
if (U) {
|
|
3846
3854
|
let z = K.fromISO(w.filterValue, {
|
|
3847
3855
|
zone: l.timeZone ?? "UTC"
|
|
@@ -3882,8 +3890,8 @@ const os = {
|
|
|
3882
3890
|
}
|
|
3883
3891
|
];
|
|
3884
3892
|
}
|
|
3885
|
-
} else if (r.value && (
|
|
3886
|
-
const w =
|
|
3893
|
+
} else if (r.value && (V != null && V.filterValue)) {
|
|
3894
|
+
const w = V.filterValue, U = K.fromISO(w.start, {
|
|
3887
3895
|
zone: l.timeZone ?? "UTC"
|
|
3888
3896
|
}).toISO(), Q = K.fromISO(w.end, {
|
|
3889
3897
|
zone: l.timeZone ?? "UTC"
|
|
@@ -3904,7 +3912,7 @@ const os = {
|
|
|
3904
3912
|
];
|
|
3905
3913
|
}
|
|
3906
3914
|
if (H === null) {
|
|
3907
|
-
const w =
|
|
3915
|
+
const w = V;
|
|
3908
3916
|
H = w && [w];
|
|
3909
3917
|
}
|
|
3910
3918
|
if (H && (p.value || r.value))
|
|
@@ -3912,24 +3920,24 @@ const os = {
|
|
|
3912
3920
|
l.timeZone ? w.filterValue = K.fromISO(w.filterValue).setZone("UTC").toISO() ?? "" : w.filterValue = w.filterValue.replace("Z", "");
|
|
3913
3921
|
v.value ? (d.value = H, S.value = !1) : C(H);
|
|
3914
3922
|
}
|
|
3915
|
-
}), C = ll((
|
|
3916
|
-
d.value =
|
|
3923
|
+
}), C = ll((V) => {
|
|
3924
|
+
d.value = V;
|
|
3917
3925
|
}, 1e3), B = $({
|
|
3918
3926
|
get: () => T.value,
|
|
3919
|
-
set(
|
|
3920
|
-
T.value =
|
|
3927
|
+
set(V) {
|
|
3928
|
+
T.value = V;
|
|
3921
3929
|
}
|
|
3922
3930
|
});
|
|
3923
|
-
function q(
|
|
3924
|
-
return H !== void 0 && H !== "" &&
|
|
3931
|
+
function q(V, H, w) {
|
|
3932
|
+
return H !== void 0 && H !== "" && V === w && p.value;
|
|
3925
3933
|
}
|
|
3926
3934
|
const F = $(() => {
|
|
3927
|
-
var
|
|
3928
|
-
return ((
|
|
3929
|
-
}), X = $(() => F.value === "" ? null : F.value), R = $(() => F.value === "" ? null : F.value),
|
|
3930
|
-
function de(
|
|
3935
|
+
var V;
|
|
3936
|
+
return ((V = T.value) == null ? void 0 : V.filterValue) ?? "";
|
|
3937
|
+
}), X = $(() => F.value === "" ? null : F.value), R = $(() => F.value === "" ? null : F.value), J = $(() => ol(l.column));
|
|
3938
|
+
function de(V, H) {
|
|
3931
3939
|
var re;
|
|
3932
|
-
let w, U = (
|
|
3940
|
+
let w, U = (V == null ? void 0 : V.value) ?? H;
|
|
3933
3941
|
const Q = ((re = T.value) == null ? void 0 : re.filterValue.toString()) ?? "", h = !!U.trim(), z = !!Q.trim();
|
|
3934
3942
|
if (h === !1 && z && (U = ""), h || z) {
|
|
3935
3943
|
if (T.value)
|
|
@@ -3947,8 +3955,8 @@ const os = {
|
|
|
3947
3955
|
T.value = w;
|
|
3948
3956
|
}
|
|
3949
3957
|
}
|
|
3950
|
-
function I(
|
|
3951
|
-
let w = (
|
|
3958
|
+
function I(V, H) {
|
|
3959
|
+
let w = (V == null ? void 0 : V.value) ?? H ?? 0;
|
|
3952
3960
|
if (typeof w == "string") {
|
|
3953
3961
|
const U = l.column.format === le.INTEGER, Q = (U ? le.DECIMAL : l.column.format) ?? le.DECIMAL;
|
|
3954
3962
|
w = et(w, Q, { additionalOptions: {
|
|
@@ -3958,26 +3966,26 @@ const os = {
|
|
|
3958
3966
|
}
|
|
3959
3967
|
de(null, isNaN(w) ? "" : w.toString());
|
|
3960
3968
|
}
|
|
3961
|
-
function O(
|
|
3969
|
+
function O(V) {
|
|
3962
3970
|
var U;
|
|
3963
3971
|
let H, w = !1;
|
|
3964
3972
|
if (T.value)
|
|
3965
|
-
w = ((U = T.value) == null ? void 0 : U.filterValue) ===
|
|
3966
|
-
else if (
|
|
3973
|
+
w = ((U = T.value) == null ? void 0 : U.filterValue) === V, H = ve(T.value), H.filterValue = V ?? "";
|
|
3974
|
+
else if (V !== null && typeof l.column.field < "u") {
|
|
3967
3975
|
const Q = c();
|
|
3968
3976
|
H = {
|
|
3969
3977
|
filterOnColumn: l.column.field,
|
|
3970
3978
|
filterMethod: oe[Q].replace("_", "").toLowerCase(),
|
|
3971
3979
|
filterOperation: Q,
|
|
3972
|
-
filterValue:
|
|
3980
|
+
filterValue: V
|
|
3973
3981
|
};
|
|
3974
3982
|
} else
|
|
3975
3983
|
return;
|
|
3976
3984
|
w === !1 && (T.value = H);
|
|
3977
3985
|
}
|
|
3978
3986
|
const j = N("");
|
|
3979
|
-
function me(
|
|
3980
|
-
S.value = !1,
|
|
3987
|
+
function me(V) {
|
|
3988
|
+
S.value = !1, V === "Enter" && (S.value = !0, de(null, j.value));
|
|
3981
3989
|
}
|
|
3982
3990
|
ee(() => F.value, () => {
|
|
3983
3991
|
j.value = F.value;
|
|
@@ -3993,29 +4001,29 @@ const os = {
|
|
|
3993
4001
|
dedupe: !0
|
|
3994
4002
|
});
|
|
3995
4003
|
const Ce = cl("cl-ui-grid-id") ?? "cl-ui-grid-filter";
|
|
3996
|
-
return (
|
|
4004
|
+
return (V, H) => {
|
|
3997
4005
|
const w = Se("icon");
|
|
3998
|
-
return
|
|
4006
|
+
return V.initialLoad && m(ol)(V.column) ? (u(), P(m(Tl), {
|
|
3999
4007
|
key: 0,
|
|
4000
4008
|
class: "cl-h-[34px]"
|
|
4001
|
-
})) :
|
|
4009
|
+
})) : J.value ? (u(), b("div", {
|
|
4002
4010
|
key: 1,
|
|
4003
|
-
class:
|
|
4004
|
-
|
|
4011
|
+
class: A(["cl-border cl-border-grey-2 cl-flex cl-relative cl-rounded-md", [
|
|
4012
|
+
V.options.hideGridMobileView || a.value || V.column.type === "boolean" || V.column.type === "slot" && V.column.slotType === "boolean" ? "cl-overflow-visible" : "cl-overflow-hidden lg:cl-overflow-visible"
|
|
4005
4013
|
]])
|
|
4006
4014
|
}, [
|
|
4007
|
-
|
|
4015
|
+
V.column.type === "boolean" || V.column.type === "slot" && V.column.slotType === "boolean" ? (u(), P(wl, {
|
|
4008
4016
|
key: 0,
|
|
4009
4017
|
id: "`${gridId}-${column.name}`",
|
|
4010
|
-
disabled:
|
|
4018
|
+
disabled: V.loading,
|
|
4011
4019
|
"is-grid-filter": !0,
|
|
4012
4020
|
class: "!cl-border-t !cl-min-h-0 !cl-rounded-lg cl-bg-white cl-font-normal",
|
|
4013
4021
|
"model-value": F.value,
|
|
4014
4022
|
"onUpdate:modelValue": H[0] || (H[0] = (U) => de(null, U))
|
|
4015
4023
|
}, {
|
|
4016
|
-
input:
|
|
4024
|
+
input: D(({ selectModalVisible: U, toggleSelectModalState: Q }) => [
|
|
4017
4025
|
k(sl, { onToggleModal: Q }, {
|
|
4018
|
-
default:
|
|
4026
|
+
default: D(({ toggleModalInput: h }) => [
|
|
4019
4027
|
g("div", {
|
|
4020
4028
|
class: "!cl-h-[2rem] cl-bg-white cl-flex cl-font-normal cl-items-center cl-mb-0 cl-rounded-md cl-w-full",
|
|
4021
4029
|
onClick: h
|
|
@@ -4023,7 +4031,7 @@ const os = {
|
|
|
4023
4031
|
g("span", ds, M(F.value === "" ? "" : F.value === "true" ? m(s)("grid.true") : m(s)("grid.false")), 1),
|
|
4024
4032
|
g("div", {
|
|
4025
4033
|
class: "cl-absolute cl-flex cl-items-center cl-right-11 cl-text-grey-3 cl-z-10",
|
|
4026
|
-
disabled:
|
|
4034
|
+
disabled: V.loading
|
|
4027
4035
|
}, [
|
|
4028
4036
|
k(w, {
|
|
4029
4037
|
icon: U ? "ph:caret-up-bold" : "ph:caret-down-bold"
|
|
@@ -4034,12 +4042,12 @@ const os = {
|
|
|
4034
4042
|
_: 2
|
|
4035
4043
|
}, 1032, ["onToggleModal"])
|
|
4036
4044
|
]),
|
|
4037
|
-
default:
|
|
4045
|
+
default: D(({ select: U }) => [
|
|
4038
4046
|
k(ze, {
|
|
4039
4047
|
class: "!cl-py-0 cl-text-xs",
|
|
4040
4048
|
onSelect: (Q) => U("")
|
|
4041
4049
|
}, {
|
|
4042
|
-
default:
|
|
4050
|
+
default: D(() => [
|
|
4043
4051
|
se(" ")
|
|
4044
4052
|
]),
|
|
4045
4053
|
_: 2
|
|
@@ -4049,7 +4057,7 @@ const os = {
|
|
|
4049
4057
|
class: "!cl-py-0 cl-text-xs",
|
|
4050
4058
|
onSelect: (Q) => U("true")
|
|
4051
4059
|
}, {
|
|
4052
|
-
default:
|
|
4060
|
+
default: D(() => [
|
|
4053
4061
|
se(M(m(s)("grid.true")), 1)
|
|
4054
4062
|
]),
|
|
4055
4063
|
_: 2
|
|
@@ -4059,7 +4067,7 @@ const os = {
|
|
|
4059
4067
|
class: "!cl-py-0 cl-text-xs",
|
|
4060
4068
|
onSelect: (Q) => U("false")
|
|
4061
4069
|
}, {
|
|
4062
|
-
default:
|
|
4070
|
+
default: D(() => [
|
|
4063
4071
|
se(M(m(s)("grid.false")), 1)
|
|
4064
4072
|
]),
|
|
4065
4073
|
_: 2
|
|
@@ -4068,82 +4076,82 @@ const os = {
|
|
|
4068
4076
|
_: 1
|
|
4069
4077
|
}, 8, ["disabled", "model-value"])) : p.value ? (u(), b("div", fs, [
|
|
4070
4078
|
k(dt, {
|
|
4071
|
-
id: `${m(Ce)}-${
|
|
4079
|
+
id: `${m(Ce)}-${V.column.name}`,
|
|
4072
4080
|
"model-value": X.value,
|
|
4073
|
-
"time-zone":
|
|
4074
|
-
readonly:
|
|
4075
|
-
type:
|
|
4081
|
+
"time-zone": V.timeZone,
|
|
4082
|
+
readonly: V.loading,
|
|
4083
|
+
type: V.column.type === "slot" ? V.column.slotType : V.column.type,
|
|
4076
4084
|
class: "!cl-h-[2rem] cl-border-none cl-mb-0 cl-text-xs cl-w-full lg:!cl-text-base readonly-filter",
|
|
4077
4085
|
"popover-placement": "bottom-start",
|
|
4078
4086
|
"onUpdate:modelValue": H[1] || (H[1] = (U) => de(null, U ?? ""))
|
|
4079
4087
|
}, null, 8, ["id", "model-value", "time-zone", "readonly", "type"])
|
|
4080
4088
|
])) : r.value ? (u(), b("div", ms, [
|
|
4081
4089
|
k(ct, {
|
|
4082
|
-
id: `${m(Ce)}-${
|
|
4090
|
+
id: `${m(Ce)}-${V.column.name}`,
|
|
4083
4091
|
"model-value": R.value,
|
|
4084
4092
|
class: "[&_.clear-icon]:-cl-pb-4 [&_.icon]:cl-text-sm [&_.range-input]:cl-h-[2rem] cl-border-none cl-h-[2rem] cl-mb-0 cl-w-full cl-z-50",
|
|
4085
|
-
disabled:
|
|
4086
|
-
"time-zone":
|
|
4087
|
-
"quick-date-scope":
|
|
4093
|
+
disabled: V.loading,
|
|
4094
|
+
"time-zone": V.headerDisplayTimezone,
|
|
4095
|
+
"quick-date-scope": V.quickDateScope,
|
|
4088
4096
|
"popover-placement": "bottom-start",
|
|
4089
4097
|
"onUpdate:modelValue": H[2] || (H[2] = (U) => O(U))
|
|
4090
4098
|
}, null, 8, ["id", "model-value", "disabled", "time-zone", "quick-date-scope"])
|
|
4091
|
-
])) :
|
|
4092
|
-
k(
|
|
4093
|
-
id: `${m(Ce)}-${
|
|
4099
|
+
])) : V.column.type === "number" || V.column.type === "slot" && V.column.slotType === "number" ? (u(), b("div", gs, [
|
|
4100
|
+
k(Je, {
|
|
4101
|
+
id: `${m(Ce)}-${V.column.name}`,
|
|
4094
4102
|
"model-value": F.value === "" || isNaN(+F.value) ? null : +F.value,
|
|
4095
4103
|
format: y.value,
|
|
4096
|
-
precision:
|
|
4104
|
+
precision: V.column.format === m(le).INTEGER ? 0 : m(Sl)(y.value, { locale: m(n), additionalOptions: { maximumFractionDigits: V.column.precision ?? 2 } }).maximumFractionDigits,
|
|
4097
4105
|
class: "cl-border-none cl-font-normal cl-h-[2rem] cl-mb-0 cl-text-xs cl-w-full lg:cl-text-base readonly-filter",
|
|
4098
|
-
readonly:
|
|
4106
|
+
readonly: V.loading,
|
|
4099
4107
|
"show-arrows": !1,
|
|
4100
4108
|
"allow-empty": !0,
|
|
4101
4109
|
"onUpdate:modelValue": H[3] || (H[3] = (U) => U !== null ? I(null, U) : de(null, ""))
|
|
4102
4110
|
}, {
|
|
4103
|
-
default:
|
|
4111
|
+
default: D(() => [
|
|
4104
4112
|
vs
|
|
4105
4113
|
]),
|
|
4106
4114
|
_: 1
|
|
4107
4115
|
}, 8, ["id", "model-value", "format", "precision", "readonly"])
|
|
4108
|
-
])) :
|
|
4116
|
+
])) : V.column.type === "string" || V.column.type === "slot" && V.column.slotType === "string" ? (u(), b("div", bs, [
|
|
4109
4117
|
k(Re, {
|
|
4110
|
-
id: `${m(Ce)}-${
|
|
4118
|
+
id: `${m(Ce)}-${V.column.name}`,
|
|
4111
4119
|
modelValue: j.value,
|
|
4112
4120
|
"onUpdate:modelValue": [
|
|
4113
4121
|
H[4] || (H[4] = (U) => j.value = U),
|
|
4114
4122
|
H[5] || (H[5] = (U) => de(null, U))
|
|
4115
4123
|
],
|
|
4116
4124
|
class: "cl-border-none cl-font-normal cl-h-[2rem] cl-px-3 cl-text-xs lg:cl-text-base readonly-filter",
|
|
4117
|
-
readonly:
|
|
4125
|
+
readonly: V.loading,
|
|
4118
4126
|
onKeySinglePress: me
|
|
4119
4127
|
}, {
|
|
4120
|
-
default:
|
|
4128
|
+
default: D(() => [
|
|
4121
4129
|
hs
|
|
4122
4130
|
]),
|
|
4123
4131
|
_: 1
|
|
4124
4132
|
}, 8, ["id", "modelValue", "readonly"])
|
|
4125
4133
|
])) : a.value ? (u(), P(wl, {
|
|
4126
4134
|
key: 5,
|
|
4127
|
-
id: `${m(Ce)}-${
|
|
4135
|
+
id: `${m(Ce)}-${V.column.name}`,
|
|
4128
4136
|
"model-value": F.value,
|
|
4129
4137
|
class: "!cl-border-t !cl-max-h-52 !cl-min-h-0 !cl-rounded-lg cl-bg-white cl-font-normal",
|
|
4130
|
-
disabled:
|
|
4138
|
+
disabled: V.loading,
|
|
4131
4139
|
"is-grid-filter": !0,
|
|
4132
4140
|
"onUpdate:modelValue": H[6] || (H[6] = (U) => i.value ? I(null, U) : de(null, U))
|
|
4133
4141
|
}, {
|
|
4134
|
-
input:
|
|
4142
|
+
input: D(({ selectModalVisible: U, toggleSelectModalState: Q }) => [
|
|
4135
4143
|
k(sl, { onToggleModal: Q }, {
|
|
4136
|
-
default:
|
|
4144
|
+
default: D(({ toggleModalInput: h }) => {
|
|
4137
4145
|
var z, Z;
|
|
4138
4146
|
return [
|
|
4139
4147
|
g("div", {
|
|
4140
4148
|
class: "!cl-h-[2rem] cl-bg-white cl-flex cl-font-normal cl-items-center cl-mb-0 cl-rounded-md cl-w-full",
|
|
4141
4149
|
onClick: h
|
|
4142
4150
|
}, [
|
|
4143
|
-
g("span", ws, M(m(s)(((Z = (z =
|
|
4151
|
+
g("span", ws, M(m(s)(((Z = (z = V.column.listEntries) == null ? void 0 : z.find((re) => re.value.toString() === F.value)) == null ? void 0 : Z.translationKey) ?? "")), 1),
|
|
4144
4152
|
g("div", {
|
|
4145
4153
|
class: "cl-absolute cl-flex cl-items-center cl-right-11 cl-text-grey-3 cl-z-10",
|
|
4146
|
-
disabled:
|
|
4154
|
+
disabled: V.loading
|
|
4147
4155
|
}, [
|
|
4148
4156
|
k(w, {
|
|
4149
4157
|
icon: U ? "ph:caret-up-bold" : "ph:caret-down-bold"
|
|
@@ -4155,23 +4163,23 @@ const os = {
|
|
|
4155
4163
|
_: 2
|
|
4156
4164
|
}, 1032, ["onToggleModal"])
|
|
4157
4165
|
]),
|
|
4158
|
-
default:
|
|
4166
|
+
default: D(({ select: U }) => [
|
|
4159
4167
|
k(ze, {
|
|
4160
4168
|
class: "!cl-py-0",
|
|
4161
4169
|
onSelect: (Q) => U("")
|
|
4162
4170
|
}, {
|
|
4163
|
-
default:
|
|
4171
|
+
default: D(() => [
|
|
4164
4172
|
se(" ")
|
|
4165
4173
|
]),
|
|
4166
4174
|
_: 2
|
|
4167
4175
|
}, 1032, ["onSelect"]),
|
|
4168
|
-
(u(!0), b(W, null,
|
|
4176
|
+
(u(!0), b(W, null, _(V.column.listEntries ?? [], (Q) => (u(), P(ze, {
|
|
4169
4177
|
key: Q.value,
|
|
4170
4178
|
"is-selected": F.value === Q.value.toString(),
|
|
4171
4179
|
class: "cl-text-xs",
|
|
4172
4180
|
onSelect: (h) => U(Q.value)
|
|
4173
4181
|
}, {
|
|
4174
|
-
default:
|
|
4182
|
+
default: D(() => [
|
|
4175
4183
|
se(M(m(s)(Q.translationKey)), 1)
|
|
4176
4184
|
]),
|
|
4177
4185
|
_: 2
|
|
@@ -4183,15 +4191,15 @@ const os = {
|
|
|
4183
4191
|
key: 6,
|
|
4184
4192
|
filter: B.value,
|
|
4185
4193
|
"onUpdate:filter": H[7] || (H[7] = (U) => B.value = U),
|
|
4186
|
-
loading:
|
|
4187
|
-
column:
|
|
4194
|
+
loading: V.loading,
|
|
4195
|
+
column: V.column,
|
|
4188
4196
|
"default-operation": c(),
|
|
4189
4197
|
onSelectionChanged: H[8] || (H[8] = (U) => S.value = !0)
|
|
4190
4198
|
}, null, 8, ["filter", "loading", "column", "default-operation"]))
|
|
4191
4199
|
], 2)) : L("", !0);
|
|
4192
4200
|
};
|
|
4193
4201
|
}
|
|
4194
|
-
}), Cs = /* @__PURE__ */
|
|
4202
|
+
}), Cs = /* @__PURE__ */ ye(ks, [["__scopeId", "data-v-59ca84b3"]]), Ts = ["onClick"], Ss = { key: 1 }, qs = ["onClick"], Os = { class: "cl-font-normal cl-mr-1" }, Ds = /* @__PURE__ */ G({
|
|
4195
4203
|
__name: "cl-ui-grid-header",
|
|
4196
4204
|
props: {
|
|
4197
4205
|
request: {},
|
|
@@ -4232,18 +4240,18 @@ const os = {
|
|
|
4232
4240
|
}
|
|
4233
4241
|
}
|
|
4234
4242
|
return (r, a) => (u(), b("thead", {
|
|
4235
|
-
class:
|
|
4243
|
+
class: A(["-cl-top-1 cl-bg-white cl-z-20", [
|
|
4236
4244
|
r.options.hideGridMobileView ? "cl-relative" : "cl-shadow-sm cl-sticky lg:cl-bg-transparent lg:cl-relative lg:cl-shadow-none"
|
|
4237
4245
|
]])
|
|
4238
4246
|
}, [
|
|
4239
4247
|
g("tr", {
|
|
4240
|
-
class:
|
|
4248
|
+
class: A(["cl-table-row", {
|
|
4241
4249
|
"cl-hidden lg:cl-table-row": r.options.hideGridMobileView === !1
|
|
4242
4250
|
}])
|
|
4243
4251
|
}, [
|
|
4244
|
-
(u(!0), b(W, null,
|
|
4252
|
+
(u(!0), b(W, null, _(r.columns, (i, f) => (u(), b("th", {
|
|
4245
4253
|
key: f,
|
|
4246
|
-
class:
|
|
4254
|
+
class: A(["cl-text-grey-3 cl-text-sm", {
|
|
4247
4255
|
"cl-cursor-pointer": m(el)(i) && r.loading === !1
|
|
4248
4256
|
}]),
|
|
4249
4257
|
onClick: (y) => m(el)(i) && r.loading === !1 ? d(i.field) : () => {
|
|
@@ -4251,13 +4259,13 @@ const os = {
|
|
|
4251
4259
|
}, [
|
|
4252
4260
|
r.initialLoad ? (u(), P(m(yl), { key: 0 })) : (u(), b("div", Ss, [
|
|
4253
4261
|
se(M(i.caption) + " ", 1),
|
|
4254
|
-
te(k(m(
|
|
4262
|
+
te(k(m(x), {
|
|
4255
4263
|
class: "cl-inline-block",
|
|
4256
4264
|
icon: "ph:caret-up"
|
|
4257
4265
|
}, null, 512), [
|
|
4258
4266
|
[ue, c(i, !0)]
|
|
4259
4267
|
]),
|
|
4260
|
-
te(k(m(
|
|
4268
|
+
te(k(m(x), {
|
|
4261
4269
|
class: "cl-inline-block",
|
|
4262
4270
|
icon: "ph:caret-down"
|
|
4263
4271
|
}, null, 512), [
|
|
@@ -4267,26 +4275,26 @@ const os = {
|
|
|
4267
4275
|
], 10, Ts))), 128))
|
|
4268
4276
|
], 2),
|
|
4269
4277
|
g("tr", {
|
|
4270
|
-
class:
|
|
4278
|
+
class: A(["cl-border cl-border-grey-2 cl-flex cl-flex-wrap cl-p-2 lg:cl-border-none lg:cl-p-0 lg:cl-table-row", {
|
|
4271
4279
|
"cl-hidden lg:cl-table-row": !r.filterPanelOpen && r.options.hideGridMobileView === !1,
|
|
4272
4280
|
"cl-border-none cl-p-0 cl-table-row": r.options.hideGridMobileView
|
|
4273
4281
|
}])
|
|
4274
4282
|
}, [
|
|
4275
4283
|
g("div", {
|
|
4276
|
-
class:
|
|
4284
|
+
class: A(["cl-flex cl-justify-end cl-w-full lg:cl-hidden", {
|
|
4277
4285
|
"cl-hidden": r.options.hideGridMobileView
|
|
4278
4286
|
}])
|
|
4279
4287
|
}, [
|
|
4280
|
-
k(m(
|
|
4288
|
+
k(m(x), {
|
|
4281
4289
|
class: "cl-text-grey-4 hover:cl-cursor-pointer hover:cl-text-link-default",
|
|
4282
4290
|
icon: "ph:x",
|
|
4283
4291
|
size: 16,
|
|
4284
4292
|
onClick: a[0] || (a[0] = ae((i) => r.loading === !1 ? r.$emit("update:filterPanelOpen", !1) : void 0, ["prevent"]))
|
|
4285
4293
|
})
|
|
4286
4294
|
], 2),
|
|
4287
|
-
(u(!0), b(W, null,
|
|
4295
|
+
(u(!0), b(W, null, _(r.columns, (i, f) => (u(), b("th", {
|
|
4288
4296
|
key: f,
|
|
4289
|
-
class:
|
|
4297
|
+
class: A(["cl-py-1 cl-text-xs lg:cl-table-cell lg:cl-w-auto", [
|
|
4290
4298
|
r.options.hideGridMobileView ? "cl-table-cell cl-w-auto" : "cl-grid cl-grid-cols-4 cl-w-full",
|
|
4291
4299
|
{
|
|
4292
4300
|
"cl-hidden": !m(ol)(i) && r.options.hideGridMobileView == !1
|
|
@@ -4294,27 +4302,27 @@ const os = {
|
|
|
4294
4302
|
]])
|
|
4295
4303
|
}, [
|
|
4296
4304
|
g("div", {
|
|
4297
|
-
class:
|
|
4305
|
+
class: A(["cl-col-span-2 lg:cl-hidden", {
|
|
4298
4306
|
"cl-hidden": r.options.hideGridMobileView
|
|
4299
4307
|
}])
|
|
4300
4308
|
}, M(i.caption), 3),
|
|
4301
4309
|
m(el)(i) ? (u(), b("div", {
|
|
4302
4310
|
key: 0,
|
|
4303
|
-
class:
|
|
4311
|
+
class: A(["cl-col-span-2 cl-gap-1 cl-span lg:cl-hidden", {
|
|
4304
4312
|
"cl-hidden": r.options.hideGridMobileView
|
|
4305
4313
|
}]),
|
|
4306
4314
|
onClick: (y) => r.loading === !1 ? d(i.field) : void 0
|
|
4307
4315
|
}, [
|
|
4308
4316
|
g("span", Os, M(m(s)("grid.sortBy")), 1),
|
|
4309
|
-
c(i, !0) ? (u(), P(m(
|
|
4317
|
+
c(i, !0) ? (u(), P(m(x), {
|
|
4310
4318
|
key: 0,
|
|
4311
4319
|
class: "cl-cursor-pointer cl-inline-block",
|
|
4312
4320
|
icon: "ph:caret-up"
|
|
4313
|
-
})) : c(i, !1) ? (u(), P(m(
|
|
4321
|
+
})) : c(i, !1) ? (u(), P(m(x), {
|
|
4314
4322
|
key: 1,
|
|
4315
4323
|
class: "cl-cursor-pointer cl-inline-block",
|
|
4316
4324
|
icon: "ph:caret-down"
|
|
4317
|
-
})) : (u(), P(m(
|
|
4325
|
+
})) : (u(), P(m(x), {
|
|
4318
4326
|
key: 2,
|
|
4319
4327
|
class: "cl-cursor-pointer cl-inline-block",
|
|
4320
4328
|
icon: "ph:minus"
|
|
@@ -4371,7 +4379,7 @@ const os = {
|
|
|
4371
4379
|
const d = ll(c, 1e3), { t: p } = ce();
|
|
4372
4380
|
return (r, a) => {
|
|
4373
4381
|
const i = Se("icon");
|
|
4374
|
-
return
|
|
4382
|
+
return E(r.$slots, "search", ie(pe({ searchValue: e.value, performSearch: c })), () => [
|
|
4375
4383
|
g("div", Es, [
|
|
4376
4384
|
g("div", As, [
|
|
4377
4385
|
k(Re, {
|
|
@@ -4383,9 +4391,9 @@ const os = {
|
|
|
4383
4391
|
class: "cl-box-border cl-font-light cl-p-2 cl-placeholder-grey-3 cl-pr-9 cl-text-sm",
|
|
4384
4392
|
type: "search",
|
|
4385
4393
|
placeholder: r.columns.length > 4 ? m(p)("grid.search") : m(p)("grid.searchSpecific", { columns: r.columns.map((f) => f.caption).join(", ") }),
|
|
4386
|
-
onKeypress: a[1] || (a[1] =
|
|
4394
|
+
onKeypress: a[1] || (a[1] = we((f) => c(e.value), ["enter"]))
|
|
4387
4395
|
}, {
|
|
4388
|
-
default:
|
|
4396
|
+
default: D(() => [
|
|
4389
4397
|
Vs
|
|
4390
4398
|
]),
|
|
4391
4399
|
_: 1
|
|
@@ -4429,17 +4437,17 @@ const os = {
|
|
|
4429
4437
|
disabled: r.loading,
|
|
4430
4438
|
onClick: a[0] || (a[0] = ae((i) => n.value = !0, ["prevent"]))
|
|
4431
4439
|
}), {
|
|
4432
|
-
default:
|
|
4440
|
+
default: D(() => [
|
|
4433
4441
|
se(M(m(s)("grid.manageView")), 1)
|
|
4434
4442
|
]),
|
|
4435
4443
|
_: 1
|
|
4436
4444
|
}, 16, ["disabled"]),
|
|
4437
4445
|
(u(), P(kl, { to: "body" }, [
|
|
4438
4446
|
k(Ie, { name: "slide-left" }, {
|
|
4439
|
-
default:
|
|
4447
|
+
default: D(() => [
|
|
4440
4448
|
te(g("div", Ms, [
|
|
4441
4449
|
g("div", Ns, [
|
|
4442
|
-
k(m(
|
|
4450
|
+
k(m(x), {
|
|
4443
4451
|
class: "cl-absolute cl-cursor-pointer cl-right-3 cl-text-off-white cl-top-3",
|
|
4444
4452
|
icon: "ph:x",
|
|
4445
4453
|
size: 16,
|
|
@@ -4452,7 +4460,7 @@ const os = {
|
|
|
4452
4460
|
g("strong", Bs, M(m(s)("grid.visible")), 1),
|
|
4453
4461
|
g("strong", Fs, M(m(s)("grid.order")), 1)
|
|
4454
4462
|
]),
|
|
4455
|
-
(u(!0), b(W, null,
|
|
4463
|
+
(u(!0), b(W, null, _(r.columns, (i, f) => (u(), b("li", {
|
|
4456
4464
|
key: f,
|
|
4457
4465
|
class: "cl-border-b cl-border-grey-2 cl-flex cl-py-2 cl-text-sm cl-w-full"
|
|
4458
4466
|
}, [
|
|
@@ -4465,13 +4473,13 @@ const os = {
|
|
|
4465
4473
|
]),
|
|
4466
4474
|
g("div", Gs, [
|
|
4467
4475
|
i.visible === void 0 || i.visible === !0 ? (u(), b(W, { key: 0 }, [
|
|
4468
|
-
f !== 0 ? (u(), P(m(
|
|
4476
|
+
f !== 0 ? (u(), P(m(x), {
|
|
4469
4477
|
key: 0,
|
|
4470
4478
|
class: "cl-cursor-pointer cl-inline-block cl-mr-2",
|
|
4471
4479
|
icon: "ph:arrow-left",
|
|
4472
4480
|
onClick: (y) => p(f, "down")
|
|
4473
4481
|
}, null, 8, ["onClick"])) : L("", !0),
|
|
4474
|
-
f !== r.columns.length - 1 ? (u(), P(m(
|
|
4482
|
+
f !== r.columns.length - 1 ? (u(), P(m(x), {
|
|
4475
4483
|
key: 1,
|
|
4476
4484
|
class: "cl-cursor-pointer cl-inline-block",
|
|
4477
4485
|
icon: "ph:arrow-right",
|
|
@@ -4577,9 +4585,9 @@ const os = {
|
|
|
4577
4585
|
filters: O
|
|
4578
4586
|
};
|
|
4579
4587
|
}
|
|
4580
|
-
}), X = N(((de = l.request.filters.find((I) => I.filterMethod === "andcontains" || I.filterOperation === oe.AND_CONTAINS)) == null ? void 0 : de.filterValue) ?? ""), R = $(() => l.columns.filter((I) => (I.type === "string" || I.type === "slot" && I.slotType === "string") && I.searchable)),
|
|
4588
|
+
}), X = N(((de = l.request.filters.find((I) => I.filterMethod === "andcontains" || I.filterOperation === oe.AND_CONTAINS)) == null ? void 0 : de.filterValue) ?? ""), R = $(() => l.columns.filter((I) => (I.type === "string" || I.type === "slot" && I.slotType === "string") && I.searchable)), J = N(!0);
|
|
4581
4589
|
return ee(() => l.loading, () => {
|
|
4582
|
-
|
|
4590
|
+
J.value = !1;
|
|
4583
4591
|
}, {
|
|
4584
4592
|
once: !0
|
|
4585
4593
|
}), We(() => {
|
|
@@ -4591,7 +4599,7 @@ const os = {
|
|
|
4591
4599
|
((O = l.data) == null ? void 0 : O.results.length) === 0 && f.value.pageNumber > 1 && f.value.pageNumber--;
|
|
4592
4600
|
}
|
|
4593
4601
|
}), (I, O) => (u(), b("div", Ws, [
|
|
4594
|
-
|
|
4602
|
+
J.value && R.value.length > 0 ? (u(), P(m(Tl), {
|
|
4595
4603
|
key: 0,
|
|
4596
4604
|
class: "cl-h-[39px] cl-mb-2"
|
|
4597
4605
|
})) : R.value.length > 0 ? (u(), P(Is, {
|
|
@@ -4602,14 +4610,14 @@ const os = {
|
|
|
4602
4610
|
"onUpdate:request": O[1] || (O[1] = (j) => f.value = j),
|
|
4603
4611
|
columns: R.value
|
|
4604
4612
|
}, {
|
|
4605
|
-
search:
|
|
4606
|
-
|
|
4613
|
+
search: D((j) => [
|
|
4614
|
+
E(I.$slots, "search", ie(pe(j)))
|
|
4607
4615
|
]),
|
|
4608
4616
|
_: 3
|
|
4609
4617
|
}, 8, ["search-value", "request", "columns"])) : L("", !0),
|
|
4610
4618
|
k(Ie, { name: "fade" }, {
|
|
4611
|
-
default:
|
|
4612
|
-
I.loading &&
|
|
4619
|
+
default: D(() => [
|
|
4620
|
+
I.loading && J.value === !1 ? (u(), b("div", Ks, [
|
|
4613
4621
|
k(Ye, { class: "after:!cl-h-20 after:!cl-w-20 cl-h-20 cl-w-20" })
|
|
4614
4622
|
])) : L("", !0)
|
|
4615
4623
|
]),
|
|
@@ -4624,13 +4632,13 @@ const os = {
|
|
|
4624
4632
|
options: q.value,
|
|
4625
4633
|
request: f.value,
|
|
4626
4634
|
loading: I.loading,
|
|
4627
|
-
"initial-load":
|
|
4635
|
+
"initial-load": J.value,
|
|
4628
4636
|
onClearFilters: y
|
|
4629
4637
|
}, {
|
|
4630
|
-
"additional-grid-actions":
|
|
4631
|
-
|
|
4638
|
+
"additional-grid-actions": D((j) => [
|
|
4639
|
+
E(I.$slots, "additional-grid-actions", ie(pe(j)))
|
|
4632
4640
|
]),
|
|
4633
|
-
"view-manager":
|
|
4641
|
+
"view-manager": D(() => [
|
|
4634
4642
|
k(Zs, {
|
|
4635
4643
|
columns: d.value,
|
|
4636
4644
|
"onUpdate:columns": O[2] || (O[2] = (j) => d.value = j),
|
|
@@ -4641,16 +4649,16 @@ const os = {
|
|
|
4641
4649
|
}, 8, ["edit-mode", "filter-panel-open", "columns", "options", "request", "loading", "initial-load"]),
|
|
4642
4650
|
g("div", Qs, [
|
|
4643
4651
|
g("table", {
|
|
4644
|
-
class:
|
|
4645
|
-
"cl-opacity-40 cl-pointer-events-none": I.loading &&
|
|
4652
|
+
class: A(["cl-delay-75 cl-min-h-[276px] cl-overflow-x-auto cl-overscroll-x-none cl-text-left cl-transition-opacity cl-w-full", {
|
|
4653
|
+
"cl-opacity-40 cl-pointer-events-none": I.loading && J.value === !1
|
|
4646
4654
|
}])
|
|
4647
4655
|
}, [
|
|
4648
4656
|
g("colgroup", {
|
|
4649
|
-
class:
|
|
4657
|
+
class: A([
|
|
4650
4658
|
I.options.hideGridMobileView ? "cl-table-column-group" : "cl-hidden lg:cl-table-column-group"
|
|
4651
4659
|
])
|
|
4652
4660
|
}, [
|
|
4653
|
-
(u(!0), b(W, null,
|
|
4661
|
+
(u(!0), b(W, null, _(p.value, (j, me) => (u(), b("col", {
|
|
4654
4662
|
key: me,
|
|
4655
4663
|
style: Ql(i(j.name)),
|
|
4656
4664
|
span: 1
|
|
@@ -4664,7 +4672,7 @@ const os = {
|
|
|
4664
4672
|
columns: p.value,
|
|
4665
4673
|
options: q.value,
|
|
4666
4674
|
loading: I.loading,
|
|
4667
|
-
"initial-load":
|
|
4675
|
+
"initial-load": J.value,
|
|
4668
4676
|
"time-zone": I.timeZone,
|
|
4669
4677
|
"header-display-timezone": n.value,
|
|
4670
4678
|
onPerformDataRequest: O[7] || (O[7] = (j) => e("data-request"))
|
|
@@ -4675,7 +4683,7 @@ const os = {
|
|
|
4675
4683
|
data: v.value,
|
|
4676
4684
|
"time-zone": I.timeZone,
|
|
4677
4685
|
loading: I.loading,
|
|
4678
|
-
"initial-load":
|
|
4686
|
+
"initial-load": J.value,
|
|
4679
4687
|
"search-value": X.value,
|
|
4680
4688
|
options: q.value,
|
|
4681
4689
|
"edit-mode": C.value,
|
|
@@ -4683,11 +4691,11 @@ const os = {
|
|
|
4683
4691
|
onRowEdit: O[8] || (O[8] = (j) => I.$emit("row-edit", j)),
|
|
4684
4692
|
onRowEditCancelled: O[9] || (O[9] = (j) => I.$emit("row-edit-cancelled", j)),
|
|
4685
4693
|
onRowSelect: O[10] || (O[10] = (j) => I.$emit("row-select", j))
|
|
4686
|
-
},
|
|
4687
|
-
|
|
4694
|
+
}, he({ _: 2 }, [
|
|
4695
|
+
_(I.$slots, (j, me) => ({
|
|
4688
4696
|
name: me,
|
|
4689
|
-
fn:
|
|
4690
|
-
|
|
4697
|
+
fn: D((ge) => [
|
|
4698
|
+
E(I.$slots, me, Y(ge, { disabled: I.loading }))
|
|
4691
4699
|
])
|
|
4692
4700
|
}))
|
|
4693
4701
|
]), 1032, ["columns", "request", "data", "time-zone", "loading", "initial-load", "search-value", "options", "edit-mode"])
|
|
@@ -4697,7 +4705,7 @@ const os = {
|
|
|
4697
4705
|
key: 2,
|
|
4698
4706
|
request: f.value,
|
|
4699
4707
|
loading: I.loading,
|
|
4700
|
-
"initial-load":
|
|
4708
|
+
"initial-load": J.value,
|
|
4701
4709
|
"show-unsaved-changes-warning": C.value && q.value.disableUnsavedChangesWarning === !1,
|
|
4702
4710
|
data: I.data,
|
|
4703
4711
|
"onUpdate:request": O[11] || (O[11] = (j) => {
|
|
@@ -4706,7 +4714,7 @@ const os = {
|
|
|
4706
4714
|
}, null, 8, ["request", "loading", "initial-load", "show-unsaved-changes-warning", "data"])) : L("", !0)
|
|
4707
4715
|
]));
|
|
4708
4716
|
}
|
|
4709
|
-
}),
|
|
4717
|
+
}), xs = { class: "cl-relative" }, Js = ["id"], _s = /* @__PURE__ */ G({
|
|
4710
4718
|
inheritAttrs: !1,
|
|
4711
4719
|
__name: "cl-ui-grid-lite",
|
|
4712
4720
|
props: /* @__PURE__ */ fe({
|
|
@@ -4742,7 +4750,7 @@ const os = {
|
|
|
4742
4750
|
f.value = !1;
|
|
4743
4751
|
}, {
|
|
4744
4752
|
once: !0
|
|
4745
|
-
}), (y, S) => (u(), b("div",
|
|
4753
|
+
}), (y, S) => (u(), b("div", xs, [
|
|
4746
4754
|
g("div", Y({ id: m(c) }, n, {
|
|
4747
4755
|
class: ["cl-border cl-border-off-white cl-grid cl-overflow-hidden cl-rounded cl-text-base cl-w-full", {
|
|
4748
4756
|
"cl-opacity-60": y.loading,
|
|
@@ -4770,11 +4778,11 @@ const os = {
|
|
|
4770
4778
|
"page-size": e.value.pageSize,
|
|
4771
4779
|
"time-zone": y.timeZone,
|
|
4772
4780
|
"initial-load": f.value
|
|
4773
|
-
},
|
|
4774
|
-
|
|
4781
|
+
}, he({ _: 2 }, [
|
|
4782
|
+
_(y.$slots, (v, T) => ({
|
|
4775
4783
|
name: T,
|
|
4776
|
-
fn:
|
|
4777
|
-
|
|
4784
|
+
fn: D((C) => [
|
|
4785
|
+
E(y.$slots, T, ie(pe(C)))
|
|
4778
4786
|
])
|
|
4779
4787
|
}))
|
|
4780
4788
|
]), 1032, ["grid-id", "columns", "data", "options", "page-size", "time-zone", "initial-load"])
|
|
@@ -4789,7 +4797,7 @@ const os = {
|
|
|
4789
4797
|
"initial-load": f.value,
|
|
4790
4798
|
"is-small-grid": i.value.smallGridText
|
|
4791
4799
|
}, null, 8, ["request", "inert", "grid-id", "data", "initial-load", "is-small-grid"])) : L("", !0)
|
|
4792
|
-
], 16,
|
|
4800
|
+
], 16, Js),
|
|
4793
4801
|
y.loading && !f.value ? (u(), P(Ye, {
|
|
4794
4802
|
key: 0,
|
|
4795
4803
|
class: "after:!cl-h-14 after:!cl-w-14 cl-absolute cl-left-1/2 cl-top-20"
|
|
@@ -4832,7 +4840,7 @@ const Xs = { class: "cl-col-[1_/_-1] cl-grid cl-grid-cols-subgrid" }, er = ["id"
|
|
|
4832
4840
|
return (n, c) => {
|
|
4833
4841
|
const d = Se("icon");
|
|
4834
4842
|
return u(), b("div", Xs, [
|
|
4835
|
-
(u(!0), b(W, null,
|
|
4843
|
+
(u(!0), b(W, null, _(n.columns, (p, r) => (u(), b("div", Y(n.$attrs, {
|
|
4836
4844
|
id: `${n.gridId}-header-${p.name}`,
|
|
4837
4845
|
key: p.name,
|
|
4838
4846
|
class: ["cl-border-grey-1 cl-flex cl-font-bold cl-gap-1 cl-items-center cl-justify-between cl-p-2", [
|
|
@@ -4848,12 +4856,12 @@ const Xs = { class: "cl-col-[1_/_-1] cl-grid cl-grid-cols-subgrid" }, er = ["id"
|
|
|
4848
4856
|
}
|
|
4849
4857
|
}), [
|
|
4850
4858
|
g("span", {
|
|
4851
|
-
class:
|
|
4859
|
+
class: A(["cl-tracking-wide cl-whitespace-nowrap", {
|
|
4852
4860
|
"cl-opacity-0": n.initialLoad
|
|
4853
4861
|
}])
|
|
4854
4862
|
}, M(p.caption ? m(l)(p.caption) : p.name), 3),
|
|
4855
4863
|
te(g("div", {
|
|
4856
|
-
class:
|
|
4864
|
+
class: A(["cl-px-0.5 cl-py-1 cl-rounded hover:cl-bg-link-lighter", {
|
|
4857
4865
|
"cl-bg-link-lighter": e(p, !1) || e(p, !0),
|
|
4858
4866
|
"cl-opacity-0": n.initialLoad
|
|
4859
4867
|
}])
|
|
@@ -4885,13 +4893,13 @@ const Xs = { class: "cl-col-[1_/_-1] cl-grid cl-grid-cols-subgrid" }, er = ["id"
|
|
|
4885
4893
|
columnCount: {}
|
|
4886
4894
|
},
|
|
4887
4895
|
setup(o) {
|
|
4888
|
-
return (t, l) => (u(!0), b(W, null,
|
|
4896
|
+
return (t, l) => (u(!0), b(W, null, _(t.pageSize, (e) => (u(), b("div", {
|
|
4889
4897
|
key: e,
|
|
4890
4898
|
class: "cl-col-[1_/_-1] cl-grid cl-grid-cols-subgrid"
|
|
4891
4899
|
}, [
|
|
4892
|
-
(u(!0), b(W, null,
|
|
4900
|
+
(u(!0), b(W, null, _(t.columnCount, (s) => (u(), b("div", {
|
|
4893
4901
|
key: s,
|
|
4894
|
-
class:
|
|
4902
|
+
class: A(["cl-border-off-white cl-p-2 cl-w-full", {
|
|
4895
4903
|
"cl-border-r": s !== s - 1
|
|
4896
4904
|
}])
|
|
4897
4905
|
}, " ", 2))), 128))
|
|
@@ -4909,7 +4917,7 @@ const Xs = { class: "cl-col-[1_/_-1] cl-grid cl-grid-cols-subgrid" }, er = ["id"
|
|
|
4909
4917
|
},
|
|
4910
4918
|
setup(o) {
|
|
4911
4919
|
return (t, l) => (u(), b("div", lr, [
|
|
4912
|
-
(u(!0), b(W, null,
|
|
4920
|
+
(u(!0), b(W, null, _(t.columns, (e, s) => (u(), P(m(ht), Y(t.$attrs, {
|
|
4913
4921
|
id: `${t.gridId}-c${s}`,
|
|
4914
4922
|
key: e.name,
|
|
4915
4923
|
data: t.row,
|
|
@@ -4919,11 +4927,11 @@ const Xs = { class: "cl-col-[1_/_-1] cl-grid cl-grid-cols-subgrid" }, er = ["id"
|
|
|
4919
4927
|
class: ["cl-border-off-white", {
|
|
4920
4928
|
"cl-border-r": s !== t.columns.length - 1
|
|
4921
4929
|
}]
|
|
4922
|
-
}),
|
|
4923
|
-
|
|
4930
|
+
}), he({ _: 2 }, [
|
|
4931
|
+
_(t.$slots, (n, c) => ({
|
|
4924
4932
|
name: c,
|
|
4925
|
-
fn:
|
|
4926
|
-
|
|
4933
|
+
fn: D((d) => [
|
|
4934
|
+
E(t.$slots, c, ie(pe(d)))
|
|
4927
4935
|
])
|
|
4928
4936
|
}))
|
|
4929
4937
|
]), 1040, ["id", "data", "time-zone", "column", "is-small-grid", "class"]))), 128))
|
|
@@ -4951,20 +4959,20 @@ const Xs = { class: "cl-col-[1_/_-1] cl-grid cl-grid-cols-subgrid" }, er = ["id"
|
|
|
4951
4959
|
"column-count": n.columns.length
|
|
4952
4960
|
}, null, 8, ["page-size", "column-count"])) : (((d = n.data) == null ? void 0 : d.results.length) ?? 0) < 1 && n.initialLoad === !1 ? (u(), b("div", {
|
|
4953
4961
|
key: 1,
|
|
4954
|
-
class:
|
|
4962
|
+
class: A(["cl-col-[1_/_-1] cl-text-center cl-w-full", [
|
|
4955
4963
|
e.value ? "cl-p-1" : "cl-p-2"
|
|
4956
4964
|
]])
|
|
4957
4965
|
}, [
|
|
4958
|
-
|
|
4966
|
+
E(n.$slots, "noData", {}, () => [
|
|
4959
4967
|
se(M(m(l)("grid.noData")), 1)
|
|
4960
4968
|
])
|
|
4961
|
-
], 2)) : (u(!0), b(W, { key: 2 },
|
|
4969
|
+
], 2)) : (u(!0), b(W, { key: 2 }, _(n.data.results, (p, r) => (u(), P(vt, {
|
|
4962
4970
|
id: `${n.gridId}-r${r}`,
|
|
4963
4971
|
key: r,
|
|
4964
4972
|
"grid-id": `${n.gridId}-r${r}`,
|
|
4965
4973
|
row: p,
|
|
4966
4974
|
columns: n.columns,
|
|
4967
|
-
class:
|
|
4975
|
+
class: A(
|
|
4968
4976
|
{
|
|
4969
4977
|
"cl-border-b cl-border-off-white": r !== n.data.results.length - 1,
|
|
4970
4978
|
"cl-bg-off-white cl-bg-opacity-75": r % 2 != 0 && s.value
|
|
@@ -4972,11 +4980,11 @@ const Xs = { class: "cl-col-[1_/_-1] cl-grid cl-grid-cols-subgrid" }, er = ["id"
|
|
|
4972
4980
|
),
|
|
4973
4981
|
"time-zone": n.timeZone,
|
|
4974
4982
|
"is-small-grid": e.value
|
|
4975
|
-
},
|
|
4976
|
-
|
|
4983
|
+
}, he({ _: 2 }, [
|
|
4984
|
+
_(n.$slots, (a, i) => ({
|
|
4977
4985
|
name: i,
|
|
4978
|
-
fn:
|
|
4979
|
-
|
|
4986
|
+
fn: D((f) => [
|
|
4987
|
+
E(n.$slots, i, ie(pe(f)))
|
|
4980
4988
|
])
|
|
4981
4989
|
}))
|
|
4982
4990
|
]), 1032, ["id", "grid-id", "row", "columns", "class", "time-zone", "is-small-grid"]))), 128))
|
|
@@ -5031,7 +5039,7 @@ const Xs = { class: "cl-col-[1_/_-1] cl-grid cl-grid-cols-subgrid" }, er = ["id"
|
|
|
5031
5039
|
}
|
|
5032
5040
|
function p() {
|
|
5033
5041
|
let a = t.data[t.column.field];
|
|
5034
|
-
return t.column.maxLength && (a = a.trimToLength(t.column.maxLength, t.column.format !== void 0 ? t.column.format === "ellipsis" : !1)), t.column.format === "wrap-text" && (a = `<span class="cl-break-words cl-whitespace-pre-wrap">${a}</span>`), a;
|
|
5042
|
+
return a ? (t.column.maxLength && (a = a.trimToLength(t.column.maxLength, t.column.format !== void 0 ? t.column.format === "ellipsis" : !1)), t.column.format === "wrap-text" && (a = `<span class="cl-break-words cl-whitespace-pre-wrap">${a}</span>`), a) : "";
|
|
5035
5043
|
}
|
|
5036
5044
|
function r(a, i) {
|
|
5037
5045
|
return t.column.format === le.INTEGER ? Ee(a, le.DECIMAL, {
|
|
@@ -5055,7 +5063,7 @@ const Xs = { class: "cl-col-[1_/_-1] cl-grid cl-grid-cols-subgrid" }, er = ["id"
|
|
|
5055
5063
|
a.isSmallGrid ? "cl-px-1 cl-py-1.5 cl-text-xs" : "cl-p-2 cl-text-sm"
|
|
5056
5064
|
]
|
|
5057
5065
|
}, e), [
|
|
5058
|
-
a.$slots[a.column.name] ?
|
|
5066
|
+
a.$slots[a.column.name] ? E(a.$slots, a.column.name, ie(Y({ key: 0 }, { column: a.column, data: a.data }))) : a.column.type === "boolean" && a.column.field !== void 0 ? (u(), P(dl, {
|
|
5059
5067
|
key: 1,
|
|
5060
5068
|
id: m(l),
|
|
5061
5069
|
class: "disabled:checked:cl-bg-primary-light disabled:checked:cl-border-primary-light",
|
|
@@ -5099,7 +5107,7 @@ const Xs = { class: "cl-col-[1_/_-1] cl-grid cl-grid-cols-subgrid" }, er = ["id"
|
|
|
5099
5107
|
function fr(o, t) {
|
|
5100
5108
|
return u(), b("div", cr, pr);
|
|
5101
5109
|
}
|
|
5102
|
-
const yt = /* @__PURE__ */
|
|
5110
|
+
const yt = /* @__PURE__ */ ye(ir, [["render", fr]]), mr = { class: "cl-flex cl-gap-4" }, gr = { class: "cl-mr-2" }, vr = {
|
|
5103
5111
|
key: 0,
|
|
5104
5112
|
class: "cl-flex cl-gap-0.5"
|
|
5105
5113
|
}, br = { class: "cl-mr-1 cl-w-full" }, hr = ["id", "onClick"], yr = { class: "cl-flex cl-gap-1 cl-items-center" }, wr = ["id"], $r = ["id"], kr = ["id", "onClick"], Cr = ["id"], Tr = ["id"], wt = /* @__PURE__ */ G({
|
|
@@ -5149,7 +5157,7 @@ const yt = /* @__PURE__ */ he(ir, [["render", fr]]), mr = { class: "cl-flex cl-g
|
|
|
5149
5157
|
const f = Se("icon");
|
|
5150
5158
|
return a.initialLoad ? (u(), P(yt, { key: 0 })) : (y = a.data) != null && y.results.length && l.value && s.value > 1 ? (u(), b("div", {
|
|
5151
5159
|
key: 1,
|
|
5152
|
-
class:
|
|
5160
|
+
class: A(["cl-border-off-white cl-border-t cl-flex cl-justify-between cl-p-2 cl-text-grey-4", [
|
|
5153
5161
|
a.isSmallGrid ? "cl-px-1 cl-py-1.5 cl-text-xs" : "cl-p-2 cl-text-sm"
|
|
5154
5162
|
]])
|
|
5155
5163
|
}, [
|
|
@@ -5160,10 +5168,10 @@ const yt = /* @__PURE__ */ he(ir, [["render", fr]]), mr = { class: "cl-flex cl-g
|
|
|
5160
5168
|
]),
|
|
5161
5169
|
p.value.length ? (u(), b("ul", vr, [
|
|
5162
5170
|
g("li", br, M(m(e)("grid.pageSize")), 1),
|
|
5163
|
-
(u(!0), b(W, null,
|
|
5171
|
+
(u(!0), b(W, null, _(p.value, (S, v) => (u(), b("li", {
|
|
5164
5172
|
id: `${a.gridId}-page-size-${S}`,
|
|
5165
5173
|
key: v,
|
|
5166
|
-
class:
|
|
5174
|
+
class: A(["cl-border-b cl-px-1", {
|
|
5167
5175
|
"cl-text-link-default": l.value.pageSize === S,
|
|
5168
5176
|
"cl-border-b-transparent hover:cl-border-b-link-lighter hover:cl-text-link-light cl-cursor-pointer": l.value.pageSize !== S
|
|
5169
5177
|
}]),
|
|
@@ -5175,7 +5183,7 @@ const yt = /* @__PURE__ */ he(ir, [["render", fr]]), mr = { class: "cl-flex cl-g
|
|
|
5175
5183
|
g("ul", yr, [
|
|
5176
5184
|
g("li", {
|
|
5177
5185
|
id: `${a.gridId}-page-first`,
|
|
5178
|
-
class:
|
|
5186
|
+
class: A({
|
|
5179
5187
|
"cl-text-grey-2 cl-pointer-events-none": l.value.pageNumber === 1,
|
|
5180
5188
|
"cl-cursor-pointer": l.value.pageNumber > 1
|
|
5181
5189
|
}),
|
|
@@ -5188,7 +5196,7 @@ const yt = /* @__PURE__ */ he(ir, [["render", fr]]), mr = { class: "cl-flex cl-g
|
|
|
5188
5196
|
], 10, wr),
|
|
5189
5197
|
g("li", {
|
|
5190
5198
|
id: `${a.gridId}-page-previous`,
|
|
5191
|
-
class:
|
|
5199
|
+
class: A({
|
|
5192
5200
|
"cl-cursor-pointer": l.value.pageNumber > 1,
|
|
5193
5201
|
"cl-text-grey-2 cl-pointer-events-none": l.value.pageNumber < 2
|
|
5194
5202
|
}),
|
|
@@ -5199,10 +5207,10 @@ const yt = /* @__PURE__ */ he(ir, [["render", fr]]), mr = { class: "cl-flex cl-g
|
|
|
5199
5207
|
size: 14
|
|
5200
5208
|
})
|
|
5201
5209
|
], 10, $r),
|
|
5202
|
-
(u(!0), b(W, null,
|
|
5210
|
+
(u(!0), b(W, null, _(n.value, (S, v) => (u(), b("li", {
|
|
5203
5211
|
id: `${a.gridId}-page-${S}`,
|
|
5204
5212
|
key: v,
|
|
5205
|
-
class:
|
|
5213
|
+
class: A(["cl-border cl-border-grey-2 cl-px-1.5 cl-rounded hover:cl-bg-primary-lighter", {
|
|
5206
5214
|
"cl-text-secondary-default cl-bg-primary-lighter cl-border-primary-lighter": l.value.pageNumber === S,
|
|
5207
5215
|
"cl-cursor-pointer ": l.value.pageNumber !== S
|
|
5208
5216
|
}]),
|
|
@@ -5210,7 +5218,7 @@ const yt = /* @__PURE__ */ he(ir, [["render", fr]]), mr = { class: "cl-flex cl-g
|
|
|
5210
5218
|
}, M(m($e)(S)), 11, kr))), 128)),
|
|
5211
5219
|
g("li", {
|
|
5212
5220
|
id: `${a.gridId}-page-next`,
|
|
5213
|
-
class:
|
|
5221
|
+
class: A({
|
|
5214
5222
|
"cl-text-grey-2 cl-pointer-events-none": l.value.pageNumber >= s.value,
|
|
5215
5223
|
"cl-cursor-pointer": l.value.pageNumber < s.value
|
|
5216
5224
|
}),
|
|
@@ -5223,7 +5231,7 @@ const yt = /* @__PURE__ */ he(ir, [["render", fr]]), mr = { class: "cl-flex cl-g
|
|
|
5223
5231
|
], 10, Cr),
|
|
5224
5232
|
g("li", {
|
|
5225
5233
|
id: `${a.gridId}-page-last`,
|
|
5226
|
-
class:
|
|
5234
|
+
class: A({
|
|
5227
5235
|
"cl-text-grey-2 cl-pointer-events-none": l.value.pageNumber >= s.value,
|
|
5228
5236
|
"cl-cursor-pointer": l.value.pageNumber < s.value
|
|
5229
5237
|
}),
|
|
@@ -5250,15 +5258,15 @@ const yt = /* @__PURE__ */ he(ir, [["render", fr]]), mr = { class: "cl-flex cl-g
|
|
|
5250
5258
|
return Qe(s, () => {
|
|
5251
5259
|
(l.isOpen ?? !1) && e("open-click");
|
|
5252
5260
|
}), (n, c) => (u(), b("header", Sr, [
|
|
5253
|
-
|
|
5261
|
+
E(n.$slots, "logo"),
|
|
5254
5262
|
g("div", {
|
|
5255
5263
|
ref_key: "headerMenuElement",
|
|
5256
5264
|
ref: s,
|
|
5257
5265
|
class: "cl-cursor-pointer cl-flex cl-flex-nowrap",
|
|
5258
5266
|
onClick: c[0] || (c[0] = (d) => n.$emit("open-click"))
|
|
5259
5267
|
}, [
|
|
5260
|
-
|
|
5261
|
-
|
|
5268
|
+
E(n.$slots, "menu"),
|
|
5269
|
+
E(n.$slots, "icon")
|
|
5262
5270
|
], 512)
|
|
5263
5271
|
]));
|
|
5264
5272
|
}
|
|
@@ -5281,7 +5289,7 @@ const yt = /* @__PURE__ */ he(ir, [["render", fr]]), mr = { class: "cl-flex cl-g
|
|
|
5281
5289
|
},
|
|
5282
5290
|
setup(o) {
|
|
5283
5291
|
return (t, l) => (u(), b("div", {
|
|
5284
|
-
class:
|
|
5292
|
+
class: A(["md:cl-relative", {
|
|
5285
5293
|
"cl-bg-primary-default": t.colour === "default",
|
|
5286
5294
|
"cl-bg-blue-light": t.colour === "secondary"
|
|
5287
5295
|
}])
|
|
@@ -5291,7 +5299,7 @@ const yt = /* @__PURE__ */ he(ir, [["render", fr]]), mr = { class: "cl-flex cl-g
|
|
|
5291
5299
|
key: 0,
|
|
5292
5300
|
src: t.image,
|
|
5293
5301
|
class: "cl-hidden cl-m-4 cl-max-h-12 cl-max-w-12 cl-ring-2 cl-ring-white cl-rounded-full md:cl-block"
|
|
5294
|
-
}, null, 8, Dr)) : (u(), P(m(
|
|
5302
|
+
}, null, 8, Dr)) : (u(), P(m(x), {
|
|
5295
5303
|
key: 1,
|
|
5296
5304
|
class: "cl-hidden cl-m-4 cl-text-white md:cl-block",
|
|
5297
5305
|
icon: "ph:user-circle",
|
|
@@ -5299,7 +5307,7 @@ const yt = /* @__PURE__ */ he(ir, [["render", fr]]), mr = { class: "cl-flex cl-g
|
|
|
5299
5307
|
height: "48"
|
|
5300
5308
|
})),
|
|
5301
5309
|
g("div", {
|
|
5302
|
-
class:
|
|
5310
|
+
class: A(["cl-grow cl-hidden cl-my-4 md:cl-block", {
|
|
5303
5311
|
"cl-text-secondary-default": t.colour === "default",
|
|
5304
5312
|
"cl-text-white": t.colour === "secondary"
|
|
5305
5313
|
}])
|
|
@@ -5308,8 +5316,8 @@ const yt = /* @__PURE__ */ he(ir, [["render", fr]]), mr = { class: "cl-flex cl-g
|
|
|
5308
5316
|
t.group ? (u(), b("div", Ar, M(t.group), 1)) : L("", !0)
|
|
5309
5317
|
], 2),
|
|
5310
5318
|
g("div", Vr, [
|
|
5311
|
-
k(m(
|
|
5312
|
-
class:
|
|
5319
|
+
k(m(x), {
|
|
5320
|
+
class: A(["cl-transform-gpu cl-transition-transform", {
|
|
5313
5321
|
"cl-rotate-180": t.isOpen,
|
|
5314
5322
|
"cl-text-secondary-default": t.colour === "default",
|
|
5315
5323
|
"cl-text-white": t.colour === "secondary"
|
|
@@ -5319,9 +5327,9 @@ const yt = /* @__PURE__ */ he(ir, [["render", fr]]), mr = { class: "cl-flex cl-g
|
|
|
5319
5327
|
])
|
|
5320
5328
|
]),
|
|
5321
5329
|
k(Ie, { name: "fade" }, {
|
|
5322
|
-
default:
|
|
5330
|
+
default: D(() => [
|
|
5323
5331
|
te(g("div", Ir, [
|
|
5324
|
-
|
|
5332
|
+
E(t.$slots, "default")
|
|
5325
5333
|
], 512), [
|
|
5326
5334
|
[ue, t.isOpen]
|
|
5327
5335
|
])
|
|
@@ -5385,7 +5393,7 @@ const yt = /* @__PURE__ */ he(ir, [["render", fr]]), mr = { class: "cl-flex cl-g
|
|
|
5385
5393
|
const F = ot(q, n.value);
|
|
5386
5394
|
c.value = F, y.value = q, S.value.move(F.start), S.value.hidePopover();
|
|
5387
5395
|
}
|
|
5388
|
-
const T = $(() => at(c.value, n.value, p.value)), C =
|
|
5396
|
+
const T = $(() => at(c.value, n.value, p.value)), C = xl("(min-width: 768px)"), B = $(() => C.value ? 2 : 1);
|
|
5389
5397
|
return t({
|
|
5390
5398
|
focus() {
|
|
5391
5399
|
var q;
|
|
@@ -5407,7 +5415,7 @@ const yt = /* @__PURE__ */ he(ir, [["render", fr]]), mr = { class: "cl-flex cl-g
|
|
|
5407
5415
|
"hide-time-header": "",
|
|
5408
5416
|
popover: r.value
|
|
5409
5417
|
}, {
|
|
5410
|
-
default:
|
|
5418
|
+
default: D(({ inputValue: X, inputEvents: R }) => [
|
|
5411
5419
|
k(Ze, Y(q.$attrs, {
|
|
5412
5420
|
ref_key: "input",
|
|
5413
5421
|
ref: i,
|
|
@@ -5417,7 +5425,7 @@ const yt = /* @__PURE__ */ he(ir, [["render", fr]]), mr = { class: "cl-flex cl-g
|
|
|
5417
5425
|
placeholder: q.placeholder,
|
|
5418
5426
|
required: q.required,
|
|
5419
5427
|
disabled: q.disabled,
|
|
5420
|
-
onClear: F[0] || (F[0] = (
|
|
5428
|
+
onClear: F[0] || (F[0] = (J) => c.value = null)
|
|
5421
5429
|
}), null, 16, ["date", "events", "type", "placeholder", "required", "disabled"])
|
|
5422
5430
|
]),
|
|
5423
5431
|
_: 1
|
|
@@ -5441,7 +5449,7 @@ const yt = /* @__PURE__ */ he(ir, [["render", fr]]), mr = { class: "cl-flex cl-g
|
|
|
5441
5449
|
"initial-page": f.value,
|
|
5442
5450
|
onDayclick: F[4] || (F[4] = (X) => y.value = null)
|
|
5443
5451
|
}, {
|
|
5444
|
-
default:
|
|
5452
|
+
default: D(({ togglePopover: X }) => [
|
|
5445
5453
|
k(Ze, Y(q.$attrs, {
|
|
5446
5454
|
ref_key: "input",
|
|
5447
5455
|
ref: i,
|
|
@@ -5457,7 +5465,7 @@ const yt = /* @__PURE__ */ he(ir, [["render", fr]]), mr = { class: "cl-flex cl-g
|
|
|
5457
5465
|
})
|
|
5458
5466
|
}), null, 16, ["type", "required", "disabled", "range-selected", "title", "onTogglePopover"])
|
|
5459
5467
|
]),
|
|
5460
|
-
footer:
|
|
5468
|
+
footer: D(() => [
|
|
5461
5469
|
q.quickDateScope !== "none" ? (u(), P(it, {
|
|
5462
5470
|
key: 0,
|
|
5463
5471
|
scope: q.quickDateScope,
|
|
@@ -5486,7 +5494,7 @@ const yt = /* @__PURE__ */ he(ir, [["render", fr]]), mr = { class: "cl-flex cl-g
|
|
|
5486
5494
|
"hide-time-header": "",
|
|
5487
5495
|
popover: r.value
|
|
5488
5496
|
}, {
|
|
5489
|
-
default:
|
|
5497
|
+
default: D(({ inputValue: X, inputEvents: R }) => [
|
|
5490
5498
|
k(Ze, Y(q.$attrs, {
|
|
5491
5499
|
ref_key: "input",
|
|
5492
5500
|
ref: i,
|
|
@@ -5496,8 +5504,8 @@ const yt = /* @__PURE__ */ he(ir, [["render", fr]]), mr = { class: "cl-flex cl-g
|
|
|
5496
5504
|
placeholder: q.placeholder,
|
|
5497
5505
|
required: q.required,
|
|
5498
5506
|
disabled: q.disabled,
|
|
5499
|
-
onClear: F[5] || (F[5] = (
|
|
5500
|
-
onReset: F[6] || (F[6] = (
|
|
5507
|
+
onClear: F[5] || (F[5] = (J) => c.value = null),
|
|
5508
|
+
onReset: F[6] || (F[6] = (J) => c.value = m(lt)(e.min, e.max, n.value, q.type))
|
|
5501
5509
|
}), null, 16, ["date", "events", "type", "placeholder", "required", "disabled"])
|
|
5502
5510
|
]),
|
|
5503
5511
|
_: 1
|
|
@@ -5561,7 +5569,7 @@ const yt = /* @__PURE__ */ he(ir, [["render", fr]]), mr = { class: "cl-flex cl-g
|
|
|
5561
5569
|
ref: n,
|
|
5562
5570
|
type: "text",
|
|
5563
5571
|
disabled: v.disabled,
|
|
5564
|
-
class:
|
|
5572
|
+
class: A(["!cl-mb-1 cl-block cl-border cl-duration-300 cl-h-full cl-p-3 cl-rounded-lg cl-transition cl-w-full focus:cl-outline-none", {
|
|
5565
5573
|
"hover:!cl-border-grey-3": v.disabled === !1,
|
|
5566
5574
|
"!cl-cursor-default": v.disabled,
|
|
5567
5575
|
"!cl-border-danger-default": !v.isValid,
|
|
@@ -5572,7 +5580,7 @@ const yt = /* @__PURE__ */ he(ir, [["render", fr]]), mr = { class: "cl-flex cl-g
|
|
|
5572
5580
|
step: v.step,
|
|
5573
5581
|
placeholder: v.placeholder,
|
|
5574
5582
|
name: v.group,
|
|
5575
|
-
onKeydown:
|
|
5583
|
+
onKeydown: we(i, ["enter"]),
|
|
5576
5584
|
onChange: S,
|
|
5577
5585
|
onBlur: f,
|
|
5578
5586
|
onFocus: T[0] || (T[0] = (C) => s("focus"))
|
|
@@ -5611,14 +5619,14 @@ const yt = /* @__PURE__ */ he(ir, [["render", fr]]), mr = { class: "cl-flex cl-g
|
|
|
5611
5619
|
}), (r, a) => d.value ? (u(), b("div", ie(Y({ key: 0 }, r.$attrs)), [
|
|
5612
5620
|
g("div", Br, [
|
|
5613
5621
|
g("span", {
|
|
5614
|
-
class:
|
|
5622
|
+
class: A(["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", {
|
|
5615
5623
|
"cl-bg-white cl-cursor-pointer hover:cl-border-grey-1": !r.disabled,
|
|
5616
5624
|
"cl-bg-grey-0": r.disabled
|
|
5617
5625
|
}]),
|
|
5618
5626
|
onClick: a[0] || (a[0] = (i) => e.value = r.disabled ? e.value : r.min)
|
|
5619
5627
|
}, M(Number.isInteger(r.min) ? m($e)(r.min) : m(Ee)(r.min, m(le).DECIMAL)), 3),
|
|
5620
5628
|
g("div", Fr, [
|
|
5621
|
-
p.value ? (u(), P(
|
|
5629
|
+
p.value ? (u(), P(Je, {
|
|
5622
5630
|
key: 0,
|
|
5623
5631
|
ref_key: "sliderRef",
|
|
5624
5632
|
ref: n,
|
|
@@ -5633,7 +5641,7 @@ const yt = /* @__PURE__ */ he(ir, [["render", fr]]), mr = { class: "cl-flex cl-g
|
|
|
5633
5641
|
disabled: r.disabled,
|
|
5634
5642
|
placeholder: r.placeholder
|
|
5635
5643
|
}, {
|
|
5636
|
-
default:
|
|
5644
|
+
default: D(() => [
|
|
5637
5645
|
jr
|
|
5638
5646
|
]),
|
|
5639
5647
|
_: 1
|
|
@@ -5660,7 +5668,7 @@ const yt = /* @__PURE__ */ he(ir, [["render", fr]]), mr = { class: "cl-flex cl-g
|
|
|
5660
5668
|
], 64))
|
|
5661
5669
|
]),
|
|
5662
5670
|
g("span", {
|
|
5663
|
-
class:
|
|
5671
|
+
class: A(["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", {
|
|
5664
5672
|
"cl-bg-white cl-cursor-pointer hover:cl-border-grey-1": !r.disabled,
|
|
5665
5673
|
"cl-bg-grey-0": r.disabled
|
|
5666
5674
|
}]),
|
|
@@ -5671,13 +5679,13 @@ const yt = /* @__PURE__ */ he(ir, [["render", fr]]), mr = { class: "cl-flex cl-g
|
|
|
5671
5679
|
class: "cl-bg-white cl-border cl-border-transparent cl-cursor-pointer cl-float-right cl-p-1.5 cl-px-2 cl-rounded-full cl-shadow cl-text-xs hover:cl-border-grey-1",
|
|
5672
5680
|
onClick: a[4] || (a[4] = (i) => p.value = !p.value)
|
|
5673
5681
|
}, [
|
|
5674
|
-
k(m(
|
|
5682
|
+
k(m(x), { icon: "ph:arrows-left-right-thin" })
|
|
5675
5683
|
])
|
|
5676
5684
|
])
|
|
5677
5685
|
])
|
|
5678
5686
|
], 16)) : (u(), b("div", Zr, M(m(s)("slider.invalidProps")), 1));
|
|
5679
5687
|
}
|
|
5680
|
-
}), Kr = /* @__PURE__ */
|
|
5688
|
+
}), Kr = /* @__PURE__ */ ye(Wr, [["__scopeId", "data-v-5cb4ccea"]]);
|
|
5681
5689
|
function Bl(o) {
|
|
5682
5690
|
let t = !1;
|
|
5683
5691
|
switch (o) {
|
|
@@ -5739,7 +5747,7 @@ function jl(o, t) {
|
|
|
5739
5747
|
const l = o.target;
|
|
5740
5748
|
return Qr(t) ? l.valueAsNumber : Ge(t) ? l.checked : l.value;
|
|
5741
5749
|
}
|
|
5742
|
-
const
|
|
5750
|
+
const xr = { class: "cl-flex cl-justify-between" }, Jr = { class: "cl-w-full" }, _r = {
|
|
5743
5751
|
key: 0,
|
|
5744
5752
|
class: "cl-block cl-left-auto cl-relative cl-text-danger-default"
|
|
5745
5753
|
}, Xr = {
|
|
@@ -5810,7 +5818,7 @@ const _r = { class: "cl-flex cl-justify-between" }, xr = { class: "cl-w-full" },
|
|
|
5810
5818
|
...((z = e.externalErrors) == null ? void 0 : z.filter((Z) => ((Z == null ? void 0 : Z.length) ?? 0) > 0)) ?? []
|
|
5811
5819
|
].join(`
|
|
5812
5820
|
`);
|
|
5813
|
-
}),
|
|
5821
|
+
}), J = $(() => ({
|
|
5814
5822
|
currency: "GBP",
|
|
5815
5823
|
locale: "en-GB",
|
|
5816
5824
|
valueRange: {
|
|
@@ -5837,7 +5845,7 @@ const _r = { class: "cl-flex cl-justify-between" }, xr = { class: "cl-w-full" },
|
|
|
5837
5845
|
})
|
|
5838
5846
|
];
|
|
5839
5847
|
return (typeof h == "string" || typeof h == "number") && (Z.push(Ea(e.min, e.inputType, e.label, h, e.timeZone)), Z.push(Aa(e.max, e.inputType, e.label, h, e.timeZone))), e.isRequired && Z.push(Va(e.label, h)), e.inputType === "email" && typeof h == "string" && Z.push(Ia(e.label, h)), Promise.all(Z).then((re) => {
|
|
5840
|
-
const Ae = [...re.map((
|
|
5848
|
+
const Ae = [...re.map((_e) => _e.message)], qe = re.some((_e) => _e.message.length > 0 && _e.valid === !1) || e.externalErrors.length > 0;
|
|
5841
5849
|
F.value = !0, qe ? (X.value = Ae, s("validated", !1, h)) : (X.value = [], s("validated", !0, h)), q.value = !qe;
|
|
5842
5850
|
});
|
|
5843
5851
|
}
|
|
@@ -5869,7 +5877,7 @@ const _r = { class: "cl-flex cl-justify-between" }, xr = { class: "cl-w-full" },
|
|
|
5869
5877
|
function Ce(h) {
|
|
5870
5878
|
d.value = h;
|
|
5871
5879
|
}
|
|
5872
|
-
async function
|
|
5880
|
+
async function V() {
|
|
5873
5881
|
p.value = !0, Ce(!1), e.validateOn === "change" && await O(f.value);
|
|
5874
5882
|
}
|
|
5875
5883
|
function H() {
|
|
@@ -5885,7 +5893,7 @@ const _r = { class: "cl-flex cl-justify-between" }, xr = { class: "cl-w-full" },
|
|
|
5885
5893
|
}
|
|
5886
5894
|
}
|
|
5887
5895
|
async function Q() {
|
|
5888
|
-
await
|
|
5896
|
+
await V(), H();
|
|
5889
5897
|
}
|
|
5890
5898
|
return We(() => {
|
|
5891
5899
|
e.validateImmediately && I(e.modelValue, !0);
|
|
@@ -5913,13 +5921,13 @@ const _r = { class: "cl-flex cl-justify-between" }, xr = { class: "cl-w-full" },
|
|
|
5913
5921
|
onMouseenter: z[13] || (z[13] = (Z) => Ce(!0)),
|
|
5914
5922
|
onMouseleave: z[14] || (z[14] = (Z) => Ce(!1))
|
|
5915
5923
|
}, [
|
|
5916
|
-
g("div",
|
|
5917
|
-
g("div",
|
|
5924
|
+
g("div", xr, [
|
|
5925
|
+
g("div", Jr, [
|
|
5918
5926
|
te(g("label", { class: "cl-block cl-mb-1 cl-text-grey-4 cl-text-xs cl-tracking-widest" }, M(h.label), 513), [
|
|
5919
5927
|
[ue, h.showLabel && h.label !== ""]
|
|
5920
5928
|
])
|
|
5921
5929
|
]),
|
|
5922
|
-
r.value ? (u(), b("label",
|
|
5930
|
+
r.value ? (u(), b("label", _r, " * ")) : h.isRequired && h.requiredText.length ? (u(), b("label", Xr, M(h.requiredText), 1)) : L("", !0)
|
|
5923
5931
|
]),
|
|
5924
5932
|
h.inputType !== "range" && h.inputType !== "currency" && !m(Fl)(h.inputType) ? (u(), b("div", ei, [
|
|
5925
5933
|
te(g("input", Y({
|
|
@@ -5963,16 +5971,16 @@ const _r = { class: "cl-flex cl-justify-between" }, xr = { class: "cl-w-full" },
|
|
|
5963
5971
|
name: "fade",
|
|
5964
5972
|
duration: 300
|
|
5965
5973
|
}, {
|
|
5966
|
-
default:
|
|
5974
|
+
default: D(() => [
|
|
5967
5975
|
h.inputType === "number" && !h.disabled && h.showArrows ? te((u(), b("div", ti, [
|
|
5968
|
-
k(m(
|
|
5976
|
+
k(m(x), {
|
|
5969
5977
|
icon: "ph:caret-up-bold",
|
|
5970
5978
|
class: "cl-absolute cl-bg-link-default cl-right-1 cl-rounded-full cl-text-sm cl-text-white cl-top-1 hover:cl-bg-link-light hover:cl-cursor-pointer",
|
|
5971
5979
|
onClick: ge,
|
|
5972
5980
|
onMousedown: z[4] || (z[4] = ae(() => {
|
|
5973
5981
|
}, ["prevent"]))
|
|
5974
5982
|
}),
|
|
5975
|
-
k(m(
|
|
5983
|
+
k(m(x), {
|
|
5976
5984
|
icon: "ph:caret-down-bold",
|
|
5977
5985
|
class: "cl-absolute cl-bg-link-default cl-bottom-2 cl-right-1 cl-rounded-full cl-text-sm cl-text-white hover:cl-bg-link-light hover:cl-cursor-pointer",
|
|
5978
5986
|
onClick: je,
|
|
@@ -6000,10 +6008,10 @@ const _r = { class: "cl-flex cl-justify-between" }, xr = { class: "cl-w-full" },
|
|
|
6000
6008
|
"input-specific-classes": h.inputSpecificClasses,
|
|
6001
6009
|
group: h.group,
|
|
6002
6010
|
step: h.step,
|
|
6003
|
-
"currency-options":
|
|
6011
|
+
"currency-options": J.value,
|
|
6004
6012
|
onChange: z[7] || (z[7] = (Z, re) => U(Z, re)),
|
|
6005
6013
|
onFocus: z[8] || (z[8] = (Z) => s("focus")),
|
|
6006
|
-
onBlur:
|
|
6014
|
+
onBlur: V
|
|
6007
6015
|
}), null, 16, ["modelValue", "disabled", "placeholder", "is-valid", "highlight-when-valid", "input-specific-classes", "group", "step", "currency-options"])
|
|
6008
6016
|
])) : m(Fl)(h.inputType) ? (u(), P(m(Rr), Y({ key: 2 }, h.$attrs, {
|
|
6009
6017
|
ref_key: "inputElement",
|
|
@@ -6025,7 +6033,7 @@ const _r = { class: "cl-flex cl-justify-between" }, xr = { class: "cl-w-full" },
|
|
|
6025
6033
|
"initial-date": h.initialDate,
|
|
6026
6034
|
"quick-date-scope": h.quickDateScope,
|
|
6027
6035
|
"date-format-locale": h.dateFormatLocale,
|
|
6028
|
-
onBlur: ae(
|
|
6036
|
+
onBlur: ae(V, ["self"]),
|
|
6029
6037
|
onFocus: z[10] || (z[10] = (Z) => s("focus"))
|
|
6030
6038
|
}), null, 16, ["date", "class", "disabled", "required", "type", "time-zone", "min", "max", "placeholder", "initial-date", "quick-date-scope", "date-format-locale"])) : h.inputType === "range" && typeof f.value == "number" ? (u(), b("div", ai, [
|
|
6031
6039
|
k(m(Kr), {
|
|
@@ -6039,7 +6047,7 @@ const _r = { class: "cl-flex cl-justify-between" }, xr = { class: "cl-w-full" },
|
|
|
6039
6047
|
placeholder: a.value,
|
|
6040
6048
|
"enforce-step": !0,
|
|
6041
6049
|
disabled: h.disabled,
|
|
6042
|
-
onBlur: ae(
|
|
6050
|
+
onBlur: ae(V, ["self"]),
|
|
6043
6051
|
onFocus: z[12] || (z[12] = (Z) => s("focus"))
|
|
6044
6052
|
}, null, 8, ["value", "min", "max", "step", "placeholder", "disabled"])
|
|
6045
6053
|
])) : L("", !0)
|
|
@@ -6048,7 +6056,7 @@ const _r = { class: "cl-flex cl-justify-between" }, xr = { class: "cl-w-full" },
|
|
|
6048
6056
|
!q.value && R.value.length > 0 && h.showValidationMessages && F.value ? (u(), b("div", si, M(R.value), 1)) : L("", !0)
|
|
6049
6057
|
], 16));
|
|
6050
6058
|
}
|
|
6051
|
-
}), ii = /* @__PURE__ */
|
|
6059
|
+
}), ii = /* @__PURE__ */ ye(ri, [["__scopeId", "data-v-2373f106"]]), ci = [
|
|
6052
6060
|
"button",
|
|
6053
6061
|
"checkbox",
|
|
6054
6062
|
"color",
|
|
@@ -6108,21 +6116,21 @@ const pi = {
|
|
|
6108
6116
|
a && (n.value = !1);
|
|
6109
6117
|
}), (a, i) => c.value !== null && m($l)(c.value) ? (u(), b("div", pi, [
|
|
6110
6118
|
g("div", {
|
|
6111
|
-
class:
|
|
6119
|
+
class: A(["cl-flex cl-items-center", {
|
|
6112
6120
|
"cl-cursor-pointer": !a.disabled
|
|
6113
6121
|
}]),
|
|
6114
6122
|
onClick: r
|
|
6115
6123
|
}, [
|
|
6116
6124
|
g("span", {
|
|
6117
|
-
class:
|
|
6125
|
+
class: A(["cl-font-semibold cl-text-xs", {
|
|
6118
6126
|
"cl-opacity-50": a.disabled
|
|
6119
6127
|
}])
|
|
6120
6128
|
}, M(c.value.nativeName), 3)
|
|
6121
6129
|
], 2),
|
|
6122
6130
|
k(Ie, { name: "fade" }, {
|
|
6123
|
-
default:
|
|
6131
|
+
default: D(() => [
|
|
6124
6132
|
te(g("div", fi, [
|
|
6125
|
-
(u(!0), b(W, null,
|
|
6133
|
+
(u(!0), b(W, null, _(d.value, (f, y) => (u(), b("div", {
|
|
6126
6134
|
key: y,
|
|
6127
6135
|
class: "cl-border-b cl-border-grey-0 cl-cursor-pointer cl-flex cl-items-center cl-justify-center cl-p-1 cl-text-center cl-transition-colors cl-w-28 hover:cl-bg-grey-0 last-child:cl-border-b-0 last:cl-border-b-0 lg:cl-p-2",
|
|
6128
6136
|
"data-localename": f.name,
|
|
@@ -6171,24 +6179,24 @@ const pi = {
|
|
|
6171
6179
|
n
|
|
6172
6180
|
], a), (i, f) => (u(), b("div", bi, [
|
|
6173
6181
|
g("div", hi, [
|
|
6174
|
-
|
|
6182
|
+
E(i.$slots, "background")
|
|
6175
6183
|
]),
|
|
6176
6184
|
g("form", yi, [
|
|
6177
6185
|
g("div", wi, [
|
|
6178
|
-
|
|
6186
|
+
E(i.$slots, "logo")
|
|
6179
6187
|
]),
|
|
6180
6188
|
i.$slots["language-switcher"] ? (u(), b("div", $i, [
|
|
6181
|
-
|
|
6189
|
+
E(i.$slots, "language-switcher")
|
|
6182
6190
|
])) : L("", !0),
|
|
6183
6191
|
g("div", {
|
|
6184
|
-
class:
|
|
6192
|
+
class: A(["cl-gap-y-4 cl-grid cl-grid-cols-1 lg:cl-gap-x-2 lg:cl-grid-cols-8", {
|
|
6185
6193
|
"cl-col-span-7": !i.$slots["language-switcher"],
|
|
6186
6194
|
"cl-col-span-6": i.$slots["language-switcher"]
|
|
6187
6195
|
}])
|
|
6188
6196
|
}, [
|
|
6189
6197
|
g("div", ki, [
|
|
6190
6198
|
g("div", Ci, [
|
|
6191
|
-
k(m(
|
|
6199
|
+
k(m(x), {
|
|
6192
6200
|
class: "cl-absolute cl-left-3 cl-top-3 cl-z-10",
|
|
6193
6201
|
icon: "ph:user",
|
|
6194
6202
|
size: 18
|
|
@@ -6199,7 +6207,7 @@ const pi = {
|
|
|
6199
6207
|
modelValue: s.value,
|
|
6200
6208
|
"onUpdate:modelValue": f[0] || (f[0] = (y) => s.value = y),
|
|
6201
6209
|
modelModifiers: { trim: !0 },
|
|
6202
|
-
class:
|
|
6210
|
+
class: A(["cl-border-2 cl-outline-none cl-p-2 cl-pl-9 cl-text-grey-5 cl-text-sm", {
|
|
6203
6211
|
"!cl-border-primary-default hover:!cl-border-grey-3 focus-within:!cl-border-link-light": s.value !== "" && d.value,
|
|
6204
6212
|
"!cl-border-danger-dark hover:!cl-border-grey-3 focus-within:!cl-border-link-light": s.value !== "" && !d.value
|
|
6205
6213
|
}]),
|
|
@@ -6208,7 +6216,7 @@ const pi = {
|
|
|
6208
6216
|
placeholder: m(e)("login.email"),
|
|
6209
6217
|
autocomplete: "username"
|
|
6210
6218
|
}, {
|
|
6211
|
-
default:
|
|
6219
|
+
default: D(() => [
|
|
6212
6220
|
Si
|
|
6213
6221
|
]),
|
|
6214
6222
|
_: 1
|
|
@@ -6219,12 +6227,12 @@ const pi = {
|
|
|
6219
6227
|
]),
|
|
6220
6228
|
g("div", Oi, [
|
|
6221
6229
|
g("div", Di, [
|
|
6222
|
-
k(m(
|
|
6230
|
+
k(m(x), {
|
|
6223
6231
|
class: "cl-absolute cl-left-3 cl-top-3 cl-z-10",
|
|
6224
6232
|
icon: "ph:lock",
|
|
6225
6233
|
size: 18
|
|
6226
6234
|
}),
|
|
6227
|
-
te(k(m(
|
|
6235
|
+
te(k(m(x), {
|
|
6228
6236
|
class: "cl-absolute cl-cursor-pointer cl-right-4 cl-top-3 cl-z-10",
|
|
6229
6237
|
icon: "ph:eye",
|
|
6230
6238
|
size: 18,
|
|
@@ -6232,7 +6240,7 @@ const pi = {
|
|
|
6232
6240
|
}, null, 512), [
|
|
6233
6241
|
[ue, c.value === "password"]
|
|
6234
6242
|
]),
|
|
6235
|
-
te(k(m(
|
|
6243
|
+
te(k(m(x), {
|
|
6236
6244
|
class: "cl-absolute cl-cursor-pointer cl-right-4 cl-top-3 cl-z-10",
|
|
6237
6245
|
icon: "ph:eye-slash",
|
|
6238
6246
|
size: 18,
|
|
@@ -6244,14 +6252,14 @@ const pi = {
|
|
|
6244
6252
|
id: "cl-ui-login-passwordinput",
|
|
6245
6253
|
modelValue: n.value,
|
|
6246
6254
|
"onUpdate:modelValue": f[3] || (f[3] = (y) => n.value = y),
|
|
6247
|
-
class:
|
|
6255
|
+
class: A(["cl-border-2 cl-outline-none cl-p-2 cl-px-9 cl-text-grey-5 cl-text-sm", {
|
|
6248
6256
|
"!cl-border-primary-default hover:!cl-border-grey-3 focus-within:!cl-border-link-light": n.value
|
|
6249
6257
|
}]),
|
|
6250
6258
|
type: c.value,
|
|
6251
6259
|
placeholder: m(e)("login.password"),
|
|
6252
6260
|
autocomplete: "current-password"
|
|
6253
6261
|
}, {
|
|
6254
|
-
default:
|
|
6262
|
+
default: D(() => [
|
|
6255
6263
|
Ei
|
|
6256
6264
|
]),
|
|
6257
6265
|
_: 1
|
|
@@ -6259,7 +6267,7 @@ const pi = {
|
|
|
6259
6267
|
])
|
|
6260
6268
|
]),
|
|
6261
6269
|
g("div", {
|
|
6262
|
-
class:
|
|
6270
|
+
class: A(["cl-col-span-2", {
|
|
6263
6271
|
"cl-mt-1.5 cl-mb-1 md:cl-mt-0.5 md:cl-mb-7 lg:cl-mb-0": i.loading
|
|
6264
6272
|
}])
|
|
6265
6273
|
}, [
|
|
@@ -6271,7 +6279,7 @@ const pi = {
|
|
|
6271
6279
|
disabled: !d.value || n.value === "",
|
|
6272
6280
|
onClick: ae(r, ["prevent"])
|
|
6273
6281
|
}, {
|
|
6274
|
-
default:
|
|
6282
|
+
default: D(() => [
|
|
6275
6283
|
se(M(m(e)("login.login")), 1)
|
|
6276
6284
|
]),
|
|
6277
6285
|
_: 1
|
|
@@ -6279,11 +6287,11 @@ const pi = {
|
|
|
6279
6287
|
], 2)
|
|
6280
6288
|
], 2),
|
|
6281
6289
|
k(Ie, { name: "cl-grow-down" }, {
|
|
6282
|
-
default:
|
|
6290
|
+
default: D(() => {
|
|
6283
6291
|
var y;
|
|
6284
6292
|
return [
|
|
6285
6293
|
te(g("span", Ai, [
|
|
6286
|
-
(u(!0), b(W, null,
|
|
6294
|
+
(u(!0), b(W, null, _(i.errors, (S, v) => (u(), b("div", {
|
|
6287
6295
|
id: "cl-ui-login-errors",
|
|
6288
6296
|
key: v,
|
|
6289
6297
|
class: "cl-font-semibold"
|
|
@@ -6365,18 +6373,18 @@ const pi = {
|
|
|
6365
6373
|
}, [
|
|
6366
6374
|
g("div", {
|
|
6367
6375
|
id: "group-container",
|
|
6368
|
-
class:
|
|
6376
|
+
class: A(["cl-h-full cl-overflow-y-auto cl-overscroll-y-none cl-pb-20 cl-w-20 cl-z-40 xl:cl-pb-0", {
|
|
6369
6377
|
"cl-bg-primary-default": T.colour === "default",
|
|
6370
6378
|
"cl-bg-blue-dark": T.colour === "secondary"
|
|
6371
6379
|
}])
|
|
6372
6380
|
}, [
|
|
6373
|
-
|
|
6381
|
+
E(T.$slots, "icon", Y({ navcolour: T.colour }, { groupIsOpen: c, toggleOpen: d }), void 0, !0)
|
|
6374
6382
|
], 2),
|
|
6375
6383
|
a.value ? (u(), b("div", Ni)) : L("", !0),
|
|
6376
6384
|
k(Ie, { name: "slide-right" }, {
|
|
6377
|
-
default:
|
|
6385
|
+
default: D(() => [
|
|
6378
6386
|
te(g("div", {
|
|
6379
|
-
class:
|
|
6387
|
+
class: A(["cl-bg-grey-0 cl-border-grey-2 cl-border-r cl-duration-75 cl-h-full cl-min-w-[260px] cl-overflow-y-auto cl-overscroll-y-none cl-p-8 cl-pb-24 cl-top-0 cl-transition-shadow cl-w-[260px] cl-z-30 xl:cl-pb-0", {
|
|
6380
6388
|
"cl-relative": r.value,
|
|
6381
6389
|
"cl-absolute cl-left-20 cl-shadow-lg": !r.value
|
|
6382
6390
|
}])
|
|
@@ -6386,15 +6394,15 @@ const pi = {
|
|
|
6386
6394
|
class: "cl-absolute cl-cursor-pointer cl-hidden cl-right-0 cl-top-1.5 lg:cl-block",
|
|
6387
6395
|
onClick: C[0] || (C[0] = () => f())
|
|
6388
6396
|
}, [
|
|
6389
|
-
r.value ? (u(), P(m(
|
|
6397
|
+
r.value ? (u(), P(m(x), {
|
|
6390
6398
|
key: 1,
|
|
6391
6399
|
icon: "ph:push-pin-slash"
|
|
6392
|
-
})) : (u(), P(m(
|
|
6400
|
+
})) : (u(), P(m(x), {
|
|
6393
6401
|
key: 0,
|
|
6394
6402
|
icon: "ph:push-pin"
|
|
6395
6403
|
}))
|
|
6396
6404
|
]),
|
|
6397
|
-
|
|
6405
|
+
E(T.$slots, "default", ie(pe({ groupIsOpen: c })), void 0, !0)
|
|
6398
6406
|
])
|
|
6399
6407
|
], 2), [
|
|
6400
6408
|
[ue, n.value]
|
|
@@ -6404,7 +6412,7 @@ const pi = {
|
|
|
6404
6412
|
})
|
|
6405
6413
|
], 512));
|
|
6406
6414
|
}
|
|
6407
|
-
}), zi = /* @__PURE__ */
|
|
6415
|
+
}), zi = /* @__PURE__ */ ye(Ui, [["__scopeId", "data-v-db3283cd"]]), Li = /* @__PURE__ */ G({
|
|
6408
6416
|
__name: "cl-ui-navigation-icon",
|
|
6409
6417
|
props: {
|
|
6410
6418
|
iconValue: {},
|
|
@@ -6413,14 +6421,14 @@ const pi = {
|
|
|
6413
6421
|
},
|
|
6414
6422
|
setup(o) {
|
|
6415
6423
|
return (t, l) => (u(), b("div", {
|
|
6416
|
-
class:
|
|
6424
|
+
class: A(["cl-cursor-pointer cl-flex cl-h-20 cl-items-center cl-justify-center cl-transition-colors cl-w-20", {
|
|
6417
6425
|
"cl-text-secondary-default hover:cl-bg-primary-dark hover:cl-text-white": t.colour === "default",
|
|
6418
6426
|
"cl-bg-primary-darker cl-text-white": t.open && t.colour === "default",
|
|
6419
6427
|
"cl-text-white hover:cl-bg-blue-light": t.colour === "secondary",
|
|
6420
6428
|
"cl-bg-blue-light": t.open && t.colour === "secondary"
|
|
6421
6429
|
}])
|
|
6422
6430
|
}, [
|
|
6423
|
-
k(m(
|
|
6431
|
+
k(m(x), {
|
|
6424
6432
|
class: "cl-block",
|
|
6425
6433
|
icon: t.iconValue,
|
|
6426
6434
|
width: "24"
|
|
@@ -6437,15 +6445,15 @@ const pi = {
|
|
|
6437
6445
|
},
|
|
6438
6446
|
setup(o) {
|
|
6439
6447
|
return (t, l) => (u(), b("div", {
|
|
6440
|
-
class:
|
|
6448
|
+
class: A({
|
|
6441
6449
|
"cl-hidden": !t.open
|
|
6442
6450
|
})
|
|
6443
6451
|
}, [
|
|
6444
6452
|
t.$slots.title ? (u(), b("div", Bi, [
|
|
6445
|
-
|
|
6453
|
+
E(t.$slots, "title")
|
|
6446
6454
|
])) : L("", !0),
|
|
6447
6455
|
g("div", Fi, [
|
|
6448
|
-
|
|
6456
|
+
E(t.$slots, "default")
|
|
6449
6457
|
])
|
|
6450
6458
|
], 2));
|
|
6451
6459
|
}
|
|
@@ -6456,20 +6464,20 @@ const pi = {
|
|
|
6456
6464
|
function Wi(o, t) {
|
|
6457
6465
|
return u(), b("div", Gi, [
|
|
6458
6466
|
o.$slots.title ? (u(), b("div", Hi, [
|
|
6459
|
-
|
|
6467
|
+
E(o.$slots, "title")
|
|
6460
6468
|
])) : L("", !0),
|
|
6461
6469
|
g("span", Zi, [
|
|
6462
|
-
|
|
6470
|
+
E(o.$slots, "default")
|
|
6463
6471
|
])
|
|
6464
6472
|
]);
|
|
6465
6473
|
}
|
|
6466
|
-
const Ki = /* @__PURE__ */
|
|
6467
|
-
function
|
|
6474
|
+
const Ki = /* @__PURE__ */ ye(Pi, [["render", Wi]]), Qi = {}, Yi = { class: "cl-cursor-pointer cl-transition-colors cl-w-full hover:cl-text-primary-darker" };
|
|
6475
|
+
function xi(o, t) {
|
|
6468
6476
|
return u(), b("div", Yi, [
|
|
6469
|
-
|
|
6477
|
+
E(o.$slots, "default")
|
|
6470
6478
|
]);
|
|
6471
6479
|
}
|
|
6472
|
-
const
|
|
6480
|
+
const Ji = /* @__PURE__ */ ye(Qi, [["render", xi]]), _i = /* @__PURE__ */ G({
|
|
6473
6481
|
__name: "cl-ui-tab",
|
|
6474
6482
|
props: {
|
|
6475
6483
|
colour: { default: "default" },
|
|
@@ -6517,12 +6525,12 @@ const xi = /* @__PURE__ */ he(Qi, [["render", _i]]), Ji = /* @__PURE__ */ G({
|
|
|
6517
6525
|
}), il(() => window.removeEventListener("resize", i)), t({
|
|
6518
6526
|
setTab: T
|
|
6519
6527
|
}), (C, B) => (u(), b("div", {
|
|
6520
|
-
class:
|
|
6528
|
+
class: A(["cl-w-full", {
|
|
6521
6529
|
"cl-flex cl-flex-row cl-gap-4 xl:cl-gap-6 cl-h-full": a.value === !1
|
|
6522
6530
|
}])
|
|
6523
6531
|
}, [
|
|
6524
6532
|
g("div", {
|
|
6525
|
-
class:
|
|
6533
|
+
class: A(["cl-flex cl-flex-nowrap", [
|
|
6526
6534
|
a.value === !1 ? "cl-items-start" : "cl-items-center cl-w-full",
|
|
6527
6535
|
{
|
|
6528
6536
|
"cl-border-r cl-h-full cl-border-grey-1": a.value === !1
|
|
@@ -6534,7 +6542,7 @@ const xi = /* @__PURE__ */ he(Qi, [["render", _i]]), Ji = /* @__PURE__ */ G({
|
|
|
6534
6542
|
class: "cl-bg-white cl-cursor-pointer cl-float-left cl-h-11 cl-w-4",
|
|
6535
6543
|
onClick: B[0] || (B[0] = (q) => y("left"))
|
|
6536
6544
|
}, [
|
|
6537
|
-
k(m(
|
|
6545
|
+
k(m(x), {
|
|
6538
6546
|
icon: "ph:caret-left",
|
|
6539
6547
|
class: "cl-mt-4 cl-text-secondary-default"
|
|
6540
6548
|
})
|
|
@@ -6542,32 +6550,32 @@ const xi = /* @__PURE__ */ he(Qi, [["render", _i]]), Ji = /* @__PURE__ */ G({
|
|
|
6542
6550
|
g("div", {
|
|
6543
6551
|
ref_key: "headerContainer",
|
|
6544
6552
|
ref: d,
|
|
6545
|
-
class:
|
|
6553
|
+
class: A(["cl-border-b cl-border-grey-1 cl-flex cl-flex-nowrap cl-flex-row", {
|
|
6546
6554
|
"cl-mr-4": r.value && a.value,
|
|
6547
6555
|
"cl-mb-4 xl:cl-mb-6 cl-overflow-x-auto cl-overscroll-x-none cl-w-full": a.value,
|
|
6548
6556
|
"cl-flex-col cl-border-b-0": a.value === !1
|
|
6549
6557
|
}]),
|
|
6550
6558
|
onScrollPassive: i
|
|
6551
6559
|
}, [
|
|
6552
|
-
|
|
6560
|
+
E(C.$slots, "headings", ie(pe({ isTabOpen: S, toggleOpen: v, colour: C.colour, layout: C.layout })))
|
|
6553
6561
|
], 34),
|
|
6554
6562
|
r.value && a.value ? (u(), b("div", {
|
|
6555
6563
|
key: 1,
|
|
6556
6564
|
class: "cl-bg-white cl-cursor-pointer cl-float-right cl-h-11 cl-relative cl-w-4",
|
|
6557
6565
|
onClick: B[1] || (B[1] = (q) => y("right"))
|
|
6558
6566
|
}, [
|
|
6559
|
-
k(m(
|
|
6567
|
+
k(m(x), {
|
|
6560
6568
|
icon: "ph:caret-right",
|
|
6561
6569
|
class: "cl-mt-4 cl-text-secondary-default"
|
|
6562
6570
|
})
|
|
6563
6571
|
])) : L("", !0)
|
|
6564
6572
|
], 2),
|
|
6565
6573
|
te(g("div", {
|
|
6566
|
-
class:
|
|
6574
|
+
class: A(["cl-basis-full", {
|
|
6567
6575
|
"cl-overflow-hidden": C.overflowHidden
|
|
6568
6576
|
}])
|
|
6569
6577
|
}, [
|
|
6570
|
-
|
|
6578
|
+
E(C.$slots, "content", ie(pe({ isTabOpen: S })))
|
|
6571
6579
|
], 2), [
|
|
6572
6580
|
[ue, c.value]
|
|
6573
6581
|
])
|
|
@@ -6585,7 +6593,7 @@ const xi = /* @__PURE__ */ he(Qi, [["render", _i]]), Ji = /* @__PURE__ */ G({
|
|
|
6585
6593
|
setup(o) {
|
|
6586
6594
|
const t = o, l = $(() => t.layout === "horizontal");
|
|
6587
6595
|
return (e, s) => (u(), b("div", {
|
|
6588
|
-
class:
|
|
6596
|
+
class: A(["cl-flex cl-font-bold cl-items-center cl-px-4 cl-py-2 cl-whitespace-nowrap xl:cl-px-6 xl:cl-py-3 xl:cl-text-lg", {
|
|
6589
6597
|
"cl-border-b-4": l.value,
|
|
6590
6598
|
"cl-border-b-0 cl-border-r-4": l.value === !1,
|
|
6591
6599
|
"cl-cursor-pointer hover:cl-border-opacity-100 cl-border-link-lighter cl-border-opacity-0 cl-text-secondary-light hover:cl-text-black": e.open === !1 && !e.disabled,
|
|
@@ -6598,7 +6606,7 @@ const xi = /* @__PURE__ */ he(Qi, [["render", _i]]), Ji = /* @__PURE__ */ G({
|
|
|
6598
6606
|
}]),
|
|
6599
6607
|
inert: e.disabled
|
|
6600
6608
|
}, [
|
|
6601
|
-
|
|
6609
|
+
E(e.$slots, "default", {}, () => [
|
|
6602
6610
|
se(M(e.title), 1)
|
|
6603
6611
|
])
|
|
6604
6612
|
], 10, Xi));
|
|
@@ -6611,10 +6619,10 @@ const xi = /* @__PURE__ */ he(Qi, [["render", _i]]), Ji = /* @__PURE__ */ G({
|
|
|
6611
6619
|
},
|
|
6612
6620
|
setup(o) {
|
|
6613
6621
|
return (t, l) => t.open ? (u(), b("div", lc, [
|
|
6614
|
-
t.$slots.header || t.title ?
|
|
6622
|
+
t.$slots.header || t.title ? E(t.$slots, "header", { key: 0 }, () => [
|
|
6615
6623
|
g("h4", tc, M(t.title), 1)
|
|
6616
6624
|
]) : L("", !0),
|
|
6617
|
-
|
|
6625
|
+
E(t.$slots, "default")
|
|
6618
6626
|
])) : L("", !0);
|
|
6619
6627
|
}
|
|
6620
6628
|
}), ac = [
|
|
@@ -6696,13 +6704,13 @@ const xi = /* @__PURE__ */ he(Qi, [["render", _i]]), Ji = /* @__PURE__ */ G({
|
|
|
6696
6704
|
disabled: i.disabled,
|
|
6697
6705
|
onInput: n
|
|
6698
6706
|
}, null, 40, ic),
|
|
6699
|
-
|
|
6707
|
+
E(i.$slots, "default")
|
|
6700
6708
|
], 16)) : (u(), b("input", {
|
|
6701
6709
|
key: 1,
|
|
6702
6710
|
ref_key: "fileRefClassic",
|
|
6703
6711
|
ref: r,
|
|
6704
6712
|
type: "file",
|
|
6705
|
-
class:
|
|
6713
|
+
class: A({
|
|
6706
6714
|
"cl-cursor-default": i.disabled === !0,
|
|
6707
6715
|
"cl-cursor-pointer": i.disabled === !1
|
|
6708
6716
|
}),
|
|
@@ -6740,22 +6748,30 @@ const xi = /* @__PURE__ */ he(Qi, [["render", _i]]), Ji = /* @__PURE__ */ G({
|
|
|
6740
6748
|
s("selection-changed", e.value);
|
|
6741
6749
|
}), (p, r) => (u(), P(Me, {
|
|
6742
6750
|
"show-required-asterisk": p.required && p.$slots.label !== void 0
|
|
6743
|
-
}, {
|
|
6744
|
-
label:
|
|
6745
|
-
|
|
6751
|
+
}, he({
|
|
6752
|
+
label: D(() => [
|
|
6753
|
+
E(p.$slots, "label")
|
|
6746
6754
|
]),
|
|
6747
|
-
default:
|
|
6755
|
+
default: D(() => [
|
|
6748
6756
|
g("div", Y(p.$attrs, {
|
|
6749
6757
|
class: ["cl-flex", {
|
|
6750
6758
|
"cl-gap-0 [&_>_div:not(:first-child):has(>_input[type=radio])]:cl-pl-2 [&_button:not(:last-of-type)]:cl-border-r-0 cl-flex-wrap [&_button:first-of-type]:cl-rounded-l-lg [&_button:last-of-type]:cl-rounded-r-lg": p.orientation === "horizontal",
|
|
6751
6759
|
"cl-gap-1 cl-flex-col": p.orientation === "vertical"
|
|
6752
6760
|
}]
|
|
6753
6761
|
}), [
|
|
6754
|
-
|
|
6762
|
+
E(p.$slots, "default", { select: n })
|
|
6755
6763
|
], 16)
|
|
6756
6764
|
]),
|
|
6757
|
-
_:
|
|
6758
|
-
},
|
|
6765
|
+
_: 2
|
|
6766
|
+
}, [
|
|
6767
|
+
p.$slots["help-text"] ? {
|
|
6768
|
+
name: "helpText",
|
|
6769
|
+
fn: D(() => [
|
|
6770
|
+
E(p.$slots, "help-text")
|
|
6771
|
+
]),
|
|
6772
|
+
key: "0"
|
|
6773
|
+
} : void 0
|
|
6774
|
+
]), 1032, ["show-required-asterisk"]));
|
|
6759
6775
|
}
|
|
6760
6776
|
}), pc = /* @__PURE__ */ G({
|
|
6761
6777
|
__name: "cl-ui-toggle-button",
|
|
@@ -6765,14 +6781,14 @@ const xi = /* @__PURE__ */ he(Qi, [["render", _i]]), Ji = /* @__PURE__ */ G({
|
|
|
6765
6781
|
},
|
|
6766
6782
|
setup(o) {
|
|
6767
6783
|
return (t, l) => (u(), P(ke, {
|
|
6768
|
-
class:
|
|
6784
|
+
class: A({
|
|
6769
6785
|
"!cl-bg-primary-default cl-border-primary-dark hover:cl-border-primary-dark cl-text-black !cl-bg-opacity-40 cl-font-bold": t.isSelected,
|
|
6770
6786
|
"cl-border-secondary-light hover:cl-shadow-md cl-border-opacity-40 hover:cl-border-opacity-100 !cl-text-secondary-default hover:cl-bg-primary-default hover:cl-bg-opacity-15 hover:cl-font-bold": t.isSelected === !1,
|
|
6771
6787
|
"cl-rounded-none ": t.orientation === "horizontal"
|
|
6772
6788
|
})
|
|
6773
6789
|
}, {
|
|
6774
|
-
default:
|
|
6775
|
-
|
|
6790
|
+
default: D(() => [
|
|
6791
|
+
E(t.$slots, "default")
|
|
6776
6792
|
]),
|
|
6777
6793
|
_: 3
|
|
6778
6794
|
}, 8, ["class"]));
|
|
@@ -6795,7 +6811,7 @@ const xi = /* @__PURE__ */ he(Qi, [["render", _i]]), Ji = /* @__PURE__ */ G({
|
|
|
6795
6811
|
class: "after:checked:cl-bg-secondary-default after:cl-h-1.5 after:cl-m-1 after:cl-rounded-full after:cl-w-1.5 checked:cl-bg-primary-default checked:cl-border-primary-darker cl-appearance-none cl-bg-clip-content cl-border cl-border-grey-3 cl-cursor-pointer cl-flex cl-gap-2 cl-h-4 cl-items-center cl-rounded-full cl-w-4",
|
|
6796
6812
|
onClick: l[0] || (l[0] = (e) => t.$emit("click"))
|
|
6797
6813
|
}, null, 8, mc),
|
|
6798
|
-
|
|
6814
|
+
E(t.$slots, "default")
|
|
6799
6815
|
]));
|
|
6800
6816
|
}
|
|
6801
6817
|
}), gc = /* @__PURE__ */ G({
|
|
@@ -6807,15 +6823,15 @@ const xi = /* @__PURE__ */ he(Qi, [["render", _i]]), Ji = /* @__PURE__ */ G({
|
|
|
6807
6823
|
},
|
|
6808
6824
|
emits: ["select"],
|
|
6809
6825
|
setup(o) {
|
|
6810
|
-
return (t, l) => (u(!0), b(W, null,
|
|
6826
|
+
return (t, l) => (u(!0), b(W, null, _(t.$slots, (e, s, n) => (u(), P($t, {
|
|
6811
6827
|
id: t.id + "-radio-" + s,
|
|
6812
6828
|
key: s,
|
|
6813
6829
|
checked: t.selectedIndex === n,
|
|
6814
6830
|
name: t.name,
|
|
6815
6831
|
onClick: (c) => t.$emit("select", n)
|
|
6816
6832
|
}, {
|
|
6817
|
-
default:
|
|
6818
|
-
|
|
6833
|
+
default: D(() => [
|
|
6834
|
+
E(t.$slots, s, {
|
|
6819
6835
|
id: t.id + "-radio-" + s
|
|
6820
6836
|
})
|
|
6821
6837
|
]),
|
|
@@ -6873,7 +6889,7 @@ const xi = /* @__PURE__ */ he(Qi, [["render", _i]]), Ji = /* @__PURE__ */ G({
|
|
|
6873
6889
|
}]
|
|
6874
6890
|
}), [
|
|
6875
6891
|
g("div", {
|
|
6876
|
-
class:
|
|
6892
|
+
class: A(["cl-flex cl-items-center cl-rounded-lg cl-w-full", {
|
|
6877
6893
|
"hover:cl-bg-primary-lighter cl-cursor-pointer cl-transition-colors": t.value === !1,
|
|
6878
6894
|
"cl-gap-3": t.value
|
|
6879
6895
|
}]),
|
|
@@ -6885,19 +6901,19 @@ const xi = /* @__PURE__ */ he(Qi, [["render", _i]]), Ji = /* @__PURE__ */ G({
|
|
|
6885
6901
|
}, [
|
|
6886
6902
|
k(m(rl), {
|
|
6887
6903
|
"icon-value": t.value ? "ph:caret-double-left" : c.value ? "ph:caret-double-right" : "ph:list",
|
|
6888
|
-
class:
|
|
6904
|
+
class: A({
|
|
6889
6905
|
"cl-rounded-lg hover:cl-bg-grey-1 cl-text-grey-3 hover:cl-text-secondary-default cl-transition-colors cl-cursor-pointer": t.value,
|
|
6890
6906
|
"cl-text-secondary-default": t.value === !1
|
|
6891
6907
|
}),
|
|
6892
6908
|
onClick: a[0] || (a[0] = ae(() => n(), ["stop"]))
|
|
6893
6909
|
}, null, 8, ["icon-value", "class"]),
|
|
6894
6910
|
t.value && r.$slots.menuHeader ? (u(), b("div", vc, [
|
|
6895
|
-
|
|
6911
|
+
E(r.$slots, "menuHeader")
|
|
6896
6912
|
])) : L("", !0)
|
|
6897
6913
|
], 34),
|
|
6898
6914
|
r.$slots.searchInput ? (u(), b("div", {
|
|
6899
6915
|
key: 0,
|
|
6900
|
-
class:
|
|
6916
|
+
class: A(["cl-w-full", {
|
|
6901
6917
|
"hover:cl-bg-primary-lighter cl-cursor-pointer cl-rounded-lg cl-transition-colors": t.value === !1
|
|
6902
6918
|
}]),
|
|
6903
6919
|
onClick: a[4] || (a[4] = () => {
|
|
@@ -6906,20 +6922,20 @@ const xi = /* @__PURE__ */ he(Qi, [["render", _i]]), Ji = /* @__PURE__ */ G({
|
|
|
6906
6922
|
}, [
|
|
6907
6923
|
k(m(rl), {
|
|
6908
6924
|
"icon-value": "ph:magnifying-glass",
|
|
6909
|
-
class:
|
|
6925
|
+
class: A({
|
|
6910
6926
|
"cl-absolute cl-z-10 cl-text-grey-3": t.value,
|
|
6911
6927
|
"cl-text-secondary-default": t.value === !1
|
|
6912
6928
|
})
|
|
6913
6929
|
}, null, 8, ["class"]),
|
|
6914
6930
|
t.value ? (u(), b("div", bc, [
|
|
6915
|
-
|
|
6931
|
+
E(r.$slots, "searchInput")
|
|
6916
6932
|
])) : L("", !0)
|
|
6917
6933
|
], 2)) : L("", !0),
|
|
6918
6934
|
g("div", hc, [
|
|
6919
|
-
|
|
6935
|
+
E(r.$slots, "default", ie(pe({ toggleOpen: s, groupIsOpen: e })))
|
|
6920
6936
|
]),
|
|
6921
6937
|
r.$slots.footer ? (u(), b("div", yc, [
|
|
6922
|
-
|
|
6938
|
+
E(r.$slots, "footer", ie(pe({ toggleOpen: s, groupIsOpen: e })))
|
|
6923
6939
|
])) : L("", !0)
|
|
6924
6940
|
], 16),
|
|
6925
6941
|
m(d) === !1 && t.value ? (u(), b("div", wc)) : L("", !0)
|
|
@@ -6961,8 +6977,8 @@ const xi = /* @__PURE__ */ he(Qi, [["render", _i]]), Ji = /* @__PURE__ */ G({
|
|
|
6961
6977
|
g("div", qc, [
|
|
6962
6978
|
t.open && t.menuOpen === !0 ? (u(), b("div", Oc, [
|
|
6963
6979
|
k(m(kt), null, {
|
|
6964
|
-
default:
|
|
6965
|
-
|
|
6980
|
+
default: D(() => [
|
|
6981
|
+
E(t.$slots, "default")
|
|
6966
6982
|
]),
|
|
6967
6983
|
_: 3
|
|
6968
6984
|
})
|
|
@@ -6996,7 +7012,7 @@ const xi = /* @__PURE__ */ he(Qi, [["render", _i]]), Ji = /* @__PURE__ */ G({
|
|
|
6996
7012
|
return (t, l) => (u(), b("div", Ac, [
|
|
6997
7013
|
Vc,
|
|
6998
7014
|
g("div", Ic, [
|
|
6999
|
-
|
|
7015
|
+
E(t.$slots, "default")
|
|
7000
7016
|
])
|
|
7001
7017
|
]));
|
|
7002
7018
|
}
|
|
@@ -7004,7 +7020,7 @@ const xi = /* @__PURE__ */ he(Qi, [["render", _i]]), Ji = /* @__PURE__ */ G({
|
|
|
7004
7020
|
__name: "cl-ui-menu-item",
|
|
7005
7021
|
setup(o) {
|
|
7006
7022
|
return (t, l) => (u(), b("div", Mc, [
|
|
7007
|
-
|
|
7023
|
+
E(t.$slots, "default")
|
|
7008
7024
|
]));
|
|
7009
7025
|
}
|
|
7010
7026
|
}), Rc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
@@ -7016,7 +7032,7 @@ const xi = /* @__PURE__ */ he(Qi, [["render", _i]]), Ji = /* @__PURE__ */ G({
|
|
|
7016
7032
|
cardSizes: uo,
|
|
7017
7033
|
clUISlectInput: sl,
|
|
7018
7034
|
clUiAccordion: Gt,
|
|
7019
|
-
clUiAccordionHeader:
|
|
7035
|
+
clUiAccordionHeader: Jt,
|
|
7020
7036
|
clUiAccordionItem: Kt,
|
|
7021
7037
|
clUiApp: lo,
|
|
7022
7038
|
clUiButton: ke,
|
|
@@ -7025,7 +7041,7 @@ const xi = /* @__PURE__ */ he(Qi, [["render", _i]]), Ji = /* @__PURE__ */ G({
|
|
|
7025
7041
|
clUiFileUploader: uc,
|
|
7026
7042
|
clUiFooter: la,
|
|
7027
7043
|
clUiGrid: Ys,
|
|
7028
|
-
clUiGridLite:
|
|
7044
|
+
clUiGridLite: _s,
|
|
7029
7045
|
clUiGridLiteBody: bt,
|
|
7030
7046
|
clUiGridLiteBodySkeleton: gt,
|
|
7031
7047
|
clUiGridLiteCell: ht,
|
|
@@ -7040,7 +7056,7 @@ const xi = /* @__PURE__ */ he(Qi, [["render", _i]]), Ji = /* @__PURE__ */ G({
|
|
|
7040
7056
|
clUiInputDateRange: ct,
|
|
7041
7057
|
clUiInputDateRangeInput: Al,
|
|
7042
7058
|
clUiInputDateTime: dt,
|
|
7043
|
-
clUiInputNumber:
|
|
7059
|
+
clUiInputNumber: Je,
|
|
7044
7060
|
clUiInputRange: Bn,
|
|
7045
7061
|
clUiInputText: Re,
|
|
7046
7062
|
clUiInputTextArea: En,
|
|
@@ -7056,21 +7072,21 @@ const xi = /* @__PURE__ */ he(Qi, [["render", _i]]), Ji = /* @__PURE__ */ G({
|
|
|
7056
7072
|
clUiNavigation: zi,
|
|
7057
7073
|
clUiNavigationGroup: ji,
|
|
7058
7074
|
clUiNavigationIcon: Li,
|
|
7059
|
-
clUiNavigationItem:
|
|
7075
|
+
clUiNavigationItem: Ji,
|
|
7060
7076
|
clUiNavigationSection: Ki,
|
|
7061
|
-
clUiNotification:
|
|
7077
|
+
clUiNotification: _l,
|
|
7062
7078
|
clUiRadio: $t,
|
|
7063
7079
|
clUiRadioGroup: gc,
|
|
7064
7080
|
clUiSelect: wl,
|
|
7065
7081
|
clUiSelectOption: ze,
|
|
7066
|
-
clUiTab:
|
|
7082
|
+
clUiTab: _i,
|
|
7067
7083
|
clUiTabContent: oc,
|
|
7068
7084
|
clUiTabHeader: ec,
|
|
7069
7085
|
clUiToggle: dc,
|
|
7070
7086
|
clUiToggleButton: pc,
|
|
7071
7087
|
currentQuickDates: He,
|
|
7072
7088
|
dateTimeCalendarTypes: ut,
|
|
7073
|
-
filterMethodTypes:
|
|
7089
|
+
filterMethodTypes: _n,
|
|
7074
7090
|
futureQuickDates: nl,
|
|
7075
7091
|
gridColumnTypes: Yn,
|
|
7076
7092
|
headerColour: Nr,
|
|
@@ -7081,7 +7097,7 @@ const xi = /* @__PURE__ */ he(Qi, [["render", _i]]), Ji = /* @__PURE__ */ G({
|
|
|
7081
7097
|
isFilterRequest: ls,
|
|
7082
7098
|
isFilterResponse: ts,
|
|
7083
7099
|
isGridColumn: pt,
|
|
7084
|
-
isGridColumnArray:
|
|
7100
|
+
isGridColumnArray: xn,
|
|
7085
7101
|
isLanguageArray: ui,
|
|
7086
7102
|
isLanguageLocaleFormat: $l,
|
|
7087
7103
|
modalColours: Mi,
|
|
@@ -7089,12 +7105,12 @@ const xi = /* @__PURE__ */ he(Qi, [["render", _i]]), Ji = /* @__PURE__ */ G({
|
|
|
7089
7105
|
pastQuickDates: al,
|
|
7090
7106
|
popoverPlacements: Fn,
|
|
7091
7107
|
quickDateNames: Sn,
|
|
7092
|
-
stringFormats:
|
|
7108
|
+
stringFormats: Jn,
|
|
7093
7109
|
tabColours: ac,
|
|
7094
7110
|
tabLayout: sc,
|
|
7095
7111
|
tabScroll: nc
|
|
7096
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
7097
|
-
o.use(Te), o.component("Icon",
|
|
7112
|
+
}, Symbol.toStringTag, { value: "Module" })), Jc = (o) => {
|
|
7113
|
+
o.use(Te), o.component("Icon", x), Object.entries(Rc).forEach(([
|
|
7098
7114
|
t,
|
|
7099
7115
|
l
|
|
7100
7116
|
]) => {
|
|
@@ -7102,7 +7118,7 @@ const xi = /* @__PURE__ */ he(Qi, [["render", _i]]), Ji = /* @__PURE__ */ G({
|
|
|
7102
7118
|
});
|
|
7103
7119
|
};
|
|
7104
7120
|
export {
|
|
7105
|
-
|
|
7121
|
+
xc as CitrusLimeUI,
|
|
7106
7122
|
ne as DateFormat,
|
|
7107
7123
|
oe as FilterOperation,
|
|
7108
7124
|
le as NumberFormat,
|
|
@@ -7112,7 +7128,7 @@ export {
|
|
|
7112
7128
|
uo as cardSizes,
|
|
7113
7129
|
sl as clUISlectInput,
|
|
7114
7130
|
Gt as clUiAccordion,
|
|
7115
|
-
|
|
7131
|
+
Jt as clUiAccordionHeader,
|
|
7116
7132
|
Kt as clUiAccordionItem,
|
|
7117
7133
|
lo as clUiApp,
|
|
7118
7134
|
ke as clUiButton,
|
|
@@ -7121,7 +7137,7 @@ export {
|
|
|
7121
7137
|
uc as clUiFileUploader,
|
|
7122
7138
|
la as clUiFooter,
|
|
7123
7139
|
Ys as clUiGrid,
|
|
7124
|
-
|
|
7140
|
+
_s as clUiGridLite,
|
|
7125
7141
|
bt as clUiGridLiteBody,
|
|
7126
7142
|
gt as clUiGridLiteBodySkeleton,
|
|
7127
7143
|
ht as clUiGridLiteCell,
|
|
@@ -7136,7 +7152,7 @@ export {
|
|
|
7136
7152
|
ct as clUiInputDateRange,
|
|
7137
7153
|
Al as clUiInputDateRangeInput,
|
|
7138
7154
|
dt as clUiInputDateTime,
|
|
7139
|
-
|
|
7155
|
+
Je as clUiInputNumber,
|
|
7140
7156
|
Bn as clUiInputRange,
|
|
7141
7157
|
Re as clUiInputText,
|
|
7142
7158
|
En as clUiInputTextArea,
|
|
@@ -7152,14 +7168,14 @@ export {
|
|
|
7152
7168
|
zi as clUiNavigation,
|
|
7153
7169
|
ji as clUiNavigationGroup,
|
|
7154
7170
|
Li as clUiNavigationIcon,
|
|
7155
|
-
|
|
7171
|
+
Ji as clUiNavigationItem,
|
|
7156
7172
|
Ki as clUiNavigationSection,
|
|
7157
|
-
|
|
7173
|
+
_l as clUiNotification,
|
|
7158
7174
|
$t as clUiRadio,
|
|
7159
7175
|
gc as clUiRadioGroup,
|
|
7160
7176
|
wl as clUiSelect,
|
|
7161
7177
|
ze as clUiSelectOption,
|
|
7162
|
-
|
|
7178
|
+
_i as clUiTab,
|
|
7163
7179
|
oc as clUiTabContent,
|
|
7164
7180
|
ec as clUiTabHeader,
|
|
7165
7181
|
dc as clUiToggle,
|
|
@@ -7167,9 +7183,9 @@ export {
|
|
|
7167
7183
|
He as currentQuickDates,
|
|
7168
7184
|
ut as dateTimeCalendarTypes,
|
|
7169
7185
|
$a as datetimeFormats,
|
|
7170
|
-
|
|
7186
|
+
Jc as default,
|
|
7171
7187
|
Ta as doesNumberStringContainPart,
|
|
7172
|
-
|
|
7188
|
+
_n as filterMethodTypes,
|
|
7173
7189
|
Ee as formatNumber,
|
|
7174
7190
|
gl as formatNumberAsDecimal,
|
|
7175
7191
|
$e as formatNumberAsInteger,
|
|
@@ -7185,7 +7201,7 @@ export {
|
|
|
7185
7201
|
ls as isFilterRequest,
|
|
7186
7202
|
ts as isFilterResponse,
|
|
7187
7203
|
pt as isGridColumn,
|
|
7188
|
-
|
|
7204
|
+
xn as isGridColumnArray,
|
|
7189
7205
|
ui as isLanguageArray,
|
|
7190
7206
|
$l as isLanguageLocaleFormat,
|
|
7191
7207
|
ya as messages,
|
|
@@ -7201,7 +7217,7 @@ export {
|
|
|
7201
7217
|
Wc as setLocaleMessages,
|
|
7202
7218
|
Kc as setLocaleNumberFormats,
|
|
7203
7219
|
Il as showNotification,
|
|
7204
|
-
|
|
7220
|
+
Jn as stringFormats,
|
|
7205
7221
|
ac as tabColours,
|
|
7206
7222
|
sc as tabLayout,
|
|
7207
7223
|
nc as tabScroll,
|