@praxisui/settings-panel 9.0.0-beta.8 → 9.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/README.md +5 -1
- package/ai/component-registry.json +1215 -0
- package/fesm2022/praxisui-settings-panel.mjs +141 -29
- package/package.json +9 -5
- package/types/praxisui-settings-panel.d.ts +17 -6
package/package.json
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@praxisui/settings-panel",
|
|
3
|
-
"version": "9.0.0-beta.
|
|
3
|
+
"version": "9.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
6
|
"@angular/common": "^21.0.0",
|
|
7
7
|
"@angular/core": "^21.0.0",
|
|
8
8
|
"@angular/cdk": "^21.0.0",
|
|
9
9
|
"@angular/material": "^21.0.0",
|
|
10
|
-
"@praxisui/ai": "^9.0.0-beta.
|
|
11
|
-
"@praxisui/core": "^9.0.0-beta.
|
|
12
|
-
"@praxisui/dynamic-fields": "^9.0.0-beta.
|
|
10
|
+
"@praxisui/ai": "^9.0.0-beta.80",
|
|
11
|
+
"@praxisui/core": "^9.0.0-beta.80",
|
|
12
|
+
"@praxisui/dynamic-fields": "^9.0.0-beta.80",
|
|
13
13
|
"rxjs": "~7.8.0"
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
@@ -23,6 +23,7 @@
|
|
|
23
23
|
"keywords": [
|
|
24
24
|
"angular",
|
|
25
25
|
"praxisui",
|
|
26
|
+
"praxis",
|
|
26
27
|
"settings",
|
|
27
28
|
"panel",
|
|
28
29
|
"drawer",
|
|
@@ -38,7 +39,10 @@
|
|
|
38
39
|
".": {
|
|
39
40
|
"types": "./types/praxisui-settings-panel.d.ts",
|
|
40
41
|
"default": "./fesm2022/praxisui-settings-panel.mjs"
|
|
42
|
+
},
|
|
43
|
+
"./ai/component-registry.json": {
|
|
44
|
+
"default": "./ai/component-registry.json"
|
|
41
45
|
}
|
|
42
46
|
},
|
|
43
47
|
"type": "module"
|
|
44
|
-
}
|
|
48
|
+
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { Type, Injector, ComponentRef, Provider, ChangeDetectorRef, InjectionToken, OnDestroy, OnInit, AfterViewInit, ViewContainerRef } from '@angular/core';
|
|
2
|
+
import { Type, Injector, ComponentRef, Provider, ChangeDetectorRef, ElementRef, InjectionToken, OnDestroy, OnInit, AfterViewInit, ViewContainerRef } from '@angular/core';
|
|
3
3
|
import * as rxjs from 'rxjs';
|
|
4
4
|
import { Observable, BehaviorSubject } from 'rxjs';
|
|
5
|
-
import { OverlayRef, Overlay } from '@angular/cdk/overlay';
|
|
6
|
-
import { PraxisI18nService, GlobalConfig, FormConfig, FormValueChangeEvent, AiCapability, AiCapabilityCategory, AiCapabilityCatalog, AiValueKind, ComponentAuthoringManifest } from '@praxisui/core';
|
|
5
|
+
import { OverlayRef, Overlay, OverlayContainer } from '@angular/cdk/overlay';
|
|
6
|
+
import { PraxisI18nService, GlobalConfig, FormConfig, FormValueChangeEvent, AiCapability, AiCapabilityCategory, AiCapabilityCatalog, AiValueKind, ComponentAuthoringManifest, ComponentDocMeta } 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';
|
|
@@ -304,19 +304,22 @@ interface SidePanelHostOpenOptions<TComponent, TRef extends SidePanelActiveRef>
|
|
|
304
304
|
declare class BaseSidePanelService {
|
|
305
305
|
private readonly overlay;
|
|
306
306
|
private readonly injector;
|
|
307
|
+
private readonly overlayContainer;
|
|
307
308
|
private readonly currentByScope;
|
|
308
|
-
constructor(overlay: Overlay, injector: Injector);
|
|
309
|
+
constructor(overlay: Overlay, injector: Injector, overlayContainer: OverlayContainer);
|
|
309
310
|
open<TInputs = any, TResult = unknown>(config: BaseSidePanelOpenOptions<TInputs>): BaseSidePanelOverlayRef<TResult>;
|
|
310
311
|
close(reason?: string): void;
|
|
311
312
|
openHost<TComponent, TRef extends SidePanelActiveRef>(options: SidePanelHostOpenOptions<TComponent, TRef>): TRef;
|
|
312
313
|
closeScope(scope: string, reason?: string): void;
|
|
313
314
|
private buildOverlayConfig;
|
|
315
|
+
private constrainToViewport;
|
|
314
316
|
private resolveWidth;
|
|
315
317
|
private resolveOpenConfig;
|
|
316
318
|
private resolvePersistedWidth;
|
|
317
319
|
private persistWidth;
|
|
318
320
|
private storageKey;
|
|
319
321
|
private isPixelWidth;
|
|
322
|
+
private shouldDeferEscape;
|
|
320
323
|
private closeResult;
|
|
321
324
|
private trackCurrentRef;
|
|
322
325
|
static ɵfac: i0.ɵɵFactoryDeclaration<BaseSidePanelService, never>;
|
|
@@ -384,6 +387,8 @@ interface SettingsPanelLayoutState {
|
|
|
384
387
|
declare class SettingsPanelComponent {
|
|
385
388
|
private cdr;
|
|
386
389
|
private dialog;
|
|
390
|
+
private elementRef;
|
|
391
|
+
private overlayContainer;
|
|
387
392
|
title: string;
|
|
388
393
|
titleIcon?: string;
|
|
389
394
|
width: string;
|
|
@@ -410,7 +415,7 @@ declare class SettingsPanelComponent {
|
|
|
410
415
|
readonly applyActionLabel: string;
|
|
411
416
|
readonly saveActionLabel: string;
|
|
412
417
|
private contentHost;
|
|
413
|
-
constructor(cdr: ChangeDetectorRef, dialog: MatDialog);
|
|
418
|
+
constructor(cdr: ChangeDetectorRef, dialog: MatDialog, elementRef: ElementRef<HTMLElement>, overlayContainer: OverlayContainer);
|
|
414
419
|
get canApply(): boolean;
|
|
415
420
|
get panelInlineStyles(): Record<string, string | null>;
|
|
416
421
|
get showResizeHandle(): boolean;
|
|
@@ -440,6 +445,7 @@ declare class SettingsPanelComponent {
|
|
|
440
445
|
onCancel(): void;
|
|
441
446
|
requestClose(reason: SettingsPanelCloseReason): Observable<boolean>;
|
|
442
447
|
handleKeydown(event: KeyboardEvent): void;
|
|
448
|
+
private shouldDeferEscape;
|
|
443
449
|
onDocumentPointerMove(event: PointerEvent): void;
|
|
444
450
|
onDocumentPointerEnd(event: PointerEvent): void;
|
|
445
451
|
private getCurrentWidthPx;
|
|
@@ -729,5 +735,10 @@ declare const SETTINGS_PANEL_AI_CAPABILITIES: CapabilityCatalog;
|
|
|
729
735
|
|
|
730
736
|
declare const PRAXIS_SETTINGS_PANEL_AUTHORING_MANIFEST: ComponentAuthoringManifest;
|
|
731
737
|
|
|
732
|
-
|
|
738
|
+
/** Metadata for Praxis Settings Panel component */
|
|
739
|
+
declare const PRAXIS_SETTINGS_PANEL_COMPONENT_METADATA: ComponentDocMeta;
|
|
740
|
+
/** Provider para auto-registrar metadados do componente Settings Panel. */
|
|
741
|
+
declare function providePraxisSettingsPanelMetadata(): Provider;
|
|
742
|
+
|
|
743
|
+
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, PRAXIS_SETTINGS_PANEL_COMPONENT_METADATA, SETTINGS_PANEL_AI_CAPABILITIES, SETTINGS_PANEL_DATA, SETTINGS_PANEL_REF, SIDE_PANEL_THEME_CSS_VARS, SettingsPanelComponent, SettingsPanelRef, SettingsPanelService, SurfaceDrawerComponent, buildGlobalConfigFormConfig, openGlobalConfigEditor, providePraxisSettingsPanelBridge, providePraxisSettingsPanelMetadata, providePraxisSurfaceDrawerBridge };
|
|
733
744
|
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 };
|