@factoringplus/pl-components-pack-v3 0.17.1-pre-10 → 0.17.1-pre-12
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.
|
@@ -20665,7 +20665,7 @@ const S6 = { class: "pl-autocomplete__select-container" }, x6 = { class: "pl-aut
|
|
|
20665
20665
|
setup(e, { emit: t }) {
|
|
20666
20666
|
const n = e;
|
|
20667
20667
|
_o((E) => ({
|
|
20668
|
-
"
|
|
20668
|
+
"2ad29eeb": n.width
|
|
20669
20669
|
}));
|
|
20670
20670
|
const r = `id-${ta()}`, o = C([]);
|
|
20671
20671
|
if (n.prop) {
|
|
@@ -20691,14 +20691,16 @@ const S6 = { class: "pl-autocomplete__select-container" }, x6 = { class: "pl-aut
|
|
|
20691
20691
|
}, u = C(Pr().height);
|
|
20692
20692
|
window.visualViewport.addEventListener("resize", function(E) {
|
|
20693
20693
|
u.value = E.target.height;
|
|
20694
|
-
}), ge(u, () => {
|
|
20695
|
-
i();
|
|
20696
20694
|
});
|
|
20697
|
-
const
|
|
20698
|
-
ge(
|
|
20695
|
+
const c = C();
|
|
20696
|
+
ge(u, () => {
|
|
20697
|
+
i(), y.value && c.value.scrollIntoView({ block: "center" });
|
|
20698
|
+
});
|
|
20699
|
+
const { isScrolling: d } = wu(window);
|
|
20700
|
+
ge(d, () => {
|
|
20699
20701
|
i();
|
|
20700
20702
|
});
|
|
20701
|
-
const
|
|
20703
|
+
const v = () => {
|
|
20702
20704
|
const E = document.getElementById(r);
|
|
20703
20705
|
if (E) {
|
|
20704
20706
|
if ("createEvent" in document) {
|
|
@@ -20708,7 +20710,7 @@ const S6 = { class: "pl-autocomplete__select-container" }, x6 = { class: "pl-aut
|
|
|
20708
20710
|
E.fireEvent("onfocus");
|
|
20709
20711
|
E.focus(), y.value = !0;
|
|
20710
20712
|
}
|
|
20711
|
-
},
|
|
20713
|
+
}, g = (E = !0) => {
|
|
20712
20714
|
const B = document.getElementById(r);
|
|
20713
20715
|
if (B) {
|
|
20714
20716
|
if ("createEvent" in document) {
|
|
@@ -20718,15 +20720,15 @@ const S6 = { class: "pl-autocomplete__select-container" }, x6 = { class: "pl-aut
|
|
|
20718
20720
|
B.fireEvent("onblur");
|
|
20719
20721
|
E && (B.blur(), y.value = !1);
|
|
20720
20722
|
}
|
|
20721
|
-
},
|
|
20723
|
+
}, M = () => {
|
|
20722
20724
|
y.value = !0;
|
|
20723
|
-
},
|
|
20724
|
-
n.disabled || (
|
|
20725
|
+
}, h = () => {
|
|
20726
|
+
n.disabled || v();
|
|
20725
20727
|
}, m = () => {
|
|
20726
20728
|
var E;
|
|
20727
20729
|
y.value && (n.memoryBlur ? $() : (E = T.value) != null && E.value ? Fe(() => {
|
|
20728
20730
|
N.value = T.value.value;
|
|
20729
|
-
}) : N.value = "",
|
|
20731
|
+
}) : N.value = "", g());
|
|
20730
20732
|
}, y = C(!1);
|
|
20731
20733
|
ge(y, () => {
|
|
20732
20734
|
Fe(() => {
|
|
@@ -20762,7 +20764,7 @@ const S6 = { class: "pl-autocomplete__select-container" }, x6 = { class: "pl-aut
|
|
|
20762
20764
|
const D = C(!1), A = (E) => {
|
|
20763
20765
|
E.disabled || (D.value = !0, T.value = E, N.value = E.value, t("changeValue", E), m());
|
|
20764
20766
|
}, _ = () => {
|
|
20765
|
-
T.value = {}, N.value = "", t("changeValue", {}),
|
|
20767
|
+
T.value = {}, N.value = "", t("changeValue", {}), g();
|
|
20766
20768
|
}, j = (E, B) => E.split(".").reduce((W, te) => W[te], B), k = (E) => n.uniqKey && j(n.uniqKey, T.value) && j(n.uniqKey, E) ? j(n.uniqKey, E) === j(n.uniqKey, T.value) : T.value.bottomText ? E.value === T.value.value && E.bottomText === T.value.bottomText : E.value === T.value.value, V = () => {
|
|
20767
20769
|
var E, B;
|
|
20768
20770
|
if (!N.value && n.defaultDropText)
|
|
@@ -20790,7 +20792,7 @@ const S6 = { class: "pl-autocomplete__select-container" }, x6 = { class: "pl-aut
|
|
|
20790
20792
|
const W = js, te = yu, G = Zt("touch-outside");
|
|
20791
20793
|
return Pe((w(), z("div", {
|
|
20792
20794
|
ref_key: "autocompleteRef",
|
|
20793
|
-
ref:
|
|
20795
|
+
ref: c,
|
|
20794
20796
|
class: "pl-autocomplete__wrapper",
|
|
20795
20797
|
onClick: h
|
|
20796
20798
|
}, [
|
|
@@ -20799,7 +20801,7 @@ const S6 = { class: "pl-autocomplete__select-container" }, x6 = { class: "pl-aut
|
|
|
20799
20801
|
key: 0,
|
|
20800
20802
|
for: r,
|
|
20801
20803
|
class: "pl-autocomplete__label-container",
|
|
20802
|
-
onClick: B[1] || (B[1] = (ee) => y.value &&
|
|
20804
|
+
onClick: B[1] || (B[1] = (ee) => y.value && g(!1))
|
|
20803
20805
|
}, [
|
|
20804
20806
|
U("div", x6, [
|
|
20805
20807
|
n.label ? (w(), z("span", z6, de(n.label), 1)) : J("", !0),
|
|
@@ -20827,7 +20829,7 @@ const S6 = { class: "pl-autocomplete__select-container" }, x6 = { class: "pl-aut
|
|
|
20827
20829
|
"show-error": s.value,
|
|
20828
20830
|
onTabDown: m,
|
|
20829
20831
|
onReset: _,
|
|
20830
|
-
onFocusEmit:
|
|
20832
|
+
onFocusEmit: M
|
|
20831
20833
|
}), null, 16, ["modelValue", "show-error"]),
|
|
20832
20834
|
n.helpertext || o.value.length > 0 ? (w(), z("div", k6, [
|
|
20833
20835
|
o.value.length > 0 ? (w(), z("span", L6, de(o.value[0].message), 1)) : n.helpertext ? (w(), z("span", C6, de(n.helpertext), 1)) : J("", !0)
|
|
@@ -20879,7 +20881,7 @@ const S6 = { class: "pl-autocomplete__select-container" }, x6 = { class: "pl-aut
|
|
|
20879
20881
|
]);
|
|
20880
20882
|
};
|
|
20881
20883
|
}
|
|
20882
|
-
}, R6 = /* @__PURE__ */ wt(Y6, [["__scopeId", "data-v-
|
|
20884
|
+
}, R6 = /* @__PURE__ */ wt(Y6, [["__scopeId", "data-v-4cd0d4fb"]]), Ud = {
|
|
20883
20885
|
install(e) {
|
|
20884
20886
|
e.component("PlAutocomplete", R6);
|
|
20885
20887
|
}
|