@genesislcap/foundation-entity-management 14.92.2 → 14.92.3-beta.0a7ca6c.1

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.
@@ -981,1011 +981,852 @@
981
981
  },
982
982
  {
983
983
  "kind": "javascript-module",
984
- "path": "src/profiles/editProfileSchema.ts",
984
+ "path": "src/list/index.ts",
985
+ "declarations": [],
986
+ "exports": [
987
+ {
988
+ "kind": "js",
989
+ "name": "*",
990
+ "declaration": {
991
+ "name": "*",
992
+ "package": "./list"
993
+ }
994
+ }
995
+ ]
996
+ },
997
+ {
998
+ "kind": "javascript-module",
999
+ "path": "src/list/list.styles.ts",
985
1000
  "declarations": [
986
1001
  {
987
1002
  "kind": "variable",
988
- "name": "editProfileFormSchema",
989
- "type": {
990
- "text": "object"
991
- },
992
- "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}"
1003
+ "name": "listStyles",
1004
+ "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`"
993
1005
  }
994
1006
  ],
995
1007
  "exports": [
996
1008
  {
997
1009
  "kind": "js",
998
- "name": "editProfileFormSchema",
1010
+ "name": "listStyles",
999
1011
  "declaration": {
1000
- "name": "editProfileFormSchema",
1001
- "module": "src/profiles/editProfileSchema.ts"
1012
+ "name": "listStyles",
1013
+ "module": "src/list/list.styles.ts"
1002
1014
  }
1003
1015
  }
1004
1016
  ]
1005
1017
  },
1006
1018
  {
1007
1019
  "kind": "javascript-module",
1008
- "path": "src/profiles/profiles.ts",
1020
+ "path": "src/list/list.template.ts",
1021
+ "declarations": [
1022
+ {
1023
+ "kind": "variable",
1024
+ "name": "listTemplate",
1025
+ "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 async-add=${(x) => x.asyncAdd}\n async-remove=${(x) => x.asyncRemove}\n async-update=${(x) => x.asyncUpdate}\n enable-cell-flashing=${(x) => x.enableCellFlashing}\n enable-row-flashing=${(x) => x.enableRowFlashing}\n >\n <grid-pro-genesis-datasource\n ${ref('datasource')}\n :deferredGridOptions=${(x) => x.gridOptions}\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 moving-view=${(x) => x.datasourceConfig?.movingView}\n order-by=${(x) => x.datasourceConfig?.orderBy}\n polling-interval=${(x) => x.datasourceConfig?.pollingInterval}\n resource-name=${(x) => x.resourceName}\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`"
1026
+ }
1027
+ ],
1028
+ "exports": [
1029
+ {
1030
+ "kind": "js",
1031
+ "name": "listTemplate",
1032
+ "declaration": {
1033
+ "name": "listTemplate",
1034
+ "module": "src/list/list.template.ts"
1035
+ }
1036
+ }
1037
+ ]
1038
+ },
1039
+ {
1040
+ "kind": "javascript-module",
1041
+ "path": "src/list/list.ts",
1009
1042
  "declarations": [
1010
1043
  {
1011
1044
  "kind": "class",
1012
- "description": "Main class which defined the profile management functionality",
1013
- "name": "Profiles",
1045
+ "description": "",
1046
+ "name": "List",
1014
1047
  "members": [
1015
- {
1016
- "kind": "method",
1017
- "name": "readProfileData",
1018
- "privacy": "public",
1019
- "parameters": [
1020
- {
1021
- "name": "profile"
1022
- }
1023
- ]
1024
- },
1025
- {
1026
- "kind": "method",
1027
- "name": "confirmDelete",
1028
- "inheritedFrom": {
1029
- "name": "EntityManagement",
1030
- "module": "src/entities/entities.ts"
1031
- }
1032
- },
1033
1048
  {
1034
1049
  "kind": "field",
1035
- "name": "createEvent",
1050
+ "name": "resourceName",
1036
1051
  "type": {
1037
1052
  "text": "string"
1038
1053
  },
1039
- "description": "Name of the event handler on the Genesis server which handles creating an entity",
1040
- "privacy": "public",
1041
- "inheritedFrom": {
1042
- "name": "EntityManagement",
1043
- "module": "src/entities/entities.ts"
1044
- }
1054
+ "default": "''"
1045
1055
  },
1046
1056
  {
1047
1057
  "kind": "field",
1048
- "name": "deleteEvent",
1058
+ "name": "title",
1049
1059
  "type": {
1050
1060
  "text": "string"
1051
1061
  },
1052
- "description": "Name of the event handler on the Genesis server which handles deleting the entity",
1053
- "privacy": "public",
1054
- "inheritedFrom": {
1055
- "name": "EntityManagement",
1056
- "module": "src/entities/entities.ts"
1057
- }
1062
+ "default": "''"
1058
1063
  },
1059
1064
  {
1060
1065
  "kind": "field",
1061
- "name": "updateEvent",
1066
+ "name": "persistColumnStateKey",
1062
1067
  "type": {
1063
1068
  "text": "string"
1064
- },
1065
- "description": "Name of the event handler on the Genesis server which handles updating the entity",
1066
- "privacy": "public",
1067
- "inheritedFrom": {
1068
- "name": "EntityManagement",
1069
- "module": "src/entities/entities.ts"
1070
1069
  }
1071
1070
  },
1072
1071
  {
1073
1072
  "kind": "field",
1074
- "name": "persistColumnStateKey",
1073
+ "name": "sizeColumnsToFit",
1075
1074
  "type": {
1076
- "text": "string"
1077
- },
1078
- "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.",
1079
- "privacy": "public",
1080
- "default": "'entity_profiles_management'",
1081
- "inheritedFrom": {
1082
- "name": "EntityManagement",
1083
- "module": "src/entities/entities.ts"
1075
+ "text": "boolean"
1084
1076
  }
1085
1077
  },
1086
1078
  {
1087
1079
  "kind": "field",
1088
- "name": "updateFormUiSchema",
1080
+ "name": "enableFilterBar",
1089
1081
  "type": {
1090
- "text": "any"
1091
- },
1092
- "default": "editProfileFormSchema",
1093
- "inheritedFrom": {
1094
- "name": "EntityManagement",
1095
- "module": "src/entities/entities.ts"
1082
+ "text": "boolean"
1096
1083
  }
1097
1084
  },
1098
1085
  {
1099
1086
  "kind": "field",
1100
- "name": "createFormUiSchema",
1087
+ "name": "asyncAdd",
1101
1088
  "type": {
1102
- "text": "any"
1089
+ "text": "boolean"
1103
1090
  },
1104
- "default": "editProfileFormSchema",
1105
- "inheritedFrom": {
1106
- "name": "EntityManagement",
1107
- "module": "src/entities/entities.ts"
1108
- }
1091
+ "default": "false"
1109
1092
  },
1110
1093
  {
1111
1094
  "kind": "field",
1112
- "name": "readEventFn",
1095
+ "name": "asyncRemove",
1113
1096
  "type": {
1114
- "text": "(...args) => {}"
1097
+ "text": "boolean"
1115
1098
  },
1116
- "inheritedFrom": {
1117
- "name": "EntityManagement",
1118
- "module": "src/entities/entities.ts"
1119
- }
1099
+ "default": "false"
1120
1100
  },
1121
1101
  {
1122
1102
  "kind": "field",
1123
- "name": "resourceName",
1103
+ "name": "asyncUpdate",
1124
1104
  "type": {
1125
- "text": "string"
1105
+ "text": "boolean"
1126
1106
  },
1127
- "description": "Name of the backend resource which contain the entities to manage",
1128
- "privacy": "public",
1129
- "default": "'ALL_PROFILES'",
1130
- "inheritedFrom": {
1131
- "name": "EntityManagement",
1132
- "module": "src/entities/entities.ts"
1133
- }
1107
+ "default": "true"
1134
1108
  },
1135
1109
  {
1136
1110
  "kind": "field",
1137
- "name": "title",
1111
+ "name": "enableCellFlashing",
1138
1112
  "type": {
1139
- "text": "string"
1113
+ "text": "boolean"
1140
1114
  },
1141
- "description": "Title of the grid",
1142
- "privacy": "public",
1143
- "default": "'Profile Management'",
1144
- "inheritedFrom": {
1145
- "name": "EntityManagement",
1146
- "module": "src/entities/entities.ts"
1147
- }
1115
+ "default": "false"
1148
1116
  },
1149
1117
  {
1150
1118
  "kind": "field",
1151
- "name": "entityLabel",
1119
+ "name": "enableRowFlashing",
1152
1120
  "type": {
1153
- "text": "string"
1121
+ "text": "boolean"
1154
1122
  },
1155
- "default": "'Profile'",
1156
- "description": "Label for the entity which has usages such as being shown in the title of the modal wen editing the entity",
1157
- "privacy": "public",
1158
- "inheritedFrom": {
1159
- "name": "EntityManagement",
1160
- "module": "src/entities/entities.ts"
1161
- }
1123
+ "default": "false"
1162
1124
  },
1163
1125
  {
1164
1126
  "kind": "field",
1165
- "name": "connect",
1127
+ "name": "hideEdit",
1166
1128
  "type": {
1167
- "text": "Connect"
1129
+ "text": "boolean"
1168
1130
  },
1169
- "privacy": "protected",
1170
- "description": "DI connect object which is used to interact with the backend.",
1171
- "inheritedFrom": {
1172
- "name": "EntityManagement",
1173
- "module": "src/entities/entities.ts"
1174
- }
1131
+ "default": "false"
1175
1132
  },
1176
1133
  {
1177
1134
  "kind": "field",
1178
- "name": "readEvent",
1135
+ "name": "hideDelete",
1179
1136
  "type": {
1180
- "text": "string"
1137
+ "text": "boolean"
1181
1138
  },
1182
- "inheritedFrom": {
1183
- "name": "EntityManagement",
1184
- "module": "src/entities/entities.ts"
1185
- }
1139
+ "default": "false"
1186
1140
  },
1187
1141
  {
1188
1142
  "kind": "field",
1189
- "name": "readonly",
1143
+ "name": "grid",
1190
1144
  "type": {
1191
- "text": "boolean"
1145
+ "text": "ZeroGridPro"
1192
1146
  },
1193
- "inheritedFrom": {
1194
- "name": "EntityManagement",
1195
- "module": "src/entities/entities.ts"
1196
- }
1147
+ "privacy": "public"
1197
1148
  },
1198
1149
  {
1199
1150
  "kind": "field",
1200
- "name": "asyncAdd",
1151
+ "name": "datasource",
1201
1152
  "type": {
1202
- "text": "boolean"
1153
+ "text": "GridProGenesisDatasource"
1203
1154
  },
1204
- "default": "false",
1205
- "description": "Whether to use the `applyTransactionAsync` function for *add* transactions",
1206
- "privacy": "public",
1207
- "inheritedFrom": {
1208
- "name": "EntityManagement",
1209
- "module": "src/entities/entities.ts"
1210
- }
1155
+ "privacy": "public"
1211
1156
  },
1212
1157
  {
1213
1158
  "kind": "field",
1214
- "name": "asyncRemove",
1159
+ "name": "gridOptions",
1215
1160
  "type": {
1216
- "text": "boolean"
1217
- },
1218
- "default": "false",
1219
- "description": "Whether to use the `applyTransactionAsync` function for *remove* transactions",
1220
- "privacy": "public",
1221
- "inheritedFrom": {
1222
- "name": "EntityManagement",
1223
- "module": "src/entities/entities.ts"
1161
+ "text": "GridOptions"
1224
1162
  }
1225
1163
  },
1226
1164
  {
1227
1165
  "kind": "field",
1228
- "name": "asyncUpdate",
1166
+ "name": "columns",
1229
1167
  "type": {
1230
- "text": "boolean"
1231
- },
1232
- "default": "true",
1233
- "description": "Whether to use the `applyTransactionAsync` function for *update* transactions",
1234
- "privacy": "public",
1235
- "inheritedFrom": {
1236
- "name": "EntityManagement",
1237
- "module": "src/entities/entities.ts"
1168
+ "text": "ColDef[]"
1238
1169
  }
1239
1170
  },
1240
1171
  {
1241
1172
  "kind": "field",
1242
- "name": "enableCellFlashing",
1173
+ "name": "datasourceConfig",
1243
1174
  "type": {
1244
- "text": "boolean"
1245
- },
1246
- "default": "false",
1247
- "description": "If false, will disable cell flashing for all cells by default, unless otherwise defined in custom colDef",
1248
- "privacy": "public",
1249
- "inheritedFrom": {
1250
- "name": "EntityManagement",
1251
- "module": "src/entities/entities.ts"
1175
+ "text": "DatasourceConfiguration"
1252
1176
  }
1253
1177
  },
1254
1178
  {
1255
1179
  "kind": "field",
1256
- "name": "enableRowFlashing",
1180
+ "name": "actionButtonsConfig",
1257
1181
  "type": {
1258
- "text": "boolean"
1182
+ "text": "array"
1259
1183
  },
1260
- "default": "false",
1261
- "description": "If true, will enable row flashing for all rows for `add` async transactions",
1262
- "privacy": "public",
1263
- "inheritedFrom": {
1264
- "name": "EntityManagement",
1265
- "module": "src/entities/entities.ts"
1266
- }
1184
+ "default": "[]"
1267
1185
  },
1268
1186
  {
1269
1187
  "kind": "field",
1270
- "name": "gridOptions",
1188
+ "name": "deleteEvent",
1271
1189
  "type": {
1272
- "text": "GridOptions"
1273
- },
1274
- "description": "GridOptions to be passed down from application",
1275
- "privacy": "public",
1276
- "inheritedFrom": {
1277
- "name": "EntityManagement",
1278
- "module": "src/entities/entities.ts"
1190
+ "text": "string"
1279
1191
  }
1280
1192
  },
1281
1193
  {
1282
1194
  "kind": "field",
1283
- "name": "columns",
1195
+ "name": "updateEvent",
1284
1196
  "type": {
1285
- "text": "ColDef[]"
1286
- },
1287
- "description": "Array which holds the column definitions.",
1288
- "privacy": "public",
1289
- "inheritedFrom": {
1290
- "name": "EntityManagement",
1291
- "module": "src/entities/entities.ts"
1197
+ "text": "string"
1292
1198
  }
1293
1199
  },
1294
1200
  {
1295
- "kind": "field",
1296
- "name": "datasourceConfig",
1297
- "type": {
1298
- "text": "DatasourceConfiguration"
1299
- },
1300
- "description": "The configuration which is used when interacting with the resource on the backend",
1301
- "privacy": "public",
1302
- "inheritedFrom": {
1303
- "name": "EntityManagement",
1304
- "module": "src/entities/entities.ts"
1305
- }
1201
+ "kind": "method",
1202
+ "name": "handleFilterChanged",
1203
+ "privacy": "private",
1204
+ "parameters": [
1205
+ {
1206
+ "name": "e"
1207
+ }
1208
+ ]
1306
1209
  },
1307
1210
  {
1308
- "kind": "field",
1309
- "name": "formUiSchema",
1310
- "type": {
1311
- "text": "any"
1312
- },
1313
- "inheritedFrom": {
1314
- "name": "EntityManagement",
1315
- "module": "src/entities/entities.ts"
1316
- }
1211
+ "kind": "method",
1212
+ "name": "handleFilterCleared",
1213
+ "privacy": "private",
1214
+ "parameters": [
1215
+ {
1216
+ "name": "e"
1217
+ }
1218
+ ]
1317
1219
  },
1318
1220
  {
1319
- "kind": "field",
1320
- "name": "formRenderers",
1321
- "type": {
1322
- "text": "RendererEntry[]"
1323
- },
1324
- "default": "renderers",
1325
- "description": "Array with renderers used by foundation-forms",
1326
- "privacy": "public",
1327
- "inheritedFrom": {
1328
- "name": "EntityManagement",
1329
- "module": "src/entities/entities.ts"
1330
- }
1221
+ "kind": "method",
1222
+ "name": "select",
1223
+ "privacy": "private",
1224
+ "parameters": [
1225
+ {
1226
+ "name": "e"
1227
+ }
1228
+ ]
1331
1229
  },
1332
1230
  {
1333
1231
  "kind": "field",
1334
- "name": "selectedEntity",
1335
- "type": {
1336
- "text": "any"
1337
- },
1338
- "description": "Reference to the currently selected entity from the grid.",
1339
- "privacy": "public",
1340
- "inheritedFrom": {
1341
- "name": "EntityManagement",
1342
- "module": "src/entities/entities.ts"
1343
- }
1232
+ "name": "edit",
1233
+ "privacy": "private"
1344
1234
  },
1345
1235
  {
1346
- "kind": "field",
1347
- "name": "editedEntity",
1348
- "type": {
1349
- "text": "any"
1350
- },
1351
- "description": "Disables the form while enabled to stop the user dispatching a large number of duplicate events",
1352
- "privacy": "public",
1353
- "inheritedFrom": {
1354
- "name": "EntityManagement",
1355
- "module": "src/entities/entities.ts"
1356
- }
1357
- },
1236
+ "kind": "method",
1237
+ "name": "delete",
1238
+ "parameters": [
1239
+ {
1240
+ "name": "e"
1241
+ }
1242
+ ]
1243
+ }
1244
+ ],
1245
+ "attributes": [
1358
1246
  {
1359
- "kind": "field",
1360
- "name": "submitting",
1247
+ "name": "resourceName",
1361
1248
  "type": {
1362
- "text": "boolean"
1249
+ "text": "string"
1363
1250
  },
1364
- "inheritedFrom": {
1365
- "name": "EntityManagement",
1366
- "module": "src/entities/entities.ts"
1367
- }
1251
+ "default": "''",
1252
+ "fieldName": "resourceName"
1368
1253
  },
1369
1254
  {
1370
- "kind": "field",
1371
- "name": "defaultEntityValues",
1255
+ "name": "title",
1372
1256
  "type": {
1373
- "text": "any"
1257
+ "text": "string"
1374
1258
  },
1375
- "inheritedFrom": {
1376
- "name": "EntityManagement",
1377
- "module": "src/entities/entities.ts"
1378
- }
1259
+ "default": "''",
1260
+ "fieldName": "title"
1379
1261
  },
1380
1262
  {
1381
- "kind": "field",
1382
- "name": "editDialogTitle",
1263
+ "name": "persist-column-state-key",
1383
1264
  "type": {
1384
1265
  "text": "string"
1385
1266
  },
1386
- "description": "String which contains the text of the popup modal when the user is adding or editing an entity",
1387
- "inheritedFrom": {
1388
- "name": "EntityManagement",
1389
- "module": "src/entities/entities.ts"
1390
- }
1267
+ "fieldName": "persistColumnStateKey"
1391
1268
  },
1392
1269
  {
1393
- "kind": "field",
1394
- "name": "editModalVisible",
1270
+ "name": "size-columns-to-fit",
1395
1271
  "type": {
1396
1272
  "text": "boolean"
1397
1273
  },
1398
- "default": "false",
1399
- "inheritedFrom": {
1400
- "name": "EntityManagement",
1401
- "module": "src/entities/entities.ts"
1402
- }
1274
+ "fieldName": "sizeColumnsToFit"
1403
1275
  },
1404
1276
  {
1405
- "kind": "method",
1406
- "name": "editModalVisibleChanged",
1407
- "inheritedFrom": {
1408
- "name": "EntityManagement",
1409
- "module": "src/entities/entities.ts"
1410
- }
1277
+ "name": "enable-filter-bar",
1278
+ "type": {
1279
+ "text": "boolean"
1280
+ },
1281
+ "fieldName": "enableFilterBar"
1411
1282
  },
1412
1283
  {
1413
- "kind": "field",
1414
- "name": "editEntityModal",
1284
+ "name": "async-add",
1415
1285
  "type": {
1416
- "text": "any"
1286
+ "text": "boolean"
1417
1287
  },
1418
- "privacy": "public",
1419
- "inheritedFrom": {
1420
- "name": "EntityManagement",
1421
- "module": "src/entities/entities.ts"
1422
- }
1288
+ "default": "false",
1289
+ "fieldName": "asyncAdd"
1423
1290
  },
1424
1291
  {
1425
- "kind": "field",
1426
- "name": "sizeColumnsToFit",
1292
+ "name": "async-remove",
1427
1293
  "type": {
1428
1294
  "text": "boolean"
1429
1295
  },
1430
- "inheritedFrom": {
1431
- "name": "EntityManagement",
1432
- "module": "src/entities/entities.ts"
1433
- }
1296
+ "default": "false",
1297
+ "fieldName": "asyncRemove"
1434
1298
  },
1435
1299
  {
1436
- "kind": "field",
1437
- "name": "enableFilterBar",
1300
+ "name": "async-update",
1438
1301
  "type": {
1439
1302
  "text": "boolean"
1440
1303
  },
1441
- "inheritedFrom": {
1442
- "name": "EntityManagement",
1443
- "module": "src/entities/entities.ts"
1444
- }
1304
+ "default": "true",
1305
+ "fieldName": "asyncUpdate"
1445
1306
  },
1446
1307
  {
1447
- "kind": "field",
1448
- "name": "hideEdit",
1308
+ "name": "enable-cell-flashing",
1449
1309
  "type": {
1450
1310
  "text": "boolean"
1451
1311
  },
1452
1312
  "default": "false",
1453
- "inheritedFrom": {
1454
- "name": "EntityManagement",
1455
- "module": "src/entities/entities.ts"
1456
- }
1313
+ "fieldName": "enableCellFlashing"
1457
1314
  },
1458
1315
  {
1459
- "kind": "field",
1460
- "name": "hideDelete",
1316
+ "name": "enable-row-flashing",
1461
1317
  "type": {
1462
1318
  "text": "boolean"
1463
1319
  },
1464
1320
  "default": "false",
1465
- "inheritedFrom": {
1466
- "name": "EntityManagement",
1467
- "module": "src/entities/entities.ts"
1468
- }
1321
+ "fieldName": "enableRowFlashing"
1469
1322
  },
1470
1323
  {
1471
- "kind": "field",
1472
- "name": "modalPosition",
1324
+ "name": "hide-edit",
1473
1325
  "type": {
1474
- "text": "'centre' | 'left' | 'right'"
1326
+ "text": "boolean"
1475
1327
  },
1476
- "default": "'right'",
1477
- "description": "Determines where the modal dialog will appear on screen",
1478
- "privacy": "public",
1479
- "inheritedFrom": {
1480
- "name": "EntityManagement",
1481
- "module": "src/entities/entities.ts"
1482
- }
1328
+ "default": "false",
1329
+ "fieldName": "hideEdit"
1483
1330
  },
1484
1331
  {
1485
- "kind": "method",
1486
- "name": "deepClone",
1487
- "return": {
1488
- "type": {
1489
- "text": "Node"
1490
- }
1332
+ "name": "hide-delete",
1333
+ "type": {
1334
+ "text": "boolean"
1491
1335
  },
1492
- "description": "Override the deepClone method to ensure that observable attributes are cloned",
1493
- "privacy": "public",
1494
- "inheritedFrom": {
1495
- "name": "EntityManagement",
1496
- "module": "src/entities/entities.ts"
1497
- }
1498
- },
1336
+ "default": "false",
1337
+ "fieldName": "hideDelete"
1338
+ }
1339
+ ],
1340
+ "superclass": {
1341
+ "name": "FASTElement",
1342
+ "package": "@microsoft/fast-element"
1343
+ },
1344
+ "tagName": "entity-list",
1345
+ "customElement": true
1346
+ }
1347
+ ],
1348
+ "exports": [
1349
+ {
1350
+ "kind": "js",
1351
+ "name": "List",
1352
+ "declaration": {
1353
+ "name": "List",
1354
+ "module": "src/list/list.ts"
1355
+ }
1356
+ },
1357
+ {
1358
+ "kind": "custom-element-definition",
1359
+ "name": "entity-list",
1360
+ "declaration": {
1361
+ "name": "List",
1362
+ "module": "src/list/list.ts"
1363
+ }
1364
+ }
1365
+ ]
1366
+ },
1367
+ {
1368
+ "kind": "javascript-module",
1369
+ "path": "src/profiles/editProfileSchema.ts",
1370
+ "declarations": [
1371
+ {
1372
+ "kind": "variable",
1373
+ "name": "editProfileFormSchema",
1374
+ "type": {
1375
+ "text": "object"
1376
+ },
1377
+ "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}"
1378
+ }
1379
+ ],
1380
+ "exports": [
1381
+ {
1382
+ "kind": "js",
1383
+ "name": "editProfileFormSchema",
1384
+ "declaration": {
1385
+ "name": "editProfileFormSchema",
1386
+ "module": "src/profiles/editProfileSchema.ts"
1387
+ }
1388
+ }
1389
+ ]
1390
+ },
1391
+ {
1392
+ "kind": "javascript-module",
1393
+ "path": "src/profiles/profiles.ts",
1394
+ "declarations": [
1395
+ {
1396
+ "kind": "class",
1397
+ "description": "Main class which defined the profile management functionality",
1398
+ "name": "Profiles",
1399
+ "members": [
1499
1400
  {
1500
1401
  "kind": "method",
1501
- "name": "submitEntityChanges",
1402
+ "name": "readProfileData",
1502
1403
  "privacy": "public",
1503
1404
  "parameters": [
1504
1405
  {
1505
- "name": "e",
1506
- "type": {
1507
- "text": "CustomEvent"
1508
- },
1509
- "description": "CustomEvent which contains the payload for the entity to submit to the backend\n\nEmits an event upon error"
1510
- }
1511
- ],
1512
- "description": "Event handler for when the user submits the action for the currently open form, either editing or adding the entity",
1513
- "inheritedFrom": {
1514
- "name": "EntityManagement",
1515
- "module": "src/entities/entities.ts"
1516
- }
1517
- },
1518
- {
1519
- "kind": "method",
1520
- "name": "readEntity",
1521
- "privacy": "private",
1522
- "parameters": [
1523
- {
1524
- "name": "e",
1525
- "type": {
1526
- "text": "CustomEvent"
1527
- }
1406
+ "name": "profile"
1528
1407
  }
1529
- ],
1530
- "inheritedFrom": {
1531
- "name": "EntityManagement",
1532
- "module": "src/entities/entities.ts"
1533
- }
1534
- },
1535
- {
1536
- "kind": "method",
1537
- "name": "closeModal",
1538
- "privacy": "public",
1539
- "inheritedFrom": {
1540
- "name": "EntityManagement",
1541
- "module": "src/entities/entities.ts"
1542
- }
1408
+ ]
1543
1409
  },
1544
1410
  {
1545
1411
  "kind": "method",
1546
- "name": "criteriaChanged",
1547
- "privacy": "public",
1548
- "parameters": [
1549
- {
1550
- "name": "e",
1551
- "type": {
1552
- "text": "CustomEvent<string>"
1553
- }
1554
- }
1555
- ],
1412
+ "name": "confirmDelete",
1556
1413
  "inheritedFrom": {
1557
1414
  "name": "EntityManagement",
1558
1415
  "module": "src/entities/entities.ts"
1559
1416
  }
1560
1417
  },
1561
1418
  {
1562
- "kind": "method",
1563
- "name": "submitFailureNotification",
1564
- "privacy": "public",
1565
- "parameters": [
1566
- {
1567
- "name": "e",
1568
- "type": {
1569
- "text": "CustomEvent"
1570
- }
1571
- }
1572
- ],
1419
+ "kind": "field",
1420
+ "name": "createEvent",
1421
+ "type": {
1422
+ "text": "string"
1423
+ },
1424
+ "description": "Name of the event handler on the Genesis server which handles creating an entity",
1425
+ "privacy": "public",
1573
1426
  "inheritedFrom": {
1574
1427
  "name": "EntityManagement",
1575
1428
  "module": "src/entities/entities.ts"
1576
1429
  }
1577
1430
  },
1578
1431
  {
1579
- "kind": "method",
1580
- "name": "showDeleteConfirmation",
1581
- "privacy": "private",
1432
+ "kind": "field",
1433
+ "name": "deleteEvent",
1434
+ "type": {
1435
+ "text": "string"
1436
+ },
1437
+ "description": "Name of the event handler on the Genesis server which handles deleting the entity",
1438
+ "privacy": "public",
1582
1439
  "inheritedFrom": {
1583
1440
  "name": "EntityManagement",
1584
1441
  "module": "src/entities/entities.ts"
1585
1442
  }
1586
- }
1587
- ],
1588
- "superclass": {
1589
- "name": "EntityManagement",
1590
- "module": "/src/entities"
1591
- },
1592
- "tagName": "profile-management",
1593
- "customElement": true,
1594
- "attributes": [
1443
+ },
1595
1444
  {
1596
- "name": "resourceName",
1445
+ "kind": "field",
1446
+ "name": "updateEvent",
1597
1447
  "type": {
1598
1448
  "text": "string"
1599
1449
  },
1600
- "description": "Name of the backend resource which contain the entities to manage",
1601
- "fieldName": "resourceName",
1450
+ "description": "Name of the event handler on the Genesis server which handles updating the entity",
1451
+ "privacy": "public",
1602
1452
  "inheritedFrom": {
1603
1453
  "name": "EntityManagement",
1604
1454
  "module": "src/entities/entities.ts"
1605
1455
  }
1606
1456
  },
1607
1457
  {
1608
- "name": "readEvent",
1458
+ "kind": "field",
1459
+ "name": "persistColumnStateKey",
1609
1460
  "type": {
1610
1461
  "text": "string"
1611
1462
  },
1612
- "fieldName": "readEvent",
1463
+ "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.",
1464
+ "privacy": "public",
1465
+ "default": "'entity_profiles_management'",
1613
1466
  "inheritedFrom": {
1614
1467
  "name": "EntityManagement",
1615
1468
  "module": "src/entities/entities.ts"
1616
1469
  }
1617
1470
  },
1618
1471
  {
1472
+ "kind": "field",
1473
+ "name": "updateFormUiSchema",
1619
1474
  "type": {
1620
- "text": "boolean"
1475
+ "text": "any"
1621
1476
  },
1622
- "fieldName": "readonly",
1477
+ "default": "editProfileFormSchema",
1623
1478
  "inheritedFrom": {
1624
1479
  "name": "EntityManagement",
1625
1480
  "module": "src/entities/entities.ts"
1626
1481
  }
1627
1482
  },
1628
1483
  {
1629
- "name": "updateEvent",
1484
+ "kind": "field",
1485
+ "name": "createFormUiSchema",
1630
1486
  "type": {
1631
- "text": "string"
1487
+ "text": "any"
1632
1488
  },
1633
- "description": "Name of the event handler on the Genesis server which handles updating the entity",
1634
- "fieldName": "updateEvent",
1489
+ "default": "editProfileFormSchema",
1635
1490
  "inheritedFrom": {
1636
1491
  "name": "EntityManagement",
1637
1492
  "module": "src/entities/entities.ts"
1638
1493
  }
1639
1494
  },
1640
1495
  {
1641
- "name": "deleteEvent",
1496
+ "kind": "field",
1497
+ "name": "readEventFn",
1642
1498
  "type": {
1643
- "text": "string"
1499
+ "text": "(...args) => {}"
1644
1500
  },
1645
- "description": "Name of the event handler on the Genesis server which handles deleting the entity",
1646
- "fieldName": "deleteEvent",
1647
1501
  "inheritedFrom": {
1648
1502
  "name": "EntityManagement",
1649
1503
  "module": "src/entities/entities.ts"
1650
1504
  }
1651
1505
  },
1652
1506
  {
1653
- "name": "createEvent",
1507
+ "kind": "field",
1508
+ "name": "resourceName",
1654
1509
  "type": {
1655
1510
  "text": "string"
1656
1511
  },
1657
- "description": "Name of the event handler on the Genesis server which handles creating an entity",
1658
- "fieldName": "createEvent",
1512
+ "description": "Name of the backend resource which contain the entities to manage",
1513
+ "privacy": "public",
1514
+ "default": "'ALL_PROFILES'",
1659
1515
  "inheritedFrom": {
1660
1516
  "name": "EntityManagement",
1661
1517
  "module": "src/entities/entities.ts"
1662
1518
  }
1663
1519
  },
1664
1520
  {
1521
+ "kind": "field",
1665
1522
  "name": "title",
1666
1523
  "type": {
1667
1524
  "text": "string"
1668
1525
  },
1669
1526
  "description": "Title of the grid",
1670
- "fieldName": "title",
1527
+ "privacy": "public",
1528
+ "default": "'Profile Management'",
1671
1529
  "inheritedFrom": {
1672
1530
  "name": "EntityManagement",
1673
1531
  "module": "src/entities/entities.ts"
1674
1532
  }
1675
1533
  },
1676
1534
  {
1535
+ "kind": "field",
1677
1536
  "name": "entityLabel",
1678
1537
  "type": {
1679
1538
  "text": "string"
1680
1539
  },
1681
- "default": "''",
1540
+ "default": "'Profile'",
1682
1541
  "description": "Label for the entity which has usages such as being shown in the title of the modal wen editing the entity",
1683
- "fieldName": "entityLabel",
1542
+ "privacy": "public",
1684
1543
  "inheritedFrom": {
1685
1544
  "name": "EntityManagement",
1686
1545
  "module": "src/entities/entities.ts"
1687
1546
  }
1688
1547
  },
1689
1548
  {
1690
- "name": "async-add",
1549
+ "kind": "field",
1550
+ "name": "connect",
1691
1551
  "type": {
1692
- "text": "boolean"
1552
+ "text": "Connect"
1693
1553
  },
1694
- "default": "false",
1695
- "description": "Whether to use the `applyTransactionAsync` function for *add* transactions",
1696
- "fieldName": "asyncAdd",
1554
+ "privacy": "protected",
1555
+ "description": "DI connect object which is used to interact with the backend.",
1697
1556
  "inheritedFrom": {
1698
1557
  "name": "EntityManagement",
1699
1558
  "module": "src/entities/entities.ts"
1700
1559
  }
1701
1560
  },
1702
1561
  {
1703
- "name": "async-remove",
1562
+ "kind": "field",
1563
+ "name": "readEvent",
1704
1564
  "type": {
1705
- "text": "boolean"
1565
+ "text": "string"
1706
1566
  },
1707
- "default": "false",
1708
- "description": "Whether to use the `applyTransactionAsync` function for *remove* transactions",
1709
- "fieldName": "asyncRemove",
1710
1567
  "inheritedFrom": {
1711
1568
  "name": "EntityManagement",
1712
1569
  "module": "src/entities/entities.ts"
1713
1570
  }
1714
1571
  },
1715
1572
  {
1716
- "name": "async-update",
1573
+ "kind": "field",
1574
+ "name": "readonly",
1717
1575
  "type": {
1718
1576
  "text": "boolean"
1719
1577
  },
1720
- "default": "true",
1721
- "description": "Whether to use the `applyTransactionAsync` function for *update* transactions",
1722
- "fieldName": "asyncUpdate",
1723
1578
  "inheritedFrom": {
1724
1579
  "name": "EntityManagement",
1725
1580
  "module": "src/entities/entities.ts"
1726
1581
  }
1727
1582
  },
1728
1583
  {
1729
- "name": "enable-cell-flashing",
1584
+ "kind": "field",
1585
+ "name": "asyncAdd",
1730
1586
  "type": {
1731
1587
  "text": "boolean"
1732
1588
  },
1733
1589
  "default": "false",
1734
- "description": "If false, will disable cell flashing for all cells by default, unless otherwise defined in custom colDef",
1735
- "fieldName": "enableCellFlashing",
1590
+ "description": "Whether to use the `applyTransactionAsync` function for *add* transactions",
1591
+ "privacy": "public",
1736
1592
  "inheritedFrom": {
1737
1593
  "name": "EntityManagement",
1738
1594
  "module": "src/entities/entities.ts"
1739
1595
  }
1740
1596
  },
1741
1597
  {
1742
- "name": "enable-row-flashing",
1598
+ "kind": "field",
1599
+ "name": "asyncRemove",
1743
1600
  "type": {
1744
1601
  "text": "boolean"
1745
1602
  },
1746
1603
  "default": "false",
1747
- "description": "If true, will enable row flashing for all rows for `add` async transactions",
1748
- "fieldName": "enableRowFlashing",
1749
- "inheritedFrom": {
1750
- "name": "EntityManagement",
1751
- "module": "src/entities/entities.ts"
1752
- }
1753
- },
1754
- {
1755
- "name": "persist-column-state-key",
1756
- "type": {
1757
- "text": "string"
1758
- },
1759
- "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.",
1760
- "fieldName": "persistColumnStateKey",
1604
+ "description": "Whether to use the `applyTransactionAsync` function for *remove* transactions",
1605
+ "privacy": "public",
1761
1606
  "inheritedFrom": {
1762
1607
  "name": "EntityManagement",
1763
1608
  "module": "src/entities/entities.ts"
1764
1609
  }
1765
1610
  },
1766
1611
  {
1767
- "name": "size-columns-to-fit",
1612
+ "kind": "field",
1613
+ "name": "asyncUpdate",
1768
1614
  "type": {
1769
1615
  "text": "boolean"
1770
1616
  },
1771
- "fieldName": "sizeColumnsToFit",
1617
+ "default": "true",
1618
+ "description": "Whether to use the `applyTransactionAsync` function for *update* transactions",
1619
+ "privacy": "public",
1772
1620
  "inheritedFrom": {
1773
1621
  "name": "EntityManagement",
1774
1622
  "module": "src/entities/entities.ts"
1775
1623
  }
1776
1624
  },
1777
1625
  {
1778
- "name": "enable-filter-bar",
1626
+ "kind": "field",
1627
+ "name": "enableCellFlashing",
1779
1628
  "type": {
1780
1629
  "text": "boolean"
1781
1630
  },
1782
- "fieldName": "enableFilterBar",
1631
+ "default": "false",
1632
+ "description": "If false, will disable cell flashing for all cells by default, unless otherwise defined in custom colDef",
1633
+ "privacy": "public",
1783
1634
  "inheritedFrom": {
1784
1635
  "name": "EntityManagement",
1785
1636
  "module": "src/entities/entities.ts"
1786
1637
  }
1787
1638
  },
1788
1639
  {
1789
- "name": "hide-edit",
1640
+ "kind": "field",
1641
+ "name": "enableRowFlashing",
1790
1642
  "type": {
1791
1643
  "text": "boolean"
1792
1644
  },
1793
1645
  "default": "false",
1794
- "fieldName": "hideEdit",
1646
+ "description": "If true, will enable row flashing for all rows for `add` async transactions",
1647
+ "privacy": "public",
1795
1648
  "inheritedFrom": {
1796
1649
  "name": "EntityManagement",
1797
1650
  "module": "src/entities/entities.ts"
1798
1651
  }
1799
1652
  },
1800
1653
  {
1801
- "name": "hide-delete",
1654
+ "kind": "field",
1655
+ "name": "gridOptions",
1802
1656
  "type": {
1803
- "text": "boolean"
1657
+ "text": "GridOptions"
1804
1658
  },
1805
- "default": "false",
1806
- "fieldName": "hideDelete",
1659
+ "description": "GridOptions to be passed down from application",
1660
+ "privacy": "public",
1807
1661
  "inheritedFrom": {
1808
1662
  "name": "EntityManagement",
1809
1663
  "module": "src/entities/entities.ts"
1810
1664
  }
1811
1665
  },
1812
1666
  {
1813
- "name": "modal-position",
1667
+ "kind": "field",
1668
+ "name": "columns",
1814
1669
  "type": {
1815
- "text": "'centre' | 'left' | 'right'"
1670
+ "text": "ColDef[]"
1816
1671
  },
1817
- "default": "'right'",
1818
- "description": "Determines where the modal dialog will appear on screen",
1819
- "fieldName": "modalPosition",
1672
+ "description": "Array which holds the column definitions.",
1673
+ "privacy": "public",
1820
1674
  "inheritedFrom": {
1821
1675
  "name": "EntityManagement",
1822
1676
  "module": "src/entities/entities.ts"
1823
- }
1824
- }
1825
- ]
1826
- }
1827
- ],
1828
- "exports": [
1829
- {
1830
- "kind": "js",
1831
- "name": "Profiles",
1832
- "declaration": {
1833
- "name": "Profiles",
1834
- "module": "src/profiles/profiles.ts"
1835
- }
1836
- },
1837
- {
1838
- "kind": "custom-element-definition",
1839
- "name": "profile-management",
1840
- "declaration": {
1841
- "name": "Profiles",
1842
- "module": "src/profiles/profiles.ts"
1843
- }
1844
- }
1845
- ]
1846
- },
1847
- {
1848
- "kind": "javascript-module",
1849
- "path": "src/list/index.ts",
1850
- "declarations": [],
1851
- "exports": [
1852
- {
1853
- "kind": "js",
1854
- "name": "*",
1855
- "declaration": {
1856
- "name": "*",
1857
- "package": "./list"
1858
- }
1859
- }
1860
- ]
1861
- },
1862
- {
1863
- "kind": "javascript-module",
1864
- "path": "src/list/list.styles.ts",
1865
- "declarations": [
1866
- {
1867
- "kind": "variable",
1868
- "name": "listStyles",
1869
- "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`"
1870
- }
1871
- ],
1872
- "exports": [
1873
- {
1874
- "kind": "js",
1875
- "name": "listStyles",
1876
- "declaration": {
1877
- "name": "listStyles",
1878
- "module": "src/list/list.styles.ts"
1879
- }
1880
- }
1881
- ]
1882
- },
1883
- {
1884
- "kind": "javascript-module",
1885
- "path": "src/list/list.template.ts",
1886
- "declarations": [
1887
- {
1888
- "kind": "variable",
1889
- "name": "listTemplate",
1890
- "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 async-add=${(x) => x.asyncAdd}\n async-remove=${(x) => x.asyncRemove}\n async-update=${(x) => x.asyncUpdate}\n enable-cell-flashing=${(x) => x.enableCellFlashing}\n enable-row-flashing=${(x) => x.enableRowFlashing}\n >\n <grid-pro-genesis-datasource\n ${ref('datasource')}\n :deferredGridOptions=${(x) => x.gridOptions}\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 moving-view=${(x) => x.datasourceConfig?.movingView}\n order-by=${(x) => x.datasourceConfig?.orderBy}\n polling-interval=${(x) => x.datasourceConfig?.pollingInterval}\n resource-name=${(x) => x.resourceName}\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`"
1891
- }
1892
- ],
1893
- "exports": [
1894
- {
1895
- "kind": "js",
1896
- "name": "listTemplate",
1897
- "declaration": {
1898
- "name": "listTemplate",
1899
- "module": "src/list/list.template.ts"
1900
- }
1901
- }
1902
- ]
1903
- },
1904
- {
1905
- "kind": "javascript-module",
1906
- "path": "src/list/list.ts",
1907
- "declarations": [
1908
- {
1909
- "kind": "class",
1910
- "description": "",
1911
- "name": "List",
1912
- "members": [
1677
+ }
1678
+ },
1913
1679
  {
1914
1680
  "kind": "field",
1915
- "name": "resourceName",
1681
+ "name": "datasourceConfig",
1916
1682
  "type": {
1917
- "text": "string"
1683
+ "text": "DatasourceConfiguration"
1918
1684
  },
1919
- "default": "''"
1685
+ "description": "The configuration which is used when interacting with the resource on the backend",
1686
+ "privacy": "public",
1687
+ "inheritedFrom": {
1688
+ "name": "EntityManagement",
1689
+ "module": "src/entities/entities.ts"
1690
+ }
1920
1691
  },
1921
1692
  {
1922
1693
  "kind": "field",
1923
- "name": "title",
1694
+ "name": "formUiSchema",
1924
1695
  "type": {
1925
- "text": "string"
1696
+ "text": "any"
1926
1697
  },
1927
- "default": "''"
1698
+ "inheritedFrom": {
1699
+ "name": "EntityManagement",
1700
+ "module": "src/entities/entities.ts"
1701
+ }
1928
1702
  },
1929
1703
  {
1930
1704
  "kind": "field",
1931
- "name": "persistColumnStateKey",
1705
+ "name": "formRenderers",
1932
1706
  "type": {
1933
- "text": "string"
1707
+ "text": "RendererEntry[]"
1708
+ },
1709
+ "default": "renderers",
1710
+ "description": "Array with renderers used by foundation-forms",
1711
+ "privacy": "public",
1712
+ "inheritedFrom": {
1713
+ "name": "EntityManagement",
1714
+ "module": "src/entities/entities.ts"
1934
1715
  }
1935
1716
  },
1936
1717
  {
1937
1718
  "kind": "field",
1938
- "name": "sizeColumnsToFit",
1719
+ "name": "selectedEntity",
1939
1720
  "type": {
1940
- "text": "boolean"
1721
+ "text": "any"
1722
+ },
1723
+ "description": "Reference to the currently selected entity from the grid.",
1724
+ "privacy": "public",
1725
+ "inheritedFrom": {
1726
+ "name": "EntityManagement",
1727
+ "module": "src/entities/entities.ts"
1941
1728
  }
1942
1729
  },
1943
1730
  {
1944
1731
  "kind": "field",
1945
- "name": "enableFilterBar",
1732
+ "name": "editedEntity",
1946
1733
  "type": {
1947
- "text": "boolean"
1734
+ "text": "any"
1735
+ },
1736
+ "description": "Disables the form while enabled to stop the user dispatching a large number of duplicate events",
1737
+ "privacy": "public",
1738
+ "inheritedFrom": {
1739
+ "name": "EntityManagement",
1740
+ "module": "src/entities/entities.ts"
1948
1741
  }
1949
1742
  },
1950
1743
  {
1951
1744
  "kind": "field",
1952
- "name": "asyncAdd",
1745
+ "name": "submitting",
1953
1746
  "type": {
1954
1747
  "text": "boolean"
1955
1748
  },
1956
- "default": "false"
1749
+ "inheritedFrom": {
1750
+ "name": "EntityManagement",
1751
+ "module": "src/entities/entities.ts"
1752
+ }
1957
1753
  },
1958
1754
  {
1959
1755
  "kind": "field",
1960
- "name": "asyncRemove",
1756
+ "name": "defaultEntityValues",
1961
1757
  "type": {
1962
- "text": "boolean"
1758
+ "text": "any"
1963
1759
  },
1964
- "default": "false"
1760
+ "inheritedFrom": {
1761
+ "name": "EntityManagement",
1762
+ "module": "src/entities/entities.ts"
1763
+ }
1965
1764
  },
1966
1765
  {
1967
1766
  "kind": "field",
1968
- "name": "asyncUpdate",
1767
+ "name": "editDialogTitle",
1768
+ "type": {
1769
+ "text": "string"
1770
+ },
1771
+ "description": "String which contains the text of the popup modal when the user is adding or editing an entity",
1772
+ "inheritedFrom": {
1773
+ "name": "EntityManagement",
1774
+ "module": "src/entities/entities.ts"
1775
+ }
1776
+ },
1777
+ {
1778
+ "kind": "field",
1779
+ "name": "editModalVisible",
1969
1780
  "type": {
1970
1781
  "text": "boolean"
1971
1782
  },
1972
- "default": "true"
1783
+ "default": "false",
1784
+ "inheritedFrom": {
1785
+ "name": "EntityManagement",
1786
+ "module": "src/entities/entities.ts"
1787
+ }
1788
+ },
1789
+ {
1790
+ "kind": "method",
1791
+ "name": "editModalVisibleChanged",
1792
+ "inheritedFrom": {
1793
+ "name": "EntityManagement",
1794
+ "module": "src/entities/entities.ts"
1795
+ }
1973
1796
  },
1974
1797
  {
1975
1798
  "kind": "field",
1976
- "name": "enableCellFlashing",
1799
+ "name": "editEntityModal",
1800
+ "type": {
1801
+ "text": "any"
1802
+ },
1803
+ "privacy": "public",
1804
+ "inheritedFrom": {
1805
+ "name": "EntityManagement",
1806
+ "module": "src/entities/entities.ts"
1807
+ }
1808
+ },
1809
+ {
1810
+ "kind": "field",
1811
+ "name": "sizeColumnsToFit",
1977
1812
  "type": {
1978
1813
  "text": "boolean"
1979
1814
  },
1980
- "default": "false"
1815
+ "inheritedFrom": {
1816
+ "name": "EntityManagement",
1817
+ "module": "src/entities/entities.ts"
1818
+ }
1981
1819
  },
1982
1820
  {
1983
1821
  "kind": "field",
1984
- "name": "enableRowFlashing",
1822
+ "name": "enableFilterBar",
1985
1823
  "type": {
1986
1824
  "text": "boolean"
1987
1825
  },
1988
- "default": "false"
1826
+ "inheritedFrom": {
1827
+ "name": "EntityManagement",
1828
+ "module": "src/entities/entities.ts"
1829
+ }
1989
1830
  },
1990
1831
  {
1991
1832
  "kind": "field",
@@ -1993,7 +1834,11 @@
1993
1834
  "type": {
1994
1835
  "text": "boolean"
1995
1836
  },
1996
- "default": "false"
1837
+ "default": "false",
1838
+ "inheritedFrom": {
1839
+ "name": "EntityManagement",
1840
+ "module": "src/entities/entities.ts"
1841
+ }
1997
1842
  },
1998
1843
  {
1999
1844
  "kind": "field",
@@ -2001,189 +1846,329 @@
2001
1846
  "type": {
2002
1847
  "text": "boolean"
2003
1848
  },
2004
- "default": "false"
1849
+ "default": "false",
1850
+ "inheritedFrom": {
1851
+ "name": "EntityManagement",
1852
+ "module": "src/entities/entities.ts"
1853
+ }
2005
1854
  },
2006
1855
  {
2007
1856
  "kind": "field",
2008
- "name": "grid",
1857
+ "name": "modalPosition",
2009
1858
  "type": {
2010
- "text": "ZeroGridPro"
1859
+ "text": "'centre' | 'left' | 'right'"
2011
1860
  },
2012
- "privacy": "public"
1861
+ "default": "'right'",
1862
+ "description": "Determines where the modal dialog will appear on screen",
1863
+ "privacy": "public",
1864
+ "inheritedFrom": {
1865
+ "name": "EntityManagement",
1866
+ "module": "src/entities/entities.ts"
1867
+ }
1868
+ },
1869
+ {
1870
+ "kind": "method",
1871
+ "name": "deepClone",
1872
+ "return": {
1873
+ "type": {
1874
+ "text": "Node"
1875
+ }
1876
+ },
1877
+ "description": "Override the deepClone method to ensure that observable attributes are cloned",
1878
+ "privacy": "public",
1879
+ "inheritedFrom": {
1880
+ "name": "EntityManagement",
1881
+ "module": "src/entities/entities.ts"
1882
+ }
1883
+ },
1884
+ {
1885
+ "kind": "method",
1886
+ "name": "submitEntityChanges",
1887
+ "privacy": "public",
1888
+ "parameters": [
1889
+ {
1890
+ "name": "e",
1891
+ "type": {
1892
+ "text": "CustomEvent"
1893
+ },
1894
+ "description": "CustomEvent which contains the payload for the entity to submit to the backend\n\nEmits an event upon error"
1895
+ }
1896
+ ],
1897
+ "description": "Event handler for when the user submits the action for the currently open form, either editing or adding the entity",
1898
+ "inheritedFrom": {
1899
+ "name": "EntityManagement",
1900
+ "module": "src/entities/entities.ts"
1901
+ }
1902
+ },
1903
+ {
1904
+ "kind": "method",
1905
+ "name": "readEntity",
1906
+ "privacy": "private",
1907
+ "parameters": [
1908
+ {
1909
+ "name": "e",
1910
+ "type": {
1911
+ "text": "CustomEvent"
1912
+ }
1913
+ }
1914
+ ],
1915
+ "inheritedFrom": {
1916
+ "name": "EntityManagement",
1917
+ "module": "src/entities/entities.ts"
1918
+ }
1919
+ },
1920
+ {
1921
+ "kind": "method",
1922
+ "name": "closeModal",
1923
+ "privacy": "public",
1924
+ "inheritedFrom": {
1925
+ "name": "EntityManagement",
1926
+ "module": "src/entities/entities.ts"
1927
+ }
1928
+ },
1929
+ {
1930
+ "kind": "method",
1931
+ "name": "criteriaChanged",
1932
+ "privacy": "public",
1933
+ "parameters": [
1934
+ {
1935
+ "name": "e",
1936
+ "type": {
1937
+ "text": "CustomEvent<string>"
1938
+ }
1939
+ }
1940
+ ],
1941
+ "inheritedFrom": {
1942
+ "name": "EntityManagement",
1943
+ "module": "src/entities/entities.ts"
1944
+ }
2013
1945
  },
2014
1946
  {
2015
- "kind": "field",
2016
- "name": "datasource",
1947
+ "kind": "method",
1948
+ "name": "submitFailureNotification",
1949
+ "privacy": "public",
1950
+ "parameters": [
1951
+ {
1952
+ "name": "e",
1953
+ "type": {
1954
+ "text": "CustomEvent"
1955
+ }
1956
+ }
1957
+ ],
1958
+ "inheritedFrom": {
1959
+ "name": "EntityManagement",
1960
+ "module": "src/entities/entities.ts"
1961
+ }
1962
+ },
1963
+ {
1964
+ "kind": "method",
1965
+ "name": "showDeleteConfirmation",
1966
+ "privacy": "private",
1967
+ "inheritedFrom": {
1968
+ "name": "EntityManagement",
1969
+ "module": "src/entities/entities.ts"
1970
+ }
1971
+ }
1972
+ ],
1973
+ "superclass": {
1974
+ "name": "EntityManagement",
1975
+ "module": "/src/entities"
1976
+ },
1977
+ "tagName": "profile-management",
1978
+ "customElement": true,
1979
+ "attributes": [
1980
+ {
1981
+ "name": "resourceName",
2017
1982
  "type": {
2018
- "text": "GridProGenesisDatasource"
1983
+ "text": "string"
2019
1984
  },
2020
- "privacy": "public"
2021
- },
2022
- {
2023
- "kind": "field",
2024
- "name": "gridOptions",
2025
- "type": {
2026
- "text": "GridOptions"
1985
+ "description": "Name of the backend resource which contain the entities to manage",
1986
+ "fieldName": "resourceName",
1987
+ "inheritedFrom": {
1988
+ "name": "EntityManagement",
1989
+ "module": "src/entities/entities.ts"
2027
1990
  }
2028
1991
  },
2029
1992
  {
2030
- "kind": "field",
2031
- "name": "columns",
1993
+ "name": "readEvent",
2032
1994
  "type": {
2033
- "text": "ColDef[]"
1995
+ "text": "string"
1996
+ },
1997
+ "fieldName": "readEvent",
1998
+ "inheritedFrom": {
1999
+ "name": "EntityManagement",
2000
+ "module": "src/entities/entities.ts"
2034
2001
  }
2035
2002
  },
2036
2003
  {
2037
- "kind": "field",
2038
- "name": "datasourceConfig",
2039
2004
  "type": {
2040
- "text": "DatasourceConfiguration"
2005
+ "text": "boolean"
2006
+ },
2007
+ "fieldName": "readonly",
2008
+ "inheritedFrom": {
2009
+ "name": "EntityManagement",
2010
+ "module": "src/entities/entities.ts"
2041
2011
  }
2042
2012
  },
2043
2013
  {
2044
- "kind": "field",
2045
- "name": "actionButtonsConfig",
2014
+ "name": "updateEvent",
2046
2015
  "type": {
2047
- "text": "array"
2016
+ "text": "string"
2048
2017
  },
2049
- "default": "[]"
2018
+ "description": "Name of the event handler on the Genesis server which handles updating the entity",
2019
+ "fieldName": "updateEvent",
2020
+ "inheritedFrom": {
2021
+ "name": "EntityManagement",
2022
+ "module": "src/entities/entities.ts"
2023
+ }
2050
2024
  },
2051
2025
  {
2052
- "kind": "field",
2053
2026
  "name": "deleteEvent",
2054
2027
  "type": {
2055
2028
  "text": "string"
2029
+ },
2030
+ "description": "Name of the event handler on the Genesis server which handles deleting the entity",
2031
+ "fieldName": "deleteEvent",
2032
+ "inheritedFrom": {
2033
+ "name": "EntityManagement",
2034
+ "module": "src/entities/entities.ts"
2056
2035
  }
2057
2036
  },
2058
2037
  {
2059
- "kind": "field",
2060
- "name": "updateEvent",
2038
+ "name": "createEvent",
2061
2039
  "type": {
2062
2040
  "text": "string"
2041
+ },
2042
+ "description": "Name of the event handler on the Genesis server which handles creating an entity",
2043
+ "fieldName": "createEvent",
2044
+ "inheritedFrom": {
2045
+ "name": "EntityManagement",
2046
+ "module": "src/entities/entities.ts"
2063
2047
  }
2064
2048
  },
2065
2049
  {
2066
- "kind": "method",
2067
- "name": "handleFilterChanged",
2068
- "privacy": "private",
2069
- "parameters": [
2070
- {
2071
- "name": "e"
2072
- }
2073
- ]
2074
- },
2075
- {
2076
- "kind": "method",
2077
- "name": "handleFilterCleared",
2078
- "privacy": "private",
2079
- "parameters": [
2080
- {
2081
- "name": "e"
2082
- }
2083
- ]
2084
- },
2085
- {
2086
- "kind": "method",
2087
- "name": "select",
2088
- "privacy": "private",
2089
- "parameters": [
2090
- {
2091
- "name": "e"
2092
- }
2093
- ]
2094
- },
2095
- {
2096
- "kind": "field",
2097
- "name": "edit",
2098
- "privacy": "private"
2099
- },
2100
- {
2101
- "kind": "method",
2102
- "name": "delete",
2103
- "parameters": [
2104
- {
2105
- "name": "e"
2106
- }
2107
- ]
2108
- }
2109
- ],
2110
- "attributes": [
2111
- {
2112
- "name": "resourceName",
2050
+ "name": "title",
2113
2051
  "type": {
2114
2052
  "text": "string"
2115
2053
  },
2116
- "default": "''",
2117
- "fieldName": "resourceName"
2054
+ "description": "Title of the grid",
2055
+ "fieldName": "title",
2056
+ "inheritedFrom": {
2057
+ "name": "EntityManagement",
2058
+ "module": "src/entities/entities.ts"
2059
+ }
2118
2060
  },
2119
2061
  {
2120
- "name": "title",
2062
+ "name": "entityLabel",
2121
2063
  "type": {
2122
2064
  "text": "string"
2123
2065
  },
2124
2066
  "default": "''",
2125
- "fieldName": "title"
2067
+ "description": "Label for the entity which has usages such as being shown in the title of the modal wen editing the entity",
2068
+ "fieldName": "entityLabel",
2069
+ "inheritedFrom": {
2070
+ "name": "EntityManagement",
2071
+ "module": "src/entities/entities.ts"
2072
+ }
2126
2073
  },
2127
2074
  {
2128
- "name": "persist-column-state-key",
2075
+ "name": "async-add",
2129
2076
  "type": {
2130
- "text": "string"
2077
+ "text": "boolean"
2131
2078
  },
2132
- "fieldName": "persistColumnStateKey"
2079
+ "default": "false",
2080
+ "description": "Whether to use the `applyTransactionAsync` function for *add* transactions",
2081
+ "fieldName": "asyncAdd",
2082
+ "inheritedFrom": {
2083
+ "name": "EntityManagement",
2084
+ "module": "src/entities/entities.ts"
2085
+ }
2133
2086
  },
2134
2087
  {
2135
- "name": "size-columns-to-fit",
2088
+ "name": "async-remove",
2136
2089
  "type": {
2137
2090
  "text": "boolean"
2138
2091
  },
2139
- "fieldName": "sizeColumnsToFit"
2092
+ "default": "false",
2093
+ "description": "Whether to use the `applyTransactionAsync` function for *remove* transactions",
2094
+ "fieldName": "asyncRemove",
2095
+ "inheritedFrom": {
2096
+ "name": "EntityManagement",
2097
+ "module": "src/entities/entities.ts"
2098
+ }
2140
2099
  },
2141
2100
  {
2142
- "name": "enable-filter-bar",
2101
+ "name": "async-update",
2143
2102
  "type": {
2144
2103
  "text": "boolean"
2145
2104
  },
2146
- "fieldName": "enableFilterBar"
2105
+ "default": "true",
2106
+ "description": "Whether to use the `applyTransactionAsync` function for *update* transactions",
2107
+ "fieldName": "asyncUpdate",
2108
+ "inheritedFrom": {
2109
+ "name": "EntityManagement",
2110
+ "module": "src/entities/entities.ts"
2111
+ }
2147
2112
  },
2148
2113
  {
2149
- "name": "async-add",
2114
+ "name": "enable-cell-flashing",
2150
2115
  "type": {
2151
2116
  "text": "boolean"
2152
2117
  },
2153
2118
  "default": "false",
2154
- "fieldName": "asyncAdd"
2119
+ "description": "If false, will disable cell flashing for all cells by default, unless otherwise defined in custom colDef",
2120
+ "fieldName": "enableCellFlashing",
2121
+ "inheritedFrom": {
2122
+ "name": "EntityManagement",
2123
+ "module": "src/entities/entities.ts"
2124
+ }
2155
2125
  },
2156
2126
  {
2157
- "name": "async-remove",
2127
+ "name": "enable-row-flashing",
2158
2128
  "type": {
2159
2129
  "text": "boolean"
2160
2130
  },
2161
2131
  "default": "false",
2162
- "fieldName": "asyncRemove"
2132
+ "description": "If true, will enable row flashing for all rows for `add` async transactions",
2133
+ "fieldName": "enableRowFlashing",
2134
+ "inheritedFrom": {
2135
+ "name": "EntityManagement",
2136
+ "module": "src/entities/entities.ts"
2137
+ }
2163
2138
  },
2164
2139
  {
2165
- "name": "async-update",
2140
+ "name": "persist-column-state-key",
2166
2141
  "type": {
2167
- "text": "boolean"
2142
+ "text": "string"
2168
2143
  },
2169
- "default": "true",
2170
- "fieldName": "asyncUpdate"
2144
+ "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.",
2145
+ "fieldName": "persistColumnStateKey",
2146
+ "inheritedFrom": {
2147
+ "name": "EntityManagement",
2148
+ "module": "src/entities/entities.ts"
2149
+ }
2171
2150
  },
2172
2151
  {
2173
- "name": "enable-cell-flashing",
2152
+ "name": "size-columns-to-fit",
2174
2153
  "type": {
2175
2154
  "text": "boolean"
2176
2155
  },
2177
- "default": "false",
2178
- "fieldName": "enableCellFlashing"
2156
+ "fieldName": "sizeColumnsToFit",
2157
+ "inheritedFrom": {
2158
+ "name": "EntityManagement",
2159
+ "module": "src/entities/entities.ts"
2160
+ }
2179
2161
  },
2180
2162
  {
2181
- "name": "enable-row-flashing",
2163
+ "name": "enable-filter-bar",
2182
2164
  "type": {
2183
2165
  "text": "boolean"
2184
2166
  },
2185
- "default": "false",
2186
- "fieldName": "enableRowFlashing"
2167
+ "fieldName": "enableFilterBar",
2168
+ "inheritedFrom": {
2169
+ "name": "EntityManagement",
2170
+ "module": "src/entities/entities.ts"
2171
+ }
2187
2172
  },
2188
2173
  {
2189
2174
  "name": "hide-edit",
@@ -2191,7 +2176,11 @@
2191
2176
  "text": "boolean"
2192
2177
  },
2193
2178
  "default": "false",
2194
- "fieldName": "hideEdit"
2179
+ "fieldName": "hideEdit",
2180
+ "inheritedFrom": {
2181
+ "name": "EntityManagement",
2182
+ "module": "src/entities/entities.ts"
2183
+ }
2195
2184
  },
2196
2185
  {
2197
2186
  "name": "hide-delete",
@@ -2199,32 +2188,43 @@
2199
2188
  "text": "boolean"
2200
2189
  },
2201
2190
  "default": "false",
2202
- "fieldName": "hideDelete"
2191
+ "fieldName": "hideDelete",
2192
+ "inheritedFrom": {
2193
+ "name": "EntityManagement",
2194
+ "module": "src/entities/entities.ts"
2195
+ }
2196
+ },
2197
+ {
2198
+ "name": "modal-position",
2199
+ "type": {
2200
+ "text": "'centre' | 'left' | 'right'"
2201
+ },
2202
+ "default": "'right'",
2203
+ "description": "Determines where the modal dialog will appear on screen",
2204
+ "fieldName": "modalPosition",
2205
+ "inheritedFrom": {
2206
+ "name": "EntityManagement",
2207
+ "module": "src/entities/entities.ts"
2208
+ }
2203
2209
  }
2204
- ],
2205
- "superclass": {
2206
- "name": "FASTElement",
2207
- "package": "@microsoft/fast-element"
2208
- },
2209
- "tagName": "entity-list",
2210
- "customElement": true
2210
+ ]
2211
2211
  }
2212
2212
  ],
2213
2213
  "exports": [
2214
2214
  {
2215
2215
  "kind": "js",
2216
- "name": "List",
2216
+ "name": "Profiles",
2217
2217
  "declaration": {
2218
- "name": "List",
2219
- "module": "src/list/list.ts"
2218
+ "name": "Profiles",
2219
+ "module": "src/profiles/profiles.ts"
2220
2220
  }
2221
2221
  },
2222
2222
  {
2223
2223
  "kind": "custom-element-definition",
2224
- "name": "entity-list",
2224
+ "name": "profile-management",
2225
2225
  "declaration": {
2226
- "name": "List",
2227
- "module": "src/list/list.ts"
2226
+ "name": "Profiles",
2227
+ "module": "src/profiles/profiles.ts"
2228
2228
  }
2229
2229
  }
2230
2230
  ]