@m4l/layouts 9.3.18-BE20260121-1 → 9.3.18-BE20260127-1

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.
@@ -26,14 +26,36 @@ function useBaseAccordions(props) {
26
26
  },
27
27
  children: /* @__PURE__ */ jsx(ContainerFlow, { variant: "column-flex", minWidth: 150, gap: "standard", children: child.properties.map((property) => {
28
28
  const value = property.getValue(data, endPointData);
29
- return /* @__PURE__ */ createElement(
30
- PropertyValue,
31
- {
32
- ...property,
33
- key: property.dictionaryId,
29
+ const { startAdornment, iconVariant, iconColor, dictionaryId, getValue, privilegeToView, ...restProperty } = property;
30
+ if (startAdornment !== null && startAdornment !== void 0) {
31
+ const propertyValueProps = {
32
+ ...restProperty,
33
+ startAdornment,
34
+ ...iconVariant !== void 0 && { iconVariant },
35
+ ...iconColor !== void 0 && { iconColor },
34
36
  property: getLabel(property.dictionaryId),
35
37
  value,
36
38
  isForm: property.isForm ?? true
39
+ };
40
+ return /* @__PURE__ */ createElement(
41
+ PropertyValue,
42
+ {
43
+ ...propertyValueProps,
44
+ key: property.dictionaryId
45
+ }
46
+ );
47
+ }
48
+ const propertyValuePropsWithoutAdornment = {
49
+ ...restProperty,
50
+ property: getLabel(property.dictionaryId),
51
+ value,
52
+ isForm: property.isForm ?? true
53
+ };
54
+ return /* @__PURE__ */ createElement(
55
+ PropertyValue,
56
+ {
57
+ ...propertyValuePropsWithoutAdornment,
58
+ key: property.dictionaryId
37
59
  }
38
60
  );
39
61
  }) })
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@m4l/layouts",
3
- "version": "9.3.18-BE20260121-1+PR600-icons-svg-mui",
3
+ "version": "9.3.18-BE20260127-1+PR618-propertyvalue-mejoras",
4
4
  "license": "UNLICENSED",
5
5
  "author": "M4L Team",
6
6
  "lint-staged": {
7
7
  "*.{js,ts,tsx}": "eslint --fix --max-warnings 0"
8
8
  },
9
9
  "peerDependencies": {
10
- "@m4l/components": "9.4.15-BE20260121-1+PR600-icons-svg-mui",
10
+ "@m4l/components": "9.4.19-BE20260127-1+PR618-propertyvalue-mejoras",
11
11
  "@m4l/core": "^2.0.0",
12
12
  "@m4l/graphics": "^7.0.0",
13
13
  "@m4l/styles": "^7.0.0"