@factoringplus/pl-components-pack-v3 1.1.0 → 1.1.1

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.
@@ -5560,14 +5560,20 @@ function xA(e) {
5560
5560
  return (() => e.apply(n, t))().then((o) => {
5561
5561
  const l = document.getElementById(t[1]);
5562
5562
  if (l !== null) {
5563
- const i = l.querySelector(".loading__body");
5563
+ const i = Array.from(l.childNodes).find((u) => {
5564
+ if (u.className === "loading__body")
5565
+ return u;
5566
+ });
5564
5567
  i && l.removeChild(i);
5565
5568
  }
5566
5569
  return o;
5567
5570
  }).catch((o) => {
5568
5571
  const l = document.getElementById(t[1]);
5569
5572
  if (l !== null) {
5570
- const i = l.querySelector(".loading__body");
5573
+ const i = Array.from(l.childNodes).find((u) => {
5574
+ if (u.className === "loading__body")
5575
+ return u;
5576
+ });
5571
5577
  i && l.removeChild(i);
5572
5578
  }
5573
5579
  throw o;
@@ -28982,7 +28988,7 @@ const nH = { class: "pl-multitab-container" }, rH = {
28982
28988
  }
28983
28989
  }, lH = {
28984
28990
  class: /* @__PURE__ */ P(["pl-radio-container"])
28985
- }, sH = ["id", "value", "disabled", "onChange"], iH = { class: "pl-radio-wrapper" }, uH = /* @__PURE__ */ me({
28991
+ }, sH = ["id", "value", "disabled"], iH = ["onClick"], uH = /* @__PURE__ */ me({
28986
28992
  __name: "pl-radio",
28987
28993
  props: {
28988
28994
  size: {
@@ -29012,43 +29018,42 @@ const nH = { class: "pl-multitab-container" }, rH = {
29012
29018
  },
29013
29019
  emits: ["update:modelValue", "change"],
29014
29020
  setup(e, { emit: t }) {
29015
- const n = e, r = k(n.modelValue), o = k(n.modelValue ? n.options[0].value : ""), l = (u) => {
29016
- n.disabled || (o.value = u, t("update:modelValue", r.value), t("change", o.value));
29017
- }, i = (u, c) => {
29018
- !n.disabled && !r.value ? (o.value = u, t("update:modelValue", r.value), t("change", o.value)) : c.preventDefault();
29021
+ const n = e, r = k(n.modelValue), o = k(n.modelValue ? n.options[0].value : ""), l = (i, u) => {
29022
+ n.disabled ? u.preventDefault() : (o.value = i, t("update:modelValue", o.value), t("change", o.value));
29019
29023
  };
29020
29024
  return ge(
29021
29025
  () => n.modelValue,
29022
- (u) => {
29023
- o.value = u ? n.options[0].value : "", r.value = u;
29026
+ (i) => {
29027
+ o.value = i ? n.options[0].value : "", r.value = i;
29024
29028
  }
29025
- ), (u, c) => (T(), z("div", lH, [
29026
- (T(!0), z(Ge, null, pt(e.options, (d, v) => (T(), z("label", {
29027
- key: v,
29029
+ ), (i, u) => (T(), z("div", lH, [
29030
+ (T(!0), z(Ge, null, pt(e.options, (c, d) => (T(), z("label", {
29031
+ key: d + "pl-radio",
29028
29032
  class: P(["pl-radio", `pl-radio-${n.size}`, { "pl-radio-disabled": n.disabled }])
29029
29033
  }, [
29030
29034
  Pe($("input", {
29031
- id: "radio-" + v,
29032
- "onUpdate:modelValue": c[0] || (c[0] = (p) => o.value = p),
29035
+ id: "radio-" + d,
29036
+ "onUpdate:modelValue": u[0] || (u[0] = (v) => o.value = v),
29033
29037
  type: "radio",
29034
- value: d.value,
29035
- disabled: n.disabled,
29036
- onChange: (p) => l(d.value)
29037
- }, null, 40, sH), [
29038
+ value: c.value,
29039
+ disabled: n.disabled
29040
+ }, null, 8, sH), [
29038
29041
  [Z2, o.value]
29039
29042
  ]),
29040
- $("div", iH, [
29043
+ $("div", {
29044
+ class: "pl-radio-wrapper",
29045
+ onClick: (v) => l(c.value, v)
29046
+ }, [
29041
29047
  $("span", {
29042
29048
  class: P(["pl-radio-button", { "pl-radio-button-isChecked": o.value }])
29043
29049
  }, null, 2),
29044
- d.label ? (T(), ce(qp, {
29050
+ c.label ? (T(), ce(qp, {
29045
29051
  key: 0,
29046
- title: d.label,
29047
- description: d.description,
29048
- "is-disabled": n.disabled,
29049
- onClick: (p) => i(d.value, p)
29050
- }, null, 8, ["title", "description", "is-disabled", "onClick"])) : X("", !0)
29051
- ])
29052
+ title: c.label,
29053
+ description: c.description,
29054
+ "is-disabled": n.disabled
29055
+ }, null, 8, ["title", "description", "is-disabled"])) : X("", !0)
29056
+ ], 8, iH)
29052
29057
  ], 2))), 128))
29053
29058
  ]));
29054
29059
  }
@@ -31831,13 +31836,15 @@ const ql = /* @__PURE__ */ new Map(), LG = {
31831
31836
  return e.addEventListener("touchmove", l, { passive: !0 }), { currentHandler: o, touchMoveHandler: l };
31832
31837
  }, bm = (e, t = !1, n = !1) => {
31833
31838
  const r = document.createElement("div");
31834
- r.className = "loading__body", r.style.background = t ? "" : "rgb(255 255 255 / 80%)", r.style.height = n ? "100vh" : "", r.innerHTML += `
31839
+ r.className = "loading__body", r.style.background = t ? "" : "rgb(255 255 255 / 80%)", r.style.height = n ? "100dvh" : "", r.innerHTML += `
31835
31840
  <div class='loading__spinner-wrapper' data-testid='loading-plus'>
31836
31841
  <svg>
31837
31842
  <circle cx='18' cy='18' r='18'></circle>
31838
31843
  </svg>
31839
31844
  </div>
31840
- `, (!e.style.position || e.style.position === "static") && !n && (e.style.position = "relative"), e.appendChild(r);
31845
+ `;
31846
+ const o = window.getComputedStyle(e);
31847
+ (!o.position || o.position === "static") && !n && (e.style.position = "relative"), e.appendChild(r);
31841
31848
  }, $G = {
31842
31849
  mounted: (e, t) => {
31843
31850
  const n = t.modifiers.fullscreen ? document.body : e;