@citruslime/ui 4.0.1-beta.7 → 4.0.1-beta.8
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 +84 -84
- package/dist/citrus-lime-ui.umd.js +1 -1
- package/dist/ui.css +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Icon as ee } from "@iconify/vue";
|
|
2
|
-
import { defineComponent as P, ref as M, createElementBlock as v, openBlock as c, renderSlot as E, normalizeProps as ge, guardReactiveProps as he, Fragment as K, createElementVNode as h, normalizeClass as I, createVNode as O, unref as g, Transition as Ve, withCtx as V, withDirectives as ae, mergeProps as Q, vShow as fe, createBlock as F, Teleport as Dl, renderList as x, toDisplayString as U, createCommentVNode as B, computed as S, createTextVNode as re, mergeModels as ie, useModel as ve, watch as _, createSlots as be, vModelDynamic as et, shallowRef as zl, toValue as rl, toRefs as lt, withKeys as le, onMounted as We, onUnmounted as Ol, withModifiers as
|
|
2
|
+
import { defineComponent as P, ref as M, createElementBlock as v, openBlock as c, renderSlot as E, normalizeProps as ge, guardReactiveProps as he, Fragment as K, createElementVNode as h, normalizeClass as I, createVNode as O, unref as g, Transition as Ve, withCtx as V, withDirectives as ae, mergeProps as Q, vShow as fe, createBlock as F, Teleport as Dl, renderList as x, toDisplayString as U, createCommentVNode as B, computed as S, createTextVNode as re, mergeModels as ie, useModel as ve, watch as _, createSlots as be, vModelDynamic as et, shallowRef as zl, toValue as rl, toRefs as lt, withKeys as le, onMounted as We, onUnmounted as Ol, withModifiers as X, nextTick as Pe, useAttrs as Ke, resolveComponent as Te, inject as fl, vModelCheckbox as At, watchEffect as Mt, vModelText as El, useCssVars as tt, toHandlers as Vt, useSlots as Nt, provide as kl, normalizeStyle as ot, isRef as Rt } from "vue";
|
|
3
3
|
import { generateStringId as Ut, highlightText as Bt, validateEmail as zt, isTouchDevice as Ft, escapeStringForRegExp as Lt } from "@citruslime/utils";
|
|
4
4
|
import { useFocusWithin as Il, onKeyDown as $l, toArray as Pt, unrefElement as jt, tryOnScopeDispose as Ht, onClickOutside as ll, useTimeoutFn as at, useMouseInElement as Gt, useMediaQuery as il, useThrottle as Zt, useDebounceFn as _e, useBreakpoints as Wt, breakpointsTailwind as Kt, useThrottleFn as Qt, useWindowSize as Yt, useElementSize as Fl, useElementBounding as Ll } from "@vueuse/core";
|
|
5
5
|
import { useI18n as ue, createI18n as Jt } from "vue-i18n";
|
|
@@ -689,11 +689,11 @@ const Ro = {
|
|
|
689
689
|
}
|
|
690
690
|
function D(q) {
|
|
691
691
|
if (q.key === "Tab" && q.shiftKey === !0) {
|
|
692
|
-
const
|
|
692
|
+
const J = document.getElementsByTagName("input");
|
|
693
693
|
let oe = -1;
|
|
694
|
-
for (let W = 0; W <
|
|
695
|
-
|
|
696
|
-
oe >= 0 && (
|
|
694
|
+
for (let W = 0; W < J.length; W++)
|
|
695
|
+
J[W] === q.target && (oe = W - 1);
|
|
696
|
+
oe >= 0 && (J[oe].focus(), y());
|
|
697
697
|
}
|
|
698
698
|
}
|
|
699
699
|
function A() {
|
|
@@ -709,8 +709,8 @@ const Ro = {
|
|
|
709
709
|
}
|
|
710
710
|
function G() {
|
|
711
711
|
l.isVisible === !0 && (a.value = "", s(), Pe(() => {
|
|
712
|
-
var q,
|
|
713
|
-
return (
|
|
712
|
+
var q, J;
|
|
713
|
+
return (J = (q = n.value) == null ? void 0 : q.querySelector("input")) == null ? void 0 : J.focus();
|
|
714
714
|
}));
|
|
715
715
|
}
|
|
716
716
|
return _(() => l.results, () => H()), _(() => l.errorMessage, () => H()), _(() => l.isVisible, () => G()), We(() => {
|
|
@@ -719,7 +719,7 @@ const Ro = {
|
|
|
719
719
|
}), Ol(() => {
|
|
720
720
|
var q;
|
|
721
721
|
return (q = n.value) == null ? void 0 : q.removeEventListener("keydown", D);
|
|
722
|
-
}), (q,
|
|
722
|
+
}), (q, J) => {
|
|
723
723
|
var oe;
|
|
724
724
|
return q.isVisible ? (c(), v("div", {
|
|
725
725
|
key: 0,
|
|
@@ -729,10 +729,10 @@ const Ro = {
|
|
|
729
729
|
"cl:overflow-y-hidden": q.loading
|
|
730
730
|
}]),
|
|
731
731
|
onKeydown: [
|
|
732
|
-
|
|
733
|
-
|
|
732
|
+
J[2] || (J[2] = le(X((W) => b(m.value), ["prevent", "stop"]), ["up"])),
|
|
733
|
+
J[3] || (J[3] = le(X((W) => w(m.value), ["prevent", "stop"]), ["down"]))
|
|
734
734
|
],
|
|
735
|
-
onKeyup: le(
|
|
735
|
+
onKeyup: le(X($, ["prevent", "stop"]), ["enter"])
|
|
736
736
|
}, [
|
|
737
737
|
q.loading ? (c(), v("div", jo, [
|
|
738
738
|
O(tl)
|
|
@@ -742,14 +742,14 @@ const Ro = {
|
|
|
742
742
|
O(Be, {
|
|
743
743
|
id: `cl-ui-combo-box-search-input-${q.objectType}`,
|
|
744
744
|
modelValue: a.value,
|
|
745
|
-
"onUpdate:modelValue":
|
|
745
|
+
"onUpdate:modelValue": J[0] || (J[0] = (W) => a.value = W),
|
|
746
746
|
class: "cl:box-border cl:font-light cl:mb-2 cl:p-2 cl:text-sm",
|
|
747
747
|
placeholder: q.searchHint,
|
|
748
748
|
type: "search",
|
|
749
749
|
onKeyup: s,
|
|
750
750
|
onBlur: y
|
|
751
751
|
}, {
|
|
752
|
-
default: V(() =>
|
|
752
|
+
default: V(() => J[4] || (J[4] = [
|
|
753
753
|
h("span", null, null, -1)
|
|
754
754
|
])),
|
|
755
755
|
_: 1
|
|
@@ -760,7 +760,7 @@ const Ro = {
|
|
|
760
760
|
key: 1,
|
|
761
761
|
"show-clear-button": q.canClearSelectedObject,
|
|
762
762
|
text: q.currentObjectName,
|
|
763
|
-
onClearObject:
|
|
763
|
+
onClearObject: J[1] || (J[1] = (W) => q.$emit("clear-object"))
|
|
764
764
|
}, null, 8, ["show-clear-button", "text"])) : B("", !0),
|
|
765
765
|
q.objectParentType !== "" && q.results !== void 0 && q.results.length > 0 && q.errorMessage === "" ? (c(), F(nl, {
|
|
766
766
|
key: 2,
|
|
@@ -840,7 +840,7 @@ const Ro = {
|
|
|
840
840
|
function q(u) {
|
|
841
841
|
$.value = u, r("search-parent", u);
|
|
842
842
|
}
|
|
843
|
-
function
|
|
843
|
+
function J() {
|
|
844
844
|
f.value = null, N(!1);
|
|
845
845
|
}
|
|
846
846
|
function oe(u) {
|
|
@@ -1022,10 +1022,10 @@ const Ro = {
|
|
|
1022
1022
|
"cl:bottom-full": H.value
|
|
1023
1023
|
}),
|
|
1024
1024
|
"search-hint": n.value,
|
|
1025
|
-
onKeydown: le(
|
|
1025
|
+
onKeydown: le(X(je, ["prevent"]), ["escape"]),
|
|
1026
1026
|
onCreateObject: () => u.objectParentType === "" && u.skipObjectCreationModal === !0 ? pe() : Z(),
|
|
1027
1027
|
onSelectObject: oe,
|
|
1028
|
-
onClearObject:
|
|
1028
|
+
onClearObject: J,
|
|
1029
1029
|
onSearch: G,
|
|
1030
1030
|
onHideDropdown: k[5] || (k[5] = (ce) => N(!1))
|
|
1031
1031
|
}, null, 8, ["can-create-new-object", "can-clear-selected-object", "loading", "results", "object-type", "object-parent-type", "error-message", "current-object-name", "is-visible", "class", "search-hint", "onKeydown", "onCreateObject"]), [
|
|
@@ -1216,7 +1216,7 @@ const ya = {
|
|
|
1216
1216
|
colour: "blue",
|
|
1217
1217
|
class: "cl:flex-1 cl:lg:flex-none",
|
|
1218
1218
|
disabled: a.loading,
|
|
1219
|
-
onClick: i[0] || (i[0] =
|
|
1219
|
+
onClick: i[0] || (i[0] = X((p) => a.$emit("update:edit-mode", !a.editMode), ["prevent"]))
|
|
1220
1220
|
}, {
|
|
1221
1221
|
default: V(() => [
|
|
1222
1222
|
a.editMode ? (c(), v(K, { key: 0 }, [
|
|
@@ -1233,7 +1233,7 @@ const ya = {
|
|
|
1233
1233
|
colour: "blue",
|
|
1234
1234
|
class: "cl:flex-1 cl:lg:flex-none",
|
|
1235
1235
|
disabled: a.loading,
|
|
1236
|
-
onClick: i[1] || (i[1] =
|
|
1236
|
+
onClick: i[1] || (i[1] = X((p) => a.$emit("update:edit-mode", !a.editMode), ["prevent"]))
|
|
1237
1237
|
}, {
|
|
1238
1238
|
default: V(() => [
|
|
1239
1239
|
a.editMode ? (c(), v(K, { key: 0 }, [
|
|
@@ -1257,7 +1257,7 @@ const ya = {
|
|
|
1257
1257
|
class: "cl:w-full",
|
|
1258
1258
|
size: "small",
|
|
1259
1259
|
disabled: a.loading,
|
|
1260
|
-
onClick: i[2] || (i[2] =
|
|
1260
|
+
onClick: i[2] || (i[2] = X((p) => a.$emit("update:filterPanelOpen", !a.filterPanelOpen), ["prevent"]))
|
|
1261
1261
|
}, {
|
|
1262
1262
|
default: V(() => [
|
|
1263
1263
|
re(U(g(l)("grid.modifyFilters")), 1)
|
|
@@ -1272,7 +1272,7 @@ const ya = {
|
|
|
1272
1272
|
colour: "danger",
|
|
1273
1273
|
disabled: !e.value || a.loading,
|
|
1274
1274
|
class: "cl:basis-full cl:lg:flex-none",
|
|
1275
|
-
onClick: i[3] || (i[3] =
|
|
1275
|
+
onClick: i[3] || (i[3] = X((p) => a.$emit("clear-filters"), ["prevent"]))
|
|
1276
1276
|
}, {
|
|
1277
1277
|
default: V(() => [
|
|
1278
1278
|
re(U(g(l)("grid.clearFilters")), 1)
|
|
@@ -1326,7 +1326,7 @@ const ya = {
|
|
|
1326
1326
|
type: "checkbox",
|
|
1327
1327
|
required: i.required,
|
|
1328
1328
|
disabled: i.disabled || i.readonly,
|
|
1329
|
-
onKeydown: p[1] || (p[1] = le(
|
|
1329
|
+
onKeydown: p[1] || (p[1] = le(X((m) => {
|
|
1330
1330
|
e.value = !e.value;
|
|
1331
1331
|
}, ["stop", "prevent"]), ["enter"])),
|
|
1332
1332
|
onFocus: p[2] || (p[2] = (m) => r("focus")),
|
|
@@ -2207,7 +2207,7 @@ const ja = {
|
|
|
2207
2207
|
O(qe, {
|
|
2208
2208
|
size: "small",
|
|
2209
2209
|
colour: "danger",
|
|
2210
|
-
onClick: $[0] || ($[0] =
|
|
2210
|
+
onClick: $[0] || ($[0] = X((A) => b.$emit("clear-filters"), ["prevent"]))
|
|
2211
2211
|
}, {
|
|
2212
2212
|
default: V(() => [
|
|
2213
2213
|
re(U(g(a)("grid.clearFilters")), 1)
|
|
@@ -2265,10 +2265,10 @@ const ja = {
|
|
|
2265
2265
|
_(r, () => D.value = void 0);
|
|
2266
2266
|
const H = S({
|
|
2267
2267
|
get: () => D.value ? oe(D.value) : r.value,
|
|
2268
|
-
set: (C) => D.value =
|
|
2268
|
+
set: (C) => D.value = J(C)
|
|
2269
2269
|
}), N = S({
|
|
2270
2270
|
get() {
|
|
2271
|
-
const C =
|
|
2271
|
+
const C = J(r.value), z = s.value ? Ua(C, { locale: e.locale }) : C;
|
|
2272
2272
|
return D.value ?? z;
|
|
2273
2273
|
},
|
|
2274
2274
|
set(C) {
|
|
@@ -2286,7 +2286,7 @@ const ja = {
|
|
|
2286
2286
|
z && e.format === te.PERCENTAGE && !Va(N.value, "percentSign", y.value) && (R = R / b.value), isNaN(R) === !1 && (r.value = G(Math.round(R * $.value) / $.value));
|
|
2287
2287
|
}
|
|
2288
2288
|
}
|
|
2289
|
-
function
|
|
2289
|
+
function J(C) {
|
|
2290
2290
|
return C === null ? "" : e.format ? Me(C, e.format, {
|
|
2291
2291
|
locale: e.locale,
|
|
2292
2292
|
additionalOptions: f.value
|
|
@@ -2343,11 +2343,11 @@ const ja = {
|
|
|
2343
2343
|
placeholder: C.placeholder ?? void 0,
|
|
2344
2344
|
onInput: z[0] || (z[0] = (j) => N.value = j.target.value),
|
|
2345
2345
|
onKeydown: [
|
|
2346
|
-
z[1] || (z[1] = le(
|
|
2346
|
+
z[1] || (z[1] = le(X((j) => {
|
|
2347
2347
|
q(j.target.value, A.value), A.value = !1;
|
|
2348
2348
|
}, ["stop", "prevent"]), ["enter"])),
|
|
2349
|
-
z[2] || (z[2] = le(
|
|
2350
|
-
z[3] || (z[3] = le(
|
|
2349
|
+
z[2] || (z[2] = le(X((j) => W(!0), ["prevent"]), ["down"])),
|
|
2350
|
+
z[3] || (z[3] = le(X((j) => W(!1), ["prevent"]), ["up"]))
|
|
2351
2351
|
]
|
|
2352
2352
|
}), null, 16, an)),
|
|
2353
2353
|
ae(h("div", nn, [
|
|
@@ -2356,8 +2356,8 @@ const ja = {
|
|
|
2356
2356
|
disabled: C.disabled,
|
|
2357
2357
|
onClick: z[4] || (z[4] = (j) => W(!1)),
|
|
2358
2358
|
onKeydown: [
|
|
2359
|
-
z[5] || (z[5] = le(
|
|
2360
|
-
z[6] || (z[6] = le(
|
|
2359
|
+
z[5] || (z[5] = le(X((j) => W(!0), ["stop", "prevent"]), ["down"])),
|
|
2360
|
+
z[6] || (z[6] = le(X((j) => W(!1), ["stop", "prevent"]), ["up"]))
|
|
2361
2361
|
]
|
|
2362
2362
|
}, [
|
|
2363
2363
|
O(R, { icon: "ph:caret-up-bold" })
|
|
@@ -2367,8 +2367,8 @@ const ja = {
|
|
|
2367
2367
|
disabled: C.disabled,
|
|
2368
2368
|
onClick: z[7] || (z[7] = (j) => W(!0)),
|
|
2369
2369
|
onKeydown: [
|
|
2370
|
-
z[8] || (z[8] = le(
|
|
2371
|
-
z[9] || (z[9] = le(
|
|
2370
|
+
z[8] || (z[8] = le(X((j) => W(!0), ["stop", "prevent"]), ["down"])),
|
|
2371
|
+
z[9] || (z[9] = le(X((j) => W(!1), ["stop", "prevent"]), ["up"]))
|
|
2372
2372
|
]
|
|
2373
2373
|
}, [
|
|
2374
2374
|
O(R, { icon: "ph:caret-down-bold" })
|
|
@@ -3324,13 +3324,13 @@ const An = { class: "cl:gap-1 cl:grid cl:grid-cols-2" }, Mn = ["onClick"], Vn =
|
|
|
3324
3324
|
key: 0,
|
|
3325
3325
|
class: "cl:cursor-pointer cl:hover:text-link-light",
|
|
3326
3326
|
icon: "ph:arrow-counter-clockwise",
|
|
3327
|
-
onClick: m[4] || (m[4] =
|
|
3327
|
+
onClick: m[4] || (m[4] = X((n) => p.$emit("reset"), ["prevent"]))
|
|
3328
3328
|
})) : B("", !0),
|
|
3329
3329
|
!p.required && p.date && (p.type !== "time" || p.date !== "00:00") ? (c(), F(g(ee), {
|
|
3330
3330
|
key: 1,
|
|
3331
3331
|
class: "cl:cursor-pointer cl:hover:text-link-light cl:md:ml-0.5 clear-icon",
|
|
3332
3332
|
icon: "ph:x",
|
|
3333
|
-
onClick: m[5] || (m[5] =
|
|
3333
|
+
onClick: m[5] || (m[5] = X((n) => p.$emit("clear"), ["prevent"]))
|
|
3334
3334
|
})) : B("", !0)
|
|
3335
3335
|
]))
|
|
3336
3336
|
]));
|
|
@@ -3555,7 +3555,7 @@ const An = { class: "cl:gap-1 cl:grid cl:grid-cols-2" }, Mn = ["onClick"], Vn =
|
|
|
3555
3555
|
return A(R) && A(j) ? R.id === j.id : R === j;
|
|
3556
3556
|
}
|
|
3557
3557
|
}
|
|
3558
|
-
function
|
|
3558
|
+
function J(C) {
|
|
3559
3559
|
C.target.selectionStart = C.target.selectionEnd;
|
|
3560
3560
|
}
|
|
3561
3561
|
ll(a, () => p.value ? f(!1) : "");
|
|
@@ -3614,19 +3614,19 @@ const An = { class: "cl:gap-1 cl:grid cl:grid-cols-2" }, Mn = ["onClick"], Vn =
|
|
|
3614
3614
|
disabled: C.disabled,
|
|
3615
3615
|
onMousedown: we,
|
|
3616
3616
|
onFocus: pe,
|
|
3617
|
-
onSelect: J
|
|
3618
|
-
onClick: z[0] || (z[0] =
|
|
3617
|
+
onSelect: X(J, ["stop", "prevent"]),
|
|
3618
|
+
onClick: z[0] || (z[0] = X((L) => f(void 0), ["stop", "prevent"])),
|
|
3619
3619
|
onKeydown: [
|
|
3620
3620
|
z[1] || (z[1] = le((L) => f(!1), ["tab"])),
|
|
3621
3621
|
z[2] || (z[2] = le((L) => f(!1), ["right"])),
|
|
3622
3622
|
z[3] || (z[3] = le((L) => f(!1), ["left"])),
|
|
3623
3623
|
le(G, ["escape"]),
|
|
3624
|
-
le(
|
|
3625
|
-
le(
|
|
3626
|
-
le(
|
|
3627
|
-
le(
|
|
3628
|
-
le(
|
|
3629
|
-
le(
|
|
3624
|
+
le(X($, ["prevent"]), ["up"]),
|
|
3625
|
+
le(X(D, ["prevent"]), ["down"]),
|
|
3626
|
+
le(X(w, ["prevent"]), ["home"]),
|
|
3627
|
+
le(X(b, ["prevent"]), ["end"]),
|
|
3628
|
+
le(X(N, ["stop", "prevent"]), ["space"]),
|
|
3629
|
+
le(X(N, ["stop", "prevent"]), ["enter"])
|
|
3630
3630
|
]
|
|
3631
3631
|
}), null, 16, es),
|
|
3632
3632
|
h("div", {
|
|
@@ -3663,12 +3663,12 @@ const An = { class: "cl:gap-1 cl:grid cl:grid-cols-2" }, Mn = ["onClick"], Vn =
|
|
|
3663
3663
|
le(w, ["left"])
|
|
3664
3664
|
],
|
|
3665
3665
|
onKeydown: [
|
|
3666
|
-
le(
|
|
3667
|
-
le(
|
|
3668
|
-
le(
|
|
3669
|
-
le(
|
|
3670
|
-
z[6] || (z[6] = le(
|
|
3671
|
-
z[7] || (z[7] = le(
|
|
3666
|
+
le(X($, ["prevent"]), ["up"]),
|
|
3667
|
+
le(X(D, ["prevent"]), ["down"]),
|
|
3668
|
+
le(X(w, ["prevent"]), ["home"]),
|
|
3669
|
+
le(X(b, ["prevent"]), ["end"]),
|
|
3670
|
+
z[6] || (z[6] = le(X((L) => y(l.list[r.value]), ["stop", "prevent"]), ["space"])),
|
|
3671
|
+
z[7] || (z[7] = le(X((L) => y(l.list[r.value]), ["stop", "prevent"]), ["enter"]))
|
|
3672
3672
|
]
|
|
3673
3673
|
}), [
|
|
3674
3674
|
(c(!0), v(K, null, x(C.list, (L, me) => (c(), v("div", { key: me }, [
|
|
@@ -3983,7 +3983,7 @@ const ds = {
|
|
|
3983
3983
|
class: I(["cl:cursor-pointer cl:hover:bg-grey-0 cl:px-4 cl:py-1 cl:transition-colors cl:w-full", {
|
|
3984
3984
|
"cl:bg-primary-default cl:opacity-80": d.method === ((y = i.value) == null ? void 0 : y.method)
|
|
3985
3985
|
}]),
|
|
3986
|
-
onClick:
|
|
3986
|
+
onClick: X((w) => p(d.method), ["prevent"])
|
|
3987
3987
|
}, [
|
|
3988
3988
|
re(U(d.description) + " ", 1),
|
|
3989
3989
|
O(g(ee), {
|
|
@@ -4174,7 +4174,7 @@ const ds = {
|
|
|
4174
4174
|
}
|
|
4175
4175
|
}), q = _e((u) => {
|
|
4176
4176
|
u !== !1 && (p.value = u);
|
|
4177
|
-
}, 1e3),
|
|
4177
|
+
}, 1e3), J = S({
|
|
4178
4178
|
get: () => G.value,
|
|
4179
4179
|
set(u) {
|
|
4180
4180
|
G.value = u;
|
|
@@ -4193,7 +4193,7 @@ const ds = {
|
|
|
4193
4193
|
const ce = (($e = G.value) == null ? void 0 : $e.filterValue.toString()) ?? "", ke = !!Z.trim(), de = !!ce.trim();
|
|
4194
4194
|
if (ke === !1 && de && (Z = ""), ke || de) {
|
|
4195
4195
|
if (G.value)
|
|
4196
|
-
T = ye(
|
|
4196
|
+
T = ye(J.value), T.filterValue = Z;
|
|
4197
4197
|
else if (ke && typeof l.column.field < "u") {
|
|
4198
4198
|
const Fe = i();
|
|
4199
4199
|
T = {
|
|
@@ -4372,8 +4372,8 @@ const ds = {
|
|
|
4372
4372
|
}, 8, ["id", "list", "model-value", "disabled"])) : B("", !0),
|
|
4373
4373
|
n.value ? B("", !0) : (c(), F(hs, {
|
|
4374
4374
|
key: 6,
|
|
4375
|
-
filter:
|
|
4376
|
-
"onUpdate:filter": k[7] || (k[7] = (T) =>
|
|
4375
|
+
filter: J.value,
|
|
4376
|
+
"onUpdate:filter": k[7] || (k[7] = (T) => J.value = T),
|
|
4377
4377
|
loading: u.loading,
|
|
4378
4378
|
column: u.column,
|
|
4379
4379
|
"default-operation": i(),
|
|
@@ -4525,7 +4525,7 @@ const ds = {
|
|
|
4525
4525
|
class: "cl:hover:cursor-pointer cl:hover:text-link-default cl:text-grey-4",
|
|
4526
4526
|
icon: "ph:x",
|
|
4527
4527
|
size: 16,
|
|
4528
|
-
onClick: s[0] || (s[0] =
|
|
4528
|
+
onClick: s[0] || (s[0] = X((d) => n.loading === !1 ? n.$emit("update:filterPanelOpen", !1) : void 0, ["prevent"]))
|
|
4529
4529
|
})
|
|
4530
4530
|
], 2),
|
|
4531
4531
|
(c(!0), v(K, null, x(n.columns, (d, f) => (c(), v("th", {
|
|
@@ -4657,7 +4657,7 @@ const ds = {
|
|
|
4657
4657
|
key: 0,
|
|
4658
4658
|
class: "cl:absolute cl:cursor-pointer cl:hover:text-link-light cl:lg:right-4 cl:right-1 cl:text-grey-4 cl:top-3 cl:z-10",
|
|
4659
4659
|
icon: "ph:x-bold",
|
|
4660
|
-
onClick: f[3] || (f[3] =
|
|
4660
|
+
onClick: f[3] || (f[3] = X((w) => p(""), ["prevent"]))
|
|
4661
4661
|
})) : B("", !0)
|
|
4662
4662
|
])
|
|
4663
4663
|
]);
|
|
@@ -4695,7 +4695,7 @@ const ds = {
|
|
|
4695
4695
|
class: "cl:w-full",
|
|
4696
4696
|
size: "small",
|
|
4697
4697
|
disabled: s.loading,
|
|
4698
|
-
onClick: d[0] || (d[0] =
|
|
4698
|
+
onClick: d[0] || (d[0] = X((f) => a.value = !0, ["prevent"]))
|
|
4699
4699
|
}), {
|
|
4700
4700
|
default: V(() => [
|
|
4701
4701
|
re(U(g(r)("grid.manageView")), 1)
|
|
@@ -4823,7 +4823,7 @@ const ds = {
|
|
|
4823
4823
|
_(G, () => {
|
|
4824
4824
|
G.value ? a("edit-start") : Pe(() => a("edit-end"));
|
|
4825
4825
|
});
|
|
4826
|
-
const
|
|
4826
|
+
const J = S(() => ({
|
|
4827
4827
|
rowSelectionEnabled: !1,
|
|
4828
4828
|
highlightRowSelection: !0,
|
|
4829
4829
|
hideViewManager: !1,
|
|
@@ -4903,7 +4903,7 @@ const ds = {
|
|
|
4903
4903
|
"onUpdate:filterPanelOpen": j[5] || (j[5] = (L) => q.value = L),
|
|
4904
4904
|
"can-bulk-edit": g(p) && (R.options.hideGridMobileView || g(i)),
|
|
4905
4905
|
columns: R.columns,
|
|
4906
|
-
options:
|
|
4906
|
+
options: J.value,
|
|
4907
4907
|
request: $.value,
|
|
4908
4908
|
loading: R.loading,
|
|
4909
4909
|
"initial-load": we.value,
|
|
@@ -4945,7 +4945,7 @@ const ds = {
|
|
|
4945
4945
|
"filter-panel-open": q.value,
|
|
4946
4946
|
"onUpdate:filterPanelOpen": j[7] || (j[7] = (L) => q.value = L),
|
|
4947
4947
|
columns: f.value,
|
|
4948
|
-
options:
|
|
4948
|
+
options: J.value,
|
|
4949
4949
|
loading: R.loading,
|
|
4950
4950
|
"initial-load": we.value,
|
|
4951
4951
|
"bulk-edit-mode": g(p) && N.value && (R.options.hideGridMobileView || g(i)),
|
|
@@ -4970,7 +4970,7 @@ const ds = {
|
|
|
4970
4970
|
loading: R.loading,
|
|
4971
4971
|
"initial-load": we.value,
|
|
4972
4972
|
"search-value": W.value,
|
|
4973
|
-
options:
|
|
4973
|
+
options: J.value,
|
|
4974
4974
|
"edit-mode": G.value,
|
|
4975
4975
|
onClearFilters: D,
|
|
4976
4976
|
onRowEdit: j[10] || (j[10] = (L) => R.$emit("row-edit", L)),
|
|
@@ -4991,9 +4991,9 @@ const ds = {
|
|
|
4991
4991
|
request: $.value,
|
|
4992
4992
|
loading: R.loading,
|
|
4993
4993
|
"initial-load": we.value,
|
|
4994
|
-
"show-unsaved-changes-warning": G.value &&
|
|
4994
|
+
"show-unsaved-changes-warning": G.value && J.value.disableUnsavedChangesWarning === !1,
|
|
4995
4995
|
data: R.data,
|
|
4996
|
-
options:
|
|
4996
|
+
options: J.value,
|
|
4997
4997
|
"onUpdate:request": j[13] || (j[13] = (L) => {
|
|
4998
4998
|
G.value = !1, $.value = L;
|
|
4999
4999
|
})
|
|
@@ -5702,12 +5702,12 @@ const Dt = /* @__PURE__ */ Ce(ir, [["render", cr]]), dr = { class: "cl:flex cl:g
|
|
|
5702
5702
|
"hide-time-header": "",
|
|
5703
5703
|
popover: n.value
|
|
5704
5704
|
}, {
|
|
5705
|
-
default: V(({ inputValue: q, inputEvents:
|
|
5705
|
+
default: V(({ inputValue: q, inputEvents: J }) => [
|
|
5706
5706
|
O(xe, Q(N.$attrs, {
|
|
5707
5707
|
ref_key: "input",
|
|
5708
5708
|
ref: d,
|
|
5709
5709
|
date: q,
|
|
5710
|
-
events:
|
|
5710
|
+
events: J,
|
|
5711
5711
|
type: N.type,
|
|
5712
5712
|
placeholder: N.placeholder,
|
|
5713
5713
|
required: N.required,
|
|
@@ -5747,7 +5747,7 @@ const Dt = /* @__PURE__ */ Ce(ir, [["render", cr]]), dr = { class: "cl:flex cl:g
|
|
|
5747
5747
|
title: $.value,
|
|
5748
5748
|
placeholder: null,
|
|
5749
5749
|
onTogglePopover: q,
|
|
5750
|
-
onClear: G[2] || (G[2] = (
|
|
5750
|
+
onClear: G[2] || (G[2] = (J) => {
|
|
5751
5751
|
i.value = null, y.value = null, w.value.hidePopover();
|
|
5752
5752
|
})
|
|
5753
5753
|
}), null, 16, ["type", "required", "disabled", "range-selected", "title", "onTogglePopover"])
|
|
@@ -5781,12 +5781,12 @@ const Dt = /* @__PURE__ */ Ce(ir, [["render", cr]]), dr = { class: "cl:flex cl:g
|
|
|
5781
5781
|
"hide-time-header": "",
|
|
5782
5782
|
popover: n.value
|
|
5783
5783
|
}, {
|
|
5784
|
-
default: V(({ inputValue: q, inputEvents:
|
|
5784
|
+
default: V(({ inputValue: q, inputEvents: J }) => [
|
|
5785
5785
|
O(xe, Q(N.$attrs, {
|
|
5786
5786
|
ref_key: "input",
|
|
5787
5787
|
ref: d,
|
|
5788
5788
|
date: q,
|
|
5789
|
-
events:
|
|
5789
|
+
events: J,
|
|
5790
5790
|
type: N.type,
|
|
5791
5791
|
placeholder: N.placeholder,
|
|
5792
5792
|
required: N.required,
|
|
@@ -6105,7 +6105,7 @@ const Zr = { class: "cl:flex cl:justify-between" }, Wr = { class: "cl:w-full" },
|
|
|
6105
6105
|
...((k = e.externalErrors) == null ? void 0 : k.filter((T) => ((T == null ? void 0 : T.length) ?? 0) > 0)) ?? []
|
|
6106
6106
|
].join(`
|
|
6107
6107
|
`);
|
|
6108
|
-
}),
|
|
6108
|
+
}), J = S(() => ({
|
|
6109
6109
|
currency: "GBP",
|
|
6110
6110
|
locale: "en-GB",
|
|
6111
6111
|
valueRange: {
|
|
@@ -6245,7 +6245,7 @@ const Zr = { class: "cl:flex cl:justify-between" }, Wr = { class: "cl:w-full" },
|
|
|
6245
6245
|
autocomplete: u.autocomplete,
|
|
6246
6246
|
onClick: k[1] || (k[1] = (T) => C(T)),
|
|
6247
6247
|
onFocus: k[2] || (k[2] = (T) => r("focus")),
|
|
6248
|
-
onBlur:
|
|
6248
|
+
onBlur: X(Ee, ["self"]),
|
|
6249
6249
|
onMousewheelPassive: Se,
|
|
6250
6250
|
onInput: k[3] || (k[3] = (T) => {
|
|
6251
6251
|
r("input", T, g(xl)(T, u.inputType));
|
|
@@ -6264,14 +6264,14 @@ const Zr = { class: "cl:flex cl:justify-between" }, Wr = { class: "cl:w-full" },
|
|
|
6264
6264
|
icon: "ph:caret-up-bold",
|
|
6265
6265
|
class: "cl:absolute cl:bg-link-default cl:hover:bg-link-light cl:hover:cursor-pointer cl:right-1 cl:rounded-full cl:text-sm cl:text-white cl:top-1",
|
|
6266
6266
|
onClick: z,
|
|
6267
|
-
onMousedown: k[4] || (k[4] =
|
|
6267
|
+
onMousedown: k[4] || (k[4] = X(() => {
|
|
6268
6268
|
}, ["prevent"]))
|
|
6269
6269
|
}),
|
|
6270
6270
|
O(g(ee), {
|
|
6271
6271
|
icon: "ph:caret-down-bold",
|
|
6272
6272
|
class: "cl:absolute cl:bg-link-default cl:bottom-2 cl:hover:bg-link-light cl:hover:cursor-pointer cl:right-1 cl:rounded-full cl:text-sm cl:text-white",
|
|
6273
6273
|
onClick: R,
|
|
6274
|
-
onMousedown: k[5] || (k[5] =
|
|
6274
|
+
onMousedown: k[5] || (k[5] = X(() => {
|
|
6275
6275
|
}, ["prevent"]))
|
|
6276
6276
|
})
|
|
6277
6277
|
], 512)), [
|
|
@@ -6295,7 +6295,7 @@ const Zr = { class: "cl:flex cl:justify-between" }, Wr = { class: "cl:w-full" },
|
|
|
6295
6295
|
"input-specific-classes": u.inputSpecificClasses,
|
|
6296
6296
|
group: u.group,
|
|
6297
6297
|
step: u.step,
|
|
6298
|
-
"currency-options":
|
|
6298
|
+
"currency-options": J.value,
|
|
6299
6299
|
onChange: k[7] || (k[7] = (T, Z) => je(T, Z)),
|
|
6300
6300
|
onFocus: k[8] || (k[8] = (T) => r("focus")),
|
|
6301
6301
|
onBlur: L
|
|
@@ -6320,7 +6320,7 @@ const Zr = { class: "cl:flex cl:justify-between" }, Wr = { class: "cl:w-full" },
|
|
|
6320
6320
|
"initial-date": u.initialDate,
|
|
6321
6321
|
"quick-date-scope": u.quickDateScope,
|
|
6322
6322
|
"date-format-locale": u.dateFormatLocale,
|
|
6323
|
-
onBlur:
|
|
6323
|
+
onBlur: L,
|
|
6324
6324
|
onFocus: k[10] || (k[10] = (T) => r("focus"))
|
|
6325
6325
|
}), null, 16, ["date", "class", "disabled", "required", "type", "time-zone", "min", "max", "placeholder", "initial-date", "quick-date-scope", "date-format-locale"])) : u.inputType === "range" && typeof f.value == "number" ? (c(), v("div", _r, [
|
|
6326
6326
|
O(g(jr), {
|
|
@@ -6334,7 +6334,7 @@ const Zr = { class: "cl:flex cl:justify-between" }, Wr = { class: "cl:w-full" },
|
|
|
6334
6334
|
placeholder: s.value,
|
|
6335
6335
|
"enforce-step": !0,
|
|
6336
6336
|
disabled: u.disabled,
|
|
6337
|
-
onBlur:
|
|
6337
|
+
onBlur: X(L, ["self"]),
|
|
6338
6338
|
onFocus: k[12] || (k[12] = (T) => r("focus"))
|
|
6339
6339
|
}, null, 8, ["value", "min", "max", "step", "placeholder", "disabled"])
|
|
6340
6340
|
])) : B("", !0)
|
|
@@ -6343,7 +6343,7 @@ const Zr = { class: "cl:flex cl:justify-between" }, Wr = { class: "cl:w-full" },
|
|
|
6343
6343
|
!H.value && q.value.length > 0 && u.showValidationMessages && N.value ? (c(), v("div", li, U(q.value), 1)) : B("", !0)
|
|
6344
6344
|
], 16));
|
|
6345
6345
|
}
|
|
6346
|
-
}), oi = /* @__PURE__ */ Ce(ti, [["__scopeId", "data-v-
|
|
6346
|
+
}), oi = /* @__PURE__ */ Ce(ti, [["__scopeId", "data-v-dec34b48"]]), ai = [
|
|
6347
6347
|
"button",
|
|
6348
6348
|
"checkbox",
|
|
6349
6349
|
"color",
|
|
@@ -6560,7 +6560,7 @@ const ri = {
|
|
|
6560
6560
|
colour: "blue",
|
|
6561
6561
|
loading: d.loading,
|
|
6562
6562
|
disabled: !p.value || a.value === "",
|
|
6563
|
-
onClick:
|
|
6563
|
+
onClick: X(n, ["prevent"])
|
|
6564
6564
|
}, {
|
|
6565
6565
|
default: V(() => [
|
|
6566
6566
|
re(U(g(e)("login.login")), 1)
|
|
@@ -6954,7 +6954,7 @@ const Zi = /* @__PURE__ */ Ce(ji, [["render", Gi]]), Wi = /* @__PURE__ */ P({
|
|
|
6954
6954
|
"cl:bg-primary-light/40 cl:hover:bg-primary-light/40": d.value === !0 && b.disabled === !1,
|
|
6955
6955
|
"cl:bg-primary-light/10 cl:hover:bg-primary-light/40": d.value === !1 && b.disabled === !1
|
|
6956
6956
|
}],
|
|
6957
|
-
onDrop:
|
|
6957
|
+
onDrop: X(p, ["prevent"]),
|
|
6958
6958
|
onDragenter: $[0] || ($[0] = (D) => d.value = !0),
|
|
6959
6959
|
onDragleave: $[1] || ($[1] = (D) => d.value = !1)
|
|
6960
6960
|
}), [
|
|
@@ -7176,7 +7176,7 @@ const Zi = /* @__PURE__ */ Ce(ji, [["render", Gi]]), Wi = /* @__PURE__ */ P({
|
|
|
7176
7176
|
"cl:hover:bg-primary-lighter cl:cursor-pointer cl:transition-colors": t.value === !1,
|
|
7177
7177
|
"cl:gap-3": t.value
|
|
7178
7178
|
}]),
|
|
7179
|
-
onClick: s[2] || (s[2] =
|
|
7179
|
+
onClick: s[2] || (s[2] = X(() => {
|
|
7180
7180
|
t.value === !1 && p();
|
|
7181
7181
|
}, ["self"])),
|
|
7182
7182
|
onMouseenter: s[3] || (s[3] = (f) => r.value = !0),
|
|
@@ -7188,7 +7188,7 @@ const Zi = /* @__PURE__ */ Ce(ji, [["render", Gi]]), Wi = /* @__PURE__ */ P({
|
|
|
7188
7188
|
"cl:text-grey-3 cl:hover:text-secondary-default cl:cursor-pointer ": t.value,
|
|
7189
7189
|
"cl:text-secondary-default": t.value === !1
|
|
7190
7190
|
}]),
|
|
7191
|
-
onClick: s[0] || (s[0] =
|
|
7191
|
+
onClick: s[0] || (s[0] = X(() => p(), ["stop"]))
|
|
7192
7192
|
}, null, 8, ["icon-value", "class"]),
|
|
7193
7193
|
t.value ? (c(), v("button", {
|
|
7194
7194
|
key: 0,
|
|
@@ -7472,7 +7472,7 @@ const Mu = { class: "cl:flex cl:flex-nowrap cl:flex-row cl:w-full" }, Vu = { cla
|
|
|
7472
7472
|
"branches-at": w.value
|
|
7473
7473
|
}, null, 8, ["branches-at"])) : B("", !0),
|
|
7474
7474
|
A.rootNode.children && A.rootNode.children.length > 0 && g(i) ? (c(), v("div", zu, [
|
|
7475
|
-
(c(!0), v(K, null, x(A.rootNode.children, (q,
|
|
7475
|
+
(c(!0), v(K, null, x(A.rootNode.children, (q, J) => (c(), v("div", {
|
|
7476
7476
|
key: q.id,
|
|
7477
7477
|
ref_for: !0,
|
|
7478
7478
|
ref_key: "childSubtreeDivs",
|
|
@@ -7483,11 +7483,11 @@ const Mu = { class: "cl:flex cl:flex-nowrap cl:flex-row cl:w-full" }, Vu = { cla
|
|
|
7483
7483
|
"onUpdate:selectedPath": H[2] || (H[2] = (oe) => e.value = oe),
|
|
7484
7484
|
"id-prefix": `${A.idPrefix}-${q.id}`,
|
|
7485
7485
|
depth: A.depth + 1,
|
|
7486
|
-
breadth:
|
|
7486
|
+
breadth: J,
|
|
7487
7487
|
"path-fragments": [...A.pathFragments, q.id],
|
|
7488
7488
|
"root-node": q,
|
|
7489
7489
|
onRecalculateTreePath: g($),
|
|
7490
|
-
onSetChildNodeHeight: (oe) => y.value[
|
|
7490
|
+
onSetChildNodeHeight: (oe) => y.value[J] = oe
|
|
7491
7491
|
}, be({ _: 2 }, [
|
|
7492
7492
|
x(A.$slots, (oe, W) => ({
|
|
7493
7493
|
name: W,
|