@citruslime/ui 3.0.0-beta.1 → 3.0.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/citrus-lime-ui.es.js +677 -682
- package/dist/citrus-lime-ui.umd.js +5 -5
- package/dist/components/input-v2/input-layout-wrapper/cl-ui-input-layout-wrapper.vue.d.ts +18 -4
- package/dist/components/toggle/cl-ui-toggle-button.vue.d.ts +40 -0
- package/dist/components/toggle/cl-ui-toggle.vue.d.ts +58 -0
- package/dist/components/toggle/index.d.ts +2 -0
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { Icon as
|
|
2
|
-
import { defineComponent as
|
|
1
|
+
import { Icon as K } from "@iconify/vue";
|
|
2
|
+
import { defineComponent as _, ref as R, openBlock as p, createElementBlock as w, renderSlot as B, normalizeProps as me, guardReactiveProps as he, Fragment as J, createElementVNode as v, normalizeClass as U, createVNode as N, unref as g, Transition as Ee, withCtx as H, withDirectives as X, mergeProps as ce, vShow as ae, createBlock as Z, Teleport as bl, renderList as ue, toDisplayString as I, createCommentVNode as z, computed as A, mergeModels as Oe, useModel as _e, createSlots as Le, vModelDynamic as xl, watch as ne, toRefs as ut, withKeys as ge, onMounted as Ke, onUnmounted as il, withModifiers as oe, nextTick as je, resolveComponent as yl, createTextVNode as pe, vModelCheckbox as dt, inject as ft, watchEffect as pt, toValue as Cl, toHandlers as mt, getCurrentInstance as vt, version as ht, useCssVars as gt, vModelText as bt, pushScopeId as yt, popScopeId as wt, provide as kt, normalizeStyle as $t } from "vue";
|
|
3
3
|
import { generateStringId as St, highlightText as Tt, validateEmail as Ct } from "@citruslime/utils";
|
|
4
4
|
import { unrefElement as Ot, tryOnScopeDispose as Et, onClickOutside as wl, useTimeoutFn as Hl, useMouseInElement as Ft, useFocusWithin as Dt, useMediaQuery as Nt, useDebounceFn as At, useWindowSize as Vt } from "@vueuse/core";
|
|
5
5
|
import { useI18n as fe, createI18n as qt } from "vue-i18n";
|
|
6
6
|
import { copy as ve } from "@citruslime/vue-utils";
|
|
7
7
|
import { DateTime as Q } from "luxon";
|
|
8
8
|
import { DatePicker as dl } from "v-calendar";
|
|
9
|
-
const It = { class: "cl-overflow-hidden" }, Rt = /* @__PURE__ */
|
|
9
|
+
const It = { class: "cl-overflow-hidden" }, Rt = /* @__PURE__ */ _({
|
|
10
10
|
__name: "cl-ui-accordion",
|
|
11
11
|
props: {
|
|
12
12
|
exclusive: { type: Boolean, default: !1 }
|
|
@@ -27,10 +27,10 @@ const It = { class: "cl-overflow-hidden" }, Rt = /* @__PURE__ */ K({
|
|
|
27
27
|
}), a.open = !a.open);
|
|
28
28
|
}
|
|
29
29
|
return (r, a) => (p(), w("div", It, [
|
|
30
|
-
|
|
30
|
+
B(r.$slots, "default", me(he({ isItemOpen: l, toggleItem: n })))
|
|
31
31
|
]));
|
|
32
32
|
}
|
|
33
|
-
}), Mt = { class: "cl-absolute cl-left-5 cl-top-5" }, Lt = { class: "cl-font-semibold cl-ml-10 cl-p-4 cl-select-none cl-text-grey-5" }, jt = { class: "cl-overflow-hidden" }, Pt = /* @__PURE__ */
|
|
33
|
+
}), Mt = { class: "cl-absolute cl-left-5 cl-top-5" }, Lt = { class: "cl-font-semibold cl-ml-10 cl-p-4 cl-select-none cl-text-grey-5" }, jt = { class: "cl-overflow-hidden" }, Pt = /* @__PURE__ */ _({
|
|
34
34
|
inheritAttrs: !1,
|
|
35
35
|
__name: "cl-ui-accordion-item",
|
|
36
36
|
props: {
|
|
@@ -45,15 +45,15 @@ const It = { class: "cl-overflow-hidden" }, Rt = /* @__PURE__ */ K({
|
|
|
45
45
|
}
|
|
46
46
|
return (r, a) => (p(), w(J, null, [
|
|
47
47
|
v("div", {
|
|
48
|
-
class:
|
|
48
|
+
class: U(["cl-border-b cl-border-grey-1 cl-relative", {
|
|
49
49
|
"cl-bg-grey-0": r.disabled,
|
|
50
50
|
"cl-cursor-pointer": !r.disabled
|
|
51
51
|
}]),
|
|
52
52
|
onClick: n
|
|
53
53
|
}, [
|
|
54
54
|
v("div", Mt, [
|
|
55
|
-
N(g(
|
|
56
|
-
class:
|
|
55
|
+
N(g(K), {
|
|
56
|
+
class: U(["cl-duration-300 cl-ease-in-out cl-text-grey-3 cl-transform-gpu cl-transition-transform", {
|
|
57
57
|
"cl-rotate-180": r.open
|
|
58
58
|
}]),
|
|
59
59
|
icon: "ph:caret-down-bold",
|
|
@@ -61,14 +61,14 @@ const It = { class: "cl-overflow-hidden" }, Rt = /* @__PURE__ */ K({
|
|
|
61
61
|
}, null, 8, ["class"])
|
|
62
62
|
]),
|
|
63
63
|
v("div", Lt, [
|
|
64
|
-
|
|
64
|
+
B(r.$slots, "title")
|
|
65
65
|
])
|
|
66
66
|
], 2),
|
|
67
67
|
v("div", jt, [
|
|
68
68
|
N(Ee, { name: "grow-down" }, {
|
|
69
69
|
default: H(() => [
|
|
70
70
|
X(v("div", ce(r.$attrs, { class: "cl-ml-10 cl-p-4" }), [
|
|
71
|
-
|
|
71
|
+
B(r.$slots, "default")
|
|
72
72
|
], 16), [
|
|
73
73
|
[ae, r.open]
|
|
74
74
|
])
|
|
@@ -86,7 +86,7 @@ const It = { class: "cl-overflow-hidden" }, Rt = /* @__PURE__ */ K({
|
|
|
86
86
|
}, zt = {}, Bt = { 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" };
|
|
87
87
|
function Ut(o, e) {
|
|
88
88
|
return p(), w("div", Bt, [
|
|
89
|
-
|
|
89
|
+
B(o.$slots, "default")
|
|
90
90
|
]);
|
|
91
91
|
}
|
|
92
92
|
const xt = /* @__PURE__ */ Se(zt, [["render", Ut]]), el = R([]);
|
|
@@ -100,7 +100,7 @@ function Ol(o) {
|
|
|
100
100
|
function Gl(o) {
|
|
101
101
|
el.value = el.value.filter((e) => e.id !== o.id);
|
|
102
102
|
}
|
|
103
|
-
const Ht = ["onClick"], Gt = { class: "cl-flex-1 cl-select-none cl-text-ellipsis cl-w-64" }, Wl = /* @__PURE__ */
|
|
103
|
+
const Ht = ["onClick"], Gt = { class: "cl-flex-1 cl-select-none cl-text-ellipsis cl-w-64" }, Wl = /* @__PURE__ */ _({
|
|
104
104
|
inheritAttrs: !1,
|
|
105
105
|
__name: "cl-ui-notification",
|
|
106
106
|
props: {
|
|
@@ -108,9 +108,9 @@ const Ht = ["onClick"], Gt = { class: "cl-flex-1 cl-select-none cl-text-ellipsis
|
|
|
108
108
|
position: { default: "top-right" }
|
|
109
109
|
},
|
|
110
110
|
setup(o) {
|
|
111
|
-
return (e, t) => (p(),
|
|
111
|
+
return (e, t) => (p(), Z(bl, { to: e.container }, [
|
|
112
112
|
v("div", {
|
|
113
|
-
class:
|
|
113
|
+
class: U(["cl-fixed cl-w-80 cl-z-50", {
|
|
114
114
|
"cl-top-5 cl-left-5": e.position === "top-left",
|
|
115
115
|
"cl-top-5 cl-left-1/2": e.position === "top-centre",
|
|
116
116
|
"cl-top-5 cl-right-5": e.position === "top-right",
|
|
@@ -131,7 +131,7 @@ const Ht = ["onClick"], Gt = { class: "cl-flex-1 cl-select-none cl-text-ellipsis
|
|
|
131
131
|
onClick: (r) => g(Gl)(l)
|
|
132
132
|
}), [
|
|
133
133
|
v("span", Gt, I(l.message), 1),
|
|
134
|
-
N(g(
|
|
134
|
+
N(g(K), {
|
|
135
135
|
class: "cl-inline-block cl-opacity-0 cl-transition-opacity group-hover:cl-opacity-100",
|
|
136
136
|
icon: "ph:x",
|
|
137
137
|
size: 16,
|
|
@@ -141,7 +141,7 @@ const Ht = ["onClick"], Gt = { class: "cl-flex-1 cl-select-none cl-text-ellipsis
|
|
|
141
141
|
], 2)
|
|
142
142
|
], 8, ["to"]));
|
|
143
143
|
}
|
|
144
|
-
}), Wt = { class: "cl-absolute cl-flex cl-flex-wrap cl-h-full cl-max-h-full cl-max-w-full cl-min-h-full cl-min-w-full cl-w-full xl:cl-h-screen xl:cl-max-h-screen xl:cl-min-h-screen" },
|
|
144
|
+
}), Wt = { class: "cl-absolute cl-flex cl-flex-wrap cl-h-full cl-max-h-full cl-max-w-full cl-min-h-full cl-min-w-full cl-w-full xl:cl-h-screen xl:cl-max-h-screen xl:cl-min-h-screen" }, _t = /* @__PURE__ */ _({
|
|
145
145
|
__name: "cl-ui-app",
|
|
146
146
|
props: {
|
|
147
147
|
removePadding: { type: Boolean, default: !1 }
|
|
@@ -149,36 +149,36 @@ const Ht = ["onClick"], Gt = { class: "cl-flex-1 cl-select-none cl-text-ellipsis
|
|
|
149
149
|
setup(o) {
|
|
150
150
|
return (e, t) => (p(), w(J, null, [
|
|
151
151
|
N(Wl, {
|
|
152
|
-
class:
|
|
152
|
+
class: U({
|
|
153
153
|
"first:cl-mt-[4.25rem]": e.$slots.header
|
|
154
154
|
})
|
|
155
155
|
}, null, 8, ["class"]),
|
|
156
156
|
v("div", Wt, [
|
|
157
|
-
|
|
157
|
+
B(e.$slots, "header"),
|
|
158
158
|
v("div", {
|
|
159
|
-
class:
|
|
159
|
+
class: U(["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", {
|
|
160
160
|
"cl-pt-20": e.$slots.header
|
|
161
161
|
}])
|
|
162
162
|
}, [
|
|
163
|
-
|
|
163
|
+
B(e.$slots, "navigation"),
|
|
164
164
|
v("div", {
|
|
165
165
|
id: "cl-ui-app-container",
|
|
166
|
-
class:
|
|
166
|
+
class: U(["cl-grow cl-max-h-full cl-overflow-x-hidden cl-overflow-y-auto cl-overscroll-y-none cl-w-auto", {
|
|
167
167
|
"lg:cl-pb-0": e.removePadding,
|
|
168
168
|
"lg:cl-pb-8 md:cl-px-8 cl-px-2 md:cl-pt-8 cl-pt-2": !e.removePadding
|
|
169
169
|
}])
|
|
170
170
|
}, [
|
|
171
|
-
|
|
171
|
+
B(e.$slots, "default")
|
|
172
172
|
], 2)
|
|
173
173
|
], 2)
|
|
174
174
|
])
|
|
175
175
|
], 64));
|
|
176
176
|
}
|
|
177
|
-
}),
|
|
177
|
+
}), Kt = {}, Zt = { class: "loading-spinner" };
|
|
178
178
|
function Qt(o, e) {
|
|
179
|
-
return p(), w("div",
|
|
179
|
+
return p(), w("div", Zt);
|
|
180
180
|
}
|
|
181
|
-
const sl = /* @__PURE__ */ Se(
|
|
181
|
+
const sl = /* @__PURE__ */ Se(Kt, [["render", Qt], ["__scopeId", "data-v-a21dc5d2"]]), Yt = ["disabled"], ye = /* @__PURE__ */ _({
|
|
182
182
|
inheritAttrs: !1,
|
|
183
183
|
__name: "cl-ui-button",
|
|
184
184
|
props: {
|
|
@@ -214,7 +214,7 @@ const sl = /* @__PURE__ */ Se(Zt, [["render", Qt], ["__scopeId", "data-v-a21dc5d
|
|
|
214
214
|
}],
|
|
215
215
|
disabled: l.disabled
|
|
216
216
|
}), [
|
|
217
|
-
|
|
217
|
+
B(l.$slots, "default")
|
|
218
218
|
], 16, Yt), [
|
|
219
219
|
[ae, !l.loading]
|
|
220
220
|
])
|
|
@@ -231,7 +231,7 @@ const sl = /* @__PURE__ */ Se(Zt, [["render", Qt], ["__scopeId", "data-v-a21dc5d
|
|
|
231
231
|
"small",
|
|
232
232
|
"medium",
|
|
233
233
|
"large"
|
|
234
|
-
], eo = { key: 0 }, lo = /* @__PURE__ */
|
|
234
|
+
], eo = { key: 0 }, lo = /* @__PURE__ */ _({
|
|
235
235
|
__name: "cl-ui-card",
|
|
236
236
|
props: {
|
|
237
237
|
size: { default: "medium" },
|
|
@@ -239,43 +239,43 @@ const sl = /* @__PURE__ */ Se(Zt, [["render", Qt], ["__scopeId", "data-v-a21dc5d
|
|
|
239
239
|
},
|
|
240
240
|
setup(o) {
|
|
241
241
|
return (e, t) => (p(), w("div", {
|
|
242
|
-
class:
|
|
242
|
+
class: U(["cl-border cl-border-transparent cl-overflow-hidden cl-relative cl-rounded-md cl-shadow-lg cl-transition-all", {
|
|
243
243
|
"cl-cursor-pointer hover:cl-shadow-xl hover:cl-border-grey-0": e.hover
|
|
244
244
|
}])
|
|
245
245
|
}, [
|
|
246
246
|
e.$slots.image ? (p(), w("div", eo, [
|
|
247
|
-
|
|
247
|
+
B(e.$slots, "image")
|
|
248
248
|
])) : z("", !0),
|
|
249
249
|
e.$slots.title ? (p(), w("div", {
|
|
250
250
|
key: 1,
|
|
251
|
-
class:
|
|
251
|
+
class: U(["cl-border-grey-2 cl-font-normal", {
|
|
252
252
|
"cl-p-2 cl-text-2xl cl-leading-8": e.size === "small",
|
|
253
253
|
"cl-p-4 cl-text-3xl cl-leading-9": e.size === "medium",
|
|
254
254
|
"cl-p-6 cl-text-4xl cl-leading-10": e.size === "large",
|
|
255
255
|
"cl-border-t": e.$slots.image
|
|
256
256
|
}])
|
|
257
257
|
}, [
|
|
258
|
-
|
|
258
|
+
B(e.$slots, "title")
|
|
259
259
|
], 2)) : z("", !0),
|
|
260
260
|
v("div", {
|
|
261
|
-
class:
|
|
261
|
+
class: U(["cl-border-grey-2", {
|
|
262
262
|
"cl-p-2": e.size === "small",
|
|
263
263
|
"cl-p-4": e.size === "medium",
|
|
264
264
|
"cl-p-6": e.size === "large",
|
|
265
265
|
"cl-border-t": e.$slots.image || e.$slots.title
|
|
266
266
|
}])
|
|
267
267
|
}, [
|
|
268
|
-
|
|
268
|
+
B(e.$slots, "default")
|
|
269
269
|
], 2),
|
|
270
270
|
e.$slots.footer ? (p(), w("div", {
|
|
271
271
|
key: 2,
|
|
272
|
-
class:
|
|
272
|
+
class: U(["cl-border-grey-2 cl-border-t", {
|
|
273
273
|
"cl-p-2": e.size === "small",
|
|
274
274
|
"cl-p-4": e.size === "medium",
|
|
275
275
|
"cl-p-6": e.size === "large"
|
|
276
276
|
}])
|
|
277
277
|
}, [
|
|
278
|
-
|
|
278
|
+
B(e.$slots, "footer")
|
|
279
279
|
], 2)) : z("", !0)
|
|
280
280
|
], 2));
|
|
281
281
|
}
|
|
@@ -283,42 +283,37 @@ const sl = /* @__PURE__ */ Se(Zt, [["render", Qt], ["__scopeId", "data-v-a21dc5d
|
|
|
283
283
|
"small",
|
|
284
284
|
"medium",
|
|
285
285
|
"large"
|
|
286
|
-
], oo = { class: "cl-w-full sm:cl-w-auto" }, ao = { class: "cl-flex cl-flex-
|
|
286
|
+
], oo = { class: "cl-w-full sm:cl-w-auto" }, ao = { class: "cl-flex cl-flex-col cl-gap-2 cl-nowrap sm:cl-gap-0" }, no = { class: "cl-basis-1/2 cl-flex cl-flex-nowrap cl-flex-row cl-gap-2 cl-items-center cl-justify-start cl-text-grey-4 cl-text-xs cl-tracking-widest cl-w-full" }, ro = {
|
|
287
287
|
key: 0,
|
|
288
288
|
class: "cl-self-center"
|
|
289
|
-
},
|
|
289
|
+
}, io = {
|
|
290
290
|
key: 1,
|
|
291
291
|
class: "cl-text-danger-dark"
|
|
292
|
-
},
|
|
292
|
+
}, so = { class: "cl-basis-1/2 cl-w-full" }, co = {
|
|
293
293
|
key: 0,
|
|
294
294
|
class: "cl-pt-1 cl-w-full"
|
|
295
|
-
},
|
|
295
|
+
}, uo = { class: "cl-flex cl-flex-col cl-flex-nowrap cl-gap-1 cl-w-full" }, kl = /* @__PURE__ */ _({
|
|
296
296
|
__name: "cl-ui-input-layout-wrapper",
|
|
297
297
|
props: {
|
|
298
298
|
showRequiredAsterisk: { type: Boolean },
|
|
299
|
-
errors: {}
|
|
299
|
+
errors: { default: () => [] }
|
|
300
300
|
},
|
|
301
301
|
setup(o) {
|
|
302
302
|
const e = o, t = A(() => Object.keys(e.errors).length > 0);
|
|
303
303
|
return (l, n) => (p(), w("div", oo, [
|
|
304
304
|
v("div", ao, [
|
|
305
|
-
v("div",
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
"cl-justify-end": !l.$slots.label
|
|
309
|
-
}])
|
|
310
|
-
}, [
|
|
311
|
-
l.$slots.label ? (p(), w("span", no, [
|
|
312
|
-
U(l.$slots, "label")
|
|
305
|
+
v("div", no, [
|
|
306
|
+
l.$slots.label ? (p(), w("span", ro, [
|
|
307
|
+
B(l.$slots, "label")
|
|
313
308
|
])) : z("", !0),
|
|
314
|
-
l.showRequiredAsterisk ? (p(), w("span",
|
|
315
|
-
]
|
|
316
|
-
v("div",
|
|
317
|
-
|
|
309
|
+
l.showRequiredAsterisk ? (p(), w("span", io, "*")) : z("", !0)
|
|
310
|
+
]),
|
|
311
|
+
v("div", so, [
|
|
312
|
+
B(l.$slots, "default")
|
|
318
313
|
])
|
|
319
314
|
]),
|
|
320
|
-
t.value ? (p(), w("div",
|
|
321
|
-
v("div",
|
|
315
|
+
t.value ? (p(), w("div", co, [
|
|
316
|
+
v("div", uo, [
|
|
322
317
|
(p(!0), w(J, null, ue(l.errors, (r, a) => (p(), w("div", {
|
|
323
318
|
key: a,
|
|
324
319
|
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"
|
|
@@ -327,7 +322,7 @@ const sl = /* @__PURE__ */ Se(Zt, [["render", Qt], ["__scopeId", "data-v-a21dc5d
|
|
|
327
322
|
])) : z("", !0)
|
|
328
323
|
]));
|
|
329
324
|
}
|
|
330
|
-
}),
|
|
325
|
+
}), fo = ["type", "maxlength", "required", "disabled", "placeholder"], Ne = /* @__PURE__ */ _({
|
|
331
326
|
inheritAttrs: !1,
|
|
332
327
|
__name: "cl-ui-input-text",
|
|
333
328
|
props: /* @__PURE__ */ Oe({
|
|
@@ -343,7 +338,7 @@ const sl = /* @__PURE__ */ Se(Zt, [["render", Qt], ["__scopeId", "data-v-a21dc5d
|
|
|
343
338
|
}),
|
|
344
339
|
emits: /* @__PURE__ */ Oe(["focus", "blur"], ["update:modelValue"]),
|
|
345
340
|
setup(o, { expose: e, emit: t }) {
|
|
346
|
-
const l =
|
|
341
|
+
const l = _e(o, "modelValue"), n = t, r = R();
|
|
347
342
|
return e({
|
|
348
343
|
focus: () => {
|
|
349
344
|
var a;
|
|
@@ -353,7 +348,7 @@ const sl = /* @__PURE__ */ Se(Zt, [["render", Qt], ["__scopeId", "data-v-a21dc5d
|
|
|
353
348
|
var a;
|
|
354
349
|
return (a = r.value) == null ? void 0 : a.blur();
|
|
355
350
|
}
|
|
356
|
-
}), (a, u) => (p(),
|
|
351
|
+
}), (a, u) => (p(), Z(kl, {
|
|
357
352
|
"show-required-asterisk": a.required,
|
|
358
353
|
errors: a.errors
|
|
359
354
|
}, Le({
|
|
@@ -370,7 +365,7 @@ const sl = /* @__PURE__ */ Se(Zt, [["render", Qt], ["__scopeId", "data-v-a21dc5d
|
|
|
370
365
|
placeholder: a.placeholder ?? void 0,
|
|
371
366
|
onFocus: u[1] || (u[1] = (s) => n("focus")),
|
|
372
367
|
onBlur: u[2] || (u[2] = (s) => n("blur"))
|
|
373
|
-
}), null, 16,
|
|
368
|
+
}), null, 16, fo), [
|
|
374
369
|
[xl, l.value]
|
|
375
370
|
])
|
|
376
371
|
]),
|
|
@@ -379,7 +374,7 @@ const sl = /* @__PURE__ */ Se(Zt, [["render", Qt], ["__scopeId", "data-v-a21dc5d
|
|
|
379
374
|
a.$slots.default ? {
|
|
380
375
|
name: "label",
|
|
381
376
|
fn: H(() => [
|
|
382
|
-
|
|
377
|
+
B(a.$slots, "default")
|
|
383
378
|
]),
|
|
384
379
|
key: "0"
|
|
385
380
|
} : void 0
|
|
@@ -390,8 +385,8 @@ const sl = /* @__PURE__ */ Se(Zt, [["render", Qt], ["__scopeId", "data-v-a21dc5d
|
|
|
390
385
|
* tabbable 6.2.0
|
|
391
386
|
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
|
|
392
387
|
*/
|
|
393
|
-
var
|
|
394
|
-
} : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector, tl = !
|
|
388
|
+
var _l = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])", "a[href]:not([inert])", "button:not([inert])", "[tabindex]:not(slot):not([inert])", "audio[controls]:not([inert])", "video[controls]:not([inert])", '[contenteditable]:not([contenteditable="false"]):not([inert])', "details>summary:first-of-type:not([inert])", "details:not([inert])"], ll = /* @__PURE__ */ _l.join(","), Kl = typeof Element > "u", Ie = Kl ? function() {
|
|
389
|
+
} : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector, tl = !Kl && Element.prototype.getRootNode ? function(o) {
|
|
395
390
|
var e;
|
|
396
391
|
return o == null || (e = o.getRootNode) === null || e === void 0 ? void 0 : e.call(o);
|
|
397
392
|
} : function(o) {
|
|
@@ -401,10 +396,10 @@ var Kl = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
401
396
|
t === void 0 && (t = !0);
|
|
402
397
|
var n = e == null || (l = e.getAttribute) === null || l === void 0 ? void 0 : l.call(e, "inert"), r = n === "" || n === "true", a = r || t && e && o(e.parentNode);
|
|
403
398
|
return a;
|
|
404
|
-
},
|
|
399
|
+
}, po = function(e) {
|
|
405
400
|
var t, l = e == null || (t = e.getAttribute) === null || t === void 0 ? void 0 : t.call(e, "contenteditable");
|
|
406
401
|
return l === "" || l === "true";
|
|
407
|
-
},
|
|
402
|
+
}, Zl = function(e, t, l) {
|
|
408
403
|
if (ol(e))
|
|
409
404
|
return [];
|
|
410
405
|
var n = Array.prototype.slice.apply(e.querySelectorAll(ll));
|
|
@@ -440,26 +435,26 @@ var Kl = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
440
435
|
}, Ae = function(e) {
|
|
441
436
|
if (!e)
|
|
442
437
|
throw new Error("No node provided");
|
|
443
|
-
return e.tabIndex < 0 && (/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName) ||
|
|
444
|
-
},
|
|
438
|
+
return e.tabIndex < 0 && (/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName) || po(e)) && !Yl(e) ? 0 : e.tabIndex;
|
|
439
|
+
}, mo = function(e, t) {
|
|
445
440
|
var l = Ae(e);
|
|
446
441
|
return l < 0 && t && !Yl(e) ? 0 : l;
|
|
447
|
-
},
|
|
442
|
+
}, vo = function(e, t) {
|
|
448
443
|
return e.tabIndex === t.tabIndex ? e.documentOrder - t.documentOrder : e.tabIndex - t.tabIndex;
|
|
449
444
|
}, Jl = function(e) {
|
|
450
445
|
return e.tagName === "INPUT";
|
|
451
|
-
}, vo = function(e) {
|
|
452
|
-
return Jl(e) && e.type === "hidden";
|
|
453
446
|
}, ho = function(e) {
|
|
447
|
+
return Jl(e) && e.type === "hidden";
|
|
448
|
+
}, go = function(e) {
|
|
454
449
|
var t = e.tagName === "DETAILS" && Array.prototype.slice.apply(e.children).some(function(l) {
|
|
455
450
|
return l.tagName === "SUMMARY";
|
|
456
451
|
});
|
|
457
452
|
return t;
|
|
458
|
-
},
|
|
453
|
+
}, bo = function(e, t) {
|
|
459
454
|
for (var l = 0; l < e.length; l++)
|
|
460
455
|
if (e[l].checked && e[l].form === t)
|
|
461
456
|
return e[l];
|
|
462
|
-
},
|
|
457
|
+
}, yo = function(e) {
|
|
463
458
|
if (!e.name)
|
|
464
459
|
return !0;
|
|
465
460
|
var t = e.form || tl(e), l = function(u) {
|
|
@@ -473,13 +468,13 @@ var Kl = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
473
468
|
} catch (a) {
|
|
474
469
|
return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s", a.message), !1;
|
|
475
470
|
}
|
|
476
|
-
var r =
|
|
471
|
+
var r = bo(n, e.form);
|
|
477
472
|
return !r || r === e;
|
|
478
|
-
}, yo = function(e) {
|
|
479
|
-
return Jl(e) && e.type === "radio";
|
|
480
473
|
}, wo = function(e) {
|
|
481
|
-
return
|
|
474
|
+
return Jl(e) && e.type === "radio";
|
|
482
475
|
}, ko = function(e) {
|
|
476
|
+
return wo(e) && !yo(e);
|
|
477
|
+
}, $o = function(e) {
|
|
483
478
|
var t, l = e && tl(e), n = (t = l) === null || t === void 0 ? void 0 : t.host, r = !1;
|
|
484
479
|
if (l && l !== e) {
|
|
485
480
|
var a, u, s;
|
|
@@ -492,7 +487,7 @@ var Kl = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
492
487
|
}, El = function(e) {
|
|
493
488
|
var t = e.getBoundingClientRect(), l = t.width, n = t.height;
|
|
494
489
|
return l === 0 && n === 0;
|
|
495
|
-
},
|
|
490
|
+
}, So = function(e, t) {
|
|
496
491
|
var l = t.displayCheck, n = t.getShadowRoot;
|
|
497
492
|
if (getComputedStyle(e).visibility === "hidden")
|
|
498
493
|
return !0;
|
|
@@ -509,14 +504,14 @@ var Kl = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
509
504
|
}
|
|
510
505
|
e = u;
|
|
511
506
|
}
|
|
512
|
-
if (
|
|
507
|
+
if ($o(e))
|
|
513
508
|
return !e.getClientRects().length;
|
|
514
509
|
if (l !== "legacy-full")
|
|
515
510
|
return !0;
|
|
516
511
|
} else if (l === "non-zero-area")
|
|
517
512
|
return El(e);
|
|
518
513
|
return !1;
|
|
519
|
-
},
|
|
514
|
+
}, To = function(e) {
|
|
520
515
|
if (/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))
|
|
521
516
|
for (var t = e.parentElement; t; ) {
|
|
522
517
|
if (t.tagName === "FIELDSET" && t.disabled) {
|
|
@@ -534,17 +529,17 @@ var Kl = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
534
529
|
return !(t.disabled || // we must do an inert look up to filter out any elements inside an inert ancestor
|
|
535
530
|
// because we're limited in the type of selectors we can use in JSDom (see related
|
|
536
531
|
// note related to `candidateSelectors`)
|
|
537
|
-
ol(t) ||
|
|
538
|
-
|
|
532
|
+
ol(t) || ho(t) || So(t, e) || // For a details element with a summary, the summary element gets the focus
|
|
533
|
+
go(t) || To(t));
|
|
539
534
|
}, vl = function(e, t) {
|
|
540
|
-
return !(
|
|
541
|
-
},
|
|
535
|
+
return !(ko(t) || Ae(t) < 0 || !al(e, t));
|
|
536
|
+
}, Co = function(e) {
|
|
542
537
|
var t = parseInt(e.getAttribute("tabindex"), 10);
|
|
543
538
|
return !!(isNaN(t) || t >= 0);
|
|
544
|
-
},
|
|
539
|
+
}, Oo = function o(e) {
|
|
545
540
|
var t = [], l = [];
|
|
546
541
|
return e.forEach(function(n, r) {
|
|
547
|
-
var a = !!n.scopeParent, u = a ? n.scopeParent : n, s =
|
|
542
|
+
var a = !!n.scopeParent, u = a ? n.scopeParent : n, s = mo(u, a), i = a ? o(n.candidates) : u;
|
|
548
543
|
s === 0 ? a ? t.push.apply(t, i) : t.push(u) : l.push({
|
|
549
544
|
documentOrder: r,
|
|
550
545
|
tabIndex: s,
|
|
@@ -552,34 +547,34 @@ var Kl = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
552
547
|
isScope: a,
|
|
553
548
|
content: i
|
|
554
549
|
});
|
|
555
|
-
}), l.sort(
|
|
550
|
+
}), l.sort(vo).reduce(function(n, r) {
|
|
556
551
|
return r.isScope ? n.push.apply(n, r.content) : n.push(r.content), n;
|
|
557
552
|
}, []).concat(t);
|
|
558
|
-
},
|
|
553
|
+
}, Eo = function(e, t) {
|
|
559
554
|
t = t || {};
|
|
560
555
|
var l;
|
|
561
556
|
return t.getShadowRoot ? l = Ql([e], t.includeContainer, {
|
|
562
557
|
filter: vl.bind(null, t),
|
|
563
558
|
flatten: !1,
|
|
564
559
|
getShadowRoot: t.getShadowRoot,
|
|
565
|
-
shadowRootFilter:
|
|
566
|
-
}) : l =
|
|
567
|
-
},
|
|
560
|
+
shadowRootFilter: Co
|
|
561
|
+
}) : l = Zl(e, t.includeContainer, vl.bind(null, t)), Oo(l);
|
|
562
|
+
}, Fo = function(e, t) {
|
|
568
563
|
t = t || {};
|
|
569
564
|
var l;
|
|
570
565
|
return t.getShadowRoot ? l = Ql([e], t.includeContainer, {
|
|
571
566
|
filter: al.bind(null, t),
|
|
572
567
|
flatten: !0,
|
|
573
568
|
getShadowRoot: t.getShadowRoot
|
|
574
|
-
}) : l =
|
|
569
|
+
}) : l = Zl(e, t.includeContainer, al.bind(null, t)), l;
|
|
575
570
|
}, Me = function(e, t) {
|
|
576
571
|
if (t = t || {}, !e)
|
|
577
572
|
throw new Error("No node provided");
|
|
578
573
|
return Ie.call(e, ll) === !1 ? !1 : vl(t, e);
|
|
579
|
-
},
|
|
574
|
+
}, Do = /* @__PURE__ */ _l.concat("iframe").join(","), fl = function(e, t) {
|
|
580
575
|
if (t = t || {}, !e)
|
|
581
576
|
throw new Error("No node provided");
|
|
582
|
-
return Ie.call(e,
|
|
577
|
+
return Ie.call(e, Do) === !1 ? !1 : al(t, e);
|
|
583
578
|
};
|
|
584
579
|
/*!
|
|
585
580
|
* focus-trap 7.5.4
|
|
@@ -599,22 +594,22 @@ function Dl(o) {
|
|
|
599
594
|
for (var e = 1; e < arguments.length; e++) {
|
|
600
595
|
var t = arguments[e] != null ? arguments[e] : {};
|
|
601
596
|
e % 2 ? Fl(Object(t), !0).forEach(function(l) {
|
|
602
|
-
|
|
597
|
+
No(o, l, t[l]);
|
|
603
598
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(o, Object.getOwnPropertyDescriptors(t)) : Fl(Object(t)).forEach(function(l) {
|
|
604
599
|
Object.defineProperty(o, l, Object.getOwnPropertyDescriptor(t, l));
|
|
605
600
|
});
|
|
606
601
|
}
|
|
607
602
|
return o;
|
|
608
603
|
}
|
|
609
|
-
function
|
|
610
|
-
return e =
|
|
604
|
+
function No(o, e, t) {
|
|
605
|
+
return e = Vo(e), e in o ? Object.defineProperty(o, e, {
|
|
611
606
|
value: t,
|
|
612
607
|
enumerable: !0,
|
|
613
608
|
configurable: !0,
|
|
614
609
|
writable: !0
|
|
615
610
|
}) : o[e] = t, o;
|
|
616
611
|
}
|
|
617
|
-
function
|
|
612
|
+
function Ao(o, e) {
|
|
618
613
|
if (typeof o != "object" || o === null)
|
|
619
614
|
return o;
|
|
620
615
|
var t = o[Symbol.toPrimitive];
|
|
@@ -626,8 +621,8 @@ function No(o, e) {
|
|
|
626
621
|
}
|
|
627
622
|
return (e === "string" ? String : Number)(o);
|
|
628
623
|
}
|
|
629
|
-
function
|
|
630
|
-
var e =
|
|
624
|
+
function Vo(o) {
|
|
625
|
+
var e = Ao(o, "string");
|
|
631
626
|
return typeof e == "symbol" ? e : String(e);
|
|
632
627
|
}
|
|
633
628
|
var Nl = {
|
|
@@ -643,15 +638,15 @@ var Nl = {
|
|
|
643
638
|
var l = e.indexOf(t);
|
|
644
639
|
l !== -1 && e.splice(l, 1), e.length > 0 && e[e.length - 1].unpause();
|
|
645
640
|
}
|
|
646
|
-
}, Vo = function(e) {
|
|
647
|
-
return e.tagName && e.tagName.toLowerCase() === "input" && typeof e.select == "function";
|
|
648
641
|
}, qo = function(e) {
|
|
642
|
+
return e.tagName && e.tagName.toLowerCase() === "input" && typeof e.select == "function";
|
|
643
|
+
}, Io = function(e) {
|
|
649
644
|
return (e == null ? void 0 : e.key) === "Escape" || (e == null ? void 0 : e.key) === "Esc" || (e == null ? void 0 : e.keyCode) === 27;
|
|
650
645
|
}, xe = function(e) {
|
|
651
646
|
return (e == null ? void 0 : e.key) === "Tab" || (e == null ? void 0 : e.keyCode) === 9;
|
|
652
|
-
}, Io = function(e) {
|
|
653
|
-
return xe(e) && !e.shiftKey;
|
|
654
647
|
}, Ro = function(e) {
|
|
648
|
+
return xe(e) && !e.shiftKey;
|
|
649
|
+
}, Mo = function(e) {
|
|
655
650
|
return xe(e) && e.shiftKey;
|
|
656
651
|
}, Al = function(e) {
|
|
657
652
|
return setTimeout(e, 0);
|
|
@@ -666,13 +661,13 @@ var Nl = {
|
|
|
666
661
|
return typeof e == "function" ? e.apply(void 0, l) : e;
|
|
667
662
|
}, Qe = function(e) {
|
|
668
663
|
return e.target.shadowRoot && typeof e.composedPath == "function" ? e.composedPath()[0] : e.target;
|
|
669
|
-
},
|
|
670
|
-
var l = (t == null ? void 0 : t.document) || document, n = (t == null ? void 0 : t.trapStack) ||
|
|
664
|
+
}, Lo = [], jo = function(e, t) {
|
|
665
|
+
var l = (t == null ? void 0 : t.document) || document, n = (t == null ? void 0 : t.trapStack) || Lo, r = Dl({
|
|
671
666
|
returnFocusOnDeactivate: !0,
|
|
672
667
|
escapeDeactivates: !0,
|
|
673
668
|
delayInitialFocus: !0,
|
|
674
|
-
isKeyForward:
|
|
675
|
-
isKeyBackward:
|
|
669
|
+
isKeyForward: Ro,
|
|
670
|
+
isKeyBackward: Mo
|
|
676
671
|
}, t), a = {
|
|
677
672
|
// containers given to createFocusTrap()
|
|
678
673
|
// @type {Array<HTMLElement>}
|
|
@@ -755,7 +750,7 @@ var Nl = {
|
|
|
755
750
|
return T;
|
|
756
751
|
}, b = function() {
|
|
757
752
|
if (a.containerGroups = a.containers.map(function(T) {
|
|
758
|
-
var S =
|
|
753
|
+
var S = Eo(T, r.tabbableOptions), j = Fo(T, r.tabbableOptions), C = S.length > 0 ? S[0] : void 0, L = S.length > 0 ? S[S.length - 1] : void 0, W = j.find(function(se) {
|
|
759
754
|
return Me(se);
|
|
760
755
|
}), Y = j.slice().reverse().find(function(se) {
|
|
761
756
|
return Me(se);
|
|
@@ -820,7 +815,7 @@ var Nl = {
|
|
|
820
815
|
}
|
|
821
816
|
T.focus({
|
|
822
817
|
preventScroll: !!r.preventScroll
|
|
823
|
-
}), a.mostRecentlyFocusedNode = T,
|
|
818
|
+
}), a.mostRecentlyFocusedNode = T, qo(T) && T.select();
|
|
824
819
|
}
|
|
825
820
|
}, D = function(T) {
|
|
826
821
|
var S = c("setReturnFocus", T);
|
|
@@ -915,7 +910,7 @@ var Nl = {
|
|
|
915
910
|
});
|
|
916
911
|
j && (xe(T) && T.preventDefault(), F(j));
|
|
917
912
|
}, ee = function(T) {
|
|
918
|
-
if (
|
|
913
|
+
if (Io(T) && ze(r.escapeDeactivates, T) !== !1) {
|
|
919
914
|
T.preventDefault(), u.deactivate();
|
|
920
915
|
return;
|
|
921
916
|
}
|
|
@@ -1014,7 +1009,7 @@ var Nl = {
|
|
|
1014
1009
|
}
|
|
1015
1010
|
}, u.updateContainerElements(e), u;
|
|
1016
1011
|
};
|
|
1017
|
-
function
|
|
1012
|
+
function Po(o, e = {}) {
|
|
1018
1013
|
let t;
|
|
1019
1014
|
const { immediate: l, ...n } = e, r = R(!1), a = R(!1), u = (d) => t && t.activate(d), s = (d) => t && t.deactivate(d), i = () => {
|
|
1020
1015
|
t && (t.pause(), a.value = !0);
|
|
@@ -1024,7 +1019,7 @@ function jo(o, e = {}) {
|
|
|
1024
1019
|
return ne(
|
|
1025
1020
|
() => Ot(o),
|
|
1026
1021
|
(d) => {
|
|
1027
|
-
d && (t =
|
|
1022
|
+
d && (t = jo(d, {
|
|
1028
1023
|
...n,
|
|
1029
1024
|
onActivate() {
|
|
1030
1025
|
r.value = !0, e.onActivate && e.onActivate();
|
|
@@ -1044,10 +1039,10 @@ function jo(o, e = {}) {
|
|
|
1044
1039
|
unpause: c
|
|
1045
1040
|
};
|
|
1046
1041
|
}
|
|
1047
|
-
const
|
|
1042
|
+
const zo = /* @__PURE__ */ v("div", { tabindex: "0" }, null, -1), Bo = {
|
|
1048
1043
|
key: 0,
|
|
1049
1044
|
class: "cl-mt-1 cl-opacity-60 cl-text-primary-default"
|
|
1050
|
-
},
|
|
1045
|
+
}, Uo = { class: "cl-overflow-y-auto cl-overscroll-y-none cl-p-2 cl-w-full" }, Xl = /* @__PURE__ */ _({
|
|
1051
1046
|
inheritAttrs: !1,
|
|
1052
1047
|
__name: "cl-ui-modal",
|
|
1053
1048
|
props: {
|
|
@@ -1057,7 +1052,7 @@ const Po = /* @__PURE__ */ v("div", { tabindex: "0" }, null, -1), zo = {
|
|
|
1057
1052
|
trapFocus: { type: Boolean, default: !1 }
|
|
1058
1053
|
},
|
|
1059
1054
|
setup(o) {
|
|
1060
|
-
const e = o, { trapFocus: t } = ut(e), l = R(!1), n = R(), r =
|
|
1055
|
+
const e = o, { trapFocus: t } = ut(e), l = R(!1), n = R(), r = Po(n);
|
|
1061
1056
|
ne([
|
|
1062
1057
|
t,
|
|
1063
1058
|
l
|
|
@@ -1079,8 +1074,8 @@ const Po = /* @__PURE__ */ v("div", { tabindex: "0" }, null, -1), zo = {
|
|
|
1079
1074
|
i.key === "Escape" && u();
|
|
1080
1075
|
}
|
|
1081
1076
|
return (i, c) => (p(), w(J, null, [
|
|
1082
|
-
|
|
1083
|
-
(p(),
|
|
1077
|
+
B(i.$slots, "trigger", me(he({ open: a }))),
|
|
1078
|
+
(p(), Z(bl, { to: "body" }, [
|
|
1084
1079
|
N(Ee, { name: "fade" }, {
|
|
1085
1080
|
default: H(() => [
|
|
1086
1081
|
X(v("div", {
|
|
@@ -1088,7 +1083,7 @@ const Po = /* @__PURE__ */ v("div", { tabindex: "0" }, null, -1), zo = {
|
|
|
1088
1083
|
ref: n,
|
|
1089
1084
|
class: "cl-align-items-center cl-bg-black cl-bg-opacity-40 cl-bottom-0 cl-fixed cl-flex cl-h-full cl-justify-center cl-left-0 cl-right-0 cl-top-0 cl-w-full cl-z-40 xl:cl-h-screen"
|
|
1090
1085
|
}, [
|
|
1091
|
-
|
|
1086
|
+
zo,
|
|
1092
1087
|
v("div", ce(i.$attrs, {
|
|
1093
1088
|
class: ["cl-bg-white cl-flex cl-flex-wrap cl-max-h-[calc(100%-8rem)] cl-mx-0 cl-my-auto cl-overflow-y-auto cl-overscroll-y-none cl-relative cl-rounded-lg cl-shadow-lg xl:cl-max-h-[calc(100vh-8rem)]", {
|
|
1094
1089
|
"lg:cl-w-2/12 cl-w-10/12": i.size === "x-small",
|
|
@@ -1098,7 +1093,7 @@ const Po = /* @__PURE__ */ v("div", { tabindex: "0" }, null, -1), zo = {
|
|
|
1098
1093
|
}]
|
|
1099
1094
|
}), [
|
|
1100
1095
|
X(v("div", {
|
|
1101
|
-
class:
|
|
1096
|
+
class: U(["cl-absolute cl-cursor-pointer cl-right-4 cl-top-4 cl-transition-colors cl-w-3", {
|
|
1102
1097
|
"cl-text-white hover:cl-text-off-white": i.headerColour === "secondary",
|
|
1103
1098
|
"cl-text-secondary hover:cl-text-off-white": i.headerColour === "primary",
|
|
1104
1099
|
"cl-text-black hover:cl-text-grey-7": i.headerColour === "white"
|
|
@@ -1107,23 +1102,23 @@ const Po = /* @__PURE__ */ v("div", { tabindex: "0" }, null, -1), zo = {
|
|
|
1107
1102
|
onKeypress: ge(u, ["enter"]),
|
|
1108
1103
|
onClick: u
|
|
1109
1104
|
}, [
|
|
1110
|
-
N(g(
|
|
1105
|
+
N(g(K), { icon: "ph:x" })
|
|
1111
1106
|
], 34), [
|
|
1112
1107
|
[ae, !i.preventClose]
|
|
1113
1108
|
]),
|
|
1114
1109
|
v("div", {
|
|
1115
|
-
class:
|
|
1110
|
+
class: U(["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", {
|
|
1116
1111
|
"cl-bg-secondary-default cl-text-white": i.headerColour === "secondary",
|
|
1117
1112
|
"cl-bg-primary-default cl-text-secondary": i.headerColour === "primary"
|
|
1118
1113
|
}])
|
|
1119
1114
|
}, [
|
|
1120
|
-
|
|
1121
|
-
i.headerColour === "white" ? (p(), w("hr",
|
|
1115
|
+
B(i.$slots, "title"),
|
|
1116
|
+
i.headerColour === "white" ? (p(), w("hr", Bo)) : z("", !0)
|
|
1122
1117
|
], 2),
|
|
1123
|
-
v("div",
|
|
1124
|
-
|
|
1118
|
+
v("div", Uo, [
|
|
1119
|
+
B(i.$slots, "default", me(he({ close: u })))
|
|
1125
1120
|
]),
|
|
1126
|
-
|
|
1121
|
+
B(i.$slots, "footer", me(he({ close: u })))
|
|
1127
1122
|
], 16)
|
|
1128
1123
|
], 512), [
|
|
1129
1124
|
[ae, l.value]
|
|
@@ -1134,10 +1129,10 @@ const Po = /* @__PURE__ */ v("div", { tabindex: "0" }, null, -1), zo = {
|
|
|
1134
1129
|
]))
|
|
1135
1130
|
], 64));
|
|
1136
1131
|
}
|
|
1137
|
-
}),
|
|
1132
|
+
}), xo = { class: "cl-bg-grey-0 cl-flex cl-p-1 cl-text-left" }, Ho = {
|
|
1138
1133
|
key: 0,
|
|
1139
1134
|
class: "cl-w-1/2"
|
|
1140
|
-
}, Ye = /* @__PURE__ */
|
|
1135
|
+
}, Ye = /* @__PURE__ */ _({
|
|
1141
1136
|
__name: "cl-ui-combo-box-header",
|
|
1142
1137
|
props: {
|
|
1143
1138
|
showClearButton: { type: Boolean, default: !1 },
|
|
@@ -1146,10 +1141,10 @@ const Po = /* @__PURE__ */ v("div", { tabindex: "0" }, null, -1), zo = {
|
|
|
1146
1141
|
},
|
|
1147
1142
|
emits: ["clear-object"],
|
|
1148
1143
|
setup(o) {
|
|
1149
|
-
return (e, t) => (p(), w("div",
|
|
1150
|
-
e.additionalText !== "" ? (p(), w("div",
|
|
1144
|
+
return (e, t) => (p(), w("div", xo, [
|
|
1145
|
+
e.additionalText !== "" ? (p(), w("div", Ho, I(e.additionalText), 1)) : z("", !0),
|
|
1151
1146
|
v("div", {
|
|
1152
|
-
class:
|
|
1147
|
+
class: U({
|
|
1153
1148
|
"cl-w-1/2": e.additionalText !== "",
|
|
1154
1149
|
"cl-w-full": e.additionalText === ""
|
|
1155
1150
|
})
|
|
@@ -1158,7 +1153,7 @@ const Po = /* @__PURE__ */ v("div", { tabindex: "0" }, null, -1), zo = {
|
|
|
1158
1153
|
class: "cl-cursor-pointer cl-float-right",
|
|
1159
1154
|
onMousedown: t[0] || (t[0] = (l) => e.$emit("clear-object"))
|
|
1160
1155
|
}, [
|
|
1161
|
-
N(g(
|
|
1156
|
+
N(g(K), {
|
|
1162
1157
|
class: "cl-mt-1 cl-transition-colors hover:cl-text-link-default",
|
|
1163
1158
|
icon: "ph:x"
|
|
1164
1159
|
})
|
|
@@ -1167,10 +1162,10 @@ const Po = /* @__PURE__ */ v("div", { tabindex: "0" }, null, -1), zo = {
|
|
|
1167
1162
|
])
|
|
1168
1163
|
]));
|
|
1169
1164
|
}
|
|
1170
|
-
}),
|
|
1165
|
+
}), Go = {
|
|
1171
1166
|
key: 0,
|
|
1172
1167
|
class: "cl-w-1/2"
|
|
1173
|
-
},
|
|
1168
|
+
}, Wo = { class: "cl-float-right cl-py-1 cl-text-black" }, ql = /* @__PURE__ */ _({
|
|
1174
1169
|
__name: "cl-ui-combo-box-selectable",
|
|
1175
1170
|
props: {
|
|
1176
1171
|
isCreateNewOption: { type: Boolean, default: !1 },
|
|
@@ -1201,7 +1196,7 @@ const Po = /* @__PURE__ */ v("div", { tabindex: "0" }, null, -1), zo = {
|
|
|
1201
1196
|
return ne(() => t.selectedIndex, () => i()), (c, d) => {
|
|
1202
1197
|
var b, y;
|
|
1203
1198
|
return p(), w("div", {
|
|
1204
|
-
class:
|
|
1199
|
+
class: U(["cl-cursor-pointer cl-duration-75 cl-flex cl-p-1 cl-text-left cl-transition-colors", {
|
|
1205
1200
|
"cl-bg-white": a.value === !1,
|
|
1206
1201
|
"cl-bg-link-light cl-text-white cl-opacity-90": a.value && c.isCreateNewOption === !1,
|
|
1207
1202
|
"cl-bg-primary-default cl-text-black cl-opacity-90": a.value && c.isCreateNewOption
|
|
@@ -1210,15 +1205,15 @@ const Po = /* @__PURE__ */ v("div", { tabindex: "0" }, null, -1), zo = {
|
|
|
1210
1205
|
onMousemove: d[0] || (d[0] = (F) => s(!0)),
|
|
1211
1206
|
onMouseleave: d[1] || (d[1] = (F) => s(!1))
|
|
1212
1207
|
}, [
|
|
1213
|
-
c.option !== null && ((b = c.option) == null ? void 0 : b.parentId) !== 0 && ((y = c.option) == null ? void 0 : y.parentId) !== void 0 ? (p(), w("div",
|
|
1208
|
+
c.option !== null && ((b = c.option) == null ? void 0 : b.parentId) !== 0 && ((y = c.option) == null ? void 0 : y.parentId) !== void 0 ? (p(), w("div", Go, I(r.value), 1)) : z("", !0),
|
|
1214
1209
|
v("div", {
|
|
1215
|
-
class:
|
|
1210
|
+
class: U({
|
|
1216
1211
|
"cl-w-1/2": r.value !== "",
|
|
1217
1212
|
"cl-w-full": r.value === ""
|
|
1218
1213
|
})
|
|
1219
1214
|
}, I(n.value), 3),
|
|
1220
|
-
X(v("div",
|
|
1221
|
-
N(g(
|
|
1215
|
+
X(v("div", Wo, [
|
|
1216
|
+
N(g(K), {
|
|
1222
1217
|
class: "cl-transition-colors",
|
|
1223
1218
|
icon: "ph:plus"
|
|
1224
1219
|
})
|
|
@@ -1228,10 +1223,10 @@ const Po = /* @__PURE__ */ v("div", { tabindex: "0" }, null, -1), zo = {
|
|
|
1228
1223
|
], 34);
|
|
1229
1224
|
};
|
|
1230
1225
|
}
|
|
1231
|
-
}),
|
|
1226
|
+
}), _o = ["onKeyup"], Ko = {
|
|
1232
1227
|
key: 0,
|
|
1233
1228
|
class: "cl-absolute cl-bg-off-white cl-flex cl-h-full cl-items-center cl-justify-center cl-w-full"
|
|
1234
|
-
}, Zo = { class: "cl-bg-white cl-flex cl-p-2 cl-pb-1 cl-sticky cl-top-0 cl-w-full cl-z-10" },
|
|
1229
|
+
}, Zo = { class: "cl-bg-white cl-flex cl-p-2 cl-pb-1 cl-sticky cl-top-0 cl-w-full cl-z-10" }, Qo = { class: "cl-inline-block cl-w-full" }, Yo = /* @__PURE__ */ v("span", null, null, -1), Jo = { key: 5 }, Xo = /* @__PURE__ */ _({
|
|
1235
1230
|
__name: "cl-ui-combo-box-search",
|
|
1236
1231
|
props: {
|
|
1237
1232
|
loading: { type: Boolean, default: !1 },
|
|
@@ -1295,7 +1290,7 @@ const Po = /* @__PURE__ */ v("div", { tabindex: "0" }, null, -1), zo = {
|
|
|
1295
1290
|
return (f = ($ = i.value) == null ? void 0 : $.querySelector("input")) == null ? void 0 : f.focus();
|
|
1296
1291
|
}));
|
|
1297
1292
|
}
|
|
1298
|
-
return ne(() => t.results, () => x()), ne(() => t.errorMessage, () => x()), ne(() => t.isVisible, () => te()),
|
|
1293
|
+
return ne(() => t.results, () => x()), ne(() => t.errorMessage, () => x()), ne(() => t.isVisible, () => te()), Ke(() => {
|
|
1299
1294
|
var $;
|
|
1300
1295
|
return ($ = i.value) == null ? void 0 : $.addEventListener("keydown", E);
|
|
1301
1296
|
}), il(() => {
|
|
@@ -1317,7 +1312,7 @@ const Po = /* @__PURE__ */ v("div", { tabindex: "0" }, null, -1), zo = {
|
|
|
1317
1312
|
N(sl)
|
|
1318
1313
|
])) : (p(), w(J, { key: 1 }, [
|
|
1319
1314
|
v("div", Zo, [
|
|
1320
|
-
v("div",
|
|
1315
|
+
v("div", Qo, [
|
|
1321
1316
|
N(Ne, {
|
|
1322
1317
|
modelValue: r.value,
|
|
1323
1318
|
"onUpdate:modelValue": f[0] || (f[0] = (m) => r.value = m),
|
|
@@ -1328,34 +1323,34 @@ const Po = /* @__PURE__ */ v("div", { tabindex: "0" }, null, -1), zo = {
|
|
|
1328
1323
|
onBlur: y
|
|
1329
1324
|
}, {
|
|
1330
1325
|
default: H(() => [
|
|
1331
|
-
|
|
1326
|
+
Yo
|
|
1332
1327
|
]),
|
|
1333
1328
|
_: 1
|
|
1334
1329
|
}, 8, ["modelValue", "placeholder"])
|
|
1335
1330
|
])
|
|
1336
1331
|
]),
|
|
1337
|
-
$.currentObjectName !== "" ? (p(),
|
|
1332
|
+
$.currentObjectName !== "" ? (p(), Z(Ye, {
|
|
1338
1333
|
key: 0,
|
|
1339
1334
|
"show-clear-button": $.canClearSelectedObject,
|
|
1340
1335
|
text: $.currentObjectName,
|
|
1341
1336
|
onClearObject: f[1] || (f[1] = (m) => $.$emit("clear-object"))
|
|
1342
1337
|
}, null, 8, ["show-clear-button", "text"])) : z("", !0),
|
|
1343
|
-
$.objectParentType !== "" && $.results !== void 0 && $.results.length > 0 && $.errorMessage === "" ? (p(),
|
|
1338
|
+
$.objectParentType !== "" && $.results !== void 0 && $.results.length > 0 && $.errorMessage === "" ? (p(), Z(Ye, {
|
|
1344
1339
|
key: 1,
|
|
1345
1340
|
text: $.objectType,
|
|
1346
1341
|
"additional-text": $.objectParentType,
|
|
1347
1342
|
class: "cl-bg-grey-2 cl-mt-1"
|
|
1348
1343
|
}, null, 8, ["text", "additional-text"])) : z("", !0),
|
|
1349
|
-
$.results !== null && ((h = $.results) == null ? void 0 : h.length) === 0 && r.value.trim() !== "" && $.canCreateNewObject === !1 && $.errorMessage === "" ? (p(),
|
|
1344
|
+
$.results !== null && ((h = $.results) == null ? void 0 : h.length) === 0 && r.value.trim() !== "" && $.canCreateNewObject === !1 && $.errorMessage === "" ? (p(), Z(Ye, {
|
|
1350
1345
|
key: 2,
|
|
1351
1346
|
text: g(n)("comboBox.noResults", { value: r.value })
|
|
1352
1347
|
}, null, 8, ["text"])) : z("", !0),
|
|
1353
|
-
$.errorMessage !== "" ? (p(),
|
|
1348
|
+
$.errorMessage !== "" ? (p(), Z(Ye, {
|
|
1354
1349
|
key: 3,
|
|
1355
1350
|
class: "!cl-bg-danger-light cl-border-danger-light cl-rounded cl-text-danger-dark",
|
|
1356
1351
|
text: g(n)("comboBox.errorMessage", { error: $.errorMessage })
|
|
1357
1352
|
}, null, 8, ["text"])) : z("", !0),
|
|
1358
|
-
a.value ? (p(),
|
|
1353
|
+
a.value ? (p(), Z(ql, {
|
|
1359
1354
|
key: 4,
|
|
1360
1355
|
"is-create-new-option": !0,
|
|
1361
1356
|
text: g(n)("comboBox.addPrompt", { value: r.value, object: $.objectType }),
|
|
@@ -1365,8 +1360,8 @@ const Po = /* @__PURE__ */ v("div", { tabindex: "0" }, null, -1), zo = {
|
|
|
1365
1360
|
onCreateObject: b,
|
|
1366
1361
|
onOptionHighlighted: ee
|
|
1367
1362
|
}, null, 8, ["text", "selected-index"])) : z("", !0),
|
|
1368
|
-
$.errorMessage === "" && $.results !== null ? (p(), w("div",
|
|
1369
|
-
(p(!0), w(J, null, ue($.results, (m, q) => (p(),
|
|
1363
|
+
$.errorMessage === "" && $.results !== null ? (p(), w("div", Jo, [
|
|
1364
|
+
(p(!0), w(J, null, ue($.results, (m, q) => (p(), Z(ql, {
|
|
1370
1365
|
key: q,
|
|
1371
1366
|
option: m,
|
|
1372
1367
|
index: q,
|
|
@@ -1377,10 +1372,10 @@ const Po = /* @__PURE__ */ v("div", { tabindex: "0" }, null, -1), zo = {
|
|
|
1377
1372
|
}, null, 8, ["option", "index", "selected-index"]))), 128))
|
|
1378
1373
|
])) : z("", !0)
|
|
1379
1374
|
], 64))
|
|
1380
|
-
], 40,
|
|
1375
|
+
], 40, _o);
|
|
1381
1376
|
};
|
|
1382
1377
|
}
|
|
1383
|
-
}),
|
|
1378
|
+
}), ea = { class: "cl-flex" }, la = { class: "cl-inline-block cl-w-full" }, ta = /* @__PURE__ */ v("span", null, null, -1), oa = { class: "cl-pointer-events-none cl-relative cl-top-0.5" }, aa = { class: "cl-absolute cl-flex cl-float-right cl-font-semibold cl-mt-2 cl-right-2 cl-text-danger-default cl-text-sm cl-z-10" }, na = ["disabled"], ra = ["disabled"], ia = { class: "cl-min-h-[16rem] cl-mx-4" }, sa = { class: "cl-p-2 cl-text-right cl-w-full" }, ca = /* @__PURE__ */ _({
|
|
1384
1379
|
__name: "cl-ui-combo-box",
|
|
1385
1380
|
props: {
|
|
1386
1381
|
loading: { type: Boolean, default: !1 },
|
|
@@ -1505,12 +1500,12 @@ const Po = /* @__PURE__ */ v("div", { tabindex: "0" }, null, -1), zo = {
|
|
|
1505
1500
|
ref: j,
|
|
1506
1501
|
class: "cl-relative"
|
|
1507
1502
|
}, [
|
|
1508
|
-
v("div",
|
|
1509
|
-
v("div",
|
|
1503
|
+
v("div", ea, [
|
|
1504
|
+
v("div", la, [
|
|
1510
1505
|
N(Ne, {
|
|
1511
1506
|
modelValue: d.value,
|
|
1512
1507
|
"onUpdate:modelValue": L[0] || (L[0] = (Y) => d.value = Y),
|
|
1513
|
-
class:
|
|
1508
|
+
class: U(["cl-box-border cl-font-light cl-mb-0 cl-p-2 cl-placeholder-grey-3 cl-rounded-r-none cl-text-sm", {
|
|
1514
1509
|
"cl-cursor-pointer": C.disabled === !1
|
|
1515
1510
|
}]),
|
|
1516
1511
|
placeholder: r.value,
|
|
@@ -1520,15 +1515,15 @@ const Po = /* @__PURE__ */ v("div", { tabindex: "0" }, null, -1), zo = {
|
|
|
1520
1515
|
})
|
|
1521
1516
|
}, {
|
|
1522
1517
|
default: H(() => [
|
|
1523
|
-
|
|
1518
|
+
ta
|
|
1524
1519
|
]),
|
|
1525
1520
|
_: 1
|
|
1526
1521
|
}, 8, ["modelValue", "class", "placeholder", "disabled"])
|
|
1527
1522
|
]),
|
|
1528
|
-
X(v("div",
|
|
1529
|
-
v("div",
|
|
1523
|
+
X(v("div", oa, [
|
|
1524
|
+
v("div", aa, [
|
|
1530
1525
|
pe(I(g(u)("comboBox.required")) + " ", 1),
|
|
1531
|
-
N(g(
|
|
1526
|
+
N(g(K), {
|
|
1532
1527
|
class: "cl-ml-1 cl-mt-1",
|
|
1533
1528
|
icon: "ph:warning"
|
|
1534
1529
|
})
|
|
@@ -1538,38 +1533,38 @@ const Po = /* @__PURE__ */ v("div", { tabindex: "0" }, null, -1), zo = {
|
|
|
1538
1533
|
]),
|
|
1539
1534
|
s.value ? (p(), w("div", {
|
|
1540
1535
|
key: 1,
|
|
1541
|
-
class:
|
|
1536
|
+
class: U(["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]", {
|
|
1542
1537
|
"cl-cursor-default cl-bg-off-white": C.disabled,
|
|
1543
1538
|
"cl-cursor-pointer hover:cl-bg-link-light hover:cl-opacity-90 hover:cl-text-white cl-bg-white": C.disabled === !1
|
|
1544
1539
|
}]),
|
|
1545
1540
|
disabled: C.disabled,
|
|
1546
1541
|
onClick: L[3] || (L[3] = (Y) => E(!1))
|
|
1547
1542
|
}, [
|
|
1548
|
-
N(g(
|
|
1543
|
+
N(g(K), {
|
|
1549
1544
|
icon: "ph:caret-up-bold",
|
|
1550
1545
|
class: "cl-ml-[4px] cl-mt-[12px]"
|
|
1551
1546
|
})
|
|
1552
|
-
], 10,
|
|
1547
|
+
], 10, ra)) : (p(), w("div", {
|
|
1553
1548
|
key: 0,
|
|
1554
|
-
class:
|
|
1549
|
+
class: U(["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]", {
|
|
1555
1550
|
"cl-cursor-default cl-bg-off-white": C.disabled,
|
|
1556
1551
|
"cl-cursor-pointer hover:cl-bg-link-light hover:cl-opacity-90 hover:cl-text-white cl-bg-white": C.disabled === !1
|
|
1557
1552
|
}]),
|
|
1558
1553
|
disabled: C.disabled,
|
|
1559
1554
|
onClick: L[2] || (L[2] = (Y) => E(!0))
|
|
1560
1555
|
}, [
|
|
1561
|
-
N(g(
|
|
1556
|
+
N(g(K), {
|
|
1562
1557
|
icon: "ph:caret-down-bold",
|
|
1563
1558
|
class: "cl-ml-[4px] cl-mt-[12px]"
|
|
1564
1559
|
})
|
|
1565
|
-
], 10,
|
|
1560
|
+
], 10, na))
|
|
1566
1561
|
]),
|
|
1567
1562
|
N(Xl, { size: "small" }, {
|
|
1568
1563
|
title: H(() => [
|
|
1569
1564
|
pe(I(g(u)("comboBox.createTitle", { object: C.objectType })), 1)
|
|
1570
1565
|
]),
|
|
1571
1566
|
trigger: H(({ open: Y }) => [
|
|
1572
|
-
X(N(
|
|
1567
|
+
X(N(Xo, {
|
|
1573
1568
|
"can-create-new-object": C.canCreateNewObject,
|
|
1574
1569
|
"can-clear-selected-object": C.canClearSelectedObject,
|
|
1575
1570
|
loading: C.loading,
|
|
@@ -1579,7 +1574,7 @@ const Po = /* @__PURE__ */ v("div", { tabindex: "0" }, null, -1), zo = {
|
|
|
1579
1574
|
"error-message": C.errorMessage,
|
|
1580
1575
|
"current-object-name": d.value,
|
|
1581
1576
|
"is-visible": s.value,
|
|
1582
|
-
class:
|
|
1577
|
+
class: U({
|
|
1583
1578
|
"cl-bottom-full": O.value
|
|
1584
1579
|
}),
|
|
1585
1580
|
"search-hint": a.value,
|
|
@@ -1593,7 +1588,7 @@ const Po = /* @__PURE__ */ v("div", { tabindex: "0" }, null, -1), zo = {
|
|
|
1593
1588
|
])
|
|
1594
1589
|
]),
|
|
1595
1590
|
footer: H(({ close: Y }) => [
|
|
1596
|
-
v("div",
|
|
1591
|
+
v("div", sa, [
|
|
1597
1592
|
N(ye, {
|
|
1598
1593
|
class: "cl-mr-3",
|
|
1599
1594
|
colour: "default",
|
|
@@ -1621,8 +1616,8 @@ const Po = /* @__PURE__ */ v("div", { tabindex: "0" }, null, -1), zo = {
|
|
|
1621
1616
|
])
|
|
1622
1617
|
]),
|
|
1623
1618
|
default: H(() => [
|
|
1624
|
-
v("div",
|
|
1625
|
-
C.objectParentType ? (p(),
|
|
1619
|
+
v("div", ia, [
|
|
1620
|
+
C.objectParentType ? (p(), Z(W, {
|
|
1626
1621
|
key: 0,
|
|
1627
1622
|
"current-object": c.value,
|
|
1628
1623
|
"onUpdate:currentObject": L[5] || (L[5] = (Y) => c.value = Y),
|
|
@@ -1655,35 +1650,35 @@ const Po = /* @__PURE__ */ v("div", { tabindex: "0" }, null, -1), zo = {
|
|
|
1655
1650
|
};
|
|
1656
1651
|
}
|
|
1657
1652
|
});
|
|
1658
|
-
function
|
|
1653
|
+
function ua(o) {
|
|
1659
1654
|
return typeof o.id == "number" && typeof o.name == "string";
|
|
1660
1655
|
}
|
|
1661
|
-
function
|
|
1656
|
+
function da(o) {
|
|
1662
1657
|
return typeof o.name == "string";
|
|
1663
1658
|
}
|
|
1664
|
-
const
|
|
1659
|
+
const fa = {}, pa = { class: "cl-flex cl-flex-wrap cl-left-0 cl-mt-4 cl-w-full" }, ma = {
|
|
1665
1660
|
key: 0,
|
|
1666
1661
|
class: "cl-w-full"
|
|
1667
|
-
},
|
|
1662
|
+
}, va = {
|
|
1668
1663
|
key: 1,
|
|
1669
1664
|
class: "cl-leading-10 cl-text-sm cl-w-full"
|
|
1670
|
-
},
|
|
1671
|
-
function
|
|
1672
|
-
return p(), w("div",
|
|
1673
|
-
o.$slots.default ? (p(), w("div",
|
|
1674
|
-
|
|
1665
|
+
}, ha = { class: "cl-float-left" }, ga = { class: "cl-float-right" };
|
|
1666
|
+
function ba(o, e) {
|
|
1667
|
+
return p(), w("div", pa, [
|
|
1668
|
+
o.$slots.default ? (p(), w("div", ma, [
|
|
1669
|
+
B(o.$slots, "default")
|
|
1675
1670
|
])) : z("", !0),
|
|
1676
|
-
o.$slots.left || o.$slots.right ? (p(), w("div",
|
|
1677
|
-
v("span", va, [
|
|
1678
|
-
U(o.$slots, "left")
|
|
1679
|
-
]),
|
|
1671
|
+
o.$slots.left || o.$slots.right ? (p(), w("div", va, [
|
|
1680
1672
|
v("span", ha, [
|
|
1681
|
-
|
|
1673
|
+
B(o.$slots, "left")
|
|
1674
|
+
]),
|
|
1675
|
+
v("span", ga, [
|
|
1676
|
+
B(o.$slots, "right")
|
|
1682
1677
|
])
|
|
1683
1678
|
])) : z("", !0)
|
|
1684
1679
|
]);
|
|
1685
1680
|
}
|
|
1686
|
-
const
|
|
1681
|
+
const ya = /* @__PURE__ */ Se(fa, [["render", ba]]), et = Symbol();
|
|
1687
1682
|
function Je(o) {
|
|
1688
1683
|
const e = o.type !== "slot" || o.slotType !== void 0 && o.field !== void 0, t = o.sortable ?? !0;
|
|
1689
1684
|
return e && t;
|
|
@@ -1692,16 +1687,16 @@ function $l(o) {
|
|
|
1692
1687
|
const e = o.type !== "slot" || o.slotType !== void 0 && o.field !== void 0, t = o.filterable ?? !0;
|
|
1693
1688
|
return e && t;
|
|
1694
1689
|
}
|
|
1695
|
-
function
|
|
1690
|
+
function wa(o) {
|
|
1696
1691
|
return o.some((e) => Je(e));
|
|
1697
1692
|
}
|
|
1698
1693
|
function Il(o) {
|
|
1699
1694
|
return o.some((e) => $l(e));
|
|
1700
1695
|
}
|
|
1701
|
-
const
|
|
1696
|
+
const ka = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, $a = { class: "cl-gap-1 cl-grid cl-grid-cols-2 cl-justify-end cl-mb-2 lg:cl-flex lg:cl-gap-2" }, Sa = { class: "cl-basis-0 cl-col-span-2 cl-flex-grow" }, Ta = /* @__PURE__ */ v("hr", { class: "cl-block cl-border-grey-3 cl-col-span-2 cl-my-4 lg:cl-hidden" }, null, -1), Ca = {
|
|
1702
1697
|
key: 1,
|
|
1703
1698
|
class: "cl-hidden lg:cl-block"
|
|
1704
|
-
},
|
|
1699
|
+
}, Oa = { class: "cl-block lg:cl-hidden" }, Ea = /* @__PURE__ */ _({
|
|
1705
1700
|
__name: "cl-ui-grid-action-row",
|
|
1706
1701
|
props: {
|
|
1707
1702
|
editMode: { type: Boolean },
|
|
@@ -1715,18 +1710,18 @@ const wa = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, ka = { class: "cl-gap-1
|
|
|
1715
1710
|
setup(o) {
|
|
1716
1711
|
const e = o, { t } = fe(), l = A(() => e.request.filters.some((n) => n.filterValue !== ""));
|
|
1717
1712
|
return (n, r) => (p(), w(J, null, [
|
|
1718
|
-
v("div",
|
|
1713
|
+
v("div", ka, [
|
|
1719
1714
|
v("strong", null, I(g(t)("grid.gridTools")), 1)
|
|
1720
1715
|
]),
|
|
1721
|
-
v("div",
|
|
1722
|
-
v("div",
|
|
1723
|
-
|
|
1716
|
+
v("div", $a, [
|
|
1717
|
+
v("div", Sa, [
|
|
1718
|
+
B(n.$slots, "additional-grid-actions", me(he({
|
|
1724
1719
|
loading: n.loading,
|
|
1725
1720
|
editMode: n.editMode
|
|
1726
1721
|
})))
|
|
1727
1722
|
]),
|
|
1728
|
-
|
|
1729
|
-
n.columns.some((a) => a.editable) ? (p(),
|
|
1723
|
+
Ta,
|
|
1724
|
+
n.columns.some((a) => a.editable) ? (p(), Z(ye, {
|
|
1730
1725
|
key: 0,
|
|
1731
1726
|
size: "small",
|
|
1732
1727
|
colour: "default",
|
|
@@ -1742,11 +1737,11 @@ const wa = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, ka = { class: "cl-gap-1
|
|
|
1742
1737
|
]),
|
|
1743
1738
|
_: 1
|
|
1744
1739
|
}, 8, ["disabled"])) : z("", !0),
|
|
1745
|
-
n.options.hideViewManager ? z("", !0) : (p(), w("div",
|
|
1746
|
-
|
|
1740
|
+
n.options.hideViewManager ? z("", !0) : (p(), w("div", Ca, [
|
|
1741
|
+
B(n.$slots, "view-manager")
|
|
1747
1742
|
])),
|
|
1748
|
-
g(Il)(n.columns) || g(
|
|
1749
|
-
v("div",
|
|
1743
|
+
g(Il)(n.columns) || g(wa)(n.columns) ? (p(), w(J, { key: 2 }, [
|
|
1744
|
+
v("div", Oa, [
|
|
1750
1745
|
N(ye, {
|
|
1751
1746
|
class: "cl-w-full",
|
|
1752
1747
|
size: "small",
|
|
@@ -1759,12 +1754,12 @@ const wa = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, ka = { class: "cl-gap-1
|
|
|
1759
1754
|
_: 1
|
|
1760
1755
|
}, 8, ["disabled"])
|
|
1761
1756
|
]),
|
|
1762
|
-
g(Il)(n.columns) ? (p(),
|
|
1757
|
+
g(Il)(n.columns) ? (p(), Z(ye, {
|
|
1763
1758
|
key: 0,
|
|
1764
1759
|
size: "small",
|
|
1765
1760
|
colour: "danger",
|
|
1766
1761
|
disabled: !l.value || n.loading,
|
|
1767
|
-
class:
|
|
1762
|
+
class: U({
|
|
1768
1763
|
"cl-col-span-2": n.columns.some((a) => a.editable)
|
|
1769
1764
|
}),
|
|
1770
1765
|
onClick: r[2] || (r[2] = oe((a) => n.$emit("clear-filters"), ["prevent"]))
|
|
@@ -1778,7 +1773,7 @@ const wa = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, ka = { class: "cl-gap-1
|
|
|
1778
1773
|
])
|
|
1779
1774
|
], 64));
|
|
1780
1775
|
}
|
|
1781
|
-
}),
|
|
1776
|
+
}), Fa = ["required", "disabled"], Da = /* @__PURE__ */ _({
|
|
1782
1777
|
inheritAttrs: !1,
|
|
1783
1778
|
__name: "cl-ui-input-checkbox",
|
|
1784
1779
|
props: /* @__PURE__ */ Oe({
|
|
@@ -1791,7 +1786,7 @@ const wa = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, ka = { class: "cl-gap-1
|
|
|
1791
1786
|
}),
|
|
1792
1787
|
emits: /* @__PURE__ */ Oe(["focus", "blur"], ["update:modelValue"]),
|
|
1793
1788
|
setup(o, { expose: e, emit: t }) {
|
|
1794
|
-
const l =
|
|
1789
|
+
const l = _e(o, "modelValue"), n = t, r = R();
|
|
1795
1790
|
return e({
|
|
1796
1791
|
focus: () => {
|
|
1797
1792
|
var a;
|
|
@@ -1801,7 +1796,7 @@ const wa = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, ka = { class: "cl-gap-1
|
|
|
1801
1796
|
var a;
|
|
1802
1797
|
return (a = r.value) == null ? void 0 : a.blur();
|
|
1803
1798
|
}
|
|
1804
|
-
}), (a, u) => (p(),
|
|
1799
|
+
}), (a, u) => (p(), Z(kl, {
|
|
1805
1800
|
"show-required-asterisk": a.required,
|
|
1806
1801
|
errors: a.errors
|
|
1807
1802
|
}, Le({
|
|
@@ -1820,7 +1815,7 @@ const wa = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, ka = { class: "cl-gap-1
|
|
|
1820
1815
|
}, ["stop", "prevent"]), ["enter"])),
|
|
1821
1816
|
onFocus: u[2] || (u[2] = (s) => n("focus")),
|
|
1822
1817
|
onBlur: u[3] || (u[3] = (s) => n("blur"))
|
|
1823
|
-
}), null, 16,
|
|
1818
|
+
}), null, 16, Fa), [
|
|
1824
1819
|
[dt, l.value]
|
|
1825
1820
|
])
|
|
1826
1821
|
]),
|
|
@@ -1829,24 +1824,24 @@ const wa = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, ka = { class: "cl-gap-1
|
|
|
1829
1824
|
a.$slots.default ? {
|
|
1830
1825
|
name: "label",
|
|
1831
1826
|
fn: H(() => [
|
|
1832
|
-
|
|
1827
|
+
B(a.$slots, "default", {}, void 0, !0)
|
|
1833
1828
|
]),
|
|
1834
1829
|
key: "0"
|
|
1835
1830
|
} : void 0
|
|
1836
1831
|
]), 1032, ["show-required-asterisk", "errors"]));
|
|
1837
1832
|
}
|
|
1838
|
-
}), lt = /* @__PURE__ */ Se(
|
|
1833
|
+
}), lt = /* @__PURE__ */ Se(Da, [["__scopeId", "data-v-d8bbd8db"]]);
|
|
1839
1834
|
var re = /* @__PURE__ */ ((o) => (o.CURRENCY = "currency", o.PERCENTAGE = "percentage", o.INTEGER = "integer", o.DECIMAL = "decimal", o.MULTIPLIER = "multiplier", o))(re || {}), de = /* @__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))(de || {});
|
|
1840
|
-
const
|
|
1835
|
+
const Na = {
|
|
1841
1836
|
key: 3,
|
|
1842
1837
|
class: "cl-inline-block cl-whitespace-nowrap"
|
|
1843
|
-
},
|
|
1838
|
+
}, Aa = {
|
|
1844
1839
|
key: 4,
|
|
1845
1840
|
class: "cl-inline-block cl-whitespace-nowrap"
|
|
1846
|
-
},
|
|
1841
|
+
}, Va = {
|
|
1847
1842
|
key: 5,
|
|
1848
1843
|
class: "cl-inline-block cl-whitespace-nowrap"
|
|
1849
|
-
},
|
|
1844
|
+
}, qa = ["innerHTML"], Rl = /* @__PURE__ */ _({
|
|
1850
1845
|
__name: "cl-ui-grid-cell-value",
|
|
1851
1846
|
props: {
|
|
1852
1847
|
data: {},
|
|
@@ -1894,7 +1889,7 @@ const Da = {
|
|
|
1894
1889
|
}
|
|
1895
1890
|
return (s, i) => {
|
|
1896
1891
|
var c;
|
|
1897
|
-
return s.column.type === "slot" ?
|
|
1892
|
+
return s.column.type === "slot" ? B(s.$slots, s.column.name, { key: 0 }) : s.column.type === "boolean" && s.column.field !== void 0 ? (p(), Z(lt, {
|
|
1898
1893
|
key: 1,
|
|
1899
1894
|
class: "disabled:checked:cl-bg-primary-light disabled:checked:cl-border-primary-light",
|
|
1900
1895
|
"model-value": s.data[s.column.field],
|
|
@@ -1907,14 +1902,14 @@ const Da = {
|
|
|
1907
1902
|
], 64)) : (p(), w(J, { key: 2 }, [
|
|
1908
1903
|
pe(I(a(s.data[s.column.field], g(de).DATETIME)), 1)
|
|
1909
1904
|
], 64))
|
|
1910
|
-
], 64)) : s.column.type === "list" && s.column.field !== void 0 && s.column.listEntries !== void 0 ? (p(), w("span",
|
|
1905
|
+
], 64)) : s.column.type === "list" && s.column.field !== void 0 && s.column.listEntries !== void 0 ? (p(), w("span", Na, I(g(l)(((c = s.column.listEntries.find((d) => d.value === s.data[s.column.field])) == null ? void 0 : c.translationKey) ?? "")), 1)) : s.column.type === "number" && s.column.field !== void 0 ? (p(), w("span", Aa, I(g(r)(s.data[s.column.field], s.column.format ?? g(re).DECIMAL)), 1)) : s.column.field !== void 0 ? (p(), w("span", Va, [
|
|
1911
1906
|
v("span", {
|
|
1912
1907
|
innerHTML: u()
|
|
1913
|
-
}, null, 8,
|
|
1908
|
+
}, null, 8, qa)
|
|
1914
1909
|
])) : z("", !0);
|
|
1915
1910
|
};
|
|
1916
1911
|
}
|
|
1917
|
-
}),
|
|
1912
|
+
}), Ia = { class: "cl-font-semibold lg:cl-hidden" }, Ra = /* @__PURE__ */ _({
|
|
1918
1913
|
__name: "cl-ui-grid-cell",
|
|
1919
1914
|
props: {
|
|
1920
1915
|
data: {},
|
|
@@ -1938,12 +1933,12 @@ const Da = {
|
|
|
1938
1933
|
}, {
|
|
1939
1934
|
deep: !0
|
|
1940
1935
|
}), (s, i) => (p(), w("td", {
|
|
1941
|
-
class:
|
|
1936
|
+
class: U(["cl-border-b cl-border-grey-1 cl-gap-1 cl-grid cl-grid-cols-2 cl-m-1 cl-mb-0 cl-py-2 cl-text-xs lg:cl-border-b-0 lg:cl-m-0 lg:cl-px-1 lg:cl-table-cell lg:cl-text-base", {
|
|
1942
1937
|
"cl-bg-link-lighter": a.value
|
|
1943
1938
|
}])
|
|
1944
1939
|
}, [
|
|
1945
|
-
v("span",
|
|
1946
|
-
s.editMode && s.column.editable === !0 ?
|
|
1940
|
+
v("span", Ia, I(s.column.caption), 1),
|
|
1941
|
+
s.editMode && s.column.editable === !0 ? B(s.$slots, `${s.column.name}Edit`, me(ce({ key: 0 }, {
|
|
1947
1942
|
cellFocused: () => l("focus"),
|
|
1948
1943
|
column: s.column,
|
|
1949
1944
|
edited: a.value,
|
|
@@ -1958,7 +1953,7 @@ const Da = {
|
|
|
1958
1953
|
"search-value": s.searchValue
|
|
1959
1954
|
}, {
|
|
1960
1955
|
[s.column.name]: H(() => [
|
|
1961
|
-
|
|
1956
|
+
B(s.$slots, s.column.name, me(he({
|
|
1962
1957
|
column: s.column,
|
|
1963
1958
|
record: s.data,
|
|
1964
1959
|
searchValue: s.searchValue
|
|
@@ -1966,7 +1961,7 @@ const Da = {
|
|
|
1966
1961
|
]),
|
|
1967
1962
|
_: 2
|
|
1968
1963
|
}, 1032, ["column", "data", "time-zone", "search-value"])
|
|
1969
|
-
]) : (p(),
|
|
1964
|
+
]) : (p(), Z(Rl, {
|
|
1970
1965
|
key: 1,
|
|
1971
1966
|
column: s.column,
|
|
1972
1967
|
data: s.data,
|
|
@@ -1974,13 +1969,13 @@ const Da = {
|
|
|
1974
1969
|
"search-value": s.searchValue
|
|
1975
1970
|
}, {
|
|
1976
1971
|
[s.column.name]: H(() => [
|
|
1977
|
-
|
|
1972
|
+
B(s.$slots, s.column.name, me(he({ column: s.column, record: s.data, searchValue: s.searchValue })))
|
|
1978
1973
|
]),
|
|
1979
1974
|
_: 2
|
|
1980
1975
|
}, 1032, ["column", "data", "time-zone", "search-value"]))
|
|
1981
1976
|
], 2));
|
|
1982
1977
|
}
|
|
1983
|
-
}),
|
|
1978
|
+
}), Ma = /* @__PURE__ */ _({
|
|
1984
1979
|
__name: "cl-ui-grid-row",
|
|
1985
1980
|
props: {
|
|
1986
1981
|
data: {},
|
|
@@ -1992,7 +1987,7 @@ const Da = {
|
|
|
1992
1987
|
emits: ["cell-focus", "cell-edit", "cell-undo"],
|
|
1993
1988
|
setup(o) {
|
|
1994
1989
|
return (e, t) => (p(), w("tr", null, [
|
|
1995
|
-
(p(!0), w(J, null, ue(e.columns, (l, n) => (p(),
|
|
1990
|
+
(p(!0), w(J, null, ue(e.columns, (l, n) => (p(), Z(Ra, {
|
|
1996
1991
|
key: n,
|
|
1997
1992
|
data: e.data,
|
|
1998
1993
|
column: l,
|
|
@@ -2006,16 +2001,16 @@ const Da = {
|
|
|
2006
2001
|
ue(e.$slots, (r, a) => ({
|
|
2007
2002
|
name: a,
|
|
2008
2003
|
fn: H((u) => [
|
|
2009
|
-
|
|
2004
|
+
B(e.$slots, a, me(he(u)))
|
|
2010
2005
|
])
|
|
2011
2006
|
}))
|
|
2012
2007
|
]), 1032, ["data", "column", "time-zone", "search-value", "edit-mode", "onEdit", "onUndo"]))), 128))
|
|
2013
2008
|
]));
|
|
2014
2009
|
}
|
|
2015
|
-
}),
|
|
2010
|
+
}), La = { key: 1 }, ja = ["colspan"], Pa = { class: "cl-flex cl-flex-wrap cl-justify-center cl-text-center cl-text-sm cl-w-full" }, za = { class: "cl-mt-6 cl-w-full" }, Ba = {
|
|
2016
2011
|
key: 0,
|
|
2017
2012
|
class: "cl-mt-4"
|
|
2018
|
-
},
|
|
2013
|
+
}, Ua = { class: "cl-mb-2 cl-w-full" }, xa = /* @__PURE__ */ _({
|
|
2019
2014
|
__name: "cl-ui-grid-body",
|
|
2020
2015
|
props: {
|
|
2021
2016
|
columns: {},
|
|
@@ -2079,14 +2074,14 @@ const Da = {
|
|
|
2079
2074
|
}), (y, F) => {
|
|
2080
2075
|
var D;
|
|
2081
2076
|
return p(), w("tbody", null, [
|
|
2082
|
-
y.data && ((D = y.data.results) != null && D.length) ? (p(!0), w(J, { key: 0 }, ue(y.data.results, (O, E) => (p(),
|
|
2077
|
+
y.data && ((D = y.data.results) != null && D.length) ? (p(!0), w(J, { key: 0 }, ue(y.data.results, (O, E) => (p(), Z(Ma, {
|
|
2083
2078
|
key: E,
|
|
2084
2079
|
data: O,
|
|
2085
2080
|
columns: y.columns,
|
|
2086
2081
|
"time-zone": y.timeZone,
|
|
2087
2082
|
"search-value": y.searchValue,
|
|
2088
2083
|
"edit-mode": y.editMode,
|
|
2089
|
-
class:
|
|
2084
|
+
class: U(["cl-bg-opacity-100 cl-transition-colors", {
|
|
2090
2085
|
"cl-bg-white": E % 2 === 0 && y.data.totalRecords > 1,
|
|
2091
2086
|
"cl-bg-off-white": E % 2 === 1 || y.data.totalRecords === 1,
|
|
2092
2087
|
"cl-cursor-pointer": (y.options.highlightRowSelection || y.options.rowSelectionEnabled) && !y.editMode,
|
|
@@ -2106,17 +2101,17 @@ const Da = {
|
|
|
2106
2101
|
ue(y.$slots, (V, x) => ({
|
|
2107
2102
|
name: x,
|
|
2108
2103
|
fn: H((ee) => [
|
|
2109
|
-
|
|
2104
|
+
B(y.$slots, x, ce(ee, { disabled: y.loading }))
|
|
2110
2105
|
])
|
|
2111
2106
|
}))
|
|
2112
|
-
]), 1032, ["data", "columns", "time-zone", "search-value", "edit-mode", "class", "onClick", "onCellFocus", "onCellEdit"]))), 128)) : y.loading ? z("", !0) : (p(), w("tr",
|
|
2107
|
+
]), 1032, ["data", "columns", "time-zone", "search-value", "edit-mode", "class", "onClick", "onCellFocus", "onCellEdit"]))), 128)) : y.loading ? z("", !0) : (p(), w("tr", La, [
|
|
2113
2108
|
v("td", {
|
|
2114
2109
|
colspan: y.columns.length
|
|
2115
2110
|
}, [
|
|
2116
|
-
v("div",
|
|
2117
|
-
v("strong",
|
|
2118
|
-
y.request.filters.some((O) => O.filterValue !== "") ? (p(), w("div",
|
|
2119
|
-
v("div",
|
|
2111
|
+
v("div", Pa, [
|
|
2112
|
+
v("strong", za, I(g(n)("grid.noData")), 1),
|
|
2113
|
+
y.request.filters.some((O) => O.filterValue !== "") ? (p(), w("div", Ba, [
|
|
2114
|
+
v("div", Ua, I(g(n)("grid.noDataFiltersPresent")), 1),
|
|
2120
2115
|
N(ye, {
|
|
2121
2116
|
size: "small",
|
|
2122
2117
|
colour: "danger",
|
|
@@ -2129,12 +2124,12 @@ const Da = {
|
|
|
2129
2124
|
})
|
|
2130
2125
|
])) : z("", !0)
|
|
2131
2126
|
])
|
|
2132
|
-
], 8,
|
|
2127
|
+
], 8, ja)
|
|
2133
2128
|
]))
|
|
2134
2129
|
]);
|
|
2135
2130
|
};
|
|
2136
2131
|
}
|
|
2137
|
-
}),
|
|
2132
|
+
}), Ha = {
|
|
2138
2133
|
"en-GB": {
|
|
2139
2134
|
comboBox: {
|
|
2140
2135
|
emptyHintText: "Choose a {object}",
|
|
@@ -2232,7 +2227,7 @@ const Da = {
|
|
|
2232
2227
|
quickDatesHeader: "Quick Dates"
|
|
2233
2228
|
}
|
|
2234
2229
|
}
|
|
2235
|
-
},
|
|
2230
|
+
}, Ga = {
|
|
2236
2231
|
"en-GB": {
|
|
2237
2232
|
[re.PERCENTAGE]: {
|
|
2238
2233
|
style: "percent",
|
|
@@ -2255,7 +2250,7 @@ const Da = {
|
|
|
2255
2250
|
minimumFractionDigits: 2
|
|
2256
2251
|
}
|
|
2257
2252
|
}
|
|
2258
|
-
},
|
|
2253
|
+
}, Wa = {
|
|
2259
2254
|
"en-GB": {
|
|
2260
2255
|
[de.SHORT_DATE]: {
|
|
2261
2256
|
day: "numeric",
|
|
@@ -2305,27 +2300,27 @@ const Da = {
|
|
|
2305
2300
|
}, we = qt({
|
|
2306
2301
|
locale: "en-GB",
|
|
2307
2302
|
fallbackLocale: "en-GB",
|
|
2308
|
-
messages:
|
|
2309
|
-
numberFormats:
|
|
2310
|
-
datetimeFormats:
|
|
2303
|
+
messages: Ha,
|
|
2304
|
+
numberFormats: Ga,
|
|
2305
|
+
datetimeFormats: Wa,
|
|
2311
2306
|
useScope: "global",
|
|
2312
2307
|
missingWarn: !1,
|
|
2313
2308
|
fallbackWarn: !1,
|
|
2314
2309
|
warnHtmlMessage: !1
|
|
2315
2310
|
});
|
|
2316
|
-
function
|
|
2311
|
+
function Gs(o, e) {
|
|
2317
2312
|
return we.global.mergeLocaleMessage(o, e), je();
|
|
2318
2313
|
}
|
|
2319
|
-
function
|
|
2314
|
+
function Ws(o, e) {
|
|
2320
2315
|
return we.global.mergeNumberFormat(o, e), je();
|
|
2321
2316
|
}
|
|
2322
|
-
function
|
|
2317
|
+
function _s(o, e) {
|
|
2323
2318
|
return we.global.mergeDateTimeFormat(o, e), je();
|
|
2324
2319
|
}
|
|
2325
2320
|
function Ks(o) {
|
|
2326
2321
|
return we.global.locale.value = o, je();
|
|
2327
2322
|
}
|
|
2328
|
-
const { n:
|
|
2323
|
+
const { n: _a, locale: Ka, getNumberFormat: Za } = we.global, Sl = re.DECIMAL;
|
|
2329
2324
|
function De(o) {
|
|
2330
2325
|
return He(o, re.DECIMAL, { additionalOptions: {
|
|
2331
2326
|
minimumFractionDigits: 0,
|
|
@@ -2351,7 +2346,7 @@ function He(o, e, t) {
|
|
|
2351
2346
|
}
|
|
2352
2347
|
function tt(o, e, t) {
|
|
2353
2348
|
if (cl(e)) {
|
|
2354
|
-
const l =
|
|
2349
|
+
const l = Qa(o, e);
|
|
2355
2350
|
return Ml(l ?? o, Sl, t);
|
|
2356
2351
|
} else
|
|
2357
2352
|
return Ml(o, Tl(e), t);
|
|
@@ -2359,7 +2354,7 @@ function tt(o, e, t) {
|
|
|
2359
2354
|
function ot(o, e) {
|
|
2360
2355
|
return cl(o) ? We(Sl, e) : We(Tl(o), e);
|
|
2361
2356
|
}
|
|
2362
|
-
function
|
|
2357
|
+
function Qa(o, e) {
|
|
2363
2358
|
let t = null;
|
|
2364
2359
|
o = `!${o}!`;
|
|
2365
2360
|
const l = `!${e}!`.split("{0}");
|
|
@@ -2409,7 +2404,7 @@ function Fe(o, e, ...t) {
|
|
|
2409
2404
|
}
|
|
2410
2405
|
function Ll(o, e) {
|
|
2411
2406
|
try {
|
|
2412
|
-
return
|
|
2407
|
+
return _a(o, e);
|
|
2413
2408
|
} catch (t) {
|
|
2414
2409
|
return console.error(t), null;
|
|
2415
2410
|
}
|
|
@@ -2431,15 +2426,15 @@ function We(o, e) {
|
|
|
2431
2426
|
};
|
|
2432
2427
|
}
|
|
2433
2428
|
function Tl(o) {
|
|
2434
|
-
return
|
|
2429
|
+
return Ya(o) ? o : re.CURRENCY;
|
|
2435
2430
|
}
|
|
2436
2431
|
function cl(o) {
|
|
2437
2432
|
return o.includes("{0}");
|
|
2438
2433
|
}
|
|
2439
|
-
function
|
|
2434
|
+
function Ya(o) {
|
|
2440
2435
|
return !cl(o) && o !== "currency-without-symbol";
|
|
2441
2436
|
}
|
|
2442
|
-
function
|
|
2437
|
+
function Ja(o) {
|
|
2443
2438
|
if (o.startsWith("ClUi"))
|
|
2444
2439
|
return {
|
|
2445
2440
|
name: `clUi${o.slice(4)}`,
|
|
@@ -2452,10 +2447,10 @@ function Ya(o) {
|
|
|
2452
2447
|
};
|
|
2453
2448
|
}
|
|
2454
2449
|
function Zs() {
|
|
2455
|
-
return
|
|
2450
|
+
return Ja;
|
|
2456
2451
|
}
|
|
2457
2452
|
const { t: ke } = we.global;
|
|
2458
|
-
function
|
|
2453
|
+
function Xa(o, e, t, l, n) {
|
|
2459
2454
|
return new Promise((r) => {
|
|
2460
2455
|
let a = {
|
|
2461
2456
|
valid: !1,
|
|
@@ -2510,7 +2505,7 @@ function Ja(o, e, t, l, n) {
|
|
|
2510
2505
|
r(a);
|
|
2511
2506
|
});
|
|
2512
2507
|
}
|
|
2513
|
-
function
|
|
2508
|
+
function en(o, e, t, l, n) {
|
|
2514
2509
|
return new Promise((r) => {
|
|
2515
2510
|
let a = {
|
|
2516
2511
|
valid: !1,
|
|
@@ -2565,13 +2560,13 @@ function Xa(o, e, t, l, n) {
|
|
|
2565
2560
|
r(a);
|
|
2566
2561
|
});
|
|
2567
2562
|
}
|
|
2568
|
-
function
|
|
2563
|
+
function ln(o, e) {
|
|
2569
2564
|
return new Promise((t) => {
|
|
2570
2565
|
const l = e != null && e !== "" && e.toString().trim() !== "", n = $e(l, ke("input.valueIsRequired", { label: o }));
|
|
2571
2566
|
t(n);
|
|
2572
2567
|
});
|
|
2573
2568
|
}
|
|
2574
|
-
function
|
|
2569
|
+
function tn(o, e) {
|
|
2575
2570
|
return new Promise((t) => {
|
|
2576
2571
|
const n = e === "" || /[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?\.)+[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?/.exec(e) !== null, r = $e(n, ke("input.valueNotValidEmail", { label: o }));
|
|
2577
2572
|
t(r);
|
|
@@ -2583,7 +2578,7 @@ function $e(o, e) {
|
|
|
2583
2578
|
message: o ? "" : e
|
|
2584
2579
|
};
|
|
2585
2580
|
}
|
|
2586
|
-
const
|
|
2581
|
+
const on = ["value", "inputmode", "required", "disabled", "placeholder"], an = { 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" }, nn = ["disabled"], rn = ["disabled"], ul = /* @__PURE__ */ _({
|
|
2587
2582
|
inheritAttrs: !1,
|
|
2588
2583
|
__name: "cl-ui-input-number",
|
|
2589
2584
|
props: /* @__PURE__ */ Oe({
|
|
@@ -2605,7 +2600,7 @@ const tn = ["value", "inputmode", "required", "disabled", "placeholder"], on = {
|
|
|
2605
2600
|
}),
|
|
2606
2601
|
emits: /* @__PURE__ */ Oe(["focus", "blur"], ["update:modelValue"]),
|
|
2607
2602
|
setup(o, { expose: e, emit: t }) {
|
|
2608
|
-
const l = o, n =
|
|
2603
|
+
const l = o, n = _e(o, "modelValue"), r = t, a = R(0), u = R(), s = R(), { isOutside: i } = Ft(s), { focused: c } = Dt(u), d = A(() => l.showArrows && i.value === !1);
|
|
2609
2604
|
ne(c, () => {
|
|
2610
2605
|
c.value ? r("focus") : (te(x.value, !0), E.value = void 0, r("blur"));
|
|
2611
2606
|
});
|
|
@@ -2664,7 +2659,7 @@ const tn = ["value", "inputmode", "required", "disabled", "placeholder"], on = {
|
|
|
2664
2659
|
}
|
|
2665
2660
|
}), (m, q) => {
|
|
2666
2661
|
const M = yl("icon");
|
|
2667
|
-
return p(),
|
|
2662
|
+
return p(), Z(kl, {
|
|
2668
2663
|
"show-required-asterisk": m.required,
|
|
2669
2664
|
errors: m.errors
|
|
2670
2665
|
}, Le({
|
|
@@ -2691,8 +2686,8 @@ const tn = ["value", "inputmode", "required", "disabled", "placeholder"], on = {
|
|
|
2691
2686
|
q[2] || (q[2] = ge(oe((T) => h(!0), ["stop", "prevent"]), ["down"])),
|
|
2692
2687
|
q[3] || (q[3] = ge(oe((T) => h(!1), ["stop", "prevent"]), ["up"]))
|
|
2693
2688
|
]
|
|
2694
|
-
}), null, 16,
|
|
2695
|
-
X(v("div",
|
|
2689
|
+
}), null, 16, on)),
|
|
2690
|
+
X(v("div", an, [
|
|
2696
2691
|
v("button", {
|
|
2697
2692
|
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",
|
|
2698
2693
|
disabled: m.disabled,
|
|
@@ -2703,7 +2698,7 @@ const tn = ["value", "inputmode", "required", "disabled", "placeholder"], on = {
|
|
|
2703
2698
|
]
|
|
2704
2699
|
}, [
|
|
2705
2700
|
N(M, { icon: "ph:caret-up-bold" })
|
|
2706
|
-
], 40,
|
|
2701
|
+
], 40, nn),
|
|
2707
2702
|
v("button", {
|
|
2708
2703
|
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",
|
|
2709
2704
|
disabled: m.disabled,
|
|
@@ -2714,7 +2709,7 @@ const tn = ["value", "inputmode", "required", "disabled", "placeholder"], on = {
|
|
|
2714
2709
|
]
|
|
2715
2710
|
}, [
|
|
2716
2711
|
N(M, { icon: "ph:caret-down-bold" })
|
|
2717
|
-
], 40,
|
|
2712
|
+
], 40, rn)
|
|
2718
2713
|
], 512), [
|
|
2719
2714
|
[ae, d.value && !m.disabled]
|
|
2720
2715
|
])
|
|
@@ -2725,17 +2720,17 @@ const tn = ["value", "inputmode", "required", "disabled", "placeholder"], on = {
|
|
|
2725
2720
|
m.$slots.default ? {
|
|
2726
2721
|
name: "label",
|
|
2727
2722
|
fn: H(() => [
|
|
2728
|
-
|
|
2723
|
+
B(m.$slots, "default")
|
|
2729
2724
|
]),
|
|
2730
2725
|
key: "0"
|
|
2731
2726
|
} : void 0
|
|
2732
2727
|
]), 1032, ["show-required-asterisk", "errors"]);
|
|
2733
2728
|
};
|
|
2734
2729
|
}
|
|
2735
|
-
}),
|
|
2730
|
+
}), sn = {
|
|
2736
2731
|
key: 0,
|
|
2737
2732
|
class: "cl-flex cl-flex-wrap cl-justify-end cl-mt-2 cl-w-full"
|
|
2738
|
-
},
|
|
2733
|
+
}, cn = { class: "cl-bg-off-white cl-border cl-border-grey-1 cl-flex cl-items-center cl-mb-2 cl-px-3 cl-rounded-lg cl-shadow-md cl-text-sm cl-w-full lg:cl-w-auto" }, un = { class: "cl-text-grey-3 cl-w-max" }, dn = /* @__PURE__ */ v("span", null, null, -1), fn = { class: "cl-bg-off-white cl-border cl-border-grey-1 cl-flex cl-flex-wrap cl-items-center cl-mb-2 cl-px-3 cl-py-2 cl-rounded-lg cl-shadow-md cl-text-sm cl-w-full lg:cl-ml-2 lg:cl-w-auto mb:cl-flex-nowrap" }, pn = { class: "cl-flex cl-flex-wrap cl-mb-2 cl-text-sm cl-w-full lg:cl-p-2 md:cl-mb-0 md:cl-w-auto" }, mn = { class: "cl-flex cl-flex-wrap cl-mb-2 cl-w-full lg:cl-mb-0 lg:cl-mr-2 lg:cl-w-auto" }, vn = { class: "cl-text-grey-3 cl-w-full lg:cl-mr-2 lg:cl-w-auto" }, hn = { class: "cl-flex cl-flex-wrap cl-text-sm mb:cl-flex-nowrap" }, gn = { class: "cl-pr-2" }, bn = ["onClick"], yn = { class: "cl-flex cl-flex-wrap cl-mb-2 cl-text-sm cl-w-full lg:cl-p-2 md:cl-mb-0 md:cl-w-auto" }, wn = { class: "cl-mb-2 cl-text-grey-3 cl-w-full lg:cl-mb-0 lg:cl-mr-2 lg:cl-w-auto" }, kn = ["onClick"], $n = { class: "cl-mb-2 cl-w-full lg:cl-p-2 md:cl-mb-0 md:cl-w-auto" }, Sn = { class: "cl-block cl-mb-2 cl-text-grey-3 cl-w-full lg:cl-inline-block lg:cl-mb-0 lg:cl-mr-1 lg:cl-w-auto" }, Tn = { class: "cl-block lg:cl-inline-block" }, Cn = /* @__PURE__ */ _({
|
|
2739
2734
|
__name: "cl-ui-grid-footer",
|
|
2740
2735
|
props: {
|
|
2741
2736
|
request: {},
|
|
@@ -2774,9 +2769,9 @@ const tn = ["value", "inputmode", "required", "disabled", "placeholder"], on = {
|
|
|
2774
2769
|
}
|
|
2775
2770
|
return (c, d) => {
|
|
2776
2771
|
var b, y;
|
|
2777
|
-
return (y = (b = c.data) == null ? void 0 : b.results) != null && y.length && c.request ? (p(), w("div",
|
|
2778
|
-
v("div",
|
|
2779
|
-
v("span",
|
|
2772
|
+
return (y = (b = c.data) == null ? void 0 : b.results) != null && y.length && c.request ? (p(), w("div", sn, [
|
|
2773
|
+
v("div", cn, [
|
|
2774
|
+
v("span", un, I(g(n)("grid.jumpToPage")), 1),
|
|
2780
2775
|
N(ul, {
|
|
2781
2776
|
"model-value": c.request.pageNumber,
|
|
2782
2777
|
class: "cl-ml-1 cl-mt-0.5 cl-text-sm",
|
|
@@ -2787,23 +2782,23 @@ const tn = ["value", "inputmode", "required", "disabled", "placeholder"], on = {
|
|
|
2787
2782
|
"onUpdate:modelValue": u
|
|
2788
2783
|
}, {
|
|
2789
2784
|
default: H(() => [
|
|
2790
|
-
|
|
2785
|
+
dn
|
|
2791
2786
|
]),
|
|
2792
2787
|
_: 1
|
|
2793
2788
|
}, 8, ["model-value", "max", "disabled"])
|
|
2794
2789
|
]),
|
|
2795
|
-
v("div",
|
|
2796
|
-
v("div",
|
|
2797
|
-
v("li",
|
|
2798
|
-
v("span",
|
|
2790
|
+
v("div", fn, [
|
|
2791
|
+
v("div", pn, [
|
|
2792
|
+
v("li", mn, [
|
|
2793
|
+
v("span", vn, I(g(n)("grid.page")), 1)
|
|
2799
2794
|
]),
|
|
2800
|
-
v("ul",
|
|
2801
|
-
v("li",
|
|
2795
|
+
v("ul", hn, [
|
|
2796
|
+
v("li", gn, I(g(De)(c.request.pageNumber)) + " / " + I(g(De)(r.value)), 1),
|
|
2802
2797
|
X(v("li", {
|
|
2803
2798
|
class: "cl-cursor-pointer cl-mr-1 cl-mt-1 lg:cl-mr-2",
|
|
2804
2799
|
onClick: d[0] || (d[0] = (F) => u(1))
|
|
2805
2800
|
}, [
|
|
2806
|
-
N(g(
|
|
2801
|
+
N(g(K), {
|
|
2807
2802
|
icon: "ph:caret-double-left",
|
|
2808
2803
|
size: 14
|
|
2809
2804
|
})
|
|
@@ -2814,7 +2809,7 @@ const tn = ["value", "inputmode", "required", "disabled", "placeholder"], on = {
|
|
|
2814
2809
|
class: "cl-cursor-pointer cl-mt-1 lg:cl-mr-2 mr-1",
|
|
2815
2810
|
onClick: d[1] || (d[1] = (F) => u(c.request.pageNumber - 1))
|
|
2816
2811
|
}, [
|
|
2817
|
-
N(g(
|
|
2812
|
+
N(g(K), {
|
|
2818
2813
|
icon: "ph:caret-left",
|
|
2819
2814
|
size: 14
|
|
2820
2815
|
})
|
|
@@ -2823,17 +2818,17 @@ const tn = ["value", "inputmode", "required", "disabled", "placeholder"], on = {
|
|
|
2823
2818
|
]),
|
|
2824
2819
|
(p(!0), w(J, null, ue(a.value, (F, D) => (p(), w("li", {
|
|
2825
2820
|
key: D,
|
|
2826
|
-
class:
|
|
2821
|
+
class: U(["cl-cursor-pointer cl-mr-1 lg:cl-mr-2", {
|
|
2827
2822
|
"cl-text-black cl-font-bold": c.request.pageNumber === F,
|
|
2828
2823
|
"cl-text-grey-6": c.request.pageNumber !== F
|
|
2829
2824
|
}]),
|
|
2830
2825
|
onClick: (O) => u(F)
|
|
2831
|
-
}, I(g(De)(F)), 11,
|
|
2826
|
+
}, I(g(De)(F)), 11, bn))), 128)),
|
|
2832
2827
|
X(v("li", {
|
|
2833
2828
|
class: "cl-cursor-pointer cl-mr-1 cl-mt-1 lg:cl-mr-2",
|
|
2834
2829
|
onClick: d[2] || (d[2] = (F) => u(c.request.pageNumber + 1))
|
|
2835
2830
|
}, [
|
|
2836
|
-
N(g(
|
|
2831
|
+
N(g(K), {
|
|
2837
2832
|
icon: "ph:caret-right",
|
|
2838
2833
|
size: 14
|
|
2839
2834
|
})
|
|
@@ -2844,7 +2839,7 @@ const tn = ["value", "inputmode", "required", "disabled", "placeholder"], on = {
|
|
|
2844
2839
|
class: "cl-cursor-pointer cl-mr-1 cl-mt-1 lg:cl-mr-2",
|
|
2845
2840
|
onClick: d[3] || (d[3] = (F) => u(r.value))
|
|
2846
2841
|
}, [
|
|
2847
|
-
N(g(
|
|
2842
|
+
N(g(K), {
|
|
2848
2843
|
icon: "ph:caret-double-right",
|
|
2849
2844
|
size: 14
|
|
2850
2845
|
})
|
|
@@ -2853,35 +2848,35 @@ const tn = ["value", "inputmode", "required", "disabled", "placeholder"], on = {
|
|
|
2853
2848
|
])
|
|
2854
2849
|
])
|
|
2855
2850
|
]),
|
|
2856
|
-
v("ul",
|
|
2857
|
-
v("li",
|
|
2851
|
+
v("ul", yn, [
|
|
2852
|
+
v("li", wn, I(g(n)("grid.pageSize")), 1),
|
|
2858
2853
|
(p(), w(J, null, ue(s, (F, D) => v("li", {
|
|
2859
2854
|
key: D,
|
|
2860
|
-
class:
|
|
2855
|
+
class: U(["cl-cursor-pointer cl-mr-1 lg:cl-mr-2", {
|
|
2861
2856
|
"cl-text-black cl-font-bold": c.request.pageSize === F,
|
|
2862
2857
|
"cl-text-grey-6": c.request.pageSize !== F
|
|
2863
2858
|
}]),
|
|
2864
2859
|
onClick: (O) => i(F)
|
|
2865
|
-
}, I(g(De)(F)), 11,
|
|
2860
|
+
}, I(g(De)(F)), 11, kn)), 64))
|
|
2866
2861
|
]),
|
|
2867
|
-
v("ul",
|
|
2868
|
-
v("li",
|
|
2869
|
-
v("li",
|
|
2862
|
+
v("ul", $n, [
|
|
2863
|
+
v("li", Sn, I(g(n)("grid.totalRecords")), 1),
|
|
2864
|
+
v("li", Tn, I(g(De)(c.data.totalRecords)), 1)
|
|
2870
2865
|
])
|
|
2871
2866
|
])
|
|
2872
2867
|
])) : z("", !0);
|
|
2873
2868
|
};
|
|
2874
2869
|
}
|
|
2875
|
-
}),
|
|
2870
|
+
}), On = {
|
|
2876
2871
|
key: 0,
|
|
2877
2872
|
class: "!cl-h-10 cl-border cl-border-grey-1 cl-flex cl-flex-nowrap cl-flex-row cl-overflow-hidden cl-rounded-sm"
|
|
2878
|
-
},
|
|
2873
|
+
}, En = {
|
|
2879
2874
|
key: 1,
|
|
2880
2875
|
class: "cl-relative"
|
|
2881
|
-
},
|
|
2876
|
+
}, Fn = ["value", "disabled", "placeholder"], Dn = {
|
|
2882
2877
|
key: 0,
|
|
2883
2878
|
class: "action-icon cl-absolute cl-bg-transparent cl-flex cl-right-2 cl-text-grey-4 cl-top-3.5"
|
|
2884
|
-
},
|
|
2879
|
+
}, Nn = /* @__PURE__ */ _({
|
|
2885
2880
|
inheritAttrs: !1,
|
|
2886
2881
|
__name: "cl-ui-calendar-input",
|
|
2887
2882
|
props: {
|
|
@@ -2917,9 +2912,9 @@ const tn = ["value", "inputmode", "required", "disabled", "placeholder"], on = {
|
|
|
2917
2912
|
});
|
|
2918
2913
|
return e({
|
|
2919
2914
|
focus: n
|
|
2920
|
-
}), (u, s) => u.type === "dateRange" ? (p(), w("div",
|
|
2915
|
+
}), (u, s) => u.type === "dateRange" ? (p(), w("div", On, [
|
|
2921
2916
|
N(ye, {
|
|
2922
|
-
class:
|
|
2917
|
+
class: U(["cl-basis-full cl-border-transparent cl-col-span-4 cl-flex cl-items-center cl-justify-center hover:cl-border-transparent", {
|
|
2923
2918
|
"cl-text-grey-4 hover:cl-text-grey-3": !u.rangeSelected,
|
|
2924
2919
|
"cl-text-primary-darker hover:cl-text-primary-dark": u.rangeSelected
|
|
2925
2920
|
}]),
|
|
@@ -2927,17 +2922,17 @@ const tn = ["value", "inputmode", "required", "disabled", "placeholder"], on = {
|
|
|
2927
2922
|
onClick: s[0] || (s[0] = (i) => u.$emit("togglePopover"))
|
|
2928
2923
|
}, {
|
|
2929
2924
|
default: H(() => [
|
|
2930
|
-
N(g(
|
|
2925
|
+
N(g(K), {
|
|
2931
2926
|
icon: "bi:calendar3",
|
|
2932
2927
|
class: "cl-text-xl icon"
|
|
2933
2928
|
})
|
|
2934
2929
|
]),
|
|
2935
2930
|
_: 1
|
|
2936
2931
|
}, 8, ["disabled", "class"]),
|
|
2937
|
-
u.required ? z("", !0) : (p(),
|
|
2932
|
+
u.required ? z("", !0) : (p(), Z(ye, {
|
|
2938
2933
|
key: 0,
|
|
2939
2934
|
size: "small",
|
|
2940
|
-
class:
|
|
2935
|
+
class: U(["cl-basis-0 cl-border-transparent cl-flex cl-items-center cl-justify-center hover:cl-border-transparent", {
|
|
2941
2936
|
"cl-text-grey-4 hover:cl-text-grey-3": !u.rangeSelected,
|
|
2942
2937
|
"cl-text-danger-dark hover:cl-text-danger-default": u.rangeSelected
|
|
2943
2938
|
}]),
|
|
@@ -2945,14 +2940,14 @@ const tn = ["value", "inputmode", "required", "disabled", "placeholder"], on = {
|
|
|
2945
2940
|
onClick: s[1] || (s[1] = (i) => u.$emit("clear"))
|
|
2946
2941
|
}, {
|
|
2947
2942
|
default: H(() => [
|
|
2948
|
-
N(g(
|
|
2943
|
+
N(g(K), {
|
|
2949
2944
|
icon: "ph:x",
|
|
2950
2945
|
class: "clear-icon"
|
|
2951
2946
|
})
|
|
2952
2947
|
]),
|
|
2953
2948
|
_: 1
|
|
2954
2949
|
}, 8, ["disabled", "class"]))
|
|
2955
|
-
])) : (p(), w("div",
|
|
2950
|
+
])) : (p(), w("div", En, [
|
|
2956
2951
|
v("input", ce({
|
|
2957
2952
|
ref_key: "element",
|
|
2958
2953
|
ref: l
|
|
@@ -2961,9 +2956,9 @@ const tn = ["value", "inputmode", "required", "disabled", "placeholder"], on = {
|
|
|
2961
2956
|
type: "text",
|
|
2962
2957
|
disabled: u.disabled,
|
|
2963
2958
|
placeholder: a.value
|
|
2964
|
-
}, mt(u.events, !0)), null, 16,
|
|
2965
|
-
X(N(g(
|
|
2966
|
-
class:
|
|
2959
|
+
}, mt(u.events, !0)), null, 16, Fn),
|
|
2960
|
+
X(N(g(K), {
|
|
2961
|
+
class: U(["cl-absolute cl-bg-transparent cl-cursor-text cl-left-2 cl-text-grey-4 cl-top-3.5 icon", {
|
|
2967
2962
|
"!cl-bg-off-white": u.disabled
|
|
2968
2963
|
}]),
|
|
2969
2964
|
icon: u.type === "time" ? "ph-clock" : "ph:calendar",
|
|
@@ -2971,14 +2966,14 @@ const tn = ["value", "inputmode", "required", "disabled", "placeholder"], on = {
|
|
|
2971
2966
|
}, null, 8, ["class", "icon"]), [
|
|
2972
2967
|
[ae, !u.disabled]
|
|
2973
2968
|
]),
|
|
2974
|
-
u.disabled ? z("", !0) : (p(), w("div",
|
|
2975
|
-
u.type !== "time" ? (p(),
|
|
2969
|
+
u.disabled ? z("", !0) : (p(), w("div", Dn, [
|
|
2970
|
+
u.type !== "time" ? (p(), Z(g(K), {
|
|
2976
2971
|
key: 0,
|
|
2977
2972
|
class: "cl-cursor-pointer hover:cl-text-link-light",
|
|
2978
2973
|
icon: "ph:arrow-counter-clockwise",
|
|
2979
2974
|
onClick: s[2] || (s[2] = oe((i) => u.$emit("reset"), ["prevent"]))
|
|
2980
2975
|
})) : z("", !0),
|
|
2981
|
-
!u.required && u.date && (u.type !== "time" || u.date !== "00:00") ? (p(),
|
|
2976
|
+
!u.required && u.date && (u.type !== "time" || u.date !== "00:00") ? (p(), Z(g(K), {
|
|
2982
2977
|
key: 1,
|
|
2983
2978
|
class: "cl-cursor-pointer clear-icon hover:cl-text-link-light md:cl-ml-0.5",
|
|
2984
2979
|
icon: "ph:x",
|
|
@@ -2987,7 +2982,7 @@ const tn = ["value", "inputmode", "required", "disabled", "placeholder"], on = {
|
|
|
2987
2982
|
]))
|
|
2988
2983
|
]));
|
|
2989
2984
|
}
|
|
2990
|
-
}), pl = /* @__PURE__ */ Se(
|
|
2985
|
+
}), pl = /* @__PURE__ */ Se(Nn, [["__scopeId", "data-v-d44ed831"]]), An = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, Vn = ["onClick"], qn = /* @__PURE__ */ _({
|
|
2991
2986
|
__name: "cl-ui-quick-dates-group",
|
|
2992
2987
|
props: {
|
|
2993
2988
|
dates: {},
|
|
@@ -2996,23 +2991,23 @@ const tn = ["value", "inputmode", "required", "disabled", "placeholder"], on = {
|
|
|
2996
2991
|
emits: ["quick-date-selected"],
|
|
2997
2992
|
setup(o, { emit: e }) {
|
|
2998
2993
|
const t = e, { t: l } = fe();
|
|
2999
|
-
return (n, r) => (p(), w("div",
|
|
2994
|
+
return (n, r) => (p(), w("div", An, [
|
|
3000
2995
|
(p(!0), w(J, null, ue(n.dates, (a, u) => {
|
|
3001
2996
|
var s, i;
|
|
3002
2997
|
return p(), w("button", {
|
|
3003
2998
|
key: u,
|
|
3004
|
-
class:
|
|
2999
|
+
class: U(["cl-border cl-cursor-pointer cl-py-1 cl-rounded-md cl-text-center", {
|
|
3005
3000
|
"cl-bg-primary-lighter cl-bg-opacity-30 cl-border-primary-default cl-font-bold hover:cl-border-primary-darker": ((s = n.selectedQuickDate) == null ? void 0 : s.name) === a.name,
|
|
3006
3001
|
"cl-border-grey-2 hover:cl-border-grey-3 hover:cl-opacity-95 cl-opacity-60": ((i = n.selectedQuickDate) == null ? void 0 : i.name) !== a.name
|
|
3007
3002
|
}]),
|
|
3008
3003
|
onClick: (c) => t("quick-date-selected", a)
|
|
3009
3004
|
}, [
|
|
3010
3005
|
v("span", null, I(g(l)(a.translationKey)), 1)
|
|
3011
|
-
], 10,
|
|
3006
|
+
], 10, Vn);
|
|
3012
3007
|
}), 128))
|
|
3013
3008
|
]));
|
|
3014
3009
|
}
|
|
3015
|
-
}),
|
|
3010
|
+
}), In = [
|
|
3016
3011
|
"today",
|
|
3017
3012
|
"this week",
|
|
3018
3013
|
"this month",
|
|
@@ -3104,10 +3099,10 @@ const tn = ["value", "inputmode", "required", "disabled", "placeholder"], on = {
|
|
|
3104
3099
|
...nl,
|
|
3105
3100
|
...rl,
|
|
3106
3101
|
...Ge
|
|
3107
|
-
],
|
|
3102
|
+
], Rn = { class: "cl-p-2 cl-pt-0" }, Mn = {
|
|
3108
3103
|
key: 0,
|
|
3109
3104
|
class: "cl-mt-2 cl-opacity-20"
|
|
3110
|
-
},
|
|
3105
|
+
}, Ln = /* @__PURE__ */ _({
|
|
3111
3106
|
__name: "cl-ui-quick-dates",
|
|
3112
3107
|
props: {
|
|
3113
3108
|
scope: {},
|
|
@@ -3139,22 +3134,22 @@ const tn = ["value", "inputmode", "required", "disabled", "placeholder"], on = {
|
|
|
3139
3134
|
}
|
|
3140
3135
|
return a;
|
|
3141
3136
|
});
|
|
3142
|
-
return (a, u) => (p(), w("div",
|
|
3137
|
+
return (a, u) => (p(), w("div", Rn, [
|
|
3143
3138
|
v("div", null, I(g(n)("quickDates.quickDatesHeader")), 1),
|
|
3144
3139
|
(p(!0), w(J, null, ue(r.value, (s, i) => (p(), w("div", {
|
|
3145
3140
|
key: i,
|
|
3146
3141
|
class: "cl-pt-2"
|
|
3147
3142
|
}, [
|
|
3148
|
-
N(
|
|
3143
|
+
N(qn, {
|
|
3149
3144
|
dates: s,
|
|
3150
3145
|
"selected-quick-date": a.selectedQuickDate,
|
|
3151
3146
|
onQuickDateSelected: u[0] || (u[0] = (c) => l("quick-date-selected", c))
|
|
3152
3147
|
}, null, 8, ["dates", "selected-quick-date"]),
|
|
3153
|
-
i < r.value.length - 1 ? (p(), w("div",
|
|
3148
|
+
i < r.value.length - 1 ? (p(), w("div", Mn)) : z("", !0)
|
|
3154
3149
|
]))), 128))
|
|
3155
3150
|
]));
|
|
3156
3151
|
}
|
|
3157
|
-
}),
|
|
3152
|
+
}), jn = /* @__PURE__ */ _({
|
|
3158
3153
|
inheritAttrs: !1,
|
|
3159
3154
|
__name: "cl-ui-calendar",
|
|
3160
3155
|
props: {
|
|
@@ -3302,7 +3297,7 @@ const tn = ["value", "inputmode", "required", "disabled", "placeholder"], on = {
|
|
|
3302
3297
|
var f;
|
|
3303
3298
|
(f = F.value) == null || f.focus();
|
|
3304
3299
|
}
|
|
3305
|
-
}), (f, h) => f.type === "time" ? (p(),
|
|
3300
|
+
}), (f, h) => f.type === "time" ? (p(), Z(g(dl), {
|
|
3306
3301
|
key: 0,
|
|
3307
3302
|
modelValue: a.value,
|
|
3308
3303
|
"onUpdate:modelValue": h[1] || (h[1] = (m) => a.value = m),
|
|
@@ -3332,7 +3327,7 @@ const tn = ["value", "inputmode", "required", "disabled", "placeholder"], on = {
|
|
|
3332
3327
|
}), null, 16, ["date", "events", "type", "placeholder", "required", "disabled"])
|
|
3333
3328
|
]),
|
|
3334
3329
|
_: 1
|
|
3335
|
-
}, 8, ["modelValue", "locale", "is24hr", "mode", "is-required", "masks", "popover"])) : f.type === "dateRange" ? (p(),
|
|
3330
|
+
}, 8, ["modelValue", "locale", "is24hr", "mode", "is-required", "masks", "popover"])) : f.type === "dateRange" ? (p(), Z(g(dl), {
|
|
3336
3331
|
key: 1,
|
|
3337
3332
|
ref_key: "calendar",
|
|
3338
3333
|
ref: E,
|
|
@@ -3369,7 +3364,7 @@ const tn = ["value", "inputmode", "required", "disabled", "placeholder"], on = {
|
|
|
3369
3364
|
}), null, 16, ["type", "required", "disabled", "range-selected", "title", "onTogglePopover"])
|
|
3370
3365
|
]),
|
|
3371
3366
|
footer: H(() => [
|
|
3372
|
-
f.quickDateScope !== "none" ? (p(),
|
|
3367
|
+
f.quickDateScope !== "none" ? (p(), Z(Ln, {
|
|
3373
3368
|
key: 0,
|
|
3374
3369
|
scope: f.quickDateScope,
|
|
3375
3370
|
"selected-quick-date": O.value,
|
|
@@ -3378,7 +3373,7 @@ const tn = ["value", "inputmode", "required", "disabled", "placeholder"], on = {
|
|
|
3378
3373
|
}, null, 8, ["scope", "selected-quick-date", "current-date-range"])) : z("", !0)
|
|
3379
3374
|
]),
|
|
3380
3375
|
_: 1
|
|
3381
|
-
}, 8, ["modelValue", "locale", "is24hr", "timezone", "columns", "popover", "min-date", "max-date", "initial-page"])) : (p(),
|
|
3376
|
+
}, 8, ["modelValue", "locale", "is24hr", "timezone", "columns", "popover", "min-date", "max-date", "initial-page"])) : (p(), Z(g(dl), {
|
|
3382
3377
|
key: 2,
|
|
3383
3378
|
modelValue: a.value,
|
|
3384
3379
|
"onUpdate:modelValue": h[6] || (h[6] = (m) => a.value = m),
|
|
@@ -3433,13 +3428,13 @@ var Ve;
|
|
|
3433
3428
|
(function(o) {
|
|
3434
3429
|
o.precision = "precision", o.thousands = "thousands", o.millions = "millions", o.billions = "billions";
|
|
3435
3430
|
})(Ve || (Ve = {}));
|
|
3436
|
-
const Xe = (o) => o.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), rt = (o) => o.replace(/^0+(0$|[^0])/, "$1"), ml = (o, e) => (o.match(new RegExp(Xe(e), "g")) || []).length,
|
|
3431
|
+
const Xe = (o) => o.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), rt = (o) => o.replace(/^0+(0$|[^0])/, "$1"), ml = (o, e) => (o.match(new RegExp(Xe(e), "g")) || []).length, Pn = (o, e) => o.substring(0, o.indexOf(e)), it = [
|
|
3437
3432
|
",",
|
|
3438
3433
|
".",
|
|
3439
3434
|
"٫",
|
|
3440
3435
|
"。"
|
|
3441
3436
|
], jl = "(0|[1-9]\\d*)";
|
|
3442
|
-
class
|
|
3437
|
+
class zn {
|
|
3443
3438
|
constructor(e) {
|
|
3444
3439
|
var t, l, n, r, a, u;
|
|
3445
3440
|
const { currency: s, currencyDisplay: i, locale: c, precision: d, accountingSign: b, useGrouping: y } = e;
|
|
@@ -3452,7 +3447,7 @@ class Pn {
|
|
|
3452
3447
|
};
|
|
3453
3448
|
const F = new Intl.NumberFormat(c, this.options), D = F.formatToParts(123456);
|
|
3454
3449
|
this.currency = (t = D.find(({ type: V }) => V === "currency")) === null || t === void 0 ? void 0 : t.value, this.digits = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9].map((V) => V.toLocaleString(c)), this.decimalSymbol = (l = D.find(({ type: V }) => V === "decimal")) === null || l === void 0 ? void 0 : l.value, this.groupingSymbol = (n = D.find(({ type: V }) => V === "group")) === null || n === void 0 ? void 0 : n.value, this.minusSign = (r = F.formatToParts(-1).find(({ type: V }) => V === "minusSign")) === null || r === void 0 ? void 0 : r.value, this.decimalSymbol === void 0 ? this.minimumFractionDigits = this.maximumFractionDigits = 0 : typeof d == "number" ? this.minimumFractionDigits = this.maximumFractionDigits = d : (this.minimumFractionDigits = (a = d == null ? void 0 : d.min) !== null && a !== void 0 ? a : F.resolvedOptions().minimumFractionDigits, this.maximumFractionDigits = (u = d == null ? void 0 : d.max) !== null && u !== void 0 ? u : F.resolvedOptions().maximumFractionDigits);
|
|
3455
|
-
const O = (V) =>
|
|
3450
|
+
const O = (V) => Pn(V, this.digits[1]), E = (V) => V.substring(V.lastIndexOf(this.decimalSymbol ? this.digits[0] : this.digits[1]) + 1);
|
|
3456
3451
|
this.prefix = O(F.format(1)), this.suffix = E(F.format(1)), this.negativePrefix = O(F.format(-1)), this.negativeSuffix = E(F.format(-1));
|
|
3457
3452
|
}
|
|
3458
3453
|
parse(e) {
|
|
@@ -3521,7 +3516,7 @@ class st {
|
|
|
3521
3516
|
this.currencyFormat = e;
|
|
3522
3517
|
}
|
|
3523
3518
|
}
|
|
3524
|
-
class
|
|
3519
|
+
class Bn extends st {
|
|
3525
3520
|
conformToMask(e, t = "") {
|
|
3526
3521
|
const l = this.currencyFormat.isNegative(e), n = (F) => F === "" && l && !(this.currencyFormat.minusSign === void 0 ? t === this.currencyFormat.negativePrefix + this.currencyFormat.negativeSuffix : t === this.currencyFormat.negativePrefix), r = (F) => {
|
|
3527
3522
|
if (n(F))
|
|
@@ -3546,7 +3541,7 @@ class zn extends st {
|
|
|
3546
3541
|
} : "";
|
|
3547
3542
|
}
|
|
3548
3543
|
}
|
|
3549
|
-
class
|
|
3544
|
+
class Un extends st {
|
|
3550
3545
|
conformToMask(e, t = "") {
|
|
3551
3546
|
if (e === "" || this.currencyFormat.parse(t) === 0 && this.currencyFormat.stripCurrency(t, !0).slice(0, -1) === this.currencyFormat.stripCurrency(e, !0))
|
|
3552
3547
|
return "";
|
|
@@ -3557,7 +3552,7 @@ class Bn extends st {
|
|
|
3557
3552
|
};
|
|
3558
3553
|
}
|
|
3559
3554
|
}
|
|
3560
|
-
const
|
|
3555
|
+
const xn = {
|
|
3561
3556
|
locale: void 0,
|
|
3562
3557
|
currency: void 0,
|
|
3563
3558
|
currencyDisplay: void 0,
|
|
@@ -3570,7 +3565,7 @@ const Un = {
|
|
|
3570
3565
|
useGrouping: void 0,
|
|
3571
3566
|
valueScaling: void 0
|
|
3572
3567
|
};
|
|
3573
|
-
class
|
|
3568
|
+
class Hn {
|
|
3574
3569
|
constructor(e) {
|
|
3575
3570
|
this.el = e.el, this.onInput = e.onInput, this.onChange = e.onChange, this.addEventListener(), this.init(e.options);
|
|
3576
3571
|
}
|
|
@@ -3586,9 +3581,9 @@ class xn {
|
|
|
3586
3581
|
}
|
|
3587
3582
|
init(e) {
|
|
3588
3583
|
this.options = {
|
|
3589
|
-
...
|
|
3584
|
+
...xn,
|
|
3590
3585
|
...e
|
|
3591
|
-
}, this.options.autoDecimalDigits && (this.options.hideNegligibleDecimalDigitsOnFocus = !1), this.el.getAttribute("inputmode") || this.el.setAttribute("inputmode", this.options.autoDecimalDigits ? "numeric" : "decimal"), this.currencyFormat = new
|
|
3586
|
+
}, this.options.autoDecimalDigits && (this.options.hideNegligibleDecimalDigitsOnFocus = !1), this.el.getAttribute("inputmode") || this.el.setAttribute("inputmode", this.options.autoDecimalDigits ? "numeric" : "decimal"), this.currencyFormat = new zn(this.options), this.numberMask = this.options.autoDecimalDigits ? new Un(this.currencyFormat) : new Bn(this.currencyFormat);
|
|
3592
3587
|
const t = {
|
|
3593
3588
|
[Ve.precision]: this.currencyFormat.maximumFractionDigits,
|
|
3594
3589
|
[Ve.thousands]: 3,
|
|
@@ -3699,16 +3694,16 @@ class xn {
|
|
|
3699
3694
|
this.el.setSelectionRange(e, t);
|
|
3700
3695
|
}
|
|
3701
3696
|
}
|
|
3702
|
-
const
|
|
3703
|
-
function
|
|
3697
|
+
const Gn = (o) => o != null && o.matches("input") ? o : o == null ? void 0 : o.querySelector("input");
|
|
3698
|
+
function Wn(o, e) {
|
|
3704
3699
|
var t, l, n, r;
|
|
3705
3700
|
let a;
|
|
3706
3701
|
const u = R(null), s = R(null), i = R(null), c = vt(), d = (c == null ? void 0 : c.emit) || ((l = (t = c == null ? void 0 : c.proxy) === null || t === void 0 ? void 0 : t.$emit) === null || l === void 0 ? void 0 : l.bind(c == null ? void 0 : c.proxy)), b = (c == null ? void 0 : c.props) || ((n = c == null ? void 0 : c.proxy) === null || n === void 0 ? void 0 : n.$props), y = ht.startsWith("3"), F = y && ((r = c == null ? void 0 : c.attrs.modelModifiers) === null || r === void 0 ? void 0 : r.lazy), D = A(() => b == null ? void 0 : b[y ? "modelValue" : "value"]), O = y ? "update:modelValue" : "input", E = F ? "update:modelValue" : "change";
|
|
3707
3702
|
return ne(u, (V) => {
|
|
3708
3703
|
var x;
|
|
3709
3704
|
if (V) {
|
|
3710
|
-
const ee =
|
|
3711
|
-
ee ? (a = new
|
|
3705
|
+
const ee = Gn((x = V == null ? void 0 : V.$el) !== null && x !== void 0 ? x : V);
|
|
3706
|
+
ee ? (a = new Hn({
|
|
3712
3707
|
el: ee,
|
|
3713
3708
|
options: o,
|
|
3714
3709
|
onInput: (te) => {
|
|
@@ -3728,7 +3723,7 @@ function Gn(o, e) {
|
|
|
3728
3723
|
setOptions: (V) => a == null ? void 0 : a.setOptions(V)
|
|
3729
3724
|
};
|
|
3730
3725
|
}
|
|
3731
|
-
const
|
|
3726
|
+
const _n = ["disabled", "step", "placeholder", "name"], Kn = /* @__PURE__ */ _({
|
|
3732
3727
|
__name: "cl-ui-currency-input",
|
|
3733
3728
|
props: {
|
|
3734
3729
|
modelValue: { type: [String, Object, Number, Boolean, null] },
|
|
@@ -3743,7 +3738,7 @@ const Wn = ["disabled", "step", "placeholder", "name"], Kn = /* @__PURE__ */ K({
|
|
|
3743
3738
|
},
|
|
3744
3739
|
emits: ["update:modelValue", "focus", "change"],
|
|
3745
3740
|
setup(o, { expose: e, emit: t }) {
|
|
3746
|
-
const l = o, n = t, { inputRef: r, setOptions: a, setValue: u, numberValue: s } =
|
|
3741
|
+
const l = o, n = t, { inputRef: r, setOptions: a, setValue: u, numberValue: s } = Wn(l.currencyOptions, !1), i = A(() => c(l.modelValue) ? l.modelValue : 0);
|
|
3747
3742
|
function c(D) {
|
|
3748
3743
|
return typeof D == "number" && isNaN(D) === !1;
|
|
3749
3744
|
}
|
|
@@ -3783,7 +3778,7 @@ const Wn = ["disabled", "step", "placeholder", "name"], Kn = /* @__PURE__ */ K({
|
|
|
3783
3778
|
ref: r,
|
|
3784
3779
|
type: "text",
|
|
3785
3780
|
disabled: D.disabled,
|
|
3786
|
-
class:
|
|
3781
|
+
class: U(["!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", {
|
|
3787
3782
|
"hover:!cl-border-grey-3": D.disabled === !1,
|
|
3788
3783
|
"!cl-cursor-default": D.disabled,
|
|
3789
3784
|
"!cl-border-danger-default": !D.isValid,
|
|
@@ -3798,12 +3793,12 @@ const Wn = ["disabled", "step", "placeholder", "name"], Kn = /* @__PURE__ */ K({
|
|
|
3798
3793
|
onChange: F,
|
|
3799
3794
|
onBlur: b,
|
|
3800
3795
|
onFocus: O[0] || (O[0] = (E) => n("focus"))
|
|
3801
|
-
}, null, 42,
|
|
3796
|
+
}, null, 42, _n));
|
|
3802
3797
|
}
|
|
3803
|
-
}), Zn = (o) => (yt("data-v-5cb4ccea"), o = o(), wt(), o),
|
|
3798
|
+
}), Zn = (o) => (yt("data-v-5cb4ccea"), o = o(), wt(), o), Qn = { class: "cl-flex cl-items-start" }, Yn = { class: "cl-w-full" }, Jn = /* @__PURE__ */ Zn(() => /* @__PURE__ */ v("span", null, null, -1)), Xn = ["min", "max", "step", "disabled"], er = { class: "cl-bg-transparent cl-text-center cl-text-sm cl-w-full" }, lr = { class: "cl-bg-transparent cl-text-sm" }, tr = {
|
|
3804
3799
|
key: 1,
|
|
3805
3800
|
class: "cl-emphasis-danger cl-text-sm cl-w-full"
|
|
3806
|
-
},
|
|
3801
|
+
}, or = /* @__PURE__ */ _({
|
|
3807
3802
|
inheritAttrs: !1,
|
|
3808
3803
|
__name: "cl-ui-slider",
|
|
3809
3804
|
props: /* @__PURE__ */ Oe({
|
|
@@ -3821,7 +3816,7 @@ const Wn = ["disabled", "step", "placeholder", "name"], Kn = /* @__PURE__ */ K({
|
|
|
3821
3816
|
gt((i) => ({
|
|
3822
3817
|
"59055b28": a.value
|
|
3823
3818
|
}));
|
|
3824
|
-
const t = o, l =
|
|
3819
|
+
const t = o, l = _e(o, "value"), { t: n } = fe(), r = R(), a = A(() => {
|
|
3825
3820
|
let i = (l.value - t.min) / (t.max - t.min) * 100;
|
|
3826
3821
|
return i < 35 && i > 0 ? i < 20 ? i += 0.5 : i += 0.25 : i > 65 && i < 100 && (i > 80 ? i -= 0.5 : i -= 0.25), `${i}%`;
|
|
3827
3822
|
}), u = A(() => t.min <= t.max && t.step > 0), s = R(!1);
|
|
@@ -3831,16 +3826,16 @@ const Wn = ["disabled", "step", "placeholder", "name"], Kn = /* @__PURE__ */ K({
|
|
|
3831
3826
|
(i = r.value) == null || i.focus();
|
|
3832
3827
|
}
|
|
3833
3828
|
}), (i, c) => u.value ? (p(), w("div", me(ce({ key: 0 }, i.$attrs)), [
|
|
3834
|
-
v("div",
|
|
3829
|
+
v("div", Qn, [
|
|
3835
3830
|
v("span", {
|
|
3836
|
-
class:
|
|
3831
|
+
class: U(["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", {
|
|
3837
3832
|
"cl-bg-white cl-cursor-pointer hover:cl-border-grey-1": !i.disabled,
|
|
3838
3833
|
"cl-bg-grey-0": i.disabled
|
|
3839
3834
|
}]),
|
|
3840
3835
|
onClick: c[0] || (c[0] = (d) => l.value = i.disabled ? l.value : i.min)
|
|
3841
3836
|
}, I(Number.isInteger(i.min) ? g(De)(i.min) : g(He)(i.min, g(re).DECIMAL)), 3),
|
|
3842
|
-
v("div",
|
|
3843
|
-
s.value ? (p(),
|
|
3837
|
+
v("div", Yn, [
|
|
3838
|
+
s.value ? (p(), Z(ul, {
|
|
3844
3839
|
key: 0,
|
|
3845
3840
|
ref_key: "sliderRef",
|
|
3846
3841
|
ref: r,
|
|
@@ -3856,7 +3851,7 @@ const Wn = ["disabled", "step", "placeholder", "name"], Kn = /* @__PURE__ */ K({
|
|
|
3856
3851
|
placeholder: i.placeholder
|
|
3857
3852
|
}, {
|
|
3858
3853
|
default: H(() => [
|
|
3859
|
-
|
|
3854
|
+
Jn
|
|
3860
3855
|
]),
|
|
3861
3856
|
_: 1
|
|
3862
3857
|
}, 8, ["modelValue", "format", "precision", "min", "max", "step", "disabled", "placeholder"])) : (p(), w(J, { key: 1 }, [
|
|
@@ -3870,7 +3865,7 @@ const Wn = ["disabled", "step", "placeholder", "name"], Kn = /* @__PURE__ */ K({
|
|
|
3870
3865
|
max: i.max,
|
|
3871
3866
|
step: i.step,
|
|
3872
3867
|
disabled: i.disabled
|
|
3873
|
-
}, null, 8,
|
|
3868
|
+
}, null, 8, Xn), [
|
|
3874
3869
|
[
|
|
3875
3870
|
bt,
|
|
3876
3871
|
l.value,
|
|
@@ -3878,28 +3873,28 @@ const Wn = ["disabled", "step", "placeholder", "name"], Kn = /* @__PURE__ */ K({
|
|
|
3878
3873
|
{ number: !0 }
|
|
3879
3874
|
]
|
|
3880
3875
|
]),
|
|
3881
|
-
v("div",
|
|
3876
|
+
v("div", er, I(Number.isInteger(l.value) ? g(De)(l.value) : g(He)(l.value, g(re).DECIMAL)), 1)
|
|
3882
3877
|
], 64))
|
|
3883
3878
|
]),
|
|
3884
3879
|
v("span", {
|
|
3885
|
-
class:
|
|
3880
|
+
class: U(["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", {
|
|
3886
3881
|
"cl-bg-white cl-cursor-pointer hover:cl-border-grey-1": !i.disabled,
|
|
3887
3882
|
"cl-bg-grey-0": i.disabled
|
|
3888
3883
|
}]),
|
|
3889
3884
|
onClick: c[3] || (c[3] = (d) => l.value = i.disabled ? l.value : i.max)
|
|
3890
3885
|
}, I(Number.isInteger(i.max) ? g(De)(i.max) : g(He)(i.max, g(re).DECIMAL)), 3),
|
|
3891
|
-
v("div",
|
|
3886
|
+
v("div", lr, [
|
|
3892
3887
|
v("div", {
|
|
3893
3888
|
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",
|
|
3894
3889
|
onClick: c[4] || (c[4] = (d) => s.value = !s.value)
|
|
3895
3890
|
}, [
|
|
3896
|
-
N(g(
|
|
3891
|
+
N(g(K), { icon: "ph:arrows-left-right-thin" })
|
|
3897
3892
|
])
|
|
3898
3893
|
])
|
|
3899
3894
|
])
|
|
3900
|
-
], 16)) : (p(), w("div",
|
|
3895
|
+
], 16)) : (p(), w("div", tr, I(g(n)("slider.invalidProps")), 1));
|
|
3901
3896
|
}
|
|
3902
|
-
}),
|
|
3897
|
+
}), ar = /* @__PURE__ */ Se(or, [["__scopeId", "data-v-5cb4ccea"]]);
|
|
3903
3898
|
function Pl(o) {
|
|
3904
3899
|
let e = !1;
|
|
3905
3900
|
switch (o) {
|
|
@@ -3917,7 +3912,7 @@ function Pl(o) {
|
|
|
3917
3912
|
}
|
|
3918
3913
|
return e;
|
|
3919
3914
|
}
|
|
3920
|
-
function
|
|
3915
|
+
function nr(o) {
|
|
3921
3916
|
return o === "number" || o === "range";
|
|
3922
3917
|
}
|
|
3923
3918
|
function zl(o) {
|
|
@@ -3938,7 +3933,7 @@ function zl(o) {
|
|
|
3938
3933
|
function Ue(o) {
|
|
3939
3934
|
return o === "button" || o === "submit" || o === "reset";
|
|
3940
3935
|
}
|
|
3941
|
-
function
|
|
3936
|
+
function rr(o) {
|
|
3942
3937
|
let e;
|
|
3943
3938
|
switch (o) {
|
|
3944
3939
|
case "datetime":
|
|
@@ -3959,27 +3954,27 @@ function nr(o) {
|
|
|
3959
3954
|
}
|
|
3960
3955
|
function Bl(o, e) {
|
|
3961
3956
|
const t = o.target;
|
|
3962
|
-
return
|
|
3957
|
+
return nr(e) ? t.valueAsNumber : Ue(e) ? t.checked : t.value;
|
|
3963
3958
|
}
|
|
3964
|
-
const
|
|
3959
|
+
const ir = { class: "cl-flex cl-justify-between" }, sr = { class: "cl-w-full" }, cr = {
|
|
3965
3960
|
key: 0,
|
|
3966
3961
|
class: "cl-block cl-left-auto cl-relative cl-text-danger-default"
|
|
3967
|
-
},
|
|
3962
|
+
}, ur = {
|
|
3968
3963
|
key: 1,
|
|
3969
3964
|
class: "cl-bg-danger-light cl-block cl-max-h-6 cl-mb-1 cl-ml-2 cl-px-2 cl-rounded-md cl-text-center cl-text-danger-default cl-text-xs"
|
|
3970
|
-
},
|
|
3965
|
+
}, dr = {
|
|
3971
3966
|
key: 0,
|
|
3972
3967
|
class: "cl-relative"
|
|
3973
|
-
},
|
|
3968
|
+
}, fr = ["type", "disabled", "min", "max", "minlength", "maxlength", "step", "placeholder", "name", "autocomplete"], pr = { key: 0 }, mr = { key: 1 }, vr = {
|
|
3974
3969
|
key: 3,
|
|
3975
3970
|
class: "cl-max-h-[2.75rem] cl-pb-0.5"
|
|
3976
|
-
},
|
|
3971
|
+
}, hr = {
|
|
3977
3972
|
key: 0,
|
|
3978
3973
|
class: "cl-bg-primary-lighter cl-px-2 cl-rounded-md cl-text-center cl-text-secondary-light cl-text-xs cl-w-auto cl-whitespace-pre-line"
|
|
3979
|
-
},
|
|
3974
|
+
}, gr = {
|
|
3980
3975
|
key: 1,
|
|
3981
3976
|
class: "cl-bg-danger-light cl-px-2 cl-rounded-md cl-text-center cl-text-danger-default cl-text-xs cl-w-auto cl-whitespace-pre-line"
|
|
3982
|
-
},
|
|
3977
|
+
}, br = /* @__PURE__ */ _({
|
|
3983
3978
|
inheritAttrs: !1,
|
|
3984
3979
|
__name: "cl-ui-input",
|
|
3985
3980
|
props: {
|
|
@@ -4054,8 +4049,8 @@ const rr = { class: "cl-flex cl-justify-between" }, ir = { class: "cl-w-full" },
|
|
|
4054
4049
|
be(l.customValidationFunction(l.label, k));
|
|
4055
4050
|
})
|
|
4056
4051
|
];
|
|
4057
|
-
return (typeof k == "string" || typeof k == "number") && (G.push(
|
|
4058
|
-
const Pe = [...be.map((
|
|
4052
|
+
return (typeof k == "string" || typeof k == "number") && (G.push(Xa(l.min, l.inputType, l.label, k, l.timeZone)), G.push(en(l.max, l.inputType, l.label, k, l.timeZone))), l.isRequired && G.push(ln(l.label, k)), l.inputType === "email" && typeof k == "string" && G.push(tn(l.label, k)), Promise.all(G).then((be) => {
|
|
4053
|
+
const Pe = [...be.map((Ze) => Ze.message)], Re = be.some((Ze) => Ze.message.length > 0 && Ze.valid === !1) || l.externalErrors.length > 0;
|
|
4059
4054
|
ee.value = !0, Re ? (te.value = Pe, n("validated", !1, k)) : (te.value = [], n("validated", !0, k)), x.value = !Re;
|
|
4060
4055
|
});
|
|
4061
4056
|
}
|
|
@@ -4111,7 +4106,7 @@ const rr = { class: "cl-flex cl-justify-between" }, ir = { class: "cl-w-full" },
|
|
|
4111
4106
|
async function Te() {
|
|
4112
4107
|
await L(), W();
|
|
4113
4108
|
}
|
|
4114
|
-
return
|
|
4109
|
+
return Ke(() => {
|
|
4115
4110
|
l.validateImmediately && m(l.modelValue, !0);
|
|
4116
4111
|
}), ne(() => l.isRequired, () => m(l.modelValue, !0)), ne(() => l.externalErrors, async () => {
|
|
4117
4112
|
await q(b.value), n("update:model-value", b.value);
|
|
@@ -4137,16 +4132,16 @@ const rr = { class: "cl-flex cl-justify-between" }, ir = { class: "cl-w-full" },
|
|
|
4137
4132
|
onMouseenter: P[13] || (P[13] = (G) => C(!0)),
|
|
4138
4133
|
onMouseleave: P[14] || (P[14] = (G) => C(!1))
|
|
4139
4134
|
}, [
|
|
4140
|
-
v("div",
|
|
4141
|
-
v("div",
|
|
4135
|
+
v("div", ir, [
|
|
4136
|
+
v("div", sr, [
|
|
4142
4137
|
X(v("label", { class: "cl-block cl-mb-1 cl-text-grey-4 cl-text-xs cl-tracking-widest" }, I(k.label), 513), [
|
|
4143
4138
|
[ae, k.showLabel && k.label !== ""]
|
|
4144
4139
|
])
|
|
4145
4140
|
]),
|
|
4146
|
-
k.isRequired && i.value ? (p(), w("label",
|
|
4147
|
-
k.isRequired && !i.value && k.requiredText.length ? (p(), w("label",
|
|
4141
|
+
k.isRequired && i.value ? (p(), w("label", cr, " * ")) : z("", !0),
|
|
4142
|
+
k.isRequired && !i.value && k.requiredText.length ? (p(), w("label", ur, I(k.requiredText), 1)) : z("", !0)
|
|
4148
4143
|
]),
|
|
4149
|
-
k.inputType !== "range" && k.inputType !== "currency" && !g(zl)(k.inputType) ? (p(), w("div",
|
|
4144
|
+
k.inputType !== "range" && k.inputType !== "currency" && !g(zl)(k.inputType) ? (p(), w("div", dr, [
|
|
4150
4145
|
X(v("input", ce({
|
|
4151
4146
|
ref_key: "inputElement",
|
|
4152
4147
|
ref: r,
|
|
@@ -4181,7 +4176,7 @@ const rr = { class: "cl-flex cl-justify-between" }, ir = { class: "cl-w-full" },
|
|
|
4181
4176
|
n("input", G, g(Bl)(G, k.inputType));
|
|
4182
4177
|
}),
|
|
4183
4178
|
onChange: se
|
|
4184
|
-
}), null, 16,
|
|
4179
|
+
}), null, 16, fr), [
|
|
4185
4180
|
[xl, b.value]
|
|
4186
4181
|
]),
|
|
4187
4182
|
N(Ee, {
|
|
@@ -4189,15 +4184,15 @@ const rr = { class: "cl-flex cl-justify-between" }, ir = { class: "cl-w-full" },
|
|
|
4189
4184
|
duration: 300
|
|
4190
4185
|
}, {
|
|
4191
4186
|
default: H(() => [
|
|
4192
|
-
k.inputType === "number" && !k.disabled && k.showArrows ? X((p(), w("div",
|
|
4193
|
-
N(g(
|
|
4187
|
+
k.inputType === "number" && !k.disabled && k.showArrows ? X((p(), w("div", pr, [
|
|
4188
|
+
N(g(K), {
|
|
4194
4189
|
icon: "ph:caret-up-bold",
|
|
4195
4190
|
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",
|
|
4196
4191
|
onClick: S,
|
|
4197
4192
|
onMousedown: P[4] || (P[4] = oe(() => {
|
|
4198
4193
|
}, ["prevent"]))
|
|
4199
4194
|
}),
|
|
4200
|
-
N(g(
|
|
4195
|
+
N(g(K), {
|
|
4201
4196
|
icon: "ph:caret-down-bold",
|
|
4202
4197
|
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",
|
|
4203
4198
|
onClick: j,
|
|
@@ -4210,7 +4205,7 @@ const rr = { class: "cl-flex cl-justify-between" }, ir = { class: "cl-w-full" },
|
|
|
4210
4205
|
]),
|
|
4211
4206
|
_: 1
|
|
4212
4207
|
})
|
|
4213
|
-
])) : k.inputType === "currency" ? (p(), w("div",
|
|
4208
|
+
])) : k.inputType === "currency" ? (p(), w("div", mr, [
|
|
4214
4209
|
N(Kn, ce({
|
|
4215
4210
|
ref_key: "currencyInputRef",
|
|
4216
4211
|
ref: a,
|
|
@@ -4230,7 +4225,7 @@ const rr = { class: "cl-flex cl-justify-between" }, ir = { class: "cl-w-full" },
|
|
|
4230
4225
|
onFocus: P[8] || (P[8] = (G) => n("focus")),
|
|
4231
4226
|
onBlur: L
|
|
4232
4227
|
}), null, 16, ["modelValue", "disabled", "placeholder", "is-valid", "highlight-when-valid", "input-specific-classes", "group", "step", "currency-options"])
|
|
4233
|
-
])) : g(zl)(k.inputType) ? (p(),
|
|
4228
|
+
])) : g(zl)(k.inputType) ? (p(), Z(g(jn), ce({ key: 2 }, k.$attrs, {
|
|
4234
4229
|
ref_key: "inputElement",
|
|
4235
4230
|
ref: r,
|
|
4236
4231
|
date: y.value,
|
|
@@ -4242,7 +4237,7 @@ const rr = { class: "cl-flex cl-justify-between" }, ir = { class: "cl-w-full" },
|
|
|
4242
4237
|
}],
|
|
4243
4238
|
disabled: k.disabled,
|
|
4244
4239
|
required: k.isRequired,
|
|
4245
|
-
type: g(
|
|
4240
|
+
type: g(rr)(k.inputType),
|
|
4246
4241
|
"time-zone": k.timeZone,
|
|
4247
4242
|
min: F.value,
|
|
4248
4243
|
max: D.value,
|
|
@@ -4252,8 +4247,8 @@ const rr = { class: "cl-flex cl-justify-between" }, ir = { class: "cl-w-full" },
|
|
|
4252
4247
|
"date-format-locale": k.dateFormatLocale,
|
|
4253
4248
|
onBlur: oe(L, ["self"]),
|
|
4254
4249
|
onFocus: P[10] || (P[10] = (G) => n("focus"))
|
|
4255
|
-
}), null, 16, ["date", "class", "disabled", "required", "type", "time-zone", "min", "max", "placeholder", "initial-date", "quick-date-scope", "date-format-locale"])) : k.inputType === "range" && typeof b.value == "number" ? (p(), w("div",
|
|
4256
|
-
N(g(
|
|
4250
|
+
}), null, 16, ["date", "class", "disabled", "required", "type", "time-zone", "min", "max", "placeholder", "initial-date", "quick-date-scope", "date-format-locale"])) : k.inputType === "range" && typeof b.value == "number" ? (p(), w("div", vr, [
|
|
4251
|
+
N(g(ar), {
|
|
4257
4252
|
ref_key: "inputElement",
|
|
4258
4253
|
ref: r,
|
|
4259
4254
|
value: b.value,
|
|
@@ -4269,11 +4264,11 @@ const rr = { class: "cl-flex cl-justify-between" }, ir = { class: "cl-w-full" },
|
|
|
4269
4264
|
}, null, 8, ["value", "min", "max", "step", "placeholder", "disabled"])
|
|
4270
4265
|
])) : z("", !0)
|
|
4271
4266
|
], 32),
|
|
4272
|
-
x.value && V.value && ee.value ? (p(), w("div",
|
|
4273
|
-
!x.value && $.value.length > 0 && k.showValidationMessages && ee.value ? (p(), w("div",
|
|
4267
|
+
x.value && V.value && ee.value ? (p(), w("div", hr, I(V.value), 1)) : z("", !0),
|
|
4268
|
+
!x.value && $.value.length > 0 && k.showValidationMessages && ee.value ? (p(), w("div", gr, I($.value), 1)) : z("", !0)
|
|
4274
4269
|
], 16));
|
|
4275
4270
|
}
|
|
4276
|
-
}), hl = /* @__PURE__ */ Se(
|
|
4271
|
+
}), hl = /* @__PURE__ */ Se(br, [["__scopeId", "data-v-7748b62a"]]), yr = [
|
|
4277
4272
|
"string",
|
|
4278
4273
|
"boolean",
|
|
4279
4274
|
"number",
|
|
@@ -4286,7 +4281,7 @@ const rr = { class: "cl-flex cl-justify-between" }, ir = { class: "cl-w-full" },
|
|
|
4286
4281
|
function ct(o) {
|
|
4287
4282
|
return typeof o.caption == "string" && typeof o.name == "string" && typeof o.type == "string";
|
|
4288
4283
|
}
|
|
4289
|
-
function
|
|
4284
|
+
function wr(o) {
|
|
4290
4285
|
let e = Array.isArray(o);
|
|
4291
4286
|
if (e) {
|
|
4292
4287
|
for (const t of o)
|
|
@@ -4297,12 +4292,12 @@ function yr(o) {
|
|
|
4297
4292
|
}
|
|
4298
4293
|
return e;
|
|
4299
4294
|
}
|
|
4300
|
-
const
|
|
4295
|
+
const kr = [
|
|
4301
4296
|
"ellipsis",
|
|
4302
4297
|
"wrap-text"
|
|
4303
4298
|
];
|
|
4304
4299
|
var le = /* @__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))(le || {});
|
|
4305
|
-
const
|
|
4300
|
+
const $r = [
|
|
4306
4301
|
"equal",
|
|
4307
4302
|
"notequal",
|
|
4308
4303
|
"contains",
|
|
@@ -4315,24 +4310,24 @@ const kr = [
|
|
|
4315
4310
|
"equalorgreaterthan",
|
|
4316
4311
|
"andcontains"
|
|
4317
4312
|
];
|
|
4318
|
-
function
|
|
4313
|
+
function Sr(o) {
|
|
4319
4314
|
return typeof o.filterOnColumn == "string" && typeof o.filterOperation == "number" && typeof o.filterValue == "string";
|
|
4320
4315
|
}
|
|
4321
|
-
function
|
|
4316
|
+
function Tr(o) {
|
|
4322
4317
|
return o === null || typeof o.sortByAscending == "boolean" && typeof o.sortOnColumn == "string";
|
|
4323
4318
|
}
|
|
4324
|
-
function
|
|
4325
|
-
let e = typeof o.filters == "object" && Array.isArray(o.filters) && typeof o.pageNumber == "number" && typeof o.pageSize == "number" && typeof o.sort == "object" &&
|
|
4319
|
+
function Cr(o) {
|
|
4320
|
+
let e = typeof o.filters == "object" && Array.isArray(o.filters) && typeof o.pageNumber == "number" && typeof o.pageSize == "number" && typeof o.sort == "object" && Tr(o.sort);
|
|
4326
4321
|
if (e) {
|
|
4327
4322
|
for (const t of o.filters)
|
|
4328
|
-
if (
|
|
4323
|
+
if (!Sr(t)) {
|
|
4329
4324
|
e = !1;
|
|
4330
4325
|
break;
|
|
4331
4326
|
}
|
|
4332
4327
|
}
|
|
4333
4328
|
return e;
|
|
4334
4329
|
}
|
|
4335
|
-
function
|
|
4330
|
+
function Or(o, e) {
|
|
4336
4331
|
let t = typeof o.results == "object" && Array.isArray(o.results) && typeof o.totalRecords == "number";
|
|
4337
4332
|
if (t) {
|
|
4338
4333
|
for (const l of o.results)
|
|
@@ -4343,7 +4338,7 @@ function Cr(o, e) {
|
|
|
4343
4338
|
}
|
|
4344
4339
|
return t;
|
|
4345
4340
|
}
|
|
4346
|
-
const
|
|
4341
|
+
const Er = {
|
|
4347
4342
|
method: "equal",
|
|
4348
4343
|
icon: "mdi:equal",
|
|
4349
4344
|
description: "Equals",
|
|
@@ -4356,12 +4351,12 @@ const Or = {
|
|
|
4356
4351
|
"list"
|
|
4357
4352
|
],
|
|
4358
4353
|
key: "equal"
|
|
4359
|
-
},
|
|
4354
|
+
}, Fr = {
|
|
4360
4355
|
method: "contains",
|
|
4361
4356
|
icon: "mdi:format-letter-matches",
|
|
4362
4357
|
description: "Contains",
|
|
4363
4358
|
allowedTypes: ["string"]
|
|
4364
|
-
},
|
|
4359
|
+
}, Dr = {
|
|
4365
4360
|
method: "lessthan",
|
|
4366
4361
|
icon: "mdi:less-than",
|
|
4367
4362
|
description: "Before",
|
|
@@ -4371,7 +4366,7 @@ const Or = {
|
|
|
4371
4366
|
],
|
|
4372
4367
|
key: "before"
|
|
4373
4368
|
}, Ul = [
|
|
4374
|
-
|
|
4369
|
+
Fr,
|
|
4375
4370
|
{
|
|
4376
4371
|
method: "notcontains",
|
|
4377
4372
|
icon: "mdi:format-letter-spacing-variant",
|
|
@@ -4390,7 +4385,7 @@ const Or = {
|
|
|
4390
4385
|
description: "Ends with",
|
|
4391
4386
|
allowedTypes: ["string"]
|
|
4392
4387
|
},
|
|
4393
|
-
|
|
4388
|
+
Er,
|
|
4394
4389
|
{
|
|
4395
4390
|
method: "notequal",
|
|
4396
4391
|
icon: "mdi:not-equal",
|
|
@@ -4403,7 +4398,7 @@ const Or = {
|
|
|
4403
4398
|
],
|
|
4404
4399
|
key: "notequal"
|
|
4405
4400
|
},
|
|
4406
|
-
|
|
4401
|
+
Dr,
|
|
4407
4402
|
{
|
|
4408
4403
|
method: "greaterthan",
|
|
4409
4404
|
icon: "mdi:greater-than",
|
|
@@ -4458,7 +4453,7 @@ const Or = {
|
|
|
4458
4453
|
description: "Less than",
|
|
4459
4454
|
allowedTypes: ["number"]
|
|
4460
4455
|
}
|
|
4461
|
-
],
|
|
4456
|
+
], Nr = { class: "cl-group cl-inline cl-relative cl-w-auto" }, Ar = { class: "cl-bg-off-white cl-border-grey-1 cl-border-r cl-flex cl-h-full cl-items-center cl-justify-center cl-rounded-md cl-w-10" }, Vr = { class: "cl-p-2 cl-select-none" }, qr = ["onClick"], Ir = /* @__PURE__ */ _({
|
|
4462
4457
|
__name: "cl-ui-grid-method-selector",
|
|
4463
4458
|
props: {
|
|
4464
4459
|
filter: {},
|
|
@@ -4499,51 +4494,51 @@ const Or = {
|
|
|
4499
4494
|
return;
|
|
4500
4495
|
l("update:filter", i);
|
|
4501
4496
|
}
|
|
4502
|
-
return (s, i) => (p(), w("div",
|
|
4503
|
-
v("div",
|
|
4504
|
-
a.value ? (p(),
|
|
4497
|
+
return (s, i) => (p(), w("div", Nr, [
|
|
4498
|
+
v("div", Ar, [
|
|
4499
|
+
a.value ? (p(), Z(g(K), {
|
|
4505
4500
|
key: 0,
|
|
4506
4501
|
icon: a.value.icon,
|
|
4507
|
-
class:
|
|
4502
|
+
class: U(["cl-text-lg", {
|
|
4508
4503
|
"cl-text-grey-4": t.filter === void 0 || t.filter.filterValue === "",
|
|
4509
4504
|
"cl-text-primary-default": t.filter && t.filter.filterValue !== ""
|
|
4510
4505
|
}])
|
|
4511
4506
|
}, null, 8, ["icon", "class"])) : z("", !0)
|
|
4512
4507
|
]),
|
|
4513
4508
|
v("div", {
|
|
4514
|
-
class:
|
|
4509
|
+
class: U(["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", {
|
|
4515
4510
|
"group-hover:cl-flex group-hover:cl-h-auto group-hover:cl-w-52": s.loading === !1,
|
|
4516
4511
|
"cl-left-0": s.firstHalf,
|
|
4517
4512
|
"cl--left-44": !s.firstHalf
|
|
4518
4513
|
}])
|
|
4519
4514
|
}, [
|
|
4520
|
-
v("strong",
|
|
4515
|
+
v("strong", Vr, I(g(n)("grid.availableMethods")), 1),
|
|
4521
4516
|
(p(!0), w(J, null, ue(r.value, (c, d) => {
|
|
4522
4517
|
var b;
|
|
4523
4518
|
return p(), w("span", {
|
|
4524
4519
|
key: d,
|
|
4525
|
-
class:
|
|
4520
|
+
class: U(["cl-cursor-pointer cl-px-4 cl-py-1 cl-transition-colors cl-w-full hover:cl-bg-grey-0", {
|
|
4526
4521
|
"cl-bg-primary-default cl-opacity-80": c.method === ((b = a.value) == null ? void 0 : b.method)
|
|
4527
4522
|
}]),
|
|
4528
4523
|
onClick: oe((y) => u(c.method), ["prevent"])
|
|
4529
4524
|
}, [
|
|
4530
4525
|
pe(I(c.description) + " ", 1),
|
|
4531
|
-
N(g(
|
|
4526
|
+
N(g(K), {
|
|
4532
4527
|
icon: c.icon,
|
|
4533
4528
|
class: "cl-float-right cl-text-grey-4 cl-text-sm"
|
|
4534
4529
|
}, null, 8, ["icon"])
|
|
4535
|
-
], 10,
|
|
4530
|
+
], 10, qr);
|
|
4536
4531
|
}), 128))
|
|
4537
4532
|
], 2)
|
|
4538
4533
|
]));
|
|
4539
4534
|
}
|
|
4540
|
-
}),
|
|
4535
|
+
}), Rr = {
|
|
4541
4536
|
key: 0,
|
|
4542
4537
|
class: "cl-border cl-border-grey-2 cl-flex cl-overflow-hidden cl-rounded-md lg:cl-overflow-visible"
|
|
4543
|
-
},
|
|
4538
|
+
}, Mr = ["disabled"], Lr = /* @__PURE__ */ v("option", { value: void 0 }, null, -1), jr = ["selected"], Pr = ["selected"], zr = /* @__PURE__ */ v("span", null, null, -1), Br = {
|
|
4544
4539
|
key: 4,
|
|
4545
4540
|
class: "cl-w-full"
|
|
4546
|
-
},
|
|
4541
|
+
}, Ur = /* @__PURE__ */ v("span", null, null, -1), xr = ["disabled"], Hr = /* @__PURE__ */ v("option", { value: void 0 }, null, -1), Gr = ["value", "selected"], Wr = /* @__PURE__ */ _({
|
|
4547
4542
|
__name: "cl-ui-grid-filter",
|
|
4548
4543
|
props: {
|
|
4549
4544
|
loading: { type: Boolean },
|
|
@@ -4736,23 +4731,23 @@ const Or = {
|
|
|
4736
4731
|
return;
|
|
4737
4732
|
m === !1 && (y.value = h);
|
|
4738
4733
|
}
|
|
4739
|
-
return (f, h) => x.value ? (p(), w("div",
|
|
4734
|
+
return (f, h) => x.value ? (p(), w("div", Rr, [
|
|
4740
4735
|
f.column.type === "boolean" || f.column.type === "slot" && f.column.slotType === "boolean" ? (p(), w("select", {
|
|
4741
4736
|
key: 0,
|
|
4742
4737
|
disabled: f.loading,
|
|
4743
4738
|
class: "!cl-h-[2rem] cl-bg-white cl-border-none cl-font-normal cl-mb-0 cl-rounded-md cl-w-full",
|
|
4744
4739
|
onChange: h[0] || (h[0] = (m) => ee(m.target))
|
|
4745
4740
|
}, [
|
|
4746
|
-
|
|
4741
|
+
Lr,
|
|
4747
4742
|
v("option", {
|
|
4748
4743
|
value: "true",
|
|
4749
4744
|
selected: O.value === "true"
|
|
4750
|
-
}, I(g(n)("grid.true")), 9,
|
|
4745
|
+
}, I(g(n)("grid.true")), 9, jr),
|
|
4751
4746
|
v("option", {
|
|
4752
4747
|
value: "false",
|
|
4753
4748
|
selected: O.value === "false"
|
|
4754
|
-
}, I(g(n)("grid.false")), 9,
|
|
4755
|
-
], 40,
|
|
4749
|
+
}, I(g(n)("grid.false")), 9, Pr)
|
|
4750
|
+
], 40, Mr)) : i.value ? (p(), Z(hl, {
|
|
4756
4751
|
key: 1,
|
|
4757
4752
|
"model-value": E.value,
|
|
4758
4753
|
class: "!cl-h-[2rem] !cl-text-xs cl-border-none cl-mb-0 cl-w-full lg:!cl-text-base",
|
|
@@ -4762,7 +4757,7 @@ const Or = {
|
|
|
4762
4757
|
"input-type": f.column.type === "slot" ? f.column.slotType : f.column.type,
|
|
4763
4758
|
"time-zone": f.timeZone,
|
|
4764
4759
|
"onUpdate:modelValue": h[1] || (h[1] = (m) => ee(null, m ?? ""))
|
|
4765
|
-
}, null, 8, ["model-value", "disabled", "label", "input-type", "time-zone"])) : c.value ? (p(),
|
|
4760
|
+
}, null, 8, ["model-value", "disabled", "label", "input-type", "time-zone"])) : c.value ? (p(), Z(hl, {
|
|
4766
4761
|
key: 2,
|
|
4767
4762
|
"model-value": V.value,
|
|
4768
4763
|
class: "!cl-h-[2rem] [&_.clear-icon]:-cl-m-1 [&_.icon]:cl-text-sm cl-border-none cl-mb-0 cl-w-full",
|
|
@@ -4771,7 +4766,7 @@ const Or = {
|
|
|
4771
4766
|
"time-zone": f.headerDisplayTimezone,
|
|
4772
4767
|
"quick-date-scope": f.quickDateScope,
|
|
4773
4768
|
"onUpdate:modelValue": h[2] || (h[2] = (m) => $(m))
|
|
4774
|
-
}, null, 8, ["model-value", "disabled", "time-zone", "quick-date-scope"])) : f.column.type === "number" || f.column.type === "slot" && f.column.slotType === "number" ? (p(),
|
|
4769
|
+
}, null, 8, ["model-value", "disabled", "time-zone", "quick-date-scope"])) : f.column.type === "number" || f.column.type === "slot" && f.column.slotType === "number" ? (p(), Z(ul, {
|
|
4775
4770
|
key: 3,
|
|
4776
4771
|
"model-value": O.value === "" || isNaN(+O.value) ? null : +O.value,
|
|
4777
4772
|
format: f.column.format === g(re).INTEGER ? g(re).DECIMAL : f.column.format,
|
|
@@ -4785,10 +4780,10 @@ const Or = {
|
|
|
4785
4780
|
"onUpdate:modelValue": h[3] || (h[3] = (m) => m !== null ? te(null, m) : ee(null, ""))
|
|
4786
4781
|
}, {
|
|
4787
4782
|
default: H(() => [
|
|
4788
|
-
|
|
4783
|
+
zr
|
|
4789
4784
|
]),
|
|
4790
4785
|
_: 1
|
|
4791
|
-
}, 8, ["model-value", "format", "precision", "disabled", "readonly"])) : f.column.type === "string" || f.column.type === "slot" && f.column.slotType === "string" ? (p(), w("div",
|
|
4786
|
+
}, 8, ["model-value", "format", "precision", "disabled", "readonly"])) : f.column.type === "string" || f.column.type === "slot" && f.column.slotType === "string" ? (p(), w("div", Br, [
|
|
4792
4787
|
N(Ne, {
|
|
4793
4788
|
"model-value": O.value,
|
|
4794
4789
|
class: "cl-border-none cl-font-normal cl-h-[2rem] cl-px-3 cl-text-xs lg:cl-text-base",
|
|
@@ -4796,7 +4791,7 @@ const Or = {
|
|
|
4796
4791
|
"onUpdate:modelValue": h[4] || (h[4] = (m) => ee(null, m))
|
|
4797
4792
|
}, {
|
|
4798
4793
|
default: H(() => [
|
|
4799
|
-
|
|
4794
|
+
Ur
|
|
4800
4795
|
]),
|
|
4801
4796
|
_: 1
|
|
4802
4797
|
}, 8, ["model-value", "disabled"])
|
|
@@ -4806,14 +4801,14 @@ const Or = {
|
|
|
4806
4801
|
disabled: f.loading,
|
|
4807
4802
|
onChange: h[5] || (h[5] = (m) => b.value ? te(m.target) : ee(m.target))
|
|
4808
4803
|
}, [
|
|
4809
|
-
|
|
4804
|
+
Hr,
|
|
4810
4805
|
(p(!0), w(J, null, ue(f.column.listEntries ?? [], (m) => (p(), w("option", {
|
|
4811
4806
|
key: m.value,
|
|
4812
4807
|
value: m.value,
|
|
4813
4808
|
selected: O.value === m.value.toString()
|
|
4814
|
-
}, I(g(n)(m.translationKey)), 9,
|
|
4815
|
-
], 40,
|
|
4816
|
-
c.value ? z("", !0) : (p(),
|
|
4809
|
+
}, I(g(n)(m.translationKey)), 9, Gr))), 128))
|
|
4810
|
+
], 40, xr)) : z("", !0),
|
|
4811
|
+
c.value ? z("", !0) : (p(), Z(Ir, {
|
|
4817
4812
|
key: 6,
|
|
4818
4813
|
filter: F.value,
|
|
4819
4814
|
"onUpdate:filter": h[6] || (h[6] = (m) => F.value = m),
|
|
@@ -4824,7 +4819,7 @@ const Or = {
|
|
|
4824
4819
|
}, null, 8, ["filter", "loading", "column", "default-operation", "first-half"]))
|
|
4825
4820
|
])) : z("", !0);
|
|
4826
4821
|
}
|
|
4827
|
-
}),
|
|
4822
|
+
}), _r = { class: "-cl-top-1 cl-bg-white cl-shadow-sm cl-sticky cl-z-20 lg:cl-bg-transparent lg:cl-relative lg:cl-shadow-none" }, Kr = { class: "cl-hidden lg:cl-table-row" }, Zr = ["onClick"], Qr = { class: "cl-flex cl-justify-end cl-w-full lg:cl-hidden" }, Yr = { class: "cl-col-span-2 lg:cl-hidden" }, Jr = ["onClick"], Xr = { class: "cl-font-normal cl-mr-1" }, ei = /* @__PURE__ */ _({
|
|
4828
4823
|
__name: "cl-ui-grid-header",
|
|
4829
4824
|
props: {
|
|
4830
4825
|
request: {},
|
|
@@ -4862,24 +4857,24 @@ const Or = {
|
|
|
4862
4857
|
], c.pageNumber = 1, r.value = c;
|
|
4863
4858
|
}
|
|
4864
4859
|
}
|
|
4865
|
-
return (i, c) => (p(), w("thead",
|
|
4860
|
+
return (i, c) => (p(), w("thead", _r, [
|
|
4866
4861
|
v("tr", Kr, [
|
|
4867
4862
|
(p(!0), w(J, null, ue(i.columns, (d, b) => (p(), w("th", {
|
|
4868
4863
|
key: b,
|
|
4869
|
-
class:
|
|
4864
|
+
class: U(["cl-text-grey-3 cl-text-sm", {
|
|
4870
4865
|
"cl-cursor-pointer": g(Je)(d) && i.loading === !1
|
|
4871
4866
|
}]),
|
|
4872
4867
|
onClick: (y) => g(Je)(d) && i.loading === !1 ? u(d.field) : () => {
|
|
4873
4868
|
}
|
|
4874
4869
|
}, [
|
|
4875
4870
|
pe(I(d.caption) + " ", 1),
|
|
4876
|
-
X(N(g(
|
|
4871
|
+
X(N(g(K), {
|
|
4877
4872
|
class: "cl-inline-block",
|
|
4878
4873
|
icon: "ph:caret-up"
|
|
4879
4874
|
}, null, 512), [
|
|
4880
4875
|
[ae, a(d, !0)]
|
|
4881
4876
|
]),
|
|
4882
|
-
X(N(g(
|
|
4877
|
+
X(N(g(K), {
|
|
4883
4878
|
class: "cl-inline-block",
|
|
4884
4879
|
icon: "ph:caret-down"
|
|
4885
4880
|
}, null, 512), [
|
|
@@ -4888,12 +4883,12 @@ const Or = {
|
|
|
4888
4883
|
], 10, Zr))), 128))
|
|
4889
4884
|
]),
|
|
4890
4885
|
v("tr", {
|
|
4891
|
-
class:
|
|
4886
|
+
class: U(["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", {
|
|
4892
4887
|
"cl-hidden lg:cl-table-row": !i.filterPanelOpen
|
|
4893
4888
|
}])
|
|
4894
4889
|
}, [
|
|
4895
|
-
v("div",
|
|
4896
|
-
N(g(
|
|
4890
|
+
v("div", Qr, [
|
|
4891
|
+
N(g(K), {
|
|
4897
4892
|
class: "cl-text-grey-4 hover:cl-cursor-pointer hover:cl-text-link-default",
|
|
4898
4893
|
icon: "ph:x",
|
|
4899
4894
|
size: 16,
|
|
@@ -4902,32 +4897,32 @@ const Or = {
|
|
|
4902
4897
|
]),
|
|
4903
4898
|
(p(!0), w(J, null, ue(i.columns, (d, b) => (p(), w("th", {
|
|
4904
4899
|
key: b,
|
|
4905
|
-
class:
|
|
4900
|
+
class: U(["cl-grid cl-grid-cols-4 cl-py-1 cl-text-xs cl-w-full lg:cl-table-cell lg:cl-w-auto", {
|
|
4906
4901
|
"cl-hidden lg:cl-table-cell": !g($l)(d)
|
|
4907
4902
|
}])
|
|
4908
4903
|
}, [
|
|
4909
|
-
v("div",
|
|
4904
|
+
v("div", Yr, I(d.caption), 1),
|
|
4910
4905
|
g(Je)(d) ? (p(), w("div", {
|
|
4911
4906
|
key: 0,
|
|
4912
4907
|
class: "cl-col-span-2 cl-gap-1 cl-span lg:cl-hidden",
|
|
4913
4908
|
onClick: (y) => i.loading === !1 ? u(d.field) : void 0
|
|
4914
4909
|
}, [
|
|
4915
|
-
v("span",
|
|
4916
|
-
a(d, !0) ? (p(),
|
|
4910
|
+
v("span", Xr, I(g(n)("grid.sortBy")), 1),
|
|
4911
|
+
a(d, !0) ? (p(), Z(g(K), {
|
|
4917
4912
|
key: 0,
|
|
4918
4913
|
class: "cl-cursor-pointer cl-inline-block",
|
|
4919
4914
|
icon: "ph:caret-up"
|
|
4920
|
-
})) : a(d, !1) ? (p(),
|
|
4915
|
+
})) : a(d, !1) ? (p(), Z(g(K), {
|
|
4921
4916
|
key: 1,
|
|
4922
4917
|
class: "cl-cursor-pointer cl-inline-block",
|
|
4923
4918
|
icon: "ph:caret-down"
|
|
4924
|
-
})) : (p(),
|
|
4919
|
+
})) : (p(), Z(g(K), {
|
|
4925
4920
|
key: 2,
|
|
4926
4921
|
class: "cl-cursor-pointer cl-inline-block",
|
|
4927
4922
|
icon: "ph:minus"
|
|
4928
4923
|
}))
|
|
4929
|
-
], 8,
|
|
4930
|
-
N(
|
|
4924
|
+
], 8, Jr)) : z("", !0),
|
|
4925
|
+
N(Wr, {
|
|
4931
4926
|
class: "cl-col-span-4",
|
|
4932
4927
|
loading: i.loading,
|
|
4933
4928
|
filter: r.value.filters.filter((y) => y.filterOnColumn === d.field),
|
|
@@ -4942,7 +4937,7 @@ const Or = {
|
|
|
4942
4937
|
], 2)
|
|
4943
4938
|
]));
|
|
4944
4939
|
}
|
|
4945
|
-
}),
|
|
4940
|
+
}), li = { class: "cl-flex cl-mb-2" }, ti = { class: "cl-basis-full cl-grow" }, oi = /* @__PURE__ */ v("span", null, null, -1), ai = /* @__PURE__ */ _({
|
|
4946
4941
|
__name: "cl-ui-grid-search",
|
|
4947
4942
|
props: /* @__PURE__ */ Oe({
|
|
4948
4943
|
columns: {},
|
|
@@ -4953,7 +4948,7 @@ const Or = {
|
|
|
4953
4948
|
}),
|
|
4954
4949
|
emits: /* @__PURE__ */ Oe(["update:request"], ["update:searchValue"]),
|
|
4955
4950
|
setup(o, { emit: e }) {
|
|
4956
|
-
const t = o, l =
|
|
4951
|
+
const t = o, l = _e(o, "searchValue"), n = e, r = A({
|
|
4957
4952
|
get: () => t.request,
|
|
4958
4953
|
set: (s) => n("update:request", s)
|
|
4959
4954
|
});
|
|
@@ -4975,9 +4970,9 @@ const Or = {
|
|
|
4975
4970
|
const { t: u } = fe();
|
|
4976
4971
|
return (s, i) => {
|
|
4977
4972
|
const c = yl("icon");
|
|
4978
|
-
return
|
|
4979
|
-
v("div",
|
|
4980
|
-
v("div",
|
|
4973
|
+
return B(s.$slots, "search", me(he({ searchValue: l.value, performSearch: a })), () => [
|
|
4974
|
+
v("div", li, [
|
|
4975
|
+
v("div", ti, [
|
|
4981
4976
|
N(Ne, {
|
|
4982
4977
|
modelValue: l.value,
|
|
4983
4978
|
"onUpdate:modelValue": i[0] || (i[0] = (d) => l.value = d),
|
|
@@ -4988,7 +4983,7 @@ const Or = {
|
|
|
4988
4983
|
onBlur: i[2] || (i[2] = (d) => a(l.value))
|
|
4989
4984
|
}, {
|
|
4990
4985
|
default: H(() => [
|
|
4991
|
-
|
|
4986
|
+
oi
|
|
4992
4987
|
]),
|
|
4993
4988
|
_: 1
|
|
4994
4989
|
}, 8, ["modelValue", "placeholder"])
|
|
@@ -5002,7 +4997,7 @@ const Or = {
|
|
|
5002
4997
|
]);
|
|
5003
4998
|
};
|
|
5004
4999
|
}
|
|
5005
|
-
}),
|
|
5000
|
+
}), ni = { class: "cl-fixed cl-flex cl-h-full cl-justify-end cl-right-0 cl-shadow-lg cl-top-0 cl-z-40" }, ri = { class: "cl-bg-secondary-default cl-h-full cl-overflow-y-auto cl-overscroll-y-none cl-px-10 cl-py-20 cl-relative cl-text-grey-2 cl-w-80" }, ii = { class: "cl-mb-4 cl-text-2xl cl-text-off-white" }, si = { class: "cl-border-grey-3 cl-border-t cl-flex cl-flex-wrap cl-text-sm cl-w-full" }, ci = { class: "cl-border-b cl-border-grey-2 cl-flex cl-py-2 cl-text-sm cl-w-full" }, ui = { class: "cl-flex-1 cl-py-2" }, di = { class: "cl-py-2 cl-w-1/4" }, fi = { class: "cl-py-2 cl-w-1/5" }, pi = { class: "cl-flex-1 cl-py-2" }, mi = { class: "cl-py-2 cl-w-1/4" }, vi = { class: "cl-py-2 cl-text-off-white cl-w-1/5" }, hi = { key: 1 }, gi = /* @__PURE__ */ _({
|
|
5006
5001
|
inheritAttrs: !1,
|
|
5007
5002
|
__name: "cl-ui-grid-view-manager",
|
|
5008
5003
|
props: {
|
|
@@ -5035,50 +5030,50 @@ const Or = {
|
|
|
5035
5030
|
]),
|
|
5036
5031
|
_: 1
|
|
5037
5032
|
}, 16, ["disabled"]),
|
|
5038
|
-
(p(),
|
|
5033
|
+
(p(), Z(bl, { to: "body" }, [
|
|
5039
5034
|
N(Ee, { name: "slide-left" }, {
|
|
5040
5035
|
default: H(() => [
|
|
5041
|
-
X(v("div",
|
|
5042
|
-
v("div",
|
|
5043
|
-
N(g(
|
|
5036
|
+
X(v("div", ni, [
|
|
5037
|
+
v("div", ri, [
|
|
5038
|
+
N(g(K), {
|
|
5044
5039
|
class: "cl-absolute cl-cursor-pointer cl-right-3 cl-text-off-white cl-top-3",
|
|
5045
5040
|
icon: "ph:x",
|
|
5046
5041
|
size: 16,
|
|
5047
5042
|
onClick: c[1] || (c[1] = (d) => r.value = !1)
|
|
5048
5043
|
}),
|
|
5049
|
-
v("h3",
|
|
5050
|
-
v("ul",
|
|
5051
|
-
v("li",
|
|
5052
|
-
v("strong",
|
|
5053
|
-
v("strong",
|
|
5054
|
-
v("strong",
|
|
5044
|
+
v("h3", ii, I(g(n)("grid.manageView")), 1),
|
|
5045
|
+
v("ul", si, [
|
|
5046
|
+
v("li", ci, [
|
|
5047
|
+
v("strong", ui, I(g(n)("grid.column")), 1),
|
|
5048
|
+
v("strong", di, I(g(n)("grid.visible")), 1),
|
|
5049
|
+
v("strong", fi, I(g(n)("grid.order")), 1)
|
|
5055
5050
|
]),
|
|
5056
5051
|
(p(!0), w(J, null, ue(i.columns, (d, b) => (p(), w("li", {
|
|
5057
5052
|
key: b,
|
|
5058
5053
|
class: "cl-border-b cl-border-grey-2 cl-flex cl-py-2 cl-text-sm cl-w-full"
|
|
5059
5054
|
}, [
|
|
5060
|
-
v("div",
|
|
5061
|
-
v("div",
|
|
5055
|
+
v("div", pi, I(d.caption), 1),
|
|
5056
|
+
v("div", mi, [
|
|
5062
5057
|
N(lt, {
|
|
5063
5058
|
"model-value": d.visible === void 0 || d.visible === !0,
|
|
5064
5059
|
"onUpdate:modelValue": (y) => u(y, d)
|
|
5065
5060
|
}, null, 8, ["model-value", "onUpdate:modelValue"])
|
|
5066
5061
|
]),
|
|
5067
|
-
v("div",
|
|
5062
|
+
v("div", vi, [
|
|
5068
5063
|
d.visible === void 0 || d.visible === !0 ? (p(), w(J, { key: 0 }, [
|
|
5069
|
-
b !== 0 ? (p(),
|
|
5064
|
+
b !== 0 ? (p(), Z(g(K), {
|
|
5070
5065
|
key: 0,
|
|
5071
5066
|
class: "cl-cursor-pointer cl-inline-block cl-mr-2",
|
|
5072
5067
|
icon: "ph:arrow-left",
|
|
5073
5068
|
onClick: (y) => s(b, "down")
|
|
5074
5069
|
}, null, 8, ["onClick"])) : z("", !0),
|
|
5075
|
-
b !== i.columns.length - 1 ? (p(),
|
|
5070
|
+
b !== i.columns.length - 1 ? (p(), Z(g(K), {
|
|
5076
5071
|
key: 1,
|
|
5077
5072
|
class: "cl-cursor-pointer cl-inline-block",
|
|
5078
5073
|
icon: "ph:arrow-right",
|
|
5079
5074
|
onClick: (y) => s(b, "up")
|
|
5080
5075
|
}, null, 8, ["onClick"])) : z("", !0)
|
|
5081
|
-
], 64)) : (p(), w("em",
|
|
5076
|
+
], 64)) : (p(), w("em", hi, I(g(n)("grid.hidden")), 1))
|
|
5082
5077
|
])
|
|
5083
5078
|
]))), 128))
|
|
5084
5079
|
])
|
|
@@ -5092,7 +5087,7 @@ const Or = {
|
|
|
5092
5087
|
]))
|
|
5093
5088
|
], 64));
|
|
5094
5089
|
}
|
|
5095
|
-
}),
|
|
5090
|
+
}), bi = { class: "cl-relative cl-w-full grid-wrapper lg:cl-min-h-fit" }, yi = { class: "cl-absolute cl-flex cl-items-center cl-justify-center cl-min-h-full cl-p-28 cl-pt-0 cl-w-full" }, wi = { class: "cl-overflow-x-auto cl-overscroll-x-none cl-pt-1" }, ki = { class: "cl-hidden lg:cl-table-column-group" }, $i = /* @__PURE__ */ _({
|
|
5096
5091
|
__name: "cl-ui-grid",
|
|
5097
5092
|
props: {
|
|
5098
5093
|
columns: {},
|
|
@@ -5123,7 +5118,7 @@ const Or = {
|
|
|
5123
5118
|
function c($) {
|
|
5124
5119
|
return s.value[$] ?? "";
|
|
5125
5120
|
}
|
|
5126
|
-
|
|
5121
|
+
Ke(() => {
|
|
5127
5122
|
window.addEventListener("resize", i), i();
|
|
5128
5123
|
}), il(() => window.removeEventListener("resize", i));
|
|
5129
5124
|
const d = A({
|
|
@@ -5162,8 +5157,8 @@ const Or = {
|
|
|
5162
5157
|
};
|
|
5163
5158
|
}
|
|
5164
5159
|
}), x = R(((te = t.request.filters.find(($) => $.filterMethod === "andcontains" || $.filterOperation === le.AND_CONTAINS)) == null ? void 0 : te.filterValue) ?? ""), ee = A(() => t.columns.filter(($) => ($.type === "string" || $.type === "slot" && $.slotType === "string") && $.searchable));
|
|
5165
|
-
return ($, f) => (p(), w("div",
|
|
5166
|
-
ee.value.length > 0 ? (p(),
|
|
5160
|
+
return ($, f) => (p(), w("div", bi, [
|
|
5161
|
+
ee.value.length > 0 ? (p(), Z(ai, {
|
|
5167
5162
|
key: 0,
|
|
5168
5163
|
"search-value": x.value,
|
|
5169
5164
|
"onUpdate:searchValue": f[0] || (f[0] = (h) => x.value = h),
|
|
@@ -5172,13 +5167,13 @@ const Or = {
|
|
|
5172
5167
|
columns: ee.value
|
|
5173
5168
|
}, {
|
|
5174
5169
|
search: H((h) => [
|
|
5175
|
-
|
|
5170
|
+
B($.$slots, "search", me(he(h)))
|
|
5176
5171
|
]),
|
|
5177
5172
|
_: 3
|
|
5178
5173
|
}, 8, ["search-value", "request", "columns"])) : z("", !0),
|
|
5179
5174
|
N(Ee, { name: "fade" }, {
|
|
5180
5175
|
default: H(() => [
|
|
5181
|
-
X(v("div",
|
|
5176
|
+
X(v("div", yi, [
|
|
5182
5177
|
N(sl, { class: "after:!cl-h-20 after:!cl-w-20 cl-h-20 cl-w-20" })
|
|
5183
5178
|
], 512), [
|
|
5184
5179
|
[ae, $.loading]
|
|
@@ -5186,7 +5181,7 @@ const Or = {
|
|
|
5186
5181
|
]),
|
|
5187
5182
|
_: 1
|
|
5188
5183
|
}),
|
|
5189
|
-
N(
|
|
5184
|
+
N(Ea, {
|
|
5190
5185
|
"edit-mode": D.value,
|
|
5191
5186
|
"onUpdate:editMode": f[3] || (f[3] = (h) => D.value = h),
|
|
5192
5187
|
"filter-panel-open": O.value,
|
|
@@ -5198,10 +5193,10 @@ const Or = {
|
|
|
5198
5193
|
onClearFilters: b
|
|
5199
5194
|
}, {
|
|
5200
5195
|
"additional-grid-actions": H((h) => [
|
|
5201
|
-
|
|
5196
|
+
B($.$slots, "additional-grid-actions", me(he(h)))
|
|
5202
5197
|
]),
|
|
5203
5198
|
"view-manager": H(() => [
|
|
5204
|
-
N(
|
|
5199
|
+
N(gi, {
|
|
5205
5200
|
columns: a.value,
|
|
5206
5201
|
"onUpdate:columns": f[2] || (f[2] = (h) => a.value = h),
|
|
5207
5202
|
loading: $.loading
|
|
@@ -5209,20 +5204,20 @@ const Or = {
|
|
|
5209
5204
|
]),
|
|
5210
5205
|
_: 3
|
|
5211
5206
|
}, 8, ["edit-mode", "filter-panel-open", "columns", "options", "request", "loading"]),
|
|
5212
|
-
v("div",
|
|
5207
|
+
v("div", wi, [
|
|
5213
5208
|
v("table", {
|
|
5214
|
-
class:
|
|
5209
|
+
class: U(["cl-delay-75 cl-min-h-[276px] cl-overflow-x-auto cl-overscroll-x-none cl-text-left cl-transition-opacity cl-w-full", {
|
|
5215
5210
|
"cl-opacity-40 cl-pointer-events-none": $.loading
|
|
5216
5211
|
}])
|
|
5217
5212
|
}, [
|
|
5218
|
-
v("colgroup",
|
|
5213
|
+
v("colgroup", ki, [
|
|
5219
5214
|
(p(!0), w(J, null, ue(u.value, (h, m) => (p(), w("col", {
|
|
5220
5215
|
key: m,
|
|
5221
5216
|
style: $t(c(h.name)),
|
|
5222
5217
|
span: 1
|
|
5223
5218
|
}, null, 4))), 128))
|
|
5224
5219
|
]),
|
|
5225
|
-
N(
|
|
5220
|
+
N(ei, {
|
|
5226
5221
|
request: V.value,
|
|
5227
5222
|
"onUpdate:request": f[5] || (f[5] = (h) => V.value = h),
|
|
5228
5223
|
"filter-panel-open": O.value,
|
|
@@ -5233,7 +5228,7 @@ const Or = {
|
|
|
5233
5228
|
"time-zone": $.timeZone,
|
|
5234
5229
|
"header-display-timezone": n.value
|
|
5235
5230
|
}, null, 8, ["request", "filter-panel-open", "columns", "options", "loading", "time-zone", "header-display-timezone"]),
|
|
5236
|
-
N(
|
|
5231
|
+
N(xa, {
|
|
5237
5232
|
columns: u.value,
|
|
5238
5233
|
request: d.value,
|
|
5239
5234
|
data: F.value,
|
|
@@ -5250,13 +5245,13 @@ const Or = {
|
|
|
5250
5245
|
ue($.$slots, (h, m) => ({
|
|
5251
5246
|
name: m,
|
|
5252
5247
|
fn: H((q) => [
|
|
5253
|
-
|
|
5248
|
+
B($.$slots, m, me(he(q)))
|
|
5254
5249
|
])
|
|
5255
5250
|
}))
|
|
5256
5251
|
]), 1032, ["columns", "request", "data", "time-zone", "loading", "search-value", "options", "edit-mode"])
|
|
5257
5252
|
], 2)
|
|
5258
5253
|
]),
|
|
5259
|
-
N(
|
|
5254
|
+
N(Cn, {
|
|
5260
5255
|
request: d.value,
|
|
5261
5256
|
"onUpdate:request": f[10] || (f[10] = (h) => d.value = h),
|
|
5262
5257
|
loading: $.loading,
|
|
@@ -5264,7 +5259,7 @@ const Or = {
|
|
|
5264
5259
|
}, null, 8, ["request", "loading", "data"])
|
|
5265
5260
|
]));
|
|
5266
5261
|
}
|
|
5267
|
-
}),
|
|
5262
|
+
}), Si = { class: "cl-absolute cl-bg-secondary-default cl-flex cl-h-20 cl-items-center cl-justify-between cl-left-0 cl-top-0 cl-w-full cl-z-40" }, Ti = /* @__PURE__ */ _({
|
|
5268
5263
|
__name: "cl-ui-header",
|
|
5269
5264
|
props: {
|
|
5270
5265
|
isOpen: { type: Boolean }
|
|
@@ -5274,26 +5269,26 @@ const Or = {
|
|
|
5274
5269
|
const t = o, l = e, n = R();
|
|
5275
5270
|
return wl(n, () => {
|
|
5276
5271
|
(t.isOpen ?? !1) && l("open-click");
|
|
5277
|
-
}), (r, a) => (p(), w("header",
|
|
5278
|
-
|
|
5272
|
+
}), (r, a) => (p(), w("header", Si, [
|
|
5273
|
+
B(r.$slots, "logo"),
|
|
5279
5274
|
v("div", {
|
|
5280
5275
|
ref_key: "headerMenuElement",
|
|
5281
5276
|
ref: n,
|
|
5282
5277
|
class: "cl-cursor-pointer cl-flex cl-flex-nowrap",
|
|
5283
5278
|
onClick: a[0] || (a[0] = (u) => r.$emit("open-click"))
|
|
5284
5279
|
}, [
|
|
5285
|
-
|
|
5286
|
-
|
|
5280
|
+
B(r.$slots, "menu"),
|
|
5281
|
+
B(r.$slots, "icon")
|
|
5287
5282
|
], 512)
|
|
5288
5283
|
]));
|
|
5289
5284
|
}
|
|
5290
|
-
}),
|
|
5285
|
+
}), Ci = { class: "cl-bg-transparent cl-flex cl-items-center cl-select-none hover:cl-bg-opacity-10 hover:cl-bg-white md:cl-min-w-[320px]" }, Oi = ["src"], Ei = {
|
|
5291
5286
|
key: 0,
|
|
5292
5287
|
class: "cl-text-ellipsis cl-whitespace-nowrap"
|
|
5293
|
-
},
|
|
5288
|
+
}, Fi = {
|
|
5294
5289
|
key: 1,
|
|
5295
5290
|
class: "cl-text-ellipsis cl-text-xs cl-whitespace-nowrap"
|
|
5296
|
-
},
|
|
5291
|
+
}, Di = { class: "cl-content-center cl-flex cl-h-20 cl-items-center cl-justify-center cl-justify-items-center cl-transition-all cl-w-10 md:cl-ml-4 md:cl-w-20" }, Ni = { class: "cl-absolute cl-bg-white cl-right-0 cl-shadow-2xl cl-top-20 cl-w-full cl-z-20" }, Ai = /* @__PURE__ */ _({
|
|
5297
5292
|
__name: "cl-ui-header-menu",
|
|
5298
5293
|
props: {
|
|
5299
5294
|
username: { default: "" },
|
|
@@ -5304,17 +5299,17 @@ const Or = {
|
|
|
5304
5299
|
},
|
|
5305
5300
|
setup(o) {
|
|
5306
5301
|
return (e, t) => (p(), w("div", {
|
|
5307
|
-
class:
|
|
5302
|
+
class: U(["md:cl-relative", {
|
|
5308
5303
|
"cl-bg-primary-default": e.colour === "default",
|
|
5309
5304
|
"cl-bg-blue-light": e.colour === "secondary"
|
|
5310
5305
|
}])
|
|
5311
5306
|
}, [
|
|
5312
|
-
v("div",
|
|
5307
|
+
v("div", Ci, [
|
|
5313
5308
|
e.image ? (p(), w("img", {
|
|
5314
5309
|
key: 0,
|
|
5315
5310
|
src: e.image,
|
|
5316
5311
|
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"
|
|
5317
|
-
}, null, 8,
|
|
5312
|
+
}, null, 8, Oi)) : (p(), Z(g(K), {
|
|
5318
5313
|
key: 1,
|
|
5319
5314
|
class: "cl-hidden cl-m-4 cl-text-white md:cl-block",
|
|
5320
5315
|
icon: "ph:user-circle",
|
|
@@ -5322,17 +5317,17 @@ const Or = {
|
|
|
5322
5317
|
height: "48"
|
|
5323
5318
|
})),
|
|
5324
5319
|
v("div", {
|
|
5325
|
-
class:
|
|
5320
|
+
class: U(["cl-grow cl-hidden cl-my-4 md:cl-block", {
|
|
5326
5321
|
"cl-text-secondary-default": e.colour === "default",
|
|
5327
5322
|
"cl-text-white": e.colour === "secondary"
|
|
5328
5323
|
}])
|
|
5329
5324
|
}, [
|
|
5330
|
-
e.username ? (p(), w("div",
|
|
5331
|
-
e.group ? (p(), w("div",
|
|
5325
|
+
e.username ? (p(), w("div", Ei, I(e.username), 1)) : z("", !0),
|
|
5326
|
+
e.group ? (p(), w("div", Fi, I(e.group), 1)) : z("", !0)
|
|
5332
5327
|
], 2),
|
|
5333
|
-
v("div",
|
|
5334
|
-
N(g(
|
|
5335
|
-
class:
|
|
5328
|
+
v("div", Di, [
|
|
5329
|
+
N(g(K), {
|
|
5330
|
+
class: U(["cl-transform-gpu cl-transition-transform", {
|
|
5336
5331
|
"cl-rotate-180": e.isOpen,
|
|
5337
5332
|
"cl-text-secondary-default": e.colour === "default",
|
|
5338
5333
|
"cl-text-white": e.colour === "secondary"
|
|
@@ -5343,8 +5338,8 @@ const Or = {
|
|
|
5343
5338
|
]),
|
|
5344
5339
|
N(Ee, { name: "fade" }, {
|
|
5345
5340
|
default: H(() => [
|
|
5346
|
-
X(v("div",
|
|
5347
|
-
|
|
5341
|
+
X(v("div", Ni, [
|
|
5342
|
+
B(e.$slots, "default")
|
|
5348
5343
|
], 512), [
|
|
5349
5344
|
[ae, e.isOpen]
|
|
5350
5345
|
])
|
|
@@ -5353,10 +5348,10 @@ const Or = {
|
|
|
5353
5348
|
})
|
|
5354
5349
|
], 2));
|
|
5355
5350
|
}
|
|
5356
|
-
}),
|
|
5351
|
+
}), Vi = [
|
|
5357
5352
|
"default",
|
|
5358
5353
|
"secondary"
|
|
5359
|
-
],
|
|
5354
|
+
], qi = [
|
|
5360
5355
|
"button",
|
|
5361
5356
|
"checkbox",
|
|
5362
5357
|
"color",
|
|
@@ -5378,24 +5373,24 @@ const Or = {
|
|
|
5378
5373
|
function gl(o) {
|
|
5379
5374
|
return /[a-z]{2}-[A-Z]{2}/gm.test(o.localeCode);
|
|
5380
5375
|
}
|
|
5381
|
-
function
|
|
5376
|
+
function Ii(o) {
|
|
5382
5377
|
let e = Array.isArray(o);
|
|
5383
5378
|
if (e) {
|
|
5384
5379
|
for (const t of o)
|
|
5385
|
-
if (!
|
|
5380
|
+
if (!Ri(t)) {
|
|
5386
5381
|
e = !1;
|
|
5387
5382
|
break;
|
|
5388
5383
|
}
|
|
5389
5384
|
}
|
|
5390
5385
|
return e;
|
|
5391
5386
|
}
|
|
5392
|
-
function
|
|
5387
|
+
function Ri(o) {
|
|
5393
5388
|
return typeof o.name == "string" && typeof o.nativeName == "string" && typeof o.localeCode == "string";
|
|
5394
5389
|
}
|
|
5395
|
-
const
|
|
5390
|
+
const Mi = {
|
|
5396
5391
|
key: 0,
|
|
5397
5392
|
class: "cl-flex cl-relative cl-select-none cl-w-auto cl-z-30"
|
|
5398
|
-
},
|
|
5393
|
+
}, Li = { class: "cl-absolute cl-bg-white cl-border cl-border-grey-0 cl-overflow-hidden cl-right-0 cl-rounded cl-shadow-xl cl-text-black cl-top-6 cl-z-30" }, ji = ["data-localename", "data-localecode", "onClick"], Pi = { class: "cl-text-xs" }, zi = /* @__PURE__ */ _({
|
|
5399
5394
|
__name: "cl-ui-language-switcher",
|
|
5400
5395
|
props: {
|
|
5401
5396
|
supportedLanguages: {},
|
|
@@ -5414,22 +5409,22 @@ const Ri = {
|
|
|
5414
5409
|
}
|
|
5415
5410
|
return ne(() => t.disabled, (c) => {
|
|
5416
5411
|
c && (r.value = !1);
|
|
5417
|
-
}), (c, d) => a.value !== null && g(gl)(a.value) ? (p(), w("div",
|
|
5412
|
+
}), (c, d) => a.value !== null && g(gl)(a.value) ? (p(), w("div", Mi, [
|
|
5418
5413
|
v("div", {
|
|
5419
|
-
class:
|
|
5414
|
+
class: U(["cl-flex cl-items-center", {
|
|
5420
5415
|
"cl-cursor-pointer": !c.disabled
|
|
5421
5416
|
}]),
|
|
5422
5417
|
onClick: i
|
|
5423
5418
|
}, [
|
|
5424
5419
|
v("span", {
|
|
5425
|
-
class:
|
|
5420
|
+
class: U(["cl-font-semibold cl-text-xs", {
|
|
5426
5421
|
"cl-opacity-50": c.disabled
|
|
5427
5422
|
}])
|
|
5428
5423
|
}, I(a.value.nativeName), 3)
|
|
5429
5424
|
], 2),
|
|
5430
5425
|
N(Ee, { name: "fade" }, {
|
|
5431
5426
|
default: H(() => [
|
|
5432
|
-
X(v("div",
|
|
5427
|
+
X(v("div", Li, [
|
|
5433
5428
|
(p(!0), w(J, null, ue(u.value, (b, y) => (p(), w("div", {
|
|
5434
5429
|
key: y,
|
|
5435
5430
|
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",
|
|
@@ -5439,8 +5434,8 @@ const Ri = {
|
|
|
5439
5434
|
n.value = b.localeCode, i(), l("language-select", b.localeCode);
|
|
5440
5435
|
}
|
|
5441
5436
|
}, [
|
|
5442
|
-
v("span",
|
|
5443
|
-
], 8,
|
|
5437
|
+
v("span", Pi, I(b.nativeName), 1)
|
|
5438
|
+
], 8, ji))), 128))
|
|
5444
5439
|
], 512), [
|
|
5445
5440
|
[ae, r.value]
|
|
5446
5441
|
])
|
|
@@ -5449,13 +5444,13 @@ const Ri = {
|
|
|
5449
5444
|
})
|
|
5450
5445
|
])) : z("", !0);
|
|
5451
5446
|
}
|
|
5452
|
-
}),
|
|
5447
|
+
}), Bi = { class: "cl-relative" }, Ui = { class: "cl-h-full cl-z-0 xl:cl-h-screen" }, xi = { class: "cl-absolute cl-bg-secondary-default cl-gap-y-1 cl-grid cl-grid-cols-1 cl-left-0 cl-opacity-95 cl-p-6 cl-top-0 cl-w-full cl-z-10 lg:cl-gap-x-1 lg:cl-grid-cols-10 lg:cl-p-10" }, Hi = { class: "cl-col-span-10 lg:cl-col-span-3" }, Gi = {
|
|
5453
5448
|
key: 0,
|
|
5454
5449
|
class: "cl-col-span-10 cl-flex cl-items-start cl-justify-end cl-text-white lg:cl-col-span-1 lg:cl-p-2"
|
|
5455
|
-
},
|
|
5450
|
+
}, Wi = { class: "cl-col-span-3" }, _i = { class: "cl-relative cl-text-grey-4" }, Ki = { class: "cl-w-full" }, Zi = /* @__PURE__ */ v("span", null, null, -1), Qi = {
|
|
5456
5451
|
key: 0,
|
|
5457
5452
|
class: "cl-bg-primary-lighter cl-mt-1 cl-rounded-md cl-text-center cl-text-secondary-default cl-text-xs cl-w-full"
|
|
5458
|
-
},
|
|
5453
|
+
}, Yi = { class: "cl-col-span-3" }, Ji = { class: "cl-relative cl-text-grey-4" }, Xi = /* @__PURE__ */ v("span", null, null, -1), es = { class: "cl-col-span-10 cl-emphasis-danger cl-mt-10 cl-p-3 cl-rounded-md cl-text-sm md:cl-mt-3" }, ls = /* @__PURE__ */ _({
|
|
5459
5454
|
__name: "cl-ui-login",
|
|
5460
5455
|
props: {
|
|
5461
5456
|
errors: { default: () => [] },
|
|
@@ -5477,26 +5472,26 @@ const Ri = {
|
|
|
5477
5472
|
return ne([
|
|
5478
5473
|
n,
|
|
5479
5474
|
r
|
|
5480
|
-
], i), (c, d) => (p(), w("div",
|
|
5481
|
-
v("div",
|
|
5482
|
-
|
|
5475
|
+
], i), (c, d) => (p(), w("div", Bi, [
|
|
5476
|
+
v("div", Ui, [
|
|
5477
|
+
B(c.$slots, "background")
|
|
5483
5478
|
]),
|
|
5484
|
-
v("form",
|
|
5485
|
-
v("div",
|
|
5486
|
-
|
|
5479
|
+
v("form", xi, [
|
|
5480
|
+
v("div", Hi, [
|
|
5481
|
+
B(c.$slots, "logo")
|
|
5487
5482
|
]),
|
|
5488
|
-
c.$slots["language-switcher"] ? (p(), w("div",
|
|
5489
|
-
|
|
5483
|
+
c.$slots["language-switcher"] ? (p(), w("div", Gi, [
|
|
5484
|
+
B(c.$slots, "language-switcher")
|
|
5490
5485
|
])) : z("", !0),
|
|
5491
5486
|
v("div", {
|
|
5492
|
-
class:
|
|
5487
|
+
class: U(["cl-gap-y-4 cl-grid cl-grid-cols-1 lg:cl-gap-x-2 lg:cl-grid-cols-8", {
|
|
5493
5488
|
"cl-col-span-7": !c.$slots["language-switcher"],
|
|
5494
5489
|
"cl-col-span-6": c.$slots["language-switcher"]
|
|
5495
5490
|
}])
|
|
5496
5491
|
}, [
|
|
5497
|
-
v("div",
|
|
5498
|
-
v("div",
|
|
5499
|
-
N(g(
|
|
5492
|
+
v("div", Wi, [
|
|
5493
|
+
v("div", _i, [
|
|
5494
|
+
N(g(K), {
|
|
5500
5495
|
class: "cl-absolute cl-left-3 cl-top-3 cl-z-10",
|
|
5501
5496
|
icon: "ph:user",
|
|
5502
5497
|
size: 18
|
|
@@ -5507,7 +5502,7 @@ const Ri = {
|
|
|
5507
5502
|
modelValue: n.value,
|
|
5508
5503
|
"onUpdate:modelValue": d[0] || (d[0] = (b) => n.value = b),
|
|
5509
5504
|
modelModifiers: { trim: !0 },
|
|
5510
|
-
class:
|
|
5505
|
+
class: U(["cl-border-2 cl-outline-none cl-p-2 cl-pl-9 cl-text-grey-5 cl-text-sm", {
|
|
5511
5506
|
"!cl-border-primary-default hover:!cl-border-grey-3 focus-within:!cl-border-link-light": n.value !== "" && u.value,
|
|
5512
5507
|
"!cl-border-danger-dark hover:!cl-border-grey-3 focus-within:!cl-border-link-light": n.value !== "" && !u.value
|
|
5513
5508
|
}]),
|
|
@@ -5521,18 +5516,18 @@ const Ri = {
|
|
|
5521
5516
|
]),
|
|
5522
5517
|
_: 1
|
|
5523
5518
|
}, 8, ["modelValue", "class", "errors", "placeholder"]),
|
|
5524
|
-
u.value ? (p(), w("div",
|
|
5519
|
+
u.value ? (p(), w("div", Qi, I(g(l)("login.validEmail")), 1)) : z("", !0)
|
|
5525
5520
|
])
|
|
5526
5521
|
])
|
|
5527
5522
|
]),
|
|
5528
|
-
v("div",
|
|
5529
|
-
v("div",
|
|
5530
|
-
N(g(
|
|
5523
|
+
v("div", Yi, [
|
|
5524
|
+
v("div", Ji, [
|
|
5525
|
+
N(g(K), {
|
|
5531
5526
|
class: "cl-absolute cl-left-3 cl-top-3 cl-z-10",
|
|
5532
5527
|
icon: "ph:lock",
|
|
5533
5528
|
size: 18
|
|
5534
5529
|
}),
|
|
5535
|
-
X(N(g(
|
|
5530
|
+
X(N(g(K), {
|
|
5536
5531
|
class: "cl-absolute cl-cursor-pointer cl-right-4 cl-top-3 cl-z-10",
|
|
5537
5532
|
icon: "ph:eye",
|
|
5538
5533
|
size: 18,
|
|
@@ -5540,7 +5535,7 @@ const Ri = {
|
|
|
5540
5535
|
}, null, 512), [
|
|
5541
5536
|
[ae, a.value === "password"]
|
|
5542
5537
|
]),
|
|
5543
|
-
X(N(g(
|
|
5538
|
+
X(N(g(K), {
|
|
5544
5539
|
class: "cl-absolute cl-cursor-pointer cl-right-4 cl-top-3 cl-z-10",
|
|
5545
5540
|
icon: "ph:eye-slash",
|
|
5546
5541
|
size: 18,
|
|
@@ -5552,7 +5547,7 @@ const Ri = {
|
|
|
5552
5547
|
id: "cl-ui-login-passwordinput",
|
|
5553
5548
|
modelValue: r.value,
|
|
5554
5549
|
"onUpdate:modelValue": d[3] || (d[3] = (b) => r.value = b),
|
|
5555
|
-
class:
|
|
5550
|
+
class: U(["cl-border-2 cl-outline-none cl-p-2 cl-px-9 cl-text-grey-5 cl-text-sm", {
|
|
5556
5551
|
"!cl-border-primary-default hover:!cl-border-grey-3 focus-within:!cl-border-link-light": r.value
|
|
5557
5552
|
}]),
|
|
5558
5553
|
type: a.value,
|
|
@@ -5560,14 +5555,14 @@ const Ri = {
|
|
|
5560
5555
|
autocomplete: "current-password"
|
|
5561
5556
|
}, {
|
|
5562
5557
|
default: H(() => [
|
|
5563
|
-
|
|
5558
|
+
Xi
|
|
5564
5559
|
]),
|
|
5565
5560
|
_: 1
|
|
5566
5561
|
}, 8, ["modelValue", "class", "type", "placeholder"])
|
|
5567
5562
|
])
|
|
5568
5563
|
]),
|
|
5569
5564
|
v("div", {
|
|
5570
|
-
class:
|
|
5565
|
+
class: U(["cl-col-span-2", {
|
|
5571
5566
|
"cl-mt-1.5 cl-mb-1 md:cl-mt-0.5 md:cl-mb-7 lg:cl-mb-0": c.loading
|
|
5572
5567
|
}])
|
|
5573
5568
|
}, [
|
|
@@ -5590,7 +5585,7 @@ const Ri = {
|
|
|
5590
5585
|
default: H(() => {
|
|
5591
5586
|
var b;
|
|
5592
5587
|
return [
|
|
5593
|
-
X(v("span",
|
|
5588
|
+
X(v("span", es, [
|
|
5594
5589
|
(p(!0), w(J, null, ue(c.errors, (y, F) => (p(), w("div", {
|
|
5595
5590
|
id: "cl-ui-login-errors",
|
|
5596
5591
|
key: F,
|
|
@@ -5606,19 +5601,19 @@ const Ri = {
|
|
|
5606
5601
|
])
|
|
5607
5602
|
]));
|
|
5608
5603
|
}
|
|
5609
|
-
}),
|
|
5604
|
+
}), ts = [
|
|
5610
5605
|
"x-small",
|
|
5611
5606
|
"small",
|
|
5612
5607
|
"medium",
|
|
5613
5608
|
"large"
|
|
5614
|
-
],
|
|
5609
|
+
], os = [
|
|
5615
5610
|
"primary",
|
|
5616
5611
|
"secondary",
|
|
5617
5612
|
"white"
|
|
5618
|
-
],
|
|
5613
|
+
], as = {
|
|
5619
5614
|
key: 0,
|
|
5620
5615
|
class: "cl-h-0 cl-w-0"
|
|
5621
|
-
},
|
|
5616
|
+
}, ns = { class: "cl-relative cl-w-full" }, rs = /* @__PURE__ */ _({
|
|
5622
5617
|
__name: "cl-ui-navigation",
|
|
5623
5618
|
props: {
|
|
5624
5619
|
colour: { default: "default" }
|
|
@@ -5673,36 +5668,36 @@ const Ri = {
|
|
|
5673
5668
|
}, [
|
|
5674
5669
|
v("div", {
|
|
5675
5670
|
id: "group-container",
|
|
5676
|
-
class:
|
|
5671
|
+
class: U(["cl-h-full cl-overflow-y-auto cl-overscroll-y-none cl-pb-20 cl-w-20 cl-z-40 xl:cl-pb-0", {
|
|
5677
5672
|
"cl-bg-primary-default": O.colour === "default",
|
|
5678
5673
|
"cl-bg-blue-dark": O.colour === "secondary"
|
|
5679
5674
|
}])
|
|
5680
5675
|
}, [
|
|
5681
|
-
|
|
5676
|
+
B(O.$slots, "icon", ce({ navcolour: O.colour }, { groupIsOpen: a, toggleOpen: u }), void 0, !0)
|
|
5682
5677
|
], 2),
|
|
5683
|
-
c.value ? (p(), w("div",
|
|
5678
|
+
c.value ? (p(), w("div", as)) : z("", !0),
|
|
5684
5679
|
N(Ee, { name: "slide-right" }, {
|
|
5685
5680
|
default: H(() => [
|
|
5686
5681
|
X(v("div", {
|
|
5687
|
-
class:
|
|
5682
|
+
class: U(["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", {
|
|
5688
5683
|
"cl-relative": i.value,
|
|
5689
5684
|
"cl-absolute cl-left-20 cl-shadow-lg": !i.value
|
|
5690
5685
|
}])
|
|
5691
5686
|
}, [
|
|
5692
|
-
v("div",
|
|
5687
|
+
v("div", ns, [
|
|
5693
5688
|
v("span", {
|
|
5694
5689
|
class: "cl-absolute cl-cursor-pointer cl-hidden cl-right-0 cl-top-1.5 lg:cl-block",
|
|
5695
5690
|
onClick: E[0] || (E[0] = () => b())
|
|
5696
5691
|
}, [
|
|
5697
|
-
i.value ? (p(),
|
|
5692
|
+
i.value ? (p(), Z(g(K), {
|
|
5698
5693
|
key: 1,
|
|
5699
5694
|
icon: "ph:push-pin-slash"
|
|
5700
|
-
})) : (p(),
|
|
5695
|
+
})) : (p(), Z(g(K), {
|
|
5701
5696
|
key: 0,
|
|
5702
5697
|
icon: "ph:push-pin"
|
|
5703
5698
|
}))
|
|
5704
5699
|
]),
|
|
5705
|
-
|
|
5700
|
+
B(O.$slots, "default", me(he({ groupIsOpen: a })), void 0, !0)
|
|
5706
5701
|
])
|
|
5707
5702
|
], 2), [
|
|
5708
5703
|
[ae, r.value]
|
|
@@ -5712,7 +5707,7 @@ const Ri = {
|
|
|
5712
5707
|
})
|
|
5713
5708
|
], 512));
|
|
5714
5709
|
}
|
|
5715
|
-
}),
|
|
5710
|
+
}), is = /* @__PURE__ */ Se(rs, [["__scopeId", "data-v-db3283cd"]]), ss = /* @__PURE__ */ _({
|
|
5716
5711
|
__name: "cl-ui-navigation-icon",
|
|
5717
5712
|
props: {
|
|
5718
5713
|
iconValue: {},
|
|
@@ -5721,63 +5716,63 @@ const Ri = {
|
|
|
5721
5716
|
},
|
|
5722
5717
|
setup(o) {
|
|
5723
5718
|
return (e, t) => (p(), w("div", {
|
|
5724
|
-
class:
|
|
5719
|
+
class: U(["cl-cursor-pointer cl-flex cl-h-20 cl-items-center cl-justify-center cl-transition-colors cl-w-20", {
|
|
5725
5720
|
"cl-text-secondary-default hover:cl-bg-primary-dark hover:cl-text-white": e.colour === "default",
|
|
5726
5721
|
"cl-bg-primary-darker cl-text-white": e.open && e.colour === "default",
|
|
5727
5722
|
"cl-text-white hover:cl-bg-blue-light": e.colour === "secondary",
|
|
5728
5723
|
"cl-bg-blue-light": e.open && e.colour === "secondary"
|
|
5729
5724
|
}])
|
|
5730
5725
|
}, [
|
|
5731
|
-
N(g(
|
|
5726
|
+
N(g(K), {
|
|
5732
5727
|
class: "cl-block",
|
|
5733
5728
|
icon: e.iconValue,
|
|
5734
5729
|
width: "24"
|
|
5735
5730
|
}, null, 8, ["icon"])
|
|
5736
5731
|
], 2));
|
|
5737
5732
|
}
|
|
5738
|
-
}),
|
|
5733
|
+
}), cs = {
|
|
5739
5734
|
key: 0,
|
|
5740
5735
|
class: "cl-font-bold cl-leading-8 cl-mb-8 cl-pr-8 cl-select-none cl-text-lg cl-text-secondary-default"
|
|
5741
|
-
},
|
|
5736
|
+
}, us = { class: "cl-flex cl-flex-wrap cl-space-y-8 cl-text-sm cl-w-full" }, ds = /* @__PURE__ */ _({
|
|
5742
5737
|
__name: "cl-ui-navigation-group",
|
|
5743
5738
|
props: {
|
|
5744
5739
|
open: { type: Boolean }
|
|
5745
5740
|
},
|
|
5746
5741
|
setup(o) {
|
|
5747
5742
|
return (e, t) => (p(), w("div", {
|
|
5748
|
-
class:
|
|
5743
|
+
class: U({
|
|
5749
5744
|
"cl-hidden": !e.open
|
|
5750
5745
|
})
|
|
5751
5746
|
}, [
|
|
5752
|
-
e.$slots.title ? (p(), w("div",
|
|
5753
|
-
|
|
5747
|
+
e.$slots.title ? (p(), w("div", cs, [
|
|
5748
|
+
B(e.$slots, "title")
|
|
5754
5749
|
])) : z("", !0),
|
|
5755
|
-
v("div",
|
|
5756
|
-
|
|
5750
|
+
v("div", us, [
|
|
5751
|
+
B(e.$slots, "default")
|
|
5757
5752
|
])
|
|
5758
5753
|
], 2));
|
|
5759
5754
|
}
|
|
5760
|
-
}),
|
|
5755
|
+
}), fs = {}, ps = { class: "cl-w-full" }, ms = {
|
|
5761
5756
|
key: 0,
|
|
5762
5757
|
class: "cl-font-bold cl-mb-4 cl-select-none"
|
|
5763
|
-
},
|
|
5764
|
-
function
|
|
5765
|
-
return p(), w("div",
|
|
5766
|
-
o.$slots.title ? (p(), w("div",
|
|
5767
|
-
|
|
5758
|
+
}, vs = { class: "cl-flex cl-flex-wrap cl-space-y-2" };
|
|
5759
|
+
function hs(o, e) {
|
|
5760
|
+
return p(), w("div", ps, [
|
|
5761
|
+
o.$slots.title ? (p(), w("div", ms, [
|
|
5762
|
+
B(o.$slots, "title")
|
|
5768
5763
|
])) : z("", !0),
|
|
5769
|
-
v("span",
|
|
5770
|
-
|
|
5764
|
+
v("span", vs, [
|
|
5765
|
+
B(o.$slots, "default")
|
|
5771
5766
|
])
|
|
5772
5767
|
]);
|
|
5773
5768
|
}
|
|
5774
|
-
const
|
|
5775
|
-
function
|
|
5776
|
-
return p(), w("div",
|
|
5777
|
-
|
|
5769
|
+
const gs = /* @__PURE__ */ Se(fs, [["render", hs]]), bs = {}, ys = { class: "cl-cursor-pointer cl-transition-colors cl-w-full hover:cl-text-primary-darker" };
|
|
5770
|
+
function ws(o, e) {
|
|
5771
|
+
return p(), w("div", ys, [
|
|
5772
|
+
B(o.$slots, "default")
|
|
5778
5773
|
]);
|
|
5779
5774
|
}
|
|
5780
|
-
const
|
|
5775
|
+
const ks = /* @__PURE__ */ Se(bs, [["render", ws]]), $s = /* @__PURE__ */ _({
|
|
5781
5776
|
__name: "cl-ui-tab",
|
|
5782
5777
|
props: {
|
|
5783
5778
|
colour: { default: "default" },
|
|
@@ -5819,17 +5814,17 @@ const ws = /* @__PURE__ */ Se(gs, [["render", ys]]), ks = /* @__PURE__ */ K({
|
|
|
5819
5814
|
function O(E) {
|
|
5820
5815
|
typeof E == "number" && D(E);
|
|
5821
5816
|
}
|
|
5822
|
-
return
|
|
5817
|
+
return Ke(() => {
|
|
5823
5818
|
b(), D(r.value[0].id);
|
|
5824
5819
|
}), il(() => window.removeEventListener("resize", d)), e({
|
|
5825
5820
|
setTab: O
|
|
5826
5821
|
}), (E, V) => (p(), w("div", {
|
|
5827
|
-
class:
|
|
5822
|
+
class: U(["cl-w-full", {
|
|
5828
5823
|
"cl-flex cl-flex-row cl-gap-4 xl:cl-gap-6 cl-h-full": c.value === !1
|
|
5829
5824
|
}])
|
|
5830
5825
|
}, [
|
|
5831
5826
|
v("div", {
|
|
5832
|
-
class:
|
|
5827
|
+
class: U(["cl-flex cl-flex-nowrap", [
|
|
5833
5828
|
c.value === !1 ? "cl-items-start" : "cl-items-center",
|
|
5834
5829
|
{
|
|
5835
5830
|
"cl-border-r cl-h-full cl-border-grey-1": c.value === !1
|
|
@@ -5841,7 +5836,7 @@ const ws = /* @__PURE__ */ Se(gs, [["render", ys]]), ks = /* @__PURE__ */ K({
|
|
|
5841
5836
|
class: "cl-bg-white cl-cursor-pointer cl-float-left cl-h-11 cl-w-4",
|
|
5842
5837
|
onClick: V[0] || (V[0] = (x) => y("left"))
|
|
5843
5838
|
}, [
|
|
5844
|
-
N(g(
|
|
5839
|
+
N(g(K), {
|
|
5845
5840
|
icon: "ph:caret-left",
|
|
5846
5841
|
class: "cl-mt-4 cl-text-secondary-default"
|
|
5847
5842
|
})
|
|
@@ -5849,34 +5844,34 @@ const ws = /* @__PURE__ */ Se(gs, [["render", ys]]), ks = /* @__PURE__ */ K({
|
|
|
5849
5844
|
v("div", {
|
|
5850
5845
|
ref_key: "headerContainer",
|
|
5851
5846
|
ref: u,
|
|
5852
|
-
class:
|
|
5847
|
+
class: U(["cl-border-b cl-border-grey-1 cl-flex cl-flex-nowrap cl-flex-row", {
|
|
5853
5848
|
"cl-mr-4": i.value && c.value,
|
|
5854
5849
|
"cl-mb-4 xl:cl-mb-6 cl-overflow-x-auto cl-overscroll-x-none": c.value,
|
|
5855
5850
|
"cl-flex-col cl-border-b-0": c.value === !1
|
|
5856
5851
|
}]),
|
|
5857
5852
|
onScrollPassive: d
|
|
5858
5853
|
}, [
|
|
5859
|
-
|
|
5854
|
+
B(E.$slots, "headings", me(he({ isTabOpen: F, toggleOpen: D, colour: E.colour, layout: E.layout })))
|
|
5860
5855
|
], 34),
|
|
5861
5856
|
i.value && c.value ? (p(), w("div", {
|
|
5862
5857
|
key: 1,
|
|
5863
5858
|
class: "cl-bg-white cl-cursor-pointer cl-float-right cl-h-11 cl-relative cl-w-4",
|
|
5864
5859
|
onClick: V[1] || (V[1] = (x) => y("right"))
|
|
5865
5860
|
}, [
|
|
5866
|
-
N(g(
|
|
5861
|
+
N(g(K), {
|
|
5867
5862
|
icon: "ph:caret-right",
|
|
5868
5863
|
class: "cl-mt-4 cl-text-secondary-default"
|
|
5869
5864
|
})
|
|
5870
5865
|
])) : z("", !0)
|
|
5871
5866
|
], 2),
|
|
5872
5867
|
X(v("div", null, [
|
|
5873
|
-
|
|
5868
|
+
B(E.$slots, "content", me(he({ isTabOpen: F })))
|
|
5874
5869
|
], 512), [
|
|
5875
5870
|
[ae, a.value]
|
|
5876
5871
|
])
|
|
5877
5872
|
], 2));
|
|
5878
5873
|
}
|
|
5879
|
-
}),
|
|
5874
|
+
}), Ss = ["inert"], Ts = /* @__PURE__ */ _({
|
|
5880
5875
|
__name: "cl-ui-tab-header",
|
|
5881
5876
|
props: {
|
|
5882
5877
|
open: { type: Boolean },
|
|
@@ -5888,7 +5883,7 @@ const ws = /* @__PURE__ */ Se(gs, [["render", ys]]), ks = /* @__PURE__ */ K({
|
|
|
5888
5883
|
setup(o) {
|
|
5889
5884
|
const e = o, t = A(() => e.layout === "horizontal");
|
|
5890
5885
|
return (l, n) => (p(), w("div", {
|
|
5891
|
-
class:
|
|
5886
|
+
class: U(["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", {
|
|
5892
5887
|
"cl-border-b-4": t.value,
|
|
5893
5888
|
"cl-border-b-0 cl-border-r-4": t.value === !1,
|
|
5894
5889
|
"cl-cursor-pointer hover:cl-border-opacity-100 cl-border-link-lighter cl-border-opacity-0 cl-text-secondary-light hover:cl-text-black": l.open === !1 && !l.disabled,
|
|
@@ -5901,38 +5896,38 @@ const ws = /* @__PURE__ */ Se(gs, [["render", ys]]), ks = /* @__PURE__ */ K({
|
|
|
5901
5896
|
}]),
|
|
5902
5897
|
inert: l.disabled
|
|
5903
5898
|
}, [
|
|
5904
|
-
|
|
5899
|
+
B(l.$slots, "default", {}, () => [
|
|
5905
5900
|
pe(I(l.title), 1)
|
|
5906
5901
|
])
|
|
5907
|
-
], 10,
|
|
5902
|
+
], 10, Ss));
|
|
5908
5903
|
}
|
|
5909
|
-
}),
|
|
5904
|
+
}), Cs = { key: 0 }, Os = { class: "cl-font-bold cl-mb-4" }, Es = /* @__PURE__ */ _({
|
|
5910
5905
|
__name: "cl-ui-tab-content",
|
|
5911
5906
|
props: {
|
|
5912
5907
|
open: { type: Boolean },
|
|
5913
5908
|
title: { default: "" }
|
|
5914
5909
|
},
|
|
5915
5910
|
setup(o) {
|
|
5916
|
-
return (e, t) => e.open ? (p(), w("div",
|
|
5917
|
-
|
|
5918
|
-
v("h4",
|
|
5911
|
+
return (e, t) => e.open ? (p(), w("div", Cs, [
|
|
5912
|
+
B(e.$slots, "header", {}, () => [
|
|
5913
|
+
v("h4", Os, I(e.title), 1)
|
|
5919
5914
|
]),
|
|
5920
|
-
|
|
5915
|
+
B(e.$slots, "default")
|
|
5921
5916
|
])) : z("", !0);
|
|
5922
5917
|
}
|
|
5923
|
-
}),
|
|
5918
|
+
}), Fs = [
|
|
5924
5919
|
"default",
|
|
5925
5920
|
"primary",
|
|
5926
5921
|
"secondary",
|
|
5927
5922
|
"danger",
|
|
5928
5923
|
"blue"
|
|
5929
|
-
],
|
|
5924
|
+
], Ds = [
|
|
5930
5925
|
"left",
|
|
5931
5926
|
"right"
|
|
5932
|
-
],
|
|
5927
|
+
], Ns = [
|
|
5933
5928
|
"horizontal",
|
|
5934
5929
|
"vertical"
|
|
5935
|
-
],
|
|
5930
|
+
], As = { class: "cl-block cl-h-full cl-w-full" }, Vs = ["multiple", "accept", "disabled"], qs = ["multiple", "accept", "disabled"], Is = /* @__PURE__ */ _({
|
|
5936
5931
|
inheritAttrs: !1,
|
|
5937
5932
|
__name: "cl-ui-file-uploader",
|
|
5938
5933
|
props: {
|
|
@@ -5963,7 +5958,7 @@ const ws = /* @__PURE__ */ Se(gs, [["render", ys]]), ks = /* @__PURE__ */ K({
|
|
|
5963
5958
|
"dragleave",
|
|
5964
5959
|
"drop"
|
|
5965
5960
|
], u = R(!1);
|
|
5966
|
-
|
|
5961
|
+
Ke(() => {
|
|
5967
5962
|
a.forEach((d) => {
|
|
5968
5963
|
document.body.addEventListener(d, (b) => b.preventDefault());
|
|
5969
5964
|
});
|
|
@@ -5976,7 +5971,7 @@ const ws = /* @__PURE__ */ Se(gs, [["render", ys]]), ks = /* @__PURE__ */ K({
|
|
|
5976
5971
|
function c() {
|
|
5977
5972
|
s.value && (s.value.value = ""), i.value && (i.value.value = "");
|
|
5978
5973
|
}
|
|
5979
|
-
return (d, b) => (p(), w("div",
|
|
5974
|
+
return (d, b) => (p(), w("div", As, [
|
|
5980
5975
|
d.uploaderType === "dragDrop" ? (p(), w("label", ce({ key: 0 }, d.$attrs, {
|
|
5981
5976
|
role: "button",
|
|
5982
5977
|
class: ["cl-bg-opacity-10 cl-border cl-border-dashed cl-duration-300 cl-ease-in-out cl-flex cl-justify-center cl-relative cl-rounded-lg", {
|
|
@@ -5998,14 +5993,14 @@ const ws = /* @__PURE__ */ Se(gs, [["render", ys]]), ks = /* @__PURE__ */ K({
|
|
|
5998
5993
|
accept: d.acceptedFileTypes,
|
|
5999
5994
|
disabled: d.disabled,
|
|
6000
5995
|
onInput: r
|
|
6001
|
-
}, null, 40,
|
|
6002
|
-
|
|
5996
|
+
}, null, 40, Vs),
|
|
5997
|
+
B(d.$slots, "default")
|
|
6003
5998
|
], 16)) : (p(), w("input", {
|
|
6004
5999
|
key: 1,
|
|
6005
6000
|
ref_key: "fileRefClassic",
|
|
6006
6001
|
ref: i,
|
|
6007
6002
|
type: "file",
|
|
6008
|
-
class:
|
|
6003
|
+
class: U({
|
|
6009
6004
|
"cl-cursor-default": d.disabled === !0,
|
|
6010
6005
|
"cl-cursor-pointer": d.disabled === !1
|
|
6011
6006
|
}),
|
|
@@ -6013,16 +6008,16 @@ const ws = /* @__PURE__ */ Se(gs, [["render", ys]]), ks = /* @__PURE__ */ K({
|
|
|
6013
6008
|
accept: d.acceptedFileTypes,
|
|
6014
6009
|
disabled: d.disabled,
|
|
6015
6010
|
onInput: r
|
|
6016
|
-
}, null, 42,
|
|
6011
|
+
}, null, 42, qs))
|
|
6017
6012
|
]));
|
|
6018
6013
|
}
|
|
6019
|
-
}),
|
|
6014
|
+
}), Rs = [
|
|
6020
6015
|
"text",
|
|
6021
6016
|
"email",
|
|
6022
6017
|
"tel",
|
|
6023
6018
|
"password",
|
|
6024
6019
|
"search"
|
|
6025
|
-
],
|
|
6020
|
+
], Ms = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
6026
6021
|
__proto__: null,
|
|
6027
6022
|
FilterOperation: le,
|
|
6028
6023
|
allQuickDates: nt,
|
|
@@ -6032,56 +6027,56 @@ const ws = /* @__PURE__ */ Se(gs, [["render", ys]]), ks = /* @__PURE__ */ K({
|
|
|
6032
6027
|
clUiAccordion: Rt,
|
|
6033
6028
|
clUiAccordionHeader: xt,
|
|
6034
6029
|
clUiAccordionItem: Pt,
|
|
6035
|
-
clUiApp:
|
|
6030
|
+
clUiApp: _t,
|
|
6036
6031
|
clUiButton: ye,
|
|
6037
6032
|
clUiCard: lo,
|
|
6038
|
-
clUiComboBox:
|
|
6039
|
-
clUiFileUploader:
|
|
6040
|
-
clUiFooter:
|
|
6041
|
-
clUiGrid:
|
|
6042
|
-
clUiHeader:
|
|
6043
|
-
clUiHeaderMenu:
|
|
6033
|
+
clUiComboBox: ca,
|
|
6034
|
+
clUiFileUploader: Is,
|
|
6035
|
+
clUiFooter: ya,
|
|
6036
|
+
clUiGrid: $i,
|
|
6037
|
+
clUiHeader: Ti,
|
|
6038
|
+
clUiHeaderMenu: Ai,
|
|
6044
6039
|
clUiInput: hl,
|
|
6045
6040
|
clUiInputNumber: ul,
|
|
6046
6041
|
clUiInputText: Ne,
|
|
6047
|
-
clUiLanguageSwitcher:
|
|
6042
|
+
clUiLanguageSwitcher: zi,
|
|
6048
6043
|
clUiLoadingSpinner: sl,
|
|
6049
|
-
clUiLogin:
|
|
6044
|
+
clUiLogin: ls,
|
|
6050
6045
|
clUiModal: Xl,
|
|
6051
|
-
clUiNavigation:
|
|
6052
|
-
clUiNavigationGroup:
|
|
6053
|
-
clUiNavigationIcon:
|
|
6054
|
-
clUiNavigationItem:
|
|
6055
|
-
clUiNavigationSection:
|
|
6046
|
+
clUiNavigation: is,
|
|
6047
|
+
clUiNavigationGroup: ds,
|
|
6048
|
+
clUiNavigationIcon: ss,
|
|
6049
|
+
clUiNavigationItem: ks,
|
|
6050
|
+
clUiNavigationSection: gs,
|
|
6056
6051
|
clUiNotification: Wl,
|
|
6057
|
-
clUiTab:
|
|
6058
|
-
clUiTabContent:
|
|
6059
|
-
clUiTabHeader:
|
|
6052
|
+
clUiTab: $s,
|
|
6053
|
+
clUiTabContent: Es,
|
|
6054
|
+
clUiTabHeader: Ts,
|
|
6060
6055
|
currentQuickDates: Ge,
|
|
6061
|
-
filterMethodTypes:
|
|
6056
|
+
filterMethodTypes: $r,
|
|
6062
6057
|
futureQuickDates: rl,
|
|
6063
|
-
gridColumnTypes:
|
|
6064
|
-
headerColour:
|
|
6065
|
-
inputTextTypes:
|
|
6066
|
-
inputTypes:
|
|
6067
|
-
isComboBoxCreateRequest:
|
|
6068
|
-
isComboBoxItem:
|
|
6069
|
-
isFilterRequest:
|
|
6070
|
-
isFilterResponse:
|
|
6058
|
+
gridColumnTypes: yr,
|
|
6059
|
+
headerColour: Vi,
|
|
6060
|
+
inputTextTypes: Rs,
|
|
6061
|
+
inputTypes: qi,
|
|
6062
|
+
isComboBoxCreateRequest: da,
|
|
6063
|
+
isComboBoxItem: ua,
|
|
6064
|
+
isFilterRequest: Cr,
|
|
6065
|
+
isFilterResponse: Or,
|
|
6071
6066
|
isGridColumn: ct,
|
|
6072
|
-
isGridColumnArray:
|
|
6073
|
-
isLanguageArray:
|
|
6067
|
+
isGridColumnArray: wr,
|
|
6068
|
+
isLanguageArray: Ii,
|
|
6074
6069
|
isLanguageLocaleFormat: gl,
|
|
6075
|
-
modalColours:
|
|
6076
|
-
modalSizes:
|
|
6070
|
+
modalColours: os,
|
|
6071
|
+
modalSizes: ts,
|
|
6077
6072
|
pastQuickDates: nl,
|
|
6078
|
-
quickDateNames:
|
|
6079
|
-
stringFormats:
|
|
6080
|
-
tabColours:
|
|
6081
|
-
tabLayout:
|
|
6082
|
-
tabScroll:
|
|
6083
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
6084
|
-
o.use(we), o.component("Icon",
|
|
6073
|
+
quickDateNames: In,
|
|
6074
|
+
stringFormats: kr,
|
|
6075
|
+
tabColours: Fs,
|
|
6076
|
+
tabLayout: Ns,
|
|
6077
|
+
tabScroll: Ds
|
|
6078
|
+
}, Symbol.toStringTag, { value: "Module" })), Qs = (o) => {
|
|
6079
|
+
o.use(we), o.component("Icon", K), Object.entries(Ms).forEach(([
|
|
6085
6080
|
e,
|
|
6086
6081
|
t
|
|
6087
6082
|
]) => {
|
|
@@ -6100,69 +6095,69 @@ export {
|
|
|
6100
6095
|
Rt as clUiAccordion,
|
|
6101
6096
|
xt as clUiAccordionHeader,
|
|
6102
6097
|
Pt as clUiAccordionItem,
|
|
6103
|
-
|
|
6098
|
+
_t as clUiApp,
|
|
6104
6099
|
ye as clUiButton,
|
|
6105
6100
|
lo as clUiCard,
|
|
6106
|
-
|
|
6107
|
-
|
|
6108
|
-
|
|
6109
|
-
|
|
6110
|
-
|
|
6111
|
-
|
|
6101
|
+
ca as clUiComboBox,
|
|
6102
|
+
Is as clUiFileUploader,
|
|
6103
|
+
ya as clUiFooter,
|
|
6104
|
+
$i as clUiGrid,
|
|
6105
|
+
Ti as clUiHeader,
|
|
6106
|
+
Ai as clUiHeaderMenu,
|
|
6112
6107
|
hl as clUiInput,
|
|
6113
6108
|
ul as clUiInputNumber,
|
|
6114
6109
|
Ne as clUiInputText,
|
|
6115
|
-
|
|
6110
|
+
zi as clUiLanguageSwitcher,
|
|
6116
6111
|
sl as clUiLoadingSpinner,
|
|
6117
|
-
|
|
6112
|
+
ls as clUiLogin,
|
|
6118
6113
|
Xl as clUiModal,
|
|
6119
|
-
|
|
6120
|
-
|
|
6121
|
-
|
|
6122
|
-
|
|
6123
|
-
|
|
6114
|
+
is as clUiNavigation,
|
|
6115
|
+
ds as clUiNavigationGroup,
|
|
6116
|
+
ss as clUiNavigationIcon,
|
|
6117
|
+
ks as clUiNavigationItem,
|
|
6118
|
+
gs as clUiNavigationSection,
|
|
6124
6119
|
Wl as clUiNotification,
|
|
6125
|
-
|
|
6126
|
-
|
|
6127
|
-
|
|
6120
|
+
$s as clUiTab,
|
|
6121
|
+
Es as clUiTabContent,
|
|
6122
|
+
Ts as clUiTabHeader,
|
|
6128
6123
|
Ge as currentQuickDates,
|
|
6129
|
-
|
|
6130
|
-
|
|
6131
|
-
|
|
6124
|
+
Wa as datetimeFormats,
|
|
6125
|
+
Qs as default,
|
|
6126
|
+
$r as filterMethodTypes,
|
|
6132
6127
|
He as formatNumber,
|
|
6133
6128
|
De as formatNumberAsInteger,
|
|
6134
6129
|
rl as futureQuickDates,
|
|
6135
6130
|
ot as getMergedFormatOptions,
|
|
6136
|
-
|
|
6137
|
-
|
|
6131
|
+
yr as gridColumnTypes,
|
|
6132
|
+
Vi as headerColour,
|
|
6138
6133
|
we as i18n,
|
|
6139
|
-
|
|
6140
|
-
|
|
6141
|
-
|
|
6142
|
-
|
|
6143
|
-
|
|
6144
|
-
|
|
6134
|
+
Rs as inputTextTypes,
|
|
6135
|
+
qi as inputTypes,
|
|
6136
|
+
da as isComboBoxCreateRequest,
|
|
6137
|
+
ua as isComboBoxItem,
|
|
6138
|
+
Cr as isFilterRequest,
|
|
6139
|
+
Or as isFilterResponse,
|
|
6145
6140
|
ct as isGridColumn,
|
|
6146
|
-
|
|
6147
|
-
|
|
6141
|
+
wr as isGridColumnArray,
|
|
6142
|
+
Ii as isLanguageArray,
|
|
6148
6143
|
gl as isLanguageLocaleFormat,
|
|
6149
|
-
|
|
6150
|
-
|
|
6151
|
-
|
|
6152
|
-
|
|
6144
|
+
Ha as messages,
|
|
6145
|
+
os as modalColours,
|
|
6146
|
+
ts as modalSizes,
|
|
6147
|
+
Ga as numberFormats,
|
|
6153
6148
|
nl as pastQuickDates,
|
|
6154
|
-
|
|
6149
|
+
In as quickDateNames,
|
|
6155
6150
|
Ks as setCurrentLocale,
|
|
6156
|
-
|
|
6157
|
-
|
|
6158
|
-
|
|
6151
|
+
_s as setLocaleDateTimeFormats,
|
|
6152
|
+
Gs as setLocaleMessages,
|
|
6153
|
+
Ws as setLocaleNumberFormats,
|
|
6159
6154
|
Ol as showNotification,
|
|
6160
|
-
|
|
6161
|
-
|
|
6162
|
-
|
|
6163
|
-
|
|
6155
|
+
kr as stringFormats,
|
|
6156
|
+
Fs as tabColours,
|
|
6157
|
+
Ns as tabLayout,
|
|
6158
|
+
Ds as tabScroll,
|
|
6164
6159
|
tt as unformatNumber,
|
|
6165
|
-
|
|
6166
|
-
|
|
6167
|
-
|
|
6160
|
+
tn as validateEmail,
|
|
6161
|
+
en as validateMaxValue,
|
|
6162
|
+
Xa as validateMinValue
|
|
6168
6163
|
};
|