@genesislcap/foundation-entity-management 14.143.3-alpha-47707bd.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 (51) hide show
  1. package/dist/custom-elements.json +116 -108
  2. package/dist/dts/index.d.ts +1 -0
  3. package/dist/dts/index.d.ts.map +1 -1
  4. package/dist/dts/layouts/default.d.ts +4 -0
  5. package/dist/dts/layouts/default.d.ts.map +1 -0
  6. package/dist/dts/layouts/index.d.ts +2 -0
  7. package/dist/dts/layouts/index.d.ts.map +1 -0
  8. package/dist/dts/main/index.d.ts +3 -0
  9. package/dist/dts/main/index.d.ts.map +1 -0
  10. package/dist/dts/main/main.d.ts +22 -0
  11. package/dist/dts/main/main.d.ts.map +1 -0
  12. package/dist/dts/main/main.styles.d.ts +2 -0
  13. package/dist/dts/main/main.styles.d.ts.map +1 -0
  14. package/dist/dts/main/main.template.d.ts +15 -0
  15. package/dist/dts/main/main.template.d.ts.map +1 -0
  16. package/dist/dts/routes/config.d.ts +29 -0
  17. package/dist/dts/routes/config.d.ts.map +1 -0
  18. package/dist/dts/routes/demo/entity-management.d.ts +4 -0
  19. package/dist/dts/routes/demo/entity-management.d.ts.map +1 -0
  20. package/dist/dts/routes/demo/entity-management.template.d.ts +3 -0
  21. package/dist/dts/routes/demo/entity-management.template.d.ts.map +1 -0
  22. package/dist/dts/routes/index.d.ts +2 -0
  23. package/dist/dts/routes/index.d.ts.map +1 -0
  24. package/dist/esm/index.js +1 -0
  25. package/dist/esm/layouts/default.js +34 -0
  26. package/dist/esm/layouts/index.js +1 -0
  27. package/dist/esm/main/index.js +2 -0
  28. package/dist/esm/main/main.js +85 -0
  29. package/dist/esm/main/main.styles.js +25 -0
  30. package/dist/esm/main/main.template.js +28 -0
  31. package/dist/esm/routes/config.js +117 -0
  32. package/dist/esm/routes/demo/entity-management.js +33 -0
  33. package/dist/esm/routes/demo/entity-management.template.js +18 -0
  34. package/dist/esm/routes/index.js +1 -0
  35. package/dist/foundation-entity-management.api.json +393 -0
  36. package/dist/foundation-entity-management.d.ts +64 -0
  37. package/docs/api/foundation-entity-management.mainapplication.config.md +11 -0
  38. package/docs/api/foundation-entity-management.mainapplication.connect.md +11 -0
  39. package/docs/api/foundation-entity-management.mainapplication.connectedcallback.md +15 -0
  40. package/docs/api/foundation-entity-management.mainapplication.container.md +11 -0
  41. package/docs/api/foundation-entity-management.mainapplication.data.md +11 -0
  42. package/docs/api/foundation-entity-management.mainapplication.loadremotes.md +15 -0
  43. package/docs/api/foundation-entity-management.mainapplication.md +35 -0
  44. package/docs/api/foundation-entity-management.mainapplication.onluminancetoggle.md +15 -0
  45. package/docs/api/foundation-entity-management.mainapplication.provider.md +11 -0
  46. package/docs/api/foundation-entity-management.mainapplication.ready.md +11 -0
  47. package/docs/api/foundation-entity-management.mainapplication.selecttemplate.md +15 -0
  48. package/docs/api/foundation-entity-management.mainapplication.session.md +11 -0
  49. package/docs/api/foundation-entity-management.md +1 -0
  50. package/docs/api-report.md +49 -0
  51. 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
  },
@@ -810,6 +818,55 @@
810
818
  }
811
819
  ]
812
820
  },
821
+ {
822
+ "kind": "javascript-module",
823
+ "path": "src/layouts/default.ts",
824
+ "declarations": [
825
+ {
826
+ "kind": "variable",
827
+ "name": "loginLayout",
828
+ "default": "new FASTElementLayout(\n html`\n <div class=\"container\">\n <div class=\"content\">\n <slot></slot>\n </div>\n </div>\n `,\n baseLayoutCss,\n)"
829
+ },
830
+ {
831
+ "kind": "variable",
832
+ "name": "defaultLayout",
833
+ "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)"
834
+ }
835
+ ],
836
+ "exports": [
837
+ {
838
+ "kind": "js",
839
+ "name": "loginLayout",
840
+ "declaration": {
841
+ "name": "loginLayout",
842
+ "module": "src/layouts/default.ts"
843
+ }
844
+ },
845
+ {
846
+ "kind": "js",
847
+ "name": "defaultLayout",
848
+ "declaration": {
849
+ "name": "defaultLayout",
850
+ "module": "src/layouts/default.ts"
851
+ }
852
+ }
853
+ ]
854
+ },
855
+ {
856
+ "kind": "javascript-module",
857
+ "path": "src/layouts/index.ts",
858
+ "declarations": [],
859
+ "exports": [
860
+ {
861
+ "kind": "js",
862
+ "name": "*",
863
+ "declaration": {
864
+ "name": "*",
865
+ "package": "./default"
866
+ }
867
+ }
868
+ ]
869
+ },
813
870
  {
814
871
  "kind": "javascript-module",
815
872
  "path": "src/list/index.ts",
@@ -1216,55 +1273,6 @@
1216
1273
  }
1217
1274
  ]
1218
1275
  },
1219
- {
1220
- "kind": "javascript-module",
1221
- "path": "src/layouts/default.ts",
1222
- "declarations": [
1223
- {
1224
- "kind": "variable",
1225
- "name": "loginLayout",
1226
- "default": "new FASTElementLayout(\n html`\n <div class=\"container\">\n <div class=\"content\">\n <slot></slot>\n </div>\n </div>\n `,\n baseLayoutCss,\n)"
1227
- },
1228
- {
1229
- "kind": "variable",
1230
- "name": "defaultLayout",
1231
- "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)"
1232
- }
1233
- ],
1234
- "exports": [
1235
- {
1236
- "kind": "js",
1237
- "name": "loginLayout",
1238
- "declaration": {
1239
- "name": "loginLayout",
1240
- "module": "src/layouts/default.ts"
1241
- }
1242
- },
1243
- {
1244
- "kind": "js",
1245
- "name": "defaultLayout",
1246
- "declaration": {
1247
- "name": "defaultLayout",
1248
- "module": "src/layouts/default.ts"
1249
- }
1250
- }
1251
- ]
1252
- },
1253
- {
1254
- "kind": "javascript-module",
1255
- "path": "src/layouts/index.ts",
1256
- "declarations": [],
1257
- "exports": [
1258
- {
1259
- "kind": "js",
1260
- "name": "*",
1261
- "declaration": {
1262
- "name": "*",
1263
- "package": "./default"
1264
- }
1265
- }
1266
- ]
1267
- },
1268
1276
  {
1269
1277
  "kind": "javascript-module",
1270
1278
  "path": "src/main/index.ts",
@@ -2544,65 +2552,6 @@
2544
2552
  }
2545
2553
  ]
2546
2554
  },
2547
- {
2548
- "kind": "javascript-module",
2549
- "path": "src/routes/demo/entity-management.template.ts",
2550
- "declarations": [
2551
- {
2552
- "kind": "variable",
2553
- "name": "EntityManagementDemoTemplate",
2554
- "type": {
2555
- "text": "ViewTemplate"
2556
- },
2557
- "default": "html<EntityManagementDemo>`\n <zero-tabs>\n <span slot=\"start\">Entity Management</span>\n <zero-tab data-test-id=\"profiles\" slot=\"tab\">Counterparty</zero-tab>\n <zero-tab-panel slot=\"tabpanel\">\n <zero-notification-listener>\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-notification-listener>\n </zero-tab-panel>\n </zero-tabs>\n`"
2558
- }
2559
- ],
2560
- "exports": [
2561
- {
2562
- "kind": "js",
2563
- "name": "EntityManagementDemoTemplate",
2564
- "declaration": {
2565
- "name": "EntityManagementDemoTemplate",
2566
- "module": "src/routes/demo/entity-management.template.ts"
2567
- }
2568
- }
2569
- ]
2570
- },
2571
- {
2572
- "kind": "javascript-module",
2573
- "path": "src/routes/demo/entity-management.ts",
2574
- "declarations": [
2575
- {
2576
- "kind": "class",
2577
- "description": "",
2578
- "name": "EntityManagementDemo",
2579
- "superclass": {
2580
- "name": "FASTElement",
2581
- "package": "@microsoft/fast-element"
2582
- },
2583
- "tagName": "entity-management-demo",
2584
- "customElement": true
2585
- }
2586
- ],
2587
- "exports": [
2588
- {
2589
- "kind": "js",
2590
- "name": "EntityManagementDemo",
2591
- "declaration": {
2592
- "name": "EntityManagementDemo",
2593
- "module": "src/routes/demo/entity-management.ts"
2594
- }
2595
- },
2596
- {
2597
- "kind": "custom-element-definition",
2598
- "name": "entity-management-demo",
2599
- "declaration": {
2600
- "name": "EntityManagementDemo",
2601
- "module": "src/routes/demo/entity-management.ts"
2602
- }
2603
- }
2604
- ]
2605
- },
2606
2555
  {
2607
2556
  "kind": "javascript-module",
2608
2557
  "path": "src/utils/formatting.ts",
@@ -2718,6 +2667,65 @@
2718
2667
  }
2719
2668
  }
2720
2669
  ]
2670
+ },
2671
+ {
2672
+ "kind": "javascript-module",
2673
+ "path": "src/routes/demo/entity-management.template.ts",
2674
+ "declarations": [
2675
+ {
2676
+ "kind": "variable",
2677
+ "name": "EntityManagementDemoTemplate",
2678
+ "type": {
2679
+ "text": "ViewTemplate"
2680
+ },
2681
+ "default": "html<EntityManagementDemo>`\n <zero-tabs>\n <span slot=\"start\">Entity Management</span>\n <zero-tab data-test-id=\"profiles\" slot=\"tab\">Counterparty</zero-tab>\n <zero-tab-panel slot=\"tabpanel\">\n <zero-notification-listener>\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-notification-listener>\n </zero-tab-panel>\n </zero-tabs>\n`"
2682
+ }
2683
+ ],
2684
+ "exports": [
2685
+ {
2686
+ "kind": "js",
2687
+ "name": "EntityManagementDemoTemplate",
2688
+ "declaration": {
2689
+ "name": "EntityManagementDemoTemplate",
2690
+ "module": "src/routes/demo/entity-management.template.ts"
2691
+ }
2692
+ }
2693
+ ]
2694
+ },
2695
+ {
2696
+ "kind": "javascript-module",
2697
+ "path": "src/routes/demo/entity-management.ts",
2698
+ "declarations": [
2699
+ {
2700
+ "kind": "class",
2701
+ "description": "",
2702
+ "name": "EntityManagementDemo",
2703
+ "superclass": {
2704
+ "name": "FASTElement",
2705
+ "package": "@microsoft/fast-element"
2706
+ },
2707
+ "tagName": "entity-management-demo",
2708
+ "customElement": true
2709
+ }
2710
+ ],
2711
+ "exports": [
2712
+ {
2713
+ "kind": "js",
2714
+ "name": "EntityManagementDemo",
2715
+ "declaration": {
2716
+ "name": "EntityManagementDemo",
2717
+ "module": "src/routes/demo/entity-management.ts"
2718
+ }
2719
+ },
2720
+ {
2721
+ "kind": "custom-element-definition",
2722
+ "name": "entity-management-demo",
2723
+ "declaration": {
2724
+ "name": "EntityManagementDemo",
2725
+ "module": "src/routes/demo/entity-management.ts"
2726
+ }
2727
+ }
2728
+ ]
2721
2729
  }
2722
2730
  ]
2723
2731
  }
@@ -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,4 @@
1
+ import { FASTElementLayout } from '@microsoft/fast-router';
2
+ export declare const loginLayout: FASTElementLayout;
3
+ export declare const defaultLayout: FASTElementLayout;
4
+ //# sourceMappingURL=default.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"default.d.ts","sourceRoot":"","sources":["../../../src/layouts/default.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAmB3D,eAAO,MAAM,WAAW,mBASvB,CAAC;AAEF,eAAO,MAAM,aAAa,mBAWzB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from './default';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/layouts/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,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,34 @@
1
+ import { css, html } from '@microsoft/fast-element';
2
+ import { FASTElementLayout } from '@microsoft/fast-router';
3
+ const baseLayoutCss = css `
4
+ .container {
5
+ width: 100%;
6
+ height: 100%;
7
+ display: block;
8
+ position: relative;
9
+ }
10
+
11
+ .content {
12
+ position: absolute;
13
+ top: 0;
14
+ bottom: 0;
15
+ left: 0;
16
+ right: 0;
17
+ }
18
+ `;
19
+ export const loginLayout = new FASTElementLayout(html `
20
+ <div class="container">
21
+ <div class="content">
22
+ <slot></slot>
23
+ </div>
24
+ </div>
25
+ `, baseLayoutCss);
26
+ export const defaultLayout = new FASTElementLayout(html `
27
+ <div class="container">
28
+ <div class="content">
29
+ <slot></slot>
30
+ </div>
31
+ </div>
32
+ `, css `
33
+ ${baseLayoutCss}
34
+ `);
@@ -0,0 +1 @@
1
+ export * from './default';
@@ -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
+ `;
@@ -0,0 +1,28 @@
1
+ import { html, ref } from '@microsoft/fast-element';
2
+ /**
3
+ * @internal
4
+ */
5
+ export const DynamicTemplate = html `
6
+ <zero-design-system-provider ${ref('provider')}>
7
+ <div class="dynamic-template">${(x) => x.selectTemplate()}</div>
8
+ </zero-design-system-provider>
9
+ `;
10
+ /**
11
+ * @internal
12
+ */
13
+ export const LoadingTemplate = html `
14
+ <fast-progress></fast-progress>
15
+ `;
16
+ /**
17
+ * @internal
18
+ */
19
+ export const MainTemplate = html `
20
+ <zero-design-system-provider data-test-id="design-system-provider">
21
+ <div class="dynamic-template">
22
+ <foundation-router
23
+ @luminance-icon-clicked=${(x) => x.onLuminanceToggle()}
24
+ :config=${(x) => x.config}
25
+ ></foundation-router>
26
+ </div>
27
+ </zero-design-system-provider>
28
+ `;