@factoringplus/pl-components-pack-v3 0.2.66 → 0.2.69

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.
@@ -24035,18 +24035,22 @@ const __default__$9 = {
24035
24035
  const _sfc_main$n = /* @__PURE__ */ Object.assign(__default__$9, {
24036
24036
  props: {
24037
24037
  width: String,
24038
- modelValue: Number
24038
+ modelValue: Number,
24039
+ round: {
24040
+ type: Boolean,
24041
+ default: false
24042
+ }
24039
24043
  },
24040
24044
  emits: ["update:modelValue"],
24041
24045
  setup(__props, { emit }) {
24042
24046
  const props = __props;
24047
+ const { modelValue, round: round2 } = toRefs(props);
24043
24048
  const options = reactive({
24044
24049
  currency: "EUR",
24045
24050
  currencyDisplay: "hidden",
24046
- precision: 2
24051
+ precision: round2.value ? 0 : 2
24047
24052
  });
24048
24053
  const { inputRef, formattedValue, setValue } = useCurrencyInput(options);
24049
- const { modelValue } = toRefs(props);
24050
24054
  watch(modelValue, (newValue) => {
24051
24055
  setValue(newValue);
24052
24056
  });
@@ -39709,13 +39713,12 @@ const _sfc_main$8 = {
39709
39713
  emits: ["update:modelValue"],
39710
39714
  setup(__props, { emit }) {
39711
39715
  const props = __props;
39712
- let inputValue = ref("");
39713
- inputValue.value = props.modelValue;
39716
+ let { modelValue } = toRefs(props);
39714
39717
  const updateValue = (value) => {
39715
39718
  emit("update:modelValue", value);
39716
39719
  };
39717
39720
  const clearValue = () => {
39718
- inputValue.value = "";
39721
+ modelValue = "";
39719
39722
  };
39720
39723
  let widthLabel = ref(0);
39721
39724
  const id = "id" + Math.random();
@@ -39749,18 +39752,17 @@ const _sfc_main$8 = {
39749
39752
  }, {
39750
39753
  default: withCtx(() => [
39751
39754
  createVNode(_component_el_input, {
39752
- id: `${Math.random()}`,
39753
39755
  class: normalizeClass({ padding: props.prefix }),
39754
39756
  disabled: props.disabled,
39755
39757
  placeholder: props.placeholder,
39756
- modelValue: unref(inputValue),
39757
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(inputValue) ? inputValue.value = $event : inputValue = $event),
39758
+ modelValue: unref(modelValue),
39759
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(modelValue) ? modelValue.value = $event : modelValue = $event),
39758
39760
  type: props.area ? "textarea" : "",
39759
39761
  resize: "none",
39760
39762
  autosize: { minRows: 3, maxRows: 6 },
39761
39763
  clearable: props.clearable,
39762
39764
  onInput: updateValue
39763
- }, null, 8, ["id", "class", "disabled", "placeholder", "modelValue", "type", "clearable"])
39765
+ }, null, 8, ["class", "disabled", "placeholder", "modelValue", "type", "clearable"])
39764
39766
  ]),
39765
39767
  _: 1
39766
39768
  }, 8, ["label"])
@@ -40359,12 +40361,11 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
40359
40361
  ], 512), [
40360
40362
  [vShow, selectTabs.value === "general"]
40361
40363
  ]),
40362
- withDirectives(createVNode(_sfc_main$5, {
40364
+ selectTabs.value === "control" ? (openBlock(), createBlock(_sfc_main$5, {
40365
+ key: 0,
40363
40366
  onAddNewLegal: addNewLegal,
40364
40367
  onAddNewPhysical: addNewPhysical
40365
- }, null, 512), [
40366
- [vShow, selectTabs.value === "control"]
40367
- ]),
40368
+ })) : createCommentVNode("", true),
40368
40369
  createVNode(_sfc_main$2, {
40369
40370
  onTogglePopup: _cache[19] || (_cache[19] = ($event) => isRef(visiblePopup) ? visiblePopup.value = false : visiblePopup = false),
40370
40371
  visible: unref(visiblePopup),