impaktapps-ui-builder 0.0.412-mtreemap.23 → 0.0.412-mtreemap.24

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.
@@ -188,6 +188,9 @@ const PageMasterUiSchema = (theme) => {
188
188
  color: "primary",
189
189
  onClick: "Edit_Components",
190
190
  tooltipMessage: "Edit This Record"
191
+ },
192
+ style: {
193
+ color: theme.palette.primary.main
191
194
  }
192
195
  }
193
196
  }
@@ -6820,103 +6823,106 @@ const CoreSection = {
6820
6823
  }
6821
6824
  ]
6822
6825
  };
6823
- const EventSection = {
6824
- type: "HorizontalLayout",
6825
- elements: [
6826
- {
6827
- type: "Control",
6828
- scope: "#/properties/events",
6829
- options: {
6830
- widget: "Table"
6831
- },
6832
- config: {
6833
- main: {
6834
- headerIcons: {
6835
- elements: [
6836
- {
6837
- widget: {
6838
- type: "Control",
6839
- scope: "#/properties/New_Record",
6840
- options: {
6841
- widget: "IconButton"
6842
- },
6843
- config: {
6844
- main: {
6845
- color: "info",
6846
- onClick: "eventAddHandler",
6847
- size: "small",
6848
- icon: "AddIcon",
6849
- iconLabel: "Add New",
6850
- styleDefault: true
6826
+ const EventSection = (theme) => {
6827
+ const uiSchema = {
6828
+ type: "HorizontalLayout",
6829
+ elements: [
6830
+ {
6831
+ type: "Control",
6832
+ scope: "#/properties/events",
6833
+ options: {
6834
+ widget: "Table"
6835
+ },
6836
+ config: {
6837
+ main: {
6838
+ headerIcons: {
6839
+ elements: [
6840
+ {
6841
+ widget: {
6842
+ type: "Control",
6843
+ scope: "#/properties/New_Record",
6844
+ options: {
6845
+ widget: "IconButton"
6851
6846
  },
6852
- style: {
6853
- mt: "6px"
6847
+ config: {
6848
+ main: {
6849
+ color: "info",
6850
+ onClick: "eventAddHandler",
6851
+ size: "small",
6852
+ icon: "AddIcon",
6853
+ iconLabel: "Add New",
6854
+ styleDefault: true
6855
+ },
6856
+ style: {
6857
+ mt: "6px"
6858
+ }
6854
6859
  }
6855
6860
  }
6856
6861
  }
6857
- }
6858
- ]
6859
- },
6860
- disableAction: true,
6861
- disableSelection: true,
6862
- enableDrag: true
6863
- }
6864
- },
6865
- elements: [
6866
- {
6867
- accessorKey: "eventType",
6868
- header: "Event Type"
6869
- },
6870
- {
6871
- accessorKey: "Handler",
6872
- header: "Handler"
6873
- },
6874
- {
6875
- accessorKey: "Edit_Approve_Records",
6876
- header: "Edit Widget",
6877
- widget: {
6878
- type: "Control",
6879
- scope: "#/properties/Edit_Records",
6880
- options: {
6881
- widget: "IconButton"
6862
+ ]
6882
6863
  },
6883
- config: {
6884
- main: {
6885
- color: "info",
6886
- size: "small",
6887
- icon: "EditIcon",
6888
- tooltipMessage: "Edit This Record",
6889
- onClick: "eventEditHandler"
6864
+ disableAction: true,
6865
+ disableSelection: true,
6866
+ enableDrag: true
6867
+ }
6868
+ },
6869
+ elements: [
6870
+ {
6871
+ accessorKey: "eventType",
6872
+ header: "Event Type"
6873
+ },
6874
+ {
6875
+ accessorKey: "Handler",
6876
+ header: "Handler"
6877
+ },
6878
+ {
6879
+ accessorKey: "Edit_Approve_Records",
6880
+ header: "Edit Widget",
6881
+ widget: {
6882
+ type: "Control",
6883
+ scope: "#/properties/Edit_Records",
6884
+ options: {
6885
+ widget: "IconButton"
6890
6886
  },
6891
- style: {
6892
- color: "#3949ab"
6887
+ config: {
6888
+ main: {
6889
+ color: "info",
6890
+ size: "small",
6891
+ icon: "EditIcon",
6892
+ tooltipMessage: "Edit This Record",
6893
+ onClick: "eventEditHandler"
6894
+ },
6895
+ style: {
6896
+ color: theme
6897
+ }
6893
6898
  }
6894
6899
  }
6895
- }
6896
- },
6897
- {
6898
- accessorKey: "Reject_Records",
6899
- header: "Delete",
6900
- widget: {
6901
- type: "Control",
6902
- scope: "#/properties/RejectButton",
6903
- accessorKeyName: "Reject_Records",
6904
- options: {
6905
- widget: "IconButton"
6906
- },
6907
- config: {
6908
- main: {
6909
- icon: "RejectIcon",
6910
- color: "error",
6911
- tooltipMessage: "Reject This Record",
6912
- onClick: "deletePopUpEvent"
6900
+ },
6901
+ {
6902
+ accessorKey: "Reject_Records",
6903
+ header: "Delete",
6904
+ widget: {
6905
+ type: "Control",
6906
+ scope: "#/properties/RejectButton",
6907
+ accessorKeyName: "Reject_Records",
6908
+ options: {
6909
+ widget: "IconButton"
6910
+ },
6911
+ config: {
6912
+ main: {
6913
+ icon: "RejectIcon",
6914
+ color: "error",
6915
+ tooltipMessage: "Reject This Record",
6916
+ onClick: "deletePopUpEvent"
6917
+ }
6913
6918
  }
6914
6919
  }
6915
6920
  }
6916
- }
6917
- ]
6918
- }
6919
- ]
6921
+ ]
6922
+ }
6923
+ ]
6924
+ };
6925
+ return uiSchema;
6920
6926
  };
6921
6927
  var emptyBox = {
6922
6928
  type: "Control",
@@ -7331,100 +7337,106 @@ const StyleSection = {
7331
7337
  }
7332
7338
  ]
7333
7339
  };
7334
- const TableSection = {
7335
- type: "HorizontalLayout",
7336
- elements: [
7337
- {
7338
- type: "Control",
7339
- scope: "#/properties/elements",
7340
- options: {
7341
- widget: "Table"
7342
- },
7343
- config: {
7344
- main: {
7345
- headerIcons: {
7346
- elements: [
7347
- {
7348
- widget: {
7349
- type: "Control",
7350
- scope: "#/properties/New_Record",
7351
- options: {
7352
- widget: "IconButton"
7353
- },
7354
- config: {
7355
- main: {
7356
- color: "info",
7357
- onClick: "widgetAddClickHandler",
7358
- size: "small",
7359
- icon: "AddIcon",
7360
- iconLabel: "Add New",
7361
- styleDefault: true
7340
+ const TableSection = (theme) => {
7341
+ const uiSchema = {
7342
+ type: "HorizontalLayout",
7343
+ elements: [
7344
+ {
7345
+ type: "Control",
7346
+ scope: "#/properties/elements",
7347
+ options: {
7348
+ widget: "Table"
7349
+ },
7350
+ config: {
7351
+ main: {
7352
+ headerIcons: {
7353
+ elements: [
7354
+ {
7355
+ widget: {
7356
+ type: "Control",
7357
+ scope: "#/properties/New_Record",
7358
+ options: {
7359
+ widget: "IconButton"
7362
7360
  },
7363
- style: {
7364
- mt: "6px"
7361
+ config: {
7362
+ main: {
7363
+ color: "info",
7364
+ onClick: "widgetAddClickHandler",
7365
+ size: "small",
7366
+ icon: "AddIcon",
7367
+ iconLabel: "Add New",
7368
+ styleDefault: true
7369
+ },
7370
+ style: {
7371
+ mt: "6px"
7372
+ }
7365
7373
  }
7366
7374
  }
7367
7375
  }
7368
- }
7369
- ]
7370
- },
7371
- disableAction: true,
7372
- disableSelection: true,
7373
- enableDrag: true
7374
- }
7375
- },
7376
- elements: [
7377
- {
7378
- accessorKey: "name",
7379
- header: "Name"
7380
- },
7381
- {
7382
- accessorKey: "type",
7383
- header: "Type"
7384
- },
7385
- {
7386
- header: "Edit Record",
7387
- field: "Reject_Records",
7388
- flex: 1,
7389
- widget: {
7390
- type: "Control",
7391
- scope: "#/properties/RejectButton",
7392
- options: {
7393
- widget: "IconButton"
7376
+ ]
7394
7377
  },
7395
- config: {
7396
- main: {
7397
- icon: "EditIcon",
7398
- color: "primary",
7399
- onClick: "editComponents",
7400
- tooltipMessage: "Reject This Record"
7401
- }
7402
- }
7378
+ disableAction: true,
7379
+ disableSelection: true,
7380
+ enableDrag: true
7403
7381
  }
7404
7382
  },
7405
- {
7406
- header: "Delete",
7407
- field: "Reject_Records",
7408
- flex: 1,
7409
- widget: {
7410
- type: "Control",
7411
- scope: "#/properties/RejectButton",
7412
- options: {
7413
- widget: "IconButton"
7414
- },
7415
- config: {
7416
- main: {
7417
- icon: "RejectIcon",
7418
- color: "error",
7419
- onClick: "deletePopUpComponent",
7420
- tooltipMessage: "Reject This Record"
7383
+ elements: [
7384
+ {
7385
+ accessorKey: "name",
7386
+ header: "Name"
7387
+ },
7388
+ {
7389
+ accessorKey: "type",
7390
+ header: "Type"
7391
+ },
7392
+ {
7393
+ header: "Edit Record",
7394
+ field: "Reject_Records",
7395
+ flex: 1,
7396
+ widget: {
7397
+ type: "Control",
7398
+ scope: "#/properties/RejectButton",
7399
+ options: {
7400
+ widget: "IconButton"
7401
+ },
7402
+ config: {
7403
+ main: {
7404
+ icon: "EditIcon",
7405
+ color: "primary",
7406
+ onClick: "editComponents",
7407
+ tooltipMessage: "Reject This Record"
7408
+ },
7409
+ style: {
7410
+ color: theme.palette.primary.main
7411
+ }
7412
+ }
7413
+ }
7414
+ },
7415
+ {
7416
+ header: "Delete",
7417
+ field: "Reject_Records",
7418
+ flex: 1,
7419
+ widget: {
7420
+ type: "Control",
7421
+ scope: "#/properties/RejectButton",
7422
+ options: {
7423
+ widget: "IconButton"
7424
+ },
7425
+ config: {
7426
+ main: {
7427
+ icon: "RejectIcon",
7428
+ color: "error",
7429
+ onClick: "deletePopUpComponent",
7430
+ tooltipMessage: "Reject This Record"
7431
+ }
7421
7432
  }
7422
7433
  }
7423
7434
  }
7424
- }
7425
- ]
7426
- }
7427
- ]
7435
+ ]
7436
+ }
7437
+ ]
7438
+ };
7439
+ return uiSchema;
7428
7440
  };
7429
7441
  const ValueTab = {
7430
7442
  type: "HorizontalLayout",
@@ -7719,8 +7731,8 @@ const refreshPage = (type, store2) => {
7719
7731
  Core: CoreSection,
7720
7732
  Value: ValueTab,
7721
7733
  Style: StyleSection,
7722
- Event: EventSection,
7723
- Components: TableSection,
7734
+ Event: EventSection(store2.theme.myTheme),
7735
+ Components: TableSection(store2.theme.myTheme),
7724
7736
  Properties: buildPropertiesSection(type),
7725
7737
  Validation: ValidationSection
7726
7738
  };
@@ -8136,7 +8148,7 @@ const EventUiSchema = (theme) => {
8136
8148
  onClick: "editEvent"
8137
8149
  },
8138
8150
  style: {
8139
- color: "#3949ab"
8151
+ color: theme.palette.primary.main
8140
8152
  }
8141
8153
  }
8142
8154
  }