impaktapps-ui-builder 1.0.135 → 1.0.137

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.
@@ -6277,6 +6277,35 @@ const ComponentSchema = {
6277
6277
  { title: "Center Column", const: "action" }
6278
6278
  ]
6279
6279
  },
6280
+ dateFormat: {
6281
+ oneOf: [
6282
+ {
6283
+ title: "YYYY-MM-DDTHH:mm:ss.SSSZ",
6284
+ const: "YYYY-MM-DDTHH:mm:ss.SSSZ"
6285
+ },
6286
+ {
6287
+ title: "YYYY-MM-DDTHH:mm:ssZ",
6288
+ const: "YYYY-MM-DDTHH:mm:ssZ"
6289
+ },
6290
+ {
6291
+ title: "YYYY-MM-DDTHH:mm:ss",
6292
+ const: "YYYY-MM-DDTHH:mm:ss"
6293
+ },
6294
+ { title: "YYYY-MM-DD", const: "YYYY-MM-DD" },
6295
+ { title: "DD-MM-YYYY", const: "DD-MM-YYYY" },
6296
+ { title: "MM/DD/YYYY", const: "MM/DD/YYYY" },
6297
+ {
6298
+ title: "YYYY-MM-DD HH:mm:ss",
6299
+ const: "YYYY-MM-DD HH:mm:ss"
6300
+ },
6301
+ {
6302
+ title: "YYYY-MM-DD HH:mm:ss.SSS",
6303
+ const: "YYYY-MM-DD HH:mm:ss.SSS"
6304
+ },
6305
+ { title: "Milliseconds", const: "x" },
6306
+ { title: "Seconds", const: "X" }
6307
+ ]
6308
+ },
6280
6309
  variant: {
6281
6310
  oneOf: [
6282
6311
  { title: "Outlined", const: "outlined" },
@@ -6528,7 +6557,10 @@ const ComponentSchema = {
6528
6557
  { title: "Line Graph", const: "LineGraph" },
6529
6558
  { title: "Pie Graph", const: "PieGraph" },
6530
6559
  { title: "Horizontal Bar Graph", const: "HorizontalBarGraph" },
6531
- { title: "Stack Horizontal Bar Graph", const: "HorizontalStackBarGraph" }
6560
+ {
6561
+ title: "Stack Horizontal Bar Graph",
6562
+ const: "HorizontalStackBarGraph"
6563
+ }
6532
6564
  ]
6533
6565
  },
6534
6566
  iconName: {
@@ -6552,35 +6584,35 @@ const ComponentSchema = {
6552
6584
  { title: "Download Icon", const: "DownloadIcon" },
6553
6585
  { title: "Download All Icon", const: "DownloadAllIcon" },
6554
6586
  { title: "Exception Icon", const: "ExceptionIcon" },
6555
- { "title": "Alarm Icon", "const": "AlarmIcon" },
6556
- { "title": "Click Icon", "const": "ClickIcon" },
6557
- { "title": "Content Copy Icon", "const": "ContentCopyIcon" },
6558
- { "title": "File Copy Icon", "const": "FileCopyIcon" },
6559
- { "title": "Pause Icon", "const": "PauseIcon" },
6560
- { "title": "Play Icon", "const": "PlayIcon" },
6561
- { "title": "Close Icon", "const": "CloseIcon" },
6562
- { "title": "Replay Icon", "const": "ReplayIcon" },
6563
- { "title": "Delete Icon", "const": "DeleteIcon" },
6564
- { "title": "Drafts Icon", "const": "DraftsIcon" },
6565
- { "title": "Perm Phone Msg Icon", "const": "PermPhoneMsgIcon" },
6566
- { "title": "Paste Icon", "const": "PasteIcon" },
6567
- { "title": "Prev Icon", "const": "PrevIcon" },
6568
- { "title": "Verified Icon", "const": "VerifiedIcon" },
6569
- { "title": "Table Add Icon", "const": "TableAddIcon" },
6570
- { "title": "Table Download Icon", "const": "TableDownloadIcon" },
6571
- { "title": "Audit Trail Icon", "const": "AuditTrailIcon" },
6572
- { "title": "View Component", "const": "View" },
6573
- { "title": "Table Edit Icon", "const": "TableEditIcon" },
6574
- { "title": "Maximize Icon", "const": "Maximize" },
6575
- { "title": "Minimize Icon", "const": "Minimize" },
6576
- { "title": "Subtract Icon", "const": "Subtract" },
6577
- { "title": "Bin Icon", "const": "Bin" },
6578
- { "title": "Export Icon", "const": "Export" },
6579
- { "title": "Table Paste Icon", "const": "TablePaste" },
6580
- { "title": "Clone Icon", "const": "CloneIcon" },
6581
- { "title": "Detail Icon", "const": "DetailIcon" },
6582
- { "title": "Report View Icon", "const": "ReportViewIcon" },
6583
- { "title": "Payout", "const": "Payout" }
6587
+ { title: "Alarm Icon", const: "AlarmIcon" },
6588
+ { title: "Click Icon", const: "ClickIcon" },
6589
+ { title: "Content Copy Icon", const: "ContentCopyIcon" },
6590
+ { title: "File Copy Icon", const: "FileCopyIcon" },
6591
+ { title: "Pause Icon", const: "PauseIcon" },
6592
+ { title: "Play Icon", const: "PlayIcon" },
6593
+ { title: "Close Icon", const: "CloseIcon" },
6594
+ { title: "Replay Icon", const: "ReplayIcon" },
6595
+ { title: "Delete Icon", const: "DeleteIcon" },
6596
+ { title: "Drafts Icon", const: "DraftsIcon" },
6597
+ { title: "Perm Phone Msg Icon", const: "PermPhoneMsgIcon" },
6598
+ { title: "Paste Icon", const: "PasteIcon" },
6599
+ { title: "Prev Icon", const: "PrevIcon" },
6600
+ { title: "Verified Icon", const: "VerifiedIcon" },
6601
+ { title: "Table Add Icon", const: "TableAddIcon" },
6602
+ { title: "Table Download Icon", const: "TableDownloadIcon" },
6603
+ { title: "Audit Trail Icon", const: "AuditTrailIcon" },
6604
+ { title: "View Component", const: "View" },
6605
+ { title: "Table Edit Icon", const: "TableEditIcon" },
6606
+ { title: "Maximize Icon", const: "Maximize" },
6607
+ { title: "Minimize Icon", const: "Minimize" },
6608
+ { title: "Subtract Icon", const: "Subtract" },
6609
+ { title: "Bin Icon", const: "Bin" },
6610
+ { title: "Export Icon", const: "Export" },
6611
+ { title: "Table Paste Icon", const: "TablePaste" },
6612
+ { title: "Clone Icon", const: "CloneIcon" },
6613
+ { title: "Detail Icon", const: "DetailIcon" },
6614
+ { title: "Report View Icon", const: "ReportViewIcon" },
6615
+ { title: "Payout", const: "Payout" }
6584
6616
  ]
6585
6617
  },
6586
6618
  color: {
@@ -6698,7 +6730,67 @@ const componentBasicUiSchema = (theme) => {
6698
6730
  },
6699
6731
  {
6700
6732
  type: "Control",
6701
- scope: "#/properties/proc",
6733
+ scope: "#/properties/proc5",
6734
+ config: {
6735
+ layout: { xs: 6, sm: 6, md: 0, lg: 3 }
6736
+ },
6737
+ options: {
6738
+ widget: "EmptyBox"
6739
+ }
6740
+ },
6741
+ {
6742
+ type: "Control",
6743
+ scope: "#/properties/proc6",
6744
+ config: {
6745
+ layout: { xs: 6, sm: 6, md: 0, lg: 3 }
6746
+ },
6747
+ options: {
6748
+ widget: "EmptyBox"
6749
+ }
6750
+ },
6751
+ {
6752
+ type: "Control",
6753
+ scope: "#/properties/proc7",
6754
+ config: {
6755
+ layout: { xs: 6, sm: 6, md: 0, lg: 3 }
6756
+ },
6757
+ options: {
6758
+ widget: "EmptyBox"
6759
+ }
6760
+ },
6761
+ {
6762
+ type: "Control",
6763
+ scope: "#/properties/proc8",
6764
+ config: {
6765
+ layout: { xs: 6, sm: 6, md: 0, lg: 3 }
6766
+ },
6767
+ options: {
6768
+ widget: "EmptyBox"
6769
+ }
6770
+ },
6771
+ {
6772
+ type: "Control",
6773
+ scope: "#/properties/proc9",
6774
+ config: {
6775
+ layout: { xs: 6, sm: 6, md: 0, lg: 3 }
6776
+ },
6777
+ options: {
6778
+ widget: "EmptyBox"
6779
+ }
6780
+ },
6781
+ {
6782
+ type: "Control",
6783
+ scope: "#/properties/proc10",
6784
+ config: {
6785
+ layout: { xs: 6, sm: 6, md: 0, lg: 3 }
6786
+ },
6787
+ options: {
6788
+ widget: "EmptyBox"
6789
+ }
6790
+ },
6791
+ {
6792
+ type: "Control",
6793
+ scope: "#/properties/proc11",
6702
6794
  config: {
6703
6795
  layout: { xs: 6, sm: 6, md: 0, lg: 3 }
6704
6796
  },
@@ -7218,6 +7310,76 @@ const CoreSection = {
7218
7310
  }
7219
7311
  }
7220
7312
  },
7313
+ {
7314
+ type: "Control",
7315
+ scope: "#/properties/proc5",
7316
+ config: {
7317
+ layout: { xs: 6, sm: 6, md: 0, lg: 3 }
7318
+ },
7319
+ options: {
7320
+ widget: "EmptyBox"
7321
+ }
7322
+ },
7323
+ {
7324
+ type: "Control",
7325
+ scope: "#/properties/proc6",
7326
+ config: {
7327
+ layout: { xs: 6, sm: 6, md: 0, lg: 3 }
7328
+ },
7329
+ options: {
7330
+ widget: "EmptyBox"
7331
+ }
7332
+ },
7333
+ {
7334
+ type: "Control",
7335
+ scope: "#/properties/proc7",
7336
+ config: {
7337
+ layout: { xs: 6, sm: 6, md: 0, lg: 3 }
7338
+ },
7339
+ options: {
7340
+ widget: "EmptyBox"
7341
+ }
7342
+ },
7343
+ {
7344
+ type: "Control",
7345
+ scope: "#/properties/proc8",
7346
+ config: {
7347
+ layout: { xs: 6, sm: 6, md: 0, lg: 3 }
7348
+ },
7349
+ options: {
7350
+ widget: "EmptyBox"
7351
+ }
7352
+ },
7353
+ {
7354
+ type: "Control",
7355
+ scope: "#/properties/proc9",
7356
+ config: {
7357
+ layout: { xs: 6, sm: 6, md: 0, lg: 3 }
7358
+ },
7359
+ options: {
7360
+ widget: "EmptyBox"
7361
+ }
7362
+ },
7363
+ {
7364
+ type: "Control",
7365
+ scope: "#/properties/proc10",
7366
+ config: {
7367
+ layout: { xs: 6, sm: 6, md: 0, lg: 3 }
7368
+ },
7369
+ options: {
7370
+ widget: "EmptyBox"
7371
+ }
7372
+ },
7373
+ {
7374
+ type: "Control",
7375
+ scope: "#/properties/proc11",
7376
+ config: {
7377
+ layout: { xs: 6, sm: 6, md: 0, lg: 3 }
7378
+ },
7379
+ options: {
7380
+ widget: "EmptyBox"
7381
+ }
7382
+ },
7221
7383
  {
7222
7384
  type: "Control",
7223
7385
  scope: "#/properties/proc",
@@ -8310,7 +8472,7 @@ const createLayoutFormat = (layout, type) => {
8310
8472
  }
8311
8473
  let data = {};
8312
8474
  layout.map((e) => {
8313
- data[e.key || "xs"] = +e.value || 5.5;
8475
+ data[e.key || "xs"] = +e.value || 0;
8314
8476
  });
8315
8477
  return data;
8316
8478
  };
@@ -8561,6 +8723,29 @@ function refreshPage(type, store2) {
8561
8723
  }
8562
8724
  }
8563
8725
  };
8726
+ UiSchema.elements[0].elements[0].elements[10] = {
8727
+ type: "Control",
8728
+ scope: "#/properties/dateFormat",
8729
+ options: {
8730
+ widget: "SelectInputField"
8731
+ },
8732
+ config: {
8733
+ layout: { xs: 6, sm: 6, md: 4, lg: 3 },
8734
+ main: {
8735
+ label: "Date Time Format"
8736
+ }
8737
+ }
8738
+ };
8739
+ UiSchema.elements[0].elements[0].elements[11] = {
8740
+ type: "Control",
8741
+ scope: "#/properties/emptyBox",
8742
+ options: {
8743
+ widget: "EmptyBox"
8744
+ },
8745
+ config: {
8746
+ layout: { xs: 0, sm: 0, md: 0, lg: 6 }
8747
+ }
8748
+ };
8564
8749
  }
8565
8750
  if ((parentObj == null ? void 0 : parentObj.type) === "LeaderBoard") {
8566
8751
  UiSchema.elements[0].elements[0].elements[4] = {
@@ -10449,26 +10634,34 @@ var service = (funcParams) => {
10449
10634
  return response == null ? void 0 : response.data;
10450
10635
  }
10451
10636
  },
10452
- onChange: async function() {
10453
- if (eventGroups.onChange) {
10454
- const ChangeEventsKeysArray = Object.keys(eventGroups.onChange);
10455
- Promise.all(ChangeEventsKeysArray.map(async (componentName) => {
10456
- var _a, _b;
10457
- 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) {
10458
- for (const eventConfig of eventGroups.onChange[componentName]) {
10459
- await executeEvents({
10460
- ...executeEventsParameters,
10461
- config: eventConfig,
10462
- componentName,
10463
- formDataHolder
10464
- });
10465
- if (eventConfig.Handler === "refresh") {
10466
- funcParams.store.setFormdata((pre) => ({ ...pre, ...formDataHolder }));
10467
- }
10637
+ onChange: function() {
10638
+ if (!eventGroups.onChange)
10639
+ return;
10640
+ const ChangeEventsKeysArray = Object.keys(eventGroups.onChange);
10641
+ const promises = ChangeEventsKeysArray.flatMap((componentName) => {
10642
+ var _a, _b;
10643
+ 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) {
10644
+ return [];
10645
+ }
10646
+ return eventGroups.onChange[componentName].map(
10647
+ (eventConfig) => Promise.resolve(
10648
+ executeEvents({
10649
+ ...executeEventsParameters,
10650
+ config: eventConfig,
10651
+ componentName,
10652
+ formDataHolder
10653
+ })
10654
+ ).then(() => {
10655
+ if (!lodash.exports.isEmpty(formDataHolder)) {
10656
+ funcParams.store.setFormdata((pre) => ({
10657
+ ...pre,
10658
+ ...formDataHolder
10659
+ }));
10468
10660
  }
10469
- }
10470
- }));
10471
- }
10661
+ })
10662
+ );
10663
+ });
10664
+ Promise.allSettled(promises);
10472
10665
  },
10473
10666
  callExecuteEvents: async function(paramValue, apiBody, eventType) {
10474
10667
  var _a, _b;
@@ -10520,29 +10713,29 @@ var service = (funcParams) => {
10520
10713
  }
10521
10714
  },
10522
10715
  callHandler: function(eventType, functionParameters) {
10523
- var _a, _b, _c;
10524
- const path = ((_a = funcParams.dynamicData) == null ? void 0 : _a.tableButtonPath) || funcParams.dynamicData.path.split(".")[funcParams.dynamicData.path.split(".").length - 1];
10525
- if (((_b = eventGroups == null ? void 0 : eventGroups[eventType]) == null ? void 0 : _b[path]) !== void 0) {
10526
- (_c = eventGroups == null ? void 0 : eventGroups[eventType]) == null ? void 0 : _c[path].map((eventConfig) => {
10527
- executeEventsParameters.store.functionParameters = functionParameters;
10528
- if (eventConfig.Handler === "refresh") {
10529
- executeEvents({
10530
- ...executeEventsParameters,
10531
- config: eventConfig,
10532
- componentName: path,
10533
- formDataHolder
10534
- }).then((res) => {
10535
- funcParams.store.setFormdata((pre) => ({ ...pre, ...formDataHolder }));
10536
- });
10537
- } else {
10538
- executeEvents({
10539
- ...executeEventsParameters,
10540
- config: eventConfig,
10541
- componentName: path
10542
- });
10716
+ var _a, _b;
10717
+ const path = ((_a = funcParams.dynamicData) == null ? void 0 : _a.tableButtonPath) || funcParams.dynamicData.path.split(".").pop();
10718
+ if (!((_b = eventGroups == null ? void 0 : eventGroups[eventType]) == null ? void 0 : _b[path]))
10719
+ return;
10720
+ const promises = eventGroups[eventType][path].map((eventConfig) => {
10721
+ executeEventsParameters.store.functionParameters = functionParameters;
10722
+ return Promise.resolve(
10723
+ executeEvents({
10724
+ ...executeEventsParameters,
10725
+ config: eventConfig,
10726
+ componentName: path,
10727
+ formDataHolder
10728
+ })
10729
+ ).then(() => {
10730
+ if (!lodash.exports.isEmpty(formDataHolder)) {
10731
+ funcParams.store.setFormdata((pre) => ({
10732
+ ...pre,
10733
+ ...formDataHolder
10734
+ }));
10543
10735
  }
10544
10736
  });
10545
- }
10737
+ });
10738
+ Promise.allSettled(promises);
10546
10739
  },
10547
10740
  downloadFile: downloadFile$1,
10548
10741
  downloadFileFromUrl,
@@ -12632,7 +12825,8 @@ const buildUiSchema = (config2, store2) => {
12632
12825
  enableColumnFilter: cellElem.enableFilter === "No" ? false : true,
12633
12826
  columnFilterModeOptions: cellElem.filteringOptions,
12634
12827
  enableSorting: cellElem.enableSorting === "No" ? false : true,
12635
- columnKey: cellElem.columnKey
12828
+ columnKey: cellElem.columnKey,
12829
+ dateFormat: cellElem.dateFormat
12636
12830
  };
12637
12831
  if (cellElem.type) {
12638
12832
  const tableElem = {
@@ -12664,7 +12858,8 @@ const buildUiSchema = (config2, store2) => {
12664
12858
  enableColumnFilter: cellElem.enableFilter === "No" ? false : true,
12665
12859
  columnFilterModeOptions: cellElem.filteringOptions,
12666
12860
  enableSorting: cellElem.enableSorting === "No" ? false : true,
12667
- columnKey: cellElem.columnKey
12861
+ columnKey: cellElem.columnKey,
12862
+ dateFormat: cellElem.dateFormat
12668
12863
  };
12669
12864
  if (cellElem.type) {
12670
12865
  if (cellElem.elementType == "action") {