@citruslime/ui 2.2.2-beta.2 → 2.2.2-beta.3
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 +576 -571
- package/dist/citrus-lime-ui.umd.js +2 -2
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Icon as N } from "@iconify/vue";
|
|
2
|
-
import { defineComponent as q, ref as C, openBlock as i, createElementBlock as g, renderSlot as
|
|
2
|
+
import { defineComponent as q, ref as C, openBlock as i, createElementBlock as g, renderSlot as M, normalizeProps as le, guardReactiveProps as ce, Fragment as z, createElementVNode as u, normalizeClass as D, createVNode as y, unref as a, Transition as he, withCtx as L, withDirectives as P, vShow as B, createBlock as F, Teleport as ze, renderList as _, mergeProps as fe, toDisplayString as k, createCommentVNode as I, nextTick as ye, computed as E, watch as J, onMounted as Ce, onUnmounted as Re, resolveComponent as el, isRef as be, normalizeStyle as ll, vModelText as ul, withModifiers as Q, vModelDynamic as dl, withKeys as Te, createTextVNode as X, watchEffect as fl, createSlots as Le } from "vue";
|
|
3
3
|
import { generateStringId as ml } from "@citruslime/utils";
|
|
4
4
|
import { createI18n as gl, useI18n as ne } from "vue-i18n";
|
|
5
5
|
import Ge from "flatpickr";
|
|
@@ -26,7 +26,7 @@ const hl = { class: "cl-overflow-hidden" }, pl = /* @__PURE__ */ q({
|
|
|
26
26
|
}), s.open = !s.open);
|
|
27
27
|
}
|
|
28
28
|
return (r, s) => (i(), g("div", hl, [
|
|
29
|
-
|
|
29
|
+
M(r.$slots, "default", le(ce({ isItemOpen: l, toggleItem: o })))
|
|
30
30
|
]));
|
|
31
31
|
}
|
|
32
32
|
}), yl = { class: "cl-absolute cl-left-5 cl-top-5" }, wl = { class: "cl-font-semibold cl-ml-10 cl-p-4 cl-select-none cl-text-grey-5" }, xl = { class: "cl-overflow-hidden" }, $l = { class: "cl-ml-10 cl-p-4" }, kl = /* @__PURE__ */ q({
|
|
@@ -61,14 +61,14 @@ const hl = { class: "cl-overflow-hidden" }, pl = /* @__PURE__ */ q({
|
|
|
61
61
|
}, null, 8, ["class"])
|
|
62
62
|
]),
|
|
63
63
|
u("div", wl, [
|
|
64
|
-
|
|
64
|
+
M(o.$slots, "title")
|
|
65
65
|
])
|
|
66
66
|
], 2),
|
|
67
67
|
u("div", xl, [
|
|
68
|
-
y(
|
|
69
|
-
default:
|
|
68
|
+
y(he, { name: "grow-down" }, {
|
|
69
|
+
default: L(() => [
|
|
70
70
|
P(u("div", $l, [
|
|
71
|
-
|
|
71
|
+
M(o.$slots, "default")
|
|
72
72
|
], 512), [
|
|
73
73
|
[B, e.open]
|
|
74
74
|
])
|
|
@@ -86,7 +86,7 @@ const hl = { class: "cl-overflow-hidden" }, pl = /* @__PURE__ */ q({
|
|
|
86
86
|
}, Tl = {}, Cl = { class: "cl-border-b cl-border-grey-1 cl-font-semibold cl-pl-14 cl-pr-4 cl-py-2 cl-text-grey-3 cl-text-sm" };
|
|
87
87
|
function Sl(e, n) {
|
|
88
88
|
return i(), g("div", Cl, [
|
|
89
|
-
|
|
89
|
+
M(e.$slots, "default")
|
|
90
90
|
]);
|
|
91
91
|
}
|
|
92
92
|
const El = /* @__PURE__ */ me(Tl, [["render", Sl]]), Oe = C([]);
|
|
@@ -110,7 +110,7 @@ const jl = ["onClick"], Ol = { class: "cl-flex-1 cl-select-none cl-text-ellipsis
|
|
|
110
110
|
position: { default: "top-right" }
|
|
111
111
|
},
|
|
112
112
|
setup(e) {
|
|
113
|
-
return (n, t) => (i(),
|
|
113
|
+
return (n, t) => (i(), F(ze, { to: e.container }, [
|
|
114
114
|
u("div", {
|
|
115
115
|
class: D(["cl-fixed cl-w-80 cl-z-40", {
|
|
116
116
|
"cl-top-5 cl-left-5": e.position === "top-left",
|
|
@@ -152,20 +152,20 @@ const jl = ["onClick"], Ol = { class: "cl-flex-1 cl-select-none cl-text-ellipsis
|
|
|
152
152
|
return (n, t) => (i(), g(z, null, [
|
|
153
153
|
y(cl),
|
|
154
154
|
u("div", Ml, [
|
|
155
|
-
|
|
155
|
+
M(n.$slots, "header"),
|
|
156
156
|
u("div", {
|
|
157
157
|
class: D(["cl-content-start cl-flex cl-flex-nowrap cl-items-stretch cl-max-h-screen cl-relative cl-w-full", {
|
|
158
158
|
"cl-pt-20": n.$slots.header
|
|
159
159
|
}])
|
|
160
160
|
}, [
|
|
161
|
-
|
|
161
|
+
M(n.$slots, "navigation"),
|
|
162
162
|
u("div", {
|
|
163
163
|
class: D(["cl-grow cl-max-h-full cl-overflow-x-hidden cl-overflow-y-auto cl-overscroll-y-none cl-w-auto", {
|
|
164
164
|
"cl-pb-20 lg:cl-pb-0": e.removePadding,
|
|
165
165
|
"lg:cl-pb-8 md:cl-px-8 cl-px-2 md:cl-pt-8 cl-pt-2 cl-pb-20": !e.removePadding
|
|
166
166
|
}])
|
|
167
167
|
}, [
|
|
168
|
-
|
|
168
|
+
M(n.$slots, "default")
|
|
169
169
|
], 2)
|
|
170
170
|
], 2)
|
|
171
171
|
])
|
|
@@ -214,7 +214,7 @@ const Pe = /* @__PURE__ */ me(Nl, [["render", ql], ["__scopeId", "data-v-a21dc5d
|
|
|
214
214
|
}],
|
|
215
215
|
disabled: e.disabled
|
|
216
216
|
}), [
|
|
217
|
-
|
|
217
|
+
M(l.$slots, "default")
|
|
218
218
|
], 16, Rl), [
|
|
219
219
|
[B, !e.loading]
|
|
220
220
|
])
|
|
@@ -244,7 +244,7 @@ const Pe = /* @__PURE__ */ me(Nl, [["render", ql], ["__scopeId", "data-v-a21dc5d
|
|
|
244
244
|
}])
|
|
245
245
|
}, [
|
|
246
246
|
n.$slots.image ? (i(), g("div", zl, [
|
|
247
|
-
|
|
247
|
+
M(n.$slots, "image")
|
|
248
248
|
])) : I("", !0),
|
|
249
249
|
n.$slots.title ? (i(), g("div", {
|
|
250
250
|
key: 1,
|
|
@@ -255,7 +255,7 @@ const Pe = /* @__PURE__ */ me(Nl, [["render", ql], ["__scopeId", "data-v-a21dc5d
|
|
|
255
255
|
"cl-border-t": n.$slots.image
|
|
256
256
|
}])
|
|
257
257
|
}, [
|
|
258
|
-
|
|
258
|
+
M(n.$slots, "title")
|
|
259
259
|
], 2)) : I("", !0),
|
|
260
260
|
u("div", {
|
|
261
261
|
class: D(["cl-border-grey-2", {
|
|
@@ -265,7 +265,7 @@ const Pe = /* @__PURE__ */ me(Nl, [["render", ql], ["__scopeId", "data-v-a21dc5d
|
|
|
265
265
|
"cl-border-t": n.$slots.image || n.$slots.title
|
|
266
266
|
}])
|
|
267
267
|
}, [
|
|
268
|
-
|
|
268
|
+
M(n.$slots, "default")
|
|
269
269
|
], 2),
|
|
270
270
|
n.$slots.footer ? (i(), g("div", {
|
|
271
271
|
key: 2,
|
|
@@ -275,7 +275,7 @@ const Pe = /* @__PURE__ */ me(Nl, [["render", ql], ["__scopeId", "data-v-a21dc5d
|
|
|
275
275
|
"cl-p-6": e.size === "large"
|
|
276
276
|
}])
|
|
277
277
|
}, [
|
|
278
|
-
|
|
278
|
+
M(n.$slots, "footer")
|
|
279
279
|
], 2)) : I("", !0)
|
|
280
280
|
], 2));
|
|
281
281
|
}
|
|
@@ -437,16 +437,16 @@ const Vl = {
|
|
|
437
437
|
fallbackWarn: !1,
|
|
438
438
|
warnHtmlMessage: !1
|
|
439
439
|
});
|
|
440
|
-
function
|
|
440
|
+
function Yo(e, n) {
|
|
441
441
|
return Y.global.mergeLocaleMessage(e, n), ye();
|
|
442
442
|
}
|
|
443
|
-
function
|
|
443
|
+
function Xo(e, n) {
|
|
444
444
|
return Y.global.mergeNumberFormat(e, n), ye();
|
|
445
445
|
}
|
|
446
|
-
function
|
|
446
|
+
function _o(e, n) {
|
|
447
447
|
return Y.global.mergeDateTimeFormat(e, n), ye();
|
|
448
448
|
}
|
|
449
|
-
function
|
|
449
|
+
function ec(e) {
|
|
450
450
|
return Y.global.locale.value = e, ye();
|
|
451
451
|
}
|
|
452
452
|
const { t: se } = Y.global;
|
|
@@ -558,7 +558,7 @@ function Ql(e) {
|
|
|
558
558
|
from: "@iconify/vue"
|
|
559
559
|
};
|
|
560
560
|
}
|
|
561
|
-
function
|
|
561
|
+
function lc() {
|
|
562
562
|
return Ql;
|
|
563
563
|
}
|
|
564
564
|
var $e = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, Ae = {}, Yl = {
|
|
@@ -1063,13 +1063,13 @@ const ct = ["placeholder", "disabled"], st = { class: "cl-absolute cl-bg-white c
|
|
|
1063
1063
|
"update:date": null
|
|
1064
1064
|
},
|
|
1065
1065
|
setup(e, { expose: n, emit: t }) {
|
|
1066
|
-
const l = e, { d: o, getDateTimeFormat: r, locale: s, t: m } = ne(), c = C(null), f = C(null), d =
|
|
1067
|
-
var $,
|
|
1068
|
-
let
|
|
1069
|
-
return (($ = h.value) == null ? void 0 : $.hour12) === !0 && (
|
|
1070
|
-
}), te =
|
|
1066
|
+
const l = e, { d: o, getDateTimeFormat: r, locale: s, t: m } = ne(), c = C(null), f = C(null), d = E(() => o(nt(), l.type)), h = E(() => r(s.value)[l.type]), v = E(() => U()), p = E(() => oe()), b = E(() => K()), x = E(() => We(l.min, s.value)), w = E(() => We(l.max, s.value)), j = C(!1), H = E(() => {
|
|
1067
|
+
var $, S;
|
|
1068
|
+
let A = "H", W = "Y";
|
|
1069
|
+
return (($ = h.value) == null ? void 0 : $.hour12) === !0 && (A = "h"), ((S = h.value) == null ? void 0 : S.year) === "2-digit" && (W = "y"), at(d.value, A, W);
|
|
1070
|
+
}), te = E(() => {
|
|
1071
1071
|
var W, $;
|
|
1072
|
-
const
|
|
1072
|
+
const A = {
|
|
1073
1073
|
...Ge.defaultConfig,
|
|
1074
1074
|
allowInput: !0,
|
|
1075
1075
|
dateFormat: H.value,
|
|
@@ -1086,21 +1086,21 @@ const ct = ["placeholder", "disabled"], st = { class: "cl-absolute cl-bg-white c
|
|
|
1086
1086
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
1087
1087
|
time_24hr: typeof ((W = h.value) == null ? void 0 : W.hour12) > "u" || (($ = h.value) == null ? void 0 : $.hour12) === !1
|
|
1088
1088
|
};
|
|
1089
|
-
return l.date !== null && (
|
|
1089
|
+
return l.date !== null && (A.defaultDate = l.date), A;
|
|
1090
1090
|
});
|
|
1091
|
-
function de(
|
|
1092
|
-
const
|
|
1093
|
-
|
|
1091
|
+
function de(A, W, $) {
|
|
1092
|
+
const S = A.length > 0 ? A[0] : null;
|
|
1093
|
+
S !== l.date && !j.value && t("update:date", S), j.value = !1;
|
|
1094
1094
|
}
|
|
1095
1095
|
function T() {
|
|
1096
|
-
|
|
1096
|
+
j.value = !0, t("update:date", null);
|
|
1097
1097
|
}
|
|
1098
1098
|
function V() {
|
|
1099
1099
|
if (c.value !== null) {
|
|
1100
|
-
let
|
|
1101
|
-
|
|
1100
|
+
let A = new Date();
|
|
1101
|
+
A.setHours(12, 0, 0, 0);
|
|
1102
1102
|
let W;
|
|
1103
|
-
l.type === "time" ? W = l.min.toDateFromTime() : W = new Date(l.min), W >
|
|
1103
|
+
l.type === "time" ? W = l.min.toDateFromTime() : W = new Date(l.min), W > A && (A = W), j.value = !0, t("update:date", A);
|
|
1104
1104
|
}
|
|
1105
1105
|
}
|
|
1106
1106
|
function ae() {
|
|
@@ -1109,61 +1109,61 @@ const ct = ["placeholder", "disabled"], st = { class: "cl-absolute cl-bg-white c
|
|
|
1109
1109
|
function Z() {
|
|
1110
1110
|
c.value !== null && (c.value.set(te.value), c.value.config.onChange.push(de));
|
|
1111
1111
|
}
|
|
1112
|
-
function
|
|
1113
|
-
c.value !== null && c.value.setDate(
|
|
1112
|
+
function pe(A) {
|
|
1113
|
+
c.value !== null && c.value.setDate(A, !0);
|
|
1114
1114
|
}
|
|
1115
1115
|
function we() {
|
|
1116
1116
|
c.value !== null && c.value.clear();
|
|
1117
1117
|
}
|
|
1118
|
-
function
|
|
1118
|
+
function O() {
|
|
1119
1119
|
c.value !== null && (c.value.destroy(), c.value = null);
|
|
1120
1120
|
}
|
|
1121
1121
|
function U() {
|
|
1122
|
-
let
|
|
1122
|
+
let A = l.dateTimePlaceholder;
|
|
1123
1123
|
switch (l.type) {
|
|
1124
1124
|
case "date":
|
|
1125
|
-
|
|
1125
|
+
A = l.datePlaceholder === "" ? m("calendar.datePlaceholder") : l.datePlaceholder;
|
|
1126
1126
|
break;
|
|
1127
1127
|
case "datetime":
|
|
1128
|
-
|
|
1128
|
+
A = l.dateTimePlaceholder === "" ? m("calendar.dateTimePlaceholder") : l.dateTimePlaceholder;
|
|
1129
1129
|
break;
|
|
1130
1130
|
case "time":
|
|
1131
|
-
|
|
1131
|
+
A = l.timePlaceholder === "" ? m("calendar.timePlaceholder") : l.timePlaceholder;
|
|
1132
1132
|
break;
|
|
1133
1133
|
default:
|
|
1134
|
-
|
|
1134
|
+
A = l.dateTimePlaceholder === "" ? m("calendar.dateTimePlaceholder") : l.dateTimePlaceholder;
|
|
1135
1135
|
break;
|
|
1136
1136
|
}
|
|
1137
|
-
return
|
|
1137
|
+
return A;
|
|
1138
1138
|
}
|
|
1139
1139
|
function oe() {
|
|
1140
|
-
let
|
|
1141
|
-
return (l.type === G.TIME || l.type === G.DATETIME) && (
|
|
1140
|
+
let A;
|
|
1141
|
+
return (l.type === G.TIME || l.type === G.DATETIME) && (A = Je(l.min)), A;
|
|
1142
1142
|
}
|
|
1143
1143
|
function K() {
|
|
1144
|
-
let
|
|
1145
|
-
return (l.type === G.TIME || l.type === G.DATETIME) && (
|
|
1144
|
+
let A;
|
|
1145
|
+
return (l.type === G.TIME || l.type === G.DATETIME) && (A = Je(l.max)), A;
|
|
1146
1146
|
}
|
|
1147
|
-
return J(() => l.date, (
|
|
1148
|
-
|
|
1147
|
+
return J(() => l.date, (A, W) => {
|
|
1148
|
+
A !== null && W !== null ? A.getTime() !== W.getTime() && pe(A) : A === null && W !== null && we();
|
|
1149
1149
|
}, {
|
|
1150
1150
|
deep: !0
|
|
1151
1151
|
}), J(() => te.value, Z, {
|
|
1152
1152
|
deep: !0
|
|
1153
1153
|
}), J(() => l.type, () => {
|
|
1154
|
-
|
|
1154
|
+
O(), ye(() => ae());
|
|
1155
1155
|
}, {
|
|
1156
1156
|
immediate: !1
|
|
1157
|
-
}), Ce(() => ae()), Re(() =>
|
|
1157
|
+
}), Ce(() => ae()), Re(() => O()), n({
|
|
1158
1158
|
focus() {
|
|
1159
|
-
var
|
|
1160
|
-
(
|
|
1159
|
+
var A;
|
|
1160
|
+
(A = f.value) == null || A.focus();
|
|
1161
1161
|
}
|
|
1162
|
-
}), (
|
|
1162
|
+
}), (A, W) => (i(), g("div", fe(A.$attrs, { class: "cl-relative" }), [
|
|
1163
1163
|
u("input", fe({
|
|
1164
1164
|
ref_key: "element",
|
|
1165
1165
|
ref: f
|
|
1166
|
-
},
|
|
1166
|
+
}, A.$attrs, {
|
|
1167
1167
|
class: ["!cl-text-sm cl-border-grey-1 cl-rounded-lg focus:cl-border-blue-light focus:cl-ring-0", { "cl-bg-off-white": e.disabled }],
|
|
1168
1168
|
type: "text",
|
|
1169
1169
|
placeholder: a(v),
|
|
@@ -1233,16 +1233,16 @@ const rt = /* @__PURE__ */ me(it, [["__scopeId", "data-v-c2730954"]]), Ue = [
|
|
|
1233
1233
|
"update:value": null
|
|
1234
1234
|
},
|
|
1235
1235
|
setup(e, { expose: n, emit: t }) {
|
|
1236
|
-
const l = e, { n: o, t: r } = ne(), { debounce: s } = bl(), m = C(l.value), c = C(), f =
|
|
1236
|
+
const l = e, { n: o, t: r } = ne(), { debounce: s } = bl(), m = C(l.value), c = C(), f = E({
|
|
1237
1237
|
get: () => l.value,
|
|
1238
1238
|
set: (b) => t("update:value", b)
|
|
1239
|
-
}), d =
|
|
1239
|
+
}), d = E(() => l.disabled ? "rgba(153, 153, 153, 0.8)" : "#9acd32"), h = E(() => {
|
|
1240
1240
|
let b = (f.value - l.min) / (l.max - l.min) * 100;
|
|
1241
1241
|
return b < 35 && b > 0 ? b < 20 ? b += 0.5 : b += 0.25 : b > 65 && b < 100 && (b > 80 ? b -= 0.5 : b -= 0.25), b;
|
|
1242
|
-
}), v =
|
|
1242
|
+
}), v = E(() => l.min <= l.max && l.step > 0);
|
|
1243
1243
|
function p(b, x) {
|
|
1244
|
-
const w = (b == null ? void 0 : b.value) ?? "",
|
|
1245
|
-
f.value = l.enforceStep ? Math.ceil(
|
|
1244
|
+
const w = (b == null ? void 0 : b.value) ?? "", j = Math.max(Math.min(parseFloat(w) || l.min, l.max), l.min);
|
|
1245
|
+
f.value = l.enforceStep ? Math.ceil(j / l.step) * l.step : j, ye(() => x());
|
|
1246
1246
|
}
|
|
1247
1247
|
return J(() => l.value, () => m.value = l.value), n({
|
|
1248
1248
|
focus() {
|
|
@@ -1258,14 +1258,14 @@ const rt = /* @__PURE__ */ me(it, [["__scopeId", "data-v-c2730954"]]), Ue = [
|
|
|
1258
1258
|
u("div", ut, [
|
|
1259
1259
|
P(y(w, {
|
|
1260
1260
|
modelValue: m.value,
|
|
1261
|
-
"onUpdate:modelValue": x[0] || (x[0] = (
|
|
1261
|
+
"onUpdate:modelValue": x[0] || (x[0] = (j) => m.value = j),
|
|
1262
1262
|
class: "!cl-text-sm md:!cl-w-auto",
|
|
1263
1263
|
"input-type": "number",
|
|
1264
1264
|
min: e.min,
|
|
1265
1265
|
max: e.max,
|
|
1266
1266
|
step: e.step,
|
|
1267
1267
|
disabled: e.disabled,
|
|
1268
|
-
onInput: x[1] || (x[1] = (
|
|
1268
|
+
onInput: x[1] || (x[1] = (j) => a(s)(p, j.target, b.$forceUpdate))
|
|
1269
1269
|
}, null, 8, ["modelValue", "min", "max", "step", "disabled"]), [
|
|
1270
1270
|
[B, e.showNumericInput]
|
|
1271
1271
|
]),
|
|
@@ -1275,7 +1275,7 @@ const rt = /* @__PURE__ */ me(it, [["__scopeId", "data-v-c2730954"]]), Ue = [
|
|
|
1275
1275
|
P(u("input", {
|
|
1276
1276
|
ref_key: "sliderRef",
|
|
1277
1277
|
ref: c,
|
|
1278
|
-
"onUpdate:modelValue": x[2] || (x[2] = (
|
|
1278
|
+
"onUpdate:modelValue": x[2] || (x[2] = (j) => be(f) ? f.value = j : null),
|
|
1279
1279
|
class: "cl-align-middle cl-appearance-none cl-bg-gradient-to-r cl-border cl-border-grey-2 cl-delay-500 cl-ease-in cl-flex-1 cl-h-5 cl-mb-2 cl-outline-none cl-rounded-full cl-transition-colors cl-w-full",
|
|
1280
1280
|
style: ll({
|
|
1281
1281
|
background: `linear-gradient(to right, ${a(d)} 0%, ${a(d)} ${a(h)}%, white ${a(h)}%, white 100%)`
|
|
@@ -1382,13 +1382,19 @@ const $t = { class: "cl-flex cl-justify-between" }, kt = { class: "cl-w-full" },
|
|
|
1382
1382
|
}, St = ["type", "disabled", "min", "max", "minlength", "maxlength", "step", "placeholder", "accept", "name", "autocomplete"], Et = {
|
|
1383
1383
|
key: 2,
|
|
1384
1384
|
class: "cl-h-[5.78rem] cl-pb-2 md:cl-h-20"
|
|
1385
|
-
}, jt = {
|
|
1385
|
+
}, jt = {
|
|
1386
|
+
key: 0,
|
|
1387
|
+
class: "cl-relative"
|
|
1388
|
+
}, Ot = {
|
|
1389
|
+
class: "cl-absolute cl-right-1",
|
|
1390
|
+
style: { bottom: "1.625rem" }
|
|
1391
|
+
}, At = { class: "cl-absolute cl-bottom-2 cl-right-1" }, Mt = {
|
|
1386
1392
|
key: 0,
|
|
1387
1393
|
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"
|
|
1388
|
-
},
|
|
1394
|
+
}, It = {
|
|
1389
1395
|
key: 1,
|
|
1390
1396
|
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"
|
|
1391
|
-
},
|
|
1397
|
+
}, Nt = /* @__PURE__ */ q({
|
|
1392
1398
|
__name: "cl-ui-input",
|
|
1393
1399
|
props: {
|
|
1394
1400
|
inputType: { default: "text" },
|
|
@@ -1418,40 +1424,40 @@ const $t = { class: "cl-flex cl-justify-between" }, kt = { class: "cl-w-full" },
|
|
|
1418
1424
|
},
|
|
1419
1425
|
emits: ["update:model-value", "click", "focus", "input", "change", "validated"],
|
|
1420
1426
|
setup(e, { expose: n, emit: t }) {
|
|
1421
|
-
const l = e, o = C(null), r = C(!1), s = C(!1), m =
|
|
1427
|
+
const l = e, o = C(null), r = C(!1), s = C(!1), m = E(A), c = E(() => l.placeholderText.trim() !== "" ? l.placeholderText : l.label), f = C(0), d = E({
|
|
1422
1428
|
get: () => l.modelValue,
|
|
1423
1429
|
set: ($) => T($, !1)
|
|
1424
|
-
}), h =
|
|
1430
|
+
}), h = E({
|
|
1425
1431
|
get: () => l.modelValue,
|
|
1426
1432
|
set: ($) => de($)
|
|
1427
|
-
}), v =
|
|
1428
|
-
var $,
|
|
1433
|
+
}), v = E(() => typeof l.min == "number" ? l.min.toString() : l.min), p = E(() => typeof l.max == "number" ? l.max.toString() : l.max), b = E(() => typeof l.min == "number" ? l.min : parseFloat(l.min)), x = E(() => typeof l.max == "number" ? l.max : parseFloat(l.max)), w = E(() => l.messageWhenValid.trim() !== "" ? l.messageWhenValid : ""), j = C(!0), H = C([]), te = E(() => {
|
|
1434
|
+
var $, S;
|
|
1429
1435
|
return [
|
|
1430
1436
|
...(($ = H.value) == null ? void 0 : $.filter((R) => ((R == null ? void 0 : R.length) ?? 0) > 0)) ?? [],
|
|
1431
|
-
...((
|
|
1437
|
+
...((S = l.externalErrors) == null ? void 0 : S.filter((R) => ((R == null ? void 0 : R.length) ?? 0) > 0)) ?? []
|
|
1432
1438
|
].join(`
|
|
1433
1439
|
`);
|
|
1434
1440
|
});
|
|
1435
1441
|
async function de($) {
|
|
1436
1442
|
l.validateOn === "input" && await V($), t("update:model-value", $);
|
|
1437
1443
|
}
|
|
1438
|
-
async function T($,
|
|
1439
|
-
l.onInputFunction !== void 0 && ($ = l.onInputFunction($)), (
|
|
1444
|
+
async function T($, S) {
|
|
1445
|
+
l.onInputFunction !== void 0 && ($ = l.onInputFunction($)), (S || l.validateOn === "input") && await V($), t("update:model-value", $);
|
|
1440
1446
|
}
|
|
1441
1447
|
function V($) {
|
|
1442
|
-
const
|
|
1448
|
+
const S = {
|
|
1443
1449
|
message: "",
|
|
1444
1450
|
valid: !0
|
|
1445
1451
|
}, R = [
|
|
1446
1452
|
l.customValidationFunction === null || l.customValidationFunction === void 0 ? new Promise((xe) => {
|
|
1447
|
-
xe(
|
|
1453
|
+
xe(S);
|
|
1448
1454
|
}) : new Promise((xe) => {
|
|
1449
1455
|
xe(l.customValidationFunction(l.label, $));
|
|
1450
1456
|
})
|
|
1451
1457
|
];
|
|
1452
1458
|
return (typeof $ == "string" || typeof $ == "number" || $ instanceof Date) && (R.push(Wl(l.min, l.inputType, l.label, $)), R.push(Jl(l.max, l.inputType, l.label, $))), l.isRequired && R.push(Kl(l.label, $)), l.inputType === "email" && typeof $ == "string" && R.push(Zl(l.label, $)), Promise.all(R).then((xe) => {
|
|
1453
1459
|
const rl = [...xe.map((Se) => Se.message)], Ve = xe.some((Se) => Se.message.length > 0 && Se.valid === !1) || l.externalErrors.length > 0;
|
|
1454
|
-
Ve ? (H.value = rl, t("validated", !1, $)) : (H.value = [], t("validated", !0, $)),
|
|
1460
|
+
Ve ? (H.value = rl, t("validated", !1, $)) : (H.value = [], t("validated", !0, $)), j.value = !Ve;
|
|
1455
1461
|
});
|
|
1456
1462
|
}
|
|
1457
1463
|
function ae() {
|
|
@@ -1461,29 +1467,29 @@ const $t = { class: "cl-flex cl-justify-between" }, kt = { class: "cl-w-full" },
|
|
|
1461
1467
|
function Z($) {
|
|
1462
1468
|
ke(l.inputType) ? ($.preventDefault(), t("click", $)) : l.inputType === "checkbox" && t("click", $);
|
|
1463
1469
|
}
|
|
1464
|
-
function
|
|
1470
|
+
function pe($) {
|
|
1465
1471
|
if (o.value) {
|
|
1466
1472
|
o.value.stepUp(), o.value.focus(), T(o.value.valueAsNumber, !1);
|
|
1467
|
-
const
|
|
1473
|
+
const S = {
|
|
1468
1474
|
target: o.value
|
|
1469
1475
|
};
|
|
1470
|
-
t("input", $, o.value.valueAsNumber);
|
|
1476
|
+
t("input", S, o.value.valueAsNumber), t("change", $, o.value.valueAsNumber);
|
|
1471
1477
|
}
|
|
1472
1478
|
}
|
|
1473
|
-
function we() {
|
|
1479
|
+
function we($) {
|
|
1474
1480
|
if (o.value) {
|
|
1475
1481
|
o.value.stepDown(), o.value.focus(), T(o.value.valueAsNumber, !1);
|
|
1476
|
-
const
|
|
1482
|
+
const S = {
|
|
1477
1483
|
target: o.value
|
|
1478
1484
|
};
|
|
1479
|
-
t("input", $, o.value.valueAsNumber);
|
|
1485
|
+
t("input", S, o.value.valueAsNumber), t("change", $, o.value.valueAsNumber);
|
|
1480
1486
|
}
|
|
1481
1487
|
}
|
|
1482
|
-
function
|
|
1488
|
+
function O($) {
|
|
1483
1489
|
r.value = $;
|
|
1484
1490
|
}
|
|
1485
1491
|
function U() {
|
|
1486
|
-
s.value = !0,
|
|
1492
|
+
s.value = !0, O(!1);
|
|
1487
1493
|
}
|
|
1488
1494
|
function oe() {
|
|
1489
1495
|
f.value++;
|
|
@@ -1491,15 +1497,15 @@ const $t = { class: "cl-flex cl-justify-between" }, kt = { class: "cl-w-full" },
|
|
|
1491
1497
|
function K($) {
|
|
1492
1498
|
$.target.blur();
|
|
1493
1499
|
}
|
|
1494
|
-
function
|
|
1500
|
+
function A() {
|
|
1495
1501
|
var R;
|
|
1496
1502
|
let $ = !0;
|
|
1497
|
-
const
|
|
1498
|
-
return r.value ? $ =
|
|
1503
|
+
const S = m.value;
|
|
1504
|
+
return r.value ? $ = S : s.value && ((R = d.value) == null ? void 0 : R.toString().trim()) === "" && ($ = !1), $;
|
|
1499
1505
|
}
|
|
1500
1506
|
async function W($) {
|
|
1501
|
-
const
|
|
1502
|
-
l.validateOn === "change" && await V(
|
|
1507
|
+
const S = Qe($, l.inputType);
|
|
1508
|
+
l.validateOn === "change" && await V(S), t("change", $, S);
|
|
1503
1509
|
}
|
|
1504
1510
|
return Ce(() => {
|
|
1505
1511
|
l.validateImmediately && T(l.modelValue, !0);
|
|
@@ -1510,13 +1516,13 @@ const $t = { class: "cl-flex cl-justify-between" }, kt = { class: "cl-w-full" },
|
|
|
1510
1516
|
var $;
|
|
1511
1517
|
($ = o.value) == null || $.focus();
|
|
1512
1518
|
}
|
|
1513
|
-
}), ($,
|
|
1519
|
+
}), ($, S) => (i(), g("div", {
|
|
1514
1520
|
key: f.value,
|
|
1515
1521
|
class: "cl-align-top cl-border-none cl-inline-block cl-text-left"
|
|
1516
1522
|
}, [
|
|
1517
1523
|
u("div", {
|
|
1518
|
-
onMouseenter:
|
|
1519
|
-
onMouseleave:
|
|
1524
|
+
onMouseenter: S[11] || (S[11] = (R) => O(!0)),
|
|
1525
|
+
onMouseleave: S[12] || (S[12] = (R) => O(!1))
|
|
1520
1526
|
}, [
|
|
1521
1527
|
u("div", $t, [
|
|
1522
1528
|
u("div", kt, [
|
|
@@ -1531,14 +1537,14 @@ const $t = { class: "cl-flex cl-justify-between" }, kt = { class: "cl-w-full" },
|
|
|
1531
1537
|
key: 0,
|
|
1532
1538
|
ref_key: "inputElement",
|
|
1533
1539
|
ref: o,
|
|
1534
|
-
"onUpdate:modelValue":
|
|
1540
|
+
"onUpdate:modelValue": S[0] || (S[0] = (R) => be(d) ? d.value = R : null)
|
|
1535
1541
|
}, $.$attrs, {
|
|
1536
1542
|
class: ["cl-block cl-border cl-duration-300 cl-h-full cl-mb-1 cl-transition cl-w-full focus:cl-outline-none", {
|
|
1537
1543
|
"hover:!cl-border-grey-3": e.disabled === !1 && !a(ke)(e.inputType),
|
|
1538
1544
|
"!cl-cursor-default": e.disabled,
|
|
1539
|
-
"!cl-border-danger-default": !
|
|
1540
|
-
"!cl-border-primary-default":
|
|
1541
|
-
"cl-border-grey-0 focus:cl-border-blue-light":
|
|
1545
|
+
"!cl-border-danger-default": !j.value,
|
|
1546
|
+
"!cl-border-primary-default": j.value && e.highlightWhenValid,
|
|
1547
|
+
"cl-border-grey-0 focus:cl-border-blue-light": j.value && !a(ke)(e.inputType),
|
|
1542
1548
|
"!cl-p-2": e.inputType === "checkbox" || e.inputType === "radio",
|
|
1543
1549
|
"cl-p-3 cl-rounded-lg": !a(ke)(e.inputType),
|
|
1544
1550
|
[`${e.inputSpecificClasses}`]: e.inputSpecificClasses !== ""
|
|
@@ -1555,27 +1561,27 @@ const $t = { class: "cl-flex cl-justify-between" }, kt = { class: "cl-w-full" },
|
|
|
1555
1561
|
accept: e.fileExtensions,
|
|
1556
1562
|
name: e.group,
|
|
1557
1563
|
autocomplete: e.autocomplete,
|
|
1558
|
-
onClick:
|
|
1559
|
-
onFocus:
|
|
1560
|
-
onBlur:
|
|
1564
|
+
onClick: S[1] || (S[1] = (R) => Z(R)),
|
|
1565
|
+
onFocus: S[2] || (S[2] = (R) => t("focus")),
|
|
1566
|
+
onBlur: S[3] || (S[3] = Q((R) => {
|
|
1561
1567
|
U(), oe();
|
|
1562
1568
|
}, ["self"])),
|
|
1563
1569
|
onMousewheelPassive: K,
|
|
1564
|
-
onInput:
|
|
1570
|
+
onInput: S[4] || (S[4] = (R) => {
|
|
1565
1571
|
t("input", R, a(Qe)(R, e.inputType));
|
|
1566
1572
|
}),
|
|
1567
1573
|
onChange: W
|
|
1568
1574
|
}), null, 16, St)), [
|
|
1569
1575
|
[dl, a(d)]
|
|
1570
|
-
]) : a(Ze)(e.inputType) ? (i(),
|
|
1576
|
+
]) : a(Ze)(e.inputType) ? (i(), F(a(rt), fe({ key: 1 }, $.$attrs, {
|
|
1571
1577
|
ref_key: "inputElement",
|
|
1572
1578
|
ref: o,
|
|
1573
1579
|
date: a(h),
|
|
1574
|
-
"onUpdate:date":
|
|
1580
|
+
"onUpdate:date": S[5] || (S[5] = (R) => be(h) ? h.value = R : null),
|
|
1575
1581
|
class: ["cl-block cl-duration-300 cl-h-fit cl-mb-1 cl-rounded-lg cl-text-sm cl-transition cl-w-full focus:cl-outline-none", {
|
|
1576
1582
|
"hover:cl-border-grey-3": !e.disabled,
|
|
1577
|
-
"!cl-border-danger-default": !
|
|
1578
|
-
"!cl-border-primary-default":
|
|
1583
|
+
"!cl-border-danger-default": !j.value,
|
|
1584
|
+
"!cl-border-primary-default": j.value && e.highlightWhenValid
|
|
1579
1585
|
}],
|
|
1580
1586
|
disabled: e.disabled,
|
|
1581
1587
|
type: a(xt)(e.inputType),
|
|
@@ -1585,63 +1591,62 @@ const $t = { class: "cl-flex cl-justify-between" }, kt = { class: "cl-w-full" },
|
|
|
1585
1591
|
"date-time-placeholder": a(c),
|
|
1586
1592
|
"time-placeholder": a(c),
|
|
1587
1593
|
onBlur: Q(U, ["self"]),
|
|
1588
|
-
onFocus:
|
|
1594
|
+
onFocus: S[6] || (S[6] = (R) => t("focus"))
|
|
1589
1595
|
}), null, 16, ["date", "class", "disabled", "type", "min", "max", "date-placeholder", "date-time-placeholder", "time-placeholder", "onBlur"])) : e.inputType === "range" && typeof a(d) == "number" ? (i(), g("div", Et, [
|
|
1590
1596
|
y(a(pt), {
|
|
1591
1597
|
ref_key: "inputElement",
|
|
1592
1598
|
ref: o,
|
|
1593
1599
|
value: a(d),
|
|
1594
|
-
"onUpdate:value":
|
|
1600
|
+
"onUpdate:value": S[7] || (S[7] = (R) => be(d) ? d.value = R : null),
|
|
1595
1601
|
min: a(b),
|
|
1596
1602
|
max: a(x),
|
|
1597
1603
|
step: e.step,
|
|
1598
1604
|
disabled: e.disabled,
|
|
1599
1605
|
"show-numeric-input": !1,
|
|
1600
1606
|
onBlur: Q(U, ["self"]),
|
|
1601
|
-
onFocus:
|
|
1607
|
+
onFocus: S[8] || (S[8] = (R) => t("focus"))
|
|
1602
1608
|
}, null, 8, ["value", "min", "max", "step", "disabled", "onBlur"])
|
|
1603
1609
|
])) : I("", !0),
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
])
|
|
1610
|
+
y(he, {
|
|
1611
|
+
name: "fade",
|
|
1612
|
+
duration: 300
|
|
1613
|
+
}, {
|
|
1614
|
+
default: L(() => [
|
|
1615
|
+
e.inputType === "number" && !e.disabled && e.showArrows ? P((i(), g("div", jt, [
|
|
1616
|
+
u("div", Ot, [
|
|
1617
|
+
y(a(N), {
|
|
1618
|
+
icon: "ph:caret-up-bold",
|
|
1619
|
+
class: "cl-bg-link-default cl-rounded-md cl-text-sm cl-text-white hover:cl-bg-link-light hover:cl-cursor-pointer",
|
|
1620
|
+
onClick: pe,
|
|
1621
|
+
onMousedown: S[9] || (S[9] = Q(() => {
|
|
1622
|
+
}, ["prevent"]))
|
|
1623
|
+
})
|
|
1624
|
+
]),
|
|
1625
|
+
u("div", At, [
|
|
1626
|
+
y(a(N), {
|
|
1627
|
+
icon: "ph:caret-down-bold",
|
|
1628
|
+
class: "cl-bg-link-default cl-rounded-md cl-text-sm cl-text-white hover:cl-bg-link-light hover:cl-cursor-pointer",
|
|
1629
|
+
onClick: we,
|
|
1630
|
+
onMousedown: S[10] || (S[10] = Q(() => {
|
|
1631
|
+
}, ["prevent"]))
|
|
1632
|
+
})
|
|
1633
|
+
])
|
|
1634
|
+
], 512)), [
|
|
1635
|
+
[B, r.value]
|
|
1636
|
+
]) : I("", !0)
|
|
1637
|
+
]),
|
|
1638
|
+
_: 1
|
|
1639
|
+
})
|
|
1635
1640
|
], 32),
|
|
1636
|
-
|
|
1637
|
-
!
|
|
1641
|
+
j.value && a(w) ? (i(), g("div", Mt, k(a(w)), 1)) : I("", !0),
|
|
1642
|
+
!j.value && a(te).length > 0 && e.showValidationMessages ? (i(), g("div", It, k(a(te)), 1)) : I("", !0)
|
|
1638
1643
|
]));
|
|
1639
1644
|
}
|
|
1640
1645
|
});
|
|
1641
|
-
const re = /* @__PURE__ */ me(
|
|
1646
|
+
const re = /* @__PURE__ */ me(Nt, [["__scopeId", "data-v-844ce915"]]), Dt = { class: "cl-align-items-center cl-bg-black cl-bg-opacity-40 cl-bottom-0 cl-fixed cl-flex cl-h-screen cl-justify-center cl-left-0 cl-right-0 cl-top-0 cl-w-full cl-z-40" }, qt = ["onKeypress"], Rt = { class: "cl-overflow-y-auto cl-overscroll-y-none cl-p-2 cl-w-full" }, Pt = {
|
|
1642
1647
|
inheritAttrs: !1
|
|
1643
1648
|
}, sl = /* @__PURE__ */ q({
|
|
1644
|
-
...
|
|
1649
|
+
...Pt,
|
|
1645
1650
|
__name: "cl-ui-modal",
|
|
1646
1651
|
props: {
|
|
1647
1652
|
headerColour: { default: "white" },
|
|
@@ -1660,11 +1665,11 @@ const re = /* @__PURE__ */ me(Mt, [["__scopeId", "data-v-9a92c725"]]), It = { cl
|
|
|
1660
1665
|
s.key === "Escape" && o();
|
|
1661
1666
|
}
|
|
1662
1667
|
return (s, m) => (i(), g(z, null, [
|
|
1663
|
-
|
|
1664
|
-
(i(),
|
|
1665
|
-
y(
|
|
1666
|
-
default:
|
|
1667
|
-
P(u("div",
|
|
1668
|
+
M(s.$slots, "trigger", le(ce({ open: l }))),
|
|
1669
|
+
(i(), F(ze, { to: "body" }, [
|
|
1670
|
+
y(he, { name: "fade" }, {
|
|
1671
|
+
default: L(() => [
|
|
1672
|
+
P(u("div", Dt, [
|
|
1668
1673
|
u("div", fe(s.$attrs, {
|
|
1669
1674
|
class: ["cl-bg-white cl-flex cl-flex-wrap cl-max-h-[calc(100vh-8rem)] cl-mx-0 cl-my-auto cl-overflow-y-auto cl-overscroll-y-none cl-relative cl-rounded-lg cl-shadow-lg", {
|
|
1670
1675
|
"lg:cl-w-2/12 cl-w-10/12": e.size === "x-small",
|
|
@@ -1683,7 +1688,7 @@ const re = /* @__PURE__ */ me(Mt, [["__scopeId", "data-v-9a92c725"]]), It = { cl
|
|
|
1683
1688
|
onClick: o
|
|
1684
1689
|
}, [
|
|
1685
1690
|
y(a(N), { icon: "ph:x" })
|
|
1686
|
-
], 42,
|
|
1691
|
+
], 42, qt), [
|
|
1687
1692
|
[B, !e.preventClose]
|
|
1688
1693
|
]),
|
|
1689
1694
|
u("div", {
|
|
@@ -1693,12 +1698,12 @@ const re = /* @__PURE__ */ me(Mt, [["__scopeId", "data-v-9a92c725"]]), It = { cl
|
|
|
1693
1698
|
"cl-bg-primary-default cl-text-white": e.headerColour === "primary"
|
|
1694
1699
|
}])
|
|
1695
1700
|
}, [
|
|
1696
|
-
|
|
1701
|
+
M(s.$slots, "title")
|
|
1697
1702
|
], 2),
|
|
1698
|
-
u("div",
|
|
1699
|
-
|
|
1703
|
+
u("div", Rt, [
|
|
1704
|
+
M(s.$slots, "default", le(ce({ close: o })))
|
|
1700
1705
|
]),
|
|
1701
|
-
|
|
1706
|
+
M(s.$slots, "footer", le(ce({ close: o })))
|
|
1702
1707
|
], 16)
|
|
1703
1708
|
], 512), [
|
|
1704
1709
|
[B, t.value]
|
|
@@ -1709,7 +1714,7 @@ const re = /* @__PURE__ */ me(Mt, [["__scopeId", "data-v-9a92c725"]]), It = { cl
|
|
|
1709
1714
|
]))
|
|
1710
1715
|
], 64));
|
|
1711
1716
|
}
|
|
1712
|
-
}),
|
|
1717
|
+
}), Ut = { class: "cl-bg-grey-0 cl-flex cl-p-1" }, Bt = {
|
|
1713
1718
|
key: 0,
|
|
1714
1719
|
class: "cl-w-1/2"
|
|
1715
1720
|
}, Ee = /* @__PURE__ */ q({
|
|
@@ -1723,8 +1728,8 @@ const re = /* @__PURE__ */ me(Mt, [["__scopeId", "data-v-9a92c725"]]), It = { cl
|
|
|
1723
1728
|
"clear-object": null
|
|
1724
1729
|
},
|
|
1725
1730
|
setup(e) {
|
|
1726
|
-
return (n, t) => (i(), g("div",
|
|
1727
|
-
e.additionalText !== "" ? (i(), g("div",
|
|
1731
|
+
return (n, t) => (i(), g("div", Ut, [
|
|
1732
|
+
e.additionalText !== "" ? (i(), g("div", Bt, k(e.additionalText), 1)) : I("", !0),
|
|
1728
1733
|
u("div", {
|
|
1729
1734
|
class: D({
|
|
1730
1735
|
"cl-w-1/2": e.additionalText !== "",
|
|
@@ -1744,10 +1749,10 @@ const re = /* @__PURE__ */ me(Mt, [["__scopeId", "data-v-9a92c725"]]), It = { cl
|
|
|
1744
1749
|
])
|
|
1745
1750
|
]));
|
|
1746
1751
|
}
|
|
1747
|
-
}),
|
|
1752
|
+
}), zt = {
|
|
1748
1753
|
key: 0,
|
|
1749
1754
|
class: "cl-w-1/2"
|
|
1750
|
-
},
|
|
1755
|
+
}, Lt = { class: "cl-float-right cl-py-1" }, Ye = /* @__PURE__ */ q({
|
|
1751
1756
|
__name: "cl-ui-combo-box-selectable",
|
|
1752
1757
|
props: {
|
|
1753
1758
|
isCreateNewOption: { type: Boolean, default: !1 },
|
|
@@ -1762,10 +1767,10 @@ const re = /* @__PURE__ */ me(Mt, [["__scopeId", "data-v-9a92c725"]]), It = { cl
|
|
|
1762
1767
|
"option-highlighted": null
|
|
1763
1768
|
},
|
|
1764
1769
|
setup(e, { emit: n }) {
|
|
1765
|
-
const t = e, l =
|
|
1770
|
+
const t = e, l = E(() => {
|
|
1766
1771
|
var f;
|
|
1767
1772
|
return ((f = t.option) == null ? void 0 : f.name) ?? t.text;
|
|
1768
|
-
}), o =
|
|
1773
|
+
}), o = E(() => {
|
|
1769
1774
|
var f;
|
|
1770
1775
|
return ((f = t.option) == null ? void 0 : f.parentName) ?? "";
|
|
1771
1776
|
}), r = C(!1);
|
|
@@ -1791,14 +1796,14 @@ const re = /* @__PURE__ */ me(Mt, [["__scopeId", "data-v-9a92c725"]]), It = { cl
|
|
|
1791
1796
|
onMousemove: d[0] || (d[0] = (p) => m(!0)),
|
|
1792
1797
|
onMouseleave: d[1] || (d[1] = (p) => m(!1))
|
|
1793
1798
|
}, [
|
|
1794
|
-
e.option !== null && ((h = e.option) == null ? void 0 : h.parentId) !== 0 && ((v = e.option) == null ? void 0 : v.parentId) !== void 0 ? (i(), g("div",
|
|
1799
|
+
e.option !== null && ((h = e.option) == null ? void 0 : h.parentId) !== 0 && ((v = e.option) == null ? void 0 : v.parentId) !== void 0 ? (i(), g("div", zt, k(a(o)), 1)) : I("", !0),
|
|
1795
1800
|
u("div", {
|
|
1796
1801
|
class: D({
|
|
1797
1802
|
"cl-w-1/2": a(o) !== "",
|
|
1798
1803
|
"cl-w-full": a(o) === ""
|
|
1799
1804
|
})
|
|
1800
1805
|
}, k(a(l)), 3),
|
|
1801
|
-
P(u("div",
|
|
1806
|
+
P(u("div", Lt, [
|
|
1802
1807
|
y(a(N), {
|
|
1803
1808
|
class: D(["cl-transition-colors", {
|
|
1804
1809
|
"cl-text-white": r.value,
|
|
@@ -1812,7 +1817,7 @@ const re = /* @__PURE__ */ me(Mt, [["__scopeId", "data-v-9a92c725"]]), It = { cl
|
|
|
1812
1817
|
], 34);
|
|
1813
1818
|
};
|
|
1814
1819
|
}
|
|
1815
|
-
}),
|
|
1820
|
+
}), Ft = ["onKeyup"], Vt = { class: "cl-flex" }, Gt = { key: 5 }, Ht = /* @__PURE__ */ q({
|
|
1816
1821
|
__name: "cl-ui-combo-box-search",
|
|
1817
1822
|
props: {
|
|
1818
1823
|
loading: { type: Boolean, default: !1 },
|
|
@@ -1833,7 +1838,7 @@ const re = /* @__PURE__ */ me(Mt, [["__scopeId", "data-v-9a92c725"]]), It = { cl
|
|
|
1833
1838
|
"hide-dropdown": null
|
|
1834
1839
|
},
|
|
1835
1840
|
setup(e, { emit: n }) {
|
|
1836
|
-
const t = e, { t: l } = ne(), o = C(""), r = C(!1), s = C(-1), m =
|
|
1841
|
+
const t = e, { t: l } = ne(), o = C(""), r = C(!1), s = C(-1), m = E(() => r.value ? -1 : 0), c = C();
|
|
1837
1842
|
function f(T) {
|
|
1838
1843
|
(T === void 0 || (T == null ? void 0 : T.code.startsWith("Arrow")) === !1 && (T == null ? void 0 : T.code.startsWith("Control")) === !1 && (T == null ? void 0 : T.code.startsWith("Shift")) === !1 && (T == null ? void 0 : T.code.startsWith("Tab")) === !1 && (T == null ? void 0 : T.code) !== "Enter") && (n("search", o.value), s.value = -2);
|
|
1839
1844
|
}
|
|
@@ -1847,10 +1852,10 @@ const re = /* @__PURE__ */ me(Mt, [["__scopeId", "data-v-9a92c725"]]), It = { cl
|
|
|
1847
1852
|
n("hide-dropdown");
|
|
1848
1853
|
}
|
|
1849
1854
|
function p(T) {
|
|
1850
|
-
s.value < t.results.length - 1 ? (s.value === -2 && o.value === "" && s.value++, s.value++) : s.value = T,
|
|
1855
|
+
s.value < t.results.length - 1 ? (s.value === -2 && o.value === "" && s.value++, s.value++) : s.value = T, j();
|
|
1851
1856
|
}
|
|
1852
1857
|
function b(T) {
|
|
1853
|
-
s.value > T ? s.value-- : s.value = t.results.length - 1,
|
|
1858
|
+
s.value > T ? s.value-- : s.value = t.results.length - 1, j();
|
|
1854
1859
|
}
|
|
1855
1860
|
function x() {
|
|
1856
1861
|
s.value >= 0 && t.results !== void 0 ? d(t.results[s.value].id) : s.value === -1 && h();
|
|
@@ -1864,7 +1869,7 @@ const re = /* @__PURE__ */ me(Mt, [["__scopeId", "data-v-9a92c725"]]), It = { cl
|
|
|
1864
1869
|
ae >= 0 && (V[ae].focus(), v());
|
|
1865
1870
|
}
|
|
1866
1871
|
}
|
|
1867
|
-
function
|
|
1872
|
+
function j() {
|
|
1868
1873
|
var T;
|
|
1869
1874
|
t.results && t.results.length > 1 && ((T = c.value) == null || T.scrollTo(0, (s.value + 1) * 34 - 34 * 2));
|
|
1870
1875
|
}
|
|
@@ -1899,7 +1904,7 @@ const re = /* @__PURE__ */ me(Mt, [["__scopeId", "data-v-9a92c725"]]), It = { cl
|
|
|
1899
1904
|
],
|
|
1900
1905
|
onKeyup: Te(Q(x, ["prevent", "stop"]), ["enter"])
|
|
1901
1906
|
}, [
|
|
1902
|
-
u("div",
|
|
1907
|
+
u("div", Vt, [
|
|
1903
1908
|
y(re, {
|
|
1904
1909
|
modelValue: o.value,
|
|
1905
1910
|
"onUpdate:modelValue": V[0] || (V[0] = (Z) => o.value = Z),
|
|
@@ -1913,28 +1918,28 @@ const re = /* @__PURE__ */ me(Mt, [["__scopeId", "data-v-9a92c725"]]), It = { cl
|
|
|
1913
1918
|
[B, e.loading]
|
|
1914
1919
|
])
|
|
1915
1920
|
]),
|
|
1916
|
-
e.currentObjectName !== "" ? (i(),
|
|
1921
|
+
e.currentObjectName !== "" ? (i(), F(Ee, {
|
|
1917
1922
|
key: 0,
|
|
1918
1923
|
"show-clear-button": e.canClearSelectedObject,
|
|
1919
1924
|
text: e.currentObjectName,
|
|
1920
1925
|
onClearObject: V[1] || (V[1] = (Z) => T.$emit("clear-object"))
|
|
1921
1926
|
}, null, 8, ["show-clear-button", "text"])) : I("", !0),
|
|
1922
|
-
e.objectParentType !== "" && e.results !== void 0 && e.results.length > 0 && e.errorMessage === "" ? (i(),
|
|
1927
|
+
e.objectParentType !== "" && e.results !== void 0 && e.results.length > 0 && e.errorMessage === "" ? (i(), F(Ee, {
|
|
1923
1928
|
key: 1,
|
|
1924
1929
|
text: e.objectType,
|
|
1925
1930
|
"additional-text": e.objectParentType,
|
|
1926
1931
|
class: "cl-bg-grey-2 cl-mt-1"
|
|
1927
1932
|
}, null, 8, ["text", "additional-text"])) : I("", !0),
|
|
1928
|
-
e.results !== null && ((ae = e.results) == null ? void 0 : ae.length) === 0 && o.value.trim() !== "" && e.canCreateNewObject === !1 && e.errorMessage === "" ? (i(),
|
|
1933
|
+
e.results !== null && ((ae = e.results) == null ? void 0 : ae.length) === 0 && o.value.trim() !== "" && e.canCreateNewObject === !1 && e.errorMessage === "" ? (i(), F(Ee, {
|
|
1929
1934
|
key: 2,
|
|
1930
1935
|
text: a(l)("comboBox.noResults", { value: o.value })
|
|
1931
1936
|
}, null, 8, ["text"])) : I("", !0),
|
|
1932
|
-
e.errorMessage !== "" ? (i(),
|
|
1937
|
+
e.errorMessage !== "" ? (i(), F(Ee, {
|
|
1933
1938
|
key: 3,
|
|
1934
1939
|
class: "!cl-bg-danger-light cl-border-danger-light cl-rounded cl-text-danger-dark",
|
|
1935
1940
|
text: a(l)("comboBox.errorMessage", { error: e.errorMessage })
|
|
1936
1941
|
}, null, 8, ["text"])) : I("", !0),
|
|
1937
|
-
r.value ? (i(),
|
|
1942
|
+
r.value ? (i(), F(Ye, {
|
|
1938
1943
|
key: 4,
|
|
1939
1944
|
"is-create-new-option": !0,
|
|
1940
1945
|
text: a(l)("comboBox.addPrompt", { value: o.value, object: e.objectType }),
|
|
@@ -1943,20 +1948,20 @@ const re = /* @__PURE__ */ me(Mt, [["__scopeId", "data-v-9a92c725"]]), It = { cl
|
|
|
1943
1948
|
onCreateObject: h,
|
|
1944
1949
|
onOptionHighlighted: te
|
|
1945
1950
|
}, null, 8, ["text", "selected-index"])) : I("", !0),
|
|
1946
|
-
e.errorMessage === "" && e.results !== null ? (i(), g("div",
|
|
1947
|
-
(i(!0), g(z, null, _(e.results, (Z,
|
|
1948
|
-
key:
|
|
1951
|
+
e.errorMessage === "" && e.results !== null ? (i(), g("div", Gt, [
|
|
1952
|
+
(i(!0), g(z, null, _(e.results, (Z, pe) => (i(), F(Ye, {
|
|
1953
|
+
key: pe,
|
|
1949
1954
|
option: Z,
|
|
1950
|
-
index:
|
|
1955
|
+
index: pe,
|
|
1951
1956
|
"selected-index": s.value,
|
|
1952
1957
|
onSelectObject: d,
|
|
1953
1958
|
onOptionHighlighted: te
|
|
1954
1959
|
}, null, 8, ["option", "index", "selected-index"]))), 128))
|
|
1955
1960
|
])) : I("", !0)
|
|
1956
|
-
], 40,
|
|
1961
|
+
], 40, Ft);
|
|
1957
1962
|
};
|
|
1958
1963
|
}
|
|
1959
|
-
}),
|
|
1964
|
+
}), Wt = { class: "cl-flex" }, Jt = { class: "cl-relative cl-right-20 cl-top-0.5" }, Kt = { class: "cl-absolute cl-flex cl-float-right cl-font-semibold cl-mt-2 cl-text-danger-default cl-text-sm" }, Zt = { class: "cl-ml-4 cl-w-11/12" }, Qt = { class: "cl-p-2 cl-text-right cl-w-full" }, Yt = /* @__PURE__ */ q({
|
|
1960
1965
|
__name: "cl-ui-combo-box",
|
|
1961
1966
|
props: {
|
|
1962
1967
|
loading: { type: Boolean, default: !1 },
|
|
@@ -1982,31 +1987,31 @@ const re = /* @__PURE__ */ me(Mt, [["__scopeId", "data-v-9a92c725"]]), It = { cl
|
|
|
1982
1987
|
"update:current-object": null
|
|
1983
1988
|
},
|
|
1984
1989
|
setup(e, { expose: n, emit: t }) {
|
|
1985
|
-
const l = e, { t: o } = ne(), r = C(!1), s =
|
|
1990
|
+
const l = e, { t: o } = ne(), r = C(!1), s = E({
|
|
1986
1991
|
get: () => l.currentObject,
|
|
1987
|
-
set: (
|
|
1988
|
-
}), m = C(null), c = C(null), f =
|
|
1989
|
-
function b(
|
|
1990
|
-
l.disabled || (typeof
|
|
1992
|
+
set: (O) => t("update:current-object", O)
|
|
1993
|
+
}), m = C(null), c = C(null), f = E(() => pe()), d = C(""), h = C(""), v = C(), p = C(!0);
|
|
1994
|
+
function b(O) {
|
|
1995
|
+
l.disabled || (typeof O < "u" ? r.value = O : r.value = !r.value);
|
|
1991
1996
|
}
|
|
1992
|
-
function x(
|
|
1993
|
-
d.value =
|
|
1997
|
+
function x(O) {
|
|
1998
|
+
d.value = O, t("search", O);
|
|
1994
1999
|
}
|
|
1995
|
-
function w(
|
|
1996
|
-
h.value =
|
|
2000
|
+
function w(O) {
|
|
2001
|
+
h.value = O, t("search-parent", O);
|
|
1997
2002
|
}
|
|
1998
|
-
function
|
|
2003
|
+
function j() {
|
|
1999
2004
|
s.value = null, b(!1);
|
|
2000
2005
|
}
|
|
2001
|
-
function H(
|
|
2002
|
-
const U = te(
|
|
2006
|
+
function H(O) {
|
|
2007
|
+
const U = te(O);
|
|
2003
2008
|
s.value = U, b(!1);
|
|
2004
2009
|
}
|
|
2005
|
-
function te(
|
|
2010
|
+
function te(O) {
|
|
2006
2011
|
let U = null;
|
|
2007
2012
|
if (l.results !== null) {
|
|
2008
2013
|
for (let oe = 0; oe < l.results.length; oe++)
|
|
2009
|
-
if (l.results[oe].id ===
|
|
2014
|
+
if (l.results[oe].id === O) {
|
|
2010
2015
|
U = l.results[oe];
|
|
2011
2016
|
break;
|
|
2012
2017
|
}
|
|
@@ -2014,10 +2019,10 @@ const re = /* @__PURE__ */ me(Mt, [["__scopeId", "data-v-9a92c725"]]), It = { cl
|
|
|
2014
2019
|
return U;
|
|
2015
2020
|
}
|
|
2016
2021
|
function de() {
|
|
2017
|
-
var
|
|
2022
|
+
var O;
|
|
2018
2023
|
v.value = {
|
|
2019
2024
|
name: d.value,
|
|
2020
|
-
parentId: ((
|
|
2025
|
+
parentId: ((O = c.value) == null ? void 0 : O.id) ?? 0
|
|
2021
2026
|
}, t("create-object", v.value);
|
|
2022
2027
|
}
|
|
2023
2028
|
function T() {
|
|
@@ -2027,52 +2032,52 @@ const re = /* @__PURE__ */ me(Mt, [["__scopeId", "data-v-9a92c725"]]), It = { cl
|
|
|
2027
2032
|
}, t("create-parent-object", v.value);
|
|
2028
2033
|
}
|
|
2029
2034
|
function V() {
|
|
2030
|
-
var
|
|
2031
|
-
(
|
|
2035
|
+
var O, U;
|
|
2036
|
+
(O = l.objectCreatedResponse) != null && O.error ? He({
|
|
2032
2037
|
message: o("comboBox.createFailed", { name: d.value, error: l.objectCreatedResponse.error }),
|
|
2033
2038
|
colour: "danger",
|
|
2034
2039
|
duration: 1e4
|
|
2035
2040
|
}) : (U = l.objectCreatedResponse) != null && U.id && Z();
|
|
2036
2041
|
}
|
|
2037
2042
|
function ae() {
|
|
2038
|
-
var
|
|
2039
|
-
(
|
|
2043
|
+
var O;
|
|
2044
|
+
(O = l.parentObjectCreatedResponse) != null && O.id && (c.value = {
|
|
2040
2045
|
id: l.parentObjectCreatedResponse.id,
|
|
2041
2046
|
name: l.parentObjectCreatedResponse.name ?? ""
|
|
2042
2047
|
});
|
|
2043
2048
|
}
|
|
2044
2049
|
function Z() {
|
|
2045
|
-
var U, oe, K,
|
|
2050
|
+
var U, oe, K, A, W;
|
|
2046
2051
|
He({
|
|
2047
2052
|
message: o("comboBox.createSuccessful", { object: l.objectType, name: ((U = l.objectCreatedResponse) == null ? void 0 : U.name) ?? "" }),
|
|
2048
2053
|
colour: "primary",
|
|
2049
2054
|
duration: 1e4
|
|
2050
2055
|
});
|
|
2051
|
-
let
|
|
2052
|
-
c.value && c.value.id === ((oe = l.objectCreatedResponse) == null ? void 0 : oe.parentId) && (
|
|
2056
|
+
let O = "";
|
|
2057
|
+
c.value && c.value.id === ((oe = l.objectCreatedResponse) == null ? void 0 : oe.parentId) && (O = c.value.name), s.value = {
|
|
2053
2058
|
id: ((K = l.objectCreatedResponse) == null ? void 0 : K.id) ?? 0,
|
|
2054
|
-
name: ((
|
|
2059
|
+
name: ((A = l.objectCreatedResponse) == null ? void 0 : A.name) ?? "",
|
|
2055
2060
|
parentId: ((W = l.objectCreatedResponse) == null ? void 0 : W.parentId) ?? 0,
|
|
2056
|
-
parentName:
|
|
2061
|
+
parentName: O
|
|
2057
2062
|
};
|
|
2058
2063
|
}
|
|
2059
|
-
function
|
|
2060
|
-
let
|
|
2061
|
-
return s.value && (s.value.parentName ?
|
|
2064
|
+
function pe() {
|
|
2065
|
+
let O = "";
|
|
2066
|
+
return s.value && (s.value.parentName ? O = s.value.parentName + "; " + s.value.name : O = s.value.name), O;
|
|
2062
2067
|
}
|
|
2063
2068
|
function we() {
|
|
2064
|
-
let
|
|
2065
|
-
d.value === "" && (
|
|
2069
|
+
let O = !0;
|
|
2070
|
+
d.value === "" && (O = !1), l.objectParentType !== "" && c.value === null && (O = !1), p.value = O;
|
|
2066
2071
|
}
|
|
2067
2072
|
return J(() => l.objectCreatedResponse, () => V()), J(() => l.parentObjectCreatedResponse, () => ae()), J(() => d.value, () => we()), J(() => c.value, () => we()), n({
|
|
2068
2073
|
focus() {
|
|
2069
|
-
var
|
|
2070
|
-
(
|
|
2074
|
+
var O;
|
|
2075
|
+
(O = m.value) == null || O.focus();
|
|
2071
2076
|
}
|
|
2072
|
-
}), (
|
|
2077
|
+
}), (O, U) => {
|
|
2073
2078
|
const oe = el("cl-ui-combo-box", !0);
|
|
2074
2079
|
return i(), g("div", null, [
|
|
2075
|
-
u("div",
|
|
2080
|
+
u("div", Wt, [
|
|
2076
2081
|
y(re, {
|
|
2077
2082
|
ref_key: "inputRef",
|
|
2078
2083
|
ref: m,
|
|
@@ -2084,11 +2089,11 @@ const re = /* @__PURE__ */ me(Mt, [["__scopeId", "data-v-9a92c725"]]), It = { cl
|
|
|
2084
2089
|
"input-type": "text",
|
|
2085
2090
|
"placeholder-text": a(o)("comboBox.emptyHintText", { object: e.objectType }),
|
|
2086
2091
|
onFocus: U[1] || (U[1] = (K) => {
|
|
2087
|
-
b(!0),
|
|
2092
|
+
b(!0), O.$emit("focus");
|
|
2088
2093
|
})
|
|
2089
2094
|
}, null, 8, ["modelValue", "class", "placeholder-text"]),
|
|
2090
|
-
P(u("div",
|
|
2091
|
-
u("div",
|
|
2095
|
+
P(u("div", Jt, [
|
|
2096
|
+
u("div", Kt, [
|
|
2092
2097
|
X(k(a(o)("comboBox.required")) + " ", 1),
|
|
2093
2098
|
y(a(N), {
|
|
2094
2099
|
class: "cl-ml-1 cl-mt-1",
|
|
@@ -2125,11 +2130,11 @@ const re = /* @__PURE__ */ me(Mt, [["__scopeId", "data-v-9a92c725"]]), It = { cl
|
|
|
2125
2130
|
], 2))
|
|
2126
2131
|
]),
|
|
2127
2132
|
y(sl, { size: "x-small" }, {
|
|
2128
|
-
title:
|
|
2133
|
+
title: L(() => [
|
|
2129
2134
|
X(k(a(o)("comboBox.createTitle", { object: e.objectType })), 1)
|
|
2130
2135
|
]),
|
|
2131
|
-
trigger:
|
|
2132
|
-
P(y(
|
|
2136
|
+
trigger: L(({ open: K }) => [
|
|
2137
|
+
P(y(Ht, {
|
|
2133
2138
|
"can-create-new-object": e.canCreateNewObject,
|
|
2134
2139
|
"can-clear-selected-object": e.canClearSelectedObject,
|
|
2135
2140
|
loading: e.loading,
|
|
@@ -2141,22 +2146,22 @@ const re = /* @__PURE__ */ me(Mt, [["__scopeId", "data-v-9a92c725"]]), It = { cl
|
|
|
2141
2146
|
"is-visible": r.value,
|
|
2142
2147
|
onCreateObject: K,
|
|
2143
2148
|
onSelectObject: H,
|
|
2144
|
-
onClearObject:
|
|
2149
|
+
onClearObject: j,
|
|
2145
2150
|
onSearch: x,
|
|
2146
|
-
onHideDropdown: U[4] || (U[4] = (
|
|
2151
|
+
onHideDropdown: U[4] || (U[4] = (A) => b(!1))
|
|
2147
2152
|
}, null, 8, ["can-create-new-object", "can-clear-selected-object", "loading", "results", "object-type", "object-parent-type", "error-message", "current-object-name", "is-visible", "onCreateObject"]), [
|
|
2148
2153
|
[B, r.value]
|
|
2149
2154
|
])
|
|
2150
2155
|
]),
|
|
2151
|
-
footer:
|
|
2152
|
-
u("div",
|
|
2156
|
+
footer: L(({ close: K }) => [
|
|
2157
|
+
u("div", Qt, [
|
|
2153
2158
|
y(ve, {
|
|
2154
2159
|
class: "cl-mr-3",
|
|
2155
2160
|
colour: "default",
|
|
2156
2161
|
size: "small",
|
|
2157
2162
|
onClick: K
|
|
2158
2163
|
}, {
|
|
2159
|
-
default:
|
|
2164
|
+
default: L(() => [
|
|
2160
2165
|
X(k(a(o)("comboBox.cancel")), 1)
|
|
2161
2166
|
]),
|
|
2162
2167
|
_: 2
|
|
@@ -2165,20 +2170,20 @@ const re = /* @__PURE__ */ me(Mt, [["__scopeId", "data-v-9a92c725"]]), It = { cl
|
|
|
2165
2170
|
colour: "primary",
|
|
2166
2171
|
size: "small",
|
|
2167
2172
|
disabled: !p.value,
|
|
2168
|
-
onClick: (
|
|
2173
|
+
onClick: (A) => {
|
|
2169
2174
|
de(), K();
|
|
2170
2175
|
}
|
|
2171
2176
|
}, {
|
|
2172
|
-
default:
|
|
2177
|
+
default: L(() => [
|
|
2173
2178
|
X(k(a(o)("comboBox.create")), 1)
|
|
2174
2179
|
]),
|
|
2175
2180
|
_: 2
|
|
2176
2181
|
}, 1032, ["disabled", "onClick"])
|
|
2177
2182
|
])
|
|
2178
2183
|
]),
|
|
2179
|
-
default:
|
|
2180
|
-
u("div",
|
|
2181
|
-
e.objectParentType ? (i(),
|
|
2184
|
+
default: L(() => [
|
|
2185
|
+
u("div", Zt, [
|
|
2186
|
+
e.objectParentType ? (i(), F(oe, {
|
|
2182
2187
|
key: 0,
|
|
2183
2188
|
"current-object": c.value,
|
|
2184
2189
|
"onUpdate:currentObject": U[5] || (U[5] = (K) => c.value = K),
|
|
@@ -2208,35 +2213,35 @@ const re = /* @__PURE__ */ me(Mt, [["__scopeId", "data-v-9a92c725"]]), It = { cl
|
|
|
2208
2213
|
};
|
|
2209
2214
|
}
|
|
2210
2215
|
});
|
|
2211
|
-
function
|
|
2216
|
+
function Xt(e) {
|
|
2212
2217
|
return typeof e.id == "number" && typeof e.name == "string";
|
|
2213
2218
|
}
|
|
2214
|
-
function
|
|
2219
|
+
function _t(e) {
|
|
2215
2220
|
return typeof e.name == "string";
|
|
2216
2221
|
}
|
|
2217
|
-
const
|
|
2222
|
+
const en = {}, ln = { class: "cl-flex cl-flex-wrap cl-left-0 cl-mt-4 cl-w-full" }, tn = {
|
|
2218
2223
|
key: 0,
|
|
2219
2224
|
class: "cl-w-full"
|
|
2220
|
-
},
|
|
2225
|
+
}, nn = {
|
|
2221
2226
|
key: 1,
|
|
2222
2227
|
class: "cl-leading-10 cl-text-sm cl-w-full"
|
|
2223
|
-
},
|
|
2224
|
-
function
|
|
2225
|
-
return i(), g("div",
|
|
2226
|
-
e.$slots.default ? (i(), g("div",
|
|
2227
|
-
|
|
2228
|
+
}, an = { class: "cl-float-left" }, on = { class: "cl-float-right" };
|
|
2229
|
+
function cn(e, n) {
|
|
2230
|
+
return i(), g("div", ln, [
|
|
2231
|
+
e.$slots.default ? (i(), g("div", tn, [
|
|
2232
|
+
M(e.$slots, "default")
|
|
2228
2233
|
])) : I("", !0),
|
|
2229
|
-
e.$slots.left || e.$slots.right ? (i(), g("div",
|
|
2230
|
-
u("span",
|
|
2231
|
-
|
|
2234
|
+
e.$slots.left || e.$slots.right ? (i(), g("div", nn, [
|
|
2235
|
+
u("span", an, [
|
|
2236
|
+
M(e.$slots, "left")
|
|
2232
2237
|
]),
|
|
2233
|
-
u("span",
|
|
2234
|
-
|
|
2238
|
+
u("span", on, [
|
|
2239
|
+
M(e.$slots, "right")
|
|
2235
2240
|
])
|
|
2236
2241
|
])) : I("", !0)
|
|
2237
2242
|
]);
|
|
2238
2243
|
}
|
|
2239
|
-
const
|
|
2244
|
+
const sn = /* @__PURE__ */ me(en, [["render", cn]]);
|
|
2240
2245
|
function je(e) {
|
|
2241
2246
|
const n = e.type !== "slot" || e.slotType !== void 0 && e.field !== void 0, t = e.sortable ?? !0;
|
|
2242
2247
|
return n && t;
|
|
@@ -2245,10 +2250,10 @@ function Fe(e) {
|
|
|
2245
2250
|
const n = e.type !== "slot" || e.slotType !== void 0 && e.field !== void 0, t = e.filterable ?? !0;
|
|
2246
2251
|
return n && t;
|
|
2247
2252
|
}
|
|
2248
|
-
const
|
|
2253
|
+
const rn = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, un = { class: "cl-gap-1 cl-grid cl-grid-cols-2 cl-justify-end cl-mb-2 lg:cl-flex lg:cl-gap-2" }, dn = {
|
|
2249
2254
|
key: 1,
|
|
2250
2255
|
class: "cl-hidden lg:cl-block"
|
|
2251
|
-
},
|
|
2256
|
+
}, fn = { class: "cl-block cl-col-span-2 lg:cl-hidden" }, mn = /* @__PURE__ */ q({
|
|
2252
2257
|
__name: "cl-ui-grid-action-row",
|
|
2253
2258
|
props: {
|
|
2254
2259
|
editMode: { type: Boolean },
|
|
@@ -2260,17 +2265,17 @@ const cn = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, sn = { class: "cl-gap-1
|
|
|
2260
2265
|
setup(e) {
|
|
2261
2266
|
const { t: n } = ne();
|
|
2262
2267
|
return (t, l) => (i(), g(z, null, [
|
|
2263
|
-
u("div",
|
|
2268
|
+
u("div", rn, [
|
|
2264
2269
|
u("strong", null, k(a(n)("grid.gridTools")), 1)
|
|
2265
2270
|
]),
|
|
2266
|
-
u("div",
|
|
2267
|
-
e.columns.some((o) => o.editable) ? (i(),
|
|
2271
|
+
u("div", un, [
|
|
2272
|
+
e.columns.some((o) => o.editable) ? (i(), F(ve, {
|
|
2268
2273
|
key: 0,
|
|
2269
2274
|
size: "small",
|
|
2270
2275
|
colour: "default",
|
|
2271
2276
|
onClick: l[0] || (l[0] = Q((o) => t.$emit("update:edit-mode", !e.editMode), ["prevent"]))
|
|
2272
2277
|
}, {
|
|
2273
|
-
default:
|
|
2278
|
+
default: L(() => [
|
|
2274
2279
|
e.editMode ? (i(), g(z, { key: 0 }, [
|
|
2275
2280
|
X(k(a(n)("grid.finishEditing")), 1)
|
|
2276
2281
|
], 64)) : (i(), g(z, { key: 1 }, [
|
|
@@ -2279,26 +2284,26 @@ const cn = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, sn = { class: "cl-gap-1
|
|
|
2279
2284
|
]),
|
|
2280
2285
|
_: 1
|
|
2281
2286
|
})) : I("", !0),
|
|
2282
|
-
e.options.hideViewManager ? I("", !0) : (i(), g("div",
|
|
2283
|
-
|
|
2287
|
+
e.options.hideViewManager ? I("", !0) : (i(), g("div", dn, [
|
|
2288
|
+
M(t.$slots, "view-manager")
|
|
2284
2289
|
])),
|
|
2285
2290
|
e.columns.some((o) => a(Fe)(o) || a(je)(o)) ? (i(), g(z, { key: 2 }, [
|
|
2286
2291
|
y(ve, {
|
|
2287
2292
|
size: "small",
|
|
2288
2293
|
onClick: l[1] || (l[1] = Q((o) => t.$emit("clear-filters"), ["prevent"]))
|
|
2289
2294
|
}, {
|
|
2290
|
-
default:
|
|
2295
|
+
default: L(() => [
|
|
2291
2296
|
X(k(a(n)("grid.clearFilters")), 1)
|
|
2292
2297
|
]),
|
|
2293
2298
|
_: 1
|
|
2294
2299
|
}),
|
|
2295
|
-
u("div",
|
|
2300
|
+
u("div", fn, [
|
|
2296
2301
|
y(ve, {
|
|
2297
2302
|
class: "cl-w-full",
|
|
2298
2303
|
size: "small",
|
|
2299
2304
|
onClick: l[2] || (l[2] = Q((o) => t.$emit("update:filterPanelOpen", !e.filterPanelOpen), ["prevent"]))
|
|
2300
2305
|
}, {
|
|
2301
|
-
default:
|
|
2306
|
+
default: L(() => [
|
|
2302
2307
|
X(k(a(n)("grid.modifyFilters")), 1)
|
|
2303
2308
|
]),
|
|
2304
2309
|
_: 1
|
|
@@ -2308,10 +2313,10 @@ const cn = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, sn = { class: "cl-gap-1
|
|
|
2308
2313
|
])
|
|
2309
2314
|
], 64));
|
|
2310
2315
|
}
|
|
2311
|
-
}),
|
|
2316
|
+
}), gn = {
|
|
2312
2317
|
key: 0,
|
|
2313
2318
|
class: "cl-inline-block cl-whitespace-nowrap"
|
|
2314
|
-
},
|
|
2319
|
+
}, bn = {
|
|
2315
2320
|
key: 1,
|
|
2316
2321
|
class: "cl-inline-block cl-whitespace-nowrap"
|
|
2317
2322
|
}, Xe = /* @__PURE__ */ q({
|
|
@@ -2322,7 +2327,7 @@ const cn = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, sn = { class: "cl-gap-1
|
|
|
2322
2327
|
},
|
|
2323
2328
|
setup(e) {
|
|
2324
2329
|
const { d: n } = ne();
|
|
2325
|
-
return (t, l) => e.column.type === "slot" ?
|
|
2330
|
+
return (t, l) => e.column.type === "slot" ? M(t.$slots, e.column.name, { key: 0 }) : e.column.type === "boolean" && e.column.field !== void 0 ? (i(), F(re, {
|
|
2326
2331
|
key: 1,
|
|
2327
2332
|
"input-type": "checkbox",
|
|
2328
2333
|
"model-value": e.data[e.column.field],
|
|
@@ -2336,10 +2341,10 @@ const cn = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, sn = { class: "cl-gap-1
|
|
|
2336
2341
|
X(k(a(n)(new Date(e.data[e.column.field]), a(G).DATETIME)), 1)
|
|
2337
2342
|
], 64))
|
|
2338
2343
|
], 64)) : e.column.field !== void 0 ? (i(), g(z, { key: 3 }, [
|
|
2339
|
-
e.column.maxLength !== void 0 ? (i(), g("span",
|
|
2344
|
+
e.column.maxLength !== void 0 ? (i(), g("span", gn, k(e.data[e.column.field].trimToLength(e.column.maxLength, e.column.format !== void 0 ? e.column.format === "ellipsis" : !1)), 1)) : (i(), g("span", bn, k(e.data[e.column.field]), 1))
|
|
2340
2345
|
], 64)) : I("", !0);
|
|
2341
2346
|
}
|
|
2342
|
-
}),
|
|
2347
|
+
}), vn = { class: "cl-font-semibold lg:cl-hidden" }, hn = /* @__PURE__ */ q({
|
|
2343
2348
|
__name: "cl-ui-grid-cell",
|
|
2344
2349
|
props: {
|
|
2345
2350
|
data: null,
|
|
@@ -2348,7 +2353,7 @@ const cn = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, sn = { class: "cl-gap-1
|
|
|
2348
2353
|
},
|
|
2349
2354
|
emits: ["edit", "focus", "undo"],
|
|
2350
2355
|
setup(e, { emit: n }) {
|
|
2351
|
-
const t = e, l = C(ue(t.data)), o =
|
|
2356
|
+
const t = e, l = C(ue(t.data)), o = E(() => t.column.field !== void 0 && l.value[t.column.field] !== t.data[t.column.field]);
|
|
2352
2357
|
return fl(() => l.value = ue(t.data)), J(l, (r) => {
|
|
2353
2358
|
const s = t.column.field ?? "";
|
|
2354
2359
|
s !== "" && (r[s] !== t.data[s] ? n("edit", r[s]) : n("undo"));
|
|
@@ -2359,8 +2364,8 @@ const cn = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, sn = { class: "cl-gap-1
|
|
|
2359
2364
|
"cl-bg-link-lighter": a(o)
|
|
2360
2365
|
}])
|
|
2361
2366
|
}, [
|
|
2362
|
-
u("span",
|
|
2363
|
-
e.editMode && e.column.editable === !0 ?
|
|
2367
|
+
u("span", vn, k(e.column.caption), 1),
|
|
2368
|
+
e.editMode && e.column.editable === !0 ? M(r.$slots, `${e.column.name}Edit`, le(fe({ key: 0 }, {
|
|
2364
2369
|
cellFocused: () => n("focus"),
|
|
2365
2370
|
column: e.column,
|
|
2366
2371
|
edited: a(o),
|
|
@@ -2370,24 +2375,24 @@ const cn = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, sn = { class: "cl-gap-1
|
|
|
2370
2375
|
column: e.column,
|
|
2371
2376
|
data: e.data
|
|
2372
2377
|
}, {
|
|
2373
|
-
[e.column.name]:
|
|
2374
|
-
|
|
2378
|
+
[e.column.name]: L(() => [
|
|
2379
|
+
M(r.$slots, e.column.name, le(ce({ column: e.column, data: e.data })))
|
|
2375
2380
|
]),
|
|
2376
2381
|
_: 2
|
|
2377
2382
|
}, 1032, ["column", "data"])
|
|
2378
|
-
]) : (i(),
|
|
2383
|
+
]) : (i(), F(Xe, {
|
|
2379
2384
|
key: 1,
|
|
2380
2385
|
column: e.column,
|
|
2381
2386
|
data: e.data
|
|
2382
2387
|
}, {
|
|
2383
|
-
[e.column.name]:
|
|
2384
|
-
|
|
2388
|
+
[e.column.name]: L(() => [
|
|
2389
|
+
M(r.$slots, e.column.name, le(ce({ column: e.column, record: e.data })))
|
|
2385
2390
|
]),
|
|
2386
2391
|
_: 2
|
|
2387
2392
|
}, 1032, ["column", "data"]))
|
|
2388
2393
|
], 2));
|
|
2389
2394
|
}
|
|
2390
|
-
}),
|
|
2395
|
+
}), pn = /* @__PURE__ */ q({
|
|
2391
2396
|
__name: "cl-ui-grid-row",
|
|
2392
2397
|
props: {
|
|
2393
2398
|
data: null,
|
|
@@ -2397,7 +2402,7 @@ const cn = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, sn = { class: "cl-gap-1
|
|
|
2397
2402
|
emits: ["cell-focus", "cell-edit", "cell-undo", "row-select"],
|
|
2398
2403
|
setup(e) {
|
|
2399
2404
|
return (n, t) => (i(), g("tr", null, [
|
|
2400
|
-
(i(!0), g(z, null, _(e.columns, (l, o) => (i(),
|
|
2405
|
+
(i(!0), g(z, null, _(e.columns, (l, o) => (i(), F(hn, {
|
|
2401
2406
|
key: o,
|
|
2402
2407
|
data: e.data,
|
|
2403
2408
|
column: l,
|
|
@@ -2408,17 +2413,17 @@ const cn = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, sn = { class: "cl-gap-1
|
|
|
2408
2413
|
}, Le({ _: 2 }, [
|
|
2409
2414
|
_(n.$slots, (r, s) => ({
|
|
2410
2415
|
name: s,
|
|
2411
|
-
fn:
|
|
2412
|
-
|
|
2416
|
+
fn: L((m) => [
|
|
2417
|
+
M(n.$slots, s, le(ce(m)))
|
|
2413
2418
|
])
|
|
2414
2419
|
}))
|
|
2415
2420
|
]), 1032, ["data", "column", "edit-mode", "onEdit", "onUndo"]))), 128))
|
|
2416
2421
|
]));
|
|
2417
2422
|
}
|
|
2418
|
-
}),
|
|
2423
|
+
}), yn = { key: 1 }, wn = ["colspan"], xn = { class: "cl-flex cl-flex-wrap cl-justify-center cl-text-center cl-text-sm cl-w-full" }, $n = { class: "cl-mt-6 cl-w-full" }, kn = {
|
|
2419
2424
|
key: 0,
|
|
2420
2425
|
class: "cl-mt-4"
|
|
2421
|
-
},
|
|
2426
|
+
}, Tn = { class: "cl-mb-2 cl-w-full" }, Cn = /* @__PURE__ */ q({
|
|
2422
2427
|
__name: "cl-ui-grid-body",
|
|
2423
2428
|
props: {
|
|
2424
2429
|
columns: null,
|
|
@@ -2475,7 +2480,7 @@ const cn = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, sn = { class: "cl-gap-1
|
|
|
2475
2480
|
}), (h, v) => {
|
|
2476
2481
|
var p;
|
|
2477
2482
|
return i(), g("tbody", null, [
|
|
2478
|
-
e.data && ((p = e.data.results) != null && p.length) ? (i(!0), g(z, { key: 0 }, _(e.data.results, (b, x) => (i(),
|
|
2483
|
+
e.data && ((p = e.data.results) != null && p.length) ? (i(!0), g(z, { key: 0 }, _(e.data.results, (b, x) => (i(), F(pn, {
|
|
2479
2484
|
key: x,
|
|
2480
2485
|
data: b,
|
|
2481
2486
|
columns: e.columns,
|
|
@@ -2496,40 +2501,40 @@ const cn = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, sn = { class: "cl-gap-1
|
|
|
2496
2501
|
},
|
|
2497
2502
|
onCellUndo: c
|
|
2498
2503
|
}, Le({ _: 2 }, [
|
|
2499
|
-
_(h.$slots, (w,
|
|
2500
|
-
name:
|
|
2501
|
-
fn:
|
|
2502
|
-
|
|
2504
|
+
_(h.$slots, (w, j) => ({
|
|
2505
|
+
name: j,
|
|
2506
|
+
fn: L((H) => [
|
|
2507
|
+
M(h.$slots, j, le(ce(H)))
|
|
2503
2508
|
])
|
|
2504
2509
|
}))
|
|
2505
|
-
]), 1032, ["data", "columns", "edit-mode", "class", "onClick", "onCellFocus", "onCellEdit"]))), 128)) : e.loading ? I("", !0) : (i(), g("tr",
|
|
2510
|
+
]), 1032, ["data", "columns", "edit-mode", "class", "onClick", "onCellFocus", "onCellEdit"]))), 128)) : e.loading ? I("", !0) : (i(), g("tr", yn, [
|
|
2506
2511
|
u("td", {
|
|
2507
2512
|
colspan: e.columns.length
|
|
2508
2513
|
}, [
|
|
2509
|
-
u("div",
|
|
2510
|
-
u("strong",
|
|
2511
|
-
e.request.filters.length > 0 ? (i(), g("div",
|
|
2512
|
-
u("div",
|
|
2514
|
+
u("div", xn, [
|
|
2515
|
+
u("strong", $n, k(a(l)("grid.noData")), 1),
|
|
2516
|
+
e.request.filters.length > 0 ? (i(), g("div", kn, [
|
|
2517
|
+
u("div", Tn, k(a(l)("grid.noDataFiltersPresent")), 1),
|
|
2513
2518
|
y(ve, {
|
|
2514
2519
|
size: "small",
|
|
2515
2520
|
onClick: v[0] || (v[0] = Q((b) => h.$emit("clear-filters"), ["prevent"]))
|
|
2516
2521
|
}, {
|
|
2517
|
-
default:
|
|
2522
|
+
default: L(() => [
|
|
2518
2523
|
X(k(a(l)("grid.clearFilters")), 1)
|
|
2519
2524
|
]),
|
|
2520
2525
|
_: 1
|
|
2521
2526
|
})
|
|
2522
2527
|
])) : I("", !0)
|
|
2523
2528
|
])
|
|
2524
|
-
], 8,
|
|
2529
|
+
], 8, wn)
|
|
2525
2530
|
]))
|
|
2526
2531
|
]);
|
|
2527
2532
|
};
|
|
2528
2533
|
}
|
|
2529
|
-
}),
|
|
2534
|
+
}), Sn = {
|
|
2530
2535
|
key: 0,
|
|
2531
2536
|
class: "cl-flex cl-flex-wrap cl-justify-end cl-mt-2 cl-w-full"
|
|
2532
|
-
},
|
|
2537
|
+
}, En = { class: "cl-bg-off-white cl-border cl-border-grey-1 cl-flex cl-items-center cl-mb-2 cl-px-3 cl-rounded cl-shadow-md cl-text-sm cl-w-full lg:cl-w-auto" }, jn = { class: "cl-text-grey-3 cl-w-max" }, On = { class: "cl-bg-off-white cl-border cl-border-grey-1 cl-flex cl-flex-wrap cl-items-center cl-mb-2 cl-px-3 cl-py-2 cl-rounded cl-shadow-md cl-text-sm cl-w-full lg:cl-ml-2 lg:cl-w-auto mb:cl-flex-nowrap" }, An = { class: "cl-flex cl-flex-wrap cl-mb-2 cl-text-sm cl-w-full lg:cl-p-2 md:cl-mb-0 md:cl-w-auto" }, Mn = { class: "cl-flex cl-flex-wrap cl-mb-2 cl-w-full lg:cl-mb-0 lg:cl-mr-2 lg:cl-w-auto" }, In = { class: "cl-text-grey-3 cl-w-full lg:cl-mr-2 lg:cl-w-auto" }, Nn = { class: "cl-flex cl-flex-wrap cl-text-sm mb:cl-flex-nowrap" }, Dn = { class: "cl-pr-2" }, qn = ["onClick"], Rn = { 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" }, Pn = { class: "cl-mb-2 cl-text-grey-3 cl-w-full lg:cl-mb-0 lg:cl-mr-2 lg:cl-w-auto" }, Un = ["onClick"], Bn = { class: "cl-mb-2 cl-w-full lg:cl-p-2 md:cl-mb-0 md:cl-w-auto" }, zn = { 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" }, Ln = { class: "cl-block lg:cl-inline-block" }, Fn = /* @__PURE__ */ q({
|
|
2533
2538
|
__name: "cl-ui-grid-footer",
|
|
2534
2539
|
props: {
|
|
2535
2540
|
request: null,
|
|
@@ -2539,10 +2544,10 @@ const cn = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, sn = { class: "cl-gap-1
|
|
|
2539
2544
|
"update:request": null
|
|
2540
2545
|
},
|
|
2541
2546
|
setup(e, { emit: n }) {
|
|
2542
|
-
const t = e, { n: l, t: o } = ne(), r =
|
|
2547
|
+
const t = e, { n: l, t: o } = ne(), r = E(() => {
|
|
2543
2548
|
var v;
|
|
2544
2549
|
return t.data !== null ? Math.ceil((((v = t.data) == null ? void 0 : v.totalRecords) ?? 0) / t.request.pageSize) : 1;
|
|
2545
|
-
}), s =
|
|
2550
|
+
}), s = E(() => {
|
|
2546
2551
|
const v = Array.from(Array(r.value + 1).keys());
|
|
2547
2552
|
let p = [];
|
|
2548
2553
|
if (v.shift(), v.length) {
|
|
@@ -2574,9 +2579,9 @@ const cn = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, sn = { class: "cl-gap-1
|
|
|
2574
2579
|
const h = nl(c, 750);
|
|
2575
2580
|
return (v, p) => {
|
|
2576
2581
|
var b, x;
|
|
2577
|
-
return (x = (b = e.data) == null ? void 0 : b.results) != null && x.length && e.request ? (i(), g("div",
|
|
2578
|
-
u("div",
|
|
2579
|
-
u("span",
|
|
2582
|
+
return (x = (b = e.data) == null ? void 0 : b.results) != null && x.length && e.request ? (i(), g("div", Sn, [
|
|
2583
|
+
u("div", En, [
|
|
2584
|
+
u("span", jn, k(a(o)("grid.jumpToPage")), 1),
|
|
2580
2585
|
y(re, {
|
|
2581
2586
|
"model-value": e.request.pageNumber,
|
|
2582
2587
|
class: "cl-ml-1 cl-mt-0.5 cl-text-sm",
|
|
@@ -2588,13 +2593,13 @@ const cn = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, sn = { class: "cl-gap-1
|
|
|
2588
2593
|
onInput: p[0] || (p[0] = (w) => a(h)(w.target))
|
|
2589
2594
|
}, null, 8, ["model-value", "max"])
|
|
2590
2595
|
]),
|
|
2591
|
-
u("div",
|
|
2592
|
-
u("div",
|
|
2593
|
-
u("li",
|
|
2594
|
-
u("span",
|
|
2596
|
+
u("div", On, [
|
|
2597
|
+
u("div", An, [
|
|
2598
|
+
u("li", Mn, [
|
|
2599
|
+
u("span", In, k(a(o)("grid.page")), 1)
|
|
2595
2600
|
]),
|
|
2596
|
-
u("ul",
|
|
2597
|
-
u("li",
|
|
2601
|
+
u("ul", Nn, [
|
|
2602
|
+
u("li", Dn, k(a(l)(e.request.pageNumber, a(ee).INTEGER)) + " / " + k(a(l)(a(r), a(ee).INTEGER)), 1),
|
|
2598
2603
|
P(u("li", {
|
|
2599
2604
|
class: "cl-cursor-pointer cl-mr-1 cl-mt-1 lg:cl-mr-2",
|
|
2600
2605
|
onClick: p[1] || (p[1] = (w) => m(1))
|
|
@@ -2617,14 +2622,14 @@ const cn = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, sn = { class: "cl-gap-1
|
|
|
2617
2622
|
], 512), [
|
|
2618
2623
|
[B, e.request.pageNumber > 1]
|
|
2619
2624
|
]),
|
|
2620
|
-
(i(!0), g(z, null, _(a(s), (w,
|
|
2621
|
-
key:
|
|
2625
|
+
(i(!0), g(z, null, _(a(s), (w, j) => (i(), g("li", {
|
|
2626
|
+
key: j,
|
|
2622
2627
|
class: D(["cl-cursor-pointer cl-mr-1 lg:cl-mr-2", {
|
|
2623
2628
|
"cl-text-black cl-font-bold": e.request.pageNumber === w,
|
|
2624
2629
|
"cl-text-grey-6": e.request.pageNumber !== w
|
|
2625
2630
|
}]),
|
|
2626
2631
|
onClick: (H) => m(w)
|
|
2627
|
-
}, k(a(l)(w, a(ee).INTEGER)), 11,
|
|
2632
|
+
}, k(a(l)(w, a(ee).INTEGER)), 11, qn))), 128)),
|
|
2628
2633
|
P(u("li", {
|
|
2629
2634
|
class: "cl-cursor-pointer cl-mr-1 cl-mt-1 lg:cl-mr-2",
|
|
2630
2635
|
onClick: p[3] || (p[3] = (w) => m(e.request.pageNumber + 1))
|
|
@@ -2649,26 +2654,26 @@ const cn = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, sn = { class: "cl-gap-1
|
|
|
2649
2654
|
])
|
|
2650
2655
|
])
|
|
2651
2656
|
]),
|
|
2652
|
-
u("ul",
|
|
2653
|
-
u("li",
|
|
2654
|
-
(i(), g(z, null, _(f, (w,
|
|
2655
|
-
key:
|
|
2657
|
+
u("ul", Rn, [
|
|
2658
|
+
u("li", Pn, k(a(o)("grid.pageSize")), 1),
|
|
2659
|
+
(i(), g(z, null, _(f, (w, j) => u("li", {
|
|
2660
|
+
key: j,
|
|
2656
2661
|
class: D(["cl-cursor-pointer cl-mr-1 lg:cl-mr-2", {
|
|
2657
2662
|
"cl-text-black cl-font-bold": e.request.pageSize === w,
|
|
2658
2663
|
"cl-text-grey-6": e.request.pageSize !== w
|
|
2659
2664
|
}]),
|
|
2660
2665
|
onClick: (H) => d(w)
|
|
2661
|
-
}, k(a(l)(w, a(ee).INTEGER)), 11,
|
|
2666
|
+
}, k(a(l)(w, a(ee).INTEGER)), 11, Un)), 64))
|
|
2662
2667
|
]),
|
|
2663
|
-
u("ul",
|
|
2664
|
-
u("li",
|
|
2665
|
-
u("li",
|
|
2668
|
+
u("ul", Bn, [
|
|
2669
|
+
u("li", zn, k(a(o)("grid.totalRecords")), 1),
|
|
2670
|
+
u("li", Ln, k(a(l)(e.data.totalRecords, a(ee).INTEGER)), 1)
|
|
2666
2671
|
])
|
|
2667
2672
|
])
|
|
2668
2673
|
])) : I("", !0);
|
|
2669
2674
|
};
|
|
2670
2675
|
}
|
|
2671
|
-
}),
|
|
2676
|
+
}), Vn = [
|
|
2672
2677
|
"string",
|
|
2673
2678
|
"boolean",
|
|
2674
2679
|
"number",
|
|
@@ -2679,7 +2684,7 @@ const cn = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, sn = { class: "cl-gap-1
|
|
|
2679
2684
|
function il(e) {
|
|
2680
2685
|
return typeof e.caption == "string" && typeof e.name == "string" && typeof e.type == "string";
|
|
2681
2686
|
}
|
|
2682
|
-
function
|
|
2687
|
+
function Gn(e) {
|
|
2683
2688
|
let n = Array.isArray(e);
|
|
2684
2689
|
if (n) {
|
|
2685
2690
|
for (const t of e)
|
|
@@ -2690,9 +2695,9 @@ function Fn(e) {
|
|
|
2690
2695
|
}
|
|
2691
2696
|
return n;
|
|
2692
2697
|
}
|
|
2693
|
-
const
|
|
2698
|
+
const Hn = ["ellipsis"];
|
|
2694
2699
|
var ge = /* @__PURE__ */ ((e) => (e[e.CONTAINS = 0] = "CONTAINS", e[e.NOT_CONTAINS = 1] = "NOT_CONTAINS", e[e.EQUAL = 2] = "EQUAL", e[e.NOT_EQUAL = 3] = "NOT_EQUAL", e[e.STARTS_WITH = 4] = "STARTS_WITH", e[e.ENDS_WITH = 5] = "ENDS_WITH", e[e.GREATER_THAN = 6] = "GREATER_THAN", e[e.LESS_THAN = 7] = "LESS_THAN", e[e.EQUAL_OR_GREATER_THAN = 8] = "EQUAL_OR_GREATER_THAN", e[e.EQUAL_OR_LESS_THAN = 9] = "EQUAL_OR_LESS_THAN", e))(ge || {});
|
|
2695
|
-
const
|
|
2700
|
+
const Wn = [
|
|
2696
2701
|
"equal",
|
|
2697
2702
|
"notequal",
|
|
2698
2703
|
"contains",
|
|
@@ -2704,24 +2709,24 @@ const Gn = [
|
|
|
2704
2709
|
"equalorlessthan",
|
|
2705
2710
|
"equalorgreaterthan"
|
|
2706
2711
|
];
|
|
2707
|
-
function
|
|
2712
|
+
function Jn(e) {
|
|
2708
2713
|
return typeof e.filterOnColumn == "string" && typeof e.filterOperation == "number" && typeof e.filterValue == "string";
|
|
2709
2714
|
}
|
|
2710
|
-
function
|
|
2715
|
+
function Kn(e) {
|
|
2711
2716
|
return e === null || typeof e.sortByAscending == "boolean" && typeof e.sortOnColumn == "string";
|
|
2712
2717
|
}
|
|
2713
|
-
function
|
|
2714
|
-
let n = typeof e.filters == "object" && Array.isArray(e.filters) && typeof e.pageNumber == "number" && typeof e.pageSize == "number" && typeof e.sort == "object" &&
|
|
2718
|
+
function Zn(e) {
|
|
2719
|
+
let n = typeof e.filters == "object" && Array.isArray(e.filters) && typeof e.pageNumber == "number" && typeof e.pageSize == "number" && typeof e.sort == "object" && Kn(e.sort);
|
|
2715
2720
|
if (n) {
|
|
2716
2721
|
for (const t of e.filters)
|
|
2717
|
-
if (!
|
|
2722
|
+
if (!Jn(t)) {
|
|
2718
2723
|
n = !1;
|
|
2719
2724
|
break;
|
|
2720
2725
|
}
|
|
2721
2726
|
}
|
|
2722
2727
|
return n;
|
|
2723
2728
|
}
|
|
2724
|
-
function
|
|
2729
|
+
function Qn(e, n) {
|
|
2725
2730
|
let t = typeof e.results == "object" && Array.isArray(e.results) && typeof e.totalRecords == "number";
|
|
2726
2731
|
if (t) {
|
|
2727
2732
|
for (const l of e.results)
|
|
@@ -2732,7 +2737,7 @@ function Kn(e, n) {
|
|
|
2732
2737
|
}
|
|
2733
2738
|
return t;
|
|
2734
2739
|
}
|
|
2735
|
-
const
|
|
2740
|
+
const Yn = {
|
|
2736
2741
|
method: "equal",
|
|
2737
2742
|
icon: "mdi:equal",
|
|
2738
2743
|
description: "Equals",
|
|
@@ -2742,12 +2747,12 @@ const Zn = {
|
|
|
2742
2747
|
"boolean",
|
|
2743
2748
|
"date"
|
|
2744
2749
|
]
|
|
2745
|
-
},
|
|
2750
|
+
}, Xn = {
|
|
2746
2751
|
method: "contains",
|
|
2747
2752
|
icon: "mdi:format-letter-matches",
|
|
2748
2753
|
description: "Contains",
|
|
2749
2754
|
allowedTypes: ["string"]
|
|
2750
|
-
},
|
|
2755
|
+
}, _n = {
|
|
2751
2756
|
method: "lessthan",
|
|
2752
2757
|
icon: "mdi:less-than",
|
|
2753
2758
|
description: "Less than",
|
|
@@ -2757,7 +2762,7 @@ const Zn = {
|
|
|
2757
2762
|
"datetime"
|
|
2758
2763
|
]
|
|
2759
2764
|
}, _e = [
|
|
2760
|
-
|
|
2765
|
+
Xn,
|
|
2761
2766
|
{
|
|
2762
2767
|
method: "notcontains",
|
|
2763
2768
|
icon: "mdi:format-letter-spacing-variant",
|
|
@@ -2776,7 +2781,7 @@ const Zn = {
|
|
|
2776
2781
|
description: "Ends with",
|
|
2777
2782
|
allowedTypes: ["string"]
|
|
2778
2783
|
},
|
|
2779
|
-
|
|
2784
|
+
Yn,
|
|
2780
2785
|
{
|
|
2781
2786
|
method: "notequal",
|
|
2782
2787
|
icon: "mdi:not-equal",
|
|
@@ -2788,7 +2793,7 @@ const Zn = {
|
|
|
2788
2793
|
"date"
|
|
2789
2794
|
]
|
|
2790
2795
|
},
|
|
2791
|
-
|
|
2796
|
+
_n,
|
|
2792
2797
|
{
|
|
2793
2798
|
method: "greaterthan",
|
|
2794
2799
|
icon: "mdi:greater-than",
|
|
@@ -2819,7 +2824,7 @@ const Zn = {
|
|
|
2819
2824
|
"datetime"
|
|
2820
2825
|
]
|
|
2821
2826
|
}
|
|
2822
|
-
],
|
|
2827
|
+
], ea = { class: "cl-group cl-inline cl-relative cl-w-auto" }, la = { 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" }, ta = { class: "cl-p-2 cl-select-none" }, na = ["onClick"], aa = /* @__PURE__ */ q({
|
|
2823
2828
|
__name: "cl-ui-grid-method-selector",
|
|
2824
2829
|
props: {
|
|
2825
2830
|
filter: null,
|
|
@@ -2829,12 +2834,12 @@ const Zn = {
|
|
|
2829
2834
|
},
|
|
2830
2835
|
emits: ["update:filter"],
|
|
2831
2836
|
setup(e, { emit: n }) {
|
|
2832
|
-
const t = e, { t: l } = ne(), o =
|
|
2837
|
+
const t = e, { t: l } = ne(), o = E(() => {
|
|
2833
2838
|
let m = [];
|
|
2834
2839
|
return t.column.type !== "slot" ? m = _e.filter((c) => c.allowedTypes.includes(t.column.type)) : typeof t.column.slotType < "u" && typeof t.column.field < "u" && (m = _e.filter((c) => c.allowedTypes.includes(t.column.slotType))), m.forEach((c) => {
|
|
2835
2840
|
c.description = l(`grid.${c.method}`);
|
|
2836
2841
|
}), m;
|
|
2837
|
-
}), r =
|
|
2842
|
+
}), r = E(() => {
|
|
2838
2843
|
var c;
|
|
2839
2844
|
let m = (c = t.filter) == null ? void 0 : c.filterMethod;
|
|
2840
2845
|
return typeof m > "u" && (m = ge[t.defaultOperation]), o.value.find((f) => {
|
|
@@ -2859,8 +2864,8 @@ const Zn = {
|
|
|
2859
2864
|
}
|
|
2860
2865
|
return (m, c) => {
|
|
2861
2866
|
var f;
|
|
2862
|
-
return i(), g("div",
|
|
2863
|
-
u("div",
|
|
2867
|
+
return i(), g("div", ea, [
|
|
2868
|
+
u("div", la, [
|
|
2864
2869
|
y(a(N), {
|
|
2865
2870
|
icon: (f = a(r)) == null ? void 0 : f.icon,
|
|
2866
2871
|
class: "cl-text-grey-4 cl-text-lg"
|
|
@@ -2872,7 +2877,7 @@ const Zn = {
|
|
|
2872
2877
|
"cl--left-44": !e.firstHalf
|
|
2873
2878
|
}])
|
|
2874
2879
|
}, [
|
|
2875
|
-
u("strong",
|
|
2880
|
+
u("strong", ta, k(a(l)("grid.availableMethods")), 1),
|
|
2876
2881
|
(i(!0), g(z, null, _(a(o), (d, h) => {
|
|
2877
2882
|
var v;
|
|
2878
2883
|
return i(), g("span", {
|
|
@@ -2887,16 +2892,16 @@ const Zn = {
|
|
|
2887
2892
|
icon: d.icon,
|
|
2888
2893
|
class: "cl-float-right cl-text-grey-4 cl-text-sm"
|
|
2889
2894
|
}, null, 8, ["icon"])
|
|
2890
|
-
], 10,
|
|
2895
|
+
], 10, na);
|
|
2891
2896
|
}), 128))
|
|
2892
2897
|
], 2)
|
|
2893
2898
|
]);
|
|
2894
2899
|
};
|
|
2895
2900
|
}
|
|
2896
|
-
}),
|
|
2901
|
+
}), oa = {
|
|
2897
2902
|
key: 0,
|
|
2898
2903
|
class: "cl-border cl-border-grey-2 cl-flex cl-h-[2rem] cl-overflow-hidden cl-rounded-md lg:cl-h-[2.6rem] lg:cl-overflow-visible"
|
|
2899
|
-
},
|
|
2904
|
+
}, ca = /* @__PURE__ */ u("option", { value: void 0 }, null, -1), sa = ["selected"], ia = ["selected"], ra = /* @__PURE__ */ q({
|
|
2900
2905
|
__name: "cl-ui-grid-filter",
|
|
2901
2906
|
props: {
|
|
2902
2907
|
filter: null,
|
|
@@ -2909,19 +2914,19 @@ const Zn = {
|
|
|
2909
2914
|
function r() {
|
|
2910
2915
|
return t.column.type === "string" || t.column.slotType === "string" ? ge.CONTAINS : t.column.type === "datetime" || t.column.slotType === "datetime" ? ge.LESS_THAN : ge.EQUAL;
|
|
2911
2916
|
}
|
|
2912
|
-
const s =
|
|
2917
|
+
const s = E({
|
|
2913
2918
|
get: () => t.filter,
|
|
2914
2919
|
set: (b) => n("update:filter", b)
|
|
2915
|
-
}), m =
|
|
2920
|
+
}), m = E(() => {
|
|
2916
2921
|
var b;
|
|
2917
2922
|
return ((b = s.value) == null ? void 0 : b.filterValue) ?? "";
|
|
2918
|
-
}), c =
|
|
2923
|
+
}), c = E(() => m.value !== "" ? new Date(m.value) : null), f = E(() => Intl.NumberFormat(l.value).format(1.1).replace(/[0-9]+/g, "")), d = E(() => Fe(t.column));
|
|
2919
2924
|
function h(b, x) {
|
|
2920
2925
|
var te;
|
|
2921
|
-
let w,
|
|
2926
|
+
let w, j = !1;
|
|
2922
2927
|
const H = ((b == null ? void 0 : b.value) ?? x).trim();
|
|
2923
2928
|
if (s.value)
|
|
2924
|
-
|
|
2929
|
+
j = ((te = s.value) == null ? void 0 : te.filterValue) === H, w = ue(s.value), w.filterValue = H;
|
|
2925
2930
|
else if (H !== "" && typeof t.column.field < "u") {
|
|
2926
2931
|
const de = r();
|
|
2927
2932
|
w = {
|
|
@@ -2932,7 +2937,7 @@ const Zn = {
|
|
|
2932
2937
|
};
|
|
2933
2938
|
} else
|
|
2934
2939
|
return;
|
|
2935
|
-
|
|
2940
|
+
j === !1 && (s.value = w);
|
|
2936
2941
|
}
|
|
2937
2942
|
function v(b) {
|
|
2938
2943
|
let x;
|
|
@@ -2941,8 +2946,8 @@ const Zn = {
|
|
|
2941
2946
|
function p(b) {
|
|
2942
2947
|
h(null, (b == null ? void 0 : b.toISOString()) ?? "");
|
|
2943
2948
|
}
|
|
2944
|
-
return (b, x) => a(d) ? (i(), g("div",
|
|
2945
|
-
y(
|
|
2949
|
+
return (b, x) => a(d) ? (i(), g("div", oa, [
|
|
2950
|
+
y(aa, {
|
|
2946
2951
|
filter: a(s),
|
|
2947
2952
|
"onUpdate:filter": x[0] || (x[0] = (w) => be(s) ? s.value = w : null),
|
|
2948
2953
|
column: e.column,
|
|
@@ -2954,16 +2959,16 @@ const Zn = {
|
|
|
2954
2959
|
class: "cl-border-none cl-w-full",
|
|
2955
2960
|
onChange: x[1] || (x[1] = (w) => h(w.target))
|
|
2956
2961
|
}, [
|
|
2957
|
-
|
|
2962
|
+
ca,
|
|
2958
2963
|
u("option", {
|
|
2959
2964
|
value: "true",
|
|
2960
2965
|
selected: a(m) === "true"
|
|
2961
|
-
}, k(a(o)("grid.true")), 9,
|
|
2966
|
+
}, k(a(o)("grid.true")), 9, sa),
|
|
2962
2967
|
u("option", {
|
|
2963
2968
|
value: "false",
|
|
2964
2969
|
selected: a(m) === "false"
|
|
2965
|
-
}, k(a(o)("grid.false")), 9,
|
|
2966
|
-
], 32)) : e.column.type === "date" || e.column.type === "datetime" || e.column.slotType === "date" || e.column.slotType === "datetime" ? (i(),
|
|
2970
|
+
}, k(a(o)("grid.false")), 9, ia)
|
|
2971
|
+
], 32)) : e.column.type === "date" || e.column.type === "datetime" || e.column.slotType === "date" || e.column.slotType === "datetime" ? (i(), F(re, {
|
|
2967
2972
|
key: 1,
|
|
2968
2973
|
"model-value": a(c),
|
|
2969
2974
|
class: "!cl-h-[2rem] !cl-text-xs cl-border-none cl-mb-0 cl-w-full lg:!cl-h-[2.5rem] lg:!cl-text-base",
|
|
@@ -2973,23 +2978,23 @@ const Zn = {
|
|
|
2973
2978
|
"show-label": !1,
|
|
2974
2979
|
"input-type": e.column.type === "slot" ? e.column.slotType : e.column.type,
|
|
2975
2980
|
"onUpdate:modelValue": x[2] || (x[2] = (w) => p(w))
|
|
2976
|
-
}, null, 8, ["model-value", "label", "input-type"])) : e.column.type === "number" || e.column.slotType === "number" ? (i(),
|
|
2981
|
+
}, null, 8, ["model-value", "label", "input-type"])) : e.column.type === "number" || e.column.slotType === "number" ? (i(), F(re, {
|
|
2977
2982
|
key: 2,
|
|
2978
2983
|
"model-value": a(m),
|
|
2979
2984
|
class: "!cl-h-[2rem] !cl-text-xs cl-border-none cl-mb-0 cl-w-full lg:!cl-h-[2.5rem] lg:!cl-text-base",
|
|
2980
2985
|
"input-type": "number",
|
|
2981
2986
|
"show-arrows": !1,
|
|
2982
|
-
onInput: x[3] || (x[3] = (w,
|
|
2983
|
-
}, null, 8, ["model-value"])) : e.column.type === "string" || e.column.slotType === "string" ? (i(),
|
|
2987
|
+
onInput: x[3] || (x[3] = (w, j) => v(j))
|
|
2988
|
+
}, null, 8, ["model-value"])) : e.column.type === "string" || e.column.slotType === "string" ? (i(), F(re, {
|
|
2984
2989
|
key: 3,
|
|
2985
2990
|
"model-value": a(m),
|
|
2986
2991
|
class: "!cl-h-[2rem] !cl-text-xs cl-border-none cl-mb-0 cl-w-full lg:!cl-h-[2.5rem] lg:!cl-text-base",
|
|
2987
2992
|
"input-type": "text",
|
|
2988
|
-
onInput: x[4] || (x[4] = (w,
|
|
2993
|
+
onInput: x[4] || (x[4] = (w, j) => h(null, j))
|
|
2989
2994
|
}, null, 8, ["model-value"])) : I("", !0)
|
|
2990
2995
|
])) : I("", !0);
|
|
2991
2996
|
}
|
|
2992
|
-
}),
|
|
2997
|
+
}), ua = { class: "-cl-top-1 cl-bg-white cl-shadow-md cl-sticky cl-z-10 lg:cl-bg-transparent lg:cl-relative lg:cl-shadow-none" }, da = { class: "cl-hidden lg:cl-table-row" }, fa = ["onClick"], ma = { class: "cl-flex cl-justify-end cl-w-full lg:cl-hidden" }, ga = { class: "cl-col-span-2 lg:cl-hidden" }, ba = ["onClick"], va = { class: "cl-font-normal cl-mr-1" }, ha = /* @__PURE__ */ q({
|
|
2993
2998
|
__name: "cl-ui-grid-header",
|
|
2994
2999
|
props: {
|
|
2995
3000
|
request: null,
|
|
@@ -2999,7 +3004,7 @@ const Zn = {
|
|
|
2999
3004
|
},
|
|
3000
3005
|
emits: ["update:request", "update:filterPanelOpen"],
|
|
3001
3006
|
setup(e, { emit: n }) {
|
|
3002
|
-
const t = e, { t: l } = ne(), o =
|
|
3007
|
+
const t = e, { t: l } = ne(), o = E({
|
|
3003
3008
|
get: () => t.request,
|
|
3004
3009
|
set: (c) => n("update:request", c)
|
|
3005
3010
|
});
|
|
@@ -3022,8 +3027,8 @@ const Zn = {
|
|
|
3022
3027
|
d > -1 ? f.filters[d] = c : f.filters.push(c), f.pageNumber = 1, o.value = f;
|
|
3023
3028
|
}
|
|
3024
3029
|
}
|
|
3025
|
-
return (c, f) => (i(), g("thead",
|
|
3026
|
-
u("tr",
|
|
3030
|
+
return (c, f) => (i(), g("thead", ua, [
|
|
3031
|
+
u("tr", da, [
|
|
3027
3032
|
(i(!0), g(z, null, _(e.columns, (d, h) => (i(), g("th", {
|
|
3028
3033
|
key: h,
|
|
3029
3034
|
class: D(["cl-text-grey-3 cl-text-sm", {
|
|
@@ -3045,14 +3050,14 @@ const Zn = {
|
|
|
3045
3050
|
}, null, 512), [
|
|
3046
3051
|
[B, r(d, !1)]
|
|
3047
3052
|
])
|
|
3048
|
-
], 10,
|
|
3053
|
+
], 10, fa))), 128))
|
|
3049
3054
|
]),
|
|
3050
3055
|
u("tr", {
|
|
3051
3056
|
class: D(["cl-flex cl-flex-wrap lg:cl-table-row", {
|
|
3052
3057
|
"cl-hidden lg:cl-table-row": !e.filterPanelOpen
|
|
3053
3058
|
}])
|
|
3054
3059
|
}, [
|
|
3055
|
-
u("div",
|
|
3060
|
+
u("div", ma, [
|
|
3056
3061
|
y(a(N), {
|
|
3057
3062
|
class: "cl-text-grey-4",
|
|
3058
3063
|
icon: "ph:x",
|
|
@@ -3066,28 +3071,28 @@ const Zn = {
|
|
|
3066
3071
|
"cl-hidden lg:cl-table-cell": !a(Fe)(d)
|
|
3067
3072
|
}])
|
|
3068
3073
|
}, [
|
|
3069
|
-
u("div",
|
|
3074
|
+
u("div", ga, k(d.caption), 1),
|
|
3070
3075
|
a(je)(d) ? (i(), g("div", {
|
|
3071
3076
|
key: 0,
|
|
3072
3077
|
class: "cl-col-span-2 cl-gap-1 cl-span lg:cl-hidden",
|
|
3073
3078
|
onClick: (v) => s(d.field)
|
|
3074
3079
|
}, [
|
|
3075
|
-
u("span",
|
|
3076
|
-
r(d, !0) ? (i(),
|
|
3080
|
+
u("span", va, k(a(l)("grid.sortBy")), 1),
|
|
3081
|
+
r(d, !0) ? (i(), F(a(N), {
|
|
3077
3082
|
key: 0,
|
|
3078
3083
|
class: "cl-cursor-pointer cl-inline-block",
|
|
3079
3084
|
icon: "ph:caret-up"
|
|
3080
|
-
})) : r(d, !1) ? (i(),
|
|
3085
|
+
})) : r(d, !1) ? (i(), F(a(N), {
|
|
3081
3086
|
key: 1,
|
|
3082
3087
|
class: "cl-cursor-pointer cl-inline-block",
|
|
3083
3088
|
icon: "ph:caret-down"
|
|
3084
|
-
})) : (i(),
|
|
3089
|
+
})) : (i(), F(a(N), {
|
|
3085
3090
|
key: 2,
|
|
3086
3091
|
class: "cl-cursor-pointer cl-inline-block",
|
|
3087
3092
|
icon: "ph:minus"
|
|
3088
3093
|
}))
|
|
3089
|
-
], 8,
|
|
3090
|
-
y(
|
|
3094
|
+
], 8, ba)) : I("", !0),
|
|
3095
|
+
y(ra, {
|
|
3091
3096
|
class: "cl-col-span-4",
|
|
3092
3097
|
filter: a(o).filters.find((v) => v.filterOnColumn === d.field),
|
|
3093
3098
|
column: d,
|
|
@@ -3098,10 +3103,10 @@ const Zn = {
|
|
|
3098
3103
|
], 2)
|
|
3099
3104
|
]));
|
|
3100
3105
|
}
|
|
3101
|
-
}),
|
|
3106
|
+
}), pa = { class: "cl-fixed cl-flex cl-h-full cl-justify-end cl-right-0 cl-shadow-lg cl-top-0 cl-z-50" }, ya = { 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" }, wa = { class: "cl-mb-4 cl-text-2xl cl-text-off-white" }, xa = { class: "cl-border-grey-3 cl-border-t cl-flex cl-flex-wrap cl-text-sm cl-w-full" }, $a = { class: "cl-border-b cl-border-grey-2 cl-flex cl-py-2 cl-text-sm cl-w-full" }, ka = { class: "cl-flex-1 cl-py-2" }, Ta = { class: "cl-py-2 cl-w-1/4" }, Ca = { class: "cl-py-2 cl-w-1/5" }, Sa = { class: "cl-flex-1 cl-py-2" }, Ea = { class: "cl-py-2 cl-w-1/4" }, ja = { class: "cl-py-2 cl-text-off-white cl-w-1/5" }, Oa = { key: 1 }, Aa = {
|
|
3102
3107
|
inheritAttrs: !1
|
|
3103
|
-
},
|
|
3104
|
-
...
|
|
3108
|
+
}, Ma = /* @__PURE__ */ q({
|
|
3109
|
+
...Aa,
|
|
3105
3110
|
__name: "cl-ui-grid-view-manager",
|
|
3106
3111
|
props: {
|
|
3107
3112
|
columns: null
|
|
@@ -3126,56 +3131,56 @@ const Zn = {
|
|
|
3126
3131
|
size: "small",
|
|
3127
3132
|
onClick: f[0] || (f[0] = Q((d) => o.value = !0, ["prevent"]))
|
|
3128
3133
|
}), {
|
|
3129
|
-
default:
|
|
3134
|
+
default: L(() => [
|
|
3130
3135
|
X(k(a(l)("grid.manageView")), 1)
|
|
3131
3136
|
]),
|
|
3132
3137
|
_: 1
|
|
3133
3138
|
}, 16),
|
|
3134
|
-
(i(),
|
|
3135
|
-
y(
|
|
3136
|
-
default:
|
|
3137
|
-
P(u("div",
|
|
3138
|
-
u("div",
|
|
3139
|
+
(i(), F(ze, { to: "body" }, [
|
|
3140
|
+
y(he, { name: "slide-left" }, {
|
|
3141
|
+
default: L(() => [
|
|
3142
|
+
P(u("div", pa, [
|
|
3143
|
+
u("div", ya, [
|
|
3139
3144
|
y(a(N), {
|
|
3140
3145
|
class: "cl-absolute cl-cursor-pointer cl-right-3 cl-text-off-white cl-top-3",
|
|
3141
3146
|
icon: "ph:x",
|
|
3142
3147
|
size: 16,
|
|
3143
3148
|
onClick: f[1] || (f[1] = (d) => o.value = !1)
|
|
3144
3149
|
}),
|
|
3145
|
-
u("h3",
|
|
3146
|
-
u("ul",
|
|
3147
|
-
u("li",
|
|
3148
|
-
u("strong",
|
|
3149
|
-
u("strong",
|
|
3150
|
-
u("strong",
|
|
3150
|
+
u("h3", wa, k(a(l)("grid.manageView")), 1),
|
|
3151
|
+
u("ul", xa, [
|
|
3152
|
+
u("li", $a, [
|
|
3153
|
+
u("strong", ka, k(a(l)("grid.column")), 1),
|
|
3154
|
+
u("strong", Ta, k(a(l)("grid.visible")), 1),
|
|
3155
|
+
u("strong", Ca, k(a(l)("grid.order")), 1)
|
|
3151
3156
|
]),
|
|
3152
3157
|
(i(!0), g(z, null, _(e.columns, (d, h) => (i(), g("li", {
|
|
3153
3158
|
key: h,
|
|
3154
3159
|
class: "cl-border-b cl-border-grey-2 cl-flex cl-py-2 cl-text-sm cl-w-full"
|
|
3155
3160
|
}, [
|
|
3156
|
-
u("div",
|
|
3157
|
-
u("div",
|
|
3161
|
+
u("div", Sa, k(d.caption), 1),
|
|
3162
|
+
u("div", Ea, [
|
|
3158
3163
|
y(re, {
|
|
3159
3164
|
"model-value": d.visible === void 0 || d.visible === !0,
|
|
3160
3165
|
"input-type": "checkbox",
|
|
3161
3166
|
onClick: (v) => s(v.target, d)
|
|
3162
3167
|
}, null, 8, ["model-value", "onClick"])
|
|
3163
3168
|
]),
|
|
3164
|
-
u("div",
|
|
3169
|
+
u("div", ja, [
|
|
3165
3170
|
d.visible === void 0 || d.visible === !0 ? (i(), g(z, { key: 0 }, [
|
|
3166
|
-
h !== 0 ? (i(),
|
|
3171
|
+
h !== 0 ? (i(), F(a(N), {
|
|
3167
3172
|
key: 0,
|
|
3168
3173
|
class: "cl-cursor-pointer cl-inline-block cl-mr-2",
|
|
3169
3174
|
icon: "ph:arrow-left",
|
|
3170
3175
|
onClick: (v) => m(h, "down")
|
|
3171
3176
|
}, null, 8, ["onClick"])) : I("", !0),
|
|
3172
|
-
h !== e.columns.length - 1 ? (i(),
|
|
3177
|
+
h !== e.columns.length - 1 ? (i(), F(a(N), {
|
|
3173
3178
|
key: 1,
|
|
3174
3179
|
class: "cl-cursor-pointer cl-inline-block",
|
|
3175
3180
|
icon: "ph:arrow-right",
|
|
3176
3181
|
onClick: (v) => m(h, "up")
|
|
3177
3182
|
}, null, 8, ["onClick"])) : I("", !0)
|
|
3178
|
-
], 64)) : (i(), g("em",
|
|
3183
|
+
], 64)) : (i(), g("em", Oa, k(a(l)("grid.hidden")), 1))
|
|
3179
3184
|
])
|
|
3180
3185
|
]))), 128))
|
|
3181
3186
|
])
|
|
@@ -3189,7 +3194,7 @@ const Zn = {
|
|
|
3189
3194
|
]))
|
|
3190
3195
|
], 64));
|
|
3191
3196
|
}
|
|
3192
|
-
}),
|
|
3197
|
+
}), Ia = { class: "cl-min-h-screen cl-relative cl-w-full lg:cl-min-h-fit" }, Na = { class: "cl-absolute cl-flex cl-items-center cl-justify-center cl-min-h-full cl-p-32 cl-w-full" }, Da = { class: "cl-overflow-x-auto cl-overscroll-x-none cl-pt-1" }, qa = { class: "cl-hidden lg:cl-table-column-group" }, Ra = /* @__PURE__ */ q({
|
|
3193
3198
|
__name: "cl-ui-grid",
|
|
3194
3199
|
props: {
|
|
3195
3200
|
columns: null,
|
|
@@ -3200,10 +3205,10 @@ const Zn = {
|
|
|
3200
3205
|
},
|
|
3201
3206
|
emits: ["update:columns", "update:request", "data-request", "row-edit", "edit-start", "edit-end", "row-select"],
|
|
3202
3207
|
setup(e, { emit: n }) {
|
|
3203
|
-
const t = e, l =
|
|
3208
|
+
const t = e, l = E({
|
|
3204
3209
|
get: () => t.columns,
|
|
3205
3210
|
set: (b) => n("update:columns", b)
|
|
3206
|
-
}), o =
|
|
3211
|
+
}), o = E(() => l.value.filter((b) => b.visible ?? !0)), r = C({});
|
|
3207
3212
|
function s() {
|
|
3208
3213
|
const b = {};
|
|
3209
3214
|
window.innerWidth >= 1024 && l.value.forEach((x) => {
|
|
@@ -3217,7 +3222,7 @@ const Zn = {
|
|
|
3217
3222
|
Ce(() => {
|
|
3218
3223
|
window.addEventListener("resize", s), s();
|
|
3219
3224
|
}), Re(() => window.removeEventListener("resize", s));
|
|
3220
|
-
const c =
|
|
3225
|
+
const c = E({
|
|
3221
3226
|
get: () => t.request,
|
|
3222
3227
|
set: (b) => n("update:request", b)
|
|
3223
3228
|
});
|
|
@@ -3230,13 +3235,13 @@ const Zn = {
|
|
|
3230
3235
|
deep: !0,
|
|
3231
3236
|
immediate: !0
|
|
3232
3237
|
});
|
|
3233
|
-
const h =
|
|
3238
|
+
const h = E(() => t.data), v = C(!1), p = C(!1);
|
|
3234
3239
|
return J(v, () => {
|
|
3235
3240
|
v.value ? n("edit-start") : n("edit-end");
|
|
3236
|
-
}), (b, x) => (i(), g("div",
|
|
3237
|
-
y(
|
|
3238
|
-
default:
|
|
3239
|
-
P(u("div",
|
|
3241
|
+
}), (b, x) => (i(), g("div", Ia, [
|
|
3242
|
+
y(he, { name: "fade" }, {
|
|
3243
|
+
default: L(() => [
|
|
3244
|
+
P(u("div", Na, [
|
|
3240
3245
|
y(Pe)
|
|
3241
3246
|
], 512), [
|
|
3242
3247
|
[B, e.loading]
|
|
@@ -3244,7 +3249,7 @@ const Zn = {
|
|
|
3244
3249
|
]),
|
|
3245
3250
|
_: 1
|
|
3246
3251
|
}),
|
|
3247
|
-
y(
|
|
3252
|
+
y(mn, {
|
|
3248
3253
|
"edit-mode": v.value,
|
|
3249
3254
|
"onUpdate:editMode": x[1] || (x[1] = (w) => v.value = w),
|
|
3250
3255
|
"filter-panel-open": p.value,
|
|
@@ -3253,28 +3258,28 @@ const Zn = {
|
|
|
3253
3258
|
options: e.options,
|
|
3254
3259
|
onClearFilters: f
|
|
3255
3260
|
}, {
|
|
3256
|
-
"view-manager":
|
|
3257
|
-
y(
|
|
3261
|
+
"view-manager": L(() => [
|
|
3262
|
+
y(Ma, {
|
|
3258
3263
|
columns: a(l),
|
|
3259
3264
|
"onUpdate:columns": x[0] || (x[0] = (w) => be(l) ? l.value = w : null)
|
|
3260
3265
|
}, null, 8, ["columns"])
|
|
3261
3266
|
]),
|
|
3262
3267
|
_: 1
|
|
3263
3268
|
}, 8, ["edit-mode", "filter-panel-open", "columns", "options"]),
|
|
3264
|
-
u("div",
|
|
3269
|
+
u("div", Da, [
|
|
3265
3270
|
u("table", {
|
|
3266
3271
|
class: D(["cl-delay-75 cl-overflow-x-auto cl-overscroll-x-none cl-text-left cl-transition-opacity cl-w-full", {
|
|
3267
3272
|
"cl-opacity-40": e.loading
|
|
3268
3273
|
}])
|
|
3269
3274
|
}, [
|
|
3270
|
-
u("colgroup",
|
|
3271
|
-
(i(!0), g(z, null, _(a(o), (w,
|
|
3272
|
-
key:
|
|
3275
|
+
u("colgroup", qa, [
|
|
3276
|
+
(i(!0), g(z, null, _(a(o), (w, j) => (i(), g("col", {
|
|
3277
|
+
key: j,
|
|
3273
3278
|
style: ll(m(w.name)),
|
|
3274
3279
|
span: 1
|
|
3275
3280
|
}, null, 4))), 128))
|
|
3276
3281
|
]),
|
|
3277
|
-
y(
|
|
3282
|
+
y(ha, {
|
|
3278
3283
|
request: a(c),
|
|
3279
3284
|
"onUpdate:request": x[3] || (x[3] = (w) => be(c) ? c.value = w : null),
|
|
3280
3285
|
"filter-panel-open": p.value,
|
|
@@ -3282,7 +3287,7 @@ const Zn = {
|
|
|
3282
3287
|
columns: a(o),
|
|
3283
3288
|
options: e.options
|
|
3284
3289
|
}, null, 8, ["request", "filter-panel-open", "columns", "options"]),
|
|
3285
|
-
y(
|
|
3290
|
+
y(Cn, {
|
|
3286
3291
|
columns: a(o),
|
|
3287
3292
|
request: a(c),
|
|
3288
3293
|
data: a(h),
|
|
@@ -3293,44 +3298,44 @@ const Zn = {
|
|
|
3293
3298
|
onRowEdit: x[5] || (x[5] = (w) => b.$emit("row-edit", w)),
|
|
3294
3299
|
onRowSelect: x[6] || (x[6] = (w) => b.$emit("row-select", w))
|
|
3295
3300
|
}, Le({ _: 2 }, [
|
|
3296
|
-
_(b.$slots, (w,
|
|
3297
|
-
name:
|
|
3298
|
-
fn:
|
|
3299
|
-
|
|
3301
|
+
_(b.$slots, (w, j) => ({
|
|
3302
|
+
name: j,
|
|
3303
|
+
fn: L((H) => [
|
|
3304
|
+
M(b.$slots, j, le(ce(H)))
|
|
3300
3305
|
])
|
|
3301
3306
|
}))
|
|
3302
3307
|
]), 1032, ["columns", "request", "data", "loading", "edit-mode", "selection-enabled"])
|
|
3303
3308
|
], 2)
|
|
3304
3309
|
]),
|
|
3305
|
-
y(
|
|
3310
|
+
y(Fn, {
|
|
3306
3311
|
request: a(c),
|
|
3307
3312
|
"onUpdate:request": x[7] || (x[7] = (w) => be(c) ? c.value = w : null),
|
|
3308
3313
|
data: e.data
|
|
3309
3314
|
}, null, 8, ["request", "data"])
|
|
3310
3315
|
]));
|
|
3311
3316
|
}
|
|
3312
|
-
}),
|
|
3317
|
+
}), Pa = { 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" }, Ua = /* @__PURE__ */ q({
|
|
3313
3318
|
__name: "cl-ui-header",
|
|
3314
3319
|
emits: ["open-click"],
|
|
3315
3320
|
setup(e) {
|
|
3316
|
-
return (n, t) => (i(), g("header",
|
|
3317
|
-
|
|
3321
|
+
return (n, t) => (i(), g("header", Pa, [
|
|
3322
|
+
M(n.$slots, "logo"),
|
|
3318
3323
|
u("div", {
|
|
3319
3324
|
class: "cl-cursor-pointer cl-flex cl-flex-nowrap",
|
|
3320
3325
|
onClick: t[0] || (t[0] = (l) => n.$emit("open-click"))
|
|
3321
3326
|
}, [
|
|
3322
|
-
|
|
3323
|
-
|
|
3327
|
+
M(n.$slots, "menu"),
|
|
3328
|
+
M(n.$slots, "icon")
|
|
3324
3329
|
])
|
|
3325
3330
|
]));
|
|
3326
3331
|
}
|
|
3327
|
-
}),
|
|
3332
|
+
}), Ba = { 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]" }, za = ["src"], La = { class: "cl-grow cl-hidden cl-my-4 cl-text-white md:cl-block" }, Fa = {
|
|
3328
3333
|
key: 0,
|
|
3329
3334
|
class: "cl-text-ellipsis cl-whitespace-nowrap"
|
|
3330
|
-
},
|
|
3335
|
+
}, Va = {
|
|
3331
3336
|
key: 1,
|
|
3332
3337
|
class: "cl-text-ellipsis cl-text-xs cl-whitespace-nowrap"
|
|
3333
|
-
},
|
|
3338
|
+
}, Ga = { 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" }, Ha = { class: "cl-absolute cl-bg-white cl-right-0 cl-shadow-2xl cl-top-20 cl-w-full cl-z-20" }, Wa = /* @__PURE__ */ q({
|
|
3334
3339
|
__name: "cl-ui-header-menu",
|
|
3335
3340
|
props: {
|
|
3336
3341
|
username: { default: "" },
|
|
@@ -3350,23 +3355,23 @@ const Zn = {
|
|
|
3350
3355
|
ref: l,
|
|
3351
3356
|
class: "cl-bg-blue-light md:cl-relative"
|
|
3352
3357
|
}, [
|
|
3353
|
-
u("div",
|
|
3358
|
+
u("div", Ba, [
|
|
3354
3359
|
e.image ? (i(), g("img", {
|
|
3355
3360
|
key: 0,
|
|
3356
3361
|
src: e.image,
|
|
3357
3362
|
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"
|
|
3358
|
-
}, null, 8,
|
|
3363
|
+
}, null, 8, za)) : (i(), F(a(N), {
|
|
3359
3364
|
key: 1,
|
|
3360
3365
|
class: "cl-hidden cl-m-4 cl-text-white md:cl-block",
|
|
3361
3366
|
icon: "ph:user-circle",
|
|
3362
3367
|
width: "48",
|
|
3363
3368
|
height: "48"
|
|
3364
3369
|
})),
|
|
3365
|
-
u("div",
|
|
3366
|
-
e.username ? (i(), g("div",
|
|
3367
|
-
e.group ? (i(), g("div",
|
|
3370
|
+
u("div", La, [
|
|
3371
|
+
e.username ? (i(), g("div", Fa, k(e.username), 1)) : I("", !0),
|
|
3372
|
+
e.group ? (i(), g("div", Va, k(e.group), 1)) : I("", !0)
|
|
3368
3373
|
]),
|
|
3369
|
-
u("div",
|
|
3374
|
+
u("div", Ga, [
|
|
3370
3375
|
y(a(N), {
|
|
3371
3376
|
class: D(["cl-text-white cl-transform-gpu cl-transition-transform", {
|
|
3372
3377
|
"cl-rotate-180": e.isOpen
|
|
@@ -3375,10 +3380,10 @@ const Zn = {
|
|
|
3375
3380
|
}, null, 8, ["class"])
|
|
3376
3381
|
])
|
|
3377
3382
|
]),
|
|
3378
|
-
y(
|
|
3379
|
-
default:
|
|
3380
|
-
P(u("div",
|
|
3381
|
-
|
|
3383
|
+
y(he, { name: "fade" }, {
|
|
3384
|
+
default: L(() => [
|
|
3385
|
+
P(u("div", Ha, [
|
|
3386
|
+
M(r.$slots, "default")
|
|
3382
3387
|
], 512), [
|
|
3383
3388
|
[B, e.isOpen]
|
|
3384
3389
|
])
|
|
@@ -3387,7 +3392,7 @@ const Zn = {
|
|
|
3387
3392
|
})
|
|
3388
3393
|
], 512));
|
|
3389
3394
|
}
|
|
3390
|
-
}),
|
|
3395
|
+
}), Ja = [
|
|
3391
3396
|
"button",
|
|
3392
3397
|
"checkbox",
|
|
3393
3398
|
"color",
|
|
@@ -3410,24 +3415,24 @@ const Zn = {
|
|
|
3410
3415
|
function Be(e) {
|
|
3411
3416
|
return /[a-z]{2}-[A-Z]{2}/gm.test(e.localeCode);
|
|
3412
3417
|
}
|
|
3413
|
-
function
|
|
3418
|
+
function Ka(e) {
|
|
3414
3419
|
let n = Array.isArray(e);
|
|
3415
3420
|
if (n) {
|
|
3416
3421
|
for (const t of e)
|
|
3417
|
-
if (!
|
|
3422
|
+
if (!Za(t)) {
|
|
3418
3423
|
n = !1;
|
|
3419
3424
|
break;
|
|
3420
3425
|
}
|
|
3421
3426
|
}
|
|
3422
3427
|
return n;
|
|
3423
3428
|
}
|
|
3424
|
-
function
|
|
3429
|
+
function Za(e) {
|
|
3425
3430
|
return typeof e.name == "string" && typeof e.nativeName == "string" && typeof e.localeCode == "string";
|
|
3426
3431
|
}
|
|
3427
|
-
const
|
|
3432
|
+
const Qa = {
|
|
3428
3433
|
key: 0,
|
|
3429
3434
|
class: "cl-flex cl-relative cl-select-none cl-w-auto cl-z-30"
|
|
3430
|
-
},
|
|
3435
|
+
}, Ya = { class: "cl-absolute cl-bg-white cl-border cl-border-grey-0 cl-overflow-hidden cl-right-0 cl-rounded cl-shadow-xl cl-text-black cl-top-6 cl-z-3" }, Xa = ["data-localename", "data-localecode", "onClick"], _a = { class: "cl-text-xs" }, eo = /* @__PURE__ */ q({
|
|
3431
3436
|
__name: "cl-ui-language-switcher",
|
|
3432
3437
|
props: {
|
|
3433
3438
|
supportedLanguages: null,
|
|
@@ -3436,13 +3441,13 @@ const Ka = {
|
|
|
3436
3441
|
},
|
|
3437
3442
|
emits: ["language-select"],
|
|
3438
3443
|
setup(e, { emit: n }) {
|
|
3439
|
-
const t = e, { locale: l } = ne(), o = C(!1), r =
|
|
3444
|
+
const t = e, { locale: l } = ne(), o = C(!1), r = E(() => t.supportedLanguages.find((c) => c.localeCode === l.value) ?? t.defaultLangauge), s = E(() => t.supportedLanguages.filter((c) => Be(c)).sort((c, f) => c.nativeName > f.nativeName ? 1 : f.nativeName > c.nativeName ? -1 : 0));
|
|
3440
3445
|
function m() {
|
|
3441
3446
|
t.disabled || (o.value = !o.value);
|
|
3442
3447
|
}
|
|
3443
3448
|
return J(() => t.disabled, (c) => {
|
|
3444
3449
|
c && (o.value = !1);
|
|
3445
|
-
}), (c, f) => a(r) !== null && a(Be)(a(r)) ? (i(), g("div",
|
|
3450
|
+
}), (c, f) => a(r) !== null && a(Be)(a(r)) ? (i(), g("div", Qa, [
|
|
3446
3451
|
u("div", {
|
|
3447
3452
|
class: D(["cl-flex cl-items-center", {
|
|
3448
3453
|
"cl-cursor-pointer": !e.disabled
|
|
@@ -3455,9 +3460,9 @@ const Ka = {
|
|
|
3455
3460
|
}])
|
|
3456
3461
|
}, k(a(r).nativeName), 3)
|
|
3457
3462
|
], 2),
|
|
3458
|
-
y(
|
|
3459
|
-
default:
|
|
3460
|
-
P(u("div",
|
|
3463
|
+
y(he, { name: "fade" }, {
|
|
3464
|
+
default: L(() => [
|
|
3465
|
+
P(u("div", Ya, [
|
|
3461
3466
|
(i(!0), g(z, null, _(a(s), (d, h) => (i(), g("div", {
|
|
3462
3467
|
key: h,
|
|
3463
3468
|
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",
|
|
@@ -3467,8 +3472,8 @@ const Ka = {
|
|
|
3467
3472
|
l.value = d.localeCode, m(), n("language-select", d.localeCode);
|
|
3468
3473
|
}
|
|
3469
3474
|
}, [
|
|
3470
|
-
u("span",
|
|
3471
|
-
], 8,
|
|
3475
|
+
u("span", _a, k(d.nativeName), 1)
|
|
3476
|
+
], 8, Xa))), 128))
|
|
3472
3477
|
], 512), [
|
|
3473
3478
|
[B, o.value]
|
|
3474
3479
|
])
|
|
@@ -3477,10 +3482,10 @@ const Ka = {
|
|
|
3477
3482
|
})
|
|
3478
3483
|
])) : I("", !0);
|
|
3479
3484
|
}
|
|
3480
|
-
}),
|
|
3485
|
+
}), lo = { class: "cl-relative" }, to = { class: "cl-h-screen cl-z-0" }, no = { 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" }, ao = { class: "cl-col-span-10 lg:cl-col-span-3" }, oo = {
|
|
3481
3486
|
key: 0,
|
|
3482
3487
|
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"
|
|
3483
|
-
},
|
|
3488
|
+
}, co = { class: "cl-col-span-3" }, so = { class: "cl-inline cl-relative cl-text-grey-4" }, io = { class: "cl-col-span-3" }, ro = { class: "cl-inline cl-relative cl-text-grey-4" }, uo = { class: "cl-col-span-10 cl-emphasis-danger cl-mt-10 cl-p-3 cl-rounded-md cl-text-sm md:cl-mt-3" }, fo = /* @__PURE__ */ q({
|
|
3484
3489
|
__name: "cl-ui-login",
|
|
3485
3490
|
props: {
|
|
3486
3491
|
errors: { default: () => [] },
|
|
@@ -3512,16 +3517,16 @@ const Ka = {
|
|
|
3512
3517
|
function d(h, v) {
|
|
3513
3518
|
s.value = h;
|
|
3514
3519
|
}
|
|
3515
|
-
return (h, v) => (i(), g("div",
|
|
3516
|
-
u("div",
|
|
3517
|
-
|
|
3520
|
+
return (h, v) => (i(), g("div", lo, [
|
|
3521
|
+
u("div", to, [
|
|
3522
|
+
M(h.$slots, "background")
|
|
3518
3523
|
]),
|
|
3519
|
-
u("form",
|
|
3520
|
-
u("div",
|
|
3521
|
-
|
|
3524
|
+
u("form", no, [
|
|
3525
|
+
u("div", ao, [
|
|
3526
|
+
M(h.$slots, "logo")
|
|
3522
3527
|
]),
|
|
3523
|
-
h.$slots["language-switcher"] ? (i(), g("div",
|
|
3524
|
-
|
|
3528
|
+
h.$slots["language-switcher"] ? (i(), g("div", oo, [
|
|
3529
|
+
M(h.$slots, "language-switcher")
|
|
3525
3530
|
])) : I("", !0),
|
|
3526
3531
|
u("div", {
|
|
3527
3532
|
class: D(["cl-gap-y-4 cl-grid cl-grid-cols-1 lg:cl-gap-x-2 lg:cl-grid-cols-8", {
|
|
@@ -3529,8 +3534,8 @@ const Ka = {
|
|
|
3529
3534
|
"cl-col-span-6": h.$slots["language-switcher"]
|
|
3530
3535
|
}])
|
|
3531
3536
|
}, [
|
|
3532
|
-
u("div",
|
|
3533
|
-
u("div",
|
|
3537
|
+
u("div", co, [
|
|
3538
|
+
u("div", so, [
|
|
3534
3539
|
y(a(N), {
|
|
3535
3540
|
class: "cl-absolute cl-left-3 cl-top-2.5",
|
|
3536
3541
|
icon: "ph:user",
|
|
@@ -3556,8 +3561,8 @@ const Ka = {
|
|
|
3556
3561
|
}, null, 8, ["modelValue", "highlight-when-valid", "label", "placeholder-text", "message-when-valid"])
|
|
3557
3562
|
])
|
|
3558
3563
|
]),
|
|
3559
|
-
u("div",
|
|
3560
|
-
u("div",
|
|
3564
|
+
u("div", io, [
|
|
3565
|
+
u("div", ro, [
|
|
3561
3566
|
y(a(N), {
|
|
3562
3567
|
class: "cl-absolute cl-left-3 cl-top-2.5",
|
|
3563
3568
|
icon: "ph:lock",
|
|
@@ -3608,18 +3613,18 @@ const Ka = {
|
|
|
3608
3613
|
disabled: !s.value || o.value === "",
|
|
3609
3614
|
onClick: Q(m, ["prevent"])
|
|
3610
3615
|
}, {
|
|
3611
|
-
default:
|
|
3616
|
+
default: L(() => [
|
|
3612
3617
|
X(k(a(t)("login.login")), 1)
|
|
3613
3618
|
]),
|
|
3614
3619
|
_: 1
|
|
3615
3620
|
}, 8, ["loading", "disabled", "onClick"])
|
|
3616
3621
|
], 2)
|
|
3617
3622
|
], 2),
|
|
3618
|
-
y(
|
|
3619
|
-
default:
|
|
3623
|
+
y(he, { name: "cl-grow-down" }, {
|
|
3624
|
+
default: L(() => {
|
|
3620
3625
|
var p;
|
|
3621
3626
|
return [
|
|
3622
|
-
P(u("span",
|
|
3627
|
+
P(u("span", uo, [
|
|
3623
3628
|
(i(!0), g(z, null, _(e.errors, (b, x) => (i(), g("div", {
|
|
3624
3629
|
key: x,
|
|
3625
3630
|
class: "cl-font-semibold"
|
|
@@ -3634,25 +3639,25 @@ const Ka = {
|
|
|
3634
3639
|
])
|
|
3635
3640
|
]));
|
|
3636
3641
|
}
|
|
3637
|
-
}),
|
|
3642
|
+
}), mo = [
|
|
3638
3643
|
"x-small",
|
|
3639
3644
|
"small",
|
|
3640
3645
|
"medium",
|
|
3641
3646
|
"large"
|
|
3642
|
-
],
|
|
3647
|
+
], go = [
|
|
3643
3648
|
"primary",
|
|
3644
3649
|
"secondary",
|
|
3645
3650
|
"white"
|
|
3646
|
-
],
|
|
3651
|
+
], bo = {
|
|
3647
3652
|
id: "group-container",
|
|
3648
3653
|
class: "cl-bg-blue-default cl-h-full cl-overflow-y-auto cl-overscroll-y-none cl-pb-20 cl-w-20 cl-z-30 xl:cl-pb-0"
|
|
3649
|
-
},
|
|
3654
|
+
}, vo = {
|
|
3650
3655
|
key: 0,
|
|
3651
3656
|
class: "cl-h-0 cl-w-0"
|
|
3652
|
-
},
|
|
3657
|
+
}, ho = { class: "cl-relative cl-w-full" }, po = /* @__PURE__ */ q({
|
|
3653
3658
|
__name: "cl-ui-navigation",
|
|
3654
3659
|
setup(e) {
|
|
3655
|
-
const n = C([]), t =
|
|
3660
|
+
const n = C([]), t = E(() => n.value.filter((v) => v.open === !0).length > 0);
|
|
3656
3661
|
function l(v) {
|
|
3657
3662
|
let p = n.value.find((b) => b.id === v);
|
|
3658
3663
|
return p || (p = {
|
|
@@ -3691,32 +3696,32 @@ const Ka = {
|
|
|
3691
3696
|
ref: d,
|
|
3692
3697
|
class: "cl-flex cl-flex-nowrap cl-relative"
|
|
3693
3698
|
}, [
|
|
3694
|
-
u("div",
|
|
3695
|
-
|
|
3699
|
+
u("div", bo, [
|
|
3700
|
+
M(v.$slots, "icon", le(ce({ groupIsOpen: l, toggleOpen: o })), void 0, !0)
|
|
3696
3701
|
]),
|
|
3697
|
-
m.value ? (i(), g("div",
|
|
3698
|
-
y(
|
|
3699
|
-
default:
|
|
3702
|
+
m.value ? (i(), g("div", vo)) : I("", !0),
|
|
3703
|
+
y(he, { name: "slide-right" }, {
|
|
3704
|
+
default: L(() => [
|
|
3700
3705
|
P(u("div", {
|
|
3701
3706
|
class: D(["cl-bg-grey-0 cl-border-grey-2 cl-border-r cl-duration-75 cl-h-full cl-min-w-[260px] cl-overflow-y-auto cl-overscroll-y-none cl-p-8 cl-pb-24 cl-top-0 cl-transition-shadow cl-w-[260px] cl-z-20 xl:cl-pb-0", {
|
|
3702
3707
|
"cl-relative": s.value,
|
|
3703
3708
|
"cl-absolute cl-left-20 cl-shadow-lg": !s.value
|
|
3704
3709
|
}])
|
|
3705
3710
|
}, [
|
|
3706
|
-
u("div",
|
|
3711
|
+
u("div", ho, [
|
|
3707
3712
|
u("span", {
|
|
3708
3713
|
class: "cl-absolute cl-cursor-pointer cl-hidden cl-right-0 cl-top-1.5 lg:cl-block",
|
|
3709
3714
|
onClick: f
|
|
3710
3715
|
}, [
|
|
3711
|
-
s.value ? (i(),
|
|
3716
|
+
s.value ? (i(), F(a(N), {
|
|
3712
3717
|
key: 1,
|
|
3713
3718
|
icon: "ph:push-pin-slash"
|
|
3714
|
-
})) : (i(),
|
|
3719
|
+
})) : (i(), F(a(N), {
|
|
3715
3720
|
key: 0,
|
|
3716
3721
|
icon: "ph:push-pin"
|
|
3717
3722
|
}))
|
|
3718
3723
|
]),
|
|
3719
|
-
|
|
3724
|
+
M(v.$slots, "default", le(ce({ groupIsOpen: l })), void 0, !0)
|
|
3720
3725
|
])
|
|
3721
3726
|
], 2), [
|
|
3722
3727
|
[B, a(t)]
|
|
@@ -3727,7 +3732,7 @@ const Ka = {
|
|
|
3727
3732
|
], 512));
|
|
3728
3733
|
}
|
|
3729
3734
|
});
|
|
3730
|
-
const
|
|
3735
|
+
const yo = /* @__PURE__ */ me(po, [["__scopeId", "data-v-5f879ad8"]]), wo = /* @__PURE__ */ q({
|
|
3731
3736
|
__name: "cl-ui-navigation-icon",
|
|
3732
3737
|
props: {
|
|
3733
3738
|
iconValue: null,
|
|
@@ -3746,45 +3751,45 @@ const ho = /* @__PURE__ */ me(vo, [["__scopeId", "data-v-5f879ad8"]]), po = /* @
|
|
|
3746
3751
|
}, null, 8, ["icon"])
|
|
3747
3752
|
], 2));
|
|
3748
3753
|
}
|
|
3749
|
-
}),
|
|
3754
|
+
}), xo = {
|
|
3750
3755
|
key: 0,
|
|
3751
3756
|
class: "cl-font-bold cl-leading-8 cl-mb-8 cl-pr-8 cl-select-none cl-text-blue-light cl-text-lg"
|
|
3752
|
-
},
|
|
3757
|
+
}, $o = { class: "cl-flex cl-flex-wrap cl-space-y-8 cl-text-sm cl-w-full" }, ko = /* @__PURE__ */ q({
|
|
3753
3758
|
__name: "cl-ui-navigation-group",
|
|
3754
3759
|
props: {
|
|
3755
3760
|
open: { type: Boolean }
|
|
3756
3761
|
},
|
|
3757
3762
|
setup(e) {
|
|
3758
3763
|
return (n, t) => e.open ? (i(), g(z, { key: 0 }, [
|
|
3759
|
-
n.$slots.title ? (i(), g("div",
|
|
3760
|
-
|
|
3764
|
+
n.$slots.title ? (i(), g("div", xo, [
|
|
3765
|
+
M(n.$slots, "title")
|
|
3761
3766
|
])) : I("", !0),
|
|
3762
|
-
u("div",
|
|
3763
|
-
|
|
3767
|
+
u("div", $o, [
|
|
3768
|
+
M(n.$slots, "default")
|
|
3764
3769
|
])
|
|
3765
3770
|
], 64)) : I("", !0);
|
|
3766
3771
|
}
|
|
3767
|
-
}),
|
|
3772
|
+
}), To = {}, Co = { class: "cl-w-full" }, So = {
|
|
3768
3773
|
key: 0,
|
|
3769
3774
|
class: "cl-font-bold cl-mb-4 cl-select-none"
|
|
3770
|
-
},
|
|
3771
|
-
function
|
|
3772
|
-
return i(), g("div",
|
|
3773
|
-
e.$slots.title ? (i(), g("div",
|
|
3774
|
-
|
|
3775
|
+
}, Eo = { class: "cl-flex cl-flex-wrap cl-space-y-2" };
|
|
3776
|
+
function jo(e, n) {
|
|
3777
|
+
return i(), g("div", Co, [
|
|
3778
|
+
e.$slots.title ? (i(), g("div", So, [
|
|
3779
|
+
M(e.$slots, "title")
|
|
3775
3780
|
])) : I("", !0),
|
|
3776
|
-
u("span",
|
|
3777
|
-
|
|
3781
|
+
u("span", Eo, [
|
|
3782
|
+
M(e.$slots, "default")
|
|
3778
3783
|
])
|
|
3779
3784
|
]);
|
|
3780
3785
|
}
|
|
3781
|
-
const
|
|
3782
|
-
function
|
|
3783
|
-
return i(), g("div",
|
|
3784
|
-
|
|
3786
|
+
const Oo = /* @__PURE__ */ me(To, [["render", jo]]), Ao = {}, Mo = { class: "cl-cursor-pointer cl-transition-colors cl-w-full hover:cl-text-blue-light" };
|
|
3787
|
+
function Io(e, n) {
|
|
3788
|
+
return i(), g("div", Mo, [
|
|
3789
|
+
M(e.$slots, "default")
|
|
3785
3790
|
]);
|
|
3786
3791
|
}
|
|
3787
|
-
const
|
|
3792
|
+
const No = /* @__PURE__ */ me(Ao, [["render", Io]]), Do = { class: "cl-w-full" }, qo = /* @__PURE__ */ q({
|
|
3788
3793
|
__name: "cl-ui-tab",
|
|
3789
3794
|
props: {
|
|
3790
3795
|
currentTab: { default: 0 },
|
|
@@ -3813,7 +3818,7 @@ const Mo = /* @__PURE__ */ me(jo, [["render", Ao]]), Io = { class: "cl-w-full" }
|
|
|
3813
3818
|
f === "left" && (h = -d), t.value.scroll(t.value.scrollLeft + h, 0);
|
|
3814
3819
|
}
|
|
3815
3820
|
}
|
|
3816
|
-
return Ce(() => m()), Re(() => window.removeEventListener("resize", s)), (f, d) => (i(), g("div",
|
|
3821
|
+
return Ce(() => m()), Re(() => window.removeEventListener("resize", s)), (f, d) => (i(), g("div", Do, [
|
|
3817
3822
|
u("div", null, [
|
|
3818
3823
|
l.value ? (i(), g("div", {
|
|
3819
3824
|
key: 0,
|
|
@@ -3839,7 +3844,7 @@ const Mo = /* @__PURE__ */ me(jo, [["render", Ao]]), Io = { class: "cl-w-full" }
|
|
|
3839
3844
|
}]),
|
|
3840
3845
|
onScrollPassive: s
|
|
3841
3846
|
}, [
|
|
3842
|
-
|
|
3847
|
+
M(f.$slots, "headings", le(ce({ isTabOpen: r, disabled: e.disabled, colour: e.colour })))
|
|
3843
3848
|
], 34),
|
|
3844
3849
|
o.value ? (i(), g("div", {
|
|
3845
3850
|
key: 1,
|
|
@@ -3852,10 +3857,10 @@ const Mo = /* @__PURE__ */ me(jo, [["render", Ao]]), Io = { class: "cl-w-full" }
|
|
|
3852
3857
|
})
|
|
3853
3858
|
])) : I("", !0)
|
|
3854
3859
|
]),
|
|
3855
|
-
|
|
3860
|
+
M(f.$slots, "content", le(ce({ isTabOpen: r, disabled: e.disabled, colour: e.colour })))
|
|
3856
3861
|
]));
|
|
3857
3862
|
}
|
|
3858
|
-
}),
|
|
3863
|
+
}), Ro = ["onKeyup"], Po = /* @__PURE__ */ q({
|
|
3859
3864
|
__name: "cl-ui-tab-header",
|
|
3860
3865
|
props: {
|
|
3861
3866
|
id: null,
|
|
@@ -3867,7 +3872,7 @@ const Mo = /* @__PURE__ */ me(jo, [["render", Ao]]), Io = { class: "cl-w-full" }
|
|
|
3867
3872
|
"update:currentTab": null
|
|
3868
3873
|
},
|
|
3869
3874
|
setup(e, { emit: n }) {
|
|
3870
|
-
const t = e, l = C(), o = C(), r =
|
|
3875
|
+
const t = e, l = C(), o = C(), r = E(() => t.id === t.currentTab);
|
|
3871
3876
|
function s() {
|
|
3872
3877
|
t.disabled || (l.value = !1, o.value = !1, n("update:currentTab", t.id));
|
|
3873
3878
|
}
|
|
@@ -3899,23 +3904,23 @@ const Mo = /* @__PURE__ */ me(jo, [["render", Ao]]), Io = { class: "cl-w-full" }
|
|
|
3899
3904
|
onFocusout: c[3] || (c[3] = (f) => l.value = !1),
|
|
3900
3905
|
onKeyup: Te(Q(s, ["self"]), ["enter"])
|
|
3901
3906
|
}, [
|
|
3902
|
-
|
|
3903
|
-
], 42,
|
|
3907
|
+
M(m.$slots, "default")
|
|
3908
|
+
], 42, Ro));
|
|
3904
3909
|
}
|
|
3905
|
-
}),
|
|
3906
|
-
function
|
|
3907
|
-
return
|
|
3910
|
+
}), Uo = {};
|
|
3911
|
+
function Bo(e, n) {
|
|
3912
|
+
return M(e.$slots, "default");
|
|
3908
3913
|
}
|
|
3909
|
-
const
|
|
3914
|
+
const zo = /* @__PURE__ */ me(Uo, [["render", Bo]]), Lo = [
|
|
3910
3915
|
"default",
|
|
3911
3916
|
"primary",
|
|
3912
3917
|
"secondary",
|
|
3913
3918
|
"danger",
|
|
3914
3919
|
"blue"
|
|
3915
|
-
],
|
|
3920
|
+
], Fo = [
|
|
3916
3921
|
"left",
|
|
3917
3922
|
"right"
|
|
3918
|
-
],
|
|
3923
|
+
], Vo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3919
3924
|
__proto__: null,
|
|
3920
3925
|
FilterOperation: ge,
|
|
3921
3926
|
buttonColours: Ul,
|
|
@@ -3927,44 +3932,44 @@ const Uo = /* @__PURE__ */ me(Ro, [["render", Po]]), Bo = [
|
|
|
3927
3932
|
clUiApp: Il,
|
|
3928
3933
|
clUiButton: ve,
|
|
3929
3934
|
clUiCard: Ll,
|
|
3930
|
-
clUiComboBox:
|
|
3931
|
-
clUiFooter:
|
|
3932
|
-
clUiGrid:
|
|
3933
|
-
clUiHeader:
|
|
3934
|
-
clUiHeaderMenu:
|
|
3935
|
+
clUiComboBox: Yt,
|
|
3936
|
+
clUiFooter: sn,
|
|
3937
|
+
clUiGrid: Ra,
|
|
3938
|
+
clUiHeader: Ua,
|
|
3939
|
+
clUiHeaderMenu: Wa,
|
|
3935
3940
|
clUiInput: re,
|
|
3936
|
-
clUiLanguageSwitcher:
|
|
3941
|
+
clUiLanguageSwitcher: eo,
|
|
3937
3942
|
clUiLoadingSpinner: Pe,
|
|
3938
|
-
clUiLogin:
|
|
3943
|
+
clUiLogin: fo,
|
|
3939
3944
|
clUiModal: sl,
|
|
3940
|
-
clUiNavigation:
|
|
3941
|
-
clUiNavigationGroup:
|
|
3942
|
-
clUiNavigationIcon:
|
|
3943
|
-
clUiNavigationItem:
|
|
3944
|
-
clUiNavigationSection:
|
|
3945
|
+
clUiNavigation: yo,
|
|
3946
|
+
clUiNavigationGroup: ko,
|
|
3947
|
+
clUiNavigationIcon: wo,
|
|
3948
|
+
clUiNavigationItem: No,
|
|
3949
|
+
clUiNavigationSection: Oo,
|
|
3945
3950
|
clUiNotification: cl,
|
|
3946
|
-
clUiTab:
|
|
3947
|
-
clUiTabContent:
|
|
3948
|
-
clUiTabHeader:
|
|
3949
|
-
filterMethodTypes:
|
|
3950
|
-
gridColumnTypes:
|
|
3951
|
-
inputTypes:
|
|
3952
|
-
isComboBoxCreateRequest:
|
|
3953
|
-
isComboBoxItem:
|
|
3954
|
-
isFilterRequest:
|
|
3955
|
-
isFilterResponse:
|
|
3951
|
+
clUiTab: qo,
|
|
3952
|
+
clUiTabContent: zo,
|
|
3953
|
+
clUiTabHeader: Po,
|
|
3954
|
+
filterMethodTypes: Wn,
|
|
3955
|
+
gridColumnTypes: Vn,
|
|
3956
|
+
inputTypes: Ja,
|
|
3957
|
+
isComboBoxCreateRequest: _t,
|
|
3958
|
+
isComboBoxItem: Xt,
|
|
3959
|
+
isFilterRequest: Zn,
|
|
3960
|
+
isFilterResponse: Qn,
|
|
3956
3961
|
isGridColumn: il,
|
|
3957
|
-
isGridColumnArray:
|
|
3958
|
-
isLanguageArray:
|
|
3962
|
+
isGridColumnArray: Gn,
|
|
3963
|
+
isLanguageArray: Ka,
|
|
3959
3964
|
isLanguageLocaleFormat: Be,
|
|
3960
|
-
modalColours:
|
|
3961
|
-
modalSizes:
|
|
3962
|
-
stringFormats:
|
|
3963
|
-
tabColours:
|
|
3964
|
-
tabScroll:
|
|
3965
|
+
modalColours: go,
|
|
3966
|
+
modalSizes: mo,
|
|
3967
|
+
stringFormats: Hn,
|
|
3968
|
+
tabColours: Lo,
|
|
3969
|
+
tabScroll: Fo
|
|
3965
3970
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
3966
|
-
const
|
|
3967
|
-
e.use(Y), e.component("Icon", N), Object.entries(
|
|
3971
|
+
const tc = (e) => {
|
|
3972
|
+
e.use(Y), e.component("Icon", N), Object.entries(Vo).forEach(([
|
|
3968
3973
|
n,
|
|
3969
3974
|
t
|
|
3970
3975
|
]) => {
|
|
@@ -3972,7 +3977,7 @@ const ec = (e) => {
|
|
|
3972
3977
|
});
|
|
3973
3978
|
};
|
|
3974
3979
|
export {
|
|
3975
|
-
|
|
3980
|
+
lc as CitrusLimeUI,
|
|
3976
3981
|
G as DateFormat,
|
|
3977
3982
|
ge as FilterOperation,
|
|
3978
3983
|
ee as NumberFormat,
|
|
@@ -3985,51 +3990,51 @@ export {
|
|
|
3985
3990
|
Il as clUiApp,
|
|
3986
3991
|
ve as clUiButton,
|
|
3987
3992
|
Ll as clUiCard,
|
|
3988
|
-
|
|
3989
|
-
|
|
3990
|
-
|
|
3991
|
-
|
|
3992
|
-
|
|
3993
|
+
Yt as clUiComboBox,
|
|
3994
|
+
sn as clUiFooter,
|
|
3995
|
+
Ra as clUiGrid,
|
|
3996
|
+
Ua as clUiHeader,
|
|
3997
|
+
Wa as clUiHeaderMenu,
|
|
3993
3998
|
re as clUiInput,
|
|
3994
|
-
|
|
3999
|
+
eo as clUiLanguageSwitcher,
|
|
3995
4000
|
Pe as clUiLoadingSpinner,
|
|
3996
|
-
|
|
4001
|
+
fo as clUiLogin,
|
|
3997
4002
|
sl as clUiModal,
|
|
3998
|
-
|
|
3999
|
-
|
|
4000
|
-
|
|
4001
|
-
|
|
4002
|
-
|
|
4003
|
+
yo as clUiNavigation,
|
|
4004
|
+
ko as clUiNavigationGroup,
|
|
4005
|
+
wo as clUiNavigationIcon,
|
|
4006
|
+
No as clUiNavigationItem,
|
|
4007
|
+
Oo as clUiNavigationSection,
|
|
4003
4008
|
cl as clUiNotification,
|
|
4004
|
-
|
|
4005
|
-
|
|
4006
|
-
|
|
4009
|
+
qo as clUiTab,
|
|
4010
|
+
zo as clUiTabContent,
|
|
4011
|
+
Po as clUiTabHeader,
|
|
4007
4012
|
Hl as datetimeFormats,
|
|
4008
|
-
|
|
4009
|
-
|
|
4010
|
-
|
|
4013
|
+
tc as default,
|
|
4014
|
+
Wn as filterMethodTypes,
|
|
4015
|
+
Vn as gridColumnTypes,
|
|
4011
4016
|
Y as i18n,
|
|
4012
|
-
|
|
4013
|
-
|
|
4014
|
-
|
|
4015
|
-
|
|
4016
|
-
|
|
4017
|
+
Ja as inputTypes,
|
|
4018
|
+
_t as isComboBoxCreateRequest,
|
|
4019
|
+
Xt as isComboBoxItem,
|
|
4020
|
+
Zn as isFilterRequest,
|
|
4021
|
+
Qn as isFilterResponse,
|
|
4017
4022
|
il as isGridColumn,
|
|
4018
|
-
|
|
4019
|
-
|
|
4023
|
+
Gn as isGridColumnArray,
|
|
4024
|
+
Ka as isLanguageArray,
|
|
4020
4025
|
Be as isLanguageLocaleFormat,
|
|
4021
4026
|
Vl as messages,
|
|
4022
|
-
|
|
4023
|
-
|
|
4027
|
+
go as modalColours,
|
|
4028
|
+
mo as modalSizes,
|
|
4024
4029
|
Gl as numberFormats,
|
|
4025
|
-
|
|
4026
|
-
|
|
4027
|
-
|
|
4028
|
-
|
|
4030
|
+
ec as setCurrentLocale,
|
|
4031
|
+
_o as setLocaleDateTimeFormats,
|
|
4032
|
+
Yo as setLocaleMessages,
|
|
4033
|
+
Xo as setLocaleNumberFormats,
|
|
4029
4034
|
He as showNotification,
|
|
4030
|
-
|
|
4031
|
-
|
|
4032
|
-
|
|
4035
|
+
Hn as stringFormats,
|
|
4036
|
+
Lo as tabColours,
|
|
4037
|
+
Fo as tabScroll,
|
|
4033
4038
|
Zl as validateEmail,
|
|
4034
4039
|
Jl as validateMaxValue,
|
|
4035
4040
|
Wl as validateMinValue
|