@citruslime/ui 4.0.0-beta.14 → 4.0.0-beta.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Icon as ee } from "@iconify/vue";
|
|
2
|
-
import { defineComponent as P, ref as I, openBlock as u, createElementBlock as h, renderSlot as O, normalizeProps as ge, guardReactiveProps as be, Fragment as W, createElementVNode as b, normalizeClass as V, createVNode as q, unref as v, Transition as Ie, withCtx as U, withDirectives as oe, mergeProps as Q, vShow as fe, createBlock as L, Teleport as Cl, renderList as x, toDisplayString as z, createCommentVNode as B, computed as k, createTextVNode as re, mergeModels as me, useModel as ye, watch as le, createSlots as we, vModelDynamic as Jl, toRefs as Xl, withKeys as ne, onMounted as
|
|
2
|
+
import { defineComponent as P, ref as I, openBlock as u, createElementBlock as h, renderSlot as O, normalizeProps as ge, guardReactiveProps as be, Fragment as W, createElementVNode as b, normalizeClass as V, createVNode as q, unref as v, Transition as Ie, withCtx as U, withDirectives as oe, mergeProps as Q, vShow as fe, createBlock as L, Teleport as Cl, renderList as x, toDisplayString as z, createCommentVNode as B, computed as k, createTextVNode as re, mergeModels as me, useModel as ye, watch as le, createSlots as we, vModelDynamic as Jl, toRefs as Xl, withKeys as ne, onMounted as Ge, onUnmounted as Tl, withModifiers as X, nextTick as Le, useAttrs as Ze, resolveComponent as Ce, inject as il, vModelCheckbox as Et, toValue as Nl, watchEffect as At, vModelText as Sl, useCssVars as xl, toHandlers as Vt, useSlots as Mt, provide as vl, normalizeStyle as _l, isRef as It } from "vue";
|
|
3
3
|
import { generateStringId as Nt, highlightText as Rt, validateEmail as Ut, escapeStringForRegExp as zt } from "@citruslime/utils";
|
|
4
|
-
import { useFocusWithin as ql, onKeyDown as hl, unrefElement as Bt, tryOnScopeDispose as Ft, onClickOutside as xe, useEventListener as Lt, useTimeoutFn as et, useMouseInElement as Pt, useMediaQuery as lt, useThrottle as jt, useElementBounding as bl, useDebounceFn as Je, useBreakpoints as
|
|
4
|
+
import { useFocusWithin as ql, onKeyDown as hl, unrefElement as Bt, tryOnScopeDispose as Ft, onClickOutside as xe, useEventListener as Lt, useTimeoutFn as et, useMouseInElement as Pt, useMediaQuery as lt, useThrottle as jt, useElementBounding as bl, useDebounceFn as Je, useBreakpoints as Ht, breakpointsTailwind as Gt, useThrottleFn as Zt, useWindowSize as Wt, useElementSize as Rl } from "@vueuse/core";
|
|
5
5
|
import { useI18n as ue, createI18n as Kt } from "vue-i18n";
|
|
6
6
|
import { createFocusTrap as Qt } from "focus-trap";
|
|
7
7
|
import { copy as ke } from "@citruslime/vue-utils";
|
|
@@ -652,7 +652,7 @@ const Mo = {
|
|
|
652
652
|
}), Bo = ["onKeyup"], Fo = {
|
|
653
653
|
key: 0,
|
|
654
654
|
class: "cl-absolute cl-bg-off-white cl-flex cl-h-full cl-items-center cl-justify-center cl-top-0 cl-w-full cl-z-20"
|
|
655
|
-
}, Lo = { class: "cl-bg-white cl-flex cl-p-2 cl-pb-1 cl-sticky cl-top-0 cl-w-full cl-z-10" }, Po = { class: "cl-inline-block cl-w-full" }, jo = { key: 6 },
|
|
655
|
+
}, Lo = { class: "cl-bg-white cl-flex cl-p-2 cl-pb-1 cl-sticky cl-top-0 cl-w-full cl-z-10" }, Po = { class: "cl-inline-block cl-w-full" }, jo = { key: 6 }, Ho = /* @__PURE__ */ P({
|
|
656
656
|
__name: "cl-ui-combo-box-search",
|
|
657
657
|
props: {
|
|
658
658
|
loading: { type: Boolean, default: !1 },
|
|
@@ -716,7 +716,7 @@ const Mo = {
|
|
|
716
716
|
return (Y = (A = r.value) == null ? void 0 : A.querySelector("input")) == null ? void 0 : Y.focus();
|
|
717
717
|
}));
|
|
718
718
|
}
|
|
719
|
-
return le(() => l.results, () => S()), le(() => l.errorMessage, () => S()), le(() => l.isVisible, () => _()),
|
|
719
|
+
return le(() => l.results, () => S()), le(() => l.errorMessage, () => S()), le(() => l.isVisible, () => _()), Ge(() => {
|
|
720
720
|
var A;
|
|
721
721
|
return (A = r.value) == null ? void 0 : A.addEventListener("keydown", N);
|
|
722
722
|
}), Tl(() => {
|
|
@@ -804,7 +804,7 @@ const Mo = {
|
|
|
804
804
|
], 42, Bo)) : B("", !0);
|
|
805
805
|
};
|
|
806
806
|
}
|
|
807
|
-
}),
|
|
807
|
+
}), Go = { class: "cl-flex cl-rounded-lg" }, Zo = { class: "cl-inline-block cl-w-full" }, Wo = { class: "cl-pointer-events-none cl-relative cl-top-0.5" }, Ko = { class: "cl-absolute cl-flex cl-float-right cl-font-semibold cl-mt-[5px] cl-right-2 cl-text-danger-default cl-text-sm cl-z-10" }, Qo = ["disabled"], Yo = ["disabled"], Jo = { class: "cl-min-h-[16rem] cl-mx-4" }, Xo = { class: "cl-p-2 cl-text-right cl-w-full" }, xo = /* @__PURE__ */ P({
|
|
808
808
|
inheritAttrs: !1,
|
|
809
809
|
__name: "cl-ui-combo-box",
|
|
810
810
|
props: {
|
|
@@ -874,7 +874,7 @@ const Mo = {
|
|
|
874
874
|
parentId: 0
|
|
875
875
|
}, n("create-parent-object", N.value);
|
|
876
876
|
}
|
|
877
|
-
function
|
|
877
|
+
function H() {
|
|
878
878
|
var $, m;
|
|
879
879
|
($ = e.objectCreatedResponse) != null && $.error ? Ul({
|
|
880
880
|
message: s("comboBox.createFailed", {
|
|
@@ -883,7 +883,7 @@ const Mo = {
|
|
|
883
883
|
}),
|
|
884
884
|
colour: "danger",
|
|
885
885
|
duration: 1e4
|
|
886
|
-
}) : (m = e.objectCreatedResponse) != null && m.id &&
|
|
886
|
+
}) : (m = e.objectCreatedResponse) != null && m.id && G();
|
|
887
887
|
}
|
|
888
888
|
function C() {
|
|
889
889
|
var $;
|
|
@@ -892,7 +892,7 @@ const Mo = {
|
|
|
892
892
|
name: e.parentObjectCreatedResponse.name ?? ""
|
|
893
893
|
});
|
|
894
894
|
}
|
|
895
|
-
function
|
|
895
|
+
function G() {
|
|
896
896
|
var m, M, F, pe, de;
|
|
897
897
|
Ul({
|
|
898
898
|
message: s("comboBox.createSuccessful", {
|
|
@@ -918,7 +918,7 @@ const Mo = {
|
|
|
918
918
|
let $ = !0;
|
|
919
919
|
f.value === "" && ($ = !1), e.objectParentType !== "" && w.value === null && ($ = !1), E.value = $;
|
|
920
920
|
}
|
|
921
|
-
le(() => e.objectCreatedResponse, () =>
|
|
921
|
+
le(() => e.objectCreatedResponse, () => H()), le(() => e.parentObjectCreatedResponse, () => C()), le(() => f.value, () => he()), le(() => w.value, () => he());
|
|
922
922
|
const Oe = I();
|
|
923
923
|
xe(Oe, () => {
|
|
924
924
|
c.value && j(!1);
|
|
@@ -942,7 +942,7 @@ const Mo = {
|
|
|
942
942
|
ref_key: "outsideRef",
|
|
943
943
|
ref: Oe
|
|
944
944
|
}, i, { class: "cl-relative" }), [
|
|
945
|
-
b("div",
|
|
945
|
+
b("div", Go, [
|
|
946
946
|
b("div", Zo, [
|
|
947
947
|
q(ze, {
|
|
948
948
|
id: v(d),
|
|
@@ -1010,7 +1010,7 @@ const Mo = {
|
|
|
1010
1010
|
re(z(v(s)("comboBox.createTitle", { object: $.objectType })), 1)
|
|
1011
1011
|
]),
|
|
1012
1012
|
trigger: U(({ open: F }) => [
|
|
1013
|
-
oe(q(
|
|
1013
|
+
oe(q(Ho, {
|
|
1014
1014
|
"can-create-new-object": $.canCreateNewObject,
|
|
1015
1015
|
"can-clear-selected-object": $.canClearSelectedObject,
|
|
1016
1016
|
loading: $.loading,
|
|
@@ -1570,10 +1570,10 @@ function ml(o, t) {
|
|
|
1570
1570
|
}
|
|
1571
1571
|
function Me(o, t, l) {
|
|
1572
1572
|
if (pl(t)) {
|
|
1573
|
-
const e =
|
|
1573
|
+
const e = He(dl, l);
|
|
1574
1574
|
return t.replace(/\{0\}/g, Pl(o, e) ?? "");
|
|
1575
1575
|
} else {
|
|
1576
|
-
const e =
|
|
1576
|
+
const e = He(El(t), l);
|
|
1577
1577
|
let n = Pl(o, e) ?? "";
|
|
1578
1578
|
if (t === "currency-without-symbol") {
|
|
1579
1579
|
const a = el(e);
|
|
@@ -1593,7 +1593,7 @@ function nt(o, t, l) {
|
|
|
1593
1593
|
return Ll(o, El(t), l);
|
|
1594
1594
|
}
|
|
1595
1595
|
function Ol(o, t) {
|
|
1596
|
-
return pl(o) ?
|
|
1596
|
+
return pl(o) ? He(dl, t) : He(El(o), t);
|
|
1597
1597
|
}
|
|
1598
1598
|
function Aa(o, t, l) {
|
|
1599
1599
|
const e = el(l);
|
|
@@ -1619,7 +1619,7 @@ function Va(o, t) {
|
|
|
1619
1619
|
function Ll(o, t, l) {
|
|
1620
1620
|
if (!o)
|
|
1621
1621
|
return NaN;
|
|
1622
|
-
const e =
|
|
1622
|
+
const e = He(t, l), n = el(e);
|
|
1623
1623
|
if (n === null)
|
|
1624
1624
|
return NaN;
|
|
1625
1625
|
const a = [
|
|
@@ -1659,7 +1659,7 @@ function el(o) {
|
|
|
1659
1659
|
return console.error(t), null;
|
|
1660
1660
|
}
|
|
1661
1661
|
}
|
|
1662
|
-
function
|
|
1662
|
+
function He(o, t) {
|
|
1663
1663
|
const l = Nl(t == null ? void 0 : t.locale) || v(Oa), e = Ea(l), n = ke(Nl(t == null ? void 0 : t.additionalOptions) ?? {});
|
|
1664
1664
|
let a = "decimal";
|
|
1665
1665
|
switch (o) {
|
|
@@ -1688,7 +1688,7 @@ function Ma(o) {
|
|
|
1688
1688
|
return !pl(o) && o !== "currency-without-symbol";
|
|
1689
1689
|
}
|
|
1690
1690
|
function Ia(o, t) {
|
|
1691
|
-
const l =
|
|
1691
|
+
const l = He(dl, t), e = el(l);
|
|
1692
1692
|
if (e === null)
|
|
1693
1693
|
return o;
|
|
1694
1694
|
const n = Ne(e, 10000.11111, "group");
|
|
@@ -1936,7 +1936,7 @@ const Fa = {
|
|
|
1936
1936
|
])) : B("", !0);
|
|
1937
1937
|
};
|
|
1938
1938
|
}
|
|
1939
|
-
}),
|
|
1939
|
+
}), Ha = /* @__PURE__ */ P({
|
|
1940
1940
|
__name: "cl-ui-grid-cell",
|
|
1941
1941
|
props: {
|
|
1942
1942
|
data: {},
|
|
@@ -2016,7 +2016,7 @@ const Fa = {
|
|
|
2016
2016
|
}, 1032, ["column", "data", "time-zone", "search-value", "row-index"]))
|
|
2017
2017
|
], 2));
|
|
2018
2018
|
}
|
|
2019
|
-
}),
|
|
2019
|
+
}), Ga = /* @__PURE__ */ P({
|
|
2020
2020
|
__name: "cl-ui-grid-row",
|
|
2021
2021
|
props: {
|
|
2022
2022
|
data: {},
|
|
@@ -2030,7 +2030,7 @@ const Fa = {
|
|
|
2030
2030
|
emits: ["cell-focus", "cell-edit", "cell-undo"],
|
|
2031
2031
|
setup(o) {
|
|
2032
2032
|
return (t, l) => (u(), h("tr", null, [
|
|
2033
|
-
(u(!0), h(W, null, x(t.columns, (e, n) => (u(), L(
|
|
2033
|
+
(u(!0), h(W, null, x(t.columns, (e, n) => (u(), L(Ha, {
|
|
2034
2034
|
key: n,
|
|
2035
2035
|
data: t.data,
|
|
2036
2036
|
column: e,
|
|
@@ -2141,7 +2141,7 @@ const Fa = {
|
|
|
2141
2141
|
}, " ", 10, Za)
|
|
2142
2142
|
]))), 128)) : B("", !0),
|
|
2143
2143
|
f.data && ((N = f.data.results) != null && N.length) && !f.initialLoad ? (u(), h(W, { key: 1 }, [
|
|
2144
|
-
(u(!0), h(W, null, x(f.data.results, (E, S) => (u(), L(
|
|
2144
|
+
(u(!0), h(W, null, x(f.data.results, (E, S) => (u(), L(Ga, {
|
|
2145
2145
|
key: S,
|
|
2146
2146
|
data: E,
|
|
2147
2147
|
options: f.options,
|
|
@@ -2242,8 +2242,8 @@ const Fa = {
|
|
|
2242
2242
|
s.value ? (N.value = Ia(j.value, {
|
|
2243
2243
|
locale: e.locale
|
|
2244
2244
|
}), E.value = !1, (K.value || e.selectOnFocus || n.value === 0) && setTimeout(() => {
|
|
2245
|
-
var
|
|
2246
|
-
(C = g.value) == null || C.setSelectionRange(0, ((
|
|
2245
|
+
var H, C;
|
|
2246
|
+
(C = g.value) == null || C.setSelectionRange(0, ((H = N.value) == null ? void 0 : H.length) ?? 0);
|
|
2247
2247
|
}), K.value = !1, a("focus")) : (E.value && A(j.value, !0), N.value = void 0, E.value = !1, a("blur"));
|
|
2248
2248
|
});
|
|
2249
2249
|
const p = k(() => ({
|
|
@@ -2259,62 +2259,62 @@ const Fa = {
|
|
|
2259
2259
|
le(n, () => N.value = void 0);
|
|
2260
2260
|
const S = k({
|
|
2261
2261
|
get: () => N.value ? ie(N.value) : n.value,
|
|
2262
|
-
set: (
|
|
2262
|
+
set: (H) => N.value = Y(H)
|
|
2263
2263
|
}), j = k({
|
|
2264
2264
|
get: () => N.value ?? Y(n.value),
|
|
2265
|
-
set(
|
|
2266
|
-
N.value =
|
|
2265
|
+
set(H) {
|
|
2266
|
+
N.value = H, E.value = !0;
|
|
2267
2267
|
}
|
|
2268
2268
|
});
|
|
2269
|
-
function _(
|
|
2270
|
-
return
|
|
2269
|
+
function _(H) {
|
|
2270
|
+
return H = e.min === null ? H : Math.max(e.min, H), H = e.max === null ? H : Math.min(e.max, H), H;
|
|
2271
2271
|
}
|
|
2272
|
-
function A(
|
|
2273
|
-
if (e.allowEmpty &&
|
|
2272
|
+
function A(H, C) {
|
|
2273
|
+
if (e.allowEmpty && H === "")
|
|
2274
2274
|
n.value = null;
|
|
2275
|
-
else if (
|
|
2276
|
-
let
|
|
2277
|
-
C && e.format === te.PERCENTAGE && !Aa(j.value, "percentSign", w.value) && (
|
|
2275
|
+
else if (H !== "") {
|
|
2276
|
+
let G = typeof H == "number" ? H : ie(H);
|
|
2277
|
+
C && e.format === te.PERCENTAGE && !Aa(j.value, "percentSign", w.value) && (G = G / f.value), isNaN(G) === !1 && (n.value = _(Math.round(G * T.value) / T.value));
|
|
2278
2278
|
}
|
|
2279
2279
|
}
|
|
2280
|
-
function Y(
|
|
2281
|
-
return
|
|
2280
|
+
function Y(H) {
|
|
2281
|
+
return H === null ? "" : e.format ? Me(H, e.format, {
|
|
2282
2282
|
locale: e.locale,
|
|
2283
2283
|
additionalOptions: p.value
|
|
2284
|
-
}) :
|
|
2284
|
+
}) : H.toString();
|
|
2285
2285
|
}
|
|
2286
|
-
function ie(
|
|
2287
|
-
return e.format ? nt(
|
|
2286
|
+
function ie(H) {
|
|
2287
|
+
return e.format ? nt(H, e.format, {
|
|
2288
2288
|
locale: e.locale,
|
|
2289
2289
|
additionalOptions: p.value
|
|
2290
|
-
}) : +
|
|
2290
|
+
}) : +H;
|
|
2291
2291
|
}
|
|
2292
|
-
function D(
|
|
2292
|
+
function D(H) {
|
|
2293
2293
|
if (e.allowKeyboardArrowKeyInput) {
|
|
2294
|
-
const C = (S.value || 0) + (
|
|
2294
|
+
const C = (S.value || 0) + (H ? -1 : 1) / T.value;
|
|
2295
2295
|
A(C, !1);
|
|
2296
2296
|
}
|
|
2297
2297
|
}
|
|
2298
2298
|
const K = I(!1);
|
|
2299
2299
|
function ce() {
|
|
2300
|
-
var
|
|
2301
|
-
K.value = !0, (
|
|
2300
|
+
var H;
|
|
2301
|
+
K.value = !0, (H = g.value) == null || H.focus();
|
|
2302
2302
|
}
|
|
2303
2303
|
return t({
|
|
2304
2304
|
focus: () => {
|
|
2305
|
-
var
|
|
2306
|
-
return (
|
|
2305
|
+
var H;
|
|
2306
|
+
return (H = g.value) == null ? void 0 : H.focus();
|
|
2307
2307
|
},
|
|
2308
2308
|
blur: () => {
|
|
2309
|
-
var
|
|
2310
|
-
return (
|
|
2309
|
+
var H;
|
|
2310
|
+
return (H = g.value) == null ? void 0 : H.blur();
|
|
2311
2311
|
},
|
|
2312
2312
|
select: () => ce()
|
|
2313
|
-
}), (
|
|
2314
|
-
const
|
|
2313
|
+
}), (H, C) => {
|
|
2314
|
+
const G = Ce("icon");
|
|
2315
2315
|
return u(), L(Re, {
|
|
2316
|
-
"show-required-asterisk":
|
|
2317
|
-
errors:
|
|
2316
|
+
"show-required-asterisk": H.required,
|
|
2317
|
+
errors: H.errors
|
|
2318
2318
|
}, we({
|
|
2319
2319
|
default: U(() => [
|
|
2320
2320
|
b("div", {
|
|
@@ -2322,16 +2322,16 @@ const Fa = {
|
|
|
2322
2322
|
ref: d,
|
|
2323
2323
|
class: "cl-relative cl-w-full"
|
|
2324
2324
|
}, [
|
|
2325
|
-
(u(), h("input", Q(
|
|
2325
|
+
(u(), h("input", Q(H.$attrs, {
|
|
2326
2326
|
ref_key: "inputRef",
|
|
2327
2327
|
ref: g,
|
|
2328
2328
|
key: i.value,
|
|
2329
2329
|
value: j.value,
|
|
2330
2330
|
class: "[&:hover:not(:focus-within)]:cl-border-grey-3 cl-bg-white cl-border cl-border-grey-2 cl-outline-none cl-p-1 cl-px-2 cl-rounded-lg cl-transition-colors disabled:cl-bg-grey-1 disabled:cl-border-grey-2 focus-within:cl-border-link-light",
|
|
2331
2331
|
type: "text",
|
|
2332
|
-
inputmode:
|
|
2333
|
-
disabled:
|
|
2334
|
-
placeholder:
|
|
2332
|
+
inputmode: H.format === v(te).DECIMAL && H.precision === 0 ? "numeric" : "decimal",
|
|
2333
|
+
disabled: H.disabled,
|
|
2334
|
+
placeholder: H.placeholder ?? void 0,
|
|
2335
2335
|
onInput: C[0] || (C[0] = (Z) => j.value = Z.target.value),
|
|
2336
2336
|
onKeydown: [
|
|
2337
2337
|
C[1] || (C[1] = ne(X((Z) => {
|
|
@@ -2344,44 +2344,44 @@ const Fa = {
|
|
|
2344
2344
|
oe(b("div", tn, [
|
|
2345
2345
|
b("button", {
|
|
2346
2346
|
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",
|
|
2347
|
-
disabled:
|
|
2347
|
+
disabled: H.disabled,
|
|
2348
2348
|
onClick: C[4] || (C[4] = (Z) => D(!1)),
|
|
2349
2349
|
onKeydown: [
|
|
2350
2350
|
C[5] || (C[5] = ne(X((Z) => D(!0), ["stop", "prevent"]), ["down"])),
|
|
2351
2351
|
C[6] || (C[6] = ne(X((Z) => D(!1), ["stop", "prevent"]), ["up"]))
|
|
2352
2352
|
]
|
|
2353
2353
|
}, [
|
|
2354
|
-
q(
|
|
2354
|
+
q(G, { icon: "ph:caret-up-bold" })
|
|
2355
2355
|
], 40, on),
|
|
2356
2356
|
b("button", {
|
|
2357
2357
|
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",
|
|
2358
|
-
disabled:
|
|
2358
|
+
disabled: H.disabled,
|
|
2359
2359
|
onClick: C[7] || (C[7] = (Z) => D(!0)),
|
|
2360
2360
|
onKeydown: [
|
|
2361
2361
|
C[8] || (C[8] = ne(X((Z) => D(!0), ["stop", "prevent"]), ["down"])),
|
|
2362
2362
|
C[9] || (C[9] = ne(X((Z) => D(!1), ["stop", "prevent"]), ["up"]))
|
|
2363
2363
|
]
|
|
2364
2364
|
}, [
|
|
2365
|
-
q(
|
|
2365
|
+
q(G, { icon: "ph:caret-down-bold" })
|
|
2366
2366
|
], 40, an)
|
|
2367
2367
|
], 512), [
|
|
2368
|
-
[fe, c.value && !
|
|
2368
|
+
[fe, c.value && !H.disabled]
|
|
2369
2369
|
])
|
|
2370
2370
|
], 512)
|
|
2371
2371
|
]),
|
|
2372
2372
|
_: 2
|
|
2373
2373
|
}, [
|
|
2374
|
-
|
|
2374
|
+
H.$slots.default ? {
|
|
2375
2375
|
name: "label",
|
|
2376
2376
|
fn: U(() => [
|
|
2377
|
-
O(
|
|
2377
|
+
O(H.$slots, "default")
|
|
2378
2378
|
]),
|
|
2379
2379
|
key: "0"
|
|
2380
2380
|
} : void 0,
|
|
2381
|
-
|
|
2381
|
+
H.$slots["help-text"] ? {
|
|
2382
2382
|
name: "helpText",
|
|
2383
2383
|
fn: U(() => [
|
|
2384
|
-
O(
|
|
2384
|
+
O(H.$slots, "help-text")
|
|
2385
2385
|
]),
|
|
2386
2386
|
key: "1"
|
|
2387
2387
|
} : void 0
|
|
@@ -3105,7 +3105,7 @@ const On = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, En = ["onClick"], An =
|
|
|
3105
3105
|
} : void 0
|
|
3106
3106
|
]), 1032, ["errors", "show-required-asterisk"]));
|
|
3107
3107
|
}
|
|
3108
|
-
}), Un = { class: "cl-gap-1 cl-grid cl-grid-cols-[auto_1fr_auto_auto] cl-pt-0.5 cl-w-full" }, zn = ["disabled"], Bn = { class: "cl-max-w-max" }, Fn = { class: "cl-flex cl-flex-col cl-gap-1 cl-w-full" }, Ln = ["min", "disabled", "required", "step", "max"], Pn = { class: "cl-bg-white cl-border cl-border-grey-2 cl-leading-none cl-rounded-full cl-text-center cl-text-xs" }, jn = ["disabled"],
|
|
3108
|
+
}), Un = { class: "cl-gap-1 cl-grid cl-grid-cols-[auto_1fr_auto_auto] cl-pt-0.5 cl-w-full" }, zn = ["disabled"], Bn = { class: "cl-max-w-max" }, Fn = { class: "cl-flex cl-flex-col cl-gap-1 cl-w-full" }, Ln = ["min", "disabled", "required", "step", "max"], Pn = { class: "cl-bg-white cl-border cl-border-grey-2 cl-leading-none cl-rounded-full cl-text-center cl-text-xs" }, jn = ["disabled"], Hn = ["disabled", "title"], Gn = /* @__PURE__ */ P({
|
|
3109
3109
|
inheritAttrs: !1,
|
|
3110
3110
|
__name: "cl-ui-input-range",
|
|
3111
3111
|
props: /* @__PURE__ */ me({
|
|
@@ -3206,7 +3206,7 @@ const On = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, En = ["onClick"], An =
|
|
|
3206
3206
|
onClick: p[4] || (p[4] = (y) => g.value = !g.value)
|
|
3207
3207
|
}, [
|
|
3208
3208
|
q(w, { icon: "ph:arrows-left-right-thin" })
|
|
3209
|
-
], 8,
|
|
3209
|
+
], 8, Hn)
|
|
3210
3210
|
])
|
|
3211
3211
|
]),
|
|
3212
3212
|
_: 2
|
|
@@ -3228,7 +3228,7 @@ const On = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, En = ["onClick"], An =
|
|
|
3228
3228
|
]), 1032, ["errors", "show-required-asterisk"]);
|
|
3229
3229
|
};
|
|
3230
3230
|
}
|
|
3231
|
-
}), Zn = /* @__PURE__ */ $e(
|
|
3231
|
+
}), Zn = /* @__PURE__ */ $e(Gn, [["__scopeId", "data-v-d2902c00"]]), gt = [
|
|
3232
3232
|
"date",
|
|
3233
3233
|
"datetime",
|
|
3234
3234
|
"time"
|
|
@@ -3485,10 +3485,10 @@ const On = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, En = ["onClick"], An =
|
|
|
3485
3485
|
function w(D) {
|
|
3486
3486
|
s.value ? K(D) : (l.canClear && e.value === D ? e.value = null : e.value = D, p());
|
|
3487
3487
|
function K(ce) {
|
|
3488
|
-
var
|
|
3488
|
+
var H;
|
|
3489
3489
|
if (Array.isArray(e.value)) {
|
|
3490
3490
|
const C = e.value.indexOf(ce);
|
|
3491
|
-
C > -1 ? (e.value.length > 1 || l.canClear) && e.value.splice(C, 1) : (
|
|
3491
|
+
C > -1 ? (e.value.length > 1 || l.canClear) && e.value.splice(C, 1) : (H = e.value) == null || H.push(ce);
|
|
3492
3492
|
}
|
|
3493
3493
|
}
|
|
3494
3494
|
}
|
|
@@ -3535,8 +3535,8 @@ const On = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, En = ["onClick"], An =
|
|
|
3535
3535
|
if (Array.isArray(e.value))
|
|
3536
3536
|
return e.value.some((ce) => K(ce, D)) ?? !1;
|
|
3537
3537
|
return K(e.value, D);
|
|
3538
|
-
function K(ce,
|
|
3539
|
-
return E(ce) && E(
|
|
3538
|
+
function K(ce, H) {
|
|
3539
|
+
return E(ce) && E(H) ? ce.id === H.id : ce === H;
|
|
3540
3540
|
}
|
|
3541
3541
|
}
|
|
3542
3542
|
function Y(D) {
|
|
@@ -3554,7 +3554,7 @@ const On = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, En = ["onClick"], An =
|
|
|
3554
3554
|
(D = g.value) == null || D.focus();
|
|
3555
3555
|
}
|
|
3556
3556
|
}), (D, K) => {
|
|
3557
|
-
const ce = Ce("icon"),
|
|
3557
|
+
const ce = Ce("icon"), H = Ce("cl-ui-select-option");
|
|
3558
3558
|
return u(), h("div", {
|
|
3559
3559
|
ref_key: "outsideRef",
|
|
3560
3560
|
ref: a,
|
|
@@ -3647,13 +3647,13 @@ const On = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, En = ["onClick"], An =
|
|
|
3647
3647
|
K[6] || (K[6] = ne(X((C) => w(l.list[n.value]), ["stop", "prevent"]), ["enter"]))
|
|
3648
3648
|
]
|
|
3649
3649
|
}), [
|
|
3650
|
-
(u(!0), h(W, null, x(D.list, (C,
|
|
3651
|
-
O(D.$slots, "default", Q({ ref_for: !0 }, { option: C, index:
|
|
3652
|
-
(u(), L(
|
|
3653
|
-
id: v(c) + "-option-" + (E(C) ? C.id :
|
|
3654
|
-
key:
|
|
3650
|
+
(u(!0), h(W, null, x(D.list, (C, G) => (u(), h("div", { key: G }, [
|
|
3651
|
+
O(D.$slots, "default", Q({ ref_for: !0 }, { option: C, index: G, select: w, highlightIndex: n.value, isSelected: A }), () => [
|
|
3652
|
+
(u(), L(H, {
|
|
3653
|
+
id: v(c) + "-option-" + (E(C) ? C.id : G),
|
|
3654
|
+
key: G,
|
|
3655
3655
|
disabled: D.disabled,
|
|
3656
|
-
"is-highlighted": n.value ===
|
|
3656
|
+
"is-highlighted": n.value === G,
|
|
3657
3657
|
"is-selected": A(C),
|
|
3658
3658
|
onSelect: (Z) => w(C)
|
|
3659
3659
|
}, {
|
|
@@ -3799,7 +3799,7 @@ const is = {
|
|
|
3799
3799
|
"datetime"
|
|
3800
3800
|
],
|
|
3801
3801
|
key: "before"
|
|
3802
|
-
},
|
|
3802
|
+
}, Hl = [
|
|
3803
3803
|
us,
|
|
3804
3804
|
{
|
|
3805
3805
|
method: "notcontains",
|
|
@@ -3899,7 +3899,7 @@ const is = {
|
|
|
3899
3899
|
setup(o, { emit: t }) {
|
|
3900
3900
|
const l = o, e = t, { t: n } = ue(), a = k(() => {
|
|
3901
3901
|
let c = [];
|
|
3902
|
-
return l.column.type !== "slot" ? c =
|
|
3902
|
+
return l.column.type !== "slot" ? c = Hl.filter((p) => p.allowedTypes.includes(l.column.type)) : typeof l.column.slotType < "u" && typeof l.column.field < "u" && (c = Hl.filter((p) => p.allowedTypes.includes(l.column.slotType))), l.column.type === "date" || l.column.type === "datetime" || l.column.slotType === "date" || l.column.slotType === "datetime" ? c.forEach((p) => {
|
|
3903
3903
|
p.description = n(`grid.${p.key}`);
|
|
3904
3904
|
}) : c.forEach((p) => {
|
|
3905
3905
|
p.description = n(`grid.${p.method}`);
|
|
@@ -3974,7 +3974,7 @@ const is = {
|
|
|
3974
3974
|
id: -1,
|
|
3975
3975
|
name: "",
|
|
3976
3976
|
value: ""
|
|
3977
|
-
},
|
|
3977
|
+
}, Gl = k(() => [
|
|
3978
3978
|
yt,
|
|
3979
3979
|
{
|
|
3980
3980
|
id: 0,
|
|
@@ -4018,7 +4018,7 @@ const is = {
|
|
|
4018
4018
|
const d = k({
|
|
4019
4019
|
get: () => l.filter,
|
|
4020
4020
|
set: (R) => e("update:filter", R)
|
|
4021
|
-
}), g = k(() => l.column.type === "date" || l.column.type === "datetime" || l.column.type === "slot" && (l.column.slotType === "date" || l.column.slotType === "datetime")), r = k(() => l.column.type === "dateRange" || l.column.type === "slot" && l.column.slotType === "dateRange"), s = k(() => l.column.type === "list" || l.column.type === "slot" && l.column.slotType === "list"), c = k(() => s.value && l.column.listType === "number"), p = k(() => l.column.type === "string" || l.column.type === "slot" && l.column.slotType === "string"), w = k(() => l.column.format === te.INTEGER ? te.DECIMAL : l.column.format ?? te.DECIMAL), y = k(() =>
|
|
4021
|
+
}), g = k(() => l.column.type === "date" || l.column.type === "datetime" || l.column.type === "slot" && (l.column.slotType === "date" || l.column.slotType === "datetime")), r = k(() => l.column.type === "dateRange" || l.column.type === "slot" && l.column.slotType === "dateRange"), s = k(() => l.column.type === "list" || l.column.type === "slot" && l.column.slotType === "list"), c = k(() => s.value && l.column.listType === "number"), p = k(() => l.column.type === "string" || l.column.type === "slot" && l.column.slotType === "string"), w = k(() => l.column.format === te.INTEGER ? te.DECIMAL : l.column.format ?? te.DECIMAL), y = k(() => Gl.value.find((R) => R.value === Y.value.toString()) ?? null), f = k(() => {
|
|
4022
4022
|
var R;
|
|
4023
4023
|
return [
|
|
4024
4024
|
yt,
|
|
@@ -4177,7 +4177,7 @@ const is = {
|
|
|
4177
4177
|
S.value = m;
|
|
4178
4178
|
}
|
|
4179
4179
|
}
|
|
4180
|
-
function
|
|
4180
|
+
function H(R, $) {
|
|
4181
4181
|
let m = (R == null ? void 0 : R.value) ?? $ ?? 0;
|
|
4182
4182
|
if (typeof m == "string") {
|
|
4183
4183
|
const M = l.column.format === te.INTEGER, F = (M ? te.DECIMAL : l.column.format) ?? te.DECIMAL;
|
|
@@ -4205,12 +4205,12 @@ const is = {
|
|
|
4205
4205
|
return;
|
|
4206
4206
|
m === !1 && (S.value = $);
|
|
4207
4207
|
}
|
|
4208
|
-
const
|
|
4208
|
+
const G = I("");
|
|
4209
4209
|
function Z(R) {
|
|
4210
|
-
N.value = !1, R === "Enter" && (N.value = !0, ce(null,
|
|
4210
|
+
N.value = !1, R === "Enter" && (N.value = !0, ce(null, G.value));
|
|
4211
4211
|
}
|
|
4212
4212
|
le(() => Y.value, () => {
|
|
4213
|
-
|
|
4213
|
+
G.value = Y.value;
|
|
4214
4214
|
}, {
|
|
4215
4215
|
immediate: !0
|
|
4216
4216
|
});
|
|
@@ -4232,7 +4232,7 @@ const is = {
|
|
|
4232
4232
|
R.column.type === "boolean" || R.column.type === "slot" && R.column.slotType === "boolean" ? (u(), L(wl, {
|
|
4233
4233
|
key: 0,
|
|
4234
4234
|
id: `${v(qe)}-${R.column.name}`,
|
|
4235
|
-
list: v(
|
|
4235
|
+
list: v(Gl),
|
|
4236
4236
|
disabled: R.loading,
|
|
4237
4237
|
"is-grid-filter": !0,
|
|
4238
4238
|
class: "!cl-min-h-0 !cl-rounded-lg cl-bg-white cl-font-normal",
|
|
@@ -4285,7 +4285,7 @@ const is = {
|
|
|
4285
4285
|
readonly: R.loading,
|
|
4286
4286
|
"show-arrows": !1,
|
|
4287
4287
|
"allow-empty": !0,
|
|
4288
|
-
"onUpdate:modelValue": $[3] || ($[3] = (m) => m !== null ?
|
|
4288
|
+
"onUpdate:modelValue": $[3] || ($[3] = (m) => m !== null ? H(null, m) : ce(null, ""))
|
|
4289
4289
|
}, {
|
|
4290
4290
|
default: U(() => $[9] || ($[9] = [
|
|
4291
4291
|
b("span", null, null, -1)
|
|
@@ -4295,9 +4295,9 @@ const is = {
|
|
|
4295
4295
|
])) : R.column.type === "string" || R.column.type === "slot" && R.column.slotType === "string" ? (u(), h("div", bs, [
|
|
4296
4296
|
q(ze, {
|
|
4297
4297
|
id: `${v(qe)}-${R.column.name}`,
|
|
4298
|
-
modelValue:
|
|
4298
|
+
modelValue: G.value,
|
|
4299
4299
|
"onUpdate:modelValue": [
|
|
4300
|
-
$[4] || ($[4] = (m) =>
|
|
4300
|
+
$[4] || ($[4] = (m) => G.value = m),
|
|
4301
4301
|
$[5] || ($[5] = (m) => ce(null, m))
|
|
4302
4302
|
],
|
|
4303
4303
|
class: "cl-border-none cl-font-normal cl-h-[2rem] cl-px-3 cl-text-xs lg:cl-text-base readonly-filter",
|
|
@@ -4317,7 +4317,7 @@ const is = {
|
|
|
4317
4317
|
class: "!cl-max-h-52 !cl-min-h-0 !cl-rounded-lg cl-bg-white cl-font-normal",
|
|
4318
4318
|
disabled: R.loading,
|
|
4319
4319
|
"is-grid-filter": !0,
|
|
4320
|
-
"onUpdate:modelValue": $[6] || ($[6] = (m) => c.value ?
|
|
4320
|
+
"onUpdate:modelValue": $[6] || ($[6] = (m) => c.value ? H(null, m == null ? void 0 : m.value) : ce(null, m == null ? void 0 : m.value))
|
|
4321
4321
|
}, {
|
|
4322
4322
|
default: U(({ select: m, option: M, index: F, highlightIndex: pe, isSelected: de }) => [
|
|
4323
4323
|
q(kl, {
|
|
@@ -4721,7 +4721,7 @@ const is = {
|
|
|
4721
4721
|
]))
|
|
4722
4722
|
], 64));
|
|
4723
4723
|
}
|
|
4724
|
-
}),
|
|
4724
|
+
}), Hs = { class: "cl-relative cl-w-full grid-wrapper lg:cl-min-h-fit" }, Gs = {
|
|
4725
4725
|
key: 0,
|
|
4726
4726
|
class: "cl-absolute cl-flex cl-items-center cl-justify-center cl-min-h-full cl-p-28 cl-pt-0 cl-w-full"
|
|
4727
4727
|
}, Zs = { class: "cl-overflow-x-auto cl-overscroll-x-none cl-pt-1" }, Ws = /* @__PURE__ */ P({
|
|
@@ -4736,10 +4736,10 @@ const is = {
|
|
|
4736
4736
|
headerDisplayTimezone: { default: null },
|
|
4737
4737
|
dateFormatLocale: { default: null }
|
|
4738
4738
|
},
|
|
4739
|
-
emits: ["update:columns", "update:request", "data-request", "row-edit", "row-edit-cancelled", "edit-start", "edit-end", "row-select", "view-manager-visible"],
|
|
4739
|
+
emits: ["update:columns", "update:request", "data-request", "row-edit", "row-edit-cancelled", "edit-start", "edit-end", "row-select", "view-manager-visible", "clear-filters-clicked"],
|
|
4740
4740
|
setup(o, { expose: t, emit: l }) {
|
|
4741
|
-
var
|
|
4742
|
-
const e = o, n = l, { lg: a } = Gt
|
|
4741
|
+
var H;
|
|
4742
|
+
const e = o, n = l, { lg: a } = Ht(Gt), i = Object.keys(Mt()).some((C) => C.endsWith("BulkEdit")), d = Ze();
|
|
4743
4743
|
vl("cl-ui-grid-id", d.id);
|
|
4744
4744
|
const g = k(() => e.headerDisplayTimezone ?? e.timeZone), r = k(() => e.dateFormatLocale);
|
|
4745
4745
|
vl(ul, r);
|
|
@@ -4748,9 +4748,9 @@ const is = {
|
|
|
4748
4748
|
set: (C) => n("update:columns", C)
|
|
4749
4749
|
}), c = k(() => s.value.filter((C) => C.visible ?? !0)), p = I({});
|
|
4750
4750
|
function w() {
|
|
4751
|
-
var
|
|
4751
|
+
var G;
|
|
4752
4752
|
const C = {};
|
|
4753
|
-
(window.innerWidth >= 1024 || (
|
|
4753
|
+
(window.innerWidth >= 1024 || (G = e.options) != null && G.hideGridMobileView) && s.value.forEach((Z) => {
|
|
4754
4754
|
const he = Z.width ? `${Z.width}px` : "";
|
|
4755
4755
|
C[`${Z.name}`] = `width: ${he}; min-width: ${he};`;
|
|
4756
4756
|
}), p.value = C;
|
|
@@ -4764,7 +4764,7 @@ const is = {
|
|
|
4764
4764
|
});
|
|
4765
4765
|
function T() {
|
|
4766
4766
|
const C = ke(f.value);
|
|
4767
|
-
C.pageNumber = 1, C.filters = [], ie.value = "", f.value = C;
|
|
4767
|
+
C.pageNumber = 1, C.filters = [], ie.value = "", f.value = C, n("clear-filters-clicked");
|
|
4768
4768
|
}
|
|
4769
4769
|
const N = Zt(() => n("data-request"), 400);
|
|
4770
4770
|
le(f, () => {
|
|
@@ -4796,30 +4796,30 @@ const is = {
|
|
|
4796
4796
|
})), Y = k({
|
|
4797
4797
|
get() {
|
|
4798
4798
|
const C = ke(f.value);
|
|
4799
|
-
return C.filters = C.filters.filter((
|
|
4799
|
+
return C.filters = C.filters.filter((G) => G.filterMethod !== "andcontains" && G.filterOperation !== ae.AND_CONTAINS), C;
|
|
4800
4800
|
},
|
|
4801
4801
|
set(C) {
|
|
4802
|
-
const
|
|
4802
|
+
const G = [
|
|
4803
4803
|
...C.filters,
|
|
4804
4804
|
...f.value.filters.filter((Z) => Z.filterMethod === "andcontains" || Z.filterOperation === ae.AND_CONTAINS)
|
|
4805
4805
|
];
|
|
4806
4806
|
f.value = {
|
|
4807
4807
|
...C,
|
|
4808
|
-
filters:
|
|
4808
|
+
filters: G
|
|
4809
4809
|
};
|
|
4810
4810
|
}
|
|
4811
|
-
}), ie = I(((
|
|
4811
|
+
}), ie = I(((H = e.request.filters.find((C) => C.filterMethod === "andcontains" || C.filterOperation === ae.AND_CONTAINS)) == null ? void 0 : H.filterValue) ?? ""), D = k(() => e.columns.filter((C) => (C.type === "string" || C.type === "slot" && C.slotType === "string") && C.searchable)), K = I(!0);
|
|
4812
4812
|
le(() => e.loading, () => {
|
|
4813
4813
|
K.value = !1;
|
|
4814
4814
|
}, {
|
|
4815
4815
|
once: !0
|
|
4816
|
-
}),
|
|
4816
|
+
}), Ge(() => {
|
|
4817
4817
|
window.addEventListener("resize", Je(w, 50)), w();
|
|
4818
4818
|
}), Tl(() => window.removeEventListener("resize", Je(w, 50))), le(() => e.data, () => {
|
|
4819
4819
|
C();
|
|
4820
4820
|
function C() {
|
|
4821
|
-
var
|
|
4822
|
-
((
|
|
4821
|
+
var G;
|
|
4822
|
+
((G = e.data) == null ? void 0 : G.results.length) === 0 && f.value.pageNumber > 1 && (f.value.pageNumber = e.data.totalRecords > 0 ? Math.ceil(e.data.totalRecords / f.value.pageSize) : 1);
|
|
4823
4823
|
}
|
|
4824
4824
|
});
|
|
4825
4825
|
const ce = I();
|
|
@@ -4828,7 +4828,7 @@ const is = {
|
|
|
4828
4828
|
var C;
|
|
4829
4829
|
return (C = ce.value) == null ? void 0 : C.focusMegaSearch();
|
|
4830
4830
|
}
|
|
4831
|
-
}), (C,
|
|
4831
|
+
}), (C, G) => (u(), h("div", Hs, [
|
|
4832
4832
|
K.value && D.value.length > 0 ? (u(), L(v(Dl), {
|
|
4833
4833
|
key: 0,
|
|
4834
4834
|
class: "cl-h-[39px] cl-mb-2"
|
|
@@ -4837,9 +4837,9 @@ const is = {
|
|
|
4837
4837
|
ref_key: "gridSearchRef",
|
|
4838
4838
|
ref: ce,
|
|
4839
4839
|
"search-value": ie.value,
|
|
4840
|
-
"onUpdate:searchValue":
|
|
4840
|
+
"onUpdate:searchValue": G[0] || (G[0] = (Z) => ie.value = Z),
|
|
4841
4841
|
request: f.value,
|
|
4842
|
-
"onUpdate:request":
|
|
4842
|
+
"onUpdate:request": G[1] || (G[1] = (Z) => f.value = Z),
|
|
4843
4843
|
columns: D.value
|
|
4844
4844
|
}, {
|
|
4845
4845
|
search: U((Z) => [
|
|
@@ -4849,7 +4849,7 @@ const is = {
|
|
|
4849
4849
|
}, 8, ["search-value", "request", "columns"])) : B("", !0),
|
|
4850
4850
|
q(Ie, { name: "fade" }, {
|
|
4851
4851
|
default: U(() => [
|
|
4852
|
-
C.loading && K.value === !1 ? (u(), h("div",
|
|
4852
|
+
C.loading && K.value === !1 ? (u(), h("div", Gs, [
|
|
4853
4853
|
q(_e, { class: "after:!cl-h-20 after:!cl-w-20 cl-h-20 cl-w-20" })
|
|
4854
4854
|
])) : B("", !0)
|
|
4855
4855
|
]),
|
|
@@ -4857,9 +4857,9 @@ const is = {
|
|
|
4857
4857
|
}),
|
|
4858
4858
|
q(ka, {
|
|
4859
4859
|
"edit-mode": S.value,
|
|
4860
|
-
"onUpdate:editMode":
|
|
4860
|
+
"onUpdate:editMode": G[4] || (G[4] = (Z) => S.value = Z),
|
|
4861
4861
|
"filter-panel-open": _.value,
|
|
4862
|
-
"onUpdate:filterPanelOpen":
|
|
4862
|
+
"onUpdate:filterPanelOpen": G[5] || (G[5] = (Z) => _.value = Z),
|
|
4863
4863
|
"can-bulk-edit": v(i) && (C.options.hideGridMobileView || v(a)),
|
|
4864
4864
|
columns: C.columns,
|
|
4865
4865
|
options: A.value,
|
|
@@ -4874,9 +4874,9 @@ const is = {
|
|
|
4874
4874
|
"view-manager": U(() => [
|
|
4875
4875
|
q(js, {
|
|
4876
4876
|
columns: s.value,
|
|
4877
|
-
"onUpdate:columns":
|
|
4877
|
+
"onUpdate:columns": G[2] || (G[2] = (Z) => s.value = Z),
|
|
4878
4878
|
loading: C.loading,
|
|
4879
|
-
onViewManagerVisible:
|
|
4879
|
+
onViewManagerVisible: G[3] || (G[3] = (Z) => n("view-manager-visible", Z))
|
|
4880
4880
|
}, null, 8, ["columns", "loading"])
|
|
4881
4881
|
]),
|
|
4882
4882
|
_: 3
|
|
@@ -4900,9 +4900,9 @@ const is = {
|
|
|
4900
4900
|
], 2),
|
|
4901
4901
|
q(qs, {
|
|
4902
4902
|
request: Y.value,
|
|
4903
|
-
"onUpdate:request":
|
|
4903
|
+
"onUpdate:request": G[6] || (G[6] = (Z) => Y.value = Z),
|
|
4904
4904
|
"filter-panel-open": _.value,
|
|
4905
|
-
"onUpdate:filterPanelOpen":
|
|
4905
|
+
"onUpdate:filterPanelOpen": G[7] || (G[7] = (Z) => _.value = Z),
|
|
4906
4906
|
columns: c.value,
|
|
4907
4907
|
options: A.value,
|
|
4908
4908
|
loading: C.loading,
|
|
@@ -4910,7 +4910,7 @@ const is = {
|
|
|
4910
4910
|
"bulk-edit-mode": v(i) && S.value && (C.options.hideGridMobileView || v(a)),
|
|
4911
4911
|
"time-zone": C.timeZone,
|
|
4912
4912
|
"header-display-timezone": g.value,
|
|
4913
|
-
onPerformDataRequest:
|
|
4913
|
+
onPerformDataRequest: G[8] || (G[8] = (Z) => n("data-request"))
|
|
4914
4914
|
}, we({ _: 2 }, [
|
|
4915
4915
|
x(C.$slots, (Z, he) => ({
|
|
4916
4916
|
name: he,
|
|
@@ -4930,9 +4930,9 @@ const is = {
|
|
|
4930
4930
|
options: A.value,
|
|
4931
4931
|
"edit-mode": j.value,
|
|
4932
4932
|
onClearFilters: T,
|
|
4933
|
-
onRowEdit:
|
|
4934
|
-
onRowEditCancelled:
|
|
4935
|
-
onRowSelect:
|
|
4933
|
+
onRowEdit: G[9] || (G[9] = (Z) => C.$emit("row-edit", Z)),
|
|
4934
|
+
onRowEditCancelled: G[10] || (G[10] = (Z) => C.$emit("row-edit-cancelled", Z)),
|
|
4935
|
+
onRowSelect: G[11] || (G[11] = (Z) => C.$emit("row-select", Z))
|
|
4936
4936
|
}, we({ _: 2 }, [
|
|
4937
4937
|
x(C.$slots, (Z, he) => ({
|
|
4938
4938
|
name: he,
|
|
@@ -4951,7 +4951,7 @@ const is = {
|
|
|
4951
4951
|
"show-unsaved-changes-warning": j.value && A.value.disableUnsavedChangesWarning === !1,
|
|
4952
4952
|
data: C.data,
|
|
4953
4953
|
options: A.value,
|
|
4954
|
-
"onUpdate:request":
|
|
4954
|
+
"onUpdate:request": G[12] || (G[12] = (Z) => {
|
|
4955
4955
|
j.value = !1, f.value = Z;
|
|
4956
4956
|
})
|
|
4957
4957
|
}, null, 8, ["request", "loading", "initial-load", "show-unsaved-changes-warning", "data", "options"])) : B("", !0)
|
|
@@ -5991,7 +5991,7 @@ function Ql(o, t) {
|
|
|
5991
5991
|
const l = o.target;
|
|
5992
5992
|
return Lr(t) ? l.valueAsNumber : Ke(t) ? l.checked : l.value;
|
|
5993
5993
|
}
|
|
5994
|
-
const jr = { class: "cl-flex cl-justify-between" },
|
|
5994
|
+
const jr = { class: "cl-flex cl-justify-between" }, Hr = { class: "cl-w-full" }, Gr = {
|
|
5995
5995
|
key: 0,
|
|
5996
5996
|
class: "cl-block cl-left-auto cl-relative cl-text-danger-default"
|
|
5997
5997
|
}, Zr = {
|
|
@@ -6097,7 +6097,7 @@ const jr = { class: "cl-flex cl-justify-between" }, Gr = { class: "cl-w-full" },
|
|
|
6097
6097
|
let m = "";
|
|
6098
6098
|
return e.inputType === "color" && p.value && (e.disabled ? m = "background: #999999" : m = `background: ${p.value};`), m;
|
|
6099
6099
|
}
|
|
6100
|
-
function
|
|
6100
|
+
function H(m) {
|
|
6101
6101
|
Ke(e.inputType) ? (m.preventDefault(), n("click", m)) : e.inputType === "checkbox" && n("click", m);
|
|
6102
6102
|
}
|
|
6103
6103
|
function C(m) {
|
|
@@ -6109,7 +6109,7 @@ const jr = { class: "cl-flex cl-justify-between" }, Gr = { class: "cl-w-full" },
|
|
|
6109
6109
|
n("input", M, a.value.valueAsNumber), n("change", m, a.value.valueAsNumber);
|
|
6110
6110
|
}
|
|
6111
6111
|
}
|
|
6112
|
-
function
|
|
6112
|
+
function G(m) {
|
|
6113
6113
|
if (a.value) {
|
|
6114
6114
|
a.value.stepDown(), a.value.focus(), D(a.value.valueAsNumber, !1);
|
|
6115
6115
|
const M = {
|
|
@@ -6139,7 +6139,7 @@ const jr = { class: "cl-flex cl-justify-between" }, Gr = { class: "cl-w-full" },
|
|
|
6139
6139
|
async function $() {
|
|
6140
6140
|
await he(), Oe();
|
|
6141
6141
|
}
|
|
6142
|
-
return
|
|
6142
|
+
return Ge(() => {
|
|
6143
6143
|
e.validateImmediately && D(e.modelValue, !0);
|
|
6144
6144
|
}), le(() => e.isRequired, () => D(e.modelValue, !0)), le(() => e.externalErrors, async () => {
|
|
6145
6145
|
await K(p.value), n("update:model-value", p.value);
|
|
@@ -6166,12 +6166,12 @@ const jr = { class: "cl-flex cl-justify-between" }, Gr = { class: "cl-w-full" },
|
|
|
6166
6166
|
onMouseleave: M[14] || (M[14] = (F) => Z(!1))
|
|
6167
6167
|
}, [
|
|
6168
6168
|
b("div", jr, [
|
|
6169
|
-
b("div",
|
|
6169
|
+
b("div", Hr, [
|
|
6170
6170
|
oe(b("label", { class: "cl-block cl-mb-1 cl-text-grey-4 cl-text-xs cl-tracking-widest" }, z(m.label), 513), [
|
|
6171
6171
|
[fe, m.showLabel && m.label !== ""]
|
|
6172
6172
|
])
|
|
6173
6173
|
]),
|
|
6174
|
-
r.value ? (u(), h("label",
|
|
6174
|
+
r.value ? (u(), h("label", Gr, " * ")) : m.isRequired && m.requiredText.length ? (u(), h("label", Zr, z(m.requiredText), 1)) : B("", !0)
|
|
6175
6175
|
]),
|
|
6176
6176
|
m.inputType !== "range" && m.inputType !== "currency" && !v(Kl)(m.inputType) ? (u(), h("div", Wr, [
|
|
6177
6177
|
oe(b("input", Q({
|
|
@@ -6200,7 +6200,7 @@ const jr = { class: "cl-flex cl-justify-between" }, Gr = { class: "cl-w-full" },
|
|
|
6200
6200
|
placeholder: s.value,
|
|
6201
6201
|
name: m.group,
|
|
6202
6202
|
autocomplete: m.autocomplete,
|
|
6203
|
-
onClick: M[1] || (M[1] = (F) =>
|
|
6203
|
+
onClick: M[1] || (M[1] = (F) => H(F)),
|
|
6204
6204
|
onFocus: M[2] || (M[2] = (F) => n("focus")),
|
|
6205
6205
|
onBlur: X($, ["self"]),
|
|
6206
6206
|
onMousewheelPassive: qe,
|
|
@@ -6227,7 +6227,7 @@ const jr = { class: "cl-flex cl-justify-between" }, Gr = { class: "cl-w-full" },
|
|
|
6227
6227
|
q(v(ee), {
|
|
6228
6228
|
icon: "ph:caret-down-bold",
|
|
6229
6229
|
class: "cl-absolute cl-bg-link-default cl-bottom-2 cl-right-1 cl-rounded-full cl-text-sm cl-text-white hover:cl-bg-link-light hover:cl-cursor-pointer",
|
|
6230
|
-
onClick:
|
|
6230
|
+
onClick: G,
|
|
6231
6231
|
onMousedown: M[5] || (M[5] = X(() => {
|
|
6232
6232
|
}, ["prevent"]))
|
|
6233
6233
|
})
|
|
@@ -6717,12 +6717,13 @@ function Pi(o, t) {
|
|
|
6717
6717
|
O(o.$slots, "default")
|
|
6718
6718
|
]);
|
|
6719
6719
|
}
|
|
6720
|
-
const ji = /* @__PURE__ */ $e(Fi, [["render", Pi]]),
|
|
6720
|
+
const ji = /* @__PURE__ */ $e(Fi, [["render", Pi]]), Hi = /* @__PURE__ */ P({
|
|
6721
6721
|
__name: "cl-ui-tab",
|
|
6722
6722
|
props: {
|
|
6723
6723
|
colour: { default: "default" },
|
|
6724
6724
|
layout: { default: "horizontal" },
|
|
6725
|
-
overflowHidden: { type: Boolean, default: !0 }
|
|
6725
|
+
overflowHidden: { type: Boolean, default: !0 },
|
|
6726
|
+
stickyHeader: { type: Boolean, default: !1 }
|
|
6726
6727
|
},
|
|
6727
6728
|
emits: ["tab-opened"],
|
|
6728
6729
|
setup(o, { expose: t, emit: l }) {
|
|
@@ -6743,20 +6744,21 @@ const ji = /* @__PURE__ */ $e(Fi, [["render", Pi]]), Gi = /* @__PURE__ */ P({
|
|
|
6743
6744
|
function c(p) {
|
|
6744
6745
|
typeof p == "number" && s(p);
|
|
6745
6746
|
}
|
|
6746
|
-
return
|
|
6747
|
+
return Ge(() => {
|
|
6747
6748
|
s(a.value[0].id);
|
|
6748
6749
|
}), t({
|
|
6749
6750
|
setTab: c
|
|
6750
6751
|
}), (p, w) => (u(), h("div", {
|
|
6751
6752
|
class: V(["cl-w-full", {
|
|
6752
|
-
"cl-flex cl-flex-row cl-gap-4 xl:cl-gap-6
|
|
6753
|
+
"cl-flex cl-flex-row cl-gap-4 xl:cl-gap-6": g.value === !1
|
|
6753
6754
|
}])
|
|
6754
6755
|
}, [
|
|
6755
6756
|
b("div", {
|
|
6756
6757
|
class: V(["cl-flex cl-flex-nowrap", [
|
|
6757
6758
|
g.value === !1 ? "cl-items-start" : "cl-items-center cl-w-full",
|
|
6758
6759
|
{
|
|
6759
|
-
"cl-border-r cl-h-full cl-border-grey-1": g.value === !1
|
|
6760
|
+
"cl-border-r cl-h-full cl-border-grey-1": g.value === !1,
|
|
6761
|
+
"cl-bg-white cl-sticky cl-top-0 cl-z-[21]": p.stickyHeader
|
|
6760
6762
|
}
|
|
6761
6763
|
]])
|
|
6762
6764
|
}, [
|
|
@@ -6782,7 +6784,7 @@ const ji = /* @__PURE__ */ $e(Fi, [["render", Pi]]), Gi = /* @__PURE__ */ P({
|
|
|
6782
6784
|
])
|
|
6783
6785
|
], 2));
|
|
6784
6786
|
}
|
|
6785
|
-
}),
|
|
6787
|
+
}), Gi = ["inert"], Zi = /* @__PURE__ */ P({
|
|
6786
6788
|
__name: "cl-ui-tab-header",
|
|
6787
6789
|
props: {
|
|
6788
6790
|
open: { type: Boolean },
|
|
@@ -6811,7 +6813,7 @@ const ji = /* @__PURE__ */ $e(Fi, [["render", Pi]]), Gi = /* @__PURE__ */ P({
|
|
|
6811
6813
|
O(e.$slots, "default", {}, () => [
|
|
6812
6814
|
re(z(e.title), 1)
|
|
6813
6815
|
])
|
|
6814
|
-
], 10,
|
|
6816
|
+
], 10, Gi));
|
|
6815
6817
|
}
|
|
6816
6818
|
}), Wi = { key: 0 }, Ki = { class: "cl-font-bold cl-mb-4" }, Qi = /* @__PURE__ */ P({
|
|
6817
6819
|
__name: "cl-ui-tab-content",
|
|
@@ -6876,7 +6878,7 @@ const ji = /* @__PURE__ */ $e(Fi, [["render", Pi]]), Gi = /* @__PURE__ */ P({
|
|
|
6876
6878
|
"dragleave",
|
|
6877
6879
|
"drop"
|
|
6878
6880
|
], s = I(!1);
|
|
6879
|
-
|
|
6881
|
+
Ge(() => {
|
|
6880
6882
|
r.forEach((y) => {
|
|
6881
6883
|
document.body.addEventListener(y, (f) => f.preventDefault());
|
|
6882
6884
|
});
|
|
@@ -7352,7 +7354,7 @@ const Ou = { class: "cl-flex cl-flex-nowrap cl-flex-row cl-w-full" }, Eu = { cla
|
|
|
7352
7354
|
], T, {
|
|
7353
7355
|
flush: "post",
|
|
7354
7356
|
deep: !0
|
|
7355
|
-
}),
|
|
7357
|
+
}), Ge(T), (E, S) => {
|
|
7356
7358
|
const j = Ce("icon"), _ = Ce("cl-ui-tree-list-subtree", !0);
|
|
7357
7359
|
return u(), h("div", Ou, [
|
|
7358
7360
|
b("div", Eu, [
|
|
@@ -7542,7 +7544,7 @@ const Ou = { class: "cl-flex cl-flex-nowrap cl-flex-row cl-w-full" }, Eu = { cla
|
|
|
7542
7544
|
clUiRadioGroup: nu,
|
|
7543
7545
|
clUiSelect: wl,
|
|
7544
7546
|
clUiSelectOption: kl,
|
|
7545
|
-
clUiTab:
|
|
7547
|
+
clUiTab: Hi,
|
|
7546
7548
|
clUiTabContent: Qi,
|
|
7547
7549
|
clUiTabHeader: Zi,
|
|
7548
7550
|
clUiToggle: lu,
|
|
@@ -7638,7 +7640,7 @@ export {
|
|
|
7638
7640
|
nu as clUiRadioGroup,
|
|
7639
7641
|
wl as clUiSelect,
|
|
7640
7642
|
kl as clUiSelectOption,
|
|
7641
|
-
|
|
7643
|
+
Hi as clUiTab,
|
|
7642
7644
|
Qi as clUiTabContent,
|
|
7643
7645
|
Zi as clUiTabHeader,
|
|
7644
7646
|
lu as clUiToggle,
|