impaktapps-ui-builder 0.0.409 → 0.0.411

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 (31) hide show
  1. package/dist/impaktapps-ui-builder.es.js +467 -258
  2. package/dist/impaktapps-ui-builder.es.js.map +1 -1
  3. package/dist/impaktapps-ui-builder.umd.js +13 -13
  4. package/dist/impaktapps-ui-builder.umd.js.map +1 -1
  5. package/dist/src/impaktapps-ui-builder/builder/build/buildBasicUiSchema.d.ts +4 -2
  6. package/dist/src/impaktapps-ui-builder/builder/build/buildTreeMap.d.ts +1 -0
  7. package/dist/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.d.ts +19 -0
  8. package/dist/src/impaktapps-ui-builder/builder/build/uischema/wrapperSection.d.ts +1 -1
  9. package/dist/src/impaktapps-ui-builder/builder/services/pageMaster.d.ts +2 -2
  10. package/dist/src/impaktapps-ui-builder/runtime/services/events.d.ts +7 -5
  11. package/dist/src/impaktapps-ui-builder/runtime/services/service.d.ts +7 -8
  12. package/package.json +1 -1
  13. package/src/impaktapps-ui-builder/builder/build/buildBasicUiSchema.ts +9 -6
  14. package/src/impaktapps-ui-builder/builder/build/buildConfig.ts +0 -7
  15. package/src/impaktapps-ui-builder/builder/build/buildTreeMap.ts +58 -0
  16. package/src/impaktapps-ui-builder/builder/build/buildUiSchema.ts +45 -49
  17. package/src/impaktapps-ui-builder/builder/build/buildWrapperSection.ts +16 -13
  18. package/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.ts +20 -8
  19. package/src/impaktapps-ui-builder/builder/build/uischema/card.ts +1 -1
  20. package/src/impaktapps-ui-builder/builder/build/uischema/coreSection.ts +19 -0
  21. package/src/impaktapps-ui-builder/builder/build/uischema/graph.ts +0 -1
  22. package/src/impaktapps-ui-builder/builder/build/uischema/wrapperSection.ts +1 -1
  23. package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/schema.ts +24 -18
  24. package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/uiSchema.ts +19 -1
  25. package/src/impaktapps-ui-builder/builder/elements/UiSchema/event/schema.ts +2 -2
  26. package/src/impaktapps-ui-builder/builder/services/component.ts +55 -53
  27. package/src/impaktapps-ui-builder/builder/services/event.ts +5 -2
  28. package/src/impaktapps-ui-builder/builder/services/pageMaster.ts +5 -5
  29. package/src/impaktapps-ui-builder/runtime/services/downloadFile.ts +1 -1
  30. package/src/impaktapps-ui-builder/runtime/services/events.ts +129 -90
  31. package/src/impaktapps-ui-builder/runtime/services/service.ts +73 -45
@@ -1039,9 +1039,9 @@ var lodash = { exports: {} };
1039
1039
  return reHasUnicodeWord.test(string);
1040
1040
  }
1041
1041
  function iteratorToArray(iterator) {
1042
- var data2, result = [];
1043
- while (!(data2 = iterator.next()).done) {
1044
- result.push(data2.value);
1042
+ var data, result = [];
1043
+ while (!(data = iterator.next()).done) {
1044
+ result.push(data.value);
1045
1045
  }
1046
1046
  return result;
1047
1047
  }
@@ -1250,7 +1250,7 @@ var lodash = { exports: {} };
1250
1250
  index += dir;
1251
1251
  var iterIndex = -1, value = array[index];
1252
1252
  while (++iterIndex < iterLength) {
1253
- var data2 = iteratees[iterIndex], iteratee2 = data2.iteratee, type = data2.type, computed = iteratee2(value);
1253
+ var data = iteratees[iterIndex], iteratee2 = data.iteratee, type = data.type, computed = iteratee2(value);
1254
1254
  if (type == LAZY_MAP_FLAG) {
1255
1255
  value = computed;
1256
1256
  } else if (!computed) {
@@ -1285,21 +1285,21 @@ var lodash = { exports: {} };
1285
1285
  return result2;
1286
1286
  }
1287
1287
  function hashGet(key) {
1288
- var data2 = this.__data__;
1288
+ var data = this.__data__;
1289
1289
  if (nativeCreate) {
1290
- var result2 = data2[key];
1290
+ var result2 = data[key];
1291
1291
  return result2 === HASH_UNDEFINED ? undefined$1 : result2;
1292
1292
  }
1293
- return hasOwnProperty.call(data2, key) ? data2[key] : undefined$1;
1293
+ return hasOwnProperty.call(data, key) ? data[key] : undefined$1;
1294
1294
  }
1295
1295
  function hashHas(key) {
1296
- var data2 = this.__data__;
1297
- return nativeCreate ? data2[key] !== undefined$1 : hasOwnProperty.call(data2, key);
1296
+ var data = this.__data__;
1297
+ return nativeCreate ? data[key] !== undefined$1 : hasOwnProperty.call(data, key);
1298
1298
  }
1299
1299
  function hashSet(key, value) {
1300
- var data2 = this.__data__;
1300
+ var data = this.__data__;
1301
1301
  this.size += this.has(key) ? 0 : 1;
1302
- data2[key] = nativeCreate && value === undefined$1 ? HASH_UNDEFINED : value;
1302
+ data[key] = nativeCreate && value === undefined$1 ? HASH_UNDEFINED : value;
1303
1303
  return this;
1304
1304
  }
1305
1305
  Hash.prototype.clear = hashClear;
@@ -1320,33 +1320,33 @@ var lodash = { exports: {} };
1320
1320
  this.size = 0;
1321
1321
  }
1322
1322
  function listCacheDelete(key) {
1323
- var data2 = this.__data__, index = assocIndexOf(data2, key);
1323
+ var data = this.__data__, index = assocIndexOf(data, key);
1324
1324
  if (index < 0) {
1325
1325
  return false;
1326
1326
  }
1327
- var lastIndex = data2.length - 1;
1327
+ var lastIndex = data.length - 1;
1328
1328
  if (index == lastIndex) {
1329
- data2.pop();
1329
+ data.pop();
1330
1330
  } else {
1331
- splice.call(data2, index, 1);
1331
+ splice.call(data, index, 1);
1332
1332
  }
1333
1333
  --this.size;
1334
1334
  return true;
1335
1335
  }
1336
1336
  function listCacheGet(key) {
1337
- var data2 = this.__data__, index = assocIndexOf(data2, key);
1338
- return index < 0 ? undefined$1 : data2[index][1];
1337
+ var data = this.__data__, index = assocIndexOf(data, key);
1338
+ return index < 0 ? undefined$1 : data[index][1];
1339
1339
  }
1340
1340
  function listCacheHas(key) {
1341
1341
  return assocIndexOf(this.__data__, key) > -1;
1342
1342
  }
1343
1343
  function listCacheSet(key, value) {
1344
- var data2 = this.__data__, index = assocIndexOf(data2, key);
1344
+ var data = this.__data__, index = assocIndexOf(data, key);
1345
1345
  if (index < 0) {
1346
1346
  ++this.size;
1347
- data2.push([key, value]);
1347
+ data.push([key, value]);
1348
1348
  } else {
1349
- data2[index][1] = value;
1349
+ data[index][1] = value;
1350
1350
  }
1351
1351
  return this;
1352
1352
  }
@@ -1383,9 +1383,9 @@ var lodash = { exports: {} };
1383
1383
  return getMapData(this, key).has(key);
1384
1384
  }
1385
1385
  function mapCacheSet(key, value) {
1386
- var data2 = getMapData(this, key), size2 = data2.size;
1387
- data2.set(key, value);
1388
- this.size += data2.size == size2 ? 0 : 1;
1386
+ var data = getMapData(this, key), size2 = data.size;
1387
+ data.set(key, value);
1388
+ this.size += data.size == size2 ? 0 : 1;
1389
1389
  return this;
1390
1390
  }
1391
1391
  MapCache.prototype.clear = mapCacheClear;
@@ -1410,16 +1410,16 @@ var lodash = { exports: {} };
1410
1410
  SetCache.prototype.add = SetCache.prototype.push = setCacheAdd;
1411
1411
  SetCache.prototype.has = setCacheHas;
1412
1412
  function Stack(entries) {
1413
- var data2 = this.__data__ = new ListCache(entries);
1414
- this.size = data2.size;
1413
+ var data = this.__data__ = new ListCache(entries);
1414
+ this.size = data.size;
1415
1415
  }
1416
1416
  function stackClear() {
1417
1417
  this.__data__ = new ListCache();
1418
1418
  this.size = 0;
1419
1419
  }
1420
1420
  function stackDelete(key) {
1421
- var data2 = this.__data__, result2 = data2["delete"](key);
1422
- this.size = data2.size;
1421
+ var data = this.__data__, result2 = data["delete"](key);
1422
+ this.size = data.size;
1423
1423
  return result2;
1424
1424
  }
1425
1425
  function stackGet(key) {
@@ -1429,18 +1429,18 @@ var lodash = { exports: {} };
1429
1429
  return this.__data__.has(key);
1430
1430
  }
1431
1431
  function stackSet(key, value) {
1432
- var data2 = this.__data__;
1433
- if (data2 instanceof ListCache) {
1434
- var pairs = data2.__data__;
1432
+ var data = this.__data__;
1433
+ if (data instanceof ListCache) {
1434
+ var pairs = data.__data__;
1435
1435
  if (!Map || pairs.length < LARGE_ARRAY_SIZE - 1) {
1436
1436
  pairs.push([key, value]);
1437
- this.size = ++data2.size;
1437
+ this.size = ++data.size;
1438
1438
  return this;
1439
1439
  }
1440
- data2 = this.__data__ = new MapCache(pairs);
1440
+ data = this.__data__ = new MapCache(pairs);
1441
1441
  }
1442
- data2.set(key, value);
1443
- this.size = data2.size;
1442
+ data.set(key, value);
1443
+ this.size = data.size;
1444
1444
  return this;
1445
1445
  }
1446
1446
  Stack.prototype.clear = stackClear;
@@ -1613,7 +1613,7 @@ var lodash = { exports: {} };
1613
1613
  if (typeof func != "function") {
1614
1614
  throw new TypeError(FUNC_ERROR_TEXT);
1615
1615
  }
1616
- return setTimeout2(function() {
1616
+ return setTimeout(function() {
1617
1617
  func.apply(undefined$1, args);
1618
1618
  }, wait);
1619
1619
  }
@@ -1859,15 +1859,15 @@ var lodash = { exports: {} };
1859
1859
  }
1860
1860
  object = Object2(object);
1861
1861
  while (index--) {
1862
- var data2 = matchData[index];
1863
- if (noCustomizer && data2[2] ? data2[1] !== object[data2[0]] : !(data2[0] in object)) {
1862
+ var data = matchData[index];
1863
+ if (noCustomizer && data[2] ? data[1] !== object[data[0]] : !(data[0] in object)) {
1864
1864
  return false;
1865
1865
  }
1866
1866
  }
1867
1867
  while (++index < length) {
1868
- data2 = matchData[index];
1869
- var key = data2[0], objValue = object[key], srcValue = data2[1];
1870
- if (noCustomizer && data2[2]) {
1868
+ data = matchData[index];
1869
+ var key = data[0], objValue = object[key], srcValue = data[1];
1870
+ if (noCustomizer && data[2]) {
1871
1871
  if (objValue === undefined$1 && !(key in object)) {
1872
1872
  return false;
1873
1873
  }
@@ -2170,8 +2170,8 @@ var lodash = { exports: {} };
2170
2170
  }
2171
2171
  return object;
2172
2172
  }
2173
- var baseSetData = !metaMap ? identity : function(func, data2) {
2174
- metaMap.set(func, data2);
2173
+ var baseSetData = !metaMap ? identity : function(func, data) {
2174
+ metaMap.set(func, data);
2175
2175
  return func;
2176
2176
  };
2177
2177
  var baseSetToString = !defineProperty ? identity : function(func, string) {
@@ -2675,9 +2675,9 @@ var lodash = { exports: {} };
2675
2675
  index = wrapper ? index : length;
2676
2676
  while (++index < length) {
2677
2677
  func = funcs[index];
2678
- var funcName = getFuncName(func), data2 = funcName == "wrapper" ? getData(func) : undefined$1;
2679
- if (data2 && isLaziable(data2[0]) && data2[1] == (WRAP_ARY_FLAG | WRAP_CURRY_FLAG | WRAP_PARTIAL_FLAG | WRAP_REARG_FLAG) && !data2[4].length && data2[9] == 1) {
2680
- wrapper = wrapper[getFuncName(data2[0])].apply(wrapper, data2[3]);
2678
+ var funcName = getFuncName(func), data = funcName == "wrapper" ? getData(func) : undefined$1;
2679
+ if (data && isLaziable(data[0]) && data[1] == (WRAP_ARY_FLAG | WRAP_CURRY_FLAG | WRAP_PARTIAL_FLAG | WRAP_REARG_FLAG) && !data[4].length && data[9] == 1) {
2680
+ wrapper = wrapper[getFuncName(data[0])].apply(wrapper, data[3]);
2681
2681
  } else {
2682
2682
  wrapper = func.length == 1 && isLaziable(func) ? wrapper[funcName]() : wrapper.thru(func);
2683
2683
  }
@@ -2904,7 +2904,7 @@ var lodash = { exports: {} };
2904
2904
  var partialsRight = partials, holdersRight = holders;
2905
2905
  partials = holders = undefined$1;
2906
2906
  }
2907
- var data2 = isBindKey ? undefined$1 : getData(func);
2907
+ var data = isBindKey ? undefined$1 : getData(func);
2908
2908
  var newData = [
2909
2909
  func,
2910
2910
  bitmask,
@@ -2917,8 +2917,8 @@ var lodash = { exports: {} };
2917
2917
  ary2,
2918
2918
  arity
2919
2919
  ];
2920
- if (data2) {
2921
- mergeData(newData, data2);
2920
+ if (data) {
2921
+ mergeData(newData, data);
2922
2922
  }
2923
2923
  func = newData[0];
2924
2924
  bitmask = newData[1];
@@ -2938,7 +2938,7 @@ var lodash = { exports: {} };
2938
2938
  } else {
2939
2939
  result2 = createHybrid.apply(undefined$1, newData);
2940
2940
  }
2941
- var setter = data2 ? baseSetData : setData;
2941
+ var setter = data ? baseSetData : setData;
2942
2942
  return setWrapToString(setter(result2, newData), func, bitmask);
2943
2943
  }
2944
2944
  function customDefaultsAssignIn(objValue, srcValue, key, object) {
@@ -3105,9 +3105,9 @@ var lodash = { exports: {} };
3105
3105
  function getFuncName(func) {
3106
3106
  var result2 = func.name + "", array = realNames[result2], length = hasOwnProperty.call(realNames, result2) ? array.length : 0;
3107
3107
  while (length--) {
3108
- var data2 = array[length], otherFunc = data2.func;
3108
+ var data = array[length], otherFunc = data.func;
3109
3109
  if (otherFunc == null || otherFunc == func) {
3110
- return data2.name;
3110
+ return data.name;
3111
3111
  }
3112
3112
  }
3113
3113
  return result2;
@@ -3122,8 +3122,8 @@ var lodash = { exports: {} };
3122
3122
  return arguments.length ? result2(arguments[0], arguments[1]) : result2;
3123
3123
  }
3124
3124
  function getMapData(map2, key) {
3125
- var data2 = map2.__data__;
3126
- return isKeyable(key) ? data2[typeof key == "string" ? "string" : "hash"] : data2.map;
3125
+ var data = map2.__data__;
3126
+ return isKeyable(key) ? data[typeof key == "string" ? "string" : "hash"] : data.map;
3127
3127
  }
3128
3128
  function getMatchData(object) {
3129
3129
  var result2 = keys(object), length = result2.length;
@@ -3195,8 +3195,8 @@ var lodash = { exports: {} };
3195
3195
  function getView(start, end, transforms) {
3196
3196
  var index = -1, length = transforms.length;
3197
3197
  while (++index < length) {
3198
- var data2 = transforms[index], size2 = data2.size;
3199
- switch (data2.type) {
3198
+ var data = transforms[index], size2 = data.size;
3199
+ switch (data.type) {
3200
3200
  case "drop":
3201
3201
  start += size2;
3202
3202
  break;
@@ -3327,8 +3327,8 @@ var lodash = { exports: {} };
3327
3327
  if (func === other) {
3328
3328
  return true;
3329
3329
  }
3330
- var data2 = getData(other);
3331
- return !!data2 && func === data2[0];
3330
+ var data = getData(other);
3331
+ return !!data && func === data[0];
3332
3332
  }
3333
3333
  function isMasked(func) {
3334
3334
  return !!maskSrcKey && maskSrcKey in func;
@@ -3359,41 +3359,41 @@ var lodash = { exports: {} };
3359
3359
  var cache = result2.cache;
3360
3360
  return result2;
3361
3361
  }
3362
- function mergeData(data2, source) {
3363
- var bitmask = data2[1], srcBitmask = source[1], newBitmask = bitmask | srcBitmask, isCommon = newBitmask < (WRAP_BIND_FLAG | WRAP_BIND_KEY_FLAG | WRAP_ARY_FLAG);
3364
- var isCombo = srcBitmask == WRAP_ARY_FLAG && bitmask == WRAP_CURRY_FLAG || srcBitmask == WRAP_ARY_FLAG && bitmask == WRAP_REARG_FLAG && data2[7].length <= source[8] || srcBitmask == (WRAP_ARY_FLAG | WRAP_REARG_FLAG) && source[7].length <= source[8] && bitmask == WRAP_CURRY_FLAG;
3362
+ function mergeData(data, source) {
3363
+ var bitmask = data[1], srcBitmask = source[1], newBitmask = bitmask | srcBitmask, isCommon = newBitmask < (WRAP_BIND_FLAG | WRAP_BIND_KEY_FLAG | WRAP_ARY_FLAG);
3364
+ var isCombo = srcBitmask == WRAP_ARY_FLAG && bitmask == WRAP_CURRY_FLAG || srcBitmask == WRAP_ARY_FLAG && bitmask == WRAP_REARG_FLAG && data[7].length <= source[8] || srcBitmask == (WRAP_ARY_FLAG | WRAP_REARG_FLAG) && source[7].length <= source[8] && bitmask == WRAP_CURRY_FLAG;
3365
3365
  if (!(isCommon || isCombo)) {
3366
- return data2;
3366
+ return data;
3367
3367
  }
3368
3368
  if (srcBitmask & WRAP_BIND_FLAG) {
3369
- data2[2] = source[2];
3369
+ data[2] = source[2];
3370
3370
  newBitmask |= bitmask & WRAP_BIND_FLAG ? 0 : WRAP_CURRY_BOUND_FLAG;
3371
3371
  }
3372
3372
  var value = source[3];
3373
3373
  if (value) {
3374
- var partials = data2[3];
3375
- data2[3] = partials ? composeArgs(partials, value, source[4]) : value;
3376
- data2[4] = partials ? replaceHolders(data2[3], PLACEHOLDER) : source[4];
3374
+ var partials = data[3];
3375
+ data[3] = partials ? composeArgs(partials, value, source[4]) : value;
3376
+ data[4] = partials ? replaceHolders(data[3], PLACEHOLDER) : source[4];
3377
3377
  }
3378
3378
  value = source[5];
3379
3379
  if (value) {
3380
- partials = data2[5];
3381
- data2[5] = partials ? composeArgsRight(partials, value, source[6]) : value;
3382
- data2[6] = partials ? replaceHolders(data2[5], PLACEHOLDER) : source[6];
3380
+ partials = data[5];
3381
+ data[5] = partials ? composeArgsRight(partials, value, source[6]) : value;
3382
+ data[6] = partials ? replaceHolders(data[5], PLACEHOLDER) : source[6];
3383
3383
  }
3384
3384
  value = source[7];
3385
3385
  if (value) {
3386
- data2[7] = value;
3386
+ data[7] = value;
3387
3387
  }
3388
3388
  if (srcBitmask & WRAP_ARY_FLAG) {
3389
- data2[8] = data2[8] == null ? source[8] : nativeMin(data2[8], source[8]);
3389
+ data[8] = data[8] == null ? source[8] : nativeMin(data[8], source[8]);
3390
3390
  }
3391
- if (data2[9] == null) {
3392
- data2[9] = source[9];
3391
+ if (data[9] == null) {
3392
+ data[9] = source[9];
3393
3393
  }
3394
- data2[0] = source[0];
3395
- data2[1] = newBitmask;
3396
- return data2;
3394
+ data[0] = source[0];
3395
+ data[1] = newBitmask;
3396
+ return data;
3397
3397
  }
3398
3398
  function nativeKeysIn(object) {
3399
3399
  var result2 = [];
@@ -3444,7 +3444,7 @@ var lodash = { exports: {} };
3444
3444
  return object[key];
3445
3445
  }
3446
3446
  var setData = shortOut(baseSetData);
3447
- var setTimeout2 = ctxSetTimeout || function(func, wait) {
3447
+ var setTimeout = ctxSetTimeout || function(func, wait) {
3448
3448
  return root.setTimeout(func, wait);
3449
3449
  };
3450
3450
  var setToString = shortOut(baseSetToString);
@@ -4236,7 +4236,7 @@ var lodash = { exports: {} };
4236
4236
  }
4237
4237
  function leadingEdge(time) {
4238
4238
  lastInvokeTime = time;
4239
- timerId = setTimeout2(timerExpired, wait);
4239
+ timerId = setTimeout(timerExpired, wait);
4240
4240
  return leading ? invokeFunc(time) : result2;
4241
4241
  }
4242
4242
  function remainingWait(time) {
@@ -4252,7 +4252,7 @@ var lodash = { exports: {} };
4252
4252
  if (shouldInvoke(time)) {
4253
4253
  return trailingEdge(time);
4254
4254
  }
4255
- timerId = setTimeout2(timerExpired, remainingWait(time));
4255
+ timerId = setTimeout(timerExpired, remainingWait(time));
4256
4256
  }
4257
4257
  function trailingEdge(time) {
4258
4258
  timerId = undefined$1;
@@ -4283,12 +4283,12 @@ var lodash = { exports: {} };
4283
4283
  }
4284
4284
  if (maxing) {
4285
4285
  clearTimeout(timerId);
4286
- timerId = setTimeout2(timerExpired, wait);
4286
+ timerId = setTimeout(timerExpired, wait);
4287
4287
  return invokeFunc(lastCallTime);
4288
4288
  }
4289
4289
  }
4290
4290
  if (timerId === undefined$1) {
4291
- timerId = setTimeout2(timerExpired, wait);
4291
+ timerId = setTimeout(timerExpired, wait);
4292
4292
  }
4293
4293
  return result2;
4294
4294
  }
@@ -5911,9 +5911,14 @@ const ComponentSchema = {
5911
5911
  { title: "Text Area", const: "TextArea" },
5912
5912
  { title: "Timer", const: "Timer" },
5913
5913
  { title: "Upload File", const: "UploadFile" },
5914
- { title: "Text Area", const: "TextArea" },
5915
5914
  { title: "Timer", const: "Timer" },
5916
5915
  { title: "Upload File", const: "UploadFile" },
5916
+ { title: "TreeMap", const: "TreeMap" },
5917
+ { title: "ColumnGroup", const: "ColumnGroup" }
5918
+ ]
5919
+ },
5920
+ columnFormat: {
5921
+ oneOf: [
5917
5922
  { title: "Date Column", const: "date" },
5918
5923
  { title: "DateTime Column", const: "dateTime" },
5919
5924
  { title: "Amount Column", const: "amount" }
@@ -6310,6 +6315,24 @@ const componentBasicUiSchema = {
6310
6315
  }
6311
6316
  }
6312
6317
  },
6318
+ {
6319
+ type: "Control",
6320
+ scope: "#/properties/columnFormat",
6321
+ options: {
6322
+ widget: "SelectInputField"
6323
+ },
6324
+ config: {
6325
+ layout: {
6326
+ xs: 12,
6327
+ sm: 12,
6328
+ md: 6,
6329
+ lg: 6
6330
+ },
6331
+ main: {
6332
+ label: "Column Format"
6333
+ }
6334
+ }
6335
+ },
6313
6336
  {
6314
6337
  type: "Control",
6315
6338
  scope: "#/properties/proc",
@@ -6504,6 +6527,24 @@ const CoreSection = {
6504
6527
  }
6505
6528
  }
6506
6529
  },
6530
+ {
6531
+ type: "Control",
6532
+ scope: "#/properties/columnFormat",
6533
+ options: {
6534
+ widget: "SelectInputField"
6535
+ },
6536
+ config: {
6537
+ layout: {
6538
+ xs: 12,
6539
+ sm: 12,
6540
+ md: 6,
6541
+ lg: 6
6542
+ },
6543
+ main: {
6544
+ label: "Column Format"
6545
+ }
6546
+ }
6547
+ },
6507
6548
  {
6508
6549
  type: "Control",
6509
6550
  scope: "#/properties/proc",
@@ -6903,6 +6944,14 @@ const GraphSection = {
6903
6944
  const buildPropertiesSection = function(type) {
6904
6945
  let uiSchema = _.cloneDeep(GraphSection);
6905
6946
  switch (type) {
6947
+ case "TreeMap":
6948
+ uiSchema.elements = [
6949
+ getSelectField("orientation", "orientation"),
6950
+ getInputField("linkType", "linkType"),
6951
+ getInputField("graphHeight", "Graph Height"),
6952
+ getInputField("graphWidth", "Graph Width"),
6953
+ getInputField("graphZoomHeight", "Zoom Height")
6954
+ ];
6906
6955
  case "InputSlider":
6907
6956
  uiSchema.elements = [
6908
6957
  getInputField("max", "Max Limit"),
@@ -7028,7 +7077,8 @@ const buildPropertiesSection = function(type) {
7028
7077
  uiSchema.elements = [
7029
7078
  getRadioInputField("divider", "Divider", ["YES", "No"]),
7030
7079
  getRadioInputField("isAccordion", "Accordion", ["YES", "No"]),
7031
- EmptyBox
7080
+ getRadioInputField("defaultStyle", "Default Style", ["YES", "No"]),
7081
+ getInputField("rowSpacing", "Row Spacing")
7032
7082
  ];
7033
7083
  break;
7034
7084
  case "TabSection":
@@ -7363,21 +7413,21 @@ const createLayoutFormat = (config) => {
7363
7413
  lg: 5.5
7364
7414
  };
7365
7415
  }
7366
- let data2 = {};
7416
+ let data = {};
7367
7417
  config.map((e) => {
7368
- data2[e.key || "xs"] = +e.value || 5.5;
7418
+ data[e.key || "xs"] = +e.value || 5.5;
7369
7419
  });
7370
- return data2;
7420
+ return data;
7371
7421
  };
7372
7422
  const flatObjectValueInArray = (config) => {
7373
7423
  if (config[0].length < 1) {
7374
7424
  return;
7375
7425
  }
7376
7426
  const keyName = Object.keys(config[0])[0];
7377
- const data2 = config.map((e) => {
7427
+ const data = config.map((e) => {
7378
7428
  return e[keyName];
7379
7429
  });
7380
- return data2;
7430
+ return data;
7381
7431
  };
7382
7432
  const clearFromLocalStorage = () => {
7383
7433
  localStorage.removeItem("pageFormdata");
@@ -7395,9 +7445,9 @@ const getNavigationHistory = (config, path) => {
7395
7445
  arr.push(`${arr[i - 1]}.${e}`);
7396
7446
  });
7397
7447
  arr.map((e) => {
7398
- const data2 = _.get(config, e);
7399
- if (data2) {
7400
- urlRoutes = urlRoutes + ` > ${(data2 == null ? void 0 : data2.name) || (data2 == null ? void 0 : data2.eventType)}`;
7448
+ const data = _.get(config, e);
7449
+ if (data) {
7450
+ urlRoutes = urlRoutes + ` > ${(data == null ? void 0 : data.name) || (data == null ? void 0 : data.eventType)}`;
7401
7451
  } else {
7402
7452
  urlRoutes = urlRoutes + " > NewComponent";
7403
7453
  }
@@ -7480,33 +7530,35 @@ function okHandler(store2) {
7480
7530
  }
7481
7531
  }
7482
7532
  const sectionLabels = {
7483
- Select: ["Core", "Properties", "Value", "style", "Event", "Validation"],
7484
- MultipleSelect: ["Core", "Properties", "Value", "style", "Event", "Validation"],
7485
- Table: ["Core", "Components", "Properties", "style", "Event", "Validation"],
7486
- LeaderBoard: ["Core", "Components", "Properties", "style", "Event", "Validation"],
7487
- WrapperSection: ["Core", "Components", "Properties", "style", "Validation"],
7488
- TabSection: ["Core", "Components", "Properties", "style", "Validation"],
7489
- SpeedoMeter: ["Core", "Properties", "style", "Event", "Validation"],
7490
- card: ["Core", "Properties", "style", "Event", "Validation"],
7491
- UploadFile: ["Core", "style", "Event", "Validation"],
7492
- Graph: ["Core", "Properties", "style", "Event", "Validation"],
7493
- DownloadFile: ["Core", "style", "Event", "Validation"],
7494
- Box: ["Core", "style", "Event", "Validation"],
7495
- Properties: ["Core", "Properties", "style", "Event", "Validation"],
7496
- ProgressBarCard: ["Core", "Properties", "style", "Event", "Validation"],
7497
- RankCard: ["Core", "Properties", "style", "Event", "Validation"],
7498
- Slider: ["Core", "Components", "style", "Event", "Validation"],
7499
- Timer: ["Core", "style", "Event", "Validation"],
7500
- Rank: ["Core", "style", "Event", "Validation"],
7501
- Button: ["Core", "Properties", "style", "Event", "Validation"],
7533
+ Select: ["Core", "Properties", "Value", "Event", "Style", "Validation"],
7534
+ MultipleSelect: ["Core", "Properties", "Value", "Event", "Style", "Validation"],
7535
+ Table: ["Core", "Components", "Properties", "Event", "Style", "Validation"],
7536
+ LeaderBoard: ["Core", "Components", "Properties", "Event", "Style", "Validation"],
7537
+ WrapperSection: ["Core", "Components", "Properties", "Style", "Validation"],
7538
+ TabSection: ["Core", "Components", "Properties", "Style", "Validation"],
7539
+ SpeedoMeter: ["Core", "Properties", "Event", "Style", "Validation"],
7540
+ card: ["Core", "Properties", "Event", "Style", "Validation"],
7541
+ UploadFile: ["Core", "Event", "Style", "Validation"],
7542
+ Graph: ["Core", "Properties", "Event", "Style", "Validation"],
7543
+ DownloadFile: ["Core", "Event", "Style", "Validation"],
7544
+ Box: ["Core", "Event", "Style", "Validation"],
7545
+ Properties: ["Core", "Properties", "Event", "Style", "Validation"],
7546
+ ProgressBarCard: ["Core", "Properties", "Event", "Style", "Validation"],
7547
+ RankCard: ["Core", "Properties", "Event", "Style", "Validation"],
7548
+ Slider: ["Core", "Components", "Event", "Style", "Validation"],
7549
+ Timer: ["Core", "Event", "Style", "Validation"],
7550
+ Rank: ["Core", "Event", "Style", "Validation"],
7551
+ Button: ["Core", "Properties", "Event", "Style", "Validation"],
7502
7552
  Array: ["Core", "Components", "Validation"],
7503
- Radio: ["Core", "Properties", "style", "Event", "Validation"],
7504
- Text: ["Core", "Properties", "style", "Event", "Validation"],
7505
- TextArea: ["Core", "Properties", "style", "Event", "Validation"],
7506
- PopUp: ["Core", "Components", "Properties", "style"],
7507
- Stepper: ["Core", "Components", "Properties", "Event", "style"],
7508
- DataGrid: ["Core", "Components", "Properties", "Event", "style"],
7509
- InputSlider: ["Core", "Properties", "style", "Event", "Validation"]
7553
+ Radio: ["Core", "Properties", "Event", "Style", "Validation"],
7554
+ Text: ["Core", "Properties", "Event", "Style", "Validation"],
7555
+ TextArea: ["Core", "Properties", "Event", "Style", "Validation"],
7556
+ PopUp: ["Core", "Components", "Properties", "Style"],
7557
+ Stepper: ["Core", "Components", "Properties", "Event", "Style"],
7558
+ DataGrid: ["Core", "Components", "Properties", "Event", "Style"],
7559
+ InputSlider: ["Core", "Properties", "Event", "Style", "Validation"],
7560
+ TreeMap: ["Core", "Components", "Properties", "Event", "Style"],
7561
+ ColumnGroup: ["Core", "Components"]
7510
7562
  };
7511
7563
  const refreshPage = (type, store2) => {
7512
7564
  var _a;
@@ -7515,14 +7567,14 @@ const refreshPage = (type, store2) => {
7515
7567
  const sectionUiSchema = {
7516
7568
  Core: CoreSection,
7517
7569
  Value: ValueTab,
7518
- style: StyleSection,
7570
+ Style: StyleSection,
7519
7571
  Event: EventSection,
7520
7572
  Components: TableSection,
7521
7573
  Properties: buildPropertiesSection(type),
7522
7574
  Validation: ValidationSection
7523
7575
  };
7524
7576
  const elements = (_a = sectionLabels[type]) == null ? void 0 : _a.map((e) => sectionUiSchema[e]);
7525
- UiSchema.elements[1].config.main.tabLabels = sectionLabels[type] || ["Core", "style", "Event", "Validation"];
7577
+ UiSchema.elements[1].config.main.tabLabels = sectionLabels[type] || ["Core", "Style", "Event", "Validation"];
7526
7578
  UiSchema.elements[1].elements = elements || [CoreSection, StyleSection, EventSection, ValidationSection];
7527
7579
  }
7528
7580
  store2.setUiSchema(UiSchema);
@@ -7574,17 +7626,17 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
7574
7626
  const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
7575
7627
  const rowId = dynamicData2.path.split(".")[1];
7576
7628
  store2.formData.elements.splice(rowId, 1);
7577
- const response2 = saveFormdataInLocalStorage(store2.ctx.core.data, path);
7578
- const data2 = path ? _.get(response2, path) : response2;
7579
- store2.setFormdata(data2);
7629
+ const response = saveFormdataInLocalStorage(store2.ctx.core.data, path);
7630
+ const data = path ? _.get(response, path) : response;
7631
+ store2.setFormdata(data);
7580
7632
  },
7581
7633
  deleteEvent: function() {
7582
7634
  var _a;
7583
7635
  const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
7584
7636
  const rowId = dynamicData2.path.split(".")[1];
7585
7637
  store2.formData.events.splice(rowId, 1);
7586
- const response2 = saveFormdataInLocalStorage(store2.ctx.core.data, path);
7587
- store2.setFormdata(_.get(response2, path));
7638
+ const response = saveFormdataInLocalStorage(store2.ctx.core.data, path);
7639
+ store2.setFormdata(_.get(response, path));
7588
7640
  },
7589
7641
  widgetAddClickHandler: function() {
7590
7642
  var _a;
@@ -7624,7 +7676,7 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
7624
7676
  };
7625
7677
  };
7626
7678
  var pageMaster = (funcParams) => {
7627
- const { store: store2, dynamicData: dynamicData2, config, submitHandler, service: service2 } = funcParams;
7679
+ const { store: store2, dynamicData: dynamicData2, submitHandler, service: service2 } = funcParams;
7628
7680
  return {
7629
7681
  setPage: async function() {
7630
7682
  const formdata = await this.getFormdata();
@@ -7634,9 +7686,10 @@ var pageMaster = (funcParams) => {
7634
7686
  store2.setSchema(schema2);
7635
7687
  store2.setUiSchema(uiSchema);
7636
7688
  },
7637
- getFormdata: function() {
7689
+ getFormdata: async function() {
7638
7690
  var _a;
7639
- (_a = store2.searchParams) == null ? void 0 : _a.get("id");
7691
+ const id = (_a = store2.searchParams) == null ? void 0 : _a.get("id");
7692
+ const config = await funcParams.pageConfigProvider(id);
7640
7693
  const formData = getFormdataFromLocalStorage();
7641
7694
  if (formData) {
7642
7695
  return formData;
@@ -7660,14 +7713,14 @@ var pageMaster = (funcParams) => {
7660
7713
  if (!Array.isArray(store2.formData.elements)) {
7661
7714
  store2.formData.elements = [];
7662
7715
  }
7663
- const response2 = saveFormdataInLocalStorage(store2.ctx.core.data);
7716
+ const response = saveFormdataInLocalStorage(store2.ctx.core.data);
7664
7717
  if (id) {
7665
7718
  store2.navigate(
7666
- `/Component?path=${`elements[${response2 == null ? void 0 : response2.elements.length}]`}&id=${id}`
7719
+ `/Component?path=${`elements[${response == null ? void 0 : response.elements.length}]`}&id=${id}`
7667
7720
  );
7668
7721
  } else {
7669
7722
  store2.navigate(
7670
- `/Component?path=${`elements[${response2 == null ? void 0 : response2.elements.length}]`}`
7723
+ `/Component?path=${`elements[${response == null ? void 0 : response.elements.length}]`}`
7671
7724
  );
7672
7725
  }
7673
7726
  },
@@ -7695,8 +7748,8 @@ var pageMaster = (funcParams) => {
7695
7748
  deleteEvent: function() {
7696
7749
  const rowId = dynamicData2.path.split(".")[1];
7697
7750
  store2.formData.events.splice(rowId, 1);
7698
- const response2 = saveFormdataInLocalStorage(store2.ctx.core.data);
7699
- store2.setFormdata(response2);
7751
+ const response = saveFormdataInLocalStorage(store2.ctx.core.data);
7752
+ store2.setFormdata(response);
7700
7753
  }
7701
7754
  };
7702
7755
  };
@@ -7746,6 +7799,7 @@ const EventSchema = {
7746
7799
  { title: "Mount Event", const: "onMount" },
7747
7800
  { title: "Success", const: "Success" },
7748
7801
  { title: "onStart", const: "onStart" },
7802
+ { title: "Cell Renderer", const: "onCellRenderer" },
7749
7803
  { title: "File Upload Event", const: "onUpload" },
7750
7804
  { title: "Back Event", const: "onBack" },
7751
7805
  { title: "Next Event", const: "onNext" },
@@ -8269,6 +8323,18 @@ const refreshSectionUiSchema = {
8269
8323
  }
8270
8324
  ]
8271
8325
  };
8326
+ var emptyBox = {
8327
+ type: "Control",
8328
+ scope: "#/properties/emptyBox",
8329
+ options: {
8330
+ widget: "EmptyBox"
8331
+ },
8332
+ config: {
8333
+ layout: { xs: 12, sm: 12, md: 5.5, lg: 5.5 },
8334
+ main: {},
8335
+ style: {}
8336
+ }
8337
+ };
8272
8338
  var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
8273
8339
  return {
8274
8340
  setPage: async function() {
@@ -8283,7 +8349,9 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
8283
8349
  const schema2 = _.cloneDeep(EventSchema);
8284
8350
  if (handlerType) {
8285
8351
  if (handlerType === "custom") {
8286
- uiSchema.elements[1].elements[0].elements[2] = getTextArea("eventCode", "Write Custom Code", false);
8352
+ uiSchema.elements[1].elements[0].elements[2] = getRadioInputField("isSync", "Run in Sync", ["Yes", "No"]);
8353
+ uiSchema.elements[1].elements[0].elements[3] = emptyBox;
8354
+ uiSchema.elements[1].elements[0].elements[4] = getTextArea("eventCode", "Write Custom Code", false);
8287
8355
  schema2.required = ["eventType", "Handler", "eventCode"];
8288
8356
  } else if (handlerType === "api") {
8289
8357
  uiSchema.elements[1].elements[0].elements[2] = APISection;
@@ -8353,25 +8421,25 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
8353
8421
  };
8354
8422
  const downloadFile$1 = (obj) => {
8355
8423
  const typeArr = obj.name.split(".");
8356
- const data2 = obj.data;
8357
- const finalData = window.atob(data2);
8424
+ const data = obj.data;
8425
+ const finalData = window.atob(data);
8358
8426
  let file;
8359
8427
  file = new File([finalData], typeArr[typeArr.length - 1]);
8360
8428
  const url = URL.createObjectURL(file);
8361
8429
  const link = document.createElement("a");
8362
- link.href = typeArr[typeArr.length - 1] === "pdf" ? "data:application/octet-stream;base64," + data2 : url;
8430
+ link.href = typeArr[typeArr.length - 1] === "pdf" ? "data:application/octet-stream;base64," + data : url;
8363
8431
  link.download = `${obj.name}`;
8364
8432
  document.body.appendChild(link);
8365
8433
  link.click();
8366
8434
  URL.revokeObjectURL(url);
8367
8435
  document.body.removeChild(link);
8368
8436
  };
8369
- const doDownload = (response2, service2) => {
8370
- let url = `${service2.defaults.baseURL}/${response2.path}`;
8371
- if (response2 == null ? void 0 : response2.params) {
8372
- const keysArray = Object.keys(response2 == null ? void 0 : response2.params);
8437
+ const doDownload = (response, service2) => {
8438
+ let url = `${service2.defaults.baseURL}/${response.path}`;
8439
+ if (response == null ? void 0 : response.params) {
8440
+ const keysArray = Object.keys(response == null ? void 0 : response.params);
8373
8441
  keysArray.map((e, i) => {
8374
- url = url + `${i === 0 ? "?" : "&"}${e}=${response2 == null ? void 0 : response2.params[e]}`;
8442
+ url = url + `${i === 0 ? "?" : "&"}${e}=${response == null ? void 0 : response.params[e]}`;
8375
8443
  });
8376
8444
  }
8377
8445
  const link = document.createElement("a");
@@ -8380,50 +8448,73 @@ const doDownload = (response2, service2) => {
8380
8448
  link.click();
8381
8449
  link.parentNode.removeChild(link);
8382
8450
  };
8383
- const executeEvents = async (params2) => {
8451
+ const executeEvents = (params2) => {
8384
8452
  var _a, _b, _c;
8385
8453
  let nextEvent = [];
8386
8454
  let finalResponse = null;
8455
+ if (params2.config.isSync !== "Yes") {
8456
+ return shouldEventExecute(params2).then((shouldExecute2) => {
8457
+ if (!shouldExecute2) {
8458
+ throw new Error("onStart Event not allow to run Parent Events");
8459
+ }
8460
+ return executeEventsHandler(params2);
8461
+ }).then((response) => {
8462
+ var _a2;
8463
+ finalResponse = response;
8464
+ const SuccessEvent = (_a2 = params2.config) == null ? void 0 : _a2.events.filter((e) => e.eventType === "Success");
8465
+ nextEvent = SuccessEvent;
8466
+ }).catch((err) => {
8467
+ var _a2, _b2;
8468
+ const FailEvent = (_b2 = (_a2 = params2.config) == null ? void 0 : _a2.events) == null ? void 0 : _b2.filter((e) => e.eventType === "Fail");
8469
+ const setEvent = (FailEvent == null ? void 0 : FailEvent.length) > 0 ? FailEvent : [];
8470
+ nextEvent = setEvent;
8471
+ }).then(() => {
8472
+ if ((nextEvent == null ? void 0 : nextEvent.length) > 0) {
8473
+ return nextEvent.reduce((chain, actionConfig) => {
8474
+ return chain.then(() => executeEvents({ ...params2, config: actionConfig, parentEventOutput: finalResponse }));
8475
+ }, Promise.resolve());
8476
+ }
8477
+ }).then(() => finalResponse);
8478
+ }
8479
+ const shouldExecute = shouldEventExecute(params2);
8480
+ if (!shouldExecute) {
8481
+ return { response: void 0, events: void 0 };
8482
+ }
8387
8483
  try {
8388
- const shouldExecute = await shouldEventExecute(params2);
8389
- if (!shouldExecute) {
8390
- return { response: void 0, events: void 0 };
8391
- }
8392
- const response2 = await executeEventsHandler(params2);
8393
- finalResponse = response2;
8484
+ const eventsResponse = executeEventsHandler(params2);
8485
+ finalResponse = eventsResponse;
8394
8486
  const SuccessEvent = (_a = params2.config) == null ? void 0 : _a.events.filter((e) => e.eventType === "Success");
8395
8487
  nextEvent = SuccessEvent;
8396
- } catch (err) {
8488
+ } catch {
8397
8489
  const FailEvent = (_c = (_b = params2.config) == null ? void 0 : _b.events) == null ? void 0 : _c.filter((e) => e.eventType === "Fail");
8398
8490
  const setEvent = (FailEvent == null ? void 0 : FailEvent.length) > 0 ? FailEvent : [];
8399
8491
  nextEvent = setEvent;
8400
8492
  }
8401
8493
  if ((nextEvent == null ? void 0 : nextEvent.length) > 0) {
8402
8494
  for (const actionConfig of nextEvent) {
8403
- await executeEvents({ ...params2, config: actionConfig, parentEventOutput: finalResponse });
8495
+ executeEvents({ ...params2, config: actionConfig, parentEventOutput: finalResponse });
8404
8496
  }
8405
8497
  }
8406
8498
  return finalResponse;
8407
8499
  };
8408
- async function executeEventsHandler(params2) {
8500
+ function executeEventsHandler(params2) {
8409
8501
  var _a, _b, _c;
8410
8502
  if (params2.config.Handler === "api") {
8411
- return await executeApiEventHandler(params2);
8503
+ return executeApiRequest(params2);
8412
8504
  } else if (params2.config.Handler === "inBuiltFunction") {
8413
- return await executeInBuiltFunctionHandler(params2);
8505
+ return executeInBuiltFunctionHandler(params2);
8414
8506
  } else if (params2.config.Handler === "custom") {
8415
- return await executeCustomHandler(params2);
8507
+ return executeCustomHandler(params2);
8416
8508
  } else if (params2.config.Handler === "refresh") {
8417
- return await executeRefreshHandler(params2);
8509
+ return executeRefreshHandler(params2);
8418
8510
  } else if (params2.config.Handler === "mergeFormdata") {
8419
- const result = await mergeFormdata(
8511
+ return mergeFormdata(
8420
8512
  params2.parentEventOutput,
8421
8513
  params2.componentName,
8422
8514
  params2.config,
8423
8515
  params2.store,
8424
8516
  params2.service
8425
8517
  );
8426
- return result;
8427
8518
  } else if (params2.config.Handler === "onBackHandler") {
8428
8519
  return (_a = params2.store.functionParameters) == null ? void 0 : _a.handleBack();
8429
8520
  } else if (params2.config.Handler === "onNextHandler") {
@@ -8432,30 +8523,47 @@ async function executeEventsHandler(params2) {
8432
8523
  return (_c = params2.store.functionParameters) == null ? void 0 : _c.handleReset();
8433
8524
  }
8434
8525
  }
8435
- async function executeRefreshHandler(params2) {
8436
- const compToRefresh = getRefreshElements(params2.config, params2.eventGroups);
8437
- for (const componentName of compToRefresh) {
8438
- for (const compEventConfig of params2.eventGroups.onLoad[componentName]) {
8439
- await executeEvents({ ...params2, config: compEventConfig, componentName });
8526
+ function getRefreshElements(eventConfig, eventGropus) {
8527
+ var _a;
8528
+ let result = [];
8529
+ if (((_a = eventConfig == null ? void 0 : eventConfig.refreshElements) == null ? void 0 : _a.length) > 0) {
8530
+ result = eventConfig.refreshElements.map((e) => {
8531
+ return e.value;
8532
+ });
8533
+ } else {
8534
+ if (eventGropus == null ? void 0 : eventGropus.onLoad) {
8535
+ result = Object.keys(eventGropus == null ? void 0 : eventGropus.onLoad);
8536
+ result.push(result[0]);
8440
8537
  }
8441
8538
  }
8539
+ console.log(result);
8540
+ return result;
8442
8541
  }
8443
- async function executeApiEventHandler(params2) {
8542
+ function executeRefreshHandler(params2) {
8543
+ const compToRefresh = getRefreshElements(params2.config, params2.eventGroups);
8544
+ return Promise.all(compToRefresh.map((componentName) => {
8545
+ return Promise.all(params2.eventGroups.onLoad[componentName].map((compEventConfig) => {
8546
+ return executeEvents({ ...params2, config: compEventConfig, componentName });
8547
+ }));
8548
+ }));
8549
+ }
8550
+ function executeApiRequest(params2) {
8444
8551
  var _a;
8445
8552
  const initialBody = { ...(_a = params2.userValue) == null ? void 0 : _a.payload };
8446
8553
  const initialHeaders = {
8447
8554
  "X-Requested-With": "XMLHttpRequest",
8448
8555
  "Access-Control-Allow-Origin": "*"
8449
8556
  };
8450
- const { body: body2, headers: headers2 } = await buildApiPayload(params2.config, initialBody, initialHeaders, params2.store, params2.dynamicData, params2.userValue, params2.service);
8451
- const response2 = await params2.service[params2.config.method](
8557
+ const payloadApi = buildApiPayload(params2.config, initialBody, initialHeaders, params2.store, params2.dynamicData, params2.userValue, params2.service);
8558
+ return params2.service[params2.config.method](
8452
8559
  params2.config.path,
8453
- body2,
8454
- headers2 && { headers: headers2 }
8455
- );
8456
- return response2;
8560
+ payloadApi.body,
8561
+ { headers: payloadApi.headers }
8562
+ ).then((response) => {
8563
+ return response;
8564
+ });
8457
8565
  }
8458
- async function executeInBuiltFunctionHandler(params) {
8566
+ function executeInBuiltFunctionHandler(params) {
8459
8567
  let parameter = {};
8460
8568
  if (params.config.funcParametersCode) {
8461
8569
  const makeFunc = eval(params.config.funcParametersCode);
@@ -8465,12 +8573,16 @@ async function executeInBuiltFunctionHandler(params) {
8465
8573
  params.serviceHolder[params.config.inBuiltFunctionType](params.store, params.dynamicData, params.userValue, params.parentEventOutput, params.service);
8466
8574
  }
8467
8575
  }
8468
- async function executeCustomHandler(params) {
8576
+ function executeCustomHandler(params) {
8469
8577
  const makeFunc = eval(params.config.eventCode);
8470
- const response = await makeFunc(params.store, params.dynamicData, params.userValue, params.parentEventOutput, params.service, params.componentName);
8471
- return response;
8578
+ if (params.config.isSync !== "Yes") {
8579
+ return makeFunc(params.store, params.dynamicData, params.userValue, params.parentEventOutput, params.service, params.componentName).then((res) => res);
8580
+ } else {
8581
+ const response = makeFunc(params.store, params.dynamicData, params.userValue, params.parentEventOutput, params.service, params.componentName);
8582
+ return response;
8583
+ }
8472
8584
  }
8473
- async function mergeFormdata(handlerResponse, componentName, eventConfig, store2, service2) {
8585
+ function mergeFormdata(handlerResponse, componentName, eventConfig, store2, service2) {
8474
8586
  if (eventConfig.type === "Select" && !(_.isEmpty(handlerResponse == null ? void 0 : handlerResponse.data) && (handlerResponse == null ? void 0 : handlerResponse.data))) {
8475
8587
  store2.setSchema((pre) => {
8476
8588
  var _a;
@@ -8514,7 +8626,6 @@ async function mergeFormdata(handlerResponse, componentName, eventConfig, store2
8514
8626
  var _a;
8515
8627
  return { ...pre, [componentName]: eventConfig.lazyLoading ? (_a = handlerResponse == null ? void 0 : handlerResponse.data) == null ? void 0 : _a.data : handlerResponse.data };
8516
8628
  });
8517
- await asyncOperation();
8518
8629
  }
8519
8630
  }
8520
8631
  }
@@ -8551,17 +8662,26 @@ const buildHeadersFormat = (headers2) => {
8551
8662
  });
8552
8663
  return headerObj;
8553
8664
  };
8554
- async function shouldEventExecute(params2) {
8555
- var _a, _b;
8665
+ function shouldEventExecute(params2) {
8666
+ var _a, _b, _c;
8556
8667
  const startEvent = (_b = (_a = params2.config) == null ? void 0 : _a.events) == null ? void 0 : _b.filter((e) => e.eventType === "onStart");
8557
8668
  if ((startEvent == null ? void 0 : startEvent.length) > 0) {
8558
- const response2 = await executeEventsHandler({ ...params2, config: startEvent[0] });
8559
- return response2;
8669
+ if (((_c = startEvent[0]) == null ? void 0 : _c.isSync) !== "Yes") {
8670
+ return executeEventsHandler({ ...params2, config: startEvent[0] }).then((response) => {
8671
+ return response;
8672
+ });
8673
+ } else {
8674
+ return executeEventsHandler({ ...params2, config: startEvent[0] });
8675
+ }
8560
8676
  } else {
8561
- return true;
8677
+ if (params2.config.isSync !== "Yes") {
8678
+ return Promise.resolve(true);
8679
+ } else {
8680
+ return true;
8681
+ }
8562
8682
  }
8563
8683
  }
8564
- async function buildApiPayload(compConfig, body, headers, store, dynamicData, userValue, service) {
8684
+ function buildApiPayload(compConfig, body, headers, store, dynamicData, userValue, service) {
8565
8685
  var _a, _b;
8566
8686
  if (compConfig == null ? void 0 : compConfig.headers) {
8567
8687
  headers = buildHeadersFormat(compConfig.headers);
@@ -8569,38 +8689,12 @@ async function buildApiPayload(compConfig, body, headers, store, dynamicData, us
8569
8689
  if (compConfig.body) {
8570
8690
  body = { ...buildBodyFormat(compConfig.body, store.newData || ((_b = (_a = store == null ? void 0 : store.ctx) == null ? void 0 : _a.core) == null ? void 0 : _b.data) || store.formData, userValue) };
8571
8691
  }
8692
+ const promiseChain = { body, headers };
8572
8693
  if (compConfig.apiBody) {
8573
8694
  const makeFunc = eval(compConfig.apiBody);
8574
- const data = await makeFunc(store, dynamicData, userValue, body);
8575
- body = data;
8695
+ return { body: makeFunc(store, dynamicData, userValue, promiseChain.body), headers: promiseChain.headers };
8576
8696
  }
8577
- return { body, headers };
8578
- }
8579
- function getRefreshElements(eventConfig, eventGropus) {
8580
- var _a;
8581
- let result = [];
8582
- if (((_a = eventConfig == null ? void 0 : eventConfig.refreshElements) == null ? void 0 : _a.length) > 0) {
8583
- result = eventConfig.refreshElements.map((e) => {
8584
- return e.value;
8585
- });
8586
- } else {
8587
- if (eventGropus == null ? void 0 : eventGropus.onLoad) {
8588
- result = Object.keys(eventGropus == null ? void 0 : eventGropus.onLoad);
8589
- result.push(result[0]);
8590
- }
8591
- }
8592
- console.log(result);
8593
- return result;
8594
- }
8595
- function asyncOperation() {
8596
- return new Promise((resolve, reject) => {
8597
- setTimeout(() => {
8598
- {
8599
- resolve("Operation completed successfully!");
8600
- reject(new Error("Operation failed!"));
8601
- }
8602
- }, 50);
8603
- });
8697
+ return promiseChain;
8604
8698
  }
8605
8699
  let compType;
8606
8700
  let eventGroups = {};
@@ -8612,6 +8706,7 @@ const notifyUiSchema = {
8612
8706
  },
8613
8707
  layout: 6
8614
8708
  };
8709
+ let pageData = false;
8615
8710
  const extractEvents = (eventConfig) => {
8616
8711
  function extractsConfigEvents(eventConfigObj) {
8617
8712
  if (eventConfigObj.events) {
@@ -8630,9 +8725,15 @@ const extractEvents = (eventConfig) => {
8630
8725
  return elem.eventType === "Success";
8631
8726
  });
8632
8727
  if (!!!SuccessEvent && event2.eventType === "onLoad") {
8728
+ if (!!!event2.events) {
8729
+ event2.events = [];
8730
+ }
8633
8731
  event2.events.push({ Handler: "mergeFormdata", eventType: "Success", type: compType, lazyLoading: eventConfig.lazyLoading === "YES" ? true : false });
8634
8732
  }
8635
8733
  if (!!!SuccessEvent && (event2.eventType === "onBack" || event2.eventType === "onNext" || event2.eventType === "onReset")) {
8734
+ if (!!!event2.events) {
8735
+ event2.events = [];
8736
+ }
8636
8737
  event2.events.push({ Handler: `${event2.eventType}Handler`, eventType: "Success", type: compType, lazyLoading: eventConfig.lazyLoading === "YES" ? true : false });
8637
8738
  }
8638
8739
  eventGroups[event2.eventType][eventConfigObj.name].push({ ...event2, type: compType });
@@ -8647,7 +8748,11 @@ const extractEvents = (eventConfig) => {
8647
8748
  };
8648
8749
  var service = (funcParams) => {
8649
8750
  eventGroups = {};
8650
- eventGroups = extractEvents(funcParams.config);
8751
+ if (pageData) {
8752
+ if (!lodash.exports.isEmpty(pageData) && typeof pageData === "object") {
8753
+ eventGroups = extractEvents(pageData == null ? void 0 : pageData.config);
8754
+ }
8755
+ }
8651
8756
  let executeEventsParameters = {
8652
8757
  config: {},
8653
8758
  componentName: "",
@@ -8661,8 +8766,24 @@ var service = (funcParams) => {
8661
8766
  };
8662
8767
  return {
8663
8768
  setPage: async function() {
8769
+ var _a;
8664
8770
  funcParams.store.setFormdata({});
8665
- await asyncOperation();
8771
+ const pageBasicDetailString = localStorage.getItem("pagemasterMetaData");
8772
+ if (pageBasicDetailString) {
8773
+ pageData = JSON.parse(pageBasicDetailString);
8774
+ } else {
8775
+ pageData = await funcParams.pageDataProvider();
8776
+ localStorage.setItem("pagemasterMetaData", JSON.stringify({
8777
+ schema: pageData == null ? void 0 : pageData.schema,
8778
+ uiSchema: pageData == null ? void 0 : pageData.uiSchema,
8779
+ config: pageData == null ? void 0 : pageData.config
8780
+ }));
8781
+ }
8782
+ const config = pageData == null ? void 0 : pageData.config;
8783
+ const uiSchema = pageData == null ? void 0 : pageData.uiSchema;
8784
+ const schema2 = (_a = pageData == null ? void 0 : pageData.schema) != null ? _a : { type: "object", properties: {} };
8785
+ eventGroups = {};
8786
+ eventGroups = extractEvents(config);
8666
8787
  executeEventsParameters = {
8667
8788
  config: {},
8668
8789
  componentName: "",
@@ -8684,29 +8805,45 @@ var service = (funcParams) => {
8684
8805
  serviceHolder: this,
8685
8806
  eventGroups
8686
8807
  });
8687
- await asyncOperation();
8688
8808
  funcParams.store.setSchema(
8689
8809
  (pre) => {
8690
8810
  return {
8691
- ...funcParams.schema,
8692
- properties: { ...funcParams.schema.properties, ...pre.properties }
8811
+ ...schema2,
8812
+ properties: { ...schema2.properties, ...pre.properties }
8693
8813
  };
8694
8814
  }
8695
8815
  );
8696
- funcParams.uiSchema.elements.push(notifyUiSchema);
8697
- funcParams.store.setUiSchema(funcParams.uiSchema);
8816
+ uiSchema.elements.push(notifyUiSchema);
8817
+ funcParams.store.setUiSchema(uiSchema);
8698
8818
  },
8699
- onClick: async function() {
8700
- await this.callHandler("onClick");
8819
+ onCellRenderer: (cellParams) => {
8820
+ var _a, _b, _c;
8821
+ if (eventGroups.onCellRenderer) {
8822
+ let finalResponse = {};
8823
+ const path = ((_a = funcParams.dynamicData) == null ? void 0 : _a.tableButtonPath) || ((_c = (_b = funcParams == null ? void 0 : funcParams.dynamicData) == null ? void 0 : _b.path) == null ? void 0 : _c.split(".")[0]);
8824
+ for (const eventConfig of eventGroups == null ? void 0 : eventGroups.onCellRenderer[path]) {
8825
+ executeEventsParameters.store.functionParameters = cellParams;
8826
+ finalResponse = executeEvents({
8827
+ ...executeEventsParameters,
8828
+ config: eventConfig,
8829
+ componentName: path
8830
+ });
8831
+ }
8832
+ return finalResponse;
8833
+ }
8834
+ return {};
8701
8835
  },
8702
- onMount: async function() {
8703
- await this.callHandler("onMount");
8836
+ onClick: function() {
8837
+ this.callHandler("onClick");
8704
8838
  },
8705
- onFileDownload: async function() {
8706
- await this.callHandler("onDownload");
8839
+ onMount: function() {
8840
+ this.callHandler("onMount");
8707
8841
  },
8708
- onFileUpload: async function() {
8709
- await this.callHandler("onUpload");
8842
+ onFileDownload: function() {
8843
+ this.callHandler("onDownload");
8844
+ },
8845
+ onFileUpload: function() {
8846
+ this.callHandler("onUpload");
8710
8847
  },
8711
8848
  backHandler: function() {
8712
8849
  funcParams.store.navigate(-1);
@@ -8720,8 +8857,8 @@ var service = (funcParams) => {
8720
8857
  { key: "filters", value: paginationValues.columnFilters || [] },
8721
8858
  { key: "globalFilter", value: (_a = paginationValues.globalFilter) != null ? _a : "" }
8722
8859
  ];
8723
- const response2 = await this.updateConfigApiBody(paginationValues, apiBody);
8724
- return response2 == null ? void 0 : response2.data;
8860
+ const response = await this.updateConfigApiBody(paginationValues, apiBody);
8861
+ return response == null ? void 0 : response.data;
8725
8862
  },
8726
8863
  getSelectOptions: async function(param) {
8727
8864
  if (param.serachValue !== "" && param.serachValue !== void 0) {
@@ -8729,8 +8866,8 @@ var service = (funcParams) => {
8729
8866
  { key: "searchValue", value: param.serachValue },
8730
8867
  { key: "currentValue", value: param.currentValue }
8731
8868
  ];
8732
- const response2 = await this.updateConfigApiBody(param, apiBody);
8733
- return response2 == null ? void 0 : response2.data;
8869
+ const response = await this.updateConfigApiBody(param, apiBody);
8870
+ return response == null ? void 0 : response.data;
8734
8871
  }
8735
8872
  },
8736
8873
  onChange: async function() {
@@ -8804,7 +8941,7 @@ var service = (funcParams) => {
8804
8941
  if (((_b = eventGroups == null ? void 0 : eventGroups[eventType]) == null ? void 0 : _b[path]) !== void 0) {
8805
8942
  for (const eventConfig of (_c = eventGroups == null ? void 0 : eventGroups[eventType]) == null ? void 0 : _c[path]) {
8806
8943
  executeEventsParameters.store.functionParameters = functionParameters;
8807
- await executeEvents({
8944
+ executeEvents({
8808
8945
  ...executeEventsParameters,
8809
8946
  config: eventConfig,
8810
8947
  componentName: path
@@ -9633,7 +9770,7 @@ var WrapperSection = {
9633
9770
  type: "WrapperLayout",
9634
9771
  config: {
9635
9772
  main: {
9636
- label: "Default Label",
9773
+ rowSpacing: 3,
9637
9774
  divider: true
9638
9775
  },
9639
9776
  defaultStyle: true
@@ -9646,6 +9783,9 @@ const buildWrapperSection = (config, componentScope) => {
9646
9783
  wrapper.config.main.label = config.label;
9647
9784
  wrapper.config.main.divider = config.divider === "YES" ? true : false;
9648
9785
  wrapper.config.main.isAccordion = config.isAccordion === "YES" ? true : false;
9786
+ if (config.defaultStyle) {
9787
+ wrapper.config.defaultStyle = config.defaultStyle === "YES" ? true : false;
9788
+ }
9649
9789
  if (config.style) {
9650
9790
  wrapper.config.style = JSON.parse(config.style);
9651
9791
  }
@@ -10039,7 +10179,7 @@ var Card = {
10039
10179
  scope: "#/properties/programType",
10040
10180
  config: {
10041
10181
  main: {
10042
- url: "$"
10182
+ url: "https://www.svgrepo.com/show/500606/loading.svg"
10043
10183
  },
10044
10184
  style: {
10045
10185
  color: "#f5effc",
@@ -10297,8 +10437,10 @@ const buildMultiSelect = (config, componentScope) => {
10297
10437
  const buildBasicUiSchema = (config) => {
10298
10438
  return {
10299
10439
  "type": "HorizontalLayout",
10300
- pageName: `${config.name}`,
10301
- scope: `${config.name}`,
10440
+ pageName: config.name,
10441
+ name: config.name,
10442
+ accessorKey: config.name,
10443
+ header: config.label || config.name,
10302
10444
  "elements": []
10303
10445
  };
10304
10446
  };
@@ -10454,18 +10596,6 @@ const buildRadio = (config, componentScope) => {
10454
10596
  }
10455
10597
  return Radio;
10456
10598
  };
10457
- var emptyBox = {
10458
- type: "Control",
10459
- scope: "#/properties/emptyBox",
10460
- options: {
10461
- widget: "EmptyBox"
10462
- },
10463
- config: {
10464
- layout: { xs: 12, sm: 12, md: 5.5, lg: 5.5 },
10465
- main: {},
10466
- style: {}
10467
- }
10468
- };
10469
10599
  const buildEmptyBox = (config, componentScope) => {
10470
10600
  const EmptyBox2 = _.cloneDeep(emptyBox);
10471
10601
  if (config.layout) {
@@ -10738,6 +10868,57 @@ const buildInputSlider = (config, componentScope) => {
10738
10868
  }
10739
10869
  return inputSlider;
10740
10870
  };
10871
+ const TreeMap = {
10872
+ "type": "Control",
10873
+ "scope": "#/properties/TreeMap2",
10874
+ "config": {
10875
+ "main": {
10876
+ "layout": "cartsian",
10877
+ orientation: "vertical",
10878
+ header: "Territory Hierarchy",
10879
+ "linkType": "step",
10880
+ graphHeight: "500px"
10881
+ },
10882
+ "style": {
10883
+ BoxStyle: {
10884
+ borderRadius: "5px"
10885
+ }
10886
+ }
10887
+ },
10888
+ "options": {
10889
+ "widget": "TreeMap"
10890
+ },
10891
+ elements: []
10892
+ };
10893
+ const buildTreeMap = (config, componentScope) => {
10894
+ const treMap = _.cloneDeep(TreeMap);
10895
+ treMap.scope = componentScope;
10896
+ if (config.label) {
10897
+ treMap.config.main.header = config.label;
10898
+ }
10899
+ if (config.layout) {
10900
+ treMap.config.layout = createLayoutFormat(config.layout);
10901
+ }
10902
+ if (config.orientation) {
10903
+ treMap.config.main.orientation = config.orientation;
10904
+ }
10905
+ if (config.linkType) {
10906
+ treMap.config.main.linkType = config.linkType;
10907
+ }
10908
+ if (config.graphHeight) {
10909
+ treMap.config.main.graphHeight = config.graphHeight;
10910
+ }
10911
+ if (config.graphWidth) {
10912
+ treMap.config.main.graphWidth = config.graphWidth;
10913
+ }
10914
+ if (config.graphZoomHeight) {
10915
+ treMap.config.main.graphZoomHeight = config.graphZoomHeight;
10916
+ }
10917
+ if (config.graphZoomWidth) {
10918
+ treMap.config.main.graphZoomWidth = config.graphZoomWidth;
10919
+ }
10920
+ return treMap;
10921
+ };
10741
10922
  let schema = {
10742
10923
  type: "object",
10743
10924
  properties: {},
@@ -10856,6 +11037,9 @@ const buildUiSchema = (config) => {
10856
11037
  let elements = {};
10857
11038
  const componentScope = `#/properties/${config.name}`;
10858
11039
  switch (config.type) {
11040
+ case "TreeMap":
11041
+ elements = buildTreeMap(config, componentScope);
11042
+ break;
10859
11043
  case "DateTime":
10860
11044
  elements = buildDateTime(config, componentScope);
10861
11045
  break;
@@ -10972,6 +11156,13 @@ const buildUiSchema = (config) => {
10972
11156
  case "Timer":
10973
11157
  elements = buildTimer(config, componentScope);
10974
11158
  break;
11159
+ case "ColumnGroup":
11160
+ elements = {
11161
+ accessorKey: config.name,
11162
+ header: config.label || config.name,
11163
+ elements: []
11164
+ };
11165
+ break;
10975
11166
  case "MultipleSelect":
10976
11167
  elements = buildMultiSelect(config, componentScope);
10977
11168
  break;
@@ -10989,6 +11180,22 @@ const buildUiSchema = (config) => {
10989
11180
  if (config == null ? void 0 : config.elements) {
10990
11181
  if ((config == null ? void 0 : config.type) === "LeaderBoard") {
10991
11182
  return elements;
11183
+ } else if (config.type == "ColumnGroup") {
11184
+ const sizeMap = {};
11185
+ if (config.sizeHolder) {
11186
+ config.sizeHolder.map((e, i) => {
11187
+ sizeMap[e.keyName] = e.value;
11188
+ });
11189
+ }
11190
+ elements.elements = config.elements.map((cellElem, elemInd) => {
11191
+ return {
11192
+ accessorKey: cellElem.name,
11193
+ header: cellElem.label || cellElem.name,
11194
+ size: sizeMap[cellElem.name] || 180,
11195
+ type: cellElem.columnFormat,
11196
+ elements: cellElem.type == "ColumnGroup" ? cellElem.elements.map((childCellElem) => buildUiSchema(childCellElem)) : []
11197
+ };
11198
+ });
10992
11199
  } else if (config.type == "Table") {
10993
11200
  const sizeMap = {};
10994
11201
  if (config.sizeHolder) {
@@ -10996,22 +11203,24 @@ const buildUiSchema = (config) => {
10996
11203
  sizeMap[e.keyName] = e.value;
10997
11204
  });
10998
11205
  }
10999
- elements.elements = config.elements.map((e, elemInd) => {
11000
- if (e.type && e.type !== "date" && e.type !== "dateTime" && e.type !== "amount") {
11206
+ elements.elements = config.elements.map((cellElem, elemInd) => {
11207
+ if (cellElem.type) {
11001
11208
  return {
11002
- accessorKey: e.name,
11003
- header: e.label || e.name,
11004
- size: sizeMap[e.name] || 180,
11005
- type: e.type,
11006
- widget: buildUiSchema(e)
11209
+ accessorKey: cellElem.name,
11210
+ header: cellElem.label || cellElem.name,
11211
+ size: sizeMap[cellElem.name] || 180,
11212
+ type: cellElem.columnFormat,
11213
+ widget: cellElem.type != "ColumnGroup" ? buildUiSchema(cellElem) : void 0,
11214
+ elements: cellElem.type == "ColumnGroup" ? cellElem.elements.map((childCellElem) => buildUiSchema(childCellElem)) : []
11215
+ };
11216
+ } else {
11217
+ return {
11218
+ accessorKey: cellElem.name,
11219
+ type: cellElem.columnFormat,
11220
+ header: cellElem.label || cellElem.name,
11221
+ size: sizeMap[cellElem.name] || 180
11007
11222
  };
11008
11223
  }
11009
- return {
11010
- type: e.type,
11011
- accessorKey: e.name,
11012
- header: e.label || e.name,
11013
- size: sizeMap[e.name] || 180
11014
- };
11015
11224
  });
11016
11225
  } else if (config.type == "Array") {
11017
11226
  elements.options.detail.elements = config.elements.map((e, elemInd) => {