impaktapps-ui-builder 0.0.383 → 0.0.384

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.
Files changed (27) hide show
  1. package/dist/impaktapps-ui-builder.es.js +232 -57
  2. package/dist/impaktapps-ui-builder.es.js.map +1 -1
  3. package/dist/impaktapps-ui-builder.umd.js +12 -12
  4. package/dist/impaktapps-ui-builder.umd.js.map +1 -1
  5. package/dist/src/impaktapps-ui-builder/builder/build/buildPop.d.ts +1 -0
  6. package/dist/src/impaktapps-ui-builder/builder/build/buildStepper.d.ts +1 -0
  7. package/dist/src/impaktapps-ui-builder/builder/elements/UiSchema/PageMaster/schema.d.ts +6 -0
  8. package/dist/src/impaktapps-ui-builder/builder/services/pageMaster.d.ts +6 -0
  9. package/dist/src/impaktapps-ui-builder/runtime/services/downloadFile.d.ts +1 -0
  10. package/dist/src/impaktapps-ui-builder/runtime/services/service.d.ts +5 -0
  11. package/package.json +1 -1
  12. package/src/impaktapps-ui-builder/builder/build/buildFileInput.ts +1 -1
  13. package/src/impaktapps-ui-builder/builder/build/buildPop.ts +43 -0
  14. package/src/impaktapps-ui-builder/builder/build/buildRadio.ts +1 -1
  15. package/src/impaktapps-ui-builder/builder/build/buildStepper.ts +42 -0
  16. package/src/impaktapps-ui-builder/builder/build/buildUiSchema.ts +8 -0
  17. package/src/impaktapps-ui-builder/builder/build/buildWrapperSection.ts +3 -0
  18. package/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.ts +22 -0
  19. package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/schema.ts +7 -0
  20. package/src/impaktapps-ui-builder/builder/elements/UiSchema/PageMaster/schema.ts +42 -33
  21. package/src/impaktapps-ui-builder/builder/elements/UiSchema/PageMaster/uiSchema.ts +8 -4
  22. package/src/impaktapps-ui-builder/builder/elements/UiSchema/event/schema.ts +7 -3
  23. package/src/impaktapps-ui-builder/builder/services/component.ts +2 -0
  24. package/src/impaktapps-ui-builder/builder/services/utils.ts +1 -1
  25. package/src/impaktapps-ui-builder/runtime/services/downloadFile.ts +22 -7
  26. package/src/impaktapps-ui-builder/runtime/services/events.ts +26 -5
  27. package/src/impaktapps-ui-builder/runtime/services/service.ts +52 -35
@@ -22,6 +22,13 @@ const PageMasterSchema = {
22
22
  }
23
23
  }
24
24
  },
25
+ template: {
26
+ oneOf: [
27
+ { const: "template1", title: "template1" },
28
+ { const: "template2", title: "template2" },
29
+ { const: "template3", title: "template3" }
30
+ ]
31
+ },
25
32
  sectionLabels: {
26
33
  type: "array",
27
34
  items: {
@@ -34,7 +41,7 @@ const PageMasterSchema = {
34
41
  }
35
42
  }
36
43
  },
37
- required: ["label", "name"]
44
+ required: ["template", "name"]
38
45
  };
39
46
  const PageMasterUiSchema = {
40
47
  type: "HorizontalLayout",
@@ -114,15 +121,19 @@ const PageMasterUiSchema = {
114
121
  },
115
122
  {
116
123
  type: "Control",
117
- scope: "#/properties/label",
124
+ scope: "#/properties/template",
118
125
  options: {
119
- widget: "InputField"
126
+ widget: "SelectInputField"
120
127
  },
121
128
  config: {
122
129
  layout: { xs: 11, sm: 11, md: 5.5, lg: 5.5 },
123
130
  main: {
124
- label: "Label",
125
- options: [],
131
+ label: "Template",
132
+ options: [
133
+ { const: "template1", title: "template1" },
134
+ { const: "template2", title: "template2" },
135
+ { const: "template3", title: "template3" }
136
+ ],
126
137
  color: "secondary",
127
138
  required: true
128
139
  }
@@ -1117,7 +1128,7 @@ var lodash = { exports: {} };
1117
1128
  }
1118
1129
  var runInContext = function runInContext2(context) {
1119
1130
  context = context == null ? root : _2.defaults(root.Object(), context, _2.pick(root, contextProps));
1120
- var Array2 = context.Array, Date = context.Date, Error = context.Error, Function2 = context.Function, Math = context.Math, Object2 = context.Object, RegExp2 = context.RegExp, String = context.String, TypeError = context.TypeError;
1131
+ var Array2 = context.Array, Date = context.Date, Error2 = context.Error, Function2 = context.Function, Math = context.Math, Object2 = context.Object, RegExp2 = context.RegExp, String = context.String, TypeError = context.TypeError;
1121
1132
  var arrayProto = Array2.prototype, funcProto = Function2.prototype, objectProto = Object2.prototype;
1122
1133
  var coreJsData = context["__core-js_shared__"];
1123
1134
  var funcToString = funcProto.toString;
@@ -1602,7 +1613,7 @@ var lodash = { exports: {} };
1602
1613
  if (typeof func != "function") {
1603
1614
  throw new TypeError(FUNC_ERROR_TEXT);
1604
1615
  }
1605
- return setTimeout(function() {
1616
+ return setTimeout2(function() {
1606
1617
  func.apply(undefined$1, args);
1607
1618
  }, wait);
1608
1619
  }
@@ -3433,7 +3444,7 @@ var lodash = { exports: {} };
3433
3444
  return object[key];
3434
3445
  }
3435
3446
  var setData = shortOut(baseSetData);
3436
- var setTimeout = ctxSetTimeout || function(func, wait) {
3447
+ var setTimeout2 = ctxSetTimeout || function(func, wait) {
3437
3448
  return root.setTimeout(func, wait);
3438
3449
  };
3439
3450
  var setToString = shortOut(baseSetToString);
@@ -4225,7 +4236,7 @@ var lodash = { exports: {} };
4225
4236
  }
4226
4237
  function leadingEdge(time) {
4227
4238
  lastInvokeTime = time;
4228
- timerId = setTimeout(timerExpired, wait);
4239
+ timerId = setTimeout2(timerExpired, wait);
4229
4240
  return leading ? invokeFunc(time) : result2;
4230
4241
  }
4231
4242
  function remainingWait(time) {
@@ -4241,7 +4252,7 @@ var lodash = { exports: {} };
4241
4252
  if (shouldInvoke(time)) {
4242
4253
  return trailingEdge(time);
4243
4254
  }
4244
- timerId = setTimeout(timerExpired, remainingWait(time));
4255
+ timerId = setTimeout2(timerExpired, remainingWait(time));
4245
4256
  }
4246
4257
  function trailingEdge(time) {
4247
4258
  timerId = undefined$1;
@@ -4272,12 +4283,12 @@ var lodash = { exports: {} };
4272
4283
  }
4273
4284
  if (maxing) {
4274
4285
  clearTimeout(timerId);
4275
- timerId = setTimeout(timerExpired, wait);
4286
+ timerId = setTimeout2(timerExpired, wait);
4276
4287
  return invokeFunc(lastCallTime);
4277
4288
  }
4278
4289
  }
4279
4290
  if (timerId === undefined$1) {
4280
- timerId = setTimeout(timerExpired, wait);
4291
+ timerId = setTimeout2(timerExpired, wait);
4281
4292
  }
4282
4293
  return result2;
4283
4294
  }
@@ -4520,7 +4531,7 @@ var lodash = { exports: {} };
4520
4531
  }
4521
4532
  function isNative(value) {
4522
4533
  if (isMaskable(value)) {
4523
- throw new Error(CORE_ERROR_TEXT);
4534
+ throw new Error2(CORE_ERROR_TEXT);
4524
4535
  }
4525
4536
  return baseIsNative(value);
4526
4537
  }
@@ -5061,7 +5072,7 @@ var lodash = { exports: {} };
5061
5072
  if (!variable) {
5062
5073
  source = "with (obj) {\n" + source + "\n}\n";
5063
5074
  } else if (reForbiddenIdentifierChars.test(variable)) {
5064
- throw new Error(INVALID_TEMPL_VAR_ERROR_TEXT);
5075
+ throw new Error2(INVALID_TEMPL_VAR_ERROR_TEXT);
5065
5076
  }
5066
5077
  source = (isEvaluating ? source.replace(reEmptyStringLeading, "") : source).replace(reEmptyStringMiddle, "$1").replace(reEmptyStringTrailing, "$1;");
5067
5078
  source = "function(" + (variable || "obj") + ") {\n" + (variable ? "" : "obj || (obj = {});\n") + "var __t, __p = ''" + (isEscaping ? ", __e = _.escape" : "") + (isEvaluating ? ", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n" : ";\n") + source + "return __p\n}";
@@ -5180,7 +5191,7 @@ var lodash = { exports: {} };
5180
5191
  try {
5181
5192
  return apply(func, undefined$1, args);
5182
5193
  } catch (e) {
5183
- return isError(e) ? e : new Error(e);
5194
+ return isError(e) ? e : new Error2(e);
5184
5195
  }
5185
5196
  });
5186
5197
  var bindAll = flatRest(function(object, methodNames) {
@@ -5880,11 +5891,13 @@ const ComponentSchema = {
5880
5891
  { title: "LeaderBoard", const: "LeaderBoard" },
5881
5892
  { title: "MultipleSelect", const: "MultipleSelect" },
5882
5893
  { title: "PanCardText", const: "PanCardText" },
5894
+ { title: "Popup Container", const: "PopUp" },
5883
5895
  { title: "ProgressBar", const: "ProgressBar" },
5884
5896
  { title: "ProgressBar Card", const: "ProgressBarCard" },
5885
5897
  { title: "Select", const: "Select" },
5886
5898
  { title: "Slider", const: "Slider" },
5887
5899
  { title: "SpeedoMeter", const: "SpeedoMeter" },
5900
+ { title: "Stepper Container", const: "Stepper" },
5888
5901
  { title: "Radio", const: "Radio" },
5889
5902
  { title: "Rank", const: "Rank" },
5890
5903
  { title: "Rank Card", const: "RankCard" },
@@ -5897,6 +5910,12 @@ const ComponentSchema = {
5897
5910
  { title: "Upload File", const: "UploadFile" }
5898
5911
  ]
5899
5912
  },
5913
+ orientation: {
5914
+ oneOf: [
5915
+ { title: "Horizontal", const: "horizontal" },
5916
+ { title: "Vertical", const: "vertical" }
5917
+ ]
5918
+ },
5900
5919
  method: {
5901
5920
  type: "string",
5902
5921
  oneOf: [
@@ -6773,6 +6792,24 @@ const GraphSection = {
6773
6792
  const buildPropertiesSection = function(type) {
6774
6793
  let uiSchema = _.cloneDeep(GraphSection);
6775
6794
  switch (type) {
6795
+ case "Stepper":
6796
+ uiSchema.elements = [
6797
+ getRadioInputField("resetButton", "Reset Button", ["YES", "NO"]),
6798
+ getInputField("resetText", "Reset Text"),
6799
+ getInputField("completeText", "Complete Text"),
6800
+ getSelectField("orientation", "Orientation Type"),
6801
+ EmptyBox,
6802
+ getArrayControl("sectionLabels", "label")
6803
+ ];
6804
+ break;
6805
+ case "PopUp":
6806
+ uiSchema.elements = [
6807
+ getRadioInputField("fullScreen", "FullScreen", ["YES", "NO"]),
6808
+ getRadioInputField("fullWidth", "FullWidth", ["YES", "NO"]),
6809
+ getInputField("maxWidth", "Max. Width"),
6810
+ EmptyBox
6811
+ ];
6812
+ break;
6776
6813
  case "Text":
6777
6814
  uiSchema.elements = [
6778
6815
  getInputField("placeholder", "Placeholder"),
@@ -7254,14 +7291,14 @@ const getFormdataFromLocalStorage = (path) => {
7254
7291
  };
7255
7292
  async function saveHandler(store2, service2, submitHandler, pageName) {
7256
7293
  var _a, _b;
7257
- (_a = store2.searchParams) == null ? void 0 : _a.get("id");
7294
+ const id = (_a = store2.searchParams) == null ? void 0 : _a.get("id");
7258
7295
  const path = (_b = store2.searchParams) == null ? void 0 : _b.get("path");
7259
7296
  saveFormdataInLocalStorage(store2.ctx.core.data, path);
7260
7297
  const config = JSON.parse(localStorage.getItem("pageFormdata"));
7261
7298
  if (_.isEmpty(store2.ctx.core.errors)) {
7262
7299
  try {
7263
7300
  const saveReturn = await submitHandler(store2, service2, config);
7264
- navigateHandler(store2, true, pageName ? `/${pageName}?id=${saveReturn.id}` : "/PageMasterRecords");
7301
+ navigateHandler(store2, true, pageName ? `/${pageName}?id=${id}` : "/PageMasterRecords");
7265
7302
  } catch (err) {
7266
7303
  navigateHandler(store2, false);
7267
7304
  }
@@ -7325,7 +7362,9 @@ const sectionLabels = {
7325
7362
  Array: ["Core", "Components", "Validation"],
7326
7363
  Radio: ["Core", "Properties", "style", "Event", "Validation"],
7327
7364
  Text: ["Core", "Properties", "style", "Event", "Validation"],
7328
- TextArea: ["Core", "Properties", "style", "Event", "Validation"]
7365
+ TextArea: ["Core", "Properties", "style", "Event", "Validation"],
7366
+ PopUp: ["Core", "Components", "Properties", "style"],
7367
+ Stepper: ["Core", "Components", "Properties", "Event", "style"]
7329
7368
  };
7330
7369
  const refreshPage = (type, store2) => {
7331
7370
  var _a;
@@ -7554,12 +7593,14 @@ const EventSchema = {
7554
7593
  type: "string",
7555
7594
  oneOf: [
7556
7595
  { title: "Click Event", const: "onClick" },
7557
- { title: "onStart", const: "onStart" },
7558
7596
  { title: "Load Event", const: "onLoad" },
7559
- { title: "File Upload Event", const: "onUpload" },
7560
- { title: "File Download Event", const: "onDownload" },
7561
7597
  { title: "Change Event", const: "onChange" },
7562
7598
  { title: "Success", const: "Success" },
7599
+ { title: "onStart", const: "onStart" },
7600
+ { title: "File Upload Event", const: "onUpload" },
7601
+ { title: "Back Event", const: "onBack" },
7602
+ { title: "Next Event", const: "onNext" },
7603
+ { title: "File Download Event", const: "onDownload" },
7563
7604
  { title: "Fail", const: "Fail" }
7564
7605
  ]
7565
7606
  },
@@ -7576,7 +7617,8 @@ const EventSchema = {
7576
7617
  type: "string",
7577
7618
  oneOf: [
7578
7619
  { title: "RankProvider", const: "RankProvider" },
7579
- { title: "Download File", const: "downloadFile" }
7620
+ { title: "Download File", const: "downloadFile" },
7621
+ { title: "Download", const: "download" }
7580
7622
  ]
7581
7623
  },
7582
7624
  body: {
@@ -8169,6 +8211,20 @@ const downloadFile$1 = (obj) => {
8169
8211
  URL.revokeObjectURL(url);
8170
8212
  document.body.removeChild(link);
8171
8213
  };
8214
+ const doDownload = (response2, service2) => {
8215
+ let url = `${service2.defaults.baseURL}/${response2.path}`;
8216
+ if (response2 == null ? void 0 : response2.params) {
8217
+ const keysArray = Object.keys(response2 == null ? void 0 : response2.params);
8218
+ keysArray.map((e, i) => {
8219
+ url = url + `${i === 0 ? "?" : "&"}${e}=${response2 == null ? void 0 : response2.params[e]}`;
8220
+ });
8221
+ }
8222
+ const link = document.createElement("a");
8223
+ link.href = url;
8224
+ document.body.appendChild(link);
8225
+ link.click();
8226
+ link.parentNode.removeChild(link);
8227
+ };
8172
8228
  const executeEvents = async (params2) => {
8173
8229
  var _a, _b, _c;
8174
8230
  let nextEvent = [];
@@ -8195,6 +8251,7 @@ const executeEvents = async (params2) => {
8195
8251
  return finalResponse;
8196
8252
  };
8197
8253
  async function executeEventsHandler(params2) {
8254
+ var _a, _b, _c;
8198
8255
  if (params2.config.Handler === "api") {
8199
8256
  return await executeApiEventHandler(params2);
8200
8257
  } else if (params2.config.Handler === "inBuiltFunction") {
@@ -8212,6 +8269,12 @@ async function executeEventsHandler(params2) {
8212
8269
  params2.service
8213
8270
  );
8214
8271
  return result;
8272
+ } else if (params2.config.Handler === "onBackHandler") {
8273
+ return (_a = params2.store.functionParameters) == null ? void 0 : _a.handleBack();
8274
+ } else if (params2.config.Handler === "onNextHandler") {
8275
+ return (_b = params2.store.functionParameters) == null ? void 0 : _b.handleNext();
8276
+ } else if (params2.config.Handler === "onResetHandler") {
8277
+ return (_c = params2.store.functionParameters) == null ? void 0 : _c.handleReset();
8215
8278
  }
8216
8279
  }
8217
8280
  async function executeRefreshHandler(params2) {
@@ -8276,7 +8339,7 @@ async function mergeFormdata(handlerResponse, componentName, eventConfig, store2
8276
8339
  ...(_a = pre.properties) == null ? void 0 : _a[componentName],
8277
8340
  type: "array",
8278
8341
  items: {
8279
- oneOf: handlerResponse.data
8342
+ oneOf: handlerResponse == null ? void 0 : handlerResponse.data
8280
8343
  }
8281
8344
  }
8282
8345
  }
@@ -8293,7 +8356,7 @@ async function mergeFormdata(handlerResponse, componentName, eventConfig, store2
8293
8356
  store2.setFormdata((pre) => {
8294
8357
  return { ...pre, [componentName]: eventConfig.lazyLoading ? handlerResponse.data.data : handlerResponse.data };
8295
8358
  });
8296
- await service2.get("https://jsonplaceholder.typicode.com/posts/1");
8359
+ await asyncOperation();
8297
8360
  }
8298
8361
  }
8299
8362
  }
@@ -8367,6 +8430,16 @@ function getRefreshElements(eventConfig, eventGropus) {
8367
8430
  console.log(result);
8368
8431
  return result;
8369
8432
  }
8433
+ function asyncOperation() {
8434
+ return new Promise((resolve, reject) => {
8435
+ setTimeout(() => {
8436
+ {
8437
+ resolve("Operation completed successfully!");
8438
+ reject(new Error("Operation failed!"));
8439
+ }
8440
+ }, 50);
8441
+ });
8442
+ }
8370
8443
  let compType;
8371
8444
  let eventGroups = {};
8372
8445
  const notifyUiSchema = {
@@ -8397,6 +8470,9 @@ const extractEvents = (eventConfig) => {
8397
8470
  if (!!!SuccessEvent && event2.eventType === "onLoad") {
8398
8471
  event2.events.push({ Handler: "mergeFormdata", eventType: "Success", type: compType, lazyLoading: eventConfig.lazyLoading === "YES" ? true : false });
8399
8472
  }
8473
+ if (!!!SuccessEvent && (event2.eventType === "onBack" || event2.eventType === "onNext" || event2.eventType === "onReset")) {
8474
+ event2.events.push({ Handler: `${event2.eventType}Handler`, eventType: "Success", type: compType, lazyLoading: eventConfig.lazyLoading === "YES" ? true : false });
8475
+ }
8400
8476
  eventGroups[event2.eventType][eventConfigObj.name].push({ ...event2, type: compType });
8401
8477
  });
8402
8478
  }
@@ -8417,7 +8493,7 @@ var service = (funcParams) => {
8417
8493
  dynamicData: funcParams.dynamicData,
8418
8494
  userValue: funcParams.userValue,
8419
8495
  service: funcParams.service,
8420
- serviceHolder: { downloadFile: downloadFile$1 },
8496
+ serviceHolder: { downloadFile: downloadFile$1, download: doDownload },
8421
8497
  eventGroups
8422
8498
  };
8423
8499
  return {
@@ -8455,37 +8531,13 @@ var service = (funcParams) => {
8455
8531
  });
8456
8532
  },
8457
8533
  onClick: async function() {
8458
- var _a;
8459
- const path = ((_a = funcParams.dynamicData) == null ? void 0 : _a.tableButtonPath) || funcParams.dynamicData.path.split(".")[0];
8460
- for (const eventConfig of eventGroups == null ? void 0 : eventGroups.onClick[path]) {
8461
- await executeEvents({
8462
- ...executeEventsParameters,
8463
- config: eventConfig,
8464
- componentName: path
8465
- });
8466
- }
8534
+ await this.callHandler("onClick");
8467
8535
  },
8468
- onFileDownload: async () => {
8469
- var _a;
8470
- const path = ((_a = funcParams.dynamicData) == null ? void 0 : _a.tableButtonPath) || funcParams.dynamicData.path.split(".")[0];
8471
- for (const eventConfig of eventGroups == null ? void 0 : eventGroups.onDownload[path]) {
8472
- await executeEvents({
8473
- ...executeEventsParameters,
8474
- config: eventConfig,
8475
- componentName: path
8476
- });
8477
- }
8536
+ onFileDownload: async function() {
8537
+ await this.callHandler("onDownload");
8478
8538
  },
8479
- onFileUpload: async () => {
8480
- var _a;
8481
- const path = ((_a = funcParams.dynamicData) == null ? void 0 : _a.tableButtonPath) || funcParams.dynamicData.path.split(".")[0];
8482
- for (const eventConfig of eventGroups == null ? void 0 : eventGroups.onUpload[path]) {
8483
- await executeEvents({
8484
- ...executeEventsParameters,
8485
- config: eventConfig,
8486
- componentName: path
8487
- });
8488
- }
8539
+ onFileUpload: async function() {
8540
+ await this.callHandler("onUpload");
8489
8541
  },
8490
8542
  onPaginationChange: async function(paginationValues) {
8491
8543
  var _a;
@@ -8549,7 +8601,46 @@ var service = (funcParams) => {
8549
8601
  }
8550
8602
  return LastCallResponse;
8551
8603
  },
8552
- downloadFile: downloadFile$1
8604
+ onBack: async function(functionParameters) {
8605
+ var _a, _b;
8606
+ const path = ((_a = funcParams.dynamicData) == null ? void 0 : _a.tableButtonPath) || funcParams.dynamicData.path.split(".")[0];
8607
+ await this.callHandler("onBack", functionParameters);
8608
+ if (((_b = eventGroups == null ? void 0 : eventGroups["onBack"]) == null ? void 0 : _b[path]) === void 0) {
8609
+ functionParameters == null ? void 0 : functionParameters.handleBack();
8610
+ }
8611
+ },
8612
+ onNext: async function(functionParameters) {
8613
+ var _a, _b;
8614
+ const path = ((_a = funcParams.dynamicData) == null ? void 0 : _a.tableButtonPath) || funcParams.dynamicData.path.split(".")[0];
8615
+ await this.callHandler("onNext", functionParameters);
8616
+ if (((_b = eventGroups == null ? void 0 : eventGroups["onNext"]) == null ? void 0 : _b[path]) === void 0) {
8617
+ functionParameters == null ? void 0 : functionParameters.handleNext();
8618
+ }
8619
+ },
8620
+ onReset: async function(functionParameters) {
8621
+ var _a, _b;
8622
+ const path = ((_a = funcParams.dynamicData) == null ? void 0 : _a.tableButtonPath) || funcParams.dynamicData.path.split(".")[0];
8623
+ await this.callHandler("onReset", functionParameters);
8624
+ if (((_b = eventGroups == null ? void 0 : eventGroups["onReset"]) == null ? void 0 : _b[path]) === void 0) {
8625
+ functionParameters == null ? void 0 : functionParameters.handleReset();
8626
+ }
8627
+ },
8628
+ callHandler: async function(eventType, functionParameters) {
8629
+ var _a, _b, _c;
8630
+ const path = ((_a = funcParams.dynamicData) == null ? void 0 : _a.tableButtonPath) || funcParams.dynamicData.path.split(".")[0];
8631
+ if (((_b = eventGroups == null ? void 0 : eventGroups[eventType]) == null ? void 0 : _b[path]) !== void 0) {
8632
+ for (const eventConfig of (_c = eventGroups == null ? void 0 : eventGroups[eventType]) == null ? void 0 : _c[path]) {
8633
+ executeEventsParameters.store.functionParameters = functionParameters;
8634
+ await executeEvents({
8635
+ ...executeEventsParameters,
8636
+ config: eventConfig,
8637
+ componentName: path
8638
+ });
8639
+ }
8640
+ }
8641
+ },
8642
+ downloadFile: downloadFile$1,
8643
+ download: doDownload
8553
8644
  };
8554
8645
  };
8555
8646
  var leaderBoard = {
@@ -9371,6 +9462,9 @@ const buildWrapperSection = (config, componentScope) => {
9371
9462
  const wrapper = _.cloneDeep(WrapperSection);
9372
9463
  wrapper.config.main.label = config.label;
9373
9464
  wrapper.config.main.divider = config.divider === "YES" ? true : false;
9465
+ if (config.style) {
9466
+ wrapper.config.style = JSON.parse(config.style);
9467
+ }
9374
9468
  return wrapper;
9375
9469
  };
9376
9470
  var TextInputField = {
@@ -10123,7 +10217,7 @@ const RadioUiSchema = {
10123
10217
  const buildRadio = (config, componentScope) => {
10124
10218
  const Radio = _.cloneDeep(RadioUiSchema);
10125
10219
  Radio.scope = componentScope;
10126
- Radio.config.main.heading = config.label;
10220
+ Radio.config.main.label = config.label;
10127
10221
  if (config.layout) {
10128
10222
  Radio.config.layout = createLayoutFormat(config.layout);
10129
10223
  }
@@ -10248,7 +10342,7 @@ const FileInput = {
10248
10342
  const buildFileInput = (config, componentScope) => {
10249
10343
  const box = _.cloneDeep(FileInput);
10250
10344
  box.scope = componentScope;
10251
- box.config.main.heading = config.label;
10345
+ box.config.main.label = config.label;
10252
10346
  if (config.layout) {
10253
10347
  box.config.layout = createLayoutFormat(config.layout);
10254
10348
  }
@@ -10257,6 +10351,81 @@ const buildFileInput = (config, componentScope) => {
10257
10351
  }
10258
10352
  return box;
10259
10353
  };
10354
+ const Stepper = {
10355
+ type: "Control",
10356
+ scope: "#/properties/Stepper",
10357
+ options: {
10358
+ widget: "Stepper"
10359
+ },
10360
+ config: {
10361
+ main: {
10362
+ steps: [{ label: "First" }, { label: "Second" }, { label: "Third" }],
10363
+ resetButton: false,
10364
+ resetText: "Reset",
10365
+ orientation: "vertical"
10366
+ }
10367
+ },
10368
+ "elements": []
10369
+ };
10370
+ const buildStepper = (config, componentScope) => {
10371
+ const stepper = _.cloneDeep(Stepper);
10372
+ stepper.scope = componentScope;
10373
+ stepper.config.main.resetButton = config.resetButton === "YES" ? true : false;
10374
+ stepper.config.main.resetText = config.resetText || "ResetData";
10375
+ stepper.config.main.completeText = config.completeText || "Complete Text";
10376
+ stepper.config.main.orientation = config.orientation || "horizontal";
10377
+ if (config.sectionLabels) {
10378
+ stepper.config.main.label = config.sectionLabels.map((e, i) => {
10379
+ return { label: e.label, id: i };
10380
+ });
10381
+ }
10382
+ if (config.layout) {
10383
+ stepper.config.layout = createLayoutFormat(config.layout);
10384
+ }
10385
+ if (config.style) {
10386
+ stepper.config.style = JSON.parse(config.style);
10387
+ }
10388
+ return stepper;
10389
+ };
10390
+ const PopUP = {
10391
+ type: "Control",
10392
+ scope: "#/properties/text",
10393
+ options: {
10394
+ widget: "PopUp"
10395
+ },
10396
+ config: {
10397
+ layout: {
10398
+ xs: 12,
10399
+ sm: 12,
10400
+ md: 12,
10401
+ lg: 12
10402
+ },
10403
+ main: {
10404
+ label: "PopUp",
10405
+ fullScreen: false,
10406
+ fullWidth: false,
10407
+ maxWidth: false,
10408
+ alignItems: false,
10409
+ spacing: 2
10410
+ },
10411
+ style: {}
10412
+ }
10413
+ };
10414
+ const buildPopUp = (config, componentScope) => {
10415
+ const popup = _.cloneDeep(PopUP);
10416
+ popup.scope = componentScope;
10417
+ popup.config.main.title = config.label;
10418
+ popup.config.main.fullScreen = config.fullScreen === "YES" ? true : false;
10419
+ popup.config.main.fullWidth = config.fullWidth === "YES" ? true : false;
10420
+ popup.config.main.maxWidth = config.maxWidth || false;
10421
+ if (config.layout) {
10422
+ popup.config.layout = createLayoutFormat(config.layout);
10423
+ }
10424
+ if (config.style) {
10425
+ PopUP.config.style = JSON.parse(config.style);
10426
+ }
10427
+ return popup;
10428
+ };
10260
10429
  let schema = {
10261
10430
  type: "object",
10262
10431
  properties: {},
@@ -10375,6 +10544,12 @@ const buildUiSchema = (config) => {
10375
10544
  let elements = {};
10376
10545
  const componentScope = `#/properties/${config.name}`;
10377
10546
  switch (config.type) {
10547
+ case "Stepper":
10548
+ elements = buildStepper(config, componentScope);
10549
+ break;
10550
+ case "PopUp":
10551
+ elements = buildPopUp(config, componentScope);
10552
+ break;
10378
10553
  case "FileInput":
10379
10554
  elements = buildFileInput(config, componentScope);
10380
10555
  break;