@factoringplus/pl-components-pack-v3 0.4.42-pre-7 → 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.
@@ -24583,7 +24583,7 @@ const _sfc_main$y = {
24583
24583
  currencyDisplay: "hidden",
24584
24584
  precision: round.value ? 0 : 2,
24585
24585
  hideNegligibleDecimalDigitsOnFocus: false,
24586
- hideGroupingSeparatorOnFocus: true,
24586
+ hideGroupingSeparatorOnFocus: false,
24587
24587
  valueRange: unref(valueRange),
24588
24588
  ...unref(currencyInputOptions)
24589
24589
  });
@@ -24618,6 +24618,23 @@ const _sfc_main$y = {
24618
24618
  input2.focus();
24619
24619
  });
24620
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
+ };
24621
24638
  return (_ctx, _cache) => {
24622
24639
  const _component_el_input = ElInput;
24623
24640
  const _component_el_form_item = ElFormItem;
@@ -24679,6 +24696,7 @@ const _sfc_main$y = {
24679
24696
  clearable: props.clearable && _ctx.area
24680
24697
  }, null, 8, ["class", "formatter", "parser", "minlength", "maxlength", "disabled", "placeholder", "modelValue", "type", "clearable"])) : (openBlock(), createBlock(_component_el_input, mergeProps({
24681
24698
  key: 1,
24699
+ onKeydown: keydown,
24682
24700
  onClick: _cache[2] || (_cache[2] = ($event) => throuInput($event)),
24683
24701
  class: { padding: props.prefix },
24684
24702
  minlength: __props.minLength,