@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), plInputPlus_vue_vue_type_style_index_0_scoped_97d09e69_lang = "", _export_sfc = (g, y) => {
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((ae) => ({
19685
- d4b0970e: j.width
19684
+ useCssVars((le) => ({
19685
+ "34d0e32b": j.width
19686
19686
  }));
19687
- const z = useAttrs$1(), L = `id-${uniqid()}`, V = ref([]);
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 ae = inject("errorsState");
19692
+ const le = inject("errorsState");
19690
19693
  watch(
19691
- ae,
19694
+ le,
19692
19695
  () => {
19693
- V.value = ae.value.filter((ue) => ue.field === j.prop);
19694
- const le = document.getElementById(L).parentElement;
19695
- V.value.length ? le.classList.add("is-error") : le.classList.remove("is-error");
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 re = computed$1({
19703
+ const ae = computed$1({
19701
19704
  get: () => j.modelValue,
19702
- set: (ae) => {
19703
- y("update:modelValue", ae);
19705
+ set: (le) => {
19706
+ y("update:modelValue", le);
19704
19707
  }
19705
19708
  });
19706
- return watch(re, () => {
19707
- const ae = document.getElementById(L);
19709
+ return watch(ae, () => {
19710
+ const le = document.getElementById(L);
19708
19711
  if ("createEvent" in document) {
19709
- const le = document.createEvent("HTMLEvents");
19710
- le.initEvent("change", !1, !0), ae.dispatchEvent(le);
19712
+ const ue = document.createEvent("HTMLEvents");
19713
+ ue.initEvent("change", !1, !0), le.dispatchEvent(ue);
19711
19714
  } else
19712
- ae.fireEvent("onchange");
19713
- }), (ae, le) => (openBlock(), createElementBlock("div", _hoisted_1$M, [
19714
- j.label || j.tooltip ? (openBlock(), createElementBlock("label", {
19715
- key: 0,
19716
- class: "pl-input__label-container",
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
- "model-value": j.tooltip,
19726
- position: "top"
19727
- }, {
19728
- default: withCtx(() => [
19729
- createVNode(_sfc_main$1d, { name: "Question20" })
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
- _: 1
19732
- }, 8, ["model-value"])) : createCommentVNode("", !0)
19733
- ])) : createCommentVNode("", !0),
19734
- createElementVNode("div", {
19735
- class: normalizeClass(["pl-input", { "is-disabled": j.disabled }])
19736
- }, [
19737
- j.currency ? (openBlock(), createBlock(_sfc_main$1c, mergeProps({ key: 0 }, unref(z), {
19738
- id: L,
19739
- modelValue: re.value,
19740
- "onUpdate:modelValue": le[0] || (le[0] = (ue) => re.value = ue),
19741
- placeholder: j.placeholder,
19742
- disabled: j.disabled,
19743
- round: j.round,
19744
- "value-range": j.valueRange,
19745
- "currency-input-options": j.currencyInputOptions,
19746
- "left-icon": j.leftIcon,
19747
- "right-icon": j.rightIcon,
19748
- prop: j.prop
19749
- }), 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), {
19750
- id: L,
19751
- modelValue: re.value,
19752
- "onUpdate:modelValue": le[1] || (le[1] = (ue) => re.value = ue),
19753
- placeholder: j.placeholder,
19754
- disabled: j.disabled,
19755
- "left-icon": j.leftIcon,
19756
- "right-icon": j.rightIcon,
19757
- prop: j.prop,
19758
- "current-password": j.currentPassword,
19759
- "new-password": j.newPassword
19760
- }), 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), {
19761
- id: L,
19762
- modelValue: re.value,
19763
- "onUpdate:modelValue": le[2] || (le[2] = (ue) => re.value = ue),
19764
- placeholder: j.placeholder,
19765
- disabled: j.disabled,
19766
- prop: j.prop,
19767
- "show-word-limit": j.showWordLimit,
19768
- maxlength: j.maxlength
19769
- }), null, 16, ["modelValue", "placeholder", "disabled", "prop", "show-word-limit", "maxlength"])) : (openBlock(), createBlock(_sfc_main$19, mergeProps({ key: 3 }, unref(z), {
19770
- id: L,
19771
- modelValue: re.value,
19772
- "onUpdate:modelValue": le[3] || (le[3] = (ue) => re.value = ue),
19773
- placeholder: j.placeholder,
19774
- maxlength: j.maxlength,
19775
- disabled: j.disabled,
19776
- "left-icon": j.leftIcon,
19777
- "right-icon": j.rightIcon,
19778
- prop: j.prop,
19779
- "show-word-limit": j.showWordLimit,
19780
- formatter: j.formatter
19781
- }), null, 16, ["modelValue", "placeholder", "maxlength", "disabled", "left-icon", "right-icon", "prop", "show-word-limit", "formatter"]))
19782
- ], 2),
19783
- j.helpertext || V.value.length > 0 ? (openBlock(), createElementBlock("span", _hoisted_4$r, [
19784
- V.value.length > 0 ? (openBlock(), createElementBlock("span", _hoisted_5$j, toDisplayString(V.value[0].message), 1)) : j.helpertext ? (openBlock(), createElementBlock("span", _hoisted_6$d, toDisplayString(j.helpertext), 1)) : createCommentVNode("", !0)
19785
- ])) : createCommentVNode("", !0)
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-97d09e69"]]), PlInputPlusPlugin = {
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 = "", plBtn_vue_vue_type_style_index_0_scoped_d8a5f67a_lang = "", _sfc_main$1 = {}, _hoisted_1$1 = { class: "pl-btn" };
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-d8a5f67a"]]), plSnackbar_vue_vue_type_style_index_0_scoped_eac34673_lang = "", _hoisted_1 = {
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-eac34673"]]), snackbarAnimation = "";
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")) {