ngx-dev-toolbar 2.0.1 → 2.0.3
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/components/toolbar-tool/toolbar-tool.component.d.ts +2 -2
- package/dev-toolbar-state.service.d.ts +3 -0
- package/dev-toolbar.component.d.ts +12 -2
- package/fesm2022/ngx-dev-toolbar.mjs +557 -139
- package/fesm2022/ngx-dev-toolbar.mjs.map +1 -1
- package/package.json +1 -1
- package/tools/app-features-tool/app-features-tool.component.d.ts +1 -1
- package/tools/home-tool/home-tool.component.d.ts +0 -1
- package/tools/presets-tool/presets-internal.service.d.ts +2 -2
- package/tools/presets-tool/presets-tool.component.d.ts +24 -0
- package/tools/presets-tool/presets.models.d.ts +9 -0
- package/tools/presets-tool/presets.service.d.ts +71 -1
|
@@ -6,8 +6,8 @@ import { DevToolbarWindowOptions } from './toolbar-tool.models';
|
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
export declare class DevToolbarToolComponent {
|
|
8
8
|
state: DevToolbarStateService;
|
|
9
|
-
buttonContainer: ElementRef
|
|
10
|
-
buttonComponent: DevToolbarToolButtonComponent
|
|
9
|
+
buttonContainer: import("@angular/core").Signal<ElementRef<any>>;
|
|
10
|
+
buttonComponent: import("@angular/core").Signal<DevToolbarToolButtonComponent | undefined>;
|
|
11
11
|
options: import("@angular/core").InputSignal<DevToolbarWindowOptions>;
|
|
12
12
|
icon: import("@angular/core").InputSignal<IconName>;
|
|
13
13
|
title: import("@angular/core").InputSignal<string>;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { DevToolbarConfig } from './models/dev-toolbar-config.interface';
|
|
1
2
|
import * as i0 from "@angular/core";
|
|
2
3
|
export declare class DevToolbarStateService {
|
|
3
4
|
private state;
|
|
@@ -11,11 +12,13 @@ export declare class DevToolbarStateService {
|
|
|
11
12
|
* The delay to hide the toolbar
|
|
12
13
|
*/
|
|
13
14
|
readonly delay: import("@angular/core").Signal<number>;
|
|
15
|
+
readonly config: import("@angular/core").Signal<DevToolbarConfig>;
|
|
14
16
|
setVisibility(isVisible: boolean): void;
|
|
15
17
|
setTheme(theme: 'light' | 'dark'): void;
|
|
16
18
|
setActiveTool(toolId: string | null): void;
|
|
17
19
|
toggleTool(toolId: string | null): void;
|
|
18
20
|
toggleVisibility(): void;
|
|
21
|
+
setConfig(config: DevToolbarConfig): void;
|
|
19
22
|
static ɵfac: i0.ɵɵFactoryDeclaration<DevToolbarStateService, never>;
|
|
20
23
|
static ɵprov: i0.ɵɵInjectableDeclaration<DevToolbarStateService>;
|
|
21
24
|
}
|
|
@@ -1,19 +1,29 @@
|
|
|
1
|
-
import { DestroyRef, OnInit } from '@angular/core';
|
|
1
|
+
import { DestroyRef, OnDestroy, OnInit } from '@angular/core';
|
|
2
2
|
import { DevToolbarStateService } from './dev-toolbar-state.service';
|
|
3
3
|
import { DevToolbarConfig } from './models/dev-toolbar-config.interface';
|
|
4
4
|
import { SettingsService } from './tools/home-tool/settings.service';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class DevToolbarComponent implements OnInit {
|
|
6
|
+
export declare class DevToolbarComponent implements OnInit, OnDestroy {
|
|
7
|
+
private document;
|
|
7
8
|
state: DevToolbarStateService;
|
|
8
9
|
destroyRef: DestroyRef;
|
|
9
10
|
settingsService: SettingsService;
|
|
10
11
|
config: import("@angular/core").InputSignal<DevToolbarConfig>;
|
|
12
|
+
private globalStyleElement?;
|
|
11
13
|
private keyboardShortcut;
|
|
12
14
|
private mouseLeave;
|
|
15
|
+
constructor();
|
|
13
16
|
ngOnInit(): void;
|
|
17
|
+
ngOnDestroy(): void;
|
|
14
18
|
onMouseEnter(): void;
|
|
15
19
|
onMouseLeave(): void;
|
|
16
20
|
private toggleDevTools;
|
|
21
|
+
/**
|
|
22
|
+
* Injects global theme styles into the document head to make CSS variables
|
|
23
|
+
* available to CDK overlays and other elements rendered outside Shadow DOM.
|
|
24
|
+
* Uses light theme only.
|
|
25
|
+
*/
|
|
26
|
+
private injectGlobalStyles;
|
|
17
27
|
static ɵfac: i0.ɵɵFactoryDeclaration<DevToolbarComponent, never>;
|
|
18
28
|
static ɵcmp: i0.ɵɵComponentDeclaration<DevToolbarComponent, "ndt-toolbar", never, { "config": { "alias": "config"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
19
29
|
}
|