@factoringplus/pl-components-pack-v3 0.8.18 → 0.8.19-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 +17 -17
- package/dist/pl-components-pack-v3.es.js +24 -25
- package/dist/pl-components-pack-v3.umd.js +2 -2
- 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_ff1f0a16_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;
|
|
@@ -19682,7 +19682,7 @@ const uniqid = /* @__PURE__ */ getDefaultExportFromCjs(uniqidExports), plInputPl
|
|
|
19682
19682
|
setup(g, { expose: y, emit: j }) {
|
|
19683
19683
|
const z = g;
|
|
19684
19684
|
useCssVars((ie) => ({
|
|
19685
|
-
|
|
19685
|
+
"3301f2f2": z.width
|
|
19686
19686
|
}));
|
|
19687
19687
|
const L = useAttrs$1(), V = `id-${uniqid()}`, re = ref([]);
|
|
19688
19688
|
if (z.prop) {
|
|
@@ -19714,16 +19714,16 @@ const uniqid = /* @__PURE__ */ getDefaultExportFromCjs(uniqidExports), plInputPl
|
|
|
19714
19714
|
const le = () => {
|
|
19715
19715
|
var ie;
|
|
19716
19716
|
(ie = document.getElementById(V)) == null || ie.blur();
|
|
19717
|
+
}, ue = () => {
|
|
19718
|
+
var ie;
|
|
19719
|
+
(ie = document.getElementById(V)) == null || ie.focus();
|
|
19717
19720
|
};
|
|
19718
19721
|
return y({
|
|
19719
19722
|
blurInput: le,
|
|
19720
|
-
focusInput:
|
|
19721
|
-
var ie;
|
|
19722
|
-
(ie = document.getElementById(V)) == null || ie.focus();
|
|
19723
|
-
}
|
|
19723
|
+
focusInput: ue
|
|
19724
19724
|
}), (ie, pe) => {
|
|
19725
|
-
const de = resolveDirective("touch-outside");
|
|
19726
|
-
return openBlock(), createElementBlock("div", _hoisted_1$M, [
|
|
19725
|
+
const de = resolveDirective("touch-outside"), Ne = resolveDirective("tap");
|
|
19726
|
+
return withDirectives((openBlock(), createElementBlock("div", _hoisted_1$M, [
|
|
19727
19727
|
z.label || z.tooltip ? (openBlock(), createElementBlock("label", {
|
|
19728
19728
|
key: 0,
|
|
19729
19729
|
class: "pl-input__label-container",
|
|
@@ -19750,7 +19750,7 @@ const uniqid = /* @__PURE__ */ getDefaultExportFromCjs(uniqidExports), plInputPl
|
|
|
19750
19750
|
z.currency ? (openBlock(), createBlock(_sfc_main$1c, mergeProps({ key: 0 }, unref(L), {
|
|
19751
19751
|
id: V,
|
|
19752
19752
|
modelValue: ae.value,
|
|
19753
|
-
"onUpdate:modelValue": pe[0] || (pe[0] = (
|
|
19753
|
+
"onUpdate:modelValue": pe[0] || (pe[0] = (Ie) => ae.value = Ie),
|
|
19754
19754
|
placeholder: z.placeholder,
|
|
19755
19755
|
disabled: z.disabled,
|
|
19756
19756
|
round: z.round,
|
|
@@ -19762,7 +19762,7 @@ const uniqid = /* @__PURE__ */ getDefaultExportFromCjs(uniqidExports), plInputPl
|
|
|
19762
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), {
|
|
19763
19763
|
id: V,
|
|
19764
19764
|
modelValue: ae.value,
|
|
19765
|
-
"onUpdate:modelValue": pe[1] || (pe[1] = (
|
|
19765
|
+
"onUpdate:modelValue": pe[1] || (pe[1] = (Ie) => ae.value = Ie),
|
|
19766
19766
|
placeholder: z.placeholder,
|
|
19767
19767
|
disabled: z.disabled,
|
|
19768
19768
|
"left-icon": z.leftIcon,
|
|
@@ -19773,7 +19773,7 @@ const uniqid = /* @__PURE__ */ getDefaultExportFromCjs(uniqidExports), plInputPl
|
|
|
19773
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), {
|
|
19774
19774
|
id: V,
|
|
19775
19775
|
modelValue: ae.value,
|
|
19776
|
-
"onUpdate:modelValue": pe[2] || (pe[2] = (
|
|
19776
|
+
"onUpdate:modelValue": pe[2] || (pe[2] = (Ie) => ae.value = Ie),
|
|
19777
19777
|
placeholder: z.placeholder,
|
|
19778
19778
|
disabled: z.disabled,
|
|
19779
19779
|
prop: z.prop,
|
|
@@ -19782,7 +19782,7 @@ const uniqid = /* @__PURE__ */ getDefaultExportFromCjs(uniqidExports), plInputPl
|
|
|
19782
19782
|
}), null, 16, ["modelValue", "placeholder", "disabled", "prop", "show-word-limit", "maxlength"])) : (openBlock(), createBlock(_sfc_main$19, mergeProps({ key: 3 }, unref(L), {
|
|
19783
19783
|
id: V,
|
|
19784
19784
|
modelValue: ae.value,
|
|
19785
|
-
"onUpdate:modelValue": pe[3] || (pe[3] = (
|
|
19785
|
+
"onUpdate:modelValue": pe[3] || (pe[3] = (Ie) => ae.value = Ie),
|
|
19786
19786
|
placeholder: z.placeholder,
|
|
19787
19787
|
maxlength: z.maxlength,
|
|
19788
19788
|
disabled: z.disabled,
|
|
@@ -19798,10 +19798,12 @@ const uniqid = /* @__PURE__ */ getDefaultExportFromCjs(uniqidExports), plInputPl
|
|
|
19798
19798
|
z.helpertext || re.value.length > 0 ? (openBlock(), createElementBlock("span", _hoisted_4$r, [
|
|
19799
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)
|
|
19800
19800
|
])) : createCommentVNode("", !0)
|
|
19801
|
+
])), [
|
|
19802
|
+
[Ne, ue]
|
|
19801
19803
|
]);
|
|
19802
19804
|
};
|
|
19803
19805
|
}
|
|
19804
|
-
}, __unplugin_components_0 = /* @__PURE__ */ _export_sfc(_sfc_main$18, [["__scopeId", "data-v-
|
|
19806
|
+
}, __unplugin_components_0 = /* @__PURE__ */ _export_sfc(_sfc_main$18, [["__scopeId", "data-v-ff1f0a16"]]), PlInputPlusPlugin = {
|
|
19805
19807
|
install(g) {
|
|
19806
19808
|
g.component("PlInputPlus", __unplugin_components_0);
|
|
19807
19809
|
}
|
|
@@ -21243,7 +21245,7 @@ const PlButtonPlugin = {
|
|
|
21243
21245
|
], 2);
|
|
21244
21246
|
};
|
|
21245
21247
|
}
|
|
21246
|
-
},
|
|
21248
|
+
}, plSelectPlus_vue_vue_type_style_index_0_scoped_1c207bae_lang = "", _hoisted_1$z = { class: "pl-select__wrapper" }, _hoisted_2$v = { class: "pl-select__select-container" }, _hoisted_3$p = {
|
|
21247
21249
|
key: 0,
|
|
21248
21250
|
class: "pl-select__label-container"
|
|
21249
21251
|
}, _hoisted_4$k = { class: "pl-select__label-container-text" }, _hoisted_5$f = {
|
|
@@ -21324,11 +21326,11 @@ const PlButtonPlugin = {
|
|
|
21324
21326
|
default: !1
|
|
21325
21327
|
}
|
|
21326
21328
|
},
|
|
21327
|
-
emits: ["update:modelValue"],
|
|
21329
|
+
emits: ["update:modelValue", "change"],
|
|
21328
21330
|
setup(g, { emit: y }) {
|
|
21329
21331
|
const j = g;
|
|
21330
21332
|
useCssVars((Ue) => ({
|
|
21331
|
-
|
|
21333
|
+
"39747a33": j.width
|
|
21332
21334
|
}));
|
|
21333
21335
|
const z = `id-${uniqid()}`, L = ref([]);
|
|
21334
21336
|
if (j.prop) {
|
|
@@ -21380,6 +21382,7 @@ const PlButtonPlugin = {
|
|
|
21380
21382
|
$e.initEvent("change", !1, !0), Ue.dispatchEvent($e);
|
|
21381
21383
|
} else
|
|
21382
21384
|
Ue.fireEvent("onchange");
|
|
21385
|
+
y("change");
|
|
21383
21386
|
});
|
|
21384
21387
|
const Ne = (Ue) => {
|
|
21385
21388
|
Ue.disabled || (pe(), de.value = Ue.value);
|
|
@@ -21468,7 +21471,7 @@ const PlButtonPlugin = {
|
|
|
21468
21471
|
]);
|
|
21469
21472
|
};
|
|
21470
21473
|
}
|
|
21471
|
-
}, PlSelectPlus = /* @__PURE__ */ _export_sfc(_sfc_main$S, [["__scopeId", "data-v-
|
|
21474
|
+
}, PlSelectPlus = /* @__PURE__ */ _export_sfc(_sfc_main$S, [["__scopeId", "data-v-1c207bae"]]), PlSelectPlusPlugin = {
|
|
21472
21475
|
install(g) {
|
|
21473
21476
|
g.component("PlSelectPlus", PlSelectPlus);
|
|
21474
21477
|
}
|
|
@@ -34504,7 +34507,7 @@ var objectSupport$1 = { exports: {} };
|
|
|
34504
34507
|
});
|
|
34505
34508
|
})(objectSupport$1);
|
|
34506
34509
|
var objectSupportExports = objectSupport$1.exports;
|
|
34507
|
-
const objectSupport = /* @__PURE__ */ getDefaultExportFromCjs(objectSupportExports),
|
|
34510
|
+
const objectSupport = /* @__PURE__ */ getDefaultExportFromCjs(objectSupportExports), plDatePickerRange_vue_vue_type_style_index_0_scoped_ea856d1e_lang = "", _withScopeId = (g) => (pushScopeId("data-v-ea856d1e"), g = g(), popScopeId(), g), _hoisted_1$4 = ["id"], _hoisted_2$3 = ["src"], _hoisted_3$3 = { class: "date-switcher__container flex-column" }, _hoisted_4$1 = { class: "d-flex pb-6 justify-content-between" }, _hoisted_5$1 = { class: "date-switcher justify-content-center flex-column" }, _hoisted_6$1 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("span", { class: "pl-date-picker__placeholder pb-1 ps-1" }, "Начало периода", -1)), _hoisted_7$1 = { class: "date-switcher justify-content-center flex-column" }, _hoisted_8$1 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("span", { class: "pl-date-picker__placeholder pb-1 ps-1" }, "Конец периода", -1)), _hoisted_9 = { class: "d-flex pt-2 justify-content-between" }, _hoisted_10 = { class: "date-switcher date-switcher__month" }, _hoisted_11 = { class: "date-switcher__month-name" }, _hoisted_12 = { class: "date-switcher date-switcher__year" }, _hoisted_13 = { class: "date-switcher__year-name" }, _hoisted_14 = { class: "pl-date-picker__days" }, _hoisted_15 = ["onClick", "onMousemove"], _hoisted_16 = { class: "field" }, _hoisted_17 = { class: "pl-date-picker__buttons" }, _sfc_main$m = {
|
|
34508
34511
|
__name: "pl-date-picker-range",
|
|
34509
34512
|
props: {
|
|
34510
34513
|
modelValue: {
|
|
@@ -34848,7 +34851,7 @@ const objectSupport = /* @__PURE__ */ getDefaultExportFromCjs(objectSupportExpor
|
|
|
34848
34851
|
], 8, _hoisted_1$4);
|
|
34849
34852
|
};
|
|
34850
34853
|
}
|
|
34851
|
-
}, PlDatePickerRange = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-
|
|
34854
|
+
}, PlDatePickerRange = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-ea856d1e"]]), PlDatePickerPlusPlugin = {
|
|
34852
34855
|
install(g) {
|
|
34853
34856
|
g.component("PlDatePickerPlus", PlDatePickerPlus), g.component("PlDatePickerRange", PlDatePickerRange);
|
|
34854
34857
|
}
|
|
@@ -34942,10 +34945,6 @@ const objectSupport = /* @__PURE__ */ getDefaultExportFromCjs(objectSupportExpor
|
|
|
34942
34945
|
disabled: {
|
|
34943
34946
|
type: Boolean,
|
|
34944
34947
|
default: !1
|
|
34945
|
-
},
|
|
34946
|
-
id: {
|
|
34947
|
-
type: String,
|
|
34948
|
-
default: null
|
|
34949
34948
|
}
|
|
34950
34949
|
},
|
|
34951
34950
|
emits: ["update:modelValue"],
|
|
@@ -34958,7 +34957,7 @@ const objectSupport = /* @__PURE__ */ getDefaultExportFromCjs(objectSupportExpor
|
|
|
34958
34957
|
}), { label: L } = toRefs(j), V = computed$1(() => L.value || "no-label"), re = computed$1(() => V.value === "no-label" ? uniqid() : V.value);
|
|
34959
34958
|
return (ae, le) => (openBlock(), createElementBlock("div", _hoisted_1$2, [
|
|
34960
34959
|
withDirectives(createElementVNode("input", {
|
|
34961
|
-
id:
|
|
34960
|
+
id: re.value,
|
|
34962
34961
|
"onUpdate:modelValue": le[0] || (le[0] = (ue) => z.value = ue),
|
|
34963
34962
|
type: "checkbox",
|
|
34964
34963
|
class: "custom-checkbox",
|
|
@@ -34968,7 +34967,7 @@ const objectSupport = /* @__PURE__ */ getDefaultExportFromCjs(objectSupportExpor
|
|
|
34968
34967
|
[vModelCheckbox, z.value]
|
|
34969
34968
|
]),
|
|
34970
34969
|
createElementVNode("label", {
|
|
34971
|
-
for:
|
|
34970
|
+
for: re.value,
|
|
34972
34971
|
onClick: le[1] || (le[1] = withModifiers(() => {
|
|
34973
34972
|
}, ["stop"]))
|
|
34974
34973
|
}, toDisplayString(V.value !== "no-label" ? V.value : null), 9, _hoisted_3$1)
|