@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), plInputPlus_vue_vue_type_style_index_0_scoped_eb4f776b_lang = "", _export_sfc = (g, y) => {
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, { emit: y }) {
19683
- const j = g;
19684
- useCssVars((le) => ({
19685
- "5a3f16d7": j.width
19682
+ setup(g, { expose: y, emit: j }) {
19683
+ const z = g;
19684
+ useCssVars((ue) => ({
19685
+ ce8ef156: z.width
19686
19686
  }));
19687
- const z = useAttrs$1(), L = `id-${uniqid()}`, V = () => {
19688
- document.getElementById(L).blur();
19689
- }, re = ref([]);
19690
- if (j.prop) {
19691
- const le = inject("errorsState");
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
- le,
19694
+ ue,
19694
19695
  () => {
19695
- re.value = le.value.filter((ie) => ie.field === j.prop);
19696
- const ue = document.getElementById(L).parentElement;
19697
- re.value.length ? ue.classList.add("is-error") : ue.classList.remove("is-error");
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 ae = computed$1({
19703
- get: () => j.modelValue,
19704
- set: (le) => {
19705
- y("update:modelValue", le);
19703
+ const le = computed$1({
19704
+ get: () => z.modelValue,
19705
+ set: (ue) => {
19706
+ j("update:modelValue", ue);
19706
19707
  }
19707
19708
  });
19708
- return watch(ae, () => {
19709
- const le = document.getElementById(L);
19709
+ return watch(le, () => {
19710
+ const ue = document.getElementById(V);
19710
19711
  if ("createEvent" in document) {
19711
- const ue = document.createEvent("HTMLEvents");
19712
- ue.initEvent("change", !1, !0), le.dispatchEvent(ue);
19712
+ const ie = document.createEvent("HTMLEvents");
19713
+ ie.initEvent("change", !1, !0), ue.dispatchEvent(ie);
19713
19714
  } else
19714
- le.fireEvent("onchange");
19715
- }), (le, ue) => {
19716
- const ie = resolveDirective("touch-outside");
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
- j.label || j.tooltip ? (openBlock(), createElementBlock("label", {
19721
+ z.label || z.tooltip ? (openBlock(), createElementBlock("label", {
19719
19722
  key: 0,
19720
19723
  class: "pl-input__label-container",
19721
- for: L
19724
+ for: V
19722
19725
  }, [
19723
19726
  createElementVNode("div", null, [
19724
- j.label ? (openBlock(), createElementBlock("span", _hoisted_2$E, toDisplayString(j.label), 1)) : createCommentVNode("", !0),
19725
- j.optional ? (openBlock(), createElementBlock("span", _hoisted_3$w, toDisplayString(j.optional), 1)) : createCommentVNode("", !0)
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
- j.tooltip ? (openBlock(), createBlock(_sfc_main$1e, {
19730
+ z.tooltip ? (openBlock(), createBlock(_sfc_main$1e, {
19728
19731
  key: 0,
19729
- "model-value": j.tooltip,
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": j.disabled }])
19742
+ class: normalizeClass(["pl-input", { "is-disabled": z.disabled }])
19740
19743
  }, [
19741
- j.currency ? (openBlock(), createBlock(_sfc_main$1c, mergeProps({ key: 0 }, unref(z), {
19742
- id: L,
19743
- modelValue: ae.value,
19744
- "onUpdate:modelValue": ue[0] || (ue[0] = (pe) => ae.value = pe),
19745
- placeholder: j.placeholder,
19746
- disabled: j.disabled,
19747
- round: j.round,
19748
- "value-range": j.valueRange,
19749
- "currency-input-options": j.currencyInputOptions,
19750
- "left-icon": j.leftIcon,
19751
- "right-icon": j.rightIcon,
19752
- prop: j.prop
19753
- }), 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), {
19754
- id: L,
19755
- modelValue: ae.value,
19756
- "onUpdate:modelValue": ue[1] || (ue[1] = (pe) => ae.value = pe),
19757
- placeholder: j.placeholder,
19758
- disabled: j.disabled,
19759
- "left-icon": j.leftIcon,
19760
- "right-icon": j.rightIcon,
19761
- prop: j.prop,
19762
- "current-password": j.currentPassword,
19763
- "new-password": j.newPassword
19764
- }), 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), {
19765
- id: L,
19766
- modelValue: ae.value,
19767
- "onUpdate:modelValue": ue[2] || (ue[2] = (pe) => ae.value = pe),
19768
- placeholder: j.placeholder,
19769
- disabled: j.disabled,
19770
- prop: j.prop,
19771
- "show-word-limit": j.showWordLimit,
19772
- maxlength: j.maxlength
19773
- }), null, 16, ["modelValue", "placeholder", "disabled", "prop", "show-word-limit", "maxlength"])) : (openBlock(), createBlock(_sfc_main$19, mergeProps({ key: 3 }, unref(z), {
19774
- id: L,
19775
- modelValue: ae.value,
19776
- "onUpdate:modelValue": ue[3] || (ue[3] = (pe) => ae.value = pe),
19777
- placeholder: j.placeholder,
19778
- maxlength: j.maxlength,
19779
- disabled: j.disabled,
19780
- "left-icon": j.leftIcon,
19781
- "right-icon": j.rightIcon,
19782
- prop: j.prop,
19783
- "show-word-limit": j.showWordLimit,
19784
- formatter: j.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
- [ie, V]
19790
+ [pe, re]
19788
19791
  ]),
19789
- j.helpertext || re.value.length > 0 ? (openBlock(), createElementBlock("span", _hoisted_4$r, [
19790
- 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
+ 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-eb4f776b"]]), PlInputPlusPlugin = {
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
  }