@citruslime/ui 2.4.1-beta.4 → 2.4.1-beta.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/citrus-lime-ui.es.js +1161 -1154
- package/dist/citrus-lime-ui.umd.js +2 -2
- package/dist/components/grid/utils.d.ts +14 -0
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
import { Icon as
|
|
2
|
-
import { defineComponent as M, ref as A, openBlock as
|
|
3
|
-
import { generateStringId as
|
|
4
|
-
import { onClickOutside as ze, useTimeoutFn as
|
|
1
|
+
import { Icon as _ } from "@iconify/vue";
|
|
2
|
+
import { defineComponent as M, ref as A, openBlock as i, createElementBlock as v, renderSlot as j, normalizeProps as le, guardReactiveProps as ne, Fragment as F, createElementVNode as p, normalizeClass as I, createVNode as k, unref as d, Transition as me, withCtx as P, withDirectives as L, mergeProps as se, vShow as H, createBlock as V, Teleport as Ie, renderList as Q, toDisplayString as T, createCommentVNode as N, nextTick as ge, toHandlers as tl, withModifiers as W, computed as S, watch as K, normalizeStyle as We, vModelText as ol, onMounted as Ae, vModelDynamic as nl, withKeys as we, onUnmounted as _e, resolveComponent as sl, createTextVNode as ee, watchEffect as al, createSlots as Re } from "vue";
|
|
3
|
+
import { generateStringId as rl } from "@citruslime/utils";
|
|
4
|
+
import { onClickOutside as ze, useTimeoutFn as Ke, useDebounceFn as Qe, useWindowSize as cl } from "@vueuse/core";
|
|
5
5
|
import { createI18n as il, useI18n as oe } from "vue-i18n";
|
|
6
6
|
import { DateTime as $e } from "luxon";
|
|
7
7
|
import { DatePicker as Me } from "v-calendar";
|
|
8
|
-
import { useDebouncer as
|
|
9
|
-
const
|
|
8
|
+
import { useDebouncer as ul, copy as re } from "@citruslime/vue-utils";
|
|
9
|
+
const dl = { class: "cl-overflow-hidden" }, pl = /* @__PURE__ */ M({
|
|
10
10
|
__name: "cl-ui-accordion",
|
|
11
11
|
props: {
|
|
12
12
|
exclusive: { type: Boolean, default: !1 }
|
|
13
13
|
},
|
|
14
14
|
setup(t) {
|
|
15
|
-
const o = t,
|
|
16
|
-
function
|
|
17
|
-
let
|
|
18
|
-
return
|
|
15
|
+
const o = t, e = A([]);
|
|
16
|
+
function l(m) {
|
|
17
|
+
let n = e.value.find((a) => a.id === m);
|
|
18
|
+
return n || (n = {
|
|
19
19
|
id: m,
|
|
20
20
|
open: !1
|
|
21
|
-
},
|
|
21
|
+
}, e.value.push(n)), n.open;
|
|
22
22
|
}
|
|
23
|
-
function
|
|
24
|
-
const
|
|
25
|
-
|
|
23
|
+
function s(m) {
|
|
24
|
+
const n = e.value.find((a) => a.id === m);
|
|
25
|
+
n && (o.exclusive && e.value.forEach((a) => {
|
|
26
26
|
a.id !== m && (a.open = !1);
|
|
27
|
-
}),
|
|
27
|
+
}), n.open = !n.open);
|
|
28
28
|
}
|
|
29
|
-
return (m,
|
|
30
|
-
j(m.$slots, "default", le(ne({ isItemOpen:
|
|
29
|
+
return (m, n) => (i(), v("div", dl, [
|
|
30
|
+
j(m.$slots, "default", le(ne({ isItemOpen: l, toggleItem: s })))
|
|
31
31
|
]));
|
|
32
32
|
}
|
|
33
|
-
}),
|
|
33
|
+
}), fl = { class: "cl-absolute cl-left-5 cl-top-5" }, ml = { class: "cl-font-semibold cl-ml-10 cl-p-4 cl-select-none cl-text-grey-5" }, gl = { class: "cl-overflow-hidden" }, vl = /* @__PURE__ */ M({
|
|
34
34
|
inheritAttrs: !1,
|
|
35
35
|
__name: "cl-ui-accordion-item",
|
|
36
36
|
props: {
|
|
@@ -41,38 +41,38 @@ const ul = { class: "cl-overflow-hidden" }, dl = /* @__PURE__ */ M({
|
|
|
41
41
|
toggle: null
|
|
42
42
|
},
|
|
43
43
|
setup(t, { emit: o }) {
|
|
44
|
-
const
|
|
45
|
-
function
|
|
46
|
-
|
|
44
|
+
const e = t;
|
|
45
|
+
function l() {
|
|
46
|
+
e.disabled || o("toggle");
|
|
47
47
|
}
|
|
48
|
-
return (
|
|
48
|
+
return (s, m) => (i(), v(F, null, [
|
|
49
49
|
p("div", {
|
|
50
|
-
class:
|
|
51
|
-
"cl-bg-grey-0":
|
|
52
|
-
"cl-cursor-pointer": !
|
|
50
|
+
class: I(["cl-border-b cl-border-grey-1 cl-relative", {
|
|
51
|
+
"cl-bg-grey-0": s.disabled,
|
|
52
|
+
"cl-cursor-pointer": !s.disabled
|
|
53
53
|
}]),
|
|
54
|
-
onClick:
|
|
54
|
+
onClick: l
|
|
55
55
|
}, [
|
|
56
|
-
p("div",
|
|
57
|
-
k(d(
|
|
58
|
-
class:
|
|
59
|
-
"cl-rotate-180":
|
|
56
|
+
p("div", fl, [
|
|
57
|
+
k(d(_), {
|
|
58
|
+
class: I(["cl-duration-300 cl-ease-in-out cl-text-grey-3 cl-transform-gpu cl-transition-transform", {
|
|
59
|
+
"cl-rotate-180": s.open
|
|
60
60
|
}]),
|
|
61
61
|
icon: "ph:caret-down-bold",
|
|
62
62
|
width: "20"
|
|
63
63
|
}, null, 8, ["class"])
|
|
64
64
|
]),
|
|
65
|
-
p("div",
|
|
66
|
-
j(
|
|
65
|
+
p("div", ml, [
|
|
66
|
+
j(s.$slots, "title")
|
|
67
67
|
])
|
|
68
68
|
], 2),
|
|
69
|
-
p("div",
|
|
69
|
+
p("div", gl, [
|
|
70
70
|
k(me, { name: "grow-down" }, {
|
|
71
71
|
default: P(() => [
|
|
72
|
-
L(p("div", se(
|
|
73
|
-
j(
|
|
72
|
+
L(p("div", se(s.$attrs, { class: "cl-ml-10 cl-p-4" }), [
|
|
73
|
+
j(s.$slots, "default")
|
|
74
74
|
], 16), [
|
|
75
|
-
[H,
|
|
75
|
+
[H, s.open]
|
|
76
76
|
])
|
|
77
77
|
]),
|
|
78
78
|
_: 3
|
|
@@ -81,28 +81,28 @@ const ul = { class: "cl-overflow-hidden" }, dl = /* @__PURE__ */ M({
|
|
|
81
81
|
], 64));
|
|
82
82
|
}
|
|
83
83
|
}), de = (t, o) => {
|
|
84
|
-
const
|
|
85
|
-
for (const [
|
|
86
|
-
l
|
|
87
|
-
return
|
|
88
|
-
},
|
|
89
|
-
function
|
|
90
|
-
return
|
|
84
|
+
const e = t.__vccOpts || t;
|
|
85
|
+
for (const [l, s] of o)
|
|
86
|
+
e[l] = s;
|
|
87
|
+
return e;
|
|
88
|
+
}, bl = {}, hl = { class: "cl-border-b cl-border-grey-1 cl-font-semibold cl-pl-14 cl-pr-4 cl-py-2 cl-text-grey-3 cl-text-sm" };
|
|
89
|
+
function yl(t, o) {
|
|
90
|
+
return i(), v("div", hl, [
|
|
91
91
|
j(t.$slots, "default")
|
|
92
92
|
]);
|
|
93
93
|
}
|
|
94
|
-
const
|
|
94
|
+
const wl = /* @__PURE__ */ de(bl, [["render", yl]]), qe = A([]);
|
|
95
95
|
function Ve(t) {
|
|
96
96
|
const o = {
|
|
97
|
-
id:
|
|
97
|
+
id: rl(),
|
|
98
98
|
...t
|
|
99
99
|
};
|
|
100
|
-
qe.value.push(o), setTimeout(() =>
|
|
100
|
+
qe.value.push(o), setTimeout(() => Je(o), t.duration);
|
|
101
101
|
}
|
|
102
|
-
function
|
|
102
|
+
function Je(t) {
|
|
103
103
|
qe.value = qe.value.filter((o) => o.id !== t.id);
|
|
104
104
|
}
|
|
105
|
-
const
|
|
105
|
+
const $l = ["onClick"], kl = { class: "cl-flex-1 cl-select-none cl-text-ellipsis cl-w-64" }, Ye = /* @__PURE__ */ M({
|
|
106
106
|
inheritAttrs: !1,
|
|
107
107
|
__name: "cl-ui-notification",
|
|
108
108
|
props: {
|
|
@@ -110,9 +110,9 @@ const wl = ["onClick"], $l = { class: "cl-flex-1 cl-select-none cl-text-ellipsis
|
|
|
110
110
|
position: { default: "top-right" }
|
|
111
111
|
},
|
|
112
112
|
setup(t) {
|
|
113
|
-
return (o,
|
|
113
|
+
return (o, e) => (i(), V(Ie, { to: o.container }, [
|
|
114
114
|
p("div", {
|
|
115
|
-
class:
|
|
115
|
+
class: I(["cl-fixed cl-w-80 cl-z-40", {
|
|
116
116
|
"cl-top-5 cl-left-5": o.position === "top-left",
|
|
117
117
|
"cl-top-5 cl-left-1/2": o.position === "top-centre",
|
|
118
118
|
"cl-top-5 cl-right-5": o.position === "top-right",
|
|
@@ -121,46 +121,46 @@ const wl = ["onClick"], $l = { class: "cl-flex-1 cl-select-none cl-text-ellipsis
|
|
|
121
121
|
"cl-bottom-5 cl-right-5": o.position === "bottom-right"
|
|
122
122
|
}])
|
|
123
123
|
}, [
|
|
124
|
-
(
|
|
125
|
-
key:
|
|
124
|
+
(i(!0), v(F, null, Q(d(qe), (l, s) => (i(), v("div", se(o.$attrs, {
|
|
125
|
+
key: s,
|
|
126
126
|
class: ["cl-break-words cl-cursor-pointer cl-flex cl-font-semibold cl-group cl-mb-2 cl-overflow-hidden cl-p-4 cl-rounded cl-shadow-lg cl-text-sm", {
|
|
127
|
-
"cl-bg-white":
|
|
128
|
-
"cl-bg-primary-default":
|
|
129
|
-
"cl-bg-secondary-default":
|
|
130
|
-
"cl-bg-danger-default":
|
|
131
|
-
"cl-bg-warning-default":
|
|
127
|
+
"cl-bg-white": l.colour === "default",
|
|
128
|
+
"cl-bg-primary-default": l.colour === "primary",
|
|
129
|
+
"cl-bg-secondary-default": l.colour === "secondary",
|
|
130
|
+
"cl-bg-danger-default": l.colour === "danger",
|
|
131
|
+
"cl-bg-warning-default": l.colour === "warning"
|
|
132
132
|
}],
|
|
133
|
-
onClick: (m) => d(
|
|
133
|
+
onClick: (m) => d(Je)(l)
|
|
134
134
|
}), [
|
|
135
|
-
p("span",
|
|
136
|
-
k(d(
|
|
135
|
+
p("span", kl, T(l.message), 1),
|
|
136
|
+
k(d(_), {
|
|
137
137
|
class: "cl-inline-block cl-opacity-0 cl-transition-opacity group-hover:cl-opacity-100",
|
|
138
138
|
icon: "ph:x",
|
|
139
139
|
size: 16,
|
|
140
140
|
weight: "bold"
|
|
141
141
|
})
|
|
142
|
-
], 16,
|
|
142
|
+
], 16, $l))), 128))
|
|
143
143
|
], 2)
|
|
144
144
|
], 8, ["to"]));
|
|
145
145
|
}
|
|
146
|
-
}),
|
|
146
|
+
}), Cl = { class: "cl-absolute cl-flex cl-flex-wrap cl-h-full cl-max-h-full cl-max-w-full cl-min-h-full cl-min-w-full cl-w-full xl:cl-h-screen xl:cl-max-h-screen xl:cl-min-h-screen" }, Tl = /* @__PURE__ */ M({
|
|
147
147
|
__name: "cl-ui-app",
|
|
148
148
|
props: {
|
|
149
149
|
removePadding: { type: Boolean, default: !1 }
|
|
150
150
|
},
|
|
151
151
|
setup(t) {
|
|
152
|
-
return (o,
|
|
153
|
-
k(
|
|
154
|
-
p("div",
|
|
152
|
+
return (o, e) => (i(), v(F, null, [
|
|
153
|
+
k(Ye),
|
|
154
|
+
p("div", Cl, [
|
|
155
155
|
j(o.$slots, "header"),
|
|
156
156
|
p("div", {
|
|
157
|
-
class:
|
|
157
|
+
class: I(["cl-content-start cl-flex cl-flex-nowrap cl-items-stretch cl-max-h-full cl-relative cl-w-full xl:cl-max-h-screen", {
|
|
158
158
|
"cl-pt-20": o.$slots.header
|
|
159
159
|
}])
|
|
160
160
|
}, [
|
|
161
161
|
j(o.$slots, "navigation"),
|
|
162
162
|
p("div", {
|
|
163
|
-
class:
|
|
163
|
+
class: I(["cl-grow cl-max-h-full cl-overflow-x-hidden cl-overflow-y-auto cl-overscroll-y-none cl-w-auto", {
|
|
164
164
|
"cl-pb-20 lg:cl-pb-0": o.removePadding,
|
|
165
165
|
"lg:cl-pb-8 md:cl-px-8 cl-px-2 md:cl-pt-8 cl-pt-2 cl-pb-20": !o.removePadding
|
|
166
166
|
}])
|
|
@@ -172,11 +172,11 @@ const wl = ["onClick"], $l = { class: "cl-flex-1 cl-select-none cl-text-ellipsis
|
|
|
172
172
|
], 64));
|
|
173
173
|
}
|
|
174
174
|
});
|
|
175
|
-
const
|
|
176
|
-
function
|
|
177
|
-
return
|
|
175
|
+
const El = {}, Ol = { class: "loading-spinner" };
|
|
176
|
+
function ql(t, o) {
|
|
177
|
+
return i(), v("div", Ol);
|
|
178
178
|
}
|
|
179
|
-
const Se = /* @__PURE__ */ de(
|
|
179
|
+
const Se = /* @__PURE__ */ de(El, [["render", ql], ["__scopeId", "data-v-a21dc5d2"]]), Al = ["disabled"], fe = /* @__PURE__ */ M({
|
|
180
180
|
inheritAttrs: !1,
|
|
181
181
|
__name: "cl-ui-button",
|
|
182
182
|
props: {
|
|
@@ -186,67 +186,67 @@ const Se = /* @__PURE__ */ de(Tl, [["render", Ol], ["__scopeId", "data-v-a21dc5d
|
|
|
186
186
|
disabled: { type: Boolean, default: !1 }
|
|
187
187
|
},
|
|
188
188
|
setup(t, { expose: o }) {
|
|
189
|
-
const
|
|
189
|
+
const e = A(null);
|
|
190
190
|
return o({
|
|
191
191
|
focus() {
|
|
192
|
-
|
|
192
|
+
e.value && e.value.focus();
|
|
193
193
|
}
|
|
194
|
-
}), (
|
|
194
|
+
}), (l, s) => (i(), v(F, null, [
|
|
195
195
|
L(k(Se, { class: "relative" }, null, 512), [
|
|
196
|
-
[H,
|
|
196
|
+
[H, l.loading]
|
|
197
197
|
]),
|
|
198
|
-
L(p("button", se(
|
|
198
|
+
L(p("button", se(l.$attrs, {
|
|
199
199
|
ref_key: "buttonRef",
|
|
200
|
-
ref:
|
|
200
|
+
ref: e,
|
|
201
201
|
class: ["cl-align-middle cl-border cl-font-semibold cl-inline-block cl-rounded cl-select-none cl-shadow cl-text-center cl-transition-colors", {
|
|
202
|
-
"cl-py-[5px] cl-px-4 cl-text-sm":
|
|
203
|
-
"cl-py-[9px] cl-px-8 cl-text-sm":
|
|
204
|
-
"cl-px-10 cl-py-4":
|
|
205
|
-
"cl-bg-white cl-border-grey-0 hover:cl-border-grey-2 cl-text-secondary":
|
|
206
|
-
"cl-border-primary-default cl-bg-primary-default cl-text-white hover:cl-bg-primary-
|
|
207
|
-
"cl-border-secondary-default cl-bg-secondary-default cl-text-white hover:cl-bg-secondary-light hover:cl-border-secondary-light":
|
|
208
|
-
"cl-border-danger-default cl-bg-danger-default cl-text-white hover:cl-bg-danger-dark hover:cl-border-danger-dark":
|
|
209
|
-
"cl-border-link-default cl-bg-link-default cl-text-white hover:cl-bg-link-light hover:cl-border-link-light":
|
|
210
|
-
"cl-border-orange-default cl-bg-orange-default cl-opacity-100 cl-text-white hover:cl-bg-orange-dark hover:cl-border-orange-dark":
|
|
211
|
-
"!cl-border-grey-3 !cl-bg-grey-3 cl-text-grey-0 hover:!cl-bg-grey-3 hover:!cl-border-grey-3 cl-cursor-default":
|
|
202
|
+
"cl-py-[5px] cl-px-4 cl-text-sm": l.size === "small",
|
|
203
|
+
"cl-py-[9px] cl-px-8 cl-text-sm": l.size === "medium",
|
|
204
|
+
"cl-px-10 cl-py-4": l.size === "large",
|
|
205
|
+
"cl-bg-white cl-border-grey-0 hover:cl-border-grey-2 cl-text-secondary": l.colour === "default",
|
|
206
|
+
"cl-border-primary-default cl-bg-primary-default cl-text-white hover:cl-bg-primary-dark hover:cl-border-primary-dark": l.colour === "primary",
|
|
207
|
+
"cl-border-secondary-default cl-bg-secondary-default cl-text-white hover:cl-bg-secondary-light hover:cl-border-secondary-light": l.colour === "secondary",
|
|
208
|
+
"cl-border-danger-default cl-bg-danger-default cl-text-white hover:cl-bg-danger-dark hover:cl-border-danger-dark": l.colour === "danger",
|
|
209
|
+
"cl-border-link-default cl-bg-link-default cl-text-white hover:cl-bg-link-light hover:cl-border-link-light": l.colour === "blue",
|
|
210
|
+
"cl-border-orange-default cl-bg-orange-default cl-opacity-100 cl-text-white hover:cl-bg-orange-dark hover:cl-border-orange-dark": l.colour === "orange",
|
|
211
|
+
"!cl-border-grey-3 !cl-bg-grey-3 cl-text-grey-0 hover:!cl-bg-grey-3 hover:!cl-border-grey-3 cl-cursor-default": l.disabled
|
|
212
212
|
}],
|
|
213
|
-
disabled:
|
|
213
|
+
disabled: l.disabled
|
|
214
214
|
}), [
|
|
215
|
-
j(
|
|
216
|
-
], 16,
|
|
217
|
-
[H, !
|
|
215
|
+
j(l.$slots, "default")
|
|
216
|
+
], 16, Al), [
|
|
217
|
+
[H, !l.loading]
|
|
218
218
|
])
|
|
219
219
|
], 64));
|
|
220
220
|
}
|
|
221
|
-
}),
|
|
221
|
+
}), Sl = [
|
|
222
222
|
"default",
|
|
223
223
|
"primary",
|
|
224
224
|
"secondary",
|
|
225
225
|
"danger",
|
|
226
226
|
"blue",
|
|
227
227
|
"orange"
|
|
228
|
-
],
|
|
228
|
+
], Nl = [
|
|
229
229
|
"small",
|
|
230
230
|
"medium",
|
|
231
231
|
"large"
|
|
232
|
-
],
|
|
232
|
+
], jl = { key: 0 }, Il = /* @__PURE__ */ M({
|
|
233
233
|
__name: "cl-ui-card",
|
|
234
234
|
props: {
|
|
235
235
|
size: { default: "medium" },
|
|
236
236
|
hover: { type: Boolean, default: !1 }
|
|
237
237
|
},
|
|
238
238
|
setup(t) {
|
|
239
|
-
return (o,
|
|
240
|
-
class:
|
|
239
|
+
return (o, e) => (i(), v("div", {
|
|
240
|
+
class: I(["cl-border cl-border-transparent cl-overflow-hidden cl-relative cl-rounded-md cl-shadow-lg cl-transition-all", {
|
|
241
241
|
"cl-cursor-pointer hover:cl-shadow-xl hover:cl-border-grey-0": o.hover
|
|
242
242
|
}])
|
|
243
243
|
}, [
|
|
244
|
-
o.$slots.image ? (
|
|
244
|
+
o.$slots.image ? (i(), v("div", jl, [
|
|
245
245
|
j(o.$slots, "image")
|
|
246
246
|
])) : N("", !0),
|
|
247
|
-
o.$slots.title ? (
|
|
247
|
+
o.$slots.title ? (i(), v("div", {
|
|
248
248
|
key: 1,
|
|
249
|
-
class:
|
|
249
|
+
class: I(["cl-border-grey-2 cl-font-normal", {
|
|
250
250
|
"cl-p-2 cl-text-2xl cl-leading-8": o.size === "small",
|
|
251
251
|
"cl-p-4 cl-text-3xl cl-leading-9": o.size === "medium",
|
|
252
252
|
"cl-p-6 cl-text-4xl cl-leading-10": o.size === "large",
|
|
@@ -256,7 +256,7 @@ const Se = /* @__PURE__ */ de(Tl, [["render", Ol], ["__scopeId", "data-v-a21dc5d
|
|
|
256
256
|
j(o.$slots, "title")
|
|
257
257
|
], 2)) : N("", !0),
|
|
258
258
|
p("div", {
|
|
259
|
-
class:
|
|
259
|
+
class: I(["cl-border-grey-2", {
|
|
260
260
|
"cl-p-2": o.size === "small",
|
|
261
261
|
"cl-p-4": o.size === "medium",
|
|
262
262
|
"cl-p-6": o.size === "large",
|
|
@@ -265,9 +265,9 @@ const Se = /* @__PURE__ */ de(Tl, [["render", Ol], ["__scopeId", "data-v-a21dc5d
|
|
|
265
265
|
}, [
|
|
266
266
|
j(o.$slots, "default")
|
|
267
267
|
], 2),
|
|
268
|
-
o.$slots.footer ? (
|
|
268
|
+
o.$slots.footer ? (i(), v("div", {
|
|
269
269
|
key: 2,
|
|
270
|
-
class:
|
|
270
|
+
class: I(["cl-border-grey-2 cl-border-t", {
|
|
271
271
|
"cl-p-2": o.size === "small",
|
|
272
272
|
"cl-p-4": o.size === "medium",
|
|
273
273
|
"cl-p-6": o.size === "large"
|
|
@@ -282,8 +282,8 @@ const Se = /* @__PURE__ */ de(Tl, [["render", Ol], ["__scopeId", "data-v-a21dc5d
|
|
|
282
282
|
"medium",
|
|
283
283
|
"large"
|
|
284
284
|
];
|
|
285
|
-
var Y = /* @__PURE__ */ ((t) => (t.CURRENCY = "currency", t.PERCENTAGE = "percentage", t.INTEGER = "integer", t.DECIMAL = "decimal", t.MULTIPLIER = "multiplier", t))(Y || {}),
|
|
286
|
-
const
|
|
285
|
+
var Y = /* @__PURE__ */ ((t) => (t.CURRENCY = "currency", t.PERCENTAGE = "percentage", t.INTEGER = "integer", t.DECIMAL = "decimal", t.MULTIPLIER = "multiplier", t))(Y || {}), G = /* @__PURE__ */ ((t) => (t.SHORT_DATE = "short-date", t.SHORT_DATETIME = "short-datetime", t.DATE = "date", t.DATETIME = "datetime", t.LONG_DATE = "long-date", t.LONG_DATETIME = "long-datetime", t.TIME = "time", t.MONTH_YEAR = "month-year", t))(G || {});
|
|
286
|
+
const Rl = {
|
|
287
287
|
"en-GB": {
|
|
288
288
|
comboBox: {
|
|
289
289
|
emptyHintText: "Choose a {object}",
|
|
@@ -364,7 +364,7 @@ const Il = {
|
|
|
364
364
|
timePlaceholder: "Select time"
|
|
365
365
|
}
|
|
366
366
|
}
|
|
367
|
-
},
|
|
367
|
+
}, zl = {
|
|
368
368
|
"en-GB": {
|
|
369
369
|
[Y.PERCENTAGE]: {
|
|
370
370
|
style: "percent"
|
|
@@ -381,49 +381,49 @@ const Il = {
|
|
|
381
381
|
currencyDisplay: "symbol"
|
|
382
382
|
}
|
|
383
383
|
}
|
|
384
|
-
},
|
|
384
|
+
}, Ul = {
|
|
385
385
|
"en-GB": {
|
|
386
|
-
[
|
|
386
|
+
[G.SHORT_DATE]: {
|
|
387
387
|
day: "numeric",
|
|
388
388
|
month: "numeric",
|
|
389
389
|
year: "2-digit"
|
|
390
390
|
},
|
|
391
|
-
[
|
|
391
|
+
[G.SHORT_DATETIME]: {
|
|
392
392
|
day: "numeric",
|
|
393
393
|
month: "numeric",
|
|
394
394
|
year: "2-digit",
|
|
395
395
|
hour: "numeric",
|
|
396
396
|
minute: "numeric"
|
|
397
397
|
},
|
|
398
|
-
[
|
|
398
|
+
[G.DATE]: {
|
|
399
399
|
day: "numeric",
|
|
400
400
|
month: "numeric",
|
|
401
401
|
year: "numeric"
|
|
402
402
|
},
|
|
403
|
-
[
|
|
403
|
+
[G.DATETIME]: {
|
|
404
404
|
day: "numeric",
|
|
405
405
|
month: "numeric",
|
|
406
406
|
year: "numeric",
|
|
407
407
|
hour: "numeric",
|
|
408
408
|
minute: "numeric"
|
|
409
409
|
},
|
|
410
|
-
[
|
|
410
|
+
[G.LONG_DATE]: {
|
|
411
411
|
day: "numeric",
|
|
412
412
|
month: "long",
|
|
413
413
|
year: "numeric"
|
|
414
414
|
},
|
|
415
|
-
[
|
|
415
|
+
[G.LONG_DATETIME]: {
|
|
416
416
|
day: "numeric",
|
|
417
417
|
month: "long",
|
|
418
418
|
year: "numeric",
|
|
419
419
|
hour: "numeric",
|
|
420
420
|
minute: "numeric"
|
|
421
421
|
},
|
|
422
|
-
[
|
|
422
|
+
[G.TIME]: {
|
|
423
423
|
hour: "numeric",
|
|
424
424
|
minute: "numeric"
|
|
425
425
|
},
|
|
426
|
-
[
|
|
426
|
+
[G.MONTH_YEAR]: {
|
|
427
427
|
month: "long",
|
|
428
428
|
year: "numeric"
|
|
429
429
|
}
|
|
@@ -431,31 +431,31 @@ const Il = {
|
|
|
431
431
|
}, X = il({
|
|
432
432
|
locale: "en-GB",
|
|
433
433
|
fallbackLocale: "en-GB",
|
|
434
|
-
messages:
|
|
435
|
-
numberFormats:
|
|
436
|
-
datetimeFormats:
|
|
434
|
+
messages: Rl,
|
|
435
|
+
numberFormats: zl,
|
|
436
|
+
datetimeFormats: Ul,
|
|
437
437
|
useScope: "global",
|
|
438
438
|
missingWarn: !1,
|
|
439
439
|
fallbackWarn: !1,
|
|
440
440
|
warnHtmlMessage: !1
|
|
441
441
|
});
|
|
442
|
-
function
|
|
442
|
+
function Us(t, o) {
|
|
443
443
|
return X.global.mergeLocaleMessage(t, o), ge();
|
|
444
444
|
}
|
|
445
|
-
function
|
|
445
|
+
function Bs(t, o) {
|
|
446
446
|
return X.global.mergeNumberFormat(t, o), ge();
|
|
447
447
|
}
|
|
448
|
-
function
|
|
448
|
+
function Ms(t, o) {
|
|
449
449
|
return X.global.mergeDateTimeFormat(t, o), ge();
|
|
450
450
|
}
|
|
451
|
-
function
|
|
451
|
+
function Vs(t) {
|
|
452
452
|
return X.global.locale.value = t, ge();
|
|
453
453
|
}
|
|
454
|
-
const { t:
|
|
455
|
-
function
|
|
456
|
-
const
|
|
454
|
+
const { t: ie } = X.global;
|
|
455
|
+
function Bl(t, o, e, l) {
|
|
456
|
+
const s = X.global.locale.value;
|
|
457
457
|
return new Promise((m) => {
|
|
458
|
-
let
|
|
458
|
+
let n = {
|
|
459
459
|
valid: !1,
|
|
460
460
|
message: ""
|
|
461
461
|
};
|
|
@@ -468,30 +468,30 @@ function Ul(t, o, l, e) {
|
|
|
468
468
|
case "tel":
|
|
469
469
|
case "text":
|
|
470
470
|
case "url":
|
|
471
|
-
a = ((
|
|
471
|
+
a = ((l == null ? void 0 : l.length) ?? 0) >= (Number(t) || 0), n = ue(a, ie("input.greaterOrEqualToCharacters", { label: e, min: t.toString() }));
|
|
472
472
|
break;
|
|
473
473
|
case "number":
|
|
474
474
|
case "range":
|
|
475
|
-
a =
|
|
475
|
+
a = l >= (Number(t) || 0), n = ue(a, ie("input.greaterOrEqualToValue", { label: e, min: t.toString() }));
|
|
476
476
|
break;
|
|
477
477
|
case "date":
|
|
478
|
-
a = new Date(
|
|
478
|
+
a = new Date(l).getTime() >= new Date(t).getTime(), n = ue(a, ie("input.afterOrEqualToValue", { label: e, min: X.global.d(new Date(t), G.DATE, s ?? X.global.locale.value) }));
|
|
479
479
|
break;
|
|
480
480
|
case "datetime":
|
|
481
|
-
a = new Date(
|
|
481
|
+
a = new Date(l).getTime() >= new Date(t).getTime(), n = ue(a, ie("input.afterOrEqualToValue", { label: e, min: X.global.d(new Date(t), G.DATETIME, s ?? X.global.locale.value) }));
|
|
482
482
|
break;
|
|
483
483
|
default:
|
|
484
|
-
|
|
484
|
+
n.valid = !0;
|
|
485
485
|
break;
|
|
486
486
|
}
|
|
487
487
|
}
|
|
488
|
-
m(
|
|
488
|
+
m(n);
|
|
489
489
|
});
|
|
490
490
|
}
|
|
491
|
-
function
|
|
492
|
-
const
|
|
491
|
+
function Ml(t, o, e, l) {
|
|
492
|
+
const s = X.global.locale.value;
|
|
493
493
|
return new Promise((m) => {
|
|
494
|
-
let
|
|
494
|
+
let n = {
|
|
495
495
|
valid: !1,
|
|
496
496
|
message: ""
|
|
497
497
|
};
|
|
@@ -504,36 +504,36 @@ function Bl(t, o, l, e) {
|
|
|
504
504
|
case "tel":
|
|
505
505
|
case "text":
|
|
506
506
|
case "url":
|
|
507
|
-
a = ((
|
|
507
|
+
a = ((l == null ? void 0 : l.length) ?? 0) <= (Number(t) || 0), n = ue(a, ie("input.lessOrEqualToCharacters", { label: e, max: t.toString() }));
|
|
508
508
|
break;
|
|
509
509
|
case "number":
|
|
510
510
|
case "range":
|
|
511
|
-
a =
|
|
511
|
+
a = l <= (Number(t) || 0), n = ue(a, ie("input.lessOrEqualToValue", { label: e, max: t.toString() }));
|
|
512
512
|
break;
|
|
513
513
|
case "date":
|
|
514
|
-
a = new Date(
|
|
514
|
+
a = new Date(l).getTime() <= new Date(t).getTime(), n = ue(a, ie("input.beforeOrEqualToValue", { label: e, max: X.global.d(new Date(t), G.DATE, s ?? X.global.locale.value) }));
|
|
515
515
|
break;
|
|
516
516
|
case "datetime":
|
|
517
|
-
a = new Date(
|
|
517
|
+
a = new Date(l).getTime() <= new Date(t).getTime(), n = ue(a, ie("input.beforeOrEqualToValue", { label: e, min: X.global.d(new Date(t), G.DATETIME, s ?? X.global.locale.value) }));
|
|
518
518
|
break;
|
|
519
519
|
default:
|
|
520
|
-
|
|
520
|
+
n.valid = !0;
|
|
521
521
|
break;
|
|
522
522
|
}
|
|
523
523
|
}
|
|
524
|
-
m(
|
|
524
|
+
m(n);
|
|
525
525
|
});
|
|
526
526
|
}
|
|
527
|
-
function
|
|
528
|
-
return new Promise((
|
|
529
|
-
const
|
|
530
|
-
|
|
527
|
+
function Vl(t, o) {
|
|
528
|
+
return new Promise((e) => {
|
|
529
|
+
const l = o != null && o !== "" && o.toString().trim() !== "", s = ue(l, ie("input.valueIsRequired", { label: t }));
|
|
530
|
+
e(s);
|
|
531
531
|
});
|
|
532
532
|
}
|
|
533
|
-
function
|
|
534
|
-
return new Promise((
|
|
535
|
-
const
|
|
536
|
-
|
|
533
|
+
function Dl(t, o) {
|
|
534
|
+
return new Promise((e) => {
|
|
535
|
+
const s = o === "" || /[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?\.)+[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?/.exec(o) !== null, m = ue(s, ie("input.valueNotValidEmail", { label: t }));
|
|
536
|
+
e(m);
|
|
537
537
|
});
|
|
538
538
|
}
|
|
539
539
|
function ue(t, o) {
|
|
@@ -542,10 +542,10 @@ function ue(t, o) {
|
|
|
542
542
|
message: t ? "" : o
|
|
543
543
|
};
|
|
544
544
|
}
|
|
545
|
-
const
|
|
545
|
+
const Ll = { class: "cl-relative" }, Pl = ["value", "disabled", "placeholder"], Fl = {
|
|
546
546
|
key: 0,
|
|
547
547
|
class: "action-icon cl-absolute cl-bg-transparent cl-flex cl-right-2 cl-text-grey-4 cl-top-3.5"
|
|
548
|
-
},
|
|
548
|
+
}, Hl = /* @__PURE__ */ M({
|
|
549
549
|
__name: "cl-ui-calendar-input",
|
|
550
550
|
props: {
|
|
551
551
|
date: {},
|
|
@@ -557,48 +557,48 @@ const Dl = { class: "cl-relative" }, Ll = ["value", "disabled", "placeholder"],
|
|
|
557
557
|
},
|
|
558
558
|
emits: ["clear", "reset"],
|
|
559
559
|
setup(t, { expose: o }) {
|
|
560
|
-
const
|
|
560
|
+
const e = A(null);
|
|
561
561
|
return o({
|
|
562
562
|
focus() {
|
|
563
|
-
var
|
|
564
|
-
(
|
|
563
|
+
var l;
|
|
564
|
+
(l = e.value) == null || l.focus();
|
|
565
565
|
}
|
|
566
|
-
}), (
|
|
566
|
+
}), (l, s) => (i(), v("div", Ll, [
|
|
567
567
|
p("input", se({
|
|
568
568
|
ref_key: "element",
|
|
569
|
-
ref:
|
|
570
|
-
},
|
|
571
|
-
value:
|
|
569
|
+
ref: e
|
|
570
|
+
}, l.$attrs, {
|
|
571
|
+
value: l.date,
|
|
572
572
|
type: "text",
|
|
573
|
-
disabled:
|
|
574
|
-
placeholder:
|
|
575
|
-
},
|
|
576
|
-
L(k(d(
|
|
577
|
-
class:
|
|
578
|
-
"!cl-bg-off-white":
|
|
573
|
+
disabled: l.disabled,
|
|
574
|
+
placeholder: l.placeholder
|
|
575
|
+
}, tl(l.events, !0)), null, 16, Pl),
|
|
576
|
+
L(k(d(_), {
|
|
577
|
+
class: I(["cl-absolute cl-bg-transparent cl-left-2 cl-text-grey-4 cl-top-3.5 icon", {
|
|
578
|
+
"!cl-bg-off-white": l.disabled
|
|
579
579
|
}]),
|
|
580
|
-
icon:
|
|
580
|
+
icon: l.type === "time" ? "ph-clock" : "ph:calendar"
|
|
581
581
|
}, null, 8, ["class", "icon"]), [
|
|
582
|
-
[H, !
|
|
582
|
+
[H, !l.disabled]
|
|
583
583
|
]),
|
|
584
|
-
|
|
585
|
-
|
|
584
|
+
l.disabled ? N("", !0) : (i(), v("div", Fl, [
|
|
585
|
+
l.type !== "time" ? (i(), V(d(_), {
|
|
586
586
|
key: 0,
|
|
587
587
|
class: "cl-cursor-pointer hover:cl-text-link-light",
|
|
588
588
|
icon: "ph:arrow-counter-clockwise",
|
|
589
|
-
onClick:
|
|
589
|
+
onClick: s[0] || (s[0] = W((m) => l.$emit("reset"), ["prevent"]))
|
|
590
590
|
})) : N("", !0),
|
|
591
|
-
!
|
|
591
|
+
!l.required && l.date && (l.type !== "time" || l.date !== "00:00") ? (i(), V(d(_), {
|
|
592
592
|
key: 1,
|
|
593
593
|
class: "cl-cursor-pointer hover:cl-text-link-light md:cl-ml-0.5",
|
|
594
594
|
icon: "ph:x",
|
|
595
|
-
onClick:
|
|
595
|
+
onClick: s[1] || (s[1] = W((m) => l.$emit("clear"), ["prevent"]))
|
|
596
596
|
})) : N("", !0)
|
|
597
597
|
]))
|
|
598
598
|
]));
|
|
599
599
|
}
|
|
600
600
|
});
|
|
601
|
-
const De = /* @__PURE__ */ de(
|
|
601
|
+
const De = /* @__PURE__ */ de(Hl, [["__scopeId", "data-v-4c802181"]]), xl = /* @__PURE__ */ M({
|
|
602
602
|
inheritAttrs: !1,
|
|
603
603
|
__name: "cl-ui-calendar",
|
|
604
604
|
props: {
|
|
@@ -612,42 +612,42 @@ const De = /* @__PURE__ */ de(Fl, [["__scopeId", "data-v-4c802181"]]), Hl = /* @
|
|
|
612
612
|
placeholder: { default: null }
|
|
613
613
|
},
|
|
614
614
|
emits: ["update:date"],
|
|
615
|
-
setup(t, { expose: o, emit:
|
|
616
|
-
const
|
|
615
|
+
setup(t, { expose: o, emit: e }) {
|
|
616
|
+
const l = t, s = S({
|
|
617
617
|
get() {
|
|
618
618
|
let b = null;
|
|
619
|
-
return
|
|
620
|
-
zone:
|
|
619
|
+
return l.type === "time" ? b = l.date === null ? "00:00" : l.date : l.date !== null && (b = $e.fromISO(l.date, {
|
|
620
|
+
zone: l.timeZone
|
|
621
621
|
}).toJSDate()), b;
|
|
622
622
|
},
|
|
623
623
|
set(b) {
|
|
624
624
|
let r = null;
|
|
625
|
-
|
|
626
|
-
zone:
|
|
627
|
-
}).setZone(
|
|
625
|
+
l.type === "time" ? r = b : b !== null && (r = $e.fromJSDate(b, {
|
|
626
|
+
zone: l.timeZone
|
|
627
|
+
}).setZone(l.timeZone).toISO()), e("update:date", r);
|
|
628
628
|
}
|
|
629
|
-
}), { locale: m, t:
|
|
629
|
+
}), { locale: m, t: n } = oe(), a = S(() => {
|
|
630
630
|
let b;
|
|
631
|
-
switch (
|
|
631
|
+
switch (l.type) {
|
|
632
632
|
case "date":
|
|
633
|
-
b =
|
|
633
|
+
b = n("calendar.datePlaceholder");
|
|
634
634
|
break;
|
|
635
635
|
case "datetime":
|
|
636
|
-
b =
|
|
636
|
+
b = n("calendar.dateTimePlaceholder");
|
|
637
637
|
break;
|
|
638
638
|
case "time":
|
|
639
|
-
b =
|
|
639
|
+
b = n("calendar.timePlaceholder");
|
|
640
640
|
break;
|
|
641
641
|
}
|
|
642
|
-
return
|
|
643
|
-
}),
|
|
642
|
+
return l.placeholder ?? b;
|
|
643
|
+
}), c = S(() => l.disabled ? !1 : {
|
|
644
644
|
visibility: "focus",
|
|
645
645
|
showDelay: 150,
|
|
646
646
|
hideDelay: 100
|
|
647
647
|
});
|
|
648
|
-
function
|
|
649
|
-
let b = $e.now().set({ second: 0, millisecond: 0 }).setZone(
|
|
650
|
-
|
|
648
|
+
function u() {
|
|
649
|
+
let b = $e.now().set({ second: 0, millisecond: 0 }).setZone(l.timeZone);
|
|
650
|
+
l.type === "date" && (b = b.set({ hour: 0, minute: 0 }).setZone(l.timeZone)), s.value = b.toJSDate();
|
|
651
651
|
}
|
|
652
652
|
const g = A(null);
|
|
653
653
|
return o({
|
|
@@ -655,10 +655,10 @@ const De = /* @__PURE__ */ de(Fl, [["__scopeId", "data-v-4c802181"]]), Hl = /* @
|
|
|
655
655
|
var b;
|
|
656
656
|
(b = g.value) == null || b.focus();
|
|
657
657
|
}
|
|
658
|
-
}), (b, r) => b.type === "time" ? (
|
|
658
|
+
}), (b, r) => b.type === "time" ? (i(), V(d(Me), {
|
|
659
659
|
key: 0,
|
|
660
|
-
modelValue:
|
|
661
|
-
"onUpdate:modelValue": r[1] || (r[1] = (w) =>
|
|
660
|
+
modelValue: s.value,
|
|
661
|
+
"onUpdate:modelValue": r[1] || (r[1] = (w) => s.value = w),
|
|
662
662
|
modelModifiers: { string: !0 },
|
|
663
663
|
locale: d(m),
|
|
664
664
|
is24hr: d(m) !== "en-US",
|
|
@@ -668,7 +668,7 @@ const De = /* @__PURE__ */ de(Fl, [["__scopeId", "data-v-4c802181"]]), Hl = /* @
|
|
|
668
668
|
color: "primary",
|
|
669
669
|
"title-position": "left",
|
|
670
670
|
"hide-time-header": "",
|
|
671
|
-
popover:
|
|
671
|
+
popover: c.value
|
|
672
672
|
}, {
|
|
673
673
|
default: P(({ inputValue: w, inputEvents: h }) => [
|
|
674
674
|
k(De, se(b.$attrs, {
|
|
@@ -680,15 +680,15 @@ const De = /* @__PURE__ */ de(Fl, [["__scopeId", "data-v-4c802181"]]), Hl = /* @
|
|
|
680
680
|
placeholder: a.value,
|
|
681
681
|
required: b.required,
|
|
682
682
|
disabled: b.disabled,
|
|
683
|
-
onClear: r[0] || (r[0] = (q) =>
|
|
684
|
-
onReset:
|
|
683
|
+
onClear: r[0] || (r[0] = (q) => s.value = null),
|
|
684
|
+
onReset: u
|
|
685
685
|
}), null, 16, ["date", "events", "type", "placeholder", "required", "disabled"])
|
|
686
686
|
]),
|
|
687
687
|
_: 1
|
|
688
|
-
}, 8, ["modelValue", "locale", "is24hr", "mode", "is-required", "masks", "popover"])) : (
|
|
688
|
+
}, 8, ["modelValue", "locale", "is24hr", "mode", "is-required", "masks", "popover"])) : (i(), V(d(Me), {
|
|
689
689
|
key: 1,
|
|
690
|
-
modelValue:
|
|
691
|
-
"onUpdate:modelValue": r[3] || (r[3] = (w) =>
|
|
690
|
+
modelValue: s.value,
|
|
691
|
+
"onUpdate:modelValue": r[3] || (r[3] = (w) => s.value = w),
|
|
692
692
|
locale: d(m),
|
|
693
693
|
is24hr: d(m) !== "en-US",
|
|
694
694
|
timezone: b.timeZone,
|
|
@@ -699,7 +699,7 @@ const De = /* @__PURE__ */ de(Fl, [["__scopeId", "data-v-4c802181"]]), Hl = /* @
|
|
|
699
699
|
color: "primary",
|
|
700
700
|
"title-position": "left",
|
|
701
701
|
"hide-time-header": "",
|
|
702
|
-
popover:
|
|
702
|
+
popover: c.value
|
|
703
703
|
}, {
|
|
704
704
|
default: P(({ inputValue: w, inputEvents: h }) => [
|
|
705
705
|
k(De, se(b.$attrs, {
|
|
@@ -711,8 +711,8 @@ const De = /* @__PURE__ */ de(Fl, [["__scopeId", "data-v-4c802181"]]), Hl = /* @
|
|
|
711
711
|
placeholder: a.value,
|
|
712
712
|
required: b.required,
|
|
713
713
|
disabled: b.disabled,
|
|
714
|
-
onClear: r[2] || (r[2] = (q) =>
|
|
715
|
-
onReset:
|
|
714
|
+
onClear: r[2] || (r[2] = (q) => s.value = null),
|
|
715
|
+
onReset: u
|
|
716
716
|
}), null, 16, ["date", "events", "type", "placeholder", "required", "disabled"])
|
|
717
717
|
]),
|
|
718
718
|
_: 1
|
|
@@ -736,10 +736,10 @@ function Gl(t) {
|
|
|
736
736
|
from: "@iconify/vue"
|
|
737
737
|
};
|
|
738
738
|
}
|
|
739
|
-
function
|
|
739
|
+
function Ds() {
|
|
740
740
|
return Gl;
|
|
741
741
|
}
|
|
742
|
-
const
|
|
742
|
+
const Zl = [
|
|
743
743
|
"button",
|
|
744
744
|
"checkbox",
|
|
745
745
|
"color",
|
|
@@ -756,13 +756,13 @@ const xl = [
|
|
|
756
756
|
"text",
|
|
757
757
|
"url",
|
|
758
758
|
...Ee
|
|
759
|
-
],
|
|
759
|
+
], Wl = { class: "cl-flex cl-flex-wrap cl-items-center" }, Kl = { class: "cl-flex cl-flex-1 cl-flex-wrap cl-items-center cl-mb-2 cl-mt-3 cl-relative md:cl-mt-0" }, Ql = { class: "cl-absolute cl-bg-grey-0 cl-leading-6 cl-ml-0 cl-px-3 cl-rounded-full cl-text-center cl-text-xs cl-top-full" }, Jl = {
|
|
760
760
|
key: 0,
|
|
761
761
|
class: "cl-w-full"
|
|
762
|
-
},
|
|
762
|
+
}, Yl = ["min", "max", "step", "disabled"], Xl = { class: "cl-absolute cl-bg-grey-0 cl-leading-6 cl-ml-2 cl-px-3 cl-right-0 cl-rounded-full cl-text-center cl-text-xs cl-top-full" }, et = {
|
|
763
763
|
key: 1,
|
|
764
764
|
class: "emphasis-danger text-sm w-full"
|
|
765
|
-
},
|
|
765
|
+
}, lt = /* @__PURE__ */ M({
|
|
766
766
|
__name: "cl-ui-slider",
|
|
767
767
|
props: {
|
|
768
768
|
value: {},
|
|
@@ -776,28 +776,28 @@ const xl = [
|
|
|
776
776
|
emits: {
|
|
777
777
|
"update:value": null
|
|
778
778
|
},
|
|
779
|
-
setup(t, { expose: o, emit:
|
|
780
|
-
const
|
|
781
|
-
get: () =>
|
|
782
|
-
set: (h) =>
|
|
783
|
-
}), g = S(() =>
|
|
784
|
-
let h = (
|
|
779
|
+
setup(t, { expose: o, emit: e }) {
|
|
780
|
+
const l = t, { n: s, t: m } = oe(), { debounce: n } = ul(), a = A(l.value), c = A(), u = S({
|
|
781
|
+
get: () => l.value,
|
|
782
|
+
set: (h) => e("update:value", h)
|
|
783
|
+
}), g = S(() => l.disabled ? "rgba(153, 153, 153, 0.8)" : "#9acd32"), b = S(() => {
|
|
784
|
+
let h = (u.value - l.min) / (l.max - l.min) * 100;
|
|
785
785
|
return h < 35 && h > 0 ? h < 20 ? h += 0.5 : h += 0.25 : h > 65 && h < 100 && (h > 80 ? h -= 0.5 : h -= 0.25), h;
|
|
786
|
-
}), r = S(() =>
|
|
786
|
+
}), r = S(() => l.min <= l.max && l.step > 0);
|
|
787
787
|
function w(h, q) {
|
|
788
|
-
const $ = (h == null ? void 0 : h.value) ?? "", R = Math.max(Math.min(parseFloat($) ||
|
|
789
|
-
|
|
788
|
+
const $ = (h == null ? void 0 : h.value) ?? "", R = Math.max(Math.min(parseFloat($) || l.min, l.max), l.min);
|
|
789
|
+
u.value = l.enforceStep ? Math.ceil(R / l.step) * l.step : R, ge(() => q());
|
|
790
790
|
}
|
|
791
|
-
return K(() =>
|
|
791
|
+
return K(() => l.value, () => a.value = l.value), o({
|
|
792
792
|
focus() {
|
|
793
793
|
var h;
|
|
794
|
-
(h =
|
|
794
|
+
(h = c.value) == null || h.focus();
|
|
795
795
|
}
|
|
796
|
-
}), (h, q) => r.value ? (
|
|
797
|
-
L(p("div", { class: "cl-bg-transparent cl-relative cl-text-center cl-text-sm" }, T(
|
|
796
|
+
}), (h, q) => r.value ? (i(), v("div", le(se({ key: 0 }, h.$attrs)), [
|
|
797
|
+
L(p("div", { class: "cl-bg-transparent cl-relative cl-text-center cl-text-sm" }, T(u.value), 513), [
|
|
798
798
|
[H, !h.showNumericInput]
|
|
799
799
|
]),
|
|
800
|
-
p("div",
|
|
800
|
+
p("div", Wl, [
|
|
801
801
|
L(k(d(ae), {
|
|
802
802
|
modelValue: a.value,
|
|
803
803
|
"onUpdate:modelValue": q[0] || (q[0] = ($) => a.value = $),
|
|
@@ -807,19 +807,19 @@ const xl = [
|
|
|
807
807
|
max: h.max,
|
|
808
808
|
step: h.step,
|
|
809
809
|
disabled: h.disabled,
|
|
810
|
-
onInput: q[1] || (q[1] = ($) => d(
|
|
810
|
+
onInput: q[1] || (q[1] = ($) => d(n)(w, $.target, h.$forceUpdate))
|
|
811
811
|
}, null, 8, ["modelValue", "min", "max", "step", "disabled"]), [
|
|
812
812
|
[H, h.showNumericInput]
|
|
813
813
|
]),
|
|
814
|
-
p("div",
|
|
815
|
-
p("span",
|
|
816
|
-
typeof
|
|
814
|
+
p("div", Kl, [
|
|
815
|
+
p("span", Ql, T(d(s)(h.min, Number.isInteger(h.min) ? d(Y).INTEGER : d(Y).DECIMAL)), 1),
|
|
816
|
+
typeof u.value == "number" ? (i(), v("div", Jl, [
|
|
817
817
|
L(p("input", {
|
|
818
818
|
ref_key: "sliderRef",
|
|
819
|
-
ref:
|
|
820
|
-
"onUpdate:modelValue": q[2] || (q[2] = ($) =>
|
|
819
|
+
ref: c,
|
|
820
|
+
"onUpdate:modelValue": q[2] || (q[2] = ($) => u.value = $),
|
|
821
821
|
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",
|
|
822
|
-
style:
|
|
822
|
+
style: We({
|
|
823
823
|
background: `linear-gradient(to right, ${g.value} 0%, ${g.value} ${b.value}%, white ${b.value}%, white 100%)`
|
|
824
824
|
}),
|
|
825
825
|
type: "range",
|
|
@@ -827,22 +827,22 @@ const xl = [
|
|
|
827
827
|
max: h.max,
|
|
828
828
|
step: h.step,
|
|
829
829
|
disabled: h.disabled
|
|
830
|
-
}, null, 12,
|
|
830
|
+
}, null, 12, Yl), [
|
|
831
831
|
[
|
|
832
|
-
|
|
833
|
-
|
|
832
|
+
ol,
|
|
833
|
+
u.value,
|
|
834
834
|
void 0,
|
|
835
835
|
{ number: !0 }
|
|
836
836
|
]
|
|
837
837
|
])
|
|
838
838
|
])) : N("", !0),
|
|
839
|
-
p("span",
|
|
839
|
+
p("span", Xl, T(d(s)(h.max, Number.isInteger(h.max) ? d(Y).INTEGER : d(Y).DECIMAL)), 1)
|
|
840
840
|
])
|
|
841
841
|
])
|
|
842
|
-
], 16)) : (
|
|
842
|
+
], 16)) : (i(), v("div", et, T(d(m)("slider.invalidProps")), 1));
|
|
843
843
|
}
|
|
844
844
|
});
|
|
845
|
-
const
|
|
845
|
+
const tt = /* @__PURE__ */ de(lt, [["__scopeId", "data-v-849763cf"]]);
|
|
846
846
|
function Le(t) {
|
|
847
847
|
let o = !1;
|
|
848
848
|
switch (t) {
|
|
@@ -860,7 +860,7 @@ function Le(t) {
|
|
|
860
860
|
}
|
|
861
861
|
return o;
|
|
862
862
|
}
|
|
863
|
-
function
|
|
863
|
+
function ot(t) {
|
|
864
864
|
return t === "number" || t === "range";
|
|
865
865
|
}
|
|
866
866
|
function Pe(t) {
|
|
@@ -880,7 +880,7 @@ function Pe(t) {
|
|
|
880
880
|
function ye(t) {
|
|
881
881
|
return t === "button" || t === "submit" || t === "reset";
|
|
882
882
|
}
|
|
883
|
-
function
|
|
883
|
+
function nt(t) {
|
|
884
884
|
let o;
|
|
885
885
|
switch (t) {
|
|
886
886
|
case "datetime":
|
|
@@ -897,28 +897,28 @@ function ot(t) {
|
|
|
897
897
|
return o;
|
|
898
898
|
}
|
|
899
899
|
function Fe(t, o) {
|
|
900
|
-
const
|
|
901
|
-
return
|
|
900
|
+
const e = t.target;
|
|
901
|
+
return ot(o) ? e.valueAsNumber : ye(o) ? e.checked : e.value;
|
|
902
902
|
}
|
|
903
|
-
const
|
|
903
|
+
const st = { class: "cl-flex cl-justify-between" }, at = { class: "cl-w-full" }, rt = {
|
|
904
904
|
key: 0,
|
|
905
905
|
class: "cl-block cl-left-auto cl-relative cl-text-danger-default"
|
|
906
|
-
},
|
|
906
|
+
}, ct = {
|
|
907
907
|
key: 1,
|
|
908
908
|
class: "cl-bg-danger-light cl-block cl-max-h-6 cl-mb-1 cl-ml-2 cl-px-2 cl-rounded-md cl-text-center cl-text-danger-default cl-text-xs"
|
|
909
909
|
}, it = {
|
|
910
910
|
key: 0,
|
|
911
911
|
class: "cl-relative"
|
|
912
|
-
},
|
|
912
|
+
}, ut = ["type", "disabled", "min", "max", "minlength", "maxlength", "step", "placeholder", "accept", "name", "autocomplete"], dt = { key: 0 }, pt = {
|
|
913
913
|
key: 2,
|
|
914
914
|
class: "cl-h-[5.78rem] cl-pb-2 md:cl-h-20"
|
|
915
|
-
},
|
|
915
|
+
}, ft = {
|
|
916
916
|
key: 0,
|
|
917
917
|
class: "cl-bg-primary-lighter cl-px-2 cl-rounded-md cl-text-center cl-text-secondary-light cl-text-xs cl-w-auto cl-whitespace-pre-line"
|
|
918
|
-
},
|
|
918
|
+
}, mt = {
|
|
919
919
|
key: 1,
|
|
920
920
|
class: "cl-bg-danger-light cl-px-2 cl-rounded-md cl-text-center cl-text-danger-default cl-text-xs cl-w-auto cl-whitespace-pre-line"
|
|
921
|
-
},
|
|
921
|
+
}, gt = /* @__PURE__ */ M({
|
|
922
922
|
inheritAttrs: !1,
|
|
923
923
|
__name: "cl-ui-input",
|
|
924
924
|
props: {
|
|
@@ -949,76 +949,76 @@ const nt = { class: "cl-flex cl-justify-between" }, st = { class: "cl-w-full" },
|
|
|
949
949
|
showValidationMessages: { type: Boolean, default: !0 }
|
|
950
950
|
},
|
|
951
951
|
emits: ["update:model-value", "click", "focus", "input", "change", "validated"],
|
|
952
|
-
setup(t, { expose: o, emit:
|
|
953
|
-
const
|
|
954
|
-
get: () =>
|
|
952
|
+
setup(t, { expose: o, emit: e }) {
|
|
953
|
+
const l = t, s = A(null), m = A(!1), n = A(!1), a = S(C), c = S(() => l.placeholderText.trim() !== "" ? l.placeholderText : l.label), u = A(0), g = S({
|
|
954
|
+
get: () => l.modelValue,
|
|
955
955
|
set: (f) => y(f, !1)
|
|
956
956
|
}), b = S({
|
|
957
|
-
get: () =>
|
|
957
|
+
get: () => l.modelValue,
|
|
958
958
|
set: (f) => U(f)
|
|
959
|
-
}), r = S(() => typeof
|
|
959
|
+
}), r = S(() => typeof l.min == "number" ? l.min.toString() : l.min), w = S(() => typeof l.max == "number" ? l.max.toString() : l.max), h = S(() => typeof l.min == "number" || l.min === null ? l.min : parseFloat(l.min)), q = S(() => typeof l.max == "number" || l.max === null ? l.max : parseFloat(l.max)), $ = S(() => l.messageWhenValid.trim() !== "" ? l.messageWhenValid : ""), R = A(!0), O = A([]), z = S(() => {
|
|
960
960
|
var f, E;
|
|
961
961
|
return [
|
|
962
962
|
...((f = O.value) == null ? void 0 : f.filter((B) => ((B == null ? void 0 : B.length) ?? 0) > 0)) ?? [],
|
|
963
|
-
...((E =
|
|
963
|
+
...((E = l.externalErrors) == null ? void 0 : E.filter((B) => ((B == null ? void 0 : B.length) ?? 0) > 0)) ?? []
|
|
964
964
|
].join(`
|
|
965
965
|
`);
|
|
966
966
|
});
|
|
967
967
|
async function U(f) {
|
|
968
|
-
|
|
968
|
+
l.validateOn === "input" && await D(f), e("update:model-value", f);
|
|
969
969
|
}
|
|
970
970
|
async function y(f, E) {
|
|
971
|
-
|
|
971
|
+
l.onInputFunction !== void 0 && (f = l.onInputFunction(f)), (E || l.validateOn === "input") && await D(f), e("update:model-value", f);
|
|
972
972
|
}
|
|
973
973
|
function D(f) {
|
|
974
974
|
const E = {
|
|
975
975
|
message: "",
|
|
976
976
|
valid: !0
|
|
977
977
|
}, B = [
|
|
978
|
-
|
|
978
|
+
l.customValidationFunction === null || l.customValidationFunction === void 0 ? new Promise((pe) => {
|
|
979
979
|
pe(E);
|
|
980
980
|
}) : new Promise((pe) => {
|
|
981
|
-
pe(
|
|
981
|
+
pe(l.customValidationFunction(l.label, f));
|
|
982
982
|
})
|
|
983
983
|
];
|
|
984
|
-
return (typeof f == "string" || typeof f == "number") && (B.push(
|
|
985
|
-
const
|
|
986
|
-
Be ? (O.value =
|
|
984
|
+
return (typeof f == "string" || typeof f == "number") && (B.push(Bl(l.min, l.inputType, l.label, f)), B.push(Ml(l.max, l.inputType, l.label, f))), l.isRequired && B.push(Vl(l.label, f)), l.inputType === "email" && typeof f == "string" && B.push(Dl(l.label, f)), Promise.all(B).then((pe) => {
|
|
985
|
+
const ll = [...pe.map((Ce) => Ce.message)], Be = pe.some((Ce) => Ce.message.length > 0 && Ce.valid === !1) || l.externalErrors.length > 0;
|
|
986
|
+
Be ? (O.value = ll, e("validated", !1, f)) : (O.value = [], e("validated", !0, f)), R.value = !Be;
|
|
987
987
|
});
|
|
988
988
|
}
|
|
989
989
|
function J() {
|
|
990
990
|
let f = "";
|
|
991
|
-
return
|
|
991
|
+
return l.inputType === "color" && g.value && (l.disabled ? f = "background: #999999" : f = `background: ${g.value};`), f;
|
|
992
992
|
}
|
|
993
993
|
function Z(f) {
|
|
994
|
-
ye(
|
|
994
|
+
ye(l.inputType) ? (f.preventDefault(), e("click", f)) : l.inputType === "checkbox" && e("click", f);
|
|
995
995
|
}
|
|
996
|
-
function
|
|
997
|
-
if (
|
|
998
|
-
|
|
996
|
+
function ce(f) {
|
|
997
|
+
if (s.value) {
|
|
998
|
+
s.value.stepUp(), s.value.focus(), y(s.value.valueAsNumber, !1);
|
|
999
999
|
const E = {
|
|
1000
|
-
target:
|
|
1000
|
+
target: s.value
|
|
1001
1001
|
};
|
|
1002
|
-
|
|
1002
|
+
e("input", E, s.value.valueAsNumber), e("change", f, s.value.valueAsNumber);
|
|
1003
1003
|
}
|
|
1004
1004
|
}
|
|
1005
1005
|
function Ne(f) {
|
|
1006
|
-
if (
|
|
1007
|
-
|
|
1006
|
+
if (s.value) {
|
|
1007
|
+
s.value.stepDown(), s.value.focus(), y(s.value.valueAsNumber, !1);
|
|
1008
1008
|
const E = {
|
|
1009
|
-
target:
|
|
1009
|
+
target: s.value
|
|
1010
1010
|
};
|
|
1011
|
-
|
|
1011
|
+
e("input", E, s.value.valueAsNumber), e("change", f, s.value.valueAsNumber);
|
|
1012
1012
|
}
|
|
1013
1013
|
}
|
|
1014
1014
|
function ve(f) {
|
|
1015
1015
|
m.value = f;
|
|
1016
1016
|
}
|
|
1017
1017
|
function be() {
|
|
1018
|
-
|
|
1018
|
+
n.value = !0, ve(!1);
|
|
1019
1019
|
}
|
|
1020
1020
|
function ke() {
|
|
1021
|
-
|
|
1021
|
+
u.value++;
|
|
1022
1022
|
}
|
|
1023
1023
|
function he(f) {
|
|
1024
1024
|
f.target.blur();
|
|
@@ -1027,46 +1027,46 @@ const nt = { class: "cl-flex cl-justify-between" }, st = { class: "cl-w-full" },
|
|
|
1027
1027
|
var B;
|
|
1028
1028
|
let f = !0;
|
|
1029
1029
|
const E = a.value;
|
|
1030
|
-
return m.value ? f = E :
|
|
1030
|
+
return m.value ? f = E : n.value && ((B = g.value) == null ? void 0 : B.toString().trim()) === "" && (f = !1), f;
|
|
1031
1031
|
}
|
|
1032
|
-
async function
|
|
1033
|
-
const E = Fe(f,
|
|
1034
|
-
|
|
1032
|
+
async function x(f) {
|
|
1033
|
+
const E = Fe(f, l.inputType);
|
|
1034
|
+
l.validateOn === "change" && await D(E), e("change", f, E);
|
|
1035
1035
|
}
|
|
1036
1036
|
return Ae(() => {
|
|
1037
|
-
|
|
1038
|
-
}), K(() =>
|
|
1039
|
-
await D(g.value),
|
|
1040
|
-
}), K(() =>
|
|
1037
|
+
l.validateImmediately && y(l.modelValue, !0);
|
|
1038
|
+
}), K(() => l.isRequired, () => y(l.modelValue, !0)), K(() => l.externalErrors, async () => {
|
|
1039
|
+
await D(g.value), e("update:model-value", g.value);
|
|
1040
|
+
}), K(() => l.modelValue, () => y(l.modelValue, !0)), o({
|
|
1041
1041
|
focus() {
|
|
1042
1042
|
var f;
|
|
1043
|
-
(f =
|
|
1043
|
+
(f = s.value) == null || f.focus();
|
|
1044
1044
|
},
|
|
1045
1045
|
blur() {
|
|
1046
1046
|
var f;
|
|
1047
|
-
(f =
|
|
1047
|
+
(f = s.value) == null || f.blur();
|
|
1048
1048
|
}
|
|
1049
|
-
}), (f, E) => (
|
|
1050
|
-
key:
|
|
1049
|
+
}), (f, E) => (i(), v("div", se({ ...f.$attrs, id: void 0 }, {
|
|
1050
|
+
key: u.value,
|
|
1051
1051
|
class: "cl-align-top cl-border-none cl-inline-block cl-text-left"
|
|
1052
1052
|
}), [
|
|
1053
1053
|
p("div", {
|
|
1054
1054
|
onMouseenter: E[11] || (E[11] = (B) => ve(!0)),
|
|
1055
1055
|
onMouseleave: E[12] || (E[12] = (B) => ve(!1))
|
|
1056
1056
|
}, [
|
|
1057
|
-
p("div",
|
|
1058
|
-
p("div",
|
|
1057
|
+
p("div", st, [
|
|
1058
|
+
p("div", at, [
|
|
1059
1059
|
L(p("label", { class: "cl-block cl-mb-1 cl-text-grey-4 cl-text-xs cl-tracking-widest" }, T(f.label), 513), [
|
|
1060
1060
|
[H, f.showLabel && f.label !== ""]
|
|
1061
1061
|
])
|
|
1062
1062
|
]),
|
|
1063
|
-
f.isRequired && a.value ? (
|
|
1064
|
-
f.isRequired && !a.value && f.requiredText.length ? (
|
|
1063
|
+
f.isRequired && a.value ? (i(), v("label", rt, " * ")) : N("", !0),
|
|
1064
|
+
f.isRequired && !a.value && f.requiredText.length ? (i(), v("label", ct, T(f.requiredText), 1)) : N("", !0)
|
|
1065
1065
|
]),
|
|
1066
|
-
f.inputType !== "range" && !d(Pe)(f.inputType) ? (
|
|
1066
|
+
f.inputType !== "range" && !d(Pe)(f.inputType) ? (i(), v("div", it, [
|
|
1067
1067
|
L(p("input", se({
|
|
1068
1068
|
ref_key: "inputElement",
|
|
1069
|
-
ref:
|
|
1069
|
+
ref: s,
|
|
1070
1070
|
"onUpdate:modelValue": E[0] || (E[0] = (B) => g.value = B)
|
|
1071
1071
|
}, f.$attrs, {
|
|
1072
1072
|
class: ["!cl-mb-1 cl-block cl-border cl-duration-300 cl-h-full cl-transition cl-w-full focus:cl-outline-none", {
|
|
@@ -1087,37 +1087,37 @@ const nt = { class: "cl-flex cl-justify-between" }, st = { class: "cl-w-full" },
|
|
|
1087
1087
|
minlength: f.min !== null && d(Le)(f.inputType) ? f.min : void 0,
|
|
1088
1088
|
maxlength: f.max !== null && d(Le)(f.inputType) ? f.max : void 0,
|
|
1089
1089
|
step: f.step,
|
|
1090
|
-
placeholder:
|
|
1090
|
+
placeholder: c.value,
|
|
1091
1091
|
accept: f.fileExtensions,
|
|
1092
1092
|
name: f.group,
|
|
1093
1093
|
autocomplete: f.autocomplete,
|
|
1094
1094
|
onClick: E[1] || (E[1] = (B) => Z(B)),
|
|
1095
|
-
onFocus: E[2] || (E[2] = (B) =>
|
|
1095
|
+
onFocus: E[2] || (E[2] = (B) => e("focus")),
|
|
1096
1096
|
onBlur: E[3] || (E[3] = W((B) => {
|
|
1097
1097
|
be(), ke();
|
|
1098
1098
|
}, ["self"])),
|
|
1099
1099
|
onMousewheelPassive: he,
|
|
1100
1100
|
onInput: E[4] || (E[4] = (B) => {
|
|
1101
|
-
|
|
1101
|
+
e("input", B, d(Fe)(B, f.inputType));
|
|
1102
1102
|
}),
|
|
1103
|
-
onChange:
|
|
1104
|
-
}), null, 16,
|
|
1105
|
-
[
|
|
1103
|
+
onChange: x
|
|
1104
|
+
}), null, 16, ut), [
|
|
1105
|
+
[nl, g.value]
|
|
1106
1106
|
]),
|
|
1107
1107
|
k(me, {
|
|
1108
1108
|
name: "fade",
|
|
1109
1109
|
duration: 300
|
|
1110
1110
|
}, {
|
|
1111
1111
|
default: P(() => [
|
|
1112
|
-
f.inputType === "number" && !f.disabled && f.showArrows ? L((
|
|
1113
|
-
k(d(
|
|
1112
|
+
f.inputType === "number" && !f.disabled && f.showArrows ? L((i(), v("div", dt, [
|
|
1113
|
+
k(d(_), {
|
|
1114
1114
|
icon: "ph:caret-up-bold",
|
|
1115
1115
|
class: "cl-absolute cl-bg-link-default cl-right-1 cl-rounded-full cl-text-sm cl-text-white cl-top-1 hover:cl-bg-link-light hover:cl-cursor-pointer",
|
|
1116
|
-
onClick:
|
|
1116
|
+
onClick: ce,
|
|
1117
1117
|
onMousedown: E[5] || (E[5] = W(() => {
|
|
1118
1118
|
}, ["prevent"]))
|
|
1119
1119
|
}),
|
|
1120
|
-
k(d(
|
|
1120
|
+
k(d(_), {
|
|
1121
1121
|
icon: "ph:caret-down-bold",
|
|
1122
1122
|
class: "cl-absolute cl-bg-link-default cl-bottom-2 cl-right-1 cl-rounded-full cl-text-sm cl-text-white hover:cl-bg-link-light hover:cl-cursor-pointer",
|
|
1123
1123
|
onClick: Ne,
|
|
@@ -1130,9 +1130,9 @@ const nt = { class: "cl-flex cl-justify-between" }, st = { class: "cl-w-full" },
|
|
|
1130
1130
|
]),
|
|
1131
1131
|
_: 1
|
|
1132
1132
|
})
|
|
1133
|
-
])) : d(Pe)(f.inputType) ? (
|
|
1133
|
+
])) : d(Pe)(f.inputType) ? (i(), V(d(xl), se({ key: 1 }, f.$attrs, {
|
|
1134
1134
|
ref_key: "inputElement",
|
|
1135
|
-
ref:
|
|
1135
|
+
ref: s,
|
|
1136
1136
|
date: b.value,
|
|
1137
1137
|
"onUpdate:date": E[7] || (E[7] = (B) => b.value = B),
|
|
1138
1138
|
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", {
|
|
@@ -1142,17 +1142,17 @@ const nt = { class: "cl-flex cl-justify-between" }, st = { class: "cl-w-full" },
|
|
|
1142
1142
|
}],
|
|
1143
1143
|
disabled: f.disabled,
|
|
1144
1144
|
required: f.isRequired,
|
|
1145
|
-
type: d(
|
|
1145
|
+
type: d(nt)(f.inputType),
|
|
1146
1146
|
"time-zone": f.timeZone,
|
|
1147
1147
|
min: r.value,
|
|
1148
1148
|
max: w.value,
|
|
1149
|
-
placeholder:
|
|
1149
|
+
placeholder: c.value,
|
|
1150
1150
|
onBlur: W(be, ["self"]),
|
|
1151
|
-
onFocus: E[8] || (E[8] = (B) =>
|
|
1152
|
-
}), null, 16, ["date", "class", "disabled", "required", "type", "time-zone", "min", "max", "placeholder", "onBlur"])) : f.inputType === "range" && typeof g.value == "number" ? (
|
|
1153
|
-
k(d(
|
|
1151
|
+
onFocus: E[8] || (E[8] = (B) => e("focus"))
|
|
1152
|
+
}), null, 16, ["date", "class", "disabled", "required", "type", "time-zone", "min", "max", "placeholder", "onBlur"])) : f.inputType === "range" && typeof g.value == "number" ? (i(), v("div", pt, [
|
|
1153
|
+
k(d(tt), {
|
|
1154
1154
|
ref_key: "inputElement",
|
|
1155
|
-
ref:
|
|
1155
|
+
ref: s,
|
|
1156
1156
|
value: g.value,
|
|
1157
1157
|
"onUpdate:value": E[9] || (E[9] = (B) => g.value = B),
|
|
1158
1158
|
min: h.value ?? 0,
|
|
@@ -1161,16 +1161,16 @@ const nt = { class: "cl-flex cl-justify-between" }, st = { class: "cl-w-full" },
|
|
|
1161
1161
|
disabled: f.disabled,
|
|
1162
1162
|
"show-numeric-input": !1,
|
|
1163
1163
|
onBlur: W(be, ["self"]),
|
|
1164
|
-
onFocus: E[10] || (E[10] = (B) =>
|
|
1164
|
+
onFocus: E[10] || (E[10] = (B) => e("focus"))
|
|
1165
1165
|
}, null, 8, ["value", "min", "max", "step", "disabled", "onBlur"])
|
|
1166
1166
|
])) : N("", !0)
|
|
1167
1167
|
], 32),
|
|
1168
|
-
R.value && $.value ? (
|
|
1169
|
-
!R.value && z.value.length > 0 && f.showValidationMessages ? (
|
|
1168
|
+
R.value && $.value ? (i(), v("div", ft, T($.value), 1)) : N("", !0),
|
|
1169
|
+
!R.value && z.value.length > 0 && f.showValidationMessages ? (i(), v("div", mt, T(z.value), 1)) : N("", !0)
|
|
1170
1170
|
], 16));
|
|
1171
1171
|
}
|
|
1172
1172
|
});
|
|
1173
|
-
const ae = /* @__PURE__ */ de(
|
|
1173
|
+
const ae = /* @__PURE__ */ de(gt, [["__scopeId", "data-v-39c68789"]]), vt = { class: "cl-align-items-center cl-bg-black cl-bg-opacity-40 cl-bottom-0 cl-fixed cl-flex cl-h-full cl-justify-center cl-left-0 cl-right-0 cl-top-0 cl-w-full cl-z-40 xl:cl-h-screen" }, bt = ["onKeypress"], ht = { class: "cl-overflow-y-auto cl-overscroll-y-none cl-p-2 cl-w-full" }, Xe = /* @__PURE__ */ M({
|
|
1174
1174
|
inheritAttrs: !1,
|
|
1175
1175
|
__name: "cl-ui-modal",
|
|
1176
1176
|
props: {
|
|
@@ -1179,59 +1179,59 @@ const ae = /* @__PURE__ */ de(mt, [["__scopeId", "data-v-d01c4a47"]]), gt = { cl
|
|
|
1179
1179
|
size: { default: "medium" }
|
|
1180
1180
|
},
|
|
1181
1181
|
setup(t) {
|
|
1182
|
-
const o = t,
|
|
1183
|
-
function
|
|
1184
|
-
|
|
1182
|
+
const o = t, e = A(!1);
|
|
1183
|
+
function l() {
|
|
1184
|
+
e.value = !0, document.addEventListener("keydown", m);
|
|
1185
1185
|
}
|
|
1186
|
-
function
|
|
1187
|
-
o.preventClose || (
|
|
1186
|
+
function s() {
|
|
1187
|
+
o.preventClose || (e.value = !1, document.removeEventListener("keydown", m));
|
|
1188
1188
|
}
|
|
1189
|
-
function m(
|
|
1190
|
-
|
|
1189
|
+
function m(n) {
|
|
1190
|
+
n.key === "Escape" && s();
|
|
1191
1191
|
}
|
|
1192
|
-
return (
|
|
1193
|
-
j(
|
|
1194
|
-
(
|
|
1192
|
+
return (n, a) => (i(), v(F, null, [
|
|
1193
|
+
j(n.$slots, "trigger", le(ne({ open: l }))),
|
|
1194
|
+
(i(), V(Ie, { to: "body" }, [
|
|
1195
1195
|
k(me, { name: "fade" }, {
|
|
1196
1196
|
default: P(() => [
|
|
1197
|
-
L(p("div",
|
|
1198
|
-
p("div", se(
|
|
1199
|
-
class: ["cl-bg-white cl-flex cl-flex-wrap cl-max-h-[calc(
|
|
1200
|
-
"lg:cl-w-2/12 cl-w-10/12":
|
|
1201
|
-
"cl-w-6/12":
|
|
1202
|
-
"cl-w-8/12":
|
|
1203
|
-
"cl-w-10/12":
|
|
1197
|
+
L(p("div", vt, [
|
|
1198
|
+
p("div", se(n.$attrs, {
|
|
1199
|
+
class: ["cl-bg-white cl-flex cl-flex-wrap cl-max-h-[calc(100%-8rem)] cl-mx-0 cl-my-auto cl-overflow-y-auto cl-overscroll-y-none cl-relative cl-rounded-lg cl-shadow-lg xl:cl-max-h-[calc(100vh-8rem)]", {
|
|
1200
|
+
"lg:cl-w-2/12 cl-w-10/12": n.size === "x-small",
|
|
1201
|
+
"cl-w-6/12": n.size === "small",
|
|
1202
|
+
"cl-w-8/12": n.size === "medium",
|
|
1203
|
+
"cl-w-10/12": n.size === "large"
|
|
1204
1204
|
}]
|
|
1205
1205
|
}), [
|
|
1206
1206
|
L(p("div", {
|
|
1207
|
-
class:
|
|
1208
|
-
"cl-text-white hover:cl-text-off-white":
|
|
1209
|
-
"cl-text-black hover:cl-text-grey-7":
|
|
1207
|
+
class: I(["cl-absolute cl-cursor-pointer cl-right-4 cl-top-4 cl-transition-colors cl-w-3", {
|
|
1208
|
+
"cl-text-white hover:cl-text-off-white": n.headerColour === "secondary" || n.headerColour === "primary",
|
|
1209
|
+
"cl-text-black hover:cl-text-grey-7": n.headerColour === "white"
|
|
1210
1210
|
}]),
|
|
1211
1211
|
tabindex: 0,
|
|
1212
|
-
onKeypress: we(
|
|
1213
|
-
onClick:
|
|
1212
|
+
onKeypress: we(s, ["enter"]),
|
|
1213
|
+
onClick: s
|
|
1214
1214
|
}, [
|
|
1215
|
-
k(d(
|
|
1216
|
-
], 42,
|
|
1217
|
-
[H, !
|
|
1215
|
+
k(d(_), { icon: "ph:x" })
|
|
1216
|
+
], 42, bt), [
|
|
1217
|
+
[H, !n.preventClose]
|
|
1218
1218
|
]),
|
|
1219
1219
|
p("div", {
|
|
1220
|
-
class:
|
|
1221
|
-
"cl-border-b cl-border-grey-2":
|
|
1222
|
-
"cl-bg-secondary-default cl-text-white":
|
|
1223
|
-
"cl-bg-primary-default cl-text-white":
|
|
1220
|
+
class: I(["cl-leading-[2.75rem] cl-min-h-12 cl-overflow-hidden cl-pl-3 cl-pr-8 cl-text-2xl cl-w-full", {
|
|
1221
|
+
"cl-border-b cl-border-grey-2": n.headerColour === "white",
|
|
1222
|
+
"cl-bg-secondary-default cl-text-white": n.headerColour === "secondary",
|
|
1223
|
+
"cl-bg-primary-default cl-text-white": n.headerColour === "primary"
|
|
1224
1224
|
}])
|
|
1225
1225
|
}, [
|
|
1226
|
-
j(
|
|
1226
|
+
j(n.$slots, "title")
|
|
1227
1227
|
], 2),
|
|
1228
|
-
p("div",
|
|
1229
|
-
j(
|
|
1228
|
+
p("div", ht, [
|
|
1229
|
+
j(n.$slots, "default", le(ne({ close: s })))
|
|
1230
1230
|
]),
|
|
1231
|
-
j(
|
|
1231
|
+
j(n.$slots, "footer", le(ne({ close: s })))
|
|
1232
1232
|
], 16)
|
|
1233
1233
|
], 512), [
|
|
1234
|
-
[H,
|
|
1234
|
+
[H, e.value]
|
|
1235
1235
|
])
|
|
1236
1236
|
]),
|
|
1237
1237
|
_: 3
|
|
@@ -1239,7 +1239,7 @@ const ae = /* @__PURE__ */ de(mt, [["__scopeId", "data-v-d01c4a47"]]), gt = { cl
|
|
|
1239
1239
|
]))
|
|
1240
1240
|
], 64));
|
|
1241
1241
|
}
|
|
1242
|
-
}),
|
|
1242
|
+
}), yt = { class: "cl-bg-grey-0 cl-flex cl-p-1 cl-text-left" }, wt = {
|
|
1243
1243
|
key: 0,
|
|
1244
1244
|
class: "cl-w-1/2"
|
|
1245
1245
|
}, Te = /* @__PURE__ */ M({
|
|
@@ -1253,19 +1253,19 @@ const ae = /* @__PURE__ */ de(mt, [["__scopeId", "data-v-d01c4a47"]]), gt = { cl
|
|
|
1253
1253
|
"clear-object": null
|
|
1254
1254
|
},
|
|
1255
1255
|
setup(t) {
|
|
1256
|
-
return (o,
|
|
1257
|
-
o.additionalText !== "" ? (
|
|
1256
|
+
return (o, e) => (i(), v("div", yt, [
|
|
1257
|
+
o.additionalText !== "" ? (i(), v("div", wt, T(o.additionalText), 1)) : N("", !0),
|
|
1258
1258
|
p("div", {
|
|
1259
|
-
class:
|
|
1259
|
+
class: I({
|
|
1260
1260
|
"cl-w-1/2": o.additionalText !== "",
|
|
1261
1261
|
"cl-w-full": o.additionalText === ""
|
|
1262
1262
|
})
|
|
1263
1263
|
}, T(o.text), 3),
|
|
1264
1264
|
L(p("div", {
|
|
1265
1265
|
class: "cl-cursor-pointer cl-float-right",
|
|
1266
|
-
onMousedown:
|
|
1266
|
+
onMousedown: e[0] || (e[0] = (l) => o.$emit("clear-object"))
|
|
1267
1267
|
}, [
|
|
1268
|
-
k(d(
|
|
1268
|
+
k(d(_), {
|
|
1269
1269
|
class: "cl-mt-1 cl-transition-colors hover:cl-text-link-default",
|
|
1270
1270
|
icon: "ph:x"
|
|
1271
1271
|
})
|
|
@@ -1274,10 +1274,10 @@ const ae = /* @__PURE__ */ de(mt, [["__scopeId", "data-v-d01c4a47"]]), gt = { cl
|
|
|
1274
1274
|
])
|
|
1275
1275
|
]));
|
|
1276
1276
|
}
|
|
1277
|
-
}),
|
|
1277
|
+
}), $t = {
|
|
1278
1278
|
key: 0,
|
|
1279
1279
|
class: "cl-w-1/2"
|
|
1280
|
-
},
|
|
1280
|
+
}, kt = { class: "cl-float-right cl-py-1" }, He = /* @__PURE__ */ M({
|
|
1281
1281
|
__name: "cl-ui-combo-box-selectable",
|
|
1282
1282
|
props: {
|
|
1283
1283
|
isCreateNewOption: { type: Boolean, default: !1 },
|
|
@@ -1292,57 +1292,57 @@ const ae = /* @__PURE__ */ de(mt, [["__scopeId", "data-v-d01c4a47"]]), gt = { cl
|
|
|
1292
1292
|
"option-highlighted": null
|
|
1293
1293
|
},
|
|
1294
1294
|
setup(t, { emit: o }) {
|
|
1295
|
-
const
|
|
1296
|
-
var
|
|
1297
|
-
return ((
|
|
1298
|
-
}),
|
|
1299
|
-
var
|
|
1300
|
-
return ((
|
|
1295
|
+
const e = t, l = S(() => {
|
|
1296
|
+
var u;
|
|
1297
|
+
return ((u = e.option) == null ? void 0 : u.name) ?? e.text;
|
|
1298
|
+
}), s = S(() => {
|
|
1299
|
+
var u;
|
|
1300
|
+
return ((u = e.option) == null ? void 0 : u.parentName) ?? "";
|
|
1301
1301
|
}), m = A(!1);
|
|
1302
|
-
function
|
|
1303
|
-
var
|
|
1304
|
-
|
|
1302
|
+
function n() {
|
|
1303
|
+
var u;
|
|
1304
|
+
e.isCreateNewOption === !0 ? o("create-object") : o("select-object", (u = e.option) == null ? void 0 : u.id);
|
|
1305
1305
|
}
|
|
1306
|
-
function a(
|
|
1307
|
-
|
|
1306
|
+
function a(u) {
|
|
1307
|
+
u === !0 ? (m.value = !0, o("option-highlighted", e.index)) : e.index !== e.selectedIndex && (m.value = !1);
|
|
1308
1308
|
}
|
|
1309
|
-
function
|
|
1310
|
-
|
|
1309
|
+
function c() {
|
|
1310
|
+
e.selectedIndex === e.index ? m.value = !0 : m.value = !1;
|
|
1311
1311
|
}
|
|
1312
|
-
return K(() =>
|
|
1312
|
+
return K(() => e.selectedIndex, () => c()), (u, g) => {
|
|
1313
1313
|
var b, r;
|
|
1314
|
-
return
|
|
1315
|
-
class:
|
|
1314
|
+
return i(), v("div", {
|
|
1315
|
+
class: I(["cl-cursor-pointer cl-duration-75 cl-flex cl-p-1 cl-text-left cl-transition-colors", {
|
|
1316
1316
|
"cl-bg-white": m.value === !1,
|
|
1317
|
-
"cl-bg-link-light cl-text-white cl-opacity-90": m.value &&
|
|
1318
|
-
"cl-bg-primary-default cl-text-white cl-opacity-90": m.value &&
|
|
1317
|
+
"cl-bg-link-light cl-text-white cl-opacity-90": m.value && u.isCreateNewOption === !1,
|
|
1318
|
+
"cl-bg-primary-default cl-text-white cl-opacity-90": m.value && u.isCreateNewOption
|
|
1319
1319
|
}]),
|
|
1320
|
-
onMousedown:
|
|
1320
|
+
onMousedown: n,
|
|
1321
1321
|
onMousemove: g[0] || (g[0] = (w) => a(!0)),
|
|
1322
1322
|
onMouseleave: g[1] || (g[1] = (w) => a(!1))
|
|
1323
1323
|
}, [
|
|
1324
|
-
|
|
1324
|
+
u.option !== null && ((b = u.option) == null ? void 0 : b.parentId) !== 0 && ((r = u.option) == null ? void 0 : r.parentId) !== void 0 ? (i(), v("div", $t, T(s.value), 1)) : N("", !0),
|
|
1325
1325
|
p("div", {
|
|
1326
|
-
class:
|
|
1327
|
-
"cl-w-1/2":
|
|
1328
|
-
"cl-w-full":
|
|
1326
|
+
class: I({
|
|
1327
|
+
"cl-w-1/2": s.value !== "",
|
|
1328
|
+
"cl-w-full": s.value === ""
|
|
1329
1329
|
})
|
|
1330
|
-
}, T(
|
|
1331
|
-
L(p("div",
|
|
1332
|
-
k(d(
|
|
1333
|
-
class:
|
|
1330
|
+
}, T(l.value), 3),
|
|
1331
|
+
L(p("div", kt, [
|
|
1332
|
+
k(d(_), {
|
|
1333
|
+
class: I(["cl-transition-colors", {
|
|
1334
1334
|
"cl-text-white": m.value,
|
|
1335
1335
|
"cl-text-black ": !m.value
|
|
1336
1336
|
}]),
|
|
1337
1337
|
icon: "ph:plus"
|
|
1338
1338
|
}, null, 8, ["class"])
|
|
1339
1339
|
], 512), [
|
|
1340
|
-
[H,
|
|
1340
|
+
[H, u.isCreateNewOption]
|
|
1341
1341
|
])
|
|
1342
1342
|
], 34);
|
|
1343
1343
|
};
|
|
1344
1344
|
}
|
|
1345
|
-
}),
|
|
1345
|
+
}), Ct = ["onKeyup"], Tt = { class: "cl-bg-white cl-flex cl-p-2 cl-pb-1 cl-sticky cl-top-0 cl-w-full cl-z-10" }, Et = { key: 5 }, Ot = /* @__PURE__ */ M({
|
|
1346
1346
|
__name: "cl-ui-combo-box-search",
|
|
1347
1347
|
props: {
|
|
1348
1348
|
loading: { type: Boolean, default: !1 },
|
|
@@ -1364,27 +1364,27 @@ const ae = /* @__PURE__ */ de(mt, [["__scopeId", "data-v-d01c4a47"]]), gt = { cl
|
|
|
1364
1364
|
"hide-dropdown": null
|
|
1365
1365
|
},
|
|
1366
1366
|
setup(t, { emit: o }) {
|
|
1367
|
-
const
|
|
1368
|
-
function
|
|
1369
|
-
(y === void 0 || (y == null ? void 0 : y.code.startsWith("Arrow")) === !1 && (y == null ? void 0 : y.code.startsWith("Control")) === !1 && (y == null ? void 0 : y.code.startsWith("Shift")) === !1 && (y == null ? void 0 : y.code.startsWith("Tab")) === !1 && (y == null ? void 0 : y.code) !== "Enter") && (o("search",
|
|
1367
|
+
const e = t, { t: l } = oe(), s = A(""), m = A(!1), n = A(-1), a = S(() => m.value ? -1 : 0), c = A();
|
|
1368
|
+
function u(y) {
|
|
1369
|
+
(y === void 0 || (y == null ? void 0 : y.code.startsWith("Arrow")) === !1 && (y == null ? void 0 : y.code.startsWith("Control")) === !1 && (y == null ? void 0 : y.code.startsWith("Shift")) === !1 && (y == null ? void 0 : y.code.startsWith("Tab")) === !1 && (y == null ? void 0 : y.code) !== "Enter") && (o("search", s.value), n.value = -2);
|
|
1370
1370
|
}
|
|
1371
1371
|
function g(y) {
|
|
1372
1372
|
o("select-object", y);
|
|
1373
1373
|
}
|
|
1374
1374
|
function b() {
|
|
1375
|
-
o("create-object",
|
|
1375
|
+
o("create-object", s.value), r();
|
|
1376
1376
|
}
|
|
1377
1377
|
function r() {
|
|
1378
1378
|
o("hide-dropdown");
|
|
1379
1379
|
}
|
|
1380
1380
|
function w(y) {
|
|
1381
|
-
|
|
1381
|
+
n.value < e.results.length - 1 ? (n.value === -2 && s.value === "" && n.value++, n.value++) : n.value = y, R();
|
|
1382
1382
|
}
|
|
1383
1383
|
function h(y) {
|
|
1384
|
-
|
|
1384
|
+
n.value > y ? n.value-- : n.value = e.results.length - 1, R();
|
|
1385
1385
|
}
|
|
1386
1386
|
function q() {
|
|
1387
|
-
|
|
1387
|
+
n.value >= 0 && e.results !== void 0 ? g(e.results[n.value].id) : n.value === -1 && b();
|
|
1388
1388
|
}
|
|
1389
1389
|
function $(y) {
|
|
1390
1390
|
if (y.key === "Tab" && y.shiftKey === !0) {
|
|
@@ -1397,32 +1397,32 @@ const ae = /* @__PURE__ */ de(mt, [["__scopeId", "data-v-d01c4a47"]]), gt = { cl
|
|
|
1397
1397
|
}
|
|
1398
1398
|
function R() {
|
|
1399
1399
|
var y;
|
|
1400
|
-
|
|
1400
|
+
e.results && e.results.length > 1 && ((y = c.value) == null || y.scrollTo(0, (n.value + 1) * 34 - 34 * 2));
|
|
1401
1401
|
}
|
|
1402
1402
|
function O() {
|
|
1403
1403
|
let y = !1;
|
|
1404
|
-
|
|
1404
|
+
e.results !== null && e.results.length === 1 && (y = s.value.toUpperCase().trim() === e.results[0].name.toUpperCase().trim()), m.value = e.canCreateNewObject === !0 && e.errorMessage === "" && s.value.trim() !== "" && y === !1;
|
|
1405
1405
|
}
|
|
1406
1406
|
function z(y) {
|
|
1407
|
-
|
|
1407
|
+
n.value = y;
|
|
1408
1408
|
}
|
|
1409
1409
|
function U() {
|
|
1410
|
-
|
|
1410
|
+
e.isVisible === !0 && (s.value = "", u(), ge(() => {
|
|
1411
1411
|
var y, D;
|
|
1412
|
-
return (D = (y =
|
|
1412
|
+
return (D = (y = c.value) == null ? void 0 : y.querySelector("input")) == null ? void 0 : D.focus();
|
|
1413
1413
|
}));
|
|
1414
1414
|
}
|
|
1415
|
-
return K(() =>
|
|
1415
|
+
return K(() => e.results, () => O()), K(() => e.errorMessage, () => O()), K(() => e.isVisible, () => U()), Ae(() => {
|
|
1416
1416
|
var y;
|
|
1417
|
-
return (y =
|
|
1418
|
-
}),
|
|
1417
|
+
return (y = c.value) == null ? void 0 : y.addEventListener("keydown", $);
|
|
1418
|
+
}), _e(() => {
|
|
1419
1419
|
var y;
|
|
1420
|
-
return (y =
|
|
1420
|
+
return (y = c.value) == null ? void 0 : y.removeEventListener("keydown", $);
|
|
1421
1421
|
}), (y, D) => {
|
|
1422
1422
|
var J;
|
|
1423
|
-
return
|
|
1423
|
+
return i(), v("div", {
|
|
1424
1424
|
ref_key: "container",
|
|
1425
|
-
ref:
|
|
1425
|
+
ref: c,
|
|
1426
1426
|
class: "cl-absolute cl-bg-white cl-border cl-border-collapse cl-border-grey-0 cl-h-52 cl-overflow-y-auto cl-overscroll-y-none cl-rounded cl-text-sm cl-w-full cl-z-20",
|
|
1427
1427
|
onKeydown: [
|
|
1428
1428
|
D[2] || (D[2] = we(W((Z) => h(a.value), ["prevent", "stop"]), ["up"])),
|
|
@@ -1430,66 +1430,66 @@ const ae = /* @__PURE__ */ de(mt, [["__scopeId", "data-v-d01c4a47"]]), gt = { cl
|
|
|
1430
1430
|
],
|
|
1431
1431
|
onKeyup: we(W(q, ["prevent", "stop"]), ["enter"])
|
|
1432
1432
|
}, [
|
|
1433
|
-
p("div",
|
|
1433
|
+
p("div", Tt, [
|
|
1434
1434
|
k(ae, {
|
|
1435
|
-
modelValue:
|
|
1436
|
-
"onUpdate:modelValue": D[0] || (D[0] = (Z) =>
|
|
1435
|
+
modelValue: s.value,
|
|
1436
|
+
"onUpdate:modelValue": D[0] || (D[0] = (Z) => s.value = Z),
|
|
1437
1437
|
class: "!cl-mr-0 cl-w-full",
|
|
1438
1438
|
"input-type": "text",
|
|
1439
1439
|
"placeholder-text": y.searchHint,
|
|
1440
|
-
onKeyup:
|
|
1440
|
+
onKeyup: u,
|
|
1441
1441
|
onBlur: r
|
|
1442
1442
|
}, null, 8, ["modelValue", "placeholder-text"]),
|
|
1443
1443
|
L(k(Se, { class: "cl-absolute cl-ml-2 cl-mt-11" }, null, 512), [
|
|
1444
1444
|
[H, y.loading]
|
|
1445
1445
|
])
|
|
1446
1446
|
]),
|
|
1447
|
-
y.currentObjectName !== "" ? (
|
|
1447
|
+
y.currentObjectName !== "" ? (i(), V(Te, {
|
|
1448
1448
|
key: 0,
|
|
1449
1449
|
"show-clear-button": y.canClearSelectedObject,
|
|
1450
1450
|
text: y.currentObjectName,
|
|
1451
1451
|
onClearObject: D[1] || (D[1] = (Z) => y.$emit("clear-object"))
|
|
1452
1452
|
}, null, 8, ["show-clear-button", "text"])) : N("", !0),
|
|
1453
|
-
y.objectParentType !== "" && y.results !== void 0 && y.results.length > 0 && y.errorMessage === "" ? (
|
|
1453
|
+
y.objectParentType !== "" && y.results !== void 0 && y.results.length > 0 && y.errorMessage === "" ? (i(), V(Te, {
|
|
1454
1454
|
key: 1,
|
|
1455
1455
|
text: y.objectType,
|
|
1456
1456
|
"additional-text": y.objectParentType,
|
|
1457
1457
|
class: "cl-bg-grey-2 cl-mt-1"
|
|
1458
1458
|
}, null, 8, ["text", "additional-text"])) : N("", !0),
|
|
1459
|
-
y.results !== null && ((J = y.results) == null ? void 0 : J.length) === 0 &&
|
|
1459
|
+
y.results !== null && ((J = y.results) == null ? void 0 : J.length) === 0 && s.value.trim() !== "" && y.canCreateNewObject === !1 && y.errorMessage === "" ? (i(), V(Te, {
|
|
1460
1460
|
key: 2,
|
|
1461
|
-
text: d(
|
|
1461
|
+
text: d(l)("comboBox.noResults", { value: s.value })
|
|
1462
1462
|
}, null, 8, ["text"])) : N("", !0),
|
|
1463
|
-
y.errorMessage !== "" ? (
|
|
1463
|
+
y.errorMessage !== "" ? (i(), V(Te, {
|
|
1464
1464
|
key: 3,
|
|
1465
1465
|
class: "!cl-bg-danger-light cl-border-danger-light cl-rounded cl-text-danger-dark",
|
|
1466
|
-
text: d(
|
|
1466
|
+
text: d(l)("comboBox.errorMessage", { error: y.errorMessage })
|
|
1467
1467
|
}, null, 8, ["text"])) : N("", !0),
|
|
1468
|
-
m.value ? (
|
|
1468
|
+
m.value ? (i(), V(He, {
|
|
1469
1469
|
key: 4,
|
|
1470
1470
|
"is-create-new-option": !0,
|
|
1471
|
-
text: d(
|
|
1471
|
+
text: d(l)("comboBox.addPrompt", { value: s.value, object: y.objectType }),
|
|
1472
1472
|
index: -1,
|
|
1473
|
-
"selected-index":
|
|
1473
|
+
"selected-index": n.value,
|
|
1474
1474
|
class: "cl-px-2",
|
|
1475
1475
|
onCreateObject: b,
|
|
1476
1476
|
onOptionHighlighted: z
|
|
1477
1477
|
}, null, 8, ["text", "selected-index"])) : N("", !0),
|
|
1478
|
-
y.errorMessage === "" && y.results !== null ? (
|
|
1479
|
-
(
|
|
1480
|
-
key:
|
|
1478
|
+
y.errorMessage === "" && y.results !== null ? (i(), v("div", Et, [
|
|
1479
|
+
(i(!0), v(F, null, Q(y.results, (Z, ce) => (i(), V(He, {
|
|
1480
|
+
key: ce,
|
|
1481
1481
|
option: Z,
|
|
1482
|
-
index:
|
|
1482
|
+
index: ce,
|
|
1483
1483
|
class: "cl-px-2",
|
|
1484
|
-
"selected-index":
|
|
1484
|
+
"selected-index": n.value,
|
|
1485
1485
|
onSelectObject: g,
|
|
1486
1486
|
onOptionHighlighted: z
|
|
1487
1487
|
}, null, 8, ["option", "index", "selected-index"]))), 128))
|
|
1488
1488
|
])) : N("", !0)
|
|
1489
|
-
], 40,
|
|
1489
|
+
], 40, Ct);
|
|
1490
1490
|
};
|
|
1491
1491
|
}
|
|
1492
|
-
}),
|
|
1492
|
+
}), qt = { class: "cl-flex" }, At = { class: "cl-relative cl-right-20 cl-top-0.5" }, St = { class: "cl-absolute cl-flex cl-float-right cl-font-semibold cl-mt-2 cl-text-danger-default cl-text-sm cl-z-10" }, Nt = { class: "cl-min-h-[16rem] cl-mx-4" }, jt = { class: "cl-p-2 cl-text-right cl-w-full" }, It = /* @__PURE__ */ M({
|
|
1493
1493
|
__name: "cl-ui-combo-box",
|
|
1494
1494
|
props: {
|
|
1495
1495
|
loading: { type: Boolean, default: !1 },
|
|
@@ -1516,124 +1516,124 @@ const ae = /* @__PURE__ */ de(mt, [["__scopeId", "data-v-d01c4a47"]]), gt = { cl
|
|
|
1516
1516
|
"create-parent-object": null,
|
|
1517
1517
|
"update:current-object": null
|
|
1518
1518
|
},
|
|
1519
|
-
setup(t, { expose: o, emit:
|
|
1520
|
-
const
|
|
1521
|
-
get: () =>
|
|
1522
|
-
set: (C) =>
|
|
1523
|
-
}),
|
|
1519
|
+
setup(t, { expose: o, emit: e }) {
|
|
1520
|
+
const l = t, s = S(() => l.placeholderText ? l.placeholderText : n("comboBox.emptyHintText", { object: l.objectType })), m = S(() => l.searchHint ? l.searchHint : n("comboBox.searchHint", { object: l.objectType })), { t: n } = oe(), a = A(!1), c = S({
|
|
1521
|
+
get: () => l.currentObject,
|
|
1522
|
+
set: (C) => e("update:current-object", C)
|
|
1523
|
+
}), u = A(null), g = A(null), b = S(() => be()), r = A(""), w = A(""), h = A(), q = A(!0), $ = A(!1);
|
|
1524
1524
|
function R(C) {
|
|
1525
1525
|
var f, E;
|
|
1526
|
-
const
|
|
1527
|
-
$.value = window.innerHeight -
|
|
1526
|
+
const x = ((f = he.value) == null ? void 0 : f.getBoundingClientRect().top) || 0;
|
|
1527
|
+
$.value = window.innerHeight - x < 280, l.disabled || (typeof C < "u" ? a.value = C : a.value = !a.value), (E = u.value) == null || E.blur();
|
|
1528
1528
|
}
|
|
1529
1529
|
function O(C) {
|
|
1530
|
-
r.value = C,
|
|
1530
|
+
r.value = C, e("search", C);
|
|
1531
1531
|
}
|
|
1532
1532
|
function z(C) {
|
|
1533
|
-
w.value = C,
|
|
1533
|
+
w.value = C, e("search-parent", C);
|
|
1534
1534
|
}
|
|
1535
1535
|
function U() {
|
|
1536
|
-
|
|
1536
|
+
c.value = null, R(!1);
|
|
1537
1537
|
}
|
|
1538
1538
|
function y(C) {
|
|
1539
|
-
const
|
|
1540
|
-
|
|
1539
|
+
const x = D(C);
|
|
1540
|
+
c.value = x, R(!1);
|
|
1541
1541
|
}
|
|
1542
1542
|
function D(C) {
|
|
1543
|
-
let
|
|
1544
|
-
if (
|
|
1545
|
-
for (let f = 0; f <
|
|
1546
|
-
if (
|
|
1547
|
-
|
|
1543
|
+
let x = null;
|
|
1544
|
+
if (l.results !== null) {
|
|
1545
|
+
for (let f = 0; f < l.results.length; f++)
|
|
1546
|
+
if (l.results[f].id === C) {
|
|
1547
|
+
x = l.results[f];
|
|
1548
1548
|
break;
|
|
1549
1549
|
}
|
|
1550
1550
|
}
|
|
1551
|
-
return
|
|
1551
|
+
return x;
|
|
1552
1552
|
}
|
|
1553
1553
|
function J() {
|
|
1554
1554
|
var C;
|
|
1555
1555
|
h.value = {
|
|
1556
1556
|
name: r.value,
|
|
1557
1557
|
parentId: ((C = g.value) == null ? void 0 : C.id) ?? 0
|
|
1558
|
-
},
|
|
1558
|
+
}, e("create-object", h.value);
|
|
1559
1559
|
}
|
|
1560
1560
|
function Z() {
|
|
1561
1561
|
h.value = {
|
|
1562
1562
|
name: w.value,
|
|
1563
1563
|
parentId: 0
|
|
1564
|
-
},
|
|
1564
|
+
}, e("create-parent-object", h.value);
|
|
1565
1565
|
}
|
|
1566
|
-
function
|
|
1567
|
-
var C,
|
|
1568
|
-
(C =
|
|
1569
|
-
message:
|
|
1566
|
+
function ce() {
|
|
1567
|
+
var C, x;
|
|
1568
|
+
(C = l.objectCreatedResponse) != null && C.error ? Ve({
|
|
1569
|
+
message: n("comboBox.createFailed", { name: r.value, error: l.objectCreatedResponse.error }),
|
|
1570
1570
|
colour: "danger",
|
|
1571
1571
|
duration: 1e4
|
|
1572
|
-
}) : (
|
|
1572
|
+
}) : (x = l.objectCreatedResponse) != null && x.id && ve();
|
|
1573
1573
|
}
|
|
1574
1574
|
function Ne() {
|
|
1575
1575
|
var C;
|
|
1576
|
-
(C =
|
|
1577
|
-
id:
|
|
1578
|
-
name:
|
|
1576
|
+
(C = l.parentObjectCreatedResponse) != null && C.id && (g.value = {
|
|
1577
|
+
id: l.parentObjectCreatedResponse.id,
|
|
1578
|
+
name: l.parentObjectCreatedResponse.name ?? ""
|
|
1579
1579
|
});
|
|
1580
1580
|
}
|
|
1581
1581
|
function ve() {
|
|
1582
|
-
var
|
|
1582
|
+
var x, f, E, B, pe;
|
|
1583
1583
|
Ve({
|
|
1584
|
-
message:
|
|
1584
|
+
message: n("comboBox.createSuccessful", { object: l.objectType, name: ((x = l.objectCreatedResponse) == null ? void 0 : x.name) ?? "" }),
|
|
1585
1585
|
colour: "primary",
|
|
1586
1586
|
duration: 1e4
|
|
1587
1587
|
});
|
|
1588
1588
|
let C = "";
|
|
1589
|
-
g.value && g.value.id === ((f =
|
|
1590
|
-
id: ((E =
|
|
1591
|
-
name: ((B =
|
|
1592
|
-
parentId: ((pe =
|
|
1589
|
+
g.value && g.value.id === ((f = l.objectCreatedResponse) == null ? void 0 : f.parentId) && (C = g.value.name), c.value = {
|
|
1590
|
+
id: ((E = l.objectCreatedResponse) == null ? void 0 : E.id) ?? 0,
|
|
1591
|
+
name: ((B = l.objectCreatedResponse) == null ? void 0 : B.name) ?? "",
|
|
1592
|
+
parentId: ((pe = l.objectCreatedResponse) == null ? void 0 : pe.parentId) ?? 0,
|
|
1593
1593
|
parentName: C
|
|
1594
1594
|
};
|
|
1595
1595
|
}
|
|
1596
1596
|
function be() {
|
|
1597
1597
|
let C = "";
|
|
1598
|
-
return
|
|
1598
|
+
return c.value && (c.value.parentName ? C = c.value.parentName + "; " + c.value.name : C = c.value.name), C;
|
|
1599
1599
|
}
|
|
1600
1600
|
function ke() {
|
|
1601
1601
|
let C = !0;
|
|
1602
|
-
r.value === "" && (C = !1),
|
|
1602
|
+
r.value === "" && (C = !1), l.objectParentType !== "" && g.value === null && (C = !1), q.value = C;
|
|
1603
1603
|
}
|
|
1604
|
-
K(() =>
|
|
1604
|
+
K(() => l.objectCreatedResponse, () => ce()), K(() => l.parentObjectCreatedResponse, () => Ne()), K(() => r.value, () => ke()), K(() => g.value, () => ke()), o({
|
|
1605
1605
|
focus() {
|
|
1606
1606
|
var C;
|
|
1607
|
-
(C =
|
|
1607
|
+
(C = u.value) == null || C.focus();
|
|
1608
1608
|
}
|
|
1609
1609
|
});
|
|
1610
1610
|
const he = A();
|
|
1611
|
-
return ze(he, () => a.value ? R(!1) : ""), (C,
|
|
1612
|
-
const f =
|
|
1613
|
-
return
|
|
1611
|
+
return ze(he, () => a.value ? R(!1) : ""), (C, x) => {
|
|
1612
|
+
const f = sl("cl-ui-combo-box", !0);
|
|
1613
|
+
return i(), v("div", {
|
|
1614
1614
|
ref_key: "outsideRef",
|
|
1615
1615
|
ref: he,
|
|
1616
1616
|
class: "cl-relative"
|
|
1617
1617
|
}, [
|
|
1618
|
-
p("div",
|
|
1618
|
+
p("div", qt, [
|
|
1619
1619
|
k(ae, {
|
|
1620
1620
|
ref_key: "inputRef",
|
|
1621
|
-
ref:
|
|
1621
|
+
ref: u,
|
|
1622
1622
|
modelValue: b.value,
|
|
1623
|
-
"onUpdate:modelValue":
|
|
1624
|
-
class:
|
|
1623
|
+
"onUpdate:modelValue": x[0] || (x[0] = (E) => b.value = E),
|
|
1624
|
+
class: I(["!cl-mr-0 cl-mb-0 cl-rounded-r-none cl-w-full cl-z-10", {
|
|
1625
1625
|
"cl-cursor-pointer": C.disabled === !1
|
|
1626
1626
|
}]),
|
|
1627
1627
|
"input-type": "text",
|
|
1628
|
-
"placeholder-text":
|
|
1629
|
-
onFocus:
|
|
1628
|
+
"placeholder-text": s.value,
|
|
1629
|
+
onFocus: x[1] || (x[1] = (E) => {
|
|
1630
1630
|
R(), C.$emit("focus");
|
|
1631
1631
|
})
|
|
1632
1632
|
}, null, 8, ["modelValue", "class", "placeholder-text"]),
|
|
1633
|
-
L(p("div",
|
|
1634
|
-
p("div",
|
|
1635
|
-
ee(T(d(
|
|
1636
|
-
k(d(
|
|
1633
|
+
L(p("div", At, [
|
|
1634
|
+
p("div", St, [
|
|
1635
|
+
ee(T(d(n)("comboBox.required")) + " ", 1),
|
|
1636
|
+
k(d(_), {
|
|
1637
1637
|
class: "cl-ml-1 cl-mt-1",
|
|
1638
1638
|
icon: "ph:warning"
|
|
1639
1639
|
})
|
|
@@ -1641,38 +1641,38 @@ const ae = /* @__PURE__ */ de(mt, [["__scopeId", "data-v-d01c4a47"]]), gt = { cl
|
|
|
1641
1641
|
], 512), [
|
|
1642
1642
|
[H, C.required && C.disabled === !1 && C.currentObject === null]
|
|
1643
1643
|
]),
|
|
1644
|
-
a.value ? (
|
|
1644
|
+
a.value ? (i(), v("div", {
|
|
1645
1645
|
key: 1,
|
|
1646
|
-
class:
|
|
1646
|
+
class: I(["cl-bg-white cl-border cl-border-grey-1 cl-float-right cl-h-10 cl-rounded cl-rounded-l-none cl-text-grey-3 cl-transition-colors cl-w-[27px] hover:cl-bg-link-light hover:cl-opacity-90 hover:cl-text-white", {
|
|
1647
1647
|
"cl-cursor-default": C.disabled,
|
|
1648
1648
|
"cl-cursor-pointer": C.disabled === !1
|
|
1649
1649
|
}]),
|
|
1650
|
-
onClick:
|
|
1650
|
+
onClick: x[3] || (x[3] = (E) => R(!1))
|
|
1651
1651
|
}, [
|
|
1652
|
-
k(d(
|
|
1652
|
+
k(d(_), {
|
|
1653
1653
|
icon: "ph:caret-up-bold",
|
|
1654
1654
|
class: "cl-ml-[5px] cl-mt-[12px]"
|
|
1655
1655
|
})
|
|
1656
|
-
], 2)) : (
|
|
1656
|
+
], 2)) : (i(), v("div", {
|
|
1657
1657
|
key: 0,
|
|
1658
|
-
class:
|
|
1658
|
+
class: I(["cl-bg-white cl-border cl-border-grey-1 cl-float-right cl-h-10 cl-rounded cl-rounded-l-none cl-text-grey-3 cl-transition-colors cl-w-[27px] hover:cl-bg-link-light hover:cl-opacity-90 hover:cl-text-white", {
|
|
1659
1659
|
"cl-cursor-default": C.disabled,
|
|
1660
1660
|
"cl-cursor-pointer": C.disabled === !1
|
|
1661
1661
|
}]),
|
|
1662
|
-
onClick:
|
|
1662
|
+
onClick: x[2] || (x[2] = (E) => R(!0))
|
|
1663
1663
|
}, [
|
|
1664
|
-
k(d(
|
|
1664
|
+
k(d(_), {
|
|
1665
1665
|
icon: "ph:caret-down-bold",
|
|
1666
1666
|
class: "cl-ml-[5px] cl-mt-[12px]"
|
|
1667
1667
|
})
|
|
1668
1668
|
], 2))
|
|
1669
1669
|
]),
|
|
1670
|
-
k(
|
|
1670
|
+
k(Xe, { size: "small" }, {
|
|
1671
1671
|
title: P(() => [
|
|
1672
|
-
ee(T(d(
|
|
1672
|
+
ee(T(d(n)("comboBox.createTitle", { object: C.objectType })), 1)
|
|
1673
1673
|
]),
|
|
1674
1674
|
trigger: P(({ open: E }) => [
|
|
1675
|
-
L(k(
|
|
1675
|
+
L(k(Ot, {
|
|
1676
1676
|
"can-create-new-object": C.canCreateNewObject,
|
|
1677
1677
|
"can-clear-selected-object": C.canClearSelectedObject,
|
|
1678
1678
|
loading: C.loading,
|
|
@@ -1682,7 +1682,7 @@ const ae = /* @__PURE__ */ de(mt, [["__scopeId", "data-v-d01c4a47"]]), gt = { cl
|
|
|
1682
1682
|
"error-message": C.errorMessage,
|
|
1683
1683
|
"current-object-name": b.value,
|
|
1684
1684
|
"is-visible": a.value,
|
|
1685
|
-
class:
|
|
1685
|
+
class: I({
|
|
1686
1686
|
"cl-bottom-full": $.value
|
|
1687
1687
|
}),
|
|
1688
1688
|
"search-hint": m.value,
|
|
@@ -1695,7 +1695,7 @@ const ae = /* @__PURE__ */ de(mt, [["__scopeId", "data-v-d01c4a47"]]), gt = { cl
|
|
|
1695
1695
|
])
|
|
1696
1696
|
]),
|
|
1697
1697
|
footer: P(({ close: E }) => [
|
|
1698
|
-
p("div",
|
|
1698
|
+
p("div", jt, [
|
|
1699
1699
|
k(fe, {
|
|
1700
1700
|
class: "cl-mr-3",
|
|
1701
1701
|
colour: "default",
|
|
@@ -1703,7 +1703,7 @@ const ae = /* @__PURE__ */ de(mt, [["__scopeId", "data-v-d01c4a47"]]), gt = { cl
|
|
|
1703
1703
|
onClick: E
|
|
1704
1704
|
}, {
|
|
1705
1705
|
default: P(() => [
|
|
1706
|
-
ee(T(d(
|
|
1706
|
+
ee(T(d(n)("comboBox.cancel")), 1)
|
|
1707
1707
|
]),
|
|
1708
1708
|
_: 2
|
|
1709
1709
|
}, 1032, ["onClick"]),
|
|
@@ -1716,18 +1716,18 @@ const ae = /* @__PURE__ */ de(mt, [["__scopeId", "data-v-d01c4a47"]]), gt = { cl
|
|
|
1716
1716
|
}
|
|
1717
1717
|
}, {
|
|
1718
1718
|
default: P(() => [
|
|
1719
|
-
ee(T(d(
|
|
1719
|
+
ee(T(d(n)("comboBox.create")), 1)
|
|
1720
1720
|
]),
|
|
1721
1721
|
_: 2
|
|
1722
1722
|
}, 1032, ["disabled", "onClick"])
|
|
1723
1723
|
])
|
|
1724
1724
|
]),
|
|
1725
1725
|
default: P(() => [
|
|
1726
|
-
p("div",
|
|
1727
|
-
C.objectParentType ? (
|
|
1726
|
+
p("div", Nt, [
|
|
1727
|
+
C.objectParentType ? (i(), V(f, {
|
|
1728
1728
|
key: 0,
|
|
1729
1729
|
"current-object": g.value,
|
|
1730
|
-
"onUpdate:currentObject":
|
|
1730
|
+
"onUpdate:currentObject": x[4] || (x[4] = (E) => g.value = E),
|
|
1731
1731
|
class: "cl-mt-3",
|
|
1732
1732
|
results: C.parentResults,
|
|
1733
1733
|
loading: C.loading,
|
|
@@ -1741,8 +1741,8 @@ const ae = /* @__PURE__ */ de(mt, [["__scopeId", "data-v-d01c4a47"]]), gt = { cl
|
|
|
1741
1741
|
}, null, 8, ["current-object", "results", "loading", "object-type", "object-created-response", "can-create-new-object", "can-clear-selected-object", "error-message"])) : N("", !0),
|
|
1742
1742
|
k(ae, {
|
|
1743
1743
|
modelValue: r.value,
|
|
1744
|
-
"onUpdate:modelValue":
|
|
1745
|
-
label: d(
|
|
1744
|
+
"onUpdate:modelValue": x[5] || (x[5] = (E) => r.value = E),
|
|
1745
|
+
label: d(n)("comboBox.createProperty"),
|
|
1746
1746
|
class: "cl-mb-2 cl-pt-3 cl-w-full",
|
|
1747
1747
|
"input-type": "text"
|
|
1748
1748
|
}, null, 8, ["modelValue", "label"])
|
|
@@ -1757,44 +1757,50 @@ const ae = /* @__PURE__ */ de(mt, [["__scopeId", "data-v-d01c4a47"]]), gt = { cl
|
|
|
1757
1757
|
function _t(t) {
|
|
1758
1758
|
return typeof t.id == "number" && typeof t.name == "string";
|
|
1759
1759
|
}
|
|
1760
|
-
function
|
|
1760
|
+
function Rt(t) {
|
|
1761
1761
|
return typeof t.name == "string";
|
|
1762
1762
|
}
|
|
1763
|
-
const
|
|
1763
|
+
const zt = {}, Ut = { class: "cl-flex cl-flex-wrap cl-left-0 cl-mt-4 cl-w-full" }, Bt = {
|
|
1764
1764
|
key: 0,
|
|
1765
1765
|
class: "cl-w-full"
|
|
1766
|
-
},
|
|
1766
|
+
}, Mt = {
|
|
1767
1767
|
key: 1,
|
|
1768
1768
|
class: "cl-leading-10 cl-text-sm cl-w-full"
|
|
1769
|
-
},
|
|
1770
|
-
function
|
|
1771
|
-
return
|
|
1772
|
-
t.$slots.default ? (
|
|
1769
|
+
}, Vt = { class: "cl-float-left" }, Dt = { class: "cl-float-right" };
|
|
1770
|
+
function Lt(t, o) {
|
|
1771
|
+
return i(), v("div", Ut, [
|
|
1772
|
+
t.$slots.default ? (i(), v("div", Bt, [
|
|
1773
1773
|
j(t.$slots, "default")
|
|
1774
1774
|
])) : N("", !0),
|
|
1775
|
-
t.$slots.left || t.$slots.right ? (
|
|
1776
|
-
p("span",
|
|
1775
|
+
t.$slots.left || t.$slots.right ? (i(), v("div", Mt, [
|
|
1776
|
+
p("span", Vt, [
|
|
1777
1777
|
j(t.$slots, "left")
|
|
1778
1778
|
]),
|
|
1779
|
-
p("span",
|
|
1779
|
+
p("span", Dt, [
|
|
1780
1780
|
j(t.$slots, "right")
|
|
1781
1781
|
])
|
|
1782
1782
|
])) : N("", !0)
|
|
1783
1783
|
]);
|
|
1784
1784
|
}
|
|
1785
|
-
const
|
|
1785
|
+
const Pt = /* @__PURE__ */ de(zt, [["render", Lt]]);
|
|
1786
1786
|
function Oe(t) {
|
|
1787
|
-
const o = t.type !== "slot" || t.slotType !== void 0 && t.field !== void 0,
|
|
1788
|
-
return o &&
|
|
1787
|
+
const o = t.type !== "slot" || t.slotType !== void 0 && t.field !== void 0, e = t.sortable ?? !0;
|
|
1788
|
+
return o && e;
|
|
1789
1789
|
}
|
|
1790
1790
|
function Ue(t) {
|
|
1791
|
-
const o = t.type !== "slot" || t.slotType !== void 0 && t.field !== void 0,
|
|
1792
|
-
return o &&
|
|
1791
|
+
const o = t.type !== "slot" || t.slotType !== void 0 && t.field !== void 0, e = t.filterable ?? !0;
|
|
1792
|
+
return o && e;
|
|
1793
|
+
}
|
|
1794
|
+
function Ft(t) {
|
|
1795
|
+
return t.some((o) => Oe(o));
|
|
1793
1796
|
}
|
|
1794
|
-
|
|
1797
|
+
function xe(t) {
|
|
1798
|
+
return t.some((o) => Ue(o));
|
|
1799
|
+
}
|
|
1800
|
+
const Ht = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, xt = { class: "cl-gap-1 cl-grid cl-grid-cols-2 cl-justify-end cl-mb-2 lg:cl-flex lg:cl-gap-2" }, Gt = { class: "cl-basis-0 cl-col-span-2 cl-flex-grow" }, Zt = /* @__PURE__ */ p("hr", { class: "cl-block cl-border-grey-3 cl-col-span-2 cl-my-4 lg:cl-hidden" }, null, -1), Wt = {
|
|
1795
1801
|
key: 1,
|
|
1796
1802
|
class: "cl-hidden lg:cl-block"
|
|
1797
|
-
},
|
|
1803
|
+
}, Kt = { class: "cl-block lg:cl-hidden" }, Qt = /* @__PURE__ */ M({
|
|
1798
1804
|
__name: "cl-ui-grid-action-row",
|
|
1799
1805
|
props: {
|
|
1800
1806
|
editMode: { type: Boolean },
|
|
@@ -1807,42 +1813,42 @@ const Pt = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, Ft = { class: "cl-gap-1
|
|
|
1807
1813
|
emits: ["update:edit-mode", "update:filterPanelOpen", "clear-filters"],
|
|
1808
1814
|
setup(t) {
|
|
1809
1815
|
const { t: o } = oe();
|
|
1810
|
-
return (
|
|
1811
|
-
p("div",
|
|
1816
|
+
return (e, l) => (i(), v(F, null, [
|
|
1817
|
+
p("div", Ht, [
|
|
1812
1818
|
p("strong", null, T(d(o)("grid.gridTools")), 1)
|
|
1813
1819
|
]),
|
|
1814
|
-
p("div",
|
|
1815
|
-
p("div",
|
|
1816
|
-
j(
|
|
1817
|
-
loading:
|
|
1818
|
-
editMode:
|
|
1820
|
+
p("div", xt, [
|
|
1821
|
+
p("div", Gt, [
|
|
1822
|
+
j(e.$slots, "additional-grid-actions", le(ne({
|
|
1823
|
+
loading: e.loading,
|
|
1824
|
+
editMode: e.editMode
|
|
1819
1825
|
})))
|
|
1820
1826
|
]),
|
|
1821
|
-
|
|
1822
|
-
|
|
1827
|
+
Zt,
|
|
1828
|
+
e.columns.some((s) => s.editable) ? (i(), V(fe, {
|
|
1823
1829
|
key: 0,
|
|
1824
1830
|
size: "small",
|
|
1825
1831
|
colour: "default",
|
|
1826
|
-
onClick:
|
|
1832
|
+
onClick: l[0] || (l[0] = W((s) => e.$emit("update:edit-mode", !e.editMode), ["prevent"]))
|
|
1827
1833
|
}, {
|
|
1828
1834
|
default: P(() => [
|
|
1829
|
-
|
|
1835
|
+
e.editMode ? (i(), v(F, { key: 0 }, [
|
|
1830
1836
|
ee(T(d(o)("grid.finishEditing")), 1)
|
|
1831
|
-
], 64)) : (
|
|
1837
|
+
], 64)) : (i(), v(F, { key: 1 }, [
|
|
1832
1838
|
ee(T(d(o)("grid.editData")), 1)
|
|
1833
1839
|
], 64))
|
|
1834
1840
|
]),
|
|
1835
1841
|
_: 1
|
|
1836
1842
|
})) : N("", !0),
|
|
1837
|
-
|
|
1838
|
-
j(
|
|
1843
|
+
e.options.hideViewManager ? N("", !0) : (i(), v("div", Wt, [
|
|
1844
|
+
j(e.$slots, "view-manager")
|
|
1839
1845
|
])),
|
|
1840
|
-
|
|
1841
|
-
p("div",
|
|
1846
|
+
d(xe)(e.columns) || d(Ft)(e.columns) ? (i(), v(F, { key: 2 }, [
|
|
1847
|
+
p("div", Kt, [
|
|
1842
1848
|
k(fe, {
|
|
1843
1849
|
class: "cl-w-full",
|
|
1844
1850
|
size: "small",
|
|
1845
|
-
onClick:
|
|
1851
|
+
onClick: l[1] || (l[1] = W((s) => e.$emit("update:filterPanelOpen", !e.filterPanelOpen), ["prevent"]))
|
|
1846
1852
|
}, {
|
|
1847
1853
|
default: P(() => [
|
|
1848
1854
|
ee(T(d(o)("grid.modifyFilters")), 1)
|
|
@@ -1850,33 +1856,34 @@ const Pt = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, Ft = { class: "cl-gap-1
|
|
|
1850
1856
|
_: 1
|
|
1851
1857
|
})
|
|
1852
1858
|
]),
|
|
1853
|
-
|
|
1859
|
+
d(xe)(e.columns) ? (i(), V(fe, {
|
|
1860
|
+
key: 0,
|
|
1854
1861
|
size: "small",
|
|
1855
|
-
colour:
|
|
1856
|
-
class:
|
|
1857
|
-
"cl-col-span-2":
|
|
1862
|
+
colour: e.request.filters.some((s) => s.filterValue !== "") ? "danger" : "default",
|
|
1863
|
+
class: I({
|
|
1864
|
+
"cl-col-span-2": e.columns.some((s) => s.editable)
|
|
1858
1865
|
}),
|
|
1859
|
-
onClick:
|
|
1866
|
+
onClick: l[2] || (l[2] = W((s) => e.$emit("clear-filters"), ["prevent"]))
|
|
1860
1867
|
}, {
|
|
1861
1868
|
default: P(() => [
|
|
1862
1869
|
ee(T(d(o)("grid.clearFilters")), 1)
|
|
1863
1870
|
]),
|
|
1864
1871
|
_: 1
|
|
1865
|
-
}, 8, ["colour", "class"])
|
|
1872
|
+
}, 8, ["colour", "class"])) : N("", !0)
|
|
1866
1873
|
], 64)) : N("", !0)
|
|
1867
1874
|
])
|
|
1868
1875
|
], 64));
|
|
1869
1876
|
}
|
|
1870
|
-
}),
|
|
1877
|
+
}), Jt = {
|
|
1871
1878
|
key: 3,
|
|
1872
1879
|
class: "cl-inline-block cl-whitespace-nowrap"
|
|
1873
|
-
},
|
|
1880
|
+
}, Yt = {
|
|
1874
1881
|
key: 4,
|
|
1875
1882
|
class: "cl-inline-block cl-whitespace-nowrap"
|
|
1876
|
-
},
|
|
1883
|
+
}, Xt = {
|
|
1877
1884
|
key: 0,
|
|
1878
1885
|
class: "cl-inline-block cl-whitespace-nowrap"
|
|
1879
|
-
},
|
|
1886
|
+
}, eo = {
|
|
1880
1887
|
key: 1,
|
|
1881
1888
|
class: "cl-inline-block cl-whitespace-nowrap"
|
|
1882
1889
|
}, Ge = /* @__PURE__ */ M({
|
|
@@ -1887,54 +1894,54 @@ const Pt = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, Ft = { class: "cl-gap-1
|
|
|
1887
1894
|
timeZone: {}
|
|
1888
1895
|
},
|
|
1889
1896
|
setup(t) {
|
|
1890
|
-
const o = t, { t:
|
|
1891
|
-
function m(
|
|
1892
|
-
const
|
|
1893
|
-
locale:
|
|
1897
|
+
const o = t, { t: e, locale: l, n: s } = oe();
|
|
1898
|
+
function m(n, a) {
|
|
1899
|
+
const c = $e.fromISO(n, {
|
|
1900
|
+
locale: l.value
|
|
1894
1901
|
}).setZone(o.timeZone);
|
|
1895
|
-
let
|
|
1902
|
+
let u = "";
|
|
1896
1903
|
switch (a) {
|
|
1897
|
-
case
|
|
1898
|
-
case
|
|
1899
|
-
|
|
1904
|
+
case G.SHORT_DATE:
|
|
1905
|
+
case G.DATE:
|
|
1906
|
+
u = c.toFormat("D");
|
|
1900
1907
|
break;
|
|
1901
|
-
case
|
|
1902
|
-
|
|
1908
|
+
case G.LONG_DATE:
|
|
1909
|
+
u = c.toFormat("DDD");
|
|
1903
1910
|
break;
|
|
1904
|
-
case
|
|
1905
|
-
case
|
|
1906
|
-
|
|
1911
|
+
case G.SHORT_DATETIME:
|
|
1912
|
+
case G.DATETIME:
|
|
1913
|
+
u = c.toFormat("f");
|
|
1907
1914
|
break;
|
|
1908
|
-
case
|
|
1909
|
-
|
|
1915
|
+
case G.LONG_DATETIME:
|
|
1916
|
+
u = c.toFormat("fff");
|
|
1910
1917
|
break;
|
|
1911
|
-
case
|
|
1912
|
-
|
|
1918
|
+
case G.TIME:
|
|
1919
|
+
u = c.toFormat("t");
|
|
1913
1920
|
break;
|
|
1914
1921
|
}
|
|
1915
|
-
return
|
|
1922
|
+
return u;
|
|
1916
1923
|
}
|
|
1917
|
-
return (
|
|
1918
|
-
var
|
|
1919
|
-
return
|
|
1924
|
+
return (n, a) => {
|
|
1925
|
+
var c;
|
|
1926
|
+
return n.column.type === "slot" ? j(n.$slots, n.column.name, { key: 0 }) : n.column.type === "boolean" && n.column.field !== void 0 ? (i(), V(ae, {
|
|
1920
1927
|
key: 1,
|
|
1921
1928
|
"input-type": "checkbox",
|
|
1922
|
-
"model-value":
|
|
1929
|
+
"model-value": n.data[n.column.field],
|
|
1923
1930
|
disabled: !0
|
|
1924
|
-
}, null, 8, ["model-value"])) : (
|
|
1925
|
-
|
|
1926
|
-
ee(T(m(
|
|
1927
|
-
], 64)) :
|
|
1928
|
-
ee(T(m(
|
|
1929
|
-
], 64)) : (
|
|
1930
|
-
ee(T(m(
|
|
1931
|
+
}, null, 8, ["model-value"])) : (n.column.type === "date" || n.column.type === "datetime") && n.column.field !== void 0 ? (i(), v(F, { key: 2 }, [
|
|
1932
|
+
n.column.format !== void 0 ? (i(), v(F, { key: 0 }, [
|
|
1933
|
+
ee(T(m(n.data[n.column.field], n.column.format)), 1)
|
|
1934
|
+
], 64)) : n.column.type === "date" ? (i(), v(F, { key: 1 }, [
|
|
1935
|
+
ee(T(m(n.data[n.column.field], d(G).DATE)), 1)
|
|
1936
|
+
], 64)) : (i(), v(F, { key: 2 }, [
|
|
1937
|
+
ee(T(m(n.data[n.column.field], d(G).DATETIME)), 1)
|
|
1931
1938
|
], 64))
|
|
1932
|
-
], 64)) :
|
|
1933
|
-
|
|
1939
|
+
], 64)) : n.column.type === "list" && n.column.field !== void 0 && n.column.listEntries !== void 0 ? (i(), v("span", Jt, T(d(e)(((c = n.column.listEntries.find((u) => u.value === n.data[n.column.field])) == null ? void 0 : c.translationKey) ?? "")), 1)) : n.column.type === "number" && n.column.field !== void 0 ? (i(), v("span", Yt, T(d(s)(n.data[n.column.field], n.column.format ?? d(Y).DECIMAL)), 1)) : n.column.field !== void 0 ? (i(), v(F, { key: 5 }, [
|
|
1940
|
+
n.column.maxLength !== void 0 ? (i(), v("span", Xt, T(n.data[n.column.field].trimToLength(n.column.maxLength, n.column.format !== void 0 ? n.column.format === "ellipsis" : !1)), 1)) : (i(), v("span", eo, T(n.data[n.column.field]), 1))
|
|
1934
1941
|
], 64)) : N("", !0);
|
|
1935
1942
|
};
|
|
1936
1943
|
}
|
|
1937
|
-
}),
|
|
1944
|
+
}), lo = { class: "cl-font-semibold lg:cl-hidden" }, to = /* @__PURE__ */ M({
|
|
1938
1945
|
__name: "cl-ui-grid-cell",
|
|
1939
1946
|
props: {
|
|
1940
1947
|
data: {},
|
|
@@ -1944,30 +1951,30 @@ const Pt = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, Ft = { class: "cl-gap-1
|
|
|
1944
1951
|
},
|
|
1945
1952
|
emits: ["edit", "focus", "undo"],
|
|
1946
1953
|
setup(t, { emit: o }) {
|
|
1947
|
-
const
|
|
1954
|
+
const e = t, { t: l } = oe(), s = A(re(e.data)), m = S(() => e.column.field !== void 0 && s.value[e.column.field] !== e.data[e.column.field]), n = S(() => {
|
|
1948
1955
|
var a;
|
|
1949
|
-
return ((a =
|
|
1950
|
-
id:
|
|
1951
|
-
name:
|
|
1956
|
+
return ((a = e.column.listEntries) == null ? void 0 : a.map((c, u) => ({
|
|
1957
|
+
id: u,
|
|
1958
|
+
name: l(c.translationKey)
|
|
1952
1959
|
}))) ?? [];
|
|
1953
1960
|
});
|
|
1954
|
-
return
|
|
1955
|
-
const
|
|
1956
|
-
|
|
1961
|
+
return al(() => s.value = re(e.data)), K(s, (a) => {
|
|
1962
|
+
const c = e.column.field ?? "";
|
|
1963
|
+
c !== "" && (a[c] !== e.data[c] ? o("edit", a[c]) : o("undo"));
|
|
1957
1964
|
}, {
|
|
1958
1965
|
deep: !0
|
|
1959
|
-
}), (a,
|
|
1960
|
-
class:
|
|
1966
|
+
}), (a, c) => (i(), v("td", {
|
|
1967
|
+
class: I(["cl-border-b cl-border-grey-1 cl-gap-1 cl-grid cl-grid-cols-2 cl-m-1 cl-mb-0 cl-py-2 cl-text-xs lg:cl-border-b-0 lg:cl-m-0 lg:cl-px-1 lg:cl-table-cell lg:cl-text-base", {
|
|
1961
1968
|
"cl-bg-link-lighter": m.value
|
|
1962
1969
|
}])
|
|
1963
1970
|
}, [
|
|
1964
|
-
p("span",
|
|
1971
|
+
p("span", lo, T(a.column.caption), 1),
|
|
1965
1972
|
a.editMode && a.column.editable === !0 ? j(a.$slots, `${a.column.name}Edit`, le(se({ key: 0 }, {
|
|
1966
1973
|
cellFocused: () => o("focus"),
|
|
1967
1974
|
column: a.column,
|
|
1968
1975
|
edited: m.value,
|
|
1969
|
-
record:
|
|
1970
|
-
listEntries:
|
|
1976
|
+
record: s.value,
|
|
1977
|
+
listEntries: n.value
|
|
1971
1978
|
})), () => [
|
|
1972
1979
|
k(Ge, {
|
|
1973
1980
|
column: a.column,
|
|
@@ -1979,7 +1986,7 @@ const Pt = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, Ft = { class: "cl-gap-1
|
|
|
1979
1986
|
]),
|
|
1980
1987
|
_: 2
|
|
1981
1988
|
}, 1032, ["column", "data", "time-zone"])
|
|
1982
|
-
]) : (
|
|
1989
|
+
]) : (i(), V(Ge, {
|
|
1983
1990
|
key: 1,
|
|
1984
1991
|
column: a.column,
|
|
1985
1992
|
data: a.data,
|
|
@@ -1992,7 +1999,7 @@ const Pt = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, Ft = { class: "cl-gap-1
|
|
|
1992
1999
|
}, 1032, ["column", "data", "time-zone"]))
|
|
1993
2000
|
], 2));
|
|
1994
2001
|
}
|
|
1995
|
-
}),
|
|
2002
|
+
}), oo = /* @__PURE__ */ M({
|
|
1996
2003
|
__name: "cl-ui-grid-row",
|
|
1997
2004
|
props: {
|
|
1998
2005
|
data: {},
|
|
@@ -2002,30 +2009,30 @@ const Pt = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, Ft = { class: "cl-gap-1
|
|
|
2002
2009
|
},
|
|
2003
2010
|
emits: ["cell-focus", "cell-edit", "cell-undo", "row-select"],
|
|
2004
2011
|
setup(t) {
|
|
2005
|
-
return (o,
|
|
2006
|
-
(
|
|
2007
|
-
key:
|
|
2012
|
+
return (o, e) => (i(), v("tr", null, [
|
|
2013
|
+
(i(!0), v(F, null, Q(o.columns, (l, s) => (i(), V(to, {
|
|
2014
|
+
key: s,
|
|
2008
2015
|
data: o.data,
|
|
2009
|
-
column:
|
|
2016
|
+
column: l,
|
|
2010
2017
|
"time-zone": o.timeZone,
|
|
2011
2018
|
"edit-mode": o.editMode,
|
|
2012
|
-
onFocus:
|
|
2013
|
-
onEdit: (m) => o.$emit("cell-edit", { field:
|
|
2014
|
-
onUndo: (m) => o.$emit("cell-undo",
|
|
2019
|
+
onFocus: e[0] || (e[0] = (m) => o.$emit("cell-focus")),
|
|
2020
|
+
onEdit: (m) => o.$emit("cell-edit", { field: l.field, value: m }),
|
|
2021
|
+
onUndo: (m) => o.$emit("cell-undo", l.field)
|
|
2015
2022
|
}, Re({ _: 2 }, [
|
|
2016
|
-
Q(o.$slots, (m,
|
|
2017
|
-
name:
|
|
2023
|
+
Q(o.$slots, (m, n) => ({
|
|
2024
|
+
name: n,
|
|
2018
2025
|
fn: P((a) => [
|
|
2019
|
-
j(o.$slots,
|
|
2026
|
+
j(o.$slots, n, le(ne(a)))
|
|
2020
2027
|
])
|
|
2021
2028
|
}))
|
|
2022
2029
|
]), 1032, ["data", "column", "time-zone", "edit-mode", "onEdit", "onUndo"]))), 128))
|
|
2023
2030
|
]));
|
|
2024
2031
|
}
|
|
2025
|
-
}),
|
|
2032
|
+
}), no = { key: 1 }, so = ["colspan"], ao = { class: "cl-flex cl-flex-wrap cl-justify-center cl-text-center cl-text-sm cl-w-full" }, ro = { class: "cl-mt-6 cl-w-full" }, co = {
|
|
2026
2033
|
key: 0,
|
|
2027
2034
|
class: "cl-mt-4"
|
|
2028
|
-
},
|
|
2035
|
+
}, io = { class: "cl-mb-2 cl-w-full" }, uo = /* @__PURE__ */ M({
|
|
2029
2036
|
__name: "cl-ui-grid-body",
|
|
2030
2037
|
props: {
|
|
2031
2038
|
columns: {},
|
|
@@ -2038,37 +2045,37 @@ const Pt = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, Ft = { class: "cl-gap-1
|
|
|
2038
2045
|
},
|
|
2039
2046
|
emits: ["row-select", "row-edit", "clear-filters"],
|
|
2040
2047
|
setup(t, { emit: o }) {
|
|
2041
|
-
const
|
|
2048
|
+
const e = t, { t: l } = oe(), s = A({
|
|
2042
2049
|
index: -1,
|
|
2043
2050
|
record: {}
|
|
2044
2051
|
});
|
|
2045
2052
|
function m() {
|
|
2046
|
-
Object.keys(
|
|
2053
|
+
Object.keys(s.value.record).length !== 0 && (o("row-edit", re(s.value)), s.value.record = {});
|
|
2047
2054
|
}
|
|
2048
|
-
function
|
|
2049
|
-
|
|
2055
|
+
function n(r) {
|
|
2056
|
+
s.value.index !== -1 && s.value.index !== r && m(), s.value.index = r;
|
|
2050
2057
|
}
|
|
2051
2058
|
function a(r, w) {
|
|
2052
|
-
|
|
2059
|
+
n(r), w.field !== void 0 && (s.value.record[w.field] = w.value);
|
|
2053
2060
|
}
|
|
2054
|
-
function
|
|
2061
|
+
function c(r) {
|
|
2055
2062
|
if (r !== void 0) {
|
|
2056
|
-
const { [r]: w, ...h } =
|
|
2057
|
-
|
|
2063
|
+
const { [r]: w, ...h } = s.value.record;
|
|
2064
|
+
s.value.record = {
|
|
2058
2065
|
...h
|
|
2059
2066
|
};
|
|
2060
2067
|
}
|
|
2061
2068
|
}
|
|
2062
|
-
const
|
|
2063
|
-
K(() =>
|
|
2069
|
+
const u = A({});
|
|
2070
|
+
K(() => e.data, () => {
|
|
2064
2071
|
var r, w;
|
|
2065
|
-
return
|
|
2072
|
+
return u.value = Object.fromEntries(((w = (r = e.data) == null ? void 0 : r.results) == null ? void 0 : w.map((h, q) => [
|
|
2066
2073
|
[q],
|
|
2067
2074
|
{
|
|
2068
2075
|
count: 0,
|
|
2069
2076
|
target: null,
|
|
2070
|
-
reset:
|
|
2071
|
-
|
|
2077
|
+
reset: Ke(() => {
|
|
2078
|
+
u.value[q] && (u.value[q].count = 0, b(u.value[q].target), u.value[q].target = null);
|
|
2072
2079
|
}, 2500, { immediate: !1 })
|
|
2073
2080
|
}
|
|
2074
2081
|
])) ?? []);
|
|
@@ -2078,23 +2085,23 @@ const Pt = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, Ft = { class: "cl-gap-1
|
|
|
2078
2085
|
});
|
|
2079
2086
|
function g(r, w, h) {
|
|
2080
2087
|
const { currentTarget: q } = h;
|
|
2081
|
-
|
|
2088
|
+
e.selectionEnabled ? o("row-select", w) : (u.value[r].count++, u.value[r].target = q, u.value[r].count > 1 ? (u.value[r].reset.stop(), u.value[r].count = 0, b(q), u.value[r].target = null, o("row-select", w)) : (u.value[r].reset.start(), b(q)));
|
|
2082
2089
|
}
|
|
2083
2090
|
function b(r) {
|
|
2084
2091
|
r == null || r.classList.toggle("!cl-bg-link-lighter");
|
|
2085
2092
|
}
|
|
2086
|
-
return K(() =>
|
|
2087
|
-
|
|
2093
|
+
return K(() => e.editMode, () => {
|
|
2094
|
+
e.editMode || (m(), s.value.index = -1);
|
|
2088
2095
|
}), (r, w) => {
|
|
2089
2096
|
var h;
|
|
2090
|
-
return
|
|
2091
|
-
r.data && ((h = r.data.results) != null && h.length) ? (
|
|
2097
|
+
return i(), v("tbody", null, [
|
|
2098
|
+
r.data && ((h = r.data.results) != null && h.length) ? (i(!0), v(F, { key: 0 }, Q(r.data.results, (q, $) => (i(), V(oo, {
|
|
2092
2099
|
key: $,
|
|
2093
2100
|
data: q,
|
|
2094
2101
|
columns: r.columns,
|
|
2095
2102
|
"time-zone": r.timeZone,
|
|
2096
2103
|
"edit-mode": r.editMode,
|
|
2097
|
-
class:
|
|
2104
|
+
class: I(["cl-bg-opacity-100 cl-cursor-pointer cl-transition-colors", {
|
|
2098
2105
|
"cl-bg-white": $ % 2 === 0 && r.data.totalRecords > 1,
|
|
2099
2106
|
"cl-bg-off-white": $ % 2 === 1 || r.data.totalRecords === 1,
|
|
2100
2107
|
"cl-cursor-pointer hover:cl-bg-link-lighter": r.selectionEnabled && !r.editMode
|
|
@@ -2103,12 +2110,12 @@ const Pt = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, Ft = { class: "cl-gap-1
|
|
|
2103
2110
|
r.editMode || g($, q, R);
|
|
2104
2111
|
},
|
|
2105
2112
|
onCellFocus: (R) => {
|
|
2106
|
-
|
|
2113
|
+
n($);
|
|
2107
2114
|
},
|
|
2108
2115
|
onCellEdit: (R) => {
|
|
2109
2116
|
a($, R);
|
|
2110
2117
|
},
|
|
2111
|
-
onCellUndo:
|
|
2118
|
+
onCellUndo: c
|
|
2112
2119
|
}, Re({ _: 2 }, [
|
|
2113
2120
|
Q(r.$slots, (R, O) => ({
|
|
2114
2121
|
name: O,
|
|
@@ -2116,35 +2123,35 @@ const Pt = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, Ft = { class: "cl-gap-1
|
|
|
2116
2123
|
j(r.$slots, O, le(ne(z)))
|
|
2117
2124
|
])
|
|
2118
2125
|
}))
|
|
2119
|
-
]), 1032, ["data", "columns", "time-zone", "edit-mode", "class", "onClick", "onCellFocus", "onCellEdit"]))), 128)) : r.loading ? N("", !0) : (
|
|
2126
|
+
]), 1032, ["data", "columns", "time-zone", "edit-mode", "class", "onClick", "onCellFocus", "onCellEdit"]))), 128)) : r.loading ? N("", !0) : (i(), v("tr", no, [
|
|
2120
2127
|
p("td", {
|
|
2121
2128
|
colspan: r.columns.length
|
|
2122
2129
|
}, [
|
|
2123
|
-
p("div",
|
|
2124
|
-
p("strong",
|
|
2125
|
-
r.request.filters.length > 0 ? (
|
|
2126
|
-
p("div",
|
|
2130
|
+
p("div", ao, [
|
|
2131
|
+
p("strong", ro, T(d(l)("grid.noData")), 1),
|
|
2132
|
+
r.request.filters.length > 0 ? (i(), v("div", co, [
|
|
2133
|
+
p("div", io, T(d(l)("grid.noDataFiltersPresent")), 1),
|
|
2127
2134
|
k(fe, {
|
|
2128
2135
|
size: "small",
|
|
2129
2136
|
colour: "danger",
|
|
2130
2137
|
onClick: w[0] || (w[0] = W((q) => r.$emit("clear-filters"), ["prevent"]))
|
|
2131
2138
|
}, {
|
|
2132
2139
|
default: P(() => [
|
|
2133
|
-
ee(T(d(
|
|
2140
|
+
ee(T(d(l)("grid.clearFilters")), 1)
|
|
2134
2141
|
]),
|
|
2135
2142
|
_: 1
|
|
2136
2143
|
})
|
|
2137
2144
|
])) : N("", !0)
|
|
2138
2145
|
])
|
|
2139
|
-
], 8,
|
|
2146
|
+
], 8, so)
|
|
2140
2147
|
]))
|
|
2141
2148
|
]);
|
|
2142
2149
|
};
|
|
2143
2150
|
}
|
|
2144
|
-
}),
|
|
2151
|
+
}), po = {
|
|
2145
2152
|
key: 0,
|
|
2146
2153
|
class: "cl-flex cl-flex-wrap cl-justify-end cl-mt-2 cl-w-full"
|
|
2147
|
-
},
|
|
2154
|
+
}, fo = { 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" }, mo = { class: "cl-text-grey-3 cl-w-max" }, go = { 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" }, vo = { 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" }, bo = { class: "cl-flex cl-flex-wrap cl-mb-2 cl-w-full lg:cl-mb-0 lg:cl-mr-2 lg:cl-w-auto" }, ho = { class: "cl-text-grey-3 cl-w-full lg:cl-mr-2 lg:cl-w-auto" }, yo = { class: "cl-flex cl-flex-wrap cl-text-sm mb:cl-flex-nowrap" }, wo = { class: "cl-pr-2" }, $o = ["onClick"], ko = { 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" }, Co = { class: "cl-mb-2 cl-text-grey-3 cl-w-full lg:cl-mb-0 lg:cl-mr-2 lg:cl-w-auto" }, To = ["onClick"], Eo = { class: "cl-mb-2 cl-w-full lg:cl-p-2 md:cl-mb-0 md:cl-w-auto" }, Oo = { 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" }, qo = { class: "cl-block lg:cl-inline-block" }, Ao = /* @__PURE__ */ M({
|
|
2148
2155
|
__name: "cl-ui-grid-footer",
|
|
2149
2156
|
props: {
|
|
2150
2157
|
request: {},
|
|
@@ -2154,27 +2161,27 @@ const Pt = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, Ft = { class: "cl-gap-1
|
|
|
2154
2161
|
"update:request": null
|
|
2155
2162
|
},
|
|
2156
2163
|
setup(t, { emit: o }) {
|
|
2157
|
-
const
|
|
2164
|
+
const e = t, { n: l, t: s } = oe(), m = S(() => {
|
|
2158
2165
|
var r;
|
|
2159
|
-
return
|
|
2160
|
-
}),
|
|
2166
|
+
return e.data !== null ? Math.ceil((((r = e.data) == null ? void 0 : r.totalRecords) ?? 0) / e.request.pageSize) : 1;
|
|
2167
|
+
}), n = S(() => {
|
|
2161
2168
|
const r = Array.from(Array(m.value + 1).keys());
|
|
2162
2169
|
let w = [];
|
|
2163
2170
|
if (r.shift(), r.length) {
|
|
2164
|
-
const h =
|
|
2171
|
+
const h = e.request.pageNumber === m.value || e.request.pageNumber === m.value - 1 ? m.value - 3 : e.request.pageNumber - 1;
|
|
2165
2172
|
w = r.slice(h, h + 3);
|
|
2166
2173
|
}
|
|
2167
2174
|
return w;
|
|
2168
2175
|
});
|
|
2169
2176
|
function a(r) {
|
|
2170
|
-
const w = re(
|
|
2177
|
+
const w = re(e.request);
|
|
2171
2178
|
w.pageNumber !== r && (w.pageNumber = Math.max(Math.min(Math.trunc(r), m.value), 1), o("update:request", w));
|
|
2172
2179
|
}
|
|
2173
|
-
function
|
|
2180
|
+
function c(r) {
|
|
2174
2181
|
const w = parseInt(r == null ? void 0 : r.value) || 1;
|
|
2175
2182
|
a(w);
|
|
2176
2183
|
}
|
|
2177
|
-
const
|
|
2184
|
+
const u = [
|
|
2178
2185
|
5,
|
|
2179
2186
|
10,
|
|
2180
2187
|
20,
|
|
@@ -2183,15 +2190,15 @@ const Pt = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, Ft = { class: "cl-gap-1
|
|
|
2183
2190
|
200
|
|
2184
2191
|
];
|
|
2185
2192
|
function g(r) {
|
|
2186
|
-
const w = re(
|
|
2193
|
+
const w = re(e.request);
|
|
2187
2194
|
w.pageSize = r, w.pageNumber = 1, o("update:request", w);
|
|
2188
2195
|
}
|
|
2189
|
-
const b =
|
|
2196
|
+
const b = Qe(c, 750);
|
|
2190
2197
|
return (r, w) => {
|
|
2191
2198
|
var h, q;
|
|
2192
|
-
return (q = (h = r.data) == null ? void 0 : h.results) != null && q.length && r.request ? (
|
|
2193
|
-
p("div",
|
|
2194
|
-
p("span",
|
|
2199
|
+
return (q = (h = r.data) == null ? void 0 : h.results) != null && q.length && r.request ? (i(), v("div", po, [
|
|
2200
|
+
p("div", fo, [
|
|
2201
|
+
p("span", mo, T(d(s)("grid.jumpToPage")), 1),
|
|
2195
2202
|
k(ae, {
|
|
2196
2203
|
"model-value": r.request.pageNumber,
|
|
2197
2204
|
class: "cl-ml-1 cl-mt-0.5 cl-text-sm",
|
|
@@ -2203,18 +2210,18 @@ const Pt = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, Ft = { class: "cl-gap-1
|
|
|
2203
2210
|
onInput: w[0] || (w[0] = ($) => d(b)($.target))
|
|
2204
2211
|
}, null, 8, ["model-value", "max"])
|
|
2205
2212
|
]),
|
|
2206
|
-
p("div",
|
|
2207
|
-
p("div",
|
|
2208
|
-
p("li",
|
|
2209
|
-
p("span",
|
|
2213
|
+
p("div", go, [
|
|
2214
|
+
p("div", vo, [
|
|
2215
|
+
p("li", bo, [
|
|
2216
|
+
p("span", ho, T(d(s)("grid.page")), 1)
|
|
2210
2217
|
]),
|
|
2211
|
-
p("ul",
|
|
2212
|
-
p("li",
|
|
2218
|
+
p("ul", yo, [
|
|
2219
|
+
p("li", wo, T(d(l)(r.request.pageNumber, d(Y).INTEGER)) + " / " + T(d(l)(m.value, d(Y).INTEGER)), 1),
|
|
2213
2220
|
L(p("li", {
|
|
2214
2221
|
class: "cl-cursor-pointer cl-mr-1 cl-mt-1 lg:cl-mr-2",
|
|
2215
2222
|
onClick: w[1] || (w[1] = ($) => a(1))
|
|
2216
2223
|
}, [
|
|
2217
|
-
k(d(
|
|
2224
|
+
k(d(_), {
|
|
2218
2225
|
icon: "ph:caret-double-left",
|
|
2219
2226
|
size: 14
|
|
2220
2227
|
})
|
|
@@ -2225,26 +2232,26 @@ const Pt = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, Ft = { class: "cl-gap-1
|
|
|
2225
2232
|
class: "cl-cursor-pointer cl-mt-1 lg:cl-mr-2 mr-1",
|
|
2226
2233
|
onClick: w[2] || (w[2] = ($) => a(r.request.pageNumber - 1))
|
|
2227
2234
|
}, [
|
|
2228
|
-
k(d(
|
|
2235
|
+
k(d(_), {
|
|
2229
2236
|
icon: "ph:caret-left",
|
|
2230
2237
|
size: 14
|
|
2231
2238
|
})
|
|
2232
2239
|
], 512), [
|
|
2233
2240
|
[H, r.request.pageNumber > 1]
|
|
2234
2241
|
]),
|
|
2235
|
-
(
|
|
2242
|
+
(i(!0), v(F, null, Q(n.value, ($, R) => (i(), v("li", {
|
|
2236
2243
|
key: R,
|
|
2237
|
-
class:
|
|
2244
|
+
class: I(["cl-cursor-pointer cl-mr-1 lg:cl-mr-2", {
|
|
2238
2245
|
"cl-text-black cl-font-bold": r.request.pageNumber === $,
|
|
2239
2246
|
"cl-text-grey-6": r.request.pageNumber !== $
|
|
2240
2247
|
}]),
|
|
2241
2248
|
onClick: (O) => a($)
|
|
2242
|
-
}, T(d(
|
|
2249
|
+
}, T(d(l)($, d(Y).INTEGER)), 11, $o))), 128)),
|
|
2243
2250
|
L(p("li", {
|
|
2244
2251
|
class: "cl-cursor-pointer cl-mr-1 cl-mt-1 lg:cl-mr-2",
|
|
2245
2252
|
onClick: w[3] || (w[3] = ($) => a(r.request.pageNumber + 1))
|
|
2246
2253
|
}, [
|
|
2247
|
-
k(d(
|
|
2254
|
+
k(d(_), {
|
|
2248
2255
|
icon: "ph:caret-right",
|
|
2249
2256
|
size: 14
|
|
2250
2257
|
})
|
|
@@ -2255,7 +2262,7 @@ const Pt = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, Ft = { class: "cl-gap-1
|
|
|
2255
2262
|
class: "cl-cursor-pointer cl-mr-1 cl-mt-1 lg:cl-mr-2",
|
|
2256
2263
|
onClick: w[4] || (w[4] = ($) => a(m.value))
|
|
2257
2264
|
}, [
|
|
2258
|
-
k(d(
|
|
2265
|
+
k(d(_), {
|
|
2259
2266
|
icon: "ph:caret-double-right",
|
|
2260
2267
|
size: 14
|
|
2261
2268
|
})
|
|
@@ -2264,26 +2271,26 @@ const Pt = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, Ft = { class: "cl-gap-1
|
|
|
2264
2271
|
])
|
|
2265
2272
|
])
|
|
2266
2273
|
]),
|
|
2267
|
-
p("ul",
|
|
2268
|
-
p("li",
|
|
2269
|
-
(
|
|
2274
|
+
p("ul", ko, [
|
|
2275
|
+
p("li", Co, T(d(s)("grid.pageSize")), 1),
|
|
2276
|
+
(i(), v(F, null, Q(u, ($, R) => p("li", {
|
|
2270
2277
|
key: R,
|
|
2271
|
-
class:
|
|
2278
|
+
class: I(["cl-cursor-pointer cl-mr-1 lg:cl-mr-2", {
|
|
2272
2279
|
"cl-text-black cl-font-bold": r.request.pageSize === $,
|
|
2273
2280
|
"cl-text-grey-6": r.request.pageSize !== $
|
|
2274
2281
|
}]),
|
|
2275
2282
|
onClick: (O) => g($)
|
|
2276
|
-
}, T(d(
|
|
2283
|
+
}, T(d(l)($, d(Y).INTEGER)), 11, To)), 64))
|
|
2277
2284
|
]),
|
|
2278
|
-
p("ul",
|
|
2279
|
-
p("li",
|
|
2280
|
-
p("li",
|
|
2285
|
+
p("ul", Eo, [
|
|
2286
|
+
p("li", Oo, T(d(s)("grid.totalRecords")), 1),
|
|
2287
|
+
p("li", qo, T(d(l)(r.data.totalRecords, d(Y).INTEGER)), 1)
|
|
2281
2288
|
])
|
|
2282
2289
|
])
|
|
2283
2290
|
])) : N("", !0);
|
|
2284
2291
|
};
|
|
2285
2292
|
}
|
|
2286
|
-
}),
|
|
2293
|
+
}), So = [
|
|
2287
2294
|
"string",
|
|
2288
2295
|
"boolean",
|
|
2289
2296
|
"number",
|
|
@@ -2292,23 +2299,23 @@ const Pt = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, Ft = { class: "cl-gap-1
|
|
|
2292
2299
|
"list",
|
|
2293
2300
|
"slot"
|
|
2294
2301
|
];
|
|
2295
|
-
function
|
|
2302
|
+
function el(t) {
|
|
2296
2303
|
return typeof t.caption == "string" && typeof t.name == "string" && typeof t.type == "string";
|
|
2297
2304
|
}
|
|
2298
|
-
function
|
|
2305
|
+
function No(t) {
|
|
2299
2306
|
let o = Array.isArray(t);
|
|
2300
2307
|
if (o) {
|
|
2301
|
-
for (const
|
|
2302
|
-
if (!
|
|
2308
|
+
for (const e of t)
|
|
2309
|
+
if (!el(e)) {
|
|
2303
2310
|
o = !1;
|
|
2304
2311
|
break;
|
|
2305
2312
|
}
|
|
2306
2313
|
}
|
|
2307
2314
|
return o;
|
|
2308
2315
|
}
|
|
2309
|
-
const
|
|
2316
|
+
const jo = ["ellipsis"];
|
|
2310
2317
|
var te = /* @__PURE__ */ ((t) => (t[t.CONTAINS = 0] = "CONTAINS", t[t.NOT_CONTAINS = 1] = "NOT_CONTAINS", t[t.EQUAL = 2] = "EQUAL", t[t.NOT_EQUAL = 3] = "NOT_EQUAL", t[t.STARTS_WITH = 4] = "STARTS_WITH", t[t.ENDS_WITH = 5] = "ENDS_WITH", t[t.GREATER_THAN = 6] = "GREATER_THAN", t[t.LESS_THAN = 7] = "LESS_THAN", t[t.EQUAL_OR_GREATER_THAN = 8] = "EQUAL_OR_GREATER_THAN", t[t.EQUAL_OR_LESS_THAN = 9] = "EQUAL_OR_LESS_THAN", t))(te || {});
|
|
2311
|
-
const
|
|
2318
|
+
const Io = [
|
|
2312
2319
|
"equal",
|
|
2313
2320
|
"notequal",
|
|
2314
2321
|
"contains",
|
|
@@ -2320,35 +2327,35 @@ const No = [
|
|
|
2320
2327
|
"equalorlessthan",
|
|
2321
2328
|
"equalorgreaterthan"
|
|
2322
2329
|
];
|
|
2323
|
-
function
|
|
2330
|
+
function _o(t) {
|
|
2324
2331
|
return typeof t.filterOnColumn == "string" && typeof t.filterOperation == "number" && typeof t.filterValue == "string";
|
|
2325
2332
|
}
|
|
2326
|
-
function
|
|
2333
|
+
function Ro(t) {
|
|
2327
2334
|
return t === null || typeof t.sortByAscending == "boolean" && typeof t.sortOnColumn == "string";
|
|
2328
2335
|
}
|
|
2329
|
-
function
|
|
2330
|
-
let o = typeof t.filters == "object" && Array.isArray(t.filters) && typeof t.pageNumber == "number" && typeof t.pageSize == "number" && typeof t.sort == "object" &&
|
|
2336
|
+
function zo(t) {
|
|
2337
|
+
let o = typeof t.filters == "object" && Array.isArray(t.filters) && typeof t.pageNumber == "number" && typeof t.pageSize == "number" && typeof t.sort == "object" && Ro(t.sort);
|
|
2331
2338
|
if (o) {
|
|
2332
|
-
for (const
|
|
2333
|
-
if (!
|
|
2339
|
+
for (const e of t.filters)
|
|
2340
|
+
if (!_o(e)) {
|
|
2334
2341
|
o = !1;
|
|
2335
2342
|
break;
|
|
2336
2343
|
}
|
|
2337
2344
|
}
|
|
2338
2345
|
return o;
|
|
2339
2346
|
}
|
|
2340
|
-
function
|
|
2341
|
-
let
|
|
2342
|
-
if (
|
|
2343
|
-
for (const
|
|
2344
|
-
if (!o(
|
|
2345
|
-
|
|
2347
|
+
function Uo(t, o) {
|
|
2348
|
+
let e = typeof t.results == "object" && Array.isArray(t.results) && typeof t.totalRecords == "number";
|
|
2349
|
+
if (e) {
|
|
2350
|
+
for (const l of t.results)
|
|
2351
|
+
if (!o(l)) {
|
|
2352
|
+
e = !1;
|
|
2346
2353
|
break;
|
|
2347
2354
|
}
|
|
2348
2355
|
}
|
|
2349
|
-
return
|
|
2356
|
+
return e;
|
|
2350
2357
|
}
|
|
2351
|
-
const
|
|
2358
|
+
const Bo = {
|
|
2352
2359
|
method: "equal",
|
|
2353
2360
|
icon: "mdi:equal",
|
|
2354
2361
|
description: "Equals",
|
|
@@ -2361,12 +2368,12 @@ const zo = {
|
|
|
2361
2368
|
"list"
|
|
2362
2369
|
],
|
|
2363
2370
|
key: "equal"
|
|
2364
|
-
},
|
|
2371
|
+
}, Mo = {
|
|
2365
2372
|
method: "contains",
|
|
2366
2373
|
icon: "mdi:format-letter-matches",
|
|
2367
2374
|
description: "Contains",
|
|
2368
2375
|
allowedTypes: ["string"]
|
|
2369
|
-
},
|
|
2376
|
+
}, Vo = {
|
|
2370
2377
|
method: "lessthan",
|
|
2371
2378
|
icon: "mdi:less-than",
|
|
2372
2379
|
description: "Before",
|
|
@@ -2375,8 +2382,8 @@ const zo = {
|
|
|
2375
2382
|
"datetime"
|
|
2376
2383
|
],
|
|
2377
2384
|
key: "before"
|
|
2378
|
-
},
|
|
2379
|
-
|
|
2385
|
+
}, Ze = [
|
|
2386
|
+
Mo,
|
|
2380
2387
|
{
|
|
2381
2388
|
method: "notcontains",
|
|
2382
2389
|
icon: "mdi:format-letter-spacing-variant",
|
|
@@ -2395,7 +2402,7 @@ const zo = {
|
|
|
2395
2402
|
description: "Ends with",
|
|
2396
2403
|
allowedTypes: ["string"]
|
|
2397
2404
|
},
|
|
2398
|
-
|
|
2405
|
+
Bo,
|
|
2399
2406
|
{
|
|
2400
2407
|
method: "notequal",
|
|
2401
2408
|
icon: "mdi:not-equal",
|
|
@@ -2408,7 +2415,7 @@ const zo = {
|
|
|
2408
2415
|
],
|
|
2409
2416
|
key: "notequal"
|
|
2410
2417
|
},
|
|
2411
|
-
|
|
2418
|
+
Vo,
|
|
2412
2419
|
{
|
|
2413
2420
|
method: "greaterthan",
|
|
2414
2421
|
icon: "mdi:greater-than",
|
|
@@ -2463,7 +2470,7 @@ const zo = {
|
|
|
2463
2470
|
description: "Less than",
|
|
2464
2471
|
allowedTypes: ["number"]
|
|
2465
2472
|
}
|
|
2466
|
-
],
|
|
2473
|
+
], Do = { class: "cl-group cl-inline cl-relative cl-w-auto" }, Lo = { class: "cl-bg-off-white cl-border-grey-1 cl-border-r cl-flex cl-h-full cl-items-center cl-justify-center cl-rounded-md cl-w-10" }, Po = { class: "cl-p-2 cl-select-none" }, Fo = ["onClick"], Ho = /* @__PURE__ */ M({
|
|
2467
2474
|
__name: "cl-ui-grid-method-selector",
|
|
2468
2475
|
props: {
|
|
2469
2476
|
filter: {},
|
|
@@ -2473,77 +2480,77 @@ const zo = {
|
|
|
2473
2480
|
},
|
|
2474
2481
|
emits: ["update:filter"],
|
|
2475
2482
|
setup(t, { emit: o }) {
|
|
2476
|
-
const
|
|
2483
|
+
const e = t, { t: l } = oe(), s = S(() => {
|
|
2477
2484
|
let a = [];
|
|
2478
|
-
return
|
|
2479
|
-
|
|
2480
|
-
}) : a.forEach((
|
|
2481
|
-
|
|
2485
|
+
return e.column.type !== "slot" ? a = Ze.filter((c) => c.allowedTypes.includes(e.column.type)) : typeof e.column.slotType < "u" && typeof e.column.field < "u" && (a = Ze.filter((c) => c.allowedTypes.includes(e.column.slotType))), e.column.type === "date" || e.column.type === "datetime" || e.column.slotType === "date" || e.column.slotType === "datetime" ? a.forEach((c) => {
|
|
2486
|
+
c.description = l(`grid.${c.key}`);
|
|
2487
|
+
}) : a.forEach((c) => {
|
|
2488
|
+
c.description = l(`grid.${c.method}`);
|
|
2482
2489
|
}), a;
|
|
2483
2490
|
}), m = S(() => {
|
|
2484
|
-
var
|
|
2485
|
-
let a = (
|
|
2486
|
-
return typeof a > "u" && (a = te[
|
|
2491
|
+
var c;
|
|
2492
|
+
let a = (c = e.filter) == null ? void 0 : c.filterMethod;
|
|
2493
|
+
return typeof a > "u" && (a = te[e.defaultOperation].toLowerCase()), s.value.find((u) => {
|
|
2487
2494
|
var g;
|
|
2488
|
-
return
|
|
2495
|
+
return u.method.toLowerCase() === ((g = a == null ? void 0 : a.removeNonAlphanumeric()) == null ? void 0 : g.toLowerCase());
|
|
2489
2496
|
});
|
|
2490
2497
|
});
|
|
2491
|
-
function
|
|
2492
|
-
let
|
|
2493
|
-
if (
|
|
2494
|
-
|
|
2495
|
-
else if (typeof
|
|
2496
|
-
|
|
2497
|
-
filterOnColumn:
|
|
2498
|
+
function n(a) {
|
|
2499
|
+
let c;
|
|
2500
|
+
if (e.filter)
|
|
2501
|
+
c = re(e.filter), c.filterOperation = te[a.toUpperCase()], c.filterMethod = a.toLowerCase();
|
|
2502
|
+
else if (typeof e.column.field < "u")
|
|
2503
|
+
c = {
|
|
2504
|
+
filterOnColumn: e.column.field,
|
|
2498
2505
|
filterMethod: a.toLowerCase(),
|
|
2499
2506
|
filterOperation: te[a.toUpperCase()],
|
|
2500
2507
|
filterValue: ""
|
|
2501
2508
|
};
|
|
2502
2509
|
else
|
|
2503
2510
|
return;
|
|
2504
|
-
o("update:filter",
|
|
2511
|
+
o("update:filter", c);
|
|
2505
2512
|
}
|
|
2506
|
-
return (a,
|
|
2507
|
-
p("div",
|
|
2508
|
-
m.value ? (
|
|
2513
|
+
return (a, c) => (i(), v("div", Do, [
|
|
2514
|
+
p("div", Lo, [
|
|
2515
|
+
m.value ? (i(), V(d(_), {
|
|
2509
2516
|
key: 0,
|
|
2510
2517
|
icon: m.value.icon,
|
|
2511
|
-
class:
|
|
2512
|
-
"cl-text-grey-4":
|
|
2513
|
-
"cl-text-primary-default":
|
|
2518
|
+
class: I(["cl-text-lg", {
|
|
2519
|
+
"cl-text-grey-4": e.filter === void 0 || e.filter.filterValue === "",
|
|
2520
|
+
"cl-text-primary-default": e.filter && e.filter.filterValue !== ""
|
|
2514
2521
|
}])
|
|
2515
2522
|
}, null, 8, ["icon", "class"])) : N("", !0)
|
|
2516
2523
|
]),
|
|
2517
2524
|
p("div", {
|
|
2518
|
-
class:
|
|
2525
|
+
class: I(["cl-absolute cl-bg-white cl-border cl-border-grey-0 cl-flex-wrap cl-font-normal cl-h-0 cl-hidden cl-rounded cl-shadow-lg cl-text-left cl-text-xs cl-top-8 cl-z-10 group-hover:cl-flex group-hover:cl-h-auto group-hover:cl-w-52", {
|
|
2519
2526
|
"cl-left-0": a.firstHalf,
|
|
2520
2527
|
"cl--left-44": !a.firstHalf
|
|
2521
2528
|
}])
|
|
2522
2529
|
}, [
|
|
2523
|
-
p("strong",
|
|
2524
|
-
(
|
|
2530
|
+
p("strong", Po, T(d(l)("grid.availableMethods")), 1),
|
|
2531
|
+
(i(!0), v(F, null, Q(s.value, (u, g) => {
|
|
2525
2532
|
var b;
|
|
2526
|
-
return
|
|
2533
|
+
return i(), v("span", {
|
|
2527
2534
|
key: g,
|
|
2528
|
-
class:
|
|
2529
|
-
"cl-bg-primary-default cl-opacity-80":
|
|
2535
|
+
class: I(["cl-cursor-pointer cl-px-4 cl-py-1 cl-transition-colors cl-w-full hover:cl-bg-grey-0", {
|
|
2536
|
+
"cl-bg-primary-default cl-opacity-80": u.method === ((b = m.value) == null ? void 0 : b.method)
|
|
2530
2537
|
}]),
|
|
2531
|
-
onClick: W((r) =>
|
|
2538
|
+
onClick: W((r) => n(u.method), ["prevent"])
|
|
2532
2539
|
}, [
|
|
2533
|
-
ee(T(
|
|
2534
|
-
k(d(
|
|
2535
|
-
icon:
|
|
2540
|
+
ee(T(u.description) + " ", 1),
|
|
2541
|
+
k(d(_), {
|
|
2542
|
+
icon: u.icon,
|
|
2536
2543
|
class: "cl-float-right cl-text-grey-4 cl-text-sm"
|
|
2537
2544
|
}, null, 8, ["icon"])
|
|
2538
|
-
], 10,
|
|
2545
|
+
], 10, Fo);
|
|
2539
2546
|
}), 128))
|
|
2540
2547
|
], 2)
|
|
2541
2548
|
]));
|
|
2542
2549
|
}
|
|
2543
|
-
}),
|
|
2550
|
+
}), xo = {
|
|
2544
2551
|
key: 0,
|
|
2545
2552
|
class: "cl-border cl-border-grey-2 cl-flex cl-overflow-hidden cl-rounded-md lg:cl-overflow-visible"
|
|
2546
|
-
},
|
|
2553
|
+
}, Go = /* @__PURE__ */ p("option", { value: void 0 }, null, -1), Zo = ["selected"], Wo = ["selected"], Ko = /* @__PURE__ */ p("option", { value: void 0 }, null, -1), Qo = ["value", "selected"], Jo = /* @__PURE__ */ M({
|
|
2547
2554
|
__name: "cl-ui-grid-filter",
|
|
2548
2555
|
props: {
|
|
2549
2556
|
filter: {},
|
|
@@ -2553,21 +2560,21 @@ const zo = {
|
|
|
2553
2560
|
},
|
|
2554
2561
|
emits: ["update:filter"],
|
|
2555
2562
|
setup(t, { emit: o }) {
|
|
2556
|
-
const
|
|
2563
|
+
const e = t, { locale: l, t: s } = oe();
|
|
2557
2564
|
function m() {
|
|
2558
|
-
return
|
|
2565
|
+
return e.column.type === "string" || e.column.slotType === "string" ? te.CONTAINS : e.column.type === "datetime" || e.column.slotType === "datetime" || e.column.type === "date" || e.column.slotType === "date" ? te.LESS_THAN : te.EQUAL;
|
|
2559
2566
|
}
|
|
2560
|
-
const
|
|
2561
|
-
get: () =>
|
|
2567
|
+
const n = S({
|
|
2568
|
+
get: () => e.filter,
|
|
2562
2569
|
set: (O) => o("update:filter", O)
|
|
2563
|
-
}), a = S(() =>
|
|
2570
|
+
}), a = S(() => e.column.type === "date" || e.column.type === "datetime" || e.column.type === "slot" && (e.column.slotType === "date" || e.column.slotType === "datetime")), c = S(() => e.column.type === "list" || e.column.type === "slot" && e.column.slotType === "list"), u = S(() => c.value && e.column.listType === "number"), g = S({
|
|
2564
2571
|
get() {
|
|
2565
2572
|
var z, U, y, D;
|
|
2566
|
-
let O = (z =
|
|
2567
|
-
if (O && a.value && (((U =
|
|
2568
|
-
const J = (y =
|
|
2573
|
+
let O = (z = n.value) == null ? void 0 : z[0];
|
|
2574
|
+
if (O && a.value && (((U = e.filter) == null ? void 0 : U.length) ?? 0 > 1)) {
|
|
2575
|
+
const J = (y = n.value) == null ? void 0 : y.find((ce) => ce.filterOperation === te.EQUAL_OR_GREATER_THAN), Z = (D = n.value) == null ? void 0 : D.find((ce) => ce.filterOperation === te.LESS_THAN);
|
|
2569
2576
|
J && Z && (O = {
|
|
2570
|
-
filterOnColumn:
|
|
2577
|
+
filterOnColumn: e.column.field,
|
|
2571
2578
|
filterOperation: te.EQUAL,
|
|
2572
2579
|
filterMethod: "equal",
|
|
2573
2580
|
filterValue: J.filterValue
|
|
@@ -2578,27 +2585,27 @@ const zo = {
|
|
|
2578
2585
|
set(O) {
|
|
2579
2586
|
if (O && b(O.filterOperation, O.filterValue)) {
|
|
2580
2587
|
let z = $e.fromISO(O.filterValue, {
|
|
2581
|
-
zone:
|
|
2588
|
+
zone: e.timeZone
|
|
2582
2589
|
}).set({ second: 0, millisecond: 0 });
|
|
2583
2590
|
const U = z.toISO();
|
|
2584
|
-
|
|
2591
|
+
e.column.type === "date" || e.column.type === "slot" && e.column.slotType === "date" ? z = z.plus({ days: 1 }) : z = z.plus({ minutes: 1 });
|
|
2585
2592
|
const y = z.toISO();
|
|
2586
|
-
|
|
2593
|
+
n.value = [
|
|
2587
2594
|
{
|
|
2588
|
-
filterOnColumn:
|
|
2595
|
+
filterOnColumn: e.column.field,
|
|
2589
2596
|
filterOperation: te.EQUAL_OR_GREATER_THAN,
|
|
2590
2597
|
filterMethod: "equalorgreaterthan",
|
|
2591
2598
|
filterValue: U
|
|
2592
2599
|
},
|
|
2593
2600
|
{
|
|
2594
|
-
filterOnColumn:
|
|
2601
|
+
filterOnColumn: e.column.field,
|
|
2595
2602
|
filterOperation: te.LESS_THAN,
|
|
2596
2603
|
filterMethod: "lessthan",
|
|
2597
2604
|
filterValue: y
|
|
2598
2605
|
}
|
|
2599
2606
|
];
|
|
2600
2607
|
} else
|
|
2601
|
-
|
|
2608
|
+
n.value = O && [O];
|
|
2602
2609
|
}
|
|
2603
2610
|
});
|
|
2604
2611
|
function b(O, z) {
|
|
@@ -2608,17 +2615,17 @@ const zo = {
|
|
|
2608
2615
|
const r = S(() => {
|
|
2609
2616
|
var O;
|
|
2610
2617
|
return ((O = g.value) == null ? void 0 : O.filterValue) ?? "";
|
|
2611
|
-
}), w = S(() => r.value === "" ? null : r.value), h = S(() => Intl.NumberFormat(
|
|
2618
|
+
}), w = S(() => r.value === "" ? null : r.value), h = S(() => Intl.NumberFormat(l.value).format(1.1).replace(/[0-9]+/g, "")), q = S(() => Ue(e.column));
|
|
2612
2619
|
function $(O, z) {
|
|
2613
2620
|
var J;
|
|
2614
2621
|
let U, y = !1;
|
|
2615
2622
|
const D = ((O == null ? void 0 : O.value) ?? z).trim();
|
|
2616
2623
|
if (g.value)
|
|
2617
2624
|
y = ((J = g.value) == null ? void 0 : J.filterValue) === D, U = re(g.value), U.filterValue = D;
|
|
2618
|
-
else if (D !== "" && typeof
|
|
2625
|
+
else if (D !== "" && typeof e.column.field < "u") {
|
|
2619
2626
|
const Z = m();
|
|
2620
2627
|
U = {
|
|
2621
|
-
filterOnColumn:
|
|
2628
|
+
filterOnColumn: e.column.field,
|
|
2622
2629
|
filterMethod: te[Z].toLowerCase(),
|
|
2623
2630
|
filterOperation: Z,
|
|
2624
2631
|
filterValue: D
|
|
@@ -2629,24 +2636,24 @@ const zo = {
|
|
|
2629
2636
|
}
|
|
2630
2637
|
function R(O, z) {
|
|
2631
2638
|
let U, y = (O == null ? void 0 : O.value) ?? z ?? 0;
|
|
2632
|
-
|
|
2639
|
+
e.column.format === Y.INTEGER ? (typeof y == "string" && (y = parseInt(y)), U = Math.round(y)) : (typeof y == "string" && (y = parseFloat(y.replace(h.value, "."))), U = y), $(null, isNaN(U) ? "" : U.toString());
|
|
2633
2640
|
}
|
|
2634
|
-
return (O, z) => q.value ? (
|
|
2635
|
-
O.column.type === "boolean" || O.column.slotType === "boolean" ? (
|
|
2641
|
+
return (O, z) => q.value ? (i(), v("div", xo, [
|
|
2642
|
+
O.column.type === "boolean" || O.column.slotType === "boolean" ? (i(), v("select", {
|
|
2636
2643
|
key: 0,
|
|
2637
2644
|
class: "!cl-h-[2rem] cl-border-none cl-mb-0 cl-rounded-md cl-w-full",
|
|
2638
2645
|
onChange: z[0] || (z[0] = (U) => $(U.target))
|
|
2639
2646
|
}, [
|
|
2640
|
-
|
|
2647
|
+
Go,
|
|
2641
2648
|
p("option", {
|
|
2642
2649
|
value: "true",
|
|
2643
2650
|
selected: r.value === "true"
|
|
2644
|
-
}, T(d(
|
|
2651
|
+
}, T(d(s)("grid.true")), 9, Zo),
|
|
2645
2652
|
p("option", {
|
|
2646
2653
|
value: "false",
|
|
2647
2654
|
selected: r.value === "false"
|
|
2648
|
-
}, T(d(
|
|
2649
|
-
], 32)) : O.column.type === "date" || O.column.type === "datetime" || O.column.slotType === "date" || O.column.slotType === "datetime" ? (
|
|
2655
|
+
}, T(d(s)("grid.false")), 9, Wo)
|
|
2656
|
+
], 32)) : O.column.type === "date" || O.column.type === "datetime" || O.column.slotType === "date" || O.column.slotType === "datetime" ? (i(), V(ae, {
|
|
2650
2657
|
key: 1,
|
|
2651
2658
|
"model-value": w.value,
|
|
2652
2659
|
class: "!cl-h-[2rem] !cl-text-xs cl-border-none cl-mb-0 cl-w-full lg:!cl-text-base",
|
|
@@ -2655,32 +2662,32 @@ const zo = {
|
|
|
2655
2662
|
"input-type": O.column.type === "slot" ? O.column.slotType : O.column.type,
|
|
2656
2663
|
"time-zone": O.timeZone,
|
|
2657
2664
|
"onUpdate:modelValue": z[1] || (z[1] = (U) => $(null, U ?? ""))
|
|
2658
|
-
}, null, 8, ["model-value", "label", "input-type", "time-zone"])) : O.column.type === "number" || O.column.slotType === "number" ? (
|
|
2665
|
+
}, null, 8, ["model-value", "label", "input-type", "time-zone"])) : O.column.type === "number" || O.column.slotType === "number" ? (i(), V(ae, {
|
|
2659
2666
|
key: 2,
|
|
2660
2667
|
"model-value": r.value,
|
|
2661
2668
|
class: "!cl-h-[2rem] !cl-text-xs cl-border-none cl-mb-0 cl-w-full lg:!cl-text-base",
|
|
2662
2669
|
"input-type": "number",
|
|
2663
2670
|
"show-arrows": !1,
|
|
2664
2671
|
onInput: z[2] || (z[2] = (U, y) => R(null, y))
|
|
2665
|
-
}, null, 8, ["model-value"])) : O.column.type === "string" || O.column.slotType === "string" ? (
|
|
2672
|
+
}, null, 8, ["model-value"])) : O.column.type === "string" || O.column.slotType === "string" ? (i(), V(ae, {
|
|
2666
2673
|
key: 3,
|
|
2667
2674
|
"model-value": r.value,
|
|
2668
2675
|
class: "!cl-h-[2rem] !cl-text-xs cl-border-none cl-mb-0 cl-w-full lg:!cl-text-base",
|
|
2669
2676
|
"input-type": "text",
|
|
2670
2677
|
onInput: z[3] || (z[3] = (U, y) => $(null, y))
|
|
2671
|
-
}, null, 8, ["model-value"])) :
|
|
2678
|
+
}, null, 8, ["model-value"])) : c.value ? (i(), v("select", {
|
|
2672
2679
|
key: 4,
|
|
2673
2680
|
class: "!cl-h-[2rem] cl-border-none cl-mb-0 cl-rounded-md cl-w-full",
|
|
2674
|
-
onChange: z[4] || (z[4] = (U) =>
|
|
2681
|
+
onChange: z[4] || (z[4] = (U) => u.value ? R(U.target) : $(U.target))
|
|
2675
2682
|
}, [
|
|
2676
|
-
|
|
2677
|
-
(
|
|
2683
|
+
Ko,
|
|
2684
|
+
(i(!0), v(F, null, Q(O.column.listEntries ?? [], (U) => (i(), v("option", {
|
|
2678
2685
|
key: U.value,
|
|
2679
2686
|
value: U.value,
|
|
2680
2687
|
selected: r.value === U.value.toString()
|
|
2681
|
-
}, T(d(
|
|
2688
|
+
}, T(d(s)(U.translationKey)), 9, Qo))), 128))
|
|
2682
2689
|
], 32)) : N("", !0),
|
|
2683
|
-
k(
|
|
2690
|
+
k(Ho, {
|
|
2684
2691
|
filter: g.value,
|
|
2685
2692
|
"onUpdate:filter": z[5] || (z[5] = (U) => g.value = U),
|
|
2686
2693
|
column: O.column,
|
|
@@ -2689,7 +2696,7 @@ const zo = {
|
|
|
2689
2696
|
}, null, 8, ["filter", "column", "default-operation", "first-half"])
|
|
2690
2697
|
])) : N("", !0);
|
|
2691
2698
|
}
|
|
2692
|
-
}),
|
|
2699
|
+
}), Yo = { class: "-cl-top-1 cl-bg-white cl-shadow-sm cl-sticky cl-z-30 lg:cl-bg-transparent lg:cl-relative lg:cl-shadow-none" }, Xo = { class: "cl-hidden lg:cl-table-row" }, en = ["onClick"], ln = { class: "cl-flex cl-justify-end cl-w-full lg:cl-hidden" }, tn = { class: "cl-col-span-2 lg:cl-hidden" }, on = ["onClick"], nn = { class: "cl-font-normal cl-mr-1" }, sn = /* @__PURE__ */ M({
|
|
2693
2700
|
__name: "cl-ui-grid-header",
|
|
2694
2701
|
props: {
|
|
2695
2702
|
request: {},
|
|
@@ -2700,110 +2707,110 @@ const zo = {
|
|
|
2700
2707
|
},
|
|
2701
2708
|
emits: ["update:request", "update:filterPanelOpen"],
|
|
2702
2709
|
setup(t, { emit: o }) {
|
|
2703
|
-
const
|
|
2704
|
-
get: () =>
|
|
2705
|
-
set: (
|
|
2710
|
+
const e = t, { t: l } = oe(), s = S({
|
|
2711
|
+
get: () => e.request,
|
|
2712
|
+
set: (c) => o("update:request", c)
|
|
2706
2713
|
});
|
|
2707
|
-
function m(
|
|
2714
|
+
function m(c, u) {
|
|
2708
2715
|
var g, b;
|
|
2709
|
-
return ((g =
|
|
2716
|
+
return ((g = s.value.sort) == null ? void 0 : g.sortOnColumn) === c.field && ((b = s.value.sort) == null ? void 0 : b.sortByAscending) === u;
|
|
2710
2717
|
}
|
|
2711
|
-
function
|
|
2712
|
-
if (typeof
|
|
2713
|
-
const
|
|
2714
|
-
|
|
2715
|
-
sortOnColumn:
|
|
2718
|
+
function n(c) {
|
|
2719
|
+
if (typeof c < "u") {
|
|
2720
|
+
const u = re(e.request);
|
|
2721
|
+
u.sort === null || u.sort.sortOnColumn !== c ? u.sort = {
|
|
2722
|
+
sortOnColumn: c,
|
|
2716
2723
|
sortByAscending: !0
|
|
2717
|
-
} :
|
|
2724
|
+
} : u.sort.sortOnColumn === c && u.sort.sortByAscending === !0 ? u.sort.sortByAscending = !1 : u.sort = null, s.value = u;
|
|
2718
2725
|
}
|
|
2719
2726
|
}
|
|
2720
|
-
function a(
|
|
2721
|
-
if (
|
|
2722
|
-
const
|
|
2723
|
-
|
|
2724
|
-
...
|
|
2725
|
-
...
|
|
2726
|
-
],
|
|
2727
|
+
function a(c) {
|
|
2728
|
+
if (c) {
|
|
2729
|
+
const u = re(s.value);
|
|
2730
|
+
u.filters = [
|
|
2731
|
+
...u.filters.filter((g) => g.filterOnColumn !== c[0].filterOnColumn),
|
|
2732
|
+
...c
|
|
2733
|
+
], u.pageNumber = 1, s.value = u;
|
|
2727
2734
|
}
|
|
2728
2735
|
}
|
|
2729
|
-
return (
|
|
2730
|
-
p("tr",
|
|
2731
|
-
(
|
|
2736
|
+
return (c, u) => (i(), v("thead", Yo, [
|
|
2737
|
+
p("tr", Xo, [
|
|
2738
|
+
(i(!0), v(F, null, Q(c.columns, (g, b) => (i(), v("th", {
|
|
2732
2739
|
key: b,
|
|
2733
|
-
class:
|
|
2740
|
+
class: I(["cl-text-grey-3 cl-text-sm", {
|
|
2734
2741
|
"cl-cursor-pointer": d(Oe)(g)
|
|
2735
2742
|
}]),
|
|
2736
|
-
onClick: (r) => d(Oe)(g) ?
|
|
2743
|
+
onClick: (r) => d(Oe)(g) ? n(g.field) : () => {
|
|
2737
2744
|
}
|
|
2738
2745
|
}, [
|
|
2739
2746
|
ee(T(g.caption) + " ", 1),
|
|
2740
|
-
L(k(d(
|
|
2747
|
+
L(k(d(_), {
|
|
2741
2748
|
class: "cl-inline-block",
|
|
2742
2749
|
icon: "ph:caret-up"
|
|
2743
2750
|
}, null, 512), [
|
|
2744
2751
|
[H, m(g, !0)]
|
|
2745
2752
|
]),
|
|
2746
|
-
L(k(d(
|
|
2753
|
+
L(k(d(_), {
|
|
2747
2754
|
class: "cl-inline-block",
|
|
2748
2755
|
icon: "ph:caret-down"
|
|
2749
2756
|
}, null, 512), [
|
|
2750
2757
|
[H, m(g, !1)]
|
|
2751
2758
|
])
|
|
2752
|
-
], 10,
|
|
2759
|
+
], 10, en))), 128))
|
|
2753
2760
|
]),
|
|
2754
2761
|
p("tr", {
|
|
2755
|
-
class:
|
|
2756
|
-
"cl-hidden lg:cl-table-row": !
|
|
2762
|
+
class: I(["cl-border cl-border-grey-2 cl-flex cl-flex-wrap cl-p-2 lg:cl-border-none lg:cl-p-0 lg:cl-table-row", {
|
|
2763
|
+
"cl-hidden lg:cl-table-row": !c.filterPanelOpen
|
|
2757
2764
|
}])
|
|
2758
2765
|
}, [
|
|
2759
|
-
p("div",
|
|
2760
|
-
k(d(
|
|
2766
|
+
p("div", ln, [
|
|
2767
|
+
k(d(_), {
|
|
2761
2768
|
class: "cl-text-grey-4 hover:cl-cursor-pointer hover:cl-text-link-default",
|
|
2762
2769
|
icon: "ph:x",
|
|
2763
2770
|
size: 16,
|
|
2764
|
-
onClick:
|
|
2771
|
+
onClick: u[0] || (u[0] = W((g) => c.$emit("update:filterPanelOpen", !1), ["prevent"]))
|
|
2765
2772
|
})
|
|
2766
2773
|
]),
|
|
2767
|
-
(
|
|
2774
|
+
(i(!0), v(F, null, Q(c.columns, (g, b) => (i(), v("th", {
|
|
2768
2775
|
key: b,
|
|
2769
|
-
class:
|
|
2776
|
+
class: I(["cl-grid cl-grid-cols-4 cl-py-1 cl-text-xs cl-w-full lg:cl-table-cell lg:cl-w-auto", {
|
|
2770
2777
|
"cl-hidden lg:cl-table-cell": !d(Ue)(g)
|
|
2771
2778
|
}])
|
|
2772
2779
|
}, [
|
|
2773
|
-
p("div",
|
|
2774
|
-
d(Oe)(g) ? (
|
|
2780
|
+
p("div", tn, T(g.caption), 1),
|
|
2781
|
+
d(Oe)(g) ? (i(), v("div", {
|
|
2775
2782
|
key: 0,
|
|
2776
2783
|
class: "cl-col-span-2 cl-gap-1 cl-span lg:cl-hidden",
|
|
2777
|
-
onClick: (r) =>
|
|
2784
|
+
onClick: (r) => n(g.field)
|
|
2778
2785
|
}, [
|
|
2779
|
-
p("span",
|
|
2780
|
-
m(g, !0) ? (
|
|
2786
|
+
p("span", nn, T(d(l)("grid.sortBy")), 1),
|
|
2787
|
+
m(g, !0) ? (i(), V(d(_), {
|
|
2781
2788
|
key: 0,
|
|
2782
2789
|
class: "cl-cursor-pointer cl-inline-block",
|
|
2783
2790
|
icon: "ph:caret-up"
|
|
2784
|
-
})) : m(g, !1) ? (
|
|
2791
|
+
})) : m(g, !1) ? (i(), V(d(_), {
|
|
2785
2792
|
key: 1,
|
|
2786
2793
|
class: "cl-cursor-pointer cl-inline-block",
|
|
2787
2794
|
icon: "ph:caret-down"
|
|
2788
|
-
})) : (
|
|
2795
|
+
})) : (i(), V(d(_), {
|
|
2789
2796
|
key: 2,
|
|
2790
2797
|
class: "cl-cursor-pointer cl-inline-block",
|
|
2791
2798
|
icon: "ph:minus"
|
|
2792
2799
|
}))
|
|
2793
|
-
], 8,
|
|
2794
|
-
k(
|
|
2800
|
+
], 8, on)) : N("", !0),
|
|
2801
|
+
k(Jo, {
|
|
2795
2802
|
class: "cl-col-span-4",
|
|
2796
|
-
filter:
|
|
2803
|
+
filter: s.value.filters.filter((r) => r.filterOnColumn === g.field),
|
|
2797
2804
|
column: g,
|
|
2798
|
-
"time-zone":
|
|
2799
|
-
"first-half": b <=
|
|
2805
|
+
"time-zone": c.timeZone,
|
|
2806
|
+
"first-half": b <= c.columns.length / 2,
|
|
2800
2807
|
"onUpdate:filter": a
|
|
2801
2808
|
}, null, 8, ["filter", "column", "time-zone", "first-half"])
|
|
2802
2809
|
], 2))), 128))
|
|
2803
2810
|
], 2)
|
|
2804
2811
|
]));
|
|
2805
2812
|
}
|
|
2806
|
-
}),
|
|
2813
|
+
}), an = { class: "cl-fixed cl-flex cl-h-full cl-justify-end cl-right-0 cl-shadow-lg cl-top-0 cl-z-50" }, rn = { 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" }, cn = { class: "cl-mb-4 cl-text-2xl cl-text-off-white" }, un = { class: "cl-border-grey-3 cl-border-t cl-flex cl-flex-wrap cl-text-sm cl-w-full" }, dn = { class: "cl-border-b cl-border-grey-2 cl-flex cl-py-2 cl-text-sm cl-w-full" }, pn = { class: "cl-flex-1 cl-py-2" }, fn = { class: "cl-py-2 cl-w-1/4" }, mn = { class: "cl-py-2 cl-w-1/5" }, gn = { class: "cl-flex-1 cl-py-2" }, vn = { class: "cl-py-2 cl-w-1/4" }, bn = { class: "cl-py-2 cl-text-off-white cl-w-1/5" }, hn = { key: 1 }, yn = /* @__PURE__ */ M({
|
|
2807
2814
|
inheritAttrs: !1,
|
|
2808
2815
|
__name: "cl-ui-grid-view-manager",
|
|
2809
2816
|
props: {
|
|
@@ -2811,80 +2818,80 @@ const zo = {
|
|
|
2811
2818
|
},
|
|
2812
2819
|
emits: ["update:columns"],
|
|
2813
2820
|
setup(t, { emit: o }) {
|
|
2814
|
-
const
|
|
2815
|
-
function m(
|
|
2816
|
-
g <
|
|
2821
|
+
const e = t, { t: l } = oe(), s = A(!1);
|
|
2822
|
+
function m(c, u, g) {
|
|
2823
|
+
g < c.length && g >= 0 && c.splice(g, 0, c.splice(u, 1)[0]);
|
|
2817
2824
|
}
|
|
2818
|
-
function
|
|
2819
|
-
const g = re(
|
|
2825
|
+
function n(c, u) {
|
|
2826
|
+
const g = re(e.columns), b = (c == null ? void 0 : c.checked) ?? !1, r = g.findIndex((w) => w.name === u.name);
|
|
2820
2827
|
r >= 0 && (g[r].visible = b), o("update:columns", g);
|
|
2821
2828
|
}
|
|
2822
|
-
function a(
|
|
2823
|
-
const g = re(
|
|
2824
|
-
m(g,
|
|
2829
|
+
function a(c, u) {
|
|
2830
|
+
const g = re(e.columns), b = u === "up" ? c + 1 : c - 1;
|
|
2831
|
+
m(g, c, b), o("update:columns", g);
|
|
2825
2832
|
}
|
|
2826
|
-
return (
|
|
2827
|
-
k(fe, se(
|
|
2833
|
+
return (c, u) => (i(), v(F, null, [
|
|
2834
|
+
k(fe, se(c.$attrs, {
|
|
2828
2835
|
class: "cl-w-full",
|
|
2829
2836
|
size: "small",
|
|
2830
|
-
onClick:
|
|
2837
|
+
onClick: u[0] || (u[0] = W((g) => s.value = !0, ["prevent"]))
|
|
2831
2838
|
}), {
|
|
2832
2839
|
default: P(() => [
|
|
2833
|
-
ee(T(d(
|
|
2840
|
+
ee(T(d(l)("grid.manageView")), 1)
|
|
2834
2841
|
]),
|
|
2835
2842
|
_: 1
|
|
2836
2843
|
}, 16),
|
|
2837
|
-
(
|
|
2844
|
+
(i(), V(Ie, { to: "body" }, [
|
|
2838
2845
|
k(me, { name: "slide-left" }, {
|
|
2839
2846
|
default: P(() => [
|
|
2840
|
-
L(p("div",
|
|
2841
|
-
p("div",
|
|
2842
|
-
k(d(
|
|
2847
|
+
L(p("div", an, [
|
|
2848
|
+
p("div", rn, [
|
|
2849
|
+
k(d(_), {
|
|
2843
2850
|
class: "cl-absolute cl-cursor-pointer cl-right-3 cl-text-off-white cl-top-3",
|
|
2844
2851
|
icon: "ph:x",
|
|
2845
2852
|
size: 16,
|
|
2846
|
-
onClick:
|
|
2853
|
+
onClick: u[1] || (u[1] = (g) => s.value = !1)
|
|
2847
2854
|
}),
|
|
2848
|
-
p("h3",
|
|
2849
|
-
p("ul",
|
|
2850
|
-
p("li",
|
|
2851
|
-
p("strong",
|
|
2852
|
-
p("strong",
|
|
2853
|
-
p("strong",
|
|
2855
|
+
p("h3", cn, T(d(l)("grid.manageView")), 1),
|
|
2856
|
+
p("ul", un, [
|
|
2857
|
+
p("li", dn, [
|
|
2858
|
+
p("strong", pn, T(d(l)("grid.column")), 1),
|
|
2859
|
+
p("strong", fn, T(d(l)("grid.visible")), 1),
|
|
2860
|
+
p("strong", mn, T(d(l)("grid.order")), 1)
|
|
2854
2861
|
]),
|
|
2855
|
-
(
|
|
2862
|
+
(i(!0), v(F, null, Q(c.columns, (g, b) => (i(), v("li", {
|
|
2856
2863
|
key: b,
|
|
2857
2864
|
class: "cl-border-b cl-border-grey-2 cl-flex cl-py-2 cl-text-sm cl-w-full"
|
|
2858
2865
|
}, [
|
|
2859
|
-
p("div",
|
|
2860
|
-
p("div",
|
|
2866
|
+
p("div", gn, T(g.caption), 1),
|
|
2867
|
+
p("div", vn, [
|
|
2861
2868
|
k(ae, {
|
|
2862
2869
|
"model-value": g.visible === void 0 || g.visible === !0,
|
|
2863
2870
|
"input-type": "checkbox",
|
|
2864
|
-
onClick: (r) =>
|
|
2871
|
+
onClick: (r) => n(r.target, g)
|
|
2865
2872
|
}, null, 8, ["model-value", "onClick"])
|
|
2866
2873
|
]),
|
|
2867
|
-
p("div",
|
|
2868
|
-
g.visible === void 0 || g.visible === !0 ? (
|
|
2869
|
-
b !== 0 ? (
|
|
2874
|
+
p("div", bn, [
|
|
2875
|
+
g.visible === void 0 || g.visible === !0 ? (i(), v(F, { key: 0 }, [
|
|
2876
|
+
b !== 0 ? (i(), V(d(_), {
|
|
2870
2877
|
key: 0,
|
|
2871
2878
|
class: "cl-cursor-pointer cl-inline-block cl-mr-2",
|
|
2872
2879
|
icon: "ph:arrow-left",
|
|
2873
2880
|
onClick: (r) => a(b, "down")
|
|
2874
2881
|
}, null, 8, ["onClick"])) : N("", !0),
|
|
2875
|
-
b !==
|
|
2882
|
+
b !== c.columns.length - 1 ? (i(), V(d(_), {
|
|
2876
2883
|
key: 1,
|
|
2877
2884
|
class: "cl-cursor-pointer cl-inline-block",
|
|
2878
2885
|
icon: "ph:arrow-right",
|
|
2879
2886
|
onClick: (r) => a(b, "up")
|
|
2880
2887
|
}, null, 8, ["onClick"])) : N("", !0)
|
|
2881
|
-
], 64)) : (
|
|
2888
|
+
], 64)) : (i(), v("em", hn, T(d(l)("grid.hidden")), 1))
|
|
2882
2889
|
])
|
|
2883
2890
|
]))), 128))
|
|
2884
2891
|
])
|
|
2885
2892
|
])
|
|
2886
2893
|
], 512), [
|
|
2887
|
-
[H,
|
|
2894
|
+
[H, s.value]
|
|
2888
2895
|
])
|
|
2889
2896
|
]),
|
|
2890
2897
|
_: 1
|
|
@@ -2892,7 +2899,7 @@ const zo = {
|
|
|
2892
2899
|
]))
|
|
2893
2900
|
], 64));
|
|
2894
2901
|
}
|
|
2895
|
-
}),
|
|
2902
|
+
}), wn = { class: "cl-relative cl-w-full grid lg:cl-min-h-fit" }, $n = { class: "cl-absolute cl-flex cl-items-center cl-justify-center cl-min-h-full cl-p-32 cl-w-full" }, kn = { class: "cl-overflow-x-auto cl-overscroll-x-none cl-pt-1" }, Cn = { class: "cl-hidden lg:cl-table-column-group" }, Tn = /* @__PURE__ */ M({
|
|
2896
2903
|
__name: "cl-ui-grid",
|
|
2897
2904
|
props: {
|
|
2898
2905
|
columns: {},
|
|
@@ -2904,13 +2911,13 @@ const zo = {
|
|
|
2904
2911
|
},
|
|
2905
2912
|
emits: ["update:columns", "update:request", "data-request", "row-edit", "edit-start", "edit-end", "row-select"],
|
|
2906
2913
|
setup(t, { emit: o }) {
|
|
2907
|
-
const
|
|
2908
|
-
get: () =>
|
|
2914
|
+
const e = t, l = S({
|
|
2915
|
+
get: () => e.columns,
|
|
2909
2916
|
set: (h) => o("update:columns", h)
|
|
2910
|
-
}),
|
|
2911
|
-
function
|
|
2917
|
+
}), s = S(() => l.value.filter((h) => h.visible ?? !0)), m = A({});
|
|
2918
|
+
function n() {
|
|
2912
2919
|
const h = {};
|
|
2913
|
-
window.innerWidth >= 1024 &&
|
|
2920
|
+
window.innerWidth >= 1024 && l.value.forEach((q) => {
|
|
2914
2921
|
const $ = q.width ? `${q.width}px` : "";
|
|
2915
2922
|
h[`${q.name}`] = `width: ${$}; min-width: ${$};`;
|
|
2916
2923
|
}), m.value = h;
|
|
@@ -2919,26 +2926,26 @@ const zo = {
|
|
|
2919
2926
|
return m.value[h] ?? "";
|
|
2920
2927
|
}
|
|
2921
2928
|
Ae(() => {
|
|
2922
|
-
window.addEventListener("resize",
|
|
2923
|
-
}),
|
|
2924
|
-
const
|
|
2925
|
-
get: () =>
|
|
2929
|
+
window.addEventListener("resize", n), n();
|
|
2930
|
+
}), _e(() => window.removeEventListener("resize", n));
|
|
2931
|
+
const c = S({
|
|
2932
|
+
get: () => e.request,
|
|
2926
2933
|
set: (h) => o("update:request", h)
|
|
2927
2934
|
});
|
|
2928
|
-
function
|
|
2929
|
-
const h = re(
|
|
2930
|
-
h.pageNumber = 1, h.filters = [],
|
|
2935
|
+
function u() {
|
|
2936
|
+
const h = re(c.value);
|
|
2937
|
+
h.pageNumber = 1, h.filters = [], c.value = h;
|
|
2931
2938
|
}
|
|
2932
|
-
const g =
|
|
2933
|
-
K(
|
|
2939
|
+
const g = Qe(() => o("data-request"), 750);
|
|
2940
|
+
K(c, g, {
|
|
2934
2941
|
deep: !0,
|
|
2935
2942
|
immediate: !0
|
|
2936
2943
|
});
|
|
2937
|
-
const b = S(() =>
|
|
2938
|
-
return K(r, () => r.value ? o("edit-start") : o("edit-end")), (h, q) => (
|
|
2944
|
+
const b = S(() => e.data), r = A(!1), w = A(!1);
|
|
2945
|
+
return K(r, () => r.value ? o("edit-start") : o("edit-end")), (h, q) => (i(), v("div", wn, [
|
|
2939
2946
|
k(me, { name: "fade" }, {
|
|
2940
2947
|
default: P(() => [
|
|
2941
|
-
L(p("div",
|
|
2948
|
+
L(p("div", $n, [
|
|
2942
2949
|
k(Se)
|
|
2943
2950
|
], 512), [
|
|
2944
2951
|
[H, h.loading]
|
|
@@ -2946,7 +2953,7 @@ const zo = {
|
|
|
2946
2953
|
]),
|
|
2947
2954
|
_: 1
|
|
2948
2955
|
}),
|
|
2949
|
-
k(
|
|
2956
|
+
k(Qt, {
|
|
2950
2957
|
"edit-mode": r.value,
|
|
2951
2958
|
"onUpdate:editMode": q[1] || (q[1] = ($) => r.value = $),
|
|
2952
2959
|
"filter-panel-open": w.value,
|
|
@@ -2955,50 +2962,50 @@ const zo = {
|
|
|
2955
2962
|
options: h.options,
|
|
2956
2963
|
request: h.request,
|
|
2957
2964
|
loading: h.loading,
|
|
2958
|
-
onClearFilters:
|
|
2965
|
+
onClearFilters: u
|
|
2959
2966
|
}, {
|
|
2960
2967
|
"additional-grid-actions": P(($) => [
|
|
2961
2968
|
j(h.$slots, "additional-grid-actions", le(ne($)))
|
|
2962
2969
|
]),
|
|
2963
2970
|
"view-manager": P(() => [
|
|
2964
|
-
k(
|
|
2965
|
-
columns:
|
|
2966
|
-
"onUpdate:columns": q[0] || (q[0] = ($) =>
|
|
2971
|
+
k(yn, {
|
|
2972
|
+
columns: l.value,
|
|
2973
|
+
"onUpdate:columns": q[0] || (q[0] = ($) => l.value = $)
|
|
2967
2974
|
}, null, 8, ["columns"])
|
|
2968
2975
|
]),
|
|
2969
2976
|
_: 3
|
|
2970
2977
|
}, 8, ["edit-mode", "filter-panel-open", "columns", "options", "request", "loading"]),
|
|
2971
|
-
p("div",
|
|
2978
|
+
p("div", kn, [
|
|
2972
2979
|
p("table", {
|
|
2973
|
-
class:
|
|
2980
|
+
class: I(["cl-delay-75 cl-min-h-[276px] cl-overflow-x-auto cl-overscroll-x-none cl-text-left cl-transition-opacity cl-w-full", {
|
|
2974
2981
|
"cl-opacity-40": h.loading
|
|
2975
2982
|
}])
|
|
2976
2983
|
}, [
|
|
2977
|
-
p("colgroup",
|
|
2978
|
-
(
|
|
2984
|
+
p("colgroup", Cn, [
|
|
2985
|
+
(i(!0), v(F, null, Q(s.value, ($, R) => (i(), v("col", {
|
|
2979
2986
|
key: R,
|
|
2980
|
-
style:
|
|
2987
|
+
style: We(a($.name)),
|
|
2981
2988
|
span: 1
|
|
2982
2989
|
}, null, 4))), 128))
|
|
2983
2990
|
]),
|
|
2984
|
-
k(
|
|
2985
|
-
request:
|
|
2986
|
-
"onUpdate:request": q[3] || (q[3] = ($) =>
|
|
2991
|
+
k(sn, {
|
|
2992
|
+
request: c.value,
|
|
2993
|
+
"onUpdate:request": q[3] || (q[3] = ($) => c.value = $),
|
|
2987
2994
|
"filter-panel-open": w.value,
|
|
2988
2995
|
"onUpdate:filterPanelOpen": q[4] || (q[4] = ($) => w.value = $),
|
|
2989
|
-
columns:
|
|
2996
|
+
columns: s.value,
|
|
2990
2997
|
options: h.options,
|
|
2991
2998
|
"time-zone": h.timeZone
|
|
2992
2999
|
}, null, 8, ["request", "filter-panel-open", "columns", "options", "time-zone"]),
|
|
2993
|
-
k(
|
|
2994
|
-
columns:
|
|
2995
|
-
request:
|
|
3000
|
+
k(uo, {
|
|
3001
|
+
columns: s.value,
|
|
3002
|
+
request: c.value,
|
|
2996
3003
|
data: b.value,
|
|
2997
3004
|
"time-zone": h.timeZone,
|
|
2998
3005
|
loading: h.loading,
|
|
2999
3006
|
"edit-mode": r.value,
|
|
3000
3007
|
"selection-enabled": h.options.rowSelectionEnabled,
|
|
3001
|
-
onClearFilters:
|
|
3008
|
+
onClearFilters: u,
|
|
3002
3009
|
onRowEdit: q[5] || (q[5] = ($) => h.$emit("row-edit", $)),
|
|
3003
3010
|
onRowSelect: q[6] || (q[6] = ($) => h.$emit("row-select", $))
|
|
3004
3011
|
}, Re({ _: 2 }, [
|
|
@@ -3011,43 +3018,43 @@ const zo = {
|
|
|
3011
3018
|
]), 1032, ["columns", "request", "data", "time-zone", "loading", "edit-mode", "selection-enabled"])
|
|
3012
3019
|
], 2)
|
|
3013
3020
|
]),
|
|
3014
|
-
k(
|
|
3015
|
-
request:
|
|
3016
|
-
"onUpdate:request": q[7] || (q[7] = ($) =>
|
|
3021
|
+
k(Ao, {
|
|
3022
|
+
request: c.value,
|
|
3023
|
+
"onUpdate:request": q[7] || (q[7] = ($) => c.value = $),
|
|
3017
3024
|
data: h.data
|
|
3018
3025
|
}, null, 8, ["request", "data"])
|
|
3019
3026
|
]));
|
|
3020
3027
|
}
|
|
3021
|
-
}),
|
|
3028
|
+
}), En = { 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" }, On = /* @__PURE__ */ M({
|
|
3022
3029
|
__name: "cl-ui-header",
|
|
3023
3030
|
props: {
|
|
3024
3031
|
isOpen: { type: Boolean }
|
|
3025
3032
|
},
|
|
3026
3033
|
emits: ["open-click"],
|
|
3027
3034
|
setup(t, { emit: o }) {
|
|
3028
|
-
const
|
|
3029
|
-
return ze(
|
|
3030
|
-
(
|
|
3031
|
-
}), (
|
|
3032
|
-
j(
|
|
3035
|
+
const e = t, l = A();
|
|
3036
|
+
return ze(l, () => {
|
|
3037
|
+
(e.isOpen ?? !1) && o("open-click");
|
|
3038
|
+
}), (s, m) => (i(), v("header", En, [
|
|
3039
|
+
j(s.$slots, "logo"),
|
|
3033
3040
|
p("div", {
|
|
3034
3041
|
ref_key: "headerMenuElement",
|
|
3035
|
-
ref:
|
|
3042
|
+
ref: l,
|
|
3036
3043
|
class: "cl-cursor-pointer cl-flex cl-flex-nowrap",
|
|
3037
|
-
onClick: m[0] || (m[0] = (
|
|
3044
|
+
onClick: m[0] || (m[0] = (n) => s.$emit("open-click"))
|
|
3038
3045
|
}, [
|
|
3039
|
-
j(
|
|
3040
|
-
j(
|
|
3046
|
+
j(s.$slots, "menu"),
|
|
3047
|
+
j(s.$slots, "icon")
|
|
3041
3048
|
], 512)
|
|
3042
3049
|
]));
|
|
3043
3050
|
}
|
|
3044
|
-
}),
|
|
3051
|
+
}), qn = { 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]" }, An = ["src"], Sn = {
|
|
3045
3052
|
key: 0,
|
|
3046
3053
|
class: "cl-text-ellipsis cl-whitespace-nowrap"
|
|
3047
|
-
},
|
|
3054
|
+
}, Nn = {
|
|
3048
3055
|
key: 1,
|
|
3049
3056
|
class: "cl-text-ellipsis cl-text-xs cl-whitespace-nowrap"
|
|
3050
|
-
},
|
|
3057
|
+
}, jn = { class: "cl-content-center cl-flex cl-h-20 cl-items-center cl-justify-center cl-justify-items-center cl-transition-all cl-w-10 md:cl-ml-4 md:cl-w-20" }, In = { class: "cl-absolute cl-bg-white cl-right-0 cl-shadow-2xl cl-top-20 cl-w-full cl-z-20" }, _n = /* @__PURE__ */ M({
|
|
3051
3058
|
__name: "cl-ui-header-menu",
|
|
3052
3059
|
props: {
|
|
3053
3060
|
username: { default: "" },
|
|
@@ -3058,18 +3065,18 @@ const zo = {
|
|
|
3058
3065
|
},
|
|
3059
3066
|
setup(t) {
|
|
3060
3067
|
const o = t;
|
|
3061
|
-
return (
|
|
3062
|
-
class:
|
|
3068
|
+
return (e, l) => (i(), v("div", {
|
|
3069
|
+
class: I(["md:cl-relative", {
|
|
3063
3070
|
"cl-bg-primary-default": (o == null ? void 0 : o.colour) === "default",
|
|
3064
3071
|
"cl-bg-blue-light": o.colour === "secondary"
|
|
3065
3072
|
}])
|
|
3066
3073
|
}, [
|
|
3067
|
-
p("div",
|
|
3068
|
-
|
|
3074
|
+
p("div", qn, [
|
|
3075
|
+
e.image ? (i(), v("img", {
|
|
3069
3076
|
key: 0,
|
|
3070
|
-
src:
|
|
3077
|
+
src: e.image,
|
|
3071
3078
|
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"
|
|
3072
|
-
}, null, 8,
|
|
3079
|
+
}, null, 8, An)) : (i(), V(d(_), {
|
|
3073
3080
|
key: 1,
|
|
3074
3081
|
class: "cl-hidden cl-m-4 cl-text-white md:cl-block",
|
|
3075
3082
|
icon: "ph:user-circle",
|
|
@@ -3077,18 +3084,18 @@ const zo = {
|
|
|
3077
3084
|
height: "48"
|
|
3078
3085
|
})),
|
|
3079
3086
|
p("div", {
|
|
3080
|
-
class:
|
|
3087
|
+
class: I(["cl-grow cl-hidden cl-my-4 md:cl-block", {
|
|
3081
3088
|
"cl-text-secondary-default": o.colour === "default",
|
|
3082
3089
|
"cl-text-white": o.colour === "secondary"
|
|
3083
3090
|
}])
|
|
3084
3091
|
}, [
|
|
3085
|
-
|
|
3086
|
-
|
|
3092
|
+
e.username ? (i(), v("div", Sn, T(e.username), 1)) : N("", !0),
|
|
3093
|
+
e.group ? (i(), v("div", Nn, T(e.group), 1)) : N("", !0)
|
|
3087
3094
|
], 2),
|
|
3088
|
-
p("div",
|
|
3089
|
-
k(d(
|
|
3090
|
-
class:
|
|
3091
|
-
"cl-rotate-180":
|
|
3095
|
+
p("div", jn, [
|
|
3096
|
+
k(d(_), {
|
|
3097
|
+
class: I(["cl-transform-gpu cl-transition-transform", {
|
|
3098
|
+
"cl-rotate-180": e.isOpen,
|
|
3092
3099
|
"cl-text-secondary-default": o.colour === "default",
|
|
3093
3100
|
"cl-text-white": o.colour === "secondary"
|
|
3094
3101
|
}]),
|
|
@@ -3098,10 +3105,10 @@ const zo = {
|
|
|
3098
3105
|
]),
|
|
3099
3106
|
k(me, { name: "fade" }, {
|
|
3100
3107
|
default: P(() => [
|
|
3101
|
-
L(p("div",
|
|
3102
|
-
j(
|
|
3108
|
+
L(p("div", In, [
|
|
3109
|
+
j(e.$slots, "default")
|
|
3103
3110
|
], 512), [
|
|
3104
|
-
[H,
|
|
3111
|
+
[H, e.isOpen]
|
|
3105
3112
|
])
|
|
3106
3113
|
]),
|
|
3107
3114
|
_: 3
|
|
@@ -3112,24 +3119,24 @@ const zo = {
|
|
|
3112
3119
|
function je(t) {
|
|
3113
3120
|
return /[a-z]{2}-[A-Z]{2}/gm.test(t.localeCode);
|
|
3114
3121
|
}
|
|
3115
|
-
function
|
|
3122
|
+
function Rn(t) {
|
|
3116
3123
|
let o = Array.isArray(t);
|
|
3117
3124
|
if (o) {
|
|
3118
|
-
for (const
|
|
3119
|
-
if (!
|
|
3125
|
+
for (const e of t)
|
|
3126
|
+
if (!zn(e)) {
|
|
3120
3127
|
o = !1;
|
|
3121
3128
|
break;
|
|
3122
3129
|
}
|
|
3123
3130
|
}
|
|
3124
3131
|
return o;
|
|
3125
3132
|
}
|
|
3126
|
-
function
|
|
3133
|
+
function zn(t) {
|
|
3127
3134
|
return typeof t.name == "string" && typeof t.nativeName == "string" && typeof t.localeCode == "string";
|
|
3128
3135
|
}
|
|
3129
|
-
const
|
|
3136
|
+
const Un = {
|
|
3130
3137
|
key: 0,
|
|
3131
3138
|
class: "cl-flex cl-relative cl-select-none cl-w-auto cl-z-30"
|
|
3132
|
-
},
|
|
3139
|
+
}, Bn = { class: "cl-absolute cl-bg-white cl-border cl-border-grey-0 cl-overflow-hidden cl-right-0 cl-rounded cl-shadow-xl cl-text-black cl-top-6 cl-z-3" }, Mn = ["data-localename", "data-localecode", "onClick"], Vn = { class: "cl-text-xs" }, Dn = /* @__PURE__ */ M({
|
|
3133
3140
|
__name: "cl-ui-language-switcher",
|
|
3134
3141
|
props: {
|
|
3135
3142
|
supportedLanguages: {},
|
|
@@ -3138,51 +3145,51 @@ const Rn = {
|
|
|
3138
3145
|
},
|
|
3139
3146
|
emits: ["language-select"],
|
|
3140
3147
|
setup(t, { emit: o }) {
|
|
3141
|
-
const
|
|
3148
|
+
const e = t, { locale: l } = oe(), s = A(!1), m = S(() => e.supportedLanguages.find((c) => c.localeCode === l.value) ?? e.defaultLangauge), n = S(() => e.supportedLanguages.filter((c) => je(c)).sort((c, u) => c.nativeName > u.nativeName ? 1 : u.nativeName > c.nativeName ? -1 : 0));
|
|
3142
3149
|
function a() {
|
|
3143
|
-
|
|
3150
|
+
e.disabled || (s.value = !s.value);
|
|
3144
3151
|
}
|
|
3145
|
-
return K(() =>
|
|
3146
|
-
|
|
3147
|
-
}), (
|
|
3152
|
+
return K(() => e.disabled, (c) => {
|
|
3153
|
+
c && (s.value = !1);
|
|
3154
|
+
}), (c, u) => m.value !== null && d(je)(m.value) ? (i(), v("div", Un, [
|
|
3148
3155
|
p("div", {
|
|
3149
|
-
class:
|
|
3150
|
-
"cl-cursor-pointer": !
|
|
3156
|
+
class: I(["cl-flex cl-items-center", {
|
|
3157
|
+
"cl-cursor-pointer": !c.disabled
|
|
3151
3158
|
}]),
|
|
3152
3159
|
onClick: a
|
|
3153
3160
|
}, [
|
|
3154
3161
|
p("span", {
|
|
3155
|
-
class:
|
|
3156
|
-
"cl-opacity-50":
|
|
3162
|
+
class: I(["cl-font-semibold cl-text-xs", {
|
|
3163
|
+
"cl-opacity-50": c.disabled
|
|
3157
3164
|
}])
|
|
3158
3165
|
}, T(m.value.nativeName), 3)
|
|
3159
3166
|
], 2),
|
|
3160
3167
|
k(me, { name: "fade" }, {
|
|
3161
3168
|
default: P(() => [
|
|
3162
|
-
L(p("div",
|
|
3163
|
-
(
|
|
3169
|
+
L(p("div", Bn, [
|
|
3170
|
+
(i(!0), v(F, null, Q(n.value, (g, b) => (i(), v("div", {
|
|
3164
3171
|
key: b,
|
|
3165
3172
|
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",
|
|
3166
3173
|
"data-localename": g.name,
|
|
3167
3174
|
"data-localecode": g.localeCode,
|
|
3168
3175
|
onClick: (r) => {
|
|
3169
|
-
|
|
3176
|
+
l.value = g.localeCode, a(), o("language-select", g.localeCode);
|
|
3170
3177
|
}
|
|
3171
3178
|
}, [
|
|
3172
|
-
p("span",
|
|
3173
|
-
], 8,
|
|
3179
|
+
p("span", Vn, T(g.nativeName), 1)
|
|
3180
|
+
], 8, Mn))), 128))
|
|
3174
3181
|
], 512), [
|
|
3175
|
-
[H,
|
|
3182
|
+
[H, s.value]
|
|
3176
3183
|
])
|
|
3177
3184
|
]),
|
|
3178
3185
|
_: 1
|
|
3179
3186
|
})
|
|
3180
3187
|
])) : N("", !0);
|
|
3181
3188
|
}
|
|
3182
|
-
}),
|
|
3189
|
+
}), Ln = { class: "cl-relative" }, Pn = { class: "cl-h-full cl-z-0 xl:cl-h-screen" }, Fn = { class: "cl-absolute cl-bg-secondary-default cl-gap-y-1 cl-grid cl-grid-cols-1 cl-left-0 cl-opacity-95 cl-p-6 cl-top-0 cl-w-full cl-z-10 lg:cl-gap-x-1 lg:cl-grid-cols-10 lg:cl-p-10" }, Hn = { class: "cl-col-span-10 lg:cl-col-span-3" }, xn = {
|
|
3183
3190
|
key: 0,
|
|
3184
3191
|
class: "cl-col-span-10 cl-flex cl-items-start cl-justify-end cl-text-white lg:cl-col-span-1 lg:cl-p-2"
|
|
3185
|
-
},
|
|
3192
|
+
}, Gn = { class: "cl-col-span-3" }, Zn = { class: "cl-inline cl-relative cl-text-grey-4" }, Wn = { class: "cl-col-span-3" }, Kn = { class: "cl-inline cl-relative cl-text-grey-4" }, Qn = { class: "cl-col-span-10 cl-emphasis-danger cl-mt-10 cl-p-3 cl-rounded-md cl-text-sm md:cl-mt-3" }, Jn = /* @__PURE__ */ M({
|
|
3186
3193
|
__name: "cl-ui-login",
|
|
3187
3194
|
props: {
|
|
3188
3195
|
errors: { default: () => [] },
|
|
@@ -3193,18 +3200,18 @@ const Rn = {
|
|
|
3193
3200
|
"update:errors": null
|
|
3194
3201
|
},
|
|
3195
3202
|
setup(t, { emit: o }) {
|
|
3196
|
-
const { t:
|
|
3203
|
+
const { t: e } = oe(), l = A(""), s = A(""), m = A("password"), n = A();
|
|
3197
3204
|
function a() {
|
|
3198
3205
|
const b = {
|
|
3199
|
-
username:
|
|
3200
|
-
password:
|
|
3206
|
+
username: l.value,
|
|
3207
|
+
password: s.value
|
|
3201
3208
|
};
|
|
3202
3209
|
o("login", b);
|
|
3203
3210
|
}
|
|
3204
|
-
function
|
|
3211
|
+
function c() {
|
|
3205
3212
|
o("update:errors", []);
|
|
3206
3213
|
}
|
|
3207
|
-
function
|
|
3214
|
+
function u(b, r) {
|
|
3208
3215
|
const w = {
|
|
3209
3216
|
valid: !0,
|
|
3210
3217
|
message: ""
|
|
@@ -3212,61 +3219,61 @@ const Rn = {
|
|
|
3212
3219
|
return typeof r == "string" && r.trim() === "" && (w.valid = !1), w;
|
|
3213
3220
|
}
|
|
3214
3221
|
function g(b, r) {
|
|
3215
|
-
|
|
3222
|
+
n.value = b;
|
|
3216
3223
|
}
|
|
3217
|
-
return (b, r) => (
|
|
3218
|
-
p("div",
|
|
3224
|
+
return (b, r) => (i(), v("div", Ln, [
|
|
3225
|
+
p("div", Pn, [
|
|
3219
3226
|
j(b.$slots, "background")
|
|
3220
3227
|
]),
|
|
3221
|
-
p("form",
|
|
3222
|
-
p("div",
|
|
3228
|
+
p("form", Fn, [
|
|
3229
|
+
p("div", Hn, [
|
|
3223
3230
|
j(b.$slots, "logo")
|
|
3224
3231
|
]),
|
|
3225
|
-
b.$slots["language-switcher"] ? (
|
|
3232
|
+
b.$slots["language-switcher"] ? (i(), v("div", xn, [
|
|
3226
3233
|
j(b.$slots, "language-switcher")
|
|
3227
3234
|
])) : N("", !0),
|
|
3228
3235
|
p("div", {
|
|
3229
|
-
class:
|
|
3236
|
+
class: I(["cl-gap-y-4 cl-grid cl-grid-cols-1 lg:cl-gap-x-2 lg:cl-grid-cols-8", {
|
|
3230
3237
|
"cl-col-span-7": !b.$slots["language-switcher"],
|
|
3231
3238
|
"cl-col-span-6": b.$slots["language-switcher"]
|
|
3232
3239
|
}])
|
|
3233
3240
|
}, [
|
|
3234
|
-
p("div",
|
|
3235
|
-
p("div",
|
|
3236
|
-
k(d(
|
|
3241
|
+
p("div", Gn, [
|
|
3242
|
+
p("div", Zn, [
|
|
3243
|
+
k(d(_), {
|
|
3237
3244
|
class: "cl-absolute cl-left-3 cl-top-2.5 cl-z-10",
|
|
3238
3245
|
icon: "ph:user",
|
|
3239
3246
|
size: 18
|
|
3240
3247
|
}),
|
|
3241
3248
|
k(ae, {
|
|
3242
3249
|
id: "cl-ui-login-usernameinput",
|
|
3243
|
-
modelValue:
|
|
3244
|
-
"onUpdate:modelValue": r[0] || (r[0] = (w) =>
|
|
3250
|
+
modelValue: l.value,
|
|
3251
|
+
"onUpdate:modelValue": r[0] || (r[0] = (w) => l.value = w),
|
|
3245
3252
|
modelModifiers: { trim: !0 },
|
|
3246
3253
|
class: "!cl-border-2 !cl-mb-1 cl-w-full",
|
|
3247
3254
|
"input-type": "email",
|
|
3248
|
-
"highlight-when-valid":
|
|
3249
|
-
label: d(
|
|
3255
|
+
"highlight-when-valid": l.value !== void 0 && l.value !== "",
|
|
3256
|
+
label: d(e)("login.username"),
|
|
3250
3257
|
"show-label": !1,
|
|
3251
|
-
"placeholder-text": d(
|
|
3258
|
+
"placeholder-text": d(e)("login.email"),
|
|
3252
3259
|
autocomplete: "username",
|
|
3253
3260
|
"validate-immediately": !0,
|
|
3254
|
-
"custom-validation-function":
|
|
3261
|
+
"custom-validation-function": u,
|
|
3255
3262
|
"input-specific-classes": "!cl-pl-9",
|
|
3256
|
-
"message-when-valid":
|
|
3257
|
-
onInput:
|
|
3263
|
+
"message-when-valid": l.value ? d(e)("login.validEmail") : "",
|
|
3264
|
+
onInput: c,
|
|
3258
3265
|
onValidated: g
|
|
3259
3266
|
}, null, 8, ["modelValue", "highlight-when-valid", "label", "placeholder-text", "message-when-valid"])
|
|
3260
3267
|
])
|
|
3261
3268
|
]),
|
|
3262
|
-
p("div",
|
|
3263
|
-
p("div",
|
|
3264
|
-
k(d(
|
|
3269
|
+
p("div", Wn, [
|
|
3270
|
+
p("div", Kn, [
|
|
3271
|
+
k(d(_), {
|
|
3265
3272
|
class: "cl-absolute cl-left-3 cl-top-2.5 cl-z-10",
|
|
3266
3273
|
icon: "ph:lock",
|
|
3267
3274
|
size: 18
|
|
3268
3275
|
}),
|
|
3269
|
-
L(k(d(
|
|
3276
|
+
L(k(d(_), {
|
|
3270
3277
|
class: "cl-absolute cl-cursor-pointer cl-right-4 cl-top-2.5 cl-z-10",
|
|
3271
3278
|
icon: "ph:eye",
|
|
3272
3279
|
size: 18,
|
|
@@ -3274,7 +3281,7 @@ const Rn = {
|
|
|
3274
3281
|
}, null, 512), [
|
|
3275
3282
|
[H, m.value === "password"]
|
|
3276
3283
|
]),
|
|
3277
|
-
L(k(d(
|
|
3284
|
+
L(k(d(_), {
|
|
3278
3285
|
class: "cl-absolute cl-cursor-pointer cl-right-4 cl-top-2.5 cl-z-10",
|
|
3279
3286
|
icon: "ph:eye-slash",
|
|
3280
3287
|
size: 18,
|
|
@@ -3284,24 +3291,24 @@ const Rn = {
|
|
|
3284
3291
|
]),
|
|
3285
3292
|
k(ae, {
|
|
3286
3293
|
id: "cl-ui-login-passwordinput",
|
|
3287
|
-
modelValue:
|
|
3288
|
-
"onUpdate:modelValue": r[3] || (r[3] = (w) =>
|
|
3294
|
+
modelValue: s.value,
|
|
3295
|
+
"onUpdate:modelValue": r[3] || (r[3] = (w) => s.value = w),
|
|
3289
3296
|
class: "!cl-border-2 cl-w-full",
|
|
3290
3297
|
"input-type": m.value,
|
|
3291
|
-
"highlight-when-valid":
|
|
3292
|
-
label: d(
|
|
3298
|
+
"highlight-when-valid": s.value !== void 0 && s.value !== "",
|
|
3299
|
+
label: d(e)("login.password"),
|
|
3293
3300
|
"show-label": !1,
|
|
3294
|
-
"placeholder-text": d(
|
|
3301
|
+
"placeholder-text": d(e)("login.password"),
|
|
3295
3302
|
autocomplete: "current-password",
|
|
3296
3303
|
"validate-immediately": !0,
|
|
3297
3304
|
"input-specific-classes": "!cl-pl-9 !cl-pr-9",
|
|
3298
|
-
"custom-validation-function":
|
|
3299
|
-
onInput:
|
|
3305
|
+
"custom-validation-function": u,
|
|
3306
|
+
onInput: c
|
|
3300
3307
|
}, null, 8, ["modelValue", "input-type", "highlight-when-valid", "label", "placeholder-text"])
|
|
3301
3308
|
])
|
|
3302
3309
|
]),
|
|
3303
3310
|
p("div", {
|
|
3304
|
-
class:
|
|
3311
|
+
class: I(["cl-col-span-2", {
|
|
3305
3312
|
"cl-mt-1.5 cl-mb-1 md:cl-mt-0.5 md:cl-mb-7 lg:cl-mb-0": b.loading
|
|
3306
3313
|
}])
|
|
3307
3314
|
}, [
|
|
@@ -3310,11 +3317,11 @@ const Rn = {
|
|
|
3310
3317
|
class: "cl-w-full",
|
|
3311
3318
|
colour: "blue",
|
|
3312
3319
|
loading: b.loading,
|
|
3313
|
-
disabled: !
|
|
3320
|
+
disabled: !n.value || s.value === "",
|
|
3314
3321
|
onClick: W(a, ["prevent"])
|
|
3315
3322
|
}, {
|
|
3316
3323
|
default: P(() => [
|
|
3317
|
-
ee(T(d(
|
|
3324
|
+
ee(T(d(e)("login.login")), 1)
|
|
3318
3325
|
]),
|
|
3319
3326
|
_: 1
|
|
3320
3327
|
}, 8, ["loading", "disabled", "onClick"])
|
|
@@ -3324,8 +3331,8 @@ const Rn = {
|
|
|
3324
3331
|
default: P(() => {
|
|
3325
3332
|
var w;
|
|
3326
3333
|
return [
|
|
3327
|
-
L(p("span",
|
|
3328
|
-
(
|
|
3334
|
+
L(p("span", Qn, [
|
|
3335
|
+
(i(!0), v(F, null, Q(b.errors, (h, q) => (i(), v("div", {
|
|
3329
3336
|
id: "cl-ui-login-errors",
|
|
3330
3337
|
key: q,
|
|
3331
3338
|
class: "cl-font-semibold"
|
|
@@ -3340,98 +3347,98 @@ const Rn = {
|
|
|
3340
3347
|
])
|
|
3341
3348
|
]));
|
|
3342
3349
|
}
|
|
3343
|
-
}),
|
|
3350
|
+
}), Yn = [
|
|
3344
3351
|
"x-small",
|
|
3345
3352
|
"small",
|
|
3346
3353
|
"medium",
|
|
3347
3354
|
"large"
|
|
3348
|
-
],
|
|
3355
|
+
], Xn = [
|
|
3349
3356
|
"primary",
|
|
3350
3357
|
"secondary",
|
|
3351
3358
|
"white"
|
|
3352
|
-
],
|
|
3359
|
+
], es = {
|
|
3353
3360
|
key: 0,
|
|
3354
3361
|
class: "cl-h-0 cl-w-0"
|
|
3355
|
-
},
|
|
3362
|
+
}, ls = { class: "cl-relative cl-w-full" }, ts = /* @__PURE__ */ M({
|
|
3356
3363
|
__name: "cl-ui-navigation",
|
|
3357
3364
|
props: {
|
|
3358
3365
|
colour: { default: "default" }
|
|
3359
3366
|
},
|
|
3360
3367
|
setup(t) {
|
|
3361
|
-
const o = A([]),
|
|
3362
|
-
function
|
|
3368
|
+
const o = A([]), e = S(() => o.value.filter((r) => r.open === !0).length > 0);
|
|
3369
|
+
function l(r) {
|
|
3363
3370
|
let w = o.value.find((h) => h.id === r);
|
|
3364
3371
|
return w || (w = {
|
|
3365
3372
|
id: r,
|
|
3366
3373
|
open: !1
|
|
3367
3374
|
}, o.value.push(w)), w.open;
|
|
3368
3375
|
}
|
|
3369
|
-
function
|
|
3376
|
+
function s(r) {
|
|
3370
3377
|
const w = o.value.find((h) => h.id === r);
|
|
3371
3378
|
w && (w.open = !w.open, o.value.forEach((h) => {
|
|
3372
3379
|
h.id !== r && (h.open = !1);
|
|
3373
3380
|
}));
|
|
3374
3381
|
}
|
|
3375
|
-
const m =
|
|
3382
|
+
const m = cl();
|
|
3376
3383
|
K(
|
|
3377
3384
|
() => m,
|
|
3378
3385
|
() => {
|
|
3379
|
-
|
|
3386
|
+
n.value = !1;
|
|
3380
3387
|
},
|
|
3381
3388
|
{
|
|
3382
3389
|
deep: !0
|
|
3383
3390
|
}
|
|
3384
3391
|
);
|
|
3385
|
-
const
|
|
3386
|
-
function
|
|
3387
|
-
|
|
3392
|
+
const n = A(!1), a = A(!1), { start: c } = Ke(() => a.value = !1, 100);
|
|
3393
|
+
function u() {
|
|
3394
|
+
n.value = !n.value, a.value = !0, c();
|
|
3388
3395
|
}
|
|
3389
3396
|
const g = A();
|
|
3390
3397
|
function b() {
|
|
3391
|
-
|
|
3398
|
+
n.value === !1 && e.value === !0 && o.value.forEach((r) => {
|
|
3392
3399
|
r.open = !1;
|
|
3393
3400
|
});
|
|
3394
3401
|
}
|
|
3395
|
-
return ze(g, b), (r, w) => (
|
|
3402
|
+
return ze(g, b), (r, w) => (i(), v("div", {
|
|
3396
3403
|
ref_key: "navElement",
|
|
3397
3404
|
ref: g,
|
|
3398
3405
|
class: "cl-flex cl-flex-nowrap cl-relative"
|
|
3399
3406
|
}, [
|
|
3400
3407
|
p("div", {
|
|
3401
3408
|
id: "group-container",
|
|
3402
|
-
class:
|
|
3409
|
+
class: I(["cl-h-full cl-overflow-y-auto cl-overscroll-y-none cl-pb-20 cl-w-20 cl-z-30 xl:cl-pb-0", {
|
|
3403
3410
|
"cl-bg-primary-default": r.colour === "default",
|
|
3404
3411
|
"cl-bg-blue-dark": r.colour === "secondary"
|
|
3405
3412
|
}])
|
|
3406
3413
|
}, [
|
|
3407
|
-
j(r.$slots, "icon", se({ navcolour: r.colour }, { groupIsOpen:
|
|
3414
|
+
j(r.$slots, "icon", se({ navcolour: r.colour }, { groupIsOpen: l, toggleOpen: s }), void 0, !0)
|
|
3408
3415
|
], 2),
|
|
3409
|
-
a.value ? (
|
|
3416
|
+
a.value ? (i(), v("div", es)) : N("", !0),
|
|
3410
3417
|
k(me, { name: "slide-right" }, {
|
|
3411
3418
|
default: P(() => [
|
|
3412
3419
|
L(p("div", {
|
|
3413
|
-
class:
|
|
3414
|
-
"cl-relative":
|
|
3415
|
-
"cl-absolute cl-left-20 cl-shadow-lg": !
|
|
3420
|
+
class: I(["cl-bg-grey-0 cl-border-grey-2 cl-border-r cl-duration-75 cl-h-full cl-min-w-[260px] cl-overflow-y-auto cl-overscroll-y-none cl-p-8 cl-pb-24 cl-top-0 cl-transition-shadow cl-w-[260px] cl-z-20 xl:cl-pb-0", {
|
|
3421
|
+
"cl-relative": n.value,
|
|
3422
|
+
"cl-absolute cl-left-20 cl-shadow-lg": !n.value
|
|
3416
3423
|
}])
|
|
3417
3424
|
}, [
|
|
3418
|
-
p("div",
|
|
3425
|
+
p("div", ls, [
|
|
3419
3426
|
p("span", {
|
|
3420
3427
|
class: "cl-absolute cl-cursor-pointer cl-hidden cl-right-0 cl-top-1.5 lg:cl-block",
|
|
3421
|
-
onClick:
|
|
3428
|
+
onClick: u
|
|
3422
3429
|
}, [
|
|
3423
|
-
|
|
3430
|
+
n.value ? (i(), V(d(_), {
|
|
3424
3431
|
key: 1,
|
|
3425
3432
|
icon: "ph:push-pin-slash"
|
|
3426
|
-
})) : (
|
|
3433
|
+
})) : (i(), V(d(_), {
|
|
3427
3434
|
key: 0,
|
|
3428
3435
|
icon: "ph:push-pin"
|
|
3429
3436
|
}))
|
|
3430
3437
|
]),
|
|
3431
|
-
j(r.$slots, "default", le(ne({ groupIsOpen:
|
|
3438
|
+
j(r.$slots, "default", le(ne({ groupIsOpen: l })), void 0, !0)
|
|
3432
3439
|
])
|
|
3433
3440
|
], 2), [
|
|
3434
|
-
[H,
|
|
3441
|
+
[H, e.value]
|
|
3435
3442
|
])
|
|
3436
3443
|
]),
|
|
3437
3444
|
_: 3
|
|
@@ -3439,7 +3446,7 @@ const Rn = {
|
|
|
3439
3446
|
], 512));
|
|
3440
3447
|
}
|
|
3441
3448
|
});
|
|
3442
|
-
const
|
|
3449
|
+
const os = /* @__PURE__ */ de(ts, [["__scopeId", "data-v-7db412a7"]]), ns = /* @__PURE__ */ M({
|
|
3443
3450
|
__name: "cl-ui-navigation-icon",
|
|
3444
3451
|
props: {
|
|
3445
3452
|
iconValue: {},
|
|
@@ -3447,60 +3454,60 @@ const ls = /* @__PURE__ */ de(es, [["__scopeId", "data-v-7db412a7"]]), ts = /* @
|
|
|
3447
3454
|
colour: { default: "default" }
|
|
3448
3455
|
},
|
|
3449
3456
|
setup(t) {
|
|
3450
|
-
return (o,
|
|
3451
|
-
class:
|
|
3457
|
+
return (o, e) => (i(), v("div", {
|
|
3458
|
+
class: I(["cl-cursor-pointer cl-flex cl-h-20 cl-items-center cl-justify-center cl-transition-colors cl-w-20", {
|
|
3452
3459
|
"cl-text-secondary-default hover:cl-bg-primary-dark hover:cl-text-white": o.colour === "default",
|
|
3453
3460
|
"cl-bg-primary-darker cl-text-white": o.open && o.colour === "default",
|
|
3454
3461
|
"cl-text-white hover:cl-bg-blue-light": o.colour === "secondary",
|
|
3455
3462
|
"cl-bg-blue-light": o.open && o.colour === "secondary"
|
|
3456
3463
|
}])
|
|
3457
3464
|
}, [
|
|
3458
|
-
k(d(
|
|
3465
|
+
k(d(_), {
|
|
3459
3466
|
class: "cl-block",
|
|
3460
3467
|
icon: o.iconValue,
|
|
3461
3468
|
width: "24"
|
|
3462
3469
|
}, null, 8, ["icon"])
|
|
3463
3470
|
], 2));
|
|
3464
3471
|
}
|
|
3465
|
-
}),
|
|
3472
|
+
}), ss = {
|
|
3466
3473
|
key: 0,
|
|
3467
3474
|
class: "cl-font-bold cl-leading-8 cl-mb-8 cl-pr-8 cl-select-none cl-text-lg cl-text-secondary-default"
|
|
3468
|
-
},
|
|
3475
|
+
}, as = { class: "cl-flex cl-flex-wrap cl-space-y-8 cl-text-sm cl-w-full" }, rs = /* @__PURE__ */ M({
|
|
3469
3476
|
__name: "cl-ui-navigation-group",
|
|
3470
3477
|
props: {
|
|
3471
3478
|
open: { type: Boolean }
|
|
3472
3479
|
},
|
|
3473
3480
|
setup(t) {
|
|
3474
|
-
return (o,
|
|
3475
|
-
o.$slots.title ? (
|
|
3481
|
+
return (o, e) => o.open ? (i(), v(F, { key: 0 }, [
|
|
3482
|
+
o.$slots.title ? (i(), v("div", ss, [
|
|
3476
3483
|
j(o.$slots, "title")
|
|
3477
3484
|
])) : N("", !0),
|
|
3478
|
-
p("div",
|
|
3485
|
+
p("div", as, [
|
|
3479
3486
|
j(o.$slots, "default")
|
|
3480
3487
|
])
|
|
3481
3488
|
], 64)) : N("", !0);
|
|
3482
3489
|
}
|
|
3483
|
-
}),
|
|
3490
|
+
}), cs = {}, is = { class: "cl-w-full" }, us = {
|
|
3484
3491
|
key: 0,
|
|
3485
3492
|
class: "cl-font-bold cl-mb-4 cl-select-none"
|
|
3486
|
-
},
|
|
3487
|
-
function
|
|
3488
|
-
return
|
|
3489
|
-
t.$slots.title ? (
|
|
3493
|
+
}, ds = { class: "cl-flex cl-flex-wrap cl-space-y-2" };
|
|
3494
|
+
function ps(t, o) {
|
|
3495
|
+
return i(), v("div", is, [
|
|
3496
|
+
t.$slots.title ? (i(), v("div", us, [
|
|
3490
3497
|
j(t.$slots, "title")
|
|
3491
3498
|
])) : N("", !0),
|
|
3492
|
-
p("span",
|
|
3499
|
+
p("span", ds, [
|
|
3493
3500
|
j(t.$slots, "default")
|
|
3494
3501
|
])
|
|
3495
3502
|
]);
|
|
3496
3503
|
}
|
|
3497
|
-
const
|
|
3498
|
-
function
|
|
3499
|
-
return
|
|
3504
|
+
const fs = /* @__PURE__ */ de(cs, [["render", ps]]), ms = {}, gs = { class: "cl-cursor-pointer cl-transition-colors cl-w-full hover:cl-text-blue-light" };
|
|
3505
|
+
function vs(t, o) {
|
|
3506
|
+
return i(), v("div", gs, [
|
|
3500
3507
|
j(t.$slots, "default")
|
|
3501
3508
|
]);
|
|
3502
3509
|
}
|
|
3503
|
-
const
|
|
3510
|
+
const bs = /* @__PURE__ */ de(ms, [["render", vs]]), hs = { class: "cl-w-full" }, ys = /* @__PURE__ */ M({
|
|
3504
3511
|
__name: "cl-ui-tab",
|
|
3505
3512
|
props: {
|
|
3506
3513
|
currentTab: { default: 0 },
|
|
@@ -3508,70 +3515,70 @@ const gs = /* @__PURE__ */ de(ps, [["render", ms]]), vs = { class: "cl-w-full" }
|
|
|
3508
3515
|
colour: { default: "default" }
|
|
3509
3516
|
},
|
|
3510
3517
|
setup(t) {
|
|
3511
|
-
const o = t,
|
|
3512
|
-
function m(
|
|
3513
|
-
return
|
|
3518
|
+
const o = t, e = A(), l = A(!1), s = A(!1);
|
|
3519
|
+
function m(u) {
|
|
3520
|
+
return u === o.currentTab;
|
|
3514
3521
|
}
|
|
3515
|
-
function
|
|
3516
|
-
if (
|
|
3517
|
-
const
|
|
3518
|
-
|
|
3522
|
+
function n() {
|
|
3523
|
+
if (e.value) {
|
|
3524
|
+
const u = e.value.scrollWidth - e.value.clientWidth;
|
|
3525
|
+
l.value = e.value.scrollLeft > 0, s.value = e.value.scrollLeft < u;
|
|
3519
3526
|
} else
|
|
3520
|
-
|
|
3527
|
+
l.value = !1, s.value = !1;
|
|
3521
3528
|
}
|
|
3522
3529
|
function a() {
|
|
3523
|
-
|
|
3530
|
+
n(), window.addEventListener("resize", n);
|
|
3524
3531
|
}
|
|
3525
|
-
function
|
|
3526
|
-
if (
|
|
3527
|
-
const g =
|
|
3532
|
+
function c(u) {
|
|
3533
|
+
if (e.value) {
|
|
3534
|
+
const g = e.value.scrollWidth / 5;
|
|
3528
3535
|
let b = g;
|
|
3529
|
-
|
|
3536
|
+
u === "left" && (b = -g), e.value.scroll(e.value.scrollLeft + b, 0);
|
|
3530
3537
|
}
|
|
3531
3538
|
}
|
|
3532
|
-
return Ae(() => a()),
|
|
3539
|
+
return Ae(() => a()), _e(() => window.removeEventListener("resize", n)), (u, g) => (i(), v("div", hs, [
|
|
3533
3540
|
p("div", null, [
|
|
3534
|
-
|
|
3541
|
+
l.value ? (i(), v("div", {
|
|
3535
3542
|
key: 0,
|
|
3536
3543
|
class: "cl-bg-white cl-cursor-pointer cl-float-left cl-h-11 cl-w-4",
|
|
3537
|
-
onClick: g[0] || (g[0] = (b) =>
|
|
3544
|
+
onClick: g[0] || (g[0] = (b) => c("left"))
|
|
3538
3545
|
}, [
|
|
3539
|
-
k(d(
|
|
3546
|
+
k(d(_), {
|
|
3540
3547
|
icon: "ph:caret-left",
|
|
3541
3548
|
class: "cl-mt-4 cl-text-secondary-default"
|
|
3542
3549
|
})
|
|
3543
3550
|
])) : N("", !0),
|
|
3544
3551
|
p("div", {
|
|
3545
3552
|
ref_key: "headerContainer",
|
|
3546
|
-
ref:
|
|
3547
|
-
class:
|
|
3548
|
-
"cl-shadow-[inset_0_-1px_0_#eeeeee]": !
|
|
3549
|
-
"cl-shadow-[inset_0_-1px_0_#9acd32]": !
|
|
3550
|
-
"cl-shadow-[inset_0_-1px_0_#30363e]": !
|
|
3551
|
-
"cl-shadow-[inset_0_-1px_0_#f0506e]": !
|
|
3552
|
-
"cl-shadow-[inset_0_-1px_0_#1e90ff]": !
|
|
3553
|
-
"cl-shadow-[inset_0_-1px_0_#d7d7d7]":
|
|
3554
|
-
"cl-mr-4":
|
|
3553
|
+
ref: e,
|
|
3554
|
+
class: I(["cl-flex cl-overflow-x-auto cl-overscroll-x-none", {
|
|
3555
|
+
"cl-shadow-[inset_0_-1px_0_#eeeeee]": !u.disabled && u.colour === "default",
|
|
3556
|
+
"cl-shadow-[inset_0_-1px_0_#9acd32]": !u.disabled && u.colour === "primary",
|
|
3557
|
+
"cl-shadow-[inset_0_-1px_0_#30363e]": !u.disabled && u.colour === "secondary",
|
|
3558
|
+
"cl-shadow-[inset_0_-1px_0_#f0506e]": !u.disabled && u.colour === "danger",
|
|
3559
|
+
"cl-shadow-[inset_0_-1px_0_#1e90ff]": !u.disabled && u.colour === "blue",
|
|
3560
|
+
"cl-shadow-[inset_0_-1px_0_#d7d7d7]": u.disabled,
|
|
3561
|
+
"cl-mr-4": s.value
|
|
3555
3562
|
}]),
|
|
3556
|
-
onScrollPassive:
|
|
3563
|
+
onScrollPassive: n
|
|
3557
3564
|
}, [
|
|
3558
|
-
j(
|
|
3565
|
+
j(u.$slots, "headings", le(ne({ isTabOpen: m, disabled: u.disabled, colour: u.colour })))
|
|
3559
3566
|
], 34),
|
|
3560
|
-
|
|
3567
|
+
s.value ? (i(), v("div", {
|
|
3561
3568
|
key: 1,
|
|
3562
3569
|
class: "cl-bg-white cl-bottom-12 cl-cursor-pointer cl-float-right cl-h-11 cl-relative cl-w-4",
|
|
3563
|
-
onClick: g[1] || (g[1] = (b) =>
|
|
3570
|
+
onClick: g[1] || (g[1] = (b) => c("right"))
|
|
3564
3571
|
}, [
|
|
3565
|
-
k(d(
|
|
3572
|
+
k(d(_), {
|
|
3566
3573
|
icon: "ph:caret-right",
|
|
3567
3574
|
class: "cl-mt-4 cl-text-secondary-default"
|
|
3568
3575
|
})
|
|
3569
3576
|
])) : N("", !0)
|
|
3570
3577
|
]),
|
|
3571
|
-
j(
|
|
3578
|
+
j(u.$slots, "content", le(ne({ isTabOpen: m, disabled: u.disabled, colour: u.colour })))
|
|
3572
3579
|
]));
|
|
3573
3580
|
}
|
|
3574
|
-
}),
|
|
3581
|
+
}), ws = ["onKeyup"], $s = /* @__PURE__ */ M({
|
|
3575
3582
|
__name: "cl-ui-tab-header",
|
|
3576
3583
|
props: {
|
|
3577
3584
|
id: {},
|
|
@@ -3583,12 +3590,12 @@ const gs = /* @__PURE__ */ de(ps, [["render", ms]]), vs = { class: "cl-w-full" }
|
|
|
3583
3590
|
"update:currentTab": null
|
|
3584
3591
|
},
|
|
3585
3592
|
setup(t, { emit: o }) {
|
|
3586
|
-
const
|
|
3587
|
-
function
|
|
3588
|
-
|
|
3593
|
+
const e = t, l = A(), s = A(), m = S(() => e.id === e.currentTab);
|
|
3594
|
+
function n() {
|
|
3595
|
+
e.disabled || (l.value = !1, s.value = !1, o("update:currentTab", e.id));
|
|
3589
3596
|
}
|
|
3590
|
-
return (a,
|
|
3591
|
-
class:
|
|
3597
|
+
return (a, c) => (i(), v("div", {
|
|
3598
|
+
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", {
|
|
3592
3599
|
"!cl-cursor-default cl-text-grey-4 !cl-border-grey-2": a.disabled,
|
|
3593
3600
|
"cl-border cl-border-b-0 cl-rounded-t-md cl-shadow-[inset_0_-1px_0_#ffffff] cl-cursor-default": m.value,
|
|
3594
3601
|
"cl-border-grey-0": a.colour === "default",
|
|
@@ -3601,152 +3608,152 @@ const gs = /* @__PURE__ */ de(ps, [["render", ms]]), vs = { class: "cl-w-full" }
|
|
|
3601
3608
|
"hover:cl-bg-secondary-light focus:cl-text-white hover:cl-text-white": !m.value && !a.disabled && a.colour === "secondary",
|
|
3602
3609
|
"hover:cl-bg-danger-light": !m.value && !a.disabled && a.colour === "danger",
|
|
3603
3610
|
"hover:cl-bg-link-lighter": !m.value && !a.disabled && a.colour === "blue",
|
|
3604
|
-
"cl-bg-grey-0":
|
|
3605
|
-
"cl-bg-primary-
|
|
3606
|
-
"cl-bg-secondary-light cl-text-white":
|
|
3607
|
-
"cl-bg-danger-light":
|
|
3608
|
-
"cl-bg-link-lighter":
|
|
3611
|
+
"cl-bg-grey-0": l.value && !a.disabled && a.colour === "default",
|
|
3612
|
+
"cl-bg-primary-light": l.value && !a.disabled && a.colour === "primary",
|
|
3613
|
+
"cl-bg-secondary-light cl-text-white": l.value && !a.disabled && a.colour === "secondary",
|
|
3614
|
+
"cl-bg-danger-light": l.value && !a.disabled && a.colour === "danger",
|
|
3615
|
+
"cl-bg-link-lighter": l.value && !a.disabled && a.colour === "blue"
|
|
3609
3616
|
}]),
|
|
3610
3617
|
tabindex: "0",
|
|
3611
|
-
onClick:
|
|
3612
|
-
onMouseover:
|
|
3613
|
-
onMouseout:
|
|
3614
|
-
onFocusin:
|
|
3615
|
-
onFocusout:
|
|
3616
|
-
onKeyup: we(W(
|
|
3618
|
+
onClick: n,
|
|
3619
|
+
onMouseover: c[0] || (c[0] = (u) => s.value = !0),
|
|
3620
|
+
onMouseout: c[1] || (c[1] = (u) => s.value = !1),
|
|
3621
|
+
onFocusin: c[2] || (c[2] = (u) => l.value = !0),
|
|
3622
|
+
onFocusout: c[3] || (c[3] = (u) => l.value = !1),
|
|
3623
|
+
onKeyup: we(W(n, ["self"]), ["enter"])
|
|
3617
3624
|
}, [
|
|
3618
3625
|
j(a.$slots, "default")
|
|
3619
|
-
], 42,
|
|
3626
|
+
], 42, ws));
|
|
3620
3627
|
}
|
|
3621
|
-
}),
|
|
3622
|
-
function
|
|
3628
|
+
}), ks = {};
|
|
3629
|
+
function Cs(t, o) {
|
|
3623
3630
|
return j(t.$slots, "default");
|
|
3624
3631
|
}
|
|
3625
|
-
const
|
|
3632
|
+
const Ts = /* @__PURE__ */ de(ks, [["render", Cs]]), Es = [
|
|
3626
3633
|
"default",
|
|
3627
3634
|
"primary",
|
|
3628
3635
|
"secondary",
|
|
3629
3636
|
"danger",
|
|
3630
3637
|
"blue"
|
|
3631
|
-
],
|
|
3638
|
+
], Os = [
|
|
3632
3639
|
"left",
|
|
3633
3640
|
"right"
|
|
3634
|
-
],
|
|
3641
|
+
], qs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3635
3642
|
__proto__: null,
|
|
3636
3643
|
FilterOperation: te,
|
|
3637
|
-
buttonColours:
|
|
3638
|
-
buttonSizes:
|
|
3644
|
+
buttonColours: Sl,
|
|
3645
|
+
buttonSizes: Nl,
|
|
3639
3646
|
cardSizes: _l,
|
|
3640
|
-
clUiAccordion:
|
|
3641
|
-
clUiAccordionHeader:
|
|
3642
|
-
clUiAccordionItem:
|
|
3643
|
-
clUiApp:
|
|
3647
|
+
clUiAccordion: pl,
|
|
3648
|
+
clUiAccordionHeader: wl,
|
|
3649
|
+
clUiAccordionItem: vl,
|
|
3650
|
+
clUiApp: Tl,
|
|
3644
3651
|
clUiButton: fe,
|
|
3645
|
-
clUiCard:
|
|
3646
|
-
clUiComboBox:
|
|
3647
|
-
clUiFooter:
|
|
3648
|
-
clUiGrid:
|
|
3649
|
-
clUiHeader:
|
|
3650
|
-
clUiHeaderMenu:
|
|
3652
|
+
clUiCard: Il,
|
|
3653
|
+
clUiComboBox: It,
|
|
3654
|
+
clUiFooter: Pt,
|
|
3655
|
+
clUiGrid: Tn,
|
|
3656
|
+
clUiHeader: On,
|
|
3657
|
+
clUiHeaderMenu: _n,
|
|
3651
3658
|
clUiInput: ae,
|
|
3652
|
-
clUiLanguageSwitcher:
|
|
3659
|
+
clUiLanguageSwitcher: Dn,
|
|
3653
3660
|
clUiLoadingSpinner: Se,
|
|
3654
|
-
clUiLogin:
|
|
3655
|
-
clUiModal:
|
|
3656
|
-
clUiNavigation:
|
|
3657
|
-
clUiNavigationGroup:
|
|
3658
|
-
clUiNavigationIcon:
|
|
3659
|
-
clUiNavigationItem:
|
|
3660
|
-
clUiNavigationSection:
|
|
3661
|
-
clUiNotification:
|
|
3662
|
-
clUiTab:
|
|
3663
|
-
clUiTabContent:
|
|
3664
|
-
clUiTabHeader:
|
|
3665
|
-
filterMethodTypes:
|
|
3666
|
-
gridColumnTypes:
|
|
3667
|
-
inputTypes:
|
|
3668
|
-
isComboBoxCreateRequest:
|
|
3661
|
+
clUiLogin: Jn,
|
|
3662
|
+
clUiModal: Xe,
|
|
3663
|
+
clUiNavigation: os,
|
|
3664
|
+
clUiNavigationGroup: rs,
|
|
3665
|
+
clUiNavigationIcon: ns,
|
|
3666
|
+
clUiNavigationItem: bs,
|
|
3667
|
+
clUiNavigationSection: fs,
|
|
3668
|
+
clUiNotification: Ye,
|
|
3669
|
+
clUiTab: ys,
|
|
3670
|
+
clUiTabContent: Ts,
|
|
3671
|
+
clUiTabHeader: $s,
|
|
3672
|
+
filterMethodTypes: Io,
|
|
3673
|
+
gridColumnTypes: So,
|
|
3674
|
+
inputTypes: Zl,
|
|
3675
|
+
isComboBoxCreateRequest: Rt,
|
|
3669
3676
|
isComboBoxItem: _t,
|
|
3670
|
-
isFilterRequest:
|
|
3671
|
-
isFilterResponse:
|
|
3672
|
-
isGridColumn:
|
|
3673
|
-
isGridColumnArray:
|
|
3674
|
-
isLanguageArray:
|
|
3677
|
+
isFilterRequest: zo,
|
|
3678
|
+
isFilterResponse: Uo,
|
|
3679
|
+
isGridColumn: el,
|
|
3680
|
+
isGridColumnArray: No,
|
|
3681
|
+
isLanguageArray: Rn,
|
|
3675
3682
|
isLanguageLocaleFormat: je,
|
|
3676
|
-
modalColours:
|
|
3677
|
-
modalSizes:
|
|
3678
|
-
stringFormats:
|
|
3679
|
-
tabColours:
|
|
3680
|
-
tabScroll:
|
|
3683
|
+
modalColours: Xn,
|
|
3684
|
+
modalSizes: Yn,
|
|
3685
|
+
stringFormats: jo,
|
|
3686
|
+
tabColours: Es,
|
|
3687
|
+
tabScroll: Os
|
|
3681
3688
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
3682
|
-
const
|
|
3683
|
-
t.use(X), t.component("Icon",
|
|
3689
|
+
const Ls = (t) => {
|
|
3690
|
+
t.use(X), t.component("Icon", _), Object.entries(qs).forEach(([
|
|
3684
3691
|
o,
|
|
3685
|
-
|
|
3692
|
+
e
|
|
3686
3693
|
]) => {
|
|
3687
|
-
t.component(o,
|
|
3694
|
+
t.component(o, e);
|
|
3688
3695
|
});
|
|
3689
3696
|
};
|
|
3690
3697
|
export {
|
|
3691
|
-
|
|
3692
|
-
|
|
3698
|
+
Ds as CitrusLimeUI,
|
|
3699
|
+
G as DateFormat,
|
|
3693
3700
|
te as FilterOperation,
|
|
3694
3701
|
Y as NumberFormat,
|
|
3695
|
-
|
|
3696
|
-
|
|
3702
|
+
Sl as buttonColours,
|
|
3703
|
+
Nl as buttonSizes,
|
|
3697
3704
|
_l as cardSizes,
|
|
3698
|
-
|
|
3699
|
-
|
|
3700
|
-
|
|
3701
|
-
|
|
3705
|
+
pl as clUiAccordion,
|
|
3706
|
+
wl as clUiAccordionHeader,
|
|
3707
|
+
vl as clUiAccordionItem,
|
|
3708
|
+
Tl as clUiApp,
|
|
3702
3709
|
fe as clUiButton,
|
|
3703
|
-
|
|
3704
|
-
|
|
3705
|
-
|
|
3706
|
-
|
|
3707
|
-
|
|
3708
|
-
|
|
3710
|
+
Il as clUiCard,
|
|
3711
|
+
It as clUiComboBox,
|
|
3712
|
+
Pt as clUiFooter,
|
|
3713
|
+
Tn as clUiGrid,
|
|
3714
|
+
On as clUiHeader,
|
|
3715
|
+
_n as clUiHeaderMenu,
|
|
3709
3716
|
ae as clUiInput,
|
|
3710
|
-
|
|
3717
|
+
Dn as clUiLanguageSwitcher,
|
|
3711
3718
|
Se as clUiLoadingSpinner,
|
|
3712
|
-
|
|
3713
|
-
|
|
3714
|
-
|
|
3715
|
-
|
|
3716
|
-
|
|
3717
|
-
|
|
3718
|
-
|
|
3719
|
-
|
|
3720
|
-
|
|
3721
|
-
|
|
3722
|
-
|
|
3723
|
-
|
|
3724
|
-
|
|
3725
|
-
|
|
3726
|
-
|
|
3719
|
+
Jn as clUiLogin,
|
|
3720
|
+
Xe as clUiModal,
|
|
3721
|
+
os as clUiNavigation,
|
|
3722
|
+
rs as clUiNavigationGroup,
|
|
3723
|
+
ns as clUiNavigationIcon,
|
|
3724
|
+
bs as clUiNavigationItem,
|
|
3725
|
+
fs as clUiNavigationSection,
|
|
3726
|
+
Ye as clUiNotification,
|
|
3727
|
+
ys as clUiTab,
|
|
3728
|
+
Ts as clUiTabContent,
|
|
3729
|
+
$s as clUiTabHeader,
|
|
3730
|
+
Ul as datetimeFormats,
|
|
3731
|
+
Ls as default,
|
|
3732
|
+
Io as filterMethodTypes,
|
|
3733
|
+
So as gridColumnTypes,
|
|
3727
3734
|
X as i18n,
|
|
3728
|
-
|
|
3729
|
-
|
|
3735
|
+
Zl as inputTypes,
|
|
3736
|
+
Rt as isComboBoxCreateRequest,
|
|
3730
3737
|
_t as isComboBoxItem,
|
|
3731
|
-
|
|
3732
|
-
|
|
3733
|
-
|
|
3734
|
-
|
|
3735
|
-
|
|
3738
|
+
zo as isFilterRequest,
|
|
3739
|
+
Uo as isFilterResponse,
|
|
3740
|
+
el as isGridColumn,
|
|
3741
|
+
No as isGridColumnArray,
|
|
3742
|
+
Rn as isLanguageArray,
|
|
3736
3743
|
je as isLanguageLocaleFormat,
|
|
3737
|
-
|
|
3738
|
-
|
|
3739
|
-
|
|
3740
|
-
|
|
3741
|
-
|
|
3742
|
-
|
|
3743
|
-
|
|
3744
|
-
|
|
3744
|
+
Rl as messages,
|
|
3745
|
+
Xn as modalColours,
|
|
3746
|
+
Yn as modalSizes,
|
|
3747
|
+
zl as numberFormats,
|
|
3748
|
+
Vs as setCurrentLocale,
|
|
3749
|
+
Ms as setLocaleDateTimeFormats,
|
|
3750
|
+
Us as setLocaleMessages,
|
|
3751
|
+
Bs as setLocaleNumberFormats,
|
|
3745
3752
|
Ve as showNotification,
|
|
3746
|
-
|
|
3747
|
-
|
|
3748
|
-
|
|
3749
|
-
|
|
3750
|
-
|
|
3751
|
-
|
|
3753
|
+
jo as stringFormats,
|
|
3754
|
+
Es as tabColours,
|
|
3755
|
+
Os as tabScroll,
|
|
3756
|
+
Dl as validateEmail,
|
|
3757
|
+
Ml as validateMaxValue,
|
|
3758
|
+
Bl as validateMinValue
|
|
3752
3759
|
};
|