impaktapps-ui-builder 1.0.64-alpha.116 → 1.0.64-alpha.118
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 +33 -31
- package/dist/impaktapps-ui-builder.es.js.map +1 -1
- package/dist/impaktapps-ui-builder.umd.js +12 -12
- package/dist/impaktapps-ui-builder.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildTextArea.ts +0 -12
- package/src/impaktapps-ui-builder/builder/build/buildUiSchema.ts +32 -30
package/package.json
CHANGED
|
@@ -12,18 +12,6 @@ const TextArea = {
|
|
|
12
12
|
config: {
|
|
13
13
|
layout:12,
|
|
14
14
|
style:{
|
|
15
|
-
containerStyle:{
|
|
16
|
-
borderRadius:"20px",
|
|
17
|
-
},
|
|
18
|
-
headerContainerStyle:{
|
|
19
|
-
|
|
20
|
-
},
|
|
21
|
-
textAreaStyle:{
|
|
22
|
-
borderRadius:"20px",
|
|
23
|
-
padding:"20px",
|
|
24
|
-
background:"white",
|
|
25
|
-
color:"black"
|
|
26
|
-
}
|
|
27
15
|
},
|
|
28
16
|
main: {
|
|
29
17
|
heading:"TextArea",
|
|
@@ -321,18 +321,6 @@ const buildUiSchema = (config: any, store?: any) => {
|
|
|
321
321
|
elements = buildBasicUiSchema(config)
|
|
322
322
|
}
|
|
323
323
|
|
|
324
|
-
const getCommonProperties = (cellElem, sizeMap) => {
|
|
325
|
-
return {
|
|
326
|
-
accessorKey: cellElem.name,
|
|
327
|
-
type: cellElem.type === "ColumnGroup" ? "ColumnGroup" : cellElem.columnFormat,
|
|
328
|
-
header: cellElem.label || cellElem.name,
|
|
329
|
-
size: sizeMap[cellElem.name] || 180,
|
|
330
|
-
enableColumnFilter: cellElem.enableFilter === "No" ? false : true,
|
|
331
|
-
columnFilterModeOptions: cellElem.filteringOptions,
|
|
332
|
-
enableSorting: cellElem.enableSorting === "No" ? false : true,
|
|
333
|
-
columnKey: cellElem.columnKey
|
|
334
|
-
}
|
|
335
|
-
}
|
|
336
324
|
if (config?.elements) {
|
|
337
325
|
if (config?.type === "LeaderBoard") {
|
|
338
326
|
return elements;
|
|
@@ -345,10 +333,25 @@ const buildUiSchema = (config: any, store?: any) => {
|
|
|
345
333
|
});
|
|
346
334
|
}
|
|
347
335
|
elements.elements = config.elements.map((cellElem, elemInd) => {
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
336
|
+
const commonProperties = {
|
|
337
|
+
accessorKey: cellElem.name,
|
|
338
|
+
type: cellElem.type === "ColumnGroup" ? "ColumnGroup" : cellElem.columnFormat,
|
|
339
|
+
header: cellElem.label || cellElem.name,
|
|
340
|
+
size: sizeMap[cellElem.name] || 180,
|
|
341
|
+
enableColumnFilter: cellElem.enableFilter === "No" ? false : true,
|
|
342
|
+
columnFilterModeOptions: cellElem.filteringOptions,
|
|
343
|
+
enableSorting: cellElem.enableSorting === "No" ? false : true,
|
|
344
|
+
columnKey: cellElem.columnKey
|
|
345
|
+
}
|
|
346
|
+
if (cellElem.type) {
|
|
347
|
+
const tableElem = {
|
|
348
|
+
widget: cellElem.type != "ColumnGroup" ? buildUiSchema(cellElem, store) : undefined,
|
|
349
|
+
...commonProperties,
|
|
350
|
+
...(cellElem.type === "ColumnGroup" ? buildUiSchema(cellElem, store) : {})
|
|
351
|
+
}
|
|
352
|
+
return tableElem
|
|
353
|
+
} else {
|
|
354
|
+
return { ...commonProperties }
|
|
352
355
|
}
|
|
353
356
|
})
|
|
354
357
|
} else if (config.type == "Table") {
|
|
@@ -363,16 +366,16 @@ const buildUiSchema = (config: any, store?: any) => {
|
|
|
363
366
|
const tableActionElement = [];
|
|
364
367
|
const rowElements = []
|
|
365
368
|
config.elements.filter((cellElem, elemInd) => {
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
369
|
+
const commonProperties = {
|
|
370
|
+
accessorKey: cellElem.name,
|
|
371
|
+
type: cellElem.type === "ColumnGroup" ? "ColumnGroup" : cellElem.columnFormat,
|
|
372
|
+
header: cellElem.label || cellElem.name,
|
|
373
|
+
size: sizeMap[cellElem.name] || 180,
|
|
374
|
+
enableColumnFilter: cellElem.enableFilter === "No" ? false : true,
|
|
375
|
+
columnFilterModeOptions: cellElem.filteringOptions,
|
|
376
|
+
enableSorting: cellElem.enableSorting === "No" ? false : true,
|
|
377
|
+
columnKey: cellElem.columnKey
|
|
378
|
+
}
|
|
376
379
|
if (cellElem.type) {
|
|
377
380
|
if (cellElem.elementType == "action") {
|
|
378
381
|
const actionElem = buildUiSchema(cellElem, store);
|
|
@@ -386,13 +389,12 @@ const buildUiSchema = (config: any, store?: any) => {
|
|
|
386
389
|
}
|
|
387
390
|
const tableElem = {
|
|
388
391
|
widget: cellElem.type != "ColumnGroup" ? buildUiSchema(cellElem, store) : undefined,
|
|
389
|
-
...
|
|
390
|
-
|
|
391
|
-
|
|
392
|
+
...commonProperties,
|
|
393
|
+
...(cellElem.type === "ColumnGroup" ? buildUiSchema(cellElem, store) : {})
|
|
392
394
|
}
|
|
393
395
|
rowElements.push(tableElem)
|
|
394
396
|
} else {
|
|
395
|
-
rowElements.push({ ...
|
|
397
|
+
rowElements.push({ ...commonProperties })
|
|
396
398
|
}
|
|
397
399
|
|
|
398
400
|
})
|