@praxisui/page-builder 10.0.0-rc.6 → 10.0.0-rc.60
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 +147 -5
- package/ai/component-registry.json +441 -95
- package/fesm2022/praxisui-page-builder.mjs +24920 -12840
- package/package.json +8 -4
- package/types/praxisui-page-builder.d.ts +1568 -122
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { MatDialogRef, MatDialog } from '@angular/material/dialog';
|
|
2
2
|
import * as _angular_core from '@angular/core';
|
|
3
|
-
import { EventEmitter, OnInit, WritableSignal, InjectionToken, Provider, OnChanges, OnDestroy, Type, SimpleChanges } from '@angular/core';
|
|
3
|
+
import { EventEmitter, OnInit, WritableSignal, InjectionToken, Provider, OnChanges, OnDestroy, Type, SimpleChanges, EnvironmentProviders } from '@angular/core';
|
|
4
4
|
import * as _praxisui_core from '@praxisui/core';
|
|
5
|
-
import { ComponentDocMeta, WidgetShellConfig, ComponentMetadataRegistry, PraxisI18nService, SettingsEditorSection, EndpointRef, PraxisTextValue, WidgetShellPresetCategory, CompositionLink, WidgetShellAction, WidgetPageAuthoringCapabilities, PortContract, ComponentPortPathSegment, LinkIntent, WidgetPageDefinition, SurfaceOpenActionEditorComponent, TransformKind, TransformPipeline, SurfaceOpenPayload, WidgetPageDeviceKind, SettingsValueProvider as SettingsValueProvider$1, WidgetShellPresetDefinition, WidgetPageCanvasLayout, WidgetPageGroupingDefinition, BUILTIN_PAGE_LAYOUT_PRESETS, BUILTIN_PAGE_THEME_PRESETS, PageIdentity, WidgetStateNode, WidgetDerivedStateNode, AiCapability, AiCapabilityCategory, AiCapabilityCatalog, AiValueKind, WidgetPageDeviceLayouts, WidgetPageSlotAssignments, WidgetPageStateInput, WidgetInstance, TransformOutputHint, TransformSemanticKind, ConfigAuthoringSource, DomainKnowledgeChangeSetRequest, DomainKnowledgeChangeSet, DomainKnowledgeChangeSetTimelineResponse, DomainKnowledgeChangeSetFilters, DomainKnowledgeValidationResponse, DomainKnowledgeStatusTransitionRequest, DomainRuleIntakeRequest, DomainRuleIntakeResponse, DomainRuleDefinitionRequest, DomainRuleDefinition, DomainRuleSimulationRequest, DomainRuleSimulationResponse, DomainRuleStatusTransitionRequest, DomainRulePublicationRequest, DomainRulePublicationResponse, DomainRuleMaterializationFilters, DomainRuleMaterialization, DomainRuleTimelineResponse, PraxisRuntimeComponentObservationEnvelope, ComponentContextPack, ComponentAuthoringManifest, DiagnosticRecord, NestedPortCatalogRegistry, CompositionValidatorService, ApiUrlEntry, DynamicWidgetPageComponent, ConfigDocument, WidgetEventEnvelope, ObservabilityAgenticTurnMetrics, SettingsPanelBridge, ObservabilityAgenticTurnMetricBucket, RichTimelineItem } from '@praxisui/core';
|
|
5
|
+
import { ComponentDocMeta, WidgetShellConfig, ComponentMetadataRegistry, PraxisI18nService, SettingsEditorSection, EndpointRef, PraxisTextValue, WidgetShellPresetCategory, CompositionLink, WidgetShellAction, WidgetPageAuthoringCapabilities, PortContract, ComponentPortPathSegment, LinkIntent, WidgetPageDefinition, SurfaceOpenActionEditorComponent, TransformKind, TransformPipeline, SurfaceOpenPayload, WidgetPageDeviceKind, SettingsValueProvider as SettingsValueProvider$1, WidgetShellPresetDefinition, WidgetPageCanvasLayout, DiscoveredResourceOption, FieldDefinition, GlobalPagesConfig, WidgetPageGroupingDefinition, WidgetPageDataSourceDefinition, WidgetPageDataSourceKind, WidgetPageDataSourceMethod, WidgetPageDataSourceErrorPolicy, BUILTIN_PAGE_LAYOUT_PRESETS, BUILTIN_PAGE_THEME_PRESETS, PageIdentity, WidgetStateNode, WidgetDerivedStateNode, AiCapability, AiCapabilityCategory, AiCapabilityCatalog, AiValueKind, WidgetPageDeviceLayouts, WidgetPageSlotAssignments, WidgetPageStateInput, WidgetInstance, TransformOutputHint, TransformSemanticKind, ConfigAuthoringSource, DomainKnowledgeChangeSetRequest, DomainKnowledgeChangeSet, DomainKnowledgeChangeSetTimelineResponse, DomainKnowledgeChangeSetFilters, DomainKnowledgeValidationResponse, DomainKnowledgeStatusTransitionRequest, DomainRuleIntakeRequest, DomainRuleIntakeResponse, DomainRuleDefinitionRequest, DomainRuleDefinition, DomainRuleSimulationRequest, DomainRuleSimulationResponse, DomainRuleStatusTransitionRequest, DomainRulePublicationRequest, DomainRulePublicationResponse, DomainRuleMaterializationFilters, DomainRuleMaterialization, DomainRuleTimelineResponse, PraxisRuntimeComponentObservationEnvelope, ComponentContextPack, ComponentAuthoringManifest, DiagnosticRecord, NestedPortCatalogRegistry, CompositionValidatorService, ApiUrlEntry, DynamicWidgetPageComponent, ConfigDocument, WidgetPagePersistenceState, WidgetEventEnvelope, ObservabilityAgenticTurnMetrics, SettingsPanelBridge, ObservabilityAgenticTurnMetricBucket, RichTimelineItem, PageAuthoringDocument, UiLayoutLayerClass, UiLayoutAssignmentSelector, PageDocumentDiagnostic, PageSourceReference, UiLayoutPageChildSource, UiLayoutTarget, PageCatalogEntry, NavigationGroupsAuthoringDocument, RuntimeNavigationMenuNode, PageCreationCommand, UiLayoutLifecycleHttpReceipt, PageCreationReceipt, PageCatalogReadOptions, PageCatalogResponse, UiLayoutLifecycleNotModifiedReceipt, PublishedPageReadResponse, UiLayoutDraftReceipt, UiLayoutDraftWorkspaceReceipt, UiLayoutReleaseReviewReceipt, UiLayoutReleaseHeadReceipt, UiLayoutRevisionCommand, UiLayoutRevisionCommandResult, UiLayoutAssignmentCommand, UiLayoutAssignmentCommandResult, UiLayoutFreezeReleaseCommand, UiLayoutFreezeReleaseCommandResult, UiLayoutReasonCommand, UiLayoutHeadWriteCondition, UiLayoutReleaseReferenceCommand, GovernedPagePreviewMaterialization, PageChildDocumentValidators, GovernedPagePreviewWidgetAdapters, UiLayoutLifecycleService, NavigationGroupAuthoringEntry, EffectiveUiLayoutService, PageNavigationBinding, PageNavigationBindingUpdateOptions, PageChildDocumentValidator, PraxisContextDimension, MaterialSelectMetadata, MaterialEntityLookupMetadata, PraxisWorkspaceQueryContextService, EnterpriseRuntimeContextService, ApiConfigStorage, PraxisThemeService, PraxisSessionTransportService, PraxisBrandConfig, PraxisNavGroup, PraxisShellBreadcrumbItem, PraxisUserProfile, PraxisShellFooterStatus, PraxisNavItem, EnterpriseRuntimeContextChoice, PraxisWorkspaceThemeId } from '@praxisui/core';
|
|
6
6
|
import * as rxjs from 'rxjs';
|
|
7
7
|
import { BehaviorSubject, Observable } from 'rxjs';
|
|
8
8
|
import { FormGroup, FormControl, FormArray, AbstractControl } from '@angular/forms';
|
|
@@ -66,23 +66,58 @@ declare class FloatingToolbarComponent {
|
|
|
66
66
|
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; }; "showSave": { "alias": "showSave"; "required": false; }; "showPreview": { "alias": "showPreview"; "required": false; }; "showAdd": { "alias": "showAdd"; "required": false; }; "showSettings": { "alias": "showSettings"; "required": false; }; "editingEnabled": { "alias": "editingEnabled"; "required": false; }; "previewActive": { "alias": "previewActive"; "required": false; }; "connectionMode": { "alias": "connectionMode"; "required": false; }; "modeLabel": { "alias": "modeLabel"; "required": false; }; "addLabel": { "alias": "addLabel"; "required": false; }; "saveLabel": { "alias": "saveLabel"; "required": false; }; "undoLabel": { "alias": "undoLabel"; "required": false; }; "redoLabel": { "alias": "redoLabel"; "required": false; }; "settingsLabel": { "alias": "settingsLabel"; "required": false; }; "previewLabel": { "alias": "previewLabel"; "required": false; }; "exitPreviewLabel": { "alias": "exitPreviewLabel"; "required": false; }; }, { "add": "add"; "undo": "undo"; "redo": "redo"; "settings": "settings"; "preview": "preview"; "save": "save"; }, never, ["[pdx-toolbar-extra]"], true, never>;
|
|
67
67
|
}
|
|
68
68
|
|
|
69
|
+
/**
|
|
70
|
+
* Canonical payload emitted when a component or preset is selected from the Page Builder palette.
|
|
71
|
+
*/
|
|
69
72
|
interface ComponentPaletteSelection {
|
|
70
73
|
componentId: string;
|
|
71
74
|
presetId?: string;
|
|
72
75
|
inputs?: Record<string, unknown>;
|
|
73
76
|
shell?: WidgetShellConfig;
|
|
77
|
+
colSpan?: number;
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* Staged item inside the batch composition tray with live grid coordinate simulation.
|
|
81
|
+
*/
|
|
82
|
+
interface QueuedPaletteItem {
|
|
83
|
+
queueId: string;
|
|
84
|
+
entryKey: string;
|
|
85
|
+
title: string;
|
|
86
|
+
icon: string;
|
|
87
|
+
selection: ComponentPaletteSelection;
|
|
88
|
+
effectiveCols: number;
|
|
89
|
+
effectiveRows: number;
|
|
90
|
+
rowPreview: number;
|
|
91
|
+
colStartPreview: number;
|
|
92
|
+
colEndPreview: number;
|
|
93
|
+
}
|
|
94
|
+
interface PaletteExistingCanvasItem {
|
|
95
|
+
row: number;
|
|
96
|
+
col: number;
|
|
97
|
+
colSpan: number;
|
|
98
|
+
rowSpan: number;
|
|
74
99
|
}
|
|
100
|
+
/**
|
|
101
|
+
* Dialog input contract for `ComponentPaletteDialogComponent`.
|
|
102
|
+
* Supports single insertion, continuous (`keepOpen`) insertion, and atomic batch (`onInsertBatch`) composition.
|
|
103
|
+
*/
|
|
75
104
|
interface ComponentPaletteData {
|
|
76
105
|
title?: string;
|
|
77
106
|
allowedWidgetIds?: string[];
|
|
78
107
|
allowedWidgetTags?: string[];
|
|
79
108
|
allowedPresetIds?: string[];
|
|
80
109
|
predicate?: (m: ComponentDocMeta) => boolean;
|
|
110
|
+
canvasColumns?: number;
|
|
111
|
+
existingCanvasItems?: PaletteExistingCanvasItem[];
|
|
112
|
+
onInsert?: (selection: ComponentPaletteSelection) => void;
|
|
113
|
+
onInsertBatch?: (selections: ComponentPaletteSelection[]) => void;
|
|
81
114
|
}
|
|
115
|
+
type PaletteCategory = 'all' | 'widget' | 'preset' | 'field';
|
|
82
116
|
interface ComponentPaletteEntry {
|
|
83
117
|
key: string;
|
|
84
118
|
componentId: string;
|
|
85
119
|
presetId?: string;
|
|
120
|
+
category: Exclude<PaletteCategory, 'all'>;
|
|
86
121
|
title: string;
|
|
87
122
|
description: string;
|
|
88
123
|
icon: string;
|
|
@@ -97,21 +132,67 @@ interface ComponentPaletteBadge {
|
|
|
97
132
|
tone: 'ready' | 'info' | 'warning' | 'neutral';
|
|
98
133
|
description: string;
|
|
99
134
|
}
|
|
135
|
+
/**
|
|
136
|
+
* Studio Component Palette Dialog for the Praxis Page Builder.
|
|
137
|
+
*
|
|
138
|
+
* Provides three enterprise authoring modes:
|
|
139
|
+
* 1. **Single Insertion**: Immediate selection and dialog dismissal (`Enter` or card click).
|
|
140
|
+
* 2. **Continuous Multi-Insert (`keepOpen`)**: Inserts directly onto the canvas without closing the dialog.
|
|
141
|
+
* 3. **Batch Staging (`batchMode`)**: Stages multiple components with live grid coordinate preview (`L·C`)
|
|
142
|
+
* and commits them atomically via `onInsertBatch`.
|
|
143
|
+
*
|
|
144
|
+
* Automatically prioritizes governed page-level widgets and presets ahead of primitive form field controls
|
|
145
|
+
* and exposes quick category filter pills for large enterprise catalogs.
|
|
146
|
+
*/
|
|
100
147
|
declare class ComponentPaletteDialogComponent implements OnInit {
|
|
101
148
|
private dialogRef;
|
|
102
149
|
private registry;
|
|
103
150
|
private i18n;
|
|
104
151
|
data?: ComponentPaletteData | undefined;
|
|
105
152
|
private readonly hostElement;
|
|
153
|
+
private queueSeq;
|
|
106
154
|
query: _angular_core.WritableSignal<string>;
|
|
155
|
+
readonly selectedCategory: _angular_core.WritableSignal<PaletteCategory>;
|
|
156
|
+
readonly selectedColSpan: _angular_core.WritableSignal<number | undefined>;
|
|
157
|
+
readonly batchMode: _angular_core.WritableSignal<boolean>;
|
|
158
|
+
readonly keepOpen: _angular_core.WritableSignal<boolean>;
|
|
159
|
+
readonly insertedCount: _angular_core.WritableSignal<number>;
|
|
160
|
+
readonly queuedItems: _angular_core.WritableSignal<QueuedPaletteItem[]>;
|
|
161
|
+
readonly canvasColumns: _angular_core.Signal<number>;
|
|
162
|
+
readonly stagedRowCount: _angular_core.Signal<number>;
|
|
163
|
+
readonly spanOptions: _angular_core.Signal<readonly {
|
|
164
|
+
label: string;
|
|
165
|
+
value: number | undefined;
|
|
166
|
+
}[]>;
|
|
167
|
+
private readonly cycleSpans;
|
|
107
168
|
private all;
|
|
169
|
+
private allowedCatalog;
|
|
170
|
+
readonly categoryOptions: _angular_core.Signal<readonly {
|
|
171
|
+
id: PaletteCategory;
|
|
172
|
+
label: string;
|
|
173
|
+
count: number;
|
|
174
|
+
}[]>;
|
|
175
|
+
readonly hasMultipleCategories: _angular_core.Signal<boolean>;
|
|
108
176
|
filtered: _angular_core.Signal<ComponentPaletteEntry[]>;
|
|
109
177
|
density: _angular_core.Signal<"roomy" | "dense" | "normal">;
|
|
110
178
|
constructor(dialogRef: MatDialogRef<ComponentPaletteDialogComponent, ComponentPaletteSelection>, registry: ComponentMetadataRegistry, i18n: PraxisI18nService, data?: ComponentPaletteData | undefined);
|
|
111
179
|
ngOnInit(): void;
|
|
180
|
+
toggleBatchMode(): void;
|
|
181
|
+
toggleKeepOpen(): void;
|
|
182
|
+
private buildPayload;
|
|
183
|
+
private resolveEffectiveCols;
|
|
184
|
+
private resolveEffectiveRows;
|
|
185
|
+
private recomputeQueueCoordinates;
|
|
186
|
+
enqueue(entry: ComponentPaletteEntry, event?: Event): void;
|
|
187
|
+
cycleQueuedItemColSpan(queueId: string): void;
|
|
188
|
+
removeQueuedItem(queueId: string): void;
|
|
189
|
+
clearQueue(): void;
|
|
190
|
+
commitBatch(): void;
|
|
112
191
|
select(entry: ComponentPaletteEntry): void;
|
|
113
192
|
handleSearchKeydown(event: KeyboardEvent): void;
|
|
114
|
-
|
|
193
|
+
clearSearch(): void;
|
|
194
|
+
resetFilters(): void;
|
|
195
|
+
handleCardKeydown(event: KeyboardEvent, index: number, entry?: ComponentPaletteEntry): void;
|
|
115
196
|
trackById: (_: number, entry: ComponentPaletteEntry) => string;
|
|
116
197
|
getPreview(entry: ComponentPaletteEntry): string;
|
|
117
198
|
tx(key: string, fallback: string): string;
|
|
@@ -119,7 +200,9 @@ declare class ComponentPaletteDialogComponent implements OnInit {
|
|
|
119
200
|
private paletteCards;
|
|
120
201
|
private searchInput;
|
|
121
202
|
private _adjustSizeEffect;
|
|
203
|
+
private applyStructuralConstraints;
|
|
122
204
|
private applyFilters;
|
|
205
|
+
private isFieldMetadata;
|
|
123
206
|
private buildEntries;
|
|
124
207
|
private buildBadges;
|
|
125
208
|
private buildBadgeSearchText;
|
|
@@ -214,6 +297,7 @@ declare class WidgetShellEditorComponent implements SettingsValueProvider {
|
|
|
214
297
|
cardBorderStyle: FormControl<string>;
|
|
215
298
|
cardRadius: FormControl<string>;
|
|
216
299
|
cardShadow: FormControl<string>;
|
|
300
|
+
interactionHighlight: FormControl<"" | "standard" | "gradient">;
|
|
217
301
|
cardFilter: FormControl<string>;
|
|
218
302
|
cardFallbackBg: FormControl<string>;
|
|
219
303
|
headerBg: FormControl<string>;
|
|
@@ -344,7 +428,7 @@ interface ConnectionEditorNode {
|
|
|
344
428
|
states: ConnectionEditorPort[];
|
|
345
429
|
}
|
|
346
430
|
type ConnectionEditorDiagnosticSeverity = 'error' | 'warning';
|
|
347
|
-
type ConnectionEditorDiagnosticCode = 'endpoint-widget-missing' | 'endpoint-unresolved' | 'endpoint-not-declared' | 'nested-path-terminal-missing' | 'nested-path-not-declared' | 'state-path-not-declared' | 'feedback-cycle-unguarded' | 'feedback-cycle-guarded';
|
|
431
|
+
type ConnectionEditorDiagnosticCode = 'endpoint-widget-missing' | 'endpoint-unresolved' | 'endpoint-not-declared' | 'nested-path-terminal-missing' | 'nested-path-not-declared' | 'state-path-not-declared' | 'feedback-cycle-unguarded' | 'feedback-cycle-guarded' | 'competing-query-owner';
|
|
348
432
|
interface ConnectionEditorDiagnostic {
|
|
349
433
|
code: ConnectionEditorDiagnosticCode;
|
|
350
434
|
severity: ConnectionEditorDiagnosticSeverity;
|
|
@@ -1091,8 +1175,68 @@ declare class CanvasConstraintEditorModel {
|
|
|
1091
1175
|
width: number;
|
|
1092
1176
|
height: number;
|
|
1093
1177
|
};
|
|
1178
|
+
private resolveFriendlyWidgetTitle;
|
|
1179
|
+
}
|
|
1180
|
+
/**
|
|
1181
|
+
* Canonical presentation model for identifying a widget instance across authoring surfaces
|
|
1182
|
+
* (State/Measure Binder, Quick Geometry, Arrangement Review, Canvas Limits, and Filter Ownership).
|
|
1183
|
+
*/
|
|
1184
|
+
interface WidgetEditorPresentation {
|
|
1185
|
+
/** Unique technical key of the widget instance in the page draft. */
|
|
1186
|
+
key: string;
|
|
1187
|
+
/** Human-readable title resolved from authored shell, inputs, rich-content AST, or disambiguated type. */
|
|
1188
|
+
title: string;
|
|
1189
|
+
/** Contextual subtitle, structural summary, resource path, or component type label. */
|
|
1190
|
+
description: string;
|
|
1191
|
+
/** Material icon identifier representing the widget instance or its component family. */
|
|
1192
|
+
icon: string;
|
|
1193
|
+
/** Localized or friendly label of the widget's component type. */
|
|
1194
|
+
typeLabel: string;
|
|
1195
|
+
/** Canonical component identifier (e.g. `praxis-rich-content`, `praxis-table`). */
|
|
1196
|
+
componentId: string;
|
|
1094
1197
|
}
|
|
1095
1198
|
|
|
1199
|
+
interface GuidedDataSourceQueryConfig {
|
|
1200
|
+
mode: 'group-by' | 'timeseries' | 'collection';
|
|
1201
|
+
groupByField?: string;
|
|
1202
|
+
metricField?: string;
|
|
1203
|
+
metricOp?: 'count' | 'sum' | 'avg' | 'min' | 'max';
|
|
1204
|
+
period?: 'day' | 'week' | 'month' | 'year';
|
|
1205
|
+
pageSize?: number;
|
|
1206
|
+
}
|
|
1207
|
+
interface GuidedDataSourceTransformConfig {
|
|
1208
|
+
kind: 'group-by-map' | 'timeseries-last' | 'path';
|
|
1209
|
+
path?: string;
|
|
1210
|
+
mappingsText?: string;
|
|
1211
|
+
totalField?: string;
|
|
1212
|
+
weightedAverageField?: string;
|
|
1213
|
+
weightedAverageDecimals?: number;
|
|
1214
|
+
ratioTargetField?: string;
|
|
1215
|
+
ratioNumeratorField?: string;
|
|
1216
|
+
ratioDenominatorField?: string;
|
|
1217
|
+
ratioScale?: number;
|
|
1218
|
+
ratioDecimals?: number;
|
|
1219
|
+
}
|
|
1220
|
+
interface GuidedDerivedMeasureConfig {
|
|
1221
|
+
targetPath: string;
|
|
1222
|
+
kind: 'ratio-percent' | 'weighted-average' | 'format-value' | 'template';
|
|
1223
|
+
numeratorPath?: string;
|
|
1224
|
+
denominatorPath?: string;
|
|
1225
|
+
sourcePath?: string;
|
|
1226
|
+
decimals?: number;
|
|
1227
|
+
format?: 'percent' | 'number' | 'currency';
|
|
1228
|
+
templateExpression?: string;
|
|
1229
|
+
}
|
|
1230
|
+
interface CollectionScreenComposerConfig {
|
|
1231
|
+
resourcePath: string;
|
|
1232
|
+
title: string;
|
|
1233
|
+
groupByField: string;
|
|
1234
|
+
includeHeader: boolean;
|
|
1235
|
+
includeIndicators: boolean;
|
|
1236
|
+
filterMode: 'table-integrated' | 'external-filter-bar';
|
|
1237
|
+
collectionKind: 'table' | 'list';
|
|
1238
|
+
detailSurface: 'none' | 'drawer' | 'modal';
|
|
1239
|
+
}
|
|
1096
1240
|
type EditorTabId$1 = 'canvas' | 'grouping' | 'devices' | 'context' | 'state' | 'limits';
|
|
1097
1241
|
type DeviceKey = 'desktop' | 'tablet' | 'mobile';
|
|
1098
1242
|
type GroupingNodeGroup$1 = FormGroup<{
|
|
@@ -1105,6 +1249,21 @@ type GroupingNodeGroup$1 = FormGroup<{
|
|
|
1105
1249
|
side: FormControl<string>;
|
|
1106
1250
|
tabsJson: FormControl<string>;
|
|
1107
1251
|
}>;
|
|
1252
|
+
type DataSourceNodeGroup$1 = FormGroup<{
|
|
1253
|
+
id: FormControl<string>;
|
|
1254
|
+
kind: FormControl<string>;
|
|
1255
|
+
resourcePath: FormControl<string>;
|
|
1256
|
+
endpointKey: FormControl<string>;
|
|
1257
|
+
method: FormControl<string>;
|
|
1258
|
+
targetStatePath: FormControl<string>;
|
|
1259
|
+
errorPolicy: FormControl<string>;
|
|
1260
|
+
refreshIntervalMs: FormControl<number | null>;
|
|
1261
|
+
autoFetch: FormControl<string>;
|
|
1262
|
+
description: FormControl<string>;
|
|
1263
|
+
queryJson: FormControl<string>;
|
|
1264
|
+
transformJson: FormControl<string>;
|
|
1265
|
+
fallbackJson: FormControl<string>;
|
|
1266
|
+
}>;
|
|
1108
1267
|
type DeviceVariantForm = FormGroup<{
|
|
1109
1268
|
columns: FormControl<number | null>;
|
|
1110
1269
|
rowUnit: FormControl<string>;
|
|
@@ -1229,6 +1388,8 @@ declare class DynamicPageConfigEditorComponent implements OnInit, SettingsValueP
|
|
|
1229
1388
|
readonly shellPresetControl: FormControl<string>;
|
|
1230
1389
|
readonly contextControl: FormControl<string>;
|
|
1231
1390
|
readonly stateControl: FormControl<string>;
|
|
1391
|
+
readonly dataSourcesControl: FormControl<string>;
|
|
1392
|
+
readonly dataSourceNodes: FormArray<DataSourceNodeGroup$1>;
|
|
1232
1393
|
readonly groupingNodes: FormArray<GroupingNodeGroup$1>;
|
|
1233
1394
|
readonly deviceForms: Record<DeviceKey, DeviceVariantForm>;
|
|
1234
1395
|
readonly isDirty$: BehaviorSubject<boolean>;
|
|
@@ -1243,22 +1404,64 @@ declare class DynamicPageConfigEditorComponent implements OnInit, SettingsValueP
|
|
|
1243
1404
|
readonly canvasLimits: CanvasConstraintEditorModel;
|
|
1244
1405
|
readonly limitsTargetControl: FormControl<number>;
|
|
1245
1406
|
readonly limitsError: WritableSignal<string | null>;
|
|
1407
|
+
readonly previousAdjustableHeights: WritableSignal<{
|
|
1408
|
+
key: string;
|
|
1409
|
+
title: string;
|
|
1410
|
+
scope: string;
|
|
1411
|
+
scopeLabel: string;
|
|
1412
|
+
heightPx: number;
|
|
1413
|
+
}[]>;
|
|
1246
1414
|
readonly limitsErrorMatcher: {
|
|
1247
1415
|
isErrorState: (control: FormControl | null) => boolean;
|
|
1248
1416
|
};
|
|
1249
1417
|
private readonly injectedData;
|
|
1250
1418
|
readonly isHostedInSettingsPanel: boolean;
|
|
1419
|
+
private readonly destroyRef;
|
|
1251
1420
|
private readonly i18n;
|
|
1421
|
+
private readonly globalConfig;
|
|
1422
|
+
private readonly componentRegistry;
|
|
1423
|
+
private readonly resourceDiscovery;
|
|
1424
|
+
private readonly dataSourceRuntime;
|
|
1425
|
+
private readonly stateRuntime;
|
|
1252
1426
|
private pageInput;
|
|
1253
1427
|
private snapshot;
|
|
1254
1428
|
readonly stackedDevices: Set<DeviceKey>;
|
|
1255
1429
|
readonly activeDevice: WritableSignal<DeviceKey>;
|
|
1256
1430
|
private hydrating;
|
|
1431
|
+
private syncingDataSources;
|
|
1432
|
+
private guidedDataSourcesInvalid;
|
|
1257
1433
|
private renderedCandidate;
|
|
1258
1434
|
private renderedValidationFingerprint;
|
|
1435
|
+
private stagedWidgets;
|
|
1436
|
+
private stagedComposition;
|
|
1437
|
+
readonly composerResourcePathControl: FormControl<string>;
|
|
1438
|
+
readonly composerTitleControl: FormControl<string>;
|
|
1439
|
+
readonly composerGroupFieldControl: FormControl<string>;
|
|
1440
|
+
readonly composerIncludeHeaderControl: FormControl<boolean>;
|
|
1441
|
+
readonly composerIncludeIndicatorsControl: FormControl<boolean>;
|
|
1442
|
+
readonly composerFilterModeControl: FormControl<"table-integrated" | "external-filter-bar">;
|
|
1443
|
+
readonly composerCollectionKindControl: FormControl<"table" | "list">;
|
|
1444
|
+
readonly composerDetailSurfaceControl: FormControl<"none" | "modal" | "drawer">;
|
|
1445
|
+
readonly composerMessage: WritableSignal<string>;
|
|
1446
|
+
readonly composerSelectedResource: WritableSignal<DiscoveredResourceOption | null>;
|
|
1447
|
+
readonly composerSchemaFields: WritableSignal<FieldDefinition[]>;
|
|
1448
|
+
private composerSchemaPath;
|
|
1449
|
+
private composerSchemaSub?;
|
|
1450
|
+
private lastAutoComposerTitle;
|
|
1451
|
+
readonly binderTokenControl: FormControl<string>;
|
|
1452
|
+
readonly binderWidgetControl: FormControl<string>;
|
|
1453
|
+
readonly binderInputPathControl: FormControl<string>;
|
|
1454
|
+
readonly binderMessage: WritableSignal<string>;
|
|
1455
|
+
readonly derivedPathControl: FormControl<string>;
|
|
1456
|
+
readonly derivedKindControl: FormControl<"template" | "format-value" | "ratio-percent" | "weighted-average">;
|
|
1457
|
+
readonly derivedNumeratorControl: FormControl<string>;
|
|
1458
|
+
readonly derivedDenominatorControl: FormControl<string>;
|
|
1459
|
+
readonly derivedFormatControl: FormControl<"number" | "boolean" | "integer" | "percent" | "currency">;
|
|
1460
|
+
readonly derivedDecimalsControl: FormControl<number>;
|
|
1259
1461
|
private readonly tabOrder;
|
|
1260
1462
|
constructor();
|
|
1261
1463
|
ngOnInit(): void;
|
|
1464
|
+
ngOnDestroy(): void;
|
|
1262
1465
|
get selectedTabIndex(): number;
|
|
1263
1466
|
get isConfigurationValid(): boolean;
|
|
1264
1467
|
get hasPendingChanges(): boolean;
|
|
@@ -1266,6 +1469,19 @@ declare class DynamicPageConfigEditorComponent implements OnInit, SettingsValueP
|
|
|
1266
1469
|
get dirtyStateLabel(): string;
|
|
1267
1470
|
get nonLimitError(): string | null;
|
|
1268
1471
|
get limitsSummaryError(): string | null;
|
|
1472
|
+
get blockedGeometryWidgets(): Array<{
|
|
1473
|
+
targetIndex: number;
|
|
1474
|
+
key: string;
|
|
1475
|
+
title: string;
|
|
1476
|
+
scope: string;
|
|
1477
|
+
scopeLabel: string;
|
|
1478
|
+
heightPx: number | null;
|
|
1479
|
+
message: string;
|
|
1480
|
+
}>;
|
|
1481
|
+
navigateToBlockedLimit(targetIndex?: number): void;
|
|
1482
|
+
switchBlockedWidgetsToAutoHeight(): void;
|
|
1483
|
+
get globalPageDefaults(): GlobalPagesConfig['defaults'] | undefined;
|
|
1484
|
+
get globalThemePresetEntry(): ThemePresetEntry | null;
|
|
1269
1485
|
get selectedLayoutPresetLabel(): string;
|
|
1270
1486
|
get selectedThemePresetLabel(): string;
|
|
1271
1487
|
get selectedLayoutPresetEntry(): LayoutPresetEntry | null;
|
|
@@ -1286,6 +1502,112 @@ declare class DynamicPageConfigEditorComponent implements OnInit, SettingsValueP
|
|
|
1286
1502
|
private stackedCanvas;
|
|
1287
1503
|
addGroupingNode(seed?: WidgetPageGroupingDefinition): void;
|
|
1288
1504
|
removeGroupingNode(index: number): void;
|
|
1505
|
+
private readonly groupingSelectedKeysCache;
|
|
1506
|
+
groupingSelectedWidgetKeys(index: number): string[];
|
|
1507
|
+
groupingSelectedWidgetsLabel(index: number): string;
|
|
1508
|
+
groupingSelectedWidgetIcon(index: number): string;
|
|
1509
|
+
onGroupingWidgetSelectionChange(index: number, selectedKeys: readonly string[]): void;
|
|
1510
|
+
addDataSourceNode(seed?: Partial<WidgetPageDataSourceDefinition>): void;
|
|
1511
|
+
removeDataSourceNode(index: number): void;
|
|
1512
|
+
dataSourceLabel(index: number): string;
|
|
1513
|
+
applyGuidedDataSourceQuery(index: number, config: GuidedDataSourceQueryConfig): void;
|
|
1514
|
+
applyGuidedDataSourceTransform(index: number, config: GuidedDataSourceTransformConfig): void;
|
|
1515
|
+
getDataSourcePreview(index: number): {
|
|
1516
|
+
status: 'ok' | 'error';
|
|
1517
|
+
sourceKind: 'live' | 'sample';
|
|
1518
|
+
value?: unknown;
|
|
1519
|
+
formattedJson?: string;
|
|
1520
|
+
error?: string;
|
|
1521
|
+
tokens: string[];
|
|
1522
|
+
};
|
|
1523
|
+
resolveEndpointKey(rawKey?: string | null): any;
|
|
1524
|
+
addGuidedDerivedMeasure(config?: Partial<GuidedDerivedMeasureConfig>): boolean;
|
|
1525
|
+
getDerivedStatePreview(): {
|
|
1526
|
+
entries: Array<{
|
|
1527
|
+
key: string;
|
|
1528
|
+
value: unknown;
|
|
1529
|
+
formattedValue: string;
|
|
1530
|
+
token: string;
|
|
1531
|
+
}>;
|
|
1532
|
+
diagnostics: string[];
|
|
1533
|
+
};
|
|
1534
|
+
availableStateBindingTokens(): string[];
|
|
1535
|
+
bindablePageWidgets(): WidgetEditorPresentation[];
|
|
1536
|
+
selectedBinderWidget(): WidgetEditorPresentation | null;
|
|
1537
|
+
selectedBinderWidgetInputSuggestions(): string[];
|
|
1538
|
+
readonly binderDeclarativePipes: readonly ["| number", "| round:1", "| percent:1", "| currency:\"BRL\"", "| currencyCompact:\"BRL\"", "| dateTime", "| default:0", "| uppercase"];
|
|
1539
|
+
private static readonly ALLOWED_DECLARATIVE_PIPES;
|
|
1540
|
+
selectBinderInputPathSuggestion(path: string): void;
|
|
1541
|
+
selectBinderTokenSuggestion(token: string): void;
|
|
1542
|
+
appendBinderTokenPipe(pipeSegment: string): void;
|
|
1543
|
+
hasInvalidDeclarativePipe(rawExpression?: string | null): boolean;
|
|
1544
|
+
binderTokenPipeError(): string | null;
|
|
1545
|
+
binderTokenLivePreview(): string | null;
|
|
1546
|
+
invalidWidgetStateBindingPipes(): Array<{
|
|
1547
|
+
widgetKey: string;
|
|
1548
|
+
widgetTitle: string;
|
|
1549
|
+
inputPath: string;
|
|
1550
|
+
expression: string;
|
|
1551
|
+
}>;
|
|
1552
|
+
loadStateBindingIntoForm(binding: {
|
|
1553
|
+
widgetKey: string;
|
|
1554
|
+
inputPath: string;
|
|
1555
|
+
token?: string;
|
|
1556
|
+
expression?: string;
|
|
1557
|
+
}): void;
|
|
1558
|
+
widgetIconForKey(widgetKey: string): string;
|
|
1559
|
+
bindStateTokenToWidget(widgetKey?: string, inputPath?: string, stateToken?: string): boolean;
|
|
1560
|
+
currentWidgetStateBindings(): Array<{
|
|
1561
|
+
widgetKey: string;
|
|
1562
|
+
widgetTitle: string;
|
|
1563
|
+
inputPath: string;
|
|
1564
|
+
token: string;
|
|
1565
|
+
}>;
|
|
1566
|
+
resolveStateTokenPreview(rawToken: string): string | null;
|
|
1567
|
+
private resolveStateTokenMatch;
|
|
1568
|
+
unboundWidgetStatePlaceholders(): Array<{
|
|
1569
|
+
widgetKey: string;
|
|
1570
|
+
widgetTitle: string;
|
|
1571
|
+
placeholder: string;
|
|
1572
|
+
suggestedInputPath: string;
|
|
1573
|
+
}>;
|
|
1574
|
+
selectUnboundPlaceholder(item: {
|
|
1575
|
+
widgetKey: string;
|
|
1576
|
+
placeholder: string;
|
|
1577
|
+
suggestedInputPath: string;
|
|
1578
|
+
}): void;
|
|
1579
|
+
unbindStateTokenFromWidget(widgetKey: string, inputPath: string): boolean;
|
|
1580
|
+
autoBindWidgetStatePlaceholders(): number;
|
|
1581
|
+
onComposerResourceSelected(entry: DiscoveredResourceOption | null): void;
|
|
1582
|
+
private syncDefaultComposerGroupField;
|
|
1583
|
+
filteredComposerGroupFieldOptions(): FieldDefinition[];
|
|
1584
|
+
getComposerFieldTypeBadge(field: FieldDefinition | null | undefined): string;
|
|
1585
|
+
getComposerFieldDescription(field: FieldDefinition | null | undefined): string;
|
|
1586
|
+
private loadComposerSchemaFields;
|
|
1587
|
+
private resolveGroupByMappings;
|
|
1588
|
+
composeCollectionScreen(overrides?: Partial<CollectionScreenComposerConfig>): WidgetPageDefinition | null;
|
|
1589
|
+
quickCanvasWidgets(): Array<{
|
|
1590
|
+
key: string;
|
|
1591
|
+
label: string;
|
|
1592
|
+
icon: string;
|
|
1593
|
+
description: string;
|
|
1594
|
+
col: number;
|
|
1595
|
+
row: number;
|
|
1596
|
+
colSpan: number;
|
|
1597
|
+
rowSpan: number;
|
|
1598
|
+
}>;
|
|
1599
|
+
setWidgetCanvasSpan(widgetKey: string, colSpan: number, rowSpan?: number): void;
|
|
1600
|
+
duplicateFilterOwners(): Array<{
|
|
1601
|
+
tableKey: string;
|
|
1602
|
+
tableTitle: string;
|
|
1603
|
+
externalSourceKeys: string[];
|
|
1604
|
+
externalSourceLabels: string[];
|
|
1605
|
+
linkIds: string[];
|
|
1606
|
+
}>;
|
|
1607
|
+
consolidateFilterOwnership(tableKey: string, mode: 'keep-table-toolbar' | 'keep-external-link'): void;
|
|
1608
|
+
private resolveWidgetPresentation;
|
|
1609
|
+
private resolveWidgetTitle;
|
|
1610
|
+
private isFilterLinkTargetingWidget;
|
|
1289
1611
|
layoutPresetSummary(preset: LayoutPresetEntry): string;
|
|
1290
1612
|
slotsSummary(preset: LayoutPresetEntry): string;
|
|
1291
1613
|
requiredSlotsSummary(preset: LayoutPresetEntry): string;
|
|
@@ -1295,6 +1617,7 @@ declare class DynamicPageConfigEditorComponent implements OnInit, SettingsValueP
|
|
|
1295
1617
|
tx(key: string, fallback: string): string;
|
|
1296
1618
|
shellPresetLabel(preset: WidgetShellPresetDefinition): string;
|
|
1297
1619
|
limitsTargetLabel(index: number): string;
|
|
1620
|
+
limitsTargetIcon(index: number): string;
|
|
1298
1621
|
limitFieldError(control: FormControl<number | null>): string;
|
|
1299
1622
|
private draftFingerprint;
|
|
1300
1623
|
limitsGeometryLabel(): string;
|
|
@@ -1305,6 +1628,14 @@ declare class DynamicPageConfigEditorComponent implements OnInit, SettingsValueP
|
|
|
1305
1628
|
protected refreshRenderedValidation(): void;
|
|
1306
1629
|
private createDeviceVariantForm;
|
|
1307
1630
|
private createGroupingNodeGroup;
|
|
1631
|
+
private createDataSourceNodeGroup;
|
|
1632
|
+
private replaceDataSourceNodes;
|
|
1633
|
+
private buildDataSourcesFromNodes;
|
|
1634
|
+
syncStateValuesFromDataSources(): number;
|
|
1635
|
+
private ensureDataSourceTargetPathsInStateValues;
|
|
1636
|
+
private syncDataSourcesJsonFromNodes;
|
|
1637
|
+
private syncDataSourceNodesFromJson;
|
|
1638
|
+
private inferPageResourcePath;
|
|
1308
1639
|
private hydrate;
|
|
1309
1640
|
private replaceGroupingNodes;
|
|
1310
1641
|
private buildCurrentPage;
|
|
@@ -1317,13 +1648,20 @@ declare class DynamicPageConfigEditorComponent implements OnInit, SettingsValueP
|
|
|
1317
1648
|
private invalidate;
|
|
1318
1649
|
private refreshPanelState;
|
|
1319
1650
|
get layoutPresetOptions(): WidgetPageDefinition['layoutPresetOptions'];
|
|
1651
|
+
private effectivePageInput;
|
|
1652
|
+
private readEffectiveWidgets;
|
|
1320
1653
|
private currentPageInput;
|
|
1321
1654
|
private parsePage;
|
|
1322
1655
|
private parseJson;
|
|
1323
1656
|
private parseRecordJson;
|
|
1657
|
+
private parseDataSourcesJson;
|
|
1658
|
+
private isValidDataSourceTransform;
|
|
1659
|
+
private validateDataSourceEntry;
|
|
1660
|
+
private isValidDataSourcesPayload;
|
|
1324
1661
|
private parseGroupingTabs;
|
|
1325
1662
|
private parseGroupingOverrides;
|
|
1326
1663
|
private parseWidgetOverrides;
|
|
1664
|
+
private validateWidgetOverrides;
|
|
1327
1665
|
private isGroupingTab;
|
|
1328
1666
|
private isGroupingOverride;
|
|
1329
1667
|
private isWidgetOverride;
|
|
@@ -1338,6 +1676,17 @@ declare class DynamicPageConfigEditorComponent implements OnInit, SettingsValueP
|
|
|
1338
1676
|
private applyShellPresetToContext;
|
|
1339
1677
|
private lookupPresetLabel;
|
|
1340
1678
|
private defaultCanvas;
|
|
1679
|
+
private parseKeyValuePairs;
|
|
1680
|
+
private buildSamplePayloadForDataSource;
|
|
1681
|
+
private collectStateTokensForValue;
|
|
1682
|
+
private assignNestedValue;
|
|
1683
|
+
private readNestedValue;
|
|
1684
|
+
private deleteNestedValue;
|
|
1685
|
+
private isPlaceholderBoundInContext;
|
|
1686
|
+
private collectTemplatePlaceholdersRecursive;
|
|
1687
|
+
private collectWidgetBindingsRecursive;
|
|
1688
|
+
private collectInvalidWidgetPipesRecursive;
|
|
1689
|
+
private humanizeResourceTitle;
|
|
1341
1690
|
private clone;
|
|
1342
1691
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<DynamicPageConfigEditorComponent, never>;
|
|
1343
1692
|
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>;
|
|
@@ -1409,11 +1758,29 @@ type GroupingNodeGroup = FormGroup<{
|
|
|
1409
1758
|
side: FormControl<string>;
|
|
1410
1759
|
tabsJson: FormControl<string>;
|
|
1411
1760
|
}>;
|
|
1761
|
+
type DataSourceNodeGroup = FormGroup<{
|
|
1762
|
+
id: FormControl<string>;
|
|
1763
|
+
kind: FormControl<string>;
|
|
1764
|
+
resourcePath: FormControl<string>;
|
|
1765
|
+
endpointKey: FormControl<string>;
|
|
1766
|
+
method: FormControl<string>;
|
|
1767
|
+
targetStatePath: FormControl<string>;
|
|
1768
|
+
errorPolicy: FormControl<string>;
|
|
1769
|
+
refreshIntervalMs: FormControl<number | null>;
|
|
1770
|
+
autoFetch: FormControl<string>;
|
|
1771
|
+
queryJson: FormControl<string>;
|
|
1772
|
+
transformJson: FormControl<string>;
|
|
1773
|
+
fallbackJson: FormControl<string>;
|
|
1774
|
+
description: FormControl<string>;
|
|
1775
|
+
}>;
|
|
1412
1776
|
declare class PageConfigEditorComponent implements SettingsValueProvider$1 {
|
|
1413
1777
|
protected readonly derivedOperators: readonly ["merge-objects", "pick", "omit"];
|
|
1414
1778
|
protected readonly mergeStrategies: readonly ["replace", "merge", "append", "remove-keys"];
|
|
1415
1779
|
protected readonly valueModes: readonly ["json", "string", "number", "boolean", "null"];
|
|
1416
1780
|
protected readonly groupingKinds: readonly ["section", "tabs", "hero", "rail"];
|
|
1781
|
+
protected readonly dataSourceKinds: WidgetPageDataSourceKind[];
|
|
1782
|
+
protected readonly dataSourceMethods: WidgetPageDataSourceMethod[];
|
|
1783
|
+
protected readonly dataSourceErrorPolicies: WidgetPageDataSourceErrorPolicy[];
|
|
1417
1784
|
protected readonly layoutPresetEntries: Array<(typeof BUILTIN_PAGE_LAYOUT_PRESETS)[string]>;
|
|
1418
1785
|
protected readonly themePresetEntries: Array<(typeof BUILTIN_PAGE_THEME_PRESETS)[string]>;
|
|
1419
1786
|
readonly page: _angular_core.InputSignal<string | PageDefinition | null>;
|
|
@@ -1433,9 +1800,11 @@ declare class PageConfigEditorComponent implements SettingsValueProvider$1 {
|
|
|
1433
1800
|
readonly groupingControl: FormControl<string>;
|
|
1434
1801
|
readonly deviceLayoutsControl: FormControl<string>;
|
|
1435
1802
|
readonly stateValuesControl: FormControl<string>;
|
|
1803
|
+
readonly dataSourcesControl: FormControl<string>;
|
|
1436
1804
|
readonly groupingNodes: FormArray<GroupingNodeGroup>;
|
|
1437
1805
|
readonly schemaNodes: FormArray<SchemaNodeGroup>;
|
|
1438
1806
|
readonly derivedNodes: FormArray<DerivedNodeGroup>;
|
|
1807
|
+
readonly dataSourceNodes: FormArray<DataSourceNodeGroup>;
|
|
1439
1808
|
readonly deviceDesktopForm: FormGroup<{
|
|
1440
1809
|
orientation: FormControl<string>;
|
|
1441
1810
|
columns: FormControl<number | null>;
|
|
@@ -1472,13 +1841,17 @@ declare class PageConfigEditorComponent implements SettingsValueProvider$1 {
|
|
|
1472
1841
|
private lastGrouping;
|
|
1473
1842
|
private lastDeviceLayouts;
|
|
1474
1843
|
private lastStateValues;
|
|
1844
|
+
private lastDataSources;
|
|
1845
|
+
private dataSourcesEditSource;
|
|
1475
1846
|
private readonly dirtySubject;
|
|
1476
1847
|
private readonly validSubject;
|
|
1477
1848
|
private readonly busySubject;
|
|
1478
1849
|
private snapshot;
|
|
1479
1850
|
private readonly tabOrder;
|
|
1480
1851
|
private readonly i18n;
|
|
1852
|
+
private readonly globalConfig;
|
|
1481
1853
|
private readonly injectedData;
|
|
1854
|
+
protected get globalPageDefaults(): GlobalPagesConfig['defaults'] | undefined;
|
|
1482
1855
|
readonly isDirty$: rxjs.Observable<boolean>;
|
|
1483
1856
|
readonly isValid$: rxjs.Observable<boolean>;
|
|
1484
1857
|
readonly isBusy$: rxjs.Observable<boolean>;
|
|
@@ -1493,6 +1866,7 @@ declare class PageConfigEditorComponent implements SettingsValueProvider$1 {
|
|
|
1493
1866
|
protected get selectedShellPresetLabel(): string;
|
|
1494
1867
|
protected get contextExample(): string;
|
|
1495
1868
|
protected get stateValuesExample(): string;
|
|
1869
|
+
protected get dataSourcesExample(): string;
|
|
1496
1870
|
protected get layoutPresetHint(): string;
|
|
1497
1871
|
protected get themePresetHint(): string;
|
|
1498
1872
|
protected get shellPresetHint(): string;
|
|
@@ -1516,6 +1890,8 @@ declare class PageConfigEditorComponent implements SettingsValueProvider$1 {
|
|
|
1516
1890
|
config?: WidgetDerivedStateNode;
|
|
1517
1891
|
}): void;
|
|
1518
1892
|
removeDerivedNode(index: number): void;
|
|
1893
|
+
addDataSourceNode(seed?: WidgetPageDataSourceDefinition): void;
|
|
1894
|
+
removeDataSourceNode(index: number): void;
|
|
1519
1895
|
addGroupingNode(seed?: WidgetPageGroupingDefinition): void;
|
|
1520
1896
|
removeGroupingNode(index: number): void;
|
|
1521
1897
|
setActiveTab(tab: EditorTabId): void;
|
|
@@ -1527,11 +1903,24 @@ declare class PageConfigEditorComponent implements SettingsValueProvider$1 {
|
|
|
1527
1903
|
private stringifyGroupingWidgetKeys;
|
|
1528
1904
|
private buildGrouping;
|
|
1529
1905
|
private hydrateDeviceLayoutControls;
|
|
1906
|
+
private deviceOverridesError;
|
|
1530
1907
|
private buildDeviceLayouts;
|
|
1531
1908
|
private createDeviceLayoutForm;
|
|
1532
1909
|
private patchDeviceLayoutForm;
|
|
1533
1910
|
private buildDeviceLayoutVariant;
|
|
1534
1911
|
private hydrateStateEditor;
|
|
1912
|
+
private hydrateDataSourcesEditor;
|
|
1913
|
+
private normalizeDataSourcesArray;
|
|
1914
|
+
private replaceDataSourceNodes;
|
|
1915
|
+
private createDataSourceNodeGroup;
|
|
1916
|
+
private syncDataSourceNodesFromControl;
|
|
1917
|
+
private syncDataSourcesControlFromNodes;
|
|
1918
|
+
private isPlainRecord;
|
|
1919
|
+
private isValidDataSourceTransform;
|
|
1920
|
+
private validateDataSourceEntry;
|
|
1921
|
+
private isValidDataSourcesPayload;
|
|
1922
|
+
private buildDataSourcesFromNodes;
|
|
1923
|
+
private buildDataSources;
|
|
1535
1924
|
private replaceSchemaNodes;
|
|
1536
1925
|
private replaceDerivedNodes;
|
|
1537
1926
|
private createSchemaNodeGroup;
|
|
@@ -2268,20 +2657,6 @@ interface AgenticAuthoringQuickReply extends PraxisAssistantShellQuickReply {
|
|
|
2268
2657
|
kind: string;
|
|
2269
2658
|
}
|
|
2270
2659
|
type AgenticAuthoringPanelLayout = PraxisAssistantShellLayout;
|
|
2271
|
-
type PageBuilderPremiumReadinessSeverity = 'info' | 'warning' | 'error';
|
|
2272
|
-
type PageBuilderPremiumReadinessActionKind = 'open-page-settings' | 'open-connections' | 'open-widget-config' | 'focus-widget';
|
|
2273
|
-
interface PageBuilderPremiumReadinessAction {
|
|
2274
|
-
kind: PageBuilderPremiumReadinessActionKind;
|
|
2275
|
-
label: string;
|
|
2276
|
-
widgetKey?: string;
|
|
2277
|
-
}
|
|
2278
|
-
interface PageBuilderPremiumReadinessIssue {
|
|
2279
|
-
id: string;
|
|
2280
|
-
severity: PageBuilderPremiumReadinessSeverity;
|
|
2281
|
-
title: string;
|
|
2282
|
-
description: string;
|
|
2283
|
-
action?: PageBuilderPremiumReadinessAction;
|
|
2284
|
-
}
|
|
2285
2660
|
type SharedRuleCockpitAction = 'definition' | 'simulation' | 'approve' | 'activate' | 'publication' | 'materializations' | 'timeline' | 'enforcement';
|
|
2286
2661
|
type ProjectKnowledgeCockpitAction = 'change-set' | 'validate' | 'approve' | 'reject' | 'apply' | 'readback';
|
|
2287
2662
|
interface SharedRuleEnforcementSummary {
|
|
@@ -2334,21 +2709,32 @@ declare class DynamicPageBuilderComponent implements OnChanges, OnDestroy {
|
|
|
2334
2709
|
private readonly observabilityDashboard;
|
|
2335
2710
|
private readonly runtimeObservationRegistry;
|
|
2336
2711
|
private readonly agenticAuthoringOptions;
|
|
2712
|
+
private readonly customizationMode;
|
|
2337
2713
|
runtime?: DynamicWidgetPageComponent;
|
|
2338
2714
|
page?: WidgetPageDefinition | string;
|
|
2339
2715
|
context?: Record<string, unknown> | null;
|
|
2340
2716
|
strictValidation: boolean;
|
|
2717
|
+
/** Opt in to Core persistence; hosts managing their own documents leave this disabled. */
|
|
2341
2718
|
autoPersist: boolean;
|
|
2342
2719
|
enableCustomization: boolean;
|
|
2343
2720
|
authoringCapabilities?: PageBuilderAuthoringCapabilities | null;
|
|
2344
2721
|
showSettingsButton: boolean;
|
|
2722
|
+
showGovernanceToolbar: boolean;
|
|
2723
|
+
governanceToolbarTitle?: string;
|
|
2345
2724
|
pageIdentity?: PageIdentity;
|
|
2346
2725
|
componentInstanceId?: string;
|
|
2726
|
+
reconcilePersistedPage?: (saved: WidgetPageDefinition, factory: WidgetPageDefinition) => WidgetPageDefinition;
|
|
2727
|
+
preparePageForPersistence?: (page: WidgetPageDefinition) => WidgetPageDefinition;
|
|
2347
2728
|
pageEditorComponent: Type<any> | undefined;
|
|
2348
2729
|
componentPaletteAllowedWidgetIds: string[] | null;
|
|
2349
2730
|
componentPaletteAllowedWidgetTags: string[] | null;
|
|
2350
2731
|
componentPaletteAllowedPresetIds: string[] | null;
|
|
2351
2732
|
enableAgenticAuthoring: boolean;
|
|
2733
|
+
/**
|
|
2734
|
+
* Allows Core `autoPersist` to stay active when `enableAgenticAuthoring` is enabled,
|
|
2735
|
+
* automatically pausing while an unapplied agentic preview (`agenticAuthoringPreviewResult`) is active.
|
|
2736
|
+
*/
|
|
2737
|
+
allowAutoPersistWithAgentic: boolean;
|
|
2352
2738
|
agenticAuthoringProvider?: string;
|
|
2353
2739
|
agenticAuthoringModel?: string;
|
|
2354
2740
|
agenticAuthoringApiKey?: string;
|
|
@@ -2357,6 +2743,8 @@ declare class DynamicPageBuilderComponent implements OnChanges, OnDestroy {
|
|
|
2357
2743
|
agenticAuthoringEtag?: string;
|
|
2358
2744
|
agenticAuthoringIncludeLlmDiagnostics: boolean;
|
|
2359
2745
|
agenticAuthoringEnableStreaming: boolean;
|
|
2746
|
+
/** Commits agentic previews locally on the canvas without calling the remote page-apply endpoint. */
|
|
2747
|
+
agenticAuthoringLocalApplyOnly: boolean;
|
|
2360
2748
|
agenticAuthoringVoiceInputMode: PraxisAssistantVoiceInputMode;
|
|
2361
2749
|
agenticAuthoringContextHints?: Record<string, unknown> | null;
|
|
2362
2750
|
/** Canonical persisted payload, revision and semantic source used to reopen authoring. */
|
|
@@ -2365,6 +2753,8 @@ declare class DynamicPageBuilderComponent implements OnChanges, OnDestroy {
|
|
|
2365
2753
|
canDeleteSavedPage: boolean;
|
|
2366
2754
|
pageLifecycleBusy: boolean;
|
|
2367
2755
|
pageLifecycleResetRevision: number | string | null;
|
|
2756
|
+
readonly persistenceChange: _angular_core.OutputEmitterRef<WidgetPagePersistenceState>;
|
|
2757
|
+
private runtimePersistenceStatus;
|
|
2368
2758
|
pageChange: EventEmitter<WidgetPageDefinition>;
|
|
2369
2759
|
/** Emits only explicit visual authoring operations, never runtime state changes. */
|
|
2370
2760
|
readonly pageAuthoringChange: _angular_core.OutputEmitterRef<WidgetPageDefinition>;
|
|
@@ -2374,12 +2764,19 @@ declare class DynamicPageBuilderComponent implements OnChanges, OnDestroy {
|
|
|
2374
2764
|
agenticAuthoringSharedRuleHandoff: EventEmitter<PageBuilderAgenticAuthoringSharedRuleHandoff>;
|
|
2375
2765
|
pageRestart: EventEmitter<void>;
|
|
2376
2766
|
savedPageDeleteRequested: EventEmitter<void>;
|
|
2767
|
+
customizationChange: EventEmitter<boolean>;
|
|
2377
2768
|
readonly currentPage: _angular_core.WritableSignal<WidgetPageDefinition>;
|
|
2769
|
+
readonly isCustomizing: _angular_core.WritableSignal<boolean>;
|
|
2770
|
+
readonly governancePersistence: _angular_core.WritableSignal<WidgetPagePersistenceState>;
|
|
2771
|
+
readonly isLayoutCustomized: _angular_core.Signal<boolean>;
|
|
2772
|
+
readonly isGovernanceBusy: _angular_core.Signal<boolean>;
|
|
2773
|
+
readonly governancePersistenceLabel: _angular_core.Signal<string>;
|
|
2774
|
+
readonly governanceLastSavedAt: _angular_core.Signal<string | null>;
|
|
2378
2775
|
readonly hasPageWidgets: _angular_core.Signal<boolean>;
|
|
2379
2776
|
readonly hasRecommendedConnectionSuggestion: _angular_core.Signal<boolean>;
|
|
2380
|
-
readonly premiumReadinessIssues: _angular_core.Signal<PageBuilderPremiumReadinessIssue[]>;
|
|
2381
2777
|
readonly connectionsViewerOpen: _angular_core.WritableSignal<boolean>;
|
|
2382
2778
|
readonly agenticAuthoringOpen: _angular_core.WritableSignal<boolean>;
|
|
2779
|
+
protected readonly agenticAuthoringShellOwnerRevision: _angular_core.WritableSignal<number>;
|
|
2383
2780
|
readonly agenticAuthoringPrompt: _angular_core.WritableSignal<string>;
|
|
2384
2781
|
readonly agenticAuthoringBusy: _angular_core.WritableSignal<boolean>;
|
|
2385
2782
|
private readonly agenticAuthoringTerminalState;
|
|
@@ -2425,7 +2822,8 @@ declare class DynamicPageBuilderComponent implements OnChanges, OnDestroy {
|
|
|
2425
2822
|
readonly agenticAuthoringPanelLayout: _angular_core.WritableSignal<PraxisAssistantShellLayout>;
|
|
2426
2823
|
private readonly previewMode;
|
|
2427
2824
|
private runtimePageCache?;
|
|
2428
|
-
private
|
|
2825
|
+
private lastRuntimePageSnapshot;
|
|
2826
|
+
private activePersistableEnableCustomizationKey;
|
|
2429
2827
|
private agenticComponentCapabilities?;
|
|
2430
2828
|
private agenticComponentCapabilitiesPromise?;
|
|
2431
2829
|
private agenticTurnController?;
|
|
@@ -2440,19 +2838,31 @@ declare class DynamicPageBuilderComponent implements OnChanges, OnDestroy {
|
|
|
2440
2838
|
constructor(dialog: MatDialog, settingsPanel: SettingsPanelBridge | null);
|
|
2441
2839
|
ngOnChanges(changes: SimpleChanges): void;
|
|
2442
2840
|
ngOnDestroy(): void;
|
|
2841
|
+
protected isCustomizationToggleDisabled(): boolean;
|
|
2842
|
+
toggleGovernanceCustomization(): void;
|
|
2843
|
+
isCustomizationEnabled(): boolean;
|
|
2443
2844
|
showSettings(): boolean;
|
|
2444
2845
|
canInsertWidgets(): boolean;
|
|
2445
2846
|
canOpenPageSettings(): boolean;
|
|
2446
2847
|
canEditConnections(): boolean;
|
|
2447
2848
|
canPreviewPage(): boolean;
|
|
2448
2849
|
canUseAgenticAuthoring(): boolean;
|
|
2449
|
-
canRunPremiumReadinessAction(action: PageBuilderPremiumReadinessAction): boolean;
|
|
2450
2850
|
canUsePageLifecycle(): boolean;
|
|
2451
2851
|
private isAuthoringCapabilityEnabled;
|
|
2452
2852
|
isPreviewMode(): boolean;
|
|
2453
2853
|
runtimePage(): WidgetPageDefinition;
|
|
2454
2854
|
runtimeAuthoringCapabilities(): PageBuilderAuthoringCapabilities;
|
|
2455
2855
|
builderModeLabel(): string;
|
|
2856
|
+
/** Governed documents retain their explicit host/apply lifecycle; agentic previews pause writes without tearing down auto-persist. */
|
|
2857
|
+
runtimeAutoPersist(): boolean;
|
|
2858
|
+
/** Suspends save dispatches while an unapplied agentic preview is open without resetting runtime persistence. */
|
|
2859
|
+
runtimeAutoPersistPaused(): boolean;
|
|
2860
|
+
/** Explicitly discard the local draft and reload the current identity's saved page. */
|
|
2861
|
+
reloadPersistedPage(defaultPage?: WidgetPageDefinition): void;
|
|
2862
|
+
/** Clear the current identity's saved document after storage acknowledgement. */
|
|
2863
|
+
resetPersistedPage(defaultPage?: WidgetPageDefinition): void;
|
|
2864
|
+
onRuntimePersistenceChange(state: WidgetPagePersistenceState): void;
|
|
2865
|
+
private syncShellPageGovernance;
|
|
2456
2866
|
onRuntimePageChange(next: WidgetPageDefinition): void;
|
|
2457
2867
|
onRuntimePageAuthoringChange(next: WidgetPageDefinition): void;
|
|
2458
2868
|
onRuntimeWidgetEvent(event: WidgetEventEnvelope): void;
|
|
@@ -2475,17 +2885,14 @@ declare class DynamicPageBuilderComponent implements OnChanges, OnDestroy {
|
|
|
2475
2885
|
connectionsToggleLabel(): string;
|
|
2476
2886
|
onAddComponent(): void;
|
|
2477
2887
|
addWidget(selection: string | ComponentPaletteSelection): void;
|
|
2888
|
+
addWidgets(selections: ReadonlyArray<string | ComponentPaletteSelection>): string[];
|
|
2889
|
+
private appendWidgetToDraft;
|
|
2478
2890
|
private layoutHintsFor;
|
|
2479
2891
|
openPageSettings(): void;
|
|
2892
|
+
/** Retries the current persisted draft, including an intentionally empty page. */
|
|
2893
|
+
retryPersistedPage(): void;
|
|
2480
2894
|
saveCurrentPage(): void;
|
|
2481
2895
|
canSaveCurrentPage(): boolean;
|
|
2482
|
-
private evaluatePremiumReadiness;
|
|
2483
|
-
runPremiumReadinessAction(issue: PageBuilderPremiumReadinessIssue): void;
|
|
2484
|
-
private isPremiumReadinessCandidate;
|
|
2485
|
-
private hasDisconnectedOperationalWidgets;
|
|
2486
|
-
private latePrimaryChartKey;
|
|
2487
|
-
private usesLocalAnalyticData;
|
|
2488
|
-
private isAnalyticWidget;
|
|
2489
2896
|
applyConfigFromAdapter(config: PageBuilderConfig): void;
|
|
2490
2897
|
private createAdapterHost;
|
|
2491
2898
|
toggleAgenticAuthoring(): void;
|
|
@@ -2515,11 +2922,13 @@ declare class DynamicPageBuilderComponent implements OnChanges, OnDestroy {
|
|
|
2515
2922
|
agenticAuthoringShellState(): PraxisAssistantShellState;
|
|
2516
2923
|
private hasAgenticAuthoringSession;
|
|
2517
2924
|
private resetAgenticAuthoringSessionState;
|
|
2925
|
+
protected onAgenticAuthoringShellPromptChange(prompt: string, ownerRevision: number): void;
|
|
2518
2926
|
private syncAgenticAuthoringSession;
|
|
2519
2927
|
private resolveAgenticAuthoringSessionId;
|
|
2520
2928
|
private pageIdentityFingerprint;
|
|
2521
2929
|
private truncateAgenticDockText;
|
|
2522
2930
|
agenticAuthoringProjectKnowledgeAudit(): PageBuilderProjectKnowledgeAudit | null;
|
|
2931
|
+
projectKnowledgeAuditBadgeLabel(audit: PageBuilderProjectKnowledgeAudit | null | undefined): string;
|
|
2523
2932
|
private clearAgenticAuthoringPreviewState;
|
|
2524
2933
|
canRunProjectKnowledgeChangeSet(): boolean;
|
|
2525
2934
|
sharedRuleGovernedContinuationActions(): PageBuilderGovernedContinuationAction[];
|
|
@@ -2535,6 +2944,7 @@ declare class DynamicPageBuilderComponent implements OnChanges, OnDestroy {
|
|
|
2535
2944
|
agenticAuthoringContextItems(): PraxisAssistantShellContextItem[];
|
|
2536
2945
|
private agenticAuthoringSemanticDecisionContextItems;
|
|
2537
2946
|
private shouldHideSemanticDecisionContextItems;
|
|
2947
|
+
private resolveReusableActiveSemanticDecision;
|
|
2538
2948
|
private humanizeAgenticResourcePath;
|
|
2539
2949
|
private agenticSemanticResourceLabel;
|
|
2540
2950
|
private humanizeAgenticDecisionSummary;
|
|
@@ -2569,6 +2979,7 @@ declare class DynamicPageBuilderComponent implements OnChanges, OnDestroy {
|
|
|
2569
2979
|
retryAgenticAuthoring(): Promise<void>;
|
|
2570
2980
|
updateAgenticAuthoringPrompt(prompt: string): void;
|
|
2571
2981
|
cancelAgenticAuthoring(): Promise<void>;
|
|
2982
|
+
private commitLocalAgenticPreview;
|
|
2572
2983
|
persistAgenticAuthoring(): Promise<void>;
|
|
2573
2984
|
ensureSharedRuleDefinition(): Promise<DomainRuleDefinition | null>;
|
|
2574
2985
|
simulateSharedRule(): Promise<DomainRuleSimulationResponse | null>;
|
|
@@ -2689,7 +3100,24 @@ declare class DynamicPageBuilderComponent implements OnChanges, OnDestroy {
|
|
|
2689
3100
|
* Directly patches multiple inputs on a rendered widget without recreating
|
|
2690
3101
|
* or rerendering the canvas or sibling widgets.
|
|
2691
3102
|
*/
|
|
2692
|
-
patchWidgetInputs(widgetKey: string, inputPatch: Record<string, unknown
|
|
3103
|
+
patchWidgetInputs(widgetKey: string, inputPatch: Record<string, unknown>, options?: {
|
|
3104
|
+
persistable?: boolean;
|
|
3105
|
+
}): boolean;
|
|
3106
|
+
/**
|
|
3107
|
+
* Transiently hides widgets at runtime without modifying persisted overrides.
|
|
3108
|
+
*/
|
|
3109
|
+
setTransientHiddenWidgets(keys: Iterable<string>): void;
|
|
3110
|
+
/**
|
|
3111
|
+
* Transiently merges extra CSS classes on rendered `.pdx-widget` wrappers.
|
|
3112
|
+
*/
|
|
3113
|
+
setTransientWidgetClassNames(classNames: Record<string, string | undefined>): void;
|
|
3114
|
+
/**
|
|
3115
|
+
* Updates a widget shell configuration transiently at runtime (`persistable: false` default)
|
|
3116
|
+
* without overwriting `currentPage()` or scheduling persistence.
|
|
3117
|
+
*/
|
|
3118
|
+
updateWidgetShell(widgetKey: string, shellPatch: Partial<WidgetShellConfig>, options?: {
|
|
3119
|
+
persistable?: boolean;
|
|
3120
|
+
}): boolean;
|
|
2693
3121
|
private openWidgetConfiguration;
|
|
2694
3122
|
private selectInsertedWidget;
|
|
2695
3123
|
private deferInsertedWidgetFocus;
|
|
@@ -2698,7 +3126,6 @@ declare class DynamicPageBuilderComponent implements OnChanges, OnDestroy {
|
|
|
2698
3126
|
private parsePage;
|
|
2699
3127
|
private clonePage;
|
|
2700
3128
|
private clonePagePreservingInputs;
|
|
2701
|
-
private cloneInputsPreservingLiveReferences;
|
|
2702
3129
|
private clearSelectedWidgetIfMissing;
|
|
2703
3130
|
private defaultInputsFor;
|
|
2704
3131
|
private applyWidgetIdentityDefaults;
|
|
@@ -2716,10 +3143,11 @@ declare class DynamicPageBuilderComponent implements OnChanges, OnDestroy {
|
|
|
2716
3143
|
private describeAgenticError;
|
|
2717
3144
|
private looksLikeHtmlErrorResponse;
|
|
2718
3145
|
private cloneValue;
|
|
3146
|
+
private areValuesStructurallyEqual;
|
|
2719
3147
|
authoringSourceDiagnosticText(diagnostic: UiCompositionAuthoringSourceDiagnostic): string;
|
|
2720
3148
|
tx(key: string, fallback: string): string;
|
|
2721
3149
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<DynamicPageBuilderComponent, [null, { optional: true; }]>;
|
|
2722
|
-
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; }; "authoringCapabilities": { "alias": "authoringCapabilities"; "required": false; }; "showSettingsButton": { "alias": "showSettingsButton"; "required": false; }; "pageIdentity": { "alias": "pageIdentity"; "required": false; }; "componentInstanceId": { "alias": "componentInstanceId"; "required": false; }; "pageEditorComponent": { "alias": "pageEditorComponent"; "required": false; }; "componentPaletteAllowedWidgetIds": { "alias": "componentPaletteAllowedWidgetIds"; "required": false; }; "componentPaletteAllowedWidgetTags": { "alias": "componentPaletteAllowedWidgetTags"; "required": false; }; "componentPaletteAllowedPresetIds": { "alias": "componentPaletteAllowedPresetIds"; "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; }; "agenticAuthoringVoiceInputMode": { "alias": "agenticAuthoringVoiceInputMode"; "required": false; }; "agenticAuthoringContextHints": { "alias": "agenticAuthoringContextHints"; "required": false; }; "authoringDocument": { "alias": "authoringDocument"; "required": false; }; "showPageLifecycleActions": { "alias": "showPageLifecycleActions"; "required": false; }; "canDeleteSavedPage": { "alias": "canDeleteSavedPage"; "required": false; }; "pageLifecycleBusy": { "alias": "pageLifecycleBusy"; "required": false; }; "pageLifecycleResetRevision": { "alias": "pageLifecycleResetRevision"; "required": false; }; }, { "pageChange": "pageChange"; "pageAuthoringChange": "pageAuthoringChange"; "widgetEvent": "widgetEvent"; "pageSaveRequested": "pageSaveRequested"; "agenticAuthoringApplied": "agenticAuthoringApplied"; "agenticAuthoringSharedRuleHandoff": "agenticAuthoringSharedRuleHandoff"; "pageRestart": "pageRestart"; "savedPageDeleteRequested": "savedPageDeleteRequested"; }, never, never, true, never>;
|
|
3150
|
+
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; }; "authoringCapabilities": { "alias": "authoringCapabilities"; "required": false; }; "showSettingsButton": { "alias": "showSettingsButton"; "required": false; }; "showGovernanceToolbar": { "alias": "showGovernanceToolbar"; "required": false; }; "governanceToolbarTitle": { "alias": "governanceToolbarTitle"; "required": false; }; "pageIdentity": { "alias": "pageIdentity"; "required": false; }; "componentInstanceId": { "alias": "componentInstanceId"; "required": false; }; "reconcilePersistedPage": { "alias": "reconcilePersistedPage"; "required": false; }; "preparePageForPersistence": { "alias": "preparePageForPersistence"; "required": false; }; "pageEditorComponent": { "alias": "pageEditorComponent"; "required": false; }; "componentPaletteAllowedWidgetIds": { "alias": "componentPaletteAllowedWidgetIds"; "required": false; }; "componentPaletteAllowedWidgetTags": { "alias": "componentPaletteAllowedWidgetTags"; "required": false; }; "componentPaletteAllowedPresetIds": { "alias": "componentPaletteAllowedPresetIds"; "required": false; }; "enableAgenticAuthoring": { "alias": "enableAgenticAuthoring"; "required": false; }; "allowAutoPersistWithAgentic": { "alias": "allowAutoPersistWithAgentic"; "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; }; "agenticAuthoringLocalApplyOnly": { "alias": "agenticAuthoringLocalApplyOnly"; "required": false; }; "agenticAuthoringVoiceInputMode": { "alias": "agenticAuthoringVoiceInputMode"; "required": false; }; "agenticAuthoringContextHints": { "alias": "agenticAuthoringContextHints"; "required": false; }; "authoringDocument": { "alias": "authoringDocument"; "required": false; }; "showPageLifecycleActions": { "alias": "showPageLifecycleActions"; "required": false; }; "canDeleteSavedPage": { "alias": "canDeleteSavedPage"; "required": false; }; "pageLifecycleBusy": { "alias": "pageLifecycleBusy"; "required": false; }; "pageLifecycleResetRevision": { "alias": "pageLifecycleResetRevision"; "required": false; }; }, { "persistenceChange": "persistenceChange"; "pageChange": "pageChange"; "pageAuthoringChange": "pageAuthoringChange"; "widgetEvent": "widgetEvent"; "pageSaveRequested": "pageSaveRequested"; "agenticAuthoringApplied": "agenticAuthoringApplied"; "agenticAuthoringSharedRuleHandoff": "agenticAuthoringSharedRuleHandoff"; "pageRestart": "pageRestart"; "savedPageDeleteRequested": "savedPageDeleteRequested"; "customizationChange": "customizationChange"; }, never, never, true, never>;
|
|
2723
3151
|
}
|
|
2724
3152
|
|
|
2725
3153
|
/** Metadata for Praxis Page Builder component */
|
|
@@ -2734,103 +3162,1121 @@ declare function isComponentDocMeta(value: unknown): value is ComponentDocMeta;
|
|
|
2734
3162
|
/**
|
|
2735
3163
|
* Convenient provider factory for registering widgets in the Page Builder host.
|
|
2736
3164
|
*
|
|
2737
|
-
* Accepts a list of either Angular `Provider`
|
|
2738
|
-
* or direct `ComponentDocMeta` definitions
|
|
2739
|
-
* Any `ComponentDocMeta` passed will
|
|
2740
|
-
* `ComponentMetadataRegistry` during
|
|
3165
|
+
* Accepts a list of either Angular `Provider` / `EnvironmentProviders` entries
|
|
3166
|
+
* (such as `providePraxisListMetadata()`) or direct `ComponentDocMeta` definitions
|
|
3167
|
+
* (such as `PRAXIS_LIST_COMPONENT_METADATA`). Any `ComponentDocMeta` passed will
|
|
3168
|
+
* be automatically registered with the `ComponentMetadataRegistry` during
|
|
3169
|
+
* environment initialization.
|
|
2741
3170
|
*/
|
|
2742
|
-
declare function providePraxisPageBuilderWidgets(widgets?: Array<Provider | ComponentDocMeta>): Provider
|
|
3171
|
+
declare function providePraxisPageBuilderWidgets(widgets?: Array<Provider | EnvironmentProviders | ComponentDocMeta>): Array<Provider | EnvironmentProviders>;
|
|
3172
|
+
/**
|
|
3173
|
+
* Registers core/upstream Praxis widget metadata (`praxis-dynamic-page`,
|
|
3174
|
+
* `praxis-dynamic-form`, `praxis-filter-form`, `praxis-table`, `praxis-filter`,
|
|
3175
|
+
* `praxis-page-builder`) together with any downstream widget metadata providers or
|
|
3176
|
+
* `ComponentDocMeta` entries supplied by the host application (`extraWidgets`)
|
|
3177
|
+
* without introducing downstream package dependency cycles.
|
|
3178
|
+
*/
|
|
3179
|
+
declare function providePraxisAllWidgetMetadata(extraWidgets?: Array<Provider | EnvironmentProviders | ComponentDocMeta>): Array<Provider | EnvironmentProviders>;
|
|
3180
|
+
|
|
3181
|
+
/** Transient UI intent, not the Config POST /pages DTO or a publication document. */
|
|
3182
|
+
interface PageSaveAsRequest {
|
|
3183
|
+
readonly creationKey: string;
|
|
3184
|
+
readonly definition: WidgetPageDefinition;
|
|
3185
|
+
readonly presentation: PageAuthoringDocument['config']['presentation'];
|
|
3186
|
+
readonly menuLabel: string;
|
|
3187
|
+
}
|
|
3188
|
+
/** Returned only after the adapter confirms the page/menu and an openable host route. */
|
|
3189
|
+
interface PageSaveAsResult {
|
|
3190
|
+
readonly pageId: string;
|
|
3191
|
+
readonly routePath: string;
|
|
3192
|
+
}
|
|
3193
|
+
/** No default storage. The adapter owns admission, identity allocation, persistence and routing. */
|
|
3194
|
+
interface PageSaveAsAdapter {
|
|
3195
|
+
save(request: PageSaveAsRequest): Promise<PageSaveAsResult>;
|
|
3196
|
+
}
|
|
3197
|
+
|
|
3198
|
+
/** Reusable save-as journey. Feed save() only from the builder's pageSaveRequested event. */
|
|
3199
|
+
declare class PraxisPageSaveAsComponent {
|
|
3200
|
+
readonly adapter: _angular_core.InputSignal<PageSaveAsAdapter>;
|
|
3201
|
+
/** Monotonic host view/session identity; UI invalidation only, never an authorization grant. */
|
|
3202
|
+
readonly contextKey: _angular_core.InputSignal<string>;
|
|
3203
|
+
readonly canSave: _angular_core.InputSignal<boolean>;
|
|
3204
|
+
readonly initialTitle: _angular_core.InputSignal<string>;
|
|
3205
|
+
readonly initialMenuLabel: _angular_core.InputSignal<string>;
|
|
3206
|
+
readonly initialIcon: _angular_core.InputSignal<string>;
|
|
3207
|
+
readonly titleMaxLength: _angular_core.InputSignal<number>;
|
|
3208
|
+
readonly menuMaxLength: _angular_core.InputSignal<number>;
|
|
3209
|
+
readonly saveRequested: _angular_core.OutputEmitterRef<void>;
|
|
3210
|
+
readonly saved: _angular_core.OutputEmitterRef<PageSaveAsResult>;
|
|
3211
|
+
readonly saveFailed: _angular_core.OutputEmitterRef<unknown>;
|
|
3212
|
+
readonly busy: _angular_core.WritableSignal<boolean>;
|
|
3213
|
+
readonly choosingIcon: _angular_core.WritableSignal<boolean>;
|
|
3214
|
+
readonly result: _angular_core.WritableSignal<PageSaveAsResult | null>;
|
|
3215
|
+
readonly error: _angular_core.WritableSignal<boolean>;
|
|
3216
|
+
readonly iconError: _angular_core.WritableSignal<boolean>;
|
|
3217
|
+
readonly title: FormControl<string>;
|
|
3218
|
+
readonly menu: FormControl<string>;
|
|
3219
|
+
readonly icon: _angular_core.WritableSignal<string>;
|
|
3220
|
+
private readonly i18n;
|
|
3221
|
+
private readonly picker;
|
|
3222
|
+
private generation;
|
|
3223
|
+
private attempt?;
|
|
3224
|
+
private destroyed;
|
|
3225
|
+
constructor();
|
|
3226
|
+
text(key: string): string;
|
|
3227
|
+
destination(): {
|
|
3228
|
+
label: string;
|
|
3229
|
+
icon: string;
|
|
3230
|
+
};
|
|
3231
|
+
clearResult(): void;
|
|
3232
|
+
requestSave(): void;
|
|
3233
|
+
chooseIcon(): Promise<void>;
|
|
3234
|
+
save(definition: WidgetPageDefinition): Promise<void>;
|
|
3235
|
+
private available;
|
|
3236
|
+
private current;
|
|
3237
|
+
private limit;
|
|
3238
|
+
private validIcon;
|
|
3239
|
+
private localRoute;
|
|
3240
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<PraxisPageSaveAsComponent, never>;
|
|
3241
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<PraxisPageSaveAsComponent, "praxis-page-save-as", never, { "adapter": { "alias": "adapter"; "required": true; "isSignal": true; }; "contextKey": { "alias": "contextKey"; "required": true; "isSignal": true; }; "canSave": { "alias": "canSave"; "required": false; "isSignal": true; }; "initialTitle": { "alias": "initialTitle"; "required": false; "isSignal": true; }; "initialMenuLabel": { "alias": "initialMenuLabel"; "required": false; "isSignal": true; }; "initialIcon": { "alias": "initialIcon"; "required": false; "isSignal": true; }; "titleMaxLength": { "alias": "titleMaxLength"; "required": false; "isSignal": true; }; "menuMaxLength": { "alias": "menuMaxLength"; "required": false; "isSignal": true; }; }, { "saveRequested": "saveRequested"; "saved": "saved"; "saveFailed": "saveFailed"; }, never, never, true, never>;
|
|
3242
|
+
}
|
|
3243
|
+
|
|
3244
|
+
/** Copies the current local authoring snapshot. Allocation/provenance belongs to the destination adapter. */
|
|
3245
|
+
declare class PraxisPageCopyActionComponent {
|
|
3246
|
+
readonly page: _angular_core.InputSignal<WidgetPageDefinition | undefined>;
|
|
3247
|
+
readonly canCopy: _angular_core.InputSignal<boolean>;
|
|
3248
|
+
readonly copyRequested: _angular_core.OutputEmitterRef<WidgetPageDefinition>;
|
|
3249
|
+
readonly error: _angular_core.WritableSignal<boolean>;
|
|
3250
|
+
private readonly i18n;
|
|
3251
|
+
text(key: string): string;
|
|
3252
|
+
copy(): void;
|
|
3253
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<PraxisPageCopyActionComponent, never>;
|
|
3254
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<PraxisPageCopyActionComponent, "praxis-page-copy-action", never, { "page": { "alias": "page"; "required": false; "isSignal": true; }; "canCopy": { "alias": "canCopy"; "required": false; "isSignal": true; }; }, { "copyRequested": "copyRequested"; }, never, never, true, never>;
|
|
3255
|
+
}
|
|
2743
3256
|
|
|
3257
|
+
interface GovernedPageCapabilities {
|
|
3258
|
+
readonly canAuthorPages: boolean;
|
|
3259
|
+
readonly canSubmitForReview: boolean;
|
|
3260
|
+
readonly canApproveReleases: boolean;
|
|
3261
|
+
readonly canPublishReleases: boolean;
|
|
3262
|
+
readonly canManageNavigationGroups: boolean;
|
|
3263
|
+
}
|
|
3264
|
+
declare const GOVERNED_PAGE_CAPABILITY_KEYS: Readonly<{
|
|
3265
|
+
authorPages: "praxis.config.pages.author";
|
|
3266
|
+
submitForReview: "praxis.config.pages.submit";
|
|
3267
|
+
approveReleases: "praxis.config.pages.approve";
|
|
3268
|
+
publishReleases: "praxis.config.pages.publish";
|
|
3269
|
+
manageNavigationGroups: "praxis.config.navigation.manage";
|
|
3270
|
+
}>;
|
|
2744
3271
|
/**
|
|
2745
|
-
*
|
|
2746
|
-
*
|
|
2747
|
-
|
|
2748
|
-
|
|
2749
|
-
|
|
2750
|
-
|
|
2751
|
-
|
|
2752
|
-
|
|
2753
|
-
|
|
2754
|
-
|
|
2755
|
-
|
|
2756
|
-
|
|
2757
|
-
|
|
2758
|
-
|
|
2759
|
-
|
|
2760
|
-
|
|
2761
|
-
|
|
2762
|
-
|
|
2763
|
-
|
|
2764
|
-
|
|
2765
|
-
|
|
2766
|
-
|
|
2767
|
-
|
|
2768
|
-
|
|
2769
|
-
|
|
2770
|
-
*
|
|
3272
|
+
* Derives governed page capabilities from canonical server-issued capability keys.
|
|
3273
|
+
* Never fabricates approval or publication authority when a capability is absent.
|
|
3274
|
+
*/
|
|
3275
|
+
declare function deriveGovernedPageCapabilities(grantedCapabilities: Iterable<string> | null | undefined): GovernedPageCapabilities;
|
|
3276
|
+
type GovernedPageReadResult<T> = UiLayoutLifecycleHttpReceipt<T> | UiLayoutLifecycleNotModifiedReceipt;
|
|
3277
|
+
interface GovernedPagePersistenceAdapter {
|
|
3278
|
+
readonly mode: 'corporate';
|
|
3279
|
+
createPage(command: PageCreationCommand): Promise<UiLayoutLifecycleHttpReceipt<PageCreationReceipt>>;
|
|
3280
|
+
readPageByCreationKey(creationKey: string): Promise<UiLayoutLifecycleHttpReceipt<PageCreationReceipt>>;
|
|
3281
|
+
readPageCatalog(options?: PageCatalogReadOptions): Promise<PageCatalogResponse>;
|
|
3282
|
+
readPublishedPage(pageId: string, ifNoneMatch?: string): Promise<GovernedPageReadResult<PublishedPageReadResponse>>;
|
|
3283
|
+
readDraftByCreationKey(target: UiLayoutTarget, creationKey: string): Promise<UiLayoutLifecycleHttpReceipt<UiLayoutDraftReceipt>>;
|
|
3284
|
+
readDraft(target: UiLayoutTarget, draftId: string, ifNoneMatch?: string): Promise<GovernedPageReadResult<UiLayoutDraftWorkspaceReceipt>>;
|
|
3285
|
+
readReview(target: UiLayoutTarget, releaseId: string, ifNoneMatch?: string): Promise<GovernedPageReadResult<UiLayoutReleaseReviewReceipt>>;
|
|
3286
|
+
readHead(target: UiLayoutTarget, ifNoneMatch?: string): Promise<GovernedPageReadResult<UiLayoutReleaseHeadReceipt>>;
|
|
3287
|
+
createDraft(target: UiLayoutTarget, idempotencyKey: string): Promise<UiLayoutLifecycleHttpReceipt<UiLayoutDraftWorkspaceReceipt>>;
|
|
3288
|
+
createRevision(target: UiLayoutTarget, draftId: string, draftEtag: string, command: UiLayoutRevisionCommand): Promise<UiLayoutLifecycleHttpReceipt<UiLayoutRevisionCommandResult>>;
|
|
3289
|
+
createAssignment(target: UiLayoutTarget, draftId: string, draftEtag: string, command: UiLayoutAssignmentCommand): Promise<UiLayoutLifecycleHttpReceipt<UiLayoutAssignmentCommandResult>>;
|
|
3290
|
+
freezeRelease(target: UiLayoutTarget, draftId: string, draftEtag: string, command: UiLayoutFreezeReleaseCommand): Promise<UiLayoutLifecycleHttpReceipt<UiLayoutFreezeReleaseCommandResult>>;
|
|
3291
|
+
submit(target: UiLayoutTarget, releaseId: string, reviewEtag: string): Promise<UiLayoutLifecycleHttpReceipt<UiLayoutReleaseReviewReceipt>>;
|
|
3292
|
+
approve(target: UiLayoutTarget, releaseId: string, reviewEtag: string, command: UiLayoutReasonCommand): Promise<UiLayoutLifecycleHttpReceipt<UiLayoutReleaseReviewReceipt>>;
|
|
3293
|
+
publish(target: UiLayoutTarget, condition: UiLayoutHeadWriteCondition, command: UiLayoutReleaseReferenceCommand): Promise<UiLayoutLifecycleHttpReceipt<UiLayoutReleaseHeadReceipt>>;
|
|
3294
|
+
}
|
|
3295
|
+
declare function createCorporateGovernedPagePersistenceAdapter(lifecycle: Pick<UiLayoutLifecycleService, 'createPage' | 'readPageByCreationKey' | 'readPageCatalog' | 'readPublishedPage' | 'readDraftByCreationKey' | 'readDraft' | 'readReview' | 'readHead' | 'createDraft' | 'createRevision' | 'createAssignment' | 'freezeRelease' | 'submit' | 'approve' | 'publish'>): GovernedPagePersistenceAdapter;
|
|
3296
|
+
/**
|
|
3297
|
+
* Explicit local/sandbox Save-As adapter contract.
|
|
3298
|
+
* Never simulates corporate review/approval/release states in the browser.
|
|
2771
3299
|
*/
|
|
2772
|
-
|
|
3300
|
+
interface GovernedPageLocalSaveAdapter extends PageSaveAsAdapter {
|
|
3301
|
+
readonly mode: 'local';
|
|
3302
|
+
}
|
|
3303
|
+
declare function createLocalPageSaveAsAdapter(handler: (request: PageSaveAsRequest) => Promise<PageSaveAsResult>): GovernedPageLocalSaveAdapter;
|
|
3304
|
+
type GovernedPageOperationKind = 'create-page' | 'import-legacy-page' | 'save-revision' | 'assign-scope' | 'freeze-release' | 'submit-review' | 'approve-release' | 'publish-release';
|
|
3305
|
+
declare const LEGACY_PUBLISHED_PAGE_STORAGE_PREFIX: "published-page:";
|
|
3306
|
+
interface GovernedPageLegacyExportArtifact {
|
|
3307
|
+
readonly schemaVersion: '1.0.0';
|
|
3308
|
+
readonly kind: 'legacy-published-page-export';
|
|
3309
|
+
readonly storageKey: string;
|
|
3310
|
+
readonly pageId: string;
|
|
3311
|
+
readonly routePath: `/pages/${string}`;
|
|
3312
|
+
readonly compatible: boolean;
|
|
3313
|
+
readonly diagnostics: readonly PageDocumentDiagnostic[];
|
|
3314
|
+
readonly rawPayload: unknown;
|
|
3315
|
+
}
|
|
3316
|
+
interface GovernedPageLegacyInspectionResult {
|
|
3317
|
+
readonly storageKey: string;
|
|
3318
|
+
readonly pageId: string;
|
|
3319
|
+
readonly routePath: `/pages/${string}`;
|
|
3320
|
+
readonly target: UiLayoutTarget;
|
|
3321
|
+
readonly compatible: boolean;
|
|
3322
|
+
readonly source: PageSourceReference | null;
|
|
3323
|
+
readonly childSources: readonly UiLayoutPageChildSource[];
|
|
3324
|
+
readonly authoringDocument: PageAuthoringDocument | null;
|
|
3325
|
+
readonly diagnostics: readonly PageDocumentDiagnostic[];
|
|
3326
|
+
readonly exportableArtifact: GovernedPageLegacyExportArtifact;
|
|
3327
|
+
}
|
|
3328
|
+
interface GovernedPageLegacyImportRequest {
|
|
3329
|
+
readonly pageId: string;
|
|
3330
|
+
readonly rawPayload: unknown;
|
|
3331
|
+
readonly source?: PageSourceReference;
|
|
3332
|
+
readonly childSources?: readonly UiLayoutPageChildSource[];
|
|
3333
|
+
readonly reason?: string;
|
|
3334
|
+
readonly idempotencyKey?: string;
|
|
3335
|
+
}
|
|
3336
|
+
interface GovernedPageUncertainOperation {
|
|
3337
|
+
readonly operation: GovernedPageOperationKind;
|
|
3338
|
+
readonly attemptKey: string;
|
|
3339
|
+
readonly creationKey?: string;
|
|
3340
|
+
readonly commandRef?: string;
|
|
3341
|
+
readonly draftId?: string;
|
|
3342
|
+
readonly releaseId?: string;
|
|
3343
|
+
readonly source?: PageSourceReference | null;
|
|
3344
|
+
readonly childSources?: readonly UiLayoutPageChildSource[];
|
|
3345
|
+
readonly occurredAt: string;
|
|
3346
|
+
}
|
|
3347
|
+
interface GovernedPageWorkflowError {
|
|
3348
|
+
readonly code: 'CAPABILITY_DENIED' | 'CONTEXT_OBSOLETE' | 'COMMAND_OUTCOME_UNCERTAIN' | 'OPERATION_FENCED' | 'PRECONDITION_FAILED' | 'CONFLICT' | 'VALIDATION_FAILED' | 'PREVIEW_UNCERTIFIED' | 'ETAG_NOT_PROGRESSED' | 'DRAFT_NOT_LOADED' | 'RELEASE_NOT_FROZEN' | 'TRANSPORT_ERROR';
|
|
3349
|
+
readonly message: string;
|
|
3350
|
+
readonly diagnostics?: readonly PageDocumentDiagnostic[];
|
|
3351
|
+
readonly status?: number;
|
|
3352
|
+
}
|
|
3353
|
+
interface GovernedPageWorkflowSnapshot {
|
|
3354
|
+
readonly contextGeneration: number;
|
|
3355
|
+
readonly contextKey: string;
|
|
3356
|
+
readonly pageId: string | null;
|
|
3357
|
+
readonly rootTarget: UiLayoutTarget | null;
|
|
3358
|
+
readonly source: PageSourceReference | null;
|
|
3359
|
+
readonly draftWorkspace: UiLayoutDraftWorkspaceReceipt | null;
|
|
3360
|
+
readonly draftEtag: string | null;
|
|
3361
|
+
readonly workingDocument: PageAuthoringDocument | null;
|
|
3362
|
+
readonly baselineDocument: PageAuthoringDocument | null;
|
|
3363
|
+
readonly publishedSnapshot: PublishedPageReadResponse | null;
|
|
3364
|
+
readonly publishedEtag: string | null;
|
|
3365
|
+
readonly childSources: readonly UiLayoutPageChildSource[];
|
|
3366
|
+
readonly reviewReceipt: UiLayoutReleaseReviewReceipt | null;
|
|
3367
|
+
readonly reviewEtag: string | null;
|
|
3368
|
+
readonly headReceipt: UiLayoutReleaseHeadReceipt | null;
|
|
3369
|
+
readonly headEtag: string | null;
|
|
3370
|
+
readonly preview: GovernedPagePreviewMaterialization | null;
|
|
3371
|
+
readonly dirty: boolean;
|
|
3372
|
+
readonly busy: boolean;
|
|
3373
|
+
readonly capabilities: GovernedPageCapabilities;
|
|
3374
|
+
readonly fencedOperations: Readonly<Record<string, GovernedPageUncertainOperation>>;
|
|
3375
|
+
readonly lastError: GovernedPageWorkflowError | null;
|
|
3376
|
+
}
|
|
3377
|
+
interface GovernedPageWorkflowControllerConfig {
|
|
3378
|
+
readonly persistence: GovernedPagePersistenceAdapter;
|
|
3379
|
+
readonly childValidators?: PageChildDocumentValidators;
|
|
3380
|
+
readonly previewAdapters?: GovernedPagePreviewWidgetAdapters;
|
|
3381
|
+
readonly initialCapabilities?: GovernedPageCapabilities;
|
|
3382
|
+
readonly initialContextKey?: string;
|
|
3383
|
+
readonly idGenerator?: () => string;
|
|
3384
|
+
}
|
|
3385
|
+
interface GovernedPageCreateNativeRequest {
|
|
3386
|
+
readonly creationKey?: string;
|
|
3387
|
+
readonly title: string;
|
|
3388
|
+
readonly sourceId: string;
|
|
3389
|
+
readonly revision: string;
|
|
3390
|
+
}
|
|
3391
|
+
interface GovernedPageCopyPublishedRequest {
|
|
3392
|
+
readonly creationKey?: string;
|
|
3393
|
+
readonly title: string;
|
|
3394
|
+
readonly sourcePageId: string;
|
|
3395
|
+
}
|
|
3396
|
+
interface GovernedPageAssignmentInput {
|
|
3397
|
+
readonly layerClass: UiLayoutLayerClass;
|
|
3398
|
+
readonly selector: UiLayoutAssignmentSelector;
|
|
3399
|
+
readonly priority?: number;
|
|
3400
|
+
readonly contributionKey?: string;
|
|
3401
|
+
}
|
|
3402
|
+
interface GovernedPageSubmitOptions {
|
|
3403
|
+
readonly reason?: string;
|
|
3404
|
+
readonly assignment?: GovernedPageAssignmentInput;
|
|
3405
|
+
}
|
|
3406
|
+
interface GovernedPageNavigationSnapshot {
|
|
3407
|
+
readonly epoch: number;
|
|
3408
|
+
readonly contextKey: string;
|
|
3409
|
+
readonly catalogEntries: readonly PageCatalogEntry[];
|
|
3410
|
+
readonly groupsDocument: NavigationGroupsAuthoringDocument;
|
|
3411
|
+
readonly menuNodes: readonly RuntimeNavigationMenuNode[];
|
|
3412
|
+
readonly expandedGroupIds: readonly string[];
|
|
3413
|
+
readonly loading: boolean;
|
|
3414
|
+
readonly diagnostics: readonly PageDocumentDiagnostic[];
|
|
3415
|
+
readonly fencedAttempts: Readonly<Record<string, string>>;
|
|
3416
|
+
readonly lastError: string | null;
|
|
3417
|
+
}
|
|
3418
|
+
|
|
3419
|
+
declare const DEFAULT_CORPORATE_NAVIGATION_GROUPS_TARGET: UiLayoutTarget;
|
|
3420
|
+
interface GovernedPageNavigationControllerConfig {
|
|
3421
|
+
readonly persistence: GovernedPagePersistenceAdapter;
|
|
3422
|
+
readonly effectiveLayoutService?: Pick<EffectiveUiLayoutService, 'resolve'> | null;
|
|
3423
|
+
readonly observeTargetDocument?: (target: UiLayoutTarget) => Observable<Record<string, unknown> | null>;
|
|
3424
|
+
readonly navigationGroupsTarget?: UiLayoutTarget;
|
|
3425
|
+
readonly registeredNamespace?: string;
|
|
3426
|
+
readonly allowedIcons?: Iterable<string>;
|
|
3427
|
+
readonly pageSize?: number;
|
|
3428
|
+
readonly maxItemsPerLevel?: number;
|
|
3429
|
+
readonly initialContextKey?: string;
|
|
3430
|
+
readonly idGenerator?: () => string;
|
|
3431
|
+
}
|
|
3432
|
+
interface GovernedNavigationGroupPublishInput {
|
|
3433
|
+
readonly entry: NavigationGroupAuthoringEntry;
|
|
3434
|
+
readonly draftCreationKey?: string;
|
|
3435
|
+
readonly revisionCommandRef?: string;
|
|
3436
|
+
readonly assignmentCommandRef?: string;
|
|
3437
|
+
readonly freezeCommandRef?: string;
|
|
3438
|
+
readonly reason?: string;
|
|
3439
|
+
readonly layerClass?: UiLayoutLayerClass;
|
|
3440
|
+
readonly selector: UiLayoutAssignmentSelector;
|
|
3441
|
+
readonly priority?: number;
|
|
3442
|
+
readonly contributionKey?: string;
|
|
3443
|
+
}
|
|
3444
|
+
declare class GovernedPageNavigationController {
|
|
3445
|
+
private readonly persistence;
|
|
3446
|
+
private readonly observeTargetDoc?;
|
|
3447
|
+
private readonly navigationGroupsTarget;
|
|
3448
|
+
private readonly registeredNamespace;
|
|
3449
|
+
private readonly allowedIcons;
|
|
3450
|
+
private readonly pageSize;
|
|
3451
|
+
private readonly maxItemsPerLevel;
|
|
3452
|
+
private readonly idGenerator;
|
|
3453
|
+
private epoch;
|
|
3454
|
+
private contextKey;
|
|
3455
|
+
private groupsSub;
|
|
3456
|
+
private readonly pageSubs;
|
|
3457
|
+
private readonly pageDocuments;
|
|
3458
|
+
private readonly expandedGroups;
|
|
3459
|
+
private readonly fencedAttempts;
|
|
3460
|
+
private latestGroupsDoc;
|
|
3461
|
+
private latestCatalogEntries;
|
|
3462
|
+
private readonly stateSubject;
|
|
3463
|
+
readonly snapshot$: Observable<GovernedPageNavigationSnapshot>;
|
|
3464
|
+
constructor(config: GovernedPageNavigationControllerConfig);
|
|
3465
|
+
get snapshot(): GovernedPageNavigationSnapshot;
|
|
3466
|
+
setContextKey(nextContextKey: string): void;
|
|
3467
|
+
invalidate(): void;
|
|
3468
|
+
destroy(): void;
|
|
3469
|
+
refresh(): Promise<GovernedPageNavigationSnapshot>;
|
|
3470
|
+
toggleGroupExpanded(groupId: string): void;
|
|
3471
|
+
clearFencedAttempt(attemptKey: string): void;
|
|
3472
|
+
upsertAndPublishNavigationGroup(input: GovernedNavigationGroupPublishInput): Promise<NavigationGroupsAuthoringDocument>;
|
|
3473
|
+
private readAllCatalogEntries;
|
|
3474
|
+
private hydrateCatalogPages;
|
|
3475
|
+
private bindGroupsObservation;
|
|
3476
|
+
private bindPageObservation;
|
|
3477
|
+
private reobserveGroupChildren;
|
|
3478
|
+
private recomputeProjection;
|
|
3479
|
+
private isStale;
|
|
3480
|
+
private teardownSubscriptions;
|
|
3481
|
+
private publishSnapshot;
|
|
3482
|
+
}
|
|
3483
|
+
|
|
3484
|
+
declare const validateChartPageWidget: PageChildDocumentValidator;
|
|
3485
|
+
declare const validateListPageWidget: PageChildDocumentValidator;
|
|
3486
|
+
declare const validateRichContentPageWidget: PageChildDocumentValidator;
|
|
3487
|
+
declare const validateTabsPageWidget: PageChildDocumentValidator;
|
|
3488
|
+
declare const validateStepperPageWidget: PageChildDocumentValidator;
|
|
3489
|
+
declare const validateExpansionPageWidget: PageChildDocumentValidator;
|
|
3490
|
+
declare const DEFAULT_GOVERNED_PAGE_CHILD_VALIDATORS: PageChildDocumentValidators;
|
|
3491
|
+
declare const DEFAULT_GOVERNED_PAGE_PREVIEW_ADAPTERS: GovernedPagePreviewWidgetAdapters;
|
|
3492
|
+
/**
|
|
3493
|
+
* Inspects a legacy `published-page:<uuid>` payload against the closed P0 governed page profile.
|
|
3494
|
+
* Validates page source, authoring document structure, and child widget sources while preserving
|
|
3495
|
+
* an exportable artifact for incompatible legacy records.
|
|
3496
|
+
*/
|
|
3497
|
+
declare function inspectLegacyPublishedPagePayload(request: GovernedPageLegacyImportRequest, childValidators?: PageChildDocumentValidators): GovernedPageLegacyInspectionResult;
|
|
3498
|
+
declare class GovernedPageWorkflowController {
|
|
3499
|
+
private readonly persistence;
|
|
3500
|
+
private readonly childValidators;
|
|
3501
|
+
private readonly previewAdapters;
|
|
3502
|
+
private readonly idGenerator;
|
|
3503
|
+
private contextGeneration;
|
|
3504
|
+
private contextKey;
|
|
3505
|
+
private readonly fencedOperations;
|
|
3506
|
+
private readonly childSourcesByWidgetId;
|
|
3507
|
+
private readonly stateSubject;
|
|
3508
|
+
readonly snapshot$: Observable<GovernedPageWorkflowSnapshot>;
|
|
3509
|
+
constructor(config: GovernedPageWorkflowControllerConfig);
|
|
3510
|
+
get snapshot(): GovernedPageWorkflowSnapshot;
|
|
3511
|
+
setCapabilities(capabilities: GovernedPageCapabilities): void;
|
|
3512
|
+
/**
|
|
3513
|
+
* Advances monotonic context generation on context switch (including A -> B -> A),
|
|
3514
|
+
* invalidating any in-flight callbacks from previous generations.
|
|
3515
|
+
*/
|
|
3516
|
+
setContextKey(nextContextKey: string): void;
|
|
3517
|
+
destroy(): void;
|
|
3518
|
+
createNativePage(request: GovernedPageCreateNativeRequest): Promise<PageCreationReceipt>;
|
|
3519
|
+
copyPublishedPage(request: GovernedPageCopyPublishedRequest): Promise<PageCreationReceipt>;
|
|
3520
|
+
/**
|
|
3521
|
+
* Explicitly imports a compatible legacy `published-page:<uuid>` record into a governed draft
|
|
3522
|
+
* preserving the `/pages/<uuid>` address (`{ componentType: 'praxis-dynamic-page', componentId: pageId }`).
|
|
3523
|
+
* Never fabricates approval or publication state and never deletes legacy storage keys.
|
|
3524
|
+
*/
|
|
3525
|
+
importLegacyPublishedPage(request: GovernedPageLegacyImportRequest): Promise<GovernedPageWorkflowSnapshot>;
|
|
3526
|
+
openDraftWorkspace(pageId: string, draftId: string, options?: {
|
|
3527
|
+
source?: PageSourceReference | null;
|
|
3528
|
+
}): Promise<GovernedPageWorkflowSnapshot>;
|
|
3529
|
+
updateWorkingDocument(nextDocument: PageAuthoringDocument): PageAuthoringDocument;
|
|
3530
|
+
updatePresentation(presentation: PageAuthoringDocument['config']['presentation']): PageAuthoringDocument;
|
|
3531
|
+
upsertNavigationBinding(binding: PageNavigationBinding, options?: PageNavigationBindingUpdateOptions): PageAuthoringDocument;
|
|
3532
|
+
/**
|
|
3533
|
+
* Updates a child widget's inputs inside the page's authoring document and
|
|
3534
|
+
* records its governed child source so child widgets remain under page authorship.
|
|
3535
|
+
*/
|
|
3536
|
+
updateChildWidgetInputs(widgetKey: string, inputs: Record<string, unknown>, childSource?: UiLayoutPageChildSource): PageAuthoringDocument;
|
|
3537
|
+
buildInteractivePreview(baseContext?: Record<string, unknown>): GovernedPagePreviewMaterialization;
|
|
3538
|
+
saveDraftRevision(reason?: string): Promise<GovernedPageWorkflowSnapshot>;
|
|
3539
|
+
assignScope(input: GovernedPageAssignmentInput): Promise<GovernedPageWorkflowSnapshot>;
|
|
3540
|
+
saveAndSubmitForReview(options?: GovernedPageSubmitOptions): Promise<GovernedPageWorkflowSnapshot>;
|
|
3541
|
+
approveRelease(reason?: string): Promise<GovernedPageWorkflowSnapshot>;
|
|
3542
|
+
publishRelease(reason?: string): Promise<GovernedPageWorkflowSnapshot>;
|
|
3543
|
+
approveAndPublish(reason?: string): Promise<GovernedPageWorkflowSnapshot>;
|
|
3544
|
+
/**
|
|
3545
|
+
* Reconciles a fenced operation after an ambiguous network failure (`COMMAND_OUTCOME_UNCERTAIN`)
|
|
3546
|
+
* using the canonical read endpoints before unlocking retries.
|
|
3547
|
+
*/
|
|
3548
|
+
reconcileUncertainOperation(attemptKey: string): Promise<GovernedPageWorkflowSnapshot>;
|
|
3549
|
+
/**
|
|
3550
|
+
* Reloads server state after a 409 Conflict or 412 Precondition Failed response.
|
|
3551
|
+
*/
|
|
3552
|
+
reloadAfterConflict(): Promise<GovernedPageWorkflowSnapshot>;
|
|
3553
|
+
private executePageCreation;
|
|
3554
|
+
private applyDraftWorkspaceReceipt;
|
|
3555
|
+
private refreshPublishedAndLifecycleMetadata;
|
|
3556
|
+
private requireCapability;
|
|
3557
|
+
private requireWorkingDocument;
|
|
3558
|
+
private requireLoadedDraft;
|
|
3559
|
+
private assertNotFenced;
|
|
3560
|
+
private isStale;
|
|
3561
|
+
private assertActiveContext;
|
|
3562
|
+
private handleOperationError;
|
|
3563
|
+
private fail;
|
|
3564
|
+
private isLifecycleContractErrorLike;
|
|
3565
|
+
private isWorkflowError;
|
|
3566
|
+
private setBusy;
|
|
3567
|
+
private publishSnapshot;
|
|
3568
|
+
}
|
|
3569
|
+
|
|
3570
|
+
interface SanitizeWidgetPageOptions {
|
|
3571
|
+
/**
|
|
3572
|
+
* When `true` (default), sets `configPersistenceStrategy: 'volatile'` and
|
|
3573
|
+
* `enableCustomization: false` on widgets so governed revisions and previews
|
|
3574
|
+
* remain immune to transient user overrides.
|
|
3575
|
+
*/
|
|
3576
|
+
readonly lockForGovernance?: boolean;
|
|
3577
|
+
/**
|
|
3578
|
+
* Strips runtime persistence strategy instead of setting `'volatile'`.
|
|
3579
|
+
* Ignored when `lockForGovernance` is `true`.
|
|
3580
|
+
*/
|
|
3581
|
+
readonly preservePersistenceStrategy?: boolean;
|
|
3582
|
+
/**
|
|
3583
|
+
* Ensures a single-widget page without an explicit `canvas` receives a
|
|
3584
|
+
* normalized 12-column CSS grid placement.
|
|
3585
|
+
*/
|
|
3586
|
+
readonly ensureSingleWidgetCanvas?: boolean;
|
|
3587
|
+
/**
|
|
3588
|
+
* Preserves `praxis-table` `columnProjection` defaults (`{ source: 'schema' }`)
|
|
3589
|
+
* when `columns` is empty.
|
|
3590
|
+
*/
|
|
3591
|
+
readonly ensureTableSchemaProjection?: boolean;
|
|
3592
|
+
}
|
|
3593
|
+
/**
|
|
3594
|
+
* Strips runtime transient artifacts (`state.values`, `selectedRows`, `queryContext`,
|
|
3595
|
+
* dangling nullish/internal keys) from a `WidgetPageDefinition`, producing a deterministic
|
|
3596
|
+
* authoring/publication document suitable for governed revisions and interactive previews.
|
|
3597
|
+
*/
|
|
3598
|
+
declare function sanitizeWidgetPageDefinition(definition: WidgetPageDefinition, options?: SanitizeWidgetPageOptions): WidgetPageDefinition;
|
|
3599
|
+
|
|
3600
|
+
/**
|
|
3601
|
+
* Resolves localized workspace chrome copy through `PraxisI18nService`, keeping
|
|
3602
|
+
* clean `pt-BR` and `en-US` fallbacks synchronized with the Page Builder catalog.
|
|
3603
|
+
*/
|
|
3604
|
+
declare function resolveWorkspaceText(i18n: PraxisI18nService | null | undefined, workspaceKey: string, params?: Readonly<Record<string, string | number>>): string;
|
|
3605
|
+
|
|
3606
|
+
type WorkspaceCommandPrefix = '' | '>' | '@' | '#' | '/';
|
|
3607
|
+
type WorkspaceCommandCategory = 'navigation' | 'action' | 'entity' | 'rule' | 'theme' | 'resource';
|
|
3608
|
+
interface WorkspaceCommandItem {
|
|
3609
|
+
readonly id?: string;
|
|
3610
|
+
readonly path: string;
|
|
3611
|
+
readonly label: string;
|
|
3612
|
+
readonly icon?: string;
|
|
3613
|
+
readonly groupLabel: string;
|
|
3614
|
+
readonly description?: string;
|
|
3615
|
+
readonly badge?: string;
|
|
3616
|
+
readonly category?: WorkspaceCommandCategory;
|
|
3617
|
+
readonly keywords?: readonly string[];
|
|
3618
|
+
readonly action?: () => void | Promise<void>;
|
|
3619
|
+
}
|
|
3620
|
+
interface WorkspaceScopeDimensionConfig {
|
|
3621
|
+
readonly dimension: PraxisContextDimension;
|
|
3622
|
+
readonly label: string;
|
|
3623
|
+
readonly icon?: string;
|
|
3624
|
+
readonly placeholder?: string;
|
|
3625
|
+
readonly fieldMetadata?: MaterialSelectMetadata | MaterialEntityLookupMetadata;
|
|
3626
|
+
}
|
|
3627
|
+
interface WorkspacePersonalPageEntry {
|
|
3628
|
+
readonly id: string;
|
|
3629
|
+
readonly title: string;
|
|
3630
|
+
readonly routePath: string;
|
|
3631
|
+
readonly menuGroup?: string;
|
|
3632
|
+
readonly icon?: string;
|
|
3633
|
+
readonly updatedAt?: string;
|
|
3634
|
+
readonly page: WidgetPageDefinition;
|
|
3635
|
+
}
|
|
3636
|
+
interface WorkspaceStudioPreset {
|
|
3637
|
+
readonly key: string;
|
|
3638
|
+
readonly title: string;
|
|
3639
|
+
readonly subtitle?: string;
|
|
3640
|
+
readonly icon?: string;
|
|
3641
|
+
readonly badge?: string;
|
|
3642
|
+
readonly page: WidgetPageDefinition;
|
|
3643
|
+
}
|
|
3644
|
+
interface WorkspaceDomainMetricCard {
|
|
3645
|
+
readonly id: string;
|
|
3646
|
+
readonly label: string;
|
|
3647
|
+
readonly value: string | number;
|
|
3648
|
+
readonly hint?: string;
|
|
3649
|
+
readonly icon?: string;
|
|
3650
|
+
readonly tone?: 'primary' | 'success' | 'warning' | 'danger' | 'info' | 'neutral';
|
|
3651
|
+
readonly route?: string;
|
|
3652
|
+
}
|
|
3653
|
+
interface WorkspaceDomainResourceCard {
|
|
3654
|
+
readonly id: string;
|
|
3655
|
+
readonly title: string;
|
|
3656
|
+
readonly subtitle?: string;
|
|
3657
|
+
readonly routePath: string;
|
|
3658
|
+
readonly resourcePath?: string;
|
|
3659
|
+
readonly resourceKey?: string;
|
|
3660
|
+
readonly category: string;
|
|
3661
|
+
readonly icon?: string;
|
|
3662
|
+
readonly badge?: string;
|
|
3663
|
+
readonly hasGovernedRules?: boolean;
|
|
3664
|
+
}
|
|
3665
|
+
interface WorkspaceRealmPortalOption {
|
|
3666
|
+
readonly slug: string;
|
|
3667
|
+
readonly displayName: string;
|
|
3668
|
+
readonly shortName?: string;
|
|
3669
|
+
readonly subtitle?: string;
|
|
3670
|
+
readonly groupLabel?: string;
|
|
3671
|
+
readonly icon?: string;
|
|
3672
|
+
readonly emblemUrl?: string;
|
|
3673
|
+
readonly emblemAlt?: string;
|
|
3674
|
+
readonly primaryColor?: string;
|
|
3675
|
+
readonly badge?: string;
|
|
3676
|
+
}
|
|
3677
|
+
interface WorkspaceDemoPersona {
|
|
3678
|
+
readonly username: string;
|
|
3679
|
+
readonly displayName: string;
|
|
3680
|
+
readonly roleLabel: string;
|
|
3681
|
+
readonly description?: string;
|
|
3682
|
+
readonly icon?: string;
|
|
3683
|
+
readonly badge?: string;
|
|
3684
|
+
}
|
|
3685
|
+
|
|
3686
|
+
type ResourceWorkbenchPresetKind = 'table-only' | 'table-and-form' | 'executive-cockpit';
|
|
3687
|
+
interface ResourceWidgetScaffoldSpec {
|
|
3688
|
+
readonly resourcePath: string;
|
|
3689
|
+
readonly title: string;
|
|
3690
|
+
readonly subtitle?: string;
|
|
3691
|
+
readonly icon?: string;
|
|
3692
|
+
readonly resourceKey?: string;
|
|
3693
|
+
readonly widgetKeyPrefix?: string;
|
|
3694
|
+
readonly statsGroupByField?: string;
|
|
3695
|
+
readonly statsMetricField?: string;
|
|
3696
|
+
readonly statsLabel?: string;
|
|
3697
|
+
readonly fields?: readonly FieldDefinition[];
|
|
3698
|
+
readonly includeKpiStrip?: boolean;
|
|
3699
|
+
readonly includeAnalyticsChart?: boolean;
|
|
3700
|
+
readonly includeDetailForm?: boolean;
|
|
3701
|
+
readonly rowClickTargetForm?: boolean;
|
|
3702
|
+
readonly formMode?: 'create' | 'edit' | 'view';
|
|
3703
|
+
readonly columns?: number;
|
|
3704
|
+
readonly gap?: string;
|
|
3705
|
+
readonly presetKind?: ResourceWorkbenchPresetKind;
|
|
3706
|
+
}
|
|
3707
|
+
interface ScaffoldedPageResult {
|
|
3708
|
+
readonly definition: WidgetPageDefinition;
|
|
3709
|
+
readonly resourcePath: string;
|
|
3710
|
+
readonly resourceKey?: string;
|
|
3711
|
+
readonly discoveredOption?: DiscoveredResourceOption;
|
|
3712
|
+
readonly schemaFields: readonly FieldDefinition[];
|
|
3713
|
+
}
|
|
3714
|
+
/**
|
|
3715
|
+
* Domain-neutral service that scaffolds turnkey Praxis `WidgetInstance` and
|
|
3716
|
+
* `WidgetPageDefinition` structures (tables, forms, charts, KPI micro-visualizations,
|
|
3717
|
+
* and master-detail compositions) from resource contracts and schema metadata.
|
|
3718
|
+
*/
|
|
3719
|
+
declare class ResourceWidgetScaffolderService {
|
|
3720
|
+
private readonly discovery;
|
|
3721
|
+
scaffoldTableWidget(spec: ResourceWidgetScaffoldSpec): WidgetInstance;
|
|
3722
|
+
scaffoldFormWidget(spec: ResourceWidgetScaffoldSpec): WidgetInstance;
|
|
3723
|
+
scaffoldListWidget(spec: ResourceWidgetScaffoldSpec): WidgetInstance;
|
|
3724
|
+
scaffoldChartWidget(spec: ResourceWidgetScaffoldSpec): WidgetInstance;
|
|
3725
|
+
scaffoldKpiBandWidgets(spec: ResourceWidgetScaffoldSpec): WidgetInstance[];
|
|
3726
|
+
scaffoldResourceWorkbenchPage(spec: ResourceWidgetScaffoldSpec): WidgetPageDefinition;
|
|
3727
|
+
/**
|
|
3728
|
+
* Queries `/schemas/catalog` + filtered response schema when `ResourceDiscoveryService`
|
|
3729
|
+
* is available, falling back cleanly to the provided `spec` when offline or unconfigured.
|
|
3730
|
+
*/
|
|
3731
|
+
discoverAndScaffold(resourcePath: string, overrides?: Partial<ResourceWidgetScaffoldSpec>): Promise<ScaffoldedPageResult>;
|
|
3732
|
+
private inferCategoricalField;
|
|
3733
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ResourceWidgetScaffolderService, never>;
|
|
3734
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<ResourceWidgetScaffolderService>;
|
|
3735
|
+
}
|
|
3736
|
+
|
|
3737
|
+
/**
|
|
3738
|
+
* Accessible WAI-ARIA `Ctrl+K` / `Cmd+K` workspace command palette supporting prefix
|
|
3739
|
+
* filtering (`>` actions/themes, `@` entities/scopes, `#` rules, `/` resources),
|
|
3740
|
+
* keyboard navigation, and optional remote entity search.
|
|
3741
|
+
*/
|
|
3742
|
+
declare class PraxisCommandPaletteComponent {
|
|
2773
3743
|
private readonly router;
|
|
3744
|
+
private readonly i18n;
|
|
3745
|
+
private readonly doc;
|
|
3746
|
+
private searchInputRef?;
|
|
3747
|
+
readonly open: _angular_core.ModelSignal<boolean>;
|
|
3748
|
+
readonly items: _angular_core.InputSignal<readonly WorkspaceCommandItem[]>;
|
|
3749
|
+
readonly enableGlobalShortcut: _angular_core.InputSignal<boolean>;
|
|
3750
|
+
readonly maxVisible: _angular_core.InputSignal<number>;
|
|
3751
|
+
readonly remoteSearch: _angular_core.InputSignal<((query: string) => Promise<readonly WorkspaceCommandItem[]>) | null | undefined>;
|
|
3752
|
+
readonly itemExecuted: _angular_core.OutputEmitterRef<WorkspaceCommandItem>;
|
|
3753
|
+
readonly closed: _angular_core.OutputEmitterRef<void>;
|
|
3754
|
+
readonly query: _angular_core.WritableSignal<string>;
|
|
3755
|
+
readonly activeIndex: _angular_core.WritableSignal<number>;
|
|
3756
|
+
readonly remoteBusy: _angular_core.WritableSignal<boolean>;
|
|
3757
|
+
readonly remoteItems: _angular_core.WritableSignal<readonly WorkspaceCommandItem[]>;
|
|
3758
|
+
private previouslyFocusedElement;
|
|
3759
|
+
readonly text: _angular_core.Signal<{
|
|
3760
|
+
dialogAria: string;
|
|
3761
|
+
inputPlaceholder: string;
|
|
3762
|
+
inputAria: string;
|
|
3763
|
+
clearFilter: string;
|
|
3764
|
+
close: string;
|
|
3765
|
+
prefixesAria: string;
|
|
3766
|
+
prefixActions: string;
|
|
3767
|
+
prefixEntities: string;
|
|
3768
|
+
prefixRules: string;
|
|
3769
|
+
prefixResources: string;
|
|
3770
|
+
resultsTitle: string;
|
|
3771
|
+
remoteSearch: string;
|
|
3772
|
+
remoteSearching: string;
|
|
3773
|
+
kbdHint: string;
|
|
3774
|
+
empty: string;
|
|
3775
|
+
listboxAria: string;
|
|
3776
|
+
}>;
|
|
3777
|
+
readonly activePrefix: _angular_core.Signal<WorkspaceCommandPrefix>;
|
|
3778
|
+
readonly cleanSearchTerm: _angular_core.Signal<string>;
|
|
3779
|
+
readonly filteredItems: _angular_core.Signal<readonly WorkspaceCommandItem[]>;
|
|
3780
|
+
readonly activeOptionId: _angular_core.Signal<string | null>;
|
|
3781
|
+
constructor();
|
|
3782
|
+
onDocumentKeydown(event: KeyboardEvent): void;
|
|
3783
|
+
openPalette(initialQuery?: string): void;
|
|
3784
|
+
closePalette(): void;
|
|
3785
|
+
setQuery(value: string): void;
|
|
3786
|
+
onQueryInput(value: string): void;
|
|
3787
|
+
togglePrefix(prefix: Exclude<WorkspaceCommandPrefix, ''>): void;
|
|
3788
|
+
onInputKeydown(event: KeyboardEvent): void;
|
|
3789
|
+
triggerRemoteSearch(): Promise<void>;
|
|
3790
|
+
executeItem(item: WorkspaceCommandItem): Promise<void>;
|
|
3791
|
+
optionDomId(index: number): string;
|
|
3792
|
+
trackItem(index: number, item: WorkspaceCommandItem): string;
|
|
3793
|
+
private resolveCategory;
|
|
3794
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<PraxisCommandPaletteComponent, never>;
|
|
3795
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<PraxisCommandPaletteComponent, "praxis-command-palette", never, { "open": { "alias": "open"; "required": false; "isSignal": true; }; "items": { "alias": "items"; "required": false; "isSignal": true; }; "enableGlobalShortcut": { "alias": "enableGlobalShortcut"; "required": false; "isSignal": true; }; "maxVisible": { "alias": "maxVisible"; "required": false; "isSignal": true; }; "remoteSearch": { "alias": "remoteSearch"; "required": false; "isSignal": true; }; }, { "open": "openChange"; "itemExecuted": "itemExecuted"; "closed": "closed"; }, never, never, true, never>;
|
|
3796
|
+
}
|
|
3797
|
+
|
|
3798
|
+
/**
|
|
3799
|
+
* Turnkey workspace operational scope ribbon bound to `PraxisWorkspaceQueryContextService`.
|
|
3800
|
+
* Displays active contextual dimensions (`organization`, `company_group`, `unit`, `person`,
|
|
3801
|
+
* `bond`, `contract`) with quick removal controls and optional `@praxisui/dynamic-fields`
|
|
3802
|
+
* lookup/select dimension pickers.
|
|
3803
|
+
*/
|
|
3804
|
+
declare class PraxisOperationalScopeRibbonComponent {
|
|
3805
|
+
readonly workspaceContext: PraxisWorkspaceQueryContextService;
|
|
3806
|
+
private readonly i18n;
|
|
3807
|
+
private readonly destroyRef;
|
|
3808
|
+
readonly dimensions: _angular_core.InputSignal<readonly WorkspaceScopeDimensionConfig[]>;
|
|
3809
|
+
readonly pickerOpen: _angular_core.WritableSignal<boolean>;
|
|
3810
|
+
readonly scopeCleared: _angular_core.OutputEmitterRef<void>;
|
|
3811
|
+
private readonly controlsByDimension;
|
|
3812
|
+
private readonly controlSubscriptions;
|
|
3813
|
+
readonly text: _angular_core.Signal<{
|
|
3814
|
+
regionAria: string;
|
|
3815
|
+
clearDimension: string;
|
|
3816
|
+
clearAll: string;
|
|
3817
|
+
emptyHint: string;
|
|
3818
|
+
openPicker: string;
|
|
3819
|
+
closePicker: string;
|
|
3820
|
+
}>;
|
|
3821
|
+
readonly activeChips: _angular_core.Signal<{
|
|
3822
|
+
dimension: _praxisui_core.PraxisContextBindingDimension;
|
|
3823
|
+
dimensionLabel: string;
|
|
3824
|
+
displayText: string;
|
|
3825
|
+
}[]>;
|
|
3826
|
+
constructor();
|
|
3827
|
+
togglePicker(): void;
|
|
3828
|
+
clearDimension(dimension: PraxisContextDimension): void;
|
|
3829
|
+
clearAllScopes(): void;
|
|
3830
|
+
onManualInputChange(dimension: PraxisContextDimension, rawValue: string): void;
|
|
3831
|
+
getControl(dimension: PraxisContextDimension): FormControl<unknown>;
|
|
3832
|
+
isEntityLookupMetadata(meta: MaterialSelectMetadata | MaterialEntityLookupMetadata | undefined): meta is MaterialEntityLookupMetadata;
|
|
3833
|
+
isSelectMetadata(meta: MaterialSelectMetadata | MaterialEntityLookupMetadata | undefined): meta is MaterialSelectMetadata;
|
|
3834
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<PraxisOperationalScopeRibbonComponent, never>;
|
|
3835
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<PraxisOperationalScopeRibbonComponent, "praxis-operational-scope-ribbon", never, { "dimensions": { "alias": "dimensions"; "required": false; "isSignal": true; }; }, { "scopeCleared": "scopeCleared"; }, never, never, true, never>;
|
|
3836
|
+
}
|
|
3837
|
+
|
|
3838
|
+
/**
|
|
3839
|
+
* Turnkey enterprise shell wrapping `<praxis-app-shell>` with:
|
|
3840
|
+
* - multi-organization/tenant runtime context switcher (`EnterpriseRuntimeContextService`)
|
|
3841
|
+
* - UI config write-scope toggle (`user` vs `tenant`) & `ApiConfigStorage.saveError$` alert banner
|
|
3842
|
+
* - 7-theme selector (`PraxisThemeService`)
|
|
3843
|
+
* - accessible `Ctrl+K` `<praxis-command-palette>`
|
|
3844
|
+
* - `<praxis-operational-scope-ribbon>`
|
|
3845
|
+
* - projected `[workspace-assistant]` dock slot or optional built-in `<praxis-workspace-assistant>`
|
|
3846
|
+
*/
|
|
3847
|
+
declare class PraxisEnterpriseWorkspaceShellComponent {
|
|
3848
|
+
readonly runtimeContext: EnterpriseRuntimeContextService | null;
|
|
3849
|
+
readonly configStorage: ApiConfigStorage | null;
|
|
3850
|
+
readonly themeService: PraxisThemeService | null;
|
|
3851
|
+
readonly sessionTransport: PraxisSessionTransportService | null;
|
|
3852
|
+
private readonly router;
|
|
3853
|
+
private readonly assistantOrchestrator;
|
|
3854
|
+
private readonly i18n;
|
|
3855
|
+
readonly brand: _angular_core.InputSignal<PraxisBrandConfig>;
|
|
3856
|
+
readonly navigation: _angular_core.InputSignal<PraxisNavGroup[]>;
|
|
3857
|
+
readonly primaryNavigationPaths: _angular_core.InputSignal<readonly string[]>;
|
|
3858
|
+
readonly showActiveGroupSubTabs: _angular_core.InputSignal<boolean>;
|
|
3859
|
+
readonly subTabsPinned: _angular_core.InputSignal<boolean>;
|
|
3860
|
+
readonly showDomainBreadcrumb: _angular_core.InputSignal<boolean>;
|
|
3861
|
+
readonly breadcrumbs: _angular_core.InputSignal<readonly PraxisShellBreadcrumbItem[]>;
|
|
3862
|
+
readonly domainLauncherLabel: _angular_core.InputSignal<string>;
|
|
3863
|
+
readonly domainLauncherIcon: _angular_core.InputSignal<string>;
|
|
3864
|
+
readonly user: _angular_core.InputSignal<PraxisUserProfile | null>;
|
|
3865
|
+
readonly showThemeToggle: _angular_core.InputSignal<boolean>;
|
|
3866
|
+
readonly showCustomizationToggle: _angular_core.InputSignal<boolean>;
|
|
3867
|
+
readonly showSearch: _angular_core.InputSignal<boolean>;
|
|
3868
|
+
readonly searchPlaceholder: _angular_core.InputSignal<string>;
|
|
3869
|
+
readonly searchShortcutHint: _angular_core.InputSignal<string>;
|
|
3870
|
+
readonly showRailLabels: _angular_core.InputSignal<boolean>;
|
|
3871
|
+
readonly pinnedPaths: _angular_core.InputSignal<readonly string[]>;
|
|
3872
|
+
readonly recentPaths: _angular_core.InputSignal<readonly string[]>;
|
|
3873
|
+
readonly footerStatus: _angular_core.InputSignal<PraxisShellFooterStatus | null>;
|
|
3874
|
+
readonly isAnyLoading: _angular_core.InputSignal<boolean>;
|
|
3875
|
+
readonly collapsed: _angular_core.ModelSignal<boolean>;
|
|
3876
|
+
readonly showScopeRibbon: _angular_core.InputSignal<boolean>;
|
|
3877
|
+
readonly scopeDimensions: _angular_core.InputSignal<readonly WorkspaceScopeDimensionConfig[]>;
|
|
3878
|
+
readonly commandItems: _angular_core.InputSignal<readonly WorkspaceCommandItem[]>;
|
|
3879
|
+
readonly remoteSearch: _angular_core.InputSignal<((query: string) => Promise<readonly WorkspaceCommandItem[]>) | null | undefined>;
|
|
3880
|
+
readonly showAssistantTrigger: _angular_core.InputSignal<boolean>;
|
|
3881
|
+
readonly enableBuiltInAssistant: _angular_core.InputSignal<boolean>;
|
|
3882
|
+
readonly showSignOut: _angular_core.InputSignal<boolean>;
|
|
3883
|
+
readonly canWriteTenantScope: _angular_core.InputSignal<boolean>;
|
|
3884
|
+
readonly subTabsPinChange: _angular_core.OutputEmitterRef<boolean>;
|
|
3885
|
+
readonly domainLauncherTrigger: _angular_core.OutputEmitterRef<void>;
|
|
3886
|
+
readonly breadcrumbClick: _angular_core.OutputEmitterRef<PraxisShellBreadcrumbItem>;
|
|
3887
|
+
readonly customizationToggle: _angular_core.OutputEmitterRef<boolean>;
|
|
3888
|
+
readonly userProfileClick: _angular_core.OutputEmitterRef<PraxisUserProfile>;
|
|
3889
|
+
readonly navItemClick: _angular_core.OutputEmitterRef<PraxisNavItem>;
|
|
3890
|
+
readonly pinnedPathsChange: _angular_core.OutputEmitterRef<string[]>;
|
|
3891
|
+
readonly assistantTrigger: _angular_core.OutputEmitterRef<void>;
|
|
3892
|
+
readonly commandExecuted: _angular_core.OutputEmitterRef<WorkspaceCommandItem>;
|
|
3893
|
+
readonly contextSwitched: _angular_core.OutputEmitterRef<EnterpriseRuntimeContextChoice>;
|
|
3894
|
+
readonly signedOut: _angular_core.OutputEmitterRef<void>;
|
|
3895
|
+
private appShellRef?;
|
|
3896
|
+
private commandPaletteRef?;
|
|
3897
|
+
readonly commandPaletteOpen: _angular_core.WritableSignal<boolean>;
|
|
3898
|
+
readonly themeMenuOpen: _angular_core.WritableSignal<boolean>;
|
|
3899
|
+
readonly contextMenuOpen: _angular_core.WritableSignal<boolean>;
|
|
3900
|
+
readonly switchingContext: _angular_core.WritableSignal<boolean>;
|
|
3901
|
+
readonly contextChoices: _angular_core.WritableSignal<readonly EnterpriseRuntimeContextChoice[]>;
|
|
3902
|
+
constructor();
|
|
3903
|
+
private readonly runtimeSnapshot;
|
|
3904
|
+
private readonly saveErrorState;
|
|
3905
|
+
readonly text: _angular_core.Signal<{
|
|
3906
|
+
saveErrorDismiss: string;
|
|
3907
|
+
scopeUser: string;
|
|
3908
|
+
scopeTenant: string;
|
|
3909
|
+
scopeToggleAria: string;
|
|
3910
|
+
contextLabel: string;
|
|
3911
|
+
contextSwitchPlaceholder: string;
|
|
3912
|
+
themeButtonAria: string;
|
|
3913
|
+
themeMenuAria: string;
|
|
3914
|
+
commandTrigger: string;
|
|
3915
|
+
assistantTrigger: string;
|
|
3916
|
+
signOut: string;
|
|
3917
|
+
}>;
|
|
3918
|
+
readonly activeContextLabel: _angular_core.Signal<string | null>;
|
|
3919
|
+
readonly resolvedUser: _angular_core.Signal<PraxisUserProfile | null>;
|
|
3920
|
+
readonly currentWriteScope: _angular_core.Signal<_praxisui_core.ConfigStorageScope>;
|
|
3921
|
+
readonly saveErrorBannerText: _angular_core.Signal<string | null>;
|
|
3922
|
+
readonly resolvedFooterStatus: _angular_core.Signal<PraxisShellFooterStatus | null>;
|
|
3923
|
+
readonly combinedCommandItems: _angular_core.Signal<readonly WorkspaceCommandItem[]>;
|
|
3924
|
+
openCommandPalette(initialQuery?: string): void;
|
|
3925
|
+
toggleCommandPalette(initialQuery?: string): void;
|
|
3926
|
+
openNavigationOverlay(): void;
|
|
3927
|
+
toggleWriteScope(): void;
|
|
3928
|
+
dismissSaveError(): void;
|
|
3929
|
+
toggleThemeMenu(): void;
|
|
3930
|
+
selectTheme(themeId: PraxisWorkspaceThemeId): void;
|
|
3931
|
+
onToggleDark(): void;
|
|
3932
|
+
toggleContextMenu(): Promise<void>;
|
|
3933
|
+
selectContextChoice(choice: EnterpriseRuntimeContextChoice): Promise<void>;
|
|
3934
|
+
onSignOut(): Promise<void>;
|
|
3935
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<PraxisEnterpriseWorkspaceShellComponent, never>;
|
|
3936
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<PraxisEnterpriseWorkspaceShellComponent, "praxis-enterprise-workspace-shell", never, { "brand": { "alias": "brand"; "required": false; "isSignal": true; }; "navigation": { "alias": "navigation"; "required": false; "isSignal": true; }; "primaryNavigationPaths": { "alias": "primaryNavigationPaths"; "required": false; "isSignal": true; }; "showActiveGroupSubTabs": { "alias": "showActiveGroupSubTabs"; "required": false; "isSignal": true; }; "subTabsPinned": { "alias": "subTabsPinned"; "required": false; "isSignal": true; }; "showDomainBreadcrumb": { "alias": "showDomainBreadcrumb"; "required": false; "isSignal": true; }; "breadcrumbs": { "alias": "breadcrumbs"; "required": false; "isSignal": true; }; "domainLauncherLabel": { "alias": "domainLauncherLabel"; "required": false; "isSignal": true; }; "domainLauncherIcon": { "alias": "domainLauncherIcon"; "required": false; "isSignal": true; }; "user": { "alias": "user"; "required": false; "isSignal": true; }; "showThemeToggle": { "alias": "showThemeToggle"; "required": false; "isSignal": true; }; "showCustomizationToggle": { "alias": "showCustomizationToggle"; "required": false; "isSignal": true; }; "showSearch": { "alias": "showSearch"; "required": false; "isSignal": true; }; "searchPlaceholder": { "alias": "searchPlaceholder"; "required": false; "isSignal": true; }; "searchShortcutHint": { "alias": "searchShortcutHint"; "required": false; "isSignal": true; }; "showRailLabels": { "alias": "showRailLabels"; "required": false; "isSignal": true; }; "pinnedPaths": { "alias": "pinnedPaths"; "required": false; "isSignal": true; }; "recentPaths": { "alias": "recentPaths"; "required": false; "isSignal": true; }; "footerStatus": { "alias": "footerStatus"; "required": false; "isSignal": true; }; "isAnyLoading": { "alias": "isAnyLoading"; "required": false; "isSignal": true; }; "collapsed": { "alias": "collapsed"; "required": false; "isSignal": true; }; "showScopeRibbon": { "alias": "showScopeRibbon"; "required": false; "isSignal": true; }; "scopeDimensions": { "alias": "scopeDimensions"; "required": false; "isSignal": true; }; "commandItems": { "alias": "commandItems"; "required": false; "isSignal": true; }; "remoteSearch": { "alias": "remoteSearch"; "required": false; "isSignal": true; }; "showAssistantTrigger": { "alias": "showAssistantTrigger"; "required": false; "isSignal": true; }; "enableBuiltInAssistant": { "alias": "enableBuiltInAssistant"; "required": false; "isSignal": true; }; "showSignOut": { "alias": "showSignOut"; "required": false; "isSignal": true; }; "canWriteTenantScope": { "alias": "canWriteTenantScope"; "required": false; "isSignal": true; }; }, { "collapsed": "collapsedChange"; "subTabsPinChange": "subTabsPinChange"; "domainLauncherTrigger": "domainLauncherTrigger"; "breadcrumbClick": "breadcrumbClick"; "customizationToggle": "customizationToggle"; "userProfileClick": "userProfileClick"; "navItemClick": "navItemClick"; "pinnedPathsChange": "pinnedPathsChange"; "assistantTrigger": "assistantTrigger"; "commandExecuted": "commandExecuted"; "contextSwitched": "contextSwitched"; "signedOut": "signedOut"; }, never, ["[workspace-brand-extra]", "[workspace-topbar-extra]", "[workspace-header-actions]", "*", "[workspace-footer-extra]", "[workspace-stage-footer]", "[workspace-assistant]"], true, never>;
|
|
3937
|
+
}
|
|
3938
|
+
|
|
3939
|
+
/**
|
|
3940
|
+
* Turnkey governed page catalog, draft review, approval/publication workflow
|
|
3941
|
+
* console backed by `GovernedPageWorkflowController` and `UiLayoutLifecycleService`.
|
|
3942
|
+
*/
|
|
3943
|
+
declare class PraxisGovernedPagesConsoleComponent implements OnInit {
|
|
3944
|
+
private readonly lifecycle;
|
|
3945
|
+
private readonly runtimeContext;
|
|
3946
|
+
private readonly sessionTransport;
|
|
3947
|
+
private readonly i18n;
|
|
3948
|
+
private readonly destroyRef;
|
|
3949
|
+
readonly persistenceAdapter: _angular_core.InputSignal<GovernedPagePersistenceAdapter | null | undefined>;
|
|
3950
|
+
readonly capabilities: _angular_core.InputSignal<GovernedPageCapabilities | null | undefined>;
|
|
3951
|
+
readonly pageRoutePrefix: _angular_core.InputSignal<string>;
|
|
3952
|
+
readonly defaultSourceId: _angular_core.InputSignal<string>;
|
|
3953
|
+
readonly defaultSourceRevision: _angular_core.InputSignal<string>;
|
|
3954
|
+
readonly pagePublished: _angular_core.OutputEmitterRef<GovernedPageWorkflowSnapshot>;
|
|
3955
|
+
readonly createRequested: _angular_core.OutputEmitterRef<void>;
|
|
3956
|
+
readonly publishedCatalog: _angular_core.WritableSignal<readonly PageCatalogEntry[]>;
|
|
3957
|
+
readonly loadingCatalog: _angular_core.WritableSignal<boolean>;
|
|
3958
|
+
readonly snapshot: _angular_core.WritableSignal<GovernedPageWorkflowSnapshot | null>;
|
|
3959
|
+
readonly errorKey: _angular_core.WritableSignal<"governed.validationError" | "governed.operationFailed" | null>;
|
|
3960
|
+
private controller;
|
|
3961
|
+
private controllerSub;
|
|
3962
|
+
readonly effectiveCapabilities: _angular_core.Signal<GovernedPageCapabilities>;
|
|
3963
|
+
readonly workflowBusy: _angular_core.Signal<boolean>;
|
|
3964
|
+
readonly previewDefinition: _angular_core.Signal<WidgetPageDefinition | null>;
|
|
3965
|
+
readonly text: _angular_core.Signal<{
|
|
3966
|
+
title: string;
|
|
3967
|
+
subtitle: string;
|
|
3968
|
+
refresh: string;
|
|
3969
|
+
createNative: string;
|
|
3970
|
+
submitReview: string;
|
|
3971
|
+
approveAndPublish: string;
|
|
3972
|
+
publish: string;
|
|
3973
|
+
saveDraft: string;
|
|
3974
|
+
previewTitle: string;
|
|
3975
|
+
previewNotice: string;
|
|
3976
|
+
catalogTitle: string;
|
|
3977
|
+
emptyCatalog: string;
|
|
3978
|
+
openPublished: string;
|
|
3979
|
+
statusReady: string;
|
|
3980
|
+
}>;
|
|
3981
|
+
constructor();
|
|
3982
|
+
ngOnInit(): void;
|
|
3983
|
+
loadCatalog(): Promise<void>;
|
|
3984
|
+
openEntryDraft(entry: PageCatalogEntry): Promise<void>;
|
|
3985
|
+
requestCreatePage(): Promise<void>;
|
|
3986
|
+
saveDraft(): Promise<void>;
|
|
3987
|
+
submitForReview(): Promise<void>;
|
|
3988
|
+
approveAndPublish(): Promise<void>;
|
|
3989
|
+
publishRelease(): Promise<void>;
|
|
3990
|
+
resolveErrorMessage(key: 'governed.validationError' | 'governed.operationFailed'): string;
|
|
3991
|
+
private resolveAdapter;
|
|
3992
|
+
private ensureController;
|
|
3993
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<PraxisGovernedPagesConsoleComponent, never>;
|
|
3994
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<PraxisGovernedPagesConsoleComponent, "praxis-governed-pages-console", never, { "persistenceAdapter": { "alias": "persistenceAdapter"; "required": false; "isSignal": true; }; "capabilities": { "alias": "capabilities"; "required": false; "isSignal": true; }; "pageRoutePrefix": { "alias": "pageRoutePrefix"; "required": false; "isSignal": true; }; "defaultSourceId": { "alias": "defaultSourceId"; "required": false; "isSignal": true; }; "defaultSourceRevision": { "alias": "defaultSourceRevision"; "required": false; "isSignal": true; }; }, { "pagePublished": "pagePublished"; "createRequested": "createRequested"; }, never, never, true, never>;
|
|
3995
|
+
}
|
|
3996
|
+
|
|
3997
|
+
/**
|
|
3998
|
+
* Turnkey read-only runtime host for `/pages/:pageId` governed publications.
|
|
3999
|
+
* Fetches the published snapshot via `UiLayoutLifecycleService`, projects active
|
|
4000
|
+
* `PraxisWorkspaceQueryContextService` context, enforces `blockMutations = true`,
|
|
4001
|
+
* and optionally exposes a copy-to-laboratory trigger.
|
|
4002
|
+
*/
|
|
4003
|
+
declare class PraxisPublishedPageHostComponent {
|
|
2774
4004
|
private readonly route;
|
|
2775
|
-
private readonly
|
|
2776
|
-
private readonly
|
|
2777
|
-
private readonly
|
|
2778
|
-
|
|
2779
|
-
|
|
2780
|
-
|
|
2781
|
-
|
|
2782
|
-
|
|
2783
|
-
|
|
2784
|
-
|
|
2785
|
-
|
|
2786
|
-
|
|
2787
|
-
|
|
2788
|
-
|
|
2789
|
-
|
|
2790
|
-
|
|
2791
|
-
|
|
2792
|
-
|
|
2793
|
-
|
|
2794
|
-
|
|
2795
|
-
|
|
2796
|
-
|
|
2797
|
-
|
|
2798
|
-
|
|
2799
|
-
|
|
2800
|
-
|
|
2801
|
-
|
|
2802
|
-
|
|
2803
|
-
|
|
2804
|
-
|
|
2805
|
-
|
|
2806
|
-
|
|
2807
|
-
|
|
2808
|
-
|
|
2809
|
-
|
|
2810
|
-
|
|
2811
|
-
|
|
2812
|
-
|
|
2813
|
-
|
|
2814
|
-
|
|
2815
|
-
|
|
2816
|
-
|
|
2817
|
-
|
|
2818
|
-
|
|
2819
|
-
|
|
2820
|
-
|
|
4005
|
+
private readonly lifecycle;
|
|
4006
|
+
private readonly workspaceContext;
|
|
4007
|
+
private readonly i18n;
|
|
4008
|
+
readonly pageId: _angular_core.InputSignal<string | null | undefined>;
|
|
4009
|
+
readonly context: _angular_core.InputSignal<Record<string, unknown> | null>;
|
|
4010
|
+
readonly showHeader: _angular_core.InputSignal<boolean>;
|
|
4011
|
+
readonly allowCopy: _angular_core.InputSignal<boolean>;
|
|
4012
|
+
readonly persistenceAdapter: _angular_core.InputSignal<Pick<GovernedPagePersistenceAdapter, "readPublishedPage"> | null | undefined>;
|
|
4013
|
+
readonly pageLoaded: _angular_core.OutputEmitterRef<PublishedPageReadResponse>;
|
|
4014
|
+
readonly copyRequested: _angular_core.OutputEmitterRef<WidgetPageDefinition>;
|
|
4015
|
+
private readonly routeParams;
|
|
4016
|
+
readonly loading: _angular_core.WritableSignal<boolean>;
|
|
4017
|
+
readonly errorState: _angular_core.WritableSignal<"not-found" | "failed" | null>;
|
|
4018
|
+
readonly response: _angular_core.WritableSignal<PublishedPageReadResponse | null>;
|
|
4019
|
+
private activeLoadToken;
|
|
4020
|
+
readonly effectivePageId: _angular_core.Signal<string>;
|
|
4021
|
+
readonly parsedDocument: _angular_core.Signal<PageAuthoringDocument | null>;
|
|
4022
|
+
readonly pageTitle: _angular_core.Signal<string>;
|
|
4023
|
+
readonly pageDescription: _angular_core.Signal<string>;
|
|
4024
|
+
readonly pageIcon: _angular_core.Signal<string>;
|
|
4025
|
+
readonly effectiveDefinition: _angular_core.Signal<WidgetPageDefinition | null>;
|
|
4026
|
+
readonly mergedContext: _angular_core.Signal<Record<string, unknown> | null>;
|
|
4027
|
+
readonly pageIdentity: _angular_core.Signal<{
|
|
4028
|
+
routePath: string;
|
|
4029
|
+
} | undefined>;
|
|
4030
|
+
readonly text: _angular_core.Signal<{
|
|
4031
|
+
loading: string;
|
|
4032
|
+
notFound: string;
|
|
4033
|
+
loadFailed: string;
|
|
4034
|
+
retry: string;
|
|
4035
|
+
copyLabel: string;
|
|
4036
|
+
readOnlyBadge: string;
|
|
4037
|
+
}>;
|
|
4038
|
+
constructor();
|
|
4039
|
+
reload(): Promise<void>;
|
|
4040
|
+
private loadPage;
|
|
4041
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<PraxisPublishedPageHostComponent, never>;
|
|
4042
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<PraxisPublishedPageHostComponent, "praxis-published-page-host", never, { "pageId": { "alias": "pageId"; "required": false; "isSignal": true; }; "context": { "alias": "context"; "required": false; "isSignal": true; }; "showHeader": { "alias": "showHeader"; "required": false; "isSignal": true; }; "allowCopy": { "alias": "allowCopy"; "required": false; "isSignal": true; }; "persistenceAdapter": { "alias": "persistenceAdapter"; "required": false; "isSignal": true; }; }, { "pageLoaded": "pageLoaded"; "copyRequested": "copyRequested"; }, never, never, true, never>;
|
|
4043
|
+
}
|
|
4044
|
+
|
|
4045
|
+
/**
|
|
4046
|
+
* Turnkey personal dynamic page laboratory allowing authors to create blank pages,
|
|
4047
|
+
* scaffold resource workbenches via `ResourceWidgetScaffolderService`, customize widgets
|
|
4048
|
+
* inside `<praxis-dynamic-page-builder>`, and save pages to navigation routes via `<praxis-page-save-as>`.
|
|
4049
|
+
*/
|
|
4050
|
+
declare class PraxisPersonalLaboratoryPageComponent {
|
|
4051
|
+
private readonly scaffolder;
|
|
4052
|
+
private readonly i18n;
|
|
4053
|
+
private saveAsRef?;
|
|
4054
|
+
readonly savedPages: _angular_core.InputSignal<readonly WorkspacePersonalPageEntry[]>;
|
|
4055
|
+
readonly saveAsAdapter: _angular_core.InputSignal<PageSaveAsAdapter | null | undefined>;
|
|
4056
|
+
readonly saveContextKey: _angular_core.InputSignal<string>;
|
|
4057
|
+
readonly authoringCapabilities: _angular_core.InputSignal<PageBuilderAuthoringCapabilities | null | undefined>;
|
|
4058
|
+
readonly allowedWidgetIds: _angular_core.InputSignal<string[] | null>;
|
|
4059
|
+
readonly initialPage: _angular_core.InputSignal<WidgetPageDefinition | null | undefined>;
|
|
4060
|
+
readonly initialTitle: _angular_core.InputSignal<string | undefined>;
|
|
4061
|
+
readonly initialMenuLabel: _angular_core.InputSignal<string | undefined>;
|
|
4062
|
+
readonly initialIcon: _angular_core.InputSignal<string | undefined>;
|
|
4063
|
+
readonly selectedPageId: _angular_core.ModelSignal<string | null>;
|
|
4064
|
+
readonly workingPage: _angular_core.WritableSignal<WidgetPageDefinition>;
|
|
4065
|
+
readonly activeTitle: _angular_core.WritableSignal<string>;
|
|
4066
|
+
readonly scaffoldPanelOpen: _angular_core.WritableSignal<boolean>;
|
|
4067
|
+
readonly scaffolding: _angular_core.WritableSignal<boolean>;
|
|
4068
|
+
scaffoldResourcePath: string;
|
|
4069
|
+
scaffoldTitle: string;
|
|
4070
|
+
readonly pageChanged: _angular_core.OutputEmitterRef<WidgetPageDefinition>;
|
|
4071
|
+
readonly saved: _angular_core.OutputEmitterRef<PageSaveAsResult>;
|
|
4072
|
+
readonly deleteRequested: _angular_core.OutputEmitterRef<WorkspacePersonalPageEntry>;
|
|
4073
|
+
readonly text: _angular_core.Signal<{
|
|
4074
|
+
title: string;
|
|
4075
|
+
subtitle: string;
|
|
4076
|
+
newBlank: string;
|
|
4077
|
+
scaffoldResource: string;
|
|
4078
|
+
resourcePathLabel: string;
|
|
4079
|
+
resourceTitleLabel: string;
|
|
4080
|
+
applyScaffold: string;
|
|
4081
|
+
savedPages: string;
|
|
4082
|
+
noSavedPages: string;
|
|
4083
|
+
deletePage: string;
|
|
4084
|
+
openPage: string;
|
|
4085
|
+
}>;
|
|
4086
|
+
constructor();
|
|
4087
|
+
get saveAsComponent(): PraxisPageSaveAsComponent | undefined;
|
|
4088
|
+
clearSaveAsResult(): void;
|
|
4089
|
+
newBlankPage(): void;
|
|
4090
|
+
loadSavedPage(entry: WorkspacePersonalPageEntry): void;
|
|
4091
|
+
applyResourceScaffold(): Promise<void>;
|
|
4092
|
+
onBuilderPageChange(next: WidgetPageDefinition): void;
|
|
4093
|
+
handleSaveAsRequest(): Promise<void>;
|
|
4094
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<PraxisPersonalLaboratoryPageComponent, never>;
|
|
4095
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<PraxisPersonalLaboratoryPageComponent, "praxis-personal-laboratory-page", never, { "savedPages": { "alias": "savedPages"; "required": false; "isSignal": true; }; "saveAsAdapter": { "alias": "saveAsAdapter"; "required": false; "isSignal": true; }; "saveContextKey": { "alias": "saveContextKey"; "required": false; "isSignal": true; }; "authoringCapabilities": { "alias": "authoringCapabilities"; "required": false; "isSignal": true; }; "allowedWidgetIds": { "alias": "allowedWidgetIds"; "required": false; "isSignal": true; }; "initialPage": { "alias": "initialPage"; "required": false; "isSignal": true; }; "initialTitle": { "alias": "initialTitle"; "required": false; "isSignal": true; }; "initialMenuLabel": { "alias": "initialMenuLabel"; "required": false; "isSignal": true; }; "initialIcon": { "alias": "initialIcon"; "required": false; "isSignal": true; }; "selectedPageId": { "alias": "selectedPageId"; "required": false; "isSignal": true; }; }, { "selectedPageId": "selectedPageIdChange"; "pageChanged": "pageChanged"; "saved": "saved"; "deleteRequested": "deleteRequested"; }, never, never, true, never>;
|
|
4096
|
+
}
|
|
4097
|
+
|
|
4098
|
+
/**
|
|
4099
|
+
* Turnkey multi-widget Composition Studio combining preset templates,
|
|
4100
|
+
* schema-aware resource workbench scaffolding, agentic authoring support,
|
|
4101
|
+
* and governed promotion hooks around `<praxis-dynamic-page-builder>`.
|
|
4102
|
+
*/
|
|
4103
|
+
declare class PraxisWorkspaceStudioPageComponent {
|
|
4104
|
+
private readonly scaffolder;
|
|
4105
|
+
private readonly i18n;
|
|
4106
|
+
readonly presets: _angular_core.InputSignal<readonly WorkspaceStudioPreset[]>;
|
|
4107
|
+
readonly initialPage: _angular_core.InputSignal<WidgetPageDefinition | null | undefined>;
|
|
4108
|
+
readonly enableAgenticAuthoring: _angular_core.InputSignal<boolean>;
|
|
4109
|
+
readonly agenticAuthoringComponentId: _angular_core.InputSignal<string | undefined>;
|
|
4110
|
+
readonly agenticAuthoringScope: _angular_core.InputSignal<"user" | "tenant">;
|
|
4111
|
+
readonly agenticAuthoringEnableStreaming: _angular_core.InputSignal<boolean>;
|
|
4112
|
+
readonly showGovernanceToolbar: _angular_core.InputSignal<boolean>;
|
|
4113
|
+
readonly showPromoteAction: _angular_core.InputSignal<boolean>;
|
|
4114
|
+
readonly authoringCapabilities: _angular_core.InputSignal<PageBuilderAuthoringCapabilities | null | undefined>;
|
|
4115
|
+
readonly allowedWidgetIds: _angular_core.InputSignal<string[] | null>;
|
|
4116
|
+
readonly selectedPresetKey: _angular_core.WritableSignal<string | null>;
|
|
4117
|
+
readonly scaffoldMode: _angular_core.WritableSignal<ResourceWorkbenchPresetKind>;
|
|
4118
|
+
readonly scaffolding: _angular_core.WritableSignal<boolean>;
|
|
4119
|
+
readonly activePage: _angular_core.WritableSignal<WidgetPageDefinition>;
|
|
4120
|
+
scaffoldResourcePath: string;
|
|
4121
|
+
readonly pageChanged: _angular_core.OutputEmitterRef<WidgetPageDefinition>;
|
|
4122
|
+
readonly pageSaveRequested: _angular_core.OutputEmitterRef<WidgetPageDefinition>;
|
|
4123
|
+
readonly promoteToGoverned: _angular_core.OutputEmitterRef<WidgetPageDefinition>;
|
|
4124
|
+
readonly agenticApplied: _angular_core.OutputEmitterRef<PageBuilderApplyResult>;
|
|
4125
|
+
readonly text: _angular_core.Signal<{
|
|
4126
|
+
title: string;
|
|
4127
|
+
subtitle: string;
|
|
4128
|
+
presetsTitle: string;
|
|
4129
|
+
scaffoldButton: string;
|
|
4130
|
+
promoteAction: string;
|
|
4131
|
+
presetModeTable: string;
|
|
4132
|
+
presetModeMasterDetail: string;
|
|
4133
|
+
presetModeCockpit: string;
|
|
4134
|
+
}>;
|
|
4135
|
+
constructor();
|
|
4136
|
+
selectPreset(preset: WorkspaceStudioPreset): void;
|
|
4137
|
+
scaffoldWorkbench(): Promise<void>;
|
|
4138
|
+
onPageChange(next: WidgetPageDefinition): void;
|
|
4139
|
+
emitPromote(): void;
|
|
4140
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<PraxisWorkspaceStudioPageComponent, never>;
|
|
4141
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<PraxisWorkspaceStudioPageComponent, "praxis-workspace-studio-page", never, { "presets": { "alias": "presets"; "required": false; "isSignal": true; }; "initialPage": { "alias": "initialPage"; "required": false; "isSignal": true; }; "enableAgenticAuthoring": { "alias": "enableAgenticAuthoring"; "required": false; "isSignal": true; }; "agenticAuthoringComponentId": { "alias": "agenticAuthoringComponentId"; "required": false; "isSignal": true; }; "agenticAuthoringScope": { "alias": "agenticAuthoringScope"; "required": false; "isSignal": true; }; "agenticAuthoringEnableStreaming": { "alias": "agenticAuthoringEnableStreaming"; "required": false; "isSignal": true; }; "showGovernanceToolbar": { "alias": "showGovernanceToolbar"; "required": false; "isSignal": true; }; "showPromoteAction": { "alias": "showPromoteAction"; "required": false; "isSignal": true; }; "authoringCapabilities": { "alias": "authoringCapabilities"; "required": false; "isSignal": true; }; "allowedWidgetIds": { "alias": "allowedWidgetIds"; "required": false; "isSignal": true; }; }, { "pageChanged": "pageChanged"; "pageSaveRequested": "pageSaveRequested"; "promoteToGoverned": "promoteToGoverned"; "agenticApplied": "agenticApplied"; }, never, never, true, never>;
|
|
4142
|
+
}
|
|
4143
|
+
|
|
4144
|
+
/**
|
|
4145
|
+
* Turnkey executive domain hub presenting tenant context, active workspace scope
|
|
4146
|
+
* spotlight, metric pulses, and a searchable/categorized resource journey catalog.
|
|
4147
|
+
*/
|
|
4148
|
+
declare class PraxisDomainHubPageComponent {
|
|
4149
|
+
readonly runtimeContext: EnterpriseRuntimeContextService | null;
|
|
4150
|
+
readonly workspaceContext: PraxisWorkspaceQueryContextService | null;
|
|
4151
|
+
private readonly i18n;
|
|
4152
|
+
readonly eyebrow: _angular_core.InputSignal<string | undefined>;
|
|
4153
|
+
readonly title: _angular_core.InputSignal<string | undefined>;
|
|
4154
|
+
readonly subtitle: _angular_core.InputSignal<string | undefined>;
|
|
4155
|
+
readonly metrics: _angular_core.InputSignal<readonly WorkspaceDomainMetricCard[]>;
|
|
4156
|
+
readonly resources: _angular_core.InputSignal<readonly WorkspaceDomainResourceCard[]>;
|
|
4157
|
+
readonly resourceSelected: _angular_core.OutputEmitterRef<WorkspaceDomainResourceCard>;
|
|
4158
|
+
readonly scopeCleared: _angular_core.OutputEmitterRef<void>;
|
|
4159
|
+
readonly searchQuery: _angular_core.WritableSignal<string>;
|
|
4160
|
+
readonly activeCategory: _angular_core.WritableSignal<string>;
|
|
4161
|
+
readonly text: _angular_core.Signal<{
|
|
4162
|
+
eyebrow: string;
|
|
4163
|
+
title: string;
|
|
4164
|
+
subtitle: string;
|
|
4165
|
+
searchPlaceholder: string;
|
|
4166
|
+
allCategories: string;
|
|
4167
|
+
activeScopeTitle: string;
|
|
4168
|
+
clearScope: string;
|
|
4169
|
+
governedRulesBadge: string;
|
|
4170
|
+
openResource: string;
|
|
4171
|
+
emptyResources: string;
|
|
4172
|
+
}>;
|
|
4173
|
+
readonly activeTenantBadge: _angular_core.Signal<string | null>;
|
|
4174
|
+
readonly activeScopeSummaries: _angular_core.Signal<{
|
|
4175
|
+
dimension: _praxisui_core.PraxisContextBindingDimension;
|
|
4176
|
+
text: string;
|
|
4177
|
+
}[]>;
|
|
4178
|
+
readonly categories: _angular_core.Signal<string[]>;
|
|
4179
|
+
readonly filteredResources: _angular_core.Signal<WorkspaceDomainResourceCard[]>;
|
|
4180
|
+
clearScope(): void;
|
|
4181
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<PraxisDomainHubPageComponent, never>;
|
|
4182
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<PraxisDomainHubPageComponent, "praxis-domain-hub-page", never, { "eyebrow": { "alias": "eyebrow"; "required": false; "isSignal": true; }; "title": { "alias": "title"; "required": false; "isSignal": true; }; "subtitle": { "alias": "subtitle"; "required": false; "isSignal": true; }; "metrics": { "alias": "metrics"; "required": false; "isSignal": true; }; "resources": { "alias": "resources"; "required": false; "isSignal": true; }; }, { "resourceSelected": "resourceSelected"; "scopeCleared": "scopeCleared"; }, never, never, true, never>;
|
|
4183
|
+
}
|
|
4184
|
+
|
|
4185
|
+
/**
|
|
4186
|
+
* Turnkey multi-tenant / environment selector portal. Consumes explicit `[realms]`
|
|
4187
|
+
* or discovers authorized tenants via `EnterpriseRuntimeContextService.tenants()`
|
|
4188
|
+
* without embedding domain-specific tenant catalogs.
|
|
4189
|
+
*/
|
|
4190
|
+
declare class PraxisRealmPortalComponent implements OnInit {
|
|
4191
|
+
private readonly runtimeContext;
|
|
4192
|
+
readonly themeService: PraxisThemeService | null;
|
|
4193
|
+
private readonly i18n;
|
|
4194
|
+
readonly realms: _angular_core.InputSignal<readonly WorkspaceRealmPortalOption[]>;
|
|
4195
|
+
readonly brandLabel: _angular_core.InputSignal<string>;
|
|
4196
|
+
readonly brandIcon: _angular_core.InputSignal<string>;
|
|
4197
|
+
readonly title: _angular_core.InputSignal<string | undefined>;
|
|
4198
|
+
readonly subtitle: _angular_core.InputSignal<string | undefined>;
|
|
4199
|
+
readonly discoverFromRuntime: _angular_core.InputSignal<boolean>;
|
|
4200
|
+
readonly realmSelected: _angular_core.OutputEmitterRef<WorkspaceRealmPortalOption>;
|
|
4201
|
+
readonly discoveredRealms: _angular_core.WritableSignal<readonly WorkspaceRealmPortalOption[]>;
|
|
4202
|
+
readonly loading: _angular_core.WritableSignal<boolean>;
|
|
4203
|
+
readonly searchQuery: _angular_core.WritableSignal<string>;
|
|
4204
|
+
readonly activeGroup: _angular_core.WritableSignal<string>;
|
|
4205
|
+
readonly themeMenuOpen: _angular_core.WritableSignal<boolean>;
|
|
4206
|
+
readonly text: _angular_core.Signal<{
|
|
4207
|
+
title: string;
|
|
4208
|
+
subtitle: string;
|
|
4209
|
+
searchPlaceholder: string;
|
|
4210
|
+
allGroups: string;
|
|
4211
|
+
enterEnvironment: string;
|
|
4212
|
+
empty: string;
|
|
4213
|
+
loading: string;
|
|
4214
|
+
}>;
|
|
4215
|
+
readonly effectiveRealms: _angular_core.Signal<readonly WorkspaceRealmPortalOption[]>;
|
|
4216
|
+
readonly groups: _angular_core.Signal<string[]>;
|
|
4217
|
+
readonly filteredRealms: _angular_core.Signal<WorkspaceRealmPortalOption[]>;
|
|
2821
4218
|
ngOnInit(): void;
|
|
2822
|
-
|
|
2823
|
-
|
|
2824
|
-
|
|
2825
|
-
|
|
2826
|
-
|
|
2827
|
-
|
|
2828
|
-
|
|
2829
|
-
|
|
2830
|
-
|
|
2831
|
-
|
|
2832
|
-
|
|
4219
|
+
selectRealm(realm: WorkspaceRealmPortalOption): void;
|
|
4220
|
+
selectTheme(themeId: PraxisWorkspaceThemeId): void;
|
|
4221
|
+
private loadTenants;
|
|
4222
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<PraxisRealmPortalComponent, never>;
|
|
4223
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<PraxisRealmPortalComponent, "praxis-realm-portal", never, { "realms": { "alias": "realms"; "required": false; "isSignal": true; }; "brandLabel": { "alias": "brandLabel"; "required": false; "isSignal": true; }; "brandIcon": { "alias": "brandIcon"; "required": false; "isSignal": true; }; "title": { "alias": "title"; "required": false; "isSignal": true; }; "subtitle": { "alias": "subtitle"; "required": false; "isSignal": true; }; "discoverFromRuntime": { "alias": "discoverFromRuntime"; "required": false; "isSignal": true; }; }, { "realmSelected": "realmSelected"; }, never, never, true, never>;
|
|
4224
|
+
}
|
|
4225
|
+
|
|
4226
|
+
/**
|
|
4227
|
+
* Turnkey session authentication gate powered by `PraxisSessionTransportService`.
|
|
4228
|
+
* Projects authenticated workspace content via `<ng-content>` once `session.isReady()`
|
|
4229
|
+
* succeeds, and renders a realm-aware credential / optional demo-persona entry gate otherwise.
|
|
4230
|
+
*/
|
|
4231
|
+
declare class PraxisWorkspaceAuthGateComponent {
|
|
4232
|
+
readonly session: PraxisSessionTransportService | null;
|
|
4233
|
+
readonly themeService: PraxisThemeService | null;
|
|
4234
|
+
private readonly tenantRealm;
|
|
4235
|
+
private readonly i18n;
|
|
4236
|
+
readonly realmInfo: _angular_core.InputSignal<WorkspaceRealmPortalOption | null | undefined>;
|
|
4237
|
+
readonly demoPersonas: _angular_core.InputSignal<readonly WorkspaceDemoPersona[]>;
|
|
4238
|
+
readonly defaultAuthMode: _angular_core.InputSignal<"manual" | "demo" | "auto">;
|
|
4239
|
+
readonly brandLogoUrl: _angular_core.InputSignal<string | undefined>;
|
|
4240
|
+
readonly brandLogoAlt: _angular_core.InputSignal<string | undefined>;
|
|
4241
|
+
readonly showPortalBack: _angular_core.InputSignal<boolean>;
|
|
4242
|
+
readonly title: _angular_core.InputSignal<string | undefined>;
|
|
4243
|
+
readonly subtitle: _angular_core.InputSignal<string | undefined>;
|
|
4244
|
+
readonly backToPortal: _angular_core.OutputEmitterRef<void>;
|
|
4245
|
+
readonly authenticated: _angular_core.OutputEmitterRef<void>;
|
|
4246
|
+
readonly demoSignInRequested: _angular_core.OutputEmitterRef<WorkspaceDemoPersona>;
|
|
4247
|
+
readonly authMode: _angular_core.WritableSignal<"manual" | "demo">;
|
|
4248
|
+
private authModeOverriddenByUser;
|
|
4249
|
+
readonly submitting: _angular_core.WritableSignal<boolean>;
|
|
4250
|
+
readonly localError: _angular_core.WritableSignal<boolean>;
|
|
4251
|
+
readonly themeMenuOpen: _angular_core.WritableSignal<boolean>;
|
|
4252
|
+
constructor();
|
|
4253
|
+
selectAuthMode(mode: 'demo' | 'manual'): void;
|
|
4254
|
+
username: string;
|
|
4255
|
+
password: string;
|
|
4256
|
+
readonly sessionState: _angular_core.Signal<_praxisui_core.PraxisSessionState>;
|
|
4257
|
+
readonly isAuthenticatedReady: _angular_core.Signal<boolean>;
|
|
4258
|
+
readonly realmSlug: _angular_core.Signal<string | null>;
|
|
4259
|
+
readonly text: _angular_core.Signal<{
|
|
4260
|
+
title: string;
|
|
4261
|
+
subtitle: string;
|
|
4262
|
+
backToPortal: string;
|
|
4263
|
+
demoTab: string;
|
|
4264
|
+
manualTab: string;
|
|
4265
|
+
usernameLabel: string;
|
|
4266
|
+
passwordLabel: string;
|
|
4267
|
+
signInButton: string;
|
|
4268
|
+
revalidating: string;
|
|
4269
|
+
retrySession: string;
|
|
4270
|
+
loginFailed: string;
|
|
4271
|
+
}>;
|
|
4272
|
+
readonly errorText: _angular_core.Signal<string | null>;
|
|
4273
|
+
selectTheme(themeId: PraxisWorkspaceThemeId): void;
|
|
4274
|
+
onManualSignIn(): Promise<void>;
|
|
4275
|
+
onDemoPersonaSelect(persona: WorkspaceDemoPersona): void;
|
|
4276
|
+
retrySession(): Promise<void>;
|
|
4277
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<PraxisWorkspaceAuthGateComponent, never>;
|
|
4278
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<PraxisWorkspaceAuthGateComponent, "praxis-workspace-auth-gate", never, { "realmInfo": { "alias": "realmInfo"; "required": false; "isSignal": true; }; "demoPersonas": { "alias": "demoPersonas"; "required": false; "isSignal": true; }; "defaultAuthMode": { "alias": "defaultAuthMode"; "required": false; "isSignal": true; }; "brandLogoUrl": { "alias": "brandLogoUrl"; "required": false; "isSignal": true; }; "brandLogoAlt": { "alias": "brandLogoAlt"; "required": false; "isSignal": true; }; "showPortalBack": { "alias": "showPortalBack"; "required": false; "isSignal": true; }; "title": { "alias": "title"; "required": false; "isSignal": true; }; "subtitle": { "alias": "subtitle"; "required": false; "isSignal": true; }; }, { "backToPortal": "backToPortal"; "authenticated": "authenticated"; "demoSignInRequested": "demoSignInRequested"; }, never, ["*", "[auth-gate-header-extra]"], true, never>;
|
|
2833
4279
|
}
|
|
2834
4280
|
|
|
2835
|
-
export { ComponentPaletteDialogComponent, ConfirmDialogComponent, ConnectionEditorComponent, DynamicPageBuilderComponent, DynamicPageConfigEditorComponent, FloatingToolbarComponent, PAGE_BUILDER_AGENTIC_AUTHORING_OPTIONS, PAGE_BUILDER_AI_CAPABILITIES, PAGE_BUILDER_COMPONENT_CONTEXT_PACK, PAGE_BUILDER_WIDGET_AI_CATALOGS, PLACEHOLDER, PRAXIS_PAGE_BUILDER_AUTHORING_MANIFEST, PRAXIS_PAGE_BUILDER_COMPONENT_METADATA, PageBuilderAgenticAuthoringService, PageConfigEditorComponent,
|
|
2836
|
-
export type { Capability, CapabilityCatalog, CapabilityCategory, ComponentPaletteData, ComponentPaletteSelection, ConfirmDialogData, PageBuilderAgenticAuthoringAttachmentSummary, PageBuilderAgenticAuthoringCandidate, PageBuilderAgenticAuthoringComponentCapabilitiesResult, PageBuilderAgenticAuthoringComponentCapability, PageBuilderAgenticAuthoringComponentCapabilityCatalog, PageBuilderAgenticAuthoringComponentCapabilityExample, PageBuilderAgenticAuthoringComponentFieldAlias, PageBuilderAgenticAuthoringConversationMessage, PageBuilderAgenticAuthoringGateResult, PageBuilderAgenticAuthoringIntentResolutionRequest, PageBuilderAgenticAuthoringIntentResolutionResult, PageBuilderAgenticAuthoringOptions, PageBuilderAgenticAuthoringPendingClarification, PageBuilderAgenticAuthoringPromptRequest, PageBuilderAgenticAuthoringProvider, PageBuilderAgenticAuthoringQuickReply, PageBuilderAgenticAuthoringResourceCandidatesRequest, PageBuilderAgenticAuthoringResourceCandidatesResult, PageBuilderAgenticAuthoringSharedRuleHandoff, PageBuilderAgenticAuthoringTarget, PageBuilderAgenticAuthoringTurnStreamConnectionError, PageBuilderAgenticAuthoringTurnStreamEvent, PageBuilderAgenticAuthoringTurnStreamRequest, PageBuilderAgenticAuthoringTurnStreamStartResponse, PageBuilderApplyRequest, PageBuilderApplyResult, PageBuilderAuthoringCapabilities, PageBuilderCompiledFormPatch, PageBuilderMinimalFormPlanResult, PageBuilderPreviewDiagnostics, PageBuilderPreviewResult, PageBuilderProjectKnowledgeAudit, UiCompositionAuthoringSourceDiagnostic, UiCompositionAuthoringSourceDiagnosticCode, UiCompositionAuthoringSourceVerification, UiCompositionAuthoringSourceVerificationContext, UiCompositionPlan, UiCompositionPlanAuthoringInput, UiCompositionPlanAuthoringSource, UiCompositionPlanBinding, UiCompositionPlanCompileResult, UiCompositionPlanComponentPortEndpoint, UiCompositionPlanContextScope, UiCompositionPlanContextScopeTarget, UiCompositionPlanContextValue, UiCompositionPlanDiagnostic, UiCompositionPlanEndpoint, UiCompositionPlanGlobalActionEndpoint, UiCompositionPlanGlobalActionSourceEndpoint, UiCompositionPlanInputSource, UiCompositionPlanPreflightResult, UiCompositionPlanSelectCase, UiCompositionPlanSelectionSync, UiCompositionPlanSelectionSyncMapping, UiCompositionPlanSourceEndpoint, UiCompositionPlanStateEndpoint, UiCompositionPlanTargetEndpoint, UiCompositionPlanTemplateMaterialization, UiCompositionPlanTemplateRef, UiCompositionPlanTemplateReference, UiCompositionPlanTemplateResolutionResult, UiCompositionPlanTemplateRevision, UiCompositionPlanTransform, UiCompositionPlanTransformOutput, UiCompositionPlanWidget, UiCompositionResourceSchemaRequest, UiCompositionResourceSchemaResolution, UiCompositionResourceSchemaResolver, ValueKind };
|
|
4281
|
+
export { ComponentPaletteDialogComponent, ConfirmDialogComponent, ConnectionEditorComponent, DEFAULT_CORPORATE_NAVIGATION_GROUPS_TARGET, DEFAULT_GOVERNED_PAGE_CHILD_VALIDATORS, DEFAULT_GOVERNED_PAGE_PREVIEW_ADAPTERS, DynamicPageBuilderComponent, DynamicPageConfigEditorComponent, FloatingToolbarComponent, GOVERNED_PAGE_CAPABILITY_KEYS, GovernedPageNavigationController, GovernedPageWorkflowController, LEGACY_PUBLISHED_PAGE_STORAGE_PREFIX, PAGE_BUILDER_AGENTIC_AUTHORING_OPTIONS, PAGE_BUILDER_AI_CAPABILITIES, PAGE_BUILDER_COMPONENT_CONTEXT_PACK, PAGE_BUILDER_WIDGET_AI_CATALOGS, PLACEHOLDER, PRAXIS_PAGE_BUILDER_AUTHORING_MANIFEST, PRAXIS_PAGE_BUILDER_COMPONENT_METADATA, PageBuilderAgenticAuthoringService, PageConfigEditorComponent, PraxisCommandPaletteComponent, PraxisDomainHubPageComponent, PraxisEnterpriseWorkspaceShellComponent, PraxisGovernedPagesConsoleComponent, PraxisOperationalScopeRibbonComponent, PraxisPageCopyActionComponent, PraxisPageSaveAsComponent, PraxisPersonalLaboratoryPageComponent, PraxisPublishedPageHostComponent, PraxisRealmPortalComponent, PraxisWorkspaceAuthGateComponent, PraxisWorkspaceStudioPageComponent, ResourceWidgetScaffolderService, TileToolbarComponent, UiCompositionResourcePreflightService, WidgetShellEditorComponent, clearWidgetAiCatalogs, compileUiCompositionPlan, createCorporateGovernedPagePersistenceAdapter, createLocalPageSaveAsAdapter, deriveGovernedPageCapabilities, getPageAiCatalog, getWidgetAiCapabilities, inspectLegacyPublishedPagePayload, isComponentDocMeta, preflightUiCompositionPlan, preflightUiCompositionPlanResources, providePageBuilderWidgetAiCatalogs, providePraxisAllWidgetMetadata, providePraxisPageBuilderMetadata, providePraxisPageBuilderWidgets, registerWidgetAiCatalog, registerWidgetAiCatalogs, resolveUiCompositionPlanTemplate, resolveWorkspaceText, sanitizeWidgetPageDefinition, validateChartPageWidget, validateExpansionPageWidget, validateListPageWidget, validateRichContentPageWidget, validateStepperPageWidget, validateTabsPageWidget, validateUiCompositionPlan, verifyUiCompositionAuthoringSource };
|
|
4282
|
+
export type { Capability, CapabilityCatalog, CapabilityCategory, CollectionScreenComposerConfig, ComponentPaletteData, ComponentPaletteSelection, ConfirmDialogData, GovernedNavigationGroupPublishInput, GovernedPageAssignmentInput, GovernedPageCapabilities, GovernedPageCopyPublishedRequest, GovernedPageCreateNativeRequest, GovernedPageLegacyExportArtifact, GovernedPageLegacyImportRequest, GovernedPageLegacyInspectionResult, GovernedPageLocalSaveAdapter, GovernedPageNavigationControllerConfig, GovernedPageNavigationSnapshot, GovernedPageOperationKind, GovernedPagePersistenceAdapter, GovernedPageReadResult, GovernedPageSubmitOptions, GovernedPageUncertainOperation, GovernedPageWorkflowControllerConfig, GovernedPageWorkflowError, GovernedPageWorkflowSnapshot, GuidedDataSourceQueryConfig, GuidedDataSourceTransformConfig, GuidedDerivedMeasureConfig, PageBuilderAgenticAuthoringAttachmentSummary, PageBuilderAgenticAuthoringCandidate, PageBuilderAgenticAuthoringComponentCapabilitiesResult, PageBuilderAgenticAuthoringComponentCapability, PageBuilderAgenticAuthoringComponentCapabilityCatalog, PageBuilderAgenticAuthoringComponentCapabilityExample, PageBuilderAgenticAuthoringComponentFieldAlias, PageBuilderAgenticAuthoringConversationMessage, PageBuilderAgenticAuthoringGateResult, PageBuilderAgenticAuthoringIntentResolutionRequest, PageBuilderAgenticAuthoringIntentResolutionResult, PageBuilderAgenticAuthoringOptions, PageBuilderAgenticAuthoringPendingClarification, PageBuilderAgenticAuthoringPromptRequest, PageBuilderAgenticAuthoringProvider, PageBuilderAgenticAuthoringQuickReply, PageBuilderAgenticAuthoringResourceCandidatesRequest, PageBuilderAgenticAuthoringResourceCandidatesResult, PageBuilderAgenticAuthoringSharedRuleHandoff, PageBuilderAgenticAuthoringTarget, PageBuilderAgenticAuthoringTurnStreamConnectionError, PageBuilderAgenticAuthoringTurnStreamEvent, PageBuilderAgenticAuthoringTurnStreamRequest, PageBuilderAgenticAuthoringTurnStreamStartResponse, PageBuilderApplyRequest, PageBuilderApplyResult, PageBuilderAuthoringCapabilities, PageBuilderCompiledFormPatch, PageBuilderMinimalFormPlanResult, PageBuilderPreviewDiagnostics, PageBuilderPreviewResult, PageBuilderProjectKnowledgeAudit, PageSaveAsAdapter, PageSaveAsRequest, PageSaveAsResult, PaletteCategory, PaletteExistingCanvasItem, QueuedPaletteItem, ResourceWidgetScaffoldSpec, ResourceWorkbenchPresetKind, SanitizeWidgetPageOptions, ScaffoldedPageResult, UiCompositionAuthoringSourceDiagnostic, UiCompositionAuthoringSourceDiagnosticCode, UiCompositionAuthoringSourceVerification, UiCompositionAuthoringSourceVerificationContext, UiCompositionPlan, UiCompositionPlanAuthoringInput, UiCompositionPlanAuthoringSource, UiCompositionPlanBinding, UiCompositionPlanCompileResult, UiCompositionPlanComponentPortEndpoint, UiCompositionPlanContextScope, UiCompositionPlanContextScopeTarget, UiCompositionPlanContextValue, UiCompositionPlanDiagnostic, UiCompositionPlanEndpoint, UiCompositionPlanGlobalActionEndpoint, UiCompositionPlanGlobalActionSourceEndpoint, UiCompositionPlanInputSource, UiCompositionPlanPreflightResult, UiCompositionPlanSelectCase, UiCompositionPlanSelectionSync, UiCompositionPlanSelectionSyncMapping, UiCompositionPlanSourceEndpoint, UiCompositionPlanStateEndpoint, UiCompositionPlanTargetEndpoint, UiCompositionPlanTemplateMaterialization, UiCompositionPlanTemplateRef, UiCompositionPlanTemplateReference, UiCompositionPlanTemplateResolutionResult, UiCompositionPlanTemplateRevision, UiCompositionPlanTransform, UiCompositionPlanTransformOutput, UiCompositionPlanWidget, UiCompositionResourceSchemaRequest, UiCompositionResourceSchemaResolution, UiCompositionResourceSchemaResolver, ValueKind, WorkspaceCommandCategory, WorkspaceCommandItem, WorkspaceCommandPrefix, WorkspaceDemoPersona, WorkspaceDomainMetricCard, WorkspaceDomainResourceCard, WorkspacePersonalPageEntry, WorkspaceRealmPortalOption, WorkspaceScopeDimensionConfig, WorkspaceStudioPreset };
|