@factoringplus/pl-components-pack-v3 0.4.42-pre-6 → 0.4.42-pre-8

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.
@@ -24582,7 +24582,8 @@ const _sfc_main$y = {
24582
24582
  currency: "EUR",
24583
24583
  currencyDisplay: "hidden",
24584
24584
  precision: round.value ? 0 : 2,
24585
- hideGroupingSeparatorOnFocus: true,
24585
+ hideNegligibleDecimalDigitsOnFocus: false,
24586
+ hideGroupingSeparatorOnFocus: false,
24586
24587
  valueRange: unref(valueRange),
24587
24588
  ...unref(currencyInputOptions)
24588
24589
  });
@@ -24617,6 +24618,23 @@ const _sfc_main$y = {
24617
24618
  input2.focus();
24618
24619
  });
24619
24620
  };
24621
+ const keydown = (e2) => {
24622
+ const { keyCode } = e2;
24623
+ if (keyCode >= 96 && keyCode <= 105 || keyCode >= 48 && keyCode <= 57 || keyCode === 46 || keyCode === 8) {
24624
+ const { selectionStart, selectionEnd } = e2.target;
24625
+ const memoryLength = e2.target.value.length;
24626
+ setTimeout(() => {
24627
+ let newLength = e2.target.value.length;
24628
+ if (keyCode === 46)
24629
+ newLength += 1;
24630
+ let cursorShift = selectionStart + (newLength - memoryLength);
24631
+ if (cursorShift < 0)
24632
+ cursorShift = 0;
24633
+ e2.target.selectionStart = cursorShift;
24634
+ e2.target.selectionEnd = cursorShift;
24635
+ });
24636
+ }
24637
+ };
24620
24638
  return (_ctx, _cache) => {
24621
24639
  const _component_el_input = ElInput;
24622
24640
  const _component_el_form_item = ElFormItem;
@@ -24678,6 +24696,7 @@ const _sfc_main$y = {
24678
24696
  clearable: props.clearable && _ctx.area
24679
24697
  }, null, 8, ["class", "formatter", "parser", "minlength", "maxlength", "disabled", "placeholder", "modelValue", "type", "clearable"])) : (openBlock(), createBlock(_component_el_input, mergeProps({
24680
24698
  key: 1,
24699
+ onKeydown: keydown,
24681
24700
  onClick: _cache[2] || (_cache[2] = ($event) => throuInput($event)),
24682
24701
  class: { padding: props.prefix },
24683
24702
  minlength: __props.minLength,