@praxisui/page-builder 8.0.0-beta.9 → 8.0.0-beta.90
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 +189 -15
- package/fesm2022/praxisui-page-builder.mjs +14380 -1836
- package/package.json +14 -12
- package/types/praxisui-page-builder.d.ts +1912 -0
- package/index.d.ts +0 -914
package/index.d.ts
DELETED
|
@@ -1,914 +0,0 @@
|
|
|
1
|
-
import { MatDialogRef, MatDialog } from '@angular/material/dialog';
|
|
2
|
-
import * as _angular_core from '@angular/core';
|
|
3
|
-
import { EventEmitter, OnInit, WritableSignal, InjectionToken, Provider, OnChanges, Type, SimpleChanges } from '@angular/core';
|
|
4
|
-
import { ComponentDocMeta, ComponentMetadataRegistry, WidgetShellConfig, WidgetShellAction, SettingsValueProvider as SettingsValueProvider$1, WidgetPageDefinition, WidgetPageGroupingDefinition, BUILTIN_PAGE_LAYOUT_PRESETS, BUILTIN_PAGE_THEME_PRESETS, PageIdentity, WidgetStateNode, WidgetDerivedStateNode, AiCapabilityCategory, AiValueKind, AiCapability, AiCapabilityCatalog, WidgetInstance, WidgetPageStateInput, CompositionLink, DynamicWidgetPageComponent, SettingsPanelBridge } from '@praxisui/core';
|
|
5
|
-
export { WidgetShellComponent } from '@praxisui/core';
|
|
6
|
-
import * as rxjs from 'rxjs';
|
|
7
|
-
import { BehaviorSubject, Observable } from 'rxjs';
|
|
8
|
-
import { FormGroup, FormControl, FormArray } from '@angular/forms';
|
|
9
|
-
import { SettingsValueProvider } from '@praxisui/settings-panel';
|
|
10
|
-
import { AgenticAuthoringPlanRequestContract, AgenticAuthoringCandidateContract, AiJsonValue, AgenticAuthoringQuickReplyContract, AgenticAuthoringPendingClarificationContract, AiJsonObject, AgenticAuthoringComponentCapabilitiesResultContract, AgenticAuthoringComponentCapabilityCatalogContract, AgenticAuthoringComponentCapabilityContract, AgenticAuthoringComponentFieldAliasContract, AgenticAuthoringComponentCapabilityExampleContract, AgenticAuthoringAttachmentSummaryContract, AgenticAuthoringIntentResolutionRequestContract, AgenticAuthoringConversationMessageContract, AgenticAuthoringResourceCandidatesRequestContract, AgenticAuthoringResourceCandidatesResultContract, AgenticAuthoringTurnStreamStartResponseContract, AgenticAuthoringTurnStreamEnvelopeContract, PraxisAssistantShellMessage, PraxisAssistantShellQuickReply, PraxisAssistantShellAttachment, PraxisAssistantShellLayout, PraxisAssistantShellLabels, PraxisAssistantShellState, PraxisAssistantShellContextItem } from '@praxisui/ai';
|
|
11
|
-
|
|
12
|
-
declare const PLACEHOLDER = 1;
|
|
13
|
-
|
|
14
|
-
interface ConfirmDialogData {
|
|
15
|
-
title?: string;
|
|
16
|
-
message?: string;
|
|
17
|
-
confirmLabel?: string;
|
|
18
|
-
cancelLabel?: string;
|
|
19
|
-
icon?: string;
|
|
20
|
-
}
|
|
21
|
-
declare class ConfirmDialogComponent {
|
|
22
|
-
data: ConfirmDialogData;
|
|
23
|
-
ref: MatDialogRef<ConfirmDialogComponent, boolean>;
|
|
24
|
-
constructor(data: ConfirmDialogData, ref: MatDialogRef<ConfirmDialogComponent, boolean>);
|
|
25
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ConfirmDialogComponent, never>;
|
|
26
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ConfirmDialogComponent, "praxis-confirm-dialog", never, {}, {}, never, never, true, never>;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
declare class TileToolbarComponent {
|
|
30
|
-
selected: boolean;
|
|
31
|
-
widgetType: string | null;
|
|
32
|
-
remove: EventEmitter<void>;
|
|
33
|
-
settings: EventEmitter<void>;
|
|
34
|
-
shell: EventEmitter<void>;
|
|
35
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<TileToolbarComponent, never>;
|
|
36
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<TileToolbarComponent, "praxis-tile-toolbar", never, { "selected": { "alias": "selected"; "required": false; }; "widgetType": { "alias": "widgetType"; "required": false; }; }, { "remove": "remove"; "settings": "settings"; "shell": "shell"; }, never, never, true, never>;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
declare class FloatingToolbarComponent {
|
|
40
|
-
visible: boolean;
|
|
41
|
-
canUndo: boolean;
|
|
42
|
-
canRedo: boolean;
|
|
43
|
-
add: EventEmitter<void>;
|
|
44
|
-
undo: EventEmitter<void>;
|
|
45
|
-
redo: EventEmitter<void>;
|
|
46
|
-
settings: EventEmitter<void>;
|
|
47
|
-
preview: EventEmitter<void>;
|
|
48
|
-
save: EventEmitter<void>;
|
|
49
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<FloatingToolbarComponent, never>;
|
|
50
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<FloatingToolbarComponent, "praxis-floating-toolbar", never, { "visible": { "alias": "visible"; "required": false; }; "canUndo": { "alias": "canUndo"; "required": false; }; "canRedo": { "alias": "canRedo"; "required": false; }; }, { "add": "add"; "undo": "undo"; "redo": "redo"; "settings": "settings"; "preview": "preview"; "save": "save"; }, never, ["[pdx-toolbar-extra]"], true, never>;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
interface ComponentPaletteData {
|
|
54
|
-
title?: string;
|
|
55
|
-
allowedWidgetIds?: string[];
|
|
56
|
-
allowedWidgetTags?: string[];
|
|
57
|
-
predicate?: (m: ComponentDocMeta) => boolean;
|
|
58
|
-
}
|
|
59
|
-
declare class ComponentPaletteDialogComponent implements OnInit {
|
|
60
|
-
private dialogRef;
|
|
61
|
-
private registry;
|
|
62
|
-
data?: ComponentPaletteData | undefined;
|
|
63
|
-
query: string;
|
|
64
|
-
private all;
|
|
65
|
-
filtered: _angular_core.Signal<ComponentDocMeta[]>;
|
|
66
|
-
density: _angular_core.Signal<"roomy" | "dense" | "normal">;
|
|
67
|
-
constructor(dialogRef: MatDialogRef<ComponentPaletteDialogComponent, string>, registry: ComponentMetadataRegistry, data?: ComponentPaletteData | undefined);
|
|
68
|
-
ngOnInit(): void;
|
|
69
|
-
select(id: string): void;
|
|
70
|
-
trackById: (_: number, m: ComponentDocMeta) => string;
|
|
71
|
-
getPreview(m: ComponentDocMeta): string;
|
|
72
|
-
private _adjustSizeEffect;
|
|
73
|
-
private applyFilters;
|
|
74
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ComponentPaletteDialogComponent, never>;
|
|
75
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ComponentPaletteDialogComponent, "praxis-component-palette-dialog", never, {}, {}, never, never, true, never>;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
type ShellInputs = {
|
|
79
|
-
shell?: WidgetShellConfig | null;
|
|
80
|
-
widgetKey?: string;
|
|
81
|
-
widgetType?: string;
|
|
82
|
-
presets?: Record<string, WidgetShellConfig['appearance']> | null;
|
|
83
|
-
pagePreset?: string | null;
|
|
84
|
-
};
|
|
85
|
-
type ShellEditorResult = {
|
|
86
|
-
shell: WidgetShellConfig | null;
|
|
87
|
-
applyToAll?: boolean;
|
|
88
|
-
pagePreset?: string;
|
|
89
|
-
};
|
|
90
|
-
type AvailableShellAction = {
|
|
91
|
-
kind: 'action' | 'command';
|
|
92
|
-
id: string;
|
|
93
|
-
label: string;
|
|
94
|
-
icon?: string;
|
|
95
|
-
scope?: NonNullable<ComponentDocMeta['actions']>[number]['scope'] | 'any';
|
|
96
|
-
emit?: string;
|
|
97
|
-
command?: string;
|
|
98
|
-
description?: string;
|
|
99
|
-
payloadExample?: any;
|
|
100
|
-
};
|
|
101
|
-
type SetInputValueOption = {
|
|
102
|
-
label: string;
|
|
103
|
-
value: any;
|
|
104
|
-
icon?: string;
|
|
105
|
-
};
|
|
106
|
-
type SetInputPreset = {
|
|
107
|
-
input: string;
|
|
108
|
-
label: string;
|
|
109
|
-
icon?: string;
|
|
110
|
-
values: SetInputValueOption[];
|
|
111
|
-
};
|
|
112
|
-
declare class WidgetShellEditorComponent implements SettingsValueProvider {
|
|
113
|
-
private registry?;
|
|
114
|
-
form: FormGroup<{
|
|
115
|
-
kind: FormControl<"none" | "dashboard-card">;
|
|
116
|
-
preset: FormControl<string>;
|
|
117
|
-
applyToAll: FormControl<boolean>;
|
|
118
|
-
title: FormControl<string>;
|
|
119
|
-
subtitle: FormControl<string>;
|
|
120
|
-
icon: FormControl<string>;
|
|
121
|
-
showHeader: FormControl<"auto" | "true" | "false">;
|
|
122
|
-
collapsible: FormControl<boolean>;
|
|
123
|
-
cardBg: FormControl<string>;
|
|
124
|
-
cardBorder: FormControl<string>;
|
|
125
|
-
cardRadius: FormControl<string>;
|
|
126
|
-
cardShadow: FormControl<string>;
|
|
127
|
-
headerBg: FormControl<string>;
|
|
128
|
-
headerBorder: FormControl<string>;
|
|
129
|
-
titleColor: FormControl<string>;
|
|
130
|
-
subtitleColor: FormControl<string>;
|
|
131
|
-
iconColor: FormControl<string>;
|
|
132
|
-
bodyBg: FormControl<string>;
|
|
133
|
-
bodyColor: FormControl<string>;
|
|
134
|
-
bodyPadding: FormControl<string>;
|
|
135
|
-
titleSize: FormControl<string>;
|
|
136
|
-
titleWeight: FormControl<string>;
|
|
137
|
-
subtitleSize: FormControl<string>;
|
|
138
|
-
actions: FormArray<FormGroup<any>>;
|
|
139
|
-
}>;
|
|
140
|
-
private readonly initialShell;
|
|
141
|
-
private readonly dirtySubject;
|
|
142
|
-
private readonly validSubject;
|
|
143
|
-
private readonly busySubject;
|
|
144
|
-
isDirty$: rxjs.Observable<boolean>;
|
|
145
|
-
isValid$: rxjs.Observable<boolean>;
|
|
146
|
-
isBusy$: rxjs.Observable<boolean>;
|
|
147
|
-
private snapshot;
|
|
148
|
-
presetOptions: Array<{
|
|
149
|
-
id: string;
|
|
150
|
-
label: string;
|
|
151
|
-
}>;
|
|
152
|
-
private presets;
|
|
153
|
-
availableActions: AvailableShellAction[];
|
|
154
|
-
actionQuery: FormControl<string>;
|
|
155
|
-
showScopeShell: boolean;
|
|
156
|
-
showScopeAny: boolean;
|
|
157
|
-
showScopeToolbar: boolean;
|
|
158
|
-
showScopeContext: boolean;
|
|
159
|
-
setInputPresets: SetInputPreset[];
|
|
160
|
-
setInputTarget: FormControl<string>;
|
|
161
|
-
setInputValue: FormControl<any>;
|
|
162
|
-
previewCollapsed: boolean;
|
|
163
|
-
previewExpanded: boolean;
|
|
164
|
-
pagePreset: string | null;
|
|
165
|
-
constructor(data?: ShellInputs | null, registry?: (ComponentMetadataRegistry | null) | undefined);
|
|
166
|
-
get actions(): FormArray<FormGroup>;
|
|
167
|
-
get hasAvailableActions(): boolean;
|
|
168
|
-
addAction(seed?: Partial<WidgetShellAction>): void;
|
|
169
|
-
removeAction(index: number): void;
|
|
170
|
-
getSettingsValue(): ShellEditorResult;
|
|
171
|
-
onSave(): ShellEditorResult;
|
|
172
|
-
reset(): void;
|
|
173
|
-
private applyShell;
|
|
174
|
-
private loadAvailableActions;
|
|
175
|
-
private createActionGroup;
|
|
176
|
-
private buildShell;
|
|
177
|
-
private buildResult;
|
|
178
|
-
private buildAppearance;
|
|
179
|
-
previewVars(): Record<string, string | null>;
|
|
180
|
-
previewShowHeader(): boolean;
|
|
181
|
-
previewTitle(): string;
|
|
182
|
-
previewSubtitle(): string;
|
|
183
|
-
private buildPreviewAppearance;
|
|
184
|
-
private mergeAppearance;
|
|
185
|
-
togglePreviewCollapse(): void;
|
|
186
|
-
togglePreviewExpand(): void;
|
|
187
|
-
previewHeaderActions(): WidgetShellAction[];
|
|
188
|
-
previewOverflowCount(): number;
|
|
189
|
-
previewWindowActions(): WidgetShellAction[];
|
|
190
|
-
private normalizeAction;
|
|
191
|
-
private tryParsePayload;
|
|
192
|
-
private snapshotValue;
|
|
193
|
-
filteredAvailableActions(): AvailableShellAction[];
|
|
194
|
-
isActionSelected(action: AvailableShellAction): boolean;
|
|
195
|
-
toggleAvailableAction(action: AvailableShellAction): void;
|
|
196
|
-
scopeLabel(scope?: string): string;
|
|
197
|
-
stringifyPayload(payload: any): string;
|
|
198
|
-
displayInputPath(path: string): string;
|
|
199
|
-
extractActionInput(actionValue: any): string;
|
|
200
|
-
showActionInputPath(actionValue: any): boolean;
|
|
201
|
-
currentSetInputValues(): SetInputValueOption[];
|
|
202
|
-
addSetInputAction(): void;
|
|
203
|
-
private findActionIndex;
|
|
204
|
-
private previewActions;
|
|
205
|
-
private loadSetInputPresets;
|
|
206
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<WidgetShellEditorComponent, [{ optional: true; }, { optional: true; }]>;
|
|
207
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<WidgetShellEditorComponent, "praxis-widget-shell-editor", never, {}, {}, never, never, true, never>;
|
|
208
|
-
}
|
|
209
|
-
|
|
210
|
-
type EditorTabId$1 = 'canvas' | 'grouping' | 'devices' | 'context' | 'state';
|
|
211
|
-
type DeviceKey = 'desktop' | 'tablet' | 'mobile';
|
|
212
|
-
type GroupingNodeGroup$1 = FormGroup<{
|
|
213
|
-
kind: FormControl<string>;
|
|
214
|
-
id: FormControl<string>;
|
|
215
|
-
label: FormControl<string>;
|
|
216
|
-
widgetKeysCsv: FormControl<string>;
|
|
217
|
-
layout: FormControl<string>;
|
|
218
|
-
emphasis: FormControl<string>;
|
|
219
|
-
side: FormControl<string>;
|
|
220
|
-
tabsJson: FormControl<string>;
|
|
221
|
-
}>;
|
|
222
|
-
type DeviceVariantForm = FormGroup<{
|
|
223
|
-
columns: FormControl<number | null>;
|
|
224
|
-
rowUnit: FormControl<string>;
|
|
225
|
-
gap: FormControl<string>;
|
|
226
|
-
autoRows: FormControl<'fixed' | 'content' | ''>;
|
|
227
|
-
groupingOverrides: FormControl<string>;
|
|
228
|
-
widgetOverrides: FormControl<string>;
|
|
229
|
-
}>;
|
|
230
|
-
declare class DynamicPageConfigEditorComponent implements OnInit, SettingsValueProvider$1 {
|
|
231
|
-
set page(value: WidgetPageDefinition | string | null | undefined);
|
|
232
|
-
layout?: unknown;
|
|
233
|
-
presets?: unknown;
|
|
234
|
-
pagePreset?: string | null;
|
|
235
|
-
pageChange: EventEmitter<WidgetPageDefinition>;
|
|
236
|
-
readonly layoutPresetEntries: {
|
|
237
|
-
id: string;
|
|
238
|
-
label: string;
|
|
239
|
-
}[];
|
|
240
|
-
readonly themePresetEntries: {
|
|
241
|
-
id: string;
|
|
242
|
-
label: string;
|
|
243
|
-
}[];
|
|
244
|
-
readonly shellPresetEntries: {
|
|
245
|
-
id: string;
|
|
246
|
-
label: string;
|
|
247
|
-
}[];
|
|
248
|
-
readonly deviceKeys: DeviceKey[];
|
|
249
|
-
readonly deviceLabels: Record<DeviceKey, string>;
|
|
250
|
-
readonly canvasColumnsControl: FormControl<number>;
|
|
251
|
-
readonly canvasRowUnitControl: FormControl<string>;
|
|
252
|
-
readonly canvasGapControl: FormControl<string>;
|
|
253
|
-
readonly canvasAutoRowsControl: FormControl<"content" | "fixed">;
|
|
254
|
-
readonly layoutPresetControl: FormControl<string>;
|
|
255
|
-
readonly themePresetControl: FormControl<string>;
|
|
256
|
-
readonly shellPresetControl: FormControl<string>;
|
|
257
|
-
readonly contextControl: FormControl<string>;
|
|
258
|
-
readonly stateControl: FormControl<string>;
|
|
259
|
-
readonly groupingNodes: FormArray<GroupingNodeGroup$1>;
|
|
260
|
-
readonly deviceForms: Record<DeviceKey, DeviceVariantForm>;
|
|
261
|
-
readonly isDirty$: BehaviorSubject<boolean>;
|
|
262
|
-
readonly isValid$: BehaviorSubject<boolean>;
|
|
263
|
-
readonly isBusy$: BehaviorSubject<boolean>;
|
|
264
|
-
readonly activeTab: WritableSignal<EditorTabId$1>;
|
|
265
|
-
readonly canvasError: WritableSignal<string | null>;
|
|
266
|
-
readonly groupingError: WritableSignal<string | null>;
|
|
267
|
-
readonly contextError: WritableSignal<string | null>;
|
|
268
|
-
readonly stateError: WritableSignal<string | null>;
|
|
269
|
-
readonly deviceError: WritableSignal<string | null>;
|
|
270
|
-
private readonly injectedData;
|
|
271
|
-
private pageInput;
|
|
272
|
-
private snapshot;
|
|
273
|
-
private hydrating;
|
|
274
|
-
private readonly tabOrder;
|
|
275
|
-
constructor();
|
|
276
|
-
ngOnInit(): void;
|
|
277
|
-
get selectedTabIndex(): number;
|
|
278
|
-
get isConfigurationValid(): boolean;
|
|
279
|
-
get hasPendingChanges(): boolean;
|
|
280
|
-
get validationStateLabel(): string;
|
|
281
|
-
get dirtyStateLabel(): string;
|
|
282
|
-
get selectedLayoutPresetLabel(): string;
|
|
283
|
-
get selectedThemePresetLabel(): string;
|
|
284
|
-
get canvasSummaryLabel(): string;
|
|
285
|
-
onSelectedTabIndexChange(index: number): void;
|
|
286
|
-
getSettingsValue(): WidgetPageDefinition | null;
|
|
287
|
-
onSave(): WidgetPageDefinition | null;
|
|
288
|
-
reset(): void;
|
|
289
|
-
addGroupingNode(seed?: WidgetPageGroupingDefinition): void;
|
|
290
|
-
removeGroupingNode(index: number): void;
|
|
291
|
-
private createDeviceVariantForm;
|
|
292
|
-
private createGroupingNodeGroup;
|
|
293
|
-
private hydrate;
|
|
294
|
-
private replaceGroupingNodes;
|
|
295
|
-
private buildCurrentPage;
|
|
296
|
-
private buildGrouping;
|
|
297
|
-
private buildDeviceLayouts;
|
|
298
|
-
private invalidate;
|
|
299
|
-
private refreshPanelState;
|
|
300
|
-
private currentPageInput;
|
|
301
|
-
private parsePage;
|
|
302
|
-
private parseJson;
|
|
303
|
-
private parseRecordJson;
|
|
304
|
-
private parseGroupingTabs;
|
|
305
|
-
private parseGroupingOverrides;
|
|
306
|
-
private parseWidgetOverrides;
|
|
307
|
-
private isGroupingTab;
|
|
308
|
-
private isGroupingOverride;
|
|
309
|
-
private isWidgetOverride;
|
|
310
|
-
private isPlainObject;
|
|
311
|
-
private hasDuplicateIds;
|
|
312
|
-
private hasDuplicateStrings;
|
|
313
|
-
private stringify;
|
|
314
|
-
private stringifyGroupingWidgetKeys;
|
|
315
|
-
private extractShellPreset;
|
|
316
|
-
private removeShellPresetFromContext;
|
|
317
|
-
private applyShellPresetToContext;
|
|
318
|
-
private lookupPresetLabel;
|
|
319
|
-
private defaultCanvas;
|
|
320
|
-
private clone;
|
|
321
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<DynamicPageConfigEditorComponent, never>;
|
|
322
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<DynamicPageConfigEditorComponent, "praxis-dynamic-page-config-editor", never, { "page": { "alias": "page"; "required": false; }; "layout": { "alias": "layout"; "required": false; }; "presets": { "alias": "presets"; "required": false; }; "pagePreset": { "alias": "pagePreset"; "required": false; }; }, { "pageChange": "pageChange"; }, never, never, true, never>;
|
|
323
|
-
}
|
|
324
|
-
|
|
325
|
-
type LegacyGridOptions = {
|
|
326
|
-
cols?: number;
|
|
327
|
-
rowHeight?: number;
|
|
328
|
-
gap?: number;
|
|
329
|
-
};
|
|
330
|
-
type PageDefinition = WidgetPageDefinition & {
|
|
331
|
-
options?: LegacyGridOptions;
|
|
332
|
-
};
|
|
333
|
-
type EditorTabId = 'layout' | 'grouping' | 'devices' | 'state' | 'context';
|
|
334
|
-
type SchemaNodeGroup = FormGroup<{
|
|
335
|
-
path: FormControl<string>;
|
|
336
|
-
type: FormControl<string>;
|
|
337
|
-
initialMode: FormControl<string>;
|
|
338
|
-
initialJson: FormControl<string>;
|
|
339
|
-
initialScalar: FormControl<string>;
|
|
340
|
-
persist: FormControl<string>;
|
|
341
|
-
mergeStrategy: FormControl<string>;
|
|
342
|
-
description: FormControl<string>;
|
|
343
|
-
}>;
|
|
344
|
-
type DerivedNodeGroup = FormGroup<{
|
|
345
|
-
path: FormControl<string>;
|
|
346
|
-
dependsOn: FormControl<string>;
|
|
347
|
-
computeKind: FormControl<string>;
|
|
348
|
-
operator: FormControl<string>;
|
|
349
|
-
sourcePath: FormControl<string>;
|
|
350
|
-
keysCsv: FormControl<string>;
|
|
351
|
-
expression: FormControl<string>;
|
|
352
|
-
transformerId: FormControl<string>;
|
|
353
|
-
options: FormControl<string>;
|
|
354
|
-
templateMode: FormControl<string>;
|
|
355
|
-
templateJson: FormControl<string>;
|
|
356
|
-
templateScalar: FormControl<string>;
|
|
357
|
-
description: FormControl<string>;
|
|
358
|
-
}>;
|
|
359
|
-
type GroupingNodeGroup = FormGroup<{
|
|
360
|
-
kind: FormControl<string>;
|
|
361
|
-
id: FormControl<string>;
|
|
362
|
-
label: FormControl<string>;
|
|
363
|
-
widgetKeysCsv: FormControl<string>;
|
|
364
|
-
layout: FormControl<string>;
|
|
365
|
-
emphasis: FormControl<string>;
|
|
366
|
-
side: FormControl<string>;
|
|
367
|
-
tabsJson: FormControl<string>;
|
|
368
|
-
}>;
|
|
369
|
-
declare class PageConfigEditorComponent implements SettingsValueProvider$1 {
|
|
370
|
-
protected readonly derivedOperators: readonly ["merge-objects", "pick", "omit"];
|
|
371
|
-
protected readonly mergeStrategies: readonly ["replace", "merge", "append", "remove-keys"];
|
|
372
|
-
protected readonly valueModes: readonly ["json", "string", "number", "boolean", "null"];
|
|
373
|
-
protected readonly groupingKinds: readonly ["section", "tabs", "hero", "rail"];
|
|
374
|
-
protected readonly layoutPresetEntries: Array<(typeof BUILTIN_PAGE_LAYOUT_PRESETS)[string]>;
|
|
375
|
-
protected readonly themePresetEntries: Array<(typeof BUILTIN_PAGE_THEME_PRESETS)[string]>;
|
|
376
|
-
readonly page: _angular_core.InputSignal<string | PageDefinition | null>;
|
|
377
|
-
readonly identity: _angular_core.InputSignal<PageIdentity | null>;
|
|
378
|
-
readonly layoutCompatOptions: _angular_core.InputSignal<any>;
|
|
379
|
-
readonly pageChange: _angular_core.OutputEmitterRef<PageDefinition>;
|
|
380
|
-
readonly form: FormGroup<{
|
|
381
|
-
cols: FormControl<number | null>;
|
|
382
|
-
rowHeight: FormControl<number | null>;
|
|
383
|
-
gap: FormControl<number | null>;
|
|
384
|
-
}>;
|
|
385
|
-
readonly contextControl: FormControl<string>;
|
|
386
|
-
readonly shellPresetControl: FormControl<string>;
|
|
387
|
-
readonly layoutPresetControl: FormControl<string>;
|
|
388
|
-
readonly themePresetControl: FormControl<string>;
|
|
389
|
-
readonly groupingControl: FormControl<string>;
|
|
390
|
-
readonly deviceLayoutsControl: FormControl<string>;
|
|
391
|
-
readonly stateValuesControl: FormControl<string>;
|
|
392
|
-
readonly groupingNodes: FormArray<GroupingNodeGroup>;
|
|
393
|
-
readonly schemaNodes: FormArray<SchemaNodeGroup>;
|
|
394
|
-
readonly derivedNodes: FormArray<DerivedNodeGroup>;
|
|
395
|
-
readonly deviceDesktopForm: FormGroup<{
|
|
396
|
-
orientation: FormControl<string>;
|
|
397
|
-
columns: FormControl<number | null>;
|
|
398
|
-
gap: FormControl<string>;
|
|
399
|
-
breakpointsJson: FormControl<string>;
|
|
400
|
-
groupingOverridesJson: FormControl<string>;
|
|
401
|
-
widgetOverridesJson: FormControl<string>;
|
|
402
|
-
}>;
|
|
403
|
-
readonly deviceTabletForm: FormGroup<{
|
|
404
|
-
orientation: FormControl<string>;
|
|
405
|
-
columns: FormControl<number | null>;
|
|
406
|
-
gap: FormControl<string>;
|
|
407
|
-
breakpointsJson: FormControl<string>;
|
|
408
|
-
groupingOverridesJson: FormControl<string>;
|
|
409
|
-
widgetOverridesJson: FormControl<string>;
|
|
410
|
-
}>;
|
|
411
|
-
readonly deviceMobileForm: FormGroup<{
|
|
412
|
-
orientation: FormControl<string>;
|
|
413
|
-
columns: FormControl<number | null>;
|
|
414
|
-
gap: FormControl<string>;
|
|
415
|
-
breakpointsJson: FormControl<string>;
|
|
416
|
-
groupingOverridesJson: FormControl<string>;
|
|
417
|
-
widgetOverridesJson: FormControl<string>;
|
|
418
|
-
}>;
|
|
419
|
-
readonly contextError: _angular_core.WritableSignal<string | null>;
|
|
420
|
-
readonly layoutError: _angular_core.WritableSignal<string | null>;
|
|
421
|
-
readonly stateError: _angular_core.WritableSignal<string | null>;
|
|
422
|
-
readonly activeTab: _angular_core.WritableSignal<EditorTabId>;
|
|
423
|
-
readonly shellPresetEntries: Array<{
|
|
424
|
-
id: string;
|
|
425
|
-
label: string;
|
|
426
|
-
}>;
|
|
427
|
-
private lastContext;
|
|
428
|
-
private lastGrouping;
|
|
429
|
-
private lastDeviceLayouts;
|
|
430
|
-
private lastStateValues;
|
|
431
|
-
private readonly dirtySubject;
|
|
432
|
-
private readonly validSubject;
|
|
433
|
-
private readonly busySubject;
|
|
434
|
-
private snapshot;
|
|
435
|
-
private readonly tabOrder;
|
|
436
|
-
private readonly i18n;
|
|
437
|
-
private readonly injectedData;
|
|
438
|
-
readonly isDirty$: rxjs.Observable<boolean>;
|
|
439
|
-
readonly isValid$: rxjs.Observable<boolean>;
|
|
440
|
-
readonly isBusy$: rxjs.Observable<boolean>;
|
|
441
|
-
protected readonly embeddedInSettingsPanel: boolean;
|
|
442
|
-
get selectedTabIndex(): number;
|
|
443
|
-
protected get hasPendingChanges(): boolean;
|
|
444
|
-
protected get isConfigurationValid(): boolean;
|
|
445
|
-
protected get validationStateLabel(): string;
|
|
446
|
-
protected get dirtyStateLabel(): string;
|
|
447
|
-
protected get selectedLayoutPresetLabel(): string;
|
|
448
|
-
protected get selectedThemePresetLabel(): string;
|
|
449
|
-
protected get selectedShellPresetLabel(): string;
|
|
450
|
-
protected get contextExample(): string;
|
|
451
|
-
protected get stateValuesExample(): string;
|
|
452
|
-
protected get layoutPresetHint(): string;
|
|
453
|
-
protected get themePresetHint(): string;
|
|
454
|
-
protected get shellPresetHint(): string;
|
|
455
|
-
protected get tabsJsonHint(): string;
|
|
456
|
-
protected get breakpointsHint(): string;
|
|
457
|
-
protected get groupingOverridesHint(): string;
|
|
458
|
-
protected get widgetOverridesHint(): string;
|
|
459
|
-
protected get schemaInitialHint(): string;
|
|
460
|
-
protected get templateJsonHint(): string;
|
|
461
|
-
protected get transformerOptionsHint(): string;
|
|
462
|
-
constructor();
|
|
463
|
-
protected tx(key: string, fallback: string): string;
|
|
464
|
-
addSchemaNode(seed?: {
|
|
465
|
-
path?: string;
|
|
466
|
-
config?: WidgetStateNode;
|
|
467
|
-
}): void;
|
|
468
|
-
removeSchemaNode(index: number): void;
|
|
469
|
-
addDerivedNode(seed?: {
|
|
470
|
-
path?: string;
|
|
471
|
-
config?: WidgetDerivedStateNode;
|
|
472
|
-
}): void;
|
|
473
|
-
removeDerivedNode(index: number): void;
|
|
474
|
-
addGroupingNode(seed?: WidgetPageGroupingDefinition): void;
|
|
475
|
-
removeGroupingNode(index: number): void;
|
|
476
|
-
setActiveTab(tab: EditorTabId): void;
|
|
477
|
-
onSelectedTabIndexChange(index: number): void;
|
|
478
|
-
apply(): void;
|
|
479
|
-
reset(): void;
|
|
480
|
-
private replaceGroupingNodes;
|
|
481
|
-
private createGroupingNodeGroup;
|
|
482
|
-
private stringifyGroupingWidgetKeys;
|
|
483
|
-
private buildGrouping;
|
|
484
|
-
private hydrateDeviceLayoutControls;
|
|
485
|
-
private buildDeviceLayouts;
|
|
486
|
-
private createDeviceLayoutForm;
|
|
487
|
-
private patchDeviceLayoutForm;
|
|
488
|
-
private buildDeviceLayoutVariant;
|
|
489
|
-
private hydrateStateEditor;
|
|
490
|
-
private replaceSchemaNodes;
|
|
491
|
-
private replaceDerivedNodes;
|
|
492
|
-
private createSchemaNodeGroup;
|
|
493
|
-
private createDerivedNodeGroup;
|
|
494
|
-
private buildState;
|
|
495
|
-
private buildSchema;
|
|
496
|
-
private buildDerived;
|
|
497
|
-
private normalizeState;
|
|
498
|
-
getSettingsValue(): PageDefinition | null;
|
|
499
|
-
onSave(): PageDefinition | null;
|
|
500
|
-
private lookupPresetLabel;
|
|
501
|
-
private currentPageInput;
|
|
502
|
-
private extractShellPreset;
|
|
503
|
-
private buildCurrentPage;
|
|
504
|
-
private applyShellPresetToContext;
|
|
505
|
-
private refreshPanelState;
|
|
506
|
-
private parsePage;
|
|
507
|
-
private parseContext;
|
|
508
|
-
private parseGrouping;
|
|
509
|
-
private parseDeviceLayouts;
|
|
510
|
-
private parseJson;
|
|
511
|
-
private parseValueInput;
|
|
512
|
-
private describeValue;
|
|
513
|
-
private buildOperatorOptions;
|
|
514
|
-
private buildOptions;
|
|
515
|
-
private clone;
|
|
516
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<PageConfigEditorComponent, never>;
|
|
517
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<PageConfigEditorComponent, "praxis-page-config-editor", never, { "page": { "alias": "page"; "required": false; "isSignal": true; }; "identity": { "alias": "identity"; "required": false; "isSignal": true; }; "layoutCompatOptions": { "alias": "layoutCompatOptions"; "required": false; "isSignal": true; }; }, { "pageChange": "pageChange"; }, never, never, true, never>;
|
|
518
|
-
}
|
|
519
|
-
|
|
520
|
-
/**
|
|
521
|
-
* Capabilities catalog for the canonical dynamic page builder/runtime.
|
|
522
|
-
*/
|
|
523
|
-
|
|
524
|
-
declare module '@praxisui/core' {
|
|
525
|
-
interface AiCapabilityCategoryMap {
|
|
526
|
-
page: true;
|
|
527
|
-
widgets: true;
|
|
528
|
-
connections: true;
|
|
529
|
-
context: true;
|
|
530
|
-
state: true;
|
|
531
|
-
}
|
|
532
|
-
}
|
|
533
|
-
type CapabilityCategory = AiCapabilityCategory;
|
|
534
|
-
type ValueKind = AiValueKind;
|
|
535
|
-
interface Capability extends AiCapability {
|
|
536
|
-
category: CapabilityCategory;
|
|
537
|
-
}
|
|
538
|
-
interface CapabilityCatalog extends AiCapabilityCatalog {
|
|
539
|
-
capabilities: Capability[];
|
|
540
|
-
}
|
|
541
|
-
declare const PAGE_BUILDER_AI_CAPABILITIES: CapabilityCatalog;
|
|
542
|
-
|
|
543
|
-
type PageBuilderAgenticAuthoringProvider = 'openai' | 'gemini' | string;
|
|
544
|
-
interface PageBuilderAgenticAuthoringOptions {
|
|
545
|
-
baseUrl?: string;
|
|
546
|
-
headersFactory?: () => Record<string, string | undefined>;
|
|
547
|
-
defaultHeaders?: Record<string, string>;
|
|
548
|
-
eventSourceFactory?: PageBuilderAgenticAuthoringEventSourceFactory;
|
|
549
|
-
streamConnectionErrorGraceMs?: number;
|
|
550
|
-
}
|
|
551
|
-
interface PageBuilderAgenticAuthoringEventSource {
|
|
552
|
-
onmessage: ((event: MessageEvent<string>) => void) | null;
|
|
553
|
-
onerror: ((event: Event) => void) | null;
|
|
554
|
-
addEventListener?(type: string, listener: (event: MessageEvent<string>) => void): void;
|
|
555
|
-
close(): void;
|
|
556
|
-
}
|
|
557
|
-
type PageBuilderAgenticAuthoringEventSourceFactory = (url: string) => PageBuilderAgenticAuthoringEventSource;
|
|
558
|
-
interface PageBuilderAgenticAuthoringTurnStreamConnectionError {
|
|
559
|
-
readonly praxisAgenticTurnStreamConnectionError: true;
|
|
560
|
-
readonly cause: unknown;
|
|
561
|
-
}
|
|
562
|
-
interface PageBuilderAgenticAuthoringPromptRequest extends Omit<AgenticAuthoringPlanRequestContract, 'currentPage' | 'intentResolution'> {
|
|
563
|
-
provider?: PageBuilderAgenticAuthoringProvider | null;
|
|
564
|
-
currentPage?: unknown;
|
|
565
|
-
selectedWidgetKey?: string | null;
|
|
566
|
-
intentResolution?: PageBuilderAgenticAuthoringIntentResolutionResult | null;
|
|
567
|
-
componentCapabilities?: PageBuilderAgenticAuthoringComponentCapabilitiesResult | null;
|
|
568
|
-
attachmentSummaries?: PageBuilderAgenticAuthoringAttachmentSummary[];
|
|
569
|
-
}
|
|
570
|
-
interface PageBuilderAgenticAuthoringIntentResolutionRequest extends Omit<AgenticAuthoringIntentResolutionRequestContract, 'currentPage'> {
|
|
571
|
-
provider?: PageBuilderAgenticAuthoringProvider | null;
|
|
572
|
-
currentPage?: unknown;
|
|
573
|
-
componentCapabilities?: PageBuilderAgenticAuthoringComponentCapabilitiesResult | null;
|
|
574
|
-
attachmentSummaries?: PageBuilderAgenticAuthoringAttachmentSummary[];
|
|
575
|
-
}
|
|
576
|
-
interface PageBuilderAgenticAuthoringTurnStreamRequest {
|
|
577
|
-
userPrompt: string;
|
|
578
|
-
targetApp?: string | null;
|
|
579
|
-
targetComponentId?: string | null;
|
|
580
|
-
currentRoute?: string | null;
|
|
581
|
-
provider?: PageBuilderAgenticAuthoringProvider | null;
|
|
582
|
-
model?: string | null;
|
|
583
|
-
apiKey?: string | null;
|
|
584
|
-
currentPage?: unknown;
|
|
585
|
-
selectedWidgetKey?: string | null;
|
|
586
|
-
sessionId?: string | null;
|
|
587
|
-
clientTurnId?: string | null;
|
|
588
|
-
conversationMessages?: PageBuilderAgenticAuthoringConversationMessage[];
|
|
589
|
-
pendingClarification?: PageBuilderAgenticAuthoringPendingClarification | null;
|
|
590
|
-
componentCapabilities?: PageBuilderAgenticAuthoringComponentCapabilitiesResult | null;
|
|
591
|
-
attachmentSummaries?: PageBuilderAgenticAuthoringAttachmentSummary[];
|
|
592
|
-
contextHints?: AiJsonObject | null;
|
|
593
|
-
}
|
|
594
|
-
type PageBuilderAgenticAuthoringConversationMessage = AgenticAuthoringConversationMessageContract;
|
|
595
|
-
type PageBuilderAgenticAuthoringPendingClarification = AgenticAuthoringPendingClarificationContract;
|
|
596
|
-
type PageBuilderAgenticAuthoringQuickReply = AgenticAuthoringQuickReplyContract;
|
|
597
|
-
type PageBuilderAgenticAuthoringAttachmentSummary = AgenticAuthoringAttachmentSummaryContract;
|
|
598
|
-
interface PageBuilderAgenticAuthoringCandidate extends AgenticAuthoringCandidateContract {
|
|
599
|
-
resourcePath: string;
|
|
600
|
-
operation: string;
|
|
601
|
-
schemaUrl: string;
|
|
602
|
-
submitUrl: string;
|
|
603
|
-
submitMethod: string;
|
|
604
|
-
score: number;
|
|
605
|
-
reason: string;
|
|
606
|
-
evidence: string[];
|
|
607
|
-
[key: string]: AiJsonValue | undefined;
|
|
608
|
-
}
|
|
609
|
-
interface PageBuilderAgenticAuthoringResourceCandidatesRequest extends AgenticAuthoringResourceCandidatesRequestContract {
|
|
610
|
-
}
|
|
611
|
-
interface PageBuilderAgenticAuthoringResourceCandidatesResult extends Omit<AgenticAuthoringResourceCandidatesResultContract, 'candidates'> {
|
|
612
|
-
valid: boolean;
|
|
613
|
-
tool: string;
|
|
614
|
-
retrievalQuery: string;
|
|
615
|
-
artifactKind: string;
|
|
616
|
-
candidates: PageBuilderAgenticAuthoringCandidate[];
|
|
617
|
-
warnings: string[];
|
|
618
|
-
}
|
|
619
|
-
interface PageBuilderAgenticAuthoringTarget {
|
|
620
|
-
widgetKey: string;
|
|
621
|
-
componentId: string;
|
|
622
|
-
resourcePath: string;
|
|
623
|
-
schemaUrl: string;
|
|
624
|
-
submitUrl: string;
|
|
625
|
-
submitMethod: string;
|
|
626
|
-
}
|
|
627
|
-
interface PageBuilderAgenticAuthoringGateResult {
|
|
628
|
-
gateId: string;
|
|
629
|
-
status: string;
|
|
630
|
-
messages: string[];
|
|
631
|
-
}
|
|
632
|
-
interface PageBuilderAgenticAuthoringComponentFieldAlias extends AgenticAuthoringComponentFieldAliasContract {
|
|
633
|
-
field: string;
|
|
634
|
-
aliases: string[];
|
|
635
|
-
}
|
|
636
|
-
interface PageBuilderAgenticAuthoringComponentCapability extends Omit<AgenticAuthoringComponentCapabilityContract, 'fieldAliases' | 'examples'> {
|
|
637
|
-
id: string;
|
|
638
|
-
changeKind: string;
|
|
639
|
-
triggerTerms: string[];
|
|
640
|
-
fieldAliases: PageBuilderAgenticAuthoringComponentFieldAlias[];
|
|
641
|
-
examples?: PageBuilderAgenticAuthoringComponentCapabilityExample[];
|
|
642
|
-
}
|
|
643
|
-
interface PageBuilderAgenticAuthoringComponentCapabilityExample extends AgenticAuthoringComponentCapabilityExampleContract {
|
|
644
|
-
prompt: string;
|
|
645
|
-
intent: string;
|
|
646
|
-
configHints: string[];
|
|
647
|
-
}
|
|
648
|
-
interface PageBuilderAgenticAuthoringComponentCapabilityCatalog extends Omit<AgenticAuthoringComponentCapabilityCatalogContract, 'capabilities'> {
|
|
649
|
-
componentId: string;
|
|
650
|
-
version: string;
|
|
651
|
-
capabilities: PageBuilderAgenticAuthoringComponentCapability[];
|
|
652
|
-
}
|
|
653
|
-
interface PageBuilderAgenticAuthoringComponentCapabilitiesResult extends Omit<AgenticAuthoringComponentCapabilitiesResultContract, 'catalogs'> {
|
|
654
|
-
version: string;
|
|
655
|
-
catalogs: PageBuilderAgenticAuthoringComponentCapabilityCatalog[];
|
|
656
|
-
}
|
|
657
|
-
interface PageBuilderAgenticAuthoringIntentResolutionResult {
|
|
658
|
-
valid: boolean;
|
|
659
|
-
operationKind: string;
|
|
660
|
-
artifactKind: string;
|
|
661
|
-
changeKind: string;
|
|
662
|
-
authoringProfile: string;
|
|
663
|
-
targetApp: string;
|
|
664
|
-
targetComponentId: string;
|
|
665
|
-
target: PageBuilderAgenticAuthoringTarget | null;
|
|
666
|
-
selectedCandidate: PageBuilderAgenticAuthoringCandidate | null;
|
|
667
|
-
candidates: PageBuilderAgenticAuthoringCandidate[];
|
|
668
|
-
gate: PageBuilderAgenticAuthoringGateResult;
|
|
669
|
-
effectivePrompt?: string | null;
|
|
670
|
-
assistantMessage?: string | null;
|
|
671
|
-
quickReplies?: PageBuilderAgenticAuthoringQuickReply[];
|
|
672
|
-
pendingClarification?: PageBuilderAgenticAuthoringPendingClarification | null;
|
|
673
|
-
clarificationQuestions: string[];
|
|
674
|
-
warnings: string[];
|
|
675
|
-
failureCodes: string[];
|
|
676
|
-
currentPageSummary: unknown;
|
|
677
|
-
llmDiagnostics?: AiJsonObject | null;
|
|
678
|
-
}
|
|
679
|
-
interface PageBuilderMinimalFormPlanResult {
|
|
680
|
-
valid: boolean;
|
|
681
|
-
failureCodes: string[];
|
|
682
|
-
warnings: string[];
|
|
683
|
-
minimalFormPlan: unknown;
|
|
684
|
-
}
|
|
685
|
-
interface PageBuilderCompiledFormPatch {
|
|
686
|
-
profileId?: string;
|
|
687
|
-
catalogReleaseId?: string;
|
|
688
|
-
builderVersion?: string;
|
|
689
|
-
patch?: {
|
|
690
|
-
page?: BuilderPageDefinition;
|
|
691
|
-
};
|
|
692
|
-
[key: string]: unknown;
|
|
693
|
-
}
|
|
694
|
-
interface PageBuilderPreviewDiagnostics {
|
|
695
|
-
derivedCurrentPageSummary?: boolean;
|
|
696
|
-
targetWidgetKey?: string;
|
|
697
|
-
operationKind?: string;
|
|
698
|
-
changeKind?: string;
|
|
699
|
-
fieldScopeDecision?: string;
|
|
700
|
-
}
|
|
701
|
-
interface PageBuilderPreviewResult {
|
|
702
|
-
valid: boolean;
|
|
703
|
-
failureCodes: string[];
|
|
704
|
-
warnings: string[];
|
|
705
|
-
minimalFormPlan: unknown;
|
|
706
|
-
uiCompositionPlan?: unknown;
|
|
707
|
-
compiledFormPatch: PageBuilderCompiledFormPatch;
|
|
708
|
-
diagnostics?: PageBuilderPreviewDiagnostics | null;
|
|
709
|
-
}
|
|
710
|
-
type PageBuilderAgenticAuthoringTurnStreamStartResponse = AgenticAuthoringTurnStreamStartResponseContract;
|
|
711
|
-
type PageBuilderAgenticAuthoringTurnStreamEvent = AgenticAuthoringTurnStreamEnvelopeContract;
|
|
712
|
-
interface PageBuilderApplyRequest {
|
|
713
|
-
compiledFormPatch: PageBuilderCompiledFormPatch;
|
|
714
|
-
componentId: string;
|
|
715
|
-
componentType?: string;
|
|
716
|
-
scope?: 'user' | 'tenant';
|
|
717
|
-
tags?: Record<string, unknown>;
|
|
718
|
-
ifMatch?: string;
|
|
719
|
-
}
|
|
720
|
-
interface PageBuilderApplyResult {
|
|
721
|
-
applied: boolean;
|
|
722
|
-
componentType: string;
|
|
723
|
-
componentId: string;
|
|
724
|
-
environment?: string;
|
|
725
|
-
scope: 'user' | 'tenant' | string;
|
|
726
|
-
version: number;
|
|
727
|
-
etag?: string;
|
|
728
|
-
payload: BuilderPageDefinition;
|
|
729
|
-
tags?: Record<string, unknown>;
|
|
730
|
-
warnings: string[];
|
|
731
|
-
}
|
|
732
|
-
declare const PAGE_BUILDER_AGENTIC_AUTHORING_OPTIONS: InjectionToken<PageBuilderAgenticAuthoringOptions>;
|
|
733
|
-
declare class PageBuilderAgenticAuthoringService {
|
|
734
|
-
private readonly http;
|
|
735
|
-
private readonly options;
|
|
736
|
-
private readonly baseUrl;
|
|
737
|
-
private readonly headersFactory;
|
|
738
|
-
getComponentCapabilities(): Observable<PageBuilderAgenticAuthoringComponentCapabilitiesResult>;
|
|
739
|
-
previewPage(request: PageBuilderAgenticAuthoringPromptRequest): Observable<PageBuilderPreviewResult>;
|
|
740
|
-
resolveIntent(request: PageBuilderAgenticAuthoringIntentResolutionRequest): Observable<PageBuilderAgenticAuthoringIntentResolutionResult>;
|
|
741
|
-
searchResourceCandidates(request: PageBuilderAgenticAuthoringResourceCandidatesRequest): Observable<PageBuilderAgenticAuthoringResourceCandidatesResult>;
|
|
742
|
-
streamTurn(request: PageBuilderAgenticAuthoringTurnStreamRequest): Observable<PageBuilderAgenticAuthoringTurnStreamEvent>;
|
|
743
|
-
applyPage(request: PageBuilderApplyRequest): Observable<PageBuilderApplyResult>;
|
|
744
|
-
private buildHeaders;
|
|
745
|
-
private connectTurnStream;
|
|
746
|
-
private streamConnectionError;
|
|
747
|
-
private buildStreamUrl;
|
|
748
|
-
private createEventSource;
|
|
749
|
-
private formatEtag;
|
|
750
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<PageBuilderAgenticAuthoringService, never>;
|
|
751
|
-
static ɵprov: _angular_core.ɵɵInjectableDeclaration<PageBuilderAgenticAuthoringService>;
|
|
752
|
-
}
|
|
753
|
-
|
|
754
|
-
type LegacyLayoutOptions = {
|
|
755
|
-
cols?: number;
|
|
756
|
-
rowHeight?: number;
|
|
757
|
-
gap?: number;
|
|
758
|
-
};
|
|
759
|
-
type PageBuilderLayoutOptions = Partial<LegacyLayoutOptions>;
|
|
760
|
-
type PageBuilderConfig = {
|
|
761
|
-
page?: BuilderPageDefinition;
|
|
762
|
-
context?: Record<string, unknown> | null;
|
|
763
|
-
enableCustomization?: boolean;
|
|
764
|
-
showSettingsButton?: boolean;
|
|
765
|
-
strictValidation?: boolean;
|
|
766
|
-
layoutOptions?: PageBuilderLayoutOptions;
|
|
767
|
-
pageIdentity?: PageIdentity;
|
|
768
|
-
};
|
|
769
|
-
type BuilderWidgetInstance = WidgetInstance;
|
|
770
|
-
type BuilderCanvasItem = {
|
|
771
|
-
col: number;
|
|
772
|
-
row: number;
|
|
773
|
-
colSpan: number;
|
|
774
|
-
rowSpan: number;
|
|
775
|
-
};
|
|
776
|
-
type BuilderCanvasLayout = {
|
|
777
|
-
mode: 'grid';
|
|
778
|
-
columns: number;
|
|
779
|
-
rowUnit?: string;
|
|
780
|
-
gap?: string;
|
|
781
|
-
autoRows?: 'fixed' | 'content';
|
|
782
|
-
collisionPolicy?: 'block' | 'swap';
|
|
783
|
-
items: Record<string, BuilderCanvasItem>;
|
|
784
|
-
};
|
|
785
|
-
type BuilderPageDefinition = Omit<WidgetPageDefinition, 'widgets'> & {
|
|
786
|
-
widgets: BuilderWidgetInstance[];
|
|
787
|
-
canvas?: BuilderCanvasLayout;
|
|
788
|
-
state?: WidgetPageStateInput;
|
|
789
|
-
composition?: {
|
|
790
|
-
links: BuilderCompositionLink[];
|
|
791
|
-
};
|
|
792
|
-
};
|
|
793
|
-
type BuilderCompositionLink = CompositionLink;
|
|
794
|
-
|
|
795
|
-
declare function registerWidgetAiCatalog(widgetId: string, catalog: AiCapabilityCatalog): void;
|
|
796
|
-
declare function registerWidgetAiCatalogs(entries: Record<string, AiCapabilityCatalog>): void;
|
|
797
|
-
declare function clearWidgetAiCatalogs(): void;
|
|
798
|
-
/**
|
|
799
|
-
* Retrieves the CapabilityCatalog for a given widget ID.
|
|
800
|
-
*/
|
|
801
|
-
declare function getWidgetAiCapabilities(widgetId: string): AiCapabilityCatalog | undefined;
|
|
802
|
-
/**
|
|
803
|
-
* Aggregates macro page builder capabilities with specific micro capabilities
|
|
804
|
-
* of the widgets present in the page configuration.
|
|
805
|
-
*/
|
|
806
|
-
declare function getPageAiCatalog(pageConfig?: PageBuilderConfig): AiCapabilityCatalog;
|
|
807
|
-
|
|
808
|
-
declare const PAGE_BUILDER_WIDGET_AI_CATALOGS: InjectionToken<Record<string, AiCapabilityCatalog>>;
|
|
809
|
-
|
|
810
|
-
declare function providePageBuilderWidgetAiCatalogs(): Provider;
|
|
811
|
-
|
|
812
|
-
interface AgenticAuthoringQuickReply extends PraxisAssistantShellQuickReply {
|
|
813
|
-
kind: 'confirm' | 'revise' | 'cancel' | 'suggestion';
|
|
814
|
-
}
|
|
815
|
-
declare class DynamicPageBuilderComponent implements OnChanges {
|
|
816
|
-
private dialog;
|
|
817
|
-
private settingsPanel;
|
|
818
|
-
private readonly i18n;
|
|
819
|
-
private readonly componentMetadata;
|
|
820
|
-
private readonly agenticAuthoring;
|
|
821
|
-
private readonly agenticTurnOrchestrator;
|
|
822
|
-
runtime?: DynamicWidgetPageComponent;
|
|
823
|
-
page?: WidgetPageDefinition | string;
|
|
824
|
-
context?: Record<string, unknown> | null;
|
|
825
|
-
strictValidation: boolean;
|
|
826
|
-
autoPersist: boolean;
|
|
827
|
-
enableCustomization: boolean;
|
|
828
|
-
showSettingsButton: boolean;
|
|
829
|
-
pageIdentity?: PageIdentity;
|
|
830
|
-
componentInstanceId?: string;
|
|
831
|
-
pageEditorComponent: Type<any> | undefined;
|
|
832
|
-
enableAgenticAuthoring: boolean;
|
|
833
|
-
agenticAuthoringProvider?: string;
|
|
834
|
-
agenticAuthoringModel?: string;
|
|
835
|
-
agenticAuthoringApiKey?: string;
|
|
836
|
-
agenticAuthoringComponentId?: string;
|
|
837
|
-
agenticAuthoringScope: 'user' | 'tenant';
|
|
838
|
-
agenticAuthoringEtag?: string;
|
|
839
|
-
agenticAuthoringIncludeLlmDiagnostics: boolean;
|
|
840
|
-
agenticAuthoringEnableStreaming: boolean;
|
|
841
|
-
pageChange: EventEmitter<WidgetPageDefinition>;
|
|
842
|
-
agenticAuthoringApplied: EventEmitter<PageBuilderApplyResult>;
|
|
843
|
-
readonly currentPage: _angular_core.WritableSignal<WidgetPageDefinition>;
|
|
844
|
-
readonly connectionsViewerOpen: _angular_core.WritableSignal<boolean>;
|
|
845
|
-
readonly agenticAuthoringOpen: _angular_core.WritableSignal<boolean>;
|
|
846
|
-
readonly agenticAuthoringPrompt: _angular_core.WritableSignal<string>;
|
|
847
|
-
readonly agenticAuthoringBusy: _angular_core.WritableSignal<boolean>;
|
|
848
|
-
readonly agenticAuthoringStatus: _angular_core.WritableSignal<string>;
|
|
849
|
-
readonly agenticAuthoringError: _angular_core.WritableSignal<string>;
|
|
850
|
-
readonly agenticAuthoringPreviewResult: _angular_core.WritableSignal<PageBuilderPreviewResult | null>;
|
|
851
|
-
readonly agenticAuthoringLastEtag: _angular_core.WritableSignal<string | null>;
|
|
852
|
-
readonly agenticAuthoringConversation: _angular_core.WritableSignal<PraxisAssistantShellMessage[]>;
|
|
853
|
-
readonly agenticAuthoringQuickReplies: _angular_core.WritableSignal<AgenticAuthoringQuickReply[]>;
|
|
854
|
-
readonly agenticAuthoringAttachments: _angular_core.WritableSignal<PraxisAssistantShellAttachment[]>;
|
|
855
|
-
readonly agenticAuthoringLlmDiagnostics: _angular_core.WritableSignal<Record<string, unknown> | null>;
|
|
856
|
-
readonly agenticAuthoringEditingMessageId: _angular_core.WritableSignal<string | null>;
|
|
857
|
-
readonly agenticAuthoringPanelLayout: _angular_core.WritableSignal<PraxisAssistantShellLayout>;
|
|
858
|
-
private previewMode;
|
|
859
|
-
private agenticComponentCapabilities?;
|
|
860
|
-
private agenticComponentCapabilitiesPromise?;
|
|
861
|
-
private agenticTurnController?;
|
|
862
|
-
constructor(dialog: MatDialog, settingsPanel: SettingsPanelBridge | null);
|
|
863
|
-
ngOnChanges(changes: SimpleChanges): void;
|
|
864
|
-
showSettings(): boolean;
|
|
865
|
-
onRuntimePageChange(next: WidgetPageDefinition): void;
|
|
866
|
-
togglePreview(): void;
|
|
867
|
-
toggleConnectionsViewer(): void;
|
|
868
|
-
onAddComponent(): void;
|
|
869
|
-
addWidget(type: string): void;
|
|
870
|
-
openPageSettings(): void;
|
|
871
|
-
saveCurrentPage(): void;
|
|
872
|
-
applyConfigFromAdapter(config: PageBuilderConfig): void;
|
|
873
|
-
private createAdapterHost;
|
|
874
|
-
toggleAgenticAuthoring(): void;
|
|
875
|
-
agenticAuthoringShellLabels(): Partial<PraxisAssistantShellLabels>;
|
|
876
|
-
agenticAuthoringShellState(): PraxisAssistantShellState;
|
|
877
|
-
agenticAuthoringContextItems(): PraxisAssistantShellContextItem[];
|
|
878
|
-
previewAgenticAuthoring(): Promise<void>;
|
|
879
|
-
submitAgenticQuickReply(reply: PraxisAssistantShellQuickReply): Promise<void>;
|
|
880
|
-
attachAgenticContext(): void;
|
|
881
|
-
addAgenticAttachments(attachments: readonly PraxisAssistantShellAttachment[]): void;
|
|
882
|
-
removeAgenticAttachment(attachment: PraxisAssistantShellAttachment): void;
|
|
883
|
-
editAgenticMessage(message: PraxisAssistantShellMessage): void;
|
|
884
|
-
resendAgenticMessage(message: PraxisAssistantShellMessage): Promise<void>;
|
|
885
|
-
persistAgenticAuthoring(): Promise<void>;
|
|
886
|
-
private loadAgenticComponentCapabilities;
|
|
887
|
-
private ensureAgenticTurnController;
|
|
888
|
-
private applyAgenticPreviewLocally;
|
|
889
|
-
private applyAgenticTurnState;
|
|
890
|
-
private consumeAgenticTurn;
|
|
891
|
-
agenticAuthoringDiagnosticsTop(): number;
|
|
892
|
-
agenticAuthoringLlmDiagnosticsText(): string;
|
|
893
|
-
private resolveAgenticLlmDiagnostics;
|
|
894
|
-
private toRecord;
|
|
895
|
-
private resolvePreviewCompiledFormPatch;
|
|
896
|
-
focusCanvasWidget(widgetKey: string): void;
|
|
897
|
-
private parsePage;
|
|
898
|
-
private clonePage;
|
|
899
|
-
private defaultInputsFor;
|
|
900
|
-
private resolveAgenticComponentId;
|
|
901
|
-
private resolveSelectedWidgetKey;
|
|
902
|
-
private formatAgenticFailures;
|
|
903
|
-
private describeAgenticPreviewFailure;
|
|
904
|
-
private describeAgenticPreviewStatus;
|
|
905
|
-
private appendAgenticMessage;
|
|
906
|
-
private describeAgenticError;
|
|
907
|
-
private cloneValue;
|
|
908
|
-
tx(key: string, fallback: string): string;
|
|
909
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<DynamicPageBuilderComponent, [null, { optional: true; }]>;
|
|
910
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<DynamicPageBuilderComponent, "praxis-dynamic-page-builder", never, { "page": { "alias": "page"; "required": false; }; "context": { "alias": "context"; "required": false; }; "strictValidation": { "alias": "strictValidation"; "required": false; }; "autoPersist": { "alias": "autoPersist"; "required": false; }; "enableCustomization": { "alias": "enableCustomization"; "required": false; }; "showSettingsButton": { "alias": "showSettingsButton"; "required": false; }; "pageIdentity": { "alias": "pageIdentity"; "required": false; }; "componentInstanceId": { "alias": "componentInstanceId"; "required": false; }; "pageEditorComponent": { "alias": "pageEditorComponent"; "required": false; }; "enableAgenticAuthoring": { "alias": "enableAgenticAuthoring"; "required": false; }; "agenticAuthoringProvider": { "alias": "agenticAuthoringProvider"; "required": false; }; "agenticAuthoringModel": { "alias": "agenticAuthoringModel"; "required": false; }; "agenticAuthoringApiKey": { "alias": "agenticAuthoringApiKey"; "required": false; }; "agenticAuthoringComponentId": { "alias": "agenticAuthoringComponentId"; "required": false; }; "agenticAuthoringScope": { "alias": "agenticAuthoringScope"; "required": false; }; "agenticAuthoringEtag": { "alias": "agenticAuthoringEtag"; "required": false; }; "agenticAuthoringIncludeLlmDiagnostics": { "alias": "agenticAuthoringIncludeLlmDiagnostics"; "required": false; }; "agenticAuthoringEnableStreaming": { "alias": "agenticAuthoringEnableStreaming"; "required": false; }; }, { "pageChange": "pageChange"; "agenticAuthoringApplied": "agenticAuthoringApplied"; }, never, never, true, never>;
|
|
911
|
-
}
|
|
912
|
-
|
|
913
|
-
export { ComponentPaletteDialogComponent, ConfirmDialogComponent, DynamicPageBuilderComponent, DynamicPageConfigEditorComponent, FloatingToolbarComponent, PAGE_BUILDER_AGENTIC_AUTHORING_OPTIONS, PAGE_BUILDER_AI_CAPABILITIES, PAGE_BUILDER_WIDGET_AI_CATALOGS, PLACEHOLDER, PageBuilderAgenticAuthoringService, PageConfigEditorComponent, TileToolbarComponent, WidgetShellEditorComponent, clearWidgetAiCatalogs, getPageAiCatalog, getWidgetAiCapabilities, providePageBuilderWidgetAiCatalogs, registerWidgetAiCatalog, registerWidgetAiCatalogs };
|
|
914
|
-
export type { Capability, CapabilityCatalog, CapabilityCategory, ComponentPaletteData, ConfirmDialogData, PageBuilderAgenticAuthoringAttachmentSummary, PageBuilderAgenticAuthoringCandidate, PageBuilderAgenticAuthoringComponentCapabilitiesResult, PageBuilderAgenticAuthoringComponentCapability, PageBuilderAgenticAuthoringComponentCapabilityCatalog, PageBuilderAgenticAuthoringComponentCapabilityExample, PageBuilderAgenticAuthoringComponentFieldAlias, PageBuilderAgenticAuthoringConversationMessage, PageBuilderAgenticAuthoringEventSource, PageBuilderAgenticAuthoringEventSourceFactory, PageBuilderAgenticAuthoringGateResult, PageBuilderAgenticAuthoringIntentResolutionRequest, PageBuilderAgenticAuthoringIntentResolutionResult, PageBuilderAgenticAuthoringOptions, PageBuilderAgenticAuthoringPendingClarification, PageBuilderAgenticAuthoringPromptRequest, PageBuilderAgenticAuthoringProvider, PageBuilderAgenticAuthoringQuickReply, PageBuilderAgenticAuthoringResourceCandidatesRequest, PageBuilderAgenticAuthoringResourceCandidatesResult, PageBuilderAgenticAuthoringTarget, PageBuilderAgenticAuthoringTurnStreamConnectionError, PageBuilderAgenticAuthoringTurnStreamEvent, PageBuilderAgenticAuthoringTurnStreamRequest, PageBuilderAgenticAuthoringTurnStreamStartResponse, PageBuilderApplyRequest, PageBuilderApplyResult, PageBuilderCompiledFormPatch, PageBuilderMinimalFormPlanResult, PageBuilderPreviewDiagnostics, PageBuilderPreviewResult, ValueKind };
|