impaktapps-ui-builder 0.0.410 → 0.0.412
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 +697 -872
- package/dist/impaktapps-ui-builder.es.js.map +1 -1
- package/dist/impaktapps-ui-builder.umd.js +14 -14
- package/dist/impaktapps-ui-builder.umd.js.map +1 -1
- package/dist/src/impaktapps-ui-builder/builder/build/buildBasicUiSchema.d.ts +4 -1
- package/dist/src/impaktapps-ui-builder/builder/build/buildDate.d.ts +1 -0
- package/dist/src/impaktapps-ui-builder/builder/build/buildInputSlider.d.ts +1 -0
- package/dist/src/impaktapps-ui-builder/builder/build/buildTreeMap.d.ts +1 -0
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.d.ts +19 -0
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/dateInputField.d.ts +19 -0
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/lazyLoadingTable.d.ts +1 -0
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/table.d.ts +1 -0
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/wrapperSection.d.ts +1 -1
- package/dist/src/impaktapps-ui-builder/builder/elements/UiSchema/PageMaster/schema.d.ts +6 -0
- package/dist/src/impaktapps-ui-builder/builder/services/component.d.ts +2 -4
- package/dist/src/impaktapps-ui-builder/builder/services/event.d.ts +5 -3
- package/dist/src/impaktapps-ui-builder/builder/services/pageMaster.d.ts +9 -5
- package/dist/src/impaktapps-ui-builder/runtime/services/events.d.ts +8 -5
- package/dist/src/impaktapps-ui-builder/runtime/services/interface.d.ts +1 -0
- package/dist/src/impaktapps-ui-builder/runtime/services/service.d.ts +9 -7
- package/package.json +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildBasicUiSchema.ts +9 -5
- package/src/impaktapps-ui-builder/builder/build/buildConfig.ts +11 -15
- package/src/impaktapps-ui-builder/builder/build/buildDate.ts +11 -1
- package/src/impaktapps-ui-builder/builder/build/buildInputSlider.ts +46 -0
- package/src/impaktapps-ui-builder/builder/build/buildLeaderboard.ts +8 -6
- package/src/impaktapps-ui-builder/builder/build/buildLineGraph.ts +6 -0
- package/src/impaktapps-ui-builder/builder/build/buildPieGraph.ts +22 -23
- package/src/impaktapps-ui-builder/builder/build/buildTabSection.ts +9 -2
- package/src/impaktapps-ui-builder/builder/build/buildTable.ts +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildTreeMap.ts +58 -0
- package/src/impaktapps-ui-builder/builder/build/buildUiSchema.ts +54 -49
- package/src/impaktapps-ui-builder/builder/build/buildWrapperSection.ts +16 -11
- package/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.ts +34 -8
- package/src/impaktapps-ui-builder/builder/build/uischema/card.ts +1 -1
- package/src/impaktapps-ui-builder/builder/build/uischema/coreSection.ts +19 -0
- package/src/impaktapps-ui-builder/builder/build/uischema/dateInputField.ts +20 -0
- package/src/impaktapps-ui-builder/builder/build/uischema/eventSection.ts +1 -1
- package/src/impaktapps-ui-builder/builder/build/uischema/graph.ts +1 -2
- package/src/impaktapps-ui-builder/builder/build/uischema/lazyLoadingTable.ts +1 -0
- package/src/impaktapps-ui-builder/builder/build/uischema/table.ts +1 -0
- package/src/impaktapps-ui-builder/builder/build/uischema/tableSection.ts +2 -4
- package/src/impaktapps-ui-builder/builder/build/uischema/wrapperSection.ts +1 -1
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/schema.ts +32 -17
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/uiSchema.ts +19 -213
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/PageMaster/schema.ts +8 -1
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/PageMaster/uiSchema.ts +67 -274
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/event/schema.ts +2 -1
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/event/uiSchema.ts +1 -104
- package/src/impaktapps-ui-builder/builder/services/component.ts +59 -74
- package/src/impaktapps-ui-builder/builder/services/event.ts +15 -13
- package/src/impaktapps-ui-builder/builder/services/pageMaster.ts +17 -26
- package/src/impaktapps-ui-builder/builder/services/utils.ts +1 -1
- package/src/impaktapps-ui-builder/runtime/services/downloadFile.ts +1 -1
- package/src/impaktapps-ui-builder/runtime/services/events.ts +141 -95
- package/src/impaktapps-ui-builder/runtime/services/interface.ts +2 -1
- package/src/impaktapps-ui-builder/runtime/services/service.ts +85 -47
|
@@ -22,6 +22,13 @@ const PageMasterSchema = {
|
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
24
|
},
|
|
25
|
+
template: {
|
|
26
|
+
oneOf: [
|
|
27
|
+
{ const: "Template-1", title: "template1" },
|
|
28
|
+
{ const: "Template-2", title: "template2" },
|
|
29
|
+
{ const: "Template-3", title: "template3" }
|
|
30
|
+
]
|
|
31
|
+
},
|
|
25
32
|
sectionLabels: {
|
|
26
33
|
type: "array",
|
|
27
34
|
items: {
|
|
@@ -34,7 +41,7 @@ const PageMasterSchema = {
|
|
|
34
41
|
}
|
|
35
42
|
}
|
|
36
43
|
},
|
|
37
|
-
required: ["
|
|
44
|
+
required: ["template", "name"]
|
|
38
45
|
};
|
|
39
46
|
const PageMasterUiSchema = {
|
|
40
47
|
type: "HorizontalLayout",
|
|
@@ -114,15 +121,19 @@ const PageMasterUiSchema = {
|
|
|
114
121
|
},
|
|
115
122
|
{
|
|
116
123
|
type: "Control",
|
|
117
|
-
scope: "#/properties/
|
|
124
|
+
scope: "#/properties/template",
|
|
118
125
|
options: {
|
|
119
|
-
widget: "
|
|
126
|
+
widget: "SelectInputField"
|
|
120
127
|
},
|
|
121
128
|
config: {
|
|
122
129
|
layout: { xs: 11, sm: 11, md: 5.5, lg: 5.5 },
|
|
123
130
|
main: {
|
|
124
|
-
label: "
|
|
125
|
-
options: [
|
|
131
|
+
label: "Template",
|
|
132
|
+
options: [
|
|
133
|
+
{ const: "template1", title: "template1" },
|
|
134
|
+
{ const: "template2", title: "template2" },
|
|
135
|
+
{ const: "template3", title: "template3" }
|
|
136
|
+
],
|
|
126
137
|
color: "secondary",
|
|
127
138
|
required: true
|
|
128
139
|
}
|
|
@@ -246,7 +257,7 @@ const PageMasterUiSchema = {
|
|
|
246
257
|
main: {
|
|
247
258
|
icon: "RejectIcon",
|
|
248
259
|
color: "error",
|
|
249
|
-
onClick: "
|
|
260
|
+
onClick: "Delete_Components",
|
|
250
261
|
tooltipMessage: "Reject This Record"
|
|
251
262
|
}
|
|
252
263
|
}
|
|
@@ -365,7 +376,7 @@ const PageMasterUiSchema = {
|
|
|
365
376
|
icon: "RejectIcon",
|
|
366
377
|
color: "error",
|
|
367
378
|
tooltipMessage: "Reject This Record",
|
|
368
|
-
onClick: "
|
|
379
|
+
onClick: "deleteEvent"
|
|
369
380
|
}
|
|
370
381
|
}
|
|
371
382
|
}
|
|
@@ -376,208 +387,6 @@ const PageMasterUiSchema = {
|
|
|
376
387
|
}
|
|
377
388
|
]
|
|
378
389
|
},
|
|
379
|
-
{
|
|
380
|
-
type: "Control",
|
|
381
|
-
scope: "#/properties/popUpPageMasterEvent",
|
|
382
|
-
options: {
|
|
383
|
-
widget: "PopUp"
|
|
384
|
-
},
|
|
385
|
-
config: {
|
|
386
|
-
layout: {
|
|
387
|
-
xs: 12,
|
|
388
|
-
sm: 12,
|
|
389
|
-
md: 12,
|
|
390
|
-
lg: 12
|
|
391
|
-
},
|
|
392
|
-
main: {
|
|
393
|
-
title: "Delete Content"
|
|
394
|
-
},
|
|
395
|
-
style: {
|
|
396
|
-
width: "32%",
|
|
397
|
-
margin: "auto"
|
|
398
|
-
}
|
|
399
|
-
},
|
|
400
|
-
elements: [
|
|
401
|
-
{
|
|
402
|
-
type: "Control",
|
|
403
|
-
scope: "#/properties/label",
|
|
404
|
-
options: {
|
|
405
|
-
widget: "Box"
|
|
406
|
-
},
|
|
407
|
-
config: {
|
|
408
|
-
layout: 12,
|
|
409
|
-
main: {
|
|
410
|
-
heading: "Are you sure you want to delete ?"
|
|
411
|
-
},
|
|
412
|
-
style: {
|
|
413
|
-
marginTop: "-25px",
|
|
414
|
-
marginLeft: "11px"
|
|
415
|
-
}
|
|
416
|
-
}
|
|
417
|
-
},
|
|
418
|
-
{
|
|
419
|
-
type: "Control",
|
|
420
|
-
scope: "#/properties/EmptyBox",
|
|
421
|
-
options: {
|
|
422
|
-
widget: "EmptyBox"
|
|
423
|
-
},
|
|
424
|
-
config: {
|
|
425
|
-
main: {},
|
|
426
|
-
layout: { xs: 11, sm: 4.5, md: 4.5, lg: 4.5 }
|
|
427
|
-
}
|
|
428
|
-
},
|
|
429
|
-
{
|
|
430
|
-
type: "Control",
|
|
431
|
-
scope: "#/properties/ConfirmDeleteEventButton",
|
|
432
|
-
options: {
|
|
433
|
-
widget: "Button"
|
|
434
|
-
},
|
|
435
|
-
config: {
|
|
436
|
-
layout: 3,
|
|
437
|
-
main: {
|
|
438
|
-
name: "Yes",
|
|
439
|
-
endIcon: "DeleteIcon",
|
|
440
|
-
variant: "contained",
|
|
441
|
-
color: "info",
|
|
442
|
-
type: "text",
|
|
443
|
-
onClick: "deleteEvent",
|
|
444
|
-
size: "small"
|
|
445
|
-
}
|
|
446
|
-
}
|
|
447
|
-
},
|
|
448
|
-
{
|
|
449
|
-
type: "Control",
|
|
450
|
-
scope: "#/properties/CancelDeleteEventButton",
|
|
451
|
-
options: {
|
|
452
|
-
widget: "Button"
|
|
453
|
-
},
|
|
454
|
-
config: {
|
|
455
|
-
layout: 3,
|
|
456
|
-
main: {
|
|
457
|
-
name: "No",
|
|
458
|
-
endIcon: "CloseIcon",
|
|
459
|
-
variant: "contained",
|
|
460
|
-
color: "info",
|
|
461
|
-
type: "text",
|
|
462
|
-
onClick: "deletePopUpEvent",
|
|
463
|
-
size: "small"
|
|
464
|
-
}
|
|
465
|
-
}
|
|
466
|
-
},
|
|
467
|
-
{
|
|
468
|
-
type: "Control",
|
|
469
|
-
scope: "#/properties/EmptyBox",
|
|
470
|
-
options: {
|
|
471
|
-
widget: "EmptyBox"
|
|
472
|
-
},
|
|
473
|
-
config: {
|
|
474
|
-
main: {},
|
|
475
|
-
layout: 0.5
|
|
476
|
-
}
|
|
477
|
-
}
|
|
478
|
-
]
|
|
479
|
-
},
|
|
480
|
-
{
|
|
481
|
-
type: "Control",
|
|
482
|
-
scope: "#/properties/popUpPageMasterComponent",
|
|
483
|
-
options: {
|
|
484
|
-
widget: "PopUp"
|
|
485
|
-
},
|
|
486
|
-
config: {
|
|
487
|
-
layout: {
|
|
488
|
-
xs: 12,
|
|
489
|
-
sm: 12,
|
|
490
|
-
md: 12,
|
|
491
|
-
lg: 12
|
|
492
|
-
},
|
|
493
|
-
main: {
|
|
494
|
-
title: "Delete Content"
|
|
495
|
-
},
|
|
496
|
-
style: {
|
|
497
|
-
width: "32%",
|
|
498
|
-
margin: "auto"
|
|
499
|
-
}
|
|
500
|
-
},
|
|
501
|
-
elements: [
|
|
502
|
-
{
|
|
503
|
-
type: "Control",
|
|
504
|
-
scope: "#/properties/label",
|
|
505
|
-
options: {
|
|
506
|
-
widget: "Box"
|
|
507
|
-
},
|
|
508
|
-
config: {
|
|
509
|
-
layout: 12,
|
|
510
|
-
main: {
|
|
511
|
-
heading: "Are you sure you want to delete ?"
|
|
512
|
-
},
|
|
513
|
-
style: {
|
|
514
|
-
marginTop: "-25px",
|
|
515
|
-
marginLeft: "11px"
|
|
516
|
-
}
|
|
517
|
-
}
|
|
518
|
-
},
|
|
519
|
-
{
|
|
520
|
-
type: "Control",
|
|
521
|
-
scope: "#/properties/EmptyBox",
|
|
522
|
-
options: {
|
|
523
|
-
widget: "EmptyBox"
|
|
524
|
-
},
|
|
525
|
-
config: {
|
|
526
|
-
main: {},
|
|
527
|
-
layout: { xs: 11, sm: 4.5, md: 4.5, lg: 4.5 }
|
|
528
|
-
}
|
|
529
|
-
},
|
|
530
|
-
{
|
|
531
|
-
type: "Control",
|
|
532
|
-
scope: "#/properties/ConfirmDeleteCompButton",
|
|
533
|
-
options: {
|
|
534
|
-
widget: "Button"
|
|
535
|
-
},
|
|
536
|
-
config: {
|
|
537
|
-
layout: 3,
|
|
538
|
-
main: {
|
|
539
|
-
name: "Yes",
|
|
540
|
-
endIcon: "DeleteIcon",
|
|
541
|
-
variant: "contained",
|
|
542
|
-
color: "info",
|
|
543
|
-
type: "text",
|
|
544
|
-
onClick: "Delete_Components",
|
|
545
|
-
size: "small"
|
|
546
|
-
}
|
|
547
|
-
}
|
|
548
|
-
},
|
|
549
|
-
{
|
|
550
|
-
type: "Control",
|
|
551
|
-
scope: "#/properties/CancelDeleteCompButton",
|
|
552
|
-
options: {
|
|
553
|
-
widget: "Button"
|
|
554
|
-
},
|
|
555
|
-
config: {
|
|
556
|
-
layout: 3,
|
|
557
|
-
main: {
|
|
558
|
-
name: "No",
|
|
559
|
-
endIcon: "CloseIcon",
|
|
560
|
-
variant: "contained",
|
|
561
|
-
color: "info",
|
|
562
|
-
type: "text",
|
|
563
|
-
onClick: "deletePopUpComponent",
|
|
564
|
-
size: "small"
|
|
565
|
-
}
|
|
566
|
-
}
|
|
567
|
-
},
|
|
568
|
-
{
|
|
569
|
-
type: "Control",
|
|
570
|
-
scope: "#/properties/EmptyBox",
|
|
571
|
-
options: {
|
|
572
|
-
widget: "EmptyBox"
|
|
573
|
-
},
|
|
574
|
-
config: {
|
|
575
|
-
main: {},
|
|
576
|
-
layout: 0.5
|
|
577
|
-
}
|
|
578
|
-
}
|
|
579
|
-
]
|
|
580
|
-
},
|
|
581
390
|
{
|
|
582
391
|
type: "Control",
|
|
583
392
|
scope: "#/properties/btn",
|
|
@@ -1230,9 +1039,9 @@ var lodash = { exports: {} };
|
|
|
1230
1039
|
return reHasUnicodeWord.test(string);
|
|
1231
1040
|
}
|
|
1232
1041
|
function iteratorToArray(iterator) {
|
|
1233
|
-
var
|
|
1234
|
-
while (!(
|
|
1235
|
-
result.push(
|
|
1042
|
+
var data, result = [];
|
|
1043
|
+
while (!(data = iterator.next()).done) {
|
|
1044
|
+
result.push(data.value);
|
|
1236
1045
|
}
|
|
1237
1046
|
return result;
|
|
1238
1047
|
}
|
|
@@ -1441,7 +1250,7 @@ var lodash = { exports: {} };
|
|
|
1441
1250
|
index += dir;
|
|
1442
1251
|
var iterIndex = -1, value = array[index];
|
|
1443
1252
|
while (++iterIndex < iterLength) {
|
|
1444
|
-
var
|
|
1253
|
+
var data = iteratees[iterIndex], iteratee2 = data.iteratee, type = data.type, computed = iteratee2(value);
|
|
1445
1254
|
if (type == LAZY_MAP_FLAG) {
|
|
1446
1255
|
value = computed;
|
|
1447
1256
|
} else if (!computed) {
|
|
@@ -1476,21 +1285,21 @@ var lodash = { exports: {} };
|
|
|
1476
1285
|
return result2;
|
|
1477
1286
|
}
|
|
1478
1287
|
function hashGet(key) {
|
|
1479
|
-
var
|
|
1288
|
+
var data = this.__data__;
|
|
1480
1289
|
if (nativeCreate) {
|
|
1481
|
-
var result2 =
|
|
1290
|
+
var result2 = data[key];
|
|
1482
1291
|
return result2 === HASH_UNDEFINED ? undefined$1 : result2;
|
|
1483
1292
|
}
|
|
1484
|
-
return hasOwnProperty.call(
|
|
1293
|
+
return hasOwnProperty.call(data, key) ? data[key] : undefined$1;
|
|
1485
1294
|
}
|
|
1486
1295
|
function hashHas(key) {
|
|
1487
|
-
var
|
|
1488
|
-
return nativeCreate ?
|
|
1296
|
+
var data = this.__data__;
|
|
1297
|
+
return nativeCreate ? data[key] !== undefined$1 : hasOwnProperty.call(data, key);
|
|
1489
1298
|
}
|
|
1490
1299
|
function hashSet(key, value) {
|
|
1491
|
-
var
|
|
1300
|
+
var data = this.__data__;
|
|
1492
1301
|
this.size += this.has(key) ? 0 : 1;
|
|
1493
|
-
|
|
1302
|
+
data[key] = nativeCreate && value === undefined$1 ? HASH_UNDEFINED : value;
|
|
1494
1303
|
return this;
|
|
1495
1304
|
}
|
|
1496
1305
|
Hash.prototype.clear = hashClear;
|
|
@@ -1511,33 +1320,33 @@ var lodash = { exports: {} };
|
|
|
1511
1320
|
this.size = 0;
|
|
1512
1321
|
}
|
|
1513
1322
|
function listCacheDelete(key) {
|
|
1514
|
-
var
|
|
1323
|
+
var data = this.__data__, index = assocIndexOf(data, key);
|
|
1515
1324
|
if (index < 0) {
|
|
1516
1325
|
return false;
|
|
1517
1326
|
}
|
|
1518
|
-
var lastIndex =
|
|
1327
|
+
var lastIndex = data.length - 1;
|
|
1519
1328
|
if (index == lastIndex) {
|
|
1520
|
-
|
|
1329
|
+
data.pop();
|
|
1521
1330
|
} else {
|
|
1522
|
-
splice.call(
|
|
1331
|
+
splice.call(data, index, 1);
|
|
1523
1332
|
}
|
|
1524
1333
|
--this.size;
|
|
1525
1334
|
return true;
|
|
1526
1335
|
}
|
|
1527
1336
|
function listCacheGet(key) {
|
|
1528
|
-
var
|
|
1529
|
-
return index < 0 ? undefined$1 :
|
|
1337
|
+
var data = this.__data__, index = assocIndexOf(data, key);
|
|
1338
|
+
return index < 0 ? undefined$1 : data[index][1];
|
|
1530
1339
|
}
|
|
1531
1340
|
function listCacheHas(key) {
|
|
1532
1341
|
return assocIndexOf(this.__data__, key) > -1;
|
|
1533
1342
|
}
|
|
1534
1343
|
function listCacheSet(key, value) {
|
|
1535
|
-
var
|
|
1344
|
+
var data = this.__data__, index = assocIndexOf(data, key);
|
|
1536
1345
|
if (index < 0) {
|
|
1537
1346
|
++this.size;
|
|
1538
|
-
|
|
1347
|
+
data.push([key, value]);
|
|
1539
1348
|
} else {
|
|
1540
|
-
|
|
1349
|
+
data[index][1] = value;
|
|
1541
1350
|
}
|
|
1542
1351
|
return this;
|
|
1543
1352
|
}
|
|
@@ -1574,9 +1383,9 @@ var lodash = { exports: {} };
|
|
|
1574
1383
|
return getMapData(this, key).has(key);
|
|
1575
1384
|
}
|
|
1576
1385
|
function mapCacheSet(key, value) {
|
|
1577
|
-
var
|
|
1578
|
-
|
|
1579
|
-
this.size +=
|
|
1386
|
+
var data = getMapData(this, key), size2 = data.size;
|
|
1387
|
+
data.set(key, value);
|
|
1388
|
+
this.size += data.size == size2 ? 0 : 1;
|
|
1580
1389
|
return this;
|
|
1581
1390
|
}
|
|
1582
1391
|
MapCache.prototype.clear = mapCacheClear;
|
|
@@ -1601,16 +1410,16 @@ var lodash = { exports: {} };
|
|
|
1601
1410
|
SetCache.prototype.add = SetCache.prototype.push = setCacheAdd;
|
|
1602
1411
|
SetCache.prototype.has = setCacheHas;
|
|
1603
1412
|
function Stack(entries) {
|
|
1604
|
-
var
|
|
1605
|
-
this.size =
|
|
1413
|
+
var data = this.__data__ = new ListCache(entries);
|
|
1414
|
+
this.size = data.size;
|
|
1606
1415
|
}
|
|
1607
1416
|
function stackClear() {
|
|
1608
1417
|
this.__data__ = new ListCache();
|
|
1609
1418
|
this.size = 0;
|
|
1610
1419
|
}
|
|
1611
1420
|
function stackDelete(key) {
|
|
1612
|
-
var
|
|
1613
|
-
this.size =
|
|
1421
|
+
var data = this.__data__, result2 = data["delete"](key);
|
|
1422
|
+
this.size = data.size;
|
|
1614
1423
|
return result2;
|
|
1615
1424
|
}
|
|
1616
1425
|
function stackGet(key) {
|
|
@@ -1620,18 +1429,18 @@ var lodash = { exports: {} };
|
|
|
1620
1429
|
return this.__data__.has(key);
|
|
1621
1430
|
}
|
|
1622
1431
|
function stackSet(key, value) {
|
|
1623
|
-
var
|
|
1624
|
-
if (
|
|
1625
|
-
var pairs =
|
|
1432
|
+
var data = this.__data__;
|
|
1433
|
+
if (data instanceof ListCache) {
|
|
1434
|
+
var pairs = data.__data__;
|
|
1626
1435
|
if (!Map || pairs.length < LARGE_ARRAY_SIZE - 1) {
|
|
1627
1436
|
pairs.push([key, value]);
|
|
1628
|
-
this.size = ++
|
|
1437
|
+
this.size = ++data.size;
|
|
1629
1438
|
return this;
|
|
1630
1439
|
}
|
|
1631
|
-
|
|
1440
|
+
data = this.__data__ = new MapCache(pairs);
|
|
1632
1441
|
}
|
|
1633
|
-
|
|
1634
|
-
this.size =
|
|
1442
|
+
data.set(key, value);
|
|
1443
|
+
this.size = data.size;
|
|
1635
1444
|
return this;
|
|
1636
1445
|
}
|
|
1637
1446
|
Stack.prototype.clear = stackClear;
|
|
@@ -1804,7 +1613,7 @@ var lodash = { exports: {} };
|
|
|
1804
1613
|
if (typeof func != "function") {
|
|
1805
1614
|
throw new TypeError(FUNC_ERROR_TEXT);
|
|
1806
1615
|
}
|
|
1807
|
-
return
|
|
1616
|
+
return setTimeout(function() {
|
|
1808
1617
|
func.apply(undefined$1, args);
|
|
1809
1618
|
}, wait);
|
|
1810
1619
|
}
|
|
@@ -2050,15 +1859,15 @@ var lodash = { exports: {} };
|
|
|
2050
1859
|
}
|
|
2051
1860
|
object = Object2(object);
|
|
2052
1861
|
while (index--) {
|
|
2053
|
-
var
|
|
2054
|
-
if (noCustomizer &&
|
|
1862
|
+
var data = matchData[index];
|
|
1863
|
+
if (noCustomizer && data[2] ? data[1] !== object[data[0]] : !(data[0] in object)) {
|
|
2055
1864
|
return false;
|
|
2056
1865
|
}
|
|
2057
1866
|
}
|
|
2058
1867
|
while (++index < length) {
|
|
2059
|
-
|
|
2060
|
-
var key =
|
|
2061
|
-
if (noCustomizer &&
|
|
1868
|
+
data = matchData[index];
|
|
1869
|
+
var key = data[0], objValue = object[key], srcValue = data[1];
|
|
1870
|
+
if (noCustomizer && data[2]) {
|
|
2062
1871
|
if (objValue === undefined$1 && !(key in object)) {
|
|
2063
1872
|
return false;
|
|
2064
1873
|
}
|
|
@@ -2361,8 +2170,8 @@ var lodash = { exports: {} };
|
|
|
2361
2170
|
}
|
|
2362
2171
|
return object;
|
|
2363
2172
|
}
|
|
2364
|
-
var baseSetData = !metaMap ? identity : function(func,
|
|
2365
|
-
metaMap.set(func,
|
|
2173
|
+
var baseSetData = !metaMap ? identity : function(func, data) {
|
|
2174
|
+
metaMap.set(func, data);
|
|
2366
2175
|
return func;
|
|
2367
2176
|
};
|
|
2368
2177
|
var baseSetToString = !defineProperty ? identity : function(func, string) {
|
|
@@ -2866,9 +2675,9 @@ var lodash = { exports: {} };
|
|
|
2866
2675
|
index = wrapper ? index : length;
|
|
2867
2676
|
while (++index < length) {
|
|
2868
2677
|
func = funcs[index];
|
|
2869
|
-
var funcName = getFuncName(func),
|
|
2870
|
-
if (
|
|
2871
|
-
wrapper = wrapper[getFuncName(
|
|
2678
|
+
var funcName = getFuncName(func), data = funcName == "wrapper" ? getData(func) : undefined$1;
|
|
2679
|
+
if (data && isLaziable(data[0]) && data[1] == (WRAP_ARY_FLAG | WRAP_CURRY_FLAG | WRAP_PARTIAL_FLAG | WRAP_REARG_FLAG) && !data[4].length && data[9] == 1) {
|
|
2680
|
+
wrapper = wrapper[getFuncName(data[0])].apply(wrapper, data[3]);
|
|
2872
2681
|
} else {
|
|
2873
2682
|
wrapper = func.length == 1 && isLaziable(func) ? wrapper[funcName]() : wrapper.thru(func);
|
|
2874
2683
|
}
|
|
@@ -3095,7 +2904,7 @@ var lodash = { exports: {} };
|
|
|
3095
2904
|
var partialsRight = partials, holdersRight = holders;
|
|
3096
2905
|
partials = holders = undefined$1;
|
|
3097
2906
|
}
|
|
3098
|
-
var
|
|
2907
|
+
var data = isBindKey ? undefined$1 : getData(func);
|
|
3099
2908
|
var newData = [
|
|
3100
2909
|
func,
|
|
3101
2910
|
bitmask,
|
|
@@ -3108,8 +2917,8 @@ var lodash = { exports: {} };
|
|
|
3108
2917
|
ary2,
|
|
3109
2918
|
arity
|
|
3110
2919
|
];
|
|
3111
|
-
if (
|
|
3112
|
-
mergeData(newData,
|
|
2920
|
+
if (data) {
|
|
2921
|
+
mergeData(newData, data);
|
|
3113
2922
|
}
|
|
3114
2923
|
func = newData[0];
|
|
3115
2924
|
bitmask = newData[1];
|
|
@@ -3129,7 +2938,7 @@ var lodash = { exports: {} };
|
|
|
3129
2938
|
} else {
|
|
3130
2939
|
result2 = createHybrid.apply(undefined$1, newData);
|
|
3131
2940
|
}
|
|
3132
|
-
var setter =
|
|
2941
|
+
var setter = data ? baseSetData : setData;
|
|
3133
2942
|
return setWrapToString(setter(result2, newData), func, bitmask);
|
|
3134
2943
|
}
|
|
3135
2944
|
function customDefaultsAssignIn(objValue, srcValue, key, object) {
|
|
@@ -3296,9 +3105,9 @@ var lodash = { exports: {} };
|
|
|
3296
3105
|
function getFuncName(func) {
|
|
3297
3106
|
var result2 = func.name + "", array = realNames[result2], length = hasOwnProperty.call(realNames, result2) ? array.length : 0;
|
|
3298
3107
|
while (length--) {
|
|
3299
|
-
var
|
|
3108
|
+
var data = array[length], otherFunc = data.func;
|
|
3300
3109
|
if (otherFunc == null || otherFunc == func) {
|
|
3301
|
-
return
|
|
3110
|
+
return data.name;
|
|
3302
3111
|
}
|
|
3303
3112
|
}
|
|
3304
3113
|
return result2;
|
|
@@ -3313,8 +3122,8 @@ var lodash = { exports: {} };
|
|
|
3313
3122
|
return arguments.length ? result2(arguments[0], arguments[1]) : result2;
|
|
3314
3123
|
}
|
|
3315
3124
|
function getMapData(map2, key) {
|
|
3316
|
-
var
|
|
3317
|
-
return isKeyable(key) ?
|
|
3125
|
+
var data = map2.__data__;
|
|
3126
|
+
return isKeyable(key) ? data[typeof key == "string" ? "string" : "hash"] : data.map;
|
|
3318
3127
|
}
|
|
3319
3128
|
function getMatchData(object) {
|
|
3320
3129
|
var result2 = keys(object), length = result2.length;
|
|
@@ -3386,8 +3195,8 @@ var lodash = { exports: {} };
|
|
|
3386
3195
|
function getView(start, end, transforms) {
|
|
3387
3196
|
var index = -1, length = transforms.length;
|
|
3388
3197
|
while (++index < length) {
|
|
3389
|
-
var
|
|
3390
|
-
switch (
|
|
3198
|
+
var data = transforms[index], size2 = data.size;
|
|
3199
|
+
switch (data.type) {
|
|
3391
3200
|
case "drop":
|
|
3392
3201
|
start += size2;
|
|
3393
3202
|
break;
|
|
@@ -3518,8 +3327,8 @@ var lodash = { exports: {} };
|
|
|
3518
3327
|
if (func === other) {
|
|
3519
3328
|
return true;
|
|
3520
3329
|
}
|
|
3521
|
-
var
|
|
3522
|
-
return !!
|
|
3330
|
+
var data = getData(other);
|
|
3331
|
+
return !!data && func === data[0];
|
|
3523
3332
|
}
|
|
3524
3333
|
function isMasked(func) {
|
|
3525
3334
|
return !!maskSrcKey && maskSrcKey in func;
|
|
@@ -3550,41 +3359,41 @@ var lodash = { exports: {} };
|
|
|
3550
3359
|
var cache = result2.cache;
|
|
3551
3360
|
return result2;
|
|
3552
3361
|
}
|
|
3553
|
-
function mergeData(
|
|
3554
|
-
var bitmask =
|
|
3555
|
-
var isCombo = srcBitmask == WRAP_ARY_FLAG && bitmask == WRAP_CURRY_FLAG || srcBitmask == WRAP_ARY_FLAG && bitmask == WRAP_REARG_FLAG &&
|
|
3362
|
+
function mergeData(data, source) {
|
|
3363
|
+
var bitmask = data[1], srcBitmask = source[1], newBitmask = bitmask | srcBitmask, isCommon = newBitmask < (WRAP_BIND_FLAG | WRAP_BIND_KEY_FLAG | WRAP_ARY_FLAG);
|
|
3364
|
+
var isCombo = srcBitmask == WRAP_ARY_FLAG && bitmask == WRAP_CURRY_FLAG || srcBitmask == WRAP_ARY_FLAG && bitmask == WRAP_REARG_FLAG && data[7].length <= source[8] || srcBitmask == (WRAP_ARY_FLAG | WRAP_REARG_FLAG) && source[7].length <= source[8] && bitmask == WRAP_CURRY_FLAG;
|
|
3556
3365
|
if (!(isCommon || isCombo)) {
|
|
3557
|
-
return
|
|
3366
|
+
return data;
|
|
3558
3367
|
}
|
|
3559
3368
|
if (srcBitmask & WRAP_BIND_FLAG) {
|
|
3560
|
-
|
|
3369
|
+
data[2] = source[2];
|
|
3561
3370
|
newBitmask |= bitmask & WRAP_BIND_FLAG ? 0 : WRAP_CURRY_BOUND_FLAG;
|
|
3562
3371
|
}
|
|
3563
3372
|
var value = source[3];
|
|
3564
3373
|
if (value) {
|
|
3565
|
-
var partials =
|
|
3566
|
-
|
|
3567
|
-
|
|
3374
|
+
var partials = data[3];
|
|
3375
|
+
data[3] = partials ? composeArgs(partials, value, source[4]) : value;
|
|
3376
|
+
data[4] = partials ? replaceHolders(data[3], PLACEHOLDER) : source[4];
|
|
3568
3377
|
}
|
|
3569
3378
|
value = source[5];
|
|
3570
3379
|
if (value) {
|
|
3571
|
-
partials =
|
|
3572
|
-
|
|
3573
|
-
|
|
3380
|
+
partials = data[5];
|
|
3381
|
+
data[5] = partials ? composeArgsRight(partials, value, source[6]) : value;
|
|
3382
|
+
data[6] = partials ? replaceHolders(data[5], PLACEHOLDER) : source[6];
|
|
3574
3383
|
}
|
|
3575
3384
|
value = source[7];
|
|
3576
3385
|
if (value) {
|
|
3577
|
-
|
|
3386
|
+
data[7] = value;
|
|
3578
3387
|
}
|
|
3579
3388
|
if (srcBitmask & WRAP_ARY_FLAG) {
|
|
3580
|
-
|
|
3389
|
+
data[8] = data[8] == null ? source[8] : nativeMin(data[8], source[8]);
|
|
3581
3390
|
}
|
|
3582
|
-
if (
|
|
3583
|
-
|
|
3391
|
+
if (data[9] == null) {
|
|
3392
|
+
data[9] = source[9];
|
|
3584
3393
|
}
|
|
3585
|
-
|
|
3586
|
-
|
|
3587
|
-
return
|
|
3394
|
+
data[0] = source[0];
|
|
3395
|
+
data[1] = newBitmask;
|
|
3396
|
+
return data;
|
|
3588
3397
|
}
|
|
3589
3398
|
function nativeKeysIn(object) {
|
|
3590
3399
|
var result2 = [];
|
|
@@ -3635,7 +3444,7 @@ var lodash = { exports: {} };
|
|
|
3635
3444
|
return object[key];
|
|
3636
3445
|
}
|
|
3637
3446
|
var setData = shortOut(baseSetData);
|
|
3638
|
-
var
|
|
3447
|
+
var setTimeout = ctxSetTimeout || function(func, wait) {
|
|
3639
3448
|
return root.setTimeout(func, wait);
|
|
3640
3449
|
};
|
|
3641
3450
|
var setToString = shortOut(baseSetToString);
|
|
@@ -4427,7 +4236,7 @@ var lodash = { exports: {} };
|
|
|
4427
4236
|
}
|
|
4428
4237
|
function leadingEdge(time) {
|
|
4429
4238
|
lastInvokeTime = time;
|
|
4430
|
-
timerId =
|
|
4239
|
+
timerId = setTimeout(timerExpired, wait);
|
|
4431
4240
|
return leading ? invokeFunc(time) : result2;
|
|
4432
4241
|
}
|
|
4433
4242
|
function remainingWait(time) {
|
|
@@ -4443,7 +4252,7 @@ var lodash = { exports: {} };
|
|
|
4443
4252
|
if (shouldInvoke(time)) {
|
|
4444
4253
|
return trailingEdge(time);
|
|
4445
4254
|
}
|
|
4446
|
-
timerId =
|
|
4255
|
+
timerId = setTimeout(timerExpired, remainingWait(time));
|
|
4447
4256
|
}
|
|
4448
4257
|
function trailingEdge(time) {
|
|
4449
4258
|
timerId = undefined$1;
|
|
@@ -4474,12 +4283,12 @@ var lodash = { exports: {} };
|
|
|
4474
4283
|
}
|
|
4475
4284
|
if (maxing) {
|
|
4476
4285
|
clearTimeout(timerId);
|
|
4477
|
-
timerId =
|
|
4286
|
+
timerId = setTimeout(timerExpired, wait);
|
|
4478
4287
|
return invokeFunc(lastCallTime);
|
|
4479
4288
|
}
|
|
4480
4289
|
}
|
|
4481
4290
|
if (timerId === undefined$1) {
|
|
4482
|
-
timerId =
|
|
4291
|
+
timerId = setTimeout(timerExpired, wait);
|
|
4483
4292
|
}
|
|
4484
4293
|
return result2;
|
|
4485
4294
|
}
|
|
@@ -6075,10 +5884,12 @@ const ComponentSchema = {
|
|
|
6075
5884
|
{ title: "Container", const: "WrapperSection" },
|
|
6076
5885
|
{ title: "DataGrid", const: "DataGrid" },
|
|
6077
5886
|
{ title: "Date", const: "Date" },
|
|
5887
|
+
{ title: "DateTime", const: "DateTime" },
|
|
6078
5888
|
{ title: "Download File", const: "DownloadFile" },
|
|
6079
5889
|
{ title: "Empty Box", const: "EmptyBox" },
|
|
6080
5890
|
{ title: "File", const: "FileInput" },
|
|
6081
5891
|
{ title: "Graph", const: "Graph" },
|
|
5892
|
+
{ title: "Input Slider", const: "InputSlider" },
|
|
6082
5893
|
{ title: "Label", const: "Box" },
|
|
6083
5894
|
{ title: "LeaderBoard", const: "LeaderBoard" },
|
|
6084
5895
|
{ title: "MultipleSelect", const: "MultipleSelect" },
|
|
@@ -6099,7 +5910,18 @@ const ComponentSchema = {
|
|
|
6099
5910
|
{ title: "Text", const: "Text" },
|
|
6100
5911
|
{ title: "Text Area", const: "TextArea" },
|
|
6101
5912
|
{ title: "Timer", const: "Timer" },
|
|
6102
|
-
{ title: "Upload File", const: "UploadFile" }
|
|
5913
|
+
{ title: "Upload File", const: "UploadFile" },
|
|
5914
|
+
{ title: "Timer", const: "Timer" },
|
|
5915
|
+
{ title: "Upload File", const: "UploadFile" },
|
|
5916
|
+
{ title: "TreeMap", const: "TreeMap" },
|
|
5917
|
+
{ title: "ColumnGroup", const: "ColumnGroup" }
|
|
5918
|
+
]
|
|
5919
|
+
},
|
|
5920
|
+
columnFormat: {
|
|
5921
|
+
oneOf: [
|
|
5922
|
+
{ title: "Date Column", const: "date" },
|
|
5923
|
+
{ title: "DateTime Column", const: "dateTime" },
|
|
5924
|
+
{ title: "Amount Column", const: "amount" }
|
|
6103
5925
|
]
|
|
6104
5926
|
},
|
|
6105
5927
|
orientation: {
|
|
@@ -6493,6 +6315,24 @@ const componentBasicUiSchema = {
|
|
|
6493
6315
|
}
|
|
6494
6316
|
}
|
|
6495
6317
|
},
|
|
6318
|
+
{
|
|
6319
|
+
type: "Control",
|
|
6320
|
+
scope: "#/properties/columnFormat",
|
|
6321
|
+
options: {
|
|
6322
|
+
widget: "SelectInputField"
|
|
6323
|
+
},
|
|
6324
|
+
config: {
|
|
6325
|
+
layout: {
|
|
6326
|
+
xs: 12,
|
|
6327
|
+
sm: 12,
|
|
6328
|
+
md: 6,
|
|
6329
|
+
lg: 6
|
|
6330
|
+
},
|
|
6331
|
+
main: {
|
|
6332
|
+
label: "Column Format"
|
|
6333
|
+
}
|
|
6334
|
+
}
|
|
6335
|
+
},
|
|
6496
6336
|
{
|
|
6497
6337
|
type: "Control",
|
|
6498
6338
|
scope: "#/properties/proc",
|
|
@@ -6560,256 +6400,54 @@ const componentBasicUiSchema = {
|
|
|
6560
6400
|
},
|
|
6561
6401
|
{
|
|
6562
6402
|
type: "Control",
|
|
6563
|
-
scope: "#/properties/
|
|
6403
|
+
scope: "#/properties/proc",
|
|
6404
|
+
config: {
|
|
6405
|
+
layout: { xs: 11, sm: 11, md: 6, lg: 6 }
|
|
6406
|
+
},
|
|
6407
|
+
options: {
|
|
6408
|
+
widget: "EmptyBox"
|
|
6409
|
+
}
|
|
6410
|
+
},
|
|
6411
|
+
{
|
|
6412
|
+
type: "Control",
|
|
6413
|
+
scope: "#/properties/btn",
|
|
6564
6414
|
options: {
|
|
6565
|
-
widget: "
|
|
6415
|
+
widget: "Button"
|
|
6566
6416
|
},
|
|
6567
6417
|
config: {
|
|
6568
6418
|
layout: {
|
|
6569
|
-
xs:
|
|
6570
|
-
sm:
|
|
6571
|
-
md:
|
|
6572
|
-
lg:
|
|
6419
|
+
xs: 11,
|
|
6420
|
+
sm: 11,
|
|
6421
|
+
md: 2.5,
|
|
6422
|
+
lg: 2.5
|
|
6573
6423
|
},
|
|
6574
6424
|
main: {
|
|
6575
|
-
|
|
6425
|
+
name: "Ok",
|
|
6426
|
+
startIcon: "ApproveIcon",
|
|
6427
|
+
variant: "contained",
|
|
6428
|
+
color: "info",
|
|
6429
|
+
type: "text",
|
|
6430
|
+
onClick: "okHandler",
|
|
6431
|
+
size: "small"
|
|
6576
6432
|
},
|
|
6577
6433
|
style: {
|
|
6578
|
-
|
|
6579
|
-
|
|
6580
|
-
}
|
|
6581
|
-
},
|
|
6582
|
-
elements: [
|
|
6583
|
-
{
|
|
6584
|
-
type: "Control",
|
|
6585
|
-
scope: "#/properties/label",
|
|
6586
|
-
options: {
|
|
6587
|
-
widget: "Box"
|
|
6588
|
-
},
|
|
6589
|
-
config: {
|
|
6590
|
-
layout: 12,
|
|
6591
|
-
main: {
|
|
6592
|
-
heading: "Are you sure you want to delete ?"
|
|
6593
|
-
},
|
|
6594
|
-
style: {
|
|
6595
|
-
marginTop: "-25px",
|
|
6596
|
-
marginLeft: "11px"
|
|
6597
|
-
}
|
|
6598
|
-
}
|
|
6599
|
-
},
|
|
6600
|
-
{
|
|
6601
|
-
type: "Control",
|
|
6602
|
-
scope: "#/properties/EmptyBox",
|
|
6603
|
-
options: {
|
|
6604
|
-
widget: "EmptyBox"
|
|
6605
|
-
},
|
|
6606
|
-
config: {
|
|
6607
|
-
main: {},
|
|
6608
|
-
layout: { xs: 11, sm: 4.5, md: 4.5, lg: 4.5 }
|
|
6609
|
-
}
|
|
6610
|
-
},
|
|
6611
|
-
{
|
|
6612
|
-
type: "Control",
|
|
6613
|
-
scope: "#/properties/ConfirmDeleteCompButton",
|
|
6614
|
-
options: {
|
|
6615
|
-
widget: "Button"
|
|
6616
|
-
},
|
|
6617
|
-
config: {
|
|
6618
|
-
layout: 3,
|
|
6619
|
-
main: {
|
|
6620
|
-
name: "Yes",
|
|
6621
|
-
endIcon: "DeleteIcon",
|
|
6622
|
-
variant: "contained",
|
|
6623
|
-
color: "info",
|
|
6624
|
-
type: "text",
|
|
6625
|
-
onClick: "deleteComponents",
|
|
6626
|
-
size: "small"
|
|
6627
|
-
}
|
|
6628
|
-
}
|
|
6629
|
-
},
|
|
6630
|
-
{
|
|
6631
|
-
type: "Control",
|
|
6632
|
-
scope: "#/properties/CancelDeleteCompButton",
|
|
6633
|
-
options: {
|
|
6634
|
-
widget: "Button"
|
|
6635
|
-
},
|
|
6636
|
-
config: {
|
|
6637
|
-
layout: 3,
|
|
6638
|
-
main: {
|
|
6639
|
-
name: "No",
|
|
6640
|
-
endIcon: "CloseIcon",
|
|
6641
|
-
variant: "contained",
|
|
6642
|
-
color: "info",
|
|
6643
|
-
type: "text",
|
|
6644
|
-
onClick: "deletePopUpComponent",
|
|
6645
|
-
size: "small"
|
|
6646
|
-
}
|
|
6647
|
-
}
|
|
6648
|
-
},
|
|
6649
|
-
{
|
|
6650
|
-
type: "Control",
|
|
6651
|
-
scope: "#/properties/EmptyBox",
|
|
6652
|
-
options: {
|
|
6653
|
-
widget: "EmptyBox"
|
|
6654
|
-
},
|
|
6655
|
-
config: {
|
|
6656
|
-
main: {},
|
|
6657
|
-
layout: 0.5
|
|
6658
|
-
}
|
|
6434
|
+
marginBottom: "8px",
|
|
6435
|
+
float: "right"
|
|
6659
6436
|
}
|
|
6660
|
-
|
|
6437
|
+
}
|
|
6661
6438
|
},
|
|
6662
6439
|
{
|
|
6663
6440
|
type: "Control",
|
|
6664
|
-
scope: "#/properties/
|
|
6441
|
+
scope: "#/properties/btnSubmit",
|
|
6665
6442
|
options: {
|
|
6666
|
-
widget: "
|
|
6443
|
+
widget: "Button"
|
|
6667
6444
|
},
|
|
6668
6445
|
config: {
|
|
6669
6446
|
layout: {
|
|
6670
|
-
xs:
|
|
6671
|
-
sm:
|
|
6672
|
-
md:
|
|
6673
|
-
lg:
|
|
6674
|
-
},
|
|
6675
|
-
style: {
|
|
6676
|
-
width: "32%",
|
|
6677
|
-
margin: "auto"
|
|
6678
|
-
},
|
|
6679
|
-
main: {
|
|
6680
|
-
title: "Delete Content"
|
|
6681
|
-
}
|
|
6682
|
-
},
|
|
6683
|
-
elements: [
|
|
6684
|
-
{
|
|
6685
|
-
type: "Control",
|
|
6686
|
-
scope: "#/properties/label",
|
|
6687
|
-
options: {
|
|
6688
|
-
widget: "Box"
|
|
6689
|
-
},
|
|
6690
|
-
config: {
|
|
6691
|
-
layout: 12,
|
|
6692
|
-
main: {
|
|
6693
|
-
heading: "Are you sure you want to delete ?"
|
|
6694
|
-
},
|
|
6695
|
-
style: {
|
|
6696
|
-
marginTop: "-25px",
|
|
6697
|
-
marginLeft: "11px"
|
|
6698
|
-
}
|
|
6699
|
-
}
|
|
6700
|
-
},
|
|
6701
|
-
{
|
|
6702
|
-
type: "Control",
|
|
6703
|
-
scope: "#/properties/EmptyBox",
|
|
6704
|
-
options: {
|
|
6705
|
-
widget: "EmptyBox"
|
|
6706
|
-
},
|
|
6707
|
-
config: {
|
|
6708
|
-
main: {},
|
|
6709
|
-
layout: { xs: 11, sm: 4.5, md: 4.5, lg: 4.5 }
|
|
6710
|
-
}
|
|
6711
|
-
},
|
|
6712
|
-
{
|
|
6713
|
-
type: "Control",
|
|
6714
|
-
scope: "#/properties/ConfirmDeleteEventButton",
|
|
6715
|
-
options: {
|
|
6716
|
-
widget: "Button"
|
|
6717
|
-
},
|
|
6718
|
-
config: {
|
|
6719
|
-
layout: 3,
|
|
6720
|
-
main: {
|
|
6721
|
-
name: "Yes",
|
|
6722
|
-
endIcon: "DeleteIcon",
|
|
6723
|
-
variant: "contained",
|
|
6724
|
-
color: "info",
|
|
6725
|
-
type: "text",
|
|
6726
|
-
onClick: "deleteEvent",
|
|
6727
|
-
size: "small"
|
|
6728
|
-
}
|
|
6729
|
-
}
|
|
6730
|
-
},
|
|
6731
|
-
{
|
|
6732
|
-
type: "Control",
|
|
6733
|
-
scope: "#/properties/CancelDeleteEventButton",
|
|
6734
|
-
options: {
|
|
6735
|
-
widget: "Button"
|
|
6736
|
-
},
|
|
6737
|
-
config: {
|
|
6738
|
-
layout: 3,
|
|
6739
|
-
main: {
|
|
6740
|
-
name: "No",
|
|
6741
|
-
endIcon: "CloseIcon",
|
|
6742
|
-
variant: "contained",
|
|
6743
|
-
color: "info",
|
|
6744
|
-
type: "text",
|
|
6745
|
-
onClick: "deletePopUpEvent",
|
|
6746
|
-
size: "small"
|
|
6747
|
-
}
|
|
6748
|
-
}
|
|
6749
|
-
},
|
|
6750
|
-
{
|
|
6751
|
-
type: "Control",
|
|
6752
|
-
scope: "#/properties/EmptyBox",
|
|
6753
|
-
options: {
|
|
6754
|
-
widget: "EmptyBox"
|
|
6755
|
-
},
|
|
6756
|
-
config: {
|
|
6757
|
-
main: {},
|
|
6758
|
-
layout: 0.5
|
|
6759
|
-
}
|
|
6760
|
-
}
|
|
6761
|
-
]
|
|
6762
|
-
},
|
|
6763
|
-
{
|
|
6764
|
-
type: "Control",
|
|
6765
|
-
scope: "#/properties/proc",
|
|
6766
|
-
config: {
|
|
6767
|
-
layout: { xs: 11, sm: 11, md: 6, lg: 6 }
|
|
6768
|
-
},
|
|
6769
|
-
options: {
|
|
6770
|
-
widget: "EmptyBox"
|
|
6771
|
-
}
|
|
6772
|
-
},
|
|
6773
|
-
{
|
|
6774
|
-
type: "Control",
|
|
6775
|
-
scope: "#/properties/btn",
|
|
6776
|
-
options: {
|
|
6777
|
-
widget: "Button"
|
|
6778
|
-
},
|
|
6779
|
-
config: {
|
|
6780
|
-
layout: {
|
|
6781
|
-
xs: 11,
|
|
6782
|
-
sm: 11,
|
|
6783
|
-
md: 2.5,
|
|
6784
|
-
lg: 2.5
|
|
6785
|
-
},
|
|
6786
|
-
main: {
|
|
6787
|
-
name: "Ok",
|
|
6788
|
-
startIcon: "ApproveIcon",
|
|
6789
|
-
variant: "contained",
|
|
6790
|
-
color: "info",
|
|
6791
|
-
type: "text",
|
|
6792
|
-
onClick: "okHandler",
|
|
6793
|
-
size: "small"
|
|
6794
|
-
},
|
|
6795
|
-
style: {
|
|
6796
|
-
marginBottom: "8px",
|
|
6797
|
-
float: "right"
|
|
6798
|
-
}
|
|
6799
|
-
}
|
|
6800
|
-
},
|
|
6801
|
-
{
|
|
6802
|
-
type: "Control",
|
|
6803
|
-
scope: "#/properties/btnSubmit",
|
|
6804
|
-
options: {
|
|
6805
|
-
widget: "Button"
|
|
6806
|
-
},
|
|
6807
|
-
config: {
|
|
6808
|
-
layout: {
|
|
6809
|
-
xs: 11,
|
|
6810
|
-
sm: 11,
|
|
6811
|
-
md: 2.5,
|
|
6812
|
-
lg: 2.5
|
|
6447
|
+
xs: 11,
|
|
6448
|
+
sm: 11,
|
|
6449
|
+
md: 2.5,
|
|
6450
|
+
lg: 2.5
|
|
6813
6451
|
},
|
|
6814
6452
|
main: {
|
|
6815
6453
|
name: "Save & Exit",
|
|
@@ -6889,6 +6527,24 @@ const CoreSection = {
|
|
|
6889
6527
|
}
|
|
6890
6528
|
}
|
|
6891
6529
|
},
|
|
6530
|
+
{
|
|
6531
|
+
type: "Control",
|
|
6532
|
+
scope: "#/properties/columnFormat",
|
|
6533
|
+
options: {
|
|
6534
|
+
widget: "SelectInputField"
|
|
6535
|
+
},
|
|
6536
|
+
config: {
|
|
6537
|
+
layout: {
|
|
6538
|
+
xs: 12,
|
|
6539
|
+
sm: 12,
|
|
6540
|
+
md: 6,
|
|
6541
|
+
lg: 6
|
|
6542
|
+
},
|
|
6543
|
+
main: {
|
|
6544
|
+
label: "Column Format"
|
|
6545
|
+
}
|
|
6546
|
+
}
|
|
6547
|
+
},
|
|
6892
6548
|
{
|
|
6893
6549
|
type: "Control",
|
|
6894
6550
|
scope: "#/properties/proc",
|
|
@@ -7066,7 +6722,7 @@ const EventSection = {
|
|
|
7066
6722
|
icon: "RejectIcon",
|
|
7067
6723
|
color: "error",
|
|
7068
6724
|
tooltipMessage: "Reject This Record",
|
|
7069
|
-
onClick: "
|
|
6725
|
+
onClick: "deleteEvent"
|
|
7070
6726
|
}
|
|
7071
6727
|
}
|
|
7072
6728
|
}
|
|
@@ -7288,6 +6944,22 @@ const GraphSection = {
|
|
|
7288
6944
|
const buildPropertiesSection = function(type) {
|
|
7289
6945
|
let uiSchema = _.cloneDeep(GraphSection);
|
|
7290
6946
|
switch (type) {
|
|
6947
|
+
case "TreeMap":
|
|
6948
|
+
uiSchema.elements = [
|
|
6949
|
+
getSelectField("orientation", "orientation"),
|
|
6950
|
+
getInputField("linkType", "linkType"),
|
|
6951
|
+
getInputField("graphHeight", "Graph Height"),
|
|
6952
|
+
getInputField("graphWidth", "Graph Width"),
|
|
6953
|
+
getInputField("graphZoomHeight", "Zoom Height")
|
|
6954
|
+
];
|
|
6955
|
+
case "InputSlider":
|
|
6956
|
+
uiSchema.elements = [
|
|
6957
|
+
getInputField("max", "Max Limit"),
|
|
6958
|
+
getInputField("step", "Step"),
|
|
6959
|
+
getInputField("min", "Min Limit"),
|
|
6960
|
+
getRadioInputField("limitToMax", "Applly Max. Limit", ["YES", "NO"])
|
|
6961
|
+
];
|
|
6962
|
+
break;
|
|
7291
6963
|
case "DataGrid":
|
|
7292
6964
|
uiSchema.elements = [
|
|
7293
6965
|
getRadioInputField("divider", "Use Header divider", ["YES", "NO"]),
|
|
@@ -7395,15 +7067,24 @@ const buildPropertiesSection = function(type) {
|
|
|
7395
7067
|
getInputField("leftLabel", "Left Label"),
|
|
7396
7068
|
getInputField("bottomLabel", "Bottom Label"),
|
|
7397
7069
|
getRadioInputField("legendHide", "Legend Hide", ["YES", "No"]),
|
|
7070
|
+
getInputField("yAxisValue", "Y-AxisValue"),
|
|
7071
|
+
getInputField("xAxisValue", "X-AxisValue"),
|
|
7398
7072
|
getArrayControl("legendLabels", "label"),
|
|
7399
7073
|
getArrayControl("pieArcColors", "color")
|
|
7400
7074
|
];
|
|
7401
7075
|
break;
|
|
7402
7076
|
case "WrapperSection":
|
|
7403
|
-
uiSchema.elements = [
|
|
7077
|
+
uiSchema.elements = [
|
|
7078
|
+
getRadioInputField("divider", "Divider", ["YES", "No"]),
|
|
7079
|
+
getRadioInputField("isAccordion", "Accordion", ["YES", "No"]),
|
|
7080
|
+
getRadioInputField("defaultStyle", "Default Style", ["YES", "No"]),
|
|
7081
|
+
getInputField("rowSpacing", "Row Spacing")
|
|
7082
|
+
];
|
|
7404
7083
|
break;
|
|
7405
7084
|
case "TabSection":
|
|
7406
7085
|
uiSchema.elements = [
|
|
7086
|
+
getRadioInputField("verticalOrientation", "Vertical Orientation", ["YES", "NO"]),
|
|
7087
|
+
getRadioInputField("lazyLoad", "Lazy Load", ["YES", "NO"]),
|
|
7407
7088
|
getArrayControl("sectionLabels", "label")
|
|
7408
7089
|
];
|
|
7409
7090
|
break;
|
|
@@ -7582,7 +7263,7 @@ const TableSection = {
|
|
|
7582
7263
|
main: {
|
|
7583
7264
|
icon: "RejectIcon",
|
|
7584
7265
|
color: "error",
|
|
7585
|
-
onClick: "
|
|
7266
|
+
onClick: "deleteComponents",
|
|
7586
7267
|
tooltipMessage: "Reject This Record"
|
|
7587
7268
|
}
|
|
7588
7269
|
}
|
|
@@ -7732,18 +7413,21 @@ const createLayoutFormat = (config) => {
|
|
|
7732
7413
|
lg: 5.5
|
|
7733
7414
|
};
|
|
7734
7415
|
}
|
|
7735
|
-
let
|
|
7416
|
+
let data = {};
|
|
7736
7417
|
config.map((e) => {
|
|
7737
|
-
|
|
7418
|
+
data[e.key || "xs"] = +e.value || 5.5;
|
|
7738
7419
|
});
|
|
7739
|
-
return
|
|
7420
|
+
return data;
|
|
7740
7421
|
};
|
|
7741
7422
|
const flatObjectValueInArray = (config) => {
|
|
7423
|
+
if (config[0].length < 1) {
|
|
7424
|
+
return;
|
|
7425
|
+
}
|
|
7742
7426
|
const keyName = Object.keys(config[0])[0];
|
|
7743
|
-
const
|
|
7427
|
+
const data = config.map((e) => {
|
|
7744
7428
|
return e[keyName];
|
|
7745
7429
|
});
|
|
7746
|
-
return
|
|
7430
|
+
return data;
|
|
7747
7431
|
};
|
|
7748
7432
|
const clearFromLocalStorage = () => {
|
|
7749
7433
|
localStorage.removeItem("pageFormdata");
|
|
@@ -7761,9 +7445,9 @@ const getNavigationHistory = (config, path) => {
|
|
|
7761
7445
|
arr.push(`${arr[i - 1]}.${e}`);
|
|
7762
7446
|
});
|
|
7763
7447
|
arr.map((e) => {
|
|
7764
|
-
const
|
|
7765
|
-
if (
|
|
7766
|
-
urlRoutes = urlRoutes + ` > ${(
|
|
7448
|
+
const data = _.get(config, e);
|
|
7449
|
+
if (data) {
|
|
7450
|
+
urlRoutes = urlRoutes + ` > ${(data == null ? void 0 : data.name) || (data == null ? void 0 : data.eventType)}`;
|
|
7767
7451
|
} else {
|
|
7768
7452
|
urlRoutes = urlRoutes + " > NewComponent";
|
|
7769
7453
|
}
|
|
@@ -7797,14 +7481,14 @@ const getFormdataFromLocalStorage = (path) => {
|
|
|
7797
7481
|
};
|
|
7798
7482
|
async function saveHandler(store2, service2, submitHandler, pageName) {
|
|
7799
7483
|
var _a, _b;
|
|
7800
|
-
|
|
7484
|
+
(_a = store2.searchParams) == null ? void 0 : _a.get("id");
|
|
7801
7485
|
const path = (_b = store2.searchParams) == null ? void 0 : _b.get("path");
|
|
7802
7486
|
saveFormdataInLocalStorage(store2.ctx.core.data, path);
|
|
7803
7487
|
const config = JSON.parse(localStorage.getItem("pageFormdata"));
|
|
7804
7488
|
if (_.isEmpty(store2.ctx.core.errors)) {
|
|
7805
7489
|
try {
|
|
7806
7490
|
const saveReturn = await submitHandler(store2, service2, config);
|
|
7807
|
-
navigateHandler(store2, true, pageName ? `/${pageName}?id=${id}` : "/PageMasterRecords");
|
|
7491
|
+
navigateHandler(store2, true, pageName ? `/${pageName}?id=${saveReturn.id}` : "/PageMasterRecords");
|
|
7808
7492
|
} catch (err) {
|
|
7809
7493
|
navigateHandler(store2, false);
|
|
7810
7494
|
}
|
|
@@ -7846,32 +7530,35 @@ function okHandler(store2) {
|
|
|
7846
7530
|
}
|
|
7847
7531
|
}
|
|
7848
7532
|
const sectionLabels = {
|
|
7849
|
-
Select: ["Core", "Properties", "Value", "
|
|
7850
|
-
MultipleSelect: ["Core", "Properties", "Value", "
|
|
7851
|
-
Table: ["Core", "Components", "Properties", "
|
|
7852
|
-
LeaderBoard: ["Core", "Components", "Properties", "
|
|
7853
|
-
WrapperSection: ["Core", "Components", "Properties", "
|
|
7854
|
-
TabSection: ["Core", "Components", "Properties", "
|
|
7855
|
-
SpeedoMeter: ["Core", "Properties", "
|
|
7856
|
-
card: ["Core", "Properties", "
|
|
7857
|
-
UploadFile: ["Core", "
|
|
7858
|
-
Graph: ["Core", "Properties", "
|
|
7859
|
-
DownloadFile: ["Core", "
|
|
7860
|
-
Box: ["Core", "
|
|
7861
|
-
Properties: ["Core", "Properties", "
|
|
7862
|
-
ProgressBarCard: ["Core", "Properties", "
|
|
7863
|
-
RankCard: ["Core", "Properties", "
|
|
7864
|
-
Slider: ["Core", "Components", "
|
|
7865
|
-
Timer: ["Core", "
|
|
7866
|
-
Rank: ["Core", "
|
|
7867
|
-
Button: ["Core", "Properties", "
|
|
7533
|
+
Select: ["Core", "Properties", "Value", "Event", "Style", "Validation"],
|
|
7534
|
+
MultipleSelect: ["Core", "Properties", "Value", "Event", "Style", "Validation"],
|
|
7535
|
+
Table: ["Core", "Components", "Properties", "Event", "Style", "Validation"],
|
|
7536
|
+
LeaderBoard: ["Core", "Components", "Properties", "Event", "Style", "Validation"],
|
|
7537
|
+
WrapperSection: ["Core", "Components", "Properties", "Style", "Validation"],
|
|
7538
|
+
TabSection: ["Core", "Components", "Properties", "Style", "Validation"],
|
|
7539
|
+
SpeedoMeter: ["Core", "Properties", "Event", "Style", "Validation"],
|
|
7540
|
+
card: ["Core", "Properties", "Event", "Style", "Validation"],
|
|
7541
|
+
UploadFile: ["Core", "Event", "Style", "Validation"],
|
|
7542
|
+
Graph: ["Core", "Properties", "Event", "Style", "Validation"],
|
|
7543
|
+
DownloadFile: ["Core", "Event", "Style", "Validation"],
|
|
7544
|
+
Box: ["Core", "Event", "Style", "Validation"],
|
|
7545
|
+
Properties: ["Core", "Properties", "Event", "Style", "Validation"],
|
|
7546
|
+
ProgressBarCard: ["Core", "Properties", "Event", "Style", "Validation"],
|
|
7547
|
+
RankCard: ["Core", "Properties", "Event", "Style", "Validation"],
|
|
7548
|
+
Slider: ["Core", "Components", "Event", "Style", "Validation"],
|
|
7549
|
+
Timer: ["Core", "Event", "Style", "Validation"],
|
|
7550
|
+
Rank: ["Core", "Event", "Style", "Validation"],
|
|
7551
|
+
Button: ["Core", "Properties", "Event", "Style", "Validation"],
|
|
7868
7552
|
Array: ["Core", "Components", "Validation"],
|
|
7869
|
-
Radio: ["Core", "Properties", "
|
|
7870
|
-
Text: ["Core", "Properties", "
|
|
7871
|
-
TextArea: ["Core", "Properties", "
|
|
7872
|
-
PopUp: ["Core", "Components", "Properties", "
|
|
7873
|
-
Stepper: ["Core", "Components", "Properties", "Event", "
|
|
7874
|
-
DataGrid: ["Core", "Components", "Properties", "Event", "
|
|
7553
|
+
Radio: ["Core", "Properties", "Event", "Style", "Validation"],
|
|
7554
|
+
Text: ["Core", "Properties", "Event", "Style", "Validation"],
|
|
7555
|
+
TextArea: ["Core", "Properties", "Event", "Style", "Validation"],
|
|
7556
|
+
PopUp: ["Core", "Components", "Properties", "Style"],
|
|
7557
|
+
Stepper: ["Core", "Components", "Properties", "Event", "Style"],
|
|
7558
|
+
DataGrid: ["Core", "Components", "Properties", "Event", "Style"],
|
|
7559
|
+
InputSlider: ["Core", "Properties", "Event", "Style", "Validation"],
|
|
7560
|
+
TreeMap: ["Core", "Components", "Properties", "Event", "Style"],
|
|
7561
|
+
ColumnGroup: ["Core", "Components"]
|
|
7875
7562
|
};
|
|
7876
7563
|
const refreshPage = (type, store2) => {
|
|
7877
7564
|
var _a;
|
|
@@ -7880,14 +7567,14 @@ const refreshPage = (type, store2) => {
|
|
|
7880
7567
|
const sectionUiSchema = {
|
|
7881
7568
|
Core: CoreSection,
|
|
7882
7569
|
Value: ValueTab,
|
|
7883
|
-
|
|
7570
|
+
Style: StyleSection,
|
|
7884
7571
|
Event: EventSection,
|
|
7885
7572
|
Components: TableSection,
|
|
7886
7573
|
Properties: buildPropertiesSection(type),
|
|
7887
7574
|
Validation: ValidationSection
|
|
7888
7575
|
};
|
|
7889
7576
|
const elements = (_a = sectionLabels[type]) == null ? void 0 : _a.map((e) => sectionUiSchema[e]);
|
|
7890
|
-
UiSchema.elements[1].config.main.tabLabels = sectionLabels[type] || ["Core", "
|
|
7577
|
+
UiSchema.elements[1].config.main.tabLabels = sectionLabels[type] || ["Core", "Style", "Event", "Validation"];
|
|
7891
7578
|
UiSchema.elements[1].elements = elements || [CoreSection, StyleSection, EventSection, ValidationSection];
|
|
7892
7579
|
}
|
|
7893
7580
|
store2.setUiSchema(UiSchema);
|
|
@@ -7934,30 +7621,22 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
|
|
|
7934
7621
|
store2.navigate(`/Component?path=${`elements[${rowId}]`}&id=${id}`);
|
|
7935
7622
|
}
|
|
7936
7623
|
},
|
|
7937
|
-
deleteComponents: function(
|
|
7624
|
+
deleteComponents: function() {
|
|
7938
7625
|
var _a;
|
|
7939
7626
|
const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
|
|
7940
|
-
const rowId =
|
|
7627
|
+
const rowId = dynamicData2.path.split(".")[1];
|
|
7941
7628
|
store2.formData.elements.splice(rowId, 1);
|
|
7942
|
-
const
|
|
7943
|
-
const
|
|
7944
|
-
store2.setFormdata(
|
|
7945
|
-
if (shouldUpdateDialog) {
|
|
7946
|
-
store2.updateDialog("popUpComponentSection");
|
|
7947
|
-
}
|
|
7948
|
-
localStorage.removeItem("rowId");
|
|
7629
|
+
const response = saveFormdataInLocalStorage(store2.ctx.core.data, path);
|
|
7630
|
+
const data = path ? _.get(response, path) : response;
|
|
7631
|
+
store2.setFormdata(data);
|
|
7949
7632
|
},
|
|
7950
|
-
deleteEvent: function(
|
|
7633
|
+
deleteEvent: function() {
|
|
7951
7634
|
var _a;
|
|
7952
7635
|
const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
|
|
7953
|
-
const rowId =
|
|
7636
|
+
const rowId = dynamicData2.path.split(".")[1];
|
|
7954
7637
|
store2.formData.events.splice(rowId, 1);
|
|
7955
|
-
const
|
|
7956
|
-
store2.setFormdata(_.get(
|
|
7957
|
-
if (shouldUpdateDialog) {
|
|
7958
|
-
store2.updateDialog("popUpEventSection");
|
|
7959
|
-
}
|
|
7960
|
-
localStorage.removeItem("rowId");
|
|
7638
|
+
const response = saveFormdataInLocalStorage(store2.ctx.core.data, path);
|
|
7639
|
+
store2.setFormdata(_.get(response, path));
|
|
7961
7640
|
},
|
|
7962
7641
|
widgetAddClickHandler: function() {
|
|
7963
7642
|
var _a;
|
|
@@ -7993,21 +7672,11 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
|
|
|
7993
7672
|
},
|
|
7994
7673
|
backHandler: function() {
|
|
7995
7674
|
store2.navigate(-1);
|
|
7996
|
-
},
|
|
7997
|
-
deletePopUpComponent: function() {
|
|
7998
|
-
const rowId = dynamicData2.path.split(".")[1];
|
|
7999
|
-
localStorage.setItem("rowId", rowId);
|
|
8000
|
-
store2.updateDialog("popUpComponentSection");
|
|
8001
|
-
},
|
|
8002
|
-
deletePopUpEvent: function() {
|
|
8003
|
-
const rowId = dynamicData2.path.split(".")[1];
|
|
8004
|
-
localStorage.setItem("rowId", rowId);
|
|
8005
|
-
store2.updateDialog("popUpEventSection");
|
|
8006
7675
|
}
|
|
8007
7676
|
};
|
|
8008
7677
|
};
|
|
8009
7678
|
var pageMaster = (funcParams) => {
|
|
8010
|
-
const { store: store2, dynamicData: dynamicData2,
|
|
7679
|
+
const { store: store2, dynamicData: dynamicData2, submitHandler, service: service2 } = funcParams;
|
|
8011
7680
|
return {
|
|
8012
7681
|
setPage: async function() {
|
|
8013
7682
|
const formdata = await this.getFormdata();
|
|
@@ -8017,9 +7686,10 @@ var pageMaster = (funcParams) => {
|
|
|
8017
7686
|
store2.setSchema(schema2);
|
|
8018
7687
|
store2.setUiSchema(uiSchema);
|
|
8019
7688
|
},
|
|
8020
|
-
getFormdata: function() {
|
|
7689
|
+
getFormdata: async function() {
|
|
8021
7690
|
var _a;
|
|
8022
|
-
(_a = store2.searchParams) == null ? void 0 : _a.get("id");
|
|
7691
|
+
const id = (_a = store2.searchParams) == null ? void 0 : _a.get("id");
|
|
7692
|
+
const config = await funcParams.pageConfigProvider(id);
|
|
8023
7693
|
const formData = getFormdataFromLocalStorage();
|
|
8024
7694
|
if (formData) {
|
|
8025
7695
|
return formData;
|
|
@@ -8043,17 +7713,20 @@ var pageMaster = (funcParams) => {
|
|
|
8043
7713
|
if (!Array.isArray(store2.formData.elements)) {
|
|
8044
7714
|
store2.formData.elements = [];
|
|
8045
7715
|
}
|
|
8046
|
-
const
|
|
8047
|
-
|
|
8048
|
-
|
|
8049
|
-
|
|
7716
|
+
const response = saveFormdataInLocalStorage(store2.ctx.core.data);
|
|
7717
|
+
if (id) {
|
|
7718
|
+
store2.navigate(
|
|
7719
|
+
`/Component?path=${`elements[${response == null ? void 0 : response.elements.length}]`}&id=${id}`
|
|
7720
|
+
);
|
|
7721
|
+
} else {
|
|
7722
|
+
store2.navigate(
|
|
7723
|
+
`/Component?path=${`elements[${response == null ? void 0 : response.elements.length}]`}`
|
|
7724
|
+
);
|
|
7725
|
+
}
|
|
8050
7726
|
},
|
|
8051
7727
|
saveHandler: async () => await saveHandler(store2, service2, submitHandler),
|
|
8052
7728
|
Edit_Components: Component(store2, dynamicData2, submitHandler, service2).editComponents,
|
|
8053
|
-
Delete_Components:
|
|
8054
|
-
await Component(store2, dynamicData2, submitHandler, service2).deleteComponents(false);
|
|
8055
|
-
store2.updateDialog("popUpPageMasterComponent");
|
|
8056
|
-
},
|
|
7729
|
+
Delete_Components: Component(store2, dynamicData2, submitHandler, service2).deleteComponents,
|
|
8057
7730
|
eventAddHandler: function() {
|
|
8058
7731
|
var _a;
|
|
8059
7732
|
const id = (_a = store2.searchParams) == null ? void 0 : _a.get("id");
|
|
@@ -8073,22 +7746,10 @@ var pageMaster = (funcParams) => {
|
|
|
8073
7746
|
store2.navigate(`/ComponentEvents?path=${finalPath}&id=${id}`);
|
|
8074
7747
|
},
|
|
8075
7748
|
deleteEvent: function() {
|
|
8076
|
-
const rowId = localStorage.getItem("rowId");
|
|
8077
|
-
store2.formData.events.splice(rowId, 1);
|
|
8078
|
-
const response2 = saveFormdataInLocalStorage(store2.ctx.core.data);
|
|
8079
|
-
store2.setFormdata(response2);
|
|
8080
|
-
store2.updateDialog("popUpPageMasterEvent");
|
|
8081
|
-
localStorage.removeItem("rowId");
|
|
8082
|
-
},
|
|
8083
|
-
deletePopUpComponent: function() {
|
|
8084
7749
|
const rowId = dynamicData2.path.split(".")[1];
|
|
8085
|
-
|
|
8086
|
-
store2.
|
|
8087
|
-
|
|
8088
|
-
deletePopUpEvent: function() {
|
|
8089
|
-
const rowId = dynamicData2.path.split(".")[1];
|
|
8090
|
-
localStorage.setItem("rowId", rowId);
|
|
8091
|
-
store2.updateDialog("popUpPageMasterEvent");
|
|
7750
|
+
store2.formData.events.splice(rowId, 1);
|
|
7751
|
+
const response = saveFormdataInLocalStorage(store2.ctx.core.data);
|
|
7752
|
+
store2.setFormdata(response);
|
|
8092
7753
|
}
|
|
8093
7754
|
};
|
|
8094
7755
|
};
|
|
@@ -8135,8 +7796,10 @@ const EventSchema = {
|
|
|
8135
7796
|
{ title: "Click Event", const: "onClick" },
|
|
8136
7797
|
{ title: "Load Event", const: "onLoad" },
|
|
8137
7798
|
{ title: "Change Event", const: "onChange" },
|
|
7799
|
+
{ title: "Mount Event", const: "onMount" },
|
|
8138
7800
|
{ title: "Success", const: "Success" },
|
|
8139
7801
|
{ title: "onStart", const: "onStart" },
|
|
7802
|
+
{ title: "Cell Renderer", const: "onCellRenderer" },
|
|
8140
7803
|
{ title: "File Upload Event", const: "onUpload" },
|
|
8141
7804
|
{ title: "Back Event", const: "onBack" },
|
|
8142
7805
|
{ title: "Next Event", const: "onNext" },
|
|
@@ -8388,7 +8051,7 @@ const EventUiSchema = {
|
|
|
8388
8051
|
icon: "RejectIcon",
|
|
8389
8052
|
color: "error",
|
|
8390
8053
|
tooltipMessage: "Reject This Record",
|
|
8391
|
-
onClick: "
|
|
8054
|
+
onClick: "deleteEvent"
|
|
8392
8055
|
}
|
|
8393
8056
|
}
|
|
8394
8057
|
}
|
|
@@ -8399,107 +8062,6 @@ const EventUiSchema = {
|
|
|
8399
8062
|
}
|
|
8400
8063
|
]
|
|
8401
8064
|
},
|
|
8402
|
-
{
|
|
8403
|
-
type: "Control",
|
|
8404
|
-
scope: "#/properties/popUpEvent",
|
|
8405
|
-
options: {
|
|
8406
|
-
widget: "PopUp"
|
|
8407
|
-
},
|
|
8408
|
-
config: {
|
|
8409
|
-
layout: {
|
|
8410
|
-
xs: 12,
|
|
8411
|
-
sm: 12,
|
|
8412
|
-
md: 12,
|
|
8413
|
-
lg: 12
|
|
8414
|
-
},
|
|
8415
|
-
style: {
|
|
8416
|
-
width: "32%",
|
|
8417
|
-
margin: "auto"
|
|
8418
|
-
},
|
|
8419
|
-
main: {
|
|
8420
|
-
title: "Delete Content"
|
|
8421
|
-
}
|
|
8422
|
-
},
|
|
8423
|
-
elements: [
|
|
8424
|
-
{
|
|
8425
|
-
type: "Control",
|
|
8426
|
-
scope: "#/properties/label",
|
|
8427
|
-
options: {
|
|
8428
|
-
widget: "Box"
|
|
8429
|
-
},
|
|
8430
|
-
config: {
|
|
8431
|
-
layout: 12,
|
|
8432
|
-
main: {
|
|
8433
|
-
heading: "Are you sure you want to delete ?"
|
|
8434
|
-
},
|
|
8435
|
-
style: {
|
|
8436
|
-
marginTop: "-25px",
|
|
8437
|
-
marginLeft: "11px"
|
|
8438
|
-
}
|
|
8439
|
-
}
|
|
8440
|
-
},
|
|
8441
|
-
{
|
|
8442
|
-
type: "Control",
|
|
8443
|
-
scope: "#/properties/EmptyBox",
|
|
8444
|
-
options: {
|
|
8445
|
-
widget: "EmptyBox"
|
|
8446
|
-
},
|
|
8447
|
-
config: {
|
|
8448
|
-
main: {},
|
|
8449
|
-
layout: { xs: 11, sm: 5.5, md: 4.5, lg: 4.5 }
|
|
8450
|
-
}
|
|
8451
|
-
},
|
|
8452
|
-
{
|
|
8453
|
-
type: "Control",
|
|
8454
|
-
scope: "#/properties/ConfirmDeleteEventButton",
|
|
8455
|
-
options: {
|
|
8456
|
-
widget: "Button"
|
|
8457
|
-
},
|
|
8458
|
-
config: {
|
|
8459
|
-
layout: 3,
|
|
8460
|
-
main: {
|
|
8461
|
-
name: "Yes",
|
|
8462
|
-
endIcon: "DeleteIcon",
|
|
8463
|
-
variant: "contained",
|
|
8464
|
-
color: "info",
|
|
8465
|
-
type: "text",
|
|
8466
|
-
onClick: "deleteEvent",
|
|
8467
|
-
size: "small"
|
|
8468
|
-
}
|
|
8469
|
-
}
|
|
8470
|
-
},
|
|
8471
|
-
{
|
|
8472
|
-
type: "Control",
|
|
8473
|
-
scope: "#/properties/CancelDeleteEventButton",
|
|
8474
|
-
options: {
|
|
8475
|
-
widget: "Button"
|
|
8476
|
-
},
|
|
8477
|
-
config: {
|
|
8478
|
-
layout: 3,
|
|
8479
|
-
main: {
|
|
8480
|
-
name: "No",
|
|
8481
|
-
endIcon: "CloseIcon",
|
|
8482
|
-
variant: "contained",
|
|
8483
|
-
color: "info",
|
|
8484
|
-
type: "text",
|
|
8485
|
-
onClick: "deletePopUpEvent",
|
|
8486
|
-
size: "small"
|
|
8487
|
-
}
|
|
8488
|
-
}
|
|
8489
|
-
},
|
|
8490
|
-
{
|
|
8491
|
-
type: "Control",
|
|
8492
|
-
scope: "#/properties/EmptyBox",
|
|
8493
|
-
options: {
|
|
8494
|
-
widget: "EmptyBox"
|
|
8495
|
-
},
|
|
8496
|
-
config: {
|
|
8497
|
-
main: {},
|
|
8498
|
-
layout: 0.5
|
|
8499
|
-
}
|
|
8500
|
-
}
|
|
8501
|
-
]
|
|
8502
|
-
},
|
|
8503
8065
|
{
|
|
8504
8066
|
type: "Control",
|
|
8505
8067
|
scope: "#/properties/proc",
|
|
@@ -8761,7 +8323,19 @@ const refreshSectionUiSchema = {
|
|
|
8761
8323
|
}
|
|
8762
8324
|
]
|
|
8763
8325
|
};
|
|
8764
|
-
var
|
|
8326
|
+
var emptyBox = {
|
|
8327
|
+
type: "Control",
|
|
8328
|
+
scope: "#/properties/emptyBox",
|
|
8329
|
+
options: {
|
|
8330
|
+
widget: "EmptyBox"
|
|
8331
|
+
},
|
|
8332
|
+
config: {
|
|
8333
|
+
layout: { xs: 12, sm: 12, md: 5.5, lg: 5.5 },
|
|
8334
|
+
main: {},
|
|
8335
|
+
style: {}
|
|
8336
|
+
}
|
|
8337
|
+
};
|
|
8338
|
+
var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
|
|
8765
8339
|
return {
|
|
8766
8340
|
setPage: async function() {
|
|
8767
8341
|
const formdata = await this.getFormData();
|
|
@@ -8775,7 +8349,9 @@ var event = (store2, dynamicData2, submitHandler, service2) => {
|
|
|
8775
8349
|
const schema2 = _.cloneDeep(EventSchema);
|
|
8776
8350
|
if (handlerType) {
|
|
8777
8351
|
if (handlerType === "custom") {
|
|
8778
|
-
uiSchema.elements[1].elements[0].elements[2] =
|
|
8352
|
+
uiSchema.elements[1].elements[0].elements[2] = getRadioInputField("isSync", "Run in Sync", ["Yes", "No"]);
|
|
8353
|
+
uiSchema.elements[1].elements[0].elements[3] = emptyBox;
|
|
8354
|
+
uiSchema.elements[1].elements[0].elements[4] = getTextArea("eventCode", "Write Custom Code", false);
|
|
8779
8355
|
schema2.required = ["eventType", "Handler", "eventCode"];
|
|
8780
8356
|
} else if (handlerType === "api") {
|
|
8781
8357
|
uiSchema.elements[1].elements[0].elements[2] = APISection;
|
|
@@ -8791,6 +8367,12 @@ var event = (store2, dynamicData2, submitHandler, service2) => {
|
|
|
8791
8367
|
schema2.required = ["eventType", "Handler", "refreshElements"];
|
|
8792
8368
|
}
|
|
8793
8369
|
}
|
|
8370
|
+
if (functionsName) {
|
|
8371
|
+
schema2.properties.inBuiltFunctionType.oneOf = [
|
|
8372
|
+
...schema2.properties.inBuiltFunctionType.oneOf,
|
|
8373
|
+
...functionsName
|
|
8374
|
+
];
|
|
8375
|
+
}
|
|
8794
8376
|
store22.setSchema(schema2);
|
|
8795
8377
|
store22.setUiSchema(uiSchema);
|
|
8796
8378
|
},
|
|
@@ -8831,41 +8413,33 @@ var event = (store2, dynamicData2, submitHandler, service2) => {
|
|
|
8831
8413
|
store2.setSearchParams(store2.searchParams);
|
|
8832
8414
|
this.setPage();
|
|
8833
8415
|
},
|
|
8834
|
-
deleteEvent:
|
|
8835
|
-
await Component(store2, dynamicData2, submitHandler, service2).deleteEvent(false);
|
|
8836
|
-
store2.updateDialog("popUpEvent");
|
|
8837
|
-
},
|
|
8416
|
+
deleteEvent: Component(store2, dynamicData2, submitHandler, service2).deleteEvent,
|
|
8838
8417
|
backHandler: function() {
|
|
8839
8418
|
store2.navigate(-1);
|
|
8840
|
-
},
|
|
8841
|
-
deletePopUpEvent: function() {
|
|
8842
|
-
const rowId = dynamicData2.path.split(".")[1];
|
|
8843
|
-
localStorage.setItem("rowId", rowId);
|
|
8844
|
-
store2.updateDialog("popUpEvent");
|
|
8845
8419
|
}
|
|
8846
8420
|
};
|
|
8847
8421
|
};
|
|
8848
8422
|
const downloadFile$1 = (obj) => {
|
|
8849
8423
|
const typeArr = obj.name.split(".");
|
|
8850
|
-
const
|
|
8851
|
-
const finalData = window.atob(
|
|
8424
|
+
const data = obj.data;
|
|
8425
|
+
const finalData = window.atob(data);
|
|
8852
8426
|
let file;
|
|
8853
8427
|
file = new File([finalData], typeArr[typeArr.length - 1]);
|
|
8854
8428
|
const url = URL.createObjectURL(file);
|
|
8855
8429
|
const link = document.createElement("a");
|
|
8856
|
-
link.href = typeArr[typeArr.length - 1] === "pdf" ? "data:application/octet-stream;base64," +
|
|
8430
|
+
link.href = typeArr[typeArr.length - 1] === "pdf" ? "data:application/octet-stream;base64," + data : url;
|
|
8857
8431
|
link.download = `${obj.name}`;
|
|
8858
8432
|
document.body.appendChild(link);
|
|
8859
8433
|
link.click();
|
|
8860
8434
|
URL.revokeObjectURL(url);
|
|
8861
8435
|
document.body.removeChild(link);
|
|
8862
8436
|
};
|
|
8863
|
-
const doDownload = (
|
|
8864
|
-
let url = `${service2.defaults.baseURL}/${
|
|
8865
|
-
if (
|
|
8866
|
-
const keysArray = Object.keys(
|
|
8437
|
+
const doDownload = (response, service2) => {
|
|
8438
|
+
let url = `${service2.defaults.baseURL}/${response.path}`;
|
|
8439
|
+
if (response == null ? void 0 : response.params) {
|
|
8440
|
+
const keysArray = Object.keys(response == null ? void 0 : response.params);
|
|
8867
8441
|
keysArray.map((e, i) => {
|
|
8868
|
-
url = url + `${i === 0 ? "?" : "&"}${e}=${
|
|
8442
|
+
url = url + `${i === 0 ? "?" : "&"}${e}=${response == null ? void 0 : response.params[e]}`;
|
|
8869
8443
|
});
|
|
8870
8444
|
}
|
|
8871
8445
|
const link = document.createElement("a");
|
|
@@ -8874,50 +8448,73 @@ const doDownload = (response2, service2) => {
|
|
|
8874
8448
|
link.click();
|
|
8875
8449
|
link.parentNode.removeChild(link);
|
|
8876
8450
|
};
|
|
8877
|
-
const executeEvents =
|
|
8451
|
+
const executeEvents = (params2) => {
|
|
8878
8452
|
var _a, _b, _c;
|
|
8879
8453
|
let nextEvent = [];
|
|
8880
8454
|
let finalResponse = null;
|
|
8455
|
+
if (params2.config.isSync !== "Yes") {
|
|
8456
|
+
return shouldEventExecute(params2).then((shouldExecute2) => {
|
|
8457
|
+
if (!shouldExecute2) {
|
|
8458
|
+
throw new Error("onStart Event not allow to run Parent Events");
|
|
8459
|
+
}
|
|
8460
|
+
return executeEventsHandler(params2);
|
|
8461
|
+
}).then((response) => {
|
|
8462
|
+
var _a2;
|
|
8463
|
+
finalResponse = response;
|
|
8464
|
+
const SuccessEvent = (_a2 = params2.config) == null ? void 0 : _a2.events.filter((e) => e.eventType === "Success");
|
|
8465
|
+
nextEvent = SuccessEvent;
|
|
8466
|
+
}).catch((err) => {
|
|
8467
|
+
var _a2, _b2;
|
|
8468
|
+
const FailEvent = (_b2 = (_a2 = params2.config) == null ? void 0 : _a2.events) == null ? void 0 : _b2.filter((e) => e.eventType === "Fail");
|
|
8469
|
+
const setEvent = (FailEvent == null ? void 0 : FailEvent.length) > 0 ? FailEvent : [];
|
|
8470
|
+
nextEvent = setEvent;
|
|
8471
|
+
}).then(() => {
|
|
8472
|
+
if ((nextEvent == null ? void 0 : nextEvent.length) > 0) {
|
|
8473
|
+
return nextEvent.reduce((chain, actionConfig) => {
|
|
8474
|
+
return chain.then(() => executeEvents({ ...params2, config: actionConfig, parentEventOutput: finalResponse }));
|
|
8475
|
+
}, Promise.resolve());
|
|
8476
|
+
}
|
|
8477
|
+
}).then(() => finalResponse);
|
|
8478
|
+
}
|
|
8479
|
+
const shouldExecute = shouldEventExecute(params2);
|
|
8480
|
+
if (!shouldExecute) {
|
|
8481
|
+
return { response: void 0, events: void 0 };
|
|
8482
|
+
}
|
|
8881
8483
|
try {
|
|
8882
|
-
const
|
|
8883
|
-
|
|
8884
|
-
return { response: void 0, events: void 0 };
|
|
8885
|
-
}
|
|
8886
|
-
const response2 = await executeEventsHandler(params2);
|
|
8887
|
-
finalResponse = response2;
|
|
8484
|
+
const eventsResponse = executeEventsHandler(params2);
|
|
8485
|
+
finalResponse = eventsResponse;
|
|
8888
8486
|
const SuccessEvent = (_a = params2.config) == null ? void 0 : _a.events.filter((e) => e.eventType === "Success");
|
|
8889
8487
|
nextEvent = SuccessEvent;
|
|
8890
|
-
} catch
|
|
8488
|
+
} catch {
|
|
8891
8489
|
const FailEvent = (_c = (_b = params2.config) == null ? void 0 : _b.events) == null ? void 0 : _c.filter((e) => e.eventType === "Fail");
|
|
8892
8490
|
const setEvent = (FailEvent == null ? void 0 : FailEvent.length) > 0 ? FailEvent : [];
|
|
8893
8491
|
nextEvent = setEvent;
|
|
8894
8492
|
}
|
|
8895
8493
|
if ((nextEvent == null ? void 0 : nextEvent.length) > 0) {
|
|
8896
8494
|
for (const actionConfig of nextEvent) {
|
|
8897
|
-
|
|
8495
|
+
executeEvents({ ...params2, config: actionConfig, parentEventOutput: finalResponse });
|
|
8898
8496
|
}
|
|
8899
8497
|
}
|
|
8900
8498
|
return finalResponse;
|
|
8901
8499
|
};
|
|
8902
|
-
|
|
8500
|
+
function executeEventsHandler(params2) {
|
|
8903
8501
|
var _a, _b, _c;
|
|
8904
8502
|
if (params2.config.Handler === "api") {
|
|
8905
|
-
return
|
|
8503
|
+
return executeApiRequest(params2);
|
|
8906
8504
|
} else if (params2.config.Handler === "inBuiltFunction") {
|
|
8907
|
-
return
|
|
8505
|
+
return executeInBuiltFunctionHandler(params2);
|
|
8908
8506
|
} else if (params2.config.Handler === "custom") {
|
|
8909
|
-
return
|
|
8507
|
+
return executeCustomHandler(params2);
|
|
8910
8508
|
} else if (params2.config.Handler === "refresh") {
|
|
8911
|
-
return
|
|
8509
|
+
return executeRefreshHandler(params2);
|
|
8912
8510
|
} else if (params2.config.Handler === "mergeFormdata") {
|
|
8913
|
-
|
|
8511
|
+
return mergeFormdata(
|
|
8914
8512
|
params2.parentEventOutput,
|
|
8915
8513
|
params2.componentName,
|
|
8916
8514
|
params2.config,
|
|
8917
8515
|
params2.store,
|
|
8918
8516
|
params2.service
|
|
8919
8517
|
);
|
|
8920
|
-
return result;
|
|
8921
8518
|
} else if (params2.config.Handler === "onBackHandler") {
|
|
8922
8519
|
return (_a = params2.store.functionParameters) == null ? void 0 : _a.handleBack();
|
|
8923
8520
|
} else if (params2.config.Handler === "onNextHandler") {
|
|
@@ -8926,43 +8523,66 @@ async function executeEventsHandler(params2) {
|
|
|
8926
8523
|
return (_c = params2.store.functionParameters) == null ? void 0 : _c.handleReset();
|
|
8927
8524
|
}
|
|
8928
8525
|
}
|
|
8929
|
-
|
|
8930
|
-
|
|
8931
|
-
|
|
8932
|
-
|
|
8933
|
-
|
|
8526
|
+
function getRefreshElements(eventConfig, eventGropus) {
|
|
8527
|
+
var _a;
|
|
8528
|
+
let result = [];
|
|
8529
|
+
if (((_a = eventConfig == null ? void 0 : eventConfig.refreshElements) == null ? void 0 : _a.length) > 0) {
|
|
8530
|
+
result = eventConfig.refreshElements.map((e) => {
|
|
8531
|
+
return e.value;
|
|
8532
|
+
});
|
|
8533
|
+
} else {
|
|
8534
|
+
if (eventGropus == null ? void 0 : eventGropus.onLoad) {
|
|
8535
|
+
result = Object.keys(eventGropus == null ? void 0 : eventGropus.onLoad);
|
|
8536
|
+
result.push(result[0]);
|
|
8934
8537
|
}
|
|
8935
8538
|
}
|
|
8539
|
+
console.log(result);
|
|
8540
|
+
return result;
|
|
8936
8541
|
}
|
|
8937
|
-
|
|
8542
|
+
function executeRefreshHandler(params2) {
|
|
8543
|
+
const compToRefresh = getRefreshElements(params2.config, params2.eventGroups);
|
|
8544
|
+
return Promise.all(compToRefresh.map((componentName) => {
|
|
8545
|
+
return Promise.all(params2.eventGroups.onLoad[componentName].map((compEventConfig) => {
|
|
8546
|
+
return executeEvents({ ...params2, config: compEventConfig, componentName });
|
|
8547
|
+
}));
|
|
8548
|
+
}));
|
|
8549
|
+
}
|
|
8550
|
+
function executeApiRequest(params2) {
|
|
8938
8551
|
var _a;
|
|
8939
8552
|
const initialBody = { ...(_a = params2.userValue) == null ? void 0 : _a.payload };
|
|
8940
8553
|
const initialHeaders = {
|
|
8941
8554
|
"X-Requested-With": "XMLHttpRequest",
|
|
8942
8555
|
"Access-Control-Allow-Origin": "*"
|
|
8943
8556
|
};
|
|
8944
|
-
const
|
|
8945
|
-
|
|
8557
|
+
const payloadApi = buildApiPayload(params2.config, initialBody, initialHeaders, params2.store, params2.dynamicData, params2.userValue, params2.service);
|
|
8558
|
+
return params2.service[params2.config.method](
|
|
8946
8559
|
params2.config.path,
|
|
8947
|
-
|
|
8948
|
-
|
|
8949
|
-
)
|
|
8950
|
-
|
|
8560
|
+
payloadApi.body,
|
|
8561
|
+
{ headers: payloadApi.headers }
|
|
8562
|
+
).then((response) => {
|
|
8563
|
+
return response;
|
|
8564
|
+
});
|
|
8951
8565
|
}
|
|
8952
|
-
|
|
8566
|
+
function executeInBuiltFunctionHandler(params) {
|
|
8953
8567
|
let parameter = {};
|
|
8954
8568
|
if (params.config.funcParametersCode) {
|
|
8955
8569
|
const makeFunc = eval(params.config.funcParametersCode);
|
|
8956
8570
|
parameter = makeFunc(params.store, params.dynamicData, params.userValue, params.parentEventOutput, params.service);
|
|
8571
|
+
params.serviceHolder[params.config.inBuiltFunctionType](parameter, params.service);
|
|
8572
|
+
} else {
|
|
8573
|
+
params.serviceHolder[params.config.inBuiltFunctionType](params.store, params.dynamicData, params.userValue, params.parentEventOutput, params.service);
|
|
8957
8574
|
}
|
|
8958
|
-
params.serviceHolder[params.config.inBuiltFunctionType](parameter);
|
|
8959
8575
|
}
|
|
8960
|
-
|
|
8576
|
+
function executeCustomHandler(params) {
|
|
8961
8577
|
const makeFunc = eval(params.config.eventCode);
|
|
8962
|
-
|
|
8963
|
-
|
|
8578
|
+
if (params.config.isSync !== "Yes") {
|
|
8579
|
+
return makeFunc(params.store, params.dynamicData, params.userValue, params.parentEventOutput, params.service, params.componentName).then((res) => res);
|
|
8580
|
+
} else {
|
|
8581
|
+
const response = makeFunc(params.store, params.dynamicData, params.userValue, params.parentEventOutput, params.service, params.componentName);
|
|
8582
|
+
return response;
|
|
8583
|
+
}
|
|
8964
8584
|
}
|
|
8965
|
-
|
|
8585
|
+
function mergeFormdata(handlerResponse, componentName, eventConfig, store2, service2) {
|
|
8966
8586
|
if (eventConfig.type === "Select" && !(_.isEmpty(handlerResponse == null ? void 0 : handlerResponse.data) && (handlerResponse == null ? void 0 : handlerResponse.data))) {
|
|
8967
8587
|
store2.setSchema((pre) => {
|
|
8968
8588
|
var _a;
|
|
@@ -9003,14 +8623,14 @@ async function mergeFormdata(handlerResponse, componentName, eventConfig, store2
|
|
|
9003
8623
|
} else {
|
|
9004
8624
|
if (handlerResponse) {
|
|
9005
8625
|
store2.setFormdata((pre) => {
|
|
9006
|
-
|
|
8626
|
+
var _a;
|
|
8627
|
+
return { ...pre, [componentName]: eventConfig.lazyLoading ? (_a = handlerResponse == null ? void 0 : handlerResponse.data) == null ? void 0 : _a.data : handlerResponse.data };
|
|
9007
8628
|
});
|
|
9008
|
-
await asyncOperation();
|
|
9009
8629
|
}
|
|
9010
8630
|
}
|
|
9011
8631
|
}
|
|
9012
8632
|
const buildBodyFormat = (body2, formData, userValue2) => {
|
|
9013
|
-
|
|
8633
|
+
let finalBody = { ...userValue2 == null ? void 0 : userValue2.payload };
|
|
9014
8634
|
body2.map((elem) => {
|
|
9015
8635
|
var _a, _b;
|
|
9016
8636
|
if (typeof (elem == null ? void 0 : elem.value) !== "string") {
|
|
@@ -9022,6 +8642,10 @@ const buildBodyFormat = (body2, formData, userValue2) => {
|
|
|
9022
8642
|
} else if ((_b = elem == null ? void 0 : elem.value) == null ? void 0 : _b.startsWith("$")) {
|
|
9023
8643
|
const finalpath = elem.value.substring(1);
|
|
9024
8644
|
finalBody[elem.key] = _.get(formData, finalpath);
|
|
8645
|
+
} else if ((elem == null ? void 0 : elem.value) === "*" && (elem == null ? void 0 : elem.key) === "*") {
|
|
8646
|
+
finalBody = { ...finalBody, ...formData };
|
|
8647
|
+
} else if ((elem == null ? void 0 : elem.value) === "*") {
|
|
8648
|
+
finalBody[elem.key] = formData;
|
|
9025
8649
|
} else {
|
|
9026
8650
|
finalBody[elem.key] = elem.value;
|
|
9027
8651
|
}
|
|
@@ -9038,17 +8662,26 @@ const buildHeadersFormat = (headers2) => {
|
|
|
9038
8662
|
});
|
|
9039
8663
|
return headerObj;
|
|
9040
8664
|
};
|
|
9041
|
-
|
|
9042
|
-
var _a, _b;
|
|
8665
|
+
function shouldEventExecute(params2) {
|
|
8666
|
+
var _a, _b, _c;
|
|
9043
8667
|
const startEvent = (_b = (_a = params2.config) == null ? void 0 : _a.events) == null ? void 0 : _b.filter((e) => e.eventType === "onStart");
|
|
9044
8668
|
if ((startEvent == null ? void 0 : startEvent.length) > 0) {
|
|
9045
|
-
|
|
9046
|
-
|
|
8669
|
+
if (((_c = startEvent[0]) == null ? void 0 : _c.isSync) !== "Yes") {
|
|
8670
|
+
return executeEventsHandler({ ...params2, config: startEvent[0] }).then((response) => {
|
|
8671
|
+
return response;
|
|
8672
|
+
});
|
|
8673
|
+
} else {
|
|
8674
|
+
return executeEventsHandler({ ...params2, config: startEvent[0] });
|
|
8675
|
+
}
|
|
9047
8676
|
} else {
|
|
9048
|
-
|
|
8677
|
+
if (params2.config.isSync !== "Yes") {
|
|
8678
|
+
return Promise.resolve(true);
|
|
8679
|
+
} else {
|
|
8680
|
+
return true;
|
|
8681
|
+
}
|
|
9049
8682
|
}
|
|
9050
8683
|
}
|
|
9051
|
-
|
|
8684
|
+
function buildApiPayload(compConfig, body, headers, store, dynamicData, userValue, service) {
|
|
9052
8685
|
var _a, _b;
|
|
9053
8686
|
if (compConfig == null ? void 0 : compConfig.headers) {
|
|
9054
8687
|
headers = buildHeadersFormat(compConfig.headers);
|
|
@@ -9056,38 +8689,12 @@ async function buildApiPayload(compConfig, body, headers, store, dynamicData, us
|
|
|
9056
8689
|
if (compConfig.body) {
|
|
9057
8690
|
body = { ...buildBodyFormat(compConfig.body, store.newData || ((_b = (_a = store == null ? void 0 : store.ctx) == null ? void 0 : _a.core) == null ? void 0 : _b.data) || store.formData, userValue) };
|
|
9058
8691
|
}
|
|
8692
|
+
const promiseChain = { body, headers };
|
|
9059
8693
|
if (compConfig.apiBody) {
|
|
9060
8694
|
const makeFunc = eval(compConfig.apiBody);
|
|
9061
|
-
|
|
9062
|
-
body = data;
|
|
8695
|
+
return { body: makeFunc(store, dynamicData, userValue, promiseChain.body), headers: promiseChain.headers };
|
|
9063
8696
|
}
|
|
9064
|
-
return
|
|
9065
|
-
}
|
|
9066
|
-
function getRefreshElements(eventConfig, eventGropus) {
|
|
9067
|
-
var _a;
|
|
9068
|
-
let result = [];
|
|
9069
|
-
if (((_a = eventConfig == null ? void 0 : eventConfig.refreshElements) == null ? void 0 : _a.length) > 0) {
|
|
9070
|
-
result = eventConfig.refreshElements.map((e) => {
|
|
9071
|
-
return e.value;
|
|
9072
|
-
});
|
|
9073
|
-
} else {
|
|
9074
|
-
if (eventGropus == null ? void 0 : eventGropus.onLoad) {
|
|
9075
|
-
result = Object.keys(eventGropus == null ? void 0 : eventGropus.onLoad);
|
|
9076
|
-
result.push(result[0]);
|
|
9077
|
-
}
|
|
9078
|
-
}
|
|
9079
|
-
console.log(result);
|
|
9080
|
-
return result;
|
|
9081
|
-
}
|
|
9082
|
-
function asyncOperation() {
|
|
9083
|
-
return new Promise((resolve, reject) => {
|
|
9084
|
-
setTimeout(() => {
|
|
9085
|
-
{
|
|
9086
|
-
resolve("Operation completed successfully!");
|
|
9087
|
-
reject(new Error("Operation failed!"));
|
|
9088
|
-
}
|
|
9089
|
-
}, 50);
|
|
9090
|
-
});
|
|
8697
|
+
return promiseChain;
|
|
9091
8698
|
}
|
|
9092
8699
|
let compType;
|
|
9093
8700
|
let eventGroups = {};
|
|
@@ -9099,6 +8706,7 @@ const notifyUiSchema = {
|
|
|
9099
8706
|
},
|
|
9100
8707
|
layout: 6
|
|
9101
8708
|
};
|
|
8709
|
+
let pageData = false;
|
|
9102
8710
|
const extractEvents = (eventConfig) => {
|
|
9103
8711
|
function extractsConfigEvents(eventConfigObj) {
|
|
9104
8712
|
if (eventConfigObj.events) {
|
|
@@ -9117,9 +8725,15 @@ const extractEvents = (eventConfig) => {
|
|
|
9117
8725
|
return elem.eventType === "Success";
|
|
9118
8726
|
});
|
|
9119
8727
|
if (!!!SuccessEvent && event2.eventType === "onLoad") {
|
|
8728
|
+
if (!!!event2.events) {
|
|
8729
|
+
event2.events = [];
|
|
8730
|
+
}
|
|
9120
8731
|
event2.events.push({ Handler: "mergeFormdata", eventType: "Success", type: compType, lazyLoading: eventConfig.lazyLoading === "YES" ? true : false });
|
|
9121
8732
|
}
|
|
9122
8733
|
if (!!!SuccessEvent && (event2.eventType === "onBack" || event2.eventType === "onNext" || event2.eventType === "onReset")) {
|
|
8734
|
+
if (!!!event2.events) {
|
|
8735
|
+
event2.events = [];
|
|
8736
|
+
}
|
|
9123
8737
|
event2.events.push({ Handler: `${event2.eventType}Handler`, eventType: "Success", type: compType, lazyLoading: eventConfig.lazyLoading === "YES" ? true : false });
|
|
9124
8738
|
}
|
|
9125
8739
|
eventGroups[event2.eventType][eventConfigObj.name].push({ ...event2, type: compType });
|
|
@@ -9134,7 +8748,11 @@ const extractEvents = (eventConfig) => {
|
|
|
9134
8748
|
};
|
|
9135
8749
|
var service = (funcParams) => {
|
|
9136
8750
|
eventGroups = {};
|
|
9137
|
-
|
|
8751
|
+
if (pageData) {
|
|
8752
|
+
if (!lodash.exports.isEmpty(pageData) && typeof pageData === "object") {
|
|
8753
|
+
eventGroups = extractEvents(pageData == null ? void 0 : pageData.config);
|
|
8754
|
+
}
|
|
8755
|
+
}
|
|
9138
8756
|
let executeEventsParameters = {
|
|
9139
8757
|
config: {},
|
|
9140
8758
|
componentName: "",
|
|
@@ -9142,12 +8760,30 @@ var service = (funcParams) => {
|
|
|
9142
8760
|
dynamicData: funcParams.dynamicData,
|
|
9143
8761
|
userValue: funcParams.userValue,
|
|
9144
8762
|
service: funcParams.service,
|
|
9145
|
-
serviceHolder: { downloadFile: downloadFile$1, download: doDownload },
|
|
9146
|
-
eventGroups
|
|
8763
|
+
serviceHolder: { downloadFile: downloadFile$1, download: doDownload, ...funcParams.functionsProvider },
|
|
8764
|
+
eventGroups,
|
|
8765
|
+
functionsProvider: funcParams.functionsProvider
|
|
9147
8766
|
};
|
|
9148
8767
|
return {
|
|
9149
8768
|
setPage: async function() {
|
|
8769
|
+
var _a;
|
|
9150
8770
|
funcParams.store.setFormdata({});
|
|
8771
|
+
const pageBasicDetailString = localStorage.getItem("pagemasterMetaData");
|
|
8772
|
+
if (pageBasicDetailString) {
|
|
8773
|
+
pageData = JSON.parse(pageBasicDetailString);
|
|
8774
|
+
} else {
|
|
8775
|
+
pageData = await funcParams.pageDataProvider();
|
|
8776
|
+
localStorage.setItem("pagemasterMetaData", JSON.stringify({
|
|
8777
|
+
schema: pageData == null ? void 0 : pageData.schema,
|
|
8778
|
+
uiSchema: pageData == null ? void 0 : pageData.uiSchema,
|
|
8779
|
+
config: pageData == null ? void 0 : pageData.config
|
|
8780
|
+
}));
|
|
8781
|
+
}
|
|
8782
|
+
const config = pageData == null ? void 0 : pageData.config;
|
|
8783
|
+
const uiSchema = pageData == null ? void 0 : pageData.uiSchema;
|
|
8784
|
+
const schema2 = (_a = pageData == null ? void 0 : pageData.schema) != null ? _a : { type: "object", properties: {} };
|
|
8785
|
+
eventGroups = {};
|
|
8786
|
+
eventGroups = extractEvents(config);
|
|
9151
8787
|
executeEventsParameters = {
|
|
9152
8788
|
config: {},
|
|
9153
8789
|
componentName: "",
|
|
@@ -9155,19 +8791,10 @@ var service = (funcParams) => {
|
|
|
9155
8791
|
dynamicData: funcParams.dynamicData,
|
|
9156
8792
|
userValue: funcParams.userValue,
|
|
9157
8793
|
service: funcParams.service,
|
|
8794
|
+
functionsProvider: funcParams.functionsProvider,
|
|
9158
8795
|
serviceHolder: this,
|
|
9159
8796
|
eventGroups
|
|
9160
8797
|
};
|
|
9161
|
-
funcParams.store.setSchema(
|
|
9162
|
-
(pre) => {
|
|
9163
|
-
return {
|
|
9164
|
-
...funcParams.schema,
|
|
9165
|
-
properties: { ...funcParams.schema.properties, ...pre.properties }
|
|
9166
|
-
};
|
|
9167
|
-
}
|
|
9168
|
-
);
|
|
9169
|
-
funcParams.uiSchema.elements.push(notifyUiSchema);
|
|
9170
|
-
funcParams.store.setUiSchema(funcParams.uiSchema);
|
|
9171
8798
|
await executeRefreshHandler({
|
|
9172
8799
|
config: {},
|
|
9173
8800
|
componentName: "",
|
|
@@ -9178,18 +8805,48 @@ var service = (funcParams) => {
|
|
|
9178
8805
|
serviceHolder: this,
|
|
9179
8806
|
eventGroups
|
|
9180
8807
|
});
|
|
8808
|
+
funcParams.store.setSchema(
|
|
8809
|
+
(pre) => {
|
|
8810
|
+
return {
|
|
8811
|
+
...schema2,
|
|
8812
|
+
properties: { ...schema2.properties, ...pre.properties }
|
|
8813
|
+
};
|
|
8814
|
+
}
|
|
8815
|
+
);
|
|
8816
|
+
uiSchema.elements.push(notifyUiSchema);
|
|
8817
|
+
funcParams.store.setUiSchema(uiSchema);
|
|
9181
8818
|
},
|
|
9182
|
-
|
|
9183
|
-
var _a, _b;
|
|
9184
|
-
(
|
|
9185
|
-
|
|
9186
|
-
|
|
8819
|
+
onCellRenderer: (cellParams) => {
|
|
8820
|
+
var _a, _b, _c;
|
|
8821
|
+
if (eventGroups.onCellRenderer) {
|
|
8822
|
+
let finalResponse = {};
|
|
8823
|
+
const path = ((_a = funcParams.dynamicData) == null ? void 0 : _a.tableButtonPath) || ((_c = (_b = funcParams == null ? void 0 : funcParams.dynamicData) == null ? void 0 : _b.path) == null ? void 0 : _c.split(".")[0]);
|
|
8824
|
+
for (const eventConfig of eventGroups == null ? void 0 : eventGroups.onCellRenderer[path]) {
|
|
8825
|
+
executeEventsParameters.store.functionParameters = cellParams;
|
|
8826
|
+
finalResponse = executeEvents({
|
|
8827
|
+
...executeEventsParameters,
|
|
8828
|
+
config: eventConfig,
|
|
8829
|
+
componentName: path
|
|
8830
|
+
});
|
|
8831
|
+
}
|
|
8832
|
+
return finalResponse;
|
|
8833
|
+
}
|
|
8834
|
+
return {};
|
|
8835
|
+
},
|
|
8836
|
+
onClick: function() {
|
|
8837
|
+
this.callHandler("onClick");
|
|
9187
8838
|
},
|
|
9188
|
-
|
|
9189
|
-
|
|
8839
|
+
onMount: function() {
|
|
8840
|
+
this.callHandler("onMount");
|
|
9190
8841
|
},
|
|
9191
|
-
|
|
9192
|
-
|
|
8842
|
+
onFileDownload: function() {
|
|
8843
|
+
this.callHandler("onDownload");
|
|
8844
|
+
},
|
|
8845
|
+
onFileUpload: function() {
|
|
8846
|
+
this.callHandler("onUpload");
|
|
8847
|
+
},
|
|
8848
|
+
backHandler: function() {
|
|
8849
|
+
funcParams.store.navigate(-1);
|
|
9193
8850
|
},
|
|
9194
8851
|
onPaginationChange: async function(paginationValues) {
|
|
9195
8852
|
var _a;
|
|
@@ -9200,8 +8857,8 @@ var service = (funcParams) => {
|
|
|
9200
8857
|
{ key: "filters", value: paginationValues.columnFilters || [] },
|
|
9201
8858
|
{ key: "globalFilter", value: (_a = paginationValues.globalFilter) != null ? _a : "" }
|
|
9202
8859
|
];
|
|
9203
|
-
const
|
|
9204
|
-
return
|
|
8860
|
+
const response = await this.updateConfigApiBody(paginationValues, apiBody);
|
|
8861
|
+
return response == null ? void 0 : response.data;
|
|
9205
8862
|
},
|
|
9206
8863
|
getSelectOptions: async function(param) {
|
|
9207
8864
|
if (param.serachValue !== "" && param.serachValue !== void 0) {
|
|
@@ -9209,17 +8866,16 @@ var service = (funcParams) => {
|
|
|
9209
8866
|
{ key: "searchValue", value: param.serachValue },
|
|
9210
8867
|
{ key: "currentValue", value: param.currentValue }
|
|
9211
8868
|
];
|
|
9212
|
-
|
|
8869
|
+
const response = await this.updateConfigApiBody(param, apiBody);
|
|
8870
|
+
return response == null ? void 0 : response.data;
|
|
9213
8871
|
}
|
|
9214
8872
|
},
|
|
9215
8873
|
onChange: async function() {
|
|
9216
|
-
var _a, _b;
|
|
9217
8874
|
if (eventGroups.onChange) {
|
|
9218
|
-
(_a = funcParams.dynamicData) == null ? void 0 : _a.setLoading(true);
|
|
9219
8875
|
const ChangeEventsKeysArray = Object.keys(eventGroups.onChange);
|
|
9220
8876
|
Promise.all(ChangeEventsKeysArray.map(async (componentName) => {
|
|
9221
|
-
var
|
|
9222
|
-
if (((
|
|
8877
|
+
var _a, _b;
|
|
8878
|
+
if (((_a = funcParams.store) == null ? void 0 : _a.formData[componentName]) !== funcParams.store.newData[componentName] && ((_b = funcParams.store) == null ? void 0 : _b.newData[componentName]) !== void 0) {
|
|
9223
8879
|
for (const eventConfig of eventGroups.onChange[componentName]) {
|
|
9224
8880
|
await executeEvents({
|
|
9225
8881
|
...executeEventsParameters,
|
|
@@ -9229,7 +8885,6 @@ var service = (funcParams) => {
|
|
|
9229
8885
|
}
|
|
9230
8886
|
}
|
|
9231
8887
|
}));
|
|
9232
|
-
(_b = funcParams.dynamicData) == null ? void 0 : _b.setLoading(false);
|
|
9233
8888
|
}
|
|
9234
8889
|
},
|
|
9235
8890
|
updateConfigApiBody: async function(paramValue, apiBody) {
|
|
@@ -9286,7 +8941,7 @@ var service = (funcParams) => {
|
|
|
9286
8941
|
if (((_b = eventGroups == null ? void 0 : eventGroups[eventType]) == null ? void 0 : _b[path]) !== void 0) {
|
|
9287
8942
|
for (const eventConfig of (_c = eventGroups == null ? void 0 : eventGroups[eventType]) == null ? void 0 : _c[path]) {
|
|
9288
8943
|
executeEventsParameters.store.functionParameters = functionParameters;
|
|
9289
|
-
|
|
8944
|
+
executeEvents({
|
|
9290
8945
|
...executeEventsParameters,
|
|
9291
8946
|
config: eventConfig,
|
|
9292
8947
|
componentName: path
|
|
@@ -9295,7 +8950,8 @@ var service = (funcParams) => {
|
|
|
9295
8950
|
}
|
|
9296
8951
|
},
|
|
9297
8952
|
downloadFile: downloadFile$1,
|
|
9298
|
-
download: doDownload
|
|
8953
|
+
download: doDownload,
|
|
8954
|
+
...funcParams.functionsProvider
|
|
9299
8955
|
};
|
|
9300
8956
|
};
|
|
9301
8957
|
var leaderBoard = {
|
|
@@ -9644,6 +9300,7 @@ const buildLeaderBoard = (config) => {
|
|
|
9644
9300
|
});
|
|
9645
9301
|
LeaderBoard.elements[9].elements = modifyColumns;
|
|
9646
9302
|
}
|
|
9303
|
+
LeaderBoard.config.main.label = config.label;
|
|
9647
9304
|
if (config.name) {
|
|
9648
9305
|
LeaderBoard.elements[0].scope = `#/properties/${config.name}/properties/firstImage`;
|
|
9649
9306
|
LeaderBoard.elements[3].scope = `#/properties/${config.name}/properties/firstName`;
|
|
@@ -9663,7 +9320,7 @@ const buildLeaderBoard = (config) => {
|
|
|
9663
9320
|
LeaderBoard.elements[2].config.main.url = config.thirdImage;
|
|
9664
9321
|
}
|
|
9665
9322
|
if (config.layout) {
|
|
9666
|
-
LeaderBoard.config.layout = config.layout;
|
|
9323
|
+
LeaderBoard.config.layout = createLayoutFormat(config.layout);
|
|
9667
9324
|
}
|
|
9668
9325
|
return LeaderBoard;
|
|
9669
9326
|
};
|
|
@@ -9843,7 +9500,7 @@ const LineGraph = {
|
|
|
9843
9500
|
leftLabel: "Incentive",
|
|
9844
9501
|
gridHidden: true,
|
|
9845
9502
|
numHidden: false,
|
|
9846
|
-
tooltipDataKey: ["
|
|
9503
|
+
tooltipDataKey: ["First", "Second", "Third"],
|
|
9847
9504
|
axisLeft: true,
|
|
9848
9505
|
axisBottom: true,
|
|
9849
9506
|
hideLeftAxisLine: false,
|
|
@@ -10096,6 +9753,13 @@ var Tabsection = {
|
|
|
10096
9753
|
};
|
|
10097
9754
|
const buildTabSection = (config, componentScope) => {
|
|
10098
9755
|
const tab = _.cloneDeep(Tabsection);
|
|
9756
|
+
tab.scope = componentScope;
|
|
9757
|
+
if (config.lazyLoad) {
|
|
9758
|
+
tab.config.main.lazyLoad = config.lazyLoad === "YES" ? true : false;
|
|
9759
|
+
}
|
|
9760
|
+
if (config.orientation) {
|
|
9761
|
+
tab.config.main.orientation = config.orientation === "YES" ? "vertical" : "horizontal";
|
|
9762
|
+
}
|
|
10099
9763
|
if (config.sectionLabels) {
|
|
10100
9764
|
tab.config.main.tabLabels = config.sectionLabels.map((e) => e.label);
|
|
10101
9765
|
}
|
|
@@ -10106,7 +9770,7 @@ var WrapperSection = {
|
|
|
10106
9770
|
type: "WrapperLayout",
|
|
10107
9771
|
config: {
|
|
10108
9772
|
main: {
|
|
10109
|
-
|
|
9773
|
+
rowSpacing: 3,
|
|
10110
9774
|
divider: true
|
|
10111
9775
|
},
|
|
10112
9776
|
defaultStyle: true
|
|
@@ -10115,8 +9779,13 @@ var WrapperSection = {
|
|
|
10115
9779
|
};
|
|
10116
9780
|
const buildWrapperSection = (config, componentScope) => {
|
|
10117
9781
|
const wrapper = _.cloneDeep(WrapperSection);
|
|
9782
|
+
wrapper.scope = componentScope;
|
|
10118
9783
|
wrapper.config.main.label = config.label;
|
|
10119
9784
|
wrapper.config.main.divider = config.divider === "YES" ? true : false;
|
|
9785
|
+
wrapper.config.main.isAccordion = config.isAccordion === "YES" ? true : false;
|
|
9786
|
+
if (config.defaultStyle) {
|
|
9787
|
+
wrapper.config.defaultStyle = config.defaultStyle === "YES" ? true : false;
|
|
9788
|
+
}
|
|
10120
9789
|
if (config.style) {
|
|
10121
9790
|
wrapper.config.style = JSON.parse(config.style);
|
|
10122
9791
|
}
|
|
@@ -10271,6 +9940,7 @@ var Table = {
|
|
|
10271
9940
|
elements: [],
|
|
10272
9941
|
config: {
|
|
10273
9942
|
main: {
|
|
9943
|
+
onMount: "onMount",
|
|
10274
9944
|
allRowData: [],
|
|
10275
9945
|
downloadAllData: false,
|
|
10276
9946
|
columns: {
|
|
@@ -10289,6 +9959,7 @@ var lazyLoadingTable = {
|
|
|
10289
9959
|
elements: [],
|
|
10290
9960
|
config: {
|
|
10291
9961
|
main: {
|
|
9962
|
+
onMount: "onMount",
|
|
10292
9963
|
columns: {}
|
|
10293
9964
|
}
|
|
10294
9965
|
}
|
|
@@ -10508,7 +10179,7 @@ var Card = {
|
|
|
10508
10179
|
scope: "#/properties/programType",
|
|
10509
10180
|
config: {
|
|
10510
10181
|
main: {
|
|
10511
|
-
url: "
|
|
10182
|
+
url: "https://www.svgrepo.com/show/500606/loading.svg"
|
|
10512
10183
|
},
|
|
10513
10184
|
style: {
|
|
10514
10185
|
color: "#f5effc",
|
|
@@ -10597,6 +10268,25 @@ var DateInputField = {
|
|
|
10597
10268
|
}
|
|
10598
10269
|
}
|
|
10599
10270
|
};
|
|
10271
|
+
const DateTime = {
|
|
10272
|
+
type: "Control",
|
|
10273
|
+
scope: "#/properties/date",
|
|
10274
|
+
options: {
|
|
10275
|
+
widget: "DateTimeInputField"
|
|
10276
|
+
},
|
|
10277
|
+
config: {
|
|
10278
|
+
layout: {
|
|
10279
|
+
xs: 11,
|
|
10280
|
+
sm: 11,
|
|
10281
|
+
md: 5.5,
|
|
10282
|
+
lg: 5.5
|
|
10283
|
+
},
|
|
10284
|
+
main: {
|
|
10285
|
+
label: "DateTime",
|
|
10286
|
+
type: "date"
|
|
10287
|
+
}
|
|
10288
|
+
}
|
|
10289
|
+
};
|
|
10600
10290
|
const buildDate = (config, componentScope) => {
|
|
10601
10291
|
const dateInputField = _.cloneDeep(DateInputField);
|
|
10602
10292
|
dateInputField.config.main.label = config.label;
|
|
@@ -10607,6 +10297,16 @@ const buildDate = (config, componentScope) => {
|
|
|
10607
10297
|
}
|
|
10608
10298
|
return dateInputField;
|
|
10609
10299
|
};
|
|
10300
|
+
const buildDateTime = (config, componentScope) => {
|
|
10301
|
+
const dateTimeInputField = _.cloneDeep(DateTime);
|
|
10302
|
+
dateTimeInputField.config.main.label = config.label;
|
|
10303
|
+
dateTimeInputField.config.main.errorMessage = `${config.name} is empty or invalid`;
|
|
10304
|
+
dateTimeInputField.scope = componentScope;
|
|
10305
|
+
if (config.layout) {
|
|
10306
|
+
dateTimeInputField.config.layout = createLayoutFormat(config.layout);
|
|
10307
|
+
}
|
|
10308
|
+
return dateTimeInputField;
|
|
10309
|
+
};
|
|
10610
10310
|
var RankCard = {
|
|
10611
10311
|
type: "Control",
|
|
10612
10312
|
scope: "#/properties/path",
|
|
@@ -10737,7 +10437,10 @@ const buildMultiSelect = (config, componentScope) => {
|
|
|
10737
10437
|
const buildBasicUiSchema = (config) => {
|
|
10738
10438
|
return {
|
|
10739
10439
|
"type": "HorizontalLayout",
|
|
10740
|
-
pageName:
|
|
10440
|
+
pageName: config.name,
|
|
10441
|
+
name: config.name,
|
|
10442
|
+
accessorKey: config.name,
|
|
10443
|
+
header: config.label || config.name,
|
|
10741
10444
|
"elements": []
|
|
10742
10445
|
};
|
|
10743
10446
|
};
|
|
@@ -10842,6 +10545,12 @@ const buildLineGraph = (config, componentScope) => {
|
|
|
10842
10545
|
if (config.bottomLabel) {
|
|
10843
10546
|
lineGraph.config.main.bottomLabel = config.bottomLabel;
|
|
10844
10547
|
}
|
|
10548
|
+
if (config.yAxisValue) {
|
|
10549
|
+
lineGraph.config.main.yAxisValue = config.yAxisValue;
|
|
10550
|
+
}
|
|
10551
|
+
if (config.xAxisValue) {
|
|
10552
|
+
lineGraph.config.main.xAxisValue = config.xAxisValue;
|
|
10553
|
+
}
|
|
10845
10554
|
if (config.leftLabel) {
|
|
10846
10555
|
lineGraph.config.main.leftLabel = config.leftLabel;
|
|
10847
10556
|
}
|
|
@@ -10887,18 +10596,6 @@ const buildRadio = (config, componentScope) => {
|
|
|
10887
10596
|
}
|
|
10888
10597
|
return Radio;
|
|
10889
10598
|
};
|
|
10890
|
-
var emptyBox = {
|
|
10891
|
-
type: "Control",
|
|
10892
|
-
scope: "#/properties/emptyBox",
|
|
10893
|
-
options: {
|
|
10894
|
-
widget: "EmptyBox"
|
|
10895
|
-
},
|
|
10896
|
-
config: {
|
|
10897
|
-
layout: { xs: 12, sm: 12, md: 5.5, lg: 5.5 },
|
|
10898
|
-
main: {},
|
|
10899
|
-
style: {}
|
|
10900
|
-
}
|
|
10901
|
-
};
|
|
10902
10599
|
const buildEmptyBox = (config, componentScope) => {
|
|
10903
10600
|
const EmptyBox2 = _.cloneDeep(emptyBox);
|
|
10904
10601
|
if (config.layout) {
|
|
@@ -11130,6 +10827,98 @@ const buildDataGrid = (config, componentScope) => {
|
|
|
11130
10827
|
}
|
|
11131
10828
|
return DataGrid;
|
|
11132
10829
|
};
|
|
10830
|
+
const InputSlider = {
|
|
10831
|
+
type: "Control",
|
|
10832
|
+
scope: "#/properties/inputSlider",
|
|
10833
|
+
options: {
|
|
10834
|
+
widget: "InputSlider"
|
|
10835
|
+
},
|
|
10836
|
+
config: {
|
|
10837
|
+
layout: 12,
|
|
10838
|
+
main: {
|
|
10839
|
+
limitToMax: false,
|
|
10840
|
+
max: 1e4,
|
|
10841
|
+
step: 1e3,
|
|
10842
|
+
min: 0,
|
|
10843
|
+
label: "Slider"
|
|
10844
|
+
}
|
|
10845
|
+
}
|
|
10846
|
+
};
|
|
10847
|
+
const buildInputSlider = (config, componentScope) => {
|
|
10848
|
+
const inputSlider = _.cloneDeep(InputSlider);
|
|
10849
|
+
inputSlider.scope = componentScope;
|
|
10850
|
+
inputSlider.config.main.label = config.label;
|
|
10851
|
+
if (config.layout) {
|
|
10852
|
+
inputSlider.config.layout = createLayoutFormat(config.layout);
|
|
10853
|
+
}
|
|
10854
|
+
if (config.limitToMax) {
|
|
10855
|
+
inputSlider.config.main.limitToMax = config.limitToMax === "YES" ? true : false;
|
|
10856
|
+
}
|
|
10857
|
+
if (config.max) {
|
|
10858
|
+
inputSlider.config.main.max = config.max;
|
|
10859
|
+
}
|
|
10860
|
+
if (config.step) {
|
|
10861
|
+
inputSlider.config.main.step = config.step;
|
|
10862
|
+
}
|
|
10863
|
+
if (config.min) {
|
|
10864
|
+
inputSlider.config.main.min = config.min;
|
|
10865
|
+
}
|
|
10866
|
+
if (config.style) {
|
|
10867
|
+
inputSlider.config.main.defaultStyle = JSON.parse(config.style);
|
|
10868
|
+
}
|
|
10869
|
+
return inputSlider;
|
|
10870
|
+
};
|
|
10871
|
+
const TreeMap = {
|
|
10872
|
+
"type": "Control",
|
|
10873
|
+
"scope": "#/properties/TreeMap2",
|
|
10874
|
+
"config": {
|
|
10875
|
+
"main": {
|
|
10876
|
+
"layout": "cartsian",
|
|
10877
|
+
orientation: "vertical",
|
|
10878
|
+
header: "Territory Hierarchy",
|
|
10879
|
+
"linkType": "step",
|
|
10880
|
+
graphHeight: "500px"
|
|
10881
|
+
},
|
|
10882
|
+
"style": {
|
|
10883
|
+
BoxStyle: {
|
|
10884
|
+
borderRadius: "5px"
|
|
10885
|
+
}
|
|
10886
|
+
}
|
|
10887
|
+
},
|
|
10888
|
+
"options": {
|
|
10889
|
+
"widget": "TreeMap"
|
|
10890
|
+
},
|
|
10891
|
+
elements: []
|
|
10892
|
+
};
|
|
10893
|
+
const buildTreeMap = (config, componentScope) => {
|
|
10894
|
+
const treMap = _.cloneDeep(TreeMap);
|
|
10895
|
+
treMap.scope = componentScope;
|
|
10896
|
+
if (config.label) {
|
|
10897
|
+
treMap.config.main.header = config.label;
|
|
10898
|
+
}
|
|
10899
|
+
if (config.layout) {
|
|
10900
|
+
treMap.config.layout = createLayoutFormat(config.layout);
|
|
10901
|
+
}
|
|
10902
|
+
if (config.orientation) {
|
|
10903
|
+
treMap.config.main.orientation = config.orientation;
|
|
10904
|
+
}
|
|
10905
|
+
if (config.linkType) {
|
|
10906
|
+
treMap.config.main.linkType = config.linkType;
|
|
10907
|
+
}
|
|
10908
|
+
if (config.graphHeight) {
|
|
10909
|
+
treMap.config.main.graphHeight = config.graphHeight;
|
|
10910
|
+
}
|
|
10911
|
+
if (config.graphWidth) {
|
|
10912
|
+
treMap.config.main.graphWidth = config.graphWidth;
|
|
10913
|
+
}
|
|
10914
|
+
if (config.graphZoomHeight) {
|
|
10915
|
+
treMap.config.main.graphZoomHeight = config.graphZoomHeight;
|
|
10916
|
+
}
|
|
10917
|
+
if (config.graphZoomWidth) {
|
|
10918
|
+
treMap.config.main.graphZoomWidth = config.graphZoomWidth;
|
|
10919
|
+
}
|
|
10920
|
+
return treMap;
|
|
10921
|
+
};
|
|
11133
10922
|
let schema = {
|
|
11134
10923
|
type: "object",
|
|
11135
10924
|
properties: {},
|
|
@@ -11248,6 +11037,15 @@ const buildUiSchema = (config) => {
|
|
|
11248
11037
|
let elements = {};
|
|
11249
11038
|
const componentScope = `#/properties/${config.name}`;
|
|
11250
11039
|
switch (config.type) {
|
|
11040
|
+
case "TreeMap":
|
|
11041
|
+
elements = buildTreeMap(config, componentScope);
|
|
11042
|
+
break;
|
|
11043
|
+
case "DateTime":
|
|
11044
|
+
elements = buildDateTime(config, componentScope);
|
|
11045
|
+
break;
|
|
11046
|
+
case "InputSlider":
|
|
11047
|
+
elements = buildInputSlider(config, componentScope);
|
|
11048
|
+
break;
|
|
11251
11049
|
case "DataGrid":
|
|
11252
11050
|
elements = buildDataGrid(config, componentScope);
|
|
11253
11051
|
break;
|
|
@@ -11267,13 +11065,13 @@ const buildUiSchema = (config) => {
|
|
|
11267
11065
|
elements = buildPanField(config, componentScope);
|
|
11268
11066
|
break;
|
|
11269
11067
|
case "TabSection":
|
|
11270
|
-
elements = buildTabSection(config);
|
|
11068
|
+
elements = buildTabSection(config, componentScope);
|
|
11271
11069
|
break;
|
|
11272
11070
|
case "RunnerBoyProgressBar":
|
|
11273
11071
|
elements = RunnerBoyProgressbar(config, componentScope);
|
|
11274
11072
|
break;
|
|
11275
11073
|
case "WrapperSection":
|
|
11276
|
-
elements = buildWrapperSection(config);
|
|
11074
|
+
elements = buildWrapperSection(config, componentScope);
|
|
11277
11075
|
break;
|
|
11278
11076
|
case "Text":
|
|
11279
11077
|
elements = buildTextField(config, componentScope);
|
|
@@ -11358,6 +11156,13 @@ const buildUiSchema = (config) => {
|
|
|
11358
11156
|
case "Timer":
|
|
11359
11157
|
elements = buildTimer(config, componentScope);
|
|
11360
11158
|
break;
|
|
11159
|
+
case "ColumnGroup":
|
|
11160
|
+
elements = {
|
|
11161
|
+
accessorKey: config.name,
|
|
11162
|
+
header: config.label || config.name,
|
|
11163
|
+
elements: []
|
|
11164
|
+
};
|
|
11165
|
+
break;
|
|
11361
11166
|
case "MultipleSelect":
|
|
11362
11167
|
elements = buildMultiSelect(config, componentScope);
|
|
11363
11168
|
break;
|
|
@@ -11375,6 +11180,22 @@ const buildUiSchema = (config) => {
|
|
|
11375
11180
|
if (config == null ? void 0 : config.elements) {
|
|
11376
11181
|
if ((config == null ? void 0 : config.type) === "LeaderBoard") {
|
|
11377
11182
|
return elements;
|
|
11183
|
+
} else if (config.type == "ColumnGroup") {
|
|
11184
|
+
const sizeMap = {};
|
|
11185
|
+
if (config.sizeHolder) {
|
|
11186
|
+
config.sizeHolder.map((e, i) => {
|
|
11187
|
+
sizeMap[e.keyName] = e.value;
|
|
11188
|
+
});
|
|
11189
|
+
}
|
|
11190
|
+
elements.elements = config.elements.map((cellElem, elemInd) => {
|
|
11191
|
+
return {
|
|
11192
|
+
accessorKey: cellElem.name,
|
|
11193
|
+
header: cellElem.label || cellElem.name,
|
|
11194
|
+
size: sizeMap[cellElem.name] || 180,
|
|
11195
|
+
type: cellElem.columnFormat,
|
|
11196
|
+
elements: cellElem.type == "ColumnGroup" ? cellElem.elements.map((childCellElem) => buildUiSchema(childCellElem)) : []
|
|
11197
|
+
};
|
|
11198
|
+
});
|
|
11378
11199
|
} else if (config.type == "Table") {
|
|
11379
11200
|
const sizeMap = {};
|
|
11380
11201
|
if (config.sizeHolder) {
|
|
@@ -11382,20 +11203,24 @@ const buildUiSchema = (config) => {
|
|
|
11382
11203
|
sizeMap[e.keyName] = e.value;
|
|
11383
11204
|
});
|
|
11384
11205
|
}
|
|
11385
|
-
elements.elements = config.elements.map((
|
|
11386
|
-
if (
|
|
11206
|
+
elements.elements = config.elements.map((cellElem, elemInd) => {
|
|
11207
|
+
if (cellElem.type) {
|
|
11208
|
+
return {
|
|
11209
|
+
accessorKey: cellElem.name,
|
|
11210
|
+
header: cellElem.label || cellElem.name,
|
|
11211
|
+
size: sizeMap[cellElem.name] || 180,
|
|
11212
|
+
type: cellElem.columnFormat,
|
|
11213
|
+
widget: cellElem.type != "ColumnGroup" ? buildUiSchema(cellElem) : void 0,
|
|
11214
|
+
elements: cellElem.type == "ColumnGroup" ? cellElem.elements.map((childCellElem) => buildUiSchema(childCellElem)) : []
|
|
11215
|
+
};
|
|
11216
|
+
} else {
|
|
11387
11217
|
return {
|
|
11388
|
-
accessorKey:
|
|
11389
|
-
|
|
11390
|
-
|
|
11391
|
-
|
|
11218
|
+
accessorKey: cellElem.name,
|
|
11219
|
+
type: cellElem.columnFormat,
|
|
11220
|
+
header: cellElem.label || cellElem.name,
|
|
11221
|
+
size: sizeMap[cellElem.name] || 180
|
|
11392
11222
|
};
|
|
11393
11223
|
}
|
|
11394
|
-
return {
|
|
11395
|
-
accessorKey: e.name,
|
|
11396
|
-
header: e.label || e.name,
|
|
11397
|
-
size: sizeMap[e.name] || 180
|
|
11398
|
-
};
|
|
11399
11224
|
});
|
|
11400
11225
|
} else if (config.type == "Array") {
|
|
11401
11226
|
elements.options.detail.elements = config.elements.map((e, elemInd) => {
|