@daffodil/core 0.94.1 → 0.95.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/fesm2022/daffodil-core-external-script-testing.mjs +42 -56
- package/fesm2022/daffodil-core-external-script-testing.mjs.map +1 -1
- package/fesm2022/daffodil-core-external-script.mjs +77 -95
- package/fesm2022/daffodil-core-external-script.mjs.map +1 -1
- package/fesm2022/daffodil-core-graphql.mjs +94 -145
- package/fesm2022/daffodil-core-graphql.mjs.map +1 -1
- package/fesm2022/daffodil-core-routing.mjs +53 -85
- package/fesm2022/daffodil-core-routing.mjs.map +1 -1
- package/fesm2022/daffodil-core-state-testing.mjs +90 -62
- package/fesm2022/daffodil-core-state-testing.mjs.map +1 -1
- package/fesm2022/daffodil-core-state.mjs +282 -456
- package/fesm2022/daffodil-core-state.mjs.map +1 -1
- package/fesm2022/daffodil-core-testing.mjs +1077 -657
- package/fesm2022/daffodil-core-testing.mjs.map +1 -1
- package/fesm2022/daffodil-core.mjs +720 -1342
- package/fesm2022/daffodil-core.mjs.map +1 -1
- package/package.json +1 -1
- package/types/daffodil-core-external-script-testing.d.ts +14 -18
- package/types/daffodil-core-external-script.d.ts +42 -47
- package/types/daffodil-core-graphql.d.ts +35 -51
- package/types/daffodil-core-routing.d.ts +40 -51
- package/types/daffodil-core-state-testing.d.ts +31 -35
- package/types/daffodil-core-state.d.ts +429 -465
- package/types/daffodil-core-testing.d.ts +220 -245
- package/types/daffodil-core.d.ts +518 -641
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { Observable } from
|
|
2
|
-
import * as i0 from
|
|
3
|
-
|
|
1
|
+
import { Observable } from "rxjs";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
4
3
|
/**
|
|
5
4
|
* Represents the structure of an external script that can be loaded into a document.
|
|
6
5
|
*
|
|
@@ -14,40 +13,38 @@ import * as i0 from '@angular/core';
|
|
|
14
13
|
* };
|
|
15
14
|
* ```
|
|
16
15
|
*/
|
|
17
|
-
interface DaffExternalScript {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
16
|
+
export interface DaffExternalScript {
|
|
17
|
+
/** The source URL of the script. */
|
|
18
|
+
src: string;
|
|
19
|
+
/**
|
|
20
|
+
* Optional. Indicates whether the script should be loaded asynchronously.
|
|
21
|
+
* @default false
|
|
22
|
+
*/
|
|
23
|
+
async?: boolean;
|
|
24
|
+
/**
|
|
25
|
+
* Optional. Indicates whether the script should be deferred in loading.
|
|
26
|
+
* @default false
|
|
27
|
+
*/
|
|
28
|
+
defer?: boolean;
|
|
29
|
+
/**
|
|
30
|
+
* Optional. Custom attributes for the script.
|
|
31
|
+
* The keys must start with 'data-' followed by any string.
|
|
32
|
+
*/
|
|
33
|
+
[key: `data-${string}`]: string;
|
|
35
34
|
}
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
load(name: string, script: DaffExternalScript): Observable<boolean>;
|
|
35
|
+
export interface DaffExternalScriptServiceInterface {
|
|
36
|
+
/**
|
|
37
|
+
* Load a script into the document.
|
|
38
|
+
* @param name The name of the script.
|
|
39
|
+
* @param script The script object containing details like src, async, defer, and custom attributes.
|
|
40
|
+
* @returns An Observable that emits true when the script is loaded successfully, or emits an error if loading fails.
|
|
41
|
+
*/
|
|
42
|
+
load(name: string, script: DaffExternalScript): Observable<boolean>;
|
|
45
43
|
}
|
|
46
|
-
|
|
47
44
|
interface LoadedExternalScript extends DaffExternalScript {
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
45
|
+
ready: boolean | undefined;
|
|
46
|
+
subject: Observable<boolean>;
|
|
47
|
+
el: HTMLElement | undefined;
|
|
51
48
|
}
|
|
52
49
|
/**
|
|
53
50
|
* A service for loading external scripts into the document.
|
|
@@ -79,17 +76,15 @@ interface LoadedExternalScript extends DaffExternalScript {
|
|
|
79
76
|
* });
|
|
80
77
|
* ```
|
|
81
78
|
*/
|
|
82
|
-
declare class DaffExternalScriptService implements DaffExternalScriptServiceInterface {
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
79
|
+
export declare class DaffExternalScriptService implements DaffExternalScriptServiceInterface {
|
|
80
|
+
readonly scriptMap: Map<string, LoadedExternalScript>;
|
|
81
|
+
private doc;
|
|
82
|
+
constructor(doc: any);
|
|
83
|
+
/**
|
|
84
|
+
* @inheritdoc
|
|
85
|
+
*/
|
|
86
|
+
load(name: string, script: DaffExternalScript): Observable<boolean>;
|
|
87
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DaffExternalScriptService, never>;
|
|
88
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
92
89
|
}
|
|
93
|
-
|
|
94
|
-
export { DaffExternalScriptService };
|
|
95
|
-
export type { DaffExternalScript, DaffExternalScriptServiceInterface };
|
|
90
|
+
export {};
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import { DocumentNode } from
|
|
2
|
-
import { Apollo } from
|
|
3
|
-
import { Observable } from
|
|
4
|
-
import * as
|
|
5
|
-
import { EnvironmentProviders } from
|
|
6
|
-
import { ApolloLink } from
|
|
7
|
-
import { HttpHeaders } from
|
|
8
|
-
|
|
1
|
+
import { DocumentNode } from "graphql";
|
|
2
|
+
import { Apollo } from "apollo-angular";
|
|
3
|
+
import { Observable } from "rxjs";
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
import { EnvironmentProviders } from "@angular/core";
|
|
6
|
+
import { ApolloLink } from "@apollo/client";
|
|
7
|
+
import { HttpHeaders } from "@angular/common/http";
|
|
9
8
|
/**
|
|
10
9
|
* Builds a string of fragment names that can be interpolated into a GraphQL query.
|
|
11
10
|
* Each name is separated by a newline character: '\n'.
|
|
@@ -14,73 +13,58 @@ import { HttpHeaders } from '@angular/common/http';
|
|
|
14
13
|
*
|
|
15
14
|
* @param fragments A list of GraphQL documents that contain fragments.
|
|
16
15
|
*/
|
|
17
|
-
declare const daffBuildFragmentNameSpread: (...fragments: DocumentNode[]) => string;
|
|
18
|
-
|
|
16
|
+
export declare const daffBuildFragmentNameSpread: (...fragments: DocumentNode[]) => string;
|
|
19
17
|
/**
|
|
20
18
|
* Builds a string of fragment definitions that can be interpolated into a GraphQL query.
|
|
21
19
|
* Each definition is separated by a newline character: '\n'.
|
|
22
20
|
*
|
|
23
21
|
* @param documents A list of GraphQL documents that should only contain fragments.
|
|
24
22
|
*/
|
|
25
|
-
declare const daffBuildFragmentDefinition: (...documents: DocumentNode[]) => string;
|
|
26
|
-
|
|
23
|
+
export declare const daffBuildFragmentDefinition: (...documents: DocumentNode[]) => string;
|
|
27
24
|
/**
|
|
28
25
|
* A service that will queue mutate calls to Apollo.
|
|
29
26
|
* It will not send subsequent mutate requests until the previous one has been completed.
|
|
30
27
|
* This is useful for avoiding race conditions on the backend.
|
|
31
28
|
* This should be used alongside Apollo.
|
|
32
29
|
*/
|
|
33
|
-
declare class DaffQueuedApollo {
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
30
|
+
export declare class DaffQueuedApollo {
|
|
31
|
+
private apollo;
|
|
32
|
+
queue: (() => void)[];
|
|
33
|
+
constructor(apollo: Apollo);
|
|
34
|
+
/**
|
|
35
|
+
* Queue up a mutate request.
|
|
36
|
+
* The request will not actually be queued until the returned observable is subscribed.
|
|
37
|
+
* If the queue is empty, the request will be sent when it enters the queue.
|
|
38
|
+
* Otherwise, it will be sent when it reaches the front of the queue.
|
|
39
|
+
* The observable will complete after it emits once.
|
|
40
|
+
*
|
|
41
|
+
* @param options Mutation options.
|
|
42
|
+
*/
|
|
43
|
+
mutate<T, V = Record<string, any>>(options: Apollo.MutateOptions<T, V>): Observable<Apollo.MutateResult<T>>;
|
|
44
|
+
private addRequestToQueue;
|
|
45
|
+
private finishRequestSubscription;
|
|
46
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DaffQueuedApollo, never>;
|
|
47
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
51
48
|
}
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
getLink(): ApolloLink;
|
|
49
|
+
export interface DaffApolloLinkGenerator {
|
|
50
|
+
getLink(): ApolloLink;
|
|
55
51
|
}
|
|
56
|
-
|
|
57
|
-
type ValidatedResponse<T, Shape> = {
|
|
58
|
-
[K in keyof T]: K extends keyof Shape ? Shape[K] extends true ? NonNullable<T[K]> : ValidatedResponse<NonNullable<T[K]>, Shape[K]> : T[K];
|
|
59
|
-
};
|
|
52
|
+
export type ValidatedResponse<T, Shape> = { [K in keyof T]: K extends keyof Shape ? Shape[K] extends true ? NonNullable<T[K]> : ValidatedResponse<NonNullable<T[K]>, Shape[K]> : T[K]; };
|
|
60
53
|
/**
|
|
61
54
|
* A validator for a GraphQL Apollo response.
|
|
62
55
|
* Throws errors to indicate that the response is not valid.
|
|
63
56
|
* Returns the response and throws no errors to indicate that the response
|
|
64
57
|
* is valid as far as this particular validator is concerned.
|
|
65
58
|
*/
|
|
66
|
-
type GraphQlApolloValidator<T, Shape> = (response: Apollo.QueryResult<T>) => ValidatedResponse<Apollo.QueryResult<T>, Shape>;
|
|
67
|
-
|
|
59
|
+
export type GraphQlApolloValidator<T, Shape> = (response: Apollo.QueryResult<T>) => ValidatedResponse<Apollo.QueryResult<T>, Shape>;
|
|
68
60
|
/**
|
|
69
61
|
* A function that returns headers to set on the Apollo GraphQL request.
|
|
70
62
|
* This function is run in an injection context.
|
|
71
63
|
*/
|
|
72
|
-
type DaffApolloHeaderProvider = () => HttpHeaders;
|
|
73
|
-
|
|
64
|
+
export type DaffApolloHeaderProvider = () => HttpHeaders;
|
|
74
65
|
/**
|
|
75
66
|
* Provider function for {@link DaffApolloHeaderProvider}s.
|
|
76
67
|
*/
|
|
77
|
-
declare const provideDaffApolloHeaderProviders: (...providers: Array<DaffApolloHeaderProvider>) => EnvironmentProviders;
|
|
78
|
-
|
|
79
|
-
declare
|
|
80
|
-
|
|
81
|
-
declare const DAFF_APOLLO_REQUEST_HANDLERS: _angular_core.InjectionToken<ApolloLink.RequestHandler[]>;
|
|
82
|
-
declare const provideDaffApolloRequestHandlers: <R extends ApolloLink.RequestHandler = ApolloLink.RequestHandler>(...values: R[]) => Array<_angular_core.ValueProvider>;
|
|
83
|
-
declare const provideDaffApolloRequestHandlerFactories: <R extends ApolloLink.RequestHandler = ApolloLink.RequestHandler>(...factories: (() => R)[]) => Array<_angular_core.FactoryProvider>;
|
|
84
|
-
|
|
85
|
-
export { DAFF_APOLLO_REQUEST_HANDLERS, DaffQueuedApollo, daffBuildFragmentDefinition, daffBuildFragmentNameSpread, getApolloOperationHeaders, provideDaffApolloHeaderProviders, provideDaffApolloRequestHandlerFactories, provideDaffApolloRequestHandlers };
|
|
86
|
-
export type { DaffApolloHeaderProvider, DaffApolloLinkGenerator, GraphQlApolloValidator, ValidatedResponse };
|
|
68
|
+
export declare const provideDaffApolloHeaderProviders: (...providers: Array<DaffApolloHeaderProvider>) => EnvironmentProviders;
|
|
69
|
+
export declare function getApolloOperationHeaders(operation: ApolloLink.Operation): HttpHeaders;
|
|
70
|
+
export declare const DAFF_APOLLO_REQUEST_HANDLERS: import("@angular/core").InjectionToken<ApolloLink.RequestHandler[]>, provideDaffApolloRequestHandlers: <R extends ApolloLink.RequestHandler = ApolloLink.RequestHandler>(...values: R[]) => Array<import("@angular/core").ValueProvider>, provideDaffApolloRequestHandlerFactories: <R extends ApolloLink.RequestHandler = ApolloLink.RequestHandler>(...factories: (() => R)[]) => Array<import("@angular/core").FactoryProvider>;
|
|
@@ -1,86 +1,75 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import * as i0 from
|
|
3
|
-
import {
|
|
4
|
-
|
|
1
|
+
import { ParamMap, UrlSerializer } from "@angular/router";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
import { DaffFilter, DaffFilterEqualRequest, DaffFilterRequest } from "@daffodil/core";
|
|
5
4
|
/**
|
|
6
5
|
* Truncates the file extension from the end of the URI.
|
|
7
6
|
* Captures the truncated URI in the `uri` named group.
|
|
8
7
|
*/
|
|
9
|
-
declare const DAFF_TRUNCATE_FILE_EXTENSION_REGEX: RegExp;
|
|
8
|
+
export declare const DAFF_TRUNCATE_FILE_EXTENSION_REGEX: RegExp;
|
|
10
9
|
/**
|
|
11
10
|
* Truncates the file extension from the end of the URI.
|
|
12
11
|
*/
|
|
13
|
-
declare const daffUriTruncateFileExtension: (uri: string) => string;
|
|
14
|
-
|
|
12
|
+
export declare const daffUriTruncateFileExtension: (uri: string) => string;
|
|
15
13
|
/**
|
|
16
14
|
* Truncates leading path segments from a URI.
|
|
17
15
|
* e.g. /foo/bar/baz.html -> baz.html
|
|
18
16
|
*/
|
|
19
|
-
declare const daffUriTruncateLeadingPathSegments: (uri: string) => string;
|
|
20
|
-
|
|
17
|
+
export declare const daffUriTruncateLeadingPathSegments: (uri: string) => string;
|
|
21
18
|
/**
|
|
22
19
|
* A regex to truncate the leading slash from a URI,
|
|
23
20
|
* capturing the truncated in the `uri` group.
|
|
24
21
|
* e.g. /foo/bar/baz.html -> foo/bar/baz.html
|
|
25
22
|
*/
|
|
26
|
-
declare const DAFF_TRUNCATE_LEADING_SLASH_REGEX: RegExp;
|
|
23
|
+
export declare const DAFF_TRUNCATE_LEADING_SLASH_REGEX: RegExp;
|
|
27
24
|
/**
|
|
28
25
|
* Truncates the leading slash from a URI.
|
|
29
26
|
* e.g. /foo/bar/baz.html -> foo/bar/baz.html
|
|
30
27
|
*/
|
|
31
|
-
declare const daffUriTruncateLeadingSlash: (uri: string) => string;
|
|
32
|
-
|
|
28
|
+
export declare const daffUriTruncateLeadingSlash: (uri: string) => string;
|
|
33
29
|
/**
|
|
34
30
|
* Truncates query parameters and fragments from a URI.
|
|
35
31
|
* e.g. /foo/bar/baz.html?thing=test#id -> /foo/bar/baz.html
|
|
36
32
|
*/
|
|
37
|
-
declare const daffUriTruncateQueryFragment: (uri: string) => string;
|
|
38
|
-
|
|
33
|
+
export declare const daffUriTruncateQueryFragment: (uri: string) => string;
|
|
39
34
|
/**
|
|
40
35
|
* Processes URIs to remove extraneous Angular-specific information.
|
|
41
36
|
*/
|
|
42
|
-
declare class DaffRoutingUriNormalizer {
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
37
|
+
export declare class DaffRoutingUriNormalizer {
|
|
38
|
+
private urlParser;
|
|
39
|
+
constructor(urlParser: UrlSerializer);
|
|
40
|
+
/**
|
|
41
|
+
* Normalizes an Angular router path into a useable URI.
|
|
42
|
+
* e.g. `normalize('some/url.html(secondary:outlet)?query=param#fragment')` -> `'some/url.html?query=param#fragment'`
|
|
43
|
+
*
|
|
44
|
+
* Optionally accepts an outlet to target.
|
|
45
|
+
* e.g. `normalize('some/url.html(secondary:outlet)?query=param#fragment', 'secondary')` -> `'outlet?query=param#fragment'`
|
|
46
|
+
*
|
|
47
|
+
* @param uri The URI to normalize.
|
|
48
|
+
* @param outlet An optional outlet to process into a URI.
|
|
49
|
+
*/
|
|
50
|
+
normalize(uri: string, outlet?: string): string;
|
|
51
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DaffRoutingUriNormalizer, never>;
|
|
52
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
58
53
|
}
|
|
59
|
-
|
|
60
54
|
/**
|
|
61
55
|
* Accepts a list of values set to a particular URL query param and returns a filter request.
|
|
62
56
|
*/
|
|
63
|
-
type DaffRoutingQueryParamFilterRequestBuilder<T extends DaffFilterRequest = DaffFilterRequest> = (filterName: string, qpValue: ReturnType<ParamMap['getAll']>) => T;
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
builder: DaffRoutingQueryParamFilterRequestBuilder;
|
|
57
|
+
export type DaffRoutingQueryParamFilterRequestBuilder<T extends DaffFilterRequest = DaffFilterRequest> = (filterName: string, qpValue: ReturnType<ParamMap['getAll']>) => T;
|
|
58
|
+
export interface DaffRoutingQueryParamFilter {
|
|
59
|
+
/**
|
|
60
|
+
* The name of the filter.
|
|
61
|
+
*/
|
|
62
|
+
filterName: DaffFilter['name'];
|
|
63
|
+
/**
|
|
64
|
+
* The query param to use for this filter.
|
|
65
|
+
*/
|
|
66
|
+
queryParam: string;
|
|
67
|
+
/**
|
|
68
|
+
* The filter request builder.
|
|
69
|
+
*/
|
|
70
|
+
builder: DaffRoutingQueryParamFilterRequestBuilder;
|
|
78
71
|
}
|
|
79
|
-
|
|
80
72
|
/**
|
|
81
73
|
* A standard filter request builder that creates an equal filter request with the query params values.
|
|
82
74
|
*/
|
|
83
|
-
declare const daffRoutingQueryParamFilterRequestEqualBuilder: DaffRoutingQueryParamFilterRequestBuilder<DaffFilterEqualRequest>;
|
|
84
|
-
|
|
85
|
-
export { DAFF_TRUNCATE_FILE_EXTENSION_REGEX, DAFF_TRUNCATE_LEADING_SLASH_REGEX, DaffRoutingUriNormalizer, daffRoutingQueryParamFilterRequestEqualBuilder, daffUriTruncateFileExtension, daffUriTruncateLeadingPathSegments, daffUriTruncateLeadingSlash, daffUriTruncateQueryFragment };
|
|
86
|
-
export type { DaffRoutingQueryParamFilter, DaffRoutingQueryParamFilterRequestBuilder };
|
|
75
|
+
export declare const daffRoutingQueryParamFilterRequestEqualBuilder: DaffRoutingQueryParamFilterRequestBuilder<DaffFilterEqualRequest>;
|
|
@@ -1,46 +1,42 @@
|
|
|
1
|
-
import { Action } from
|
|
2
|
-
import { BehaviorSubject } from
|
|
3
|
-
import { DaffCollectionMetadata, DaffCollectionRequest,
|
|
4
|
-
import { DaffCollectionFacadeInterface, DaffOperationStateFacadeInterface, DaffState, DaffStateError } from
|
|
5
|
-
import * as i0 from
|
|
6
|
-
|
|
1
|
+
import { Action } from "@ngrx/store";
|
|
2
|
+
import { BehaviorSubject } from "rxjs";
|
|
3
|
+
import { DaffCollectionMetadata, DaffCollectionRequest, DaffFilters, DaffSortDirectionEnum, DaffSortOption } from "@daffodil/core";
|
|
4
|
+
import { DaffCollectionFacadeInterface, DaffOperationStateFacadeInterface, DaffState, DaffStateError } from "@daffodil/core/state";
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
7
6
|
/**
|
|
8
7
|
* Can be used to mock out the {@link DaffCollectionFacade} in testing environments.
|
|
9
8
|
*
|
|
10
9
|
* @inheritdoc
|
|
11
10
|
*/
|
|
12
|
-
declare class MockDaffCollectionFacade implements DaffCollectionFacadeInterface {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
11
|
+
export declare class MockDaffCollectionFacade implements DaffCollectionFacadeInterface {
|
|
12
|
+
metadata$: BehaviorSubject<DaffCollectionMetadata>;
|
|
13
|
+
request$: BehaviorSubject<DaffCollectionRequest>;
|
|
14
|
+
count$: BehaviorSubject<number>;
|
|
15
|
+
currentPage$: BehaviorSubject<number>;
|
|
16
|
+
totalPages$: BehaviorSubject<number>;
|
|
17
|
+
pageSize$: BehaviorSubject<number>;
|
|
18
|
+
sortOptions$: BehaviorSubject<DaffSortOption[]>;
|
|
19
|
+
appliedSortOption$: BehaviorSubject<string>;
|
|
20
|
+
appliedSortDirection$: BehaviorSubject<DaffSortDirectionEnum>;
|
|
21
|
+
filters$: BehaviorSubject<DaffFilters>;
|
|
22
|
+
appliedFilters$: BehaviorSubject<DaffFilters>;
|
|
23
|
+
dispatch(action: Action): void;
|
|
24
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MockDaffCollectionFacade, never>;
|
|
25
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
27
26
|
}
|
|
28
|
-
|
|
29
27
|
/**
|
|
30
28
|
* Can be used to mock out the {@link DaffOperationStateFacade} in testing environments.
|
|
31
29
|
*
|
|
32
30
|
* @inheritdoc
|
|
33
31
|
*/
|
|
34
|
-
declare class MockDaffOperationStateFacade implements DaffOperationStateFacadeInterface {
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
export { MockDaffCollectionFacade, MockDaffOperationStateFacade };
|
|
32
|
+
export declare class MockDaffOperationStateFacade implements DaffOperationStateFacadeInterface {
|
|
33
|
+
loadingState$: BehaviorSubject<DaffState>;
|
|
34
|
+
loading$: BehaviorSubject<boolean>;
|
|
35
|
+
resolving$: BehaviorSubject<boolean>;
|
|
36
|
+
mutating$: BehaviorSubject<boolean>;
|
|
37
|
+
errors$: BehaviorSubject<DaffStateError[]>;
|
|
38
|
+
hasErrors$: BehaviorSubject<boolean>;
|
|
39
|
+
dispatch(action: Action): void;
|
|
40
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MockDaffOperationStateFacade, never>;
|
|
41
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
42
|
+
}
|