@dv.net/ui-kit 7.3.1 → 7.4.1
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/assets/{DatePickerInput.vue_vue_type_script_setup_true_lang.-eVpQUbL.js → DatePickerInput.vue_vue_type_script_setup_true_lang.zOBynXnC.js} +2 -2
- package/dist/assets/{DatePickerInputs.vue_vue_type_script_setup_true_lang.5soCW2GR.js → DatePickerInputs.vue_vue_type_script_setup_true_lang.CHu97t2s.js} +2 -2
- package/dist/assets/{DatePickerPresets.vue_vue_type_script_setup_true_lang.2FMuPnQ-.js → DatePickerPresets.vue_vue_type_script_setup_true_lang.CKckhapZ.js} +1 -1
- package/dist/assets/{DatePickerSlider.vue_vue_type_script_setup_true_lang.C5d0LYnp.js → DatePickerSlider.vue_vue_type_script_setup_true_lang.OWR8o6fM.js} +27 -27
- package/dist/assets/{SelectSearch.vue_vue_type_script_setup_true_lang.DqVUJSaz.js → SelectSearch.vue_vue_type_script_setup_true_lang.CtZVcSW3.js} +2 -2
- package/dist/assets/{SelectTrigger.vue_vue_type_script_setup_true_lang.Cl-xk4br.js → SelectTrigger.vue_vue_type_script_setup_true_lang.Qj7K7MkG.js} +1 -1
- package/dist/assets/{SelectVirtualList.vue_vue_type_script_setup_true_lang.DTulmRfJ.js → SelectVirtualList.vue_vue_type_script_setup_true_lang.D93PRpP9.js} +2 -2
- package/dist/assets/{TableSort.vue_vue_type_script_setup_true_lang.CBipD66h.js → TableSort.vue_vue_type_script_setup_true_lang.N-BF_O-e.js} +1 -1
- package/dist/assets/{UiAvatar.vue_vue_type_script_setup_true_lang.Do73Vuko.js → UiAvatar.vue_vue_type_script_setup_true_lang.CqOkYtri.js} +1 -1
- package/dist/assets/{UiBlockTitle.vue_vue_type_script_setup_true_lang.Dg6-Ebqf.js → UiBlockTitle.vue_vue_type_script_setup_true_lang.CDQzSyvH.js} +1 -1
- package/dist/assets/{UiButton.vue_vue_type_script_setup_true_lang.By4sPabz.js → UiButton.vue_vue_type_script_setup_true_lang.CAgnUvIV.js} +2 -2
- package/dist/assets/{UiCheckbox.vue_vue_type_script_setup_true_lang.BF8t-geq.js → UiCheckbox.vue_vue_type_script_setup_true_lang.jNhN0anJ.js} +1 -1
- package/dist/assets/{UiCollapseItem.vue_vue_type_script_setup_true_lang.Dck4GgNO.js → UiCollapseItem.vue_vue_type_script_setup_true_lang.T5nsbevZ.js} +1 -1
- package/dist/assets/{UiConfirm.vue_vue_type_script_setup_true_lang.CmhYjJWP.js → UiConfirm.vue_vue_type_script_setup_true_lang.BtEjkj0Q.js} +3 -3
- package/dist/assets/{UiDatepickerRange.vue_vue_type_script_setup_true_lang.BUNYTSuA.js → UiDatepickerRange.vue_vue_type_script_setup_true_lang.DEaQJdY2.js} +6 -6
- package/dist/assets/{UiFileItemLoading.vue_vue_type_script_setup_true_lang.BDIoiKZY.js → UiFileItemLoading.vue_vue_type_script_setup_true_lang.BA93cC3z.js} +1 -1
- package/dist/assets/{UiGallery.vue_vue_type_script_setup_true_lang.Dg4f_pfI.js → UiGallery.vue_vue_type_script_setup_true_lang.vSJzXRLK.js} +3 -3
- package/dist/assets/{UiIconButton.vue_vue_type_script_setup_true_lang.CsRgGcFe.js → UiIconButton.vue_vue_type_script_setup_true_lang.O2daaEIF.js} +2 -2
- package/dist/assets/{UiInput.vue_vue_type_script_setup_true_lang.DEimU8gU.js → UiInput.vue_vue_type_script_setup_true_lang.BH5qdvOZ.js} +1 -1
- package/dist/assets/{UiLanguageButton.vue_vue_type_script_setup_true_lang.BMln3mpp.js → UiLanguageButton.vue_vue_type_script_setup_true_lang.BxsrtKTK.js} +1 -1
- package/dist/assets/{UiLanguages.vue_vue_type_script_setup_true_lang.LYxxYbAH.js → UiLanguages.vue_vue_type_script_setup_true_lang.DtEthdD6.js} +4 -4
- package/dist/assets/{UiLayoutMenu.vue_vue_type_script_setup_true_lang.CSI-p_o7.js → UiLayoutMenu.vue_vue_type_script_setup_true_lang.CjdqGSzF.js} +1 -1
- package/dist/assets/{UiLayoutMenuItem.vue_vue_type_script_setup_true_lang.uvYieFEy.js → UiLayoutMenuItem.vue_vue_type_script_setup_true_lang.CLIVTrur.js} +1 -1
- package/dist/assets/{UiLoading.vue_vue_type_script_setup_true_lang.ChUnJUUt.js → UiLoading.vue_vue_type_script_setup_true_lang.D452h_BA.js} +1 -1
- package/dist/assets/{UiMobileMenu.vue_vue_type_script_setup_true_lang.CgGrwS_8.js → UiMobileMenu.vue_vue_type_script_setup_true_lang.BWJ__ZHV.js} +1 -1
- package/dist/assets/{UiModal.vue_vue_type_script_setup_true_lang.HOneZL0f.js → UiModal.vue_vue_type_script_setup_true_lang.CatEtX_V.js} +2 -2
- package/dist/assets/{UiPagination.vue_vue_type_script_setup_true_lang.BmCkLQ3p.js → UiPagination.vue_vue_type_script_setup_true_lang.DguX4iwq.js} +2 -2
- package/dist/assets/{UiProfileMenu.vue_vue_type_script_setup_true_lang.BHwKcdVh.js → UiProfileMenu.vue_vue_type_script_setup_true_lang.DLKXYSDQ.js} +3 -3
- package/dist/assets/{UiProfileMenuItem.vue_vue_type_script_setup_true_lang.BWv1Apfn.js → UiProfileMenuItem.vue_vue_type_script_setup_true_lang.DhOjFaOe.js} +1 -1
- package/dist/assets/{UiSelect.vue_vue_type_script_setup_true_lang.D7FJgCCm.js → UiSelect.vue_vue_type_script_setup_true_lang.CL2T5ktg.js} +5 -5
- package/dist/assets/{UiSwitch.vue_vue_type_script_setup_true_lang.1coaUjRW.js → UiSwitch.vue_vue_type_script_setup_true_lang.DqsPZD1T.js} +2 -2
- package/dist/assets/{UiTable.vue_vue_type_script_setup_true_lang.D-Ae3pMX.js → UiTable.vue_vue_type_script_setup_true_lang.f0rsrVh5.js} +5 -5
- package/dist/assets/{UiTooltip.vue_vue_type_script_setup_true_lang.C_cxTfXA.js → UiTooltip.vue_vue_type_script_setup_true_lang.CptSEao7.js} +105 -90
- package/dist/assets/{useDatePicker.DpkmuZRe.js → useDatePicker.DnhbkLG1.js} +261 -259
- 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/components/DatePickerInput.js +1 -1
- package/dist/components/UiDatepicker/components/DatePickerInputs.js +1 -1
- package/dist/components/UiDatepicker/components/DatePickerPresets.js +1 -1
- package/dist/components/UiDatepicker/components/DatePickerSlider.js +1 -1
- package/dist/components/UiDatepicker/composables/useDatePicker.d.ts +2 -0
- package/dist/components/UiDatepicker/composables/useDatePicker.js +1 -1
- package/dist/components/UiDatepicker/composables/useDatePickerPresets.js +4 -4
- package/dist/components/UiDatepicker/composables/useDatePickerSelected.js +13 -13
- package/dist/components/UiDragAndDrop/UiDragAndDrop.js +2 -2
- package/dist/components/UiDragAndDrop/UiFileItem.js +2 -2
- 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/UiModal/UiModal.vue.d.ts +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/UiTable/UiTable.js +1 -1
- package/dist/components/UiTable/components/TableSort.js +1 -1
- package/dist/components/UiTooltip/UiTooltip.js +1 -1
- package/dist/components/UiTooltip/UiTooltip.vue.d.ts +5 -0
- package/dist/components/UiTooltip/types.d.ts +5 -0
- package/dist/composables/useNotification/UiNotification.js +51 -36
- package/dist/composables/useNotification/UiNotification.vue.d.ts +4 -0
- package/dist/index.js +23 -23
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as m } from "../../assets/UiCollapseItem.vue_vue_type_script_setup_true_lang.
|
|
1
|
+
import { _ as m } from "../../assets/UiCollapseItem.vue_vue_type_script_setup_true_lang.T5nsbevZ.js";
|
|
2
2
|
import "../../assets/style.CD0jFgS4.js";
|
|
3
3
|
export {
|
|
4
4
|
m as default
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as m } from "../../assets/UiDatepickerRange.vue_vue_type_script_setup_true_lang.
|
|
1
|
+
import { _ as m } from "../../assets/UiDatepickerRange.vue_vue_type_script_setup_true_lang.DEaQJdY2.js";
|
|
2
2
|
import "../../assets/style.CD0jFgS4.js";
|
|
3
3
|
export {
|
|
4
4
|
m as default
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as m } from "../../../assets/DatePickerInput.vue_vue_type_script_setup_true_lang
|
|
1
|
+
import { _ as m } from "../../../assets/DatePickerInput.vue_vue_type_script_setup_true_lang.zOBynXnC.js";
|
|
2
2
|
import "../../../assets/style.CD0jFgS4.js";
|
|
3
3
|
export {
|
|
4
4
|
m as default
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as m } from "../../../assets/DatePickerInputs.vue_vue_type_script_setup_true_lang.
|
|
1
|
+
import { _ as m } from "../../../assets/DatePickerInputs.vue_vue_type_script_setup_true_lang.CHu97t2s.js";
|
|
2
2
|
import "../../../assets/style.CD0jFgS4.js";
|
|
3
3
|
export {
|
|
4
4
|
m as default
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as m } from "../../../assets/DatePickerSlider.vue_vue_type_script_setup_true_lang.
|
|
1
|
+
import { _ as m } from "../../../assets/DatePickerSlider.vue_vue_type_script_setup_true_lang.OWR8o6fM.js";
|
|
2
2
|
import "../../../assets/style.CD0jFgS4.js";
|
|
3
3
|
export {
|
|
4
4
|
m as default
|
|
@@ -13,5 +13,7 @@ export declare function useDatePicker(modelValue?: Ref<string[]>): {
|
|
|
13
13
|
beginDate: import('vue').ComputedRef<string>;
|
|
14
14
|
startDate: import('vue').ComputedRef<dayjs.Dayjs | null>;
|
|
15
15
|
endDate: import('vue').ComputedRef<dayjs.Dayjs | null>;
|
|
16
|
+
monthAgo: string;
|
|
17
|
+
yearAgo: string;
|
|
16
18
|
checkIsValidDate: () => boolean;
|
|
17
19
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { computed as a } from "vue";
|
|
2
|
-
import { u as i } from "../../../assets/useDatePicker.
|
|
2
|
+
import { u as i } from "../../../assets/useDatePicker.DnhbkLG1.js";
|
|
3
3
|
import { config as t } from "../../../config/index.js";
|
|
4
|
-
const { today: e, weekAgo:
|
|
4
|
+
const { today: e, weekAgo: o, monthAgo: s, yearAgo: n, quarterAgo: l } = i();
|
|
5
5
|
function m(r) {
|
|
6
6
|
return { presets: a(() => [
|
|
7
7
|
{
|
|
@@ -15,7 +15,7 @@ function m(r) {
|
|
|
15
15
|
},
|
|
16
16
|
{
|
|
17
17
|
label: t.uiDatePicker.translations.presetWeek,
|
|
18
|
-
date: [
|
|
18
|
+
date: [o, e],
|
|
19
19
|
id: "week",
|
|
20
20
|
slider: {
|
|
21
21
|
type: "day",
|
|
@@ -24,7 +24,7 @@ function m(r) {
|
|
|
24
24
|
},
|
|
25
25
|
{
|
|
26
26
|
label: t.uiDatePicker.translations.presetMonth,
|
|
27
|
-
date: [
|
|
27
|
+
date: [s, e],
|
|
28
28
|
id: "month",
|
|
29
29
|
slider: {
|
|
30
30
|
type: "month",
|
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
import { u as
|
|
2
|
-
import { computed as
|
|
1
|
+
import { u as M, d as t } from "../../../assets/useDatePicker.DnhbkLG1.js";
|
|
2
|
+
import { computed as u } from "vue";
|
|
3
3
|
import { config as l } from "../../../config/index.js";
|
|
4
|
-
function
|
|
5
|
-
const { checkIsValidDate: o } =
|
|
4
|
+
function P(e) {
|
|
5
|
+
const { checkIsValidDate: o } = M(), i = u(() => {
|
|
6
6
|
if (!(!e.startDate || !e.endDate))
|
|
7
7
|
return e.presets.value.find((a) => t(a.date[0]).isSame(e.startDate.value, "day") && t(a.date[1]).isSame(e.endDate.value, "day"));
|
|
8
|
-
}),
|
|
8
|
+
}), c = u(() => i.value?.id === "all-time"), f = u(() => i.value?.id === "month"), y = u(() => i.value?.id === "year"), r = u(() => {
|
|
9
9
|
if (!e.startDate.value || !e.endDate.value) return;
|
|
10
10
|
const a = e.startDate.value.isSame(e.endDate.value, "month"), d = e.startDate.value.isSame(e.endDate.value, "year");
|
|
11
11
|
if (e.endDate.value.diff(e.startDate.value, "days") === 6)
|
|
12
12
|
return "week";
|
|
13
|
-
if (a && d && (e.startDate.value.isSame(e.startDate.value.startOf("month"), "day") || e.minDate.value && e.startDate.value.isSame(t(e.minDate.value), "day")) && (e.endDate.value.isSame(e.endDate.value.endOf("month"), "day") || e.maxDate.value && e.endDate.value.isSame(t(e.maxDate.value), "day") || e.endDate.value.isSame(t(), "day")))
|
|
13
|
+
if (f.value || a && d && (e.startDate.value.isSame(e.startDate.value.startOf("month"), "day") || e.minDate.value && e.startDate.value.isSame(t(e.minDate.value), "day")) && (e.endDate.value.isSame(e.endDate.value.endOf("month"), "day") || e.maxDate.value && e.endDate.value.isSame(t(e.maxDate.value), "day") || e.endDate.value.isSame(t(), "day")))
|
|
14
14
|
return "month";
|
|
15
|
-
if (d && (e.startDate.value.isSame(e.startDate.value.startOf("year"), "day") || e.minDate.value && e.startDate.value.isSame(t(e.minDate.value), "day")) && (e.endDate.value.isSame(e.endDate.value.endOf("year"), "day") || e.endDate.value.isSame(t(e.maxDate.value), "day") || e.endDate.value.isSame(t(), "day")))
|
|
15
|
+
if (y.value || d && (e.startDate.value.isSame(e.startDate.value.startOf("year"), "day") || e.minDate.value && e.startDate.value.isSame(t(e.minDate.value), "day")) && (e.endDate.value.isSame(e.endDate.value.endOf("year"), "day") || e.endDate.value.isSame(t(e.maxDate.value), "day") || e.endDate.value.isSame(t(), "day")))
|
|
16
16
|
return "year";
|
|
17
|
-
}),
|
|
17
|
+
}), S = u(() => !o() || !e.startDate.value || !e.endDate.value ? [] : [e.startDate.value, e.endDate.value].map(
|
|
18
18
|
(a) => t(a, l.uiDatePicker.modelValueFormat).format(l.uiDatePicker.inputFormat)
|
|
19
|
-
)),
|
|
19
|
+
)), Y = u(() => {
|
|
20
20
|
if (!o())
|
|
21
21
|
return l.uiDatePicker.translations.invalidDate;
|
|
22
22
|
if (!e.startDate.value || !e.endDate.value)
|
|
23
23
|
return l.uiDatePicker.translations.emptyPlaceholder;
|
|
24
|
-
const a = e.endDate.value.isSame(e.startDate.value, "day"), d = e.startDate.value.isSame(t().subtract(1, "day").startOf("day"), "day") && e.endDate.value.isSame(t().subtract(1, "day").startOf("day"), "day"), v = e.startDate.value.isSame(e.endDate.value, "month"),
|
|
25
|
-
return
|
|
24
|
+
const a = e.endDate.value.isSame(e.startDate.value, "day"), d = e.startDate.value.isSame(t().subtract(1, "day").startOf("day"), "day") && e.endDate.value.isSame(t().subtract(1, "day").startOf("day"), "day"), v = e.startDate.value.isSame(e.endDate.value, "month"), s = e.startDate.value.isSame(e.endDate.value, "year"), n = e.startDate.value.locale(l.locale), D = e.endDate.value.locale(l.locale);
|
|
25
|
+
return i.value ? i.value.label : r.value === "year" ? `${n.format("YYYY")} ${l.uiDatePicker.translations.yearLabelSuffix}` : d ? l.uiDatePicker.translations.yesterdayPlaceholder : a ? n.format("DD MMM YY") : r.value === "month" ? n.format("MMMM YYYY") : v ? `${n.format("DD")} - ${D.format("DD")} ${D.format("MMM YYYY")}` : s ? `${n.format("DD MMM")} - ${D.format("DD MMM")} ${D.format("YYYY")}` : `${n.format("DD MMM YY")} - ${D.format("DD MMM YY")}`;
|
|
26
26
|
});
|
|
27
|
-
return { selectedPreset:
|
|
27
|
+
return { selectedPreset: i, formattedSelectedDate: S, isAllTimeSelected: c, selectedRange: r, selectedDate: Y };
|
|
28
28
|
}
|
|
29
29
|
export {
|
|
30
|
-
|
|
30
|
+
P as useDatePickerSelected
|
|
31
31
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as E, mergeModels as _, useModel as L, ref as O, computed as s, createElementBlock as l, openBlock as a, normalizeClass as T, unref as d, createCommentVNode as p, createElementVNode as g, createVNode as v, toDisplayString as h, withModifiers as b, withCtx as j, createTextVNode as z, Fragment as x, renderList as k, createBlock as D } from "vue";
|
|
2
2
|
import I from "./UiFileItem.js";
|
|
3
|
-
import { _ as Z } from "../../assets/UiFileItemLoading.vue_vue_type_script_setup_true_lang.
|
|
3
|
+
import { _ as Z } from "../../assets/UiFileItemLoading.vue_vue_type_script_setup_true_lang.BA93cC3z.js";
|
|
4
4
|
import "../../assets/style.CD0jFgS4.js";
|
|
5
5
|
import { b as H, c as q } from "../../assets/index.CWUzDs_o.js";
|
|
6
6
|
import { u as G } from "../../assets/index.DCOIFumv.js";
|
|
@@ -9,7 +9,7 @@ import { _ as J } from "../../assets/UiIcon.vue_vue_type_script_setup_true_lang.
|
|
|
9
9
|
/* empty css */
|
|
10
10
|
/* empty css */
|
|
11
11
|
/* empty css */
|
|
12
|
-
import "../../assets/useDatePicker.
|
|
12
|
+
import "../../assets/useDatePicker.DnhbkLG1.js";
|
|
13
13
|
import { config as y } from "../../config/index.js";
|
|
14
14
|
/* empty css */
|
|
15
15
|
import "../UiDatepicker/composables/useDatePickerPresets.js";
|
|
@@ -5,10 +5,10 @@ import "../../assets/style.CD0jFgS4.js";
|
|
|
5
5
|
/* empty css */
|
|
6
6
|
/* empty css */
|
|
7
7
|
/* empty css */
|
|
8
|
-
import "../../assets/useDatePicker.
|
|
8
|
+
import "../../assets/useDatePicker.DnhbkLG1.js";
|
|
9
9
|
import "../../config/index.js";
|
|
10
10
|
/* empty css */
|
|
11
|
-
import { _ as c } from "../../assets/UiIconButton.vue_vue_type_script_setup_true_lang.
|
|
11
|
+
import { _ as c } from "../../assets/UiIconButton.vue_vue_type_script_setup_true_lang.O2daaEIF.js";
|
|
12
12
|
import "../UiDatepicker/composables/useDatePickerPresets.js";
|
|
13
13
|
/* empty css */
|
|
14
14
|
/* empty css */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as m } from "../../assets/UiFileItemLoading.vue_vue_type_script_setup_true_lang.
|
|
1
|
+
import { _ as m } from "../../assets/UiFileItemLoading.vue_vue_type_script_setup_true_lang.BA93cC3z.js";
|
|
2
2
|
import "../../assets/style.CD0jFgS4.js";
|
|
3
3
|
export {
|
|
4
4
|
m as default
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as m } from "../../assets/UiLayoutMenuItem.vue_vue_type_script_setup_true_lang.
|
|
1
|
+
import { _ as m } from "../../assets/UiLayoutMenuItem.vue_vue_type_script_setup_true_lang.CLIVTrur.js";
|
|
2
2
|
import "../../assets/style.CD0jFgS4.js";
|
|
3
3
|
export {
|
|
4
4
|
m as default
|
|
@@ -23,8 +23,8 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
|
|
|
23
23
|
}>, {
|
|
24
24
|
popperClass: string;
|
|
25
25
|
padding: string;
|
|
26
|
-
isShowBtnClose: boolean;
|
|
27
26
|
borderRadius: string;
|
|
27
|
+
isShowBtnClose: boolean;
|
|
28
28
|
background: string;
|
|
29
29
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
30
30
|
contentRef: HTMLDivElement;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as m } from "../../assets/UiProfileMenu.vue_vue_type_script_setup_true_lang.
|
|
1
|
+
import { _ as m } from "../../assets/UiProfileMenu.vue_vue_type_script_setup_true_lang.DLKXYSDQ.js";
|
|
2
2
|
import "../../assets/style.CD0jFgS4.js";
|
|
3
3
|
export {
|
|
4
4
|
m as default
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as m } from "../../../assets/UiProfileMenuItem.vue_vue_type_script_setup_true_lang.
|
|
1
|
+
import { _ as m } from "../../../assets/UiProfileMenuItem.vue_vue_type_script_setup_true_lang.DhOjFaOe.js";
|
|
2
2
|
import "../../../assets/style.CD0jFgS4.js";
|
|
3
3
|
export {
|
|
4
4
|
m as default
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as m } from "../../../assets/SelectSearch.vue_vue_type_script_setup_true_lang.
|
|
1
|
+
import { _ as m } from "../../../assets/SelectSearch.vue_vue_type_script_setup_true_lang.CtZVcSW3.js";
|
|
2
2
|
import "../../../assets/style.CD0jFgS4.js";
|
|
3
3
|
export {
|
|
4
4
|
m as default
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as m } from "../../../assets/SelectVirtualList.vue_vue_type_script_setup_true_lang.
|
|
1
|
+
import { _ as m } from "../../../assets/SelectVirtualList.vue_vue_type_script_setup_true_lang.D93PRpP9.js";
|
|
2
2
|
import "../../../assets/style.CD0jFgS4.js";
|
|
3
3
|
export {
|
|
4
4
|
m as default
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as m } from "../../../assets/TableSort.vue_vue_type_script_setup_true_lang.
|
|
1
|
+
import { _ as m } from "../../../assets/TableSort.vue_vue_type_script_setup_true_lang.N-BF_O-e.js";
|
|
2
2
|
import "../../../assets/style.CD0jFgS4.js";
|
|
3
3
|
export {
|
|
4
4
|
m as default
|
|
@@ -28,6 +28,8 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
|
|
|
28
28
|
onClick?: ((args_0?: void | undefined) => any) | undefined;
|
|
29
29
|
onClose?: ((args_0?: void | undefined) => any) | undefined;
|
|
30
30
|
}>, {
|
|
31
|
+
width: string | number;
|
|
32
|
+
backgroundColor: string;
|
|
31
33
|
title: string;
|
|
32
34
|
text: string;
|
|
33
35
|
disabled: boolean;
|
|
@@ -37,6 +39,9 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
|
|
|
37
39
|
timeout: number;
|
|
38
40
|
teleport: string | boolean;
|
|
39
41
|
tabindex: number;
|
|
42
|
+
maxWidth: string | number;
|
|
43
|
+
padding: string | number;
|
|
44
|
+
borderRadius: string | number;
|
|
40
45
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
41
46
|
triggerRefer: HTMLDivElement;
|
|
42
47
|
contentRefer: HTMLDivElement;
|
|
@@ -11,4 +11,9 @@ export interface UiTooltipProps {
|
|
|
11
11
|
teleport?: string | boolean;
|
|
12
12
|
isShowIconClose?: boolean;
|
|
13
13
|
tabindex?: number;
|
|
14
|
+
backgroundColor?: string;
|
|
15
|
+
maxWidth?: string | number;
|
|
16
|
+
padding?: string | number;
|
|
17
|
+
borderRadius?: string | number;
|
|
18
|
+
width?: string | number;
|
|
14
19
|
}
|
|
@@ -1,17 +1,18 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as C, ref as y, computed as _, onMounted as D, onUnmounted as L, createBlock as n, openBlock as o, Transition as w, withCtx as F, withDirectives as $, createElementVNode as l, normalizeStyle as b, createElementBlock as s, unref as i, normalizeClass as E, Fragment as T, createTextVNode as k, toDisplayString as m, vShow as O } from "vue";
|
|
2
2
|
import "../../assets/vue3-lottie.es.BGWavb2-.js";
|
|
3
3
|
import "../../assets/style.CD0jFgS4.js";
|
|
4
|
-
import { _ as
|
|
4
|
+
import { _ as p } from "../../assets/UiIcon.vue_vue_type_script_setup_true_lang.BjdWpbZ0.js";
|
|
5
5
|
/* empty css */
|
|
6
6
|
/* empty css */
|
|
7
7
|
/* empty css */
|
|
8
|
-
import "../../assets/useDatePicker.
|
|
9
|
-
import { config as
|
|
8
|
+
import "../../assets/useDatePicker.DnhbkLG1.js";
|
|
9
|
+
import { config as u } from "../../config/index.js";
|
|
10
10
|
/* empty css */
|
|
11
11
|
import "../../components/UiDatepicker/composables/useDatePickerPresets.js";
|
|
12
12
|
/* empty css */
|
|
13
13
|
/* empty css */
|
|
14
14
|
/* empty css */
|
|
15
|
+
import { isMobileDevice as S } from "../../helpers/is-mobile-device.js";
|
|
15
16
|
/* empty css */
|
|
16
17
|
/* empty css */
|
|
17
18
|
/* empty css */
|
|
@@ -27,11 +28,11 @@ import "vue-router";
|
|
|
27
28
|
/* empty css */
|
|
28
29
|
/* empty css */
|
|
29
30
|
/* empty css */
|
|
30
|
-
import { _ as
|
|
31
|
-
const
|
|
31
|
+
import { _ as U } from "../../assets/_plugin-vue_export-helper.CHgC5LLL.js";
|
|
32
|
+
const z = { class: "ui-notification__top" }, I = ["innerHTML"], V = {
|
|
32
33
|
key: 1,
|
|
33
34
|
class: "ui-notification__text"
|
|
34
|
-
},
|
|
35
|
+
}, A = /* @__PURE__ */ C({
|
|
35
36
|
__name: "UiNotification",
|
|
36
37
|
props: {
|
|
37
38
|
id: {},
|
|
@@ -39,64 +40,78 @@ const F = { class: "ui-notification__top" }, H = ["innerHTML"], $ = {
|
|
|
39
40
|
title: {},
|
|
40
41
|
message: {},
|
|
41
42
|
type: { default: "error" },
|
|
42
|
-
isHTMLMessage: { type: Boolean, default: !0 }
|
|
43
|
+
isHTMLMessage: { type: Boolean, default: !0 },
|
|
44
|
+
pauseOnHover: { type: Boolean, default: !0 },
|
|
45
|
+
duration: { default: 5e3 }
|
|
43
46
|
},
|
|
44
47
|
emits: ["remove", "delete-from-list"],
|
|
45
|
-
setup(
|
|
46
|
-
const
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
48
|
+
setup(M, { emit: h }) {
|
|
49
|
+
const r = M, c = h, a = y(!1), t = y(null), g = _(() => `top: ${r.top}px`), f = _(() => r.pauseOnHover && !S()), N = () => {
|
|
50
|
+
c("delete-from-list", r.id), a.value = !1;
|
|
51
|
+
}, d = () => {
|
|
52
|
+
t.value && clearTimeout(t.value), t.value = setTimeout(() => {
|
|
53
|
+
N();
|
|
54
|
+
}, r.duration);
|
|
55
|
+
}, H = () => {
|
|
56
|
+
t.value && f.value && (clearTimeout(t.value), t.value = null);
|
|
57
|
+
}, B = () => {
|
|
58
|
+
f.value && d();
|
|
59
|
+
};
|
|
60
|
+
return D(() => {
|
|
61
|
+
d(), a.value = !0;
|
|
62
|
+
}), L(() => {
|
|
63
|
+
t.value && clearTimeout(t.value);
|
|
64
|
+
}), (e, v) => (o(), n(w, {
|
|
52
65
|
name: "notification",
|
|
53
|
-
onAfterLeave:
|
|
66
|
+
onAfterLeave: v[0] || (v[0] = (P) => c("remove"))
|
|
54
67
|
}, {
|
|
55
|
-
default:
|
|
56
|
-
|
|
68
|
+
default: F(() => [
|
|
69
|
+
$(l("div", {
|
|
57
70
|
class: "ui-notification",
|
|
58
|
-
style:
|
|
71
|
+
style: b(g.value),
|
|
72
|
+
onMouseenter: H,
|
|
73
|
+
onMouseleave: B
|
|
59
74
|
}, [
|
|
60
|
-
|
|
61
|
-
|
|
75
|
+
l("div", z, [
|
|
76
|
+
e.type === "error" ? (o(), n(i(p), {
|
|
62
77
|
key: 0,
|
|
63
78
|
name: "block",
|
|
64
79
|
type: "400",
|
|
65
80
|
color: "#DD4C1E"
|
|
66
|
-
})) :
|
|
81
|
+
})) : e.type === "success" ? (o(), n(i(p), {
|
|
67
82
|
key: 1,
|
|
68
83
|
name: "check-circle",
|
|
69
84
|
type: "400",
|
|
70
85
|
color: "#1F9649"
|
|
71
|
-
})) : (
|
|
86
|
+
})) : (o(), n(i(p), {
|
|
72
87
|
key: 2,
|
|
73
88
|
name: "error",
|
|
74
89
|
type: "400",
|
|
75
90
|
color: "#B4FF29"
|
|
76
91
|
})),
|
|
77
|
-
|
|
78
|
-
class:
|
|
92
|
+
l("span", {
|
|
93
|
+
class: E(["ui-notification__title", `${e.type}`])
|
|
79
94
|
}, [
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
], 64)) : (
|
|
83
|
-
|
|
95
|
+
e.title ? (o(), s(T, { key: 0 }, [
|
|
96
|
+
k(m(e.title), 1)
|
|
97
|
+
], 64)) : (o(), s(T, { key: 1 }, [
|
|
98
|
+
k(m(e.type === "error" ? i(u).uiNotification.translations.error : e.type === "success" ? i(u).uiNotification.translations.success + "!" : e.title || i(u).uiNotification.translations.infoTitle), 1)
|
|
84
99
|
], 64))
|
|
85
100
|
], 2)
|
|
86
101
|
]),
|
|
87
|
-
|
|
102
|
+
e.isHTMLMessage ? (o(), s("div", {
|
|
88
103
|
key: 0,
|
|
89
|
-
innerHTML:
|
|
104
|
+
innerHTML: e.message,
|
|
90
105
|
class: "ui-notification__text"
|
|
91
|
-
}, null, 8,
|
|
92
|
-
],
|
|
93
|
-
[
|
|
106
|
+
}, null, 8, I)) : (o(), s("div", V, m(e.message), 1))
|
|
107
|
+
], 36), [
|
|
108
|
+
[O, a.value]
|
|
94
109
|
])
|
|
95
110
|
]),
|
|
96
111
|
_: 1
|
|
97
112
|
}));
|
|
98
113
|
}
|
|
99
|
-
}),
|
|
114
|
+
}), ke = /* @__PURE__ */ U(A, [["__scopeId", "data-v-2bd67e86"]]);
|
|
100
115
|
export {
|
|
101
|
-
|
|
116
|
+
ke as default
|
|
102
117
|
};
|
|
@@ -6,6 +6,8 @@ type __VLS_Props = {
|
|
|
6
6
|
message: string;
|
|
7
7
|
type?: UiNotificationType;
|
|
8
8
|
isHTMLMessage?: boolean;
|
|
9
|
+
pauseOnHover?: boolean;
|
|
10
|
+
duration?: number;
|
|
9
11
|
};
|
|
10
12
|
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
11
13
|
remove: (...args: any[]) => void;
|
|
@@ -14,7 +16,9 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
14
16
|
onRemove?: ((...args: any[]) => any) | undefined;
|
|
15
17
|
"onDelete-from-list"?: ((...args: any[]) => any) | undefined;
|
|
16
18
|
}>, {
|
|
19
|
+
pauseOnHover: boolean;
|
|
17
20
|
type: UiNotificationType;
|
|
21
|
+
duration: number;
|
|
18
22
|
isHTMLMessage: boolean;
|
|
19
23
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
20
24
|
export default _default;
|