impaktapps-ui-builder 0.0.382-alpha.5 → 0.0.382-alpha.7

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.
@@ -6234,7 +6234,7 @@ const componentBasicUiSchema = (theme) => {
6234
6234
  }
6235
6235
  },
6236
6236
  {
6237
- type: "HorizontalLayout",
6237
+ type: "Control",
6238
6238
  scope: "#/properties/layout",
6239
6239
  layout: 12,
6240
6240
  options: {
@@ -7768,302 +7768,329 @@ const EventSchema = {
7768
7768
  },
7769
7769
  required: ["eventType", "Handler"]
7770
7770
  };
7771
- const EventUiSchema = {
7772
- type: "HorizontalLayout",
7773
- elements: [
7774
- {
7775
- type: "WrapperLayout",
7776
- config: {
7777
- main: {
7778
- rowSpacing: 1,
7779
- header: true
7780
- },
7781
- defaultStyle: true
7782
- },
7783
- elements: [
7784
- {
7785
- type: "Control",
7786
- scope: "#/properties/Component",
7787
- options: {
7788
- widget: "Box"
7789
- },
7790
- config: {
7791
- layout: { xs: 12, sm: 12, md: 2 },
7792
- main: {
7793
- heading: "Component"
7794
- },
7795
- style: {
7796
- "float": "left"
7797
- }
7798
- }
7799
- },
7800
- {
7801
- type: "Control",
7802
- scope: "#/properties/pageName",
7803
- options: {
7804
- widget: "Box"
7805
- },
7806
- config: {
7807
- layout: { xs: 7, sm: 7, md: 9 },
7808
- main: {
7809
- heading: " "
7810
- },
7811
- style: {
7812
- float: "right",
7813
- width: "auto",
7814
- fontSize: "12px",
7815
- color: "gray",
7816
- paddingTop: "10px"
7817
- }
7771
+ const EventUiSchema = (theme) => {
7772
+ var _a;
7773
+ const uiSchema = {
7774
+ type: "HorizontalLayout",
7775
+ heading: "Component",
7776
+ elements: [
7777
+ {
7778
+ type: "TabLayout",
7779
+ config: {
7780
+ main: {
7781
+ tabLabels: ["Core", "Response Event"],
7782
+ defaultStyle: true,
7783
+ id: "event"
7818
7784
  }
7819
7785
  },
7820
- {
7821
- type: "Control",
7822
- scope: "#/properties/Back_Button",
7823
- options: {
7824
- widget: "IconButton"
7825
- },
7826
- config: {
7827
- layout: { xs: 2, sm: 2, md: 0.5 },
7828
- main: {
7829
- icon: "BackIcon",
7830
- styleDefault: true,
7831
- size: "small",
7832
- onClick: "backHandler",
7833
- tooltipMessage: "Back"
7834
- },
7835
- style: {
7836
- float: "right"
7837
- }
7838
- }
7839
- }
7840
- ]
7841
- },
7842
- {
7843
- type: "TabLayout",
7844
- config: {
7845
- main: {
7846
- tabLabels: ["Core", "Response Event"],
7847
- defaultStyle: true,
7848
- id: "event"
7849
- }
7850
- },
7851
- elements: [
7852
- {
7853
- type: "HorizontalLayout",
7854
- elements: [
7855
- {
7856
- type: "Control",
7857
- scope: `#/properties/eventType`,
7858
- options: {
7859
- widget: "SelectInputField"
7786
+ elements: [
7787
+ {
7788
+ type: "HorizontalLayout",
7789
+ elements: [
7790
+ {
7791
+ type: "Control",
7792
+ scope: `#/properties/eventType`,
7793
+ options: {
7794
+ widget: "SelectInputField"
7795
+ },
7796
+ config: {
7797
+ layout: { xs: 11, sm: 4, md: 4, lg: 4 },
7798
+ main: {
7799
+ label: "Event Type",
7800
+ type: "text"
7801
+ }
7802
+ }
7860
7803
  },
7861
- config: {
7862
- layout: { xs: 11, sm: 11, md: 5.5, lg: 5.5 },
7863
- main: {
7864
- label: "Event Type",
7865
- type: "text"
7804
+ {
7805
+ type: "Control",
7806
+ scope: `#/properties/Handler`,
7807
+ options: {
7808
+ widget: "SelectInputField"
7809
+ },
7810
+ config: {
7811
+ layout: { xs: 11, sm: 4, md: 4, lg: 4 },
7812
+ main: {
7813
+ label: "Handler",
7814
+ type: "text"
7815
+ }
7866
7816
  }
7867
- }
7868
- },
7869
- getSelectField("Handler", "Handler")
7870
- ]
7871
- },
7872
- {
7873
- type: "WrapperLayout",
7874
- config: {
7875
- main: {
7876
- divider: true
7877
- },
7878
- wrapperStyle: {
7879
- border: "1px solid gray"
7880
- }
7881
- },
7882
- elements: [
7883
- {
7884
- type: "Control",
7885
- scope: "#/properties/heading",
7886
- options: {
7887
- widget: "Box"
7888
7817
  },
7889
- config: {
7890
- layout: 8,
7891
- main: {
7892
- heading: "Response Event"
7818
+ {
7819
+ type: "Control",
7820
+ scope: "#/properties/emptyBox",
7821
+ options: {
7822
+ widget: "EmptyBox"
7893
7823
  },
7894
- style: {
7895
- fontFamily: "Roboto",
7896
- fontWeight: "500",
7897
- paddingLeft: "-10px",
7898
- fontSize: "20px"
7824
+ config: {
7825
+ layout: { xs: 0, sm: 4 }
7899
7826
  }
7900
7827
  }
7828
+ ]
7829
+ },
7830
+ {
7831
+ type: "Control",
7832
+ scope: "#/properties/events",
7833
+ options: {
7834
+ widget: "Table"
7901
7835
  },
7902
- {
7903
- type: "Control",
7904
- scope: "#/properties/AddButton",
7905
- options: {
7906
- widget: "IconButton"
7907
- },
7908
- config: {
7909
- layout: 3,
7910
- main: {
7911
- icon: "AddIcon",
7912
- styleDefault: true,
7913
- size: "small",
7914
- onClick: "addEvent",
7915
- tooltipMessage: "Back"
7836
+ config: {
7837
+ main: {
7838
+ headerIcons: {
7839
+ elements: [
7840
+ {
7841
+ widget: {
7842
+ type: "Control",
7843
+ scope: "#/properties/New_Record",
7844
+ options: {
7845
+ widget: "IconButton"
7846
+ },
7847
+ config: {
7848
+ main: {
7849
+ color: "info",
7850
+ onClick: "addEvent",
7851
+ size: "small",
7852
+ icon: "AddIcon",
7853
+ iconLabel: "Add New",
7854
+ styleDefault: true
7855
+ },
7856
+ style: {
7857
+ mt: "6px"
7858
+ }
7859
+ }
7860
+ }
7861
+ }
7862
+ ]
7916
7863
  },
7917
- style: {
7918
- float: "right"
7919
- }
7864
+ disableAction: true,
7865
+ disableSelection: true,
7866
+ enableDrag: true
7920
7867
  }
7921
7868
  },
7922
- {
7923
- type: "Control",
7924
- scope: "#/properties/events",
7925
- options: {
7926
- widget: "Table"
7869
+ elements: [
7870
+ {
7871
+ accessorKey: "eventType",
7872
+ header: "Event Type"
7927
7873
  },
7928
- config: {
7929
- main: {
7930
- disableAction: true,
7931
- disableSelection: true,
7932
- enableDrag: true
7933
- }
7874
+ {
7875
+ accessorKey: "Handler",
7876
+ header: "Handler"
7934
7877
  },
7935
- elements: [
7936
- {
7937
- accessorKey: "eventType",
7938
- header: "Event Type"
7939
- },
7940
- {
7941
- accessorKey: "Handler",
7942
- header: "Handler"
7943
- },
7944
- {
7945
- accessorKey: "Edit_Approve_Records",
7946
- header: "Edit Widget",
7947
- widget: {
7948
- type: "Control",
7949
- scope: "#/properties/Edit_Records",
7950
- options: {
7951
- widget: "IconButton"
7878
+ {
7879
+ accessorKey: "Edit_Approve_Records",
7880
+ header: "Edit Widget",
7881
+ widget: {
7882
+ type: "Control",
7883
+ scope: "#/properties/Edit_Records",
7884
+ options: {
7885
+ widget: "IconButton"
7886
+ },
7887
+ config: {
7888
+ main: {
7889
+ color: "info",
7890
+ size: "small",
7891
+ icon: "EditIcon",
7892
+ tooltipMessage: "Edit This Record",
7893
+ onClick: "editEvent"
7952
7894
  },
7953
- config: {
7954
- main: {
7955
- color: "info",
7956
- size: "small",
7957
- icon: "EditIcon",
7958
- tooltipMessage: "Edit This Record",
7959
- onClick: "editEvent"
7960
- },
7961
- style: {
7962
- color: "#3949ab"
7963
- }
7895
+ style: {
7896
+ color: "#3949ab"
7964
7897
  }
7965
7898
  }
7966
- },
7967
- {
7968
- accessorKey: "Reject_Records",
7969
- header: "Delete",
7970
- widget: {
7971
- type: "Control",
7972
- scope: "#/properties/RejectButton",
7973
- options: {
7974
- widget: "IconButton"
7975
- },
7976
- config: {
7977
- main: {
7978
- icon: "RejectIcon",
7979
- color: "error",
7980
- tooltipMessage: "Reject This Record",
7981
- onClick: "deleteEvent"
7982
- }
7899
+ }
7900
+ },
7901
+ {
7902
+ accessorKey: "Reject_Records",
7903
+ header: "Delete",
7904
+ widget: {
7905
+ type: "Control",
7906
+ scope: "#/properties/RejectButton",
7907
+ options: {
7908
+ widget: "IconButton"
7909
+ },
7910
+ config: {
7911
+ main: {
7912
+ icon: "RejectIcon",
7913
+ color: "error",
7914
+ tooltipMessage: "Reject This Record",
7915
+ onClick: "deleteEvent"
7983
7916
  }
7984
7917
  }
7985
7918
  }
7986
- ]
7987
- }
7988
- ]
7989
- }
7990
- ]
7991
- },
7992
- {
7993
- type: "Control",
7994
- scope: "#/properties/proc",
7995
- config: {
7996
- layout: { xs: 11, sm: 11, md: 6, lg: 6 }
7997
- },
7998
- options: {
7999
- widget: "EmptyBox"
8000
- }
8001
- },
8002
- {
8003
- type: "Control",
8004
- scope: "#/properties/btn",
8005
- options: {
8006
- widget: "Button"
7919
+ }
7920
+ ]
7921
+ }
7922
+ ]
8007
7923
  },
8008
- config: {
8009
- layout: {
8010
- xs: 11,
8011
- sm: 11,
8012
- md: 2.5,
8013
- lg: 2.5
7924
+ {
7925
+ type: "Control",
7926
+ scope: "#/properties/btn",
7927
+ options: {
7928
+ widget: "Button"
8014
7929
  },
8015
- main: {
8016
- name: "Ok",
8017
- startIcon: "ApproveIcon",
8018
- variant: "contained",
8019
- color: "info",
8020
- type: "text",
8021
- onClick: "okHandler",
8022
- size: "small"
7930
+ config: {
7931
+ layout: {
7932
+ xs: 11,
7933
+ sm: 11,
7934
+ md: 2.5,
7935
+ lg: 2.5
7936
+ },
7937
+ main: {
7938
+ name: "Ok",
7939
+ startIcon: "ApproveIcon",
7940
+ variant: "contained",
7941
+ color: "info",
7942
+ type: "text",
7943
+ onClick: "okHandler",
7944
+ size: "small"
7945
+ },
7946
+ style: {
7947
+ marginBottom: "8px",
7948
+ float: "right"
7949
+ }
7950
+ }
7951
+ },
7952
+ {
7953
+ type: "Control",
7954
+ scope: "#/properties/btnSubmit",
7955
+ options: {
7956
+ widget: "Button"
8023
7957
  },
8024
- style: {
8025
- marginBottom: "8px",
8026
- float: "right"
7958
+ config: {
7959
+ layout: {
7960
+ xs: 11,
7961
+ sm: 11,
7962
+ md: 2.5,
7963
+ lg: 2.5
7964
+ },
7965
+ main: {
7966
+ name: "Save & Exit",
7967
+ startIcon: "ApproveIcon",
7968
+ variant: "contained",
7969
+ color: "info",
7970
+ type: "text",
7971
+ onClick: "saveHandler",
7972
+ size: "small"
7973
+ },
7974
+ style: {
7975
+ marginBottom: "8px",
7976
+ float: "right"
7977
+ }
8027
7978
  }
8028
- }
8029
- },
8030
- {
8031
- type: "Control",
8032
- scope: "#/properties/btnSubmit",
8033
- options: {
8034
- widget: "Button"
8035
7979
  },
8036
- config: {
8037
- layout: {
8038
- xs: 11,
8039
- sm: 11,
8040
- md: 2.5,
8041
- lg: 2.5
7980
+ {
7981
+ type: "Control",
7982
+ scope: "#/properties/notify",
7983
+ options: {
7984
+ widget: "Notify"
8042
7985
  },
8043
- main: {
8044
- name: "Save & Exit",
8045
- startIcon: "ApproveIcon",
8046
- variant: "contained",
8047
- color: "info",
8048
- type: "text",
8049
- onClick: "saveHandler",
8050
- size: "small"
7986
+ layout: 6
7987
+ },
7988
+ {
7989
+ type: "HorizontalLayout",
7990
+ config: {
7991
+ style: {
7992
+ position: "fixed",
7993
+ bottom: 5,
7994
+ overflow: "visible",
7995
+ margin: "0",
7996
+ width: "100vw"
7997
+ }
8051
7998
  },
8052
- style: {
8053
- marginBottom: "8px",
8054
- float: "right"
8055
- }
7999
+ elements: [
8000
+ {
8001
+ type: "Control",
8002
+ scope: "#/properties/EmptyBox",
8003
+ options: {
8004
+ widget: "EmptyBox"
8005
+ },
8006
+ config: {
8007
+ layout: { xs: 0, sm: 4, md: 4, lg: 4 }
8008
+ }
8009
+ },
8010
+ {
8011
+ type: "Control",
8012
+ scope: "#/properties/FooterText",
8013
+ options: {
8014
+ widget: "Box"
8015
+ },
8016
+ config: {
8017
+ layout: { xs: 11, sm: 4, md: 4, lg: 4 },
8018
+ main: {
8019
+ heading: "Copywriter@ACT21.IO"
8020
+ },
8021
+ style: {
8022
+ color: ((_a = theme == null ? void 0 : theme.palette) == null ? void 0 : _a.text.disabled) || "#AFAFAF",
8023
+ fontSize: "12px"
8024
+ }
8025
+ }
8026
+ },
8027
+ {
8028
+ type: "HorizontalLayout",
8029
+ config: {
8030
+ layout: { xs: 11, sm: 4, md: 4, lg: 4 }
8031
+ },
8032
+ elements: [
8033
+ {
8034
+ type: "Control",
8035
+ scope: "#/properties/EmptyBox",
8036
+ options: {
8037
+ widget: "EmptyBox"
8038
+ },
8039
+ config: {
8040
+ layout: 2
8041
+ }
8042
+ },
8043
+ {
8044
+ type: "Control",
8045
+ scope: "#/properties/backIcon",
8046
+ options: {
8047
+ widget: "Box"
8048
+ },
8049
+ config: {
8050
+ layout: 1,
8051
+ main: {
8052
+ iconName: "PrevIcon",
8053
+ onClick: "backHandler"
8054
+ },
8055
+ style: {
8056
+ fill: theme.palette.primary.dark,
8057
+ width: 20,
8058
+ height: 20,
8059
+ display: "flex",
8060
+ alignItems: "center",
8061
+ justifyContent: "center",
8062
+ marginRight: "-8px",
8063
+ cursor: "pointer"
8064
+ }
8065
+ }
8066
+ },
8067
+ {
8068
+ type: "Control",
8069
+ scope: "#/properties/text",
8070
+ options: {
8071
+ widget: "Box"
8072
+ },
8073
+ config: {
8074
+ layout: 9,
8075
+ main: {
8076
+ heading: "Previous Page",
8077
+ onClick: "backHandler"
8078
+ },
8079
+ style: {
8080
+ color: theme.palette.primary.dark,
8081
+ fontSize: "12px",
8082
+ cursor: "pointer",
8083
+ marginLeft: "-6px"
8084
+ }
8085
+ }
8086
+ }
8087
+ ]
8088
+ }
8089
+ ]
8056
8090
  }
8057
- },
8058
- {
8059
- type: "Control",
8060
- scope: "#/properties/notify",
8061
- options: {
8062
- widget: "Notify"
8063
- },
8064
- layout: 6
8065
- }
8066
- ]
8091
+ ]
8092
+ };
8093
+ return uiSchema;
8067
8094
  };
8068
8095
  const APISection = {
8069
8096
  type: "HorizontalLayout",
@@ -8285,7 +8312,7 @@ var event = (store2, dynamicData2, submitHandler, service2) => {
8285
8312
  },
8286
8313
  getFormData: Component(store2, dynamicData2, submitHandler, service2).getFormdata,
8287
8314
  getUiSchema: function() {
8288
- return EventUiSchema;
8315
+ return EventUiSchema(store2.theme.myTheme);
8289
8316
  },
8290
8317
  getSchema: () => {
8291
8318
  return EventSchema;