@headless-adminapp/fluent 0.0.17-alpha.35 → 0.0.17-alpha.37
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.
|
@@ -16,6 +16,7 @@ const utils_1 = require("@headless-adminapp/app/utils");
|
|
|
16
16
|
const app_1 = require("@headless-adminapp/core/experience/app");
|
|
17
17
|
const react_table_1 = require("@tanstack/react-table");
|
|
18
18
|
const react_1 = require("react");
|
|
19
|
+
const componentStore_1 = require("../componentStore");
|
|
19
20
|
const GridColumnHeader_1 = require("../DataGrid/GridColumnHeader");
|
|
20
21
|
const TableCell_1 = require("../DataGrid/TableCell");
|
|
21
22
|
const TableCellLink_1 = require("../DataGrid/TableCell/TableCellLink");
|
|
@@ -207,6 +208,13 @@ function useTableColumns({ disableSelection, disableContextMenu, disableColumnRe
|
|
|
207
208
|
dateFormat: dateFormats.short,
|
|
208
209
|
timezone,
|
|
209
210
|
})) !== null && _c !== void 0 ? _c : '';
|
|
211
|
+
if (column.component) {
|
|
212
|
+
const Component = componentStore_1.componentStore.getComponent(column.component);
|
|
213
|
+
if (!Component) {
|
|
214
|
+
throw new Error(`Component with name ${column.component} not found`);
|
|
215
|
+
}
|
|
216
|
+
return ((0, jsx_runtime_1.jsx)(Component, { column: column, schema: schema, record: info.row.original, value: value, attribute: attribute, formattedValue: formattedValue }));
|
|
217
|
+
}
|
|
210
218
|
if (schema.primaryAttribute === column.name) {
|
|
211
219
|
const path = routeResolver({
|
|
212
220
|
logicalName: schema.logicalName,
|
|
@@ -254,10 +262,7 @@ function useTableColumns({ disableSelection, disableContextMenu, disableColumnRe
|
|
|
254
262
|
recordSetSetter,
|
|
255
263
|
routeResolver,
|
|
256
264
|
router,
|
|
257
|
-
schema
|
|
258
|
-
schema.idAttribute,
|
|
259
|
-
schema.logicalName,
|
|
260
|
-
schema.primaryAttribute,
|
|
265
|
+
schema,
|
|
261
266
|
schemaStore,
|
|
262
267
|
setSorting,
|
|
263
268
|
timezone,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@headless-adminapp/fluent",
|
|
3
|
-
"version": "0.0.17-alpha.
|
|
3
|
+
"version": "0.0.17-alpha.37",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "index.d.ts",
|
|
@@ -48,5 +48,5 @@
|
|
|
48
48
|
"uuid": "11.0.3",
|
|
49
49
|
"yup": "^1.4.0"
|
|
50
50
|
},
|
|
51
|
-
"gitHead": "
|
|
51
|
+
"gitHead": "2a9d7f74b4685eb5c823ad55f83c16f3ff912e21"
|
|
52
52
|
}
|