@citruslime/ui 2.2.2-beta.5 → 2.2.2-beta.6
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 +880 -871
- package/dist/citrus-lime-ui.umd.js +2 -2
- package/dist/style.css +1 -1
- package/package.json +5 -4
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { Icon as q } from "@iconify/vue";
|
|
2
|
-
import { defineComponent as D, ref as
|
|
2
|
+
import { defineComponent as D, ref as S, openBlock as u, createElementBlock as y, renderSlot as j, normalizeProps as ee, guardReactiveProps as se, Fragment as B, createElementVNode as f, normalizeClass as I, createVNode as T, unref as p, Transition as ge, withCtx as L, withDirectives as x, vShow as U, createBlock as z, Teleport as Be, renderList as Y, mergeProps as ie, toDisplayString as _, createCommentVNode as M, nextTick as be, computed as E, watch as H, onMounted as Ce, onUnmounted as Ae, resolveComponent as el, normalizeStyle as ll, vModelText as il, withModifiers as K, vModelDynamic as ul, withKeys as Te, createTextVNode as Q, watchEffect as dl, createSlots as ze } from "vue";
|
|
3
3
|
import { generateStringId as fl } from "@citruslime/utils";
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import {
|
|
4
|
+
import { onClickOutside as Le, useTimeoutFn as tl, useDebounceFn as ol, useWindowSize as pl } from "@vueuse/core";
|
|
5
|
+
import { createI18n as ml, useI18n as le } from "vue-i18n";
|
|
6
|
+
import Ve from "flatpickr";
|
|
7
|
+
import { useDebouncer as gl, copy as ce } from "@citruslime/vue-utils";
|
|
8
8
|
const vl = { class: "cl-overflow-hidden" }, bl = /* @__PURE__ */ D({
|
|
9
9
|
__name: "cl-ui-accordion",
|
|
10
10
|
props: {
|
|
11
11
|
exclusive: { type: Boolean, default: !1 }
|
|
12
12
|
},
|
|
13
13
|
setup(t) {
|
|
14
|
-
const o = t, e =
|
|
14
|
+
const o = t, e = S([]);
|
|
15
15
|
function l(a) {
|
|
16
16
|
let r = e.value.find((s) => s.id === a);
|
|
17
17
|
return r || (r = {
|
|
@@ -25,8 +25,8 @@ const vl = { class: "cl-overflow-hidden" }, bl = /* @__PURE__ */ D({
|
|
|
25
25
|
s.id !== a && (s.open = !1);
|
|
26
26
|
}), r.open = !r.open);
|
|
27
27
|
}
|
|
28
|
-
return (a, r) => (u(),
|
|
29
|
-
j(a.$slots, "default", ee(
|
|
28
|
+
return (a, r) => (u(), y("div", vl, [
|
|
29
|
+
j(a.$slots, "default", ee(se({ isItemOpen: l, toggleItem: n })))
|
|
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,7 +43,7 @@ const vl = { class: "cl-overflow-hidden" }, bl = /* @__PURE__ */ D({
|
|
|
43
43
|
function l() {
|
|
44
44
|
e.disabled || o("toggle");
|
|
45
45
|
}
|
|
46
|
-
return (n, a) => (u(),
|
|
46
|
+
return (n, a) => (u(), y(B, null, [
|
|
47
47
|
f("div", {
|
|
48
48
|
class: I(["cl-border-b cl-border-grey-1 cl-relative", {
|
|
49
49
|
"cl-bg-grey-0": n.disabled,
|
|
@@ -52,7 +52,7 @@ const vl = { class: "cl-overflow-hidden" }, bl = /* @__PURE__ */ D({
|
|
|
52
52
|
onClick: l
|
|
53
53
|
}, [
|
|
54
54
|
f("div", hl, [
|
|
55
|
-
|
|
55
|
+
T(p(q), {
|
|
56
56
|
class: I(["cl-duration-300 cl-ease-in-out cl-text-grey-3 cl-transform-gpu cl-transition-transform", {
|
|
57
57
|
"cl-rotate-180": n.open
|
|
58
58
|
}]),
|
|
@@ -65,12 +65,12 @@ const vl = { class: "cl-overflow-hidden" }, bl = /* @__PURE__ */ D({
|
|
|
65
65
|
])
|
|
66
66
|
], 2),
|
|
67
67
|
f("div", wl, [
|
|
68
|
-
|
|
69
|
-
default:
|
|
70
|
-
|
|
68
|
+
T(ge, { name: "grow-down" }, {
|
|
69
|
+
default: L(() => [
|
|
70
|
+
x(f("div", $l, [
|
|
71
71
|
j(n.$slots, "default")
|
|
72
72
|
], 512), [
|
|
73
|
-
[
|
|
73
|
+
[U, n.open]
|
|
74
74
|
])
|
|
75
75
|
]),
|
|
76
76
|
_: 3
|
|
@@ -78,19 +78,19 @@ const vl = { class: "cl-overflow-hidden" }, bl = /* @__PURE__ */ D({
|
|
|
78
78
|
])
|
|
79
79
|
], 64));
|
|
80
80
|
}
|
|
81
|
-
}),
|
|
81
|
+
}), de = (t, o) => {
|
|
82
82
|
const e = t.__vccOpts || t;
|
|
83
83
|
for (const [l, n] of o)
|
|
84
84
|
e[l] = n;
|
|
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 u(),
|
|
88
|
+
return u(), y("div", Cl, [
|
|
89
89
|
j(t.$slots, "default")
|
|
90
90
|
]);
|
|
91
91
|
}
|
|
92
|
-
const Sl = /* @__PURE__ */
|
|
93
|
-
function
|
|
92
|
+
const Sl = /* @__PURE__ */ de(Tl, [["render", _l]]), Ee = S([]);
|
|
93
|
+
function Ge(t) {
|
|
94
94
|
const o = {
|
|
95
95
|
id: fl(),
|
|
96
96
|
...t
|
|
@@ -110,7 +110,7 @@ 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) => (u(),
|
|
113
|
+
return (o, e) => (u(), z(Be, { to: o.container }, [
|
|
114
114
|
f("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",
|
|
@@ -121,7 +121,7 @@ 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
|
-
(u(!0),
|
|
124
|
+
(u(!0), y(B, null, Y(p(Ee), (l, n) => (u(), y("div", ie(o.$attrs, {
|
|
125
125
|
key: n,
|
|
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",
|
|
@@ -132,8 +132,8 @@ const Ol = ["onClick"], El = { class: "cl-flex-1 cl-select-none cl-text-ellipsis
|
|
|
132
132
|
}],
|
|
133
133
|
onClick: (a) => p(nl)(l)
|
|
134
134
|
}), [
|
|
135
|
-
f("span", El,
|
|
136
|
-
|
|
135
|
+
f("span", El, _(l.message), 1),
|
|
136
|
+
T(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,8 +149,8 @@ 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) => (u(),
|
|
153
|
-
|
|
152
|
+
return (o, e) => (u(), y(B, null, [
|
|
153
|
+
T(al),
|
|
154
154
|
f("div", jl, [
|
|
155
155
|
j(o.$slots, "header"),
|
|
156
156
|
f("div", {
|
|
@@ -174,11 +174,11 @@ 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 u(),
|
|
177
|
+
return u(), y("div", Nl);
|
|
178
178
|
}
|
|
179
|
-
const je = /* @__PURE__ */
|
|
179
|
+
const je = /* @__PURE__ */ de(Il, [["render", ql], ["__scopeId", "data-v-a21dc5d2"]]), Dl = ["disabled"], Rl = {
|
|
180
180
|
inheritAttrs: !1
|
|
181
|
-
},
|
|
181
|
+
}, me = /* @__PURE__ */ D({
|
|
182
182
|
...Rl,
|
|
183
183
|
__name: "cl-ui-button",
|
|
184
184
|
props: {
|
|
@@ -188,16 +188,16 @@ const je = /* @__PURE__ */ fe(Il, [["render", ql], ["__scopeId", "data-v-a21dc5d
|
|
|
188
188
|
disabled: { type: Boolean, default: !1 }
|
|
189
189
|
},
|
|
190
190
|
setup(t, { expose: o }) {
|
|
191
|
-
const e =
|
|
191
|
+
const e = S(null);
|
|
192
192
|
return o({
|
|
193
193
|
focus() {
|
|
194
194
|
e.value && e.value.focus();
|
|
195
195
|
}
|
|
196
|
-
}), (l, n) => (u(),
|
|
197
|
-
|
|
198
|
-
[
|
|
196
|
+
}), (l, n) => (u(), y(B, null, [
|
|
197
|
+
x(T(je, { class: "relative" }, null, 512), [
|
|
198
|
+
[U, l.loading]
|
|
199
199
|
]),
|
|
200
|
-
|
|
200
|
+
x(f("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", {
|
|
@@ -216,37 +216,37 @@ const je = /* @__PURE__ */ fe(Il, [["render", ql], ["__scopeId", "data-v-a21dc5d
|
|
|
216
216
|
}), [
|
|
217
217
|
j(l.$slots, "default")
|
|
218
218
|
], 16, Dl), [
|
|
219
|
-
[
|
|
219
|
+
[U, !l.loading]
|
|
220
220
|
])
|
|
221
221
|
], 64));
|
|
222
222
|
}
|
|
223
|
-
}),
|
|
223
|
+
}), xl = [
|
|
224
224
|
"default",
|
|
225
225
|
"primary",
|
|
226
226
|
"secondary",
|
|
227
227
|
"danger",
|
|
228
228
|
"blue",
|
|
229
229
|
"orange"
|
|
230
|
-
],
|
|
230
|
+
], Ul = [
|
|
231
231
|
"small",
|
|
232
232
|
"medium",
|
|
233
233
|
"large"
|
|
234
|
-
],
|
|
234
|
+
], Bl = { 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) => (u(),
|
|
241
|
+
return (o, e) => (u(), y("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 ? (u(),
|
|
246
|
+
o.$slots.image ? (u(), y("div", Bl, [
|
|
247
247
|
j(o.$slots, "image")
|
|
248
248
|
])) : M("", !0),
|
|
249
|
-
o.$slots.title ? (u(),
|
|
249
|
+
o.$slots.title ? (u(), y("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",
|
|
@@ -267,7 +267,7 @@ const je = /* @__PURE__ */ fe(Il, [["render", ql], ["__scopeId", "data-v-a21dc5d
|
|
|
267
267
|
}, [
|
|
268
268
|
j(o.$slots, "default")
|
|
269
269
|
], 2),
|
|
270
|
-
o.$slots.footer ? (u(),
|
|
270
|
+
o.$slots.footer ? (u(), y("div", {
|
|
271
271
|
key: 2,
|
|
272
272
|
class: I(["cl-border-grey-2 cl-border-t", {
|
|
273
273
|
"cl-p-2": o.size === "small",
|
|
@@ -284,7 +284,7 @@ const je = /* @__PURE__ */ fe(Il, [["render", ql], ["__scopeId", "data-v-a21dc5d
|
|
|
284
284
|
"medium",
|
|
285
285
|
"large"
|
|
286
286
|
];
|
|
287
|
-
var X = /* @__PURE__ */ ((t) => (t.CURRENCY = "currency", t.PERCENTAGE = "percentage", t.INTEGER = "integer", t.DECIMAL = "decimal", t.MULTIPLIER = "multiplier", t))(X || {}),
|
|
287
|
+
var X = /* @__PURE__ */ ((t) => (t.CURRENCY = "currency", t.PERCENTAGE = "percentage", t.INTEGER = "integer", t.DECIMAL = "decimal", t.MULTIPLIER = "multiplier", t))(X || {}), G = /* @__PURE__ */ ((t) => (t.SHORT_DATE = "short-date", t.SHORT_DATETIME = "short-datetime", t.DATE = "date", t.DATETIME = "datetime", t.LONG_DATE = "long-date", t.LONG_DATETIME = "long-datetime", t.TIME = "time", t.MONTH_YEAR = "month-year", t))(G || {});
|
|
288
288
|
const Pl = {
|
|
289
289
|
"en-GB": {
|
|
290
290
|
comboBox: {
|
|
@@ -385,52 +385,52 @@ const Pl = {
|
|
|
385
385
|
}
|
|
386
386
|
}, Vl = {
|
|
387
387
|
"en-GB": {
|
|
388
|
-
[
|
|
388
|
+
[G.SHORT_DATE]: {
|
|
389
389
|
day: "numeric",
|
|
390
390
|
month: "numeric",
|
|
391
391
|
year: "2-digit"
|
|
392
392
|
},
|
|
393
|
-
[
|
|
393
|
+
[G.SHORT_DATETIME]: {
|
|
394
394
|
day: "numeric",
|
|
395
395
|
month: "numeric",
|
|
396
396
|
year: "2-digit",
|
|
397
397
|
hour: "numeric",
|
|
398
398
|
minute: "numeric"
|
|
399
399
|
},
|
|
400
|
-
[
|
|
400
|
+
[G.DATE]: {
|
|
401
401
|
day: "numeric",
|
|
402
402
|
month: "numeric",
|
|
403
403
|
year: "numeric"
|
|
404
404
|
},
|
|
405
|
-
[
|
|
405
|
+
[G.DATETIME]: {
|
|
406
406
|
day: "numeric",
|
|
407
407
|
month: "numeric",
|
|
408
408
|
year: "numeric",
|
|
409
409
|
hour: "numeric",
|
|
410
410
|
minute: "numeric"
|
|
411
411
|
},
|
|
412
|
-
[
|
|
412
|
+
[G.LONG_DATE]: {
|
|
413
413
|
day: "numeric",
|
|
414
414
|
month: "long",
|
|
415
415
|
year: "numeric"
|
|
416
416
|
},
|
|
417
|
-
[
|
|
417
|
+
[G.LONG_DATETIME]: {
|
|
418
418
|
day: "numeric",
|
|
419
419
|
month: "long",
|
|
420
420
|
year: "numeric",
|
|
421
421
|
hour: "numeric",
|
|
422
422
|
minute: "numeric"
|
|
423
423
|
},
|
|
424
|
-
[
|
|
424
|
+
[G.TIME]: {
|
|
425
425
|
hour: "numeric",
|
|
426
426
|
minute: "numeric"
|
|
427
427
|
},
|
|
428
|
-
[
|
|
428
|
+
[G.MONTH_YEAR]: {
|
|
429
429
|
month: "long",
|
|
430
430
|
year: "numeric"
|
|
431
431
|
}
|
|
432
432
|
}
|
|
433
|
-
}, Z =
|
|
433
|
+
}, Z = ml({
|
|
434
434
|
locale: "en-GB",
|
|
435
435
|
fallbackLocale: "en-GB",
|
|
436
436
|
messages: Pl,
|
|
@@ -453,7 +453,7 @@ function Za(t, o) {
|
|
|
453
453
|
function Qa(t) {
|
|
454
454
|
return Z.global.locale.value = t, be();
|
|
455
455
|
}
|
|
456
|
-
const { t:
|
|
456
|
+
const { t: ne } = Z.global;
|
|
457
457
|
function Gl(t, o, e, l) {
|
|
458
458
|
const n = Z.global.locale.value;
|
|
459
459
|
return l instanceof Date && (l = l.getTime()), new Promise((a) => {
|
|
@@ -470,20 +470,20 @@ 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 = ae(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 = ae(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 = ae(s, ne("input.afterOrEqualToValue", { label: e, min: new Date(t).toLocaleDateString(n) }));
|
|
481
481
|
break;
|
|
482
482
|
case "datetime":
|
|
483
|
-
s = l >= new Date(t).getTime(), r =
|
|
483
|
+
s = l >= new Date(t).getTime(), r = ae(s, ne("input.afterOrEqualToValue", { label: e, min: Z.global.d(new Date(t), G.DATETIME, n ?? Z.global.locale.value) }));
|
|
484
484
|
break;
|
|
485
485
|
case "time":
|
|
486
|
-
i = t.toDateFromTime(), s = l >= i, r =
|
|
486
|
+
i = t.toDateFromTime(), s = l >= i, r = ae(s, ne("input.afterOrEqualToValue", { label: e, min: Z.global.d(new Date(i), G.TIME, n ?? Z.global.locale.value) }));
|
|
487
487
|
break;
|
|
488
488
|
default:
|
|
489
489
|
r.valid = !0;
|
|
@@ -509,20 +509,20 @@ 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 = ae(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 = ae(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 = ae(s, ne("input.beforeOrEqualToValue", { label: e, max: new Date(t).toLocaleDateString(n) }));
|
|
520
520
|
break;
|
|
521
521
|
case "datetime":
|
|
522
|
-
s = l <= new Date(t).getTime(), r =
|
|
522
|
+
s = l <= new Date(t).getTime(), r = ae(s, ne("input.afterOrEqualToValue", { label: e, min: Z.global.d(new Date(t), G.DATETIME, n ?? Z.global.locale.value) }));
|
|
523
523
|
break;
|
|
524
524
|
case "time":
|
|
525
|
-
i = t.toDateFromTime(), s = l <= i, r =
|
|
525
|
+
i = t.toDateFromTime(), s = l <= i, r = ae(s, ne("input.afterOrEqualToValue", { label: e, min: Z.global.d(new Date(i), G.TIME, n ?? Z.global.locale.value) }));
|
|
526
526
|
break;
|
|
527
527
|
default:
|
|
528
528
|
r.valid = !0;
|
|
@@ -534,17 +534,17 @@ function Hl(t, o, e, l) {
|
|
|
534
534
|
}
|
|
535
535
|
function Wl(t, o) {
|
|
536
536
|
return new Promise((e) => {
|
|
537
|
-
const l = o != null && o !== "" && o.toString().trim() !== "", n =
|
|
537
|
+
const l = o != null && o !== "" && o.toString().trim() !== "", n = ae(l, ne("input.valueIsRequired", { label: t }));
|
|
538
538
|
e(n);
|
|
539
539
|
});
|
|
540
540
|
}
|
|
541
541
|
function Jl(t, o) {
|
|
542
542
|
return new Promise((e) => {
|
|
543
|
-
const n = 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, a =
|
|
543
|
+
const n = 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, a = ae(n, ne("input.valueNotValidEmail", { label: t }));
|
|
544
544
|
e(a);
|
|
545
545
|
});
|
|
546
546
|
}
|
|
547
|
-
function
|
|
547
|
+
function ae(t, o) {
|
|
548
548
|
return {
|
|
549
549
|
valid: t,
|
|
550
550
|
message: t ? "" : o
|
|
@@ -898,7 +898,7 @@ var Xl = De.exports, Re = { exports: {} };
|
|
|
898
898
|
e.Italian = n, e.default = a, Object.defineProperty(e, "__esModule", { value: !0 });
|
|
899
899
|
});
|
|
900
900
|
})(Re, Re.exports);
|
|
901
|
-
var et = Re.exports,
|
|
901
|
+
var et = Re.exports, xe = { exports: {} };
|
|
902
902
|
(function(t, o) {
|
|
903
903
|
(function(e, l) {
|
|
904
904
|
l(o);
|
|
@@ -962,8 +962,8 @@ var et = Re.exports, Ue = { exports: {} };
|
|
|
962
962
|
var a = l.l10ns;
|
|
963
963
|
e.Dutch = n, e.default = a, Object.defineProperty(e, "__esModule", { value: !0 });
|
|
964
964
|
});
|
|
965
|
-
})(
|
|
966
|
-
var lt =
|
|
965
|
+
})(xe, xe.exports);
|
|
966
|
+
var lt = xe.exports;
|
|
967
967
|
function tt() {
|
|
968
968
|
return /* @__PURE__ */ new Date("1990-01-02T12:05");
|
|
969
969
|
}
|
|
@@ -994,7 +994,7 @@ function nt(t) {
|
|
|
994
994
|
}
|
|
995
995
|
return o;
|
|
996
996
|
}
|
|
997
|
-
function
|
|
997
|
+
function He(t, o) {
|
|
998
998
|
let e;
|
|
999
999
|
if (t.indexOf("/") > -1 || t.indexOf("-") > -1) {
|
|
1000
1000
|
const l = new Date(t).toLocaleString(o), n = l.indexOf(",");
|
|
@@ -1002,7 +1002,7 @@ function Ge(t, o) {
|
|
|
1002
1002
|
}
|
|
1003
1003
|
return e;
|
|
1004
1004
|
}
|
|
1005
|
-
function
|
|
1005
|
+
function We(t) {
|
|
1006
1006
|
let o;
|
|
1007
1007
|
if (/([0-9]{2}:[0-9]{2})/.exec(t) !== null) {
|
|
1008
1008
|
const l = t.indexOf("T");
|
|
@@ -1023,133 +1023,133 @@ 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: n, getDateTimeFormat: a, locale: r } = le(), s =
|
|
1027
|
-
var
|
|
1028
|
-
let
|
|
1029
|
-
return ((
|
|
1030
|
-
}),
|
|
1031
|
-
var
|
|
1032
|
-
const
|
|
1033
|
-
...
|
|
1026
|
+
const l = t, { d: n, getDateTimeFormat: a, locale: r } = le(), s = S(null), i = S(null), d = E(() => n(tt(), l.type)), v = E(() => a(r.value)[l.type]), b = E(() => he()), m = E(() => ve()), $ = E(() => He(l.min, r.value)), c = E(() => He(l.max, r.value)), k = S(!1), C = E(() => {
|
|
1027
|
+
var W, F;
|
|
1028
|
+
let g = "H", A = "Y";
|
|
1029
|
+
return ((W = v.value) == null ? void 0 : W.hour12) === !0 && (g = "h"), ((F = v.value) == null ? void 0 : F.year) === "2-digit" && (A = "y"), ot(d.value, g, A);
|
|
1030
|
+
}), O = E(() => {
|
|
1031
|
+
var A, W;
|
|
1032
|
+
const g = {
|
|
1033
|
+
...Ve.defaultConfig,
|
|
1034
1034
|
allowInput: !0,
|
|
1035
|
-
dateFormat:
|
|
1035
|
+
dateFormat: C.value,
|
|
1036
1036
|
disableMobile: !0,
|
|
1037
|
-
enableTime: l.type ===
|
|
1037
|
+
enableTime: l.type === G.DATETIME || l.type === G.TIME,
|
|
1038
1038
|
locale: nt(r.value),
|
|
1039
1039
|
maxDate: c.value,
|
|
1040
1040
|
maxTime: m.value,
|
|
1041
1041
|
minDate: $.value,
|
|
1042
|
-
minTime:
|
|
1042
|
+
minTime: b.value,
|
|
1043
1043
|
minuteIncrement: 1,
|
|
1044
1044
|
monthSelectorType: "static",
|
|
1045
|
-
noCalendar: l.type ===
|
|
1045
|
+
noCalendar: l.type === G.TIME,
|
|
1046
1046
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
1047
|
-
time_24hr: typeof ((
|
|
1047
|
+
time_24hr: typeof ((A = v.value) == null ? void 0 : A.hour12) > "u" || ((W = v.value) == null ? void 0 : W.hour12) === !1
|
|
1048
1048
|
};
|
|
1049
|
-
return l.date !== null && (
|
|
1049
|
+
return l.date !== null && (g.defaultDate = l.date), g;
|
|
1050
1050
|
});
|
|
1051
|
-
function
|
|
1052
|
-
const
|
|
1053
|
-
|
|
1051
|
+
function V(g, A, W) {
|
|
1052
|
+
const F = g.length > 0 ? g[0] : null;
|
|
1053
|
+
F !== l.date && !k.value && e("update:date", F), k.value = !1;
|
|
1054
1054
|
}
|
|
1055
1055
|
function te() {
|
|
1056
1056
|
k.value = !0, e("update:date", null);
|
|
1057
1057
|
}
|
|
1058
|
-
function
|
|
1058
|
+
function ue() {
|
|
1059
1059
|
if (s.value !== null) {
|
|
1060
|
-
let
|
|
1061
|
-
|
|
1062
|
-
let
|
|
1063
|
-
l.type === "time" ?
|
|
1060
|
+
let g = /* @__PURE__ */ new Date();
|
|
1061
|
+
g.setHours(12, 0, 0, 0);
|
|
1062
|
+
let A;
|
|
1063
|
+
l.type === "time" ? A = l.min.toDateFromTime() : A = new Date(l.min), A > g && (g = A), k.value = !0, e("update:date", g);
|
|
1064
1064
|
}
|
|
1065
1065
|
}
|
|
1066
|
-
function
|
|
1067
|
-
s.value === null && i.value !== null && (s.value =
|
|
1066
|
+
function w() {
|
|
1067
|
+
s.value === null && i.value !== null && (s.value = Ve(i.value, O.value), s.value.config.onChange.push(V));
|
|
1068
1068
|
}
|
|
1069
|
-
function
|
|
1070
|
-
s.value !== null && (s.value.set(
|
|
1069
|
+
function P() {
|
|
1070
|
+
s.value !== null && (s.value.set(O.value), s.value.config.onChange.push(V));
|
|
1071
1071
|
}
|
|
1072
|
-
function oe(
|
|
1073
|
-
s.value !== null && s.value.setDate(
|
|
1072
|
+
function oe(g) {
|
|
1073
|
+
s.value !== null && s.value.setDate(g, !0);
|
|
1074
1074
|
}
|
|
1075
1075
|
function J() {
|
|
1076
1076
|
s.value !== null && s.value.clear();
|
|
1077
1077
|
}
|
|
1078
|
-
function
|
|
1078
|
+
function fe() {
|
|
1079
1079
|
s.value !== null && (s.value.destroy(), s.value = null);
|
|
1080
1080
|
}
|
|
1081
1081
|
function he() {
|
|
1082
|
-
let
|
|
1083
|
-
return (l.type ===
|
|
1082
|
+
let g;
|
|
1083
|
+
return (l.type === G.TIME || l.type === G.DATETIME) && (g = We(l.min)), g;
|
|
1084
1084
|
}
|
|
1085
|
-
function
|
|
1086
|
-
let
|
|
1087
|
-
return (l.type ===
|
|
1085
|
+
function ve() {
|
|
1086
|
+
let g;
|
|
1087
|
+
return (l.type === G.TIME || l.type === G.DATETIME) && (g = We(l.max)), g;
|
|
1088
1088
|
}
|
|
1089
|
-
return
|
|
1090
|
-
|
|
1089
|
+
return H(() => l.date, (g, A) => {
|
|
1090
|
+
g !== null && A !== null ? g.getTime() !== A.getTime() && oe(g) : g === null && A !== null && J();
|
|
1091
1091
|
}, {
|
|
1092
1092
|
deep: !0
|
|
1093
|
-
}),
|
|
1093
|
+
}), H(() => O.value, P, {
|
|
1094
1094
|
deep: !0
|
|
1095
|
-
}),
|
|
1096
|
-
|
|
1095
|
+
}), H(() => l.type, () => {
|
|
1096
|
+
fe(), be(() => w());
|
|
1097
1097
|
}, {
|
|
1098
1098
|
immediate: !1
|
|
1099
|
-
}),
|
|
1099
|
+
}), Ce(() => w()), Ae(() => fe()), o({
|
|
1100
1100
|
focus() {
|
|
1101
|
-
var
|
|
1102
|
-
(
|
|
1101
|
+
var g;
|
|
1102
|
+
(g = i.value) == null || g.focus();
|
|
1103
1103
|
}
|
|
1104
|
-
}), (
|
|
1105
|
-
f("input",
|
|
1104
|
+
}), (g, A) => (u(), y("div", ie(g.$attrs, { class: "cl-relative" }), [
|
|
1105
|
+
f("input", ie({
|
|
1106
1106
|
ref_key: "element",
|
|
1107
1107
|
ref: i
|
|
1108
|
-
},
|
|
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":
|
|
1108
|
+
}, g.$attrs, {
|
|
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
|
-
disabled:
|
|
1111
|
+
disabled: g.disabled
|
|
1112
1112
|
}), null, 16, at),
|
|
1113
|
-
|
|
1113
|
+
x(T(p(q), {
|
|
1114
1114
|
class: I(["cl-absolute cl-bg-white cl-right-2 cl-text-grey-4 cl-top-2", {
|
|
1115
|
-
"!cl-bg-off-white":
|
|
1115
|
+
"!cl-bg-off-white": g.disabled
|
|
1116
1116
|
}]),
|
|
1117
1117
|
icon: "ph:calendar",
|
|
1118
1118
|
weight: "light",
|
|
1119
1119
|
size: 18
|
|
1120
1120
|
}, null, 8, ["class"]), [
|
|
1121
|
-
[
|
|
1121
|
+
[U, (g.date === null || g.disabled) && g.type !== "time"]
|
|
1122
1122
|
]),
|
|
1123
|
-
|
|
1123
|
+
x(T(p(q), {
|
|
1124
1124
|
class: I(["cl-absolute cl-bg-white cl-right-2 cl-text-grey-4 cl-top-3.5", {
|
|
1125
|
-
"!cl-bg-off-white":
|
|
1125
|
+
"!cl-bg-off-white": g.disabled
|
|
1126
1126
|
}]),
|
|
1127
1127
|
icon: "ph-clock",
|
|
1128
1128
|
weight: "light",
|
|
1129
1129
|
size: 18
|
|
1130
1130
|
}, null, 8, ["class"]), [
|
|
1131
|
-
[
|
|
1131
|
+
[U, (g.date === null || g.disabled) && g.type === "time"]
|
|
1132
1132
|
]),
|
|
1133
|
-
|
|
1134
|
-
|
|
1133
|
+
x(f("div", st, [
|
|
1134
|
+
T(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
|
-
onClick:
|
|
1138
|
+
onClick: ue
|
|
1139
1139
|
}),
|
|
1140
|
-
|
|
1140
|
+
T(p(q), {
|
|
1141
1141
|
class: "cl-cursor-pointer",
|
|
1142
1142
|
icon: "ph:x",
|
|
1143
1143
|
size: 16,
|
|
1144
1144
|
onClick: te
|
|
1145
1145
|
})
|
|
1146
1146
|
], 512), [
|
|
1147
|
-
[
|
|
1147
|
+
[U, g.date !== null && !g.disabled]
|
|
1148
1148
|
])
|
|
1149
1149
|
], 16));
|
|
1150
1150
|
}
|
|
1151
1151
|
});
|
|
1152
|
-
const ct = /* @__PURE__ */
|
|
1152
|
+
const ct = /* @__PURE__ */ de(rt, [["__scopeId", "data-v-1698c950"]]), Me = [
|
|
1153
1153
|
"date",
|
|
1154
1154
|
"datetime",
|
|
1155
1155
|
"time"
|
|
@@ -1174,52 +1174,52 @@ const ct = /* @__PURE__ */ fe(rt, [["__scopeId", "data-v-1698c950"]]), Me = [
|
|
|
1174
1174
|
"update:value": null
|
|
1175
1175
|
},
|
|
1176
1176
|
setup(t, { expose: o, emit: e }) {
|
|
1177
|
-
const l = t, { n, t: a } = le(), { debounce: r } =
|
|
1177
|
+
const l = t, { n, t: a } = le(), { debounce: r } = gl(), s = S(l.value), i = S(), d = E({
|
|
1178
1178
|
get: () => l.value,
|
|
1179
1179
|
set: (c) => e("update:value", c)
|
|
1180
|
-
}),
|
|
1180
|
+
}), v = E(() => l.disabled ? "rgba(153, 153, 153, 0.8)" : "#9acd32"), b = E(() => {
|
|
1181
1181
|
let c = (d.value - l.min) / (l.max - l.min) * 100;
|
|
1182
1182
|
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
|
-
}), m =
|
|
1183
|
+
}), m = E(() => l.min <= l.max && l.step > 0);
|
|
1184
1184
|
function $(c, k) {
|
|
1185
|
-
const
|
|
1186
|
-
d.value = l.enforceStep ? Math.ceil(
|
|
1185
|
+
const C = (c == null ? void 0 : c.value) ?? "", O = Math.max(Math.min(parseFloat(C) || l.min, l.max), l.min);
|
|
1186
|
+
d.value = l.enforceStep ? Math.ceil(O / l.step) * l.step : O, be(() => k());
|
|
1187
1187
|
}
|
|
1188
|
-
return
|
|
1188
|
+
return H(() => l.value, () => s.value = l.value), o({
|
|
1189
1189
|
focus() {
|
|
1190
1190
|
var c;
|
|
1191
1191
|
(c = i.value) == null || c.focus();
|
|
1192
1192
|
}
|
|
1193
1193
|
}), (c, k) => {
|
|
1194
|
-
const
|
|
1195
|
-
return m.value ? (u(),
|
|
1196
|
-
|
|
1197
|
-
[
|
|
1194
|
+
const C = el("cl-ui-input");
|
|
1195
|
+
return m.value ? (u(), y("div", ee(ie({ key: 0 }, c.$attrs)), [
|
|
1196
|
+
x(f("div", { class: "cl-bg-transparent cl-relative cl-text-center cl-text-sm" }, _(d.value), 513), [
|
|
1197
|
+
[U, !c.showNumericInput]
|
|
1198
1198
|
]),
|
|
1199
1199
|
f("div", it, [
|
|
1200
|
-
|
|
1200
|
+
x(T(C, {
|
|
1201
1201
|
modelValue: s.value,
|
|
1202
|
-
"onUpdate:modelValue": k[0] || (k[0] = (
|
|
1202
|
+
"onUpdate:modelValue": k[0] || (k[0] = (O) => s.value = O),
|
|
1203
1203
|
class: "!cl-text-sm md:!cl-w-auto",
|
|
1204
1204
|
"input-type": "number",
|
|
1205
1205
|
min: c.min,
|
|
1206
1206
|
max: c.max,
|
|
1207
1207
|
step: c.step,
|
|
1208
1208
|
disabled: c.disabled,
|
|
1209
|
-
onInput: k[1] || (k[1] = (
|
|
1209
|
+
onInput: k[1] || (k[1] = (O) => p(r)($, O.target, c.$forceUpdate))
|
|
1210
1210
|
}, null, 8, ["modelValue", "min", "max", "step", "disabled"]), [
|
|
1211
|
-
[
|
|
1211
|
+
[U, c.showNumericInput]
|
|
1212
1212
|
]),
|
|
1213
1213
|
f("div", ut, [
|
|
1214
|
-
f("span", dt,
|
|
1215
|
-
typeof d.value == "number" ? (u(),
|
|
1216
|
-
|
|
1214
|
+
f("span", dt, _(p(n)(c.min, Number.isInteger(c.min) ? p(X).INTEGER : p(X).DECIMAL)), 1),
|
|
1215
|
+
typeof d.value == "number" ? (u(), y("div", ft, [
|
|
1216
|
+
x(f("input", {
|
|
1217
1217
|
ref_key: "sliderRef",
|
|
1218
1218
|
ref: i,
|
|
1219
|
-
"onUpdate:modelValue": k[2] || (k[2] = (
|
|
1219
|
+
"onUpdate:modelValue": k[2] || (k[2] = (O) => d.value = O),
|
|
1220
1220
|
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",
|
|
1221
|
-
style:
|
|
1222
|
-
background: `linear-gradient(to right, ${
|
|
1221
|
+
style: ll({
|
|
1222
|
+
background: `linear-gradient(to right, ${v.value} 0%, ${v.value} ${b.value}%, white ${b.value}%, white 100%)`
|
|
1223
1223
|
}),
|
|
1224
1224
|
type: "range",
|
|
1225
1225
|
min: c.min,
|
|
@@ -1235,15 +1235,15 @@ const ct = /* @__PURE__ */ fe(rt, [["__scopeId", "data-v-1698c950"]]), Me = [
|
|
|
1235
1235
|
]
|
|
1236
1236
|
])
|
|
1237
1237
|
])) : M("", !0),
|
|
1238
|
-
f("span", mt,
|
|
1238
|
+
f("span", mt, _(p(n)(c.max, Number.isInteger(c.max) ? p(X).INTEGER : p(X).DECIMAL)), 1)
|
|
1239
1239
|
])
|
|
1240
1240
|
])
|
|
1241
|
-
], 16)) : (u(),
|
|
1241
|
+
], 16)) : (u(), y("div", gt, _(p(a)("slider.invalidProps")), 1));
|
|
1242
1242
|
};
|
|
1243
1243
|
}
|
|
1244
1244
|
});
|
|
1245
|
-
const bt = /* @__PURE__ */
|
|
1246
|
-
function
|
|
1245
|
+
const bt = /* @__PURE__ */ de(vt, [["__scopeId", "data-v-47d8e44f"]]);
|
|
1246
|
+
function Je(t) {
|
|
1247
1247
|
let o = !1;
|
|
1248
1248
|
switch (t) {
|
|
1249
1249
|
case "email":
|
|
@@ -1263,7 +1263,7 @@ function We(t) {
|
|
|
1263
1263
|
function ht(t) {
|
|
1264
1264
|
return t === "number" || t === "range";
|
|
1265
1265
|
}
|
|
1266
|
-
function
|
|
1266
|
+
function Ke(t) {
|
|
1267
1267
|
let o = !1;
|
|
1268
1268
|
switch (t) {
|
|
1269
1269
|
case "date":
|
|
@@ -1291,7 +1291,7 @@ function yt(t) {
|
|
|
1291
1291
|
}
|
|
1292
1292
|
return o;
|
|
1293
1293
|
}
|
|
1294
|
-
function
|
|
1294
|
+
function ke(t) {
|
|
1295
1295
|
return t === "button" || t === "submit" || t === "reset";
|
|
1296
1296
|
}
|
|
1297
1297
|
function wt(t) {
|
|
@@ -1310,9 +1310,9 @@ function wt(t) {
|
|
|
1310
1310
|
}
|
|
1311
1311
|
return o;
|
|
1312
1312
|
}
|
|
1313
|
-
function
|
|
1313
|
+
function Ze(t, o) {
|
|
1314
1314
|
const e = t.target;
|
|
1315
|
-
return ht(o) ? e.valueAsNumber : yt(o) ? e.valueAsDate :
|
|
1315
|
+
return ht(o) ? e.valueAsNumber : yt(o) ? e.valueAsDate : ke(o) ? e.checked : e.value;
|
|
1316
1316
|
}
|
|
1317
1317
|
const $t = { class: "cl-flex cl-justify-between" }, kt = { class: "cl-w-full" }, Tt = {
|
|
1318
1318
|
key: 0,
|
|
@@ -1365,27 +1365,27 @@ const $t = { class: "cl-flex cl-justify-between" }, kt = { class: "cl-w-full" },
|
|
|
1365
1365
|
},
|
|
1366
1366
|
emits: ["update:model-value", "click", "focus", "input", "change", "validated"],
|
|
1367
1367
|
setup(t, { expose: o, emit: e }) {
|
|
1368
|
-
const l = t, n =
|
|
1368
|
+
const l = t, n = S(null), a = S(!1), r = S(!1), s = E(F), i = E(() => l.placeholderText.trim() !== "" ? l.placeholderText : l.label), d = S(0), v = E({
|
|
1369
1369
|
get: () => l.modelValue,
|
|
1370
|
-
set: (h) =>
|
|
1371
|
-
}),
|
|
1370
|
+
set: (h) => w(h, !1)
|
|
1371
|
+
}), b = E({
|
|
1372
1372
|
get: () => l.modelValue,
|
|
1373
|
-
set: (h) =>
|
|
1374
|
-
}), m =
|
|
1373
|
+
set: (h) => ue(h)
|
|
1374
|
+
}), m = E(() => typeof l.min == "number" ? l.min.toString() : l.min), $ = E(() => typeof l.max == "number" ? l.max.toString() : l.max), c = E(() => typeof l.min == "number" ? l.min : parseFloat(l.min)), k = E(() => typeof l.max == "number" ? l.max : parseFloat(l.max)), C = E(() => l.messageWhenValid.trim() !== "" ? l.messageWhenValid : ""), O = S(!0), V = S([]), te = E(() => {
|
|
1375
1375
|
var h, N;
|
|
1376
1376
|
return [
|
|
1377
|
-
...((h =
|
|
1377
|
+
...((h = V.value) == null ? void 0 : h.filter((R) => ((R == null ? void 0 : R.length) ?? 0) > 0)) ?? [],
|
|
1378
1378
|
...((N = l.externalErrors) == null ? void 0 : N.filter((R) => ((R == null ? void 0 : R.length) ?? 0) > 0)) ?? []
|
|
1379
1379
|
].join(`
|
|
1380
1380
|
`);
|
|
1381
1381
|
});
|
|
1382
|
-
async function
|
|
1383
|
-
l.validateOn === "input" && await
|
|
1382
|
+
async function ue(h) {
|
|
1383
|
+
l.validateOn === "input" && await P(h), e("update:model-value", h);
|
|
1384
1384
|
}
|
|
1385
|
-
async function
|
|
1386
|
-
l.onInputFunction !== void 0 && (h = l.onInputFunction(h)), (N || l.validateOn === "input") && await
|
|
1385
|
+
async function w(h, N) {
|
|
1386
|
+
l.onInputFunction !== void 0 && (h = l.onInputFunction(h)), (N || l.validateOn === "input") && await P(h), e("update:model-value", h);
|
|
1387
1387
|
}
|
|
1388
|
-
function
|
|
1388
|
+
function P(h) {
|
|
1389
1389
|
const N = {
|
|
1390
1390
|
message: "",
|
|
1391
1391
|
valid: !0
|
|
@@ -1397,20 +1397,20 @@ const $t = { class: "cl-flex cl-justify-between" }, kt = { class: "cl-w-full" },
|
|
|
1397
1397
|
})
|
|
1398
1398
|
];
|
|
1399
1399
|
return (typeof h == "string" || typeof h == "number" || h instanceof Date) && (R.push(Gl(l.min, l.inputType, l.label, h)), R.push(Hl(l.max, l.inputType, l.label, h))), l.isRequired && R.push(Wl(l.label, h)), l.inputType === "email" && typeof h == "string" && R.push(Jl(l.label, h)), Promise.all(R).then((ye) => {
|
|
1400
|
-
const cl = [...ye.map((_e) => _e.message)],
|
|
1401
|
-
|
|
1400
|
+
const cl = [...ye.map((_e) => _e.message)], Fe = ye.some((_e) => _e.message.length > 0 && _e.valid === !1) || l.externalErrors.length > 0;
|
|
1401
|
+
Fe ? (V.value = cl, e("validated", !1, h)) : (V.value = [], e("validated", !0, h)), O.value = !Fe;
|
|
1402
1402
|
});
|
|
1403
1403
|
}
|
|
1404
1404
|
function oe() {
|
|
1405
1405
|
let h = "";
|
|
1406
|
-
return l.inputType === "color" &&
|
|
1406
|
+
return l.inputType === "color" && v.value && (l.disabled ? h = "background: #999999" : h = `background: ${v.value};`), h;
|
|
1407
1407
|
}
|
|
1408
1408
|
function J(h) {
|
|
1409
|
-
|
|
1409
|
+
ke(l.inputType) ? (h.preventDefault(), e("click", h)) : l.inputType === "checkbox" && e("click", h);
|
|
1410
1410
|
}
|
|
1411
|
-
function
|
|
1411
|
+
function fe(h) {
|
|
1412
1412
|
if (n.value) {
|
|
1413
|
-
n.value.stepUp(), n.value.focus(),
|
|
1413
|
+
n.value.stepUp(), n.value.focus(), w(n.value.valueAsNumber, !1);
|
|
1414
1414
|
const N = {
|
|
1415
1415
|
target: n.value
|
|
1416
1416
|
};
|
|
@@ -1419,75 +1419,79 @@ const $t = { class: "cl-flex cl-justify-between" }, kt = { class: "cl-w-full" },
|
|
|
1419
1419
|
}
|
|
1420
1420
|
function he(h) {
|
|
1421
1421
|
if (n.value) {
|
|
1422
|
-
n.value.stepDown(), n.value.focus(),
|
|
1422
|
+
n.value.stepDown(), n.value.focus(), w(n.value.valueAsNumber, !1);
|
|
1423
1423
|
const N = {
|
|
1424
1424
|
target: n.value
|
|
1425
1425
|
};
|
|
1426
1426
|
e("input", N, n.value.valueAsNumber), e("change", h, n.value.valueAsNumber);
|
|
1427
1427
|
}
|
|
1428
1428
|
}
|
|
1429
|
-
function
|
|
1429
|
+
function ve(h) {
|
|
1430
1430
|
a.value = h;
|
|
1431
1431
|
}
|
|
1432
|
-
function
|
|
1433
|
-
r.value = !0,
|
|
1432
|
+
function g() {
|
|
1433
|
+
r.value = !0, ve(!1);
|
|
1434
1434
|
}
|
|
1435
|
-
function
|
|
1435
|
+
function A() {
|
|
1436
1436
|
d.value++;
|
|
1437
1437
|
}
|
|
1438
|
-
function
|
|
1438
|
+
function W(h) {
|
|
1439
1439
|
h.target.blur();
|
|
1440
1440
|
}
|
|
1441
|
-
function
|
|
1441
|
+
function F() {
|
|
1442
1442
|
var R;
|
|
1443
1443
|
let h = !0;
|
|
1444
1444
|
const N = s.value;
|
|
1445
|
-
return a.value ? h = N : r.value && ((R =
|
|
1445
|
+
return a.value ? h = N : r.value && ((R = v.value) == null ? void 0 : R.toString().trim()) === "" && (h = !1), h;
|
|
1446
1446
|
}
|
|
1447
|
-
async function
|
|
1448
|
-
const N =
|
|
1449
|
-
l.validateOn === "change" && await
|
|
1447
|
+
async function $e(h) {
|
|
1448
|
+
const N = Ze(h, l.inputType);
|
|
1449
|
+
l.validateOn === "change" && await P(N), e("change", h, N);
|
|
1450
1450
|
}
|
|
1451
|
-
return
|
|
1452
|
-
l.validateImmediately &&
|
|
1453
|
-
}),
|
|
1454
|
-
await
|
|
1451
|
+
return Ce(() => {
|
|
1452
|
+
l.validateImmediately && w(l.modelValue, !0);
|
|
1453
|
+
}), H(() => l.isRequired, () => w(l.modelValue, !0)), H(() => l.externalErrors, async () => {
|
|
1454
|
+
await P(v.value), e("update:model-value", v.value);
|
|
1455
1455
|
}), o({
|
|
1456
1456
|
focus() {
|
|
1457
1457
|
var h;
|
|
1458
1458
|
(h = n.value) == null || h.focus();
|
|
1459
|
+
},
|
|
1460
|
+
blur() {
|
|
1461
|
+
var h;
|
|
1462
|
+
(h = n.value) == null || h.blur();
|
|
1459
1463
|
}
|
|
1460
|
-
}), (h, N) => (u(),
|
|
1464
|
+
}), (h, N) => (u(), y("div", {
|
|
1461
1465
|
key: d.value,
|
|
1462
1466
|
class: "cl-align-top cl-border-none cl-inline-block cl-text-left"
|
|
1463
1467
|
}, [
|
|
1464
1468
|
f("div", {
|
|
1465
|
-
onMouseenter: N[11] || (N[11] = (R) =>
|
|
1466
|
-
onMouseleave: N[12] || (N[12] = (R) =>
|
|
1469
|
+
onMouseenter: N[11] || (N[11] = (R) => ve(!0)),
|
|
1470
|
+
onMouseleave: N[12] || (N[12] = (R) => ve(!1))
|
|
1467
1471
|
}, [
|
|
1468
1472
|
f("div", $t, [
|
|
1469
1473
|
f("div", kt, [
|
|
1470
|
-
|
|
1471
|
-
[
|
|
1474
|
+
x(f("label", { class: "cl-block cl-mb-1 cl-text-gray-400 cl-text-xs cl-tracking-widest" }, _(h.label), 513), [
|
|
1475
|
+
[U, h.showLabel && h.label !== ""]
|
|
1472
1476
|
])
|
|
1473
1477
|
]),
|
|
1474
|
-
h.isRequired && s.value ? (u(),
|
|
1475
|
-
h.isRequired && !s.value && h.requiredText.length ? (u(),
|
|
1478
|
+
h.isRequired && s.value ? (u(), y("label", Tt, " * ")) : M("", !0),
|
|
1479
|
+
h.isRequired && !s.value && h.requiredText.length ? (u(), y("label", Ct, _(h.requiredText), 1)) : M("", !0)
|
|
1476
1480
|
]),
|
|
1477
|
-
h.inputType !== "range" && !p(
|
|
1481
|
+
h.inputType !== "range" && !p(Ke)(h.inputType) ? x((u(), y("input", ie({
|
|
1478
1482
|
key: 0,
|
|
1479
1483
|
ref_key: "inputElement",
|
|
1480
1484
|
ref: n,
|
|
1481
|
-
"onUpdate:modelValue": N[0] || (N[0] = (R) =>
|
|
1485
|
+
"onUpdate:modelValue": N[0] || (N[0] = (R) => v.value = R)
|
|
1482
1486
|
}, h.$attrs, {
|
|
1483
1487
|
class: ["cl-block cl-border cl-duration-300 cl-h-full cl-mb-1 cl-transition cl-w-full focus:cl-outline-none", {
|
|
1484
|
-
"hover:!cl-border-grey-3": h.disabled === !1 && !p(
|
|
1488
|
+
"hover:!cl-border-grey-3": h.disabled === !1 && !p(ke)(h.inputType),
|
|
1485
1489
|
"!cl-cursor-default": h.disabled,
|
|
1486
|
-
"!cl-border-danger-default": !
|
|
1487
|
-
"!cl-border-primary-default":
|
|
1488
|
-
"cl-border-grey-0 focus:cl-border-blue-light":
|
|
1490
|
+
"!cl-border-danger-default": !O.value,
|
|
1491
|
+
"!cl-border-primary-default": O.value && h.highlightWhenValid,
|
|
1492
|
+
"cl-border-grey-0 focus:cl-border-blue-light": O.value && !p(ke)(h.inputType),
|
|
1489
1493
|
"!cl-p-2": h.inputType === "checkbox" || h.inputType === "radio",
|
|
1490
|
-
"cl-p-3 cl-rounded-lg": !p(
|
|
1494
|
+
"cl-p-3 cl-rounded-lg": !p(ke)(h.inputType),
|
|
1491
1495
|
[`${h.inputSpecificClasses}`]: h.inputSpecificClasses !== ""
|
|
1492
1496
|
}],
|
|
1493
1497
|
style: oe(),
|
|
@@ -1495,8 +1499,8 @@ const $t = { class: "cl-flex cl-justify-between" }, kt = { class: "cl-w-full" },
|
|
|
1495
1499
|
disabled: h.disabled,
|
|
1496
1500
|
min: h.min,
|
|
1497
1501
|
max: h.max,
|
|
1498
|
-
minlength: p(
|
|
1499
|
-
maxlength: p(
|
|
1502
|
+
minlength: p(Je)(h.inputType) ? h.min : 0,
|
|
1503
|
+
maxlength: p(Je)(h.inputType) ? h.max : 0,
|
|
1500
1504
|
step: h.step,
|
|
1501
1505
|
placeholder: i.value,
|
|
1502
1506
|
accept: h.fileExtensions,
|
|
@@ -1505,63 +1509,63 @@ const $t = { class: "cl-flex cl-justify-between" }, kt = { class: "cl-w-full" },
|
|
|
1505
1509
|
onClick: N[1] || (N[1] = (R) => J(R)),
|
|
1506
1510
|
onFocus: N[2] || (N[2] = (R) => e("focus")),
|
|
1507
1511
|
onBlur: N[3] || (N[3] = K((R) => {
|
|
1508
|
-
|
|
1512
|
+
g(), A();
|
|
1509
1513
|
}, ["self"])),
|
|
1510
|
-
onMousewheelPassive:
|
|
1514
|
+
onMousewheelPassive: W,
|
|
1511
1515
|
onInput: N[4] || (N[4] = (R) => {
|
|
1512
|
-
e("input", R, p(
|
|
1516
|
+
e("input", R, p(Ze)(R, h.inputType));
|
|
1513
1517
|
}),
|
|
1514
|
-
onChange:
|
|
1518
|
+
onChange: $e
|
|
1515
1519
|
}), null, 16, _t)), [
|
|
1516
|
-
[ul,
|
|
1517
|
-
]) : p(
|
|
1520
|
+
[ul, v.value]
|
|
1521
|
+
]) : p(Ke)(h.inputType) ? (u(), z(p(ct), ie({ key: 1 }, h.$attrs, {
|
|
1518
1522
|
ref_key: "inputElement",
|
|
1519
1523
|
ref: n,
|
|
1520
|
-
date:
|
|
1521
|
-
"onUpdate:date": N[5] || (N[5] = (R) =>
|
|
1524
|
+
date: b.value,
|
|
1525
|
+
"onUpdate:date": N[5] || (N[5] = (R) => b.value = R),
|
|
1522
1526
|
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", {
|
|
1523
1527
|
"hover:cl-border-grey-3": !h.disabled,
|
|
1524
|
-
"!cl-border-danger-default": !
|
|
1525
|
-
"!cl-border-primary-default":
|
|
1528
|
+
"!cl-border-danger-default": !O.value,
|
|
1529
|
+
"!cl-border-primary-default": O.value && h.highlightWhenValid
|
|
1526
1530
|
}],
|
|
1527
1531
|
disabled: h.disabled,
|
|
1528
1532
|
type: p(wt)(h.inputType),
|
|
1529
1533
|
min: m.value,
|
|
1530
1534
|
max: $.value,
|
|
1531
|
-
onBlur: K(
|
|
1535
|
+
onBlur: K(g, ["self"]),
|
|
1532
1536
|
onFocus: N[6] || (N[6] = (R) => e("focus"))
|
|
1533
|
-
}), null, 16, ["date", "class", "disabled", "type", "min", "max", "onBlur"])) : h.inputType === "range" && typeof
|
|
1534
|
-
|
|
1537
|
+
}), null, 16, ["date", "class", "disabled", "type", "min", "max", "onBlur"])) : h.inputType === "range" && typeof v.value == "number" ? (u(), y("div", St, [
|
|
1538
|
+
T(p(bt), {
|
|
1535
1539
|
ref_key: "inputElement",
|
|
1536
1540
|
ref: n,
|
|
1537
|
-
value:
|
|
1538
|
-
"onUpdate:value": N[7] || (N[7] = (R) =>
|
|
1541
|
+
value: v.value,
|
|
1542
|
+
"onUpdate:value": N[7] || (N[7] = (R) => v.value = R),
|
|
1539
1543
|
min: c.value,
|
|
1540
1544
|
max: k.value,
|
|
1541
1545
|
step: h.step,
|
|
1542
1546
|
disabled: h.disabled,
|
|
1543
1547
|
"show-numeric-input": !1,
|
|
1544
|
-
onBlur: K(
|
|
1548
|
+
onBlur: K(g, ["self"]),
|
|
1545
1549
|
onFocus: N[8] || (N[8] = (R) => e("focus"))
|
|
1546
1550
|
}, null, 8, ["value", "min", "max", "step", "disabled", "onBlur"])
|
|
1547
1551
|
])) : M("", !0),
|
|
1548
|
-
|
|
1552
|
+
T(ge, {
|
|
1549
1553
|
name: "fade",
|
|
1550
1554
|
duration: 300
|
|
1551
1555
|
}, {
|
|
1552
|
-
default:
|
|
1553
|
-
h.inputType === "number" && !h.disabled && h.showArrows ?
|
|
1556
|
+
default: L(() => [
|
|
1557
|
+
h.inputType === "number" && !h.disabled && h.showArrows ? x((u(), y("div", Ot, [
|
|
1554
1558
|
f("div", Et, [
|
|
1555
|
-
|
|
1559
|
+
T(p(q), {
|
|
1556
1560
|
icon: "ph:caret-up-bold",
|
|
1557
1561
|
class: "cl-bg-link-default cl-rounded-md cl-text-sm cl-text-white hover:cl-bg-link-light hover:cl-cursor-pointer",
|
|
1558
|
-
onClick:
|
|
1562
|
+
onClick: fe,
|
|
1559
1563
|
onMousedown: N[9] || (N[9] = K(() => {
|
|
1560
1564
|
}, ["prevent"]))
|
|
1561
1565
|
})
|
|
1562
1566
|
]),
|
|
1563
1567
|
f("div", At, [
|
|
1564
|
-
|
|
1568
|
+
T(p(q), {
|
|
1565
1569
|
icon: "ph:caret-down-bold",
|
|
1566
1570
|
class: "cl-bg-link-default cl-rounded-md cl-text-sm cl-text-white hover:cl-bg-link-light hover:cl-cursor-pointer",
|
|
1567
1571
|
onClick: he,
|
|
@@ -1570,18 +1574,18 @@ const $t = { class: "cl-flex cl-justify-between" }, kt = { class: "cl-w-full" },
|
|
|
1570
1574
|
})
|
|
1571
1575
|
])
|
|
1572
1576
|
], 512)), [
|
|
1573
|
-
[
|
|
1577
|
+
[U, a.value]
|
|
1574
1578
|
]) : M("", !0)
|
|
1575
1579
|
]),
|
|
1576
1580
|
_: 1
|
|
1577
1581
|
})
|
|
1578
1582
|
], 32),
|
|
1579
|
-
|
|
1580
|
-
!
|
|
1583
|
+
O.value && C.value ? (u(), y("div", jt, _(C.value), 1)) : M("", !0),
|
|
1584
|
+
!O.value && te.value.length > 0 && h.showValidationMessages ? (u(), y("div", Mt, _(te.value), 1)) : M("", !0)
|
|
1581
1585
|
]));
|
|
1582
1586
|
}
|
|
1583
1587
|
});
|
|
1584
|
-
const
|
|
1588
|
+
const re = /* @__PURE__ */ de(It, [["__scopeId", "data-v-90684093"]]), Nt = { 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" }, qt = ["onKeypress"], Dt = { class: "cl-overflow-y-auto cl-overscroll-y-none cl-p-2 cl-w-full" }, Rt = {
|
|
1585
1589
|
inheritAttrs: !1
|
|
1586
1590
|
}, sl = /* @__PURE__ */ D({
|
|
1587
1591
|
...Rt,
|
|
@@ -1592,7 +1596,7 @@ const ce = /* @__PURE__ */ fe(It, [["__scopeId", "data-v-87d84f9d"]]), Nt = { cl
|
|
|
1592
1596
|
size: { default: "medium" }
|
|
1593
1597
|
},
|
|
1594
1598
|
setup(t) {
|
|
1595
|
-
const o = t, e =
|
|
1599
|
+
const o = t, e = S(!1);
|
|
1596
1600
|
function l() {
|
|
1597
1601
|
e.value = !0, document.addEventListener("keydown", a);
|
|
1598
1602
|
}
|
|
@@ -1602,13 +1606,13 @@ const ce = /* @__PURE__ */ fe(It, [["__scopeId", "data-v-87d84f9d"]]), Nt = { cl
|
|
|
1602
1606
|
function a(r) {
|
|
1603
1607
|
r.key === "Escape" && n();
|
|
1604
1608
|
}
|
|
1605
|
-
return (r, s) => (u(),
|
|
1606
|
-
j(r.$slots, "trigger", ee(
|
|
1607
|
-
(u(),
|
|
1608
|
-
|
|
1609
|
-
default:
|
|
1610
|
-
|
|
1611
|
-
f("div",
|
|
1609
|
+
return (r, s) => (u(), y(B, null, [
|
|
1610
|
+
j(r.$slots, "trigger", ee(se({ open: l }))),
|
|
1611
|
+
(u(), z(Be, { to: "body" }, [
|
|
1612
|
+
T(ge, { name: "fade" }, {
|
|
1613
|
+
default: L(() => [
|
|
1614
|
+
x(f("div", Nt, [
|
|
1615
|
+
f("div", ie(r.$attrs, {
|
|
1612
1616
|
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", {
|
|
1613
1617
|
"lg:cl-w-2/12 cl-w-10/12": r.size === "x-small",
|
|
1614
1618
|
"cl-w-6/12": r.size === "small",
|
|
@@ -1616,18 +1620,18 @@ const ce = /* @__PURE__ */ fe(It, [["__scopeId", "data-v-87d84f9d"]]), Nt = { cl
|
|
|
1616
1620
|
"cl-w-10/12": r.size === "large"
|
|
1617
1621
|
}]
|
|
1618
1622
|
}), [
|
|
1619
|
-
|
|
1623
|
+
x(f("div", {
|
|
1620
1624
|
class: I(["cl-absolute cl-cursor-pointer cl-right-4 cl-top-4 cl-transition-colors cl-w-3", {
|
|
1621
1625
|
"cl-text-white hover:cl-text-off-white": r.headerColour === "secondary" || r.headerColour === "primary",
|
|
1622
1626
|
"cl-text-black hover:cl-text-grey-7": r.headerColour === "white"
|
|
1623
1627
|
}]),
|
|
1624
1628
|
tabindex: 0,
|
|
1625
|
-
onKeypress:
|
|
1629
|
+
onKeypress: Te(n, ["enter"]),
|
|
1626
1630
|
onClick: n
|
|
1627
1631
|
}, [
|
|
1628
|
-
|
|
1632
|
+
T(p(q), { icon: "ph:x" })
|
|
1629
1633
|
], 42, qt), [
|
|
1630
|
-
[
|
|
1634
|
+
[U, !r.preventClose]
|
|
1631
1635
|
]),
|
|
1632
1636
|
f("div", {
|
|
1633
1637
|
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", {
|
|
@@ -1639,12 +1643,12 @@ const ce = /* @__PURE__ */ fe(It, [["__scopeId", "data-v-87d84f9d"]]), Nt = { cl
|
|
|
1639
1643
|
j(r.$slots, "title")
|
|
1640
1644
|
], 2),
|
|
1641
1645
|
f("div", Dt, [
|
|
1642
|
-
j(r.$slots, "default", ee(
|
|
1646
|
+
j(r.$slots, "default", ee(se({ close: n })))
|
|
1643
1647
|
]),
|
|
1644
|
-
j(r.$slots, "footer", ee(
|
|
1648
|
+
j(r.$slots, "footer", ee(se({ close: n })))
|
|
1645
1649
|
], 16)
|
|
1646
1650
|
], 512), [
|
|
1647
|
-
[
|
|
1651
|
+
[U, e.value]
|
|
1648
1652
|
])
|
|
1649
1653
|
]),
|
|
1650
1654
|
_: 3
|
|
@@ -1652,7 +1656,7 @@ const ce = /* @__PURE__ */ fe(It, [["__scopeId", "data-v-87d84f9d"]]), Nt = { cl
|
|
|
1652
1656
|
]))
|
|
1653
1657
|
], 64));
|
|
1654
1658
|
}
|
|
1655
|
-
}),
|
|
1659
|
+
}), xt = { class: "cl-bg-grey-0 cl-flex cl-p-1 cl-text-left" }, Ut = {
|
|
1656
1660
|
key: 0,
|
|
1657
1661
|
class: "cl-w-1/2"
|
|
1658
1662
|
}, Se = /* @__PURE__ */ D({
|
|
@@ -1666,31 +1670,31 @@ const ce = /* @__PURE__ */ fe(It, [["__scopeId", "data-v-87d84f9d"]]), Nt = { cl
|
|
|
1666
1670
|
"clear-object": null
|
|
1667
1671
|
},
|
|
1668
1672
|
setup(t) {
|
|
1669
|
-
return (o, e) => (u(),
|
|
1670
|
-
o.additionalText !== "" ? (u(),
|
|
1673
|
+
return (o, e) => (u(), y("div", xt, [
|
|
1674
|
+
o.additionalText !== "" ? (u(), y("div", Ut, _(o.additionalText), 1)) : M("", !0),
|
|
1671
1675
|
f("div", {
|
|
1672
1676
|
class: I({
|
|
1673
1677
|
"cl-w-1/2": o.additionalText !== "",
|
|
1674
1678
|
"cl-w-full": o.additionalText === ""
|
|
1675
1679
|
})
|
|
1676
|
-
},
|
|
1677
|
-
|
|
1680
|
+
}, _(o.text), 3),
|
|
1681
|
+
x(f("div", {
|
|
1678
1682
|
class: "cl-cursor-pointer cl-float-right",
|
|
1679
1683
|
onMousedown: e[0] || (e[0] = (l) => o.$emit("clear-object"))
|
|
1680
1684
|
}, [
|
|
1681
|
-
|
|
1685
|
+
T(p(q), {
|
|
1682
1686
|
class: "cl-mt-1 cl-transition-colors hover:cl-text-link-default",
|
|
1683
1687
|
icon: "ph:x"
|
|
1684
1688
|
})
|
|
1685
1689
|
], 544), [
|
|
1686
|
-
[
|
|
1690
|
+
[U, o.showClearButton]
|
|
1687
1691
|
])
|
|
1688
1692
|
]));
|
|
1689
1693
|
}
|
|
1690
|
-
}),
|
|
1694
|
+
}), Bt = {
|
|
1691
1695
|
key: 0,
|
|
1692
1696
|
class: "cl-w-1/2"
|
|
1693
|
-
}, zt = { class: "cl-float-right cl-py-1" },
|
|
1697
|
+
}, zt = { class: "cl-float-right cl-py-1" }, Qe = /* @__PURE__ */ D({
|
|
1694
1698
|
__name: "cl-ui-combo-box-selectable",
|
|
1695
1699
|
props: {
|
|
1696
1700
|
isCreateNewOption: { type: Boolean, default: !1 },
|
|
@@ -1705,13 +1709,13 @@ const ce = /* @__PURE__ */ fe(It, [["__scopeId", "data-v-87d84f9d"]]), Nt = { cl
|
|
|
1705
1709
|
"option-highlighted": null
|
|
1706
1710
|
},
|
|
1707
1711
|
setup(t, { emit: o }) {
|
|
1708
|
-
const e = t, l =
|
|
1712
|
+
const e = t, l = E(() => {
|
|
1709
1713
|
var d;
|
|
1710
1714
|
return ((d = e.option) == null ? void 0 : d.name) ?? e.text;
|
|
1711
|
-
}), n =
|
|
1715
|
+
}), n = E(() => {
|
|
1712
1716
|
var d;
|
|
1713
1717
|
return ((d = e.option) == null ? void 0 : d.parentName) ?? "";
|
|
1714
|
-
}), a =
|
|
1718
|
+
}), a = S(!1);
|
|
1715
1719
|
function r() {
|
|
1716
1720
|
var d;
|
|
1717
1721
|
e.isCreateNewOption === !0 ? o("create-object") : o("select-object", (d = e.option) == null ? void 0 : d.id);
|
|
@@ -1722,27 +1726,27 @@ const ce = /* @__PURE__ */ fe(It, [["__scopeId", "data-v-87d84f9d"]]), Nt = { cl
|
|
|
1722
1726
|
function i() {
|
|
1723
1727
|
e.selectedIndex === e.index ? a.value = !0 : a.value = !1;
|
|
1724
1728
|
}
|
|
1725
|
-
return
|
|
1726
|
-
var
|
|
1727
|
-
return u(),
|
|
1728
|
-
class: I(["cl-cursor-pointer cl-duration-75 cl-flex cl-p-1 cl-transition-colors", {
|
|
1729
|
+
return H(() => e.selectedIndex, () => i()), (d, v) => {
|
|
1730
|
+
var b, m;
|
|
1731
|
+
return u(), y("div", {
|
|
1732
|
+
class: I(["cl-cursor-pointer cl-duration-75 cl-flex cl-p-1 cl-text-left cl-transition-colors", {
|
|
1729
1733
|
"cl-bg-white": a.value === !1,
|
|
1730
1734
|
"cl-bg-link-light cl-text-white cl-opacity-90": a.value && d.isCreateNewOption === !1,
|
|
1731
1735
|
"cl-bg-primary-default cl-text-white cl-opacity-90": a.value && d.isCreateNewOption
|
|
1732
1736
|
}]),
|
|
1733
1737
|
onMousedown: r,
|
|
1734
|
-
onMousemove:
|
|
1735
|
-
onMouseleave:
|
|
1738
|
+
onMousemove: v[0] || (v[0] = ($) => s(!0)),
|
|
1739
|
+
onMouseleave: v[1] || (v[1] = ($) => s(!1))
|
|
1736
1740
|
}, [
|
|
1737
|
-
d.option !== null && ((
|
|
1741
|
+
d.option !== null && ((b = d.option) == null ? void 0 : b.parentId) !== 0 && ((m = d.option) == null ? void 0 : m.parentId) !== void 0 ? (u(), y("div", Bt, _(n.value), 1)) : M("", !0),
|
|
1738
1742
|
f("div", {
|
|
1739
1743
|
class: I({
|
|
1740
1744
|
"cl-w-1/2": n.value !== "",
|
|
1741
1745
|
"cl-w-full": n.value === ""
|
|
1742
1746
|
})
|
|
1743
|
-
},
|
|
1744
|
-
|
|
1745
|
-
|
|
1747
|
+
}, _(l.value), 3),
|
|
1748
|
+
x(f("div", zt, [
|
|
1749
|
+
T(p(q), {
|
|
1746
1750
|
class: I(["cl-transition-colors", {
|
|
1747
1751
|
"cl-text-white": a.value,
|
|
1748
1752
|
"cl-text-black ": !a.value
|
|
@@ -1750,7 +1754,7 @@ const ce = /* @__PURE__ */ fe(It, [["__scopeId", "data-v-87d84f9d"]]), Nt = { cl
|
|
|
1750
1754
|
icon: "ph:plus"
|
|
1751
1755
|
}, null, 8, ["class"])
|
|
1752
1756
|
], 512), [
|
|
1753
|
-
[
|
|
1757
|
+
[U, d.isCreateNewOption]
|
|
1754
1758
|
])
|
|
1755
1759
|
], 34);
|
|
1756
1760
|
};
|
|
@@ -1776,130 +1780,130 @@ const ce = /* @__PURE__ */ fe(It, [["__scopeId", "data-v-87d84f9d"]]), Nt = { cl
|
|
|
1776
1780
|
"hide-dropdown": null
|
|
1777
1781
|
},
|
|
1778
1782
|
setup(t, { emit: o }) {
|
|
1779
|
-
const e = t, { t: l } = le(), n =
|
|
1780
|
-
function d(
|
|
1781
|
-
(
|
|
1783
|
+
const e = t, { t: l } = le(), n = S(""), a = S(!1), r = S(-1), s = E(() => a.value ? -1 : 0), i = S();
|
|
1784
|
+
function d(w) {
|
|
1785
|
+
(w === void 0 || (w == null ? void 0 : w.code.startsWith("Arrow")) === !1 && (w == null ? void 0 : w.code.startsWith("Control")) === !1 && (w == null ? void 0 : w.code.startsWith("Shift")) === !1 && (w == null ? void 0 : w.code.startsWith("Tab")) === !1 && (w == null ? void 0 : w.code) !== "Enter") && (o("search", n.value), r.value = -2);
|
|
1782
1786
|
}
|
|
1783
|
-
function
|
|
1784
|
-
o("select-object",
|
|
1787
|
+
function v(w) {
|
|
1788
|
+
o("select-object", w);
|
|
1785
1789
|
}
|
|
1786
|
-
function
|
|
1790
|
+
function b() {
|
|
1787
1791
|
o("create-object", n.value), m();
|
|
1788
1792
|
}
|
|
1789
1793
|
function m() {
|
|
1790
1794
|
o("hide-dropdown");
|
|
1791
1795
|
}
|
|
1792
|
-
function $(
|
|
1793
|
-
r.value < e.results.length - 1 ? (r.value === -2 && n.value === "" && r.value++, r.value++) : r.value =
|
|
1796
|
+
function $(w) {
|
|
1797
|
+
r.value < e.results.length - 1 ? (r.value === -2 && n.value === "" && r.value++, r.value++) : r.value = w, O();
|
|
1794
1798
|
}
|
|
1795
|
-
function c(
|
|
1796
|
-
r.value >
|
|
1799
|
+
function c(w) {
|
|
1800
|
+
r.value > w ? r.value-- : r.value = e.results.length - 1, O();
|
|
1797
1801
|
}
|
|
1798
1802
|
function k() {
|
|
1799
|
-
r.value >= 0 && e.results !== void 0 ?
|
|
1803
|
+
r.value >= 0 && e.results !== void 0 ? v(e.results[r.value].id) : r.value === -1 && b();
|
|
1800
1804
|
}
|
|
1801
|
-
function
|
|
1802
|
-
if (
|
|
1803
|
-
const
|
|
1805
|
+
function C(w) {
|
|
1806
|
+
if (w.key === "Tab" && w.shiftKey === !0) {
|
|
1807
|
+
const P = document.getElementsByTagName("input");
|
|
1804
1808
|
let oe = -1;
|
|
1805
|
-
for (let J = 0; J <
|
|
1806
|
-
|
|
1807
|
-
oe >= 0 && (
|
|
1809
|
+
for (let J = 0; J < P.length; J++)
|
|
1810
|
+
P[J] === w.target && (oe = J - 1);
|
|
1811
|
+
oe >= 0 && (P[oe].focus(), m());
|
|
1808
1812
|
}
|
|
1809
1813
|
}
|
|
1810
|
-
function
|
|
1811
|
-
var
|
|
1812
|
-
e.results && e.results.length > 1 && ((
|
|
1814
|
+
function O() {
|
|
1815
|
+
var w;
|
|
1816
|
+
e.results && e.results.length > 1 && ((w = i.value) == null || w.scrollTo(0, (r.value + 1) * 34 - 34 * 2));
|
|
1813
1817
|
}
|
|
1814
|
-
function
|
|
1815
|
-
let
|
|
1816
|
-
e.results !== null && e.results.length === 1 && (
|
|
1818
|
+
function V() {
|
|
1819
|
+
let w = !1;
|
|
1820
|
+
e.results !== null && e.results.length === 1 && (w = n.value.toUpperCase().trim() === e.results[0].name.toUpperCase().trim()), a.value = e.canCreateNewObject === !0 && e.errorMessage === "" && n.value.trim() !== "" && w === !1;
|
|
1817
1821
|
}
|
|
1818
|
-
function te(
|
|
1819
|
-
r.value =
|
|
1822
|
+
function te(w) {
|
|
1823
|
+
r.value = w;
|
|
1820
1824
|
}
|
|
1821
|
-
function
|
|
1825
|
+
function ue() {
|
|
1822
1826
|
e.isVisible === !0 && (n.value = "", d(), be(() => {
|
|
1823
|
-
var
|
|
1824
|
-
return (
|
|
1827
|
+
var w, P;
|
|
1828
|
+
return (P = (w = i.value) == null ? void 0 : w.querySelector("input")) == null ? void 0 : P.focus();
|
|
1825
1829
|
}));
|
|
1826
1830
|
}
|
|
1827
|
-
return
|
|
1828
|
-
var
|
|
1829
|
-
return (
|
|
1831
|
+
return H(() => e.results, () => V()), H(() => e.errorMessage, () => V()), H(() => e.isVisible, () => ue()), Ce(() => {
|
|
1832
|
+
var w;
|
|
1833
|
+
return (w = i.value) == null ? void 0 : w.addEventListener("keydown", C);
|
|
1830
1834
|
}), Ae(() => {
|
|
1831
|
-
var
|
|
1832
|
-
return (
|
|
1833
|
-
}), (
|
|
1835
|
+
var w;
|
|
1836
|
+
return (w = i.value) == null ? void 0 : w.removeEventListener("keydown", C);
|
|
1837
|
+
}), (w, P) => {
|
|
1834
1838
|
var oe;
|
|
1835
|
-
return u(),
|
|
1839
|
+
return u(), y("div", {
|
|
1836
1840
|
ref_key: "container",
|
|
1837
1841
|
ref: i,
|
|
1838
1842
|
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",
|
|
1839
1843
|
onKeydown: [
|
|
1840
|
-
|
|
1841
|
-
|
|
1844
|
+
P[2] || (P[2] = Te(K((J) => c(s.value), ["prevent", "stop"]), ["up"])),
|
|
1845
|
+
P[3] || (P[3] = Te(K((J) => $(s.value), ["prevent", "stop"]), ["down"]))
|
|
1842
1846
|
],
|
|
1843
|
-
onKeyup:
|
|
1847
|
+
onKeyup: Te(K(k, ["prevent", "stop"]), ["enter"])
|
|
1844
1848
|
}, [
|
|
1845
1849
|
f("div", Pt, [
|
|
1846
|
-
|
|
1850
|
+
T(re, {
|
|
1847
1851
|
modelValue: n.value,
|
|
1848
|
-
"onUpdate:modelValue":
|
|
1852
|
+
"onUpdate:modelValue": P[0] || (P[0] = (J) => n.value = J),
|
|
1849
1853
|
class: "!cl-mr-0 cl-mb-1 cl-w-full",
|
|
1850
1854
|
"input-type": "text",
|
|
1851
|
-
"placeholder-text": p(l)("comboBox.searchHint", { object:
|
|
1855
|
+
"placeholder-text": p(l)("comboBox.searchHint", { object: w.objectType }),
|
|
1852
1856
|
onKeyup: d,
|
|
1853
1857
|
onBlur: m
|
|
1854
1858
|
}, null, 8, ["modelValue", "placeholder-text"]),
|
|
1855
|
-
|
|
1856
|
-
[
|
|
1859
|
+
x(T(je, { class: "cl-absolute cl-ml-2 cl-mt-11" }, null, 512), [
|
|
1860
|
+
[U, w.loading]
|
|
1857
1861
|
])
|
|
1858
1862
|
]),
|
|
1859
|
-
|
|
1863
|
+
w.currentObjectName !== "" ? (u(), z(Se, {
|
|
1860
1864
|
key: 0,
|
|
1861
|
-
"show-clear-button":
|
|
1862
|
-
text:
|
|
1863
|
-
onClearObject:
|
|
1865
|
+
"show-clear-button": w.canClearSelectedObject,
|
|
1866
|
+
text: w.currentObjectName,
|
|
1867
|
+
onClearObject: P[1] || (P[1] = (J) => w.$emit("clear-object"))
|
|
1864
1868
|
}, null, 8, ["show-clear-button", "text"])) : M("", !0),
|
|
1865
|
-
|
|
1869
|
+
w.objectParentType !== "" && w.results !== void 0 && w.results.length > 0 && w.errorMessage === "" ? (u(), z(Se, {
|
|
1866
1870
|
key: 1,
|
|
1867
|
-
text:
|
|
1868
|
-
"additional-text":
|
|
1871
|
+
text: w.objectType,
|
|
1872
|
+
"additional-text": w.objectParentType,
|
|
1869
1873
|
class: "cl-bg-grey-2 cl-mt-1"
|
|
1870
1874
|
}, null, 8, ["text", "additional-text"])) : M("", !0),
|
|
1871
|
-
|
|
1875
|
+
w.results !== null && ((oe = w.results) == null ? void 0 : oe.length) === 0 && n.value.trim() !== "" && w.canCreateNewObject === !1 && w.errorMessage === "" ? (u(), z(Se, {
|
|
1872
1876
|
key: 2,
|
|
1873
1877
|
text: p(l)("comboBox.noResults", { value: n.value })
|
|
1874
1878
|
}, null, 8, ["text"])) : M("", !0),
|
|
1875
|
-
|
|
1879
|
+
w.errorMessage !== "" ? (u(), z(Se, {
|
|
1876
1880
|
key: 3,
|
|
1877
1881
|
class: "!cl-bg-danger-light cl-border-danger-light cl-rounded cl-text-danger-dark",
|
|
1878
|
-
text: p(l)("comboBox.errorMessage", { error:
|
|
1882
|
+
text: p(l)("comboBox.errorMessage", { error: w.errorMessage })
|
|
1879
1883
|
}, null, 8, ["text"])) : M("", !0),
|
|
1880
|
-
a.value ? (u(),
|
|
1884
|
+
a.value ? (u(), z(Qe, {
|
|
1881
1885
|
key: 4,
|
|
1882
1886
|
"is-create-new-option": !0,
|
|
1883
|
-
text: p(l)("comboBox.addPrompt", { value: n.value, object:
|
|
1887
|
+
text: p(l)("comboBox.addPrompt", { value: n.value, object: w.objectType }),
|
|
1884
1888
|
index: -1,
|
|
1885
1889
|
"selected-index": r.value,
|
|
1886
|
-
onCreateObject:
|
|
1890
|
+
onCreateObject: b,
|
|
1887
1891
|
onOptionHighlighted: te
|
|
1888
1892
|
}, null, 8, ["text", "selected-index"])) : M("", !0),
|
|
1889
|
-
|
|
1890
|
-
(u(!0),
|
|
1891
|
-
key:
|
|
1893
|
+
w.errorMessage === "" && w.results !== null ? (u(), y("div", Ft, [
|
|
1894
|
+
(u(!0), y(B, null, Y(w.results, (J, fe) => (u(), z(Qe, {
|
|
1895
|
+
key: fe,
|
|
1892
1896
|
option: J,
|
|
1893
|
-
index:
|
|
1897
|
+
index: fe,
|
|
1894
1898
|
"selected-index": r.value,
|
|
1895
|
-
onSelectObject:
|
|
1899
|
+
onSelectObject: v,
|
|
1896
1900
|
onOptionHighlighted: te
|
|
1897
1901
|
}, null, 8, ["option", "index", "selected-index"]))), 128))
|
|
1898
1902
|
])) : M("", !0)
|
|
1899
1903
|
], 40, Lt);
|
|
1900
1904
|
};
|
|
1901
1905
|
}
|
|
1902
|
-
}), Gt = { class: "cl-flex" }, Ht = { class: "cl-relative cl-right-20 cl-top-0.5" }, Wt = { class: "cl-absolute cl-flex cl-float-right cl-font-semibold cl-mt-2 cl-text-danger-default cl-text-sm" }, Jt = { class: "cl-ml-4 cl-w-11/12" }, Kt = { class: "cl-p-2 cl-text-right cl-w-full" }, Zt = /* @__PURE__ */ D({
|
|
1906
|
+
}), Gt = { class: "cl-flex" }, Ht = { class: "cl-relative cl-right-20 cl-top-0.5" }, Wt = { class: "cl-absolute cl-flex cl-float-right cl-font-semibold cl-mt-2 cl-text-danger-default cl-text-sm cl-z-10" }, Jt = { class: "cl-ml-4 cl-w-11/12" }, Kt = { class: "cl-p-2 cl-text-right cl-w-full" }, Zt = /* @__PURE__ */ D({
|
|
1903
1907
|
__name: "cl-ui-combo-box",
|
|
1904
1908
|
props: {
|
|
1905
1909
|
loading: { type: Boolean, default: !1 },
|
|
@@ -1925,220 +1929,225 @@ const ce = /* @__PURE__ */ fe(It, [["__scopeId", "data-v-87d84f9d"]]), Nt = { cl
|
|
|
1925
1929
|
"update:current-object": null
|
|
1926
1930
|
},
|
|
1927
1931
|
setup(t, { expose: o, emit: e }) {
|
|
1928
|
-
const l = t, { t: n } = le(), a =
|
|
1932
|
+
const l = t, { t: n } = le(), a = S(!1), r = E({
|
|
1929
1933
|
get: () => l.currentObject,
|
|
1930
|
-
set: (
|
|
1931
|
-
}), s =
|
|
1932
|
-
function c(
|
|
1933
|
-
|
|
1934
|
+
set: (g) => e("update:current-object", g)
|
|
1935
|
+
}), s = S(null), i = S(null), d = E(() => fe()), v = S(""), b = S(""), m = S(), $ = S(!0);
|
|
1936
|
+
function c(g) {
|
|
1937
|
+
var A;
|
|
1938
|
+
l.disabled || (typeof g < "u" ? a.value = g : a.value = !a.value), (A = s.value) == null || A.blur();
|
|
1934
1939
|
}
|
|
1935
|
-
function k(
|
|
1936
|
-
|
|
1940
|
+
function k(g) {
|
|
1941
|
+
v.value = g, e("search", g);
|
|
1937
1942
|
}
|
|
1938
|
-
function
|
|
1939
|
-
|
|
1943
|
+
function C(g) {
|
|
1944
|
+
b.value = g, e("search-parent", g);
|
|
1940
1945
|
}
|
|
1941
|
-
function
|
|
1946
|
+
function O() {
|
|
1942
1947
|
r.value = null, c(!1);
|
|
1943
1948
|
}
|
|
1944
|
-
function
|
|
1945
|
-
const
|
|
1946
|
-
r.value =
|
|
1949
|
+
function V(g) {
|
|
1950
|
+
const A = te(g);
|
|
1951
|
+
r.value = A, c(!1);
|
|
1947
1952
|
}
|
|
1948
|
-
function te(
|
|
1949
|
-
let
|
|
1953
|
+
function te(g) {
|
|
1954
|
+
let A = null;
|
|
1950
1955
|
if (l.results !== null) {
|
|
1951
|
-
for (let
|
|
1952
|
-
if (l.results[
|
|
1953
|
-
|
|
1956
|
+
for (let W = 0; W < l.results.length; W++)
|
|
1957
|
+
if (l.results[W].id === g) {
|
|
1958
|
+
A = l.results[W];
|
|
1954
1959
|
break;
|
|
1955
1960
|
}
|
|
1956
1961
|
}
|
|
1957
|
-
return
|
|
1962
|
+
return A;
|
|
1958
1963
|
}
|
|
1959
|
-
function
|
|
1960
|
-
var
|
|
1964
|
+
function ue() {
|
|
1965
|
+
var g;
|
|
1961
1966
|
m.value = {
|
|
1962
|
-
name:
|
|
1963
|
-
parentId: ((
|
|
1967
|
+
name: v.value,
|
|
1968
|
+
parentId: ((g = i.value) == null ? void 0 : g.id) ?? 0
|
|
1964
1969
|
}, e("create-object", m.value);
|
|
1965
1970
|
}
|
|
1966
|
-
function
|
|
1971
|
+
function w() {
|
|
1967
1972
|
m.value = {
|
|
1968
|
-
name:
|
|
1973
|
+
name: b.value,
|
|
1969
1974
|
parentId: 0
|
|
1970
1975
|
}, e("create-parent-object", m.value);
|
|
1971
1976
|
}
|
|
1972
|
-
function
|
|
1973
|
-
var
|
|
1974
|
-
(
|
|
1975
|
-
message: n("comboBox.createFailed", { name:
|
|
1977
|
+
function P() {
|
|
1978
|
+
var g, A;
|
|
1979
|
+
(g = l.objectCreatedResponse) != null && g.error ? Ge({
|
|
1980
|
+
message: n("comboBox.createFailed", { name: v.value, error: l.objectCreatedResponse.error }),
|
|
1976
1981
|
colour: "danger",
|
|
1977
1982
|
duration: 1e4
|
|
1978
|
-
}) : (
|
|
1983
|
+
}) : (A = l.objectCreatedResponse) != null && A.id && J();
|
|
1979
1984
|
}
|
|
1980
1985
|
function oe() {
|
|
1981
|
-
var
|
|
1982
|
-
(
|
|
1986
|
+
var g;
|
|
1987
|
+
(g = l.parentObjectCreatedResponse) != null && g.id && (i.value = {
|
|
1983
1988
|
id: l.parentObjectCreatedResponse.id,
|
|
1984
1989
|
name: l.parentObjectCreatedResponse.name ?? ""
|
|
1985
1990
|
});
|
|
1986
1991
|
}
|
|
1987
1992
|
function J() {
|
|
1988
|
-
var
|
|
1989
|
-
|
|
1990
|
-
message: n("comboBox.createSuccessful", { object: l.objectType, name: ((
|
|
1993
|
+
var A, W, F, $e, h;
|
|
1994
|
+
Ge({
|
|
1995
|
+
message: n("comboBox.createSuccessful", { object: l.objectType, name: ((A = l.objectCreatedResponse) == null ? void 0 : A.name) ?? "" }),
|
|
1991
1996
|
colour: "primary",
|
|
1992
1997
|
duration: 1e4
|
|
1993
1998
|
});
|
|
1994
|
-
let
|
|
1995
|
-
i.value && i.value.id === ((
|
|
1996
|
-
id: ((
|
|
1997
|
-
name: ((
|
|
1998
|
-
parentId: ((
|
|
1999
|
-
parentName:
|
|
1999
|
+
let g = "";
|
|
2000
|
+
i.value && i.value.id === ((W = l.objectCreatedResponse) == null ? void 0 : W.parentId) && (g = i.value.name), r.value = {
|
|
2001
|
+
id: ((F = l.objectCreatedResponse) == null ? void 0 : F.id) ?? 0,
|
|
2002
|
+
name: (($e = l.objectCreatedResponse) == null ? void 0 : $e.name) ?? "",
|
|
2003
|
+
parentId: ((h = l.objectCreatedResponse) == null ? void 0 : h.parentId) ?? 0,
|
|
2004
|
+
parentName: g
|
|
2000
2005
|
};
|
|
2001
2006
|
}
|
|
2002
|
-
function
|
|
2003
|
-
let
|
|
2004
|
-
return r.value && (r.value.parentName ?
|
|
2007
|
+
function fe() {
|
|
2008
|
+
let g = "";
|
|
2009
|
+
return r.value && (r.value.parentName ? g = r.value.parentName + "; " + r.value.name : g = r.value.name), g;
|
|
2005
2010
|
}
|
|
2006
2011
|
function he() {
|
|
2007
|
-
let
|
|
2008
|
-
|
|
2012
|
+
let g = !0;
|
|
2013
|
+
v.value === "" && (g = !1), l.objectParentType !== "" && i.value === null && (g = !1), $.value = g;
|
|
2009
2014
|
}
|
|
2010
|
-
|
|
2015
|
+
H(() => l.objectCreatedResponse, () => P()), H(() => l.parentObjectCreatedResponse, () => oe()), H(() => v.value, () => he()), H(() => i.value, () => he()), o({
|
|
2011
2016
|
focus() {
|
|
2012
|
-
var
|
|
2013
|
-
(
|
|
2017
|
+
var g;
|
|
2018
|
+
(g = s.value) == null || g.focus();
|
|
2014
2019
|
}
|
|
2015
|
-
})
|
|
2016
|
-
|
|
2017
|
-
|
|
2020
|
+
});
|
|
2021
|
+
const ve = S();
|
|
2022
|
+
return Le(ve, () => c(!1)), (g, A) => {
|
|
2023
|
+
const W = el("cl-ui-combo-box", !0);
|
|
2024
|
+
return u(), y("div", {
|
|
2025
|
+
ref_key: "outsideRef",
|
|
2026
|
+
ref: ve
|
|
2027
|
+
}, [
|
|
2018
2028
|
f("div", Gt, [
|
|
2019
|
-
|
|
2029
|
+
T(re, {
|
|
2020
2030
|
ref_key: "inputRef",
|
|
2021
2031
|
ref: s,
|
|
2022
2032
|
modelValue: d.value,
|
|
2023
|
-
"onUpdate:modelValue":
|
|
2024
|
-
class: I(["!cl-
|
|
2025
|
-
"cl-cursor-pointer":
|
|
2033
|
+
"onUpdate:modelValue": A[0] || (A[0] = (F) => d.value = F),
|
|
2034
|
+
class: I(["!cl-mr-0 cl-mb-0 cl-rounded-r-none cl-w-full cl-z-10", {
|
|
2035
|
+
"cl-cursor-pointer": g.disabled === !1
|
|
2026
2036
|
}]),
|
|
2027
2037
|
"input-type": "text",
|
|
2028
|
-
"placeholder-text": p(n)("comboBox.emptyHintText", { object:
|
|
2029
|
-
onFocus:
|
|
2030
|
-
c(
|
|
2038
|
+
"placeholder-text": p(n)("comboBox.emptyHintText", { object: g.objectType }),
|
|
2039
|
+
onFocus: A[1] || (A[1] = (F) => {
|
|
2040
|
+
c(), g.$emit("focus");
|
|
2031
2041
|
})
|
|
2032
2042
|
}, null, 8, ["modelValue", "class", "placeholder-text"]),
|
|
2033
|
-
|
|
2043
|
+
x(f("div", Ht, [
|
|
2034
2044
|
f("div", Wt, [
|
|
2035
|
-
Q(
|
|
2036
|
-
|
|
2045
|
+
Q(_(p(n)("comboBox.required")) + " ", 1),
|
|
2046
|
+
T(p(q), {
|
|
2037
2047
|
class: "cl-ml-1 cl-mt-1",
|
|
2038
2048
|
icon: "ph:warning"
|
|
2039
2049
|
})
|
|
2040
2050
|
])
|
|
2041
2051
|
], 512), [
|
|
2042
|
-
[
|
|
2052
|
+
[U, g.required && g.disabled === !1 && g.currentObject === null]
|
|
2043
2053
|
]),
|
|
2044
|
-
a.value ? (u(),
|
|
2054
|
+
a.value ? (u(), y("div", {
|
|
2045
2055
|
key: 1,
|
|
2046
|
-
class: I(["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", {
|
|
2047
|
-
"cl-cursor-default":
|
|
2048
|
-
"cl-cursor-pointer":
|
|
2056
|
+
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
|
+
"cl-cursor-default": g.disabled,
|
|
2058
|
+
"cl-cursor-pointer": g.disabled === !1
|
|
2049
2059
|
}]),
|
|
2050
|
-
onClick:
|
|
2060
|
+
onClick: A[3] || (A[3] = (F) => c(!1))
|
|
2051
2061
|
}, [
|
|
2052
|
-
|
|
2062
|
+
T(p(q), {
|
|
2053
2063
|
icon: "ph:caret-up-bold",
|
|
2054
2064
|
class: "cl-ml-[5px] cl-mt-[12px]"
|
|
2055
2065
|
})
|
|
2056
|
-
], 2)) : (u(),
|
|
2066
|
+
], 2)) : (u(), y("div", {
|
|
2057
2067
|
key: 0,
|
|
2058
|
-
class: I(["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", {
|
|
2059
|
-
"cl-cursor-default":
|
|
2060
|
-
"cl-cursor-pointer":
|
|
2068
|
+
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
|
+
"cl-cursor-default": g.disabled,
|
|
2070
|
+
"cl-cursor-pointer": g.disabled === !1
|
|
2061
2071
|
}]),
|
|
2062
|
-
onClick:
|
|
2072
|
+
onClick: A[2] || (A[2] = (F) => c(!0))
|
|
2063
2073
|
}, [
|
|
2064
|
-
|
|
2074
|
+
T(p(q), {
|
|
2065
2075
|
icon: "ph:caret-down-bold",
|
|
2066
2076
|
class: "cl-ml-[5px] cl-mt-[12px]"
|
|
2067
2077
|
})
|
|
2068
2078
|
], 2))
|
|
2069
2079
|
]),
|
|
2070
|
-
|
|
2071
|
-
title:
|
|
2072
|
-
Q(
|
|
2080
|
+
T(sl, { size: "x-small" }, {
|
|
2081
|
+
title: L(() => [
|
|
2082
|
+
Q(_(p(n)("comboBox.createTitle", { object: g.objectType })), 1)
|
|
2073
2083
|
]),
|
|
2074
|
-
trigger:
|
|
2075
|
-
|
|
2076
|
-
"can-create-new-object":
|
|
2077
|
-
"can-clear-selected-object":
|
|
2078
|
-
loading:
|
|
2079
|
-
results:
|
|
2080
|
-
"object-type":
|
|
2081
|
-
"object-parent-type":
|
|
2082
|
-
"error-message":
|
|
2084
|
+
trigger: L(({ open: F }) => [
|
|
2085
|
+
x(T(Vt, {
|
|
2086
|
+
"can-create-new-object": g.canCreateNewObject,
|
|
2087
|
+
"can-clear-selected-object": g.canClearSelectedObject,
|
|
2088
|
+
loading: g.loading,
|
|
2089
|
+
results: g.results,
|
|
2090
|
+
"object-type": g.objectType,
|
|
2091
|
+
"object-parent-type": g.objectParentType,
|
|
2092
|
+
"error-message": g.errorMessage,
|
|
2083
2093
|
"current-object-name": d.value,
|
|
2084
2094
|
"is-visible": a.value,
|
|
2085
|
-
onCreateObject:
|
|
2086
|
-
onSelectObject:
|
|
2087
|
-
onClearObject:
|
|
2088
|
-
onSearch: k
|
|
2089
|
-
onHideDropdown: w[4] || (w[4] = (ne) => c(!1))
|
|
2095
|
+
onCreateObject: F,
|
|
2096
|
+
onSelectObject: V,
|
|
2097
|
+
onClearObject: O,
|
|
2098
|
+
onSearch: k
|
|
2090
2099
|
}, 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"]), [
|
|
2091
|
-
[
|
|
2100
|
+
[U, a.value]
|
|
2092
2101
|
])
|
|
2093
2102
|
]),
|
|
2094
|
-
footer:
|
|
2103
|
+
footer: L(({ close: F }) => [
|
|
2095
2104
|
f("div", Kt, [
|
|
2096
|
-
|
|
2105
|
+
T(me, {
|
|
2097
2106
|
class: "cl-mr-3",
|
|
2098
2107
|
colour: "default",
|
|
2099
2108
|
size: "small",
|
|
2100
|
-
onClick:
|
|
2109
|
+
onClick: F
|
|
2101
2110
|
}, {
|
|
2102
|
-
default:
|
|
2103
|
-
Q(
|
|
2111
|
+
default: L(() => [
|
|
2112
|
+
Q(_(p(n)("comboBox.cancel")), 1)
|
|
2104
2113
|
]),
|
|
2105
2114
|
_: 2
|
|
2106
2115
|
}, 1032, ["onClick"]),
|
|
2107
|
-
|
|
2116
|
+
T(me, {
|
|
2108
2117
|
colour: "primary",
|
|
2109
2118
|
size: "small",
|
|
2110
2119
|
disabled: !$.value,
|
|
2111
|
-
onClick: (
|
|
2112
|
-
|
|
2120
|
+
onClick: ($e) => {
|
|
2121
|
+
ue(), F();
|
|
2113
2122
|
}
|
|
2114
2123
|
}, {
|
|
2115
|
-
default:
|
|
2116
|
-
Q(
|
|
2124
|
+
default: L(() => [
|
|
2125
|
+
Q(_(p(n)("comboBox.create")), 1)
|
|
2117
2126
|
]),
|
|
2118
2127
|
_: 2
|
|
2119
2128
|
}, 1032, ["disabled", "onClick"])
|
|
2120
2129
|
])
|
|
2121
2130
|
]),
|
|
2122
|
-
default:
|
|
2131
|
+
default: L(() => [
|
|
2123
2132
|
f("div", Jt, [
|
|
2124
|
-
|
|
2133
|
+
g.objectParentType ? (u(), z(W, {
|
|
2125
2134
|
key: 0,
|
|
2126
2135
|
"current-object": i.value,
|
|
2127
|
-
"onUpdate:currentObject":
|
|
2136
|
+
"onUpdate:currentObject": A[4] || (A[4] = (F) => i.value = F),
|
|
2128
2137
|
class: "cl-mt-3",
|
|
2129
|
-
results:
|
|
2130
|
-
loading:
|
|
2131
|
-
"object-type":
|
|
2132
|
-
"object-created-response":
|
|
2133
|
-
"can-create-new-object":
|
|
2134
|
-
"can-clear-selected-object":
|
|
2135
|
-
"error-message":
|
|
2136
|
-
onSearch:
|
|
2137
|
-
onCreateObject:
|
|
2138
|
+
results: g.parentResults,
|
|
2139
|
+
loading: g.loading,
|
|
2140
|
+
"object-type": g.objectParentType,
|
|
2141
|
+
"object-created-response": g.parentObjectCreatedResponse,
|
|
2142
|
+
"can-create-new-object": g.canCreateNewObject,
|
|
2143
|
+
"can-clear-selected-object": g.canClearSelectedObject,
|
|
2144
|
+
"error-message": g.errorMessage,
|
|
2145
|
+
onSearch: C,
|
|
2146
|
+
onCreateObject: w
|
|
2138
2147
|
}, null, 8, ["current-object", "results", "loading", "object-type", "object-created-response", "can-create-new-object", "can-clear-selected-object", "error-message"])) : M("", !0),
|
|
2139
|
-
|
|
2140
|
-
modelValue:
|
|
2141
|
-
"onUpdate:modelValue":
|
|
2148
|
+
T(re, {
|
|
2149
|
+
modelValue: v.value,
|
|
2150
|
+
"onUpdate:modelValue": A[5] || (A[5] = (F) => v.value = F),
|
|
2142
2151
|
label: p(n)("comboBox.createProperty"),
|
|
2143
2152
|
class: "cl-mb-2 cl-pt-3 cl-w-full",
|
|
2144
2153
|
"input-type": "text"
|
|
@@ -2147,7 +2156,7 @@ const ce = /* @__PURE__ */ fe(It, [["__scopeId", "data-v-87d84f9d"]]), Nt = { cl
|
|
|
2147
2156
|
]),
|
|
2148
2157
|
_: 1
|
|
2149
2158
|
})
|
|
2150
|
-
]);
|
|
2159
|
+
], 512);
|
|
2151
2160
|
};
|
|
2152
2161
|
}
|
|
2153
2162
|
});
|
|
@@ -2165,11 +2174,11 @@ const Xt = {}, eo = { class: "cl-flex cl-flex-wrap cl-left-0 cl-mt-4 cl-w-full"
|
|
|
2165
2174
|
class: "cl-leading-10 cl-text-sm cl-w-full"
|
|
2166
2175
|
}, oo = { class: "cl-float-left" }, no = { class: "cl-float-right" };
|
|
2167
2176
|
function ao(t, o) {
|
|
2168
|
-
return u(),
|
|
2169
|
-
t.$slots.default ? (u(),
|
|
2177
|
+
return u(), y("div", eo, [
|
|
2178
|
+
t.$slots.default ? (u(), y("div", lo, [
|
|
2170
2179
|
j(t.$slots, "default")
|
|
2171
2180
|
])) : M("", !0),
|
|
2172
|
-
t.$slots.left || t.$slots.right ? (u(),
|
|
2181
|
+
t.$slots.left || t.$slots.right ? (u(), y("div", to, [
|
|
2173
2182
|
f("span", oo, [
|
|
2174
2183
|
j(t.$slots, "left")
|
|
2175
2184
|
]),
|
|
@@ -2179,12 +2188,12 @@ function ao(t, o) {
|
|
|
2179
2188
|
])) : M("", !0)
|
|
2180
2189
|
]);
|
|
2181
2190
|
}
|
|
2182
|
-
const so = /* @__PURE__ */
|
|
2191
|
+
const so = /* @__PURE__ */ de(Xt, [["render", ao]]);
|
|
2183
2192
|
function Oe(t) {
|
|
2184
2193
|
const o = t.type !== "slot" || t.slotType !== void 0 && t.field !== void 0, e = t.sortable ?? !0;
|
|
2185
2194
|
return o && e;
|
|
2186
2195
|
}
|
|
2187
|
-
function
|
|
2196
|
+
function Pe(t) {
|
|
2188
2197
|
const o = t.type !== "slot" || t.slotType !== void 0 && t.field !== void 0, e = t.filterable ?? !0;
|
|
2189
2198
|
return o && e;
|
|
2190
2199
|
}
|
|
@@ -2203,43 +2212,43 @@ const ro = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, co = { class: "cl-gap-1
|
|
|
2203
2212
|
emits: ["update:edit-mode", "update:filterPanelOpen", "clear-filters"],
|
|
2204
2213
|
setup(t) {
|
|
2205
2214
|
const { t: o } = le();
|
|
2206
|
-
return (e, l) => (u(),
|
|
2215
|
+
return (e, l) => (u(), y(B, null, [
|
|
2207
2216
|
f("div", ro, [
|
|
2208
|
-
f("strong", null,
|
|
2217
|
+
f("strong", null, _(p(o)("grid.gridTools")), 1)
|
|
2209
2218
|
]),
|
|
2210
2219
|
f("div", co, [
|
|
2211
|
-
e.columns.some((n) => n.editable) ? (u(),
|
|
2220
|
+
e.columns.some((n) => n.editable) ? (u(), z(me, {
|
|
2212
2221
|
key: 0,
|
|
2213
2222
|
size: "small",
|
|
2214
2223
|
colour: "default",
|
|
2215
2224
|
onClick: l[0] || (l[0] = K((n) => e.$emit("update:edit-mode", !e.editMode), ["prevent"]))
|
|
2216
2225
|
}, {
|
|
2217
|
-
default:
|
|
2218
|
-
e.editMode ? (u(),
|
|
2219
|
-
Q(
|
|
2220
|
-
], 64)) : (u(),
|
|
2221
|
-
Q(
|
|
2226
|
+
default: L(() => [
|
|
2227
|
+
e.editMode ? (u(), y(B, { key: 0 }, [
|
|
2228
|
+
Q(_(p(o)("grid.finishEditing")), 1)
|
|
2229
|
+
], 64)) : (u(), y(B, { key: 1 }, [
|
|
2230
|
+
Q(_(p(o)("grid.editData")), 1)
|
|
2222
2231
|
], 64))
|
|
2223
2232
|
]),
|
|
2224
2233
|
_: 1
|
|
2225
2234
|
})) : M("", !0),
|
|
2226
|
-
e.options.hideViewManager ? M("", !0) : (u(),
|
|
2235
|
+
e.options.hideViewManager ? M("", !0) : (u(), y("div", io, [
|
|
2227
2236
|
j(e.$slots, "view-manager")
|
|
2228
2237
|
])),
|
|
2229
|
-
e.columns.some((n) => p(
|
|
2238
|
+
e.columns.some((n) => p(Pe)(n) || p(Oe)(n)) ? (u(), y(B, { key: 2 }, [
|
|
2230
2239
|
f("div", uo, [
|
|
2231
|
-
|
|
2240
|
+
T(me, {
|
|
2232
2241
|
class: "cl-w-full",
|
|
2233
2242
|
size: "small",
|
|
2234
2243
|
onClick: l[1] || (l[1] = K((n) => e.$emit("update:filterPanelOpen", !e.filterPanelOpen), ["prevent"]))
|
|
2235
2244
|
}, {
|
|
2236
|
-
default:
|
|
2237
|
-
Q(
|
|
2245
|
+
default: L(() => [
|
|
2246
|
+
Q(_(p(o)("grid.modifyFilters")), 1)
|
|
2238
2247
|
]),
|
|
2239
2248
|
_: 1
|
|
2240
2249
|
})
|
|
2241
2250
|
]),
|
|
2242
|
-
|
|
2251
|
+
T(me, {
|
|
2243
2252
|
size: "small",
|
|
2244
2253
|
colour: e.request.filters.some((n) => n.filterValue !== "") ? "danger" : "default",
|
|
2245
2254
|
class: I({
|
|
@@ -2247,8 +2256,8 @@ const ro = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, co = { class: "cl-gap-1
|
|
|
2247
2256
|
}),
|
|
2248
2257
|
onClick: l[2] || (l[2] = K((n) => e.$emit("clear-filters"), ["prevent"]))
|
|
2249
2258
|
}, {
|
|
2250
|
-
default:
|
|
2251
|
-
Q(
|
|
2259
|
+
default: L(() => [
|
|
2260
|
+
Q(_(p(o)("grid.clearFilters")), 1)
|
|
2252
2261
|
]),
|
|
2253
2262
|
_: 1
|
|
2254
2263
|
}, 8, ["colour", "class"])
|
|
@@ -2262,7 +2271,7 @@ const ro = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, co = { class: "cl-gap-1
|
|
|
2262
2271
|
}, mo = {
|
|
2263
2272
|
key: 1,
|
|
2264
2273
|
class: "cl-inline-block cl-whitespace-nowrap"
|
|
2265
|
-
},
|
|
2274
|
+
}, Ye = /* @__PURE__ */ D({
|
|
2266
2275
|
__name: "cl-ui-grid-cell-value",
|
|
2267
2276
|
props: {
|
|
2268
2277
|
data: {},
|
|
@@ -2270,21 +2279,21 @@ const ro = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, co = { class: "cl-gap-1
|
|
|
2270
2279
|
},
|
|
2271
2280
|
setup(t) {
|
|
2272
2281
|
const { d: o } = le();
|
|
2273
|
-
return (e, l) => e.column.type === "slot" ? j(e.$slots, e.column.name, { key: 0 }) : e.column.type === "boolean" && e.column.field !== void 0 ? (u(),
|
|
2282
|
+
return (e, l) => e.column.type === "slot" ? j(e.$slots, e.column.name, { key: 0 }) : e.column.type === "boolean" && e.column.field !== void 0 ? (u(), z(re, {
|
|
2274
2283
|
key: 1,
|
|
2275
2284
|
"input-type": "checkbox",
|
|
2276
2285
|
"model-value": e.data[e.column.field],
|
|
2277
2286
|
disabled: !0
|
|
2278
|
-
}, null, 8, ["model-value"])) : (e.column.type === "date" || e.column.type === "datetime") && e.column.field !== void 0 ? (u(),
|
|
2279
|
-
e.column.format !== void 0 ? (u(),
|
|
2280
|
-
Q(
|
|
2281
|
-
], 64)) : e.column.type === "date" ? (u(),
|
|
2282
|
-
Q(
|
|
2283
|
-
], 64)) : (u(),
|
|
2284
|
-
Q(
|
|
2287
|
+
}, null, 8, ["model-value"])) : (e.column.type === "date" || e.column.type === "datetime") && e.column.field !== void 0 ? (u(), y(B, { key: 2 }, [
|
|
2288
|
+
e.column.format !== void 0 ? (u(), y(B, { key: 0 }, [
|
|
2289
|
+
Q(_(p(o)(new Date(e.data[e.column.field]), e.column.format)), 1)
|
|
2290
|
+
], 64)) : e.column.type === "date" ? (u(), y(B, { key: 1 }, [
|
|
2291
|
+
Q(_(p(o)(new Date(e.data[e.column.field]), p(G).DATE)), 1)
|
|
2292
|
+
], 64)) : (u(), y(B, { key: 2 }, [
|
|
2293
|
+
Q(_(p(o)(new Date(e.data[e.column.field]), p(G).DATETIME)), 1)
|
|
2285
2294
|
], 64))
|
|
2286
|
-
], 64)) : e.column.field !== void 0 ? (u(),
|
|
2287
|
-
e.column.maxLength !== void 0 ? (u(),
|
|
2295
|
+
], 64)) : e.column.field !== void 0 ? (u(), y(B, { key: 3 }, [
|
|
2296
|
+
e.column.maxLength !== void 0 ? (u(), y("span", po, _(e.data[e.column.field].trimToLength(e.column.maxLength, e.column.format !== void 0 ? e.column.format === "ellipsis" : !1)), 1)) : (u(), y("span", mo, _(e.data[e.column.field]), 1))
|
|
2288
2297
|
], 64)) : M("", !0);
|
|
2289
2298
|
}
|
|
2290
2299
|
}), go = { class: "cl-font-semibold lg:cl-hidden" }, vo = /* @__PURE__ */ D({
|
|
@@ -2296,40 +2305,40 @@ const ro = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, co = { class: "cl-gap-1
|
|
|
2296
2305
|
},
|
|
2297
2306
|
emits: ["edit", "focus", "undo"],
|
|
2298
2307
|
setup(t, { emit: o }) {
|
|
2299
|
-
const e = t, l =
|
|
2300
|
-
return dl(() => l.value =
|
|
2308
|
+
const e = t, l = S(ce(e.data)), n = E(() => e.column.field !== void 0 && l.value[e.column.field] !== e.data[e.column.field]);
|
|
2309
|
+
return dl(() => l.value = ce(e.data)), H(l, (a) => {
|
|
2301
2310
|
const r = e.column.field ?? "";
|
|
2302
2311
|
r !== "" && (a[r] !== e.data[r] ? o("edit", a[r]) : o("undo"));
|
|
2303
2312
|
}, {
|
|
2304
2313
|
deep: !0
|
|
2305
|
-
}), (a, r) => (u(),
|
|
2314
|
+
}), (a, r) => (u(), y("td", {
|
|
2306
2315
|
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", {
|
|
2307
2316
|
"cl-bg-link-lighter": n.value
|
|
2308
2317
|
}])
|
|
2309
2318
|
}, [
|
|
2310
|
-
f("span", go,
|
|
2311
|
-
a.editMode && a.column.editable === !0 ? j(a.$slots, `${a.column.name}Edit`, ee(
|
|
2319
|
+
f("span", go, _(a.column.caption), 1),
|
|
2320
|
+
a.editMode && a.column.editable === !0 ? j(a.$slots, `${a.column.name}Edit`, ee(ie({ key: 0 }, {
|
|
2312
2321
|
cellFocused: () => o("focus"),
|
|
2313
2322
|
column: a.column,
|
|
2314
2323
|
edited: n.value,
|
|
2315
2324
|
record: l.value
|
|
2316
2325
|
})), () => [
|
|
2317
|
-
|
|
2326
|
+
T(Ye, {
|
|
2318
2327
|
column: a.column,
|
|
2319
2328
|
data: a.data
|
|
2320
2329
|
}, {
|
|
2321
|
-
[a.column.name]:
|
|
2322
|
-
j(a.$slots, a.column.name, ee(
|
|
2330
|
+
[a.column.name]: L(() => [
|
|
2331
|
+
j(a.$slots, a.column.name, ee(se({ column: a.column, data: a.data })))
|
|
2323
2332
|
]),
|
|
2324
2333
|
_: 2
|
|
2325
2334
|
}, 1032, ["column", "data"])
|
|
2326
|
-
]) : (u(),
|
|
2335
|
+
]) : (u(), z(Ye, {
|
|
2327
2336
|
key: 1,
|
|
2328
2337
|
column: a.column,
|
|
2329
2338
|
data: a.data
|
|
2330
2339
|
}, {
|
|
2331
|
-
[a.column.name]:
|
|
2332
|
-
j(a.$slots, a.column.name, ee(
|
|
2340
|
+
[a.column.name]: L(() => [
|
|
2341
|
+
j(a.$slots, a.column.name, ee(se({ column: a.column, record: a.data })))
|
|
2333
2342
|
]),
|
|
2334
2343
|
_: 2
|
|
2335
2344
|
}, 1032, ["column", "data"]))
|
|
@@ -2344,8 +2353,8 @@ const ro = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, co = { class: "cl-gap-1
|
|
|
2344
2353
|
},
|
|
2345
2354
|
emits: ["cell-focus", "cell-edit", "cell-undo", "row-select"],
|
|
2346
2355
|
setup(t) {
|
|
2347
|
-
return (o, e) => (u(),
|
|
2348
|
-
(u(!0),
|
|
2356
|
+
return (o, e) => (u(), y("tr", null, [
|
|
2357
|
+
(u(!0), y(B, null, Y(o.columns, (l, n) => (u(), z(vo, {
|
|
2349
2358
|
key: n,
|
|
2350
2359
|
data: o.data,
|
|
2351
2360
|
column: l,
|
|
@@ -2356,8 +2365,8 @@ const ro = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, co = { class: "cl-gap-1
|
|
|
2356
2365
|
}, ze({ _: 2 }, [
|
|
2357
2366
|
Y(o.$slots, (a, r) => ({
|
|
2358
2367
|
name: r,
|
|
2359
|
-
fn:
|
|
2360
|
-
j(o.$slots, r, ee(
|
|
2368
|
+
fn: L((s) => [
|
|
2369
|
+
j(o.$slots, r, ee(se(s)))
|
|
2361
2370
|
])
|
|
2362
2371
|
}))
|
|
2363
2372
|
]), 1032, ["data", "column", "edit-mode", "onEdit", "onUndo"]))), 128))
|
|
@@ -2378,35 +2387,35 @@ const ro = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, co = { class: "cl-gap-1
|
|
|
2378
2387
|
},
|
|
2379
2388
|
emits: ["row-select", "row-edit", "clear-filters"],
|
|
2380
2389
|
setup(t, { emit: o }) {
|
|
2381
|
-
const e = t, { t: l } = le(), n =
|
|
2390
|
+
const e = t, { t: l } = le(), n = S({
|
|
2382
2391
|
index: -1,
|
|
2383
2392
|
record: {}
|
|
2384
2393
|
});
|
|
2385
2394
|
function a() {
|
|
2386
|
-
Object.keys(n.value.record).length !== 0 && (o("row-edit",
|
|
2395
|
+
Object.keys(n.value.record).length !== 0 && (o("row-edit", ce(n.value)), n.value.record = {});
|
|
2387
2396
|
}
|
|
2388
|
-
function r(
|
|
2389
|
-
n.value.index !== -1 && n.value.index !==
|
|
2397
|
+
function r(b) {
|
|
2398
|
+
n.value.index !== -1 && n.value.index !== b && a(), n.value.index = b;
|
|
2390
2399
|
}
|
|
2391
|
-
function s(
|
|
2392
|
-
r(
|
|
2400
|
+
function s(b, m) {
|
|
2401
|
+
r(b), m.field !== void 0 && (n.value.record[m.field] = m.value);
|
|
2393
2402
|
}
|
|
2394
|
-
function i(
|
|
2395
|
-
if (
|
|
2396
|
-
const { [
|
|
2403
|
+
function i(b) {
|
|
2404
|
+
if (b !== void 0) {
|
|
2405
|
+
const { [b]: m, ...$ } = n.value.record;
|
|
2397
2406
|
n.value.record = {
|
|
2398
2407
|
...$
|
|
2399
2408
|
};
|
|
2400
2409
|
}
|
|
2401
2410
|
}
|
|
2402
|
-
const d =
|
|
2403
|
-
|
|
2404
|
-
var
|
|
2405
|
-
return d.value = Object.fromEntries(((m = (
|
|
2411
|
+
const d = S({});
|
|
2412
|
+
H(() => e.data, () => {
|
|
2413
|
+
var b, m;
|
|
2414
|
+
return d.value = Object.fromEntries(((m = (b = e.data) == null ? void 0 : b.results) == null ? void 0 : m.map(($, c) => [
|
|
2406
2415
|
[c],
|
|
2407
2416
|
{
|
|
2408
2417
|
count: 0,
|
|
2409
|
-
reset:
|
|
2418
|
+
reset: tl(() => {
|
|
2410
2419
|
d.value[c].count = 0;
|
|
2411
2420
|
}, 750, { immediate: !1 })
|
|
2412
2421
|
}
|
|
@@ -2415,56 +2424,56 @@ const ro = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, co = { class: "cl-gap-1
|
|
|
2415
2424
|
deep: !0,
|
|
2416
2425
|
immediate: !0
|
|
2417
2426
|
});
|
|
2418
|
-
function
|
|
2419
|
-
e.selectionEnabled ? o("row-select", m) : (d.value[
|
|
2427
|
+
function v(b, m) {
|
|
2428
|
+
e.selectionEnabled ? o("row-select", m) : (d.value[b].count++, d.value[b].count > 1 ? (d.value[b].reset.stop(), d.value[b].count = 0, o("row-select", m)) : d.value[b].reset.start());
|
|
2420
2429
|
}
|
|
2421
|
-
return
|
|
2430
|
+
return H(() => e.editMode, () => {
|
|
2422
2431
|
e.editMode || (a(), n.value.index = -1);
|
|
2423
|
-
}), (
|
|
2432
|
+
}), (b, m) => {
|
|
2424
2433
|
var $;
|
|
2425
|
-
return u(),
|
|
2426
|
-
|
|
2434
|
+
return u(), y("tbody", null, [
|
|
2435
|
+
b.data && (($ = b.data.results) != null && $.length) ? (u(!0), y(B, { key: 0 }, Y(b.data.results, (c, k) => (u(), z(bo, {
|
|
2427
2436
|
key: k,
|
|
2428
2437
|
data: c,
|
|
2429
|
-
columns:
|
|
2430
|
-
"edit-mode":
|
|
2438
|
+
columns: b.columns,
|
|
2439
|
+
"edit-mode": b.editMode,
|
|
2431
2440
|
class: I({
|
|
2432
|
-
"cl-bg-white": k % 2 === 0 &&
|
|
2433
|
-
"cl-bg-off-white": k % 2 === 1 ||
|
|
2434
|
-
"cl-cursor-pointer hover:cl-bg-link-lighter":
|
|
2441
|
+
"cl-bg-white": k % 2 === 0 && b.data.totalRecords > 1,
|
|
2442
|
+
"cl-bg-off-white": k % 2 === 1 || b.data.totalRecords === 1,
|
|
2443
|
+
"cl-cursor-pointer hover:cl-bg-link-lighter": b.selectionEnabled && !b.editMode
|
|
2435
2444
|
}),
|
|
2436
|
-
onClick: (
|
|
2437
|
-
|
|
2445
|
+
onClick: (C) => {
|
|
2446
|
+
b.editMode || v(k, c);
|
|
2438
2447
|
},
|
|
2439
|
-
onCellFocus: (
|
|
2448
|
+
onCellFocus: (C) => {
|
|
2440
2449
|
r(k);
|
|
2441
2450
|
},
|
|
2442
|
-
onCellEdit: (
|
|
2443
|
-
s(k,
|
|
2451
|
+
onCellEdit: (C) => {
|
|
2452
|
+
s(k, C);
|
|
2444
2453
|
},
|
|
2445
2454
|
onCellUndo: i
|
|
2446
2455
|
}, ze({ _: 2 }, [
|
|
2447
|
-
Y(
|
|
2448
|
-
name:
|
|
2449
|
-
fn:
|
|
2450
|
-
j(
|
|
2456
|
+
Y(b.$slots, (C, O) => ({
|
|
2457
|
+
name: O,
|
|
2458
|
+
fn: L((V) => [
|
|
2459
|
+
j(b.$slots, O, ee(se(V)))
|
|
2451
2460
|
])
|
|
2452
2461
|
}))
|
|
2453
|
-
]), 1032, ["data", "columns", "edit-mode", "class", "onClick", "onCellFocus", "onCellEdit"]))), 128)) :
|
|
2462
|
+
]), 1032, ["data", "columns", "edit-mode", "class", "onClick", "onCellFocus", "onCellEdit"]))), 128)) : b.loading ? M("", !0) : (u(), y("tr", ho, [
|
|
2454
2463
|
f("td", {
|
|
2455
|
-
colspan:
|
|
2464
|
+
colspan: b.columns.length
|
|
2456
2465
|
}, [
|
|
2457
2466
|
f("div", wo, [
|
|
2458
|
-
f("strong", $o,
|
|
2459
|
-
|
|
2460
|
-
f("div", To,
|
|
2461
|
-
|
|
2467
|
+
f("strong", $o, _(p(l)("grid.noData")), 1),
|
|
2468
|
+
b.request.filters.length > 0 ? (u(), y("div", ko, [
|
|
2469
|
+
f("div", To, _(p(l)("grid.noDataFiltersPresent")), 1),
|
|
2470
|
+
T(me, {
|
|
2462
2471
|
size: "small",
|
|
2463
2472
|
colour: "danger",
|
|
2464
|
-
onClick: m[0] || (m[0] = K((c) =>
|
|
2473
|
+
onClick: m[0] || (m[0] = K((c) => b.$emit("clear-filters"), ["prevent"]))
|
|
2465
2474
|
}, {
|
|
2466
|
-
default:
|
|
2467
|
-
Q(
|
|
2475
|
+
default: L(() => [
|
|
2476
|
+
Q(_(p(l)("grid.clearFilters")), 1)
|
|
2468
2477
|
]),
|
|
2469
2478
|
_: 1
|
|
2470
2479
|
})
|
|
@@ -2478,7 +2487,7 @@ const ro = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, co = { class: "cl-gap-1
|
|
|
2478
2487
|
}), _o = {
|
|
2479
2488
|
key: 0,
|
|
2480
2489
|
class: "cl-flex cl-flex-wrap cl-justify-end cl-mt-2 cl-w-full"
|
|
2481
|
-
}, So = { 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" }, Oo = { class: "cl-text-grey-3 cl-w-max" }, Eo = { 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" }, Ao = { 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" }, jo = { class: "cl-flex cl-flex-wrap cl-mb-2 cl-w-full lg:cl-mb-0 lg:cl-mr-2 lg:cl-w-auto" }, Mo = { class: "cl-text-grey-3 cl-w-full lg:cl-mr-2 lg:cl-w-auto" }, Io = { class: "cl-flex cl-flex-wrap cl-text-sm mb:cl-flex-nowrap" }, No = { class: "cl-pr-2" }, qo = ["onClick"], Do = { 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" }, Ro = { class: "cl-mb-2 cl-text-grey-3 cl-w-full lg:cl-mb-0 lg:cl-mr-2 lg:cl-w-auto" },
|
|
2490
|
+
}, So = { 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" }, Oo = { class: "cl-text-grey-3 cl-w-max" }, Eo = { 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" }, Ao = { 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" }, jo = { class: "cl-flex cl-flex-wrap cl-mb-2 cl-w-full lg:cl-mb-0 lg:cl-mr-2 lg:cl-w-auto" }, Mo = { class: "cl-text-grey-3 cl-w-full lg:cl-mr-2 lg:cl-w-auto" }, Io = { class: "cl-flex cl-flex-wrap cl-text-sm mb:cl-flex-nowrap" }, No = { class: "cl-pr-2" }, qo = ["onClick"], Do = { 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" }, Ro = { class: "cl-mb-2 cl-text-grey-3 cl-w-full lg:cl-mb-0 lg:cl-mr-2 lg:cl-w-auto" }, xo = ["onClick"], Uo = { class: "cl-mb-2 cl-w-full lg:cl-p-2 md:cl-mb-0 md:cl-w-auto" }, Bo = { 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" }, zo = { class: "cl-block lg:cl-inline-block" }, Lo = /* @__PURE__ */ D({
|
|
2482
2491
|
__name: "cl-ui-grid-footer",
|
|
2483
2492
|
props: {
|
|
2484
2493
|
request: {},
|
|
@@ -2488,10 +2497,10 @@ const ro = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, co = { class: "cl-gap-1
|
|
|
2488
2497
|
"update:request": null
|
|
2489
2498
|
},
|
|
2490
2499
|
setup(t, { emit: o }) {
|
|
2491
|
-
const e = t, { n: l, t: n } = le(), a =
|
|
2500
|
+
const e = t, { n: l, t: n } = le(), a = E(() => {
|
|
2492
2501
|
var m;
|
|
2493
2502
|
return e.data !== null ? Math.ceil((((m = e.data) == null ? void 0 : m.totalRecords) ?? 0) / e.request.pageSize) : 1;
|
|
2494
|
-
}), r =
|
|
2503
|
+
}), r = E(() => {
|
|
2495
2504
|
const m = Array.from(Array(a.value + 1).keys());
|
|
2496
2505
|
let $ = [];
|
|
2497
2506
|
if (m.shift(), m.length) {
|
|
@@ -2501,7 +2510,7 @@ const ro = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, co = { class: "cl-gap-1
|
|
|
2501
2510
|
return $;
|
|
2502
2511
|
});
|
|
2503
2512
|
function s(m) {
|
|
2504
|
-
const $ =
|
|
2513
|
+
const $ = ce(e.request);
|
|
2505
2514
|
$.pageNumber !== m && ($.pageNumber = Math.max(Math.min(Math.trunc(m), a.value), 1), o("update:request", $));
|
|
2506
2515
|
}
|
|
2507
2516
|
function i(m) {
|
|
@@ -2516,17 +2525,17 @@ const ro = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, co = { class: "cl-gap-1
|
|
|
2516
2525
|
100,
|
|
2517
2526
|
200
|
|
2518
2527
|
];
|
|
2519
|
-
function
|
|
2520
|
-
const $ =
|
|
2528
|
+
function v(m) {
|
|
2529
|
+
const $ = ce(e.request);
|
|
2521
2530
|
$.pageSize = m, $.pageNumber = 1, o("update:request", $);
|
|
2522
2531
|
}
|
|
2523
|
-
const
|
|
2532
|
+
const b = ol(i, 750);
|
|
2524
2533
|
return (m, $) => {
|
|
2525
2534
|
var c, k;
|
|
2526
|
-
return (k = (c = m.data) == null ? void 0 : c.results) != null && k.length && m.request ? (u(),
|
|
2535
|
+
return (k = (c = m.data) == null ? void 0 : c.results) != null && k.length && m.request ? (u(), y("div", _o, [
|
|
2527
2536
|
f("div", So, [
|
|
2528
|
-
f("span", Oo,
|
|
2529
|
-
|
|
2537
|
+
f("span", Oo, _(p(n)("grid.jumpToPage")), 1),
|
|
2538
|
+
T(re, {
|
|
2530
2539
|
"model-value": m.request.pageNumber,
|
|
2531
2540
|
class: "cl-ml-1 cl-mt-0.5 cl-text-sm",
|
|
2532
2541
|
"input-type": "number",
|
|
@@ -2534,84 +2543,84 @@ const ro = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, co = { class: "cl-gap-1
|
|
|
2534
2543
|
"show-label": !1,
|
|
2535
2544
|
min: "1",
|
|
2536
2545
|
max: a.value,
|
|
2537
|
-
onInput: $[0] || ($[0] = (
|
|
2546
|
+
onInput: $[0] || ($[0] = (C) => p(b)(C.target))
|
|
2538
2547
|
}, null, 8, ["model-value", "max"])
|
|
2539
2548
|
]),
|
|
2540
2549
|
f("div", Eo, [
|
|
2541
2550
|
f("div", Ao, [
|
|
2542
2551
|
f("li", jo, [
|
|
2543
|
-
f("span", Mo,
|
|
2552
|
+
f("span", Mo, _(p(n)("grid.page")), 1)
|
|
2544
2553
|
]),
|
|
2545
2554
|
f("ul", Io, [
|
|
2546
|
-
f("li", No,
|
|
2547
|
-
|
|
2555
|
+
f("li", No, _(p(l)(m.request.pageNumber, p(X).INTEGER)) + " / " + _(p(l)(a.value, p(X).INTEGER)), 1),
|
|
2556
|
+
x(f("li", {
|
|
2548
2557
|
class: "cl-cursor-pointer cl-mr-1 cl-mt-1 lg:cl-mr-2",
|
|
2549
|
-
onClick: $[1] || ($[1] = (
|
|
2558
|
+
onClick: $[1] || ($[1] = (C) => s(1))
|
|
2550
2559
|
}, [
|
|
2551
|
-
|
|
2560
|
+
T(p(q), {
|
|
2552
2561
|
icon: "ph:caret-double-left",
|
|
2553
2562
|
size: 14
|
|
2554
2563
|
})
|
|
2555
2564
|
], 512), [
|
|
2556
|
-
[
|
|
2565
|
+
[U, m.request.pageNumber > 1]
|
|
2557
2566
|
]),
|
|
2558
|
-
|
|
2567
|
+
x(f("li", {
|
|
2559
2568
|
class: "cl-cursor-pointer cl-mt-1 lg:cl-mr-2 mr-1",
|
|
2560
|
-
onClick: $[2] || ($[2] = (
|
|
2569
|
+
onClick: $[2] || ($[2] = (C) => s(m.request.pageNumber - 1))
|
|
2561
2570
|
}, [
|
|
2562
|
-
|
|
2571
|
+
T(p(q), {
|
|
2563
2572
|
icon: "ph:caret-left",
|
|
2564
2573
|
size: 14
|
|
2565
2574
|
})
|
|
2566
2575
|
], 512), [
|
|
2567
|
-
[
|
|
2576
|
+
[U, m.request.pageNumber > 1]
|
|
2568
2577
|
]),
|
|
2569
|
-
(u(!0),
|
|
2570
|
-
key:
|
|
2578
|
+
(u(!0), y(B, null, Y(r.value, (C, O) => (u(), y("li", {
|
|
2579
|
+
key: O,
|
|
2571
2580
|
class: I(["cl-cursor-pointer cl-mr-1 lg:cl-mr-2", {
|
|
2572
|
-
"cl-text-black cl-font-bold": m.request.pageNumber ===
|
|
2573
|
-
"cl-text-grey-6": m.request.pageNumber !==
|
|
2581
|
+
"cl-text-black cl-font-bold": m.request.pageNumber === C,
|
|
2582
|
+
"cl-text-grey-6": m.request.pageNumber !== C
|
|
2574
2583
|
}]),
|
|
2575
|
-
onClick: (
|
|
2576
|
-
},
|
|
2577
|
-
|
|
2584
|
+
onClick: (V) => s(C)
|
|
2585
|
+
}, _(p(l)(C, p(X).INTEGER)), 11, qo))), 128)),
|
|
2586
|
+
x(f("li", {
|
|
2578
2587
|
class: "cl-cursor-pointer cl-mr-1 cl-mt-1 lg:cl-mr-2",
|
|
2579
|
-
onClick: $[3] || ($[3] = (
|
|
2588
|
+
onClick: $[3] || ($[3] = (C) => s(m.request.pageNumber + 1))
|
|
2580
2589
|
}, [
|
|
2581
|
-
|
|
2590
|
+
T(p(q), {
|
|
2582
2591
|
icon: "ph:caret-right",
|
|
2583
2592
|
size: 14
|
|
2584
2593
|
})
|
|
2585
2594
|
], 512), [
|
|
2586
|
-
[
|
|
2595
|
+
[U, m.request.pageNumber < a.value]
|
|
2587
2596
|
]),
|
|
2588
|
-
|
|
2597
|
+
x(f("li", {
|
|
2589
2598
|
class: "cl-cursor-pointer cl-mr-1 cl-mt-1 lg:cl-mr-2",
|
|
2590
|
-
onClick: $[4] || ($[4] = (
|
|
2599
|
+
onClick: $[4] || ($[4] = (C) => s(a.value))
|
|
2591
2600
|
}, [
|
|
2592
|
-
|
|
2601
|
+
T(p(q), {
|
|
2593
2602
|
icon: "ph:caret-double-right",
|
|
2594
2603
|
size: 14
|
|
2595
2604
|
})
|
|
2596
2605
|
], 512), [
|
|
2597
|
-
[
|
|
2606
|
+
[U, m.request.pageNumber < a.value]
|
|
2598
2607
|
])
|
|
2599
2608
|
])
|
|
2600
2609
|
]),
|
|
2601
2610
|
f("ul", Do, [
|
|
2602
|
-
f("li", Ro,
|
|
2603
|
-
(u(),
|
|
2604
|
-
key:
|
|
2611
|
+
f("li", Ro, _(p(n)("grid.pageSize")), 1),
|
|
2612
|
+
(u(), y(B, null, Y(d, (C, O) => f("li", {
|
|
2613
|
+
key: O,
|
|
2605
2614
|
class: I(["cl-cursor-pointer cl-mr-1 lg:cl-mr-2", {
|
|
2606
|
-
"cl-text-black cl-font-bold": m.request.pageSize ===
|
|
2607
|
-
"cl-text-grey-6": m.request.pageSize !==
|
|
2615
|
+
"cl-text-black cl-font-bold": m.request.pageSize === C,
|
|
2616
|
+
"cl-text-grey-6": m.request.pageSize !== C
|
|
2608
2617
|
}]),
|
|
2609
|
-
onClick: (
|
|
2610
|
-
},
|
|
2618
|
+
onClick: (V) => v(C)
|
|
2619
|
+
}, _(p(l)(C, p(X).INTEGER)), 11, xo)), 64))
|
|
2611
2620
|
]),
|
|
2612
|
-
f("ul",
|
|
2613
|
-
f("li",
|
|
2614
|
-
f("li", zo,
|
|
2621
|
+
f("ul", Uo, [
|
|
2622
|
+
f("li", Bo, _(p(n)("grid.totalRecords")), 1),
|
|
2623
|
+
f("li", zo, _(p(l)(m.data.totalRecords, p(X).INTEGER)), 1)
|
|
2615
2624
|
])
|
|
2616
2625
|
])
|
|
2617
2626
|
])) : M("", !0);
|
|
@@ -2640,7 +2649,7 @@ function Fo(t) {
|
|
|
2640
2649
|
return o;
|
|
2641
2650
|
}
|
|
2642
2651
|
const Vo = ["ellipsis"];
|
|
2643
|
-
var
|
|
2652
|
+
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 || {});
|
|
2644
2653
|
const Go = [
|
|
2645
2654
|
"equal",
|
|
2646
2655
|
"notequal",
|
|
@@ -2706,7 +2715,7 @@ const Zo = {
|
|
|
2706
2715
|
"datetime"
|
|
2707
2716
|
],
|
|
2708
2717
|
key: "before"
|
|
2709
|
-
},
|
|
2718
|
+
}, Xe = [
|
|
2710
2719
|
Qo,
|
|
2711
2720
|
{
|
|
2712
2721
|
method: "notcontains",
|
|
@@ -2804,39 +2813,39 @@ const Zo = {
|
|
|
2804
2813
|
},
|
|
2805
2814
|
emits: ["update:filter"],
|
|
2806
2815
|
setup(t, { emit: o }) {
|
|
2807
|
-
const e = t, { t: l } = le(), n =
|
|
2816
|
+
const e = t, { t: l } = le(), n = E(() => {
|
|
2808
2817
|
let s = [];
|
|
2809
|
-
return e.column.type !== "slot" ? s =
|
|
2818
|
+
return e.column.type !== "slot" ? s = Xe.filter((i) => i.allowedTypes.includes(e.column.type)) : typeof e.column.slotType < "u" && typeof e.column.field < "u" && (s = Xe.filter((i) => i.allowedTypes.includes(e.column.slotType))), e.column.type === "date" || e.column.type === "datetime" || e.column.slotType === "date" || e.column.slotType === "datetime" ? s.forEach((i) => {
|
|
2810
2819
|
i.description = l(`grid.${i.key}`);
|
|
2811
2820
|
}) : s.forEach((i) => {
|
|
2812
2821
|
i.description = l(`grid.${i.method}`);
|
|
2813
2822
|
}), s;
|
|
2814
|
-
}), a =
|
|
2823
|
+
}), a = E(() => {
|
|
2815
2824
|
var i;
|
|
2816
2825
|
let s = (i = e.filter) == null ? void 0 : i.filterMethod;
|
|
2817
|
-
return typeof s > "u" && (s =
|
|
2818
|
-
var
|
|
2819
|
-
return d.method.toLowerCase() === ((
|
|
2826
|
+
return typeof s > "u" && (s = pe[e.defaultOperation]), n.value.find((d) => {
|
|
2827
|
+
var v;
|
|
2828
|
+
return d.method.toLowerCase() === ((v = s == null ? void 0 : s.removeNonAlphanumeric()) == null ? void 0 : v.toLowerCase());
|
|
2820
2829
|
});
|
|
2821
2830
|
});
|
|
2822
2831
|
function r(s) {
|
|
2823
2832
|
let i;
|
|
2824
2833
|
if (e.filter)
|
|
2825
|
-
i =
|
|
2834
|
+
i = ce(e.filter), i.filterOperation = pe[s.toUpperCase()], i.filterMethod = s.toUpperCase();
|
|
2826
2835
|
else if (typeof e.column.field < "u")
|
|
2827
2836
|
i = {
|
|
2828
2837
|
filterOnColumn: e.column.field,
|
|
2829
2838
|
filterMethod: s.toUpperCase(),
|
|
2830
|
-
filterOperation:
|
|
2839
|
+
filterOperation: pe[s.toUpperCase()],
|
|
2831
2840
|
filterValue: ""
|
|
2832
2841
|
};
|
|
2833
2842
|
else
|
|
2834
2843
|
return;
|
|
2835
2844
|
o("update:filter", i);
|
|
2836
2845
|
}
|
|
2837
|
-
return (s, i) => (u(),
|
|
2846
|
+
return (s, i) => (u(), y("div", Xo, [
|
|
2838
2847
|
f("div", en, [
|
|
2839
|
-
a.value ? (u(),
|
|
2848
|
+
a.value ? (u(), z(p(q), {
|
|
2840
2849
|
key: 0,
|
|
2841
2850
|
icon: a.value.icon,
|
|
2842
2851
|
class: I(["cl-text-lg", {
|
|
@@ -2851,18 +2860,18 @@ const Zo = {
|
|
|
2851
2860
|
"cl--left-44": !s.firstHalf
|
|
2852
2861
|
}])
|
|
2853
2862
|
}, [
|
|
2854
|
-
f("strong", ln,
|
|
2855
|
-
(u(!0),
|
|
2856
|
-
var
|
|
2857
|
-
return u(),
|
|
2858
|
-
key:
|
|
2863
|
+
f("strong", ln, _(p(l)("grid.availableMethods")), 1),
|
|
2864
|
+
(u(!0), y(B, null, Y(n.value, (d, v) => {
|
|
2865
|
+
var b;
|
|
2866
|
+
return u(), y("span", {
|
|
2867
|
+
key: v,
|
|
2859
2868
|
class: I(["cl-cursor-pointer cl-px-4 cl-py-1 cl-transition-colors cl-w-full hover:cl-bg-grey-0", {
|
|
2860
|
-
"cl-bg-primary-default cl-opacity-80": d.method === ((
|
|
2869
|
+
"cl-bg-primary-default cl-opacity-80": d.method === ((b = a.value) == null ? void 0 : b.method)
|
|
2861
2870
|
}]),
|
|
2862
2871
|
onClick: K((m) => r(d.method), ["prevent"])
|
|
2863
2872
|
}, [
|
|
2864
|
-
Q(
|
|
2865
|
-
|
|
2873
|
+
Q(_(d.description) + " ", 1),
|
|
2874
|
+
T(p(q), {
|
|
2866
2875
|
icon: d.icon,
|
|
2867
2876
|
class: "cl-float-right cl-text-grey-4 cl-text-sm"
|
|
2868
2877
|
}, null, 8, ["icon"])
|
|
@@ -2885,56 +2894,56 @@ const Zo = {
|
|
|
2885
2894
|
setup(t, { emit: o }) {
|
|
2886
2895
|
const e = t, { locale: l, t: n } = le();
|
|
2887
2896
|
function a() {
|
|
2888
|
-
return e.column.type === "string" || e.column.slotType === "string" ?
|
|
2897
|
+
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;
|
|
2889
2898
|
}
|
|
2890
|
-
const r =
|
|
2899
|
+
const r = E({
|
|
2891
2900
|
get: () => e.filter,
|
|
2892
2901
|
set: (c) => o("update:filter", c)
|
|
2893
|
-
}), s =
|
|
2902
|
+
}), s = E(() => {
|
|
2894
2903
|
var c;
|
|
2895
2904
|
return ((c = r.value) == null ? void 0 : c.filterValue) ?? "";
|
|
2896
|
-
}), i =
|
|
2897
|
-
function
|
|
2905
|
+
}), i = E(() => s.value !== "" ? new Date(s.value) : null), d = E(() => Intl.NumberFormat(l.value).format(1.1).replace(/[0-9]+/g, "")), v = E(() => Pe(e.column));
|
|
2906
|
+
function b(c, k) {
|
|
2898
2907
|
var te;
|
|
2899
|
-
let
|
|
2900
|
-
const
|
|
2908
|
+
let C, O = !1;
|
|
2909
|
+
const V = ((c == null ? void 0 : c.value) ?? k).trim();
|
|
2901
2910
|
if (r.value)
|
|
2902
|
-
|
|
2903
|
-
else if (
|
|
2904
|
-
const
|
|
2905
|
-
|
|
2911
|
+
O = ((te = r.value) == null ? void 0 : te.filterValue) === V, C = ce(r.value), C.filterValue = V;
|
|
2912
|
+
else if (V !== "" && typeof e.column.field < "u") {
|
|
2913
|
+
const ue = a();
|
|
2914
|
+
C = {
|
|
2906
2915
|
filterOnColumn: e.column.field,
|
|
2907
|
-
filterMethod:
|
|
2908
|
-
filterOperation:
|
|
2909
|
-
filterValue:
|
|
2916
|
+
filterMethod: pe[ue],
|
|
2917
|
+
filterOperation: ue,
|
|
2918
|
+
filterValue: V
|
|
2910
2919
|
};
|
|
2911
2920
|
} else
|
|
2912
2921
|
return;
|
|
2913
|
-
|
|
2922
|
+
O === !1 && (r.value = C);
|
|
2914
2923
|
}
|
|
2915
2924
|
function m(c) {
|
|
2916
2925
|
let k;
|
|
2917
|
-
e.column.format === X.INTEGER ? (typeof c == "string" && (c = parseInt(c)), k = Math.round(c)) : (typeof c == "string" && (c = parseFloat(c.replace(d.value, "."))), k = c),
|
|
2926
|
+
e.column.format === X.INTEGER ? (typeof c == "string" && (c = parseInt(c)), k = Math.round(c)) : (typeof c == "string" && (c = parseFloat(c.replace(d.value, "."))), k = c), b(null, isNaN(k) ? "" : k.toString());
|
|
2918
2927
|
}
|
|
2919
2928
|
function $(c) {
|
|
2920
|
-
|
|
2929
|
+
b(null, (c == null ? void 0 : c.toISOString()) ?? "");
|
|
2921
2930
|
}
|
|
2922
|
-
return (c, k) =>
|
|
2923
|
-
c.column.type === "boolean" || c.column.slotType === "boolean" ? (u(),
|
|
2931
|
+
return (c, k) => v.value ? (u(), y("div", nn, [
|
|
2932
|
+
c.column.type === "boolean" || c.column.slotType === "boolean" ? (u(), y("select", {
|
|
2924
2933
|
key: 0,
|
|
2925
2934
|
class: "!cl-h-[2rem] cl-border-none cl-mb-0 cl-rounded-md cl-w-full",
|
|
2926
|
-
onChange: k[0] || (k[0] = (
|
|
2935
|
+
onChange: k[0] || (k[0] = (C) => b(C.target))
|
|
2927
2936
|
}, [
|
|
2928
2937
|
an,
|
|
2929
2938
|
f("option", {
|
|
2930
2939
|
value: "true",
|
|
2931
2940
|
selected: s.value === "true"
|
|
2932
|
-
},
|
|
2941
|
+
}, _(p(n)("grid.true")), 9, sn),
|
|
2933
2942
|
f("option", {
|
|
2934
2943
|
value: "false",
|
|
2935
2944
|
selected: s.value === "false"
|
|
2936
|
-
},
|
|
2937
|
-
], 32)) : c.column.type === "date" || c.column.type === "datetime" || c.column.slotType === "date" || c.column.slotType === "datetime" ? (u(),
|
|
2945
|
+
}, _(p(n)("grid.false")), 9, rn)
|
|
2946
|
+
], 32)) : c.column.type === "date" || c.column.type === "datetime" || c.column.slotType === "date" || c.column.slotType === "datetime" ? (u(), z(re, {
|
|
2938
2947
|
key: 1,
|
|
2939
2948
|
"model-value": i.value,
|
|
2940
2949
|
class: "!cl-h-[2rem] !cl-text-xs cl-border-none cl-mb-0 cl-w-full lg:!cl-text-base",
|
|
@@ -2943,24 +2952,24 @@ const Zo = {
|
|
|
2943
2952
|
label: c.column.caption,
|
|
2944
2953
|
"show-label": !1,
|
|
2945
2954
|
"input-type": c.column.type === "slot" ? c.column.slotType : c.column.type,
|
|
2946
|
-
"onUpdate:modelValue": k[1] || (k[1] = (
|
|
2947
|
-
}, null, 8, ["model-value", "label", "input-type"])) : c.column.type === "number" || c.column.slotType === "number" ? (u(),
|
|
2955
|
+
"onUpdate:modelValue": k[1] || (k[1] = (C, O) => $(O))
|
|
2956
|
+
}, null, 8, ["model-value", "label", "input-type"])) : c.column.type === "number" || c.column.slotType === "number" ? (u(), z(re, {
|
|
2948
2957
|
key: 2,
|
|
2949
2958
|
"model-value": s.value,
|
|
2950
2959
|
class: "!cl-h-[2rem] !cl-text-xs cl-border-none cl-mb-0 cl-w-full lg:!cl-text-base",
|
|
2951
2960
|
"input-type": "number",
|
|
2952
2961
|
"show-arrows": !1,
|
|
2953
|
-
onInput: k[2] || (k[2] = (
|
|
2954
|
-
}, null, 8, ["model-value"])) : c.column.type === "string" || c.column.slotType === "string" ? (u(),
|
|
2962
|
+
onInput: k[2] || (k[2] = (C, O) => m(O))
|
|
2963
|
+
}, null, 8, ["model-value"])) : c.column.type === "string" || c.column.slotType === "string" ? (u(), z(re, {
|
|
2955
2964
|
key: 3,
|
|
2956
2965
|
"model-value": s.value,
|
|
2957
2966
|
class: "!cl-h-[2rem] !cl-text-xs cl-border-none cl-mb-0 cl-w-full lg:!cl-text-base",
|
|
2958
2967
|
"input-type": "text",
|
|
2959
|
-
onInput: k[3] || (k[3] = (
|
|
2968
|
+
onInput: k[3] || (k[3] = (C, O) => b(null, O))
|
|
2960
2969
|
}, null, 8, ["model-value"])) : M("", !0),
|
|
2961
|
-
|
|
2970
|
+
T(on, {
|
|
2962
2971
|
filter: r.value,
|
|
2963
|
-
"onUpdate:filter": k[4] || (k[4] = (
|
|
2972
|
+
"onUpdate:filter": k[4] || (k[4] = (C) => r.value = C),
|
|
2964
2973
|
column: c.column,
|
|
2965
2974
|
"default-operation": a(),
|
|
2966
2975
|
"first-half": c.firstHalf
|
|
@@ -2977,17 +2986,17 @@ const Zo = {
|
|
|
2977
2986
|
},
|
|
2978
2987
|
emits: ["update:request", "update:filterPanelOpen"],
|
|
2979
2988
|
setup(t, { emit: o }) {
|
|
2980
|
-
const e = t, { t: l } = le(), n =
|
|
2989
|
+
const e = t, { t: l } = le(), n = E({
|
|
2981
2990
|
get: () => e.request,
|
|
2982
2991
|
set: (i) => o("update:request", i)
|
|
2983
2992
|
});
|
|
2984
2993
|
function a(i, d) {
|
|
2985
|
-
var
|
|
2986
|
-
return ((
|
|
2994
|
+
var v, b;
|
|
2995
|
+
return ((v = n.value.sort) == null ? void 0 : v.sortOnColumn) === i.field && ((b = n.value.sort) == null ? void 0 : b.sortByAscending) === d;
|
|
2987
2996
|
}
|
|
2988
2997
|
function r(i) {
|
|
2989
2998
|
if (typeof i < "u") {
|
|
2990
|
-
const d =
|
|
2999
|
+
const d = ce(e.request);
|
|
2991
3000
|
d.sort === null || d.sort.sortOnColumn !== i ? d.sort = {
|
|
2992
3001
|
sortOnColumn: i,
|
|
2993
3002
|
sortByAscending: !0
|
|
@@ -2996,32 +3005,32 @@ const Zo = {
|
|
|
2996
3005
|
}
|
|
2997
3006
|
function s(i) {
|
|
2998
3007
|
if (i) {
|
|
2999
|
-
const d =
|
|
3000
|
-
|
|
3008
|
+
const d = ce(n.value), v = d.filters.findIndex((b) => b.filterOnColumn === i.filterOnColumn);
|
|
3009
|
+
v > -1 ? d.filters[v] = i : d.filters.push(i), d.pageNumber = 1, n.value = d;
|
|
3001
3010
|
}
|
|
3002
3011
|
}
|
|
3003
|
-
return (i, d) => (u(),
|
|
3012
|
+
return (i, d) => (u(), y("thead", un, [
|
|
3004
3013
|
f("tr", dn, [
|
|
3005
|
-
(u(!0),
|
|
3006
|
-
key:
|
|
3014
|
+
(u(!0), y(B, null, Y(i.columns, (v, b) => (u(), y("th", {
|
|
3015
|
+
key: b,
|
|
3007
3016
|
class: I(["cl-text-grey-3 cl-text-sm", {
|
|
3008
|
-
"cl-cursor-pointer": p(Oe)(
|
|
3017
|
+
"cl-cursor-pointer": p(Oe)(v)
|
|
3009
3018
|
}]),
|
|
3010
|
-
onClick: (m) => p(Oe)(
|
|
3019
|
+
onClick: (m) => p(Oe)(v) ? r(v.field) : () => {
|
|
3011
3020
|
}
|
|
3012
3021
|
}, [
|
|
3013
|
-
Q(
|
|
3014
|
-
|
|
3022
|
+
Q(_(v.caption) + " ", 1),
|
|
3023
|
+
x(T(p(q), {
|
|
3015
3024
|
class: "cl-inline-block",
|
|
3016
3025
|
icon: "ph:caret-up"
|
|
3017
3026
|
}, null, 512), [
|
|
3018
|
-
[
|
|
3027
|
+
[U, a(v, !0)]
|
|
3019
3028
|
]),
|
|
3020
|
-
|
|
3029
|
+
x(T(p(q), {
|
|
3021
3030
|
class: "cl-inline-block",
|
|
3022
3031
|
icon: "ph:caret-down"
|
|
3023
3032
|
}, null, 512), [
|
|
3024
|
-
[
|
|
3033
|
+
[U, a(v, !1)]
|
|
3025
3034
|
])
|
|
3026
3035
|
], 10, fn))), 128))
|
|
3027
3036
|
]),
|
|
@@ -3031,45 +3040,45 @@ const Zo = {
|
|
|
3031
3040
|
}])
|
|
3032
3041
|
}, [
|
|
3033
3042
|
f("div", pn, [
|
|
3034
|
-
|
|
3043
|
+
T(p(q), {
|
|
3035
3044
|
class: "cl-text-grey-4 hover:cl-cursor-pointer hover:cl-text-link-default",
|
|
3036
3045
|
icon: "ph:x",
|
|
3037
3046
|
size: 16,
|
|
3038
|
-
onClick: d[0] || (d[0] = K((
|
|
3047
|
+
onClick: d[0] || (d[0] = K((v) => i.$emit("update:filterPanelOpen", !1), ["prevent"]))
|
|
3039
3048
|
})
|
|
3040
3049
|
]),
|
|
3041
|
-
(u(!0),
|
|
3042
|
-
key:
|
|
3050
|
+
(u(!0), y(B, null, Y(i.columns, (v, b) => (u(), y("th", {
|
|
3051
|
+
key: b,
|
|
3043
3052
|
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", {
|
|
3044
|
-
"cl-hidden lg:cl-table-cell": !p(
|
|
3053
|
+
"cl-hidden lg:cl-table-cell": !p(Pe)(v)
|
|
3045
3054
|
}])
|
|
3046
3055
|
}, [
|
|
3047
|
-
f("div", mn,
|
|
3048
|
-
p(Oe)(
|
|
3056
|
+
f("div", mn, _(v.caption), 1),
|
|
3057
|
+
p(Oe)(v) ? (u(), y("div", {
|
|
3049
3058
|
key: 0,
|
|
3050
3059
|
class: "cl-col-span-2 cl-gap-1 cl-span lg:cl-hidden",
|
|
3051
|
-
onClick: (m) => r(
|
|
3060
|
+
onClick: (m) => r(v.field)
|
|
3052
3061
|
}, [
|
|
3053
|
-
f("span", vn,
|
|
3054
|
-
a(
|
|
3062
|
+
f("span", vn, _(p(l)("grid.sortBy")), 1),
|
|
3063
|
+
a(v, !0) ? (u(), z(p(q), {
|
|
3055
3064
|
key: 0,
|
|
3056
3065
|
class: "cl-cursor-pointer cl-inline-block",
|
|
3057
3066
|
icon: "ph:caret-up"
|
|
3058
|
-
})) : a(
|
|
3067
|
+
})) : a(v, !1) ? (u(), z(p(q), {
|
|
3059
3068
|
key: 1,
|
|
3060
3069
|
class: "cl-cursor-pointer cl-inline-block",
|
|
3061
3070
|
icon: "ph:caret-down"
|
|
3062
|
-
})) : (u(),
|
|
3071
|
+
})) : (u(), z(p(q), {
|
|
3063
3072
|
key: 2,
|
|
3064
3073
|
class: "cl-cursor-pointer cl-inline-block",
|
|
3065
3074
|
icon: "ph:minus"
|
|
3066
3075
|
}))
|
|
3067
3076
|
], 8, gn)) : M("", !0),
|
|
3068
|
-
|
|
3077
|
+
T(cn, {
|
|
3069
3078
|
class: "cl-col-span-4",
|
|
3070
|
-
filter: n.value.filters.find((m) => m.filterOnColumn ===
|
|
3071
|
-
column:
|
|
3072
|
-
"first-half":
|
|
3079
|
+
filter: n.value.filters.find((m) => m.filterOnColumn === v.field),
|
|
3080
|
+
column: v,
|
|
3081
|
+
"first-half": b <= i.columns.length / 2,
|
|
3073
3082
|
"onUpdate:filter": s
|
|
3074
3083
|
}, null, 8, ["filter", "column", "first-half"])
|
|
3075
3084
|
], 2))), 128))
|
|
@@ -3086,80 +3095,80 @@ const Zo = {
|
|
|
3086
3095
|
},
|
|
3087
3096
|
emits: ["update:columns"],
|
|
3088
3097
|
setup(t, { emit: o }) {
|
|
3089
|
-
const e = t, { t: l } = le(), n =
|
|
3090
|
-
function a(i, d,
|
|
3091
|
-
|
|
3098
|
+
const e = t, { t: l } = le(), n = S(!1);
|
|
3099
|
+
function a(i, d, v) {
|
|
3100
|
+
v < i.length && v >= 0 && i.splice(v, 0, i.splice(d, 1)[0]);
|
|
3092
3101
|
}
|
|
3093
3102
|
function r(i, d) {
|
|
3094
|
-
const
|
|
3095
|
-
m >= 0 && (
|
|
3103
|
+
const v = ce(e.columns), b = (i == null ? void 0 : i.checked) ?? !1, m = v.findIndex(($) => $.name === d.name);
|
|
3104
|
+
m >= 0 && (v[m].visible = b), o("update:columns", v);
|
|
3096
3105
|
}
|
|
3097
3106
|
function s(i, d) {
|
|
3098
|
-
const
|
|
3099
|
-
a(
|
|
3107
|
+
const v = ce(e.columns), b = d === "up" ? i + 1 : i - 1;
|
|
3108
|
+
a(v, i, b), o("update:columns", v);
|
|
3100
3109
|
}
|
|
3101
|
-
return (i, d) => (u(),
|
|
3102
|
-
|
|
3110
|
+
return (i, d) => (u(), y(B, null, [
|
|
3111
|
+
T(me, ie(i.$attrs, {
|
|
3103
3112
|
class: "cl-w-full",
|
|
3104
3113
|
size: "small",
|
|
3105
|
-
onClick: d[0] || (d[0] = K((
|
|
3114
|
+
onClick: d[0] || (d[0] = K((v) => n.value = !0, ["prevent"]))
|
|
3106
3115
|
}), {
|
|
3107
|
-
default:
|
|
3108
|
-
Q(
|
|
3116
|
+
default: L(() => [
|
|
3117
|
+
Q(_(p(l)("grid.manageView")), 1)
|
|
3109
3118
|
]),
|
|
3110
3119
|
_: 1
|
|
3111
3120
|
}, 16),
|
|
3112
|
-
(u(),
|
|
3113
|
-
|
|
3114
|
-
default:
|
|
3115
|
-
|
|
3121
|
+
(u(), z(Be, { to: "body" }, [
|
|
3122
|
+
T(ge, { name: "slide-left" }, {
|
|
3123
|
+
default: L(() => [
|
|
3124
|
+
x(f("div", hn, [
|
|
3116
3125
|
f("div", yn, [
|
|
3117
|
-
|
|
3126
|
+
T(p(q), {
|
|
3118
3127
|
class: "cl-absolute cl-cursor-pointer cl-right-3 cl-text-off-white cl-top-3",
|
|
3119
3128
|
icon: "ph:x",
|
|
3120
3129
|
size: 16,
|
|
3121
|
-
onClick: d[1] || (d[1] = (
|
|
3130
|
+
onClick: d[1] || (d[1] = (v) => n.value = !1)
|
|
3122
3131
|
}),
|
|
3123
|
-
f("h3", wn,
|
|
3132
|
+
f("h3", wn, _(p(l)("grid.manageView")), 1),
|
|
3124
3133
|
f("ul", $n, [
|
|
3125
3134
|
f("li", kn, [
|
|
3126
|
-
f("strong", Tn,
|
|
3127
|
-
f("strong", Cn,
|
|
3128
|
-
f("strong", _n,
|
|
3135
|
+
f("strong", Tn, _(p(l)("grid.column")), 1),
|
|
3136
|
+
f("strong", Cn, _(p(l)("grid.visible")), 1),
|
|
3137
|
+
f("strong", _n, _(p(l)("grid.order")), 1)
|
|
3129
3138
|
]),
|
|
3130
|
-
(u(!0),
|
|
3131
|
-
key:
|
|
3139
|
+
(u(!0), y(B, null, Y(i.columns, (v, b) => (u(), y("li", {
|
|
3140
|
+
key: b,
|
|
3132
3141
|
class: "cl-border-b cl-border-grey-2 cl-flex cl-py-2 cl-text-sm cl-w-full"
|
|
3133
3142
|
}, [
|
|
3134
|
-
f("div", Sn,
|
|
3143
|
+
f("div", Sn, _(v.caption), 1),
|
|
3135
3144
|
f("div", On, [
|
|
3136
|
-
|
|
3137
|
-
"model-value":
|
|
3145
|
+
T(re, {
|
|
3146
|
+
"model-value": v.visible === void 0 || v.visible === !0,
|
|
3138
3147
|
"input-type": "checkbox",
|
|
3139
|
-
onClick: (m) => r(m.target,
|
|
3148
|
+
onClick: (m) => r(m.target, v)
|
|
3140
3149
|
}, null, 8, ["model-value", "onClick"])
|
|
3141
3150
|
]),
|
|
3142
3151
|
f("div", En, [
|
|
3143
|
-
|
|
3144
|
-
|
|
3152
|
+
v.visible === void 0 || v.visible === !0 ? (u(), y(B, { key: 0 }, [
|
|
3153
|
+
b !== 0 ? (u(), z(p(q), {
|
|
3145
3154
|
key: 0,
|
|
3146
3155
|
class: "cl-cursor-pointer cl-inline-block cl-mr-2",
|
|
3147
3156
|
icon: "ph:arrow-left",
|
|
3148
|
-
onClick: (m) => s(
|
|
3157
|
+
onClick: (m) => s(b, "down")
|
|
3149
3158
|
}, null, 8, ["onClick"])) : M("", !0),
|
|
3150
|
-
|
|
3159
|
+
b !== i.columns.length - 1 ? (u(), z(p(q), {
|
|
3151
3160
|
key: 1,
|
|
3152
3161
|
class: "cl-cursor-pointer cl-inline-block",
|
|
3153
3162
|
icon: "ph:arrow-right",
|
|
3154
|
-
onClick: (m) => s(
|
|
3163
|
+
onClick: (m) => s(b, "up")
|
|
3155
3164
|
}, null, 8, ["onClick"])) : M("", !0)
|
|
3156
|
-
], 64)) : (u(),
|
|
3165
|
+
], 64)) : (u(), y("em", An, _(p(l)("grid.hidden")), 1))
|
|
3157
3166
|
])
|
|
3158
3167
|
]))), 128))
|
|
3159
3168
|
])
|
|
3160
3169
|
])
|
|
3161
3170
|
], 512), [
|
|
3162
|
-
[
|
|
3171
|
+
[U, n.value]
|
|
3163
3172
|
])
|
|
3164
3173
|
]),
|
|
3165
3174
|
_: 1
|
|
@@ -3178,64 +3187,64 @@ const Zo = {
|
|
|
3178
3187
|
},
|
|
3179
3188
|
emits: ["update:columns", "update:request", "data-request", "row-edit", "edit-start", "edit-end", "row-select"],
|
|
3180
3189
|
setup(t, { emit: o }) {
|
|
3181
|
-
const e = t, l =
|
|
3190
|
+
const e = t, l = E({
|
|
3182
3191
|
get: () => e.columns,
|
|
3183
3192
|
set: (c) => o("update:columns", c)
|
|
3184
|
-
}), n =
|
|
3193
|
+
}), n = E(() => l.value.filter((c) => c.visible ?? !0)), a = S({});
|
|
3185
3194
|
function r() {
|
|
3186
3195
|
const c = {};
|
|
3187
3196
|
window.innerWidth >= 1024 && l.value.forEach((k) => {
|
|
3188
|
-
const
|
|
3189
|
-
c[`${k.name}`] = `width: ${
|
|
3197
|
+
const C = k.width ? `${k.width}px` : "";
|
|
3198
|
+
c[`${k.name}`] = `width: ${C}; min-width: ${C};`;
|
|
3190
3199
|
}), a.value = c;
|
|
3191
3200
|
}
|
|
3192
3201
|
function s(c) {
|
|
3193
3202
|
return a.value[c] ?? "";
|
|
3194
3203
|
}
|
|
3195
|
-
|
|
3204
|
+
Ce(() => {
|
|
3196
3205
|
window.addEventListener("resize", r), r();
|
|
3197
3206
|
}), Ae(() => window.removeEventListener("resize", r));
|
|
3198
|
-
const i =
|
|
3207
|
+
const i = E({
|
|
3199
3208
|
get: () => e.request,
|
|
3200
3209
|
set: (c) => o("update:request", c)
|
|
3201
3210
|
});
|
|
3202
3211
|
function d() {
|
|
3203
|
-
const c =
|
|
3212
|
+
const c = ce(i.value);
|
|
3204
3213
|
c.pageNumber = 1, c.filters = [], i.value = c;
|
|
3205
3214
|
}
|
|
3206
|
-
const
|
|
3207
|
-
|
|
3215
|
+
const v = ol(() => o("data-request"), 750);
|
|
3216
|
+
H(i, v, {
|
|
3208
3217
|
deep: !0,
|
|
3209
3218
|
immediate: !0
|
|
3210
3219
|
});
|
|
3211
|
-
const
|
|
3212
|
-
return
|
|
3220
|
+
const b = E(() => e.data), m = S(!1), $ = S(!1);
|
|
3221
|
+
return H(m, () => {
|
|
3213
3222
|
m.value ? o("edit-start") : o("edit-end");
|
|
3214
|
-
}), (c, k) => (u(),
|
|
3215
|
-
|
|
3216
|
-
default:
|
|
3217
|
-
|
|
3218
|
-
|
|
3223
|
+
}), (c, k) => (u(), y("div", In, [
|
|
3224
|
+
T(ge, { name: "fade" }, {
|
|
3225
|
+
default: L(() => [
|
|
3226
|
+
x(f("div", Nn, [
|
|
3227
|
+
T(je)
|
|
3219
3228
|
], 512), [
|
|
3220
|
-
[
|
|
3229
|
+
[U, c.loading]
|
|
3221
3230
|
])
|
|
3222
3231
|
]),
|
|
3223
3232
|
_: 1
|
|
3224
3233
|
}),
|
|
3225
|
-
|
|
3234
|
+
T(fo, {
|
|
3226
3235
|
"edit-mode": m.value,
|
|
3227
|
-
"onUpdate:editMode": k[1] || (k[1] = (
|
|
3236
|
+
"onUpdate:editMode": k[1] || (k[1] = (C) => m.value = C),
|
|
3228
3237
|
"filter-panel-open": $.value,
|
|
3229
|
-
"onUpdate:filterPanelOpen": k[2] || (k[2] = (
|
|
3238
|
+
"onUpdate:filterPanelOpen": k[2] || (k[2] = (C) => $.value = C),
|
|
3230
3239
|
columns: c.columns,
|
|
3231
3240
|
options: c.options,
|
|
3232
3241
|
request: c.request,
|
|
3233
3242
|
onClearFilters: d
|
|
3234
3243
|
}, {
|
|
3235
|
-
"view-manager":
|
|
3236
|
-
|
|
3244
|
+
"view-manager": L(() => [
|
|
3245
|
+
T(Mn, {
|
|
3237
3246
|
columns: l.value,
|
|
3238
|
-
"onUpdate:columns": k[0] || (k[0] = (
|
|
3247
|
+
"onUpdate:columns": k[0] || (k[0] = (C) => l.value = C)
|
|
3239
3248
|
}, null, 8, ["columns"])
|
|
3240
3249
|
]),
|
|
3241
3250
|
_: 1
|
|
@@ -3247,52 +3256,52 @@ const Zo = {
|
|
|
3247
3256
|
}])
|
|
3248
3257
|
}, [
|
|
3249
3258
|
f("colgroup", Dn, [
|
|
3250
|
-
(u(!0),
|
|
3251
|
-
key:
|
|
3252
|
-
style:
|
|
3259
|
+
(u(!0), y(B, null, Y(n.value, (C, O) => (u(), y("col", {
|
|
3260
|
+
key: O,
|
|
3261
|
+
style: ll(s(C.name)),
|
|
3253
3262
|
span: 1
|
|
3254
3263
|
}, null, 4))), 128))
|
|
3255
3264
|
]),
|
|
3256
|
-
|
|
3265
|
+
T(bn, {
|
|
3257
3266
|
request: i.value,
|
|
3258
|
-
"onUpdate:request": k[3] || (k[3] = (
|
|
3267
|
+
"onUpdate:request": k[3] || (k[3] = (C) => i.value = C),
|
|
3259
3268
|
"filter-panel-open": $.value,
|
|
3260
|
-
"onUpdate:filterPanelOpen": k[4] || (k[4] = (
|
|
3269
|
+
"onUpdate:filterPanelOpen": k[4] || (k[4] = (C) => $.value = C),
|
|
3261
3270
|
columns: n.value,
|
|
3262
3271
|
options: c.options
|
|
3263
3272
|
}, null, 8, ["request", "filter-panel-open", "columns", "options"]),
|
|
3264
|
-
|
|
3273
|
+
T(Co, {
|
|
3265
3274
|
columns: n.value,
|
|
3266
3275
|
request: i.value,
|
|
3267
|
-
data:
|
|
3276
|
+
data: b.value,
|
|
3268
3277
|
loading: c.loading,
|
|
3269
3278
|
"edit-mode": m.value,
|
|
3270
3279
|
"selection-enabled": c.options.rowSelectionEnabled,
|
|
3271
3280
|
onClearFilters: d,
|
|
3272
|
-
onRowEdit: k[5] || (k[5] = (
|
|
3273
|
-
onRowSelect: k[6] || (k[6] = (
|
|
3281
|
+
onRowEdit: k[5] || (k[5] = (C) => c.$emit("row-edit", C)),
|
|
3282
|
+
onRowSelect: k[6] || (k[6] = (C) => c.$emit("row-select", C))
|
|
3274
3283
|
}, ze({ _: 2 }, [
|
|
3275
|
-
Y(c.$slots, (
|
|
3276
|
-
name:
|
|
3277
|
-
fn:
|
|
3278
|
-
j(c.$slots,
|
|
3284
|
+
Y(c.$slots, (C, O) => ({
|
|
3285
|
+
name: O,
|
|
3286
|
+
fn: L((V) => [
|
|
3287
|
+
j(c.$slots, O, ee(se(V)))
|
|
3279
3288
|
])
|
|
3280
3289
|
}))
|
|
3281
3290
|
]), 1032, ["columns", "request", "data", "loading", "edit-mode", "selection-enabled"])
|
|
3282
3291
|
], 2)
|
|
3283
3292
|
]),
|
|
3284
|
-
|
|
3293
|
+
T(Lo, {
|
|
3285
3294
|
request: i.value,
|
|
3286
|
-
"onUpdate:request": k[7] || (k[7] = (
|
|
3295
|
+
"onUpdate:request": k[7] || (k[7] = (C) => i.value = C),
|
|
3287
3296
|
data: c.data
|
|
3288
3297
|
}, null, 8, ["request", "data"])
|
|
3289
3298
|
]));
|
|
3290
3299
|
}
|
|
3291
|
-
}),
|
|
3300
|
+
}), xn = { 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" }, Un = /* @__PURE__ */ D({
|
|
3292
3301
|
__name: "cl-ui-header",
|
|
3293
3302
|
emits: ["open-click"],
|
|
3294
3303
|
setup(t) {
|
|
3295
|
-
return (o, e) => (u(),
|
|
3304
|
+
return (o, e) => (u(), y("header", xn, [
|
|
3296
3305
|
j(o.$slots, "logo"),
|
|
3297
3306
|
f("div", {
|
|
3298
3307
|
class: "cl-cursor-pointer cl-flex cl-flex-nowrap",
|
|
@@ -3303,7 +3312,7 @@ const Zo = {
|
|
|
3303
3312
|
])
|
|
3304
3313
|
]));
|
|
3305
3314
|
}
|
|
3306
|
-
}),
|
|
3315
|
+
}), Bn = { 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]" }, zn = ["src"], Ln = {
|
|
3307
3316
|
key: 0,
|
|
3308
3317
|
class: "cl-text-ellipsis cl-whitespace-nowrap"
|
|
3309
3318
|
}, Pn = {
|
|
@@ -3320,12 +3329,12 @@ const Zo = {
|
|
|
3320
3329
|
},
|
|
3321
3330
|
emits: ["update:is-open"],
|
|
3322
3331
|
setup(t, { emit: o }) {
|
|
3323
|
-
const e = t, l =
|
|
3324
|
-
|
|
3332
|
+
const e = t, l = S();
|
|
3333
|
+
Le(l, n);
|
|
3325
3334
|
function n() {
|
|
3326
3335
|
e.isOpen === !0 && o("update:is-open", !1);
|
|
3327
3336
|
}
|
|
3328
|
-
return (a, r) => (u(),
|
|
3337
|
+
return (a, r) => (u(), y("div", {
|
|
3329
3338
|
ref_key: "headerMenuElement",
|
|
3330
3339
|
ref: l,
|
|
3331
3340
|
class: I(["md:cl-relative", {
|
|
@@ -3333,12 +3342,12 @@ const Zo = {
|
|
|
3333
3342
|
"cl-bg-blue-light": e.colour === "secondary"
|
|
3334
3343
|
}])
|
|
3335
3344
|
}, [
|
|
3336
|
-
f("div",
|
|
3337
|
-
a.image ? (u(),
|
|
3345
|
+
f("div", Bn, [
|
|
3346
|
+
a.image ? (u(), y("img", {
|
|
3338
3347
|
key: 0,
|
|
3339
3348
|
src: a.image,
|
|
3340
3349
|
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"
|
|
3341
|
-
}, null, 8, zn)) : (u(),
|
|
3350
|
+
}, null, 8, zn)) : (u(), z(p(q), {
|
|
3342
3351
|
key: 1,
|
|
3343
3352
|
class: "cl-hidden cl-m-4 cl-text-white md:cl-block",
|
|
3344
3353
|
icon: "ph:user-circle",
|
|
@@ -3351,11 +3360,11 @@ const Zo = {
|
|
|
3351
3360
|
"cl-text-white": e.colour === "secondary"
|
|
3352
3361
|
}])
|
|
3353
3362
|
}, [
|
|
3354
|
-
a.username ? (u(),
|
|
3355
|
-
a.group ? (u(),
|
|
3363
|
+
a.username ? (u(), y("div", Ln, _(a.username), 1)) : M("", !0),
|
|
3364
|
+
a.group ? (u(), y("div", Pn, _(a.group), 1)) : M("", !0)
|
|
3356
3365
|
], 2),
|
|
3357
3366
|
f("div", Fn, [
|
|
3358
|
-
|
|
3367
|
+
T(p(q), {
|
|
3359
3368
|
class: I(["cl-transform-gpu cl-transition-transform", {
|
|
3360
3369
|
"cl-rotate-180": a.isOpen,
|
|
3361
3370
|
"cl-text-secondary-default": e.colour === "default",
|
|
@@ -3365,12 +3374,12 @@ const Zo = {
|
|
|
3365
3374
|
}, null, 8, ["class"])
|
|
3366
3375
|
])
|
|
3367
3376
|
]),
|
|
3368
|
-
|
|
3369
|
-
default:
|
|
3370
|
-
|
|
3377
|
+
T(ge, { name: "fade" }, {
|
|
3378
|
+
default: L(() => [
|
|
3379
|
+
x(f("div", Vn, [
|
|
3371
3380
|
j(a.$slots, "default")
|
|
3372
3381
|
], 512), [
|
|
3373
|
-
[
|
|
3382
|
+
[U, a.isOpen]
|
|
3374
3383
|
])
|
|
3375
3384
|
]),
|
|
3376
3385
|
_: 3
|
|
@@ -3397,7 +3406,7 @@ const Zo = {
|
|
|
3397
3406
|
"time",
|
|
3398
3407
|
"url"
|
|
3399
3408
|
];
|
|
3400
|
-
function
|
|
3409
|
+
function Ue(t) {
|
|
3401
3410
|
return /[a-z]{2}-[A-Z]{2}/gm.test(t.localeCode);
|
|
3402
3411
|
}
|
|
3403
3412
|
function Wn(t) {
|
|
@@ -3426,13 +3435,13 @@ const Kn = {
|
|
|
3426
3435
|
},
|
|
3427
3436
|
emits: ["language-select"],
|
|
3428
3437
|
setup(t, { emit: o }) {
|
|
3429
|
-
const e = t, { locale: l } = le(), n =
|
|
3438
|
+
const e = t, { locale: l } = le(), n = S(!1), a = E(() => e.supportedLanguages.find((i) => i.localeCode === l.value) ?? e.defaultLangauge), r = E(() => e.supportedLanguages.filter((i) => Ue(i)).sort((i, d) => i.nativeName > d.nativeName ? 1 : d.nativeName > i.nativeName ? -1 : 0));
|
|
3430
3439
|
function s() {
|
|
3431
3440
|
e.disabled || (n.value = !n.value);
|
|
3432
3441
|
}
|
|
3433
|
-
return
|
|
3442
|
+
return H(() => e.disabled, (i) => {
|
|
3434
3443
|
i && (n.value = !1);
|
|
3435
|
-
}), (i, d) => a.value !== null && p(
|
|
3444
|
+
}), (i, d) => a.value !== null && p(Ue)(a.value) ? (u(), y("div", Kn, [
|
|
3436
3445
|
f("div", {
|
|
3437
3446
|
class: I(["cl-flex cl-items-center", {
|
|
3438
3447
|
"cl-cursor-pointer": !i.disabled
|
|
@@ -3443,24 +3452,24 @@ const Kn = {
|
|
|
3443
3452
|
class: I(["cl-font-semibold cl-text-xs", {
|
|
3444
3453
|
"cl-opacity-50": i.disabled
|
|
3445
3454
|
}])
|
|
3446
|
-
},
|
|
3455
|
+
}, _(a.value.nativeName), 3)
|
|
3447
3456
|
], 2),
|
|
3448
|
-
|
|
3449
|
-
default:
|
|
3450
|
-
|
|
3451
|
-
(u(!0),
|
|
3452
|
-
key:
|
|
3457
|
+
T(ge, { name: "fade" }, {
|
|
3458
|
+
default: L(() => [
|
|
3459
|
+
x(f("div", Zn, [
|
|
3460
|
+
(u(!0), y(B, null, Y(r.value, (v, b) => (u(), y("div", {
|
|
3461
|
+
key: b,
|
|
3453
3462
|
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",
|
|
3454
|
-
"data-localename":
|
|
3455
|
-
"data-localecode":
|
|
3463
|
+
"data-localename": v.name,
|
|
3464
|
+
"data-localecode": v.localeCode,
|
|
3456
3465
|
onClick: (m) => {
|
|
3457
|
-
l.value =
|
|
3466
|
+
l.value = v.localeCode, s(), o("language-select", v.localeCode);
|
|
3458
3467
|
}
|
|
3459
3468
|
}, [
|
|
3460
|
-
f("span", Yn,
|
|
3469
|
+
f("span", Yn, _(v.nativeName), 1)
|
|
3461
3470
|
], 8, Qn))), 128))
|
|
3462
3471
|
], 512), [
|
|
3463
|
-
[
|
|
3472
|
+
[U, n.value]
|
|
3464
3473
|
])
|
|
3465
3474
|
]),
|
|
3466
3475
|
_: 1
|
|
@@ -3481,52 +3490,52 @@ const Kn = {
|
|
|
3481
3490
|
"update:errors": null
|
|
3482
3491
|
},
|
|
3483
3492
|
setup(t, { emit: o }) {
|
|
3484
|
-
const { t: e } = le(), l =
|
|
3493
|
+
const { t: e } = le(), l = S(""), n = S(""), a = S("password"), r = S();
|
|
3485
3494
|
function s() {
|
|
3486
|
-
const
|
|
3495
|
+
const b = {
|
|
3487
3496
|
username: l.value,
|
|
3488
3497
|
password: n.value
|
|
3489
3498
|
};
|
|
3490
|
-
o("login",
|
|
3499
|
+
o("login", b);
|
|
3491
3500
|
}
|
|
3492
3501
|
function i() {
|
|
3493
3502
|
o("update:errors", []);
|
|
3494
3503
|
}
|
|
3495
|
-
function d(
|
|
3504
|
+
function d(b, m) {
|
|
3496
3505
|
const $ = {
|
|
3497
3506
|
valid: !0,
|
|
3498
3507
|
message: ""
|
|
3499
3508
|
};
|
|
3500
3509
|
return typeof m == "string" && m.trim() === "" && ($.valid = !1), $;
|
|
3501
3510
|
}
|
|
3502
|
-
function
|
|
3503
|
-
r.value =
|
|
3511
|
+
function v(b, m) {
|
|
3512
|
+
r.value = b;
|
|
3504
3513
|
}
|
|
3505
|
-
return (
|
|
3514
|
+
return (b, m) => (u(), y("div", ea, [
|
|
3506
3515
|
f("div", la, [
|
|
3507
|
-
j(
|
|
3516
|
+
j(b.$slots, "background")
|
|
3508
3517
|
]),
|
|
3509
3518
|
f("form", ta, [
|
|
3510
3519
|
f("div", oa, [
|
|
3511
|
-
j(
|
|
3520
|
+
j(b.$slots, "logo")
|
|
3512
3521
|
]),
|
|
3513
|
-
|
|
3514
|
-
j(
|
|
3522
|
+
b.$slots["language-switcher"] ? (u(), y("div", na, [
|
|
3523
|
+
j(b.$slots, "language-switcher")
|
|
3515
3524
|
])) : M("", !0),
|
|
3516
3525
|
f("div", {
|
|
3517
3526
|
class: I(["cl-gap-y-4 cl-grid cl-grid-cols-1 lg:cl-gap-x-2 lg:cl-grid-cols-8", {
|
|
3518
|
-
"cl-col-span-7": !
|
|
3519
|
-
"cl-col-span-6":
|
|
3527
|
+
"cl-col-span-7": !b.$slots["language-switcher"],
|
|
3528
|
+
"cl-col-span-6": b.$slots["language-switcher"]
|
|
3520
3529
|
}])
|
|
3521
3530
|
}, [
|
|
3522
3531
|
f("div", aa, [
|
|
3523
3532
|
f("div", sa, [
|
|
3524
|
-
|
|
3533
|
+
T(p(q), {
|
|
3525
3534
|
class: "cl-absolute cl-left-3 cl-top-2.5",
|
|
3526
3535
|
icon: "ph:user",
|
|
3527
3536
|
size: 18
|
|
3528
3537
|
}),
|
|
3529
|
-
|
|
3538
|
+
T(re, {
|
|
3530
3539
|
modelValue: l.value,
|
|
3531
3540
|
"onUpdate:modelValue": m[0] || (m[0] = ($) => l.value = $),
|
|
3532
3541
|
modelModifiers: { trim: !0 },
|
|
@@ -3542,34 +3551,34 @@ const Kn = {
|
|
|
3542
3551
|
"input-specific-classes": "!cl-pl-9",
|
|
3543
3552
|
"message-when-valid": l.value ? p(e)("login.validEmail") : "",
|
|
3544
3553
|
onInput: i,
|
|
3545
|
-
onValidated:
|
|
3554
|
+
onValidated: v
|
|
3546
3555
|
}, null, 8, ["modelValue", "highlight-when-valid", "label", "placeholder-text", "message-when-valid"])
|
|
3547
3556
|
])
|
|
3548
3557
|
]),
|
|
3549
3558
|
f("div", ra, [
|
|
3550
3559
|
f("div", ca, [
|
|
3551
|
-
|
|
3560
|
+
T(p(q), {
|
|
3552
3561
|
class: "cl-absolute cl-left-3 cl-top-2.5",
|
|
3553
3562
|
icon: "ph:lock",
|
|
3554
3563
|
size: 18
|
|
3555
3564
|
}),
|
|
3556
|
-
|
|
3565
|
+
x(T(p(q), {
|
|
3557
3566
|
class: "cl-absolute cl-cursor-pointer cl-right-6 cl-top-2.5",
|
|
3558
3567
|
icon: "ph:eye",
|
|
3559
3568
|
size: 18,
|
|
3560
3569
|
onClick: m[1] || (m[1] = ($) => a.value = "text")
|
|
3561
3570
|
}, null, 512), [
|
|
3562
|
-
[
|
|
3571
|
+
[U, a.value === "password"]
|
|
3563
3572
|
]),
|
|
3564
|
-
|
|
3573
|
+
x(T(p(q), {
|
|
3565
3574
|
class: "cl-absolute cl-cursor-pointer cl-right-6 cl-top-2.5",
|
|
3566
3575
|
icon: "ph:eye-slash",
|
|
3567
3576
|
size: 18,
|
|
3568
3577
|
onClick: m[2] || (m[2] = ($) => a.value = "password")
|
|
3569
3578
|
}, null, 512), [
|
|
3570
|
-
[
|
|
3579
|
+
[U, a.value === "text"]
|
|
3571
3580
|
]),
|
|
3572
|
-
|
|
3581
|
+
T(re, {
|
|
3573
3582
|
modelValue: n.value,
|
|
3574
3583
|
"onUpdate:modelValue": m[3] || (m[3] = ($) => n.value = $),
|
|
3575
3584
|
class: "!cl-border-2 cl-w-full",
|
|
@@ -3588,34 +3597,34 @@ const Kn = {
|
|
|
3588
3597
|
]),
|
|
3589
3598
|
f("div", {
|
|
3590
3599
|
class: I(["cl-col-span-2", {
|
|
3591
|
-
"cl-mt-1.5 cl-mb-1 md:cl-mt-0.5 md:cl-mb-7 lg:cl-mb-0":
|
|
3600
|
+
"cl-mt-1.5 cl-mb-1 md:cl-mt-0.5 md:cl-mb-7 lg:cl-mb-0": b.loading
|
|
3592
3601
|
}])
|
|
3593
3602
|
}, [
|
|
3594
|
-
|
|
3603
|
+
T(me, {
|
|
3595
3604
|
class: "cl-w-full",
|
|
3596
3605
|
colour: "blue",
|
|
3597
|
-
loading:
|
|
3606
|
+
loading: b.loading,
|
|
3598
3607
|
disabled: !r.value || n.value === "",
|
|
3599
3608
|
onClick: K(s, ["prevent"])
|
|
3600
3609
|
}, {
|
|
3601
|
-
default:
|
|
3602
|
-
Q(
|
|
3610
|
+
default: L(() => [
|
|
3611
|
+
Q(_(p(e)("login.login")), 1)
|
|
3603
3612
|
]),
|
|
3604
3613
|
_: 1
|
|
3605
3614
|
}, 8, ["loading", "disabled", "onClick"])
|
|
3606
3615
|
], 2)
|
|
3607
3616
|
], 2),
|
|
3608
|
-
|
|
3609
|
-
default:
|
|
3617
|
+
T(ge, { name: "cl-grow-down" }, {
|
|
3618
|
+
default: L(() => {
|
|
3610
3619
|
var $;
|
|
3611
3620
|
return [
|
|
3612
|
-
|
|
3613
|
-
(u(!0),
|
|
3621
|
+
x(f("span", ia, [
|
|
3622
|
+
(u(!0), y(B, null, Y(b.errors, (c, k) => (u(), y("div", {
|
|
3614
3623
|
key: k,
|
|
3615
3624
|
class: "cl-font-semibold"
|
|
3616
|
-
},
|
|
3625
|
+
}, _(c), 1))), 128))
|
|
3617
3626
|
], 512), [
|
|
3618
|
-
[
|
|
3627
|
+
[U, ($ = b.errors) == null ? void 0 : $.length]
|
|
3619
3628
|
])
|
|
3620
3629
|
];
|
|
3621
3630
|
}),
|
|
@@ -3642,7 +3651,7 @@ const Kn = {
|
|
|
3642
3651
|
colour: { default: "default" }
|
|
3643
3652
|
},
|
|
3644
3653
|
setup(t) {
|
|
3645
|
-
const o =
|
|
3654
|
+
const o = S([]), e = E(() => o.value.filter((m) => m.open === !0).length > 0);
|
|
3646
3655
|
function l(m) {
|
|
3647
3656
|
let $ = o.value.find((c) => c.id === m);
|
|
3648
3657
|
return $ || ($ = {
|
|
@@ -3656,8 +3665,8 @@ const Kn = {
|
|
|
3656
3665
|
c.id !== m && (c.open = !1);
|
|
3657
3666
|
}));
|
|
3658
3667
|
}
|
|
3659
|
-
const a =
|
|
3660
|
-
|
|
3668
|
+
const a = pl();
|
|
3669
|
+
H(
|
|
3661
3670
|
() => a,
|
|
3662
3671
|
() => {
|
|
3663
3672
|
r.value = !1;
|
|
@@ -3666,19 +3675,19 @@ const Kn = {
|
|
|
3666
3675
|
deep: !0
|
|
3667
3676
|
}
|
|
3668
3677
|
);
|
|
3669
|
-
const r =
|
|
3678
|
+
const r = S(!1), s = S(!1), { start: i } = tl(() => s.value = !1, 100);
|
|
3670
3679
|
function d() {
|
|
3671
3680
|
r.value = !r.value, s.value = !0, i();
|
|
3672
3681
|
}
|
|
3673
|
-
const
|
|
3674
|
-
function
|
|
3682
|
+
const v = S();
|
|
3683
|
+
function b() {
|
|
3675
3684
|
r.value === !1 && e.value === !0 && o.value.forEach((m) => {
|
|
3676
3685
|
m.open = !1;
|
|
3677
3686
|
});
|
|
3678
3687
|
}
|
|
3679
|
-
return
|
|
3688
|
+
return Le(v, b), (m, $) => (u(), y("div", {
|
|
3680
3689
|
ref_key: "navElement",
|
|
3681
|
-
ref:
|
|
3690
|
+
ref: v,
|
|
3682
3691
|
class: "cl-flex cl-flex-nowrap cl-relative"
|
|
3683
3692
|
}, [
|
|
3684
3693
|
f("div", {
|
|
@@ -3688,12 +3697,12 @@ const Kn = {
|
|
|
3688
3697
|
"cl-bg-blue-dark": m.colour === "secondary"
|
|
3689
3698
|
}])
|
|
3690
3699
|
}, [
|
|
3691
|
-
j(m.$slots, "icon",
|
|
3700
|
+
j(m.$slots, "icon", ie({ navcolour: m.colour }, { groupIsOpen: l, toggleOpen: n }), void 0, !0)
|
|
3692
3701
|
], 2),
|
|
3693
|
-
s.value ? (u(),
|
|
3694
|
-
|
|
3695
|
-
default:
|
|
3696
|
-
|
|
3702
|
+
s.value ? (u(), y("div", pa)) : M("", !0),
|
|
3703
|
+
T(ge, { name: "slide-right" }, {
|
|
3704
|
+
default: L(() => [
|
|
3705
|
+
x(f("div", {
|
|
3697
3706
|
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", {
|
|
3698
3707
|
"cl-relative": r.value,
|
|
3699
3708
|
"cl-absolute cl-left-20 cl-shadow-lg": !r.value
|
|
@@ -3704,18 +3713,18 @@ const Kn = {
|
|
|
3704
3713
|
class: "cl-absolute cl-cursor-pointer cl-hidden cl-right-0 cl-top-1.5 lg:cl-block",
|
|
3705
3714
|
onClick: d
|
|
3706
3715
|
}, [
|
|
3707
|
-
r.value ? (u(),
|
|
3716
|
+
r.value ? (u(), z(p(q), {
|
|
3708
3717
|
key: 1,
|
|
3709
3718
|
icon: "ph:push-pin-slash"
|
|
3710
|
-
})) : (u(),
|
|
3719
|
+
})) : (u(), z(p(q), {
|
|
3711
3720
|
key: 0,
|
|
3712
3721
|
icon: "ph:push-pin"
|
|
3713
3722
|
}))
|
|
3714
3723
|
]),
|
|
3715
|
-
j(m.$slots, "default", ee(
|
|
3724
|
+
j(m.$slots, "default", ee(se({ groupIsOpen: l })), void 0, !0)
|
|
3716
3725
|
])
|
|
3717
3726
|
], 2), [
|
|
3718
|
-
[
|
|
3727
|
+
[U, e.value]
|
|
3719
3728
|
])
|
|
3720
3729
|
]),
|
|
3721
3730
|
_: 3
|
|
@@ -3723,7 +3732,7 @@ const Kn = {
|
|
|
3723
3732
|
], 512));
|
|
3724
3733
|
}
|
|
3725
3734
|
});
|
|
3726
|
-
const va = /* @__PURE__ */
|
|
3735
|
+
const va = /* @__PURE__ */ de(ga, [["__scopeId", "data-v-7db412a7"]]), ba = /* @__PURE__ */ D({
|
|
3727
3736
|
__name: "cl-ui-navigation-icon",
|
|
3728
3737
|
props: {
|
|
3729
3738
|
iconValue: {},
|
|
@@ -3731,7 +3740,7 @@ const va = /* @__PURE__ */ fe(ga, [["__scopeId", "data-v-7db412a7"]]), ba = /* @
|
|
|
3731
3740
|
colour: { default: "default" }
|
|
3732
3741
|
},
|
|
3733
3742
|
setup(t) {
|
|
3734
|
-
return (o, e) => (u(),
|
|
3743
|
+
return (o, e) => (u(), y("div", {
|
|
3735
3744
|
class: I(["cl-cursor-pointer cl-flex cl-h-20 cl-items-center cl-justify-center cl-transition-colors cl-w-20", {
|
|
3736
3745
|
"cl-text-secondary-default hover:cl-bg-primary-dark hover:cl-text-white": o.colour === "default",
|
|
3737
3746
|
"cl-bg-primary-darker cl-text-white": o.open && o.colour === "default",
|
|
@@ -3739,7 +3748,7 @@ const va = /* @__PURE__ */ fe(ga, [["__scopeId", "data-v-7db412a7"]]), ba = /* @
|
|
|
3739
3748
|
"cl-bg-blue-light": o.open && o.colour === "secondary"
|
|
3740
3749
|
}])
|
|
3741
3750
|
}, [
|
|
3742
|
-
|
|
3751
|
+
T(p(q), {
|
|
3743
3752
|
class: "cl-block",
|
|
3744
3753
|
icon: o.iconValue,
|
|
3745
3754
|
width: "24"
|
|
@@ -3755,8 +3764,8 @@ const va = /* @__PURE__ */ fe(ga, [["__scopeId", "data-v-7db412a7"]]), ba = /* @
|
|
|
3755
3764
|
open: { type: Boolean }
|
|
3756
3765
|
},
|
|
3757
3766
|
setup(t) {
|
|
3758
|
-
return (o, e) => o.open ? (u(),
|
|
3759
|
-
o.$slots.title ? (u(),
|
|
3767
|
+
return (o, e) => o.open ? (u(), y(B, { key: 0 }, [
|
|
3768
|
+
o.$slots.title ? (u(), y("div", ha, [
|
|
3760
3769
|
j(o.$slots, "title")
|
|
3761
3770
|
])) : M("", !0),
|
|
3762
3771
|
f("div", ya, [
|
|
@@ -3769,8 +3778,8 @@ const va = /* @__PURE__ */ fe(ga, [["__scopeId", "data-v-7db412a7"]]), ba = /* @
|
|
|
3769
3778
|
class: "cl-font-bold cl-mb-4 cl-select-none"
|
|
3770
3779
|
}, Ca = { class: "cl-flex cl-flex-wrap cl-space-y-2" };
|
|
3771
3780
|
function _a(t, o) {
|
|
3772
|
-
return u(),
|
|
3773
|
-
t.$slots.title ? (u(),
|
|
3781
|
+
return u(), y("div", ka, [
|
|
3782
|
+
t.$slots.title ? (u(), y("div", Ta, [
|
|
3774
3783
|
j(t.$slots, "title")
|
|
3775
3784
|
])) : M("", !0),
|
|
3776
3785
|
f("span", Ca, [
|
|
@@ -3778,13 +3787,13 @@ function _a(t, o) {
|
|
|
3778
3787
|
])
|
|
3779
3788
|
]);
|
|
3780
3789
|
}
|
|
3781
|
-
const Sa = /* @__PURE__ */
|
|
3790
|
+
const Sa = /* @__PURE__ */ de($a, [["render", _a]]), Oa = {}, Ea = { class: "cl-cursor-pointer cl-transition-colors cl-w-full hover:cl-text-blue-light" };
|
|
3782
3791
|
function Aa(t, o) {
|
|
3783
|
-
return u(),
|
|
3792
|
+
return u(), y("div", Ea, [
|
|
3784
3793
|
j(t.$slots, "default")
|
|
3785
3794
|
]);
|
|
3786
3795
|
}
|
|
3787
|
-
const ja = /* @__PURE__ */
|
|
3796
|
+
const ja = /* @__PURE__ */ de(Oa, [["render", Aa]]), Ma = { class: "cl-w-full" }, Ia = /* @__PURE__ */ D({
|
|
3788
3797
|
__name: "cl-ui-tab",
|
|
3789
3798
|
props: {
|
|
3790
3799
|
currentTab: { default: 0 },
|
|
@@ -3792,7 +3801,7 @@ const ja = /* @__PURE__ */ fe(Oa, [["render", Aa]]), Ma = { class: "cl-w-full" }
|
|
|
3792
3801
|
colour: { default: "default" }
|
|
3793
3802
|
},
|
|
3794
3803
|
setup(t) {
|
|
3795
|
-
const o = t, e =
|
|
3804
|
+
const o = t, e = S(), l = S(!1), n = S(!1);
|
|
3796
3805
|
function a(d) {
|
|
3797
3806
|
return d === o.currentTab;
|
|
3798
3807
|
}
|
|
@@ -3808,19 +3817,19 @@ const ja = /* @__PURE__ */ fe(Oa, [["render", Aa]]), Ma = { class: "cl-w-full" }
|
|
|
3808
3817
|
}
|
|
3809
3818
|
function i(d) {
|
|
3810
3819
|
if (e.value) {
|
|
3811
|
-
const
|
|
3812
|
-
let
|
|
3813
|
-
d === "left" && (
|
|
3820
|
+
const v = e.value.scrollWidth / 5;
|
|
3821
|
+
let b = v;
|
|
3822
|
+
d === "left" && (b = -v), e.value.scroll(e.value.scrollLeft + b, 0);
|
|
3814
3823
|
}
|
|
3815
3824
|
}
|
|
3816
|
-
return
|
|
3825
|
+
return Ce(() => s()), Ae(() => window.removeEventListener("resize", r)), (d, v) => (u(), y("div", Ma, [
|
|
3817
3826
|
f("div", null, [
|
|
3818
|
-
l.value ? (u(),
|
|
3827
|
+
l.value ? (u(), y("div", {
|
|
3819
3828
|
key: 0,
|
|
3820
3829
|
class: "cl-bg-white cl-cursor-pointer cl-float-left cl-h-11 cl-w-4",
|
|
3821
|
-
onClick:
|
|
3830
|
+
onClick: v[0] || (v[0] = (b) => i("left"))
|
|
3822
3831
|
}, [
|
|
3823
|
-
|
|
3832
|
+
T(p(q), {
|
|
3824
3833
|
icon: "ph:caret-left",
|
|
3825
3834
|
class: "cl-mt-4 cl-text-secondary-default"
|
|
3826
3835
|
})
|
|
@@ -3839,20 +3848,20 @@ const ja = /* @__PURE__ */ fe(Oa, [["render", Aa]]), Ma = { class: "cl-w-full" }
|
|
|
3839
3848
|
}]),
|
|
3840
3849
|
onScrollPassive: r
|
|
3841
3850
|
}, [
|
|
3842
|
-
j(d.$slots, "headings", ee(
|
|
3851
|
+
j(d.$slots, "headings", ee(se({ isTabOpen: a, disabled: d.disabled, colour: d.colour })))
|
|
3843
3852
|
], 34),
|
|
3844
|
-
n.value ? (u(),
|
|
3853
|
+
n.value ? (u(), y("div", {
|
|
3845
3854
|
key: 1,
|
|
3846
3855
|
class: "cl-bg-white cl-bottom-12 cl-cursor-pointer cl-float-right cl-h-11 cl-relative cl-w-4",
|
|
3847
|
-
onClick:
|
|
3856
|
+
onClick: v[1] || (v[1] = (b) => i("right"))
|
|
3848
3857
|
}, [
|
|
3849
|
-
|
|
3858
|
+
T(p(q), {
|
|
3850
3859
|
icon: "ph:caret-right",
|
|
3851
3860
|
class: "cl-mt-4 cl-text-secondary-default"
|
|
3852
3861
|
})
|
|
3853
3862
|
])) : M("", !0)
|
|
3854
3863
|
]),
|
|
3855
|
-
j(d.$slots, "content", ee(
|
|
3864
|
+
j(d.$slots, "content", ee(se({ isTabOpen: a, disabled: d.disabled, colour: d.colour })))
|
|
3856
3865
|
]));
|
|
3857
3866
|
}
|
|
3858
3867
|
}), Na = ["onKeyup"], qa = /* @__PURE__ */ D({
|
|
@@ -3867,11 +3876,11 @@ const ja = /* @__PURE__ */ fe(Oa, [["render", Aa]]), Ma = { class: "cl-w-full" }
|
|
|
3867
3876
|
"update:currentTab": null
|
|
3868
3877
|
},
|
|
3869
3878
|
setup(t, { emit: o }) {
|
|
3870
|
-
const e = t, l =
|
|
3879
|
+
const e = t, l = S(), n = S(), a = E(() => e.id === e.currentTab);
|
|
3871
3880
|
function r() {
|
|
3872
3881
|
e.disabled || (l.value = !1, n.value = !1, o("update:currentTab", e.id));
|
|
3873
3882
|
}
|
|
3874
|
-
return (s, i) => (u(),
|
|
3883
|
+
return (s, i) => (u(), y("div", {
|
|
3875
3884
|
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", {
|
|
3876
3885
|
"!cl-cursor-default cl-text-grey-4 !cl-border-grey-2": s.disabled,
|
|
3877
3886
|
"cl-border cl-border-b-0 cl-rounded-t-md cl-shadow-[inset_0_-1px_0_#ffffff] cl-cursor-default": a.value,
|
|
@@ -3897,7 +3906,7 @@ const ja = /* @__PURE__ */ fe(Oa, [["render", Aa]]), Ma = { class: "cl-w-full" }
|
|
|
3897
3906
|
onMouseout: i[1] || (i[1] = (d) => n.value = !1),
|
|
3898
3907
|
onFocusin: i[2] || (i[2] = (d) => l.value = !0),
|
|
3899
3908
|
onFocusout: i[3] || (i[3] = (d) => l.value = !1),
|
|
3900
|
-
onKeyup:
|
|
3909
|
+
onKeyup: Te(K(r, ["self"]), ["enter"])
|
|
3901
3910
|
}, [
|
|
3902
3911
|
j(s.$slots, "default")
|
|
3903
3912
|
], 42, Na));
|
|
@@ -3906,33 +3915,33 @@ const ja = /* @__PURE__ */ fe(Oa, [["render", Aa]]), Ma = { class: "cl-w-full" }
|
|
|
3906
3915
|
function Ra(t, o) {
|
|
3907
3916
|
return j(t.$slots, "default");
|
|
3908
3917
|
}
|
|
3909
|
-
const
|
|
3918
|
+
const xa = /* @__PURE__ */ de(Da, [["render", Ra]]), Ua = [
|
|
3910
3919
|
"default",
|
|
3911
3920
|
"primary",
|
|
3912
3921
|
"secondary",
|
|
3913
3922
|
"danger",
|
|
3914
3923
|
"blue"
|
|
3915
|
-
],
|
|
3924
|
+
], Ba = [
|
|
3916
3925
|
"left",
|
|
3917
3926
|
"right"
|
|
3918
3927
|
], za = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3919
3928
|
__proto__: null,
|
|
3920
|
-
FilterOperation:
|
|
3921
|
-
buttonColours:
|
|
3922
|
-
buttonSizes:
|
|
3929
|
+
FilterOperation: pe,
|
|
3930
|
+
buttonColours: xl,
|
|
3931
|
+
buttonSizes: Ul,
|
|
3923
3932
|
cardSizes: Ll,
|
|
3924
3933
|
clUiAccordion: bl,
|
|
3925
3934
|
clUiAccordionHeader: Sl,
|
|
3926
3935
|
clUiAccordionItem: kl,
|
|
3927
3936
|
clUiApp: Ml,
|
|
3928
|
-
clUiButton:
|
|
3937
|
+
clUiButton: me,
|
|
3929
3938
|
clUiCard: zl,
|
|
3930
3939
|
clUiComboBox: Zt,
|
|
3931
3940
|
clUiFooter: so,
|
|
3932
3941
|
clUiGrid: Rn,
|
|
3933
|
-
clUiHeader:
|
|
3942
|
+
clUiHeader: Un,
|
|
3934
3943
|
clUiHeaderMenu: Gn,
|
|
3935
|
-
clUiInput:
|
|
3944
|
+
clUiInput: re,
|
|
3936
3945
|
clUiLanguageSwitcher: Xn,
|
|
3937
3946
|
clUiLoadingSpinner: je,
|
|
3938
3947
|
clUiLogin: ua,
|
|
@@ -3944,7 +3953,7 @@ const Ua = /* @__PURE__ */ fe(Da, [["render", Ra]]), Ba = [
|
|
|
3944
3953
|
clUiNavigationSection: Sa,
|
|
3945
3954
|
clUiNotification: al,
|
|
3946
3955
|
clUiTab: Ia,
|
|
3947
|
-
clUiTabContent:
|
|
3956
|
+
clUiTabContent: xa,
|
|
3948
3957
|
clUiTabHeader: qa,
|
|
3949
3958
|
filterMethodTypes: Go,
|
|
3950
3959
|
gridColumnTypes: Po,
|
|
@@ -3956,12 +3965,12 @@ const Ua = /* @__PURE__ */ fe(Da, [["render", Ra]]), Ba = [
|
|
|
3956
3965
|
isGridColumn: rl,
|
|
3957
3966
|
isGridColumnArray: Fo,
|
|
3958
3967
|
isLanguageArray: Wn,
|
|
3959
|
-
isLanguageLocaleFormat:
|
|
3968
|
+
isLanguageLocaleFormat: Ue,
|
|
3960
3969
|
modalColours: fa,
|
|
3961
3970
|
modalSizes: da,
|
|
3962
3971
|
stringFormats: Vo,
|
|
3963
|
-
tabColours:
|
|
3964
|
-
tabScroll:
|
|
3972
|
+
tabColours: Ua,
|
|
3973
|
+
tabScroll: Ba
|
|
3965
3974
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
3966
3975
|
const Xa = (t) => {
|
|
3967
3976
|
t.use(Z), t.component("Icon", q), Object.entries(za).forEach(([
|
|
@@ -3973,24 +3982,24 @@ const Xa = (t) => {
|
|
|
3973
3982
|
};
|
|
3974
3983
|
export {
|
|
3975
3984
|
Ya as CitrusLimeUI,
|
|
3976
|
-
|
|
3977
|
-
|
|
3985
|
+
G as DateFormat,
|
|
3986
|
+
pe as FilterOperation,
|
|
3978
3987
|
X as NumberFormat,
|
|
3979
|
-
|
|
3980
|
-
|
|
3988
|
+
xl as buttonColours,
|
|
3989
|
+
Ul as buttonSizes,
|
|
3981
3990
|
Ll as cardSizes,
|
|
3982
3991
|
bl as clUiAccordion,
|
|
3983
3992
|
Sl as clUiAccordionHeader,
|
|
3984
3993
|
kl as clUiAccordionItem,
|
|
3985
3994
|
Ml as clUiApp,
|
|
3986
|
-
|
|
3995
|
+
me as clUiButton,
|
|
3987
3996
|
zl as clUiCard,
|
|
3988
3997
|
Zt as clUiComboBox,
|
|
3989
3998
|
so as clUiFooter,
|
|
3990
3999
|
Rn as clUiGrid,
|
|
3991
|
-
|
|
4000
|
+
Un as clUiHeader,
|
|
3992
4001
|
Gn as clUiHeaderMenu,
|
|
3993
|
-
|
|
4002
|
+
re as clUiInput,
|
|
3994
4003
|
Xn as clUiLanguageSwitcher,
|
|
3995
4004
|
je as clUiLoadingSpinner,
|
|
3996
4005
|
ua as clUiLogin,
|
|
@@ -4002,7 +4011,7 @@ export {
|
|
|
4002
4011
|
Sa as clUiNavigationSection,
|
|
4003
4012
|
al as clUiNotification,
|
|
4004
4013
|
Ia as clUiTab,
|
|
4005
|
-
|
|
4014
|
+
xa as clUiTabContent,
|
|
4006
4015
|
qa as clUiTabHeader,
|
|
4007
4016
|
Vl as datetimeFormats,
|
|
4008
4017
|
Xa as default,
|
|
@@ -4017,7 +4026,7 @@ export {
|
|
|
4017
4026
|
rl as isGridColumn,
|
|
4018
4027
|
Fo as isGridColumnArray,
|
|
4019
4028
|
Wn as isLanguageArray,
|
|
4020
|
-
|
|
4029
|
+
Ue as isLanguageLocaleFormat,
|
|
4021
4030
|
Pl as messages,
|
|
4022
4031
|
fa as modalColours,
|
|
4023
4032
|
da as modalSizes,
|
|
@@ -4026,10 +4035,10 @@ export {
|
|
|
4026
4035
|
Za as setLocaleDateTimeFormats,
|
|
4027
4036
|
Ja as setLocaleMessages,
|
|
4028
4037
|
Ka as setLocaleNumberFormats,
|
|
4029
|
-
|
|
4038
|
+
Ge as showNotification,
|
|
4030
4039
|
Vo as stringFormats,
|
|
4031
|
-
|
|
4032
|
-
|
|
4040
|
+
Ua as tabColours,
|
|
4041
|
+
Ba as tabScroll,
|
|
4033
4042
|
Jl as validateEmail,
|
|
4034
4043
|
Hl as validateMaxValue,
|
|
4035
4044
|
Gl as validateMinValue
|