impaktapps-ui-builder 1.0.134 → 1.0.135
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 +124 -261
- package/dist/impaktapps-ui-builder.es.js.map +1 -1
- package/dist/impaktapps-ui-builder.umd.js +11 -11
- package/dist/impaktapps-ui-builder.umd.js.map +1 -1
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/card.d.ts +18 -0
- package/dist/src/impaktapps-ui-builder/runtime/services/service.d.ts +1 -1
- package/package.json +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildHorizontalBarGraph.ts +6 -0
- package/src/impaktapps-ui-builder/builder/build/buildLineGraph.ts +6 -0
- package/src/impaktapps-ui-builder/builder/build/buildPieGraph.ts +3 -0
- package/src/impaktapps-ui-builder/builder/build/buildStackBarGraph.ts +6 -0
- package/src/impaktapps-ui-builder/builder/build/buildUiSchema.ts +13 -5
- package/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.ts +2 -0
- package/src/impaktapps-ui-builder/builder/build/uischema/card.ts +12 -2
- package/src/impaktapps-ui-builder/builder/build/uischema/coreSection.ts +19 -75
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/schema.ts +80 -102
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/uiSchema.ts +1 -61
- package/src/impaktapps-ui-builder/builder/services/component.ts +7 -14
- package/src/impaktapps-ui-builder/runtime/services/service.ts +42 -58
|
@@ -92,67 +92,7 @@ export const componentBasicUiSchema: any = (theme) => {
|
|
|
92
92
|
},
|
|
93
93
|
{
|
|
94
94
|
type: "Control",
|
|
95
|
-
scope: "#/properties/
|
|
96
|
-
config: {
|
|
97
|
-
layout: { xs: 6, sm: 6, md: 0, lg: 3 },
|
|
98
|
-
},
|
|
99
|
-
options: {
|
|
100
|
-
widget: "EmptyBox",
|
|
101
|
-
},
|
|
102
|
-
},
|
|
103
|
-
{
|
|
104
|
-
type: "Control",
|
|
105
|
-
scope: "#/properties/proc6",
|
|
106
|
-
config: {
|
|
107
|
-
layout: { xs: 6, sm: 6, md: 0, lg: 3 },
|
|
108
|
-
},
|
|
109
|
-
options: {
|
|
110
|
-
widget: "EmptyBox",
|
|
111
|
-
},
|
|
112
|
-
},
|
|
113
|
-
{
|
|
114
|
-
type: "Control",
|
|
115
|
-
scope: "#/properties/proc7",
|
|
116
|
-
config: {
|
|
117
|
-
layout: { xs: 6, sm: 6, md: 0, lg: 3 },
|
|
118
|
-
},
|
|
119
|
-
options: {
|
|
120
|
-
widget: "EmptyBox",
|
|
121
|
-
},
|
|
122
|
-
},
|
|
123
|
-
{
|
|
124
|
-
type: "Control",
|
|
125
|
-
scope: "#/properties/proc8",
|
|
126
|
-
config: {
|
|
127
|
-
layout: { xs: 6, sm: 6, md: 0, lg: 3 },
|
|
128
|
-
},
|
|
129
|
-
options: {
|
|
130
|
-
widget: "EmptyBox",
|
|
131
|
-
},
|
|
132
|
-
},
|
|
133
|
-
{
|
|
134
|
-
type: "Control",
|
|
135
|
-
scope: "#/properties/proc9",
|
|
136
|
-
config: {
|
|
137
|
-
layout: { xs: 6, sm: 6, md: 0, lg: 3 },
|
|
138
|
-
},
|
|
139
|
-
options: {
|
|
140
|
-
widget: "EmptyBox",
|
|
141
|
-
},
|
|
142
|
-
},
|
|
143
|
-
{
|
|
144
|
-
type: "Control",
|
|
145
|
-
scope: "#/properties/proc10",
|
|
146
|
-
config: {
|
|
147
|
-
layout: { xs: 6, sm: 6, md: 0, lg: 3 },
|
|
148
|
-
},
|
|
149
|
-
options: {
|
|
150
|
-
widget: "EmptyBox",
|
|
151
|
-
},
|
|
152
|
-
},
|
|
153
|
-
{
|
|
154
|
-
type: "Control",
|
|
155
|
-
scope: "#/properties/proc11",
|
|
95
|
+
scope: "#/properties/proc",
|
|
156
96
|
config: {
|
|
157
97
|
layout: { xs: 6, sm: 6, md: 0, lg: 3 },
|
|
158
98
|
},
|
|
@@ -162,29 +162,22 @@ export function refreshPage(type: string, store: any) {
|
|
|
162
162
|
},
|
|
163
163
|
},
|
|
164
164
|
}
|
|
165
|
-
|
|
165
|
+
}
|
|
166
|
+
if(parentObj?.type === "LeaderBoard"){
|
|
167
|
+
UiSchema.elements[0].elements[0].elements[4] =
|
|
168
|
+
{
|
|
166
169
|
type: "Control",
|
|
167
|
-
scope: "#/properties/
|
|
170
|
+
scope: "#/properties/columnFormat",
|
|
168
171
|
options: {
|
|
169
172
|
widget: "SelectInputField",
|
|
170
173
|
},
|
|
171
174
|
config: {
|
|
172
175
|
layout: { xs: 6, sm: 6, md: 4, lg: 3 },
|
|
173
176
|
main: {
|
|
174
|
-
label: "
|
|
177
|
+
label: "Column Format",
|
|
175
178
|
},
|
|
176
179
|
},
|
|
177
|
-
}
|
|
178
|
-
UiSchema.elements[0].elements[0].elements[11] = {
|
|
179
|
-
type: "Control",
|
|
180
|
-
scope: "#/properties/emptyBox",
|
|
181
|
-
options: {
|
|
182
|
-
widget: "EmptyBox",
|
|
183
|
-
},
|
|
184
|
-
config: {
|
|
185
|
-
layout: { xs: 0, sm: 0, md: 0, lg: 6 },
|
|
186
|
-
},
|
|
187
|
-
}
|
|
180
|
+
};
|
|
188
181
|
}
|
|
189
182
|
|
|
190
183
|
if (sessionStorage.getItem("copiedConfig") ) {
|
|
@@ -183,39 +183,28 @@ export default (funcParams: funcParamsProps) => {
|
|
|
183
183
|
return response?.data;
|
|
184
184
|
}
|
|
185
185
|
},
|
|
186
|
-
onChange: function () {
|
|
187
|
-
if (
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
componentName,
|
|
205
|
-
formDataHolder
|
|
206
|
-
})
|
|
207
|
-
).then(() => {
|
|
208
|
-
if (!isEmpty(formDataHolder)) {
|
|
209
|
-
funcParams.store.setFormdata(pre => ({
|
|
210
|
-
...pre,
|
|
211
|
-
...formDataHolder
|
|
212
|
-
}));
|
|
186
|
+
onChange: async function () {
|
|
187
|
+
if (eventGroups.onChange) {
|
|
188
|
+
const ChangeEventsKeysArray = Object.keys(eventGroups.onChange);
|
|
189
|
+
Promise.all(ChangeEventsKeysArray.map(async (componentName: string) => {
|
|
190
|
+
if (
|
|
191
|
+
funcParams.store?.formData[componentName] !== funcParams.store.newData[componentName] &&
|
|
192
|
+
funcParams.store?.newData[componentName] !== undefined
|
|
193
|
+
) {
|
|
194
|
+
for (const eventConfig of eventGroups.onChange[componentName]) {
|
|
195
|
+
await executeEvents({
|
|
196
|
+
...executeEventsParameters,
|
|
197
|
+
config: eventConfig,
|
|
198
|
+
componentName,
|
|
199
|
+
formDataHolder
|
|
200
|
+
})
|
|
201
|
+
if (eventConfig.Handler === "refresh") {
|
|
202
|
+
funcParams.store.setFormdata((pre) => ({ ...pre, ...formDataHolder }));
|
|
203
|
+
}
|
|
213
204
|
}
|
|
214
|
-
}
|
|
215
|
-
)
|
|
216
|
-
}
|
|
217
|
-
|
|
218
|
-
Promise.allSettled(promises);
|
|
205
|
+
}
|
|
206
|
+
}))
|
|
207
|
+
}
|
|
219
208
|
},
|
|
220
209
|
callExecuteEvents: async function (paramValue, apiBody, eventType: string) {
|
|
221
210
|
let LastCallResponse = undefined;
|
|
@@ -261,33 +250,28 @@ export default (funcParams: funcParamsProps) => {
|
|
|
261
250
|
}
|
|
262
251
|
},
|
|
263
252
|
callHandler: function (eventType: string, functionParameters?: any) {
|
|
264
|
-
const path =
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
...pre,
|
|
284
|
-
...formDataHolder
|
|
285
|
-
}));
|
|
253
|
+
const path = funcParams.dynamicData?.tableButtonPath || funcParams.dynamicData.path.split(".")[funcParams.dynamicData.path.split(".").length - 1];
|
|
254
|
+
if (eventGroups?.[eventType]?.[path] !== undefined) {
|
|
255
|
+
(eventGroups?.[eventType]?.[path].map((eventConfig) => {
|
|
256
|
+
executeEventsParameters.store.functionParameters = functionParameters
|
|
257
|
+
if (eventConfig.Handler === "refresh") {
|
|
258
|
+
executeEvents({
|
|
259
|
+
...executeEventsParameters,
|
|
260
|
+
config: eventConfig,
|
|
261
|
+
componentName: path,
|
|
262
|
+
formDataHolder: formDataHolder
|
|
263
|
+
}).then((res) => {
|
|
264
|
+
funcParams.store.setFormdata((pre) => ({ ...pre, ...formDataHolder }));
|
|
265
|
+
});
|
|
266
|
+
} else {
|
|
267
|
+
executeEvents({
|
|
268
|
+
...executeEventsParameters,
|
|
269
|
+
config: eventConfig,
|
|
270
|
+
componentName: path
|
|
271
|
+
})
|
|
286
272
|
}
|
|
287
|
-
})
|
|
288
|
-
}
|
|
289
|
-
|
|
290
|
-
Promise.allSettled(promises);
|
|
273
|
+
}))
|
|
274
|
+
}
|
|
291
275
|
},
|
|
292
276
|
downloadFile: downloadFile,
|
|
293
277
|
downloadFileFromUrl: downloadFileFromUrl,
|