impaktapps-ui-builder 0.0.287 → 0.0.288
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 +49 -49
- 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/dist/src/impaktapps-ui-builder/builder/build/uischema/apiSection.d.ts +4 -4
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/coreSection.d.ts +4 -4
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/validationSections.d.ts +2 -2
- package/package.json +1 -1
- package/src/impaktapps-ui-builder/builder/build/uischema/apiSection.ts +6 -6
- package/src/impaktapps-ui-builder/builder/build/uischema/coreSection.ts +36 -36
- package/src/impaktapps-ui-builder/builder/build/uischema/validationSections.ts +4 -4
- package/src/impaktapps-ui-builder/runtime/services/events.ts +5 -5
|
@@ -43,8 +43,8 @@ export declare const APISection: {
|
|
|
43
43
|
label: string;
|
|
44
44
|
type: string;
|
|
45
45
|
options: {
|
|
46
|
-
|
|
47
|
-
|
|
46
|
+
label: string;
|
|
47
|
+
value: string;
|
|
48
48
|
}[];
|
|
49
49
|
multiple?: undefined;
|
|
50
50
|
};
|
|
@@ -114,7 +114,7 @@ export declare const APISectionSchema: {
|
|
|
114
114
|
key: {
|
|
115
115
|
type: string;
|
|
116
116
|
};
|
|
117
|
-
|
|
117
|
+
value: {
|
|
118
118
|
type: string;
|
|
119
119
|
};
|
|
120
120
|
};
|
|
@@ -128,7 +128,7 @@ export declare const APISectionSchema: {
|
|
|
128
128
|
key: {
|
|
129
129
|
type: string;
|
|
130
130
|
};
|
|
131
|
-
|
|
131
|
+
value: {
|
|
132
132
|
type: string;
|
|
133
133
|
};
|
|
134
134
|
};
|
|
@@ -19,8 +19,8 @@ export declare const CoreSection: {
|
|
|
19
19
|
label: string;
|
|
20
20
|
type: string;
|
|
21
21
|
options: {
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
label: string;
|
|
23
|
+
value: string;
|
|
24
24
|
}[];
|
|
25
25
|
};
|
|
26
26
|
};
|
|
@@ -89,8 +89,8 @@ export declare const CoreSection: {
|
|
|
89
89
|
main: {
|
|
90
90
|
label: string;
|
|
91
91
|
options: {
|
|
92
|
-
|
|
93
|
-
|
|
92
|
+
label: string;
|
|
93
|
+
value: string;
|
|
94
94
|
}[];
|
|
95
95
|
};
|
|
96
96
|
};
|
package/package.json
CHANGED
|
@@ -16,10 +16,10 @@ export const APISection = {
|
|
|
16
16
|
label: "Method",
|
|
17
17
|
type: "text",
|
|
18
18
|
options: [
|
|
19
|
-
{
|
|
20
|
-
{
|
|
21
|
-
{
|
|
22
|
-
{
|
|
19
|
+
{ label: "Get", value: "get" },
|
|
20
|
+
{ label: "Post", value: "post" },
|
|
21
|
+
{ label: "Delete", value: "delete" },
|
|
22
|
+
{ label: "Put", value: "put" },
|
|
23
23
|
],
|
|
24
24
|
},
|
|
25
25
|
},
|
|
@@ -155,7 +155,7 @@ export const APISectionSchema = {
|
|
|
155
155
|
key: {
|
|
156
156
|
type: "string",
|
|
157
157
|
},
|
|
158
|
-
|
|
158
|
+
value: {
|
|
159
159
|
type: "string",
|
|
160
160
|
},
|
|
161
161
|
},
|
|
@@ -169,7 +169,7 @@ export const APISectionSchema = {
|
|
|
169
169
|
key: {
|
|
170
170
|
type: "string",
|
|
171
171
|
},
|
|
172
|
-
|
|
172
|
+
value: {
|
|
173
173
|
type: "string",
|
|
174
174
|
},
|
|
175
175
|
},
|
|
@@ -14,34 +14,34 @@ export const CoreSection = {
|
|
|
14
14
|
label: "Type",
|
|
15
15
|
type: "text",
|
|
16
16
|
options: [
|
|
17
|
-
{
|
|
18
|
-
{
|
|
19
|
-
{
|
|
20
|
-
{
|
|
21
|
-
{
|
|
22
|
-
{
|
|
23
|
-
{
|
|
24
|
-
{
|
|
25
|
-
{
|
|
26
|
-
{
|
|
27
|
-
{
|
|
28
|
-
{
|
|
29
|
-
{
|
|
30
|
-
{
|
|
31
|
-
{
|
|
32
|
-
{
|
|
33
|
-
{
|
|
34
|
-
{
|
|
35
|
-
{
|
|
36
|
-
{
|
|
37
|
-
{
|
|
38
|
-
{
|
|
39
|
-
{
|
|
40
|
-
{
|
|
41
|
-
{
|
|
42
|
-
{
|
|
43
|
-
{
|
|
44
|
-
{
|
|
17
|
+
{ label: "Select", value: "Select" },
|
|
18
|
+
{ label: "Date", value: "Date" },
|
|
19
|
+
{ label: "CheckBox", value: "CheckBox" },
|
|
20
|
+
{ label: "Table", value: "Table" },
|
|
21
|
+
{ label: "Lazy Loading Table", value: "LazyLoadingTable" },
|
|
22
|
+
{ label: "Array", value: "Array" },
|
|
23
|
+
{ label: "Container", value: "WrapperSection" },
|
|
24
|
+
{ label: "Tabs", value: "TabSection" },
|
|
25
|
+
{ label: "Text", value: "Text" },
|
|
26
|
+
{ label: "Text Area", value: "TextArea" },
|
|
27
|
+
{ label: "Button", value: "Button" },
|
|
28
|
+
{ label: "Card", value: "card" },
|
|
29
|
+
{ label: "Radio", value: "Radio" },
|
|
30
|
+
{ label: "Rank", value: "Rank" },
|
|
31
|
+
{ label: "SpeedoMeter", value: "SpeedoMeter" },
|
|
32
|
+
{ label: "ProgressBar", value: "ProgressBar" },
|
|
33
|
+
{ label: "Graph", value: "Graph" },
|
|
34
|
+
{ label: "Label", value: "Box" },
|
|
35
|
+
{ label: "Upload File", value: "UploadFile" },
|
|
36
|
+
{ label: "Download File", value: "DownloadFile" },
|
|
37
|
+
{ label: "Empty Box", value: "EmptyBox" },
|
|
38
|
+
{ label: "ProgressBar Card", value: "ProgressBarCard" },
|
|
39
|
+
{ label: "Rank Card", value: "RankCard" },
|
|
40
|
+
{ label: "Runner Boy Progress Bar", value: "RunnerBoyProgressBar" },
|
|
41
|
+
{ label: "Slider", value: "Slider" },
|
|
42
|
+
{ label: "Timer", value: "Timer" },
|
|
43
|
+
{ label: "MultipleSelect", value: "MultipleSelect" },
|
|
44
|
+
{ label: "LeaderBoard", value: "LeaderBoard" },],
|
|
45
45
|
},
|
|
46
46
|
},
|
|
47
47
|
},
|
|
@@ -119,10 +119,10 @@ export const CoreSection = {
|
|
|
119
119
|
main: {
|
|
120
120
|
label: "Screen Size",
|
|
121
121
|
options: [
|
|
122
|
-
{
|
|
123
|
-
{
|
|
124
|
-
{
|
|
125
|
-
{
|
|
122
|
+
{ label: "Extra Small", value: "xs" },
|
|
123
|
+
{ label: "Small", value: "sm" },
|
|
124
|
+
{ label: "Medium", value: "md" },
|
|
125
|
+
{ label: "Large", value: "lg" },
|
|
126
126
|
],
|
|
127
127
|
},
|
|
128
128
|
},
|
|
@@ -144,10 +144,10 @@ export const CoreSection = {
|
|
|
144
144
|
main: {
|
|
145
145
|
label: "Value",
|
|
146
146
|
options: [
|
|
147
|
-
{
|
|
148
|
-
{
|
|
149
|
-
{
|
|
150
|
-
{
|
|
147
|
+
{ label: "3", value: "3" },
|
|
148
|
+
{ label: "5.5", value: "5.5" },
|
|
149
|
+
{ label: "8", value: "8" },
|
|
150
|
+
{ label: "12", value: "12" },
|
|
151
151
|
],
|
|
152
152
|
},
|
|
153
153
|
},
|
|
@@ -27,10 +27,10 @@ export const ValidationSection = {
|
|
|
27
27
|
main: {
|
|
28
28
|
label: "Validation Type",
|
|
29
29
|
options: [
|
|
30
|
-
{
|
|
31
|
-
{
|
|
32
|
-
{
|
|
33
|
-
{
|
|
30
|
+
{ value: "required", label: "Required" },
|
|
31
|
+
{ value: "minLength", label: "Minimum Length" },
|
|
32
|
+
{ value: "maxLength", label: "Maximum Length" },
|
|
33
|
+
{ value: "pattern", label: "Pattern" },
|
|
34
34
|
]
|
|
35
35
|
},
|
|
36
36
|
},
|
|
@@ -6,16 +6,16 @@ export const executeEvents = async (
|
|
|
6
6
|
params:handlersProps
|
|
7
7
|
) => {
|
|
8
8
|
let nextEvent = [];
|
|
9
|
-
let
|
|
9
|
+
let finalResponse = null;
|
|
10
10
|
try{
|
|
11
11
|
if (!shouldEventExecute(params)) {
|
|
12
12
|
return { response: undefined, events: undefined };
|
|
13
13
|
}
|
|
14
14
|
const response = await executeEventsHandler(params)
|
|
15
|
-
|
|
15
|
+
finalResponse = response;
|
|
16
16
|
const SuccessEvent = params.config?.events.filter(e => e.eventType === "Success");
|
|
17
17
|
if(params.config.returnNeeded){
|
|
18
|
-
return
|
|
18
|
+
return finalResponse
|
|
19
19
|
}
|
|
20
20
|
nextEvent = SuccessEvent;
|
|
21
21
|
} catch (err) {
|
|
@@ -25,10 +25,10 @@ export const executeEvents = async (
|
|
|
25
25
|
}
|
|
26
26
|
if (nextEvent?.length > 0) {
|
|
27
27
|
for (const actionConfig of nextEvent) {
|
|
28
|
-
await executeEvents({...params,config:actionConfig,parentEventOutput:
|
|
28
|
+
await executeEvents({...params,config:actionConfig,parentEventOutput:finalResponse})
|
|
29
29
|
}
|
|
30
30
|
}
|
|
31
|
-
return
|
|
31
|
+
return finalResponse;
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
async function executeEventsHandler(params:handlersProps) {
|