@dv.net/ui-kit 7.2.20 → 7.3.0
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/chunks/{DatePickerInput.vue_vue_type_script_setup_true_lang-hXftJo6V.js → DatePickerInput.vue_vue_type_script_setup_true_lang-BdTemohH.js} +43 -37
- package/dist/chunks/DatePickerInputs.vue_vue_type_script_setup_true_lang-CTwFu8qH.js +62 -0
- package/dist/chunks/DatePickerPresets.vue_vue_type_script_setup_true_lang-DzVyyn8P.js +39 -0
- package/dist/chunks/DatePickerSlider.vue_vue_type_script_setup_true_lang-UIt5lj0a.js +90 -0
- package/dist/chunks/{SelectSearch.vue_vue_type_script_setup_true_lang-CQ75wgcO.js → SelectSearch.vue_vue_type_script_setup_true_lang-CEXU9DwM.js} +5 -4
- package/dist/chunks/{SelectTrigger.vue_vue_type_script_setup_true_lang-BltEtAuw.js → SelectTrigger.vue_vue_type_script_setup_true_lang-C7n-Tv5p.js} +4 -3
- package/dist/chunks/{SelectVirtualList.vue_vue_type_script_setup_true_lang-CYMsf9Kr.js → SelectVirtualList.vue_vue_type_script_setup_true_lang-BsEH2p47.js} +5 -4
- package/dist/chunks/{TableSort.vue_vue_type_script_setup_true_lang-B8oBe4hx.js → TableSort.vue_vue_type_script_setup_true_lang-DLS6YCuQ.js} +6 -5
- package/dist/chunks/{UiAvatar.vue_vue_type_script_setup_true_lang-CPaKahh-.js → UiAvatar.vue_vue_type_script_setup_true_lang-hwjVQ-iQ.js} +16 -15
- package/dist/chunks/{UiBlockTitle.vue_vue_type_script_setup_true_lang-CUPC9NVX.js → UiBlockTitle.vue_vue_type_script_setup_true_lang-Bs5Xj4F-.js} +4 -3
- package/dist/chunks/{UiButton.vue_vue_type_script_setup_true_lang-DFOSQ46r.js → UiButton.vue_vue_type_script_setup_true_lang-DCa2bR5Y.js} +7 -6
- package/dist/chunks/{UiCheckbox.vue_vue_type_script_setup_true_lang-CqnY85sL.js → UiCheckbox.vue_vue_type_script_setup_true_lang-DUGkfOys.js} +8 -7
- package/dist/chunks/{UiCollapseItem.vue_vue_type_script_setup_true_lang-D5uVv9Lt.js → UiCollapseItem.vue_vue_type_script_setup_true_lang-B9-6t-og.js} +4 -3
- package/dist/chunks/{UiConfirm.vue_vue_type_script_setup_true_lang-CFxIW48S.js → UiConfirm.vue_vue_type_script_setup_true_lang-Cg2dj8zr.js} +6 -5
- package/dist/chunks/UiDatepickerRange.vue_vue_type_script_setup_true_lang-sG8BMSnL.js +208 -0
- package/dist/chunks/{UiFileItemLoading.vue_vue_type_script_setup_true_lang-DOFU_n7y.js → UiFileItemLoading.vue_vue_type_script_setup_true_lang-CkcVxc67.js} +1 -1
- package/dist/chunks/{UiGallery.vue_vue_type_script_setup_true_lang-DTWRKr-9.js → UiGallery.vue_vue_type_script_setup_true_lang-FdU63VSF.js} +6 -5
- package/dist/chunks/{UiIconButton.vue_vue_type_script_setup_true_lang-yQR_GeIn.js → UiIconButton.vue_vue_type_script_setup_true_lang-IB9wIGjg.js} +7 -6
- package/dist/chunks/{UiInput.vue_vue_type_script_setup_true_lang-DHWi8SLq.js → UiInput.vue_vue_type_script_setup_true_lang-DznM9mdI.js} +1 -1
- package/dist/chunks/{UiLanguageButton.vue_vue_type_script_setup_true_lang-DiW2yYu5.js → UiLanguageButton.vue_vue_type_script_setup_true_lang-T-gWQ3HV.js} +4 -3
- package/dist/chunks/{UiLanguages.vue_vue_type_script_setup_true_lang-D6ADzOdj.js → UiLanguages.vue_vue_type_script_setup_true_lang-BeFcmH6x.js} +7 -6
- package/dist/chunks/{UiLayoutMenu.vue_vue_type_script_setup_true_lang-DqvOKEsU.js → UiLayoutMenu.vue_vue_type_script_setup_true_lang-KkHI-nNK.js} +1 -1
- package/dist/chunks/{UiLayoutMenuItem.vue_vue_type_script_setup_true_lang-B-BGC5nk.js → UiLayoutMenuItem.vue_vue_type_script_setup_true_lang-BVwE-wO1.js} +4 -3
- package/dist/chunks/{UiLoading.vue_vue_type_script_setup_true_lang-CMcWDXoV.js → UiLoading.vue_vue_type_script_setup_true_lang-CMoBK6St.js} +4 -3
- package/dist/chunks/{UiMobileMenu.vue_vue_type_script_setup_true_lang-DDLdZbFX.js → UiMobileMenu.vue_vue_type_script_setup_true_lang-CbAFz94-.js} +4 -3
- package/dist/chunks/{UiModal.vue_vue_type_script_setup_true_lang-AAHxYlxe.js → UiModal.vue_vue_type_script_setup_true_lang-d7N9nUgg.js} +7 -6
- package/dist/chunks/{UiPagination.vue_vue_type_script_setup_true_lang-BbcOBu4c.js → UiPagination.vue_vue_type_script_setup_true_lang-BOirVduF.js} +5 -4
- package/dist/chunks/{UiProfileMenu.vue_vue_type_script_setup_true_lang-B7-JHcJ1.js → UiProfileMenu.vue_vue_type_script_setup_true_lang-DA4m9Q50.js} +22 -21
- package/dist/chunks/{UiProfileMenuItem.vue_vue_type_script_setup_true_lang-DxSXBYTh.js → UiProfileMenuItem.vue_vue_type_script_setup_true_lang-UP_jwjlq.js} +4 -3
- package/dist/chunks/{UiSelect.vue_vue_type_script_setup_true_lang-ZIUc1sHC.js → UiSelect.vue_vue_type_script_setup_true_lang-hrDMJNsT.js} +25 -24
- package/dist/chunks/{UiSwitch.vue_vue_type_script_setup_true_lang-hAV_BQWc.js → UiSwitch.vue_vue_type_script_setup_true_lang-tRoYQ13e.js} +34 -30
- package/dist/chunks/{UiTable.vue_vue_type_script_setup_true_lang-jvKL2Lee.js → UiTable.vue_vue_type_script_setup_true_lang-pRNdsbrV.js} +8 -7
- package/dist/chunks/{UiTooltip.vue_vue_type_script_setup_true_lang-sj4ZGtQ5.js → UiTooltip.vue_vue_type_script_setup_true_lang-Bm3TwGvX.js} +5 -4
- package/dist/chunks/useDatePicker-Cm4P8ntU.js +1096 -0
- package/dist/components/UiAvatar/UiAvatar.js +1 -1
- package/dist/components/UiBlockTitle/UiBlockTitle.js +1 -1
- package/dist/components/UiButton/UiButton.js +1 -1
- package/dist/components/UiCheckbox/UiCheckbox.js +1 -1
- package/dist/components/UiCollapseItem/UiCollapseItem.js +1 -1
- package/dist/components/UiConfirm/UiConfirm.js +1 -1
- package/dist/components/UiDatepicker/UiDatepickerRange.js +1 -1
- package/dist/components/UiDatepicker/UiDatepickerRange.vue.d.ts +72 -69
- package/dist/components/UiDatepicker/components/DatePickerInput.js +1 -1
- package/dist/components/UiDatepicker/components/DatePickerInput.vue.d.ts +1 -0
- package/dist/components/UiDatepicker/components/DatePickerInputs.js +1 -1
- package/dist/components/UiDatepicker/components/DatePickerInputs.vue.d.ts +3 -1
- package/dist/components/UiDatepicker/components/DatePickerPresets.js +1 -1
- package/dist/components/UiDatepicker/components/DatePickerPresets.vue.d.ts +2 -1
- package/dist/components/UiDatepicker/components/DatePickerSlider.js +1 -1
- package/dist/components/UiDatepicker/components/DatePickerSlider.vue.d.ts +4 -0
- package/dist/components/UiDatepicker/composables/useDatePicker.d.ts +2 -3
- package/dist/components/UiDatepicker/composables/useDatePicker.js +1 -1
- package/dist/components/UiDatepicker/composables/useDatePickerPresets.d.ts +6 -0
- package/dist/components/UiDatepicker/composables/useDatePickerPresets.js +61 -0
- package/dist/components/UiDatepicker/composables/useDatePickerSelected.d.ts +16 -0
- package/dist/components/UiDatepicker/composables/useDatePickerSelected.js +31 -0
- package/dist/components/UiDatepicker/types.d.ts +7 -0
- package/dist/components/UiDragAndDrop/UiDragAndDrop.js +5 -4
- package/dist/components/UiDragAndDrop/UiFileItem.js +5 -4
- package/dist/components/UiDragAndDrop/UiFileItemLoading.js +1 -1
- package/dist/components/UiGallery/UiGallery.js +1 -1
- package/dist/components/UiIconButton/UiIconButton.js +1 -1
- package/dist/components/UiInput/UiInput.js +1 -1
- package/dist/components/UiLanguages/UiLanguages.js +1 -1
- package/dist/components/UiLanguages/components/UiLanguageButton.js +1 -1
- package/dist/components/UiLayoutMenu/UiLayoutMenu.js +1 -1
- package/dist/components/UiLayoutMenu/UiLayoutMenuItem.js +1 -1
- package/dist/components/UiLoading/UiLoading.js +1 -1
- package/dist/components/UiMobileMenu/UiMobileMenu.js +1 -1
- package/dist/components/UiModal/UiModal.js +1 -1
- package/dist/components/UiPagination/UiPagination.js +1 -1
- package/dist/components/UiProfileMenu/UiProfileMenu.js +1 -1
- package/dist/components/UiProfileMenu/components/UiProfileMenuItem.js +1 -1
- package/dist/components/UiSelect/UiSelect.js +1 -1
- package/dist/components/UiSelect/components/SelectSearch.js +1 -1
- package/dist/components/UiSelect/components/SelectTrigger.js +1 -1
- package/dist/components/UiSelect/components/SelectVirtualList.js +1 -1
- package/dist/components/UiSwitch/UiSwitch.js +1 -1
- package/dist/components/UiSwitch/UiSwitch.vue.d.ts +1 -0
- package/dist/components/UiSwitch/types.d.ts +1 -0
- package/dist/components/UiTable/UiTable.js +1 -1
- package/dist/components/UiTable/components/TableSort.js +1 -1
- package/dist/components/UiTooltip/UiTooltip.js +1 -1
- package/dist/composables/useNotification/UiNotification.js +4 -3
- package/dist/config/index.d.ts +2 -2
- package/dist/config/index.js +1 -1
- package/dist/index.js +23 -23
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/dist/chunks/DatePickerInputs.vue_vue_type_script_setup_true_lang-Byew6Df7.js +0 -53
- package/dist/chunks/DatePickerPresets.vue_vue_type_script_setup_true_lang-lIwelXtJ.js +0 -91
- package/dist/chunks/DatePickerSlider.vue_vue_type_script_setup_true_lang-BcoZR0Xd.js +0 -81
- package/dist/chunks/UiDatepickerRange.vue_vue_type_script_setup_true_lang-Roi6uBRs.js +0 -185
- package/dist/chunks/useDatePicker-Chd_Lf-L.js +0 -932
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import { defineComponent as F, mergeModels as N, ref as O, useModel as $, createElementBlock as C, openBlock as R, createCommentVNode as I, createElementVNode as S, toDisplayString as
|
|
1
|
+
import { defineComponent as F, mergeModels as N, ref as O, useModel as $, onMounted as j, nextTick as B, createElementBlock as C, openBlock as R, createCommentVNode as I, createElementVNode as S, toDisplayString as D, normalizeClass as L, withDirectives as z, createVNode as q, unref as V, vModelText as U, Transition as J, withCtx as Z, createBlock as H } from "vue";
|
|
2
2
|
import "./vue3-lottie.es-C_Z24a9S.js";
|
|
3
3
|
import "./style-CD0jFgS4.js";
|
|
4
4
|
/* empty css */
|
|
5
5
|
/* empty css */
|
|
6
6
|
/* empty css */
|
|
7
|
-
import "./useDatePicker-
|
|
7
|
+
import "./useDatePicker-Cm4P8ntU.js";
|
|
8
8
|
import "../config/index.js";
|
|
9
9
|
/* empty css */
|
|
10
|
-
import { _ as
|
|
10
|
+
import { _ as G } from "./UiIconButton.vue_vue_type_script_setup_true_lang-IB9wIGjg.js";
|
|
11
|
+
import "../components/UiDatepicker/composables/useDatePickerPresets.js";
|
|
11
12
|
/* empty css */
|
|
12
13
|
/* empty css */
|
|
13
14
|
/* empty css */
|
|
@@ -26,23 +27,23 @@ import "vue-router";
|
|
|
26
27
|
/* empty css */
|
|
27
28
|
/* empty css */
|
|
28
29
|
/* empty css */
|
|
29
|
-
var
|
|
30
|
+
var K = Object.defineProperty, Q = (a, e, t) => e in a ? K(a, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : a[e] = t, b = (a, e, t) => Q(a, typeof e != "symbol" ? e + "" : e, t);
|
|
30
31
|
const T = {
|
|
31
32
|
"#": { pattern: /[0-9]/ },
|
|
32
33
|
"@": { pattern: /[a-zA-Z]/ },
|
|
33
34
|
"*": { pattern: /[a-zA-Z0-9]/ }
|
|
34
|
-
},
|
|
35
|
+
}, x = (a, e, t) => a.replaceAll(e, "").replace(t, ".").replace("..", ".").replace(/[^.\d]/g, ""), P = (a, e, t) => {
|
|
35
36
|
var s;
|
|
36
37
|
return new Intl.NumberFormat(((s = t.number) == null ? void 0 : s.locale) ?? "en", {
|
|
37
38
|
minimumFractionDigits: a,
|
|
38
39
|
maximumFractionDigits: e,
|
|
39
40
|
roundingMode: "trunc"
|
|
40
41
|
});
|
|
41
|
-
},
|
|
42
|
+
}, X = (a, e = !0, t) => {
|
|
42
43
|
var s, r, n, o;
|
|
43
44
|
const u = ((s = t.number) == null ? void 0 : s.unsigned) !== !0 && a.startsWith("-") ? "-" : "", p = ((r = t.number) == null ? void 0 : r.fraction) ?? 0;
|
|
44
45
|
let l = P(0, p, t);
|
|
45
|
-
const k = l.formatToParts(1000.12), d = ((n = k.find((i) => i.type === "group")) == null ? void 0 : n.value) ?? " ", g = ((o = k.find((i) => i.type === "decimal")) == null ? void 0 : o.value) ?? ".", c =
|
|
46
|
+
const k = l.formatToParts(1000.12), d = ((n = k.find((i) => i.type === "group")) == null ? void 0 : n.value) ?? " ", g = ((o = k.find((i) => i.type === "decimal")) == null ? void 0 : o.value) ?? ".", c = x(a, d, g);
|
|
46
47
|
if (Number.isNaN(parseFloat(c))) return u;
|
|
47
48
|
const v = c.split(".");
|
|
48
49
|
if (v[1] != null && v[1].length >= 1) {
|
|
@@ -50,15 +51,15 @@ const T = {
|
|
|
50
51
|
l = P(i, p, t);
|
|
51
52
|
}
|
|
52
53
|
let h = l.format(parseFloat(c));
|
|
53
|
-
return e ? p > 0 && c.endsWith(".") && !c.slice(0, -1).includes(".") && (h += g) : h =
|
|
54
|
-
},
|
|
54
|
+
return e ? p > 0 && c.endsWith(".") && !c.slice(0, -1).includes(".") && (h += g) : h = x(h, d, g), u + h;
|
|
55
|
+
}, _ = (a) => JSON.parse(a.replaceAll("'", '"')), Y = (a, e = {}) => {
|
|
55
56
|
const t = { ...e };
|
|
56
|
-
a.dataset.maska != null && a.dataset.maska !== "" && (t.mask =
|
|
57
|
+
a.dataset.maska != null && a.dataset.maska !== "" && (t.mask = ee(a.dataset.maska)), a.dataset.maskaEager != null && (t.eager = M(a.dataset.maskaEager)), a.dataset.maskaReversed != null && (t.reversed = M(a.dataset.maskaReversed)), a.dataset.maskaTokensReplace != null && (t.tokensReplace = M(a.dataset.maskaTokensReplace)), a.dataset.maskaTokens != null && (t.tokens = te(a.dataset.maskaTokens));
|
|
57
58
|
const s = {};
|
|
58
|
-
return a.dataset.maskaNumberLocale != null && (s.locale = a.dataset.maskaNumberLocale), a.dataset.maskaNumberFraction != null && (s.fraction = parseInt(a.dataset.maskaNumberFraction)), a.dataset.maskaNumberUnsigned != null && (s.unsigned =
|
|
59
|
-
},
|
|
59
|
+
return a.dataset.maskaNumberLocale != null && (s.locale = a.dataset.maskaNumberLocale), a.dataset.maskaNumberFraction != null && (s.fraction = parseInt(a.dataset.maskaNumberFraction)), a.dataset.maskaNumberUnsigned != null && (s.unsigned = M(a.dataset.maskaNumberUnsigned)), (a.dataset.maskaNumber != null || Object.values(s).length > 0) && (t.number = s), t;
|
|
60
|
+
}, M = (a) => a !== "" ? !!JSON.parse(a) : !0, ee = (a) => a.startsWith("[") && a.endsWith("]") ? _(a) : a, te = (a) => {
|
|
60
61
|
if (a.startsWith("{") && a.endsWith("}"))
|
|
61
|
-
return
|
|
62
|
+
return _(a);
|
|
62
63
|
const e = {};
|
|
63
64
|
return a.split("|").forEach((t) => {
|
|
64
65
|
const s = t.split(":");
|
|
@@ -76,7 +77,7 @@ const T = {
|
|
|
76
77
|
return !1;
|
|
77
78
|
}
|
|
78
79
|
};
|
|
79
|
-
class
|
|
80
|
+
class se {
|
|
80
81
|
constructor(e = {}) {
|
|
81
82
|
b(this, "opts", {}), b(this, "memo", /* @__PURE__ */ new Map());
|
|
82
83
|
const t = { ...e };
|
|
@@ -124,15 +125,15 @@ class ee {
|
|
|
124
125
|
}), { mask: t.join(""), escaped: s };
|
|
125
126
|
}
|
|
126
127
|
process(e, t, s = !0) {
|
|
127
|
-
if (this.opts.number != null) return
|
|
128
|
+
if (this.opts.number != null) return X(e, s, this.opts);
|
|
128
129
|
if (t == null) return e;
|
|
129
130
|
const r = `v=${e},mr=${t},m=${s ? 1 : 0}`;
|
|
130
131
|
if (this.memo.has(r)) return this.memo.get(r);
|
|
131
132
|
const { mask: n, escaped: o } = this.escapeMask(t), u = [], p = this.opts.tokens != null ? this.opts.tokens : {}, l = this.isReversed() ? -1 : 1, k = this.isReversed() ? "unshift" : "push", d = this.isReversed() ? 0 : n.length - 1, g = this.isReversed() ? () => i > -1 && m > -1 : () => i < n.length && m < e.length, c = (y) => !this.isReversed() && y <= d || this.isReversed() && y >= d;
|
|
132
|
-
let v, h = -1, i = this.isReversed() ? n.length - 1 : 0, m = this.isReversed() ? e.length - 1 : 0,
|
|
133
|
+
let v, h = -1, i = this.isReversed() ? n.length - 1 : 0, m = this.isReversed() ? e.length - 1 : 0, A = !1;
|
|
133
134
|
for (; g(); ) {
|
|
134
135
|
const y = n.charAt(i), f = p[y], E = f?.transform != null ? f.transform(e.charAt(m)) : e.charAt(m);
|
|
135
|
-
if (!o.includes(i) && f != null ? (E.match(f.pattern) != null ? (u[k](E), f.repeated ? (h === -1 ? h = i : i === d && i !== h && (i = h - l), d === h && (i -= l)) : f.multiple && (
|
|
136
|
+
if (!o.includes(i) && f != null ? (E.match(f.pattern) != null ? (u[k](E), f.repeated ? (h === -1 ? h = i : i === d && i !== h && (i = h - l), d === h && (i -= l)) : f.multiple && (A = !0, i -= l), i += l) : f.multiple ? A && (i += l, m -= l, A = !1) : E === v ? v = void 0 : f.optional && (i += l, m -= l), m += l) : (s && !this.isEager() && u[k](y), E === y && !this.isEager() ? m += l : v = y, this.isEager() || (i += l)), this.isEager())
|
|
136
137
|
for (; c(i) && (p[n.charAt(i)] == null || o.includes(i)); ) {
|
|
137
138
|
if (s) {
|
|
138
139
|
if (u[k](n.charAt(i)), e.charAt(m) === n.charAt(i)) {
|
|
@@ -146,7 +147,7 @@ class ee {
|
|
|
146
147
|
return this.memo.set(r, u.join("")), this.memo.get(r);
|
|
147
148
|
}
|
|
148
149
|
}
|
|
149
|
-
class
|
|
150
|
+
class ae {
|
|
150
151
|
constructor(e, t = {}) {
|
|
151
152
|
b(this, "items", /* @__PURE__ */ new Map()), b(this, "eventAbortController"), b(this, "onInput", (s) => {
|
|
152
153
|
if (s instanceof CustomEvent && s.type === "input" && !s.isTrusted && !s.bubbles)
|
|
@@ -174,7 +175,7 @@ class te {
|
|
|
174
175
|
const { signal: n } = this.eventAbortController;
|
|
175
176
|
s.addEventListener("input", this.onInput, { capture: !0, signal: n });
|
|
176
177
|
}
|
|
177
|
-
const r = new
|
|
178
|
+
const r = new se(Y(s, t));
|
|
178
179
|
this.items.set(s, r), queueMicrotask(() => this.updateValue(s)), s.selectionStart === null && r.isEager() && console.warn("Maska: input of `%s` type is not supported", s.type);
|
|
179
180
|
}
|
|
180
181
|
}
|
|
@@ -211,11 +212,11 @@ class te {
|
|
|
211
212
|
};
|
|
212
213
|
}
|
|
213
214
|
}
|
|
214
|
-
const w = /* @__PURE__ */ new WeakMap(),
|
|
215
|
+
const w = /* @__PURE__ */ new WeakMap(), re = (a, e) => {
|
|
215
216
|
if (a.arg == null || a.instance == null) return;
|
|
216
217
|
const t = "setup" in a.instance.$.type;
|
|
217
218
|
a.arg in a.instance ? a.instance[a.arg] = e : t && console.warn("Maska: please expose `%s` using defineExpose", a.arg);
|
|
218
|
-
},
|
|
219
|
+
}, ne = (a, e) => {
|
|
219
220
|
var t;
|
|
220
221
|
const s = a instanceof HTMLInputElement ? a : a.querySelector("input");
|
|
221
222
|
if (s == null || s?.type === "file") return;
|
|
@@ -223,21 +224,22 @@ const w = /* @__PURE__ */ new WeakMap(), se = (a, e) => {
|
|
|
223
224
|
if (e.value != null && (r = typeof e.value == "string" ? { mask: e.value } : { ...e.value }), e.arg != null) {
|
|
224
225
|
const n = (o) => {
|
|
225
226
|
const u = e.modifiers.unmasked ? o.unmasked : e.modifiers.completed ? o.completed : o.masked;
|
|
226
|
-
|
|
227
|
+
re(e, u);
|
|
227
228
|
};
|
|
228
229
|
r.onMaska = r.onMaska == null ? n : Array.isArray(r.onMaska) ? [...r.onMaska, n] : [r.onMaska, n];
|
|
229
230
|
}
|
|
230
|
-
w.has(s) ? (t = w.get(s)) == null || t.update(r) : w.set(s, new
|
|
231
|
-
},
|
|
231
|
+
w.has(s) ? (t = w.get(s)) == null || t.update(r) : w.set(s, new ae(s, r));
|
|
232
|
+
}, ie = {
|
|
232
233
|
key: 0,
|
|
233
234
|
class: "com-datepicker-input__label"
|
|
234
|
-
},
|
|
235
|
+
}, oe = ["placeholder"], Oe = /* @__PURE__ */ F({
|
|
235
236
|
__name: "DatePickerInput",
|
|
236
237
|
props: /* @__PURE__ */ N({
|
|
237
238
|
placeholder: {},
|
|
238
239
|
isError: { type: Boolean },
|
|
239
240
|
maska: {},
|
|
240
|
-
label: {}
|
|
241
|
+
label: {},
|
|
242
|
+
autofocus: { type: Boolean }
|
|
241
243
|
}, {
|
|
242
244
|
modelValue: {},
|
|
243
245
|
modelModifiers: {}
|
|
@@ -248,25 +250,29 @@ const w = /* @__PURE__ */ new WeakMap(), se = (a, e) => {
|
|
|
248
250
|
function s() {
|
|
249
251
|
t.value = "", e.value?.focus();
|
|
250
252
|
}
|
|
251
|
-
return (
|
|
252
|
-
|
|
253
|
+
return j(() => {
|
|
254
|
+
a.autofocus && B(() => {
|
|
255
|
+
e.value && e.value?.focus();
|
|
256
|
+
});
|
|
257
|
+
}), (r, n) => (R(), C("label", null, [
|
|
258
|
+
r.label ? (R(), C("span", ie, D(r.label), 1)) : I("", !0),
|
|
253
259
|
S("div", {
|
|
254
|
-
class:
|
|
260
|
+
class: L(["com-datepicker-input__wrapper", { error: r.isError }])
|
|
255
261
|
}, [
|
|
256
|
-
|
|
262
|
+
z(S("input", {
|
|
257
263
|
ref_key: "inputRef",
|
|
258
264
|
ref: e,
|
|
259
265
|
onInput: n[0] || (n[0] = (o) => r.$emit("input", o.target.value)),
|
|
260
266
|
placeholder: r.placeholder,
|
|
261
267
|
class: "com-datepicker-input__input",
|
|
262
268
|
"onUpdate:modelValue": n[1] || (n[1] = (o) => t.value = o)
|
|
263
|
-
}, null, 40,
|
|
264
|
-
[V(
|
|
265
|
-
[
|
|
269
|
+
}, null, 40, oe), [
|
|
270
|
+
[V(ne), r.maska],
|
|
271
|
+
[U, t.value]
|
|
266
272
|
]),
|
|
267
|
-
|
|
268
|
-
default:
|
|
269
|
-
t.value ? (R(),
|
|
273
|
+
q(J, { name: "fade" }, {
|
|
274
|
+
default: Z(() => [
|
|
275
|
+
t.value ? (R(), H(V(G), {
|
|
270
276
|
key: 0,
|
|
271
277
|
onClick: s,
|
|
272
278
|
"icon-color": "var(--color-icon-tertiary)",
|
|
@@ -282,5 +288,5 @@ const w = /* @__PURE__ */ new WeakMap(), se = (a, e) => {
|
|
|
282
288
|
}
|
|
283
289
|
});
|
|
284
290
|
export {
|
|
285
|
-
|
|
291
|
+
Oe as _
|
|
286
292
|
};
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { defineComponent as h, mergeModels as V, useModel as F, ref as m, computed as b, watch as I, createElementBlock as D, openBlock as E, createElementVNode as y, withModifiers as N, createVNode as w, createCommentVNode as A, unref as n, Fragment as C } from "vue";
|
|
2
|
+
import { _ as B } from "./DatePickerInput.vue_vue_type_script_setup_true_lang-BdTemohH.js";
|
|
3
|
+
import "./style-CD0jFgS4.js";
|
|
4
|
+
import { a as L } from "./index-CUyc6a0N.js";
|
|
5
|
+
import { u as S } from "./useDatePicker-Cm4P8ntU.js";
|
|
6
|
+
import { config as M } from "../config/index.js";
|
|
7
|
+
const U = { class: "com-datepicker-inputs" }, G = /* @__PURE__ */ h({
|
|
8
|
+
__name: "DatePickerInputs",
|
|
9
|
+
props: /* @__PURE__ */ V({
|
|
10
|
+
single: { type: Boolean }
|
|
11
|
+
}, {
|
|
12
|
+
"model-value": { default: [] },
|
|
13
|
+
"model-valueModifiers": {}
|
|
14
|
+
}),
|
|
15
|
+
emits: /* @__PURE__ */ V(["submit", "change"], ["update:model-value"]),
|
|
16
|
+
setup(v, { emit: P }) {
|
|
17
|
+
const d = P, r = F(v, "model-value"), { dayjs: a, inputFormat: l, modelValueFormat: f } = S(), t = m([!1, !1]), { width: p } = L(), s = m(""), i = m(""), c = b(() => l.value.replace(/\w/g, "#")), k = b(() => a().format(l.value));
|
|
18
|
+
function g(o, e) {
|
|
19
|
+
const u = !a(o, l.value).isValid() || a(o, l.value).isAfter(a(a(), l.value), "day");
|
|
20
|
+
e && o.length === 10 ? (t.value[0] = !v.single && a(o, l.value).isAfter(a(i.value, l.value), "day") || u, t.value[0] || (r.value[0] = a(o, l.value).format(f.value), d("change"))) : t.value[0] = !1, !e && o.length === 10 ? (t.value[1] = a(o, l.value).isBefore(a(s.value, l.value), "day") || u, t.value[1] || (r.value[1] = a(o, l.value).format(f.value), d("change"))) : t.value[1] = !1;
|
|
21
|
+
}
|
|
22
|
+
return I(
|
|
23
|
+
r,
|
|
24
|
+
() => {
|
|
25
|
+
s.value = a(r.value[0]).format(l.value), i.value = a(r.value[1]).format(l.value);
|
|
26
|
+
},
|
|
27
|
+
{ immediate: !0 }
|
|
28
|
+
), (o, e) => (E(), D("div", U, [
|
|
29
|
+
y("form", {
|
|
30
|
+
class: "com-datepicker-inputs--form",
|
|
31
|
+
onSubmit: e[4] || (e[4] = N(() => {
|
|
32
|
+
}, ["prevent"]))
|
|
33
|
+
}, [
|
|
34
|
+
w(B, {
|
|
35
|
+
label: n(p) < 1e3 ? n(M).uiDatePicker.translations.inputLabelStart : "",
|
|
36
|
+
isError: t.value[0],
|
|
37
|
+
onInput: e[0] || (e[0] = (u) => g(u, !0)),
|
|
38
|
+
placeholder: k.value,
|
|
39
|
+
maska: c.value,
|
|
40
|
+
modelValue: s.value,
|
|
41
|
+
"onUpdate:modelValue": e[1] || (e[1] = (u) => s.value = u),
|
|
42
|
+
autofocus: o.single
|
|
43
|
+
}, null, 8, ["label", "isError", "placeholder", "maska", "modelValue", "autofocus"]),
|
|
44
|
+
o.single ? A("", !0) : (E(), D(C, { key: 0 }, [
|
|
45
|
+
e[5] || (e[5] = y("div", { class: "com-datepicker-inputs--form__divider" }, null, -1)),
|
|
46
|
+
w(B, {
|
|
47
|
+
label: n(p) < 1e3 ? n(M).uiDatePicker.translations.inputLabelEnd : "",
|
|
48
|
+
isError: t.value[1],
|
|
49
|
+
onInput: e[2] || (e[2] = (u) => g(u, !1)),
|
|
50
|
+
placeholder: k.value,
|
|
51
|
+
maska: c.value,
|
|
52
|
+
modelValue: i.value,
|
|
53
|
+
"onUpdate:modelValue": e[3] || (e[3] = (u) => i.value = u)
|
|
54
|
+
}, null, 8, ["label", "isError", "placeholder", "maska", "modelValue"])
|
|
55
|
+
], 64))
|
|
56
|
+
], 32)
|
|
57
|
+
]));
|
|
58
|
+
}
|
|
59
|
+
});
|
|
60
|
+
export {
|
|
61
|
+
G as _
|
|
62
|
+
};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { defineComponent as p, ref as _, watch as k, createElementBlock as c, openBlock as r, createElementVNode as h, Fragment as f, renderList as v, normalizeClass as g, toDisplayString as y } from "vue";
|
|
2
|
+
import { u as C } from "./useDatePicker-Cm4P8ntU.js";
|
|
3
|
+
const P = { class: "com-datepicker-presets" }, b = { class: "com-datepicker-presets--buttons" }, D = ["onClick"], E = /* @__PURE__ */ p({
|
|
4
|
+
__name: "DatePickerPresets",
|
|
5
|
+
props: {
|
|
6
|
+
date: {},
|
|
7
|
+
presets: {}
|
|
8
|
+
},
|
|
9
|
+
emits: ["change"],
|
|
10
|
+
setup(i, { emit: l }) {
|
|
11
|
+
const { dayjs: o } = C(), s = i, d = l, n = _(null);
|
|
12
|
+
function m(e) {
|
|
13
|
+
n.value = s.presets.find((a) => o(a.date[0]).isSame(e[0], "day") && o(a.date[1]).isSame(e[1], "day")) ?? null;
|
|
14
|
+
}
|
|
15
|
+
function u(e) {
|
|
16
|
+
n.value = e, d("change", e);
|
|
17
|
+
}
|
|
18
|
+
return k(
|
|
19
|
+
() => s.date,
|
|
20
|
+
() => {
|
|
21
|
+
m(s.date);
|
|
22
|
+
},
|
|
23
|
+
{ immediate: !0 }
|
|
24
|
+
), (e, a) => (r(), c("div", P, [
|
|
25
|
+
h("div", b, [
|
|
26
|
+
(r(!0), c(f, null, v(e.presets, (t) => (r(), c("button", {
|
|
27
|
+
key: t.id,
|
|
28
|
+
onClick: (S) => u(t),
|
|
29
|
+
class: g({ active: n.value?.id === t.id }),
|
|
30
|
+
mode: "neutral",
|
|
31
|
+
size: "sm"
|
|
32
|
+
}, y(t.label), 11, D))), 128))
|
|
33
|
+
])
|
|
34
|
+
]));
|
|
35
|
+
}
|
|
36
|
+
});
|
|
37
|
+
export {
|
|
38
|
+
E as _
|
|
39
|
+
};
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import { defineComponent as k, mergeModels as h, useModel as x, computed as n, createElementBlock as u, openBlock as s, createCommentVNode as f, renderSlot as B, createVNode as p, unref as y } from "vue";
|
|
2
|
+
import { u as R } from "./useDatePicker-Cm4P8ntU.js";
|
|
3
|
+
import "./vue3-lottie.es-C_Z24a9S.js";
|
|
4
|
+
import "./style-CD0jFgS4.js";
|
|
5
|
+
import { _ as b } from "./UiIcon.vue_vue_type_script_setup_true_lang-CP1bPN5o.js";
|
|
6
|
+
/* empty css */
|
|
7
|
+
/* empty css */
|
|
8
|
+
/* empty css */
|
|
9
|
+
import "../config/index.js";
|
|
10
|
+
/* empty css */
|
|
11
|
+
import "../components/UiDatepicker/composables/useDatePickerPresets.js";
|
|
12
|
+
/* empty css */
|
|
13
|
+
/* empty css */
|
|
14
|
+
/* empty css */
|
|
15
|
+
/* empty css */
|
|
16
|
+
/* empty css */
|
|
17
|
+
/* empty css */
|
|
18
|
+
/* empty css */
|
|
19
|
+
/* empty css */
|
|
20
|
+
import "vue-router";
|
|
21
|
+
/* empty css */
|
|
22
|
+
/* empty css */
|
|
23
|
+
/* empty css */
|
|
24
|
+
/* empty css */
|
|
25
|
+
/* empty css */
|
|
26
|
+
/* empty css */
|
|
27
|
+
/* empty css */
|
|
28
|
+
/* empty css */
|
|
29
|
+
/* empty css */
|
|
30
|
+
const S = { class: "com-datepicker-slider" }, V = ["disabled"], C = ["disabled"], ie = /* @__PURE__ */ k({
|
|
31
|
+
__name: "DatePickerSlider",
|
|
32
|
+
props: /* @__PURE__ */ h({
|
|
33
|
+
isShow: { type: Boolean, default: !0 },
|
|
34
|
+
disabled: { type: Boolean },
|
|
35
|
+
selectedRange: {},
|
|
36
|
+
minDate: {},
|
|
37
|
+
maxDate: {}
|
|
38
|
+
}, {
|
|
39
|
+
modelValue: { default: [] },
|
|
40
|
+
modelModifiers: {}
|
|
41
|
+
}),
|
|
42
|
+
emits: ["update:modelValue"],
|
|
43
|
+
setup(t) {
|
|
44
|
+
const m = x(t, "modelValue"), { dayjs: r, modelValueFormat: v } = R(m), e = n(() => ({
|
|
45
|
+
min: t.minDate ? r(t.minDate) : void 0,
|
|
46
|
+
max: t.maxDate ? r(t.maxDate) : void 0
|
|
47
|
+
})), a = n(() => ({
|
|
48
|
+
start: r(m.value[0]),
|
|
49
|
+
end: r(m.value[1])
|
|
50
|
+
})), D = n(() => {
|
|
51
|
+
if (e.value.max)
|
|
52
|
+
return a.value.end.isAfter(e.value.max) || e.value.max.isSame(a.value.end, "day");
|
|
53
|
+
}), g = n(() => {
|
|
54
|
+
if (e.value.min)
|
|
55
|
+
return a.value.start.isBefore(e.value.min) || e.value.min.isSame(a.value.start, "day");
|
|
56
|
+
});
|
|
57
|
+
function c(i) {
|
|
58
|
+
let o = a.value.end.diff(a.value.start, "day") || 1, l, d;
|
|
59
|
+
t.selectedRange ? (l = a.value.start.add(i ? -1 : 1, t.selectedRange), d = a.value.end.add(i ? -1 : 1, t.selectedRange), ["month", "year"].includes(t.selectedRange) && (l = l.startOf(t.selectedRange), d = d.endOf(t.selectedRange))) : (l = a.value.start.add(i ? -o : o, "day"), d = a.value.end.add(i ? -o : o, "day")), e.value.min && l.isBefore(e.value.min) && (l = e.value.min), e.value.max && d.isAfter(e.value.max) && (d = e.value.max), m.value = [l?.format(v.value) || "", d?.format(v.value) || ""];
|
|
60
|
+
}
|
|
61
|
+
return (i, o) => (s(), u("div", S, [
|
|
62
|
+
i.isShow ? (s(), u("button", {
|
|
63
|
+
key: 0,
|
|
64
|
+
disabled: g.value || i.disabled,
|
|
65
|
+
class: "com-datepicker-slider__btn",
|
|
66
|
+
onClick: o[0] || (o[0] = (l) => c(!0))
|
|
67
|
+
}, [
|
|
68
|
+
p(y(b), {
|
|
69
|
+
type: "400",
|
|
70
|
+
name: "chevron-left 1"
|
|
71
|
+
})
|
|
72
|
+
], 8, V)) : f("", !0),
|
|
73
|
+
B(i.$slots, "default"),
|
|
74
|
+
i.isShow ? (s(), u("button", {
|
|
75
|
+
key: 1,
|
|
76
|
+
disabled: D.value || i.disabled,
|
|
77
|
+
class: "com-datepicker-slider__btn",
|
|
78
|
+
onClick: o[1] || (o[1] = (l) => c(!1))
|
|
79
|
+
}, [
|
|
80
|
+
p(y(b), {
|
|
81
|
+
type: "400",
|
|
82
|
+
name: "chevron-right"
|
|
83
|
+
})
|
|
84
|
+
], 8, C)) : f("", !0)
|
|
85
|
+
]));
|
|
86
|
+
}
|
|
87
|
+
});
|
|
88
|
+
export {
|
|
89
|
+
ie as _
|
|
90
|
+
};
|
|
@@ -5,16 +5,17 @@ import "./vue3-lottie.es-C_Z24a9S.js";
|
|
|
5
5
|
import "./style-CD0jFgS4.js";
|
|
6
6
|
/* empty css */
|
|
7
7
|
/* empty css */
|
|
8
|
-
import "./useDatePicker-
|
|
8
|
+
import "./useDatePicker-Cm4P8ntU.js";
|
|
9
9
|
import { config as _ } from "../config/index.js";
|
|
10
10
|
/* empty css */
|
|
11
|
+
import "../components/UiDatepicker/composables/useDatePickerPresets.js";
|
|
11
12
|
/* empty css */
|
|
12
13
|
/* empty css */
|
|
13
14
|
/* empty css */
|
|
14
15
|
/* empty css */
|
|
15
16
|
/* empty css */
|
|
16
17
|
/* empty css */
|
|
17
|
-
import { _ as f } from "./UiInput.vue_vue_type_script_setup_true_lang-
|
|
18
|
+
import { _ as f } from "./UiInput.vue_vue_type_script_setup_true_lang-DznM9mdI.js";
|
|
18
19
|
/* empty css */
|
|
19
20
|
/* empty css */
|
|
20
21
|
import "vue-router";
|
|
@@ -27,7 +28,7 @@ import "vue-router";
|
|
|
27
28
|
/* empty css */
|
|
28
29
|
/* empty css */
|
|
29
30
|
/* empty css */
|
|
30
|
-
const h = { class: "select-search" }, V = { class: "select-search__wrapper" },
|
|
31
|
+
const h = { class: "select-search" }, V = { class: "select-search__wrapper" }, T = /* @__PURE__ */ i({
|
|
31
32
|
__name: "SelectSearch",
|
|
32
33
|
props: /* @__PURE__ */ l({
|
|
33
34
|
placeholder: {}
|
|
@@ -62,5 +63,5 @@ const h = { class: "select-search" }, V = { class: "select-search__wrapper" }, Q
|
|
|
62
63
|
}
|
|
63
64
|
});
|
|
64
65
|
export {
|
|
65
|
-
|
|
66
|
+
T as _
|
|
66
67
|
};
|
|
@@ -5,9 +5,10 @@ import { _ as a } from "./UiIcon.vue_vue_type_script_setup_true_lang-CP1bPN5o.js
|
|
|
5
5
|
/* empty css */
|
|
6
6
|
/* empty css */
|
|
7
7
|
/* empty css */
|
|
8
|
-
import "./useDatePicker-
|
|
8
|
+
import "./useDatePicker-Cm4P8ntU.js";
|
|
9
9
|
import "../config/index.js";
|
|
10
10
|
/* empty css */
|
|
11
|
+
import "../components/UiDatepicker/composables/useDatePickerPresets.js";
|
|
11
12
|
/* empty css */
|
|
12
13
|
/* empty css */
|
|
13
14
|
/* empty css */
|
|
@@ -32,7 +33,7 @@ const u = { class: "ui-select__inner" }, v = { class: "ui-select__text-block" },
|
|
|
32
33
|
}, y = { class: "ui-select__placeholder" }, k = { class: "ui-select__placeholder-inner" }, C = { class: "ui-select__value" }, z = { class: "ui-select__controls" }, B = {
|
|
33
34
|
key: 0,
|
|
34
35
|
class: "ui-select__clear"
|
|
35
|
-
},
|
|
36
|
+
}, ee = /* @__PURE__ */ c({
|
|
36
37
|
__name: "SelectTrigger",
|
|
37
38
|
props: {
|
|
38
39
|
isActive: { type: Boolean },
|
|
@@ -86,5 +87,5 @@ const u = { class: "ui-select__inner" }, v = { class: "ui-select__text-block" },
|
|
|
86
87
|
}
|
|
87
88
|
});
|
|
88
89
|
export {
|
|
89
|
-
|
|
90
|
+
ee as _
|
|
90
91
|
};
|
|
@@ -4,9 +4,10 @@ import "./vue3-lottie.es-C_Z24a9S.js";
|
|
|
4
4
|
/* empty css */
|
|
5
5
|
/* empty css */
|
|
6
6
|
/* empty css */
|
|
7
|
-
import "./useDatePicker-
|
|
7
|
+
import "./useDatePicker-Cm4P8ntU.js";
|
|
8
8
|
import "../config/index.js";
|
|
9
9
|
/* empty css */
|
|
10
|
+
import "../components/UiDatepicker/composables/useDatePickerPresets.js";
|
|
10
11
|
/* empty css */
|
|
11
12
|
/* empty css */
|
|
12
13
|
/* empty css */
|
|
@@ -17,7 +18,7 @@ import "../config/index.js";
|
|
|
17
18
|
/* empty css */
|
|
18
19
|
import "vue-router";
|
|
19
20
|
/* empty css */
|
|
20
|
-
import { _ as S } from "./UiLoading.vue_vue_type_script_setup_true_lang-
|
|
21
|
+
import { _ as S } from "./UiLoading.vue_vue_type_script_setup_true_lang-CMoBK6St.js";
|
|
21
22
|
/* empty css */
|
|
22
23
|
/* empty css */
|
|
23
24
|
import { SelectListItemSize as z } from "../components/UiSelect/types.js";
|
|
@@ -27,7 +28,7 @@ import { SelectListItemSize as z } from "../components/UiSelect/types.js";
|
|
|
27
28
|
/* empty css */
|
|
28
29
|
/* empty css */
|
|
29
30
|
/* empty css */
|
|
30
|
-
const
|
|
31
|
+
const T = /* @__PURE__ */ a({
|
|
31
32
|
__name: "SelectVirtualList",
|
|
32
33
|
props: {
|
|
33
34
|
options: {},
|
|
@@ -64,5 +65,5 @@ const R = /* @__PURE__ */ a({
|
|
|
64
65
|
}
|
|
65
66
|
});
|
|
66
67
|
export {
|
|
67
|
-
|
|
68
|
+
T as _
|
|
68
69
|
};
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as p, mergeModels as l, useModel as s, createElementBlock as a, openBlock as n, renderSlot as u, createVNode as c, unref as d, normalizeClass as f } from "vue";
|
|
2
2
|
import "./vue3-lottie.es-C_Z24a9S.js";
|
|
3
3
|
import "./style-CD0jFgS4.js";
|
|
4
4
|
import { _ } from "./UiIcon.vue_vue_type_script_setup_true_lang-CP1bPN5o.js";
|
|
5
5
|
/* empty css */
|
|
6
6
|
/* empty css */
|
|
7
7
|
/* empty css */
|
|
8
|
-
import "./useDatePicker-
|
|
8
|
+
import "./useDatePicker-Cm4P8ntU.js";
|
|
9
9
|
import "../config/index.js";
|
|
10
10
|
/* empty css */
|
|
11
|
+
import "../components/UiDatepicker/composables/useDatePickerPresets.js";
|
|
11
12
|
/* empty css */
|
|
12
13
|
/* empty css */
|
|
13
14
|
/* empty css */
|
|
@@ -26,13 +27,13 @@ import "vue-router";
|
|
|
26
27
|
/* empty css */
|
|
27
28
|
/* empty css */
|
|
28
29
|
/* empty css */
|
|
29
|
-
const
|
|
30
|
+
const P = /* @__PURE__ */ p({
|
|
30
31
|
__name: "TableSort",
|
|
31
32
|
props: {
|
|
32
33
|
modelValue: { default: null },
|
|
33
34
|
modelModifiers: {}
|
|
34
35
|
},
|
|
35
|
-
emits: /* @__PURE__ */
|
|
36
|
+
emits: /* @__PURE__ */ l(["sort"], ["update:modelValue"]),
|
|
36
37
|
setup(e, { emit: r }) {
|
|
37
38
|
const o = s(e, "modelValue"), t = r;
|
|
38
39
|
function m() {
|
|
@@ -52,5 +53,5 @@ const O = /* @__PURE__ */ l({
|
|
|
52
53
|
}
|
|
53
54
|
});
|
|
54
55
|
export {
|
|
55
|
-
|
|
56
|
+
P as _
|
|
56
57
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as v, computed as n, useId as _, createElementBlock as
|
|
1
|
+
import { defineComponent as v, computed as n, useId as _, createElementBlock as o, openBlock as a, normalizeStyle as f, normalizeClass as k, createVNode as e, createElementVNode as r, unref as s, Fragment as p, createTextVNode as u, toDisplayString as h } from "vue";
|
|
2
2
|
import { _ as d } from "./AvatarMask.vue_vue_type_script_setup_true_lang-DknpN85J.js";
|
|
3
3
|
import "./vue3-lottie.es-C_Z24a9S.js";
|
|
4
4
|
import "./style-CD0jFgS4.js";
|
|
@@ -6,9 +6,10 @@ import { _ as y } from "./UiIcon.vue_vue_type_script_setup_true_lang-CP1bPN5o.js
|
|
|
6
6
|
/* empty css */
|
|
7
7
|
/* empty css */
|
|
8
8
|
/* empty css */
|
|
9
|
-
import "./useDatePicker-
|
|
9
|
+
import "./useDatePicker-Cm4P8ntU.js";
|
|
10
10
|
import "../config/index.js";
|
|
11
11
|
/* empty css */
|
|
12
|
+
import "../components/UiDatepicker/composables/useDatePickerPresets.js";
|
|
12
13
|
/* empty css */
|
|
13
14
|
/* empty css */
|
|
14
15
|
/* empty css */
|
|
@@ -27,7 +28,7 @@ import "vue-router";
|
|
|
27
28
|
/* empty css */
|
|
28
29
|
/* empty css */
|
|
29
30
|
/* empty css */
|
|
30
|
-
const g = { class: "ui-avatar__inner" }, z = ["id"], b = ["mask"], $ = { class: "ui-avatar__avatar" }, j = ["src"], B = { class: "ui-avatar__status" },
|
|
31
|
+
const g = { class: "ui-avatar__inner" }, z = ["id"], b = ["mask"], $ = { class: "ui-avatar__avatar" }, j = ["src"], B = { class: "ui-avatar__status" }, it = /* @__PURE__ */ v({
|
|
31
32
|
__name: "UiAvatar",
|
|
32
33
|
props: {
|
|
33
34
|
avatar: {},
|
|
@@ -36,8 +37,8 @@ const g = { class: "ui-avatar__inner" }, z = ["id"], b = ["mask"], $ = { class:
|
|
|
36
37
|
status: { default: "reject" },
|
|
37
38
|
clickable: { type: Boolean }
|
|
38
39
|
},
|
|
39
|
-
setup(
|
|
40
|
-
const c = n(() =>
|
|
40
|
+
setup(i) {
|
|
41
|
+
const c = n(() => i.email ? (i.email[0] ?? "") + (i.email[1] ?? "") : null), l = _(), m = n(() => ({
|
|
41
42
|
success: {
|
|
42
43
|
icon: "check-circle 1",
|
|
43
44
|
color: "var(--color-icon-positive)"
|
|
@@ -55,37 +56,37 @@ const g = { class: "ui-avatar__inner" }, z = ["id"], b = ["mask"], $ = { class:
|
|
|
55
56
|
color: "var(--color-icon-tertiary)"
|
|
56
57
|
}
|
|
57
58
|
}));
|
|
58
|
-
return (t, E) => (
|
|
59
|
+
return (t, E) => (a(), o("div", {
|
|
59
60
|
class: k(["ui-avatar", [`size-${t.size}`, { clickable: t.clickable }]]),
|
|
60
61
|
style: f({ color: m.value[t.email ? t.status : "default"].color })
|
|
61
62
|
}, [
|
|
62
|
-
|
|
63
|
+
e(d, {
|
|
63
64
|
isTransparent: "",
|
|
64
65
|
class: "ui-avatar__mask"
|
|
65
66
|
}),
|
|
66
|
-
(
|
|
67
|
+
(a(), o("svg", g, [
|
|
67
68
|
r("mask", { id: s(l) }, [
|
|
68
|
-
|
|
69
|
+
e(d)
|
|
69
70
|
], 8, z),
|
|
70
|
-
(
|
|
71
|
+
(a(), o("foreignObject", {
|
|
71
72
|
mask: `url(#${s(l)})`,
|
|
72
73
|
width: "100%",
|
|
73
74
|
height: "100%"
|
|
74
75
|
}, [
|
|
75
76
|
r("div", $, [
|
|
76
|
-
t.avatar ? (
|
|
77
|
+
t.avatar ? (a(), o("img", {
|
|
77
78
|
key: 0,
|
|
78
79
|
src: t.avatar
|
|
79
|
-
}, null, 8, j)) : c.value ? (
|
|
80
|
+
}, null, 8, j)) : c.value ? (a(), o(p, { key: 1 }, [
|
|
80
81
|
u(h(c.value), 1)
|
|
81
|
-
], 64)) : (
|
|
82
|
+
], 64)) : (a(), o(p, { key: 2 }, [
|
|
82
83
|
u("-")
|
|
83
84
|
], 64))
|
|
84
85
|
])
|
|
85
86
|
], 8, b))
|
|
86
87
|
])),
|
|
87
88
|
r("div", B, [
|
|
88
|
-
|
|
89
|
+
e(s(y), {
|
|
89
90
|
type: "100",
|
|
90
91
|
name: m.value[t.status].icon,
|
|
91
92
|
size: "fill"
|
|
@@ -95,5 +96,5 @@ const g = { class: "ui-avatar__inner" }, z = ["id"], b = ["mask"], $ = { class:
|
|
|
95
96
|
}
|
|
96
97
|
});
|
|
97
98
|
export {
|
|
98
|
-
|
|
99
|
+
it as _
|
|
99
100
|
};
|