impaktapps-ui-builder 0.0.412-mtreemap.7 → 0.0.412-mtreemap.8

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.
@@ -6627,121 +6627,69 @@ const EventSection = {
6627
6627
  type: "HorizontalLayout",
6628
6628
  elements: [
6629
6629
  {
6630
- type: "WrapperLayout",
6630
+ type: "Control",
6631
+ scope: "#/properties/events",
6632
+ options: {
6633
+ widget: "Table"
6634
+ },
6631
6635
  config: {
6632
6636
  main: {
6633
- divider: true
6634
- },
6635
- wrapperStyle: {
6636
- border: "1px solid gray"
6637
+ disableAction: true,
6638
+ disableSelection: true,
6639
+ enableDrag: true
6637
6640
  }
6638
6641
  },
6639
6642
  elements: [
6640
6643
  {
6641
- type: "Control",
6642
- scope: "#/properties/programType",
6643
- options: {
6644
- widget: "Box"
6645
- },
6646
- config: {
6647
- layout: 8,
6648
- main: {
6649
- heading: "Event Table"
6650
- },
6651
- style: {
6652
- fontFamily: "Roboto",
6653
- fontWeight: "500",
6654
- paddingLeft: "-10px",
6655
- fontSize: "20px"
6656
- }
6657
- }
6644
+ accessorKey: "eventType",
6645
+ header: "Event Type"
6658
6646
  },
6659
6647
  {
6660
- type: "Control",
6661
- scope: "#/properties/Back_Button",
6662
- options: {
6663
- widget: "IconButton"
6664
- },
6665
- config: {
6666
- layout: 3,
6667
- main: {
6668
- icon: "AddIcon",
6669
- styleDefault: true,
6670
- size: "small",
6671
- onClick: "eventAddHandler",
6672
- tooltipMessage: "Back"
6648
+ accessorKey: "Handler",
6649
+ header: "Handler"
6650
+ },
6651
+ {
6652
+ accessorKey: "Edit_Approve_Records",
6653
+ header: "Edit Widget",
6654
+ widget: {
6655
+ type: "Control",
6656
+ scope: "#/properties/Edit_Records",
6657
+ options: {
6658
+ widget: "IconButton"
6673
6659
  },
6674
- style: {
6675
- float: "right"
6660
+ config: {
6661
+ main: {
6662
+ color: "info",
6663
+ size: "small",
6664
+ icon: "EditIcon",
6665
+ tooltipMessage: "Edit This Record",
6666
+ onClick: "eventEditHandler"
6667
+ },
6668
+ style: {
6669
+ color: "#3949ab"
6670
+ }
6676
6671
  }
6677
6672
  }
6678
6673
  },
6679
6674
  {
6680
- type: "Control",
6681
- scope: "#/properties/events",
6682
- options: {
6683
- widget: "Table"
6684
- },
6685
- config: {
6686
- main: {
6687
- disableAction: true,
6688
- disableSelection: true,
6689
- enableDrag: true
6690
- }
6691
- },
6692
- elements: [
6693
- {
6694
- accessorKey: "eventType",
6695
- header: "Event Type"
6696
- },
6697
- {
6698
- accessorKey: "Handler",
6699
- header: "Handler"
6700
- },
6701
- {
6702
- accessorKey: "Edit_Approve_Records",
6703
- header: "Edit Widget",
6704
- widget: {
6705
- type: "Control",
6706
- scope: "#/properties/Edit_Records",
6707
- options: {
6708
- widget: "IconButton"
6709
- },
6710
- config: {
6711
- main: {
6712
- color: "info",
6713
- size: "small",
6714
- icon: "EditIcon",
6715
- tooltipMessage: "Edit This Record",
6716
- onClick: "eventEditHandler"
6717
- },
6718
- style: {
6719
- color: "#3949ab"
6720
- }
6721
- }
6722
- }
6675
+ accessorKey: "Reject_Records",
6676
+ header: "Delete",
6677
+ widget: {
6678
+ type: "Control",
6679
+ scope: "#/properties/RejectButton",
6680
+ accessorKeyName: "Reject_Records",
6681
+ options: {
6682
+ widget: "IconButton"
6723
6683
  },
6724
- {
6725
- accessorKey: "Reject_Records",
6726
- header: "Delete",
6727
- widget: {
6728
- type: "Control",
6729
- scope: "#/properties/RejectButton",
6730
- accessorKeyName: "Reject_Records",
6731
- options: {
6732
- widget: "IconButton"
6733
- },
6734
- config: {
6735
- main: {
6736
- icon: "RejectIcon",
6737
- color: "error",
6738
- tooltipMessage: "Reject This Record",
6739
- onClick: "deleteEvent"
6740
- }
6741
- }
6684
+ config: {
6685
+ main: {
6686
+ icon: "RejectIcon",
6687
+ color: "error",
6688
+ tooltipMessage: "Reject This Record",
6689
+ onClick: "deleteEvent"
6742
6690
  }
6743
6691
  }
6744
- ]
6692
+ }
6745
6693
  }
6746
6694
  ]
6747
6695
  }
@@ -7853,6 +7801,31 @@ const EventUiSchema = (theme) => {
7853
7801
  },
7854
7802
  config: {
7855
7803
  main: {
7804
+ headerIcons: {
7805
+ elements: [
7806
+ {
7807
+ widget: {
7808
+ type: "Control",
7809
+ scope: "#/properties/New_Record",
7810
+ options: {
7811
+ widget: "IconButton"
7812
+ },
7813
+ config: {
7814
+ main: {
7815
+ onClick: "addEvent",
7816
+ size: "small",
7817
+ icon: "AddIcon",
7818
+ iconLabel: "Add New",
7819
+ styleDefault: true
7820
+ },
7821
+ style: {
7822
+ mt: "6px"
7823
+ }
7824
+ }
7825
+ }
7826
+ }
7827
+ ]
7828
+ },
7856
7829
  disableAction: true,
7857
7830
  disableSelection: true,
7858
7831
  enableDrag: true
@@ -8267,6 +8240,17 @@ const refreshSectionUiSchema = {
8267
8240
  }
8268
8241
  }
8269
8242
  },
8243
+ {
8244
+ type: "Control",
8245
+ scope: "#/properties/emptyBox",
8246
+ options: {
8247
+ widget: "EmptyBox"
8248
+ },
8249
+ config: {
8250
+ layout: { xs: 0, sm: 4, md: 4, lg: 4 },
8251
+ main: {}
8252
+ }
8253
+ },
8270
8254
  {
8271
8255
  type: "Control",
8272
8256
  scope: "#/properties/emptyBox",
@@ -8311,18 +8295,19 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
8311
8295
  if (handlerType) {
8312
8296
  if (handlerType === "custom") {
8313
8297
  uiSchema.elements[0].elements[0].elements[2] = getRadioInputField("isSync", "Run in Sync", ["Yes", "No"]);
8314
- uiSchema.elements[0].elements[0].elements[3] = emptyBox;
8315
- uiSchema.elements[0].elements[0].elements[4] = getTextArea("eventCode", "Write Custom Code", false);
8298
+ uiSchema.elements[0].elements[0].elements[3] = getTextArea("eventCode", "Write Custom Code", false);
8316
8299
  schema2.required = ["eventType", "Handler", "eventCode"];
8317
8300
  } else if (handlerType === "api") {
8318
- uiSchema.elements[0].elements[0].elements[2] = APISection;
8301
+ uiSchema.elements[0].elements[0].elements[2] = emptyBox;
8302
+ uiSchema.elements[0].elements[0].elements[3] = APISection;
8319
8303
  schema2.required = ["eventType", "Handler", "method", "path"];
8320
8304
  } else if (handlerType === "inBuiltFunction") {
8321
8305
  uiSchema.elements[0].elements[0].elements[2] = getSelectField("inBuiltFunctionType", "Function Name");
8322
- uiSchema.elements[0].elements[0].elements[3] = getTextArea("funcParametersCode", "Write Custom Code for Functions Parameter", true, { xs: 12, sm: 12, md: 6 });
8306
+ uiSchema.elements[0].elements[0].elements[3] = getTextArea("funcParametersCode", "Write Custom Code for Functions Parameter", true);
8323
8307
  schema2.required = ["eventType", "Handler", "inBuiltFunctionType"];
8324
8308
  } else if (handlerType === "refresh") {
8325
- uiSchema.elements[0].elements[0].elements[2] = refreshSectionUiSchema;
8309
+ uiSchema.elements[0].elements[0].elements[2] = emptyBox;
8310
+ uiSchema.elements[0].elements[0].elements[3] = refreshSectionUiSchema;
8326
8311
  schema2.properties.refreshElements.required = ["value"];
8327
8312
  schema2.properties.refreshElements.items.required = ["value"];
8328
8313
  schema2.required = ["eventType", "Handler", "refreshElements"];