@factoringplus/pl-components-pack-v3 1.3.1 → 1.3.2-pre-01
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 +17 -17
- package/dist/pl-components-pack-v3.es.js +25 -13
- package/dist/pl-components-pack-v3.umd.js +4 -4
- package/dist/style.css +1 -1
- package/package.json +1 -1
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
|
23529
|
-
|
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='
|
23534
|
+
<circle cx='${s}' cy='${s}' r='${s}'></circle>
|
23533
23535
|
</svg>
|
23534
23536
|
</div>
|
23535
23537
|
`;
|
23536
|
-
const
|
23537
|
-
(!
|
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(
|
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
|
23552
|
+
if (o instanceof Element && /\bloading__body\b/.test(o.className))
|
23546
23553
|
return o;
|
23547
23554
|
});
|
23548
|
-
t.value && !r ? M0(
|
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
|
-
$ =
|
25121
|
+
$ = window.innerWidth - j.left < 10 ? `${se - N - 10}px` : C ? "10px" : `${j.left + S / 2 - N / 2}px`, k = `${j.top + P + 4}px`;
|
25110
25122
|
break;
|
25111
25123
|
case "bottom-left":
|
25112
|
-
$ =
|
25124
|
+
$ = window.innerWidth - j.left < 10 ? `${se - N - 10}px` : C ? "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
|
-
"
|
25572
|
+
"386625cc": r.width
|
25561
25573
|
}));
|
25562
25574
|
const r = e, o = `id-${Gr()}`, s = O([]);
|
25563
25575
|
if (r.prop) {
|
@@ -31042,7 +31054,7 @@ const hH = { class: "pl-multi-select__wrapper" }, mH = ["id"], yH = {
|
|
31042
31054
|
emits: ["update:modelValue", "change", "reset"],
|
31043
31055
|
setup(e, { emit: t }) {
|
31044
31056
|
wa((S) => ({
|
31045
|
-
"
|
31057
|
+
"55522dca": n.width
|
31046
31058
|
}));
|
31047
31059
|
const n = e, r = `id-${Gr()}`, o = O([]);
|
31048
31060
|
if (n.prop) {
|