ngx-dev-toolbar 4.2.1 → 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/components/confirm-dialog/confirm-dialog.component.d.ts +19 -0
- package/components/list-group/list-group.component.d.ts +34 -0
- package/components/list-item/list-item.component.d.ts +12 -9
- package/components/select/select.component.d.ts +2 -0
- package/components/tabs/tab.component.d.ts +7 -0
- package/components/tabs/tabs.component.d.ts +13 -0
- package/components/tool-button/tool-button.component.d.ts +1 -1
- package/components/tool-header/tool-header.component.d.ts +25 -0
- package/fesm2022/ngx-dev-toolbar.mjs +1807 -724
- package/fesm2022/ngx-dev-toolbar.mjs.map +1 -1
- package/index.d.ts +5 -0
- package/models/tool-view-state.models.d.ts +2 -0
- package/models/toolbar-config.interface.d.ts +15 -0
- package/package.json +1 -1
- package/tokens.d.ts +24 -1
- package/toolbar.component.d.ts +2 -0
- package/tools/app-features-tool/app-features-tool.component.d.ts +7 -1
- package/tools/app-features-tool/app-features.models.d.ts +5 -0
- package/tools/feature-flags-tool/feature-flags-tool.component.d.ts +8 -2
- package/tools/feature-flags-tool/feature-flags.models.d.ts +2 -0
- package/tools/home-tool/home-tool.component.d.ts +2 -0
- package/tools/i18n-tool/i18n-tool.component.d.ts +1 -0
- package/tools/permissions-tool/permissions-tool.component.d.ts +8 -2
- package/tools/permissions-tool/permissions.models.d.ts +2 -0
- package/utils/group-items.util.d.ts +33 -0
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class ToolbarConfirmDialogComponent {
|
|
3
|
+
title: import("@angular/core").InputSignal<string>;
|
|
4
|
+
message: import("@angular/core").InputSignal<string>;
|
|
5
|
+
confirmLabel: import("@angular/core").InputSignal<string>;
|
|
6
|
+
cancelLabel: import("@angular/core").InputSignal<string>;
|
|
7
|
+
danger: import("@angular/core").InputSignal<boolean>;
|
|
8
|
+
confirmed: import("@angular/core").OutputEmitterRef<void>;
|
|
9
|
+
cancelled: import("@angular/core").OutputEmitterRef<void>;
|
|
10
|
+
private readonly dialogRef;
|
|
11
|
+
private result;
|
|
12
|
+
show(): void;
|
|
13
|
+
confirm(): void;
|
|
14
|
+
cancel(): void;
|
|
15
|
+
protected onBackdropClick(event: MouseEvent): void;
|
|
16
|
+
protected onDialogClose(): void;
|
|
17
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ToolbarConfirmDialogComponent, never>;
|
|
18
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ToolbarConfirmDialogComponent, "ndt-confirm-dialog", never, { "title": { "alias": "title"; "required": true; "isSignal": true; }; "message": { "alias": "message"; "required": false; "isSignal": true; }; "confirmLabel": { "alias": "confirmLabel"; "required": false; "isSignal": true; }; "cancelLabel": { "alias": "cancelLabel"; "required": false; "isSignal": true; }; "danger": { "alias": "danger"; "required": false; "isSignal": true; }; }, { "confirmed": "confirmed"; "cancelled": "cancelled"; }, never, never, true, never>;
|
|
19
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
/**
|
|
3
|
+
* Collapsible group header that wraps a section of list items.
|
|
4
|
+
*
|
|
5
|
+
* Renders a clickable header with the group name + item count + a chevron
|
|
6
|
+
* indicating collapsed/expanded state. Children projected via `<ng-content>`
|
|
7
|
+
* are hidden when collapsed.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```html
|
|
11
|
+
* <ndt-list-group
|
|
12
|
+
* name="Authentication"
|
|
13
|
+
* [count]="3"
|
|
14
|
+
* [collapsed]="isCollapsed"
|
|
15
|
+
* (collapsedChange)="onToggle($event)"
|
|
16
|
+
* >
|
|
17
|
+
* <ndt-list-item ... />
|
|
18
|
+
* </ndt-list-group>
|
|
19
|
+
* ```
|
|
20
|
+
*/
|
|
21
|
+
export declare class ToolbarListGroupComponent {
|
|
22
|
+
/** Display name of the group, shown in the header. */
|
|
23
|
+
name: import("@angular/core").InputSignal<string>;
|
|
24
|
+
/** Number of items in the group, shown next to the name. */
|
|
25
|
+
count: import("@angular/core").InputSignal<number>;
|
|
26
|
+
/** Whether the group is currently collapsed. */
|
|
27
|
+
collapsed: import("@angular/core").InputSignal<boolean>;
|
|
28
|
+
/** Emits the new collapsed value when the user clicks the header. */
|
|
29
|
+
collapsedChange: import("@angular/core").OutputEmitterRef<boolean>;
|
|
30
|
+
protected ariaLabel: import("@angular/core").Signal<string>;
|
|
31
|
+
protected toggle(): void;
|
|
32
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ToolbarListGroupComponent, never>;
|
|
33
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ToolbarListGroupComponent, "ndt-list-group", never, { "name": { "alias": "name"; "required": true; "isSignal": true; }; "count": { "alias": "count"; "required": true; "isSignal": true; }; "collapsed": { "alias": "collapsed"; "required": false; "isSignal": true; }; }, { "collapsedChange": "collapsedChange"; }, never, ["*"], true, never>;
|
|
34
|
+
}
|
|
@@ -47,11 +47,16 @@ export declare class ToolbarListItemComponent {
|
|
|
47
47
|
/**
|
|
48
48
|
* Current state of the apply operation
|
|
49
49
|
*/
|
|
50
|
-
applyState: import("@angular/core").InputSignal<"
|
|
50
|
+
applyState: import("@angular/core").InputSignal<"error" | "idle" | "loading" | "success">;
|
|
51
51
|
/**
|
|
52
52
|
* Whether this item is pinned to the top of the list
|
|
53
53
|
*/
|
|
54
54
|
isPinned: import("@angular/core").InputSignal<boolean>;
|
|
55
|
+
/**
|
|
56
|
+
* Optional identifier that can be copied to clipboard (e.g., flag ID).
|
|
57
|
+
* When provided, renders a copy button in the action row.
|
|
58
|
+
*/
|
|
59
|
+
copyableId: import("@angular/core").InputSignal<string | undefined>;
|
|
55
60
|
/**
|
|
56
61
|
* Emits when the user clicks the pin/unpin button
|
|
57
62
|
*/
|
|
@@ -63,15 +68,13 @@ export declare class ToolbarListItemComponent {
|
|
|
63
68
|
protected pinIcon: import("@angular/core").Signal<IconName>;
|
|
64
69
|
protected pinAriaLabel: import("@angular/core").Signal<"Unpin item" | "Pin item">;
|
|
65
70
|
/**
|
|
66
|
-
*
|
|
67
|
-
* For forced items: shows originalValue
|
|
68
|
-
* For non-forced items: shows currentValue
|
|
69
|
-
*/
|
|
70
|
-
protected displayValue: import("@angular/core").Signal<boolean>;
|
|
71
|
-
/**
|
|
72
|
-
* Tooltip text explaining the indicator state
|
|
71
|
+
* Tooltip text explaining the current state, with override context when forced
|
|
73
72
|
*/
|
|
74
73
|
protected tooltipText: import("@angular/core").Signal<string>;
|
|
74
|
+
protected statusAriaLabel: import("@angular/core").Signal<string>;
|
|
75
|
+
protected readonly copyState: import("@angular/core").WritableSignal<"idle" | "copied">;
|
|
76
|
+
protected copyAriaLabel: import("@angular/core").Signal<string>;
|
|
77
|
+
protected copyId(event: MouseEvent): Promise<void>;
|
|
75
78
|
static ɵfac: i0.ɵɵFactoryDeclaration<ToolbarListItemComponent, never>;
|
|
76
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ToolbarListItemComponent, "ndt-list-item", never, { "title": { "alias": "title"; "required": true; "isSignal": true; }; "description": { "alias": "description"; "required": false; "isSignal": true; }; "isForced": { "alias": "isForced"; "required": false; "isSignal": true; }; "currentValue": { "alias": "currentValue"; "required": true; "isSignal": true; }; "originalValue": { "alias": "originalValue"; "required": false; "isSignal": true; }; "showApply": { "alias": "showApply"; "required": false; "isSignal": true; }; "applyState": { "alias": "applyState"; "required": false; "isSignal": true; }; "isPinned": { "alias": "isPinned"; "required": false; "isSignal": true; }; }, { "pinToggle": "pinToggle"; "applyToSource": "applyToSource"; }, never, ["*"], true, never>;
|
|
79
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ToolbarListItemComponent, "ndt-list-item", never, { "title": { "alias": "title"; "required": true; "isSignal": true; }; "description": { "alias": "description"; "required": false; "isSignal": true; }; "isForced": { "alias": "isForced"; "required": false; "isSignal": true; }; "currentValue": { "alias": "currentValue"; "required": true; "isSignal": true; }; "originalValue": { "alias": "originalValue"; "required": false; "isSignal": true; }; "showApply": { "alias": "showApply"; "required": false; "isSignal": true; }; "applyState": { "alias": "applyState"; "required": false; "isSignal": true; }; "isPinned": { "alias": "isPinned"; "required": false; "isSignal": true; }; "copyableId": { "alias": "copyableId"; "required": false; "isSignal": true; }; }, { "pinToggle": "pinToggle"; "applyToSource": "applyToSource"; }, never, ["*"], true, never>;
|
|
77
80
|
}
|
|
@@ -6,6 +6,7 @@ export interface SelectOption {
|
|
|
6
6
|
label: string;
|
|
7
7
|
}
|
|
8
8
|
export declare class ToolbarSelectComponent {
|
|
9
|
+
private readonly elementRef;
|
|
9
10
|
readonly devToolbarStateService: ToolbarStateService;
|
|
10
11
|
value: import("@angular/core").ModelSignal<string | undefined>;
|
|
11
12
|
options: import("@angular/core").InputSignal<SelectOption[]>;
|
|
@@ -16,6 +17,7 @@ export declare class ToolbarSelectComponent {
|
|
|
16
17
|
readonly theme: import("@angular/core").Signal<"light" | "dark">;
|
|
17
18
|
protected readonly selectMenuId: string;
|
|
18
19
|
isOpen: import("@angular/core").WritableSignal<boolean>;
|
|
20
|
+
triggerWidth: import("@angular/core").WritableSignal<number>;
|
|
19
21
|
isPlaceholder: import("@angular/core").Signal<boolean>;
|
|
20
22
|
selectedLabel: import("@angular/core").Signal<string>;
|
|
21
23
|
positions: ConnectedPosition[];
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class ToolbarTabComponent {
|
|
3
|
+
readonly label: import("@angular/core").InputSignal<string>;
|
|
4
|
+
readonly isActive: import("@angular/core").WritableSignal<boolean>;
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ToolbarTabComponent, never>;
|
|
6
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ToolbarTabComponent, "ndt-tab", never, { "label": { "alias": "label"; "required": true; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
7
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ToolbarTabComponent } from './tab.component';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class ToolbarTabsComponent {
|
|
4
|
+
readonly tabs: import("@angular/core").Signal<readonly ToolbarTabComponent[]>;
|
|
5
|
+
readonly activeIndex: import("@angular/core").WritableSignal<number>;
|
|
6
|
+
readonly activeIndexChange: import("@angular/core").OutputEmitterRef<number>;
|
|
7
|
+
protected readonly instanceId: string;
|
|
8
|
+
constructor();
|
|
9
|
+
selectTab(index: number): void;
|
|
10
|
+
onKeydown(event: KeyboardEvent, currentIndex: number): void;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ToolbarTabsComponent, never>;
|
|
12
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ToolbarTabsComponent, "ndt-tabs", never, {}, { "activeIndexChange": "activeIndexChange"; }, ["tabs"], ["*"], true, never>;
|
|
13
|
+
}
|
|
@@ -12,7 +12,7 @@ export declare class ToolbarToolButtonComponent {
|
|
|
12
12
|
readonly isFocused: import("@angular/core").WritableSignal<boolean>;
|
|
13
13
|
readonly tooltip: import("@angular/core").Signal<string>;
|
|
14
14
|
readonly isTooltipVisible: import("@angular/core").Signal<boolean | "">;
|
|
15
|
-
protected tooltipState: boolean
|
|
15
|
+
protected readonly tooltipState: import("@angular/core").WritableSignal<boolean>;
|
|
16
16
|
private readonly hideDelay;
|
|
17
17
|
onClick(): void;
|
|
18
18
|
onMouseEnter(): void;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export interface ToolHeaderFilterOption {
|
|
3
|
+
value: string;
|
|
4
|
+
label: string;
|
|
5
|
+
ariaLabel?: string;
|
|
6
|
+
}
|
|
7
|
+
export declare class ToolbarToolHeaderComponent {
|
|
8
|
+
searchQuery: import("@angular/core").ModelSignal<string>;
|
|
9
|
+
activeFilter: import("@angular/core").ModelSignal<string>;
|
|
10
|
+
searchPlaceholder: import("@angular/core").InputSignal<string>;
|
|
11
|
+
searchAriaLabel: import("@angular/core").InputSignal<string>;
|
|
12
|
+
filterOptions: import("@angular/core").InputSignal<ToolHeaderFilterOption[]>;
|
|
13
|
+
filterAriaLabel: import("@angular/core").InputSignal<string>;
|
|
14
|
+
/**
|
|
15
|
+
* Value to set when the user clicks an already-active filter chip
|
|
16
|
+
* (i.e., to "clear" the filter back to a default no-chip state).
|
|
17
|
+
* Defaults to 'all'.
|
|
18
|
+
*/
|
|
19
|
+
defaultFilter: import("@angular/core").InputSignal<string>;
|
|
20
|
+
protected clearSearch(): void;
|
|
21
|
+
protected onFilterClick(value: string): void;
|
|
22
|
+
protected onFilterKeydown(event: KeyboardEvent, value: string): void;
|
|
23
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ToolbarToolHeaderComponent, never>;
|
|
24
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ToolbarToolHeaderComponent, "ndt-tool-header", never, { "searchQuery": { "alias": "searchQuery"; "required": false; "isSignal": true; }; "activeFilter": { "alias": "activeFilter"; "required": false; "isSignal": true; }; "searchPlaceholder": { "alias": "searchPlaceholder"; "required": false; "isSignal": true; }; "searchAriaLabel": { "alias": "searchAriaLabel"; "required": false; "isSignal": true; }; "filterOptions": { "alias": "filterOptions"; "required": false; "isSignal": true; }; "filterAriaLabel": { "alias": "filterAriaLabel"; "required": false; "isSignal": true; }; "defaultFilter": { "alias": "defaultFilter"; "required": false; "isSignal": true; }; }, { "searchQuery": "searchQueryChange"; "activeFilter": "activeFilterChange"; }, never, never, true, never>;
|
|
25
|
+
}
|