@hortiview/shared-components 0.0.11155 → 0.0.11528

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 (134) hide show
  1. package/README.md +41 -8
  2. package/dist/BigLoadingSpinner-D7H28pr5.js +16 -0
  3. package/dist/{GenericCard-B8x1DMa8.js → GenericCard-jlt8ZsHi.js} +18 -19
  4. package/dist/ListAreaService-YS_UUPh5.js +107 -0
  5. package/dist/assets/HashTabView.css +1 -1
  6. package/dist/assets/Select.css +1 -0
  7. package/dist/components/AlertBanner/AlertBanner.d.ts +0 -1
  8. package/dist/components/AlertBanner/AlertBanner.js +7 -8
  9. package/dist/components/AlertBanner/AlertBanner.test.js +11 -9
  10. package/dist/components/BaseView/BaseView.d.ts +1 -1
  11. package/dist/components/BaseView/BaseView.js +24 -25
  12. package/dist/components/BaseView/BaseView.test.js +25 -25
  13. package/dist/components/BasicHeading/BasicHeading.d.ts +1 -0
  14. package/dist/components/BasicHeading/BasicHeading.js +11 -12
  15. package/dist/components/BasicHeading/BasicHeading.test.js +3 -3
  16. package/dist/components/BlockView/BlockView.d.ts +1 -0
  17. package/dist/components/BlockView/BlockView.js +24 -25
  18. package/dist/components/BlockView/BlockView.test.js +2 -2
  19. package/dist/components/ChipCard/ChipCard.js +6 -7
  20. package/dist/components/ChipCard/ChipCard.test.js +2 -2
  21. package/dist/components/ContextMenu/ContextMenu.d.ts +3 -2
  22. package/dist/components/ContextMenu/ContextMenu.js +11 -12
  23. package/dist/components/ContextMenu/ContextMenu.test.js +2 -2
  24. package/dist/components/DeleteModal/DeleteModal.d.ts +6 -2
  25. package/dist/components/DeleteModal/DeleteModal.js +48 -46
  26. package/dist/components/DeleteModal/DeleteModal.test.js +2 -2
  27. package/dist/components/Disclaimer/Disclaimer.js +9 -10
  28. package/dist/components/Disclaimer/Disclaimer.test.js +2 -2
  29. package/dist/components/EmptyView/EmptyView.d.ts +1 -0
  30. package/dist/components/EmptyView/EmptyView.js +1 -1
  31. package/dist/components/EmptyView/EmptyView.test.js +2 -2
  32. package/dist/components/Filter/Filter.d.ts +1 -0
  33. package/dist/components/Filter/Filter.js +62 -62
  34. package/dist/components/Filter/Filter.test.js +2 -2
  35. package/dist/components/FormComponents/FormCheckBox/FormCheckBox.d.ts +1 -0
  36. package/dist/components/FormComponents/FormCheckBox/FormCheckBox.js +1 -1
  37. package/dist/components/FormComponents/FormCheckBox/FormCheckBox.test.js +2 -2
  38. package/dist/components/FormComponents/FormDatePicker/FormDatePicker.d.ts +3 -2
  39. package/dist/components/FormComponents/FormDatePicker/FormDatePicker.js +629 -630
  40. package/dist/components/FormComponents/FormDatePicker/FormDatePicker.test.js +2 -2
  41. package/dist/components/FormComponents/FormNumber/CustomTextField.d.ts +2 -1
  42. package/dist/components/FormComponents/FormNumber/CustomTextField.js +11 -12
  43. package/dist/components/FormComponents/FormNumber/FormNumber.d.ts +2 -1
  44. package/dist/components/FormComponents/FormNumber/FormNumber.js +1 -1
  45. package/dist/components/FormComponents/FormNumber/FormNumber.test.js +4 -4
  46. package/dist/components/FormComponents/FormRadio/FormRadio.d.ts +1 -0
  47. package/dist/components/FormComponents/FormRadio/FormRadio.js +1 -1
  48. package/dist/components/FormComponents/FormRadio/FormRadio.test.js +2 -2
  49. package/dist/components/FormComponents/FormSelect/FormSelect.d.ts +4 -7
  50. package/dist/components/FormComponents/FormSelect/FormSelect.js +100 -110
  51. package/dist/components/FormComponents/FormSelect/FormSelect.test.js +3 -3
  52. package/dist/components/FormComponents/FormSelect/SelectTooltipText.d.ts +1 -0
  53. package/dist/components/FormComponents/FormSelect/SelectTooltipText.js +5 -5
  54. package/dist/components/FormComponents/FormSlider/FormSlider.d.ts +1 -0
  55. package/dist/components/FormComponents/FormSlider/FormSlider.js +1 -1
  56. package/dist/components/FormComponents/FormSlider/FormSlider.test.js +2 -2
  57. package/dist/components/FormComponents/FormText/FormText.d.ts +2 -1
  58. package/dist/components/FormComponents/FormText/FormText.js +14 -15
  59. package/dist/components/FormComponents/FormText/FormText.test.js +13 -13
  60. package/dist/components/FormComponents/FormToggle/FormToggle.d.ts +2 -1
  61. package/dist/components/FormComponents/FormToggle/FormToggle.js +1 -1
  62. package/dist/components/FormComponents/FormToggle/FormToggle.test.js +2 -2
  63. package/dist/components/FormattedNumberDisplay/FormattedNumberDisplay.d.ts +2 -1
  64. package/dist/components/FormattedNumberDisplay/FormattedNumberDisplay.js +1 -1
  65. package/dist/components/GenericTable/GenericTable.d.ts +1 -0
  66. package/dist/components/GenericTable/GenericTable.js +23 -24
  67. package/dist/components/GenericTable/GenericTable.test.js +2 -2
  68. package/dist/components/GenericTable/GenericTableService.d.ts +1 -0
  69. package/dist/components/GenericTable/GenericTableService.js +41 -41
  70. package/dist/components/GenericTable/Mobile/GenericCard.d.ts +1 -1
  71. package/dist/components/GenericTable/Mobile/GenericCard.js +2 -2
  72. package/dist/components/GenericTable/Mobile/GenericCard.test.js +3 -3
  73. package/dist/components/GenericTable/Mobile/GenericCardList.d.ts +1 -1
  74. package/dist/components/GenericTable/Mobile/GenericCardList.js +2 -2
  75. package/dist/components/GenericTable/Mobile/GenericCardList.test.js +2 -2
  76. package/dist/components/HashTabView/HashTabView.d.ts +6 -1
  77. package/dist/components/HashTabView/HashTabView.js +53 -53
  78. package/dist/components/HashTabView/HashTabView.test.js +2 -2
  79. package/dist/components/HeaderFilter/HeaderFilter.d.ts +3 -2
  80. package/dist/components/HeaderFilter/HeaderFilter.js +12 -12
  81. package/dist/components/HeaderFilter/HeaderFilter.test.js +2 -2
  82. package/dist/components/HealthCheckFailed/HealthCheckFailed.js +7 -8
  83. package/dist/components/HealthCheckFailed/HealthCheckFailed.test.js +2 -2
  84. package/dist/components/Iconify/Iconify.d.ts +2 -2
  85. package/dist/components/Iconify/Iconify.js +4 -5
  86. package/dist/components/Iconify/Iconify.test.js +2 -2
  87. package/dist/components/InfoGroup/InfoGroup.d.ts +4 -3
  88. package/dist/components/InfoGroup/InfoGroup.js +4 -5
  89. package/dist/components/InfoGroup/InfoGroup.test.js +2 -2
  90. package/dist/components/ListArea/ListArea.d.ts +1 -1
  91. package/dist/components/ListArea/ListArea.js +2 -2
  92. package/dist/components/ListArea/ListArea.test.js +5 -5
  93. package/dist/components/ListArea/ListAreaService.d.ts +9 -8
  94. package/dist/components/ListArea/ListAreaService.js +2 -2
  95. package/dist/components/LoadingSpinner/Big/BigLoadingSpinner.js +2 -2
  96. package/dist/components/LoadingSpinner/Big/BigLoadingSpinner.test.js +3 -3
  97. package/dist/components/LoadingSpinner/Default/LoadingSpinner.js +5 -6
  98. package/dist/components/LoadingSpinner/Default/LoadingSpinner.test.js +2 -2
  99. package/dist/components/Modal/Modal.d.ts +2 -1
  100. package/dist/components/Modal/Modal.js +5 -6
  101. package/dist/components/OverflowTooltip/OverflowTooltip.d.ts +0 -1
  102. package/dist/components/OverflowTooltip/OverflowTooltip.js +10 -11
  103. package/dist/components/OverflowTooltip/OverflowTooltip.test.js +4 -4
  104. package/dist/components/Scrollbar/Scrollbar.js +5 -6
  105. package/dist/components/Scrollbar/scrollbar.test.js +2 -2
  106. package/dist/components/SearchBar/SearchBar.js +10 -11
  107. package/dist/components/SearchBar/SearchBar.test.js +2 -2
  108. package/dist/components/Select/Select.d.ts +14 -0
  109. package/dist/components/Select/Select.js +34 -0
  110. package/dist/components/Select/Select.test.d.ts +1 -0
  111. package/dist/components/Select/Select.test.js +28 -0
  112. package/dist/components/VerticalDivider/VerticalDivider.js +4 -5
  113. package/dist/components/VerticalDivider/VerticalDivider.test.js +2 -2
  114. package/dist/hooks/useBreakpoints.test.js +2 -2
  115. package/dist/hooks/useHelperText.d.ts +1 -0
  116. package/dist/{index-DzM8o582.js → index-CrcXCSzI.js} +1940 -1796
  117. package/dist/main.d.ts +2 -0
  118. package/dist/main.js +33 -31
  119. package/dist/{react-number-format.es-BD3_OvMU.js → react-number-format.es-BK1EpVXq.js} +151 -151
  120. package/dist/react-tooltip.min-Czs4RGD1.js +1400 -0
  121. package/dist/{react.esm-FR1-H8iU.js → react.esm-DNwojocF.js} +5289 -4990
  122. package/dist/services/BlockService.d.ts +1 -0
  123. package/dist/services/NumberService.d.ts +1 -0
  124. package/dist/services/UtilService.d.ts +1 -0
  125. package/dist/services/services.test.js +1 -1
  126. package/dist/types/GenericTable.d.ts +2 -2
  127. package/dist/types/HashTab.d.ts +0 -1
  128. package/dist/types/ListElement.d.ts +0 -1
  129. package/dist/types/internal/ReactRouterTypes.d.ts +0 -1
  130. package/dist/{vi.CjhMlMwf-DWv7vrn7.js → vi.CjhMlMwf-BCJNwXvu.js} +1 -1
  131. package/package.json +15 -15
  132. package/dist/BigLoadingSpinner-C3wTbTD0.js +0 -17
  133. package/dist/ListAreaService-CRX4eEUJ.js +0 -108
  134. package/dist/react-tooltip.min-c2wVkjF2.js +0 -1354
@@ -1,4 +1,4 @@
1
- import Q, { useRef as X, useState as xe, useEffect as de, useLayoutEffect as Re, useMemo as _e } from "react";
1
+ import Q, { useRef as X, useState as xe, useEffect as ve, useLayoutEffect as Re, useMemo as _e } from "react";
2
2
  function pe(e, r) {
3
3
  var a = {};
4
4
  for (var n in e)
@@ -18,8 +18,8 @@ function Fe(e) {
18
18
  var r, a = void 0;
19
19
  return function() {
20
20
  for (var n = [], t = arguments.length; t--; ) n[t] = arguments[t];
21
- return r && n.length === r.length && n.every(function(u, f) {
22
- return u === r[f];
21
+ return r && n.length === r.length && n.every(function(o, f) {
22
+ return o === r[f];
23
23
  }) || (r = n, a = e.apply(void 0, n)), a;
24
24
  };
25
25
  }
@@ -62,13 +62,13 @@ function ke(e) {
62
62
  });
63
63
  return a.current;
64
64
  }
65
- function se(e, r) {
65
+ function de(e, r) {
66
66
  r === void 0 && (r = !0);
67
67
  var a = e[0] === "-", n = a && r;
68
68
  e = e.replace("-", "");
69
- var t = e.split("."), u = t[0], f = t[1] || "";
69
+ var t = e.split("."), o = t[0], f = t[1] || "";
70
70
  return {
71
- beforeDecimal: u,
71
+ beforeDecimal: o,
72
72
  afterDecimal: f,
73
73
  hasNegation: a,
74
74
  addNegation: n
@@ -83,8 +83,8 @@ function Pe(e) {
83
83
  return (r ? "-" : "") + n + (t ? "." + t : "");
84
84
  }
85
85
  function be(e, r, a) {
86
- for (var n = "", t = a ? "0" : "", u = 0; u <= r - 1; u++)
87
- n += e[u] || t;
86
+ for (var n = "", t = a ? "0" : "", o = 0; o <= r - 1; o++)
87
+ n += e[o] || t;
88
88
  return n;
89
89
  }
90
90
  function ge(e, r) {
@@ -93,22 +93,22 @@ function ge(e, r) {
93
93
  function we(e) {
94
94
  var r = e + "", a = r[0] === "-" ? "-" : "";
95
95
  a && (r = r.substring(1));
96
- var n = r.split(/[eE]/g), t = n[0], u = n[1];
97
- if (u = Number(u), !u)
96
+ var n = r.split(/[eE]/g), t = n[0], o = n[1];
97
+ if (o = Number(o), !o)
98
98
  return a + t;
99
99
  t = t.replace(".", "");
100
- var f = 1 + u, m = t.length;
100
+ var f = 1 + o, m = t.length;
101
101
  return f < 0 ? t = "0." + ge("0", Math.abs(f)) + t : f >= m ? t = t + ge("0", f - m) : t = (t.substring(0, f) || "0") + "." + t.substring(f), a + t;
102
102
  }
103
103
  function me(e, r, a) {
104
104
  if (["", "-"].indexOf(e) !== -1)
105
105
  return e;
106
- var n = (e.indexOf(".") !== -1 || a) && r, t = se(e), u = t.beforeDecimal, f = t.afterDecimal, m = t.hasNegation, V = parseFloat("0." + (f || "0")), y = f.length <= r ? "0." + f : V.toFixed(r), S = y.split("."), g = u;
107
- u && Number(S[0]) && (g = u.split("").reverse().reduce(function(I, C, v) {
108
- return I.length > v ? (Number(I[0]) + Number(C)).toString() + I.substring(1, I.length) : C + I;
106
+ var n = (e.indexOf(".") !== -1 || a) && r, t = de(e), o = t.beforeDecimal, f = t.afterDecimal, m = t.hasNegation, V = parseFloat("0." + (f || "0")), y = f.length <= r ? "0." + f : V.toFixed(r), S = y.split("."), g = o;
107
+ o && Number(S[0]) && (g = o.split("").reverse().reduce(function(I, C, s) {
108
+ return I.length > s ? (Number(I[0]) + Number(C)).toString() + I.substring(1, I.length) : C + I;
109
109
  }, S[0]));
110
- var h = be(S[1] || "", r, a), x = m ? "-" : "", d = n ? "." : "";
111
- return "" + x + g + d + h;
110
+ var h = be(S[1] || "", r, a), x = m ? "-" : "", v = n ? "." : "";
111
+ return "" + x + g + v + h;
112
112
  }
113
113
  function z(e, r) {
114
114
  if (e.value = e.value, e !== null) {
@@ -120,13 +120,13 @@ function z(e, r) {
120
120
  }
121
121
  }
122
122
  var Ne = Fe(function(e, r) {
123
- for (var a = 0, n = 0, t = e.length, u = r.length; e[a] === r[a] && a < t; )
123
+ for (var a = 0, n = 0, t = e.length, o = r.length; e[a] === r[a] && a < t; )
124
124
  a++;
125
- for (; e[t - 1 - n] === r[u - 1 - n] && u - n > a && t - n > a; )
125
+ for (; e[t - 1 - n] === r[o - 1 - n] && o - n > a && t - n > a; )
126
126
  n++;
127
127
  return {
128
128
  from: { start: a, end: t - n },
129
- to: { start: a, end: u - n }
129
+ to: { start: a, end: o - n }
130
130
  };
131
131
  }), Ke = function(e, r) {
132
132
  var a = Math.min(e.selectionStart, r);
@@ -161,7 +161,7 @@ function Ge(e) {
161
161
  var r = e.currentValue, a = e.formattedValue, n = e.currentValueIndex, t = e.formattedValueIndex;
162
162
  return r[n] === a[t];
163
163
  }
164
- function Ze(e, r, a, n, t, u, f) {
164
+ function Ze(e, r, a, n, t, o, f) {
165
165
  f === void 0 && (f = Ge);
166
166
  var m = t.findIndex(function(L) {
167
167
  return L;
@@ -169,26 +169,26 @@ function Ze(e, r, a, n, t, u, f) {
169
169
  !r && !a.startsWith(V) && (r = V, a = V + a, n = n + V.length);
170
170
  for (var y = a.length, S = e.length, g = {}, h = new Array(y), x = 0; x < y; x++) {
171
171
  h[x] = -1;
172
- for (var d = 0, I = S; d < I; d++) {
172
+ for (var v = 0, I = S; v < I; v++) {
173
173
  var C = f({
174
174
  currentValue: a,
175
175
  lastValue: r,
176
176
  formattedValue: e,
177
177
  currentValueIndex: x,
178
- formattedValueIndex: d
178
+ formattedValueIndex: v
179
179
  });
180
- if (C && g[d] !== !0) {
181
- h[x] = d, g[d] = !0;
180
+ if (C && g[v] !== !0) {
181
+ h[x] = v, g[v] = !0;
182
182
  break;
183
183
  }
184
184
  }
185
185
  }
186
- for (var v = n; v < y && (h[v] === -1 || !u(a[v])); )
187
- v++;
188
- var T = v === y || h[v] === -1 ? S : h[v];
189
- for (v = n - 1; v > 0 && h[v] === -1; )
190
- v--;
191
- var R = v === -1 || h[v] === -1 ? 0 : h[v] + 1;
186
+ for (var s = n; s < y && (h[s] === -1 || !o(a[s])); )
187
+ s++;
188
+ var T = s === y || h[s] === -1 ? S : h[s];
189
+ for (s = n - 1; s > 0 && h[s] === -1; )
190
+ s--;
191
+ var R = s === -1 || h[s] === -1 ? 0 : h[s] + 1;
192
192
  return R > T ? T : n - R < T - n ? R : T;
193
193
  }
194
194
  function he(e, r, a, n) {
@@ -211,18 +211,18 @@ function qe(e) {
211
211
  r[a] = !!(te(e[a]) || te(e[a - 1]));
212
212
  return r;
213
213
  }
214
- function De(e, r, a, n, t, u) {
215
- u === void 0 && (u = Z);
216
- var f = ke(function(d, I) {
217
- var C, v;
218
- return Ve(d) ? (v = "", C = "") : typeof d == "number" || I ? (v = typeof d == "number" ? we(d) : d, C = n(v)) : (v = t(d, void 0), C = n(v)), { formattedValue: C, numAsString: v };
214
+ function De(e, r, a, n, t, o) {
215
+ o === void 0 && (o = Z);
216
+ var f = ke(function(v, I) {
217
+ var C, s;
218
+ return Ve(v) ? (s = "", C = "") : typeof v == "number" || I ? (s = typeof v == "number" ? we(v) : v, C = n(s)) : (s = t(v, void 0), C = n(s)), { formattedValue: C, numAsString: s };
219
219
  }), m = xe(function() {
220
220
  return f(Y(e) ? r : e, a);
221
- }), V = m[0], y = m[1], S = function(d, I) {
222
- d.formattedValue !== V.formattedValue && y({
223
- formattedValue: d.formattedValue,
224
- numAsString: d.value
225
- }), u(d, I);
221
+ }), V = m[0], y = m[1], S = function(v, I) {
222
+ v.formattedValue !== V.formattedValue && y({
223
+ formattedValue: v.formattedValue,
224
+ numAsString: v.value
225
+ }), o(v, I);
226
226
  }, g = e, h = a;
227
227
  Y(e) && (g = V.numAsString, h = !0);
228
228
  var x = f(g, h);
@@ -241,7 +241,7 @@ function Je(e) {
241
241
  r === void 0 && (r = "text");
242
242
  var a = e.displayType;
243
243
  a === void 0 && (a = "input");
244
- var n = e.customInput, t = e.renderText, u = e.getInputRef, f = e.format;
244
+ var n = e.customInput, t = e.renderText, o = e.getInputRef, f = e.format;
245
245
  f === void 0 && (f = He);
246
246
  var m = e.removeFormatting;
247
247
  m === void 0 && (m = ze);
@@ -249,91 +249,91 @@ function Je(e) {
249
249
  h === void 0 && (h = Z);
250
250
  var x = e.onKeyDown;
251
251
  x === void 0 && (x = Z);
252
- var d = e.onMouseUp;
253
- d === void 0 && (d = Z);
252
+ var v = e.onMouseUp;
253
+ v === void 0 && (v = Z);
254
254
  var I = e.onFocus;
255
255
  I === void 0 && (I = Z);
256
256
  var C = e.onBlur;
257
257
  C === void 0 && (C = Z);
258
- var v = e.value, T = e.getCaretBoundary;
258
+ var s = e.value, T = e.getCaretBoundary;
259
259
  T === void 0 && (T = qe);
260
260
  var R = e.isValidInputCharacter;
261
261
  R === void 0 && (R = te);
262
- var L = e.isCharacterSame, F = pe(e, ["type", "displayType", "customInput", "renderText", "getInputRef", "format", "removeFormatting", "defaultValue", "valueIsNumericString", "onValueChange", "isAllowed", "onChange", "onKeyDown", "onMouseUp", "onFocus", "onBlur", "value", "getCaretBoundary", "isValidInputCharacter", "isCharacterSame"]), q = De(v, V, !!y, f, m, S), k = q[0], b = k.formattedValue, M = k.numAsString, K = q[1], j = X(), U = X({ formattedValue: b, numAsString: M }), W = function(i, o) {
263
- U.current = { formattedValue: i.formattedValue, numAsString: i.value }, K(i, o);
264
- }, H = xe(!1), ee = H[0], s = H[1], l = X(null), w = X({
262
+ var L = e.isCharacterSame, F = pe(e, ["type", "displayType", "customInput", "renderText", "getInputRef", "format", "removeFormatting", "defaultValue", "valueIsNumericString", "onValueChange", "isAllowed", "onChange", "onKeyDown", "onMouseUp", "onFocus", "onBlur", "value", "getCaretBoundary", "isValidInputCharacter", "isCharacterSame"]), q = De(s, V, !!y, f, m, S), k = q[0], b = k.formattedValue, M = k.numAsString, K = q[1], j = X(), U = X({ formattedValue: b, numAsString: M }), W = function(i, u) {
263
+ U.current = { formattedValue: i.formattedValue, numAsString: i.value }, K(i, u);
264
+ }, H = xe(!1), ee = H[0], d = H[1], l = X(null), w = X({
265
265
  setCaretTimeout: null,
266
266
  focusTimeout: null
267
267
  });
268
- de(function() {
269
- return s(!0), function() {
268
+ ve(function() {
269
+ return d(!0), function() {
270
270
  clearTimeout(w.current.setCaretTimeout), clearTimeout(w.current.focusTimeout);
271
271
  };
272
272
  }, []);
273
- var E = f, B = function(i, o) {
274
- var c = parseFloat(o);
273
+ var E = f, B = function(i, u) {
274
+ var c = parseFloat(u);
275
275
  return {
276
276
  formattedValue: i,
277
- value: o,
277
+ value: u,
278
278
  floatValue: isNaN(c) ? void 0 : c
279
279
  };
280
- }, A = function(i, o, c) {
281
- i.selectionStart === 0 && i.selectionEnd === i.value.length || (z(i, o), w.current.setCaretTimeout = setTimeout(function() {
282
- i.value === c && i.selectionStart !== o && z(i, o);
280
+ }, A = function(i, u, c) {
281
+ i.selectionStart === 0 && i.selectionEnd === i.value.length || (z(i, u), w.current.setCaretTimeout = setTimeout(function() {
282
+ i.value === c && i.selectionStart !== u && z(i, u);
283
283
  }, 0));
284
- }, O = function(i, o, c) {
285
- return he(i, o, T(i), c);
286
- }, J = function(i, o, c) {
287
- var N = T(o), _ = Ze(o, b, i, c, N, R, L);
288
- return _ = he(o, _, N), _;
289
- }, ue = function(i) {
290
- var o = i.formattedValue;
291
- o === void 0 && (o = "");
284
+ }, O = function(i, u, c) {
285
+ return he(i, u, T(i), c);
286
+ }, J = function(i, u, c) {
287
+ var N = T(u), _ = Ze(u, b, i, c, N, R, L);
288
+ return _ = he(u, _, N), _;
289
+ }, oe = function(i) {
290
+ var u = i.formattedValue;
291
+ u === void 0 && (u = "");
292
292
  var c = i.input, N = i.source, _ = i.event, D = i.numAsString, p;
293
293
  if (c) {
294
294
  var P = i.inputValue || c.value, $ = ce(c);
295
- c.value = o, p = J(P, o, $), p !== void 0 && A(c, p, o);
295
+ c.value = u, p = J(P, u, $), p !== void 0 && A(c, p, u);
296
296
  }
297
- o !== b && W(B(o, D), { event: _, source: N });
297
+ u !== b && W(B(u, D), { event: _, source: N });
298
298
  };
299
- de(function() {
300
- var i = U.current, o = i.formattedValue, c = i.numAsString;
301
- (b !== o || M !== c) && W(B(b, M), {
299
+ ve(function() {
300
+ var i = U.current, u = i.formattedValue, c = i.numAsString;
301
+ (b !== u || M !== c) && W(B(b, M), {
302
302
  event: void 0,
303
303
  source: ae.props
304
304
  });
305
305
  }, [b, M]);
306
- var re = l.current ? ce(l.current) : void 0, ne = typeof window < "u" ? Re : de;
306
+ var re = l.current ? ce(l.current) : void 0, ne = typeof window < "u" ? Re : ve;
307
307
  ne(function() {
308
308
  var i = l.current;
309
309
  if (b !== U.current.formattedValue && i) {
310
- var o = J(U.current.formattedValue, b, re);
311
- i.value = b, A(i, o, b);
310
+ var u = J(U.current.formattedValue, b, re);
311
+ i.value = b, A(i, u, b);
312
312
  }
313
313
  }, [b]);
314
- var oe = function(i, o, c) {
315
- var N = o.target, _ = j.current ? Ke(j.current, N.selectionEnd) : Ne(b, i), D = Object.assign(Object.assign({}, _), { lastValue: b }), p = m(i, D), P = E(p);
314
+ var ue = function(i, u, c) {
315
+ var N = u.target, _ = j.current ? Ke(j.current, N.selectionEnd) : Ne(b, i), D = Object.assign(Object.assign({}, _), { lastValue: b }), p = m(i, D), P = E(p);
316
316
  if (p = m(P, void 0), g && !g(B(P, p))) {
317
- var $ = o.target, G = ce($), le = J(i, b, G);
317
+ var $ = u.target, G = ce($), le = J(i, b, G);
318
318
  return $.value = b, A($, le, b), !1;
319
319
  }
320
- return ue({
320
+ return oe({
321
321
  formattedValue: P,
322
322
  numAsString: p,
323
323
  inputValue: i,
324
- event: o,
324
+ event: u,
325
325
  source: c,
326
- input: o.target
326
+ input: u.target
327
327
  }), !0;
328
- }, fe = function(i, o) {
329
- o === void 0 && (o = 0);
328
+ }, fe = function(i, u) {
329
+ u === void 0 && (u = 0);
330
330
  var c = i.selectionStart, N = i.selectionEnd;
331
- j.current = { selectionStart: c, selectionEnd: N + o };
331
+ j.current = { selectionStart: c, selectionEnd: N + u };
332
332
  }, Ie = function(i) {
333
- var o = i.target, c = o.value, N = oe(c, i, ae.event);
333
+ var u = i.target, c = u.value, N = ue(c, i, ae.event);
334
334
  N && h(i), j.current = void 0;
335
335
  }, Ce = function(i) {
336
- var o = i.target, c = i.key, N = o.selectionStart, _ = o.selectionEnd, D = o.value;
336
+ var u = i.target, c = i.key, N = u.selectionStart, _ = u.selectionEnd, D = u.value;
337
337
  D === void 0 && (D = "");
338
338
  var p;
339
339
  c === "ArrowLeft" || c === "Backspace" ? p = Math.max(N - 1, 0) : c === "ArrowRight" ? p = Math.min(N + 1, D.length) : c === "Delete" && (p = N);
@@ -341,7 +341,7 @@ function Je(e) {
341
341
  c === "Delete" && N === _ && (P = 1);
342
342
  var $ = c === "ArrowLeft" || c === "ArrowRight";
343
343
  if (p === void 0 || N !== _ && !$) {
344
- x(i), fe(o, P);
344
+ x(i), fe(u, P);
345
345
  return;
346
346
  }
347
347
  var G = p;
@@ -349,30 +349,30 @@ function Je(e) {
349
349
  var le = c === "ArrowLeft" ? "left" : "right";
350
350
  G = O(D, p, le), G !== p && i.preventDefault();
351
351
  } else c === "Delete" && !R(D[p]) ? G = O(D, p, "right") : c === "Backspace" && !R(D[p]) && (G = O(D, p, "left"));
352
- G !== p && A(o, G, D), x(i), fe(o, P);
352
+ G !== p && A(u, G, D), x(i), fe(u, P);
353
353
  }, Ae = function(i) {
354
- var o = i.target, c = function() {
355
- var N = o.selectionStart, _ = o.selectionEnd, D = o.value;
354
+ var u = i.target, c = function() {
355
+ var N = u.selectionStart, _ = u.selectionEnd, D = u.value;
356
356
  if (D === void 0 && (D = ""), N === _) {
357
357
  var p = O(D, N);
358
- p !== N && A(o, p, D);
358
+ p !== N && A(u, p, D);
359
359
  }
360
360
  };
361
361
  c(), requestAnimationFrame(function() {
362
362
  c();
363
- }), d(i), fe(o);
363
+ }), v(i), fe(u);
364
364
  }, Ee = function(i) {
365
365
  i.persist && i.persist();
366
- var o = i.target, c = i.currentTarget;
367
- l.current = o, w.current.focusTimeout = setTimeout(function() {
368
- var N = o.selectionStart, _ = o.selectionEnd, D = o.value;
366
+ var u = i.target, c = i.currentTarget;
367
+ l.current = u, w.current.focusTimeout = setTimeout(function() {
368
+ var N = u.selectionStart, _ = u.selectionEnd, D = u.value;
369
369
  D === void 0 && (D = "");
370
370
  var p = O(D, N);
371
- p !== N && !(N === 0 && _ === D.length) && A(o, p, D), I(Object.assign(Object.assign({}, i), { currentTarget: c }));
371
+ p !== N && !(N === 0 && _ === D.length) && A(u, p, D), I(Object.assign(Object.assign({}, i), { currentTarget: c }));
372
372
  }, 0);
373
373
  }, Be = function(i) {
374
374
  l.current = null, clearTimeout(w.current.focusTimeout), clearTimeout(w.current.setCaretTimeout), C(i);
375
- }, Oe = ee && We() ? "numeric" : void 0, ve = Object.assign({ inputMode: Oe }, F, {
375
+ }, Oe = ee && We() ? "numeric" : void 0, se = Object.assign({ inputMode: Oe }, F, {
376
376
  type: r,
377
377
  value: b,
378
378
  onChange: Ie,
@@ -382,23 +382,23 @@ function Je(e) {
382
382
  onBlur: Be
383
383
  });
384
384
  if (a === "text")
385
- return t ? Q.createElement(Q.Fragment, null, t(b, F) || null) : Q.createElement("span", Object.assign({}, F, { ref: u }), b);
385
+ return t ? Q.createElement(Q.Fragment, null, t(b, F) || null) : Q.createElement("span", Object.assign({}, F, { ref: o }), b);
386
386
  if (n) {
387
387
  var Te = n;
388
- return Q.createElement(Te, Object.assign({}, ve, { ref: u }));
388
+ return Q.createElement(Te, Object.assign({}, se, { ref: o }));
389
389
  }
390
- return Q.createElement("input", Object.assign({}, ve, { ref: u }));
390
+ return Q.createElement("input", Object.assign({}, se, { ref: o }));
391
391
  }
392
392
  function Se(e, r) {
393
393
  var a = r.decimalScale, n = r.fixedDecimalScale, t = r.prefix;
394
394
  t === void 0 && (t = "");
395
- var u = r.suffix;
396
- u === void 0 && (u = "");
395
+ var o = r.suffix;
396
+ o === void 0 && (o = "");
397
397
  var f = r.allowNegative, m = r.thousandsGroupStyle;
398
398
  if (m === void 0 && (m = "thousand"), e === "" || e === "-")
399
399
  return e;
400
- var V = ie(r), y = V.thousandSeparator, S = V.decimalSeparator, g = a !== 0 && e.indexOf(".") !== -1 || a && n, h = se(e, f), x = h.beforeDecimal, d = h.afterDecimal, I = h.addNegation;
401
- return a !== void 0 && (d = be(d, a, !!n)), y && (x = Le(x, y, m)), t && (x = t + x), u && (d = d + u), I && (x = "-" + x), e = x + (g && S || "") + d, e;
400
+ var V = ie(r), y = V.thousandSeparator, S = V.decimalSeparator, g = a !== 0 && e.indexOf(".") !== -1 || a && n, h = de(e, f), x = h.beforeDecimal, v = h.afterDecimal, I = h.addNegation;
401
+ return a !== void 0 && (v = be(v, a, !!n)), y && (x = Le(x, y, m)), t && (x = t + x), o && (v = v + o), I && (x = "-" + x), e = x + (g && S || "") + v, e;
402
402
  }
403
403
  function ie(e) {
404
404
  var r = e.decimalSeparator;
@@ -412,8 +412,8 @@ function ie(e) {
412
412
  }
413
413
  function Qe(e, r) {
414
414
  e === void 0 && (e = "");
415
- var a = new RegExp("(-)"), n = new RegExp("(-)(.)*(-)"), t = a.test(e), u = n.test(e);
416
- return e = e.replace(/-/g, ""), t && !u && r && (e = "-" + e), e;
415
+ var a = new RegExp("(-)"), n = new RegExp("(-)(.)*(-)"), t = a.test(e), o = n.test(e);
416
+ return e = e.replace(/-/g, ""), t && !o && r && (e = "-" + e), e;
417
417
  }
418
418
  function Xe(e, r) {
419
419
  return new RegExp("(^-)|[0-9]|" + ye(e), "g");
@@ -424,36 +424,36 @@ function Ye(e, r, a) {
424
424
  function er(e, r, a) {
425
425
  var n;
426
426
  r === void 0 && (r = $e(e));
427
- var t = a.allowNegative, u = a.prefix;
428
- u === void 0 && (u = "");
427
+ var t = a.allowNegative, o = a.prefix;
428
+ o === void 0 && (o = "");
429
429
  var f = a.suffix;
430
430
  f === void 0 && (f = "");
431
- var m = a.decimalScale, V = r.from, y = r.to, S = y.start, g = y.end, h = ie(a), x = h.allowedDecimalSeparators, d = h.decimalSeparator, I = e[g] === d;
432
- if (te(e) && (e === u || e === f) && r.lastValue === "")
431
+ var m = a.decimalScale, V = r.from, y = r.to, S = y.start, g = y.end, h = ie(a), x = h.allowedDecimalSeparators, v = h.decimalSeparator, I = e[g] === v;
432
+ if (te(e) && (e === o || e === f) && r.lastValue === "")
433
433
  return e;
434
434
  if (g - S === 1 && x.indexOf(e[S]) !== -1) {
435
- var C = m === 0 ? "" : d;
435
+ var C = m === 0 ? "" : v;
436
436
  e = e.substring(0, S) + C + e.substring(S + 1, e.length);
437
437
  }
438
- var v = function(l, w, E) {
438
+ var s = function(l, w, E) {
439
439
  var B = !1, A = !1;
440
- u.startsWith("-") ? B = !1 : l.startsWith("--") ? (B = !1, A = !0) : f.startsWith("-") && l.length === f.length ? B = !1 : l[0] === "-" && (B = !0);
440
+ o.startsWith("-") ? B = !1 : l.startsWith("--") ? (B = !1, A = !0) : f.startsWith("-") && l.length === f.length ? B = !1 : l[0] === "-" && (B = !0);
441
441
  var O = B ? 1 : 0;
442
442
  return A && (O = 2), O && (l = l.substring(O), w -= O, E -= O), { value: l, start: w, end: E, hasNegation: B };
443
- }, T = v(e, S, g), R = T.hasNegation;
443
+ }, T = s(e, S, g), R = T.hasNegation;
444
444
  n = T, e = n.value, S = n.start, g = n.end;
445
- var L = v(r.lastValue, V.start, V.end), F = L.start, q = L.end, k = L.value, b = e.substring(S, g);
446
- e.length && k.length && (F > k.length - f.length || q < u.length) && !(b && f.startsWith(b)) && (e = k);
445
+ var L = s(r.lastValue, V.start, V.end), F = L.start, q = L.end, k = L.value, b = e.substring(S, g);
446
+ e.length && k.length && (F > k.length - f.length || q < o.length) && !(b && f.startsWith(b)) && (e = k);
447
447
  var M = 0;
448
- e.startsWith(u) ? M += u.length : S < u.length && (M = S), e = e.substring(M), g -= M;
448
+ e.startsWith(o) ? M += o.length : S < o.length && (M = S), e = e.substring(M), g -= M;
449
449
  var K = e.length, j = e.length - f.length;
450
- e.endsWith(f) ? K = j : (g > j || g > e.length - f.length) && (K = g), e = e.substring(0, K), e = Qe(R ? "-" + e : e, t), e = (e.match(Xe(d)) || []).join("");
451
- var U = e.indexOf(d);
452
- e = e.replace(new RegExp(ye(d), "g"), function(l, w) {
450
+ e.endsWith(f) ? K = j : (g > j || g > e.length - f.length) && (K = g), e = e.substring(0, K), e = Qe(R ? "-" + e : e, t), e = (e.match(Xe(v)) || []).join("");
451
+ var U = e.indexOf(v);
452
+ e = e.replace(new RegExp(ye(v), "g"), function(l, w) {
453
453
  return w === U ? "." : "";
454
454
  });
455
- var W = se(e, t), H = W.beforeDecimal, ee = W.afterDecimal, s = W.addNegation;
456
- return y.end - y.start < V.end - V.start && H === "" && I && !parseFloat(ee) && (e = s ? "-" : ""), e;
455
+ var W = de(e, t), H = W.beforeDecimal, ee = W.afterDecimal, d = W.addNegation;
456
+ return y.end - y.start < V.end - V.start && H === "" && I && !parseFloat(ee) && (e = d ? "-" : ""), e;
457
457
  }
458
458
  function rr(e, r) {
459
459
  var a = r.prefix;
@@ -462,57 +462,57 @@ function rr(e, r) {
462
462
  n === void 0 && (n = "");
463
463
  var t = Array.from({ length: e.length + 1 }).map(function() {
464
464
  return !0;
465
- }), u = e[0] === "-";
466
- t.fill(!1, 0, a.length + (u ? 1 : 0));
465
+ }), o = e[0] === "-";
466
+ t.fill(!1, 0, a.length + (o ? 1 : 0));
467
467
  var f = e.length;
468
468
  return t.fill(!1, f - n.length + 1, f + 1), t;
469
469
  }
470
470
  function ar(e) {
471
471
  var r = ie(e), a = r.thousandSeparator, n = r.decimalSeparator, t = e.prefix;
472
472
  t === void 0 && (t = "");
473
- var u = e.allowNegative;
474
- if (u === void 0 && (u = !0), a === n)
473
+ var o = e.allowNegative;
474
+ if (o === void 0 && (o = !0), a === n)
475
475
  throw new Error(`
476
476
  Decimal separator can't be same as thousand separator.
477
477
  thousandSeparator: ` + a + ` (thousandSeparator = {true} is same as thousandSeparator = ",")
478
478
  decimalSeparator: ` + n + ` (default value for decimalSeparator is .)
479
479
  `);
480
- return t.startsWith("-") && u && (console.error(`
480
+ return t.startsWith("-") && o && (console.error(`
481
481
  Prefix can't start with '-' when allowNegative is true.
482
482
  prefix: ` + t + `
483
- allowNegative: ` + u + `
484
- `), u = !1), Object.assign(Object.assign({}, e), { allowNegative: u });
483
+ allowNegative: ` + o + `
484
+ `), o = !1), Object.assign(Object.assign({}, e), { allowNegative: o });
485
485
  }
486
486
  function tr(e) {
487
487
  e = ar(e), e.decimalSeparator, e.allowedDecimalSeparators, e.thousandsGroupStyle;
488
488
  var r = e.suffix, a = e.allowNegative, n = e.allowLeadingZeros, t = e.onKeyDown;
489
489
  t === void 0 && (t = Z);
490
- var u = e.onBlur;
491
- u === void 0 && (u = Z);
490
+ var o = e.onBlur;
491
+ o === void 0 && (o = Z);
492
492
  var f = e.thousandSeparator, m = e.decimalScale, V = e.fixedDecimalScale, y = e.prefix;
493
493
  y === void 0 && (y = "");
494
- var S = e.defaultValue, g = e.value, h = e.valueIsNumericString, x = e.onValueChange, d = pe(e, ["decimalSeparator", "allowedDecimalSeparators", "thousandsGroupStyle", "suffix", "allowNegative", "allowLeadingZeros", "onKeyDown", "onBlur", "thousandSeparator", "decimalScale", "fixedDecimalScale", "prefix", "defaultValue", "value", "valueIsNumericString", "onValueChange"]), I = ie(e), C = I.decimalSeparator, v = I.allowedDecimalSeparators, T = function(s) {
495
- return Se(s, e);
496
- }, R = function(s, l) {
497
- return er(s, l, e);
494
+ var S = e.defaultValue, g = e.value, h = e.valueIsNumericString, x = e.onValueChange, v = pe(e, ["decimalSeparator", "allowedDecimalSeparators", "thousandsGroupStyle", "suffix", "allowNegative", "allowLeadingZeros", "onKeyDown", "onBlur", "thousandSeparator", "decimalScale", "fixedDecimalScale", "prefix", "defaultValue", "value", "valueIsNumericString", "onValueChange"]), I = ie(e), C = I.decimalSeparator, s = I.allowedDecimalSeparators, T = function(d) {
495
+ return Se(d, e);
496
+ }, R = function(d, l) {
497
+ return er(d, l, e);
498
498
  }, L = Y(g) ? S : g, F = h ?? Ye(L, y, r);
499
499
  Y(g) ? Y(S) || (F = F || typeof S == "number") : F = F || typeof g == "number";
500
- var q = function(s) {
501
- return Ve(s) ? s : (typeof s == "number" && (s = we(s)), F && typeof m == "number" ? me(s, m, !!V) : s);
502
- }, k = De(q(g), q(S), !!F, T, R, x), b = k[0], M = b.numAsString, K = b.formattedValue, j = k[1], U = function(s) {
503
- var l = s.target, w = s.key, E = l.selectionStart, B = l.selectionEnd, A = l.value;
500
+ var q = function(d) {
501
+ return Ve(d) ? d : (typeof d == "number" && (d = we(d)), F && typeof m == "number" ? me(d, m, !!V) : d);
502
+ }, k = De(q(g), q(S), !!F, T, R, x), b = k[0], M = b.numAsString, K = b.formattedValue, j = k[1], U = function(d) {
503
+ var l = d.target, w = d.key, E = l.selectionStart, B = l.selectionEnd, A = l.value;
504
504
  if (A === void 0 && (A = ""), (w === "Backspace" || w === "Delete") && B < y.length) {
505
- s.preventDefault();
505
+ d.preventDefault();
506
506
  return;
507
507
  }
508
508
  if (E !== B) {
509
- t(s);
509
+ t(d);
510
510
  return;
511
511
  }
512
- w === "Backspace" && A[0] === "-" && E === y.length + 1 && a && z(l, 1), m && V && (w === "Backspace" && A[E - 1] === C ? (z(l, E - 1), s.preventDefault()) : w === "Delete" && A[E] === C && s.preventDefault()), v?.includes(w) && A[E] === C && z(l, E + 1);
512
+ w === "Backspace" && A[0] === "-" && E === y.length + 1 && a && z(l, 1), m && V && (w === "Backspace" && A[E - 1] === C ? (z(l, E - 1), d.preventDefault()) : w === "Delete" && A[E] === C && d.preventDefault()), s?.includes(w) && A[E] === C && z(l, E + 1);
513
513
  var O = f === !0 ? "," : f;
514
- w === "Backspace" && A[E - 1] === O && z(l, E - 1), w === "Delete" && A[E] === O && z(l, E + 1), t(s);
515
- }, W = function(s) {
514
+ w === "Backspace" && A[E - 1] === O && z(l, E - 1), w === "Delete" && A[E] === O && z(l, E + 1), t(d);
515
+ }, W = function(d) {
516
516
  var l = M;
517
517
  if (l.match(/\d/g) || (l = ""), n || (l = Pe(l)), V && m && (l = me(l, m, V)), l !== M) {
518
518
  var w = Se(l, e);
@@ -521,20 +521,20 @@ function tr(e) {
521
521
  value: l,
522
522
  floatValue: parseFloat(l)
523
523
  }, {
524
- event: s,
524
+ event: d,
525
525
  source: ae.event
526
526
  });
527
527
  }
528
- u(s);
529
- }, H = function(s) {
530
- return s === C ? !0 : te(s);
531
- }, ee = function(s) {
532
- var l = s.currentValue, w = s.lastValue, E = s.formattedValue, B = s.currentValueIndex, A = s.formattedValueIndex, O = l[B], J = E[A], ue = Ne(w, l), re = ue.to, ne = function(oe) {
533
- return R(oe).indexOf(".") + y.length;
528
+ o(d);
529
+ }, H = function(d) {
530
+ return d === C ? !0 : te(d);
531
+ }, ee = function(d) {
532
+ var l = d.currentValue, w = d.lastValue, E = d.formattedValue, B = d.currentValueIndex, A = d.formattedValueIndex, O = l[B], J = E[A], oe = Ne(w, l), re = oe.to, ne = function(ue) {
533
+ return R(ue).indexOf(".") + y.length;
534
534
  };
535
- return g === 0 && V && m && l[re.start] === C && ne(l) < B && ne(E) > A ? !1 : B >= re.start && B < re.end && v && v.includes(O) && J === C ? !0 : O === J;
535
+ return g === 0 && V && m && l[re.start] === C && ne(l) < B && ne(E) > A ? !1 : B >= re.start && B < re.end && s && s.includes(O) && J === C ? !0 : O === J;
536
536
  };
537
- return Object.assign(Object.assign({}, d), {
537
+ return Object.assign(Object.assign({}, v), {
538
538
  value: K,
539
539
  valueIsNumericString: !1,
540
540
  isValidInputCharacter: H,
@@ -542,8 +542,8 @@ function tr(e) {
542
542
  onValueChange: j,
543
543
  format: T,
544
544
  removeFormatting: R,
545
- getCaretBoundary: function(s) {
546
- return rr(s, e);
545
+ getCaretBoundary: function(d) {
546
+ return rr(d, e);
547
547
  },
548
548
  onKeyDown: U,
549
549
  onBlur: W