@factoringplus/pl-components-pack-v3 0.5.16-pre-4 → 0.5.16-pre-07
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.
- package/dist/pl-components-pack-v3.es.js +195 -79
- package/dist/pl-components-pack-v3.umd.js +19 -19
- package/dist/style.css +6 -6
- package/package.json +3 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { getCurrentScope, onScopeDispose,
|
|
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";
|
|
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 = function() {
|
|
1418
|
+
var now$1 = function() {
|
|
1419
1419
|
return root$2.Date.now();
|
|
1420
1420
|
};
|
|
1421
|
-
var 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$
|
|
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$
|
|
1479
|
+
return timerId === void 0 ? result : trailingEdge(now$2());
|
|
1480
1480
|
}
|
|
1481
1481
|
function debounced() {
|
|
1482
|
-
var time = now$
|
|
1482
|
+
var time = now$2(), isInvoking = shouldInvoke(time);
|
|
1483
1483
|
lastArgs = arguments;
|
|
1484
1484
|
lastThis = this;
|
|
1485
1485
|
lastCallTime = time;
|
|
@@ -1622,45 +1622,56 @@ const isNumber$1 = (val) => typeof val === "number";
|
|
|
1622
1622
|
const isString$2 = (val) => typeof val === "string";
|
|
1623
1623
|
const noop = () => {
|
|
1624
1624
|
};
|
|
1625
|
-
isClient && ((_a = window == null ? void 0 : window.navigator) == null ? void 0 : _a.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
|
|
1625
|
+
const isIOS = 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
|
-
|
|
1631
|
+
return new Promise((resolve, reject) => {
|
|
1632
|
+
Promise.resolve(filter(() => fn2.apply(this, args), { fn: fn2, thisArg: this, args })).then(resolve).catch(reject);
|
|
1633
|
+
});
|
|
1632
1634
|
}
|
|
1633
1635
|
return wrapper;
|
|
1634
1636
|
}
|
|
1635
1637
|
function debounceFilter(ms, options = {}) {
|
|
1636
1638
|
let timer;
|
|
1637
1639
|
let maxTimer;
|
|
1640
|
+
let lastRejector = noop;
|
|
1641
|
+
const _clearTimeout = (timer2) => {
|
|
1642
|
+
clearTimeout(timer2);
|
|
1643
|
+
lastRejector();
|
|
1644
|
+
lastRejector = noop;
|
|
1645
|
+
};
|
|
1638
1646
|
const filter = (invoke) => {
|
|
1639
1647
|
const duration = resolveUnref(ms);
|
|
1640
1648
|
const maxDuration = resolveUnref(options.maxWait);
|
|
1641
1649
|
if (timer)
|
|
1642
|
-
|
|
1650
|
+
_clearTimeout(timer);
|
|
1643
1651
|
if (duration <= 0 || maxDuration !== void 0 && maxDuration <= 0) {
|
|
1644
1652
|
if (maxTimer) {
|
|
1645
|
-
|
|
1653
|
+
_clearTimeout(maxTimer);
|
|
1646
1654
|
maxTimer = null;
|
|
1647
1655
|
}
|
|
1648
|
-
return invoke();
|
|
1649
|
-
}
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
|
|
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);
|
|
1654
1671
|
maxTimer = null;
|
|
1655
|
-
invoke();
|
|
1656
|
-
},
|
|
1657
|
-
}
|
|
1658
|
-
timer = setTimeout(() => {
|
|
1659
|
-
if (maxTimer)
|
|
1660
|
-
clearTimeout(maxTimer);
|
|
1661
|
-
maxTimer = null;
|
|
1662
|
-
invoke();
|
|
1663
|
-
}, duration);
|
|
1672
|
+
resolve(invoke());
|
|
1673
|
+
}, duration);
|
|
1674
|
+
});
|
|
1664
1675
|
};
|
|
1665
1676
|
return filter;
|
|
1666
1677
|
}
|
|
@@ -1678,8 +1689,6 @@ function useDebounceFn(fn2, ms = 200, options = {}) {
|
|
|
1678
1689
|
return createFilterWrapper(debounceFilter(ms, options), fn2);
|
|
1679
1690
|
}
|
|
1680
1691
|
function refDebounced(value, ms = 200, options = {}) {
|
|
1681
|
-
if (ms <= 0)
|
|
1682
|
-
return value;
|
|
1683
1692
|
const debounced = ref(value.value);
|
|
1684
1693
|
const updater = useDebounceFn(() => {
|
|
1685
1694
|
debounced.value = value.value;
|
|
@@ -1727,7 +1736,7 @@ function useTimeoutFn(cb, interval, options = {}) {
|
|
|
1727
1736
|
}
|
|
1728
1737
|
tryOnScopeDispose(stop);
|
|
1729
1738
|
return {
|
|
1730
|
-
isPending,
|
|
1739
|
+
isPending: readonly(isPending),
|
|
1731
1740
|
start,
|
|
1732
1741
|
stop
|
|
1733
1742
|
};
|
|
@@ -1743,27 +1752,37 @@ isClient ? window.navigator : void 0;
|
|
|
1743
1752
|
isClient ? window.location : void 0;
|
|
1744
1753
|
function useEventListener(...args) {
|
|
1745
1754
|
let target;
|
|
1746
|
-
let
|
|
1747
|
-
let
|
|
1755
|
+
let events;
|
|
1756
|
+
let listeners;
|
|
1748
1757
|
let options;
|
|
1749
|
-
if (isString$2(args[0])) {
|
|
1750
|
-
[
|
|
1758
|
+
if (isString$2(args[0]) || Array.isArray(args[0])) {
|
|
1759
|
+
[events, listeners, options] = args;
|
|
1751
1760
|
target = defaultWindow;
|
|
1752
1761
|
} else {
|
|
1753
|
-
[target,
|
|
1762
|
+
[target, events, listeners, options] = args;
|
|
1754
1763
|
}
|
|
1755
1764
|
if (!target)
|
|
1756
1765
|
return noop;
|
|
1757
|
-
|
|
1758
|
-
|
|
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]) => {
|
|
1759
1780
|
cleanup();
|
|
1760
1781
|
if (!el)
|
|
1761
1782
|
return;
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
cleanup = noop;
|
|
1766
|
-
};
|
|
1783
|
+
cleanups.push(...events.flatMap((event) => {
|
|
1784
|
+
return listeners.map((listener) => register2(el, event, listener, options2));
|
|
1785
|
+
}));
|
|
1767
1786
|
}, { immediate: true, flush: "post" });
|
|
1768
1787
|
const stop = () => {
|
|
1769
1788
|
stopWatch();
|
|
@@ -1772,24 +1791,35 @@ function useEventListener(...args) {
|
|
|
1772
1791
|
tryOnScopeDispose(stop);
|
|
1773
1792
|
return stop;
|
|
1774
1793
|
}
|
|
1794
|
+
let _iOSWorkaround = false;
|
|
1775
1795
|
function onClickOutside(target, handler, options = {}) {
|
|
1776
|
-
const { window: window2 = defaultWindow, ignore, capture = true, detectIframe = false } = options;
|
|
1796
|
+
const { window: window2 = defaultWindow, ignore = [], capture = true, detectIframe = false } = options;
|
|
1777
1797
|
if (!window2)
|
|
1778
1798
|
return;
|
|
1779
|
-
|
|
1780
|
-
|
|
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
|
+
};
|
|
1781
1814
|
const listener = (event) => {
|
|
1782
|
-
window2.clearTimeout(fallback);
|
|
1783
1815
|
const el = unrefElement(target);
|
|
1784
|
-
|
|
1785
|
-
|
|
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;
|
|
1786
1822
|
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;
|
|
1793
1823
|
}
|
|
1794
1824
|
handler(event);
|
|
1795
1825
|
};
|
|
@@ -1797,19 +1827,13 @@ function onClickOutside(target, handler, options = {}) {
|
|
|
1797
1827
|
useEventListener(window2, "click", listener, { passive: true, capture }),
|
|
1798
1828
|
useEventListener(window2, "pointerdown", (e2) => {
|
|
1799
1829
|
const el = unrefElement(target);
|
|
1800
|
-
|
|
1801
|
-
|
|
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
|
-
}
|
|
1830
|
+
if (el)
|
|
1831
|
+
shouldListen = !e2.composedPath().includes(el) && !shouldIgnore(e2);
|
|
1808
1832
|
}, { passive: true }),
|
|
1809
1833
|
detectIframe && useEventListener(window2, "blur", (event) => {
|
|
1810
1834
|
var _a2;
|
|
1811
1835
|
const el = unrefElement(target);
|
|
1812
|
-
if (((_a2 = document.activeElement) == null ? void 0 : _a2.tagName) === "IFRAME" && !(el == null ? void 0 : el.contains(document.activeElement)))
|
|
1836
|
+
if (((_a2 = window2.document.activeElement) == null ? void 0 : _a2.tagName) === "IFRAME" && !(el == null ? void 0 : el.contains(window2.document.activeElement)))
|
|
1813
1837
|
handler(event);
|
|
1814
1838
|
})
|
|
1815
1839
|
].filter(Boolean);
|
|
@@ -1839,17 +1863,17 @@ function useDocumentVisibility({ document: document2 = defaultDocument } = {}) {
|
|
|
1839
1863
|
});
|
|
1840
1864
|
return visibility;
|
|
1841
1865
|
}
|
|
1842
|
-
var __getOwnPropSymbols$
|
|
1843
|
-
var __hasOwnProp$
|
|
1844
|
-
var __propIsEnum$
|
|
1866
|
+
var __getOwnPropSymbols$g = Object.getOwnPropertySymbols;
|
|
1867
|
+
var __hasOwnProp$g = Object.prototype.hasOwnProperty;
|
|
1868
|
+
var __propIsEnum$g = Object.prototype.propertyIsEnumerable;
|
|
1845
1869
|
var __objRest$2 = (source2, exclude) => {
|
|
1846
1870
|
var target = {};
|
|
1847
1871
|
for (var prop in source2)
|
|
1848
|
-
if (__hasOwnProp$
|
|
1872
|
+
if (__hasOwnProp$g.call(source2, prop) && exclude.indexOf(prop) < 0)
|
|
1849
1873
|
target[prop] = source2[prop];
|
|
1850
|
-
if (source2 != null && __getOwnPropSymbols$
|
|
1851
|
-
for (var prop of __getOwnPropSymbols$
|
|
1852
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
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))
|
|
1853
1877
|
target[prop] = source2[prop];
|
|
1854
1878
|
}
|
|
1855
1879
|
return target;
|
|
@@ -8044,6 +8068,24 @@ const ElButton = withInstall(Button, {
|
|
|
8044
8068
|
});
|
|
8045
8069
|
withNoopInstall(ButtonGroup);
|
|
8046
8070
|
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
|
+
}
|
|
8047
8089
|
var dayjs_min = { exports: {} };
|
|
8048
8090
|
(function(module2, exports2) {
|
|
8049
8091
|
!function(t2, e2) {
|
|
@@ -36209,6 +36251,7 @@ function declOfNum(value, words) {
|
|
|
36209
36251
|
return words[0];
|
|
36210
36252
|
return words[2];
|
|
36211
36253
|
}
|
|
36254
|
+
var bootstrap_min = "";
|
|
36212
36255
|
var plTable_vue_vue_type_style_index_0_lang = "";
|
|
36213
36256
|
const _hoisted_1$s = { class: "pl-table" };
|
|
36214
36257
|
const _hoisted_2$p = { class: "no-data" };
|
|
@@ -37793,17 +37836,19 @@ const _sfc_main$p = {
|
|
|
37793
37836
|
},
|
|
37794
37837
|
setup(__props) {
|
|
37795
37838
|
const props = __props;
|
|
37839
|
+
const escapeRegex = (string3) => string3.replace(/[/\-\\^$*+?.()|[\]{}]/g, "\\$&");
|
|
37796
37840
|
let reggie;
|
|
37797
37841
|
let found;
|
|
37798
37842
|
let machedCase;
|
|
37799
37843
|
let unMachedCase;
|
|
37800
37844
|
const matchName = (current) => {
|
|
37801
|
-
|
|
37845
|
+
const regexString = escapeRegex(props.searchValue);
|
|
37846
|
+
reggie = new RegExp(regexString, "gi");
|
|
37802
37847
|
found = current.search(reggie) !== -1;
|
|
37803
|
-
machedCase = current.slice(current.search(reggie), current.search(reggie) +
|
|
37848
|
+
machedCase = current.slice(current.search(reggie), current.search(reggie) + regexString.length);
|
|
37804
37849
|
unMachedCase = !found ? current : [
|
|
37805
37850
|
current.slice(0, current.search(reggie)),
|
|
37806
|
-
current.slice(current.search(reggie) +
|
|
37851
|
+
current.slice(current.search(reggie) + regexString.length)
|
|
37807
37852
|
];
|
|
37808
37853
|
return !found ? ["", "", unMachedCase] : [unMachedCase[0], machedCase, unMachedCase[1]];
|
|
37809
37854
|
};
|
|
@@ -37816,7 +37861,50 @@ const _sfc_main$p = {
|
|
|
37816
37861
|
};
|
|
37817
37862
|
}
|
|
37818
37863
|
};
|
|
37819
|
-
var markText = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["__scopeId", "data-v-
|
|
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;
|
|
37820
37908
|
var plSuggestions_vue_vue_type_style_index_0_lang = "";
|
|
37821
37909
|
const _hoisted_1$n = { class: "suggestion" };
|
|
37822
37910
|
const _hoisted_2$k = { class: "d-flex flex-column" };
|
|
@@ -37868,6 +37956,10 @@ const _sfc_main$o = {
|
|
|
37868
37956
|
getValidate: {
|
|
37869
37957
|
type: Boolean,
|
|
37870
37958
|
default: false
|
|
37959
|
+
},
|
|
37960
|
+
memoryBlur: {
|
|
37961
|
+
type: Boolean,
|
|
37962
|
+
default: true
|
|
37871
37963
|
}
|
|
37872
37964
|
},
|
|
37873
37965
|
emits: ["setValid", "change", "validate", "fetchDadata"],
|
|
@@ -37879,11 +37971,17 @@ const _sfc_main$o = {
|
|
|
37879
37971
|
getValidate,
|
|
37880
37972
|
symbolsCountSearch,
|
|
37881
37973
|
suggestionList,
|
|
37882
|
-
noData
|
|
37974
|
+
noData,
|
|
37975
|
+
memoryBlur
|
|
37883
37976
|
} = toRefs(props);
|
|
37884
37977
|
const selectedValue = ref("");
|
|
37885
37978
|
const ruleForm = ref({});
|
|
37886
37979
|
const modelValue = ref("");
|
|
37980
|
+
const memoryInput = ref(null);
|
|
37981
|
+
const memoryInputOnBlur = (event) => {
|
|
37982
|
+
memoryInput.value = event.target.value;
|
|
37983
|
+
};
|
|
37984
|
+
const suggestionBox = ref(null);
|
|
37887
37985
|
onMounted(() => {
|
|
37888
37986
|
const dropElements = document.querySelectorAll(".suggestion .el-select-dropdown");
|
|
37889
37987
|
ruleForm.value = {
|
|
@@ -37892,6 +37990,9 @@ const _sfc_main$o = {
|
|
|
37892
37990
|
for (let i2 = 0; i2 < dropElements.length; i2 += 1) {
|
|
37893
37991
|
dropElements[i2].style.width = `${dropElements[i2].offsetWidth}px`;
|
|
37894
37992
|
}
|
|
37993
|
+
if (memoryBlur.value) {
|
|
37994
|
+
useEventListener(suggestionBox.value.$el, "input", memoryInputOnBlur);
|
|
37995
|
+
}
|
|
37895
37996
|
});
|
|
37896
37997
|
watch(selectedValue, (newVal) => {
|
|
37897
37998
|
ruleForm[prop] = newVal;
|
|
@@ -37899,11 +38000,14 @@ const _sfc_main$o = {
|
|
|
37899
38000
|
watch(selectedItem, (newVal) => {
|
|
37900
38001
|
selectedValue.value = newVal.value;
|
|
37901
38002
|
});
|
|
37902
|
-
const
|
|
38003
|
+
const blockMemoryBlur = ref(false);
|
|
37903
38004
|
const change = (item) => {
|
|
38005
|
+
if (memoryBlur.value)
|
|
38006
|
+
blockMemoryBlur.value = true;
|
|
37904
38007
|
if (item.target)
|
|
37905
38008
|
return;
|
|
37906
38009
|
emit2("change", item);
|
|
38010
|
+
memoryInput.value = null;
|
|
37907
38011
|
setTimeout(() => {
|
|
37908
38012
|
suggestionBox.value.blur();
|
|
37909
38013
|
}, 0);
|
|
@@ -37912,10 +38016,23 @@ const _sfc_main$o = {
|
|
|
37912
38016
|
emit2("validate", properties, isValid, message2);
|
|
37913
38017
|
};
|
|
37914
38018
|
const suggestion = ref(null);
|
|
37915
|
-
const validateInpBlur = () => {
|
|
37916
|
-
|
|
37917
|
-
|
|
37918
|
-
|
|
38019
|
+
const validateInpBlur = (event) => {
|
|
38020
|
+
if (event == null ? void 0 : event.sourceCapabilities) {
|
|
38021
|
+
setTimeout(() => {
|
|
38022
|
+
if (blockMemoryBlur.value) {
|
|
38023
|
+
blockMemoryBlur.value = false;
|
|
38024
|
+
} else if (memoryBlur.value && memoryInput.value) {
|
|
38025
|
+
emit2("change", {
|
|
38026
|
+
id: uniqid(),
|
|
38027
|
+
value: memoryInput.value,
|
|
38028
|
+
dadata: false
|
|
38029
|
+
});
|
|
38030
|
+
}
|
|
38031
|
+
}, 10);
|
|
38032
|
+
setTimeout(() => {
|
|
38033
|
+
suggestion.value.validate();
|
|
38034
|
+
}, 10);
|
|
38035
|
+
}
|
|
37919
38036
|
};
|
|
37920
38037
|
watch(getValidate, (newVal) => {
|
|
37921
38038
|
if (newVal) {
|
|
@@ -42207,7 +42324,6 @@ const PlTooltipPlugin = {
|
|
|
42207
42324
|
app.component("PlTooltip", _sfc_main$3);
|
|
42208
42325
|
}
|
|
42209
42326
|
};
|
|
42210
|
-
var bootstrapCustom = "";
|
|
42211
42327
|
const PlPlugin = {
|
|
42212
42328
|
install(app) {
|
|
42213
42329
|
var _a2, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t2, _u;
|