@genesislcap/foundation-shell 14.131.0 → 14.133.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 (185) hide show
  1. package/MODULE_FEDERATION.md +11 -0
  2. package/README.md +19 -31
  3. package/dist/{13.13.60f90061d33208d1354b.js → 13.13.cc8f282b2fd08bdaa429.js} +2 -2
  4. package/dist/{13.4d4d342ba791da63d597e22d6d61f90f.js.map → 13.18ce90986215931e094ef572bdb883d6.js.map} +1 -1
  5. package/dist/InjectManifest.e1f16063b12a45e391ae7b4f95241ab2.js.map +1 -0
  6. package/dist/dts/app/app.d.ts +159 -0
  7. package/dist/dts/app/app.d.ts.map +1 -0
  8. package/dist/dts/app/behaviors.d.ts +53 -0
  9. package/dist/dts/app/behaviors.d.ts.map +1 -0
  10. package/dist/dts/app/config.d.ts +25 -0
  11. package/dist/dts/app/config.d.ts.map +1 -0
  12. package/dist/dts/app/index.d.ts +5 -0
  13. package/dist/dts/app/index.d.ts.map +1 -0
  14. package/dist/dts/app/types.d.ts +700 -0
  15. package/dist/dts/app/types.d.ts.map +1 -0
  16. package/dist/dts/app/utils.d.ts +61 -0
  17. package/dist/dts/app/utils.d.ts.map +1 -0
  18. package/dist/dts/index.docs.d.ts +8 -0
  19. package/dist/dts/index.docs.d.ts.map +1 -0
  20. package/dist/dts/layouts/default/layout.d.ts.map +1 -1
  21. package/dist/dts/layouts/formatsExample/layout.d.ts.map +1 -1
  22. package/dist/dts/main/main.d.ts +3 -0
  23. package/dist/dts/main/main.d.ts.map +1 -1
  24. package/dist/dts/main/main.styles.d.ts +3 -0
  25. package/dist/dts/main/main.styles.d.ts.map +1 -1
  26. package/dist/dts/main/main.template.d.ts +9 -0
  27. package/dist/dts/main/main.template.d.ts.map +1 -1
  28. package/dist/dts/pbc/index.d.ts +2 -0
  29. package/dist/dts/pbc/index.d.ts.map +1 -0
  30. package/dist/dts/pbc/pbc.d.ts +68 -0
  31. package/dist/dts/pbc/pbc.d.ts.map +1 -0
  32. package/dist/dts/pbc/vite/exports.d.ts +26 -0
  33. package/dist/dts/pbc/vite/exports.d.ts.map +1 -0
  34. package/dist/dts/pbc/vite/index.d.ts +2 -0
  35. package/dist/dts/pbc/vite/index.d.ts.map +1 -0
  36. package/dist/dts/pbc/vite/utils.d.ts +8 -0
  37. package/dist/dts/pbc/vite/utils.d.ts.map +1 -0
  38. package/dist/dts/pbc/webpack/exports.d.ts +26 -0
  39. package/dist/dts/pbc/webpack/exports.d.ts.map +1 -0
  40. package/dist/dts/pbc/webpack/index.d.ts +2 -0
  41. package/dist/dts/pbc/webpack/index.d.ts.map +1 -0
  42. package/dist/dts/pbc/webpack/utils.d.ts +9 -0
  43. package/dist/dts/pbc/webpack/utils.d.ts.map +1 -0
  44. package/dist/dts/serviceWorker/serviceWorker.d.ts +5 -0
  45. package/dist/dts/serviceWorker/serviceWorker.d.ts.map +1 -1
  46. package/dist/dts/tsdoc-metadata.json +11 -0
  47. package/dist/esm/app/app.js +190 -0
  48. package/dist/esm/app/behaviors.js +126 -0
  49. package/dist/esm/app/config.js +28 -0
  50. package/dist/esm/app/index.js +4 -0
  51. package/dist/esm/app/types.js +1 -0
  52. package/dist/esm/app/utils.js +102 -0
  53. package/dist/esm/index.docs.js +7 -0
  54. package/dist/esm/layouts/default/layout.js +3 -0
  55. package/dist/esm/layouts/formatsExample/layout.js +3 -0
  56. package/dist/esm/main/main.js +3 -0
  57. package/dist/esm/main/main.styles.js +3 -0
  58. package/dist/esm/main/main.template.js +9 -0
  59. package/dist/esm/pbc/index.js +1 -0
  60. package/dist/esm/pbc/pbc.js +82 -0
  61. package/dist/esm/pbc/vite/exports.js +38 -0
  62. package/dist/esm/pbc/vite/index.js +1 -0
  63. package/dist/esm/pbc/vite/utils.js +16 -0
  64. package/dist/esm/pbc/webpack/exports.js +26 -0
  65. package/dist/esm/pbc/webpack/index.js +1 -0
  66. package/dist/esm/pbc/webpack/utils.js +16 -0
  67. package/dist/esm/serviceWorker/serviceWorker.js +2 -0
  68. package/dist/foundation-shell.api.json +4415 -0
  69. package/dist/foundation-shell.d.ts +1098 -0
  70. package/dist/{foundationShell.36a3b143a4ba39b4f032455d8eb5e502.js.map → foundationShell.fadec38bfa479afb70fbd232cd79236c.js.map} +1 -1
  71. package/dist/index.html +2 -2
  72. package/dist/main.3083ee4d28f46e8a3506.js +2 -0
  73. package/dist/{main.6f018458fb996d9110cc5fd4557cc7b2.js.map → main.4eedb5ca7f0017cbc616ee79b8e61731.js.map} +1 -1
  74. package/dist/remoteEntry.js +2 -2
  75. package/dist/sw.js +2 -2
  76. package/dist/{swRegistration.5825d13b9d973891da34.js → swRegistration.48635f3caa94cdf4bcb2.js} +2 -2
  77. package/dist/{swRegistration.de691080ebb6f93ca0a423137ad2c19a.js.map → swRegistration.a93f46a92fddad87f178ead7e088ee54.js.map} +1 -1
  78. package/docs/.gitattributes +2 -0
  79. package/docs/api/foundation-shell.app.config.md +13 -0
  80. package/docs/api/foundation-shell.app.deregisterassets.md +17 -0
  81. package/docs/api/foundation-shell.app.hasassets.md +17 -0
  82. package/docs/api/foundation-shell.app.md +49 -0
  83. package/docs/api/foundation-shell.app.registerassets.md +52 -0
  84. package/docs/api/foundation-shell.appassets.elements.md +13 -0
  85. package/docs/api/foundation-shell.appassets.md +25 -0
  86. package/docs/api/foundation-shell.appassets.metadata.md +13 -0
  87. package/docs/api/foundation-shell.appassets.registrations.md +13 -0
  88. package/docs/api/foundation-shell.appassets.routes.md +13 -0
  89. package/docs/api/foundation-shell.appassets.stores.md +13 -0
  90. package/docs/api/foundation-shell.appassets.styles.md +13 -0
  91. package/docs/api/foundation-shell.appconfig.context.md +11 -0
  92. package/docs/api/foundation-shell.appconfig.defaultelementrepeatoptions.md +11 -0
  93. package/docs/api/foundation-shell.appconfig.md +21 -0
  94. package/docs/api/foundation-shell.appcontext.md +19 -0
  95. package/docs/api/foundation-shell.appdependencies.md +15 -0
  96. package/docs/api/foundation-shell.appdependencyprerequisites.md +15 -0
  97. package/docs/api/foundation-shell.appelement.md +55 -0
  98. package/docs/api/foundation-shell.appelementpredicate.md +17 -0
  99. package/docs/api/foundation-shell.appmetadata.md +45 -0
  100. package/docs/api/foundation-shell.appregister.deregisterelement.md +31 -0
  101. package/docs/api/foundation-shell.appregister.deregisterroute.md +31 -0
  102. package/docs/api/foundation-shell.appregister.deregisterstore.md +31 -0
  103. package/docs/api/foundation-shell.appregister.deregisterstyle.md +31 -0
  104. package/docs/api/foundation-shell.appregister.md +37 -0
  105. package/docs/api/foundation-shell.appregister.registercomponents.md +13 -0
  106. package/docs/api/foundation-shell.appregister.registerelement.md +31 -0
  107. package/docs/api/foundation-shell.appregister.registerelementstarget.md +13 -0
  108. package/docs/api/foundation-shell.appregister.registerroute.md +31 -0
  109. package/docs/api/foundation-shell.appregister.registerroutecollection.md +13 -0
  110. package/docs/api/foundation-shell.appregister.registerstore.md +31 -0
  111. package/docs/api/foundation-shell.appregister.registerstoreroot.md +13 -0
  112. package/docs/api/foundation-shell.appregister.registerstyle.md +31 -0
  113. package/docs/api/foundation-shell.appregister.registerstylestarget.md +13 -0
  114. package/docs/api/foundation-shell.appregistration.md +57 -0
  115. package/docs/api/foundation-shell.appregistrationcontext.md +15 -0
  116. package/docs/api/foundation-shell.approute.md +49 -0
  117. package/docs/api/foundation-shell.approutepredicate.md +17 -0
  118. package/docs/api/foundation-shell.appstore.md +45 -0
  119. package/docs/api/foundation-shell.appstorepredicate.md +17 -0
  120. package/docs/api/foundation-shell.appstyle.md +48 -0
  121. package/docs/api/foundation-shell.appstylepredicate.md +17 -0
  122. package/docs/api/foundation-shell.apptargetid.md +43 -0
  123. package/docs/api/foundation-shell.apptokentypepredicate.md +13 -0
  124. package/docs/api/foundation-shell.appvalidity.isvalid.md +26 -0
  125. package/docs/api/foundation-shell.appvalidity.md +20 -0
  126. package/docs/api/foundation-shell.appvaliditycontext.md +18 -0
  127. package/docs/api/foundation-shell.assetpredicate.md +12 -0
  128. package/docs/api/foundation-shell.defaultapp.deregisterassets.md +17 -0
  129. package/docs/api/foundation-shell.defaultapp.deregisterelement.md +24 -0
  130. package/docs/api/foundation-shell.defaultapp.deregisterroute.md +24 -0
  131. package/docs/api/foundation-shell.defaultapp.deregisterstore.md +24 -0
  132. package/docs/api/foundation-shell.defaultapp.deregisterstyle.md +24 -0
  133. package/docs/api/foundation-shell.defaultapp.elements.md +13 -0
  134. package/docs/api/foundation-shell.defaultapp.hasassets.md +17 -0
  135. package/docs/api/foundation-shell.defaultapp.isvalid.md +26 -0
  136. package/docs/api/foundation-shell.defaultapp.md +48 -0
  137. package/docs/api/foundation-shell.defaultapp.metadata.md +13 -0
  138. package/docs/api/foundation-shell.defaultapp.registerassets.md +24 -0
  139. package/docs/api/foundation-shell.defaultapp.registercomponents.md +24 -0
  140. package/docs/api/foundation-shell.defaultapp.registerelement.md +24 -0
  141. package/docs/api/foundation-shell.defaultapp.registerelementstarget.md +28 -0
  142. package/docs/api/foundation-shell.defaultapp.registerroute.md +24 -0
  143. package/docs/api/foundation-shell.defaultapp.registerroutecollection.md +25 -0
  144. package/docs/api/foundation-shell.defaultapp.registerstore.md +24 -0
  145. package/docs/api/foundation-shell.defaultapp.registerstoreroot.md +25 -0
  146. package/docs/api/foundation-shell.defaultapp.registerstyle.md +24 -0
  147. package/docs/api/foundation-shell.defaultapp.registerstylestarget.md +27 -0
  148. package/docs/api/foundation-shell.defaultapp.registrations.md +13 -0
  149. package/docs/api/foundation-shell.defaultapp.routes.md +13 -0
  150. package/docs/api/foundation-shell.defaultapp.stores.md +13 -0
  151. package/docs/api/foundation-shell.defaultapp.styles.md +13 -0
  152. package/docs/api/foundation-shell.defaultappconfig.md +13 -0
  153. package/docs/api/foundation-shell.dynamictemplate.md +12 -0
  154. package/docs/api/foundation-shell.getapp.md +30 -0
  155. package/docs/api/foundation-shell.getqualifiedmoduletokens.md +11 -0
  156. package/docs/api/foundation-shell.haspredicate.md +17 -0
  157. package/docs/api/foundation-shell.hastarget.md +15 -0
  158. package/docs/api/foundation-shell.importpbcassets.md +75 -0
  159. package/docs/api/foundation-shell.isappelement.md +22 -0
  160. package/docs/api/foundation-shell.isappmetadata.md +22 -0
  161. package/docs/api/foundation-shell.isappregistration.md +22 -0
  162. package/docs/api/foundation-shell.isapproute.md +22 -0
  163. package/docs/api/foundation-shell.isappstore.md +22 -0
  164. package/docs/api/foundation-shell.isappstyle.md +22 -0
  165. package/docs/api/foundation-shell.iscomposablestyles.md +22 -0
  166. package/docs/api/foundation-shell.isviewtemplate.md +22 -0
  167. package/docs/api/foundation-shell.loadingtemplate.md +12 -0
  168. package/docs/api/foundation-shell.mainapplication.connectedcallback.md +15 -0
  169. package/docs/api/foundation-shell.mainapplication.md +27 -0
  170. package/docs/api/foundation-shell.mainapplication.ready.md +11 -0
  171. package/docs/api/foundation-shell.mainapplication.selecttemplate.md +15 -0
  172. package/docs/api/foundation-shell.maintemplate.md +12 -0
  173. package/docs/api/foundation-shell.md +81 -0
  174. package/docs/api/foundation-shell.registercomponents.md +34 -0
  175. package/docs/api/foundation-shell.registerelementstarget.md +39 -0
  176. package/docs/api/foundation-shell.registerroutecollection.md +24 -0
  177. package/docs/api/foundation-shell.registerstoreroot.md +33 -0
  178. package/docs/api/foundation-shell.registerstylestarget.md +27 -0
  179. package/docs/api/foundation-shell.registrationpredicate.md +12 -0
  180. package/docs/api/foundation-shell.targetidpredicate.md +12 -0
  181. package/docs/api/index.md +12 -0
  182. package/docs/api-report.md +293 -0
  183. package/package.json +50 -9
  184. package/dist/InjectManifest.44b41759e967dfc682a50ab3e02bfaba.js.map +0 -1
  185. package/dist/main.21fe80be0d6102e2dccf.js +0 -2
@@ -0,0 +1,24 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [@genesislcap/foundation-shell](./foundation-shell.md) &gt; [DefaultApp](./foundation-shell.defaultapp.md) &gt; [registerAssets](./foundation-shell.defaultapp.registerassets.md)
4
+
5
+ ## DefaultApp.registerAssets() method
6
+
7
+ Register assets from either a globed dynamic import or some predefined AppAssets instance. This is a one time operation. Assets had be subsequently registered and deregistered using their individual APIs.
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ registerAssets(assets: any): void;
13
+ ```
14
+
15
+ ## Parameters
16
+
17
+ | Parameter | Type | Description |
18
+ | --- | --- | --- |
19
+ | assets | any | [AppAssets](./foundation-shell.appassets.md)<!-- -->. |
20
+
21
+ **Returns:**
22
+
23
+ void
24
+
@@ -0,0 +1,24 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [@genesislcap/foundation-shell](./foundation-shell.md) &gt; [DefaultApp](./foundation-shell.defaultapp.md) &gt; [registerComponents](./foundation-shell.defaultapp.registercomponents.md)
4
+
5
+ ## DefaultApp.registerComponents() method
6
+
7
+ API for Application and Seed authors to register dynamic components.
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ registerComponents(context: any): void;
13
+ ```
14
+
15
+ ## Parameters
16
+
17
+ | Parameter | Type | Description |
18
+ | --- | --- | --- |
19
+ | context | any | |
20
+
21
+ **Returns:**
22
+
23
+ void
24
+
@@ -0,0 +1,24 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [@genesislcap/foundation-shell](./foundation-shell.md) &gt; [DefaultApp](./foundation-shell.defaultapp.md) &gt; [registerElement](./foundation-shell.defaultapp.registerelement.md)
4
+
5
+ ## DefaultApp.registerElement() method
6
+
7
+ API for developers to register [AppElements](./foundation-shell.appelement.md) lazily.
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ registerElement(element: any): void;
13
+ ```
14
+
15
+ ## Parameters
16
+
17
+ | Parameter | Type | Description |
18
+ | --- | --- | --- |
19
+ | element | any | The [AppElement](./foundation-shell.appelement.md) to register. |
20
+
21
+ **Returns:**
22
+
23
+ void
24
+
@@ -0,0 +1,28 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [@genesislcap/foundation-shell](./foundation-shell.md) &gt; [DefaultApp](./foundation-shell.defaultapp.md) &gt; [registerElementsTarget](./foundation-shell.defaultapp.registerelementstarget.md)
4
+
5
+ ## DefaultApp.registerElementsTarget() method
6
+
7
+ API for Application and Seed authors to define dynamic [AppElement](./foundation-shell.appelement.md) integration points.
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ registerElementsTarget(targetId: any, predicate: any, repeatOptions?: import("@microsoft/fast-element").RepeatOptions): import("@microsoft/fast-element").ViewTemplate<any, any>;
13
+ ```
14
+
15
+ ## Parameters
16
+
17
+ | Parameter | Type | Description |
18
+ | --- | --- | --- |
19
+ | targetId | any | [AppTargetId](./foundation-shell.apptargetid.md)<!-- -->. |
20
+ | predicate | any | Optional [AppElementPredicate](./foundation-shell.appelementpredicate.md)<!-- -->. |
21
+ | repeatOptions | import("@microsoft/fast-element").RepeatOptions | _(Optional)_ |
22
+
23
+ **Returns:**
24
+
25
+ import("@microsoft/fast-element").ViewTemplate&lt;any, any&gt;
26
+
27
+ A fragment that will stay in sync as elements are registered and deregistered.
28
+
@@ -0,0 +1,24 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [@genesislcap/foundation-shell](./foundation-shell.md) &gt; [DefaultApp](./foundation-shell.defaultapp.md) &gt; [registerRoute](./foundation-shell.defaultapp.registerroute.md)
4
+
5
+ ## DefaultApp.registerRoute() method
6
+
7
+ API for developers to register [AppRoutes](./foundation-shell.approute.md) lazily.
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ registerRoute(route: any): void;
13
+ ```
14
+
15
+ ## Parameters
16
+
17
+ | Parameter | Type | Description |
18
+ | --- | --- | --- |
19
+ | route | any | The [AppRoute](./foundation-shell.approute.md) to register. |
20
+
21
+ **Returns:**
22
+
23
+ void
24
+
@@ -0,0 +1,25 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [@genesislcap/foundation-shell](./foundation-shell.md) &gt; [DefaultApp](./foundation-shell.defaultapp.md) &gt; [registerRouteCollection](./foundation-shell.defaultapp.registerroutecollection.md)
4
+
5
+ ## DefaultApp.registerRouteCollection() method
6
+
7
+ API for Application and Seed authors to register the main .
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ registerRouteCollection(routeCollection: any, predicate: any): any;
13
+ ```
14
+
15
+ ## Parameters
16
+
17
+ | Parameter | Type | Description |
18
+ | --- | --- | --- |
19
+ | routeCollection | any | The route collection to register [AppRoutes](./foundation-shell.approute.md) to. |
20
+ | predicate | any | Optional [AppRoutePredicate](./foundation-shell.approutepredicate.md)<!-- -->. |
21
+
22
+ **Returns:**
23
+
24
+ any
25
+
@@ -0,0 +1,24 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [@genesislcap/foundation-shell](./foundation-shell.md) &gt; [DefaultApp](./foundation-shell.defaultapp.md) &gt; [registerStore](./foundation-shell.defaultapp.registerstore.md)
4
+
5
+ ## DefaultApp.registerStore() method
6
+
7
+ API for developers to register [AppStores](./foundation-shell.appstore.md) lazily.
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ registerStore(store: any): void;
13
+ ```
14
+
15
+ ## Parameters
16
+
17
+ | Parameter | Type | Description |
18
+ | --- | --- | --- |
19
+ | store | any | The [AppStore](./foundation-shell.appstore.md) to register. |
20
+
21
+ **Returns:**
22
+
23
+ void
24
+
@@ -0,0 +1,25 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [@genesislcap/foundation-shell](./foundation-shell.md) &gt; [DefaultApp](./foundation-shell.defaultapp.md) &gt; [registerStoreRoot](./foundation-shell.defaultapp.registerstoreroot.md)
4
+
5
+ ## DefaultApp.registerStoreRoot() method
6
+
7
+ API for Application and Seed authors to register the .
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ registerStoreRoot(storeRoot: any, predicate: any): () => void;
13
+ ```
14
+
15
+ ## Parameters
16
+
17
+ | Parameter | Type | Description |
18
+ | --- | --- | --- |
19
+ | storeRoot | any | The store root to register [AppStores](./foundation-shell.appstore.md) to. |
20
+ | predicate | any | Optional [AppStorePredicate](./foundation-shell.appstorepredicate.md)<!-- -->. |
21
+
22
+ **Returns:**
23
+
24
+ () =&gt; void
25
+
@@ -0,0 +1,24 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [@genesislcap/foundation-shell](./foundation-shell.md) &gt; [DefaultApp](./foundation-shell.defaultapp.md) &gt; [registerStyle](./foundation-shell.defaultapp.registerstyle.md)
4
+
5
+ ## DefaultApp.registerStyle() method
6
+
7
+ API for developers to register [AppStyles](./foundation-shell.appstyle.md) lazily.
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ registerStyle(style: any): void;
13
+ ```
14
+
15
+ ## Parameters
16
+
17
+ | Parameter | Type | Description |
18
+ | --- | --- | --- |
19
+ | style | any | The [AppStyle](./foundation-shell.appstyle.md) to register. |
20
+
21
+ **Returns:**
22
+
23
+ void
24
+
@@ -0,0 +1,27 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [@genesislcap/foundation-shell](./foundation-shell.md) &gt; [DefaultApp](./foundation-shell.defaultapp.md) &gt; [registerStylesTarget](./foundation-shell.defaultapp.registerstylestarget.md)
4
+
5
+ ## DefaultApp.registerStylesTarget() method
6
+
7
+ API for Application and Seed authors to define dynamic [AppStyle](./foundation-shell.appstyle.md) integration points.
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ registerStylesTarget(targetId: any, predicate: any): AppStylesTargetBehavior;
13
+ ```
14
+
15
+ ## Parameters
16
+
17
+ | Parameter | Type | Description |
18
+ | --- | --- | --- |
19
+ | targetId | any | [AppTargetId](./foundation-shell.apptargetid.md)<!-- -->. |
20
+ | predicate | any | Optional [AppStylePredicate](./foundation-shell.appstylepredicate.md)<!-- -->. |
21
+
22
+ **Returns:**
23
+
24
+ AppStylesTargetBehavior
25
+
26
+ A that will stay in sync as styles are registered and deregistered.
27
+
@@ -0,0 +1,13 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [@genesislcap/foundation-shell](./foundation-shell.md) &gt; [DefaultApp](./foundation-shell.defaultapp.md) &gt; [registrations](./foundation-shell.defaultapp.registrations.md)
4
+
5
+ ## DefaultApp.registrations property
6
+
7
+ All [AppRegistration](./foundation-shell.appregistration.md) tokens.
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ registrations: AppRegistration[];
13
+ ```
@@ -0,0 +1,13 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [@genesislcap/foundation-shell](./foundation-shell.md) &gt; [DefaultApp](./foundation-shell.defaultapp.md) &gt; [routes](./foundation-shell.defaultapp.routes.md)
4
+
5
+ ## DefaultApp.routes property
6
+
7
+ All [AppRoute](./foundation-shell.approute.md) tokens.
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ routes: AppRoute[];
13
+ ```
@@ -0,0 +1,13 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [@genesislcap/foundation-shell](./foundation-shell.md) &gt; [DefaultApp](./foundation-shell.defaultapp.md) &gt; [stores](./foundation-shell.defaultapp.stores.md)
4
+
5
+ ## DefaultApp.stores property
6
+
7
+ All [AppStore](./foundation-shell.appstore.md) tokens.
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ stores: AppStore[];
13
+ ```
@@ -0,0 +1,13 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [@genesislcap/foundation-shell](./foundation-shell.md) &gt; [DefaultApp](./foundation-shell.defaultapp.md) &gt; [styles](./foundation-shell.defaultapp.styles.md)
4
+
5
+ ## DefaultApp.styles property
6
+
7
+ All [AppStyle](./foundation-shell.appstyle.md) tokens.
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ styles: AppStyle[];
13
+ ```
@@ -0,0 +1,13 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [@genesislcap/foundation-shell](./foundation-shell.md) &gt; [defaultAppConfig](./foundation-shell.defaultappconfig.md)
4
+
5
+ ## defaultAppConfig variable
6
+
7
+ Default AppConfig DI implementation.
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ defaultAppConfig: AppConfig
13
+ ```
@@ -0,0 +1,12 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [@genesislcap/foundation-shell](./foundation-shell.md) &gt; [DynamicTemplate](./foundation-shell.dynamictemplate.md)
4
+
5
+ ## DynamicTemplate variable
6
+
7
+
8
+ **Signature:**
9
+
10
+ ```typescript
11
+ DynamicTemplate: ViewTemplate<MainApplication>
12
+ ```
@@ -0,0 +1,30 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [@genesislcap/foundation-shell](./foundation-shell.md) &gt; [getApp](./foundation-shell.getapp.md)
4
+
5
+ ## getApp() function
6
+
7
+ Gets App from the DI container.
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ export declare function getApp(): App;
13
+ ```
14
+ **Returns:**
15
+
16
+ [App](./foundation-shell.app.md)
17
+
18
+ ## Remarks
19
+
20
+ A utility method for host applications that are not using decorators or the DI container.
21
+
22
+ ## Example
23
+
24
+
25
+ ```ts
26
+ import { getApp } from '@genesislcap/foundation-shell/app';
27
+ ...
28
+ private user = getApp();
29
+ ```
30
+
@@ -0,0 +1,11 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [@genesislcap/foundation-shell](./foundation-shell.md) &gt; [getQualifiedModuleTokens](./foundation-shell.getqualifiedmoduletokens.md)
4
+
5
+ ## getQualifiedModuleTokens variable
6
+
7
+ **Signature:**
8
+
9
+ ```typescript
10
+ getQualifiedModuleTokens: <T extends unknown>(module: any, predicate: AppTokenTypePredicate) => T[]
11
+ ```
@@ -0,0 +1,17 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [@genesislcap/foundation-shell](./foundation-shell.md) &gt; [HasPredicate](./foundation-shell.haspredicate.md)
4
+
5
+ ## HasPredicate type
6
+
7
+ Interface that includes `predicate` function.
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ export type HasPredicate = {
13
+ predicate?: AssetPredicate;
14
+ };
15
+ ```
16
+ **References:** [AssetPredicate](./foundation-shell.assetpredicate.md)
17
+
@@ -0,0 +1,15 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [@genesislcap/foundation-shell](./foundation-shell.md) &gt; [HasTarget](./foundation-shell.hastarget.md)
4
+
5
+ ## HasTarget type
6
+
7
+ Interface that includes `targetId`<!-- -->.
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ export type HasTarget<TTarget = string> = {
13
+ targetId: TTarget;
14
+ };
15
+ ```
@@ -0,0 +1,75 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [@genesislcap/foundation-shell](./foundation-shell.md) &gt; [importPBCAssets](./foundation-shell.importpbcassets.md)
4
+
5
+ ## importPBCAssets() function
6
+
7
+ A utility for importing PBC assets that have been added to the application's src/pbc directory via genx add.
8
+
9
+ The `genx` builder (webpack or vite) will attempt to dynamically load all PBC assets from the application's `src/pbc` directory by default. The returned AppAssets can then be applied to the App. Please note that `app.registerAssets` is a one-time operation, intended for upfront bulk registration. After this point, you must use the single asset APIs of the `App` for lazy asset registration or deregistration.
10
+
11
+ **Signature:**
12
+
13
+ ```typescript
14
+ export declare function importPBCAssets(): Promise<AppAssets>;
15
+ ```
16
+ **Returns:**
17
+
18
+ Promise&lt;[AppAssets](./foundation-shell.appassets.md)<!-- -->&gt;
19
+
20
+ ## Example 1
21
+
22
+
23
+ ```ts
24
+ import { importPBCAssets } from '@genesislcap/foundation-shell/pbc';
25
+ ...
26
+ const assets = await importPBCAssets();
27
+ ...
28
+ app.registerAssets(assets);
29
+ ```
30
+
31
+ ## Example 2
32
+
33
+ A typical app setup that makes use of PBC imports might look like this.
34
+
35
+ ```ts
36
+ // src/main/main.ts
37
+
38
+ @App app: App;
39
+
40
+ async connectedCallback() {
41
+ ...
42
+ await this.loadPBCs();
43
+ ...
44
+ }
45
+
46
+ async loadPBCs() {
47
+ // Import PBC assets that may have been added to the ./pbc directory by genx or by hand
48
+ const pbcAssets = await importPBCAssets();
49
+
50
+ // Register bulk assets
51
+ this.app.registerAssets(pbcAssets);
52
+
53
+ // Register the top-level route collection
54
+ this.app.registerRouteCollection(this.config.routes);
55
+ }
56
+ ```
57
+ The rest of the PBC setup is handled by the system automatically, however, you will still need to register application asset integration points.
58
+
59
+ ## Example 3
60
+
61
+ A typical PBC directory structure may look like this.
62
+
63
+ ```markdown
64
+ ├── reporting
65
+ │ ├── elements.ts
66
+ │ ├── metadata.ts
67
+ │ ├── registrations.ts
68
+ │ ├── routes.ts
69
+ │ ├── stores.ts
70
+ │ └── styles.ts
71
+ ```
72
+ Each file is dynamically loaded and processed as part of the overall PBC set the application contains. PBCs do not need to include `index.ts` files, and export token naming does not matter within any of these files. For example, `foo` here `export const foo: AppElement = {...}` has no impact on PBC integration.
73
+
74
+ The answers generated from the `genx add` cli flows can be used to tailor what PBC assets are included at build-time.
75
+
@@ -0,0 +1,22 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [@genesislcap/foundation-shell](./foundation-shell.md) &gt; [isAppElement](./foundation-shell.isappelement.md)
4
+
5
+ ## isAppElement() function
6
+
7
+ **Signature:**
8
+
9
+ ```typescript
10
+ export declare function isAppElement(token: unknown): token is AppElement;
11
+ ```
12
+
13
+ ## Parameters
14
+
15
+ | Parameter | Type | Description |
16
+ | --- | --- | --- |
17
+ | token | unknown | A module export token. |
18
+
19
+ **Returns:**
20
+
21
+ token is [AppElement](./foundation-shell.appelement.md)
22
+
@@ -0,0 +1,22 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [@genesislcap/foundation-shell](./foundation-shell.md) &gt; [isAppMetadata](./foundation-shell.isappmetadata.md)
4
+
5
+ ## isAppMetadata() function
6
+
7
+ **Signature:**
8
+
9
+ ```typescript
10
+ export declare function isAppMetadata(token: unknown): token is AppMetadata;
11
+ ```
12
+
13
+ ## Parameters
14
+
15
+ | Parameter | Type | Description |
16
+ | --- | --- | --- |
17
+ | token | unknown | A module export token. |
18
+
19
+ **Returns:**
20
+
21
+ token is [AppMetadata](./foundation-shell.appmetadata.md)
22
+
@@ -0,0 +1,22 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [@genesislcap/foundation-shell](./foundation-shell.md) &gt; [isAppRegistration](./foundation-shell.isappregistration.md)
4
+
5
+ ## isAppRegistration() function
6
+
7
+ **Signature:**
8
+
9
+ ```typescript
10
+ export declare function isAppRegistration(token: unknown): token is AppRegistration;
11
+ ```
12
+
13
+ ## Parameters
14
+
15
+ | Parameter | Type | Description |
16
+ | --- | --- | --- |
17
+ | token | unknown | A module export token. |
18
+
19
+ **Returns:**
20
+
21
+ token is [AppRegistration](./foundation-shell.appregistration.md)
22
+
@@ -0,0 +1,22 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [@genesislcap/foundation-shell](./foundation-shell.md) &gt; [isAppRoute](./foundation-shell.isapproute.md)
4
+
5
+ ## isAppRoute() function
6
+
7
+ **Signature:**
8
+
9
+ ```typescript
10
+ export declare function isAppRoute(token: unknown): token is AppRoute;
11
+ ```
12
+
13
+ ## Parameters
14
+
15
+ | Parameter | Type | Description |
16
+ | --- | --- | --- |
17
+ | token | unknown | A module export token. |
18
+
19
+ **Returns:**
20
+
21
+ token is [AppRoute](./foundation-shell.approute.md)
22
+
@@ -0,0 +1,22 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [@genesislcap/foundation-shell](./foundation-shell.md) &gt; [isAppStore](./foundation-shell.isappstore.md)
4
+
5
+ ## isAppStore() function
6
+
7
+ **Signature:**
8
+
9
+ ```typescript
10
+ export declare function isAppStore(token: unknown): token is AppStore;
11
+ ```
12
+
13
+ ## Parameters
14
+
15
+ | Parameter | Type | Description |
16
+ | --- | --- | --- |
17
+ | token | unknown | A module export token. |
18
+
19
+ **Returns:**
20
+
21
+ token is [AppStore](./foundation-shell.appstore.md)
22
+
@@ -0,0 +1,22 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [@genesislcap/foundation-shell](./foundation-shell.md) &gt; [isAppStyle](./foundation-shell.isappstyle.md)
4
+
5
+ ## isAppStyle() function
6
+
7
+ **Signature:**
8
+
9
+ ```typescript
10
+ export declare function isAppStyle(token: unknown): token is AppStyle;
11
+ ```
12
+
13
+ ## Parameters
14
+
15
+ | Parameter | Type | Description |
16
+ | --- | --- | --- |
17
+ | token | unknown | A module export token. |
18
+
19
+ **Returns:**
20
+
21
+ token is [AppStyle](./foundation-shell.appstyle.md)
22
+
@@ -0,0 +1,22 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [@genesislcap/foundation-shell](./foundation-shell.md) &gt; [isComposableStyles](./foundation-shell.iscomposablestyles.md)
4
+
5
+ ## isComposableStyles() function
6
+
7
+ **Signature:**
8
+
9
+ ```typescript
10
+ export declare function isComposableStyles(token: unknown): token is ComposableStyles;
11
+ ```
12
+
13
+ ## Parameters
14
+
15
+ | Parameter | Type | Description |
16
+ | --- | --- | --- |
17
+ | token | unknown | A module export token / styles candidate. |
18
+
19
+ **Returns:**
20
+
21
+ token is ComposableStyles
22
+