impaktapps-ui-builder 0.0.409-j → 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 +277 -363
- package/dist/impaktapps-ui-builder.es.js.map +1 -1
- package/dist/impaktapps-ui-builder.umd.js +12 -12
- package/dist/impaktapps-ui-builder.umd.js.map +1 -1
- 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 +47 -1
- 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) {
|
|
@@ -7454,21 +7454,21 @@ const createLayoutFormat = (config) => {
|
|
|
7454
7454
|
lg: 5.5
|
|
7455
7455
|
};
|
|
7456
7456
|
}
|
|
7457
|
-
let
|
|
7457
|
+
let data2 = {};
|
|
7458
7458
|
config.map((e) => {
|
|
7459
|
-
|
|
7459
|
+
data2[e.key || "xs"] = +e.value || 5.5;
|
|
7460
7460
|
});
|
|
7461
|
-
return
|
|
7461
|
+
return data2;
|
|
7462
7462
|
};
|
|
7463
7463
|
const flatObjectValueInArray = (config) => {
|
|
7464
7464
|
if (config[0].length < 1) {
|
|
7465
7465
|
return;
|
|
7466
7466
|
}
|
|
7467
7467
|
const keyName = Object.keys(config[0])[0];
|
|
7468
|
-
const
|
|
7468
|
+
const data2 = config.map((e) => {
|
|
7469
7469
|
return e[keyName];
|
|
7470
7470
|
});
|
|
7471
|
-
return
|
|
7471
|
+
return data2;
|
|
7472
7472
|
};
|
|
7473
7473
|
const clearFromLocalStorage = () => {
|
|
7474
7474
|
localStorage.removeItem("pageFormdata");
|
|
@@ -7486,9 +7486,9 @@ const getNavigationHistory = (config, path) => {
|
|
|
7486
7486
|
arr.push(`${arr[i - 1]}.${e}`);
|
|
7487
7487
|
});
|
|
7488
7488
|
arr.map((e) => {
|
|
7489
|
-
const
|
|
7490
|
-
if (
|
|
7491
|
-
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)}`;
|
|
7492
7492
|
} else {
|
|
7493
7493
|
urlRoutes = urlRoutes + " > NewComponent";
|
|
7494
7494
|
}
|
|
@@ -7571,34 +7571,34 @@ function okHandler(store2) {
|
|
|
7571
7571
|
}
|
|
7572
7572
|
}
|
|
7573
7573
|
const sectionLabels = {
|
|
7574
|
-
Select: ["Core", "Properties", "Value", "
|
|
7575
|
-
MultipleSelect: ["Core", "Properties", "Value", "
|
|
7576
|
-
Table: ["Core", "Components", "Properties", "
|
|
7577
|
-
LeaderBoard: ["Core", "Components", "Properties", "
|
|
7578
|
-
WrapperSection: ["Core", "Components", "Properties", "
|
|
7579
|
-
TabSection: ["Core", "Components", "Properties", "
|
|
7580
|
-
SpeedoMeter: ["Core", "Properties", "
|
|
7581
|
-
card: ["Core", "Properties", "
|
|
7582
|
-
UploadFile: ["Core", "
|
|
7583
|
-
Graph: ["Core", "Properties", "
|
|
7584
|
-
DownloadFile: ["Core", "
|
|
7585
|
-
Box: ["Core", "
|
|
7586
|
-
Properties: ["Core", "Properties", "
|
|
7587
|
-
ProgressBarCard: ["Core", "Properties", "
|
|
7588
|
-
RankCard: ["Core", "Properties", "
|
|
7589
|
-
Slider: ["Core", "Components", "
|
|
7590
|
-
Timer: ["Core", "
|
|
7591
|
-
Rank: ["Core", "
|
|
7592
|
-
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"],
|
|
7593
7593
|
Array: ["Core", "Components", "Validation"],
|
|
7594
|
-
Radio: ["Core", "Properties", "
|
|
7595
|
-
Text: ["Core", "Properties", "
|
|
7596
|
-
TextArea: ["Core", "Properties", "
|
|
7597
|
-
PopUp: ["Core", "Components", "Properties", "
|
|
7598
|
-
Stepper: ["Core", "Components", "Properties", "Event", "
|
|
7599
|
-
DataGrid: ["Core", "Components", "Properties", "Event", "
|
|
7600
|
-
InputSlider: ["Core", "Properties", "
|
|
7601
|
-
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"]
|
|
7602
7602
|
};
|
|
7603
7603
|
const refreshPage = (type, store2) => {
|
|
7604
7604
|
var _a;
|
|
@@ -7607,7 +7607,7 @@ const refreshPage = (type, store2) => {
|
|
|
7607
7607
|
const sectionUiSchema = {
|
|
7608
7608
|
Core: CoreSection,
|
|
7609
7609
|
Value: ValueTab,
|
|
7610
|
-
|
|
7610
|
+
Style: StyleSection,
|
|
7611
7611
|
Event: EventSection,
|
|
7612
7612
|
Components: TableSection,
|
|
7613
7613
|
Properties: buildPropertiesSection(type),
|
|
@@ -7666,17 +7666,17 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
|
|
|
7666
7666
|
const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
|
|
7667
7667
|
const rowId = dynamicData2.path.split(".")[1];
|
|
7668
7668
|
store2.formData.elements.splice(rowId, 1);
|
|
7669
|
-
const
|
|
7670
|
-
const
|
|
7671
|
-
store2.setFormdata(
|
|
7669
|
+
const response2 = saveFormdataInLocalStorage(store2.ctx.core.data, path);
|
|
7670
|
+
const data2 = path ? _.get(response2, path) : response2;
|
|
7671
|
+
store2.setFormdata(data2);
|
|
7672
7672
|
},
|
|
7673
7673
|
deleteEvent: function() {
|
|
7674
7674
|
var _a;
|
|
7675
7675
|
const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
|
|
7676
7676
|
const rowId = dynamicData2.path.split(".")[1];
|
|
7677
7677
|
store2.formData.events.splice(rowId, 1);
|
|
7678
|
-
const
|
|
7679
|
-
store2.setFormdata(_.get(
|
|
7678
|
+
const response2 = saveFormdataInLocalStorage(store2.ctx.core.data, path);
|
|
7679
|
+
store2.setFormdata(_.get(response2, path));
|
|
7680
7680
|
},
|
|
7681
7681
|
widgetAddClickHandler: function() {
|
|
7682
7682
|
var _a;
|
|
@@ -7759,14 +7759,14 @@ var pageMaster = (funcParams) => {
|
|
|
7759
7759
|
if (!Array.isArray(store2.formData.elements)) {
|
|
7760
7760
|
store2.formData.elements = [];
|
|
7761
7761
|
}
|
|
7762
|
-
const
|
|
7762
|
+
const response2 = saveFormdataInLocalStorage(store2.ctx.core.data);
|
|
7763
7763
|
if (id) {
|
|
7764
7764
|
store2.navigate(
|
|
7765
|
-
`/Component?path=${`elements[${
|
|
7765
|
+
`/Component?path=${`elements[${response2 == null ? void 0 : response2.elements.length}]`}&id=${id}`
|
|
7766
7766
|
);
|
|
7767
7767
|
} else {
|
|
7768
7768
|
store2.navigate(
|
|
7769
|
-
`/Component?path=${`elements[${
|
|
7769
|
+
`/Component?path=${`elements[${response2 == null ? void 0 : response2.elements.length}]`}`
|
|
7770
7770
|
);
|
|
7771
7771
|
}
|
|
7772
7772
|
},
|
|
@@ -7794,8 +7794,8 @@ var pageMaster = (funcParams) => {
|
|
|
7794
7794
|
deleteEvent: function() {
|
|
7795
7795
|
const rowId = dynamicData2.path.split(".")[1];
|
|
7796
7796
|
store2.formData.events.splice(rowId, 1);
|
|
7797
|
-
const
|
|
7798
|
-
store2.setFormdata(
|
|
7797
|
+
const response2 = saveFormdataInLocalStorage(store2.ctx.core.data);
|
|
7798
|
+
store2.setFormdata(response2);
|
|
7799
7799
|
}
|
|
7800
7800
|
};
|
|
7801
7801
|
};
|
|
@@ -8454,25 +8454,25 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
|
|
|
8454
8454
|
};
|
|
8455
8455
|
const downloadFile$1 = (obj) => {
|
|
8456
8456
|
const typeArr = obj.name.split(".");
|
|
8457
|
-
const
|
|
8458
|
-
const finalData = window.atob(
|
|
8457
|
+
const data2 = obj.data;
|
|
8458
|
+
const finalData = window.atob(data2);
|
|
8459
8459
|
let file;
|
|
8460
8460
|
file = new File([finalData], typeArr[typeArr.length - 1]);
|
|
8461
8461
|
const url = URL.createObjectURL(file);
|
|
8462
8462
|
const link = document.createElement("a");
|
|
8463
|
-
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;
|
|
8464
8464
|
link.download = `${obj.name}`;
|
|
8465
8465
|
document.body.appendChild(link);
|
|
8466
8466
|
link.click();
|
|
8467
8467
|
URL.revokeObjectURL(url);
|
|
8468
8468
|
document.body.removeChild(link);
|
|
8469
8469
|
};
|
|
8470
|
-
const doDownload = (
|
|
8471
|
-
let url = `${service2.defaults.baseURL}/${
|
|
8472
|
-
if (
|
|
8473
|
-
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);
|
|
8474
8474
|
keysArray.map((e, i) => {
|
|
8475
|
-
url = url + `${i === 0 ? "?" : "&"}${e}=${
|
|
8475
|
+
url = url + `${i === 0 ? "?" : "&"}${e}=${response2 == null ? void 0 : response2.params[e]}`;
|
|
8476
8476
|
});
|
|
8477
8477
|
}
|
|
8478
8478
|
const link = document.createElement("a");
|
|
@@ -8481,73 +8481,50 @@ const doDownload = (response, service2) => {
|
|
|
8481
8481
|
link.click();
|
|
8482
8482
|
link.parentNode.removeChild(link);
|
|
8483
8483
|
};
|
|
8484
|
-
const executeEvents = (params2) => {
|
|
8484
|
+
const executeEvents = async (params2) => {
|
|
8485
8485
|
var _a, _b, _c;
|
|
8486
8486
|
let nextEvent = [];
|
|
8487
8487
|
let finalResponse = null;
|
|
8488
|
-
if (params2.config.isSync !== "Yes") {
|
|
8489
|
-
return shouldEventExecute(params2).then((shouldExecute2) => {
|
|
8490
|
-
if (!shouldExecute2) {
|
|
8491
|
-
return { response: void 0, events: void 0 };
|
|
8492
|
-
}
|
|
8493
|
-
return executeEventsHandler(params2);
|
|
8494
|
-
}).then((response) => {
|
|
8495
|
-
var _a2;
|
|
8496
|
-
finalResponse = response;
|
|
8497
|
-
const SuccessEvent = (_a2 = params2.config) == null ? void 0 : _a2.events.filter((e) => e.eventType === "Success");
|
|
8498
|
-
nextEvent = SuccessEvent;
|
|
8499
|
-
}).catch((err) => {
|
|
8500
|
-
var _a2, _b2;
|
|
8501
|
-
const FailEvent = (_b2 = (_a2 = params2.config) == null ? void 0 : _a2.events) == null ? void 0 : _b2.filter((e) => e.eventType === "Fail");
|
|
8502
|
-
const setEvent = (FailEvent == null ? void 0 : FailEvent.length) > 0 ? FailEvent : [];
|
|
8503
|
-
nextEvent = setEvent;
|
|
8504
|
-
}).then(() => {
|
|
8505
|
-
if ((nextEvent == null ? void 0 : nextEvent.length) > 0) {
|
|
8506
|
-
return nextEvent.reduce((chain, actionConfig) => {
|
|
8507
|
-
return chain.then(() => executeEvents({ ...params2, config: actionConfig, parentEventOutput: finalResponse }));
|
|
8508
|
-
}, Promise.resolve());
|
|
8509
|
-
}
|
|
8510
|
-
}).then(() => finalResponse);
|
|
8511
|
-
}
|
|
8512
|
-
const shouldExecute = shouldEventExecute(params2);
|
|
8513
|
-
if (!shouldExecute) {
|
|
8514
|
-
return { response: void 0, events: void 0 };
|
|
8515
|
-
}
|
|
8516
8488
|
try {
|
|
8517
|
-
const
|
|
8518
|
-
|
|
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;
|
|
8519
8495
|
const SuccessEvent = (_a = params2.config) == null ? void 0 : _a.events.filter((e) => e.eventType === "Success");
|
|
8520
8496
|
nextEvent = SuccessEvent;
|
|
8521
|
-
} catch {
|
|
8497
|
+
} catch (err) {
|
|
8522
8498
|
const FailEvent = (_c = (_b = params2.config) == null ? void 0 : _b.events) == null ? void 0 : _c.filter((e) => e.eventType === "Fail");
|
|
8523
8499
|
const setEvent = (FailEvent == null ? void 0 : FailEvent.length) > 0 ? FailEvent : [];
|
|
8524
8500
|
nextEvent = setEvent;
|
|
8525
8501
|
}
|
|
8526
8502
|
if ((nextEvent == null ? void 0 : nextEvent.length) > 0) {
|
|
8527
8503
|
for (const actionConfig of nextEvent) {
|
|
8528
|
-
executeEvents({ ...params2, config: actionConfig, parentEventOutput: finalResponse });
|
|
8504
|
+
await executeEvents({ ...params2, config: actionConfig, parentEventOutput: finalResponse });
|
|
8529
8505
|
}
|
|
8530
8506
|
}
|
|
8531
8507
|
return finalResponse;
|
|
8532
8508
|
};
|
|
8533
|
-
function executeEventsHandler(params2) {
|
|
8509
|
+
async function executeEventsHandler(params2) {
|
|
8534
8510
|
var _a, _b, _c;
|
|
8535
8511
|
if (params2.config.Handler === "api") {
|
|
8536
|
-
return
|
|
8512
|
+
return await executeApiEventHandler(params2);
|
|
8537
8513
|
} else if (params2.config.Handler === "inBuiltFunction") {
|
|
8538
|
-
return executeInBuiltFunctionHandler(params2);
|
|
8514
|
+
return await executeInBuiltFunctionHandler(params2);
|
|
8539
8515
|
} else if (params2.config.Handler === "custom") {
|
|
8540
|
-
return executeCustomHandler(params2);
|
|
8516
|
+
return await executeCustomHandler(params2);
|
|
8541
8517
|
} else if (params2.config.Handler === "refresh") {
|
|
8542
|
-
return executeRefreshHandler(params2);
|
|
8518
|
+
return await executeRefreshHandler(params2);
|
|
8543
8519
|
} else if (params2.config.Handler === "mergeFormdata") {
|
|
8544
|
-
|
|
8520
|
+
const result = await mergeFormdata(
|
|
8545
8521
|
params2.parentEventOutput,
|
|
8546
8522
|
params2.componentName,
|
|
8547
8523
|
params2.config,
|
|
8548
8524
|
params2.store,
|
|
8549
8525
|
params2.service
|
|
8550
8526
|
);
|
|
8527
|
+
return result;
|
|
8551
8528
|
} else if (params2.config.Handler === "onBackHandler") {
|
|
8552
8529
|
return (_a = params2.store.functionParameters) == null ? void 0 : _a.handleBack();
|
|
8553
8530
|
} else if (params2.config.Handler === "onNextHandler") {
|
|
@@ -8556,65 +8533,43 @@ function executeEventsHandler(params2) {
|
|
|
8556
8533
|
return (_c = params2.store.functionParameters) == null ? void 0 : _c.handleReset();
|
|
8557
8534
|
}
|
|
8558
8535
|
}
|
|
8559
|
-
function
|
|
8560
|
-
|
|
8561
|
-
|
|
8562
|
-
|
|
8563
|
-
|
|
8564
|
-
return e.value;
|
|
8565
|
-
});
|
|
8566
|
-
} else {
|
|
8567
|
-
if (eventGropus == null ? void 0 : eventGropus.onLoad) {
|
|
8568
|
-
result = Object.keys(eventGropus == null ? void 0 : eventGropus.onLoad);
|
|
8569
|
-
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 });
|
|
8570
8541
|
}
|
|
8571
8542
|
}
|
|
8572
|
-
return result;
|
|
8573
|
-
}
|
|
8574
|
-
function executeRefreshHandler(params2) {
|
|
8575
|
-
const compToRefresh = getRefreshElements(params2.config, params2.eventGroups);
|
|
8576
|
-
return Promise.all(compToRefresh.map((componentName) => {
|
|
8577
|
-
return Promise.all(params2.eventGroups.onLoad[componentName].map((compEventConfig) => {
|
|
8578
|
-
return executeEvents({ ...params2, config: compEventConfig, componentName });
|
|
8579
|
-
}));
|
|
8580
|
-
}));
|
|
8581
8543
|
}
|
|
8582
|
-
function
|
|
8544
|
+
async function executeApiEventHandler(params2) {
|
|
8583
8545
|
var _a;
|
|
8584
8546
|
const initialBody = { ...(_a = params2.userValue) == null ? void 0 : _a.payload };
|
|
8585
8547
|
const initialHeaders = {
|
|
8586
8548
|
"X-Requested-With": "XMLHttpRequest",
|
|
8587
8549
|
"Access-Control-Allow-Origin": "*"
|
|
8588
8550
|
};
|
|
8589
|
-
const
|
|
8590
|
-
|
|
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](
|
|
8591
8553
|
params2.config.path,
|
|
8592
|
-
|
|
8593
|
-
{ headers:
|
|
8594
|
-
)
|
|
8595
|
-
|
|
8596
|
-
});
|
|
8554
|
+
body2,
|
|
8555
|
+
headers2 && { headers: headers2 }
|
|
8556
|
+
);
|
|
8557
|
+
return response2;
|
|
8597
8558
|
}
|
|
8598
|
-
function executeInBuiltFunctionHandler(params) {
|
|
8559
|
+
async function executeInBuiltFunctionHandler(params) {
|
|
8599
8560
|
let parameter = {};
|
|
8600
8561
|
if (params.config.funcParametersCode) {
|
|
8601
8562
|
const makeFunc = eval(params.config.funcParametersCode);
|
|
8602
8563
|
parameter = makeFunc(params.store, params.dynamicData, params.userValue, params.parentEventOutput, params.service);
|
|
8603
|
-
params.serviceHolder[params.config.inBuiltFunctionType](parameter, params.service);
|
|
8604
|
-
} else {
|
|
8605
|
-
params.serviceHolder[params.config.inBuiltFunctionType](params.store, params.dynamicData, params.userValue, params.parentEventOutput, params.service);
|
|
8606
8564
|
}
|
|
8565
|
+
params.serviceHolder[params.config.inBuiltFunctionType](parameter);
|
|
8607
8566
|
}
|
|
8608
|
-
function executeCustomHandler(params) {
|
|
8567
|
+
async function executeCustomHandler(params) {
|
|
8609
8568
|
const makeFunc = eval(params.config.eventCode);
|
|
8610
|
-
|
|
8611
|
-
|
|
8612
|
-
} else {
|
|
8613
|
-
const response = makeFunc(params.store, params.dynamicData, params.userValue, params.parentEventOutput, params.service, params.componentName);
|
|
8614
|
-
return response;
|
|
8615
|
-
}
|
|
8569
|
+
const response = await makeFunc(params.store, params.dynamicData, params.userValue, params.parentEventOutput, params.service, params.componentName);
|
|
8570
|
+
return response;
|
|
8616
8571
|
}
|
|
8617
|
-
function mergeFormdata(handlerResponse, componentName, eventConfig, store2, service2) {
|
|
8572
|
+
async function mergeFormdata(handlerResponse, componentName, eventConfig, store2, service2) {
|
|
8618
8573
|
if (eventConfig.type === "Select" && !(_.isEmpty(handlerResponse == null ? void 0 : handlerResponse.data) && (handlerResponse == null ? void 0 : handlerResponse.data))) {
|
|
8619
8574
|
store2.setSchema((pre) => {
|
|
8620
8575
|
var _a;
|
|
@@ -8655,14 +8610,14 @@ function mergeFormdata(handlerResponse, componentName, eventConfig, store2, serv
|
|
|
8655
8610
|
} else {
|
|
8656
8611
|
if (handlerResponse) {
|
|
8657
8612
|
store2.setFormdata((pre) => {
|
|
8658
|
-
|
|
8659
|
-
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 };
|
|
8660
8614
|
});
|
|
8615
|
+
await asyncOperation();
|
|
8661
8616
|
}
|
|
8662
8617
|
}
|
|
8663
8618
|
}
|
|
8664
8619
|
const buildBodyFormat = (body2, formData, userValue2) => {
|
|
8665
|
-
|
|
8620
|
+
const finalBody = { ...userValue2 == null ? void 0 : userValue2.payload };
|
|
8666
8621
|
body2.map((elem) => {
|
|
8667
8622
|
var _a, _b;
|
|
8668
8623
|
if (typeof (elem == null ? void 0 : elem.value) !== "string") {
|
|
@@ -8674,10 +8629,6 @@ const buildBodyFormat = (body2, formData, userValue2) => {
|
|
|
8674
8629
|
} else if ((_b = elem == null ? void 0 : elem.value) == null ? void 0 : _b.startsWith("$")) {
|
|
8675
8630
|
const finalpath = elem.value.substring(1);
|
|
8676
8631
|
finalBody[elem.key] = _.get(formData, finalpath);
|
|
8677
|
-
} else if ((elem == null ? void 0 : elem.value) === "*" && (elem == null ? void 0 : elem.key) === "*") {
|
|
8678
|
-
finalBody = { ...finalBody, ...formData };
|
|
8679
|
-
} else if ((elem == null ? void 0 : elem.value) === "*") {
|
|
8680
|
-
finalBody[elem.key] = formData;
|
|
8681
8632
|
} else {
|
|
8682
8633
|
finalBody[elem.key] = elem.value;
|
|
8683
8634
|
}
|
|
@@ -8694,22 +8645,17 @@ const buildHeadersFormat = (headers2) => {
|
|
|
8694
8645
|
});
|
|
8695
8646
|
return headerObj;
|
|
8696
8647
|
};
|
|
8697
|
-
function shouldEventExecute(params2) {
|
|
8648
|
+
async function shouldEventExecute(params2) {
|
|
8698
8649
|
var _a, _b;
|
|
8699
8650
|
const startEvent = (_b = (_a = params2.config) == null ? void 0 : _a.events) == null ? void 0 : _b.filter((e) => e.eventType === "onStart");
|
|
8700
8651
|
if ((startEvent == null ? void 0 : startEvent.length) > 0) {
|
|
8701
|
-
|
|
8702
|
-
|
|
8703
|
-
});
|
|
8652
|
+
const response2 = await executeEventsHandler({ ...params2, config: startEvent[0] });
|
|
8653
|
+
return response2;
|
|
8704
8654
|
} else {
|
|
8705
|
-
|
|
8706
|
-
return Promise.resolve(true);
|
|
8707
|
-
} else {
|
|
8708
|
-
return true;
|
|
8709
|
-
}
|
|
8655
|
+
return true;
|
|
8710
8656
|
}
|
|
8711
8657
|
}
|
|
8712
|
-
function buildApiPayload(compConfig, body, headers, store, dynamicData, userValue, service) {
|
|
8658
|
+
async function buildApiPayload(compConfig, body, headers, store, dynamicData, userValue, service) {
|
|
8713
8659
|
var _a, _b;
|
|
8714
8660
|
if (compConfig == null ? void 0 : compConfig.headers) {
|
|
8715
8661
|
headers = buildHeadersFormat(compConfig.headers);
|
|
@@ -8717,12 +8663,38 @@ function buildApiPayload(compConfig, body, headers, store, dynamicData, userValu
|
|
|
8717
8663
|
if (compConfig.body) {
|
|
8718
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) };
|
|
8719
8665
|
}
|
|
8720
|
-
const promiseChain = { body, headers };
|
|
8721
8666
|
if (compConfig.apiBody) {
|
|
8722
8667
|
const makeFunc = eval(compConfig.apiBody);
|
|
8723
|
-
|
|
8668
|
+
const data = await makeFunc(store, dynamicData, userValue, body);
|
|
8669
|
+
body = data;
|
|
8724
8670
|
}
|
|
8725
|
-
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
|
+
});
|
|
8726
8698
|
}
|
|
8727
8699
|
let compType;
|
|
8728
8700
|
let eventGroups = {};
|
|
@@ -8768,6 +8740,8 @@ const extractEvents = (eventConfig) => {
|
|
|
8768
8740
|
return eventGroups;
|
|
8769
8741
|
};
|
|
8770
8742
|
var service = (funcParams) => {
|
|
8743
|
+
eventGroups = {};
|
|
8744
|
+
eventGroups = extractEvents(funcParams.config);
|
|
8771
8745
|
let executeEventsParameters = {
|
|
8772
8746
|
config: {},
|
|
8773
8747
|
componentName: "",
|
|
@@ -8775,47 +8749,23 @@ var service = (funcParams) => {
|
|
|
8775
8749
|
dynamicData: funcParams.dynamicData,
|
|
8776
8750
|
userValue: funcParams.userValue,
|
|
8777
8751
|
service: funcParams.service,
|
|
8778
|
-
serviceHolder: { downloadFile: downloadFile$1, download: doDownload
|
|
8779
|
-
eventGroups
|
|
8780
|
-
functionsProvider: funcParams.functionsProvider
|
|
8752
|
+
serviceHolder: { downloadFile: downloadFile$1, download: doDownload },
|
|
8753
|
+
eventGroups
|
|
8781
8754
|
};
|
|
8782
8755
|
return {
|
|
8783
8756
|
setPage: async function() {
|
|
8784
|
-
var _a, _b;
|
|
8785
8757
|
funcParams.store.setFormdata({});
|
|
8786
|
-
|
|
8787
|
-
|
|
8788
|
-
|
|
8789
|
-
|
|
8790
|
-
|
|
8791
|
-
|
|
8792
|
-
|
|
8793
|
-
|
|
8794
|
-
|
|
8795
|
-
|
|
8796
|
-
|
|
8797
|
-
}
|
|
8798
|
-
});
|
|
8799
|
-
const response = await funcParams.service.get(
|
|
8800
|
-
`/page/getById?id=${(_a = pageId == null ? void 0 : pageId.data) == null ? void 0 : _a.id}`,
|
|
8801
|
-
{
|
|
8802
|
-
headers: {
|
|
8803
|
-
"Content-Type": "application/json"
|
|
8804
|
-
}
|
|
8805
|
-
}
|
|
8806
|
-
);
|
|
8807
|
-
pageData = response.data;
|
|
8808
|
-
localStorage.setItem("pagemasterMetaData", JSON.stringify({
|
|
8809
|
-
schema: pageData == null ? void 0 : pageData.schema,
|
|
8810
|
-
uiSchema: pageData == null ? void 0 : pageData.uiSchema,
|
|
8811
|
-
config: pageData == null ? void 0 : pageData.config
|
|
8812
|
-
}));
|
|
8813
|
-
}
|
|
8814
|
-
const config = pageData == null ? void 0 : pageData.config;
|
|
8815
|
-
const uiSchema = pageData == null ? void 0 : pageData.uiSchema;
|
|
8816
|
-
const schema2 = (_b = pageData == null ? void 0 : pageData.schema) != null ? _b : { type: "object", properties: {} };
|
|
8817
|
-
eventGroups = {};
|
|
8818
|
-
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();
|
|
8819
8769
|
executeEventsParameters = {
|
|
8820
8770
|
config: {},
|
|
8821
8771
|
componentName: "",
|
|
@@ -8823,7 +8773,6 @@ var service = (funcParams) => {
|
|
|
8823
8773
|
dynamicData: funcParams.dynamicData,
|
|
8824
8774
|
userValue: funcParams.userValue,
|
|
8825
8775
|
service: funcParams.service,
|
|
8826
|
-
functionsProvider: funcParams.functionsProvider,
|
|
8827
8776
|
serviceHolder: this,
|
|
8828
8777
|
eventGroups
|
|
8829
8778
|
};
|
|
@@ -8837,46 +8786,15 @@ var service = (funcParams) => {
|
|
|
8837
8786
|
serviceHolder: this,
|
|
8838
8787
|
eventGroups
|
|
8839
8788
|
});
|
|
8840
|
-
funcParams.store.setSchema(
|
|
8841
|
-
(pre) => {
|
|
8842
|
-
return {
|
|
8843
|
-
...schema2,
|
|
8844
|
-
properties: { ...schema2.properties, ...pre.properties }
|
|
8845
|
-
};
|
|
8846
|
-
}
|
|
8847
|
-
);
|
|
8848
|
-
uiSchema.elements.push(notifyUiSchema);
|
|
8849
|
-
funcParams.store.setUiSchema(uiSchema);
|
|
8850
|
-
},
|
|
8851
|
-
onCellRenderer: (cellParams) => {
|
|
8852
|
-
var _a;
|
|
8853
|
-
let finalResponse = {};
|
|
8854
|
-
const path = ((_a = funcParams.dynamicData) == null ? void 0 : _a.tableButtonPath) || funcParams.dynamicData.path.split(".")[0];
|
|
8855
|
-
for (const eventConfig of eventGroups == null ? void 0 : eventGroups.onCellRenderer[path]) {
|
|
8856
|
-
executeEventsParameters.store.functionParameters = cellParams;
|
|
8857
|
-
finalResponse = executeEvents({
|
|
8858
|
-
...executeEventsParameters,
|
|
8859
|
-
config: eventConfig,
|
|
8860
|
-
componentName: path
|
|
8861
|
-
});
|
|
8862
|
-
}
|
|
8863
|
-
console.log("finalResponse >> >> >> ", finalResponse);
|
|
8864
|
-
return finalResponse;
|
|
8865
|
-
},
|
|
8866
|
-
onClick: function() {
|
|
8867
|
-
this.callHandler("onClick");
|
|
8868
8789
|
},
|
|
8869
|
-
|
|
8870
|
-
this.callHandler("
|
|
8790
|
+
onClick: async function() {
|
|
8791
|
+
await this.callHandler("onClick");
|
|
8871
8792
|
},
|
|
8872
|
-
onFileDownload: function() {
|
|
8873
|
-
this.callHandler("onDownload");
|
|
8793
|
+
onFileDownload: async function() {
|
|
8794
|
+
await this.callHandler("onDownload");
|
|
8874
8795
|
},
|
|
8875
|
-
onFileUpload: function() {
|
|
8876
|
-
this.callHandler("onUpload");
|
|
8877
|
-
},
|
|
8878
|
-
backHandler: function() {
|
|
8879
|
-
funcParams.store.navigate(-1);
|
|
8796
|
+
onFileUpload: async function() {
|
|
8797
|
+
await this.callHandler("onUpload");
|
|
8880
8798
|
},
|
|
8881
8799
|
onPaginationChange: async function(paginationValues) {
|
|
8882
8800
|
var _a;
|
|
@@ -8887,8 +8805,8 @@ var service = (funcParams) => {
|
|
|
8887
8805
|
{ key: "filters", value: paginationValues.columnFilters || [] },
|
|
8888
8806
|
{ key: "globalFilter", value: (_a = paginationValues.globalFilter) != null ? _a : "" }
|
|
8889
8807
|
];
|
|
8890
|
-
const
|
|
8891
|
-
return
|
|
8808
|
+
const response2 = await this.updateConfigApiBody(paginationValues, apiBody);
|
|
8809
|
+
return response2 == null ? void 0 : response2.data;
|
|
8892
8810
|
},
|
|
8893
8811
|
getSelectOptions: async function(param) {
|
|
8894
8812
|
if (param.serachValue !== "" && param.serachValue !== void 0) {
|
|
@@ -8896,8 +8814,7 @@ var service = (funcParams) => {
|
|
|
8896
8814
|
{ key: "searchValue", value: param.serachValue },
|
|
8897
8815
|
{ key: "currentValue", value: param.currentValue }
|
|
8898
8816
|
];
|
|
8899
|
-
|
|
8900
|
-
return response == null ? void 0 : response.data;
|
|
8817
|
+
return await this.updateConfigApiBody(param, apiBody);
|
|
8901
8818
|
}
|
|
8902
8819
|
},
|
|
8903
8820
|
onChange: async function() {
|
|
@@ -8971,7 +8888,7 @@ var service = (funcParams) => {
|
|
|
8971
8888
|
if (((_b = eventGroups == null ? void 0 : eventGroups[eventType]) == null ? void 0 : _b[path]) !== void 0) {
|
|
8972
8889
|
for (const eventConfig of (_c = eventGroups == null ? void 0 : eventGroups[eventType]) == null ? void 0 : _c[path]) {
|
|
8973
8890
|
executeEventsParameters.store.functionParameters = functionParameters;
|
|
8974
|
-
executeEvents({
|
|
8891
|
+
await executeEvents({
|
|
8975
8892
|
...executeEventsParameters,
|
|
8976
8893
|
config: eventConfig,
|
|
8977
8894
|
componentName: path
|
|
@@ -8980,8 +8897,7 @@ var service = (funcParams) => {
|
|
|
8980
8897
|
}
|
|
8981
8898
|
},
|
|
8982
8899
|
downloadFile: downloadFile$1,
|
|
8983
|
-
download: doDownload
|
|
8984
|
-
...funcParams.functionsProvider
|
|
8900
|
+
download: doDownload
|
|
8985
8901
|
};
|
|
8986
8902
|
};
|
|
8987
8903
|
var leaderBoard = {
|
|
@@ -11214,13 +11130,54 @@ const buildUiSchema = (config) => {
|
|
|
11214
11130
|
if ((config == null ? void 0 : config.type) === "LeaderBoard") {
|
|
11215
11131
|
return elements;
|
|
11216
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
|
+
};
|
|
11217
11174
|
const sizeMap = {};
|
|
11218
11175
|
if (config.sizeHolder) {
|
|
11219
11176
|
config.sizeHolder.map((e, i) => {
|
|
11220
11177
|
sizeMap[e.keyName] = e.value;
|
|
11221
11178
|
});
|
|
11222
11179
|
}
|
|
11223
|
-
elements.elements =
|
|
11180
|
+
elements.elements = transformConfigToOutput2(config);
|
|
11224
11181
|
} else if (config.type == "Array") {
|
|
11225
11182
|
elements.options.detail.elements = config.elements.map((e, elemInd) => {
|
|
11226
11183
|
return buildUiSchema(e);
|
|
@@ -11233,48 +11190,5 @@ const buildUiSchema = (config) => {
|
|
|
11233
11190
|
}
|
|
11234
11191
|
return elements;
|
|
11235
11192
|
};
|
|
11236
|
-
function nodeProvider(element, sizeMap) {
|
|
11237
|
-
if (element.type) {
|
|
11238
|
-
return {
|
|
11239
|
-
accessorKey: element.name,
|
|
11240
|
-
type: element.columnFormat,
|
|
11241
|
-
header: element.label || element.name,
|
|
11242
|
-
size: sizeMap[element.name] || 180,
|
|
11243
|
-
widget: buildUiSchema(element)
|
|
11244
|
-
};
|
|
11245
|
-
}
|
|
11246
|
-
return {
|
|
11247
|
-
accessorKey: element.name,
|
|
11248
|
-
type: element.columnFormat,
|
|
11249
|
-
header: element.label || element.name,
|
|
11250
|
-
size: sizeMap[element.name] || 180
|
|
11251
|
-
};
|
|
11252
|
-
}
|
|
11253
|
-
function buildHierarchy(elements, parentName = null, sizeMap) {
|
|
11254
|
-
const result = [];
|
|
11255
|
-
for (const element of elements) {
|
|
11256
|
-
if ((element == null ? void 0 : element.parent) === parentName) {
|
|
11257
|
-
const children = buildHierarchy(elements, element.name, sizeMap);
|
|
11258
|
-
const node = nodeProvider(element, sizeMap);
|
|
11259
|
-
if (children.length > 0) {
|
|
11260
|
-
node.columns = children;
|
|
11261
|
-
node.type = "group";
|
|
11262
|
-
}
|
|
11263
|
-
result.push(node);
|
|
11264
|
-
}
|
|
11265
|
-
}
|
|
11266
|
-
return result;
|
|
11267
|
-
}
|
|
11268
|
-
function transformConfigToOutput(config, sizeMap) {
|
|
11269
|
-
const output = [];
|
|
11270
|
-
const hierarchy = buildHierarchy(config.elements, config.name, schema);
|
|
11271
|
-
for (const element of config.elements) {
|
|
11272
|
-
const parentExists = config.elements.some((e) => e.name === element.parent);
|
|
11273
|
-
if (!parentExists && element.parent !== config.name) {
|
|
11274
|
-
output.push(nodeProvider(element, sizeMap));
|
|
11275
|
-
}
|
|
11276
|
-
}
|
|
11277
|
-
return [...hierarchy, ...output];
|
|
11278
|
-
}
|
|
11279
11193
|
export { buildConfig, buildSchema, buildUiSchema, clearFromLocalStorage, pageMaster, Component as pageMasterComponents, event as pageMasterEvents, service as pageService, schema };
|
|
11280
11194
|
//# sourceMappingURL=impaktapps-ui-builder.es.js.map
|