@factoringplus/pl-components-pack-v3 0.5.16-pre-2 → 0.5.16-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.
@@ -1415,10 +1415,10 @@ function createBaseEach(eachFunc, fromRight) {
1415
1415
  }
1416
1416
  var baseEach = createBaseEach(baseForOwn);
1417
1417
  var baseEach$1 = baseEach;
1418
- var now = function() {
1418
+ var now$1 = function() {
1419
1419
  return root$2.Date.now();
1420
1420
  };
1421
- var now$1 = now;
1421
+ var now$2 = now$1;
1422
1422
  var FUNC_ERROR_TEXT = "Expected a function";
1423
1423
  var nativeMax = Math.max, nativeMin = Math.min;
1424
1424
  function debounce(func, wait, options) {
@@ -1454,7 +1454,7 @@ function debounce(func, wait, options) {
1454
1454
  return lastCallTime === void 0 || timeSinceLastCall >= wait || timeSinceLastCall < 0 || maxing && timeSinceLastInvoke >= maxWait;
1455
1455
  }
1456
1456
  function timerExpired() {
1457
- var time = now$1();
1457
+ var time = now$2();
1458
1458
  if (shouldInvoke(time)) {
1459
1459
  return trailingEdge(time);
1460
1460
  }
@@ -1476,10 +1476,10 @@ function debounce(func, wait, options) {
1476
1476
  lastArgs = lastCallTime = lastThis = timerId = void 0;
1477
1477
  }
1478
1478
  function flush() {
1479
- return timerId === void 0 ? result : trailingEdge(now$1());
1479
+ return timerId === void 0 ? result : trailingEdge(now$2());
1480
1480
  }
1481
1481
  function debounced() {
1482
- var time = now$1(), isInvoking = shouldInvoke(time);
1482
+ var time = now$2(), isInvoking = shouldInvoke(time);
1483
1483
  lastArgs = arguments;
1484
1484
  lastThis = this;
1485
1485
  lastCallTime = time;
@@ -8044,6 +8044,24 @@ const ElButton = withInstall(Button, {
8044
8044
  });
8045
8045
  withNoopInstall(ButtonGroup);
8046
8046
  var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
8047
+ function getAugmentedNamespace(n2) {
8048
+ if (n2.__esModule)
8049
+ return n2;
8050
+ var a2 = Object.defineProperty({}, "__esModule", { value: true });
8051
+ Object.keys(n2).forEach(function(k2) {
8052
+ var d2 = Object.getOwnPropertyDescriptor(n2, k2);
8053
+ Object.defineProperty(a2, k2, d2.get ? d2 : {
8054
+ enumerable: true,
8055
+ get: function() {
8056
+ return n2[k2];
8057
+ }
8058
+ });
8059
+ });
8060
+ return a2;
8061
+ }
8062
+ function commonjsRequire(path) {
8063
+ throw new Error('Could not dynamically require "' + path + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
8064
+ }
8047
8065
  var dayjs_min = { exports: {} };
8048
8066
  (function(module2, exports2) {
8049
8067
  !function(t2, e2) {
@@ -36209,6 +36227,7 @@ function declOfNum(value, words) {
36209
36227
  return words[0];
36210
36228
  return words[2];
36211
36229
  }
36230
+ var bootstrap_min = "";
36212
36231
  var plTable_vue_vue_type_style_index_0_lang = "";
36213
36232
  const _hoisted_1$s = { class: "pl-table" };
36214
36233
  const _hoisted_2$p = { class: "no-data" };
@@ -37817,6 +37836,49 @@ const _sfc_main$p = {
37817
37836
  }
37818
37837
  };
37819
37838
  var markText = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["__scopeId", "data-v-4b113ec9"]]);
37839
+ var uniqid$1 = { exports: {} };
37840
+ var __viteBrowserExternal = {};
37841
+ var __viteBrowserExternal$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
37842
+ __proto__: null,
37843
+ "default": __viteBrowserExternal
37844
+ }, Symbol.toStringTag, { value: "Module" }));
37845
+ var require$$0 = /* @__PURE__ */ getAugmentedNamespace(__viteBrowserExternal$1);
37846
+ var pid = typeof process !== "undefined" && process.pid ? process.pid.toString(36) : "";
37847
+ var address = "";
37848
+ if (typeof __webpack_require__ !== "function" && typeof commonjsRequire !== "undefined") {
37849
+ var mac = "", os = require$$0;
37850
+ if (os.networkInterfaces)
37851
+ var networkInterfaces = os.networkInterfaces();
37852
+ if (networkInterfaces) {
37853
+ loop:
37854
+ for (let interface_key in networkInterfaces) {
37855
+ const networkInterface = networkInterfaces[interface_key];
37856
+ const length = networkInterface.length;
37857
+ for (var i$1 = 0; i$1 < length; i$1++) {
37858
+ if (networkInterface[i$1] !== void 0 && networkInterface[i$1].mac && networkInterface[i$1].mac != "00:00:00:00:00:00") {
37859
+ mac = networkInterface[i$1].mac;
37860
+ break loop;
37861
+ }
37862
+ }
37863
+ }
37864
+ address = mac ? parseInt(mac.replace(/\:|\D+/gi, "")).toString(36) : "";
37865
+ }
37866
+ }
37867
+ uniqid$1.exports = uniqid$1.exports.default = function(prefix, suffix) {
37868
+ return (prefix ? prefix : "") + address + pid + now().toString(36) + (suffix ? suffix : "");
37869
+ };
37870
+ uniqid$1.exports.process = function(prefix, suffix) {
37871
+ return (prefix ? prefix : "") + pid + now().toString(36) + (suffix ? suffix : "");
37872
+ };
37873
+ uniqid$1.exports.time = function(prefix, suffix) {
37874
+ return (prefix ? prefix : "") + now().toString(36) + (suffix ? suffix : "");
37875
+ };
37876
+ function now() {
37877
+ var time = Date.now();
37878
+ var last = now.last || time;
37879
+ return now.last = time > last ? time : last + 1;
37880
+ }
37881
+ var uniqid = uniqid$1.exports;
37820
37882
  var plSuggestions_vue_vue_type_style_index_0_lang = "";
37821
37883
  const _hoisted_1$n = { class: "suggestion" };
37822
37884
  const _hoisted_2$k = { class: "d-flex flex-column" };
@@ -37868,6 +37930,10 @@ const _sfc_main$o = {
37868
37930
  getValidate: {
37869
37931
  type: Boolean,
37870
37932
  default: false
37933
+ },
37934
+ memoryBlur: {
37935
+ type: Boolean,
37936
+ default: true
37871
37937
  }
37872
37938
  },
37873
37939
  emits: ["setValid", "change", "validate", "fetchDadata"],
@@ -37879,11 +37945,17 @@ const _sfc_main$o = {
37879
37945
  getValidate,
37880
37946
  symbolsCountSearch,
37881
37947
  suggestionList,
37882
- noData
37948
+ noData,
37949
+ memoryBlur
37883
37950
  } = toRefs(props);
37884
37951
  const selectedValue = ref("");
37885
37952
  const ruleForm = ref({});
37886
37953
  const modelValue = ref("");
37954
+ const memoryInput = ref("");
37955
+ const memoryInputOnBlur = (event) => {
37956
+ memoryInput.value = event.target.value;
37957
+ };
37958
+ const suggestionBox = ref(null);
37887
37959
  onMounted(() => {
37888
37960
  const dropElements = document.querySelectorAll(".suggestion .el-select-dropdown");
37889
37961
  ruleForm.value = {
@@ -37892,6 +37964,12 @@ const _sfc_main$o = {
37892
37964
  for (let i2 = 0; i2 < dropElements.length; i2 += 1) {
37893
37965
  dropElements[i2].style.width = `${dropElements[i2].offsetWidth}px`;
37894
37966
  }
37967
+ if (memoryBlur.value) {
37968
+ suggestionBox.value.$el.addEventListener("input", memoryInputOnBlur);
37969
+ }
37970
+ });
37971
+ onBeforeUnmount(() => {
37972
+ suggestionBox.value.$el.removeEventListener("input", memoryInputOnBlur);
37895
37973
  });
37896
37974
  watch(selectedValue, (newVal) => {
37897
37975
  ruleForm[prop] = newVal;
@@ -37899,8 +37977,8 @@ const _sfc_main$o = {
37899
37977
  watch(selectedItem, (newVal) => {
37900
37978
  selectedValue.value = newVal.value;
37901
37979
  });
37902
- const suggestionBox = ref(null);
37903
37980
  const change = (item) => {
37981
+ console.log("change", item);
37904
37982
  if (item.target)
37905
37983
  return;
37906
37984
  emit2("change", item);
@@ -37913,6 +37991,13 @@ const _sfc_main$o = {
37913
37991
  };
37914
37992
  const suggestion = ref(null);
37915
37993
  const validateInpBlur = () => {
37994
+ if (memoryBlur.value) {
37995
+ emit2("change", {
37996
+ id: uniqid(),
37997
+ value: memoryInput.value,
37998
+ dadata: false
37999
+ });
38000
+ }
37916
38001
  setTimeout(() => {
37917
38002
  suggestion.value.validate();
37918
38003
  }, 300);
@@ -42207,7 +42292,6 @@ const PlTooltipPlugin = {
42207
42292
  app.component("PlTooltip", _sfc_main$3);
42208
42293
  }
42209
42294
  };
42210
- var bootstrapCustom = "";
42211
42295
  const PlPlugin = {
42212
42296
  install(app) {
42213
42297
  var _a2, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t2, _u;