aefis-core-ui 2.1.15 → 2.1.17
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.modern.js +34 -5
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -16390,7 +16390,12 @@ const ReadOnlyView = ({
|
|
|
16390
16390
|
sx: {
|
|
16391
16391
|
fontStyle: "italic"
|
|
16392
16392
|
},
|
|
16393
|
-
description:
|
|
16393
|
+
description: /*#__PURE__*/jsx(Box$2, {
|
|
16394
|
+
sx: {
|
|
16395
|
+
paddingRight: 0.5
|
|
16396
|
+
},
|
|
16397
|
+
children: _emptyViewText
|
|
16398
|
+
}),
|
|
16394
16399
|
showIcon: false
|
|
16395
16400
|
});
|
|
16396
16401
|
}
|
|
@@ -19463,10 +19468,34 @@ TextWidgetBase.propTypes = {
|
|
|
19463
19468
|
};
|
|
19464
19469
|
|
|
19465
19470
|
const _excluded = ["onChange"];
|
|
19466
|
-
const TextWidgetReadOnly$1 = props =>
|
|
19467
|
-
|
|
19468
|
-
|
|
19469
|
-
|
|
19471
|
+
const TextWidgetReadOnly$1 = props => {
|
|
19472
|
+
const {
|
|
19473
|
+
options: {
|
|
19474
|
+
prefix = "$",
|
|
19475
|
+
decimalScale = 2,
|
|
19476
|
+
fixedDecimalScale = 2,
|
|
19477
|
+
thousandSeparator = ",",
|
|
19478
|
+
decimalSeparator = ".",
|
|
19479
|
+
allowNegative = true
|
|
19480
|
+
}
|
|
19481
|
+
} = props;
|
|
19482
|
+
const {
|
|
19483
|
+
value
|
|
19484
|
+
} = useNumericFormat({
|
|
19485
|
+
value: props.value,
|
|
19486
|
+
decimalScale,
|
|
19487
|
+
fixedDecimalScale,
|
|
19488
|
+
thousandSeparator,
|
|
19489
|
+
decimalSeparator,
|
|
19490
|
+
allowNegative
|
|
19491
|
+
});
|
|
19492
|
+
const formattedValue = `${prefix === null ? "" : prefix}${value}`;
|
|
19493
|
+
const _value = props.value == undefined ? props.value : formattedValue;
|
|
19494
|
+
return /*#__PURE__*/jsx(ReadOnlyView, {
|
|
19495
|
+
label: props.schema.title,
|
|
19496
|
+
value: _value
|
|
19497
|
+
});
|
|
19498
|
+
};
|
|
19470
19499
|
TextWidgetReadOnly$1.propTypes = {
|
|
19471
19500
|
schema: PropTypes.any,
|
|
19472
19501
|
value: PropTypes.any
|