@factoringplus/pl-components-pack-v3 0.4.69-pre-02 → 0.4.69-pre-04

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.
@@ -25500,7 +25500,9 @@ const _sfc_main$z = {
25500
25500
  model: ruleForm,
25501
25501
  ref_key: "refInput",
25502
25502
  ref: refInput,
25503
- rules: __props.rules
25503
+ rules: __props.rules,
25504
+ onSubmit: _cache[4] || (_cache[4] = withModifiers(() => {
25505
+ }, ["prevent"]))
25504
25506
  }, {
25505
25507
  default: withCtx(() => [
25506
25508
  createElementVNode("div", {
@@ -37700,7 +37702,9 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
37700
37702
  "label-position": "top",
37701
37703
  model: $data.ruleForm,
37702
37704
  ref: "suggestion",
37703
- rules: $props.rules
37705
+ rules: $props.rules,
37706
+ onSubmit: _cache[1] || (_cache[1] = withModifiers(() => {
37707
+ }, ["prevent"]))
37704
37708
  }, {
37705
37709
  default: withCtx(() => [
37706
37710
  createVNode(_component_el_form_item, {
@@ -38627,7 +38631,6 @@ const _sfc_main$d = {
38627
38631
  const updateDate = (event) => {
38628
38632
  savedDate.value = dayjs(event.target.value.split(".").reverse().join("-"));
38629
38633
  if (validate(dateValue.value, "DD.MM.YYYY")) {
38630
- console.log(savedDate.value);
38631
38634
  if (savedDate.value) {
38632
38635
  currentDate.value = savedDate.value;
38633
38636
  selectedDate.value = savedDate.value;
@@ -41611,11 +41614,16 @@ const _sfc_main$2 = {
41611
41614
  const props = __props;
41612
41615
  const selected = ref(false);
41613
41616
  const formSelect = ref();
41614
- const select2 = ref("");
41615
- select2.value = props.modelValue;
41616
- let { modelValue: validateValue, getValid } = toRefs(props);
41617
+ let { modelValue, getValid } = toRefs(props);
41618
+ const select2 = computed$1({
41619
+ get: () => props.modelValue,
41620
+ set: (val) => {
41621
+ selected.value = false;
41622
+ emit2("update:modelValue", val);
41623
+ }
41624
+ });
41617
41625
  const ruleForm = ref({
41618
- [props.prop]: validateValue
41626
+ [props.prop]: modelValue
41619
41627
  });
41620
41628
  const validateInp = (prop, isValid, message2) => {
41621
41629
  emit2("validate", prop, isValid, message2);
@@ -41629,10 +41637,6 @@ const _sfc_main$2 = {
41629
41637
  watch(getValid, () => {
41630
41638
  blurSelect();
41631
41639
  });
41632
- watch(select2, (value) => {
41633
- selected.value = false;
41634
- emit2("update:modelValue", value);
41635
- });
41636
41640
  return (_ctx, _cache) => {
41637
41641
  const _component_el_option = ElOption;
41638
41642
  const _component_el_select = ElSelect;
@@ -41645,7 +41649,9 @@ const _sfc_main$2 = {
41645
41649
  model: ruleForm.value,
41646
41650
  ref_key: "formSelect",
41647
41651
  ref: formSelect,
41648
- rules: __props.rules
41652
+ rules: __props.rules,
41653
+ onSubmit: _cache[2] || (_cache[2] = withModifiers(() => {
41654
+ }, ["prevent"]))
41649
41655
  }, {
41650
41656
  default: withCtx(() => [
41651
41657
  createVNode(_component_el_form_item, {
@@ -41662,8 +41668,8 @@ const _sfc_main$2 = {
41662
41668
  }, null, 2),
41663
41669
  createVNode(_component_el_select, {
41664
41670
  "popper-class": __props.checked && "selectBox",
41665
- modelValue: select2.value,
41666
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => select2.value = $event),
41671
+ modelValue: unref(select2),
41672
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(select2) ? select2.value = $event : null),
41667
41673
  placeholder: __props.placeholder,
41668
41674
  "fit-input-width": true,
41669
41675
  onFocus: _cache[1] || (_cache[1] = ($event) => selected.value = true),
@@ -41680,7 +41686,7 @@ const _sfc_main$2 = {
41680
41686
  default: withCtx(() => [
41681
41687
  createElementVNode("div", _hoisted_2$2, [
41682
41688
  createTextVNode(toDisplayString(item.label) + " ", 1),
41683
- item.value === select2.value ? (openBlock(), createElementBlock("img", _hoisted_3$2)) : createCommentVNode("", true)
41689
+ item.value === unref(select2) ? (openBlock(), createElementBlock("img", _hoisted_3$2)) : createCommentVNode("", true)
41684
41690
  ])
41685
41691
  ]),
41686
41692
  _: 2