@praxisui/settings-panel 8.0.0-beta.8 → 8.0.0-beta.80

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/package.json CHANGED
@@ -1,15 +1,16 @@
1
1
  {
2
2
  "name": "@praxisui/settings-panel",
3
- "version": "8.0.0-beta.8",
3
+ "version": "8.0.0-beta.80",
4
4
  "description": "Settings panel for Praxis UI libraries: open editors for configuration at runtime and persist settings.",
5
5
  "peerDependencies": {
6
- "@angular/common": "^20.0.0",
7
- "@angular/core": "^20.0.0",
8
- "@angular/cdk": "^20.0.0",
9
- "@angular/material": "^20.0.0",
10
- "@praxisui/ai": "^8.0.0-beta.8",
11
- "@praxisui/core": "^8.0.0-beta.8",
12
- "@praxisui/dynamic-fields": "^8.0.0-beta.8"
6
+ "@angular/common": "^21.0.0",
7
+ "@angular/core": "^21.0.0",
8
+ "@angular/cdk": "^21.0.0",
9
+ "@angular/material": "^21.0.0",
10
+ "@praxisui/ai": "^8.0.0-beta.80",
11
+ "@praxisui/core": "^8.0.0-beta.80",
12
+ "@praxisui/dynamic-fields": "^8.0.0-beta.80",
13
+ "rxjs": "~7.8.0"
13
14
  },
14
15
  "dependencies": {
15
16
  "tslib": "^2.3.0"
@@ -36,14 +37,15 @@
36
37
  ],
37
38
  "sideEffects": false,
38
39
  "module": "fesm2022/praxisui-settings-panel.mjs",
39
- "typings": "index.d.ts",
40
+ "typings": "types/praxisui-settings-panel.d.ts",
40
41
  "exports": {
41
42
  "./package.json": {
42
43
  "default": "./package.json"
43
44
  },
44
45
  ".": {
45
- "types": "./index.d.ts",
46
+ "types": "./types/praxisui-settings-panel.d.ts",
46
47
  "default": "./fesm2022/praxisui-settings-panel.mjs"
47
48
  }
48
- }
49
+ },
50
+ "type": "module"
49
51
  }
@@ -3,7 +3,7 @@ import { Type, Injector, ComponentRef, Provider, ChangeDetectorRef, InjectionTok
3
3
  import * as rxjs from 'rxjs';
4
4
  import { Observable, BehaviorSubject } from 'rxjs';
5
5
  import { OverlayRef, Overlay } from '@angular/cdk/overlay';
6
- import { PraxisI18nService, GlobalConfig, FormConfig, FormValueChangeEvent, AiCapabilityCategory, AiValueKind, AiCapability, AiCapabilityCatalog } from '@praxisui/core';
6
+ import { PraxisI18nService, GlobalConfig, FormConfig, FormValueChangeEvent, AiCapability, AiCapabilityCategory, AiCapabilityCatalog, AiValueKind, ComponentAuthoringManifest } from '@praxisui/core';
7
7
  import { MatDialog } from '@angular/material/dialog';
8
8
  import { MatSnackBar } from '@angular/material/snack-bar';
9
9
  import { AiProviderCatalogItem } from '@praxisui/ai';
@@ -19,11 +19,18 @@ interface SettingsPanelConfig {
19
19
  persistSizeKey?: string;
20
20
  minWidth?: string;
21
21
  maxWidth?: string;
22
+ diagnostics?: SettingsPanelDiagnosticsConfig;
22
23
  content: {
23
24
  component: Type<any>;
24
25
  inputs?: Record<string, any>;
25
26
  };
26
27
  }
28
+ interface SettingsPanelDiagnosticsConfig {
29
+ showStatusMessage?: boolean;
30
+ showDisabledReason?: boolean;
31
+ showBusyState?: boolean;
32
+ exposeValidationState?: boolean;
33
+ }
27
34
  interface SettingsValueProvider {
28
35
  /**
29
36
  * Retorna o valor atual das configurações para ser salvo/aplicado
@@ -392,6 +399,7 @@ declare class SettingsPanelComponent {
392
399
  isDirty: boolean;
393
400
  isValid: boolean;
394
401
  isBusy: boolean;
402
+ diagnostics: Required<SettingsPanelDiagnosticsConfig>;
395
403
  private lastSavedAt;
396
404
  private activePointerId;
397
405
  private dragStartX;
@@ -407,7 +415,10 @@ declare class SettingsPanelComponent {
407
415
  get resizeHandleLabel(): string;
408
416
  get canSave(): boolean;
409
417
  get disabledReason(): string;
410
- get statusTone(): 'busy' | 'dirty' | 'saved' | 'idle';
418
+ get applySaveDisabledReason(): string;
419
+ get showStatusMessage(): boolean;
420
+ get showBusyIndicator(): boolean;
421
+ get statusTone(): 'busy' | 'dirty' | 'invalid' | 'saved' | 'idle';
411
422
  get statusMessage(): string;
412
423
  tx(text: string, params?: Record<string, string | number | boolean | null | undefined>): string;
413
424
  attachContent(component: Type<any>, injector: Injector, ref: SettingsPanelRef, inputs?: Record<string, unknown>): void;
@@ -419,6 +430,7 @@ declare class SettingsPanelComponent {
419
430
  private emitSave;
420
431
  private formatClock;
421
432
  initializeLayout(state: SettingsPanelLayoutState): void;
433
+ configureDiagnostics(config?: SettingsPanelDiagnosticsConfig): void;
422
434
  toggleExpand(): void;
423
435
  onResizeHandlePointerDown(event: PointerEvent): void;
424
436
  onResizeHandleKeydown(event: KeyboardEvent): void;
@@ -712,5 +724,7 @@ interface CapabilityCatalog extends AiCapabilityCatalog {
712
724
  }
713
725
  declare const SETTINGS_PANEL_AI_CAPABILITIES: CapabilityCatalog;
714
726
 
715
- export { BASE_SIDE_PANEL_DATA, BASE_SIDE_PANEL_REF, BaseSidePanelComponent, BaseSidePanelOverlayRef, BaseSidePanelService, DeferredSettingsPanelRef, GLOBAL_CONFIG_DYNAMIC_FORM_COMPONENT, GlobalConfigAdminService, GlobalConfigEditorComponent, SETTINGS_PANEL_AI_CAPABILITIES, SETTINGS_PANEL_DATA, SETTINGS_PANEL_REF, SIDE_PANEL_THEME_CSS_VARS, SettingsPanelComponent, SettingsPanelRef, SettingsPanelService, SurfaceDrawerComponent, buildGlobalConfigFormConfig, openGlobalConfigEditor, providePraxisSettingsPanelBridge, providePraxisSurfaceDrawerBridge };
716
- export type { BaseSidePanelCloseReason, BaseSidePanelContent, BaseSidePanelOpenOptions, BaseSidePanelRef, BaseSidePanelResizeAxis, BaseSidePanelResult, Capability, CapabilityCatalog, CapabilityCategory, GlobalConfigEditorFieldSpec, GlobalConfigEditorGroup, GlobalConfigEditorOption, GlobalConfigEditorState, OpenGlobalConfigOptions, SettingsPanelAction, SettingsPanelCloseReason, SettingsPanelConfig, SettingsValueProvider, SidePanelCssVarName, SidePanelMotionContract, SidePanelThemeContract, SidePanelWidthPreset, ValueKind };
727
+ declare const PRAXIS_SETTINGS_PANEL_AUTHORING_MANIFEST: ComponentAuthoringManifest;
728
+
729
+ export { BASE_SIDE_PANEL_DATA, BASE_SIDE_PANEL_REF, BaseSidePanelComponent, BaseSidePanelOverlayRef, BaseSidePanelService, DeferredSettingsPanelRef, GLOBAL_CONFIG_DYNAMIC_FORM_COMPONENT, GlobalConfigAdminService, GlobalConfigEditorComponent, PRAXIS_SETTINGS_PANEL_AUTHORING_MANIFEST, SETTINGS_PANEL_AI_CAPABILITIES, SETTINGS_PANEL_DATA, SETTINGS_PANEL_REF, SIDE_PANEL_THEME_CSS_VARS, SettingsPanelComponent, SettingsPanelRef, SettingsPanelService, SurfaceDrawerComponent, buildGlobalConfigFormConfig, openGlobalConfigEditor, providePraxisSettingsPanelBridge, providePraxisSurfaceDrawerBridge };
730
+ export type { BaseSidePanelCloseReason, BaseSidePanelContent, BaseSidePanelOpenOptions, BaseSidePanelRef, BaseSidePanelResizeAxis, BaseSidePanelResult, Capability, CapabilityCatalog, CapabilityCategory, GlobalConfigEditorFieldSpec, GlobalConfigEditorGroup, GlobalConfigEditorOption, GlobalConfigEditorState, OpenGlobalConfigOptions, SettingsPanelAction, SettingsPanelCloseReason, SettingsPanelConfig, SettingsPanelDiagnosticsConfig, SettingsValueProvider, SidePanelCssVarName, SidePanelMotionContract, SidePanelThemeContract, SidePanelWidthPreset, ValueKind };