@factoringplus/pl-components-pack-v3 0.8.7 → 0.8.9
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 +50 -40
- package/dist/pl-components-pack-v3.umd.js +1 -1
- 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 components from '@factoringplus/pl-components-pack-v3';
|
|
14
|
+
import '@factoringplus/pl-components-pack-v3/dist/style.css';
|
|
15
|
+
|
|
16
|
+
app.use(components)
|
|
17
|
+
```
|
|
@@ -19572,7 +19572,7 @@ function now$1() {
|
|
|
19572
19572
|
return now$1.last = g > y ? g : y + 1;
|
|
19573
19573
|
}
|
|
19574
19574
|
var uniqidExports = uniqid$1.exports;
|
|
19575
|
-
const uniqid = /* @__PURE__ */ getDefaultExportFromCjs(uniqidExports),
|
|
19575
|
+
const uniqid = /* @__PURE__ */ getDefaultExportFromCjs(uniqidExports), plInputPlus_vue_vue_type_style_index_0_scoped_9784ae27_lang = "", _export_sfc = (g, y) => {
|
|
19576
19576
|
const j = g.__vccOpts || g;
|
|
19577
19577
|
for (const [z, L] of y)
|
|
19578
19578
|
j[z] = L;
|
|
@@ -19681,42 +19681,48 @@ const uniqid = /* @__PURE__ */ getDefaultExportFromCjs(uniqidExports), plInputPl
|
|
|
19681
19681
|
emits: ["update:modelValue"],
|
|
19682
19682
|
setup(g, { expose: y, emit: j }) {
|
|
19683
19683
|
const z = g;
|
|
19684
|
-
useCssVars((
|
|
19685
|
-
"
|
|
19684
|
+
useCssVars((ie) => ({
|
|
19685
|
+
"7f96392f": z.width
|
|
19686
19686
|
}));
|
|
19687
|
-
const L = useAttrs$1(), V = `id-${uniqid()}`, re = ()
|
|
19688
|
-
var ue;
|
|
19689
|
-
(ue = document.getElementById(V)) == null || ue.blur();
|
|
19690
|
-
}, ae = ref([]);
|
|
19687
|
+
const L = useAttrs$1(), V = `id-${uniqid()}`, re = ref([]);
|
|
19691
19688
|
if (z.prop) {
|
|
19692
|
-
const
|
|
19689
|
+
const ie = inject("errorsState");
|
|
19693
19690
|
watch(
|
|
19694
|
-
|
|
19691
|
+
ie,
|
|
19695
19692
|
() => {
|
|
19696
|
-
|
|
19697
|
-
const
|
|
19698
|
-
|
|
19693
|
+
re.value = ie.value.filter((de) => de.field === z.prop);
|
|
19694
|
+
const pe = document.getElementById(V).parentElement;
|
|
19695
|
+
re.value.length ? pe.classList.add("is-error") : pe.classList.remove("is-error");
|
|
19699
19696
|
},
|
|
19700
19697
|
{ deep: !0 }
|
|
19701
19698
|
);
|
|
19702
19699
|
}
|
|
19703
|
-
const
|
|
19700
|
+
const ae = computed$1({
|
|
19704
19701
|
get: () => z.modelValue,
|
|
19705
|
-
set: (
|
|
19706
|
-
j("update:modelValue",
|
|
19702
|
+
set: (ie) => {
|
|
19703
|
+
j("update:modelValue", ie);
|
|
19707
19704
|
}
|
|
19708
19705
|
});
|
|
19709
|
-
|
|
19710
|
-
const
|
|
19706
|
+
watch(ae, () => {
|
|
19707
|
+
const ie = document.getElementById(V);
|
|
19711
19708
|
if ("createEvent" in document) {
|
|
19712
|
-
const
|
|
19713
|
-
|
|
19709
|
+
const pe = document.createEvent("HTMLEvents");
|
|
19710
|
+
pe.initEvent("change", !1, !0), ie.dispatchEvent(pe);
|
|
19714
19711
|
} else
|
|
19715
|
-
|
|
19716
|
-
})
|
|
19717
|
-
|
|
19718
|
-
|
|
19719
|
-
|
|
19712
|
+
ie.fireEvent("onchange");
|
|
19713
|
+
});
|
|
19714
|
+
const le = () => {
|
|
19715
|
+
var ie;
|
|
19716
|
+
(ie = document.getElementById(V)) == null || ie.blur();
|
|
19717
|
+
};
|
|
19718
|
+
return y({
|
|
19719
|
+
blurInput: le,
|
|
19720
|
+
focusInput: () => {
|
|
19721
|
+
var ie;
|
|
19722
|
+
(ie = document.getElementById(V)) == null || ie.focus();
|
|
19723
|
+
}
|
|
19724
|
+
}), (ie, pe) => {
|
|
19725
|
+
const de = resolveDirective("touch-outside");
|
|
19720
19726
|
return openBlock(), createElementBlock("div", _hoisted_1$M, [
|
|
19721
19727
|
z.label || z.tooltip ? (openBlock(), createElementBlock("label", {
|
|
19722
19728
|
key: 0,
|
|
@@ -19743,8 +19749,8 @@ const uniqid = /* @__PURE__ */ getDefaultExportFromCjs(uniqidExports), plInputPl
|
|
|
19743
19749
|
}, [
|
|
19744
19750
|
z.currency ? (openBlock(), createBlock(_sfc_main$1c, mergeProps({ key: 0 }, unref(L), {
|
|
19745
19751
|
id: V,
|
|
19746
|
-
modelValue:
|
|
19747
|
-
"onUpdate:modelValue":
|
|
19752
|
+
modelValue: ae.value,
|
|
19753
|
+
"onUpdate:modelValue": pe[0] || (pe[0] = (Ne) => ae.value = Ne),
|
|
19748
19754
|
placeholder: z.placeholder,
|
|
19749
19755
|
disabled: z.disabled,
|
|
19750
19756
|
round: z.round,
|
|
@@ -19755,8 +19761,8 @@ const uniqid = /* @__PURE__ */ getDefaultExportFromCjs(uniqidExports), plInputPl
|
|
|
19755
19761
|
prop: z.prop
|
|
19756
19762
|
}), null, 16, ["modelValue", "placeholder", "disabled", "round", "value-range", "currency-input-options", "left-icon", "right-icon", "prop"])) : z.password ? (openBlock(), createBlock(_sfc_main$1b, mergeProps({ key: 1 }, unref(L), {
|
|
19757
19763
|
id: V,
|
|
19758
|
-
modelValue:
|
|
19759
|
-
"onUpdate:modelValue":
|
|
19764
|
+
modelValue: ae.value,
|
|
19765
|
+
"onUpdate:modelValue": pe[1] || (pe[1] = (Ne) => ae.value = Ne),
|
|
19760
19766
|
placeholder: z.placeholder,
|
|
19761
19767
|
disabled: z.disabled,
|
|
19762
19768
|
"left-icon": z.leftIcon,
|
|
@@ -19766,8 +19772,8 @@ const uniqid = /* @__PURE__ */ getDefaultExportFromCjs(uniqidExports), plInputPl
|
|
|
19766
19772
|
"new-password": z.newPassword
|
|
19767
19773
|
}), null, 16, ["modelValue", "placeholder", "disabled", "left-icon", "right-icon", "prop", "current-password", "new-password"])) : z.textarea ? (openBlock(), createBlock(_sfc_main$1a, mergeProps({ key: 2 }, unref(L), {
|
|
19768
19774
|
id: V,
|
|
19769
|
-
modelValue:
|
|
19770
|
-
"onUpdate:modelValue":
|
|
19775
|
+
modelValue: ae.value,
|
|
19776
|
+
"onUpdate:modelValue": pe[2] || (pe[2] = (Ne) => ae.value = Ne),
|
|
19771
19777
|
placeholder: z.placeholder,
|
|
19772
19778
|
disabled: z.disabled,
|
|
19773
19779
|
prop: z.prop,
|
|
@@ -19775,8 +19781,8 @@ const uniqid = /* @__PURE__ */ getDefaultExportFromCjs(uniqidExports), plInputPl
|
|
|
19775
19781
|
maxlength: z.maxlength
|
|
19776
19782
|
}), null, 16, ["modelValue", "placeholder", "disabled", "prop", "show-word-limit", "maxlength"])) : (openBlock(), createBlock(_sfc_main$19, mergeProps({ key: 3 }, unref(L), {
|
|
19777
19783
|
id: V,
|
|
19778
|
-
modelValue:
|
|
19779
|
-
"onUpdate:modelValue":
|
|
19784
|
+
modelValue: ae.value,
|
|
19785
|
+
"onUpdate:modelValue": pe[3] || (pe[3] = (Ne) => ae.value = Ne),
|
|
19780
19786
|
placeholder: z.placeholder,
|
|
19781
19787
|
maxlength: z.maxlength,
|
|
19782
19788
|
disabled: z.disabled,
|
|
@@ -19787,15 +19793,15 @@ const uniqid = /* @__PURE__ */ getDefaultExportFromCjs(uniqidExports), plInputPl
|
|
|
19787
19793
|
formatter: z.formatter
|
|
19788
19794
|
}), null, 16, ["modelValue", "placeholder", "maxlength", "disabled", "left-icon", "right-icon", "prop", "show-word-limit", "formatter"]))
|
|
19789
19795
|
], 2)), [
|
|
19790
|
-
[
|
|
19796
|
+
[de, le]
|
|
19791
19797
|
]),
|
|
19792
|
-
z.helpertext ||
|
|
19793
|
-
|
|
19798
|
+
z.helpertext || re.value.length > 0 ? (openBlock(), createElementBlock("span", _hoisted_4$r, [
|
|
19799
|
+
re.value.length > 0 ? (openBlock(), createElementBlock("span", _hoisted_5$j, toDisplayString(re.value[0].message), 1)) : z.helpertext ? (openBlock(), createElementBlock("span", _hoisted_6$d, toDisplayString(z.helpertext), 1)) : createCommentVNode("", !0)
|
|
19794
19800
|
])) : createCommentVNode("", !0)
|
|
19795
19801
|
]);
|
|
19796
19802
|
};
|
|
19797
19803
|
}
|
|
19798
|
-
}, __unplugin_components_0 = /* @__PURE__ */ _export_sfc(_sfc_main$18, [["__scopeId", "data-v-
|
|
19804
|
+
}, __unplugin_components_0 = /* @__PURE__ */ _export_sfc(_sfc_main$18, [["__scopeId", "data-v-9784ae27"]]), PlInputPlusPlugin = {
|
|
19799
19805
|
install(g) {
|
|
19800
19806
|
g.component("PlInputPlus", __unplugin_components_0);
|
|
19801
19807
|
}
|
|
@@ -20492,7 +20498,7 @@ function declOfNum(g, y) {
|
|
|
20492
20498
|
const z = g % 10;
|
|
20493
20499
|
return z > 1 && z < 5 ? y[1] : z == 1 ? y[0] : y[2];
|
|
20494
20500
|
}
|
|
20495
|
-
const
|
|
20501
|
+
const plAutocompete_vue_vue_type_style_index_0_scoped_6573c1de_lang = "", _hoisted_1$E = { class: "pl-autocomplete__wrapper" }, _hoisted_2$y = { class: "pl-autocomplete__select-container" }, _hoisted_3$s = {
|
|
20496
20502
|
key: 0,
|
|
20497
20503
|
class: "pl-autocomplete__label-container"
|
|
20498
20504
|
}, _hoisted_4$n = { class: "pl-autocomplete__label-container-text" }, _hoisted_5$h = {
|
|
@@ -20573,6 +20579,10 @@ const plAutocompete_vue_vue_type_style_index_0_scoped_8cc8dd06_lang = "", _hoist
|
|
|
20573
20579
|
type: Number,
|
|
20574
20580
|
default: 3
|
|
20575
20581
|
},
|
|
20582
|
+
noSymbols: {
|
|
20583
|
+
type: Boolean,
|
|
20584
|
+
default: !1
|
|
20585
|
+
},
|
|
20576
20586
|
suggestionList: {
|
|
20577
20587
|
type: Array
|
|
20578
20588
|
},
|
|
@@ -20600,7 +20610,7 @@ const plAutocompete_vue_vue_type_style_index_0_scoped_8cc8dd06_lang = "", _hoist
|
|
|
20600
20610
|
setup(g, { emit: y }) {
|
|
20601
20611
|
const j = g;
|
|
20602
20612
|
useCssVars((Dt) => ({
|
|
20603
|
-
|
|
20613
|
+
25647048: j.width
|
|
20604
20614
|
}));
|
|
20605
20615
|
const z = `id-${uniqid()}`, L = ref([]);
|
|
20606
20616
|
if (j.prop) {
|
|
@@ -20750,7 +20760,7 @@ const plAutocompete_vue_vue_type_style_index_0_scoped_8cc8dd06_lang = "", _hoist
|
|
|
20750
20760
|
}
|
|
20751
20761
|
])
|
|
20752
20762
|
}, [
|
|
20753
|
-
de.value || !Ne.value || Ne.value.length < j.symbolsCountSearch || !((vn = j.suggestionList) != null && vn.length) ? (openBlock(), createElementBlock("div", _hoisted_11$5, [
|
|
20763
|
+
!j.noSymbols && (de.value || !Ne.value || Ne.value.length < j.symbolsCountSearch || !((vn = j.suggestionList) != null && vn.length)) ? (openBlock(), createElementBlock("div", _hoisted_11$5, [
|
|
20754
20764
|
de.value ? withDirectives((openBlock(), createElementBlock("div", _hoisted_12$5, null, 512)), [
|
|
20755
20765
|
[Lt, de.value]
|
|
20756
20766
|
]) : (openBlock(), createElementBlock("span", _hoisted_13$4, toDisplayString(xe()), 1))
|
|
@@ -20781,7 +20791,7 @@ const plAutocompete_vue_vue_type_style_index_0_scoped_8cc8dd06_lang = "", _hoist
|
|
|
20781
20791
|
]);
|
|
20782
20792
|
};
|
|
20783
20793
|
}
|
|
20784
|
-
}, PlAutocomplete = /* @__PURE__ */ _export_sfc(_sfc_main$Z, [["__scopeId", "data-v-
|
|
20794
|
+
}, PlAutocomplete = /* @__PURE__ */ _export_sfc(_sfc_main$Z, [["__scopeId", "data-v-6573c1de"]]), PlAutocompletePlugin = {
|
|
20785
20795
|
install(g) {
|
|
20786
20796
|
g.component("PlAutocomplete", PlAutocomplete);
|
|
20787
20797
|
}
|