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