@factoringplus/pl-components-pack-v3 0.5.16-pre-1 → 0.5.16-pre-01

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.
@@ -36209,6 +36209,7 @@ function declOfNum(value, words) {
36209
36209
  return words[0];
36210
36210
  return words[2];
36211
36211
  }
36212
+ var bootstrap_min = "";
36212
36213
  var plTable_vue_vue_type_style_index_0_lang = "";
36213
36214
  const _hoisted_1$s = { class: "pl-table" };
36214
36215
  const _hoisted_2$p = { class: "no-data" };
@@ -37868,6 +37869,10 @@ const _sfc_main$o = {
37868
37869
  getValidate: {
37869
37870
  type: Boolean,
37870
37871
  default: false
37872
+ },
37873
+ memoryBlur: {
37874
+ type: Boolean,
37875
+ default: false
37871
37876
  }
37872
37877
  },
37873
37878
  emits: ["setValid", "change", "validate", "fetchDadata"],
@@ -37879,11 +37884,17 @@ const _sfc_main$o = {
37879
37884
  getValidate,
37880
37885
  symbolsCountSearch,
37881
37886
  suggestionList,
37882
- noData
37887
+ noData,
37888
+ memoryBlur
37883
37889
  } = toRefs(props);
37884
37890
  const selectedValue = ref("");
37885
37891
  const ruleForm = ref({});
37886
37892
  const modelValue = ref("");
37893
+ const memoryInput = ref("");
37894
+ const memoryInputOnBlur = (event) => {
37895
+ memoryInput.value = event.target.value;
37896
+ };
37897
+ const suggestionBox = ref(null);
37887
37898
  onMounted(() => {
37888
37899
  const dropElements = document.querySelectorAll(".suggestion .el-select-dropdown");
37889
37900
  ruleForm.value = {
@@ -37892,6 +37903,12 @@ const _sfc_main$o = {
37892
37903
  for (let i2 = 0; i2 < dropElements.length; i2 += 1) {
37893
37904
  dropElements[i2].style.width = `${dropElements[i2].offsetWidth}px`;
37894
37905
  }
37906
+ if (memoryBlur.value) {
37907
+ suggestionBox.value.$el.addEventListener("input", memoryInputOnBlur);
37908
+ }
37909
+ });
37910
+ onBeforeUnmount(() => {
37911
+ suggestionBox.value.$el.removeEventListener("input", memoryInputOnBlur);
37895
37912
  });
37896
37913
  watch(selectedValue, (newVal) => {
37897
37914
  ruleForm[prop] = newVal;
@@ -37899,7 +37916,6 @@ const _sfc_main$o = {
37899
37916
  watch(selectedItem, (newVal) => {
37900
37917
  selectedValue.value = newVal.value;
37901
37918
  });
37902
- const suggestionBox = ref(null);
37903
37919
  const change = (item) => {
37904
37920
  if (item.target)
37905
37921
  return;
@@ -37913,6 +37929,9 @@ const _sfc_main$o = {
37913
37929
  };
37914
37930
  const suggestion = ref(null);
37915
37931
  const validateInpBlur = () => {
37932
+ if (memoryBlur.value) {
37933
+ selectedValue.value = memoryInput.value;
37934
+ }
37916
37935
  setTimeout(() => {
37917
37936
  suggestion.value.validate();
37918
37937
  }, 300);