rbro-tat-uds 2.2.19 → 2.2.21

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.
@@ -45,6 +45,7 @@ const ConfigurationSaveInfo = ({
45
45
  date = "N/A",
46
46
  branchName = "",
47
47
  buttonOnClick,
48
+ isSimulator = false,
48
49
  ...props
49
50
  }) => {
50
51
  return /* @__PURE__ */ jsxRuntime.jsxs(ConfigurationSaveInfoStyled, { ...props, children: [
@@ -60,7 +61,10 @@ const ConfigurationSaveInfo = ({
60
61
  }
61
62
  ),
62
63
  /* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
63
- /* @__PURE__ */ jsxRuntime.jsx("span", { children: "Configuratie din data" }),
64
+ /* @__PURE__ */ jsxRuntime.jsxs("span", { children: [
65
+ isSimulator ? "Simluare" : "Configuratie",
66
+ " din data"
67
+ ] }),
64
68
  /* @__PURE__ */ jsxRuntime.jsx("span", { children: date.length ? date : "N/A" })
65
69
  ] }),
66
70
  !!branchName && /* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
@@ -272,7 +272,7 @@ const PropunereAsigurareLocuinta = ({
272
272
  /* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
273
273
  /* @__PURE__ */ jsxRuntime.jsx("span", { children: "Total de plata anual" }),
274
274
  /* @__PURE__ */ jsxRuntime.jsx("span", { children: totalDePlataAnual || "-" }),
275
- /* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
275
+ includePad && /* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
276
276
  /* @__PURE__ */ jsxRuntime.jsx(
277
277
  Icon.default,
278
278
  {
@@ -294,6 +294,7 @@ const TextInput = ({
294
294
  },
295
295
  numpadPortal = false,
296
296
  numpadAllowPaste = false,
297
+ thousandSeparator = false,
297
298
  ...props
298
299
  }) => {
299
300
  const refTextInputWrapper = React.useRef(null);
@@ -311,7 +312,18 @@ const TextInput = ({
311
312
  setValue("");
312
313
  };
313
314
  const handleChange = (value2) => {
314
- setValue && setValue(value2);
315
+ if (thousandSeparator) {
316
+ const cleanValue = value2.toString().replace(/\./g, "");
317
+ const numericValue = Number(cleanValue);
318
+ if (!isNaN(numericValue)) {
319
+ const formattedValue = new Intl.NumberFormat("ro-RO").format(
320
+ numericValue
321
+ );
322
+ setValue && setValue(formattedValue);
323
+ }
324
+ } else {
325
+ setValue && setValue(value2);
326
+ }
315
327
  };
316
328
  const handleTextInputClick = (e) => {
317
329
  if (numpad && !loading) {
@@ -61178,6 +61178,7 @@ const ConfigurationSaveInfo = ({
61178
61178
  date = "N/A",
61179
61179
  branchName = "",
61180
61180
  buttonOnClick,
61181
+ isSimulator = false,
61181
61182
  ...props
61182
61183
  }) => {
61183
61184
  return /* @__PURE__ */ jsxRuntime.jsxs(ConfigurationSaveInfoStyled, { ...props, children: [
@@ -61193,7 +61194,10 @@ const ConfigurationSaveInfo = ({
61193
61194
  }
61194
61195
  ),
61195
61196
  /* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
61196
- /* @__PURE__ */ jsxRuntime.jsx("span", { children: "Configuratie din data" }),
61197
+ /* @__PURE__ */ jsxRuntime.jsxs("span", { children: [
61198
+ isSimulator ? "Simluare" : "Configuratie",
61199
+ " din data"
61200
+ ] }),
61197
61201
  /* @__PURE__ */ jsxRuntime.jsx("span", { children: date.length ? date : "N/A" })
61198
61202
  ] }),
61199
61203
  !!branchName && /* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
@@ -62822,6 +62826,7 @@ const TextInput = ({
62822
62826
  },
62823
62827
  numpadPortal = false,
62824
62828
  numpadAllowPaste = false,
62829
+ thousandSeparator = false,
62825
62830
  ...props
62826
62831
  }) => {
62827
62832
  const refTextInputWrapper = React.useRef(null);
@@ -62839,7 +62844,18 @@ const TextInput = ({
62839
62844
  setValue("");
62840
62845
  };
62841
62846
  const handleChange = (value2) => {
62842
- setValue && setValue(value2);
62847
+ if (thousandSeparator) {
62848
+ const cleanValue = value2.toString().replace(/\./g, "");
62849
+ const numericValue = Number(cleanValue);
62850
+ if (!isNaN(numericValue)) {
62851
+ const formattedValue = new Intl.NumberFormat("ro-RO").format(
62852
+ numericValue
62853
+ );
62854
+ setValue && setValue(formattedValue);
62855
+ }
62856
+ } else {
62857
+ setValue && setValue(value2);
62858
+ }
62843
62859
  };
62844
62860
  const handleTextInputClick = (e) => {
62845
62861
  if (numpad && !loading) {
@@ -82249,7 +82265,7 @@ const PropunereAsigurareLocuinta = ({
82249
82265
  /* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
82250
82266
  /* @__PURE__ */ jsxRuntime.jsx("span", { children: "Total de plata anual" }),
82251
82267
  /* @__PURE__ */ jsxRuntime.jsx("span", { children: totalDePlataAnual || "-" }),
82252
- /* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
82268
+ includePad && /* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
82253
82269
  /* @__PURE__ */ jsxRuntime.jsx(
82254
82270
  Icon$1,
82255
82271
  {
@@ -41,6 +41,7 @@ const ConfigurationSaveInfo = ({
41
41
  date = "N/A",
42
42
  branchName = "",
43
43
  buttonOnClick,
44
+ isSimulator = false,
44
45
  ...props
45
46
  }) => {
46
47
  return /* @__PURE__ */ jsxs(ConfigurationSaveInfoStyled, { ...props, children: [
@@ -56,7 +57,10 @@ const ConfigurationSaveInfo = ({
56
57
  }
57
58
  ),
58
59
  /* @__PURE__ */ jsxs("div", { children: [
59
- /* @__PURE__ */ jsx("span", { children: "Configuratie din data" }),
60
+ /* @__PURE__ */ jsxs("span", { children: [
61
+ isSimulator ? "Simluare" : "Configuratie",
62
+ " din data"
63
+ ] }),
60
64
  /* @__PURE__ */ jsx("span", { children: date.length ? date : "N/A" })
61
65
  ] }),
62
66
  !!branchName && /* @__PURE__ */ jsxs("div", { children: [
@@ -268,7 +268,7 @@ const PropunereAsigurareLocuinta = ({
268
268
  /* @__PURE__ */ jsxs("div", { children: [
269
269
  /* @__PURE__ */ jsx("span", { children: "Total de plata anual" }),
270
270
  /* @__PURE__ */ jsx("span", { children: totalDePlataAnual || "-" }),
271
- /* @__PURE__ */ jsxs("div", { children: [
271
+ includePad && /* @__PURE__ */ jsxs("div", { children: [
272
272
  /* @__PURE__ */ jsx(
273
273
  Icon,
274
274
  {
@@ -290,6 +290,7 @@ const TextInput = ({
290
290
  },
291
291
  numpadPortal = false,
292
292
  numpadAllowPaste = false,
293
+ thousandSeparator = false,
293
294
  ...props
294
295
  }) => {
295
296
  const refTextInputWrapper = useRef(null);
@@ -307,7 +308,18 @@ const TextInput = ({
307
308
  setValue("");
308
309
  };
309
310
  const handleChange = (value2) => {
310
- setValue && setValue(value2);
311
+ if (thousandSeparator) {
312
+ const cleanValue = value2.toString().replace(/\./g, "");
313
+ const numericValue = Number(cleanValue);
314
+ if (!isNaN(numericValue)) {
315
+ const formattedValue = new Intl.NumberFormat("ro-RO").format(
316
+ numericValue
317
+ );
318
+ setValue && setValue(formattedValue);
319
+ }
320
+ } else {
321
+ setValue && setValue(value2);
322
+ }
311
323
  };
312
324
  const handleTextInputClick = (e) => {
313
325
  if (numpad && !loading) {
@@ -61155,6 +61155,7 @@ const ConfigurationSaveInfo = ({
61155
61155
  date = "N/A",
61156
61156
  branchName = "",
61157
61157
  buttonOnClick,
61158
+ isSimulator = false,
61158
61159
  ...props
61159
61160
  }) => {
61160
61161
  return /* @__PURE__ */ jsxs(ConfigurationSaveInfoStyled, { ...props, children: [
@@ -61170,7 +61171,10 @@ const ConfigurationSaveInfo = ({
61170
61171
  }
61171
61172
  ),
61172
61173
  /* @__PURE__ */ jsxs("div", { children: [
61173
- /* @__PURE__ */ jsx("span", { children: "Configuratie din data" }),
61174
+ /* @__PURE__ */ jsxs("span", { children: [
61175
+ isSimulator ? "Simluare" : "Configuratie",
61176
+ " din data"
61177
+ ] }),
61174
61178
  /* @__PURE__ */ jsx("span", { children: date.length ? date : "N/A" })
61175
61179
  ] }),
61176
61180
  !!branchName && /* @__PURE__ */ jsxs("div", { children: [
@@ -62799,6 +62803,7 @@ const TextInput = ({
62799
62803
  },
62800
62804
  numpadPortal = false,
62801
62805
  numpadAllowPaste = false,
62806
+ thousandSeparator = false,
62802
62807
  ...props
62803
62808
  }) => {
62804
62809
  const refTextInputWrapper = useRef(null);
@@ -62816,7 +62821,18 @@ const TextInput = ({
62816
62821
  setValue("");
62817
62822
  };
62818
62823
  const handleChange = (value2) => {
62819
- setValue && setValue(value2);
62824
+ if (thousandSeparator) {
62825
+ const cleanValue = value2.toString().replace(/\./g, "");
62826
+ const numericValue = Number(cleanValue);
62827
+ if (!isNaN(numericValue)) {
62828
+ const formattedValue = new Intl.NumberFormat("ro-RO").format(
62829
+ numericValue
62830
+ );
62831
+ setValue && setValue(formattedValue);
62832
+ }
62833
+ } else {
62834
+ setValue && setValue(value2);
62835
+ }
62820
62836
  };
62821
62837
  const handleTextInputClick = (e) => {
62822
62838
  if (numpad && !loading) {
@@ -82226,7 +82242,7 @@ const PropunereAsigurareLocuinta = ({
82226
82242
  /* @__PURE__ */ jsxs("div", { children: [
82227
82243
  /* @__PURE__ */ jsx("span", { children: "Total de plata anual" }),
82228
82244
  /* @__PURE__ */ jsx("span", { children: totalDePlataAnual || "-" }),
82229
- /* @__PURE__ */ jsxs("div", { children: [
82245
+ includePad && /* @__PURE__ */ jsxs("div", { children: [
82230
82246
  /* @__PURE__ */ jsx(
82231
82247
  Icon$1,
82232
82248
  {
@@ -4,6 +4,7 @@ interface ConfigurationSaveInfoProps extends HTMLAttributes<HTMLDivElement> {
4
4
  date?: string;
5
5
  branchName?: string;
6
6
  buttonOnClick?(): void;
7
+ isSimulator?: boolean;
7
8
  }
8
9
  declare const ConfigurationSaveInfo: React.FC<ConfigurationSaveInfoProps>;
9
10
 
@@ -29,6 +29,7 @@ interface TextInputProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "si
29
29
  };
30
30
  numpadPortal?: boolean;
31
31
  numpadAllowPaste?: boolean;
32
+ thousandSeparator?: boolean;
32
33
  }
33
34
  declare const TextInput: React.FC<TextInputProps>;
34
35
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rbro-tat-uds",
3
- "version": "2.2.19",
3
+ "version": "2.2.21",
4
4
  "type": "module",
5
5
  "main": "build/cjs/index.cjs",
6
6
  "module": "build/esm/index.js",