@pdg/react-form 1.2.17 → 1.2.18

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.
package/dist/index.esm.js CHANGED
@@ -4743,24 +4743,28 @@ var PFormMobile = function PFormMobile(t0) {
4743
4743
  t4 = $[11];
4744
4744
  }
4745
4745
  return t4;
4746
- };var _excluded$p = ["onChange"];
4746
+ };var _excluded$p = ["ref", "onChange"];
4747
4747
  var NumberFormatCustom = function NumberFormatCustom(t0) {
4748
- var $ = c(8);
4748
+ var $ = c(10);
4749
4749
  var onChange;
4750
4750
  var props;
4751
+ var ref;
4751
4752
  if ($[0] !== t0) {
4752
4753
  var _t = t0;
4754
+ ref = _t.ref;
4753
4755
  onChange = _t.onChange;
4754
4756
  props = _objectWithoutProperties(_t, _excluded$p);
4755
4757
  $[0] = t0;
4756
4758
  $[1] = onChange;
4757
4759
  $[2] = props;
4760
+ $[3] = ref;
4758
4761
  } else {
4759
4762
  onChange = $[1];
4760
4763
  props = $[2];
4764
+ ref = $[3];
4761
4765
  }
4762
4766
  var t1;
4763
- if ($[3] !== onChange) {
4767
+ if ($[4] !== onChange) {
4764
4768
  t1 = function t1(values) {
4765
4769
  if (onChange) {
4766
4770
  onChange({
@@ -4770,21 +4774,23 @@ var NumberFormatCustom = function NumberFormatCustom(t0) {
4770
4774
  });
4771
4775
  }
4772
4776
  };
4773
- $[3] = onChange;
4774
- $[4] = t1;
4777
+ $[4] = onChange;
4778
+ $[5] = t1;
4775
4779
  } else {
4776
- t1 = $[4];
4780
+ t1 = $[5];
4777
4781
  }
4778
4782
  var t2;
4779
- if ($[5] !== props || $[6] !== t1) {
4783
+ if ($[6] !== props || $[7] !== ref || $[8] !== t1) {
4780
4784
  t2 = /*#__PURE__*/React.createElement(NumericFormat, _extends({}, props, {
4785
+ getInputRef: ref,
4781
4786
  onValueChange: t1
4782
4787
  }));
4783
- $[5] = props;
4784
- $[6] = t1;
4785
- $[7] = t2;
4788
+ $[6] = props;
4789
+ $[7] = ref;
4790
+ $[8] = t1;
4791
+ $[9] = t2;
4786
4792
  } else {
4787
- t2 = $[7];
4793
+ t2 = $[9];
4788
4794
  }
4789
4795
  return t2;
4790
4796
  };var _excluded$o = ["ref", "className", "allowNegative", "thousandSeparator", "allowDecimal", "decimalScale", "prefix", "suffix", "readOnly", "tabIndex", "labelShrink", "clear", "slotProps", "value", "onChange", "onValue", "onValidate"];
package/dist/index.js CHANGED
@@ -4743,24 +4743,28 @@ var PFormMobile = function PFormMobile(t0) {
4743
4743
  t4 = $[11];
4744
4744
  }
4745
4745
  return t4;
4746
- };var _excluded$p = ["onChange"];
4746
+ };var _excluded$p = ["ref", "onChange"];
4747
4747
  var NumberFormatCustom = function NumberFormatCustom(t0) {
4748
- var $ = compilerRuntime.c(8);
4748
+ var $ = compilerRuntime.c(10);
4749
4749
  var onChange;
4750
4750
  var props;
4751
+ var ref;
4751
4752
  if ($[0] !== t0) {
4752
4753
  var _t = t0;
4754
+ ref = _t.ref;
4753
4755
  onChange = _t.onChange;
4754
4756
  props = _objectWithoutProperties(_t, _excluded$p);
4755
4757
  $[0] = t0;
4756
4758
  $[1] = onChange;
4757
4759
  $[2] = props;
4760
+ $[3] = ref;
4758
4761
  } else {
4759
4762
  onChange = $[1];
4760
4763
  props = $[2];
4764
+ ref = $[3];
4761
4765
  }
4762
4766
  var t1;
4763
- if ($[3] !== onChange) {
4767
+ if ($[4] !== onChange) {
4764
4768
  t1 = function t1(values) {
4765
4769
  if (onChange) {
4766
4770
  onChange({
@@ -4770,21 +4774,23 @@ var NumberFormatCustom = function NumberFormatCustom(t0) {
4770
4774
  });
4771
4775
  }
4772
4776
  };
4773
- $[3] = onChange;
4774
- $[4] = t1;
4777
+ $[4] = onChange;
4778
+ $[5] = t1;
4775
4779
  } else {
4776
- t1 = $[4];
4780
+ t1 = $[5];
4777
4781
  }
4778
4782
  var t2;
4779
- if ($[5] !== props || $[6] !== t1) {
4783
+ if ($[6] !== props || $[7] !== ref || $[8] !== t1) {
4780
4784
  t2 = /*#__PURE__*/React.createElement(reactNumberFormat.NumericFormat, _extends({}, props, {
4785
+ getInputRef: ref,
4781
4786
  onValueChange: t1
4782
4787
  }));
4783
- $[5] = props;
4784
- $[6] = t1;
4785
- $[7] = t2;
4788
+ $[6] = props;
4789
+ $[7] = ref;
4790
+ $[8] = t1;
4791
+ $[9] = t2;
4786
4792
  } else {
4787
- t2 = $[7];
4793
+ t2 = $[9];
4788
4794
  }
4789
4795
  return t2;
4790
4796
  };var _excluded$o = ["ref", "className", "allowNegative", "thousandSeparator", "allowDecimal", "decimalScale", "prefix", "suffix", "readOnly", "tabIndex", "labelShrink", "clear", "slotProps", "value", "onChange", "onValue", "onValidate"];
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@pdg/react-form",
3
3
  "title": "Typescript React Form Module",
4
4
  "description": "Typescript React Form Module",
5
- "version": "1.2.17",
5
+ "version": "1.2.18",
6
6
  "type": "module",
7
7
  "main": "./dist/index.js",
8
8
  "module": "./dist/index.esm.js",