@factoringplus/pl-components-pack-v3 0.8.6-pre-01 → 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,54 +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
|
-
|
|
19689
|
-
|
|
19690
|
-
|
|
19691
|
-
|
|
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");
|
|
19692
19693
|
watch(
|
|
19693
|
-
|
|
19694
|
+
ue,
|
|
19694
19695
|
() => {
|
|
19695
|
-
|
|
19696
|
-
const
|
|
19697
|
-
|
|
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");
|
|
19698
19699
|
},
|
|
19699
19700
|
{ deep: !0 }
|
|
19700
19701
|
);
|
|
19701
19702
|
}
|
|
19702
|
-
const
|
|
19703
|
-
get: () =>
|
|
19704
|
-
set: (
|
|
19705
|
-
|
|
19703
|
+
const le = computed$1({
|
|
19704
|
+
get: () => z.modelValue,
|
|
19705
|
+
set: (ue) => {
|
|
19706
|
+
j("update:modelValue", ue);
|
|
19706
19707
|
}
|
|
19707
19708
|
});
|
|
19708
|
-
return watch(
|
|
19709
|
-
const
|
|
19709
|
+
return watch(le, () => {
|
|
19710
|
+
const ue = document.getElementById(V);
|
|
19710
19711
|
if ("createEvent" in document) {
|
|
19711
|
-
const
|
|
19712
|
-
|
|
19712
|
+
const ie = document.createEvent("HTMLEvents");
|
|
19713
|
+
ie.initEvent("change", !1, !0), ue.dispatchEvent(ie);
|
|
19713
19714
|
} else
|
|
19714
|
-
|
|
19715
|
-
}), (
|
|
19716
|
-
|
|
19715
|
+
ue.fireEvent("onchange");
|
|
19716
|
+
}), y({
|
|
19717
|
+
blurInput: re
|
|
19718
|
+
}), (ue, ie) => {
|
|
19719
|
+
const pe = resolveDirective("touch-outside");
|
|
19717
19720
|
return openBlock(), createElementBlock("div", _hoisted_1$M, [
|
|
19718
|
-
|
|
19721
|
+
z.label || z.tooltip ? (openBlock(), createElementBlock("label", {
|
|
19719
19722
|
key: 0,
|
|
19720
19723
|
class: "pl-input__label-container",
|
|
19721
|
-
for:
|
|
19724
|
+
for: V
|
|
19722
19725
|
}, [
|
|
19723
19726
|
createElementVNode("div", null, [
|
|
19724
|
-
|
|
19725
|
-
|
|
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)
|
|
19726
19729
|
]),
|
|
19727
|
-
|
|
19730
|
+
z.tooltip ? (openBlock(), createBlock(_sfc_main$1e, {
|
|
19728
19731
|
key: 0,
|
|
19729
|
-
"model-value":
|
|
19732
|
+
"model-value": z.tooltip,
|
|
19730
19733
|
position: "top"
|
|
19731
19734
|
}, {
|
|
19732
19735
|
default: withCtx(() => [
|
|
@@ -19736,63 +19739,63 @@ const uniqid = /* @__PURE__ */ getDefaultExportFromCjs(uniqidExports), plInputPl
|
|
|
19736
19739
|
}, 8, ["model-value"])) : createCommentVNode("", !0)
|
|
19737
19740
|
])) : createCommentVNode("", !0),
|
|
19738
19741
|
withDirectives((openBlock(), createElementBlock("div", {
|
|
19739
|
-
class: normalizeClass(["pl-input", { "is-disabled":
|
|
19742
|
+
class: normalizeClass(["pl-input", { "is-disabled": z.disabled }])
|
|
19740
19743
|
}, [
|
|
19741
|
-
|
|
19742
|
-
id:
|
|
19743
|
-
modelValue:
|
|
19744
|
-
"onUpdate:modelValue":
|
|
19745
|
-
placeholder:
|
|
19746
|
-
disabled:
|
|
19747
|
-
round:
|
|
19748
|
-
"value-range":
|
|
19749
|
-
"currency-input-options":
|
|
19750
|
-
"left-icon":
|
|
19751
|
-
"right-icon":
|
|
19752
|
-
prop:
|
|
19753
|
-
}), null, 16, ["modelValue", "placeholder", "disabled", "round", "value-range", "currency-input-options", "left-icon", "right-icon", "prop"])) :
|
|
19754
|
-
id:
|
|
19755
|
-
modelValue:
|
|
19756
|
-
"onUpdate:modelValue":
|
|
19757
|
-
placeholder:
|
|
19758
|
-
disabled:
|
|
19759
|
-
"left-icon":
|
|
19760
|
-
"right-icon":
|
|
19761
|
-
prop:
|
|
19762
|
-
"current-password":
|
|
19763
|
-
"new-password":
|
|
19764
|
-
}), null, 16, ["modelValue", "placeholder", "disabled", "left-icon", "right-icon", "prop", "current-password", "new-password"])) :
|
|
19765
|
-
id:
|
|
19766
|
-
modelValue:
|
|
19767
|
-
"onUpdate:modelValue":
|
|
19768
|
-
placeholder:
|
|
19769
|
-
disabled:
|
|
19770
|
-
prop:
|
|
19771
|
-
"show-word-limit":
|
|
19772
|
-
maxlength:
|
|
19773
|
-
}), null, 16, ["modelValue", "placeholder", "disabled", "prop", "show-word-limit", "maxlength"])) : (openBlock(), createBlock(_sfc_main$19, mergeProps({ key: 3 }, unref(
|
|
19774
|
-
id:
|
|
19775
|
-
modelValue:
|
|
19776
|
-
"onUpdate:modelValue":
|
|
19777
|
-
placeholder:
|
|
19778
|
-
maxlength:
|
|
19779
|
-
disabled:
|
|
19780
|
-
"left-icon":
|
|
19781
|
-
"right-icon":
|
|
19782
|
-
prop:
|
|
19783
|
-
"show-word-limit":
|
|
19784
|
-
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
|
|
19785
19788
|
}), null, 16, ["modelValue", "placeholder", "maxlength", "disabled", "left-icon", "right-icon", "prop", "show-word-limit", "formatter"]))
|
|
19786
19789
|
], 2)), [
|
|
19787
|
-
[
|
|
19790
|
+
[pe, re]
|
|
19788
19791
|
]),
|
|
19789
|
-
|
|
19790
|
-
|
|
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)
|
|
19791
19794
|
])) : createCommentVNode("", !0)
|
|
19792
19795
|
]);
|
|
19793
19796
|
};
|
|
19794
19797
|
}
|
|
19795
|
-
}, PlInputPlus = /* @__PURE__ */ _export_sfc(_sfc_main$18, [["__scopeId", "data-v-
|
|
19798
|
+
}, PlInputPlus = /* @__PURE__ */ _export_sfc(_sfc_main$18, [["__scopeId", "data-v-73a2ee4d"]]), PlInputPlusPlugin = {
|
|
19796
19799
|
install(g) {
|
|
19797
19800
|
g.component("PlInputPlus", PlInputPlus);
|
|
19798
19801
|
}
|