@genesislcap/foundation-shell 14.408.0 → 14.409.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.
- package/package.json +14 -15
- package/docs/api/foundation-shell.app.config.md +0 -13
- package/docs/api/foundation-shell.app.deregisterassets.md +0 -17
- package/docs/api/foundation-shell.app.hasassets.md +0 -17
- package/docs/api/foundation-shell.app.md +0 -129
- package/docs/api/foundation-shell.app.registerassets.md +0 -82
- package/docs/api/foundation-shell.appassets.elements.md +0 -13
- package/docs/api/foundation-shell.appassets.md +0 -165
- package/docs/api/foundation-shell.appassets.metadata.md +0 -13
- package/docs/api/foundation-shell.appassets.registrations.md +0 -13
- package/docs/api/foundation-shell.appassets.routes.md +0 -13
- package/docs/api/foundation-shell.appassets.stores.md +0 -13
- package/docs/api/foundation-shell.appassets.styles.md +0 -13
- package/docs/api/foundation-shell.appconfig.context.md +0 -11
- package/docs/api/foundation-shell.appconfig.defaultelementrepeatoptions.md +0 -11
- package/docs/api/foundation-shell.appconfig.md +0 -77
- package/docs/api/foundation-shell.appcontext.md +0 -13
- package/docs/api/foundation-shell.appdependencies.md +0 -15
- package/docs/api/foundation-shell.appdependencyprerequisites.md +0 -15
- package/docs/api/foundation-shell.appelement.md +0 -56
- package/docs/api/foundation-shell.appelementpredicate.md +0 -17
- package/docs/api/foundation-shell.appmetadata.md +0 -45
- package/docs/api/foundation-shell.appregister.deregisterelement.md +0 -61
- package/docs/api/foundation-shell.appregister.deregisterroute.md +0 -61
- package/docs/api/foundation-shell.appregister.deregisterstore.md +0 -61
- package/docs/api/foundation-shell.appregister.deregisterstyle.md +0 -61
- package/docs/api/foundation-shell.appregister.md +0 -237
- package/docs/api/foundation-shell.appregister.registercomponents.md +0 -13
- package/docs/api/foundation-shell.appregister.registerelement.md +0 -61
- package/docs/api/foundation-shell.appregister.registerelementstarget.md +0 -13
- package/docs/api/foundation-shell.appregister.registerroute.md +0 -61
- package/docs/api/foundation-shell.appregister.registerroutecollection.md +0 -13
- package/docs/api/foundation-shell.appregister.registerstore.md +0 -61
- package/docs/api/foundation-shell.appregister.registerstoreroot.md +0 -13
- package/docs/api/foundation-shell.appregister.registerstyle.md +0 -61
- package/docs/api/foundation-shell.appregister.registerstylestarget.md +0 -13
- package/docs/api/foundation-shell.appregistration.md +0 -57
- package/docs/api/foundation-shell.appregistrationcontext.md +0 -15
- package/docs/api/foundation-shell.approute.md +0 -49
- package/docs/api/foundation-shell.approutepredicate.md +0 -17
- package/docs/api/foundation-shell.appstore.md +0 -45
- package/docs/api/foundation-shell.appstorepredicate.md +0 -17
- package/docs/api/foundation-shell.appstyle.md +0 -48
- package/docs/api/foundation-shell.appstylepredicate.md +0 -17
- package/docs/api/foundation-shell.apptargetid.md +0 -43
- package/docs/api/foundation-shell.apptokentypepredicate.md +0 -13
- package/docs/api/foundation-shell.appvalidity.isvalid.md +0 -56
- package/docs/api/foundation-shell.appvalidity.md +0 -40
- package/docs/api/foundation-shell.appvaliditycontext.md +0 -18
- package/docs/api/foundation-shell.assetpredicate.md +0 -15
- package/docs/api/foundation-shell.defaultapp.deregisterassets.md +0 -17
- package/docs/api/foundation-shell.defaultapp.deregisterelement.md +0 -54
- package/docs/api/foundation-shell.defaultapp.deregisterroute.md +0 -54
- package/docs/api/foundation-shell.defaultapp.deregisterstore.md +0 -54
- package/docs/api/foundation-shell.defaultapp.deregisterstyle.md +0 -54
- package/docs/api/foundation-shell.defaultapp.elements.md +0 -13
- package/docs/api/foundation-shell.defaultapp.hasassets.md +0 -17
- package/docs/api/foundation-shell.defaultapp.isvalid.md +0 -56
- package/docs/api/foundation-shell.defaultapp.md +0 -412
- package/docs/api/foundation-shell.defaultapp.metadata.md +0 -13
- package/docs/api/foundation-shell.defaultapp.registerassets.md +0 -54
- package/docs/api/foundation-shell.defaultapp.registercomponents.md +0 -52
- package/docs/api/foundation-shell.defaultapp.registerelement.md +0 -54
- package/docs/api/foundation-shell.defaultapp.registerelementstarget.md +0 -88
- package/docs/api/foundation-shell.defaultapp.registerroute.md +0 -54
- package/docs/api/foundation-shell.defaultapp.registerroutecollection.md +0 -70
- package/docs/api/foundation-shell.defaultapp.registerstore.md +0 -54
- package/docs/api/foundation-shell.defaultapp.registerstoreroot.md +0 -70
- package/docs/api/foundation-shell.defaultapp.registerstyle.md +0 -54
- package/docs/api/foundation-shell.defaultapp.registerstylestarget.md +0 -72
- package/docs/api/foundation-shell.defaultapp.registrations.md +0 -13
- package/docs/api/foundation-shell.defaultapp.routes.md +0 -13
- package/docs/api/foundation-shell.defaultapp.stores.md +0 -13
- package/docs/api/foundation-shell.defaultapp.styles.md +0 -13
- package/docs/api/foundation-shell.defaultappconfig.md +0 -13
- package/docs/api/foundation-shell.dynamictemplate.md +0 -12
- package/docs/api/foundation-shell.getapp.md +0 -30
- package/docs/api/foundation-shell.getqualifiedmoduletokens.md +0 -68
- package/docs/api/foundation-shell.haspredicate.md +0 -17
- package/docs/api/foundation-shell.hastarget.md +0 -15
- package/docs/api/foundation-shell.importpbcassets.md +0 -75
- package/docs/api/foundation-shell.isappelement.md +0 -52
- package/docs/api/foundation-shell.isappmetadata.md +0 -52
- package/docs/api/foundation-shell.isappregistration.md +0 -52
- package/docs/api/foundation-shell.isapproute.md +0 -52
- package/docs/api/foundation-shell.isappstore.md +0 -52
- package/docs/api/foundation-shell.isappstyle.md +0 -52
- package/docs/api/foundation-shell.iscomposablestyles.md +0 -52
- package/docs/api/foundation-shell.isviewtemplate.md +0 -52
- package/docs/api/foundation-shell.loadingtemplate.md +0 -12
- package/docs/api/foundation-shell.logger.md +0 -13
- package/docs/api/foundation-shell.mainapplication.connectedcallback.md +0 -15
- package/docs/api/foundation-shell.mainapplication.md +0 -100
- package/docs/api/foundation-shell.mainapplication.ready.md +0 -11
- package/docs/api/foundation-shell.mainapplication.selecttemplate.md +0 -15
- package/docs/api/foundation-shell.maintemplate.md +0 -12
- package/docs/api/foundation-shell.md +0 -617
- package/docs/api/foundation-shell.registercomponents.md +0 -34
- package/docs/api/foundation-shell.registerelementstarget.md +0 -39
- package/docs/api/foundation-shell.registerroutecollection.md +0 -24
- package/docs/api/foundation-shell.registerstoreroot.md +0 -33
- package/docs/api/foundation-shell.registerstylestarget.md +0 -27
- package/docs/api/foundation-shell.registrationpredicate.md +0 -79
- package/docs/api/foundation-shell.targetidpredicate.md +0 -65
- package/docs/api/index.md +0 -30
- package/docs/api-report.md.api.md +0 -296
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [@genesislcap/foundation-shell](./foundation-shell.md) > [DefaultApp](./foundation-shell.defaultapp.md) > [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): () => void;
|
|
13
|
-
```
|
|
14
|
-
|
|
15
|
-
## Parameters
|
|
16
|
-
|
|
17
|
-
<table><thead><tr><th>
|
|
18
|
-
|
|
19
|
-
Parameter
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
</th><th>
|
|
23
|
-
|
|
24
|
-
Type
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
</th><th>
|
|
28
|
-
|
|
29
|
-
Description
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
</th></tr></thead>
|
|
33
|
-
<tbody><tr><td>
|
|
34
|
-
|
|
35
|
-
routeCollection
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
</td><td>
|
|
39
|
-
|
|
40
|
-
any
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
</td><td>
|
|
44
|
-
|
|
45
|
-
The route collection to register [AppRoutes](./foundation-shell.approute.md) to.
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
</td></tr>
|
|
49
|
-
<tr><td>
|
|
50
|
-
|
|
51
|
-
predicate
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
</td><td>
|
|
55
|
-
|
|
56
|
-
any
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
</td><td>
|
|
60
|
-
|
|
61
|
-
Optional [AppRoutePredicate](./foundation-shell.approutepredicate.md)<!-- -->.
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
</td></tr>
|
|
65
|
-
</tbody></table>
|
|
66
|
-
|
|
67
|
-
**Returns:**
|
|
68
|
-
|
|
69
|
-
() => void
|
|
70
|
-
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [@genesislcap/foundation-shell](./foundation-shell.md) > [DefaultApp](./foundation-shell.defaultapp.md) > [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
|
-
<table><thead><tr><th>
|
|
18
|
-
|
|
19
|
-
Parameter
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
</th><th>
|
|
23
|
-
|
|
24
|
-
Type
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
</th><th>
|
|
28
|
-
|
|
29
|
-
Description
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
</th></tr></thead>
|
|
33
|
-
<tbody><tr><td>
|
|
34
|
-
|
|
35
|
-
store
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
</td><td>
|
|
39
|
-
|
|
40
|
-
any
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
</td><td>
|
|
44
|
-
|
|
45
|
-
The [AppStore](./foundation-shell.appstore.md) to register.
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
</td></tr>
|
|
49
|
-
</tbody></table>
|
|
50
|
-
|
|
51
|
-
**Returns:**
|
|
52
|
-
|
|
53
|
-
void
|
|
54
|
-
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [@genesislcap/foundation-shell](./foundation-shell.md) > [DefaultApp](./foundation-shell.defaultapp.md) > [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
|
-
<table><thead><tr><th>
|
|
18
|
-
|
|
19
|
-
Parameter
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
</th><th>
|
|
23
|
-
|
|
24
|
-
Type
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
</th><th>
|
|
28
|
-
|
|
29
|
-
Description
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
</th></tr></thead>
|
|
33
|
-
<tbody><tr><td>
|
|
34
|
-
|
|
35
|
-
storeRoot
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
</td><td>
|
|
39
|
-
|
|
40
|
-
any
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
</td><td>
|
|
44
|
-
|
|
45
|
-
The store root to register [AppStores](./foundation-shell.appstore.md) to.
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
</td></tr>
|
|
49
|
-
<tr><td>
|
|
50
|
-
|
|
51
|
-
predicate
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
</td><td>
|
|
55
|
-
|
|
56
|
-
any
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
</td><td>
|
|
60
|
-
|
|
61
|
-
Optional [AppStorePredicate](./foundation-shell.appstorepredicate.md)<!-- -->.
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
</td></tr>
|
|
65
|
-
</tbody></table>
|
|
66
|
-
|
|
67
|
-
**Returns:**
|
|
68
|
-
|
|
69
|
-
() => void
|
|
70
|
-
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [@genesislcap/foundation-shell](./foundation-shell.md) > [DefaultApp](./foundation-shell.defaultapp.md) > [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
|
-
<table><thead><tr><th>
|
|
18
|
-
|
|
19
|
-
Parameter
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
</th><th>
|
|
23
|
-
|
|
24
|
-
Type
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
</th><th>
|
|
28
|
-
|
|
29
|
-
Description
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
</th></tr></thead>
|
|
33
|
-
<tbody><tr><td>
|
|
34
|
-
|
|
35
|
-
style
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
</td><td>
|
|
39
|
-
|
|
40
|
-
any
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
</td><td>
|
|
44
|
-
|
|
45
|
-
The [AppStyle](./foundation-shell.appstyle.md) to register.
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
</td></tr>
|
|
49
|
-
</tbody></table>
|
|
50
|
-
|
|
51
|
-
**Returns:**
|
|
52
|
-
|
|
53
|
-
void
|
|
54
|
-
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [@genesislcap/foundation-shell](./foundation-shell.md) > [DefaultApp](./foundation-shell.defaultapp.md) > [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
|
-
<table><thead><tr><th>
|
|
18
|
-
|
|
19
|
-
Parameter
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
</th><th>
|
|
23
|
-
|
|
24
|
-
Type
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
</th><th>
|
|
28
|
-
|
|
29
|
-
Description
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
</th></tr></thead>
|
|
33
|
-
<tbody><tr><td>
|
|
34
|
-
|
|
35
|
-
targetId
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
</td><td>
|
|
39
|
-
|
|
40
|
-
any
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
</td><td>
|
|
44
|
-
|
|
45
|
-
[AppTargetId](./foundation-shell.apptargetid.md)<!-- -->.
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
</td></tr>
|
|
49
|
-
<tr><td>
|
|
50
|
-
|
|
51
|
-
predicate
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
</td><td>
|
|
55
|
-
|
|
56
|
-
any
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
</td><td>
|
|
60
|
-
|
|
61
|
-
Optional [AppStylePredicate](./foundation-shell.appstylepredicate.md)<!-- -->.
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
</td></tr>
|
|
65
|
-
</tbody></table>
|
|
66
|
-
|
|
67
|
-
**Returns:**
|
|
68
|
-
|
|
69
|
-
AppStylesTargetBehavior
|
|
70
|
-
|
|
71
|
-
A that will stay in sync as styles are registered and deregistered.
|
|
72
|
-
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [@genesislcap/foundation-shell](./foundation-shell.md) > [DefaultApp](./foundation-shell.defaultapp.md) > [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
|
-
```
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [@genesislcap/foundation-shell](./foundation-shell.md) > [DefaultApp](./foundation-shell.defaultapp.md) > [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
|
-
```
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [@genesislcap/foundation-shell](./foundation-shell.md) > [DefaultApp](./foundation-shell.defaultapp.md) > [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
|
-
```
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [@genesislcap/foundation-shell](./foundation-shell.md) > [DefaultApp](./foundation-shell.defaultapp.md) > [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
|
-
```
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [@genesislcap/foundation-shell](./foundation-shell.md) > [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
|
-
```
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [@genesislcap/foundation-shell](./foundation-shell.md) > [DynamicTemplate](./foundation-shell.dynamictemplate.md)
|
|
4
|
-
|
|
5
|
-
## DynamicTemplate variable
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
**Signature:**
|
|
9
|
-
|
|
10
|
-
```typescript
|
|
11
|
-
DynamicTemplate: import("@microsoft/fast-element").ViewTemplate<MainApplication, any>
|
|
12
|
-
```
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [@genesislcap/foundation-shell](./foundation-shell.md) > [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
|
-
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [@genesislcap/foundation-shell](./foundation-shell.md) > [getQualifiedModuleTokens](./foundation-shell.getqualifiedmoduletokens.md)
|
|
4
|
-
|
|
5
|
-
## getQualifiedModuleTokens() function
|
|
6
|
-
|
|
7
|
-
**Signature:**
|
|
8
|
-
|
|
9
|
-
```typescript
|
|
10
|
-
getQualifiedModuleTokens: <T extends any>(module: any, predicate: AppTokenTypePredicate) => T[]
|
|
11
|
-
```
|
|
12
|
-
|
|
13
|
-
## Parameters
|
|
14
|
-
|
|
15
|
-
<table><thead><tr><th>
|
|
16
|
-
|
|
17
|
-
Parameter
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
</th><th>
|
|
21
|
-
|
|
22
|
-
Type
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
</th><th>
|
|
26
|
-
|
|
27
|
-
Description
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
</th></tr></thead>
|
|
31
|
-
<tbody><tr><td>
|
|
32
|
-
|
|
33
|
-
module
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
</td><td>
|
|
37
|
-
|
|
38
|
-
any
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
</td><td>
|
|
42
|
-
|
|
43
|
-
An imported module.
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
</td></tr>
|
|
47
|
-
<tr><td>
|
|
48
|
-
|
|
49
|
-
predicate
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
</td><td>
|
|
53
|
-
|
|
54
|
-
[AppTokenTypePredicate](./foundation-shell.apptokentypepredicate.md)
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
</td><td>
|
|
58
|
-
|
|
59
|
-
Token type predicate.
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
</td></tr>
|
|
63
|
-
</tbody></table>
|
|
64
|
-
|
|
65
|
-
**Returns:**
|
|
66
|
-
|
|
67
|
-
T\[\]
|
|
68
|
-
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [@genesislcap/foundation-shell](./foundation-shell.md) > [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
|
-
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [@genesislcap/foundation-shell](./foundation-shell.md) > [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
|
-
```
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [@genesislcap/foundation-shell](./foundation-shell.md) > [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<[AppAssets](./foundation-shell.appassets.md)<!-- -->>
|
|
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
|
-
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [@genesislcap/foundation-shell](./foundation-shell.md) > [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
|
-
<table><thead><tr><th>
|
|
16
|
-
|
|
17
|
-
Parameter
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
</th><th>
|
|
21
|
-
|
|
22
|
-
Type
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
</th><th>
|
|
26
|
-
|
|
27
|
-
Description
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
</th></tr></thead>
|
|
31
|
-
<tbody><tr><td>
|
|
32
|
-
|
|
33
|
-
token
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
</td><td>
|
|
37
|
-
|
|
38
|
-
unknown
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
</td><td>
|
|
42
|
-
|
|
43
|
-
A module export token.
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
</td></tr>
|
|
47
|
-
</tbody></table>
|
|
48
|
-
|
|
49
|
-
**Returns:**
|
|
50
|
-
|
|
51
|
-
token is [AppElement](./foundation-shell.appelement.md)
|
|
52
|
-
|