@citruslime/ui 2.2.2-beta.6 → 2.2.2-beta.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/citrus-lime-ui.es.js +1291 -1289
- package/dist/citrus-lime-ui.umd.js +2 -2
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Icon as q } from "@iconify/vue";
|
|
2
|
-
import { defineComponent as D, ref as S, openBlock as
|
|
2
|
+
import { defineComponent as D, ref as S, openBlock as d, createElementBlock as h, renderSlot as A, normalizeProps as le, guardReactiveProps as re, Fragment as x, createElementVNode as m, normalizeClass as I, createVNode as C, unref as p, Transition as ge, withCtx as L, withDirectives as U, vShow as B, createBlock as z, Teleport as xe, renderList as Y, mergeProps as ie, toDisplayString as _, createCommentVNode as M, nextTick as be, computed as O, watch as H, onMounted as Ce, onUnmounted as Ae, normalizeStyle as el, vModelText as cl, withModifiers as K, vModelDynamic as il, withKeys as Te, resolveComponent as ul, createTextVNode as Q, watchEffect as dl, createSlots as ze } from "vue";
|
|
3
3
|
import { generateStringId as fl } from "@citruslime/utils";
|
|
4
|
-
import { onClickOutside as Le, useTimeoutFn as
|
|
5
|
-
import { createI18n as ml, useI18n as
|
|
4
|
+
import { onClickOutside as Le, useTimeoutFn as ll, useDebounceFn as tl, useWindowSize as pl } from "@vueuse/core";
|
|
5
|
+
import { createI18n as ml, useI18n as te } from "vue-i18n";
|
|
6
6
|
import Ve from "flatpickr";
|
|
7
7
|
import { useDebouncer as gl, copy as ce } from "@citruslime/vue-utils";
|
|
8
8
|
const vl = { class: "cl-overflow-hidden" }, bl = /* @__PURE__ */ D({
|
|
@@ -12,21 +12,21 @@ const vl = { class: "cl-overflow-hidden" }, bl = /* @__PURE__ */ D({
|
|
|
12
12
|
},
|
|
13
13
|
setup(t) {
|
|
14
14
|
const o = t, e = S([]);
|
|
15
|
-
function l(
|
|
16
|
-
let r = e.value.find((s) => s.id ===
|
|
15
|
+
function l(n) {
|
|
16
|
+
let r = e.value.find((s) => s.id === n);
|
|
17
17
|
return r || (r = {
|
|
18
|
-
id:
|
|
18
|
+
id: n,
|
|
19
19
|
open: !1
|
|
20
20
|
}, e.value.push(r)), r.open;
|
|
21
21
|
}
|
|
22
|
-
function n
|
|
23
|
-
const r = e.value.find((s) => s.id ===
|
|
22
|
+
function a(n) {
|
|
23
|
+
const r = e.value.find((s) => s.id === n);
|
|
24
24
|
r && (o.exclusive && e.value.forEach((s) => {
|
|
25
|
-
s.id !==
|
|
25
|
+
s.id !== n && (s.open = !1);
|
|
26
26
|
}), r.open = !r.open);
|
|
27
27
|
}
|
|
28
|
-
return (
|
|
29
|
-
|
|
28
|
+
return (n, r) => (d(), h("div", vl, [
|
|
29
|
+
A(n.$slots, "default", le(re({ isItemOpen: l, toggleItem: a })))
|
|
30
30
|
]));
|
|
31
31
|
}
|
|
32
32
|
}), hl = { class: "cl-absolute cl-left-5 cl-top-5" }, yl = { class: "cl-font-semibold cl-ml-10 cl-p-4 cl-select-none cl-text-grey-5" }, wl = { class: "cl-overflow-hidden" }, $l = { class: "cl-ml-10 cl-p-4" }, kl = /* @__PURE__ */ D({
|
|
@@ -43,34 +43,34 @@ const vl = { class: "cl-overflow-hidden" }, bl = /* @__PURE__ */ D({
|
|
|
43
43
|
function l() {
|
|
44
44
|
e.disabled || o("toggle");
|
|
45
45
|
}
|
|
46
|
-
return (
|
|
47
|
-
|
|
46
|
+
return (a, n) => (d(), h(x, null, [
|
|
47
|
+
m("div", {
|
|
48
48
|
class: I(["cl-border-b cl-border-grey-1 cl-relative", {
|
|
49
|
-
"cl-bg-grey-0":
|
|
50
|
-
"cl-cursor-pointer": !
|
|
49
|
+
"cl-bg-grey-0": a.disabled,
|
|
50
|
+
"cl-cursor-pointer": !a.disabled
|
|
51
51
|
}]),
|
|
52
52
|
onClick: l
|
|
53
53
|
}, [
|
|
54
|
-
|
|
55
|
-
|
|
54
|
+
m("div", hl, [
|
|
55
|
+
C(p(q), {
|
|
56
56
|
class: I(["cl-duration-300 cl-ease-in-out cl-text-grey-3 cl-transform-gpu cl-transition-transform", {
|
|
57
|
-
"cl-rotate-180":
|
|
57
|
+
"cl-rotate-180": a.open
|
|
58
58
|
}]),
|
|
59
59
|
icon: "ph:caret-down-bold",
|
|
60
60
|
width: "20"
|
|
61
61
|
}, null, 8, ["class"])
|
|
62
62
|
]),
|
|
63
|
-
|
|
64
|
-
|
|
63
|
+
m("div", yl, [
|
|
64
|
+
A(a.$slots, "title")
|
|
65
65
|
])
|
|
66
66
|
], 2),
|
|
67
|
-
|
|
68
|
-
|
|
67
|
+
m("div", wl, [
|
|
68
|
+
C(ge, { name: "grow-down" }, {
|
|
69
69
|
default: L(() => [
|
|
70
|
-
|
|
71
|
-
|
|
70
|
+
U(m("div", $l, [
|
|
71
|
+
A(a.$slots, "default")
|
|
72
72
|
], 512), [
|
|
73
|
-
[
|
|
73
|
+
[B, a.open]
|
|
74
74
|
])
|
|
75
75
|
]),
|
|
76
76
|
_: 3
|
|
@@ -80,13 +80,13 @@ const vl = { class: "cl-overflow-hidden" }, bl = /* @__PURE__ */ D({
|
|
|
80
80
|
}
|
|
81
81
|
}), de = (t, o) => {
|
|
82
82
|
const e = t.__vccOpts || t;
|
|
83
|
-
for (const [l,
|
|
84
|
-
e[l] =
|
|
83
|
+
for (const [l, a] of o)
|
|
84
|
+
e[l] = a;
|
|
85
85
|
return e;
|
|
86
86
|
}, Tl = {}, Cl = { 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 _l(t, o) {
|
|
88
|
-
return
|
|
89
|
-
|
|
88
|
+
return d(), h("div", Cl, [
|
|
89
|
+
A(t.$slots, "default")
|
|
90
90
|
]);
|
|
91
91
|
}
|
|
92
92
|
const Sl = /* @__PURE__ */ de(Tl, [["render", _l]]), Ee = S([]);
|
|
@@ -95,9 +95,9 @@ function Ge(t) {
|
|
|
95
95
|
id: fl(),
|
|
96
96
|
...t
|
|
97
97
|
};
|
|
98
|
-
Ee.value.push(o), setTimeout(() =>
|
|
98
|
+
Ee.value.push(o), setTimeout(() => ol(o), t.duration);
|
|
99
99
|
}
|
|
100
|
-
function
|
|
100
|
+
function ol(t) {
|
|
101
101
|
Ee.value = Ee.value.filter((o) => o.id !== t.id);
|
|
102
102
|
}
|
|
103
103
|
const Ol = ["onClick"], El = { class: "cl-flex-1 cl-select-none cl-text-ellipsis cl-w-64" }, Al = {
|
|
@@ -110,8 +110,8 @@ const Ol = ["onClick"], El = { class: "cl-flex-1 cl-select-none cl-text-ellipsis
|
|
|
110
110
|
position: { default: "top-right" }
|
|
111
111
|
},
|
|
112
112
|
setup(t) {
|
|
113
|
-
return (o, e) => (
|
|
114
|
-
|
|
113
|
+
return (o, e) => (d(), z(xe, { to: o.container }, [
|
|
114
|
+
m("div", {
|
|
115
115
|
class: I(["cl-fixed cl-w-80 cl-z-40", {
|
|
116
116
|
"cl-top-5 cl-left-5": o.position === "top-left",
|
|
117
117
|
"cl-top-5 cl-left-1/2": o.position === "top-centre",
|
|
@@ -121,8 +121,8 @@ const Ol = ["onClick"], El = { class: "cl-flex-1 cl-select-none cl-text-ellipsis
|
|
|
121
121
|
"cl-bottom-5 cl-right-5": o.position === "bottom-right"
|
|
122
122
|
}])
|
|
123
123
|
}, [
|
|
124
|
-
(
|
|
125
|
-
key:
|
|
124
|
+
(d(!0), h(x, null, Y(p(Ee), (l, a) => (d(), h("div", ie(o.$attrs, {
|
|
125
|
+
key: a,
|
|
126
126
|
class: ["cl-break-words cl-cursor-pointer cl-flex cl-font-semibold cl-group cl-mb-2 cl-overflow-hidden cl-p-4 cl-rounded cl-shadow-lg cl-text-sm", {
|
|
127
127
|
"cl-bg-white": l.colour === "default",
|
|
128
128
|
"cl-bg-primary-default": l.colour === "primary",
|
|
@@ -130,10 +130,10 @@ const Ol = ["onClick"], El = { class: "cl-flex-1 cl-select-none cl-text-ellipsis
|
|
|
130
130
|
"cl-bg-danger-default": l.colour === "danger",
|
|
131
131
|
"cl-bg-warning-default": l.colour === "warning"
|
|
132
132
|
}],
|
|
133
|
-
onClick: (
|
|
133
|
+
onClick: (n) => p(ol)(l)
|
|
134
134
|
}), [
|
|
135
|
-
|
|
136
|
-
|
|
135
|
+
m("span", El, _(l.message), 1),
|
|
136
|
+
C(p(q), {
|
|
137
137
|
class: "cl-inline-block cl-opacity-0 cl-transition-opacity group-hover:cl-opacity-100",
|
|
138
138
|
icon: "ph:x",
|
|
139
139
|
size: 16,
|
|
@@ -149,23 +149,23 @@ const Ol = ["onClick"], El = { class: "cl-flex-1 cl-select-none cl-text-ellipsis
|
|
|
149
149
|
removePadding: { type: Boolean, default: !1 }
|
|
150
150
|
},
|
|
151
151
|
setup(t) {
|
|
152
|
-
return (o, e) => (
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
152
|
+
return (o, e) => (d(), h(x, null, [
|
|
153
|
+
C(al),
|
|
154
|
+
m("div", jl, [
|
|
155
|
+
A(o.$slots, "header"),
|
|
156
|
+
m("div", {
|
|
157
157
|
class: I(["cl-content-start cl-flex cl-flex-nowrap cl-items-stretch cl-max-h-screen cl-relative cl-w-full", {
|
|
158
158
|
"cl-pt-20": o.$slots.header
|
|
159
159
|
}])
|
|
160
160
|
}, [
|
|
161
|
-
|
|
162
|
-
|
|
161
|
+
A(o.$slots, "navigation"),
|
|
162
|
+
m("div", {
|
|
163
163
|
class: I(["cl-grow cl-max-h-full cl-overflow-x-hidden cl-overflow-y-auto cl-overscroll-y-none cl-w-auto", {
|
|
164
164
|
"cl-pb-20 lg:cl-pb-0": o.removePadding,
|
|
165
165
|
"lg:cl-pb-8 md:cl-px-8 cl-px-2 md:cl-pt-8 cl-pt-2 cl-pb-20": !o.removePadding
|
|
166
166
|
}])
|
|
167
167
|
}, [
|
|
168
|
-
|
|
168
|
+
A(o.$slots, "default")
|
|
169
169
|
], 2)
|
|
170
170
|
], 2)
|
|
171
171
|
])
|
|
@@ -174,7 +174,7 @@ const Ol = ["onClick"], El = { class: "cl-flex-1 cl-select-none cl-text-ellipsis
|
|
|
174
174
|
});
|
|
175
175
|
const Il = {}, Nl = { class: "loading-spinner" };
|
|
176
176
|
function ql(t, o) {
|
|
177
|
-
return
|
|
177
|
+
return d(), h("div", Nl);
|
|
178
178
|
}
|
|
179
179
|
const je = /* @__PURE__ */ de(Il, [["render", ql], ["__scopeId", "data-v-a21dc5d2"]]), Dl = ["disabled"], Rl = {
|
|
180
180
|
inheritAttrs: !1
|
|
@@ -193,11 +193,11 @@ const je = /* @__PURE__ */ de(Il, [["render", ql], ["__scopeId", "data-v-a21dc5d
|
|
|
193
193
|
focus() {
|
|
194
194
|
e.value && e.value.focus();
|
|
195
195
|
}
|
|
196
|
-
}), (l,
|
|
197
|
-
|
|
198
|
-
[
|
|
196
|
+
}), (l, a) => (d(), h(x, null, [
|
|
197
|
+
U(C(je, { class: "relative" }, null, 512), [
|
|
198
|
+
[B, l.loading]
|
|
199
199
|
]),
|
|
200
|
-
|
|
200
|
+
U(m("button", ie(l.$attrs, {
|
|
201
201
|
ref_key: "buttonRef",
|
|
202
202
|
ref: e,
|
|
203
203
|
class: ["cl-align-middle cl-border cl-font-semibold cl-inline-block cl-rounded cl-select-none cl-shadow cl-text-center cl-transition-colors", {
|
|
@@ -214,39 +214,39 @@ const je = /* @__PURE__ */ de(Il, [["render", ql], ["__scopeId", "data-v-a21dc5d
|
|
|
214
214
|
}],
|
|
215
215
|
disabled: l.disabled
|
|
216
216
|
}), [
|
|
217
|
-
|
|
217
|
+
A(l.$slots, "default")
|
|
218
218
|
], 16, Dl), [
|
|
219
|
-
[
|
|
219
|
+
[B, !l.loading]
|
|
220
220
|
])
|
|
221
221
|
], 64));
|
|
222
222
|
}
|
|
223
|
-
}),
|
|
223
|
+
}), Ul = [
|
|
224
224
|
"default",
|
|
225
225
|
"primary",
|
|
226
226
|
"secondary",
|
|
227
227
|
"danger",
|
|
228
228
|
"blue",
|
|
229
229
|
"orange"
|
|
230
|
-
],
|
|
230
|
+
], Bl = [
|
|
231
231
|
"small",
|
|
232
232
|
"medium",
|
|
233
233
|
"large"
|
|
234
|
-
],
|
|
234
|
+
], xl = { key: 0 }, zl = /* @__PURE__ */ D({
|
|
235
235
|
__name: "cl-ui-card",
|
|
236
236
|
props: {
|
|
237
237
|
size: { default: "medium" },
|
|
238
238
|
hover: { type: Boolean, default: !1 }
|
|
239
239
|
},
|
|
240
240
|
setup(t) {
|
|
241
|
-
return (o, e) => (
|
|
241
|
+
return (o, e) => (d(), h("div", {
|
|
242
242
|
class: I(["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": o.hover
|
|
244
244
|
}])
|
|
245
245
|
}, [
|
|
246
|
-
o.$slots.image ? (
|
|
247
|
-
|
|
246
|
+
o.$slots.image ? (d(), h("div", xl, [
|
|
247
|
+
A(o.$slots, "image")
|
|
248
248
|
])) : M("", !0),
|
|
249
|
-
o.$slots.title ? (
|
|
249
|
+
o.$slots.title ? (d(), h("div", {
|
|
250
250
|
key: 1,
|
|
251
251
|
class: I(["cl-border-grey-2 cl-font-normal", {
|
|
252
252
|
"cl-p-2 cl-text-2xl cl-leading-8": o.size === "small",
|
|
@@ -255,9 +255,9 @@ const je = /* @__PURE__ */ de(Il, [["render", ql], ["__scopeId", "data-v-a21dc5d
|
|
|
255
255
|
"cl-border-t": o.$slots.image
|
|
256
256
|
}])
|
|
257
257
|
}, [
|
|
258
|
-
|
|
258
|
+
A(o.$slots, "title")
|
|
259
259
|
], 2)) : M("", !0),
|
|
260
|
-
|
|
260
|
+
m("div", {
|
|
261
261
|
class: I(["cl-border-grey-2", {
|
|
262
262
|
"cl-p-2": o.size === "small",
|
|
263
263
|
"cl-p-4": o.size === "medium",
|
|
@@ -265,9 +265,9 @@ const je = /* @__PURE__ */ de(Il, [["render", ql], ["__scopeId", "data-v-a21dc5d
|
|
|
265
265
|
"cl-border-t": o.$slots.image || o.$slots.title
|
|
266
266
|
}])
|
|
267
267
|
}, [
|
|
268
|
-
|
|
268
|
+
A(o.$slots, "default")
|
|
269
269
|
], 2),
|
|
270
|
-
o.$slots.footer ? (
|
|
270
|
+
o.$slots.footer ? (d(), h("div", {
|
|
271
271
|
key: 2,
|
|
272
272
|
class: I(["cl-border-grey-2 cl-border-t", {
|
|
273
273
|
"cl-p-2": o.size === "small",
|
|
@@ -275,7 +275,7 @@ const je = /* @__PURE__ */ de(Il, [["render", ql], ["__scopeId", "data-v-a21dc5d
|
|
|
275
275
|
"cl-p-6": o.size === "large"
|
|
276
276
|
}])
|
|
277
277
|
}, [
|
|
278
|
-
|
|
278
|
+
A(o.$slots, "footer")
|
|
279
279
|
], 2)) : M("", !0)
|
|
280
280
|
], 2));
|
|
281
281
|
}
|
|
@@ -441,28 +441,28 @@ const Pl = {
|
|
|
441
441
|
fallbackWarn: !1,
|
|
442
442
|
warnHtmlMessage: !1
|
|
443
443
|
});
|
|
444
|
-
function
|
|
444
|
+
function Jn(t, o) {
|
|
445
445
|
return Z.global.mergeLocaleMessage(t, o), be();
|
|
446
446
|
}
|
|
447
|
-
function
|
|
447
|
+
function Kn(t, o) {
|
|
448
448
|
return Z.global.mergeNumberFormat(t, o), be();
|
|
449
449
|
}
|
|
450
|
-
function
|
|
450
|
+
function Zn(t, o) {
|
|
451
451
|
return Z.global.mergeDateTimeFormat(t, o), be();
|
|
452
452
|
}
|
|
453
|
-
function
|
|
453
|
+
function Qn(t) {
|
|
454
454
|
return Z.global.locale.value = t, be();
|
|
455
455
|
}
|
|
456
456
|
const { t: ne } = Z.global;
|
|
457
457
|
function Gl(t, o, e, l) {
|
|
458
|
-
const
|
|
459
|
-
return l instanceof Date && (l = l.getTime()), new Promise((
|
|
458
|
+
const a = Z.global.locale.value;
|
|
459
|
+
return l instanceof Date && (l = l.getTime()), new Promise((n) => {
|
|
460
460
|
let r = {
|
|
461
461
|
valid: !1,
|
|
462
462
|
message: ""
|
|
463
463
|
};
|
|
464
464
|
if (t != null) {
|
|
465
|
-
let s,
|
|
465
|
+
let s, u;
|
|
466
466
|
switch (o) {
|
|
467
467
|
case "email":
|
|
468
468
|
case "password":
|
|
@@ -470,38 +470,38 @@ function Gl(t, o, e, l) {
|
|
|
470
470
|
case "tel":
|
|
471
471
|
case "text":
|
|
472
472
|
case "url":
|
|
473
|
-
s = ((l == null ? void 0 : l.length) ?? 0) >= t, r =
|
|
473
|
+
s = ((l == null ? void 0 : l.length) ?? 0) >= t, r = se(s, ne("input.greaterOrEqualToCharacters", { label: e, min: t.toString() }));
|
|
474
474
|
break;
|
|
475
475
|
case "number":
|
|
476
476
|
case "range":
|
|
477
|
-
s = l >= t, r =
|
|
477
|
+
s = l >= t, r = se(s, ne("input.greaterOrEqualToValue", { label: e, min: t.toString() }));
|
|
478
478
|
break;
|
|
479
479
|
case "date":
|
|
480
|
-
s = l >= new Date(t).getTime(), r =
|
|
480
|
+
s = l >= new Date(t).getTime(), r = se(s, ne("input.afterOrEqualToValue", { label: e, min: new Date(t).toLocaleDateString(a) }));
|
|
481
481
|
break;
|
|
482
482
|
case "datetime":
|
|
483
|
-
s = l >= new Date(t).getTime(), r =
|
|
483
|
+
s = l >= new Date(t).getTime(), r = se(s, ne("input.afterOrEqualToValue", { label: e, min: Z.global.d(new Date(t), G.DATETIME, a ?? Z.global.locale.value) }));
|
|
484
484
|
break;
|
|
485
485
|
case "time":
|
|
486
|
-
|
|
486
|
+
u = t.toDateFromTime(), s = l >= u, r = se(s, ne("input.afterOrEqualToValue", { label: e, min: Z.global.d(new Date(u), G.TIME, a ?? Z.global.locale.value) }));
|
|
487
487
|
break;
|
|
488
488
|
default:
|
|
489
489
|
r.valid = !0;
|
|
490
490
|
break;
|
|
491
491
|
}
|
|
492
492
|
}
|
|
493
|
-
|
|
493
|
+
n(r);
|
|
494
494
|
});
|
|
495
495
|
}
|
|
496
496
|
function Hl(t, o, e, l) {
|
|
497
|
-
const
|
|
498
|
-
return l instanceof Date && (l = l.getTime()), new Promise((
|
|
497
|
+
const a = Z.global.locale.value;
|
|
498
|
+
return l instanceof Date && (l = l.getTime()), new Promise((n) => {
|
|
499
499
|
let r = {
|
|
500
500
|
valid: !1,
|
|
501
501
|
message: ""
|
|
502
502
|
};
|
|
503
503
|
if (t != null) {
|
|
504
|
-
let s,
|
|
504
|
+
let s, u;
|
|
505
505
|
switch (o) {
|
|
506
506
|
case "email":
|
|
507
507
|
case "password":
|
|
@@ -509,42 +509,42 @@ function Hl(t, o, e, l) {
|
|
|
509
509
|
case "tel":
|
|
510
510
|
case "text":
|
|
511
511
|
case "url":
|
|
512
|
-
s = ((l == null ? void 0 : l.length) ?? 0) <= t, r =
|
|
512
|
+
s = ((l == null ? void 0 : l.length) ?? 0) <= t, r = se(s, ne("input.lessOrEqualToCharacters", { label: e, max: t.toString() }));
|
|
513
513
|
break;
|
|
514
514
|
case "number":
|
|
515
515
|
case "range":
|
|
516
|
-
s = l <= t, r =
|
|
516
|
+
s = l <= t, r = se(s, ne("input.lessOrEqualToValue", { label: e, max: t.toString() }));
|
|
517
517
|
break;
|
|
518
518
|
case "date":
|
|
519
|
-
s = l <= new Date(t).getTime(), r =
|
|
519
|
+
s = l <= new Date(t).getTime(), r = se(s, ne("input.beforeOrEqualToValue", { label: e, max: new Date(t).toLocaleDateString(a) }));
|
|
520
520
|
break;
|
|
521
521
|
case "datetime":
|
|
522
|
-
s = l <= new Date(t).getTime(), r =
|
|
522
|
+
s = l <= new Date(t).getTime(), r = se(s, ne("input.afterOrEqualToValue", { label: e, min: Z.global.d(new Date(t), G.DATETIME, a ?? Z.global.locale.value) }));
|
|
523
523
|
break;
|
|
524
524
|
case "time":
|
|
525
|
-
|
|
525
|
+
u = t.toDateFromTime(), s = l <= u, r = se(s, ne("input.afterOrEqualToValue", { label: e, min: Z.global.d(new Date(u), G.TIME, a ?? Z.global.locale.value) }));
|
|
526
526
|
break;
|
|
527
527
|
default:
|
|
528
528
|
r.valid = !0;
|
|
529
529
|
break;
|
|
530
530
|
}
|
|
531
531
|
}
|
|
532
|
-
|
|
532
|
+
n(r);
|
|
533
533
|
});
|
|
534
534
|
}
|
|
535
535
|
function Wl(t, o) {
|
|
536
536
|
return new Promise((e) => {
|
|
537
|
-
const l = o != null && o !== "" && o.toString().trim() !== "",
|
|
538
|
-
e(
|
|
537
|
+
const l = o != null && o !== "" && o.toString().trim() !== "", a = se(l, ne("input.valueIsRequired", { label: t }));
|
|
538
|
+
e(a);
|
|
539
539
|
});
|
|
540
540
|
}
|
|
541
541
|
function Jl(t, o) {
|
|
542
542
|
return new Promise((e) => {
|
|
543
|
-
const
|
|
544
|
-
e(
|
|
543
|
+
const a = o === "" || /[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(o) !== null, n = se(a, ne("input.valueNotValidEmail", { label: t }));
|
|
544
|
+
e(n);
|
|
545
545
|
});
|
|
546
546
|
}
|
|
547
|
-
function
|
|
547
|
+
function se(t, o) {
|
|
548
548
|
return {
|
|
549
549
|
valid: t,
|
|
550
550
|
message: t ? "" : o
|
|
@@ -562,7 +562,7 @@ function Kl(t) {
|
|
|
562
562
|
from: "@iconify/vue"
|
|
563
563
|
};
|
|
564
564
|
}
|
|
565
|
-
function
|
|
565
|
+
function Yn() {
|
|
566
566
|
return Kl;
|
|
567
567
|
}
|
|
568
568
|
var we = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, Ie = { exports: {} };
|
|
@@ -572,7 +572,7 @@ var we = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
572
572
|
})(we, function(e) {
|
|
573
573
|
var l = typeof window < "u" && window.flatpickr !== void 0 ? window.flatpickr : {
|
|
574
574
|
l10ns: {}
|
|
575
|
-
},
|
|
575
|
+
}, a = {
|
|
576
576
|
weekdays: {
|
|
577
577
|
shorthand: ["So", "Mo", "Di", "Mi", "Do", "Fr", "Sa"],
|
|
578
578
|
longhand: [
|
|
@@ -622,9 +622,9 @@ var we = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
622
622
|
toggleTitle: "Zum Umschalten klicken",
|
|
623
623
|
time_24hr: !0
|
|
624
624
|
};
|
|
625
|
-
l.l10ns.de =
|
|
626
|
-
var
|
|
627
|
-
e.German =
|
|
625
|
+
l.l10ns.de = a;
|
|
626
|
+
var n = l.l10ns;
|
|
627
|
+
e.German = a, e.default = n, Object.defineProperty(e, "__esModule", { value: !0 });
|
|
628
628
|
});
|
|
629
629
|
})(Ie, Ie.exports);
|
|
630
630
|
var Zl = Ie.exports, Ne = { exports: {} };
|
|
@@ -677,11 +677,11 @@ var Zl = Ie.exports, Ne = { exports: {} };
|
|
|
677
677
|
},
|
|
678
678
|
daysInMonth: [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31],
|
|
679
679
|
firstDayOfWeek: 0,
|
|
680
|
-
ordinal: function(
|
|
681
|
-
var
|
|
682
|
-
if (
|
|
680
|
+
ordinal: function(a) {
|
|
681
|
+
var n = a % 100;
|
|
682
|
+
if (n > 3 && n < 21)
|
|
683
683
|
return "th";
|
|
684
|
-
switch (
|
|
684
|
+
switch (n % 10) {
|
|
685
685
|
case 1:
|
|
686
686
|
return "st";
|
|
687
687
|
case 2:
|
|
@@ -713,7 +713,7 @@ var Ql = Ne.exports, qe = { exports: {} };
|
|
|
713
713
|
})(we, function(e) {
|
|
714
714
|
var l = typeof window < "u" && window.flatpickr !== void 0 ? window.flatpickr : {
|
|
715
715
|
l10ns: {}
|
|
716
|
-
},
|
|
716
|
+
}, a = {
|
|
717
717
|
weekdays: {
|
|
718
718
|
shorthand: ["Dom", "Lun", "Mar", "Mié", "Jue", "Vie", "Sáb"],
|
|
719
719
|
longhand: [
|
|
@@ -763,9 +763,9 @@ var Ql = Ne.exports, qe = { exports: {} };
|
|
|
763
763
|
rangeSeparator: " a ",
|
|
764
764
|
time_24hr: !0
|
|
765
765
|
};
|
|
766
|
-
l.l10ns.es =
|
|
767
|
-
var
|
|
768
|
-
e.Spanish =
|
|
766
|
+
l.l10ns.es = a;
|
|
767
|
+
var n = l.l10ns;
|
|
768
|
+
e.Spanish = a, e.default = n, Object.defineProperty(e, "__esModule", { value: !0 });
|
|
769
769
|
});
|
|
770
770
|
})(qe, qe.exports);
|
|
771
771
|
var Yl = qe.exports, De = { exports: {} };
|
|
@@ -775,7 +775,7 @@ var Yl = qe.exports, De = { exports: {} };
|
|
|
775
775
|
})(we, function(e) {
|
|
776
776
|
var l = typeof window < "u" && window.flatpickr !== void 0 ? window.flatpickr : {
|
|
777
777
|
l10ns: {}
|
|
778
|
-
},
|
|
778
|
+
}, a = {
|
|
779
779
|
firstDayOfWeek: 1,
|
|
780
780
|
weekdays: {
|
|
781
781
|
shorthand: ["dim", "lun", "mar", "mer", "jeu", "ven", "sam"],
|
|
@@ -828,9 +828,9 @@ var Yl = qe.exports, De = { exports: {} };
|
|
|
828
828
|
toggleTitle: "Cliquer pour basculer",
|
|
829
829
|
time_24hr: !0
|
|
830
830
|
};
|
|
831
|
-
l.l10ns.fr =
|
|
832
|
-
var
|
|
833
|
-
e.French =
|
|
831
|
+
l.l10ns.fr = a;
|
|
832
|
+
var n = l.l10ns;
|
|
833
|
+
e.French = a, e.default = n, Object.defineProperty(e, "__esModule", { value: !0 });
|
|
834
834
|
});
|
|
835
835
|
})(De, De.exports);
|
|
836
836
|
var Xl = De.exports, Re = { exports: {} };
|
|
@@ -840,7 +840,7 @@ var Xl = De.exports, Re = { exports: {} };
|
|
|
840
840
|
})(we, function(e) {
|
|
841
841
|
var l = typeof window < "u" && window.flatpickr !== void 0 ? window.flatpickr : {
|
|
842
842
|
l10ns: {}
|
|
843
|
-
},
|
|
843
|
+
}, a = {
|
|
844
844
|
weekdays: {
|
|
845
845
|
shorthand: ["Dom", "Lun", "Mar", "Mer", "Gio", "Ven", "Sab"],
|
|
846
846
|
longhand: [
|
|
@@ -893,19 +893,19 @@ var Xl = De.exports, Re = { exports: {} };
|
|
|
893
893
|
toggleTitle: "Clicca per cambiare",
|
|
894
894
|
time_24hr: !0
|
|
895
895
|
};
|
|
896
|
-
l.l10ns.it =
|
|
897
|
-
var
|
|
898
|
-
e.Italian =
|
|
896
|
+
l.l10ns.it = a;
|
|
897
|
+
var n = l.l10ns;
|
|
898
|
+
e.Italian = a, e.default = n, Object.defineProperty(e, "__esModule", { value: !0 });
|
|
899
899
|
});
|
|
900
900
|
})(Re, Re.exports);
|
|
901
|
-
var et = Re.exports,
|
|
901
|
+
var et = Re.exports, Ue = { exports: {} };
|
|
902
902
|
(function(t, o) {
|
|
903
903
|
(function(e, l) {
|
|
904
904
|
l(o);
|
|
905
905
|
})(we, function(e) {
|
|
906
906
|
var l = typeof window < "u" && window.flatpickr !== void 0 ? window.flatpickr : {
|
|
907
907
|
l10ns: {}
|
|
908
|
-
},
|
|
908
|
+
}, a = {
|
|
909
909
|
weekdays: {
|
|
910
910
|
shorthand: ["zo", "ma", "di", "wo", "do", "vr", "za"],
|
|
911
911
|
longhand: [
|
|
@@ -958,19 +958,19 @@ var et = Re.exports, xe = { exports: {} };
|
|
|
958
958
|
return r === 1 || r === 8 || r >= 20 ? "ste" : "de";
|
|
959
959
|
}
|
|
960
960
|
};
|
|
961
|
-
l.l10ns.nl =
|
|
962
|
-
var
|
|
963
|
-
e.Dutch =
|
|
961
|
+
l.l10ns.nl = a;
|
|
962
|
+
var n = l.l10ns;
|
|
963
|
+
e.Dutch = a, e.default = n, Object.defineProperty(e, "__esModule", { value: !0 });
|
|
964
964
|
});
|
|
965
|
-
})(
|
|
966
|
-
var lt =
|
|
965
|
+
})(Ue, Ue.exports);
|
|
966
|
+
var lt = Ue.exports;
|
|
967
967
|
function tt() {
|
|
968
968
|
return /* @__PURE__ */ new Date("1990-01-02T12:05");
|
|
969
969
|
}
|
|
970
970
|
function ot(t, o, e) {
|
|
971
971
|
return t.replace("1990", e).replace("12", o).replace("01", "m").replace("1", "n").replace("02", "d").replace("2", "j").replace("05", "i").replace("PM", "K");
|
|
972
972
|
}
|
|
973
|
-
function
|
|
973
|
+
function at(t) {
|
|
974
974
|
let o;
|
|
975
975
|
switch (t) {
|
|
976
976
|
case "de-DE":
|
|
@@ -997,8 +997,8 @@ function nt(t) {
|
|
|
997
997
|
function He(t, o) {
|
|
998
998
|
let e;
|
|
999
999
|
if (t.indexOf("/") > -1 || t.indexOf("-") > -1) {
|
|
1000
|
-
const l = new Date(t).toLocaleString(o),
|
|
1001
|
-
|
|
1000
|
+
const l = new Date(t).toLocaleString(o), a = l.indexOf(",");
|
|
1001
|
+
a > -1 ? e = l.substr(0, a) : e = l;
|
|
1002
1002
|
}
|
|
1003
1003
|
return e;
|
|
1004
1004
|
}
|
|
@@ -1010,7 +1010,7 @@ function We(t) {
|
|
|
1010
1010
|
}
|
|
1011
1011
|
return o;
|
|
1012
1012
|
}
|
|
1013
|
-
const
|
|
1013
|
+
const nt = ["disabled"], st = { class: "cl-absolute cl-bg-white cl-flex cl-right-2 cl-text-grey-4 cl-top-2" }, rt = /* @__PURE__ */ D({
|
|
1014
1014
|
__name: "cl-ui-calendar",
|
|
1015
1015
|
props: {
|
|
1016
1016
|
date: { default: null },
|
|
@@ -1023,53 +1023,53 @@ const at = ["disabled"], st = { class: "cl-absolute cl-bg-white cl-flex cl-right
|
|
|
1023
1023
|
"update:date": null
|
|
1024
1024
|
},
|
|
1025
1025
|
setup(t, { expose: o, emit: e }) {
|
|
1026
|
-
const l = t, { d:
|
|
1026
|
+
const l = t, { d: a, getDateTimeFormat: n, locale: r } = te(), s = S(null), u = S(null), f = O(() => a(tt(), l.type)), v = O(() => n(r.value)[l.type]), w = O(() => he()), i = O(() => ve()), y = O(() => He(l.min, r.value)), c = O(() => He(l.max, r.value)), k = S(!1), T = O(() => {
|
|
1027
1027
|
var W, F;
|
|
1028
|
-
let g = "H",
|
|
1029
|
-
return ((W = v.value) == null ? void 0 : W.hour12) === !0 && (g = "h"), ((F = v.value) == null ? void 0 : F.year) === "2-digit" && (
|
|
1030
|
-
}),
|
|
1031
|
-
var
|
|
1028
|
+
let g = "H", E = "Y";
|
|
1029
|
+
return ((W = v.value) == null ? void 0 : W.hour12) === !0 && (g = "h"), ((F = v.value) == null ? void 0 : F.year) === "2-digit" && (E = "y"), ot(f.value, g, E);
|
|
1030
|
+
}), j = O(() => {
|
|
1031
|
+
var E, W;
|
|
1032
1032
|
const g = {
|
|
1033
1033
|
...Ve.defaultConfig,
|
|
1034
1034
|
allowInput: !0,
|
|
1035
|
-
dateFormat:
|
|
1035
|
+
dateFormat: T.value,
|
|
1036
1036
|
disableMobile: !0,
|
|
1037
1037
|
enableTime: l.type === G.DATETIME || l.type === G.TIME,
|
|
1038
|
-
locale:
|
|
1038
|
+
locale: at(r.value),
|
|
1039
1039
|
maxDate: c.value,
|
|
1040
|
-
maxTime:
|
|
1041
|
-
minDate:
|
|
1042
|
-
minTime:
|
|
1040
|
+
maxTime: i.value,
|
|
1041
|
+
minDate: y.value,
|
|
1042
|
+
minTime: w.value,
|
|
1043
1043
|
minuteIncrement: 1,
|
|
1044
1044
|
monthSelectorType: "static",
|
|
1045
1045
|
noCalendar: l.type === G.TIME,
|
|
1046
1046
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
1047
|
-
time_24hr: typeof ((
|
|
1047
|
+
time_24hr: typeof ((E = v.value) == null ? void 0 : E.hour12) > "u" || ((W = v.value) == null ? void 0 : W.hour12) === !1
|
|
1048
1048
|
};
|
|
1049
1049
|
return l.date !== null && (g.defaultDate = l.date), g;
|
|
1050
1050
|
});
|
|
1051
|
-
function V(g,
|
|
1051
|
+
function V(g, E, W) {
|
|
1052
1052
|
const F = g.length > 0 ? g[0] : null;
|
|
1053
1053
|
F !== l.date && !k.value && e("update:date", F), k.value = !1;
|
|
1054
1054
|
}
|
|
1055
|
-
function
|
|
1055
|
+
function ee() {
|
|
1056
1056
|
k.value = !0, e("update:date", null);
|
|
1057
1057
|
}
|
|
1058
1058
|
function ue() {
|
|
1059
1059
|
if (s.value !== null) {
|
|
1060
1060
|
let g = /* @__PURE__ */ new Date();
|
|
1061
1061
|
g.setHours(12, 0, 0, 0);
|
|
1062
|
-
let
|
|
1063
|
-
l.type === "time" ?
|
|
1062
|
+
let E;
|
|
1063
|
+
l.type === "time" ? E = l.min.toDateFromTime() : E = new Date(l.min), E > g && (g = E), k.value = !0, e("update:date", g);
|
|
1064
1064
|
}
|
|
1065
1065
|
}
|
|
1066
|
-
function
|
|
1067
|
-
s.value === null &&
|
|
1066
|
+
function $() {
|
|
1067
|
+
s.value === null && u.value !== null && (s.value = Ve(u.value, j.value), s.value.config.onChange.push(V));
|
|
1068
1068
|
}
|
|
1069
1069
|
function P() {
|
|
1070
|
-
s.value !== null && (s.value.set(
|
|
1070
|
+
s.value !== null && (s.value.set(j.value), s.value.config.onChange.push(V));
|
|
1071
1071
|
}
|
|
1072
|
-
function
|
|
1072
|
+
function ae(g) {
|
|
1073
1073
|
s.value !== null && s.value.setDate(g, !0);
|
|
1074
1074
|
}
|
|
1075
1075
|
function J() {
|
|
@@ -1086,31 +1086,31 @@ const at = ["disabled"], st = { class: "cl-absolute cl-bg-white cl-flex cl-right
|
|
|
1086
1086
|
let g;
|
|
1087
1087
|
return (l.type === G.TIME || l.type === G.DATETIME) && (g = We(l.max)), g;
|
|
1088
1088
|
}
|
|
1089
|
-
return H(() => l.date, (g,
|
|
1090
|
-
g !== null &&
|
|
1089
|
+
return H(() => l.date, (g, E) => {
|
|
1090
|
+
g !== null && E !== null ? g.getTime() !== E.getTime() && ae(g) : g === null && E !== null && J();
|
|
1091
1091
|
}, {
|
|
1092
1092
|
deep: !0
|
|
1093
|
-
}), H(() =>
|
|
1093
|
+
}), H(() => j.value, P, {
|
|
1094
1094
|
deep: !0
|
|
1095
1095
|
}), H(() => l.type, () => {
|
|
1096
|
-
fe(), be(() =>
|
|
1096
|
+
fe(), be(() => $());
|
|
1097
1097
|
}, {
|
|
1098
1098
|
immediate: !1
|
|
1099
|
-
}), Ce(() =>
|
|
1099
|
+
}), Ce(() => $()), Ae(() => fe()), o({
|
|
1100
1100
|
focus() {
|
|
1101
1101
|
var g;
|
|
1102
|
-
(g =
|
|
1102
|
+
(g = u.value) == null || g.focus();
|
|
1103
1103
|
}
|
|
1104
|
-
}), (g,
|
|
1105
|
-
|
|
1104
|
+
}), (g, E) => (d(), h("div", ie(g.$attrs, { class: "cl-relative" }), [
|
|
1105
|
+
m("input", ie({
|
|
1106
1106
|
ref_key: "element",
|
|
1107
|
-
ref:
|
|
1107
|
+
ref: u
|
|
1108
1108
|
}, g.$attrs, {
|
|
1109
1109
|
class: ["!cl-text-sm cl-border-grey-1 cl-rounded-lg focus:cl-border-blue-light focus:cl-ring-0", { "cl-bg-off-white": g.disabled }],
|
|
1110
1110
|
type: "text",
|
|
1111
1111
|
disabled: g.disabled
|
|
1112
|
-
}), null, 16,
|
|
1113
|
-
|
|
1112
|
+
}), null, 16, nt),
|
|
1113
|
+
U(C(p(q), {
|
|
1114
1114
|
class: I(["cl-absolute cl-bg-white cl-right-2 cl-text-grey-4 cl-top-2", {
|
|
1115
1115
|
"!cl-bg-off-white": g.disabled
|
|
1116
1116
|
}]),
|
|
@@ -1118,9 +1118,9 @@ const at = ["disabled"], st = { class: "cl-absolute cl-bg-white cl-flex cl-right
|
|
|
1118
1118
|
weight: "light",
|
|
1119
1119
|
size: 18
|
|
1120
1120
|
}, null, 8, ["class"]), [
|
|
1121
|
-
[
|
|
1121
|
+
[B, (g.date === null || g.disabled) && g.type !== "time"]
|
|
1122
1122
|
]),
|
|
1123
|
-
|
|
1123
|
+
U(C(p(q), {
|
|
1124
1124
|
class: I(["cl-absolute cl-bg-white cl-right-2 cl-text-grey-4 cl-top-3.5", {
|
|
1125
1125
|
"!cl-bg-off-white": g.disabled
|
|
1126
1126
|
}]),
|
|
@@ -1128,23 +1128,23 @@ const at = ["disabled"], st = { class: "cl-absolute cl-bg-white cl-flex cl-right
|
|
|
1128
1128
|
weight: "light",
|
|
1129
1129
|
size: 18
|
|
1130
1130
|
}, null, 8, ["class"]), [
|
|
1131
|
-
[
|
|
1131
|
+
[B, (g.date === null || g.disabled) && g.type === "time"]
|
|
1132
1132
|
]),
|
|
1133
|
-
|
|
1134
|
-
|
|
1133
|
+
U(m("div", st, [
|
|
1134
|
+
C(p(q), {
|
|
1135
1135
|
class: "cl-cursor-pointer cl-mr-0.5 md:cl-mr-1",
|
|
1136
1136
|
icon: "ph:arrow-counter-clockwise",
|
|
1137
1137
|
size: 16,
|
|
1138
1138
|
onClick: ue
|
|
1139
1139
|
}),
|
|
1140
|
-
|
|
1140
|
+
C(p(q), {
|
|
1141
1141
|
class: "cl-cursor-pointer",
|
|
1142
1142
|
icon: "ph:x",
|
|
1143
1143
|
size: 16,
|
|
1144
|
-
onClick:
|
|
1144
|
+
onClick: ee
|
|
1145
1145
|
})
|
|
1146
1146
|
], 512), [
|
|
1147
|
-
[
|
|
1147
|
+
[B, g.date !== null && !g.disabled]
|
|
1148
1148
|
])
|
|
1149
1149
|
], 16));
|
|
1150
1150
|
}
|
|
@@ -1153,13 +1153,32 @@ const ct = /* @__PURE__ */ de(rt, [["__scopeId", "data-v-1698c950"]]), Me = [
|
|
|
1153
1153
|
"date",
|
|
1154
1154
|
"datetime",
|
|
1155
1155
|
"time"
|
|
1156
|
-
], it =
|
|
1156
|
+
], it = [
|
|
1157
|
+
"button",
|
|
1158
|
+
"checkbox",
|
|
1159
|
+
"color",
|
|
1160
|
+
"date",
|
|
1161
|
+
"datetime",
|
|
1162
|
+
"email",
|
|
1163
|
+
"file",
|
|
1164
|
+
"number",
|
|
1165
|
+
"password",
|
|
1166
|
+
"radio",
|
|
1167
|
+
"range",
|
|
1168
|
+
"reset",
|
|
1169
|
+
"search",
|
|
1170
|
+
"submit",
|
|
1171
|
+
"tel",
|
|
1172
|
+
"text",
|
|
1173
|
+
"time",
|
|
1174
|
+
"url"
|
|
1175
|
+
], ut = { class: "cl-flex cl-flex-wrap cl-items-center" }, dt = { class: "cl-flex cl-flex-1 cl-flex-wrap cl-items-center cl-mb-2 cl-mt-3 cl-relative md:cl-mt-0" }, ft = { class: "cl-absolute cl-bg-grey-0 cl-leading-6 cl-ml-0 cl-px-3 cl-rounded-full cl-text-center cl-text-xs cl-top-full" }, pt = {
|
|
1157
1176
|
key: 0,
|
|
1158
1177
|
class: "cl-w-full"
|
|
1159
|
-
},
|
|
1178
|
+
}, mt = ["min", "max", "step", "disabled"], gt = { class: "cl-absolute cl-bg-grey-0 cl-leading-6 cl-ml-2 cl-px-3 cl-right-0 cl-rounded-full cl-text-center cl-text-xs cl-top-full" }, vt = {
|
|
1160
1179
|
key: 1,
|
|
1161
1180
|
class: "emphasis-danger text-sm w-full"
|
|
1162
|
-
},
|
|
1181
|
+
}, bt = /* @__PURE__ */ D({
|
|
1163
1182
|
__name: "cl-ui-slider",
|
|
1164
1183
|
props: {
|
|
1165
1184
|
value: {},
|
|
@@ -1174,75 +1193,72 @@ const ct = /* @__PURE__ */ de(rt, [["__scopeId", "data-v-1698c950"]]), Me = [
|
|
|
1174
1193
|
"update:value": null
|
|
1175
1194
|
},
|
|
1176
1195
|
setup(t, { expose: o, emit: e }) {
|
|
1177
|
-
const l = t, { n, t:
|
|
1196
|
+
const l = t, { n: a, t: n } = te(), { debounce: r } = gl(), s = S(l.value), u = S(), f = O({
|
|
1178
1197
|
get: () => l.value,
|
|
1179
1198
|
set: (c) => e("update:value", c)
|
|
1180
|
-
}), v =
|
|
1181
|
-
let c = (
|
|
1199
|
+
}), v = O(() => l.disabled ? "rgba(153, 153, 153, 0.8)" : "#9acd32"), w = O(() => {
|
|
1200
|
+
let c = (f.value - l.min) / (l.max - l.min) * 100;
|
|
1182
1201
|
return c < 35 && c > 0 ? c < 20 ? c += 0.5 : c += 0.25 : c > 65 && c < 100 && (c > 80 ? c -= 0.5 : c -= 0.25), c;
|
|
1183
|
-
}),
|
|
1184
|
-
function
|
|
1185
|
-
const
|
|
1186
|
-
|
|
1202
|
+
}), i = O(() => l.min <= l.max && l.step > 0);
|
|
1203
|
+
function y(c, k) {
|
|
1204
|
+
const T = (c == null ? void 0 : c.value) ?? "", j = Math.max(Math.min(parseFloat(T) || l.min, l.max), l.min);
|
|
1205
|
+
f.value = l.enforceStep ? Math.ceil(j / l.step) * l.step : j, be(() => k());
|
|
1187
1206
|
}
|
|
1188
1207
|
return H(() => l.value, () => s.value = l.value), o({
|
|
1189
1208
|
focus() {
|
|
1190
1209
|
var c;
|
|
1191
|
-
(c =
|
|
1210
|
+
(c = u.value) == null || c.focus();
|
|
1192
1211
|
}
|
|
1193
|
-
}), (c, k) => {
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1212
|
+
}), (c, k) => i.value ? (d(), h("div", le(ie({ key: 0 }, c.$attrs)), [
|
|
1213
|
+
U(m("div", { class: "cl-bg-transparent cl-relative cl-text-center cl-text-sm" }, _(f.value), 513), [
|
|
1214
|
+
[B, !c.showNumericInput]
|
|
1215
|
+
]),
|
|
1216
|
+
m("div", ut, [
|
|
1217
|
+
U(C(p(oe), {
|
|
1218
|
+
modelValue: s.value,
|
|
1219
|
+
"onUpdate:modelValue": k[0] || (k[0] = (T) => s.value = T),
|
|
1220
|
+
class: "!cl-text-sm md:!cl-w-auto",
|
|
1221
|
+
"input-type": "number",
|
|
1222
|
+
min: c.min,
|
|
1223
|
+
max: c.max,
|
|
1224
|
+
step: c.step,
|
|
1225
|
+
disabled: c.disabled,
|
|
1226
|
+
onInput: k[1] || (k[1] = (T) => p(r)(y, T.target, c.$forceUpdate))
|
|
1227
|
+
}, null, 8, ["modelValue", "min", "max", "step", "disabled"]), [
|
|
1228
|
+
[B, c.showNumericInput]
|
|
1198
1229
|
]),
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
"
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
min: c.min,
|
|
1226
|
-
max: c.max,
|
|
1227
|
-
step: c.step,
|
|
1228
|
-
disabled: c.disabled
|
|
1229
|
-
}, null, 12, pt), [
|
|
1230
|
-
[
|
|
1231
|
-
il,
|
|
1232
|
-
d.value,
|
|
1233
|
-
void 0,
|
|
1234
|
-
{ number: !0 }
|
|
1235
|
-
]
|
|
1236
|
-
])
|
|
1237
|
-
])) : M("", !0),
|
|
1238
|
-
f("span", mt, _(p(n)(c.max, Number.isInteger(c.max) ? p(X).INTEGER : p(X).DECIMAL)), 1)
|
|
1239
|
-
])
|
|
1230
|
+
m("div", dt, [
|
|
1231
|
+
m("span", ft, _(p(a)(c.min, Number.isInteger(c.min) ? p(X).INTEGER : p(X).DECIMAL)), 1),
|
|
1232
|
+
typeof f.value == "number" ? (d(), h("div", pt, [
|
|
1233
|
+
U(m("input", {
|
|
1234
|
+
ref_key: "sliderRef",
|
|
1235
|
+
ref: u,
|
|
1236
|
+
"onUpdate:modelValue": k[2] || (k[2] = (T) => f.value = T),
|
|
1237
|
+
class: "cl-align-middle cl-appearance-none cl-bg-gradient-to-r cl-border cl-border-grey-2 cl-delay-500 cl-ease-in cl-flex-1 cl-h-5 cl-mb-2 cl-outline-none cl-rounded-full cl-transition-colors cl-w-full",
|
|
1238
|
+
style: el({
|
|
1239
|
+
background: `linear-gradient(to right, ${v.value} 0%, ${v.value} ${w.value}%, white ${w.value}%, white 100%)`
|
|
1240
|
+
}),
|
|
1241
|
+
type: "range",
|
|
1242
|
+
min: c.min,
|
|
1243
|
+
max: c.max,
|
|
1244
|
+
step: c.step,
|
|
1245
|
+
disabled: c.disabled
|
|
1246
|
+
}, null, 12, mt), [
|
|
1247
|
+
[
|
|
1248
|
+
cl,
|
|
1249
|
+
f.value,
|
|
1250
|
+
void 0,
|
|
1251
|
+
{ number: !0 }
|
|
1252
|
+
]
|
|
1253
|
+
])
|
|
1254
|
+
])) : M("", !0),
|
|
1255
|
+
m("span", gt, _(p(a)(c.max, Number.isInteger(c.max) ? p(X).INTEGER : p(X).DECIMAL)), 1)
|
|
1240
1256
|
])
|
|
1241
|
-
]
|
|
1242
|
-
|
|
1257
|
+
])
|
|
1258
|
+
], 16)) : (d(), h("div", vt, _(p(n)("slider.invalidProps")), 1));
|
|
1243
1259
|
}
|
|
1244
1260
|
});
|
|
1245
|
-
const
|
|
1261
|
+
const ht = /* @__PURE__ */ de(bt, [["__scopeId", "data-v-849763cf"]]);
|
|
1246
1262
|
function Je(t) {
|
|
1247
1263
|
let o = !1;
|
|
1248
1264
|
switch (t) {
|
|
@@ -1260,7 +1276,7 @@ function Je(t) {
|
|
|
1260
1276
|
}
|
|
1261
1277
|
return o;
|
|
1262
1278
|
}
|
|
1263
|
-
function
|
|
1279
|
+
function yt(t) {
|
|
1264
1280
|
return t === "number" || t === "range";
|
|
1265
1281
|
}
|
|
1266
1282
|
function Ke(t) {
|
|
@@ -1277,7 +1293,7 @@ function Ke(t) {
|
|
|
1277
1293
|
}
|
|
1278
1294
|
return o;
|
|
1279
1295
|
}
|
|
1280
|
-
function
|
|
1296
|
+
function wt(t) {
|
|
1281
1297
|
let o = !1;
|
|
1282
1298
|
switch (t) {
|
|
1283
1299
|
case "date":
|
|
@@ -1294,7 +1310,7 @@ function yt(t) {
|
|
|
1294
1310
|
function ke(t) {
|
|
1295
1311
|
return t === "button" || t === "submit" || t === "reset";
|
|
1296
1312
|
}
|
|
1297
|
-
function
|
|
1313
|
+
function $t(t) {
|
|
1298
1314
|
let o;
|
|
1299
1315
|
switch (t) {
|
|
1300
1316
|
case "datetime":
|
|
@@ -1312,30 +1328,30 @@ function wt(t) {
|
|
|
1312
1328
|
}
|
|
1313
1329
|
function Ze(t, o) {
|
|
1314
1330
|
const e = t.target;
|
|
1315
|
-
return
|
|
1331
|
+
return yt(o) ? e.valueAsNumber : wt(o) ? e.valueAsDate : ke(o) ? e.checked : e.value;
|
|
1316
1332
|
}
|
|
1317
|
-
const
|
|
1333
|
+
const kt = { class: "cl-flex cl-justify-between" }, Tt = { class: "cl-w-full" }, Ct = {
|
|
1318
1334
|
key: 0,
|
|
1319
1335
|
class: "cl-block cl-left-auto cl-relative cl-text-danger-default"
|
|
1320
|
-
},
|
|
1336
|
+
}, _t = {
|
|
1321
1337
|
key: 1,
|
|
1322
1338
|
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"
|
|
1323
|
-
},
|
|
1339
|
+
}, St = ["type", "disabled", "min", "max", "minlength", "maxlength", "step", "placeholder", "accept", "name", "autocomplete"], Ot = {
|
|
1324
1340
|
key: 2,
|
|
1325
1341
|
class: "cl-h-[5.78rem] cl-pb-2 md:cl-h-20"
|
|
1326
|
-
},
|
|
1342
|
+
}, Et = {
|
|
1327
1343
|
key: 0,
|
|
1328
1344
|
class: "cl-relative"
|
|
1329
|
-
},
|
|
1345
|
+
}, At = {
|
|
1330
1346
|
class: "cl-absolute cl-right-1",
|
|
1331
1347
|
style: { bottom: "1.625rem" }
|
|
1332
|
-
},
|
|
1348
|
+
}, jt = { class: "cl-absolute cl-bottom-2 cl-right-1" }, Mt = {
|
|
1333
1349
|
key: 0,
|
|
1334
1350
|
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"
|
|
1335
|
-
},
|
|
1351
|
+
}, It = {
|
|
1336
1352
|
key: 1,
|
|
1337
1353
|
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"
|
|
1338
|
-
},
|
|
1354
|
+
}, Nt = /* @__PURE__ */ D({
|
|
1339
1355
|
__name: "cl-ui-input",
|
|
1340
1356
|
props: {
|
|
1341
1357
|
inputType: { default: "text" },
|
|
@@ -1365,27 +1381,27 @@ const $t = { class: "cl-flex cl-justify-between" }, kt = { class: "cl-w-full" },
|
|
|
1365
1381
|
},
|
|
1366
1382
|
emits: ["update:model-value", "click", "focus", "input", "change", "validated"],
|
|
1367
1383
|
setup(t, { expose: o, emit: e }) {
|
|
1368
|
-
const l = t,
|
|
1384
|
+
const l = t, a = S(null), n = S(!1), r = S(!1), s = O(F), u = O(() => l.placeholderText.trim() !== "" ? l.placeholderText : l.label), f = S(0), v = O({
|
|
1369
1385
|
get: () => l.modelValue,
|
|
1370
|
-
set: (
|
|
1371
|
-
}),
|
|
1386
|
+
set: (b) => $(b, !1)
|
|
1387
|
+
}), w = O({
|
|
1372
1388
|
get: () => l.modelValue,
|
|
1373
|
-
set: (
|
|
1374
|
-
}),
|
|
1375
|
-
var
|
|
1389
|
+
set: (b) => ue(b)
|
|
1390
|
+
}), i = O(() => typeof l.min == "number" ? l.min.toString() : l.min), y = O(() => typeof l.max == "number" ? l.max.toString() : l.max), c = O(() => typeof l.min == "number" ? l.min : parseFloat(l.min)), k = O(() => typeof l.max == "number" ? l.max : parseFloat(l.max)), T = O(() => l.messageWhenValid.trim() !== "" ? l.messageWhenValid : ""), j = S(!0), V = S([]), ee = O(() => {
|
|
1391
|
+
var b, N;
|
|
1376
1392
|
return [
|
|
1377
|
-
...((
|
|
1393
|
+
...((b = V.value) == null ? void 0 : b.filter((R) => ((R == null ? void 0 : R.length) ?? 0) > 0)) ?? [],
|
|
1378
1394
|
...((N = l.externalErrors) == null ? void 0 : N.filter((R) => ((R == null ? void 0 : R.length) ?? 0) > 0)) ?? []
|
|
1379
1395
|
].join(`
|
|
1380
1396
|
`);
|
|
1381
1397
|
});
|
|
1382
|
-
async function ue(
|
|
1383
|
-
l.validateOn === "input" && await P(
|
|
1398
|
+
async function ue(b) {
|
|
1399
|
+
l.validateOn === "input" && await P(b), e("update:model-value", b);
|
|
1384
1400
|
}
|
|
1385
|
-
async function
|
|
1386
|
-
l.onInputFunction !== void 0 && (
|
|
1401
|
+
async function $(b, N) {
|
|
1402
|
+
l.onInputFunction !== void 0 && (b = l.onInputFunction(b)), (N || l.validateOn === "input") && await P(b), e("update:model-value", b);
|
|
1387
1403
|
}
|
|
1388
|
-
function P(
|
|
1404
|
+
function P(b) {
|
|
1389
1405
|
const N = {
|
|
1390
1406
|
message: "",
|
|
1391
1407
|
valid: !0
|
|
@@ -1393,170 +1409,170 @@ const $t = { class: "cl-flex cl-justify-between" }, kt = { class: "cl-w-full" },
|
|
|
1393
1409
|
l.customValidationFunction === null || l.customValidationFunction === void 0 ? new Promise((ye) => {
|
|
1394
1410
|
ye(N);
|
|
1395
1411
|
}) : new Promise((ye) => {
|
|
1396
|
-
ye(l.customValidationFunction(l.label,
|
|
1412
|
+
ye(l.customValidationFunction(l.label, b));
|
|
1397
1413
|
})
|
|
1398
1414
|
];
|
|
1399
|
-
return (typeof
|
|
1400
|
-
const
|
|
1401
|
-
Fe ? (V.value =
|
|
1415
|
+
return (typeof b == "string" || typeof b == "number" || b instanceof Date) && (R.push(Gl(l.min, l.inputType, l.label, b)), R.push(Hl(l.max, l.inputType, l.label, b))), l.isRequired && R.push(Wl(l.label, b)), l.inputType === "email" && typeof b == "string" && R.push(Jl(l.label, b)), Promise.all(R).then((ye) => {
|
|
1416
|
+
const rl = [...ye.map((_e) => _e.message)], Fe = ye.some((_e) => _e.message.length > 0 && _e.valid === !1) || l.externalErrors.length > 0;
|
|
1417
|
+
Fe ? (V.value = rl, e("validated", !1, b)) : (V.value = [], e("validated", !0, b)), j.value = !Fe;
|
|
1402
1418
|
});
|
|
1403
1419
|
}
|
|
1404
|
-
function
|
|
1405
|
-
let
|
|
1406
|
-
return l.inputType === "color" && v.value && (l.disabled ?
|
|
1420
|
+
function ae() {
|
|
1421
|
+
let b = "";
|
|
1422
|
+
return l.inputType === "color" && v.value && (l.disabled ? b = "background: #999999" : b = `background: ${v.value};`), b;
|
|
1407
1423
|
}
|
|
1408
|
-
function J(
|
|
1409
|
-
ke(l.inputType) ? (
|
|
1424
|
+
function J(b) {
|
|
1425
|
+
ke(l.inputType) ? (b.preventDefault(), e("click", b)) : l.inputType === "checkbox" && e("click", b);
|
|
1410
1426
|
}
|
|
1411
|
-
function fe(
|
|
1412
|
-
if (
|
|
1413
|
-
|
|
1427
|
+
function fe(b) {
|
|
1428
|
+
if (a.value) {
|
|
1429
|
+
a.value.stepUp(), a.value.focus(), $(a.value.valueAsNumber, !1);
|
|
1414
1430
|
const N = {
|
|
1415
|
-
target:
|
|
1431
|
+
target: a.value
|
|
1416
1432
|
};
|
|
1417
|
-
e("input", N,
|
|
1433
|
+
e("input", N, a.value.valueAsNumber), e("change", b, a.value.valueAsNumber);
|
|
1418
1434
|
}
|
|
1419
1435
|
}
|
|
1420
|
-
function he(
|
|
1421
|
-
if (
|
|
1422
|
-
|
|
1436
|
+
function he(b) {
|
|
1437
|
+
if (a.value) {
|
|
1438
|
+
a.value.stepDown(), a.value.focus(), $(a.value.valueAsNumber, !1);
|
|
1423
1439
|
const N = {
|
|
1424
|
-
target:
|
|
1440
|
+
target: a.value
|
|
1425
1441
|
};
|
|
1426
|
-
e("input", N,
|
|
1442
|
+
e("input", N, a.value.valueAsNumber), e("change", b, a.value.valueAsNumber);
|
|
1427
1443
|
}
|
|
1428
1444
|
}
|
|
1429
|
-
function ve(
|
|
1430
|
-
|
|
1445
|
+
function ve(b) {
|
|
1446
|
+
n.value = b;
|
|
1431
1447
|
}
|
|
1432
1448
|
function g() {
|
|
1433
1449
|
r.value = !0, ve(!1);
|
|
1434
1450
|
}
|
|
1435
|
-
function
|
|
1436
|
-
|
|
1451
|
+
function E() {
|
|
1452
|
+
f.value++;
|
|
1437
1453
|
}
|
|
1438
|
-
function W(
|
|
1439
|
-
|
|
1454
|
+
function W(b) {
|
|
1455
|
+
b.target.blur();
|
|
1440
1456
|
}
|
|
1441
1457
|
function F() {
|
|
1442
1458
|
var R;
|
|
1443
|
-
let
|
|
1459
|
+
let b = !0;
|
|
1444
1460
|
const N = s.value;
|
|
1445
|
-
return
|
|
1461
|
+
return n.value ? b = N : r.value && ((R = v.value) == null ? void 0 : R.toString().trim()) === "" && (b = !1), b;
|
|
1446
1462
|
}
|
|
1447
|
-
async function $e(
|
|
1448
|
-
const N = Ze(
|
|
1449
|
-
l.validateOn === "change" && await P(N), e("change",
|
|
1463
|
+
async function $e(b) {
|
|
1464
|
+
const N = Ze(b, l.inputType);
|
|
1465
|
+
l.validateOn === "change" && await P(N), e("change", b, N);
|
|
1450
1466
|
}
|
|
1451
1467
|
return Ce(() => {
|
|
1452
|
-
l.validateImmediately &&
|
|
1453
|
-
}), H(() => l.isRequired, () =>
|
|
1468
|
+
l.validateImmediately && $(l.modelValue, !0);
|
|
1469
|
+
}), H(() => l.isRequired, () => $(l.modelValue, !0)), H(() => l.externalErrors, async () => {
|
|
1454
1470
|
await P(v.value), e("update:model-value", v.value);
|
|
1455
1471
|
}), o({
|
|
1456
1472
|
focus() {
|
|
1457
|
-
var
|
|
1458
|
-
(
|
|
1473
|
+
var b;
|
|
1474
|
+
(b = a.value) == null || b.focus();
|
|
1459
1475
|
},
|
|
1460
1476
|
blur() {
|
|
1461
|
-
var
|
|
1462
|
-
(
|
|
1477
|
+
var b;
|
|
1478
|
+
(b = a.value) == null || b.blur();
|
|
1463
1479
|
}
|
|
1464
|
-
}), (
|
|
1465
|
-
key:
|
|
1480
|
+
}), (b, N) => (d(), h("div", {
|
|
1481
|
+
key: f.value,
|
|
1466
1482
|
class: "cl-align-top cl-border-none cl-inline-block cl-text-left"
|
|
1467
1483
|
}, [
|
|
1468
|
-
|
|
1484
|
+
m("div", {
|
|
1469
1485
|
onMouseenter: N[11] || (N[11] = (R) => ve(!0)),
|
|
1470
1486
|
onMouseleave: N[12] || (N[12] = (R) => ve(!1))
|
|
1471
1487
|
}, [
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
[
|
|
1488
|
+
m("div", kt, [
|
|
1489
|
+
m("div", Tt, [
|
|
1490
|
+
U(m("label", { class: "cl-block cl-mb-1 cl-text-gray-400 cl-text-xs cl-tracking-widest" }, _(b.label), 513), [
|
|
1491
|
+
[B, b.showLabel && b.label !== ""]
|
|
1476
1492
|
])
|
|
1477
1493
|
]),
|
|
1478
|
-
|
|
1479
|
-
|
|
1494
|
+
b.isRequired && s.value ? (d(), h("label", Ct, " * ")) : M("", !0),
|
|
1495
|
+
b.isRequired && !s.value && b.requiredText.length ? (d(), h("label", _t, _(b.requiredText), 1)) : M("", !0)
|
|
1480
1496
|
]),
|
|
1481
|
-
|
|
1497
|
+
b.inputType !== "range" && !p(Ke)(b.inputType) ? U((d(), h("input", ie({
|
|
1482
1498
|
key: 0,
|
|
1483
1499
|
ref_key: "inputElement",
|
|
1484
|
-
ref:
|
|
1500
|
+
ref: a,
|
|
1485
1501
|
"onUpdate:modelValue": N[0] || (N[0] = (R) => v.value = R)
|
|
1486
|
-
},
|
|
1502
|
+
}, b.$attrs, {
|
|
1487
1503
|
class: ["cl-block cl-border cl-duration-300 cl-h-full cl-mb-1 cl-transition cl-w-full focus:cl-outline-none", {
|
|
1488
|
-
"hover:!cl-border-grey-3":
|
|
1489
|
-
"!cl-cursor-default":
|
|
1490
|
-
"!cl-border-danger-default": !
|
|
1491
|
-
"!cl-border-primary-default":
|
|
1492
|
-
"cl-border-grey-0 focus:cl-border-blue-light":
|
|
1493
|
-
"!cl-p-2":
|
|
1494
|
-
"cl-p-3 cl-rounded-lg": !p(ke)(
|
|
1495
|
-
[`${
|
|
1504
|
+
"hover:!cl-border-grey-3": b.disabled === !1 && !p(ke)(b.inputType),
|
|
1505
|
+
"!cl-cursor-default": b.disabled,
|
|
1506
|
+
"!cl-border-danger-default": !j.value,
|
|
1507
|
+
"!cl-border-primary-default": j.value && b.highlightWhenValid,
|
|
1508
|
+
"cl-border-grey-0 focus:cl-border-blue-light": j.value && !p(ke)(b.inputType),
|
|
1509
|
+
"!cl-p-2": b.inputType === "checkbox" || b.inputType === "radio",
|
|
1510
|
+
"cl-p-3 cl-rounded-lg": !p(ke)(b.inputType),
|
|
1511
|
+
[`${b.inputSpecificClasses}`]: b.inputSpecificClasses !== ""
|
|
1496
1512
|
}],
|
|
1497
|
-
style:
|
|
1498
|
-
type:
|
|
1499
|
-
disabled:
|
|
1500
|
-
min:
|
|
1501
|
-
max:
|
|
1502
|
-
minlength: p(Je)(
|
|
1503
|
-
maxlength: p(Je)(
|
|
1504
|
-
step:
|
|
1505
|
-
placeholder:
|
|
1506
|
-
accept:
|
|
1507
|
-
name:
|
|
1508
|
-
autocomplete:
|
|
1513
|
+
style: ae(),
|
|
1514
|
+
type: b.inputType,
|
|
1515
|
+
disabled: b.disabled,
|
|
1516
|
+
min: b.min,
|
|
1517
|
+
max: b.max,
|
|
1518
|
+
minlength: p(Je)(b.inputType) ? b.min : 0,
|
|
1519
|
+
maxlength: p(Je)(b.inputType) ? b.max : 0,
|
|
1520
|
+
step: b.step,
|
|
1521
|
+
placeholder: u.value,
|
|
1522
|
+
accept: b.fileExtensions,
|
|
1523
|
+
name: b.group,
|
|
1524
|
+
autocomplete: b.autocomplete,
|
|
1509
1525
|
onClick: N[1] || (N[1] = (R) => J(R)),
|
|
1510
1526
|
onFocus: N[2] || (N[2] = (R) => e("focus")),
|
|
1511
1527
|
onBlur: N[3] || (N[3] = K((R) => {
|
|
1512
|
-
g(),
|
|
1528
|
+
g(), E();
|
|
1513
1529
|
}, ["self"])),
|
|
1514
1530
|
onMousewheelPassive: W,
|
|
1515
1531
|
onInput: N[4] || (N[4] = (R) => {
|
|
1516
|
-
e("input", R, p(Ze)(R,
|
|
1532
|
+
e("input", R, p(Ze)(R, b.inputType));
|
|
1517
1533
|
}),
|
|
1518
1534
|
onChange: $e
|
|
1519
|
-
}), null, 16,
|
|
1520
|
-
[
|
|
1521
|
-
]) : p(Ke)(
|
|
1535
|
+
}), null, 16, St)), [
|
|
1536
|
+
[il, v.value]
|
|
1537
|
+
]) : p(Ke)(b.inputType) ? (d(), z(p(ct), ie({ key: 1 }, b.$attrs, {
|
|
1522
1538
|
ref_key: "inputElement",
|
|
1523
|
-
ref:
|
|
1524
|
-
date:
|
|
1525
|
-
"onUpdate:date": N[5] || (N[5] = (R) =>
|
|
1539
|
+
ref: a,
|
|
1540
|
+
date: w.value,
|
|
1541
|
+
"onUpdate:date": N[5] || (N[5] = (R) => w.value = R),
|
|
1526
1542
|
class: ["cl-block cl-duration-300 cl-h-fit cl-mb-1 cl-rounded-lg cl-text-sm cl-transition cl-w-full focus:cl-outline-none", {
|
|
1527
|
-
"hover:cl-border-grey-3": !
|
|
1528
|
-
"!cl-border-danger-default": !
|
|
1529
|
-
"!cl-border-primary-default":
|
|
1543
|
+
"hover:cl-border-grey-3": !b.disabled,
|
|
1544
|
+
"!cl-border-danger-default": !j.value,
|
|
1545
|
+
"!cl-border-primary-default": j.value && b.highlightWhenValid
|
|
1530
1546
|
}],
|
|
1531
|
-
disabled:
|
|
1532
|
-
type: p(
|
|
1533
|
-
min:
|
|
1534
|
-
max:
|
|
1547
|
+
disabled: b.disabled,
|
|
1548
|
+
type: p($t)(b.inputType),
|
|
1549
|
+
min: i.value,
|
|
1550
|
+
max: y.value,
|
|
1535
1551
|
onBlur: K(g, ["self"]),
|
|
1536
1552
|
onFocus: N[6] || (N[6] = (R) => e("focus"))
|
|
1537
|
-
}), null, 16, ["date", "class", "disabled", "type", "min", "max", "onBlur"])) :
|
|
1538
|
-
|
|
1553
|
+
}), null, 16, ["date", "class", "disabled", "type", "min", "max", "onBlur"])) : b.inputType === "range" && typeof v.value == "number" ? (d(), h("div", Ot, [
|
|
1554
|
+
C(p(ht), {
|
|
1539
1555
|
ref_key: "inputElement",
|
|
1540
|
-
ref:
|
|
1556
|
+
ref: a,
|
|
1541
1557
|
value: v.value,
|
|
1542
1558
|
"onUpdate:value": N[7] || (N[7] = (R) => v.value = R),
|
|
1543
1559
|
min: c.value,
|
|
1544
1560
|
max: k.value,
|
|
1545
|
-
step:
|
|
1546
|
-
disabled:
|
|
1561
|
+
step: b.step,
|
|
1562
|
+
disabled: b.disabled,
|
|
1547
1563
|
"show-numeric-input": !1,
|
|
1548
1564
|
onBlur: K(g, ["self"]),
|
|
1549
1565
|
onFocus: N[8] || (N[8] = (R) => e("focus"))
|
|
1550
1566
|
}, null, 8, ["value", "min", "max", "step", "disabled", "onBlur"])
|
|
1551
1567
|
])) : M("", !0),
|
|
1552
|
-
|
|
1568
|
+
C(ge, {
|
|
1553
1569
|
name: "fade",
|
|
1554
1570
|
duration: 300
|
|
1555
1571
|
}, {
|
|
1556
1572
|
default: L(() => [
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1573
|
+
b.inputType === "number" && !b.disabled && b.showArrows ? U((d(), h("div", Et, [
|
|
1574
|
+
m("div", At, [
|
|
1575
|
+
C(p(q), {
|
|
1560
1576
|
icon: "ph:caret-up-bold",
|
|
1561
1577
|
class: "cl-bg-link-default cl-rounded-md cl-text-sm cl-text-white hover:cl-bg-link-light hover:cl-cursor-pointer",
|
|
1562
1578
|
onClick: fe,
|
|
@@ -1564,8 +1580,8 @@ const $t = { class: "cl-flex cl-justify-between" }, kt = { class: "cl-w-full" },
|
|
|
1564
1580
|
}, ["prevent"]))
|
|
1565
1581
|
})
|
|
1566
1582
|
]),
|
|
1567
|
-
|
|
1568
|
-
|
|
1583
|
+
m("div", jt, [
|
|
1584
|
+
C(p(q), {
|
|
1569
1585
|
icon: "ph:caret-down-bold",
|
|
1570
1586
|
class: "cl-bg-link-default cl-rounded-md cl-text-sm cl-text-white hover:cl-bg-link-light hover:cl-cursor-pointer",
|
|
1571
1587
|
onClick: he,
|
|
@@ -1574,21 +1590,21 @@ const $t = { class: "cl-flex cl-justify-between" }, kt = { class: "cl-w-full" },
|
|
|
1574
1590
|
})
|
|
1575
1591
|
])
|
|
1576
1592
|
], 512)), [
|
|
1577
|
-
[
|
|
1593
|
+
[B, n.value]
|
|
1578
1594
|
]) : M("", !0)
|
|
1579
1595
|
]),
|
|
1580
1596
|
_: 1
|
|
1581
1597
|
})
|
|
1582
1598
|
], 32),
|
|
1583
|
-
|
|
1584
|
-
!
|
|
1599
|
+
j.value && T.value ? (d(), h("div", Mt, _(T.value), 1)) : M("", !0),
|
|
1600
|
+
!j.value && ee.value.length > 0 && b.showValidationMessages ? (d(), h("div", It, _(ee.value), 1)) : M("", !0)
|
|
1585
1601
|
]));
|
|
1586
1602
|
}
|
|
1587
1603
|
});
|
|
1588
|
-
const
|
|
1604
|
+
const oe = /* @__PURE__ */ de(Nt, [["__scopeId", "data-v-90684093"]]), qt = { class: "cl-align-items-center cl-bg-black cl-bg-opacity-40 cl-bottom-0 cl-fixed cl-flex cl-h-screen cl-justify-center cl-left-0 cl-right-0 cl-top-0 cl-w-full cl-z-40" }, Dt = ["onKeypress"], Rt = { class: "cl-overflow-y-auto cl-overscroll-y-none cl-p-2 cl-w-full" }, Ut = {
|
|
1589
1605
|
inheritAttrs: !1
|
|
1590
|
-
},
|
|
1591
|
-
...
|
|
1606
|
+
}, nl = /* @__PURE__ */ D({
|
|
1607
|
+
...Ut,
|
|
1592
1608
|
__name: "cl-ui-modal",
|
|
1593
1609
|
props: {
|
|
1594
1610
|
headerColour: { default: "white" },
|
|
@@ -1598,21 +1614,21 @@ const re = /* @__PURE__ */ de(It, [["__scopeId", "data-v-90684093"]]), Nt = { cl
|
|
|
1598
1614
|
setup(t) {
|
|
1599
1615
|
const o = t, e = S(!1);
|
|
1600
1616
|
function l() {
|
|
1601
|
-
e.value = !0, document.addEventListener("keydown",
|
|
1617
|
+
e.value = !0, document.addEventListener("keydown", n);
|
|
1602
1618
|
}
|
|
1603
|
-
function
|
|
1604
|
-
o.preventClose || (e.value = !1, document.removeEventListener("keydown",
|
|
1619
|
+
function a() {
|
|
1620
|
+
o.preventClose || (e.value = !1, document.removeEventListener("keydown", n));
|
|
1605
1621
|
}
|
|
1606
|
-
function
|
|
1607
|
-
r.key === "Escape" &&
|
|
1622
|
+
function n(r) {
|
|
1623
|
+
r.key === "Escape" && a();
|
|
1608
1624
|
}
|
|
1609
|
-
return (r, s) => (
|
|
1610
|
-
|
|
1611
|
-
(
|
|
1612
|
-
|
|
1625
|
+
return (r, s) => (d(), h(x, null, [
|
|
1626
|
+
A(r.$slots, "trigger", le(re({ open: l }))),
|
|
1627
|
+
(d(), z(xe, { to: "body" }, [
|
|
1628
|
+
C(ge, { name: "fade" }, {
|
|
1613
1629
|
default: L(() => [
|
|
1614
|
-
|
|
1615
|
-
|
|
1630
|
+
U(m("div", qt, [
|
|
1631
|
+
m("div", ie(r.$attrs, {
|
|
1616
1632
|
class: ["cl-bg-white cl-flex cl-flex-wrap cl-max-h-[calc(100vh-8rem)] cl-mx-0 cl-my-auto cl-overflow-y-auto cl-overscroll-y-none cl-relative cl-rounded-lg cl-shadow-lg", {
|
|
1617
1633
|
"lg:cl-w-2/12 cl-w-10/12": r.size === "x-small",
|
|
1618
1634
|
"cl-w-6/12": r.size === "small",
|
|
@@ -1620,35 +1636,35 @@ const re = /* @__PURE__ */ de(It, [["__scopeId", "data-v-90684093"]]), Nt = { cl
|
|
|
1620
1636
|
"cl-w-10/12": r.size === "large"
|
|
1621
1637
|
}]
|
|
1622
1638
|
}), [
|
|
1623
|
-
|
|
1639
|
+
U(m("div", {
|
|
1624
1640
|
class: I(["cl-absolute cl-cursor-pointer cl-right-4 cl-top-4 cl-transition-colors cl-w-3", {
|
|
1625
1641
|
"cl-text-white hover:cl-text-off-white": r.headerColour === "secondary" || r.headerColour === "primary",
|
|
1626
1642
|
"cl-text-black hover:cl-text-grey-7": r.headerColour === "white"
|
|
1627
1643
|
}]),
|
|
1628
1644
|
tabindex: 0,
|
|
1629
|
-
onKeypress: Te(
|
|
1630
|
-
onClick:
|
|
1645
|
+
onKeypress: Te(a, ["enter"]),
|
|
1646
|
+
onClick: a
|
|
1631
1647
|
}, [
|
|
1632
|
-
|
|
1633
|
-
], 42,
|
|
1634
|
-
[
|
|
1648
|
+
C(p(q), { icon: "ph:x" })
|
|
1649
|
+
], 42, Dt), [
|
|
1650
|
+
[B, !r.preventClose]
|
|
1635
1651
|
]),
|
|
1636
|
-
|
|
1652
|
+
m("div", {
|
|
1637
1653
|
class: I(["cl-leading-[2.75rem] cl-min-h-12 cl-overflow-hidden cl-pl-3 cl-pr-8 cl-text-2xl cl-w-full", {
|
|
1638
1654
|
"cl-border-b cl-border-grey-2": r.headerColour === "white",
|
|
1639
1655
|
"cl-bg-secondary-default cl-text-white": r.headerColour === "secondary",
|
|
1640
1656
|
"cl-bg-primary-default cl-text-white": r.headerColour === "primary"
|
|
1641
1657
|
}])
|
|
1642
1658
|
}, [
|
|
1643
|
-
|
|
1659
|
+
A(r.$slots, "title")
|
|
1644
1660
|
], 2),
|
|
1645
|
-
|
|
1646
|
-
|
|
1661
|
+
m("div", Rt, [
|
|
1662
|
+
A(r.$slots, "default", le(re({ close: a })))
|
|
1647
1663
|
]),
|
|
1648
|
-
|
|
1664
|
+
A(r.$slots, "footer", le(re({ close: a })))
|
|
1649
1665
|
], 16)
|
|
1650
1666
|
], 512), [
|
|
1651
|
-
[
|
|
1667
|
+
[B, e.value]
|
|
1652
1668
|
])
|
|
1653
1669
|
]),
|
|
1654
1670
|
_: 3
|
|
@@ -1656,7 +1672,7 @@ const re = /* @__PURE__ */ de(It, [["__scopeId", "data-v-90684093"]]), Nt = { cl
|
|
|
1656
1672
|
]))
|
|
1657
1673
|
], 64));
|
|
1658
1674
|
}
|
|
1659
|
-
}),
|
|
1675
|
+
}), Bt = { class: "cl-bg-grey-0 cl-flex cl-p-1 cl-text-left" }, xt = {
|
|
1660
1676
|
key: 0,
|
|
1661
1677
|
class: "cl-w-1/2"
|
|
1662
1678
|
}, Se = /* @__PURE__ */ D({
|
|
@@ -1670,31 +1686,31 @@ const re = /* @__PURE__ */ de(It, [["__scopeId", "data-v-90684093"]]), Nt = { cl
|
|
|
1670
1686
|
"clear-object": null
|
|
1671
1687
|
},
|
|
1672
1688
|
setup(t) {
|
|
1673
|
-
return (o, e) => (
|
|
1674
|
-
o.additionalText !== "" ? (
|
|
1675
|
-
|
|
1689
|
+
return (o, e) => (d(), h("div", Bt, [
|
|
1690
|
+
o.additionalText !== "" ? (d(), h("div", xt, _(o.additionalText), 1)) : M("", !0),
|
|
1691
|
+
m("div", {
|
|
1676
1692
|
class: I({
|
|
1677
1693
|
"cl-w-1/2": o.additionalText !== "",
|
|
1678
1694
|
"cl-w-full": o.additionalText === ""
|
|
1679
1695
|
})
|
|
1680
1696
|
}, _(o.text), 3),
|
|
1681
|
-
|
|
1697
|
+
U(m("div", {
|
|
1682
1698
|
class: "cl-cursor-pointer cl-float-right",
|
|
1683
1699
|
onMousedown: e[0] || (e[0] = (l) => o.$emit("clear-object"))
|
|
1684
1700
|
}, [
|
|
1685
|
-
|
|
1701
|
+
C(p(q), {
|
|
1686
1702
|
class: "cl-mt-1 cl-transition-colors hover:cl-text-link-default",
|
|
1687
1703
|
icon: "ph:x"
|
|
1688
1704
|
})
|
|
1689
1705
|
], 544), [
|
|
1690
|
-
[
|
|
1706
|
+
[B, o.showClearButton]
|
|
1691
1707
|
])
|
|
1692
1708
|
]));
|
|
1693
1709
|
}
|
|
1694
|
-
}),
|
|
1710
|
+
}), zt = {
|
|
1695
1711
|
key: 0,
|
|
1696
1712
|
class: "cl-w-1/2"
|
|
1697
|
-
},
|
|
1713
|
+
}, Lt = { class: "cl-float-right cl-py-1" }, Qe = /* @__PURE__ */ D({
|
|
1698
1714
|
__name: "cl-ui-combo-box-selectable",
|
|
1699
1715
|
props: {
|
|
1700
1716
|
isCreateNewOption: { type: Boolean, default: !1 },
|
|
@@ -1709,57 +1725,57 @@ const re = /* @__PURE__ */ de(It, [["__scopeId", "data-v-90684093"]]), Nt = { cl
|
|
|
1709
1725
|
"option-highlighted": null
|
|
1710
1726
|
},
|
|
1711
1727
|
setup(t, { emit: o }) {
|
|
1712
|
-
const e = t, l =
|
|
1713
|
-
var
|
|
1714
|
-
return ((
|
|
1715
|
-
}),
|
|
1716
|
-
var
|
|
1717
|
-
return ((
|
|
1718
|
-
}),
|
|
1728
|
+
const e = t, l = O(() => {
|
|
1729
|
+
var f;
|
|
1730
|
+
return ((f = e.option) == null ? void 0 : f.name) ?? e.text;
|
|
1731
|
+
}), a = O(() => {
|
|
1732
|
+
var f;
|
|
1733
|
+
return ((f = e.option) == null ? void 0 : f.parentName) ?? "";
|
|
1734
|
+
}), n = S(!1);
|
|
1719
1735
|
function r() {
|
|
1720
|
-
var
|
|
1721
|
-
e.isCreateNewOption === !0 ? o("create-object") : o("select-object", (
|
|
1736
|
+
var f;
|
|
1737
|
+
e.isCreateNewOption === !0 ? o("create-object") : o("select-object", (f = e.option) == null ? void 0 : f.id);
|
|
1722
1738
|
}
|
|
1723
|
-
function s(
|
|
1724
|
-
|
|
1739
|
+
function s(f) {
|
|
1740
|
+
f === !0 ? (n.value = !0, o("option-highlighted", e.index)) : e.index !== e.selectedIndex && (n.value = !1);
|
|
1725
1741
|
}
|
|
1726
|
-
function
|
|
1727
|
-
e.selectedIndex === e.index ?
|
|
1742
|
+
function u() {
|
|
1743
|
+
e.selectedIndex === e.index ? n.value = !0 : n.value = !1;
|
|
1728
1744
|
}
|
|
1729
|
-
return H(() => e.selectedIndex, () =>
|
|
1730
|
-
var
|
|
1731
|
-
return
|
|
1745
|
+
return H(() => e.selectedIndex, () => u()), (f, v) => {
|
|
1746
|
+
var w, i;
|
|
1747
|
+
return d(), h("div", {
|
|
1732
1748
|
class: I(["cl-cursor-pointer cl-duration-75 cl-flex cl-p-1 cl-text-left cl-transition-colors", {
|
|
1733
|
-
"cl-bg-white":
|
|
1734
|
-
"cl-bg-link-light cl-text-white cl-opacity-90":
|
|
1735
|
-
"cl-bg-primary-default cl-text-white cl-opacity-90":
|
|
1749
|
+
"cl-bg-white": n.value === !1,
|
|
1750
|
+
"cl-bg-link-light cl-text-white cl-opacity-90": n.value && f.isCreateNewOption === !1,
|
|
1751
|
+
"cl-bg-primary-default cl-text-white cl-opacity-90": n.value && f.isCreateNewOption
|
|
1736
1752
|
}]),
|
|
1737
1753
|
onMousedown: r,
|
|
1738
|
-
onMousemove: v[0] || (v[0] = (
|
|
1739
|
-
onMouseleave: v[1] || (v[1] = (
|
|
1754
|
+
onMousemove: v[0] || (v[0] = (y) => s(!0)),
|
|
1755
|
+
onMouseleave: v[1] || (v[1] = (y) => s(!1))
|
|
1740
1756
|
}, [
|
|
1741
|
-
|
|
1742
|
-
|
|
1757
|
+
f.option !== null && ((w = f.option) == null ? void 0 : w.parentId) !== 0 && ((i = f.option) == null ? void 0 : i.parentId) !== void 0 ? (d(), h("div", zt, _(a.value), 1)) : M("", !0),
|
|
1758
|
+
m("div", {
|
|
1743
1759
|
class: I({
|
|
1744
|
-
"cl-w-1/2":
|
|
1745
|
-
"cl-w-full":
|
|
1760
|
+
"cl-w-1/2": a.value !== "",
|
|
1761
|
+
"cl-w-full": a.value === ""
|
|
1746
1762
|
})
|
|
1747
1763
|
}, _(l.value), 3),
|
|
1748
|
-
|
|
1749
|
-
|
|
1764
|
+
U(m("div", Lt, [
|
|
1765
|
+
C(p(q), {
|
|
1750
1766
|
class: I(["cl-transition-colors", {
|
|
1751
|
-
"cl-text-white":
|
|
1752
|
-
"cl-text-black ": !
|
|
1767
|
+
"cl-text-white": n.value,
|
|
1768
|
+
"cl-text-black ": !n.value
|
|
1753
1769
|
}]),
|
|
1754
1770
|
icon: "ph:plus"
|
|
1755
1771
|
}, null, 8, ["class"])
|
|
1756
1772
|
], 512), [
|
|
1757
|
-
[
|
|
1773
|
+
[B, f.isCreateNewOption]
|
|
1758
1774
|
])
|
|
1759
1775
|
], 34);
|
|
1760
1776
|
};
|
|
1761
1777
|
}
|
|
1762
|
-
}),
|
|
1778
|
+
}), Pt = ["onKeyup"], Ft = { class: "cl-flex" }, Vt = { key: 5 }, Gt = /* @__PURE__ */ D({
|
|
1763
1779
|
__name: "cl-ui-combo-box-search",
|
|
1764
1780
|
props: {
|
|
1765
1781
|
loading: { type: Boolean, default: !1 },
|
|
@@ -1780,130 +1796,130 @@ const re = /* @__PURE__ */ de(It, [["__scopeId", "data-v-90684093"]]), Nt = { cl
|
|
|
1780
1796
|
"hide-dropdown": null
|
|
1781
1797
|
},
|
|
1782
1798
|
setup(t, { emit: o }) {
|
|
1783
|
-
const e = t, { t: l } =
|
|
1784
|
-
function
|
|
1785
|
-
(
|
|
1799
|
+
const e = t, { t: l } = te(), a = S(""), n = S(!1), r = S(-1), s = O(() => n.value ? -1 : 0), u = S();
|
|
1800
|
+
function f($) {
|
|
1801
|
+
($ === void 0 || ($ == null ? void 0 : $.code.startsWith("Arrow")) === !1 && ($ == null ? void 0 : $.code.startsWith("Control")) === !1 && ($ == null ? void 0 : $.code.startsWith("Shift")) === !1 && ($ == null ? void 0 : $.code.startsWith("Tab")) === !1 && ($ == null ? void 0 : $.code) !== "Enter") && (o("search", a.value), r.value = -2);
|
|
1786
1802
|
}
|
|
1787
|
-
function v(
|
|
1788
|
-
o("select-object",
|
|
1803
|
+
function v($) {
|
|
1804
|
+
o("select-object", $);
|
|
1789
1805
|
}
|
|
1790
|
-
function
|
|
1791
|
-
o("create-object",
|
|
1806
|
+
function w() {
|
|
1807
|
+
o("create-object", a.value), i();
|
|
1792
1808
|
}
|
|
1793
|
-
function
|
|
1809
|
+
function i() {
|
|
1794
1810
|
o("hide-dropdown");
|
|
1795
1811
|
}
|
|
1796
|
-
function $
|
|
1797
|
-
r.value < e.results.length - 1 ? (r.value === -2 &&
|
|
1812
|
+
function y($) {
|
|
1813
|
+
r.value < e.results.length - 1 ? (r.value === -2 && a.value === "" && r.value++, r.value++) : r.value = $, j();
|
|
1798
1814
|
}
|
|
1799
|
-
function c(
|
|
1800
|
-
r.value >
|
|
1815
|
+
function c($) {
|
|
1816
|
+
r.value > $ ? r.value-- : r.value = e.results.length - 1, j();
|
|
1801
1817
|
}
|
|
1802
1818
|
function k() {
|
|
1803
|
-
r.value >= 0 && e.results !== void 0 ? v(e.results[r.value].id) : r.value === -1 &&
|
|
1819
|
+
r.value >= 0 && e.results !== void 0 ? v(e.results[r.value].id) : r.value === -1 && w();
|
|
1804
1820
|
}
|
|
1805
|
-
function
|
|
1806
|
-
if (
|
|
1821
|
+
function T($) {
|
|
1822
|
+
if ($.key === "Tab" && $.shiftKey === !0) {
|
|
1807
1823
|
const P = document.getElementsByTagName("input");
|
|
1808
|
-
let
|
|
1824
|
+
let ae = -1;
|
|
1809
1825
|
for (let J = 0; J < P.length; J++)
|
|
1810
|
-
P[J] ===
|
|
1811
|
-
|
|
1826
|
+
P[J] === $.target && (ae = J - 1);
|
|
1827
|
+
ae >= 0 && (P[ae].focus(), i());
|
|
1812
1828
|
}
|
|
1813
1829
|
}
|
|
1814
|
-
function
|
|
1815
|
-
var
|
|
1816
|
-
e.results && e.results.length > 1 && ((
|
|
1830
|
+
function j() {
|
|
1831
|
+
var $;
|
|
1832
|
+
e.results && e.results.length > 1 && (($ = u.value) == null || $.scrollTo(0, (r.value + 1) * 34 - 34 * 2));
|
|
1817
1833
|
}
|
|
1818
1834
|
function V() {
|
|
1819
|
-
let
|
|
1820
|
-
e.results !== null && e.results.length === 1 && (
|
|
1835
|
+
let $ = !1;
|
|
1836
|
+
e.results !== null && e.results.length === 1 && ($ = a.value.toUpperCase().trim() === e.results[0].name.toUpperCase().trim()), n.value = e.canCreateNewObject === !0 && e.errorMessage === "" && a.value.trim() !== "" && $ === !1;
|
|
1821
1837
|
}
|
|
1822
|
-
function
|
|
1823
|
-
r.value =
|
|
1838
|
+
function ee($) {
|
|
1839
|
+
r.value = $;
|
|
1824
1840
|
}
|
|
1825
1841
|
function ue() {
|
|
1826
|
-
e.isVisible === !0 && (
|
|
1827
|
-
var
|
|
1828
|
-
return (P = (
|
|
1842
|
+
e.isVisible === !0 && (a.value = "", f(), be(() => {
|
|
1843
|
+
var $, P;
|
|
1844
|
+
return (P = ($ = u.value) == null ? void 0 : $.querySelector("input")) == null ? void 0 : P.focus();
|
|
1829
1845
|
}));
|
|
1830
1846
|
}
|
|
1831
1847
|
return H(() => e.results, () => V()), H(() => e.errorMessage, () => V()), H(() => e.isVisible, () => ue()), Ce(() => {
|
|
1832
|
-
var
|
|
1833
|
-
return (
|
|
1848
|
+
var $;
|
|
1849
|
+
return ($ = u.value) == null ? void 0 : $.addEventListener("keydown", T);
|
|
1834
1850
|
}), Ae(() => {
|
|
1835
|
-
var
|
|
1836
|
-
return (
|
|
1837
|
-
}), (
|
|
1838
|
-
var
|
|
1839
|
-
return
|
|
1851
|
+
var $;
|
|
1852
|
+
return ($ = u.value) == null ? void 0 : $.removeEventListener("keydown", T);
|
|
1853
|
+
}), ($, P) => {
|
|
1854
|
+
var ae;
|
|
1855
|
+
return d(), h("div", {
|
|
1840
1856
|
ref_key: "container",
|
|
1841
|
-
ref:
|
|
1857
|
+
ref: u,
|
|
1842
1858
|
class: "cl-bg-white cl-border cl-border-collapse cl-border-grey-0 cl-h-52 cl-overflow-y-auto cl-overscroll-y-none cl-p-2 cl-rounded cl-text-sm",
|
|
1843
1859
|
onKeydown: [
|
|
1844
1860
|
P[2] || (P[2] = Te(K((J) => c(s.value), ["prevent", "stop"]), ["up"])),
|
|
1845
|
-
P[3] || (P[3] = Te(K((J) =>
|
|
1861
|
+
P[3] || (P[3] = Te(K((J) => y(s.value), ["prevent", "stop"]), ["down"]))
|
|
1846
1862
|
],
|
|
1847
1863
|
onKeyup: Te(K(k, ["prevent", "stop"]), ["enter"])
|
|
1848
1864
|
}, [
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
modelValue:
|
|
1852
|
-
"onUpdate:modelValue": P[0] || (P[0] = (J) =>
|
|
1865
|
+
m("div", Ft, [
|
|
1866
|
+
C(oe, {
|
|
1867
|
+
modelValue: a.value,
|
|
1868
|
+
"onUpdate:modelValue": P[0] || (P[0] = (J) => a.value = J),
|
|
1853
1869
|
class: "!cl-mr-0 cl-mb-1 cl-w-full",
|
|
1854
1870
|
"input-type": "text",
|
|
1855
|
-
"placeholder-text": p(l)("comboBox.searchHint", { object:
|
|
1856
|
-
onKeyup:
|
|
1857
|
-
onBlur:
|
|
1871
|
+
"placeholder-text": p(l)("comboBox.searchHint", { object: $.objectType }),
|
|
1872
|
+
onKeyup: f,
|
|
1873
|
+
onBlur: i
|
|
1858
1874
|
}, null, 8, ["modelValue", "placeholder-text"]),
|
|
1859
|
-
|
|
1860
|
-
[
|
|
1875
|
+
U(C(je, { class: "cl-absolute cl-ml-2 cl-mt-11" }, null, 512), [
|
|
1876
|
+
[B, $.loading]
|
|
1861
1877
|
])
|
|
1862
1878
|
]),
|
|
1863
|
-
|
|
1879
|
+
$.currentObjectName !== "" ? (d(), z(Se, {
|
|
1864
1880
|
key: 0,
|
|
1865
|
-
"show-clear-button":
|
|
1866
|
-
text:
|
|
1867
|
-
onClearObject: P[1] || (P[1] = (J) =>
|
|
1881
|
+
"show-clear-button": $.canClearSelectedObject,
|
|
1882
|
+
text: $.currentObjectName,
|
|
1883
|
+
onClearObject: P[1] || (P[1] = (J) => $.$emit("clear-object"))
|
|
1868
1884
|
}, null, 8, ["show-clear-button", "text"])) : M("", !0),
|
|
1869
|
-
|
|
1885
|
+
$.objectParentType !== "" && $.results !== void 0 && $.results.length > 0 && $.errorMessage === "" ? (d(), z(Se, {
|
|
1870
1886
|
key: 1,
|
|
1871
|
-
text:
|
|
1872
|
-
"additional-text":
|
|
1887
|
+
text: $.objectType,
|
|
1888
|
+
"additional-text": $.objectParentType,
|
|
1873
1889
|
class: "cl-bg-grey-2 cl-mt-1"
|
|
1874
1890
|
}, null, 8, ["text", "additional-text"])) : M("", !0),
|
|
1875
|
-
|
|
1891
|
+
$.results !== null && ((ae = $.results) == null ? void 0 : ae.length) === 0 && a.value.trim() !== "" && $.canCreateNewObject === !1 && $.errorMessage === "" ? (d(), z(Se, {
|
|
1876
1892
|
key: 2,
|
|
1877
|
-
text: p(l)("comboBox.noResults", { value:
|
|
1893
|
+
text: p(l)("comboBox.noResults", { value: a.value })
|
|
1878
1894
|
}, null, 8, ["text"])) : M("", !0),
|
|
1879
|
-
|
|
1895
|
+
$.errorMessage !== "" ? (d(), z(Se, {
|
|
1880
1896
|
key: 3,
|
|
1881
1897
|
class: "!cl-bg-danger-light cl-border-danger-light cl-rounded cl-text-danger-dark",
|
|
1882
|
-
text: p(l)("comboBox.errorMessage", { error:
|
|
1898
|
+
text: p(l)("comboBox.errorMessage", { error: $.errorMessage })
|
|
1883
1899
|
}, null, 8, ["text"])) : M("", !0),
|
|
1884
|
-
|
|
1900
|
+
n.value ? (d(), z(Qe, {
|
|
1885
1901
|
key: 4,
|
|
1886
1902
|
"is-create-new-option": !0,
|
|
1887
|
-
text: p(l)("comboBox.addPrompt", { value:
|
|
1903
|
+
text: p(l)("comboBox.addPrompt", { value: a.value, object: $.objectType }),
|
|
1888
1904
|
index: -1,
|
|
1889
1905
|
"selected-index": r.value,
|
|
1890
|
-
onCreateObject:
|
|
1891
|
-
onOptionHighlighted:
|
|
1906
|
+
onCreateObject: w,
|
|
1907
|
+
onOptionHighlighted: ee
|
|
1892
1908
|
}, null, 8, ["text", "selected-index"])) : M("", !0),
|
|
1893
|
-
|
|
1894
|
-
(
|
|
1909
|
+
$.errorMessage === "" && $.results !== null ? (d(), h("div", Vt, [
|
|
1910
|
+
(d(!0), h(x, null, Y($.results, (J, fe) => (d(), z(Qe, {
|
|
1895
1911
|
key: fe,
|
|
1896
1912
|
option: J,
|
|
1897
1913
|
index: fe,
|
|
1898
1914
|
"selected-index": r.value,
|
|
1899
1915
|
onSelectObject: v,
|
|
1900
|
-
onOptionHighlighted:
|
|
1916
|
+
onOptionHighlighted: ee
|
|
1901
1917
|
}, null, 8, ["option", "index", "selected-index"]))), 128))
|
|
1902
1918
|
])) : M("", !0)
|
|
1903
|
-
], 40,
|
|
1919
|
+
], 40, Pt);
|
|
1904
1920
|
};
|
|
1905
1921
|
}
|
|
1906
|
-
}),
|
|
1922
|
+
}), Ht = { class: "cl-flex" }, Wt = { class: "cl-relative cl-right-20 cl-top-0.5" }, Jt = { class: "cl-absolute cl-flex cl-float-right cl-font-semibold cl-mt-2 cl-text-danger-default cl-text-sm cl-z-10" }, Kt = { class: "cl-ml-4 cl-w-11/12" }, Zt = { class: "cl-p-2 cl-text-right cl-w-full" }, Qt = /* @__PURE__ */ D({
|
|
1907
1923
|
__name: "cl-ui-combo-box",
|
|
1908
1924
|
props: {
|
|
1909
1925
|
loading: { type: Boolean, default: !1 },
|
|
@@ -1929,78 +1945,78 @@ const re = /* @__PURE__ */ de(It, [["__scopeId", "data-v-90684093"]]), Nt = { cl
|
|
|
1929
1945
|
"update:current-object": null
|
|
1930
1946
|
},
|
|
1931
1947
|
setup(t, { expose: o, emit: e }) {
|
|
1932
|
-
const l = t, { t:
|
|
1948
|
+
const l = t, { t: a } = te(), n = S(!1), r = O({
|
|
1933
1949
|
get: () => l.currentObject,
|
|
1934
1950
|
set: (g) => e("update:current-object", g)
|
|
1935
|
-
}), s = S(null),
|
|
1951
|
+
}), s = S(null), u = S(null), f = O(() => fe()), v = S(""), w = S(""), i = S(), y = S(!0);
|
|
1936
1952
|
function c(g) {
|
|
1937
|
-
var
|
|
1938
|
-
l.disabled || (typeof g < "u" ?
|
|
1953
|
+
var E;
|
|
1954
|
+
l.disabled || (typeof g < "u" ? n.value = g : n.value = !n.value), (E = s.value) == null || E.blur();
|
|
1939
1955
|
}
|
|
1940
1956
|
function k(g) {
|
|
1941
1957
|
v.value = g, e("search", g);
|
|
1942
1958
|
}
|
|
1943
|
-
function
|
|
1944
|
-
|
|
1959
|
+
function T(g) {
|
|
1960
|
+
w.value = g, e("search-parent", g);
|
|
1945
1961
|
}
|
|
1946
|
-
function
|
|
1962
|
+
function j() {
|
|
1947
1963
|
r.value = null, c(!1);
|
|
1948
1964
|
}
|
|
1949
1965
|
function V(g) {
|
|
1950
|
-
const
|
|
1951
|
-
r.value =
|
|
1966
|
+
const E = ee(g);
|
|
1967
|
+
r.value = E, c(!1);
|
|
1952
1968
|
}
|
|
1953
|
-
function
|
|
1954
|
-
let
|
|
1969
|
+
function ee(g) {
|
|
1970
|
+
let E = null;
|
|
1955
1971
|
if (l.results !== null) {
|
|
1956
1972
|
for (let W = 0; W < l.results.length; W++)
|
|
1957
1973
|
if (l.results[W].id === g) {
|
|
1958
|
-
|
|
1974
|
+
E = l.results[W];
|
|
1959
1975
|
break;
|
|
1960
1976
|
}
|
|
1961
1977
|
}
|
|
1962
|
-
return
|
|
1978
|
+
return E;
|
|
1963
1979
|
}
|
|
1964
1980
|
function ue() {
|
|
1965
1981
|
var g;
|
|
1966
|
-
|
|
1982
|
+
i.value = {
|
|
1967
1983
|
name: v.value,
|
|
1968
|
-
parentId: ((g =
|
|
1969
|
-
}, e("create-object",
|
|
1984
|
+
parentId: ((g = u.value) == null ? void 0 : g.id) ?? 0
|
|
1985
|
+
}, e("create-object", i.value);
|
|
1970
1986
|
}
|
|
1971
|
-
function
|
|
1972
|
-
|
|
1973
|
-
name:
|
|
1987
|
+
function $() {
|
|
1988
|
+
i.value = {
|
|
1989
|
+
name: w.value,
|
|
1974
1990
|
parentId: 0
|
|
1975
|
-
}, e("create-parent-object",
|
|
1991
|
+
}, e("create-parent-object", i.value);
|
|
1976
1992
|
}
|
|
1977
1993
|
function P() {
|
|
1978
|
-
var g,
|
|
1994
|
+
var g, E;
|
|
1979
1995
|
(g = l.objectCreatedResponse) != null && g.error ? Ge({
|
|
1980
|
-
message:
|
|
1996
|
+
message: a("comboBox.createFailed", { name: v.value, error: l.objectCreatedResponse.error }),
|
|
1981
1997
|
colour: "danger",
|
|
1982
1998
|
duration: 1e4
|
|
1983
|
-
}) : (
|
|
1999
|
+
}) : (E = l.objectCreatedResponse) != null && E.id && J();
|
|
1984
2000
|
}
|
|
1985
|
-
function
|
|
2001
|
+
function ae() {
|
|
1986
2002
|
var g;
|
|
1987
|
-
(g = l.parentObjectCreatedResponse) != null && g.id && (
|
|
2003
|
+
(g = l.parentObjectCreatedResponse) != null && g.id && (u.value = {
|
|
1988
2004
|
id: l.parentObjectCreatedResponse.id,
|
|
1989
2005
|
name: l.parentObjectCreatedResponse.name ?? ""
|
|
1990
2006
|
});
|
|
1991
2007
|
}
|
|
1992
2008
|
function J() {
|
|
1993
|
-
var
|
|
2009
|
+
var E, W, F, $e, b;
|
|
1994
2010
|
Ge({
|
|
1995
|
-
message:
|
|
2011
|
+
message: a("comboBox.createSuccessful", { object: l.objectType, name: ((E = l.objectCreatedResponse) == null ? void 0 : E.name) ?? "" }),
|
|
1996
2012
|
colour: "primary",
|
|
1997
2013
|
duration: 1e4
|
|
1998
2014
|
});
|
|
1999
2015
|
let g = "";
|
|
2000
|
-
|
|
2016
|
+
u.value && u.value.id === ((W = l.objectCreatedResponse) == null ? void 0 : W.parentId) && (g = u.value.name), r.value = {
|
|
2001
2017
|
id: ((F = l.objectCreatedResponse) == null ? void 0 : F.id) ?? 0,
|
|
2002
2018
|
name: (($e = l.objectCreatedResponse) == null ? void 0 : $e.name) ?? "",
|
|
2003
|
-
parentId: ((
|
|
2019
|
+
parentId: ((b = l.objectCreatedResponse) == null ? void 0 : b.parentId) ?? 0,
|
|
2004
2020
|
parentName: g
|
|
2005
2021
|
};
|
|
2006
2022
|
}
|
|
@@ -2010,79 +2026,79 @@ const re = /* @__PURE__ */ de(It, [["__scopeId", "data-v-90684093"]]), Nt = { cl
|
|
|
2010
2026
|
}
|
|
2011
2027
|
function he() {
|
|
2012
2028
|
let g = !0;
|
|
2013
|
-
v.value === "" && (g = !1), l.objectParentType !== "" &&
|
|
2029
|
+
v.value === "" && (g = !1), l.objectParentType !== "" && u.value === null && (g = !1), y.value = g;
|
|
2014
2030
|
}
|
|
2015
|
-
H(() => l.objectCreatedResponse, () => P()), H(() => l.parentObjectCreatedResponse, () =>
|
|
2031
|
+
H(() => l.objectCreatedResponse, () => P()), H(() => l.parentObjectCreatedResponse, () => ae()), H(() => v.value, () => he()), H(() => u.value, () => he()), o({
|
|
2016
2032
|
focus() {
|
|
2017
2033
|
var g;
|
|
2018
2034
|
(g = s.value) == null || g.focus();
|
|
2019
2035
|
}
|
|
2020
2036
|
});
|
|
2021
2037
|
const ve = S();
|
|
2022
|
-
return Le(ve, () => c(!1)), (g,
|
|
2023
|
-
const W =
|
|
2024
|
-
return
|
|
2038
|
+
return Le(ve, () => c(!1)), (g, E) => {
|
|
2039
|
+
const W = ul("cl-ui-combo-box", !0);
|
|
2040
|
+
return d(), h("div", {
|
|
2025
2041
|
ref_key: "outsideRef",
|
|
2026
2042
|
ref: ve
|
|
2027
2043
|
}, [
|
|
2028
|
-
|
|
2029
|
-
|
|
2044
|
+
m("div", Ht, [
|
|
2045
|
+
C(oe, {
|
|
2030
2046
|
ref_key: "inputRef",
|
|
2031
2047
|
ref: s,
|
|
2032
|
-
modelValue:
|
|
2033
|
-
"onUpdate:modelValue":
|
|
2048
|
+
modelValue: f.value,
|
|
2049
|
+
"onUpdate:modelValue": E[0] || (E[0] = (F) => f.value = F),
|
|
2034
2050
|
class: I(["!cl-mr-0 cl-mb-0 cl-rounded-r-none cl-w-full cl-z-10", {
|
|
2035
2051
|
"cl-cursor-pointer": g.disabled === !1
|
|
2036
2052
|
}]),
|
|
2037
2053
|
"input-type": "text",
|
|
2038
|
-
"placeholder-text": p(
|
|
2039
|
-
onFocus:
|
|
2054
|
+
"placeholder-text": p(a)("comboBox.emptyHintText", { object: g.objectType }),
|
|
2055
|
+
onFocus: E[1] || (E[1] = (F) => {
|
|
2040
2056
|
c(), g.$emit("focus");
|
|
2041
2057
|
})
|
|
2042
2058
|
}, null, 8, ["modelValue", "class", "placeholder-text"]),
|
|
2043
|
-
|
|
2044
|
-
|
|
2045
|
-
Q(_(p(
|
|
2046
|
-
|
|
2059
|
+
U(m("div", Wt, [
|
|
2060
|
+
m("div", Jt, [
|
|
2061
|
+
Q(_(p(a)("comboBox.required")) + " ", 1),
|
|
2062
|
+
C(p(q), {
|
|
2047
2063
|
class: "cl-ml-1 cl-mt-1",
|
|
2048
2064
|
icon: "ph:warning"
|
|
2049
2065
|
})
|
|
2050
2066
|
])
|
|
2051
2067
|
], 512), [
|
|
2052
|
-
[
|
|
2068
|
+
[B, g.required && g.disabled === !1 && g.currentObject === null]
|
|
2053
2069
|
]),
|
|
2054
|
-
|
|
2070
|
+
n.value ? (d(), h("div", {
|
|
2055
2071
|
key: 1,
|
|
2056
2072
|
class: I(["cl-bg-white cl-border cl-border-grey-1 cl-float-right cl-h-10 cl-rounded cl-rounded-l-none cl-text-grey-3 cl-transition-colors cl-w-[27px] hover:cl-bg-link-light hover:cl-opacity-90 hover:cl-text-white", {
|
|
2057
2073
|
"cl-cursor-default": g.disabled,
|
|
2058
2074
|
"cl-cursor-pointer": g.disabled === !1
|
|
2059
2075
|
}]),
|
|
2060
|
-
onClick:
|
|
2076
|
+
onClick: E[3] || (E[3] = (F) => c(!1))
|
|
2061
2077
|
}, [
|
|
2062
|
-
|
|
2078
|
+
C(p(q), {
|
|
2063
2079
|
icon: "ph:caret-up-bold",
|
|
2064
2080
|
class: "cl-ml-[5px] cl-mt-[12px]"
|
|
2065
2081
|
})
|
|
2066
|
-
], 2)) : (
|
|
2082
|
+
], 2)) : (d(), h("div", {
|
|
2067
2083
|
key: 0,
|
|
2068
2084
|
class: I(["cl-bg-white cl-border cl-border-grey-1 cl-float-right cl-h-10 cl-rounded cl-rounded-l-none cl-text-grey-3 cl-transition-colors cl-w-[27px] hover:cl-bg-link-light hover:cl-opacity-90 hover:cl-text-white", {
|
|
2069
2085
|
"cl-cursor-default": g.disabled,
|
|
2070
2086
|
"cl-cursor-pointer": g.disabled === !1
|
|
2071
2087
|
}]),
|
|
2072
|
-
onClick:
|
|
2088
|
+
onClick: E[2] || (E[2] = (F) => c(!0))
|
|
2073
2089
|
}, [
|
|
2074
|
-
|
|
2090
|
+
C(p(q), {
|
|
2075
2091
|
icon: "ph:caret-down-bold",
|
|
2076
2092
|
class: "cl-ml-[5px] cl-mt-[12px]"
|
|
2077
2093
|
})
|
|
2078
2094
|
], 2))
|
|
2079
2095
|
]),
|
|
2080
|
-
|
|
2096
|
+
C(nl, { size: "x-small" }, {
|
|
2081
2097
|
title: L(() => [
|
|
2082
|
-
Q(_(p(
|
|
2098
|
+
Q(_(p(a)("comboBox.createTitle", { object: g.objectType })), 1)
|
|
2083
2099
|
]),
|
|
2084
2100
|
trigger: L(({ open: F }) => [
|
|
2085
|
-
|
|
2101
|
+
U(C(Gt, {
|
|
2086
2102
|
"can-create-new-object": g.canCreateNewObject,
|
|
2087
2103
|
"can-clear-selected-object": g.canClearSelectedObject,
|
|
2088
2104
|
loading: g.loading,
|
|
@@ -2090,50 +2106,50 @@ const re = /* @__PURE__ */ de(It, [["__scopeId", "data-v-90684093"]]), Nt = { cl
|
|
|
2090
2106
|
"object-type": g.objectType,
|
|
2091
2107
|
"object-parent-type": g.objectParentType,
|
|
2092
2108
|
"error-message": g.errorMessage,
|
|
2093
|
-
"current-object-name":
|
|
2094
|
-
"is-visible":
|
|
2109
|
+
"current-object-name": f.value,
|
|
2110
|
+
"is-visible": n.value,
|
|
2095
2111
|
onCreateObject: F,
|
|
2096
2112
|
onSelectObject: V,
|
|
2097
|
-
onClearObject:
|
|
2113
|
+
onClearObject: j,
|
|
2098
2114
|
onSearch: k
|
|
2099
2115
|
}, null, 8, ["can-create-new-object", "can-clear-selected-object", "loading", "results", "object-type", "object-parent-type", "error-message", "current-object-name", "is-visible", "onCreateObject"]), [
|
|
2100
|
-
[
|
|
2116
|
+
[B, n.value]
|
|
2101
2117
|
])
|
|
2102
2118
|
]),
|
|
2103
2119
|
footer: L(({ close: F }) => [
|
|
2104
|
-
|
|
2105
|
-
|
|
2120
|
+
m("div", Zt, [
|
|
2121
|
+
C(me, {
|
|
2106
2122
|
class: "cl-mr-3",
|
|
2107
2123
|
colour: "default",
|
|
2108
2124
|
size: "small",
|
|
2109
2125
|
onClick: F
|
|
2110
2126
|
}, {
|
|
2111
2127
|
default: L(() => [
|
|
2112
|
-
Q(_(p(
|
|
2128
|
+
Q(_(p(a)("comboBox.cancel")), 1)
|
|
2113
2129
|
]),
|
|
2114
2130
|
_: 2
|
|
2115
2131
|
}, 1032, ["onClick"]),
|
|
2116
|
-
|
|
2132
|
+
C(me, {
|
|
2117
2133
|
colour: "primary",
|
|
2118
2134
|
size: "small",
|
|
2119
|
-
disabled:
|
|
2135
|
+
disabled: !y.value,
|
|
2120
2136
|
onClick: ($e) => {
|
|
2121
2137
|
ue(), F();
|
|
2122
2138
|
}
|
|
2123
2139
|
}, {
|
|
2124
2140
|
default: L(() => [
|
|
2125
|
-
Q(_(p(
|
|
2141
|
+
Q(_(p(a)("comboBox.create")), 1)
|
|
2126
2142
|
]),
|
|
2127
2143
|
_: 2
|
|
2128
2144
|
}, 1032, ["disabled", "onClick"])
|
|
2129
2145
|
])
|
|
2130
2146
|
]),
|
|
2131
2147
|
default: L(() => [
|
|
2132
|
-
|
|
2133
|
-
g.objectParentType ? (
|
|
2148
|
+
m("div", Kt, [
|
|
2149
|
+
g.objectParentType ? (d(), z(W, {
|
|
2134
2150
|
key: 0,
|
|
2135
|
-
"current-object":
|
|
2136
|
-
"onUpdate:currentObject":
|
|
2151
|
+
"current-object": u.value,
|
|
2152
|
+
"onUpdate:currentObject": E[4] || (E[4] = (F) => u.value = F),
|
|
2137
2153
|
class: "cl-mt-3",
|
|
2138
2154
|
results: g.parentResults,
|
|
2139
2155
|
loading: g.loading,
|
|
@@ -2142,13 +2158,13 @@ const re = /* @__PURE__ */ de(It, [["__scopeId", "data-v-90684093"]]), Nt = { cl
|
|
|
2142
2158
|
"can-create-new-object": g.canCreateNewObject,
|
|
2143
2159
|
"can-clear-selected-object": g.canClearSelectedObject,
|
|
2144
2160
|
"error-message": g.errorMessage,
|
|
2145
|
-
onSearch:
|
|
2146
|
-
onCreateObject:
|
|
2161
|
+
onSearch: T,
|
|
2162
|
+
onCreateObject: $
|
|
2147
2163
|
}, null, 8, ["current-object", "results", "loading", "object-type", "object-created-response", "can-create-new-object", "can-clear-selected-object", "error-message"])) : M("", !0),
|
|
2148
|
-
|
|
2164
|
+
C(oe, {
|
|
2149
2165
|
modelValue: v.value,
|
|
2150
|
-
"onUpdate:modelValue":
|
|
2151
|
-
label: p(
|
|
2166
|
+
"onUpdate:modelValue": E[5] || (E[5] = (F) => v.value = F),
|
|
2167
|
+
label: p(a)("comboBox.createProperty"),
|
|
2152
2168
|
class: "cl-mb-2 cl-pt-3 cl-w-full",
|
|
2153
2169
|
"input-type": "text"
|
|
2154
2170
|
}, null, 8, ["modelValue", "label"])
|
|
@@ -2160,35 +2176,35 @@ const re = /* @__PURE__ */ de(It, [["__scopeId", "data-v-90684093"]]), Nt = { cl
|
|
|
2160
2176
|
};
|
|
2161
2177
|
}
|
|
2162
2178
|
});
|
|
2163
|
-
function
|
|
2179
|
+
function Yt(t) {
|
|
2164
2180
|
return typeof t.id == "number" && typeof t.name == "string";
|
|
2165
2181
|
}
|
|
2166
|
-
function
|
|
2182
|
+
function Xt(t) {
|
|
2167
2183
|
return typeof t.name == "string";
|
|
2168
2184
|
}
|
|
2169
|
-
const
|
|
2185
|
+
const eo = {}, lo = { class: "cl-flex cl-flex-wrap cl-left-0 cl-mt-4 cl-w-full" }, to = {
|
|
2170
2186
|
key: 0,
|
|
2171
2187
|
class: "cl-w-full"
|
|
2172
|
-
},
|
|
2188
|
+
}, oo = {
|
|
2173
2189
|
key: 1,
|
|
2174
2190
|
class: "cl-leading-10 cl-text-sm cl-w-full"
|
|
2175
|
-
},
|
|
2176
|
-
function
|
|
2177
|
-
return
|
|
2178
|
-
t.$slots.default ? (
|
|
2179
|
-
|
|
2191
|
+
}, ao = { class: "cl-float-left" }, no = { class: "cl-float-right" };
|
|
2192
|
+
function so(t, o) {
|
|
2193
|
+
return d(), h("div", lo, [
|
|
2194
|
+
t.$slots.default ? (d(), h("div", to, [
|
|
2195
|
+
A(t.$slots, "default")
|
|
2180
2196
|
])) : M("", !0),
|
|
2181
|
-
t.$slots.left || t.$slots.right ? (
|
|
2182
|
-
|
|
2183
|
-
|
|
2197
|
+
t.$slots.left || t.$slots.right ? (d(), h("div", oo, [
|
|
2198
|
+
m("span", ao, [
|
|
2199
|
+
A(t.$slots, "left")
|
|
2184
2200
|
]),
|
|
2185
|
-
|
|
2186
|
-
|
|
2201
|
+
m("span", no, [
|
|
2202
|
+
A(t.$slots, "right")
|
|
2187
2203
|
])
|
|
2188
2204
|
])) : M("", !0)
|
|
2189
2205
|
]);
|
|
2190
2206
|
}
|
|
2191
|
-
const
|
|
2207
|
+
const ro = /* @__PURE__ */ de(eo, [["render", so]]);
|
|
2192
2208
|
function Oe(t) {
|
|
2193
2209
|
const o = t.type !== "slot" || t.slotType !== void 0 && t.field !== void 0, e = t.sortable ?? !0;
|
|
2194
2210
|
return o && e;
|
|
@@ -2197,10 +2213,10 @@ function Pe(t) {
|
|
|
2197
2213
|
const o = t.type !== "slot" || t.slotType !== void 0 && t.field !== void 0, e = t.filterable ?? !0;
|
|
2198
2214
|
return o && e;
|
|
2199
2215
|
}
|
|
2200
|
-
const
|
|
2216
|
+
const co = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, io = { class: "cl-gap-1 cl-grid cl-grid-cols-2 cl-justify-end cl-mb-2 lg:cl-flex lg:cl-gap-2" }, uo = {
|
|
2201
2217
|
key: 1,
|
|
2202
2218
|
class: "cl-hidden lg:cl-block"
|
|
2203
|
-
},
|
|
2219
|
+
}, fo = { class: "cl-block lg:cl-hidden" }, po = /* @__PURE__ */ D({
|
|
2204
2220
|
__name: "cl-ui-grid-action-row",
|
|
2205
2221
|
props: {
|
|
2206
2222
|
editMode: { type: Boolean },
|
|
@@ -2211,36 +2227,36 @@ const ro = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, co = { class: "cl-gap-1
|
|
|
2211
2227
|
},
|
|
2212
2228
|
emits: ["update:edit-mode", "update:filterPanelOpen", "clear-filters"],
|
|
2213
2229
|
setup(t) {
|
|
2214
|
-
const { t: o } =
|
|
2215
|
-
return (e, l) => (
|
|
2216
|
-
|
|
2217
|
-
|
|
2230
|
+
const { t: o } = te();
|
|
2231
|
+
return (e, l) => (d(), h(x, null, [
|
|
2232
|
+
m("div", co, [
|
|
2233
|
+
m("strong", null, _(p(o)("grid.gridTools")), 1)
|
|
2218
2234
|
]),
|
|
2219
|
-
|
|
2220
|
-
e.columns.some((
|
|
2235
|
+
m("div", io, [
|
|
2236
|
+
e.columns.some((a) => a.editable) ? (d(), z(me, {
|
|
2221
2237
|
key: 0,
|
|
2222
2238
|
size: "small",
|
|
2223
2239
|
colour: "default",
|
|
2224
|
-
onClick: l[0] || (l[0] = K((
|
|
2240
|
+
onClick: l[0] || (l[0] = K((a) => e.$emit("update:edit-mode", !e.editMode), ["prevent"]))
|
|
2225
2241
|
}, {
|
|
2226
2242
|
default: L(() => [
|
|
2227
|
-
e.editMode ? (
|
|
2243
|
+
e.editMode ? (d(), h(x, { key: 0 }, [
|
|
2228
2244
|
Q(_(p(o)("grid.finishEditing")), 1)
|
|
2229
|
-
], 64)) : (
|
|
2245
|
+
], 64)) : (d(), h(x, { key: 1 }, [
|
|
2230
2246
|
Q(_(p(o)("grid.editData")), 1)
|
|
2231
2247
|
], 64))
|
|
2232
2248
|
]),
|
|
2233
2249
|
_: 1
|
|
2234
2250
|
})) : M("", !0),
|
|
2235
|
-
e.options.hideViewManager ? M("", !0) : (
|
|
2236
|
-
|
|
2251
|
+
e.options.hideViewManager ? M("", !0) : (d(), h("div", uo, [
|
|
2252
|
+
A(e.$slots, "view-manager")
|
|
2237
2253
|
])),
|
|
2238
|
-
e.columns.some((
|
|
2239
|
-
|
|
2240
|
-
|
|
2254
|
+
e.columns.some((a) => p(Pe)(a) || p(Oe)(a)) ? (d(), h(x, { key: 2 }, [
|
|
2255
|
+
m("div", fo, [
|
|
2256
|
+
C(me, {
|
|
2241
2257
|
class: "cl-w-full",
|
|
2242
2258
|
size: "small",
|
|
2243
|
-
onClick: l[1] || (l[1] = K((
|
|
2259
|
+
onClick: l[1] || (l[1] = K((a) => e.$emit("update:filterPanelOpen", !e.filterPanelOpen), ["prevent"]))
|
|
2244
2260
|
}, {
|
|
2245
2261
|
default: L(() => [
|
|
2246
2262
|
Q(_(p(o)("grid.modifyFilters")), 1)
|
|
@@ -2248,13 +2264,13 @@ const ro = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, co = { class: "cl-gap-1
|
|
|
2248
2264
|
_: 1
|
|
2249
2265
|
})
|
|
2250
2266
|
]),
|
|
2251
|
-
|
|
2267
|
+
C(me, {
|
|
2252
2268
|
size: "small",
|
|
2253
|
-
colour: e.request.filters.some((
|
|
2269
|
+
colour: e.request.filters.some((a) => a.filterValue !== "") ? "danger" : "default",
|
|
2254
2270
|
class: I({
|
|
2255
|
-
"cl-col-span-2": e.columns.some((
|
|
2271
|
+
"cl-col-span-2": e.columns.some((a) => a.editable)
|
|
2256
2272
|
}),
|
|
2257
|
-
onClick: l[2] || (l[2] = K((
|
|
2273
|
+
onClick: l[2] || (l[2] = K((a) => e.$emit("clear-filters"), ["prevent"]))
|
|
2258
2274
|
}, {
|
|
2259
2275
|
default: L(() => [
|
|
2260
2276
|
Q(_(p(o)("grid.clearFilters")), 1)
|
|
@@ -2265,10 +2281,10 @@ const ro = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, co = { class: "cl-gap-1
|
|
|
2265
2281
|
])
|
|
2266
2282
|
], 64));
|
|
2267
2283
|
}
|
|
2268
|
-
}),
|
|
2284
|
+
}), mo = {
|
|
2269
2285
|
key: 0,
|
|
2270
2286
|
class: "cl-inline-block cl-whitespace-nowrap"
|
|
2271
|
-
},
|
|
2287
|
+
}, go = {
|
|
2272
2288
|
key: 1,
|
|
2273
2289
|
class: "cl-inline-block cl-whitespace-nowrap"
|
|
2274
2290
|
}, Ye = /* @__PURE__ */ D({
|
|
@@ -2278,25 +2294,25 @@ const ro = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, co = { class: "cl-gap-1
|
|
|
2278
2294
|
column: {}
|
|
2279
2295
|
},
|
|
2280
2296
|
setup(t) {
|
|
2281
|
-
const { d: o } =
|
|
2282
|
-
return (e, l) => e.column.type === "slot" ?
|
|
2297
|
+
const { d: o } = te();
|
|
2298
|
+
return (e, l) => e.column.type === "slot" ? A(e.$slots, e.column.name, { key: 0 }) : e.column.type === "boolean" && e.column.field !== void 0 ? (d(), z(oe, {
|
|
2283
2299
|
key: 1,
|
|
2284
2300
|
"input-type": "checkbox",
|
|
2285
2301
|
"model-value": e.data[e.column.field],
|
|
2286
2302
|
disabled: !0
|
|
2287
|
-
}, null, 8, ["model-value"])) : (e.column.type === "date" || e.column.type === "datetime") && e.column.field !== void 0 ? (
|
|
2288
|
-
e.column.format !== void 0 ? (
|
|
2303
|
+
}, null, 8, ["model-value"])) : (e.column.type === "date" || e.column.type === "datetime") && e.column.field !== void 0 ? (d(), h(x, { key: 2 }, [
|
|
2304
|
+
e.column.format !== void 0 ? (d(), h(x, { key: 0 }, [
|
|
2289
2305
|
Q(_(p(o)(new Date(e.data[e.column.field]), e.column.format)), 1)
|
|
2290
|
-
], 64)) : e.column.type === "date" ? (
|
|
2306
|
+
], 64)) : e.column.type === "date" ? (d(), h(x, { key: 1 }, [
|
|
2291
2307
|
Q(_(p(o)(new Date(e.data[e.column.field]), p(G).DATE)), 1)
|
|
2292
|
-
], 64)) : (
|
|
2308
|
+
], 64)) : (d(), h(x, { key: 2 }, [
|
|
2293
2309
|
Q(_(p(o)(new Date(e.data[e.column.field]), p(G).DATETIME)), 1)
|
|
2294
2310
|
], 64))
|
|
2295
|
-
], 64)) : e.column.field !== void 0 ? (
|
|
2296
|
-
e.column.maxLength !== void 0 ? (
|
|
2311
|
+
], 64)) : e.column.field !== void 0 ? (d(), h(x, { key: 3 }, [
|
|
2312
|
+
e.column.maxLength !== void 0 ? (d(), h("span", mo, _(e.data[e.column.field].trimToLength(e.column.maxLength, e.column.format !== void 0 ? e.column.format === "ellipsis" : !1)), 1)) : (d(), h("span", go, _(e.data[e.column.field]), 1))
|
|
2297
2313
|
], 64)) : M("", !0);
|
|
2298
2314
|
}
|
|
2299
|
-
}),
|
|
2315
|
+
}), vo = { class: "cl-font-semibold lg:cl-hidden" }, bo = /* @__PURE__ */ D({
|
|
2300
2316
|
__name: "cl-ui-grid-cell",
|
|
2301
2317
|
props: {
|
|
2302
2318
|
data: {},
|
|
@@ -2305,46 +2321,46 @@ const ro = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, co = { class: "cl-gap-1
|
|
|
2305
2321
|
},
|
|
2306
2322
|
emits: ["edit", "focus", "undo"],
|
|
2307
2323
|
setup(t, { emit: o }) {
|
|
2308
|
-
const e = t, l = S(ce(e.data)),
|
|
2309
|
-
return dl(() => l.value = ce(e.data)), H(l, (
|
|
2324
|
+
const e = t, l = S(ce(e.data)), a = O(() => e.column.field !== void 0 && l.value[e.column.field] !== e.data[e.column.field]);
|
|
2325
|
+
return dl(() => l.value = ce(e.data)), H(l, (n) => {
|
|
2310
2326
|
const r = e.column.field ?? "";
|
|
2311
|
-
r !== "" && (
|
|
2327
|
+
r !== "" && (n[r] !== e.data[r] ? o("edit", n[r]) : o("undo"));
|
|
2312
2328
|
}, {
|
|
2313
2329
|
deep: !0
|
|
2314
|
-
}), (
|
|
2330
|
+
}), (n, r) => (d(), h("td", {
|
|
2315
2331
|
class: I(["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", {
|
|
2316
|
-
"cl-bg-link-lighter":
|
|
2332
|
+
"cl-bg-link-lighter": a.value
|
|
2317
2333
|
}])
|
|
2318
2334
|
}, [
|
|
2319
|
-
|
|
2320
|
-
|
|
2335
|
+
m("span", vo, _(n.column.caption), 1),
|
|
2336
|
+
n.editMode && n.column.editable === !0 ? A(n.$slots, `${n.column.name}Edit`, le(ie({ key: 0 }, {
|
|
2321
2337
|
cellFocused: () => o("focus"),
|
|
2322
|
-
column:
|
|
2323
|
-
edited:
|
|
2338
|
+
column: n.column,
|
|
2339
|
+
edited: a.value,
|
|
2324
2340
|
record: l.value
|
|
2325
2341
|
})), () => [
|
|
2326
|
-
|
|
2327
|
-
column:
|
|
2328
|
-
data:
|
|
2342
|
+
C(Ye, {
|
|
2343
|
+
column: n.column,
|
|
2344
|
+
data: n.data
|
|
2329
2345
|
}, {
|
|
2330
|
-
[
|
|
2331
|
-
|
|
2346
|
+
[n.column.name]: L(() => [
|
|
2347
|
+
A(n.$slots, n.column.name, le(re({ column: n.column, data: n.data })))
|
|
2332
2348
|
]),
|
|
2333
2349
|
_: 2
|
|
2334
2350
|
}, 1032, ["column", "data"])
|
|
2335
|
-
]) : (
|
|
2351
|
+
]) : (d(), z(Ye, {
|
|
2336
2352
|
key: 1,
|
|
2337
|
-
column:
|
|
2338
|
-
data:
|
|
2353
|
+
column: n.column,
|
|
2354
|
+
data: n.data
|
|
2339
2355
|
}, {
|
|
2340
|
-
[
|
|
2341
|
-
|
|
2356
|
+
[n.column.name]: L(() => [
|
|
2357
|
+
A(n.$slots, n.column.name, le(re({ column: n.column, record: n.data })))
|
|
2342
2358
|
]),
|
|
2343
2359
|
_: 2
|
|
2344
2360
|
}, 1032, ["column", "data"]))
|
|
2345
2361
|
], 2));
|
|
2346
2362
|
}
|
|
2347
|
-
}),
|
|
2363
|
+
}), ho = /* @__PURE__ */ D({
|
|
2348
2364
|
__name: "cl-ui-grid-row",
|
|
2349
2365
|
props: {
|
|
2350
2366
|
data: {},
|
|
@@ -2353,29 +2369,29 @@ const ro = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, co = { class: "cl-gap-1
|
|
|
2353
2369
|
},
|
|
2354
2370
|
emits: ["cell-focus", "cell-edit", "cell-undo", "row-select"],
|
|
2355
2371
|
setup(t) {
|
|
2356
|
-
return (o, e) => (
|
|
2357
|
-
(
|
|
2358
|
-
key:
|
|
2372
|
+
return (o, e) => (d(), h("tr", null, [
|
|
2373
|
+
(d(!0), h(x, null, Y(o.columns, (l, a) => (d(), z(bo, {
|
|
2374
|
+
key: a,
|
|
2359
2375
|
data: o.data,
|
|
2360
2376
|
column: l,
|
|
2361
2377
|
"edit-mode": o.editMode,
|
|
2362
|
-
onFocus: e[0] || (e[0] = (
|
|
2363
|
-
onEdit: (
|
|
2364
|
-
onUndo: (
|
|
2378
|
+
onFocus: e[0] || (e[0] = (n) => o.$emit("cell-focus")),
|
|
2379
|
+
onEdit: (n) => o.$emit("cell-edit", { field: l.field, value: n }),
|
|
2380
|
+
onUndo: (n) => o.$emit("cell-undo", l.field)
|
|
2365
2381
|
}, ze({ _: 2 }, [
|
|
2366
|
-
Y(o.$slots, (
|
|
2382
|
+
Y(o.$slots, (n, r) => ({
|
|
2367
2383
|
name: r,
|
|
2368
2384
|
fn: L((s) => [
|
|
2369
|
-
|
|
2385
|
+
A(o.$slots, r, le(re(s)))
|
|
2370
2386
|
])
|
|
2371
2387
|
}))
|
|
2372
2388
|
]), 1032, ["data", "column", "edit-mode", "onEdit", "onUndo"]))), 128))
|
|
2373
2389
|
]));
|
|
2374
2390
|
}
|
|
2375
|
-
}),
|
|
2391
|
+
}), yo = { key: 1 }, wo = ["colspan"], $o = { class: "cl-flex cl-flex-wrap cl-justify-center cl-text-center cl-text-sm cl-w-full" }, ko = { class: "cl-mt-6 cl-w-full" }, To = {
|
|
2376
2392
|
key: 0,
|
|
2377
2393
|
class: "cl-mt-4"
|
|
2378
|
-
},
|
|
2394
|
+
}, Co = { class: "cl-mb-2 cl-w-full" }, _o = /* @__PURE__ */ D({
|
|
2379
2395
|
__name: "cl-ui-grid-body",
|
|
2380
2396
|
props: {
|
|
2381
2397
|
columns: {},
|
|
@@ -2387,90 +2403,95 @@ const ro = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, co = { class: "cl-gap-1
|
|
|
2387
2403
|
},
|
|
2388
2404
|
emits: ["row-select", "row-edit", "clear-filters"],
|
|
2389
2405
|
setup(t, { emit: o }) {
|
|
2390
|
-
const e = t, { t: l } =
|
|
2406
|
+
const e = t, { t: l } = te(), a = S({
|
|
2391
2407
|
index: -1,
|
|
2392
2408
|
record: {}
|
|
2393
2409
|
});
|
|
2394
|
-
function
|
|
2395
|
-
Object.keys(
|
|
2410
|
+
function n() {
|
|
2411
|
+
Object.keys(a.value.record).length !== 0 && (o("row-edit", ce(a.value)), a.value.record = {});
|
|
2396
2412
|
}
|
|
2397
|
-
function r(
|
|
2398
|
-
|
|
2413
|
+
function r(i) {
|
|
2414
|
+
a.value.index !== -1 && a.value.index !== i && n(), a.value.index = i;
|
|
2399
2415
|
}
|
|
2400
|
-
function s(
|
|
2401
|
-
r(
|
|
2416
|
+
function s(i, y) {
|
|
2417
|
+
r(i), y.field !== void 0 && (a.value.record[y.field] = y.value);
|
|
2402
2418
|
}
|
|
2403
|
-
function i
|
|
2404
|
-
if (
|
|
2405
|
-
const { [
|
|
2406
|
-
|
|
2407
|
-
|
|
2419
|
+
function u(i) {
|
|
2420
|
+
if (i !== void 0) {
|
|
2421
|
+
const { [i]: y, ...c } = a.value.record;
|
|
2422
|
+
a.value.record = {
|
|
2423
|
+
...c
|
|
2408
2424
|
};
|
|
2409
2425
|
}
|
|
2410
2426
|
}
|
|
2411
|
-
const
|
|
2427
|
+
const f = S({});
|
|
2412
2428
|
H(() => e.data, () => {
|
|
2413
|
-
var
|
|
2414
|
-
return
|
|
2415
|
-
[
|
|
2429
|
+
var i, y;
|
|
2430
|
+
return f.value = Object.fromEntries(((y = (i = e.data) == null ? void 0 : i.results) == null ? void 0 : y.map((c, k) => [
|
|
2431
|
+
[k],
|
|
2416
2432
|
{
|
|
2417
2433
|
count: 0,
|
|
2418
|
-
|
|
2419
|
-
|
|
2420
|
-
|
|
2434
|
+
target: null,
|
|
2435
|
+
reset: ll(() => {
|
|
2436
|
+
f.value[k].count = 0, w(f.value[k].target), f.value[k].target = null;
|
|
2437
|
+
}, 2500, { immediate: !1 })
|
|
2421
2438
|
}
|
|
2422
2439
|
])) ?? []);
|
|
2423
2440
|
}, {
|
|
2424
2441
|
deep: !0,
|
|
2425
2442
|
immediate: !0
|
|
2426
2443
|
});
|
|
2427
|
-
function v(
|
|
2428
|
-
|
|
2444
|
+
function v(i, y, c) {
|
|
2445
|
+
const { currentTarget: k } = c;
|
|
2446
|
+
e.selectionEnabled ? o("row-select", y) : (f.value[i].count++, f.value[i].target = k, f.value[i].count > 1 ? (f.value[i].reset.stop(), f.value[i].count = 0, w(k), f.value[i].target = null, o("row-select", y)) : (f.value[i].reset.start(), w(k)));
|
|
2447
|
+
}
|
|
2448
|
+
function w(i) {
|
|
2449
|
+
i.classList.toggle("!cl-bg-link-lighter");
|
|
2429
2450
|
}
|
|
2430
2451
|
return H(() => e.editMode, () => {
|
|
2431
|
-
e.editMode || (
|
|
2432
|
-
}), (
|
|
2433
|
-
var
|
|
2434
|
-
return
|
|
2435
|
-
|
|
2436
|
-
key:
|
|
2437
|
-
data:
|
|
2438
|
-
columns:
|
|
2439
|
-
"edit-mode":
|
|
2440
|
-
class: I({
|
|
2441
|
-
"cl-bg-white":
|
|
2442
|
-
"cl-bg-off-white":
|
|
2443
|
-
"cl-cursor-pointer hover:cl-bg-link-lighter":
|
|
2444
|
-
}),
|
|
2445
|
-
onClick: (
|
|
2446
|
-
|
|
2452
|
+
e.editMode || (n(), a.value.index = -1);
|
|
2453
|
+
}), (i, y) => {
|
|
2454
|
+
var c;
|
|
2455
|
+
return d(), h("tbody", null, [
|
|
2456
|
+
i.data && ((c = i.data.results) != null && c.length) ? (d(!0), h(x, { key: 0 }, Y(i.data.results, (k, T) => (d(), z(ho, {
|
|
2457
|
+
key: T,
|
|
2458
|
+
data: k,
|
|
2459
|
+
columns: i.columns,
|
|
2460
|
+
"edit-mode": i.editMode,
|
|
2461
|
+
class: I(["cl-bg-opacity-100 cl-cursor-pointer cl-transition-colors", {
|
|
2462
|
+
"cl-bg-white": T % 2 === 0 && i.data.totalRecords > 1,
|
|
2463
|
+
"cl-bg-off-white": T % 2 === 1 || i.data.totalRecords === 1,
|
|
2464
|
+
"cl-cursor-pointer hover:cl-bg-link-lighter": i.selectionEnabled && !i.editMode
|
|
2465
|
+
}]),
|
|
2466
|
+
onClick: (j) => {
|
|
2467
|
+
i.editMode || v(T, k, j);
|
|
2447
2468
|
},
|
|
2448
|
-
onCellFocus: (
|
|
2449
|
-
r(
|
|
2469
|
+
onCellFocus: (j) => {
|
|
2470
|
+
r(T);
|
|
2450
2471
|
},
|
|
2451
|
-
onCellEdit: (
|
|
2452
|
-
s(
|
|
2472
|
+
onCellEdit: (j) => {
|
|
2473
|
+
s(T, j);
|
|
2453
2474
|
},
|
|
2454
|
-
onCellUndo:
|
|
2475
|
+
onCellUndo: u
|
|
2455
2476
|
}, ze({ _: 2 }, [
|
|
2456
|
-
Y(
|
|
2457
|
-
name:
|
|
2458
|
-
fn: L((
|
|
2459
|
-
|
|
2477
|
+
Y(i.$slots, (j, V) => ({
|
|
2478
|
+
name: V,
|
|
2479
|
+
fn: L((ee) => [
|
|
2480
|
+
A(i.$slots, V, le(re(ee)))
|
|
2460
2481
|
])
|
|
2461
2482
|
}))
|
|
2462
|
-
]), 1032, ["data", "columns", "edit-mode", "class", "onClick", "onCellFocus", "onCellEdit"]))), 128)) :
|
|
2463
|
-
|
|
2464
|
-
colspan:
|
|
2483
|
+
]), 1032, ["data", "columns", "edit-mode", "class", "onClick", "onCellFocus", "onCellEdit"]))), 128)) : i.loading ? M("", !0) : (d(), h("tr", yo, [
|
|
2484
|
+
m("td", {
|
|
2485
|
+
colspan: i.columns.length
|
|
2465
2486
|
}, [
|
|
2466
|
-
|
|
2467
|
-
|
|
2468
|
-
|
|
2469
|
-
|
|
2470
|
-
|
|
2487
|
+
m("div", $o, [
|
|
2488
|
+
m("strong", ko, _(p(l)("grid.noData")), 1),
|
|
2489
|
+
i.request.filters.length > 0 ? (d(), h("div", To, [
|
|
2490
|
+
m("div", Co, _(p(l)("grid.noDataFiltersPresent")), 1),
|
|
2491
|
+
C(me, {
|
|
2471
2492
|
size: "small",
|
|
2472
2493
|
colour: "danger",
|
|
2473
|
-
onClick:
|
|
2494
|
+
onClick: y[0] || (y[0] = K((k) => i.$emit("clear-filters"), ["prevent"]))
|
|
2474
2495
|
}, {
|
|
2475
2496
|
default: L(() => [
|
|
2476
2497
|
Q(_(p(l)("grid.clearFilters")), 1)
|
|
@@ -2479,15 +2500,15 @@ const ro = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, co = { class: "cl-gap-1
|
|
|
2479
2500
|
})
|
|
2480
2501
|
])) : M("", !0)
|
|
2481
2502
|
])
|
|
2482
|
-
], 8,
|
|
2503
|
+
], 8, wo)
|
|
2483
2504
|
]))
|
|
2484
2505
|
]);
|
|
2485
2506
|
};
|
|
2486
2507
|
}
|
|
2487
|
-
}),
|
|
2508
|
+
}), So = {
|
|
2488
2509
|
key: 0,
|
|
2489
2510
|
class: "cl-flex cl-flex-wrap cl-justify-end cl-mt-2 cl-w-full"
|
|
2490
|
-
},
|
|
2511
|
+
}, Oo = { class: "cl-bg-off-white cl-border cl-border-grey-1 cl-flex cl-items-center cl-mb-2 cl-px-3 cl-rounded cl-shadow-md cl-text-sm cl-w-full lg:cl-w-auto" }, Eo = { class: "cl-text-grey-3 cl-w-max" }, Ao = { 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 cl-shadow-md cl-text-sm cl-w-full lg:cl-ml-2 lg:cl-w-auto mb:cl-flex-nowrap" }, jo = { 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" }, Mo = { class: "cl-flex cl-flex-wrap cl-mb-2 cl-w-full lg:cl-mb-0 lg:cl-mr-2 lg:cl-w-auto" }, Io = { class: "cl-text-grey-3 cl-w-full lg:cl-mr-2 lg:cl-w-auto" }, No = { class: "cl-flex cl-flex-wrap cl-text-sm mb:cl-flex-nowrap" }, qo = { class: "cl-pr-2" }, Do = ["onClick"], Ro = { 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" }, Uo = { class: "cl-mb-2 cl-text-grey-3 cl-w-full lg:cl-mb-0 lg:cl-mr-2 lg:cl-w-auto" }, Bo = ["onClick"], xo = { class: "cl-mb-2 cl-w-full lg:cl-p-2 md:cl-mb-0 md:cl-w-auto" }, zo = { 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" }, Lo = { class: "cl-block lg:cl-inline-block" }, Po = /* @__PURE__ */ D({
|
|
2491
2512
|
__name: "cl-ui-grid-footer",
|
|
2492
2513
|
props: {
|
|
2493
2514
|
request: {},
|
|
@@ -2497,27 +2518,27 @@ const ro = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, co = { class: "cl-gap-1
|
|
|
2497
2518
|
"update:request": null
|
|
2498
2519
|
},
|
|
2499
2520
|
setup(t, { emit: o }) {
|
|
2500
|
-
const e = t, { n: l, t:
|
|
2501
|
-
var
|
|
2502
|
-
return e.data !== null ? Math.ceil((((
|
|
2503
|
-
}), r =
|
|
2504
|
-
const
|
|
2505
|
-
let
|
|
2506
|
-
if (
|
|
2507
|
-
const c = e.request.pageNumber ===
|
|
2508
|
-
|
|
2521
|
+
const e = t, { n: l, t: a } = te(), n = O(() => {
|
|
2522
|
+
var i;
|
|
2523
|
+
return e.data !== null ? Math.ceil((((i = e.data) == null ? void 0 : i.totalRecords) ?? 0) / e.request.pageSize) : 1;
|
|
2524
|
+
}), r = O(() => {
|
|
2525
|
+
const i = Array.from(Array(n.value + 1).keys());
|
|
2526
|
+
let y = [];
|
|
2527
|
+
if (i.shift(), i.length) {
|
|
2528
|
+
const c = e.request.pageNumber === n.value || e.request.pageNumber === n.value - 1 ? n.value - 3 : e.request.pageNumber - 1;
|
|
2529
|
+
y = i.slice(c, c + 3);
|
|
2509
2530
|
}
|
|
2510
|
-
return
|
|
2531
|
+
return y;
|
|
2511
2532
|
});
|
|
2512
|
-
function s(
|
|
2513
|
-
const
|
|
2514
|
-
|
|
2533
|
+
function s(i) {
|
|
2534
|
+
const y = ce(e.request);
|
|
2535
|
+
y.pageNumber !== i && (y.pageNumber = Math.max(Math.min(Math.trunc(i), n.value), 1), o("update:request", y));
|
|
2515
2536
|
}
|
|
2516
|
-
function i
|
|
2517
|
-
const
|
|
2518
|
-
s(
|
|
2537
|
+
function u(i) {
|
|
2538
|
+
const y = parseInt(i == null ? void 0 : i.value) || 1;
|
|
2539
|
+
s(y);
|
|
2519
2540
|
}
|
|
2520
|
-
const
|
|
2541
|
+
const f = [
|
|
2521
2542
|
5,
|
|
2522
2543
|
10,
|
|
2523
2544
|
20,
|
|
@@ -2525,108 +2546,108 @@ const ro = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, co = { class: "cl-gap-1
|
|
|
2525
2546
|
100,
|
|
2526
2547
|
200
|
|
2527
2548
|
];
|
|
2528
|
-
function v(
|
|
2529
|
-
const
|
|
2530
|
-
|
|
2549
|
+
function v(i) {
|
|
2550
|
+
const y = ce(e.request);
|
|
2551
|
+
y.pageSize = i, y.pageNumber = 1, o("update:request", y);
|
|
2531
2552
|
}
|
|
2532
|
-
const
|
|
2533
|
-
return (
|
|
2553
|
+
const w = tl(u, 750);
|
|
2554
|
+
return (i, y) => {
|
|
2534
2555
|
var c, k;
|
|
2535
|
-
return (k = (c =
|
|
2536
|
-
|
|
2537
|
-
|
|
2538
|
-
|
|
2539
|
-
"model-value":
|
|
2556
|
+
return (k = (c = i.data) == null ? void 0 : c.results) != null && k.length && i.request ? (d(), h("div", So, [
|
|
2557
|
+
m("div", Oo, [
|
|
2558
|
+
m("span", Eo, _(p(a)("grid.jumpToPage")), 1),
|
|
2559
|
+
C(oe, {
|
|
2560
|
+
"model-value": i.request.pageNumber,
|
|
2540
2561
|
class: "cl-ml-1 cl-mt-0.5 cl-text-sm",
|
|
2541
2562
|
"input-type": "number",
|
|
2542
2563
|
label: "Page",
|
|
2543
2564
|
"show-label": !1,
|
|
2544
2565
|
min: "1",
|
|
2545
|
-
max:
|
|
2546
|
-
onInput:
|
|
2566
|
+
max: n.value,
|
|
2567
|
+
onInput: y[0] || (y[0] = (T) => p(w)(T.target))
|
|
2547
2568
|
}, null, 8, ["model-value", "max"])
|
|
2548
2569
|
]),
|
|
2549
|
-
|
|
2550
|
-
|
|
2551
|
-
|
|
2552
|
-
|
|
2570
|
+
m("div", Ao, [
|
|
2571
|
+
m("div", jo, [
|
|
2572
|
+
m("li", Mo, [
|
|
2573
|
+
m("span", Io, _(p(a)("grid.page")), 1)
|
|
2553
2574
|
]),
|
|
2554
|
-
|
|
2555
|
-
|
|
2556
|
-
|
|
2575
|
+
m("ul", No, [
|
|
2576
|
+
m("li", qo, _(p(l)(i.request.pageNumber, p(X).INTEGER)) + " / " + _(p(l)(n.value, p(X).INTEGER)), 1),
|
|
2577
|
+
U(m("li", {
|
|
2557
2578
|
class: "cl-cursor-pointer cl-mr-1 cl-mt-1 lg:cl-mr-2",
|
|
2558
|
-
onClick:
|
|
2579
|
+
onClick: y[1] || (y[1] = (T) => s(1))
|
|
2559
2580
|
}, [
|
|
2560
|
-
|
|
2581
|
+
C(p(q), {
|
|
2561
2582
|
icon: "ph:caret-double-left",
|
|
2562
2583
|
size: 14
|
|
2563
2584
|
})
|
|
2564
2585
|
], 512), [
|
|
2565
|
-
[
|
|
2586
|
+
[B, i.request.pageNumber > 1]
|
|
2566
2587
|
]),
|
|
2567
|
-
|
|
2588
|
+
U(m("li", {
|
|
2568
2589
|
class: "cl-cursor-pointer cl-mt-1 lg:cl-mr-2 mr-1",
|
|
2569
|
-
onClick:
|
|
2590
|
+
onClick: y[2] || (y[2] = (T) => s(i.request.pageNumber - 1))
|
|
2570
2591
|
}, [
|
|
2571
|
-
|
|
2592
|
+
C(p(q), {
|
|
2572
2593
|
icon: "ph:caret-left",
|
|
2573
2594
|
size: 14
|
|
2574
2595
|
})
|
|
2575
2596
|
], 512), [
|
|
2576
|
-
[
|
|
2597
|
+
[B, i.request.pageNumber > 1]
|
|
2577
2598
|
]),
|
|
2578
|
-
(
|
|
2579
|
-
key:
|
|
2599
|
+
(d(!0), h(x, null, Y(r.value, (T, j) => (d(), h("li", {
|
|
2600
|
+
key: j,
|
|
2580
2601
|
class: I(["cl-cursor-pointer cl-mr-1 lg:cl-mr-2", {
|
|
2581
|
-
"cl-text-black cl-font-bold":
|
|
2582
|
-
"cl-text-grey-6":
|
|
2602
|
+
"cl-text-black cl-font-bold": i.request.pageNumber === T,
|
|
2603
|
+
"cl-text-grey-6": i.request.pageNumber !== T
|
|
2583
2604
|
}]),
|
|
2584
|
-
onClick: (V) => s(
|
|
2585
|
-
}, _(p(l)(
|
|
2586
|
-
|
|
2605
|
+
onClick: (V) => s(T)
|
|
2606
|
+
}, _(p(l)(T, p(X).INTEGER)), 11, Do))), 128)),
|
|
2607
|
+
U(m("li", {
|
|
2587
2608
|
class: "cl-cursor-pointer cl-mr-1 cl-mt-1 lg:cl-mr-2",
|
|
2588
|
-
onClick:
|
|
2609
|
+
onClick: y[3] || (y[3] = (T) => s(i.request.pageNumber + 1))
|
|
2589
2610
|
}, [
|
|
2590
|
-
|
|
2611
|
+
C(p(q), {
|
|
2591
2612
|
icon: "ph:caret-right",
|
|
2592
2613
|
size: 14
|
|
2593
2614
|
})
|
|
2594
2615
|
], 512), [
|
|
2595
|
-
[
|
|
2616
|
+
[B, i.request.pageNumber < n.value]
|
|
2596
2617
|
]),
|
|
2597
|
-
|
|
2618
|
+
U(m("li", {
|
|
2598
2619
|
class: "cl-cursor-pointer cl-mr-1 cl-mt-1 lg:cl-mr-2",
|
|
2599
|
-
onClick:
|
|
2620
|
+
onClick: y[4] || (y[4] = (T) => s(n.value))
|
|
2600
2621
|
}, [
|
|
2601
|
-
|
|
2622
|
+
C(p(q), {
|
|
2602
2623
|
icon: "ph:caret-double-right",
|
|
2603
2624
|
size: 14
|
|
2604
2625
|
})
|
|
2605
2626
|
], 512), [
|
|
2606
|
-
[
|
|
2627
|
+
[B, i.request.pageNumber < n.value]
|
|
2607
2628
|
])
|
|
2608
2629
|
])
|
|
2609
2630
|
]),
|
|
2610
|
-
|
|
2611
|
-
|
|
2612
|
-
(
|
|
2613
|
-
key:
|
|
2631
|
+
m("ul", Ro, [
|
|
2632
|
+
m("li", Uo, _(p(a)("grid.pageSize")), 1),
|
|
2633
|
+
(d(), h(x, null, Y(f, (T, j) => m("li", {
|
|
2634
|
+
key: j,
|
|
2614
2635
|
class: I(["cl-cursor-pointer cl-mr-1 lg:cl-mr-2", {
|
|
2615
|
-
"cl-text-black cl-font-bold":
|
|
2616
|
-
"cl-text-grey-6":
|
|
2636
|
+
"cl-text-black cl-font-bold": i.request.pageSize === T,
|
|
2637
|
+
"cl-text-grey-6": i.request.pageSize !== T
|
|
2617
2638
|
}]),
|
|
2618
|
-
onClick: (V) => v(
|
|
2619
|
-
}, _(p(l)(
|
|
2639
|
+
onClick: (V) => v(T)
|
|
2640
|
+
}, _(p(l)(T, p(X).INTEGER)), 11, Bo)), 64))
|
|
2620
2641
|
]),
|
|
2621
|
-
|
|
2622
|
-
|
|
2623
|
-
|
|
2642
|
+
m("ul", xo, [
|
|
2643
|
+
m("li", zo, _(p(a)("grid.totalRecords")), 1),
|
|
2644
|
+
m("li", Lo, _(p(l)(i.data.totalRecords, p(X).INTEGER)), 1)
|
|
2624
2645
|
])
|
|
2625
2646
|
])
|
|
2626
2647
|
])) : M("", !0);
|
|
2627
2648
|
};
|
|
2628
2649
|
}
|
|
2629
|
-
}),
|
|
2650
|
+
}), Fo = [
|
|
2630
2651
|
"string",
|
|
2631
2652
|
"boolean",
|
|
2632
2653
|
"number",
|
|
@@ -2634,23 +2655,23 @@ const ro = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, co = { class: "cl-gap-1
|
|
|
2634
2655
|
"datetime",
|
|
2635
2656
|
"slot"
|
|
2636
2657
|
];
|
|
2637
|
-
function
|
|
2658
|
+
function sl(t) {
|
|
2638
2659
|
return typeof t.caption == "string" && typeof t.name == "string" && typeof t.type == "string";
|
|
2639
2660
|
}
|
|
2640
|
-
function
|
|
2661
|
+
function Vo(t) {
|
|
2641
2662
|
let o = Array.isArray(t);
|
|
2642
2663
|
if (o) {
|
|
2643
2664
|
for (const e of t)
|
|
2644
|
-
if (!
|
|
2665
|
+
if (!sl(e)) {
|
|
2645
2666
|
o = !1;
|
|
2646
2667
|
break;
|
|
2647
2668
|
}
|
|
2648
2669
|
}
|
|
2649
2670
|
return o;
|
|
2650
2671
|
}
|
|
2651
|
-
const
|
|
2672
|
+
const Go = ["ellipsis"];
|
|
2652
2673
|
var pe = /* @__PURE__ */ ((t) => (t[t.CONTAINS = 0] = "CONTAINS", t[t.NOT_CONTAINS = 1] = "NOT_CONTAINS", t[t.EQUAL = 2] = "EQUAL", t[t.NOT_EQUAL = 3] = "NOT_EQUAL", t[t.STARTS_WITH = 4] = "STARTS_WITH", t[t.ENDS_WITH = 5] = "ENDS_WITH", t[t.GREATER_THAN = 6] = "GREATER_THAN", t[t.LESS_THAN = 7] = "LESS_THAN", t[t.EQUAL_OR_GREATER_THAN = 8] = "EQUAL_OR_GREATER_THAN", t[t.EQUAL_OR_LESS_THAN = 9] = "EQUAL_OR_LESS_THAN", t))(pe || {});
|
|
2653
|
-
const
|
|
2674
|
+
const Ho = [
|
|
2654
2675
|
"equal",
|
|
2655
2676
|
"notequal",
|
|
2656
2677
|
"contains",
|
|
@@ -2662,24 +2683,24 @@ const Go = [
|
|
|
2662
2683
|
"equalorlessthan",
|
|
2663
2684
|
"equalorgreaterthan"
|
|
2664
2685
|
];
|
|
2665
|
-
function
|
|
2686
|
+
function Wo(t) {
|
|
2666
2687
|
return typeof t.filterOnColumn == "string" && typeof t.filterOperation == "number" && typeof t.filterValue == "string";
|
|
2667
2688
|
}
|
|
2668
|
-
function
|
|
2689
|
+
function Jo(t) {
|
|
2669
2690
|
return t === null || typeof t.sortByAscending == "boolean" && typeof t.sortOnColumn == "string";
|
|
2670
2691
|
}
|
|
2671
|
-
function
|
|
2672
|
-
let o = typeof t.filters == "object" && Array.isArray(t.filters) && typeof t.pageNumber == "number" && typeof t.pageSize == "number" && typeof t.sort == "object" &&
|
|
2692
|
+
function Ko(t) {
|
|
2693
|
+
let o = typeof t.filters == "object" && Array.isArray(t.filters) && typeof t.pageNumber == "number" && typeof t.pageSize == "number" && typeof t.sort == "object" && Jo(t.sort);
|
|
2673
2694
|
if (o) {
|
|
2674
2695
|
for (const e of t.filters)
|
|
2675
|
-
if (!
|
|
2696
|
+
if (!Wo(e)) {
|
|
2676
2697
|
o = !1;
|
|
2677
2698
|
break;
|
|
2678
2699
|
}
|
|
2679
2700
|
}
|
|
2680
2701
|
return o;
|
|
2681
2702
|
}
|
|
2682
|
-
function
|
|
2703
|
+
function Zo(t, o) {
|
|
2683
2704
|
let e = typeof t.results == "object" && Array.isArray(t.results) && typeof t.totalRecords == "number";
|
|
2684
2705
|
if (e) {
|
|
2685
2706
|
for (const l of t.results)
|
|
@@ -2690,7 +2711,7 @@ function Ko(t, o) {
|
|
|
2690
2711
|
}
|
|
2691
2712
|
return e;
|
|
2692
2713
|
}
|
|
2693
|
-
const
|
|
2714
|
+
const Qo = {
|
|
2694
2715
|
method: "equal",
|
|
2695
2716
|
icon: "mdi:equal",
|
|
2696
2717
|
description: "Equals",
|
|
@@ -2701,12 +2722,12 @@ const Zo = {
|
|
|
2701
2722
|
"date"
|
|
2702
2723
|
],
|
|
2703
2724
|
key: "equal"
|
|
2704
|
-
},
|
|
2725
|
+
}, Yo = {
|
|
2705
2726
|
method: "contains",
|
|
2706
2727
|
icon: "mdi:format-letter-matches",
|
|
2707
2728
|
description: "Contains",
|
|
2708
2729
|
allowedTypes: ["string"]
|
|
2709
|
-
},
|
|
2730
|
+
}, Xo = {
|
|
2710
2731
|
method: "lessthan",
|
|
2711
2732
|
icon: "mdi:less-than",
|
|
2712
2733
|
description: "Before",
|
|
@@ -2716,7 +2737,7 @@ const Zo = {
|
|
|
2716
2737
|
],
|
|
2717
2738
|
key: "before"
|
|
2718
2739
|
}, Xe = [
|
|
2719
|
-
|
|
2740
|
+
Yo,
|
|
2720
2741
|
{
|
|
2721
2742
|
method: "notcontains",
|
|
2722
2743
|
icon: "mdi:format-letter-spacing-variant",
|
|
@@ -2735,7 +2756,7 @@ const Zo = {
|
|
|
2735
2756
|
description: "Ends with",
|
|
2736
2757
|
allowedTypes: ["string"]
|
|
2737
2758
|
},
|
|
2738
|
-
|
|
2759
|
+
Qo,
|
|
2739
2760
|
{
|
|
2740
2761
|
method: "notequal",
|
|
2741
2762
|
icon: "mdi:not-equal",
|
|
@@ -2748,7 +2769,7 @@ const Zo = {
|
|
|
2748
2769
|
],
|
|
2749
2770
|
key: "notequal"
|
|
2750
2771
|
},
|
|
2751
|
-
|
|
2772
|
+
Xo,
|
|
2752
2773
|
{
|
|
2753
2774
|
method: "greaterthan",
|
|
2754
2775
|
icon: "mdi:greater-than",
|
|
@@ -2803,7 +2824,7 @@ const Zo = {
|
|
|
2803
2824
|
description: "Less than",
|
|
2804
2825
|
allowedTypes: ["number"]
|
|
2805
2826
|
}
|
|
2806
|
-
],
|
|
2827
|
+
], ea = { class: "cl-group cl-inline cl-relative cl-w-auto" }, la = { 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" }, ta = { class: "cl-p-2 cl-select-none" }, oa = ["onClick"], aa = /* @__PURE__ */ D({
|
|
2807
2828
|
__name: "cl-ui-grid-method-selector",
|
|
2808
2829
|
props: {
|
|
2809
2830
|
filter: {},
|
|
@@ -2813,27 +2834,27 @@ const Zo = {
|
|
|
2813
2834
|
},
|
|
2814
2835
|
emits: ["update:filter"],
|
|
2815
2836
|
setup(t, { emit: o }) {
|
|
2816
|
-
const e = t, { t: l } =
|
|
2837
|
+
const e = t, { t: l } = te(), a = O(() => {
|
|
2817
2838
|
let s = [];
|
|
2818
|
-
return e.column.type !== "slot" ? s = Xe.filter((
|
|
2819
|
-
|
|
2820
|
-
}) : s.forEach((
|
|
2821
|
-
|
|
2839
|
+
return e.column.type !== "slot" ? s = Xe.filter((u) => u.allowedTypes.includes(e.column.type)) : typeof e.column.slotType < "u" && typeof e.column.field < "u" && (s = Xe.filter((u) => u.allowedTypes.includes(e.column.slotType))), e.column.type === "date" || e.column.type === "datetime" || e.column.slotType === "date" || e.column.slotType === "datetime" ? s.forEach((u) => {
|
|
2840
|
+
u.description = l(`grid.${u.key}`);
|
|
2841
|
+
}) : s.forEach((u) => {
|
|
2842
|
+
u.description = l(`grid.${u.method}`);
|
|
2822
2843
|
}), s;
|
|
2823
|
-
}),
|
|
2824
|
-
var
|
|
2825
|
-
let s = (
|
|
2826
|
-
return typeof s > "u" && (s = pe[e.defaultOperation]),
|
|
2844
|
+
}), n = O(() => {
|
|
2845
|
+
var u;
|
|
2846
|
+
let s = (u = e.filter) == null ? void 0 : u.filterMethod;
|
|
2847
|
+
return typeof s > "u" && (s = pe[e.defaultOperation]), a.value.find((f) => {
|
|
2827
2848
|
var v;
|
|
2828
|
-
return
|
|
2849
|
+
return f.method.toLowerCase() === ((v = s == null ? void 0 : s.removeNonAlphanumeric()) == null ? void 0 : v.toLowerCase());
|
|
2829
2850
|
});
|
|
2830
2851
|
});
|
|
2831
2852
|
function r(s) {
|
|
2832
|
-
let
|
|
2853
|
+
let u;
|
|
2833
2854
|
if (e.filter)
|
|
2834
|
-
|
|
2855
|
+
u = ce(e.filter), u.filterOperation = pe[s.toUpperCase()], u.filterMethod = s.toUpperCase();
|
|
2835
2856
|
else if (typeof e.column.field < "u")
|
|
2836
|
-
|
|
2857
|
+
u = {
|
|
2837
2858
|
filterOnColumn: e.column.field,
|
|
2838
2859
|
filterMethod: s.toUpperCase(),
|
|
2839
2860
|
filterOperation: pe[s.toUpperCase()],
|
|
@@ -2841,49 +2862,49 @@ const Zo = {
|
|
|
2841
2862
|
};
|
|
2842
2863
|
else
|
|
2843
2864
|
return;
|
|
2844
|
-
o("update:filter",
|
|
2865
|
+
o("update:filter", u);
|
|
2845
2866
|
}
|
|
2846
|
-
return (s,
|
|
2847
|
-
|
|
2848
|
-
|
|
2867
|
+
return (s, u) => (d(), h("div", ea, [
|
|
2868
|
+
m("div", la, [
|
|
2869
|
+
n.value ? (d(), z(p(q), {
|
|
2849
2870
|
key: 0,
|
|
2850
|
-
icon:
|
|
2871
|
+
icon: n.value.icon,
|
|
2851
2872
|
class: I(["cl-text-lg", {
|
|
2852
2873
|
"cl-text-grey-4": e.filter === void 0 || e.filter.filterValue === "",
|
|
2853
2874
|
"cl-text-primary-default": e.filter && e.filter.filterValue !== ""
|
|
2854
2875
|
}])
|
|
2855
2876
|
}, null, 8, ["icon", "class"])) : M("", !0)
|
|
2856
2877
|
]),
|
|
2857
|
-
|
|
2878
|
+
m("div", {
|
|
2858
2879
|
class: I(["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 group-hover:cl-flex group-hover:cl-h-auto group-hover:cl-w-52", {
|
|
2859
2880
|
"cl-left-0": s.firstHalf,
|
|
2860
2881
|
"cl--left-44": !s.firstHalf
|
|
2861
2882
|
}])
|
|
2862
2883
|
}, [
|
|
2863
|
-
|
|
2864
|
-
(
|
|
2865
|
-
var
|
|
2866
|
-
return
|
|
2884
|
+
m("strong", ta, _(p(l)("grid.availableMethods")), 1),
|
|
2885
|
+
(d(!0), h(x, null, Y(a.value, (f, v) => {
|
|
2886
|
+
var w;
|
|
2887
|
+
return d(), h("span", {
|
|
2867
2888
|
key: v,
|
|
2868
2889
|
class: I(["cl-cursor-pointer cl-px-4 cl-py-1 cl-transition-colors cl-w-full hover:cl-bg-grey-0", {
|
|
2869
|
-
"cl-bg-primary-default cl-opacity-80":
|
|
2890
|
+
"cl-bg-primary-default cl-opacity-80": f.method === ((w = n.value) == null ? void 0 : w.method)
|
|
2870
2891
|
}]),
|
|
2871
|
-
onClick: K((
|
|
2892
|
+
onClick: K((i) => r(f.method), ["prevent"])
|
|
2872
2893
|
}, [
|
|
2873
|
-
Q(_(
|
|
2874
|
-
|
|
2875
|
-
icon:
|
|
2894
|
+
Q(_(f.description) + " ", 1),
|
|
2895
|
+
C(p(q), {
|
|
2896
|
+
icon: f.icon,
|
|
2876
2897
|
class: "cl-float-right cl-text-grey-4 cl-text-sm"
|
|
2877
2898
|
}, null, 8, ["icon"])
|
|
2878
|
-
], 10,
|
|
2899
|
+
], 10, oa);
|
|
2879
2900
|
}), 128))
|
|
2880
2901
|
], 2)
|
|
2881
2902
|
]));
|
|
2882
2903
|
}
|
|
2883
|
-
}),
|
|
2904
|
+
}), na = {
|
|
2884
2905
|
key: 0,
|
|
2885
2906
|
class: "cl-border cl-border-grey-2 cl-flex cl-overflow-hidden cl-rounded-md lg:cl-overflow-visible"
|
|
2886
|
-
},
|
|
2907
|
+
}, sa = /* @__PURE__ */ m("option", { value: void 0 }, null, -1), ra = ["selected"], ca = ["selected"], ia = /* @__PURE__ */ D({
|
|
2887
2908
|
__name: "cl-ui-grid-filter",
|
|
2888
2909
|
props: {
|
|
2889
2910
|
filter: {},
|
|
@@ -2892,26 +2913,26 @@ const Zo = {
|
|
|
2892
2913
|
},
|
|
2893
2914
|
emits: ["update:filter"],
|
|
2894
2915
|
setup(t, { emit: o }) {
|
|
2895
|
-
const e = t, { locale: l, t:
|
|
2896
|
-
function
|
|
2916
|
+
const e = t, { locale: l, t: a } = te();
|
|
2917
|
+
function n() {
|
|
2897
2918
|
return e.column.type === "string" || e.column.slotType === "string" ? pe.CONTAINS : e.column.type === "datetime" || e.column.slotType === "datetime" || e.column.type === "date" || e.column.slotType === "date" ? pe.LESS_THAN : pe.EQUAL;
|
|
2898
2919
|
}
|
|
2899
|
-
const r =
|
|
2920
|
+
const r = O({
|
|
2900
2921
|
get: () => e.filter,
|
|
2901
2922
|
set: (c) => o("update:filter", c)
|
|
2902
|
-
}), s =
|
|
2923
|
+
}), s = O(() => {
|
|
2903
2924
|
var c;
|
|
2904
2925
|
return ((c = r.value) == null ? void 0 : c.filterValue) ?? "";
|
|
2905
|
-
}),
|
|
2906
|
-
function
|
|
2907
|
-
var
|
|
2908
|
-
let
|
|
2926
|
+
}), u = O(() => s.value !== "" ? new Date(s.value) : null), f = O(() => Intl.NumberFormat(l.value).format(1.1).replace(/[0-9]+/g, "")), v = O(() => Pe(e.column));
|
|
2927
|
+
function w(c, k) {
|
|
2928
|
+
var ee;
|
|
2929
|
+
let T, j = !1;
|
|
2909
2930
|
const V = ((c == null ? void 0 : c.value) ?? k).trim();
|
|
2910
2931
|
if (r.value)
|
|
2911
|
-
|
|
2932
|
+
j = ((ee = r.value) == null ? void 0 : ee.filterValue) === V, T = ce(r.value), T.filterValue = V;
|
|
2912
2933
|
else if (V !== "" && typeof e.column.field < "u") {
|
|
2913
|
-
const ue =
|
|
2914
|
-
|
|
2934
|
+
const ue = n();
|
|
2935
|
+
T = {
|
|
2915
2936
|
filterOnColumn: e.column.field,
|
|
2916
2937
|
filterMethod: pe[ue],
|
|
2917
2938
|
filterOperation: ue,
|
|
@@ -2919,64 +2940,64 @@ const Zo = {
|
|
|
2919
2940
|
};
|
|
2920
2941
|
} else
|
|
2921
2942
|
return;
|
|
2922
|
-
|
|
2943
|
+
j === !1 && (r.value = T);
|
|
2923
2944
|
}
|
|
2924
|
-
function
|
|
2945
|
+
function i(c) {
|
|
2925
2946
|
let k;
|
|
2926
|
-
e.column.format === X.INTEGER ? (typeof c == "string" && (c = parseInt(c)), k = Math.round(c)) : (typeof c == "string" && (c = parseFloat(c.replace(
|
|
2947
|
+
e.column.format === X.INTEGER ? (typeof c == "string" && (c = parseInt(c)), k = Math.round(c)) : (typeof c == "string" && (c = parseFloat(c.replace(f.value, "."))), k = c), w(null, isNaN(k) ? "" : k.toString());
|
|
2927
2948
|
}
|
|
2928
|
-
function
|
|
2929
|
-
|
|
2949
|
+
function y(c) {
|
|
2950
|
+
w(null, (c == null ? void 0 : c.toISOString()) ?? "");
|
|
2930
2951
|
}
|
|
2931
|
-
return (c, k) => v.value ? (
|
|
2932
|
-
c.column.type === "boolean" || c.column.slotType === "boolean" ? (
|
|
2952
|
+
return (c, k) => v.value ? (d(), h("div", na, [
|
|
2953
|
+
c.column.type === "boolean" || c.column.slotType === "boolean" ? (d(), h("select", {
|
|
2933
2954
|
key: 0,
|
|
2934
2955
|
class: "!cl-h-[2rem] cl-border-none cl-mb-0 cl-rounded-md cl-w-full",
|
|
2935
|
-
onChange: k[0] || (k[0] = (
|
|
2956
|
+
onChange: k[0] || (k[0] = (T) => w(T.target))
|
|
2936
2957
|
}, [
|
|
2937
|
-
|
|
2938
|
-
|
|
2958
|
+
sa,
|
|
2959
|
+
m("option", {
|
|
2939
2960
|
value: "true",
|
|
2940
2961
|
selected: s.value === "true"
|
|
2941
|
-
}, _(p(
|
|
2942
|
-
|
|
2962
|
+
}, _(p(a)("grid.true")), 9, ra),
|
|
2963
|
+
m("option", {
|
|
2943
2964
|
value: "false",
|
|
2944
2965
|
selected: s.value === "false"
|
|
2945
|
-
}, _(p(
|
|
2946
|
-
], 32)) : c.column.type === "date" || c.column.type === "datetime" || c.column.slotType === "date" || c.column.slotType === "datetime" ? (
|
|
2966
|
+
}, _(p(a)("grid.false")), 9, ca)
|
|
2967
|
+
], 32)) : c.column.type === "date" || c.column.type === "datetime" || c.column.slotType === "date" || c.column.slotType === "datetime" ? (d(), z(oe, {
|
|
2947
2968
|
key: 1,
|
|
2948
|
-
"model-value":
|
|
2969
|
+
"model-value": u.value,
|
|
2949
2970
|
class: "!cl-h-[2rem] !cl-text-xs cl-border-none cl-mb-0 cl-w-full lg:!cl-text-base",
|
|
2950
2971
|
min: "1900-01-01",
|
|
2951
2972
|
max: "2999-12-31T23:59",
|
|
2952
2973
|
label: c.column.caption,
|
|
2953
2974
|
"show-label": !1,
|
|
2954
2975
|
"input-type": c.column.type === "slot" ? c.column.slotType : c.column.type,
|
|
2955
|
-
"onUpdate:modelValue": k[1] || (k[1] = (
|
|
2956
|
-
}, null, 8, ["model-value", "label", "input-type"])) : c.column.type === "number" || c.column.slotType === "number" ? (
|
|
2976
|
+
"onUpdate:modelValue": k[1] || (k[1] = (T, j) => y(j))
|
|
2977
|
+
}, null, 8, ["model-value", "label", "input-type"])) : c.column.type === "number" || c.column.slotType === "number" ? (d(), z(oe, {
|
|
2957
2978
|
key: 2,
|
|
2958
2979
|
"model-value": s.value,
|
|
2959
2980
|
class: "!cl-h-[2rem] !cl-text-xs cl-border-none cl-mb-0 cl-w-full lg:!cl-text-base",
|
|
2960
2981
|
"input-type": "number",
|
|
2961
2982
|
"show-arrows": !1,
|
|
2962
|
-
onInput: k[2] || (k[2] = (
|
|
2963
|
-
}, null, 8, ["model-value"])) : c.column.type === "string" || c.column.slotType === "string" ? (
|
|
2983
|
+
onInput: k[2] || (k[2] = (T, j) => i(j))
|
|
2984
|
+
}, null, 8, ["model-value"])) : c.column.type === "string" || c.column.slotType === "string" ? (d(), z(oe, {
|
|
2964
2985
|
key: 3,
|
|
2965
2986
|
"model-value": s.value,
|
|
2966
2987
|
class: "!cl-h-[2rem] !cl-text-xs cl-border-none cl-mb-0 cl-w-full lg:!cl-text-base",
|
|
2967
2988
|
"input-type": "text",
|
|
2968
|
-
onInput: k[3] || (k[3] = (
|
|
2989
|
+
onInput: k[3] || (k[3] = (T, j) => w(null, j))
|
|
2969
2990
|
}, null, 8, ["model-value"])) : M("", !0),
|
|
2970
|
-
|
|
2991
|
+
C(aa, {
|
|
2971
2992
|
filter: r.value,
|
|
2972
|
-
"onUpdate:filter": k[4] || (k[4] = (
|
|
2993
|
+
"onUpdate:filter": k[4] || (k[4] = (T) => r.value = T),
|
|
2973
2994
|
column: c.column,
|
|
2974
|
-
"default-operation":
|
|
2995
|
+
"default-operation": n(),
|
|
2975
2996
|
"first-half": c.firstHalf
|
|
2976
2997
|
}, null, 8, ["filter", "column", "default-operation", "first-half"])
|
|
2977
2998
|
])) : M("", !0);
|
|
2978
2999
|
}
|
|
2979
|
-
}),
|
|
3000
|
+
}), ua = { class: "-cl-top-1 cl-bg-white cl-shadow-sm cl-sticky cl-z-10 lg:cl-bg-transparent lg:cl-relative lg:cl-shadow-none" }, da = { class: "cl-hidden lg:cl-table-row" }, fa = ["onClick"], pa = { class: "cl-flex cl-justify-end cl-w-full lg:cl-hidden" }, ma = { class: "cl-col-span-2 lg:cl-hidden" }, ga = ["onClick"], va = { class: "cl-font-normal cl-mr-1" }, ba = /* @__PURE__ */ D({
|
|
2980
3001
|
__name: "cl-ui-grid-header",
|
|
2981
3002
|
props: {
|
|
2982
3003
|
request: {},
|
|
@@ -2986,189 +3007,189 @@ const Zo = {
|
|
|
2986
3007
|
},
|
|
2987
3008
|
emits: ["update:request", "update:filterPanelOpen"],
|
|
2988
3009
|
setup(t, { emit: o }) {
|
|
2989
|
-
const e = t, { t: l } =
|
|
3010
|
+
const e = t, { t: l } = te(), a = O({
|
|
2990
3011
|
get: () => e.request,
|
|
2991
|
-
set: (
|
|
3012
|
+
set: (u) => o("update:request", u)
|
|
2992
3013
|
});
|
|
2993
|
-
function
|
|
2994
|
-
var v,
|
|
2995
|
-
return ((v =
|
|
2996
|
-
}
|
|
2997
|
-
function r(
|
|
2998
|
-
if (typeof
|
|
2999
|
-
const
|
|
3000
|
-
|
|
3001
|
-
sortOnColumn:
|
|
3014
|
+
function n(u, f) {
|
|
3015
|
+
var v, w;
|
|
3016
|
+
return ((v = a.value.sort) == null ? void 0 : v.sortOnColumn) === u.field && ((w = a.value.sort) == null ? void 0 : w.sortByAscending) === f;
|
|
3017
|
+
}
|
|
3018
|
+
function r(u) {
|
|
3019
|
+
if (typeof u < "u") {
|
|
3020
|
+
const f = ce(e.request);
|
|
3021
|
+
f.sort === null || f.sort.sortOnColumn !== u ? f.sort = {
|
|
3022
|
+
sortOnColumn: u,
|
|
3002
3023
|
sortByAscending: !0
|
|
3003
|
-
} :
|
|
3024
|
+
} : f.sort.sortOnColumn === u && f.sort.sortByAscending === !0 ? f.sort.sortByAscending = !1 : f.sort = null, a.value = f;
|
|
3004
3025
|
}
|
|
3005
3026
|
}
|
|
3006
|
-
function s(
|
|
3007
|
-
if (
|
|
3008
|
-
const
|
|
3009
|
-
v > -1 ?
|
|
3027
|
+
function s(u) {
|
|
3028
|
+
if (u) {
|
|
3029
|
+
const f = ce(a.value), v = f.filters.findIndex((w) => w.filterOnColumn === u.filterOnColumn);
|
|
3030
|
+
v > -1 ? f.filters[v] = u : f.filters.push(u), f.pageNumber = 1, a.value = f;
|
|
3010
3031
|
}
|
|
3011
3032
|
}
|
|
3012
|
-
return (
|
|
3013
|
-
|
|
3014
|
-
(
|
|
3015
|
-
key:
|
|
3033
|
+
return (u, f) => (d(), h("thead", ua, [
|
|
3034
|
+
m("tr", da, [
|
|
3035
|
+
(d(!0), h(x, null, Y(u.columns, (v, w) => (d(), h("th", {
|
|
3036
|
+
key: w,
|
|
3016
3037
|
class: I(["cl-text-grey-3 cl-text-sm", {
|
|
3017
3038
|
"cl-cursor-pointer": p(Oe)(v)
|
|
3018
3039
|
}]),
|
|
3019
|
-
onClick: (
|
|
3040
|
+
onClick: (i) => p(Oe)(v) ? r(v.field) : () => {
|
|
3020
3041
|
}
|
|
3021
3042
|
}, [
|
|
3022
3043
|
Q(_(v.caption) + " ", 1),
|
|
3023
|
-
|
|
3044
|
+
U(C(p(q), {
|
|
3024
3045
|
class: "cl-inline-block",
|
|
3025
3046
|
icon: "ph:caret-up"
|
|
3026
3047
|
}, null, 512), [
|
|
3027
|
-
[
|
|
3048
|
+
[B, n(v, !0)]
|
|
3028
3049
|
]),
|
|
3029
|
-
|
|
3050
|
+
U(C(p(q), {
|
|
3030
3051
|
class: "cl-inline-block",
|
|
3031
3052
|
icon: "ph:caret-down"
|
|
3032
3053
|
}, null, 512), [
|
|
3033
|
-
[
|
|
3054
|
+
[B, n(v, !1)]
|
|
3034
3055
|
])
|
|
3035
|
-
], 10,
|
|
3056
|
+
], 10, fa))), 128))
|
|
3036
3057
|
]),
|
|
3037
|
-
|
|
3058
|
+
m("tr", {
|
|
3038
3059
|
class: I(["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", {
|
|
3039
|
-
"cl-hidden lg:cl-table-row": !
|
|
3060
|
+
"cl-hidden lg:cl-table-row": !u.filterPanelOpen
|
|
3040
3061
|
}])
|
|
3041
3062
|
}, [
|
|
3042
|
-
|
|
3043
|
-
|
|
3063
|
+
m("div", pa, [
|
|
3064
|
+
C(p(q), {
|
|
3044
3065
|
class: "cl-text-grey-4 hover:cl-cursor-pointer hover:cl-text-link-default",
|
|
3045
3066
|
icon: "ph:x",
|
|
3046
3067
|
size: 16,
|
|
3047
|
-
onClick:
|
|
3068
|
+
onClick: f[0] || (f[0] = K((v) => u.$emit("update:filterPanelOpen", !1), ["prevent"]))
|
|
3048
3069
|
})
|
|
3049
3070
|
]),
|
|
3050
|
-
(
|
|
3051
|
-
key:
|
|
3071
|
+
(d(!0), h(x, null, Y(u.columns, (v, w) => (d(), h("th", {
|
|
3072
|
+
key: w,
|
|
3052
3073
|
class: I(["cl-grid cl-grid-cols-4 cl-py-1 cl-text-xs cl-w-full lg:cl-table-cell lg:cl-w-auto", {
|
|
3053
3074
|
"cl-hidden lg:cl-table-cell": !p(Pe)(v)
|
|
3054
3075
|
}])
|
|
3055
3076
|
}, [
|
|
3056
|
-
|
|
3057
|
-
p(Oe)(v) ? (
|
|
3077
|
+
m("div", ma, _(v.caption), 1),
|
|
3078
|
+
p(Oe)(v) ? (d(), h("div", {
|
|
3058
3079
|
key: 0,
|
|
3059
3080
|
class: "cl-col-span-2 cl-gap-1 cl-span lg:cl-hidden",
|
|
3060
|
-
onClick: (
|
|
3081
|
+
onClick: (i) => r(v.field)
|
|
3061
3082
|
}, [
|
|
3062
|
-
|
|
3063
|
-
|
|
3083
|
+
m("span", va, _(p(l)("grid.sortBy")), 1),
|
|
3084
|
+
n(v, !0) ? (d(), z(p(q), {
|
|
3064
3085
|
key: 0,
|
|
3065
3086
|
class: "cl-cursor-pointer cl-inline-block",
|
|
3066
3087
|
icon: "ph:caret-up"
|
|
3067
|
-
})) :
|
|
3088
|
+
})) : n(v, !1) ? (d(), z(p(q), {
|
|
3068
3089
|
key: 1,
|
|
3069
3090
|
class: "cl-cursor-pointer cl-inline-block",
|
|
3070
3091
|
icon: "ph:caret-down"
|
|
3071
|
-
})) : (
|
|
3092
|
+
})) : (d(), z(p(q), {
|
|
3072
3093
|
key: 2,
|
|
3073
3094
|
class: "cl-cursor-pointer cl-inline-block",
|
|
3074
3095
|
icon: "ph:minus"
|
|
3075
3096
|
}))
|
|
3076
|
-
], 8,
|
|
3077
|
-
|
|
3097
|
+
], 8, ga)) : M("", !0),
|
|
3098
|
+
C(ia, {
|
|
3078
3099
|
class: "cl-col-span-4",
|
|
3079
|
-
filter:
|
|
3100
|
+
filter: a.value.filters.find((i) => i.filterOnColumn === v.field),
|
|
3080
3101
|
column: v,
|
|
3081
|
-
"first-half":
|
|
3102
|
+
"first-half": w <= u.columns.length / 2,
|
|
3082
3103
|
"onUpdate:filter": s
|
|
3083
3104
|
}, null, 8, ["filter", "column", "first-half"])
|
|
3084
3105
|
], 2))), 128))
|
|
3085
3106
|
], 2)
|
|
3086
3107
|
]));
|
|
3087
3108
|
}
|
|
3088
|
-
}),
|
|
3109
|
+
}), ha = { class: "cl-fixed cl-flex cl-h-full cl-justify-end cl-right-0 cl-shadow-lg cl-top-0 cl-z-50" }, ya = { 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" }, wa = { class: "cl-mb-4 cl-text-2xl cl-text-off-white" }, $a = { class: "cl-border-grey-3 cl-border-t cl-flex cl-flex-wrap cl-text-sm cl-w-full" }, ka = { class: "cl-border-b cl-border-grey-2 cl-flex cl-py-2 cl-text-sm cl-w-full" }, Ta = { class: "cl-flex-1 cl-py-2" }, Ca = { class: "cl-py-2 cl-w-1/4" }, _a = { class: "cl-py-2 cl-w-1/5" }, Sa = { class: "cl-flex-1 cl-py-2" }, Oa = { class: "cl-py-2 cl-w-1/4" }, Ea = { class: "cl-py-2 cl-text-off-white cl-w-1/5" }, Aa = { key: 1 }, ja = {
|
|
3089
3110
|
inheritAttrs: !1
|
|
3090
|
-
},
|
|
3091
|
-
...
|
|
3111
|
+
}, Ma = /* @__PURE__ */ D({
|
|
3112
|
+
...ja,
|
|
3092
3113
|
__name: "cl-ui-grid-view-manager",
|
|
3093
3114
|
props: {
|
|
3094
3115
|
columns: {}
|
|
3095
3116
|
},
|
|
3096
3117
|
emits: ["update:columns"],
|
|
3097
3118
|
setup(t, { emit: o }) {
|
|
3098
|
-
const e = t, { t: l } =
|
|
3099
|
-
function
|
|
3100
|
-
v <
|
|
3119
|
+
const e = t, { t: l } = te(), a = S(!1);
|
|
3120
|
+
function n(u, f, v) {
|
|
3121
|
+
v < u.length && v >= 0 && u.splice(v, 0, u.splice(f, 1)[0]);
|
|
3101
3122
|
}
|
|
3102
|
-
function r(
|
|
3103
|
-
const v = ce(e.columns),
|
|
3104
|
-
|
|
3123
|
+
function r(u, f) {
|
|
3124
|
+
const v = ce(e.columns), w = (u == null ? void 0 : u.checked) ?? !1, i = v.findIndex((y) => y.name === f.name);
|
|
3125
|
+
i >= 0 && (v[i].visible = w), o("update:columns", v);
|
|
3105
3126
|
}
|
|
3106
|
-
function s(
|
|
3107
|
-
const v = ce(e.columns),
|
|
3108
|
-
|
|
3127
|
+
function s(u, f) {
|
|
3128
|
+
const v = ce(e.columns), w = f === "up" ? u + 1 : u - 1;
|
|
3129
|
+
n(v, u, w), o("update:columns", v);
|
|
3109
3130
|
}
|
|
3110
|
-
return (
|
|
3111
|
-
|
|
3131
|
+
return (u, f) => (d(), h(x, null, [
|
|
3132
|
+
C(me, ie(u.$attrs, {
|
|
3112
3133
|
class: "cl-w-full",
|
|
3113
3134
|
size: "small",
|
|
3114
|
-
onClick:
|
|
3135
|
+
onClick: f[0] || (f[0] = K((v) => a.value = !0, ["prevent"]))
|
|
3115
3136
|
}), {
|
|
3116
3137
|
default: L(() => [
|
|
3117
3138
|
Q(_(p(l)("grid.manageView")), 1)
|
|
3118
3139
|
]),
|
|
3119
3140
|
_: 1
|
|
3120
3141
|
}, 16),
|
|
3121
|
-
(
|
|
3122
|
-
|
|
3142
|
+
(d(), z(xe, { to: "body" }, [
|
|
3143
|
+
C(ge, { name: "slide-left" }, {
|
|
3123
3144
|
default: L(() => [
|
|
3124
|
-
|
|
3125
|
-
|
|
3126
|
-
|
|
3145
|
+
U(m("div", ha, [
|
|
3146
|
+
m("div", ya, [
|
|
3147
|
+
C(p(q), {
|
|
3127
3148
|
class: "cl-absolute cl-cursor-pointer cl-right-3 cl-text-off-white cl-top-3",
|
|
3128
3149
|
icon: "ph:x",
|
|
3129
3150
|
size: 16,
|
|
3130
|
-
onClick:
|
|
3151
|
+
onClick: f[1] || (f[1] = (v) => a.value = !1)
|
|
3131
3152
|
}),
|
|
3132
|
-
|
|
3133
|
-
|
|
3134
|
-
|
|
3135
|
-
|
|
3136
|
-
|
|
3137
|
-
|
|
3153
|
+
m("h3", wa, _(p(l)("grid.manageView")), 1),
|
|
3154
|
+
m("ul", $a, [
|
|
3155
|
+
m("li", ka, [
|
|
3156
|
+
m("strong", Ta, _(p(l)("grid.column")), 1),
|
|
3157
|
+
m("strong", Ca, _(p(l)("grid.visible")), 1),
|
|
3158
|
+
m("strong", _a, _(p(l)("grid.order")), 1)
|
|
3138
3159
|
]),
|
|
3139
|
-
(
|
|
3140
|
-
key:
|
|
3160
|
+
(d(!0), h(x, null, Y(u.columns, (v, w) => (d(), h("li", {
|
|
3161
|
+
key: w,
|
|
3141
3162
|
class: "cl-border-b cl-border-grey-2 cl-flex cl-py-2 cl-text-sm cl-w-full"
|
|
3142
3163
|
}, [
|
|
3143
|
-
|
|
3144
|
-
|
|
3145
|
-
|
|
3164
|
+
m("div", Sa, _(v.caption), 1),
|
|
3165
|
+
m("div", Oa, [
|
|
3166
|
+
C(oe, {
|
|
3146
3167
|
"model-value": v.visible === void 0 || v.visible === !0,
|
|
3147
3168
|
"input-type": "checkbox",
|
|
3148
|
-
onClick: (
|
|
3169
|
+
onClick: (i) => r(i.target, v)
|
|
3149
3170
|
}, null, 8, ["model-value", "onClick"])
|
|
3150
3171
|
]),
|
|
3151
|
-
|
|
3152
|
-
v.visible === void 0 || v.visible === !0 ? (
|
|
3153
|
-
|
|
3172
|
+
m("div", Ea, [
|
|
3173
|
+
v.visible === void 0 || v.visible === !0 ? (d(), h(x, { key: 0 }, [
|
|
3174
|
+
w !== 0 ? (d(), z(p(q), {
|
|
3154
3175
|
key: 0,
|
|
3155
3176
|
class: "cl-cursor-pointer cl-inline-block cl-mr-2",
|
|
3156
3177
|
icon: "ph:arrow-left",
|
|
3157
|
-
onClick: (
|
|
3178
|
+
onClick: (i) => s(w, "down")
|
|
3158
3179
|
}, null, 8, ["onClick"])) : M("", !0),
|
|
3159
|
-
|
|
3180
|
+
w !== u.columns.length - 1 ? (d(), z(p(q), {
|
|
3160
3181
|
key: 1,
|
|
3161
3182
|
class: "cl-cursor-pointer cl-inline-block",
|
|
3162
3183
|
icon: "ph:arrow-right",
|
|
3163
|
-
onClick: (
|
|
3184
|
+
onClick: (i) => s(w, "up")
|
|
3164
3185
|
}, null, 8, ["onClick"])) : M("", !0)
|
|
3165
|
-
], 64)) : (
|
|
3186
|
+
], 64)) : (d(), h("em", Aa, _(p(l)("grid.hidden")), 1))
|
|
3166
3187
|
])
|
|
3167
3188
|
]))), 128))
|
|
3168
3189
|
])
|
|
3169
3190
|
])
|
|
3170
3191
|
], 512), [
|
|
3171
|
-
[
|
|
3192
|
+
[B, a.value]
|
|
3172
3193
|
])
|
|
3173
3194
|
]),
|
|
3174
3195
|
_: 1
|
|
@@ -3176,7 +3197,7 @@ const Zo = {
|
|
|
3176
3197
|
]))
|
|
3177
3198
|
], 64));
|
|
3178
3199
|
}
|
|
3179
|
-
}),
|
|
3200
|
+
}), Ia = { class: "cl-relative cl-w-full lg:cl-min-h-fit" }, Na = { class: "cl-absolute cl-flex cl-items-center cl-justify-center cl-min-h-full cl-p-32 cl-w-full" }, qa = { class: "cl-overflow-x-auto cl-overscroll-x-none cl-pt-1" }, Da = { class: "cl-hidden lg:cl-table-column-group" }, Ra = /* @__PURE__ */ D({
|
|
3180
3201
|
__name: "cl-ui-grid",
|
|
3181
3202
|
props: {
|
|
3182
3203
|
columns: {},
|
|
@@ -3187,138 +3208,138 @@ const Zo = {
|
|
|
3187
3208
|
},
|
|
3188
3209
|
emits: ["update:columns", "update:request", "data-request", "row-edit", "edit-start", "edit-end", "row-select"],
|
|
3189
3210
|
setup(t, { emit: o }) {
|
|
3190
|
-
const e = t, l =
|
|
3211
|
+
const e = t, l = O({
|
|
3191
3212
|
get: () => e.columns,
|
|
3192
3213
|
set: (c) => o("update:columns", c)
|
|
3193
|
-
}),
|
|
3214
|
+
}), a = O(() => l.value.filter((c) => c.visible ?? !0)), n = S({});
|
|
3194
3215
|
function r() {
|
|
3195
3216
|
const c = {};
|
|
3196
3217
|
window.innerWidth >= 1024 && l.value.forEach((k) => {
|
|
3197
|
-
const
|
|
3198
|
-
c[`${k.name}`] = `width: ${
|
|
3199
|
-
}),
|
|
3218
|
+
const T = k.width ? `${k.width}px` : "";
|
|
3219
|
+
c[`${k.name}`] = `width: ${T}; min-width: ${T};`;
|
|
3220
|
+
}), n.value = c;
|
|
3200
3221
|
}
|
|
3201
3222
|
function s(c) {
|
|
3202
|
-
return
|
|
3223
|
+
return n.value[c] ?? "";
|
|
3203
3224
|
}
|
|
3204
3225
|
Ce(() => {
|
|
3205
3226
|
window.addEventListener("resize", r), r();
|
|
3206
3227
|
}), Ae(() => window.removeEventListener("resize", r));
|
|
3207
|
-
const
|
|
3228
|
+
const u = O({
|
|
3208
3229
|
get: () => e.request,
|
|
3209
3230
|
set: (c) => o("update:request", c)
|
|
3210
3231
|
});
|
|
3211
|
-
function
|
|
3212
|
-
const c = ce(
|
|
3213
|
-
c.pageNumber = 1, c.filters = [],
|
|
3232
|
+
function f() {
|
|
3233
|
+
const c = ce(u.value);
|
|
3234
|
+
c.pageNumber = 1, c.filters = [], u.value = c;
|
|
3214
3235
|
}
|
|
3215
|
-
const v =
|
|
3216
|
-
H(
|
|
3236
|
+
const v = tl(() => o("data-request"), 750);
|
|
3237
|
+
H(u, v, {
|
|
3217
3238
|
deep: !0,
|
|
3218
3239
|
immediate: !0
|
|
3219
3240
|
});
|
|
3220
|
-
const
|
|
3221
|
-
return H(
|
|
3222
|
-
|
|
3223
|
-
}), (c, k) => (
|
|
3224
|
-
|
|
3241
|
+
const w = O(() => e.data), i = S(!1), y = S(!1);
|
|
3242
|
+
return H(i, () => {
|
|
3243
|
+
i.value ? o("edit-start") : o("edit-end");
|
|
3244
|
+
}), (c, k) => (d(), h("div", Ia, [
|
|
3245
|
+
C(ge, { name: "fade" }, {
|
|
3225
3246
|
default: L(() => [
|
|
3226
|
-
|
|
3227
|
-
|
|
3247
|
+
U(m("div", Na, [
|
|
3248
|
+
C(je)
|
|
3228
3249
|
], 512), [
|
|
3229
|
-
[
|
|
3250
|
+
[B, c.loading]
|
|
3230
3251
|
])
|
|
3231
3252
|
]),
|
|
3232
3253
|
_: 1
|
|
3233
3254
|
}),
|
|
3234
|
-
|
|
3235
|
-
"edit-mode":
|
|
3236
|
-
"onUpdate:editMode": k[1] || (k[1] = (
|
|
3237
|
-
"filter-panel-open":
|
|
3238
|
-
"onUpdate:filterPanelOpen": k[2] || (k[2] = (
|
|
3255
|
+
C(po, {
|
|
3256
|
+
"edit-mode": i.value,
|
|
3257
|
+
"onUpdate:editMode": k[1] || (k[1] = (T) => i.value = T),
|
|
3258
|
+
"filter-panel-open": y.value,
|
|
3259
|
+
"onUpdate:filterPanelOpen": k[2] || (k[2] = (T) => y.value = T),
|
|
3239
3260
|
columns: c.columns,
|
|
3240
3261
|
options: c.options,
|
|
3241
3262
|
request: c.request,
|
|
3242
|
-
onClearFilters:
|
|
3263
|
+
onClearFilters: f
|
|
3243
3264
|
}, {
|
|
3244
3265
|
"view-manager": L(() => [
|
|
3245
|
-
|
|
3266
|
+
C(Ma, {
|
|
3246
3267
|
columns: l.value,
|
|
3247
|
-
"onUpdate:columns": k[0] || (k[0] = (
|
|
3268
|
+
"onUpdate:columns": k[0] || (k[0] = (T) => l.value = T)
|
|
3248
3269
|
}, null, 8, ["columns"])
|
|
3249
3270
|
]),
|
|
3250
3271
|
_: 1
|
|
3251
3272
|
}, 8, ["edit-mode", "filter-panel-open", "columns", "options", "request"]),
|
|
3252
|
-
|
|
3253
|
-
|
|
3273
|
+
m("div", qa, [
|
|
3274
|
+
m("table", {
|
|
3254
3275
|
class: I(["cl-delay-75 cl-min-h-[276px] cl-overflow-x-auto cl-overscroll-x-none cl-text-left cl-transition-opacity cl-w-full", {
|
|
3255
3276
|
"cl-opacity-40": c.loading
|
|
3256
3277
|
}])
|
|
3257
3278
|
}, [
|
|
3258
|
-
|
|
3259
|
-
(
|
|
3260
|
-
key:
|
|
3261
|
-
style:
|
|
3279
|
+
m("colgroup", Da, [
|
|
3280
|
+
(d(!0), h(x, null, Y(a.value, (T, j) => (d(), h("col", {
|
|
3281
|
+
key: j,
|
|
3282
|
+
style: el(s(T.name)),
|
|
3262
3283
|
span: 1
|
|
3263
3284
|
}, null, 4))), 128))
|
|
3264
3285
|
]),
|
|
3265
|
-
|
|
3266
|
-
request:
|
|
3267
|
-
"onUpdate:request": k[3] || (k[3] = (
|
|
3268
|
-
"filter-panel-open":
|
|
3269
|
-
"onUpdate:filterPanelOpen": k[4] || (k[4] = (
|
|
3270
|
-
columns:
|
|
3286
|
+
C(ba, {
|
|
3287
|
+
request: u.value,
|
|
3288
|
+
"onUpdate:request": k[3] || (k[3] = (T) => u.value = T),
|
|
3289
|
+
"filter-panel-open": y.value,
|
|
3290
|
+
"onUpdate:filterPanelOpen": k[4] || (k[4] = (T) => y.value = T),
|
|
3291
|
+
columns: a.value,
|
|
3271
3292
|
options: c.options
|
|
3272
3293
|
}, null, 8, ["request", "filter-panel-open", "columns", "options"]),
|
|
3273
|
-
|
|
3274
|
-
columns:
|
|
3275
|
-
request:
|
|
3276
|
-
data:
|
|
3294
|
+
C(_o, {
|
|
3295
|
+
columns: a.value,
|
|
3296
|
+
request: u.value,
|
|
3297
|
+
data: w.value,
|
|
3277
3298
|
loading: c.loading,
|
|
3278
|
-
"edit-mode":
|
|
3299
|
+
"edit-mode": i.value,
|
|
3279
3300
|
"selection-enabled": c.options.rowSelectionEnabled,
|
|
3280
|
-
onClearFilters:
|
|
3281
|
-
onRowEdit: k[5] || (k[5] = (
|
|
3282
|
-
onRowSelect: k[6] || (k[6] = (
|
|
3301
|
+
onClearFilters: f,
|
|
3302
|
+
onRowEdit: k[5] || (k[5] = (T) => c.$emit("row-edit", T)),
|
|
3303
|
+
onRowSelect: k[6] || (k[6] = (T) => c.$emit("row-select", T))
|
|
3283
3304
|
}, ze({ _: 2 }, [
|
|
3284
|
-
Y(c.$slots, (
|
|
3285
|
-
name:
|
|
3305
|
+
Y(c.$slots, (T, j) => ({
|
|
3306
|
+
name: j,
|
|
3286
3307
|
fn: L((V) => [
|
|
3287
|
-
|
|
3308
|
+
A(c.$slots, j, le(re(V)))
|
|
3288
3309
|
])
|
|
3289
3310
|
}))
|
|
3290
3311
|
]), 1032, ["columns", "request", "data", "loading", "edit-mode", "selection-enabled"])
|
|
3291
3312
|
], 2)
|
|
3292
3313
|
]),
|
|
3293
|
-
|
|
3294
|
-
request:
|
|
3295
|
-
"onUpdate:request": k[7] || (k[7] = (
|
|
3314
|
+
C(Po, {
|
|
3315
|
+
request: u.value,
|
|
3316
|
+
"onUpdate:request": k[7] || (k[7] = (T) => u.value = T),
|
|
3296
3317
|
data: c.data
|
|
3297
3318
|
}, null, 8, ["request", "data"])
|
|
3298
3319
|
]));
|
|
3299
3320
|
}
|
|
3300
|
-
}),
|
|
3321
|
+
}), Ua = { 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" }, Ba = /* @__PURE__ */ D({
|
|
3301
3322
|
__name: "cl-ui-header",
|
|
3302
3323
|
emits: ["open-click"],
|
|
3303
3324
|
setup(t) {
|
|
3304
|
-
return (o, e) => (
|
|
3305
|
-
|
|
3306
|
-
|
|
3325
|
+
return (o, e) => (d(), h("header", Ua, [
|
|
3326
|
+
A(o.$slots, "logo"),
|
|
3327
|
+
m("div", {
|
|
3307
3328
|
class: "cl-cursor-pointer cl-flex cl-flex-nowrap",
|
|
3308
3329
|
onClick: e[0] || (e[0] = (l) => o.$emit("open-click"))
|
|
3309
3330
|
}, [
|
|
3310
|
-
|
|
3311
|
-
|
|
3331
|
+
A(o.$slots, "menu"),
|
|
3332
|
+
A(o.$slots, "icon")
|
|
3312
3333
|
])
|
|
3313
3334
|
]));
|
|
3314
3335
|
}
|
|
3315
|
-
}),
|
|
3336
|
+
}), xa = { 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]" }, za = ["src"], La = {
|
|
3316
3337
|
key: 0,
|
|
3317
3338
|
class: "cl-text-ellipsis cl-whitespace-nowrap"
|
|
3318
|
-
},
|
|
3339
|
+
}, Pa = {
|
|
3319
3340
|
key: 1,
|
|
3320
3341
|
class: "cl-text-ellipsis cl-text-xs cl-whitespace-nowrap"
|
|
3321
|
-
},
|
|
3342
|
+
}, Fa = { 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" }, Va = { class: "cl-absolute cl-bg-white cl-right-0 cl-shadow-2xl cl-top-20 cl-w-full cl-z-20" }, Ga = /* @__PURE__ */ D({
|
|
3322
3343
|
__name: "cl-ui-header-menu",
|
|
3323
3344
|
props: {
|
|
3324
3345
|
username: { default: "" },
|
|
@@ -3330,11 +3351,11 @@ const Zo = {
|
|
|
3330
3351
|
emits: ["update:is-open"],
|
|
3331
3352
|
setup(t, { emit: o }) {
|
|
3332
3353
|
const e = t, l = S();
|
|
3333
|
-
Le(l,
|
|
3334
|
-
function
|
|
3354
|
+
Le(l, a);
|
|
3355
|
+
function a() {
|
|
3335
3356
|
e.isOpen === !0 && o("update:is-open", !1);
|
|
3336
3357
|
}
|
|
3337
|
-
return (
|
|
3358
|
+
return (n, r) => (d(), h("div", {
|
|
3338
3359
|
ref_key: "headerMenuElement",
|
|
3339
3360
|
ref: l,
|
|
3340
3361
|
class: I(["md:cl-relative", {
|
|
@@ -3342,31 +3363,31 @@ const Zo = {
|
|
|
3342
3363
|
"cl-bg-blue-light": e.colour === "secondary"
|
|
3343
3364
|
}])
|
|
3344
3365
|
}, [
|
|
3345
|
-
|
|
3346
|
-
|
|
3366
|
+
m("div", xa, [
|
|
3367
|
+
n.image ? (d(), h("img", {
|
|
3347
3368
|
key: 0,
|
|
3348
|
-
src:
|
|
3369
|
+
src: n.image,
|
|
3349
3370
|
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"
|
|
3350
|
-
}, null, 8,
|
|
3371
|
+
}, null, 8, za)) : (d(), z(p(q), {
|
|
3351
3372
|
key: 1,
|
|
3352
3373
|
class: "cl-hidden cl-m-4 cl-text-white md:cl-block",
|
|
3353
3374
|
icon: "ph:user-circle",
|
|
3354
3375
|
width: "48",
|
|
3355
3376
|
height: "48"
|
|
3356
3377
|
})),
|
|
3357
|
-
|
|
3378
|
+
m("div", {
|
|
3358
3379
|
class: I(["cl-grow cl-hidden cl-my-4 md:cl-block", {
|
|
3359
3380
|
"cl-text-secondary-default": e.colour === "default",
|
|
3360
3381
|
"cl-text-white": e.colour === "secondary"
|
|
3361
3382
|
}])
|
|
3362
3383
|
}, [
|
|
3363
|
-
|
|
3364
|
-
|
|
3384
|
+
n.username ? (d(), h("div", La, _(n.username), 1)) : M("", !0),
|
|
3385
|
+
n.group ? (d(), h("div", Pa, _(n.group), 1)) : M("", !0)
|
|
3365
3386
|
], 2),
|
|
3366
|
-
|
|
3367
|
-
|
|
3387
|
+
m("div", Fa, [
|
|
3388
|
+
C(p(q), {
|
|
3368
3389
|
class: I(["cl-transform-gpu cl-transition-transform", {
|
|
3369
|
-
"cl-rotate-180":
|
|
3390
|
+
"cl-rotate-180": n.isOpen,
|
|
3370
3391
|
"cl-text-secondary-default": e.colour === "default",
|
|
3371
3392
|
"cl-text-white": e.colour === "secondary"
|
|
3372
3393
|
}]),
|
|
@@ -3374,59 +3395,40 @@ const Zo = {
|
|
|
3374
3395
|
}, null, 8, ["class"])
|
|
3375
3396
|
])
|
|
3376
3397
|
]),
|
|
3377
|
-
|
|
3398
|
+
C(ge, { name: "fade" }, {
|
|
3378
3399
|
default: L(() => [
|
|
3379
|
-
|
|
3380
|
-
|
|
3400
|
+
U(m("div", Va, [
|
|
3401
|
+
A(n.$slots, "default")
|
|
3381
3402
|
], 512), [
|
|
3382
|
-
[
|
|
3403
|
+
[B, n.isOpen]
|
|
3383
3404
|
])
|
|
3384
3405
|
]),
|
|
3385
3406
|
_: 3
|
|
3386
3407
|
})
|
|
3387
3408
|
], 2));
|
|
3388
3409
|
}
|
|
3389
|
-
})
|
|
3390
|
-
|
|
3391
|
-
"checkbox",
|
|
3392
|
-
"color",
|
|
3393
|
-
"date",
|
|
3394
|
-
"datetime",
|
|
3395
|
-
"email",
|
|
3396
|
-
"file",
|
|
3397
|
-
"number",
|
|
3398
|
-
"password",
|
|
3399
|
-
"radio",
|
|
3400
|
-
"range",
|
|
3401
|
-
"reset",
|
|
3402
|
-
"search",
|
|
3403
|
-
"submit",
|
|
3404
|
-
"tel",
|
|
3405
|
-
"text",
|
|
3406
|
-
"time",
|
|
3407
|
-
"url"
|
|
3408
|
-
];
|
|
3409
|
-
function Ue(t) {
|
|
3410
|
+
});
|
|
3411
|
+
function Be(t) {
|
|
3410
3412
|
return /[a-z]{2}-[A-Z]{2}/gm.test(t.localeCode);
|
|
3411
3413
|
}
|
|
3412
|
-
function
|
|
3414
|
+
function Ha(t) {
|
|
3413
3415
|
let o = Array.isArray(t);
|
|
3414
3416
|
if (o) {
|
|
3415
3417
|
for (const e of t)
|
|
3416
|
-
if (!
|
|
3418
|
+
if (!Wa(e)) {
|
|
3417
3419
|
o = !1;
|
|
3418
3420
|
break;
|
|
3419
3421
|
}
|
|
3420
3422
|
}
|
|
3421
3423
|
return o;
|
|
3422
3424
|
}
|
|
3423
|
-
function
|
|
3425
|
+
function Wa(t) {
|
|
3424
3426
|
return typeof t.name == "string" && typeof t.nativeName == "string" && typeof t.localeCode == "string";
|
|
3425
3427
|
}
|
|
3426
|
-
const
|
|
3428
|
+
const Ja = {
|
|
3427
3429
|
key: 0,
|
|
3428
3430
|
class: "cl-flex cl-relative cl-select-none cl-w-auto cl-z-30"
|
|
3429
|
-
},
|
|
3431
|
+
}, Ka = { 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-3" }, Za = ["data-localename", "data-localecode", "onClick"], Qa = { class: "cl-text-xs" }, Ya = /* @__PURE__ */ D({
|
|
3430
3432
|
__name: "cl-ui-language-switcher",
|
|
3431
3433
|
props: {
|
|
3432
3434
|
supportedLanguages: {},
|
|
@@ -3435,51 +3437,51 @@ const Kn = {
|
|
|
3435
3437
|
},
|
|
3436
3438
|
emits: ["language-select"],
|
|
3437
3439
|
setup(t, { emit: o }) {
|
|
3438
|
-
const e = t, { locale: l } =
|
|
3440
|
+
const e = t, { locale: l } = te(), a = S(!1), n = O(() => e.supportedLanguages.find((u) => u.localeCode === l.value) ?? e.defaultLangauge), r = O(() => e.supportedLanguages.filter((u) => Be(u)).sort((u, f) => u.nativeName > f.nativeName ? 1 : f.nativeName > u.nativeName ? -1 : 0));
|
|
3439
3441
|
function s() {
|
|
3440
|
-
e.disabled || (
|
|
3442
|
+
e.disabled || (a.value = !a.value);
|
|
3441
3443
|
}
|
|
3442
|
-
return H(() => e.disabled, (
|
|
3443
|
-
|
|
3444
|
-
}), (
|
|
3445
|
-
|
|
3444
|
+
return H(() => e.disabled, (u) => {
|
|
3445
|
+
u && (a.value = !1);
|
|
3446
|
+
}), (u, f) => n.value !== null && p(Be)(n.value) ? (d(), h("div", Ja, [
|
|
3447
|
+
m("div", {
|
|
3446
3448
|
class: I(["cl-flex cl-items-center", {
|
|
3447
|
-
"cl-cursor-pointer": !
|
|
3449
|
+
"cl-cursor-pointer": !u.disabled
|
|
3448
3450
|
}]),
|
|
3449
3451
|
onClick: s
|
|
3450
3452
|
}, [
|
|
3451
|
-
|
|
3453
|
+
m("span", {
|
|
3452
3454
|
class: I(["cl-font-semibold cl-text-xs", {
|
|
3453
|
-
"cl-opacity-50":
|
|
3455
|
+
"cl-opacity-50": u.disabled
|
|
3454
3456
|
}])
|
|
3455
|
-
}, _(
|
|
3457
|
+
}, _(n.value.nativeName), 3)
|
|
3456
3458
|
], 2),
|
|
3457
|
-
|
|
3459
|
+
C(ge, { name: "fade" }, {
|
|
3458
3460
|
default: L(() => [
|
|
3459
|
-
|
|
3460
|
-
(
|
|
3461
|
-
key:
|
|
3461
|
+
U(m("div", Ka, [
|
|
3462
|
+
(d(!0), h(x, null, Y(r.value, (v, w) => (d(), h("div", {
|
|
3463
|
+
key: w,
|
|
3462
3464
|
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",
|
|
3463
3465
|
"data-localename": v.name,
|
|
3464
3466
|
"data-localecode": v.localeCode,
|
|
3465
|
-
onClick: (
|
|
3467
|
+
onClick: (i) => {
|
|
3466
3468
|
l.value = v.localeCode, s(), o("language-select", v.localeCode);
|
|
3467
3469
|
}
|
|
3468
3470
|
}, [
|
|
3469
|
-
|
|
3470
|
-
], 8,
|
|
3471
|
+
m("span", Qa, _(v.nativeName), 1)
|
|
3472
|
+
], 8, Za))), 128))
|
|
3471
3473
|
], 512), [
|
|
3472
|
-
[
|
|
3474
|
+
[B, a.value]
|
|
3473
3475
|
])
|
|
3474
3476
|
]),
|
|
3475
3477
|
_: 1
|
|
3476
3478
|
})
|
|
3477
3479
|
])) : M("", !0);
|
|
3478
3480
|
}
|
|
3479
|
-
}),
|
|
3481
|
+
}), Xa = { class: "cl-relative" }, en = { class: "cl-h-screen cl-z-0" }, ln = { 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" }, tn = { class: "cl-col-span-10 lg:cl-col-span-3" }, on = {
|
|
3480
3482
|
key: 0,
|
|
3481
3483
|
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"
|
|
3482
|
-
},
|
|
3484
|
+
}, an = { class: "cl-col-span-3" }, nn = { class: "cl-inline cl-relative cl-text-grey-4" }, sn = { class: "cl-col-span-3" }, rn = { class: "cl-inline cl-relative cl-text-grey-4" }, cn = { class: "cl-col-span-10 cl-emphasis-danger cl-mt-10 cl-p-3 cl-rounded-md cl-text-sm md:cl-mt-3" }, un = /* @__PURE__ */ D({
|
|
3483
3485
|
__name: "cl-ui-login",
|
|
3484
3486
|
props: {
|
|
3485
3487
|
errors: { default: () => [] },
|
|
@@ -3490,54 +3492,54 @@ const Kn = {
|
|
|
3490
3492
|
"update:errors": null
|
|
3491
3493
|
},
|
|
3492
3494
|
setup(t, { emit: o }) {
|
|
3493
|
-
const { t: e } =
|
|
3495
|
+
const { t: e } = te(), l = S(""), a = S(""), n = S("password"), r = S();
|
|
3494
3496
|
function s() {
|
|
3495
|
-
const
|
|
3497
|
+
const w = {
|
|
3496
3498
|
username: l.value,
|
|
3497
|
-
password:
|
|
3499
|
+
password: a.value
|
|
3498
3500
|
};
|
|
3499
|
-
o("login",
|
|
3501
|
+
o("login", w);
|
|
3500
3502
|
}
|
|
3501
|
-
function
|
|
3503
|
+
function u() {
|
|
3502
3504
|
o("update:errors", []);
|
|
3503
3505
|
}
|
|
3504
|
-
function
|
|
3505
|
-
const
|
|
3506
|
+
function f(w, i) {
|
|
3507
|
+
const y = {
|
|
3506
3508
|
valid: !0,
|
|
3507
3509
|
message: ""
|
|
3508
3510
|
};
|
|
3509
|
-
return typeof
|
|
3511
|
+
return typeof i == "string" && i.trim() === "" && (y.valid = !1), y;
|
|
3510
3512
|
}
|
|
3511
|
-
function v(
|
|
3512
|
-
r.value =
|
|
3513
|
+
function v(w, i) {
|
|
3514
|
+
r.value = w;
|
|
3513
3515
|
}
|
|
3514
|
-
return (
|
|
3515
|
-
|
|
3516
|
-
|
|
3516
|
+
return (w, i) => (d(), h("div", Xa, [
|
|
3517
|
+
m("div", en, [
|
|
3518
|
+
A(w.$slots, "background")
|
|
3517
3519
|
]),
|
|
3518
|
-
|
|
3519
|
-
|
|
3520
|
-
|
|
3520
|
+
m("form", ln, [
|
|
3521
|
+
m("div", tn, [
|
|
3522
|
+
A(w.$slots, "logo")
|
|
3521
3523
|
]),
|
|
3522
|
-
|
|
3523
|
-
|
|
3524
|
+
w.$slots["language-switcher"] ? (d(), h("div", on, [
|
|
3525
|
+
A(w.$slots, "language-switcher")
|
|
3524
3526
|
])) : M("", !0),
|
|
3525
|
-
|
|
3527
|
+
m("div", {
|
|
3526
3528
|
class: I(["cl-gap-y-4 cl-grid cl-grid-cols-1 lg:cl-gap-x-2 lg:cl-grid-cols-8", {
|
|
3527
|
-
"cl-col-span-7": !
|
|
3528
|
-
"cl-col-span-6":
|
|
3529
|
+
"cl-col-span-7": !w.$slots["language-switcher"],
|
|
3530
|
+
"cl-col-span-6": w.$slots["language-switcher"]
|
|
3529
3531
|
}])
|
|
3530
3532
|
}, [
|
|
3531
|
-
|
|
3532
|
-
|
|
3533
|
-
|
|
3533
|
+
m("div", an, [
|
|
3534
|
+
m("div", nn, [
|
|
3535
|
+
C(p(q), {
|
|
3534
3536
|
class: "cl-absolute cl-left-3 cl-top-2.5",
|
|
3535
3537
|
icon: "ph:user",
|
|
3536
3538
|
size: 18
|
|
3537
3539
|
}),
|
|
3538
|
-
|
|
3540
|
+
C(oe, {
|
|
3539
3541
|
modelValue: l.value,
|
|
3540
|
-
"onUpdate:modelValue":
|
|
3542
|
+
"onUpdate:modelValue": i[0] || (i[0] = (y) => l.value = y),
|
|
3541
3543
|
modelModifiers: { trim: !0 },
|
|
3542
3544
|
class: "!cl-border-2 !cl-mb-1 cl-w-full",
|
|
3543
3545
|
"input-type": "email",
|
|
@@ -3547,64 +3549,64 @@ const Kn = {
|
|
|
3547
3549
|
"placeholder-text": p(e)("login.email"),
|
|
3548
3550
|
autocomplete: "username",
|
|
3549
3551
|
"validate-immediately": !0,
|
|
3550
|
-
"custom-validation-function":
|
|
3552
|
+
"custom-validation-function": f,
|
|
3551
3553
|
"input-specific-classes": "!cl-pl-9",
|
|
3552
3554
|
"message-when-valid": l.value ? p(e)("login.validEmail") : "",
|
|
3553
|
-
onInput:
|
|
3555
|
+
onInput: u,
|
|
3554
3556
|
onValidated: v
|
|
3555
3557
|
}, null, 8, ["modelValue", "highlight-when-valid", "label", "placeholder-text", "message-when-valid"])
|
|
3556
3558
|
])
|
|
3557
3559
|
]),
|
|
3558
|
-
|
|
3559
|
-
|
|
3560
|
-
|
|
3560
|
+
m("div", sn, [
|
|
3561
|
+
m("div", rn, [
|
|
3562
|
+
C(p(q), {
|
|
3561
3563
|
class: "cl-absolute cl-left-3 cl-top-2.5",
|
|
3562
3564
|
icon: "ph:lock",
|
|
3563
3565
|
size: 18
|
|
3564
3566
|
}),
|
|
3565
|
-
|
|
3567
|
+
U(C(p(q), {
|
|
3566
3568
|
class: "cl-absolute cl-cursor-pointer cl-right-6 cl-top-2.5",
|
|
3567
3569
|
icon: "ph:eye",
|
|
3568
3570
|
size: 18,
|
|
3569
|
-
onClick:
|
|
3571
|
+
onClick: i[1] || (i[1] = (y) => n.value = "text")
|
|
3570
3572
|
}, null, 512), [
|
|
3571
|
-
[
|
|
3573
|
+
[B, n.value === "password"]
|
|
3572
3574
|
]),
|
|
3573
|
-
|
|
3575
|
+
U(C(p(q), {
|
|
3574
3576
|
class: "cl-absolute cl-cursor-pointer cl-right-6 cl-top-2.5",
|
|
3575
3577
|
icon: "ph:eye-slash",
|
|
3576
3578
|
size: 18,
|
|
3577
|
-
onClick:
|
|
3579
|
+
onClick: i[2] || (i[2] = (y) => n.value = "password")
|
|
3578
3580
|
}, null, 512), [
|
|
3579
|
-
[
|
|
3581
|
+
[B, n.value === "text"]
|
|
3580
3582
|
]),
|
|
3581
|
-
|
|
3582
|
-
modelValue:
|
|
3583
|
-
"onUpdate:modelValue":
|
|
3583
|
+
C(oe, {
|
|
3584
|
+
modelValue: a.value,
|
|
3585
|
+
"onUpdate:modelValue": i[3] || (i[3] = (y) => a.value = y),
|
|
3584
3586
|
class: "!cl-border-2 cl-w-full",
|
|
3585
|
-
"input-type":
|
|
3586
|
-
"highlight-when-valid":
|
|
3587
|
+
"input-type": n.value,
|
|
3588
|
+
"highlight-when-valid": a.value !== void 0 && a.value !== "",
|
|
3587
3589
|
label: p(e)("login.password"),
|
|
3588
3590
|
"show-label": !1,
|
|
3589
3591
|
"placeholder-text": p(e)("login.password"),
|
|
3590
3592
|
autocomplete: "current-password",
|
|
3591
3593
|
"validate-immediately": !0,
|
|
3592
3594
|
"input-specific-classes": "!cl-pl-9 !cl-pr-9",
|
|
3593
|
-
"custom-validation-function":
|
|
3594
|
-
onInput:
|
|
3595
|
+
"custom-validation-function": f,
|
|
3596
|
+
onInput: u
|
|
3595
3597
|
}, null, 8, ["modelValue", "input-type", "highlight-when-valid", "label", "placeholder-text"])
|
|
3596
3598
|
])
|
|
3597
3599
|
]),
|
|
3598
|
-
|
|
3600
|
+
m("div", {
|
|
3599
3601
|
class: I(["cl-col-span-2", {
|
|
3600
|
-
"cl-mt-1.5 cl-mb-1 md:cl-mt-0.5 md:cl-mb-7 lg:cl-mb-0":
|
|
3602
|
+
"cl-mt-1.5 cl-mb-1 md:cl-mt-0.5 md:cl-mb-7 lg:cl-mb-0": w.loading
|
|
3601
3603
|
}])
|
|
3602
3604
|
}, [
|
|
3603
|
-
|
|
3605
|
+
C(me, {
|
|
3604
3606
|
class: "cl-w-full",
|
|
3605
3607
|
colour: "blue",
|
|
3606
|
-
loading:
|
|
3607
|
-
disabled: !r.value ||
|
|
3608
|
+
loading: w.loading,
|
|
3609
|
+
disabled: !r.value || a.value === "",
|
|
3608
3610
|
onClick: K(s, ["prevent"])
|
|
3609
3611
|
}, {
|
|
3610
3612
|
default: L(() => [
|
|
@@ -3614,17 +3616,17 @@ const Kn = {
|
|
|
3614
3616
|
}, 8, ["loading", "disabled", "onClick"])
|
|
3615
3617
|
], 2)
|
|
3616
3618
|
], 2),
|
|
3617
|
-
|
|
3619
|
+
C(ge, { name: "cl-grow-down" }, {
|
|
3618
3620
|
default: L(() => {
|
|
3619
|
-
var
|
|
3621
|
+
var y;
|
|
3620
3622
|
return [
|
|
3621
|
-
|
|
3622
|
-
(
|
|
3623
|
+
U(m("span", cn, [
|
|
3624
|
+
(d(!0), h(x, null, Y(w.errors, (c, k) => (d(), h("div", {
|
|
3623
3625
|
key: k,
|
|
3624
3626
|
class: "cl-font-semibold"
|
|
3625
3627
|
}, _(c), 1))), 128))
|
|
3626
3628
|
], 512), [
|
|
3627
|
-
[
|
|
3629
|
+
[B, (y = w.errors) == null ? void 0 : y.length]
|
|
3628
3630
|
])
|
|
3629
3631
|
];
|
|
3630
3632
|
}),
|
|
@@ -3633,41 +3635,41 @@ const Kn = {
|
|
|
3633
3635
|
])
|
|
3634
3636
|
]));
|
|
3635
3637
|
}
|
|
3636
|
-
}),
|
|
3638
|
+
}), dn = [
|
|
3637
3639
|
"x-small",
|
|
3638
3640
|
"small",
|
|
3639
3641
|
"medium",
|
|
3640
3642
|
"large"
|
|
3641
|
-
],
|
|
3643
|
+
], fn = [
|
|
3642
3644
|
"primary",
|
|
3643
3645
|
"secondary",
|
|
3644
3646
|
"white"
|
|
3645
|
-
],
|
|
3647
|
+
], pn = {
|
|
3646
3648
|
key: 0,
|
|
3647
3649
|
class: "cl-h-0 cl-w-0"
|
|
3648
|
-
},
|
|
3650
|
+
}, mn = { class: "cl-relative cl-w-full" }, gn = /* @__PURE__ */ D({
|
|
3649
3651
|
__name: "cl-ui-navigation",
|
|
3650
3652
|
props: {
|
|
3651
3653
|
colour: { default: "default" }
|
|
3652
3654
|
},
|
|
3653
3655
|
setup(t) {
|
|
3654
|
-
const o = S([]), e =
|
|
3655
|
-
function l(
|
|
3656
|
-
let
|
|
3657
|
-
return
|
|
3658
|
-
id:
|
|
3656
|
+
const o = S([]), e = O(() => o.value.filter((i) => i.open === !0).length > 0);
|
|
3657
|
+
function l(i) {
|
|
3658
|
+
let y = o.value.find((c) => c.id === i);
|
|
3659
|
+
return y || (y = {
|
|
3660
|
+
id: i,
|
|
3659
3661
|
open: !1
|
|
3660
|
-
}, o.value.push(
|
|
3662
|
+
}, o.value.push(y)), y.open;
|
|
3661
3663
|
}
|
|
3662
|
-
function
|
|
3663
|
-
const
|
|
3664
|
-
|
|
3665
|
-
c.id !==
|
|
3664
|
+
function a(i) {
|
|
3665
|
+
const y = o.value.find((c) => c.id === i);
|
|
3666
|
+
y && (y.open = !y.open, o.value.forEach((c) => {
|
|
3667
|
+
c.id !== i && (c.open = !1);
|
|
3666
3668
|
}));
|
|
3667
3669
|
}
|
|
3668
|
-
const
|
|
3670
|
+
const n = pl();
|
|
3669
3671
|
H(
|
|
3670
|
-
() =>
|
|
3672
|
+
() => n,
|
|
3671
3673
|
() => {
|
|
3672
3674
|
r.value = !1;
|
|
3673
3675
|
},
|
|
@@ -3675,56 +3677,56 @@ const Kn = {
|
|
|
3675
3677
|
deep: !0
|
|
3676
3678
|
}
|
|
3677
3679
|
);
|
|
3678
|
-
const r = S(!1), s = S(!1), { start:
|
|
3679
|
-
function
|
|
3680
|
-
r.value = !r.value, s.value = !0,
|
|
3680
|
+
const r = S(!1), s = S(!1), { start: u } = ll(() => s.value = !1, 100);
|
|
3681
|
+
function f() {
|
|
3682
|
+
r.value = !r.value, s.value = !0, u();
|
|
3681
3683
|
}
|
|
3682
3684
|
const v = S();
|
|
3683
|
-
function
|
|
3684
|
-
r.value === !1 && e.value === !0 && o.value.forEach((
|
|
3685
|
-
|
|
3685
|
+
function w() {
|
|
3686
|
+
r.value === !1 && e.value === !0 && o.value.forEach((i) => {
|
|
3687
|
+
i.open = !1;
|
|
3686
3688
|
});
|
|
3687
3689
|
}
|
|
3688
|
-
return Le(v,
|
|
3690
|
+
return Le(v, w), (i, y) => (d(), h("div", {
|
|
3689
3691
|
ref_key: "navElement",
|
|
3690
3692
|
ref: v,
|
|
3691
3693
|
class: "cl-flex cl-flex-nowrap cl-relative"
|
|
3692
3694
|
}, [
|
|
3693
|
-
|
|
3695
|
+
m("div", {
|
|
3694
3696
|
id: "group-container",
|
|
3695
3697
|
class: I(["cl-h-full cl-overflow-y-auto cl-overscroll-y-none cl-pb-20 cl-w-20 cl-z-30 xl:cl-pb-0", {
|
|
3696
|
-
"cl-bg-primary-default":
|
|
3697
|
-
"cl-bg-blue-dark":
|
|
3698
|
+
"cl-bg-primary-default": i.colour === "default",
|
|
3699
|
+
"cl-bg-blue-dark": i.colour === "secondary"
|
|
3698
3700
|
}])
|
|
3699
3701
|
}, [
|
|
3700
|
-
|
|
3702
|
+
A(i.$slots, "icon", ie({ navcolour: i.colour }, { groupIsOpen: l, toggleOpen: a }), void 0, !0)
|
|
3701
3703
|
], 2),
|
|
3702
|
-
s.value ? (
|
|
3703
|
-
|
|
3704
|
+
s.value ? (d(), h("div", pn)) : M("", !0),
|
|
3705
|
+
C(ge, { name: "slide-right" }, {
|
|
3704
3706
|
default: L(() => [
|
|
3705
|
-
|
|
3707
|
+
U(m("div", {
|
|
3706
3708
|
class: I(["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-20 xl:cl-pb-0", {
|
|
3707
3709
|
"cl-relative": r.value,
|
|
3708
3710
|
"cl-absolute cl-left-20 cl-shadow-lg": !r.value
|
|
3709
3711
|
}])
|
|
3710
3712
|
}, [
|
|
3711
|
-
|
|
3712
|
-
|
|
3713
|
+
m("div", mn, [
|
|
3714
|
+
m("span", {
|
|
3713
3715
|
class: "cl-absolute cl-cursor-pointer cl-hidden cl-right-0 cl-top-1.5 lg:cl-block",
|
|
3714
|
-
onClick:
|
|
3716
|
+
onClick: f
|
|
3715
3717
|
}, [
|
|
3716
|
-
r.value ? (
|
|
3718
|
+
r.value ? (d(), z(p(q), {
|
|
3717
3719
|
key: 1,
|
|
3718
3720
|
icon: "ph:push-pin-slash"
|
|
3719
|
-
})) : (
|
|
3721
|
+
})) : (d(), z(p(q), {
|
|
3720
3722
|
key: 0,
|
|
3721
3723
|
icon: "ph:push-pin"
|
|
3722
3724
|
}))
|
|
3723
3725
|
]),
|
|
3724
|
-
|
|
3726
|
+
A(i.$slots, "default", le(re({ groupIsOpen: l })), void 0, !0)
|
|
3725
3727
|
])
|
|
3726
3728
|
], 2), [
|
|
3727
|
-
[
|
|
3729
|
+
[B, e.value]
|
|
3728
3730
|
])
|
|
3729
3731
|
]),
|
|
3730
3732
|
_: 3
|
|
@@ -3732,7 +3734,7 @@ const Kn = {
|
|
|
3732
3734
|
], 512));
|
|
3733
3735
|
}
|
|
3734
3736
|
});
|
|
3735
|
-
const
|
|
3737
|
+
const vn = /* @__PURE__ */ de(gn, [["__scopeId", "data-v-7db412a7"]]), bn = /* @__PURE__ */ D({
|
|
3736
3738
|
__name: "cl-ui-navigation-icon",
|
|
3737
3739
|
props: {
|
|
3738
3740
|
iconValue: {},
|
|
@@ -3740,7 +3742,7 @@ const va = /* @__PURE__ */ de(ga, [["__scopeId", "data-v-7db412a7"]]), ba = /* @
|
|
|
3740
3742
|
colour: { default: "default" }
|
|
3741
3743
|
},
|
|
3742
3744
|
setup(t) {
|
|
3743
|
-
return (o, e) => (
|
|
3745
|
+
return (o, e) => (d(), h("div", {
|
|
3744
3746
|
class: I(["cl-cursor-pointer cl-flex cl-h-20 cl-items-center cl-justify-center cl-transition-colors cl-w-20", {
|
|
3745
3747
|
"cl-text-secondary-default hover:cl-bg-primary-dark hover:cl-text-white": o.colour === "default",
|
|
3746
3748
|
"cl-bg-primary-darker cl-text-white": o.open && o.colour === "default",
|
|
@@ -3748,52 +3750,52 @@ const va = /* @__PURE__ */ de(ga, [["__scopeId", "data-v-7db412a7"]]), ba = /* @
|
|
|
3748
3750
|
"cl-bg-blue-light": o.open && o.colour === "secondary"
|
|
3749
3751
|
}])
|
|
3750
3752
|
}, [
|
|
3751
|
-
|
|
3753
|
+
C(p(q), {
|
|
3752
3754
|
class: "cl-block",
|
|
3753
3755
|
icon: o.iconValue,
|
|
3754
3756
|
width: "24"
|
|
3755
3757
|
}, null, 8, ["icon"])
|
|
3756
3758
|
], 2));
|
|
3757
3759
|
}
|
|
3758
|
-
}),
|
|
3760
|
+
}), hn = {
|
|
3759
3761
|
key: 0,
|
|
3760
3762
|
class: "cl-font-bold cl-leading-8 cl-mb-8 cl-pr-8 cl-select-none cl-text-lg cl-text-secondary-default"
|
|
3761
|
-
},
|
|
3763
|
+
}, yn = { class: "cl-flex cl-flex-wrap cl-space-y-8 cl-text-sm cl-w-full" }, wn = /* @__PURE__ */ D({
|
|
3762
3764
|
__name: "cl-ui-navigation-group",
|
|
3763
3765
|
props: {
|
|
3764
3766
|
open: { type: Boolean }
|
|
3765
3767
|
},
|
|
3766
3768
|
setup(t) {
|
|
3767
|
-
return (o, e) => o.open ? (
|
|
3768
|
-
o.$slots.title ? (
|
|
3769
|
-
|
|
3769
|
+
return (o, e) => o.open ? (d(), h(x, { key: 0 }, [
|
|
3770
|
+
o.$slots.title ? (d(), h("div", hn, [
|
|
3771
|
+
A(o.$slots, "title")
|
|
3770
3772
|
])) : M("", !0),
|
|
3771
|
-
|
|
3772
|
-
|
|
3773
|
+
m("div", yn, [
|
|
3774
|
+
A(o.$slots, "default")
|
|
3773
3775
|
])
|
|
3774
3776
|
], 64)) : M("", !0);
|
|
3775
3777
|
}
|
|
3776
|
-
}), $
|
|
3778
|
+
}), $n = {}, kn = { class: "cl-w-full" }, Tn = {
|
|
3777
3779
|
key: 0,
|
|
3778
3780
|
class: "cl-font-bold cl-mb-4 cl-select-none"
|
|
3779
|
-
},
|
|
3780
|
-
function
|
|
3781
|
-
return
|
|
3782
|
-
t.$slots.title ? (
|
|
3783
|
-
|
|
3781
|
+
}, Cn = { class: "cl-flex cl-flex-wrap cl-space-y-2" };
|
|
3782
|
+
function _n(t, o) {
|
|
3783
|
+
return d(), h("div", kn, [
|
|
3784
|
+
t.$slots.title ? (d(), h("div", Tn, [
|
|
3785
|
+
A(t.$slots, "title")
|
|
3784
3786
|
])) : M("", !0),
|
|
3785
|
-
|
|
3786
|
-
|
|
3787
|
+
m("span", Cn, [
|
|
3788
|
+
A(t.$slots, "default")
|
|
3787
3789
|
])
|
|
3788
3790
|
]);
|
|
3789
3791
|
}
|
|
3790
|
-
const
|
|
3791
|
-
function
|
|
3792
|
-
return
|
|
3793
|
-
|
|
3792
|
+
const Sn = /* @__PURE__ */ de($n, [["render", _n]]), On = {}, En = { class: "cl-cursor-pointer cl-transition-colors cl-w-full hover:cl-text-blue-light" };
|
|
3793
|
+
function An(t, o) {
|
|
3794
|
+
return d(), h("div", En, [
|
|
3795
|
+
A(t.$slots, "default")
|
|
3794
3796
|
]);
|
|
3795
3797
|
}
|
|
3796
|
-
const
|
|
3798
|
+
const jn = /* @__PURE__ */ de(On, [["render", An]]), Mn = { class: "cl-w-full" }, In = /* @__PURE__ */ D({
|
|
3797
3799
|
__name: "cl-ui-tab",
|
|
3798
3800
|
props: {
|
|
3799
3801
|
currentTab: { default: 0 },
|
|
@@ -3801,70 +3803,70 @@ const ja = /* @__PURE__ */ de(Oa, [["render", Aa]]), Ma = { class: "cl-w-full" }
|
|
|
3801
3803
|
colour: { default: "default" }
|
|
3802
3804
|
},
|
|
3803
3805
|
setup(t) {
|
|
3804
|
-
const o = t, e = S(), l = S(!1),
|
|
3805
|
-
function
|
|
3806
|
-
return
|
|
3806
|
+
const o = t, e = S(), l = S(!1), a = S(!1);
|
|
3807
|
+
function n(f) {
|
|
3808
|
+
return f === o.currentTab;
|
|
3807
3809
|
}
|
|
3808
3810
|
function r() {
|
|
3809
3811
|
if (e.value) {
|
|
3810
|
-
const
|
|
3811
|
-
l.value = e.value.scrollLeft > 0,
|
|
3812
|
+
const f = e.value.scrollWidth - e.value.clientWidth;
|
|
3813
|
+
l.value = e.value.scrollLeft > 0, a.value = e.value.scrollLeft < f;
|
|
3812
3814
|
} else
|
|
3813
|
-
l.value = !1,
|
|
3815
|
+
l.value = !1, a.value = !1;
|
|
3814
3816
|
}
|
|
3815
3817
|
function s() {
|
|
3816
3818
|
r(), window.addEventListener("resize", r);
|
|
3817
3819
|
}
|
|
3818
|
-
function
|
|
3820
|
+
function u(f) {
|
|
3819
3821
|
if (e.value) {
|
|
3820
3822
|
const v = e.value.scrollWidth / 5;
|
|
3821
|
-
let
|
|
3822
|
-
|
|
3823
|
+
let w = v;
|
|
3824
|
+
f === "left" && (w = -v), e.value.scroll(e.value.scrollLeft + w, 0);
|
|
3823
3825
|
}
|
|
3824
3826
|
}
|
|
3825
|
-
return Ce(() => s()), Ae(() => window.removeEventListener("resize", r)), (
|
|
3826
|
-
|
|
3827
|
-
l.value ? (
|
|
3827
|
+
return Ce(() => s()), Ae(() => window.removeEventListener("resize", r)), (f, v) => (d(), h("div", Mn, [
|
|
3828
|
+
m("div", null, [
|
|
3829
|
+
l.value ? (d(), h("div", {
|
|
3828
3830
|
key: 0,
|
|
3829
3831
|
class: "cl-bg-white cl-cursor-pointer cl-float-left cl-h-11 cl-w-4",
|
|
3830
|
-
onClick: v[0] || (v[0] = (
|
|
3832
|
+
onClick: v[0] || (v[0] = (w) => u("left"))
|
|
3831
3833
|
}, [
|
|
3832
|
-
|
|
3834
|
+
C(p(q), {
|
|
3833
3835
|
icon: "ph:caret-left",
|
|
3834
3836
|
class: "cl-mt-4 cl-text-secondary-default"
|
|
3835
3837
|
})
|
|
3836
3838
|
])) : M("", !0),
|
|
3837
|
-
|
|
3839
|
+
m("div", {
|
|
3838
3840
|
ref_key: "headerContainer",
|
|
3839
3841
|
ref: e,
|
|
3840
3842
|
class: I(["cl-flex cl-overflow-x-auto cl-overscroll-x-none", {
|
|
3841
|
-
"cl-shadow-[inset_0_-1px_0_#eeeeee]": !
|
|
3842
|
-
"cl-shadow-[inset_0_-1px_0_#9acd32]": !
|
|
3843
|
-
"cl-shadow-[inset_0_-1px_0_#30363e]": !
|
|
3844
|
-
"cl-shadow-[inset_0_-1px_0_#f0506e]": !
|
|
3845
|
-
"cl-shadow-[inset_0_-1px_0_#1e90ff]": !
|
|
3846
|
-
"cl-shadow-[inset_0_-1px_0_#d7d7d7]":
|
|
3847
|
-
"cl-mr-4":
|
|
3843
|
+
"cl-shadow-[inset_0_-1px_0_#eeeeee]": !f.disabled && f.colour === "default",
|
|
3844
|
+
"cl-shadow-[inset_0_-1px_0_#9acd32]": !f.disabled && f.colour === "primary",
|
|
3845
|
+
"cl-shadow-[inset_0_-1px_0_#30363e]": !f.disabled && f.colour === "secondary",
|
|
3846
|
+
"cl-shadow-[inset_0_-1px_0_#f0506e]": !f.disabled && f.colour === "danger",
|
|
3847
|
+
"cl-shadow-[inset_0_-1px_0_#1e90ff]": !f.disabled && f.colour === "blue",
|
|
3848
|
+
"cl-shadow-[inset_0_-1px_0_#d7d7d7]": f.disabled,
|
|
3849
|
+
"cl-mr-4": a.value
|
|
3848
3850
|
}]),
|
|
3849
3851
|
onScrollPassive: r
|
|
3850
3852
|
}, [
|
|
3851
|
-
|
|
3853
|
+
A(f.$slots, "headings", le(re({ isTabOpen: n, disabled: f.disabled, colour: f.colour })))
|
|
3852
3854
|
], 34),
|
|
3853
|
-
|
|
3855
|
+
a.value ? (d(), h("div", {
|
|
3854
3856
|
key: 1,
|
|
3855
3857
|
class: "cl-bg-white cl-bottom-12 cl-cursor-pointer cl-float-right cl-h-11 cl-relative cl-w-4",
|
|
3856
|
-
onClick: v[1] || (v[1] = (
|
|
3858
|
+
onClick: v[1] || (v[1] = (w) => u("right"))
|
|
3857
3859
|
}, [
|
|
3858
|
-
|
|
3860
|
+
C(p(q), {
|
|
3859
3861
|
icon: "ph:caret-right",
|
|
3860
3862
|
class: "cl-mt-4 cl-text-secondary-default"
|
|
3861
3863
|
})
|
|
3862
3864
|
])) : M("", !0)
|
|
3863
3865
|
]),
|
|
3864
|
-
|
|
3866
|
+
A(f.$slots, "content", le(re({ isTabOpen: n, disabled: f.disabled, colour: f.colour })))
|
|
3865
3867
|
]));
|
|
3866
3868
|
}
|
|
3867
|
-
}),
|
|
3869
|
+
}), Nn = ["onKeyup"], qn = /* @__PURE__ */ D({
|
|
3868
3870
|
__name: "cl-ui-tab-header",
|
|
3869
3871
|
props: {
|
|
3870
3872
|
id: {},
|
|
@@ -3876,24 +3878,24 @@ const ja = /* @__PURE__ */ de(Oa, [["render", Aa]]), Ma = { class: "cl-w-full" }
|
|
|
3876
3878
|
"update:currentTab": null
|
|
3877
3879
|
},
|
|
3878
3880
|
setup(t, { emit: o }) {
|
|
3879
|
-
const e = t, l = S(),
|
|
3881
|
+
const e = t, l = S(), a = S(), n = O(() => e.id === e.currentTab);
|
|
3880
3882
|
function r() {
|
|
3881
|
-
e.disabled || (l.value = !1,
|
|
3883
|
+
e.disabled || (l.value = !1, a.value = !1, o("update:currentTab", e.id));
|
|
3882
3884
|
}
|
|
3883
|
-
return (s,
|
|
3885
|
+
return (s, u) => (d(), h("div", {
|
|
3884
3886
|
class: I(["cl-border-b cl-cursor-pointer cl-flex cl-items-center cl-px-4 cl-py-2 cl-rounded-b-none cl-rounded-sm cl-select-none cl-text-xl cl-transition cl-whitespace-nowrap focus:cl-outline-none", {
|
|
3885
3887
|
"!cl-cursor-default cl-text-grey-4 !cl-border-grey-2": s.disabled,
|
|
3886
|
-
"cl-border cl-border-b-0 cl-rounded-t-md cl-shadow-[inset_0_-1px_0_#ffffff] cl-cursor-default":
|
|
3888
|
+
"cl-border cl-border-b-0 cl-rounded-t-md cl-shadow-[inset_0_-1px_0_#ffffff] cl-cursor-default": n.value,
|
|
3887
3889
|
"cl-border-grey-0": s.colour === "default",
|
|
3888
3890
|
"cl-border-primary-default": s.colour === "primary",
|
|
3889
3891
|
"cl-border-secondary-default": s.colour === "secondary",
|
|
3890
3892
|
"cl-border-danger-default": s.colour === "danger",
|
|
3891
3893
|
"cl-border-link-default": s.colour === "blue",
|
|
3892
|
-
"hover:cl-bg-grey-0": !
|
|
3893
|
-
"hover:cl-bg-primary-lighter": !
|
|
3894
|
-
"hover:cl-bg-secondary-light focus:cl-text-white hover:cl-text-white": !
|
|
3895
|
-
"hover:cl-bg-danger-light": !
|
|
3896
|
-
"hover:cl-bg-link-lighter": !
|
|
3894
|
+
"hover:cl-bg-grey-0": !n.value && !s.disabled && s.colour === "default",
|
|
3895
|
+
"hover:cl-bg-primary-lighter": !n.value && !s.disabled && s.colour === "primary",
|
|
3896
|
+
"hover:cl-bg-secondary-light focus:cl-text-white hover:cl-text-white": !n.value && !s.disabled && s.colour === "secondary",
|
|
3897
|
+
"hover:cl-bg-danger-light": !n.value && !s.disabled && s.colour === "danger",
|
|
3898
|
+
"hover:cl-bg-link-lighter": !n.value && !s.disabled && s.colour === "blue",
|
|
3897
3899
|
"cl-bg-grey-0": l.value && !s.disabled && s.colour === "default",
|
|
3898
3900
|
"cl-bg-primary-lighter": l.value && !s.disabled && s.colour === "primary",
|
|
3899
3901
|
"cl-bg-secondary-light cl-text-white": l.value && !s.disabled && s.colour === "secondary",
|
|
@@ -3902,33 +3904,33 @@ const ja = /* @__PURE__ */ de(Oa, [["render", Aa]]), Ma = { class: "cl-w-full" }
|
|
|
3902
3904
|
}]),
|
|
3903
3905
|
tabindex: "0",
|
|
3904
3906
|
onClick: r,
|
|
3905
|
-
onMouseover:
|
|
3906
|
-
onMouseout:
|
|
3907
|
-
onFocusin:
|
|
3908
|
-
onFocusout:
|
|
3907
|
+
onMouseover: u[0] || (u[0] = (f) => a.value = !0),
|
|
3908
|
+
onMouseout: u[1] || (u[1] = (f) => a.value = !1),
|
|
3909
|
+
onFocusin: u[2] || (u[2] = (f) => l.value = !0),
|
|
3910
|
+
onFocusout: u[3] || (u[3] = (f) => l.value = !1),
|
|
3909
3911
|
onKeyup: Te(K(r, ["self"]), ["enter"])
|
|
3910
3912
|
}, [
|
|
3911
|
-
|
|
3912
|
-
], 42,
|
|
3913
|
+
A(s.$slots, "default")
|
|
3914
|
+
], 42, Nn));
|
|
3913
3915
|
}
|
|
3914
|
-
}),
|
|
3915
|
-
function
|
|
3916
|
-
return
|
|
3916
|
+
}), Dn = {};
|
|
3917
|
+
function Rn(t, o) {
|
|
3918
|
+
return A(t.$slots, "default");
|
|
3917
3919
|
}
|
|
3918
|
-
const
|
|
3920
|
+
const Un = /* @__PURE__ */ de(Dn, [["render", Rn]]), Bn = [
|
|
3919
3921
|
"default",
|
|
3920
3922
|
"primary",
|
|
3921
3923
|
"secondary",
|
|
3922
3924
|
"danger",
|
|
3923
3925
|
"blue"
|
|
3924
|
-
],
|
|
3926
|
+
], xn = [
|
|
3925
3927
|
"left",
|
|
3926
3928
|
"right"
|
|
3927
|
-
],
|
|
3929
|
+
], zn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3928
3930
|
__proto__: null,
|
|
3929
3931
|
FilterOperation: pe,
|
|
3930
|
-
buttonColours:
|
|
3931
|
-
buttonSizes:
|
|
3932
|
+
buttonColours: Ul,
|
|
3933
|
+
buttonSizes: Bl,
|
|
3932
3934
|
cardSizes: Ll,
|
|
3933
3935
|
clUiAccordion: bl,
|
|
3934
3936
|
clUiAccordionHeader: Sl,
|
|
@@ -3936,44 +3938,44 @@ const xa = /* @__PURE__ */ de(Da, [["render", Ra]]), Ua = [
|
|
|
3936
3938
|
clUiApp: Ml,
|
|
3937
3939
|
clUiButton: me,
|
|
3938
3940
|
clUiCard: zl,
|
|
3939
|
-
clUiComboBox:
|
|
3940
|
-
clUiFooter:
|
|
3941
|
-
clUiGrid:
|
|
3942
|
-
clUiHeader:
|
|
3943
|
-
clUiHeaderMenu:
|
|
3944
|
-
clUiInput:
|
|
3945
|
-
clUiLanguageSwitcher:
|
|
3941
|
+
clUiComboBox: Qt,
|
|
3942
|
+
clUiFooter: ro,
|
|
3943
|
+
clUiGrid: Ra,
|
|
3944
|
+
clUiHeader: Ba,
|
|
3945
|
+
clUiHeaderMenu: Ga,
|
|
3946
|
+
clUiInput: oe,
|
|
3947
|
+
clUiLanguageSwitcher: Ya,
|
|
3946
3948
|
clUiLoadingSpinner: je,
|
|
3947
|
-
clUiLogin:
|
|
3948
|
-
clUiModal:
|
|
3949
|
-
clUiNavigation:
|
|
3950
|
-
clUiNavigationGroup:
|
|
3951
|
-
clUiNavigationIcon:
|
|
3952
|
-
clUiNavigationItem:
|
|
3953
|
-
clUiNavigationSection:
|
|
3949
|
+
clUiLogin: un,
|
|
3950
|
+
clUiModal: nl,
|
|
3951
|
+
clUiNavigation: vn,
|
|
3952
|
+
clUiNavigationGroup: wn,
|
|
3953
|
+
clUiNavigationIcon: bn,
|
|
3954
|
+
clUiNavigationItem: jn,
|
|
3955
|
+
clUiNavigationSection: Sn,
|
|
3954
3956
|
clUiNotification: al,
|
|
3955
|
-
clUiTab:
|
|
3956
|
-
clUiTabContent:
|
|
3957
|
-
clUiTabHeader:
|
|
3958
|
-
filterMethodTypes:
|
|
3959
|
-
gridColumnTypes:
|
|
3960
|
-
inputTypes:
|
|
3961
|
-
isComboBoxCreateRequest:
|
|
3962
|
-
isComboBoxItem:
|
|
3963
|
-
isFilterRequest:
|
|
3964
|
-
isFilterResponse:
|
|
3965
|
-
isGridColumn:
|
|
3966
|
-
isGridColumnArray:
|
|
3967
|
-
isLanguageArray:
|
|
3968
|
-
isLanguageLocaleFormat:
|
|
3969
|
-
modalColours:
|
|
3970
|
-
modalSizes:
|
|
3971
|
-
stringFormats:
|
|
3972
|
-
tabColours:
|
|
3973
|
-
tabScroll:
|
|
3957
|
+
clUiTab: In,
|
|
3958
|
+
clUiTabContent: Un,
|
|
3959
|
+
clUiTabHeader: qn,
|
|
3960
|
+
filterMethodTypes: Ho,
|
|
3961
|
+
gridColumnTypes: Fo,
|
|
3962
|
+
inputTypes: it,
|
|
3963
|
+
isComboBoxCreateRequest: Xt,
|
|
3964
|
+
isComboBoxItem: Yt,
|
|
3965
|
+
isFilterRequest: Ko,
|
|
3966
|
+
isFilterResponse: Zo,
|
|
3967
|
+
isGridColumn: sl,
|
|
3968
|
+
isGridColumnArray: Vo,
|
|
3969
|
+
isLanguageArray: Ha,
|
|
3970
|
+
isLanguageLocaleFormat: Be,
|
|
3971
|
+
modalColours: fn,
|
|
3972
|
+
modalSizes: dn,
|
|
3973
|
+
stringFormats: Go,
|
|
3974
|
+
tabColours: Bn,
|
|
3975
|
+
tabScroll: xn
|
|
3974
3976
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
3975
|
-
const
|
|
3976
|
-
t.use(Z), t.component("Icon", q), Object.entries(
|
|
3977
|
+
const Xn = (t) => {
|
|
3978
|
+
t.use(Z), t.component("Icon", q), Object.entries(zn).forEach(([
|
|
3977
3979
|
o,
|
|
3978
3980
|
e
|
|
3979
3981
|
]) => {
|
|
@@ -3981,12 +3983,12 @@ const Xa = (t) => {
|
|
|
3981
3983
|
});
|
|
3982
3984
|
};
|
|
3983
3985
|
export {
|
|
3984
|
-
|
|
3986
|
+
Yn as CitrusLimeUI,
|
|
3985
3987
|
G as DateFormat,
|
|
3986
3988
|
pe as FilterOperation,
|
|
3987
3989
|
X as NumberFormat,
|
|
3988
|
-
|
|
3989
|
-
|
|
3990
|
+
Ul as buttonColours,
|
|
3991
|
+
Bl as buttonSizes,
|
|
3990
3992
|
Ll as cardSizes,
|
|
3991
3993
|
bl as clUiAccordion,
|
|
3992
3994
|
Sl as clUiAccordionHeader,
|
|
@@ -3994,51 +3996,51 @@ export {
|
|
|
3994
3996
|
Ml as clUiApp,
|
|
3995
3997
|
me as clUiButton,
|
|
3996
3998
|
zl as clUiCard,
|
|
3997
|
-
|
|
3998
|
-
|
|
3999
|
-
|
|
4000
|
-
|
|
4001
|
-
|
|
4002
|
-
|
|
4003
|
-
|
|
3999
|
+
Qt as clUiComboBox,
|
|
4000
|
+
ro as clUiFooter,
|
|
4001
|
+
Ra as clUiGrid,
|
|
4002
|
+
Ba as clUiHeader,
|
|
4003
|
+
Ga as clUiHeaderMenu,
|
|
4004
|
+
oe as clUiInput,
|
|
4005
|
+
Ya as clUiLanguageSwitcher,
|
|
4004
4006
|
je as clUiLoadingSpinner,
|
|
4005
|
-
|
|
4006
|
-
|
|
4007
|
-
|
|
4008
|
-
|
|
4009
|
-
|
|
4010
|
-
|
|
4011
|
-
|
|
4007
|
+
un as clUiLogin,
|
|
4008
|
+
nl as clUiModal,
|
|
4009
|
+
vn as clUiNavigation,
|
|
4010
|
+
wn as clUiNavigationGroup,
|
|
4011
|
+
bn as clUiNavigationIcon,
|
|
4012
|
+
jn as clUiNavigationItem,
|
|
4013
|
+
Sn as clUiNavigationSection,
|
|
4012
4014
|
al as clUiNotification,
|
|
4013
|
-
|
|
4014
|
-
|
|
4015
|
-
|
|
4015
|
+
In as clUiTab,
|
|
4016
|
+
Un as clUiTabContent,
|
|
4017
|
+
qn as clUiTabHeader,
|
|
4016
4018
|
Vl as datetimeFormats,
|
|
4017
|
-
|
|
4018
|
-
|
|
4019
|
-
|
|
4019
|
+
Xn as default,
|
|
4020
|
+
Ho as filterMethodTypes,
|
|
4021
|
+
Fo as gridColumnTypes,
|
|
4020
4022
|
Z as i18n,
|
|
4021
|
-
|
|
4022
|
-
|
|
4023
|
-
|
|
4024
|
-
|
|
4025
|
-
|
|
4026
|
-
|
|
4027
|
-
|
|
4028
|
-
|
|
4029
|
-
|
|
4023
|
+
it as inputTypes,
|
|
4024
|
+
Xt as isComboBoxCreateRequest,
|
|
4025
|
+
Yt as isComboBoxItem,
|
|
4026
|
+
Ko as isFilterRequest,
|
|
4027
|
+
Zo as isFilterResponse,
|
|
4028
|
+
sl as isGridColumn,
|
|
4029
|
+
Vo as isGridColumnArray,
|
|
4030
|
+
Ha as isLanguageArray,
|
|
4031
|
+
Be as isLanguageLocaleFormat,
|
|
4030
4032
|
Pl as messages,
|
|
4031
|
-
|
|
4032
|
-
|
|
4033
|
+
fn as modalColours,
|
|
4034
|
+
dn as modalSizes,
|
|
4033
4035
|
Fl as numberFormats,
|
|
4034
|
-
|
|
4035
|
-
|
|
4036
|
-
|
|
4037
|
-
|
|
4036
|
+
Qn as setCurrentLocale,
|
|
4037
|
+
Zn as setLocaleDateTimeFormats,
|
|
4038
|
+
Jn as setLocaleMessages,
|
|
4039
|
+
Kn as setLocaleNumberFormats,
|
|
4038
4040
|
Ge as showNotification,
|
|
4039
|
-
|
|
4040
|
-
|
|
4041
|
-
|
|
4041
|
+
Go as stringFormats,
|
|
4042
|
+
Bn as tabColours,
|
|
4043
|
+
xn as tabScroll,
|
|
4042
4044
|
Jl as validateEmail,
|
|
4043
4045
|
Hl as validateMaxValue,
|
|
4044
4046
|
Gl as validateMinValue
|