@ethlete/query 4.7.3 → 4.7.5
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/esm2022/lib/devtools/components/query-devtools/query-devtools.component.mjs +61 -29
- package/esm2022/lib/query/query.mjs +7 -6
- package/fesm2022/ethlete-query.mjs +67 -35
- package/fesm2022/ethlete-query.mjs.map +1 -1
- package/lib/devtools/components/query-devtools/query-devtools.component.d.ts +11 -3
- package/lib/query/query.d.ts +2 -2
- package/package.json +1 -1
|
@@ -1,23 +1,30 @@
|
|
|
1
1
|
import { TrackByFunction } from '@angular/core';
|
|
2
|
+
import { FormControl } from '@angular/forms';
|
|
2
3
|
import { AnyQuery } from '../../../query';
|
|
3
4
|
import { QueryClientDevtoolsOptions } from '../../utils';
|
|
4
5
|
import * as i0 from "@angular/core";
|
|
5
6
|
type QueryDevtoolsSnapLayout = 'full' | 'left' | 'right' | 'bottom' | 'top';
|
|
7
|
+
type QueryListMode = 'live' | 'history';
|
|
6
8
|
export declare class QueryDevtoolsComponent {
|
|
9
|
+
private readonly _cdr;
|
|
7
10
|
protected readonly _destroy$: import("rxjs").Observable<boolean>;
|
|
8
11
|
protected readonly queryClientConfigs: QueryClientDevtoolsOptions[];
|
|
9
12
|
protected readonly isOpen: import("@angular/core").WritableSignal<boolean>;
|
|
10
13
|
protected readonly isTranslucent: import("@angular/core").WritableSignal<boolean>;
|
|
11
14
|
protected readonly snapLayout: import("@angular/core").WritableSignal<QueryDevtoolsSnapLayout>;
|
|
15
|
+
protected readonly queryListMode: import("@angular/core").WritableSignal<QueryListMode>;
|
|
12
16
|
protected showResponse: import("@angular/core").WritableSignal<boolean>;
|
|
13
17
|
protected showRawResponse: import("@angular/core").WritableSignal<boolean>;
|
|
14
|
-
protected
|
|
15
|
-
protected readonly
|
|
18
|
+
protected selectedClientIdCtrl: FormControl<number | null>;
|
|
19
|
+
protected readonly selectedClientId: import("@angular/core").Signal<number | null | undefined>;
|
|
20
|
+
protected readonly selectedQueryId: import("@angular/core").WritableSignal<number | null>;
|
|
16
21
|
protected readonly selectedClientConfig: import("@angular/core").Signal<QueryClientDevtoolsOptions>;
|
|
17
22
|
protected readonly queryStore: import("@angular/core").Signal<import("@ethlete/query").QueryStore>;
|
|
23
|
+
protected readonly queryStore$: import("rxjs").Observable<import("@ethlete/query").QueryStore>;
|
|
18
24
|
private readonly _queries$;
|
|
19
25
|
protected readonly queries: import("@angular/core").Signal<AnyQuery[] | undefined>;
|
|
20
26
|
protected readonly selectedQuery: import("@angular/core").Signal<AnyQuery | null>;
|
|
27
|
+
protected readonly queryHistory: import("@angular/core").WritableSignal<AnyQuery[]>;
|
|
21
28
|
constructor();
|
|
22
29
|
protected trackByClient: TrackByFunction<QueryClientDevtoolsOptions>;
|
|
23
30
|
protected trackByQuery: TrackByFunction<AnyQuery>;
|
|
@@ -26,8 +33,9 @@ export declare class QueryDevtoolsComponent {
|
|
|
26
33
|
protected toggleShowResponse(): void;
|
|
27
34
|
protected toggleShowRawResponse(): void;
|
|
28
35
|
protected selectSnapLayout(layout: QueryDevtoolsSnapLayout): void;
|
|
29
|
-
protected
|
|
36
|
+
protected selectQueryListMode(mode: QueryListMode): void;
|
|
30
37
|
protected selectQuery(query: AnyQuery): void;
|
|
38
|
+
protected clearQueryHistory(): void;
|
|
31
39
|
static ɵfac: i0.ɵɵFactoryDeclaration<QueryDevtoolsComponent, never>;
|
|
32
40
|
static ɵcmp: i0.ɵɵComponentDeclaration<QueryDevtoolsComponent, "et-query-devtools", never, {}, {}, never, never, true, never>;
|
|
33
41
|
}
|
package/lib/query/query.d.ts
CHANGED
|
@@ -6,9 +6,9 @@ export declare class Query<Response, Arguments extends BaseArguments | undefined
|
|
|
6
6
|
private _client;
|
|
7
7
|
private _queryConfig;
|
|
8
8
|
private _args;
|
|
9
|
-
|
|
9
|
+
readonly _id: number;
|
|
10
|
+
private _currentLocalId;
|
|
10
11
|
private _pollingSubscription;
|
|
11
|
-
private _requestSubscription;
|
|
12
12
|
private _onAbort$;
|
|
13
13
|
private _currentPollConfig;
|
|
14
14
|
private readonly _state$;
|