@genesislcap/foundation-entity-management 14.143.3-alpha-b3a864d.0 → 14.144.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (45) hide show
  1. package/dist/custom-elements.json +196 -188
  2. package/dist/dts/index.d.ts +1 -0
  3. package/dist/dts/index.d.ts.map +1 -1
  4. package/dist/dts/main/index.d.ts +3 -0
  5. package/dist/dts/main/index.d.ts.map +1 -0
  6. package/dist/dts/main/main.d.ts +22 -0
  7. package/dist/dts/main/main.d.ts.map +1 -0
  8. package/dist/dts/main/main.styles.d.ts +2 -0
  9. package/dist/dts/main/main.styles.d.ts.map +1 -0
  10. package/dist/dts/main/main.template.d.ts +15 -0
  11. package/dist/dts/main/main.template.d.ts.map +1 -0
  12. package/dist/dts/routes/config.d.ts +29 -0
  13. package/dist/dts/routes/config.d.ts.map +1 -0
  14. package/dist/dts/routes/demo/entity-management.d.ts +4 -0
  15. package/dist/dts/routes/demo/entity-management.d.ts.map +1 -0
  16. package/dist/dts/routes/demo/entity-management.template.d.ts +3 -0
  17. package/dist/dts/routes/demo/entity-management.template.d.ts.map +1 -0
  18. package/dist/dts/routes/index.d.ts +2 -0
  19. package/dist/dts/routes/index.d.ts.map +1 -0
  20. package/dist/esm/index.js +1 -0
  21. package/dist/esm/main/index.js +2 -0
  22. package/dist/esm/main/main.js +85 -0
  23. package/dist/esm/main/main.styles.js +25 -0
  24. package/dist/esm/main/main.template.js +28 -0
  25. package/dist/esm/routes/config.js +117 -0
  26. package/dist/esm/routes/demo/entity-management.js +33 -0
  27. package/dist/esm/routes/demo/entity-management.template.js +18 -0
  28. package/dist/esm/routes/index.js +1 -0
  29. package/dist/foundation-entity-management.api.json +393 -0
  30. package/dist/foundation-entity-management.d.ts +64 -0
  31. package/docs/api/foundation-entity-management.mainapplication.config.md +11 -0
  32. package/docs/api/foundation-entity-management.mainapplication.connect.md +11 -0
  33. package/docs/api/foundation-entity-management.mainapplication.connectedcallback.md +15 -0
  34. package/docs/api/foundation-entity-management.mainapplication.container.md +11 -0
  35. package/docs/api/foundation-entity-management.mainapplication.data.md +11 -0
  36. package/docs/api/foundation-entity-management.mainapplication.loadremotes.md +15 -0
  37. package/docs/api/foundation-entity-management.mainapplication.md +35 -0
  38. package/docs/api/foundation-entity-management.mainapplication.onluminancetoggle.md +15 -0
  39. package/docs/api/foundation-entity-management.mainapplication.provider.md +11 -0
  40. package/docs/api/foundation-entity-management.mainapplication.ready.md +11 -0
  41. package/docs/api/foundation-entity-management.mainapplication.selecttemplate.md +15 -0
  42. package/docs/api/foundation-entity-management.mainapplication.session.md +11 -0
  43. package/docs/api/foundation-entity-management.md +1 -0
  44. package/docs/api-report.md +49 -0
  45. package/package.json +16 -16
@@ -44,6 +44,14 @@
44
44
  "name": "*",
45
45
  "package": "./utils"
46
46
  }
47
+ },
48
+ {
49
+ "kind": "js",
50
+ "name": "*",
51
+ "declaration": {
52
+ "name": "*",
53
+ "package": "./main/index"
54
+ }
47
55
  }
48
56
  ]
49
57
  },
@@ -79,6 +87,41 @@
79
87
  }
80
88
  ]
81
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
+ },
82
125
  {
83
126
  "kind": "javascript-module",
84
127
  "path": "src/entities/entities.styles.ts",
@@ -775,41 +818,6 @@
775
818
  }
776
819
  ]
777
820
  },
778
- {
779
- "kind": "javascript-module",
780
- "path": "src/components/components.ts",
781
- "declarations": [
782
- {
783
- "kind": "function",
784
- "name": "loadRemotes"
785
- }
786
- ],
787
- "exports": [
788
- {
789
- "kind": "js",
790
- "name": "loadRemotes",
791
- "declaration": {
792
- "name": "loadRemotes",
793
- "module": "src/components/components.ts"
794
- }
795
- }
796
- ]
797
- },
798
- {
799
- "kind": "javascript-module",
800
- "path": "src/components/index.ts",
801
- "declarations": [],
802
- "exports": [
803
- {
804
- "kind": "js",
805
- "name": "*",
806
- "declaration": {
807
- "name": "*",
808
- "package": "./components"
809
- }
810
- }
811
- ]
812
- },
813
821
  {
814
822
  "kind": "javascript-module",
815
823
  "path": "src/layouts/default.ts",
@@ -859,159 +867,6 @@
859
867
  }
860
868
  ]
861
869
  },
862
- {
863
- "kind": "javascript-module",
864
- "path": "src/main/index.ts",
865
- "declarations": [],
866
- "exports": [
867
- {
868
- "kind": "js",
869
- "name": "*",
870
- "declaration": {
871
- "name": "*",
872
- "package": "./main.template"
873
- }
874
- },
875
- {
876
- "kind": "js",
877
- "name": "*",
878
- "declaration": {
879
- "name": "*",
880
- "package": "./main"
881
- }
882
- }
883
- ]
884
- },
885
- {
886
- "kind": "javascript-module",
887
- "path": "src/main/main.styles.ts",
888
- "declarations": [
889
- {
890
- "kind": "variable",
891
- "name": "MainStyles",
892
- "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`"
893
- }
894
- ],
895
- "exports": [
896
- {
897
- "kind": "js",
898
- "name": "MainStyles",
899
- "declaration": {
900
- "name": "MainStyles",
901
- "module": "src/main/main.styles.ts"
902
- }
903
- }
904
- ]
905
- },
906
- {
907
- "kind": "javascript-module",
908
- "path": "src/main/main.template.ts",
909
- "declarations": [],
910
- "exports": []
911
- },
912
- {
913
- "kind": "javascript-module",
914
- "path": "src/main/main.ts",
915
- "declarations": [
916
- {
917
- "kind": "class",
918
- "description": "",
919
- "name": "MainApplication",
920
- "members": [
921
- {
922
- "kind": "field",
923
- "name": "config",
924
- "type": {
925
- "text": "MainRouterConfig"
926
- }
927
- },
928
- {
929
- "kind": "field",
930
- "name": "connect",
931
- "type": {
932
- "text": "Connect"
933
- }
934
- },
935
- {
936
- "kind": "field",
937
- "name": "session",
938
- "type": {
939
- "text": "Session"
940
- }
941
- },
942
- {
943
- "kind": "field",
944
- "name": "container",
945
- "type": {
946
- "text": "Container"
947
- }
948
- },
949
- {
950
- "kind": "field",
951
- "name": "provider",
952
- "type": {
953
- "text": "any"
954
- }
955
- },
956
- {
957
- "kind": "field",
958
- "name": "ready",
959
- "type": {
960
- "text": "boolean"
961
- },
962
- "default": "false"
963
- },
964
- {
965
- "kind": "field",
966
- "name": "data",
967
- "type": {
968
- "text": "any"
969
- },
970
- "default": "null"
971
- },
972
- {
973
- "kind": "method",
974
- "name": "onLuminanceToggle"
975
- },
976
- {
977
- "kind": "method",
978
- "name": "loadRemotes"
979
- },
980
- {
981
- "kind": "method",
982
- "name": "selectTemplate"
983
- },
984
- {
985
- "kind": "method",
986
- "name": "registerDIDependencies",
987
- "privacy": "private"
988
- }
989
- ],
990
- "superclass": {
991
- "name": "FASTElement",
992
- "package": "@microsoft/fast-element"
993
- },
994
- "customElement": true
995
- }
996
- ],
997
- "exports": [
998
- {
999
- "kind": "js",
1000
- "name": "MainApplication",
1001
- "declaration": {
1002
- "name": "MainApplication",
1003
- "module": "src/main/main.ts"
1004
- }
1005
- },
1006
- {
1007
- "kind": "custom-element-definition",
1008
- "declaration": {
1009
- "name": "MainApplication",
1010
- "module": "src/main/main.ts"
1011
- }
1012
- }
1013
- ]
1014
- },
1015
870
  {
1016
871
  "kind": "javascript-module",
1017
872
  "path": "src/list/index.ts",
@@ -1418,6 +1273,159 @@
1418
1273
  }
1419
1274
  ]
1420
1275
  },
1276
+ {
1277
+ "kind": "javascript-module",
1278
+ "path": "src/main/index.ts",
1279
+ "declarations": [],
1280
+ "exports": [
1281
+ {
1282
+ "kind": "js",
1283
+ "name": "*",
1284
+ "declaration": {
1285
+ "name": "*",
1286
+ "package": "./main.template"
1287
+ }
1288
+ },
1289
+ {
1290
+ "kind": "js",
1291
+ "name": "*",
1292
+ "declaration": {
1293
+ "name": "*",
1294
+ "package": "./main"
1295
+ }
1296
+ }
1297
+ ]
1298
+ },
1299
+ {
1300
+ "kind": "javascript-module",
1301
+ "path": "src/main/main.styles.ts",
1302
+ "declarations": [
1303
+ {
1304
+ "kind": "variable",
1305
+ "name": "MainStyles",
1306
+ "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`"
1307
+ }
1308
+ ],
1309
+ "exports": [
1310
+ {
1311
+ "kind": "js",
1312
+ "name": "MainStyles",
1313
+ "declaration": {
1314
+ "name": "MainStyles",
1315
+ "module": "src/main/main.styles.ts"
1316
+ }
1317
+ }
1318
+ ]
1319
+ },
1320
+ {
1321
+ "kind": "javascript-module",
1322
+ "path": "src/main/main.template.ts",
1323
+ "declarations": [],
1324
+ "exports": []
1325
+ },
1326
+ {
1327
+ "kind": "javascript-module",
1328
+ "path": "src/main/main.ts",
1329
+ "declarations": [
1330
+ {
1331
+ "kind": "class",
1332
+ "description": "",
1333
+ "name": "MainApplication",
1334
+ "members": [
1335
+ {
1336
+ "kind": "field",
1337
+ "name": "config",
1338
+ "type": {
1339
+ "text": "MainRouterConfig"
1340
+ }
1341
+ },
1342
+ {
1343
+ "kind": "field",
1344
+ "name": "connect",
1345
+ "type": {
1346
+ "text": "Connect"
1347
+ }
1348
+ },
1349
+ {
1350
+ "kind": "field",
1351
+ "name": "session",
1352
+ "type": {
1353
+ "text": "Session"
1354
+ }
1355
+ },
1356
+ {
1357
+ "kind": "field",
1358
+ "name": "container",
1359
+ "type": {
1360
+ "text": "Container"
1361
+ }
1362
+ },
1363
+ {
1364
+ "kind": "field",
1365
+ "name": "provider",
1366
+ "type": {
1367
+ "text": "any"
1368
+ }
1369
+ },
1370
+ {
1371
+ "kind": "field",
1372
+ "name": "ready",
1373
+ "type": {
1374
+ "text": "boolean"
1375
+ },
1376
+ "default": "false"
1377
+ },
1378
+ {
1379
+ "kind": "field",
1380
+ "name": "data",
1381
+ "type": {
1382
+ "text": "any"
1383
+ },
1384
+ "default": "null"
1385
+ },
1386
+ {
1387
+ "kind": "method",
1388
+ "name": "onLuminanceToggle"
1389
+ },
1390
+ {
1391
+ "kind": "method",
1392
+ "name": "loadRemotes"
1393
+ },
1394
+ {
1395
+ "kind": "method",
1396
+ "name": "selectTemplate"
1397
+ },
1398
+ {
1399
+ "kind": "method",
1400
+ "name": "registerDIDependencies",
1401
+ "privacy": "private"
1402
+ }
1403
+ ],
1404
+ "superclass": {
1405
+ "name": "FASTElement",
1406
+ "package": "@microsoft/fast-element"
1407
+ },
1408
+ "customElement": true
1409
+ }
1410
+ ],
1411
+ "exports": [
1412
+ {
1413
+ "kind": "js",
1414
+ "name": "MainApplication",
1415
+ "declaration": {
1416
+ "name": "MainApplication",
1417
+ "module": "src/main/main.ts"
1418
+ }
1419
+ },
1420
+ {
1421
+ "kind": "custom-element-definition",
1422
+ "declaration": {
1423
+ "name": "MainApplication",
1424
+ "module": "src/main/main.ts"
1425
+ }
1426
+ }
1427
+ ]
1428
+ },
1421
1429
  {
1422
1430
  "kind": "javascript-module",
1423
1431
  "path": "src/profiles/editProfileSchema.ts",
@@ -2,4 +2,5 @@ export * from './users/users';
2
2
  export * from './profiles/profiles';
3
3
  export * from './entities/entities';
4
4
  export * from './utils';
5
+ export * from './main/index';
5
6
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,SAAS,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC"}
@@ -0,0 +1,3 @@
1
+ export * from './main.template';
2
+ export * from './main';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/main/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,QAAQ,CAAC"}
@@ -0,0 +1,22 @@
1
+ import { Connect, Session } from '@genesislcap/foundation-comms';
2
+ import { FASTElement } from '@microsoft/fast-element';
3
+ import { Container } from '@microsoft/fast-foundation';
4
+ import { MainRouterConfig } from '../routes';
5
+ /**
6
+ * @public
7
+ */
8
+ export declare class MainApplication extends FASTElement {
9
+ config: MainRouterConfig;
10
+ connect: Connect;
11
+ session: Session;
12
+ container: Container;
13
+ provider: any;
14
+ ready: boolean;
15
+ data: any;
16
+ connectedCallback(): void;
17
+ onLuminanceToggle(): void;
18
+ loadRemotes(): Promise<void>;
19
+ selectTemplate(): import("@microsoft/fast-element").ViewTemplate<MainApplication, any>;
20
+ private registerDIDependencies;
21
+ }
22
+ //# sourceMappingURL=main.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../src/main/main.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,OAAO,EAGP,OAAO,EAER,MAAM,+BAA+B,CAAC;AAEvC,OAAO,EAAE,WAAW,EAA6B,MAAM,yBAAyB,CAAC;AACjF,OAAO,EAAE,SAAS,EAAwB,MAAM,4BAA4B,CAAC;AAG7E,OAAO,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAM7C;;GAEG;AACH,qBAKa,eAAgB,SAAQ,WAAW;IACpB,MAAM,EAAG,gBAAgB,CAAC;IAC3C,OAAO,EAAG,OAAO,CAAC;IAClB,OAAO,EAAG,OAAO,CAAC;IAChB,SAAS,EAAG,SAAS,CAAC;IACrB,QAAQ,EAAG,GAAG,CAAC;IACf,KAAK,EAAE,OAAO,CAAS;IACvB,IAAI,EAAE,GAAG,CAAQ;IAE7B,iBAAiB;IAOjB,iBAAiB;IASX,WAAW;IAKjB,cAAc;IAId,OAAO,CAAC,sBAAsB;CA6B/B"}
@@ -0,0 +1,2 @@
1
+ export declare const MainStyles: import("@microsoft/fast-element").ElementStyles;
2
+ //# sourceMappingURL=main.styles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"main.styles.d.ts","sourceRoot":"","sources":["../../../src/main/main.styles.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,UAAU,iDAsBtB,CAAC"}
@@ -0,0 +1,15 @@
1
+ import type { ViewTemplate } from '@microsoft/fast-element';
2
+ import type { MainApplication } from './main';
3
+ /**
4
+ * @internal
5
+ */
6
+ export declare const DynamicTemplate: ViewTemplate<MainApplication>;
7
+ /**
8
+ * @internal
9
+ */
10
+ export declare const LoadingTemplate: ViewTemplate<MainApplication>;
11
+ /**
12
+ * @internal
13
+ */
14
+ export declare const MainTemplate: ViewTemplate<MainApplication>;
15
+ //# sourceMappingURL=main.template.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"main.template.d.ts","sourceRoot":"","sources":["../../../src/main/main.template.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAC5D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,QAAQ,CAAC;AAE9C;;GAEG;AACH,eAAO,MAAM,eAAe,EAAE,YAAY,CAAC,eAAe,CAIzD,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,eAAe,EAAE,YAAY,CAAC,eAAe,CAEzD,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,YAAY,EAAE,YAAY,CAAC,eAAe,CAStD,CAAC"}
@@ -0,0 +1,29 @@
1
+ import { Auth, Session, FoundationAnalytics } from '@genesislcap/foundation-comms';
2
+ import { Constructable } from '@microsoft/fast-element';
3
+ import { Container } from '@microsoft/fast-foundation';
4
+ import { RouterConfiguration } from '@microsoft/fast-router';
5
+ type RouterSettings = {
6
+ public?: boolean;
7
+ autoAuth?: boolean;
8
+ };
9
+ /**
10
+ * Base implementation of a routing used with the Login class
11
+ *
12
+ * @remarks
13
+ *
14
+ * Could be used when using the Login class as a standalone authentication method
15
+ * with your app
16
+ *
17
+ * @internal
18
+ */
19
+ export declare class MainRouterConfig extends RouterConfiguration<RouterSettings> {
20
+ private auth;
21
+ private container;
22
+ private analytics;
23
+ private session;
24
+ constructor(auth: Auth, container: Container, analytics: FoundationAnalytics, session: Session);
25
+ configure(): void;
26
+ construct<T>(Type: Constructable<T>): T;
27
+ }
28
+ export {};
29
+ //# sourceMappingURL=config.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../src/routes/config.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,IAAI,EACJ,OAAO,EACP,mBAAmB,EAGpB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AACxD,OAAO,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AACvD,OAAO,EAAE,mBAAmB,EAAS,MAAM,wBAAwB,CAAC;AAGpE,KAAK,cAAc,GAAG;IACpB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF;;;;;;;;;GASG;AACH,qBAAa,gBAAiB,SAAQ,mBAAmB,CAAC,cAAc,CAAC;IAE/D,OAAO,CAAC,IAAI;IACP,OAAO,CAAC,SAAS;IACP,OAAO,CAAC,SAAS;IAC7B,OAAO,CAAC,OAAO;gBAHV,IAAI,EAAE,IAAI,EACL,SAAS,EAAE,SAAS,EACV,SAAS,EAAE,mBAAmB,EAC1C,OAAO,EAAE,OAAO;IAK5B,SAAS;IAoGT,SAAS,CAAC,CAAC,EAAE,IAAI,EAAE,aAAa,CAAC,CAAC,CAAC,GAAG,CAAC;CAG/C"}
@@ -0,0 +1,4 @@
1
+ import { FASTElement } from '@microsoft/fast-element';
2
+ export declare class EntityManagementDemo extends FASTElement {
3
+ }
4
+ //# sourceMappingURL=entity-management.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"entity-management.d.ts","sourceRoot":"","sources":["../../../../src/routes/demo/entity-management.ts"],"names":[],"mappings":"AAAA,OAAO,EAAsB,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAU1E,qBAmBa,oBAAqB,SAAQ,WAAW;CAAG"}
@@ -0,0 +1,3 @@
1
+ import { ViewTemplate } from '@microsoft/fast-element';
2
+ export declare const EntityManagementDemoTemplate: ViewTemplate;
3
+ //# sourceMappingURL=entity-management.template.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"entity-management.template.d.ts","sourceRoot":"","sources":["../../../../src/routes/demo/entity-management.template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAG7D,eAAO,MAAM,4BAA4B,EAAE,YAgB1C,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from './config';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/routes/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC"}
package/dist/esm/index.js CHANGED
@@ -2,3 +2,4 @@ export * from './users/users';
2
2
  export * from './profiles/profiles';
3
3
  export * from './entities/entities';
4
4
  export * from './utils';
5
+ export * from './main/index';
@@ -0,0 +1,2 @@
1
+ export * from './main.template';
2
+ export * from './main';
@@ -0,0 +1,85 @@
1
+ import { __awaiter, __decorate } from "tslib";
2
+ import { Connect, ConnectConfig, defaultConnectConfig, Session, SocketReconnectStrategy, } from '@genesislcap/foundation-comms';
3
+ import { baseLayerLuminance, StandardLuminance } from '@microsoft/fast-components';
4
+ import { FASTElement, customElement, observable } from '@microsoft/fast-element';
5
+ import { Container, inject, Registration } from '@microsoft/fast-foundation';
6
+ import { DefaultRouteRecognizer } from '@microsoft/fast-router';
7
+ import * as Components from '../components';
8
+ import { MainRouterConfig } from '../routes';
9
+ import { MainStyles as styles } from './main.styles';
10
+ import { DynamicTemplate as template, LoadingTemplate, MainTemplate } from './main.template';
11
+ const name = 'foundation-entity-management';
12
+ /**
13
+ * @public
14
+ */
15
+ let MainApplication = class MainApplication extends FASTElement {
16
+ constructor() {
17
+ super(...arguments);
18
+ this.ready = false;
19
+ this.data = null;
20
+ }
21
+ connectedCallback() {
22
+ this.registerDIDependencies();
23
+ super.connectedCallback();
24
+ this.loadRemotes();
25
+ }
26
+ onLuminanceToggle() {
27
+ baseLayerLuminance.setValueFor(this.provider, baseLayerLuminance.getValueFor(this.provider) === StandardLuminance.DarkMode
28
+ ? StandardLuminance.LightMode
29
+ : StandardLuminance.DarkMode);
30
+ }
31
+ loadRemotes() {
32
+ return __awaiter(this, void 0, void 0, function* () {
33
+ yield Components.loadRemotes();
34
+ this.ready = true;
35
+ });
36
+ }
37
+ selectTemplate() {
38
+ return this.ready ? MainTemplate : LoadingTemplate;
39
+ }
40
+ registerDIDependencies() {
41
+ this.container.register(Registration.transient(DefaultRouteRecognizer, DefaultRouteRecognizer),
42
+ /**
43
+ * Register custom configs for core services and micro frontends. Note this can also be done via
44
+ * provideDesignSystem().register(...) if preferred.
45
+ *
46
+ * Registration.instance<CredentialManagerConfig>(CredentialManagerConfig, {
47
+ * ...defaultCredentialManagerConfig,
48
+ * cookie: {
49
+ * ...defaultCredentialManagerConfig.cookie,
50
+ * path: '/login',
51
+ * },
52
+ * }),
53
+ */
54
+ Registration.instance(ConnectConfig, Object.assign(Object.assign({}, defaultConnectConfig), { connect: Object.assign(Object.assign({}, defaultConnectConfig.connect), { heartbeatInterval: 15000 }), reconnect: Object.assign(Object.assign({}, defaultConnectConfig.reconnect), { reconnectAttempts: 15, reconnectStrategy: SocketReconnectStrategy.Exponential }) })));
55
+ }
56
+ };
57
+ __decorate([
58
+ inject(MainRouterConfig)
59
+ ], MainApplication.prototype, "config", void 0);
60
+ __decorate([
61
+ Connect
62
+ ], MainApplication.prototype, "connect", void 0);
63
+ __decorate([
64
+ Session
65
+ ], MainApplication.prototype, "session", void 0);
66
+ __decorate([
67
+ Container
68
+ ], MainApplication.prototype, "container", void 0);
69
+ __decorate([
70
+ observable
71
+ ], MainApplication.prototype, "provider", void 0);
72
+ __decorate([
73
+ observable
74
+ ], MainApplication.prototype, "ready", void 0);
75
+ __decorate([
76
+ observable
77
+ ], MainApplication.prototype, "data", void 0);
78
+ MainApplication = __decorate([
79
+ customElement({
80
+ name,
81
+ template,
82
+ styles,
83
+ })
84
+ ], MainApplication);
85
+ export { MainApplication };
@@ -0,0 +1,25 @@
1
+ import { mixinRobotoFont } from '@genesislcap/foundation-zero';
2
+ import { css } from '@microsoft/fast-element';
3
+ export const MainStyles = css `
4
+ ${mixinRobotoFont()}
5
+ :host {
6
+ contain: content;
7
+ }
8
+
9
+ :host,
10
+ zero-design-system-provider,
11
+ .dynamic-template,
12
+ foundation-router {
13
+ display: flex;
14
+ width: 100%;
15
+ height: 100%;
16
+ }
17
+
18
+ fast-progress {
19
+ --accent-foreground-rest: #654df9;
20
+
21
+ height: calc(var(--design-unit) * 1px);
22
+ margin: 0;
23
+ width: 100%;
24
+ }
25
+ `;