aefis-core-ui 2.1.15 → 2.1.16

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