impaktapps-ui-builder 0.0.409-h → 0.0.409-k
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/impaktapps-ui-builder.es.js +361 -340
- package/dist/impaktapps-ui-builder.es.js.map +1 -1
- package/dist/impaktapps-ui-builder.umd.js +3 -3
- package/dist/impaktapps-ui-builder.umd.js.map +1 -1
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/coreSection.d.ts +30 -0
- package/dist/src/impaktapps-ui-builder/runtime/services/events.d.ts +6 -7
- package/dist/src/impaktapps-ui-builder/runtime/services/service.d.ts +7 -8
- package/package.json +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildUiSchema.ts +87 -15
- package/src/impaktapps-ui-builder/builder/build/uischema/coreSection.ts +41 -0
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/schema.ts +24 -19
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/uiSchema.ts +41 -0
- package/src/impaktapps-ui-builder/builder/services/component.ts +54 -54
- package/src/impaktapps-ui-builder/runtime/services/events.ts +103 -135
- package/src/impaktapps-ui-builder/runtime/services/service.ts +39 -88
|
@@ -1039,9 +1039,9 @@ var lodash = { exports: {} };
|
|
|
1039
1039
|
return reHasUnicodeWord.test(string);
|
|
1040
1040
|
}
|
|
1041
1041
|
function iteratorToArray(iterator) {
|
|
1042
|
-
var
|
|
1043
|
-
while (!(
|
|
1044
|
-
result.push(
|
|
1042
|
+
var data2, result = [];
|
|
1043
|
+
while (!(data2 = iterator.next()).done) {
|
|
1044
|
+
result.push(data2.value);
|
|
1045
1045
|
}
|
|
1046
1046
|
return result;
|
|
1047
1047
|
}
|
|
@@ -1128,7 +1128,7 @@ var lodash = { exports: {} };
|
|
|
1128
1128
|
}
|
|
1129
1129
|
var runInContext = function runInContext2(context) {
|
|
1130
1130
|
context = context == null ? root : _2.defaults(root.Object(), context, _2.pick(root, contextProps));
|
|
1131
|
-
var Array2 = context.Array, Date = context.Date,
|
|
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;
|
|
1132
1132
|
var arrayProto = Array2.prototype, funcProto = Function2.prototype, objectProto = Object2.prototype;
|
|
1133
1133
|
var coreJsData = context["__core-js_shared__"];
|
|
1134
1134
|
var funcToString = funcProto.toString;
|
|
@@ -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
|
|
1253
|
+
var data2 = iteratees[iterIndex], iteratee2 = data2.iteratee, type = data2.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
|
|
1288
|
+
var data2 = this.__data__;
|
|
1289
1289
|
if (nativeCreate) {
|
|
1290
|
-
var result2 =
|
|
1290
|
+
var result2 = data2[key];
|
|
1291
1291
|
return result2 === HASH_UNDEFINED ? undefined$1 : result2;
|
|
1292
1292
|
}
|
|
1293
|
-
return hasOwnProperty.call(
|
|
1293
|
+
return hasOwnProperty.call(data2, key) ? data2[key] : undefined$1;
|
|
1294
1294
|
}
|
|
1295
1295
|
function hashHas(key) {
|
|
1296
|
-
var
|
|
1297
|
-
return nativeCreate ?
|
|
1296
|
+
var data2 = this.__data__;
|
|
1297
|
+
return nativeCreate ? data2[key] !== undefined$1 : hasOwnProperty.call(data2, key);
|
|
1298
1298
|
}
|
|
1299
1299
|
function hashSet(key, value) {
|
|
1300
|
-
var
|
|
1300
|
+
var data2 = this.__data__;
|
|
1301
1301
|
this.size += this.has(key) ? 0 : 1;
|
|
1302
|
-
|
|
1302
|
+
data2[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
|
|
1323
|
+
var data2 = this.__data__, index = assocIndexOf(data2, key);
|
|
1324
1324
|
if (index < 0) {
|
|
1325
1325
|
return false;
|
|
1326
1326
|
}
|
|
1327
|
-
var lastIndex =
|
|
1327
|
+
var lastIndex = data2.length - 1;
|
|
1328
1328
|
if (index == lastIndex) {
|
|
1329
|
-
|
|
1329
|
+
data2.pop();
|
|
1330
1330
|
} else {
|
|
1331
|
-
splice.call(
|
|
1331
|
+
splice.call(data2, index, 1);
|
|
1332
1332
|
}
|
|
1333
1333
|
--this.size;
|
|
1334
1334
|
return true;
|
|
1335
1335
|
}
|
|
1336
1336
|
function listCacheGet(key) {
|
|
1337
|
-
var
|
|
1338
|
-
return index < 0 ? undefined$1 :
|
|
1337
|
+
var data2 = this.__data__, index = assocIndexOf(data2, key);
|
|
1338
|
+
return index < 0 ? undefined$1 : data2[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
|
|
1344
|
+
var data2 = this.__data__, index = assocIndexOf(data2, key);
|
|
1345
1345
|
if (index < 0) {
|
|
1346
1346
|
++this.size;
|
|
1347
|
-
|
|
1347
|
+
data2.push([key, value]);
|
|
1348
1348
|
} else {
|
|
1349
|
-
|
|
1349
|
+
data2[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
|
|
1387
|
-
|
|
1388
|
-
this.size +=
|
|
1386
|
+
var data2 = getMapData(this, key), size2 = data2.size;
|
|
1387
|
+
data2.set(key, value);
|
|
1388
|
+
this.size += data2.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
|
|
1414
|
-
this.size =
|
|
1413
|
+
var data2 = this.__data__ = new ListCache(entries);
|
|
1414
|
+
this.size = data2.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
|
|
1422
|
-
this.size =
|
|
1421
|
+
var data2 = this.__data__, result2 = data2["delete"](key);
|
|
1422
|
+
this.size = data2.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
|
|
1433
|
-
if (
|
|
1434
|
-
var pairs =
|
|
1432
|
+
var data2 = this.__data__;
|
|
1433
|
+
if (data2 instanceof ListCache) {
|
|
1434
|
+
var pairs = data2.__data__;
|
|
1435
1435
|
if (!Map || pairs.length < LARGE_ARRAY_SIZE - 1) {
|
|
1436
1436
|
pairs.push([key, value]);
|
|
1437
|
-
this.size = ++
|
|
1437
|
+
this.size = ++data2.size;
|
|
1438
1438
|
return this;
|
|
1439
1439
|
}
|
|
1440
|
-
|
|
1440
|
+
data2 = this.__data__ = new MapCache(pairs);
|
|
1441
1441
|
}
|
|
1442
|
-
|
|
1443
|
-
this.size =
|
|
1442
|
+
data2.set(key, value);
|
|
1443
|
+
this.size = data2.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
|
|
1616
|
+
return setTimeout2(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
|
|
1863
|
-
if (noCustomizer &&
|
|
1862
|
+
var data2 = matchData[index];
|
|
1863
|
+
if (noCustomizer && data2[2] ? data2[1] !== object[data2[0]] : !(data2[0] in object)) {
|
|
1864
1864
|
return false;
|
|
1865
1865
|
}
|
|
1866
1866
|
}
|
|
1867
1867
|
while (++index < length) {
|
|
1868
|
-
|
|
1869
|
-
var key =
|
|
1870
|
-
if (noCustomizer &&
|
|
1868
|
+
data2 = matchData[index];
|
|
1869
|
+
var key = data2[0], objValue = object[key], srcValue = data2[1];
|
|
1870
|
+
if (noCustomizer && data2[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,
|
|
2174
|
-
metaMap.set(func,
|
|
2173
|
+
var baseSetData = !metaMap ? identity : function(func, data2) {
|
|
2174
|
+
metaMap.set(func, data2);
|
|
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),
|
|
2679
|
-
if (
|
|
2680
|
-
wrapper = wrapper[getFuncName(
|
|
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]);
|
|
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
|
|
2907
|
+
var data2 = 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 (
|
|
2921
|
-
mergeData(newData,
|
|
2920
|
+
if (data2) {
|
|
2921
|
+
mergeData(newData, data2);
|
|
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 =
|
|
2941
|
+
var setter = data2 ? 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
|
|
3108
|
+
var data2 = array[length], otherFunc = data2.func;
|
|
3109
3109
|
if (otherFunc == null || otherFunc == func) {
|
|
3110
|
-
return
|
|
3110
|
+
return data2.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
|
|
3126
|
-
return isKeyable(key) ?
|
|
3125
|
+
var data2 = map2.__data__;
|
|
3126
|
+
return isKeyable(key) ? data2[typeof key == "string" ? "string" : "hash"] : data2.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
|
|
3199
|
-
switch (
|
|
3198
|
+
var data2 = transforms[index], size2 = data2.size;
|
|
3199
|
+
switch (data2.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
|
|
3331
|
-
return !!
|
|
3330
|
+
var data2 = getData(other);
|
|
3331
|
+
return !!data2 && func === data2[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(
|
|
3363
|
-
var bitmask =
|
|
3364
|
-
var isCombo = srcBitmask == WRAP_ARY_FLAG && bitmask == WRAP_CURRY_FLAG || srcBitmask == WRAP_ARY_FLAG && bitmask == WRAP_REARG_FLAG &&
|
|
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;
|
|
3365
3365
|
if (!(isCommon || isCombo)) {
|
|
3366
|
-
return
|
|
3366
|
+
return data2;
|
|
3367
3367
|
}
|
|
3368
3368
|
if (srcBitmask & WRAP_BIND_FLAG) {
|
|
3369
|
-
|
|
3369
|
+
data2[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 =
|
|
3375
|
-
|
|
3376
|
-
|
|
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];
|
|
3377
3377
|
}
|
|
3378
3378
|
value = source[5];
|
|
3379
3379
|
if (value) {
|
|
3380
|
-
partials =
|
|
3381
|
-
|
|
3382
|
-
|
|
3380
|
+
partials = data2[5];
|
|
3381
|
+
data2[5] = partials ? composeArgsRight(partials, value, source[6]) : value;
|
|
3382
|
+
data2[6] = partials ? replaceHolders(data2[5], PLACEHOLDER) : source[6];
|
|
3383
3383
|
}
|
|
3384
3384
|
value = source[7];
|
|
3385
3385
|
if (value) {
|
|
3386
|
-
|
|
3386
|
+
data2[7] = value;
|
|
3387
3387
|
}
|
|
3388
3388
|
if (srcBitmask & WRAP_ARY_FLAG) {
|
|
3389
|
-
|
|
3389
|
+
data2[8] = data2[8] == null ? source[8] : nativeMin(data2[8], source[8]);
|
|
3390
3390
|
}
|
|
3391
|
-
if (
|
|
3392
|
-
|
|
3391
|
+
if (data2[9] == null) {
|
|
3392
|
+
data2[9] = source[9];
|
|
3393
3393
|
}
|
|
3394
|
-
|
|
3395
|
-
|
|
3396
|
-
return
|
|
3394
|
+
data2[0] = source[0];
|
|
3395
|
+
data2[1] = newBitmask;
|
|
3396
|
+
return data2;
|
|
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
|
|
3447
|
+
var setTimeout2 = 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 =
|
|
4239
|
+
timerId = setTimeout2(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 =
|
|
4255
|
+
timerId = setTimeout2(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 =
|
|
4286
|
+
timerId = setTimeout2(timerExpired, wait);
|
|
4287
4287
|
return invokeFunc(lastCallTime);
|
|
4288
4288
|
}
|
|
4289
4289
|
}
|
|
4290
4290
|
if (timerId === undefined$1) {
|
|
4291
|
-
timerId =
|
|
4291
|
+
timerId = setTimeout2(timerExpired, wait);
|
|
4292
4292
|
}
|
|
4293
4293
|
return result2;
|
|
4294
4294
|
}
|
|
@@ -4531,7 +4531,7 @@ var lodash = { exports: {} };
|
|
|
4531
4531
|
}
|
|
4532
4532
|
function isNative(value) {
|
|
4533
4533
|
if (isMaskable(value)) {
|
|
4534
|
-
throw new
|
|
4534
|
+
throw new Error2(CORE_ERROR_TEXT);
|
|
4535
4535
|
}
|
|
4536
4536
|
return baseIsNative(value);
|
|
4537
4537
|
}
|
|
@@ -5072,7 +5072,7 @@ var lodash = { exports: {} };
|
|
|
5072
5072
|
if (!variable) {
|
|
5073
5073
|
source = "with (obj) {\n" + source + "\n}\n";
|
|
5074
5074
|
} else if (reForbiddenIdentifierChars.test(variable)) {
|
|
5075
|
-
throw new
|
|
5075
|
+
throw new Error2(INVALID_TEMPL_VAR_ERROR_TEXT);
|
|
5076
5076
|
}
|
|
5077
5077
|
source = (isEvaluating ? source.replace(reEmptyStringLeading, "") : source).replace(reEmptyStringMiddle, "$1").replace(reEmptyStringTrailing, "$1;");
|
|
5078
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}";
|
|
@@ -5191,7 +5191,7 @@ var lodash = { exports: {} };
|
|
|
5191
5191
|
try {
|
|
5192
5192
|
return apply(func, undefined$1, args);
|
|
5193
5193
|
} catch (e) {
|
|
5194
|
-
return isError(e) ? e : new
|
|
5194
|
+
return isError(e) ? e : new Error2(e);
|
|
5195
5195
|
}
|
|
5196
5196
|
});
|
|
5197
5197
|
var bindAll = flatRest(function(object, methodNames) {
|
|
@@ -5911,13 +5911,16 @@ 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
|
+
]
|
|
5918
|
+
},
|
|
5919
|
+
columnFormat: {
|
|
5920
|
+
oneOf: [
|
|
5917
5921
|
{ title: "Date Column", const: "date" },
|
|
5918
5922
|
{ title: "DateTime Column", const: "dateTime" },
|
|
5919
|
-
{ title: "Amount Column", const: "amount" }
|
|
5920
|
-
{ title: "TreeMap", const: "TreeMap" }
|
|
5923
|
+
{ title: "Amount Column", const: "amount" }
|
|
5921
5924
|
]
|
|
5922
5925
|
},
|
|
5923
5926
|
orientation: {
|
|
@@ -6311,6 +6314,45 @@ const componentBasicUiSchema = {
|
|
|
6311
6314
|
}
|
|
6312
6315
|
}
|
|
6313
6316
|
},
|
|
6317
|
+
{
|
|
6318
|
+
type: "Control",
|
|
6319
|
+
scope: "#/properties/parent",
|
|
6320
|
+
options: {
|
|
6321
|
+
widget: "InputField"
|
|
6322
|
+
},
|
|
6323
|
+
config: {
|
|
6324
|
+
layout: {
|
|
6325
|
+
xs: 12,
|
|
6326
|
+
sm: 12,
|
|
6327
|
+
md: 6,
|
|
6328
|
+
lg: 6
|
|
6329
|
+
},
|
|
6330
|
+
main: {
|
|
6331
|
+
label: "parent",
|
|
6332
|
+
options: [],
|
|
6333
|
+
color: "secondary",
|
|
6334
|
+
required: true
|
|
6335
|
+
}
|
|
6336
|
+
}
|
|
6337
|
+
},
|
|
6338
|
+
{
|
|
6339
|
+
type: "Control",
|
|
6340
|
+
scope: "#/properties/columnFormat",
|
|
6341
|
+
options: {
|
|
6342
|
+
widget: "SelectInputField"
|
|
6343
|
+
},
|
|
6344
|
+
config: {
|
|
6345
|
+
layout: {
|
|
6346
|
+
xs: 11,
|
|
6347
|
+
sm: 11,
|
|
6348
|
+
md: 5.5,
|
|
6349
|
+
lg: 5.5
|
|
6350
|
+
},
|
|
6351
|
+
main: {
|
|
6352
|
+
label: "Column Format"
|
|
6353
|
+
}
|
|
6354
|
+
}
|
|
6355
|
+
},
|
|
6314
6356
|
{
|
|
6315
6357
|
type: "Control",
|
|
6316
6358
|
scope: "#/properties/proc",
|
|
@@ -6505,6 +6547,45 @@ const CoreSection = {
|
|
|
6505
6547
|
}
|
|
6506
6548
|
}
|
|
6507
6549
|
},
|
|
6550
|
+
{
|
|
6551
|
+
type: "Control",
|
|
6552
|
+
scope: "#/properties/parent",
|
|
6553
|
+
options: {
|
|
6554
|
+
widget: "InputField"
|
|
6555
|
+
},
|
|
6556
|
+
config: {
|
|
6557
|
+
layout: {
|
|
6558
|
+
xs: 12,
|
|
6559
|
+
sm: 12,
|
|
6560
|
+
md: 6,
|
|
6561
|
+
lg: 6
|
|
6562
|
+
},
|
|
6563
|
+
main: {
|
|
6564
|
+
label: "parent",
|
|
6565
|
+
options: [],
|
|
6566
|
+
color: "secondary",
|
|
6567
|
+
required: true
|
|
6568
|
+
}
|
|
6569
|
+
}
|
|
6570
|
+
},
|
|
6571
|
+
{
|
|
6572
|
+
type: "Control",
|
|
6573
|
+
scope: "#/properties/columnFormat",
|
|
6574
|
+
options: {
|
|
6575
|
+
widget: "SelectInputField"
|
|
6576
|
+
},
|
|
6577
|
+
config: {
|
|
6578
|
+
layout: {
|
|
6579
|
+
xs: 11,
|
|
6580
|
+
sm: 11,
|
|
6581
|
+
md: 5.5,
|
|
6582
|
+
lg: 5.5
|
|
6583
|
+
},
|
|
6584
|
+
main: {
|
|
6585
|
+
label: "Column Format"
|
|
6586
|
+
}
|
|
6587
|
+
}
|
|
6588
|
+
},
|
|
6508
6589
|
{
|
|
6509
6590
|
type: "Control",
|
|
6510
6591
|
scope: "#/properties/proc",
|
|
@@ -7373,21 +7454,21 @@ const createLayoutFormat = (config) => {
|
|
|
7373
7454
|
lg: 5.5
|
|
7374
7455
|
};
|
|
7375
7456
|
}
|
|
7376
|
-
let
|
|
7457
|
+
let data2 = {};
|
|
7377
7458
|
config.map((e) => {
|
|
7378
|
-
|
|
7459
|
+
data2[e.key || "xs"] = +e.value || 5.5;
|
|
7379
7460
|
});
|
|
7380
|
-
return
|
|
7461
|
+
return data2;
|
|
7381
7462
|
};
|
|
7382
7463
|
const flatObjectValueInArray = (config) => {
|
|
7383
7464
|
if (config[0].length < 1) {
|
|
7384
7465
|
return;
|
|
7385
7466
|
}
|
|
7386
7467
|
const keyName = Object.keys(config[0])[0];
|
|
7387
|
-
const
|
|
7468
|
+
const data2 = config.map((e) => {
|
|
7388
7469
|
return e[keyName];
|
|
7389
7470
|
});
|
|
7390
|
-
return
|
|
7471
|
+
return data2;
|
|
7391
7472
|
};
|
|
7392
7473
|
const clearFromLocalStorage = () => {
|
|
7393
7474
|
localStorage.removeItem("pageFormdata");
|
|
@@ -7405,9 +7486,9 @@ const getNavigationHistory = (config, path) => {
|
|
|
7405
7486
|
arr.push(`${arr[i - 1]}.${e}`);
|
|
7406
7487
|
});
|
|
7407
7488
|
arr.map((e) => {
|
|
7408
|
-
const
|
|
7409
|
-
if (
|
|
7410
|
-
urlRoutes = urlRoutes + ` > ${(
|
|
7489
|
+
const data2 = _.get(config, e);
|
|
7490
|
+
if (data2) {
|
|
7491
|
+
urlRoutes = urlRoutes + ` > ${(data2 == null ? void 0 : data2.name) || (data2 == null ? void 0 : data2.eventType)}`;
|
|
7411
7492
|
} else {
|
|
7412
7493
|
urlRoutes = urlRoutes + " > NewComponent";
|
|
7413
7494
|
}
|
|
@@ -7490,34 +7571,34 @@ function okHandler(store2) {
|
|
|
7490
7571
|
}
|
|
7491
7572
|
}
|
|
7492
7573
|
const sectionLabels = {
|
|
7493
|
-
Select: ["Core", "Properties", "Value", "
|
|
7494
|
-
MultipleSelect: ["Core", "Properties", "Value", "
|
|
7495
|
-
Table: ["Core", "Components", "Properties", "
|
|
7496
|
-
LeaderBoard: ["Core", "Components", "Properties", "
|
|
7497
|
-
WrapperSection: ["Core", "Components", "Properties", "
|
|
7498
|
-
TabSection: ["Core", "Components", "Properties", "
|
|
7499
|
-
SpeedoMeter: ["Core", "Properties", "
|
|
7500
|
-
card: ["Core", "Properties", "
|
|
7501
|
-
UploadFile: ["Core", "
|
|
7502
|
-
Graph: ["Core", "Properties", "
|
|
7503
|
-
DownloadFile: ["Core", "
|
|
7504
|
-
Box: ["Core", "
|
|
7505
|
-
Properties: ["Core", "Properties", "
|
|
7506
|
-
ProgressBarCard: ["Core", "Properties", "
|
|
7507
|
-
RankCard: ["Core", "Properties", "
|
|
7508
|
-
Slider: ["Core", "Components", "
|
|
7509
|
-
Timer: ["Core", "
|
|
7510
|
-
Rank: ["Core", "
|
|
7511
|
-
Button: ["Core", "Properties", "
|
|
7574
|
+
Select: ["Core", "Properties", "Value", "Event", "Style", "Validation"],
|
|
7575
|
+
MultipleSelect: ["Core", "Properties", "Value", "Event", "Style", "Validation"],
|
|
7576
|
+
Table: ["Core", "Components", "Properties", "Event", "Style", "Validation"],
|
|
7577
|
+
LeaderBoard: ["Core", "Components", "Properties", "Event", "Style", "Validation"],
|
|
7578
|
+
WrapperSection: ["Core", "Components", "Properties", "Style", "Validation"],
|
|
7579
|
+
TabSection: ["Core", "Components", "Properties", "Style", "Validation"],
|
|
7580
|
+
SpeedoMeter: ["Core", "Properties", "Event", "Style", "Validation"],
|
|
7581
|
+
card: ["Core", "Properties", "Event", "Style", "Validation"],
|
|
7582
|
+
UploadFile: ["Core", "Event", "Style", "Validation"],
|
|
7583
|
+
Graph: ["Core", "Properties", "Event", "Style", "Validation"],
|
|
7584
|
+
DownloadFile: ["Core", "Event", "Style", "Validation"],
|
|
7585
|
+
Box: ["Core", "Event", "Style", "Validation"],
|
|
7586
|
+
Properties: ["Core", "Properties", "Event", "Style", "Validation"],
|
|
7587
|
+
ProgressBarCard: ["Core", "Properties", "Event", "Style", "Validation"],
|
|
7588
|
+
RankCard: ["Core", "Properties", "Event", "Style", "Validation"],
|
|
7589
|
+
Slider: ["Core", "Components", "Event", "Style", "Validation"],
|
|
7590
|
+
Timer: ["Core", "Event", "Style", "Validation"],
|
|
7591
|
+
Rank: ["Core", "Event", "Style", "Validation"],
|
|
7592
|
+
Button: ["Core", "Properties", "Event", "Style", "Validation"],
|
|
7512
7593
|
Array: ["Core", "Components", "Validation"],
|
|
7513
|
-
Radio: ["Core", "Properties", "
|
|
7514
|
-
Text: ["Core", "Properties", "
|
|
7515
|
-
TextArea: ["Core", "Properties", "
|
|
7516
|
-
PopUp: ["Core", "Components", "Properties", "
|
|
7517
|
-
Stepper: ["Core", "Components", "Properties", "Event", "
|
|
7518
|
-
DataGrid: ["Core", "Components", "Properties", "Event", "
|
|
7519
|
-
InputSlider: ["Core", "Properties", "
|
|
7520
|
-
TreeMap: ["Core", "Components", "Properties", "
|
|
7594
|
+
Radio: ["Core", "Properties", "Event", "Style", "Validation"],
|
|
7595
|
+
Text: ["Core", "Properties", "Event", "Style", "Validation"],
|
|
7596
|
+
TextArea: ["Core", "Properties", "Event", "Style", "Validation"],
|
|
7597
|
+
PopUp: ["Core", "Components", "Properties", "Style"],
|
|
7598
|
+
Stepper: ["Core", "Components", "Properties", "Event", "Style"],
|
|
7599
|
+
DataGrid: ["Core", "Components", "Properties", "Event", "Style"],
|
|
7600
|
+
InputSlider: ["Core", "Properties", "Event", "Style", "Validation"],
|
|
7601
|
+
TreeMap: ["Core", "Components", "Properties", "Event", "Style"]
|
|
7521
7602
|
};
|
|
7522
7603
|
const refreshPage = (type, store2) => {
|
|
7523
7604
|
var _a;
|
|
@@ -7526,7 +7607,7 @@ const refreshPage = (type, store2) => {
|
|
|
7526
7607
|
const sectionUiSchema = {
|
|
7527
7608
|
Core: CoreSection,
|
|
7528
7609
|
Value: ValueTab,
|
|
7529
|
-
|
|
7610
|
+
Style: StyleSection,
|
|
7530
7611
|
Event: EventSection,
|
|
7531
7612
|
Components: TableSection,
|
|
7532
7613
|
Properties: buildPropertiesSection(type),
|
|
@@ -7585,17 +7666,17 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
|
|
|
7585
7666
|
const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
|
|
7586
7667
|
const rowId = dynamicData2.path.split(".")[1];
|
|
7587
7668
|
store2.formData.elements.splice(rowId, 1);
|
|
7588
|
-
const
|
|
7589
|
-
const
|
|
7590
|
-
store2.setFormdata(
|
|
7669
|
+
const response2 = saveFormdataInLocalStorage(store2.ctx.core.data, path);
|
|
7670
|
+
const data2 = path ? _.get(response2, path) : response2;
|
|
7671
|
+
store2.setFormdata(data2);
|
|
7591
7672
|
},
|
|
7592
7673
|
deleteEvent: function() {
|
|
7593
7674
|
var _a;
|
|
7594
7675
|
const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
|
|
7595
7676
|
const rowId = dynamicData2.path.split(".")[1];
|
|
7596
7677
|
store2.formData.events.splice(rowId, 1);
|
|
7597
|
-
const
|
|
7598
|
-
store2.setFormdata(_.get(
|
|
7678
|
+
const response2 = saveFormdataInLocalStorage(store2.ctx.core.data, path);
|
|
7679
|
+
store2.setFormdata(_.get(response2, path));
|
|
7599
7680
|
},
|
|
7600
7681
|
widgetAddClickHandler: function() {
|
|
7601
7682
|
var _a;
|
|
@@ -7678,14 +7759,14 @@ var pageMaster = (funcParams) => {
|
|
|
7678
7759
|
if (!Array.isArray(store2.formData.elements)) {
|
|
7679
7760
|
store2.formData.elements = [];
|
|
7680
7761
|
}
|
|
7681
|
-
const
|
|
7762
|
+
const response2 = saveFormdataInLocalStorage(store2.ctx.core.data);
|
|
7682
7763
|
if (id) {
|
|
7683
7764
|
store2.navigate(
|
|
7684
|
-
`/Component?path=${`elements[${
|
|
7765
|
+
`/Component?path=${`elements[${response2 == null ? void 0 : response2.elements.length}]`}&id=${id}`
|
|
7685
7766
|
);
|
|
7686
7767
|
} else {
|
|
7687
7768
|
store2.navigate(
|
|
7688
|
-
`/Component?path=${`elements[${
|
|
7769
|
+
`/Component?path=${`elements[${response2 == null ? void 0 : response2.elements.length}]`}`
|
|
7689
7770
|
);
|
|
7690
7771
|
}
|
|
7691
7772
|
},
|
|
@@ -7713,8 +7794,8 @@ var pageMaster = (funcParams) => {
|
|
|
7713
7794
|
deleteEvent: function() {
|
|
7714
7795
|
const rowId = dynamicData2.path.split(".")[1];
|
|
7715
7796
|
store2.formData.events.splice(rowId, 1);
|
|
7716
|
-
const
|
|
7717
|
-
store2.setFormdata(
|
|
7797
|
+
const response2 = saveFormdataInLocalStorage(store2.ctx.core.data);
|
|
7798
|
+
store2.setFormdata(response2);
|
|
7718
7799
|
}
|
|
7719
7800
|
};
|
|
7720
7801
|
};
|
|
@@ -8373,25 +8454,25 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
|
|
|
8373
8454
|
};
|
|
8374
8455
|
const downloadFile$1 = (obj) => {
|
|
8375
8456
|
const typeArr = obj.name.split(".");
|
|
8376
|
-
const
|
|
8377
|
-
const finalData = window.atob(
|
|
8457
|
+
const data2 = obj.data;
|
|
8458
|
+
const finalData = window.atob(data2);
|
|
8378
8459
|
let file;
|
|
8379
8460
|
file = new File([finalData], typeArr[typeArr.length - 1]);
|
|
8380
8461
|
const url = URL.createObjectURL(file);
|
|
8381
8462
|
const link = document.createElement("a");
|
|
8382
|
-
link.href = typeArr[typeArr.length - 1] === "pdf" ? "data:application/octet-stream;base64," +
|
|
8463
|
+
link.href = typeArr[typeArr.length - 1] === "pdf" ? "data:application/octet-stream;base64," + data2 : url;
|
|
8383
8464
|
link.download = `${obj.name}`;
|
|
8384
8465
|
document.body.appendChild(link);
|
|
8385
8466
|
link.click();
|
|
8386
8467
|
URL.revokeObjectURL(url);
|
|
8387
8468
|
document.body.removeChild(link);
|
|
8388
8469
|
};
|
|
8389
|
-
const doDownload = (
|
|
8390
|
-
let url = `${service2.defaults.baseURL}/${
|
|
8391
|
-
if (
|
|
8392
|
-
const keysArray = Object.keys(
|
|
8470
|
+
const doDownload = (response2, service2) => {
|
|
8471
|
+
let url = `${service2.defaults.baseURL}/${response2.path}`;
|
|
8472
|
+
if (response2 == null ? void 0 : response2.params) {
|
|
8473
|
+
const keysArray = Object.keys(response2 == null ? void 0 : response2.params);
|
|
8393
8474
|
keysArray.map((e, i) => {
|
|
8394
|
-
url = url + `${i === 0 ? "?" : "&"}${e}=${
|
|
8475
|
+
url = url + `${i === 0 ? "?" : "&"}${e}=${response2 == null ? void 0 : response2.params[e]}`;
|
|
8395
8476
|
});
|
|
8396
8477
|
}
|
|
8397
8478
|
const link = document.createElement("a");
|
|
@@ -8400,73 +8481,50 @@ const doDownload = (response, service2) => {
|
|
|
8400
8481
|
link.click();
|
|
8401
8482
|
link.parentNode.removeChild(link);
|
|
8402
8483
|
};
|
|
8403
|
-
const executeEvents = (params2) => {
|
|
8484
|
+
const executeEvents = async (params2) => {
|
|
8404
8485
|
var _a, _b, _c;
|
|
8405
8486
|
let nextEvent = [];
|
|
8406
8487
|
let finalResponse = null;
|
|
8407
|
-
if (params2.config.isSync !== "Yes") {
|
|
8408
|
-
return shouldEventExecute(params2).then((shouldExecute2) => {
|
|
8409
|
-
if (!shouldExecute2) {
|
|
8410
|
-
return { response: void 0, events: void 0 };
|
|
8411
|
-
}
|
|
8412
|
-
return executeEventsHandler(params2);
|
|
8413
|
-
}).then((response) => {
|
|
8414
|
-
var _a2;
|
|
8415
|
-
finalResponse = response;
|
|
8416
|
-
const SuccessEvent = (_a2 = params2.config) == null ? void 0 : _a2.events.filter((e) => e.eventType === "Success");
|
|
8417
|
-
nextEvent = SuccessEvent;
|
|
8418
|
-
}).catch((err) => {
|
|
8419
|
-
var _a2, _b2;
|
|
8420
|
-
const FailEvent = (_b2 = (_a2 = params2.config) == null ? void 0 : _a2.events) == null ? void 0 : _b2.filter((e) => e.eventType === "Fail");
|
|
8421
|
-
const setEvent = (FailEvent == null ? void 0 : FailEvent.length) > 0 ? FailEvent : [];
|
|
8422
|
-
nextEvent = setEvent;
|
|
8423
|
-
}).then(() => {
|
|
8424
|
-
if ((nextEvent == null ? void 0 : nextEvent.length) > 0) {
|
|
8425
|
-
return nextEvent.reduce((chain, actionConfig) => {
|
|
8426
|
-
return chain.then(() => executeEvents({ ...params2, config: actionConfig, parentEventOutput: finalResponse }));
|
|
8427
|
-
}, Promise.resolve());
|
|
8428
|
-
}
|
|
8429
|
-
}).then(() => finalResponse);
|
|
8430
|
-
}
|
|
8431
|
-
const shouldExecute = shouldEventExecute(params2);
|
|
8432
|
-
if (!shouldExecute) {
|
|
8433
|
-
return { response: void 0, events: void 0 };
|
|
8434
|
-
}
|
|
8435
8488
|
try {
|
|
8436
|
-
const
|
|
8437
|
-
|
|
8489
|
+
const shouldExecute = await shouldEventExecute(params2);
|
|
8490
|
+
if (!shouldExecute) {
|
|
8491
|
+
return { response: void 0, events: void 0 };
|
|
8492
|
+
}
|
|
8493
|
+
const response2 = await executeEventsHandler(params2);
|
|
8494
|
+
finalResponse = response2;
|
|
8438
8495
|
const SuccessEvent = (_a = params2.config) == null ? void 0 : _a.events.filter((e) => e.eventType === "Success");
|
|
8439
8496
|
nextEvent = SuccessEvent;
|
|
8440
|
-
} catch {
|
|
8497
|
+
} catch (err) {
|
|
8441
8498
|
const FailEvent = (_c = (_b = params2.config) == null ? void 0 : _b.events) == null ? void 0 : _c.filter((e) => e.eventType === "Fail");
|
|
8442
8499
|
const setEvent = (FailEvent == null ? void 0 : FailEvent.length) > 0 ? FailEvent : [];
|
|
8443
8500
|
nextEvent = setEvent;
|
|
8444
8501
|
}
|
|
8445
8502
|
if ((nextEvent == null ? void 0 : nextEvent.length) > 0) {
|
|
8446
8503
|
for (const actionConfig of nextEvent) {
|
|
8447
|
-
executeEvents({ ...params2, config: actionConfig, parentEventOutput: finalResponse });
|
|
8504
|
+
await executeEvents({ ...params2, config: actionConfig, parentEventOutput: finalResponse });
|
|
8448
8505
|
}
|
|
8449
8506
|
}
|
|
8450
8507
|
return finalResponse;
|
|
8451
8508
|
};
|
|
8452
|
-
function executeEventsHandler(params2) {
|
|
8509
|
+
async function executeEventsHandler(params2) {
|
|
8453
8510
|
var _a, _b, _c;
|
|
8454
8511
|
if (params2.config.Handler === "api") {
|
|
8455
|
-
return
|
|
8512
|
+
return await executeApiEventHandler(params2);
|
|
8456
8513
|
} else if (params2.config.Handler === "inBuiltFunction") {
|
|
8457
|
-
return executeInBuiltFunctionHandler(params2);
|
|
8514
|
+
return await executeInBuiltFunctionHandler(params2);
|
|
8458
8515
|
} else if (params2.config.Handler === "custom") {
|
|
8459
|
-
return executeCustomHandler(params2);
|
|
8516
|
+
return await executeCustomHandler(params2);
|
|
8460
8517
|
} else if (params2.config.Handler === "refresh") {
|
|
8461
|
-
return executeRefreshHandler(params2);
|
|
8518
|
+
return await executeRefreshHandler(params2);
|
|
8462
8519
|
} else if (params2.config.Handler === "mergeFormdata") {
|
|
8463
|
-
|
|
8520
|
+
const result = await mergeFormdata(
|
|
8464
8521
|
params2.parentEventOutput,
|
|
8465
8522
|
params2.componentName,
|
|
8466
8523
|
params2.config,
|
|
8467
8524
|
params2.store,
|
|
8468
8525
|
params2.service
|
|
8469
8526
|
);
|
|
8527
|
+
return result;
|
|
8470
8528
|
} else if (params2.config.Handler === "onBackHandler") {
|
|
8471
8529
|
return (_a = params2.store.functionParameters) == null ? void 0 : _a.handleBack();
|
|
8472
8530
|
} else if (params2.config.Handler === "onNextHandler") {
|
|
@@ -8475,65 +8533,43 @@ function executeEventsHandler(params2) {
|
|
|
8475
8533
|
return (_c = params2.store.functionParameters) == null ? void 0 : _c.handleReset();
|
|
8476
8534
|
}
|
|
8477
8535
|
}
|
|
8478
|
-
function
|
|
8479
|
-
|
|
8480
|
-
|
|
8481
|
-
|
|
8482
|
-
|
|
8483
|
-
return e.value;
|
|
8484
|
-
});
|
|
8485
|
-
} else {
|
|
8486
|
-
if (eventGropus == null ? void 0 : eventGropus.onLoad) {
|
|
8487
|
-
result = Object.keys(eventGropus == null ? void 0 : eventGropus.onLoad);
|
|
8488
|
-
result.push(result[0]);
|
|
8536
|
+
async function executeRefreshHandler(params2) {
|
|
8537
|
+
const compToRefresh = getRefreshElements(params2.config, params2.eventGroups);
|
|
8538
|
+
for (const componentName of compToRefresh) {
|
|
8539
|
+
for (const compEventConfig of params2.eventGroups.onLoad[componentName]) {
|
|
8540
|
+
await executeEvents({ ...params2, config: compEventConfig, componentName });
|
|
8489
8541
|
}
|
|
8490
8542
|
}
|
|
8491
|
-
return result;
|
|
8492
8543
|
}
|
|
8493
|
-
function
|
|
8494
|
-
const compToRefresh = getRefreshElements(params2.config, params2.eventGroups);
|
|
8495
|
-
return Promise.all(compToRefresh.map((componentName) => {
|
|
8496
|
-
return Promise.all(params2.eventGroups.onLoad[componentName].map((compEventConfig) => {
|
|
8497
|
-
return executeEvents({ ...params2, config: compEventConfig, componentName });
|
|
8498
|
-
}));
|
|
8499
|
-
}));
|
|
8500
|
-
}
|
|
8501
|
-
function executeApiRequest(params2) {
|
|
8544
|
+
async function executeApiEventHandler(params2) {
|
|
8502
8545
|
var _a;
|
|
8503
8546
|
const initialBody = { ...(_a = params2.userValue) == null ? void 0 : _a.payload };
|
|
8504
8547
|
const initialHeaders = {
|
|
8505
8548
|
"X-Requested-With": "XMLHttpRequest",
|
|
8506
8549
|
"Access-Control-Allow-Origin": "*"
|
|
8507
8550
|
};
|
|
8508
|
-
const
|
|
8509
|
-
|
|
8551
|
+
const { body: body2, headers: headers2 } = await buildApiPayload(params2.config, initialBody, initialHeaders, params2.store, params2.dynamicData, params2.userValue, params2.service);
|
|
8552
|
+
const response2 = await params2.service[params2.config.method](
|
|
8510
8553
|
params2.config.path,
|
|
8511
|
-
|
|
8512
|
-
{ headers:
|
|
8513
|
-
)
|
|
8514
|
-
|
|
8515
|
-
});
|
|
8554
|
+
body2,
|
|
8555
|
+
headers2 && { headers: headers2 }
|
|
8556
|
+
);
|
|
8557
|
+
return response2;
|
|
8516
8558
|
}
|
|
8517
|
-
function executeInBuiltFunctionHandler(params) {
|
|
8559
|
+
async function executeInBuiltFunctionHandler(params) {
|
|
8518
8560
|
let parameter = {};
|
|
8519
8561
|
if (params.config.funcParametersCode) {
|
|
8520
8562
|
const makeFunc = eval(params.config.funcParametersCode);
|
|
8521
8563
|
parameter = makeFunc(params.store, params.dynamicData, params.userValue, params.parentEventOutput, params.service);
|
|
8522
|
-
params.serviceHolder[params.config.inBuiltFunctionType](parameter, params.service);
|
|
8523
|
-
} else {
|
|
8524
|
-
params.serviceHolder[params.config.inBuiltFunctionType](params.store, params.dynamicData, params.userValue, params.parentEventOutput, params.service);
|
|
8525
8564
|
}
|
|
8565
|
+
params.serviceHolder[params.config.inBuiltFunctionType](parameter);
|
|
8526
8566
|
}
|
|
8527
|
-
function executeCustomHandler(params) {
|
|
8567
|
+
async function executeCustomHandler(params) {
|
|
8528
8568
|
const makeFunc = eval(params.config.eventCode);
|
|
8529
|
-
|
|
8530
|
-
|
|
8531
|
-
} else {
|
|
8532
|
-
const response = makeFunc(params.store, params.dynamicData, params.userValue, params.parentEventOutput, params.service, params.componentName);
|
|
8533
|
-
return response;
|
|
8534
|
-
}
|
|
8569
|
+
const response = await makeFunc(params.store, params.dynamicData, params.userValue, params.parentEventOutput, params.service, params.componentName);
|
|
8570
|
+
return response;
|
|
8535
8571
|
}
|
|
8536
|
-
function mergeFormdata(handlerResponse, componentName, eventConfig, store2, service2) {
|
|
8572
|
+
async function mergeFormdata(handlerResponse, componentName, eventConfig, store2, service2) {
|
|
8537
8573
|
if (eventConfig.type === "Select" && !(_.isEmpty(handlerResponse == null ? void 0 : handlerResponse.data) && (handlerResponse == null ? void 0 : handlerResponse.data))) {
|
|
8538
8574
|
store2.setSchema((pre) => {
|
|
8539
8575
|
var _a;
|
|
@@ -8574,14 +8610,14 @@ function mergeFormdata(handlerResponse, componentName, eventConfig, store2, serv
|
|
|
8574
8610
|
} else {
|
|
8575
8611
|
if (handlerResponse) {
|
|
8576
8612
|
store2.setFormdata((pre) => {
|
|
8577
|
-
|
|
8578
|
-
return { ...pre, [componentName]: eventConfig.lazyLoading ? (_a = handlerResponse == null ? void 0 : handlerResponse.data) == null ? void 0 : _a.data : handlerResponse.data };
|
|
8613
|
+
return { ...pre, [componentName]: eventConfig.lazyLoading ? handlerResponse.data.data : handlerResponse.data };
|
|
8579
8614
|
});
|
|
8615
|
+
await asyncOperation();
|
|
8580
8616
|
}
|
|
8581
8617
|
}
|
|
8582
8618
|
}
|
|
8583
8619
|
const buildBodyFormat = (body2, formData, userValue2) => {
|
|
8584
|
-
|
|
8620
|
+
const finalBody = { ...userValue2 == null ? void 0 : userValue2.payload };
|
|
8585
8621
|
body2.map((elem) => {
|
|
8586
8622
|
var _a, _b;
|
|
8587
8623
|
if (typeof (elem == null ? void 0 : elem.value) !== "string") {
|
|
@@ -8593,10 +8629,6 @@ const buildBodyFormat = (body2, formData, userValue2) => {
|
|
|
8593
8629
|
} else if ((_b = elem == null ? void 0 : elem.value) == null ? void 0 : _b.startsWith("$")) {
|
|
8594
8630
|
const finalpath = elem.value.substring(1);
|
|
8595
8631
|
finalBody[elem.key] = _.get(formData, finalpath);
|
|
8596
|
-
} else if ((elem == null ? void 0 : elem.value) === "*" && (elem == null ? void 0 : elem.key) === "*") {
|
|
8597
|
-
finalBody = { ...finalBody, ...formData };
|
|
8598
|
-
} else if ((elem == null ? void 0 : elem.value) === "*") {
|
|
8599
|
-
finalBody[elem.key] = formData;
|
|
8600
8632
|
} else {
|
|
8601
8633
|
finalBody[elem.key] = elem.value;
|
|
8602
8634
|
}
|
|
@@ -8613,22 +8645,17 @@ const buildHeadersFormat = (headers2) => {
|
|
|
8613
8645
|
});
|
|
8614
8646
|
return headerObj;
|
|
8615
8647
|
};
|
|
8616
|
-
function shouldEventExecute(params2) {
|
|
8648
|
+
async function shouldEventExecute(params2) {
|
|
8617
8649
|
var _a, _b;
|
|
8618
8650
|
const startEvent = (_b = (_a = params2.config) == null ? void 0 : _a.events) == null ? void 0 : _b.filter((e) => e.eventType === "onStart");
|
|
8619
8651
|
if ((startEvent == null ? void 0 : startEvent.length) > 0) {
|
|
8620
|
-
|
|
8621
|
-
|
|
8622
|
-
});
|
|
8652
|
+
const response2 = await executeEventsHandler({ ...params2, config: startEvent[0] });
|
|
8653
|
+
return response2;
|
|
8623
8654
|
} else {
|
|
8624
|
-
|
|
8625
|
-
return Promise.resolve(true);
|
|
8626
|
-
} else {
|
|
8627
|
-
return true;
|
|
8628
|
-
}
|
|
8655
|
+
return true;
|
|
8629
8656
|
}
|
|
8630
8657
|
}
|
|
8631
|
-
function buildApiPayload(compConfig, body, headers, store, dynamicData, userValue, service) {
|
|
8658
|
+
async function buildApiPayload(compConfig, body, headers, store, dynamicData, userValue, service) {
|
|
8632
8659
|
var _a, _b;
|
|
8633
8660
|
if (compConfig == null ? void 0 : compConfig.headers) {
|
|
8634
8661
|
headers = buildHeadersFormat(compConfig.headers);
|
|
@@ -8636,12 +8663,38 @@ function buildApiPayload(compConfig, body, headers, store, dynamicData, userValu
|
|
|
8636
8663
|
if (compConfig.body) {
|
|
8637
8664
|
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) };
|
|
8638
8665
|
}
|
|
8639
|
-
const promiseChain = { body, headers };
|
|
8640
8666
|
if (compConfig.apiBody) {
|
|
8641
8667
|
const makeFunc = eval(compConfig.apiBody);
|
|
8642
|
-
|
|
8668
|
+
const data = await makeFunc(store, dynamicData, userValue, body);
|
|
8669
|
+
body = data;
|
|
8643
8670
|
}
|
|
8644
|
-
return
|
|
8671
|
+
return { body, headers };
|
|
8672
|
+
}
|
|
8673
|
+
function getRefreshElements(eventConfig, eventGropus) {
|
|
8674
|
+
var _a;
|
|
8675
|
+
let result = [];
|
|
8676
|
+
if (((_a = eventConfig == null ? void 0 : eventConfig.refreshElements) == null ? void 0 : _a.length) > 0) {
|
|
8677
|
+
result = eventConfig.refreshElements.map((e) => {
|
|
8678
|
+
return e.value;
|
|
8679
|
+
});
|
|
8680
|
+
} else {
|
|
8681
|
+
if (eventGropus == null ? void 0 : eventGropus.onLoad) {
|
|
8682
|
+
result = Object.keys(eventGropus == null ? void 0 : eventGropus.onLoad);
|
|
8683
|
+
result.push(result[0]);
|
|
8684
|
+
}
|
|
8685
|
+
}
|
|
8686
|
+
console.log(result);
|
|
8687
|
+
return result;
|
|
8688
|
+
}
|
|
8689
|
+
function asyncOperation() {
|
|
8690
|
+
return new Promise((resolve, reject) => {
|
|
8691
|
+
setTimeout(() => {
|
|
8692
|
+
{
|
|
8693
|
+
resolve("Operation completed successfully!");
|
|
8694
|
+
reject(new Error("Operation failed!"));
|
|
8695
|
+
}
|
|
8696
|
+
}, 50);
|
|
8697
|
+
});
|
|
8645
8698
|
}
|
|
8646
8699
|
let compType;
|
|
8647
8700
|
let eventGroups = {};
|
|
@@ -8687,6 +8740,8 @@ const extractEvents = (eventConfig) => {
|
|
|
8687
8740
|
return eventGroups;
|
|
8688
8741
|
};
|
|
8689
8742
|
var service = (funcParams) => {
|
|
8743
|
+
eventGroups = {};
|
|
8744
|
+
eventGroups = extractEvents(funcParams.config);
|
|
8690
8745
|
let executeEventsParameters = {
|
|
8691
8746
|
config: {},
|
|
8692
8747
|
componentName: "",
|
|
@@ -8694,47 +8749,23 @@ var service = (funcParams) => {
|
|
|
8694
8749
|
dynamicData: funcParams.dynamicData,
|
|
8695
8750
|
userValue: funcParams.userValue,
|
|
8696
8751
|
service: funcParams.service,
|
|
8697
|
-
serviceHolder: { downloadFile: downloadFile$1, download: doDownload
|
|
8698
|
-
eventGroups
|
|
8699
|
-
functionsProvider: funcParams.functionsProvider
|
|
8752
|
+
serviceHolder: { downloadFile: downloadFile$1, download: doDownload },
|
|
8753
|
+
eventGroups
|
|
8700
8754
|
};
|
|
8701
8755
|
return {
|
|
8702
8756
|
setPage: async function() {
|
|
8703
|
-
var _a, _b;
|
|
8704
8757
|
funcParams.store.setFormdata({});
|
|
8705
|
-
|
|
8706
|
-
|
|
8707
|
-
|
|
8708
|
-
|
|
8709
|
-
|
|
8710
|
-
|
|
8711
|
-
|
|
8712
|
-
|
|
8713
|
-
|
|
8714
|
-
|
|
8715
|
-
|
|
8716
|
-
}
|
|
8717
|
-
});
|
|
8718
|
-
const response = await funcParams.service.get(
|
|
8719
|
-
`/page/getById?id=${(_a = pageId == null ? void 0 : pageId.data) == null ? void 0 : _a.id}`,
|
|
8720
|
-
{
|
|
8721
|
-
headers: {
|
|
8722
|
-
"Content-Type": "application/json"
|
|
8723
|
-
}
|
|
8724
|
-
}
|
|
8725
|
-
);
|
|
8726
|
-
pageData = response.data;
|
|
8727
|
-
localStorage.setItem("pagemasterMetaData", JSON.stringify({
|
|
8728
|
-
schema: pageData == null ? void 0 : pageData.schema,
|
|
8729
|
-
uiSchema: pageData == null ? void 0 : pageData.uiSchema,
|
|
8730
|
-
config: pageData == null ? void 0 : pageData.config
|
|
8731
|
-
}));
|
|
8732
|
-
}
|
|
8733
|
-
const config = pageData == null ? void 0 : pageData.config;
|
|
8734
|
-
const uiSchema = pageData == null ? void 0 : pageData.uiSchema;
|
|
8735
|
-
const schema2 = (_b = pageData == null ? void 0 : pageData.schema) != null ? _b : { type: "object", properties: {} };
|
|
8736
|
-
eventGroups = {};
|
|
8737
|
-
eventGroups = extractEvents(config);
|
|
8758
|
+
funcParams.store.setSchema(
|
|
8759
|
+
(pre) => {
|
|
8760
|
+
return {
|
|
8761
|
+
...funcParams.schema,
|
|
8762
|
+
properties: { ...funcParams.schema.properties, ...pre.properties }
|
|
8763
|
+
};
|
|
8764
|
+
}
|
|
8765
|
+
);
|
|
8766
|
+
funcParams.uiSchema.elements.push(notifyUiSchema);
|
|
8767
|
+
funcParams.store.setUiSchema(funcParams.uiSchema);
|
|
8768
|
+
await asyncOperation();
|
|
8738
8769
|
executeEventsParameters = {
|
|
8739
8770
|
config: {},
|
|
8740
8771
|
componentName: "",
|
|
@@ -8742,7 +8773,6 @@ var service = (funcParams) => {
|
|
|
8742
8773
|
dynamicData: funcParams.dynamicData,
|
|
8743
8774
|
userValue: funcParams.userValue,
|
|
8744
8775
|
service: funcParams.service,
|
|
8745
|
-
functionsProvider: funcParams.functionsProvider,
|
|
8746
8776
|
serviceHolder: this,
|
|
8747
8777
|
eventGroups
|
|
8748
8778
|
};
|
|
@@ -8756,47 +8786,15 @@ var service = (funcParams) => {
|
|
|
8756
8786
|
serviceHolder: this,
|
|
8757
8787
|
eventGroups
|
|
8758
8788
|
});
|
|
8759
|
-
funcParams.store.setSchema(
|
|
8760
|
-
(pre) => {
|
|
8761
|
-
return {
|
|
8762
|
-
...schema2,
|
|
8763
|
-
properties: { ...schema2.properties, ...pre.properties }
|
|
8764
|
-
};
|
|
8765
|
-
}
|
|
8766
|
-
);
|
|
8767
|
-
uiSchema.elements.push(notifyUiSchema);
|
|
8768
|
-
funcParams.store.setUiSchema(uiSchema);
|
|
8769
|
-
},
|
|
8770
|
-
onCellRenderer: (cellParams) => {
|
|
8771
|
-
var _a;
|
|
8772
|
-
let finalResponse = {};
|
|
8773
|
-
cellParams.spanRef.current.style.color = "yellow";
|
|
8774
|
-
const path = ((_a = funcParams.dynamicData) == null ? void 0 : _a.tableButtonPath) || funcParams.dynamicData.path.split(".")[0];
|
|
8775
|
-
for (const eventConfig of eventGroups == null ? void 0 : eventGroups.onCellRenderer[path]) {
|
|
8776
|
-
executeEventsParameters.store.functionParameters = cellParams;
|
|
8777
|
-
finalResponse = executeEvents({
|
|
8778
|
-
...executeEventsParameters,
|
|
8779
|
-
config: eventConfig,
|
|
8780
|
-
componentName: path
|
|
8781
|
-
});
|
|
8782
|
-
}
|
|
8783
|
-
console.log("finalResponse >> >> >> ", finalResponse);
|
|
8784
|
-
return finalResponse;
|
|
8785
|
-
},
|
|
8786
|
-
onClick: function() {
|
|
8787
|
-
this.callHandler("onClick");
|
|
8788
8789
|
},
|
|
8789
|
-
|
|
8790
|
-
this.callHandler("
|
|
8790
|
+
onClick: async function() {
|
|
8791
|
+
await this.callHandler("onClick");
|
|
8791
8792
|
},
|
|
8792
|
-
onFileDownload: function() {
|
|
8793
|
-
this.callHandler("onDownload");
|
|
8793
|
+
onFileDownload: async function() {
|
|
8794
|
+
await this.callHandler("onDownload");
|
|
8794
8795
|
},
|
|
8795
|
-
onFileUpload: function() {
|
|
8796
|
-
this.callHandler("onUpload");
|
|
8797
|
-
},
|
|
8798
|
-
backHandler: function() {
|
|
8799
|
-
funcParams.store.navigate(-1);
|
|
8796
|
+
onFileUpload: async function() {
|
|
8797
|
+
await this.callHandler("onUpload");
|
|
8800
8798
|
},
|
|
8801
8799
|
onPaginationChange: async function(paginationValues) {
|
|
8802
8800
|
var _a;
|
|
@@ -8807,8 +8805,8 @@ var service = (funcParams) => {
|
|
|
8807
8805
|
{ key: "filters", value: paginationValues.columnFilters || [] },
|
|
8808
8806
|
{ key: "globalFilter", value: (_a = paginationValues.globalFilter) != null ? _a : "" }
|
|
8809
8807
|
];
|
|
8810
|
-
const
|
|
8811
|
-
return
|
|
8808
|
+
const response2 = await this.updateConfigApiBody(paginationValues, apiBody);
|
|
8809
|
+
return response2 == null ? void 0 : response2.data;
|
|
8812
8810
|
},
|
|
8813
8811
|
getSelectOptions: async function(param) {
|
|
8814
8812
|
if (param.serachValue !== "" && param.serachValue !== void 0) {
|
|
@@ -8816,8 +8814,7 @@ var service = (funcParams) => {
|
|
|
8816
8814
|
{ key: "searchValue", value: param.serachValue },
|
|
8817
8815
|
{ key: "currentValue", value: param.currentValue }
|
|
8818
8816
|
];
|
|
8819
|
-
|
|
8820
|
-
return response == null ? void 0 : response.data;
|
|
8817
|
+
return await this.updateConfigApiBody(param, apiBody);
|
|
8821
8818
|
}
|
|
8822
8819
|
},
|
|
8823
8820
|
onChange: async function() {
|
|
@@ -8891,7 +8888,7 @@ var service = (funcParams) => {
|
|
|
8891
8888
|
if (((_b = eventGroups == null ? void 0 : eventGroups[eventType]) == null ? void 0 : _b[path]) !== void 0) {
|
|
8892
8889
|
for (const eventConfig of (_c = eventGroups == null ? void 0 : eventGroups[eventType]) == null ? void 0 : _c[path]) {
|
|
8893
8890
|
executeEventsParameters.store.functionParameters = functionParameters;
|
|
8894
|
-
executeEvents({
|
|
8891
|
+
await executeEvents({
|
|
8895
8892
|
...executeEventsParameters,
|
|
8896
8893
|
config: eventConfig,
|
|
8897
8894
|
componentName: path
|
|
@@ -8900,8 +8897,7 @@ var service = (funcParams) => {
|
|
|
8900
8897
|
}
|
|
8901
8898
|
},
|
|
8902
8899
|
downloadFile: downloadFile$1,
|
|
8903
|
-
download: doDownload
|
|
8904
|
-
...funcParams.functionsProvider
|
|
8900
|
+
download: doDownload
|
|
8905
8901
|
};
|
|
8906
8902
|
};
|
|
8907
8903
|
var leaderBoard = {
|
|
@@ -11134,29 +11130,54 @@ const buildUiSchema = (config) => {
|
|
|
11134
11130
|
if ((config == null ? void 0 : config.type) === "LeaderBoard") {
|
|
11135
11131
|
return elements;
|
|
11136
11132
|
} else if (config.type == "Table") {
|
|
11133
|
+
let nodeProvider2 = function(element) {
|
|
11134
|
+
if (element.type) {
|
|
11135
|
+
return {
|
|
11136
|
+
accessorKey: element.name,
|
|
11137
|
+
type: element.columnFormat,
|
|
11138
|
+
header: element.label || element.name,
|
|
11139
|
+
size: sizeMap[element.name] || 180,
|
|
11140
|
+
widget: buildUiSchema(element)
|
|
11141
|
+
};
|
|
11142
|
+
}
|
|
11143
|
+
return {
|
|
11144
|
+
accessorKey: element.name,
|
|
11145
|
+
type: element.columnFormat,
|
|
11146
|
+
header: element.label || element.name,
|
|
11147
|
+
size: sizeMap[element.name] || 180
|
|
11148
|
+
};
|
|
11149
|
+
}, buildHierarchy2 = function(elements2, parentName = null) {
|
|
11150
|
+
const result = [];
|
|
11151
|
+
for (const element of elements2) {
|
|
11152
|
+
if ((element == null ? void 0 : element.parent) === parentName) {
|
|
11153
|
+
const children = buildHierarchy2(elements2, element.name);
|
|
11154
|
+
const node = nodeProvider2(element);
|
|
11155
|
+
if (children.length > 0) {
|
|
11156
|
+
node.columns = children;
|
|
11157
|
+
node.type = "group";
|
|
11158
|
+
}
|
|
11159
|
+
result.push(node);
|
|
11160
|
+
}
|
|
11161
|
+
}
|
|
11162
|
+
return result;
|
|
11163
|
+
}, transformConfigToOutput2 = function(config2) {
|
|
11164
|
+
const output = [];
|
|
11165
|
+
const hierarchy = buildHierarchy2(config2.elements, config2.name);
|
|
11166
|
+
for (const element of config2.elements) {
|
|
11167
|
+
const parentExists = config2.elements.some((e) => e.name === element.parent);
|
|
11168
|
+
if (!parentExists && element.parent !== config2.name) {
|
|
11169
|
+
output.push(nodeProvider2(element));
|
|
11170
|
+
}
|
|
11171
|
+
}
|
|
11172
|
+
return [...hierarchy, ...output];
|
|
11173
|
+
};
|
|
11137
11174
|
const sizeMap = {};
|
|
11138
11175
|
if (config.sizeHolder) {
|
|
11139
11176
|
config.sizeHolder.map((e, i) => {
|
|
11140
11177
|
sizeMap[e.keyName] = e.value;
|
|
11141
11178
|
});
|
|
11142
11179
|
}
|
|
11143
|
-
elements.elements = config
|
|
11144
|
-
if (e.type && e.type !== "date" && e.type !== "dateTime" && e.type !== "amount") {
|
|
11145
|
-
return {
|
|
11146
|
-
accessorKey: e.name,
|
|
11147
|
-
header: e.label || e.name,
|
|
11148
|
-
size: sizeMap[e.name] || 180,
|
|
11149
|
-
type: e.type,
|
|
11150
|
-
widget: buildUiSchema(e)
|
|
11151
|
-
};
|
|
11152
|
-
}
|
|
11153
|
-
return {
|
|
11154
|
-
type: e.type,
|
|
11155
|
-
accessorKey: e.name,
|
|
11156
|
-
header: e.label || e.name,
|
|
11157
|
-
size: sizeMap[e.name] || 180
|
|
11158
|
-
};
|
|
11159
|
-
});
|
|
11180
|
+
elements.elements = transformConfigToOutput2(config);
|
|
11160
11181
|
} else if (config.type == "Array") {
|
|
11161
11182
|
elements.options.detail.elements = config.elements.map((e, elemInd) => {
|
|
11162
11183
|
return buildUiSchema(e);
|