@factoringplus/pl-components-pack-v3 0.5.21-pre-18 → 0.5.21-pre-19

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.
@@ -25818,7 +25818,7 @@ const _hoisted_3$o = {
25818
25818
  class: "pl-input__optional"
25819
25819
  };
25820
25820
  const _hoisted_4$i = {
25821
- key: 1,
25821
+ key: 0,
25822
25822
  style: { "position": "relative", "width": "20px", "height": "20px" }
25823
25823
  };
25824
25824
  const _sfc_main$B = {
@@ -25877,7 +25877,7 @@ const _sfc_main$B = {
25877
25877
  setup(__props, { emit: emit2 }) {
25878
25878
  const props = __props;
25879
25879
  useCssVars((_ctx) => ({
25880
- "4afe1c56": props.width
25880
+ "95447988": props.width
25881
25881
  }));
25882
25882
  const attrs = useAttrs$1();
25883
25883
  const id = `id-${Math.random()}`;
@@ -25894,7 +25894,7 @@ const _sfc_main$B = {
25894
25894
  const modelValue = ref(props.modelValue);
25895
25895
  watch(modelValue, (value) => {
25896
25896
  if (value && props.currency) {
25897
- emit2("update:modelValue", parseInt(value.replace(/\s/g, "")));
25897
+ emit2("update:modelValue", Number(value.replace(",", ".").replace(/\s/g, "")));
25898
25898
  } else {
25899
25899
  emit2("update:modelValue", value);
25900
25900
  }
@@ -25907,6 +25907,7 @@ const _sfc_main$B = {
25907
25907
  }
25908
25908
  hiddenPassword.value = !hiddenPassword.value;
25909
25909
  };
25910
+ const showRightIcon = computed$1(() => !("show-word-limit" in attrs) && props.rightIcon);
25910
25911
  return (_ctx, _cache) => {
25911
25912
  const _component_inline_svg = resolveComponent("inline-svg");
25912
25913
  const _component_el_input = ElInput;
@@ -25970,14 +25971,10 @@ const _sfc_main$B = {
25970
25971
  }, null, 8, ["src"])) : createCommentVNode("", true)
25971
25972
  ]),
25972
25973
  suffix: withCtx(() => [
25973
- !("show-word-limit" in unref(attrs)) && props.rightIcon && !props.password && !props.currency ? (openBlock(), createBlock(_component_inline_svg, {
25974
- key: 0,
25975
- src: props.rightIcon
25976
- }, null, 8, ["src"])) : createCommentVNode("", true),
25977
25974
  props.password ? (openBlock(), createElementBlock("div", _hoisted_4$i, [
25978
25975
  createVNode(Transition, { name: "el-zoom-in-top" }, {
25979
25976
  default: withCtx(() => [
25980
- props.password && unref(passwordType) ? (openBlock(), createBlock(_component_inline_svg, {
25977
+ unref(passwordType) ? (openBlock(), createBlock(_component_inline_svg, {
25981
25978
  key: 0,
25982
25979
  class: "pl-input__eye",
25983
25980
  src: unref(eyeCrossed),
@@ -25988,7 +25985,7 @@ const _sfc_main$B = {
25988
25985
  }),
25989
25986
  createVNode(Transition, { name: "el-zoom-in-top" }, {
25990
25987
  default: withCtx(() => [
25991
- props.password && !unref(passwordType) ? (openBlock(), createBlock(_component_inline_svg, {
25988
+ !unref(passwordType) ? (openBlock(), createBlock(_component_inline_svg, {
25992
25989
  key: 0,
25993
25990
  class: "pl-input__eye",
25994
25991
  src: unref(eye),
@@ -25997,7 +25994,10 @@ const _sfc_main$B = {
25997
25994
  ]),
25998
25995
  _: 1
25999
25996
  })
26000
- ])) : createCommentVNode("", true)
25997
+ ])) : unref(showRightIcon) ? (openBlock(), createBlock(_component_inline_svg, {
25998
+ key: 1,
25999
+ src: props.rightIcon
26000
+ }, null, 8, ["src"])) : createCommentVNode("", true)
26001
26001
  ]),
26002
26002
  _: 1
26003
26003
  }, 16, ["type", "modelValue"])),
@@ -26008,7 +26008,7 @@ const _sfc_main$B = {
26008
26008
  };
26009
26009
  }
26010
26010
  };
26011
- var PlInputPlus = /* @__PURE__ */ _export_sfc(_sfc_main$B, [["__scopeId", "data-v-97f9e990"]]);
26011
+ var PlInputPlus = /* @__PURE__ */ _export_sfc(_sfc_main$B, [["__scopeId", "data-v-691ed98b"]]);
26012
26012
  const PlInputPlusPlugin = {
26013
26013
  install(app) {
26014
26014
  app.component("PlInputPlus", PlInputPlus);