@factoringplus/pl-components-pack-v3 0.4.69-pre-01 → 0.4.69-pre-02
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.
|
@@ -38587,7 +38587,7 @@ const _sfc_main$d = {
|
|
|
38587
38587
|
}
|
|
38588
38588
|
},
|
|
38589
38589
|
emits: ["update:modelValue"],
|
|
38590
|
-
setup(__props, { emit: emit2 }) {
|
|
38590
|
+
setup(__props, { expose, emit: emit2 }) {
|
|
38591
38591
|
const props = __props;
|
|
38592
38592
|
dayjs.locale("ru");
|
|
38593
38593
|
const { weekendsDisabled } = toRefs(props);
|
|
@@ -38611,10 +38611,15 @@ const _sfc_main$d = {
|
|
|
38611
38611
|
dateValue.value = displayData(selectedDate.value);
|
|
38612
38612
|
emit2("update:modelValue", selectedDate.value.format("DD.MM.YYYY"));
|
|
38613
38613
|
};
|
|
38614
|
-
const selectDate = (item) => {
|
|
38615
|
-
|
|
38614
|
+
const selectDate = (item, dateFormat) => {
|
|
38615
|
+
if (dateFormat) {
|
|
38616
|
+
selectedDate.value = dayjs(item, dateFormat);
|
|
38617
|
+
} else {
|
|
38618
|
+
selectedDate.value = dayjs().set("date", item.day).set("month", item.month).set("year", item.year);
|
|
38619
|
+
}
|
|
38616
38620
|
confirmDate();
|
|
38617
38621
|
};
|
|
38622
|
+
expose({ selectDate });
|
|
38618
38623
|
const validate = (date4, format2) => {
|
|
38619
38624
|
return dayjs(date4, format2).format(format2) === date4;
|
|
38620
38625
|
};
|
|
@@ -38718,11 +38723,15 @@ const _sfc_main$d = {
|
|
|
38718
38723
|
return openBlock(), createElementBlock("div", {
|
|
38719
38724
|
class: normalizeClass([
|
|
38720
38725
|
"date-picker-plus__day-item",
|
|
38721
|
-
{
|
|
38722
|
-
|
|
38726
|
+
{
|
|
38727
|
+
"date-picker-plus__day-item_disabled": item.type !== "current" || item.weekend
|
|
38728
|
+
},
|
|
38729
|
+
{
|
|
38730
|
+
"date-picker-plus__day-item_active-item": checkCurrentMonthDays(item)
|
|
38731
|
+
}
|
|
38723
38732
|
]),
|
|
38724
38733
|
key: `dd${index}`,
|
|
38725
|
-
onClick: ($event) => (item.weekend ||
|
|
38734
|
+
onClick: ($event) => (item.weekend || item.type === "previous" || item.type === "next" ? {} : selectDate(item), isOpen.value = false)
|
|
38726
38735
|
}, [
|
|
38727
38736
|
createElementVNode("div", _hoisted_5$6, toDisplayString(item.type !== "previous" && item.type !== "next" ? item.day : ""), 1)
|
|
38728
38737
|
], 10, _hoisted_4$7);
|