@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), plInputPlus_vue_vue_type_style_index_0_scoped_66a37bf0_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,55 +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
- "34d0e32b": 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
- var le;
19689
- (le = document.getElementById(L)) == null || le.blur();
19690
- }, re = ref([]);
19691
- if (j.prop) {
19692
- 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");
19693
19693
  watch(
19694
- le,
19694
+ ue,
19695
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
+ 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 ae = computed$1({
19704
- get: () => j.modelValue,
19705
- set: (le) => {
19706
- y("update:modelValue", le);
19703
+ const le = computed$1({
19704
+ get: () => z.modelValue,
19705
+ set: (ue) => {
19706
+ j("update:modelValue", ue);
19707
19707
  }
19708
19708
  });
19709
- return watch(ae, () => {
19710
- const le = document.getElementById(L);
19709
+ return watch(le, () => {
19710
+ const ue = document.getElementById(V);
19711
19711
  if ("createEvent" in document) {
19712
- const ue = document.createEvent("HTMLEvents");
19713
- ue.initEvent("change", !1, !0), le.dispatchEvent(ue);
19712
+ const ie = document.createEvent("HTMLEvents");
19713
+ ie.initEvent("change", !1, !0), ue.dispatchEvent(ie);
19714
19714
  } else
19715
- le.fireEvent("onchange");
19716
- }), (le, ue) => {
19717
- const ie = resolveDirective("touch-outside");
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
- j.label || j.tooltip ? (openBlock(), createElementBlock("label", {
19721
+ z.label || z.tooltip ? (openBlock(), createElementBlock("label", {
19720
19722
  key: 0,
19721
19723
  class: "pl-input__label-container",
19722
- for: L
19724
+ for: V
19723
19725
  }, [
19724
19726
  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)
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
- j.tooltip ? (openBlock(), createBlock(_sfc_main$1e, {
19730
+ z.tooltip ? (openBlock(), createBlock(_sfc_main$1e, {
19729
19731
  key: 0,
19730
- "model-value": j.tooltip,
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": j.disabled }])
19742
+ class: normalizeClass(["pl-input", { "is-disabled": z.disabled }])
19741
19743
  }, [
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
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
- [ie, V]
19790
+ [pe, re]
19789
19791
  ]),
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
+ 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-66a37bf0"]]), PlInputPlusPlugin = {
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
  }