@dmsi/wedgekit-react 0.0.537 → 0.0.539

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.
Files changed (57) hide show
  1. package/dist/{chunk-UV53RKAQ.js → chunk-BKBJOF4J.js} +1 -1
  2. package/dist/{chunk-U6W5E3XW.js → chunk-I5BV7UPG.js} +1 -1
  3. package/dist/{chunk-PMNNRB6S.js → chunk-NWTVBVBC.js} +44 -2
  4. package/dist/{chunk-UFGH5V7K.js → chunk-RB7F6QWD.js} +4 -4
  5. package/dist/{chunk-YHFOOBE2.js → chunk-Y3EFHKAG.js} +1 -1
  6. package/dist/components/CalendarRange.cjs +44 -2
  7. package/dist/components/CalendarRange.js +6 -6
  8. package/dist/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.cjs +44 -2
  9. package/dist/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.js +6 -6
  10. package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.cjs +44 -2
  11. package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.js +6 -6
  12. package/dist/components/DataGrid/PinnedColumns.cjs +44 -2
  13. package/dist/components/DataGrid/PinnedColumns.js +6 -6
  14. package/dist/components/DataGrid/TableBody/LoadingCell.cjs +44 -2
  15. package/dist/components/DataGrid/TableBody/LoadingCell.js +6 -6
  16. package/dist/components/DataGrid/TableBody/TableBodyRow.cjs +44 -2
  17. package/dist/components/DataGrid/TableBody/TableBodyRow.js +6 -6
  18. package/dist/components/DataGrid/TableBody/index.cjs +44 -2
  19. package/dist/components/DataGrid/TableBody/index.js +6 -6
  20. package/dist/components/DataGrid/index.cjs +44 -2
  21. package/dist/components/DataGrid/index.js +6 -6
  22. package/dist/components/DataGrid/utils.cjs +44 -2
  23. package/dist/components/DataGrid/utils.js +6 -6
  24. package/dist/components/DataGridCell.cjs +44 -2
  25. package/dist/components/DataGridCell.js +3 -3
  26. package/dist/components/DateInput.cjs +44 -2
  27. package/dist/components/DateInput.js +6 -6
  28. package/dist/components/DateRangeInput.cjs +44 -2
  29. package/dist/components/DateRangeInput.js +6 -6
  30. package/dist/components/FilterGroup.cjs +44 -2
  31. package/dist/components/FilterGroup.js +2 -2
  32. package/dist/components/Input.cjs +44 -2
  33. package/dist/components/Input.js +1 -1
  34. package/dist/components/MobileDataGrid/ColumnList.js +1 -1
  35. package/dist/components/MobileDataGrid/ColumnSelector/index.cjs +44 -2
  36. package/dist/components/MobileDataGrid/ColumnSelector/index.js +6 -6
  37. package/dist/components/MobileDataGrid/MobileDataGridCard/index.js +1 -1
  38. package/dist/components/MobileDataGrid/MobileDataGridHeader.cjs +44 -2
  39. package/dist/components/MobileDataGrid/MobileDataGridHeader.js +6 -6
  40. package/dist/components/MobileDataGrid/RowDetailModalProvider/ModalContent.js +1 -1
  41. package/dist/components/MobileDataGrid/RowDetailModalProvider/index.js +1 -1
  42. package/dist/components/MobileDataGrid/index.cjs +44 -2
  43. package/dist/components/MobileDataGrid/index.js +6 -6
  44. package/dist/components/Password.cjs +44 -2
  45. package/dist/components/Password.js +1 -1
  46. package/dist/components/Search.cjs +44 -2
  47. package/dist/components/Search.js +2 -2
  48. package/dist/components/Select.cjs +44 -2
  49. package/dist/components/Select.js +2 -2
  50. package/dist/components/Stepper.cjs +44 -2
  51. package/dist/components/Stepper.js +1 -1
  52. package/dist/components/Time.cjs +44 -2
  53. package/dist/components/Time.js +1 -1
  54. package/dist/components/index.cjs +44 -2
  55. package/dist/components/index.js +6 -6
  56. package/package.json +1 -1
  57. package/src/components/Input.tsx +62 -4
@@ -4,12 +4,12 @@ import {
4
4
  DataGridCell,
5
5
  DragAlongCell,
6
6
  DraggableCellHeader
7
- } from "../chunk-YHFOOBE2.js";
7
+ } from "../chunk-Y3EFHKAG.js";
8
8
  import "../chunk-HGLOO52X.js";
9
9
  import "../chunk-MPYAHORM.js";
10
10
  import "../chunk-EZ4KZYKG.js";
11
- import "../chunk-UV53RKAQ.js";
12
- import "../chunk-PMNNRB6S.js";
11
+ import "../chunk-BKBJOF4J.js";
12
+ import "../chunk-NWTVBVBC.js";
13
13
  import "../chunk-HXGJVYGQ.js";
14
14
  import "../chunk-WVUIIBRR.js";
15
15
  import "../chunk-PS6UJZVH.js";
@@ -611,7 +611,7 @@ var Input = (_a) => {
611
611
  const formatted = formatDecimalValue(stringValue, decimals != null ? decimals : 2);
612
612
  setInternalValue(formatted);
613
613
  setDisplayValue(formatCurrencyDisplay(formatted));
614
- }, [variant, propValue, decimals]);
614
+ }, []);
615
615
  const getInputProps = () => {
616
616
  var _a2;
617
617
  const baseProps = __spreadProps(__spreadValues(__spreadProps(__spreadValues({}, props), {
@@ -696,6 +696,7 @@ var Input = (_a) => {
696
696
  };
697
697
  const handleChange = (e) => {
698
698
  const rawValue = e.target.value;
699
+ const maxNumber = props.max != null ? Number(String(props.max).replace(/,/g, "")) : void 0;
699
700
  if (variant === "currency") {
700
701
  const raw = rawValue.replace(/,/g, "");
701
702
  if (raw === "") {
@@ -714,9 +715,25 @@ var Input = (_a) => {
714
715
  const parts = raw.split(".");
715
716
  const currentDecimals = decimals != null ? decimals : 2;
716
717
  if (parts.length === 2 && parts[1].length > currentDecimals) return;
718
+ const asNumber = Number(raw);
719
+ if (!isNaN(asNumber) && maxNumber != null && asNumber > maxNumber) {
720
+ const clamped = maxNumber;
721
+ const formattedClamped = formatDecimalValue(
722
+ clamped.toString(),
723
+ currentDecimals
724
+ );
725
+ setInternalValue(formattedClamped);
726
+ setDisplayValue(formatCurrencyDisplay(formattedClamped));
727
+ if (onChange) {
728
+ const syntheticEvent = __spreadProps(__spreadValues({}, e), {
729
+ target: __spreadProps(__spreadValues({}, e.target), { value: clamped.toString() })
730
+ });
731
+ onChange(syntheticEvent);
732
+ }
733
+ return;
734
+ }
717
735
  setInternalValue(raw);
718
736
  setDisplayValue(formatCurrencyDisplay(raw));
719
- const asNumber = Number(raw);
720
737
  if (!isNaN(asNumber) && onChange) {
721
738
  const syntheticEvent = __spreadProps(__spreadValues({}, e), {
722
739
  target: __spreadProps(__spreadValues({}, e.target), { value: asNumber.toString() })
@@ -725,6 +742,31 @@ var Input = (_a) => {
725
742
  }
726
743
  return;
727
744
  }
745
+ if ((variant === "percentage" || variant === "uom") && e.target.type === "number") {
746
+ const numeric = Number(rawValue);
747
+ if (!isNaN(numeric) && maxNumber != null && numeric > maxNumber) {
748
+ const clamped = maxNumber;
749
+ const formattedClamped = formatDecimalValue(
750
+ clamped.toString(),
751
+ decimals != null ? decimals : 0
752
+ );
753
+ setInternalValue(formattedClamped);
754
+ setDisplayValue(formattedClamped);
755
+ if (typeof onChange === "function") {
756
+ const syntheticEvent = __spreadProps(__spreadValues({}, e), {
757
+ target: __spreadProps(__spreadValues({}, e.target), { value: clamped.toString() })
758
+ });
759
+ onChange(syntheticEvent);
760
+ }
761
+ return;
762
+ }
763
+ setInternalValue(rawValue);
764
+ setDisplayValue(rawValue);
765
+ if (typeof onChange === "function") {
766
+ onChange(e);
767
+ }
768
+ return;
769
+ }
728
770
  setInternalValue(rawValue);
729
771
  setDisplayValue(rawValue);
730
772
  if (typeof onChange === "function") {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  DateInput
3
- } from "../chunk-UFGH5V7K.js";
3
+ } from "../chunk-RB7F6QWD.js";
4
4
  import "../chunk-M7INAUAJ.js";
5
5
  import "../chunk-ZIPJMN2E.js";
6
6
  import "../chunk-FJFZBIRG.js";
@@ -14,8 +14,8 @@ import "../chunk-3X3Y4TMS.js";
14
14
  import "../chunk-4DXOA7NZ.js";
15
15
  import "../chunk-5BRIDIUA.js";
16
16
  import "../chunk-5IFPG6TS.js";
17
- import "../chunk-AJ5M6MVX.js";
18
17
  import "../chunk-M4FM3B3R.js";
18
+ import "../chunk-AJ5M6MVX.js";
19
19
  import "../chunk-AT4AWD6B.js";
20
20
  import "../chunk-EWGHVZL5.js";
21
21
  import "../chunk-KJ5OQPPV.js";
@@ -23,7 +23,7 @@ import "../chunk-L3BXRDLP.js";
23
23
  import "../chunk-34VEVX5H.js";
24
24
  import "../chunk-LB7UT6F3.js";
25
25
  import "../chunk-MDB26F6T.js";
26
- import "../chunk-U6W5E3XW.js";
26
+ import "../chunk-I5BV7UPG.js";
27
27
  import "../chunk-JADOJNBI.js";
28
28
  import "../chunk-4RJKB7LC.js";
29
29
  import "../chunk-WVVEOCEH.js";
@@ -33,12 +33,12 @@ import "../chunk-AKJUBFJK.js";
33
33
  import "../chunk-Z2QAJY5I.js";
34
34
  import "../chunk-BWPNXY7T.js";
35
35
  import "../chunk-QVWYTQKL.js";
36
- import "../chunk-YHFOOBE2.js";
36
+ import "../chunk-Y3EFHKAG.js";
37
37
  import "../chunk-HGLOO52X.js";
38
38
  import "../chunk-MPYAHORM.js";
39
39
  import "../chunk-EZ4KZYKG.js";
40
- import "../chunk-UV53RKAQ.js";
41
- import "../chunk-PMNNRB6S.js";
40
+ import "../chunk-BKBJOF4J.js";
41
+ import "../chunk-NWTVBVBC.js";
42
42
  import "../chunk-HXGJVYGQ.js";
43
43
  import "../chunk-WVUIIBRR.js";
44
44
  import "../chunk-75USUR3I.js";
@@ -611,7 +611,7 @@ var Input = (_a) => {
611
611
  const formatted = formatDecimalValue(stringValue, decimals != null ? decimals : 2);
612
612
  setInternalValue(formatted);
613
613
  setDisplayValue(formatCurrencyDisplay(formatted));
614
- }, [variant, propValue, decimals]);
614
+ }, []);
615
615
  const getInputProps = () => {
616
616
  var _a2;
617
617
  const baseProps = __spreadProps(__spreadValues(__spreadProps(__spreadValues({}, props), {
@@ -696,6 +696,7 @@ var Input = (_a) => {
696
696
  };
697
697
  const handleChange = (e) => {
698
698
  const rawValue = e.target.value;
699
+ const maxNumber = props.max != null ? Number(String(props.max).replace(/,/g, "")) : void 0;
699
700
  if (variant === "currency") {
700
701
  const raw = rawValue.replace(/,/g, "");
701
702
  if (raw === "") {
@@ -714,9 +715,25 @@ var Input = (_a) => {
714
715
  const parts = raw.split(".");
715
716
  const currentDecimals = decimals != null ? decimals : 2;
716
717
  if (parts.length === 2 && parts[1].length > currentDecimals) return;
718
+ const asNumber = Number(raw);
719
+ if (!isNaN(asNumber) && maxNumber != null && asNumber > maxNumber) {
720
+ const clamped = maxNumber;
721
+ const formattedClamped = formatDecimalValue(
722
+ clamped.toString(),
723
+ currentDecimals
724
+ );
725
+ setInternalValue(formattedClamped);
726
+ setDisplayValue(formatCurrencyDisplay(formattedClamped));
727
+ if (onChange) {
728
+ const syntheticEvent = __spreadProps(__spreadValues({}, e), {
729
+ target: __spreadProps(__spreadValues({}, e.target), { value: clamped.toString() })
730
+ });
731
+ onChange(syntheticEvent);
732
+ }
733
+ return;
734
+ }
717
735
  setInternalValue(raw);
718
736
  setDisplayValue(formatCurrencyDisplay(raw));
719
- const asNumber = Number(raw);
720
737
  if (!isNaN(asNumber) && onChange) {
721
738
  const syntheticEvent = __spreadProps(__spreadValues({}, e), {
722
739
  target: __spreadProps(__spreadValues({}, e.target), { value: asNumber.toString() })
@@ -725,6 +742,31 @@ var Input = (_a) => {
725
742
  }
726
743
  return;
727
744
  }
745
+ if ((variant === "percentage" || variant === "uom") && e.target.type === "number") {
746
+ const numeric = Number(rawValue);
747
+ if (!isNaN(numeric) && maxNumber != null && numeric > maxNumber) {
748
+ const clamped = maxNumber;
749
+ const formattedClamped = formatDecimalValue(
750
+ clamped.toString(),
751
+ decimals != null ? decimals : 0
752
+ );
753
+ setInternalValue(formattedClamped);
754
+ setDisplayValue(formattedClamped);
755
+ if (typeof onChange === "function") {
756
+ const syntheticEvent = __spreadProps(__spreadValues({}, e), {
757
+ target: __spreadProps(__spreadValues({}, e.target), { value: clamped.toString() })
758
+ });
759
+ onChange(syntheticEvent);
760
+ }
761
+ return;
762
+ }
763
+ setInternalValue(rawValue);
764
+ setDisplayValue(rawValue);
765
+ if (typeof onChange === "function") {
766
+ onChange(e);
767
+ }
768
+ return;
769
+ }
728
770
  setInternalValue(rawValue);
729
771
  setDisplayValue(rawValue);
730
772
  if (typeof onChange === "function") {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  CalendarRange
3
- } from "../chunk-UFGH5V7K.js";
3
+ } from "../chunk-RB7F6QWD.js";
4
4
  import "../chunk-M7INAUAJ.js";
5
5
  import "../chunk-ZIPJMN2E.js";
6
6
  import "../chunk-FJFZBIRG.js";
@@ -14,8 +14,8 @@ import "../chunk-3X3Y4TMS.js";
14
14
  import "../chunk-4DXOA7NZ.js";
15
15
  import "../chunk-5BRIDIUA.js";
16
16
  import "../chunk-5IFPG6TS.js";
17
- import "../chunk-AJ5M6MVX.js";
18
17
  import "../chunk-M4FM3B3R.js";
18
+ import "../chunk-AJ5M6MVX.js";
19
19
  import "../chunk-AT4AWD6B.js";
20
20
  import "../chunk-EWGHVZL5.js";
21
21
  import "../chunk-KJ5OQPPV.js";
@@ -23,7 +23,7 @@ import "../chunk-L3BXRDLP.js";
23
23
  import "../chunk-34VEVX5H.js";
24
24
  import "../chunk-LB7UT6F3.js";
25
25
  import "../chunk-MDB26F6T.js";
26
- import "../chunk-U6W5E3XW.js";
26
+ import "../chunk-I5BV7UPG.js";
27
27
  import "../chunk-JADOJNBI.js";
28
28
  import "../chunk-4RJKB7LC.js";
29
29
  import "../chunk-WVVEOCEH.js";
@@ -33,14 +33,14 @@ import "../chunk-AKJUBFJK.js";
33
33
  import "../chunk-Z2QAJY5I.js";
34
34
  import "../chunk-BWPNXY7T.js";
35
35
  import "../chunk-QVWYTQKL.js";
36
- import "../chunk-YHFOOBE2.js";
36
+ import "../chunk-Y3EFHKAG.js";
37
37
  import "../chunk-HGLOO52X.js";
38
38
  import "../chunk-MPYAHORM.js";
39
39
  import "../chunk-EZ4KZYKG.js";
40
- import "../chunk-UV53RKAQ.js";
40
+ import "../chunk-BKBJOF4J.js";
41
41
  import {
42
42
  InputBase
43
- } from "../chunk-PMNNRB6S.js";
43
+ } from "../chunk-NWTVBVBC.js";
44
44
  import "../chunk-HXGJVYGQ.js";
45
45
  import "../chunk-WVUIIBRR.js";
46
46
  import "../chunk-75USUR3I.js";
@@ -1087,7 +1087,7 @@ var Input = (_a) => {
1087
1087
  const formatted = formatDecimalValue(stringValue, decimals != null ? decimals : 2);
1088
1088
  setInternalValue(formatted);
1089
1089
  setDisplayValue(formatCurrencyDisplay(formatted));
1090
- }, [variant, propValue, decimals]);
1090
+ }, []);
1091
1091
  const getInputProps = () => {
1092
1092
  var _a2;
1093
1093
  const baseProps = __spreadProps(__spreadValues(__spreadProps(__spreadValues({}, props), {
@@ -1172,6 +1172,7 @@ var Input = (_a) => {
1172
1172
  };
1173
1173
  const handleChange = (e) => {
1174
1174
  const rawValue = e.target.value;
1175
+ const maxNumber = props.max != null ? Number(String(props.max).replace(/,/g, "")) : void 0;
1175
1176
  if (variant === "currency") {
1176
1177
  const raw = rawValue.replace(/,/g, "");
1177
1178
  if (raw === "") {
@@ -1190,9 +1191,25 @@ var Input = (_a) => {
1190
1191
  const parts = raw.split(".");
1191
1192
  const currentDecimals = decimals != null ? decimals : 2;
1192
1193
  if (parts.length === 2 && parts[1].length > currentDecimals) return;
1194
+ const asNumber = Number(raw);
1195
+ if (!isNaN(asNumber) && maxNumber != null && asNumber > maxNumber) {
1196
+ const clamped = maxNumber;
1197
+ const formattedClamped = formatDecimalValue(
1198
+ clamped.toString(),
1199
+ currentDecimals
1200
+ );
1201
+ setInternalValue(formattedClamped);
1202
+ setDisplayValue(formatCurrencyDisplay(formattedClamped));
1203
+ if (onChange) {
1204
+ const syntheticEvent = __spreadProps(__spreadValues({}, e), {
1205
+ target: __spreadProps(__spreadValues({}, e.target), { value: clamped.toString() })
1206
+ });
1207
+ onChange(syntheticEvent);
1208
+ }
1209
+ return;
1210
+ }
1193
1211
  setInternalValue(raw);
1194
1212
  setDisplayValue(formatCurrencyDisplay(raw));
1195
- const asNumber = Number(raw);
1196
1213
  if (!isNaN(asNumber) && onChange) {
1197
1214
  const syntheticEvent = __spreadProps(__spreadValues({}, e), {
1198
1215
  target: __spreadProps(__spreadValues({}, e.target), { value: asNumber.toString() })
@@ -1201,6 +1218,31 @@ var Input = (_a) => {
1201
1218
  }
1202
1219
  return;
1203
1220
  }
1221
+ if ((variant === "percentage" || variant === "uom") && e.target.type === "number") {
1222
+ const numeric = Number(rawValue);
1223
+ if (!isNaN(numeric) && maxNumber != null && numeric > maxNumber) {
1224
+ const clamped = maxNumber;
1225
+ const formattedClamped = formatDecimalValue(
1226
+ clamped.toString(),
1227
+ decimals != null ? decimals : 0
1228
+ );
1229
+ setInternalValue(formattedClamped);
1230
+ setDisplayValue(formattedClamped);
1231
+ if (typeof onChange === "function") {
1232
+ const syntheticEvent = __spreadProps(__spreadValues({}, e), {
1233
+ target: __spreadProps(__spreadValues({}, e.target), { value: clamped.toString() })
1234
+ });
1235
+ onChange(syntheticEvent);
1236
+ }
1237
+ return;
1238
+ }
1239
+ setInternalValue(rawValue);
1240
+ setDisplayValue(rawValue);
1241
+ if (typeof onChange === "function") {
1242
+ onChange(e);
1243
+ }
1244
+ return;
1245
+ }
1204
1246
  setInternalValue(rawValue);
1205
1247
  setDisplayValue(rawValue);
1206
1248
  if (typeof onChange === "function") {
@@ -4,8 +4,8 @@ import {
4
4
  } from "../chunk-FWCVZWE6.js";
5
5
  import {
6
6
  Search
7
- } from "../chunk-UV53RKAQ.js";
8
- import "../chunk-PMNNRB6S.js";
7
+ } from "../chunk-BKBJOF4J.js";
8
+ import "../chunk-NWTVBVBC.js";
9
9
  import {
10
10
  Label
11
11
  } from "../chunk-HXGJVYGQ.js";
@@ -613,7 +613,7 @@ var Input = (_a) => {
613
613
  const formatted = formatDecimalValue(stringValue, decimals != null ? decimals : 2);
614
614
  setInternalValue(formatted);
615
615
  setDisplayValue(formatCurrencyDisplay(formatted));
616
- }, [variant, propValue, decimals]);
616
+ }, []);
617
617
  const getInputProps = () => {
618
618
  var _a2;
619
619
  const baseProps = __spreadProps(__spreadValues(__spreadProps(__spreadValues({}, props), {
@@ -698,6 +698,7 @@ var Input = (_a) => {
698
698
  };
699
699
  const handleChange = (e) => {
700
700
  const rawValue = e.target.value;
701
+ const maxNumber = props.max != null ? Number(String(props.max).replace(/,/g, "")) : void 0;
701
702
  if (variant === "currency") {
702
703
  const raw = rawValue.replace(/,/g, "");
703
704
  if (raw === "") {
@@ -716,9 +717,25 @@ var Input = (_a) => {
716
717
  const parts = raw.split(".");
717
718
  const currentDecimals = decimals != null ? decimals : 2;
718
719
  if (parts.length === 2 && parts[1].length > currentDecimals) return;
720
+ const asNumber = Number(raw);
721
+ if (!isNaN(asNumber) && maxNumber != null && asNumber > maxNumber) {
722
+ const clamped = maxNumber;
723
+ const formattedClamped = formatDecimalValue(
724
+ clamped.toString(),
725
+ currentDecimals
726
+ );
727
+ setInternalValue(formattedClamped);
728
+ setDisplayValue(formatCurrencyDisplay(formattedClamped));
729
+ if (onChange) {
730
+ const syntheticEvent = __spreadProps(__spreadValues({}, e), {
731
+ target: __spreadProps(__spreadValues({}, e.target), { value: clamped.toString() })
732
+ });
733
+ onChange(syntheticEvent);
734
+ }
735
+ return;
736
+ }
719
737
  setInternalValue(raw);
720
738
  setDisplayValue(formatCurrencyDisplay(raw));
721
- const asNumber = Number(raw);
722
739
  if (!isNaN(asNumber) && onChange) {
723
740
  const syntheticEvent = __spreadProps(__spreadValues({}, e), {
724
741
  target: __spreadProps(__spreadValues({}, e.target), { value: asNumber.toString() })
@@ -727,6 +744,31 @@ var Input = (_a) => {
727
744
  }
728
745
  return;
729
746
  }
747
+ if ((variant === "percentage" || variant === "uom") && e.target.type === "number") {
748
+ const numeric = Number(rawValue);
749
+ if (!isNaN(numeric) && maxNumber != null && numeric > maxNumber) {
750
+ const clamped = maxNumber;
751
+ const formattedClamped = formatDecimalValue(
752
+ clamped.toString(),
753
+ decimals != null ? decimals : 0
754
+ );
755
+ setInternalValue(formattedClamped);
756
+ setDisplayValue(formattedClamped);
757
+ if (typeof onChange === "function") {
758
+ const syntheticEvent = __spreadProps(__spreadValues({}, e), {
759
+ target: __spreadProps(__spreadValues({}, e.target), { value: clamped.toString() })
760
+ });
761
+ onChange(syntheticEvent);
762
+ }
763
+ return;
764
+ }
765
+ setInternalValue(rawValue);
766
+ setDisplayValue(rawValue);
767
+ if (typeof onChange === "function") {
768
+ onChange(e);
769
+ }
770
+ return;
771
+ }
730
772
  setInternalValue(rawValue);
731
773
  setDisplayValue(rawValue);
732
774
  if (typeof onChange === "function") {
@@ -6,7 +6,7 @@ import {
6
6
  InputBase,
7
7
  Percentage,
8
8
  UOM
9
- } from "../chunk-PMNNRB6S.js";
9
+ } from "../chunk-NWTVBVBC.js";
10
10
  import "../chunk-HXGJVYGQ.js";
11
11
  import "../chunk-5UH6QUFB.js";
12
12
  import "../chunk-WMPWWFUJ.js";
@@ -3,8 +3,8 @@ import {
3
3
  } from "../../chunk-4DXOA7NZ.js";
4
4
  import "../../chunk-5BRIDIUA.js";
5
5
  import "../../chunk-5IFPG6TS.js";
6
- import "../../chunk-AJ5M6MVX.js";
7
6
  import "../../chunk-M4FM3B3R.js";
7
+ import "../../chunk-AJ5M6MVX.js";
8
8
  import "../../chunk-M7WHWZ2J.js";
9
9
  import "../../chunk-VXWSAIB5.js";
10
10
  import "../../chunk-DQRQZE6O.js";
@@ -1866,7 +1866,7 @@ var Input = (_a) => {
1866
1866
  const formatted = formatDecimalValue(stringValue, decimals != null ? decimals : 2);
1867
1867
  setInternalValue(formatted);
1868
1868
  setDisplayValue(formatCurrencyDisplay(formatted));
1869
- }, [variant, propValue, decimals]);
1869
+ }, []);
1870
1870
  const getInputProps = () => {
1871
1871
  var _a2;
1872
1872
  const baseProps = __spreadProps(__spreadValues(__spreadProps(__spreadValues({}, props), {
@@ -1951,6 +1951,7 @@ var Input = (_a) => {
1951
1951
  };
1952
1952
  const handleChange = (e) => {
1953
1953
  const rawValue = e.target.value;
1954
+ const maxNumber = props.max != null ? Number(String(props.max).replace(/,/g, "")) : void 0;
1954
1955
  if (variant === "currency") {
1955
1956
  const raw = rawValue.replace(/,/g, "");
1956
1957
  if (raw === "") {
@@ -1969,9 +1970,25 @@ var Input = (_a) => {
1969
1970
  const parts = raw.split(".");
1970
1971
  const currentDecimals = decimals != null ? decimals : 2;
1971
1972
  if (parts.length === 2 && parts[1].length > currentDecimals) return;
1973
+ const asNumber = Number(raw);
1974
+ if (!isNaN(asNumber) && maxNumber != null && asNumber > maxNumber) {
1975
+ const clamped = maxNumber;
1976
+ const formattedClamped = formatDecimalValue(
1977
+ clamped.toString(),
1978
+ currentDecimals
1979
+ );
1980
+ setInternalValue(formattedClamped);
1981
+ setDisplayValue(formatCurrencyDisplay(formattedClamped));
1982
+ if (onChange) {
1983
+ const syntheticEvent = __spreadProps(__spreadValues({}, e), {
1984
+ target: __spreadProps(__spreadValues({}, e.target), { value: clamped.toString() })
1985
+ });
1986
+ onChange(syntheticEvent);
1987
+ }
1988
+ return;
1989
+ }
1972
1990
  setInternalValue(raw);
1973
1991
  setDisplayValue(formatCurrencyDisplay(raw));
1974
- const asNumber = Number(raw);
1975
1992
  if (!isNaN(asNumber) && onChange) {
1976
1993
  const syntheticEvent = __spreadProps(__spreadValues({}, e), {
1977
1994
  target: __spreadProps(__spreadValues({}, e.target), { value: asNumber.toString() })
@@ -1980,6 +1997,31 @@ var Input = (_a) => {
1980
1997
  }
1981
1998
  return;
1982
1999
  }
2000
+ if ((variant === "percentage" || variant === "uom") && e.target.type === "number") {
2001
+ const numeric = Number(rawValue);
2002
+ if (!isNaN(numeric) && maxNumber != null && numeric > maxNumber) {
2003
+ const clamped = maxNumber;
2004
+ const formattedClamped = formatDecimalValue(
2005
+ clamped.toString(),
2006
+ decimals != null ? decimals : 0
2007
+ );
2008
+ setInternalValue(formattedClamped);
2009
+ setDisplayValue(formattedClamped);
2010
+ if (typeof onChange === "function") {
2011
+ const syntheticEvent = __spreadProps(__spreadValues({}, e), {
2012
+ target: __spreadProps(__spreadValues({}, e.target), { value: clamped.toString() })
2013
+ });
2014
+ onChange(syntheticEvent);
2015
+ }
2016
+ return;
2017
+ }
2018
+ setInternalValue(rawValue);
2019
+ setDisplayValue(rawValue);
2020
+ if (typeof onChange === "function") {
2021
+ onChange(e);
2022
+ }
2023
+ return;
2024
+ }
1983
2025
  setInternalValue(rawValue);
1984
2026
  setDisplayValue(rawValue);
1985
2027
  if (typeof onChange === "function") {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  ColumnSelector
3
- } from "../../../chunk-UFGH5V7K.js";
3
+ } from "../../../chunk-RB7F6QWD.js";
4
4
  import "../../../chunk-M7INAUAJ.js";
5
5
  import "../../../chunk-ZIPJMN2E.js";
6
6
  import "../../../chunk-FJFZBIRG.js";
@@ -14,8 +14,8 @@ import "../../../chunk-3X3Y4TMS.js";
14
14
  import "../../../chunk-4DXOA7NZ.js";
15
15
  import "../../../chunk-5BRIDIUA.js";
16
16
  import "../../../chunk-5IFPG6TS.js";
17
- import "../../../chunk-AJ5M6MVX.js";
18
17
  import "../../../chunk-M4FM3B3R.js";
18
+ import "../../../chunk-AJ5M6MVX.js";
19
19
  import "../../../chunk-AT4AWD6B.js";
20
20
  import "../../../chunk-EWGHVZL5.js";
21
21
  import "../../../chunk-KJ5OQPPV.js";
@@ -23,7 +23,7 @@ import "../../../chunk-L3BXRDLP.js";
23
23
  import "../../../chunk-34VEVX5H.js";
24
24
  import "../../../chunk-LB7UT6F3.js";
25
25
  import "../../../chunk-MDB26F6T.js";
26
- import "../../../chunk-U6W5E3XW.js";
26
+ import "../../../chunk-I5BV7UPG.js";
27
27
  import "../../../chunk-JADOJNBI.js";
28
28
  import "../../../chunk-4RJKB7LC.js";
29
29
  import "../../../chunk-WVVEOCEH.js";
@@ -33,12 +33,12 @@ import "../../../chunk-AKJUBFJK.js";
33
33
  import "../../../chunk-Z2QAJY5I.js";
34
34
  import "../../../chunk-BWPNXY7T.js";
35
35
  import "../../../chunk-QVWYTQKL.js";
36
- import "../../../chunk-YHFOOBE2.js";
36
+ import "../../../chunk-Y3EFHKAG.js";
37
37
  import "../../../chunk-HGLOO52X.js";
38
38
  import "../../../chunk-MPYAHORM.js";
39
39
  import "../../../chunk-EZ4KZYKG.js";
40
- import "../../../chunk-UV53RKAQ.js";
41
- import "../../../chunk-PMNNRB6S.js";
40
+ import "../../../chunk-BKBJOF4J.js";
41
+ import "../../../chunk-NWTVBVBC.js";
42
42
  import "../../../chunk-HXGJVYGQ.js";
43
43
  import "../../../chunk-WVUIIBRR.js";
44
44
  import "../../../chunk-75USUR3I.js";
@@ -2,8 +2,8 @@ import {
2
2
  MobileDataGridCard
3
3
  } from "../../../chunk-5BRIDIUA.js";
4
4
  import "../../../chunk-5IFPG6TS.js";
5
- import "../../../chunk-AJ5M6MVX.js";
6
5
  import "../../../chunk-M4FM3B3R.js";
6
+ import "../../../chunk-AJ5M6MVX.js";
7
7
  import "../../../chunk-M7WHWZ2J.js";
8
8
  import "../../../chunk-VXWSAIB5.js";
9
9
  import "../../../chunk-DQRQZE6O.js";
@@ -2294,7 +2294,7 @@ var Input = (_a) => {
2294
2294
  const formatted = formatDecimalValue(stringValue, decimals != null ? decimals : 2);
2295
2295
  setInternalValue(formatted);
2296
2296
  setDisplayValue(formatCurrencyDisplay(formatted));
2297
- }, [variant, propValue, decimals]);
2297
+ }, []);
2298
2298
  const getInputProps = () => {
2299
2299
  var _a2;
2300
2300
  const baseProps = __spreadProps(__spreadValues(__spreadProps(__spreadValues({}, props), {
@@ -2379,6 +2379,7 @@ var Input = (_a) => {
2379
2379
  };
2380
2380
  const handleChange = (e) => {
2381
2381
  const rawValue = e.target.value;
2382
+ const maxNumber = props.max != null ? Number(String(props.max).replace(/,/g, "")) : void 0;
2382
2383
  if (variant === "currency") {
2383
2384
  const raw = rawValue.replace(/,/g, "");
2384
2385
  if (raw === "") {
@@ -2397,9 +2398,25 @@ var Input = (_a) => {
2397
2398
  const parts = raw.split(".");
2398
2399
  const currentDecimals = decimals != null ? decimals : 2;
2399
2400
  if (parts.length === 2 && parts[1].length > currentDecimals) return;
2401
+ const asNumber = Number(raw);
2402
+ if (!isNaN(asNumber) && maxNumber != null && asNumber > maxNumber) {
2403
+ const clamped = maxNumber;
2404
+ const formattedClamped = formatDecimalValue(
2405
+ clamped.toString(),
2406
+ currentDecimals
2407
+ );
2408
+ setInternalValue(formattedClamped);
2409
+ setDisplayValue(formatCurrencyDisplay(formattedClamped));
2410
+ if (onChange) {
2411
+ const syntheticEvent = __spreadProps(__spreadValues({}, e), {
2412
+ target: __spreadProps(__spreadValues({}, e.target), { value: clamped.toString() })
2413
+ });
2414
+ onChange(syntheticEvent);
2415
+ }
2416
+ return;
2417
+ }
2400
2418
  setInternalValue(raw);
2401
2419
  setDisplayValue(formatCurrencyDisplay(raw));
2402
- const asNumber = Number(raw);
2403
2420
  if (!isNaN(asNumber) && onChange) {
2404
2421
  const syntheticEvent = __spreadProps(__spreadValues({}, e), {
2405
2422
  target: __spreadProps(__spreadValues({}, e.target), { value: asNumber.toString() })
@@ -2408,6 +2425,31 @@ var Input = (_a) => {
2408
2425
  }
2409
2426
  return;
2410
2427
  }
2428
+ if ((variant === "percentage" || variant === "uom") && e.target.type === "number") {
2429
+ const numeric = Number(rawValue);
2430
+ if (!isNaN(numeric) && maxNumber != null && numeric > maxNumber) {
2431
+ const clamped = maxNumber;
2432
+ const formattedClamped = formatDecimalValue(
2433
+ clamped.toString(),
2434
+ decimals != null ? decimals : 0
2435
+ );
2436
+ setInternalValue(formattedClamped);
2437
+ setDisplayValue(formattedClamped);
2438
+ if (typeof onChange === "function") {
2439
+ const syntheticEvent = __spreadProps(__spreadValues({}, e), {
2440
+ target: __spreadProps(__spreadValues({}, e.target), { value: clamped.toString() })
2441
+ });
2442
+ onChange(syntheticEvent);
2443
+ }
2444
+ return;
2445
+ }
2446
+ setInternalValue(rawValue);
2447
+ setDisplayValue(rawValue);
2448
+ if (typeof onChange === "function") {
2449
+ onChange(e);
2450
+ }
2451
+ return;
2452
+ }
2411
2453
  setInternalValue(rawValue);
2412
2454
  setDisplayValue(rawValue);
2413
2455
  if (typeof onChange === "function") {