impaktapps-ui-builder 0.0.412-mtreemap.16 → 0.0.412-mtreemap.17

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.
@@ -6348,6 +6348,172 @@ const componentBasicUiSchema = (theme) => {
6348
6348
  }
6349
6349
  ]
6350
6350
  },
6351
+ {
6352
+ type: "Control",
6353
+ scope: "#/properties/popUpComponentSection",
6354
+ options: {
6355
+ widget: "PopUp"
6356
+ },
6357
+ config: {
6358
+ layout: {
6359
+ xs: 12,
6360
+ sm: 12,
6361
+ md: 12,
6362
+ lg: 12
6363
+ },
6364
+ main: {}
6365
+ },
6366
+ elements: [
6367
+ {
6368
+ type: "Control",
6369
+ scope: "#/properties/label",
6370
+ options: {
6371
+ widget: "Box"
6372
+ },
6373
+ config: {
6374
+ layout: 12,
6375
+ main: {
6376
+ heading: "Are you sure you want to delete ?"
6377
+ },
6378
+ style: {
6379
+ marginTop: "-40px"
6380
+ }
6381
+ }
6382
+ },
6383
+ {
6384
+ type: "Control",
6385
+ scope: "#/properties/EmptyBox",
6386
+ options: {
6387
+ widget: "EmptyBox"
6388
+ },
6389
+ config: {
6390
+ main: {},
6391
+ layout: { xs: 11, sm: 5.5, md: 5.5, lg: 5.5 }
6392
+ }
6393
+ },
6394
+ {
6395
+ type: "Control",
6396
+ scope: "#/properties/ConfirmDeleteCompButton",
6397
+ options: {
6398
+ widget: "Button"
6399
+ },
6400
+ config: {
6401
+ layout: 3,
6402
+ main: {
6403
+ name: "Yes",
6404
+ startIcon: "ApproveIcon",
6405
+ variant: "contained",
6406
+ color: "info",
6407
+ type: "text",
6408
+ onClick: "deleteComponents",
6409
+ size: "small"
6410
+ }
6411
+ }
6412
+ },
6413
+ {
6414
+ type: "Control",
6415
+ scope: "#/properties/CancelDeleteCompButton",
6416
+ options: {
6417
+ widget: "Button"
6418
+ },
6419
+ config: {
6420
+ layout: 3,
6421
+ main: {
6422
+ name: "No",
6423
+ startIcon: "ApproveIcon",
6424
+ variant: "contained",
6425
+ color: "info",
6426
+ type: "text",
6427
+ onClick: "deletePopUpComponent",
6428
+ size: "small"
6429
+ }
6430
+ }
6431
+ }
6432
+ ]
6433
+ },
6434
+ {
6435
+ type: "Control",
6436
+ scope: "#/properties/popUpEventSection",
6437
+ options: {
6438
+ widget: "PopUp"
6439
+ },
6440
+ config: {
6441
+ layout: {
6442
+ xs: 12,
6443
+ sm: 12,
6444
+ md: 12,
6445
+ lg: 12
6446
+ },
6447
+ main: {}
6448
+ },
6449
+ elements: [
6450
+ {
6451
+ type: "Control",
6452
+ scope: "#/properties/label",
6453
+ options: {
6454
+ widget: "Box"
6455
+ },
6456
+ config: {
6457
+ layout: 12,
6458
+ main: {
6459
+ heading: "Are you sure you want to delete ?"
6460
+ },
6461
+ style: {
6462
+ marginTop: "-40px"
6463
+ }
6464
+ }
6465
+ },
6466
+ {
6467
+ type: "Control",
6468
+ scope: "#/properties/EmptyBox",
6469
+ options: {
6470
+ widget: "EmptyBox"
6471
+ },
6472
+ config: {
6473
+ main: {},
6474
+ layout: { xs: 11, sm: 5.5, md: 5.5, lg: 5.5 }
6475
+ }
6476
+ },
6477
+ {
6478
+ type: "Control",
6479
+ scope: "#/properties/ConfirmDeleteEventButton",
6480
+ options: {
6481
+ widget: "Button"
6482
+ },
6483
+ config: {
6484
+ layout: 3,
6485
+ main: {
6486
+ name: "Yes",
6487
+ startIcon: "ApproveIcon",
6488
+ variant: "contained",
6489
+ color: "info",
6490
+ type: "text",
6491
+ onClick: "deleteEvent",
6492
+ size: "small"
6493
+ }
6494
+ }
6495
+ },
6496
+ {
6497
+ type: "Control",
6498
+ scope: "#/properties/CancelDeleteEventButton",
6499
+ options: {
6500
+ widget: "Button"
6501
+ },
6502
+ config: {
6503
+ layout: 3,
6504
+ main: {
6505
+ name: "No",
6506
+ startIcon: "ApproveIcon",
6507
+ variant: "contained",
6508
+ color: "info",
6509
+ type: "text",
6510
+ onClick: "deletePopUpEvent",
6511
+ size: "small"
6512
+ }
6513
+ }
6514
+ }
6515
+ ]
6516
+ },
6351
6517
  {
6352
6518
  type: "Control",
6353
6519
  scope: "#/properties/EmptyBox",
@@ -6743,7 +6909,7 @@ const EventSection = {
6743
6909
  icon: "RejectIcon",
6744
6910
  color: "error",
6745
6911
  tooltipMessage: "Reject This Record",
6746
- onClick: "deleteEvent"
6912
+ onClick: "deletePopUpEvent"
6747
6913
  }
6748
6914
  }
6749
6915
  }
@@ -7250,7 +7416,7 @@ const TableSection = {
7250
7416
  main: {
7251
7417
  icon: "RejectIcon",
7252
7418
  color: "error",
7253
- onClick: "deleteComponent",
7419
+ onClick: "deletePopUpComponent",
7254
7420
  tooltipMessage: "Reject This Record"
7255
7421
  }
7256
7422
  }
@@ -7606,22 +7772,30 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
7606
7772
  store2.navigate(`/Component?path=${`elements[${rowId}]`}&id=${id}`);
7607
7773
  }
7608
7774
  },
7609
- deleteComponents: function() {
7775
+ deleteComponents: function(shouldUpdateDialog = true) {
7610
7776
  var _a;
7611
7777
  const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
7612
- const rowId = dynamicData2.path.split(".")[1];
7778
+ const rowId = localStorage.getItem("rowId");
7613
7779
  store2.formData.elements.splice(rowId, 1);
7614
7780
  const response = saveFormdataInLocalStorage(store2.ctx.core.data, path);
7615
7781
  const data = path ? _.get(response, path) : response;
7616
7782
  store2.setFormdata(data);
7783
+ if (shouldUpdateDialog) {
7784
+ store2.updateDialog("popUpComponentSection");
7785
+ }
7786
+ localStorage.removeItem("rowId");
7617
7787
  },
7618
- deleteEvent: function() {
7788
+ deleteEvent: function(shouldUpdateDialog = true) {
7619
7789
  var _a;
7620
7790
  const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
7621
- const rowId = dynamicData2.path.split(".")[1];
7791
+ const rowId = localStorage.getItem("rowId");
7622
7792
  store2.formData.events.splice(rowId, 1);
7623
7793
  const response = saveFormdataInLocalStorage(store2.ctx.core.data, path);
7624
7794
  store2.setFormdata(_.get(response, path));
7795
+ if (shouldUpdateDialog) {
7796
+ store2.updateDialog("popUpEventSection");
7797
+ }
7798
+ localStorage.removeItem("rowId");
7625
7799
  },
7626
7800
  widgetAddClickHandler: function() {
7627
7801
  var _a;
@@ -7657,6 +7831,16 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
7657
7831
  },
7658
7832
  backHandler: function() {
7659
7833
  store2.navigate(-1);
7834
+ },
7835
+ deletePopUpComponent: function() {
7836
+ const rowId = dynamicData2.path.split(".")[1];
7837
+ localStorage.setItem("rowId", rowId);
7838
+ store2.updateDialog("popUpComponentSection");
7839
+ },
7840
+ deletePopUpEvent: function() {
7841
+ const rowId = dynamicData2.path.split(".")[1];
7842
+ localStorage.setItem("rowId", rowId);
7843
+ store2.updateDialog("popUpEventSection");
7660
7844
  }
7661
7845
  };
7662
7846
  };
@@ -7711,7 +7895,10 @@ var pageMaster = (funcParams) => {
7711
7895
  },
7712
7896
  saveHandler: async () => await saveHandler(store2, service2, submitHandler),
7713
7897
  Edit_Components: Component(store2, dynamicData2, submitHandler, service2).editComponents,
7714
- Delete_Components: Component(store2, dynamicData2, submitHandler, service2).deleteComponents,
7898
+ Delete_Components: async function() {
7899
+ await Component(store2, dynamicData2, submitHandler, service2).deleteComponents(false);
7900
+ store2.updateDialog("popUpPageMasterComponent");
7901
+ },
7715
7902
  eventAddHandler: function() {
7716
7903
  var _a;
7717
7904
  const id = (_a = store2.searchParams) == null ? void 0 : _a.get("id");
@@ -7731,10 +7918,22 @@ var pageMaster = (funcParams) => {
7731
7918
  store2.navigate(`/ComponentEvents?path=${finalPath}&id=${id}`);
7732
7919
  },
7733
7920
  deleteEvent: function() {
7734
- const rowId = dynamicData2.path.split(".")[1];
7921
+ const rowId = localStorage.getItem("rowId");
7735
7922
  store2.formData.events.splice(rowId, 1);
7736
7923
  const response = saveFormdataInLocalStorage(store2.ctx.core.data);
7737
7924
  store2.setFormdata(response);
7925
+ store2.updateDialog("popUpPageMasterEvent");
7926
+ localStorage.removeItem("rowId");
7927
+ },
7928
+ deletePopUpComponent: function() {
7929
+ const rowId = dynamicData2.path.split(".")[1];
7930
+ localStorage.setItem("rowId", rowId);
7931
+ store2.updateDialog("popUpPageMasterComponent");
7932
+ },
7933
+ deletePopUpEvent: function() {
7934
+ const rowId = dynamicData2.path.split(".")[1];
7935
+ localStorage.setItem("rowId", rowId);
7936
+ store2.updateDialog("popUpPageMasterEvent");
7738
7937
  }
7739
7938
  };
7740
7939
  };
@@ -8426,9 +8625,17 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
8426
8625
  store2.setSearchParams(store2.searchParams);
8427
8626
  this.setPage();
8428
8627
  },
8429
- deleteEvent: Component(store2, dynamicData2, submitHandler, service2).deleteEvent,
8628
+ deleteEvent: async function() {
8629
+ await Component(store2, dynamicData2, submitHandler, service2).deleteEvent(false);
8630
+ store2.updateDialog("popUpEvent");
8631
+ },
8430
8632
  backHandler: function() {
8431
8633
  store2.navigate(-1);
8634
+ },
8635
+ deletePopUpEvent: function() {
8636
+ const rowId = dynamicData2.path.split(".")[1];
8637
+ localStorage.setItem("rowId", rowId);
8638
+ store2.updateDialog("popUpEvent");
8432
8639
  }
8433
8640
  };
8434
8641
  };
@@ -8791,7 +8998,7 @@ var service = (funcParams) => {
8791
8998
  };
8792
8999
  return {
8793
9000
  setPage: async function() {
8794
- var _a, _b;
9001
+ var _a, _b, _c, _d;
8795
9002
  funcParams.store.setFormdata({});
8796
9003
  funcParams.store.newData = {};
8797
9004
  const pageBasicDetailString = localStorage.getItem("pagemasterMetaData");
@@ -8809,7 +9016,7 @@ var service = (funcParams) => {
8809
9016
  const uiSchema = pageData == null ? void 0 : pageData.uiSchema;
8810
9017
  window.localStorage.setItem("pageName", config.label);
8811
9018
  window.dispatchEvent(new Event("pageNameChanged"));
8812
- const theme = funcParams.store.theme.myTheme;
9019
+ const theme = (_b = (_a = funcParams == null ? void 0 : funcParams.store) == null ? void 0 : _a.theme) == null ? void 0 : _b.myTheme;
8813
9020
  uiSchema.elements.push(
8814
9021
  {
8815
9022
  type: "HorizontalLayout",
@@ -8840,7 +9047,7 @@ var service = (funcParams) => {
8840
9047
  heading: "Copywriter@ACT21.IO"
8841
9048
  },
8842
9049
  style: {
8843
- color: ((_a = theme == null ? void 0 : theme.palette) == null ? void 0 : _a.text.disabled) || "#AFAFAF",
9050
+ color: ((_c = theme == null ? void 0 : theme.palette) == null ? void 0 : _c.text.disabled) || "#AFAFAF",
8844
9051
  fontSize: "12px",
8845
9052
  textAlign: "center",
8846
9053
  lineHeight: 1,
@@ -8914,7 +9121,7 @@ var service = (funcParams) => {
8914
9121
  ]
8915
9122
  }
8916
9123
  );
8917
- const schema2 = (_b = pageData == null ? void 0 : pageData.schema) != null ? _b : { type: "object", properties: {} };
9124
+ const schema2 = (_d = pageData == null ? void 0 : pageData.schema) != null ? _d : { type: "object", properties: {} };
8918
9125
  eventGroups = {};
8919
9126
  eventGroups = extractEvents(config);
8920
9127
  executeEventsParameters = {
@@ -8939,8 +9146,6 @@ var service = (funcParams) => {
8939
9146
  eventGroups,
8940
9147
  formDataHolder
8941
9148
  });
8942
- const jsonres = await fetch("https://jsonplaceholder.typicode.com/todos/1");
8943
- await jsonres.json();
8944
9149
  funcParams.store.setSchema(
8945
9150
  (pre) => {
8946
9151
  return {
@@ -9100,9 +9305,12 @@ var leaderBoard = {
9100
9305
  label: "LeaderBoard",
9101
9306
  divider: true
9102
9307
  },
9103
- style: { wrapperStyle: {
9104
- height: { xs: 850, sm: 1e3 }
9105
- } },
9308
+ style: {
9309
+ wrapperStyle: {
9310
+ display: "flex",
9311
+ gap: "10px"
9312
+ }
9313
+ },
9106
9314
  wrapperStyle: {
9107
9315
  position: "relative",
9108
9316
  width: "100%"
@@ -9411,11 +9619,11 @@ var leaderBoard = {
9411
9619
  fontWeight: 900,
9412
9620
  background: "rgb(179, 198, 255)"
9413
9621
  },
9414
- position: "absolute",
9415
9622
  top: { xs: "300px", sm: "300px", md: "390px", lg: "390px" },
9416
9623
  border: "2px solid rgb(179, 198, 255)",
9417
9624
  width: "95%",
9418
- left: "2.5%"
9625
+ left: "2.5%",
9626
+ margin: "auto"
9419
9627
  },
9420
9628
  main: {
9421
9629
  disableAction: true,