@citruslime/ui 3.0.1-beta.22 → 3.0.1-beta.23
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 +489 -500
- package/dist/citrus-lime-ui.umd.js +2 -2
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Icon as J } from "@iconify/vue";
|
|
2
2
|
import { defineComponent as G, ref as M, openBlock as p, createElementBlock as b, renderSlot as I, normalizeProps as pe, guardReactiveProps as me, Fragment as Y, createElementVNode as f, normalizeClass as O, createVNode as T, unref as g, Transition as Ee, withCtx as A, withDirectives as oe, mergeProps as le, vShow as ue, createBlock as P, Teleport as hl, renderList as ne, toDisplayString as D, createCommentVNode as j, computed as w, mergeModels as fe, useModel as be, createSlots as Te, vModelDynamic as Bl, watch as te, toRefs as Fl, withKeys as he, onMounted as We, onUnmounted as tl, withModifiers as re, nextTick as ze, resolveComponent as Ve, createTextVNode as ie, inject as ol, vModelCheckbox as vt, toValue as Dl, watchEffect as bt, useAttrs as yl, vModelText as wl, useCssVars as jl, toHandlers as ht, pushScopeId as Pl, popScopeId as Gl, provide as ml, normalizeStyle as al } from "vue";
|
|
3
3
|
import { generateStringId as yt, highlightText as wt, validateEmail as kt } from "@citruslime/utils";
|
|
4
|
-
import { onKeyDown as gl, unrefElement as $t, tryOnScopeDispose as Ct, onClickOutside as nl, useTimeoutFn as Hl, useMouseInElement as Tt, useFocusWithin as St, useMediaQuery as Zl, useThrottle as qt, useElementBounding as Ot, useDebounceFn as
|
|
4
|
+
import { onKeyDown as gl, unrefElement as $t, tryOnScopeDispose as Ct, onClickOutside as nl, useTimeoutFn as Hl, useMouseInElement as Tt, useFocusWithin as St, useMediaQuery as Zl, useThrottle as qt, useElementBounding as Ot, useDebounceFn as xe, useThrottleFn as Dt, useWindowSize as At } from "@vueuse/core";
|
|
5
5
|
import { useI18n as ce, createI18n as Et } from "vue-i18n";
|
|
6
6
|
import { createFocusTrap as Vt } from "focus-trap";
|
|
7
7
|
import { copy as ge } from "@citruslime/vue-utils";
|
|
@@ -91,16 +91,16 @@ function jt(t, o) {
|
|
|
91
91
|
I(t.$slots, "default")
|
|
92
92
|
]);
|
|
93
93
|
}
|
|
94
|
-
const Pt = /* @__PURE__ */ we(Bt, [["render", jt]]),
|
|
94
|
+
const Pt = /* @__PURE__ */ we(Bt, [["render", jt]]), Xe = M([]);
|
|
95
95
|
function Al(t) {
|
|
96
96
|
const o = {
|
|
97
97
|
id: yt(),
|
|
98
98
|
...t
|
|
99
99
|
};
|
|
100
|
-
|
|
100
|
+
Xe.value.push(o), setTimeout(() => Wl(o), t.duration);
|
|
101
101
|
}
|
|
102
102
|
function Wl(t) {
|
|
103
|
-
|
|
103
|
+
Xe.value = Xe.value.filter((o) => o.id !== t.id);
|
|
104
104
|
}
|
|
105
105
|
const Gt = ["onClick"], Ht = { class: "cl-flex-1 cl-select-none cl-text-ellipsis cl-w-64" }, Kl = /* @__PURE__ */ G({
|
|
106
106
|
inheritAttrs: !1,
|
|
@@ -121,7 +121,7 @@ const Gt = ["onClick"], Ht = { class: "cl-flex-1 cl-select-none cl-text-ellipsis
|
|
|
121
121
|
"cl-bottom-5 cl-right-5": o.position === "bottom-right"
|
|
122
122
|
}])
|
|
123
123
|
}, [
|
|
124
|
-
(p(!0), b(Y, null, ne(g(
|
|
124
|
+
(p(!0), b(Y, null, ne(g(Xe), (e, r) => (p(), b("div", le(o.$attrs, {
|
|
125
125
|
key: r,
|
|
126
126
|
class: ["cl-break-words cl-cursor-pointer cl-flex cl-font-semibold cl-group cl-mb-2 cl-overflow-hidden cl-p-4 cl-rounded cl-shadow-lg cl-text-sm", {
|
|
127
127
|
"cl-bg-white": e.colour === "default",
|
|
@@ -222,14 +222,14 @@ const sl = /* @__PURE__ */ we(Kt, [["render", Yt], ["__scopeId", "data-v-a21dc5d
|
|
|
222
222
|
])
|
|
223
223
|
], 64));
|
|
224
224
|
}
|
|
225
|
-
}),
|
|
225
|
+
}), xt = [
|
|
226
226
|
"default",
|
|
227
227
|
"primary",
|
|
228
228
|
"secondary",
|
|
229
229
|
"danger",
|
|
230
230
|
"blue",
|
|
231
231
|
"orange"
|
|
232
|
-
],
|
|
232
|
+
], Xt = [
|
|
233
233
|
"small",
|
|
234
234
|
"medium",
|
|
235
235
|
"large"
|
|
@@ -833,7 +833,7 @@ const mo = /* @__PURE__ */ f("div", { tabindex: "0" }, null, -1), go = {
|
|
|
833
833
|
}),
|
|
834
834
|
colour: "danger",
|
|
835
835
|
duration: 1e4
|
|
836
|
-
}) : (y = e.objectCreatedResponse) != null && y.id &&
|
|
836
|
+
}) : (y = e.objectCreatedResponse) != null && y.id && x();
|
|
837
837
|
}
|
|
838
838
|
function F() {
|
|
839
839
|
var N;
|
|
@@ -842,8 +842,8 @@ const mo = /* @__PURE__ */ f("div", { tabindex: "0" }, null, -1), go = {
|
|
|
842
842
|
name: e.parentObjectCreatedResponse.name ?? ""
|
|
843
843
|
});
|
|
844
844
|
}
|
|
845
|
-
function
|
|
846
|
-
var y, H, U, Z,
|
|
845
|
+
function x() {
|
|
846
|
+
var y, H, U, Z, X;
|
|
847
847
|
Al({
|
|
848
848
|
message: u("comboBox.createSuccessful", {
|
|
849
849
|
object: e.objectType,
|
|
@@ -856,7 +856,7 @@ const mo = /* @__PURE__ */ f("div", { tabindex: "0" }, null, -1), go = {
|
|
|
856
856
|
c.value && c.value.id === ((H = e.objectCreatedResponse) == null ? void 0 : H.parentId) && (N = c.value.name), s.value = {
|
|
857
857
|
id: ((U = e.objectCreatedResponse) == null ? void 0 : U.id) ?? 0,
|
|
858
858
|
name: ((Z = e.objectCreatedResponse) == null ? void 0 : Z.name) ?? "",
|
|
859
|
-
parentId: ((
|
|
859
|
+
parentId: ((X = e.objectCreatedResponse) == null ? void 0 : X.parentId) ?? 0,
|
|
860
860
|
parentName: N
|
|
861
861
|
};
|
|
862
862
|
}
|
|
@@ -1075,7 +1075,7 @@ function Qo(t) {
|
|
|
1075
1075
|
function Vl(t) {
|
|
1076
1076
|
return t.some((o) => kl(o));
|
|
1077
1077
|
}
|
|
1078
|
-
const Yo = { class: "cl-
|
|
1078
|
+
const Yo = { class: "cl-flex cl-flex-wrap cl-gap-1 cl-overflow-auto cl-pb-2 lg:cl-flex-nowrap lg:cl-gap-2 lg:cl-overflow-visible md:cl-justify-end" }, Jo = { class: "cl-basis-full cl-col-span-2 cl-flex-grow lg:cl-basis-0" }, xo = /* @__PURE__ */ f("hr", { class: "cl-basis-full cl-block cl-border-grey-3 cl-my-4 lg:cl-hidden" }, null, -1), Xo = /* @__PURE__ */ G({
|
|
1079
1079
|
__name: "cl-ui-grid-action-row",
|
|
1080
1080
|
props: {
|
|
1081
1081
|
editMode: { type: Boolean },
|
|
@@ -1103,15 +1103,12 @@ const Yo = { class: "cl-gap-1 cl-grid cl-grid-cols-2 cl-overflow-auto cl-pb-2 lg
|
|
|
1103
1103
|
editMode: a.editMode
|
|
1104
1104
|
})))
|
|
1105
1105
|
]),
|
|
1106
|
-
|
|
1107
|
-
class: O(["cl-block cl-border-grey-3 cl-col-span-2 cl-my-4 lg:cl-hidden", {
|
|
1108
|
-
"cl-hidden": a.options.hideGridMobileView
|
|
1109
|
-
}])
|
|
1110
|
-
}, null, 2),
|
|
1106
|
+
xo,
|
|
1111
1107
|
a.columns.some((u) => u.editable) ? (p(), P($e, {
|
|
1112
1108
|
key: 0,
|
|
1113
1109
|
size: "small",
|
|
1114
1110
|
colour: "default",
|
|
1111
|
+
class: "cl-flex-1 lg:cl-flex-none",
|
|
1115
1112
|
disabled: a.loading,
|
|
1116
1113
|
onClick: d[0] || (d[0] = re((u) => a.$emit("update:edit-mode", !a.editMode), ["prevent"]))
|
|
1117
1114
|
}, {
|
|
@@ -1126,7 +1123,7 @@ const Yo = { class: "cl-gap-1 cl-grid cl-grid-cols-2 cl-overflow-auto cl-pb-2 lg
|
|
|
1126
1123
|
}, 8, ["disabled"])) : j("", !0),
|
|
1127
1124
|
a.options.hideViewManager === !1 ? (p(), b("div", {
|
|
1128
1125
|
key: 1,
|
|
1129
|
-
class: O(["lg:cl-block", {
|
|
1126
|
+
class: O(["cl-flex-1 lg:cl-block lg:cl-flex-none", {
|
|
1130
1127
|
"cl-hidden": a.options.hideGridMobileView === !1
|
|
1131
1128
|
}])
|
|
1132
1129
|
}, [
|
|
@@ -1134,7 +1131,7 @@ const Yo = { class: "cl-gap-1 cl-grid cl-grid-cols-2 cl-overflow-auto cl-pb-2 lg
|
|
|
1134
1131
|
], 2)) : j("", !0),
|
|
1135
1132
|
g(Vl)(a.columns) || g(Qo)(a.columns) ? (p(), b(Y, { key: 2 }, [
|
|
1136
1133
|
f("div", {
|
|
1137
|
-
class: O(["cl-block lg:cl-hidden", {
|
|
1134
|
+
class: O(["cl-block cl-flex-1 lg:cl-flex-none lg:cl-hidden", {
|
|
1138
1135
|
"cl-hidden": a.options.hideGridMobileView
|
|
1139
1136
|
}])
|
|
1140
1137
|
}, [
|
|
@@ -1156,21 +1153,19 @@ const Yo = { class: "cl-gap-1 cl-grid cl-grid-cols-2 cl-overflow-auto cl-pb-2 lg
|
|
|
1156
1153
|
size: "small",
|
|
1157
1154
|
colour: "danger",
|
|
1158
1155
|
disabled: !e.value || a.loading,
|
|
1159
|
-
class:
|
|
1160
|
-
"cl-col-span-2": a.columns.some((u) => u.editable)
|
|
1161
|
-
}),
|
|
1156
|
+
class: "cl-basis-full lg:cl-flex-none",
|
|
1162
1157
|
onClick: d[2] || (d[2] = re((u) => a.$emit("clear-filters"), ["prevent"]))
|
|
1163
1158
|
}, {
|
|
1164
1159
|
default: A(() => [
|
|
1165
1160
|
ie(D(g(l)("grid.clearFilters")), 1)
|
|
1166
1161
|
]),
|
|
1167
1162
|
_: 1
|
|
1168
|
-
}, 8, ["id", "disabled"
|
|
1163
|
+
}, 8, ["id", "disabled"])) : j("", !0)
|
|
1169
1164
|
], 64)) : j("", !0)
|
|
1170
1165
|
])
|
|
1171
1166
|
], 64));
|
|
1172
1167
|
}
|
|
1173
|
-
}),
|
|
1168
|
+
}), _o = ["required", "disabled"], ea = /* @__PURE__ */ G({
|
|
1174
1169
|
inheritAttrs: !1,
|
|
1175
1170
|
__name: "cl-ui-input-checkbox",
|
|
1176
1171
|
props: /* @__PURE__ */ fe({
|
|
@@ -1212,7 +1207,7 @@ const Yo = { class: "cl-gap-1 cl-grid cl-grid-cols-2 cl-overflow-auto cl-pb-2 lg
|
|
|
1212
1207
|
}, ["stop", "prevent"]), ["enter"])),
|
|
1213
1208
|
onFocus: u[2] || (u[2] = (n) => r("focus")),
|
|
1214
1209
|
onBlur: u[3] || (u[3] = (n) => r("blur"))
|
|
1215
|
-
}), null, 16,
|
|
1210
|
+
}), null, 16, _o), [
|
|
1216
1211
|
[vt, e.value]
|
|
1217
1212
|
])
|
|
1218
1213
|
]),
|
|
@@ -1227,9 +1222,9 @@ const Yo = { class: "cl-gap-1 cl-grid cl-grid-cols-2 cl-overflow-auto cl-pb-2 lg
|
|
|
1227
1222
|
} : void 0
|
|
1228
1223
|
]), 1032, ["show-required-asterisk", "errors"]));
|
|
1229
1224
|
}
|
|
1230
|
-
}), il = /* @__PURE__ */ we(
|
|
1225
|
+
}), il = /* @__PURE__ */ we(ea, [["__scopeId", "data-v-1cc17049"]]);
|
|
1231
1226
|
var _ = /* @__PURE__ */ ((t) => (t.CURRENCY = "currency", t.PERCENTAGE = "percentage", t.INTEGER = "integer", t.DECIMAL = "decimal", t.MULTIPLIER = "multiplier", t))(_ || {}), se = /* @__PURE__ */ ((t) => (t.SHORT_DATE = "short-date", t.SHORT_DATETIME = "short-datetime", t.DATE = "date", t.DATETIME = "datetime", t.LONG_DATE = "long-date", t.LONG_DATETIME = "long-datetime", t.TIME = "time", t.MONTH_YEAR = "month-year", t))(se || {});
|
|
1232
|
-
const
|
|
1227
|
+
const la = {
|
|
1233
1228
|
"en-GB": {
|
|
1234
1229
|
comboBox: {
|
|
1235
1230
|
emptyHintText: "Choose a {object}",
|
|
@@ -1330,7 +1325,7 @@ const ea = {
|
|
|
1330
1325
|
quickDatesHeader: "Quick Dates"
|
|
1331
1326
|
}
|
|
1332
1327
|
}
|
|
1333
|
-
},
|
|
1328
|
+
}, ta = {
|
|
1334
1329
|
"en-GB": {
|
|
1335
1330
|
[_.PERCENTAGE]: {
|
|
1336
1331
|
style: "percent",
|
|
@@ -1353,7 +1348,7 @@ const ea = {
|
|
|
1353
1348
|
minimumFractionDigits: 2
|
|
1354
1349
|
}
|
|
1355
1350
|
}
|
|
1356
|
-
},
|
|
1351
|
+
}, oa = {
|
|
1357
1352
|
"en-GB": {
|
|
1358
1353
|
[se.SHORT_DATE]: {
|
|
1359
1354
|
day: "numeric",
|
|
@@ -1403,27 +1398,27 @@ const ea = {
|
|
|
1403
1398
|
}, Ce = Et({
|
|
1404
1399
|
locale: "en-GB",
|
|
1405
1400
|
fallbackLocale: "en-GB",
|
|
1406
|
-
messages:
|
|
1407
|
-
numberFormats:
|
|
1408
|
-
datetimeFormats:
|
|
1401
|
+
messages: la,
|
|
1402
|
+
numberFormats: ta,
|
|
1403
|
+
datetimeFormats: oa,
|
|
1409
1404
|
useScope: "global",
|
|
1410
1405
|
missingWarn: !1,
|
|
1411
1406
|
fallbackWarn: !1,
|
|
1412
1407
|
warnHtmlMessage: !1
|
|
1413
1408
|
});
|
|
1414
|
-
function
|
|
1409
|
+
function Ji(t, o) {
|
|
1415
1410
|
return Ce.global.mergeLocaleMessage(t, o), ze();
|
|
1416
1411
|
}
|
|
1417
|
-
function
|
|
1412
|
+
function xi(t, o) {
|
|
1418
1413
|
return Ce.global.mergeNumberFormat(t, o), ze();
|
|
1419
1414
|
}
|
|
1420
1415
|
function Xi(t, o) {
|
|
1421
1416
|
return Ce.global.mergeDateTimeFormat(t, o), ze();
|
|
1422
1417
|
}
|
|
1423
|
-
function
|
|
1418
|
+
function _i(t) {
|
|
1424
1419
|
return Ce.global.locale.value = t, ze();
|
|
1425
1420
|
}
|
|
1426
|
-
const { locale:
|
|
1421
|
+
const { locale: aa, getNumberFormat: na } = Ce.global, cl = _.DECIMAL;
|
|
1427
1422
|
function ke(t) {
|
|
1428
1423
|
return De(t, _.DECIMAL, { additionalOptions: {
|
|
1429
1424
|
minimumFractionDigits: 0,
|
|
@@ -1455,7 +1450,7 @@ function De(t, o, l) {
|
|
|
1455
1450
|
}
|
|
1456
1451
|
function Yl(t, o, l) {
|
|
1457
1452
|
if (dl(o)) {
|
|
1458
|
-
const e =
|
|
1453
|
+
const e = sa(t, o);
|
|
1459
1454
|
return Ml(e ?? t, cl, l);
|
|
1460
1455
|
} else
|
|
1461
1456
|
return Ml(t, Cl(o), l);
|
|
@@ -1463,7 +1458,7 @@ function Yl(t, o, l) {
|
|
|
1463
1458
|
function $l(t, o) {
|
|
1464
1459
|
return dl(t) ? je(cl, o) : je(Cl(t), o);
|
|
1465
1460
|
}
|
|
1466
|
-
function
|
|
1461
|
+
function sa(t, o) {
|
|
1467
1462
|
let l = null;
|
|
1468
1463
|
t = `!${t}!`;
|
|
1469
1464
|
const e = `!${o}!`.split("{0}");
|
|
@@ -1524,7 +1519,7 @@ function ul(t) {
|
|
|
1524
1519
|
}
|
|
1525
1520
|
}
|
|
1526
1521
|
function je(t, o) {
|
|
1527
|
-
const l = Dl(o == null ? void 0 : o.locale) || g(
|
|
1522
|
+
const l = Dl(o == null ? void 0 : o.locale) || g(aa), e = na(l), r = ge(Dl(o == null ? void 0 : o.additionalOptions) ?? {});
|
|
1528
1523
|
let a = "decimal";
|
|
1529
1524
|
switch (t) {
|
|
1530
1525
|
case _.PERCENTAGE:
|
|
@@ -1543,22 +1538,22 @@ function je(t, o) {
|
|
|
1543
1538
|
};
|
|
1544
1539
|
}
|
|
1545
1540
|
function Cl(t) {
|
|
1546
|
-
return
|
|
1541
|
+
return ra(t) ? t : _.CURRENCY;
|
|
1547
1542
|
}
|
|
1548
1543
|
function dl(t) {
|
|
1549
1544
|
return t.includes("{0}");
|
|
1550
1545
|
}
|
|
1551
|
-
function
|
|
1546
|
+
function ra(t) {
|
|
1552
1547
|
return !dl(t) && t !== "currency-without-symbol";
|
|
1553
1548
|
}
|
|
1554
|
-
function
|
|
1549
|
+
function ia(t, o) {
|
|
1555
1550
|
const l = je(cl, o), e = ul(l);
|
|
1556
1551
|
if (e === null)
|
|
1557
1552
|
return t;
|
|
1558
1553
|
const r = Ue(e, 10000.11111, "group");
|
|
1559
1554
|
return Ne(t, r, "", t.length, !0);
|
|
1560
1555
|
}
|
|
1561
|
-
function
|
|
1556
|
+
function ca(t) {
|
|
1562
1557
|
if (t.startsWith("ClUi"))
|
|
1563
1558
|
return {
|
|
1564
1559
|
name: `clUi${t.slice(4)}`,
|
|
@@ -1570,11 +1565,11 @@ function ia(t) {
|
|
|
1570
1565
|
from: "@iconify/vue"
|
|
1571
1566
|
};
|
|
1572
1567
|
}
|
|
1573
|
-
function
|
|
1574
|
-
return
|
|
1568
|
+
function ec() {
|
|
1569
|
+
return ca;
|
|
1575
1570
|
}
|
|
1576
1571
|
const { t: qe } = Ce.global;
|
|
1577
|
-
function
|
|
1572
|
+
function ua(t, o, l, e, r) {
|
|
1578
1573
|
return new Promise((a) => {
|
|
1579
1574
|
let d = {
|
|
1580
1575
|
valid: !1,
|
|
@@ -1629,7 +1624,7 @@ function ca(t, o, l, e, r) {
|
|
|
1629
1624
|
a(d);
|
|
1630
1625
|
});
|
|
1631
1626
|
}
|
|
1632
|
-
function
|
|
1627
|
+
function da(t, o, l, e, r) {
|
|
1633
1628
|
return new Promise((a) => {
|
|
1634
1629
|
let d = {
|
|
1635
1630
|
valid: !1,
|
|
@@ -1684,13 +1679,13 @@ function ua(t, o, l, e, r) {
|
|
|
1684
1679
|
a(d);
|
|
1685
1680
|
});
|
|
1686
1681
|
}
|
|
1687
|
-
function
|
|
1682
|
+
function pa(t, o) {
|
|
1688
1683
|
return new Promise((l) => {
|
|
1689
1684
|
const e = o != null && o !== "" && o.toString().trim() !== "", r = Oe(e, qe("input.valueIsRequired", { label: t }));
|
|
1690
1685
|
l(r);
|
|
1691
1686
|
});
|
|
1692
1687
|
}
|
|
1693
|
-
function
|
|
1688
|
+
function fa(t, o) {
|
|
1694
1689
|
return new Promise((l) => {
|
|
1695
1690
|
const r = o === "" || /[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?\.)+[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?/.exec(o) !== null, a = Oe(r, qe("input.valueNotValidEmail", { label: t }));
|
|
1696
1691
|
l(a);
|
|
@@ -1702,16 +1697,16 @@ function Oe(t, o) {
|
|
|
1702
1697
|
message: t ? "" : o
|
|
1703
1698
|
};
|
|
1704
1699
|
}
|
|
1705
|
-
const
|
|
1700
|
+
const ma = {
|
|
1706
1701
|
key: 3,
|
|
1707
1702
|
class: "cl-inline-block cl-whitespace-nowrap"
|
|
1708
|
-
},
|
|
1703
|
+
}, ga = {
|
|
1709
1704
|
key: 4,
|
|
1710
1705
|
class: "cl-inline-block cl-whitespace-nowrap"
|
|
1711
|
-
},
|
|
1706
|
+
}, va = {
|
|
1712
1707
|
key: 5,
|
|
1713
1708
|
class: "cl-inline-block cl-whitespace-nowrap"
|
|
1714
|
-
},
|
|
1709
|
+
}, ba = ["innerHTML"], Rl = /* @__PURE__ */ G({
|
|
1715
1710
|
__name: "cl-ui-grid-cell-value",
|
|
1716
1711
|
props: {
|
|
1717
1712
|
data: {},
|
|
@@ -1781,14 +1776,14 @@ const fa = {
|
|
|
1781
1776
|
], 64)) : (p(), b(Y, { key: 2 }, [
|
|
1782
1777
|
ie(D(a(n.data[n.column.field], g(se).DATETIME)), 1)
|
|
1783
1778
|
], 64))
|
|
1784
|
-
], 64)) : n.column.type === "list" && n.column.field !== void 0 && n.column.listEntries !== void 0 ? (p(), b("span",
|
|
1779
|
+
], 64)) : n.column.type === "list" && n.column.field !== void 0 && n.column.listEntries !== void 0 ? (p(), b("span", ma, D(g(e)(((c = n.column.listEntries.find((i) => i.value === n.data[n.column.field])) == null ? void 0 : c.translationKey) ?? "")), 1)) : n.column.type === "number" && n.column.field !== void 0 ? (p(), b("span", ga, D(u(n.data[n.column.field], g(r))), 1)) : n.column.field !== void 0 ? (p(), b("span", va, [
|
|
1785
1780
|
f("span", {
|
|
1786
1781
|
innerHTML: d()
|
|
1787
|
-
}, null, 8,
|
|
1782
|
+
}, null, 8, ba)
|
|
1788
1783
|
])) : j("", !0);
|
|
1789
1784
|
};
|
|
1790
1785
|
}
|
|
1791
|
-
}),
|
|
1786
|
+
}), ha = /* @__PURE__ */ G({
|
|
1792
1787
|
__name: "cl-ui-grid-cell",
|
|
1793
1788
|
props: {
|
|
1794
1789
|
data: {},
|
|
@@ -1862,7 +1857,7 @@ const fa = {
|
|
|
1862
1857
|
}, 1032, ["column", "data", "time-zone", "search-value"]))
|
|
1863
1858
|
], 2));
|
|
1864
1859
|
}
|
|
1865
|
-
}),
|
|
1860
|
+
}), ya = /* @__PURE__ */ G({
|
|
1866
1861
|
__name: "cl-ui-grid-row",
|
|
1867
1862
|
props: {
|
|
1868
1863
|
data: {},
|
|
@@ -1875,7 +1870,7 @@ const fa = {
|
|
|
1875
1870
|
emits: ["cell-focus", "cell-edit", "cell-undo"],
|
|
1876
1871
|
setup(t) {
|
|
1877
1872
|
return (o, l) => (p(), b("tr", null, [
|
|
1878
|
-
(p(!0), b(Y, null, ne(o.columns, (e, r) => (p(), P(
|
|
1873
|
+
(p(!0), b(Y, null, ne(o.columns, (e, r) => (p(), P(ha, {
|
|
1879
1874
|
key: r,
|
|
1880
1875
|
data: o.data,
|
|
1881
1876
|
column: e,
|
|
@@ -1896,13 +1891,13 @@ const fa = {
|
|
|
1896
1891
|
]), 1032, ["data", "column", "options", "time-zone", "search-value", "edit-mode", "onEdit", "onUndo"]))), 128))
|
|
1897
1892
|
]));
|
|
1898
1893
|
}
|
|
1899
|
-
}),
|
|
1894
|
+
}), wa = { key: 1 }, ka = ["colspan"], $a = { class: "cl-flex cl-flex-wrap cl-justify-center cl-text-center cl-text-sm cl-w-full" }, Ca = { key: 0 }, Ta = {
|
|
1900
1895
|
key: 1,
|
|
1901
1896
|
class: "cl-mt-6 cl-w-full"
|
|
1902
|
-
},
|
|
1897
|
+
}, Sa = {
|
|
1903
1898
|
key: 2,
|
|
1904
1899
|
class: "cl-mt-4"
|
|
1905
|
-
},
|
|
1900
|
+
}, qa = { class: "cl-mb-2 cl-w-full" }, Oa = /* @__PURE__ */ G({
|
|
1906
1901
|
__name: "cl-ui-grid-body",
|
|
1907
1902
|
props: {
|
|
1908
1903
|
columns: {},
|
|
@@ -1973,7 +1968,7 @@ const fa = {
|
|
|
1973
1968
|
), te(() => l.options.rowSelectionEnabled, k), te(() => l.request, k), (v, $) => {
|
|
1974
1969
|
var C;
|
|
1975
1970
|
return p(), b("tbody", null, [
|
|
1976
|
-
v.data && ((C = v.data.results) != null && C.length) ? (p(!0), b(Y, { key: 0 }, ne(v.data.results, (L, S) => (p(), P(
|
|
1971
|
+
v.data && ((C = v.data.results) != null && C.length) ? (p(!0), b(Y, { key: 0 }, ne(v.data.results, (L, S) => (p(), P(ya, {
|
|
1977
1972
|
key: S,
|
|
1978
1973
|
data: L,
|
|
1979
1974
|
options: v.options,
|
|
@@ -2005,16 +2000,16 @@ const fa = {
|
|
|
2005
2000
|
I(v.$slots, ee, le(E, { disabled: v.loading }))
|
|
2006
2001
|
])
|
|
2007
2002
|
}))
|
|
2008
|
-
]), 1032, ["data", "options", "columns", "time-zone", "search-value", "edit-mode", "class", "onClick", "onCellFocus", "onCellEdit"]))), 128)) : v.loading ? j("", !0) : (p(), b("tr",
|
|
2003
|
+
]), 1032, ["data", "options", "columns", "time-zone", "search-value", "edit-mode", "class", "onClick", "onCellFocus", "onCellEdit"]))), 128)) : v.loading ? j("", !0) : (p(), b("tr", wa, [
|
|
2009
2004
|
f("td", {
|
|
2010
2005
|
colspan: v.columns.length
|
|
2011
2006
|
}, [
|
|
2012
|
-
f("div",
|
|
2013
|
-
v.$slots.noData && v.request.filters.some((L) => L.filterValue !== "") === !1 ? (p(), b("div",
|
|
2007
|
+
f("div", $a, [
|
|
2008
|
+
v.$slots.noData && v.request.filters.some((L) => L.filterValue !== "") === !1 ? (p(), b("div", Ca, [
|
|
2014
2009
|
I(v.$slots, "noData")
|
|
2015
|
-
])) : (p(), b("strong",
|
|
2016
|
-
v.request.filters.some((L) => L.filterValue !== "") ? (p(), b("div",
|
|
2017
|
-
f("div",
|
|
2010
|
+
])) : (p(), b("strong", Ta, D(g(r)("grid.noData")), 1)),
|
|
2011
|
+
v.request.filters.some((L) => L.filterValue !== "") ? (p(), b("div", Sa, [
|
|
2012
|
+
f("div", qa, D(g(r)("grid.noDataFiltersPresent")), 1),
|
|
2018
2013
|
T($e, {
|
|
2019
2014
|
size: "small",
|
|
2020
2015
|
colour: "danger",
|
|
@@ -2027,12 +2022,12 @@ const fa = {
|
|
|
2027
2022
|
})
|
|
2028
2023
|
])) : j("", !0)
|
|
2029
2024
|
])
|
|
2030
|
-
], 8,
|
|
2025
|
+
], 8, ka)
|
|
2031
2026
|
]))
|
|
2032
2027
|
]);
|
|
2033
2028
|
};
|
|
2034
2029
|
}
|
|
2035
|
-
}),
|
|
2030
|
+
}), Da = ["value", "inputmode", "disabled", "placeholder"], Aa = { class: "cl-absolute cl-flex-col cl-flex-nowrap cl-h-full cl-hidden cl-justify-between cl-py-0.5 cl-right-1 cl-text-xs cl-top-0 xl:cl-flex" }, Ea = ["disabled"], Va = ["disabled"], Ke = /* @__PURE__ */ G({
|
|
2036
2031
|
inheritAttrs: !1,
|
|
2037
2032
|
__name: "cl-ui-input-number",
|
|
2038
2033
|
props: /* @__PURE__ */ fe({
|
|
@@ -2056,7 +2051,7 @@ const fa = {
|
|
|
2056
2051
|
setup(t, { expose: o, emit: l }) {
|
|
2057
2052
|
const e = t, r = be(t, "modelValue"), a = l, d = M(0), u = M(), n = M(), { isOutside: s } = Tt(n), { focused: c } = St(u), i = w(() => e.showArrows && s.value === !1);
|
|
2058
2053
|
te(c, () => {
|
|
2059
|
-
c.value ? (C.value =
|
|
2054
|
+
c.value ? (C.value = ia(B.value, {
|
|
2060
2055
|
locale: e.locale
|
|
2061
2056
|
}), L.value = !1, a("focus")) : (L.value && E(B.value, !0), C.value = void 0, L.value = !1, a("blur"));
|
|
2062
2057
|
});
|
|
@@ -2083,12 +2078,12 @@ const fa = {
|
|
|
2083
2078
|
function ee(F) {
|
|
2084
2079
|
return F = e.min === null ? F : Math.max(e.min, F), F = e.max === null ? F : Math.min(e.max, F), F;
|
|
2085
2080
|
}
|
|
2086
|
-
function E(F,
|
|
2081
|
+
function E(F, x) {
|
|
2087
2082
|
if (e.allowEmpty && F === "")
|
|
2088
2083
|
r.value = null;
|
|
2089
2084
|
else if (F !== "") {
|
|
2090
2085
|
let ye = typeof F == "number" ? F : W(F);
|
|
2091
|
-
|
|
2086
|
+
x && e.format === _.PERCENTAGE && (ye = ye / v.value), isNaN(ye) === !1 && (r.value = ee(Math.round(ye * $.value) / $.value));
|
|
2092
2087
|
}
|
|
2093
2088
|
}
|
|
2094
2089
|
function V(F) {
|
|
@@ -2104,8 +2099,8 @@ const fa = {
|
|
|
2104
2099
|
}) : +F;
|
|
2105
2100
|
}
|
|
2106
2101
|
function z(F) {
|
|
2107
|
-
const
|
|
2108
|
-
E(
|
|
2102
|
+
const x = (S.value || 0) + (F ? -1 : 1) / $.value;
|
|
2103
|
+
E(x, !1);
|
|
2109
2104
|
}
|
|
2110
2105
|
return o({
|
|
2111
2106
|
focus: () => {
|
|
@@ -2116,7 +2111,7 @@ const fa = {
|
|
|
2116
2111
|
var F;
|
|
2117
2112
|
return (F = n.value) == null ? void 0 : F.blur();
|
|
2118
2113
|
}
|
|
2119
|
-
}), (F,
|
|
2114
|
+
}), (F, x) => {
|
|
2120
2115
|
const ye = Ve("icon");
|
|
2121
2116
|
return p(), P(Me, {
|
|
2122
2117
|
"show-required-asterisk": F.required,
|
|
@@ -2138,38 +2133,38 @@ const fa = {
|
|
|
2138
2133
|
inputmode: F.format === g(_).DECIMAL && F.precision === 0 ? "numeric" : "decimal",
|
|
2139
2134
|
disabled: F.disabled,
|
|
2140
2135
|
placeholder: F.placeholder ?? void 0,
|
|
2141
|
-
onInput:
|
|
2136
|
+
onInput: x[0] || (x[0] = (ve) => B.value = ve.target.value),
|
|
2142
2137
|
onKeydown: [
|
|
2143
|
-
|
|
2138
|
+
x[1] || (x[1] = he(re((ve) => {
|
|
2144
2139
|
E(ve.target.value, L.value), L.value = !1;
|
|
2145
2140
|
}, ["stop", "prevent"]), ["enter"])),
|
|
2146
|
-
|
|
2147
|
-
|
|
2141
|
+
x[2] || (x[2] = he(re((ve) => z(!0), ["stop", "prevent"]), ["down"])),
|
|
2142
|
+
x[3] || (x[3] = he(re((ve) => z(!1), ["stop", "prevent"]), ["up"]))
|
|
2148
2143
|
]
|
|
2149
|
-
}), null, 16,
|
|
2150
|
-
oe(f("div",
|
|
2144
|
+
}), null, 16, Da)),
|
|
2145
|
+
oe(f("div", Aa, [
|
|
2151
2146
|
f("button", {
|
|
2152
2147
|
class: "cl-bg-opacity-30 cl-bg-secondary-light cl-border cl-border-grey-3 cl-px-1 cl-rounded hover:cl-bg-opacity-20",
|
|
2153
2148
|
disabled: F.disabled,
|
|
2154
|
-
onClick:
|
|
2149
|
+
onClick: x[4] || (x[4] = (ve) => z(!1)),
|
|
2155
2150
|
onKeydown: [
|
|
2156
|
-
|
|
2157
|
-
|
|
2151
|
+
x[5] || (x[5] = he(re((ve) => z(!0), ["stop", "prevent"]), ["down"])),
|
|
2152
|
+
x[6] || (x[6] = he(re((ve) => z(!1), ["stop", "prevent"]), ["up"]))
|
|
2158
2153
|
]
|
|
2159
2154
|
}, [
|
|
2160
2155
|
T(ye, { icon: "ph:caret-up-bold" })
|
|
2161
|
-
], 40,
|
|
2156
|
+
], 40, Ea),
|
|
2162
2157
|
f("button", {
|
|
2163
2158
|
class: "cl-bg-opacity-30 cl-bg-secondary-light cl-border cl-border-grey-3 cl-px-1 cl-rounded hover:cl-bg-opacity-20",
|
|
2164
2159
|
disabled: F.disabled,
|
|
2165
|
-
onClick:
|
|
2160
|
+
onClick: x[7] || (x[7] = (ve) => z(!0)),
|
|
2166
2161
|
onKeydown: [
|
|
2167
|
-
|
|
2168
|
-
|
|
2162
|
+
x[8] || (x[8] = he(re((ve) => z(!0), ["stop", "prevent"]), ["down"])),
|
|
2163
|
+
x[9] || (x[9] = he(re((ve) => z(!1), ["stop", "prevent"]), ["up"]))
|
|
2169
2164
|
]
|
|
2170
2165
|
}, [
|
|
2171
2166
|
T(ye, { icon: "ph:caret-down-bold" })
|
|
2172
|
-
], 40,
|
|
2167
|
+
], 40, Va)
|
|
2173
2168
|
], 512), [
|
|
2174
2169
|
[ue, i.value && !F.disabled]
|
|
2175
2170
|
])
|
|
@@ -2187,10 +2182,10 @@ const fa = {
|
|
|
2187
2182
|
]), 1032, ["show-required-asterisk", "errors"]);
|
|
2188
2183
|
};
|
|
2189
2184
|
}
|
|
2190
|
-
}),
|
|
2185
|
+
}), Ma = {
|
|
2191
2186
|
key: 0,
|
|
2192
2187
|
class: "cl-flex cl-flex-wrap lg:cl-gap-2"
|
|
2193
|
-
},
|
|
2188
|
+
}, Na = { class: "cl-basis-full cl-bg-off-white cl-border cl-border-grey-1 cl-flex cl-flex-1 cl-items-center cl-justify-between cl-mt-2 cl-p-2 cl-rounded-lg cl-shadow cl-text-sm lg:cl-basis-0 lg:cl-px-4 lg:cl-py-3" }, Ra = { class: "cl-flex cl-flex-wrap cl-gap-x-4 cl-gap-y-2 cl-items-center cl-w-full" }, Ia = { class: "cl-flex cl-flex-col lg:cl-flex-row" }, Ua = { class: "cl-mr-2 cl-text-grey-3" }, za = { class: "cl-flex cl-flex-col lg:cl-flex-row" }, La = { class: "cl-mr-1 cl-text-grey-3" }, Ba = { class: "cl-flex cl-flex-col cl-mr-auto lg:cl-flex-row" }, Fa = { class: "cl-basis-full cl-mr-1 cl-text-grey-3" }, ja = { class: "cl-flex cl-gap-0.5" }, Pa = ["onClick"], Ga = { class: "cl-flex cl-gap-1 cl-items-center" }, Ha = ["onClick"], Za = { class: "cl-basis-full cl-bg-off-white cl-border cl-border-grey-1 cl-flex cl-gap-2 cl-items-center cl-justify-between cl-mt-2 cl-px-2 cl-py-1 cl-rounded-lg cl-shadow cl-text-sm lg:cl-basis-auto lg:cl-px-4 lg:cl-py-3" }, Wa = { class: "cl-flex cl-items-center" }, Ka = { class: "cl-mr-2 cl-text-grey-3" }, Qa = /* @__PURE__ */ f("span", null, null, -1), Ya = /* @__PURE__ */ G({
|
|
2194
2189
|
__name: "cl-ui-grid-footer",
|
|
2195
2190
|
props: {
|
|
2196
2191
|
request: {},
|
|
@@ -2234,20 +2229,20 @@ const fa = {
|
|
|
2234
2229
|
}
|
|
2235
2230
|
return (c, i) => {
|
|
2236
2231
|
var m, q;
|
|
2237
|
-
return (q = (m = c.data) == null ? void 0 : m.results) != null && q.length && c.request ? (p(), b("div",
|
|
2238
|
-
f("div",
|
|
2239
|
-
f("div",
|
|
2240
|
-
f("div",
|
|
2241
|
-
f("span",
|
|
2232
|
+
return (q = (m = c.data) == null ? void 0 : m.results) != null && q.length && c.request ? (p(), b("div", Ma, [
|
|
2233
|
+
f("div", Na, [
|
|
2234
|
+
f("div", Ra, [
|
|
2235
|
+
f("div", Ia, [
|
|
2236
|
+
f("span", Ua, D(g(r)("grid.page")), 1),
|
|
2242
2237
|
f("span", null, D(g(ke)(c.request.pageNumber)) + " / " + D(g(ke)(a.value)), 1)
|
|
2243
2238
|
]),
|
|
2244
|
-
f("div",
|
|
2245
|
-
f("span",
|
|
2239
|
+
f("div", za, [
|
|
2240
|
+
f("span", La, D(g(r)("grid.totalRecords")), 1),
|
|
2246
2241
|
f("span", null, D(g(ke)(c.data.totalRecords)), 1)
|
|
2247
2242
|
]),
|
|
2248
|
-
f("div",
|
|
2249
|
-
f("span",
|
|
2250
|
-
f("ul",
|
|
2243
|
+
f("div", Ba, [
|
|
2244
|
+
f("span", Fa, D(g(r)("grid.pageSize")), 1),
|
|
2245
|
+
f("ul", ja, [
|
|
2251
2246
|
(p(), b(Y, null, ne(n, (k, v) => f("li", {
|
|
2252
2247
|
key: v,
|
|
2253
2248
|
class: O(["cl-mr-1 last:cl-mr-0", {
|
|
@@ -2255,11 +2250,11 @@ const fa = {
|
|
|
2255
2250
|
"cl-cursor-pointer": c.request.pageSize !== k
|
|
2256
2251
|
}]),
|
|
2257
2252
|
onClick: ($) => s(k)
|
|
2258
|
-
}, D(g(ke)(k)), 11,
|
|
2253
|
+
}, D(g(ke)(k)), 11, Pa)), 64))
|
|
2259
2254
|
])
|
|
2260
2255
|
]),
|
|
2261
2256
|
f("div", null, [
|
|
2262
|
-
f("ul",
|
|
2257
|
+
f("ul", Ga, [
|
|
2263
2258
|
f("li", {
|
|
2264
2259
|
class: O({
|
|
2265
2260
|
"cl-text-grey-2 cl-pointer-events-none": c.request.pageNumber === 1,
|
|
@@ -2291,7 +2286,7 @@ const fa = {
|
|
|
2291
2286
|
"cl-cursor-pointer ": c.request.pageNumber !== k
|
|
2292
2287
|
}]),
|
|
2293
2288
|
onClick: ($) => u(k)
|
|
2294
|
-
}, D(g(ke)(k)), 11,
|
|
2289
|
+
}, D(g(ke)(k)), 11, Ha))), 128)),
|
|
2295
2290
|
f("li", {
|
|
2296
2291
|
class: O({
|
|
2297
2292
|
"cl-text-grey-2 cl-pointer-events-none": c.request.pageNumber >= a.value,
|
|
@@ -2320,9 +2315,9 @@ const fa = {
|
|
|
2320
2315
|
])
|
|
2321
2316
|
])
|
|
2322
2317
|
]),
|
|
2323
|
-
f("div",
|
|
2324
|
-
f("div",
|
|
2325
|
-
f("span",
|
|
2318
|
+
f("div", Za, [
|
|
2319
|
+
f("div", Wa, [
|
|
2320
|
+
f("span", Ka, D(g(r)("grid.jumpToPage")), 1),
|
|
2326
2321
|
T(Ke, {
|
|
2327
2322
|
"model-value": c.request.pageNumber,
|
|
2328
2323
|
min: 1,
|
|
@@ -2333,7 +2328,7 @@ const fa = {
|
|
|
2333
2328
|
"onUpdate:modelValue": u
|
|
2334
2329
|
}, {
|
|
2335
2330
|
default: A(() => [
|
|
2336
|
-
|
|
2331
|
+
Qa
|
|
2337
2332
|
]),
|
|
2338
2333
|
_: 1
|
|
2339
2334
|
}, 8, ["model-value", "max", "disabled"])
|
|
@@ -2354,11 +2349,11 @@ function Jl(t, o, l, e) {
|
|
|
2354
2349
|
let r = ql(K.now(), l, e);
|
|
2355
2350
|
return r = lt(o, l, r, e), r = et(t, l, r, e), r.toJSDate();
|
|
2356
2351
|
}
|
|
2357
|
-
function
|
|
2352
|
+
function Ja(t, o, l, e, r) {
|
|
2358
2353
|
let a = K.fromJSDate(l, { zone: e });
|
|
2359
2354
|
return a = lt(o, e, a, r), a = et(t, e, a, r), a.toJSDate();
|
|
2360
2355
|
}
|
|
2361
|
-
function
|
|
2356
|
+
function xl(t, o) {
|
|
2362
2357
|
const l = K.fromObject({
|
|
2363
2358
|
day: 3,
|
|
2364
2359
|
month: 4,
|
|
@@ -2407,7 +2402,7 @@ function Sl(t, o, l, e) {
|
|
|
2407
2402
|
}) : r = K.utc().setZone(l);
|
|
2408
2403
|
return r;
|
|
2409
2404
|
}
|
|
2410
|
-
function
|
|
2405
|
+
function Xl(t, o) {
|
|
2411
2406
|
const l = t.range, e = t.scope === "past" ? -1 : t.scope === "current" ? 0 : 1, r = K.now().setZone(o).startOf(l).plus({
|
|
2412
2407
|
days: l === "day" ? e : 0,
|
|
2413
2408
|
weeks: l === "week" ? e : 0,
|
|
@@ -2451,7 +2446,7 @@ function lt(t, o, l, e) {
|
|
|
2451
2446
|
}
|
|
2452
2447
|
return l;
|
|
2453
2448
|
}
|
|
2454
|
-
const
|
|
2449
|
+
const xa = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, Xa = ["onClick"], _a = /* @__PURE__ */ G({
|
|
2455
2450
|
__name: "cl-ui-quick-dates-group",
|
|
2456
2451
|
props: {
|
|
2457
2452
|
dates: {},
|
|
@@ -2460,7 +2455,7 @@ const Ja = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, Xa = ["onClick"], xa =
|
|
|
2460
2455
|
emits: ["quick-date-selected"],
|
|
2461
2456
|
setup(t, { emit: o }) {
|
|
2462
2457
|
const l = o, { t: e } = ce();
|
|
2463
|
-
return (r, a) => (p(), b("div",
|
|
2458
|
+
return (r, a) => (p(), b("div", xa, [
|
|
2464
2459
|
(p(!0), b(Y, null, ne(r.dates, (d, u) => {
|
|
2465
2460
|
var n, s;
|
|
2466
2461
|
return p(), b("button", {
|
|
@@ -2476,7 +2471,7 @@ const Ja = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, Xa = ["onClick"], xa =
|
|
|
2476
2471
|
}), 128))
|
|
2477
2472
|
]));
|
|
2478
2473
|
}
|
|
2479
|
-
}),
|
|
2474
|
+
}), en = [
|
|
2480
2475
|
"today",
|
|
2481
2476
|
"this week",
|
|
2482
2477
|
"this month",
|
|
@@ -2568,7 +2563,7 @@ const Ja = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, Xa = ["onClick"], xa =
|
|
|
2568
2563
|
..._e,
|
|
2569
2564
|
...el,
|
|
2570
2565
|
...He
|
|
2571
|
-
],
|
|
2566
|
+
], ln = { class: "cl-p-2 cl-pt-0" }, tn = {
|
|
2572
2567
|
key: 0,
|
|
2573
2568
|
class: "cl-mt-2 cl-opacity-20"
|
|
2574
2569
|
}, ot = /* @__PURE__ */ G({
|
|
@@ -2603,18 +2598,18 @@ const Ja = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, Xa = ["onClick"], xa =
|
|
|
2603
2598
|
}
|
|
2604
2599
|
return d;
|
|
2605
2600
|
});
|
|
2606
|
-
return (d, u) => (p(), b("div",
|
|
2601
|
+
return (d, u) => (p(), b("div", ln, [
|
|
2607
2602
|
f("div", null, D(g(r)("quickDates.quickDatesHeader")), 1),
|
|
2608
2603
|
(p(!0), b(Y, null, ne(a.value, (n, s) => (p(), b("div", {
|
|
2609
2604
|
key: s,
|
|
2610
2605
|
class: "cl-pt-2"
|
|
2611
2606
|
}, [
|
|
2612
|
-
T(
|
|
2607
|
+
T(_a, {
|
|
2613
2608
|
dates: n,
|
|
2614
2609
|
"selected-quick-date": d.selectedQuickDate,
|
|
2615
2610
|
onQuickDateSelected: u[0] || (u[0] = (c) => e("quick-date-selected", c))
|
|
2616
2611
|
}, null, 8, ["dates", "selected-quick-date"]),
|
|
2617
|
-
s < a.value.length - 1 ? (p(), b("div",
|
|
2612
|
+
s < a.value.length - 1 ? (p(), b("div", tn)) : j("", !0)
|
|
2618
2613
|
]))), 128))
|
|
2619
2614
|
]));
|
|
2620
2615
|
}
|
|
@@ -2724,7 +2719,7 @@ const Ja = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, Xa = ["onClick"], xa =
|
|
|
2724
2719
|
}
|
|
2725
2720
|
}), { locale: a } = ce(), d = w(() => o.dateFormatLocale ?? a.value), u = w(() => Tl(o.disabled, o.popoverPlacement)), n = w(() => Sl(l.value, o.initialCalendarDate, e.value, "dateRange")), s = w(() => _l(r.value, e.value, d.value)), c = M(null), i = M(null);
|
|
2726
2721
|
function m(v) {
|
|
2727
|
-
const $ =
|
|
2722
|
+
const $ = Xl(v, e.value);
|
|
2728
2723
|
r.value = $, c.value = v, i.value.move($.start), i.value.hidePopover();
|
|
2729
2724
|
}
|
|
2730
2725
|
const q = Zl("(min-width: 768px)"), k = w(() => q.value ? 2 : 1);
|
|
@@ -2778,13 +2773,13 @@ const Ja = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, Xa = ["onClick"], xa =
|
|
|
2778
2773
|
_: 3
|
|
2779
2774
|
}, 8, ["show-required-asterisk"]));
|
|
2780
2775
|
}
|
|
2781
|
-
}),
|
|
2776
|
+
}), on = [
|
|
2782
2777
|
"text",
|
|
2783
2778
|
"email",
|
|
2784
2779
|
"tel",
|
|
2785
2780
|
"password",
|
|
2786
2781
|
"search"
|
|
2787
|
-
],
|
|
2782
|
+
], an = /* @__PURE__ */ G({
|
|
2788
2783
|
inheritAttrs: !1,
|
|
2789
2784
|
__name: "cl-ui-input-text-area",
|
|
2790
2785
|
props: /* @__PURE__ */ fe({
|
|
@@ -2861,16 +2856,10 @@ const Ja = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, Xa = ["onClick"], xa =
|
|
|
2861
2856
|
I(u.$slots, "default")
|
|
2862
2857
|
]),
|
|
2863
2858
|
key: "0"
|
|
2864
|
-
} :
|
|
2865
|
-
name: "label",
|
|
2866
|
-
fn: A(() => [
|
|
2867
|
-
ie(" ")
|
|
2868
|
-
]),
|
|
2869
|
-
key: "1"
|
|
2870
|
-
}
|
|
2859
|
+
} : void 0
|
|
2871
2860
|
]), 1032, ["errors", "show-required-asterisk"]));
|
|
2872
2861
|
}
|
|
2873
|
-
}),
|
|
2862
|
+
}), nn = { class: "cl-gap-1 cl-grid cl-grid-cols-[auto_1fr_auto_auto] cl-pt-0.5 cl-w-full" }, sn = ["disabled"], rn = { class: "cl-max-w-max" }, cn = { class: "cl-flex cl-flex-col cl-gap-1 cl-w-full" }, un = ["min", "disabled", "required", "step", "max"], dn = { class: "cl-bg-white cl-border cl-border-grey-2 cl-leading-none cl-rounded-full cl-text-center cl-text-xs" }, pn = ["disabled"], fn = ["disabled", "title"], mn = /* @__PURE__ */ G({
|
|
2874
2863
|
inheritAttrs: !1,
|
|
2875
2864
|
__name: "cl-ui-input-range",
|
|
2876
2865
|
props: /* @__PURE__ */ fe({
|
|
@@ -2911,14 +2900,14 @@ const Ja = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, Xa = ["onClick"], xa =
|
|
|
2911
2900
|
"show-required-asterisk": i.required
|
|
2912
2901
|
}, Te({
|
|
2913
2902
|
default: A(() => [
|
|
2914
|
-
f("div",
|
|
2903
|
+
f("div", nn, [
|
|
2915
2904
|
f("button", {
|
|
2916
2905
|
disabled: i.disabled,
|
|
2917
2906
|
class: "active:cl-bg-grey-0 cl-bg-white cl-border cl-border-grey-2 cl-leading-none cl-min-w-[26px] cl-p-[5px] cl-rounded-full cl-shadow cl-text-xs cl-transition-colors disabled:cl-bg-grey-1 hover:cl-bg-off-white",
|
|
2918
2907
|
onClick: m[0] || (m[0] = (k) => c(i.min))
|
|
2919
|
-
}, D(g(pl)(i.min, i.precision)), 9,
|
|
2920
|
-
f("div",
|
|
2921
|
-
oe(f("div",
|
|
2908
|
+
}, D(g(pl)(i.min, i.precision)), 9, sn),
|
|
2909
|
+
f("div", rn, [
|
|
2910
|
+
oe(f("div", cn, [
|
|
2922
2911
|
oe(f("input", le({
|
|
2923
2912
|
ref_key: "sliderRef",
|
|
2924
2913
|
ref: a,
|
|
@@ -2931,7 +2920,7 @@ const Ja = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, Xa = ["onClick"], xa =
|
|
|
2931
2920
|
required: i.required,
|
|
2932
2921
|
step: 1 / Math.pow(10, i.precision),
|
|
2933
2922
|
max: i.max
|
|
2934
|
-
}), null, 16,
|
|
2923
|
+
}), null, 16, un), [
|
|
2935
2924
|
[
|
|
2936
2925
|
wl,
|
|
2937
2926
|
e.value,
|
|
@@ -2939,7 +2928,7 @@ const Ja = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, Xa = ["onClick"], xa =
|
|
|
2939
2928
|
{ number: !0 }
|
|
2940
2929
|
]
|
|
2941
2930
|
]),
|
|
2942
|
-
f("div",
|
|
2931
|
+
f("div", dn, D(g(pl)(g(s), i.precision)), 1)
|
|
2943
2932
|
], 512), [
|
|
2944
2933
|
[ue, n.value === !1]
|
|
2945
2934
|
]),
|
|
@@ -2963,7 +2952,7 @@ const Ja = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, Xa = ["onClick"], xa =
|
|
|
2963
2952
|
disabled: i.disabled,
|
|
2964
2953
|
class: "active:cl-bg-grey-0 cl-bg-white cl-border cl-border-grey-2 cl-leading-none cl-min-w-[26px] cl-p-[5px] cl-rounded-full cl-shadow cl-text-xs cl-transition-colors disabled:cl-bg-grey-1 hover:cl-bg-off-white",
|
|
2965
2954
|
onClick: m[3] || (m[3] = (k) => c(i.max))
|
|
2966
|
-
}, D(g(pl)(i.max, i.precision)), 9,
|
|
2955
|
+
}, D(g(pl)(i.max, i.precision)), 9, pn),
|
|
2967
2956
|
f("button", {
|
|
2968
2957
|
disabled: i.disabled,
|
|
2969
2958
|
class: "active:cl-bg-grey-0 cl-bg-white cl-border cl-border-grey-2 cl-leading-none cl-min-w-0 cl-p-[5px] cl-rounded-full cl-shadow cl-text-xs cl-transition-colors disabled:cl-bg-grey-1 hover:cl-bg-off-white",
|
|
@@ -2971,7 +2960,7 @@ const Ja = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, Xa = ["onClick"], xa =
|
|
|
2971
2960
|
onClick: m[4] || (m[4] = (k) => n.value = !n.value)
|
|
2972
2961
|
}, [
|
|
2973
2962
|
T(q, { icon: "ph:arrows-left-right-thin" })
|
|
2974
|
-
], 8,
|
|
2963
|
+
], 8, fn)
|
|
2975
2964
|
])
|
|
2976
2965
|
]),
|
|
2977
2966
|
_: 2
|
|
@@ -2986,11 +2975,11 @@ const Ja = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, Xa = ["onClick"], xa =
|
|
|
2986
2975
|
]), 1032, ["errors", "show-required-asterisk"]);
|
|
2987
2976
|
};
|
|
2988
2977
|
}
|
|
2989
|
-
}),
|
|
2978
|
+
}), gn = /* @__PURE__ */ we(mn, [["__scopeId", "data-v-b582bc6a"]]), nt = [
|
|
2990
2979
|
"date",
|
|
2991
2980
|
"datetime",
|
|
2992
2981
|
"time"
|
|
2993
|
-
],
|
|
2982
|
+
], vn = [
|
|
2994
2983
|
"auto",
|
|
2995
2984
|
"auto-start",
|
|
2996
2985
|
"auto-end",
|
|
@@ -3002,13 +2991,13 @@ const Ja = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, Xa = ["onClick"], xa =
|
|
|
3002
2991
|
"right-end",
|
|
3003
2992
|
"left-start",
|
|
3004
2993
|
"left-end"
|
|
3005
|
-
],
|
|
2994
|
+
], bn = {
|
|
3006
2995
|
key: 1,
|
|
3007
2996
|
class: "cl-relative"
|
|
3008
|
-
},
|
|
2997
|
+
}, hn = ["value", "disabled", "placeholder"], yn = {
|
|
3009
2998
|
key: 0,
|
|
3010
2999
|
class: "action-icon cl-absolute cl-bg-transparent cl-flex cl-right-2 cl-text-grey-4 cl-top-3.5"
|
|
3011
|
-
},
|
|
3000
|
+
}, wn = /* @__PURE__ */ G({
|
|
3012
3001
|
inheritAttrs: !1,
|
|
3013
3002
|
__name: "cl-ui-calendar-input",
|
|
3014
3003
|
props: {
|
|
@@ -3050,7 +3039,7 @@ const Ja = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, Xa = ["onClick"], xa =
|
|
|
3050
3039
|
"date-range-selected": !!u.rangeSelected,
|
|
3051
3040
|
onTogglePopover: n[0] || (n[0] = (s) => u.$emit("togglePopover")),
|
|
3052
3041
|
onClear: n[1] || (n[1] = (s) => u.$emit("clear"))
|
|
3053
|
-
}), null, 16, ["disabled", "required", "date-range-selected"])) : (p(), b("div",
|
|
3042
|
+
}), null, 16, ["disabled", "required", "date-range-selected"])) : (p(), b("div", bn, [
|
|
3054
3043
|
f("input", le({
|
|
3055
3044
|
ref_key: "element",
|
|
3056
3045
|
ref: e
|
|
@@ -3059,13 +3048,13 @@ const Ja = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, Xa = ["onClick"], xa =
|
|
|
3059
3048
|
type: "text",
|
|
3060
3049
|
disabled: u.disabled,
|
|
3061
3050
|
placeholder: d.value
|
|
3062
|
-
}, ht(u.events, !0)), null, 16,
|
|
3051
|
+
}, ht(u.events, !0)), null, 16, hn),
|
|
3063
3052
|
T(g(J), {
|
|
3064
3053
|
class: "cl-absolute cl-bg-transparent cl-cursor-text cl-left-2 cl-text-grey-4 cl-top-3.5 icon",
|
|
3065
3054
|
icon: u.type === "time" ? "ph-clock" : "ph:calendar",
|
|
3066
3055
|
onClick: r
|
|
3067
3056
|
}, null, 8, ["icon"]),
|
|
3068
|
-
u.disabled ? j("", !0) : (p(), b("div",
|
|
3057
|
+
u.disabled ? j("", !0) : (p(), b("div", yn, [
|
|
3069
3058
|
u.type !== "time" ? (p(), P(g(J), {
|
|
3070
3059
|
key: 0,
|
|
3071
3060
|
class: "cl-cursor-pointer hover:cl-text-link-light",
|
|
@@ -3081,7 +3070,7 @@ const Ja = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, Xa = ["onClick"], xa =
|
|
|
3081
3070
|
]))
|
|
3082
3071
|
]));
|
|
3083
3072
|
}
|
|
3084
|
-
}), Ze = /* @__PURE__ */ we(
|
|
3073
|
+
}), Ze = /* @__PURE__ */ we(wn, [["__scopeId", "data-v-307fea23"]]), st = /* @__PURE__ */ G({
|
|
3085
3074
|
inheritAttrs: !1,
|
|
3086
3075
|
__name: "cl-ui-input-datetime",
|
|
3087
3076
|
props: /* @__PURE__ */ fe({
|
|
@@ -3112,12 +3101,12 @@ const Ja = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, Xa = ["onClick"], xa =
|
|
|
3112
3101
|
set(v) {
|
|
3113
3102
|
e.type === "time" ? r.value = v : v !== null ? r.value = Fe(v, null, !0, e.timeZone) : r.value = null;
|
|
3114
3103
|
}
|
|
3115
|
-
}), { locale: n } = ce(), s = w(() => e.dateFormatLocale ?? n.value), c = w(() => e.showPopover !== void 0 ? e.showPopover : e.type !== "time"), i = w(() => Tl(e.disabled || !c.value, e.popoverPlacement)), m = w(() =>
|
|
3104
|
+
}), { locale: n } = ce(), s = w(() => e.dateFormatLocale ?? n.value), c = w(() => e.showPopover !== void 0 ? e.showPopover : e.type !== "time"), i = w(() => Tl(e.disabled || !c.value, e.popoverPlacement)), m = w(() => xl(s.value, e.type)), q = M(null), k = w(() => Sl(r.value, e.initialCalendarDate, d.value, e.type));
|
|
3116
3105
|
return te(() => [
|
|
3117
3106
|
e.minDate,
|
|
3118
3107
|
e.maxDate
|
|
3119
3108
|
], () => {
|
|
3120
|
-
e.type !== "time" && (u.value instanceof Date || u.value === null) && (u.value =
|
|
3109
|
+
e.type !== "time" && (u.value instanceof Date || u.value === null) && (u.value = Ja(e.minDate, e.maxDate, u.value, d.value, e.type));
|
|
3121
3110
|
}), o({
|
|
3122
3111
|
focus() {
|
|
3123
3112
|
var v;
|
|
@@ -3208,10 +3197,10 @@ const Ja = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, Xa = ["onClick"], xa =
|
|
|
3208
3197
|
I(o.$slots, "default")
|
|
3209
3198
|
], 16));
|
|
3210
3199
|
}
|
|
3211
|
-
}),
|
|
3200
|
+
}), kn = { class: "cl-relative cl-w-full" }, $n = { class: "cl-overflow-hidden cl-text-ellipsis cl-w-full cl-whitespace-nowrap" }, Cn = {
|
|
3212
3201
|
key: 0,
|
|
3213
3202
|
class: "cl-text-grey-3"
|
|
3214
|
-
},
|
|
3203
|
+
}, Tn = { key: 1 }, Sn = { key: 2 }, qn = ["disabled"], vl = /* @__PURE__ */ G({
|
|
3215
3204
|
inheritAttrs: !1,
|
|
3216
3205
|
__name: "cl-ui-select",
|
|
3217
3206
|
props: /* @__PURE__ */ fe({
|
|
@@ -3258,7 +3247,7 @@ const Ja = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, Xa = ["onClick"], xa =
|
|
|
3258
3247
|
I(s.$slots, "label")
|
|
3259
3248
|
]),
|
|
3260
3249
|
default: A(() => [
|
|
3261
|
-
f("div",
|
|
3250
|
+
f("div", kn, [
|
|
3262
3251
|
I(s.$slots, "input", pe(me({ selectModalVisible: r.value, toggleSelectModalState: d })), () => [
|
|
3263
3252
|
a.value === !1 ? (p(), P(ll, {
|
|
3264
3253
|
key: 0,
|
|
@@ -3270,8 +3259,8 @@ const Ja = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, Xa = ["onClick"], xa =
|
|
|
3270
3259
|
onToggleModal: d
|
|
3271
3260
|
}, {
|
|
3272
3261
|
default: A(() => [
|
|
3273
|
-
f("div",
|
|
3274
|
-
l.value === null || l.value === void 0 ? (p(), b("span",
|
|
3262
|
+
f("div", $n, [
|
|
3263
|
+
l.value === null || l.value === void 0 ? (p(), b("span", Cn, D(s.placeholder), 1)) : n(l.value) ? (p(), b("span", Tn, D(l.value.name), 1)) : (p(), b("span", Sn, D(l.value), 1))
|
|
3275
3264
|
]),
|
|
3276
3265
|
f("div", {
|
|
3277
3266
|
class: "cl-flex cl-items-center cl-relative cl-text-grey-3 cl-z-10",
|
|
@@ -3280,7 +3269,7 @@ const Ja = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, Xa = ["onClick"], xa =
|
|
|
3280
3269
|
T(i, {
|
|
3281
3270
|
icon: r.value ? "ph:caret-up-bold" : "ph:caret-down-bold"
|
|
3282
3271
|
}, null, 8, ["icon"])
|
|
3283
|
-
], 8,
|
|
3272
|
+
], 8, qn)
|
|
3284
3273
|
]),
|
|
3285
3274
|
_: 1
|
|
3286
3275
|
}, 8, ["class"])) : j("", !0)
|
|
@@ -3323,7 +3312,7 @@ const Ja = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, Xa = ["onClick"], xa =
|
|
|
3323
3312
|
I(e.$slots, "default")
|
|
3324
3313
|
], 2));
|
|
3325
3314
|
}
|
|
3326
|
-
}),
|
|
3315
|
+
}), On = [
|
|
3327
3316
|
"string",
|
|
3328
3317
|
"boolean",
|
|
3329
3318
|
"number",
|
|
@@ -3336,7 +3325,7 @@ const Ja = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, Xa = ["onClick"], xa =
|
|
|
3336
3325
|
function rt(t) {
|
|
3337
3326
|
return typeof t.caption == "string" && typeof t.name == "string" && typeof t.type == "string";
|
|
3338
3327
|
}
|
|
3339
|
-
function
|
|
3328
|
+
function Dn(t) {
|
|
3340
3329
|
let o = Array.isArray(t);
|
|
3341
3330
|
if (o) {
|
|
3342
3331
|
for (const l of t)
|
|
@@ -3347,12 +3336,12 @@ function On(t) {
|
|
|
3347
3336
|
}
|
|
3348
3337
|
return o;
|
|
3349
3338
|
}
|
|
3350
|
-
const
|
|
3339
|
+
const An = [
|
|
3351
3340
|
"ellipsis",
|
|
3352
3341
|
"wrap-text"
|
|
3353
3342
|
];
|
|
3354
3343
|
var ae = /* @__PURE__ */ ((t) => (t[t.CONTAINS = 0] = "CONTAINS", t[t.NOT_CONTAINS = 1] = "NOT_CONTAINS", t[t.EQUAL = 2] = "EQUAL", t[t.NOT_EQUAL = 3] = "NOT_EQUAL", t[t.STARTS_WITH = 4] = "STARTS_WITH", t[t.ENDS_WITH = 5] = "ENDS_WITH", t[t.GREATER_THAN = 6] = "GREATER_THAN", t[t.LESS_THAN = 7] = "LESS_THAN", t[t.EQUAL_OR_GREATER_THAN = 8] = "EQUAL_OR_GREATER_THAN", t[t.EQUAL_OR_LESS_THAN = 9] = "EQUAL_OR_LESS_THAN", t[t.AND_CONTAINS = 10] = "AND_CONTAINS", t))(ae || {});
|
|
3355
|
-
const
|
|
3344
|
+
const En = [
|
|
3356
3345
|
"equal",
|
|
3357
3346
|
"notequal",
|
|
3358
3347
|
"contains",
|
|
@@ -3365,24 +3354,24 @@ const An = [
|
|
|
3365
3354
|
"equalorgreaterthan",
|
|
3366
3355
|
"andcontains"
|
|
3367
3356
|
];
|
|
3368
|
-
function
|
|
3357
|
+
function Vn(t) {
|
|
3369
3358
|
return typeof t.filterOnColumn == "string" && typeof t.filterOperation == "number" && typeof t.filterValue == "string";
|
|
3370
3359
|
}
|
|
3371
|
-
function
|
|
3360
|
+
function Mn(t) {
|
|
3372
3361
|
return t === null || typeof t.sortByAscending == "boolean" && typeof t.sortOnColumn == "string";
|
|
3373
3362
|
}
|
|
3374
|
-
function
|
|
3375
|
-
let o = typeof t.filters == "object" && Array.isArray(t.filters) && typeof t.pageNumber == "number" && typeof t.pageSize == "number" && typeof t.sort == "object" &&
|
|
3363
|
+
function Nn(t) {
|
|
3364
|
+
let o = typeof t.filters == "object" && Array.isArray(t.filters) && typeof t.pageNumber == "number" && typeof t.pageSize == "number" && typeof t.sort == "object" && Mn(t.sort);
|
|
3376
3365
|
if (o) {
|
|
3377
3366
|
for (const l of t.filters)
|
|
3378
|
-
if (!
|
|
3367
|
+
if (!Vn(l)) {
|
|
3379
3368
|
o = !1;
|
|
3380
3369
|
break;
|
|
3381
3370
|
}
|
|
3382
3371
|
}
|
|
3383
3372
|
return o;
|
|
3384
3373
|
}
|
|
3385
|
-
function
|
|
3374
|
+
function Rn(t, o) {
|
|
3386
3375
|
let l = typeof t.results == "object" && Array.isArray(t.results) && typeof t.totalRecords == "number";
|
|
3387
3376
|
if (l) {
|
|
3388
3377
|
for (const e of t.results)
|
|
@@ -3393,7 +3382,7 @@ function Nn(t, o) {
|
|
|
3393
3382
|
}
|
|
3394
3383
|
return l;
|
|
3395
3384
|
}
|
|
3396
|
-
const
|
|
3385
|
+
const In = {
|
|
3397
3386
|
method: "equal",
|
|
3398
3387
|
icon: "mdi:equal",
|
|
3399
3388
|
description: "Equals",
|
|
@@ -3406,12 +3395,12 @@ const Rn = {
|
|
|
3406
3395
|
"list"
|
|
3407
3396
|
],
|
|
3408
3397
|
key: "equal"
|
|
3409
|
-
},
|
|
3398
|
+
}, Un = {
|
|
3410
3399
|
method: "contains",
|
|
3411
3400
|
icon: "mdi:format-letter-matches",
|
|
3412
3401
|
description: "Contains",
|
|
3413
3402
|
allowedTypes: ["string"]
|
|
3414
|
-
},
|
|
3403
|
+
}, zn = {
|
|
3415
3404
|
method: "lessthan",
|
|
3416
3405
|
icon: "mdi:less-than",
|
|
3417
3406
|
description: "Before",
|
|
@@ -3421,7 +3410,7 @@ const Rn = {
|
|
|
3421
3410
|
],
|
|
3422
3411
|
key: "before"
|
|
3423
3412
|
}, Il = [
|
|
3424
|
-
|
|
3413
|
+
Un,
|
|
3425
3414
|
{
|
|
3426
3415
|
method: "notcontains",
|
|
3427
3416
|
icon: "mdi:format-letter-spacing-variant",
|
|
@@ -3440,7 +3429,7 @@ const Rn = {
|
|
|
3440
3429
|
description: "Ends with",
|
|
3441
3430
|
allowedTypes: ["string"]
|
|
3442
3431
|
},
|
|
3443
|
-
|
|
3432
|
+
In,
|
|
3444
3433
|
{
|
|
3445
3434
|
method: "notequal",
|
|
3446
3435
|
icon: "mdi:not-equal",
|
|
@@ -3453,7 +3442,7 @@ const Rn = {
|
|
|
3453
3442
|
],
|
|
3454
3443
|
key: "notequal"
|
|
3455
3444
|
},
|
|
3456
|
-
|
|
3445
|
+
zn,
|
|
3457
3446
|
{
|
|
3458
3447
|
method: "greaterthan",
|
|
3459
3448
|
icon: "mdi:greater-than",
|
|
@@ -3508,7 +3497,7 @@ const Rn = {
|
|
|
3508
3497
|
description: "Less than",
|
|
3509
3498
|
allowedTypes: ["number"]
|
|
3510
3499
|
}
|
|
3511
|
-
],
|
|
3500
|
+
], Ln = { 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" }, Bn = { class: "cl-p-2 cl-select-none" }, Fn = ["onClick"], jn = /* @__PURE__ */ G({
|
|
3512
3501
|
__name: "cl-ui-grid-method-selector",
|
|
3513
3502
|
props: {
|
|
3514
3503
|
filter: {},
|
|
@@ -3554,7 +3543,7 @@ const Rn = {
|
|
|
3554
3543
|
ref: n,
|
|
3555
3544
|
class: "cl-group cl-inline cl-relative cl-w-auto"
|
|
3556
3545
|
}, [
|
|
3557
|
-
f("div",
|
|
3546
|
+
f("div", Ln, [
|
|
3558
3547
|
d.value ? (p(), P(g(J), {
|
|
3559
3548
|
key: 0,
|
|
3560
3549
|
icon: d.value.icon,
|
|
@@ -3571,7 +3560,7 @@ const Rn = {
|
|
|
3571
3560
|
"cl-left-0": c.value
|
|
3572
3561
|
}])
|
|
3573
3562
|
}, [
|
|
3574
|
-
f("strong",
|
|
3563
|
+
f("strong", Bn, D(g(r)("grid.availableMethods")), 1),
|
|
3575
3564
|
(p(!0), b(Y, null, ne(a.value, (q, k) => {
|
|
3576
3565
|
var v;
|
|
3577
3566
|
return p(), b("span", {
|
|
@@ -3586,24 +3575,24 @@ const Rn = {
|
|
|
3586
3575
|
icon: q.icon,
|
|
3587
3576
|
class: "cl-float-right cl-text-grey-4 cl-text-sm"
|
|
3588
3577
|
}, null, 8, ["icon"])
|
|
3589
|
-
], 10,
|
|
3578
|
+
], 10, Fn);
|
|
3590
3579
|
}), 128))
|
|
3591
3580
|
], 2)
|
|
3592
3581
|
], 512));
|
|
3593
3582
|
}
|
|
3594
|
-
}), it = (t) => (Pl("data-v-5bc4c3e6"), t = t(), Gl(), t),
|
|
3583
|
+
}), it = (t) => (Pl("data-v-5bc4c3e6"), t = t(), Gl(), t), Pn = { class: "!cl-h-[2rem] cl-bg-white cl-flex cl-font-normal cl-items-center cl-mb-0 cl-rounded-md cl-w-full" }, Gn = { class: "cl-p-1" }, Hn = ["disabled"], Zn = {
|
|
3595
3584
|
key: 1,
|
|
3596
3585
|
class: "cl-w-full"
|
|
3597
|
-
},
|
|
3586
|
+
}, Wn = {
|
|
3598
3587
|
key: 2,
|
|
3599
3588
|
class: "cl-w-full"
|
|
3600
|
-
},
|
|
3589
|
+
}, Kn = {
|
|
3601
3590
|
key: 3,
|
|
3602
3591
|
class: "cl-w-full"
|
|
3603
|
-
},
|
|
3592
|
+
}, Qn = /* @__PURE__ */ it(() => /* @__PURE__ */ f("span", null, null, -1)), Yn = {
|
|
3604
3593
|
key: 4,
|
|
3605
3594
|
class: "cl-w-full"
|
|
3606
|
-
},
|
|
3595
|
+
}, Jn = /* @__PURE__ */ it(() => /* @__PURE__ */ f("span", null, null, -1)), xn = { class: "!cl-h-[2rem] cl-bg-white cl-flex cl-font-normal cl-items-center cl-mb-0 cl-rounded-md cl-w-full" }, Xn = { class: "cl-p-1" }, _n = ["disabled"], es = /* @__PURE__ */ G({
|
|
3607
3596
|
__name: "cl-ui-grid-filter",
|
|
3608
3597
|
props: {
|
|
3609
3598
|
loading: { type: Boolean },
|
|
@@ -3625,12 +3614,12 @@ const Rn = {
|
|
|
3625
3614
|
set: (y) => e("update:filter", y)
|
|
3626
3615
|
}), n = w(() => l.column.type === "date" || l.column.type === "datetime" || l.column.type === "slot" && (l.column.slotType === "date" || l.column.slotType === "datetime")), s = w(() => l.column.type === "dateRange" || l.column.type === "slot" && l.column.slotType === "dateRange"), c = w(() => l.column.type === "list" || l.column.type === "slot" && l.column.slotType === "list"), i = w(() => c.value && l.column.listType === "number"), m = w(() => l.column.type === "string" || l.column.type === "slot" && l.column.slotType === "string"), q = w(() => l.column.format === _.INTEGER ? _.DECIMAL : l.column.format ?? _.DECIMAL), k = M(!1), v = w(() => k.value || m.value === !1), $ = w({
|
|
3627
3616
|
get() {
|
|
3628
|
-
var H, U, Z,
|
|
3617
|
+
var H, U, Z, X, h, R, Q;
|
|
3629
3618
|
let y = (H = u.value) == null ? void 0 : H[0];
|
|
3630
3619
|
if (y) {
|
|
3631
3620
|
if (n.value) {
|
|
3632
3621
|
if ((((U = l.filter) == null ? void 0 : U.length) ?? 0) > 1) {
|
|
3633
|
-
const de = (Z = u.value) == null ? void 0 : Z.find((Se) => Se.filterOperation === ae.EQUAL_OR_GREATER_THAN), Ae = (
|
|
3622
|
+
const de = (Z = u.value) == null ? void 0 : Z.find((Se) => Se.filterOperation === ae.EQUAL_OR_GREATER_THAN), Ae = (X = u.value) == null ? void 0 : X.find((Se) => Se.filterOperation === ae.LESS_THAN);
|
|
3634
3623
|
de && Ae && (y = {
|
|
3635
3624
|
filterOnColumn: l.column.field,
|
|
3636
3625
|
filterOperation: ae.EQUAL,
|
|
@@ -3666,7 +3655,7 @@ const Rn = {
|
|
|
3666
3655
|
set(y) {
|
|
3667
3656
|
let H = null;
|
|
3668
3657
|
if (n.value) {
|
|
3669
|
-
const U = y, Z = (U == null ? void 0 : U.filterMethod) && S(U.filterMethod, U.filterValue, "equal"),
|
|
3658
|
+
const U = y, Z = (U == null ? void 0 : U.filterMethod) && S(U.filterMethod, U.filterValue, "equal"), X = (U == null ? void 0 : U.filterMethod) && S(U.filterMethod, U.filterValue, "equalorlessthan"), h = (U == null ? void 0 : U.filterMethod) && S(U.filterMethod, U.filterValue, "greaterthan");
|
|
3670
3659
|
if (Z) {
|
|
3671
3660
|
let R = K.fromISO(U.filterValue, {
|
|
3672
3661
|
zone: l.timeZone ?? "UTC"
|
|
@@ -3691,7 +3680,7 @@ const Rn = {
|
|
|
3691
3680
|
filterValue: de
|
|
3692
3681
|
}
|
|
3693
3682
|
];
|
|
3694
|
-
} else if (
|
|
3683
|
+
} else if (X || h) {
|
|
3695
3684
|
let R = K.fromISO(U.filterValue, {
|
|
3696
3685
|
zone: l.timeZone ?? "UTC"
|
|
3697
3686
|
}).set({
|
|
@@ -3701,8 +3690,8 @@ const Rn = {
|
|
|
3701
3690
|
l.column.type === "date" || l.column.type === "slot" && l.column.slotType === "date" ? R = R.plus({ days: 1 }) : R = R.plus({ minutes: 1 }), H = [
|
|
3702
3691
|
{
|
|
3703
3692
|
filterOnColumn: l.column.field,
|
|
3704
|
-
filterOperation:
|
|
3705
|
-
filterMethod:
|
|
3693
|
+
filterOperation: X ? ae.EQUAL_OR_LESS_THAN : ae.GREATER_THAN,
|
|
3694
|
+
filterMethod: X ? "equalorlessthan" : "greaterthan",
|
|
3706
3695
|
filterValue: R.minus({ milliseconds: 1 }).toISO()
|
|
3707
3696
|
}
|
|
3708
3697
|
];
|
|
@@ -3710,7 +3699,7 @@ const Rn = {
|
|
|
3710
3699
|
} else if (s.value && (y != null && y.filterValue)) {
|
|
3711
3700
|
const U = y.filterValue, Z = K.fromISO(U.start, {
|
|
3712
3701
|
zone: l.timeZone ?? "UTC"
|
|
3713
|
-
}).toISO(),
|
|
3702
|
+
}).toISO(), X = K.fromISO(U.end, {
|
|
3714
3703
|
zone: l.timeZone ?? "UTC"
|
|
3715
3704
|
}).toISO();
|
|
3716
3705
|
H = [
|
|
@@ -3724,7 +3713,7 @@ const Rn = {
|
|
|
3724
3713
|
filterOnColumn: l.column.field,
|
|
3725
3714
|
filterOperation: ae.EQUAL_OR_LESS_THAN,
|
|
3726
3715
|
filterMethod: "equalorlessthan",
|
|
3727
|
-
filterValue:
|
|
3716
|
+
filterValue: X
|
|
3728
3717
|
}
|
|
3729
3718
|
];
|
|
3730
3719
|
}
|
|
@@ -3737,7 +3726,7 @@ const Rn = {
|
|
|
3737
3726
|
l.timeZone ? U.filterValue = K.fromISO(U.filterValue).setZone("UTC").toISO() ?? "" : U.filterValue = U.filterValue.replace("Z", "");
|
|
3738
3727
|
v.value ? (u.value = H, k.value = !1) : C(H);
|
|
3739
3728
|
}
|
|
3740
|
-
}), C =
|
|
3729
|
+
}), C = xe((y) => {
|
|
3741
3730
|
u.value = y;
|
|
3742
3731
|
}, 1e3), L = w({
|
|
3743
3732
|
get: () => $.value,
|
|
@@ -3755,7 +3744,7 @@ const Rn = {
|
|
|
3755
3744
|
function W(y, H) {
|
|
3756
3745
|
var de;
|
|
3757
3746
|
let U, Z = (y == null ? void 0 : y.value) ?? H;
|
|
3758
|
-
const
|
|
3747
|
+
const X = ((de = $.value) == null ? void 0 : de.filterValue.toString()) ?? "", h = !!Z.trim(), R = !!X.trim();
|
|
3759
3748
|
if (h === !1 && R && (Z = ""), h || R) {
|
|
3760
3749
|
if ($.value)
|
|
3761
3750
|
U = ge(L.value), U.filterValue = Z;
|
|
@@ -3775,8 +3764,8 @@ const Rn = {
|
|
|
3775
3764
|
function z(y, H) {
|
|
3776
3765
|
let U = (y == null ? void 0 : y.value) ?? H ?? 0;
|
|
3777
3766
|
if (typeof U == "string") {
|
|
3778
|
-
const Z = l.column.format === _.INTEGER,
|
|
3779
|
-
U = Yl(U,
|
|
3767
|
+
const Z = l.column.format === _.INTEGER, X = (Z ? _.DECIMAL : l.column.format) ?? _.DECIMAL;
|
|
3768
|
+
U = Yl(U, X, { additionalOptions: {
|
|
3780
3769
|
maximumFractionDigits: Z ? 0 : void 0,
|
|
3781
3770
|
minimumFractionDigits: Z ? 0 : void 0
|
|
3782
3771
|
} });
|
|
@@ -3789,23 +3778,23 @@ const Rn = {
|
|
|
3789
3778
|
if ($.value)
|
|
3790
3779
|
U = ((Z = $.value) == null ? void 0 : Z.filterValue) === y, H = ge($.value), H.filterValue = y ?? "";
|
|
3791
3780
|
else if (y !== null && typeof l.column.field < "u") {
|
|
3792
|
-
const
|
|
3781
|
+
const X = d();
|
|
3793
3782
|
H = {
|
|
3794
3783
|
filterOnColumn: l.column.field,
|
|
3795
|
-
filterMethod: ae[
|
|
3796
|
-
filterOperation:
|
|
3784
|
+
filterMethod: ae[X].replace("_", "").toLowerCase(),
|
|
3785
|
+
filterOperation: X,
|
|
3797
3786
|
filterValue: y
|
|
3798
3787
|
};
|
|
3799
3788
|
} else
|
|
3800
3789
|
return;
|
|
3801
3790
|
U === !1 && ($.value = H);
|
|
3802
3791
|
}
|
|
3803
|
-
const
|
|
3792
|
+
const x = M("");
|
|
3804
3793
|
function ye(y) {
|
|
3805
|
-
k.value = !1, y === "Enter" && (k.value = !0, W(null,
|
|
3794
|
+
k.value = !1, y === "Enter" && (k.value = !0, W(null, x.value));
|
|
3806
3795
|
}
|
|
3807
3796
|
te(() => B.value, () => {
|
|
3808
|
-
|
|
3797
|
+
x.value = B.value;
|
|
3809
3798
|
}, {
|
|
3810
3799
|
immediate: !0
|
|
3811
3800
|
});
|
|
@@ -3834,11 +3823,11 @@ const Rn = {
|
|
|
3834
3823
|
"model-value": B.value,
|
|
3835
3824
|
"onUpdate:modelValue": H[0] || (H[0] = (Z) => W(null, Z))
|
|
3836
3825
|
}, {
|
|
3837
|
-
input: A(({ selectModalVisible: Z, toggleSelectModalState:
|
|
3838
|
-
T(ll, { onToggleModal:
|
|
3826
|
+
input: A(({ selectModalVisible: Z, toggleSelectModalState: X }) => [
|
|
3827
|
+
T(ll, { onToggleModal: X }, {
|
|
3839
3828
|
default: A(() => [
|
|
3840
|
-
f("div",
|
|
3841
|
-
f("span",
|
|
3829
|
+
f("div", Pn, [
|
|
3830
|
+
f("span", Gn, D(B.value === "" ? "" : B.value === "true" ? g(r)("grid.true") : g(r)("grid.false")), 1),
|
|
3842
3831
|
f("div", {
|
|
3843
3832
|
class: "cl-absolute cl-flex cl-items-center cl-right-1 cl-text-grey-3 cl-z-10",
|
|
3844
3833
|
disabled: y.loading
|
|
@@ -3846,7 +3835,7 @@ const Rn = {
|
|
|
3846
3835
|
T(U, {
|
|
3847
3836
|
icon: Z ? "ph:caret-up-bold" : "ph:caret-down-bold"
|
|
3848
3837
|
}, null, 8, ["icon"])
|
|
3849
|
-
], 8,
|
|
3838
|
+
], 8, Hn)
|
|
3850
3839
|
])
|
|
3851
3840
|
]),
|
|
3852
3841
|
_: 2
|
|
@@ -3855,7 +3844,7 @@ const Rn = {
|
|
|
3855
3844
|
default: A(({ select: Z }) => [
|
|
3856
3845
|
T(Le, {
|
|
3857
3846
|
class: "!cl-py-0 cl-text-xs",
|
|
3858
|
-
onSelect: (
|
|
3847
|
+
onSelect: (X) => Z("")
|
|
3859
3848
|
}, {
|
|
3860
3849
|
default: A(() => [
|
|
3861
3850
|
ie(" ")
|
|
@@ -3865,7 +3854,7 @@ const Rn = {
|
|
|
3865
3854
|
T(Le, {
|
|
3866
3855
|
"is-selected": B.value === "true",
|
|
3867
3856
|
class: "!cl-py-0 cl-text-xs",
|
|
3868
|
-
onSelect: (
|
|
3857
|
+
onSelect: (X) => Z("true")
|
|
3869
3858
|
}, {
|
|
3870
3859
|
default: A(() => [
|
|
3871
3860
|
ie(D(g(r)("grid.true")), 1)
|
|
@@ -3875,7 +3864,7 @@ const Rn = {
|
|
|
3875
3864
|
T(Le, {
|
|
3876
3865
|
"is-selected": B.value === "false",
|
|
3877
3866
|
class: "!cl-py-0 cl-text-xs",
|
|
3878
|
-
onSelect: (
|
|
3867
|
+
onSelect: (X) => Z("false")
|
|
3879
3868
|
}, {
|
|
3880
3869
|
default: A(() => [
|
|
3881
3870
|
ie(D(g(r)("grid.false")), 1)
|
|
@@ -3884,7 +3873,7 @@ const Rn = {
|
|
|
3884
3873
|
}, 1032, ["is-selected", "onSelect"])
|
|
3885
3874
|
]),
|
|
3886
3875
|
_: 1
|
|
3887
|
-
}, 8, ["disabled", "model-value"])) : n.value ? (p(), b("div",
|
|
3876
|
+
}, 8, ["disabled", "model-value"])) : n.value ? (p(), b("div", Zn, [
|
|
3888
3877
|
T(st, {
|
|
3889
3878
|
id: `${g(N)}-${y.column.name}`,
|
|
3890
3879
|
"model-value": ee.value,
|
|
@@ -3895,7 +3884,7 @@ const Rn = {
|
|
|
3895
3884
|
"popover-placement": "bottom-start",
|
|
3896
3885
|
"onUpdate:modelValue": H[1] || (H[1] = (Z) => W(null, Z ?? ""))
|
|
3897
3886
|
}, null, 8, ["id", "model-value", "time-zone", "readonly", "type"])
|
|
3898
|
-
])) : s.value ? (p(), b("div",
|
|
3887
|
+
])) : s.value ? (p(), b("div", Wn, [
|
|
3899
3888
|
T(at, {
|
|
3900
3889
|
id: `${g(N)}-${y.column.name}`,
|
|
3901
3890
|
"model-value": E.value,
|
|
@@ -3906,7 +3895,7 @@ const Rn = {
|
|
|
3906
3895
|
"popover-placement": "bottom-start",
|
|
3907
3896
|
"onUpdate:modelValue": H[2] || (H[2] = (Z) => F(Z))
|
|
3908
3897
|
}, null, 8, ["id", "model-value", "disabled", "time-zone", "quick-date-scope"])
|
|
3909
|
-
])) : y.column.type === "number" || y.column.type === "slot" && y.column.slotType === "number" ? (p(), b("div",
|
|
3898
|
+
])) : y.column.type === "number" || y.column.type === "slot" && y.column.slotType === "number" ? (p(), b("div", Kn, [
|
|
3910
3899
|
T(Ke, {
|
|
3911
3900
|
id: `${g(N)}-${y.column.name}`,
|
|
3912
3901
|
"model-value": B.value === "" || isNaN(+B.value) ? null : +B.value,
|
|
@@ -3919,16 +3908,16 @@ const Rn = {
|
|
|
3919
3908
|
"onUpdate:modelValue": H[3] || (H[3] = (Z) => Z !== null ? z(null, Z) : W(null, ""))
|
|
3920
3909
|
}, {
|
|
3921
3910
|
default: A(() => [
|
|
3922
|
-
|
|
3911
|
+
Qn
|
|
3923
3912
|
]),
|
|
3924
3913
|
_: 1
|
|
3925
3914
|
}, 8, ["id", "model-value", "format", "precision", "readonly"])
|
|
3926
|
-
])) : y.column.type === "string" || y.column.type === "slot" && y.column.slotType === "string" ? (p(), b("div",
|
|
3915
|
+
])) : y.column.type === "string" || y.column.type === "slot" && y.column.slotType === "string" ? (p(), b("div", Yn, [
|
|
3927
3916
|
T(Re, {
|
|
3928
3917
|
id: `${g(N)}-${y.column.name}`,
|
|
3929
|
-
modelValue:
|
|
3918
|
+
modelValue: x.value,
|
|
3930
3919
|
"onUpdate:modelValue": [
|
|
3931
|
-
H[4] || (H[4] = (Z) =>
|
|
3920
|
+
H[4] || (H[4] = (Z) => x.value = Z),
|
|
3932
3921
|
H[5] || (H[5] = (Z) => W(null, Z))
|
|
3933
3922
|
],
|
|
3934
3923
|
class: "cl-border-none cl-font-normal cl-h-[2rem] cl-px-3 cl-text-xs lg:cl-text-base readonly-filter",
|
|
@@ -3936,7 +3925,7 @@ const Rn = {
|
|
|
3936
3925
|
onKeySinglePress: ye
|
|
3937
3926
|
}, {
|
|
3938
3927
|
default: A(() => [
|
|
3939
|
-
|
|
3928
|
+
Jn
|
|
3940
3929
|
]),
|
|
3941
3930
|
_: 1
|
|
3942
3931
|
}, 8, ["id", "modelValue", "readonly"])
|
|
@@ -3948,12 +3937,12 @@ const Rn = {
|
|
|
3948
3937
|
disabled: y.loading,
|
|
3949
3938
|
"onUpdate:modelValue": H[6] || (H[6] = (Z) => i.value ? z(null, Z) : W(null, Z))
|
|
3950
3939
|
}, {
|
|
3951
|
-
input: A(({ selectModalVisible: Z, toggleSelectModalState:
|
|
3952
|
-
T(ll, { onToggleModal:
|
|
3940
|
+
input: A(({ selectModalVisible: Z, toggleSelectModalState: X }) => [
|
|
3941
|
+
T(ll, { onToggleModal: X }, {
|
|
3953
3942
|
default: A(() => {
|
|
3954
3943
|
var h, R;
|
|
3955
3944
|
return [
|
|
3956
|
-
f("div",
|
|
3945
|
+
f("div", xn, [
|
|
3957
3946
|
f("span", Xn, D(g(r)(((R = (h = y.column.listEntries) == null ? void 0 : h.find((Q) => Q.value.toString() === B.value)) == null ? void 0 : R.translationKey) ?? "")), 1),
|
|
3958
3947
|
f("div", {
|
|
3959
3948
|
class: "cl-absolute cl-flex cl-items-center cl-right-1 cl-text-grey-3 cl-z-10",
|
|
@@ -3962,7 +3951,7 @@ const Rn = {
|
|
|
3962
3951
|
T(U, {
|
|
3963
3952
|
icon: Z ? "ph:caret-up-bold" : "ph:caret-down-bold"
|
|
3964
3953
|
}, null, 8, ["icon"])
|
|
3965
|
-
], 8,
|
|
3954
|
+
], 8, _n)
|
|
3966
3955
|
])
|
|
3967
3956
|
];
|
|
3968
3957
|
}),
|
|
@@ -3972,28 +3961,28 @@ const Rn = {
|
|
|
3972
3961
|
default: A(({ select: Z }) => [
|
|
3973
3962
|
T(Le, {
|
|
3974
3963
|
class: "!cl-py-0 cl-text-xs",
|
|
3975
|
-
onSelect: (
|
|
3964
|
+
onSelect: (X) => Z("")
|
|
3976
3965
|
}, {
|
|
3977
3966
|
default: A(() => [
|
|
3978
3967
|
ie(" ")
|
|
3979
3968
|
]),
|
|
3980
3969
|
_: 2
|
|
3981
3970
|
}, 1032, ["onSelect"]),
|
|
3982
|
-
(p(!0), b(Y, null, ne(y.column.listEntries ?? [], (
|
|
3983
|
-
key:
|
|
3984
|
-
"is-selected": B.value ===
|
|
3971
|
+
(p(!0), b(Y, null, ne(y.column.listEntries ?? [], (X) => (p(), P(Le, {
|
|
3972
|
+
key: X.value,
|
|
3973
|
+
"is-selected": B.value === X.value.toString(),
|
|
3985
3974
|
class: "!cl-py-0 cl-text-xs",
|
|
3986
|
-
onSelect: (h) => Z(
|
|
3975
|
+
onSelect: (h) => Z(X.value)
|
|
3987
3976
|
}, {
|
|
3988
3977
|
default: A(() => [
|
|
3989
|
-
ie(D(g(r)(
|
|
3978
|
+
ie(D(g(r)(X.translationKey)), 1)
|
|
3990
3979
|
]),
|
|
3991
3980
|
_: 2
|
|
3992
3981
|
}, 1032, ["is-selected", "onSelect"]))), 128))
|
|
3993
3982
|
]),
|
|
3994
3983
|
_: 1
|
|
3995
3984
|
}, 8, ["id", "model-value", "disabled"])) : j("", !0),
|
|
3996
|
-
s.value ? j("", !0) : (p(), P(
|
|
3985
|
+
s.value ? j("", !0) : (p(), P(jn, {
|
|
3997
3986
|
key: 6,
|
|
3998
3987
|
filter: L.value,
|
|
3999
3988
|
"onUpdate:filter": H[7] || (H[7] = (Z) => L.value = Z),
|
|
@@ -4005,7 +3994,7 @@ const Rn = {
|
|
|
4005
3994
|
], 2)) : j("", !0);
|
|
4006
3995
|
};
|
|
4007
3996
|
}
|
|
4008
|
-
}),
|
|
3997
|
+
}), ls = /* @__PURE__ */ we(es, [["__scopeId", "data-v-5bc4c3e6"]]), ts = ["onClick"], os = ["onClick"], as = { class: "cl-font-normal cl-mr-1" }, ns = /* @__PURE__ */ G({
|
|
4009
3998
|
__name: "cl-ui-grid-header",
|
|
4010
3999
|
props: {
|
|
4011
4000
|
request: {},
|
|
@@ -4075,7 +4064,7 @@ const Rn = {
|
|
|
4075
4064
|
}, null, 512), [
|
|
4076
4065
|
[ue, d(i, !1)]
|
|
4077
4066
|
])
|
|
4078
|
-
], 10,
|
|
4067
|
+
], 10, ts))), 128))
|
|
4079
4068
|
], 2),
|
|
4080
4069
|
f("tr", {
|
|
4081
4070
|
class: O(["cl-border cl-border-grey-2 cl-flex cl-flex-wrap cl-p-2 lg:cl-border-none lg:cl-p-0 lg:cl-table-row", {
|
|
@@ -4116,7 +4105,7 @@ const Rn = {
|
|
|
4116
4105
|
}]),
|
|
4117
4106
|
onClick: (q) => s.loading === !1 ? u(i.field) : void 0
|
|
4118
4107
|
}, [
|
|
4119
|
-
f("span",
|
|
4108
|
+
f("span", as, D(g(r)("grid.sortBy")), 1),
|
|
4120
4109
|
d(i, !0) ? (p(), P(g(J), {
|
|
4121
4110
|
key: 0,
|
|
4122
4111
|
class: "cl-cursor-pointer cl-inline-block",
|
|
@@ -4130,8 +4119,8 @@ const Rn = {
|
|
|
4130
4119
|
class: "cl-cursor-pointer cl-inline-block",
|
|
4131
4120
|
icon: "ph:minus"
|
|
4132
4121
|
}))
|
|
4133
|
-
], 10,
|
|
4134
|
-
T(
|
|
4122
|
+
], 10, os)) : j("", !0),
|
|
4123
|
+
T(ls, {
|
|
4135
4124
|
class: "cl-col-span-4",
|
|
4136
4125
|
loading: s.loading,
|
|
4137
4126
|
filter: a.value.filters.filter((q) => q.filterOnColumn === i.field),
|
|
@@ -4147,7 +4136,7 @@ const Rn = {
|
|
|
4147
4136
|
], 2)
|
|
4148
4137
|
], 2));
|
|
4149
4138
|
}
|
|
4150
|
-
}),
|
|
4139
|
+
}), ss = { class: "cl-flex cl-mb-2" }, rs = { class: "cl-basis-full cl-grow" }, is = /* @__PURE__ */ f("span", null, null, -1), cs = /* @__PURE__ */ G({
|
|
4151
4140
|
__name: "cl-ui-grid-search",
|
|
4152
4141
|
props: /* @__PURE__ */ fe({
|
|
4153
4142
|
columns: {},
|
|
@@ -4178,12 +4167,12 @@ const Rn = {
|
|
|
4178
4167
|
};
|
|
4179
4168
|
}
|
|
4180
4169
|
te(() => l.columns, () => d(e.value));
|
|
4181
|
-
const u =
|
|
4170
|
+
const u = xe(d, 1e3), { t: n } = ce();
|
|
4182
4171
|
return (s, c) => {
|
|
4183
4172
|
const i = Ve("icon");
|
|
4184
4173
|
return I(s.$slots, "search", pe(me({ searchValue: e.value, performSearch: d })), () => [
|
|
4185
|
-
f("div",
|
|
4186
|
-
f("div",
|
|
4174
|
+
f("div", ss, [
|
|
4175
|
+
f("div", rs, [
|
|
4187
4176
|
T(Re, {
|
|
4188
4177
|
modelValue: e.value,
|
|
4189
4178
|
"onUpdate:modelValue": [
|
|
@@ -4196,7 +4185,7 @@ const Rn = {
|
|
|
4196
4185
|
onKeypress: c[1] || (c[1] = he((m) => d(e.value), ["enter"]))
|
|
4197
4186
|
}, {
|
|
4198
4187
|
default: A(() => [
|
|
4199
|
-
|
|
4188
|
+
is
|
|
4200
4189
|
]),
|
|
4201
4190
|
_: 1
|
|
4202
4191
|
}, 8, ["modelValue", "placeholder", "onUpdate:modelValue"])
|
|
@@ -4211,7 +4200,7 @@ const Rn = {
|
|
|
4211
4200
|
]);
|
|
4212
4201
|
};
|
|
4213
4202
|
}
|
|
4214
|
-
}),
|
|
4203
|
+
}), us = { class: "cl-fixed cl-flex cl-h-full cl-justify-end cl-right-0 cl-shadow-lg cl-top-0 cl-z-40" }, ds = { 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" }, ps = { class: "cl-mb-4 cl-text-2xl cl-text-off-white" }, fs = { class: "cl-border-grey-3 cl-border-t cl-flex cl-flex-wrap cl-text-sm cl-w-full" }, ms = { class: "cl-border-b cl-border-grey-2 cl-flex cl-py-2 cl-text-sm cl-w-full" }, gs = { class: "cl-flex-1 cl-py-2" }, vs = { class: "cl-py-2 cl-w-1/4" }, bs = { class: "cl-py-2 cl-w-1/5" }, hs = { class: "cl-flex-1 cl-py-2" }, ys = { class: "cl-py-2 cl-w-1/4" }, ws = { class: "cl-py-2 cl-text-off-white cl-w-1/5" }, ks = { key: 1 }, $s = /* @__PURE__ */ G({
|
|
4215
4204
|
inheritAttrs: !1,
|
|
4216
4205
|
__name: "cl-ui-grid-view-manager",
|
|
4217
4206
|
props: {
|
|
@@ -4247,33 +4236,33 @@ const Rn = {
|
|
|
4247
4236
|
(p(), P(hl, { to: "body" }, [
|
|
4248
4237
|
T(Ee, { name: "slide-left" }, {
|
|
4249
4238
|
default: A(() => [
|
|
4250
|
-
oe(f("div",
|
|
4251
|
-
f("div",
|
|
4239
|
+
oe(f("div", us, [
|
|
4240
|
+
f("div", ds, [
|
|
4252
4241
|
T(g(J), {
|
|
4253
4242
|
class: "cl-absolute cl-cursor-pointer cl-right-3 cl-text-off-white cl-top-3",
|
|
4254
4243
|
icon: "ph:x",
|
|
4255
4244
|
size: 16,
|
|
4256
4245
|
onClick: c[1] || (c[1] = (i) => a.value = !1)
|
|
4257
4246
|
}),
|
|
4258
|
-
f("h3",
|
|
4259
|
-
f("ul",
|
|
4260
|
-
f("li",
|
|
4261
|
-
f("strong",
|
|
4262
|
-
f("strong",
|
|
4263
|
-
f("strong",
|
|
4247
|
+
f("h3", ps, D(g(r)("grid.manageView")), 1),
|
|
4248
|
+
f("ul", fs, [
|
|
4249
|
+
f("li", ms, [
|
|
4250
|
+
f("strong", gs, D(g(r)("grid.column")), 1),
|
|
4251
|
+
f("strong", vs, D(g(r)("grid.visible")), 1),
|
|
4252
|
+
f("strong", bs, D(g(r)("grid.order")), 1)
|
|
4264
4253
|
]),
|
|
4265
4254
|
(p(!0), b(Y, null, ne(s.columns, (i, m) => (p(), b("li", {
|
|
4266
4255
|
key: m,
|
|
4267
4256
|
class: "cl-border-b cl-border-grey-2 cl-flex cl-py-2 cl-text-sm cl-w-full"
|
|
4268
4257
|
}, [
|
|
4269
|
-
f("div",
|
|
4270
|
-
f("div",
|
|
4258
|
+
f("div", hs, D(i.caption), 1),
|
|
4259
|
+
f("div", ys, [
|
|
4271
4260
|
T(il, {
|
|
4272
4261
|
"model-value": i.visible === void 0 || i.visible === !0,
|
|
4273
4262
|
"onUpdate:modelValue": (q) => u(q, i)
|
|
4274
4263
|
}, null, 8, ["model-value", "onUpdate:modelValue"])
|
|
4275
4264
|
]),
|
|
4276
|
-
f("div",
|
|
4265
|
+
f("div", ws, [
|
|
4277
4266
|
i.visible === void 0 || i.visible === !0 ? (p(), b(Y, { key: 0 }, [
|
|
4278
4267
|
m !== 0 ? (p(), P(g(J), {
|
|
4279
4268
|
key: 0,
|
|
@@ -4287,7 +4276,7 @@ const Rn = {
|
|
|
4287
4276
|
icon: "ph:arrow-right",
|
|
4288
4277
|
onClick: (q) => n(m, "up")
|
|
4289
4278
|
}, null, 8, ["onClick"])) : j("", !0)
|
|
4290
|
-
], 64)) : (p(), b("em",
|
|
4279
|
+
], 64)) : (p(), b("em", ks, D(g(r)("grid.hidden")), 1))
|
|
4291
4280
|
])
|
|
4292
4281
|
]))), 128))
|
|
4293
4282
|
])
|
|
@@ -4301,7 +4290,7 @@ const Rn = {
|
|
|
4301
4290
|
]))
|
|
4302
4291
|
], 64));
|
|
4303
4292
|
}
|
|
4304
|
-
}),
|
|
4293
|
+
}), Cs = { class: "cl-relative cl-w-full grid-wrapper lg:cl-min-h-fit" }, Ts = { class: "cl-absolute cl-flex cl-items-center cl-justify-center cl-min-h-full cl-p-28 cl-pt-0 cl-w-full" }, Ss = { class: "cl-overflow-x-auto cl-overscroll-x-none cl-pt-1" }, qs = /* @__PURE__ */ G({
|
|
4305
4294
|
__name: "cl-ui-grid",
|
|
4306
4295
|
props: {
|
|
4307
4296
|
columns: {},
|
|
@@ -4336,8 +4325,8 @@ const Rn = {
|
|
|
4336
4325
|
return s.value[V] ?? "";
|
|
4337
4326
|
}
|
|
4338
4327
|
We(() => {
|
|
4339
|
-
window.addEventListener("resize",
|
|
4340
|
-
}), tl(() => window.removeEventListener("resize",
|
|
4328
|
+
window.addEventListener("resize", xe(c, 50)), c();
|
|
4329
|
+
}), tl(() => window.removeEventListener("resize", xe(c, 50)));
|
|
4341
4330
|
const m = w({
|
|
4342
4331
|
get: () => l.request,
|
|
4343
4332
|
set: (V) => e("update:request", V)
|
|
@@ -4378,8 +4367,8 @@ const Rn = {
|
|
|
4378
4367
|
};
|
|
4379
4368
|
}
|
|
4380
4369
|
}), B = M(((E = l.request.filters.find((V) => V.filterMethod === "andcontains" || V.filterOperation === ae.AND_CONTAINS)) == null ? void 0 : E.filterValue) ?? ""), ee = w(() => l.columns.filter((V) => (V.type === "string" || V.type === "slot" && V.slotType === "string") && V.searchable));
|
|
4381
|
-
return (V, W) => (p(), b("div",
|
|
4382
|
-
ee.value.length > 0 ? (p(), P(
|
|
4370
|
+
return (V, W) => (p(), b("div", Cs, [
|
|
4371
|
+
ee.value.length > 0 ? (p(), P(cs, {
|
|
4383
4372
|
key: 0,
|
|
4384
4373
|
"search-value": B.value,
|
|
4385
4374
|
"onUpdate:searchValue": W[0] || (W[0] = (z) => B.value = z),
|
|
@@ -4394,7 +4383,7 @@ const Rn = {
|
|
|
4394
4383
|
}, 8, ["search-value", "request", "columns"])) : j("", !0),
|
|
4395
4384
|
T(Ee, { name: "fade" }, {
|
|
4396
4385
|
default: A(() => [
|
|
4397
|
-
oe(f("div",
|
|
4386
|
+
oe(f("div", Ts, [
|
|
4398
4387
|
T(sl, { class: "after:!cl-h-20 after:!cl-w-20 cl-h-20 cl-w-20" })
|
|
4399
4388
|
], 512), [
|
|
4400
4389
|
[ue, V.loading]
|
|
@@ -4417,7 +4406,7 @@ const Rn = {
|
|
|
4417
4406
|
I(V.$slots, "additional-grid-actions", pe(me(z)))
|
|
4418
4407
|
]),
|
|
4419
4408
|
"view-manager": A(() => [
|
|
4420
|
-
T(
|
|
4409
|
+
T($s, {
|
|
4421
4410
|
columns: u.value,
|
|
4422
4411
|
"onUpdate:columns": W[2] || (W[2] = (z) => u.value = z),
|
|
4423
4412
|
loading: V.loading
|
|
@@ -4425,7 +4414,7 @@ const Rn = {
|
|
|
4425
4414
|
]),
|
|
4426
4415
|
_: 3
|
|
4427
4416
|
}, 8, ["edit-mode", "filter-panel-open", "columns", "options", "request", "loading"]),
|
|
4428
|
-
f("div",
|
|
4417
|
+
f("div", Ss, [
|
|
4429
4418
|
f("table", {
|
|
4430
4419
|
class: O(["cl-delay-75 cl-min-h-[276px] cl-overflow-x-auto cl-overscroll-x-none cl-text-left cl-transition-opacity cl-w-full", {
|
|
4431
4420
|
"cl-opacity-40 cl-pointer-events-none": V.loading
|
|
@@ -4442,7 +4431,7 @@ const Rn = {
|
|
|
4442
4431
|
span: 1
|
|
4443
4432
|
}, null, 4))), 128))
|
|
4444
4433
|
], 2),
|
|
4445
|
-
T(
|
|
4434
|
+
T(ns, {
|
|
4446
4435
|
request: S.value,
|
|
4447
4436
|
"onUpdate:request": W[5] || (W[5] = (z) => S.value = z),
|
|
4448
4437
|
"filter-panel-open": C.value,
|
|
@@ -4454,7 +4443,7 @@ const Rn = {
|
|
|
4454
4443
|
"header-display-timezone": a.value,
|
|
4455
4444
|
onPerformDataRequest: W[7] || (W[7] = (z) => e("data-request"))
|
|
4456
4445
|
}, null, 8, ["request", "filter-panel-open", "columns", "options", "loading", "time-zone", "header-display-timezone"]),
|
|
4457
|
-
T(
|
|
4446
|
+
T(Oa, {
|
|
4458
4447
|
columns: n.value,
|
|
4459
4448
|
request: m.value,
|
|
4460
4449
|
data: v.value,
|
|
@@ -4470,14 +4459,14 @@ const Rn = {
|
|
|
4470
4459
|
}, Te({ _: 2 }, [
|
|
4471
4460
|
ne(V.$slots, (z, F) => ({
|
|
4472
4461
|
name: F,
|
|
4473
|
-
fn: A((
|
|
4474
|
-
I(V.$slots, F, pe(me(
|
|
4462
|
+
fn: A((x) => [
|
|
4463
|
+
I(V.$slots, F, pe(me(x)))
|
|
4475
4464
|
])
|
|
4476
4465
|
}))
|
|
4477
4466
|
]), 1032, ["columns", "request", "data", "time-zone", "loading", "search-value", "options", "edit-mode"])
|
|
4478
4467
|
], 2)
|
|
4479
4468
|
]),
|
|
4480
|
-
V.options.hidePagination !== !0 ? (p(), P(
|
|
4469
|
+
V.options.hidePagination !== !0 ? (p(), P(Ya, {
|
|
4481
4470
|
key: 1,
|
|
4482
4471
|
request: m.value,
|
|
4483
4472
|
loading: V.loading,
|
|
@@ -4489,7 +4478,7 @@ const Rn = {
|
|
|
4489
4478
|
}, null, 8, ["request", "loading", "show-unsaved-changes-warning", "data"])) : j("", !0)
|
|
4490
4479
|
]));
|
|
4491
4480
|
}
|
|
4492
|
-
}),
|
|
4481
|
+
}), Os = ["id"], Ds = { class: "cl-overflow-x-auto" }, As = { class: "cl-grid cl-min-w-full cl-w-max" }, Es = /* @__PURE__ */ G({
|
|
4493
4482
|
inheritAttrs: !1,
|
|
4494
4483
|
__name: "cl-ui-grid-lite",
|
|
4495
4484
|
props: /* @__PURE__ */ fe({
|
|
@@ -4514,8 +4503,8 @@ const Rn = {
|
|
|
4514
4503
|
"v-bind": d,
|
|
4515
4504
|
class: O(["cl-border cl-border-off-white cl-grid cl-overflow-hidden cl-rounded cl-w-full", [c.options.smallGridText ? "cl-text-xs" : "cl-text-base"]])
|
|
4516
4505
|
}, [
|
|
4517
|
-
f("div",
|
|
4518
|
-
f("div",
|
|
4506
|
+
f("div", Ds, [
|
|
4507
|
+
f("div", As, [
|
|
4519
4508
|
T(g(ct), {
|
|
4520
4509
|
request: e.value,
|
|
4521
4510
|
"onUpdate:request": i[0] || (i[0] = (m) => e.value = m),
|
|
@@ -4550,14 +4539,14 @@ const Rn = {
|
|
|
4550
4539
|
loading: c.loading,
|
|
4551
4540
|
"is-small-grid": c.options.smallGridText
|
|
4552
4541
|
}, null, 8, ["request", "data", "loading", "is-small-grid"])) : j("", !0)
|
|
4553
|
-
], 10,
|
|
4542
|
+
], 10, Os));
|
|
4554
4543
|
}
|
|
4555
4544
|
});
|
|
4556
4545
|
function fl(t) {
|
|
4557
4546
|
const o = t.type !== "slot" || t.slotType !== void 0 && t.field !== void 0, l = t.sortable ?? !0;
|
|
4558
4547
|
return o && l;
|
|
4559
4548
|
}
|
|
4560
|
-
const
|
|
4549
|
+
const Vs = ["onClick"], ct = /* @__PURE__ */ G({
|
|
4561
4550
|
__name: "cl-ui-grid-lite-header",
|
|
4562
4551
|
props: /* @__PURE__ */ fe({
|
|
4563
4552
|
columns: {},
|
|
@@ -4631,7 +4620,7 @@ const Es = ["onClick"], ct = /* @__PURE__ */ G({
|
|
|
4631
4620
|
], 2), [
|
|
4632
4621
|
[ue, g(fl)(s)]
|
|
4633
4622
|
])
|
|
4634
|
-
], 10,
|
|
4623
|
+
], 10, Vs))), 128))
|
|
4635
4624
|
], 4);
|
|
4636
4625
|
};
|
|
4637
4626
|
}
|
|
@@ -4694,7 +4683,7 @@ const Es = ["onClick"], ct = /* @__PURE__ */ G({
|
|
|
4694
4683
|
]), 1032, ["data", "time-zone", "column", "is-small-grid", "class"]))), 128))
|
|
4695
4684
|
], 4));
|
|
4696
4685
|
}
|
|
4697
|
-
}),
|
|
4686
|
+
}), Ms = { class: "cl-w-full" }, pt = /* @__PURE__ */ G({
|
|
4698
4687
|
__name: "cl-ui-grid-lite-body",
|
|
4699
4688
|
props: {
|
|
4700
4689
|
columns: {},
|
|
@@ -4709,7 +4698,7 @@ const Es = ["onClick"], ct = /* @__PURE__ */ G({
|
|
|
4709
4698
|
const o = t, { t: l } = ce(), e = w(() => o.options.smallGridText ?? !1), r = w(() => o.options.alternatingRows ?? !1);
|
|
4710
4699
|
return (a, d) => {
|
|
4711
4700
|
var u;
|
|
4712
|
-
return p(), b("div",
|
|
4701
|
+
return p(), b("div", Ms, [
|
|
4713
4702
|
a.loading && a.pageSize > 0 ? (p(), P(ut, {
|
|
4714
4703
|
key: 0,
|
|
4715
4704
|
"grid-lite-column-css": a.gridLiteColumnCss,
|
|
@@ -4751,16 +4740,16 @@ const Es = ["onClick"], ct = /* @__PURE__ */ G({
|
|
|
4751
4740
|
]);
|
|
4752
4741
|
};
|
|
4753
4742
|
}
|
|
4754
|
-
}),
|
|
4743
|
+
}), Ns = {
|
|
4755
4744
|
key: 3,
|
|
4756
4745
|
class: "cl-inline-block cl-whitespace-nowrap"
|
|
4757
|
-
},
|
|
4746
|
+
}, Rs = {
|
|
4758
4747
|
key: 4,
|
|
4759
4748
|
class: "cl-inline-block cl-whitespace-nowrap"
|
|
4760
|
-
},
|
|
4749
|
+
}, Is = {
|
|
4761
4750
|
key: 5,
|
|
4762
4751
|
class: "cl-inline-block cl-whitespace-nowrap"
|
|
4763
|
-
},
|
|
4752
|
+
}, Us = ["innerHTML"], ft = /* @__PURE__ */ G({
|
|
4764
4753
|
__name: "cl-ui-grid-lite-cell",
|
|
4765
4754
|
props: {
|
|
4766
4755
|
data: {},
|
|
@@ -4835,28 +4824,28 @@ const Es = ["onClick"], ct = /* @__PURE__ */ G({
|
|
|
4835
4824
|
], 64)) : (p(), b(Y, { key: 2 }, [
|
|
4836
4825
|
ie(D(a(n.data[n.column.field], g(se).DATETIME)), 1)
|
|
4837
4826
|
], 64))
|
|
4838
|
-
], 64)) : n.column.type === "list" && n.column.field !== void 0 && n.column.listEntries !== void 0 ? (p(), b("span",
|
|
4827
|
+
], 64)) : n.column.type === "list" && n.column.field !== void 0 && n.column.listEntries !== void 0 ? (p(), b("span", Ns, D(g(e)(((c = n.column.listEntries.find((i) => i.value === n.data[n.column.field])) == null ? void 0 : c.translationKey) ?? "")), 1)) : n.column.type === "number" && n.column.field !== void 0 ? (p(), b("span", Rs, D(u(n.data[n.column.field], g(r))), 1)) : n.column.field !== void 0 ? (p(), b("span", Is, [
|
|
4839
4828
|
f("span", {
|
|
4840
4829
|
innerHTML: d()
|
|
4841
|
-
}, null, 8,
|
|
4830
|
+
}, null, 8, Us)
|
|
4842
4831
|
])) : j("", !0)
|
|
4843
4832
|
], 2);
|
|
4844
4833
|
};
|
|
4845
4834
|
}
|
|
4846
|
-
}),
|
|
4835
|
+
}), zs = {}, Ls = { class: "cl-border cl-border-off-white cl-border-t cl-flex cl-justify-between cl-p-2" }, Bs = /* @__PURE__ */ f("div", { class: "cl-flex cl-gap-2 cl-w-full" }, [
|
|
4847
4836
|
/* @__PURE__ */ f("p", { class: "cl-animate-pulse cl-basis-3/12 cl-bg-grey-1 cl-leading-none cl-rounded-full" }, " "),
|
|
4848
4837
|
/* @__PURE__ */ f("p", { class: "cl-animate-pulse cl-basis-1/12 cl-bg-grey-1 cl-leading-none cl-rounded-full" }, " ")
|
|
4849
|
-
], -1),
|
|
4850
|
-
|
|
4851
|
-
|
|
4838
|
+
], -1), Fs = /* @__PURE__ */ f("p", { class: "cl-animate-pulse cl-basis-1/12 cl-bg-grey-1 cl-leading-none cl-rounded-full" }, " ", -1), js = [
|
|
4839
|
+
Bs,
|
|
4840
|
+
Fs
|
|
4852
4841
|
];
|
|
4853
|
-
function
|
|
4854
|
-
return p(), b("div",
|
|
4842
|
+
function Ps(t, o) {
|
|
4843
|
+
return p(), b("div", Ls, js);
|
|
4855
4844
|
}
|
|
4856
|
-
const mt = /* @__PURE__ */ we(
|
|
4845
|
+
const mt = /* @__PURE__ */ we(zs, [["render", Ps]]), Gs = { class: "cl-flex cl-gap-4" }, Hs = { class: "cl-mr-2" }, Zs = {
|
|
4857
4846
|
key: 0,
|
|
4858
4847
|
class: "cl-flex cl-gap-0.5"
|
|
4859
|
-
},
|
|
4848
|
+
}, Ws = { class: "cl-mr-1 cl-w-full" }, Ks = ["onClick"], Qs = { class: "cl-flex cl-gap-1 cl-items-center" }, Ys = ["onClick"], gt = /* @__PURE__ */ G({
|
|
4860
4849
|
__name: "cl-ui-grid-lite-footer",
|
|
4861
4850
|
props: /* @__PURE__ */ fe({
|
|
4862
4851
|
loading: { type: Boolean },
|
|
@@ -4906,13 +4895,13 @@ const mt = /* @__PURE__ */ we(Us, [["render", js]]), Ps = { class: "cl-flex cl-g
|
|
|
4906
4895
|
c.isSmallGrid ? "cl-px-1 cl-py-1.5 cl-text-xs" : "cl-p-2 cl-text-sm"
|
|
4907
4896
|
]])
|
|
4908
4897
|
}, [
|
|
4909
|
-
f("div",
|
|
4898
|
+
f("div", Gs, [
|
|
4910
4899
|
f("div", null, [
|
|
4911
|
-
f("span",
|
|
4900
|
+
f("span", Hs, D(g(e)("grid.page")), 1),
|
|
4912
4901
|
f("span", null, D(g(ke)(l.value.pageNumber)) + " / " + D(g(ke)(r.value)), 1)
|
|
4913
4902
|
]),
|
|
4914
|
-
n.value.length ? (p(), b("ul",
|
|
4915
|
-
f("li",
|
|
4903
|
+
n.value.length ? (p(), b("ul", Zs, [
|
|
4904
|
+
f("li", Ws, D(g(e)("grid.pageSize")), 1),
|
|
4916
4905
|
(p(!0), b(Y, null, ne(n.value, (k, v) => (p(), b("li", {
|
|
4917
4906
|
key: v,
|
|
4918
4907
|
class: O(["cl-border-b cl-px-1", {
|
|
@@ -4920,11 +4909,11 @@ const mt = /* @__PURE__ */ we(Us, [["render", js]]), Ps = { class: "cl-flex cl-g
|
|
|
4920
4909
|
"cl-border-b-transparent hover:cl-border-b-link-lighter hover:cl-text-link-light cl-cursor-pointer": l.value.pageSize !== k
|
|
4921
4910
|
}]),
|
|
4922
4911
|
onClick: ($) => l.value.pageSize !== k ? s(k) : null
|
|
4923
|
-
}, D(g(ke)(k)), 11,
|
|
4912
|
+
}, D(g(ke)(k)), 11, Ks))), 128))
|
|
4924
4913
|
])) : j("", !0)
|
|
4925
4914
|
]),
|
|
4926
4915
|
f("div", null, [
|
|
4927
|
-
f("ul",
|
|
4916
|
+
f("ul", Qs, [
|
|
4928
4917
|
f("li", {
|
|
4929
4918
|
class: O({
|
|
4930
4919
|
"cl-text-grey-2 cl-pointer-events-none": l.value.pageNumber === 1,
|
|
@@ -4956,7 +4945,7 @@ const mt = /* @__PURE__ */ we(Us, [["render", js]]), Ps = { class: "cl-flex cl-g
|
|
|
4956
4945
|
"cl-cursor-pointer ": l.value.pageNumber !== k
|
|
4957
4946
|
}]),
|
|
4958
4947
|
onClick: ($) => l.value.pageNumber !== k ? d(k) : null
|
|
4959
|
-
}, D(g(ke)(k)), 11,
|
|
4948
|
+
}, D(g(ke)(k)), 11, Ys))), 128)),
|
|
4960
4949
|
f("li", {
|
|
4961
4950
|
class: O({
|
|
4962
4951
|
"cl-text-grey-2 cl-pointer-events-none": l.value.pageNumber >= r.value,
|
|
@@ -4986,7 +4975,7 @@ const mt = /* @__PURE__ */ we(Us, [["render", js]]), Ps = { class: "cl-flex cl-g
|
|
|
4986
4975
|
], 2)) : j("", !0);
|
|
4987
4976
|
};
|
|
4988
4977
|
}
|
|
4989
|
-
}),
|
|
4978
|
+
}), Js = { 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" }, xs = /* @__PURE__ */ G({
|
|
4990
4979
|
__name: "cl-ui-header",
|
|
4991
4980
|
props: {
|
|
4992
4981
|
isOpen: { type: Boolean }
|
|
@@ -4996,7 +4985,7 @@ const mt = /* @__PURE__ */ we(Us, [["render", js]]), Ps = { class: "cl-flex cl-g
|
|
|
4996
4985
|
const l = t, e = o, r = M();
|
|
4997
4986
|
return nl(r, () => {
|
|
4998
4987
|
(l.isOpen ?? !1) && e("open-click");
|
|
4999
|
-
}), (a, d) => (p(), b("header",
|
|
4988
|
+
}), (a, d) => (p(), b("header", Js, [
|
|
5000
4989
|
I(a.$slots, "logo"),
|
|
5001
4990
|
f("div", {
|
|
5002
4991
|
ref_key: "headerMenuElement",
|
|
@@ -5009,15 +4998,15 @@ const mt = /* @__PURE__ */ we(Us, [["render", js]]), Ps = { class: "cl-flex cl-g
|
|
|
5009
4998
|
], 512)
|
|
5010
4999
|
]));
|
|
5011
5000
|
}
|
|
5012
|
-
}), Xs = { 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]" },
|
|
5001
|
+
}), Xs = { 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]" }, _s = ["src"], er = {
|
|
5013
5002
|
key: 0,
|
|
5014
5003
|
id: "cl-ui-header-menu-username",
|
|
5015
5004
|
class: "cl-text-ellipsis cl-whitespace-nowrap"
|
|
5016
|
-
},
|
|
5005
|
+
}, lr = {
|
|
5017
5006
|
key: 1,
|
|
5018
5007
|
id: "cl-ui-header-menu-group",
|
|
5019
5008
|
class: "cl-text-ellipsis cl-text-xs cl-whitespace-nowrap"
|
|
5020
|
-
},
|
|
5009
|
+
}, tr = { 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" }, or = { class: "cl-absolute cl-bg-white cl-right-0 cl-shadow-2xl cl-top-20 cl-w-full cl-z-20" }, ar = /* @__PURE__ */ G({
|
|
5021
5010
|
__name: "cl-ui-header-menu",
|
|
5022
5011
|
props: {
|
|
5023
5012
|
username: { default: "" },
|
|
@@ -5038,7 +5027,7 @@ const mt = /* @__PURE__ */ we(Us, [["render", js]]), Ps = { class: "cl-flex cl-g
|
|
|
5038
5027
|
key: 0,
|
|
5039
5028
|
src: o.image,
|
|
5040
5029
|
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"
|
|
5041
|
-
}, null, 8,
|
|
5030
|
+
}, null, 8, _s)) : (p(), P(g(J), {
|
|
5042
5031
|
key: 1,
|
|
5043
5032
|
class: "cl-hidden cl-m-4 cl-text-white md:cl-block",
|
|
5044
5033
|
icon: "ph:user-circle",
|
|
@@ -5051,10 +5040,10 @@ const mt = /* @__PURE__ */ we(Us, [["render", js]]), Ps = { class: "cl-flex cl-g
|
|
|
5051
5040
|
"cl-text-white": o.colour === "secondary"
|
|
5052
5041
|
}])
|
|
5053
5042
|
}, [
|
|
5054
|
-
o.username ? (p(), b("div",
|
|
5055
|
-
o.group ? (p(), b("div",
|
|
5043
|
+
o.username ? (p(), b("div", er, D(o.username), 1)) : j("", !0),
|
|
5044
|
+
o.group ? (p(), b("div", lr, D(o.group), 1)) : j("", !0)
|
|
5056
5045
|
], 2),
|
|
5057
|
-
f("div",
|
|
5046
|
+
f("div", tr, [
|
|
5058
5047
|
T(g(J), {
|
|
5059
5048
|
class: O(["cl-transform-gpu cl-transition-transform", {
|
|
5060
5049
|
"cl-rotate-180": o.isOpen,
|
|
@@ -5067,7 +5056,7 @@ const mt = /* @__PURE__ */ we(Us, [["render", js]]), Ps = { class: "cl-flex cl-g
|
|
|
5067
5056
|
]),
|
|
5068
5057
|
T(Ee, { name: "fade" }, {
|
|
5069
5058
|
default: A(() => [
|
|
5070
|
-
oe(f("div",
|
|
5059
|
+
oe(f("div", or, [
|
|
5071
5060
|
I(o.$slots, "default")
|
|
5072
5061
|
], 512), [
|
|
5073
5062
|
[ue, o.isOpen]
|
|
@@ -5077,10 +5066,10 @@ const mt = /* @__PURE__ */ we(Us, [["render", js]]), Ps = { class: "cl-flex cl-g
|
|
|
5077
5066
|
})
|
|
5078
5067
|
], 2));
|
|
5079
5068
|
}
|
|
5080
|
-
}),
|
|
5069
|
+
}), nr = [
|
|
5081
5070
|
"default",
|
|
5082
5071
|
"secondary"
|
|
5083
|
-
],
|
|
5072
|
+
], sr = /* @__PURE__ */ G({
|
|
5084
5073
|
inheritAttrs: !1,
|
|
5085
5074
|
__name: "cl-ui-calendar",
|
|
5086
5075
|
props: {
|
|
@@ -5127,9 +5116,9 @@ const mt = /* @__PURE__ */ we(Us, [["render", js]]), Ps = { class: "cl-flex cl-g
|
|
|
5127
5116
|
}
|
|
5128
5117
|
r("update:date", B);
|
|
5129
5118
|
}
|
|
5130
|
-
}), { locale: u } = ce(), n = w(() => e.dateFormatLocale ?? u.value), s = w(() => Tl(e.disabled, "auto")), c = w(() =>
|
|
5119
|
+
}), { locale: u } = ce(), n = w(() => e.dateFormatLocale ?? u.value), s = w(() => Tl(e.disabled, "auto")), c = w(() => xl(n.value, e.type)), i = M(null), m = w(() => Sl(e.date, e.initialDate, a.value, e.type)), q = M(null), k = M();
|
|
5131
5120
|
function v(S) {
|
|
5132
|
-
const B =
|
|
5121
|
+
const B = Xl(S, a.value);
|
|
5133
5122
|
d.value = B, q.value = S, k.value.move(B.start), k.value.hidePopover();
|
|
5134
5123
|
}
|
|
5135
5124
|
const $ = w(() => _l(d.value, a.value, n.value)), C = Zl("(min-width: 768px)"), L = w(() => C.value ? 2 : 1);
|
|
@@ -5253,7 +5242,7 @@ const mt = /* @__PURE__ */ we(Us, [["render", js]]), Ps = { class: "cl-flex cl-g
|
|
|
5253
5242
|
}), Pe = [
|
|
5254
5243
|
...nt,
|
|
5255
5244
|
"dateRange"
|
|
5256
|
-
],
|
|
5245
|
+
], rr = ["disabled", "step", "placeholder", "name"], ir = /* @__PURE__ */ G({
|
|
5257
5246
|
__name: "cl-ui-currency-input",
|
|
5258
5247
|
props: {
|
|
5259
5248
|
modelValue: { type: [String, Object, Number, Boolean, null] },
|
|
@@ -5323,12 +5312,12 @@ const mt = /* @__PURE__ */ we(Us, [["render", js]]), Ps = { class: "cl-flex cl-g
|
|
|
5323
5312
|
onChange: k,
|
|
5324
5313
|
onBlur: m,
|
|
5325
5314
|
onFocus: $[0] || ($[0] = (C) => r("focus"))
|
|
5326
|
-
}, null, 42,
|
|
5315
|
+
}, null, 42, rr));
|
|
5327
5316
|
}
|
|
5328
|
-
}),
|
|
5317
|
+
}), cr = (t) => (Pl("data-v-5cb4ccea"), t = t(), Gl(), t), ur = { class: "cl-flex cl-items-start" }, dr = { class: "cl-w-full" }, pr = /* @__PURE__ */ cr(() => /* @__PURE__ */ f("span", null, null, -1)), fr = ["min", "max", "step", "disabled"], mr = { class: "cl-bg-transparent cl-text-center cl-text-sm cl-w-full" }, gr = { class: "cl-bg-transparent cl-text-sm" }, vr = {
|
|
5329
5318
|
key: 1,
|
|
5330
5319
|
class: "cl-emphasis-danger cl-text-sm cl-w-full"
|
|
5331
|
-
},
|
|
5320
|
+
}, br = /* @__PURE__ */ G({
|
|
5332
5321
|
inheritAttrs: !1,
|
|
5333
5322
|
__name: "cl-ui-slider",
|
|
5334
5323
|
props: /* @__PURE__ */ fe({
|
|
@@ -5356,7 +5345,7 @@ const mt = /* @__PURE__ */ we(Us, [["render", js]]), Ps = { class: "cl-flex cl-g
|
|
|
5356
5345
|
(s = a.value) == null || s.focus();
|
|
5357
5346
|
}
|
|
5358
5347
|
}), (s, c) => u.value ? (p(), b("div", pe(le({ key: 0 }, s.$attrs)), [
|
|
5359
|
-
f("div",
|
|
5348
|
+
f("div", ur, [
|
|
5360
5349
|
f("span", {
|
|
5361
5350
|
class: O(["cl-border cl-border-transparent cl-leading-6 cl-mr-1 cl-px-2 cl-rounded-full cl-select-none cl-shadow cl-text-center cl-text-xs", {
|
|
5362
5351
|
"cl-bg-white cl-cursor-pointer hover:cl-border-grey-1": !s.disabled,
|
|
@@ -5364,7 +5353,7 @@ const mt = /* @__PURE__ */ we(Us, [["render", js]]), Ps = { class: "cl-flex cl-g
|
|
|
5364
5353
|
}]),
|
|
5365
5354
|
onClick: c[0] || (c[0] = (i) => e.value = s.disabled ? e.value : s.min)
|
|
5366
5355
|
}, D(Number.isInteger(s.min) ? g(ke)(s.min) : g(De)(s.min, g(_).DECIMAL)), 3),
|
|
5367
|
-
f("div",
|
|
5356
|
+
f("div", dr, [
|
|
5368
5357
|
n.value ? (p(), P(Ke, {
|
|
5369
5358
|
key: 0,
|
|
5370
5359
|
ref_key: "sliderRef",
|
|
@@ -5381,7 +5370,7 @@ const mt = /* @__PURE__ */ we(Us, [["render", js]]), Ps = { class: "cl-flex cl-g
|
|
|
5381
5370
|
placeholder: s.placeholder
|
|
5382
5371
|
}, {
|
|
5383
5372
|
default: A(() => [
|
|
5384
|
-
|
|
5373
|
+
pr
|
|
5385
5374
|
]),
|
|
5386
5375
|
_: 1
|
|
5387
5376
|
}, 8, ["modelValue", "format", "precision", "min", "max", "step", "disabled", "placeholder"])) : (p(), b(Y, { key: 1 }, [
|
|
@@ -5395,7 +5384,7 @@ const mt = /* @__PURE__ */ we(Us, [["render", js]]), Ps = { class: "cl-flex cl-g
|
|
|
5395
5384
|
max: s.max,
|
|
5396
5385
|
step: s.step,
|
|
5397
5386
|
disabled: s.disabled
|
|
5398
|
-
}, null, 8,
|
|
5387
|
+
}, null, 8, fr), [
|
|
5399
5388
|
[
|
|
5400
5389
|
wl,
|
|
5401
5390
|
e.value,
|
|
@@ -5403,7 +5392,7 @@ const mt = /* @__PURE__ */ we(Us, [["render", js]]), Ps = { class: "cl-flex cl-g
|
|
|
5403
5392
|
{ number: !0 }
|
|
5404
5393
|
]
|
|
5405
5394
|
]),
|
|
5406
|
-
f("div",
|
|
5395
|
+
f("div", mr, D(Number.isInteger(e.value) ? g(ke)(e.value) : g(De)(e.value, g(_).DECIMAL)), 1)
|
|
5407
5396
|
], 64))
|
|
5408
5397
|
]),
|
|
5409
5398
|
f("span", {
|
|
@@ -5413,7 +5402,7 @@ const mt = /* @__PURE__ */ we(Us, [["render", js]]), Ps = { class: "cl-flex cl-g
|
|
|
5413
5402
|
}]),
|
|
5414
5403
|
onClick: c[3] || (c[3] = (i) => e.value = s.disabled ? e.value : s.max)
|
|
5415
5404
|
}, D(Number.isInteger(s.max) ? g(ke)(s.max) : g(De)(s.max, g(_).DECIMAL)), 3),
|
|
5416
|
-
f("div",
|
|
5405
|
+
f("div", gr, [
|
|
5417
5406
|
f("div", {
|
|
5418
5407
|
class: "cl-bg-white cl-border cl-border-transparent cl-cursor-pointer cl-float-right cl-p-1.5 cl-px-2 cl-rounded-full cl-shadow cl-text-xs hover:cl-border-grey-1",
|
|
5419
5408
|
onClick: c[4] || (c[4] = (i) => n.value = !n.value)
|
|
@@ -5422,9 +5411,9 @@ const mt = /* @__PURE__ */ we(Us, [["render", js]]), Ps = { class: "cl-flex cl-g
|
|
|
5422
5411
|
])
|
|
5423
5412
|
])
|
|
5424
5413
|
])
|
|
5425
|
-
], 16)) : (p(), b("div",
|
|
5414
|
+
], 16)) : (p(), b("div", vr, D(g(r)("slider.invalidProps")), 1));
|
|
5426
5415
|
}
|
|
5427
|
-
}),
|
|
5416
|
+
}), hr = /* @__PURE__ */ we(br, [["__scopeId", "data-v-5cb4ccea"]]);
|
|
5428
5417
|
function Ul(t) {
|
|
5429
5418
|
let o = !1;
|
|
5430
5419
|
switch (t) {
|
|
@@ -5442,7 +5431,7 @@ function Ul(t) {
|
|
|
5442
5431
|
}
|
|
5443
5432
|
return o;
|
|
5444
5433
|
}
|
|
5445
|
-
function
|
|
5434
|
+
function yr(t) {
|
|
5446
5435
|
return t === "number" || t === "range";
|
|
5447
5436
|
}
|
|
5448
5437
|
function zl(t) {
|
|
@@ -5463,7 +5452,7 @@ function zl(t) {
|
|
|
5463
5452
|
function Ge(t) {
|
|
5464
5453
|
return t === "button" || t === "submit" || t === "reset";
|
|
5465
5454
|
}
|
|
5466
|
-
function
|
|
5455
|
+
function wr(t) {
|
|
5467
5456
|
let o;
|
|
5468
5457
|
switch (t) {
|
|
5469
5458
|
case "datetime":
|
|
@@ -5484,27 +5473,27 @@ function yr(t) {
|
|
|
5484
5473
|
}
|
|
5485
5474
|
function Ll(t, o) {
|
|
5486
5475
|
const l = t.target;
|
|
5487
|
-
return
|
|
5476
|
+
return yr(o) ? l.valueAsNumber : Ge(o) ? l.checked : l.value;
|
|
5488
5477
|
}
|
|
5489
|
-
const
|
|
5478
|
+
const kr = { class: "cl-flex cl-justify-between" }, $r = { class: "cl-w-full" }, Cr = {
|
|
5490
5479
|
key: 0,
|
|
5491
5480
|
class: "cl-block cl-left-auto cl-relative cl-text-danger-default"
|
|
5492
|
-
},
|
|
5481
|
+
}, Tr = {
|
|
5493
5482
|
key: 1,
|
|
5494
5483
|
class: "cl-bg-danger-light cl-block cl-max-h-6 cl-mb-1 cl-ml-2 cl-px-2 cl-rounded-md cl-text-center cl-text-danger-default cl-text-xs"
|
|
5495
|
-
},
|
|
5484
|
+
}, Sr = {
|
|
5496
5485
|
key: 0,
|
|
5497
5486
|
class: "cl-relative"
|
|
5498
|
-
},
|
|
5487
|
+
}, qr = ["type", "disabled", "min", "max", "minlength", "maxlength", "step", "placeholder", "name", "autocomplete"], Or = { key: 0 }, Dr = { key: 1 }, Ar = {
|
|
5499
5488
|
key: 3,
|
|
5500
5489
|
class: "cl-max-h-[2.75rem] cl-pb-0.5"
|
|
5501
|
-
},
|
|
5490
|
+
}, Er = {
|
|
5502
5491
|
key: 0,
|
|
5503
5492
|
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"
|
|
5504
|
-
},
|
|
5493
|
+
}, Vr = {
|
|
5505
5494
|
key: 1,
|
|
5506
5495
|
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"
|
|
5507
|
-
},
|
|
5496
|
+
}, Mr = /* @__PURE__ */ G({
|
|
5508
5497
|
inheritAttrs: !1,
|
|
5509
5498
|
__name: "cl-ui-input",
|
|
5510
5499
|
props: {
|
|
@@ -5583,12 +5572,12 @@ const wr = { class: "cl-flex cl-justify-between" }, kr = { class: "cl-w-full" },
|
|
|
5583
5572
|
de(e.customValidationFunction(e.label, h));
|
|
5584
5573
|
})
|
|
5585
5574
|
];
|
|
5586
|
-
return (typeof h == "string" || typeof h == "number") && (Q.push(
|
|
5575
|
+
return (typeof h == "string" || typeof h == "number") && (Q.push(ua(e.min, e.inputType, e.label, h, e.timeZone)), Q.push(da(e.max, e.inputType, e.label, h, e.timeZone))), e.isRequired && Q.push(pa(e.label, h)), e.inputType === "email" && typeof h == "string" && Q.push(fa(e.label, h)), Promise.all(Q).then((de) => {
|
|
5587
5576
|
const Ae = [...de.map((Qe) => Qe.message)], Se = de.some((Qe) => Qe.message.length > 0 && Qe.valid === !1) || e.externalErrors.length > 0;
|
|
5588
5577
|
B.value = !0, Se ? (ee.value = Ae, r("validated", !1, h)) : (ee.value = [], r("validated", !0, h)), S.value = !Se;
|
|
5589
5578
|
});
|
|
5590
5579
|
}
|
|
5591
|
-
function
|
|
5580
|
+
function x() {
|
|
5592
5581
|
let h = "";
|
|
5593
5582
|
return e.inputType === "color" && m.value && (e.disabled ? h = "background: #999999" : h = `background: ${m.value};`), h;
|
|
5594
5583
|
}
|
|
@@ -5631,7 +5620,7 @@ const wr = { class: "cl-flex cl-justify-between" }, kr = { class: "cl-w-full" },
|
|
|
5631
5620
|
e.validateOn === "change" && await F(Q), r("change", h, Q);
|
|
5632
5621
|
}
|
|
5633
5622
|
}
|
|
5634
|
-
async function
|
|
5623
|
+
async function X() {
|
|
5635
5624
|
await y(), H();
|
|
5636
5625
|
}
|
|
5637
5626
|
return We(() => {
|
|
@@ -5660,15 +5649,15 @@ const wr = { class: "cl-flex cl-justify-between" }, kr = { class: "cl-w-full" },
|
|
|
5660
5649
|
onMouseenter: R[13] || (R[13] = (Q) => N(!0)),
|
|
5661
5650
|
onMouseleave: R[14] || (R[14] = (Q) => N(!1))
|
|
5662
5651
|
}, [
|
|
5663
|
-
f("div",
|
|
5664
|
-
f("div",
|
|
5652
|
+
f("div", kr, [
|
|
5653
|
+
f("div", $r, [
|
|
5665
5654
|
oe(f("label", { class: "cl-block cl-mb-1 cl-text-grey-4 cl-text-xs cl-tracking-widest" }, D(h.label), 513), [
|
|
5666
5655
|
[ue, h.showLabel && h.label !== ""]
|
|
5667
5656
|
])
|
|
5668
5657
|
]),
|
|
5669
|
-
s.value ? (p(), b("label",
|
|
5658
|
+
s.value ? (p(), b("label", Cr, " * ")) : h.isRequired && h.requiredText.length ? (p(), b("label", Tr, D(h.requiredText), 1)) : j("", !0)
|
|
5670
5659
|
]),
|
|
5671
|
-
h.inputType !== "range" && h.inputType !== "currency" && !g(zl)(h.inputType) ? (p(), b("div",
|
|
5660
|
+
h.inputType !== "range" && h.inputType !== "currency" && !g(zl)(h.inputType) ? (p(), b("div", Sr, [
|
|
5672
5661
|
oe(f("input", le({
|
|
5673
5662
|
ref_key: "inputElement",
|
|
5674
5663
|
ref: a,
|
|
@@ -5684,7 +5673,7 @@ const wr = { class: "cl-flex cl-justify-between" }, kr = { class: "cl-w-full" },
|
|
|
5684
5673
|
"cl-p-3 cl-rounded-lg": !g(Ge)(h.inputType),
|
|
5685
5674
|
[`${h.inputSpecificClasses}`]: h.inputSpecificClasses !== ""
|
|
5686
5675
|
}],
|
|
5687
|
-
style:
|
|
5676
|
+
style: x(),
|
|
5688
5677
|
type: h.inputType,
|
|
5689
5678
|
disabled: h.disabled,
|
|
5690
5679
|
min: h.min ?? void 0,
|
|
@@ -5697,13 +5686,13 @@ const wr = { class: "cl-flex cl-justify-between" }, kr = { class: "cl-w-full" },
|
|
|
5697
5686
|
autocomplete: h.autocomplete,
|
|
5698
5687
|
onClick: R[1] || (R[1] = (Q) => ye(Q)),
|
|
5699
5688
|
onFocus: R[2] || (R[2] = (Q) => r("focus")),
|
|
5700
|
-
onBlur: re(
|
|
5689
|
+
onBlur: re(X, ["self"]),
|
|
5701
5690
|
onMousewheelPassive: U,
|
|
5702
5691
|
onInput: R[3] || (R[3] = (Q) => {
|
|
5703
5692
|
r("input", Q, g(Ll)(Q, h.inputType));
|
|
5704
5693
|
}),
|
|
5705
5694
|
onChange: Z
|
|
5706
|
-
}), null, 16,
|
|
5695
|
+
}), null, 16, qr), [
|
|
5707
5696
|
[Bl, m.value]
|
|
5708
5697
|
]),
|
|
5709
5698
|
T(Ee, {
|
|
@@ -5711,7 +5700,7 @@ const wr = { class: "cl-flex cl-justify-between" }, kr = { class: "cl-w-full" },
|
|
|
5711
5700
|
duration: 300
|
|
5712
5701
|
}, {
|
|
5713
5702
|
default: A(() => [
|
|
5714
|
-
h.inputType === "number" && !h.disabled && h.showArrows ? oe((p(), b("div",
|
|
5703
|
+
h.inputType === "number" && !h.disabled && h.showArrows ? oe((p(), b("div", Or, [
|
|
5715
5704
|
T(g(J), {
|
|
5716
5705
|
icon: "ph:caret-up-bold",
|
|
5717
5706
|
class: "cl-absolute cl-bg-link-default cl-right-1 cl-rounded-full cl-text-sm cl-text-white cl-top-1 hover:cl-bg-link-light hover:cl-cursor-pointer",
|
|
@@ -5732,8 +5721,8 @@ const wr = { class: "cl-flex cl-justify-between" }, kr = { class: "cl-w-full" },
|
|
|
5732
5721
|
]),
|
|
5733
5722
|
_: 1
|
|
5734
5723
|
})
|
|
5735
|
-
])) : h.inputType === "currency" ? (p(), b("div",
|
|
5736
|
-
T(
|
|
5724
|
+
])) : h.inputType === "currency" ? (p(), b("div", Dr, [
|
|
5725
|
+
T(ir, le({
|
|
5737
5726
|
ref_key: "currencyInputRef",
|
|
5738
5727
|
ref: d,
|
|
5739
5728
|
modelValue: m.value,
|
|
@@ -5752,7 +5741,7 @@ const wr = { class: "cl-flex cl-justify-between" }, kr = { class: "cl-w-full" },
|
|
|
5752
5741
|
onFocus: R[8] || (R[8] = (Q) => r("focus")),
|
|
5753
5742
|
onBlur: y
|
|
5754
5743
|
}), null, 16, ["modelValue", "disabled", "placeholder", "is-valid", "highlight-when-valid", "input-specific-classes", "group", "step", "currency-options"])
|
|
5755
|
-
])) : g(zl)(h.inputType) ? (p(), P(g(
|
|
5744
|
+
])) : g(zl)(h.inputType) ? (p(), P(g(sr), le({ key: 2 }, h.$attrs, {
|
|
5756
5745
|
ref_key: "inputElement",
|
|
5757
5746
|
ref: a,
|
|
5758
5747
|
date: q.value,
|
|
@@ -5764,7 +5753,7 @@ const wr = { class: "cl-flex cl-justify-between" }, kr = { class: "cl-w-full" },
|
|
|
5764
5753
|
}],
|
|
5765
5754
|
disabled: h.disabled,
|
|
5766
5755
|
required: h.isRequired,
|
|
5767
|
-
type: g(
|
|
5756
|
+
type: g(wr)(h.inputType),
|
|
5768
5757
|
"time-zone": h.timeZone,
|
|
5769
5758
|
min: k.value,
|
|
5770
5759
|
max: v.value,
|
|
@@ -5774,8 +5763,8 @@ const wr = { class: "cl-flex cl-justify-between" }, kr = { class: "cl-w-full" },
|
|
|
5774
5763
|
"date-format-locale": h.dateFormatLocale,
|
|
5775
5764
|
onBlur: re(y, ["self"]),
|
|
5776
5765
|
onFocus: R[10] || (R[10] = (Q) => r("focus"))
|
|
5777
|
-
}), null, 16, ["date", "class", "disabled", "required", "type", "time-zone", "min", "max", "placeholder", "initial-date", "quick-date-scope", "date-format-locale"])) : h.inputType === "range" && typeof m.value == "number" ? (p(), b("div",
|
|
5778
|
-
T(g(
|
|
5766
|
+
}), null, 16, ["date", "class", "disabled", "required", "type", "time-zone", "min", "max", "placeholder", "initial-date", "quick-date-scope", "date-format-locale"])) : h.inputType === "range" && typeof m.value == "number" ? (p(), b("div", Ar, [
|
|
5767
|
+
T(g(hr), {
|
|
5779
5768
|
ref_key: "inputElement",
|
|
5780
5769
|
ref: a,
|
|
5781
5770
|
value: m.value,
|
|
@@ -5791,11 +5780,11 @@ const wr = { class: "cl-flex cl-justify-between" }, kr = { class: "cl-w-full" },
|
|
|
5791
5780
|
}, null, 8, ["value", "min", "max", "step", "placeholder", "disabled"])
|
|
5792
5781
|
])) : j("", !0)
|
|
5793
5782
|
], 32),
|
|
5794
|
-
S.value && L.value && B.value ? (p(), b("div",
|
|
5795
|
-
!S.value && E.value.length > 0 && h.showValidationMessages && B.value ? (p(), b("div",
|
|
5783
|
+
S.value && L.value && B.value ? (p(), b("div", Er, D(L.value), 1)) : j("", !0),
|
|
5784
|
+
!S.value && E.value.length > 0 && h.showValidationMessages && B.value ? (p(), b("div", Vr, D(E.value), 1)) : j("", !0)
|
|
5796
5785
|
], 16));
|
|
5797
5786
|
}
|
|
5798
|
-
}),
|
|
5787
|
+
}), Nr = /* @__PURE__ */ we(Mr, [["__scopeId", "data-v-2373f106"]]), Rr = [
|
|
5799
5788
|
"button",
|
|
5800
5789
|
"checkbox",
|
|
5801
5790
|
"color",
|
|
@@ -5817,24 +5806,24 @@ const wr = { class: "cl-flex cl-justify-between" }, kr = { class: "cl-w-full" },
|
|
|
5817
5806
|
function bl(t) {
|
|
5818
5807
|
return /[a-z]{2}-[A-Z]{2}/gm.test(t.localeCode);
|
|
5819
5808
|
}
|
|
5820
|
-
function
|
|
5809
|
+
function Ir(t) {
|
|
5821
5810
|
let o = Array.isArray(t);
|
|
5822
5811
|
if (o) {
|
|
5823
5812
|
for (const l of t)
|
|
5824
|
-
if (!
|
|
5813
|
+
if (!Ur(l)) {
|
|
5825
5814
|
o = !1;
|
|
5826
5815
|
break;
|
|
5827
5816
|
}
|
|
5828
5817
|
}
|
|
5829
5818
|
return o;
|
|
5830
5819
|
}
|
|
5831
|
-
function
|
|
5820
|
+
function Ur(t) {
|
|
5832
5821
|
return typeof t.name == "string" && typeof t.nativeName == "string" && typeof t.localeCode == "string";
|
|
5833
5822
|
}
|
|
5834
|
-
const
|
|
5823
|
+
const zr = {
|
|
5835
5824
|
key: 0,
|
|
5836
5825
|
class: "cl-flex cl-relative cl-select-none cl-w-auto cl-z-30"
|
|
5837
|
-
},
|
|
5826
|
+
}, Lr = { class: "cl-absolute cl-bg-white cl-border cl-border-grey-0 cl-overflow-hidden cl-right-0 cl-rounded cl-shadow-xl cl-text-black cl-top-6 cl-z-30" }, Br = ["data-localename", "data-localecode", "onClick"], Fr = { class: "cl-text-xs" }, jr = /* @__PURE__ */ G({
|
|
5838
5827
|
__name: "cl-ui-language-switcher",
|
|
5839
5828
|
props: {
|
|
5840
5829
|
supportedLanguages: {},
|
|
@@ -5853,7 +5842,7 @@ const Ur = {
|
|
|
5853
5842
|
}
|
|
5854
5843
|
return te(() => l.disabled, (c) => {
|
|
5855
5844
|
c && (a.value = !1);
|
|
5856
|
-
}), (c, i) => d.value !== null && g(bl)(d.value) ? (p(), b("div",
|
|
5845
|
+
}), (c, i) => d.value !== null && g(bl)(d.value) ? (p(), b("div", zr, [
|
|
5857
5846
|
f("div", {
|
|
5858
5847
|
class: O(["cl-flex cl-items-center", {
|
|
5859
5848
|
"cl-cursor-pointer": !c.disabled
|
|
@@ -5868,7 +5857,7 @@ const Ur = {
|
|
|
5868
5857
|
], 2),
|
|
5869
5858
|
T(Ee, { name: "fade" }, {
|
|
5870
5859
|
default: A(() => [
|
|
5871
|
-
oe(f("div",
|
|
5860
|
+
oe(f("div", Lr, [
|
|
5872
5861
|
(p(!0), b(Y, null, ne(u.value, (m, q) => (p(), b("div", {
|
|
5873
5862
|
key: q,
|
|
5874
5863
|
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",
|
|
@@ -5878,8 +5867,8 @@ const Ur = {
|
|
|
5878
5867
|
r.value = m.localeCode, s(), e("language-select", m.localeCode);
|
|
5879
5868
|
}
|
|
5880
5869
|
}, [
|
|
5881
|
-
f("span",
|
|
5882
|
-
], 8,
|
|
5870
|
+
f("span", Fr, D(m.nativeName), 1)
|
|
5871
|
+
], 8, Br))), 128))
|
|
5883
5872
|
], 512), [
|
|
5884
5873
|
[ue, a.value]
|
|
5885
5874
|
])
|
|
@@ -5888,13 +5877,13 @@ const Ur = {
|
|
|
5888
5877
|
})
|
|
5889
5878
|
])) : j("", !0);
|
|
5890
5879
|
}
|
|
5891
|
-
}),
|
|
5880
|
+
}), Pr = { class: "cl-relative" }, Gr = { class: "cl-h-full cl-z-0 xl:cl-h-screen" }, Hr = { 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" }, Zr = { class: "cl-col-span-10 lg:cl-col-span-3" }, Wr = {
|
|
5892
5881
|
key: 0,
|
|
5893
5882
|
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"
|
|
5894
|
-
},
|
|
5883
|
+
}, Kr = { class: "cl-col-span-3" }, Qr = { class: "cl-relative cl-text-grey-4" }, Yr = { class: "cl-w-full" }, Jr = /* @__PURE__ */ f("span", null, null, -1), xr = {
|
|
5895
5884
|
key: 0,
|
|
5896
5885
|
class: "cl-bg-primary-lighter cl-mt-1 cl-rounded-md cl-text-center cl-text-secondary-default cl-text-xs cl-w-full"
|
|
5897
|
-
}, Xr = { class: "cl-col-span-3" },
|
|
5886
|
+
}, Xr = { class: "cl-col-span-3" }, _r = { class: "cl-relative cl-text-grey-4" }, ei = /* @__PURE__ */ f("span", null, null, -1), li = { class: "cl-col-span-10 cl-emphasis-danger cl-mt-10 cl-p-3 cl-rounded-md cl-text-sm md:cl-mt-3" }, ti = /* @__PURE__ */ G({
|
|
5898
5887
|
__name: "cl-ui-login",
|
|
5899
5888
|
props: {
|
|
5900
5889
|
errors: { default: () => [] },
|
|
@@ -5916,15 +5905,15 @@ const Ur = {
|
|
|
5916
5905
|
return te([
|
|
5917
5906
|
r,
|
|
5918
5907
|
a
|
|
5919
|
-
], c), (i, m) => (p(), b("div",
|
|
5920
|
-
f("div",
|
|
5908
|
+
], c), (i, m) => (p(), b("div", Pr, [
|
|
5909
|
+
f("div", Gr, [
|
|
5921
5910
|
I(i.$slots, "background")
|
|
5922
5911
|
]),
|
|
5923
|
-
f("form",
|
|
5924
|
-
f("div",
|
|
5912
|
+
f("form", Hr, [
|
|
5913
|
+
f("div", Zr, [
|
|
5925
5914
|
I(i.$slots, "logo")
|
|
5926
5915
|
]),
|
|
5927
|
-
i.$slots["language-switcher"] ? (p(), b("div",
|
|
5916
|
+
i.$slots["language-switcher"] ? (p(), b("div", Wr, [
|
|
5928
5917
|
I(i.$slots, "language-switcher")
|
|
5929
5918
|
])) : j("", !0),
|
|
5930
5919
|
f("div", {
|
|
@@ -5933,14 +5922,14 @@ const Ur = {
|
|
|
5933
5922
|
"cl-col-span-6": i.$slots["language-switcher"]
|
|
5934
5923
|
}])
|
|
5935
5924
|
}, [
|
|
5936
|
-
f("div",
|
|
5937
|
-
f("div",
|
|
5925
|
+
f("div", Kr, [
|
|
5926
|
+
f("div", Qr, [
|
|
5938
5927
|
T(g(J), {
|
|
5939
5928
|
class: "cl-absolute cl-left-3 cl-top-3 cl-z-10",
|
|
5940
5929
|
icon: "ph:user",
|
|
5941
5930
|
size: 18
|
|
5942
5931
|
}),
|
|
5943
|
-
f("div",
|
|
5932
|
+
f("div", Yr, [
|
|
5944
5933
|
T(Re, {
|
|
5945
5934
|
id: "cl-ui-login-usernameinput",
|
|
5946
5935
|
modelValue: r.value,
|
|
@@ -5956,16 +5945,16 @@ const Ur = {
|
|
|
5956
5945
|
autocomplete: "username"
|
|
5957
5946
|
}, {
|
|
5958
5947
|
default: A(() => [
|
|
5959
|
-
|
|
5948
|
+
Jr
|
|
5960
5949
|
]),
|
|
5961
5950
|
_: 1
|
|
5962
5951
|
}, 8, ["modelValue", "class", "errors", "placeholder"]),
|
|
5963
|
-
u.value ? (p(), b("div",
|
|
5952
|
+
u.value ? (p(), b("div", xr, D(g(e)("login.validEmail")), 1)) : j("", !0)
|
|
5964
5953
|
])
|
|
5965
5954
|
])
|
|
5966
5955
|
]),
|
|
5967
5956
|
f("div", Xr, [
|
|
5968
|
-
f("div",
|
|
5957
|
+
f("div", _r, [
|
|
5969
5958
|
T(g(J), {
|
|
5970
5959
|
class: "cl-absolute cl-left-3 cl-top-3 cl-z-10",
|
|
5971
5960
|
icon: "ph:lock",
|
|
@@ -5999,7 +5988,7 @@ const Ur = {
|
|
|
5999
5988
|
autocomplete: "current-password"
|
|
6000
5989
|
}, {
|
|
6001
5990
|
default: A(() => [
|
|
6002
|
-
|
|
5991
|
+
ei
|
|
6003
5992
|
]),
|
|
6004
5993
|
_: 1
|
|
6005
5994
|
}, 8, ["modelValue", "class", "type", "placeholder"])
|
|
@@ -6029,7 +6018,7 @@ const Ur = {
|
|
|
6029
6018
|
default: A(() => {
|
|
6030
6019
|
var q;
|
|
6031
6020
|
return [
|
|
6032
|
-
oe(f("span",
|
|
6021
|
+
oe(f("span", li, [
|
|
6033
6022
|
(p(!0), b(Y, null, ne(i.errors, (k, v) => (p(), b("div", {
|
|
6034
6023
|
id: "cl-ui-login-errors",
|
|
6035
6024
|
key: v,
|
|
@@ -6045,19 +6034,19 @@ const Ur = {
|
|
|
6045
6034
|
])
|
|
6046
6035
|
]));
|
|
6047
6036
|
}
|
|
6048
|
-
}),
|
|
6037
|
+
}), oi = [
|
|
6049
6038
|
"x-small",
|
|
6050
6039
|
"small",
|
|
6051
6040
|
"medium",
|
|
6052
6041
|
"large"
|
|
6053
|
-
],
|
|
6042
|
+
], ai = [
|
|
6054
6043
|
"primary",
|
|
6055
6044
|
"secondary",
|
|
6056
6045
|
"white"
|
|
6057
|
-
],
|
|
6046
|
+
], ni = {
|
|
6058
6047
|
key: 0,
|
|
6059
6048
|
class: "cl-h-0 cl-w-0"
|
|
6060
|
-
},
|
|
6049
|
+
}, si = { class: "cl-relative cl-w-full" }, ri = /* @__PURE__ */ G({
|
|
6061
6050
|
__name: "cl-ui-navigation",
|
|
6062
6051
|
props: {
|
|
6063
6052
|
colour: { default: "default" }
|
|
@@ -6119,7 +6108,7 @@ const Ur = {
|
|
|
6119
6108
|
}, [
|
|
6120
6109
|
I($.$slots, "icon", le({ navcolour: $.colour }, { groupIsOpen: d, toggleOpen: u }), void 0, !0)
|
|
6121
6110
|
], 2),
|
|
6122
|
-
c.value ? (p(), b("div",
|
|
6111
|
+
c.value ? (p(), b("div", ni)) : j("", !0),
|
|
6123
6112
|
T(Ee, { name: "slide-right" }, {
|
|
6124
6113
|
default: A(() => [
|
|
6125
6114
|
oe(f("div", {
|
|
@@ -6128,7 +6117,7 @@ const Ur = {
|
|
|
6128
6117
|
"cl-absolute cl-left-20 cl-shadow-lg": !s.value
|
|
6129
6118
|
}])
|
|
6130
6119
|
}, [
|
|
6131
|
-
f("div",
|
|
6120
|
+
f("div", si, [
|
|
6132
6121
|
f("span", {
|
|
6133
6122
|
class: "cl-absolute cl-cursor-pointer cl-hidden cl-right-0 cl-top-1.5 lg:cl-block",
|
|
6134
6123
|
onClick: C[0] || (C[0] = () => m())
|
|
@@ -6151,7 +6140,7 @@ const Ur = {
|
|
|
6151
6140
|
})
|
|
6152
6141
|
], 512));
|
|
6153
6142
|
}
|
|
6154
|
-
}),
|
|
6143
|
+
}), ii = /* @__PURE__ */ we(ri, [["__scopeId", "data-v-db3283cd"]]), ci = /* @__PURE__ */ G({
|
|
6155
6144
|
__name: "cl-ui-navigation-icon",
|
|
6156
6145
|
props: {
|
|
6157
6146
|
iconValue: {},
|
|
@@ -6174,10 +6163,10 @@ const Ur = {
|
|
|
6174
6163
|
}, null, 8, ["icon"])
|
|
6175
6164
|
], 2));
|
|
6176
6165
|
}
|
|
6177
|
-
}),
|
|
6166
|
+
}), ui = {
|
|
6178
6167
|
key: 0,
|
|
6179
6168
|
class: "cl-font-bold cl-leading-8 cl-mb-8 cl-pr-8 cl-select-none cl-text-lg cl-text-secondary-default"
|
|
6180
|
-
},
|
|
6169
|
+
}, di = { class: "cl-flex cl-flex-wrap cl-space-y-8 cl-text-sm cl-w-full" }, pi = /* @__PURE__ */ G({
|
|
6181
6170
|
__name: "cl-ui-navigation-group",
|
|
6182
6171
|
props: {
|
|
6183
6172
|
open: { type: Boolean }
|
|
@@ -6188,35 +6177,35 @@ const Ur = {
|
|
|
6188
6177
|
"cl-hidden": !o.open
|
|
6189
6178
|
})
|
|
6190
6179
|
}, [
|
|
6191
|
-
o.$slots.title ? (p(), b("div",
|
|
6180
|
+
o.$slots.title ? (p(), b("div", ui, [
|
|
6192
6181
|
I(o.$slots, "title")
|
|
6193
6182
|
])) : j("", !0),
|
|
6194
|
-
f("div",
|
|
6183
|
+
f("div", di, [
|
|
6195
6184
|
I(o.$slots, "default")
|
|
6196
6185
|
])
|
|
6197
6186
|
], 2));
|
|
6198
6187
|
}
|
|
6199
|
-
}),
|
|
6188
|
+
}), fi = {}, mi = { class: "cl-w-full" }, gi = {
|
|
6200
6189
|
key: 0,
|
|
6201
6190
|
class: "cl-font-bold cl-mb-4 cl-select-none"
|
|
6202
|
-
},
|
|
6203
|
-
function
|
|
6204
|
-
return p(), b("div",
|
|
6205
|
-
t.$slots.title ? (p(), b("div",
|
|
6191
|
+
}, vi = { class: "cl-flex cl-flex-wrap cl-space-y-2" };
|
|
6192
|
+
function bi(t, o) {
|
|
6193
|
+
return p(), b("div", mi, [
|
|
6194
|
+
t.$slots.title ? (p(), b("div", gi, [
|
|
6206
6195
|
I(t.$slots, "title")
|
|
6207
6196
|
])) : j("", !0),
|
|
6208
|
-
f("span",
|
|
6197
|
+
f("span", vi, [
|
|
6209
6198
|
I(t.$slots, "default")
|
|
6210
6199
|
])
|
|
6211
6200
|
]);
|
|
6212
6201
|
}
|
|
6213
|
-
const
|
|
6214
|
-
function
|
|
6215
|
-
return p(), b("div",
|
|
6202
|
+
const hi = /* @__PURE__ */ we(fi, [["render", bi]]), yi = {}, wi = { class: "cl-cursor-pointer cl-transition-colors cl-w-full hover:cl-text-primary-darker" };
|
|
6203
|
+
function ki(t, o) {
|
|
6204
|
+
return p(), b("div", wi, [
|
|
6216
6205
|
I(t.$slots, "default")
|
|
6217
6206
|
]);
|
|
6218
6207
|
}
|
|
6219
|
-
const
|
|
6208
|
+
const $i = /* @__PURE__ */ we(yi, [["render", ki]]), Ci = { class: "cl-basis-full" }, Ti = /* @__PURE__ */ G({
|
|
6220
6209
|
__name: "cl-ui-tab",
|
|
6221
6210
|
props: {
|
|
6222
6211
|
colour: { default: "default" },
|
|
@@ -6308,14 +6297,14 @@ const ki = /* @__PURE__ */ we(hi, [["render", wi]]), $i = { class: "cl-basis-ful
|
|
|
6308
6297
|
})
|
|
6309
6298
|
])) : j("", !0)
|
|
6310
6299
|
], 2),
|
|
6311
|
-
oe(f("div",
|
|
6300
|
+
oe(f("div", Ci, [
|
|
6312
6301
|
I(C.$slots, "content", pe(me({ isTabOpen: k })))
|
|
6313
6302
|
], 512), [
|
|
6314
6303
|
[ue, d.value]
|
|
6315
6304
|
])
|
|
6316
6305
|
], 2));
|
|
6317
6306
|
}
|
|
6318
|
-
}),
|
|
6307
|
+
}), Si = ["inert"], qi = /* @__PURE__ */ G({
|
|
6319
6308
|
__name: "cl-ui-tab-header",
|
|
6320
6309
|
props: {
|
|
6321
6310
|
open: { type: Boolean },
|
|
@@ -6343,35 +6332,35 @@ const ki = /* @__PURE__ */ we(hi, [["render", wi]]), $i = { class: "cl-basis-ful
|
|
|
6343
6332
|
I(e.$slots, "default", {}, () => [
|
|
6344
6333
|
ie(D(e.title), 1)
|
|
6345
6334
|
])
|
|
6346
|
-
], 10,
|
|
6335
|
+
], 10, Si));
|
|
6347
6336
|
}
|
|
6348
|
-
}),
|
|
6337
|
+
}), Oi = { key: 0 }, Di = { class: "cl-font-bold cl-mb-4" }, Ai = /* @__PURE__ */ G({
|
|
6349
6338
|
__name: "cl-ui-tab-content",
|
|
6350
6339
|
props: {
|
|
6351
6340
|
open: { type: Boolean },
|
|
6352
6341
|
title: { default: "" }
|
|
6353
6342
|
},
|
|
6354
6343
|
setup(t) {
|
|
6355
|
-
return (o, l) => o.open ? (p(), b("div",
|
|
6344
|
+
return (o, l) => o.open ? (p(), b("div", Oi, [
|
|
6356
6345
|
I(o.$slots, "header", {}, () => [
|
|
6357
|
-
f("h4",
|
|
6346
|
+
f("h4", Di, D(o.title), 1)
|
|
6358
6347
|
]),
|
|
6359
6348
|
I(o.$slots, "default")
|
|
6360
6349
|
])) : j("", !0);
|
|
6361
6350
|
}
|
|
6362
|
-
}),
|
|
6351
|
+
}), Ei = [
|
|
6363
6352
|
"default",
|
|
6364
6353
|
"primary",
|
|
6365
6354
|
"secondary",
|
|
6366
6355
|
"danger",
|
|
6367
6356
|
"blue"
|
|
6368
|
-
],
|
|
6357
|
+
], Vi = [
|
|
6369
6358
|
"left",
|
|
6370
6359
|
"right"
|
|
6371
|
-
],
|
|
6360
|
+
], Mi = [
|
|
6372
6361
|
"horizontal",
|
|
6373
6362
|
"vertical"
|
|
6374
|
-
],
|
|
6363
|
+
], Ni = { class: "cl-block cl-h-full cl-w-full" }, Ri = ["multiple", "accept", "disabled"], Ii = ["multiple", "accept", "disabled"], Ui = /* @__PURE__ */ G({
|
|
6375
6364
|
inheritAttrs: !1,
|
|
6376
6365
|
__name: "cl-ui-file-uploader",
|
|
6377
6366
|
props: {
|
|
@@ -6415,7 +6404,7 @@ const ki = /* @__PURE__ */ we(hi, [["render", wi]]), $i = { class: "cl-basis-ful
|
|
|
6415
6404
|
function c() {
|
|
6416
6405
|
n.value && (n.value.value = ""), s.value && (s.value.value = "");
|
|
6417
6406
|
}
|
|
6418
|
-
return (i, m) => (p(), b("div",
|
|
6407
|
+
return (i, m) => (p(), b("div", Ni, [
|
|
6419
6408
|
i.uploaderType === "dragDrop" ? (p(), b("label", le({ key: 0 }, i.$attrs, {
|
|
6420
6409
|
role: "button",
|
|
6421
6410
|
class: ["cl-bg-opacity-10 cl-border cl-border-dashed cl-duration-300 cl-ease-in-out cl-flex cl-justify-center cl-relative cl-rounded-lg", {
|
|
@@ -6437,7 +6426,7 @@ const ki = /* @__PURE__ */ we(hi, [["render", wi]]), $i = { class: "cl-basis-ful
|
|
|
6437
6426
|
accept: i.acceptedFileTypes,
|
|
6438
6427
|
disabled: i.disabled,
|
|
6439
6428
|
onInput: a
|
|
6440
|
-
}, null, 40,
|
|
6429
|
+
}, null, 40, Ri),
|
|
6441
6430
|
I(i.$slots, "default")
|
|
6442
6431
|
], 16)) : (p(), b("input", {
|
|
6443
6432
|
key: 1,
|
|
@@ -6452,10 +6441,10 @@ const ki = /* @__PURE__ */ we(hi, [["render", wi]]), $i = { class: "cl-basis-ful
|
|
|
6452
6441
|
accept: i.acceptedFileTypes,
|
|
6453
6442
|
disabled: i.disabled,
|
|
6454
6443
|
onInput: a
|
|
6455
|
-
}, null, 42,
|
|
6444
|
+
}, null, 42, Ii))
|
|
6456
6445
|
]));
|
|
6457
6446
|
}
|
|
6458
|
-
}),
|
|
6447
|
+
}), zi = /* @__PURE__ */ G({
|
|
6459
6448
|
inheritAttrs: !1,
|
|
6460
6449
|
__name: "cl-ui-toggle",
|
|
6461
6450
|
props: /* @__PURE__ */ fe({
|
|
@@ -6499,7 +6488,7 @@ const ki = /* @__PURE__ */ we(hi, [["render", wi]]), $i = { class: "cl-basis-ful
|
|
|
6499
6488
|
_: 3
|
|
6500
6489
|
}, 8, ["show-required-asterisk"]));
|
|
6501
6490
|
}
|
|
6502
|
-
}),
|
|
6491
|
+
}), Li = /* @__PURE__ */ G({
|
|
6503
6492
|
__name: "cl-ui-toggle-button",
|
|
6504
6493
|
props: {
|
|
6505
6494
|
isSelected: { type: Boolean },
|
|
@@ -6519,12 +6508,12 @@ const ki = /* @__PURE__ */ we(hi, [["render", wi]]), $i = { class: "cl-basis-ful
|
|
|
6519
6508
|
_: 3
|
|
6520
6509
|
}, 8, ["class"]));
|
|
6521
6510
|
}
|
|
6522
|
-
}),
|
|
6511
|
+
}), Bi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
6523
6512
|
__proto__: null,
|
|
6524
6513
|
FilterOperation: ae,
|
|
6525
6514
|
allQuickDates: tt,
|
|
6526
|
-
buttonColours:
|
|
6527
|
-
buttonSizes:
|
|
6515
|
+
buttonColours: xt,
|
|
6516
|
+
buttonSizes: Xt,
|
|
6528
6517
|
cardSizes: lo,
|
|
6529
6518
|
clUISlectInput: ll,
|
|
6530
6519
|
clUiAccordion: Rt,
|
|
@@ -6534,10 +6523,10 @@ const ki = /* @__PURE__ */ we(hi, [["render", wi]]), $i = { class: "cl-basis-ful
|
|
|
6534
6523
|
clUiButton: $e,
|
|
6535
6524
|
clUiCard: eo,
|
|
6536
6525
|
clUiComboBox: zo,
|
|
6537
|
-
clUiFileUploader:
|
|
6526
|
+
clUiFileUploader: Ui,
|
|
6538
6527
|
clUiFooter: Ko,
|
|
6539
|
-
clUiGrid:
|
|
6540
|
-
clUiGridLite:
|
|
6528
|
+
clUiGrid: qs,
|
|
6529
|
+
clUiGridLite: Es,
|
|
6541
6530
|
clUiGridLiteBody: pt,
|
|
6542
6531
|
clUiGridLiteBodySkeleton: ut,
|
|
6543
6532
|
clUiGridLiteCell: ft,
|
|
@@ -6545,61 +6534,61 @@ const ki = /* @__PURE__ */ we(hi, [["render", wi]]), $i = { class: "cl-basis-ful
|
|
|
6545
6534
|
clUiGridLiteFooterSkeleton: mt,
|
|
6546
6535
|
clUiGridLiteHeader: ct,
|
|
6547
6536
|
clUiGridLiteRow: dt,
|
|
6548
|
-
clUiHeader:
|
|
6549
|
-
clUiHeaderMenu:
|
|
6550
|
-
clUiInput:
|
|
6537
|
+
clUiHeader: xs,
|
|
6538
|
+
clUiHeaderMenu: ar,
|
|
6539
|
+
clUiInput: Nr,
|
|
6551
6540
|
clUiInputCheckbox: il,
|
|
6552
6541
|
clUiInputDateRange: at,
|
|
6553
6542
|
clUiInputDateRangeInput: Ol,
|
|
6554
6543
|
clUiInputDateTime: st,
|
|
6555
6544
|
clUiInputNumber: Ke,
|
|
6556
|
-
clUiInputRange:
|
|
6545
|
+
clUiInputRange: gn,
|
|
6557
6546
|
clUiInputText: Re,
|
|
6558
|
-
clUiInputTextArea:
|
|
6559
|
-
clUiLanguageSwitcher:
|
|
6547
|
+
clUiInputTextArea: an,
|
|
6548
|
+
clUiLanguageSwitcher: jr,
|
|
6560
6549
|
clUiLoadingSpinner: sl,
|
|
6561
|
-
clUiLogin:
|
|
6550
|
+
clUiLogin: ti,
|
|
6562
6551
|
clUiModal: Ql,
|
|
6563
|
-
clUiNavigation:
|
|
6564
|
-
clUiNavigationGroup:
|
|
6565
|
-
clUiNavigationIcon:
|
|
6566
|
-
clUiNavigationItem:
|
|
6567
|
-
clUiNavigationSection:
|
|
6552
|
+
clUiNavigation: ii,
|
|
6553
|
+
clUiNavigationGroup: pi,
|
|
6554
|
+
clUiNavigationIcon: ci,
|
|
6555
|
+
clUiNavigationItem: $i,
|
|
6556
|
+
clUiNavigationSection: hi,
|
|
6568
6557
|
clUiNotification: Kl,
|
|
6569
6558
|
clUiSelect: vl,
|
|
6570
6559
|
clUiSelectOption: Le,
|
|
6571
|
-
clUiTab:
|
|
6572
|
-
clUiTabContent:
|
|
6573
|
-
clUiTabHeader:
|
|
6574
|
-
clUiToggle:
|
|
6575
|
-
clUiToggleButton:
|
|
6560
|
+
clUiTab: Ti,
|
|
6561
|
+
clUiTabContent: Ai,
|
|
6562
|
+
clUiTabHeader: qi,
|
|
6563
|
+
clUiToggle: zi,
|
|
6564
|
+
clUiToggleButton: Li,
|
|
6576
6565
|
currentQuickDates: He,
|
|
6577
6566
|
dateTimeCalendarTypes: nt,
|
|
6578
|
-
filterMethodTypes:
|
|
6567
|
+
filterMethodTypes: En,
|
|
6579
6568
|
futureQuickDates: el,
|
|
6580
|
-
gridColumnTypes:
|
|
6581
|
-
headerColour:
|
|
6582
|
-
inputTextTypes:
|
|
6583
|
-
inputTypes:
|
|
6569
|
+
gridColumnTypes: On,
|
|
6570
|
+
headerColour: nr,
|
|
6571
|
+
inputTextTypes: on,
|
|
6572
|
+
inputTypes: Rr,
|
|
6584
6573
|
isComboBoxCreateRequest: Bo,
|
|
6585
6574
|
isComboBoxItem: Lo,
|
|
6586
|
-
isFilterRequest:
|
|
6587
|
-
isFilterResponse:
|
|
6575
|
+
isFilterRequest: Nn,
|
|
6576
|
+
isFilterResponse: Rn,
|
|
6588
6577
|
isGridColumn: rt,
|
|
6589
|
-
isGridColumnArray:
|
|
6590
|
-
isLanguageArray:
|
|
6578
|
+
isGridColumnArray: Dn,
|
|
6579
|
+
isLanguageArray: Ir,
|
|
6591
6580
|
isLanguageLocaleFormat: bl,
|
|
6592
|
-
modalColours:
|
|
6593
|
-
modalSizes:
|
|
6581
|
+
modalColours: ai,
|
|
6582
|
+
modalSizes: oi,
|
|
6594
6583
|
pastQuickDates: _e,
|
|
6595
|
-
popoverPlacements:
|
|
6596
|
-
quickDateNames:
|
|
6597
|
-
stringFormats:
|
|
6598
|
-
tabColours:
|
|
6599
|
-
tabLayout:
|
|
6600
|
-
tabScroll:
|
|
6601
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
6602
|
-
t.use(Ce), t.component("Icon", J), Object.entries(
|
|
6584
|
+
popoverPlacements: vn,
|
|
6585
|
+
quickDateNames: en,
|
|
6586
|
+
stringFormats: An,
|
|
6587
|
+
tabColours: Ei,
|
|
6588
|
+
tabLayout: Mi,
|
|
6589
|
+
tabScroll: Vi
|
|
6590
|
+
}, Symbol.toStringTag, { value: "Module" })), lc = (t) => {
|
|
6591
|
+
t.use(Ce), t.component("Icon", J), Object.entries(Bi).forEach(([
|
|
6603
6592
|
o,
|
|
6604
6593
|
l
|
|
6605
6594
|
]) => {
|
|
@@ -6607,13 +6596,13 @@ const ki = /* @__PURE__ */ we(hi, [["render", wi]]), $i = { class: "cl-basis-ful
|
|
|
6607
6596
|
});
|
|
6608
6597
|
};
|
|
6609
6598
|
export {
|
|
6610
|
-
|
|
6599
|
+
ec as CitrusLimeUI,
|
|
6611
6600
|
se as DateFormat,
|
|
6612
6601
|
ae as FilterOperation,
|
|
6613
6602
|
_ as NumberFormat,
|
|
6614
6603
|
tt as allQuickDates,
|
|
6615
|
-
|
|
6616
|
-
|
|
6604
|
+
xt as buttonColours,
|
|
6605
|
+
Xt as buttonSizes,
|
|
6617
6606
|
lo as cardSizes,
|
|
6618
6607
|
ll as clUISlectInput,
|
|
6619
6608
|
Rt as clUiAccordion,
|
|
@@ -6623,10 +6612,10 @@ export {
|
|
|
6623
6612
|
$e as clUiButton,
|
|
6624
6613
|
eo as clUiCard,
|
|
6625
6614
|
zo as clUiComboBox,
|
|
6626
|
-
|
|
6615
|
+
Ui as clUiFileUploader,
|
|
6627
6616
|
Ko as clUiFooter,
|
|
6628
|
-
|
|
6629
|
-
|
|
6617
|
+
qs as clUiGrid,
|
|
6618
|
+
Es as clUiGridLite,
|
|
6630
6619
|
pt as clUiGridLiteBody,
|
|
6631
6620
|
ut as clUiGridLiteBodySkeleton,
|
|
6632
6621
|
ft as clUiGridLiteCell,
|
|
@@ -6634,76 +6623,76 @@ export {
|
|
|
6634
6623
|
mt as clUiGridLiteFooterSkeleton,
|
|
6635
6624
|
ct as clUiGridLiteHeader,
|
|
6636
6625
|
dt as clUiGridLiteRow,
|
|
6637
|
-
|
|
6638
|
-
|
|
6639
|
-
|
|
6626
|
+
xs as clUiHeader,
|
|
6627
|
+
ar as clUiHeaderMenu,
|
|
6628
|
+
Nr as clUiInput,
|
|
6640
6629
|
il as clUiInputCheckbox,
|
|
6641
6630
|
at as clUiInputDateRange,
|
|
6642
6631
|
Ol as clUiInputDateRangeInput,
|
|
6643
6632
|
st as clUiInputDateTime,
|
|
6644
6633
|
Ke as clUiInputNumber,
|
|
6645
|
-
|
|
6634
|
+
gn as clUiInputRange,
|
|
6646
6635
|
Re as clUiInputText,
|
|
6647
|
-
|
|
6648
|
-
|
|
6636
|
+
an as clUiInputTextArea,
|
|
6637
|
+
jr as clUiLanguageSwitcher,
|
|
6649
6638
|
sl as clUiLoadingSpinner,
|
|
6650
|
-
|
|
6639
|
+
ti as clUiLogin,
|
|
6651
6640
|
Ql as clUiModal,
|
|
6652
|
-
|
|
6653
|
-
|
|
6654
|
-
|
|
6655
|
-
|
|
6656
|
-
|
|
6641
|
+
ii as clUiNavigation,
|
|
6642
|
+
pi as clUiNavigationGroup,
|
|
6643
|
+
ci as clUiNavigationIcon,
|
|
6644
|
+
$i as clUiNavigationItem,
|
|
6645
|
+
hi as clUiNavigationSection,
|
|
6657
6646
|
Kl as clUiNotification,
|
|
6658
6647
|
vl as clUiSelect,
|
|
6659
6648
|
Le as clUiSelectOption,
|
|
6660
|
-
|
|
6661
|
-
|
|
6662
|
-
|
|
6663
|
-
|
|
6664
|
-
|
|
6649
|
+
Ti as clUiTab,
|
|
6650
|
+
Ai as clUiTabContent,
|
|
6651
|
+
qi as clUiTabHeader,
|
|
6652
|
+
zi as clUiToggle,
|
|
6653
|
+
Li as clUiToggleButton,
|
|
6665
6654
|
He as currentQuickDates,
|
|
6666
6655
|
nt as dateTimeCalendarTypes,
|
|
6667
|
-
|
|
6668
|
-
|
|
6669
|
-
|
|
6656
|
+
oa as datetimeFormats,
|
|
6657
|
+
lc as default,
|
|
6658
|
+
En as filterMethodTypes,
|
|
6670
6659
|
De as formatNumber,
|
|
6671
6660
|
pl as formatNumberAsDecimal,
|
|
6672
6661
|
ke as formatNumberAsInteger,
|
|
6673
6662
|
el as futureQuickDates,
|
|
6674
6663
|
$l as getMergedFormatOptions,
|
|
6675
|
-
|
|
6676
|
-
|
|
6664
|
+
On as gridColumnTypes,
|
|
6665
|
+
nr as headerColour,
|
|
6677
6666
|
Ce as i18n,
|
|
6678
|
-
|
|
6679
|
-
|
|
6667
|
+
on as inputTextTypes,
|
|
6668
|
+
Rr as inputTypes,
|
|
6680
6669
|
Bo as isComboBoxCreateRequest,
|
|
6681
6670
|
Lo as isComboBoxItem,
|
|
6682
|
-
|
|
6683
|
-
|
|
6671
|
+
Nn as isFilterRequest,
|
|
6672
|
+
Rn as isFilterResponse,
|
|
6684
6673
|
rt as isGridColumn,
|
|
6685
|
-
|
|
6686
|
-
|
|
6674
|
+
Dn as isGridColumnArray,
|
|
6675
|
+
Ir as isLanguageArray,
|
|
6687
6676
|
bl as isLanguageLocaleFormat,
|
|
6688
|
-
|
|
6689
|
-
|
|
6690
|
-
|
|
6691
|
-
|
|
6677
|
+
la as messages,
|
|
6678
|
+
ai as modalColours,
|
|
6679
|
+
oi as modalSizes,
|
|
6680
|
+
ta as numberFormats,
|
|
6692
6681
|
_e as pastQuickDates,
|
|
6693
|
-
|
|
6694
|
-
|
|
6695
|
-
|
|
6696
|
-
|
|
6682
|
+
vn as popoverPlacements,
|
|
6683
|
+
en as quickDateNames,
|
|
6684
|
+
ia as scrubGroupSeparatorsFromFormattedValue,
|
|
6685
|
+
_i as setCurrentLocale,
|
|
6697
6686
|
Xi as setLocaleDateTimeFormats,
|
|
6698
|
-
|
|
6699
|
-
|
|
6687
|
+
Ji as setLocaleMessages,
|
|
6688
|
+
xi as setLocaleNumberFormats,
|
|
6700
6689
|
Al as showNotification,
|
|
6701
|
-
|
|
6702
|
-
|
|
6703
|
-
|
|
6704
|
-
|
|
6690
|
+
An as stringFormats,
|
|
6691
|
+
Ei as tabColours,
|
|
6692
|
+
Mi as tabLayout,
|
|
6693
|
+
Vi as tabScroll,
|
|
6705
6694
|
Yl as unformatNumber,
|
|
6706
|
-
|
|
6707
|
-
|
|
6708
|
-
|
|
6695
|
+
fa as validateEmail,
|
|
6696
|
+
da as validateMaxValue,
|
|
6697
|
+
ua as validateMinValue
|
|
6709
6698
|
};
|