impaktapps-ui-builder 0.0.404 → 0.0.405
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
|
@@ -305,25 +305,25 @@ const buildUiSchema = (config: any) => {
|
|
|
305
305
|
else if (config.type == "Table") {
|
|
306
306
|
const sizeMap = {}
|
|
307
307
|
if (config.sizeHolder) {
|
|
308
|
-
|
|
308
|
+
config.sizeHolder.map((e, i) => {
|
|
309
309
|
sizeMap[e.keyName] = e.value
|
|
310
310
|
});
|
|
311
311
|
}
|
|
312
312
|
elements.elements = config.elements.map((e, elemInd) => {
|
|
313
|
-
if (e.type) {
|
|
313
|
+
if (e.type && e.type !== "date" && e.type !== "dateTime" && e.type !== "amount") {
|
|
314
314
|
return {
|
|
315
315
|
accessorKey: e.name,
|
|
316
316
|
header: e.label || e.name,
|
|
317
|
-
size: sizeMap[e.name]|| 180,
|
|
318
|
-
type:e.type,
|
|
317
|
+
size: sizeMap[e.name] || 180,
|
|
318
|
+
type: e.type,
|
|
319
319
|
widget: buildUiSchema(e)
|
|
320
320
|
}
|
|
321
321
|
}
|
|
322
322
|
return {
|
|
323
|
-
type:e.type,
|
|
323
|
+
type: e.type,
|
|
324
324
|
accessorKey: e.name,
|
|
325
325
|
header: e.label || e.name,
|
|
326
|
-
size:
|
|
326
|
+
size: sizeMap[e.name] || 180
|
|
327
327
|
}
|
|
328
328
|
})
|
|
329
329
|
}
|