impaktapps-ui-builder 0.0.403 → 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/dist/impaktapps-ui-builder.es.js +10 -2
- package/dist/impaktapps-ui-builder.es.js.map +1 -1
- package/dist/impaktapps-ui-builder.umd.js +3 -3
- package/dist/impaktapps-ui-builder.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildTable.ts +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildUiSchema.ts +6 -4
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/schema.ts +8 -1
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@ import Table from "./uischema/table";
|
|
|
2
2
|
import _ from "lodash";
|
|
3
3
|
import buildUiSchema from "./buildUiSchema";
|
|
4
4
|
import lazyLoadingTable from "./uischema/lazyLoadingTable";
|
|
5
|
-
|
|
5
|
+
|
|
6
6
|
export const buildTable = (config: any, componentScope: string) => {
|
|
7
7
|
const table: any = _.cloneDeep(Table);
|
|
8
8
|
table.scope = componentScope;
|
|
@@ -305,23 +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,
|
|
317
|
+
size: sizeMap[e.name] || 180,
|
|
318
|
+
type: e.type,
|
|
318
319
|
widget: buildUiSchema(e)
|
|
319
320
|
}
|
|
320
321
|
}
|
|
321
322
|
return {
|
|
323
|
+
type: e.type,
|
|
322
324
|
accessorKey: e.name,
|
|
323
325
|
header: e.label || e.name,
|
|
324
|
-
size:
|
|
326
|
+
size: sizeMap[e.name] || 180
|
|
325
327
|
}
|
|
326
328
|
})
|
|
327
329
|
}
|
|
@@ -37,7 +37,14 @@ export const ComponentSchema: any = {
|
|
|
37
37
|
{ title: "Text", const: "Text" },
|
|
38
38
|
{ title: "Text Area", const: "TextArea" },
|
|
39
39
|
{ title: "Timer", const: "Timer" },
|
|
40
|
-
{ title: "Upload File", const: "UploadFile" },
|
|
40
|
+
{ title: "Upload File", const: "UploadFile" },
|
|
41
|
+
{ title: "Text Area", const: "TextArea" },
|
|
42
|
+
{ title: "Timer", const: "Timer" },
|
|
43
|
+
{ title: "Upload File", const: "UploadFile" },
|
|
44
|
+
{ title: "Date Column", const: "date" },
|
|
45
|
+
{ title: "DateTime Column", const: "dateTime" },
|
|
46
|
+
{ title: "Amount Column", const: "amount" },
|
|
47
|
+
]
|
|
41
48
|
},
|
|
42
49
|
orientation:{
|
|
43
50
|
oneOf: [
|