@factoringplus/pl-components-pack-v3 0.4.69-pre-01 → 0.4.69-pre-03
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
|
};
|
|
@@ -38622,7 +38627,6 @@ const _sfc_main$d = {
|
|
|
38622
38627
|
const updateDate = (event) => {
|
|
38623
38628
|
savedDate.value = dayjs(event.target.value.split(".").reverse().join("-"));
|
|
38624
38629
|
if (validate(dateValue.value, "DD.MM.YYYY")) {
|
|
38625
|
-
console.log(savedDate.value);
|
|
38626
38630
|
if (savedDate.value) {
|
|
38627
38631
|
currentDate.value = savedDate.value;
|
|
38628
38632
|
selectedDate.value = savedDate.value;
|
|
@@ -38718,11 +38722,15 @@ const _sfc_main$d = {
|
|
|
38718
38722
|
return openBlock(), createElementBlock("div", {
|
|
38719
38723
|
class: normalizeClass([
|
|
38720
38724
|
"date-picker-plus__day-item",
|
|
38721
|
-
{
|
|
38722
|
-
|
|
38725
|
+
{
|
|
38726
|
+
"date-picker-plus__day-item_disabled": item.type !== "current" || item.weekend
|
|
38727
|
+
},
|
|
38728
|
+
{
|
|
38729
|
+
"date-picker-plus__day-item_active-item": checkCurrentMonthDays(item)
|
|
38730
|
+
}
|
|
38723
38731
|
]),
|
|
38724
38732
|
key: `dd${index}`,
|
|
38725
|
-
onClick: ($event) => (item.weekend ||
|
|
38733
|
+
onClick: ($event) => (item.weekend || item.type === "previous" || item.type === "next" ? {} : selectDate(item), isOpen.value = false)
|
|
38726
38734
|
}, [
|
|
38727
38735
|
createElementVNode("div", _hoisted_5$6, toDisplayString(item.type !== "previous" && item.type !== "next" ? item.day : ""), 1)
|
|
38728
38736
|
], 10, _hoisted_4$7);
|
|
@@ -41602,11 +41610,16 @@ const _sfc_main$2 = {
|
|
|
41602
41610
|
const props = __props;
|
|
41603
41611
|
const selected = ref(false);
|
|
41604
41612
|
const formSelect = ref();
|
|
41605
|
-
|
|
41606
|
-
select2
|
|
41607
|
-
|
|
41613
|
+
let { modelValue, getValid } = toRefs(props);
|
|
41614
|
+
const select2 = computed$1({
|
|
41615
|
+
get: () => props.modelValue,
|
|
41616
|
+
set: (val) => {
|
|
41617
|
+
selected.value = false;
|
|
41618
|
+
emit2("update:modelValue", val);
|
|
41619
|
+
}
|
|
41620
|
+
});
|
|
41608
41621
|
const ruleForm = ref({
|
|
41609
|
-
[props.prop]:
|
|
41622
|
+
[props.prop]: modelValue
|
|
41610
41623
|
});
|
|
41611
41624
|
const validateInp = (prop, isValid, message2) => {
|
|
41612
41625
|
emit2("validate", prop, isValid, message2);
|
|
@@ -41620,10 +41633,6 @@ const _sfc_main$2 = {
|
|
|
41620
41633
|
watch(getValid, () => {
|
|
41621
41634
|
blurSelect();
|
|
41622
41635
|
});
|
|
41623
|
-
watch(select2, (value) => {
|
|
41624
|
-
selected.value = false;
|
|
41625
|
-
emit2("update:modelValue", value);
|
|
41626
|
-
});
|
|
41627
41636
|
return (_ctx, _cache) => {
|
|
41628
41637
|
const _component_el_option = ElOption;
|
|
41629
41638
|
const _component_el_select = ElSelect;
|
|
@@ -41653,8 +41662,8 @@ const _sfc_main$2 = {
|
|
|
41653
41662
|
}, null, 2),
|
|
41654
41663
|
createVNode(_component_el_select, {
|
|
41655
41664
|
"popper-class": __props.checked && "selectBox",
|
|
41656
|
-
modelValue: select2
|
|
41657
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => select2.value = $event),
|
|
41665
|
+
modelValue: unref(select2),
|
|
41666
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(select2) ? select2.value = $event : null),
|
|
41658
41667
|
placeholder: __props.placeholder,
|
|
41659
41668
|
"fit-input-width": true,
|
|
41660
41669
|
onFocus: _cache[1] || (_cache[1] = ($event) => selected.value = true),
|
|
@@ -41671,7 +41680,7 @@ const _sfc_main$2 = {
|
|
|
41671
41680
|
default: withCtx(() => [
|
|
41672
41681
|
createElementVNode("div", _hoisted_2$2, [
|
|
41673
41682
|
createTextVNode(toDisplayString(item.label) + " ", 1),
|
|
41674
|
-
item.value === select2
|
|
41683
|
+
item.value === unref(select2) ? (openBlock(), createElementBlock("img", _hoisted_3$2)) : createCommentVNode("", true)
|
|
41675
41684
|
])
|
|
41676
41685
|
]),
|
|
41677
41686
|
_: 2
|