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