@factoringplus/pl-components-pack-v3 0.8.6-pre-02 → 0.8.6-pre-03
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.
|
@@ -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_73a2ee4d_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;
|
|
@@ -19679,55 +19679,57 @@ const uniqid = /* @__PURE__ */ getDefaultExportFromCjs(uniqidExports), plInputPl
|
|
|
19679
19679
|
}
|
|
19680
19680
|
},
|
|
19681
19681
|
emits: ["update:modelValue"],
|
|
19682
|
-
setup(g, {
|
|
19683
|
-
const
|
|
19684
|
-
useCssVars((
|
|
19685
|
-
|
|
19682
|
+
setup(g, { expose: y, emit: j }) {
|
|
19683
|
+
const z = g;
|
|
19684
|
+
useCssVars((ue) => ({
|
|
19685
|
+
ce8ef156: z.width
|
|
19686
19686
|
}));
|
|
19687
|
-
const
|
|
19688
|
-
var
|
|
19689
|
-
(
|
|
19690
|
-
},
|
|
19691
|
-
if (
|
|
19692
|
-
const
|
|
19687
|
+
const L = useAttrs$1(), V = `id-${uniqid()}`, re = () => {
|
|
19688
|
+
var ue;
|
|
19689
|
+
(ue = document.getElementById(V)) == null || ue.blur();
|
|
19690
|
+
}, ae = ref([]);
|
|
19691
|
+
if (z.prop) {
|
|
19692
|
+
const ue = inject("errorsState");
|
|
19693
19693
|
watch(
|
|
19694
|
-
|
|
19694
|
+
ue,
|
|
19695
19695
|
() => {
|
|
19696
|
-
|
|
19697
|
-
const
|
|
19698
|
-
|
|
19696
|
+
ae.value = ue.value.filter((pe) => pe.field === z.prop);
|
|
19697
|
+
const ie = document.getElementById(V).parentElement;
|
|
19698
|
+
ae.value.length ? ie.classList.add("is-error") : ie.classList.remove("is-error");
|
|
19699
19699
|
},
|
|
19700
19700
|
{ deep: !0 }
|
|
19701
19701
|
);
|
|
19702
19702
|
}
|
|
19703
|
-
const
|
|
19704
|
-
get: () =>
|
|
19705
|
-
set: (
|
|
19706
|
-
|
|
19703
|
+
const le = computed$1({
|
|
19704
|
+
get: () => z.modelValue,
|
|
19705
|
+
set: (ue) => {
|
|
19706
|
+
j("update:modelValue", ue);
|
|
19707
19707
|
}
|
|
19708
19708
|
});
|
|
19709
|
-
return watch(
|
|
19710
|
-
const
|
|
19709
|
+
return watch(le, () => {
|
|
19710
|
+
const ue = document.getElementById(V);
|
|
19711
19711
|
if ("createEvent" in document) {
|
|
19712
|
-
const
|
|
19713
|
-
|
|
19712
|
+
const ie = document.createEvent("HTMLEvents");
|
|
19713
|
+
ie.initEvent("change", !1, !0), ue.dispatchEvent(ie);
|
|
19714
19714
|
} else
|
|
19715
|
-
|
|
19716
|
-
}), (
|
|
19717
|
-
|
|
19715
|
+
ue.fireEvent("onchange");
|
|
19716
|
+
}), y({
|
|
19717
|
+
blurInput: re
|
|
19718
|
+
}), (ue, ie) => {
|
|
19719
|
+
const pe = resolveDirective("touch-outside");
|
|
19718
19720
|
return openBlock(), createElementBlock("div", _hoisted_1$M, [
|
|
19719
|
-
|
|
19721
|
+
z.label || z.tooltip ? (openBlock(), createElementBlock("label", {
|
|
19720
19722
|
key: 0,
|
|
19721
19723
|
class: "pl-input__label-container",
|
|
19722
|
-
for:
|
|
19724
|
+
for: V
|
|
19723
19725
|
}, [
|
|
19724
19726
|
createElementVNode("div", null, [
|
|
19725
|
-
|
|
19726
|
-
|
|
19727
|
+
z.label ? (openBlock(), createElementBlock("span", _hoisted_2$E, toDisplayString(z.label), 1)) : createCommentVNode("", !0),
|
|
19728
|
+
z.optional ? (openBlock(), createElementBlock("span", _hoisted_3$w, toDisplayString(z.optional), 1)) : createCommentVNode("", !0)
|
|
19727
19729
|
]),
|
|
19728
|
-
|
|
19730
|
+
z.tooltip ? (openBlock(), createBlock(_sfc_main$1e, {
|
|
19729
19731
|
key: 0,
|
|
19730
|
-
"model-value":
|
|
19732
|
+
"model-value": z.tooltip,
|
|
19731
19733
|
position: "top"
|
|
19732
19734
|
}, {
|
|
19733
19735
|
default: withCtx(() => [
|
|
@@ -19737,63 +19739,63 @@ const uniqid = /* @__PURE__ */ getDefaultExportFromCjs(uniqidExports), plInputPl
|
|
|
19737
19739
|
}, 8, ["model-value"])) : createCommentVNode("", !0)
|
|
19738
19740
|
])) : createCommentVNode("", !0),
|
|
19739
19741
|
withDirectives((openBlock(), createElementBlock("div", {
|
|
19740
|
-
class: normalizeClass(["pl-input", { "is-disabled":
|
|
19742
|
+
class: normalizeClass(["pl-input", { "is-disabled": z.disabled }])
|
|
19741
19743
|
}, [
|
|
19742
|
-
|
|
19743
|
-
id:
|
|
19744
|
-
modelValue:
|
|
19745
|
-
"onUpdate:modelValue":
|
|
19746
|
-
placeholder:
|
|
19747
|
-
disabled:
|
|
19748
|
-
round:
|
|
19749
|
-
"value-range":
|
|
19750
|
-
"currency-input-options":
|
|
19751
|
-
"left-icon":
|
|
19752
|
-
"right-icon":
|
|
19753
|
-
prop:
|
|
19754
|
-
}), null, 16, ["modelValue", "placeholder", "disabled", "round", "value-range", "currency-input-options", "left-icon", "right-icon", "prop"])) :
|
|
19755
|
-
id:
|
|
19756
|
-
modelValue:
|
|
19757
|
-
"onUpdate:modelValue":
|
|
19758
|
-
placeholder:
|
|
19759
|
-
disabled:
|
|
19760
|
-
"left-icon":
|
|
19761
|
-
"right-icon":
|
|
19762
|
-
prop:
|
|
19763
|
-
"current-password":
|
|
19764
|
-
"new-password":
|
|
19765
|
-
}), null, 16, ["modelValue", "placeholder", "disabled", "left-icon", "right-icon", "prop", "current-password", "new-password"])) :
|
|
19766
|
-
id:
|
|
19767
|
-
modelValue:
|
|
19768
|
-
"onUpdate:modelValue":
|
|
19769
|
-
placeholder:
|
|
19770
|
-
disabled:
|
|
19771
|
-
prop:
|
|
19772
|
-
"show-word-limit":
|
|
19773
|
-
maxlength:
|
|
19774
|
-
}), null, 16, ["modelValue", "placeholder", "disabled", "prop", "show-word-limit", "maxlength"])) : (openBlock(), createBlock(_sfc_main$19, mergeProps({ key: 3 }, unref(
|
|
19775
|
-
id:
|
|
19776
|
-
modelValue:
|
|
19777
|
-
"onUpdate:modelValue":
|
|
19778
|
-
placeholder:
|
|
19779
|
-
maxlength:
|
|
19780
|
-
disabled:
|
|
19781
|
-
"left-icon":
|
|
19782
|
-
"right-icon":
|
|
19783
|
-
prop:
|
|
19784
|
-
"show-word-limit":
|
|
19785
|
-
formatter:
|
|
19744
|
+
z.currency ? (openBlock(), createBlock(_sfc_main$1c, mergeProps({ key: 0 }, unref(L), {
|
|
19745
|
+
id: V,
|
|
19746
|
+
modelValue: le.value,
|
|
19747
|
+
"onUpdate:modelValue": ie[0] || (ie[0] = (de) => le.value = de),
|
|
19748
|
+
placeholder: z.placeholder,
|
|
19749
|
+
disabled: z.disabled,
|
|
19750
|
+
round: z.round,
|
|
19751
|
+
"value-range": z.valueRange,
|
|
19752
|
+
"currency-input-options": z.currencyInputOptions,
|
|
19753
|
+
"left-icon": z.leftIcon,
|
|
19754
|
+
"right-icon": z.rightIcon,
|
|
19755
|
+
prop: z.prop
|
|
19756
|
+
}), 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
|
+
id: V,
|
|
19758
|
+
modelValue: le.value,
|
|
19759
|
+
"onUpdate:modelValue": ie[1] || (ie[1] = (de) => le.value = de),
|
|
19760
|
+
placeholder: z.placeholder,
|
|
19761
|
+
disabled: z.disabled,
|
|
19762
|
+
"left-icon": z.leftIcon,
|
|
19763
|
+
"right-icon": z.rightIcon,
|
|
19764
|
+
prop: z.prop,
|
|
19765
|
+
"current-password": z.currentPassword,
|
|
19766
|
+
"new-password": z.newPassword
|
|
19767
|
+
}), 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
|
+
id: V,
|
|
19769
|
+
modelValue: le.value,
|
|
19770
|
+
"onUpdate:modelValue": ie[2] || (ie[2] = (de) => le.value = de),
|
|
19771
|
+
placeholder: z.placeholder,
|
|
19772
|
+
disabled: z.disabled,
|
|
19773
|
+
prop: z.prop,
|
|
19774
|
+
"show-word-limit": z.showWordLimit,
|
|
19775
|
+
maxlength: z.maxlength
|
|
19776
|
+
}), null, 16, ["modelValue", "placeholder", "disabled", "prop", "show-word-limit", "maxlength"])) : (openBlock(), createBlock(_sfc_main$19, mergeProps({ key: 3 }, unref(L), {
|
|
19777
|
+
id: V,
|
|
19778
|
+
modelValue: le.value,
|
|
19779
|
+
"onUpdate:modelValue": ie[3] || (ie[3] = (de) => le.value = de),
|
|
19780
|
+
placeholder: z.placeholder,
|
|
19781
|
+
maxlength: z.maxlength,
|
|
19782
|
+
disabled: z.disabled,
|
|
19783
|
+
"left-icon": z.leftIcon,
|
|
19784
|
+
"right-icon": z.rightIcon,
|
|
19785
|
+
prop: z.prop,
|
|
19786
|
+
"show-word-limit": z.showWordLimit,
|
|
19787
|
+
formatter: z.formatter
|
|
19786
19788
|
}), null, 16, ["modelValue", "placeholder", "maxlength", "disabled", "left-icon", "right-icon", "prop", "show-word-limit", "formatter"]))
|
|
19787
19789
|
], 2)), [
|
|
19788
|
-
[
|
|
19790
|
+
[pe, re]
|
|
19789
19791
|
]),
|
|
19790
|
-
|
|
19791
|
-
|
|
19792
|
+
z.helpertext || ae.value.length > 0 ? (openBlock(), createElementBlock("span", _hoisted_4$r, [
|
|
19793
|
+
ae.value.length > 0 ? (openBlock(), createElementBlock("span", _hoisted_5$j, toDisplayString(ae.value[0].message), 1)) : z.helpertext ? (openBlock(), createElementBlock("span", _hoisted_6$d, toDisplayString(z.helpertext), 1)) : createCommentVNode("", !0)
|
|
19792
19794
|
])) : createCommentVNode("", !0)
|
|
19793
19795
|
]);
|
|
19794
19796
|
};
|
|
19795
19797
|
}
|
|
19796
|
-
}, PlInputPlus = /* @__PURE__ */ _export_sfc(_sfc_main$18, [["__scopeId", "data-v-
|
|
19798
|
+
}, PlInputPlus = /* @__PURE__ */ _export_sfc(_sfc_main$18, [["__scopeId", "data-v-73a2ee4d"]]), PlInputPlusPlugin = {
|
|
19797
19799
|
install(g) {
|
|
19798
19800
|
g.component("PlInputPlus", PlInputPlus);
|
|
19799
19801
|
}
|