@emuanalytics/flow-rdf-angular 4.3.0 → 5.1.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 (35) hide show
  1. package/README.md +15 -22
  2. package/dist/README.md +15 -19
  3. package/dist/fesm2022/flow-rdf-angular.mjs +8075 -4810
  4. package/dist/fesm2022/flow-rdf-angular.mjs.map +1 -1
  5. package/dist/package.json +24 -0
  6. package/dist/types/flow-rdf-angular.d.ts +3711 -0
  7. package/package.json +32 -32
  8. package/dist/components/index.d.ts +0 -1
  9. package/dist/components/proxies.d.ts +0 -1059
  10. package/dist/components/utils.d.ts +0 -21
  11. package/dist/components/value-accessor.d.ts +0 -32
  12. package/dist/esm2022/components/index.mjs +0 -2
  13. package/dist/esm2022/components/proxies.mjs +0 -4813
  14. package/dist/esm2022/components/utils.mjs +0 -80
  15. package/dist/esm2022/components/value-accessor.mjs +0 -64
  16. package/dist/esm2022/flow-rdf-angular.mjs +0 -5
  17. package/dist/esm2022/flow-ui-angular.module.mjs +0 -113
  18. package/dist/esm2022/modals/index.mjs +0 -4
  19. package/dist/esm2022/modals/modal-container/modal-container.component.mjs +0 -30
  20. package/dist/esm2022/modals/modal-ref.mjs +0 -21
  21. package/dist/esm2022/modals/modal.service.mjs +0 -40
  22. package/dist/esm2022/public-api.mjs +0 -11
  23. package/dist/esm2022/reactive-support/auto-unsubscribe.mjs +0 -14
  24. package/dist/esm2022/reactive-support/flow-signal.mjs +0 -53
  25. package/dist/esm2022/reactive-support/reactive-state.mjs +0 -33
  26. package/dist/flow-ui-angular.module.d.ts +0 -74
  27. package/dist/index.d.ts +0 -5
  28. package/dist/modals/index.d.ts +0 -3
  29. package/dist/modals/modal-container/modal-container.component.d.ts +0 -14
  30. package/dist/modals/modal-ref.d.ts +0 -11
  31. package/dist/modals/modal.service.d.ts +0 -15
  32. package/dist/public-api.d.ts +0 -6
  33. package/dist/reactive-support/auto-unsubscribe.d.ts +0 -3
  34. package/dist/reactive-support/flow-signal.d.ts +0 -36
  35. package/dist/reactive-support/reactive-state.d.ts +0 -13
package/dist/index.d.ts DELETED
@@ -1,5 +0,0 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="flow-rdf-angular" />
5
- export * from './public-api';
@@ -1,3 +0,0 @@
1
- export * from './modal-container/modal-container.component';
2
- export * from './modal-ref';
3
- export * from './modal.service';
@@ -1,14 +0,0 @@
1
- import { OnInit, ViewContainerRef } from '@angular/core';
2
- import { ModalService } from '../modal.service';
3
- import * as i0 from "@angular/core";
4
- /**
5
- * The modal container component is a container for the modal components.
6
- */
7
- export declare class ModalContainerComponent implements OnInit {
8
- private modalService;
9
- viewContainerRef: ViewContainerRef;
10
- constructor(modalService: ModalService);
11
- ngOnInit(): void;
12
- static ɵfac: i0.ɵɵFactoryDeclaration<ModalContainerComponent, never>;
13
- static ɵcmp: i0.ɵɵComponentDeclaration<ModalContainerComponent, "app-modal-container", never, {}, {}, never, never, true, never>;
14
- }
@@ -1,11 +0,0 @@
1
- import { Subject } from 'rxjs';
2
- import { ModalOptions, ModalService } from './modal.service';
3
- export declare class ModalRef<TReturnValue = any> {
4
- modalService: ModalService;
5
- modalOptions: ModalOptions;
6
- private _disposeFn;
7
- closed$: Subject<TReturnValue>;
8
- constructor(modalService: ModalService, modalOptions: ModalOptions);
9
- close(value?: TReturnValue): void;
10
- setDisposeFn(fn: () => void): void;
11
- }
@@ -1,15 +0,0 @@
1
- import { InjectionToken, Type, ViewContainerRef } from '@angular/core';
2
- import { ModalRef } from './modal-ref';
3
- import * as i0 from "@angular/core";
4
- export declare const DIALOG_DATA: InjectionToken<any>;
5
- export interface ModalOptions<TData = unknown> {
6
- data?: TData | null;
7
- }
8
- export declare class ModalService {
9
- private viewContainerRef;
10
- constructor();
11
- registerContainerRef(vcRef: ViewContainerRef): void;
12
- open<T>(component: Type<T>, options?: ModalOptions): ModalRef;
13
- static ɵfac: i0.ɵɵFactoryDeclaration<ModalService, never>;
14
- static ɵprov: i0.ɵɵInjectableDeclaration<ModalService>;
15
- }
@@ -1,6 +0,0 @@
1
- export * from './flow-ui-angular.module';
2
- export * from './components';
3
- export * from './reactive-support/auto-unsubscribe';
4
- export * from './reactive-support/flow-signal';
5
- export * from './reactive-support/reactive-state';
6
- export * from './modals';
@@ -1,3 +0,0 @@
1
- import { ISubscription } from '@emuanalytics/flow-rdf-core';
2
- export type UnsubscribeFn = (...subscriptions: ISubscription[]) => void;
3
- export declare function flowAutoUnsubscribe(): UnsubscribeFn;
@@ -1,36 +0,0 @@
1
- import { Injector, Signal, ValueEqualityFn, WritableSignal } from '@angular/core';
2
- import { Path, PathValue, StateStore } from '@emuanalytics/flow-rdf-core';
3
- export interface FlowSignalOptions<T> {
4
- /**
5
- * Name of signal to use in debugging.
6
- */
7
- name?: string;
8
- /**
9
- * If `true`, the signal will be writable and changes will be propagated to the state store.
10
- */
11
- writable?: boolean;
12
- /**
13
- * `Injector` which will provide the `DestroyRef` used to clean up the toStream subscription.
14
- *
15
- * If this is not provided, a `DestroyRef` will be retrieved from the current [injection
16
- * context](https://angular.dev/guide/di/dependency-injection-context), unless manual cleanup is requested.
17
- */
18
- injector?: Injector;
19
- /**
20
- * A comparison function which defines equality for values emitted by `toStream`.
21
- *
22
- * Equality comparisons are executed against the initial value if one is provided.
23
- */
24
- equal?: ValueEqualityFn<T>;
25
- }
26
- export declare function flowSignal<TState extends StateStore, P extends Path<TState, StateStore>>(state: TState, path: P): Signal<PathValue<TState, P, StateStore>>;
27
- export declare function flowSignal<TState extends StateStore, P extends Path<TState, StateStore>>(state: TState, path: P, options: FlowSignalOptions<PathValue<TState, P, StateStore>> & {
28
- writable?: false;
29
- }): Signal<PathValue<TState, P, StateStore>>;
30
- export declare function flowSignal<TState extends StateStore, P extends Path<TState, StateStore>>(state: TState, path: P, options: FlowSignalOptions<PathValue<TState, P, StateStore>> & {
31
- writable: true;
32
- }): WritableSignal<PathValue<TState, P, StateStore>>;
33
- export declare function flowSignal<TState extends StateStore, R>(state: TState, path: (state: TState) => R): Signal<R>;
34
- export declare function flowSignal<TState extends StateStore, R>(state: TState, path: (state: TState) => R, options: FlowSignalOptions<R> & {
35
- writable?: false;
36
- }): Signal<R>;
@@ -1,13 +0,0 @@
1
- import { StateStore } from '@emuanalytics/flow-rdf-core';
2
- /**
3
- * Allows direct access to Flo.w reactive state in Angular templates.
4
- *
5
- * Use in a component's constructor context to inject reactive state into the component.
6
- * Change detection is automatically initialized by using this inject function.
7
- *
8
- * State properties can be bound in templates (e.g. <span v-pre>`{{state.myProperty}}`</span> ).
9
- * Two-way binding is also supported with ngModel (e.g. `[(ngModel)]="state.myProperty"`).
10
- *
11
- * @returns Flo.w reactive state for direct use in Angular binding
12
- */
13
- export declare function flowReactiveState<TState extends StateStore>(): TState;