@praxisui/core 9.0.64 → 9.0.66
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 +140 -0
- package/ai/component-registry.json +16 -16
- package/fesm2022/praxisui-core.mjs +1137 -155
- package/package.json +1 -1
- package/types/praxisui-core.d.ts +78 -2
package/package.json
CHANGED
package/types/praxisui-core.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ import * as _praxisui_core from '@praxisui/core';
|
|
|
7
7
|
import { ValidationErrors, ValidatorFn, AsyncValidatorFn, FormGroup, AbstractControl, FormControl } from '@angular/forms';
|
|
8
8
|
import { ThemePalette, DateAdapter } from '@angular/material/core';
|
|
9
9
|
import { ActivatedRoute } from '@angular/router';
|
|
10
|
+
import { ConnectedPosition } from '@angular/cdk/overlay';
|
|
10
11
|
import { MatDialogRef } from '@angular/material/dialog';
|
|
11
12
|
|
|
12
13
|
declare class PraxisCore {
|
|
@@ -14496,6 +14497,9 @@ interface WidgetPageLayout {
|
|
|
14496
14497
|
};
|
|
14497
14498
|
}
|
|
14498
14499
|
interface WidgetPageCanvasConstraints {
|
|
14500
|
+
/** Outer widget height limits in content-row canvases; minimum defaults to 160px. */
|
|
14501
|
+
minHeightPx?: number;
|
|
14502
|
+
maxHeightPx?: number;
|
|
14499
14503
|
minColSpan?: number;
|
|
14500
14504
|
minRowSpan?: number;
|
|
14501
14505
|
maxColSpan?: number;
|
|
@@ -14508,6 +14512,14 @@ interface WidgetPageCanvasItem {
|
|
|
14508
14512
|
row: number;
|
|
14509
14513
|
colSpan: number;
|
|
14510
14514
|
rowSpan: number;
|
|
14515
|
+
/** Independent outer size in autoRows:'content'. Omission inherits; 'auto'
|
|
14516
|
+
* explicitly restores natural height in a device override. Top inset preserves
|
|
14517
|
+
* the opposite edge during north resize. Fixed-row canvases retain grid sizing.
|
|
14518
|
+
*/
|
|
14519
|
+
contentSize?: 'auto' | {
|
|
14520
|
+
heightPx: number;
|
|
14521
|
+
offsetTopPx?: number;
|
|
14522
|
+
};
|
|
14511
14523
|
zIndex?: number;
|
|
14512
14524
|
constraints?: WidgetPageCanvasConstraints;
|
|
14513
14525
|
}
|
|
@@ -14526,6 +14538,7 @@ interface WidgetPageCanvasItemOverride {
|
|
|
14526
14538
|
row?: number;
|
|
14527
14539
|
colSpan?: number;
|
|
14528
14540
|
rowSpan?: number;
|
|
14541
|
+
contentSize?: WidgetPageCanvasItem['contentSize'];
|
|
14529
14542
|
hidden?: boolean;
|
|
14530
14543
|
zIndex?: number;
|
|
14531
14544
|
constraints?: WidgetPageCanvasConstraints;
|
|
@@ -16260,6 +16273,18 @@ type Appearance = WidgetShellConfig['appearance'];
|
|
|
16260
16273
|
declare const BUILTIN_SHELL_PRESETS: Record<string, NonNullable<Appearance>>;
|
|
16261
16274
|
declare class WidgetShellComponent implements OnChanges {
|
|
16262
16275
|
private readonly i18n;
|
|
16276
|
+
private readonly changeDetector;
|
|
16277
|
+
private readonly destroyRef;
|
|
16278
|
+
private readonly element;
|
|
16279
|
+
protected readonly scrollRecovery: i0.WritableSignal<boolean>;
|
|
16280
|
+
private scrollResizeObserver?;
|
|
16281
|
+
private scrollMutationObserver?;
|
|
16282
|
+
private scrollObservedElements;
|
|
16283
|
+
private scrollObservedBody?;
|
|
16284
|
+
private scrollFrame?;
|
|
16285
|
+
constructor();
|
|
16286
|
+
private disconnectScrollGeometry;
|
|
16287
|
+
private observeScrollGeometry;
|
|
16263
16288
|
get hostCollapsed(): boolean;
|
|
16264
16289
|
get dragSurfaceInteractive(): boolean;
|
|
16265
16290
|
shell?: WidgetShellConfig | null;
|
|
@@ -16276,6 +16301,7 @@ declare class WidgetShellComponent implements OnChanges {
|
|
|
16276
16301
|
collapsed: boolean;
|
|
16277
16302
|
expanded: boolean;
|
|
16278
16303
|
fullscreen: boolean;
|
|
16304
|
+
private overlayReturnFocus;
|
|
16279
16305
|
private initializedWindowState;
|
|
16280
16306
|
private lastWindowStateInputs?;
|
|
16281
16307
|
ngOnChanges(changes: SimpleChanges): void;
|
|
@@ -16293,8 +16319,12 @@ declare class WidgetShellComponent implements OnChanges {
|
|
|
16293
16319
|
private get mergedActions();
|
|
16294
16320
|
onHeaderPointerDown(event: PointerEvent): void;
|
|
16295
16321
|
onHeaderKeydown(event: KeyboardEvent): void;
|
|
16322
|
+
onAuthoringDragPointerDown(event: PointerEvent): void;
|
|
16323
|
+
onAuthoringDragKeydown(event: KeyboardEvent): void;
|
|
16296
16324
|
stopIfExpanded(ev: MouseEvent): void;
|
|
16297
16325
|
closeOverlay(): void;
|
|
16326
|
+
onOverlayEscape(event: Event): void;
|
|
16327
|
+
private restoreOverlayFocus;
|
|
16298
16328
|
moreActionsLabel(): string;
|
|
16299
16329
|
private handleWindowAction;
|
|
16300
16330
|
private buildWindowActions;
|
|
@@ -16776,7 +16806,7 @@ interface RenderedWidgetGroup {
|
|
|
16776
16806
|
type CanvasResizeHandle = 'north' | 'south' | 'east' | 'west' | 'north-east' | 'north-west' | 'south-east' | 'south-west';
|
|
16777
16807
|
interface CanvasResizeHandleDefinition {
|
|
16778
16808
|
id: CanvasResizeHandle;
|
|
16779
|
-
|
|
16809
|
+
icon: string;
|
|
16780
16810
|
}
|
|
16781
16811
|
declare class DynamicWidgetPageComponent implements OnChanges, OnDestroy {
|
|
16782
16812
|
pageCanvasHost?: ElementRef<HTMLElement>;
|
|
@@ -16820,6 +16850,7 @@ declare class DynamicWidgetPageComponent implements OnChanges, OnDestroy {
|
|
|
16820
16850
|
gridAutoRows: string;
|
|
16821
16851
|
layoutAnnouncement: string;
|
|
16822
16852
|
readonly canvasResizeHandles: readonly CanvasResizeHandleDefinition[];
|
|
16853
|
+
readonly contextualResizeHandles: CanvasResizeHandleDefinition[];
|
|
16823
16854
|
private pageDefinition?;
|
|
16824
16855
|
/**
|
|
16825
16856
|
* Last canonical definition accepted from the host or published by the
|
|
@@ -16839,9 +16870,17 @@ declare class DynamicWidgetPageComponent implements OnChanges, OnDestroy {
|
|
|
16839
16870
|
private activeTabs;
|
|
16840
16871
|
private widgetDiagnostics;
|
|
16841
16872
|
private readonly selectedWidgetKeyState;
|
|
16873
|
+
readonly selectedCanvasWidget: i0.Signal<WidgetInstance | undefined>;
|
|
16842
16874
|
private blockedCanvasWidgetKey;
|
|
16843
16875
|
private canvasPreviewState;
|
|
16844
16876
|
private canvasPreviewInvalidState;
|
|
16877
|
+
private resizeFeedbackState;
|
|
16878
|
+
readonly resizeFeedbackOrigin: i0.WritableSignal<{
|
|
16879
|
+
x: number;
|
|
16880
|
+
y: number;
|
|
16881
|
+
} | null>;
|
|
16882
|
+
readonly resizeFeedbackPositions: ConnectedPosition[];
|
|
16883
|
+
prepareResizeFeedbackOverlay(element: HTMLElement): void;
|
|
16845
16884
|
private transientCanvasItemsState;
|
|
16846
16885
|
private activeCanvasInteraction;
|
|
16847
16886
|
private appliedPersisted;
|
|
@@ -16871,6 +16910,12 @@ declare class DynamicWidgetPageComponent implements OnChanges, OnDestroy {
|
|
|
16871
16910
|
private runtimeObservationRegistration;
|
|
16872
16911
|
private readonly hostElement;
|
|
16873
16912
|
private readonly changeDetector;
|
|
16913
|
+
private static resizePopoverSequence;
|
|
16914
|
+
readonly resizePopoverId: string;
|
|
16915
|
+
readonly resizePopoverOrigin: i0.WritableSignal<HTMLElement | null>;
|
|
16916
|
+
private resizePopoverReturnFocus;
|
|
16917
|
+
private readonly projectedResizeActions;
|
|
16918
|
+
readonly resizePopoverPositions: ConnectedPosition[];
|
|
16874
16919
|
private hostResizeObserver?;
|
|
16875
16920
|
private containerWidth?;
|
|
16876
16921
|
private readonly widgetLoaders?;
|
|
@@ -16972,6 +17017,7 @@ declare class DynamicWidgetPageComponent implements OnChanges, OnDestroy {
|
|
|
16972
17017
|
widgetContextTooltip(widget: WidgetInstance): string;
|
|
16973
17018
|
shouldRenderWidgetContextOverlay(widget: WidgetInstance): boolean;
|
|
16974
17019
|
widgetShellForRender(widget: WidgetInstance): WidgetShellConfig | null | undefined;
|
|
17020
|
+
private widgetShellWithActions;
|
|
16975
17021
|
private resolveWidgetDisplayName;
|
|
16976
17022
|
private shouldProjectWidgetHeaderActions;
|
|
16977
17023
|
private hasWidgetContextAuthoringActions;
|
|
@@ -17015,6 +17061,7 @@ declare class DynamicWidgetPageComponent implements OnChanges, OnDestroy {
|
|
|
17015
17061
|
private endpointReferencesWidget;
|
|
17016
17062
|
openPageSettings(): void;
|
|
17017
17063
|
private canInvokePageSettings;
|
|
17064
|
+
private validateRenderedCanvas;
|
|
17018
17065
|
private applyWidgetShell;
|
|
17019
17066
|
private constrainWidgetShellResult;
|
|
17020
17067
|
private restoreWidgetShellFields;
|
|
@@ -17032,6 +17079,8 @@ declare class DynamicWidgetPageComponent implements OnChanges, OnDestroy {
|
|
|
17032
17079
|
onCanvasPointerMove(event: PointerEvent): void;
|
|
17033
17080
|
onCanvasPointerUp(event: PointerEvent): void;
|
|
17034
17081
|
onCanvasPointerCancel(event: PointerEvent): void;
|
|
17082
|
+
onCanvasEscape(event: Event): void;
|
|
17083
|
+
private cancelCanvasGesture;
|
|
17035
17084
|
private resolveColumns;
|
|
17036
17085
|
private ensurePageDefinition;
|
|
17037
17086
|
private parsePage;
|
|
@@ -17056,6 +17105,20 @@ declare class DynamicWidgetPageComponent implements OnChanges, OnDestroy {
|
|
|
17056
17105
|
selectWidgetFromHostEvent(widgetKey: string, event: Event): void;
|
|
17057
17106
|
isCanvasWidgetSelected(widgetKey: string): boolean;
|
|
17058
17107
|
isWidgetSelected(widgetKey: string): boolean;
|
|
17108
|
+
canvasInteractionActive(): boolean;
|
|
17109
|
+
canShowCanvasEdges(widgetKey: string): boolean;
|
|
17110
|
+
contextualResizeHandle(): CanvasResizeHandle | null;
|
|
17111
|
+
selectCanvasResizeTarget(event: Event): void;
|
|
17112
|
+
toggleResizePopover(widgetKey: string): void;
|
|
17113
|
+
focusResizePopover(overlay: HTMLElement): void;
|
|
17114
|
+
closeResizePopover(restoreFocus: boolean): void;
|
|
17115
|
+
onResizePopoverOutsideClick(event: MouseEvent): void;
|
|
17116
|
+
onResizePopoverKeydown(event: KeyboardEvent): void;
|
|
17117
|
+
resizeCloseLabel(): string;
|
|
17118
|
+
resizeContextHelpLabel(): string;
|
|
17119
|
+
resizePopoverGridArea(handle: CanvasResizeHandle): string;
|
|
17120
|
+
onSelectedCanvasResizePointerDown(handle: CanvasResizeHandle, event: PointerEvent): void;
|
|
17121
|
+
onSelectedCanvasResizeKeydown(handle: CanvasResizeHandle, event: KeyboardEvent): void;
|
|
17059
17122
|
selectCanvasWidget(widgetKey: string): void;
|
|
17060
17123
|
getPageSnapshot(): WidgetPageDefinition;
|
|
17061
17124
|
isCanvasWidgetBlocked(widgetKey: string): boolean;
|
|
@@ -17072,11 +17135,17 @@ declare class DynamicWidgetPageComponent implements OnChanges, OnDestroy {
|
|
|
17072
17135
|
private startCanvasInteraction;
|
|
17073
17136
|
private cancelCanvasInteractionForWidget;
|
|
17074
17137
|
private isCanvasOverlayInteraction;
|
|
17138
|
+
private isCanvasWidgetInOverlay;
|
|
17075
17139
|
private currentCanvasMetrics;
|
|
17140
|
+
private measureCanvasContentHeight;
|
|
17141
|
+
private measureCanvasMinimumHeight;
|
|
17076
17142
|
private currentCanvasItem;
|
|
17077
17143
|
private resolveCanvasInteractionDelta;
|
|
17078
17144
|
private updateCanvasItem;
|
|
17079
|
-
|
|
17145
|
+
resizeFeedback(key: string): 'valid' | 'minimum' | 'blocked' | null;
|
|
17146
|
+
hasResizeFeedback(): boolean;
|
|
17147
|
+
resizeFeedbackLabel(state: 'valid' | 'minimum' | 'blocked'): string;
|
|
17148
|
+
private updateCanvasResize;
|
|
17080
17149
|
private resolveCanvasTarget;
|
|
17081
17150
|
private applyCanvasDrag;
|
|
17082
17151
|
private applyCanvasResize;
|
|
@@ -17085,6 +17154,9 @@ declare class DynamicWidgetPageComponent implements OnChanges, OnDestroy {
|
|
|
17085
17154
|
pageSettingsLabel(): string;
|
|
17086
17155
|
dragWidgetLabel(): string;
|
|
17087
17156
|
resizeWidgetLabel(): string;
|
|
17157
|
+
resizeAlternativeLabel(): string;
|
|
17158
|
+
resizeSelectLabel(): string;
|
|
17159
|
+
resizeHelpLabel(): string;
|
|
17088
17160
|
resizeHandleLabel(handle: CanvasResizeHandle): string;
|
|
17089
17161
|
private canvasAnnouncement;
|
|
17090
17162
|
private blockedCanvasAnnouncement;
|
|
@@ -17117,6 +17189,10 @@ declare class DynamicWidgetPageComponent implements OnChanges, OnDestroy {
|
|
|
17117
17189
|
groupGridColumn(group: RenderedWidgetGroup): string | null;
|
|
17118
17190
|
widgetGridColumn(widget: RenderedWidgetInstance): string | null;
|
|
17119
17191
|
widgetGridRow(widget: RenderedWidgetInstance): string | null;
|
|
17192
|
+
widgetContentSize(widget: WidgetInstance): {
|
|
17193
|
+
heightPx: number;
|
|
17194
|
+
offsetTopPx: number;
|
|
17195
|
+
} | null;
|
|
17120
17196
|
widgetZIndex(widget: RenderedWidgetInstance): number | null;
|
|
17121
17197
|
widgetClassName(widget: WidgetInstance): string;
|
|
17122
17198
|
private mergeClassNames;
|