@factoringplus/pl-components-pack-v3 1.3.1 → 1.3.2-pre-02

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/README.md CHANGED
@@ -1,17 +1,17 @@
1
- # Библиотека компонентов Vue 3
2
-
3
- ## Установка
4
-
5
- ```bash
6
- npm i @factoringplus/pl-components-pack-v3
7
- ```
8
-
9
- ### Добавление компонентов в проект
10
-
11
- ```bash
12
- // src/main.js
13
- import components from '@factoringplus/pl-components-pack-v3';
14
- import '@factoringplus/pl-components-pack-v3/dist/style.css';
15
-
16
- app.use(components)
17
- ```
1
+ # Библиотека компонентов Vue 3
2
+
3
+ ## Установка
4
+
5
+ ```bash
6
+ npm i @factoringplus/pl-components-pack-v3
7
+ ```
8
+
9
+ ### Добавление компонентов в проект
10
+
11
+ ```bash
12
+ // src/main.js
13
+ import * as components from '@factoringplus/pl-components-pack-v3';
14
+ import '@factoringplus/pl-components-pack-v3/dist/style.css';
15
+
16
+ app.use(components)
17
+ ```
@@ -23524,28 +23524,40 @@ const Wl = /* @__PURE__ */ new Map(), JB = {
23524
23524
  n.value = !0;
23525
23525
  };
23526
23526
  return e.addEventListener("touchmove", s, { passive: !0 }), { currentHandler: o, touchMoveHandler: s };
23527
- }, M0 = (e, t = !1, n = !1) => {
23528
- const r = document.createElement("div");
23529
- r.className = "loading__body", r.style.background = t ? "" : "rgb(255 255 255 / 80%)", n && (r.style.position = "fixed", r.style.top = "0", r.style.left = "0", r.style.width = "100vw", r.style.height = "100vh", document.body.classList.add("loading__scroll-hidden")), r.innerHTML += `
23527
+ }, M0 = (e, t = !1, n = !1, r = !1) => {
23528
+ const o = document.createElement("div");
23529
+ o.className = r ? "loading__body loading__body-small" : "loading__body", o.style.background = t ? "" : "rgb(255 255 255 / 80%)", n && (o.style.position = "fixed", o.style.top = "0", o.style.left = "0", o.style.width = "100vw", o.style.height = "100vh", document.body.classList.add("loading__scroll-hidden"));
23530
+ const s = r ? 14 : 18;
23531
+ o.innerHTML += `
23530
23532
  <div class='loading__spinner-wrapper' data-testid='loading-plus'>
23531
23533
  <svg>
23532
- <circle cx='18' cy='18' r='18'></circle>
23534
+ <circle cx='${s}' cy='${s}' r='${s}'></circle>
23533
23535
  </svg>
23534
23536
  </div>
23535
23537
  `;
23536
- const o = window.getComputedStyle(e);
23537
- (!o.position || o.position === "static") && !n && (e.style.position = "relative"), e.appendChild(r);
23538
+ const i = window.getComputedStyle(e);
23539
+ (!i.position || i.position === "static") && !n && (e.style.position = "relative"), e.appendChild(o);
23538
23540
  }, XB = {
23539
23541
  mounted: (e, t) => {
23540
23542
  const n = t.modifiers.fullscreen ? document.body : e;
23541
- t.value && M0(n, t.modifiers.hideOverlay, t.modifiers.fullscreen);
23543
+ t.value && M0(
23544
+ n,
23545
+ t.modifiers.hideOverlay,
23546
+ t.modifiers.fullscreen,
23547
+ t.modifiers.small
23548
+ );
23542
23549
  },
23543
23550
  updated: (e, t) => {
23544
23551
  const n = t.modifiers.fullscreen ? document.body : e, r = Array.from(n.childNodes).find((o) => {
23545
- if (o.className === "loading__body")
23552
+ if (o instanceof Element && /\bloading__body\b/.test(o.className))
23546
23553
  return o;
23547
23554
  });
23548
- t.value && !r ? M0(n, t.modifiers.hideOverlay, t.modifiers.fullscreen) : !t.value && r && (document.body.classList.remove("loading__scroll-hidden"), n.removeChild(r));
23555
+ t.value && !r ? M0(
23556
+ n,
23557
+ t.modifiers.hideOverlay,
23558
+ t.modifiers.fullscreen,
23559
+ t.modifiers.small
23560
+ ) : !t.value && r && (document.body.classList.remove("loading__scroll-hidden"), n.removeChild(r));
23549
23561
  }
23550
23562
  }, e8 = {
23551
23563
  mounted: (e, t) => {
@@ -25106,10 +25118,10 @@ const Zr = /* @__PURE__ */ ce({
25106
25118
  $ = window.innerWidth - j.left < 10 ? `${se - N - 10}px` : G ? "10px" : `${j.left + S - N + 16}px`, k = `${j.top + P + 4}px`;
25107
25119
  break;
25108
25120
  case "bottom":
25109
- $ = G ? `${se - N - 10}px` : C ? "10px" : `${j.left + S / 2 - N / 2}px`, k = `${j.top + P + 4}px`;
25121
+ $ = window.innerWidth - j.left < 10 ? `${se - N - 10}px` : G ? "10px" : `${j.left + S / 2 - N / 2}px`, k = `${j.top + P + 4}px`;
25110
25122
  break;
25111
25123
  case "bottom-left":
25112
- $ = G ? `${se - N - 10}px` : C ? "10px" : `${j.right - S - 16}px`, k = `${j.top + P + 4}px`;
25124
+ $ = window.innerWidth - j.left < 10 ? `${se - N - 10}px` : G ? "10px" : `${j.right - S - 16}px`, k = `${j.top + P + 4}px`;
25113
25125
  break;
25114
25126
  case "right-top":
25115
25127
  $ = C ? `${j.left - N - 4}px` : `${j.left + S + 4}px`, k = `${j.top}px`;
@@ -25557,7 +25569,7 @@ const Or = /* @__PURE__ */ ce({
25557
25569
  emits: ["update:modelValue", "resetValue", "touchstart", "blur", "custom-blur"],
25558
25570
  setup(e, { expose: t, emit: n }) {
25559
25571
  wa((y) => ({
25560
- "12c5302c": r.width
25572
+ "6ce307e0": r.width
25561
25573
  }));
25562
25574
  const r = e, o = `id-${Gr()}`, s = O([]);
25563
25575
  if (r.prop) {
@@ -25632,7 +25644,10 @@ const Or = /* @__PURE__ */ ce({
25632
25644
  _: 1
25633
25645
  })) : q("", !0)
25634
25646
  ]),
25635
- r.tooltip ? (b(), ae(D, { key: 0 }, {
25647
+ r.tooltip ? (b(), ae(D, {
25648
+ key: 0,
25649
+ placement: "bottom-left"
25650
+ }, {
25636
25651
  "tooltip-text": te(() => [
25637
25652
  Be(he(r.tooltip), 1)
25638
25653
  ]),
@@ -31042,7 +31057,7 @@ const hH = { class: "pl-multi-select__wrapper" }, mH = ["id"], yH = {
31042
31057
  emits: ["update:modelValue", "change", "reset"],
31043
31058
  setup(e, { emit: t }) {
31044
31059
  wa((S) => ({
31045
- "438cc296": n.width
31060
+ "55522dca": n.width
31046
31061
  }));
31047
31062
  const n = e, r = `id-${Gr()}`, o = O([]);
31048
31063
  if (n.prop) {