@emuanalytics/flow-rdf-angular 4.2.0 → 4.3.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/dist/components/proxies.d.ts +206 -50
- package/dist/components/utils.d.ts +13 -1
- package/dist/esm2022/components/proxies.mjs +1444 -412
- package/dist/esm2022/components/utils.mjs +26 -5
- package/dist/esm2022/flow-ui-angular.module.mjs +76 -2
- package/dist/esm2022/reactive-support/flow-signal.mjs +1 -1
- package/dist/fesm2022/flow-rdf-angular.mjs +1355 -407
- package/dist/fesm2022/flow-rdf-angular.mjs.map +1 -1
- package/dist/flow-ui-angular.module.d.ts +61 -1
- package/dist/reactive-support/flow-signal.d.ts +1 -1
- package/package.json +10 -5
|
@@ -1,14 +1,74 @@
|
|
|
1
|
-
import { InjectionToken, ModuleWithProviders } from '@angular/core';
|
|
1
|
+
import { EnvironmentProviders, InjectionToken, ModuleWithProviders } from '@angular/core';
|
|
2
2
|
import { FlowContext, FlowContextOptions } from '@emuanalytics/flow-rdf-core';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
import * as i1 from "@angular/common";
|
|
5
5
|
import * as i2 from "./modals/modal-container/modal-container.component";
|
|
6
6
|
export declare const FLOW_RDF_ANGULAR_CONFIG: InjectionToken<FlowContextOptions<import("@emuanalytics/flow-rdf-core").StateStore>>;
|
|
7
7
|
export declare const FLOW_CONTEXT: InjectionToken<FlowContext<import("@emuanalytics/flow-rdf-core").StateStore>>;
|
|
8
|
+
/**
|
|
9
|
+
* Initializes Flo.w RDF UI, registers every Flo.w RDF UI component and creates the default Flo.w context. This is the
|
|
10
|
+
* `FLOW_CONTEXT` factory that {@link FlowRdfAngularModule.forRoot} provides.
|
|
11
|
+
*
|
|
12
|
+
* @param config - Options for the default Flo.w context.
|
|
13
|
+
* @returns The default Flo.w context.
|
|
14
|
+
*/
|
|
8
15
|
export declare function initializeFlowContext(config: FlowContextOptions): FlowContext<import("@emuanalytics/flow-rdf-core").StateStore>;
|
|
16
|
+
/**
|
|
17
|
+
* The Flo.w RDF Angular module provides the default Flo.w context and registers every Flo.w RDF UI component.
|
|
18
|
+
*
|
|
19
|
+
* Add `FlowRdfAngularModule.forRoot()` to the root providers of the application. To bundle and register only the
|
|
20
|
+
* components that the application uses, use {@link provideFlowRdf} instead.
|
|
21
|
+
*/
|
|
9
22
|
export declare class FlowRdfAngularModule {
|
|
23
|
+
/**
|
|
24
|
+
* Returns the providers for the default Flo.w context (`FLOW_CONTEXT`), which is created from the
|
|
25
|
+
* `FLOW_RDF_ANGULAR_CONFIG` options. When the context is first injected, Flo.w RDF UI will be initialized and every
|
|
26
|
+
* Flo.w RDF UI component will be registered.
|
|
27
|
+
*
|
|
28
|
+
* Every component is bundled with the application, whether the application uses it or not. Use
|
|
29
|
+
* {@link provideFlowRdf} to bundle only the components that the application uses.
|
|
30
|
+
*
|
|
31
|
+
* @example
|
|
32
|
+
* Provide the default Flo.w context and register every component:
|
|
33
|
+
* ```ts
|
|
34
|
+
* bootstrapApplication(AppComponent, {
|
|
35
|
+
* providers: [
|
|
36
|
+
* { provide: FLOW_RDF_ANGULAR_CONFIG, useValue: { host, apiKey, state } },
|
|
37
|
+
* importProvidersFrom(FlowRdfAngularModule.forRoot())
|
|
38
|
+
* ]
|
|
39
|
+
* });
|
|
40
|
+
* ```
|
|
41
|
+
*/
|
|
10
42
|
static forRoot(): ModuleWithProviders<FlowRdfAngularModule>;
|
|
11
43
|
static ɵfac: i0.ɵɵFactoryDeclaration<FlowRdfAngularModule, never>;
|
|
12
44
|
static ɵmod: i0.ɵɵNgModuleDeclaration<FlowRdfAngularModule, never, [typeof i1.CommonModule, typeof i2.ModalContainerComponent], [typeof i2.ModalContainerComponent]>;
|
|
13
45
|
static ɵinj: i0.ɵɵInjectorDeclaration<FlowRdfAngularModule>;
|
|
14
46
|
}
|
|
47
|
+
/**
|
|
48
|
+
* Returns the providers for the default Flo.w context (`FLOW_CONTEXT`), which is created from the
|
|
49
|
+
* `FLOW_RDF_ANGULAR_CONFIG` options, without registering every Flo.w RDF UI component. When the context is first
|
|
50
|
+
* injected, Flo.w RDF UI will be initialized.
|
|
51
|
+
*
|
|
52
|
+
* Use this instead of `FlowRdfAngularModule.forRoot()` to bundle and register only the components that the application
|
|
53
|
+
* uses. Each component proxy, such as `FlowButton`, registers its element and the Flo.w RDF UI elements that element
|
|
54
|
+
* renders when the proxy is first used, in development and production builds alike. Import the proxy of every `flow-ui-*` element in the components whose templates use it. Register elements
|
|
55
|
+
* that are used without a proxy with their `define()` method, for example `FlowUiAlert.define()`. This
|
|
56
|
+
* applies to elements created in code or from HTML strings, and to elements in templates that use
|
|
57
|
+
* `CUSTOM_ELEMENTS_SCHEMA`.
|
|
58
|
+
*
|
|
59
|
+
* :::warning
|
|
60
|
+
* Do not import `FlowRdfAngularModule` anywhere in an application that uses this function, because the module bundles
|
|
61
|
+
* every component. Import the standalone `ModalContainerComponent` directly instead.
|
|
62
|
+
* :::
|
|
63
|
+
*
|
|
64
|
+
* @example
|
|
65
|
+
* Provide the default Flo.w context and register only the components that the application uses:
|
|
66
|
+
* ```ts
|
|
67
|
+
* bootstrapApplication(AppComponent, {
|
|
68
|
+
* providers: [{ provide: FLOW_RDF_ANGULAR_CONFIG, useValue: { host, apiKey, state } }, provideFlowRdf()]
|
|
69
|
+
* });
|
|
70
|
+
* ```
|
|
71
|
+
*
|
|
72
|
+
* @returns The providers to add to the root providers of the application.
|
|
73
|
+
*/
|
|
74
|
+
export declare function provideFlowRdf(): EnvironmentProviders;
|
|
@@ -13,7 +13,7 @@ export interface FlowSignalOptions<T> {
|
|
|
13
13
|
* `Injector` which will provide the `DestroyRef` used to clean up the toStream subscription.
|
|
14
14
|
*
|
|
15
15
|
* If this is not provided, a `DestroyRef` will be retrieved from the current [injection
|
|
16
|
-
* context](guide/di/dependency-injection-context), unless manual cleanup is requested.
|
|
16
|
+
* context](https://angular.dev/guide/di/dependency-injection-context), unless manual cleanup is requested.
|
|
17
17
|
*/
|
|
18
18
|
injector?: Injector;
|
|
19
19
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@emuanalytics/flow-rdf-angular",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.3.0",
|
|
4
4
|
"files": [
|
|
5
5
|
"dist/"
|
|
6
6
|
],
|
|
@@ -25,14 +25,17 @@
|
|
|
25
25
|
"@angular/common": "^18.2.0",
|
|
26
26
|
"@angular/core": "^18.2.0",
|
|
27
27
|
"@angular/forms": "^18.2.0",
|
|
28
|
-
"@emuanalytics/flow-rdf-ui": "^4.
|
|
29
|
-
"@emuanalytics/flow-rdf-core": "^4.1.
|
|
28
|
+
"@emuanalytics/flow-rdf-ui": "^4.3.0",
|
|
29
|
+
"@emuanalytics/flow-rdf-core": "^4.1.6",
|
|
30
30
|
"rxjs": "~7.8.0"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"@angular-devkit/build-angular": "^18.2.7",
|
|
34
34
|
"@angular/cli": "^18.2.5",
|
|
35
|
+
"@angular/compiler": "^18.2.0",
|
|
35
36
|
"@angular/compiler-cli": "^18.2.0",
|
|
37
|
+
"@angular/platform-browser": "^18.2.0",
|
|
38
|
+
"@angular/platform-browser-dynamic": "^18.2.0",
|
|
36
39
|
"@types/jasmine": "~5.1.0",
|
|
37
40
|
"jasmine-core": "~5.2.0",
|
|
38
41
|
"karma": "~6.4.0",
|
|
@@ -46,8 +49,9 @@
|
|
|
46
49
|
"typedoc": "^0.26.8",
|
|
47
50
|
"typedoc-plugin-markdown": "^4.2.9",
|
|
48
51
|
"typedoc-vitepress-theme": "^1.0.2",
|
|
49
|
-
"
|
|
50
|
-
"@emuanalytics/flow-rdf-ui": "4.
|
|
52
|
+
"zone.js": "~0.14.10",
|
|
53
|
+
"@emuanalytics/flow-rdf-ui": "4.3.0",
|
|
54
|
+
"@emuanalytics/flow-rdf-core": "4.1.6"
|
|
51
55
|
},
|
|
52
56
|
"scripts": {
|
|
53
57
|
"ng": "ng",
|
|
@@ -56,6 +60,7 @@
|
|
|
56
60
|
"build:docs": "typedoc",
|
|
57
61
|
"watch": "ng build --watch --configuration development",
|
|
58
62
|
"test": "ng test",
|
|
63
|
+
"check:tree-shaking": "node ./scripts/check-tree-shaking.mjs",
|
|
59
64
|
"fixup-package": "tsx ./scripts/fixup-package",
|
|
60
65
|
"rm-package": "rimraf dist/package.json"
|
|
61
66
|
}
|