@praxisui/settings-panel 10.0.0-rc.67 → 10.0.0-rc.69
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,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@praxisui/settings-panel",
|
|
3
|
-
"version": "10.0.0-rc.
|
|
3
|
+
"version": "10.0.0-rc.69",
|
|
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": "^10.0.0-rc.
|
|
11
|
-
"@praxisui/core": "^10.0.0-rc.
|
|
12
|
-
"@praxisui/dynamic-fields": "^10.0.0-rc.
|
|
10
|
+
"@praxisui/ai": "^10.0.0-rc.69",
|
|
11
|
+
"@praxisui/core": "^10.0.0-rc.69",
|
|
12
|
+
"@praxisui/dynamic-fields": "^10.0.0-rc.69",
|
|
13
13
|
"rxjs": "~7.8.0"
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
@@ -293,7 +293,11 @@ interface BaseSidePanelRef<T = unknown> {
|
|
|
293
293
|
updateTitle?(title: string): void;
|
|
294
294
|
updateSize?(size: SidePanelWidthPreset | string | {
|
|
295
295
|
width?: string;
|
|
296
|
+
}, options?: {
|
|
297
|
+
persist?: boolean;
|
|
296
298
|
}): void;
|
|
299
|
+
setExpanded?(expanded: boolean): void;
|
|
300
|
+
toggleExpanded?(): void;
|
|
297
301
|
}
|
|
298
302
|
interface BaseSidePanelContent<TInputs = any> {
|
|
299
303
|
component: Type<any>;
|
|
@@ -310,6 +314,7 @@ interface BaseSidePanelOpenOptions<TInputs = any> {
|
|
|
310
314
|
minWidth?: string;
|
|
311
315
|
maxWidth?: string;
|
|
312
316
|
resizable?: boolean;
|
|
317
|
+
expandable?: boolean;
|
|
313
318
|
resizeAxis?: BaseSidePanelResizeAxis;
|
|
314
319
|
persistSizeKey?: string;
|
|
315
320
|
content: BaseSidePanelContent<TInputs>;
|
|
@@ -326,6 +331,7 @@ declare class BaseSidePanelOverlayRef<T = unknown> implements BaseSidePanelRef<T
|
|
|
326
331
|
private overlayRef;
|
|
327
332
|
private titleUpdater?;
|
|
328
333
|
private sizePersistor?;
|
|
334
|
+
private expandController?;
|
|
329
335
|
private terminalOutcomeEmitted;
|
|
330
336
|
readonly closed$: rxjs.Observable<BaseSidePanelResult<T> | undefined>;
|
|
331
337
|
readonly result$: rxjs.Observable<BaseSidePanelResult<T>>;
|
|
@@ -335,11 +341,19 @@ declare class BaseSidePanelOverlayRef<T = unknown> implements BaseSidePanelRef<T
|
|
|
335
341
|
constructor(overlayRef: OverlayRef);
|
|
336
342
|
bindTitleUpdater(fn: (title: string) => void): void;
|
|
337
343
|
bindSizePersistor(fn: (width: string) => void): void;
|
|
344
|
+
bindExpandController(controller: {
|
|
345
|
+
setExpanded: (expanded: boolean) => void;
|
|
346
|
+
toggleExpanded: () => void;
|
|
347
|
+
}): void;
|
|
348
|
+
setExpanded(expanded: boolean): void;
|
|
349
|
+
toggleExpanded(): void;
|
|
338
350
|
emitResult(result: BaseSidePanelResult<T>): void;
|
|
339
351
|
complete(outcome: SurfaceOutcome<T>): void;
|
|
340
352
|
updateTitle(title: string): void;
|
|
341
353
|
updateSize(size: string | {
|
|
342
354
|
width?: string;
|
|
355
|
+
}, options?: {
|
|
356
|
+
persist?: boolean;
|
|
343
357
|
}): void;
|
|
344
358
|
close(result?: BaseSidePanelResult<T>): void;
|
|
345
359
|
private resolveWidth;
|
|
@@ -385,8 +399,6 @@ declare class BaseSidePanelService {
|
|
|
385
399
|
private resolveOpenConfig;
|
|
386
400
|
private resolvePersistedWidth;
|
|
387
401
|
private persistWidth;
|
|
388
|
-
private storageKey;
|
|
389
|
-
private isPixelWidth;
|
|
390
402
|
private shouldDeferEscape;
|
|
391
403
|
private closeResult;
|
|
392
404
|
private trackCurrentRef;
|
|
@@ -437,10 +449,22 @@ declare class SurfaceDrawerComponent implements OnDestroy {
|
|
|
437
449
|
titleIcon?: string;
|
|
438
450
|
subtitle?: string;
|
|
439
451
|
widthPreset: 'narrow' | 'default' | 'wide' | 'full';
|
|
452
|
+
width?: string;
|
|
453
|
+
minWidth?: string;
|
|
454
|
+
maxWidth?: string;
|
|
455
|
+
resizable: boolean;
|
|
456
|
+
expandable: boolean;
|
|
457
|
+
resizeAxis: 'x';
|
|
458
|
+
persistSizeKey?: string;
|
|
440
459
|
useHostWidth: boolean;
|
|
460
|
+
isExpanded: boolean;
|
|
461
|
+
isResizing: boolean;
|
|
441
462
|
theme: SidePanelThemeContract | null;
|
|
442
463
|
onClose?: () => void;
|
|
443
464
|
onBack?: () => void;
|
|
465
|
+
onResizeWidth?: (width: string, options?: {
|
|
466
|
+
persist?: boolean;
|
|
467
|
+
}) => void;
|
|
444
468
|
private static nextId;
|
|
445
469
|
titleId: string;
|
|
446
470
|
subtitleId: string;
|
|
@@ -449,6 +473,12 @@ declare class SurfaceDrawerComponent implements OnDestroy {
|
|
|
449
473
|
private body?;
|
|
450
474
|
private backButton?;
|
|
451
475
|
private frames;
|
|
476
|
+
private activePointerId;
|
|
477
|
+
private dragStartX;
|
|
478
|
+
private dragStartWidth;
|
|
479
|
+
private collapsedWidthBeforeExpand;
|
|
480
|
+
private suppressNextBackdropClick;
|
|
481
|
+
private backdropSuppressTimer;
|
|
452
482
|
constructor(cdr: ChangeDetectorRef, i18n: PraxisI18nService);
|
|
453
483
|
get hostClasses(): string[];
|
|
454
484
|
get hostCssVars(): Record<string, string>;
|
|
@@ -458,7 +488,26 @@ declare class SurfaceDrawerComponent implements OnDestroy {
|
|
|
458
488
|
get navigationDepth(): number;
|
|
459
489
|
get activeFrameId(): string;
|
|
460
490
|
get hasHeader(): boolean;
|
|
491
|
+
get tracksHostWidth(): boolean;
|
|
492
|
+
get showResizeHandle(): boolean;
|
|
493
|
+
get showExpandButton(): boolean;
|
|
494
|
+
get expandLabel(): string;
|
|
495
|
+
get resizeHandleLabel(): string;
|
|
496
|
+
get resizeMinWidthPx(): number;
|
|
497
|
+
get resizeMaxWidthPx(): number;
|
|
498
|
+
get resizeCurrentWidthPx(): number;
|
|
461
499
|
get widthClass(): string | null;
|
|
500
|
+
syncHostWidth(width: string): void;
|
|
501
|
+
syncCollapsedWidth(width: string): void;
|
|
502
|
+
onWindowResize(): void;
|
|
503
|
+
setExpanded(expanded: boolean): void;
|
|
504
|
+
shouldSuppressBackdropClose(): boolean;
|
|
505
|
+
toggleExpanded(): void;
|
|
506
|
+
onResizeHandlePointerDown(event: PointerEvent): void;
|
|
507
|
+
onResizeHandleDoubleClick(event: MouseEvent): void;
|
|
508
|
+
onResizeHandleKeydown(event: KeyboardEvent): void;
|
|
509
|
+
onDocumentPointerMove(event: PointerEvent): void;
|
|
510
|
+
onDocumentPointerEnd(event: PointerEvent): void;
|
|
462
511
|
setTitle(title: string): void;
|
|
463
512
|
ngOnDestroy(): void;
|
|
464
513
|
attachContent(component: Type<any>, injector: Injector, inputs?: Record<string, unknown>): ComponentRef<any>;
|
|
@@ -478,6 +527,10 @@ declare class SurfaceDrawerComponent implements OnDestroy {
|
|
|
478
527
|
private focusNavigationControl;
|
|
479
528
|
private applyInputs;
|
|
480
529
|
private resolveSupportedInputs;
|
|
530
|
+
private promoteExpandedWidthBeforeManualResize;
|
|
531
|
+
private getCurrentWidthPx;
|
|
532
|
+
private applyWidthPx;
|
|
533
|
+
private stopResizeSession;
|
|
481
534
|
static ɵfac: i0.ɵɵFactoryDeclaration<SurfaceDrawerComponent, never>;
|
|
482
535
|
static ɵcmp: i0.ɵɵComponentDeclaration<SurfaceDrawerComponent, "praxis-surface-drawer", never, {}, {}, never, never, true, never>;
|
|
483
536
|
}
|
|
@@ -652,17 +705,25 @@ declare class BaseSidePanelComponent implements OnDestroy {
|
|
|
652
705
|
minWidth?: string;
|
|
653
706
|
maxWidth?: string;
|
|
654
707
|
resizable: boolean;
|
|
708
|
+
expandable: boolean;
|
|
655
709
|
resizeAxis: BaseSidePanelResizeAxis;
|
|
656
710
|
persistSizeKey?: string;
|
|
657
711
|
useHostWidth: boolean;
|
|
712
|
+
isExpanded: boolean;
|
|
713
|
+
isResizing: boolean;
|
|
658
714
|
theme: SidePanelThemeContract | null;
|
|
659
715
|
onClose?: () => void;
|
|
660
|
-
onResizeWidth?: (width: string
|
|
716
|
+
onResizeWidth?: (width: string, options?: {
|
|
717
|
+
persist?: boolean;
|
|
718
|
+
}) => void;
|
|
661
719
|
private static nextId;
|
|
662
720
|
titleId: string;
|
|
663
721
|
private activePointerId;
|
|
664
722
|
private dragStartX;
|
|
665
723
|
private dragStartWidth;
|
|
724
|
+
private collapsedWidthBeforeExpand;
|
|
725
|
+
private suppressNextBackdropClick;
|
|
726
|
+
private backdropSuppressTimer;
|
|
666
727
|
contentRef?: ComponentRef<any>;
|
|
667
728
|
footerRef?: ComponentRef<any>;
|
|
668
729
|
private contentHost;
|
|
@@ -671,6 +732,7 @@ declare class BaseSidePanelComponent implements OnDestroy {
|
|
|
671
732
|
ngOnDestroy(): void;
|
|
672
733
|
get hostClasses(): string[];
|
|
673
734
|
get hostCssVars(): Record<string, string>;
|
|
735
|
+
get tracksHostWidth(): boolean;
|
|
674
736
|
get panelInlineStyles(): Record<string, string | null>;
|
|
675
737
|
get mergedHostStyles(): Record<string, string | null>;
|
|
676
738
|
get closeLabel(): string;
|
|
@@ -679,8 +741,18 @@ declare class BaseSidePanelComponent implements OnDestroy {
|
|
|
679
741
|
get hasFooter(): boolean;
|
|
680
742
|
get widthClass(): string | null;
|
|
681
743
|
get showResizeHandle(): boolean;
|
|
744
|
+
get showExpandButton(): boolean;
|
|
745
|
+
get expandLabel(): string;
|
|
746
|
+
get resizeMinWidthPx(): number;
|
|
747
|
+
get resizeMaxWidthPx(): number;
|
|
748
|
+
get resizeCurrentWidthPx(): number;
|
|
749
|
+
onWindowResize(): void;
|
|
682
750
|
setTitle(title: string): void;
|
|
751
|
+
setExpanded(expanded: boolean): void;
|
|
752
|
+
shouldSuppressBackdropClose(): boolean;
|
|
753
|
+
toggleExpanded(): void;
|
|
683
754
|
onResizeHandlePointerDown(event: PointerEvent): void;
|
|
755
|
+
onResizeHandleDoubleClick(event: MouseEvent): void;
|
|
684
756
|
onResizeHandleKeydown(event: KeyboardEvent): void;
|
|
685
757
|
onDocumentPointerMove(event: PointerEvent): void;
|
|
686
758
|
onDocumentPointerEnd(event: PointerEvent): void;
|
|
@@ -690,6 +762,7 @@ declare class BaseSidePanelComponent implements OnDestroy {
|
|
|
690
762
|
private applyInputs;
|
|
691
763
|
private resolveSupportedInputs;
|
|
692
764
|
private stopResizeSession;
|
|
765
|
+
private promoteExpandedBeforeManualResize;
|
|
693
766
|
private getCurrentWidthPx;
|
|
694
767
|
private applyWidthPx;
|
|
695
768
|
private clampWidthPx;
|