@genesislcap/foundation-entity-management 14.66.0 → 14.67.0

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.
Files changed (2) hide show
  1. package/dist/custom-elements.json +685 -685
  2. package/package.json +13 -13
@@ -724,7 +724,7 @@
724
724
  },
725
725
  {
726
726
  "kind": "javascript-module",
727
- "path": "src/main/index.ts",
727
+ "path": "src/list/index.ts",
728
728
  "declarations": [],
729
729
  "exports": [
730
730
  {
@@ -732,93 +732,109 @@
732
732
  "name": "*",
733
733
  "declaration": {
734
734
  "name": "*",
735
- "package": "./main.template"
735
+ "package": "./list"
736
736
  }
737
- },
737
+ }
738
+ ]
739
+ },
740
+ {
741
+ "kind": "javascript-module",
742
+ "path": "src/list/list.styles.ts",
743
+ "declarations": [
744
+ {
745
+ "kind": "variable",
746
+ "name": "listStyles",
747
+ "default": "css`\n :host {\n contain: content;\n }\n\n :host,\n fast-router {\n display: flex;\n flex-direction: column;\n width: 100%;\n height: 100%;\n }\n\n .container {\n display: flex;\n flex-direction: column;\n height: inherit;\n width: 100%;\n }\n`"
748
+ }
749
+ ],
750
+ "exports": [
738
751
  {
739
752
  "kind": "js",
740
- "name": "*",
753
+ "name": "listStyles",
741
754
  "declaration": {
742
- "name": "*",
743
- "package": "./main"
755
+ "name": "listStyles",
756
+ "module": "src/list/list.styles.ts"
744
757
  }
745
758
  }
746
759
  ]
747
760
  },
748
761
  {
749
762
  "kind": "javascript-module",
750
- "path": "src/main/main.styles.ts",
763
+ "path": "src/list/list.template.ts",
751
764
  "declarations": [
752
765
  {
753
766
  "kind": "variable",
754
- "name": "MainStyles",
755
- "default": "css`\n ${mixinRobotoFont()}\n :host {\n contain: content;\n }\n\n :host,\n zero-design-system-provider,\n .dynamic-template,\n foundation-router {\n display: flex;\n width: 100%;\n height: 100%;\n }\n\n fast-progress {\n --accent-foreground-rest: #654df9;\n\n height: calc(var(--design-unit) * 1px);\n margin: 0;\n width: 100%;\n }\n`"
767
+ "name": "listTemplate",
768
+ "default": "html<List>`\n <div class=\"container\">\n ${when(\n (x) => x.enableFilterBar,\n html<List>`\n <zero-filter-bar\n resource=${(x) => x.resourceName}\n only=${(x) => x.columns?.map((colDef) => colDef.field).filter((field) => !!field)}\n labels=${(x) => x.columns?.map((colDef) => colDef.headerName || '')}\n target=\"datasource\"\n ></zero-filter-bar>\n `,\n )}\n <zero-grid-pro\n ${ref('grid')}\n auto-cell-renderer-by-type\n rowSelection=\"single\"\n rowHeight=\"36\"\n headerHeight=\"36\"\n persist-column-state-key=${(x) => x.persistColumnStateKey}\n ?only-template-col-defs=${(x) => !!x.columns}\n suppressCellFocus=\"true\"\n suppressRowDeselection=\"true\"\n enable-cell-flashing=${(x) => x.enableCellFlashing}\n >\n <grid-pro-genesis-datasource\n ${ref('datasource')}\n :deferredGridOptions=${(x) => x.gridOptions}\n resource-name=${(x) => x.resourceName}\n criteria=${(x) => x.datasourceConfig?.criteria}\n fields=${(x) => x.datasourceConfig?.fields}\n is-snapshot=${(x) => x.datasourceConfig?.isSnapshot}\n max-rows=${(x) => x.datasourceConfig?.maxRows}\n max-view=${(x) => x.datasourceConfig?.maxView}\n order-by=${(x) => x.datasourceConfig?.orderBy}\n reverse=${(x) => x.datasourceConfig?.reverse}\n ></grid-pro-genesis-datasource>\n ${repeat(\n (x) => x.columns,\n html`\n <grid-pro-column :definition=${(x) => x}></grid-pro-column>\n `,\n )}\n ${repeat(\n (x) => x.actionButtonsConfig,\n html`\n <grid-pro-column :definition=${(x) => x}></grid-pro-column>\n `,\n )}\n </zero-grid-pro>\n </div>\n`"
756
769
  }
757
770
  ],
758
771
  "exports": [
759
772
  {
760
773
  "kind": "js",
761
- "name": "MainStyles",
774
+ "name": "listTemplate",
762
775
  "declaration": {
763
- "name": "MainStyles",
764
- "module": "src/main/main.styles.ts"
776
+ "name": "listTemplate",
777
+ "module": "src/list/list.template.ts"
765
778
  }
766
779
  }
767
780
  ]
768
781
  },
769
782
  {
770
783
  "kind": "javascript-module",
771
- "path": "src/main/main.template.ts",
772
- "declarations": [],
773
- "exports": []
774
- },
775
- {
776
- "kind": "javascript-module",
777
- "path": "src/main/main.ts",
784
+ "path": "src/list/list.ts",
778
785
  "declarations": [
779
786
  {
780
787
  "kind": "class",
781
788
  "description": "",
782
- "name": "MainApplication",
789
+ "name": "List",
783
790
  "members": [
784
791
  {
785
792
  "kind": "field",
786
- "name": "config",
793
+ "name": "resourceName",
787
794
  "type": {
788
- "text": "MainRouterConfig"
789
- }
795
+ "text": "string"
796
+ },
797
+ "default": "''"
790
798
  },
791
799
  {
792
800
  "kind": "field",
793
- "name": "connect",
801
+ "name": "title",
794
802
  "type": {
795
- "text": "Connect"
803
+ "text": "string"
804
+ },
805
+ "default": "''"
806
+ },
807
+ {
808
+ "kind": "field",
809
+ "name": "persistColumnStateKey",
810
+ "type": {
811
+ "text": "string"
796
812
  }
797
813
  },
798
814
  {
799
815
  "kind": "field",
800
- "name": "session",
816
+ "name": "sizeColumnsToFit",
801
817
  "type": {
802
- "text": "Session"
818
+ "text": "boolean"
803
819
  }
804
820
  },
805
821
  {
806
822
  "kind": "field",
807
- "name": "container",
823
+ "name": "enableFilterBar",
808
824
  "type": {
809
- "text": "Container"
825
+ "text": "boolean"
810
826
  }
811
827
  },
812
828
  {
813
829
  "kind": "field",
814
- "name": "provider",
830
+ "name": "enableCellFlashing",
815
831
  "type": {
816
- "text": "any"
832
+ "text": "boolean"
817
833
  }
818
834
  },
819
835
  {
820
836
  "kind": "field",
821
- "name": "ready",
837
+ "name": "hideEdit",
822
838
  "type": {
823
839
  "text": "boolean"
824
840
  },
@@ -826,364 +842,404 @@
826
842
  },
827
843
  {
828
844
  "kind": "field",
829
- "name": "data",
845
+ "name": "hideDelete",
830
846
  "type": {
831
- "text": "any"
847
+ "text": "boolean"
832
848
  },
833
- "default": "null"
834
- },
835
- {
836
- "kind": "method",
837
- "name": "onLuminanceToggle"
838
- },
839
- {
840
- "kind": "method",
841
- "name": "loadRemotes"
842
- },
843
- {
844
- "kind": "method",
845
- "name": "selectTemplate"
846
- },
847
- {
848
- "kind": "method",
849
- "name": "registerDIDependencies",
850
- "privacy": "private"
851
- }
852
- ],
853
- "superclass": {
854
- "name": "FASTElement",
855
- "package": "@microsoft/fast-element"
856
- },
857
- "customElement": true
858
- }
859
- ],
860
- "exports": [
861
- {
862
- "kind": "js",
863
- "name": "MainApplication",
864
- "declaration": {
865
- "name": "MainApplication",
866
- "module": "src/main/main.ts"
867
- }
868
- },
869
- {
870
- "kind": "custom-element-definition",
871
- "declaration": {
872
- "name": "MainApplication",
873
- "module": "src/main/main.ts"
874
- }
875
- }
876
- ]
877
- },
878
- {
879
- "kind": "javascript-module",
880
- "path": "src/profiles/editProfileSchema.ts",
881
- "declarations": [
882
- {
883
- "kind": "variable",
884
- "name": "editProfileFormSchema",
885
- "type": {
886
- "text": "object"
887
- },
888
- "default": "{\n type: 'VerticalLayout',\n elements: [\n {\n type: 'Control',\n label: 'Name',\n scope: '#/properties/NAME',\n },\n {\n type: 'Control',\n label: 'Description',\n scope: '#/properties/DESCRIPTION',\n },\n {\n type: 'Control',\n label: 'Status',\n scope: '#/properties/STATUS',\n },\n {\n type: 'Control',\n label: 'Rights',\n scope: '#/properties/RIGHT_CODES',\n options: {\n allOptionsResourceName: 'RIGHT',\n valueField: 'CODE',\n labelField: 'CODE',\n },\n },\n {\n type: 'Control',\n label: 'Users',\n scope: '#/properties/USER_NAMES',\n options: {\n allOptionsResourceName: 'USER',\n valueField: 'USER_NAME',\n labelField: 'USER_NAME',\n },\n },\n ],\n}"
889
- }
890
- ],
891
- "exports": [
892
- {
893
- "kind": "js",
894
- "name": "editProfileFormSchema",
895
- "declaration": {
896
- "name": "editProfileFormSchema",
897
- "module": "src/profiles/editProfileSchema.ts"
898
- }
899
- }
900
- ]
901
- },
902
- {
903
- "kind": "javascript-module",
904
- "path": "src/profiles/profiles.ts",
905
- "declarations": [
906
- {
907
- "kind": "class",
908
- "description": "Main class which defined the profile management functionality",
909
- "name": "Profiles",
910
- "members": [
911
- {
912
- "kind": "method",
913
- "name": "readProfileData",
914
- "privacy": "public",
915
- "parameters": [
916
- {
917
- "name": "profile"
918
- }
919
- ]
920
- },
921
- {
922
- "kind": "method",
923
- "name": "confirmDelete",
924
- "inheritedFrom": {
925
- "name": "EntityManagement",
926
- "module": "src/entities/entities.ts"
927
- }
849
+ "default": "false"
928
850
  },
929
851
  {
930
852
  "kind": "field",
931
- "name": "createEvent",
853
+ "name": "grid",
932
854
  "type": {
933
- "text": "string"
855
+ "text": "ZeroGridPro"
934
856
  },
935
- "description": "Name of the event handler on the Genesis server which handles creating an entity",
936
- "privacy": "public",
937
- "inheritedFrom": {
938
- "name": "EntityManagement",
939
- "module": "src/entities/entities.ts"
940
- }
857
+ "privacy": "public"
941
858
  },
942
859
  {
943
860
  "kind": "field",
944
- "name": "deleteEvent",
861
+ "name": "datasource",
945
862
  "type": {
946
- "text": "string"
863
+ "text": "GridProGenesisDatasource"
947
864
  },
948
- "description": "Name of the event handler on the Genesis server which handles deleting the entity",
949
- "privacy": "public",
950
- "inheritedFrom": {
951
- "name": "EntityManagement",
952
- "module": "src/entities/entities.ts"
953
- }
865
+ "privacy": "public"
954
866
  },
955
867
  {
956
868
  "kind": "field",
957
- "name": "updateEvent",
869
+ "name": "gridOptions",
958
870
  "type": {
959
- "text": "string"
960
- },
961
- "description": "Name of the event handler on the Genesis server which handles updating the entity",
962
- "privacy": "public",
963
- "inheritedFrom": {
964
- "name": "EntityManagement",
965
- "module": "src/entities/entities.ts"
871
+ "text": "GridOptions"
966
872
  }
967
873
  },
968
874
  {
969
875
  "kind": "field",
970
- "name": "persistColumnStateKey",
876
+ "name": "columns",
971
877
  "type": {
972
- "text": "string"
973
- },
974
- "description": "This attribute controls whether and how the entity manager stores the state of the columns when the user edits them. Omit this attribute to disable the functionality, set it to a unique value to enable it.",
975
- "privacy": "public",
976
- "default": "'entity_profiles_management'",
977
- "inheritedFrom": {
978
- "name": "EntityManagement",
979
- "module": "src/entities/entities.ts"
878
+ "text": "ColDef[]"
980
879
  }
981
880
  },
982
881
  {
983
882
  "kind": "field",
984
- "name": "updateFormUiSchema",
883
+ "name": "datasourceConfig",
985
884
  "type": {
986
- "text": "any"
987
- },
988
- "default": "editProfileFormSchema",
989
- "inheritedFrom": {
990
- "name": "EntityManagement",
991
- "module": "src/entities/entities.ts"
885
+ "text": "DatasourceConfiguration"
992
886
  }
993
887
  },
994
888
  {
995
889
  "kind": "field",
996
- "name": "createFormUiSchema",
890
+ "name": "actionButtonsConfig",
997
891
  "type": {
998
- "text": "any"
892
+ "text": "array"
999
893
  },
1000
- "default": "editProfileFormSchema",
1001
- "inheritedFrom": {
1002
- "name": "EntityManagement",
1003
- "module": "src/entities/entities.ts"
1004
- }
894
+ "default": "[]"
1005
895
  },
1006
896
  {
1007
897
  "kind": "field",
1008
- "name": "readEventFn",
898
+ "name": "deleteEvent",
1009
899
  "type": {
1010
- "text": "(...args) => {}"
1011
- },
1012
- "inheritedFrom": {
1013
- "name": "EntityManagement",
1014
- "module": "src/entities/entities.ts"
900
+ "text": "string"
1015
901
  }
1016
902
  },
1017
903
  {
1018
904
  "kind": "field",
1019
- "name": "resourceName",
905
+ "name": "updateEvent",
1020
906
  "type": {
1021
907
  "text": "string"
1022
- },
1023
- "description": "Name of the backend resource which contain the entities to manage",
1024
- "privacy": "public",
1025
- "default": "'ALL_PROFILES'",
1026
- "inheritedFrom": {
1027
- "name": "EntityManagement",
1028
- "module": "src/entities/entities.ts"
1029
908
  }
1030
909
  },
910
+ {
911
+ "kind": "method",
912
+ "name": "handleFilterChanged",
913
+ "privacy": "private",
914
+ "parameters": [
915
+ {
916
+ "name": "e"
917
+ }
918
+ ]
919
+ },
920
+ {
921
+ "kind": "method",
922
+ "name": "handleFilterCleared",
923
+ "privacy": "private",
924
+ "parameters": [
925
+ {
926
+ "name": "e"
927
+ }
928
+ ]
929
+ },
930
+ {
931
+ "kind": "method",
932
+ "name": "select",
933
+ "privacy": "private",
934
+ "parameters": [
935
+ {
936
+ "name": "e"
937
+ }
938
+ ]
939
+ },
1031
940
  {
1032
941
  "kind": "field",
942
+ "name": "edit",
943
+ "privacy": "private"
944
+ },
945
+ {
946
+ "kind": "method",
947
+ "name": "delete",
948
+ "parameters": [
949
+ {
950
+ "name": "e"
951
+ }
952
+ ]
953
+ }
954
+ ],
955
+ "attributes": [
956
+ {
957
+ "name": "resourceName",
958
+ "type": {
959
+ "text": "string"
960
+ },
961
+ "default": "''",
962
+ "fieldName": "resourceName"
963
+ },
964
+ {
1033
965
  "name": "title",
1034
966
  "type": {
1035
967
  "text": "string"
1036
968
  },
1037
- "description": "Title of the grid",
1038
- "privacy": "public",
1039
- "default": "'Profile Management'",
1040
- "inheritedFrom": {
1041
- "name": "EntityManagement",
1042
- "module": "src/entities/entities.ts"
1043
- }
969
+ "default": "''",
970
+ "fieldName": "title"
1044
971
  },
1045
972
  {
1046
- "kind": "field",
1047
- "name": "entityLabel",
973
+ "name": "persist-column-state-key",
1048
974
  "type": {
1049
975
  "text": "string"
1050
976
  },
1051
- "default": "'Profile'",
1052
- "description": "Label for the entity which has usages such as being shown in the title of the modal wen editing the entity",
1053
- "privacy": "public",
1054
- "inheritedFrom": {
1055
- "name": "EntityManagement",
1056
- "module": "src/entities/entities.ts"
1057
- }
977
+ "fieldName": "persistColumnStateKey"
1058
978
  },
1059
979
  {
1060
- "kind": "field",
1061
- "name": "connect",
980
+ "name": "size-columns-to-fit",
1062
981
  "type": {
1063
- "text": "Connect"
982
+ "text": "boolean"
1064
983
  },
1065
- "privacy": "protected",
1066
- "description": "DI connect object which is used to interact with the backend.",
1067
- "inheritedFrom": {
1068
- "name": "EntityManagement",
1069
- "module": "src/entities/entities.ts"
1070
- }
984
+ "fieldName": "sizeColumnsToFit"
1071
985
  },
1072
986
  {
1073
- "kind": "field",
1074
- "name": "readEvent",
987
+ "name": "enable-filter-bar",
1075
988
  "type": {
1076
- "text": "string"
989
+ "text": "boolean"
1077
990
  },
1078
- "inheritedFrom": {
1079
- "name": "EntityManagement",
1080
- "module": "src/entities/entities.ts"
1081
- }
991
+ "fieldName": "enableFilterBar"
1082
992
  },
1083
993
  {
1084
- "kind": "field",
1085
- "name": "readonly",
994
+ "name": "enable-cell-flashing",
1086
995
  "type": {
1087
996
  "text": "boolean"
1088
997
  },
1089
- "inheritedFrom": {
1090
- "name": "EntityManagement",
1091
- "module": "src/entities/entities.ts"
998
+ "fieldName": "enableCellFlashing"
999
+ },
1000
+ {
1001
+ "name": "hide-edit",
1002
+ "type": {
1003
+ "text": "boolean"
1004
+ },
1005
+ "default": "false",
1006
+ "fieldName": "hideEdit"
1007
+ },
1008
+ {
1009
+ "name": "hide-delete",
1010
+ "type": {
1011
+ "text": "boolean"
1012
+ },
1013
+ "default": "false",
1014
+ "fieldName": "hideDelete"
1015
+ }
1016
+ ],
1017
+ "superclass": {
1018
+ "name": "FASTElement",
1019
+ "package": "@microsoft/fast-element"
1020
+ },
1021
+ "tagName": "entity-list",
1022
+ "customElement": true
1023
+ }
1024
+ ],
1025
+ "exports": [
1026
+ {
1027
+ "kind": "js",
1028
+ "name": "List",
1029
+ "declaration": {
1030
+ "name": "List",
1031
+ "module": "src/list/list.ts"
1032
+ }
1033
+ },
1034
+ {
1035
+ "kind": "custom-element-definition",
1036
+ "name": "entity-list",
1037
+ "declaration": {
1038
+ "name": "List",
1039
+ "module": "src/list/list.ts"
1040
+ }
1041
+ }
1042
+ ]
1043
+ },
1044
+ {
1045
+ "kind": "javascript-module",
1046
+ "path": "src/main/index.ts",
1047
+ "declarations": [],
1048
+ "exports": [
1049
+ {
1050
+ "kind": "js",
1051
+ "name": "*",
1052
+ "declaration": {
1053
+ "name": "*",
1054
+ "package": "./main.template"
1055
+ }
1056
+ },
1057
+ {
1058
+ "kind": "js",
1059
+ "name": "*",
1060
+ "declaration": {
1061
+ "name": "*",
1062
+ "package": "./main"
1063
+ }
1064
+ }
1065
+ ]
1066
+ },
1067
+ {
1068
+ "kind": "javascript-module",
1069
+ "path": "src/main/main.styles.ts",
1070
+ "declarations": [
1071
+ {
1072
+ "kind": "variable",
1073
+ "name": "MainStyles",
1074
+ "default": "css`\n ${mixinRobotoFont()}\n :host {\n contain: content;\n }\n\n :host,\n zero-design-system-provider,\n .dynamic-template,\n foundation-router {\n display: flex;\n width: 100%;\n height: 100%;\n }\n\n fast-progress {\n --accent-foreground-rest: #654df9;\n\n height: calc(var(--design-unit) * 1px);\n margin: 0;\n width: 100%;\n }\n`"
1075
+ }
1076
+ ],
1077
+ "exports": [
1078
+ {
1079
+ "kind": "js",
1080
+ "name": "MainStyles",
1081
+ "declaration": {
1082
+ "name": "MainStyles",
1083
+ "module": "src/main/main.styles.ts"
1084
+ }
1085
+ }
1086
+ ]
1087
+ },
1088
+ {
1089
+ "kind": "javascript-module",
1090
+ "path": "src/main/main.template.ts",
1091
+ "declarations": [],
1092
+ "exports": []
1093
+ },
1094
+ {
1095
+ "kind": "javascript-module",
1096
+ "path": "src/main/main.ts",
1097
+ "declarations": [
1098
+ {
1099
+ "kind": "class",
1100
+ "description": "",
1101
+ "name": "MainApplication",
1102
+ "members": [
1103
+ {
1104
+ "kind": "field",
1105
+ "name": "config",
1106
+ "type": {
1107
+ "text": "MainRouterConfig"
1092
1108
  }
1093
1109
  },
1094
1110
  {
1095
1111
  "kind": "field",
1096
- "name": "gridOptions",
1112
+ "name": "connect",
1097
1113
  "type": {
1098
- "text": "GridOptions"
1099
- },
1100
- "description": "GridOptions to be passed down from application",
1101
- "privacy": "public",
1102
- "inheritedFrom": {
1103
- "name": "EntityManagement",
1104
- "module": "src/entities/entities.ts"
1114
+ "text": "Connect"
1105
1115
  }
1106
1116
  },
1107
1117
  {
1108
1118
  "kind": "field",
1109
- "name": "columns",
1119
+ "name": "session",
1110
1120
  "type": {
1111
- "text": "ColDef[]"
1112
- },
1113
- "description": "Array which holds the column definitions.",
1114
- "privacy": "public",
1115
- "inheritedFrom": {
1116
- "name": "EntityManagement",
1117
- "module": "src/entities/entities.ts"
1121
+ "text": "Session"
1118
1122
  }
1119
1123
  },
1120
1124
  {
1121
1125
  "kind": "field",
1122
- "name": "datasourceConfig",
1126
+ "name": "container",
1123
1127
  "type": {
1124
- "text": "DatasourceConfiguration"
1125
- },
1126
- "description": "The configuration which is used when interacting with the resource on the backend",
1127
- "privacy": "public",
1128
- "inheritedFrom": {
1129
- "name": "EntityManagement",
1130
- "module": "src/entities/entities.ts"
1128
+ "text": "Container"
1131
1129
  }
1132
1130
  },
1133
1131
  {
1134
1132
  "kind": "field",
1135
- "name": "formUiSchema",
1133
+ "name": "provider",
1136
1134
  "type": {
1137
1135
  "text": "any"
1138
- },
1139
- "inheritedFrom": {
1140
- "name": "EntityManagement",
1141
- "module": "src/entities/entities.ts"
1142
1136
  }
1143
1137
  },
1144
1138
  {
1145
1139
  "kind": "field",
1146
- "name": "selectedEntity",
1140
+ "name": "ready",
1147
1141
  "type": {
1148
- "text": "any"
1142
+ "text": "boolean"
1149
1143
  },
1150
- "description": "Reference to the currently selected entity from the grid.",
1151
- "privacy": "public",
1152
- "inheritedFrom": {
1153
- "name": "EntityManagement",
1154
- "module": "src/entities/entities.ts"
1155
- }
1144
+ "default": "false"
1156
1145
  },
1157
1146
  {
1158
1147
  "kind": "field",
1159
- "name": "editedEntity",
1148
+ "name": "data",
1160
1149
  "type": {
1161
1150
  "text": "any"
1162
1151
  },
1163
- "description": "Disables the form while enabled to stop the user dispatching a large number of duplicate events",
1164
- "privacy": "public",
1165
- "inheritedFrom": {
1166
- "name": "EntityManagement",
1167
- "module": "src/entities/entities.ts"
1168
- }
1152
+ "default": "null"
1153
+ },
1154
+ {
1155
+ "kind": "method",
1156
+ "name": "onLuminanceToggle"
1157
+ },
1158
+ {
1159
+ "kind": "method",
1160
+ "name": "loadRemotes"
1161
+ },
1162
+ {
1163
+ "kind": "method",
1164
+ "name": "selectTemplate"
1169
1165
  },
1170
1166
  {
1171
- "kind": "field",
1172
- "name": "submitting",
1173
- "type": {
1174
- "text": "boolean"
1175
- },
1176
- "inheritedFrom": {
1177
- "name": "EntityManagement",
1178
- "module": "src/entities/entities.ts"
1179
- }
1167
+ "kind": "method",
1168
+ "name": "registerDIDependencies",
1169
+ "privacy": "private"
1170
+ }
1171
+ ],
1172
+ "superclass": {
1173
+ "name": "FASTElement",
1174
+ "package": "@microsoft/fast-element"
1175
+ },
1176
+ "customElement": true
1177
+ }
1178
+ ],
1179
+ "exports": [
1180
+ {
1181
+ "kind": "js",
1182
+ "name": "MainApplication",
1183
+ "declaration": {
1184
+ "name": "MainApplication",
1185
+ "module": "src/main/main.ts"
1186
+ }
1187
+ },
1188
+ {
1189
+ "kind": "custom-element-definition",
1190
+ "declaration": {
1191
+ "name": "MainApplication",
1192
+ "module": "src/main/main.ts"
1193
+ }
1194
+ }
1195
+ ]
1196
+ },
1197
+ {
1198
+ "kind": "javascript-module",
1199
+ "path": "src/profiles/editProfileSchema.ts",
1200
+ "declarations": [
1201
+ {
1202
+ "kind": "variable",
1203
+ "name": "editProfileFormSchema",
1204
+ "type": {
1205
+ "text": "object"
1206
+ },
1207
+ "default": "{\n type: 'VerticalLayout',\n elements: [\n {\n type: 'Control',\n label: 'Name',\n scope: '#/properties/NAME',\n },\n {\n type: 'Control',\n label: 'Description',\n scope: '#/properties/DESCRIPTION',\n },\n {\n type: 'Control',\n label: 'Status',\n scope: '#/properties/STATUS',\n },\n {\n type: 'Control',\n label: 'Rights',\n scope: '#/properties/RIGHT_CODES',\n options: {\n allOptionsResourceName: 'RIGHT',\n valueField: 'CODE',\n labelField: 'CODE',\n },\n },\n {\n type: 'Control',\n label: 'Users',\n scope: '#/properties/USER_NAMES',\n options: {\n allOptionsResourceName: 'USER',\n valueField: 'USER_NAME',\n labelField: 'USER_NAME',\n },\n },\n ],\n}"
1208
+ }
1209
+ ],
1210
+ "exports": [
1211
+ {
1212
+ "kind": "js",
1213
+ "name": "editProfileFormSchema",
1214
+ "declaration": {
1215
+ "name": "editProfileFormSchema",
1216
+ "module": "src/profiles/editProfileSchema.ts"
1217
+ }
1218
+ }
1219
+ ]
1220
+ },
1221
+ {
1222
+ "kind": "javascript-module",
1223
+ "path": "src/profiles/profiles.ts",
1224
+ "declarations": [
1225
+ {
1226
+ "kind": "class",
1227
+ "description": "Main class which defined the profile management functionality",
1228
+ "name": "Profiles",
1229
+ "members": [
1230
+ {
1231
+ "kind": "method",
1232
+ "name": "readProfileData",
1233
+ "privacy": "public",
1234
+ "parameters": [
1235
+ {
1236
+ "name": "profile"
1237
+ }
1238
+ ]
1180
1239
  },
1181
1240
  {
1182
- "kind": "field",
1183
- "name": "defaultEntityValues",
1184
- "type": {
1185
- "text": "any"
1186
- },
1241
+ "kind": "method",
1242
+ "name": "confirmDelete",
1187
1243
  "inheritedFrom": {
1188
1244
  "name": "EntityManagement",
1189
1245
  "module": "src/entities/entities.ts"
@@ -1191,11 +1247,12 @@
1191
1247
  },
1192
1248
  {
1193
1249
  "kind": "field",
1194
- "name": "editDialogTitle",
1250
+ "name": "createEvent",
1195
1251
  "type": {
1196
1252
  "text": "string"
1197
1253
  },
1198
- "description": "String which contains the text of the popup modal when the user is adding or editing an entity",
1254
+ "description": "Name of the event handler on the Genesis server which handles creating an entity",
1255
+ "privacy": "public",
1199
1256
  "inheritedFrom": {
1200
1257
  "name": "EntityManagement",
1201
1258
  "module": "src/entities/entities.ts"
@@ -1203,19 +1260,12 @@
1203
1260
  },
1204
1261
  {
1205
1262
  "kind": "field",
1206
- "name": "editModalVisible",
1263
+ "name": "deleteEvent",
1207
1264
  "type": {
1208
- "text": "boolean"
1265
+ "text": "string"
1209
1266
  },
1210
- "default": "false",
1211
- "inheritedFrom": {
1212
- "name": "EntityManagement",
1213
- "module": "src/entities/entities.ts"
1214
- }
1215
- },
1216
- {
1217
- "kind": "method",
1218
- "name": "editModalVisibleChanged",
1267
+ "description": "Name of the event handler on the Genesis server which handles deleting the entity",
1268
+ "privacy": "public",
1219
1269
  "inheritedFrom": {
1220
1270
  "name": "EntityManagement",
1221
1271
  "module": "src/entities/entities.ts"
@@ -1223,10 +1273,11 @@
1223
1273
  },
1224
1274
  {
1225
1275
  "kind": "field",
1226
- "name": "editEntityModal",
1276
+ "name": "updateEvent",
1227
1277
  "type": {
1228
- "text": "any"
1278
+ "text": "string"
1229
1279
  },
1280
+ "description": "Name of the event handler on the Genesis server which handles updating the entity",
1230
1281
  "privacy": "public",
1231
1282
  "inheritedFrom": {
1232
1283
  "name": "EntityManagement",
@@ -1235,10 +1286,13 @@
1235
1286
  },
1236
1287
  {
1237
1288
  "kind": "field",
1238
- "name": "sizeColumnsToFit",
1289
+ "name": "persistColumnStateKey",
1239
1290
  "type": {
1240
- "text": "boolean"
1291
+ "text": "string"
1241
1292
  },
1293
+ "description": "This attribute controls whether and how the entity manager stores the state of the columns when the user edits them. Omit this attribute to disable the functionality, set it to a unique value to enable it.",
1294
+ "privacy": "public",
1295
+ "default": "'entity_profiles_management'",
1242
1296
  "inheritedFrom": {
1243
1297
  "name": "EntityManagement",
1244
1298
  "module": "src/entities/entities.ts"
@@ -1246,10 +1300,11 @@
1246
1300
  },
1247
1301
  {
1248
1302
  "kind": "field",
1249
- "name": "enableFilterBar",
1303
+ "name": "updateFormUiSchema",
1250
1304
  "type": {
1251
- "text": "boolean"
1305
+ "text": "any"
1252
1306
  },
1307
+ "default": "editProfileFormSchema",
1253
1308
  "inheritedFrom": {
1254
1309
  "name": "EntityManagement",
1255
1310
  "module": "src/entities/entities.ts"
@@ -1257,10 +1312,11 @@
1257
1312
  },
1258
1313
  {
1259
1314
  "kind": "field",
1260
- "name": "enableCellFlashing",
1315
+ "name": "createFormUiSchema",
1261
1316
  "type": {
1262
- "text": "boolean"
1317
+ "text": "any"
1263
1318
  },
1319
+ "default": "editProfileFormSchema",
1264
1320
  "inheritedFrom": {
1265
1321
  "name": "EntityManagement",
1266
1322
  "module": "src/entities/entities.ts"
@@ -1268,11 +1324,10 @@
1268
1324
  },
1269
1325
  {
1270
1326
  "kind": "field",
1271
- "name": "hideEdit",
1327
+ "name": "readEventFn",
1272
1328
  "type": {
1273
- "text": "boolean"
1329
+ "text": "(...args) => {}"
1274
1330
  },
1275
- "default": "false",
1276
1331
  "inheritedFrom": {
1277
1332
  "name": "EntityManagement",
1278
1333
  "module": "src/entities/entities.ts"
@@ -1280,11 +1335,13 @@
1280
1335
  },
1281
1336
  {
1282
1337
  "kind": "field",
1283
- "name": "hideDelete",
1338
+ "name": "resourceName",
1284
1339
  "type": {
1285
- "text": "boolean"
1340
+ "text": "string"
1286
1341
  },
1287
- "default": "false",
1342
+ "description": "Name of the backend resource which contain the entities to manage",
1343
+ "privacy": "public",
1344
+ "default": "'ALL_PROFILES'",
1288
1345
  "inheritedFrom": {
1289
1346
  "name": "EntityManagement",
1290
1347
  "module": "src/entities/entities.ts"
@@ -1292,418 +1349,207 @@
1292
1349
  },
1293
1350
  {
1294
1351
  "kind": "field",
1295
- "name": "modalPosition",
1352
+ "name": "title",
1296
1353
  "type": {
1297
- "text": "'centre' | 'left' | 'right'"
1354
+ "text": "string"
1298
1355
  },
1299
- "default": "'right'",
1300
- "description": "Determines where the modal dialog will appear on screen",
1356
+ "description": "Title of the grid",
1301
1357
  "privacy": "public",
1358
+ "default": "'Profile Management'",
1302
1359
  "inheritedFrom": {
1303
1360
  "name": "EntityManagement",
1304
1361
  "module": "src/entities/entities.ts"
1305
1362
  }
1306
1363
  },
1307
1364
  {
1308
- "kind": "method",
1309
- "name": "deepClone",
1310
- "return": {
1311
- "type": {
1312
- "text": "Node"
1313
- }
1365
+ "kind": "field",
1366
+ "name": "entityLabel",
1367
+ "type": {
1368
+ "text": "string"
1314
1369
  },
1315
- "description": "Override the deepClone method to ensure that observable attributes are cloned",
1316
- "privacy": "public",
1317
- "inheritedFrom": {
1318
- "name": "EntityManagement",
1319
- "module": "src/entities/entities.ts"
1320
- }
1321
- },
1322
- {
1323
- "kind": "method",
1324
- "name": "submitEntityChanges",
1325
- "privacy": "public",
1326
- "parameters": [
1327
- {
1328
- "name": "e",
1329
- "type": {
1330
- "text": "CustomEvent"
1331
- },
1332
- "description": "CustomEvent which contains the payload for the entity to submit to the backend\n\nEmits an event upon error"
1333
- }
1334
- ],
1335
- "description": "Event handler for when the user submits the action for the currently open form, either editing or adding the entity",
1336
- "inheritedFrom": {
1337
- "name": "EntityManagement",
1338
- "module": "src/entities/entities.ts"
1339
- }
1340
- },
1341
- {
1342
- "kind": "method",
1343
- "name": "readEntity",
1344
- "privacy": "private",
1345
- "parameters": [
1346
- {
1347
- "name": "e",
1348
- "type": {
1349
- "text": "CustomEvent"
1350
- }
1351
- }
1352
- ],
1353
- "inheritedFrom": {
1354
- "name": "EntityManagement",
1355
- "module": "src/entities/entities.ts"
1356
- }
1357
- },
1358
- {
1359
- "kind": "method",
1360
- "name": "closeModal",
1361
- "privacy": "public",
1362
- "inheritedFrom": {
1363
- "name": "EntityManagement",
1364
- "module": "src/entities/entities.ts"
1365
- }
1366
- },
1367
- {
1368
- "kind": "method",
1369
- "name": "criteriaChanged",
1370
+ "default": "'Profile'",
1371
+ "description": "Label for the entity which has usages such as being shown in the title of the modal wen editing the entity",
1370
1372
  "privacy": "public",
1371
- "parameters": [
1372
- {
1373
- "name": "e",
1374
- "type": {
1375
- "text": "CustomEvent<string>"
1376
- }
1377
- }
1378
- ],
1379
1373
  "inheritedFrom": {
1380
1374
  "name": "EntityManagement",
1381
1375
  "module": "src/entities/entities.ts"
1382
1376
  }
1383
1377
  },
1384
1378
  {
1385
- "kind": "method",
1386
- "name": "showDeleteConfirmation",
1387
- "privacy": "private",
1388
- "inheritedFrom": {
1389
- "name": "EntityManagement",
1390
- "module": "src/entities/entities.ts"
1391
- }
1392
- }
1393
- ],
1394
- "superclass": {
1395
- "name": "EntityManagement",
1396
- "module": "/src/entities"
1397
- },
1398
- "tagName": "profile-management",
1399
- "customElement": true,
1400
- "attributes": [
1401
- {
1402
- "name": "resourceName",
1379
+ "kind": "field",
1380
+ "name": "connect",
1403
1381
  "type": {
1404
- "text": "string"
1382
+ "text": "Connect"
1405
1383
  },
1406
- "description": "Name of the backend resource which contain the entities to manage",
1407
- "fieldName": "resourceName",
1384
+ "privacy": "protected",
1385
+ "description": "DI connect object which is used to interact with the backend.",
1408
1386
  "inheritedFrom": {
1409
1387
  "name": "EntityManagement",
1410
1388
  "module": "src/entities/entities.ts"
1411
1389
  }
1412
1390
  },
1413
1391
  {
1392
+ "kind": "field",
1414
1393
  "name": "readEvent",
1415
1394
  "type": {
1416
1395
  "text": "string"
1417
1396
  },
1418
- "fieldName": "readEvent",
1419
1397
  "inheritedFrom": {
1420
1398
  "name": "EntityManagement",
1421
1399
  "module": "src/entities/entities.ts"
1422
1400
  }
1423
1401
  },
1424
1402
  {
1403
+ "kind": "field",
1404
+ "name": "readonly",
1425
1405
  "type": {
1426
1406
  "text": "boolean"
1427
1407
  },
1428
- "fieldName": "readonly",
1429
- "inheritedFrom": {
1430
- "name": "EntityManagement",
1431
- "module": "src/entities/entities.ts"
1432
- }
1433
- },
1434
- {
1435
- "name": "updateEvent",
1436
- "type": {
1437
- "text": "string"
1438
- },
1439
- "description": "Name of the event handler on the Genesis server which handles updating the entity",
1440
- "fieldName": "updateEvent",
1441
1408
  "inheritedFrom": {
1442
1409
  "name": "EntityManagement",
1443
1410
  "module": "src/entities/entities.ts"
1444
1411
  }
1445
1412
  },
1446
1413
  {
1447
- "name": "deleteEvent",
1414
+ "kind": "field",
1415
+ "name": "gridOptions",
1448
1416
  "type": {
1449
- "text": "string"
1417
+ "text": "GridOptions"
1450
1418
  },
1451
- "description": "Name of the event handler on the Genesis server which handles deleting the entity",
1452
- "fieldName": "deleteEvent",
1419
+ "description": "GridOptions to be passed down from application",
1420
+ "privacy": "public",
1453
1421
  "inheritedFrom": {
1454
1422
  "name": "EntityManagement",
1455
1423
  "module": "src/entities/entities.ts"
1456
1424
  }
1457
1425
  },
1458
1426
  {
1459
- "name": "createEvent",
1427
+ "kind": "field",
1428
+ "name": "columns",
1460
1429
  "type": {
1461
- "text": "string"
1430
+ "text": "ColDef[]"
1462
1431
  },
1463
- "description": "Name of the event handler on the Genesis server which handles creating an entity",
1464
- "fieldName": "createEvent",
1432
+ "description": "Array which holds the column definitions.",
1433
+ "privacy": "public",
1465
1434
  "inheritedFrom": {
1466
1435
  "name": "EntityManagement",
1467
1436
  "module": "src/entities/entities.ts"
1468
1437
  }
1469
1438
  },
1470
1439
  {
1471
- "name": "title",
1440
+ "kind": "field",
1441
+ "name": "datasourceConfig",
1472
1442
  "type": {
1473
- "text": "string"
1443
+ "text": "DatasourceConfiguration"
1474
1444
  },
1475
- "description": "Title of the grid",
1476
- "fieldName": "title",
1445
+ "description": "The configuration which is used when interacting with the resource on the backend",
1446
+ "privacy": "public",
1477
1447
  "inheritedFrom": {
1478
1448
  "name": "EntityManagement",
1479
1449
  "module": "src/entities/entities.ts"
1480
1450
  }
1481
1451
  },
1482
1452
  {
1483
- "name": "entityLabel",
1453
+ "kind": "field",
1454
+ "name": "formUiSchema",
1484
1455
  "type": {
1485
- "text": "string"
1456
+ "text": "any"
1486
1457
  },
1487
- "default": "''",
1488
- "description": "Label for the entity which has usages such as being shown in the title of the modal wen editing the entity",
1489
- "fieldName": "entityLabel",
1490
1458
  "inheritedFrom": {
1491
1459
  "name": "EntityManagement",
1492
1460
  "module": "src/entities/entities.ts"
1493
1461
  }
1494
1462
  },
1495
1463
  {
1496
- "name": "persist-column-state-key",
1464
+ "kind": "field",
1465
+ "name": "selectedEntity",
1497
1466
  "type": {
1498
- "text": "string"
1467
+ "text": "any"
1499
1468
  },
1500
- "description": "This attribute controls whether and how the entity manager stores the state of the columns when the user edits them. Omit this attribute to disable the functionality, set it to a unique value to enable it.",
1501
- "fieldName": "persistColumnStateKey",
1469
+ "description": "Reference to the currently selected entity from the grid.",
1470
+ "privacy": "public",
1502
1471
  "inheritedFrom": {
1503
1472
  "name": "EntityManagement",
1504
1473
  "module": "src/entities/entities.ts"
1505
1474
  }
1506
1475
  },
1507
1476
  {
1508
- "name": "size-columns-to-fit",
1477
+ "kind": "field",
1478
+ "name": "editedEntity",
1509
1479
  "type": {
1510
- "text": "boolean"
1480
+ "text": "any"
1511
1481
  },
1512
- "fieldName": "sizeColumnsToFit",
1482
+ "description": "Disables the form while enabled to stop the user dispatching a large number of duplicate events",
1483
+ "privacy": "public",
1513
1484
  "inheritedFrom": {
1514
1485
  "name": "EntityManagement",
1515
1486
  "module": "src/entities/entities.ts"
1516
1487
  }
1517
1488
  },
1518
1489
  {
1519
- "name": "enable-filter-bar",
1490
+ "kind": "field",
1491
+ "name": "submitting",
1520
1492
  "type": {
1521
1493
  "text": "boolean"
1522
1494
  },
1523
- "fieldName": "enableFilterBar",
1524
1495
  "inheritedFrom": {
1525
1496
  "name": "EntityManagement",
1526
1497
  "module": "src/entities/entities.ts"
1527
1498
  }
1528
1499
  },
1529
1500
  {
1530
- "name": "enable-cell-flashing",
1501
+ "kind": "field",
1502
+ "name": "defaultEntityValues",
1531
1503
  "type": {
1532
- "text": "boolean"
1504
+ "text": "any"
1533
1505
  },
1534
- "fieldName": "enableCellFlashing",
1535
1506
  "inheritedFrom": {
1536
1507
  "name": "EntityManagement",
1537
1508
  "module": "src/entities/entities.ts"
1538
1509
  }
1539
1510
  },
1540
1511
  {
1541
- "name": "hide-edit",
1512
+ "kind": "field",
1513
+ "name": "editDialogTitle",
1542
1514
  "type": {
1543
- "text": "boolean"
1515
+ "text": "string"
1544
1516
  },
1545
- "default": "false",
1546
- "fieldName": "hideEdit",
1517
+ "description": "String which contains the text of the popup modal when the user is adding or editing an entity",
1547
1518
  "inheritedFrom": {
1548
1519
  "name": "EntityManagement",
1549
1520
  "module": "src/entities/entities.ts"
1550
1521
  }
1551
1522
  },
1552
1523
  {
1553
- "name": "hide-delete",
1524
+ "kind": "field",
1525
+ "name": "editModalVisible",
1554
1526
  "type": {
1555
1527
  "text": "boolean"
1556
1528
  },
1557
1529
  "default": "false",
1558
- "fieldName": "hideDelete",
1559
1530
  "inheritedFrom": {
1560
1531
  "name": "EntityManagement",
1561
1532
  "module": "src/entities/entities.ts"
1562
1533
  }
1563
1534
  },
1564
1535
  {
1565
- "name": "modal-position",
1566
- "type": {
1567
- "text": "'centre' | 'left' | 'right'"
1568
- },
1569
- "default": "'right'",
1570
- "description": "Determines where the modal dialog will appear on screen",
1571
- "fieldName": "modalPosition",
1536
+ "kind": "method",
1537
+ "name": "editModalVisibleChanged",
1572
1538
  "inheritedFrom": {
1573
1539
  "name": "EntityManagement",
1574
1540
  "module": "src/entities/entities.ts"
1575
1541
  }
1576
- }
1577
- ]
1578
- }
1579
- ],
1580
- "exports": [
1581
- {
1582
- "kind": "js",
1583
- "name": "Profiles",
1584
- "declaration": {
1585
- "name": "Profiles",
1586
- "module": "src/profiles/profiles.ts"
1587
- }
1588
- },
1589
- {
1590
- "kind": "custom-element-definition",
1591
- "name": "profile-management",
1592
- "declaration": {
1593
- "name": "Profiles",
1594
- "module": "src/profiles/profiles.ts"
1595
- }
1596
- }
1597
- ]
1598
- },
1599
- {
1600
- "kind": "javascript-module",
1601
- "path": "src/routes/config.ts",
1602
- "declarations": [],
1603
- "exports": []
1604
- },
1605
- {
1606
- "kind": "javascript-module",
1607
- "path": "src/routes/index.ts",
1608
- "declarations": [],
1609
- "exports": [
1610
- {
1611
- "kind": "js",
1612
- "name": "*",
1613
- "declaration": {
1614
- "name": "*",
1615
- "package": "./config"
1616
- }
1617
- }
1618
- ]
1619
- },
1620
- {
1621
- "kind": "javascript-module",
1622
- "path": "src/list/index.ts",
1623
- "declarations": [],
1624
- "exports": [
1625
- {
1626
- "kind": "js",
1627
- "name": "*",
1628
- "declaration": {
1629
- "name": "*",
1630
- "package": "./list"
1631
- }
1632
- }
1633
- ]
1634
- },
1635
- {
1636
- "kind": "javascript-module",
1637
- "path": "src/list/list.styles.ts",
1638
- "declarations": [
1639
- {
1640
- "kind": "variable",
1641
- "name": "listStyles",
1642
- "default": "css`\n :host {\n contain: content;\n }\n\n :host,\n fast-router {\n display: flex;\n flex-direction: column;\n width: 100%;\n height: 100%;\n }\n\n .container {\n display: flex;\n flex-direction: column;\n height: inherit;\n width: 100%;\n }\n`"
1643
- }
1644
- ],
1645
- "exports": [
1646
- {
1647
- "kind": "js",
1648
- "name": "listStyles",
1649
- "declaration": {
1650
- "name": "listStyles",
1651
- "module": "src/list/list.styles.ts"
1652
- }
1653
- }
1654
- ]
1655
- },
1656
- {
1657
- "kind": "javascript-module",
1658
- "path": "src/list/list.template.ts",
1659
- "declarations": [
1660
- {
1661
- "kind": "variable",
1662
- "name": "listTemplate",
1663
- "default": "html<List>`\n <div class=\"container\">\n ${when(\n (x) => x.enableFilterBar,\n html<List>`\n <zero-filter-bar\n resource=${(x) => x.resourceName}\n only=${(x) => x.columns?.map((colDef) => colDef.field).filter((field) => !!field)}\n labels=${(x) => x.columns?.map((colDef) => colDef.headerName || '')}\n target=\"datasource\"\n ></zero-filter-bar>\n `,\n )}\n <zero-grid-pro\n ${ref('grid')}\n auto-cell-renderer-by-type\n rowSelection=\"single\"\n rowHeight=\"36\"\n headerHeight=\"36\"\n persist-column-state-key=${(x) => x.persistColumnStateKey}\n ?only-template-col-defs=${(x) => !!x.columns}\n suppressCellFocus=\"true\"\n suppressRowDeselection=\"true\"\n enable-cell-flashing=${(x) => x.enableCellFlashing}\n >\n <grid-pro-genesis-datasource\n ${ref('datasource')}\n :deferredGridOptions=${(x) => x.gridOptions}\n resource-name=${(x) => x.resourceName}\n criteria=${(x) => x.datasourceConfig?.criteria}\n fields=${(x) => x.datasourceConfig?.fields}\n is-snapshot=${(x) => x.datasourceConfig?.isSnapshot}\n max-rows=${(x) => x.datasourceConfig?.maxRows}\n max-view=${(x) => x.datasourceConfig?.maxView}\n order-by=${(x) => x.datasourceConfig?.orderBy}\n reverse=${(x) => x.datasourceConfig?.reverse}\n ></grid-pro-genesis-datasource>\n ${repeat(\n (x) => x.columns,\n html`\n <grid-pro-column :definition=${(x) => x}></grid-pro-column>\n `,\n )}\n ${repeat(\n (x) => x.actionButtonsConfig,\n html`\n <grid-pro-column :definition=${(x) => x}></grid-pro-column>\n `,\n )}\n </zero-grid-pro>\n </div>\n`"
1664
- }
1665
- ],
1666
- "exports": [
1667
- {
1668
- "kind": "js",
1669
- "name": "listTemplate",
1670
- "declaration": {
1671
- "name": "listTemplate",
1672
- "module": "src/list/list.template.ts"
1673
- }
1674
- }
1675
- ]
1676
- },
1677
- {
1678
- "kind": "javascript-module",
1679
- "path": "src/list/list.ts",
1680
- "declarations": [
1681
- {
1682
- "kind": "class",
1683
- "description": "",
1684
- "name": "List",
1685
- "members": [
1686
- {
1687
- "kind": "field",
1688
- "name": "resourceName",
1689
- "type": {
1690
- "text": "string"
1691
- },
1692
- "default": "''"
1693
1542
  },
1694
1543
  {
1695
1544
  "kind": "field",
1696
- "name": "title",
1545
+ "name": "editEntityModal",
1697
1546
  "type": {
1698
- "text": "string"
1547
+ "text": "any"
1699
1548
  },
1700
- "default": "''"
1701
- },
1702
- {
1703
- "kind": "field",
1704
- "name": "persistColumnStateKey",
1705
- "type": {
1706
- "text": "string"
1549
+ "privacy": "public",
1550
+ "inheritedFrom": {
1551
+ "name": "EntityManagement",
1552
+ "module": "src/entities/entities.ts"
1707
1553
  }
1708
1554
  },
1709
1555
  {
@@ -1711,6 +1557,10 @@
1711
1557
  "name": "sizeColumnsToFit",
1712
1558
  "type": {
1713
1559
  "text": "boolean"
1560
+ },
1561
+ "inheritedFrom": {
1562
+ "name": "EntityManagement",
1563
+ "module": "src/entities/entities.ts"
1714
1564
  }
1715
1565
  },
1716
1566
  {
@@ -1718,6 +1568,10 @@
1718
1568
  "name": "enableFilterBar",
1719
1569
  "type": {
1720
1570
  "text": "boolean"
1571
+ },
1572
+ "inheritedFrom": {
1573
+ "name": "EntityManagement",
1574
+ "module": "src/entities/entities.ts"
1721
1575
  }
1722
1576
  },
1723
1577
  {
@@ -1725,6 +1579,10 @@
1725
1579
  "name": "enableCellFlashing",
1726
1580
  "type": {
1727
1581
  "text": "boolean"
1582
+ },
1583
+ "inheritedFrom": {
1584
+ "name": "EntityManagement",
1585
+ "module": "src/entities/entities.ts"
1728
1586
  }
1729
1587
  },
1730
1588
  {
@@ -1733,7 +1591,11 @@
1733
1591
  "type": {
1734
1592
  "text": "boolean"
1735
1593
  },
1736
- "default": "false"
1594
+ "default": "false",
1595
+ "inheritedFrom": {
1596
+ "name": "EntityManagement",
1597
+ "module": "src/entities/entities.ts"
1598
+ }
1737
1599
  },
1738
1600
  {
1739
1601
  "kind": "field",
@@ -1741,156 +1603,258 @@
1741
1603
  "type": {
1742
1604
  "text": "boolean"
1743
1605
  },
1744
- "default": "false"
1606
+ "default": "false",
1607
+ "inheritedFrom": {
1608
+ "name": "EntityManagement",
1609
+ "module": "src/entities/entities.ts"
1610
+ }
1745
1611
  },
1746
1612
  {
1747
1613
  "kind": "field",
1748
- "name": "grid",
1614
+ "name": "modalPosition",
1749
1615
  "type": {
1750
- "text": "ZeroGridPro"
1616
+ "text": "'centre' | 'left' | 'right'"
1751
1617
  },
1752
- "privacy": "public"
1618
+ "default": "'right'",
1619
+ "description": "Determines where the modal dialog will appear on screen",
1620
+ "privacy": "public",
1621
+ "inheritedFrom": {
1622
+ "name": "EntityManagement",
1623
+ "module": "src/entities/entities.ts"
1624
+ }
1625
+ },
1626
+ {
1627
+ "kind": "method",
1628
+ "name": "deepClone",
1629
+ "return": {
1630
+ "type": {
1631
+ "text": "Node"
1632
+ }
1633
+ },
1634
+ "description": "Override the deepClone method to ensure that observable attributes are cloned",
1635
+ "privacy": "public",
1636
+ "inheritedFrom": {
1637
+ "name": "EntityManagement",
1638
+ "module": "src/entities/entities.ts"
1639
+ }
1640
+ },
1641
+ {
1642
+ "kind": "method",
1643
+ "name": "submitEntityChanges",
1644
+ "privacy": "public",
1645
+ "parameters": [
1646
+ {
1647
+ "name": "e",
1648
+ "type": {
1649
+ "text": "CustomEvent"
1650
+ },
1651
+ "description": "CustomEvent which contains the payload for the entity to submit to the backend\n\nEmits an event upon error"
1652
+ }
1653
+ ],
1654
+ "description": "Event handler for when the user submits the action for the currently open form, either editing or adding the entity",
1655
+ "inheritedFrom": {
1656
+ "name": "EntityManagement",
1657
+ "module": "src/entities/entities.ts"
1658
+ }
1659
+ },
1660
+ {
1661
+ "kind": "method",
1662
+ "name": "readEntity",
1663
+ "privacy": "private",
1664
+ "parameters": [
1665
+ {
1666
+ "name": "e",
1667
+ "type": {
1668
+ "text": "CustomEvent"
1669
+ }
1670
+ }
1671
+ ],
1672
+ "inheritedFrom": {
1673
+ "name": "EntityManagement",
1674
+ "module": "src/entities/entities.ts"
1675
+ }
1676
+ },
1677
+ {
1678
+ "kind": "method",
1679
+ "name": "closeModal",
1680
+ "privacy": "public",
1681
+ "inheritedFrom": {
1682
+ "name": "EntityManagement",
1683
+ "module": "src/entities/entities.ts"
1684
+ }
1753
1685
  },
1754
1686
  {
1755
- "kind": "field",
1756
- "name": "datasource",
1757
- "type": {
1758
- "text": "GridProGenesisDatasource"
1759
- },
1760
- "privacy": "public"
1687
+ "kind": "method",
1688
+ "name": "criteriaChanged",
1689
+ "privacy": "public",
1690
+ "parameters": [
1691
+ {
1692
+ "name": "e",
1693
+ "type": {
1694
+ "text": "CustomEvent<string>"
1695
+ }
1696
+ }
1697
+ ],
1698
+ "inheritedFrom": {
1699
+ "name": "EntityManagement",
1700
+ "module": "src/entities/entities.ts"
1701
+ }
1761
1702
  },
1762
1703
  {
1763
- "kind": "field",
1764
- "name": "gridOptions",
1704
+ "kind": "method",
1705
+ "name": "showDeleteConfirmation",
1706
+ "privacy": "private",
1707
+ "inheritedFrom": {
1708
+ "name": "EntityManagement",
1709
+ "module": "src/entities/entities.ts"
1710
+ }
1711
+ }
1712
+ ],
1713
+ "superclass": {
1714
+ "name": "EntityManagement",
1715
+ "module": "/src/entities"
1716
+ },
1717
+ "tagName": "profile-management",
1718
+ "customElement": true,
1719
+ "attributes": [
1720
+ {
1721
+ "name": "resourceName",
1765
1722
  "type": {
1766
- "text": "GridOptions"
1723
+ "text": "string"
1724
+ },
1725
+ "description": "Name of the backend resource which contain the entities to manage",
1726
+ "fieldName": "resourceName",
1727
+ "inheritedFrom": {
1728
+ "name": "EntityManagement",
1729
+ "module": "src/entities/entities.ts"
1767
1730
  }
1768
1731
  },
1769
1732
  {
1770
- "kind": "field",
1771
- "name": "columns",
1733
+ "name": "readEvent",
1772
1734
  "type": {
1773
- "text": "ColDef[]"
1735
+ "text": "string"
1736
+ },
1737
+ "fieldName": "readEvent",
1738
+ "inheritedFrom": {
1739
+ "name": "EntityManagement",
1740
+ "module": "src/entities/entities.ts"
1774
1741
  }
1775
1742
  },
1776
1743
  {
1777
- "kind": "field",
1778
- "name": "datasourceConfig",
1779
1744
  "type": {
1780
- "text": "DatasourceConfiguration"
1745
+ "text": "boolean"
1746
+ },
1747
+ "fieldName": "readonly",
1748
+ "inheritedFrom": {
1749
+ "name": "EntityManagement",
1750
+ "module": "src/entities/entities.ts"
1781
1751
  }
1782
1752
  },
1783
1753
  {
1784
- "kind": "field",
1785
- "name": "actionButtonsConfig",
1754
+ "name": "updateEvent",
1786
1755
  "type": {
1787
- "text": "array"
1756
+ "text": "string"
1788
1757
  },
1789
- "default": "[]"
1758
+ "description": "Name of the event handler on the Genesis server which handles updating the entity",
1759
+ "fieldName": "updateEvent",
1760
+ "inheritedFrom": {
1761
+ "name": "EntityManagement",
1762
+ "module": "src/entities/entities.ts"
1763
+ }
1790
1764
  },
1791
1765
  {
1792
- "kind": "field",
1793
1766
  "name": "deleteEvent",
1794
1767
  "type": {
1795
1768
  "text": "string"
1769
+ },
1770
+ "description": "Name of the event handler on the Genesis server which handles deleting the entity",
1771
+ "fieldName": "deleteEvent",
1772
+ "inheritedFrom": {
1773
+ "name": "EntityManagement",
1774
+ "module": "src/entities/entities.ts"
1796
1775
  }
1797
1776
  },
1798
1777
  {
1799
- "kind": "field",
1800
- "name": "updateEvent",
1778
+ "name": "createEvent",
1801
1779
  "type": {
1802
1780
  "text": "string"
1781
+ },
1782
+ "description": "Name of the event handler on the Genesis server which handles creating an entity",
1783
+ "fieldName": "createEvent",
1784
+ "inheritedFrom": {
1785
+ "name": "EntityManagement",
1786
+ "module": "src/entities/entities.ts"
1803
1787
  }
1804
1788
  },
1805
1789
  {
1806
- "kind": "method",
1807
- "name": "handleFilterChanged",
1808
- "privacy": "private",
1809
- "parameters": [
1810
- {
1811
- "name": "e"
1812
- }
1813
- ]
1814
- },
1815
- {
1816
- "kind": "method",
1817
- "name": "handleFilterCleared",
1818
- "privacy": "private",
1819
- "parameters": [
1820
- {
1821
- "name": "e"
1822
- }
1823
- ]
1824
- },
1825
- {
1826
- "kind": "method",
1827
- "name": "select",
1828
- "privacy": "private",
1829
- "parameters": [
1830
- {
1831
- "name": "e"
1832
- }
1833
- ]
1834
- },
1835
- {
1836
- "kind": "field",
1837
- "name": "edit",
1838
- "privacy": "private"
1839
- },
1840
- {
1841
- "kind": "method",
1842
- "name": "delete",
1843
- "parameters": [
1844
- {
1845
- "name": "e"
1846
- }
1847
- ]
1848
- }
1849
- ],
1850
- "attributes": [
1851
- {
1852
- "name": "resourceName",
1790
+ "name": "title",
1853
1791
  "type": {
1854
1792
  "text": "string"
1855
1793
  },
1856
- "default": "''",
1857
- "fieldName": "resourceName"
1794
+ "description": "Title of the grid",
1795
+ "fieldName": "title",
1796
+ "inheritedFrom": {
1797
+ "name": "EntityManagement",
1798
+ "module": "src/entities/entities.ts"
1799
+ }
1858
1800
  },
1859
1801
  {
1860
- "name": "title",
1802
+ "name": "entityLabel",
1861
1803
  "type": {
1862
1804
  "text": "string"
1863
1805
  },
1864
1806
  "default": "''",
1865
- "fieldName": "title"
1807
+ "description": "Label for the entity which has usages such as being shown in the title of the modal wen editing the entity",
1808
+ "fieldName": "entityLabel",
1809
+ "inheritedFrom": {
1810
+ "name": "EntityManagement",
1811
+ "module": "src/entities/entities.ts"
1812
+ }
1866
1813
  },
1867
1814
  {
1868
1815
  "name": "persist-column-state-key",
1869
1816
  "type": {
1870
1817
  "text": "string"
1871
1818
  },
1872
- "fieldName": "persistColumnStateKey"
1819
+ "description": "This attribute controls whether and how the entity manager stores the state of the columns when the user edits them. Omit this attribute to disable the functionality, set it to a unique value to enable it.",
1820
+ "fieldName": "persistColumnStateKey",
1821
+ "inheritedFrom": {
1822
+ "name": "EntityManagement",
1823
+ "module": "src/entities/entities.ts"
1824
+ }
1873
1825
  },
1874
1826
  {
1875
1827
  "name": "size-columns-to-fit",
1876
1828
  "type": {
1877
1829
  "text": "boolean"
1878
1830
  },
1879
- "fieldName": "sizeColumnsToFit"
1831
+ "fieldName": "sizeColumnsToFit",
1832
+ "inheritedFrom": {
1833
+ "name": "EntityManagement",
1834
+ "module": "src/entities/entities.ts"
1835
+ }
1880
1836
  },
1881
1837
  {
1882
1838
  "name": "enable-filter-bar",
1883
1839
  "type": {
1884
1840
  "text": "boolean"
1885
1841
  },
1886
- "fieldName": "enableFilterBar"
1842
+ "fieldName": "enableFilterBar",
1843
+ "inheritedFrom": {
1844
+ "name": "EntityManagement",
1845
+ "module": "src/entities/entities.ts"
1846
+ }
1887
1847
  },
1888
1848
  {
1889
1849
  "name": "enable-cell-flashing",
1890
1850
  "type": {
1891
1851
  "text": "boolean"
1892
1852
  },
1893
- "fieldName": "enableCellFlashing"
1853
+ "fieldName": "enableCellFlashing",
1854
+ "inheritedFrom": {
1855
+ "name": "EntityManagement",
1856
+ "module": "src/entities/entities.ts"
1857
+ }
1894
1858
  },
1895
1859
  {
1896
1860
  "name": "hide-edit",
@@ -1898,7 +1862,11 @@
1898
1862
  "text": "boolean"
1899
1863
  },
1900
1864
  "default": "false",
1901
- "fieldName": "hideEdit"
1865
+ "fieldName": "hideEdit",
1866
+ "inheritedFrom": {
1867
+ "name": "EntityManagement",
1868
+ "module": "src/entities/entities.ts"
1869
+ }
1902
1870
  },
1903
1871
  {
1904
1872
  "name": "hide-delete",
@@ -1906,32 +1874,64 @@
1906
1874
  "text": "boolean"
1907
1875
  },
1908
1876
  "default": "false",
1909
- "fieldName": "hideDelete"
1877
+ "fieldName": "hideDelete",
1878
+ "inheritedFrom": {
1879
+ "name": "EntityManagement",
1880
+ "module": "src/entities/entities.ts"
1881
+ }
1882
+ },
1883
+ {
1884
+ "name": "modal-position",
1885
+ "type": {
1886
+ "text": "'centre' | 'left' | 'right'"
1887
+ },
1888
+ "default": "'right'",
1889
+ "description": "Determines where the modal dialog will appear on screen",
1890
+ "fieldName": "modalPosition",
1891
+ "inheritedFrom": {
1892
+ "name": "EntityManagement",
1893
+ "module": "src/entities/entities.ts"
1894
+ }
1910
1895
  }
1911
- ],
1912
- "superclass": {
1913
- "name": "FASTElement",
1914
- "package": "@microsoft/fast-element"
1915
- },
1916
- "tagName": "entity-list",
1917
- "customElement": true
1896
+ ]
1918
1897
  }
1919
1898
  ],
1920
1899
  "exports": [
1921
1900
  {
1922
1901
  "kind": "js",
1923
- "name": "List",
1902
+ "name": "Profiles",
1924
1903
  "declaration": {
1925
- "name": "List",
1926
- "module": "src/list/list.ts"
1904
+ "name": "Profiles",
1905
+ "module": "src/profiles/profiles.ts"
1927
1906
  }
1928
1907
  },
1929
1908
  {
1930
1909
  "kind": "custom-element-definition",
1931
- "name": "entity-list",
1910
+ "name": "profile-management",
1932
1911
  "declaration": {
1933
- "name": "List",
1934
- "module": "src/list/list.ts"
1912
+ "name": "Profiles",
1913
+ "module": "src/profiles/profiles.ts"
1914
+ }
1915
+ }
1916
+ ]
1917
+ },
1918
+ {
1919
+ "kind": "javascript-module",
1920
+ "path": "src/routes/config.ts",
1921
+ "declarations": [],
1922
+ "exports": []
1923
+ },
1924
+ {
1925
+ "kind": "javascript-module",
1926
+ "path": "src/routes/index.ts",
1927
+ "declarations": [],
1928
+ "exports": [
1929
+ {
1930
+ "kind": "js",
1931
+ "name": "*",
1932
+ "declaration": {
1933
+ "name": "*",
1934
+ "package": "./config"
1935
1935
  }
1936
1936
  }
1937
1937
  ]