@factoringplus/pl-components-pack-v3 0.4.62 → 0.4.63
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.
|
@@ -25901,7 +25901,10 @@ var objectSupport$1 = { exports: {} };
|
|
|
25901
25901
|
var objectSupport = objectSupport$1.exports;
|
|
25902
25902
|
var plDatePickerRange_vue_vue_type_style_index_0_lang = "";
|
|
25903
25903
|
const _hoisted_1$u = { class: "date-picker" };
|
|
25904
|
-
const _hoisted_2$q = {
|
|
25904
|
+
const _hoisted_2$q = {
|
|
25905
|
+
key: 0,
|
|
25906
|
+
class: "date-picker__wrapper"
|
|
25907
|
+
};
|
|
25905
25908
|
const _hoisted_3$n = { class: "date-switcher__container flex-column" };
|
|
25906
25909
|
const _hoisted_4$g = { class: "d-flex pb-4 justify-content-between" };
|
|
25907
25910
|
const _hoisted_5$b = { class: "date-switcher justify-content-center flex-column" };
|
|
@@ -25930,20 +25933,29 @@ const _sfc_main$u = {
|
|
|
25930
25933
|
label: {
|
|
25931
25934
|
type: String,
|
|
25932
25935
|
default: ""
|
|
25936
|
+
},
|
|
25937
|
+
isOpen: {
|
|
25938
|
+
type: Boolean,
|
|
25939
|
+
default: false
|
|
25940
|
+
},
|
|
25941
|
+
showInput: {
|
|
25942
|
+
type: Boolean,
|
|
25943
|
+
default: true
|
|
25933
25944
|
}
|
|
25934
25945
|
},
|
|
25935
25946
|
emits: ["update:modelValue", "changeOpen"],
|
|
25936
25947
|
setup(__props, { emit: emit2 }) {
|
|
25948
|
+
const props = __props;
|
|
25937
25949
|
dayjs.locale("ru");
|
|
25938
25950
|
dayjs.extend(isBetween);
|
|
25939
25951
|
dayjs.extend(objectSupport);
|
|
25952
|
+
const { isOpen } = toRefs(props);
|
|
25940
25953
|
const regMask = /^(?:(?:31(\/|-|\.)(?:0?[13578]|1[02]))\1|(?:(?:29|30)(\/|-|\.)(?:0?[1,3-9]|1[0-2])\2))(?:(?:1[6-9]|[2-9]\d)?\d{2})$|^(?:29(\/|-|\.)0?2\3(?:(?:(?:1[6-9]|[2-9]\d)?(?:0[48]|[2468][048]|[13579][26])|(?:(?:16|[2468][048]|[3579][26])00))))$|^(?:0?[1-9]|1\d|2[0-8])(\/|-|\.)(?:(?:0?[1-9])|(?:1[0-2]))\4(?:(?:1[6-9]|[2-9]\d)?\d{4})$/g;
|
|
25941
25954
|
const dateValue = ref("");
|
|
25942
25955
|
const currentDate = ref(dayjs());
|
|
25943
25956
|
const startDate = ref(dayjs());
|
|
25944
25957
|
const endDate = ref(dayjs());
|
|
25945
25958
|
const confirmedDate = ref(dayjs());
|
|
25946
|
-
const isOpen = ref(false);
|
|
25947
25959
|
const rangeStartDateValue = ref(dayjs().format("DD.MM.YYYY"));
|
|
25948
25960
|
const rangeEndDateValue = ref(dayjs().format("DD.MM.YYYY"));
|
|
25949
25961
|
const WEEK_DAYS2 = ["\u041F\u043D", "\u0412\u0442", "\u0421\u0440", "\u0427\u0442", "\u041F\u0442", "\u0421\u0431", "\u0412\u0441"];
|
|
@@ -26026,7 +26038,7 @@ const _sfc_main$u = {
|
|
|
26026
26038
|
currentDate.value = startDate.value;
|
|
26027
26039
|
range3 = [];
|
|
26028
26040
|
dateValue.value = "";
|
|
26029
|
-
|
|
26041
|
+
emit2("changeOpen", true);
|
|
26030
26042
|
};
|
|
26031
26043
|
const closeDatePicker = () => {
|
|
26032
26044
|
if (!regMask.test(dateValue.value.split("-")[0])) {
|
|
@@ -26037,7 +26049,7 @@ const _sfc_main$u = {
|
|
|
26037
26049
|
currentDate.value = startDate.value;
|
|
26038
26050
|
}
|
|
26039
26051
|
setupUpdate();
|
|
26040
|
-
|
|
26052
|
+
emit2("changeOpen", true);
|
|
26041
26053
|
};
|
|
26042
26054
|
watch(isOpen, () => {
|
|
26043
26055
|
if (regMask.test(dateValue.value.split("-")[0])) {
|
|
@@ -26050,7 +26062,9 @@ const _sfc_main$u = {
|
|
|
26050
26062
|
});
|
|
26051
26063
|
const datePickerRef = ref(null);
|
|
26052
26064
|
onClickOutside(datePickerRef, () => {
|
|
26053
|
-
|
|
26065
|
+
setTimeout(() => {
|
|
26066
|
+
closeDatePicker();
|
|
26067
|
+
});
|
|
26054
26068
|
});
|
|
26055
26069
|
const confirmDate = () => {
|
|
26056
26070
|
currentDate.value = startDate.value;
|
|
@@ -26063,7 +26077,7 @@ const _sfc_main$u = {
|
|
|
26063
26077
|
}
|
|
26064
26078
|
dateValue.value = startDate.value.format("DD.MM.YYYY") + "-" + endDate.value.format("DD.MM.YYYY");
|
|
26065
26079
|
emit2("update:modelValue", startDate.value.format("DD.MM.YYYY") + "-" + endDate.value.format("DD.MM.YYYY"));
|
|
26066
|
-
|
|
26080
|
+
emit2("changeOpen", true);
|
|
26067
26081
|
};
|
|
26068
26082
|
const getArrayOfDays = () => {
|
|
26069
26083
|
dayjs();
|
|
@@ -26193,7 +26207,7 @@ const _sfc_main$u = {
|
|
|
26193
26207
|
return (_ctx, _cache) => {
|
|
26194
26208
|
const _directive_maska = resolveDirective("maska");
|
|
26195
26209
|
return openBlock(), createElementBlock("div", _hoisted_1$u, [
|
|
26196
|
-
|
|
26210
|
+
__props.showInput ? (openBlock(), createElementBlock("div", _hoisted_2$q, [
|
|
26197
26211
|
createVNode(_sfc_main$z, {
|
|
26198
26212
|
mask: "##.##.####-##.##.####",
|
|
26199
26213
|
modelValue: dateValue.value,
|
|
@@ -26207,11 +26221,11 @@ const _sfc_main$u = {
|
|
|
26207
26221
|
class: "date-picker__img",
|
|
26208
26222
|
src: _imports_0$8,
|
|
26209
26223
|
alt: "date-picker icon",
|
|
26210
|
-
onClick: _cache[1] || (_cache[1] = ($event) =>
|
|
26224
|
+
onClick: _cache[1] || (_cache[1] = ($event) => emit2("changeOpen", !unref(isOpen)))
|
|
26211
26225
|
})
|
|
26212
|
-
]),
|
|
26213
|
-
isOpen
|
|
26214
|
-
key:
|
|
26226
|
+
])) : createCommentVNode("", true),
|
|
26227
|
+
!unref(isOpen) ? (openBlock(), createElementBlock("div", {
|
|
26228
|
+
key: 1,
|
|
26215
26229
|
id: "date-picker-popup",
|
|
26216
26230
|
class: "pl-date-picker__popup",
|
|
26217
26231
|
ref_key: "datePickerRef",
|