impaktapps-ui-builder 0.0.409-u → 0.0.409-w
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 +23 -7
- package/dist/impaktapps-ui-builder.es.js.map +1 -1
- package/dist/impaktapps-ui-builder.umd.js +1 -1
- package/dist/impaktapps-ui-builder.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildUiSchema.ts +18 -1
- package/src/impaktapps-ui-builder/builder/build/uischema/card.ts +1 -1
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/event/schema.ts +1 -1
- package/src/impaktapps-ui-builder/runtime/services/downloadFile.ts +0 -1
- package/src/impaktapps-ui-builder/runtime/services/events.ts +2 -4
package/package.json
CHANGED
|
@@ -315,7 +315,24 @@ const buildUiSchema = (config: any) => {
|
|
|
315
315
|
if (config?.type === "LeaderBoard") {
|
|
316
316
|
return elements;
|
|
317
317
|
}
|
|
318
|
-
else if (config.type == "
|
|
318
|
+
else if (config.type == "ColumnGroup") {
|
|
319
|
+
const sizeMap = {}
|
|
320
|
+
if (config.sizeHolder) {
|
|
321
|
+
config.sizeHolder.map((e, i) => {
|
|
322
|
+
sizeMap[e.keyName] = e.value
|
|
323
|
+
});
|
|
324
|
+
}
|
|
325
|
+
elements.elements = config.elements.map((cellElem, elemInd) => {
|
|
326
|
+
return {
|
|
327
|
+
accessorKey: cellElem.name,
|
|
328
|
+
header: cellElem.label || cellElem.name,
|
|
329
|
+
size: sizeMap[cellElem.name] || 180,
|
|
330
|
+
type: cellElem.columnFormat,
|
|
331
|
+
elements: cellElem.type == "ColumnGroup" ? cellElem.elements.map((childCellElem) => buildUiSchema(childCellElem)) : []
|
|
332
|
+
}
|
|
333
|
+
})
|
|
334
|
+
}
|
|
335
|
+
else if (config.type == "Table") {
|
|
319
336
|
const sizeMap = {}
|
|
320
337
|
if (config.sizeHolder) {
|
|
321
338
|
config.sizeHolder.map((e, i) => {
|
|
@@ -1,16 +1,14 @@
|
|
|
1
1
|
import _, { cloneDeep } from "lodash";
|
|
2
2
|
import { handlersProps } from "./interface";
|
|
3
|
-
|
|
4
3
|
export const executeEvents = (params: handlersProps) => {
|
|
5
4
|
let nextEvent = [];
|
|
6
5
|
let finalResponse = null;
|
|
7
6
|
|
|
8
7
|
if (params.config.isSync !== "Yes") {
|
|
9
|
-
|
|
10
8
|
return shouldEventExecute(params)
|
|
11
9
|
.then((shouldExecute) => {
|
|
12
10
|
if (!shouldExecute) {
|
|
13
|
-
|
|
11
|
+
throw new Error('onStart Event not allow to run Parent Events');
|
|
14
12
|
}
|
|
15
13
|
return executeEventsHandler(params);
|
|
16
14
|
})
|
|
@@ -53,7 +51,7 @@ export const executeEvents = (params: handlersProps) => {
|
|
|
53
51
|
}
|
|
54
52
|
}
|
|
55
53
|
return finalResponse;
|
|
56
|
-
}
|
|
54
|
+
}
|
|
57
55
|
|
|
58
56
|
function executeEventsHandler(params: handlersProps) {
|
|
59
57
|
if (params.config.Handler === "api") {
|