@citruslime/ui 3.0.0-beta.15 → 3.0.0-beta.16
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 +522 -525
- package/dist/citrus-lime-ui.umd.js +2 -2
- package/package.json +1 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { Icon as Z } from "@iconify/vue";
|
|
2
|
-
import { defineComponent as F, ref as
|
|
2
|
+
import { defineComponent as F, ref as I, openBlock as p, createElementBlock as b, renderSlot as M, normalizeProps as de, guardReactiveProps as fe, Fragment as Y, createElementVNode as f, normalizeClass as L, createVNode as D, unref as g, Transition as Ce, withCtx as R, withDirectives as Q, mergeProps as te, vShow as X, createBlock as P, Teleport as tl, renderList as re, toDisplayString as N, createCommentVNode as z, computed as O, mergeModels as ge, useModel as Ae, createSlots as Ne, vModelDynamic as Dl, watch as oe, toRefs as Jl, withKeys as me, onMounted as Fe, onUnmounted as Ye, withModifiers as ee, nextTick as Me, resolveComponent as De, createTextVNode as ue, inject as ol, vModelCheckbox as Xl, toValue as vl, watchEffect as et, useAttrs as El, useCssVars as Al, vModelText as Vl, toHandlers as lt, provide as bl, normalizeStyle as tt, pushScopeId as ot, popScopeId as at } from "vue";
|
|
3
3
|
import { generateStringId as nt, highlightText as st, validateEmail as rt } from "@citruslime/utils";
|
|
4
|
-
import { unrefElement as it, tryOnScopeDispose as ct, onClickOutside as al, useTimeoutFn as
|
|
4
|
+
import { unrefElement as it, tryOnScopeDispose as ct, onClickOutside as al, useTimeoutFn as Nl, useMouseInElement as ut, useFocusWithin as dt, useMediaQuery as Il, useThrottle as pt, useElementBounding as ft, useDebounceFn as mt, useWindowSize as gt } from "@vueuse/core";
|
|
5
5
|
import { useI18n as se, createI18n as vt } from "vue-i18n";
|
|
6
6
|
import { createFocusTrap as bt } from "focus-trap";
|
|
7
7
|
import { copy as pe } from "@citruslime/vue-utils";
|
|
8
8
|
import { DateTime as W } from "luxon";
|
|
9
|
-
import { DatePicker as
|
|
9
|
+
import { DatePicker as Ie } from "v-calendar";
|
|
10
10
|
import { useCurrencyInput as ht } from "vue-currency-input";
|
|
11
11
|
const yt = { class: "cl-overflow-hidden" }, wt = /* @__PURE__ */ F({
|
|
12
12
|
__name: "cl-ui-accordion",
|
|
@@ -14,7 +14,7 @@ const yt = { class: "cl-overflow-hidden" }, wt = /* @__PURE__ */ F({
|
|
|
14
14
|
exclusive: { type: Boolean, default: !1 }
|
|
15
15
|
},
|
|
16
16
|
setup(t) {
|
|
17
|
-
const o = t, l =
|
|
17
|
+
const o = t, l = I([]);
|
|
18
18
|
function e(a) {
|
|
19
19
|
let d = l.value.find((c) => c.id === a);
|
|
20
20
|
return d || (d = {
|
|
@@ -91,18 +91,18 @@ function St(t, o) {
|
|
|
91
91
|
M(t.$slots, "default")
|
|
92
92
|
]);
|
|
93
93
|
}
|
|
94
|
-
const Dt = /* @__PURE__ */ he(qt, [["render", St]]), Ke =
|
|
95
|
-
function
|
|
94
|
+
const Dt = /* @__PURE__ */ he(qt, [["render", St]]), Ke = I([]);
|
|
95
|
+
function hl(t) {
|
|
96
96
|
const o = {
|
|
97
97
|
id: nt(),
|
|
98
98
|
...t
|
|
99
99
|
};
|
|
100
|
-
Ke.value.push(o), setTimeout(() =>
|
|
100
|
+
Ke.value.push(o), setTimeout(() => Rl(o), t.duration);
|
|
101
101
|
}
|
|
102
|
-
function
|
|
102
|
+
function Rl(t) {
|
|
103
103
|
Ke.value = Ke.value.filter((o) => o.id !== t.id);
|
|
104
104
|
}
|
|
105
|
-
const Et = ["onClick"], At = { class: "cl-flex-1 cl-select-none cl-text-ellipsis cl-w-64" },
|
|
105
|
+
const Et = ["onClick"], At = { class: "cl-flex-1 cl-select-none cl-text-ellipsis cl-w-64" }, Ml = /* @__PURE__ */ F({
|
|
106
106
|
inheritAttrs: !1,
|
|
107
107
|
__name: "cl-ui-notification",
|
|
108
108
|
props: {
|
|
@@ -130,9 +130,9 @@ const Et = ["onClick"], At = { class: "cl-flex-1 cl-select-none cl-text-ellipsis
|
|
|
130
130
|
"cl-bg-danger-default": e.colour === "danger",
|
|
131
131
|
"cl-bg-warning-default": e.colour === "warning"
|
|
132
132
|
}],
|
|
133
|
-
onClick: (a) => g(
|
|
133
|
+
onClick: (a) => g(Rl)(e)
|
|
134
134
|
}), [
|
|
135
|
-
f("span", At,
|
|
135
|
+
f("span", At, N(e.message), 1),
|
|
136
136
|
D(g(Z), {
|
|
137
137
|
class: "cl-inline-block cl-opacity-0 cl-transition-opacity group-hover:cl-opacity-100",
|
|
138
138
|
icon: "ph:x",
|
|
@@ -143,14 +143,14 @@ const Et = ["onClick"], At = { class: "cl-flex-1 cl-select-none cl-text-ellipsis
|
|
|
143
143
|
], 2)
|
|
144
144
|
], 8, ["to"]));
|
|
145
145
|
}
|
|
146
|
-
}), Vt = { 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" },
|
|
146
|
+
}), Vt = { 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" }, Nt = /* @__PURE__ */ F({
|
|
147
147
|
__name: "cl-ui-app",
|
|
148
148
|
props: {
|
|
149
149
|
removePadding: { type: Boolean, default: !1 }
|
|
150
150
|
},
|
|
151
151
|
setup(t) {
|
|
152
152
|
return (o, l) => (p(), b(Y, null, [
|
|
153
|
-
D(
|
|
153
|
+
D(Ml, {
|
|
154
154
|
class: L({
|
|
155
155
|
"first:cl-mt-[4.25rem]": o.$slots.header
|
|
156
156
|
})
|
|
@@ -176,11 +176,11 @@ const Et = ["onClick"], At = { class: "cl-flex-1 cl-select-none cl-text-ellipsis
|
|
|
176
176
|
])
|
|
177
177
|
], 64));
|
|
178
178
|
}
|
|
179
|
-
}),
|
|
179
|
+
}), It = {}, Rt = { class: "loading-spinner" };
|
|
180
180
|
function Mt(t, o) {
|
|
181
181
|
return p(), b("div", Rt);
|
|
182
182
|
}
|
|
183
|
-
const _e = /* @__PURE__ */ he(
|
|
183
|
+
const _e = /* @__PURE__ */ he(It, [["render", Mt], ["__scopeId", "data-v-a21dc5d2"]]), Ut = ["disabled"], $e = /* @__PURE__ */ F({
|
|
184
184
|
inheritAttrs: !1,
|
|
185
185
|
__name: "cl-ui-button",
|
|
186
186
|
props: {
|
|
@@ -190,7 +190,7 @@ const _e = /* @__PURE__ */ he(Nt, [["render", Mt], ["__scopeId", "data-v-a21dc5d
|
|
|
190
190
|
disabled: { type: Boolean, default: !1 }
|
|
191
191
|
},
|
|
192
192
|
setup(t, { expose: o }) {
|
|
193
|
-
const l =
|
|
193
|
+
const l = I(null);
|
|
194
194
|
return o({
|
|
195
195
|
focus() {
|
|
196
196
|
l.value && l.value.focus();
|
|
@@ -319,7 +319,7 @@ const _e = /* @__PURE__ */ he(Nt, [["render", Mt], ["__scopeId", "data-v-a21dc5d
|
|
|
319
319
|
(p(!0), b(Y, null, re(e.errors, (a, d) => (p(), b("div", {
|
|
320
320
|
key: d,
|
|
321
321
|
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"
|
|
322
|
-
},
|
|
322
|
+
}, N(a), 1))), 128))
|
|
323
323
|
])
|
|
324
324
|
])) : z("", !0)
|
|
325
325
|
]));
|
|
@@ -340,7 +340,7 @@ const _e = /* @__PURE__ */ he(Nt, [["render", Mt], ["__scopeId", "data-v-a21dc5d
|
|
|
340
340
|
}),
|
|
341
341
|
emits: /* @__PURE__ */ ge(["focus", "blur"], ["update:modelValue"]),
|
|
342
342
|
setup(t, { expose: o, emit: l }) {
|
|
343
|
-
const e = Ae(t, "modelValue"), n = l, a =
|
|
343
|
+
const e = Ae(t, "modelValue"), n = l, a = I();
|
|
344
344
|
return o({
|
|
345
345
|
focus: () => {
|
|
346
346
|
var d;
|
|
@@ -353,7 +353,7 @@ const _e = /* @__PURE__ */ he(Nt, [["render", Mt], ["__scopeId", "data-v-a21dc5d
|
|
|
353
353
|
}), (d, c) => (p(), P(Je, {
|
|
354
354
|
"show-required-asterisk": d.required,
|
|
355
355
|
errors: d.errors
|
|
356
|
-
},
|
|
356
|
+
}, Ne({
|
|
357
357
|
default: R(() => [
|
|
358
358
|
Q(f("input", te(d.$attrs, {
|
|
359
359
|
ref_key: "inputRef",
|
|
@@ -368,7 +368,7 @@ const _e = /* @__PURE__ */ he(Nt, [["render", Mt], ["__scopeId", "data-v-a21dc5d
|
|
|
368
368
|
onFocus: c[1] || (c[1] = (u) => n("focus")),
|
|
369
369
|
onBlur: c[2] || (c[2] = (u) => n("blur"))
|
|
370
370
|
}), null, 16, Yt), [
|
|
371
|
-
[
|
|
371
|
+
[Dl, e.value]
|
|
372
372
|
])
|
|
373
373
|
]),
|
|
374
374
|
_: 2
|
|
@@ -385,7 +385,7 @@ const _e = /* @__PURE__ */ he(Nt, [["render", Mt], ["__scopeId", "data-v-a21dc5d
|
|
|
385
385
|
});
|
|
386
386
|
function _t(t, o = {}) {
|
|
387
387
|
let l;
|
|
388
|
-
const { immediate: e, ...n } = o, a =
|
|
388
|
+
const { immediate: e, ...n } = o, a = I(!1), d = I(!1), c = (s) => l && l.activate(s), u = (s) => l && l.deactivate(s), r = () => {
|
|
389
389
|
l && (l.pause(), d.value = !0);
|
|
390
390
|
}, i = () => {
|
|
391
391
|
l && (l.unpause(), d.value = !1);
|
|
@@ -416,7 +416,7 @@ function _t(t, o = {}) {
|
|
|
416
416
|
const Jt = /* @__PURE__ */ f("div", { tabindex: "0" }, null, -1), Xt = {
|
|
417
417
|
key: 0,
|
|
418
418
|
class: "cl-mt-1 cl-opacity-60 cl-text-primary-default"
|
|
419
|
-
}, eo = { class: "cl-overflow-y-auto cl-overscroll-y-none cl-p-2 cl-w-full" },
|
|
419
|
+
}, eo = { class: "cl-overflow-y-auto cl-overscroll-y-none cl-p-2 cl-w-full" }, Ul = /* @__PURE__ */ F({
|
|
420
420
|
inheritAttrs: !1,
|
|
421
421
|
__name: "cl-ui-modal",
|
|
422
422
|
props: {
|
|
@@ -426,7 +426,7 @@ const Jt = /* @__PURE__ */ f("div", { tabindex: "0" }, null, -1), Xt = {
|
|
|
426
426
|
trapFocus: { type: Boolean, default: !1 }
|
|
427
427
|
},
|
|
428
428
|
setup(t) {
|
|
429
|
-
const o = t, { trapFocus: l } = Jl(o), e =
|
|
429
|
+
const o = t, { trapFocus: l } = Jl(o), e = I(!1), n = I(), a = _t(n);
|
|
430
430
|
oe([
|
|
431
431
|
l,
|
|
432
432
|
e
|
|
@@ -516,13 +516,13 @@ const Jt = /* @__PURE__ */ f("div", { tabindex: "0" }, null, -1), Xt = {
|
|
|
516
516
|
emits: ["clear-object"],
|
|
517
517
|
setup(t) {
|
|
518
518
|
return (o, l) => (p(), b("div", lo, [
|
|
519
|
-
o.additionalText !== "" ? (p(), b("div", to,
|
|
519
|
+
o.additionalText !== "" ? (p(), b("div", to, N(o.additionalText), 1)) : z("", !0),
|
|
520
520
|
f("div", {
|
|
521
521
|
class: L({
|
|
522
522
|
"cl-w-1/2": o.additionalText !== "",
|
|
523
523
|
"cl-w-full": o.additionalText === ""
|
|
524
524
|
})
|
|
525
|
-
},
|
|
525
|
+
}, N(o.text), 3),
|
|
526
526
|
Q(f("div", {
|
|
527
527
|
class: "cl-cursor-pointer cl-float-right",
|
|
528
528
|
onMousedown: l[0] || (l[0] = (e) => o.$emit("clear-object"))
|
|
@@ -539,7 +539,7 @@ const Jt = /* @__PURE__ */ f("div", { tabindex: "0" }, null, -1), Xt = {
|
|
|
539
539
|
}), oo = {
|
|
540
540
|
key: 0,
|
|
541
541
|
class: "cl-w-1/2"
|
|
542
|
-
}, ao = { class: "cl-float-right cl-py-1 cl-text-black" },
|
|
542
|
+
}, ao = { class: "cl-float-right cl-py-1 cl-text-black" }, yl = /* @__PURE__ */ F({
|
|
543
543
|
__name: "cl-ui-combo-box-selectable",
|
|
544
544
|
props: {
|
|
545
545
|
isCreateNewOption: { type: Boolean, default: !1 },
|
|
@@ -556,7 +556,7 @@ const Jt = /* @__PURE__ */ f("div", { tabindex: "0" }, null, -1), Xt = {
|
|
|
556
556
|
}), a = O(() => {
|
|
557
557
|
var i;
|
|
558
558
|
return ((i = l.option) == null ? void 0 : i.parentName) ?? "";
|
|
559
|
-
}), d =
|
|
559
|
+
}), d = I(!1);
|
|
560
560
|
function c() {
|
|
561
561
|
var i;
|
|
562
562
|
l.isCreateNewOption === !0 ? e("create-object") : e("select-object", (i = l.option) == null ? void 0 : i.id);
|
|
@@ -579,13 +579,13 @@ const Jt = /* @__PURE__ */ f("div", { tabindex: "0" }, null, -1), Xt = {
|
|
|
579
579
|
onMousemove: s[0] || (s[0] = (k) => u(!0)),
|
|
580
580
|
onMouseleave: s[1] || (s[1] = (k) => u(!1))
|
|
581
581
|
}, [
|
|
582
|
-
i.option !== null && ((m = i.option) == null ? void 0 : m.parentId) !== 0 && ((h = i.option) == null ? void 0 : h.parentId) !== void 0 ? (p(), b("div", oo,
|
|
582
|
+
i.option !== null && ((m = i.option) == null ? void 0 : m.parentId) !== 0 && ((h = i.option) == null ? void 0 : h.parentId) !== void 0 ? (p(), b("div", oo, N(a.value), 1)) : z("", !0),
|
|
583
583
|
f("div", {
|
|
584
584
|
class: L({
|
|
585
585
|
"cl-w-1/2": a.value !== "",
|
|
586
586
|
"cl-w-full": a.value === ""
|
|
587
587
|
})
|
|
588
|
-
},
|
|
588
|
+
}, N(n.value), 3),
|
|
589
589
|
Q(f("div", ao, [
|
|
590
590
|
D(g(Z), {
|
|
591
591
|
class: "cl-transition-colors",
|
|
@@ -616,7 +616,7 @@ const Jt = /* @__PURE__ */ f("div", { tabindex: "0" }, null, -1), Xt = {
|
|
|
616
616
|
},
|
|
617
617
|
emits: ["clear-object", "create-object", "select-object", "search", "hide-dropdown"],
|
|
618
618
|
setup(t, { emit: o }) {
|
|
619
|
-
const l = t, e = o, { t: n } = se(), a =
|
|
619
|
+
const l = t, e = o, { t: n } = se(), a = I(""), d = I(!1), c = I(-1), u = O(() => d.value ? -1 : 0), r = I();
|
|
620
620
|
function i(A) {
|
|
621
621
|
(A === void 0 || A.code && A.code.startsWith("Arrow") === !1 && A.code.startsWith("Control") === !1 && A.code.startsWith("Shift") === !1 && A.code.startsWith("Tab") === !1 && A.code !== "Enter") && (e("search", a.value), c.value = -2);
|
|
622
622
|
}
|
|
@@ -727,7 +727,7 @@ const Jt = /* @__PURE__ */ f("div", { tabindex: "0" }, null, -1), Xt = {
|
|
|
727
727
|
class: "!cl-bg-danger-light cl-border-danger-light cl-rounded cl-text-danger-dark",
|
|
728
728
|
text: g(n)("comboBox.errorMessage", { error: A.errorMessage })
|
|
729
729
|
}, null, 8, ["text"])) : z("", !0),
|
|
730
|
-
d.value ? (p(), P(
|
|
730
|
+
d.value ? (p(), P(yl, {
|
|
731
731
|
key: 5,
|
|
732
732
|
"is-create-new-option": !0,
|
|
733
733
|
text: g(n)("comboBox.addPrompt", { value: a.value, object: A.objectType }),
|
|
@@ -738,7 +738,7 @@ const Jt = /* @__PURE__ */ f("div", { tabindex: "0" }, null, -1), Xt = {
|
|
|
738
738
|
onOptionHighlighted: B
|
|
739
739
|
}, null, 8, ["text", "selected-index"])) : z("", !0),
|
|
740
740
|
A.errorMessage === "" && A.results !== null ? (p(), b("div", uo, [
|
|
741
|
-
(p(!0), b(Y, null, re(A.results, (v, C) => (p(), P(
|
|
741
|
+
(p(!0), b(Y, null, re(A.results, (v, C) => (p(), P(yl, {
|
|
742
742
|
key: C,
|
|
743
743
|
option: v,
|
|
744
744
|
index: C,
|
|
@@ -773,10 +773,10 @@ const Jt = /* @__PURE__ */ f("div", { tabindex: "0" }, null, -1), Xt = {
|
|
|
773
773
|
},
|
|
774
774
|
emits: ["focus", "search", "search-parent", "create-object", "create-parent-object", "update:current-object"],
|
|
775
775
|
setup(t, { expose: o, emit: l }) {
|
|
776
|
-
const e = t, n = l, a = O(() => e.placeholderText ? e.placeholderText : c("comboBox.emptyHintText", { object: e.objectType })), d = O(() => e.searchHint ? e.searchHint : c("comboBox.searchHint", { object: e.objectType })), { t: c } = se(), u =
|
|
776
|
+
const e = t, n = l, a = O(() => e.placeholderText ? e.placeholderText : c("comboBox.emptyHintText", { object: e.objectType })), d = O(() => e.searchHint ? e.searchHint : c("comboBox.searchHint", { object: e.objectType })), { t: c } = se(), u = I(!1), r = O({
|
|
777
777
|
get: () => e.currentObject,
|
|
778
778
|
set: (V) => n("update:current-object", V)
|
|
779
|
-
}), i =
|
|
779
|
+
}), i = I(null), s = O(() => K()), m = I(""), h = I(""), k = I(), T = I(!0), $ = I(!1);
|
|
780
780
|
function q(V) {
|
|
781
781
|
var ie;
|
|
782
782
|
const H = ((ie = ne.value) == null ? void 0 : ie.getBoundingClientRect().top) || 0;
|
|
@@ -821,7 +821,7 @@ const Jt = /* @__PURE__ */ f("div", { tabindex: "0" }, null, -1), Xt = {
|
|
|
821
821
|
}
|
|
822
822
|
function v() {
|
|
823
823
|
var V, H;
|
|
824
|
-
(V = e.objectCreatedResponse) != null && V.error ?
|
|
824
|
+
(V = e.objectCreatedResponse) != null && V.error ? hl({
|
|
825
825
|
message: c("comboBox.createFailed", {
|
|
826
826
|
name: m.value,
|
|
827
827
|
error: e.objectCreatedResponse.error
|
|
@@ -839,7 +839,7 @@ const Jt = /* @__PURE__ */ f("div", { tabindex: "0" }, null, -1), Xt = {
|
|
|
839
839
|
}
|
|
840
840
|
function _() {
|
|
841
841
|
var H, ie, ae, Ve, He;
|
|
842
|
-
|
|
842
|
+
hl({
|
|
843
843
|
message: c("comboBox.createSuccessful", {
|
|
844
844
|
object: e.objectType,
|
|
845
845
|
name: ((H = e.objectCreatedResponse) == null ? void 0 : H.name) ?? ""
|
|
@@ -864,7 +864,7 @@ const Jt = /* @__PURE__ */ f("div", { tabindex: "0" }, null, -1), Xt = {
|
|
|
864
864
|
m.value === "" && (V = !1), e.objectParentType !== "" && i.value === null && (V = !1), T.value = V;
|
|
865
865
|
}
|
|
866
866
|
oe(() => e.objectCreatedResponse, () => v()), oe(() => e.parentObjectCreatedResponse, () => C()), oe(() => m.value, () => ve()), oe(() => i.value, () => ve());
|
|
867
|
-
const ne =
|
|
867
|
+
const ne = I();
|
|
868
868
|
return al(ne, () => u.value ? q(!1) : ""), o({
|
|
869
869
|
focus() {
|
|
870
870
|
q(), n("focus");
|
|
@@ -899,7 +899,7 @@ const Jt = /* @__PURE__ */ f("div", { tabindex: "0" }, null, -1), Xt = {
|
|
|
899
899
|
]),
|
|
900
900
|
Q(f("div", vo, [
|
|
901
901
|
f("div", bo, [
|
|
902
|
-
ue(
|
|
902
|
+
ue(N(g(c)("comboBox.required")) + " ", 1),
|
|
903
903
|
D(g(Z), {
|
|
904
904
|
class: "cl-ml-1 cl-mt-1",
|
|
905
905
|
icon: "ph:warning"
|
|
@@ -936,9 +936,9 @@ const Jt = /* @__PURE__ */ f("div", { tabindex: "0" }, null, -1), Xt = {
|
|
|
936
936
|
})
|
|
937
937
|
], 10, ho))
|
|
938
938
|
]),
|
|
939
|
-
D(
|
|
939
|
+
D(Ul, { size: "small" }, {
|
|
940
940
|
title: R(() => [
|
|
941
|
-
ue(
|
|
941
|
+
ue(N(g(c)("comboBox.createTitle", { object: V.objectType })), 1)
|
|
942
942
|
]),
|
|
943
943
|
trigger: R(({ open: ae }) => [
|
|
944
944
|
Q(D(po, {
|
|
@@ -973,7 +973,7 @@ const Jt = /* @__PURE__ */ f("div", { tabindex: "0" }, null, -1), Xt = {
|
|
|
973
973
|
onClick: ae
|
|
974
974
|
}, {
|
|
975
975
|
default: R(() => [
|
|
976
|
-
ue(
|
|
976
|
+
ue(N(g(c)("comboBox.cancel")), 1)
|
|
977
977
|
]),
|
|
978
978
|
_: 2
|
|
979
979
|
}, 1032, ["onClick"]),
|
|
@@ -986,7 +986,7 @@ const Jt = /* @__PURE__ */ f("div", { tabindex: "0" }, null, -1), Xt = {
|
|
|
986
986
|
}
|
|
987
987
|
}, {
|
|
988
988
|
default: R(() => [
|
|
989
|
-
ue(
|
|
989
|
+
ue(N(g(c)("comboBox.create")), 1)
|
|
990
990
|
]),
|
|
991
991
|
_: 2
|
|
992
992
|
}, 1032, ["disabled", "onClick"])
|
|
@@ -1015,7 +1015,7 @@ const Jt = /* @__PURE__ */ f("div", { tabindex: "0" }, null, -1), Xt = {
|
|
|
1015
1015
|
class: "cl-box-border cl-font-light cl-mb-2 cl-p-2 cl-placeholder-grey-3 cl-text-sm"
|
|
1016
1016
|
}, {
|
|
1017
1017
|
default: R(() => [
|
|
1018
|
-
ue(
|
|
1018
|
+
ue(N(g(c)("comboBox.createProperty")), 1)
|
|
1019
1019
|
]),
|
|
1020
1020
|
_: 1
|
|
1021
1021
|
}, 8, ["modelValue"])
|
|
@@ -1055,7 +1055,7 @@ function Vo(t, o) {
|
|
|
1055
1055
|
])) : z("", !0)
|
|
1056
1056
|
]);
|
|
1057
1057
|
}
|
|
1058
|
-
const
|
|
1058
|
+
const No = /* @__PURE__ */ he(qo, [["render", Vo]]), zl = Symbol();
|
|
1059
1059
|
function Ge(t) {
|
|
1060
1060
|
const o = t.type !== "slot" || t.slotType !== void 0 && t.field !== void 0, l = t.sortable ?? !0;
|
|
1061
1061
|
return o && l;
|
|
@@ -1064,10 +1064,10 @@ function nl(t) {
|
|
|
1064
1064
|
const o = t.type !== "slot" || t.slotType !== void 0 && t.field !== void 0, l = t.filterable ?? !0;
|
|
1065
1065
|
return o && l;
|
|
1066
1066
|
}
|
|
1067
|
-
function
|
|
1067
|
+
function Io(t) {
|
|
1068
1068
|
return t.some((o) => Ge(o));
|
|
1069
1069
|
}
|
|
1070
|
-
function
|
|
1070
|
+
function wl(t) {
|
|
1071
1071
|
return t.some((o) => nl(o));
|
|
1072
1072
|
}
|
|
1073
1073
|
const Ro = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, Mo = { class: "cl-gap-1 cl-grid cl-grid-cols-2 cl-justify-end cl-mb-2 lg:cl-flex lg:cl-gap-2" }, Uo = { class: "cl-basis-0 cl-col-span-2 cl-flex-grow" }, zo = /* @__PURE__ */ f("hr", { class: "cl-block cl-border-grey-3 cl-col-span-2 cl-my-4 lg:cl-hidden" }, null, -1), Lo = {
|
|
@@ -1088,7 +1088,7 @@ const Ro = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, Mo = { class: "cl-gap-1
|
|
|
1088
1088
|
const o = t, { t: l } = se(), e = O(() => o.request.filters.some((a) => a.filterValue !== "")), n = ol("cl-ui-grid-id") ?? "cl-ui-grid-filter";
|
|
1089
1089
|
return (a, d) => (p(), b(Y, null, [
|
|
1090
1090
|
f("div", Ro, [
|
|
1091
|
-
f("strong", null,
|
|
1091
|
+
f("strong", null, N(g(l)("grid.gridTools")), 1)
|
|
1092
1092
|
]),
|
|
1093
1093
|
f("div", Mo, [
|
|
1094
1094
|
f("div", Uo, [
|
|
@@ -1107,9 +1107,9 @@ const Ro = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, Mo = { class: "cl-gap-1
|
|
|
1107
1107
|
}, {
|
|
1108
1108
|
default: R(() => [
|
|
1109
1109
|
a.editMode ? (p(), b(Y, { key: 0 }, [
|
|
1110
|
-
ue(
|
|
1110
|
+
ue(N(g(l)("grid.finishEditing")), 1)
|
|
1111
1111
|
], 64)) : (p(), b(Y, { key: 1 }, [
|
|
1112
|
-
ue(
|
|
1112
|
+
ue(N(g(l)("grid.editData")), 1)
|
|
1113
1113
|
], 64))
|
|
1114
1114
|
]),
|
|
1115
1115
|
_: 1
|
|
@@ -1117,7 +1117,7 @@ const Ro = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, Mo = { class: "cl-gap-1
|
|
|
1117
1117
|
a.options.hideViewManager ? z("", !0) : (p(), b("div", Lo, [
|
|
1118
1118
|
M(a.$slots, "view-manager")
|
|
1119
1119
|
])),
|
|
1120
|
-
g(
|
|
1120
|
+
g(wl)(a.columns) || g(Io)(a.columns) ? (p(), b(Y, { key: 2 }, [
|
|
1121
1121
|
f("div", jo, [
|
|
1122
1122
|
D($e, {
|
|
1123
1123
|
class: "cl-w-full",
|
|
@@ -1126,12 +1126,12 @@ const Ro = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, Mo = { class: "cl-gap-1
|
|
|
1126
1126
|
onClick: d[1] || (d[1] = ee((c) => a.$emit("update:filterPanelOpen", !a.filterPanelOpen), ["prevent"]))
|
|
1127
1127
|
}, {
|
|
1128
1128
|
default: R(() => [
|
|
1129
|
-
ue(
|
|
1129
|
+
ue(N(g(l)("grid.modifyFilters")), 1)
|
|
1130
1130
|
]),
|
|
1131
1131
|
_: 1
|
|
1132
1132
|
}, 8, ["disabled"])
|
|
1133
1133
|
]),
|
|
1134
|
-
g(
|
|
1134
|
+
g(wl)(a.columns) ? (p(), P($e, {
|
|
1135
1135
|
key: 0,
|
|
1136
1136
|
id: `${g(n)}-clear-filters`,
|
|
1137
1137
|
size: "small",
|
|
@@ -1143,7 +1143,7 @@ const Ro = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, Mo = { class: "cl-gap-1
|
|
|
1143
1143
|
onClick: d[2] || (d[2] = ee((c) => a.$emit("clear-filters"), ["prevent"]))
|
|
1144
1144
|
}, {
|
|
1145
1145
|
default: R(() => [
|
|
1146
|
-
ue(
|
|
1146
|
+
ue(N(g(l)("grid.clearFilters")), 1)
|
|
1147
1147
|
]),
|
|
1148
1148
|
_: 1
|
|
1149
1149
|
}, 8, ["id", "disabled", "class"])) : z("", !0)
|
|
@@ -1164,7 +1164,7 @@ const Ro = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, Mo = { class: "cl-gap-1
|
|
|
1164
1164
|
}),
|
|
1165
1165
|
emits: /* @__PURE__ */ ge(["focus", "blur"], ["update:modelValue"]),
|
|
1166
1166
|
setup(t, { expose: o, emit: l }) {
|
|
1167
|
-
const e = Ae(t, "modelValue"), n = l, a =
|
|
1167
|
+
const e = Ae(t, "modelValue"), n = l, a = I();
|
|
1168
1168
|
return o({
|
|
1169
1169
|
focus: () => {
|
|
1170
1170
|
var d;
|
|
@@ -1177,7 +1177,7 @@ const Ro = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, Mo = { class: "cl-gap-1
|
|
|
1177
1177
|
}), (d, c) => (p(), P(Je, {
|
|
1178
1178
|
"show-required-asterisk": d.required,
|
|
1179
1179
|
errors: d.errors
|
|
1180
|
-
},
|
|
1180
|
+
}, Ne({
|
|
1181
1181
|
default: R(() => [
|
|
1182
1182
|
Q(f("input", te({
|
|
1183
1183
|
ref_key: "inputRef",
|
|
@@ -1392,19 +1392,19 @@ const Ho = {
|
|
|
1392
1392
|
fallbackWarn: !1,
|
|
1393
1393
|
warnHtmlMessage: !1
|
|
1394
1394
|
});
|
|
1395
|
-
function
|
|
1395
|
+
function ci(t, o) {
|
|
1396
1396
|
return be.global.mergeLocaleMessage(t, o), Me();
|
|
1397
1397
|
}
|
|
1398
|
-
function
|
|
1398
|
+
function ui(t, o) {
|
|
1399
1399
|
return be.global.mergeNumberFormat(t, o), Me();
|
|
1400
1400
|
}
|
|
1401
|
-
function
|
|
1401
|
+
function di(t, o) {
|
|
1402
1402
|
return be.global.mergeDateTimeFormat(t, o), Me();
|
|
1403
1403
|
}
|
|
1404
|
-
function
|
|
1404
|
+
function pi(t) {
|
|
1405
1405
|
return be.global.locale.value = t, Me();
|
|
1406
1406
|
}
|
|
1407
|
-
const {
|
|
1407
|
+
const { locale: Go, getNumberFormat: Ko } = be.global, rl = le.DECIMAL;
|
|
1408
1408
|
function Oe(t) {
|
|
1409
1409
|
return Se(t, le.DECIMAL, { additionalOptions: {
|
|
1410
1410
|
minimumFractionDigits: 0,
|
|
@@ -1420,12 +1420,12 @@ function el(t, o) {
|
|
|
1420
1420
|
function Se(t, o, l) {
|
|
1421
1421
|
if (Xe(o)) {
|
|
1422
1422
|
const e = Be(rl, l);
|
|
1423
|
-
return o.replace(/\{0\}/g,
|
|
1423
|
+
return o.replace(/\{0\}/g, $l(t, e) ?? "");
|
|
1424
1424
|
} else {
|
|
1425
|
-
const e = Be(
|
|
1426
|
-
let n =
|
|
1425
|
+
const e = Be(ul(o), l);
|
|
1426
|
+
let n = $l(t, e) ?? "";
|
|
1427
1427
|
if (o === "currency-without-symbol") {
|
|
1428
|
-
const a =
|
|
1428
|
+
const a = cl(e);
|
|
1429
1429
|
if (a) {
|
|
1430
1430
|
const d = qe(a, 0, "unit", "currency", "literal");
|
|
1431
1431
|
n = ke(n, d, "");
|
|
@@ -1434,17 +1434,17 @@ function Se(t, o, l) {
|
|
|
1434
1434
|
return n;
|
|
1435
1435
|
}
|
|
1436
1436
|
}
|
|
1437
|
-
function
|
|
1437
|
+
function Ll(t, o, l) {
|
|
1438
1438
|
if (Xe(o)) {
|
|
1439
|
-
const e =
|
|
1440
|
-
return
|
|
1439
|
+
const e = Qo(t, o);
|
|
1440
|
+
return kl(e ?? t, rl, l);
|
|
1441
1441
|
} else
|
|
1442
|
-
return
|
|
1442
|
+
return kl(t, ul(o), l);
|
|
1443
1443
|
}
|
|
1444
1444
|
function il(t, o) {
|
|
1445
|
-
return Xe(t) ? Be(rl, o) : Be(
|
|
1445
|
+
return Xe(t) ? Be(rl, o) : Be(ul(t), o);
|
|
1446
1446
|
}
|
|
1447
|
-
function
|
|
1447
|
+
function Qo(t, o) {
|
|
1448
1448
|
let l = null;
|
|
1449
1449
|
t = `!${t}!`;
|
|
1450
1450
|
const e = `!${o}!`.split("{0}");
|
|
@@ -1461,10 +1461,10 @@ function xo(t, o) {
|
|
|
1461
1461
|
}
|
|
1462
1462
|
return t !== "" && (l = null), l;
|
|
1463
1463
|
}
|
|
1464
|
-
function
|
|
1464
|
+
function kl(t, o, l) {
|
|
1465
1465
|
if (!t)
|
|
1466
1466
|
return NaN;
|
|
1467
|
-
const e = Be(o, l), n =
|
|
1467
|
+
const e = Be(o, l), n = cl(e);
|
|
1468
1468
|
if (n === null)
|
|
1469
1469
|
return NaN;
|
|
1470
1470
|
const a = qe(n, 10000.11111, "group"), d = qe(n, 1.111, "decimal"), c = qe(n, 1, "currency", "unit"), u = qe(n, 1, "percentSign"), r = qe(n, 1, "plusSign"), i = qe(n, -1, "minusSign"), s = qe(n, -10000.11111, "literal", "unknown"), m = i.some((q) => t.startsWith(q) || t.endsWith(q)) || t.startsWith("(") && t.endsWith(")"), h = u.some((q) => t.startsWith(q) || t.endsWith(q)), k = d.some((q) => t.includes(q)), T = (m ? -1 : 1) * (h ? 0.01 : 1);
|
|
@@ -1492,14 +1492,11 @@ function ke(t, o, l, e = t.length + 1, n = !1) {
|
|
|
1492
1492
|
function qe(t, o, ...l) {
|
|
1493
1493
|
return t.formatToParts(o).filter((e) => l.includes(e.type)).map((e) => e.value);
|
|
1494
1494
|
}
|
|
1495
|
-
function
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
} catch (l) {
|
|
1499
|
-
return console.error(l), null;
|
|
1500
|
-
}
|
|
1495
|
+
function $l(t, o) {
|
|
1496
|
+
var l;
|
|
1497
|
+
return isNaN(t) ? "" : ((l = cl(o)) == null ? void 0 : l.format(t)) ?? null;
|
|
1501
1498
|
}
|
|
1502
|
-
function
|
|
1499
|
+
function cl(t) {
|
|
1503
1500
|
try {
|
|
1504
1501
|
return new Intl.NumberFormat(t.locale, t);
|
|
1505
1502
|
} catch (o) {
|
|
@@ -1507,7 +1504,7 @@ function Ll(t) {
|
|
|
1507
1504
|
}
|
|
1508
1505
|
}
|
|
1509
1506
|
function Be(t, o) {
|
|
1510
|
-
const l =
|
|
1507
|
+
const l = vl(o == null ? void 0 : o.locale) || g(Go), e = Ko(l), n = pe(vl(o == null ? void 0 : o.additionalOptions) ?? {});
|
|
1511
1508
|
return {
|
|
1512
1509
|
...e[t],
|
|
1513
1510
|
locale: l,
|
|
@@ -1515,16 +1512,16 @@ function Be(t, o) {
|
|
|
1515
1512
|
...n
|
|
1516
1513
|
};
|
|
1517
1514
|
}
|
|
1518
|
-
function
|
|
1519
|
-
return
|
|
1515
|
+
function ul(t) {
|
|
1516
|
+
return xo(t) ? t : le.CURRENCY;
|
|
1520
1517
|
}
|
|
1521
1518
|
function Xe(t) {
|
|
1522
1519
|
return t.includes("{0}");
|
|
1523
1520
|
}
|
|
1524
|
-
function
|
|
1521
|
+
function xo(t) {
|
|
1525
1522
|
return !Xe(t) && t !== "currency-without-symbol";
|
|
1526
1523
|
}
|
|
1527
|
-
function
|
|
1524
|
+
function Yo(t) {
|
|
1528
1525
|
if (t.startsWith("ClUi"))
|
|
1529
1526
|
return {
|
|
1530
1527
|
name: `clUi${t.slice(4)}`,
|
|
@@ -1536,11 +1533,11 @@ function _o(t) {
|
|
|
1536
1533
|
from: "@iconify/vue"
|
|
1537
1534
|
};
|
|
1538
1535
|
}
|
|
1539
|
-
function
|
|
1540
|
-
return
|
|
1536
|
+
function fi() {
|
|
1537
|
+
return Yo;
|
|
1541
1538
|
}
|
|
1542
1539
|
const { t: ye } = be.global;
|
|
1543
|
-
function
|
|
1540
|
+
function _o(t, o, l, e, n) {
|
|
1544
1541
|
return new Promise((a) => {
|
|
1545
1542
|
let d = {
|
|
1546
1543
|
valid: !1,
|
|
@@ -1595,7 +1592,7 @@ function Jo(t, o, l, e, n) {
|
|
|
1595
1592
|
a(d);
|
|
1596
1593
|
});
|
|
1597
1594
|
}
|
|
1598
|
-
function
|
|
1595
|
+
function Jo(t, o, l, e, n) {
|
|
1599
1596
|
return new Promise((a) => {
|
|
1600
1597
|
let d = {
|
|
1601
1598
|
valid: !1,
|
|
@@ -1650,13 +1647,13 @@ function Xo(t, o, l, e, n) {
|
|
|
1650
1647
|
a(d);
|
|
1651
1648
|
});
|
|
1652
1649
|
}
|
|
1653
|
-
function
|
|
1650
|
+
function Xo(t, o) {
|
|
1654
1651
|
return new Promise((l) => {
|
|
1655
1652
|
const e = o != null && o !== "" && o.toString().trim() !== "", n = we(e, ye("input.valueIsRequired", { label: t }));
|
|
1656
1653
|
l(n);
|
|
1657
1654
|
});
|
|
1658
1655
|
}
|
|
1659
|
-
function
|
|
1656
|
+
function ea(t, o) {
|
|
1660
1657
|
return new Promise((l) => {
|
|
1661
1658
|
const n = o === "" || /[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?\.)+[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?/.exec(o) !== null, a = we(n, ye("input.valueNotValidEmail", { label: t }));
|
|
1662
1659
|
l(a);
|
|
@@ -1668,16 +1665,16 @@ function we(t, o) {
|
|
|
1668
1665
|
message: t ? "" : o
|
|
1669
1666
|
};
|
|
1670
1667
|
}
|
|
1671
|
-
const
|
|
1668
|
+
const la = {
|
|
1672
1669
|
key: 3,
|
|
1673
1670
|
class: "cl-inline-block cl-whitespace-nowrap"
|
|
1674
|
-
},
|
|
1671
|
+
}, ta = {
|
|
1675
1672
|
key: 4,
|
|
1676
1673
|
class: "cl-inline-block cl-whitespace-nowrap"
|
|
1677
|
-
},
|
|
1674
|
+
}, oa = {
|
|
1678
1675
|
key: 5,
|
|
1679
1676
|
class: "cl-inline-block cl-whitespace-nowrap"
|
|
1680
|
-
},
|
|
1677
|
+
}, aa = ["innerHTML"], Cl = /* @__PURE__ */ F({
|
|
1681
1678
|
__name: "cl-ui-grid-cell-value",
|
|
1682
1679
|
props: {
|
|
1683
1680
|
data: {},
|
|
@@ -1686,7 +1683,7 @@ const ta = {
|
|
|
1686
1683
|
searchValue: {}
|
|
1687
1684
|
},
|
|
1688
1685
|
setup(t) {
|
|
1689
|
-
const o = t, l = ol(
|
|
1686
|
+
const o = t, l = ol(zl), { t: e, locale: n } = se();
|
|
1690
1687
|
function a(u, r) {
|
|
1691
1688
|
let i;
|
|
1692
1689
|
o.timeZone ? i = W.fromISO(u, {
|
|
@@ -1741,20 +1738,20 @@ const ta = {
|
|
|
1741
1738
|
disabled: !0
|
|
1742
1739
|
}, null, 8, ["model-value"])) : (u.column.type === "date" || u.column.type === "datetime" || u.column.type === "dateRange") && u.column.field !== void 0 ? (p(), b(Y, { key: 2 }, [
|
|
1743
1740
|
u.column.format !== void 0 ? (p(), b(Y, { key: 0 }, [
|
|
1744
|
-
ue(
|
|
1741
|
+
ue(N(a(u.data[u.column.field], u.column.format)), 1)
|
|
1745
1742
|
], 64)) : u.column.type === "date" || u.column.type === "dateRange" ? (p(), b(Y, { key: 1 }, [
|
|
1746
|
-
ue(
|
|
1743
|
+
ue(N(a(u.data[u.column.field], g(ce).DATE)), 1)
|
|
1747
1744
|
], 64)) : (p(), b(Y, { key: 2 }, [
|
|
1748
|
-
ue(
|
|
1745
|
+
ue(N(a(u.data[u.column.field], g(ce).DATETIME)), 1)
|
|
1749
1746
|
], 64))
|
|
1750
|
-
], 64)) : u.column.type === "list" && u.column.field !== void 0 && u.column.listEntries !== void 0 ? (p(), b("span",
|
|
1747
|
+
], 64)) : u.column.type === "list" && u.column.field !== void 0 && u.column.listEntries !== void 0 ? (p(), b("span", la, N(g(e)(((i = u.column.listEntries.find((s) => s.value === u.data[u.column.field])) == null ? void 0 : i.translationKey) ?? "")), 1)) : u.column.type === "number" && u.column.field !== void 0 ? (p(), b("span", ta, N(c(u.data[u.column.field], g(n))), 1)) : u.column.field !== void 0 ? (p(), b("span", oa, [
|
|
1751
1748
|
f("span", {
|
|
1752
1749
|
innerHTML: d()
|
|
1753
|
-
}, null, 8,
|
|
1750
|
+
}, null, 8, aa)
|
|
1754
1751
|
])) : z("", !0);
|
|
1755
1752
|
};
|
|
1756
1753
|
}
|
|
1757
|
-
}),
|
|
1754
|
+
}), na = { class: "cl-font-semibold lg:cl-hidden" }, sa = /* @__PURE__ */ F({
|
|
1758
1755
|
__name: "cl-ui-grid-cell",
|
|
1759
1756
|
props: {
|
|
1760
1757
|
data: {},
|
|
@@ -1765,7 +1762,7 @@ const ta = {
|
|
|
1765
1762
|
},
|
|
1766
1763
|
emits: ["edit", "focus", "undo"],
|
|
1767
1764
|
setup(t, { emit: o }) {
|
|
1768
|
-
const l = t, e = o, { t: n } = se(), a =
|
|
1765
|
+
const l = t, e = o, { t: n } = se(), a = I(pe(l.data)), d = O(() => l.column.field !== void 0 && a.value[l.column.field] !== l.data[l.column.field]), c = O(() => {
|
|
1769
1766
|
var u;
|
|
1770
1767
|
return ((u = l.column.listEntries) == null ? void 0 : u.map((r, i) => ({
|
|
1771
1768
|
id: i,
|
|
@@ -1782,7 +1779,7 @@ const ta = {
|
|
|
1782
1779
|
"cl-bg-link-lighter": d.value
|
|
1783
1780
|
}])
|
|
1784
1781
|
}, [
|
|
1785
|
-
f("span",
|
|
1782
|
+
f("span", na, N(u.column.caption), 1),
|
|
1786
1783
|
u.editMode && u.column.editable === !0 ? M(u.$slots, `${u.column.name}Edit`, de(te({ key: 0 }, {
|
|
1787
1784
|
cellFocused: () => e("focus"),
|
|
1788
1785
|
column: u.column,
|
|
@@ -1791,7 +1788,7 @@ const ta = {
|
|
|
1791
1788
|
listEntries: c.value,
|
|
1792
1789
|
searchValue: u.searchValue
|
|
1793
1790
|
})), () => [
|
|
1794
|
-
D(
|
|
1791
|
+
D(Cl, {
|
|
1795
1792
|
column: u.column,
|
|
1796
1793
|
data: u.data,
|
|
1797
1794
|
"time-zone": u.timeZone,
|
|
@@ -1806,7 +1803,7 @@ const ta = {
|
|
|
1806
1803
|
]),
|
|
1807
1804
|
_: 2
|
|
1808
1805
|
}, 1032, ["column", "data", "time-zone", "search-value"])
|
|
1809
|
-
]) : (p(), P(
|
|
1806
|
+
]) : (p(), P(Cl, {
|
|
1810
1807
|
key: 1,
|
|
1811
1808
|
column: u.column,
|
|
1812
1809
|
data: u.data,
|
|
@@ -1820,7 +1817,7 @@ const ta = {
|
|
|
1820
1817
|
}, 1032, ["column", "data", "time-zone", "search-value"]))
|
|
1821
1818
|
], 2));
|
|
1822
1819
|
}
|
|
1823
|
-
}),
|
|
1820
|
+
}), ra = /* @__PURE__ */ F({
|
|
1824
1821
|
__name: "cl-ui-grid-row",
|
|
1825
1822
|
props: {
|
|
1826
1823
|
data: {},
|
|
@@ -1832,7 +1829,7 @@ const ta = {
|
|
|
1832
1829
|
emits: ["cell-focus", "cell-edit", "cell-undo"],
|
|
1833
1830
|
setup(t) {
|
|
1834
1831
|
return (o, l) => (p(), b("tr", null, [
|
|
1835
|
-
(p(!0), b(Y, null, re(o.columns, (e, n) => (p(), P(
|
|
1832
|
+
(p(!0), b(Y, null, re(o.columns, (e, n) => (p(), P(sa, {
|
|
1836
1833
|
key: n,
|
|
1837
1834
|
data: o.data,
|
|
1838
1835
|
column: e,
|
|
@@ -1842,7 +1839,7 @@ const ta = {
|
|
|
1842
1839
|
onFocus: l[0] || (l[0] = (a) => o.$emit("cell-focus")),
|
|
1843
1840
|
onEdit: (a) => o.$emit("cell-edit", { field: e.field, value: a }),
|
|
1844
1841
|
onUndo: (a) => o.$emit("cell-undo", e.field)
|
|
1845
|
-
},
|
|
1842
|
+
}, Ne({ _: 2 }, [
|
|
1846
1843
|
re(o.$slots, (a, d) => ({
|
|
1847
1844
|
name: d,
|
|
1848
1845
|
fn: R((c) => [
|
|
@@ -1852,10 +1849,10 @@ const ta = {
|
|
|
1852
1849
|
]), 1032, ["data", "column", "time-zone", "search-value", "edit-mode", "onEdit", "onUndo"]))), 128))
|
|
1853
1850
|
]));
|
|
1854
1851
|
}
|
|
1855
|
-
}),
|
|
1852
|
+
}), ia = { key: 1 }, ca = ["colspan"], ua = { class: "cl-flex cl-flex-wrap cl-justify-center cl-text-center cl-text-sm cl-w-full" }, da = { class: "cl-mt-6 cl-w-full" }, pa = {
|
|
1856
1853
|
key: 0,
|
|
1857
1854
|
class: "cl-mt-4"
|
|
1858
|
-
},
|
|
1855
|
+
}, fa = { class: "cl-mb-2 cl-w-full" }, ma = /* @__PURE__ */ F({
|
|
1859
1856
|
__name: "cl-ui-grid-body",
|
|
1860
1857
|
props: {
|
|
1861
1858
|
columns: {},
|
|
@@ -1869,7 +1866,7 @@ const ta = {
|
|
|
1869
1866
|
},
|
|
1870
1867
|
emits: ["row-select", "row-edit", "row-edit-cancelled", "clear-filters"],
|
|
1871
1868
|
setup(t, { emit: o }) {
|
|
1872
|
-
const l = t, e = o, { t: n } = se(), a =
|
|
1869
|
+
const l = t, e = o, { t: n } = se(), a = I({
|
|
1873
1870
|
index: -1,
|
|
1874
1871
|
record: {}
|
|
1875
1872
|
});
|
|
@@ -1890,7 +1887,7 @@ const ta = {
|
|
|
1890
1887
|
}, e("row-edit-cancelled", pe(a.value));
|
|
1891
1888
|
}
|
|
1892
1889
|
}
|
|
1893
|
-
const i =
|
|
1890
|
+
const i = I({});
|
|
1894
1891
|
oe(() => l.data, () => {
|
|
1895
1892
|
var h, k;
|
|
1896
1893
|
return i.value = Object.fromEntries(((k = (h = l.data) == null ? void 0 : h.results) == null ? void 0 : k.map((T, $) => [
|
|
@@ -1898,7 +1895,7 @@ const ta = {
|
|
|
1898
1895
|
{
|
|
1899
1896
|
count: 0,
|
|
1900
1897
|
target: null,
|
|
1901
|
-
reset:
|
|
1898
|
+
reset: Nl(() => {
|
|
1902
1899
|
i.value[$] && (i.value[$].count = 0, i.value[$].target = null);
|
|
1903
1900
|
}, 2500, { immediate: !1 })
|
|
1904
1901
|
}
|
|
@@ -1919,7 +1916,7 @@ const ta = {
|
|
|
1919
1916
|
}), (h, k) => {
|
|
1920
1917
|
var T;
|
|
1921
1918
|
return p(), b("tbody", null, [
|
|
1922
|
-
h.data && ((T = h.data.results) != null && T.length) ? (p(!0), b(Y, { key: 0 }, re(h.data.results, ($, q) => (p(), P(
|
|
1919
|
+
h.data && ((T = h.data.results) != null && T.length) ? (p(!0), b(Y, { key: 0 }, re(h.data.results, ($, q) => (p(), P(ra, {
|
|
1923
1920
|
key: q,
|
|
1924
1921
|
data: $,
|
|
1925
1922
|
columns: h.columns,
|
|
@@ -1942,39 +1939,39 @@ const ta = {
|
|
|
1942
1939
|
u(q, U);
|
|
1943
1940
|
},
|
|
1944
1941
|
onCellUndo: r
|
|
1945
|
-
},
|
|
1942
|
+
}, Ne({ _: 2 }, [
|
|
1946
1943
|
re(h.$slots, (U, S) => ({
|
|
1947
1944
|
name: S,
|
|
1948
1945
|
fn: R((B) => [
|
|
1949
1946
|
M(h.$slots, S, te(B, { disabled: h.loading }))
|
|
1950
1947
|
])
|
|
1951
1948
|
}))
|
|
1952
|
-
]), 1032, ["data", "columns", "time-zone", "search-value", "edit-mode", "class", "onClick", "onCellFocus", "onCellEdit"]))), 128)) : h.loading ? z("", !0) : (p(), b("tr",
|
|
1949
|
+
]), 1032, ["data", "columns", "time-zone", "search-value", "edit-mode", "class", "onClick", "onCellFocus", "onCellEdit"]))), 128)) : h.loading ? z("", !0) : (p(), b("tr", ia, [
|
|
1953
1950
|
f("td", {
|
|
1954
1951
|
colspan: h.columns.length
|
|
1955
1952
|
}, [
|
|
1956
|
-
f("div",
|
|
1957
|
-
f("strong",
|
|
1958
|
-
h.request.filters.some(($) => $.filterValue !== "") ? (p(), b("div",
|
|
1959
|
-
f("div",
|
|
1953
|
+
f("div", ua, [
|
|
1954
|
+
f("strong", da, N(g(n)("grid.noData")), 1),
|
|
1955
|
+
h.request.filters.some(($) => $.filterValue !== "") ? (p(), b("div", pa, [
|
|
1956
|
+
f("div", fa, N(g(n)("grid.noDataFiltersPresent")), 1),
|
|
1960
1957
|
D($e, {
|
|
1961
1958
|
size: "small",
|
|
1962
1959
|
colour: "danger",
|
|
1963
1960
|
onClick: k[0] || (k[0] = ee(($) => h.$emit("clear-filters"), ["prevent"]))
|
|
1964
1961
|
}, {
|
|
1965
1962
|
default: R(() => [
|
|
1966
|
-
ue(
|
|
1963
|
+
ue(N(g(n)("grid.clearFilters")), 1)
|
|
1967
1964
|
]),
|
|
1968
1965
|
_: 1
|
|
1969
1966
|
})
|
|
1970
1967
|
])) : z("", !0)
|
|
1971
1968
|
])
|
|
1972
|
-
], 8,
|
|
1969
|
+
], 8, ca)
|
|
1973
1970
|
]))
|
|
1974
1971
|
]);
|
|
1975
1972
|
};
|
|
1976
1973
|
}
|
|
1977
|
-
}),
|
|
1974
|
+
}), ga = ["value", "inputmode", "required", "disabled", "placeholder"], va = { 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" }, ba = ["disabled"], ha = ["disabled"], Pe = /* @__PURE__ */ F({
|
|
1978
1975
|
inheritAttrs: !1,
|
|
1979
1976
|
__name: "cl-ui-input-number",
|
|
1980
1977
|
props: /* @__PURE__ */ ge({
|
|
@@ -1996,7 +1993,7 @@ const ta = {
|
|
|
1996
1993
|
}),
|
|
1997
1994
|
emits: /* @__PURE__ */ ge(["focus", "blur"], ["update:modelValue"]),
|
|
1998
1995
|
setup(t, { expose: o, emit: l }) {
|
|
1999
|
-
const e = t, n = Ae(t, "modelValue"), a = l, d =
|
|
1996
|
+
const e = t, n = Ae(t, "modelValue"), a = l, d = I(0), c = I(), u = I(), { isOutside: r } = ut(u), { focused: i } = dt(c), s = O(() => e.showArrows && r.value === !1);
|
|
2000
1997
|
oe(i, () => {
|
|
2001
1998
|
i.value ? a("focus") : (x(S.value, !0), q.value = void 0, a("blur"));
|
|
2002
1999
|
});
|
|
@@ -2008,7 +2005,7 @@ const ta = {
|
|
|
2008
2005
|
})), h = O(() => e.format ? il(e.format, {
|
|
2009
2006
|
locale: e.locale,
|
|
2010
2007
|
additionalOptions: m.value
|
|
2011
|
-
}) : m.value), k = O(() => Math.pow(10, h.value.maximumFractionDigits ?? 0)), T = O(() => Math.pow(10, e.format === le.PERCENTAGE ? 2 : 0)), $ = O(() => k.value * T.value), q =
|
|
2008
|
+
}) : m.value), k = O(() => Math.pow(10, h.value.maximumFractionDigits ?? 0)), T = O(() => Math.pow(10, e.format === le.PERCENTAGE ? 2 : 0)), $ = O(() => k.value * T.value), q = I(void 0);
|
|
2012
2009
|
oe(n, () => q.value = void 0);
|
|
2013
2010
|
const U = O({
|
|
2014
2011
|
get: () => q.value ? E(q.value) : n.value,
|
|
@@ -2035,7 +2032,7 @@ const ta = {
|
|
|
2035
2032
|
}) : v.toString();
|
|
2036
2033
|
}
|
|
2037
2034
|
function E(v) {
|
|
2038
|
-
return e.format ?
|
|
2035
|
+
return e.format ? Ll(v, e.format, {
|
|
2039
2036
|
locale: e.locale,
|
|
2040
2037
|
additionalOptions: m.value
|
|
2041
2038
|
}) : +v;
|
|
@@ -2058,7 +2055,7 @@ const ta = {
|
|
|
2058
2055
|
return p(), P(Je, {
|
|
2059
2056
|
"show-required-asterisk": v.required,
|
|
2060
2057
|
errors: v.errors
|
|
2061
|
-
},
|
|
2058
|
+
}, Ne({
|
|
2062
2059
|
default: R(() => [
|
|
2063
2060
|
f("div", {
|
|
2064
2061
|
ref_key: "focusWithinRef",
|
|
@@ -2082,8 +2079,8 @@ const ta = {
|
|
|
2082
2079
|
C[2] || (C[2] = me(ee((K) => y(!0), ["stop", "prevent"]), ["down"])),
|
|
2083
2080
|
C[3] || (C[3] = me(ee((K) => y(!1), ["stop", "prevent"]), ["up"]))
|
|
2084
2081
|
]
|
|
2085
|
-
}), null, 16,
|
|
2086
|
-
Q(f("div",
|
|
2082
|
+
}), null, 16, ga)),
|
|
2083
|
+
Q(f("div", va, [
|
|
2087
2084
|
f("button", {
|
|
2088
2085
|
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",
|
|
2089
2086
|
disabled: v.disabled,
|
|
@@ -2094,7 +2091,7 @@ const ta = {
|
|
|
2094
2091
|
]
|
|
2095
2092
|
}, [
|
|
2096
2093
|
D(_, { icon: "ph:caret-up-bold" })
|
|
2097
|
-
], 40,
|
|
2094
|
+
], 40, ba),
|
|
2098
2095
|
f("button", {
|
|
2099
2096
|
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",
|
|
2100
2097
|
disabled: v.disabled,
|
|
@@ -2105,7 +2102,7 @@ const ta = {
|
|
|
2105
2102
|
]
|
|
2106
2103
|
}, [
|
|
2107
2104
|
D(_, { icon: "ph:caret-down-bold" })
|
|
2108
|
-
], 40,
|
|
2105
|
+
], 40, ha)
|
|
2109
2106
|
], 512), [
|
|
2110
2107
|
[X, s.value && !v.disabled]
|
|
2111
2108
|
])
|
|
@@ -2123,10 +2120,10 @@ const ta = {
|
|
|
2123
2120
|
]), 1032, ["show-required-asterisk", "errors"]);
|
|
2124
2121
|
};
|
|
2125
2122
|
}
|
|
2126
|
-
}),
|
|
2123
|
+
}), ya = {
|
|
2127
2124
|
key: 0,
|
|
2128
2125
|
class: "cl-flex cl-flex-wrap cl-justify-end cl-mt-2 cl-w-full"
|
|
2129
|
-
},
|
|
2126
|
+
}, wa = { 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" }, ka = { class: "cl-text-grey-3 cl-w-max" }, $a = /* @__PURE__ */ f("span", null, null, -1), Ca = { 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" }, Ta = { 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" }, qa = { class: "cl-flex cl-flex-wrap cl-mb-2 cl-w-full lg:cl-mb-0 lg:cl-mr-2 lg:cl-w-auto" }, Oa = { class: "cl-text-grey-3 cl-w-full lg:cl-mr-2 lg:cl-w-auto" }, Sa = { class: "cl-flex cl-flex-wrap cl-text-sm mb:cl-flex-nowrap" }, Da = { class: "cl-pr-2" }, Ea = ["onClick"], Aa = { 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" }, Va = { class: "cl-mb-2 cl-text-grey-3 cl-w-full lg:cl-mb-0 lg:cl-mr-2 lg:cl-w-auto" }, Na = ["onClick"], Ia = { class: "cl-mb-2 cl-w-full lg:cl-p-2 md:cl-mb-0 md:cl-w-auto" }, Ra = { 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" }, Ma = { class: "cl-block lg:cl-inline-block" }, Ua = /* @__PURE__ */ F({
|
|
2130
2127
|
__name: "cl-ui-grid-footer",
|
|
2131
2128
|
props: {
|
|
2132
2129
|
request: {},
|
|
@@ -2170,9 +2167,9 @@ const ta = {
|
|
|
2170
2167
|
}
|
|
2171
2168
|
return (i, s) => {
|
|
2172
2169
|
var m, h;
|
|
2173
|
-
return (h = (m = i.data) == null ? void 0 : m.results) != null && h.length && i.request ? (p(), b("div",
|
|
2174
|
-
f("div",
|
|
2175
|
-
f("span",
|
|
2170
|
+
return (h = (m = i.data) == null ? void 0 : m.results) != null && h.length && i.request ? (p(), b("div", ya, [
|
|
2171
|
+
f("div", wa, [
|
|
2172
|
+
f("span", ka, N(g(n)("grid.jumpToPage")), 1),
|
|
2176
2173
|
D(Pe, {
|
|
2177
2174
|
"model-value": i.request.pageNumber,
|
|
2178
2175
|
class: "cl-ml-1 cl-mt-0.5 cl-text-sm cl-w-full",
|
|
@@ -2183,18 +2180,18 @@ const ta = {
|
|
|
2183
2180
|
"onUpdate:modelValue": c
|
|
2184
2181
|
}, {
|
|
2185
2182
|
default: R(() => [
|
|
2186
|
-
|
|
2183
|
+
$a
|
|
2187
2184
|
]),
|
|
2188
2185
|
_: 1
|
|
2189
2186
|
}, 8, ["model-value", "max", "disabled"])
|
|
2190
2187
|
]),
|
|
2191
|
-
f("div",
|
|
2192
|
-
f("div",
|
|
2193
|
-
f("li",
|
|
2194
|
-
f("span",
|
|
2188
|
+
f("div", Ca, [
|
|
2189
|
+
f("div", Ta, [
|
|
2190
|
+
f("li", qa, [
|
|
2191
|
+
f("span", Oa, N(g(n)("grid.page")), 1)
|
|
2195
2192
|
]),
|
|
2196
|
-
f("ul",
|
|
2197
|
-
f("li",
|
|
2193
|
+
f("ul", Sa, [
|
|
2194
|
+
f("li", Da, N(g(Oe)(i.request.pageNumber)) + " / " + N(g(Oe)(a.value)), 1),
|
|
2198
2195
|
Q(f("li", {
|
|
2199
2196
|
class: "cl-cursor-pointer cl-mr-1 cl-mt-1 lg:cl-mr-2",
|
|
2200
2197
|
onClick: s[0] || (s[0] = (k) => c(1))
|
|
@@ -2224,7 +2221,7 @@ const ta = {
|
|
|
2224
2221
|
"cl-text-grey-6": i.request.pageNumber !== k
|
|
2225
2222
|
}]),
|
|
2226
2223
|
onClick: ($) => c(k)
|
|
2227
|
-
},
|
|
2224
|
+
}, N(g(Oe)(k)), 11, Ea))), 128)),
|
|
2228
2225
|
Q(f("li", {
|
|
2229
2226
|
class: "cl-cursor-pointer cl-mr-1 cl-mt-1 lg:cl-mr-2",
|
|
2230
2227
|
onClick: s[2] || (s[2] = (k) => c(i.request.pageNumber + 1))
|
|
@@ -2249,8 +2246,8 @@ const ta = {
|
|
|
2249
2246
|
])
|
|
2250
2247
|
])
|
|
2251
2248
|
]),
|
|
2252
|
-
f("ul",
|
|
2253
|
-
f("li",
|
|
2249
|
+
f("ul", Aa, [
|
|
2250
|
+
f("li", Va, N(g(n)("grid.pageSize")), 1),
|
|
2254
2251
|
(p(), b(Y, null, re(u, (k, T) => f("li", {
|
|
2255
2252
|
key: T,
|
|
2256
2253
|
class: L(["cl-cursor-pointer cl-mr-1 lg:cl-mr-2", {
|
|
@@ -2258,11 +2255,11 @@ const ta = {
|
|
|
2258
2255
|
"cl-text-grey-6": i.request.pageSize !== k
|
|
2259
2256
|
}]),
|
|
2260
2257
|
onClick: ($) => r(k)
|
|
2261
|
-
},
|
|
2258
|
+
}, N(g(Oe)(k)), 11, Na)), 64))
|
|
2262
2259
|
]),
|
|
2263
|
-
f("ul",
|
|
2264
|
-
f("li",
|
|
2265
|
-
f("li",
|
|
2260
|
+
f("ul", Ia, [
|
|
2261
|
+
f("li", Ra, N(g(n)("grid.totalRecords")), 1),
|
|
2262
|
+
f("li", Ma, N(g(Oe)(i.data.totalRecords)), 1)
|
|
2266
2263
|
])
|
|
2267
2264
|
])
|
|
2268
2265
|
])) : z("", !0);
|
|
@@ -2277,10 +2274,10 @@ function Re(t, o, l, e) {
|
|
|
2277
2274
|
return e === null && (d = (d == null ? void 0 : d.replace("Z", "")) ?? null), d;
|
|
2278
2275
|
}
|
|
2279
2276
|
function jl(t, o, l, e) {
|
|
2280
|
-
let n =
|
|
2277
|
+
let n = fl(W.now(), l, e);
|
|
2281
2278
|
return n = Wl(o, l, n, e), n = Hl(t, l, n, e), n.toJSDate();
|
|
2282
2279
|
}
|
|
2283
|
-
function
|
|
2280
|
+
function za(t, o, l, e, n) {
|
|
2284
2281
|
let a = W.fromJSDate(l, { zone: e });
|
|
2285
2282
|
return a = Wl(o, e, a, n), a = Hl(t, e, a, n), a.toJSDate();
|
|
2286
2283
|
}
|
|
@@ -2295,7 +2292,7 @@ function Bl(t, o) {
|
|
|
2295
2292
|
let e;
|
|
2296
2293
|
return o === "date" ? e = l.toFormat("D") : o === "datetime" ? e = l.toFormat("f") : e = l.toFormat("t"), t === "en-US" ? e = e.replace("05", "hh").replace("5", "h") : e = e.replace("05", "HH").replace("5", "H"), e.replace("2000", "YYYY").replace("20", "YY").replace("04", "MM").replace("4", "M").replace("03", "DD").replace("3", "D").replace("06", "mm").replace("6", "m").replace("AM", "A").trim();
|
|
2297
2294
|
}
|
|
2298
|
-
function
|
|
2295
|
+
function dl(t, o) {
|
|
2299
2296
|
return t ? !1 : {
|
|
2300
2297
|
visibility: "focus",
|
|
2301
2298
|
showDelay: 0,
|
|
@@ -2316,7 +2313,7 @@ function ul(t, o) {
|
|
|
2316
2313
|
]
|
|
2317
2314
|
};
|
|
2318
2315
|
}
|
|
2319
|
-
function
|
|
2316
|
+
function pl(t, o, l, e) {
|
|
2320
2317
|
let n;
|
|
2321
2318
|
if (t && e !== "dateRange")
|
|
2322
2319
|
n = W.fromISO(t, {
|
|
@@ -2353,7 +2350,7 @@ function Pl(t, o, l) {
|
|
|
2353
2350
|
}
|
|
2354
2351
|
return e;
|
|
2355
2352
|
}
|
|
2356
|
-
function
|
|
2353
|
+
function fl(t, o, l) {
|
|
2357
2354
|
let e = t.set({
|
|
2358
2355
|
second: 0,
|
|
2359
2356
|
millisecond: 0
|
|
@@ -2366,18 +2363,18 @@ function pl(t, o, l) {
|
|
|
2366
2363
|
function Hl(t, o, l, e) {
|
|
2367
2364
|
if (t) {
|
|
2368
2365
|
const n = W.fromISO(t).setZone(o);
|
|
2369
|
-
l < n && (l =
|
|
2366
|
+
l < n && (l = fl(n, o, e), l.equals(n) || (e === "date" ? l = l.plus({ days: 1 }) : l = l.plus({ minutes: 1 })));
|
|
2370
2367
|
}
|
|
2371
2368
|
return l;
|
|
2372
2369
|
}
|
|
2373
2370
|
function Wl(t, o, l, e) {
|
|
2374
2371
|
if (t) {
|
|
2375
2372
|
const n = W.fromISO(t).setZone(o);
|
|
2376
|
-
l > n && (l =
|
|
2373
|
+
l > n && (l = fl(n, o, e), l.equals(n) || (e === "date" ? l = l.minus({ days: 1 }) : l = l.minus({ minutes: 1 })));
|
|
2377
2374
|
}
|
|
2378
2375
|
return l;
|
|
2379
2376
|
}
|
|
2380
|
-
const
|
|
2377
|
+
const La = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, ja = ["onClick"], Ba = /* @__PURE__ */ F({
|
|
2381
2378
|
__name: "cl-ui-quick-dates-group",
|
|
2382
2379
|
props: {
|
|
2383
2380
|
dates: {},
|
|
@@ -2386,7 +2383,7 @@ const ja = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, Ba = ["onClick"], Fa =
|
|
|
2386
2383
|
emits: ["quick-date-selected"],
|
|
2387
2384
|
setup(t, { emit: o }) {
|
|
2388
2385
|
const l = o, { t: e } = se();
|
|
2389
|
-
return (n, a) => (p(), b("div",
|
|
2386
|
+
return (n, a) => (p(), b("div", La, [
|
|
2390
2387
|
(p(!0), b(Y, null, re(n.dates, (d, c) => {
|
|
2391
2388
|
var u, r;
|
|
2392
2389
|
return p(), b("button", {
|
|
@@ -2397,12 +2394,12 @@ const ja = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, Ba = ["onClick"], Fa =
|
|
|
2397
2394
|
}]),
|
|
2398
2395
|
onClick: (i) => l("quick-date-selected", d)
|
|
2399
2396
|
}, [
|
|
2400
|
-
f("span", null,
|
|
2401
|
-
], 10,
|
|
2397
|
+
f("span", null, N(g(e)(d.translationKey)), 1)
|
|
2398
|
+
], 10, ja);
|
|
2402
2399
|
}), 128))
|
|
2403
2400
|
]));
|
|
2404
2401
|
}
|
|
2405
|
-
}),
|
|
2402
|
+
}), Fa = [
|
|
2406
2403
|
"today",
|
|
2407
2404
|
"this week",
|
|
2408
2405
|
"this month",
|
|
@@ -2494,7 +2491,7 @@ const ja = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, Ba = ["onClick"], Fa =
|
|
|
2494
2491
|
...Qe,
|
|
2495
2492
|
...xe,
|
|
2496
2493
|
...Le
|
|
2497
|
-
],
|
|
2494
|
+
], Pa = { class: "cl-p-2 cl-pt-0" }, Ha = {
|
|
2498
2495
|
key: 0,
|
|
2499
2496
|
class: "cl-mt-2 cl-opacity-20"
|
|
2500
2497
|
}, Gl = /* @__PURE__ */ F({
|
|
@@ -2529,22 +2526,22 @@ const ja = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, Ba = ["onClick"], Fa =
|
|
|
2529
2526
|
}
|
|
2530
2527
|
return d;
|
|
2531
2528
|
});
|
|
2532
|
-
return (d, c) => (p(), b("div",
|
|
2533
|
-
f("div", null,
|
|
2529
|
+
return (d, c) => (p(), b("div", Pa, [
|
|
2530
|
+
f("div", null, N(g(n)("quickDates.quickDatesHeader")), 1),
|
|
2534
2531
|
(p(!0), b(Y, null, re(a.value, (u, r) => (p(), b("div", {
|
|
2535
2532
|
key: r,
|
|
2536
2533
|
class: "cl-pt-2"
|
|
2537
2534
|
}, [
|
|
2538
|
-
D(
|
|
2535
|
+
D(Ba, {
|
|
2539
2536
|
dates: u,
|
|
2540
2537
|
"selected-quick-date": d.selectedQuickDate,
|
|
2541
2538
|
onQuickDateSelected: c[0] || (c[0] = (i) => e("quick-date-selected", i))
|
|
2542
2539
|
}, null, 8, ["dates", "selected-quick-date"]),
|
|
2543
|
-
r < a.value.length - 1 ? (p(), b("div",
|
|
2540
|
+
r < a.value.length - 1 ? (p(), b("div", Ha)) : z("", !0)
|
|
2544
2541
|
]))), 128))
|
|
2545
2542
|
]));
|
|
2546
2543
|
}
|
|
2547
|
-
}),
|
|
2544
|
+
}), ml = /* @__PURE__ */ F({
|
|
2548
2545
|
inheritAttrs: !1,
|
|
2549
2546
|
__name: "cl-ui-input-date-range-input",
|
|
2550
2547
|
props: {
|
|
@@ -2555,7 +2552,7 @@ const ja = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, Ba = ["onClick"], Fa =
|
|
|
2555
2552
|
emits: ["togglePopover", "clear"],
|
|
2556
2553
|
setup(t) {
|
|
2557
2554
|
const { t: o } = se(), l = O(() => {
|
|
2558
|
-
const { class: e, ...n } =
|
|
2555
|
+
const { class: e, ...n } = El();
|
|
2559
2556
|
return n;
|
|
2560
2557
|
});
|
|
2561
2558
|
return (e, n) => {
|
|
@@ -2648,7 +2645,7 @@ const ja = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, Ba = ["onClick"], Fa =
|
|
|
2648
2645
|
} else
|
|
2649
2646
|
l.value = null;
|
|
2650
2647
|
}
|
|
2651
|
-
}), { locale: a } = se(), d = O(() => o.dateFormatLocale ?? a.value), c = O(() =>
|
|
2648
|
+
}), { locale: a } = se(), d = O(() => o.dateFormatLocale ?? a.value), c = O(() => dl(o.disabled, o.popoverPlacement)), u = O(() => pl(l.value, o.initialCalendarDate, e.value, "dateRange")), r = O(() => Pl(n.value, e.value, d.value)), i = I(null), s = I(null);
|
|
2652
2649
|
function m(T) {
|
|
2653
2650
|
const $ = Fl(T, e.value);
|
|
2654
2651
|
n.value = $, i.value = T, s.value.move($.start), s.value.hidePopover();
|
|
@@ -2661,7 +2658,7 @@ const ja = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, Ba = ["onClick"], Fa =
|
|
|
2661
2658
|
M(T.$slots, "default")
|
|
2662
2659
|
]),
|
|
2663
2660
|
default: R(() => [
|
|
2664
|
-
D(g(
|
|
2661
|
+
D(g(Ie), {
|
|
2665
2662
|
ref_key: "calendar",
|
|
2666
2663
|
ref: s,
|
|
2667
2664
|
modelValue: n.value,
|
|
@@ -2680,7 +2677,7 @@ const ja = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, Ba = ["onClick"], Fa =
|
|
|
2680
2677
|
onDayclick: $[2] || ($[2] = (U) => i.value = null)
|
|
2681
2678
|
}, {
|
|
2682
2679
|
default: R(({ togglePopover: U }) => [
|
|
2683
|
-
D(
|
|
2680
|
+
D(ml, te(T.$attrs, {
|
|
2684
2681
|
required: T.required,
|
|
2685
2682
|
disabled: T.disabled,
|
|
2686
2683
|
"date-range-selected": !!n.value,
|
|
@@ -2707,13 +2704,13 @@ const ja = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, Ba = ["onClick"], Fa =
|
|
|
2707
2704
|
}, 8, ["show-required-asterisk"]);
|
|
2708
2705
|
};
|
|
2709
2706
|
}
|
|
2710
|
-
}),
|
|
2707
|
+
}), Wa = [
|
|
2711
2708
|
"text",
|
|
2712
2709
|
"email",
|
|
2713
2710
|
"tel",
|
|
2714
2711
|
"password",
|
|
2715
2712
|
"search"
|
|
2716
|
-
],
|
|
2713
|
+
], Za = { class: "cl-gap-1 cl-grid cl-grid-cols-[auto_1fr_auto_auto] cl-pt-0.5 cl-w-full" }, Ga = ["disabled"], Ka = { class: "cl-max-w-max" }, Qa = { class: "cl-flex cl-flex-col cl-gap-1 cl-w-full" }, xa = ["min", "disabled", "required", "step", "max"], Ya = { class: "cl-bg-white cl-border cl-border-grey-2 cl-leading-none cl-rounded-full cl-text-center cl-text-xs" }, _a = ["disabled"], Ja = ["disabled", "title"], Xa = /* @__PURE__ */ F({
|
|
2717
2714
|
inheritAttrs: !1,
|
|
2718
2715
|
__name: "cl-ui-input-range",
|
|
2719
2716
|
props: /* @__PURE__ */ ge({
|
|
@@ -2730,10 +2727,10 @@ const ja = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, Ba = ["onClick"], Fa =
|
|
|
2730
2727
|
}),
|
|
2731
2728
|
emits: ["update:modelValue"],
|
|
2732
2729
|
setup(t, { expose: o }) {
|
|
2733
|
-
|
|
2730
|
+
Al((s) => ({
|
|
2734
2731
|
"28c20101": c.value
|
|
2735
2732
|
}));
|
|
2736
|
-
const l = t, e = Ae(t, "modelValue"), { t: n } = se(), a =
|
|
2733
|
+
const l = t, e = Ae(t, "modelValue"), { t: n } = se(), a = I(), d = I(), c = O(() => `${100 * (e.value - l.min) / (l.max - l.min)}%`), u = I(!1), r = pt(e, 50);
|
|
2737
2734
|
function i(s) {
|
|
2738
2735
|
var m;
|
|
2739
2736
|
e.value = s, (m = a.value) == null || m.focus();
|
|
@@ -2752,16 +2749,16 @@ const ja = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, Ba = ["onClick"], Fa =
|
|
|
2752
2749
|
return p(), P(Je, {
|
|
2753
2750
|
errors: s.errors,
|
|
2754
2751
|
"show-required-asterisk": s.required
|
|
2755
|
-
},
|
|
2752
|
+
}, Ne({
|
|
2756
2753
|
default: R(() => [
|
|
2757
|
-
f("div",
|
|
2754
|
+
f("div", Za, [
|
|
2758
2755
|
f("button", {
|
|
2759
2756
|
disabled: s.disabled,
|
|
2760
2757
|
class: "active:cl-bg-grey-0 cl-bg-white cl-border cl-border-grey-2 cl-leading-none cl-min-w-[26px] cl-p-[5px] cl-rounded-full cl-shadow cl-text-xs cl-transition-colors disabled:cl-bg-grey-1 hover:cl-bg-off-white",
|
|
2761
2758
|
onClick: m[0] || (m[0] = (k) => i(s.min))
|
|
2762
|
-
},
|
|
2763
|
-
f("div",
|
|
2764
|
-
Q(f("div",
|
|
2759
|
+
}, N(g(el)(s.min, s.precision)), 9, Ga),
|
|
2760
|
+
f("div", Ka, [
|
|
2761
|
+
Q(f("div", Qa, [
|
|
2765
2762
|
Q(f("input", te({
|
|
2766
2763
|
ref_key: "sliderRef",
|
|
2767
2764
|
ref: a,
|
|
@@ -2774,15 +2771,15 @@ const ja = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, Ba = ["onClick"], Fa =
|
|
|
2774
2771
|
required: s.required,
|
|
2775
2772
|
step: 1 / Math.pow(10, s.precision),
|
|
2776
2773
|
max: s.max
|
|
2777
|
-
}), null, 16,
|
|
2774
|
+
}), null, 16, xa), [
|
|
2778
2775
|
[
|
|
2779
|
-
|
|
2776
|
+
Vl,
|
|
2780
2777
|
e.value,
|
|
2781
2778
|
void 0,
|
|
2782
2779
|
{ number: !0 }
|
|
2783
2780
|
]
|
|
2784
2781
|
]),
|
|
2785
|
-
f("div",
|
|
2782
|
+
f("div", Ya, N(g(el)(g(r), s.precision)), 1)
|
|
2786
2783
|
], 512), [
|
|
2787
2784
|
[X, u.value === !1]
|
|
2788
2785
|
]),
|
|
@@ -2806,7 +2803,7 @@ const ja = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, Ba = ["onClick"], Fa =
|
|
|
2806
2803
|
disabled: s.disabled,
|
|
2807
2804
|
class: "active:cl-bg-grey-0 cl-bg-white cl-border cl-border-grey-2 cl-leading-none cl-min-w-[26px] cl-p-[5px] cl-rounded-full cl-shadow cl-text-xs cl-transition-colors disabled:cl-bg-grey-1 hover:cl-bg-off-white",
|
|
2808
2805
|
onClick: m[3] || (m[3] = (k) => i(s.max))
|
|
2809
|
-
},
|
|
2806
|
+
}, N(g(el)(s.max, s.precision)), 9, _a),
|
|
2810
2807
|
f("button", {
|
|
2811
2808
|
disabled: s.disabled,
|
|
2812
2809
|
class: "active:cl-bg-grey-0 cl-bg-white cl-border cl-border-grey-2 cl-leading-none cl-min-w-0 cl-p-[5px] cl-rounded-full cl-shadow cl-text-xs cl-transition-colors disabled:cl-bg-grey-1 hover:cl-bg-off-white",
|
|
@@ -2814,7 +2811,7 @@ const ja = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, Ba = ["onClick"], Fa =
|
|
|
2814
2811
|
onClick: m[4] || (m[4] = (k) => u.value = !u.value)
|
|
2815
2812
|
}, [
|
|
2816
2813
|
D(h, { icon: "ph:arrows-left-right-thin" })
|
|
2817
|
-
], 8,
|
|
2814
|
+
], 8, Ja)
|
|
2818
2815
|
])
|
|
2819
2816
|
]),
|
|
2820
2817
|
_: 2
|
|
@@ -2829,11 +2826,11 @@ const ja = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, Ba = ["onClick"], Fa =
|
|
|
2829
2826
|
]), 1032, ["errors", "show-required-asterisk"]);
|
|
2830
2827
|
};
|
|
2831
2828
|
}
|
|
2832
|
-
}),
|
|
2829
|
+
}), en = /* @__PURE__ */ he(Xa, [["__scopeId", "data-v-b105db31"]]), Ql = [
|
|
2833
2830
|
"date",
|
|
2834
2831
|
"datetime",
|
|
2835
2832
|
"time"
|
|
2836
|
-
],
|
|
2833
|
+
], ln = [
|
|
2837
2834
|
"auto",
|
|
2838
2835
|
"auto-start",
|
|
2839
2836
|
"auto-end",
|
|
@@ -2845,13 +2842,13 @@ const ja = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, Ba = ["onClick"], Fa =
|
|
|
2845
2842
|
"right-end",
|
|
2846
2843
|
"left-start",
|
|
2847
2844
|
"left-end"
|
|
2848
|
-
],
|
|
2845
|
+
], tn = {
|
|
2849
2846
|
key: 1,
|
|
2850
2847
|
class: "cl-relative"
|
|
2851
|
-
},
|
|
2848
|
+
}, on = ["value", "disabled", "placeholder"], an = {
|
|
2852
2849
|
key: 0,
|
|
2853
2850
|
class: "action-icon cl-absolute cl-bg-transparent cl-flex cl-right-2 cl-text-grey-4 cl-top-3.5"
|
|
2854
|
-
},
|
|
2851
|
+
}, nn = /* @__PURE__ */ F({
|
|
2855
2852
|
inheritAttrs: !1,
|
|
2856
2853
|
__name: "cl-ui-calendar-input",
|
|
2857
2854
|
props: {
|
|
@@ -2865,7 +2862,7 @@ const ja = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, Ba = ["onClick"], Fa =
|
|
|
2865
2862
|
},
|
|
2866
2863
|
emits: ["clear", "reset", "togglePopover"],
|
|
2867
2864
|
setup(t, { expose: o }) {
|
|
2868
|
-
const l = t, e =
|
|
2865
|
+
const l = t, e = I(null);
|
|
2869
2866
|
function n() {
|
|
2870
2867
|
var c;
|
|
2871
2868
|
(c = e.value) == null || c.focus();
|
|
@@ -2887,13 +2884,13 @@ const ja = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, Ba = ["onClick"], Fa =
|
|
|
2887
2884
|
});
|
|
2888
2885
|
return o({
|
|
2889
2886
|
focus: n
|
|
2890
|
-
}), (c, u) => c.type === "dateRange" ? (p(), P(g(
|
|
2887
|
+
}), (c, u) => c.type === "dateRange" ? (p(), P(g(ml), te({ key: 0 }, c.$attrs, {
|
|
2891
2888
|
disabled: !!c.disabled,
|
|
2892
2889
|
required: c.required,
|
|
2893
2890
|
"date-range-selected": !!c.rangeSelected,
|
|
2894
2891
|
onTogglePopover: u[0] || (u[0] = (r) => c.$emit("togglePopover")),
|
|
2895
2892
|
onClear: u[1] || (u[1] = (r) => c.$emit("clear"))
|
|
2896
|
-
}), null, 16, ["disabled", "required", "date-range-selected"])) : (p(), b("div",
|
|
2893
|
+
}), null, 16, ["disabled", "required", "date-range-selected"])) : (p(), b("div", tn, [
|
|
2897
2894
|
f("input", te({
|
|
2898
2895
|
ref_key: "element",
|
|
2899
2896
|
ref: e
|
|
@@ -2902,13 +2899,13 @@ const ja = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, Ba = ["onClick"], Fa =
|
|
|
2902
2899
|
type: "text",
|
|
2903
2900
|
disabled: c.disabled,
|
|
2904
2901
|
placeholder: d.value
|
|
2905
|
-
}, lt(c.events, !0)), null, 16,
|
|
2902
|
+
}, lt(c.events, !0)), null, 16, on),
|
|
2906
2903
|
D(g(Z), {
|
|
2907
2904
|
class: "cl-absolute cl-bg-transparent cl-cursor-text cl-left-2 cl-text-grey-4 cl-top-3.5 icon",
|
|
2908
2905
|
icon: c.type === "time" ? "ph-clock" : "ph:calendar",
|
|
2909
2906
|
onClick: n
|
|
2910
2907
|
}, null, 8, ["icon"]),
|
|
2911
|
-
c.disabled ? z("", !0) : (p(), b("div",
|
|
2908
|
+
c.disabled ? z("", !0) : (p(), b("div", an, [
|
|
2912
2909
|
c.type !== "time" ? (p(), P(g(Z), {
|
|
2913
2910
|
key: 0,
|
|
2914
2911
|
class: "cl-cursor-pointer hover:cl-text-link-light",
|
|
@@ -2924,7 +2921,7 @@ const ja = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, Ba = ["onClick"], Fa =
|
|
|
2924
2921
|
]))
|
|
2925
2922
|
]));
|
|
2926
2923
|
}
|
|
2927
|
-
}), je = /* @__PURE__ */ he(
|
|
2924
|
+
}), je = /* @__PURE__ */ he(nn, [["__scopeId", "data-v-307fea23"]]), xl = /* @__PURE__ */ F({
|
|
2928
2925
|
inheritAttrs: !1,
|
|
2929
2926
|
__name: "cl-ui-input-datetime",
|
|
2930
2927
|
props: /* @__PURE__ */ ge({
|
|
@@ -2954,12 +2951,12 @@ const ja = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, Ba = ["onClick"], Fa =
|
|
|
2954
2951
|
set(k) {
|
|
2955
2952
|
e.type === "time" ? n.value = k : k !== null ? n.value = Re(k, null, !0, e.timeZone) : n.value = null;
|
|
2956
2953
|
}
|
|
2957
|
-
}), { locale: u } = se(), r = O(() => e.dateFormatLocale ?? u.value), i = O(() =>
|
|
2954
|
+
}), { locale: u } = se(), r = O(() => e.dateFormatLocale ?? u.value), i = O(() => dl(e.disabled, e.popoverPlacement)), s = O(() => Bl(r.value, e.type)), m = I(null), h = O(() => pl(n.value, e.initialCalendarDate, d.value, e.type));
|
|
2958
2955
|
return oe(() => [
|
|
2959
2956
|
e.minDate,
|
|
2960
2957
|
e.maxDate
|
|
2961
2958
|
], () => {
|
|
2962
|
-
e.type !== "time" && (c.value instanceof Date || c.value === null) && (c.value =
|
|
2959
|
+
e.type !== "time" && (c.value instanceof Date || c.value === null) && (c.value = za(e.minDate, e.maxDate, c.value, d.value, e.type));
|
|
2963
2960
|
}), o({
|
|
2964
2961
|
focus() {
|
|
2965
2962
|
var k;
|
|
@@ -2972,7 +2969,7 @@ const ja = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, Ba = ["onClick"], Fa =
|
|
|
2972
2969
|
M(k.$slots, "default")
|
|
2973
2970
|
]),
|
|
2974
2971
|
default: R(() => [
|
|
2975
|
-
k.type === "time" ? (p(), P(g(
|
|
2972
|
+
k.type === "time" ? (p(), P(g(Ie), {
|
|
2976
2973
|
key: 0,
|
|
2977
2974
|
modelValue: c.value,
|
|
2978
2975
|
"onUpdate:modelValue": T[1] || (T[1] = (q) => c.value = q),
|
|
@@ -3002,7 +2999,7 @@ const ja = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, Ba = ["onClick"], Fa =
|
|
|
3002
2999
|
}), null, 16, ["date", "events", "type", "placeholder", "required", "disabled"])
|
|
3003
3000
|
]),
|
|
3004
3001
|
_: 1
|
|
3005
|
-
}, 8, ["modelValue", "locale", "is24hr", "mode", "is-required", "masks", "popover"])) : (p(), P(g(
|
|
3002
|
+
}, 8, ["modelValue", "locale", "is24hr", "mode", "is-required", "masks", "popover"])) : (p(), P(g(Ie), {
|
|
3006
3003
|
key: 1,
|
|
3007
3004
|
modelValue: c.value,
|
|
3008
3005
|
"onUpdate:modelValue": T[4] || (T[4] = (q) => c.value = q),
|
|
@@ -3042,7 +3039,7 @@ const ja = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, Ba = ["onClick"], Fa =
|
|
|
3042
3039
|
}, 8, ["show-required-asterisk"]);
|
|
3043
3040
|
};
|
|
3044
3041
|
}
|
|
3045
|
-
}),
|
|
3042
|
+
}), sn = [
|
|
3046
3043
|
"string",
|
|
3047
3044
|
"boolean",
|
|
3048
3045
|
"number",
|
|
@@ -3055,7 +3052,7 @@ const ja = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, Ba = ["onClick"], Fa =
|
|
|
3055
3052
|
function Yl(t) {
|
|
3056
3053
|
return typeof t.caption == "string" && typeof t.name == "string" && typeof t.type == "string";
|
|
3057
3054
|
}
|
|
3058
|
-
function
|
|
3055
|
+
function rn(t) {
|
|
3059
3056
|
let o = Array.isArray(t);
|
|
3060
3057
|
if (o) {
|
|
3061
3058
|
for (const l of t)
|
|
@@ -3066,12 +3063,12 @@ function cn(t) {
|
|
|
3066
3063
|
}
|
|
3067
3064
|
return o;
|
|
3068
3065
|
}
|
|
3069
|
-
const
|
|
3066
|
+
const cn = [
|
|
3070
3067
|
"ellipsis",
|
|
3071
3068
|
"wrap-text"
|
|
3072
3069
|
];
|
|
3073
3070
|
var J = /* @__PURE__ */ ((t) => (t[t.CONTAINS = 0] = "CONTAINS", t[t.NOT_CONTAINS = 1] = "NOT_CONTAINS", t[t.EQUAL = 2] = "EQUAL", t[t.NOT_EQUAL = 3] = "NOT_EQUAL", t[t.STARTS_WITH = 4] = "STARTS_WITH", t[t.ENDS_WITH = 5] = "ENDS_WITH", t[t.GREATER_THAN = 6] = "GREATER_THAN", t[t.LESS_THAN = 7] = "LESS_THAN", t[t.EQUAL_OR_GREATER_THAN = 8] = "EQUAL_OR_GREATER_THAN", t[t.EQUAL_OR_LESS_THAN = 9] = "EQUAL_OR_LESS_THAN", t[t.AND_CONTAINS = 10] = "AND_CONTAINS", t))(J || {});
|
|
3074
|
-
const
|
|
3071
|
+
const un = [
|
|
3075
3072
|
"equal",
|
|
3076
3073
|
"notequal",
|
|
3077
3074
|
"contains",
|
|
@@ -3084,24 +3081,24 @@ const dn = [
|
|
|
3084
3081
|
"equalorgreaterthan",
|
|
3085
3082
|
"andcontains"
|
|
3086
3083
|
];
|
|
3087
|
-
function
|
|
3084
|
+
function dn(t) {
|
|
3088
3085
|
return typeof t.filterOnColumn == "string" && typeof t.filterOperation == "number" && typeof t.filterValue == "string";
|
|
3089
3086
|
}
|
|
3090
|
-
function
|
|
3087
|
+
function pn(t) {
|
|
3091
3088
|
return t === null || typeof t.sortByAscending == "boolean" && typeof t.sortOnColumn == "string";
|
|
3092
3089
|
}
|
|
3093
|
-
function
|
|
3094
|
-
let o = typeof t.filters == "object" && Array.isArray(t.filters) && typeof t.pageNumber == "number" && typeof t.pageSize == "number" && typeof t.sort == "object" &&
|
|
3090
|
+
function fn(t) {
|
|
3091
|
+
let o = typeof t.filters == "object" && Array.isArray(t.filters) && typeof t.pageNumber == "number" && typeof t.pageSize == "number" && typeof t.sort == "object" && pn(t.sort);
|
|
3095
3092
|
if (o) {
|
|
3096
3093
|
for (const l of t.filters)
|
|
3097
|
-
if (!
|
|
3094
|
+
if (!dn(l)) {
|
|
3098
3095
|
o = !1;
|
|
3099
3096
|
break;
|
|
3100
3097
|
}
|
|
3101
3098
|
}
|
|
3102
3099
|
return o;
|
|
3103
3100
|
}
|
|
3104
|
-
function
|
|
3101
|
+
function mn(t, o) {
|
|
3105
3102
|
let l = typeof t.results == "object" && Array.isArray(t.results) && typeof t.totalRecords == "number";
|
|
3106
3103
|
if (l) {
|
|
3107
3104
|
for (const e of t.results)
|
|
@@ -3112,7 +3109,7 @@ function gn(t, o) {
|
|
|
3112
3109
|
}
|
|
3113
3110
|
return l;
|
|
3114
3111
|
}
|
|
3115
|
-
const
|
|
3112
|
+
const gn = {
|
|
3116
3113
|
method: "equal",
|
|
3117
3114
|
icon: "mdi:equal",
|
|
3118
3115
|
description: "Equals",
|
|
@@ -3125,12 +3122,12 @@ const vn = {
|
|
|
3125
3122
|
"list"
|
|
3126
3123
|
],
|
|
3127
3124
|
key: "equal"
|
|
3128
|
-
},
|
|
3125
|
+
}, vn = {
|
|
3129
3126
|
method: "contains",
|
|
3130
3127
|
icon: "mdi:format-letter-matches",
|
|
3131
3128
|
description: "Contains",
|
|
3132
3129
|
allowedTypes: ["string"]
|
|
3133
|
-
},
|
|
3130
|
+
}, bn = {
|
|
3134
3131
|
method: "lessthan",
|
|
3135
3132
|
icon: "mdi:less-than",
|
|
3136
3133
|
description: "Before",
|
|
@@ -3139,8 +3136,8 @@ const vn = {
|
|
|
3139
3136
|
"datetime"
|
|
3140
3137
|
],
|
|
3141
3138
|
key: "before"
|
|
3142
|
-
},
|
|
3143
|
-
|
|
3139
|
+
}, Tl = [
|
|
3140
|
+
vn,
|
|
3144
3141
|
{
|
|
3145
3142
|
method: "notcontains",
|
|
3146
3143
|
icon: "mdi:format-letter-spacing-variant",
|
|
@@ -3159,7 +3156,7 @@ const vn = {
|
|
|
3159
3156
|
description: "Ends with",
|
|
3160
3157
|
allowedTypes: ["string"]
|
|
3161
3158
|
},
|
|
3162
|
-
|
|
3159
|
+
gn,
|
|
3163
3160
|
{
|
|
3164
3161
|
method: "notequal",
|
|
3165
3162
|
icon: "mdi:not-equal",
|
|
@@ -3172,7 +3169,7 @@ const vn = {
|
|
|
3172
3169
|
],
|
|
3173
3170
|
key: "notequal"
|
|
3174
3171
|
},
|
|
3175
|
-
|
|
3172
|
+
bn,
|
|
3176
3173
|
{
|
|
3177
3174
|
method: "greaterthan",
|
|
3178
3175
|
icon: "mdi:greater-than",
|
|
@@ -3227,7 +3224,7 @@ const vn = {
|
|
|
3227
3224
|
description: "Less than",
|
|
3228
3225
|
allowedTypes: ["number"]
|
|
3229
3226
|
}
|
|
3230
|
-
],
|
|
3227
|
+
], hn = { 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" }, yn = { class: "cl-p-2 cl-select-none" }, wn = ["onClick"], kn = /* @__PURE__ */ F({
|
|
3231
3228
|
__name: "cl-ui-grid-method-selector",
|
|
3232
3229
|
props: {
|
|
3233
3230
|
filter: {},
|
|
@@ -3239,7 +3236,7 @@ const vn = {
|
|
|
3239
3236
|
setup(t, { emit: o }) {
|
|
3240
3237
|
const l = t, e = o, { t: n } = se(), a = O(() => {
|
|
3241
3238
|
let s = [];
|
|
3242
|
-
return l.column.type !== "slot" ? s =
|
|
3239
|
+
return l.column.type !== "slot" ? s = Tl.filter((m) => m.allowedTypes.includes(l.column.type)) : typeof l.column.slotType < "u" && typeof l.column.field < "u" && (s = Tl.filter((m) => m.allowedTypes.includes(l.column.slotType))), l.column.type === "date" || l.column.type === "datetime" || l.column.slotType === "date" || l.column.slotType === "datetime" ? s.forEach((m) => {
|
|
3243
3240
|
m.description = n(`grid.${m.key}`);
|
|
3244
3241
|
}) : s.forEach((m) => {
|
|
3245
3242
|
m.description = n(`grid.${m.method}`);
|
|
@@ -3267,13 +3264,13 @@ const vn = {
|
|
|
3267
3264
|
return;
|
|
3268
3265
|
e("update:filter", m);
|
|
3269
3266
|
}
|
|
3270
|
-
const u =
|
|
3267
|
+
const u = I(), { left: r } = ft(u), i = O(() => r.value / 2 < 208);
|
|
3271
3268
|
return (s, m) => (p(), b("div", {
|
|
3272
3269
|
ref_key: "gridMethodSelectElement",
|
|
3273
3270
|
ref: u,
|
|
3274
3271
|
class: "cl-group cl-inline cl-relative cl-w-auto"
|
|
3275
3272
|
}, [
|
|
3276
|
-
f("div",
|
|
3273
|
+
f("div", hn, [
|
|
3277
3274
|
d.value ? (p(), P(g(Z), {
|
|
3278
3275
|
key: 0,
|
|
3279
3276
|
icon: d.value.icon,
|
|
@@ -3290,7 +3287,7 @@ const vn = {
|
|
|
3290
3287
|
"cl-left-0": i.value
|
|
3291
3288
|
}])
|
|
3292
3289
|
}, [
|
|
3293
|
-
f("strong",
|
|
3290
|
+
f("strong", yn, N(g(n)("grid.availableMethods")), 1),
|
|
3294
3291
|
(p(!0), b(Y, null, re(a.value, (h, k) => {
|
|
3295
3292
|
var T;
|
|
3296
3293
|
return p(), b("span", {
|
|
@@ -3300,29 +3297,29 @@ const vn = {
|
|
|
3300
3297
|
}]),
|
|
3301
3298
|
onClick: ee(($) => c(h.method), ["prevent"])
|
|
3302
3299
|
}, [
|
|
3303
|
-
ue(
|
|
3300
|
+
ue(N(h.description) + " ", 1),
|
|
3304
3301
|
D(g(Z), {
|
|
3305
3302
|
icon: h.icon,
|
|
3306
3303
|
class: "cl-float-right cl-text-grey-4 cl-text-sm"
|
|
3307
3304
|
}, null, 8, ["icon"])
|
|
3308
|
-
], 10,
|
|
3305
|
+
], 10, wn);
|
|
3309
3306
|
}), 128))
|
|
3310
3307
|
], 2)
|
|
3311
3308
|
], 512));
|
|
3312
3309
|
}
|
|
3313
|
-
}),
|
|
3310
|
+
}), $n = {
|
|
3314
3311
|
key: 0,
|
|
3315
3312
|
class: "cl-border cl-border-grey-2 cl-flex cl-overflow-hidden cl-rounded-md lg:cl-overflow-visible"
|
|
3316
|
-
},
|
|
3313
|
+
}, Cn = ["id", "disabled"], Tn = /* @__PURE__ */ f("option", { value: void 0 }, null, -1), qn = ["selected"], On = ["selected"], Sn = {
|
|
3317
3314
|
key: 2,
|
|
3318
3315
|
class: "cl-w-full"
|
|
3319
|
-
},
|
|
3316
|
+
}, Dn = {
|
|
3320
3317
|
key: 3,
|
|
3321
3318
|
class: "cl-w-full"
|
|
3322
|
-
},
|
|
3319
|
+
}, En = /* @__PURE__ */ f("span", null, null, -1), An = {
|
|
3323
3320
|
key: 4,
|
|
3324
3321
|
class: "cl-w-full"
|
|
3325
|
-
},
|
|
3322
|
+
}, Vn = /* @__PURE__ */ f("span", null, null, -1), Nn = ["id", "disabled"], In = /* @__PURE__ */ f("option", { value: void 0 }, null, -1), Rn = ["value", "selected"], Mn = /* @__PURE__ */ F({
|
|
3326
3323
|
__name: "cl-ui-grid-filter",
|
|
3327
3324
|
props: {
|
|
3328
3325
|
loading: { type: Boolean },
|
|
@@ -3490,7 +3487,7 @@ const vn = {
|
|
|
3490
3487
|
let C = (y == null ? void 0 : y.value) ?? v ?? 0;
|
|
3491
3488
|
if (typeof C == "string") {
|
|
3492
3489
|
const _ = l.column.format === le.INTEGER, K = (_ ? le.DECIMAL : l.column.format) ?? le.DECIMAL;
|
|
3493
|
-
C =
|
|
3490
|
+
C = Ll(C, K, { additionalOptions: {
|
|
3494
3491
|
maximumFractionDigits: _ ? 0 : void 0,
|
|
3495
3492
|
minimumFractionDigits: _ ? 0 : void 0
|
|
3496
3493
|
} });
|
|
@@ -3515,7 +3512,7 @@ const vn = {
|
|
|
3515
3512
|
C === !1 && (h.value = v);
|
|
3516
3513
|
}
|
|
3517
3514
|
const E = ol("cl-ui-grid-id") ?? "cl-ui-grid-filter";
|
|
3518
|
-
return (y, v) => S.value ? (p(), b("div",
|
|
3515
|
+
return (y, v) => S.value ? (p(), b("div", $n, [
|
|
3519
3516
|
y.column.type === "boolean" || y.column.type === "slot" && y.column.slotType === "boolean" ? (p(), b("select", {
|
|
3520
3517
|
key: 0,
|
|
3521
3518
|
id: `${g(E)}-${y.column.name}`,
|
|
@@ -3523,16 +3520,16 @@ const vn = {
|
|
|
3523
3520
|
class: "!cl-h-[2rem] cl-bg-white cl-border-none cl-font-normal cl-mb-0 cl-rounded-md cl-w-full",
|
|
3524
3521
|
onChange: v[0] || (v[0] = (C) => B(C.target))
|
|
3525
3522
|
}, [
|
|
3526
|
-
|
|
3523
|
+
Tn,
|
|
3527
3524
|
f("option", {
|
|
3528
3525
|
value: "true",
|
|
3529
3526
|
selected: $.value === "true"
|
|
3530
|
-
},
|
|
3527
|
+
}, N(g(n)("grid.true")), 9, qn),
|
|
3531
3528
|
f("option", {
|
|
3532
3529
|
value: "false",
|
|
3533
3530
|
selected: $.value === "false"
|
|
3534
|
-
},
|
|
3535
|
-
], 40,
|
|
3531
|
+
}, N(g(n)("grid.false")), 9, On)
|
|
3532
|
+
], 40, Cn)) : u.value ? (p(), P(xl, {
|
|
3536
3533
|
key: 1,
|
|
3537
3534
|
id: `${g(E)}-${y.column.name}`,
|
|
3538
3535
|
"model-value": q.value,
|
|
@@ -3542,7 +3539,7 @@ const vn = {
|
|
|
3542
3539
|
class: "!cl-h-[2rem] cl-border-none cl-mb-0 cl-text-xs cl-w-full lg:!cl-text-base",
|
|
3543
3540
|
"popover-placement": "bottom-start",
|
|
3544
3541
|
"onUpdate:modelValue": v[1] || (v[1] = (C) => B(null, C ?? ""))
|
|
3545
|
-
}, null, 8, ["id", "model-value", "time-zone", "disabled", "type"])) : r.value ? (p(), b("div",
|
|
3542
|
+
}, null, 8, ["id", "model-value", "time-zone", "disabled", "type"])) : r.value ? (p(), b("div", Sn, [
|
|
3546
3543
|
D(Kl, {
|
|
3547
3544
|
id: `${g(E)}-${y.column.name}`,
|
|
3548
3545
|
"model-value": U.value,
|
|
@@ -3553,7 +3550,7 @@ const vn = {
|
|
|
3553
3550
|
"popover-placement": "bottom-start",
|
|
3554
3551
|
"onUpdate:modelValue": v[2] || (v[2] = (C) => A(C))
|
|
3555
3552
|
}, null, 8, ["id", "model-value", "disabled", "time-zone", "quick-date-scope"])
|
|
3556
|
-
])) : y.column.type === "number" || y.column.type === "slot" && y.column.slotType === "number" ? (p(), b("div",
|
|
3553
|
+
])) : y.column.type === "number" || y.column.type === "slot" && y.column.slotType === "number" ? (p(), b("div", Dn, [
|
|
3557
3554
|
D(Pe, {
|
|
3558
3555
|
id: `${g(E)}-${y.column.name}`,
|
|
3559
3556
|
"model-value": $.value === "" || isNaN(+$.value) ? null : +$.value,
|
|
@@ -3568,11 +3565,11 @@ const vn = {
|
|
|
3568
3565
|
"onUpdate:modelValue": v[3] || (v[3] = (C) => C !== null ? x(null, C) : B(null, ""))
|
|
3569
3566
|
}, {
|
|
3570
3567
|
default: R(() => [
|
|
3571
|
-
|
|
3568
|
+
En
|
|
3572
3569
|
]),
|
|
3573
3570
|
_: 1
|
|
3574
3571
|
}, 8, ["id", "model-value", "format", "precision", "disabled", "readonly"])
|
|
3575
|
-
])) : y.column.type === "string" || y.column.type === "slot" && y.column.slotType === "string" ? (p(), b("div",
|
|
3572
|
+
])) : y.column.type === "string" || y.column.type === "slot" && y.column.slotType === "string" ? (p(), b("div", An, [
|
|
3576
3573
|
D(Ee, {
|
|
3577
3574
|
id: `${g(E)}-${y.column.name}`,
|
|
3578
3575
|
"model-value": $.value,
|
|
@@ -3581,7 +3578,7 @@ const vn = {
|
|
|
3581
3578
|
"onUpdate:modelValue": v[4] || (v[4] = (C) => B(null, C))
|
|
3582
3579
|
}, {
|
|
3583
3580
|
default: R(() => [
|
|
3584
|
-
|
|
3581
|
+
Vn
|
|
3585
3582
|
]),
|
|
3586
3583
|
_: 1
|
|
3587
3584
|
}, 8, ["id", "model-value", "disabled"])
|
|
@@ -3592,14 +3589,14 @@ const vn = {
|
|
|
3592
3589
|
disabled: y.loading,
|
|
3593
3590
|
onChange: v[5] || (v[5] = (C) => s.value ? x(C.target) : B(C.target))
|
|
3594
3591
|
}, [
|
|
3595
|
-
|
|
3592
|
+
In,
|
|
3596
3593
|
(p(!0), b(Y, null, re(y.column.listEntries ?? [], (C) => (p(), b("option", {
|
|
3597
3594
|
key: C.value,
|
|
3598
3595
|
value: C.value,
|
|
3599
3596
|
selected: $.value === C.value.toString()
|
|
3600
|
-
},
|
|
3597
|
+
}, N(g(n)(C.translationKey)), 9, Rn))), 128))
|
|
3601
3598
|
], 40, Nn)) : z("", !0),
|
|
3602
|
-
r.value ? z("", !0) : (p(), P(
|
|
3599
|
+
r.value ? z("", !0) : (p(), P(kn, {
|
|
3603
3600
|
key: 6,
|
|
3604
3601
|
filter: k.value,
|
|
3605
3602
|
"onUpdate:filter": v[6] || (v[6] = (C) => k.value = C),
|
|
@@ -3609,7 +3606,7 @@ const vn = {
|
|
|
3609
3606
|
}, null, 8, ["filter", "loading", "column", "default-operation"]))
|
|
3610
3607
|
])) : z("", !0);
|
|
3611
3608
|
}
|
|
3612
|
-
}),
|
|
3609
|
+
}), Un = { 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" }, zn = { class: "cl-hidden lg:cl-table-row" }, Ln = ["onClick"], jn = { class: "cl-flex cl-justify-end cl-w-full lg:cl-hidden" }, Bn = { class: "cl-col-span-2 lg:cl-hidden" }, Fn = ["onClick"], Pn = { class: "cl-font-normal cl-mr-1" }, Hn = /* @__PURE__ */ F({
|
|
3613
3610
|
__name: "cl-ui-grid-header",
|
|
3614
3611
|
props: {
|
|
3615
3612
|
request: {},
|
|
@@ -3647,8 +3644,8 @@ const vn = {
|
|
|
3647
3644
|
], i.pageNumber = 1, a.value = i;
|
|
3648
3645
|
}
|
|
3649
3646
|
}
|
|
3650
|
-
return (r, i) => (p(), b("thead",
|
|
3651
|
-
f("tr",
|
|
3647
|
+
return (r, i) => (p(), b("thead", Un, [
|
|
3648
|
+
f("tr", zn, [
|
|
3652
3649
|
(p(!0), b(Y, null, re(r.columns, (s, m) => (p(), b("th", {
|
|
3653
3650
|
key: m,
|
|
3654
3651
|
class: L(["cl-text-grey-3 cl-text-sm", {
|
|
@@ -3657,7 +3654,7 @@ const vn = {
|
|
|
3657
3654
|
onClick: (h) => g(Ge)(s) && r.loading === !1 ? c(s.field) : () => {
|
|
3658
3655
|
}
|
|
3659
3656
|
}, [
|
|
3660
|
-
ue(
|
|
3657
|
+
ue(N(s.caption) + " ", 1),
|
|
3661
3658
|
Q(D(g(Z), {
|
|
3662
3659
|
class: "cl-inline-block",
|
|
3663
3660
|
icon: "ph:caret-up"
|
|
@@ -3670,14 +3667,14 @@ const vn = {
|
|
|
3670
3667
|
}, null, 512), [
|
|
3671
3668
|
[X, d(s, !1)]
|
|
3672
3669
|
])
|
|
3673
|
-
], 10,
|
|
3670
|
+
], 10, Ln))), 128))
|
|
3674
3671
|
]),
|
|
3675
3672
|
f("tr", {
|
|
3676
3673
|
class: L(["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", {
|
|
3677
3674
|
"cl-hidden lg:cl-table-row": !r.filterPanelOpen
|
|
3678
3675
|
}])
|
|
3679
3676
|
}, [
|
|
3680
|
-
f("div",
|
|
3677
|
+
f("div", jn, [
|
|
3681
3678
|
D(g(Z), {
|
|
3682
3679
|
class: "cl-text-grey-4 hover:cl-cursor-pointer hover:cl-text-link-default",
|
|
3683
3680
|
icon: "ph:x",
|
|
@@ -3691,13 +3688,13 @@ const vn = {
|
|
|
3691
3688
|
"cl-hidden lg:cl-table-cell": !g(nl)(s)
|
|
3692
3689
|
}])
|
|
3693
3690
|
}, [
|
|
3694
|
-
f("div",
|
|
3691
|
+
f("div", Bn, N(s.caption), 1),
|
|
3695
3692
|
g(Ge)(s) ? (p(), b("div", {
|
|
3696
3693
|
key: 0,
|
|
3697
3694
|
class: "cl-col-span-2 cl-gap-1 cl-span lg:cl-hidden",
|
|
3698
3695
|
onClick: (h) => r.loading === !1 ? c(s.field) : void 0
|
|
3699
3696
|
}, [
|
|
3700
|
-
f("span",
|
|
3697
|
+
f("span", Pn, N(g(n)("grid.sortBy")), 1),
|
|
3701
3698
|
d(s, !0) ? (p(), P(g(Z), {
|
|
3702
3699
|
key: 0,
|
|
3703
3700
|
class: "cl-cursor-pointer cl-inline-block",
|
|
@@ -3711,8 +3708,8 @@ const vn = {
|
|
|
3711
3708
|
class: "cl-cursor-pointer cl-inline-block",
|
|
3712
3709
|
icon: "ph:minus"
|
|
3713
3710
|
}))
|
|
3714
|
-
], 8,
|
|
3715
|
-
D(
|
|
3711
|
+
], 8, Fn)) : z("", !0),
|
|
3712
|
+
D(Mn, {
|
|
3716
3713
|
class: "cl-col-span-4",
|
|
3717
3714
|
loading: r.loading,
|
|
3718
3715
|
filter: a.value.filters.filter((h) => h.filterOnColumn === s.field),
|
|
@@ -3726,7 +3723,7 @@ const vn = {
|
|
|
3726
3723
|
], 2)
|
|
3727
3724
|
]));
|
|
3728
3725
|
}
|
|
3729
|
-
}),
|
|
3726
|
+
}), Wn = { class: "cl-flex cl-mb-2" }, Zn = { class: "cl-basis-full cl-grow" }, Gn = /* @__PURE__ */ f("span", null, null, -1), Kn = /* @__PURE__ */ F({
|
|
3730
3727
|
__name: "cl-ui-grid-search",
|
|
3731
3728
|
props: /* @__PURE__ */ ge({
|
|
3732
3729
|
columns: {},
|
|
@@ -3760,8 +3757,8 @@ const vn = {
|
|
|
3760
3757
|
return (u, r) => {
|
|
3761
3758
|
const i = De("icon");
|
|
3762
3759
|
return M(u.$slots, "search", de(fe({ searchValue: e.value, performSearch: d })), () => [
|
|
3763
|
-
f("div",
|
|
3764
|
-
f("div",
|
|
3760
|
+
f("div", Wn, [
|
|
3761
|
+
f("div", Zn, [
|
|
3765
3762
|
D(Ee, {
|
|
3766
3763
|
modelValue: e.value,
|
|
3767
3764
|
"onUpdate:modelValue": r[0] || (r[0] = (s) => e.value = s),
|
|
@@ -3772,7 +3769,7 @@ const vn = {
|
|
|
3772
3769
|
onBlur: r[2] || (r[2] = (s) => d(e.value))
|
|
3773
3770
|
}, {
|
|
3774
3771
|
default: R(() => [
|
|
3775
|
-
|
|
3772
|
+
Gn
|
|
3776
3773
|
]),
|
|
3777
3774
|
_: 1
|
|
3778
3775
|
}, 8, ["modelValue", "placeholder"])
|
|
@@ -3786,7 +3783,7 @@ const vn = {
|
|
|
3786
3783
|
]);
|
|
3787
3784
|
};
|
|
3788
3785
|
}
|
|
3789
|
-
}),
|
|
3786
|
+
}), Qn = { class: "cl-fixed cl-flex cl-h-full cl-justify-end cl-right-0 cl-shadow-lg cl-top-0 cl-z-40" }, xn = { 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" }, Yn = { class: "cl-mb-4 cl-text-2xl cl-text-off-white" }, _n = { class: "cl-border-grey-3 cl-border-t cl-flex cl-flex-wrap cl-text-sm cl-w-full" }, Jn = { class: "cl-border-b cl-border-grey-2 cl-flex cl-py-2 cl-text-sm cl-w-full" }, Xn = { class: "cl-flex-1 cl-py-2" }, es = { class: "cl-py-2 cl-w-1/4" }, ls = { class: "cl-py-2 cl-w-1/5" }, ts = { class: "cl-flex-1 cl-py-2" }, os = { class: "cl-py-2 cl-w-1/4" }, as = { class: "cl-py-2 cl-text-off-white cl-w-1/5" }, ns = { key: 1 }, ss = /* @__PURE__ */ F({
|
|
3790
3787
|
inheritAttrs: !1,
|
|
3791
3788
|
__name: "cl-ui-grid-view-manager",
|
|
3792
3789
|
props: {
|
|
@@ -3795,7 +3792,7 @@ const vn = {
|
|
|
3795
3792
|
},
|
|
3796
3793
|
emits: ["update:columns"],
|
|
3797
3794
|
setup(t, { emit: o }) {
|
|
3798
|
-
const l = t, e = o, { t: n } = se(), a =
|
|
3795
|
+
const l = t, e = o, { t: n } = se(), a = I(!1);
|
|
3799
3796
|
function d(r, i, s) {
|
|
3800
3797
|
s < r.length && s >= 0 && r.splice(s, 0, r.splice(i, 1)[0]);
|
|
3801
3798
|
}
|
|
@@ -3815,40 +3812,40 @@ const vn = {
|
|
|
3815
3812
|
onClick: i[0] || (i[0] = ee((s) => a.value = !0, ["prevent"]))
|
|
3816
3813
|
}), {
|
|
3817
3814
|
default: R(() => [
|
|
3818
|
-
ue(
|
|
3815
|
+
ue(N(g(n)("grid.manageView")), 1)
|
|
3819
3816
|
]),
|
|
3820
3817
|
_: 1
|
|
3821
3818
|
}, 16, ["disabled"]),
|
|
3822
3819
|
(p(), P(tl, { to: "body" }, [
|
|
3823
3820
|
D(Ce, { name: "slide-left" }, {
|
|
3824
3821
|
default: R(() => [
|
|
3825
|
-
Q(f("div",
|
|
3826
|
-
f("div",
|
|
3822
|
+
Q(f("div", Qn, [
|
|
3823
|
+
f("div", xn, [
|
|
3827
3824
|
D(g(Z), {
|
|
3828
3825
|
class: "cl-absolute cl-cursor-pointer cl-right-3 cl-text-off-white cl-top-3",
|
|
3829
3826
|
icon: "ph:x",
|
|
3830
3827
|
size: 16,
|
|
3831
3828
|
onClick: i[1] || (i[1] = (s) => a.value = !1)
|
|
3832
3829
|
}),
|
|
3833
|
-
f("h3",
|
|
3834
|
-
f("ul",
|
|
3835
|
-
f("li",
|
|
3836
|
-
f("strong",
|
|
3837
|
-
f("strong",
|
|
3838
|
-
f("strong",
|
|
3830
|
+
f("h3", Yn, N(g(n)("grid.manageView")), 1),
|
|
3831
|
+
f("ul", _n, [
|
|
3832
|
+
f("li", Jn, [
|
|
3833
|
+
f("strong", Xn, N(g(n)("grid.column")), 1),
|
|
3834
|
+
f("strong", es, N(g(n)("grid.visible")), 1),
|
|
3835
|
+
f("strong", ls, N(g(n)("grid.order")), 1)
|
|
3839
3836
|
]),
|
|
3840
3837
|
(p(!0), b(Y, null, re(r.columns, (s, m) => (p(), b("li", {
|
|
3841
3838
|
key: m,
|
|
3842
3839
|
class: "cl-border-b cl-border-grey-2 cl-flex cl-py-2 cl-text-sm cl-w-full"
|
|
3843
3840
|
}, [
|
|
3844
|
-
f("div",
|
|
3845
|
-
f("div",
|
|
3841
|
+
f("div", ts, N(s.caption), 1),
|
|
3842
|
+
f("div", os, [
|
|
3846
3843
|
D(sl, {
|
|
3847
3844
|
"model-value": s.visible === void 0 || s.visible === !0,
|
|
3848
3845
|
"onUpdate:modelValue": (h) => c(h, s)
|
|
3849
3846
|
}, null, 8, ["model-value", "onUpdate:modelValue"])
|
|
3850
3847
|
]),
|
|
3851
|
-
f("div",
|
|
3848
|
+
f("div", as, [
|
|
3852
3849
|
s.visible === void 0 || s.visible === !0 ? (p(), b(Y, { key: 0 }, [
|
|
3853
3850
|
m !== 0 ? (p(), P(g(Z), {
|
|
3854
3851
|
key: 0,
|
|
@@ -3862,7 +3859,7 @@ const vn = {
|
|
|
3862
3859
|
icon: "ph:arrow-right",
|
|
3863
3860
|
onClick: (h) => u(m, "up")
|
|
3864
3861
|
}, null, 8, ["onClick"])) : z("", !0)
|
|
3865
|
-
], 64)) : (p(), b("em",
|
|
3862
|
+
], 64)) : (p(), b("em", ns, N(g(n)("grid.hidden")), 1))
|
|
3866
3863
|
])
|
|
3867
3864
|
]))), 128))
|
|
3868
3865
|
])
|
|
@@ -3876,7 +3873,7 @@ const vn = {
|
|
|
3876
3873
|
]))
|
|
3877
3874
|
], 64));
|
|
3878
3875
|
}
|
|
3879
|
-
}),
|
|
3876
|
+
}), rs = { class: "cl-relative cl-w-full grid-wrapper lg:cl-min-h-fit" }, is = { class: "cl-absolute cl-flex cl-items-center cl-justify-center cl-min-h-full cl-p-28 cl-pt-0 cl-w-full" }, cs = { class: "cl-overflow-x-auto cl-overscroll-x-none cl-pt-1" }, us = { class: "cl-hidden lg:cl-table-column-group" }, ds = /* @__PURE__ */ F({
|
|
3880
3877
|
__name: "cl-ui-grid",
|
|
3881
3878
|
props: {
|
|
3882
3879
|
columns: {},
|
|
@@ -3891,14 +3888,14 @@ const vn = {
|
|
|
3891
3888
|
emits: ["update:columns", "update:request", "data-request", "row-edit", "row-edit-cancelled", "edit-start", "edit-end", "row-select"],
|
|
3892
3889
|
setup(t, { emit: o }) {
|
|
3893
3890
|
var A;
|
|
3894
|
-
const l = t, e = o, n =
|
|
3895
|
-
|
|
3891
|
+
const l = t, e = o, n = El();
|
|
3892
|
+
bl("cl-ui-grid-id", n.id);
|
|
3896
3893
|
const a = O(() => l.headerDisplayTimezone ?? l.timeZone), d = O(() => l.dateFormatLocale);
|
|
3897
|
-
|
|
3894
|
+
bl(zl, d);
|
|
3898
3895
|
const c = O({
|
|
3899
3896
|
get: () => l.columns,
|
|
3900
3897
|
set: (E) => e("update:columns", E)
|
|
3901
|
-
}), u = O(() => c.value.filter((E) => E.visible ?? !0)), r =
|
|
3898
|
+
}), u = O(() => c.value.filter((E) => E.visible ?? !0)), r = I({});
|
|
3902
3899
|
function i() {
|
|
3903
3900
|
const E = {};
|
|
3904
3901
|
window.innerWidth >= 1024 && c.value.forEach((y) => {
|
|
@@ -3925,7 +3922,7 @@ const vn = {
|
|
|
3925
3922
|
deep: !0,
|
|
3926
3923
|
immediate: !0
|
|
3927
3924
|
});
|
|
3928
|
-
const T = O(() => l.data), $ =
|
|
3925
|
+
const T = O(() => l.data), $ = I(!1), q = I(!1);
|
|
3929
3926
|
oe($, () => {
|
|
3930
3927
|
$.value ? e("edit-start") : Me(() => e("edit-end"));
|
|
3931
3928
|
});
|
|
@@ -3948,9 +3945,9 @@ const vn = {
|
|
|
3948
3945
|
filters: y
|
|
3949
3946
|
};
|
|
3950
3947
|
}
|
|
3951
|
-
}), B =
|
|
3952
|
-
return (E, y) => (p(), b("div",
|
|
3953
|
-
x.value.length > 0 ? (p(), P(
|
|
3948
|
+
}), B = I(((A = l.request.filters.find((E) => E.filterMethod === "andcontains" || E.filterOperation === J.AND_CONTAINS)) == null ? void 0 : A.filterValue) ?? ""), x = O(() => l.columns.filter((E) => (E.type === "string" || E.type === "slot" && E.slotType === "string") && E.searchable));
|
|
3949
|
+
return (E, y) => (p(), b("div", rs, [
|
|
3950
|
+
x.value.length > 0 ? (p(), P(Kn, {
|
|
3954
3951
|
key: 0,
|
|
3955
3952
|
"search-value": B.value,
|
|
3956
3953
|
"onUpdate:searchValue": y[0] || (y[0] = (v) => B.value = v),
|
|
@@ -3965,7 +3962,7 @@ const vn = {
|
|
|
3965
3962
|
}, 8, ["search-value", "request", "columns"])) : z("", !0),
|
|
3966
3963
|
D(Ce, { name: "fade" }, {
|
|
3967
3964
|
default: R(() => [
|
|
3968
|
-
Q(f("div",
|
|
3965
|
+
Q(f("div", is, [
|
|
3969
3966
|
D(_e, { class: "after:!cl-h-20 after:!cl-w-20 cl-h-20 cl-w-20" })
|
|
3970
3967
|
], 512), [
|
|
3971
3968
|
[X, E.loading]
|
|
@@ -3988,7 +3985,7 @@ const vn = {
|
|
|
3988
3985
|
M(E.$slots, "additional-grid-actions", de(fe(v)))
|
|
3989
3986
|
]),
|
|
3990
3987
|
"view-manager": R(() => [
|
|
3991
|
-
D(
|
|
3988
|
+
D(ss, {
|
|
3992
3989
|
columns: c.value,
|
|
3993
3990
|
"onUpdate:columns": y[2] || (y[2] = (v) => c.value = v),
|
|
3994
3991
|
loading: E.loading
|
|
@@ -3996,20 +3993,20 @@ const vn = {
|
|
|
3996
3993
|
]),
|
|
3997
3994
|
_: 3
|
|
3998
3995
|
}, 8, ["edit-mode", "filter-panel-open", "columns", "options", "request", "loading"]),
|
|
3999
|
-
f("div",
|
|
3996
|
+
f("div", cs, [
|
|
4000
3997
|
f("table", {
|
|
4001
3998
|
class: L(["cl-delay-75 cl-min-h-[276px] cl-overflow-x-auto cl-overscroll-x-none cl-text-left cl-transition-opacity cl-w-full", {
|
|
4002
3999
|
"cl-opacity-40 cl-pointer-events-none": E.loading
|
|
4003
4000
|
}])
|
|
4004
4001
|
}, [
|
|
4005
|
-
f("colgroup",
|
|
4002
|
+
f("colgroup", us, [
|
|
4006
4003
|
(p(!0), b(Y, null, re(u.value, (v, C) => (p(), b("col", {
|
|
4007
4004
|
key: C,
|
|
4008
4005
|
style: tt(s(v.name)),
|
|
4009
4006
|
span: 1
|
|
4010
4007
|
}, null, 4))), 128))
|
|
4011
4008
|
]),
|
|
4012
|
-
D(
|
|
4009
|
+
D(Hn, {
|
|
4013
4010
|
request: S.value,
|
|
4014
4011
|
"onUpdate:request": y[5] || (y[5] = (v) => S.value = v),
|
|
4015
4012
|
"filter-panel-open": q.value,
|
|
@@ -4020,7 +4017,7 @@ const vn = {
|
|
|
4020
4017
|
"time-zone": E.timeZone,
|
|
4021
4018
|
"header-display-timezone": a.value
|
|
4022
4019
|
}, null, 8, ["request", "filter-panel-open", "columns", "options", "loading", "time-zone", "header-display-timezone"]),
|
|
4023
|
-
D(
|
|
4020
|
+
D(ma, {
|
|
4024
4021
|
columns: u.value,
|
|
4025
4022
|
request: m.value,
|
|
4026
4023
|
data: T.value,
|
|
@@ -4033,7 +4030,7 @@ const vn = {
|
|
|
4033
4030
|
onRowEdit: y[7] || (y[7] = (v) => E.$emit("row-edit", v)),
|
|
4034
4031
|
onRowEditCancelled: y[8] || (y[8] = (v) => E.$emit("row-edit-cancelled", v)),
|
|
4035
4032
|
onRowSelect: y[9] || (y[9] = (v) => E.$emit("row-select", v))
|
|
4036
|
-
},
|
|
4033
|
+
}, Ne({ _: 2 }, [
|
|
4037
4034
|
re(E.$slots, (v, C) => ({
|
|
4038
4035
|
name: C,
|
|
4039
4036
|
fn: R((_) => [
|
|
@@ -4043,7 +4040,7 @@ const vn = {
|
|
|
4043
4040
|
]), 1032, ["columns", "request", "data", "time-zone", "loading", "search-value", "options", "edit-mode"])
|
|
4044
4041
|
], 2)
|
|
4045
4042
|
]),
|
|
4046
|
-
D(
|
|
4043
|
+
D(Ua, {
|
|
4047
4044
|
request: m.value,
|
|
4048
4045
|
loading: E.loading,
|
|
4049
4046
|
"show-unsaved-changes-warning": $.value && U.value.disableUnsavedChangesWarning === !1,
|
|
@@ -4054,17 +4051,17 @@ const vn = {
|
|
|
4054
4051
|
}, null, 8, ["request", "loading", "show-unsaved-changes-warning", "data"])
|
|
4055
4052
|
]));
|
|
4056
4053
|
}
|
|
4057
|
-
}),
|
|
4054
|
+
}), ps = { 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" }, fs = /* @__PURE__ */ F({
|
|
4058
4055
|
__name: "cl-ui-header",
|
|
4059
4056
|
props: {
|
|
4060
4057
|
isOpen: { type: Boolean }
|
|
4061
4058
|
},
|
|
4062
4059
|
emits: ["open-click"],
|
|
4063
4060
|
setup(t, { emit: o }) {
|
|
4064
|
-
const l = t, e = o, n =
|
|
4061
|
+
const l = t, e = o, n = I();
|
|
4065
4062
|
return al(n, () => {
|
|
4066
4063
|
(l.isOpen ?? !1) && e("open-click");
|
|
4067
|
-
}), (a, d) => (p(), b("header",
|
|
4064
|
+
}), (a, d) => (p(), b("header", ps, [
|
|
4068
4065
|
M(a.$slots, "logo"),
|
|
4069
4066
|
f("div", {
|
|
4070
4067
|
ref_key: "headerMenuElement",
|
|
@@ -4077,15 +4074,15 @@ const vn = {
|
|
|
4077
4074
|
], 512)
|
|
4078
4075
|
]));
|
|
4079
4076
|
}
|
|
4080
|
-
}),
|
|
4077
|
+
}), ms = { 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]" }, gs = ["src"], vs = {
|
|
4081
4078
|
key: 0,
|
|
4082
4079
|
id: "cl-ui-header-menu-username",
|
|
4083
4080
|
class: "cl-text-ellipsis cl-whitespace-nowrap"
|
|
4084
|
-
},
|
|
4081
|
+
}, bs = {
|
|
4085
4082
|
key: 1,
|
|
4086
4083
|
id: "cl-ui-header-menu-group",
|
|
4087
4084
|
class: "cl-text-ellipsis cl-text-xs cl-whitespace-nowrap"
|
|
4088
|
-
},
|
|
4085
|
+
}, hs = { 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" }, ys = { class: "cl-absolute cl-bg-white cl-right-0 cl-shadow-2xl cl-top-20 cl-w-full cl-z-20" }, ws = /* @__PURE__ */ F({
|
|
4089
4086
|
__name: "cl-ui-header-menu",
|
|
4090
4087
|
props: {
|
|
4091
4088
|
username: { default: "" },
|
|
@@ -4101,12 +4098,12 @@ const vn = {
|
|
|
4101
4098
|
"cl-bg-blue-light": o.colour === "secondary"
|
|
4102
4099
|
}])
|
|
4103
4100
|
}, [
|
|
4104
|
-
f("div",
|
|
4101
|
+
f("div", ms, [
|
|
4105
4102
|
o.image ? (p(), b("img", {
|
|
4106
4103
|
key: 0,
|
|
4107
4104
|
src: o.image,
|
|
4108
4105
|
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"
|
|
4109
|
-
}, null, 8,
|
|
4106
|
+
}, null, 8, gs)) : (p(), P(g(Z), {
|
|
4110
4107
|
key: 1,
|
|
4111
4108
|
class: "cl-hidden cl-m-4 cl-text-white md:cl-block",
|
|
4112
4109
|
icon: "ph:user-circle",
|
|
@@ -4119,10 +4116,10 @@ const vn = {
|
|
|
4119
4116
|
"cl-text-white": o.colour === "secondary"
|
|
4120
4117
|
}])
|
|
4121
4118
|
}, [
|
|
4122
|
-
o.username ? (p(), b("div",
|
|
4123
|
-
o.group ? (p(), b("div",
|
|
4119
|
+
o.username ? (p(), b("div", vs, N(o.username), 1)) : z("", !0),
|
|
4120
|
+
o.group ? (p(), b("div", bs, N(o.group), 1)) : z("", !0)
|
|
4124
4121
|
], 2),
|
|
4125
|
-
f("div",
|
|
4122
|
+
f("div", hs, [
|
|
4126
4123
|
D(g(Z), {
|
|
4127
4124
|
class: L(["cl-transform-gpu cl-transition-transform", {
|
|
4128
4125
|
"cl-rotate-180": o.isOpen,
|
|
@@ -4135,7 +4132,7 @@ const vn = {
|
|
|
4135
4132
|
]),
|
|
4136
4133
|
D(Ce, { name: "fade" }, {
|
|
4137
4134
|
default: R(() => [
|
|
4138
|
-
Q(f("div",
|
|
4135
|
+
Q(f("div", ys, [
|
|
4139
4136
|
M(o.$slots, "default")
|
|
4140
4137
|
], 512), [
|
|
4141
4138
|
[X, o.isOpen]
|
|
@@ -4145,10 +4142,10 @@ const vn = {
|
|
|
4145
4142
|
})
|
|
4146
4143
|
], 2));
|
|
4147
4144
|
}
|
|
4148
|
-
}),
|
|
4145
|
+
}), ks = [
|
|
4149
4146
|
"default",
|
|
4150
4147
|
"secondary"
|
|
4151
|
-
],
|
|
4148
|
+
], $s = /* @__PURE__ */ F({
|
|
4152
4149
|
inheritAttrs: !1,
|
|
4153
4150
|
__name: "cl-ui-calendar",
|
|
4154
4151
|
props: {
|
|
@@ -4195,7 +4192,7 @@ const vn = {
|
|
|
4195
4192
|
}
|
|
4196
4193
|
n("update:date", B);
|
|
4197
4194
|
}
|
|
4198
|
-
}), { locale: c } = se(), u = O(() => e.dateFormatLocale ?? c.value), r = O(() =>
|
|
4195
|
+
}), { locale: c } = se(), u = O(() => e.dateFormatLocale ?? c.value), r = O(() => dl(e.disabled, "auto")), i = O(() => Bl(u.value, e.type)), s = I(null), m = O(() => pl(e.date, e.initialDate, a.value, e.type)), h = I(null), k = I();
|
|
4199
4196
|
function T(S) {
|
|
4200
4197
|
const B = Fl(S, a.value);
|
|
4201
4198
|
d.value = B, h.value = S, k.value.move(B.start), k.value.hidePopover();
|
|
@@ -4206,7 +4203,7 @@ const vn = {
|
|
|
4206
4203
|
var S;
|
|
4207
4204
|
(S = s.value) == null || S.focus();
|
|
4208
4205
|
}
|
|
4209
|
-
}), (S, B) => S.type === "time" ? (p(), P(g(
|
|
4206
|
+
}), (S, B) => S.type === "time" ? (p(), P(g(Ie), {
|
|
4210
4207
|
key: 0,
|
|
4211
4208
|
modelValue: d.value,
|
|
4212
4209
|
"onUpdate:modelValue": B[1] || (B[1] = (x) => d.value = x),
|
|
@@ -4236,7 +4233,7 @@ const vn = {
|
|
|
4236
4233
|
}), null, 16, ["date", "events", "type", "placeholder", "required", "disabled"])
|
|
4237
4234
|
]),
|
|
4238
4235
|
_: 1
|
|
4239
|
-
}, 8, ["modelValue", "locale", "is24hr", "mode", "is-required", "masks", "popover"])) : S.type === "dateRange" ? (p(), P(g(
|
|
4236
|
+
}, 8, ["modelValue", "locale", "is24hr", "mode", "is-required", "masks", "popover"])) : S.type === "dateRange" ? (p(), P(g(Ie), {
|
|
4240
4237
|
key: 1,
|
|
4241
4238
|
ref_key: "calendar",
|
|
4242
4239
|
ref: k,
|
|
@@ -4282,7 +4279,7 @@ const vn = {
|
|
|
4282
4279
|
}, null, 8, ["scope", "selected-quick-date", "current-date-range"])) : z("", !0)
|
|
4283
4280
|
]),
|
|
4284
4281
|
_: 1
|
|
4285
|
-
}, 8, ["modelValue", "locale", "is24hr", "timezone", "columns", "popover", "min-date", "max-date", "initial-page"])) : (p(), P(g(
|
|
4282
|
+
}, 8, ["modelValue", "locale", "is24hr", "timezone", "columns", "popover", "min-date", "max-date", "initial-page"])) : (p(), P(g(Ie), {
|
|
4286
4283
|
key: 2,
|
|
4287
4284
|
modelValue: d.value,
|
|
4288
4285
|
"onUpdate:modelValue": B[7] || (B[7] = (x) => d.value = x),
|
|
@@ -4321,7 +4318,7 @@ const vn = {
|
|
|
4321
4318
|
}), Ue = [
|
|
4322
4319
|
...Ql,
|
|
4323
4320
|
"dateRange"
|
|
4324
|
-
],
|
|
4321
|
+
], Cs = ["disabled", "step", "placeholder", "name"], Ts = /* @__PURE__ */ F({
|
|
4325
4322
|
__name: "cl-ui-currency-input",
|
|
4326
4323
|
props: {
|
|
4327
4324
|
modelValue: { type: [String, Object, Number, Boolean, null] },
|
|
@@ -4391,12 +4388,12 @@ const vn = {
|
|
|
4391
4388
|
onChange: k,
|
|
4392
4389
|
onBlur: m,
|
|
4393
4390
|
onFocus: $[0] || ($[0] = (q) => n("focus"))
|
|
4394
|
-
}, null, 42,
|
|
4391
|
+
}, null, 42, Cs));
|
|
4395
4392
|
}
|
|
4396
|
-
}),
|
|
4393
|
+
}), qs = (t) => (ot("data-v-5cb4ccea"), t = t(), at(), t), Os = { class: "cl-flex cl-items-start" }, Ss = { class: "cl-w-full" }, Ds = /* @__PURE__ */ qs(() => /* @__PURE__ */ f("span", null, null, -1)), Es = ["min", "max", "step", "disabled"], As = { class: "cl-bg-transparent cl-text-center cl-text-sm cl-w-full" }, Vs = { class: "cl-bg-transparent cl-text-sm" }, Ns = {
|
|
4397
4394
|
key: 1,
|
|
4398
4395
|
class: "cl-emphasis-danger cl-text-sm cl-w-full"
|
|
4399
|
-
},
|
|
4396
|
+
}, Is = /* @__PURE__ */ F({
|
|
4400
4397
|
inheritAttrs: !1,
|
|
4401
4398
|
__name: "cl-ui-slider",
|
|
4402
4399
|
props: /* @__PURE__ */ ge({
|
|
@@ -4411,28 +4408,28 @@ const vn = {
|
|
|
4411
4408
|
}),
|
|
4412
4409
|
emits: ["update:value"],
|
|
4413
4410
|
setup(t, { expose: o }) {
|
|
4414
|
-
|
|
4411
|
+
Al((r) => ({
|
|
4415
4412
|
"59055b28": d.value
|
|
4416
4413
|
}));
|
|
4417
|
-
const l = t, e = Ae(t, "value"), { t: n } = se(), a =
|
|
4414
|
+
const l = t, e = Ae(t, "value"), { t: n } = se(), a = I(), d = O(() => {
|
|
4418
4415
|
let r = (e.value - l.min) / (l.max - l.min) * 100;
|
|
4419
4416
|
return r < 35 && r > 0 ? r < 20 ? r += 0.5 : r += 0.25 : r > 65 && r < 100 && (r > 80 ? r -= 0.5 : r -= 0.25), `${r}%`;
|
|
4420
|
-
}), c = O(() => l.min <= l.max && l.step > 0), u =
|
|
4417
|
+
}), c = O(() => l.min <= l.max && l.step > 0), u = I(!1);
|
|
4421
4418
|
return o({
|
|
4422
4419
|
focus() {
|
|
4423
4420
|
var r;
|
|
4424
4421
|
(r = a.value) == null || r.focus();
|
|
4425
4422
|
}
|
|
4426
4423
|
}), (r, i) => c.value ? (p(), b("div", de(te({ key: 0 }, r.$attrs)), [
|
|
4427
|
-
f("div",
|
|
4424
|
+
f("div", Os, [
|
|
4428
4425
|
f("span", {
|
|
4429
4426
|
class: L(["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", {
|
|
4430
4427
|
"cl-bg-white cl-cursor-pointer hover:cl-border-grey-1": !r.disabled,
|
|
4431
4428
|
"cl-bg-grey-0": r.disabled
|
|
4432
4429
|
}]),
|
|
4433
4430
|
onClick: i[0] || (i[0] = (s) => e.value = r.disabled ? e.value : r.min)
|
|
4434
|
-
},
|
|
4435
|
-
f("div",
|
|
4431
|
+
}, N(Number.isInteger(r.min) ? g(Oe)(r.min) : g(Se)(r.min, g(le).DECIMAL)), 3),
|
|
4432
|
+
f("div", Ss, [
|
|
4436
4433
|
u.value ? (p(), P(Pe, {
|
|
4437
4434
|
key: 0,
|
|
4438
4435
|
ref_key: "sliderRef",
|
|
@@ -4449,7 +4446,7 @@ const vn = {
|
|
|
4449
4446
|
placeholder: r.placeholder
|
|
4450
4447
|
}, {
|
|
4451
4448
|
default: R(() => [
|
|
4452
|
-
|
|
4449
|
+
Ds
|
|
4453
4450
|
]),
|
|
4454
4451
|
_: 1
|
|
4455
4452
|
}, 8, ["modelValue", "format", "precision", "min", "max", "step", "disabled", "placeholder"])) : (p(), b(Y, { key: 1 }, [
|
|
@@ -4463,15 +4460,15 @@ const vn = {
|
|
|
4463
4460
|
max: r.max,
|
|
4464
4461
|
step: r.step,
|
|
4465
4462
|
disabled: r.disabled
|
|
4466
|
-
}, null, 8,
|
|
4463
|
+
}, null, 8, Es), [
|
|
4467
4464
|
[
|
|
4468
|
-
|
|
4465
|
+
Vl,
|
|
4469
4466
|
e.value,
|
|
4470
4467
|
void 0,
|
|
4471
4468
|
{ number: !0 }
|
|
4472
4469
|
]
|
|
4473
4470
|
]),
|
|
4474
|
-
f("div",
|
|
4471
|
+
f("div", As, N(Number.isInteger(e.value) ? g(Oe)(e.value) : g(Se)(e.value, g(le).DECIMAL)), 1)
|
|
4475
4472
|
], 64))
|
|
4476
4473
|
]),
|
|
4477
4474
|
f("span", {
|
|
@@ -4480,8 +4477,8 @@ const vn = {
|
|
|
4480
4477
|
"cl-bg-grey-0": r.disabled
|
|
4481
4478
|
}]),
|
|
4482
4479
|
onClick: i[3] || (i[3] = (s) => e.value = r.disabled ? e.value : r.max)
|
|
4483
|
-
},
|
|
4484
|
-
f("div",
|
|
4480
|
+
}, N(Number.isInteger(r.max) ? g(Oe)(r.max) : g(Se)(r.max, g(le).DECIMAL)), 3),
|
|
4481
|
+
f("div", Vs, [
|
|
4485
4482
|
f("div", {
|
|
4486
4483
|
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",
|
|
4487
4484
|
onClick: i[4] || (i[4] = (s) => u.value = !u.value)
|
|
@@ -4490,10 +4487,10 @@ const vn = {
|
|
|
4490
4487
|
])
|
|
4491
4488
|
])
|
|
4492
4489
|
])
|
|
4493
|
-
], 16)) : (p(), b("div", Ns,
|
|
4490
|
+
], 16)) : (p(), b("div", Ns, N(g(n)("slider.invalidProps")), 1));
|
|
4494
4491
|
}
|
|
4495
|
-
}),
|
|
4496
|
-
function
|
|
4492
|
+
}), Rs = /* @__PURE__ */ he(Is, [["__scopeId", "data-v-5cb4ccea"]]);
|
|
4493
|
+
function ql(t) {
|
|
4497
4494
|
let o = !1;
|
|
4498
4495
|
switch (t) {
|
|
4499
4496
|
case "email":
|
|
@@ -4510,10 +4507,10 @@ function Tl(t) {
|
|
|
4510
4507
|
}
|
|
4511
4508
|
return o;
|
|
4512
4509
|
}
|
|
4513
|
-
function
|
|
4510
|
+
function Ms(t) {
|
|
4514
4511
|
return t === "number" || t === "range";
|
|
4515
4512
|
}
|
|
4516
|
-
function
|
|
4513
|
+
function Ol(t) {
|
|
4517
4514
|
let o = !1;
|
|
4518
4515
|
switch (t) {
|
|
4519
4516
|
case "date":
|
|
@@ -4531,7 +4528,7 @@ function ql(t) {
|
|
|
4531
4528
|
function ze(t) {
|
|
4532
4529
|
return t === "button" || t === "submit" || t === "reset";
|
|
4533
4530
|
}
|
|
4534
|
-
function
|
|
4531
|
+
function Us(t) {
|
|
4535
4532
|
let o;
|
|
4536
4533
|
switch (t) {
|
|
4537
4534
|
case "datetime":
|
|
@@ -4550,29 +4547,29 @@ function zs(t) {
|
|
|
4550
4547
|
}
|
|
4551
4548
|
return o;
|
|
4552
4549
|
}
|
|
4553
|
-
function
|
|
4550
|
+
function Sl(t, o) {
|
|
4554
4551
|
const l = t.target;
|
|
4555
|
-
return
|
|
4552
|
+
return Ms(o) ? l.valueAsNumber : ze(o) ? l.checked : l.value;
|
|
4556
4553
|
}
|
|
4557
|
-
const
|
|
4554
|
+
const zs = { class: "cl-flex cl-justify-between" }, Ls = { class: "cl-w-full" }, js = {
|
|
4558
4555
|
key: 0,
|
|
4559
4556
|
class: "cl-block cl-left-auto cl-relative cl-text-danger-default"
|
|
4560
|
-
},
|
|
4557
|
+
}, Bs = {
|
|
4561
4558
|
key: 1,
|
|
4562
4559
|
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"
|
|
4563
|
-
},
|
|
4560
|
+
}, Fs = {
|
|
4564
4561
|
key: 0,
|
|
4565
4562
|
class: "cl-relative"
|
|
4566
|
-
},
|
|
4563
|
+
}, Ps = ["type", "disabled", "min", "max", "minlength", "maxlength", "step", "placeholder", "name", "autocomplete"], Hs = { key: 0 }, Ws = { key: 1 }, Zs = {
|
|
4567
4564
|
key: 3,
|
|
4568
4565
|
class: "cl-max-h-[2.75rem] cl-pb-0.5"
|
|
4569
|
-
},
|
|
4566
|
+
}, Gs = {
|
|
4570
4567
|
key: 0,
|
|
4571
4568
|
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"
|
|
4572
|
-
},
|
|
4569
|
+
}, Ks = {
|
|
4573
4570
|
key: 1,
|
|
4574
4571
|
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"
|
|
4575
|
-
},
|
|
4572
|
+
}, Qs = /* @__PURE__ */ F({
|
|
4576
4573
|
inheritAttrs: !1,
|
|
4577
4574
|
__name: "cl-ui-input",
|
|
4578
4575
|
props: {
|
|
@@ -4608,17 +4605,17 @@ const Ls = { class: "cl-flex cl-justify-between" }, js = { class: "cl-w-full" },
|
|
|
4608
4605
|
},
|
|
4609
4606
|
emits: ["update:model-value", "click", "focus", "input", "change", "validated"],
|
|
4610
4607
|
setup(t, { expose: o, emit: l }) {
|
|
4611
|
-
const e = t, n = l, a =
|
|
4608
|
+
const e = t, n = l, a = I(null), d = I(null), c = I(!1), u = I(!1), r = O(() => {
|
|
4612
4609
|
var j;
|
|
4613
4610
|
let w = e.isRequired;
|
|
4614
4611
|
return u.value && ((j = m.value) == null ? void 0 : j.toString().trim()) === "" && e.requiredText.trim() !== "" && (w = !1), !e.hideRequiredAsterisk && w;
|
|
4615
|
-
}), i = O(() => e.placeholderText.trim() !== "" ? e.placeholderText : e.label), s =
|
|
4612
|
+
}), i = O(() => e.placeholderText.trim() !== "" ? e.placeholderText : e.label), s = I(0), m = O({
|
|
4616
4613
|
get: () => e.modelValue,
|
|
4617
4614
|
set: (w) => v(w, !1)
|
|
4618
4615
|
}), h = O({
|
|
4619
4616
|
get: () => e.modelValue,
|
|
4620
4617
|
set: (w) => y(w)
|
|
4621
|
-
}), k = O(() => typeof e.min == "number" ? e.min.toString() : e.min), T = O(() => typeof e.max == "number" ? e.max.toString() : e.max), $ = O(() => typeof e.min == "number" || e.min === null ? e.min : parseFloat(e.min)), q = O(() => typeof e.max == "number" || e.max === null ? e.max : parseFloat(e.max)), U = O(() => e.messageWhenValid.trim() !== "" ? e.messageWhenValid : ""), S =
|
|
4618
|
+
}), k = O(() => typeof e.min == "number" ? e.min.toString() : e.min), T = O(() => typeof e.max == "number" ? e.max.toString() : e.max), $ = O(() => typeof e.min == "number" || e.min === null ? e.min : parseFloat(e.min)), q = O(() => typeof e.max == "number" || e.max === null ? e.max : parseFloat(e.max)), U = O(() => e.messageWhenValid.trim() !== "" ? e.messageWhenValid : ""), S = I(!0), B = I(!0), x = I([]), A = O(() => {
|
|
4622
4619
|
var w, j;
|
|
4623
4620
|
return [
|
|
4624
4621
|
...((w = x.value) == null ? void 0 : w.filter((G) => ((G == null ? void 0 : G.length) ?? 0) > 0)) ?? [],
|
|
@@ -4651,9 +4648,9 @@ const Ls = { class: "cl-flex cl-justify-between" }, js = { class: "cl-w-full" },
|
|
|
4651
4648
|
Te(e.customValidationFunction(e.label, w));
|
|
4652
4649
|
})
|
|
4653
4650
|
];
|
|
4654
|
-
return (typeof w == "string" || typeof w == "number") && (G.push(
|
|
4655
|
-
const _l = [...Te.map((We) => We.message)],
|
|
4656
|
-
B.value = !0,
|
|
4651
|
+
return (typeof w == "string" || typeof w == "number") && (G.push(_o(e.min, e.inputType, e.label, w, e.timeZone)), G.push(Jo(e.max, e.inputType, e.label, w, e.timeZone))), e.isRequired && G.push(Xo(e.label, w)), e.inputType === "email" && typeof w == "string" && G.push(ea(e.label, w)), Promise.all(G).then((Te) => {
|
|
4652
|
+
const _l = [...Te.map((We) => We.message)], gl = Te.some((We) => We.message.length > 0 && We.valid === !1) || e.externalErrors.length > 0;
|
|
4653
|
+
B.value = !0, gl ? (x.value = _l, n("validated", !1, w)) : (x.value = [], n("validated", !0, w)), S.value = !gl;
|
|
4657
4654
|
});
|
|
4658
4655
|
}
|
|
4659
4656
|
function _() {
|
|
@@ -4695,7 +4692,7 @@ const Ls = { class: "cl-flex cl-justify-between" }, js = { class: "cl-w-full" },
|
|
|
4695
4692
|
}
|
|
4696
4693
|
async function Ve(w, j) {
|
|
4697
4694
|
if (w) {
|
|
4698
|
-
const G = e.inputType === "currency" ? j ?? 0 :
|
|
4695
|
+
const G = e.inputType === "currency" ? j ?? 0 : Sl(w, e.inputType);
|
|
4699
4696
|
e.validateOn === "change" && await C(G), n("change", w, G);
|
|
4700
4697
|
}
|
|
4701
4698
|
}
|
|
@@ -4728,15 +4725,15 @@ const Ls = { class: "cl-flex cl-justify-between" }, js = { class: "cl-w-full" },
|
|
|
4728
4725
|
onMouseenter: j[13] || (j[13] = (G) => V(!0)),
|
|
4729
4726
|
onMouseleave: j[14] || (j[14] = (G) => V(!1))
|
|
4730
4727
|
}, [
|
|
4731
|
-
f("div",
|
|
4732
|
-
f("div",
|
|
4733
|
-
Q(f("label", { class: "cl-block cl-mb-1 cl-text-grey-4 cl-text-xs cl-tracking-widest" },
|
|
4728
|
+
f("div", zs, [
|
|
4729
|
+
f("div", Ls, [
|
|
4730
|
+
Q(f("label", { class: "cl-block cl-mb-1 cl-text-grey-4 cl-text-xs cl-tracking-widest" }, N(w.label), 513), [
|
|
4734
4731
|
[X, w.showLabel && w.label !== ""]
|
|
4735
4732
|
])
|
|
4736
4733
|
]),
|
|
4737
|
-
r.value ? (p(), b("label",
|
|
4734
|
+
r.value ? (p(), b("label", js, " * ")) : w.isRequired && w.requiredText.length ? (p(), b("label", Bs, N(w.requiredText), 1)) : z("", !0)
|
|
4738
4735
|
]),
|
|
4739
|
-
w.inputType !== "range" && w.inputType !== "currency" && !g(
|
|
4736
|
+
w.inputType !== "range" && w.inputType !== "currency" && !g(Ol)(w.inputType) ? (p(), b("div", Fs, [
|
|
4740
4737
|
Q(f("input", te({
|
|
4741
4738
|
ref_key: "inputElement",
|
|
4742
4739
|
ref: a,
|
|
@@ -4757,8 +4754,8 @@ const Ls = { class: "cl-flex cl-justify-between" }, js = { class: "cl-w-full" },
|
|
|
4757
4754
|
disabled: w.disabled,
|
|
4758
4755
|
min: w.min ?? void 0,
|
|
4759
4756
|
max: w.max ?? void 0,
|
|
4760
|
-
minlength: w.min !== null && g(
|
|
4761
|
-
maxlength: w.max !== null && g(
|
|
4757
|
+
minlength: w.min !== null && g(ql)(w.inputType) ? w.min : void 0,
|
|
4758
|
+
maxlength: w.max !== null && g(ql)(w.inputType) ? w.max : void 0,
|
|
4762
4759
|
step: w.step,
|
|
4763
4760
|
placeholder: i.value,
|
|
4764
4761
|
name: w.group,
|
|
@@ -4768,18 +4765,18 @@ const Ls = { class: "cl-flex cl-justify-between" }, js = { class: "cl-w-full" },
|
|
|
4768
4765
|
onBlur: ee(He, ["self"]),
|
|
4769
4766
|
onMousewheelPassive: ae,
|
|
4770
4767
|
onInput: j[3] || (j[3] = (G) => {
|
|
4771
|
-
n("input", G, g(
|
|
4768
|
+
n("input", G, g(Sl)(G, w.inputType));
|
|
4772
4769
|
}),
|
|
4773
4770
|
onChange: Ve
|
|
4774
|
-
}), null, 16,
|
|
4775
|
-
[
|
|
4771
|
+
}), null, 16, Ps), [
|
|
4772
|
+
[Dl, m.value]
|
|
4776
4773
|
]),
|
|
4777
4774
|
D(Ce, {
|
|
4778
4775
|
name: "fade",
|
|
4779
4776
|
duration: 300
|
|
4780
4777
|
}, {
|
|
4781
4778
|
default: R(() => [
|
|
4782
|
-
w.inputType === "number" && !w.disabled && w.showArrows ? Q((p(), b("div",
|
|
4779
|
+
w.inputType === "number" && !w.disabled && w.showArrows ? Q((p(), b("div", Hs, [
|
|
4783
4780
|
D(g(Z), {
|
|
4784
4781
|
icon: "ph:caret-up-bold",
|
|
4785
4782
|
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",
|
|
@@ -4800,8 +4797,8 @@ const Ls = { class: "cl-flex cl-justify-between" }, js = { class: "cl-w-full" },
|
|
|
4800
4797
|
]),
|
|
4801
4798
|
_: 1
|
|
4802
4799
|
})
|
|
4803
|
-
])) : w.inputType === "currency" ? (p(), b("div",
|
|
4804
|
-
D(
|
|
4800
|
+
])) : w.inputType === "currency" ? (p(), b("div", Ws, [
|
|
4801
|
+
D(Ts, te({
|
|
4805
4802
|
ref_key: "currencyInputRef",
|
|
4806
4803
|
ref: d,
|
|
4807
4804
|
modelValue: m.value,
|
|
@@ -4820,7 +4817,7 @@ const Ls = { class: "cl-flex cl-justify-between" }, js = { class: "cl-w-full" },
|
|
|
4820
4817
|
onFocus: j[8] || (j[8] = (G) => n("focus")),
|
|
4821
4818
|
onBlur: H
|
|
4822
4819
|
}), null, 16, ["modelValue", "disabled", "placeholder", "is-valid", "highlight-when-valid", "input-specific-classes", "group", "step", "currency-options"])
|
|
4823
|
-
])) : g(
|
|
4820
|
+
])) : g(Ol)(w.inputType) ? (p(), P(g($s), te({ key: 2 }, w.$attrs, {
|
|
4824
4821
|
ref_key: "inputElement",
|
|
4825
4822
|
ref: a,
|
|
4826
4823
|
date: h.value,
|
|
@@ -4832,7 +4829,7 @@ const Ls = { class: "cl-flex cl-justify-between" }, js = { class: "cl-w-full" },
|
|
|
4832
4829
|
}],
|
|
4833
4830
|
disabled: w.disabled,
|
|
4834
4831
|
required: w.isRequired,
|
|
4835
|
-
type: g(
|
|
4832
|
+
type: g(Us)(w.inputType),
|
|
4836
4833
|
"time-zone": w.timeZone,
|
|
4837
4834
|
min: k.value,
|
|
4838
4835
|
max: T.value,
|
|
@@ -4842,8 +4839,8 @@ const Ls = { class: "cl-flex cl-justify-between" }, js = { class: "cl-w-full" },
|
|
|
4842
4839
|
"date-format-locale": w.dateFormatLocale,
|
|
4843
4840
|
onBlur: ee(H, ["self"]),
|
|
4844
4841
|
onFocus: j[10] || (j[10] = (G) => n("focus"))
|
|
4845
|
-
}), null, 16, ["date", "class", "disabled", "required", "type", "time-zone", "min", "max", "placeholder", "initial-date", "quick-date-scope", "date-format-locale"])) : w.inputType === "range" && typeof m.value == "number" ? (p(), b("div",
|
|
4846
|
-
D(g(
|
|
4842
|
+
}), null, 16, ["date", "class", "disabled", "required", "type", "time-zone", "min", "max", "placeholder", "initial-date", "quick-date-scope", "date-format-locale"])) : w.inputType === "range" && typeof m.value == "number" ? (p(), b("div", Zs, [
|
|
4843
|
+
D(g(Rs), {
|
|
4847
4844
|
ref_key: "inputElement",
|
|
4848
4845
|
ref: a,
|
|
4849
4846
|
value: m.value,
|
|
@@ -4859,11 +4856,11 @@ const Ls = { class: "cl-flex cl-justify-between" }, js = { class: "cl-w-full" },
|
|
|
4859
4856
|
}, null, 8, ["value", "min", "max", "step", "placeholder", "disabled"])
|
|
4860
4857
|
])) : z("", !0)
|
|
4861
4858
|
], 32),
|
|
4862
|
-
S.value && U.value && B.value ? (p(), b("div",
|
|
4863
|
-
!S.value && A.value.length > 0 && w.showValidationMessages && B.value ? (p(), b("div",
|
|
4859
|
+
S.value && U.value && B.value ? (p(), b("div", Gs, N(U.value), 1)) : z("", !0),
|
|
4860
|
+
!S.value && A.value.length > 0 && w.showValidationMessages && B.value ? (p(), b("div", Ks, N(A.value), 1)) : z("", !0)
|
|
4864
4861
|
], 16));
|
|
4865
4862
|
}
|
|
4866
|
-
}),
|
|
4863
|
+
}), xs = /* @__PURE__ */ he(Qs, [["__scopeId", "data-v-2373f106"]]), Ys = [
|
|
4867
4864
|
"button",
|
|
4868
4865
|
"checkbox",
|
|
4869
4866
|
"color",
|
|
@@ -4885,24 +4882,24 @@ const Ls = { class: "cl-flex cl-justify-between" }, js = { class: "cl-w-full" },
|
|
|
4885
4882
|
function ll(t) {
|
|
4886
4883
|
return /[a-z]{2}-[A-Z]{2}/gm.test(t.localeCode);
|
|
4887
4884
|
}
|
|
4888
|
-
function
|
|
4885
|
+
function _s(t) {
|
|
4889
4886
|
let o = Array.isArray(t);
|
|
4890
4887
|
if (o) {
|
|
4891
4888
|
for (const l of t)
|
|
4892
|
-
if (!
|
|
4889
|
+
if (!Js(l)) {
|
|
4893
4890
|
o = !1;
|
|
4894
4891
|
break;
|
|
4895
4892
|
}
|
|
4896
4893
|
}
|
|
4897
4894
|
return o;
|
|
4898
4895
|
}
|
|
4899
|
-
function
|
|
4896
|
+
function Js(t) {
|
|
4900
4897
|
return typeof t.name == "string" && typeof t.nativeName == "string" && typeof t.localeCode == "string";
|
|
4901
4898
|
}
|
|
4902
|
-
const
|
|
4899
|
+
const Xs = {
|
|
4903
4900
|
key: 0,
|
|
4904
4901
|
class: "cl-flex cl-relative cl-select-none cl-w-auto cl-z-30"
|
|
4905
|
-
},
|
|
4902
|
+
}, er = { 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" }, lr = ["data-localename", "data-localecode", "onClick"], tr = { class: "cl-text-xs" }, or = /* @__PURE__ */ F({
|
|
4906
4903
|
__name: "cl-ui-language-switcher",
|
|
4907
4904
|
props: {
|
|
4908
4905
|
supportedLanguages: {},
|
|
@@ -4911,7 +4908,7 @@ const er = {
|
|
|
4911
4908
|
},
|
|
4912
4909
|
emits: ["language-select"],
|
|
4913
4910
|
setup(t, { emit: o }) {
|
|
4914
|
-
const l = t, e = o, { locale: n } = se(), a =
|
|
4911
|
+
const l = t, e = o, { locale: n } = se(), a = I(!1), d = O(() => l.supportedLanguages.find((i) => i.localeCode === n.value) ?? u(l.supportedLanguages, n.value) ?? l.defaultLangauge), c = O(() => l.supportedLanguages.filter((i) => ll(i)).sort((i, s) => i.nativeName > s.nativeName ? 1 : s.nativeName > i.nativeName ? -1 : 0));
|
|
4915
4912
|
function u(i, s) {
|
|
4916
4913
|
const m = s.split("-")[0];
|
|
4917
4914
|
return i.find((k) => k.localeCode.split("-")[0] === m) ?? null;
|
|
@@ -4921,7 +4918,7 @@ const er = {
|
|
|
4921
4918
|
}
|
|
4922
4919
|
return oe(() => l.disabled, (i) => {
|
|
4923
4920
|
i && (a.value = !1);
|
|
4924
|
-
}), (i, s) => d.value !== null && g(ll)(d.value) ? (p(), b("div",
|
|
4921
|
+
}), (i, s) => d.value !== null && g(ll)(d.value) ? (p(), b("div", Xs, [
|
|
4925
4922
|
f("div", {
|
|
4926
4923
|
class: L(["cl-flex cl-items-center", {
|
|
4927
4924
|
"cl-cursor-pointer": !i.disabled
|
|
@@ -4932,11 +4929,11 @@ const er = {
|
|
|
4932
4929
|
class: L(["cl-font-semibold cl-text-xs", {
|
|
4933
4930
|
"cl-opacity-50": i.disabled
|
|
4934
4931
|
}])
|
|
4935
|
-
},
|
|
4932
|
+
}, N(d.value.nativeName), 3)
|
|
4936
4933
|
], 2),
|
|
4937
4934
|
D(Ce, { name: "fade" }, {
|
|
4938
4935
|
default: R(() => [
|
|
4939
|
-
Q(f("div",
|
|
4936
|
+
Q(f("div", er, [
|
|
4940
4937
|
(p(!0), b(Y, null, re(c.value, (m, h) => (p(), b("div", {
|
|
4941
4938
|
key: h,
|
|
4942
4939
|
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",
|
|
@@ -4946,8 +4943,8 @@ const er = {
|
|
|
4946
4943
|
n.value = m.localeCode, r(), e("language-select", m.localeCode);
|
|
4947
4944
|
}
|
|
4948
4945
|
}, [
|
|
4949
|
-
f("span",
|
|
4950
|
-
], 8,
|
|
4946
|
+
f("span", tr, N(m.nativeName), 1)
|
|
4947
|
+
], 8, lr))), 128))
|
|
4951
4948
|
], 512), [
|
|
4952
4949
|
[X, a.value]
|
|
4953
4950
|
])
|
|
@@ -4956,13 +4953,13 @@ const er = {
|
|
|
4956
4953
|
})
|
|
4957
4954
|
])) : z("", !0);
|
|
4958
4955
|
}
|
|
4959
|
-
}),
|
|
4956
|
+
}), ar = { class: "cl-relative" }, nr = { class: "cl-h-full cl-z-0 xl:cl-h-screen" }, sr = { 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" }, rr = { class: "cl-col-span-10 lg:cl-col-span-3" }, ir = {
|
|
4960
4957
|
key: 0,
|
|
4961
4958
|
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"
|
|
4962
|
-
},
|
|
4959
|
+
}, cr = { class: "cl-col-span-3" }, ur = { class: "cl-relative cl-text-grey-4" }, dr = { class: "cl-w-full" }, pr = /* @__PURE__ */ f("span", null, null, -1), fr = {
|
|
4963
4960
|
key: 0,
|
|
4964
4961
|
class: "cl-bg-primary-lighter cl-mt-1 cl-rounded-md cl-text-center cl-text-secondary-default cl-text-xs cl-w-full"
|
|
4965
|
-
},
|
|
4962
|
+
}, mr = { class: "cl-col-span-3" }, gr = { class: "cl-relative cl-text-grey-4" }, vr = /* @__PURE__ */ f("span", null, null, -1), br = { class: "cl-col-span-10 cl-emphasis-danger cl-mt-10 cl-p-3 cl-rounded-md cl-text-sm md:cl-mt-3" }, hr = /* @__PURE__ */ F({
|
|
4966
4963
|
__name: "cl-ui-login",
|
|
4967
4964
|
props: {
|
|
4968
4965
|
errors: { default: () => [] },
|
|
@@ -4970,7 +4967,7 @@ const er = {
|
|
|
4970
4967
|
},
|
|
4971
4968
|
emits: ["login", "update:errors"],
|
|
4972
4969
|
setup(t, { emit: o }) {
|
|
4973
|
-
const l = o, { t: e } = se(), n =
|
|
4970
|
+
const l = o, { t: e } = se(), n = I(""), a = I(""), d = I("password"), c = O(() => rt(n.value));
|
|
4974
4971
|
function u() {
|
|
4975
4972
|
const i = {
|
|
4976
4973
|
username: n.value,
|
|
@@ -4984,15 +4981,15 @@ const er = {
|
|
|
4984
4981
|
return oe([
|
|
4985
4982
|
n,
|
|
4986
4983
|
a
|
|
4987
|
-
], r), (i, s) => (p(), b("div",
|
|
4988
|
-
f("div",
|
|
4984
|
+
], r), (i, s) => (p(), b("div", ar, [
|
|
4985
|
+
f("div", nr, [
|
|
4989
4986
|
M(i.$slots, "background")
|
|
4990
4987
|
]),
|
|
4991
|
-
f("form",
|
|
4992
|
-
f("div",
|
|
4988
|
+
f("form", sr, [
|
|
4989
|
+
f("div", rr, [
|
|
4993
4990
|
M(i.$slots, "logo")
|
|
4994
4991
|
]),
|
|
4995
|
-
i.$slots["language-switcher"] ? (p(), b("div",
|
|
4992
|
+
i.$slots["language-switcher"] ? (p(), b("div", ir, [
|
|
4996
4993
|
M(i.$slots, "language-switcher")
|
|
4997
4994
|
])) : z("", !0),
|
|
4998
4995
|
f("div", {
|
|
@@ -5001,14 +4998,14 @@ const er = {
|
|
|
5001
4998
|
"cl-col-span-6": i.$slots["language-switcher"]
|
|
5002
4999
|
}])
|
|
5003
5000
|
}, [
|
|
5004
|
-
f("div",
|
|
5005
|
-
f("div",
|
|
5001
|
+
f("div", cr, [
|
|
5002
|
+
f("div", ur, [
|
|
5006
5003
|
D(g(Z), {
|
|
5007
5004
|
class: "cl-absolute cl-left-3 cl-top-3 cl-z-10",
|
|
5008
5005
|
icon: "ph:user",
|
|
5009
5006
|
size: 18
|
|
5010
5007
|
}),
|
|
5011
|
-
f("div",
|
|
5008
|
+
f("div", dr, [
|
|
5012
5009
|
D(Ee, {
|
|
5013
5010
|
id: "cl-ui-login-usernameinput",
|
|
5014
5011
|
modelValue: n.value,
|
|
@@ -5024,16 +5021,16 @@ const er = {
|
|
|
5024
5021
|
autocomplete: "username"
|
|
5025
5022
|
}, {
|
|
5026
5023
|
default: R(() => [
|
|
5027
|
-
|
|
5024
|
+
pr
|
|
5028
5025
|
]),
|
|
5029
5026
|
_: 1
|
|
5030
5027
|
}, 8, ["modelValue", "class", "errors", "placeholder"]),
|
|
5031
|
-
c.value ? (p(), b("div",
|
|
5028
|
+
c.value ? (p(), b("div", fr, N(g(e)("login.validEmail")), 1)) : z("", !0)
|
|
5032
5029
|
])
|
|
5033
5030
|
])
|
|
5034
5031
|
]),
|
|
5035
|
-
f("div",
|
|
5036
|
-
f("div",
|
|
5032
|
+
f("div", mr, [
|
|
5033
|
+
f("div", gr, [
|
|
5037
5034
|
D(g(Z), {
|
|
5038
5035
|
class: "cl-absolute cl-left-3 cl-top-3 cl-z-10",
|
|
5039
5036
|
icon: "ph:lock",
|
|
@@ -5067,7 +5064,7 @@ const er = {
|
|
|
5067
5064
|
autocomplete: "current-password"
|
|
5068
5065
|
}, {
|
|
5069
5066
|
default: R(() => [
|
|
5070
|
-
|
|
5067
|
+
vr
|
|
5071
5068
|
]),
|
|
5072
5069
|
_: 1
|
|
5073
5070
|
}, 8, ["modelValue", "class", "type", "placeholder"])
|
|
@@ -5087,7 +5084,7 @@ const er = {
|
|
|
5087
5084
|
onClick: ee(u, ["prevent"])
|
|
5088
5085
|
}, {
|
|
5089
5086
|
default: R(() => [
|
|
5090
|
-
ue(
|
|
5087
|
+
ue(N(g(e)("login.login")), 1)
|
|
5091
5088
|
]),
|
|
5092
5089
|
_: 1
|
|
5093
5090
|
}, 8, ["loading", "disabled"])
|
|
@@ -5097,12 +5094,12 @@ const er = {
|
|
|
5097
5094
|
default: R(() => {
|
|
5098
5095
|
var m;
|
|
5099
5096
|
return [
|
|
5100
|
-
Q(f("span",
|
|
5097
|
+
Q(f("span", br, [
|
|
5101
5098
|
(p(!0), b(Y, null, re(i.errors, (h, k) => (p(), b("div", {
|
|
5102
5099
|
id: "cl-ui-login-errors",
|
|
5103
5100
|
key: k,
|
|
5104
5101
|
class: "cl-font-semibold"
|
|
5105
|
-
},
|
|
5102
|
+
}, N(h), 1))), 128))
|
|
5106
5103
|
], 512), [
|
|
5107
5104
|
[X, (m = i.errors) == null ? void 0 : m.length]
|
|
5108
5105
|
])
|
|
@@ -5113,26 +5110,26 @@ const er = {
|
|
|
5113
5110
|
])
|
|
5114
5111
|
]));
|
|
5115
5112
|
}
|
|
5116
|
-
}),
|
|
5113
|
+
}), yr = [
|
|
5117
5114
|
"x-small",
|
|
5118
5115
|
"small",
|
|
5119
5116
|
"medium",
|
|
5120
5117
|
"large"
|
|
5121
|
-
],
|
|
5118
|
+
], wr = [
|
|
5122
5119
|
"primary",
|
|
5123
5120
|
"secondary",
|
|
5124
5121
|
"white"
|
|
5125
|
-
],
|
|
5122
|
+
], kr = {
|
|
5126
5123
|
key: 0,
|
|
5127
5124
|
class: "cl-h-0 cl-w-0"
|
|
5128
|
-
},
|
|
5125
|
+
}, $r = { class: "cl-relative cl-w-full" }, Cr = /* @__PURE__ */ F({
|
|
5129
5126
|
__name: "cl-ui-navigation",
|
|
5130
5127
|
props: {
|
|
5131
5128
|
colour: { default: "default" }
|
|
5132
5129
|
},
|
|
5133
5130
|
emits: ["pinned-state", "open-state"],
|
|
5134
5131
|
setup(t, { expose: o, emit: l }) {
|
|
5135
|
-
const e = l, n =
|
|
5132
|
+
const e = l, n = I([]), a = O(() => n.value.filter(($) => $.open === !0).length > 0);
|
|
5136
5133
|
function d($) {
|
|
5137
5134
|
let q = n.value.find((U) => U.id === $);
|
|
5138
5135
|
return q || (q = {
|
|
@@ -5157,11 +5154,11 @@ const er = {
|
|
|
5157
5154
|
deep: !0
|
|
5158
5155
|
}
|
|
5159
5156
|
);
|
|
5160
|
-
const r =
|
|
5157
|
+
const r = I(!1), i = I(!1), { start: s } = Nl(() => i.value = !1, 100);
|
|
5161
5158
|
function m() {
|
|
5162
5159
|
r.value = !r.value, e("pinned-state", r.value), i.value = !0, s();
|
|
5163
5160
|
}
|
|
5164
|
-
const h =
|
|
5161
|
+
const h = I();
|
|
5165
5162
|
function k($) {
|
|
5166
5163
|
m(), typeof $ == "number" && c($);
|
|
5167
5164
|
}
|
|
@@ -5187,7 +5184,7 @@ const er = {
|
|
|
5187
5184
|
}, [
|
|
5188
5185
|
M($.$slots, "icon", te({ navcolour: $.colour }, { groupIsOpen: d, toggleOpen: c }), void 0, !0)
|
|
5189
5186
|
], 2),
|
|
5190
|
-
i.value ? (p(), b("div",
|
|
5187
|
+
i.value ? (p(), b("div", kr)) : z("", !0),
|
|
5191
5188
|
D(Ce, { name: "slide-right" }, {
|
|
5192
5189
|
default: R(() => [
|
|
5193
5190
|
Q(f("div", {
|
|
@@ -5196,7 +5193,7 @@ const er = {
|
|
|
5196
5193
|
"cl-absolute cl-left-20 cl-shadow-lg": !r.value
|
|
5197
5194
|
}])
|
|
5198
5195
|
}, [
|
|
5199
|
-
f("div",
|
|
5196
|
+
f("div", $r, [
|
|
5200
5197
|
f("span", {
|
|
5201
5198
|
class: "cl-absolute cl-cursor-pointer cl-hidden cl-right-0 cl-top-1.5 lg:cl-block",
|
|
5202
5199
|
onClick: q[0] || (q[0] = () => m())
|
|
@@ -5219,7 +5216,7 @@ const er = {
|
|
|
5219
5216
|
})
|
|
5220
5217
|
], 512));
|
|
5221
5218
|
}
|
|
5222
|
-
}),
|
|
5219
|
+
}), Tr = /* @__PURE__ */ he(Cr, [["__scopeId", "data-v-db3283cd"]]), qr = /* @__PURE__ */ F({
|
|
5223
5220
|
__name: "cl-ui-navigation-icon",
|
|
5224
5221
|
props: {
|
|
5225
5222
|
iconValue: {},
|
|
@@ -5242,10 +5239,10 @@ const er = {
|
|
|
5242
5239
|
}, null, 8, ["icon"])
|
|
5243
5240
|
], 2));
|
|
5244
5241
|
}
|
|
5245
|
-
}),
|
|
5242
|
+
}), Or = {
|
|
5246
5243
|
key: 0,
|
|
5247
5244
|
class: "cl-font-bold cl-leading-8 cl-mb-8 cl-pr-8 cl-select-none cl-text-lg cl-text-secondary-default"
|
|
5248
|
-
},
|
|
5245
|
+
}, Sr = { class: "cl-flex cl-flex-wrap cl-space-y-8 cl-text-sm cl-w-full" }, Dr = /* @__PURE__ */ F({
|
|
5249
5246
|
__name: "cl-ui-navigation-group",
|
|
5250
5247
|
props: {
|
|
5251
5248
|
open: { type: Boolean }
|
|
@@ -5256,21 +5253,21 @@ const er = {
|
|
|
5256
5253
|
"cl-hidden": !o.open
|
|
5257
5254
|
})
|
|
5258
5255
|
}, [
|
|
5259
|
-
o.$slots.title ? (p(), b("div",
|
|
5256
|
+
o.$slots.title ? (p(), b("div", Or, [
|
|
5260
5257
|
M(o.$slots, "title")
|
|
5261
5258
|
])) : z("", !0),
|
|
5262
|
-
f("div",
|
|
5259
|
+
f("div", Sr, [
|
|
5263
5260
|
M(o.$slots, "default")
|
|
5264
5261
|
])
|
|
5265
5262
|
], 2));
|
|
5266
5263
|
}
|
|
5267
|
-
}),
|
|
5264
|
+
}), Er = {}, Ar = { class: "cl-w-full" }, Vr = {
|
|
5268
5265
|
key: 0,
|
|
5269
5266
|
class: "cl-font-bold cl-mb-4 cl-select-none"
|
|
5270
5267
|
}, Nr = { class: "cl-flex cl-flex-wrap cl-space-y-2" };
|
|
5271
|
-
function
|
|
5272
|
-
return p(), b("div",
|
|
5273
|
-
t.$slots.title ? (p(), b("div",
|
|
5268
|
+
function Ir(t, o) {
|
|
5269
|
+
return p(), b("div", Ar, [
|
|
5270
|
+
t.$slots.title ? (p(), b("div", Vr, [
|
|
5274
5271
|
M(t.$slots, "title")
|
|
5275
5272
|
])) : z("", !0),
|
|
5276
5273
|
f("span", Nr, [
|
|
@@ -5278,13 +5275,13 @@ function Rr(t, o) {
|
|
|
5278
5275
|
])
|
|
5279
5276
|
]);
|
|
5280
5277
|
}
|
|
5281
|
-
const
|
|
5282
|
-
function
|
|
5283
|
-
return p(), b("div",
|
|
5278
|
+
const Rr = /* @__PURE__ */ he(Er, [["render", Ir]]), Mr = {}, Ur = { class: "cl-cursor-pointer cl-transition-colors cl-w-full hover:cl-text-primary-darker" };
|
|
5279
|
+
function zr(t, o) {
|
|
5280
|
+
return p(), b("div", Ur, [
|
|
5284
5281
|
M(t.$slots, "default")
|
|
5285
5282
|
]);
|
|
5286
5283
|
}
|
|
5287
|
-
const
|
|
5284
|
+
const Lr = /* @__PURE__ */ he(Mr, [["render", zr]]), jr = /* @__PURE__ */ F({
|
|
5288
5285
|
__name: "cl-ui-tab",
|
|
5289
5286
|
props: {
|
|
5290
5287
|
colour: { default: "default" },
|
|
@@ -5292,7 +5289,7 @@ const jr = /* @__PURE__ */ he(Ur, [["render", Lr]]), Br = /* @__PURE__ */ F({
|
|
|
5292
5289
|
},
|
|
5293
5290
|
emits: ["tab-opened"],
|
|
5294
5291
|
setup(t, { expose: o, emit: l }) {
|
|
5295
|
-
const e = t, n = l, a =
|
|
5292
|
+
const e = t, n = l, a = I([]), d = O(() => a.value.filter((q) => q.open).length > 0), c = I(), u = I(!1), r = I(!1), i = O(() => e.layout === "horizontal");
|
|
5296
5293
|
function s() {
|
|
5297
5294
|
if (c.value) {
|
|
5298
5295
|
const q = c.value.scrollWidth - c.value.clientWidth;
|
|
@@ -5383,7 +5380,7 @@ const jr = /* @__PURE__ */ he(Ur, [["render", Lr]]), Br = /* @__PURE__ */ F({
|
|
|
5383
5380
|
])
|
|
5384
5381
|
], 2));
|
|
5385
5382
|
}
|
|
5386
|
-
}),
|
|
5383
|
+
}), Br = ["inert"], Fr = /* @__PURE__ */ F({
|
|
5387
5384
|
__name: "cl-ui-tab-header",
|
|
5388
5385
|
props: {
|
|
5389
5386
|
open: { type: Boolean },
|
|
@@ -5409,37 +5406,37 @@ const jr = /* @__PURE__ */ he(Ur, [["render", Lr]]), Br = /* @__PURE__ */ F({
|
|
|
5409
5406
|
inert: e.disabled
|
|
5410
5407
|
}, [
|
|
5411
5408
|
M(e.$slots, "default", {}, () => [
|
|
5412
|
-
ue(
|
|
5409
|
+
ue(N(e.title), 1)
|
|
5413
5410
|
])
|
|
5414
|
-
], 10,
|
|
5411
|
+
], 10, Br));
|
|
5415
5412
|
}
|
|
5416
|
-
}),
|
|
5413
|
+
}), Pr = { key: 0 }, Hr = { class: "cl-font-bold cl-mb-4" }, Wr = /* @__PURE__ */ F({
|
|
5417
5414
|
__name: "cl-ui-tab-content",
|
|
5418
5415
|
props: {
|
|
5419
5416
|
open: { type: Boolean },
|
|
5420
5417
|
title: { default: "" }
|
|
5421
5418
|
},
|
|
5422
5419
|
setup(t) {
|
|
5423
|
-
return (o, l) => o.open ? (p(), b("div",
|
|
5420
|
+
return (o, l) => o.open ? (p(), b("div", Pr, [
|
|
5424
5421
|
M(o.$slots, "header", {}, () => [
|
|
5425
|
-
f("h4",
|
|
5422
|
+
f("h4", Hr, N(o.title), 1)
|
|
5426
5423
|
]),
|
|
5427
5424
|
M(o.$slots, "default")
|
|
5428
5425
|
])) : z("", !0);
|
|
5429
5426
|
}
|
|
5430
|
-
}),
|
|
5427
|
+
}), Zr = [
|
|
5431
5428
|
"default",
|
|
5432
5429
|
"primary",
|
|
5433
5430
|
"secondary",
|
|
5434
5431
|
"danger",
|
|
5435
5432
|
"blue"
|
|
5436
|
-
],
|
|
5433
|
+
], Gr = [
|
|
5437
5434
|
"left",
|
|
5438
5435
|
"right"
|
|
5439
|
-
],
|
|
5436
|
+
], Kr = [
|
|
5440
5437
|
"horizontal",
|
|
5441
5438
|
"vertical"
|
|
5442
|
-
],
|
|
5439
|
+
], Qr = { class: "cl-block cl-h-full cl-w-full" }, xr = ["multiple", "accept", "disabled"], Yr = ["multiple", "accept", "disabled"], _r = /* @__PURE__ */ F({
|
|
5443
5440
|
inheritAttrs: !1,
|
|
5444
5441
|
__name: "cl-ui-file-uploader",
|
|
5445
5442
|
props: {
|
|
@@ -5469,7 +5466,7 @@ const jr = /* @__PURE__ */ he(Ur, [["render", Lr]]), Br = /* @__PURE__ */ F({
|
|
|
5469
5466
|
"dragover",
|
|
5470
5467
|
"dragleave",
|
|
5471
5468
|
"drop"
|
|
5472
|
-
], c =
|
|
5469
|
+
], c = I(!1);
|
|
5473
5470
|
Fe(() => {
|
|
5474
5471
|
d.forEach((s) => {
|
|
5475
5472
|
document.body.addEventListener(s, (m) => m.preventDefault());
|
|
@@ -5479,11 +5476,11 @@ const jr = /* @__PURE__ */ he(Ur, [["render", Lr]]), Br = /* @__PURE__ */ F({
|
|
|
5479
5476
|
document.body.removeEventListener(s, (m) => m.preventDefault());
|
|
5480
5477
|
});
|
|
5481
5478
|
});
|
|
5482
|
-
const u =
|
|
5479
|
+
const u = I(null), r = I(null);
|
|
5483
5480
|
function i() {
|
|
5484
5481
|
u.value && (u.value.value = ""), r.value && (r.value.value = "");
|
|
5485
5482
|
}
|
|
5486
|
-
return (s, m) => (p(), b("div",
|
|
5483
|
+
return (s, m) => (p(), b("div", Qr, [
|
|
5487
5484
|
s.uploaderType === "dragDrop" ? (p(), b("label", te({ key: 0 }, s.$attrs, {
|
|
5488
5485
|
role: "button",
|
|
5489
5486
|
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", {
|
|
@@ -5505,7 +5502,7 @@ const jr = /* @__PURE__ */ he(Ur, [["render", Lr]]), Br = /* @__PURE__ */ F({
|
|
|
5505
5502
|
accept: s.acceptedFileTypes,
|
|
5506
5503
|
disabled: s.disabled,
|
|
5507
5504
|
onInput: a
|
|
5508
|
-
}, null, 40,
|
|
5505
|
+
}, null, 40, xr),
|
|
5509
5506
|
M(s.$slots, "default")
|
|
5510
5507
|
], 16)) : (p(), b("input", {
|
|
5511
5508
|
key: 1,
|
|
@@ -5520,10 +5517,10 @@ const jr = /* @__PURE__ */ he(Ur, [["render", Lr]]), Br = /* @__PURE__ */ F({
|
|
|
5520
5517
|
accept: s.acceptedFileTypes,
|
|
5521
5518
|
disabled: s.disabled,
|
|
5522
5519
|
onInput: a
|
|
5523
|
-
}, null, 42,
|
|
5520
|
+
}, null, 42, Yr))
|
|
5524
5521
|
]));
|
|
5525
5522
|
}
|
|
5526
|
-
}),
|
|
5523
|
+
}), Jr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5527
5524
|
__proto__: null,
|
|
5528
5525
|
FilterOperation: J,
|
|
5529
5526
|
allQuickDates: Zl,
|
|
@@ -5533,63 +5530,63 @@ const jr = /* @__PURE__ */ he(Ur, [["render", Lr]]), Br = /* @__PURE__ */ F({
|
|
|
5533
5530
|
clUiAccordion: wt,
|
|
5534
5531
|
clUiAccordionHeader: Dt,
|
|
5535
5532
|
clUiAccordionItem: Tt,
|
|
5536
|
-
clUiApp:
|
|
5533
|
+
clUiApp: Nt,
|
|
5537
5534
|
clUiButton: $e,
|
|
5538
5535
|
clUiCard: Bt,
|
|
5539
5536
|
clUiComboBox: $o,
|
|
5540
|
-
clUiFileUploader:
|
|
5541
|
-
clUiFooter:
|
|
5542
|
-
clUiGrid:
|
|
5543
|
-
clUiHeader:
|
|
5544
|
-
clUiHeaderMenu:
|
|
5545
|
-
clUiInput:
|
|
5537
|
+
clUiFileUploader: _r,
|
|
5538
|
+
clUiFooter: No,
|
|
5539
|
+
clUiGrid: ds,
|
|
5540
|
+
clUiHeader: fs,
|
|
5541
|
+
clUiHeaderMenu: ws,
|
|
5542
|
+
clUiInput: xs,
|
|
5546
5543
|
clUiInputCheckbox: sl,
|
|
5547
5544
|
clUiInputDateRange: Kl,
|
|
5548
|
-
clUiInputDateRangeInput:
|
|
5545
|
+
clUiInputDateRangeInput: ml,
|
|
5549
5546
|
clUiInputDateTime: xl,
|
|
5550
5547
|
clUiInputNumber: Pe,
|
|
5551
|
-
clUiInputRange:
|
|
5548
|
+
clUiInputRange: en,
|
|
5552
5549
|
clUiInputText: Ee,
|
|
5553
|
-
clUiLanguageSwitcher:
|
|
5550
|
+
clUiLanguageSwitcher: or,
|
|
5554
5551
|
clUiLoadingSpinner: _e,
|
|
5555
|
-
clUiLogin:
|
|
5556
|
-
clUiModal:
|
|
5557
|
-
clUiNavigation:
|
|
5558
|
-
clUiNavigationGroup:
|
|
5559
|
-
clUiNavigationIcon:
|
|
5560
|
-
clUiNavigationItem:
|
|
5561
|
-
clUiNavigationSection:
|
|
5562
|
-
clUiNotification:
|
|
5563
|
-
clUiTab:
|
|
5564
|
-
clUiTabContent:
|
|
5565
|
-
clUiTabHeader:
|
|
5552
|
+
clUiLogin: hr,
|
|
5553
|
+
clUiModal: Ul,
|
|
5554
|
+
clUiNavigation: Tr,
|
|
5555
|
+
clUiNavigationGroup: Dr,
|
|
5556
|
+
clUiNavigationIcon: qr,
|
|
5557
|
+
clUiNavigationItem: Lr,
|
|
5558
|
+
clUiNavigationSection: Rr,
|
|
5559
|
+
clUiNotification: Ml,
|
|
5560
|
+
clUiTab: jr,
|
|
5561
|
+
clUiTabContent: Wr,
|
|
5562
|
+
clUiTabHeader: Fr,
|
|
5566
5563
|
currentQuickDates: Le,
|
|
5567
5564
|
dateTimeCalendarTypes: Ql,
|
|
5568
|
-
filterMethodTypes:
|
|
5565
|
+
filterMethodTypes: un,
|
|
5569
5566
|
futureQuickDates: xe,
|
|
5570
|
-
gridColumnTypes:
|
|
5571
|
-
headerColour:
|
|
5572
|
-
inputTextTypes:
|
|
5573
|
-
inputTypes:
|
|
5567
|
+
gridColumnTypes: sn,
|
|
5568
|
+
headerColour: ks,
|
|
5569
|
+
inputTextTypes: Wa,
|
|
5570
|
+
inputTypes: Ys,
|
|
5574
5571
|
isComboBoxCreateRequest: To,
|
|
5575
5572
|
isComboBoxItem: Co,
|
|
5576
|
-
isFilterRequest:
|
|
5577
|
-
isFilterResponse:
|
|
5573
|
+
isFilterRequest: fn,
|
|
5574
|
+
isFilterResponse: mn,
|
|
5578
5575
|
isGridColumn: Yl,
|
|
5579
|
-
isGridColumnArray:
|
|
5580
|
-
isLanguageArray:
|
|
5576
|
+
isGridColumnArray: rn,
|
|
5577
|
+
isLanguageArray: _s,
|
|
5581
5578
|
isLanguageLocaleFormat: ll,
|
|
5582
|
-
modalColours:
|
|
5583
|
-
modalSizes:
|
|
5579
|
+
modalColours: wr,
|
|
5580
|
+
modalSizes: yr,
|
|
5584
5581
|
pastQuickDates: Qe,
|
|
5585
|
-
popoverPlacements:
|
|
5586
|
-
quickDateNames:
|
|
5587
|
-
stringFormats:
|
|
5588
|
-
tabColours:
|
|
5589
|
-
tabLayout:
|
|
5590
|
-
tabScroll:
|
|
5591
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
5592
|
-
t.use(be), t.component("Icon", Z), Object.entries(
|
|
5582
|
+
popoverPlacements: ln,
|
|
5583
|
+
quickDateNames: Fa,
|
|
5584
|
+
stringFormats: cn,
|
|
5585
|
+
tabColours: Zr,
|
|
5586
|
+
tabLayout: Kr,
|
|
5587
|
+
tabScroll: Gr
|
|
5588
|
+
}, Symbol.toStringTag, { value: "Module" })), mi = (t) => {
|
|
5589
|
+
t.use(be), t.component("Icon", Z), Object.entries(Jr).forEach(([
|
|
5593
5590
|
o,
|
|
5594
5591
|
l
|
|
5595
5592
|
]) => {
|
|
@@ -5597,7 +5594,7 @@ const jr = /* @__PURE__ */ he(Ur, [["render", Lr]]), Br = /* @__PURE__ */ F({
|
|
|
5597
5594
|
});
|
|
5598
5595
|
};
|
|
5599
5596
|
export {
|
|
5600
|
-
|
|
5597
|
+
fi as CitrusLimeUI,
|
|
5601
5598
|
ce as DateFormat,
|
|
5602
5599
|
J as FilterOperation,
|
|
5603
5600
|
le as NumberFormat,
|
|
@@ -5608,77 +5605,77 @@ export {
|
|
|
5608
5605
|
wt as clUiAccordion,
|
|
5609
5606
|
Dt as clUiAccordionHeader,
|
|
5610
5607
|
Tt as clUiAccordionItem,
|
|
5611
|
-
|
|
5608
|
+
Nt as clUiApp,
|
|
5612
5609
|
$e as clUiButton,
|
|
5613
5610
|
Bt as clUiCard,
|
|
5614
5611
|
$o as clUiComboBox,
|
|
5615
|
-
|
|
5616
|
-
|
|
5617
|
-
|
|
5618
|
-
|
|
5619
|
-
|
|
5620
|
-
|
|
5612
|
+
_r as clUiFileUploader,
|
|
5613
|
+
No as clUiFooter,
|
|
5614
|
+
ds as clUiGrid,
|
|
5615
|
+
fs as clUiHeader,
|
|
5616
|
+
ws as clUiHeaderMenu,
|
|
5617
|
+
xs as clUiInput,
|
|
5621
5618
|
sl as clUiInputCheckbox,
|
|
5622
5619
|
Kl as clUiInputDateRange,
|
|
5623
|
-
|
|
5620
|
+
ml as clUiInputDateRangeInput,
|
|
5624
5621
|
xl as clUiInputDateTime,
|
|
5625
5622
|
Pe as clUiInputNumber,
|
|
5626
|
-
|
|
5623
|
+
en as clUiInputRange,
|
|
5627
5624
|
Ee as clUiInputText,
|
|
5628
|
-
|
|
5625
|
+
or as clUiLanguageSwitcher,
|
|
5629
5626
|
_e as clUiLoadingSpinner,
|
|
5630
|
-
|
|
5631
|
-
|
|
5632
|
-
|
|
5633
|
-
|
|
5634
|
-
|
|
5635
|
-
|
|
5636
|
-
|
|
5637
|
-
|
|
5638
|
-
|
|
5639
|
-
|
|
5640
|
-
|
|
5627
|
+
hr as clUiLogin,
|
|
5628
|
+
Ul as clUiModal,
|
|
5629
|
+
Tr as clUiNavigation,
|
|
5630
|
+
Dr as clUiNavigationGroup,
|
|
5631
|
+
qr as clUiNavigationIcon,
|
|
5632
|
+
Lr as clUiNavigationItem,
|
|
5633
|
+
Rr as clUiNavigationSection,
|
|
5634
|
+
Ml as clUiNotification,
|
|
5635
|
+
jr as clUiTab,
|
|
5636
|
+
Wr as clUiTabContent,
|
|
5637
|
+
Fr as clUiTabHeader,
|
|
5641
5638
|
Le as currentQuickDates,
|
|
5642
5639
|
Ql as dateTimeCalendarTypes,
|
|
5643
5640
|
Zo as datetimeFormats,
|
|
5644
|
-
|
|
5645
|
-
|
|
5641
|
+
mi as default,
|
|
5642
|
+
un as filterMethodTypes,
|
|
5646
5643
|
Se as formatNumber,
|
|
5647
5644
|
el as formatNumberAsDecimal,
|
|
5648
5645
|
Oe as formatNumberAsInteger,
|
|
5649
5646
|
xe as futureQuickDates,
|
|
5650
5647
|
il as getMergedFormatOptions,
|
|
5651
|
-
|
|
5652
|
-
|
|
5648
|
+
sn as gridColumnTypes,
|
|
5649
|
+
ks as headerColour,
|
|
5653
5650
|
be as i18n,
|
|
5654
|
-
|
|
5655
|
-
|
|
5651
|
+
Wa as inputTextTypes,
|
|
5652
|
+
Ys as inputTypes,
|
|
5656
5653
|
To as isComboBoxCreateRequest,
|
|
5657
5654
|
Co as isComboBoxItem,
|
|
5658
|
-
|
|
5659
|
-
|
|
5655
|
+
fn as isFilterRequest,
|
|
5656
|
+
mn as isFilterResponse,
|
|
5660
5657
|
Yl as isGridColumn,
|
|
5661
|
-
|
|
5662
|
-
|
|
5658
|
+
rn as isGridColumnArray,
|
|
5659
|
+
_s as isLanguageArray,
|
|
5663
5660
|
ll as isLanguageLocaleFormat,
|
|
5664
5661
|
Ho as messages,
|
|
5665
|
-
|
|
5666
|
-
|
|
5662
|
+
wr as modalColours,
|
|
5663
|
+
yr as modalSizes,
|
|
5667
5664
|
Wo as numberFormats,
|
|
5668
5665
|
Qe as pastQuickDates,
|
|
5669
|
-
|
|
5670
|
-
|
|
5671
|
-
|
|
5672
|
-
|
|
5673
|
-
|
|
5674
|
-
|
|
5675
|
-
|
|
5676
|
-
|
|
5677
|
-
|
|
5678
|
-
|
|
5679
|
-
|
|
5680
|
-
|
|
5681
|
-
|
|
5682
|
-
|
|
5683
|
-
|
|
5666
|
+
ln as popoverPlacements,
|
|
5667
|
+
Fa as quickDateNames,
|
|
5668
|
+
pi as setCurrentLocale,
|
|
5669
|
+
di as setLocaleDateTimeFormats,
|
|
5670
|
+
ci as setLocaleMessages,
|
|
5671
|
+
ui as setLocaleNumberFormats,
|
|
5672
|
+
hl as showNotification,
|
|
5673
|
+
cn as stringFormats,
|
|
5674
|
+
Zr as tabColours,
|
|
5675
|
+
Kr as tabLayout,
|
|
5676
|
+
Gr as tabScroll,
|
|
5677
|
+
Ll as unformatNumber,
|
|
5678
|
+
ea as validateEmail,
|
|
5679
|
+
Jo as validateMaxValue,
|
|
5680
|
+
_o as validateMinValue
|
|
5684
5681
|
};
|