impaktapps-ui-builder 0.0.383 → 0.0.385

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 -58
  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 +0 -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"),
@@ -7253,9 +7290,8 @@ const getFormdataFromLocalStorage = (path) => {
7253
7290
  return returnValue || pageFormdata;
7254
7291
  };
7255
7292
  async function saveHandler(store2, service2, submitHandler, pageName) {
7256
- var _a, _b;
7257
- (_a = store2.searchParams) == null ? void 0 : _a.get("id");
7258
- const path = (_b = store2.searchParams) == null ? void 0 : _b.get("path");
7293
+ var _a;
7294
+ const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
7259
7295
  saveFormdataInLocalStorage(store2.ctx.core.data, path);
7260
7296
  const config = JSON.parse(localStorage.getItem("pageFormdata"));
7261
7297
  if (_.isEmpty(store2.ctx.core.errors)) {
@@ -7325,7 +7361,9 @@ const sectionLabels = {
7325
7361
  Array: ["Core", "Components", "Validation"],
7326
7362
  Radio: ["Core", "Properties", "style", "Event", "Validation"],
7327
7363
  Text: ["Core", "Properties", "style", "Event", "Validation"],
7328
- TextArea: ["Core", "Properties", "style", "Event", "Validation"]
7364
+ TextArea: ["Core", "Properties", "style", "Event", "Validation"],
7365
+ PopUp: ["Core", "Components", "Properties", "style"],
7366
+ Stepper: ["Core", "Components", "Properties", "Event", "style"]
7329
7367
  };
7330
7368
  const refreshPage = (type, store2) => {
7331
7369
  var _a;
@@ -7554,12 +7592,14 @@ const EventSchema = {
7554
7592
  type: "string",
7555
7593
  oneOf: [
7556
7594
  { title: "Click Event", const: "onClick" },
7557
- { title: "onStart", const: "onStart" },
7558
7595
  { title: "Load Event", const: "onLoad" },
7559
- { title: "File Upload Event", const: "onUpload" },
7560
- { title: "File Download Event", const: "onDownload" },
7561
7596
  { title: "Change Event", const: "onChange" },
7562
7597
  { title: "Success", const: "Success" },
7598
+ { title: "onStart", const: "onStart" },
7599
+ { title: "File Upload Event", const: "onUpload" },
7600
+ { title: "Back Event", const: "onBack" },
7601
+ { title: "Next Event", const: "onNext" },
7602
+ { title: "File Download Event", const: "onDownload" },
7563
7603
  { title: "Fail", const: "Fail" }
7564
7604
  ]
7565
7605
  },
@@ -7576,7 +7616,8 @@ const EventSchema = {
7576
7616
  type: "string",
7577
7617
  oneOf: [
7578
7618
  { title: "RankProvider", const: "RankProvider" },
7579
- { title: "Download File", const: "downloadFile" }
7619
+ { title: "Download File", const: "downloadFile" },
7620
+ { title: "Download", const: "download" }
7580
7621
  ]
7581
7622
  },
7582
7623
  body: {
@@ -8169,6 +8210,20 @@ const downloadFile$1 = (obj) => {
8169
8210
  URL.revokeObjectURL(url);
8170
8211
  document.body.removeChild(link);
8171
8212
  };
8213
+ const doDownload = (response2, service2) => {
8214
+ let url = `${service2.defaults.baseURL}/${response2.path}`;
8215
+ if (response2 == null ? void 0 : response2.params) {
8216
+ const keysArray = Object.keys(response2 == null ? void 0 : response2.params);
8217
+ keysArray.map((e, i) => {
8218
+ url = url + `${i === 0 ? "?" : "&"}${e}=${response2 == null ? void 0 : response2.params[e]}`;
8219
+ });
8220
+ }
8221
+ const link = document.createElement("a");
8222
+ link.href = url;
8223
+ document.body.appendChild(link);
8224
+ link.click();
8225
+ link.parentNode.removeChild(link);
8226
+ };
8172
8227
  const executeEvents = async (params2) => {
8173
8228
  var _a, _b, _c;
8174
8229
  let nextEvent = [];
@@ -8195,6 +8250,7 @@ const executeEvents = async (params2) => {
8195
8250
  return finalResponse;
8196
8251
  };
8197
8252
  async function executeEventsHandler(params2) {
8253
+ var _a, _b, _c;
8198
8254
  if (params2.config.Handler === "api") {
8199
8255
  return await executeApiEventHandler(params2);
8200
8256
  } else if (params2.config.Handler === "inBuiltFunction") {
@@ -8212,6 +8268,12 @@ async function executeEventsHandler(params2) {
8212
8268
  params2.service
8213
8269
  );
8214
8270
  return result;
8271
+ } else if (params2.config.Handler === "onBackHandler") {
8272
+ return (_a = params2.store.functionParameters) == null ? void 0 : _a.handleBack();
8273
+ } else if (params2.config.Handler === "onNextHandler") {
8274
+ return (_b = params2.store.functionParameters) == null ? void 0 : _b.handleNext();
8275
+ } else if (params2.config.Handler === "onResetHandler") {
8276
+ return (_c = params2.store.functionParameters) == null ? void 0 : _c.handleReset();
8215
8277
  }
8216
8278
  }
8217
8279
  async function executeRefreshHandler(params2) {
@@ -8276,7 +8338,7 @@ async function mergeFormdata(handlerResponse, componentName, eventConfig, store2
8276
8338
  ...(_a = pre.properties) == null ? void 0 : _a[componentName],
8277
8339
  type: "array",
8278
8340
  items: {
8279
- oneOf: handlerResponse.data
8341
+ oneOf: handlerResponse == null ? void 0 : handlerResponse.data
8280
8342
  }
8281
8343
  }
8282
8344
  }
@@ -8293,7 +8355,7 @@ async function mergeFormdata(handlerResponse, componentName, eventConfig, store2
8293
8355
  store2.setFormdata((pre) => {
8294
8356
  return { ...pre, [componentName]: eventConfig.lazyLoading ? handlerResponse.data.data : handlerResponse.data };
8295
8357
  });
8296
- await service2.get("https://jsonplaceholder.typicode.com/posts/1");
8358
+ await asyncOperation();
8297
8359
  }
8298
8360
  }
8299
8361
  }
@@ -8367,6 +8429,16 @@ function getRefreshElements(eventConfig, eventGropus) {
8367
8429
  console.log(result);
8368
8430
  return result;
8369
8431
  }
8432
+ function asyncOperation() {
8433
+ return new Promise((resolve, reject) => {
8434
+ setTimeout(() => {
8435
+ {
8436
+ resolve("Operation completed successfully!");
8437
+ reject(new Error("Operation failed!"));
8438
+ }
8439
+ }, 50);
8440
+ });
8441
+ }
8370
8442
  let compType;
8371
8443
  let eventGroups = {};
8372
8444
  const notifyUiSchema = {
@@ -8397,6 +8469,9 @@ const extractEvents = (eventConfig) => {
8397
8469
  if (!!!SuccessEvent && event2.eventType === "onLoad") {
8398
8470
  event2.events.push({ Handler: "mergeFormdata", eventType: "Success", type: compType, lazyLoading: eventConfig.lazyLoading === "YES" ? true : false });
8399
8471
  }
8472
+ if (!!!SuccessEvent && (event2.eventType === "onBack" || event2.eventType === "onNext" || event2.eventType === "onReset")) {
8473
+ event2.events.push({ Handler: `${event2.eventType}Handler`, eventType: "Success", type: compType, lazyLoading: eventConfig.lazyLoading === "YES" ? true : false });
8474
+ }
8400
8475
  eventGroups[event2.eventType][eventConfigObj.name].push({ ...event2, type: compType });
8401
8476
  });
8402
8477
  }
@@ -8417,7 +8492,7 @@ var service = (funcParams) => {
8417
8492
  dynamicData: funcParams.dynamicData,
8418
8493
  userValue: funcParams.userValue,
8419
8494
  service: funcParams.service,
8420
- serviceHolder: { downloadFile: downloadFile$1 },
8495
+ serviceHolder: { downloadFile: downloadFile$1, download: doDownload },
8421
8496
  eventGroups
8422
8497
  };
8423
8498
  return {
@@ -8455,37 +8530,13 @@ var service = (funcParams) => {
8455
8530
  });
8456
8531
  },
8457
8532
  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
- }
8533
+ await this.callHandler("onClick");
8467
8534
  },
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
- }
8535
+ onFileDownload: async function() {
8536
+ await this.callHandler("onDownload");
8478
8537
  },
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
- }
8538
+ onFileUpload: async function() {
8539
+ await this.callHandler("onUpload");
8489
8540
  },
8490
8541
  onPaginationChange: async function(paginationValues) {
8491
8542
  var _a;
@@ -8549,7 +8600,46 @@ var service = (funcParams) => {
8549
8600
  }
8550
8601
  return LastCallResponse;
8551
8602
  },
8552
- downloadFile: downloadFile$1
8603
+ onBack: async function(functionParameters) {
8604
+ var _a, _b;
8605
+ const path = ((_a = funcParams.dynamicData) == null ? void 0 : _a.tableButtonPath) || funcParams.dynamicData.path.split(".")[0];
8606
+ await this.callHandler("onBack", functionParameters);
8607
+ if (((_b = eventGroups == null ? void 0 : eventGroups["onBack"]) == null ? void 0 : _b[path]) === void 0) {
8608
+ functionParameters == null ? void 0 : functionParameters.handleBack();
8609
+ }
8610
+ },
8611
+ onNext: async function(functionParameters) {
8612
+ var _a, _b;
8613
+ const path = ((_a = funcParams.dynamicData) == null ? void 0 : _a.tableButtonPath) || funcParams.dynamicData.path.split(".")[0];
8614
+ await this.callHandler("onNext", functionParameters);
8615
+ if (((_b = eventGroups == null ? void 0 : eventGroups["onNext"]) == null ? void 0 : _b[path]) === void 0) {
8616
+ functionParameters == null ? void 0 : functionParameters.handleNext();
8617
+ }
8618
+ },
8619
+ onReset: async function(functionParameters) {
8620
+ var _a, _b;
8621
+ const path = ((_a = funcParams.dynamicData) == null ? void 0 : _a.tableButtonPath) || funcParams.dynamicData.path.split(".")[0];
8622
+ await this.callHandler("onReset", functionParameters);
8623
+ if (((_b = eventGroups == null ? void 0 : eventGroups["onReset"]) == null ? void 0 : _b[path]) === void 0) {
8624
+ functionParameters == null ? void 0 : functionParameters.handleReset();
8625
+ }
8626
+ },
8627
+ callHandler: async function(eventType, functionParameters) {
8628
+ var _a, _b, _c;
8629
+ const path = ((_a = funcParams.dynamicData) == null ? void 0 : _a.tableButtonPath) || funcParams.dynamicData.path.split(".")[0];
8630
+ if (((_b = eventGroups == null ? void 0 : eventGroups[eventType]) == null ? void 0 : _b[path]) !== void 0) {
8631
+ for (const eventConfig of (_c = eventGroups == null ? void 0 : eventGroups[eventType]) == null ? void 0 : _c[path]) {
8632
+ executeEventsParameters.store.functionParameters = functionParameters;
8633
+ await executeEvents({
8634
+ ...executeEventsParameters,
8635
+ config: eventConfig,
8636
+ componentName: path
8637
+ });
8638
+ }
8639
+ }
8640
+ },
8641
+ downloadFile: downloadFile$1,
8642
+ download: doDownload
8553
8643
  };
8554
8644
  };
8555
8645
  var leaderBoard = {
@@ -9371,6 +9461,9 @@ const buildWrapperSection = (config, componentScope) => {
9371
9461
  const wrapper = _.cloneDeep(WrapperSection);
9372
9462
  wrapper.config.main.label = config.label;
9373
9463
  wrapper.config.main.divider = config.divider === "YES" ? true : false;
9464
+ if (config.style) {
9465
+ wrapper.config.style = JSON.parse(config.style);
9466
+ }
9374
9467
  return wrapper;
9375
9468
  };
9376
9469
  var TextInputField = {
@@ -10123,7 +10216,7 @@ const RadioUiSchema = {
10123
10216
  const buildRadio = (config, componentScope) => {
10124
10217
  const Radio = _.cloneDeep(RadioUiSchema);
10125
10218
  Radio.scope = componentScope;
10126
- Radio.config.main.heading = config.label;
10219
+ Radio.config.main.label = config.label;
10127
10220
  if (config.layout) {
10128
10221
  Radio.config.layout = createLayoutFormat(config.layout);
10129
10222
  }
@@ -10248,7 +10341,7 @@ const FileInput = {
10248
10341
  const buildFileInput = (config, componentScope) => {
10249
10342
  const box = _.cloneDeep(FileInput);
10250
10343
  box.scope = componentScope;
10251
- box.config.main.heading = config.label;
10344
+ box.config.main.label = config.label;
10252
10345
  if (config.layout) {
10253
10346
  box.config.layout = createLayoutFormat(config.layout);
10254
10347
  }
@@ -10257,6 +10350,81 @@ const buildFileInput = (config, componentScope) => {
10257
10350
  }
10258
10351
  return box;
10259
10352
  };
10353
+ const Stepper = {
10354
+ type: "Control",
10355
+ scope: "#/properties/Stepper",
10356
+ options: {
10357
+ widget: "Stepper"
10358
+ },
10359
+ config: {
10360
+ main: {
10361
+ steps: [{ label: "First" }, { label: "Second" }, { label: "Third" }],
10362
+ resetButton: false,
10363
+ resetText: "Reset",
10364
+ orientation: "vertical"
10365
+ }
10366
+ },
10367
+ "elements": []
10368
+ };
10369
+ const buildStepper = (config, componentScope) => {
10370
+ const stepper = _.cloneDeep(Stepper);
10371
+ stepper.scope = componentScope;
10372
+ stepper.config.main.resetButton = config.resetButton === "YES" ? true : false;
10373
+ stepper.config.main.resetText = config.resetText || "ResetData";
10374
+ stepper.config.main.completeText = config.completeText || "Complete Text";
10375
+ stepper.config.main.orientation = config.orientation || "horizontal";
10376
+ if (config.sectionLabels) {
10377
+ stepper.config.main.label = config.sectionLabels.map((e, i) => {
10378
+ return { label: e.label, id: i };
10379
+ });
10380
+ }
10381
+ if (config.layout) {
10382
+ stepper.config.layout = createLayoutFormat(config.layout);
10383
+ }
10384
+ if (config.style) {
10385
+ stepper.config.style = JSON.parse(config.style);
10386
+ }
10387
+ return stepper;
10388
+ };
10389
+ const PopUP = {
10390
+ type: "Control",
10391
+ scope: "#/properties/text",
10392
+ options: {
10393
+ widget: "PopUp"
10394
+ },
10395
+ config: {
10396
+ layout: {
10397
+ xs: 12,
10398
+ sm: 12,
10399
+ md: 12,
10400
+ lg: 12
10401
+ },
10402
+ main: {
10403
+ label: "PopUp",
10404
+ fullScreen: false,
10405
+ fullWidth: false,
10406
+ maxWidth: false,
10407
+ alignItems: false,
10408
+ spacing: 2
10409
+ },
10410
+ style: {}
10411
+ }
10412
+ };
10413
+ const buildPopUp = (config, componentScope) => {
10414
+ const popup = _.cloneDeep(PopUP);
10415
+ popup.scope = componentScope;
10416
+ popup.config.main.title = config.label;
10417
+ popup.config.main.fullScreen = config.fullScreen === "YES" ? true : false;
10418
+ popup.config.main.fullWidth = config.fullWidth === "YES" ? true : false;
10419
+ popup.config.main.maxWidth = config.maxWidth || false;
10420
+ if (config.layout) {
10421
+ popup.config.layout = createLayoutFormat(config.layout);
10422
+ }
10423
+ if (config.style) {
10424
+ PopUP.config.style = JSON.parse(config.style);
10425
+ }
10426
+ return popup;
10427
+ };
10260
10428
  let schema = {
10261
10429
  type: "object",
10262
10430
  properties: {},
@@ -10375,6 +10543,12 @@ const buildUiSchema = (config) => {
10375
10543
  let elements = {};
10376
10544
  const componentScope = `#/properties/${config.name}`;
10377
10545
  switch (config.type) {
10546
+ case "Stepper":
10547
+ elements = buildStepper(config, componentScope);
10548
+ break;
10549
+ case "PopUp":
10550
+ elements = buildPopUp(config, componentScope);
10551
+ break;
10378
10552
  case "FileInput":
10379
10553
  elements = buildFileInput(config, componentScope);
10380
10554
  break;