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