rbro-tat-uds 2.2.20 → 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.
- package/build/cjs/components/ConfigurationSaveInfo/ConfigurationSaveInfo.cjs +5 -1
- package/build/cjs/components/TextInput/TextInput.cjs +13 -1
- package/build/cjs/index.cjs +18 -2
- package/build/esm/components/ConfigurationSaveInfo/ConfigurationSaveInfo.js +5 -1
- package/build/esm/components/TextInput/TextInput.js +13 -1
- package/build/esm/index.js +18 -2
- package/build/types/components/ConfigurationSaveInfo/ConfigurationSaveInfo.d.ts +1 -0
- package/build/types/components/TextInput/TextInput.d.ts +1 -0
- package/package.json +1 -1
|
@@ -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.
|
|
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: [
|
|
@@ -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
|
-
|
|
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) {
|
package/build/cjs/index.cjs
CHANGED
|
@@ -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.
|
|
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
|
-
|
|
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) {
|
|
@@ -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__ */
|
|
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: [
|
|
@@ -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
|
-
|
|
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) {
|
package/build/esm/index.js
CHANGED
|
@@ -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__ */
|
|
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
|
-
|
|
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) {
|