@citruslime/ui 2.1.0-beta.0 → 2.1.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/citrus-lime-ui.es.js +827 -821
- package/dist/citrus-lime-ui.umd.js +2 -2
- package/dist/components/grid/cl-ui-grid.d.ts +7 -7
- package/dist/components/grid/types.d.ts +2 -2
- package/dist/components/navigation/cl-ui-navigation.d.ts +8 -5
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
import { Icon as
|
|
2
|
-
import { defineComponent as D, ref as
|
|
3
|
-
import { generateStringId as
|
|
4
|
-
import { createI18n as
|
|
1
|
+
import { Icon as ul } from "@iconify/vue";
|
|
2
|
+
import { defineComponent as D, ref as C, openBlock as u, createElementBlock as v, renderSlot as A, normalizeProps as ae, guardReactiveProps as me, resolveComponent as K, Fragment as P, createElementVNode as f, normalizeClass as I, createVNode as w, Transition as $e, withCtx as z, withDirectives as q, vShow as R, createBlock as B, Teleport as Le, renderList as te, unref as a, mergeProps as ge, toDisplayString as x, createCommentVNode as M, nextTick as ke, computed as S, watch as W, onMounted as Oe, onUnmounted as Ue, isRef as ve, normalizeStyle as ll, vModelText as dl, withModifiers as Y, vModelDynamic as fl, withKeys as Se, createTextVNode as le, watchEffect as ml, createSlots as Fe } from "vue";
|
|
3
|
+
import { generateStringId as gl } from "@citruslime/utils";
|
|
4
|
+
import { createI18n as bl, useI18n as oe } from "vue-i18n";
|
|
5
5
|
import He from "flatpickr";
|
|
6
|
-
import { useDebouncer as
|
|
7
|
-
import { useTimeoutFn as
|
|
6
|
+
import { useDebouncer as vl, copy as fe } from "@citruslime/vue-utils";
|
|
7
|
+
import { useTimeoutFn as tl, useDebounceFn as nl, onClickOutside as ol, useWindowSize as hl } from "@vueuse/core";
|
|
8
8
|
const pl = { class: "cl-overflow-hidden" }, yl = /* @__PURE__ */ D({
|
|
9
9
|
__name: "cl-ui-accordion",
|
|
10
10
|
props: {
|
|
11
11
|
exclusive: { type: Boolean, default: !1 }
|
|
12
12
|
},
|
|
13
13
|
setup(e) {
|
|
14
|
-
const n = e, t =
|
|
15
|
-
function l(
|
|
16
|
-
let
|
|
17
|
-
return
|
|
18
|
-
id:
|
|
14
|
+
const n = e, t = C([]);
|
|
15
|
+
function l(i) {
|
|
16
|
+
let c = t.value.find((g) => g.id === i);
|
|
17
|
+
return c || (c = {
|
|
18
|
+
id: i,
|
|
19
19
|
open: !1
|
|
20
|
-
}, t.value.push(
|
|
20
|
+
}, t.value.push(c)), c.open;
|
|
21
21
|
}
|
|
22
|
-
function o(
|
|
23
|
-
const
|
|
24
|
-
|
|
25
|
-
g.id !==
|
|
26
|
-
}),
|
|
22
|
+
function o(i) {
|
|
23
|
+
const c = t.value.find((g) => g.id === i);
|
|
24
|
+
c && (n.exclusive && t.value.forEach((g) => {
|
|
25
|
+
g.id !== i && (g.open = !1);
|
|
26
|
+
}), c.open = !c.open);
|
|
27
27
|
}
|
|
28
|
-
return (
|
|
29
|
-
A(
|
|
28
|
+
return (i, c) => (u(), v("div", pl, [
|
|
29
|
+
A(i.$slots, "default", ae(me({ isItemOpen: l, toggleItem: o })))
|
|
30
30
|
]));
|
|
31
31
|
}
|
|
32
32
|
}), wl = { class: "cl-absolute cl-left-5 cl-top-5" }, xl = { class: "cl-font-semibold cl-ml-10 cl-p-4 cl-select-none cl-text-grey-5" }, $l = { class: "cl-overflow-hidden" }, kl = { class: "cl-ml-10 cl-p-4" }, Tl = /* @__PURE__ */ D({
|
|
@@ -43,9 +43,9 @@ const pl = { class: "cl-overflow-hidden" }, yl = /* @__PURE__ */ D({
|
|
|
43
43
|
function l() {
|
|
44
44
|
t.disabled || n("toggle");
|
|
45
45
|
}
|
|
46
|
-
return (o,
|
|
47
|
-
const
|
|
48
|
-
return
|
|
46
|
+
return (o, i) => {
|
|
47
|
+
const c = K("icon");
|
|
48
|
+
return u(), v(P, null, [
|
|
49
49
|
f("div", {
|
|
50
50
|
class: I(["cl-border-b cl-border-grey-1 cl-relative", {
|
|
51
51
|
"cl-bg-grey-0": e.disabled,
|
|
@@ -54,7 +54,7 @@ const pl = { class: "cl-overflow-hidden" }, yl = /* @__PURE__ */ D({
|
|
|
54
54
|
onClick: l
|
|
55
55
|
}, [
|
|
56
56
|
f("div", wl, [
|
|
57
|
-
w(
|
|
57
|
+
w(c, {
|
|
58
58
|
class: I(["cl-duration-300 cl-ease-in-out cl-text-grey-3 cl-transform-gpu cl-transition-transform", {
|
|
59
59
|
"cl-rotate-180": e.open
|
|
60
60
|
}]),
|
|
@@ -68,7 +68,7 @@ const pl = { class: "cl-overflow-hidden" }, yl = /* @__PURE__ */ D({
|
|
|
68
68
|
], 2),
|
|
69
69
|
f("div", $l, [
|
|
70
70
|
w($e, { name: "grow-down" }, {
|
|
71
|
-
default:
|
|
71
|
+
default: z(() => [
|
|
72
72
|
q(f("div", kl, [
|
|
73
73
|
A(o.$slots, "default")
|
|
74
74
|
], 512), [
|
|
@@ -88,24 +88,24 @@ const pl = { class: "cl-overflow-hidden" }, yl = /* @__PURE__ */ D({
|
|
|
88
88
|
return t;
|
|
89
89
|
}, Cl = {}, Sl = { 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" };
|
|
90
90
|
function Ol(e, n) {
|
|
91
|
-
return
|
|
91
|
+
return u(), v("div", Sl, [
|
|
92
92
|
A(e.$slots, "default")
|
|
93
93
|
]);
|
|
94
94
|
}
|
|
95
|
-
const El = /* @__PURE__ */ he(Cl, [["render", Ol]]), Ae =
|
|
95
|
+
const El = /* @__PURE__ */ he(Cl, [["render", Ol]]), Ae = C([]);
|
|
96
96
|
function We(e) {
|
|
97
97
|
const n = {
|
|
98
|
-
id:
|
|
98
|
+
id: gl(),
|
|
99
99
|
...e
|
|
100
100
|
};
|
|
101
|
-
Ae.value.push(n), setTimeout(() =>
|
|
101
|
+
Ae.value.push(n), setTimeout(() => al(n), e.duration);
|
|
102
102
|
}
|
|
103
|
-
function
|
|
103
|
+
function al(e) {
|
|
104
104
|
Ae.value = Ae.value.filter((n) => n.id !== e.id);
|
|
105
105
|
}
|
|
106
106
|
const jl = ["onClick"], Al = { class: "cl-flex-1 cl-select-none cl-text-ellipsis cl-w-64" }, Ml = {
|
|
107
107
|
inheritAttrs: !1
|
|
108
|
-
},
|
|
108
|
+
}, cl = /* @__PURE__ */ D({
|
|
109
109
|
...Ml,
|
|
110
110
|
__name: "cl-ui-notification",
|
|
111
111
|
props: {
|
|
@@ -115,7 +115,7 @@ const jl = ["onClick"], Al = { class: "cl-flex-1 cl-select-none cl-text-ellipsis
|
|
|
115
115
|
setup(e) {
|
|
116
116
|
return (n, t) => {
|
|
117
117
|
const l = K("icon");
|
|
118
|
-
return
|
|
118
|
+
return u(), B(Le, { to: e.container }, [
|
|
119
119
|
f("div", {
|
|
120
120
|
class: I(["cl-fixed cl-w-80 cl-z-40", {
|
|
121
121
|
"cl-top-5 cl-left-5": e.position === "top-left",
|
|
@@ -126,8 +126,8 @@ const jl = ["onClick"], Al = { class: "cl-flex-1 cl-select-none cl-text-ellipsis
|
|
|
126
126
|
"cl-bottom-5 cl-right-5": e.position === "bottom-right"
|
|
127
127
|
}])
|
|
128
128
|
}, [
|
|
129
|
-
(
|
|
130
|
-
key:
|
|
129
|
+
(u(!0), v(P, null, te(a(Ae), (o, i) => (u(), v("div", ge(n.$attrs, {
|
|
130
|
+
key: i,
|
|
131
131
|
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", {
|
|
132
132
|
"cl-bg-white": o.colour === "default",
|
|
133
133
|
"cl-bg-primary-default": o.colour === "primary",
|
|
@@ -135,7 +135,7 @@ const jl = ["onClick"], Al = { class: "cl-flex-1 cl-select-none cl-text-ellipsis
|
|
|
135
135
|
"cl-bg-danger-default": o.colour === "danger",
|
|
136
136
|
"cl-bg-warning-default": o.colour === "warning"
|
|
137
137
|
}],
|
|
138
|
-
onClick: (
|
|
138
|
+
onClick: (c) => a(al)(o)
|
|
139
139
|
}), [
|
|
140
140
|
f("span", Al, x(o.message), 1),
|
|
141
141
|
w(l, {
|
|
@@ -155,8 +155,8 @@ const jl = ["onClick"], Al = { class: "cl-flex-1 cl-select-none cl-text-ellipsis
|
|
|
155
155
|
removePadding: { type: Boolean, default: !1 }
|
|
156
156
|
},
|
|
157
157
|
setup(e) {
|
|
158
|
-
return (n, t) => (
|
|
159
|
-
w(
|
|
158
|
+
return (n, t) => (u(), v(P, null, [
|
|
159
|
+
w(cl),
|
|
160
160
|
f("div", Il, [
|
|
161
161
|
A(n.$slots, "header"),
|
|
162
162
|
f("div", {
|
|
@@ -166,7 +166,7 @@ const jl = ["onClick"], Al = { class: "cl-flex-1 cl-select-none cl-text-ellipsis
|
|
|
166
166
|
}, [
|
|
167
167
|
A(n.$slots, "navigation"),
|
|
168
168
|
f("div", {
|
|
169
|
-
class: I(["cl-grow cl-max-h-full cl-overflow-x-hidden cl-overflow-y-auto cl-w-auto", {
|
|
169
|
+
class: I(["cl-grow cl-max-h-full cl-overflow-x-hidden cl-overflow-y-auto cl-overscroll-y-none cl-w-auto", {
|
|
170
170
|
"md:cl-p-8 cl-p-2": !e.removePadding
|
|
171
171
|
}])
|
|
172
172
|
}, [
|
|
@@ -179,12 +179,12 @@ const jl = ["onClick"], Al = { class: "cl-flex-1 cl-select-none cl-text-ellipsis
|
|
|
179
179
|
});
|
|
180
180
|
const Dl = {}, ql = { class: "loading-spinner" };
|
|
181
181
|
function Rl(e, n) {
|
|
182
|
-
return
|
|
182
|
+
return u(), v("div", ql);
|
|
183
183
|
}
|
|
184
|
-
const Ve = /* @__PURE__ */ he(Dl, [["render", Rl], ["__scopeId", "data-v-a21dc5d2"]]), Ul = ["disabled"],
|
|
184
|
+
const Ve = /* @__PURE__ */ he(Dl, [["render", Rl], ["__scopeId", "data-v-a21dc5d2"]]), Ul = ["disabled"], Pl = {
|
|
185
185
|
inheritAttrs: !1
|
|
186
186
|
}, we = /* @__PURE__ */ D({
|
|
187
|
-
...
|
|
187
|
+
...Pl,
|
|
188
188
|
__name: "cl-ui-button",
|
|
189
189
|
props: {
|
|
190
190
|
colour: { default: "default" },
|
|
@@ -193,12 +193,12 @@ const Ve = /* @__PURE__ */ he(Dl, [["render", Rl], ["__scopeId", "data-v-a21dc5d
|
|
|
193
193
|
disabled: { type: Boolean, default: !1 }
|
|
194
194
|
},
|
|
195
195
|
setup(e, { expose: n }) {
|
|
196
|
-
const t =
|
|
196
|
+
const t = C(null);
|
|
197
197
|
return n({
|
|
198
198
|
focus() {
|
|
199
199
|
t.value && t.value.focus();
|
|
200
200
|
}
|
|
201
|
-
}), (l, o) => (
|
|
201
|
+
}), (l, o) => (u(), v(P, null, [
|
|
202
202
|
q(w(Ve, null, null, 512), [
|
|
203
203
|
[R, e.loading]
|
|
204
204
|
]),
|
|
@@ -224,13 +224,13 @@ const Ve = /* @__PURE__ */ he(Dl, [["render", Rl], ["__scopeId", "data-v-a21dc5d
|
|
|
224
224
|
])
|
|
225
225
|
], 64));
|
|
226
226
|
}
|
|
227
|
-
}),
|
|
227
|
+
}), Bl = [
|
|
228
228
|
"default",
|
|
229
229
|
"primary",
|
|
230
230
|
"secondary",
|
|
231
231
|
"danger",
|
|
232
232
|
"blue"
|
|
233
|
-
],
|
|
233
|
+
], zl = [
|
|
234
234
|
"small",
|
|
235
235
|
"medium",
|
|
236
236
|
"large"
|
|
@@ -241,15 +241,15 @@ const Ve = /* @__PURE__ */ he(Dl, [["render", Rl], ["__scopeId", "data-v-a21dc5d
|
|
|
241
241
|
hover: { type: Boolean, default: !1 }
|
|
242
242
|
},
|
|
243
243
|
setup(e) {
|
|
244
|
-
return (n, t) => (
|
|
244
|
+
return (n, t) => (u(), v("div", {
|
|
245
245
|
class: I(["cl-border cl-border-transparent cl-overflow-hidden cl-relative cl-rounded-md cl-shadow-lg cl-transition-all", {
|
|
246
246
|
"cl-cursor-pointer hover:cl-shadow-xl hover:cl-border-grey-0": e.hover
|
|
247
247
|
}])
|
|
248
248
|
}, [
|
|
249
|
-
n.$slots.image ? (
|
|
249
|
+
n.$slots.image ? (u(), v("div", Ll, [
|
|
250
250
|
A(n.$slots, "image")
|
|
251
251
|
])) : M("", !0),
|
|
252
|
-
n.$slots.title ? (
|
|
252
|
+
n.$slots.title ? (u(), v("div", {
|
|
253
253
|
key: 1,
|
|
254
254
|
class: I(["cl-border-grey-2 cl-font-normal", {
|
|
255
255
|
"cl-p-2 cl-text-2xl cl-leading-8": e.size === "small",
|
|
@@ -270,7 +270,7 @@ const Ve = /* @__PURE__ */ he(Dl, [["render", Rl], ["__scopeId", "data-v-a21dc5d
|
|
|
270
270
|
}, [
|
|
271
271
|
A(n.$slots, "default")
|
|
272
272
|
], 2),
|
|
273
|
-
n.$slots.footer ? (
|
|
273
|
+
n.$slots.footer ? (u(), v("div", {
|
|
274
274
|
key: 2,
|
|
275
275
|
class: I(["cl-border-grey-2 cl-border-t", {
|
|
276
276
|
"cl-p-2": e.size === "small",
|
|
@@ -430,7 +430,7 @@ const Gl = {
|
|
|
430
430
|
year: "numeric"
|
|
431
431
|
}
|
|
432
432
|
}
|
|
433
|
-
}, ee =
|
|
433
|
+
}, ee = bl({
|
|
434
434
|
locale: "en-GB",
|
|
435
435
|
fallbackLocale: "en-GB",
|
|
436
436
|
messages: Gl,
|
|
@@ -441,28 +441,28 @@ const Gl = {
|
|
|
441
441
|
fallbackWarn: !1,
|
|
442
442
|
warnHtmlMessage: !1
|
|
443
443
|
});
|
|
444
|
-
function
|
|
444
|
+
function Ya(e, n) {
|
|
445
445
|
return ee.global.mergeLocaleMessage(e, n), ke();
|
|
446
446
|
}
|
|
447
|
-
function
|
|
447
|
+
function Xa(e, n) {
|
|
448
448
|
return ee.global.mergeNumberFormat(e, n), ke();
|
|
449
449
|
}
|
|
450
|
-
function
|
|
450
|
+
function _a(e, n) {
|
|
451
451
|
return ee.global.mergeDateTimeFormat(e, n), ke();
|
|
452
452
|
}
|
|
453
|
-
function
|
|
453
|
+
function ec(e) {
|
|
454
454
|
return ee.global.locale.value = e, ke();
|
|
455
455
|
}
|
|
456
456
|
const { t: re } = ee.global;
|
|
457
457
|
function Jl(e, n, t, l) {
|
|
458
458
|
const o = ee.global.locale.value;
|
|
459
|
-
return l instanceof Date && (l = l.getTime()), new Promise((
|
|
460
|
-
let
|
|
459
|
+
return l instanceof Date && (l = l.getTime()), new Promise((i) => {
|
|
460
|
+
let c = {
|
|
461
461
|
valid: !1,
|
|
462
462
|
message: ""
|
|
463
463
|
};
|
|
464
464
|
if (e != null) {
|
|
465
|
-
let g,
|
|
465
|
+
let g, d;
|
|
466
466
|
switch (n) {
|
|
467
467
|
case "email":
|
|
468
468
|
case "password":
|
|
@@ -470,38 +470,38 @@ function Jl(e, n, t, l) {
|
|
|
470
470
|
case "tel":
|
|
471
471
|
case "text":
|
|
472
472
|
case "url":
|
|
473
|
-
g = ((l == null ? void 0 : l.length) ?? 0) >= e,
|
|
473
|
+
g = ((l == null ? void 0 : l.length) ?? 0) >= e, c = ue(g, re("input.greaterOrEqualToCharacters", { label: t, min: e.toString() }));
|
|
474
474
|
break;
|
|
475
475
|
case "number":
|
|
476
476
|
case "range":
|
|
477
|
-
g = l >= e,
|
|
477
|
+
g = l >= e, c = ue(g, re("input.greaterOrEqualToValue", { label: t, min: e.toString() }));
|
|
478
478
|
break;
|
|
479
479
|
case "date":
|
|
480
|
-
g = l >= new Date(e).getTime(),
|
|
480
|
+
g = l >= new Date(e).getTime(), c = ue(g, re("input.afterOrEqualToValue", { label: t, min: new Date(e).toLocaleDateString(o) }));
|
|
481
481
|
break;
|
|
482
482
|
case "datetime":
|
|
483
|
-
g = l >= new Date(e).getTime(),
|
|
483
|
+
g = l >= new Date(e).getTime(), c = ue(g, re("input.afterOrEqualToValue", { label: t, min: ee.global.d(new Date(e), H.DATETIME, o ?? ee.global.locale.value) }));
|
|
484
484
|
break;
|
|
485
485
|
case "time":
|
|
486
|
-
|
|
486
|
+
d = e.toDateFromTime(), g = l >= d, c = ue(g, re("input.afterOrEqualToValue", { label: t, min: ee.global.d(new Date(d), H.TIME, o ?? ee.global.locale.value) }));
|
|
487
487
|
break;
|
|
488
488
|
default:
|
|
489
|
-
|
|
489
|
+
c.valid = !0;
|
|
490
490
|
break;
|
|
491
491
|
}
|
|
492
492
|
}
|
|
493
|
-
c
|
|
493
|
+
i(c);
|
|
494
494
|
});
|
|
495
495
|
}
|
|
496
496
|
function Kl(e, n, t, l) {
|
|
497
497
|
const o = ee.global.locale.value;
|
|
498
|
-
return l instanceof Date && (l = l.getTime()), new Promise((
|
|
499
|
-
let
|
|
498
|
+
return l instanceof Date && (l = l.getTime()), new Promise((i) => {
|
|
499
|
+
let c = {
|
|
500
500
|
valid: !1,
|
|
501
501
|
message: ""
|
|
502
502
|
};
|
|
503
503
|
if (e != null) {
|
|
504
|
-
let g,
|
|
504
|
+
let g, d;
|
|
505
505
|
switch (n) {
|
|
506
506
|
case "email":
|
|
507
507
|
case "password":
|
|
@@ -509,27 +509,27 @@ function Kl(e, n, t, l) {
|
|
|
509
509
|
case "tel":
|
|
510
510
|
case "text":
|
|
511
511
|
case "url":
|
|
512
|
-
g = ((l == null ? void 0 : l.length) ?? 0) <= e,
|
|
512
|
+
g = ((l == null ? void 0 : l.length) ?? 0) <= e, c = ue(g, re("input.lessOrEqualToCharacters", { label: t, max: e.toString() }));
|
|
513
513
|
break;
|
|
514
514
|
case "number":
|
|
515
515
|
case "range":
|
|
516
|
-
g = l <= e,
|
|
516
|
+
g = l <= e, c = ue(g, re("input.lessOrEqualToValue", { label: t, max: e.toString() }));
|
|
517
517
|
break;
|
|
518
518
|
case "date":
|
|
519
|
-
g = l <= new Date(e).getTime(),
|
|
519
|
+
g = l <= new Date(e).getTime(), c = ue(g, re("input.beforeOrEqualToValue", { label: t, max: new Date(e).toLocaleDateString(o) }));
|
|
520
520
|
break;
|
|
521
521
|
case "datetime":
|
|
522
|
-
g = l <= new Date(e).getTime(),
|
|
522
|
+
g = l <= new Date(e).getTime(), c = ue(g, re("input.afterOrEqualToValue", { label: t, min: ee.global.d(new Date(e), H.DATETIME, o ?? ee.global.locale.value) }));
|
|
523
523
|
break;
|
|
524
524
|
case "time":
|
|
525
|
-
|
|
525
|
+
d = e.toDateFromTime(), g = l <= d, c = ue(g, re("input.afterOrEqualToValue", { label: t, min: ee.global.d(new Date(d), H.TIME, o ?? ee.global.locale.value) }));
|
|
526
526
|
break;
|
|
527
527
|
default:
|
|
528
|
-
|
|
528
|
+
c.valid = !0;
|
|
529
529
|
break;
|
|
530
530
|
}
|
|
531
531
|
}
|
|
532
|
-
c
|
|
532
|
+
i(c);
|
|
533
533
|
});
|
|
534
534
|
}
|
|
535
535
|
function Zl(e, n) {
|
|
@@ -540,8 +540,8 @@ function Zl(e, n) {
|
|
|
540
540
|
}
|
|
541
541
|
function Ql(e, n) {
|
|
542
542
|
return new Promise((t) => {
|
|
543
|
-
const o = n === "" || /[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(n) !== null,
|
|
544
|
-
t(
|
|
543
|
+
const o = n === "" || /[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(n) !== null, i = ue(o, re("input.valueNotValidEmail", { label: e }));
|
|
544
|
+
t(i);
|
|
545
545
|
});
|
|
546
546
|
}
|
|
547
547
|
function ue(e, n) {
|
|
@@ -615,8 +615,8 @@ var Te = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
615
615
|
time_24hr: !0
|
|
616
616
|
};
|
|
617
617
|
l.l10ns.de = o;
|
|
618
|
-
var
|
|
619
|
-
t.German = o, t.default =
|
|
618
|
+
var i = l.l10ns;
|
|
619
|
+
t.German = o, t.default = i, Object.defineProperty(t, "__esModule", { value: !0 });
|
|
620
620
|
});
|
|
621
621
|
})(Yl, Me);
|
|
622
622
|
var Ie = {}, Xl = {
|
|
@@ -677,10 +677,10 @@ var Ie = {}, Xl = {
|
|
|
677
677
|
daysInMonth: [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31],
|
|
678
678
|
firstDayOfWeek: 0,
|
|
679
679
|
ordinal: function(o) {
|
|
680
|
-
var
|
|
681
|
-
if (
|
|
680
|
+
var i = o % 100;
|
|
681
|
+
if (i > 3 && i < 21)
|
|
682
682
|
return "th";
|
|
683
|
-
switch (
|
|
683
|
+
switch (i % 10) {
|
|
684
684
|
case 1:
|
|
685
685
|
return "st";
|
|
686
686
|
case 2:
|
|
@@ -770,8 +770,8 @@ var Ne = {}, _l = {
|
|
|
770
770
|
time_24hr: !0
|
|
771
771
|
};
|
|
772
772
|
l.l10ns.es = o;
|
|
773
|
-
var
|
|
774
|
-
t.Spanish = o, t.default =
|
|
773
|
+
var i = l.l10ns;
|
|
774
|
+
t.Spanish = o, t.default = i, Object.defineProperty(t, "__esModule", { value: !0 });
|
|
775
775
|
});
|
|
776
776
|
})(_l, Ne);
|
|
777
777
|
var De = {}, et = {
|
|
@@ -832,8 +832,8 @@ var De = {}, et = {
|
|
|
832
832
|
"décembre"
|
|
833
833
|
]
|
|
834
834
|
},
|
|
835
|
-
ordinal: function(
|
|
836
|
-
return
|
|
835
|
+
ordinal: function(c) {
|
|
836
|
+
return c > 1 ? "" : "er";
|
|
837
837
|
},
|
|
838
838
|
rangeSeparator: " au ",
|
|
839
839
|
weekAbbreviation: "Sem",
|
|
@@ -842,8 +842,8 @@ var De = {}, et = {
|
|
|
842
842
|
time_24hr: !0
|
|
843
843
|
};
|
|
844
844
|
l.l10ns.fr = o;
|
|
845
|
-
var
|
|
846
|
-
t.French = o, t.default =
|
|
845
|
+
var i = l.l10ns;
|
|
846
|
+
t.French = o, t.default = i, Object.defineProperty(t, "__esModule", { value: !0 });
|
|
847
847
|
});
|
|
848
848
|
})(et, De);
|
|
849
849
|
var qe = {}, lt = {
|
|
@@ -914,8 +914,8 @@ var qe = {}, lt = {
|
|
|
914
914
|
time_24hr: !0
|
|
915
915
|
};
|
|
916
916
|
l.l10ns.it = o;
|
|
917
|
-
var
|
|
918
|
-
t.Italian = o, t.default =
|
|
917
|
+
var i = l.l10ns;
|
|
918
|
+
t.Italian = o, t.default = i, Object.defineProperty(t, "__esModule", { value: !0 });
|
|
919
919
|
});
|
|
920
920
|
})(lt, qe);
|
|
921
921
|
var Re = {}, tt = {
|
|
@@ -981,13 +981,13 @@ var Re = {}, tt = {
|
|
|
981
981
|
scrollTitle: "Scroll voor volgende / vorige",
|
|
982
982
|
toggleTitle: "Klik om te wisselen",
|
|
983
983
|
time_24hr: !0,
|
|
984
|
-
ordinal: function(
|
|
985
|
-
return
|
|
984
|
+
ordinal: function(c) {
|
|
985
|
+
return c === 1 || c === 8 || c >= 20 ? "ste" : "de";
|
|
986
986
|
}
|
|
987
987
|
};
|
|
988
988
|
l.l10ns.nl = o;
|
|
989
|
-
var
|
|
990
|
-
t.Dutch = o, t.default =
|
|
989
|
+
var i = l.l10ns;
|
|
990
|
+
t.Dutch = o, t.default = i, Object.defineProperty(t, "__esModule", { value: !0 });
|
|
991
991
|
});
|
|
992
992
|
})(tt, Re);
|
|
993
993
|
function nt() {
|
|
@@ -1053,11 +1053,11 @@ const ct = ["placeholder", "disabled"], st = { class: "cl-absolute cl-bg-white c
|
|
|
1053
1053
|
valueOutOfRange: null
|
|
1054
1054
|
},
|
|
1055
1055
|
setup(e, { expose: n, emit: t }) {
|
|
1056
|
-
const l = e, { d: o, getDateTimeFormat:
|
|
1056
|
+
const l = e, { d: o, getDateTimeFormat: i, locale: c, t: g } = oe(), d = C(null), h = C(null), y = S(() => o(nt(), l.type)), m = S(() => i(c.value)[l.type]), r = S(() => U()), b = S(() => Q()), s = S(() => be()), p = S(() => Je(l.min, c.value)), E = S(() => Je(l.max, c.value)), O = C(!1), J = S(() => {
|
|
1057
1057
|
var se, xe;
|
|
1058
1058
|
let $ = "H", L = "Y";
|
|
1059
|
-
return ((se = m.value) == null ? void 0 : se.hour12) === !0 && ($ = "h"), ((xe = m.value) == null ? void 0 : xe.year) === "2-digit" && (L = "y"), ot(
|
|
1060
|
-
}), V =
|
|
1059
|
+
return ((se = m.value) == null ? void 0 : se.hour12) === !0 && ($ = "h"), ((xe = m.value) == null ? void 0 : xe.year) === "2-digit" && (L = "y"), ot(y.value, $, L);
|
|
1060
|
+
}), V = S(() => {
|
|
1061
1061
|
var L, se;
|
|
1062
1062
|
const $ = {
|
|
1063
1063
|
...He.defaultConfig,
|
|
@@ -1065,11 +1065,11 @@ const ct = ["placeholder", "disabled"], st = { class: "cl-absolute cl-bg-white c
|
|
|
1065
1065
|
dateFormat: J.value,
|
|
1066
1066
|
disableMobile: !0,
|
|
1067
1067
|
enableTime: l.type === H.DATETIME || l.type === H.TIME,
|
|
1068
|
-
locale: at(
|
|
1068
|
+
locale: at(c.value),
|
|
1069
1069
|
maxDate: E.value,
|
|
1070
|
-
maxTime:
|
|
1071
|
-
minDate:
|
|
1072
|
-
minTime:
|
|
1070
|
+
maxTime: s.value,
|
|
1071
|
+
minDate: p.value,
|
|
1072
|
+
minTime: b.value,
|
|
1073
1073
|
minuteIncrement: 1,
|
|
1074
1074
|
monthSelectorType: "static",
|
|
1075
1075
|
noCalendar: l.type === H.TIME,
|
|
@@ -1086,7 +1086,7 @@ const ct = ["placeholder", "disabled"], st = { class: "cl-absolute cl-bg-white c
|
|
|
1086
1086
|
O.value = !0, t("update:date", null);
|
|
1087
1087
|
}
|
|
1088
1088
|
function G() {
|
|
1089
|
-
if (
|
|
1089
|
+
if (d.value !== null) {
|
|
1090
1090
|
let $ = new Date();
|
|
1091
1091
|
$.setHours(12, 0, 0, 0);
|
|
1092
1092
|
let L;
|
|
@@ -1094,19 +1094,19 @@ const ct = ["placeholder", "disabled"], st = { class: "cl-absolute cl-bg-white c
|
|
|
1094
1094
|
}
|
|
1095
1095
|
}
|
|
1096
1096
|
function X() {
|
|
1097
|
-
|
|
1097
|
+
d.value === null && h.value !== null && (d.value = He(h.value, V.value), d.value.config.onChange.push(ce));
|
|
1098
1098
|
}
|
|
1099
1099
|
function _() {
|
|
1100
|
-
|
|
1100
|
+
d.value !== null && (d.value.set(V.value), d.value.config.onChange.push(ce));
|
|
1101
1101
|
}
|
|
1102
1102
|
function ie($) {
|
|
1103
|
-
|
|
1103
|
+
d.value !== null && d.value.setDate($, !0);
|
|
1104
1104
|
}
|
|
1105
1105
|
function pe() {
|
|
1106
|
-
|
|
1106
|
+
d.value !== null && d.value.clear();
|
|
1107
1107
|
}
|
|
1108
1108
|
function j() {
|
|
1109
|
-
|
|
1109
|
+
d.value !== null && (d.value.destroy(), d.value = null);
|
|
1110
1110
|
}
|
|
1111
1111
|
function U() {
|
|
1112
1112
|
let $ = l.dateTimePlaceholder;
|
|
@@ -1147,18 +1147,18 @@ const ct = ["placeholder", "disabled"], st = { class: "cl-absolute cl-bg-white c
|
|
|
1147
1147
|
}), Oe(() => X()), Ue(() => j()), n({
|
|
1148
1148
|
focus() {
|
|
1149
1149
|
var $;
|
|
1150
|
-
($ =
|
|
1150
|
+
($ = h.value) == null || $.focus();
|
|
1151
1151
|
}
|
|
1152
1152
|
}), ($, L) => {
|
|
1153
1153
|
const se = K("icon");
|
|
1154
|
-
return
|
|
1154
|
+
return u(), v("div", ge($.$attrs, { class: "cl-relative" }), [
|
|
1155
1155
|
f("input", ge({
|
|
1156
1156
|
ref_key: "element",
|
|
1157
|
-
ref:
|
|
1157
|
+
ref: h
|
|
1158
1158
|
}, $.$attrs, {
|
|
1159
1159
|
class: ["!cl-text-sm cl-border-grey-1 cl-rounded-lg focus:cl-border-blue-light focus:cl-ring-0", { "cl-bg-off-white": e.disabled }],
|
|
1160
1160
|
type: "text",
|
|
1161
|
-
placeholder: a(
|
|
1161
|
+
placeholder: a(r),
|
|
1162
1162
|
disabled: e.disabled
|
|
1163
1163
|
}), null, 16, ct),
|
|
1164
1164
|
q(w(se, {
|
|
@@ -1201,7 +1201,7 @@ const ct = ["placeholder", "disabled"], st = { class: "cl-absolute cl-bg-white c
|
|
|
1201
1201
|
};
|
|
1202
1202
|
}
|
|
1203
1203
|
});
|
|
1204
|
-
const rt = /* @__PURE__ */ he(it, [["__scopeId", "data-v-053c2f6e"]]),
|
|
1204
|
+
const rt = /* @__PURE__ */ he(it, [["__scopeId", "data-v-053c2f6e"]]), Be = [
|
|
1205
1205
|
"date",
|
|
1206
1206
|
"datetime",
|
|
1207
1207
|
"time"
|
|
@@ -1226,52 +1226,52 @@ const rt = /* @__PURE__ */ he(it, [["__scopeId", "data-v-053c2f6e"]]), ze = [
|
|
|
1226
1226
|
"update:value": null
|
|
1227
1227
|
},
|
|
1228
1228
|
setup(e, { expose: n, emit: t }) {
|
|
1229
|
-
const l = e, { n: o, t:
|
|
1229
|
+
const l = e, { n: o, t: i } = oe(), { debounce: c } = vl(), g = C(l.value), d = C(), h = S({
|
|
1230
1230
|
get: () => l.value,
|
|
1231
|
-
set: (
|
|
1232
|
-
}),
|
|
1233
|
-
let
|
|
1234
|
-
return
|
|
1235
|
-
}),
|
|
1236
|
-
function
|
|
1237
|
-
const E = (
|
|
1238
|
-
|
|
1231
|
+
set: (s) => t("update:value", s)
|
|
1232
|
+
}), y = S(() => l.disabled ? "rgba(153, 153, 153, 0.8)" : "#9acd32"), m = S(() => {
|
|
1233
|
+
let s = (h.value - l.min) / (l.max - l.min) * 100;
|
|
1234
|
+
return s < 35 && s > 0 ? s < 20 ? s += 0.5 : s += 0.25 : s > 65 && s < 100 && (s > 80 ? s -= 0.5 : s -= 0.25), s;
|
|
1235
|
+
}), r = S(() => l.min <= l.max && l.step > 0);
|
|
1236
|
+
function b(s, p) {
|
|
1237
|
+
const E = (s == null ? void 0 : s.value) ?? "", O = Math.max(Math.min(parseFloat(E) || l.min, l.max), l.min);
|
|
1238
|
+
h.value = l.enforceStep ? Math.ceil(O / l.step) * l.step : O, ke(() => p());
|
|
1239
1239
|
}
|
|
1240
1240
|
return W(() => l.value, () => g.value = l.value), n({
|
|
1241
1241
|
focus() {
|
|
1242
|
-
var
|
|
1243
|
-
(
|
|
1242
|
+
var s;
|
|
1243
|
+
(s = d.value) == null || s.focus();
|
|
1244
1244
|
}
|
|
1245
|
-
}), (
|
|
1245
|
+
}), (s, p) => {
|
|
1246
1246
|
const E = K("cl-ui-input");
|
|
1247
|
-
return a(
|
|
1248
|
-
q(f("div", { class: "cl-bg-transparent cl-relative cl-text-center cl-text-sm" }, x(a(
|
|
1247
|
+
return a(r) ? (u(), v("div", ae(ge({ key: 0 }, s.$attrs)), [
|
|
1248
|
+
q(f("div", { class: "cl-bg-transparent cl-relative cl-text-center cl-text-sm" }, x(a(h)), 513), [
|
|
1249
1249
|
[R, !e.showNumericInput]
|
|
1250
1250
|
]),
|
|
1251
1251
|
f("div", ut, [
|
|
1252
1252
|
q(w(E, {
|
|
1253
1253
|
modelValue: g.value,
|
|
1254
|
-
"onUpdate:modelValue":
|
|
1254
|
+
"onUpdate:modelValue": p[0] || (p[0] = (O) => g.value = O),
|
|
1255
1255
|
class: "!cl-text-sm md:!cl-w-auto",
|
|
1256
1256
|
"input-type": "number",
|
|
1257
1257
|
min: e.min,
|
|
1258
1258
|
max: e.max,
|
|
1259
1259
|
step: e.step,
|
|
1260
1260
|
disabled: e.disabled,
|
|
1261
|
-
onInput:
|
|
1261
|
+
onInput: p[1] || (p[1] = (O) => a(c)(b, O.target, s.$forceUpdate))
|
|
1262
1262
|
}, null, 8, ["modelValue", "min", "max", "step", "disabled"]), [
|
|
1263
1263
|
[R, e.showNumericInput]
|
|
1264
1264
|
]),
|
|
1265
1265
|
f("div", dt, [
|
|
1266
1266
|
f("span", ft, x(a(o)(e.min, Number.isInteger(e.min) ? a(ne).INTEGER : a(ne).DECIMAL)), 1),
|
|
1267
|
-
typeof a(
|
|
1267
|
+
typeof a(h) == "number" ? (u(), v("div", mt, [
|
|
1268
1268
|
q(f("input", {
|
|
1269
1269
|
ref_key: "sliderRef",
|
|
1270
|
-
ref:
|
|
1271
|
-
"onUpdate:modelValue":
|
|
1270
|
+
ref: d,
|
|
1271
|
+
"onUpdate:modelValue": p[2] || (p[2] = (O) => ve(h) ? h.value = O : null),
|
|
1272
1272
|
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",
|
|
1273
1273
|
style: ll({
|
|
1274
|
-
background: `linear-gradient(to right, ${a(
|
|
1274
|
+
background: `linear-gradient(to right, ${a(y)} 0%, ${a(y)} ${a(m)}%, white ${a(m)}%, white 100%)`
|
|
1275
1275
|
}),
|
|
1276
1276
|
type: "range",
|
|
1277
1277
|
min: e.min,
|
|
@@ -1280,8 +1280,8 @@ const rt = /* @__PURE__ */ he(it, [["__scopeId", "data-v-053c2f6e"]]), ze = [
|
|
|
1280
1280
|
disabled: e.disabled
|
|
1281
1281
|
}, null, 12, gt), [
|
|
1282
1282
|
[
|
|
1283
|
-
|
|
1284
|
-
a(
|
|
1283
|
+
dl,
|
|
1284
|
+
a(h),
|
|
1285
1285
|
void 0,
|
|
1286
1286
|
{ number: !0 }
|
|
1287
1287
|
]
|
|
@@ -1290,7 +1290,7 @@ const rt = /* @__PURE__ */ he(it, [["__scopeId", "data-v-053c2f6e"]]), ze = [
|
|
|
1290
1290
|
f("span", bt, x(a(o)(e.max, Number.isInteger(e.max) ? a(ne).INTEGER : a(ne).DECIMAL)), 1)
|
|
1291
1291
|
])
|
|
1292
1292
|
])
|
|
1293
|
-
], 16)) : (
|
|
1293
|
+
], 16)) : (u(), v("div", vt, x(a(i)("slider.invalidProps")), 1));
|
|
1294
1294
|
};
|
|
1295
1295
|
}
|
|
1296
1296
|
});
|
|
@@ -1350,14 +1350,14 @@ function xt(e) {
|
|
|
1350
1350
|
let n;
|
|
1351
1351
|
switch (e) {
|
|
1352
1352
|
case "datetime":
|
|
1353
|
-
n =
|
|
1353
|
+
n = Be[1];
|
|
1354
1354
|
break;
|
|
1355
1355
|
case "time":
|
|
1356
|
-
n =
|
|
1356
|
+
n = Be[2];
|
|
1357
1357
|
break;
|
|
1358
1358
|
case "date":
|
|
1359
1359
|
default:
|
|
1360
|
-
n =
|
|
1360
|
+
n = Be[0];
|
|
1361
1361
|
break;
|
|
1362
1362
|
}
|
|
1363
1363
|
return n;
|
|
@@ -1410,13 +1410,13 @@ const $t = { class: "cl-flex cl-justify-between" }, kt = { class: "cl-w-full" },
|
|
|
1410
1410
|
},
|
|
1411
1411
|
emits: ["update:model-value", "click", "focus", "input", "change", "validated"],
|
|
1412
1412
|
setup(e, { expose: n, emit: t }) {
|
|
1413
|
-
const l = e, o =
|
|
1413
|
+
const l = e, o = C(null), i = C(!1), c = C(!1), g = S(se), d = S(() => l.placeholderText.trim() !== "" ? l.placeholderText : l.label), h = C(!1), { t: y } = oe(), m = C(0), r = S({
|
|
1414
1414
|
get: () => l.modelValue,
|
|
1415
1415
|
set: (k) => X(k, !1)
|
|
1416
|
-
}),
|
|
1416
|
+
}), b = S({
|
|
1417
1417
|
get: () => l.modelValue,
|
|
1418
1418
|
set: (k) => G(k)
|
|
1419
|
-
}),
|
|
1419
|
+
}), s = S(() => typeof l.min == "number" ? l.min.toString() : l.min), p = S(() => typeof l.max == "number" ? l.max.toString() : l.max), E = S(() => typeof l.min == "number" ? l.min : parseFloat(l.min)), O = S(() => typeof l.max == "number" ? l.max : parseFloat(l.max)), J = S(() => l.messageWhenValid.trim() !== "" ? l.messageWhenValid : ""), V = C(!0), ce = C([]), T = S(() => {
|
|
1420
1420
|
var k, N;
|
|
1421
1421
|
return [
|
|
1422
1422
|
...((k = ce.value) == null ? void 0 : k.filter((Z) => ((Z == null ? void 0 : Z.length) ?? 0) > 0)) ?? [],
|
|
@@ -1425,7 +1425,7 @@ const $t = { class: "cl-flex cl-justify-between" }, kt = { class: "cl-w-full" },
|
|
|
1425
1425
|
`);
|
|
1426
1426
|
});
|
|
1427
1427
|
async function G(k) {
|
|
1428
|
-
l.validateOn === "input" && await _(k), t("update:model-value", k),
|
|
1428
|
+
l.validateOn === "input" && await _(k), t("update:model-value", k), h.value = !1;
|
|
1429
1429
|
}
|
|
1430
1430
|
async function X(k, N) {
|
|
1431
1431
|
l.onInputFunction !== void 0 && (k = l.onInputFunction(k)), (N || l.validateOn === "input") && await _(k), t("update:model-value", k);
|
|
@@ -1443,13 +1443,13 @@ const $t = { class: "cl-flex cl-justify-between" }, kt = { class: "cl-w-full" },
|
|
|
1443
1443
|
];
|
|
1444
1444
|
return (typeof k == "string" || typeof k == "number" || k instanceof Date) && (Z.push(Jl(l.min, l.inputType, l.label, k)), Z.push(Kl(l.max, l.inputType, l.label, k))), l.isRequired && Z.push(Zl(l.label, k)), l.inputType === "email" && typeof k == "string" && Z.push(Ql(l.label, k)), Promise.all(Z).then((F) => {
|
|
1445
1445
|
const Ge = [...F.map((Ee) => Ee.message)];
|
|
1446
|
-
let
|
|
1447
|
-
|
|
1446
|
+
let Pe = F.some((Ee) => Ee.message.length > 0 && Ee.valid === !1) || l.externalErrors.length > 0;
|
|
1447
|
+
h.value && (Ge.push(y("input.dateOutOfRange")), Pe = !0), Pe ? (ce.value = Ge, t("validated", !1, k)) : (ce.value = [], t("validated", !0, k)), V.value = !Pe;
|
|
1448
1448
|
});
|
|
1449
1449
|
}
|
|
1450
1450
|
function ie() {
|
|
1451
1451
|
let k = "";
|
|
1452
|
-
return l.inputType === "color" &&
|
|
1452
|
+
return l.inputType === "color" && r.value && (l.disabled ? k = "background: #999999" : k = `background: ${r.value};`), k;
|
|
1453
1453
|
}
|
|
1454
1454
|
function pe(k) {
|
|
1455
1455
|
Ce(l.inputType) ? (k.preventDefault(), t("click", k)) : l.inputType === "checkbox" && t("click", k);
|
|
@@ -1473,10 +1473,10 @@ const $t = { class: "cl-flex cl-justify-between" }, kt = { class: "cl-w-full" },
|
|
|
1473
1473
|
}
|
|
1474
1474
|
}
|
|
1475
1475
|
function Q(k) {
|
|
1476
|
-
|
|
1476
|
+
i.value = k;
|
|
1477
1477
|
}
|
|
1478
1478
|
function be() {
|
|
1479
|
-
|
|
1479
|
+
c.value = !0, Q(!1);
|
|
1480
1480
|
}
|
|
1481
1481
|
function $() {
|
|
1482
1482
|
m.value++;
|
|
@@ -1488,19 +1488,19 @@ const $t = { class: "cl-flex cl-justify-between" }, kt = { class: "cl-w-full" },
|
|
|
1488
1488
|
var Z;
|
|
1489
1489
|
let k = !0;
|
|
1490
1490
|
const N = g.value;
|
|
1491
|
-
return
|
|
1491
|
+
return i.value ? k = N : c.value && ((Z = r.value) == null ? void 0 : Z.toString().trim()) === "" && (k = !1), k;
|
|
1492
1492
|
}
|
|
1493
1493
|
function xe() {
|
|
1494
|
-
|
|
1494
|
+
h.value = !0;
|
|
1495
1495
|
}
|
|
1496
|
-
async function
|
|
1496
|
+
async function rl(k) {
|
|
1497
1497
|
const N = Ye(k, l.inputType);
|
|
1498
1498
|
l.validateOn === "change" && await _(N), t("change", k, N);
|
|
1499
1499
|
}
|
|
1500
1500
|
return Oe(() => {
|
|
1501
1501
|
l.validateImmediately && X(l.modelValue, !0);
|
|
1502
1502
|
}), W(() => l.isRequired, () => X(l.modelValue, !0)), W(() => l.externalErrors, async () => {
|
|
1503
|
-
await _(
|
|
1503
|
+
await _(r.value), t("update:model-value", r.value);
|
|
1504
1504
|
}), n({
|
|
1505
1505
|
focus() {
|
|
1506
1506
|
var k;
|
|
@@ -1508,7 +1508,7 @@ const $t = { class: "cl-flex cl-justify-between" }, kt = { class: "cl-w-full" },
|
|
|
1508
1508
|
}
|
|
1509
1509
|
}), (k, N) => {
|
|
1510
1510
|
const Z = K("icon");
|
|
1511
|
-
return
|
|
1511
|
+
return u(), v("div", {
|
|
1512
1512
|
key: m.value,
|
|
1513
1513
|
class: "cl-align-top cl-border-none cl-inline-block cl-text-left"
|
|
1514
1514
|
}, [
|
|
@@ -1522,14 +1522,14 @@ const $t = { class: "cl-flex cl-justify-between" }, kt = { class: "cl-w-full" },
|
|
|
1522
1522
|
[R, e.showLabel && e.label !== ""]
|
|
1523
1523
|
])
|
|
1524
1524
|
]),
|
|
1525
|
-
e.isRequired && a(g) ? (
|
|
1526
|
-
e.isRequired && !a(g) ? (
|
|
1525
|
+
e.isRequired && a(g) ? (u(), v("label", Tt, " * ")) : M("", !0),
|
|
1526
|
+
e.isRequired && !a(g) ? (u(), v("label", Ct, x(e.requiredText), 1)) : M("", !0)
|
|
1527
1527
|
]),
|
|
1528
|
-
e.inputType !== "range" && !a(Qe)(e.inputType) ? q((
|
|
1528
|
+
e.inputType !== "range" && !a(Qe)(e.inputType) ? q((u(), v("input", ge({
|
|
1529
1529
|
key: 0,
|
|
1530
1530
|
ref_key: "inputElement",
|
|
1531
1531
|
ref: o,
|
|
1532
|
-
"onUpdate:modelValue": N[0] || (N[0] = (F) => ve(
|
|
1532
|
+
"onUpdate:modelValue": N[0] || (N[0] = (F) => ve(r) ? r.value = F : null)
|
|
1533
1533
|
}, k.$attrs, {
|
|
1534
1534
|
class: ["cl-block cl-border cl-duration-300 cl-h-full cl-mb-1 cl-transition cl-w-full focus:cl-outline-none", {
|
|
1535
1535
|
"hover:!cl-border-grey-3": e.disabled === !1 && !a(Ce)(e.inputType),
|
|
@@ -1549,7 +1549,7 @@ const $t = { class: "cl-flex cl-justify-between" }, kt = { class: "cl-w-full" },
|
|
|
1549
1549
|
minlength: a(Ze)(e.inputType) ? e.min : 0,
|
|
1550
1550
|
maxlength: a(Ze)(e.inputType) ? e.max : 0,
|
|
1551
1551
|
step: e.step,
|
|
1552
|
-
placeholder: a(
|
|
1552
|
+
placeholder: a(d),
|
|
1553
1553
|
accept: e.fileExtensions,
|
|
1554
1554
|
name: e.group,
|
|
1555
1555
|
autocomplete: e.autocomplete,
|
|
@@ -1562,14 +1562,14 @@ const $t = { class: "cl-flex cl-justify-between" }, kt = { class: "cl-w-full" },
|
|
|
1562
1562
|
onInput: N[4] || (N[4] = (F) => {
|
|
1563
1563
|
t("input", F, a(Ye)(F, e.inputType));
|
|
1564
1564
|
}),
|
|
1565
|
-
onChange:
|
|
1565
|
+
onChange: rl
|
|
1566
1566
|
}), null, 16, St)), [
|
|
1567
|
-
[
|
|
1568
|
-
]) : a(Qe)(e.inputType) ? (
|
|
1567
|
+
[fl, a(r)]
|
|
1568
|
+
]) : a(Qe)(e.inputType) ? (u(), B(a(rt), ge({ key: 1 }, k.$attrs, {
|
|
1569
1569
|
ref_key: "inputElement",
|
|
1570
1570
|
ref: o,
|
|
1571
|
-
date: a(
|
|
1572
|
-
"onUpdate:date": N[5] || (N[5] = (F) => ve(
|
|
1571
|
+
date: a(b),
|
|
1572
|
+
"onUpdate:date": N[5] || (N[5] = (F) => ve(b) ? b.value = F : null),
|
|
1573
1573
|
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", {
|
|
1574
1574
|
"hover:cl-border-grey-3": !e.disabled,
|
|
1575
1575
|
"!cl-border-danger-default": !V.value,
|
|
@@ -1577,20 +1577,20 @@ const $t = { class: "cl-flex cl-justify-between" }, kt = { class: "cl-w-full" },
|
|
|
1577
1577
|
}],
|
|
1578
1578
|
disabled: e.disabled,
|
|
1579
1579
|
type: a(xt)(e.inputType),
|
|
1580
|
-
min: a(
|
|
1581
|
-
max: a(
|
|
1582
|
-
"date-placeholder": a(
|
|
1583
|
-
"date-time-placeholder": a(
|
|
1584
|
-
"time-placeholder": a(
|
|
1580
|
+
min: a(s),
|
|
1581
|
+
max: a(p),
|
|
1582
|
+
"date-placeholder": a(d),
|
|
1583
|
+
"date-time-placeholder": a(d),
|
|
1584
|
+
"time-placeholder": a(d),
|
|
1585
1585
|
onBlur: Y(be, ["self"]),
|
|
1586
1586
|
onValueOutOfRange: xe,
|
|
1587
1587
|
onFocus: N[6] || (N[6] = (F) => t("focus"))
|
|
1588
|
-
}), null, 16, ["date", "class", "disabled", "type", "min", "max", "date-placeholder", "date-time-placeholder", "time-placeholder", "onBlur"])) : e.inputType === "range" && typeof a(
|
|
1588
|
+
}), null, 16, ["date", "class", "disabled", "type", "min", "max", "date-placeholder", "date-time-placeholder", "time-placeholder", "onBlur"])) : e.inputType === "range" && typeof a(r) == "number" ? (u(), v("div", Ot, [
|
|
1589
1589
|
w(a(pt), {
|
|
1590
1590
|
ref_key: "inputElement",
|
|
1591
1591
|
ref: o,
|
|
1592
|
-
value: a(
|
|
1593
|
-
"onUpdate:value": N[7] || (N[7] = (F) => ve(
|
|
1592
|
+
value: a(r),
|
|
1593
|
+
"onUpdate:value": N[7] || (N[7] = (F) => ve(r) ? r.value = F : null),
|
|
1594
1594
|
min: a(E),
|
|
1595
1595
|
max: a(O),
|
|
1596
1596
|
step: e.step,
|
|
@@ -1601,10 +1601,10 @@ const $t = { class: "cl-flex cl-justify-between" }, kt = { class: "cl-w-full" },
|
|
|
1601
1601
|
}, null, 8, ["value", "min", "max", "step", "disabled", "onBlur"])
|
|
1602
1602
|
])) : M("", !0),
|
|
1603
1603
|
f("div", Et, [
|
|
1604
|
-
e.inputType === "number" && !e.disabled && e.showArrows ? (
|
|
1604
|
+
e.inputType === "number" && !e.disabled && e.showArrows ? (u(), v("div", {
|
|
1605
1605
|
key: 0,
|
|
1606
1606
|
class: I(["cl-absolute cl-duration-300 cl-right-1 cl-transition", {
|
|
1607
|
-
"cl-opacity-0": !
|
|
1607
|
+
"cl-opacity-0": !i.value
|
|
1608
1608
|
}]),
|
|
1609
1609
|
style: { bottom: "1.625rem" }
|
|
1610
1610
|
}, [
|
|
@@ -1616,10 +1616,10 @@ const $t = { class: "cl-flex cl-justify-between" }, kt = { class: "cl-w-full" },
|
|
|
1616
1616
|
}, ["prevent"]))
|
|
1617
1617
|
})
|
|
1618
1618
|
], 2)) : M("", !0),
|
|
1619
|
-
e.inputType === "number" && !e.disabled && e.showArrows ? (
|
|
1619
|
+
e.inputType === "number" && !e.disabled && e.showArrows ? (u(), v("div", {
|
|
1620
1620
|
key: 1,
|
|
1621
1621
|
class: I(["cl-absolute cl-bottom-2 cl-duration-300 cl-right-1 cl-transition", {
|
|
1622
|
-
"cl-opacity-0": !
|
|
1622
|
+
"cl-opacity-0": !i.value
|
|
1623
1623
|
}])
|
|
1624
1624
|
}, [
|
|
1625
1625
|
w(Z, {
|
|
@@ -1632,15 +1632,15 @@ const $t = { class: "cl-flex cl-justify-between" }, kt = { class: "cl-w-full" },
|
|
|
1632
1632
|
], 2)) : M("", !0)
|
|
1633
1633
|
])
|
|
1634
1634
|
], 32),
|
|
1635
|
-
V.value && a(J) ? (
|
|
1636
|
-
!V.value && a(T).length > 0 ? (
|
|
1635
|
+
V.value && a(J) ? (u(), v("div", jt, x(a(J)), 1)) : M("", !0),
|
|
1636
|
+
!V.value && a(T).length > 0 ? (u(), v("div", At, x(a(T)), 1)) : M("", !0)
|
|
1637
1637
|
]);
|
|
1638
1638
|
};
|
|
1639
1639
|
}
|
|
1640
1640
|
});
|
|
1641
|
-
const de = /* @__PURE__ */ he(Mt, [["__scopeId", "data-v-be462351"]]), It = { 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" }, Nt = ["onKeypress"], Dt = { class: "cl-overflow-y-auto cl-p-2 cl-w-full" }, qt = {
|
|
1641
|
+
const de = /* @__PURE__ */ he(Mt, [["__scopeId", "data-v-be462351"]]), It = { 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" }, Nt = ["onKeypress"], Dt = { class: "cl-overflow-y-auto cl-overscroll-y-none cl-p-2 cl-w-full" }, qt = {
|
|
1642
1642
|
inheritAttrs: !1
|
|
1643
|
-
},
|
|
1643
|
+
}, sl = /* @__PURE__ */ D({
|
|
1644
1644
|
...qt,
|
|
1645
1645
|
__name: "cl-ui-modal",
|
|
1646
1646
|
props: {
|
|
@@ -1649,26 +1649,26 @@ const de = /* @__PURE__ */ he(Mt, [["__scopeId", "data-v-be462351"]]), It = { cl
|
|
|
1649
1649
|
size: { default: "medium" }
|
|
1650
1650
|
},
|
|
1651
1651
|
setup(e) {
|
|
1652
|
-
const n = e, t =
|
|
1652
|
+
const n = e, t = C(!1);
|
|
1653
1653
|
function l() {
|
|
1654
|
-
t.value = !0, document.addEventListener("keydown",
|
|
1654
|
+
t.value = !0, document.addEventListener("keydown", i);
|
|
1655
1655
|
}
|
|
1656
1656
|
function o() {
|
|
1657
|
-
n.preventClose || (t.value = !1, document.removeEventListener("keydown",
|
|
1657
|
+
n.preventClose || (t.value = !1, document.removeEventListener("keydown", i));
|
|
1658
1658
|
}
|
|
1659
|
-
function c
|
|
1660
|
-
|
|
1659
|
+
function i(c) {
|
|
1660
|
+
c.key === "Escape" && o();
|
|
1661
1661
|
}
|
|
1662
|
-
return (
|
|
1663
|
-
const
|
|
1664
|
-
return
|
|
1665
|
-
A(
|
|
1666
|
-
(
|
|
1662
|
+
return (c, g) => {
|
|
1663
|
+
const d = K("icon");
|
|
1664
|
+
return u(), v(P, null, [
|
|
1665
|
+
A(c.$slots, "trigger", ae(me({ open: l }))),
|
|
1666
|
+
(u(), B(Le, { to: "body" }, [
|
|
1667
1667
|
w($e, { name: "fade" }, {
|
|
1668
|
-
default:
|
|
1668
|
+
default: z(() => [
|
|
1669
1669
|
q(f("div", It, [
|
|
1670
|
-
f("div", ge(
|
|
1671
|
-
class: ["cl-bg-white cl-flex cl-flex-wrap cl-mx-0 cl-my-auto cl-overflow-y-auto cl-relative cl-rounded-lg cl-shadow-lg", {
|
|
1670
|
+
f("div", ge(c.$attrs, {
|
|
1671
|
+
class: ["cl-bg-white cl-flex cl-flex-wrap cl-mx-0 cl-my-auto cl-overflow-y-auto cl-overscroll-y-none cl-relative cl-rounded-lg cl-shadow-lg", {
|
|
1672
1672
|
"lg:cl-w-2/12 cl-w-10/12": e.size === "x-small",
|
|
1673
1673
|
"cl-w-6/12": e.size === "small",
|
|
1674
1674
|
"cl-w-8/12": e.size === "medium",
|
|
@@ -1684,7 +1684,7 @@ const de = /* @__PURE__ */ he(Mt, [["__scopeId", "data-v-be462351"]]), It = { cl
|
|
|
1684
1684
|
onKeypress: Se(o, ["enter"]),
|
|
1685
1685
|
onClick: o
|
|
1686
1686
|
}, [
|
|
1687
|
-
w(
|
|
1687
|
+
w(d, { icon: "ph:x" })
|
|
1688
1688
|
], 42, Nt), [
|
|
1689
1689
|
[R, !e.preventClose]
|
|
1690
1690
|
]),
|
|
@@ -1695,12 +1695,12 @@ const de = /* @__PURE__ */ he(Mt, [["__scopeId", "data-v-be462351"]]), It = { cl
|
|
|
1695
1695
|
"cl-bg-primary-default cl-text-white": e.headerColour === "primary"
|
|
1696
1696
|
}])
|
|
1697
1697
|
}, [
|
|
1698
|
-
A(
|
|
1698
|
+
A(c.$slots, "title")
|
|
1699
1699
|
], 2),
|
|
1700
1700
|
f("div", Dt, [
|
|
1701
|
-
A(
|
|
1701
|
+
A(c.$slots, "default", ae(me({ close: o })))
|
|
1702
1702
|
]),
|
|
1703
|
-
A(
|
|
1703
|
+
A(c.$slots, "footer", ae(me({ close: o })))
|
|
1704
1704
|
], 16)
|
|
1705
1705
|
], 512), [
|
|
1706
1706
|
[R, t.value]
|
|
@@ -1728,8 +1728,8 @@ const de = /* @__PURE__ */ he(Mt, [["__scopeId", "data-v-be462351"]]), It = { cl
|
|
|
1728
1728
|
setup(e) {
|
|
1729
1729
|
return (n, t) => {
|
|
1730
1730
|
const l = K("icon");
|
|
1731
|
-
return
|
|
1732
|
-
e.additionalText !== "" ? (
|
|
1731
|
+
return u(), v("div", Rt, [
|
|
1732
|
+
e.additionalText !== "" ? (u(), v("div", Ut, x(e.additionalText), 1)) : M("", !0),
|
|
1733
1733
|
f("div", {
|
|
1734
1734
|
class: I({
|
|
1735
1735
|
"cl-w-1/2": e.additionalText !== "",
|
|
@@ -1750,10 +1750,10 @@ const de = /* @__PURE__ */ he(Mt, [["__scopeId", "data-v-be462351"]]), It = { cl
|
|
|
1750
1750
|
]);
|
|
1751
1751
|
};
|
|
1752
1752
|
}
|
|
1753
|
-
}),
|
|
1753
|
+
}), Pt = {
|
|
1754
1754
|
key: 0,
|
|
1755
1755
|
class: "cl-w-1/2"
|
|
1756
|
-
},
|
|
1756
|
+
}, Bt = { class: "cl-float-right cl-py-1" }, Xe = /* @__PURE__ */ D({
|
|
1757
1757
|
__name: "cl-ui-combo-box-selectable",
|
|
1758
1758
|
props: {
|
|
1759
1759
|
isCreateNewOption: { type: Boolean, default: !1 },
|
|
@@ -1768,48 +1768,48 @@ const de = /* @__PURE__ */ he(Mt, [["__scopeId", "data-v-be462351"]]), It = { cl
|
|
|
1768
1768
|
"option-highlighted": null
|
|
1769
1769
|
},
|
|
1770
1770
|
setup(e, { emit: n }) {
|
|
1771
|
-
const t = e, l =
|
|
1772
|
-
var
|
|
1773
|
-
return ((
|
|
1774
|
-
}), o =
|
|
1775
|
-
var
|
|
1776
|
-
return ((
|
|
1777
|
-
}),
|
|
1778
|
-
function
|
|
1779
|
-
var
|
|
1780
|
-
t.isCreateNewOption === !0 ? n("create-object") : n("select-object", (
|
|
1781
|
-
}
|
|
1782
|
-
function g(
|
|
1783
|
-
|
|
1784
|
-
}
|
|
1785
|
-
function
|
|
1786
|
-
t.selectedIndex === t.index ?
|
|
1787
|
-
}
|
|
1788
|
-
return W(() => t.selectedIndex, () =>
|
|
1789
|
-
var
|
|
1771
|
+
const t = e, l = S(() => {
|
|
1772
|
+
var h;
|
|
1773
|
+
return ((h = t.option) == null ? void 0 : h.name) ?? t.text;
|
|
1774
|
+
}), o = S(() => {
|
|
1775
|
+
var h;
|
|
1776
|
+
return ((h = t.option) == null ? void 0 : h.parentName) ?? "";
|
|
1777
|
+
}), i = C(!1);
|
|
1778
|
+
function c() {
|
|
1779
|
+
var h;
|
|
1780
|
+
t.isCreateNewOption === !0 ? n("create-object") : n("select-object", (h = t.option) == null ? void 0 : h.id);
|
|
1781
|
+
}
|
|
1782
|
+
function g(h) {
|
|
1783
|
+
h === !0 ? (i.value = !0, n("option-highlighted", t.index)) : t.index !== t.selectedIndex && (i.value = !1);
|
|
1784
|
+
}
|
|
1785
|
+
function d() {
|
|
1786
|
+
t.selectedIndex === t.index ? i.value = !0 : i.value = !1;
|
|
1787
|
+
}
|
|
1788
|
+
return W(() => t.selectedIndex, () => d()), (h, y) => {
|
|
1789
|
+
var r, b;
|
|
1790
1790
|
const m = K("icon");
|
|
1791
|
-
return
|
|
1791
|
+
return u(), v("div", {
|
|
1792
1792
|
class: I(["cl-cursor-pointer cl-duration-75 cl-flex cl-p-1 cl-transition-colors", {
|
|
1793
|
-
"cl-bg-white":
|
|
1794
|
-
"cl-bg-link-light cl-text-white cl-opacity-90":
|
|
1795
|
-
"cl-bg-primary-default cl-text-white cl-opacity-90":
|
|
1793
|
+
"cl-bg-white": i.value === !1,
|
|
1794
|
+
"cl-bg-link-light cl-text-white cl-opacity-90": i.value && e.isCreateNewOption === !1,
|
|
1795
|
+
"cl-bg-primary-default cl-text-white cl-opacity-90": i.value && e.isCreateNewOption
|
|
1796
1796
|
}]),
|
|
1797
|
-
onMousedown:
|
|
1798
|
-
onMousemove:
|
|
1799
|
-
onMouseleave:
|
|
1797
|
+
onMousedown: c,
|
|
1798
|
+
onMousemove: y[0] || (y[0] = (s) => g(!0)),
|
|
1799
|
+
onMouseleave: y[1] || (y[1] = (s) => g(!1))
|
|
1800
1800
|
}, [
|
|
1801
|
-
e.option !== null && ((
|
|
1801
|
+
e.option !== null && ((r = e.option) == null ? void 0 : r.parentId) !== 0 && ((b = e.option) == null ? void 0 : b.parentId) !== void 0 ? (u(), v("div", Pt, x(a(o)), 1)) : M("", !0),
|
|
1802
1802
|
f("div", {
|
|
1803
1803
|
class: I({
|
|
1804
1804
|
"cl-w-1/2": a(o) !== "",
|
|
1805
1805
|
"cl-w-full": a(o) === ""
|
|
1806
1806
|
})
|
|
1807
1807
|
}, x(a(l)), 3),
|
|
1808
|
-
q(f("div",
|
|
1808
|
+
q(f("div", Bt, [
|
|
1809
1809
|
w(m, {
|
|
1810
1810
|
class: I(["cl-transition-colors", {
|
|
1811
|
-
"cl-text-white":
|
|
1812
|
-
"cl-text-black ": !
|
|
1811
|
+
"cl-text-white": i.value,
|
|
1812
|
+
"cl-text-black ": !i.value
|
|
1813
1813
|
}]),
|
|
1814
1814
|
icon: "ph:plus"
|
|
1815
1815
|
}, null, 8, ["class"])
|
|
@@ -1819,7 +1819,7 @@ const de = /* @__PURE__ */ he(Mt, [["__scopeId", "data-v-be462351"]]), It = { cl
|
|
|
1819
1819
|
], 34);
|
|
1820
1820
|
};
|
|
1821
1821
|
}
|
|
1822
|
-
}),
|
|
1822
|
+
}), zt = ["onKeyup"], Lt = { class: "cl-flex" }, Ft = { key: 5 }, Vt = /* @__PURE__ */ D({
|
|
1823
1823
|
__name: "cl-ui-combo-box-search",
|
|
1824
1824
|
props: {
|
|
1825
1825
|
loading: { type: Boolean, default: !1 },
|
|
@@ -1840,27 +1840,27 @@ const de = /* @__PURE__ */ he(Mt, [["__scopeId", "data-v-be462351"]]), It = { cl
|
|
|
1840
1840
|
"hide-dropdown": null
|
|
1841
1841
|
},
|
|
1842
1842
|
setup(e, { emit: n }) {
|
|
1843
|
-
const t = e, { t: l } = oe(), o =
|
|
1844
|
-
function
|
|
1845
|
-
(T === void 0 || (T == null ? void 0 : T.code.startsWith("Arrow")) === !1 && (T == null ? void 0 : T.code.startsWith("Control")) === !1 && (T == null ? void 0 : T.code.startsWith("Shift")) === !1 && (T == null ? void 0 : T.code.startsWith("Tab")) === !1 && (T == null ? void 0 : T.code) !== "Enter") && (n("search", o.value),
|
|
1843
|
+
const t = e, { t: l } = oe(), o = C(""), i = C(!1), c = C(-1), g = S(() => i.value ? -1 : 0), d = C();
|
|
1844
|
+
function h(T) {
|
|
1845
|
+
(T === void 0 || (T == null ? void 0 : T.code.startsWith("Arrow")) === !1 && (T == null ? void 0 : T.code.startsWith("Control")) === !1 && (T == null ? void 0 : T.code.startsWith("Shift")) === !1 && (T == null ? void 0 : T.code.startsWith("Tab")) === !1 && (T == null ? void 0 : T.code) !== "Enter") && (n("search", o.value), c.value = -2);
|
|
1846
1846
|
}
|
|
1847
|
-
function
|
|
1847
|
+
function y(T) {
|
|
1848
1848
|
n("select-object", T);
|
|
1849
1849
|
}
|
|
1850
1850
|
function m() {
|
|
1851
|
-
n("create-object", o.value),
|
|
1851
|
+
n("create-object", o.value), r();
|
|
1852
1852
|
}
|
|
1853
|
-
function
|
|
1853
|
+
function r() {
|
|
1854
1854
|
n("hide-dropdown");
|
|
1855
1855
|
}
|
|
1856
|
-
function
|
|
1857
|
-
|
|
1856
|
+
function b(T) {
|
|
1857
|
+
c.value < t.results.length - 1 ? (c.value === -2 && o.value === "" && c.value++, c.value++) : c.value = T, O();
|
|
1858
1858
|
}
|
|
1859
|
-
function
|
|
1860
|
-
|
|
1859
|
+
function s(T) {
|
|
1860
|
+
c.value > T ? c.value-- : c.value = t.results.length - 1, O();
|
|
1861
1861
|
}
|
|
1862
|
-
function
|
|
1863
|
-
|
|
1862
|
+
function p() {
|
|
1863
|
+
c.value >= 0 && t.results !== void 0 ? y(t.results[c.value].id) : c.value === -1 && m();
|
|
1864
1864
|
}
|
|
1865
1865
|
function E(T) {
|
|
1866
1866
|
if (T.key === "Tab" && T.shiftKey === !0) {
|
|
@@ -1868,44 +1868,44 @@ const de = /* @__PURE__ */ he(Mt, [["__scopeId", "data-v-be462351"]]), It = { cl
|
|
|
1868
1868
|
let X = -1;
|
|
1869
1869
|
for (let _ = 0; _ < G.length; _++)
|
|
1870
1870
|
G[_] === T.target && (X = _ - 1);
|
|
1871
|
-
X >= 0 && (G[X].focus(),
|
|
1871
|
+
X >= 0 && (G[X].focus(), r());
|
|
1872
1872
|
}
|
|
1873
1873
|
}
|
|
1874
1874
|
function O() {
|
|
1875
1875
|
var T;
|
|
1876
|
-
t.results && t.results.length > 1 && ((T =
|
|
1876
|
+
t.results && t.results.length > 1 && ((T = d.value) == null || T.scrollTo(0, (c.value + 1) * 34 - 34 * 2));
|
|
1877
1877
|
}
|
|
1878
1878
|
function J() {
|
|
1879
1879
|
let T = !1;
|
|
1880
|
-
t.results !== null && t.results.length === 1 && (T = o.value.toUpperCase().trim() === t.results[0].name.toUpperCase().trim()),
|
|
1880
|
+
t.results !== null && t.results.length === 1 && (T = o.value.toUpperCase().trim() === t.results[0].name.toUpperCase().trim()), i.value = t.canCreateNewObject === !0 && t.errorMessage === "" && o.value.trim() !== "" && T === !1;
|
|
1881
1881
|
}
|
|
1882
1882
|
function V(T) {
|
|
1883
|
-
|
|
1883
|
+
c.value = T;
|
|
1884
1884
|
}
|
|
1885
1885
|
function ce() {
|
|
1886
|
-
t.isVisible === !0 && (o.value = "",
|
|
1886
|
+
t.isVisible === !0 && (o.value = "", h(), ke(() => {
|
|
1887
1887
|
var T, G;
|
|
1888
|
-
return (G = (T =
|
|
1888
|
+
return (G = (T = d.value) == null ? void 0 : T.querySelector("input")) == null ? void 0 : G.focus();
|
|
1889
1889
|
}));
|
|
1890
1890
|
}
|
|
1891
1891
|
return W(() => t.results, () => J()), W(() => t.errorMessage, () => J()), W(() => t.isVisible, () => ce()), Oe(() => {
|
|
1892
1892
|
var T;
|
|
1893
|
-
return (T =
|
|
1893
|
+
return (T = d.value) == null ? void 0 : T.addEventListener("keydown", E);
|
|
1894
1894
|
}), Ue(() => {
|
|
1895
1895
|
var T;
|
|
1896
|
-
return (T =
|
|
1896
|
+
return (T = d.value) == null ? void 0 : T.removeEventListener("keydown", E);
|
|
1897
1897
|
}), (T, G) => {
|
|
1898
1898
|
var _;
|
|
1899
1899
|
const X = K("cl-ui-loading-spinner");
|
|
1900
|
-
return
|
|
1900
|
+
return u(), v("div", {
|
|
1901
1901
|
ref_key: "container",
|
|
1902
|
-
ref:
|
|
1903
|
-
class: "cl-bg-white cl-border cl-border-collapse cl-border-grey-0 cl-h-52 cl-overflow-y-auto cl-p-2 cl-rounded cl-text-sm",
|
|
1902
|
+
ref: d,
|
|
1903
|
+
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",
|
|
1904
1904
|
onKeydown: [
|
|
1905
|
-
G[2] || (G[2] = Se(Y((ie) =>
|
|
1906
|
-
G[3] || (G[3] = Se(Y((ie) =>
|
|
1905
|
+
G[2] || (G[2] = Se(Y((ie) => s(a(g)), ["prevent", "stop"]), ["up"])),
|
|
1906
|
+
G[3] || (G[3] = Se(Y((ie) => b(a(g)), ["prevent", "stop"]), ["down"]))
|
|
1907
1907
|
],
|
|
1908
|
-
onKeyup: Se(Y(
|
|
1908
|
+
onKeyup: Se(Y(p, ["prevent", "stop"]), ["enter"])
|
|
1909
1909
|
}, [
|
|
1910
1910
|
f("div", Lt, [
|
|
1911
1911
|
w(de, {
|
|
@@ -1914,54 +1914,54 @@ const de = /* @__PURE__ */ he(Mt, [["__scopeId", "data-v-be462351"]]), It = { cl
|
|
|
1914
1914
|
class: "!cl-mr-0 cl-mb-1 cl-w-full",
|
|
1915
1915
|
"input-type": "text",
|
|
1916
1916
|
"placeholder-text": a(l)("comboBox.searchHint", { object: e.objectType }),
|
|
1917
|
-
onKeyup:
|
|
1918
|
-
onBlur:
|
|
1917
|
+
onKeyup: h,
|
|
1918
|
+
onBlur: r
|
|
1919
1919
|
}, null, 8, ["modelValue", "placeholder-text"]),
|
|
1920
1920
|
q(w(X, { class: "cl-absolute cl-ml-2 cl-mt-11" }, null, 512), [
|
|
1921
1921
|
[R, e.loading]
|
|
1922
1922
|
])
|
|
1923
1923
|
]),
|
|
1924
|
-
e.currentObjectName !== "" ? (
|
|
1924
|
+
e.currentObjectName !== "" ? (u(), B(je, {
|
|
1925
1925
|
key: 0,
|
|
1926
1926
|
"show-clear-button": e.canClearSelectedObject,
|
|
1927
1927
|
text: e.currentObjectName,
|
|
1928
1928
|
onClearObject: G[1] || (G[1] = (ie) => T.$emit("clear-object"))
|
|
1929
1929
|
}, null, 8, ["show-clear-button", "text"])) : M("", !0),
|
|
1930
|
-
e.objectParentType !== "" && e.results !== void 0 && e.results.length > 0 && e.errorMessage === "" ? (
|
|
1930
|
+
e.objectParentType !== "" && e.results !== void 0 && e.results.length > 0 && e.errorMessage === "" ? (u(), B(je, {
|
|
1931
1931
|
key: 1,
|
|
1932
1932
|
text: e.objectType,
|
|
1933
1933
|
"additional-text": e.objectParentType,
|
|
1934
1934
|
class: "cl-bg-grey-2 cl-mt-1"
|
|
1935
1935
|
}, null, 8, ["text", "additional-text"])) : M("", !0),
|
|
1936
|
-
e.results !== null && ((_ = e.results) == null ? void 0 : _.length) === 0 && o.value.trim() !== "" && e.canCreateNewObject === !1 && e.errorMessage === "" ? (
|
|
1936
|
+
e.results !== null && ((_ = e.results) == null ? void 0 : _.length) === 0 && o.value.trim() !== "" && e.canCreateNewObject === !1 && e.errorMessage === "" ? (u(), B(je, {
|
|
1937
1937
|
key: 2,
|
|
1938
1938
|
text: a(l)("comboBox.noResults", { value: o.value })
|
|
1939
1939
|
}, null, 8, ["text"])) : M("", !0),
|
|
1940
|
-
e.errorMessage !== "" ? (
|
|
1940
|
+
e.errorMessage !== "" ? (u(), B(je, {
|
|
1941
1941
|
key: 3,
|
|
1942
1942
|
class: "!cl-bg-danger-light cl-border-danger-light cl-rounded cl-text-danger-dark",
|
|
1943
1943
|
text: a(l)("comboBox.errorMessage", { error: e.errorMessage })
|
|
1944
1944
|
}, null, 8, ["text"])) : M("", !0),
|
|
1945
|
-
|
|
1945
|
+
i.value ? (u(), B(Xe, {
|
|
1946
1946
|
key: 4,
|
|
1947
1947
|
"is-create-new-option": !0,
|
|
1948
1948
|
text: a(l)("comboBox.addPrompt", { value: o.value, object: e.objectType }),
|
|
1949
1949
|
index: -1,
|
|
1950
|
-
"selected-index":
|
|
1950
|
+
"selected-index": c.value,
|
|
1951
1951
|
onCreateObject: m,
|
|
1952
1952
|
onOptionHighlighted: V
|
|
1953
1953
|
}, null, 8, ["text", "selected-index"])) : M("", !0),
|
|
1954
|
-
e.errorMessage === "" && e.results !== null ? (
|
|
1955
|
-
(
|
|
1954
|
+
e.errorMessage === "" && e.results !== null ? (u(), v("div", Ft, [
|
|
1955
|
+
(u(!0), v(P, null, te(e.results, (ie, pe) => (u(), B(Xe, {
|
|
1956
1956
|
key: pe,
|
|
1957
1957
|
option: ie,
|
|
1958
1958
|
index: pe,
|
|
1959
|
-
"selected-index":
|
|
1960
|
-
onSelectObject:
|
|
1959
|
+
"selected-index": c.value,
|
|
1960
|
+
onSelectObject: y,
|
|
1961
1961
|
onOptionHighlighted: V
|
|
1962
1962
|
}, null, 8, ["option", "index", "selected-index"]))), 128))
|
|
1963
1963
|
])) : M("", !0)
|
|
1964
|
-
], 40,
|
|
1964
|
+
], 40, zt);
|
|
1965
1965
|
};
|
|
1966
1966
|
}
|
|
1967
1967
|
}), 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({
|
|
@@ -1990,25 +1990,25 @@ const de = /* @__PURE__ */ he(Mt, [["__scopeId", "data-v-be462351"]]), It = { cl
|
|
|
1990
1990
|
"update:current-object": null
|
|
1991
1991
|
},
|
|
1992
1992
|
setup(e, { expose: n, emit: t }) {
|
|
1993
|
-
const l = e, { t: o } = oe(),
|
|
1993
|
+
const l = e, { t: o } = oe(), i = C(!1), c = S({
|
|
1994
1994
|
get: () => l.currentObject,
|
|
1995
1995
|
set: (j) => t("update:current-object", j)
|
|
1996
|
-
}), g =
|
|
1997
|
-
function
|
|
1998
|
-
l.disabled || (typeof j < "u" ?
|
|
1996
|
+
}), g = C(null), d = C(null), h = S(() => ie()), y = C(""), m = C(""), r = C(), b = C(!0);
|
|
1997
|
+
function s(j) {
|
|
1998
|
+
l.disabled || (typeof j < "u" ? i.value = j : i.value = !i.value);
|
|
1999
1999
|
}
|
|
2000
|
-
function
|
|
2001
|
-
|
|
2000
|
+
function p(j) {
|
|
2001
|
+
y.value = j, t("search", j);
|
|
2002
2002
|
}
|
|
2003
2003
|
function E(j) {
|
|
2004
2004
|
m.value = j, t("search-parent", j);
|
|
2005
2005
|
}
|
|
2006
2006
|
function O() {
|
|
2007
|
-
|
|
2007
|
+
c.value = null, s(!1);
|
|
2008
2008
|
}
|
|
2009
2009
|
function J(j) {
|
|
2010
2010
|
const U = V(j);
|
|
2011
|
-
|
|
2011
|
+
c.value = U, s(!1);
|
|
2012
2012
|
}
|
|
2013
2013
|
function V(j) {
|
|
2014
2014
|
let U = null;
|
|
@@ -2023,28 +2023,28 @@ const de = /* @__PURE__ */ he(Mt, [["__scopeId", "data-v-be462351"]]), It = { cl
|
|
|
2023
2023
|
}
|
|
2024
2024
|
function ce() {
|
|
2025
2025
|
var j;
|
|
2026
|
-
|
|
2027
|
-
name:
|
|
2028
|
-
parentId: ((j =
|
|
2029
|
-
}, t("create-object",
|
|
2026
|
+
r.value = {
|
|
2027
|
+
name: y.value,
|
|
2028
|
+
parentId: ((j = d.value) == null ? void 0 : j.id) ?? 0
|
|
2029
|
+
}, t("create-object", r.value);
|
|
2030
2030
|
}
|
|
2031
2031
|
function T() {
|
|
2032
|
-
|
|
2032
|
+
r.value = {
|
|
2033
2033
|
name: m.value,
|
|
2034
2034
|
parentId: 0
|
|
2035
|
-
}, t("create-parent-object",
|
|
2035
|
+
}, t("create-parent-object", r.value);
|
|
2036
2036
|
}
|
|
2037
2037
|
function G() {
|
|
2038
2038
|
var j, U;
|
|
2039
2039
|
(j = l.objectCreatedResponse) != null && j.error ? We({
|
|
2040
|
-
message: o("comboBox.createFailed", { name:
|
|
2040
|
+
message: o("comboBox.createFailed", { name: y.value, error: l.objectCreatedResponse.error }),
|
|
2041
2041
|
colour: "danger",
|
|
2042
2042
|
duration: 1e4
|
|
2043
2043
|
}) : (U = l.objectCreatedResponse) != null && U.id && _();
|
|
2044
2044
|
}
|
|
2045
2045
|
function X() {
|
|
2046
2046
|
var j;
|
|
2047
|
-
(j = l.parentObjectCreatedResponse) != null && j.id && (
|
|
2047
|
+
(j = l.parentObjectCreatedResponse) != null && j.id && (d.value = {
|
|
2048
2048
|
id: l.parentObjectCreatedResponse.id,
|
|
2049
2049
|
name: l.parentObjectCreatedResponse.name ?? ""
|
|
2050
2050
|
});
|
|
@@ -2057,7 +2057,7 @@ const de = /* @__PURE__ */ he(Mt, [["__scopeId", "data-v-be462351"]]), It = { cl
|
|
|
2057
2057
|
duration: 1e4
|
|
2058
2058
|
});
|
|
2059
2059
|
let j = "";
|
|
2060
|
-
|
|
2060
|
+
d.value && d.value.id === ((Q = l.objectCreatedResponse) == null ? void 0 : Q.parentId) && (j = d.value.name), c.value = {
|
|
2061
2061
|
id: ((be = l.objectCreatedResponse) == null ? void 0 : be.id) ?? 0,
|
|
2062
2062
|
name: (($ = l.objectCreatedResponse) == null ? void 0 : $.name) ?? "",
|
|
2063
2063
|
parentId: ((L = l.objectCreatedResponse) == null ? void 0 : L.parentId) ?? 0,
|
|
@@ -2066,33 +2066,33 @@ const de = /* @__PURE__ */ he(Mt, [["__scopeId", "data-v-be462351"]]), It = { cl
|
|
|
2066
2066
|
}
|
|
2067
2067
|
function ie() {
|
|
2068
2068
|
let j = "";
|
|
2069
|
-
return
|
|
2069
|
+
return c.value && (c.value.parentName ? j = c.value.parentName + "; " + c.value.name : j = c.value.name), j;
|
|
2070
2070
|
}
|
|
2071
2071
|
function pe() {
|
|
2072
2072
|
let j = !0;
|
|
2073
|
-
|
|
2073
|
+
y.value === "" && (j = !1), l.objectParentType !== "" && d.value === null && (j = !1), b.value = j;
|
|
2074
2074
|
}
|
|
2075
|
-
return W(() => l.objectCreatedResponse, () => G()), W(() => l.parentObjectCreatedResponse, () => X()), W(() =>
|
|
2075
|
+
return W(() => l.objectCreatedResponse, () => G()), W(() => l.parentObjectCreatedResponse, () => X()), W(() => y.value, () => pe()), W(() => d.value, () => pe()), n({
|
|
2076
2076
|
focus() {
|
|
2077
2077
|
var j;
|
|
2078
2078
|
(j = g.value) == null || j.focus();
|
|
2079
2079
|
}
|
|
2080
2080
|
}), (j, U) => {
|
|
2081
2081
|
const Q = K("icon"), be = K("cl-ui-combo-box", !0);
|
|
2082
|
-
return
|
|
2082
|
+
return u(), v("div", null, [
|
|
2083
2083
|
f("div", Gt, [
|
|
2084
2084
|
w(de, {
|
|
2085
2085
|
ref_key: "inputRef",
|
|
2086
2086
|
ref: g,
|
|
2087
|
-
modelValue: a(
|
|
2088
|
-
"onUpdate:modelValue": U[0] || (U[0] = ($) => ve(
|
|
2087
|
+
modelValue: a(h),
|
|
2088
|
+
"onUpdate:modelValue": U[0] || (U[0] = ($) => ve(h) ? h.value = $ : null),
|
|
2089
2089
|
class: I(["!cl-bg-transparent !cl-mr-0 cl-mb-0 cl-rounded-r-none cl-w-full cl-z-10", {
|
|
2090
2090
|
"cl-cursor-pointer": e.disabled === !1
|
|
2091
2091
|
}]),
|
|
2092
2092
|
"input-type": "text",
|
|
2093
2093
|
"placeholder-text": a(o)("comboBox.emptyHintText", { object: e.objectType }),
|
|
2094
2094
|
onFocus: U[1] || (U[1] = ($) => {
|
|
2095
|
-
|
|
2095
|
+
s(!0), j.$emit("focus");
|
|
2096
2096
|
})
|
|
2097
2097
|
}, null, 8, ["modelValue", "class", "placeholder-text"]),
|
|
2098
2098
|
q(f("div", Ht, [
|
|
@@ -2106,25 +2106,25 @@ const de = /* @__PURE__ */ he(Mt, [["__scopeId", "data-v-be462351"]]), It = { cl
|
|
|
2106
2106
|
], 512), [
|
|
2107
2107
|
[R, e.required && e.disabled === !1 && e.currentObject === null]
|
|
2108
2108
|
]),
|
|
2109
|
-
|
|
2109
|
+
i.value ? (u(), v("div", {
|
|
2110
2110
|
key: 1,
|
|
2111
2111
|
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", {
|
|
2112
2112
|
"cl-cursor-default": e.disabled,
|
|
2113
2113
|
"cl-cursor-pointer": e.disabled === !1
|
|
2114
2114
|
}]),
|
|
2115
|
-
onClick: U[3] || (U[3] = ($) =>
|
|
2115
|
+
onClick: U[3] || (U[3] = ($) => s(!1))
|
|
2116
2116
|
}, [
|
|
2117
2117
|
w(Q, {
|
|
2118
2118
|
icon: "ph:caret-up-bold",
|
|
2119
2119
|
class: "cl-ml-[5px] cl-mt-[12px]"
|
|
2120
2120
|
})
|
|
2121
|
-
], 2)) : (
|
|
2121
|
+
], 2)) : (u(), v("div", {
|
|
2122
2122
|
key: 0,
|
|
2123
2123
|
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", {
|
|
2124
2124
|
"cl-cursor-default": e.disabled,
|
|
2125
2125
|
"cl-cursor-pointer": e.disabled === !1
|
|
2126
2126
|
}]),
|
|
2127
|
-
onClick: U[2] || (U[2] = ($) =>
|
|
2127
|
+
onClick: U[2] || (U[2] = ($) => s(!0))
|
|
2128
2128
|
}, [
|
|
2129
2129
|
w(Q, {
|
|
2130
2130
|
icon: "ph:caret-down-bold",
|
|
@@ -2132,11 +2132,11 @@ const de = /* @__PURE__ */ he(Mt, [["__scopeId", "data-v-be462351"]]), It = { cl
|
|
|
2132
2132
|
})
|
|
2133
2133
|
], 2))
|
|
2134
2134
|
]),
|
|
2135
|
-
w(
|
|
2136
|
-
title:
|
|
2135
|
+
w(sl, { size: "x-small" }, {
|
|
2136
|
+
title: z(() => [
|
|
2137
2137
|
le(x(a(o)("comboBox.createTitle", { object: e.objectType })), 1)
|
|
2138
2138
|
]),
|
|
2139
|
-
trigger:
|
|
2139
|
+
trigger: z(({ open: $ }) => [
|
|
2140
2140
|
q(w(Vt, {
|
|
2141
2141
|
"can-create-new-object": e.canCreateNewObject,
|
|
2142
2142
|
"can-clear-selected-object": e.canClearSelectedObject,
|
|
@@ -2145,18 +2145,18 @@ const de = /* @__PURE__ */ he(Mt, [["__scopeId", "data-v-be462351"]]), It = { cl
|
|
|
2145
2145
|
"object-type": e.objectType,
|
|
2146
2146
|
"object-parent-type": e.objectParentType,
|
|
2147
2147
|
"error-message": e.errorMessage,
|
|
2148
|
-
"current-object-name": a(
|
|
2149
|
-
"is-visible":
|
|
2148
|
+
"current-object-name": a(h),
|
|
2149
|
+
"is-visible": i.value,
|
|
2150
2150
|
onCreateObject: $,
|
|
2151
2151
|
onSelectObject: J,
|
|
2152
2152
|
onClearObject: O,
|
|
2153
|
-
onSearch:
|
|
2154
|
-
onHideDropdown: U[4] || (U[4] = (L) =>
|
|
2153
|
+
onSearch: p,
|
|
2154
|
+
onHideDropdown: U[4] || (U[4] = (L) => s(!1))
|
|
2155
2155
|
}, 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"]), [
|
|
2156
|
-
[R,
|
|
2156
|
+
[R, i.value]
|
|
2157
2157
|
])
|
|
2158
2158
|
]),
|
|
2159
|
-
footer:
|
|
2159
|
+
footer: z(({ close: $ }) => [
|
|
2160
2160
|
f("div", Kt, [
|
|
2161
2161
|
w(we, {
|
|
2162
2162
|
class: "cl-mr-3",
|
|
@@ -2164,7 +2164,7 @@ const de = /* @__PURE__ */ he(Mt, [["__scopeId", "data-v-be462351"]]), It = { cl
|
|
|
2164
2164
|
size: "small",
|
|
2165
2165
|
onClick: $
|
|
2166
2166
|
}, {
|
|
2167
|
-
default:
|
|
2167
|
+
default: z(() => [
|
|
2168
2168
|
le(x(a(o)("comboBox.cancel")), 1)
|
|
2169
2169
|
]),
|
|
2170
2170
|
_: 2
|
|
@@ -2172,24 +2172,24 @@ const de = /* @__PURE__ */ he(Mt, [["__scopeId", "data-v-be462351"]]), It = { cl
|
|
|
2172
2172
|
w(we, {
|
|
2173
2173
|
colour: "primary",
|
|
2174
2174
|
size: "small",
|
|
2175
|
-
disabled: !
|
|
2175
|
+
disabled: !b.value,
|
|
2176
2176
|
onClick: (L) => {
|
|
2177
2177
|
ce(), $();
|
|
2178
2178
|
}
|
|
2179
2179
|
}, {
|
|
2180
|
-
default:
|
|
2180
|
+
default: z(() => [
|
|
2181
2181
|
le(x(a(o)("comboBox.create")), 1)
|
|
2182
2182
|
]),
|
|
2183
2183
|
_: 2
|
|
2184
2184
|
}, 1032, ["disabled", "onClick"])
|
|
2185
2185
|
])
|
|
2186
2186
|
]),
|
|
2187
|
-
default:
|
|
2187
|
+
default: z(() => [
|
|
2188
2188
|
f("div", Jt, [
|
|
2189
|
-
e.objectParentType ? (
|
|
2189
|
+
e.objectParentType ? (u(), B(be, {
|
|
2190
2190
|
key: 0,
|
|
2191
|
-
"current-object":
|
|
2192
|
-
"onUpdate:current-object": U[5] || (U[5] = ($) =>
|
|
2191
|
+
"current-object": d.value,
|
|
2192
|
+
"onUpdate:current-object": U[5] || (U[5] = ($) => d.value = $),
|
|
2193
2193
|
class: "cl-mt-3",
|
|
2194
2194
|
results: e.parentResults,
|
|
2195
2195
|
loading: e.loading,
|
|
@@ -2202,8 +2202,8 @@ const de = /* @__PURE__ */ he(Mt, [["__scopeId", "data-v-be462351"]]), It = { cl
|
|
|
2202
2202
|
onCreateObject: T
|
|
2203
2203
|
}, null, 8, ["current-object", "results", "loading", "object-type", "object-created-response", "can-create-new-object", "can-clear-selected-object", "error-message"])) : M("", !0),
|
|
2204
2204
|
w(de, {
|
|
2205
|
-
modelValue:
|
|
2206
|
-
"onUpdate:modelValue": U[6] || (U[6] = ($) =>
|
|
2205
|
+
modelValue: y.value,
|
|
2206
|
+
"onUpdate:modelValue": U[6] || (U[6] = ($) => y.value = $),
|
|
2207
2207
|
label: a(o)("comboBox.createProperty"),
|
|
2208
2208
|
class: "cl-mb-2 cl-pt-3 cl-w-full",
|
|
2209
2209
|
"input-type": "text"
|
|
@@ -2230,11 +2230,11 @@ const Xt = {}, _t = { class: "cl-flex cl-flex-wrap cl-left-0 cl-mt-4 cl-w-full"
|
|
|
2230
2230
|
class: "cl-leading-10 cl-text-sm cl-w-full"
|
|
2231
2231
|
}, tn = { class: "cl-float-left" }, nn = { class: "cl-float-right" };
|
|
2232
2232
|
function on(e, n) {
|
|
2233
|
-
return
|
|
2234
|
-
e.$slots.default ? (
|
|
2233
|
+
return u(), v("div", _t, [
|
|
2234
|
+
e.$slots.default ? (u(), v("div", en, [
|
|
2235
2235
|
A(e.$slots, "default")
|
|
2236
2236
|
])) : M("", !0),
|
|
2237
|
-
e.$slots.left || e.$slots.right ? (
|
|
2237
|
+
e.$slots.left || e.$slots.right ? (u(), v("div", ln, [
|
|
2238
2238
|
f("span", tn, [
|
|
2239
2239
|
A(e.$slots, "left")
|
|
2240
2240
|
]),
|
|
@@ -2258,21 +2258,21 @@ const an = /* @__PURE__ */ he(Xt, [["render", on]]), cn = {
|
|
|
2258
2258
|
},
|
|
2259
2259
|
setup(e) {
|
|
2260
2260
|
const { d: n } = oe();
|
|
2261
|
-
return (t, l) => e.column.type === "slot" ? A(t.$slots, e.column.name, ae(ge({ key: 0 }, { column: e.column, data: e.data }))) : e.column.type === "boolean" && e.column.field !== void 0 ? (
|
|
2261
|
+
return (t, l) => e.column.type === "slot" ? A(t.$slots, e.column.name, ae(ge({ key: 0 }, { column: e.column, data: e.data }))) : e.column.type === "boolean" && e.column.field !== void 0 ? (u(), B(de, {
|
|
2262
2262
|
key: 1,
|
|
2263
2263
|
"input-type": "checkbox",
|
|
2264
2264
|
"model-value": e.data[e.column.field],
|
|
2265
2265
|
disabled: !0
|
|
2266
|
-
}, null, 8, ["model-value"])) : (e.column.type === "date" || e.column.type === "datetime") && e.column.field !== void 0 ? (
|
|
2267
|
-
e.column.format !== void 0 ? (
|
|
2266
|
+
}, null, 8, ["model-value"])) : (e.column.type === "date" || e.column.type === "datetime") && e.column.field !== void 0 ? (u(), v(P, { key: 2 }, [
|
|
2267
|
+
e.column.format !== void 0 ? (u(), v(P, { key: 0 }, [
|
|
2268
2268
|
le(x(a(n)(new Date(e.data[e.column.field]), e.column.format)), 1)
|
|
2269
|
-
], 64)) : e.column.type === "date" ? (
|
|
2269
|
+
], 64)) : e.column.type === "date" ? (u(), v(P, { key: 1 }, [
|
|
2270
2270
|
le(x(a(n)(new Date(e.data[e.column.field]), a(H).DATE)), 1)
|
|
2271
|
-
], 64)) : (
|
|
2271
|
+
], 64)) : (u(), v(P, { key: 2 }, [
|
|
2272
2272
|
le(x(a(n)(new Date(e.data[e.column.field]), a(H).DATETIME)), 1)
|
|
2273
2273
|
], 64))
|
|
2274
|
-
], 64)) : e.column.field !== void 0 ? (
|
|
2275
|
-
e.column.maxLength !== void 0 ? (
|
|
2274
|
+
], 64)) : e.column.field !== void 0 ? (u(), v(P, { key: 3 }, [
|
|
2275
|
+
e.column.maxLength !== void 0 ? (u(), v("span", cn, x(e.data[e.column.field].trimToLength(e.column.maxLength, e.column.format !== void 0 ? e.column.format === "ellipsis" : !1)), 1)) : (u(), v("span", sn, x(e.data[e.column.field]), 1))
|
|
2276
2276
|
], 64)) : M("", !0);
|
|
2277
2277
|
}
|
|
2278
2278
|
}), rn = { class: "cl-font-semibold lg:cl-hidden" }, un = /* @__PURE__ */ D({
|
|
@@ -2284,19 +2284,19 @@ const an = /* @__PURE__ */ he(Xt, [["render", on]]), cn = {
|
|
|
2284
2284
|
},
|
|
2285
2285
|
emits: ["edit", "focus", "undo"],
|
|
2286
2286
|
setup(e, { emit: n }) {
|
|
2287
|
-
const t = e, l =
|
|
2288
|
-
return
|
|
2289
|
-
const
|
|
2290
|
-
|
|
2287
|
+
const t = e, l = C(fe(t.data)), o = S(() => t.column.field !== void 0 && l.value[t.column.field] !== t.data[t.column.field]);
|
|
2288
|
+
return ml(() => l.value = fe(t.data)), W(l, (i) => {
|
|
2289
|
+
const c = t.column.field ?? "";
|
|
2290
|
+
c !== "" && (i[c] !== t.data[c] ? n("edit", i[c]) : n("undo"));
|
|
2291
2291
|
}, {
|
|
2292
2292
|
deep: !0
|
|
2293
|
-
}), (
|
|
2293
|
+
}), (i, c) => (u(), v("td", {
|
|
2294
2294
|
class: I(["cl-border-b cl-border-grey-1 cl-gap-1 cl-grid cl-grid-cols-2 cl-m-1 cl-mb-3 cl-py-2 cl-text-xs lg:cl-border-b-0 lg:cl-m-0 lg:cl-px-0.5 lg:cl-py-3 lg:cl-table-cell lg:cl-text-base", {
|
|
2295
2295
|
"cl-bg-link-lighter": a(o)
|
|
2296
2296
|
}])
|
|
2297
2297
|
}, [
|
|
2298
2298
|
f("span", rn, x(e.column.caption), 1),
|
|
2299
|
-
e.editMode ? A(
|
|
2299
|
+
e.editMode ? A(i.$slots, `${e.column.name}Edit`, ae(ge({ key: 0 }, {
|
|
2300
2300
|
cellFocused: () => n("focus"),
|
|
2301
2301
|
column: e.column,
|
|
2302
2302
|
edited: a(o),
|
|
@@ -2306,7 +2306,7 @@ const an = /* @__PURE__ */ he(Xt, [["render", on]]), cn = {
|
|
|
2306
2306
|
column: e.column,
|
|
2307
2307
|
data: e.data
|
|
2308
2308
|
}, null, 8, ["column", "data"])
|
|
2309
|
-
]) : (
|
|
2309
|
+
]) : (u(), B(_e, {
|
|
2310
2310
|
key: 1,
|
|
2311
2311
|
column: e.column,
|
|
2312
2312
|
data: e.data
|
|
@@ -2322,20 +2322,20 @@ const an = /* @__PURE__ */ he(Xt, [["render", on]]), cn = {
|
|
|
2322
2322
|
},
|
|
2323
2323
|
emits: ["cell-focus", "cell-edit", "cell-undo", "row-select"],
|
|
2324
2324
|
setup(e) {
|
|
2325
|
-
return (n, t) => (
|
|
2326
|
-
(
|
|
2325
|
+
return (n, t) => (u(), v("tr", null, [
|
|
2326
|
+
(u(!0), v(P, null, te(e.columns, (l, o) => (u(), B(un, {
|
|
2327
2327
|
key: o,
|
|
2328
2328
|
data: e.data,
|
|
2329
2329
|
column: l,
|
|
2330
2330
|
"edit-mode": e.editMode,
|
|
2331
|
-
onFocus: t[0] || (t[0] = (
|
|
2332
|
-
onEdit: (
|
|
2333
|
-
onUndo: (
|
|
2331
|
+
onFocus: t[0] || (t[0] = (i) => n.$emit("cell-focus")),
|
|
2332
|
+
onEdit: (i) => n.$emit("cell-edit", { field: l.field, value: i }),
|
|
2333
|
+
onUndo: (i) => n.$emit("cell-undo", l.field)
|
|
2334
2334
|
}, Fe({ _: 2 }, [
|
|
2335
|
-
te(n.$slots, (
|
|
2336
|
-
name:
|
|
2337
|
-
fn:
|
|
2338
|
-
A(n.$slots,
|
|
2335
|
+
te(n.$slots, (i, c) => ({
|
|
2336
|
+
name: c,
|
|
2337
|
+
fn: z((g) => [
|
|
2338
|
+
A(n.$slots, c, ae(me(g)))
|
|
2339
2339
|
])
|
|
2340
2340
|
}))
|
|
2341
2341
|
]), 1032, ["data", "column", "edit-mode", "onEdit", "onUndo"]))), 128))
|
|
@@ -2356,36 +2356,36 @@ const an = /* @__PURE__ */ he(Xt, [["render", on]]), cn = {
|
|
|
2356
2356
|
},
|
|
2357
2357
|
emits: ["row-select", "row-edit", "clear-filters"],
|
|
2358
2358
|
setup(e, { emit: n }) {
|
|
2359
|
-
const t = e, { t: l } = oe(), o =
|
|
2359
|
+
const t = e, { t: l } = oe(), o = C({
|
|
2360
2360
|
index: -1,
|
|
2361
2361
|
record: {}
|
|
2362
2362
|
});
|
|
2363
|
-
function
|
|
2363
|
+
function i() {
|
|
2364
2364
|
Object.keys(o.value.record).length !== 0 && (n("row-edit", fe(o.value)), o.value.record = {});
|
|
2365
2365
|
}
|
|
2366
|
-
function
|
|
2367
|
-
o.value.index !== -1 && o.value.index !== m &&
|
|
2366
|
+
function c(m) {
|
|
2367
|
+
o.value.index !== -1 && o.value.index !== m && i(), o.value.index = m;
|
|
2368
2368
|
}
|
|
2369
|
-
function g(m,
|
|
2370
|
-
|
|
2369
|
+
function g(m, r) {
|
|
2370
|
+
c(m), r.field !== void 0 && (o.value.record[r.field] = r.value);
|
|
2371
2371
|
}
|
|
2372
|
-
function
|
|
2372
|
+
function d(m) {
|
|
2373
2373
|
if (m !== void 0) {
|
|
2374
|
-
const { [m]:
|
|
2374
|
+
const { [m]: r, ...b } = o.value.record;
|
|
2375
2375
|
o.value.record = {
|
|
2376
|
-
...
|
|
2376
|
+
...b
|
|
2377
2377
|
};
|
|
2378
2378
|
}
|
|
2379
2379
|
}
|
|
2380
|
-
const
|
|
2380
|
+
const h = C({});
|
|
2381
2381
|
W(() => t.data, () => {
|
|
2382
|
-
var m,
|
|
2383
|
-
return
|
|
2384
|
-
[
|
|
2382
|
+
var m, r;
|
|
2383
|
+
return h.value = Object.fromEntries(((r = (m = t.data) == null ? void 0 : m.results) == null ? void 0 : r.map((b, s) => [
|
|
2384
|
+
[s],
|
|
2385
2385
|
{
|
|
2386
2386
|
count: 0,
|
|
2387
|
-
reset:
|
|
2388
|
-
|
|
2387
|
+
reset: tl(() => {
|
|
2388
|
+
h.value[s].count = 0;
|
|
2389
2389
|
}, 750, { immediate: !1 })
|
|
2390
2390
|
}
|
|
2391
2391
|
])) ?? []);
|
|
@@ -2393,54 +2393,54 @@ const an = /* @__PURE__ */ he(Xt, [["render", on]]), cn = {
|
|
|
2393
2393
|
deep: !0,
|
|
2394
2394
|
immediate: !0
|
|
2395
2395
|
});
|
|
2396
|
-
function
|
|
2397
|
-
t.selectionEnabled ? n("row-select",
|
|
2396
|
+
function y(m, r) {
|
|
2397
|
+
t.selectionEnabled ? n("row-select", r) : (h.value[m].count++, h.value[m].count > 1 ? (h.value[m].reset.stop(), h.value[m].count = 0, n("row-select", r)) : h.value[m].reset.start());
|
|
2398
2398
|
}
|
|
2399
2399
|
return W(() => t.editMode, () => {
|
|
2400
|
-
t.editMode || (
|
|
2401
|
-
}), (m,
|
|
2402
|
-
var
|
|
2403
|
-
return
|
|
2404
|
-
e.data && ((
|
|
2405
|
-
key:
|
|
2406
|
-
data:
|
|
2400
|
+
t.editMode || (i(), o.value.index = -1);
|
|
2401
|
+
}), (m, r) => {
|
|
2402
|
+
var b;
|
|
2403
|
+
return u(), v("tbody", null, [
|
|
2404
|
+
e.data && ((b = e.data.results) != null && b.length) ? (u(!0), v(P, { key: 0 }, te(e.data.results, (s, p) => (u(), B(dn, {
|
|
2405
|
+
key: p,
|
|
2406
|
+
data: s,
|
|
2407
2407
|
columns: e.columns,
|
|
2408
2408
|
"edit-mode": e.editMode,
|
|
2409
2409
|
class: I({
|
|
2410
|
-
"cl-bg-white":
|
|
2411
|
-
"cl-bg-off-white":
|
|
2410
|
+
"cl-bg-white": p % 2 === 0,
|
|
2411
|
+
"cl-bg-off-white": p % 2 === 1,
|
|
2412
2412
|
"cl-cursor-pointer hover:cl-bg-link-lighter": e.selectionEnabled && !e.editMode
|
|
2413
2413
|
}),
|
|
2414
2414
|
onClick: (E) => {
|
|
2415
|
-
e.editMode || p
|
|
2415
|
+
e.editMode || y(p, s);
|
|
2416
2416
|
},
|
|
2417
2417
|
onCellFocus: (E) => {
|
|
2418
|
-
|
|
2418
|
+
c(p);
|
|
2419
2419
|
},
|
|
2420
2420
|
onCellEdit: (E) => {
|
|
2421
|
-
g(
|
|
2421
|
+
g(p, E);
|
|
2422
2422
|
},
|
|
2423
|
-
onCellUndo:
|
|
2423
|
+
onCellUndo: d
|
|
2424
2424
|
}, Fe({ _: 2 }, [
|
|
2425
2425
|
te(m.$slots, (E, O) => ({
|
|
2426
2426
|
name: O,
|
|
2427
|
-
fn:
|
|
2427
|
+
fn: z((J) => [
|
|
2428
2428
|
A(m.$slots, O, ae(me(J)))
|
|
2429
2429
|
])
|
|
2430
2430
|
}))
|
|
2431
|
-
]), 1032, ["data", "columns", "edit-mode", "class", "onClick", "onCellFocus", "onCellEdit"]))), 128)) : e.loading ? M("", !0) : (
|
|
2431
|
+
]), 1032, ["data", "columns", "edit-mode", "class", "onClick", "onCellFocus", "onCellEdit"]))), 128)) : e.loading ? M("", !0) : (u(), v("tr", fn, [
|
|
2432
2432
|
f("td", {
|
|
2433
2433
|
colspan: e.columns.length
|
|
2434
2434
|
}, [
|
|
2435
2435
|
f("div", gn, [
|
|
2436
2436
|
f("strong", bn, x(a(l)("grid.noData")), 1),
|
|
2437
|
-
e.request.filters.length > 0 ? (
|
|
2437
|
+
e.request.filters.length > 0 ? (u(), v("div", vn, [
|
|
2438
2438
|
f("div", hn, x(a(l)("grid.noDataFiltersPresent")), 1),
|
|
2439
2439
|
w(we, {
|
|
2440
2440
|
size: "small",
|
|
2441
|
-
onClick:
|
|
2441
|
+
onClick: r[0] || (r[0] = Y((s) => m.$emit("clear-filters"), ["prevent"]))
|
|
2442
2442
|
}, {
|
|
2443
|
-
default:
|
|
2443
|
+
default: z(() => [
|
|
2444
2444
|
le(x(a(l)("grid.clearFilters")), 1)
|
|
2445
2445
|
]),
|
|
2446
2446
|
_: 1
|
|
@@ -2455,7 +2455,7 @@ const an = /* @__PURE__ */ he(Xt, [["render", on]]), cn = {
|
|
|
2455
2455
|
}), yn = {
|
|
2456
2456
|
key: 0,
|
|
2457
2457
|
class: "cl-flex cl-flex-wrap cl-justify-end cl-mt-2 cl-w-full"
|
|
2458
|
-
}, wn = { class: "cl-bg-off-white cl-border cl-border-grey-
|
|
2458
|
+
}, wn = { 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" }, xn = { class: "cl-text-grey-3 cl-w-max" }, $n = { 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" }, kn = { 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" }, Tn = { class: "cl-flex cl-flex-wrap cl-mb-2 cl-w-full lg:cl-mb-0 lg:cl-mr-2 lg:cl-w-auto" }, Cn = { class: "cl-text-grey-3 cl-w-full lg:cl-mr-2 lg:cl-w-auto" }, Sn = { class: "cl-flex cl-flex-wrap cl-text-sm mb:cl-flex-nowrap" }, On = { class: "cl-pr-2" }, En = ["onClick"], jn = { 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" }, An = { class: "cl-mb-2 cl-text-grey-3 cl-w-full lg:cl-mb-0 lg:cl-mr-2 lg:cl-w-auto" }, Mn = ["onClick"], In = { class: "cl-mb-2 cl-w-full lg:cl-p-2 md:cl-mb-0 md:cl-w-auto" }, Nn = { 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" }, Dn = { class: "cl-block lg:cl-inline-block" }, qn = /* @__PURE__ */ D({
|
|
2459
2459
|
__name: "cl-ui-grid-footer",
|
|
2460
2460
|
props: {
|
|
2461
2461
|
request: null,
|
|
@@ -2465,42 +2465,42 @@ const an = /* @__PURE__ */ he(Xt, [["render", on]]), cn = {
|
|
|
2465
2465
|
"update:request": null
|
|
2466
2466
|
},
|
|
2467
2467
|
setup(e, { emit: n }) {
|
|
2468
|
-
const t = e, { n: l, t: o } = oe(),
|
|
2469
|
-
var
|
|
2470
|
-
return t.data !== null ? Math.ceil((((
|
|
2471
|
-
}),
|
|
2472
|
-
const
|
|
2473
|
-
let
|
|
2474
|
-
if (
|
|
2475
|
-
const
|
|
2476
|
-
|
|
2468
|
+
const t = e, { n: l, t: o } = oe(), i = S(() => {
|
|
2469
|
+
var r;
|
|
2470
|
+
return t.data !== null ? Math.ceil((((r = t.data) == null ? void 0 : r.totalRecords) ?? 0) / t.request.pageSize) : 1;
|
|
2471
|
+
}), c = S(() => {
|
|
2472
|
+
const r = Array.from(Array(i.value + 1).keys());
|
|
2473
|
+
let b = [];
|
|
2474
|
+
if (r.shift(), r.length) {
|
|
2475
|
+
const s = t.request.pageNumber === i.value || t.request.pageNumber === i.value - 1 ? i.value - 3 : t.request.pageNumber - 1;
|
|
2476
|
+
b = r.slice(s, s + 3);
|
|
2477
2477
|
}
|
|
2478
|
-
return
|
|
2478
|
+
return b;
|
|
2479
2479
|
});
|
|
2480
|
-
function g(
|
|
2481
|
-
const
|
|
2482
|
-
|
|
2480
|
+
function g(r) {
|
|
2481
|
+
const b = fe(t.request);
|
|
2482
|
+
b.pageNumber !== r && (b.pageNumber = Math.max(Math.min(Math.trunc(r), i.value), 1), n("update:request", b));
|
|
2483
2483
|
}
|
|
2484
|
-
function
|
|
2485
|
-
const
|
|
2486
|
-
g(
|
|
2484
|
+
function d(r) {
|
|
2485
|
+
const b = parseInt(r == null ? void 0 : r.value) || 1;
|
|
2486
|
+
g(b);
|
|
2487
2487
|
}
|
|
2488
|
-
const
|
|
2488
|
+
const h = [
|
|
2489
2489
|
10,
|
|
2490
2490
|
20,
|
|
2491
2491
|
50,
|
|
2492
2492
|
100,
|
|
2493
2493
|
200
|
|
2494
2494
|
];
|
|
2495
|
-
function
|
|
2496
|
-
const
|
|
2497
|
-
|
|
2495
|
+
function y(r) {
|
|
2496
|
+
const b = fe(t.request);
|
|
2497
|
+
b.pageSize = r, b.pageNumber = 1, n("update:request", b);
|
|
2498
2498
|
}
|
|
2499
|
-
const m =
|
|
2500
|
-
return (
|
|
2501
|
-
var
|
|
2502
|
-
const
|
|
2503
|
-
return (E = (
|
|
2499
|
+
const m = nl(d, 750);
|
|
2500
|
+
return (r, b) => {
|
|
2501
|
+
var p, E;
|
|
2502
|
+
const s = K("icon");
|
|
2503
|
+
return (E = (p = e.data) == null ? void 0 : p.results) != null && E.length && e.request ? (u(), v("div", yn, [
|
|
2504
2504
|
f("div", wn, [
|
|
2505
2505
|
f("span", xn, x(a(o)("grid.jumpToPage")), 1),
|
|
2506
2506
|
w(de, {
|
|
@@ -2510,8 +2510,8 @@ const an = /* @__PURE__ */ he(Xt, [["render", on]]), cn = {
|
|
|
2510
2510
|
label: "Page",
|
|
2511
2511
|
"show-label": !1,
|
|
2512
2512
|
min: "1",
|
|
2513
|
-
max: a(
|
|
2514
|
-
onInput:
|
|
2513
|
+
max: a(i),
|
|
2514
|
+
onInput: b[0] || (b[0] = (O) => a(m)(O.target))
|
|
2515
2515
|
}, null, 8, ["model-value", "max"])
|
|
2516
2516
|
]),
|
|
2517
2517
|
f("div", $n, [
|
|
@@ -2520,12 +2520,12 @@ const an = /* @__PURE__ */ he(Xt, [["render", on]]), cn = {
|
|
|
2520
2520
|
f("span", Cn, x(a(o)("grid.page")), 1)
|
|
2521
2521
|
]),
|
|
2522
2522
|
f("ul", Sn, [
|
|
2523
|
-
f("li", On, x(a(l)(e.request.pageNumber, a(ne).INTEGER)) + " / " + x(a(l)(a(
|
|
2523
|
+
f("li", On, x(a(l)(e.request.pageNumber, a(ne).INTEGER)) + " / " + x(a(l)(a(i), a(ne).INTEGER)), 1),
|
|
2524
2524
|
q(f("li", {
|
|
2525
2525
|
class: "cl-cursor-pointer cl-mr-1 cl-mt-1 lg:cl-mr-2",
|
|
2526
|
-
onClick:
|
|
2526
|
+
onClick: b[1] || (b[1] = (O) => g(1))
|
|
2527
2527
|
}, [
|
|
2528
|
-
w(
|
|
2528
|
+
w(s, {
|
|
2529
2529
|
icon: "ph:caret-double-left",
|
|
2530
2530
|
size: 14
|
|
2531
2531
|
})
|
|
@@ -2534,16 +2534,16 @@ const an = /* @__PURE__ */ he(Xt, [["render", on]]), cn = {
|
|
|
2534
2534
|
]),
|
|
2535
2535
|
q(f("li", {
|
|
2536
2536
|
class: "cl-cursor-pointer cl-mt-1 lg:cl-mr-2 mr-1",
|
|
2537
|
-
onClick:
|
|
2537
|
+
onClick: b[2] || (b[2] = (O) => g(e.request.pageNumber - 1))
|
|
2538
2538
|
}, [
|
|
2539
|
-
w(
|
|
2539
|
+
w(s, {
|
|
2540
2540
|
icon: "ph:caret-left",
|
|
2541
2541
|
size: 14
|
|
2542
2542
|
})
|
|
2543
2543
|
], 512), [
|
|
2544
2544
|
[R, e.request.pageNumber > 1]
|
|
2545
2545
|
]),
|
|
2546
|
-
(
|
|
2546
|
+
(u(!0), v(P, null, te(a(c), (O, J) => (u(), v("li", {
|
|
2547
2547
|
key: J,
|
|
2548
2548
|
class: I(["cl-cursor-pointer cl-mr-1 lg:cl-mr-2", {
|
|
2549
2549
|
"cl-text-black cl-font-bold": e.request.pageNumber === O,
|
|
@@ -2553,37 +2553,37 @@ const an = /* @__PURE__ */ he(Xt, [["render", on]]), cn = {
|
|
|
2553
2553
|
}, x(a(l)(O, a(ne).INTEGER)), 11, En))), 128)),
|
|
2554
2554
|
q(f("li", {
|
|
2555
2555
|
class: "cl-cursor-pointer cl-mr-1 cl-mt-1 lg:cl-mr-2",
|
|
2556
|
-
onClick:
|
|
2556
|
+
onClick: b[3] || (b[3] = (O) => g(e.request.pageNumber + 1))
|
|
2557
2557
|
}, [
|
|
2558
|
-
w(
|
|
2558
|
+
w(s, {
|
|
2559
2559
|
icon: "ph:caret-right",
|
|
2560
2560
|
size: 14
|
|
2561
2561
|
})
|
|
2562
2562
|
], 512), [
|
|
2563
|
-
[R, e.request.pageNumber < a(
|
|
2563
|
+
[R, e.request.pageNumber < a(i)]
|
|
2564
2564
|
]),
|
|
2565
2565
|
q(f("li", {
|
|
2566
2566
|
class: "cl-cursor-pointer cl-mr-1 cl-mt-1 lg:cl-mr-2",
|
|
2567
|
-
onClick:
|
|
2567
|
+
onClick: b[4] || (b[4] = (O) => g(a(i)))
|
|
2568
2568
|
}, [
|
|
2569
|
-
w(
|
|
2569
|
+
w(s, {
|
|
2570
2570
|
icon: "ph:caret-double-right",
|
|
2571
2571
|
size: 14
|
|
2572
2572
|
})
|
|
2573
2573
|
], 512), [
|
|
2574
|
-
[R, e.request.pageNumber < a(
|
|
2574
|
+
[R, e.request.pageNumber < a(i)]
|
|
2575
2575
|
])
|
|
2576
2576
|
])
|
|
2577
2577
|
]),
|
|
2578
2578
|
f("ul", jn, [
|
|
2579
2579
|
f("li", An, x(a(o)("grid.pageSize")), 1),
|
|
2580
|
-
(
|
|
2580
|
+
(u(), v(P, null, te(h, (O, J) => f("li", {
|
|
2581
2581
|
key: J,
|
|
2582
2582
|
class: I(["cl-cursor-pointer cl-mr-1 lg:cl-mr-2", {
|
|
2583
2583
|
"cl-text-black cl-font-bold": e.request.pageSize === O,
|
|
2584
2584
|
"cl-text-grey-6": e.request.pageSize !== O
|
|
2585
2585
|
}]),
|
|
2586
|
-
onClick: (V) =>
|
|
2586
|
+
onClick: (V) => y(O)
|
|
2587
2587
|
}, x(a(l)(O, a(ne).INTEGER)), 11, Mn)), 64))
|
|
2588
2588
|
]),
|
|
2589
2589
|
f("ul", In, [
|
|
@@ -2594,10 +2594,10 @@ const an = /* @__PURE__ */ he(Xt, [["render", on]]), cn = {
|
|
|
2594
2594
|
])) : M("", !0);
|
|
2595
2595
|
};
|
|
2596
2596
|
}
|
|
2597
|
-
}), Rn = ["colspan"], Un = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" },
|
|
2597
|
+
}), Rn = ["colspan"], Un = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, Pn = { class: "cl-gap-1 cl-grid cl-grid-cols-2 cl-justify-end cl-mb-2 lg:cl-flex lg:cl-gap-2" }, Bn = {
|
|
2598
2598
|
key: 0,
|
|
2599
2599
|
class: "cl-hidden lg:cl-block"
|
|
2600
|
-
},
|
|
2600
|
+
}, zn = { class: "cl-block cl-col-span-2 lg:cl-hidden" }, Ln = /* @__PURE__ */ D({
|
|
2601
2601
|
__name: "cl-ui-grid-action-row",
|
|
2602
2602
|
props: {
|
|
2603
2603
|
editMode: { type: Boolean },
|
|
@@ -2607,49 +2607,49 @@ const an = /* @__PURE__ */ he(Xt, [["render", on]]), cn = {
|
|
|
2607
2607
|
},
|
|
2608
2608
|
emits: ["update:edit-mode", "update:filterPanelOpen", "clear-filters"],
|
|
2609
2609
|
setup(e) {
|
|
2610
|
-
const n = e, { t } = oe(), l =
|
|
2611
|
-
return (o,
|
|
2610
|
+
const n = e, { t } = oe(), l = S(() => n.columns.some((o) => o.filterable || o.filterable === void 0 || o.sortable || o.sortable === void 0));
|
|
2611
|
+
return (o, i) => (u(), v("tr", null, [
|
|
2612
2612
|
f("th", {
|
|
2613
2613
|
colspan: e.columns.length
|
|
2614
2614
|
}, [
|
|
2615
2615
|
f("div", Un, [
|
|
2616
2616
|
f("strong", null, x(a(t)("grid.gridTools")), 1)
|
|
2617
2617
|
]),
|
|
2618
|
-
f("div",
|
|
2618
|
+
f("div", Pn, [
|
|
2619
2619
|
w(we, {
|
|
2620
2620
|
size: "small",
|
|
2621
2621
|
colour: "default",
|
|
2622
|
-
onClick:
|
|
2622
|
+
onClick: i[0] || (i[0] = Y((c) => o.$emit("update:edit-mode", !e.editMode), ["prevent"]))
|
|
2623
2623
|
}, {
|
|
2624
|
-
default:
|
|
2625
|
-
e.editMode ? (
|
|
2624
|
+
default: z(() => [
|
|
2625
|
+
e.editMode ? (u(), v(P, { key: 0 }, [
|
|
2626
2626
|
le(x(a(t)("grid.finishEditing")), 1)
|
|
2627
|
-
], 64)) : (
|
|
2627
|
+
], 64)) : (u(), v(P, { key: 1 }, [
|
|
2628
2628
|
le(x(a(t)("grid.editData")), 1)
|
|
2629
2629
|
], 64))
|
|
2630
2630
|
]),
|
|
2631
2631
|
_: 1
|
|
2632
2632
|
}),
|
|
2633
|
-
e.options.hideViewManager ? M("", !0) : (
|
|
2633
|
+
e.options.hideViewManager ? M("", !0) : (u(), v("div", Bn, [
|
|
2634
2634
|
A(o.$slots, "view-manager")
|
|
2635
2635
|
])),
|
|
2636
|
-
a(l) ? (
|
|
2636
|
+
a(l) ? (u(), v(P, { key: 1 }, [
|
|
2637
2637
|
w(we, {
|
|
2638
2638
|
size: "small",
|
|
2639
|
-
onClick:
|
|
2639
|
+
onClick: i[1] || (i[1] = Y((c) => o.$emit("clear-filters"), ["prevent"]))
|
|
2640
2640
|
}, {
|
|
2641
|
-
default:
|
|
2641
|
+
default: z(() => [
|
|
2642
2642
|
le(x(a(t)("grid.clearFilters")), 1)
|
|
2643
2643
|
]),
|
|
2644
2644
|
_: 1
|
|
2645
2645
|
}),
|
|
2646
|
-
f("div",
|
|
2646
|
+
f("div", zn, [
|
|
2647
2647
|
w(we, {
|
|
2648
2648
|
class: "cl-w-full",
|
|
2649
2649
|
size: "small",
|
|
2650
|
-
onClick:
|
|
2650
|
+
onClick: i[2] || (i[2] = Y((c) => o.$emit("update:filterPanelOpen", !e.filterPanelOpen), ["prevent"]))
|
|
2651
2651
|
}, {
|
|
2652
|
-
default:
|
|
2652
|
+
default: z(() => [
|
|
2653
2653
|
le(x(a(t)("grid.modifyFilters")), 1)
|
|
2654
2654
|
]),
|
|
2655
2655
|
_: 1
|
|
@@ -2668,14 +2668,14 @@ const an = /* @__PURE__ */ he(Xt, [["render", on]]), cn = {
|
|
|
2668
2668
|
"datetime",
|
|
2669
2669
|
"slot"
|
|
2670
2670
|
];
|
|
2671
|
-
function
|
|
2671
|
+
function il(e) {
|
|
2672
2672
|
return typeof e.caption == "string" && typeof e.name == "string" && typeof e.type == "string";
|
|
2673
2673
|
}
|
|
2674
2674
|
function Vn(e) {
|
|
2675
2675
|
let n = Array.isArray(e);
|
|
2676
2676
|
if (n) {
|
|
2677
2677
|
for (const t of e)
|
|
2678
|
-
if (!
|
|
2678
|
+
if (!il(t)) {
|
|
2679
2679
|
n = !1;
|
|
2680
2680
|
break;
|
|
2681
2681
|
}
|
|
@@ -2821,25 +2821,25 @@ const Qn = {
|
|
|
2821
2821
|
},
|
|
2822
2822
|
emits: ["update:filter"],
|
|
2823
2823
|
setup(e, { emit: n }) {
|
|
2824
|
-
const t = e, { t: l } = oe(), o =
|
|
2824
|
+
const t = e, { t: l } = oe(), o = S(() => {
|
|
2825
2825
|
let g = [];
|
|
2826
|
-
return t.column.type !== "slot" ? g = el.filter((
|
|
2827
|
-
|
|
2826
|
+
return t.column.type !== "slot" ? g = el.filter((d) => d.allowedTypes.includes(t.column.type)) : typeof t.column.slotType < "u" && typeof t.column.field < "u" && (g = el.filter((d) => d.allowedTypes.includes(t.column.slotType))), g.forEach((d) => {
|
|
2827
|
+
d.description = l(`grid.${d.method}`);
|
|
2828
2828
|
}), g;
|
|
2829
|
-
}),
|
|
2830
|
-
var
|
|
2831
|
-
let g = (
|
|
2832
|
-
return typeof g > "u" && (g = ye[t.defaultOperation]), o.value.find((
|
|
2833
|
-
var
|
|
2834
|
-
return
|
|
2829
|
+
}), i = S(() => {
|
|
2830
|
+
var d;
|
|
2831
|
+
let g = (d = t.filter) == null ? void 0 : d.filterMethod;
|
|
2832
|
+
return typeof g > "u" && (g = ye[t.defaultOperation]), o.value.find((h) => {
|
|
2833
|
+
var y;
|
|
2834
|
+
return h.method.toLowerCase() === ((y = g == null ? void 0 : g.removeNonAlphanumeric()) == null ? void 0 : y.toLowerCase());
|
|
2835
2835
|
});
|
|
2836
2836
|
});
|
|
2837
|
-
function
|
|
2838
|
-
let
|
|
2837
|
+
function c(g) {
|
|
2838
|
+
let d;
|
|
2839
2839
|
if (t.filter)
|
|
2840
|
-
|
|
2840
|
+
d = fe(t.filter), d.filterOperation = ye[g.toUpperCase()], d.filterMethod = g.toUpperCase();
|
|
2841
2841
|
else if (typeof t.column.field < "u")
|
|
2842
|
-
|
|
2842
|
+
d = {
|
|
2843
2843
|
filterOnColumn: t.column.field,
|
|
2844
2844
|
filterMethod: g.toUpperCase(),
|
|
2845
2845
|
filterOperation: ye[g.toUpperCase()],
|
|
@@ -2847,15 +2847,15 @@ const Qn = {
|
|
|
2847
2847
|
};
|
|
2848
2848
|
else
|
|
2849
2849
|
return;
|
|
2850
|
-
n("update:filter",
|
|
2850
|
+
n("update:filter", d);
|
|
2851
2851
|
}
|
|
2852
|
-
return (g,
|
|
2853
|
-
var
|
|
2854
|
-
const
|
|
2855
|
-
return
|
|
2852
|
+
return (g, d) => {
|
|
2853
|
+
var y;
|
|
2854
|
+
const h = K("icon");
|
|
2855
|
+
return u(), v("div", _n, [
|
|
2856
2856
|
f("div", eo, [
|
|
2857
|
-
w(
|
|
2858
|
-
icon: (
|
|
2857
|
+
w(h, {
|
|
2858
|
+
icon: (y = a(i)) == null ? void 0 : y.icon,
|
|
2859
2859
|
class: "cl-text-grey-4 cl-text-lg"
|
|
2860
2860
|
}, null, 8, ["icon"])
|
|
2861
2861
|
]),
|
|
@@ -2866,17 +2866,17 @@ const Qn = {
|
|
|
2866
2866
|
}])
|
|
2867
2867
|
}, [
|
|
2868
2868
|
f("strong", lo, x(a(l)("grid.availableMethods")), 1),
|
|
2869
|
-
(
|
|
2870
|
-
var
|
|
2871
|
-
return
|
|
2872
|
-
key:
|
|
2869
|
+
(u(!0), v(P, null, te(a(o), (m, r) => {
|
|
2870
|
+
var b;
|
|
2871
|
+
return u(), v("span", {
|
|
2872
|
+
key: r,
|
|
2873
2873
|
class: I(["cl-cursor-pointer cl-px-4 cl-py-1 cl-transition-colors cl-w-full hover:cl-bg-grey-0", {
|
|
2874
|
-
"cl-bg-off-white": m.method === ((
|
|
2874
|
+
"cl-bg-off-white": m.method === ((b = a(i)) == null ? void 0 : b.method)
|
|
2875
2875
|
}]),
|
|
2876
|
-
onClick: Y((
|
|
2876
|
+
onClick: Y((s) => c(m.method), ["prevent"])
|
|
2877
2877
|
}, [
|
|
2878
2878
|
le(x(m.description) + " ", 1),
|
|
2879
|
-
w(
|
|
2879
|
+
w(h, {
|
|
2880
2880
|
icon: m.icon,
|
|
2881
2881
|
class: "cl-float-right cl-text-grey-4 cl-text-sm"
|
|
2882
2882
|
}, null, 8, ["icon"])
|
|
@@ -2902,27 +2902,27 @@ const Qn = {
|
|
|
2902
2902
|
emits: ["update:filter"],
|
|
2903
2903
|
setup(e, { emit: n }) {
|
|
2904
2904
|
const t = e, { locale: l, t: o } = oe();
|
|
2905
|
-
function
|
|
2905
|
+
function i() {
|
|
2906
2906
|
return t.column.type === "string" || t.column.slotType === "string" ? ye.CONTAINS : t.column.type === "datetime" || t.column.slotType === "datetime" ? ye.LESS_THAN : ye.EQUAL;
|
|
2907
2907
|
}
|
|
2908
|
-
const
|
|
2908
|
+
const c = S({
|
|
2909
2909
|
get: () => t.filter,
|
|
2910
|
-
set: (
|
|
2911
|
-
}), g =
|
|
2912
|
-
var
|
|
2913
|
-
return ((
|
|
2914
|
-
}),
|
|
2915
|
-
const
|
|
2916
|
-
return
|
|
2910
|
+
set: (s) => n("update:filter", s)
|
|
2911
|
+
}), g = S(() => {
|
|
2912
|
+
var s;
|
|
2913
|
+
return ((s = c.value) == null ? void 0 : s.filterValue) ?? "";
|
|
2914
|
+
}), d = S(() => g.value !== "" ? new Date(g.value) : null), h = S(() => Intl.NumberFormat(l.value).format(1.1).replace(/[0-9]+/g, "")), y = S(() => {
|
|
2915
|
+
const s = t.column.type !== "slot" || t.column.slotType !== void 0 && t.column.field !== void 0, p = (t.column.filterable ?? !0) === !0;
|
|
2916
|
+
return s && p;
|
|
2917
2917
|
});
|
|
2918
|
-
function m(
|
|
2918
|
+
function m(s, p) {
|
|
2919
2919
|
var V;
|
|
2920
2920
|
let E, O = !1;
|
|
2921
|
-
const J = ((
|
|
2922
|
-
if (
|
|
2923
|
-
O = ((V =
|
|
2921
|
+
const J = ((s == null ? void 0 : s.value) ?? p).trim();
|
|
2922
|
+
if (c.value)
|
|
2923
|
+
O = ((V = c.value) == null ? void 0 : V.filterValue) === J, E = fe(c.value), E.filterValue = J;
|
|
2924
2924
|
else if (J !== "" && typeof t.column.field < "u") {
|
|
2925
|
-
const ce =
|
|
2925
|
+
const ce = i();
|
|
2926
2926
|
E = {
|
|
2927
2927
|
filterOnColumn: t.column.field,
|
|
2928
2928
|
filterMethod: ye[ce],
|
|
@@ -2931,27 +2931,27 @@ const Qn = {
|
|
|
2931
2931
|
};
|
|
2932
2932
|
} else
|
|
2933
2933
|
return;
|
|
2934
|
-
O === !1 && (
|
|
2934
|
+
O === !1 && (c.value = E);
|
|
2935
2935
|
}
|
|
2936
|
-
function
|
|
2937
|
-
let
|
|
2938
|
-
t.column.format === ne.INTEGER ? (typeof
|
|
2936
|
+
function r(s) {
|
|
2937
|
+
let p = "";
|
|
2938
|
+
t.column.format === ne.INTEGER ? (typeof s == "string" && (s = parseInt(s)), p = Math.round(s).toString()) : (typeof s == "string" && (s = parseFloat(s.replace(h.value, "."))), p = s.toString()), typeof p == "number" && isNaN(p) && (p = ""), m(null, p.toString());
|
|
2939
2939
|
}
|
|
2940
|
-
function
|
|
2941
|
-
m(null, (
|
|
2940
|
+
function b(s) {
|
|
2941
|
+
m(null, (s == null ? void 0 : s.toISOString()) ?? "");
|
|
2942
2942
|
}
|
|
2943
|
-
return (
|
|
2943
|
+
return (s, p) => a(y) ? (u(), v("div", oo, [
|
|
2944
2944
|
w(no, {
|
|
2945
|
-
filter: a(
|
|
2946
|
-
"onUpdate:filter":
|
|
2945
|
+
filter: a(c),
|
|
2946
|
+
"onUpdate:filter": p[0] || (p[0] = (E) => ve(c) ? c.value = E : null),
|
|
2947
2947
|
column: e.column,
|
|
2948
|
-
"default-operation":
|
|
2948
|
+
"default-operation": i(),
|
|
2949
2949
|
"first-half": e.firstHalf
|
|
2950
2950
|
}, null, 8, ["filter", "column", "default-operation", "first-half"]),
|
|
2951
|
-
e.column.type === "boolean" || e.column.slotType === "boolean" ? (
|
|
2951
|
+
e.column.type === "boolean" || e.column.slotType === "boolean" ? (u(), v("select", {
|
|
2952
2952
|
key: 0,
|
|
2953
2953
|
class: "cl-border-none cl-w-full",
|
|
2954
|
-
onChange:
|
|
2954
|
+
onChange: p[1] || (p[1] = (E) => m(E.target))
|
|
2955
2955
|
}, [
|
|
2956
2956
|
ao,
|
|
2957
2957
|
f("option", {
|
|
@@ -2962,33 +2962,33 @@ const Qn = {
|
|
|
2962
2962
|
value: "false",
|
|
2963
2963
|
selected: a(g) === "false"
|
|
2964
2964
|
}, x(a(o)("grid.false")), 9, so)
|
|
2965
|
-
], 32)) : e.column.type === "date" || e.column.type === "datetime" || e.column.slotType === "date" || e.column.slotType === "datetime" ? (
|
|
2965
|
+
], 32)) : e.column.type === "date" || e.column.type === "datetime" || e.column.slotType === "date" || e.column.slotType === "datetime" ? (u(), B(de, {
|
|
2966
2966
|
key: 1,
|
|
2967
|
-
"model-value": a(
|
|
2967
|
+
"model-value": a(d),
|
|
2968
2968
|
class: "!cl-h-[2rem] !cl-text-xs cl-border-none cl-mb-0 cl-w-full lg:!cl-h-[2.5rem] lg:!cl-text-base",
|
|
2969
2969
|
min: "1900-01-01",
|
|
2970
2970
|
max: "2999-12-31T23:59",
|
|
2971
|
-
label: e.column.
|
|
2971
|
+
label: e.column.caption,
|
|
2972
2972
|
"show-label": !1,
|
|
2973
2973
|
"input-type": e.column.type,
|
|
2974
|
-
"onUpdate:modelValue":
|
|
2975
|
-
}, null, 8, ["model-value", "label", "input-type"])) : e.column.type === "number" || e.column.slotType === "number" ? (
|
|
2974
|
+
"onUpdate:modelValue": p[2] || (p[2] = (E) => b(E))
|
|
2975
|
+
}, null, 8, ["model-value", "label", "input-type"])) : e.column.type === "number" || e.column.slotType === "number" ? (u(), B(de, {
|
|
2976
2976
|
key: 2,
|
|
2977
2977
|
"model-value": a(g),
|
|
2978
2978
|
class: "!cl-h-[2rem] !cl-text-xs cl-border-none cl-mb-0 cl-w-full lg:!cl-h-[2.5rem] lg:!cl-text-base",
|
|
2979
2979
|
"input-type": "number",
|
|
2980
2980
|
"show-arrows": !1,
|
|
2981
|
-
onInput:
|
|
2982
|
-
}, null, 8, ["model-value"])) : e.column.type !== "slot" || e.column.slotType === "string" ? (
|
|
2981
|
+
onInput: p[3] || (p[3] = (E, O) => r(O))
|
|
2982
|
+
}, null, 8, ["model-value"])) : e.column.type !== "slot" || e.column.slotType === "string" ? (u(), B(de, {
|
|
2983
2983
|
key: 3,
|
|
2984
2984
|
"model-value": a(g),
|
|
2985
2985
|
class: "!cl-h-[2rem] !cl-text-xs cl-border-none cl-mb-0 cl-w-full lg:!cl-h-[2.5rem] lg:!cl-text-base",
|
|
2986
2986
|
"input-type": "text",
|
|
2987
|
-
onInput:
|
|
2987
|
+
onInput: p[4] || (p[4] = (E, O) => m(null, O))
|
|
2988
2988
|
}, null, 8, ["model-value"])) : M("", !0)
|
|
2989
|
-
])) : (
|
|
2989
|
+
])) : (u(), v("div", io, " "));
|
|
2990
2990
|
}
|
|
2991
|
-
}), uo = { class: "-cl-top-1 cl-bg-white cl-shadow-md cl-sticky cl-z-10 lg:cl-relative lg:cl-shadow-none" }, fo = { class: "cl-hidden lg:cl-table-row" }, mo = ["onClick"], go = { class: "cl-flex cl-justify-end cl-w-full lg:cl-hidden" }, bo = { class: "cl-col-span-2 lg:cl-hidden" }, vo = ["onClick"], ho = { class: "cl-font-normal cl-mr-1" }, po = {
|
|
2991
|
+
}), uo = { class: "-cl-top-1 cl-bg-white cl-shadow-md cl-sticky cl-z-10 lg:cl-bg-transparent lg:cl-relative lg:cl-shadow-none" }, fo = { class: "cl-hidden lg:cl-table-row" }, mo = ["onClick"], go = { class: "cl-flex cl-justify-end cl-w-full lg:cl-hidden" }, bo = { class: "cl-col-span-2 lg:cl-hidden" }, vo = ["onClick"], ho = { class: "cl-font-normal cl-mr-1" }, po = {
|
|
2992
2992
|
key: 1,
|
|
2993
2993
|
class: "lg:cl-hidden"
|
|
2994
2994
|
}, yo = /* @__PURE__ */ D({
|
|
@@ -3001,72 +3001,72 @@ const Qn = {
|
|
|
3001
3001
|
},
|
|
3002
3002
|
emits: ["update:request", "update:edit-mode", "clear-filters"],
|
|
3003
3003
|
setup(e, { emit: n }) {
|
|
3004
|
-
const t = e, { t: l } = oe(), o =
|
|
3004
|
+
const t = e, { t: l } = oe(), o = C(!1), i = S({
|
|
3005
3005
|
get: () => t.request,
|
|
3006
3006
|
set: (m) => n("update:request", m)
|
|
3007
3007
|
});
|
|
3008
|
-
function
|
|
3009
|
-
var
|
|
3010
|
-
return ((
|
|
3008
|
+
function c(m, r) {
|
|
3009
|
+
var b, s;
|
|
3010
|
+
return ((b = i.value.sort) == null ? void 0 : b.sortOnColumn) === m.field && ((s = i.value.sort) == null ? void 0 : s.sortByAscending) === r;
|
|
3011
3011
|
}
|
|
3012
3012
|
function g(m) {
|
|
3013
3013
|
if (typeof m < "u") {
|
|
3014
|
-
const
|
|
3015
|
-
|
|
3014
|
+
const r = fe(t.request);
|
|
3015
|
+
r.sort === null || r.sort.sortOnColumn !== m ? r.sort = {
|
|
3016
3016
|
sortOnColumn: m,
|
|
3017
3017
|
sortByAscending: !0
|
|
3018
|
-
} :
|
|
3018
|
+
} : r.sort.sortOnColumn === m && r.sort.sortByAscending === !0 ? r.sort.sortByAscending = !1 : r.sort = null, i.value = r;
|
|
3019
3019
|
}
|
|
3020
3020
|
}
|
|
3021
|
-
function
|
|
3021
|
+
function d(m) {
|
|
3022
3022
|
if (m) {
|
|
3023
|
-
const
|
|
3024
|
-
|
|
3023
|
+
const r = fe(i.value), b = r.filters.findIndex((s) => s.filterOnColumn === m.filterOnColumn);
|
|
3024
|
+
b > -1 ? r.filters[b] = m : r.filters.push(m), r.pageNumber = 1, i.value = r;
|
|
3025
3025
|
}
|
|
3026
3026
|
}
|
|
3027
|
-
const
|
|
3027
|
+
const h = S({
|
|
3028
3028
|
get: () => t.editMode,
|
|
3029
3029
|
set: (m) => n("update:edit-mode", m)
|
|
3030
3030
|
});
|
|
3031
|
-
function
|
|
3032
|
-
const
|
|
3033
|
-
return
|
|
3031
|
+
function y(m) {
|
|
3032
|
+
const r = m.type !== "slot" || m.slotType !== void 0 && m.field !== void 0, b = (m.sortable ?? !0) === !0;
|
|
3033
|
+
return r && b;
|
|
3034
3034
|
}
|
|
3035
|
-
return (m,
|
|
3036
|
-
const
|
|
3037
|
-
return
|
|
3035
|
+
return (m, r) => {
|
|
3036
|
+
const b = K("icon");
|
|
3037
|
+
return u(), v("thead", uo, [
|
|
3038
3038
|
w(Ln, {
|
|
3039
|
-
"edit-mode": a(
|
|
3040
|
-
"onUpdate:edit-mode":
|
|
3039
|
+
"edit-mode": a(h),
|
|
3040
|
+
"onUpdate:edit-mode": r[0] || (r[0] = (s) => ve(h) ? h.value = s : null),
|
|
3041
3041
|
"filter-panel-open": o.value,
|
|
3042
|
-
"onUpdate:filter-panel-open":
|
|
3042
|
+
"onUpdate:filter-panel-open": r[1] || (r[1] = (s) => o.value = s),
|
|
3043
3043
|
columns: e.columns,
|
|
3044
3044
|
options: e.options,
|
|
3045
|
-
onClearFilters:
|
|
3045
|
+
onClearFilters: r[2] || (r[2] = (s) => m.$emit("clear-filters"))
|
|
3046
3046
|
}, {
|
|
3047
|
-
"view-manager":
|
|
3047
|
+
"view-manager": z(() => [
|
|
3048
3048
|
A(m.$slots, "view-manager")
|
|
3049
3049
|
]),
|
|
3050
3050
|
_: 3
|
|
3051
3051
|
}, 8, ["edit-mode", "filter-panel-open", "columns", "options"]),
|
|
3052
3052
|
f("tr", fo, [
|
|
3053
|
-
(
|
|
3054
|
-
key:
|
|
3053
|
+
(u(!0), v(P, null, te(e.columns, (s, p) => (u(), v("th", {
|
|
3054
|
+
key: p,
|
|
3055
3055
|
class: "cl-cursor-pointer cl-text-grey-3 cl-text-sm",
|
|
3056
|
-
onClick: (E) => g(
|
|
3056
|
+
onClick: (E) => g(s.field)
|
|
3057
3057
|
}, [
|
|
3058
|
-
le(x(
|
|
3059
|
-
q(w(
|
|
3058
|
+
le(x(s.caption) + " ", 1),
|
|
3059
|
+
q(w(b, {
|
|
3060
3060
|
class: "cl-inline-block",
|
|
3061
3061
|
icon: "ph:caret-up"
|
|
3062
3062
|
}, null, 512), [
|
|
3063
|
-
[R, s
|
|
3063
|
+
[R, c(s, !0)]
|
|
3064
3064
|
]),
|
|
3065
|
-
q(w(
|
|
3065
|
+
q(w(b, {
|
|
3066
3066
|
class: "cl-inline-block",
|
|
3067
3067
|
icon: "ph:caret-down"
|
|
3068
3068
|
}, null, 512), [
|
|
3069
|
-
[R, s
|
|
3069
|
+
[R, c(s, !1)]
|
|
3070
3070
|
])
|
|
3071
3071
|
], 8, mo))), 128))
|
|
3072
3072
|
]),
|
|
@@ -3076,51 +3076,51 @@ const Qn = {
|
|
|
3076
3076
|
}])
|
|
3077
3077
|
}, [
|
|
3078
3078
|
f("div", go, [
|
|
3079
|
-
w(
|
|
3079
|
+
w(b, {
|
|
3080
3080
|
class: "cl-text-grey-4",
|
|
3081
3081
|
icon: "ph:x",
|
|
3082
3082
|
size: 16,
|
|
3083
|
-
onClick:
|
|
3083
|
+
onClick: r[3] || (r[3] = Y((s) => o.value = !1, ["prevent"]))
|
|
3084
3084
|
})
|
|
3085
3085
|
]),
|
|
3086
|
-
(
|
|
3087
|
-
key:
|
|
3086
|
+
(u(!0), v(P, null, te(e.columns, (s, p) => (u(), v("th", {
|
|
3087
|
+
key: p,
|
|
3088
3088
|
class: "cl-grid cl-grid-cols-4 cl-py-1 cl-text-xs cl-w-full lg:cl-table-cell lg:cl-w-auto"
|
|
3089
3089
|
}, [
|
|
3090
|
-
f("div", bo, x(
|
|
3091
|
-
|
|
3090
|
+
f("div", bo, x(s.caption), 1),
|
|
3091
|
+
y(s) ? (u(), v("div", {
|
|
3092
3092
|
key: 0,
|
|
3093
3093
|
class: "cl-col-span-2 cl-gap-1 cl-span lg:cl-hidden",
|
|
3094
|
-
onClick: (E) => g(
|
|
3094
|
+
onClick: (E) => g(s.field)
|
|
3095
3095
|
}, [
|
|
3096
3096
|
f("span", ho, x(a(l)("grid.sortBy")), 1),
|
|
3097
|
-
s
|
|
3097
|
+
c(s, !0) ? (u(), B(b, {
|
|
3098
3098
|
key: 0,
|
|
3099
3099
|
class: "cl-cursor-pointer cl-inline-block",
|
|
3100
3100
|
icon: "ph:caret-up"
|
|
3101
|
-
})) : s
|
|
3101
|
+
})) : c(s, !1) ? (u(), B(b, {
|
|
3102
3102
|
key: 1,
|
|
3103
3103
|
class: "cl-cursor-pointer cl-inline-block",
|
|
3104
3104
|
icon: "ph:caret-down"
|
|
3105
|
-
})) : (
|
|
3105
|
+
})) : (u(), B(b, {
|
|
3106
3106
|
key: 2,
|
|
3107
3107
|
class: "cl-cursor-pointer cl-inline-block",
|
|
3108
3108
|
icon: "ph:minus"
|
|
3109
3109
|
}))
|
|
3110
|
-
], 8, vo)) : (
|
|
3110
|
+
], 8, vo)) : (u(), v("div", po, " ")),
|
|
3111
3111
|
w(ro, {
|
|
3112
3112
|
class: "cl-col-span-4",
|
|
3113
|
-
filter: a(
|
|
3114
|
-
column:
|
|
3115
|
-
"first-half":
|
|
3116
|
-
"onUpdate:filter":
|
|
3113
|
+
filter: a(i).filters.find((E) => E.filterOnColumn === s.field),
|
|
3114
|
+
column: s,
|
|
3115
|
+
"first-half": p <= e.columns.length / 2,
|
|
3116
|
+
"onUpdate:filter": d
|
|
3117
3117
|
}, null, 8, ["filter", "column", "first-half"])
|
|
3118
3118
|
]))), 128))
|
|
3119
3119
|
], 2)
|
|
3120
3120
|
]);
|
|
3121
3121
|
};
|
|
3122
3122
|
}
|
|
3123
|
-
}), wo = { class: "cl-fixed cl-flex cl-h-full cl-justify-end cl-right-0 cl-shadow-lg cl-top-0 cl-z-50" }, xo = { class: "cl-bg-secondary-default cl-h-full cl-overflow-y-auto cl-px-10 cl-py-20 cl-relative cl-text-grey-2 cl-w-80" }, $o = { class: "cl-mb-4 cl-text-2xl cl-text-off-white" }, ko = { class: "cl-border-grey-3 cl-border-t cl-flex cl-flex-wrap cl-text-sm cl-w-full" }, To = { class: "cl-border-b cl-border-grey-2 cl-flex cl-py-2 cl-text-sm cl-w-full" }, Co = { class: "cl-flex-1 cl-py-2" }, So = { class: "cl-py-2 cl-w-1/4" }, Oo = { class: "cl-py-2 cl-w-1/5" }, Eo = { class: "cl-flex-1 cl-py-2" }, jo = { class: "cl-py-2 cl-w-1/4" }, Ao = { class: "cl-py-2 cl-text-off-white cl-w-1/5" }, Mo = { key: 1 }, Io = {
|
|
3123
|
+
}), wo = { class: "cl-fixed cl-flex cl-h-full cl-justify-end cl-right-0 cl-shadow-lg cl-top-0 cl-z-50" }, xo = { class: "cl-bg-secondary-default cl-h-full cl-overflow-y-auto cl-overscroll-y-none cl-px-10 cl-py-20 cl-relative cl-text-grey-2 cl-w-80" }, $o = { class: "cl-mb-4 cl-text-2xl cl-text-off-white" }, ko = { class: "cl-border-grey-3 cl-border-t cl-flex cl-flex-wrap cl-text-sm cl-w-full" }, To = { class: "cl-border-b cl-border-grey-2 cl-flex cl-py-2 cl-text-sm cl-w-full" }, Co = { class: "cl-flex-1 cl-py-2" }, So = { class: "cl-py-2 cl-w-1/4" }, Oo = { class: "cl-py-2 cl-w-1/5" }, Eo = { class: "cl-flex-1 cl-py-2" }, jo = { class: "cl-py-2 cl-w-1/4" }, Ao = { class: "cl-py-2 cl-text-off-white cl-w-1/5" }, Mo = { key: 1 }, Io = {
|
|
3124
3124
|
inheritAttrs: !1
|
|
3125
3125
|
}, No = /* @__PURE__ */ D({
|
|
3126
3126
|
...Io,
|
|
@@ -3130,41 +3130,41 @@ const Qn = {
|
|
|
3130
3130
|
},
|
|
3131
3131
|
emits: ["update:columns"],
|
|
3132
3132
|
setup(e, { emit: n }) {
|
|
3133
|
-
const t = e, { t: l } = oe(), o =
|
|
3134
|
-
function
|
|
3135
|
-
|
|
3136
|
-
}
|
|
3137
|
-
function
|
|
3138
|
-
const
|
|
3139
|
-
|
|
3140
|
-
}
|
|
3141
|
-
function g(
|
|
3142
|
-
const
|
|
3143
|
-
|
|
3144
|
-
}
|
|
3145
|
-
return (
|
|
3146
|
-
const
|
|
3147
|
-
return
|
|
3148
|
-
w(we, ge(
|
|
3133
|
+
const t = e, { t: l } = oe(), o = C(!1);
|
|
3134
|
+
function i(d, h, y) {
|
|
3135
|
+
y < d.length && y >= 0 && d.splice(y, 0, d.splice(h, 1)[0]);
|
|
3136
|
+
}
|
|
3137
|
+
function c(d, h) {
|
|
3138
|
+
const y = fe(t.columns), m = (d == null ? void 0 : d.checked) ?? !1, r = y.findIndex((b) => b.name === h.name);
|
|
3139
|
+
r >= 0 && (y[r].visible = m), n("update:columns", y);
|
|
3140
|
+
}
|
|
3141
|
+
function g(d, h) {
|
|
3142
|
+
const y = fe(t.columns), m = h === "up" ? d + 1 : d - 1;
|
|
3143
|
+
i(y, d, m), n("update:columns", y);
|
|
3144
|
+
}
|
|
3145
|
+
return (d, h) => {
|
|
3146
|
+
const y = K("icon");
|
|
3147
|
+
return u(), v(P, null, [
|
|
3148
|
+
w(we, ge(d.$attrs, {
|
|
3149
3149
|
class: "cl-w-full",
|
|
3150
3150
|
size: "small",
|
|
3151
|
-
onClick:
|
|
3151
|
+
onClick: h[0] || (h[0] = Y((m) => o.value = !0, ["prevent"]))
|
|
3152
3152
|
}), {
|
|
3153
|
-
default:
|
|
3153
|
+
default: z(() => [
|
|
3154
3154
|
le(x(a(l)("grid.manageView")), 1)
|
|
3155
3155
|
]),
|
|
3156
3156
|
_: 1
|
|
3157
3157
|
}, 16),
|
|
3158
|
-
(
|
|
3158
|
+
(u(), B(Le, { to: "body" }, [
|
|
3159
3159
|
w($e, { name: "slide-left" }, {
|
|
3160
|
-
default:
|
|
3160
|
+
default: z(() => [
|
|
3161
3161
|
q(f("div", wo, [
|
|
3162
3162
|
f("div", xo, [
|
|
3163
|
-
w(
|
|
3163
|
+
w(y, {
|
|
3164
3164
|
class: "cl-absolute cl-cursor-pointer cl-right-3 cl-text-off-white cl-top-3",
|
|
3165
3165
|
icon: "ph:x",
|
|
3166
3166
|
size: 16,
|
|
3167
|
-
onClick:
|
|
3167
|
+
onClick: h[1] || (h[1] = (m) => o.value = !1)
|
|
3168
3168
|
}),
|
|
3169
3169
|
f("h3", $o, x(a(l)("grid.manageView")), 1),
|
|
3170
3170
|
f("ul", ko, [
|
|
@@ -3173,8 +3173,8 @@ const Qn = {
|
|
|
3173
3173
|
f("strong", So, x(a(l)("grid.visible")), 1),
|
|
3174
3174
|
f("strong", Oo, x(a(l)("grid.order")), 1)
|
|
3175
3175
|
]),
|
|
3176
|
-
(
|
|
3177
|
-
key:
|
|
3176
|
+
(u(!0), v(P, null, te(e.columns, (m, r) => (u(), v("li", {
|
|
3177
|
+
key: r,
|
|
3178
3178
|
class: "cl-border-b cl-border-grey-2 cl-flex cl-py-2 cl-text-sm cl-w-full"
|
|
3179
3179
|
}, [
|
|
3180
3180
|
f("div", Eo, x(m.caption), 1),
|
|
@@ -3182,24 +3182,24 @@ const Qn = {
|
|
|
3182
3182
|
w(de, {
|
|
3183
3183
|
"model-value": m.visible === void 0 || m.visible === !0,
|
|
3184
3184
|
"input-type": "checkbox",
|
|
3185
|
-
onClick: (
|
|
3185
|
+
onClick: (b) => c(b.target, m)
|
|
3186
3186
|
}, null, 8, ["model-value", "onClick"])
|
|
3187
3187
|
]),
|
|
3188
3188
|
f("div", Ao, [
|
|
3189
|
-
m.visible === void 0 || m.visible === !0 ? (
|
|
3190
|
-
|
|
3189
|
+
m.visible === void 0 || m.visible === !0 ? (u(), v(P, { key: 0 }, [
|
|
3190
|
+
r !== 0 ? (u(), B(y, {
|
|
3191
3191
|
key: 0,
|
|
3192
3192
|
class: "cl-cursor-pointer cl-inline-block cl-mr-2",
|
|
3193
3193
|
icon: "ph:arrow-left",
|
|
3194
|
-
onClick: (
|
|
3194
|
+
onClick: (b) => g(r, "down")
|
|
3195
3195
|
}, null, 8, ["onClick"])) : M("", !0),
|
|
3196
|
-
|
|
3196
|
+
r !== e.columns.length - 1 ? (u(), B(y, {
|
|
3197
3197
|
key: 1,
|
|
3198
3198
|
class: "cl-cursor-pointer cl-inline-block",
|
|
3199
3199
|
icon: "ph:arrow-right",
|
|
3200
|
-
onClick: (
|
|
3200
|
+
onClick: (b) => g(r, "up")
|
|
3201
3201
|
}, null, 8, ["onClick"])) : M("", !0)
|
|
3202
|
-
], 64)) : (
|
|
3202
|
+
], 64)) : (u(), v("em", Mo, x(a(l)("grid.hidden")), 1))
|
|
3203
3203
|
])
|
|
3204
3204
|
]))), 128))
|
|
3205
3205
|
])
|
|
@@ -3214,7 +3214,7 @@ const Qn = {
|
|
|
3214
3214
|
], 64);
|
|
3215
3215
|
};
|
|
3216
3216
|
}
|
|
3217
|
-
}), Do = { class: "cl-min-h-screen cl-relative cl-w-full lg:cl-min-h-
|
|
3217
|
+
}), Do = { class: "cl-min-h-screen cl-relative cl-w-full lg:cl-min-h-fit" }, qo = { class: "cl-absolute cl-flex cl-items-center cl-justify-center cl-min-h-full cl-w-full" }, Ro = { class: "cl-hidden lg:cl-table-column-group" }, Uo = /* @__PURE__ */ D({
|
|
3218
3218
|
__name: "cl-ui-grid",
|
|
3219
3219
|
props: {
|
|
3220
3220
|
columns: null,
|
|
@@ -3225,42 +3225,42 @@ const Qn = {
|
|
|
3225
3225
|
},
|
|
3226
3226
|
emits: ["update:columns", "update:request", "data-request", "row-edit", "edit-start", "edit-end", "row-select"],
|
|
3227
3227
|
setup(e, { emit: n }) {
|
|
3228
|
-
const t = e, l =
|
|
3228
|
+
const t = e, l = S({
|
|
3229
3229
|
get: () => t.columns,
|
|
3230
|
-
set: (
|
|
3231
|
-
}), o =
|
|
3232
|
-
function
|
|
3233
|
-
const
|
|
3234
|
-
window.innerWidth >= 1024 && l.value.forEach((
|
|
3235
|
-
const
|
|
3236
|
-
|
|
3237
|
-
}),
|
|
3230
|
+
set: (b) => n("update:columns", b)
|
|
3231
|
+
}), o = S(() => l.value.filter((b) => b.visible ?? !0)), i = C({});
|
|
3232
|
+
function c() {
|
|
3233
|
+
const b = {};
|
|
3234
|
+
window.innerWidth >= 1024 && l.value.forEach((s) => {
|
|
3235
|
+
const p = s.width ? `${s.width}px` : "";
|
|
3236
|
+
b[`${s.name}`] = `width: ${p}; min-width: ${p};`;
|
|
3237
|
+
}), i.value = b;
|
|
3238
3238
|
}
|
|
3239
|
-
function g(
|
|
3240
|
-
return
|
|
3239
|
+
function g(b) {
|
|
3240
|
+
return i.value[b] ?? "";
|
|
3241
3241
|
}
|
|
3242
3242
|
Oe(() => {
|
|
3243
|
-
window.addEventListener("resize",
|
|
3244
|
-
}), Ue(() => window.removeEventListener("resize",
|
|
3245
|
-
const
|
|
3243
|
+
window.addEventListener("resize", c), c();
|
|
3244
|
+
}), Ue(() => window.removeEventListener("resize", c));
|
|
3245
|
+
const d = S({
|
|
3246
3246
|
get: () => t.request,
|
|
3247
|
-
set: (
|
|
3247
|
+
set: (b) => n("update:request", b)
|
|
3248
3248
|
});
|
|
3249
|
-
function
|
|
3250
|
-
const
|
|
3251
|
-
|
|
3249
|
+
function h() {
|
|
3250
|
+
const b = fe(d.value);
|
|
3251
|
+
b.pageNumber = 1, b.filters = [], d.value = b;
|
|
3252
3252
|
}
|
|
3253
|
-
const
|
|
3254
|
-
W(
|
|
3253
|
+
const y = nl(() => n("data-request"), 750);
|
|
3254
|
+
W(d, y, {
|
|
3255
3255
|
deep: !0,
|
|
3256
3256
|
immediate: !0
|
|
3257
3257
|
});
|
|
3258
|
-
const m =
|
|
3259
|
-
return W(
|
|
3260
|
-
|
|
3261
|
-
}), (
|
|
3258
|
+
const m = S(() => t.data), r = C(!1);
|
|
3259
|
+
return W(r, () => {
|
|
3260
|
+
r.value ? n("edit-start") : n("edit-end");
|
|
3261
|
+
}), (b, s) => (u(), v("div", Do, [
|
|
3262
3262
|
w($e, { name: "fade" }, {
|
|
3263
|
-
default:
|
|
3263
|
+
default: z(() => [
|
|
3264
3264
|
q(f("div", qo, [
|
|
3265
3265
|
w(Ve)
|
|
3266
3266
|
], 512), [
|
|
@@ -3270,65 +3270,65 @@ const Qn = {
|
|
|
3270
3270
|
_: 1
|
|
3271
3271
|
}),
|
|
3272
3272
|
f("table", {
|
|
3273
|
-
class: I(["cl-overflow-x-auto cl-text-left cl-w-full", {
|
|
3273
|
+
class: I(["cl-overflow-x-auto cl-overscroll-x-none cl-text-left cl-w-full", {
|
|
3274
3274
|
"cl-opacity-40": e.loading
|
|
3275
3275
|
}])
|
|
3276
3276
|
}, [
|
|
3277
3277
|
f("colgroup", Ro, [
|
|
3278
|
-
(
|
|
3278
|
+
(u(!0), v(P, null, te(a(o), (p, E) => (u(), v("col", {
|
|
3279
3279
|
key: E,
|
|
3280
|
-
style: ll(g(
|
|
3280
|
+
style: ll(g(p.name)),
|
|
3281
3281
|
span: 1
|
|
3282
3282
|
}, null, 4))), 128))
|
|
3283
3283
|
]),
|
|
3284
3284
|
w(yo, {
|
|
3285
|
-
request: a(
|
|
3286
|
-
"onUpdate:request":
|
|
3287
|
-
"edit-mode":
|
|
3288
|
-
"onUpdate:edit-mode":
|
|
3285
|
+
request: a(d),
|
|
3286
|
+
"onUpdate:request": s[1] || (s[1] = (p) => ve(d) ? d.value = p : null),
|
|
3287
|
+
"edit-mode": r.value,
|
|
3288
|
+
"onUpdate:edit-mode": s[2] || (s[2] = (p) => r.value = p),
|
|
3289
3289
|
columns: a(o),
|
|
3290
3290
|
options: e.options,
|
|
3291
|
-
onClearFilters:
|
|
3291
|
+
onClearFilters: h
|
|
3292
3292
|
}, {
|
|
3293
|
-
"view-manager":
|
|
3293
|
+
"view-manager": z(() => [
|
|
3294
3294
|
w(No, {
|
|
3295
3295
|
columns: a(l),
|
|
3296
|
-
"onUpdate:columns":
|
|
3296
|
+
"onUpdate:columns": s[0] || (s[0] = (p) => ve(l) ? l.value = p : null)
|
|
3297
3297
|
}, null, 8, ["columns"])
|
|
3298
3298
|
]),
|
|
3299
3299
|
_: 1
|
|
3300
3300
|
}, 8, ["request", "edit-mode", "columns", "options"]),
|
|
3301
3301
|
w(pn, {
|
|
3302
3302
|
columns: a(o),
|
|
3303
|
-
request: a(
|
|
3303
|
+
request: a(d),
|
|
3304
3304
|
data: a(m),
|
|
3305
3305
|
loading: e.loading,
|
|
3306
|
-
"edit-mode":
|
|
3306
|
+
"edit-mode": r.value,
|
|
3307
3307
|
"selection-enabled": e.options.rowSelectionEnabled,
|
|
3308
|
-
onClearFilters:
|
|
3309
|
-
onRowEdit:
|
|
3310
|
-
onRowSelect:
|
|
3308
|
+
onClearFilters: h,
|
|
3309
|
+
onRowEdit: s[3] || (s[3] = (p) => b.$emit("row-edit", p)),
|
|
3310
|
+
onRowSelect: s[4] || (s[4] = (p) => b.$emit("row-select", p))
|
|
3311
3311
|
}, Fe({ _: 2 }, [
|
|
3312
|
-
te(
|
|
3312
|
+
te(b.$slots, (p, E) => ({
|
|
3313
3313
|
name: E,
|
|
3314
|
-
fn:
|
|
3315
|
-
A(
|
|
3314
|
+
fn: z((O) => [
|
|
3315
|
+
A(b.$slots, E, ae(me(O)))
|
|
3316
3316
|
])
|
|
3317
3317
|
}))
|
|
3318
3318
|
]), 1032, ["columns", "request", "data", "loading", "edit-mode", "selection-enabled"])
|
|
3319
3319
|
], 2),
|
|
3320
3320
|
w(qn, {
|
|
3321
|
-
request: a(
|
|
3322
|
-
"onUpdate:request":
|
|
3321
|
+
request: a(d),
|
|
3322
|
+
"onUpdate:request": s[5] || (s[5] = (p) => ve(d) ? d.value = p : null),
|
|
3323
3323
|
data: e.data
|
|
3324
3324
|
}, null, 8, ["request", "data"])
|
|
3325
3325
|
]));
|
|
3326
3326
|
}
|
|
3327
|
-
}),
|
|
3327
|
+
}), Po = { 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" }, Bo = /* @__PURE__ */ D({
|
|
3328
3328
|
__name: "cl-ui-header",
|
|
3329
3329
|
emits: ["open-click"],
|
|
3330
3330
|
setup(e) {
|
|
3331
|
-
return (n, t) => (
|
|
3331
|
+
return (n, t) => (u(), v("header", Po, [
|
|
3332
3332
|
A(n.$slots, "logo"),
|
|
3333
3333
|
f("div", {
|
|
3334
3334
|
class: "cl-cursor-pointer cl-flex cl-flex-nowrap",
|
|
@@ -3339,7 +3339,7 @@ const Qn = {
|
|
|
3339
3339
|
])
|
|
3340
3340
|
]));
|
|
3341
3341
|
}
|
|
3342
|
-
}),
|
|
3342
|
+
}), zo = { 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]" }, Lo = ["src"], Fo = { class: "cl-grow cl-hidden cl-my-4 cl-text-white md:cl-block" }, Vo = {
|
|
3343
3343
|
key: 0,
|
|
3344
3344
|
class: "cl-text-ellipsis cl-whitespace-nowrap"
|
|
3345
3345
|
}, Go = {
|
|
@@ -3355,24 +3355,24 @@ const Qn = {
|
|
|
3355
3355
|
},
|
|
3356
3356
|
emits: ["update:is-open"],
|
|
3357
3357
|
setup(e, { emit: n }) {
|
|
3358
|
-
const t = e, l =
|
|
3359
|
-
|
|
3358
|
+
const t = e, l = C();
|
|
3359
|
+
ol(l, o);
|
|
3360
3360
|
function o() {
|
|
3361
3361
|
t.isOpen === !0 && n("update:is-open", !1);
|
|
3362
3362
|
}
|
|
3363
|
-
return (
|
|
3363
|
+
return (i, c) => {
|
|
3364
3364
|
const g = K("icon");
|
|
3365
|
-
return
|
|
3365
|
+
return u(), v("div", {
|
|
3366
3366
|
ref_key: "headerMenuElement",
|
|
3367
3367
|
ref: l,
|
|
3368
3368
|
class: "cl-bg-blue-light md:cl-relative"
|
|
3369
3369
|
}, [
|
|
3370
|
-
f("div",
|
|
3371
|
-
e.image ? (
|
|
3370
|
+
f("div", zo, [
|
|
3371
|
+
e.image ? (u(), v("img", {
|
|
3372
3372
|
key: 0,
|
|
3373
3373
|
src: e.image,
|
|
3374
3374
|
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"
|
|
3375
|
-
}, null, 8, Lo)) : (
|
|
3375
|
+
}, null, 8, Lo)) : (u(), B(g, {
|
|
3376
3376
|
key: 1,
|
|
3377
3377
|
class: "cl-hidden cl-m-4 cl-text-white md:cl-block",
|
|
3378
3378
|
icon: "ph:user-circle",
|
|
@@ -3380,8 +3380,8 @@ const Qn = {
|
|
|
3380
3380
|
height: "48"
|
|
3381
3381
|
})),
|
|
3382
3382
|
f("div", Fo, [
|
|
3383
|
-
e.username ? (
|
|
3384
|
-
e.group ? (
|
|
3383
|
+
e.username ? (u(), v("div", Vo, x(e.username), 1)) : M("", !0),
|
|
3384
|
+
e.group ? (u(), v("div", Go, x(e.group), 1)) : M("", !0)
|
|
3385
3385
|
]),
|
|
3386
3386
|
f("div", Ho, [
|
|
3387
3387
|
w(g, {
|
|
@@ -3393,9 +3393,9 @@ const Qn = {
|
|
|
3393
3393
|
])
|
|
3394
3394
|
]),
|
|
3395
3395
|
w($e, { name: "fade" }, {
|
|
3396
|
-
default:
|
|
3396
|
+
default: z(() => [
|
|
3397
3397
|
q(f("div", Wo, [
|
|
3398
|
-
A(
|
|
3398
|
+
A(i.$slots, "default")
|
|
3399
3399
|
], 512), [
|
|
3400
3400
|
[R, e.isOpen]
|
|
3401
3401
|
])
|
|
@@ -3425,7 +3425,7 @@ const Qn = {
|
|
|
3425
3425
|
"time",
|
|
3426
3426
|
"url"
|
|
3427
3427
|
];
|
|
3428
|
-
function
|
|
3428
|
+
function ze(e) {
|
|
3429
3429
|
return /[a-z]{2}-[A-Z]{2}/gm.test(e.localeCode);
|
|
3430
3430
|
}
|
|
3431
3431
|
function Zo(e) {
|
|
@@ -3454,13 +3454,13 @@ const Yo = {
|
|
|
3454
3454
|
},
|
|
3455
3455
|
emits: ["language-select"],
|
|
3456
3456
|
setup(e, { emit: n }) {
|
|
3457
|
-
const t = e, { locale: l } = oe(), o =
|
|
3457
|
+
const t = e, { locale: l } = oe(), o = C(!1), i = S(() => t.supportedLanguages.find((d) => d.localeCode === l.value) ?? t.defaultLangauge), c = S(() => t.supportedLanguages.filter((d) => ze(d)).sort((d, h) => d.nativeName > h.nativeName ? 1 : h.nativeName > d.nativeName ? -1 : 0));
|
|
3458
3458
|
function g() {
|
|
3459
3459
|
t.disabled || (o.value = !o.value);
|
|
3460
3460
|
}
|
|
3461
|
-
return W(() => t.disabled, (
|
|
3462
|
-
|
|
3463
|
-
}), (
|
|
3461
|
+
return W(() => t.disabled, (d) => {
|
|
3462
|
+
d && (o.value = !1);
|
|
3463
|
+
}), (d, h) => a(i) !== null && a(ze)(a(i)) ? (u(), v("div", Yo, [
|
|
3464
3464
|
f("div", {
|
|
3465
3465
|
class: I(["cl-flex cl-items-center", {
|
|
3466
3466
|
"cl-cursor-pointer": !e.disabled
|
|
@@ -3471,21 +3471,21 @@ const Yo = {
|
|
|
3471
3471
|
class: I(["cl-font-semibold cl-text-xs", {
|
|
3472
3472
|
"cl-opacity-50": e.disabled
|
|
3473
3473
|
}])
|
|
3474
|
-
}, x(a(
|
|
3474
|
+
}, x(a(i).nativeName), 3)
|
|
3475
3475
|
], 2),
|
|
3476
3476
|
w($e, { name: "fade" }, {
|
|
3477
|
-
default:
|
|
3477
|
+
default: z(() => [
|
|
3478
3478
|
q(f("div", Xo, [
|
|
3479
|
-
(
|
|
3479
|
+
(u(!0), v(P, null, te(a(c), (y, m) => (u(), v("div", {
|
|
3480
3480
|
key: m,
|
|
3481
3481
|
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",
|
|
3482
|
-
"data-localename":
|
|
3483
|
-
"data-localecode":
|
|
3484
|
-
onClick: (
|
|
3485
|
-
l.value =
|
|
3482
|
+
"data-localename": y.name,
|
|
3483
|
+
"data-localecode": y.localeCode,
|
|
3484
|
+
onClick: (r) => {
|
|
3485
|
+
l.value = y.localeCode, g(), n("language-select", y.localeCode);
|
|
3486
3486
|
}
|
|
3487
3487
|
}, [
|
|
3488
|
-
f("span", ea, x(
|
|
3488
|
+
f("span", ea, x(y.nativeName), 1)
|
|
3489
3489
|
], 8, _o))), 128))
|
|
3490
3490
|
], 512), [
|
|
3491
3491
|
[R, o.value]
|
|
@@ -3509,7 +3509,7 @@ const Yo = {
|
|
|
3509
3509
|
"update:errors": null
|
|
3510
3510
|
},
|
|
3511
3511
|
setup(e, { emit: n }) {
|
|
3512
|
-
const { t } = oe(), l =
|
|
3512
|
+
const { t } = oe(), l = C(""), o = C(""), i = C("password"), c = C();
|
|
3513
3513
|
function g() {
|
|
3514
3514
|
const m = {
|
|
3515
3515
|
username: l.value,
|
|
@@ -3517,22 +3517,22 @@ const Yo = {
|
|
|
3517
3517
|
};
|
|
3518
3518
|
n("login", m);
|
|
3519
3519
|
}
|
|
3520
|
-
function
|
|
3520
|
+
function d() {
|
|
3521
3521
|
n("update:errors", []);
|
|
3522
3522
|
}
|
|
3523
|
-
function
|
|
3524
|
-
const
|
|
3523
|
+
function h(m, r) {
|
|
3524
|
+
const b = {
|
|
3525
3525
|
valid: !0,
|
|
3526
3526
|
message: ""
|
|
3527
3527
|
};
|
|
3528
|
-
return typeof
|
|
3528
|
+
return typeof r == "string" && r.trim() === "" && (b.valid = !1), b;
|
|
3529
3529
|
}
|
|
3530
|
-
function
|
|
3531
|
-
|
|
3530
|
+
function y(m, r) {
|
|
3531
|
+
c.value = m;
|
|
3532
3532
|
}
|
|
3533
|
-
return (m,
|
|
3534
|
-
const
|
|
3535
|
-
return
|
|
3533
|
+
return (m, r) => {
|
|
3534
|
+
const b = K("icon");
|
|
3535
|
+
return u(), v("div", ta, [
|
|
3536
3536
|
f("div", na, [
|
|
3537
3537
|
A(m.$slots, "background")
|
|
3538
3538
|
]),
|
|
@@ -3540,7 +3540,7 @@ const Yo = {
|
|
|
3540
3540
|
f("div", aa, [
|
|
3541
3541
|
A(m.$slots, "logo")
|
|
3542
3542
|
]),
|
|
3543
|
-
m.$slots["language-switcher"] ? (
|
|
3543
|
+
m.$slots["language-switcher"] ? (u(), v("div", ca, [
|
|
3544
3544
|
A(m.$slots, "language-switcher")
|
|
3545
3545
|
])) : M("", !0),
|
|
3546
3546
|
f("div", {
|
|
@@ -3551,14 +3551,14 @@ const Yo = {
|
|
|
3551
3551
|
}, [
|
|
3552
3552
|
f("div", sa, [
|
|
3553
3553
|
f("div", ia, [
|
|
3554
|
-
w(
|
|
3554
|
+
w(b, {
|
|
3555
3555
|
class: "cl-absolute cl-left-3 cl-top-2.5",
|
|
3556
3556
|
icon: "ph:user",
|
|
3557
3557
|
size: 18
|
|
3558
3558
|
}),
|
|
3559
3559
|
w(de, {
|
|
3560
3560
|
modelValue: l.value,
|
|
3561
|
-
"onUpdate:modelValue":
|
|
3561
|
+
"onUpdate:modelValue": r[0] || (r[0] = (s) => l.value = s),
|
|
3562
3562
|
modelModifiers: { trim: !0 },
|
|
3563
3563
|
class: "!cl-border-2 !cl-mb-1 cl-w-full",
|
|
3564
3564
|
"input-type": "email",
|
|
@@ -3568,42 +3568,42 @@ const Yo = {
|
|
|
3568
3568
|
"placeholder-text": a(t)("login.email"),
|
|
3569
3569
|
autocomplete: "username",
|
|
3570
3570
|
"validate-immediately": !0,
|
|
3571
|
-
"custom-validation-function":
|
|
3571
|
+
"custom-validation-function": h,
|
|
3572
3572
|
"input-specific-classes": "!cl-pl-9",
|
|
3573
3573
|
"message-when-valid": l.value ? a(t)("login.validEmail") : "",
|
|
3574
|
-
onInput:
|
|
3575
|
-
onValidated:
|
|
3574
|
+
onInput: d,
|
|
3575
|
+
onValidated: y
|
|
3576
3576
|
}, null, 8, ["modelValue", "highlight-when-valid", "label", "placeholder-text", "message-when-valid"])
|
|
3577
3577
|
])
|
|
3578
3578
|
]),
|
|
3579
3579
|
f("div", ra, [
|
|
3580
3580
|
f("div", ua, [
|
|
3581
|
-
w(
|
|
3581
|
+
w(b, {
|
|
3582
3582
|
class: "cl-absolute cl-left-3 cl-top-2.5",
|
|
3583
3583
|
icon: "ph:lock",
|
|
3584
3584
|
size: 18
|
|
3585
3585
|
}),
|
|
3586
|
-
q(w(
|
|
3586
|
+
q(w(b, {
|
|
3587
3587
|
class: "cl-absolute cl-cursor-pointer cl-right-6 cl-top-2.5",
|
|
3588
3588
|
icon: "ph:eye",
|
|
3589
3589
|
size: 18,
|
|
3590
|
-
onClick:
|
|
3590
|
+
onClick: r[1] || (r[1] = (s) => i.value = "text")
|
|
3591
3591
|
}, null, 512), [
|
|
3592
|
-
[R,
|
|
3592
|
+
[R, i.value === "password"]
|
|
3593
3593
|
]),
|
|
3594
|
-
q(w(
|
|
3594
|
+
q(w(b, {
|
|
3595
3595
|
class: "cl-absolute cl-cursor-pointer cl-right-6 cl-top-2.5",
|
|
3596
3596
|
icon: "ph:eye-slash",
|
|
3597
3597
|
size: 18,
|
|
3598
|
-
onClick:
|
|
3598
|
+
onClick: r[2] || (r[2] = (s) => i.value = "password")
|
|
3599
3599
|
}, null, 512), [
|
|
3600
|
-
[R,
|
|
3600
|
+
[R, i.value === "text"]
|
|
3601
3601
|
]),
|
|
3602
3602
|
w(de, {
|
|
3603
3603
|
modelValue: o.value,
|
|
3604
|
-
"onUpdate:modelValue":
|
|
3604
|
+
"onUpdate:modelValue": r[3] || (r[3] = (s) => o.value = s),
|
|
3605
3605
|
class: "!cl-border-2 cl-w-full",
|
|
3606
|
-
"input-type":
|
|
3606
|
+
"input-type": i.value,
|
|
3607
3607
|
"highlight-when-valid": o.value !== void 0 && o.value !== "",
|
|
3608
3608
|
label: a(t)("login.password"),
|
|
3609
3609
|
"show-label": !1,
|
|
@@ -3611,8 +3611,8 @@ const Yo = {
|
|
|
3611
3611
|
autocomplete: "current-password",
|
|
3612
3612
|
"validate-immediately": !0,
|
|
3613
3613
|
"input-specific-classes": "!cl-pl-9 !cl-pr-9",
|
|
3614
|
-
"custom-validation-function":
|
|
3615
|
-
onInput:
|
|
3614
|
+
"custom-validation-function": h,
|
|
3615
|
+
onInput: d
|
|
3616
3616
|
}, null, 8, ["modelValue", "input-type", "highlight-when-valid", "label", "placeholder-text"])
|
|
3617
3617
|
])
|
|
3618
3618
|
]),
|
|
@@ -3625,10 +3625,10 @@ const Yo = {
|
|
|
3625
3625
|
class: "!cl-leading-9 cl-w-full",
|
|
3626
3626
|
colour: "blue",
|
|
3627
3627
|
loading: e.loading,
|
|
3628
|
-
disabled: !
|
|
3628
|
+
disabled: !c.value || o.value === "",
|
|
3629
3629
|
onClick: Y(g, ["prevent"])
|
|
3630
3630
|
}, {
|
|
3631
|
-
default:
|
|
3631
|
+
default: z(() => [
|
|
3632
3632
|
le(x(a(t)("login.login")), 1)
|
|
3633
3633
|
]),
|
|
3634
3634
|
_: 1
|
|
@@ -3636,16 +3636,16 @@ const Yo = {
|
|
|
3636
3636
|
], 2)
|
|
3637
3637
|
], 2),
|
|
3638
3638
|
w($e, { name: "cl-grow-down" }, {
|
|
3639
|
-
default:
|
|
3640
|
-
var
|
|
3639
|
+
default: z(() => {
|
|
3640
|
+
var s;
|
|
3641
3641
|
return [
|
|
3642
3642
|
q(f("span", da, [
|
|
3643
|
-
(
|
|
3643
|
+
(u(!0), v(P, null, te(e.errors, (p, E) => (u(), v("div", {
|
|
3644
3644
|
key: E,
|
|
3645
3645
|
class: "cl-font-semibold"
|
|
3646
|
-
}, x(
|
|
3646
|
+
}, x(p), 1))), 128))
|
|
3647
3647
|
], 512), [
|
|
3648
|
-
[R, (
|
|
3648
|
+
[R, (s = e.errors) == null ? void 0 : s.length]
|
|
3649
3649
|
])
|
|
3650
3650
|
];
|
|
3651
3651
|
}),
|
|
@@ -3666,77 +3666,83 @@ const Yo = {
|
|
|
3666
3666
|
"white"
|
|
3667
3667
|
], ba = {
|
|
3668
3668
|
id: "group-container",
|
|
3669
|
-
class: "cl-bg-blue-default cl-h-full cl-
|
|
3670
|
-
}, va = {
|
|
3669
|
+
class: "cl-bg-blue-default cl-h-full cl-overflow-y-auto cl-overscroll-y-none cl-w-20 cl-z-30"
|
|
3670
|
+
}, va = {
|
|
3671
|
+
key: 0,
|
|
3672
|
+
class: "cl-h-0 cl-w-0"
|
|
3673
|
+
}, ha = { class: "cl-relative cl-w-full" }, pa = /* @__PURE__ */ D({
|
|
3671
3674
|
__name: "cl-ui-navigation",
|
|
3672
3675
|
setup(e) {
|
|
3673
|
-
const n = C(() =>
|
|
3674
|
-
function
|
|
3675
|
-
let
|
|
3676
|
-
return
|
|
3677
|
-
id:
|
|
3676
|
+
const n = C([]), t = S(() => n.value.filter((r) => r.open === !0).length > 0);
|
|
3677
|
+
function l(r) {
|
|
3678
|
+
let b = n.value.find((s) => s.id === r);
|
|
3679
|
+
return b || (b = {
|
|
3680
|
+
id: r,
|
|
3678
3681
|
open: !1
|
|
3679
|
-
},
|
|
3682
|
+
}, n.value.push(b)), b.open;
|
|
3680
3683
|
}
|
|
3681
|
-
function
|
|
3682
|
-
const
|
|
3683
|
-
|
|
3684
|
-
|
|
3684
|
+
function o(r) {
|
|
3685
|
+
const b = n.value.find((s) => s.id === r);
|
|
3686
|
+
b && (b.open = !b.open, n.value.forEach((s) => {
|
|
3687
|
+
s.id !== r && (s.open = !1);
|
|
3685
3688
|
}));
|
|
3686
3689
|
}
|
|
3687
|
-
const
|
|
3688
|
-
|
|
3689
|
-
|
|
3690
|
-
v.open = !1;
|
|
3691
|
-
});
|
|
3692
|
-
}
|
|
3693
|
-
nl(s, g);
|
|
3694
|
-
const u = hl();
|
|
3695
|
-
return W(
|
|
3696
|
-
() => u,
|
|
3690
|
+
const i = hl();
|
|
3691
|
+
W(
|
|
3692
|
+
() => i,
|
|
3697
3693
|
() => {
|
|
3698
|
-
|
|
3694
|
+
c.value = !1;
|
|
3699
3695
|
},
|
|
3700
3696
|
{
|
|
3701
3697
|
deep: !0
|
|
3702
3698
|
}
|
|
3703
|
-
)
|
|
3704
|
-
|
|
3705
|
-
|
|
3699
|
+
);
|
|
3700
|
+
const c = C(!1), g = C(!1), { start: d } = tl(() => g.value = !1, 100);
|
|
3701
|
+
function h() {
|
|
3702
|
+
c.value = !c.value, g.value = !0, d();
|
|
3703
|
+
}
|
|
3704
|
+
const y = C();
|
|
3705
|
+
function m() {
|
|
3706
|
+
c.value === !1 && t.value === !0 && n.value.forEach((r) => {
|
|
3707
|
+
r.open = !1;
|
|
3708
|
+
});
|
|
3709
|
+
}
|
|
3710
|
+
return ol(y, m), (r, b) => {
|
|
3711
|
+
const s = K("icon");
|
|
3712
|
+
return u(), v("div", {
|
|
3706
3713
|
ref_key: "navElement",
|
|
3707
|
-
ref:
|
|
3708
|
-
class: "cl-flex cl-flex-nowrap cl-
|
|
3714
|
+
ref: y,
|
|
3715
|
+
class: "cl-flex cl-flex-nowrap cl-relative"
|
|
3709
3716
|
}, [
|
|
3710
3717
|
f("div", ba, [
|
|
3711
|
-
A(
|
|
3718
|
+
A(r.$slots, "icon", ae(me({ groupIsOpen: l, toggleOpen: o })), void 0, !0)
|
|
3712
3719
|
]),
|
|
3720
|
+
g.value ? (u(), v("div", va)) : M("", !0),
|
|
3713
3721
|
w($e, { name: "slide-right" }, {
|
|
3714
|
-
default:
|
|
3722
|
+
default: z(() => [
|
|
3715
3723
|
q(f("div", {
|
|
3716
|
-
class: I(["cl-bg-grey-0 cl-border-grey-2 cl-border-r cl-
|
|
3717
|
-
"cl-relative":
|
|
3718
|
-
"cl-absolute cl-left-20 cl-shadow-lg": !
|
|
3724
|
+
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-top-0 cl-transition-shadow cl-w-[260px] cl-z-20", {
|
|
3725
|
+
"cl-relative": c.value,
|
|
3726
|
+
"cl-absolute cl-left-20 cl-shadow-lg": !c.value
|
|
3719
3727
|
}])
|
|
3720
3728
|
}, [
|
|
3721
|
-
f("div",
|
|
3729
|
+
f("div", ha, [
|
|
3722
3730
|
f("span", {
|
|
3723
|
-
class: "cl-absolute cl-cursor-pointer cl-
|
|
3724
|
-
onClick:
|
|
3731
|
+
class: "cl-absolute cl-cursor-pointer cl-hidden cl-right-0 cl-top-1.5 lg:cl-block",
|
|
3732
|
+
onClick: h
|
|
3725
3733
|
}, [
|
|
3726
|
-
|
|
3734
|
+
c.value ? (u(), B(s, {
|
|
3727
3735
|
key: 1,
|
|
3728
|
-
class: "cl-inline-block",
|
|
3729
3736
|
icon: "ph:push-pin-slash"
|
|
3730
|
-
})) : (
|
|
3737
|
+
})) : (u(), B(s, {
|
|
3731
3738
|
key: 0,
|
|
3732
|
-
class: "cl-inline-block",
|
|
3733
3739
|
icon: "ph:push-pin"
|
|
3734
3740
|
}))
|
|
3735
3741
|
]),
|
|
3736
|
-
A(
|
|
3742
|
+
A(r.$slots, "default", ae(me({ groupIsOpen: l })), void 0, !0)
|
|
3737
3743
|
])
|
|
3738
3744
|
], 2), [
|
|
3739
|
-
[R, a(
|
|
3745
|
+
[R, a(t)]
|
|
3740
3746
|
])
|
|
3741
3747
|
]),
|
|
3742
3748
|
_: 3
|
|
@@ -3745,7 +3751,7 @@ const Yo = {
|
|
|
3745
3751
|
};
|
|
3746
3752
|
}
|
|
3747
3753
|
});
|
|
3748
|
-
const
|
|
3754
|
+
const ya = /* @__PURE__ */ he(pa, [["__scopeId", "data-v-20b0e94d"]]), wa = /* @__PURE__ */ D({
|
|
3749
3755
|
__name: "cl-ui-navigation-icon",
|
|
3750
3756
|
props: {
|
|
3751
3757
|
iconValue: null,
|
|
@@ -3754,7 +3760,7 @@ const pa = /* @__PURE__ */ he(ha, [["__scopeId", "data-v-db7395f3"]]), ya = /* @
|
|
|
3754
3760
|
setup(e) {
|
|
3755
3761
|
return (n, t) => {
|
|
3756
3762
|
const l = K("icon");
|
|
3757
|
-
return
|
|
3763
|
+
return u(), v("div", {
|
|
3758
3764
|
class: I(["cl-cursor-pointer cl-flex cl-h-20 cl-items-center cl-justify-center cl-text-off-white cl-transition-colors cl-w-20 hover:cl-bg-blue-light", {
|
|
3759
3765
|
"cl-bg-blue-light": e.open
|
|
3760
3766
|
}])
|
|
@@ -3767,45 +3773,45 @@ const pa = /* @__PURE__ */ he(ha, [["__scopeId", "data-v-db7395f3"]]), ya = /* @
|
|
|
3767
3773
|
], 2);
|
|
3768
3774
|
};
|
|
3769
3775
|
}
|
|
3770
|
-
}),
|
|
3776
|
+
}), xa = {
|
|
3771
3777
|
key: 0,
|
|
3772
3778
|
class: "cl-font-bold cl-leading-8 cl-mb-8 cl-pr-8 cl-select-none cl-text-blue-light cl-text-lg"
|
|
3773
|
-
},
|
|
3779
|
+
}, $a = { class: "cl-flex cl-flex-wrap cl-space-y-8 cl-text-sm cl-w-full" }, ka = /* @__PURE__ */ D({
|
|
3774
3780
|
__name: "cl-ui-navigation-group",
|
|
3775
3781
|
props: {
|
|
3776
3782
|
open: { type: Boolean }
|
|
3777
3783
|
},
|
|
3778
3784
|
setup(e) {
|
|
3779
|
-
return (n, t) => e.open ? (
|
|
3780
|
-
n.$slots.title ? (
|
|
3785
|
+
return (n, t) => e.open ? (u(), v(P, { key: 0 }, [
|
|
3786
|
+
n.$slots.title ? (u(), v("div", xa, [
|
|
3781
3787
|
A(n.$slots, "title")
|
|
3782
3788
|
])) : M("", !0),
|
|
3783
|
-
f("div",
|
|
3789
|
+
f("div", $a, [
|
|
3784
3790
|
A(n.$slots, "default")
|
|
3785
3791
|
])
|
|
3786
3792
|
], 64)) : M("", !0);
|
|
3787
3793
|
}
|
|
3788
|
-
}),
|
|
3794
|
+
}), Ta = {}, Ca = { class: "cl-w-full" }, Sa = {
|
|
3789
3795
|
key: 0,
|
|
3790
3796
|
class: "cl-font-bold cl-mb-4 cl-select-none"
|
|
3791
|
-
},
|
|
3792
|
-
function
|
|
3793
|
-
return
|
|
3794
|
-
e.$slots.title ? (
|
|
3797
|
+
}, Oa = { class: "cl-flex cl-flex-wrap cl-space-y-2" };
|
|
3798
|
+
function Ea(e, n) {
|
|
3799
|
+
return u(), v("div", Ca, [
|
|
3800
|
+
e.$slots.title ? (u(), v("div", Sa, [
|
|
3795
3801
|
A(e.$slots, "title")
|
|
3796
3802
|
])) : M("", !0),
|
|
3797
|
-
f("span",
|
|
3803
|
+
f("span", Oa, [
|
|
3798
3804
|
A(e.$slots, "default")
|
|
3799
3805
|
])
|
|
3800
3806
|
]);
|
|
3801
3807
|
}
|
|
3802
|
-
const
|
|
3803
|
-
function
|
|
3804
|
-
return
|
|
3808
|
+
const ja = /* @__PURE__ */ he(Ta, [["render", Ea]]), Aa = {}, Ma = { class: "cl-cursor-pointer cl-transition-colors cl-w-full hover:cl-text-blue-light" };
|
|
3809
|
+
function Ia(e, n) {
|
|
3810
|
+
return u(), v("div", Ma, [
|
|
3805
3811
|
A(e.$slots, "default")
|
|
3806
3812
|
]);
|
|
3807
3813
|
}
|
|
3808
|
-
const
|
|
3814
|
+
const Na = /* @__PURE__ */ he(Aa, [["render", Ia]]), Da = { class: "cl-w-full" }, qa = /* @__PURE__ */ D({
|
|
3809
3815
|
__name: "cl-ui-tab",
|
|
3810
3816
|
props: {
|
|
3811
3817
|
currentTab: { default: 0 },
|
|
@@ -3813,35 +3819,35 @@ const Ia = /* @__PURE__ */ he(ja, [["render", Ma]]), Na = { class: "cl-w-full" }
|
|
|
3813
3819
|
colour: { default: "default" }
|
|
3814
3820
|
},
|
|
3815
3821
|
setup(e) {
|
|
3816
|
-
const n = e, t =
|
|
3817
|
-
function
|
|
3818
|
-
return
|
|
3822
|
+
const n = e, t = C(), l = C(!1), o = C(!1);
|
|
3823
|
+
function i(h) {
|
|
3824
|
+
return h === n.currentTab;
|
|
3819
3825
|
}
|
|
3820
|
-
function
|
|
3826
|
+
function c() {
|
|
3821
3827
|
if (t.value) {
|
|
3822
|
-
const
|
|
3823
|
-
l.value = t.value.scrollLeft > 0, o.value = t.value.scrollLeft <
|
|
3828
|
+
const h = t.value.scrollWidth - t.value.clientWidth;
|
|
3829
|
+
l.value = t.value.scrollLeft > 0, o.value = t.value.scrollLeft < h;
|
|
3824
3830
|
} else
|
|
3825
3831
|
l.value = !1, o.value = !1;
|
|
3826
3832
|
}
|
|
3827
3833
|
function g() {
|
|
3828
|
-
|
|
3834
|
+
c(), window.addEventListener("resize", c);
|
|
3829
3835
|
}
|
|
3830
|
-
function
|
|
3836
|
+
function d(h) {
|
|
3831
3837
|
if (t.value) {
|
|
3832
|
-
const
|
|
3833
|
-
let m =
|
|
3834
|
-
|
|
3838
|
+
const y = t.value.scrollWidth / 5;
|
|
3839
|
+
let m = y;
|
|
3840
|
+
h === "left" && (m = -y), t.value.scroll(t.value.scrollLeft + m, 0);
|
|
3835
3841
|
}
|
|
3836
3842
|
}
|
|
3837
|
-
return Oe(() => g()), Ue(() => window.removeEventListener("resize",
|
|
3843
|
+
return Oe(() => g()), Ue(() => window.removeEventListener("resize", c)), (h, y) => {
|
|
3838
3844
|
const m = K("icon");
|
|
3839
|
-
return
|
|
3845
|
+
return u(), v("div", Da, [
|
|
3840
3846
|
f("div", null, [
|
|
3841
|
-
l.value ? (
|
|
3847
|
+
l.value ? (u(), v("div", {
|
|
3842
3848
|
key: 0,
|
|
3843
3849
|
class: "cl-bg-white cl-cursor-pointer cl-float-left cl-h-11 cl-w-4",
|
|
3844
|
-
onClick:
|
|
3850
|
+
onClick: y[0] || (y[0] = (r) => d("left"))
|
|
3845
3851
|
}, [
|
|
3846
3852
|
w(m, {
|
|
3847
3853
|
icon: "ph:caret-left",
|
|
@@ -3851,7 +3857,7 @@ const Ia = /* @__PURE__ */ he(ja, [["render", Ma]]), Na = { class: "cl-w-full" }
|
|
|
3851
3857
|
f("div", {
|
|
3852
3858
|
ref_key: "headerContainer",
|
|
3853
3859
|
ref: t,
|
|
3854
|
-
class: I(["cl-flex cl-overflow-x-auto", {
|
|
3860
|
+
class: I(["cl-flex cl-overflow-x-auto cl-overscroll-x-none", {
|
|
3855
3861
|
"cl-shadow-[inset_0_-1px_0_#eeeeee]": !e.disabled && e.colour === "default",
|
|
3856
3862
|
"cl-shadow-[inset_0_-1px_0_#9acd32]": !e.disabled && e.colour === "primary",
|
|
3857
3863
|
"cl-shadow-[inset_0_-1px_0_#30363e]": !e.disabled && e.colour === "secondary",
|
|
@@ -3860,14 +3866,14 @@ const Ia = /* @__PURE__ */ he(ja, [["render", Ma]]), Na = { class: "cl-w-full" }
|
|
|
3860
3866
|
"cl-shadow-[inset_0_-1px_0_#d7d7d7]": e.disabled,
|
|
3861
3867
|
"cl-mr-4": o.value
|
|
3862
3868
|
}]),
|
|
3863
|
-
onScrollPassive:
|
|
3869
|
+
onScrollPassive: c
|
|
3864
3870
|
}, [
|
|
3865
|
-
A(
|
|
3871
|
+
A(h.$slots, "headings", ae(me({ isTabOpen: i, disabled: e.disabled, colour: e.colour })))
|
|
3866
3872
|
], 34),
|
|
3867
|
-
o.value ? (
|
|
3873
|
+
o.value ? (u(), v("div", {
|
|
3868
3874
|
key: 1,
|
|
3869
3875
|
class: "cl-bg-white cl-bottom-12 cl-cursor-pointer cl-float-right cl-h-11 cl-relative cl-w-4",
|
|
3870
|
-
onClick:
|
|
3876
|
+
onClick: y[1] || (y[1] = (r) => d("right"))
|
|
3871
3877
|
}, [
|
|
3872
3878
|
w(m, {
|
|
3873
3879
|
icon: "ph:caret-right",
|
|
@@ -3875,11 +3881,11 @@ const Ia = /* @__PURE__ */ he(ja, [["render", Ma]]), Na = { class: "cl-w-full" }
|
|
|
3875
3881
|
})
|
|
3876
3882
|
])) : M("", !0)
|
|
3877
3883
|
]),
|
|
3878
|
-
A(
|
|
3884
|
+
A(h.$slots, "content", ae(me({ isTabOpen: i, disabled: e.disabled, colour: e.colour })))
|
|
3879
3885
|
]);
|
|
3880
3886
|
};
|
|
3881
3887
|
}
|
|
3882
|
-
}),
|
|
3888
|
+
}), Ra = ["onKeyup"], Ua = /* @__PURE__ */ D({
|
|
3883
3889
|
__name: "cl-ui-tab-header",
|
|
3884
3890
|
props: {
|
|
3885
3891
|
id: null,
|
|
@@ -3891,24 +3897,24 @@ const Ia = /* @__PURE__ */ he(ja, [["render", Ma]]), Na = { class: "cl-w-full" }
|
|
|
3891
3897
|
"update:currentTab": null
|
|
3892
3898
|
},
|
|
3893
3899
|
setup(e, { emit: n }) {
|
|
3894
|
-
const t = e, l =
|
|
3895
|
-
function
|
|
3900
|
+
const t = e, l = C(), o = C(), i = S(() => t.id === t.currentTab);
|
|
3901
|
+
function c() {
|
|
3896
3902
|
t.disabled || (l.value = !1, o.value = !1, n("update:currentTab", t.id));
|
|
3897
3903
|
}
|
|
3898
|
-
return (g,
|
|
3904
|
+
return (g, d) => (u(), v("div", {
|
|
3899
3905
|
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", {
|
|
3900
3906
|
"!cl-cursor-default cl-text-grey-4 !cl-border-grey-2": e.disabled,
|
|
3901
|
-
"cl-border cl-border-b-0 cl-rounded-t-md cl-shadow-[inset_0_-1px_0_#ffffff] cl-cursor-default": a(
|
|
3907
|
+
"cl-border cl-border-b-0 cl-rounded-t-md cl-shadow-[inset_0_-1px_0_#ffffff] cl-cursor-default": a(i),
|
|
3902
3908
|
"cl-border-grey-0": e.colour === "default",
|
|
3903
3909
|
"cl-border-primary-default": e.colour === "primary",
|
|
3904
3910
|
"cl-border-secondary-default": e.colour === "secondary",
|
|
3905
3911
|
"cl-border-danger-default": e.colour === "danger",
|
|
3906
3912
|
"cl-border-link-default": e.colour === "blue",
|
|
3907
|
-
"hover:cl-bg-grey-0": !a(
|
|
3908
|
-
"hover:cl-bg-primary-lighter": !a(
|
|
3909
|
-
"hover:cl-bg-secondary-light focus:cl-text-white hover:cl-text-white": !a(
|
|
3910
|
-
"hover:cl-bg-danger-light": !a(
|
|
3911
|
-
"hover:cl-bg-link-lighter": !a(
|
|
3913
|
+
"hover:cl-bg-grey-0": !a(i) && !e.disabled && e.colour === "default",
|
|
3914
|
+
"hover:cl-bg-primary-lighter": !a(i) && !e.disabled && e.colour === "primary",
|
|
3915
|
+
"hover:cl-bg-secondary-light focus:cl-text-white hover:cl-text-white": !a(i) && !e.disabled && e.colour === "secondary",
|
|
3916
|
+
"hover:cl-bg-danger-light": !a(i) && !e.disabled && e.colour === "danger",
|
|
3917
|
+
"hover:cl-bg-link-lighter": !a(i) && !e.disabled && e.colour === "blue",
|
|
3912
3918
|
"cl-bg-grey-0": l.value && !e.disabled && e.colour === "default",
|
|
3913
3919
|
"cl-bg-primary-lighter": l.value && !e.disabled && e.colour === "primary",
|
|
3914
3920
|
"cl-bg-secondary-light cl-text-white": l.value && !e.disabled && e.colour === "secondary",
|
|
@@ -3916,34 +3922,34 @@ const Ia = /* @__PURE__ */ he(ja, [["render", Ma]]), Na = { class: "cl-w-full" }
|
|
|
3916
3922
|
"cl-bg-link-lighter": l.value && !e.disabled && e.colour === "blue"
|
|
3917
3923
|
}]),
|
|
3918
3924
|
tabindex: "0",
|
|
3919
|
-
onClick:
|
|
3920
|
-
onMouseover:
|
|
3921
|
-
onMouseout:
|
|
3922
|
-
onFocusin:
|
|
3923
|
-
onFocusout:
|
|
3924
|
-
onKeyup: Se(Y(
|
|
3925
|
+
onClick: c,
|
|
3926
|
+
onMouseover: d[0] || (d[0] = (h) => o.value = !0),
|
|
3927
|
+
onMouseout: d[1] || (d[1] = (h) => o.value = !1),
|
|
3928
|
+
onFocusin: d[2] || (d[2] = (h) => l.value = !0),
|
|
3929
|
+
onFocusout: d[3] || (d[3] = (h) => l.value = !1),
|
|
3930
|
+
onKeyup: Se(Y(c, ["self"]), ["enter"])
|
|
3925
3931
|
}, [
|
|
3926
3932
|
A(g.$slots, "default")
|
|
3927
|
-
], 42,
|
|
3933
|
+
], 42, Ra));
|
|
3928
3934
|
}
|
|
3929
|
-
}),
|
|
3935
|
+
}), Pa = {};
|
|
3930
3936
|
function Ba(e, n) {
|
|
3931
3937
|
return A(e.$slots, "default");
|
|
3932
3938
|
}
|
|
3933
|
-
const za = /* @__PURE__ */ he(
|
|
3939
|
+
const za = /* @__PURE__ */ he(Pa, [["render", Ba]]), La = [
|
|
3934
3940
|
"default",
|
|
3935
3941
|
"primary",
|
|
3936
3942
|
"secondary",
|
|
3937
3943
|
"danger",
|
|
3938
3944
|
"blue"
|
|
3939
|
-
],
|
|
3945
|
+
], Fa = [
|
|
3940
3946
|
"left",
|
|
3941
3947
|
"right"
|
|
3942
|
-
],
|
|
3948
|
+
], Va = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3943
3949
|
__proto__: null,
|
|
3944
3950
|
FilterOperation: ye,
|
|
3945
|
-
buttonColours:
|
|
3946
|
-
buttonSizes:
|
|
3951
|
+
buttonColours: Bl,
|
|
3952
|
+
buttonSizes: zl,
|
|
3947
3953
|
cardSizes: Vl,
|
|
3948
3954
|
clUiAccordion: yl,
|
|
3949
3955
|
clUiAccordionHeader: El,
|
|
@@ -3954,22 +3960,22 @@ const za = /* @__PURE__ */ he(Ua, [["render", Ba]]), Pa = [
|
|
|
3954
3960
|
clUiComboBox: Zt,
|
|
3955
3961
|
clUiFooter: an,
|
|
3956
3962
|
clUiGrid: Uo,
|
|
3957
|
-
clUiHeader:
|
|
3963
|
+
clUiHeader: Bo,
|
|
3958
3964
|
clUiHeaderMenu: Jo,
|
|
3959
3965
|
clUiInput: de,
|
|
3960
3966
|
clUiLanguageSwitcher: la,
|
|
3961
3967
|
clUiLoadingSpinner: Ve,
|
|
3962
3968
|
clUiLogin: fa,
|
|
3963
|
-
clUiModal:
|
|
3964
|
-
clUiNavigation:
|
|
3965
|
-
clUiNavigationGroup:
|
|
3966
|
-
clUiNavigationIcon:
|
|
3967
|
-
clUiNavigationItem:
|
|
3968
|
-
clUiNavigationSection:
|
|
3969
|
-
clUiNotification:
|
|
3970
|
-
clUiTab:
|
|
3969
|
+
clUiModal: sl,
|
|
3970
|
+
clUiNavigation: ya,
|
|
3971
|
+
clUiNavigationGroup: ka,
|
|
3972
|
+
clUiNavigationIcon: wa,
|
|
3973
|
+
clUiNavigationItem: Na,
|
|
3974
|
+
clUiNavigationSection: ja,
|
|
3975
|
+
clUiNotification: cl,
|
|
3976
|
+
clUiTab: qa,
|
|
3971
3977
|
clUiTabContent: za,
|
|
3972
|
-
clUiTabHeader:
|
|
3978
|
+
clUiTabHeader: Ua,
|
|
3973
3979
|
filterMethodTypes: Hn,
|
|
3974
3980
|
gridColumnTypes: Fn,
|
|
3975
3981
|
inputTypes: Ko,
|
|
@@ -3977,18 +3983,18 @@ const za = /* @__PURE__ */ he(Ua, [["render", Ba]]), Pa = [
|
|
|
3977
3983
|
isComboBoxItem: Qt,
|
|
3978
3984
|
isFilterRequest: Kn,
|
|
3979
3985
|
isFilterResponse: Zn,
|
|
3980
|
-
isGridColumn:
|
|
3986
|
+
isGridColumn: il,
|
|
3981
3987
|
isGridColumnArray: Vn,
|
|
3982
3988
|
isLanguageArray: Zo,
|
|
3983
|
-
isLanguageLocaleFormat:
|
|
3989
|
+
isLanguageLocaleFormat: ze,
|
|
3984
3990
|
modalColours: ga,
|
|
3985
3991
|
modalSizes: ma,
|
|
3986
3992
|
stringFormats: Gn,
|
|
3987
|
-
tabColours:
|
|
3988
|
-
tabScroll:
|
|
3993
|
+
tabColours: La,
|
|
3994
|
+
tabScroll: Fa
|
|
3989
3995
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
3990
|
-
const
|
|
3991
|
-
e.use(ee), e.component("Icon",
|
|
3996
|
+
const lc = (e) => {
|
|
3997
|
+
e.use(ee), e.component("Icon", ul), Object.entries(Va).forEach(([
|
|
3992
3998
|
n,
|
|
3993
3999
|
t
|
|
3994
4000
|
]) => {
|
|
@@ -3999,8 +4005,8 @@ export {
|
|
|
3999
4005
|
H as DateFormat,
|
|
4000
4006
|
ye as FilterOperation,
|
|
4001
4007
|
ne as NumberFormat,
|
|
4002
|
-
|
|
4003
|
-
|
|
4008
|
+
Bl as buttonColours,
|
|
4009
|
+
zl as buttonSizes,
|
|
4004
4010
|
Vl as cardSizes,
|
|
4005
4011
|
yl as clUiAccordion,
|
|
4006
4012
|
El as clUiAccordionHeader,
|
|
@@ -4011,24 +4017,24 @@ export {
|
|
|
4011
4017
|
Zt as clUiComboBox,
|
|
4012
4018
|
an as clUiFooter,
|
|
4013
4019
|
Uo as clUiGrid,
|
|
4014
|
-
|
|
4020
|
+
Bo as clUiHeader,
|
|
4015
4021
|
Jo as clUiHeaderMenu,
|
|
4016
4022
|
de as clUiInput,
|
|
4017
4023
|
la as clUiLanguageSwitcher,
|
|
4018
4024
|
Ve as clUiLoadingSpinner,
|
|
4019
4025
|
fa as clUiLogin,
|
|
4020
|
-
|
|
4021
|
-
|
|
4022
|
-
|
|
4023
|
-
|
|
4024
|
-
|
|
4025
|
-
|
|
4026
|
-
|
|
4027
|
-
|
|
4026
|
+
sl as clUiModal,
|
|
4027
|
+
ya as clUiNavigation,
|
|
4028
|
+
ka as clUiNavigationGroup,
|
|
4029
|
+
wa as clUiNavigationIcon,
|
|
4030
|
+
Na as clUiNavigationItem,
|
|
4031
|
+
ja as clUiNavigationSection,
|
|
4032
|
+
cl as clUiNotification,
|
|
4033
|
+
qa as clUiTab,
|
|
4028
4034
|
za as clUiTabContent,
|
|
4029
|
-
|
|
4035
|
+
Ua as clUiTabHeader,
|
|
4030
4036
|
Wl as datetimeFormats,
|
|
4031
|
-
|
|
4037
|
+
lc as default,
|
|
4032
4038
|
Hn as filterMethodTypes,
|
|
4033
4039
|
Fn as gridColumnTypes,
|
|
4034
4040
|
ee as i18n,
|
|
@@ -4037,22 +4043,22 @@ export {
|
|
|
4037
4043
|
Qt as isComboBoxItem,
|
|
4038
4044
|
Kn as isFilterRequest,
|
|
4039
4045
|
Zn as isFilterResponse,
|
|
4040
|
-
|
|
4046
|
+
il as isGridColumn,
|
|
4041
4047
|
Vn as isGridColumnArray,
|
|
4042
4048
|
Zo as isLanguageArray,
|
|
4043
|
-
|
|
4049
|
+
ze as isLanguageLocaleFormat,
|
|
4044
4050
|
Gl as messages,
|
|
4045
4051
|
ga as modalColours,
|
|
4046
4052
|
ma as modalSizes,
|
|
4047
4053
|
Hl as numberFormats,
|
|
4048
|
-
|
|
4049
|
-
|
|
4050
|
-
|
|
4051
|
-
|
|
4054
|
+
ec as setCurrentLocale,
|
|
4055
|
+
_a as setLocaleDateTimeFormats,
|
|
4056
|
+
Ya as setLocaleMessages,
|
|
4057
|
+
Xa as setLocaleNumberFormats,
|
|
4052
4058
|
We as showNotification,
|
|
4053
4059
|
Gn as stringFormats,
|
|
4054
|
-
|
|
4055
|
-
|
|
4060
|
+
La as tabColours,
|
|
4061
|
+
Fa as tabScroll,
|
|
4056
4062
|
Ql as validateEmail,
|
|
4057
4063
|
Kl as validateMaxValue,
|
|
4058
4064
|
Jl as validateMinValue
|