@genesislcap/foundation-entity-management 14.26.2 → 14.26.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/custom-elements.json +394 -394
  2. package/package.json +14 -14
@@ -593,6 +593,208 @@
593
593
  }
594
594
  ]
595
595
  },
596
+ {
597
+ "kind": "javascript-module",
598
+ "path": "src/layouts/default.ts",
599
+ "declarations": [
600
+ {
601
+ "kind": "variable",
602
+ "name": "loginLayout",
603
+ "default": "new FASTElementLayout(\n html`\n <div class=\"container\">\n <div class=\"content\">\n <slot></slot>\n </div>\n </div>\n `,\n baseLayoutCss\n)"
604
+ },
605
+ {
606
+ "kind": "variable",
607
+ "name": "defaultLayout",
608
+ "default": "new FASTElementLayout(\n html`\n <div class=\"container\">\n <div class=\"content\">\n <slot></slot>\n </div>\n </div>\n `,\n css`\n ${baseLayoutCss}\n `\n)"
609
+ }
610
+ ],
611
+ "exports": [
612
+ {
613
+ "kind": "js",
614
+ "name": "loginLayout",
615
+ "declaration": {
616
+ "name": "loginLayout",
617
+ "module": "src/layouts/default.ts"
618
+ }
619
+ },
620
+ {
621
+ "kind": "js",
622
+ "name": "defaultLayout",
623
+ "declaration": {
624
+ "name": "defaultLayout",
625
+ "module": "src/layouts/default.ts"
626
+ }
627
+ }
628
+ ]
629
+ },
630
+ {
631
+ "kind": "javascript-module",
632
+ "path": "src/layouts/index.ts",
633
+ "declarations": [],
634
+ "exports": [
635
+ {
636
+ "kind": "js",
637
+ "name": "*",
638
+ "declaration": {
639
+ "name": "*",
640
+ "package": "./default"
641
+ }
642
+ }
643
+ ]
644
+ },
645
+ {
646
+ "kind": "javascript-module",
647
+ "path": "src/main/index.ts",
648
+ "declarations": [],
649
+ "exports": [
650
+ {
651
+ "kind": "js",
652
+ "name": "*",
653
+ "declaration": {
654
+ "name": "*",
655
+ "package": "./main.template"
656
+ }
657
+ },
658
+ {
659
+ "kind": "js",
660
+ "name": "*",
661
+ "declaration": {
662
+ "name": "*",
663
+ "package": "./main"
664
+ }
665
+ }
666
+ ]
667
+ },
668
+ {
669
+ "kind": "javascript-module",
670
+ "path": "src/main/main.styles.ts",
671
+ "declarations": [
672
+ {
673
+ "kind": "variable",
674
+ "name": "MainStyles",
675
+ "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`"
676
+ }
677
+ ],
678
+ "exports": [
679
+ {
680
+ "kind": "js",
681
+ "name": "MainStyles",
682
+ "declaration": {
683
+ "name": "MainStyles",
684
+ "module": "src/main/main.styles.ts"
685
+ }
686
+ }
687
+ ]
688
+ },
689
+ {
690
+ "kind": "javascript-module",
691
+ "path": "src/main/main.template.ts",
692
+ "declarations": [],
693
+ "exports": []
694
+ },
695
+ {
696
+ "kind": "javascript-module",
697
+ "path": "src/main/main.ts",
698
+ "declarations": [
699
+ {
700
+ "kind": "class",
701
+ "description": "",
702
+ "name": "MainApplication",
703
+ "members": [
704
+ {
705
+ "kind": "field",
706
+ "name": "config",
707
+ "type": {
708
+ "text": "MainRouterConfig"
709
+ }
710
+ },
711
+ {
712
+ "kind": "field",
713
+ "name": "connect",
714
+ "type": {
715
+ "text": "Connect"
716
+ }
717
+ },
718
+ {
719
+ "kind": "field",
720
+ "name": "session",
721
+ "type": {
722
+ "text": "Session"
723
+ }
724
+ },
725
+ {
726
+ "kind": "field",
727
+ "name": "container",
728
+ "type": {
729
+ "text": "Container"
730
+ }
731
+ },
732
+ {
733
+ "kind": "field",
734
+ "name": "provider",
735
+ "type": {
736
+ "text": "any"
737
+ }
738
+ },
739
+ {
740
+ "kind": "field",
741
+ "name": "ready",
742
+ "type": {
743
+ "text": "boolean"
744
+ },
745
+ "default": "false"
746
+ },
747
+ {
748
+ "kind": "field",
749
+ "name": "data",
750
+ "type": {
751
+ "text": "any"
752
+ },
753
+ "default": "null"
754
+ },
755
+ {
756
+ "kind": "method",
757
+ "name": "onLuminanceToggle"
758
+ },
759
+ {
760
+ "kind": "method",
761
+ "name": "loadRemotes"
762
+ },
763
+ {
764
+ "kind": "method",
765
+ "name": "selectTemplate"
766
+ },
767
+ {
768
+ "kind": "method",
769
+ "name": "registerDIDependencies",
770
+ "privacy": "private"
771
+ }
772
+ ],
773
+ "superclass": {
774
+ "name": "FASTElement",
775
+ "package": "@microsoft/fast-element"
776
+ },
777
+ "customElement": true
778
+ }
779
+ ],
780
+ "exports": [
781
+ {
782
+ "kind": "js",
783
+ "name": "MainApplication",
784
+ "declaration": {
785
+ "name": "MainApplication",
786
+ "module": "src/main/main.ts"
787
+ }
788
+ },
789
+ {
790
+ "kind": "custom-element-definition",
791
+ "declaration": {
792
+ "name": "MainApplication",
793
+ "module": "src/main/main.ts"
794
+ }
795
+ }
796
+ ]
797
+ },
596
798
  {
597
799
  "kind": "javascript-module",
598
800
  "path": "src/list/index.ts",
@@ -870,369 +1072,37 @@
870
1072
  },
871
1073
  "fieldName": "enableFilterBar"
872
1074
  },
873
- {
874
- "name": "enable-cell-flashing",
875
- "type": {
876
- "text": "boolean"
877
- },
878
- "fieldName": "enableCellFlashing"
879
- }
880
- ],
881
- "superclass": {
882
- "name": "FASTElement",
883
- "package": "@microsoft/fast-element"
884
- },
885
- "tagName": "entity-list",
886
- "customElement": true
887
- }
888
- ],
889
- "exports": [
890
- {
891
- "kind": "js",
892
- "name": "List",
893
- "declaration": {
894
- "name": "List",
895
- "module": "src/list/list.ts"
896
- }
897
- },
898
- {
899
- "kind": "custom-element-definition",
900
- "name": "entity-list",
901
- "declaration": {
902
- "name": "List",
903
- "module": "src/list/list.ts"
904
- }
905
- }
906
- ]
907
- },
908
- {
909
- "kind": "javascript-module",
910
- "path": "src/main/index.ts",
911
- "declarations": [],
912
- "exports": [
913
- {
914
- "kind": "js",
915
- "name": "*",
916
- "declaration": {
917
- "name": "*",
918
- "package": "./main.template"
919
- }
920
- },
921
- {
922
- "kind": "js",
923
- "name": "*",
924
- "declaration": {
925
- "name": "*",
926
- "package": "./main"
927
- }
928
- }
929
- ]
930
- },
931
- {
932
- "kind": "javascript-module",
933
- "path": "src/main/main.styles.ts",
934
- "declarations": [
935
- {
936
- "kind": "variable",
937
- "name": "MainStyles",
938
- "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`"
939
- }
940
- ],
941
- "exports": [
942
- {
943
- "kind": "js",
944
- "name": "MainStyles",
945
- "declaration": {
946
- "name": "MainStyles",
947
- "module": "src/main/main.styles.ts"
948
- }
949
- }
950
- ]
951
- },
952
- {
953
- "kind": "javascript-module",
954
- "path": "src/main/main.template.ts",
955
- "declarations": [],
956
- "exports": []
957
- },
958
- {
959
- "kind": "javascript-module",
960
- "path": "src/main/main.ts",
961
- "declarations": [
962
- {
963
- "kind": "class",
964
- "description": "",
965
- "name": "MainApplication",
966
- "members": [
967
- {
968
- "kind": "field",
969
- "name": "config",
970
- "type": {
971
- "text": "MainRouterConfig"
972
- }
973
- },
974
- {
975
- "kind": "field",
976
- "name": "connect",
977
- "type": {
978
- "text": "Connect"
979
- }
980
- },
981
- {
982
- "kind": "field",
983
- "name": "session",
984
- "type": {
985
- "text": "Session"
986
- }
987
- },
988
- {
989
- "kind": "field",
990
- "name": "container",
991
- "type": {
992
- "text": "Container"
993
- }
994
- },
995
- {
996
- "kind": "field",
997
- "name": "provider",
998
- "type": {
999
- "text": "any"
1000
- }
1001
- },
1002
- {
1003
- "kind": "field",
1004
- "name": "ready",
1005
- "type": {
1006
- "text": "boolean"
1007
- },
1008
- "default": "false"
1009
- },
1010
- {
1011
- "kind": "field",
1012
- "name": "data",
1013
- "type": {
1014
- "text": "any"
1015
- },
1016
- "default": "null"
1017
- },
1018
- {
1019
- "kind": "method",
1020
- "name": "onLuminanceToggle"
1021
- },
1022
- {
1023
- "kind": "method",
1024
- "name": "loadRemotes"
1025
- },
1026
- {
1027
- "kind": "method",
1028
- "name": "selectTemplate"
1029
- },
1030
- {
1031
- "kind": "method",
1032
- "name": "registerDIDependencies",
1033
- "privacy": "private"
1034
- }
1035
- ],
1036
- "superclass": {
1037
- "name": "FASTElement",
1038
- "package": "@microsoft/fast-element"
1039
- },
1040
- "customElement": true
1041
- }
1042
- ],
1043
- "exports": [
1044
- {
1045
- "kind": "js",
1046
- "name": "MainApplication",
1047
- "declaration": {
1048
- "name": "MainApplication",
1049
- "module": "src/main/main.ts"
1050
- }
1051
- },
1052
- {
1053
- "kind": "custom-element-definition",
1054
- "declaration": {
1055
- "name": "MainApplication",
1056
- "module": "src/main/main.ts"
1057
- }
1058
- }
1059
- ]
1060
- },
1061
- {
1062
- "kind": "javascript-module",
1063
- "path": "src/routes/config.ts",
1064
- "declarations": [],
1065
- "exports": []
1066
- },
1067
- {
1068
- "kind": "javascript-module",
1069
- "path": "src/routes/index.ts",
1070
- "declarations": [],
1071
- "exports": [
1072
- {
1073
- "kind": "js",
1074
- "name": "*",
1075
- "declaration": {
1076
- "name": "*",
1077
- "package": "./config"
1078
- }
1079
- }
1080
- ]
1081
- },
1082
- {
1083
- "kind": "javascript-module",
1084
- "path": "src/users/users.template.ts",
1085
- "declarations": [
1086
- {
1087
- "kind": "variable",
1088
- "name": "UsersTemplate",
1089
- "type": {
1090
- "text": "ViewTemplate"
1091
- },
1092
- "default": "html<Users>`\n <entity-management\n resourceName=${(x) => x.resourceName}\n title=\"User Management\"\n entityLabel=\"User\"\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 :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=\"entity_users_management\"\n size-columns-to-fit\n :columns=${(x) => [...x.columns, ...x.entityColumn(), x.statusColumn()]}\n :datasourceConfig=${(x) => x.datasourceConfig}\n ></entity-management>\n`"
1093
- }
1094
- ],
1095
- "exports": [
1096
- {
1097
- "kind": "js",
1098
- "name": "UsersTemplate",
1099
- "declaration": {
1100
- "name": "UsersTemplate",
1101
- "module": "src/users/users.template.ts"
1102
- }
1103
- }
1104
- ]
1105
- },
1106
- {
1107
- "kind": "javascript-module",
1108
- "path": "src/users/users.ts",
1109
- "declarations": [
1110
- {
1111
- "kind": "variable",
1112
- "name": "UsersColumnConfig",
1113
- "type": {
1114
- "text": "array"
1115
- },
1116
- "default": "[\n {\n ...defaultColumnConfig,\n field: 'USER_NAME',\n headerName: 'Username',\n },\n {\n ...defaultColumnConfig,\n field: 'FIRST_NAME',\n headerName: 'First Name',\n },\n {\n ...defaultColumnConfig,\n field: 'LAST_NAME',\n headerName: 'Last Name',\n },\n {\n ...defaultColumnConfig,\n field: 'EMAIL_ADDRESS',\n headerName: 'Email',\n },\n {\n ...defaultColumnConfig,\n field: 'LAST_LOGIN',\n headerName: 'Last Login',\n valueFormatter: ({ value }) =>\n value\n ? new Intl.DateTimeFormat('default', {\n year: 'numeric',\n month: 'numeric',\n day: 'numeric',\n hour: 'numeric',\n minute: 'numeric',\n }).format(value)\n : '',\n },\n]",
1117
- "description": "Defines the default columns which are present on the user management component",
1118
- "privacy": "public"
1119
- },
1120
- {
1121
- "kind": "class",
1122
- "description": "Main class which defines the user management functionality",
1123
- "name": "Users",
1124
- "members": [
1125
- {
1126
- "kind": "field",
1127
- "name": "columns",
1128
- "type": {
1129
- "text": "any"
1130
- },
1131
- "default": "[\n {\n ...defaultColumnConfig,\n field: 'USER_NAME',\n headerName: 'Username',\n },\n {\n ...defaultColumnConfig,\n field: 'FIRST_NAME',\n headerName: 'First Name',\n },\n {\n ...defaultColumnConfig,\n field: 'LAST_NAME',\n headerName: 'Last Name',\n },\n {\n ...defaultColumnConfig,\n field: 'EMAIL_ADDRESS',\n headerName: 'Email',\n },\n {\n ...defaultColumnConfig,\n field: 'LAST_LOGIN',\n headerName: 'Last Login',\n valueFormatter: ({ value }) =>\n value\n ? new Intl.DateTimeFormat('default', {\n year: 'numeric',\n month: 'numeric',\n day: 'numeric',\n hour: 'numeric',\n minute: 'numeric',\n }).format(value)\n : '',\n },\n]",
1132
- "description": "Column definition, default to the UsersColumnConfig"
1133
- },
1134
- {
1135
- "kind": "field",
1136
- "name": "additionalCreateFields",
1137
- "type": {
1138
- "text": "any"
1139
- },
1140
- "default": "[]"
1141
- },
1142
- {
1143
- "kind": "field",
1144
- "name": "additionalUpdateFields",
1145
- "type": {
1146
- "text": "any"
1147
- },
1148
- "default": "[]"
1149
- },
1150
- {
1151
- "kind": "field",
1152
- "name": "allAccessType",
1153
- "type": {
1154
- "text": "boolean"
1155
- }
1156
- },
1157
- {
1158
- "kind": "field",
1159
- "name": "entityIdValue",
1160
- "type": {
1161
- "text": "string"
1162
- },
1163
- "privacy": "private"
1164
- },
1165
- {
1166
- "kind": "field",
1167
- "name": "createEvent",
1168
- "type": {
1169
- "text": "string"
1170
- },
1171
- "description": "String which contains event if we have permission to insert user of empty string if not"
1172
- },
1173
- {
1174
- "kind": "field",
1175
- "name": "deleteEvent",
1176
- "type": {
1177
- "text": "string"
1178
- },
1179
- "description": "String which contains event if we have permission to delete user of empty string if not"
1180
- },
1181
- {
1182
- "kind": "field",
1183
- "name": "updateEvent",
1184
- "type": {
1185
- "text": "string"
1186
- },
1187
- "description": "String which contains event if we have permission to update user of empty string if not"
1188
- },
1189
- {
1190
- "kind": "method",
1191
- "name": "deepClone",
1192
- "return": {
1193
- "type": {
1194
- "text": "Node"
1195
- }
1196
- }
1197
- }
1198
- ],
1199
- "mixins": [
1200
- {
1201
- "name": "LifecycleMixin",
1202
- "package": "@genesislcap/foundation-utils"
1075
+ {
1076
+ "name": "enable-cell-flashing",
1077
+ "type": {
1078
+ "text": "boolean"
1079
+ },
1080
+ "fieldName": "enableCellFlashing"
1203
1081
  }
1204
1082
  ],
1205
1083
  "superclass": {
1206
1084
  "name": "FASTElement",
1207
1085
  "package": "@microsoft/fast-element"
1208
1086
  },
1209
- "tagName": "user-management",
1087
+ "tagName": "entity-list",
1210
1088
  "customElement": true
1211
1089
  }
1212
1090
  ],
1213
1091
  "exports": [
1214
1092
  {
1215
1093
  "kind": "js",
1216
- "name": "UsersColumnConfig",
1217
- "declaration": {
1218
- "name": "UsersColumnConfig",
1219
- "module": "src/users/users.ts"
1220
- }
1221
- },
1222
- {
1223
- "kind": "js",
1224
- "name": "Users",
1094
+ "name": "List",
1225
1095
  "declaration": {
1226
- "name": "Users",
1227
- "module": "src/users/users.ts"
1096
+ "name": "List",
1097
+ "module": "src/list/list.ts"
1228
1098
  }
1229
1099
  },
1230
1100
  {
1231
1101
  "kind": "custom-element-definition",
1232
- "name": "user-management",
1102
+ "name": "entity-list",
1233
1103
  "declaration": {
1234
- "name": "Users",
1235
- "module": "src/users/users.ts"
1104
+ "name": "List",
1105
+ "module": "src/list/list.ts"
1236
1106
  }
1237
1107
  }
1238
1108
  ]
@@ -1844,41 +1714,13 @@
1844
1714
  },
1845
1715
  {
1846
1716
  "kind": "javascript-module",
1847
- "path": "src/layouts/default.ts",
1848
- "declarations": [
1849
- {
1850
- "kind": "variable",
1851
- "name": "loginLayout",
1852
- "default": "new FASTElementLayout(\n html`\n <div class=\"container\">\n <div class=\"content\">\n <slot></slot>\n </div>\n </div>\n `,\n baseLayoutCss\n)"
1853
- },
1854
- {
1855
- "kind": "variable",
1856
- "name": "defaultLayout",
1857
- "default": "new FASTElementLayout(\n html`\n <div class=\"container\">\n <div class=\"content\">\n <slot></slot>\n </div>\n </div>\n `,\n css`\n ${baseLayoutCss}\n `\n)"
1858
- }
1859
- ],
1860
- "exports": [
1861
- {
1862
- "kind": "js",
1863
- "name": "loginLayout",
1864
- "declaration": {
1865
- "name": "loginLayout",
1866
- "module": "src/layouts/default.ts"
1867
- }
1868
- },
1869
- {
1870
- "kind": "js",
1871
- "name": "defaultLayout",
1872
- "declaration": {
1873
- "name": "defaultLayout",
1874
- "module": "src/layouts/default.ts"
1875
- }
1876
- }
1877
- ]
1717
+ "path": "src/routes/config.ts",
1718
+ "declarations": [],
1719
+ "exports": []
1878
1720
  },
1879
1721
  {
1880
1722
  "kind": "javascript-module",
1881
- "path": "src/layouts/index.ts",
1723
+ "path": "src/routes/index.ts",
1882
1724
  "declarations": [],
1883
1725
  "exports": [
1884
1726
  {
@@ -1886,66 +1728,165 @@
1886
1728
  "name": "*",
1887
1729
  "declaration": {
1888
1730
  "name": "*",
1889
- "package": "./default"
1731
+ "package": "./config"
1890
1732
  }
1891
1733
  }
1892
1734
  ]
1893
1735
  },
1894
1736
  {
1895
1737
  "kind": "javascript-module",
1896
- "path": "src/routes/admin/admin.template.ts",
1738
+ "path": "src/users/users.template.ts",
1897
1739
  "declarations": [
1898
1740
  {
1899
1741
  "kind": "variable",
1900
- "name": "AdminTemplate",
1742
+ "name": "UsersTemplate",
1901
1743
  "type": {
1902
1744
  "text": "ViewTemplate"
1903
1745
  },
1904
- "default": "html<Admin>`\n <zero-tabs>\n <span slot=\"start\">Admin Entity Management</span>\n <zero-tab slot=\"tab\">Split</zero-tab>\n <zero-tab slot=\"tab\">Users</zero-tab>\n <zero-tab slot=\"tab\">Profiles</zero-tab>\n <zero-tab-panel slot=\"tabpanel\">\n <zero-error-boundary>\n <user-management :columns=${() => [...UsersColumnConfig, ...userColumns]}></user-management>\n </zero-error-boundary>\n </zero-tab-panel>\n <zero-tab-panel slot=\"tabpanel\">\n <zero-error-boundary>\n <profile-management></profile-management>\n </zero-error-boundary>\n </zero-tab-panel>\n <zero-tab-panel slot=\"tabpanel\">\n <zero-error-boundary>\n <entity-management\n resourceName=\"ALL_COUNTERPARTYS\"\n title=\"Counterparty Management\"\n updateEvent=\"EVENT_COUNTERPARTY_MODIFY\"\n deleteEvent=\"EVENT_COUNTERPARTY_DELETE\"\n createEvent=\"EVENT_COUNTERPARTY_INSERT\"\n ></entity-management>\n </zero-error-boundary>\n </zero-tab-panel>\n </zero-tabs>\n`"
1746
+ "default": "html<Users>`\n <entity-management\n resourceName=${(x) => x.resourceName}\n title=\"User Management\"\n entityLabel=\"User\"\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 :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=\"entity_users_management\"\n size-columns-to-fit\n :columns=${(x) => [...x.columns, ...x.entityColumn(), x.statusColumn()]}\n :datasourceConfig=${(x) => x.datasourceConfig}\n ></entity-management>\n`"
1905
1747
  }
1906
1748
  ],
1907
1749
  "exports": [
1908
1750
  {
1909
1751
  "kind": "js",
1910
- "name": "AdminTemplate",
1752
+ "name": "UsersTemplate",
1911
1753
  "declaration": {
1912
- "name": "AdminTemplate",
1913
- "module": "src/routes/admin/admin.template.ts"
1754
+ "name": "UsersTemplate",
1755
+ "module": "src/users/users.template.ts"
1914
1756
  }
1915
1757
  }
1916
1758
  ]
1917
1759
  },
1918
1760
  {
1919
1761
  "kind": "javascript-module",
1920
- "path": "src/routes/admin/admin.ts",
1762
+ "path": "src/users/users.ts",
1921
1763
  "declarations": [
1764
+ {
1765
+ "kind": "variable",
1766
+ "name": "UsersColumnConfig",
1767
+ "type": {
1768
+ "text": "array"
1769
+ },
1770
+ "default": "[\n {\n ...defaultColumnConfig,\n field: 'USER_NAME',\n headerName: 'Username',\n },\n {\n ...defaultColumnConfig,\n field: 'FIRST_NAME',\n headerName: 'First Name',\n },\n {\n ...defaultColumnConfig,\n field: 'LAST_NAME',\n headerName: 'Last Name',\n },\n {\n ...defaultColumnConfig,\n field: 'EMAIL_ADDRESS',\n headerName: 'Email',\n },\n {\n ...defaultColumnConfig,\n field: 'LAST_LOGIN',\n headerName: 'Last Login',\n valueFormatter: ({ value }) =>\n value\n ? new Intl.DateTimeFormat('default', {\n year: 'numeric',\n month: 'numeric',\n day: 'numeric',\n hour: 'numeric',\n minute: 'numeric',\n }).format(value)\n : '',\n },\n]",
1771
+ "description": "Defines the default columns which are present on the user management component",
1772
+ "privacy": "public"
1773
+ },
1922
1774
  {
1923
1775
  "kind": "class",
1924
- "description": "",
1925
- "name": "Admin",
1776
+ "description": "Main class which defines the user management functionality",
1777
+ "name": "Users",
1778
+ "members": [
1779
+ {
1780
+ "kind": "field",
1781
+ "name": "columns",
1782
+ "type": {
1783
+ "text": "any"
1784
+ },
1785
+ "default": "[\n {\n ...defaultColumnConfig,\n field: 'USER_NAME',\n headerName: 'Username',\n },\n {\n ...defaultColumnConfig,\n field: 'FIRST_NAME',\n headerName: 'First Name',\n },\n {\n ...defaultColumnConfig,\n field: 'LAST_NAME',\n headerName: 'Last Name',\n },\n {\n ...defaultColumnConfig,\n field: 'EMAIL_ADDRESS',\n headerName: 'Email',\n },\n {\n ...defaultColumnConfig,\n field: 'LAST_LOGIN',\n headerName: 'Last Login',\n valueFormatter: ({ value }) =>\n value\n ? new Intl.DateTimeFormat('default', {\n year: 'numeric',\n month: 'numeric',\n day: 'numeric',\n hour: 'numeric',\n minute: 'numeric',\n }).format(value)\n : '',\n },\n]",
1786
+ "description": "Column definition, default to the UsersColumnConfig"
1787
+ },
1788
+ {
1789
+ "kind": "field",
1790
+ "name": "additionalCreateFields",
1791
+ "type": {
1792
+ "text": "any"
1793
+ },
1794
+ "default": "[]"
1795
+ },
1796
+ {
1797
+ "kind": "field",
1798
+ "name": "additionalUpdateFields",
1799
+ "type": {
1800
+ "text": "any"
1801
+ },
1802
+ "default": "[]"
1803
+ },
1804
+ {
1805
+ "kind": "field",
1806
+ "name": "allAccessType",
1807
+ "type": {
1808
+ "text": "boolean"
1809
+ }
1810
+ },
1811
+ {
1812
+ "kind": "field",
1813
+ "name": "entityIdValue",
1814
+ "type": {
1815
+ "text": "string"
1816
+ },
1817
+ "privacy": "private"
1818
+ },
1819
+ {
1820
+ "kind": "field",
1821
+ "name": "createEvent",
1822
+ "type": {
1823
+ "text": "string"
1824
+ },
1825
+ "description": "String which contains event if we have permission to insert user of empty string if not"
1826
+ },
1827
+ {
1828
+ "kind": "field",
1829
+ "name": "deleteEvent",
1830
+ "type": {
1831
+ "text": "string"
1832
+ },
1833
+ "description": "String which contains event if we have permission to delete user of empty string if not"
1834
+ },
1835
+ {
1836
+ "kind": "field",
1837
+ "name": "updateEvent",
1838
+ "type": {
1839
+ "text": "string"
1840
+ },
1841
+ "description": "String which contains event if we have permission to update user of empty string if not"
1842
+ },
1843
+ {
1844
+ "kind": "method",
1845
+ "name": "deepClone",
1846
+ "return": {
1847
+ "type": {
1848
+ "text": "Node"
1849
+ }
1850
+ }
1851
+ }
1852
+ ],
1853
+ "mixins": [
1854
+ {
1855
+ "name": "LifecycleMixin",
1856
+ "package": "@genesislcap/foundation-utils"
1857
+ }
1858
+ ],
1926
1859
  "superclass": {
1927
1860
  "name": "FASTElement",
1928
1861
  "package": "@microsoft/fast-element"
1929
1862
  },
1930
- "tagName": "user-admin",
1863
+ "tagName": "user-management",
1931
1864
  "customElement": true
1932
1865
  }
1933
1866
  ],
1934
1867
  "exports": [
1935
1868
  {
1936
1869
  "kind": "js",
1937
- "name": "Admin",
1870
+ "name": "UsersColumnConfig",
1938
1871
  "declaration": {
1939
- "name": "Admin",
1940
- "module": "src/routes/admin/admin.ts"
1872
+ "name": "UsersColumnConfig",
1873
+ "module": "src/users/users.ts"
1874
+ }
1875
+ },
1876
+ {
1877
+ "kind": "js",
1878
+ "name": "Users",
1879
+ "declaration": {
1880
+ "name": "Users",
1881
+ "module": "src/users/users.ts"
1941
1882
  }
1942
1883
  },
1943
1884
  {
1944
1885
  "kind": "custom-element-definition",
1945
- "name": "user-admin",
1886
+ "name": "user-management",
1946
1887
  "declaration": {
1947
- "name": "Admin",
1948
- "module": "src/routes/admin/admin.ts"
1888
+ "name": "Users",
1889
+ "module": "src/users/users.ts"
1949
1890
  }
1950
1891
  }
1951
1892
  ]
@@ -2020,6 +1961,65 @@
2020
1961
  }
2021
1962
  }
2022
1963
  ]
1964
+ },
1965
+ {
1966
+ "kind": "javascript-module",
1967
+ "path": "src/routes/admin/admin.template.ts",
1968
+ "declarations": [
1969
+ {
1970
+ "kind": "variable",
1971
+ "name": "AdminTemplate",
1972
+ "type": {
1973
+ "text": "ViewTemplate"
1974
+ },
1975
+ "default": "html<Admin>`\n <zero-tabs>\n <span slot=\"start\">Admin Entity Management</span>\n <zero-tab slot=\"tab\">Split</zero-tab>\n <zero-tab slot=\"tab\">Users</zero-tab>\n <zero-tab slot=\"tab\">Profiles</zero-tab>\n <zero-tab-panel slot=\"tabpanel\">\n <zero-error-boundary>\n <user-management :columns=${() => [...UsersColumnConfig, ...userColumns]}></user-management>\n </zero-error-boundary>\n </zero-tab-panel>\n <zero-tab-panel slot=\"tabpanel\">\n <zero-error-boundary>\n <profile-management></profile-management>\n </zero-error-boundary>\n </zero-tab-panel>\n <zero-tab-panel slot=\"tabpanel\">\n <zero-error-boundary>\n <entity-management\n resourceName=\"ALL_COUNTERPARTYS\"\n title=\"Counterparty Management\"\n updateEvent=\"EVENT_COUNTERPARTY_MODIFY\"\n deleteEvent=\"EVENT_COUNTERPARTY_DELETE\"\n createEvent=\"EVENT_COUNTERPARTY_INSERT\"\n ></entity-management>\n </zero-error-boundary>\n </zero-tab-panel>\n </zero-tabs>\n`"
1976
+ }
1977
+ ],
1978
+ "exports": [
1979
+ {
1980
+ "kind": "js",
1981
+ "name": "AdminTemplate",
1982
+ "declaration": {
1983
+ "name": "AdminTemplate",
1984
+ "module": "src/routes/admin/admin.template.ts"
1985
+ }
1986
+ }
1987
+ ]
1988
+ },
1989
+ {
1990
+ "kind": "javascript-module",
1991
+ "path": "src/routes/admin/admin.ts",
1992
+ "declarations": [
1993
+ {
1994
+ "kind": "class",
1995
+ "description": "",
1996
+ "name": "Admin",
1997
+ "superclass": {
1998
+ "name": "FASTElement",
1999
+ "package": "@microsoft/fast-element"
2000
+ },
2001
+ "tagName": "user-admin",
2002
+ "customElement": true
2003
+ }
2004
+ ],
2005
+ "exports": [
2006
+ {
2007
+ "kind": "js",
2008
+ "name": "Admin",
2009
+ "declaration": {
2010
+ "name": "Admin",
2011
+ "module": "src/routes/admin/admin.ts"
2012
+ }
2013
+ },
2014
+ {
2015
+ "kind": "custom-element-definition",
2016
+ "name": "user-admin",
2017
+ "declaration": {
2018
+ "name": "Admin",
2019
+ "module": "src/routes/admin/admin.ts"
2020
+ }
2021
+ }
2022
+ ]
2023
2023
  }
2024
2024
  ]
2025
2025
  }
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.26.2",
4
+ "version": "14.26.4",
5
5
  "sideEffects": false,
6
6
  "license": "SEE LICENSE IN license.txt",
7
7
  "main": "dist/esm/index.js",
@@ -38,8 +38,8 @@
38
38
  "test:unit:watch": "watchlist src test -- npm run test:unit"
39
39
  },
40
40
  "devDependencies": {
41
- "@genesislcap/foundation-testing": "^14.26.2",
42
- "@genesislcap/genx": "^14.26.2",
41
+ "@genesislcap/foundation-testing": "^14.26.4",
42
+ "@genesislcap/genx": "^14.26.4",
43
43
  "@playwright/test": "^1.18.1",
44
44
  "bulma": "^0.9.3",
45
45
  "c8": "^7.11.0",
@@ -48,22 +48,22 @@
48
48
  "expect-playwright": "^0.8.0",
49
49
  "jsdom": "^19.0.0",
50
50
  "playwright-lighthouse": "^2.2.2",
51
- "playwright-test": "^7.2.1",
51
+ "playwright-test": "^8.4.0",
52
52
  "tsm": "^2.2.1",
53
53
  "typescript": "^4.5.5",
54
54
  "uvu": "0.5.4",
55
55
  "watchlist": "^0.3.1"
56
56
  },
57
57
  "dependencies": {
58
- "@genesislcap/foundation-comms": "^14.26.2",
59
- "@genesislcap/foundation-errors": "^14.26.2",
60
- "@genesislcap/foundation-forms": "^14.26.2",
61
- "@genesislcap/foundation-login": "^14.26.2",
62
- "@genesislcap/foundation-ui": "^14.26.2",
63
- "@genesislcap/foundation-utils": "^14.26.2",
64
- "@genesislcap/foundation-zero": "^14.26.2",
65
- "@genesislcap/foundation-zero-grid-pro": "^14.26.2",
66
- "@genesislcap/grid-pro": "^14.26.2",
58
+ "@genesislcap/foundation-comms": "^14.26.4",
59
+ "@genesislcap/foundation-errors": "^14.26.4",
60
+ "@genesislcap/foundation-forms": "^14.26.4",
61
+ "@genesislcap/foundation-login": "^14.26.4",
62
+ "@genesislcap/foundation-ui": "^14.26.4",
63
+ "@genesislcap/foundation-utils": "^14.26.4",
64
+ "@genesislcap/foundation-zero": "^14.26.4",
65
+ "@genesislcap/foundation-zero-grid-pro": "^14.26.4",
66
+ "@genesislcap/grid-pro": "^14.26.4",
67
67
  "@microsoft/fast-components": "^2.21.3",
68
68
  "@microsoft/fast-element": "^1.7.0",
69
69
  "@microsoft/fast-foundation": "^2.33.2",
@@ -88,5 +88,5 @@
88
88
  "access": "public"
89
89
  },
90
90
  "customElements": "dist/custom-elements.json",
91
- "gitHead": "60c523f3f5ac39cc3fe9a6aa4e52871d245f66c2"
91
+ "gitHead": "bb3d86a419d4f42a944ac2ccb5d63b0ba46e0226"
92
92
  }