@genesislcap/foundation-entity-management 14.150.2 → 14.151.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.
- package/dist/custom-elements.json +236 -211
- package/dist/dts/entities/entities.d.ts +9 -4
- package/dist/dts/entities/entities.d.ts.map +1 -1
- package/dist/dts/users/users.d.ts +13 -0
- package/dist/dts/users/users.d.ts.map +1 -1
- package/dist/esm/entities/entities.js +32 -0
- package/dist/esm/users/users.js +8 -0
- package/dist/esm/users/users.template.js +1 -1
- package/dist/foundation-entity-management.api.json +31 -1
- package/dist/foundation-entity-management.d.ts +22 -4
- package/docs/api/foundation-entity-management.entitymanagement.enablesearchbar.md +2 -0
- package/docs/api/foundation-entity-management.entitymanagement.md +1 -1
- package/docs/api/foundation-entity-management.users.enablesearchbar.md +13 -0
- package/docs/api/foundation-entity-management.users.md +1 -0
- package/docs/api-report.md +1 -1
- package/package.json +21 -21
|
@@ -87,41 +87,6 @@
|
|
|
87
87
|
}
|
|
88
88
|
]
|
|
89
89
|
},
|
|
90
|
-
{
|
|
91
|
-
"kind": "javascript-module",
|
|
92
|
-
"path": "src/components/components.ts",
|
|
93
|
-
"declarations": [
|
|
94
|
-
{
|
|
95
|
-
"kind": "function",
|
|
96
|
-
"name": "loadRemotes"
|
|
97
|
-
}
|
|
98
|
-
],
|
|
99
|
-
"exports": [
|
|
100
|
-
{
|
|
101
|
-
"kind": "js",
|
|
102
|
-
"name": "loadRemotes",
|
|
103
|
-
"declaration": {
|
|
104
|
-
"name": "loadRemotes",
|
|
105
|
-
"module": "src/components/components.ts"
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
]
|
|
109
|
-
},
|
|
110
|
-
{
|
|
111
|
-
"kind": "javascript-module",
|
|
112
|
-
"path": "src/components/index.ts",
|
|
113
|
-
"declarations": [],
|
|
114
|
-
"exports": [
|
|
115
|
-
{
|
|
116
|
-
"kind": "js",
|
|
117
|
-
"name": "*",
|
|
118
|
-
"declaration": {
|
|
119
|
-
"name": "*",
|
|
120
|
-
"package": "./components"
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
]
|
|
124
|
-
},
|
|
125
90
|
{
|
|
126
91
|
"kind": "javascript-module",
|
|
127
92
|
"path": "src/entities/entities.styles.ts",
|
|
@@ -473,7 +438,9 @@
|
|
|
473
438
|
"type": {
|
|
474
439
|
"text": "boolean"
|
|
475
440
|
},
|
|
476
|
-
"default": "false"
|
|
441
|
+
"default": "false",
|
|
442
|
+
"description": "This attribute controls whether to enable the search-bar.",
|
|
443
|
+
"privacy": "public"
|
|
477
444
|
},
|
|
478
445
|
{
|
|
479
446
|
"kind": "field",
|
|
@@ -751,6 +718,7 @@
|
|
|
751
718
|
"text": "boolean"
|
|
752
719
|
},
|
|
753
720
|
"default": "false",
|
|
721
|
+
"description": "This attribute controls whether to enable the search-bar.",
|
|
754
722
|
"fieldName": "enableSearchBar"
|
|
755
723
|
},
|
|
756
724
|
{
|
|
@@ -884,159 +852,6 @@
|
|
|
884
852
|
}
|
|
885
853
|
]
|
|
886
854
|
},
|
|
887
|
-
{
|
|
888
|
-
"kind": "javascript-module",
|
|
889
|
-
"path": "src/main/index.ts",
|
|
890
|
-
"declarations": [],
|
|
891
|
-
"exports": [
|
|
892
|
-
{
|
|
893
|
-
"kind": "js",
|
|
894
|
-
"name": "*",
|
|
895
|
-
"declaration": {
|
|
896
|
-
"name": "*",
|
|
897
|
-
"package": "./main.template"
|
|
898
|
-
}
|
|
899
|
-
},
|
|
900
|
-
{
|
|
901
|
-
"kind": "js",
|
|
902
|
-
"name": "*",
|
|
903
|
-
"declaration": {
|
|
904
|
-
"name": "*",
|
|
905
|
-
"package": "./main"
|
|
906
|
-
}
|
|
907
|
-
}
|
|
908
|
-
]
|
|
909
|
-
},
|
|
910
|
-
{
|
|
911
|
-
"kind": "javascript-module",
|
|
912
|
-
"path": "src/main/main.styles.ts",
|
|
913
|
-
"declarations": [
|
|
914
|
-
{
|
|
915
|
-
"kind": "variable",
|
|
916
|
-
"name": "MainStyles",
|
|
917
|
-
"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`"
|
|
918
|
-
}
|
|
919
|
-
],
|
|
920
|
-
"exports": [
|
|
921
|
-
{
|
|
922
|
-
"kind": "js",
|
|
923
|
-
"name": "MainStyles",
|
|
924
|
-
"declaration": {
|
|
925
|
-
"name": "MainStyles",
|
|
926
|
-
"module": "src/main/main.styles.ts"
|
|
927
|
-
}
|
|
928
|
-
}
|
|
929
|
-
]
|
|
930
|
-
},
|
|
931
|
-
{
|
|
932
|
-
"kind": "javascript-module",
|
|
933
|
-
"path": "src/main/main.template.ts",
|
|
934
|
-
"declarations": [],
|
|
935
|
-
"exports": []
|
|
936
|
-
},
|
|
937
|
-
{
|
|
938
|
-
"kind": "javascript-module",
|
|
939
|
-
"path": "src/main/main.ts",
|
|
940
|
-
"declarations": [
|
|
941
|
-
{
|
|
942
|
-
"kind": "class",
|
|
943
|
-
"description": "",
|
|
944
|
-
"name": "MainApplication",
|
|
945
|
-
"members": [
|
|
946
|
-
{
|
|
947
|
-
"kind": "field",
|
|
948
|
-
"name": "config",
|
|
949
|
-
"type": {
|
|
950
|
-
"text": "MainRouterConfig"
|
|
951
|
-
}
|
|
952
|
-
},
|
|
953
|
-
{
|
|
954
|
-
"kind": "field",
|
|
955
|
-
"name": "connect",
|
|
956
|
-
"type": {
|
|
957
|
-
"text": "Connect"
|
|
958
|
-
}
|
|
959
|
-
},
|
|
960
|
-
{
|
|
961
|
-
"kind": "field",
|
|
962
|
-
"name": "session",
|
|
963
|
-
"type": {
|
|
964
|
-
"text": "Session"
|
|
965
|
-
}
|
|
966
|
-
},
|
|
967
|
-
{
|
|
968
|
-
"kind": "field",
|
|
969
|
-
"name": "container",
|
|
970
|
-
"type": {
|
|
971
|
-
"text": "Container"
|
|
972
|
-
}
|
|
973
|
-
},
|
|
974
|
-
{
|
|
975
|
-
"kind": "field",
|
|
976
|
-
"name": "provider",
|
|
977
|
-
"type": {
|
|
978
|
-
"text": "any"
|
|
979
|
-
}
|
|
980
|
-
},
|
|
981
|
-
{
|
|
982
|
-
"kind": "field",
|
|
983
|
-
"name": "ready",
|
|
984
|
-
"type": {
|
|
985
|
-
"text": "boolean"
|
|
986
|
-
},
|
|
987
|
-
"default": "false"
|
|
988
|
-
},
|
|
989
|
-
{
|
|
990
|
-
"kind": "field",
|
|
991
|
-
"name": "data",
|
|
992
|
-
"type": {
|
|
993
|
-
"text": "any"
|
|
994
|
-
},
|
|
995
|
-
"default": "null"
|
|
996
|
-
},
|
|
997
|
-
{
|
|
998
|
-
"kind": "method",
|
|
999
|
-
"name": "onLuminanceToggle"
|
|
1000
|
-
},
|
|
1001
|
-
{
|
|
1002
|
-
"kind": "method",
|
|
1003
|
-
"name": "loadRemotes"
|
|
1004
|
-
},
|
|
1005
|
-
{
|
|
1006
|
-
"kind": "method",
|
|
1007
|
-
"name": "selectTemplate"
|
|
1008
|
-
},
|
|
1009
|
-
{
|
|
1010
|
-
"kind": "method",
|
|
1011
|
-
"name": "registerDIDependencies",
|
|
1012
|
-
"privacy": "private"
|
|
1013
|
-
}
|
|
1014
|
-
],
|
|
1015
|
-
"superclass": {
|
|
1016
|
-
"name": "FASTElement",
|
|
1017
|
-
"package": "@microsoft/fast-element"
|
|
1018
|
-
},
|
|
1019
|
-
"customElement": true
|
|
1020
|
-
}
|
|
1021
|
-
],
|
|
1022
|
-
"exports": [
|
|
1023
|
-
{
|
|
1024
|
-
"kind": "js",
|
|
1025
|
-
"name": "MainApplication",
|
|
1026
|
-
"declaration": {
|
|
1027
|
-
"name": "MainApplication",
|
|
1028
|
-
"module": "src/main/main.ts"
|
|
1029
|
-
}
|
|
1030
|
-
},
|
|
1031
|
-
{
|
|
1032
|
-
"kind": "custom-element-definition",
|
|
1033
|
-
"declaration": {
|
|
1034
|
-
"name": "MainApplication",
|
|
1035
|
-
"module": "src/main/main.ts"
|
|
1036
|
-
}
|
|
1037
|
-
}
|
|
1038
|
-
]
|
|
1039
|
-
},
|
|
1040
855
|
{
|
|
1041
856
|
"kind": "javascript-module",
|
|
1042
857
|
"path": "src/list/index.ts",
|
|
@@ -1457,6 +1272,194 @@
|
|
|
1457
1272
|
}
|
|
1458
1273
|
]
|
|
1459
1274
|
},
|
|
1275
|
+
{
|
|
1276
|
+
"kind": "javascript-module",
|
|
1277
|
+
"path": "src/components/components.ts",
|
|
1278
|
+
"declarations": [
|
|
1279
|
+
{
|
|
1280
|
+
"kind": "function",
|
|
1281
|
+
"name": "loadRemotes"
|
|
1282
|
+
}
|
|
1283
|
+
],
|
|
1284
|
+
"exports": [
|
|
1285
|
+
{
|
|
1286
|
+
"kind": "js",
|
|
1287
|
+
"name": "loadRemotes",
|
|
1288
|
+
"declaration": {
|
|
1289
|
+
"name": "loadRemotes",
|
|
1290
|
+
"module": "src/components/components.ts"
|
|
1291
|
+
}
|
|
1292
|
+
}
|
|
1293
|
+
]
|
|
1294
|
+
},
|
|
1295
|
+
{
|
|
1296
|
+
"kind": "javascript-module",
|
|
1297
|
+
"path": "src/components/index.ts",
|
|
1298
|
+
"declarations": [],
|
|
1299
|
+
"exports": [
|
|
1300
|
+
{
|
|
1301
|
+
"kind": "js",
|
|
1302
|
+
"name": "*",
|
|
1303
|
+
"declaration": {
|
|
1304
|
+
"name": "*",
|
|
1305
|
+
"package": "./components"
|
|
1306
|
+
}
|
|
1307
|
+
}
|
|
1308
|
+
]
|
|
1309
|
+
},
|
|
1310
|
+
{
|
|
1311
|
+
"kind": "javascript-module",
|
|
1312
|
+
"path": "src/main/index.ts",
|
|
1313
|
+
"declarations": [],
|
|
1314
|
+
"exports": [
|
|
1315
|
+
{
|
|
1316
|
+
"kind": "js",
|
|
1317
|
+
"name": "*",
|
|
1318
|
+
"declaration": {
|
|
1319
|
+
"name": "*",
|
|
1320
|
+
"package": "./main.template"
|
|
1321
|
+
}
|
|
1322
|
+
},
|
|
1323
|
+
{
|
|
1324
|
+
"kind": "js",
|
|
1325
|
+
"name": "*",
|
|
1326
|
+
"declaration": {
|
|
1327
|
+
"name": "*",
|
|
1328
|
+
"package": "./main"
|
|
1329
|
+
}
|
|
1330
|
+
}
|
|
1331
|
+
]
|
|
1332
|
+
},
|
|
1333
|
+
{
|
|
1334
|
+
"kind": "javascript-module",
|
|
1335
|
+
"path": "src/main/main.styles.ts",
|
|
1336
|
+
"declarations": [
|
|
1337
|
+
{
|
|
1338
|
+
"kind": "variable",
|
|
1339
|
+
"name": "MainStyles",
|
|
1340
|
+
"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`"
|
|
1341
|
+
}
|
|
1342
|
+
],
|
|
1343
|
+
"exports": [
|
|
1344
|
+
{
|
|
1345
|
+
"kind": "js",
|
|
1346
|
+
"name": "MainStyles",
|
|
1347
|
+
"declaration": {
|
|
1348
|
+
"name": "MainStyles",
|
|
1349
|
+
"module": "src/main/main.styles.ts"
|
|
1350
|
+
}
|
|
1351
|
+
}
|
|
1352
|
+
]
|
|
1353
|
+
},
|
|
1354
|
+
{
|
|
1355
|
+
"kind": "javascript-module",
|
|
1356
|
+
"path": "src/main/main.template.ts",
|
|
1357
|
+
"declarations": [],
|
|
1358
|
+
"exports": []
|
|
1359
|
+
},
|
|
1360
|
+
{
|
|
1361
|
+
"kind": "javascript-module",
|
|
1362
|
+
"path": "src/main/main.ts",
|
|
1363
|
+
"declarations": [
|
|
1364
|
+
{
|
|
1365
|
+
"kind": "class",
|
|
1366
|
+
"description": "",
|
|
1367
|
+
"name": "MainApplication",
|
|
1368
|
+
"members": [
|
|
1369
|
+
{
|
|
1370
|
+
"kind": "field",
|
|
1371
|
+
"name": "config",
|
|
1372
|
+
"type": {
|
|
1373
|
+
"text": "MainRouterConfig"
|
|
1374
|
+
}
|
|
1375
|
+
},
|
|
1376
|
+
{
|
|
1377
|
+
"kind": "field",
|
|
1378
|
+
"name": "connect",
|
|
1379
|
+
"type": {
|
|
1380
|
+
"text": "Connect"
|
|
1381
|
+
}
|
|
1382
|
+
},
|
|
1383
|
+
{
|
|
1384
|
+
"kind": "field",
|
|
1385
|
+
"name": "session",
|
|
1386
|
+
"type": {
|
|
1387
|
+
"text": "Session"
|
|
1388
|
+
}
|
|
1389
|
+
},
|
|
1390
|
+
{
|
|
1391
|
+
"kind": "field",
|
|
1392
|
+
"name": "container",
|
|
1393
|
+
"type": {
|
|
1394
|
+
"text": "Container"
|
|
1395
|
+
}
|
|
1396
|
+
},
|
|
1397
|
+
{
|
|
1398
|
+
"kind": "field",
|
|
1399
|
+
"name": "provider",
|
|
1400
|
+
"type": {
|
|
1401
|
+
"text": "any"
|
|
1402
|
+
}
|
|
1403
|
+
},
|
|
1404
|
+
{
|
|
1405
|
+
"kind": "field",
|
|
1406
|
+
"name": "ready",
|
|
1407
|
+
"type": {
|
|
1408
|
+
"text": "boolean"
|
|
1409
|
+
},
|
|
1410
|
+
"default": "false"
|
|
1411
|
+
},
|
|
1412
|
+
{
|
|
1413
|
+
"kind": "field",
|
|
1414
|
+
"name": "data",
|
|
1415
|
+
"type": {
|
|
1416
|
+
"text": "any"
|
|
1417
|
+
},
|
|
1418
|
+
"default": "null"
|
|
1419
|
+
},
|
|
1420
|
+
{
|
|
1421
|
+
"kind": "method",
|
|
1422
|
+
"name": "onLuminanceToggle"
|
|
1423
|
+
},
|
|
1424
|
+
{
|
|
1425
|
+
"kind": "method",
|
|
1426
|
+
"name": "loadRemotes"
|
|
1427
|
+
},
|
|
1428
|
+
{
|
|
1429
|
+
"kind": "method",
|
|
1430
|
+
"name": "selectTemplate"
|
|
1431
|
+
},
|
|
1432
|
+
{
|
|
1433
|
+
"kind": "method",
|
|
1434
|
+
"name": "registerDIDependencies",
|
|
1435
|
+
"privacy": "private"
|
|
1436
|
+
}
|
|
1437
|
+
],
|
|
1438
|
+
"superclass": {
|
|
1439
|
+
"name": "FASTElement",
|
|
1440
|
+
"package": "@microsoft/fast-element"
|
|
1441
|
+
},
|
|
1442
|
+
"customElement": true
|
|
1443
|
+
}
|
|
1444
|
+
],
|
|
1445
|
+
"exports": [
|
|
1446
|
+
{
|
|
1447
|
+
"kind": "js",
|
|
1448
|
+
"name": "MainApplication",
|
|
1449
|
+
"declaration": {
|
|
1450
|
+
"name": "MainApplication",
|
|
1451
|
+
"module": "src/main/main.ts"
|
|
1452
|
+
}
|
|
1453
|
+
},
|
|
1454
|
+
{
|
|
1455
|
+
"kind": "custom-element-definition",
|
|
1456
|
+
"declaration": {
|
|
1457
|
+
"name": "MainApplication",
|
|
1458
|
+
"module": "src/main/main.ts"
|
|
1459
|
+
}
|
|
1460
|
+
}
|
|
1461
|
+
]
|
|
1462
|
+
},
|
|
1460
1463
|
{
|
|
1461
1464
|
"kind": "javascript-module",
|
|
1462
1465
|
"path": "src/profiles/editProfileSchema.ts",
|
|
@@ -1952,6 +1955,8 @@
|
|
|
1952
1955
|
"text": "boolean"
|
|
1953
1956
|
},
|
|
1954
1957
|
"default": "false",
|
|
1958
|
+
"description": "This attribute controls whether to enable the search-bar.",
|
|
1959
|
+
"privacy": "public",
|
|
1955
1960
|
"inheritedFrom": {
|
|
1956
1961
|
"name": "EntityManagement",
|
|
1957
1962
|
"module": "src/entities/entities.ts"
|
|
@@ -2355,6 +2360,7 @@
|
|
|
2355
2360
|
"text": "boolean"
|
|
2356
2361
|
},
|
|
2357
2362
|
"default": "false",
|
|
2363
|
+
"description": "This attribute controls whether to enable the search-bar.",
|
|
2358
2364
|
"fieldName": "enableSearchBar",
|
|
2359
2365
|
"inheritedFrom": {
|
|
2360
2366
|
"name": "EntityManagement",
|
|
@@ -2408,27 +2414,6 @@
|
|
|
2408
2414
|
}
|
|
2409
2415
|
]
|
|
2410
2416
|
},
|
|
2411
|
-
{
|
|
2412
|
-
"kind": "javascript-module",
|
|
2413
|
-
"path": "src/routes/config.ts",
|
|
2414
|
-
"declarations": [],
|
|
2415
|
-
"exports": []
|
|
2416
|
-
},
|
|
2417
|
-
{
|
|
2418
|
-
"kind": "javascript-module",
|
|
2419
|
-
"path": "src/routes/index.ts",
|
|
2420
|
-
"declarations": [],
|
|
2421
|
-
"exports": [
|
|
2422
|
-
{
|
|
2423
|
-
"kind": "js",
|
|
2424
|
-
"name": "*",
|
|
2425
|
-
"declaration": {
|
|
2426
|
-
"name": "*",
|
|
2427
|
-
"package": "./config"
|
|
2428
|
-
}
|
|
2429
|
-
}
|
|
2430
|
-
]
|
|
2431
|
-
},
|
|
2432
2417
|
{
|
|
2433
2418
|
"kind": "javascript-module",
|
|
2434
2419
|
"path": "src/users/users.template.ts",
|
|
@@ -2439,7 +2424,7 @@
|
|
|
2439
2424
|
"type": {
|
|
2440
2425
|
"text": "ViewTemplate"
|
|
2441
2426
|
},
|
|
2442
|
-
"default": "html<Users>`\n <entity-management\n resourceName=${(x) => x.resourceName}\n title=\"User Management\"\n :gridOptions=${(x) => x.gridOptions}\n
|
|
2427
|
+
"default": "html<Users>`\n <entity-management\n resourceName=${(x) => x.resourceName}\n title=\"User Management\"\n :gridOptions=${(x) => x.gridOptions}\n createEvent=\"${(x) => x.createEvent}\"\n :readEventFn=${(x) => (user) => x.readUserData(user)}\n updateEvent=\"${(x) => x.updateEvent}\"\n deleteEvent=\"${(x) => x.deleteEvent}\"\n entityLabel=\"User Details\"\n enable-search-bar=\"${(x) => x.enableSearchBar}\"\n :updateFormUiSchema=${(x) =>\n editUserSchema(\n true,\n x.allAccessType,\n x.entityID,\n x.entityLabel,\n x.entityLabelKey,\n x.availableEntitiesEndpoint,\n x.additionalUpdateFields,\n )}\n :createFormUiSchema=${(x) =>\n editUserSchema(\n false,\n x.allAccessType,\n x.entityID,\n x.entityLabel,\n x.entityLabelKey,\n x.availableEntitiesEndpoint,\n x.additionalCreateFields,\n )}\n persist-column-state-key=${(x) => x.persistColumnStateKey}\n size-columns-to-fit\n :columns=${(x) => [...x.columns, ...x.entityColumn(), x.statusColumn()]}\n :datasourceConfig=${(x) => x.datasourceConfig}\n ></entity-management>\n`"
|
|
2443
2428
|
}
|
|
2444
2429
|
],
|
|
2445
2430
|
"exports": [
|
|
@@ -2482,6 +2467,16 @@
|
|
|
2482
2467
|
"description": "This attribute controls whether and how the user manager stores the state of the columns when the user edits them. Defaulted to `entity_users_management`.",
|
|
2483
2468
|
"privacy": "public"
|
|
2484
2469
|
},
|
|
2470
|
+
{
|
|
2471
|
+
"kind": "field",
|
|
2472
|
+
"name": "enableSearchBar",
|
|
2473
|
+
"type": {
|
|
2474
|
+
"text": "boolean"
|
|
2475
|
+
},
|
|
2476
|
+
"default": "false",
|
|
2477
|
+
"description": "This attribute controls whether to enable the search-bar.",
|
|
2478
|
+
"privacy": "public"
|
|
2479
|
+
},
|
|
2485
2480
|
{
|
|
2486
2481
|
"kind": "field",
|
|
2487
2482
|
"name": "gridOptions",
|
|
@@ -2574,6 +2569,15 @@
|
|
|
2574
2569
|
"default": "'entity_users_management'",
|
|
2575
2570
|
"description": "This attribute controls whether and how the user manager stores the state of the columns when the user edits them. Defaulted to `entity_users_management`.",
|
|
2576
2571
|
"fieldName": "persistColumnStateKey"
|
|
2572
|
+
},
|
|
2573
|
+
{
|
|
2574
|
+
"name": "enable-search-bar",
|
|
2575
|
+
"type": {
|
|
2576
|
+
"text": "boolean"
|
|
2577
|
+
},
|
|
2578
|
+
"default": "false",
|
|
2579
|
+
"description": "This attribute controls whether to enable the search-bar.",
|
|
2580
|
+
"fieldName": "enableSearchBar"
|
|
2577
2581
|
}
|
|
2578
2582
|
],
|
|
2579
2583
|
"mixins": [
|
|
@@ -2617,6 +2621,27 @@
|
|
|
2617
2621
|
}
|
|
2618
2622
|
]
|
|
2619
2623
|
},
|
|
2624
|
+
{
|
|
2625
|
+
"kind": "javascript-module",
|
|
2626
|
+
"path": "src/routes/config.ts",
|
|
2627
|
+
"declarations": [],
|
|
2628
|
+
"exports": []
|
|
2629
|
+
},
|
|
2630
|
+
{
|
|
2631
|
+
"kind": "javascript-module",
|
|
2632
|
+
"path": "src/routes/index.ts",
|
|
2633
|
+
"declarations": [],
|
|
2634
|
+
"exports": [
|
|
2635
|
+
{
|
|
2636
|
+
"kind": "js",
|
|
2637
|
+
"name": "*",
|
|
2638
|
+
"declaration": {
|
|
2639
|
+
"name": "*",
|
|
2640
|
+
"package": "./config"
|
|
2641
|
+
}
|
|
2642
|
+
}
|
|
2643
|
+
]
|
|
2644
|
+
},
|
|
2620
2645
|
{
|
|
2621
2646
|
"kind": "javascript-module",
|
|
2622
2647
|
"path": "src/utils/formatting.ts",
|
|
@@ -69,10 +69,6 @@ declare const EntityManagement_base: (new (...args: any[]) => {
|
|
|
69
69
|
readonly attributes: NamedNodeMap;
|
|
70
70
|
readonly classList: DOMTokenList;
|
|
71
71
|
className: string;
|
|
72
|
-
/**
|
|
73
|
-
* The name of the resource in the backend to interact with when dispatching actions from the update/create modal
|
|
74
|
-
* @internal
|
|
75
|
-
*/
|
|
76
72
|
readonly clientHeight: number;
|
|
77
73
|
readonly clientLeft: number;
|
|
78
74
|
readonly clientTop: number;
|
|
@@ -534,6 +530,10 @@ export declare class EntityManagement extends EntityManagement_base {
|
|
|
534
530
|
enableFilterBar: boolean;
|
|
535
531
|
hideEdit: boolean;
|
|
536
532
|
hideDelete: boolean;
|
|
533
|
+
/**
|
|
534
|
+
* This attribute controls whether to enable the search-bar.
|
|
535
|
+
* @public
|
|
536
|
+
*/
|
|
537
537
|
enableSearchBar: boolean;
|
|
538
538
|
/**
|
|
539
539
|
* The case type to use for the header names. If not set, the default CONSTANT_CASE will be used.
|
|
@@ -552,6 +552,11 @@ export declare class EntityManagement extends EntityManagement_base {
|
|
|
552
552
|
* @internal
|
|
553
553
|
*/
|
|
554
554
|
connectedCallback(): Promise<void>;
|
|
555
|
+
/**
|
|
556
|
+
* Gets the default searchBarConfig if the user has not created their own.
|
|
557
|
+
* @internal
|
|
558
|
+
*/
|
|
559
|
+
private getDefaultSearchBarConfig;
|
|
555
560
|
/**
|
|
556
561
|
* Override the deepClone method to ensure that observable attributes are cloned
|
|
557
562
|
* @public
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entities.d.ts","sourceRoot":"","sources":["../../../src/entities/entities.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,EAAE,OAAO,EAAE,iBAAiB,
|
|
1
|
+
{"version":3,"file":"entities.d.ts","sourceRoot":"","sources":["../../../src/entities/entities.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,EAAE,OAAO,EAAE,iBAAiB,EAAkB,MAAM,+BAA+B,CAAC;AAC3F,OAAO,EAAa,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAEzE,OAAO,EACL,eAAe,EAGf,cAAc,EACf,MAAM,4BAA4B,CAAC;AAEpC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAC7D,OAAO,EAAuB,WAAW,EAAwB,MAAM,yBAAyB,CAAC;AAKjG;;;;;;;;;;;;;;;;;;;GAmBG;AACH,MAAM,MAAM,uBAAuB,GAAG,IAAI,CAAC,iBAAiB,EAAE,cAAc,GAAG,SAAS,CAAC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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WAAW;IAK3B,aAAa;IAoBnB,OAAO,CAAC,sBAAsB;IAc9B;;;OAGG;IACI,WAAW,CAAC,OAAO,KAAA;CAkB3B"}
|
|
@@ -84,6 +84,10 @@ declare const Users_base: (new (...args: any[]) => {
|
|
|
84
84
|
outerHTML: string;
|
|
85
85
|
readonly ownerDocument: Document;
|
|
86
86
|
readonly part: DOMTokenList;
|
|
87
|
+
/**
|
|
88
|
+
* entityID used to control the definition of an optional entity column which is created with the {@link Users.entityColumn} function.
|
|
89
|
+
* @internal
|
|
90
|
+
*/
|
|
87
91
|
readonly prefix: string;
|
|
88
92
|
readonly scrollHeight: number;
|
|
89
93
|
scrollLeft: number;
|
|
@@ -123,6 +127,10 @@ declare const Users_base: (new (...args: any[]) => {
|
|
|
123
127
|
removeAttributeNS(namespace: string, localName: string): void;
|
|
124
128
|
removeAttributeNode(attr: Attr): Attr;
|
|
125
129
|
requestFullscreen(options?: FullscreenOptions): Promise<void>;
|
|
130
|
+
/**
|
|
131
|
+
* Used as the callback function in {@link Users.statusColumn}
|
|
132
|
+
* @internal
|
|
133
|
+
*/
|
|
126
134
|
requestPointerLock(): void;
|
|
127
135
|
scroll(options?: ScrollToOptions): void;
|
|
128
136
|
scroll(x: number, y: number): void;
|
|
@@ -442,6 +450,11 @@ export declare class Users extends Users_base {
|
|
|
442
450
|
* @public
|
|
443
451
|
*/
|
|
444
452
|
persistColumnStateKey: string;
|
|
453
|
+
/**
|
|
454
|
+
* This attribute controls whether to enable the search-bar.
|
|
455
|
+
* @public
|
|
456
|
+
*/
|
|
457
|
+
enableSearchBar: boolean;
|
|
445
458
|
/**
|
|
446
459
|
* GridOptions to be passed down from application
|
|
447
460
|
* @public
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"users.d.ts","sourceRoot":"","sources":["../../../src/users/users.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAItD,OAAO,EAAE,oBAAoB,EAAE,MAA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AC;IAEtD;;;OAGG;IACG,YAAY,SAAe;IAEjC;;;;;;;;;OASG;IAC8C,qBAAqB,EAAE,MAAM,CAClD;IAE5B;;;OAGG;IACwD,eAAe,EAAE,OAAO,CAAS;IAE5F;;;OAGG;IACS,WAAW,EAAE,WAAW,CAAC;IAErC;;;;;OAKG;IACI,YAAY;;;;;;;;;;;;IAYnB;;;;;OAKG;IACI,YAAY;;;;;;;;IAYnB;;OAEG;IACS,OAAO,EAAE,GAAG,CAAqB;IAEjC,sBAAsB,EAAE,GAAG,CAAM;IACjC,sBAAsB,EAAE,GAAG,CAAM;IAEjC,aAAa,EAAE,OAAO,CAAC;IACnC,OAAO,CAAC,aAAa,CAAS;IAE9B;;OAEG;IACS,WAAW,EAAE,MAAM,CAAC;IAEhC;;OAEG;IACS,WAAW,EAAE,MAAM,CAAC;IAEhC;;OAEG;IACS,WAAW,EAAE,MAAM,CAAC;IAEhC;;;OAGG;IACG,QAAQ,EAAE,MAAM,CAAqB;IAE3C;;;OAGG;IACG,cAAc,EAAE,MAAM,CAAU;IAEtC;;;OAGG;IACG,WAAW,EAAE,MAAM,CAAkB;IAE3C;;;OAGG;IACG,yBAAyB,EAAE,MAAM,CAAuB;IAE9D;;OAEG;;IAaG,iBAAiB;IAcd,SAAS,IAAI,IAAI;IAe1B;;;OAGG;IACH,sBAAsB,CAAC,MAAM,KAAA;;;;;;;;IAW7B;;;;;;;;OAQG;IACG,YAAY,CAAC,MAAM,KAAA;IAoCzB;;OAEG;IACG,YAAY,CAAC,IAAI,KAAA;;;;;;;;;;;;;;;CAwBxB"}
|
|
@@ -2,6 +2,7 @@ import { __awaiter, __decorate, __rest } from "tslib";
|
|
|
2
2
|
import { Connect } from '@genesislcap/foundation-comms';
|
|
3
3
|
import { renderers } from '@genesislcap/foundation-forms';
|
|
4
4
|
import { showNotification, showNotificationDialog } from '@genesislcap/foundation-notifications';
|
|
5
|
+
import { getCriteriaBuilder, INPUT_MIN_LENGTH, } from '@genesislcap/foundation-ui';
|
|
5
6
|
import { LifecycleMixin } from '@genesislcap/foundation-utils';
|
|
6
7
|
import { attr, customElement, FASTElement, observable, volatile } from '@microsoft/fast-element';
|
|
7
8
|
import { getErrorFormat, logger } from '../utils';
|
|
@@ -83,6 +84,10 @@ let EntityManagement = class EntityManagement extends LifecycleMixin(FASTElement
|
|
|
83
84
|
this.editModalVisible = false;
|
|
84
85
|
this.hideEdit = false;
|
|
85
86
|
this.hideDelete = false;
|
|
87
|
+
/**
|
|
88
|
+
* This attribute controls whether to enable the search-bar.
|
|
89
|
+
* @public
|
|
90
|
+
*/
|
|
86
91
|
this.enableSearchBar = false;
|
|
87
92
|
/**
|
|
88
93
|
* Determines where the modal dialog will appear on screen
|
|
@@ -128,6 +133,33 @@ let EntityManagement = class EntityManagement extends LifecycleMixin(FASTElement
|
|
|
128
133
|
this.addEventListener('read-entity', this.readEntity);
|
|
129
134
|
this.addEventListener('criteria-changed', this.criteriaChanged);
|
|
130
135
|
this.addEventListener('submit-failure', this.submitFailureNotification);
|
|
136
|
+
if (!this.searchBarConfig) {
|
|
137
|
+
this.getDefaultSearchBarConfig();
|
|
138
|
+
}
|
|
139
|
+
});
|
|
140
|
+
}
|
|
141
|
+
/**
|
|
142
|
+
* Gets the default searchBarConfig if the user has not created their own.
|
|
143
|
+
* @internal
|
|
144
|
+
*/
|
|
145
|
+
getDefaultSearchBarConfig() {
|
|
146
|
+
var _a;
|
|
147
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
148
|
+
const meta = yield this.connect
|
|
149
|
+
.getMetadata(this.resourceName)
|
|
150
|
+
.catch((e) => logger.error(`Metadata Fetch failed for ${this.resourceName}:`, e));
|
|
151
|
+
if (!meta) {
|
|
152
|
+
return;
|
|
153
|
+
}
|
|
154
|
+
this.searchBarConfig = (_a = meta.FIELD) === null || _a === void 0 ? void 0 : _a.map((field) => ({
|
|
155
|
+
field: field.NAME,
|
|
156
|
+
label: (searchTerm) => `${searchTerm} as ${field.NAME}`,
|
|
157
|
+
createCriteria: getCriteriaBuilder,
|
|
158
|
+
isEnabled: (searchTerm, selectedOption) => {
|
|
159
|
+
return (searchTerm.length >= INPUT_MIN_LENGTH &&
|
|
160
|
+
!selectedOption.some((e) => e.field === field.NAME));
|
|
161
|
+
},
|
|
162
|
+
}));
|
|
131
163
|
});
|
|
132
164
|
}
|
|
133
165
|
/**
|
package/dist/esm/users/users.js
CHANGED
|
@@ -116,6 +116,11 @@ let Users = class Users extends LifecycleMixin(FASTElement) {
|
|
|
116
116
|
* @public
|
|
117
117
|
*/
|
|
118
118
|
this.persistColumnStateKey = 'entity_users_management';
|
|
119
|
+
/**
|
|
120
|
+
* This attribute controls whether to enable the search-bar.
|
|
121
|
+
* @public
|
|
122
|
+
*/
|
|
123
|
+
this.enableSearchBar = false;
|
|
119
124
|
/**
|
|
120
125
|
* Column definition, default to the UsersColumnConfig
|
|
121
126
|
*/
|
|
@@ -267,6 +272,9 @@ __decorate([
|
|
|
267
272
|
__decorate([
|
|
268
273
|
attr({ attribute: 'persist-column-state-key' })
|
|
269
274
|
], Users.prototype, "persistColumnStateKey", void 0);
|
|
275
|
+
__decorate([
|
|
276
|
+
attr({ mode: 'boolean', attribute: 'enable-search-bar' })
|
|
277
|
+
], Users.prototype, "enableSearchBar", void 0);
|
|
270
278
|
__decorate([
|
|
271
279
|
observable
|
|
272
280
|
], Users.prototype, "gridOptions", void 0);
|
|
@@ -75,12 +75,12 @@ export const UsersTemplate = html `
|
|
|
75
75
|
resourceName=${(x) => x.resourceName}
|
|
76
76
|
title="User Management"
|
|
77
77
|
:gridOptions=${(x) => x.gridOptions}
|
|
78
|
-
entityLabel="User"
|
|
79
78
|
createEvent="${(x) => x.createEvent}"
|
|
80
79
|
:readEventFn=${(x) => (user) => x.readUserData(user)}
|
|
81
80
|
updateEvent="${(x) => x.updateEvent}"
|
|
82
81
|
deleteEvent="${(x) => x.deleteEvent}"
|
|
83
82
|
entityLabel="User Details"
|
|
83
|
+
enable-search-bar="${(x) => x.enableSearchBar}"
|
|
84
84
|
:updateFormUiSchema=${(x) => editUserSchema(true, x.allAccessType, x.entityID, x.entityLabel, x.entityLabelKey, x.availableEntitiesEndpoint, x.additionalUpdateFields)}
|
|
85
85
|
:createFormUiSchema=${(x) => editUserSchema(false, x.allAccessType, x.entityID, x.entityLabel, x.entityLabelKey, x.availableEntitiesEndpoint, x.additionalCreateFields)}
|
|
86
86
|
persist-column-state-key=${(x) => x.persistColumnStateKey}
|
|
@@ -968,7 +968,7 @@
|
|
|
968
968
|
{
|
|
969
969
|
"kind": "Property",
|
|
970
970
|
"canonicalReference": "@genesislcap/foundation-entity-management!EntityManagement#enableSearchBar:member",
|
|
971
|
-
"docComment": "",
|
|
971
|
+
"docComment": "/**\n * This attribute controls whether to enable the search-bar.\n *\n * @public\n */\n",
|
|
972
972
|
"excerptTokens": [
|
|
973
973
|
{
|
|
974
974
|
"kind": "Content",
|
|
@@ -2704,6 +2704,36 @@
|
|
|
2704
2704
|
"isProtected": false,
|
|
2705
2705
|
"isAbstract": false
|
|
2706
2706
|
},
|
|
2707
|
+
{
|
|
2708
|
+
"kind": "Property",
|
|
2709
|
+
"canonicalReference": "@genesislcap/foundation-entity-management!Users#enableSearchBar:member",
|
|
2710
|
+
"docComment": "/**\n * This attribute controls whether to enable the search-bar.\n *\n * @public\n */\n",
|
|
2711
|
+
"excerptTokens": [
|
|
2712
|
+
{
|
|
2713
|
+
"kind": "Content",
|
|
2714
|
+
"text": "enableSearchBar: "
|
|
2715
|
+
},
|
|
2716
|
+
{
|
|
2717
|
+
"kind": "Content",
|
|
2718
|
+
"text": "boolean"
|
|
2719
|
+
},
|
|
2720
|
+
{
|
|
2721
|
+
"kind": "Content",
|
|
2722
|
+
"text": ";"
|
|
2723
|
+
}
|
|
2724
|
+
],
|
|
2725
|
+
"isReadonly": false,
|
|
2726
|
+
"isOptional": false,
|
|
2727
|
+
"releaseTag": "Public",
|
|
2728
|
+
"name": "enableSearchBar",
|
|
2729
|
+
"propertyTypeTokenRange": {
|
|
2730
|
+
"startIndex": 1,
|
|
2731
|
+
"endIndex": 2
|
|
2732
|
+
},
|
|
2733
|
+
"isStatic": false,
|
|
2734
|
+
"isProtected": false,
|
|
2735
|
+
"isAbstract": false
|
|
2736
|
+
},
|
|
2707
2737
|
{
|
|
2708
2738
|
"kind": "Property",
|
|
2709
2739
|
"canonicalReference": "@genesislcap/foundation-entity-management!Users#gridOptions:member",
|
|
@@ -228,6 +228,10 @@ export declare class EntityManagement extends EntityManagement_base {
|
|
|
228
228
|
enableFilterBar: boolean;
|
|
229
229
|
hideEdit: boolean;
|
|
230
230
|
hideDelete: boolean;
|
|
231
|
+
/**
|
|
232
|
+
* This attribute controls whether to enable the search-bar.
|
|
233
|
+
* @public
|
|
234
|
+
*/
|
|
231
235
|
enableSearchBar: boolean;
|
|
232
236
|
/**
|
|
233
237
|
* The case type to use for the header names. If not set, the default CONSTANT_CASE will be used.
|
|
@@ -246,6 +250,11 @@ export declare class EntityManagement extends EntityManagement_base {
|
|
|
246
250
|
* @internal
|
|
247
251
|
*/
|
|
248
252
|
connectedCallback(): Promise<void>;
|
|
253
|
+
/**
|
|
254
|
+
* Gets the default searchBarConfig if the user has not created their own.
|
|
255
|
+
* @internal
|
|
256
|
+
*/
|
|
257
|
+
private getDefaultSearchBarConfig;
|
|
249
258
|
/**
|
|
250
259
|
* Override the deepClone method to ensure that observable attributes are cloned
|
|
251
260
|
* @public
|
|
@@ -346,10 +355,6 @@ declare const EntityManagement_base: (new (...args: any[]) => {
|
|
|
346
355
|
readonly attributes: NamedNodeMap;
|
|
347
356
|
readonly classList: DOMTokenList;
|
|
348
357
|
className: string;
|
|
349
|
-
/**
|
|
350
|
-
* The name of the resource in the backend to interact with when dispatching actions from the update/create modal
|
|
351
|
-
* @internal
|
|
352
|
-
*/
|
|
353
358
|
readonly clientHeight: number;
|
|
354
359
|
readonly clientLeft: number;
|
|
355
360
|
readonly clientTop: number;
|
|
@@ -828,6 +833,11 @@ export declare class Users extends Users_base {
|
|
|
828
833
|
* @public
|
|
829
834
|
*/
|
|
830
835
|
persistColumnStateKey: string;
|
|
836
|
+
/**
|
|
837
|
+
* This attribute controls whether to enable the search-bar.
|
|
838
|
+
* @public
|
|
839
|
+
*/
|
|
840
|
+
enableSearchBar: boolean;
|
|
831
841
|
/**
|
|
832
842
|
* GridOptions to be passed down from application
|
|
833
843
|
* @public
|
|
@@ -1009,6 +1019,10 @@ declare const Users_base: (new (...args: any[]) => {
|
|
|
1009
1019
|
outerHTML: string;
|
|
1010
1020
|
readonly ownerDocument: Document;
|
|
1011
1021
|
readonly part: DOMTokenList;
|
|
1022
|
+
/**
|
|
1023
|
+
* entityID used to control the definition of an optional entity column which is created with the {@link Users.entityColumn} function.
|
|
1024
|
+
* @internal
|
|
1025
|
+
*/
|
|
1012
1026
|
readonly prefix: string;
|
|
1013
1027
|
readonly scrollHeight: number;
|
|
1014
1028
|
scrollLeft: number;
|
|
@@ -1048,6 +1062,10 @@ declare const Users_base: (new (...args: any[]) => {
|
|
|
1048
1062
|
removeAttributeNS(namespace: string, localName: string): void;
|
|
1049
1063
|
removeAttributeNode(attr: Attr): Attr;
|
|
1050
1064
|
requestFullscreen(options?: FullscreenOptions): Promise<void>;
|
|
1065
|
+
/**
|
|
1066
|
+
* Used as the callback function in {@link Users.statusColumn}
|
|
1067
|
+
* @internal
|
|
1068
|
+
*/
|
|
1051
1069
|
requestPointerLock(): void;
|
|
1052
1070
|
scroll(options?: ScrollToOptions): void;
|
|
1053
1071
|
scroll(x: number, y: number): void;
|
|
@@ -53,7 +53,7 @@ Where:<br /> - the title of the grid is `Counterparty Management`<br /> - the na
|
|
|
53
53
|
| [enableCellFlashing](./foundation-entity-management.entitymanagement.enablecellflashing.md) | | boolean | If false, will disable cell flashing for all cells by default, unless otherwise defined in custom colDef |
|
|
54
54
|
| [enableFilterBar](./foundation-entity-management.entitymanagement.enablefilterbar.md) | | boolean | |
|
|
55
55
|
| [enableRowFlashing](./foundation-entity-management.entitymanagement.enablerowflashing.md) | | boolean | If true, will enable row flashing for all rows for <code>add</code> transactions |
|
|
56
|
-
| [enableSearchBar](./foundation-entity-management.entitymanagement.enablesearchbar.md) | | boolean |
|
|
56
|
+
| [enableSearchBar](./foundation-entity-management.entitymanagement.enablesearchbar.md) | | boolean | This attribute controls whether to enable the search-bar. |
|
|
57
57
|
| [entityLabel](./foundation-entity-management.entitymanagement.entitylabel.md) | | string | Label for the entity which has usages such as being shown in the title of the modal wen editing the entity |
|
|
58
58
|
| [formRenderers](./foundation-entity-management.entitymanagement.formrenderers.md) | | RendererEntry\[\] | Array with renderers used by foundation-forms |
|
|
59
59
|
| [formUiSchema](./foundation-entity-management.entitymanagement.formuischema.md) | | any | |
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@genesislcap/foundation-entity-management](./foundation-entity-management.md) > [Users](./foundation-entity-management.users.md) > [enableSearchBar](./foundation-entity-management.users.enablesearchbar.md)
|
|
4
|
+
|
|
5
|
+
## Users.enableSearchBar property
|
|
6
|
+
|
|
7
|
+
This attribute controls whether to enable the search-bar.
|
|
8
|
+
|
|
9
|
+
**Signature:**
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
enableSearchBar: boolean;
|
|
13
|
+
```
|
|
@@ -58,6 +58,7 @@ const userColumns = [
|
|
|
58
58
|
| [columns](./foundation-entity-management.users.columns.md) | | any | Column definition, default to the UsersColumnConfig |
|
|
59
59
|
| [createEvent](./foundation-entity-management.users.createevent.md) | | string | String which contains event if we have permission to insert user of empty string if not |
|
|
60
60
|
| [deleteEvent](./foundation-entity-management.users.deleteevent.md) | | string | String which contains event if we have permission to delete user of empty string if not |
|
|
61
|
+
| [enableSearchBar](./foundation-entity-management.users.enablesearchbar.md) | | boolean | This attribute controls whether to enable the search-bar. |
|
|
61
62
|
| [gridOptions](./foundation-entity-management.users.gridoptions.md) | | GridOptions | GridOptions to be passed down from application |
|
|
62
63
|
| [persistColumnStateKey](./foundation-entity-management.users.persistcolumnstatekey.md) | | string | This attribute controls whether and how the user manager stores the state of the columns when the user edits them. Defaulted to <code>entity_users_management</code>. |
|
|
63
64
|
| [updateEvent](./foundation-entity-management.users.updateevent.md) | | string | String which contains event if we have permission to update user of empty string if not |
|
package/docs/api-report.md
CHANGED
|
@@ -80,7 +80,6 @@ export class EntityManagement extends EntityManagement_base {
|
|
|
80
80
|
// (undocumented)
|
|
81
81
|
enableFilterBar: boolean;
|
|
82
82
|
enableRowFlashing: boolean;
|
|
83
|
-
// (undocumented)
|
|
84
83
|
enableSearchBar: boolean;
|
|
85
84
|
entityLabel: string;
|
|
86
85
|
// @internal
|
|
@@ -206,6 +205,7 @@ export class Users extends Users_base {
|
|
|
206
205
|
// (undocumented)
|
|
207
206
|
deepClone(): Node;
|
|
208
207
|
deleteEvent: string;
|
|
208
|
+
enableSearchBar: boolean;
|
|
209
209
|
// @internal
|
|
210
210
|
entityColumn(): {
|
|
211
211
|
headerName: string;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@genesislcap/foundation-entity-management",
|
|
3
3
|
"description": "Genesis Foundation Entity Management",
|
|
4
|
-
"version": "14.
|
|
4
|
+
"version": "14.151.1",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"license": "SEE LICENSE IN license.txt",
|
|
7
7
|
"main": "dist/esm/index.js",
|
|
@@ -43,29 +43,29 @@
|
|
|
43
43
|
"test:debug": "genx test --debug"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@genesislcap/foundation-testing": "14.
|
|
47
|
-
"@genesislcap/genx": "14.
|
|
48
|
-
"@genesislcap/rollup-builder": "14.
|
|
49
|
-
"@genesislcap/ts-builder": "14.
|
|
50
|
-
"@genesislcap/uvu-playwright-builder": "14.
|
|
51
|
-
"@genesislcap/vite-builder": "14.
|
|
52
|
-
"@genesislcap/webpack-builder": "14.
|
|
46
|
+
"@genesislcap/foundation-testing": "14.151.1",
|
|
47
|
+
"@genesislcap/genx": "14.151.1",
|
|
48
|
+
"@genesislcap/rollup-builder": "14.151.1",
|
|
49
|
+
"@genesislcap/ts-builder": "14.151.1",
|
|
50
|
+
"@genesislcap/uvu-playwright-builder": "14.151.1",
|
|
51
|
+
"@genesislcap/vite-builder": "14.151.1",
|
|
52
|
+
"@genesislcap/webpack-builder": "14.151.1",
|
|
53
53
|
"rimraf": "^3.0.2"
|
|
54
54
|
},
|
|
55
55
|
"dependencies": {
|
|
56
56
|
"@ag-grid-community/core": "29.2.0",
|
|
57
|
-
"@genesislcap/foundation-comms": "14.
|
|
58
|
-
"@genesislcap/foundation-errors": "14.
|
|
59
|
-
"@genesislcap/foundation-events": "14.
|
|
60
|
-
"@genesislcap/foundation-forms": "14.
|
|
61
|
-
"@genesislcap/foundation-logger": "14.
|
|
62
|
-
"@genesislcap/foundation-login": "14.
|
|
63
|
-
"@genesislcap/foundation-notifications": "14.
|
|
64
|
-
"@genesislcap/foundation-ui": "14.
|
|
65
|
-
"@genesislcap/foundation-utils": "14.
|
|
66
|
-
"@genesislcap/foundation-zero": "14.
|
|
67
|
-
"@genesislcap/foundation-zero-grid-pro": "14.
|
|
68
|
-
"@genesislcap/grid-pro": "14.
|
|
57
|
+
"@genesislcap/foundation-comms": "14.151.1",
|
|
58
|
+
"@genesislcap/foundation-errors": "14.151.1",
|
|
59
|
+
"@genesislcap/foundation-events": "14.151.1",
|
|
60
|
+
"@genesislcap/foundation-forms": "14.151.1",
|
|
61
|
+
"@genesislcap/foundation-logger": "14.151.1",
|
|
62
|
+
"@genesislcap/foundation-login": "14.151.1",
|
|
63
|
+
"@genesislcap/foundation-notifications": "14.151.1",
|
|
64
|
+
"@genesislcap/foundation-ui": "14.151.1",
|
|
65
|
+
"@genesislcap/foundation-utils": "14.151.1",
|
|
66
|
+
"@genesislcap/foundation-zero": "14.151.1",
|
|
67
|
+
"@genesislcap/foundation-zero-grid-pro": "14.151.1",
|
|
68
|
+
"@genesislcap/grid-pro": "14.151.1",
|
|
69
69
|
"@microsoft/fast-components": "^2.30.6",
|
|
70
70
|
"@microsoft/fast-element": "^1.12.0",
|
|
71
71
|
"@microsoft/fast-foundation": "^2.49.4",
|
|
@@ -81,5 +81,5 @@
|
|
|
81
81
|
"access": "public"
|
|
82
82
|
},
|
|
83
83
|
"customElements": "dist/custom-elements.json",
|
|
84
|
-
"gitHead": "
|
|
84
|
+
"gitHead": "b56ae0d22c24098e5fd2e771a9ec1749de9cabbf"
|
|
85
85
|
}
|