ngx-dev-toolbar 4.0.0 → 4.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 (30) hide show
  1. package/README.md +5 -5
  2. package/components/icons/globe-icon.component.d.ts +6 -0
  3. package/components/icons/icon.models.d.ts +1 -1
  4. package/components/select/select.component.d.ts +1 -1
  5. package/components/tool-button/tool-button.component.d.ts +6 -5
  6. package/components/toolbar-tool/toolbar-tool.component.d.ts +6 -11
  7. package/components/window/window.component.d.ts +1 -1
  8. package/fesm2022/ngx-dev-toolbar.mjs +1490 -533
  9. package/fesm2022/ngx-dev-toolbar.mjs.map +1 -1
  10. package/index.d.ts +6 -3
  11. package/models/toolbar-config.interface.d.ts +8 -2
  12. package/models/toolbar-position.model.d.ts +3 -0
  13. package/package.json +6 -7
  14. package/tokens.d.ts +0 -18
  15. package/toolbar-state.service.d.ts +10 -9
  16. package/toolbar.component.d.ts +1 -0
  17. package/tools/home-tool/home-tool.component.d.ts +3 -0
  18. package/tools/home-tool/settings.models.d.ts +3 -0
  19. package/tools/i18n-tool/i18n-formatting.utils.d.ts +10 -0
  20. package/tools/i18n-tool/i18n-internal.service.d.ts +86 -0
  21. package/tools/i18n-tool/i18n-tool.component.d.ts +66 -0
  22. package/tools/i18n-tool/i18n.models.d.ts +55 -0
  23. package/tools/i18n-tool/i18n.service.d.ts +70 -0
  24. package/tools/presets-tool/presets-internal.service.d.ts +1 -1
  25. package/tools/presets-tool/presets-tool.component.d.ts +0 -5
  26. package/tools/presets-tool/presets.models.d.ts +10 -3
  27. package/tools/language-tool/language-internal.service.d.ts +0 -30
  28. package/tools/language-tool/language-tool.component.d.ts +0 -14
  29. package/tools/language-tool/language.models.d.ts +0 -4
  30. package/tools/language-tool/language.service.d.ts +0 -26
package/README.md CHANGED
@@ -133,17 +133,17 @@ export class AppComponent {
133
133
  }
134
134
  ```
135
135
 
136
- ### Language
136
+ ### i18n
137
137
 
138
138
  ```typescript
139
- import { ToolbarLanguageService } from 'ngx-dev-toolbar';
139
+ import { ToolbarI18nService } from 'ngx-dev-toolbar';
140
140
 
141
141
  @Component({...})
142
142
  export class AppComponent {
143
- private language = inject(ToolbarLanguageService);
143
+ private i18nService = inject(ToolbarI18nService);
144
144
 
145
145
  constructor() {
146
- this.language.setAvailableOptions([
146
+ this.i18nService.setAvailableOptions([
147
147
  { code: 'en', name: 'English' },
148
148
  { code: 'es', name: 'Spanish' },
149
149
  { code: 'fr', name: 'French' },
@@ -161,7 +161,7 @@ provideToolbar({
161
161
  enabled: isDevMode(),
162
162
  showFeatureFlagsTool: true,
163
163
  showPermissionsTool: true,
164
- showLanguageTool: true,
164
+ showI18nTool: true,
165
165
  showAppFeaturesTool: true,
166
166
  showPresetsTool: true,
167
167
  })
@@ -0,0 +1,6 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class GlobeIconComponent {
3
+ fill: import("@angular/core").InputSignal<string>;
4
+ static ɵfac: i0.ɵɵFactoryDeclaration<GlobeIconComponent, never>;
5
+ static ɵcmp: i0.ɵɵComponentDeclaration<GlobeIconComponent, "ndt-globe-icon", never, { "fill": { "alias": "fill"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
6
+ }
@@ -1 +1 @@
1
- export type IconName = 'angular' | 'bolt' | 'bug' | 'code' | 'database' | 'discord' | 'docs' | 'edit' | 'export' | 'filter' | 'flag' | 'gauge' | 'gear' | 'git-branch' | 'import' | 'layout' | 'lighting' | 'lightbulb' | 'lock' | 'moon' | 'network' | 'puzzle' | 'refresh' | 'star' | 'sun' | 'terminal' | 'toggle-left' | 'translate' | 'trash' | 'user';
1
+ export type IconName = 'angular' | 'bolt' | 'bug' | 'code' | 'database' | 'discord' | 'docs' | 'edit' | 'export' | 'filter' | 'flag' | 'gauge' | 'gear' | 'git-branch' | 'globe' | 'import' | 'layout' | 'lighting' | 'lightbulb' | 'lock' | 'moon' | 'network' | 'puzzle' | 'refresh' | 'star' | 'sun' | 'terminal' | 'toggle-left' | 'translate' | 'trash' | 'user';
@@ -13,7 +13,7 @@ export declare class ToolbarSelectComponent {
13
13
  label: import("@angular/core").InputSignal<string>;
14
14
  size: import("@angular/core").InputSignal<"small" | "medium">;
15
15
  placeholder: import("@angular/core").InputSignal<string>;
16
- readonly theme: import("@angular/core").Signal<"dark" | "light">;
16
+ readonly theme: import("@angular/core").Signal<"light" | "dark">;
17
17
  protected readonly selectMenuId: string;
18
18
  isOpen: import("@angular/core").WritableSignal<boolean>;
19
19
  isPlaceholder: import("@angular/core").Signal<boolean>;
@@ -1,16 +1,17 @@
1
+ import { ToolbarPosition } from '../../models/toolbar-position.model';
1
2
  import * as i0 from "@angular/core";
2
3
  export declare class ToolbarToolButtonComponent {
3
4
  private readonly state;
4
- private readonly elementRef;
5
- readonly title: import("@angular/core").InputSignal<string>;
5
+ readonly toolLabel: import("@angular/core").InputSignal<string>;
6
6
  readonly toolId: import("@angular/core").InputSignal<string>;
7
7
  readonly badge: import("@angular/core").InputSignal<string | undefined>;
8
+ readonly position: import("@angular/core").InputSignal<ToolbarPosition>;
8
9
  readonly open: import("@angular/core").OutputEmitterRef<void>;
9
10
  readonly isActive: import("@angular/core").Signal<boolean>;
10
11
  readonly isToolbarVisible: import("@angular/core").Signal<boolean>;
11
12
  readonly isFocused: import("@angular/core").WritableSignal<boolean>;
12
- readonly tooltip: import("@angular/core").Signal<any>;
13
- readonly isTooltipVisible: import("@angular/core").Signal<any>;
13
+ readonly tooltip: import("@angular/core").Signal<string>;
14
+ readonly isTooltipVisible: import("@angular/core").Signal<boolean | "">;
14
15
  protected tooltipState: boolean;
15
16
  private readonly hideDelay;
16
17
  onClick(): void;
@@ -20,5 +21,5 @@ export declare class ToolbarToolButtonComponent {
20
21
  onFocus(): void;
21
22
  onBlur(): void;
22
23
  static ɵfac: i0.ɵɵFactoryDeclaration<ToolbarToolButtonComponent, never>;
23
- static ɵcmp: i0.ɵɵComponentDeclaration<ToolbarToolButtonComponent, "ndt-tool-button", never, { "title": { "alias": "title"; "required": true; "isSignal": true; }; "toolId": { "alias": "toolId"; "required": true; "isSignal": true; }; "badge": { "alias": "badge"; "required": false; "isSignal": true; }; }, { "open": "open"; }, never, ["*"], true, never>;
24
+ static ɵcmp: i0.ɵɵComponentDeclaration<ToolbarToolButtonComponent, "ndt-tool-button", never, { "toolLabel": { "alias": "toolLabel"; "required": true; "isSignal": true; }; "toolId": { "alias": "toolId"; "required": true; "isSignal": true; }; "badge": { "alias": "badge"; "required": false; "isSignal": true; }; "position": { "alias": "position"; "required": false; "isSignal": true; }; }, { "open": "open"; }, never, ["*"], true, never>;
24
25
  }
@@ -1,3 +1,4 @@
1
+ import { ConnectedPosition } from '@angular/cdk/overlay';
1
2
  import { ElementRef } from '@angular/core';
2
3
  import { ToolbarStateService } from '../../toolbar-state.service';
3
4
  import { IconName } from '../icons/icon.models';
@@ -10,22 +11,16 @@ export declare class ToolbarToolComponent {
10
11
  buttonComponent: import("@angular/core").Signal<ToolbarToolButtonComponent | undefined>;
11
12
  options: import("@angular/core").InputSignal<ToolbarWindowOptions>;
12
13
  icon: import("@angular/core").InputSignal<IconName>;
13
- title: import("@angular/core").InputSignal<string>;
14
+ toolTitle: import("@angular/core").InputSignal<string>;
14
15
  badge: import("@angular/core").InputSignal<string | undefined>;
15
16
  isActive: import("@angular/core").Signal<boolean>;
17
+ slideDirection: import("@angular/core").Signal<"right" | "left" | "up" | "down">;
16
18
  height: import("@angular/core").Signal<320 | 480 | 620>;
17
19
  width: import("@angular/core").Signal<320 | 480 | 620 | 400>;
18
- positions: import("@angular/core").Signal<{
19
- originX: "center";
20
- originY: "center";
21
- overlayX: "center";
22
- overlayY: "center";
23
- offsetY: number;
24
- offsetX: number;
25
- }[]>;
20
+ positions: import("@angular/core").Signal<ConnectedPosition[]>;
26
21
  onOpen(): void;
27
22
  onClose(): void;
28
- getButtonContainerXPosition(): number;
23
+ private getButtonContainerRect;
29
24
  static ɵfac: i0.ɵɵFactoryDeclaration<ToolbarToolComponent, never>;
30
- static ɵcmp: i0.ɵɵComponentDeclaration<ToolbarToolComponent, "ndt-toolbar-tool", never, { "options": { "alias": "options"; "required": true; "isSignal": true; }; "icon": { "alias": "icon"; "required": true; "isSignal": true; }; "title": { "alias": "title"; "required": true; "isSignal": true; }; "badge": { "alias": "badge"; "required": false; "isSignal": true; }; }, {}, ["buttonComponent"], ["ndt-tool-button", "*"], true, never>;
25
+ static ɵcmp: i0.ɵɵComponentDeclaration<ToolbarToolComponent, "ndt-toolbar-tool", never, { "options": { "alias": "options"; "required": true; "isSignal": true; }; "icon": { "alias": "icon"; "required": true; "isSignal": true; }; "toolTitle": { "alias": "toolTitle"; "required": true; "isSignal": true; }; "badge": { "alias": "badge"; "required": false; "isSignal": true; }; }, {}, ["buttonComponent"], ["ndt-tool-button", "*"], true, never>;
31
26
  }
@@ -7,7 +7,7 @@ export declare class ToolbarWindowComponent {
7
7
  readonly closed: import("@angular/core").OutputEmitterRef<void>;
8
8
  readonly maximize: import("@angular/core").OutputEmitterRef<void>;
9
9
  readonly minimize: import("@angular/core").OutputEmitterRef<void>;
10
- readonly theme: import("@angular/core").Signal<"dark" | "light">;
10
+ readonly theme: import("@angular/core").Signal<"light" | "dark">;
11
11
  protected onClose(): void;
12
12
  protected onMaximize(): void;
13
13
  protected onMinimize(): void;