@axinom/mosaic-ui 0.52.0-rc.4 → 0.52.0-rc.6

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@axinom/mosaic-ui",
3
- "version": "0.52.0-rc.4",
3
+ "version": "0.52.0-rc.6",
4
4
  "description": "UI components for building Axinom Mosaic applications",
5
5
  "author": "Axinom",
6
6
  "license": "PROPRIETARY",
@@ -32,7 +32,7 @@
32
32
  "build-storybook": "storybook build"
33
33
  },
34
34
  "dependencies": {
35
- "@axinom/mosaic-core": "^0.4.25-rc.4",
35
+ "@axinom/mosaic-core": "^0.4.25-rc.6",
36
36
  "@faker-js/faker": "^7.4.0",
37
37
  "@geoffcox/react-splitter": "^2.1.2",
38
38
  "@popperjs/core": "^2.11.8",
@@ -106,5 +106,5 @@
106
106
  "publishConfig": {
107
107
  "access": "public"
108
108
  },
109
- "gitHead": "c98e9b0e90bb984238b7d96adbcd67c0c8c2b75e"
109
+ "gitHead": "62061b8cddd421c5b734a0fddedb1bdd0919c8ba"
110
110
  }
@@ -92,6 +92,18 @@ const renderData = <T extends Data>(
92
92
 
93
93
  if (!column.propertyName) {
94
94
  const columnData = column.render?.(undefined, rowData);
95
+
96
+ if (typeof columnData === 'string') {
97
+ return {
98
+ columnData: (
99
+ <span data-test-id={`list-entry-property:${columnData}`}>
100
+ {columnData}
101
+ </span>
102
+ ),
103
+ tooltip: getTooltip(columnData),
104
+ };
105
+ }
106
+
95
107
  return {
96
108
  columnData,
97
109
  tooltip: getTooltip(columnData),
@@ -100,6 +112,18 @@ const renderData = <T extends Data>(
100
112
  const value: unknown = rowData[column.propertyName];
101
113
  if (column.render) {
102
114
  const columnData = column.render(value, rowData);
115
+
116
+ if (typeof columnData === 'string') {
117
+ return {
118
+ columnData: (
119
+ <span data-test-id={`list-entry-property:${columnData}`}>
120
+ {columnData}
121
+ </span>
122
+ ),
123
+ tooltip: getTooltip(columnData),
124
+ };
125
+ }
126
+
103
127
  return {
104
128
  columnData,
105
129
  tooltip: getTooltip(columnData),
@@ -48,7 +48,11 @@ export const PageHeader: React.FC<PageHeaderProps> = ({
48
48
  ref={ref}
49
49
  >
50
50
  <div className={clsx(classes.titles)}>
51
- <div className={clsx(classes.title)} data-test-id="page-header-title">
51
+ <div
52
+ className={clsx(classes.title)}
53
+ data-test-id="page-header-title"
54
+ title={title}
55
+ >
52
56
  {title}
53
57
  </div>
54
58
  <div