@factoringplus/pl-components-pack-v3 0.4.69-pre-02 → 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.
@@ -38627,7 +38627,6 @@ const _sfc_main$d = {
38627
38627
  const updateDate = (event) => {
38628
38628
  savedDate.value = dayjs(event.target.value.split(".").reverse().join("-"));
38629
38629
  if (validate(dateValue.value, "DD.MM.YYYY")) {
38630
- console.log(savedDate.value);
38631
38630
  if (savedDate.value) {
38632
38631
  currentDate.value = savedDate.value;
38633
38632
  selectedDate.value = savedDate.value;
@@ -41611,11 +41610,16 @@ const _sfc_main$2 = {
41611
41610
  const props = __props;
41612
41611
  const selected = ref(false);
41613
41612
  const formSelect = ref();
41614
- const select2 = ref("");
41615
- select2.value = props.modelValue;
41616
- let { modelValue: validateValue, getValid } = toRefs(props);
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
+ });
41617
41621
  const ruleForm = ref({
41618
- [props.prop]: validateValue
41622
+ [props.prop]: modelValue
41619
41623
  });
41620
41624
  const validateInp = (prop, isValid, message2) => {
41621
41625
  emit2("validate", prop, isValid, message2);
@@ -41629,10 +41633,6 @@ const _sfc_main$2 = {
41629
41633
  watch(getValid, () => {
41630
41634
  blurSelect();
41631
41635
  });
41632
- watch(select2, (value) => {
41633
- selected.value = false;
41634
- emit2("update:modelValue", value);
41635
- });
41636
41636
  return (_ctx, _cache) => {
41637
41637
  const _component_el_option = ElOption;
41638
41638
  const _component_el_select = ElSelect;
@@ -41662,8 +41662,8 @@ const _sfc_main$2 = {
41662
41662
  }, null, 2),
41663
41663
  createVNode(_component_el_select, {
41664
41664
  "popper-class": __props.checked && "selectBox",
41665
- modelValue: select2.value,
41666
- "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),
41667
41667
  placeholder: __props.placeholder,
41668
41668
  "fit-input-width": true,
41669
41669
  onFocus: _cache[1] || (_cache[1] = ($event) => selected.value = true),
@@ -41680,7 +41680,7 @@ const _sfc_main$2 = {
41680
41680
  default: withCtx(() => [
41681
41681
  createElementVNode("div", _hoisted_2$2, [
41682
41682
  createTextVNode(toDisplayString(item.label) + " ", 1),
41683
- item.value === select2.value ? (openBlock(), createElementBlock("img", _hoisted_3$2)) : createCommentVNode("", true)
41683
+ item.value === unref(select2) ? (openBlock(), createElementBlock("img", _hoisted_3$2)) : createCommentVNode("", true)
41684
41684
  ])
41685
41685
  ]),
41686
41686
  _: 2