@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,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) > [AppRegister](./foundation-shell.appregister.md) > [registerElementsTarget](./foundation-shell.appregister.registerelementstarget.md)
|
|
4
|
-
|
|
5
|
-
## AppRegister.registerElementsTarget property
|
|
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: RegisterElementsTarget;
|
|
13
|
-
```
|
|
@@ -1,61 +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) > [AppRegister](./foundation-shell.appregister.md) > [registerRoute](./foundation-shell.appregister.registerroute.md)
|
|
4
|
-
|
|
5
|
-
## AppRegister.registerRoute() method
|
|
6
|
-
|
|
7
|
-
API for developers to register [AppRoutes](./foundation-shell.approute.md) lazily.
|
|
8
|
-
|
|
9
|
-
**Signature:**
|
|
10
|
-
|
|
11
|
-
```typescript
|
|
12
|
-
registerRoute(route: AppRoute): 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
|
-
route
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
</td><td>
|
|
39
|
-
|
|
40
|
-
[AppRoute](./foundation-shell.approute.md)
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
</td><td>
|
|
44
|
-
|
|
45
|
-
The [AppRoute](./foundation-shell.approute.md) to register.
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
</td></tr>
|
|
49
|
-
</tbody></table>
|
|
50
|
-
|
|
51
|
-
**Returns:**
|
|
52
|
-
|
|
53
|
-
void
|
|
54
|
-
|
|
55
|
-
## Example
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
```ts
|
|
59
|
-
getApp().registerRoute(someAppRoute);
|
|
60
|
-
```
|
|
61
|
-
|
|
@@ -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) > [AppRegister](./foundation-shell.appregister.md) > [registerRouteCollection](./foundation-shell.appregister.registerroutecollection.md)
|
|
4
|
-
|
|
5
|
-
## AppRegister.registerRouteCollection property
|
|
6
|
-
|
|
7
|
-
API for Application and Seed authors to register the main .
|
|
8
|
-
|
|
9
|
-
**Signature:**
|
|
10
|
-
|
|
11
|
-
```typescript
|
|
12
|
-
registerRouteCollection: RegisterRouteCollection;
|
|
13
|
-
```
|
|
@@ -1,61 +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) > [AppRegister](./foundation-shell.appregister.md) > [registerStore](./foundation-shell.appregister.registerstore.md)
|
|
4
|
-
|
|
5
|
-
## AppRegister.registerStore() method
|
|
6
|
-
|
|
7
|
-
API for developers to register [AppStores](./foundation-shell.appstore.md) lazily.
|
|
8
|
-
|
|
9
|
-
**Signature:**
|
|
10
|
-
|
|
11
|
-
```typescript
|
|
12
|
-
registerStore(store: AppStore): 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
|
-
[AppStore](./foundation-shell.appstore.md)
|
|
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
|
-
|
|
55
|
-
## Example
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
```ts
|
|
59
|
-
getApp().registerStore(someAppStore);
|
|
60
|
-
```
|
|
61
|
-
|
|
@@ -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) > [AppRegister](./foundation-shell.appregister.md) > [registerStoreRoot](./foundation-shell.appregister.registerstoreroot.md)
|
|
4
|
-
|
|
5
|
-
## AppRegister.registerStoreRoot property
|
|
6
|
-
|
|
7
|
-
API for Application and Seed authors to register the .
|
|
8
|
-
|
|
9
|
-
**Signature:**
|
|
10
|
-
|
|
11
|
-
```typescript
|
|
12
|
-
registerStoreRoot: RegisterStoreRoot;
|
|
13
|
-
```
|
|
@@ -1,61 +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) > [AppRegister](./foundation-shell.appregister.md) > [registerStyle](./foundation-shell.appregister.registerstyle.md)
|
|
4
|
-
|
|
5
|
-
## AppRegister.registerStyle() method
|
|
6
|
-
|
|
7
|
-
API for developers to register [AppStyles](./foundation-shell.appstyle.md) lazily.
|
|
8
|
-
|
|
9
|
-
**Signature:**
|
|
10
|
-
|
|
11
|
-
```typescript
|
|
12
|
-
registerStyle(style: AppStyle): 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
|
-
[AppStyle](./foundation-shell.appstyle.md)
|
|
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
|
-
|
|
55
|
-
## Example
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
```ts
|
|
59
|
-
getApp().registerStyle(someAppStyle);
|
|
60
|
-
```
|
|
61
|
-
|
|
@@ -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) > [AppRegister](./foundation-shell.appregister.md) > [registerStylesTarget](./foundation-shell.appregister.registerstylestarget.md)
|
|
4
|
-
|
|
5
|
-
## AppRegister.registerStylesTarget property
|
|
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: RegisterStylesTarget;
|
|
13
|
-
```
|
|
@@ -1,57 +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) > [AppRegistration](./foundation-shell.appregistration.md)
|
|
4
|
-
|
|
5
|
-
## AppRegistration type
|
|
6
|
-
|
|
7
|
-
**Signature:**
|
|
8
|
-
|
|
9
|
-
```typescript
|
|
10
|
-
export type AppRegistration = (context: AppRegistrationContext) => void;
|
|
11
|
-
```
|
|
12
|
-
**References:** [AppRegistrationContext](./foundation-shell.appregistrationcontext.md)
|
|
13
|
-
|
|
14
|
-
## Example 1
|
|
15
|
-
|
|
16
|
-
Simple registration function to include a component and avoid it being tree-shaken out of the build.
|
|
17
|
-
|
|
18
|
-
```ts
|
|
19
|
-
// src/pbc/notify/registrations.ts
|
|
20
|
-
|
|
21
|
-
export function registerAlerts() {
|
|
22
|
-
FoundationAlerts;
|
|
23
|
-
}
|
|
24
|
-
```
|
|
25
|
-
|
|
26
|
-
## Example 2
|
|
27
|
-
|
|
28
|
-
Combined registration function.
|
|
29
|
-
|
|
30
|
-
```ts
|
|
31
|
-
// src/pbc/notify/registrations.ts
|
|
32
|
-
|
|
33
|
-
export function register() {
|
|
34
|
-
FoundationAlerts;
|
|
35
|
-
FoundationInbox;
|
|
36
|
-
...
|
|
37
|
-
}
|
|
38
|
-
```
|
|
39
|
-
|
|
40
|
-
## Example 3
|
|
41
|
-
|
|
42
|
-
Using the host application's registration context to register with the design system and import from it if needed.
|
|
43
|
-
|
|
44
|
-
```ts
|
|
45
|
-
// src/pbc/notify/registrations.ts
|
|
46
|
-
|
|
47
|
-
export async function registerAlerts(context: AppRegistrationContext) {
|
|
48
|
-
try {
|
|
49
|
-
const { provideDesignSystem, tokenX } = context.designSystem;
|
|
50
|
-
provideDesignSystem().register(foundationAlerts, tokenX);
|
|
51
|
-
} catch (e) {
|
|
52
|
-
console.error('Error registering alerts', e);
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
```
|
|
56
|
-
When defining `AppRegistration` functions in a PBC context, consider defining separate register functions if various subcomponents may be conditionally included based on user preferences or runtime predicates.
|
|
57
|
-
|
|
@@ -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) > [AppRegistrationContext](./foundation-shell.appregistrationcontext.md)
|
|
4
|
-
|
|
5
|
-
## AppRegistrationContext type
|
|
6
|
-
|
|
7
|
-
Context used during component registration.
|
|
8
|
-
|
|
9
|
-
**Signature:**
|
|
10
|
-
|
|
11
|
-
```typescript
|
|
12
|
-
export type AppRegistrationContext = {
|
|
13
|
-
designSystem: DesignSystemModule;
|
|
14
|
-
};
|
|
15
|
-
```
|
|
@@ -1,49 +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) > [AppRoute](./foundation-shell.approute.md)
|
|
4
|
-
|
|
5
|
-
## AppRoute type
|
|
6
|
-
|
|
7
|
-
**Signature:**
|
|
8
|
-
|
|
9
|
-
```typescript
|
|
10
|
-
export type AppRoute = FoundationRoute & HasTitle & HasElement & HasPredicate;
|
|
11
|
-
```
|
|
12
|
-
**References:** [HasPredicate](./foundation-shell.haspredicate.md)
|
|
13
|
-
|
|
14
|
-
## Example 1
|
|
15
|
-
|
|
16
|
-
AppRoute definition example.
|
|
17
|
-
|
|
18
|
-
```ts
|
|
19
|
-
export const reporting: AppRoute = {
|
|
20
|
-
title: 'Reporting',
|
|
21
|
-
path: 'reporting',
|
|
22
|
-
name: 'reporting',
|
|
23
|
-
element: async () => (await import('@genesislcap/pbc-reporting')).Reporting,
|
|
24
|
-
navItems: [
|
|
25
|
-
{
|
|
26
|
-
navId: 'header',
|
|
27
|
-
title: 'Reporting',
|
|
28
|
-
icon: {
|
|
29
|
-
name: 'file-csv',
|
|
30
|
-
variant: 'solid',
|
|
31
|
-
},
|
|
32
|
-
placementIndex: 15,
|
|
33
|
-
},
|
|
34
|
-
],
|
|
35
|
-
};
|
|
36
|
-
```
|
|
37
|
-
|
|
38
|
-
## Example 2
|
|
39
|
-
|
|
40
|
-
Optional runtime [AssetPredicate](./foundation-shell.assetpredicate.md) function to determine if the asset should be used.
|
|
41
|
-
|
|
42
|
-
```ts
|
|
43
|
-
export const reportingAdmin: AppRoute = {
|
|
44
|
-
path: 'reporting-admin',
|
|
45
|
-
predicate: (context: AppContext) => context.user.isAdmin(),
|
|
46
|
-
...
|
|
47
|
-
}
|
|
48
|
-
```
|
|
49
|
-
|
|
@@ -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) > [AppRoutePredicate](./foundation-shell.approutepredicate.md)
|
|
4
|
-
|
|
5
|
-
## AppRoutePredicate type
|
|
6
|
-
|
|
7
|
-
Determine if the [AppRoute](./foundation-shell.approute.md) should be integrated.
|
|
8
|
-
|
|
9
|
-
Provides app, micro frontend, and seed author fine-grained control over what assets they will accept in their target integration points.
|
|
10
|
-
|
|
11
|
-
**Signature:**
|
|
12
|
-
|
|
13
|
-
```typescript
|
|
14
|
-
export type AppRoutePredicate = (route: AppRoute, context?: AppContext) => boolean;
|
|
15
|
-
```
|
|
16
|
-
**References:** [AppRoute](./foundation-shell.approute.md)<!-- -->, [AppContext](./foundation-shell.appcontext.md)
|
|
17
|
-
|
|
@@ -1,45 +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) > [AppStore](./foundation-shell.appstore.md)
|
|
4
|
-
|
|
5
|
-
## AppStore type
|
|
6
|
-
|
|
7
|
-
**Signature:**
|
|
8
|
-
|
|
9
|
-
```typescript
|
|
10
|
-
export type AppStore<S = any> = HasPredicate & {
|
|
11
|
-
store: S;
|
|
12
|
-
};
|
|
13
|
-
```
|
|
14
|
-
**References:** [HasPredicate](./foundation-shell.haspredicate.md)
|
|
15
|
-
|
|
16
|
-
## Example 1
|
|
17
|
-
|
|
18
|
-
AppStore definition example.
|
|
19
|
-
|
|
20
|
-
```ts
|
|
21
|
-
// src/pbc/notify/stores.ts
|
|
22
|
-
|
|
23
|
-
// Setup the foundation stores your PBC needs to function, then include the following for each:
|
|
24
|
-
|
|
25
|
-
export function getNotifyStore(): NotifyStore {
|
|
26
|
-
return DI.getOrCreateDOMContainer().get(NotifyStore) as NotifyStore;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
// The actual `AppStore` definition
|
|
30
|
-
export const notifyAppStore: AppStore<NotifyStore> = {
|
|
31
|
-
store: getNotifyStore(),
|
|
32
|
-
};
|
|
33
|
-
```
|
|
34
|
-
|
|
35
|
-
## Example 2
|
|
36
|
-
|
|
37
|
-
Optional runtime [AssetPredicate](./foundation-shell.assetpredicate.md) function to determine if the asset should be used.
|
|
38
|
-
|
|
39
|
-
```ts
|
|
40
|
-
export const notifyAppStore: AppStore<NotifyStore> = {
|
|
41
|
-
store: getNotifyStore(),
|
|
42
|
-
predicate: (context: AppContext) => true, // < assess the user, permissions, env, domain, etc.
|
|
43
|
-
};
|
|
44
|
-
```
|
|
45
|
-
|
|
@@ -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) > [AppStorePredicate](./foundation-shell.appstorepredicate.md)
|
|
4
|
-
|
|
5
|
-
## AppStorePredicate type
|
|
6
|
-
|
|
7
|
-
Determine if [AppStore](./foundation-shell.appstore.md) should be included during runtime integration.
|
|
8
|
-
|
|
9
|
-
Provides app, micro frontend, and seed author fine-grained control over what assets they will accept in their target integration points.
|
|
10
|
-
|
|
11
|
-
**Signature:**
|
|
12
|
-
|
|
13
|
-
```typescript
|
|
14
|
-
export type AppStorePredicate = (store: AppStore, context?: AppContext) => boolean;
|
|
15
|
-
```
|
|
16
|
-
**References:** [AppStore](./foundation-shell.appstore.md)<!-- -->, [AppContext](./foundation-shell.appcontext.md)
|
|
17
|
-
|
|
@@ -1,48 +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) > [AppStyle](./foundation-shell.appstyle.md)
|
|
4
|
-
|
|
5
|
-
## AppStyle type
|
|
6
|
-
|
|
7
|
-
**Signature:**
|
|
8
|
-
|
|
9
|
-
```typescript
|
|
10
|
-
export type AppStyle<T = string> = HasTarget<T> & HasPredicate & {
|
|
11
|
-
styles: ComposableStyles | ComposableStyles[];
|
|
12
|
-
};
|
|
13
|
-
```
|
|
14
|
-
**References:** [HasTarget](./foundation-shell.hastarget.md)<!-- -->, [HasPredicate](./foundation-shell.haspredicate.md)
|
|
15
|
-
|
|
16
|
-
## Example 1
|
|
17
|
-
|
|
18
|
-
AppStyle definition example.
|
|
19
|
-
|
|
20
|
-
```ts
|
|
21
|
-
export const alerts: AppStyle = {
|
|
22
|
-
targetId: 'layout',
|
|
23
|
-
styles: css`
|
|
24
|
-
foundation-alerts {
|
|
25
|
-
--design-unit: 2.5;
|
|
26
|
-
--stroke-width: 1;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
foundation-alerts::part(filter-button) {
|
|
30
|
-
--design-unit: 4;
|
|
31
|
-
}
|
|
32
|
-
`,
|
|
33
|
-
};
|
|
34
|
-
```
|
|
35
|
-
|
|
36
|
-
## Example 2
|
|
37
|
-
|
|
38
|
-
Optional runtime [AssetPredicate](./foundation-shell.assetpredicate.md) function to determine if the asset should be used.
|
|
39
|
-
|
|
40
|
-
```ts
|
|
41
|
-
export const alerts: AppStyle = {
|
|
42
|
-
targetId: 'layout',
|
|
43
|
-
predicate: (context: AppContext) => context.user.isAdmin(),
|
|
44
|
-
styles: css``,
|
|
45
|
-
...
|
|
46
|
-
}
|
|
47
|
-
```
|
|
48
|
-
|
|
@@ -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) > [AppStylePredicate](./foundation-shell.appstylepredicate.md)
|
|
4
|
-
|
|
5
|
-
## AppStylePredicate type
|
|
6
|
-
|
|
7
|
-
Determine if [AppStyle](./foundation-shell.appstyle.md) should be included during runtime integration.
|
|
8
|
-
|
|
9
|
-
Provides app, micro frontend, and seed author fine-grained control over what assets they will accept in their target integration points.
|
|
10
|
-
|
|
11
|
-
**Signature:**
|
|
12
|
-
|
|
13
|
-
```typescript
|
|
14
|
-
export type AppStylePredicate = (style: AppStyle, context?: AppContext) => boolean;
|
|
15
|
-
```
|
|
16
|
-
**References:** [AppStyle](./foundation-shell.appstyle.md)<!-- -->, [AppContext](./foundation-shell.appcontext.md)
|
|
17
|
-
|
|
@@ -1,43 +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) > [AppTargetId](./foundation-shell.apptargetid.md)
|
|
4
|
-
|
|
5
|
-
## AppTargetId type
|
|
6
|
-
|
|
7
|
-
A targetId string or an array of targetId strings.
|
|
8
|
-
|
|
9
|
-
Apps and micro frontends will predefine integration targets that dynamic app assets can target using a `targetId` property. This creates a pull-like effect where the host can live reload itself should any matching asset be lazily added, removed, or customised.
|
|
10
|
-
|
|
11
|
-
**Signature:**
|
|
12
|
-
|
|
13
|
-
```typescript
|
|
14
|
-
export type AppTargetId<TTarget = string> = TTarget | TTarget[];
|
|
15
|
-
```
|
|
16
|
-
|
|
17
|
-
## Example
|
|
18
|
-
|
|
19
|
-
Foundation-header example.
|
|
20
|
-
|
|
21
|
-
```ts
|
|
22
|
-
// src/main/targetId.ts
|
|
23
|
-
|
|
24
|
-
export type NavTargetId = 'nav-start' | 'nav' | 'nav-end';
|
|
25
|
-
export type SideNavTargetId = 'side-nav-start' | 'side-nav' | 'side-nav-end';
|
|
26
|
-
export type ElementTargetId = HeaderTargetId | NavTargetId | SideNavTargetId;
|
|
27
|
-
export type StyleTargetId = 'header';
|
|
28
|
-
|
|
29
|
-
// src/main/main.template.ts
|
|
30
|
-
|
|
31
|
-
export const NavTemplate = html<Navigation>`
|
|
32
|
-
...
|
|
33
|
-
${app.registerElementsTarget<NavTargetId>('nav-start')}
|
|
34
|
-
...
|
|
35
|
-
`
|
|
36
|
-
|
|
37
|
-
// src/main/main.styles.ts
|
|
38
|
-
|
|
39
|
-
export const MainStyles = css`
|
|
40
|
-
...
|
|
41
|
-
`.withBehaviors(getApp().registerStylesTarget<StyleTargetId>('header'));
|
|
42
|
-
```
|
|
43
|
-
|
|
@@ -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) > [AppTokenTypePredicate](./foundation-shell.apptokentypepredicate.md)
|
|
4
|
-
|
|
5
|
-
## AppTokenTypePredicate type
|
|
6
|
-
|
|
7
|
-
Determine if export token should be included in the import all glob.
|
|
8
|
-
|
|
9
|
-
**Signature:**
|
|
10
|
-
|
|
11
|
-
```typescript
|
|
12
|
-
export type AppTokenTypePredicate = (token: unknown) => boolean;
|
|
13
|
-
```
|
|
@@ -1,56 +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) > [AppValidity](./foundation-shell.appvalidity.md) > [isValid](./foundation-shell.appvalidity.isvalid.md)
|
|
4
|
-
|
|
5
|
-
## AppValidity.isValid() method
|
|
6
|
-
|
|
7
|
-
Monitors metadata and other data points as assets are registered and deregistered for app validity.
|
|
8
|
-
|
|
9
|
-
**Signature:**
|
|
10
|
-
|
|
11
|
-
```typescript
|
|
12
|
-
isValid(context: AppValidityContext): boolean;
|
|
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
|
-
context
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
</td><td>
|
|
39
|
-
|
|
40
|
-
[AppValidityContext](./foundation-shell.appvaliditycontext.md)
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
</td><td>
|
|
44
|
-
|
|
45
|
-
[AppValidityContext](./foundation-shell.appvaliditycontext.md)<!-- -->.
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
</td></tr>
|
|
49
|
-
</tbody></table>
|
|
50
|
-
|
|
51
|
-
**Returns:**
|
|
52
|
-
|
|
53
|
-
boolean
|
|
54
|
-
|
|
55
|
-
A boolean to indicate app validity.
|
|
56
|
-
|
|
@@ -1,40 +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) > [AppValidity](./foundation-shell.appvalidity.md)
|
|
4
|
-
|
|
5
|
-
## AppValidity interface
|
|
6
|
-
|
|
7
|
-
APIs to check app validity.
|
|
8
|
-
|
|
9
|
-
**Signature:**
|
|
10
|
-
|
|
11
|
-
```typescript
|
|
12
|
-
export interface AppValidity
|
|
13
|
-
```
|
|
14
|
-
|
|
15
|
-
## Methods
|
|
16
|
-
|
|
17
|
-
<table><thead><tr><th>
|
|
18
|
-
|
|
19
|
-
Method
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
</th><th>
|
|
23
|
-
|
|
24
|
-
Description
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
</th></tr></thead>
|
|
28
|
-
<tbody><tr><td>
|
|
29
|
-
|
|
30
|
-
[isValid(context)](./foundation-shell.appvalidity.isvalid.md)
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
</td><td>
|
|
34
|
-
|
|
35
|
-
Monitors metadata and other data points as assets are registered and deregistered for app validity.
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
</td></tr>
|
|
39
|
-
</tbody></table>
|
|
40
|
-
|
|
@@ -1,18 +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) > [AppValidityContext](./foundation-shell.appvaliditycontext.md)
|
|
4
|
-
|
|
5
|
-
## AppValidityContext type
|
|
6
|
-
|
|
7
|
-
Context used to assess app validity.
|
|
8
|
-
|
|
9
|
-
**Signature:**
|
|
10
|
-
|
|
11
|
-
```typescript
|
|
12
|
-
export type AppValidityContext = {
|
|
13
|
-
dependencies?: AppDependencies;
|
|
14
|
-
prerequisites?: AppDependencyPrerequisites;
|
|
15
|
-
};
|
|
16
|
-
```
|
|
17
|
-
**References:** [AppDependencies](./foundation-shell.appdependencies.md)<!-- -->, [AppDependencyPrerequisites](./foundation-shell.appdependencyprerequisites.md)
|
|
18
|
-
|