@factoringplus/pl-components-pack-v3 0.17.1-pre-10 → 0.17.1-pre-11

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
- "10deec0a": n.width
20668
+ "07d716dc": n.width
20669
20669
  }));
20670
20670
  const r = `id-${ta()}`, o = C([]);
20671
20671
  if (n.prop) {
@@ -20691,14 +20691,18 @@ 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 { isScrolling: c } = wu(window);
20698
- ge(c, () => {
20695
+ const c = C();
20696
+ ge(u, () => {
20697
+ i(), setTimeout(() => {
20698
+ y.value && c.value.scrollIntoView({ block: "center" });
20699
+ });
20700
+ });
20701
+ const { isScrolling: d } = wu(window);
20702
+ ge(d, () => {
20699
20703
  i();
20700
20704
  });
20701
- const d = () => {
20705
+ const v = () => {
20702
20706
  const E = document.getElementById(r);
20703
20707
  if (E) {
20704
20708
  if ("createEvent" in document) {
@@ -20708,7 +20712,7 @@ const S6 = { class: "pl-autocomplete__select-container" }, x6 = { class: "pl-aut
20708
20712
  E.fireEvent("onfocus");
20709
20713
  E.focus(), y.value = !0;
20710
20714
  }
20711
- }, v = (E = !0) => {
20715
+ }, g = (E = !0) => {
20712
20716
  const B = document.getElementById(r);
20713
20717
  if (B) {
20714
20718
  if ("createEvent" in document) {
@@ -20718,15 +20722,15 @@ const S6 = { class: "pl-autocomplete__select-container" }, x6 = { class: "pl-aut
20718
20722
  B.fireEvent("onblur");
20719
20723
  E && (B.blur(), y.value = !1);
20720
20724
  }
20721
- }, g = () => {
20725
+ }, M = () => {
20722
20726
  y.value = !0;
20723
- }, M = C(), h = () => {
20724
- n.disabled || (M.value.scrollIntoView({ block: "center" }), d());
20727
+ }, h = () => {
20728
+ n.disabled || v();
20725
20729
  }, m = () => {
20726
20730
  var E;
20727
20731
  y.value && (n.memoryBlur ? $() : (E = T.value) != null && E.value ? Fe(() => {
20728
20732
  N.value = T.value.value;
20729
- }) : N.value = "", v());
20733
+ }) : N.value = "", g());
20730
20734
  }, y = C(!1);
20731
20735
  ge(y, () => {
20732
20736
  Fe(() => {
@@ -20762,7 +20766,7 @@ const S6 = { class: "pl-autocomplete__select-container" }, x6 = { class: "pl-aut
20762
20766
  const D = C(!1), A = (E) => {
20763
20767
  E.disabled || (D.value = !0, T.value = E, N.value = E.value, t("changeValue", E), m());
20764
20768
  }, _ = () => {
20765
- T.value = {}, N.value = "", t("changeValue", {}), v();
20769
+ T.value = {}, N.value = "", t("changeValue", {}), g();
20766
20770
  }, 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
20771
  var E, B;
20768
20772
  if (!N.value && n.defaultDropText)
@@ -20790,7 +20794,7 @@ const S6 = { class: "pl-autocomplete__select-container" }, x6 = { class: "pl-aut
20790
20794
  const W = js, te = yu, G = Zt("touch-outside");
20791
20795
  return Pe((w(), z("div", {
20792
20796
  ref_key: "autocompleteRef",
20793
- ref: M,
20797
+ ref: c,
20794
20798
  class: "pl-autocomplete__wrapper",
20795
20799
  onClick: h
20796
20800
  }, [
@@ -20799,7 +20803,7 @@ const S6 = { class: "pl-autocomplete__select-container" }, x6 = { class: "pl-aut
20799
20803
  key: 0,
20800
20804
  for: r,
20801
20805
  class: "pl-autocomplete__label-container",
20802
- onClick: B[1] || (B[1] = (ee) => y.value && v(!1))
20806
+ onClick: B[1] || (B[1] = (ee) => y.value && g(!1))
20803
20807
  }, [
20804
20808
  U("div", x6, [
20805
20809
  n.label ? (w(), z("span", z6, de(n.label), 1)) : J("", !0),
@@ -20827,7 +20831,7 @@ const S6 = { class: "pl-autocomplete__select-container" }, x6 = { class: "pl-aut
20827
20831
  "show-error": s.value,
20828
20832
  onTabDown: m,
20829
20833
  onReset: _,
20830
- onFocusEmit: g
20834
+ onFocusEmit: M
20831
20835
  }), null, 16, ["modelValue", "show-error"]),
20832
20836
  n.helpertext || o.value.length > 0 ? (w(), z("div", k6, [
20833
20837
  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 +20883,7 @@ const S6 = { class: "pl-autocomplete__select-container" }, x6 = { class: "pl-aut
20879
20883
  ]);
20880
20884
  };
20881
20885
  }
20882
- }, R6 = /* @__PURE__ */ wt(Y6, [["__scopeId", "data-v-d70daff1"]]), Ud = {
20886
+ }, R6 = /* @__PURE__ */ wt(Y6, [["__scopeId", "data-v-67af97c5"]]), Ud = {
20883
20887
  install(e) {
20884
20888
  e.component("PlAutocomplete", R6);
20885
20889
  }