@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,33 +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) > [RegisterStoreRoot](./foundation-shell.registerstoreroot.md)
|
|
4
|
-
|
|
5
|
-
## RegisterStoreRoot type
|
|
6
|
-
|
|
7
|
-
API for Application and Seed authors to register the .
|
|
8
|
-
|
|
9
|
-
**Signature:**
|
|
10
|
-
|
|
11
|
-
```typescript
|
|
12
|
-
export type RegisterStoreRoot = (storeRoot: StoreRoot, predicate?: AppStorePredicate) => (source: unknown) => void;
|
|
13
|
-
```
|
|
14
|
-
**References:** [AppStorePredicate](./foundation-shell.appstorepredicate.md)
|
|
15
|
-
|
|
16
|
-
## Example
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
```ts
|
|
20
|
-
// src/store/store.ts
|
|
21
|
-
|
|
22
|
-
class DefaultStore extends AbstractStoreRoot<Store, StoreEventDetailMap> implements Store {
|
|
23
|
-
...
|
|
24
|
-
constructor() {
|
|
25
|
-
super();
|
|
26
|
-
|
|
27
|
-
// Register the store root
|
|
28
|
-
getApp().registerStoreRoot(this);
|
|
29
|
-
}
|
|
30
|
-
...
|
|
31
|
-
}
|
|
32
|
-
```
|
|
33
|
-
|
|
@@ -1,27 +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) > [RegisterStylesTarget](./foundation-shell.registerstylestarget.md)
|
|
4
|
-
|
|
5
|
-
## RegisterStylesTarget type
|
|
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
|
-
export type RegisterStylesTarget = <T = string>(targetId: AppTargetId<T>, predicate?: AppStylePredicate) => Behavior;
|
|
13
|
-
```
|
|
14
|
-
**References:** [AppTargetId](./foundation-shell.apptargetid.md)<!-- -->, [AppStylePredicate](./foundation-shell.appstylepredicate.md)
|
|
15
|
-
|
|
16
|
-
## Example
|
|
17
|
-
|
|
18
|
-
Register styles targets as a on a definition.
|
|
19
|
-
|
|
20
|
-
```ts
|
|
21
|
-
export const MainStyles = css`
|
|
22
|
-
:host {
|
|
23
|
-
contain: content;
|
|
24
|
-
}
|
|
25
|
-
`.withBehaviors(getApp().registerStylesTarget('main'));
|
|
26
|
-
```
|
|
27
|
-
|
|
@@ -1,79 +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) > [registrationPredicate](./foundation-shell.registrationpredicate.md)
|
|
4
|
-
|
|
5
|
-
## registrationPredicate() function
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
**Signature:**
|
|
9
|
-
|
|
10
|
-
```typescript
|
|
11
|
-
registrationPredicate: <A, P>(asset: A, predicate: P, context: AppContext) => boolean
|
|
12
|
-
```
|
|
13
|
-
|
|
14
|
-
## Parameters
|
|
15
|
-
|
|
16
|
-
<table><thead><tr><th>
|
|
17
|
-
|
|
18
|
-
Parameter
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
</th><th>
|
|
22
|
-
|
|
23
|
-
Type
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
</th><th>
|
|
27
|
-
|
|
28
|
-
Description
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
</th></tr></thead>
|
|
32
|
-
<tbody><tr><td>
|
|
33
|
-
|
|
34
|
-
asset
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
</td><td>
|
|
38
|
-
|
|
39
|
-
A
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
</td><td>
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
</td></tr>
|
|
46
|
-
<tr><td>
|
|
47
|
-
|
|
48
|
-
predicate
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
</td><td>
|
|
52
|
-
|
|
53
|
-
P
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
</td><td>
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
</td></tr>
|
|
60
|
-
<tr><td>
|
|
61
|
-
|
|
62
|
-
context
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
</td><td>
|
|
66
|
-
|
|
67
|
-
[AppContext](./foundation-shell.appcontext.md)
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
</td><td>
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
</td></tr>
|
|
74
|
-
</tbody></table>
|
|
75
|
-
|
|
76
|
-
**Returns:**
|
|
77
|
-
|
|
78
|
-
boolean
|
|
79
|
-
|
|
@@ -1,65 +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) > [targetIdPredicate](./foundation-shell.targetidpredicate.md)
|
|
4
|
-
|
|
5
|
-
## targetIdPredicate() function
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
**Signature:**
|
|
9
|
-
|
|
10
|
-
```typescript
|
|
11
|
-
targetIdPredicate: (asset: HasTarget, targetId: AppTargetId) => boolean
|
|
12
|
-
```
|
|
13
|
-
|
|
14
|
-
## Parameters
|
|
15
|
-
|
|
16
|
-
<table><thead><tr><th>
|
|
17
|
-
|
|
18
|
-
Parameter
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
</th><th>
|
|
22
|
-
|
|
23
|
-
Type
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
</th><th>
|
|
27
|
-
|
|
28
|
-
Description
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
</th></tr></thead>
|
|
32
|
-
<tbody><tr><td>
|
|
33
|
-
|
|
34
|
-
asset
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
</td><td>
|
|
38
|
-
|
|
39
|
-
[HasTarget](./foundation-shell.hastarget.md)
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
</td><td>
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
</td></tr>
|
|
46
|
-
<tr><td>
|
|
47
|
-
|
|
48
|
-
targetId
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
</td><td>
|
|
52
|
-
|
|
53
|
-
[AppTargetId](./foundation-shell.apptargetid.md)
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
</td><td>
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
</td></tr>
|
|
60
|
-
</tbody></table>
|
|
61
|
-
|
|
62
|
-
**Returns:**
|
|
63
|
-
|
|
64
|
-
boolean
|
|
65
|
-
|
package/docs/api/index.md
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md)
|
|
4
|
-
|
|
5
|
-
## API Reference
|
|
6
|
-
|
|
7
|
-
## Packages
|
|
8
|
-
|
|
9
|
-
<table><thead><tr><th>
|
|
10
|
-
|
|
11
|
-
Package
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
</th><th>
|
|
15
|
-
|
|
16
|
-
Description
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
</th></tr></thead>
|
|
20
|
-
<tbody><tr><td>
|
|
21
|
-
|
|
22
|
-
[@genesislcap/foundation-shell](./foundation-shell.md)
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
</td><td>
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
</td></tr>
|
|
29
|
-
</tbody></table>
|
|
30
|
-
|
|
@@ -1,296 +0,0 @@
|
|
|
1
|
-
## API Report File for "@genesislcap/foundation-shell"
|
|
2
|
-
|
|
3
|
-
> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
|
|
4
|
-
|
|
5
|
-
```ts
|
|
6
|
-
|
|
7
|
-
import { Behavior } from '@genesislcap/web-core';
|
|
8
|
-
import { ComposableStyles } from '@genesislcap/web-core';
|
|
9
|
-
import type { DesignSystemModule } from '@genesislcap/foundation-utils';
|
|
10
|
-
import { ElementStyles } from '@genesislcap/web-core';
|
|
11
|
-
import { FASTElement } from '@genesislcap/web-core';
|
|
12
|
-
import type { FoundationAppContext } from '@genesislcap/foundation-ui';
|
|
13
|
-
import type { FoundationRoute } from '@genesislcap/foundation-ui';
|
|
14
|
-
import type { FoundationRouteCollection } from '@genesislcap/foundation-ui';
|
|
15
|
-
import type { HasElement } from '@genesislcap/web-core';
|
|
16
|
-
import type { HasTitle } from '@genesislcap/web-core';
|
|
17
|
-
import { InterfaceSymbol } from '@microsoft/fast-foundation';
|
|
18
|
-
import { Logger } from '@genesislcap/foundation-logger';
|
|
19
|
-
import { RepeatOptions } from '@genesislcap/web-core';
|
|
20
|
-
import { RepeatOptions as RepeatOptions_2 } from '@microsoft/fast-element';
|
|
21
|
-
import type { StoreRoot } from '@genesislcap/foundation-store';
|
|
22
|
-
import { ViewTemplate } from '@microsoft/fast-element';
|
|
23
|
-
import { ViewTemplate as ViewTemplate_2 } from '@genesislcap/web-core';
|
|
24
|
-
|
|
25
|
-
// Warning: (ae-internal-mixed-release-tag) Mixed release tags are not allowed for "App" because one of its declarations is marked as @internal
|
|
26
|
-
//
|
|
27
|
-
// @public
|
|
28
|
-
export interface App extends AppAssets, AppRegister, AppValidity {
|
|
29
|
-
readonly config: AppConfig;
|
|
30
|
-
deregisterAssets(): void;
|
|
31
|
-
hasAssets(): boolean;
|
|
32
|
-
registerAssets(assets: Partial<AppAssets>): void;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
// @internal
|
|
36
|
-
export const App: InterfaceSymbol<App>;
|
|
37
|
-
|
|
38
|
-
// @public
|
|
39
|
-
export interface AppAssets {
|
|
40
|
-
readonly elements: AppElement[];
|
|
41
|
-
readonly metadata: AppMetadata[];
|
|
42
|
-
readonly registrations: AppRegistration[];
|
|
43
|
-
readonly routes: AppRoute[];
|
|
44
|
-
readonly stores: AppStore[];
|
|
45
|
-
readonly styles: AppStyle[];
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
// Warning: (ae-internal-mixed-release-tag) Mixed release tags are not allowed for "AppConfig" because one of its declarations is marked as @internal
|
|
49
|
-
//
|
|
50
|
-
// @public
|
|
51
|
-
export interface AppConfig {
|
|
52
|
-
// (undocumented)
|
|
53
|
-
context?: AppContext;
|
|
54
|
-
// (undocumented)
|
|
55
|
-
defaultElementRepeatOptions?: RepeatOptions;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
// @internal
|
|
59
|
-
export const AppConfig: InterfaceSymbol<AppConfig>;
|
|
60
|
-
|
|
61
|
-
// @public
|
|
62
|
-
export type AppContext = FoundationAppContext;
|
|
63
|
-
|
|
64
|
-
// @public
|
|
65
|
-
export type AppDependencies = {
|
|
66
|
-
[key: string]: string;
|
|
67
|
-
};
|
|
68
|
-
|
|
69
|
-
// @public
|
|
70
|
-
export type AppDependencyPrerequisites = {
|
|
71
|
-
[key: string]: string;
|
|
72
|
-
};
|
|
73
|
-
|
|
74
|
-
// @public (undocumented)
|
|
75
|
-
export type AppElement<TSource = any, TParent = any, TTarget = string> = HasTarget<TTarget> & HasPredicate & {
|
|
76
|
-
elements: ViewTemplate_2<TSource, TParent>;
|
|
77
|
-
placementIndex?: number;
|
|
78
|
-
slotId?: string;
|
|
79
|
-
[key: string]: any;
|
|
80
|
-
};
|
|
81
|
-
|
|
82
|
-
// @public
|
|
83
|
-
export type AppElementPredicate = (element: AppElement, context?: AppContext) => boolean;
|
|
84
|
-
|
|
85
|
-
// @public (undocumented)
|
|
86
|
-
export type AppMetadata = {
|
|
87
|
-
name: string;
|
|
88
|
-
version: string;
|
|
89
|
-
description?: string;
|
|
90
|
-
dependencies?: AppDependencies;
|
|
91
|
-
prerequisites?: AppDependencyPrerequisites;
|
|
92
|
-
};
|
|
93
|
-
|
|
94
|
-
// @public
|
|
95
|
-
export interface AppRegister {
|
|
96
|
-
deregisterElement(element: AppElement): void;
|
|
97
|
-
deregisterRoute(route: AppRoute): void;
|
|
98
|
-
deregisterStore(store: AppStore): void;
|
|
99
|
-
deregisterStyle(style: AppStyle): void;
|
|
100
|
-
registerComponents: RegisterComponents;
|
|
101
|
-
registerElement(element: AppElement): void;
|
|
102
|
-
registerElementsTarget: RegisterElementsTarget;
|
|
103
|
-
registerRoute(route: AppRoute): void;
|
|
104
|
-
registerRouteCollection: RegisterRouteCollection;
|
|
105
|
-
registerStore(store: AppStore): void;
|
|
106
|
-
registerStoreRoot: RegisterStoreRoot;
|
|
107
|
-
registerStyle(style: AppStyle): void;
|
|
108
|
-
registerStylesTarget: RegisterStylesTarget;
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
// @public (undocumented)
|
|
112
|
-
export type AppRegistration = (context: AppRegistrationContext) => void;
|
|
113
|
-
|
|
114
|
-
// @public
|
|
115
|
-
export type AppRegistrationContext = {
|
|
116
|
-
designSystem: DesignSystemModule;
|
|
117
|
-
};
|
|
118
|
-
|
|
119
|
-
// @public (undocumented)
|
|
120
|
-
export type AppRoute = FoundationRoute & HasTitle & HasElement & HasPredicate;
|
|
121
|
-
|
|
122
|
-
// @public
|
|
123
|
-
export type AppRoutePredicate = (route: AppRoute, context?: AppContext) => boolean;
|
|
124
|
-
|
|
125
|
-
// @public (undocumented)
|
|
126
|
-
export type AppStore<S = any> = HasPredicate & {
|
|
127
|
-
store: S;
|
|
128
|
-
};
|
|
129
|
-
|
|
130
|
-
// @public
|
|
131
|
-
export type AppStorePredicate = (store: AppStore, context?: AppContext) => boolean;
|
|
132
|
-
|
|
133
|
-
// @public (undocumented)
|
|
134
|
-
export type AppStyle<T = string> = HasTarget<T> & HasPredicate & {
|
|
135
|
-
styles: ComposableStyles | ComposableStyles[];
|
|
136
|
-
};
|
|
137
|
-
|
|
138
|
-
// @public
|
|
139
|
-
export type AppStylePredicate = (style: AppStyle, context?: AppContext) => boolean;
|
|
140
|
-
|
|
141
|
-
// @public
|
|
142
|
-
export type AppTargetId<TTarget = string> = TTarget | TTarget[];
|
|
143
|
-
|
|
144
|
-
// @public
|
|
145
|
-
export type AppTokenTypePredicate = (token: unknown) => boolean;
|
|
146
|
-
|
|
147
|
-
// @public
|
|
148
|
-
export interface AppValidity {
|
|
149
|
-
isValid(context: AppValidityContext): boolean;
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
// @public
|
|
153
|
-
export type AppValidityContext = {
|
|
154
|
-
dependencies?: AppDependencies;
|
|
155
|
-
prerequisites?: AppDependencyPrerequisites;
|
|
156
|
-
};
|
|
157
|
-
|
|
158
|
-
// @public
|
|
159
|
-
export type AssetPredicate = (context?: AppContext) => boolean;
|
|
160
|
-
|
|
161
|
-
// @public (undocumented)
|
|
162
|
-
export const assetPredicate: (asset: HasPredicate, context: AppContext) => boolean;
|
|
163
|
-
|
|
164
|
-
// @public
|
|
165
|
-
export class DefaultApp implements App {
|
|
166
|
-
// Warning: (ae-unresolved-inheritdoc-reference) The @inheritDoc reference could not be resolved: The reference is ambiguous because "App" has more than one declaration; you need to add a TSDoc member reference selector
|
|
167
|
-
//
|
|
168
|
-
// @internal (undocumented)
|
|
169
|
-
config: AppConfig;
|
|
170
|
-
// Warning: (ae-unresolved-inheritdoc-reference) The @inheritDoc reference could not be resolved: The reference is ambiguous because "App" has more than one declaration; you need to add a TSDoc member reference selector
|
|
171
|
-
//
|
|
172
|
-
// (undocumented)
|
|
173
|
-
deregisterAssets(): void;
|
|
174
|
-
deregisterElement(element: any): void;
|
|
175
|
-
deregisterRoute(route: any): void;
|
|
176
|
-
deregisterStore(store: any): void;
|
|
177
|
-
deregisterStyle(style: any): void;
|
|
178
|
-
elements: AppElement[];
|
|
179
|
-
// Warning: (ae-unresolved-inheritdoc-reference) The @inheritDoc reference could not be resolved: The reference is ambiguous because "App" has more than one declaration; you need to add a TSDoc member reference selector
|
|
180
|
-
//
|
|
181
|
-
// (undocumented)
|
|
182
|
-
hasAssets(): boolean;
|
|
183
|
-
isValid(context: any): boolean;
|
|
184
|
-
metadata: AppMetadata[];
|
|
185
|
-
// Warning: (ae-unresolved-inheritdoc-reference) The @inheritDoc reference could not be resolved: The reference is ambiguous because "App" has more than one declaration; you need to add a TSDoc member reference selector
|
|
186
|
-
//
|
|
187
|
-
// (undocumented)
|
|
188
|
-
registerAssets(assets: any): void;
|
|
189
|
-
registerComponents(context: any): void;
|
|
190
|
-
registerElement(element: any): void;
|
|
191
|
-
registerElementsTarget(targetId: any, predicate: any, repeatOptions?: RepeatOptions_2): ViewTemplate<any, any>;
|
|
192
|
-
registerRoute(route: any): void;
|
|
193
|
-
registerRouteCollection(routeCollection: any, predicate: any): () => void;
|
|
194
|
-
registerStore(store: any): void;
|
|
195
|
-
registerStoreRoot(storeRoot: any, predicate: any): () => void;
|
|
196
|
-
registerStyle(style: any): void;
|
|
197
|
-
// Warning: (ae-forgotten-export) The symbol "AppStylesTargetBehavior" needs to be exported by the entry point index.docs.d.ts
|
|
198
|
-
registerStylesTarget(targetId: any, predicate: any): AppStylesTargetBehavior;
|
|
199
|
-
registrations: AppRegistration[];
|
|
200
|
-
routes: AppRoute[];
|
|
201
|
-
stores: AppStore[];
|
|
202
|
-
styles: AppStyle[];
|
|
203
|
-
}
|
|
204
|
-
|
|
205
|
-
// @public
|
|
206
|
-
export const defaultAppConfig: AppConfig;
|
|
207
|
-
|
|
208
|
-
// @public (undocumented)
|
|
209
|
-
export const DynamicTemplate: ViewTemplate<MainApplication, any>;
|
|
210
|
-
|
|
211
|
-
// @public
|
|
212
|
-
export function getApp(): App;
|
|
213
|
-
|
|
214
|
-
// @public (undocumented)
|
|
215
|
-
export const getQualifiedModuleTokens: <T extends any>(module: any, predicate: AppTokenTypePredicate) => T[];
|
|
216
|
-
|
|
217
|
-
// @public
|
|
218
|
-
export type HasPredicate = {
|
|
219
|
-
predicate?: AssetPredicate;
|
|
220
|
-
};
|
|
221
|
-
|
|
222
|
-
// @public
|
|
223
|
-
export type HasTarget<TTarget = string> = {
|
|
224
|
-
targetId: TTarget;
|
|
225
|
-
};
|
|
226
|
-
|
|
227
|
-
// @public
|
|
228
|
-
export function importPBCAssets(): Promise<AppAssets>;
|
|
229
|
-
|
|
230
|
-
// @public (undocumented)
|
|
231
|
-
export function isAppElement(token: unknown): token is AppElement;
|
|
232
|
-
|
|
233
|
-
// @public (undocumented)
|
|
234
|
-
export function isAppMetadata(token: unknown): token is AppMetadata;
|
|
235
|
-
|
|
236
|
-
// @public (undocumented)
|
|
237
|
-
export function isAppRegistration(token: unknown): token is AppRegistration;
|
|
238
|
-
|
|
239
|
-
// @public (undocumented)
|
|
240
|
-
export function isAppRoute(token: unknown): token is AppRoute;
|
|
241
|
-
|
|
242
|
-
// @public (undocumented)
|
|
243
|
-
export function isAppStore(token: unknown): token is AppStore;
|
|
244
|
-
|
|
245
|
-
// @public (undocumented)
|
|
246
|
-
export function isAppStyle(token: unknown): token is AppStyle;
|
|
247
|
-
|
|
248
|
-
// @public (undocumented)
|
|
249
|
-
export function isComposableStyles(token: unknown): token is ComposableStyles;
|
|
250
|
-
|
|
251
|
-
// @public (undocumented)
|
|
252
|
-
export function isViewTemplate(token: unknown): token is ViewTemplate_2;
|
|
253
|
-
|
|
254
|
-
// @public (undocumented)
|
|
255
|
-
export const LoadingTemplate: ViewTemplate<MainApplication, any>;
|
|
256
|
-
|
|
257
|
-
// @public
|
|
258
|
-
export const logger: Logger;
|
|
259
|
-
|
|
260
|
-
// @public (undocumented)
|
|
261
|
-
export class MainApplication extends FASTElement {
|
|
262
|
-
// (undocumented)
|
|
263
|
-
connectedCallback(): void;
|
|
264
|
-
// (undocumented)
|
|
265
|
-
ready: boolean;
|
|
266
|
-
// (undocumented)
|
|
267
|
-
selectTemplate(): ViewTemplate<MainApplication, any>;
|
|
268
|
-
}
|
|
269
|
-
|
|
270
|
-
// @public (undocumented)
|
|
271
|
-
export const MainTemplate: ViewTemplate<MainApplication, any>;
|
|
272
|
-
|
|
273
|
-
// @public
|
|
274
|
-
export type RegisterComponents = AppRegistration;
|
|
275
|
-
|
|
276
|
-
// @public
|
|
277
|
-
export type RegisterElementsTarget = <T = string>(targetId: AppTargetId<T>, predicate?: AppElementPredicate, repeatOptions?: RepeatOptions) => ViewTemplate_2;
|
|
278
|
-
|
|
279
|
-
// @public
|
|
280
|
-
export type RegisterRouteCollection = (routeCollection: FoundationRouteCollection, predicate?: AppRoutePredicate) => (source: unknown) => void;
|
|
281
|
-
|
|
282
|
-
// @public
|
|
283
|
-
export type RegisterStoreRoot = (storeRoot: StoreRoot, predicate?: AppStorePredicate) => (source: unknown) => void;
|
|
284
|
-
|
|
285
|
-
// @public
|
|
286
|
-
export type RegisterStylesTarget = <T = string>(targetId: AppTargetId<T>, predicate?: AppStylePredicate) => Behavior;
|
|
287
|
-
|
|
288
|
-
// @public (undocumented)
|
|
289
|
-
export const registrationPredicate: <A, P>(asset: A, predicate: P, context: AppContext) => boolean;
|
|
290
|
-
|
|
291
|
-
// @public (undocumented)
|
|
292
|
-
export const targetIdPredicate: (asset: HasTarget, targetId: AppTargetId) => boolean;
|
|
293
|
-
|
|
294
|
-
// (No @packageDocumentation comment for this package)
|
|
295
|
-
|
|
296
|
-
```
|