@factoringplus/pl-components-pack-v3 0.8.5 → 0.8.6-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.
|
@@ -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_66a37bf0_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,111 +19681,119 @@ const uniqid = /* @__PURE__ */ getDefaultExportFromCjs(uniqidExports), plInputPl
|
|
|
19681
19681
|
emits: ["update:modelValue"],
|
|
19682
19682
|
setup(g, { emit: y }) {
|
|
19683
19683
|
const j = g;
|
|
19684
|
-
useCssVars((
|
|
19685
|
-
|
|
19684
|
+
useCssVars((le) => ({
|
|
19685
|
+
"34d0e32b": j.width
|
|
19686
19686
|
}));
|
|
19687
|
-
const z = useAttrs$1(), L = `id-${uniqid()}`, V =
|
|
19687
|
+
const z = useAttrs$1(), L = `id-${uniqid()}`, V = () => {
|
|
19688
|
+
var le;
|
|
19689
|
+
(le = document.getElementById(L)) == null || le.blur();
|
|
19690
|
+
}, re = ref([]);
|
|
19688
19691
|
if (j.prop) {
|
|
19689
|
-
const
|
|
19692
|
+
const le = inject("errorsState");
|
|
19690
19693
|
watch(
|
|
19691
|
-
|
|
19694
|
+
le,
|
|
19692
19695
|
() => {
|
|
19693
|
-
|
|
19694
|
-
const
|
|
19695
|
-
|
|
19696
|
+
re.value = le.value.filter((ie) => ie.field === j.prop);
|
|
19697
|
+
const ue = document.getElementById(L).parentElement;
|
|
19698
|
+
re.value.length ? ue.classList.add("is-error") : ue.classList.remove("is-error");
|
|
19696
19699
|
},
|
|
19697
19700
|
{ deep: !0 }
|
|
19698
19701
|
);
|
|
19699
19702
|
}
|
|
19700
|
-
const
|
|
19703
|
+
const ae = computed$1({
|
|
19701
19704
|
get: () => j.modelValue,
|
|
19702
|
-
set: (
|
|
19703
|
-
y("update:modelValue",
|
|
19705
|
+
set: (le) => {
|
|
19706
|
+
y("update:modelValue", le);
|
|
19704
19707
|
}
|
|
19705
19708
|
});
|
|
19706
|
-
return watch(
|
|
19707
|
-
const
|
|
19709
|
+
return watch(ae, () => {
|
|
19710
|
+
const le = document.getElementById(L);
|
|
19708
19711
|
if ("createEvent" in document) {
|
|
19709
|
-
const
|
|
19710
|
-
|
|
19712
|
+
const ue = document.createEvent("HTMLEvents");
|
|
19713
|
+
ue.initEvent("change", !1, !0), le.dispatchEvent(ue);
|
|
19711
19714
|
} else
|
|
19712
|
-
|
|
19713
|
-
}), (
|
|
19714
|
-
|
|
19715
|
-
|
|
19716
|
-
|
|
19717
|
-
for: L
|
|
19718
|
-
}, [
|
|
19719
|
-
createElementVNode("div", null, [
|
|
19720
|
-
j.label ? (openBlock(), createElementBlock("span", _hoisted_2$E, toDisplayString(j.label), 1)) : createCommentVNode("", !0),
|
|
19721
|
-
j.optional ? (openBlock(), createElementBlock("span", _hoisted_3$w, toDisplayString(j.optional), 1)) : createCommentVNode("", !0)
|
|
19722
|
-
]),
|
|
19723
|
-
j.tooltip ? (openBlock(), createBlock(_sfc_main$1e, {
|
|
19715
|
+
le.fireEvent("onchange");
|
|
19716
|
+
}), (le, ue) => {
|
|
19717
|
+
const ie = resolveDirective("touch-outside");
|
|
19718
|
+
return openBlock(), createElementBlock("div", _hoisted_1$M, [
|
|
19719
|
+
j.label || j.tooltip ? (openBlock(), createElementBlock("label", {
|
|
19724
19720
|
key: 0,
|
|
19725
|
-
"
|
|
19726
|
-
|
|
19727
|
-
},
|
|
19728
|
-
|
|
19729
|
-
|
|
19721
|
+
class: "pl-input__label-container",
|
|
19722
|
+
for: L
|
|
19723
|
+
}, [
|
|
19724
|
+
createElementVNode("div", null, [
|
|
19725
|
+
j.label ? (openBlock(), createElementBlock("span", _hoisted_2$E, toDisplayString(j.label), 1)) : createCommentVNode("", !0),
|
|
19726
|
+
j.optional ? (openBlock(), createElementBlock("span", _hoisted_3$w, toDisplayString(j.optional), 1)) : createCommentVNode("", !0)
|
|
19730
19727
|
]),
|
|
19731
|
-
|
|
19732
|
-
|
|
19733
|
-
|
|
19734
|
-
|
|
19735
|
-
|
|
19736
|
-
|
|
19737
|
-
|
|
19738
|
-
|
|
19739
|
-
|
|
19740
|
-
|
|
19741
|
-
|
|
19742
|
-
|
|
19743
|
-
|
|
19744
|
-
|
|
19745
|
-
|
|
19746
|
-
|
|
19747
|
-
|
|
19748
|
-
|
|
19749
|
-
|
|
19750
|
-
|
|
19751
|
-
|
|
19752
|
-
|
|
19753
|
-
|
|
19754
|
-
|
|
19755
|
-
|
|
19756
|
-
|
|
19757
|
-
prop: j.
|
|
19758
|
-
|
|
19759
|
-
|
|
19760
|
-
|
|
19761
|
-
|
|
19762
|
-
|
|
19763
|
-
|
|
19764
|
-
|
|
19765
|
-
|
|
19766
|
-
|
|
19767
|
-
|
|
19768
|
-
|
|
19769
|
-
|
|
19770
|
-
|
|
19771
|
-
|
|
19772
|
-
|
|
19773
|
-
|
|
19774
|
-
|
|
19775
|
-
|
|
19776
|
-
|
|
19777
|
-
"
|
|
19778
|
-
|
|
19779
|
-
|
|
19780
|
-
|
|
19781
|
-
|
|
19782
|
-
|
|
19783
|
-
|
|
19784
|
-
|
|
19785
|
-
|
|
19786
|
-
|
|
19728
|
+
j.tooltip ? (openBlock(), createBlock(_sfc_main$1e, {
|
|
19729
|
+
key: 0,
|
|
19730
|
+
"model-value": j.tooltip,
|
|
19731
|
+
position: "top"
|
|
19732
|
+
}, {
|
|
19733
|
+
default: withCtx(() => [
|
|
19734
|
+
createVNode(_sfc_main$1d, { name: "Question20" })
|
|
19735
|
+
]),
|
|
19736
|
+
_: 1
|
|
19737
|
+
}, 8, ["model-value"])) : createCommentVNode("", !0)
|
|
19738
|
+
])) : createCommentVNode("", !0),
|
|
19739
|
+
withDirectives((openBlock(), createElementBlock("div", {
|
|
19740
|
+
class: normalizeClass(["pl-input", { "is-disabled": j.disabled }])
|
|
19741
|
+
}, [
|
|
19742
|
+
j.currency ? (openBlock(), createBlock(_sfc_main$1c, mergeProps({ key: 0 }, unref(z), {
|
|
19743
|
+
id: L,
|
|
19744
|
+
modelValue: ae.value,
|
|
19745
|
+
"onUpdate:modelValue": ue[0] || (ue[0] = (pe) => ae.value = pe),
|
|
19746
|
+
placeholder: j.placeholder,
|
|
19747
|
+
disabled: j.disabled,
|
|
19748
|
+
round: j.round,
|
|
19749
|
+
"value-range": j.valueRange,
|
|
19750
|
+
"currency-input-options": j.currencyInputOptions,
|
|
19751
|
+
"left-icon": j.leftIcon,
|
|
19752
|
+
"right-icon": j.rightIcon,
|
|
19753
|
+
prop: j.prop
|
|
19754
|
+
}), null, 16, ["modelValue", "placeholder", "disabled", "round", "value-range", "currency-input-options", "left-icon", "right-icon", "prop"])) : j.password ? (openBlock(), createBlock(_sfc_main$1b, mergeProps({ key: 1 }, unref(z), {
|
|
19755
|
+
id: L,
|
|
19756
|
+
modelValue: ae.value,
|
|
19757
|
+
"onUpdate:modelValue": ue[1] || (ue[1] = (pe) => ae.value = pe),
|
|
19758
|
+
placeholder: j.placeholder,
|
|
19759
|
+
disabled: j.disabled,
|
|
19760
|
+
"left-icon": j.leftIcon,
|
|
19761
|
+
"right-icon": j.rightIcon,
|
|
19762
|
+
prop: j.prop,
|
|
19763
|
+
"current-password": j.currentPassword,
|
|
19764
|
+
"new-password": j.newPassword
|
|
19765
|
+
}), null, 16, ["modelValue", "placeholder", "disabled", "left-icon", "right-icon", "prop", "current-password", "new-password"])) : j.textarea ? (openBlock(), createBlock(_sfc_main$1a, mergeProps({ key: 2 }, unref(z), {
|
|
19766
|
+
id: L,
|
|
19767
|
+
modelValue: ae.value,
|
|
19768
|
+
"onUpdate:modelValue": ue[2] || (ue[2] = (pe) => ae.value = pe),
|
|
19769
|
+
placeholder: j.placeholder,
|
|
19770
|
+
disabled: j.disabled,
|
|
19771
|
+
prop: j.prop,
|
|
19772
|
+
"show-word-limit": j.showWordLimit,
|
|
19773
|
+
maxlength: j.maxlength
|
|
19774
|
+
}), null, 16, ["modelValue", "placeholder", "disabled", "prop", "show-word-limit", "maxlength"])) : (openBlock(), createBlock(_sfc_main$19, mergeProps({ key: 3 }, unref(z), {
|
|
19775
|
+
id: L,
|
|
19776
|
+
modelValue: ae.value,
|
|
19777
|
+
"onUpdate:modelValue": ue[3] || (ue[3] = (pe) => ae.value = pe),
|
|
19778
|
+
placeholder: j.placeholder,
|
|
19779
|
+
maxlength: j.maxlength,
|
|
19780
|
+
disabled: j.disabled,
|
|
19781
|
+
"left-icon": j.leftIcon,
|
|
19782
|
+
"right-icon": j.rightIcon,
|
|
19783
|
+
prop: j.prop,
|
|
19784
|
+
"show-word-limit": j.showWordLimit,
|
|
19785
|
+
formatter: j.formatter
|
|
19786
|
+
}), null, 16, ["modelValue", "placeholder", "maxlength", "disabled", "left-icon", "right-icon", "prop", "show-word-limit", "formatter"]))
|
|
19787
|
+
], 2)), [
|
|
19788
|
+
[ie, V]
|
|
19789
|
+
]),
|
|
19790
|
+
j.helpertext || re.value.length > 0 ? (openBlock(), createElementBlock("span", _hoisted_4$r, [
|
|
19791
|
+
re.value.length > 0 ? (openBlock(), createElementBlock("span", _hoisted_5$j, toDisplayString(re.value[0].message), 1)) : j.helpertext ? (openBlock(), createElementBlock("span", _hoisted_6$d, toDisplayString(j.helpertext), 1)) : createCommentVNode("", !0)
|
|
19792
|
+
])) : createCommentVNode("", !0)
|
|
19793
|
+
]);
|
|
19794
|
+
};
|
|
19787
19795
|
}
|
|
19788
|
-
}, PlInputPlus = /* @__PURE__ */ _export_sfc(_sfc_main$18, [["__scopeId", "data-v-
|
|
19796
|
+
}, PlInputPlus = /* @__PURE__ */ _export_sfc(_sfc_main$18, [["__scopeId", "data-v-66a37bf0"]]), PlInputPlusPlugin = {
|
|
19789
19797
|
install(g) {
|
|
19790
19798
|
g.component("PlInputPlus", PlInputPlus);
|
|
19791
19799
|
}
|
|
@@ -35063,13 +35071,13 @@ const PlTag = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _sfc_render$1
|
|
|
35063
35071
|
install(g) {
|
|
35064
35072
|
g.component("PlH1", PlH1), g.component("PlH2", PlH2), g.component("PlH3", PlH3), g.component("PlH4", PlH4), g.component("PlTitle1", PlTitle1), g.component("PlTitle2", PlTitle2), g.component("PlTitle3", PlTitle3), g.component("PlSub1", PlSub1), g.component("PlSub2", PlSub2), g.component("PlBtn1", PlBtn1), g.component("PlBtn2", PlBtn2), g.component("PlBtn3", PlBtn3), g.component("PlBody1", PlBody1), g.component("PlBody2", PlBody2), g.component("PlBody3", PlBody3), g.component("PlBodyU", PlBodyU), g.component("PlCap", PlCap), g.component("PlTag", PlTag);
|
|
35065
35073
|
}
|
|
35066
|
-
}, customBootstrap = "", root = "", inter = "", color = "", resetElement = "",
|
|
35074
|
+
}, customBootstrap = "", root = "", inter = "", color = "", resetElement = "", plBtn_vue_vue_type_style_index_0_scoped_03c9626c_lang = "", _sfc_main$1 = {}, _hoisted_1$1 = { class: "pl-btn" };
|
|
35067
35075
|
function _sfc_render(g, y) {
|
|
35068
35076
|
return openBlock(), createElementBlock("button", _hoisted_1$1, [
|
|
35069
35077
|
renderSlot(g.$slots, "default", {}, void 0, !0)
|
|
35070
35078
|
]);
|
|
35071
35079
|
}
|
|
35072
|
-
const PlBtn = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render], ["__scopeId", "data-v-
|
|
35080
|
+
const PlBtn = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render], ["__scopeId", "data-v-03c9626c"]]), plSnackbar_vue_vue_type_style_index_0_scoped_6b2b9338_lang = "", _hoisted_1 = {
|
|
35073
35081
|
key: 0,
|
|
35074
35082
|
class: "pl-snackbar__wrapper"
|
|
35075
35083
|
}, _hoisted_2 = { class: "pl-snackbar__icon" }, _hoisted_3 = { class: "pl-snackbar__main" }, _hoisted_4 = { class: "pl-snackbar__text" }, _hoisted_5 = { class: "pl-snackbar__title" }, _hoisted_6 = {
|
|
@@ -35168,9 +35176,9 @@ const PlBtn = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render],
|
|
|
35168
35176
|
]),
|
|
35169
35177
|
createElementVNode("div", _hoisted_8, [
|
|
35170
35178
|
createVNode(_sfc_main$1d, {
|
|
35171
|
-
onClick: V,
|
|
35172
35179
|
color: "var(--color-text-icons-tertiary)",
|
|
35173
|
-
name: "Close20"
|
|
35180
|
+
name: "Close20",
|
|
35181
|
+
onClick: V
|
|
35174
35182
|
})
|
|
35175
35183
|
])
|
|
35176
35184
|
])) : createCommentVNode("", !0)
|
|
@@ -35179,7 +35187,7 @@ const PlBtn = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render],
|
|
|
35179
35187
|
});
|
|
35180
35188
|
};
|
|
35181
35189
|
}
|
|
35182
|
-
}, PlSnackbar = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
35190
|
+
}, PlSnackbar = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-6b2b9338"]]), snackbarAnimation = "";
|
|
35183
35191
|
let snackbarId = 0;
|
|
35184
35192
|
const renderSnackbar = function(g, y, j, z) {
|
|
35185
35193
|
if (!document.getElementById("snackbar")) {
|