@factoringplus/pl-components-pack-v3 0.5.16-pre-09 → 0.5.16

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.
@@ -1,4 +1,4 @@
1
- import { unref, getCurrentScope, onScopeDispose, ref, watch, getCurrentInstance, onMounted, nextTick, readonly, shallowRef, watchEffect, computed as computed$1, openBlock, createElementBlock, createElementVNode, warn, isVNode, provide, inject, onBeforeUnmount, toRef, onUnmounted, isRef, onBeforeMount, defineComponent, mergeProps, renderSlot, useAttrs as useAttrs$1, useSlots, withDirectives, createCommentVNode, Fragment, normalizeClass, createBlock, withCtx, resolveDynamicComponent, withModifiers, createVNode, toDisplayString, normalizeStyle, vShow, Transition, reactive, onUpdated, cloneVNode, Text, Comment, Teleport, onDeactivated, renderList, createTextVNode, toRaw as toRaw$1, vModelCheckbox, toRefs, withKeys, h as h$2, createSlots, triggerRef, resolveComponent, resolveDirective, vModelText, TransitionGroup, createApp, shallowReactive, render, normalizeProps, guardReactiveProps, pushScopeId, popScopeId, createStaticVNode } from "vue";
1
+ import { getCurrentScope, onScopeDispose, unref, ref, watch, getCurrentInstance, onMounted, nextTick, shallowRef, watchEffect, readonly, computed as computed$1, openBlock, createElementBlock, createElementVNode, warn, isVNode, provide, inject, onBeforeUnmount, toRef, onUnmounted, isRef, onBeforeMount, defineComponent, mergeProps, renderSlot, useAttrs as useAttrs$1, useSlots, withDirectives, createCommentVNode, Fragment, normalizeClass, createBlock, withCtx, resolveDynamicComponent, withModifiers, createVNode, toDisplayString, normalizeStyle, vShow, Transition, reactive, onUpdated, cloneVNode, Text, Comment, Teleport, onDeactivated, renderList, createTextVNode, toRaw as toRaw$1, vModelCheckbox, toRefs, withKeys, h as h$2, createSlots, triggerRef, resolveComponent, resolveDirective, vModelText, TransitionGroup, createApp, shallowReactive, render, normalizeProps, guardReactiveProps, pushScopeId, popScopeId, createStaticVNode } from "vue";
2
2
  import moment from "moment";
3
3
  var freeGlobal = typeof global == "object" && global && global.Object === Object && global;
4
4
  var freeGlobal$1 = freeGlobal;
@@ -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$1 = function() {
1418
+ var now = function() {
1419
1419
  return root$2.Date.now();
1420
1420
  };
1421
- var now$2 = now$1;
1421
+ var now$1 = now;
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$2();
1457
+ var time = now$1();
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$2());
1479
+ return timerId === void 0 ? result : trailingEdge(now$1());
1480
1480
  }
1481
1481
  function debounced() {
1482
- var time = now$2(), isInvoking = shouldInvoke(time);
1482
+ var time = now$1(), isInvoking = shouldInvoke(time);
1483
1483
  lastArgs = arguments;
1484
1484
  lastThis = this;
1485
1485
  lastCallTime = time;
@@ -1622,56 +1622,45 @@ const isNumber$1 = (val) => typeof val === "number";
1622
1622
  const isString$2 = (val) => typeof val === "string";
1623
1623
  const noop = () => {
1624
1624
  };
1625
- const isIOS = isClient && ((_a = window == null ? void 0 : window.navigator) == null ? void 0 : _a.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
1625
+ isClient && ((_a = window == null ? void 0 : window.navigator) == null ? void 0 : _a.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
1626
1626
  function resolveUnref(r2) {
1627
1627
  return typeof r2 === "function" ? r2() : unref(r2);
1628
1628
  }
1629
1629
  function createFilterWrapper(filter, fn2) {
1630
1630
  function wrapper(...args) {
1631
- return new Promise((resolve, reject) => {
1632
- Promise.resolve(filter(() => fn2.apply(this, args), { fn: fn2, thisArg: this, args })).then(resolve).catch(reject);
1633
- });
1631
+ filter(() => fn2.apply(this, args), { fn: fn2, thisArg: this, args });
1634
1632
  }
1635
1633
  return wrapper;
1636
1634
  }
1637
1635
  function debounceFilter(ms, options = {}) {
1638
1636
  let timer;
1639
1637
  let maxTimer;
1640
- let lastRejector = noop;
1641
- const _clearTimeout = (timer2) => {
1642
- clearTimeout(timer2);
1643
- lastRejector();
1644
- lastRejector = noop;
1645
- };
1646
1638
  const filter = (invoke) => {
1647
1639
  const duration = resolveUnref(ms);
1648
1640
  const maxDuration = resolveUnref(options.maxWait);
1649
1641
  if (timer)
1650
- _clearTimeout(timer);
1642
+ clearTimeout(timer);
1651
1643
  if (duration <= 0 || maxDuration !== void 0 && maxDuration <= 0) {
1652
1644
  if (maxTimer) {
1653
- _clearTimeout(maxTimer);
1645
+ clearTimeout(maxTimer);
1654
1646
  maxTimer = null;
1655
1647
  }
1656
- return Promise.resolve(invoke());
1657
- }
1658
- return new Promise((resolve, reject) => {
1659
- lastRejector = options.rejectOnCancel ? reject : resolve;
1660
- if (maxDuration && !maxTimer) {
1661
- maxTimer = setTimeout(() => {
1662
- if (timer)
1663
- _clearTimeout(timer);
1664
- maxTimer = null;
1665
- resolve(invoke());
1666
- }, maxDuration);
1667
- }
1668
- timer = setTimeout(() => {
1669
- if (maxTimer)
1670
- _clearTimeout(maxTimer);
1648
+ return invoke();
1649
+ }
1650
+ if (maxDuration && !maxTimer) {
1651
+ maxTimer = setTimeout(() => {
1652
+ if (timer)
1653
+ clearTimeout(timer);
1671
1654
  maxTimer = null;
1672
- resolve(invoke());
1673
- }, duration);
1674
- });
1655
+ invoke();
1656
+ }, maxDuration);
1657
+ }
1658
+ timer = setTimeout(() => {
1659
+ if (maxTimer)
1660
+ clearTimeout(maxTimer);
1661
+ maxTimer = null;
1662
+ invoke();
1663
+ }, duration);
1675
1664
  };
1676
1665
  return filter;
1677
1666
  }
@@ -1689,6 +1678,8 @@ function useDebounceFn(fn2, ms = 200, options = {}) {
1689
1678
  return createFilterWrapper(debounceFilter(ms, options), fn2);
1690
1679
  }
1691
1680
  function refDebounced(value, ms = 200, options = {}) {
1681
+ if (ms <= 0)
1682
+ return value;
1692
1683
  const debounced = ref(value.value);
1693
1684
  const updater = useDebounceFn(() => {
1694
1685
  debounced.value = value.value;
@@ -1736,7 +1727,7 @@ function useTimeoutFn(cb, interval, options = {}) {
1736
1727
  }
1737
1728
  tryOnScopeDispose(stop);
1738
1729
  return {
1739
- isPending: readonly(isPending),
1730
+ isPending,
1740
1731
  start,
1741
1732
  stop
1742
1733
  };
@@ -1752,37 +1743,27 @@ isClient ? window.navigator : void 0;
1752
1743
  isClient ? window.location : void 0;
1753
1744
  function useEventListener(...args) {
1754
1745
  let target;
1755
- let events;
1756
- let listeners;
1746
+ let event;
1747
+ let listener;
1757
1748
  let options;
1758
- if (isString$2(args[0]) || Array.isArray(args[0])) {
1759
- [events, listeners, options] = args;
1749
+ if (isString$2(args[0])) {
1750
+ [event, listener, options] = args;
1760
1751
  target = defaultWindow;
1761
1752
  } else {
1762
- [target, events, listeners, options] = args;
1753
+ [target, event, listener, options] = args;
1763
1754
  }
1764
1755
  if (!target)
1765
1756
  return noop;
1766
- if (!Array.isArray(events))
1767
- events = [events];
1768
- if (!Array.isArray(listeners))
1769
- listeners = [listeners];
1770
- const cleanups = [];
1771
- const cleanup = () => {
1772
- cleanups.forEach((fn2) => fn2());
1773
- cleanups.length = 0;
1774
- };
1775
- const register2 = (el, event, listener, options2) => {
1776
- el.addEventListener(event, listener, options2);
1777
- return () => el.removeEventListener(event, listener, options2);
1778
- };
1779
- const stopWatch = watch(() => [unrefElement(target), resolveUnref(options)], ([el, options2]) => {
1757
+ let cleanup = noop;
1758
+ const stopWatch = watch(() => unrefElement(target), (el) => {
1780
1759
  cleanup();
1781
1760
  if (!el)
1782
1761
  return;
1783
- cleanups.push(...events.flatMap((event) => {
1784
- return listeners.map((listener) => register2(el, event, listener, options2));
1785
- }));
1762
+ el.addEventListener(event, listener, options);
1763
+ cleanup = () => {
1764
+ el.removeEventListener(event, listener, options);
1765
+ cleanup = noop;
1766
+ };
1786
1767
  }, { immediate: true, flush: "post" });
1787
1768
  const stop = () => {
1788
1769
  stopWatch();
@@ -1791,35 +1772,24 @@ function useEventListener(...args) {
1791
1772
  tryOnScopeDispose(stop);
1792
1773
  return stop;
1793
1774
  }
1794
- let _iOSWorkaround = false;
1795
1775
  function onClickOutside(target, handler, options = {}) {
1796
- const { window: window2 = defaultWindow, ignore = [], capture = true, detectIframe = false } = options;
1776
+ const { window: window2 = defaultWindow, ignore, capture = true, detectIframe = false } = options;
1797
1777
  if (!window2)
1798
1778
  return;
1799
- if (isIOS && !_iOSWorkaround) {
1800
- _iOSWorkaround = true;
1801
- Array.from(window2.document.body.children).forEach((el) => el.addEventListener("click", noop));
1802
- }
1803
- let shouldListen = true;
1804
- const shouldIgnore = (event) => {
1805
- return ignore.some((target2) => {
1806
- if (typeof target2 === "string") {
1807
- return Array.from(window2.document.querySelectorAll(target2)).some((el) => el === event.target || event.composedPath().includes(el));
1808
- } else {
1809
- const el = unrefElement(target2);
1810
- return el && (event.target === el || event.composedPath().includes(el));
1811
- }
1812
- });
1813
- };
1779
+ const shouldListen = ref(true);
1780
+ let fallback;
1814
1781
  const listener = (event) => {
1782
+ window2.clearTimeout(fallback);
1815
1783
  const el = unrefElement(target);
1816
- if (!el || el === event.target || event.composedPath().includes(el))
1817
- return;
1818
- if (event.detail === 0)
1819
- shouldListen = !shouldIgnore(event);
1820
- if (!shouldListen) {
1821
- shouldListen = true;
1784
+ const composedPath = event.composedPath();
1785
+ if (!el || el === event.target || composedPath.includes(el) || !shouldListen.value)
1822
1786
  return;
1787
+ if (ignore && ignore.length > 0) {
1788
+ if (ignore.some((target2) => {
1789
+ const el2 = unrefElement(target2);
1790
+ return el2 && (event.target === el2 || composedPath.includes(el2));
1791
+ }))
1792
+ return;
1823
1793
  }
1824
1794
  handler(event);
1825
1795
  };
@@ -1827,13 +1797,19 @@ function onClickOutside(target, handler, options = {}) {
1827
1797
  useEventListener(window2, "click", listener, { passive: true, capture }),
1828
1798
  useEventListener(window2, "pointerdown", (e2) => {
1829
1799
  const el = unrefElement(target);
1830
- if (el)
1831
- shouldListen = !e2.composedPath().includes(el) && !shouldIgnore(e2);
1800
+ shouldListen.value = !!el && !e2.composedPath().includes(el);
1801
+ }, { passive: true }),
1802
+ useEventListener(window2, "pointerup", (e2) => {
1803
+ if (e2.button === 0) {
1804
+ const path = e2.composedPath();
1805
+ e2.composedPath = () => path;
1806
+ fallback = window2.setTimeout(() => listener(e2), 50);
1807
+ }
1832
1808
  }, { passive: true }),
1833
1809
  detectIframe && useEventListener(window2, "blur", (event) => {
1834
1810
  var _a2;
1835
1811
  const el = unrefElement(target);
1836
- if (((_a2 = window2.document.activeElement) == null ? void 0 : _a2.tagName) === "IFRAME" && !(el == null ? void 0 : el.contains(window2.document.activeElement)))
1812
+ if (((_a2 = document.activeElement) == null ? void 0 : _a2.tagName) === "IFRAME" && !(el == null ? void 0 : el.contains(document.activeElement)))
1837
1813
  handler(event);
1838
1814
  })
1839
1815
  ].filter(Boolean);
@@ -1863,17 +1839,17 @@ function useDocumentVisibility({ document: document2 = defaultDocument } = {}) {
1863
1839
  });
1864
1840
  return visibility;
1865
1841
  }
1866
- var __getOwnPropSymbols$g = Object.getOwnPropertySymbols;
1867
- var __hasOwnProp$g = Object.prototype.hasOwnProperty;
1868
- var __propIsEnum$g = Object.prototype.propertyIsEnumerable;
1842
+ var __getOwnPropSymbols$f = Object.getOwnPropertySymbols;
1843
+ var __hasOwnProp$f = Object.prototype.hasOwnProperty;
1844
+ var __propIsEnum$f = Object.prototype.propertyIsEnumerable;
1869
1845
  var __objRest$2 = (source2, exclude) => {
1870
1846
  var target = {};
1871
1847
  for (var prop in source2)
1872
- if (__hasOwnProp$g.call(source2, prop) && exclude.indexOf(prop) < 0)
1848
+ if (__hasOwnProp$f.call(source2, prop) && exclude.indexOf(prop) < 0)
1873
1849
  target[prop] = source2[prop];
1874
- if (source2 != null && __getOwnPropSymbols$g)
1875
- for (var prop of __getOwnPropSymbols$g(source2)) {
1876
- if (exclude.indexOf(prop) < 0 && __propIsEnum$g.call(source2, prop))
1850
+ if (source2 != null && __getOwnPropSymbols$f)
1851
+ for (var prop of __getOwnPropSymbols$f(source2)) {
1852
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$f.call(source2, prop))
1877
1853
  target[prop] = source2[prop];
1878
1854
  }
1879
1855
  return target;
@@ -8068,24 +8044,6 @@ const ElButton = withInstall(Button, {
8068
8044
  });
8069
8045
  withNoopInstall(ButtonGroup);
8070
8046
  var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
8071
- function getAugmentedNamespace(n2) {
8072
- if (n2.__esModule)
8073
- return n2;
8074
- var a2 = Object.defineProperty({}, "__esModule", { value: true });
8075
- Object.keys(n2).forEach(function(k2) {
8076
- var d2 = Object.getOwnPropertyDescriptor(n2, k2);
8077
- Object.defineProperty(a2, k2, d2.get ? d2 : {
8078
- enumerable: true,
8079
- get: function() {
8080
- return n2[k2];
8081
- }
8082
- });
8083
- });
8084
- return a2;
8085
- }
8086
- function commonjsRequire(path) {
8087
- 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.');
8088
- }
8089
8047
  var dayjs_min = { exports: {} };
8090
8048
  (function(module2, exports2) {
8091
8049
  !function(t2, e2) {
@@ -25978,7 +25936,7 @@ var objectSupport$1 = { exports: {} };
25978
25936
  })(objectSupport$1);
25979
25937
  var objectSupport = objectSupport$1.exports;
25980
25938
  var plDatePickerRange_vue_vue_type_style_index_0_scoped_true_lang = "";
25981
- const _withScopeId = (n2) => (pushScopeId("data-v-56266fb4"), n2 = n2(), popScopeId(), n2);
25939
+ const _withScopeId = (n2) => (pushScopeId("data-v-61425312"), n2 = n2(), popScopeId(), n2);
25982
25940
  const _hoisted_1$v = ["id"];
25983
25941
  const _hoisted_2$r = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("img", {
25984
25942
  class: "date-picker__img",
@@ -25988,10 +25946,10 @@ const _hoisted_2$r = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createEl
25988
25946
  const _hoisted_3$n = { class: "date-switcher__container flex-column" };
25989
25947
  const _hoisted_4$h = { class: "d-flex pb-4 justify-content-between" };
25990
25948
  const _hoisted_5$b = { class: "date-switcher justify-content-center flex-column" };
25991
- const _hoisted_6$7 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("span", { class: "pl-date-picker__placeholder pb-1 ps-1" }, "\u041D\u0430\u0447\u0430\u043B\u043E \u043F\u0435\u0440\u0438\u043E\u0434\u0430", -1));
25949
+ const _hoisted_6$7 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("span", { class: "pl-date-picker__placeholder pb-05 ps-05" }, "\u041D\u0430\u0447\u0430\u043B\u043E \u043F\u0435\u0440\u0438\u043E\u0434\u0430", -1));
25992
25950
  const _hoisted_7$5 = { class: "date-switcher justify-content-center flex-column" };
25993
- const _hoisted_8$4 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("span", { class: "pl-date-picker__placeholder pb-1 ps-1" }, "\u041A\u043E\u043D\u0435\u0446 \u043F\u0435\u0440\u0438\u043E\u0434\u0430", -1));
25994
- const _hoisted_9$4 = { class: "d-flex pt-2 justify-content-between" };
25951
+ const _hoisted_8$4 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("span", { class: "pl-date-picker__placeholder pb-05 ps-05" }, "\u041A\u043E\u043D\u0435\u0446 \u043F\u0435\u0440\u0438\u043E\u0434\u0430", -1));
25952
+ const _hoisted_9$4 = { class: "d-flex pt-1 justify-content-between" };
25995
25953
  const _hoisted_10$3 = { class: "date-switcher date-switcher__month" };
25996
25954
  const _hoisted_11$3 = { class: "date-switcher__month-name" };
25997
25955
  const _hoisted_12$3 = { class: "date-switcher date-switcher__year" };
@@ -26553,7 +26511,7 @@ const _sfc_main$w = {
26553
26511
  };
26554
26512
  }
26555
26513
  };
26556
- var PlDatePickerRange = /* @__PURE__ */ _export_sfc(_sfc_main$w, [["__scopeId", "data-v-56266fb4"]]);
26514
+ var PlDatePickerRange = /* @__PURE__ */ _export_sfc(_sfc_main$w, [["__scopeId", "data-v-61425312"]]);
26557
26515
  var datePicker = "";
26558
26516
  var scrollbar = "";
26559
26517
  var popper = "";
@@ -36251,7 +36209,6 @@ function declOfNum(value, words) {
36251
36209
  return words[0];
36252
36210
  return words[2];
36253
36211
  }
36254
- var bootstrap_min = "";
36255
36212
  var plTable_vue_vue_type_style_index_0_lang = "";
36256
36213
  const _hoisted_1$s = { class: "pl-table" };
36257
36214
  const _hoisted_2$p = { class: "no-data" };
@@ -37836,19 +37793,17 @@ const _sfc_main$p = {
37836
37793
  },
37837
37794
  setup(__props) {
37838
37795
  const props = __props;
37839
- const escapeRegex = (string3) => string3.replace(/[/\-\\^$*+?.()|[\]{}]/g, "\\$&");
37840
37796
  let reggie;
37841
37797
  let found;
37842
37798
  let machedCase;
37843
37799
  let unMachedCase;
37844
37800
  const matchName = (current) => {
37845
- const regexString = escapeRegex(props.searchValue);
37846
- reggie = new RegExp(regexString, "gi");
37801
+ reggie = new RegExp(props.searchValue, "gi");
37847
37802
  found = current.search(reggie) !== -1;
37848
- machedCase = current.slice(current.search(reggie), current.search(reggie) + regexString.length);
37803
+ machedCase = current.slice(current.search(reggie), current.search(reggie) + props.searchValue.length);
37849
37804
  unMachedCase = !found ? current : [
37850
37805
  current.slice(0, current.search(reggie)),
37851
- current.slice(current.search(reggie) + regexString.length)
37806
+ current.slice(current.search(reggie) + props.searchValue.length)
37852
37807
  ];
37853
37808
  return !found ? ["", "", unMachedCase] : [unMachedCase[0], machedCase, unMachedCase[1]];
37854
37809
  };
@@ -37861,50 +37816,7 @@ const _sfc_main$p = {
37861
37816
  };
37862
37817
  }
37863
37818
  };
37864
- var markText = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["__scopeId", "data-v-cc470b06"]]);
37865
- var uniqid$1 = { exports: {} };
37866
- var __viteBrowserExternal = {};
37867
- var __viteBrowserExternal$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
37868
- __proto__: null,
37869
- "default": __viteBrowserExternal
37870
- }, Symbol.toStringTag, { value: "Module" }));
37871
- var require$$0 = /* @__PURE__ */ getAugmentedNamespace(__viteBrowserExternal$1);
37872
- var pid = typeof process !== "undefined" && process.pid ? process.pid.toString(36) : "";
37873
- var address = "";
37874
- if (typeof __webpack_require__ !== "function" && typeof commonjsRequire !== "undefined") {
37875
- var mac = "", os = require$$0;
37876
- if (os.networkInterfaces)
37877
- var networkInterfaces = os.networkInterfaces();
37878
- if (networkInterfaces) {
37879
- loop:
37880
- for (let interface_key in networkInterfaces) {
37881
- const networkInterface = networkInterfaces[interface_key];
37882
- const length = networkInterface.length;
37883
- for (var i$1 = 0; i$1 < length; i$1++) {
37884
- if (networkInterface[i$1] !== void 0 && networkInterface[i$1].mac && networkInterface[i$1].mac != "00:00:00:00:00:00") {
37885
- mac = networkInterface[i$1].mac;
37886
- break loop;
37887
- }
37888
- }
37889
- }
37890
- address = mac ? parseInt(mac.replace(/\:|\D+/gi, "")).toString(36) : "";
37891
- }
37892
- }
37893
- uniqid$1.exports = uniqid$1.exports.default = function(prefix, suffix) {
37894
- return (prefix ? prefix : "") + address + pid + now().toString(36) + (suffix ? suffix : "");
37895
- };
37896
- uniqid$1.exports.process = function(prefix, suffix) {
37897
- return (prefix ? prefix : "") + pid + now().toString(36) + (suffix ? suffix : "");
37898
- };
37899
- uniqid$1.exports.time = function(prefix, suffix) {
37900
- return (prefix ? prefix : "") + now().toString(36) + (suffix ? suffix : "");
37901
- };
37902
- function now() {
37903
- var time = Date.now();
37904
- var last = now.last || time;
37905
- return now.last = time > last ? time : last + 1;
37906
- }
37907
- var uniqid = uniqid$1.exports;
37819
+ var markText = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["__scopeId", "data-v-4b113ec9"]]);
37908
37820
  var plSuggestions_vue_vue_type_style_index_0_lang = "";
37909
37821
  const _hoisted_1$n = { class: "suggestion" };
37910
37822
  const _hoisted_2$k = { class: "d-flex flex-column" };
@@ -37956,10 +37868,6 @@ const _sfc_main$o = {
37956
37868
  getValidate: {
37957
37869
  type: Boolean,
37958
37870
  default: false
37959
- },
37960
- memoryBlur: {
37961
- type: Boolean,
37962
- default: true
37963
37871
  }
37964
37872
  },
37965
37873
  emits: ["setValid", "change", "validate", "fetchDadata"],
@@ -37971,17 +37879,11 @@ const _sfc_main$o = {
37971
37879
  getValidate,
37972
37880
  symbolsCountSearch,
37973
37881
  suggestionList,
37974
- noData,
37975
- memoryBlur
37882
+ noData
37976
37883
  } = toRefs(props);
37977
37884
  const selectedValue = ref("");
37978
37885
  const ruleForm = ref({});
37979
37886
  const modelValue = ref("");
37980
- const memoryInput = ref(null);
37981
- const memoryInputOnBlur = (event) => {
37982
- memoryInput.value = event.target.value;
37983
- };
37984
- const suggestionBox = ref(null);
37985
37887
  onMounted(() => {
37986
37888
  const dropElements = document.querySelectorAll(".suggestion .el-select-dropdown");
37987
37889
  ruleForm.value = {
@@ -37990,9 +37892,6 @@ const _sfc_main$o = {
37990
37892
  for (let i2 = 0; i2 < dropElements.length; i2 += 1) {
37991
37893
  dropElements[i2].style.width = `${dropElements[i2].offsetWidth}px`;
37992
37894
  }
37993
- if (memoryBlur.value) {
37994
- useEventListener(suggestionBox.value.$el, "input", memoryInputOnBlur);
37995
- }
37996
37895
  });
37997
37896
  watch(selectedValue, (newVal) => {
37998
37897
  ruleForm[prop] = newVal;
@@ -38000,40 +37899,23 @@ const _sfc_main$o = {
38000
37899
  watch(selectedItem, (newVal) => {
38001
37900
  selectedValue.value = newVal.value;
38002
37901
  });
38003
- const blockMemoryBlur = ref(false);
37902
+ const suggestionBox = ref(null);
38004
37903
  const change = (item) => {
38005
- if (memoryBlur.value)
38006
- blockMemoryBlur.value = true;
38007
37904
  if (item.target)
38008
37905
  return;
38009
37906
  emit2("change", item);
38010
- memoryInput.value = null;
38011
37907
  setTimeout(() => {
38012
37908
  suggestionBox.value.blur();
38013
37909
  }, 0);
38014
- setTimeout(() => blockMemoryBlur.value = false, 100);
38015
37910
  };
38016
37911
  const validateInp = (properties, isValid, message2) => {
38017
37912
  emit2("validate", properties, isValid, message2);
38018
37913
  };
38019
37914
  const suggestion = ref(null);
38020
- const validateInpBlur = (event) => {
38021
- if (event == null ? void 0 : event.sourceCapabilities) {
38022
- setTimeout(() => {
38023
- if (blockMemoryBlur.value) {
38024
- blockMemoryBlur.value = false;
38025
- } else if (memoryBlur.value && memoryInput.value) {
38026
- emit2("change", {
38027
- id: uniqid(),
38028
- value: memoryInput.value,
38029
- dadata: false
38030
- });
38031
- }
38032
- }, 10);
38033
- }
37915
+ const validateInpBlur = () => {
38034
37916
  setTimeout(() => {
38035
37917
  suggestion.value.validate();
38036
- }, 10);
37918
+ }, 300);
38037
37919
  };
38038
37920
  watch(getValidate, (newVal) => {
38039
37921
  if (newVal) {
@@ -38056,8 +37938,6 @@ const _sfc_main$o = {
38056
37938
  insideNoData.value = `\u0412\u0432\u0435\u0434\u0438\u0442\u0435 ${symbolsCountSearch.value} ${declOfNum(symbolsCountSearch.value, ["\u0441\u0438\u043C\u0432\u043E\u043B", "\u0441\u0438\u043C\u0432\u043E\u043B\u0430", "\u0441\u0438\u043C\u0432\u043E\u043B\u043E\u0432"])} `;
38057
37939
  insideSuggestionList.value = [];
38058
37940
  return;
38059
- } else {
38060
- insideNoData.value = " ";
38061
37941
  }
38062
37942
  emit2("fetchDadata", query);
38063
37943
  };
@@ -42327,6 +42207,7 @@ const PlTooltipPlugin = {
42327
42207
  app.component("PlTooltip", _sfc_main$3);
42328
42208
  }
42329
42209
  };
42210
+ var bootstrapCustom = "";
42330
42211
  const PlPlugin = {
42331
42212
  install(app) {
42332
42213
  var _a2, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t2, _u;