@factoringplus/pl-components-pack-v3 0.8.5-pre-01 → 0.8.6-pre-01

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_eb4f776b_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,118 @@ 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
+ "5a3f16d7": j.width
19686
19686
  }));
19687
- const z = useAttrs$1(), L = `id-${uniqid()}`, V = ref([]);
19687
+ const z = useAttrs$1(), L = `id-${uniqid()}`, V = () => {
19688
+ document.getElementById(L).blur();
19689
+ }, re = ref([]);
19688
19690
  if (j.prop) {
19689
- const ae = inject("errorsState");
19691
+ const le = inject("errorsState");
19690
19692
  watch(
19691
- ae,
19693
+ le,
19692
19694
  () => {
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");
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
19698
  },
19697
19699
  { deep: !0 }
19698
19700
  );
19699
19701
  }
19700
- const re = computed$1({
19702
+ const ae = computed$1({
19701
19703
  get: () => j.modelValue,
19702
- set: (ae) => {
19703
- y("update:modelValue", ae);
19704
+ set: (le) => {
19705
+ y("update:modelValue", le);
19704
19706
  }
19705
19707
  });
19706
- return watch(re, () => {
19707
- const ae = document.getElementById(L);
19708
+ return watch(ae, () => {
19709
+ const le = document.getElementById(L);
19708
19710
  if ("createEvent" in document) {
19709
- const le = document.createEvent("HTMLEvents");
19710
- le.initEvent("change", !1, !0), ae.dispatchEvent(le);
19711
+ const ue = document.createEvent("HTMLEvents");
19712
+ ue.initEvent("change", !1, !0), le.dispatchEvent(ue);
19711
19713
  } 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, {
19714
+ le.fireEvent("onchange");
19715
+ }), (le, ue) => {
19716
+ const ie = resolveDirective("touch-outside");
19717
+ return openBlock(), createElementBlock("div", _hoisted_1$M, [
19718
+ j.label || j.tooltip ? (openBlock(), createElementBlock("label", {
19724
19719
  key: 0,
19725
- "model-value": j.tooltip,
19726
- position: "top"
19727
- }, {
19728
- default: withCtx(() => [
19729
- createVNode(_sfc_main$1d, { name: "Question20" })
19720
+ class: "pl-input__label-container",
19721
+ for: L
19722
+ }, [
19723
+ 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)
19730
19726
  ]),
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
- ]));
19727
+ j.tooltip ? (openBlock(), createBlock(_sfc_main$1e, {
19728
+ key: 0,
19729
+ "model-value": j.tooltip,
19730
+ position: "top"
19731
+ }, {
19732
+ default: withCtx(() => [
19733
+ createVNode(_sfc_main$1d, { name: "Question20" })
19734
+ ]),
19735
+ _: 1
19736
+ }, 8, ["model-value"])) : createCommentVNode("", !0)
19737
+ ])) : createCommentVNode("", !0),
19738
+ withDirectives((openBlock(), createElementBlock("div", {
19739
+ class: normalizeClass(["pl-input", { "is-disabled": j.disabled }])
19740
+ }, [
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
19785
+ }), null, 16, ["modelValue", "placeholder", "maxlength", "disabled", "left-icon", "right-icon", "prop", "show-word-limit", "formatter"]))
19786
+ ], 2)), [
19787
+ [ie, V]
19788
+ ]),
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)
19791
+ ])) : createCommentVNode("", !0)
19792
+ ]);
19793
+ };
19787
19794
  }
19788
- }, PlInputPlus = /* @__PURE__ */ _export_sfc(_sfc_main$18, [["__scopeId", "data-v-97d09e69"]]), PlInputPlusPlugin = {
19795
+ }, PlInputPlus = /* @__PURE__ */ _export_sfc(_sfc_main$18, [["__scopeId", "data-v-eb4f776b"]]), PlInputPlusPlugin = {
19789
19796
  install(g) {
19790
19797
  g.component("PlInputPlus", PlInputPlus);
19791
19798
  }
@@ -35063,13 +35070,13 @@ const PlTag = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _sfc_render$1
35063
35070
  install(g) {
35064
35071
  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
35072
  }
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" };
35073
+ }, 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
35074
  function _sfc_render(g, y) {
35068
35075
  return openBlock(), createElementBlock("button", _hoisted_1$1, [
35069
35076
  renderSlot(g.$slots, "default", {}, void 0, !0)
35070
35077
  ]);
35071
35078
  }
35072
- const PlBtn = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render], ["__scopeId", "data-v-d8a5f67a"]]), plSnackbar_vue_vue_type_style_index_0_scoped_54212283_lang = "", _hoisted_1 = {
35079
+ 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
35080
  key: 0,
35074
35081
  class: "pl-snackbar__wrapper"
35075
35082
  }, _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 = {
@@ -35167,12 +35174,11 @@ const PlBtn = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render],
35167
35174
  ])) : createCommentVNode("", !0)
35168
35175
  ]),
35169
35176
  createElementVNode("div", _hoisted_8, [
35170
- withDirectives(createVNode(_sfc_main$1d, {
35177
+ createVNode(_sfc_main$1d, {
35171
35178
  color: "var(--color-text-icons-tertiary)",
35172
- name: "Close20"
35173
- }, null, 512), [
35174
- [le, V]
35175
- ])
35179
+ name: "Close20",
35180
+ onClick: V
35181
+ })
35176
35182
  ])
35177
35183
  ])) : createCommentVNode("", !0)
35178
35184
  ]),
@@ -35180,7 +35186,7 @@ const PlBtn = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render],
35180
35186
  });
35181
35187
  };
35182
35188
  }
35183
- }, PlSnackbar = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-54212283"]]), snackbarAnimation = "";
35189
+ }, PlSnackbar = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-6b2b9338"]]), snackbarAnimation = "";
35184
35190
  let snackbarId = 0;
35185
35191
  const renderSnackbar = function(g, y, j, z) {
35186
35192
  if (!document.getElementById("snackbar")) {