@citruslime/ui 4.0.0-beta.6 → 4.0.0-beta.7
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 +66 -66
- package/dist/citrus-lime-ui.umd.js +1 -1
- package/package.json +1 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { Icon as le } from "@iconify/vue";
|
|
2
|
-
import { defineComponent as j, ref as V, openBlock as u, createElementBlock as g, renderSlot as D, normalizeProps as me, guardReactiveProps as be, Fragment as K, createElementVNode as h, normalizeClass as O, createVNode as q, unref as m, Transition as Ne, withCtx as M, withDirectives as se, mergeProps as Q, vShow as fe, createBlock as L, Teleport as Tl, renderList as _, toDisplayString as R, createCommentVNode as U, computed as $, createTextVNode as ue, mergeModels as de, useModel as ke, createSlots as ye, vModelDynamic as Yl, watch as te, toRefs as Jl, withKeys as re, onMounted as
|
|
2
|
+
import { defineComponent as j, ref as V, openBlock as u, createElementBlock as g, renderSlot as D, normalizeProps as me, guardReactiveProps as be, Fragment as K, createElementVNode as h, normalizeClass as O, createVNode as q, unref as m, Transition as Ne, withCtx as M, withDirectives as se, mergeProps as Q, vShow as fe, createBlock as L, Teleport as Tl, renderList as _, toDisplayString as R, useAttrs as Fe, createCommentVNode as U, computed as $, createTextVNode as ue, mergeModels as de, useModel as ke, createSlots as ye, vModelDynamic as Yl, watch as te, toRefs as Jl, withKeys as re, onMounted as Ze, onUnmounted as Cl, withModifiers as x, nextTick as je, resolveComponent as Se, inject as il, vModelCheckbox as At, toValue as Il, watchEffect as Vt, vModelText as Sl, useCssVars as Xl, toHandlers as Mt, useSlots as It, provide as vl, normalizeStyle as xl, isRef as Nt } from "vue";
|
|
3
3
|
import { generateStringId as Rt, highlightText as Ut, validateEmail as zt, escapeStringForRegExp as Bt } from "@citruslime/utils";
|
|
4
4
|
import { onKeyDown as hl, unrefElement as Lt, tryOnScopeDispose as Ft, onClickOutside as xe, useTimeoutFn as _l, useMouseInElement as jt, useFocusWithin as Pt, useMediaQuery as et, useThrottle as Ht, useElementBounding as bl, useDebounceFn as Je, useBreakpoints as lt, breakpointsTailwind as tt, useThrottleFn as Gt, useWindowSize as Zt, useElementSize as Nl } from "@vueuse/core";
|
|
5
5
|
import { useI18n as ce, createI18n as Wt } from "vue-i18n";
|
|
6
6
|
import { createFocusTrap as Kt } from "focus-trap";
|
|
7
7
|
import { copy as we } from "@citruslime/vue-utils";
|
|
8
8
|
import { DateTime as Y } from "luxon";
|
|
9
|
-
import { DatePicker as
|
|
9
|
+
import { DatePicker as Pe } from "v-calendar";
|
|
10
10
|
import { useCurrencyInput as Qt } from "vue-currency-input";
|
|
11
11
|
const Yt = { class: "cl-overflow-hidden" }, Jt = /* @__PURE__ */ j({
|
|
12
12
|
__name: "cl-ui-accordion",
|
|
@@ -192,43 +192,43 @@ const _e = /* @__PURE__ */ Te(uo, [["render", po], ["__scopeId", "data-v-a21dc5d
|
|
|
192
192
|
disabled: { type: Boolean, default: !1 }
|
|
193
193
|
},
|
|
194
194
|
setup(o, { expose: l }) {
|
|
195
|
-
const t = V(null);
|
|
195
|
+
const t = Fe(), { class: e } = t, r = V(null);
|
|
196
196
|
return l({
|
|
197
197
|
focus() {
|
|
198
|
-
|
|
198
|
+
r.value && r.value.focus();
|
|
199
199
|
}
|
|
200
|
-
}), (
|
|
200
|
+
}), (a, i) => (u(), g("button", Q(m(t), {
|
|
201
201
|
ref_key: "buttonRef",
|
|
202
|
-
ref:
|
|
202
|
+
ref: r,
|
|
203
203
|
class: ["cl-align-middle cl-border cl-font-semibold cl-inline-block cl-relative cl-rounded cl-select-none cl-shadow cl-text-center cl-transition-colors", {
|
|
204
|
-
"cl-cursor-default":
|
|
205
|
-
"cl-py-[5px] cl-px-4 cl-text-sm":
|
|
206
|
-
"cl-py-[9px] cl-px-8 cl-text-sm":
|
|
207
|
-
"cl-px-10 cl-py-4":
|
|
208
|
-
"cl-bg-white cl-border-grey-0 cl-text-secondary":
|
|
209
|
-
"hover:cl-border-grey-2":
|
|
210
|
-
"cl-border-primary-default cl-bg-primary-default cl-text-secondary-default":
|
|
211
|
-
"hover:cl-bg-primary-dark hover:cl-text-white hover:cl-border-primary-dark":
|
|
212
|
-
"cl-border-secondary-default cl-bg-secondary-default cl-text-white":
|
|
213
|
-
"hover:cl-bg-secondary-light hover:cl-border-secondary-light":
|
|
214
|
-
"cl-border-danger-default cl-bg-danger-default cl-text-white":
|
|
215
|
-
"hover:cl-bg-danger-dark hover:cl-border-danger-dark":
|
|
216
|
-
"cl-border-link-default cl-bg-link-default cl-text-white":
|
|
217
|
-
"hover:cl-bg-link-light hover:cl-border-link-light":
|
|
218
|
-
"cl-border-orange-default cl-bg-orange-default cl-opacity-100 cl-text-white":
|
|
219
|
-
"hover:cl-bg-orange-dark hover:cl-border-orange-dark":
|
|
220
|
-
"cl-border-grey-3 cl-bg-grey-3 cl-text-grey-0 hover:cl-bg-grey-3 hover:cl-border-grey-3 cl-cursor-default":
|
|
204
|
+
"cl-cursor-default": a.loading,
|
|
205
|
+
"cl-py-[5px] cl-px-4 cl-text-sm": a.size === "small",
|
|
206
|
+
"cl-py-[9px] cl-px-8 cl-text-sm": a.size === "medium",
|
|
207
|
+
"cl-px-10 cl-py-4": a.size === "large",
|
|
208
|
+
"cl-bg-white cl-border-grey-0 cl-text-secondary": a.colour === "default" && !a.disabled,
|
|
209
|
+
"hover:cl-border-grey-2": a.colour === "default" && !a.disabled && !a.loading,
|
|
210
|
+
"cl-border-primary-default cl-bg-primary-default cl-text-secondary-default": a.colour === "primary" && !a.disabled,
|
|
211
|
+
"hover:cl-bg-primary-dark hover:cl-text-white hover:cl-border-primary-dark": a.colour === "primary" && !a.disabled && !a.loading,
|
|
212
|
+
"cl-border-secondary-default cl-bg-secondary-default cl-text-white": a.colour === "secondary" && !a.disabled,
|
|
213
|
+
"hover:cl-bg-secondary-light hover:cl-border-secondary-light": a.colour === "secondary" && !a.disabled && !a.loading,
|
|
214
|
+
"cl-border-danger-default cl-bg-danger-default cl-text-white": a.colour === "danger" && !a.disabled,
|
|
215
|
+
"hover:cl-bg-danger-dark hover:cl-border-danger-dark": a.colour === "danger" && !a.disabled && !a.loading,
|
|
216
|
+
"cl-border-link-default cl-bg-link-default cl-text-white": a.colour === "blue" && !a.disabled,
|
|
217
|
+
"hover:cl-bg-link-light hover:cl-border-link-light": a.colour === "blue" && !a.disabled && !a.loading,
|
|
218
|
+
"cl-border-orange-default cl-bg-orange-default cl-opacity-100 cl-text-white": a.colour === "orange" && !a.disabled,
|
|
219
|
+
"hover:cl-bg-orange-dark hover:cl-border-orange-dark": a.colour === "orange" && !a.disabled && !a.loading,
|
|
220
|
+
"cl-border-grey-3 cl-bg-grey-3 cl-text-grey-0 hover:cl-bg-grey-3 hover:cl-border-grey-3 cl-cursor-default": a.disabled
|
|
221
221
|
}],
|
|
222
|
-
disabled:
|
|
222
|
+
disabled: a.disabled
|
|
223
223
|
}), [
|
|
224
224
|
h("div", {
|
|
225
|
-
class: O({ "cl-opacity-50":
|
|
225
|
+
class: O([{ "cl-opacity-50": a.loading }, m(e)])
|
|
226
226
|
}, [
|
|
227
|
-
D(
|
|
227
|
+
D(a.$slots, "default")
|
|
228
228
|
], 2),
|
|
229
|
-
|
|
229
|
+
a.loading ? (u(), g("div", {
|
|
230
230
|
key: 0,
|
|
231
|
-
class: O(["cl-absolute cl-bg-black cl-bg-opacity-20 cl-flex cl-h-full cl-items-center cl-justify-center cl-left-0 cl-rounded cl-top-0 cl-w-full", { "cl-bg-opacity-30":
|
|
231
|
+
class: O(["cl-absolute cl-bg-black cl-bg-opacity-20 cl-flex cl-h-full cl-items-center cl-justify-center cl-left-0 cl-rounded cl-top-0 cl-w-full", { "cl-bg-opacity-30": a.colour === "default" }])
|
|
232
232
|
}, [
|
|
233
233
|
q(_e, { class: "!cl-h-6 !cl-w-6 after:!cl-h-6 after:!cl-w-6 cl--translate-x-1/2" })
|
|
234
234
|
], 2)) : U("", !0)
|
|
@@ -707,12 +707,12 @@ const Ao = {
|
|
|
707
707
|
d.value = k;
|
|
708
708
|
}
|
|
709
709
|
function I() {
|
|
710
|
-
t.isVisible === !0 && (a.value = "", s(),
|
|
710
|
+
t.isVisible === !0 && (a.value = "", s(), je(() => {
|
|
711
711
|
var k, W;
|
|
712
712
|
return (W = (k = n.value) == null ? void 0 : k.querySelector("input")) == null ? void 0 : W.focus();
|
|
713
713
|
}));
|
|
714
714
|
}
|
|
715
|
-
return te(() => t.results, () => S()), te(() => t.errorMessage, () => S()), te(() => t.isVisible, () => I()),
|
|
715
|
+
return te(() => t.results, () => S()), te(() => t.errorMessage, () => S()), te(() => t.isVisible, () => I()), Ze(() => {
|
|
716
716
|
var k;
|
|
717
717
|
return (k = n.value) == null ? void 0 : k.addEventListener("keydown", A);
|
|
718
718
|
}), Cl(() => {
|
|
@@ -823,7 +823,7 @@ const Ao = {
|
|
|
823
823
|
},
|
|
824
824
|
emits: ["focus", "search", "search-parent", "create-object", "create-parent-object", "update:current-object"],
|
|
825
825
|
setup(o, { expose: l, emit: t }) {
|
|
826
|
-
const e = o, r = t, { id: a, ...i } =
|
|
826
|
+
const e = o, r = t, { id: a, ...i } = Fe(), d = a ?? `cl-ui-combo-box-input-${e.objectType}`, b = $(() => e.placeholderText ? e.placeholderText : s("comboBox.emptyHintText", { object: e.objectType })), n = $(() => e.searchHint ? e.searchHint : s("comboBox.searchHint", { object: e.objectType })), { t: s } = ce(), c = V(!1), p = $({
|
|
827
827
|
get: () => e.currentObject,
|
|
828
828
|
set: (F) => r("update:current-object", F)
|
|
829
829
|
}), w = V(null), y = $(() => J()), f = V(""), C = V(""), A = V(), E = V(!0), S = V(!1);
|
|
@@ -1524,16 +1524,16 @@ const Ta = {
|
|
|
1524
1524
|
warnHtmlMessage: !1
|
|
1525
1525
|
});
|
|
1526
1526
|
function Qu(o, l) {
|
|
1527
|
-
return qe.global.mergeLocaleMessage(o, l),
|
|
1527
|
+
return qe.global.mergeLocaleMessage(o, l), je();
|
|
1528
1528
|
}
|
|
1529
1529
|
function Yu(o, l) {
|
|
1530
|
-
return qe.global.mergeNumberFormat(o, l),
|
|
1530
|
+
return qe.global.mergeNumberFormat(o, l), je();
|
|
1531
1531
|
}
|
|
1532
1532
|
function Ju(o, l) {
|
|
1533
|
-
return qe.global.mergeDateTimeFormat(o, l),
|
|
1533
|
+
return qe.global.mergeDateTimeFormat(o, l), je();
|
|
1534
1534
|
}
|
|
1535
1535
|
function Xu(o) {
|
|
1536
|
-
return qe.global.locale.value = o,
|
|
1536
|
+
return qe.global.locale.value = o, je();
|
|
1537
1537
|
}
|
|
1538
1538
|
const { locale: qa, getNumberFormat: Da } = qe.global, dl = ae.DECIMAL;
|
|
1539
1539
|
function De(o) {
|
|
@@ -1550,10 +1550,10 @@ function ml(o, l) {
|
|
|
1550
1550
|
}
|
|
1551
1551
|
function Me(o, l, t) {
|
|
1552
1552
|
if (pl(l)) {
|
|
1553
|
-
const e =
|
|
1553
|
+
const e = Ge(dl, t);
|
|
1554
1554
|
return l.replace(/\{0\}/g, Fl(o, e) ?? "");
|
|
1555
1555
|
} else {
|
|
1556
|
-
const e =
|
|
1556
|
+
const e = Ge(Ol(l), t);
|
|
1557
1557
|
let r = Fl(o, e) ?? "";
|
|
1558
1558
|
if (l === "currency-without-symbol") {
|
|
1559
1559
|
const a = el(e);
|
|
@@ -1573,7 +1573,7 @@ function st(o, l, t) {
|
|
|
1573
1573
|
return Ll(o, Ol(l), t);
|
|
1574
1574
|
}
|
|
1575
1575
|
function Dl(o, l) {
|
|
1576
|
-
return pl(o) ?
|
|
1576
|
+
return pl(o) ? Ge(dl, l) : Ge(Ol(o), l);
|
|
1577
1577
|
}
|
|
1578
1578
|
function Oa(o, l, t) {
|
|
1579
1579
|
const e = el(t);
|
|
@@ -1599,7 +1599,7 @@ function Ea(o, l) {
|
|
|
1599
1599
|
function Ll(o, l, t) {
|
|
1600
1600
|
if (!o)
|
|
1601
1601
|
return NaN;
|
|
1602
|
-
const e =
|
|
1602
|
+
const e = Ge(l, t), r = el(e);
|
|
1603
1603
|
if (r === null)
|
|
1604
1604
|
return NaN;
|
|
1605
1605
|
const a = [
|
|
@@ -1639,7 +1639,7 @@ function el(o) {
|
|
|
1639
1639
|
return console.error(l), null;
|
|
1640
1640
|
}
|
|
1641
1641
|
}
|
|
1642
|
-
function
|
|
1642
|
+
function Ge(o, l) {
|
|
1643
1643
|
const t = Il(l == null ? void 0 : l.locale) || m(qa), e = Da(t), r = we(Il(l == null ? void 0 : l.additionalOptions) ?? {});
|
|
1644
1644
|
let a = "decimal";
|
|
1645
1645
|
switch (o) {
|
|
@@ -1668,7 +1668,7 @@ function Aa(o) {
|
|
|
1668
1668
|
return !pl(o) && o !== "currency-without-symbol";
|
|
1669
1669
|
}
|
|
1670
1670
|
function Va(o, l) {
|
|
1671
|
-
const t =
|
|
1671
|
+
const t = Ge(dl, l), e = el(t);
|
|
1672
1672
|
if (e === null)
|
|
1673
1673
|
return o;
|
|
1674
1674
|
const r = Ie(e, 10000.11111, "group");
|
|
@@ -2536,7 +2536,7 @@ const za = {
|
|
|
2536
2536
|
};
|
|
2537
2537
|
}
|
|
2538
2538
|
});
|
|
2539
|
-
function
|
|
2539
|
+
function He(o, l, t, e) {
|
|
2540
2540
|
const r = e ?? "UTC";
|
|
2541
2541
|
let a = Y.fromJSDate(o, { zone: r }).setZone(r);
|
|
2542
2542
|
l === "start" ? a = a.startOf("day") : l === "end" && (a = a.endOf("day").set({ millisecond: 0 }));
|
|
@@ -2822,7 +2822,7 @@ const qn = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, Dn = ["onClick"], On =
|
|
|
2822
2822
|
emits: ["togglePopover", "clear"],
|
|
2823
2823
|
setup(o) {
|
|
2824
2824
|
const { t: l } = ce(), t = $(() => {
|
|
2825
|
-
const { class: e, ...r } =
|
|
2825
|
+
const { class: e, ...r } = Fe();
|
|
2826
2826
|
return r;
|
|
2827
2827
|
});
|
|
2828
2828
|
return (e, r) => {
|
|
@@ -2909,8 +2909,8 @@ const qn = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, Dn = ["onClick"], On =
|
|
|
2909
2909
|
if (f !== null) {
|
|
2910
2910
|
const C = f;
|
|
2911
2911
|
t.value = {
|
|
2912
|
-
start:
|
|
2913
|
-
end:
|
|
2912
|
+
start: He(C.start, "start", !1, l.timeZone) ?? "",
|
|
2913
|
+
end: He(C.end, "end", !1, l.timeZone) ?? ""
|
|
2914
2914
|
};
|
|
2915
2915
|
} else
|
|
2916
2916
|
t.value = null;
|
|
@@ -2926,7 +2926,7 @@ const qn = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, Dn = ["onClick"], On =
|
|
|
2926
2926
|
D(f.$slots, "default")
|
|
2927
2927
|
]),
|
|
2928
2928
|
default: M(() => [
|
|
2929
|
-
q(m(
|
|
2929
|
+
q(m(Pe), {
|
|
2930
2930
|
ref_key: "calendar",
|
|
2931
2931
|
ref: c,
|
|
2932
2932
|
modelValue: r.value,
|
|
@@ -3004,7 +3004,7 @@ const qn = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, Dn = ["onClick"], On =
|
|
|
3004
3004
|
a,
|
|
3005
3005
|
r
|
|
3006
3006
|
], () => {
|
|
3007
|
-
|
|
3007
|
+
je(() => {
|
|
3008
3008
|
a.value && r.value === "auto" && (a.value.style.height = "auto", i());
|
|
3009
3009
|
});
|
|
3010
3010
|
}, {
|
|
@@ -3319,7 +3319,7 @@ const qn = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, Dn = ["onClick"], On =
|
|
|
3319
3319
|
}).toJSDate()), f;
|
|
3320
3320
|
},
|
|
3321
3321
|
set(f) {
|
|
3322
|
-
e.type === "time" ? r.value = f : f !== null ? r.value =
|
|
3322
|
+
e.type === "time" ? r.value = f : f !== null ? r.value = He(f, null, !1, e.timeZone) : r.value = null;
|
|
3323
3323
|
}
|
|
3324
3324
|
}), { locale: b } = ce(), n = $(() => e.dateFormatLocale ?? b.value), s = $(() => e.showPopover !== void 0 ? e.showPopover : e.type !== "time"), c = $(() => El(e.disabled || !s.value, e.popoverPlacement)), p = $(() => it(n.value, e.type)), w = V(null), y = $(() => Al(r.value, e.initialCalendarDate, i.value, e.type));
|
|
3325
3325
|
return te(() => [
|
|
@@ -3337,7 +3337,7 @@ const qn = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, Dn = ["onClick"], On =
|
|
|
3337
3337
|
D(f.$slots, "default")
|
|
3338
3338
|
]),
|
|
3339
3339
|
default: M(() => [
|
|
3340
|
-
f.type === "time" ? (u(), L(m(
|
|
3340
|
+
f.type === "time" ? (u(), L(m(Pe), {
|
|
3341
3341
|
key: 0,
|
|
3342
3342
|
modelValue: d.value,
|
|
3343
3343
|
"onUpdate:modelValue": C[1] || (C[1] = (A) => d.value = A),
|
|
@@ -3367,7 +3367,7 @@ const qn = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, Dn = ["onClick"], On =
|
|
|
3367
3367
|
}), null, 16, ["date", "events", "type", "placeholder", "required", "disabled"])
|
|
3368
3368
|
]),
|
|
3369
3369
|
_: 1
|
|
3370
|
-
}, 8, ["modelValue", "locale", "is24hr", "mode", "is-required", "masks", "popover"])) : (u(), L(m(
|
|
3370
|
+
}, 8, ["modelValue", "locale", "is24hr", "mode", "is-required", "masks", "popover"])) : (u(), L(m(Pe), {
|
|
3371
3371
|
key: 1,
|
|
3372
3372
|
modelValue: d.value,
|
|
3373
3373
|
"onUpdate:modelValue": C[4] || (C[4] = (A) => d.value = A),
|
|
@@ -3444,7 +3444,7 @@ const qn = { class: "cl-gap-1 cl-grid cl-grid-cols-2" }, Dn = ["onClick"], On =
|
|
|
3444
3444
|
}),
|
|
3445
3445
|
emits: ["update:modelValue"],
|
|
3446
3446
|
setup(o) {
|
|
3447
|
-
const l = o, t = ke(o, "modelValue"), e = V(-1), r = V(), a = V(), i = V(!1), d = $(() => Array.isArray(t.value)), b =
|
|
3447
|
+
const l = o, t = ke(o, "modelValue"), e = V(-1), r = V(), a = V(), i = V(!1), d = $(() => Array.isArray(t.value)), b = Fe().id ?? "select";
|
|
3448
3448
|
function n(I) {
|
|
3449
3449
|
typeof I < "u" ? i.value = I : l.disabled === !1 && (i.value = !i.value), i.value === !1 && (e.value = -1);
|
|
3450
3450
|
}
|
|
@@ -4693,7 +4693,7 @@ const ss = {
|
|
|
4693
4693
|
emits: ["update:columns", "update:request", "data-request", "row-edit", "row-edit-cancelled", "edit-start", "edit-end", "row-select"],
|
|
4694
4694
|
setup(o, { expose: l, emit: t }) {
|
|
4695
4695
|
var $e;
|
|
4696
|
-
const e = o, r = t, { lg: a } = lt(tt), i = Object.keys(It()).some((z) => z.endsWith("BulkEdit")), d =
|
|
4696
|
+
const e = o, r = t, { lg: a } = lt(tt), i = Object.keys(It()).some((z) => z.endsWith("BulkEdit")), d = Fe();
|
|
4697
4697
|
vl("cl-ui-grid-id", d.id);
|
|
4698
4698
|
const b = $(() => e.headerDisplayTimezone ?? e.timeZone), n = $(() => e.dateFormatLocale);
|
|
4699
4699
|
vl(ul, n);
|
|
@@ -4734,7 +4734,7 @@ const ss = {
|
|
|
4734
4734
|
}
|
|
4735
4735
|
}), I = V(!1);
|
|
4736
4736
|
te(P, () => {
|
|
4737
|
-
P.value ? r("edit-start") :
|
|
4737
|
+
P.value ? r("edit-start") : je(() => r("edit-end"));
|
|
4738
4738
|
});
|
|
4739
4739
|
const k = $(() => ({
|
|
4740
4740
|
rowSelectionEnabled: !1,
|
|
@@ -4767,7 +4767,7 @@ const ss = {
|
|
|
4767
4767
|
B.value = !1;
|
|
4768
4768
|
}, {
|
|
4769
4769
|
once: !0
|
|
4770
|
-
}),
|
|
4770
|
+
}), Ze(() => {
|
|
4771
4771
|
window.addEventListener("resize", Je(w, 50)), w();
|
|
4772
4772
|
}), Cl(() => window.removeEventListener("resize", Je(w, 50))), te(() => e.data, () => {
|
|
4773
4773
|
z();
|
|
@@ -4927,7 +4927,7 @@ const ss = {
|
|
|
4927
4927
|
}),
|
|
4928
4928
|
emits: ["update:columns", "update:request"],
|
|
4929
4929
|
setup(o) {
|
|
4930
|
-
const l = o, t = ke(o, "columns"), e = ke(o, "request"), { id: r, ...a } =
|
|
4930
|
+
const l = o, t = ke(o, "columns"), e = ke(o, "request"), { id: r, ...a } = Fe(), i = r ?? "cl-ui-grid-lite", d = $(() => l.dateFormatLocale);
|
|
4931
4931
|
vl(ul, d);
|
|
4932
4932
|
const b = $(() => t.value.filter((w) => w.visible ?? !0));
|
|
4933
4933
|
function n() {
|
|
@@ -5201,7 +5201,7 @@ const Qs = { class: "cl-col-[1_/_-1] cl-grid cl-grid-cols-subgrid" }, Ys = ["id"
|
|
|
5201
5201
|
isSmallGrid: { type: Boolean }
|
|
5202
5202
|
},
|
|
5203
5203
|
setup(o) {
|
|
5204
|
-
const l = o, { id: t, ...e } =
|
|
5204
|
+
const l = o, { id: t, ...e } = Fe(), r = il(ul), { t: a, locale: i } = ce();
|
|
5205
5205
|
function d(s, c) {
|
|
5206
5206
|
let p;
|
|
5207
5207
|
l.timeZone ? p = Y.fromISO(s, {
|
|
@@ -5575,12 +5575,12 @@ const qt = /* @__PURE__ */ Te(or, [["render", nr]]), sr = { class: "cl-flex cl-g
|
|
|
5575
5575
|
if (e.type === "time")
|
|
5576
5576
|
P = S;
|
|
5577
5577
|
else if (S !== null && e.type !== "dateRange")
|
|
5578
|
-
P =
|
|
5578
|
+
P = He(S, null, !0, e.timeZone);
|
|
5579
5579
|
else if (S !== null) {
|
|
5580
5580
|
const I = S;
|
|
5581
5581
|
P = {
|
|
5582
|
-
start:
|
|
5583
|
-
end:
|
|
5582
|
+
start: He(I.start, "start", !1, e.timeZone) ?? "",
|
|
5583
|
+
end: He(I.end, "end", !1, e.timeZone) ?? ""
|
|
5584
5584
|
};
|
|
5585
5585
|
}
|
|
5586
5586
|
r("update:date", P);
|
|
@@ -5596,7 +5596,7 @@ const qt = /* @__PURE__ */ Te(or, [["render", nr]]), sr = { class: "cl-flex cl-g
|
|
|
5596
5596
|
var S;
|
|
5597
5597
|
(S = c.value) == null || S.focus();
|
|
5598
5598
|
}
|
|
5599
|
-
}), (S, P) => S.type === "time" ? (u(), L(m(
|
|
5599
|
+
}), (S, P) => S.type === "time" ? (u(), L(m(Pe), {
|
|
5600
5600
|
key: 0,
|
|
5601
5601
|
modelValue: i.value,
|
|
5602
5602
|
"onUpdate:modelValue": P[1] || (P[1] = (I) => i.value = I),
|
|
@@ -5626,7 +5626,7 @@ const qt = /* @__PURE__ */ Te(or, [["render", nr]]), sr = { class: "cl-flex cl-g
|
|
|
5626
5626
|
}), null, 16, ["date", "events", "type", "placeholder", "required", "disabled"])
|
|
5627
5627
|
]),
|
|
5628
5628
|
_: 1
|
|
5629
|
-
}, 8, ["modelValue", "locale", "is24hr", "mode", "is-required", "masks", "popover"])) : S.type === "dateRange" ? (u(), L(m(
|
|
5629
|
+
}, 8, ["modelValue", "locale", "is24hr", "mode", "is-required", "masks", "popover"])) : S.type === "dateRange" ? (u(), L(m(Pe), {
|
|
5630
5630
|
key: 1,
|
|
5631
5631
|
ref_key: "calendar",
|
|
5632
5632
|
ref: y,
|
|
@@ -5672,7 +5672,7 @@ const qt = /* @__PURE__ */ Te(or, [["render", nr]]), sr = { class: "cl-flex cl-g
|
|
|
5672
5672
|
}, null, 8, ["scope", "selected-quick-date", "current-date-range"])) : U("", !0)
|
|
5673
5673
|
]),
|
|
5674
5674
|
_: 1
|
|
5675
|
-
}, 8, ["modelValue", "locale", "is24hr", "timezone", "columns", "popover", "min-date", "max-date", "initial-page"])) : (u(), L(m(
|
|
5675
|
+
}, 8, ["modelValue", "locale", "is24hr", "timezone", "columns", "popover", "min-date", "max-date", "initial-page"])) : (u(), L(m(Pe), {
|
|
5676
5676
|
key: 2,
|
|
5677
5677
|
modelValue: i.value,
|
|
5678
5678
|
"onUpdate:modelValue": P[7] || (P[7] = (I) => i.value = I),
|
|
@@ -6092,7 +6092,7 @@ const Fr = { class: "cl-flex cl-justify-between" }, jr = { class: "cl-w-full" },
|
|
|
6092
6092
|
async function H() {
|
|
6093
6093
|
await he(), Oe();
|
|
6094
6094
|
}
|
|
6095
|
-
return
|
|
6095
|
+
return Ze(() => {
|
|
6096
6096
|
e.validateImmediately && G(e.modelValue, !0);
|
|
6097
6097
|
}), te(() => e.isRequired, () => G(e.modelValue, !0)), te(() => e.externalErrors, async () => {
|
|
6098
6098
|
await B(p.value), r("update:model-value", p.value);
|
|
@@ -6700,7 +6700,7 @@ const Li = /* @__PURE__ */ Te(Ui, [["render", Bi]]), Fi = /* @__PURE__ */ j({
|
|
|
6700
6700
|
function c(p) {
|
|
6701
6701
|
typeof p == "number" && s(p);
|
|
6702
6702
|
}
|
|
6703
|
-
return
|
|
6703
|
+
return Ze(() => {
|
|
6704
6704
|
s(a.value[0].id);
|
|
6705
6705
|
}), l({
|
|
6706
6706
|
setTab: c
|
|
@@ -6833,7 +6833,7 @@ const Li = /* @__PURE__ */ Te(Ui, [["render", Bi]]), Fi = /* @__PURE__ */ j({
|
|
|
6833
6833
|
"dragleave",
|
|
6834
6834
|
"drop"
|
|
6835
6835
|
], s = V(!1);
|
|
6836
|
-
|
|
6836
|
+
Ze(() => {
|
|
6837
6837
|
n.forEach((y) => {
|
|
6838
6838
|
document.body.addEventListener(y, (f) => f.preventDefault());
|
|
6839
6839
|
});
|
|
@@ -7284,7 +7284,7 @@ const Du = { class: "cl-flex cl-flex-nowrap cl-flex-row cl-w-full" }, Ou = { cla
|
|
|
7284
7284
|
], C, {
|
|
7285
7285
|
flush: "post",
|
|
7286
7286
|
deep: !0
|
|
7287
|
-
}),
|
|
7287
|
+
}), Ze(C), (E, S) => {
|
|
7288
7288
|
const P = Se("icon"), I = Se("cl-ui-tree-list-subtree", !0);
|
|
7289
7289
|
return u(), g("div", Du, [
|
|
7290
7290
|
h("div", Ou, [
|