@praxisui/page-builder 10.0.0-rc.62 → 10.0.0-rc.63
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 +11 -5
- package/ai/component-registry.json +81 -6
- package/fesm2022/praxisui-page-builder.mjs +1967 -130
- package/package.json +7 -7
- package/types/praxisui-page-builder.d.ts +141 -10
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { Inject, ChangeDetectionStrategy, Component, EventEmitter, Output, Input, inject, ElementRef, signal, computed, effect, Optional, input, output, Injector, viewChild, afterNextRender, DestroyRef, afterEveryRender, ViewChild, InjectionToken, ENVIRONMENT_INITIALIZER, Injectable, isSignal, model, untracked } from '@angular/core';
|
|
2
|
+
import { Inject, ChangeDetectionStrategy, Component, EventEmitter, Output, Input, inject, ElementRef, signal, computed, effect, Optional, input, output, Injector, viewChild, afterNextRender, DestroyRef, afterEveryRender, ViewChild, InjectionToken, ENVIRONMENT_INITIALIZER, Injectable, isDevMode, isSignal, model, untracked } from '@angular/core';
|
|
3
3
|
import * as i2 from '@angular/material/button';
|
|
4
4
|
import { MatButtonModule } from '@angular/material/button';
|
|
5
5
|
import * as i1 from '@angular/material/dialog';
|
|
@@ -7,7 +7,7 @@ import { MAT_DIALOG_DATA, MatDialogModule } from '@angular/material/dialog';
|
|
|
7
7
|
import * as i2$1 from '@angular/material/icon';
|
|
8
8
|
import { MatIconModule } from '@angular/material/icon';
|
|
9
9
|
import * as i2$2 from '@praxisui/core';
|
|
10
|
-
import { PraxisIconDirective, providePraxisI18n, BUILTIN_WIDGET_SHELL_PRESETS, SETTINGS_EDITOR_SECTIONS_HOSTED, PraxisI18nService, getWidgetShellActionIdError, WidgetShellComponent, SettingsSectionTabsComponent, PraxisIconButtonComponent, NestedWidgetConfigAccessor, GLOBAL_ACTION_CATALOG, ComponentMetadataRegistry, CompositionValidatorService, getGlobalActionCatalog, PRAXIS_GLOBAL_ACTION_CATALOG, SurfaceOpenActionEditorComponent, BUILTIN_PAGE_LAYOUT_PRESETS, resolveWidgetPageLayoutPreset, BUILTIN_PAGE_THEME_PRESETS, prepareCanvasArrangement, SETTINGS_PANEL_DATA as SETTINGS_PANEL_DATA$1, GlobalConfigService, ResourceDiscoveryService, WidgetPageDataSourceRuntimeService, WidgetPageStateRuntimeService, applyDeclarativeValuePipe, mapCatalogFieldsToMetadata, humanizeCatalogFieldName, validateCanvasArrangement, ResourceQuickConnectComponent, PraxisJsonLogicService, canonicalJsonSha256, ComponentRuntimeProfileService, buildApiUrl, deepMerge, generateId, ObservabilityDashboardService, PraxisRuntimeComponentObservationRegistryService, PraxisCustomizationModeService, PraxisContextSwitchGuard, domainKnowledgeTimelineToRichContentDocument, DomainRuleService, DomainKnowledgeService, cloneInputsPreservingLiveReferences, SETTINGS_PANEL_BRIDGE, DynamicWidgetPageComponent, DYNAMIC_PAGE_SHELL_EDITOR, providePraxisDynamicPageMetadata, providePraxisHeroBannerMetadata, providePraxisFooterLinksMetadata, providePraxisLegalNoticeMetadata, providePraxisRichTextBlockMetadata, providePraxisUserContextSummaryMetadata, providePraxisRelatedResourceOutletMetadata,
|
|
10
|
+
import { PraxisIconDirective, providePraxisI18n, BUILTIN_WIDGET_SHELL_PRESETS, SETTINGS_EDITOR_SECTIONS_HOSTED, PraxisI18nService, getWidgetShellActionIdError, WidgetShellComponent, SettingsSectionTabsComponent, PraxisIconButtonComponent, NestedWidgetConfigAccessor, GLOBAL_ACTION_CATALOG, ComponentMetadataRegistry, CompositionValidatorService, getGlobalActionCatalog, PRAXIS_GLOBAL_ACTION_CATALOG, SurfaceOpenActionEditorComponent, BUILTIN_PAGE_LAYOUT_PRESETS, resolveWidgetPageLayoutPreset, BUILTIN_PAGE_THEME_PRESETS, prepareCanvasArrangement, SETTINGS_PANEL_DATA as SETTINGS_PANEL_DATA$1, GlobalConfigService, ResourceDiscoveryService, WidgetPageDataSourceRuntimeService, WidgetPageStateRuntimeService, applyDeclarativeValuePipe, mapCatalogFieldsToMetadata, humanizeCatalogFieldName, validateCanvasArrangement, ResourceQuickConnectComponent, PraxisJsonLogicService, canonicalJsonSha256, ComponentRuntimeProfileService, buildApiUrl, deepMerge, generateId, ObservabilityDashboardService, PraxisRuntimeComponentObservationRegistryService, PraxisCustomizationModeService, PraxisContextSwitchGuard, LoggerService, domainKnowledgeTimelineToRichContentDocument, DomainRuleService, DomainKnowledgeService, cloneInputsPreservingLiveReferences, SETTINGS_PANEL_BRIDGE, DynamicWidgetPageComponent, DYNAMIC_PAGE_SHELL_EDITOR, providePraxisDynamicPageMetadata, providePraxisHeroBannerMetadata, providePraxisFooterLinksMetadata, providePraxisLegalNoticeMetadata, providePraxisRichTextBlockMetadata, providePraxisUserContextSummaryMetadata, providePraxisRelatedResourceOutletMetadata, resolveIconPickerLabel, IconPickerService, GOVERNED_PAGE_DEFAULT_ALLOWED_ICONS, createEmptyNavigationGroupsAuthoringDocument, upsertNavigationGroupEntry, UiLayoutLifecycleContractError, UiLayoutLifecycleHttpError, decodePageAuthoringDocument, decodeNavigationGroupsAuthoringDocument, buildGovernedPageTarget, buildPublishedPageIdentity, validateRuntimeNavigationMenuNodes, cloneBoundedUiLayoutJsonDocument, derivePageChildRuntimeId, validatePageAuthoringDocument, uiLayoutJsonIdentity, upsertPageNavigationBinding, materializeGovernedPagePreview, GOVERNED_PAGE_ADMITTED_WIDGET_IDS, PraxisWorkspaceQueryContextService, FieldControlType, EnterpriseRuntimeContextService, ApiConfigStorage, PraxisThemeService, PraxisSessionTransportService, PraxisAppShellComponent, PraxisCommandPaletteComponent, UiLayoutLifecycleService, PRAXIS_TENANT_REALM } from '@praxisui/core';
|
|
11
11
|
export { PraxisCommandPaletteComponent } from '@praxisui/core';
|
|
12
12
|
import * as i3 from '@angular/material/tooltip';
|
|
13
13
|
import { MatTooltipModule } from '@angular/material/tooltip';
|
|
@@ -20,18 +20,18 @@ import * as i4 from '@angular/material/button-toggle';
|
|
|
20
20
|
import { MatButtonToggleModule } from '@angular/material/button-toggle';
|
|
21
21
|
import * as i5 from '@angular/material/checkbox';
|
|
22
22
|
import { MatCheckboxModule } from '@angular/material/checkbox';
|
|
23
|
-
import * as
|
|
23
|
+
import * as i5$1 from '@angular/material/form-field';
|
|
24
24
|
import { MatFormFieldModule } from '@angular/material/form-field';
|
|
25
|
-
import * as
|
|
25
|
+
import * as i9 from '@angular/material/input';
|
|
26
26
|
import { MatInputModule } from '@angular/material/input';
|
|
27
|
-
import * as i3$
|
|
27
|
+
import * as i3$1 from '@angular/material/select';
|
|
28
28
|
import { MatSelectModule } from '@angular/material/select';
|
|
29
29
|
import { BehaviorSubject, merge, timeout, map, catchError, throwError, firstValueFrom, from, share, concatMap, of, timer, takeUntil, Subject, tap, filter, take, isObservable, Observable } from 'rxjs';
|
|
30
30
|
import { SETTINGS_PANEL_DATA } from '@praxisui/settings-panel';
|
|
31
31
|
import { takeUntilDestroyed, toSignal } from '@angular/core/rxjs-interop';
|
|
32
32
|
import * as i2$3 from '@angular/material/autocomplete';
|
|
33
33
|
import { MatAutocompleteModule } from '@angular/material/autocomplete';
|
|
34
|
-
import * as i9 from '@angular/material/tabs';
|
|
34
|
+
import * as i9$1 from '@angular/material/tabs';
|
|
35
35
|
import { MatTabsModule } from '@angular/material/tabs';
|
|
36
36
|
import { HttpClient, HttpHeaders } from '@angular/common/http';
|
|
37
37
|
import { AgenticAuthoringTurnClientService, withAuthoringScopePolicyContextHints, toPraxisAssistantConversationMessages, PraxisAssistantTurnOrchestratorService, PraxisAssistantSessionRegistryService, PRAXIS_ASSISTANT_VOICE_INPUT_MODE, createPraxisAssistantViewportLayout, PraxisAiAssistantShellComponent, WorkspaceAssistantOrchestratorService, PraxisWorkspaceAssistantComponent } from '@praxisui/ai';
|
|
@@ -639,6 +639,8 @@ const PRAXIS_PAGE_BUILDER_EN_US = {
|
|
|
639
639
|
"praxis.pageBuilder.shell.bindingSampleTitle": "Selected record",
|
|
640
640
|
"praxis.pageBuilder.shell.bindingSampleSubtitle": "Selected record details",
|
|
641
641
|
"praxis.pageBuilder.shell.kind": "Presentation",
|
|
642
|
+
"praxis.pageBuilder.shell.lockedKindHint": "Locked by the canonical page policy.",
|
|
643
|
+
"praxis.pageBuilder.shell.framelessLockedNotice": "Header, frame and card styling controls are disabled because this page locks the widget to content-only presentation.",
|
|
642
644
|
"praxis.pageBuilder.shell.kindCard": "With frame and header",
|
|
643
645
|
"praxis.pageBuilder.shell.kindNone": "Content only",
|
|
644
646
|
"praxis.pageBuilder.shell.icon": "Icon name (optional)",
|
|
@@ -1564,9 +1566,20 @@ const PRAXIS_PAGE_BUILDER_EN_US = {
|
|
|
1564
1566
|
'praxis.pageBuilder.studio.composer.groupFieldHint': "Choose the boolean or categorical field used in summary indicators.",
|
|
1565
1567
|
'praxis.pageBuilder.studio.composer.statsUnsupportedHint': "This resource does not publish stats/group-by aggregation; summary indicators were disabled automatically.",
|
|
1566
1568
|
'praxis.pageBuilder.saveAs.title': 'Page name',
|
|
1569
|
+
'praxis.pageBuilder.saveAs.titlePlaceholder': 'e.g. Executive Consolidated View',
|
|
1567
1570
|
'praxis.pageBuilder.saveAs.menu': 'Menu name',
|
|
1571
|
+
'praxis.pageBuilder.saveAs.menuPlaceholder': 'e.g. Corporate Dashboards',
|
|
1568
1572
|
'praxis.pageBuilder.saveAs.menuHint': 'Use an existing menu name or create a new one.',
|
|
1573
|
+
'praxis.pageBuilder.saveAs.menuHintWithSuggestions': 'Choose an existing menu or type to create a new one.',
|
|
1574
|
+
'praxis.pageBuilder.saveAs.menuCreateOption': 'Create new menu "{{ name }}"',
|
|
1569
1575
|
'praxis.pageBuilder.saveAs.icon': 'Choose menu icon',
|
|
1576
|
+
'praxis.pageBuilder.saveAs.iconLabel': 'Icon',
|
|
1577
|
+
'praxis.pageBuilder.saveAs.iconChange': 'Change',
|
|
1578
|
+
'praxis.pageBuilder.saveAs.iconDialogTitle': 'Choose page icon',
|
|
1579
|
+
'praxis.pageBuilder.saveAs.iconDialogSubtitle': 'This icon identifies the page in the navigation menu and workspace shortcuts.',
|
|
1580
|
+
'praxis.pageBuilder.saveAs.previewLabel': 'Navigation preview',
|
|
1581
|
+
'praxis.pageBuilder.saveAs.previewTitleFallback': 'New page',
|
|
1582
|
+
'praxis.pageBuilder.saveAs.previewMenuFallback': 'Main menu',
|
|
1570
1583
|
'praxis.pageBuilder.saveAs.save': 'Save as new page',
|
|
1571
1584
|
'praxis.pageBuilder.saveAs.saving': 'Saving…',
|
|
1572
1585
|
'praxis.pageBuilder.saveAs.saved': 'Page and menu saved.',
|
|
@@ -1954,6 +1967,8 @@ const PRAXIS_PAGE_BUILDER_PT_BR = {
|
|
|
1954
1967
|
"praxis.pageBuilder.shell.bindingSampleTitle": "Registro selecionado",
|
|
1955
1968
|
"praxis.pageBuilder.shell.bindingSampleSubtitle": "Informações do registro selecionado",
|
|
1956
1969
|
"praxis.pageBuilder.shell.kind": "Apresentação",
|
|
1970
|
+
"praxis.pageBuilder.shell.lockedKindHint": "Bloqueado pela política canônica da página.",
|
|
1971
|
+
"praxis.pageBuilder.shell.framelessLockedNotice": "Os controles de cabeçalho, moldura e estilo do card estão desabilitados porque a política da página fixa este widget no modo somente conteúdo.",
|
|
1957
1972
|
"praxis.pageBuilder.shell.kindCard": "Com moldura e cabeçalho",
|
|
1958
1973
|
"praxis.pageBuilder.shell.kindNone": "Somente conteúdo",
|
|
1959
1974
|
"praxis.pageBuilder.shell.icon": "Nome do ícone (opcional)",
|
|
@@ -2888,9 +2903,20 @@ const PRAXIS_PAGE_BUILDER_PT_BR = {
|
|
|
2888
2903
|
'praxis.pageBuilder.studio.composer.groupFieldHint': "Escolha o campo booleano ou categórico usado nos indicadores de resumo.",
|
|
2889
2904
|
'praxis.pageBuilder.studio.composer.statsUnsupportedHint': "Este recurso não publica agregação stats/group-by; os indicadores de resumo foram desativados automaticamente.",
|
|
2890
2905
|
'praxis.pageBuilder.saveAs.title': 'Nome da página',
|
|
2906
|
+
'praxis.pageBuilder.saveAs.titlePlaceholder': 'Ex.: Visão Executiva Consolidada',
|
|
2891
2907
|
'praxis.pageBuilder.saveAs.menu': 'Nome do menu',
|
|
2908
|
+
'praxis.pageBuilder.saveAs.menuPlaceholder': 'Ex.: Painéis Corporativos',
|
|
2892
2909
|
'praxis.pageBuilder.saveAs.menuHint': 'Use o nome de um menu existente ou crie outro.',
|
|
2910
|
+
'praxis.pageBuilder.saveAs.menuHintWithSuggestions': 'Escolha um menu existente ou digite para criar um novo.',
|
|
2911
|
+
'praxis.pageBuilder.saveAs.menuCreateOption': 'Criar novo menu "{{ name }}"',
|
|
2893
2912
|
'praxis.pageBuilder.saveAs.icon': 'Escolher ícone do menu',
|
|
2913
|
+
'praxis.pageBuilder.saveAs.iconLabel': 'Ícone',
|
|
2914
|
+
'praxis.pageBuilder.saveAs.iconChange': 'Alterar',
|
|
2915
|
+
'praxis.pageBuilder.saveAs.iconDialogTitle': 'Escolher ícone da página',
|
|
2916
|
+
'praxis.pageBuilder.saveAs.iconDialogSubtitle': 'Este ícone identifica a página no menu de navegação e nos atalhos do workspace.',
|
|
2917
|
+
'praxis.pageBuilder.saveAs.previewLabel': 'Prévia na navegação',
|
|
2918
|
+
'praxis.pageBuilder.saveAs.previewTitleFallback': 'Nova página',
|
|
2919
|
+
'praxis.pageBuilder.saveAs.previewMenuFallback': 'Menu principal',
|
|
2894
2920
|
'praxis.pageBuilder.saveAs.save': 'Salvar como nova página',
|
|
2895
2921
|
'praxis.pageBuilder.saveAs.saving': 'Salvando…',
|
|
2896
2922
|
'praxis.pageBuilder.saveAs.saved': 'Página e menu salvos.',
|
|
@@ -3040,11 +3066,11 @@ function createPraxisPageBuilderI18nConfig(options = {}) {
|
|
|
3040
3066
|
function providePraxisPageBuilderI18n(options = {}) {
|
|
3041
3067
|
return providePraxisI18n(createPraxisPageBuilderI18nConfig(options));
|
|
3042
3068
|
}
|
|
3043
|
-
function resolvePraxisPageBuilderText(i18n, key, fallback) {
|
|
3069
|
+
function resolvePraxisPageBuilderText(i18n, key, fallback, params) {
|
|
3044
3070
|
const namespacedKey = key.startsWith('praxis.pageBuilder.')
|
|
3045
3071
|
? key
|
|
3046
3072
|
: `praxis.pageBuilder.${key}`;
|
|
3047
|
-
return i18n.t(namespacedKey,
|
|
3073
|
+
return i18n.t(namespacedKey, params, fallback) || fallback;
|
|
3048
3074
|
}
|
|
3049
3075
|
|
|
3050
3076
|
/**
|
|
@@ -3460,15 +3486,32 @@ class ComponentPaletteDialogComponent {
|
|
|
3460
3486
|
applyStructuralConstraints() {
|
|
3461
3487
|
const list = (this.all() || []);
|
|
3462
3488
|
const allowIds = new Set((this.data?.allowedWidgetIds || []).map((s) => s.toLowerCase()));
|
|
3489
|
+
const policyIds = new Set((this.data?.policyAllowedWidgetIds || []).map((s) => s.toLowerCase()));
|
|
3463
3490
|
const allowTags = new Set((this.data?.allowedWidgetTags || []).map((s) => s.toLowerCase()));
|
|
3491
|
+
const excludedTags = new Set((this.data?.excludedWidgetTags || []).map((s) => s.toLowerCase()));
|
|
3464
3492
|
const allowPresets = new Set((this.data?.allowedPresetIds || []).map((s) => s.toLowerCase()));
|
|
3465
3493
|
const metadataById = new Map(this.registry.getAll().map((meta) => [meta.id, meta]));
|
|
3466
3494
|
return list.filter((entry) => {
|
|
3467
3495
|
const meta = metadataById.get(entry.componentId);
|
|
3468
3496
|
if (!meta)
|
|
3469
3497
|
return false;
|
|
3498
|
+
const visibility = meta.paletteVisibility ?? 'global';
|
|
3499
|
+
if (visibility === 'hidden')
|
|
3500
|
+
return false;
|
|
3501
|
+
if (excludedTags.size > 0 && meta.tags?.some((t) => excludedTags.has(t.toLowerCase()))) {
|
|
3502
|
+
return false;
|
|
3503
|
+
}
|
|
3504
|
+
if (visibility === 'explicit-only') {
|
|
3505
|
+
const explicitIdMatch = allowIds.size > 0 && allowIds.has((meta.id || '').toLowerCase());
|
|
3506
|
+
const explicitTagMatch = allowTags.size > 0 && Boolean(meta.tags?.some((t) => allowTags.has(t.toLowerCase())));
|
|
3507
|
+
if (!explicitIdMatch && !explicitTagMatch) {
|
|
3508
|
+
return false;
|
|
3509
|
+
}
|
|
3510
|
+
}
|
|
3470
3511
|
if (allowIds.size > 0 && !allowIds.has((meta.id || '').toLowerCase()))
|
|
3471
3512
|
return false;
|
|
3513
|
+
if (policyIds.size > 0 && !policyIds.has((meta.id || '').toLowerCase()))
|
|
3514
|
+
return false;
|
|
3472
3515
|
if (allowTags.size > 0 && !meta.tags?.some((t) => allowTags.has(t.toLowerCase())))
|
|
3473
3516
|
return false;
|
|
3474
3517
|
if (entry.presetId && allowPresets.size > 0 && !allowPresets.has(entry.presetId.toLowerCase()))
|
|
@@ -4497,10 +4540,12 @@ class WidgetShellEditorComponent {
|
|
|
4497
4540
|
setInputValue = new FormControl(null);
|
|
4498
4541
|
pagePreset = null;
|
|
4499
4542
|
authoringCapabilities;
|
|
4543
|
+
isShellKindLocked;
|
|
4500
4544
|
constructor(data, registry) {
|
|
4501
4545
|
this.registry = registry;
|
|
4502
4546
|
this.compositionLinks = data?.compositionLinks ?? [];
|
|
4503
4547
|
this.authoringCapabilities = data?.authoringCapabilities ?? null;
|
|
4548
|
+
this.isShellKindLocked = Boolean(data?.widgetAuthoringPolicy?.lockShellKind);
|
|
4504
4549
|
this.getActionAvailability = data?.getActionAvailability;
|
|
4505
4550
|
if (this.canEditShellAppearance()) {
|
|
4506
4551
|
const properties = {
|
|
@@ -4556,7 +4601,12 @@ class WidgetShellEditorComponent {
|
|
|
4556
4601
|
get actions() {
|
|
4557
4602
|
return this.form.controls.actions;
|
|
4558
4603
|
}
|
|
4604
|
+
get isFramelessLocked() {
|
|
4605
|
+
return this.isShellKindLocked && this.form.controls.kind.value === 'none';
|
|
4606
|
+
}
|
|
4559
4607
|
selectPreset(id) {
|
|
4608
|
+
if (this.isFramelessLocked)
|
|
4609
|
+
return;
|
|
4560
4610
|
this.form.controls.preset.setValue(id);
|
|
4561
4611
|
}
|
|
4562
4612
|
presetLabel(preset) {
|
|
@@ -4687,10 +4737,43 @@ class WidgetShellEditorComponent {
|
|
|
4687
4737
|
subtitleSize: typography.subtitleSize || '',
|
|
4688
4738
|
actions: this.actions.value,
|
|
4689
4739
|
}, { emitEvent: false });
|
|
4740
|
+
this.syncLockedShellControls();
|
|
4690
4741
|
this.snapshot = this.snapshotValue();
|
|
4691
4742
|
this.dirtySubject.next(false);
|
|
4692
4743
|
this.validSubject.next(this.form.valid);
|
|
4693
4744
|
}
|
|
4745
|
+
syncLockedShellControls() {
|
|
4746
|
+
if (this.isShellKindLocked) {
|
|
4747
|
+
this.form.controls.kind.disable({ emitEvent: false });
|
|
4748
|
+
this.form.controls.showHeader.disable({ emitEvent: false });
|
|
4749
|
+
}
|
|
4750
|
+
else {
|
|
4751
|
+
this.form.controls.kind.enable({ emitEvent: false });
|
|
4752
|
+
this.form.controls.showHeader.enable({ emitEvent: false });
|
|
4753
|
+
}
|
|
4754
|
+
const framelessLockedControls = [
|
|
4755
|
+
this.form.controls.title,
|
|
4756
|
+
this.form.controls.subtitle,
|
|
4757
|
+
this.form.controls.icon,
|
|
4758
|
+
this.form.controls.stickyHeader,
|
|
4759
|
+
this.form.controls.collapsible,
|
|
4760
|
+
this.form.controls.avatarEnabled,
|
|
4761
|
+
this.form.controls.avatarImage,
|
|
4762
|
+
this.form.controls.avatarName,
|
|
4763
|
+
this.form.controls.avatarInitials,
|
|
4764
|
+
this.form.controls.preset,
|
|
4765
|
+
this.form.controls.applyToAll,
|
|
4766
|
+
...this.appearanceControls.map((key) => this.form.controls[key]),
|
|
4767
|
+
];
|
|
4768
|
+
for (const control of framelessLockedControls) {
|
|
4769
|
+
if (this.isFramelessLocked) {
|
|
4770
|
+
control.disable({ emitEvent: false });
|
|
4771
|
+
}
|
|
4772
|
+
else {
|
|
4773
|
+
control.enable({ emitEvent: false });
|
|
4774
|
+
}
|
|
4775
|
+
}
|
|
4776
|
+
}
|
|
4694
4777
|
loadAvailableActions(widgetType) {
|
|
4695
4778
|
if (!widgetType || !this.registry) {
|
|
4696
4779
|
this.availableActions = [];
|
|
@@ -4763,8 +4846,14 @@ class WidgetShellEditorComponent {
|
|
|
4763
4846
|
delete shell.avatar;
|
|
4764
4847
|
delete shell.showHeader;
|
|
4765
4848
|
delete shell.stickyHeader;
|
|
4766
|
-
if (
|
|
4849
|
+
if (this.isShellKindLocked) {
|
|
4850
|
+
if (initial?.kind !== undefined) {
|
|
4851
|
+
shell.kind = initial.kind;
|
|
4852
|
+
}
|
|
4853
|
+
}
|
|
4854
|
+
else if (raw.kind === 'none') {
|
|
4767
4855
|
shell.kind = 'none';
|
|
4856
|
+
}
|
|
4768
4857
|
if (raw.preset)
|
|
4769
4858
|
shell.preset = raw.preset;
|
|
4770
4859
|
const title = this.preserveTextDescriptor(this.initialTitle, raw.title);
|
|
@@ -4782,8 +4871,14 @@ class WidgetShellEditorComponent {
|
|
|
4782
4871
|
...(raw.avatarInitials.trim() ? { initials: raw.avatarInitials.trim() } : {}),
|
|
4783
4872
|
};
|
|
4784
4873
|
}
|
|
4785
|
-
if (
|
|
4874
|
+
if (this.isShellKindLocked) {
|
|
4875
|
+
if (initial?.showHeader !== undefined) {
|
|
4876
|
+
shell.showHeader = initial.showHeader;
|
|
4877
|
+
}
|
|
4878
|
+
}
|
|
4879
|
+
else if (raw.showHeader !== 'auto') {
|
|
4786
4880
|
shell.showHeader = raw.showHeader === 'true';
|
|
4881
|
+
}
|
|
4787
4882
|
if (raw.stickyHeader)
|
|
4788
4883
|
shell.stickyHeader = true;
|
|
4789
4884
|
const windowActions = {
|
|
@@ -4919,7 +5014,7 @@ class WidgetShellEditorComponent {
|
|
|
4919
5014
|
return this.appearanceControls.filter(key => this.form.controls[key].value.trim()).length;
|
|
4920
5015
|
}
|
|
4921
5016
|
clearAppearanceOverrides() {
|
|
4922
|
-
if (!this.canEditShellAppearance())
|
|
5017
|
+
if (!this.canEditShellAppearance() || this.isFramelessLocked)
|
|
4923
5018
|
return;
|
|
4924
5019
|
for (const key of this.appearanceControls)
|
|
4925
5020
|
this.form.controls[key].setValue('', { emitEvent: false });
|
|
@@ -5212,6 +5307,9 @@ class WidgetShellEditorComponent {
|
|
|
5212
5307
|
<div [id]="topicPanelId" [attr.role]="sectionsHosted ? null : 'tabpanel'" [attr.aria-label]="sectionsHosted ? null : currentTopicLabel()">
|
|
5213
5308
|
<div class="shell-topic-panel" [hidden]="currentTopic() !== 'header'">
|
|
5214
5309
|
@if (canEditShellIdentity() && currentTopic() === 'header') {
|
|
5310
|
+
@if (isFramelessLocked) {
|
|
5311
|
+
<p class="shell-hint" role="status" data-testid="widget-shell-frameless-locked-notice">{{ shellText('framelessLockedNotice') }}</p>
|
|
5312
|
+
}
|
|
5215
5313
|
<h3 class="shell-section">{{ shellText('identityTitle') }}</h3>
|
|
5216
5314
|
<div class="shell-grid" data-testid="widget-shell-identity">
|
|
5217
5315
|
<mat-form-field class="shell-field--wide" appearance="outline" subscriptSizing="dynamic">
|
|
@@ -5233,6 +5331,9 @@ class WidgetShellEditorComponent {
|
|
|
5233
5331
|
<mat-option value="dashboard-card">{{ shellText('kindCard') }}</mat-option>
|
|
5234
5332
|
<mat-option value="none">{{ shellText('kindNone') }}</mat-option>
|
|
5235
5333
|
</mat-select>
|
|
5334
|
+
@if (isShellKindLocked) {
|
|
5335
|
+
<mat-hint data-testid="widget-shell-kind-locked-hint">{{ shellText('lockedKindHint') }}</mat-hint>
|
|
5336
|
+
}
|
|
5236
5337
|
</mat-form-field>
|
|
5237
5338
|
<mat-form-field appearance="outline">
|
|
5238
5339
|
<mat-label>{{ shellText('icon') }}</mat-label>
|
|
@@ -5249,6 +5350,9 @@ class WidgetShellEditorComponent {
|
|
|
5249
5350
|
<mat-option value="true">{{ shellText('always') }}</mat-option>
|
|
5250
5351
|
<mat-option value="false">{{ shellText('never') }}</mat-option>
|
|
5251
5352
|
</mat-select>
|
|
5353
|
+
@if (isShellKindLocked) {
|
|
5354
|
+
<mat-hint data-testid="widget-shell-header-locked-hint">{{ shellText('lockedKindHint') }}</mat-hint>
|
|
5355
|
+
}
|
|
5252
5356
|
</mat-form-field>
|
|
5253
5357
|
<mat-checkbox [formControl]="form.controls.stickyHeader">
|
|
5254
5358
|
{{ stickyHeaderLabel() }}
|
|
@@ -5263,6 +5367,9 @@ class WidgetShellEditorComponent {
|
|
|
5263
5367
|
@if (canEditShellIdentity()) {
|
|
5264
5368
|
<div class="shell-grid">
|
|
5265
5369
|
<div class="shell-preset-field shell-field--wide">
|
|
5370
|
+
@if (isFramelessLocked && currentTopic() === 'styles') {
|
|
5371
|
+
<p class="shell-hint" role="status" data-testid="widget-shell-frameless-locked-notice">{{ shellText('framelessLockedNotice') }}</p>
|
|
5372
|
+
}
|
|
5266
5373
|
<span class="shell-preset-label">{{ presetTitle() }}</span>
|
|
5267
5374
|
<p class="shell-hint">{{ shellText('presetHint') }}</p>
|
|
5268
5375
|
<p class="shell-effective-style" role="status" data-testid="widget-shell-effective-style">
|
|
@@ -5275,6 +5382,7 @@ class WidgetShellEditorComponent {
|
|
|
5275
5382
|
<button
|
|
5276
5383
|
type="button"
|
|
5277
5384
|
class="shell-preset-option"
|
|
5385
|
+
[disabled]="isFramelessLocked"
|
|
5278
5386
|
[class.shell-preset-option--selected]="!form.controls.preset.value"
|
|
5279
5387
|
[attr.aria-pressed]="!form.controls.preset.value"
|
|
5280
5388
|
(click)="selectPreset('')"
|
|
@@ -5289,6 +5397,7 @@ class WidgetShellEditorComponent {
|
|
|
5289
5397
|
<button
|
|
5290
5398
|
type="button"
|
|
5291
5399
|
class="shell-preset-option"
|
|
5400
|
+
[disabled]="isFramelessLocked"
|
|
5292
5401
|
[class.shell-preset-option--selected]="form.controls.preset.value === p.id"
|
|
5293
5402
|
[attr.aria-pressed]="form.controls.preset.value === p.id"
|
|
5294
5403
|
(click)="selectPreset(p.id)"
|
|
@@ -5430,6 +5539,9 @@ class WidgetShellEditorComponent {
|
|
|
5430
5539
|
</div>
|
|
5431
5540
|
<div class="shell-topic-panel" [hidden]="currentTopic() !== 'appearance'">
|
|
5432
5541
|
@if (canEditShellAppearance()) {
|
|
5542
|
+
@if (isFramelessLocked && currentTopic() === 'appearance') {
|
|
5543
|
+
<p class="shell-hint" role="status" data-testid="widget-shell-frameless-locked-notice">{{ shellText('framelessLockedNotice') }}</p>
|
|
5544
|
+
}
|
|
5433
5545
|
@if (hasAppearanceErrors()) {
|
|
5434
5546
|
<p class="shell-validation" role="alert">{{ shellText('advancedErrors') }}</p>
|
|
5435
5547
|
}
|
|
@@ -5863,7 +5975,7 @@ class WidgetShellEditorComponent {
|
|
|
5863
5975
|
</div>
|
|
5864
5976
|
</details>
|
|
5865
5977
|
</div>
|
|
5866
|
-
`, isInline: true, styles: [":host{display:block;container:shell-editor / inline-size}.shell-effective-style{display:grid;gap:4px;margin:0;font-size:12px}.shell-effective-style span{color:var(--md-sys-color-on-surface-variant)}.shell-topic-panel,.shell-topic{display:grid;gap:var(--pfx-spacing-4, 16px)}.shell-topic-panel{padding-block:var(--pfx-spacing-4, 16px);min-width:0}.shell-topic-panel[hidden]{display:none}.shell-topic-panel>.shell-grid{margin-block-end:var(--pfx-spacing-4, 16px)}.shell-link-summary{display:grid;gap:var(--pfx-spacing-1, 4px);padding-block:var(--pfx-spacing-3, 12px);overflow-wrap:anywhere}.shell-button-task{display:grid;gap:var(--pfx-spacing-4, 16px);min-width:0}.shell-button-count{margin:0;font-size:14px}.shell-action-technical,.shell-action-scopes{min-width:0;font-size:12px}.shell-action-technical summary,.shell-action-scopes summary{cursor:pointer;padding-block:8px}.shell-action-technical summary:focus-visible,.shell-action-scopes summary:focus-visible{outline:2px solid var(--md-sys-color-primary);outline-offset:2px}.shell-action-contract{display:grid;grid-template-columns:auto minmax(0,1fr);gap:8px}.shell-action-contract dd{margin:0;overflow-wrap:anywhere}.shell-action-technical .shell-action-row{margin-top:12px}.shell-editor{display:grid;grid-template-columns:minmax(0,1fr);min-width:0;gap:20px;padding:12px 4px 20px}.shell-controls{display:grid;gap:var(--pfx-spacing-4, 16px);min-width:0;container:shell-controls / inline-size}.shell-preview-region{min-width:0}.shell-highlight-control{display:grid;gap:8px;min-width:0;grid-column:1 / -1}.shell-highlight-label{font-size:13px;font-weight:600}.shell-highlight-options{display:flex;flex-wrap:wrap;width:fit-content;max-width:100%}.shell-highlight-options mat-button-toggle{min-width:0}.shell-highlight-control p{margin:0;overflow-wrap:anywhere}@container shell-controls (max-width: 480px){.shell-controls .shell-grid,.shell-controls .shell-action-row,.shell-controls .shell-quick-inputs,.shell-controls .shell-available-item{grid-template-columns:minmax(0,1fr)}.shell-controls .shell-available-item>button{justify-self:start}}.shell-intro{margin:0;max-width:68ch;color:var(--md-sys-color-on-surface-variant);font-size:14px;line-height:1.5}.shell-details{border-top:1px solid var(--md-sys-color-outline-variant);padding-top:var(--pfx-spacing-4, 16px)}.shell-details summary{cursor:pointer;color:var(--md-sys-color-on-surface);font-weight:600;line-height:1.5}.shell-details summary:focus-visible{outline:2px solid var(--md-sys-color-primary);outline-offset:4px}.shell-option-content{display:grid;gap:var(--pfx-spacing-4, 16px);margin-top:var(--pfx-spacing-4, 16px);min-width:0}.shell-details>.shell-grid{margin-top:var(--pfx-spacing-4, 16px)}.shell-details>.shell-section{margin:var(--pfx-spacing-4, 16px) 0 var(--pfx-spacing-2, 8px)}.shell-validation{color:var(--md-sys-color-error);margin:0;line-height:1.5}.shell-section{margin:4px 0 -8px;color:var(--md-sys-color-on-surface);font-size:14px;font-weight:650;line-height:1.4}.shell-grid{display:grid;gap:12px 16px;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}.shell-field--wide{grid-column:1 / -1}.shell-preset-preview__body{display:grid;align-content:start;height:100%;color:var(--md-sys-color-on-surface-variant)}.shell-preset-preview__body .shell-mini-value,.shell-preset-preview__body .shell-mini-line{background:currentColor}.shell-preset-copy strong{display:flex;align-items:baseline;justify-content:space-between;gap:var(--pfx-spacing-2, 8px)}.shell-preset-check{color:var(--md-sys-color-primary);flex-shrink:0}.shell-preset-field,.shell-preset-copy{display:grid}.shell-preset-field{gap:8px}.shell-preset-label{color:var(--md-sys-color-on-surface);font-size:13px;font-weight:600}.shell-preset-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:10px}.shell-preset-option{min-width:0;display:grid;grid-template-columns:72px minmax(0,1fr);align-items:center;gap:10px;padding:10px;border:1px solid var(--md-sys-color-outline-variant);border-radius:12px;background:var(--md-sys-color-surface);color:var(--md-sys-color-on-surface);text-align:left;cursor:pointer}.shell-preset-option:hover{background:var(--md-sys-color-surface-container-low)}.shell-preset-option:focus-visible{outline:2px solid var(--md-sys-color-primary);outline-offset:2px}.shell-preset-option--selected{border-color:var(--md-sys-color-primary);box-shadow:0 0 0 1px var(--md-sys-color-primary)}.shell-preset-preview{box-sizing:border-box;display:block;height:64px;overflow:hidden;border:1px solid var(--md-sys-color-outline-variant);background:var(--shell-mini-bg, var(--md-sys-color-surface));-webkit-backdrop-filter:var(--shell-mini-filter, none);backdrop-filter:var(--shell-mini-filter, none)}@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))){.shell-preset-preview--backdrop{background:var(--shell-mini-fallback, var(--md-sys-color-surface))}}@media(prefers-reduced-transparency:reduce){.shell-preset-preview--backdrop{background:var(--shell-mini-fallback, var(--md-sys-color-surface));-webkit-backdrop-filter:none;backdrop-filter:none}}.shell-preset-preview__header{display:flex;align-items:center;gap:4px;padding-inline:8px;height:22px;border-bottom:1px solid transparent}.shell-preset-preview--none{border-style:dashed;border-radius:8px;background:transparent;box-shadow:none}.shell-preset-copy{gap:3px}.shell-preset-copy small{color:var(--md-sys-color-on-surface-variant);font-size:11px;line-height:1.35}.shell-flags{display:flex;gap:16px;align-items:center}.shell-actions-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.shell-available{display:grid;gap:12px}.shell-available-toolbar{display:grid;gap:12px;grid-template-columns:minmax(200px,1fr)}.shell-available-filters{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.shell-available-list{display:grid;gap:10px}.shell-available-item{display:grid;gap:8px;grid-template-columns:minmax(0,1fr) auto;border-bottom:1px solid var(--md-sys-color-outline-variant);padding-block:12px;align-items:start;min-width:0}.shell-available-main{min-width:0;overflow-wrap:anywhere}.shell-available-title{display:flex;align-items:center;gap:10px}.shell-available-text{display:grid;gap:4px}.shell-available-label{font-weight:600}.shell-available-meta{display:flex;gap:8px;flex-wrap:wrap;font-size:11px;color:var(--md-sys-color-on-surface-variant)}.shell-available-desc{font-size:12px;color:var(--md-sys-color-on-surface-variant)}.shell-available-payload{font-size:11px;color:var(--md-sys-color-on-surface-variant)}.shell-action-availability{font-size:12px;line-height:1.5;padding:8px 10px;border-inline-start:2px solid var(--md-sys-color-outline-variant);background:var(--md-sys-color-surface-container);color:var(--md-sys-color-on-surface-variant)}.shell-available-warning{font-size:11px;color:var(--md-sys-color-error)}.shell-available-actions{display:flex;align-items:flex-start;justify-content:flex-end}.shell-badge{padding:2px 6px;border-radius:999px;border:1px solid var(--md-sys-color-outline-variant);font-size:10px}.shell-code{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.shell-actions{display:grid;gap:12px}.shell-action{border-top:1px solid var(--md-sys-color-outline-variant);padding-block:16px;display:grid;gap:8px}.shell-action-row{display:grid;gap:12px;grid-template-columns:repeat(auto-fit,minmax(160px,1fr))}.shell-action-actions{display:flex;justify-content:flex-end}.shell-action-hint,.shell-empty{font-size:12px;color:var(--md-sys-color-on-surface-variant)}.shell-hint{margin:0;line-height:1.5;align-self:center;font-size:12px;color:var(--md-sys-color-on-surface-variant)}.shell-quick-inputs{display:grid;gap:12px;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));align-items:end}.shell-input-path{font-size:12px;color:var(--md-sys-color-on-surface-variant);align-self:center}.shell-editor .mat-mdc-form-field{width:100%;min-width:0}:host{display:block;min-width:0}.shell-editor>*,.shell-action>*{min-width:0}.shell-available-text,.shell-input-path{min-width:0;overflow-wrap:anywhere}.shell-preview-region{min-width:0;background:var(--md-sys-color-surface)}.shell-preview-content{display:grid;gap:12px;padding-top:12px}.shell-preview-heading{cursor:pointer;padding-block:8px}.shell-preview-heading:before{content:\"\\25b8\"}.shell-preview-region[open]>.shell-preview-heading:before{content:\"\\25be\"}.shell-preview-heading:focus-visible{outline:2px solid var(--md-sys-color-primary);outline-offset:2px}.shell-preview-heading,.shell-override-summary{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px}.shell-preview-heading strong{margin-right:auto;font-size:14px}.shell-preview-heading>span,.shell-override-summary{font-size:12px;color:var(--md-sys-color-on-surface-variant)}.shell-preview{padding:16px;background:var(--md-sys-color-surface-container-low);min-width:0}.shell-sample-content{display:grid;gap:8px}.shell-sample-content>span{font-size:12px;color:var(--md-sys-color-on-surface-variant)}.shell-sample-content strong{font-size:32px;line-height:1.15;font-variant-numeric:tabular-nums}.shell-mini-title,.shell-mini-action,.shell-mini-value,.shell-mini-line{display:block;background:var(--md-sys-color-on-surface-variant);opacity:.45;border-radius:2px}.shell-mini-title{width:24px;height:3px}.shell-mini-action{width:4px;height:4px;margin-left:auto}.shell-mini-value{width:20px;height:8px;margin:8px 8px 4px;opacity:.7}.shell-mini-line{width:32px;height:3px;margin-inline:8px}@media(max-width:640px){.shell-editor{padding-inline:0}.shell-grid,.shell-action-row,.shell-quick-inputs,.shell-available-toolbar{grid-template-columns:minmax(0,1fr)}.shell-actions-head,.shell-flags{flex-wrap:wrap}.shell-field--wide{grid-column:auto}}\n"], dependencies: [{ kind: "component", type: WidgetShellComponent, selector: "praxis-widget-shell", inputs: ["shell", "context", "dragSurfaceEnabled", "dragSurfaceLabel"], outputs: ["action", "dragSurfacePointerDown", "dragSurfaceKeydown"] }, { kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1$1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],[formArray],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1$1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "directive", type: i1$1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1$1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i2.MatButton, selector: " button[matButton], a[matButton], button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button], a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button] ", inputs: ["matButton"], exportAs: ["matButton", "matAnchor"] }, { kind: "ngmodule", type: MatButtonToggleModule }, { kind: "directive", type: i4.MatButtonToggleGroup, selector: "mat-button-toggle-group", inputs: ["appearance", "name", "vertical", "value", "multiple", "disabled", "disabledInteractive", "hideSingleSelectionIndicator", "hideMultipleSelectionIndicator"], outputs: ["valueChange", "change"], exportAs: ["matButtonToggleGroup"] }, { kind: "component", type: i4.MatButtonToggle, selector: "mat-button-toggle", inputs: ["aria-label", "aria-labelledby", "id", "name", "value", "tabIndex", "disableRipple", "appearance", "checked", "disabled", "disabledInteractive"], outputs: ["change"], exportAs: ["matButtonToggle"] }, { kind: "ngmodule", type: MatCheckboxModule }, { kind: "component", type: i5.MatCheckbox, selector: "mat-checkbox", inputs: ["aria-label", "aria-labelledby", "aria-describedby", "aria-expanded", "aria-controls", "aria-owns", "id", "required", "labelPosition", "name", "value", "disableRipple", "tabIndex", "color", "disabledInteractive", "checked", "disabled", "indeterminate"], outputs: ["change", "indeterminateChange"], exportAs: ["matCheckbox"] }, { kind: "ngmodule", type: MatTooltipModule }, { kind: "directive", type: i3.MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipPosition", "matTooltipPositionAtOrigin", "matTooltipDisabled", "matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }, { kind: "ngmodule", type: MatFormFieldModule }, { kind: "component", type: i3$1.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i3$1.MatLabel, selector: "mat-label" }, { kind: "directive", type: i3$1.MatHint, selector: "mat-hint", inputs: ["align", "id"] }, { kind: "directive", type: i3$1.MatError, selector: "mat-error, [matError]", inputs: ["id"] }, { kind: "directive", type: i3$1.MatSuffix, selector: "[matSuffix], [matIconSuffix], [matTextSuffix]", inputs: ["matTextSuffix"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i2$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatInputModule }, { kind: "directive", type: i4$1.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly", "disabledInteractive"], exportAs: ["matInput"] }, { kind: "ngmodule", type: MatSelectModule }, { kind: "component", type: i3$2.MatSelect, selector: "mat-select", inputs: ["aria-describedby", "panelClass", "disabled", "disableRipple", "tabIndex", "hideSingleSelectionIndicator", "placeholder", "required", "multiple", "disableOptionCentering", "compareWith", "value", "aria-label", "aria-labelledby", "errorStateMatcher", "typeaheadDebounceInterval", "sortComparator", "id", "panelWidth", "canSelectNullableOptions"], outputs: ["openedChange", "opened", "closed", "selectionChange", "valueChange"], exportAs: ["matSelect"] }, { kind: "component", type: i3$2.MatOption, selector: "mat-option", inputs: ["value", "id", "disabled"], outputs: ["onSelectionChange"], exportAs: ["matOption"] }, { kind: "component", type: SettingsSectionTabsComponent, selector: "praxis-settings-section-tabs", inputs: ["sections", "selectedId", "label", "invalidLabel", "panelId"], outputs: ["selectedIdChange"] }, { kind: "component", type: PraxisIconButtonComponent, selector: "button[praxisIconButton]", inputs: ["praxisIconButton", "size", "appearance", "presentation", "pressed", "busy"] }, { kind: "directive", type: PraxisIconDirective, selector: "mat-icon[praxisIcon]", inputs: ["praxisIcon"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
5978
|
+
`, isInline: true, styles: [":host{display:block;container:shell-editor / inline-size}.shell-effective-style{display:grid;gap:4px;margin:0;font-size:12px}.shell-effective-style span{color:var(--md-sys-color-on-surface-variant)}.shell-topic-panel,.shell-topic{display:grid;gap:var(--pfx-spacing-4, 16px)}.shell-topic-panel{padding-block:var(--pfx-spacing-4, 16px);min-width:0}.shell-topic-panel[hidden]{display:none}.shell-topic-panel>.shell-grid{margin-block-end:var(--pfx-spacing-4, 16px)}.shell-link-summary{display:grid;gap:var(--pfx-spacing-1, 4px);padding-block:var(--pfx-spacing-3, 12px);overflow-wrap:anywhere}.shell-button-task{display:grid;gap:var(--pfx-spacing-4, 16px);min-width:0}.shell-button-count{margin:0;font-size:14px}.shell-action-technical,.shell-action-scopes{min-width:0;font-size:12px}.shell-action-technical summary,.shell-action-scopes summary{cursor:pointer;padding-block:8px}.shell-action-technical summary:focus-visible,.shell-action-scopes summary:focus-visible{outline:2px solid var(--md-sys-color-primary);outline-offset:2px}.shell-action-contract{display:grid;grid-template-columns:auto minmax(0,1fr);gap:8px}.shell-action-contract dd{margin:0;overflow-wrap:anywhere}.shell-action-technical .shell-action-row{margin-top:12px}.shell-editor{display:grid;grid-template-columns:minmax(0,1fr);min-width:0;gap:20px;padding:12px 4px 20px}.shell-controls{display:grid;gap:var(--pfx-spacing-4, 16px);min-width:0;container:shell-controls / inline-size}.shell-preview-region{min-width:0}.shell-highlight-control{display:grid;gap:8px;min-width:0;grid-column:1 / -1}.shell-highlight-label{font-size:13px;font-weight:600}.shell-highlight-options{display:flex;flex-wrap:wrap;width:fit-content;max-width:100%}.shell-highlight-options mat-button-toggle{min-width:0}.shell-highlight-control p{margin:0;overflow-wrap:anywhere}@container shell-controls (max-width: 480px){.shell-controls .shell-grid,.shell-controls .shell-action-row,.shell-controls .shell-quick-inputs,.shell-controls .shell-available-item{grid-template-columns:minmax(0,1fr)}.shell-controls .shell-available-item>button{justify-self:start}}.shell-intro{margin:0;max-width:68ch;color:var(--md-sys-color-on-surface-variant);font-size:14px;line-height:1.5}.shell-details{border-top:1px solid var(--md-sys-color-outline-variant);padding-top:var(--pfx-spacing-4, 16px)}.shell-details summary{cursor:pointer;color:var(--md-sys-color-on-surface);font-weight:600;line-height:1.5}.shell-details summary:focus-visible{outline:2px solid var(--md-sys-color-primary);outline-offset:4px}.shell-option-content{display:grid;gap:var(--pfx-spacing-4, 16px);margin-top:var(--pfx-spacing-4, 16px);min-width:0}.shell-details>.shell-grid{margin-top:var(--pfx-spacing-4, 16px)}.shell-details>.shell-section{margin:var(--pfx-spacing-4, 16px) 0 var(--pfx-spacing-2, 8px)}.shell-validation{color:var(--md-sys-color-error);margin:0;line-height:1.5}.shell-section{margin:4px 0 -8px;color:var(--md-sys-color-on-surface);font-size:14px;font-weight:650;line-height:1.4}.shell-grid{display:grid;gap:12px 16px;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}.shell-field--wide{grid-column:1 / -1}.shell-preset-preview__body{display:grid;align-content:start;height:100%;color:var(--md-sys-color-on-surface-variant)}.shell-preset-preview__body .shell-mini-value,.shell-preset-preview__body .shell-mini-line{background:currentColor}.shell-preset-copy strong{display:flex;align-items:baseline;justify-content:space-between;gap:var(--pfx-spacing-2, 8px)}.shell-preset-check{color:var(--md-sys-color-primary);flex-shrink:0}.shell-preset-field,.shell-preset-copy{display:grid}.shell-preset-field{gap:8px}.shell-preset-label{color:var(--md-sys-color-on-surface);font-size:13px;font-weight:600}.shell-preset-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:10px}.shell-preset-option{min-width:0;display:grid;grid-template-columns:72px minmax(0,1fr);align-items:center;gap:10px;padding:10px;border:1px solid var(--md-sys-color-outline-variant);border-radius:12px;background:var(--md-sys-color-surface);color:var(--md-sys-color-on-surface);text-align:left;cursor:pointer}.shell-preset-option:hover{background:var(--md-sys-color-surface-container-low)}.shell-preset-option:focus-visible{outline:2px solid var(--md-sys-color-primary);outline-offset:2px}.shell-preset-option--selected{border-color:var(--md-sys-color-primary);box-shadow:0 0 0 1px var(--md-sys-color-primary)}.shell-preset-preview{box-sizing:border-box;display:block;height:64px;overflow:hidden;border:1px solid var(--md-sys-color-outline-variant);background:var(--shell-mini-bg, var(--md-sys-color-surface));-webkit-backdrop-filter:var(--shell-mini-filter, none);backdrop-filter:var(--shell-mini-filter, none)}@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))){.shell-preset-preview--backdrop{background:var(--shell-mini-fallback, var(--md-sys-color-surface))}}@media(prefers-reduced-transparency:reduce){.shell-preset-preview--backdrop{background:var(--shell-mini-fallback, var(--md-sys-color-surface));-webkit-backdrop-filter:none;backdrop-filter:none}}.shell-preset-preview__header{display:flex;align-items:center;gap:4px;padding-inline:8px;height:22px;border-bottom:1px solid transparent}.shell-preset-preview--none{border-style:dashed;border-radius:8px;background:transparent;box-shadow:none}.shell-preset-copy{gap:3px}.shell-preset-copy small{color:var(--md-sys-color-on-surface-variant);font-size:11px;line-height:1.35}.shell-flags{display:flex;gap:16px;align-items:center}.shell-actions-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.shell-available{display:grid;gap:12px}.shell-available-toolbar{display:grid;gap:12px;grid-template-columns:minmax(200px,1fr)}.shell-available-filters{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.shell-available-list{display:grid;gap:10px}.shell-available-item{display:grid;gap:8px;grid-template-columns:minmax(0,1fr) auto;border-bottom:1px solid var(--md-sys-color-outline-variant);padding-block:12px;align-items:start;min-width:0}.shell-available-main{min-width:0;overflow-wrap:anywhere}.shell-available-title{display:flex;align-items:center;gap:10px}.shell-available-text{display:grid;gap:4px}.shell-available-label{font-weight:600}.shell-available-meta{display:flex;gap:8px;flex-wrap:wrap;font-size:11px;color:var(--md-sys-color-on-surface-variant)}.shell-available-desc{font-size:12px;color:var(--md-sys-color-on-surface-variant)}.shell-available-payload{font-size:11px;color:var(--md-sys-color-on-surface-variant)}.shell-action-availability{font-size:12px;line-height:1.5;padding:8px 10px;border-inline-start:2px solid var(--md-sys-color-outline-variant);background:var(--md-sys-color-surface-container);color:var(--md-sys-color-on-surface-variant)}.shell-available-warning{font-size:11px;color:var(--md-sys-color-error)}.shell-available-actions{display:flex;align-items:flex-start;justify-content:flex-end}.shell-badge{padding:2px 6px;border-radius:999px;border:1px solid var(--md-sys-color-outline-variant);font-size:10px}.shell-code{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.shell-actions{display:grid;gap:12px}.shell-action{border-top:1px solid var(--md-sys-color-outline-variant);padding-block:16px;display:grid;gap:8px}.shell-action-row{display:grid;gap:12px;grid-template-columns:repeat(auto-fit,minmax(160px,1fr))}.shell-action-actions{display:flex;justify-content:flex-end}.shell-action-hint,.shell-empty{font-size:12px;color:var(--md-sys-color-on-surface-variant)}.shell-hint{margin:0;line-height:1.5;align-self:center;font-size:12px;color:var(--md-sys-color-on-surface-variant)}.shell-quick-inputs{display:grid;gap:12px;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));align-items:end}.shell-input-path{font-size:12px;color:var(--md-sys-color-on-surface-variant);align-self:center}.shell-editor .mat-mdc-form-field{width:100%;min-width:0}:host{display:block;min-width:0}.shell-editor>*,.shell-action>*{min-width:0}.shell-available-text,.shell-input-path{min-width:0;overflow-wrap:anywhere}.shell-preview-region{min-width:0;background:var(--md-sys-color-surface)}.shell-preview-content{display:grid;gap:12px;padding-top:12px}.shell-preview-heading{cursor:pointer;padding-block:8px}.shell-preview-heading:before{content:\"\\25b8\"}.shell-preview-region[open]>.shell-preview-heading:before{content:\"\\25be\"}.shell-preview-heading:focus-visible{outline:2px solid var(--md-sys-color-primary);outline-offset:2px}.shell-preview-heading,.shell-override-summary{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px}.shell-preview-heading strong{margin-right:auto;font-size:14px}.shell-preview-heading>span,.shell-override-summary{font-size:12px;color:var(--md-sys-color-on-surface-variant)}.shell-preview{padding:16px;background:var(--md-sys-color-surface-container-low);min-width:0}.shell-sample-content{display:grid;gap:8px}.shell-sample-content>span{font-size:12px;color:var(--md-sys-color-on-surface-variant)}.shell-sample-content strong{font-size:32px;line-height:1.15;font-variant-numeric:tabular-nums}.shell-mini-title,.shell-mini-action,.shell-mini-value,.shell-mini-line{display:block;background:var(--md-sys-color-on-surface-variant);opacity:.45;border-radius:2px}.shell-mini-title{width:24px;height:3px}.shell-mini-action{width:4px;height:4px;margin-left:auto}.shell-mini-value{width:20px;height:8px;margin:8px 8px 4px;opacity:.7}.shell-mini-line{width:32px;height:3px;margin-inline:8px}@media(max-width:640px){.shell-editor{padding-inline:0}.shell-grid,.shell-action-row,.shell-quick-inputs,.shell-available-toolbar{grid-template-columns:minmax(0,1fr)}.shell-actions-head,.shell-flags{flex-wrap:wrap}.shell-field--wide{grid-column:auto}}\n"], dependencies: [{ kind: "component", type: WidgetShellComponent, selector: "praxis-widget-shell", inputs: ["shell", "context", "dragSurfaceEnabled", "dragSurfaceLabel"], outputs: ["action", "dragSurfacePointerDown", "dragSurfaceKeydown"] }, { kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1$1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],[formArray],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1$1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "directive", type: i1$1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1$1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i2.MatButton, selector: " button[matButton], a[matButton], button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button], a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button] ", inputs: ["matButton"], exportAs: ["matButton", "matAnchor"] }, { kind: "ngmodule", type: MatButtonToggleModule }, { kind: "directive", type: i4.MatButtonToggleGroup, selector: "mat-button-toggle-group", inputs: ["appearance", "name", "vertical", "value", "multiple", "disabled", "disabledInteractive", "hideSingleSelectionIndicator", "hideMultipleSelectionIndicator"], outputs: ["valueChange", "change"], exportAs: ["matButtonToggleGroup"] }, { kind: "component", type: i4.MatButtonToggle, selector: "mat-button-toggle", inputs: ["aria-label", "aria-labelledby", "id", "name", "value", "tabIndex", "disableRipple", "appearance", "checked", "disabled", "disabledInteractive"], outputs: ["change"], exportAs: ["matButtonToggle"] }, { kind: "ngmodule", type: MatCheckboxModule }, { kind: "component", type: i5.MatCheckbox, selector: "mat-checkbox", inputs: ["aria-label", "aria-labelledby", "aria-describedby", "aria-expanded", "aria-controls", "aria-owns", "id", "required", "labelPosition", "name", "value", "disableRipple", "tabIndex", "color", "disabledInteractive", "checked", "disabled", "indeterminate"], outputs: ["change", "indeterminateChange"], exportAs: ["matCheckbox"] }, { kind: "ngmodule", type: MatTooltipModule }, { kind: "directive", type: i3.MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipPosition", "matTooltipPositionAtOrigin", "matTooltipDisabled", "matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }, { kind: "ngmodule", type: MatFormFieldModule }, { kind: "component", type: i5$1.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i5$1.MatLabel, selector: "mat-label" }, { kind: "directive", type: i5$1.MatHint, selector: "mat-hint", inputs: ["align", "id"] }, { kind: "directive", type: i5$1.MatError, selector: "mat-error, [matError]", inputs: ["id"] }, { kind: "directive", type: i5$1.MatSuffix, selector: "[matSuffix], [matIconSuffix], [matTextSuffix]", inputs: ["matTextSuffix"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i2$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatInputModule }, { kind: "directive", type: i9.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly", "disabledInteractive"], exportAs: ["matInput"] }, { kind: "ngmodule", type: MatSelectModule }, { kind: "component", type: i3$1.MatSelect, selector: "mat-select", inputs: ["aria-describedby", "panelClass", "disabled", "disableRipple", "tabIndex", "hideSingleSelectionIndicator", "placeholder", "required", "multiple", "disableOptionCentering", "compareWith", "value", "aria-label", "aria-labelledby", "errorStateMatcher", "typeaheadDebounceInterval", "sortComparator", "id", "panelWidth", "canSelectNullableOptions"], outputs: ["openedChange", "opened", "closed", "selectionChange", "valueChange"], exportAs: ["matSelect"] }, { kind: "component", type: i3$1.MatOption, selector: "mat-option", inputs: ["value", "id", "disabled"], outputs: ["onSelectionChange"], exportAs: ["matOption"] }, { kind: "component", type: SettingsSectionTabsComponent, selector: "praxis-settings-section-tabs", inputs: ["sections", "selectedId", "label", "invalidLabel", "panelId"], outputs: ["selectedIdChange"] }, { kind: "component", type: PraxisIconButtonComponent, selector: "button[praxisIconButton]", inputs: ["praxisIconButton", "size", "appearance", "presentation", "pressed", "busy"] }, { kind: "directive", type: PraxisIconDirective, selector: "mat-icon[praxisIcon]", inputs: ["praxisIcon"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
5867
5979
|
}
|
|
5868
5980
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImport: i0, type: WidgetShellEditorComponent, decorators: [{
|
|
5869
5981
|
type: Component,
|
|
@@ -5898,6 +6010,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
|
|
|
5898
6010
|
<div [id]="topicPanelId" [attr.role]="sectionsHosted ? null : 'tabpanel'" [attr.aria-label]="sectionsHosted ? null : currentTopicLabel()">
|
|
5899
6011
|
<div class="shell-topic-panel" [hidden]="currentTopic() !== 'header'">
|
|
5900
6012
|
@if (canEditShellIdentity() && currentTopic() === 'header') {
|
|
6013
|
+
@if (isFramelessLocked) {
|
|
6014
|
+
<p class="shell-hint" role="status" data-testid="widget-shell-frameless-locked-notice">{{ shellText('framelessLockedNotice') }}</p>
|
|
6015
|
+
}
|
|
5901
6016
|
<h3 class="shell-section">{{ shellText('identityTitle') }}</h3>
|
|
5902
6017
|
<div class="shell-grid" data-testid="widget-shell-identity">
|
|
5903
6018
|
<mat-form-field class="shell-field--wide" appearance="outline" subscriptSizing="dynamic">
|
|
@@ -5919,6 +6034,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
|
|
|
5919
6034
|
<mat-option value="dashboard-card">{{ shellText('kindCard') }}</mat-option>
|
|
5920
6035
|
<mat-option value="none">{{ shellText('kindNone') }}</mat-option>
|
|
5921
6036
|
</mat-select>
|
|
6037
|
+
@if (isShellKindLocked) {
|
|
6038
|
+
<mat-hint data-testid="widget-shell-kind-locked-hint">{{ shellText('lockedKindHint') }}</mat-hint>
|
|
6039
|
+
}
|
|
5922
6040
|
</mat-form-field>
|
|
5923
6041
|
<mat-form-field appearance="outline">
|
|
5924
6042
|
<mat-label>{{ shellText('icon') }}</mat-label>
|
|
@@ -5935,6 +6053,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
|
|
|
5935
6053
|
<mat-option value="true">{{ shellText('always') }}</mat-option>
|
|
5936
6054
|
<mat-option value="false">{{ shellText('never') }}</mat-option>
|
|
5937
6055
|
</mat-select>
|
|
6056
|
+
@if (isShellKindLocked) {
|
|
6057
|
+
<mat-hint data-testid="widget-shell-header-locked-hint">{{ shellText('lockedKindHint') }}</mat-hint>
|
|
6058
|
+
}
|
|
5938
6059
|
</mat-form-field>
|
|
5939
6060
|
<mat-checkbox [formControl]="form.controls.stickyHeader">
|
|
5940
6061
|
{{ stickyHeaderLabel() }}
|
|
@@ -5949,6 +6070,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
|
|
|
5949
6070
|
@if (canEditShellIdentity()) {
|
|
5950
6071
|
<div class="shell-grid">
|
|
5951
6072
|
<div class="shell-preset-field shell-field--wide">
|
|
6073
|
+
@if (isFramelessLocked && currentTopic() === 'styles') {
|
|
6074
|
+
<p class="shell-hint" role="status" data-testid="widget-shell-frameless-locked-notice">{{ shellText('framelessLockedNotice') }}</p>
|
|
6075
|
+
}
|
|
5952
6076
|
<span class="shell-preset-label">{{ presetTitle() }}</span>
|
|
5953
6077
|
<p class="shell-hint">{{ shellText('presetHint') }}</p>
|
|
5954
6078
|
<p class="shell-effective-style" role="status" data-testid="widget-shell-effective-style">
|
|
@@ -5961,6 +6085,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
|
|
|
5961
6085
|
<button
|
|
5962
6086
|
type="button"
|
|
5963
6087
|
class="shell-preset-option"
|
|
6088
|
+
[disabled]="isFramelessLocked"
|
|
5964
6089
|
[class.shell-preset-option--selected]="!form.controls.preset.value"
|
|
5965
6090
|
[attr.aria-pressed]="!form.controls.preset.value"
|
|
5966
6091
|
(click)="selectPreset('')"
|
|
@@ -5975,6 +6100,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
|
|
|
5975
6100
|
<button
|
|
5976
6101
|
type="button"
|
|
5977
6102
|
class="shell-preset-option"
|
|
6103
|
+
[disabled]="isFramelessLocked"
|
|
5978
6104
|
[class.shell-preset-option--selected]="form.controls.preset.value === p.id"
|
|
5979
6105
|
[attr.aria-pressed]="form.controls.preset.value === p.id"
|
|
5980
6106
|
(click)="selectPreset(p.id)"
|
|
@@ -6116,6 +6242,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
|
|
|
6116
6242
|
</div>
|
|
6117
6243
|
<div class="shell-topic-panel" [hidden]="currentTopic() !== 'appearance'">
|
|
6118
6244
|
@if (canEditShellAppearance()) {
|
|
6245
|
+
@if (isFramelessLocked && currentTopic() === 'appearance') {
|
|
6246
|
+
<p class="shell-hint" role="status" data-testid="widget-shell-frameless-locked-notice">{{ shellText('framelessLockedNotice') }}</p>
|
|
6247
|
+
}
|
|
6119
6248
|
@if (hasAppearanceErrors()) {
|
|
6120
6249
|
<p class="shell-validation" role="alert">{{ shellText('advancedErrors') }}</p>
|
|
6121
6250
|
}
|
|
@@ -16944,7 +17073,7 @@ class DynamicPageConfigEditorComponent {
|
|
|
16944
17073
|
if (!target)
|
|
16945
17074
|
return false;
|
|
16946
17075
|
const targetTitle = this.resolveWidgetTitle(target, widgets);
|
|
16947
|
-
target.definition = target.definition || { id: target.componentId || 'praxis-
|
|
17076
|
+
target.definition = target.definition || { id: target.componentId || 'praxis-kpi-card' };
|
|
16948
17077
|
const inputs = this.isPlainObject(target.definition.inputs)
|
|
16949
17078
|
? { ...target.definition.inputs }
|
|
16950
17079
|
: this.isPlainObject(target.inputs)
|
|
@@ -17483,33 +17612,142 @@ class DynamicPageConfigEditorComponent {
|
|
|
17483
17612
|
currentRow += 1;
|
|
17484
17613
|
}
|
|
17485
17614
|
if (includeIndicators) {
|
|
17486
|
-
const
|
|
17487
|
-
|
|
17488
|
-
|
|
17489
|
-
|
|
17490
|
-
|
|
17491
|
-
|
|
17492
|
-
|
|
17493
|
-
|
|
17494
|
-
|
|
17495
|
-
|
|
17496
|
-
|
|
17497
|
-
|
|
17498
|
-
|
|
17499
|
-
|
|
17615
|
+
const kpiStripKey = 'collection-kpis';
|
|
17616
|
+
const mappings = this.resolveGroupByMappings(groupField);
|
|
17617
|
+
const activeNumeratorKeys = Object.entries(mappings)
|
|
17618
|
+
.filter(([, target]) => target === 'active')
|
|
17619
|
+
.map(([key]) => key);
|
|
17620
|
+
const numeratorKeys = activeNumeratorKeys.length > 0 ? activeNumeratorKeys : ['true', 'ATIVO', 'ACTIVE'];
|
|
17621
|
+
const kpiStripConfig = {
|
|
17622
|
+
schemaVersion: 1,
|
|
17623
|
+
columns: 3,
|
|
17624
|
+
density: 'comfortable',
|
|
17625
|
+
cards: [
|
|
17626
|
+
{
|
|
17627
|
+
schemaVersion: 1,
|
|
17628
|
+
id: 'kpi-total',
|
|
17629
|
+
presentation: {
|
|
17630
|
+
label: 'Total de registros',
|
|
17631
|
+
icon: 'analytics',
|
|
17632
|
+
tone: 'primary',
|
|
17633
|
+
format: 'integer',
|
|
17634
|
+
polarity: 'neutral',
|
|
17635
|
+
},
|
|
17636
|
+
source: {
|
|
17637
|
+
kind: 'stats-query',
|
|
17638
|
+
resourcePath,
|
|
17639
|
+
operation: 'group-by',
|
|
17640
|
+
request: {
|
|
17641
|
+
field: groupField,
|
|
17642
|
+
metric: { operation: 'COUNT', alias: 'total' },
|
|
17643
|
+
},
|
|
17644
|
+
},
|
|
17645
|
+
derivation: {
|
|
17646
|
+
kind: 'scalar',
|
|
17647
|
+
metricAlias: 'total',
|
|
17648
|
+
aggregation: 'total',
|
|
17649
|
+
},
|
|
17650
|
+
visualization: {
|
|
17651
|
+
kind: 'none',
|
|
17500
17652
|
},
|
|
17501
17653
|
},
|
|
17502
|
-
|
|
17503
|
-
|
|
17504
|
-
|
|
17654
|
+
{
|
|
17655
|
+
schemaVersion: 1,
|
|
17656
|
+
id: 'kpi-active-rate',
|
|
17657
|
+
presentation: {
|
|
17658
|
+
label: 'Taxa de ativação',
|
|
17659
|
+
icon: 'verified',
|
|
17660
|
+
tone: 'success',
|
|
17661
|
+
format: 'percent',
|
|
17662
|
+
decimals: 1,
|
|
17663
|
+
polarity: 'higher-is-better',
|
|
17664
|
+
badgeTemplate: 'fraction',
|
|
17665
|
+
},
|
|
17666
|
+
source: {
|
|
17667
|
+
kind: 'stats-query',
|
|
17668
|
+
resourcePath,
|
|
17669
|
+
operation: 'group-by',
|
|
17670
|
+
request: {
|
|
17671
|
+
field: groupField,
|
|
17672
|
+
metric: { operation: 'COUNT', alias: 'total' },
|
|
17673
|
+
},
|
|
17674
|
+
},
|
|
17675
|
+
derivation: {
|
|
17676
|
+
kind: 'ratio',
|
|
17677
|
+
metricAlias: 'total',
|
|
17678
|
+
numeratorKeys,
|
|
17679
|
+
denominatorMode: 'population-total',
|
|
17680
|
+
},
|
|
17681
|
+
visualization: {
|
|
17682
|
+
kind: 'bullet',
|
|
17683
|
+
target: 85,
|
|
17684
|
+
scaleMode: 'fixed-100',
|
|
17685
|
+
thresholds: [
|
|
17686
|
+
{ max: 70, tone: 'warning' },
|
|
17687
|
+
{ max: 85, tone: 'info' },
|
|
17688
|
+
{ max: 100, tone: 'success' },
|
|
17689
|
+
],
|
|
17690
|
+
},
|
|
17691
|
+
},
|
|
17692
|
+
{
|
|
17693
|
+
schemaVersion: 1,
|
|
17694
|
+
id: 'kpi-composition',
|
|
17695
|
+
presentation: {
|
|
17696
|
+
label: `Distribuição por ${groupField}`,
|
|
17697
|
+
icon: 'donut_small',
|
|
17698
|
+
tone: 'info',
|
|
17699
|
+
format: 'integer',
|
|
17700
|
+
polarity: 'neutral',
|
|
17701
|
+
},
|
|
17702
|
+
source: {
|
|
17703
|
+
kind: 'stats-query',
|
|
17704
|
+
resourcePath,
|
|
17705
|
+
operation: 'group-by',
|
|
17706
|
+
request: {
|
|
17707
|
+
field: groupField,
|
|
17708
|
+
metric: { operation: 'COUNT', alias: 'total' },
|
|
17709
|
+
},
|
|
17710
|
+
},
|
|
17711
|
+
derivation: {
|
|
17712
|
+
kind: 'composition',
|
|
17713
|
+
metricAlias: 'total',
|
|
17714
|
+
maxVisible: 4,
|
|
17715
|
+
unmatchedPolicy: 'group-as-other',
|
|
17716
|
+
headlineMode: 'total',
|
|
17717
|
+
},
|
|
17718
|
+
visualization: {
|
|
17719
|
+
kind: 'stackedBar',
|
|
17720
|
+
showLegend: true,
|
|
17721
|
+
},
|
|
17722
|
+
},
|
|
17723
|
+
],
|
|
17724
|
+
};
|
|
17725
|
+
widgets.push({
|
|
17726
|
+
key: kpiStripKey,
|
|
17727
|
+
shell: { title: 'Indicadores' },
|
|
17728
|
+
definition: {
|
|
17729
|
+
id: 'praxis-kpi-strip',
|
|
17730
|
+
inputs: {
|
|
17731
|
+
scopeKey: kpiStripKey,
|
|
17732
|
+
config: kpiStripConfig,
|
|
17733
|
+
},
|
|
17734
|
+
},
|
|
17735
|
+
});
|
|
17736
|
+
canvasItems[kpiStripKey] = {
|
|
17737
|
+
col: 1,
|
|
17738
|
+
row: currentRow,
|
|
17739
|
+
colSpan: 12,
|
|
17740
|
+
rowSpan: 2,
|
|
17741
|
+
contentSize: 'auto',
|
|
17742
|
+
};
|
|
17505
17743
|
grouping.push({
|
|
17506
17744
|
kind: 'section',
|
|
17507
17745
|
id: 'kpi-indicators',
|
|
17508
17746
|
label: 'Indicadores',
|
|
17509
|
-
layout: '
|
|
17510
|
-
widgetKeys:
|
|
17747
|
+
layout: 'row',
|
|
17748
|
+
widgetKeys: [kpiStripKey],
|
|
17511
17749
|
});
|
|
17512
|
-
currentRow +=
|
|
17750
|
+
currentRow += 2;
|
|
17513
17751
|
}
|
|
17514
17752
|
const collectionKey = collectionKind === 'list' ? 'collection-list' : 'collection-table';
|
|
17515
17753
|
const links = [];
|
|
@@ -18835,7 +19073,7 @@ class DynamicPageConfigEditorComponent {
|
|
|
18835
19073
|
clone(value) { if (value == null || typeof value !== 'object')
|
|
18836
19074
|
return value; return JSON.parse(JSON.stringify(value)); }
|
|
18837
19075
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.14", ngImport: i0, type: DynamicPageConfigEditorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
18838
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.14", type: DynamicPageConfigEditorComponent, isStandalone: true, selector: "praxis-dynamic-page-config-editor", inputs: { page: "page", layout: "layout", presets: "presets", pagePreset: "pagePreset" }, outputs: { pageChange: "pageChange" }, host: { listeners: { "window:resize": "refreshRenderedValidation()" } }, providers: [providePraxisPageBuilderI18n()], viewQueries: [{ propertyName: "arrangementFeedback", first: true, predicate: ["arrangementFeedback"], descendants: true }], ngImport: i0, template: "<div class=\"editor\">\n @if (!isHostedInSettingsPanel) { <div class=\"head\">\n <div>{{ tx('editor.title', 'Page settings') }}</div>\n <button mat-stroked-button type=\"button\" (click)=\"reset()\">{{ tx('editor.reload', 'Reload') }}</button>\n </div> }\n\n @if (nonLimitError) { <p class=\"limits-error\" role=\"alert\">{{ nonLimitError }}</p> }\n @if (limitsError() || previousAdjustableHeights().length) {\n <section class=\"card limits-blocking-banner\" role=\"region\" [attr.aria-label]=\"tx('editor.limits.blockedBannerTitle', 'Height geometry requires review in Widget limits')\" data-testid=\"preset-geometry-blocking-banner\">\n @if (limitsError()) {\n <div class=\"head\">\n <strong>{{ tx('editor.limits.blockedBannerTitle', 'Height geometry requires review in Widget limits') }}</strong>\n </div>\n <p class=\"hint\">{{ tx('editor.limits.blockedBannerHelp', 'One or more widgets use an adjustable pixel height that exceeds the current usable area or requires review before applying the page or template:') }}</p>\n <ul class=\"blocked-widgets-list\">\n @for (item of blockedGeometryWidgets; track item.scope + ':' + item.key) {\n <li>\n <strong>{{ item.title }}</strong>\n @if (item.title !== item.key && !item.title.endsWith('(' + item.key + ')')) { <code>({{ item.key }})</code> }\n <span> \u00B7 {{ item.scopeLabel }}</span>\n @if (item.heightPx !== null) {\n <span> \u00B7 {{ tx('editor.height.fixed', 'Adjustable') }}: <strong>{{ item.heightPx }}px</strong></span>\n }\n </li>\n }\n </ul>\n <p class=\"limits-error\" role=\"alert\">{{ limitsError() }}</p>\n <div class=\"head\">\n <button mat-stroked-button type=\"button\" data-testid=\"goto-blocked-widget-limits\" (click)=\"navigateToBlockedLimit()\">\n <mat-icon aria-hidden=\"true\">tune</mat-icon>{{ tx('editor.limits.gotoLimitsAction', 'Go to Adjustments \u2192 Widget limits') }}\n </button>\n <button mat-flat-button type=\"button\" data-testid=\"switch-blocked-widgets-auto-height\" (click)=\"switchBlockedWidgetsToAutoHeight()\">\n <mat-icon aria-hidden=\"true\">height</mat-icon>{{ tx('editor.limits.switchToAutoHeightAction', 'Switch affected widgets to Automatic height') }}\n </button>\n </div>\n }\n @if (previousAdjustableHeights().length) {\n <div class=\"previous-heights-summary\" data-testid=\"previous-adjustable-heights-summary\">\n <span>{{ tx('editor.limits.previousHeightsSummary', 'Previous adjustable heights preserved for reference:') }}</span>\n @for (prev of previousAdjustableHeights(); track prev.scope + ':' + prev.key) {\n <span class=\"previous-height-chip\">{{ prev.title }} ({{ prev.scopeLabel }}): <strong>{{ prev.heightPx }}px</strong></span>\n }\n </div>\n }\n </section>\n }\n <mat-tab-group class=\"editor-tabs studio-tabs\" [mat-stretch-tabs]=\"false\" [selectedIndex]=\"workspaceTab()\" (selectedIndexChange)=\"workspaceTab.set($event)\">\n <mat-tab [label]=\"tx('studio.visualTab', 'Visual templates')\"><ng-template matTabContent>\n <section class=\"studio-panel\" data-testid=\"studio-visual\">\n <header class=\"studio-heading\"><span class=\"eyebrow\">{{ tx('studio.visualEyebrow', 'Appearance') }}</span><h2>{{ tx('studio.visualTitle', 'Give the page a visual language') }}</h2><p>{{ tx('studio.visualHelp', 'Choose surfaces, density and chart styling together. Individual widget overrides still take precedence.') }}</p></header>\n <button mat-stroked-button type=\"button\" [attr.aria-pressed]=\"!themePresetControl.value\" (click)=\"themePresetControl.setValue('')\">{{ tx('editor.layout.layoutDefault', 'Layout default') }}</button>\n <p class=\"selection-line\">{{ tx('presets.effectiveTheme', 'Effective page theme') }}: <strong>{{ selectedThemePresetEntry?.label || themePresetControl.value || globalThemePresetEntry?.label || recommendedThemePresetEntry?.label || tx('presets.hostTheme', 'Host theme') }}@if (!themePresetControl.value && globalThemePresetEntry) { ({{ tx('editor.fallback.global', 'global') }}) }</strong></p>\n <div class=\"studio-gallery\">\n @for (theme of themePresetEntries; track theme.id) {\n <button type=\"button\" class=\"studio-choice\" [class.selected]=\"themePresetControl.value === theme.id\" [attr.aria-pressed]=\"themePresetControl.value === theme.id\" [attr.data-theme-preset]=\"theme.id\" (click)=\"themePresetControl.setValue(theme.id)\">\n <span class=\"theme-sample\" aria-hidden=\"true\" [style.background]=\"themeTokens(theme.id)['--pdx-page-bg']\" [style.--sample-accent]=\"themeTokens(theme.id)['--pdx-page-accent']\" [style.--sample-surface]=\"themeTokens(theme.id)['--pdx-page-surface']\" [style.--sample-radius]=\"themeTokens(theme.id)['--pdx-page-card-radius']\" [style.--sample-shadow]=\"themeTokens(theme.id)['--pdx-page-card-shadow']\" [style.gap]=\"themeTokens(theme.id)['--pdx-page-gap']\">\n <span class=\"sample-metric\"><b>128</b><i></i></span><span class=\"sample-metric\"><b>86%</b><i></i></span><span class=\"sample-chart\"><i></i><i></i><i></i><i></i><i></i></span>\n </span>\n <span class=\"choice-title\">{{ theme.label }}@if (themePresetControl.value === theme.id) {<mat-icon aria-hidden=\"true\">check_circle</mat-icon>}</span>\n <span class=\"choice-description\">{{ tx('studio.theme.' + theme.id, theme.label) }}</span>\n <span class=\"choice-meta\">{{ tx('studio.density.' + theme.density, theme.density) }} \u00B7 {{ shellName(theme.shellPreset) }}</span>\n </button>\n }\n </div>\n <p class=\"hint\">{{ tx('studio.samplesHelp', 'Illustrative samples using the preset tokens. Apply to see the result with your content.') }}</p>\n <details class=\"shell-options\"><summary>{{ tx('studio.shellTitle', 'Customize widget surfaces') }} \u00B7 {{ shellPresetEntries.length }}</summary>\n <p>{{ tx('studio.shellHelp', 'Override the page theme\u2019s default widget surface. Per-widget appearance settings keep their priority.') }}</p>\n <button mat-stroked-button type=\"button\" [attr.aria-pressed]=\"!shellPresetControl.value\" (click)=\"shellPresetControl.setValue('')\">{{ tx('editor.layout.inheritShell', 'Inherit appearance') }}</button>\n <div class=\"studio-gallery shell-gallery\">@for (shell of shellPresetEntries; track shell.id) {\n <button type=\"button\" class=\"studio-choice\" [class.selected]=\"shellPresetControl.value === shell.id\" [attr.aria-pressed]=\"shellPresetControl.value === shell.id\" (click)=\"shellPresetControl.setValue(shell.id)\">\n <span class=\"shell-sample\" aria-hidden=\"true\" [style.background]=\"shell.appearance.card?.background\" [style.border-color]=\"shell.appearance.card?.borderColor\" [style.border-radius]=\"shell.appearance.card?.borderRadius\" [style.box-shadow]=\"shell.appearance.card?.shadow\"><span [style.background]=\"shell.appearance.header?.background\" [style.border-color]=\"shell.appearance.header?.borderColor\"><mat-icon>analytics</mat-icon><i></i></span><span [style.background]=\"shell.appearance.body?.background\"><i></i><i></i></span></span>\n <span class=\"choice-title\">{{ shellPresetLabel(shell) }}@if (shellPresetControl.value === shell.id) {<mat-icon aria-hidden=\"true\">check_circle</mat-icon>}</span><span class=\"choice-description\">{{ shellDescription(shell) }}</span>\n </button>\n }</div>\n </details>\n </section>\n </ng-template></mat-tab>\n <mat-tab [label]=\"tx('studio.layoutTab', 'Layout templates')\"><ng-template matTabContent>\n <section class=\"studio-panel\" data-testid=\"studio-layout\">\n <header class=\"studio-heading\"><span class=\"eyebrow\">{{ tx('studio.layoutEyebrow', 'Composition model') }}</span><h2>{{ tx('studio.layoutTitle', 'Choose the structure for your use case') }}</h2><p>{{ tx('studio.layoutHelp', 'Compare the roles and default theme of each model. To redistribute the widgets already on this canvas, open Arrange.') }}</p></header>\n @if (duplicateFilterOwners().length) {\n <section class=\"card filter-owner-banner\" role=\"region\" [attr.aria-label]=\"tx('studio.filterOwnerBannerTitle', 'Duplicate filter region detected')\" data-testid=\"duplicate-filter-owner-banner\">\n <div class=\"head\">\n <strong>{{ tx('studio.filterOwnerBannerTitle', 'Single filter region recommendation') }}</strong>\n </div>\n <p class=\"hint\">{{ tx('studio.filterOwnerBannerHelp', 'A table has both its integrated filter bar and an external filter link active. Choose a single query owner to avoid competing filter regions:') }}</p>\n @for (item of duplicateFilterOwners(); track item.tableKey) {\n <div class=\"filter-owner-item\" [attr.data-testid]=\"'duplicate-filter-owner-' + item.tableKey\">\n <span><strong>{{ item.tableTitle }}</strong> <code>({{ item.tableKey }})</code> \u2190 {{ item.externalSourceLabels.join(', ') }}</span>\n <div class=\"studio-actions\">\n <button mat-stroked-button type=\"button\" [attr.data-testid]=\"'consolidate-filter-table-toolbar-' + item.tableKey\" (click)=\"consolidateFilterOwnership(item.tableKey, 'keep-table-toolbar')\">\n {{ tx('studio.keepTableToolbarFilter', 'Use integrated table filter') }}\n </button>\n <button mat-stroked-button type=\"button\" [attr.data-testid]=\"'consolidate-filter-external-link-' + item.tableKey\" (click)=\"consolidateFilterOwnership(item.tableKey, 'keep-external-link')\">\n {{ tx('studio.keepExternalFilterLink', 'Use external filter bar') }}\n </button>\n </div>\n </div>\n }\n </section>\n }\n <details class=\"card composer-card\" data-testid=\"collection-screen-composer\">\n <summary>{{ tx('studio.composer.title', 'Guided collection screen composer (5-minute flow)') }}</summary>\n <p class=\"hint\">{{ tx('studio.composer.help', 'Assemble a complete collection screen with header, KPI indicators, single filter region, primary collection, and optional detail surface in the draft.') }}</p>\n <div class=\"grid\">\n <praxis-resource-quick-connect\n [formControl]=\"composerResourcePathControl\"\n intent=\"collection\"\n [label]=\"tx('studio.composer.resourcePath', 'Resource path')\"\n (resourceSelected)=\"onComposerResourceSelected($event)\"\n data-testid=\"composer-resource-path\"\n />\n <mat-form-field appearance=\"outline\">\n <mat-label>{{ tx('studio.composer.screenTitle', 'Screen title') }}</mat-label>\n <input matInput [formControl]=\"composerTitleControl\" data-testid=\"composer-title\" />\n </mat-form-field>\n <mat-form-field appearance=\"outline\">\n <mat-label>{{ tx('studio.composer.groupField', 'KPI group-by field') }}</mat-label>\n <input\n matInput\n [formControl]=\"composerGroupFieldControl\"\n [matAutocomplete]=\"composerGroupFieldPicker\"\n data-testid=\"composer-group-field\"\n />\n <mat-autocomplete\n #composerGroupFieldPicker=\"matAutocomplete\"\n (optionSelected)=\"composerGroupFieldControl.markAsPristine()\"\n >\n @for (field of filteredComposerGroupFieldOptions(); track field.name) {\n <mat-option [value]=\"field.name\" [attr.data-testid]=\"'composer-group-field-option-' + field.name\">\n <div class=\"composer-rich-field-option\">\n <div class=\"composer-rich-field-option__header\">\n <span class=\"composer-rich-field-option__label\">{{ field.label || field.name }}</span>\n @if (field.label && field.label !== field.name) {\n <code class=\"composer-rich-field-option__code\">{{ field.name }}</code>\n }\n @if (getComposerFieldTypeBadge(field); as badge) {\n <span class=\"composer-rich-field-option__badge\">{{ badge }}</span>\n }\n </div>\n @if (getComposerFieldDescription(field); as desc) {\n <span class=\"composer-rich-field-option__desc\">{{ desc }}</span>\n }\n </div>\n </mat-option>\n }\n </mat-autocomplete>\n @if (composerSelectedResource()?.capabilities?.stats === false) {\n <mat-hint data-testid=\"composer-stats-unsupported-hint\">{{ tx('studio.composer.statsUnsupportedHint', 'This resource does not publish stats/group-by aggregation; summary indicators were disabled automatically.') }}</mat-hint>\n } @else {\n <mat-hint>{{ tx('studio.composer.groupFieldHint', 'Choose the boolean or categorical field used in summary indicators.') }}</mat-hint>\n }\n </mat-form-field>\n <mat-form-field appearance=\"outline\">\n <mat-label>{{ tx('studio.composer.filterMode', 'Query filter owner') }}</mat-label>\n <mat-select [formControl]=\"composerFilterModeControl\" data-testid=\"composer-filter-mode\">\n <mat-option value=\"table-integrated\">{{ tx('studio.composer.filterIntegrated', 'Integrated table toolbar') }}</mat-option>\n <mat-option value=\"external-filter-bar\">{{ tx('studio.composer.filterExternal', 'Dedicated filter bar widget') }}</mat-option>\n </mat-select>\n </mat-form-field>\n <mat-form-field appearance=\"outline\">\n <mat-label>{{ tx('studio.composer.collectionKind', 'Primary collection') }}</mat-label>\n <mat-select [formControl]=\"composerCollectionKindControl\" data-testid=\"composer-collection-kind\">\n <mat-option value=\"table\">praxis-Table</mat-option>\n <mat-option value=\"list\">praxis-List</mat-option>\n </mat-select>\n </mat-form-field>\n <mat-form-field appearance=\"outline\">\n <mat-label>{{ tx('studio.composer.detailSurface', 'Secondary detail surface') }}</mat-label>\n <mat-select [formControl]=\"composerDetailSurfaceControl\" data-testid=\"composer-detail-surface\">\n <mat-option value=\"drawer\">Drawer</mat-option>\n <mat-option value=\"modal\">Modal</mat-option>\n <mat-option value=\"none\">{{ tx('studio.composer.noSurface', 'None') }}</mat-option>\n </mat-select>\n </mat-form-field>\n </div>\n <div class=\"studio-actions\">\n <button mat-flat-button type=\"button\" data-testid=\"composer-generate-btn\" (click)=\"composeCollectionScreen()\">\n <mat-icon aria-hidden=\"true\">auto_awesome</mat-icon>{{ tx('studio.composer.generate', 'Generate collection screen in draft') }}\n </button>\n </div>\n @if (composerMessage()) {\n <p class=\"studio-status\" role=\"status\" data-testid=\"composer-status-message\">{{ composerMessage() }}</p>\n }\n </details>\n <div class=\"studio-actions\"><button mat-stroked-button type=\"button\" [attr.aria-pressed]=\"!layoutPresetControl.value\" (click)=\"layoutPresetControl.setValue('')\">{{ tx('studio.inheritLayout', 'Use inherited model') }}</button><button mat-button type=\"button\" (click)=\"workspaceTab.set(2)\">{{ tx('studio.goArrange', 'Arrange existing widgets') }}<mat-icon iconPositionEnd>arrow_forward</mat-icon></button></div>\n @if (!layoutPresetControl.value && selectedLayoutPresetEntry) {\n <p class=\"selection-line\">{{ tx('presets.inheritedLayout', 'Inherited organization') }}: <strong>{{ tx('presets.layout.' + selectedLayoutPresetEntry.id, selectedLayoutPresetEntry.label) }}@if (!layoutPresetOptions?.presetFamily && globalPageDefaults?.layoutPreset) { ({{ tx('editor.fallback.global', 'global') }}) }</strong></p>\n }\n <praxis-page-preset-comparison [expanded]=\"true\" [layoutId]=\"layoutPresetControl.value || globalPageDefaults?.layoutPreset || ''\" [layoutPresetOptions]=\"layoutPresetOptions\" [themeId]=\"themePresetControl.value || globalPageDefaults?.themePreset || ''\" [canvas]=\"true\" (choose)=\"layoutPresetControl.setValue($event)\" />\n </section>\n </ng-template></mat-tab>\n <mat-tab [label]=\"tx('studio.arrangeTab', 'Arrange')\"><ng-template matTabContent>\n <section class=\"studio-panel\" data-testid=\"canvas-arrangement\">\n <header class=\"studio-heading\"><span class=\"eyebrow\">{{ tx('studio.arrangeEyebrow', 'Existing widgets') }} \u00B7 {{ canvasColumnsControl.value }} {{ tx('editor.layout.cols', 'Columns') }}</span><h2>{{ tx('studio.arrangeTitle', 'Find the right balance of space') }}</h2><p>{{ tx('studio.arrangeHelp', 'Choose a distribution, compare the real positions, then use it in the draft. Widgets keep their reading order and content.') }}</p></header>\n <div #arrangementFeedback tabindex=\"-1\" class=\"arrangement-feedback\">\n @if (arrangementPreview(); as preview) {\n <section class=\"arrangement-review\" aria-live=\"polite\" data-testid=\"arrangement-preview\">\n <div class=\"review-heading\"><h3>{{ tx('studio.reviewTitle', 'Compare before using') }}</h3><span>{{ preview.keys.length }} {{ tx('studio.changedWidgets', 'widgets change') }}</span></div>\n <div class=\"canvas-comparison\">\n @for (side of ['before', 'after']; track side) {\n <figure><figcaption>{{ side === 'before' ? tx('studio.before', 'Before') : tx('studio.after', 'After') }}</figcaption>\n <div class=\"canvas-map\" [style.grid-template-columns]=\"'repeat(' + preview.canvas.columns + ', minmax(0, 1fr))'\" [style.grid-template-rows]=\"'repeat(' + previewRowCount(preview.before, preview.canvas) + ', minmax(0, 1fr))'\" role=\"img\" [attr.aria-label]=\"side === 'before' ? tx('studio.before', 'Before') : tx('studio.after', 'After')\">\n @for (item of previewItems(side === 'before' ? preview.before : preview.canvas); track item.key) {\n <span [style.grid-column]=\"item.col + ' / span ' + item.colSpan\" [style.grid-row]=\"item.row + ' / span ' + item.rowSpan\" [class.changed]=\"preview.keys.includes(item.key)\" [matTooltip]=\"item.label\">{{ item.number }}</span>\n }\n </div>\n </figure>\n }\n </div>\n <p class=\"hint\">{{ tx('studio.mapHelp', 'Numbered map of your widgets. Positions and spans are to scale; content height is evaluated on the page.') }}</p>\n <details><summary>{{ tx('studio.widgetDetails', 'Widget positions and sizes') }}</summary><ol class=\"widget-changes\">@for (item of previewItems(preview.canvas); track item.key) {<li><strong>{{ item.label }}</strong><span>{{ tx('studio.before', 'Before') }}: {{ tx('editor.arrange.position', 'Column / row') }} {{ preview.before.items[item.key].col }} / {{ preview.before.items[item.key].row }} \u00B7 {{ tx('studio.gridSize', 'Size in columns \u00D7 rows') }} {{ preview.before.items[item.key].colSpan }} \u00D7 {{ preview.before.items[item.key].rowSpan }}</span><span>{{ tx('studio.after', 'After') }}: {{ tx('editor.arrange.position', 'Column / row') }} {{ item.col }} / {{ item.row }} \u00B7 {{ tx('studio.gridSize', 'Size in columns \u00D7 rows') }} {{ item.colSpan }} \u00D7 {{ item.rowSpan }}</span></li>}</ol></details>\n <button mat-flat-button type=\"button\" data-testid=\"arrangement-use\" (click)=\"useArrangement()\">{{ tx('editor.arrange.use', 'Use arrangement in draft') }}<mat-icon iconPositionEnd>arrow_forward</mat-icon></button>\n </section>\n }\n @if (arrangementMessage()) {<p class=\"studio-status\" role=\"status\">{{ arrangementMessage() }}</p>}\n @if (arrangementUndoAvailable()) {<button mat-stroked-button type=\"button\" data-testid=\"arrangement-undo\" (click)=\"undoArrangement()\"><mat-icon>undo</mat-icon>{{ tx('editor.arrange.undo', 'Undo arrangement') }}</button>}\n </div>\n <div class=\"studio-gallery arrangement-gallery\">\n @for (choice of arrangementChoices; track choice.id) {\n <button type=\"button\" class=\"studio-choice\" [class.selected]=\"arrangementSelection() === choice.id\" [attr.aria-pressed]=\"arrangementSelection() === choice.id\" [disabled]=\"!hasCanvasWidgets || !arrangementFits(choice.id)\" [attr.data-testid]=\"'arrange-' + choice.id\" (click)=\"prepareArrangement(choice.id)\">\n <span class=\"distribution-sample\" aria-hidden=\"true\" [style.grid-template-columns]=\"(arrangementFits(choice.id) ? arrangementWidths(choice.id) : choice.weights).join('fr ') + 'fr'\">@for (weight of choice.weights; track $index) {<i>{{ arrangementWidths(choice.id)[$index] }}</i>}@for (weight of choice.weights; track $index) {<i></i>}</span>\n <span class=\"choice-title\">{{ tx('editor.arrange.' + choice.id, choice.id) }}@if (arrangementSelection() === choice.id) {<mat-icon aria-hidden=\"true\">check_circle</mat-icon>}</span>\n <span class=\"choice-description\">{{ tx('studio.arrange.' + choice.id, choice.id) }}</span>\n <span class=\"choice-meta\">{{ arrangementFits(choice.id) ? arrangementWidths(choice.id).join(' + ') : tx('studio.moreColumns', 'Needs more grid columns') }}</span>\n </button>\n }\n </div>\n @if (hasCanvasWidgets) {\n <details class=\"card quick-geometry-card\" data-testid=\"quick-widget-geometry-list\">\n <summary>{{ tx('studio.quickGeometryTitle', 'Quick widget spans (columns \u00D7 rows)') }}</summary>\n <div class=\"quick-geometry-rows\">\n @for (w of quickCanvasWidgets(); track w.key) {\n <div class=\"quick-geometry-row\" [attr.data-testid]=\"'quick-geometry-row-' + w.key\">\n <span class=\"quick-geometry-label\"><mat-icon aria-hidden=\"true\">{{ w.icon }}</mat-icon><strong>{{ w.label }}</strong> <small>({{ w.colSpan }}\u00D7{{ w.rowSpan }})</small></span>\n <div class=\"studio-actions\">\n @for (span of [3, 4, 6, 12]; track span) {\n <button mat-stroked-button type=\"button\" [attr.data-testid]=\"'quick-colspan-' + w.key + '-' + span\" (click)=\"setWidgetCanvasSpan(w.key, span)\">{{ span }}c</button>\n }\n @for (rSpan of [1, 2, 4]; track rSpan) {\n <button mat-button type=\"button\" [attr.data-testid]=\"'quick-rowspan-' + w.key + '-' + rSpan\" (click)=\"setWidgetCanvasSpan(w.key, w.colSpan, rSpan)\">{{ rSpan }}r</button>\n }\n </div>\n </div>\n }\n </div>\n </details>\n }\n @if (!hasCanvasWidgets) {<p role=\"status\">{{ tx('editor.limits.empty', 'Add widgets to the canvas to configure their limits.') }}</p>}\n <details class=\"arrangement-rules\"><summary>{{ tx('studio.rules', 'Scope, devices and locked widgets') }}</summary><p>{{ tx('editor.arrange.help', 'Base canvas, in current reading order. Inheriting devices follow the base; explicit device positions are preserved. Locked positions stay in place.') }}</p><button mat-button type=\"button\" (click)=\"onSelectedTabIndexChange(5)\">{{ tx('studio.goLimits', 'Review widget limits') }}</button></details>\n </section>\n </ng-template></mat-tab>\n <mat-tab [label]=\"tx('studio.settingsTab', 'Adjustments')\">\n <div class=\"studio-panel\"><mat-tab-group class=\"editor-tabs\" [mat-stretch-tabs]=\"false\" [selectedIndex]=\"selectedTabIndex\" (selectedIndexChange)=\"selectDetailTab($event)\">\n <mat-tab [label]=\"tx('editor.tabs.layout', 'Layout')\"><div class=\"grid\"><mat-form-field appearance=\"outline\"><mat-label>{{ tx('editor.layout.cols', 'Columns') }}</mat-label><input matInput type=\"number\" min=\"1\" [formControl]=\"canvasColumnsControl\" /></mat-form-field><mat-form-field appearance=\"outline\"><mat-label>{{ tx('editor.layout.rowUnit', 'Row unit') }}</mat-label><input matInput [formControl]=\"canvasRowUnitControl\" /></mat-form-field><mat-form-field appearance=\"outline\"><mat-label>{{ tx('editor.layout.gap', 'Gap') }}</mat-label><input matInput [formControl]=\"canvasGapControl\" /></mat-form-field><mat-form-field class=\"page-inset-field\" appearance=\"outline\" floatLabel=\"always\"><mat-label>{{ tx('editor.layout.paddingInline', 'Page side inset') }}</mat-label><input matInput [formControl]=\"paddingInlineControl\" [placeholder]=\"globalPageDefaults?.paddingInline ? globalPageDefaults?.paddingInline + ' (' + tx('editor.fallback.global', 'global') + ')' : '24px'\" /><button praxisIconButton=\"help_outline\" size=\"dense\" matSuffix type=\"button\" [matTooltip]=\"tx('editor.hints.paddingInline', 'Shared space beside all page widgets. Use a CSS length or theme token; 0px removes it. Leave empty to inherit the host theme.')\" [attr.aria-label]=\"tx('editor.layout.paddingInline', 'Page side inset')\"></button></mat-form-field><mat-form-field appearance=\"outline\"><mat-label>{{ tx('editor.layout.autoRows', 'Auto rows') }}</mat-label><mat-select [formControl]=\"canvasAutoRowsControl\"><mat-option value=\"fixed\">{{ tx('editor.layout.autoRowsFixed', 'Fixed height') }}</mat-option><mat-option value=\"content\">{{ tx('editor.layout.autoRowsContent', 'Fit content') }}</mat-option></mat-select></mat-form-field></div></mat-tab>\n <mat-tab [label]=\"tx('editor.tabs.grouping', 'Grouping')\"><div class=\"panel\">\n <p class=\"hint\" data-testid=\"canvas-grouping-notice\">{{ tx('editor.grouping.canvasNotice', 'Canvas positions control this page. Groups below are preserved for flow layouts and do not arrange widgets in the canvas. Use the widget move and resize controls to place them side by side.') }}</p><div class=\"head\"><span>{{ tx('editor.grouping.title', 'Grouping') }}</span><button mat-stroked-button type=\"button\" (click)=\"addGroupingNode()\"><mat-icon>add</mat-icon>{{ tx('editor.grouping.add', 'Add group') }}</button></div>@for (group of groupingNodes.controls; track $index) {<div class=\"card\" [formGroup]=\"group\"><div class=\"head\"><span>{{ groupLabel($index) }}</span><button praxisIconButton=\"delete\" size=\"compact\" type=\"button\" [attr.aria-label]=\"tx('editor.grouping.removeAria', 'Remove group')\" (click)=\"removeGroupingNode($index)\"></button></div><div class=\"grid\"><mat-form-field appearance=\"outline\"><mat-label>{{ tx('editor.grouping.kind', 'Kind') }}</mat-label><mat-select formControlName=\"kind\"><mat-option value=\"section\">section</mat-option><mat-option value=\"tabs\">tabs</mat-option><mat-option value=\"hero\">hero</mat-option><mat-option value=\"rail\">rail</mat-option></mat-select></mat-form-field><mat-form-field appearance=\"outline\"><mat-label>{{ tx('editor.grouping.id', 'Id') }}</mat-label><input matInput formControlName=\"id\" /></mat-form-field><mat-form-field appearance=\"outline\"><mat-label>{{ tx('editor.grouping.label', 'Label') }}</mat-label><input matInput formControlName=\"label\" /></mat-form-field>@if (group.controls.kind.value === 'section') {<mat-form-field appearance=\"outline\"><mat-label>{{ tx('editor.grouping.layout', 'Layout') }}</mat-label><mat-select formControlName=\"layout\"><mat-option value=\"\">{{ tx('editor.grouping.layoutDefault', 'Default') }}</mat-option><mat-option value=\"stack\">stack</mat-option><mat-option value=\"grid\">grid</mat-option><mat-option value=\"row\">row</mat-option></mat-select></mat-form-field>}@if (group.controls.kind.value === 'hero') {<mat-form-field appearance=\"outline\"><mat-label>{{ tx('editor.grouping.emphasis', 'Emphasis') }}</mat-label><mat-select formControlName=\"emphasis\"><mat-option value=\"\">{{ tx('editor.grouping.layoutDefault', 'Default') }}</mat-option><mat-option value=\"high\">high</mat-option><mat-option value=\"medium\">medium</mat-option></mat-select></mat-form-field>}@if (group.controls.kind.value === 'rail') {<mat-form-field appearance=\"outline\"><mat-label>{{ tx('editor.grouping.side', 'Side') }}</mat-label><mat-select formControlName=\"side\"><mat-option value=\"left\">left</mat-option><mat-option value=\"right\">right</mat-option></mat-select></mat-form-field>}@if (group.controls.kind.value === 'tabs') {<mat-form-field appearance=\"outline\" class=\"wide\"><mat-label>{{ tx('editor.grouping.tabsJson', 'Tabs (JSON)') }}</mat-label><textarea matInput rows=\"4\" formControlName=\"tabsJson\"></textarea></mat-form-field>} @else {@if (bindablePageWidgets().length > 0) {<mat-form-field appearance=\"outline\" class=\"wide\"><mat-label>{{ tx('editor.grouping.widgets', 'Widgets in group') }}</mat-label><mat-select multiple [value]=\"groupingSelectedWidgetKeys($index)\" (selectionChange)=\"onGroupingWidgetSelectionChange($index, $event.value)\" [attr.data-testid]=\"'grouping-widget-select-' + $index\" panelClass=\"praxis-binder-widget-select-panel\"><mat-select-trigger><span class=\"binder-widget-trigger\"><mat-icon aria-hidden=\"true\" class=\"binder-widget-trigger-icon\">{{ groupingSelectedWidgetIcon($index) }}</mat-icon><span class=\"binder-widget-trigger-text\">{{ groupingSelectedWidgetsLabel($index) }}</span></span></mat-select-trigger>@for (w of bindablePageWidgets(); track w.key) {<mat-option [value]=\"w.key\" [attr.data-widget-key]=\"w.key\" class=\"binder-widget-option\"><span class=\"binder-widget-option-row\"><mat-icon class=\"binder-widget-option-icon\" aria-hidden=\"true\">{{ w.icon }}</mat-icon><span class=\"binder-widget-option-copy\"><strong class=\"binder-widget-option-title\">{{ w.title }}</strong>@if (w.description) {<small class=\"binder-widget-option-desc\">{{ w.description }}</small>}</span><span class=\"binder-widget-option-sr-key\" aria-hidden=\"true\">{{ w.key }}</span></span></mat-option>}</mat-select></mat-form-field>}<mat-form-field appearance=\"outline\" class=\"wide\"><mat-label>{{ tx('editor.grouping.widgetKeysCsv', 'Widget keys (comma-separated)') }}</mat-label><input matInput formControlName=\"widgetKeysCsv\" /></mat-form-field>}</div></div>}</div></mat-tab>\n <mat-tab [label]=\"tx('editor.tabs.devices', 'Device Layouts')\">\n <div class=\"panel\">\n <mat-button-toggle-group [value]=\"activeDevice()\" (change)=\"activeDevice.set($event.value)\" [attr.aria-label]=\"tx('editor.devices.target', 'Device to configure')\">\n @for (device of deviceKeys; track device) {\n <mat-button-toggle [value]=\"device\">{{ deviceLabels[device] }}</mat-button-toggle>\n }\n </mat-button-toggle-group>\n @for (device of deviceKeys; track device) {\n @if (activeDevice() === device) {\n <div class=\"card\">\n <div class=\"head\"><strong>{{ deviceLabels[device] }}</strong><button mat-stroked-button type=\"button\" [attr.data-testid]=\"'stack-device-' + device\" [disabled]=\"!hasCanvasWidgets\" (click)=\"stackDevice(device)\"><mat-icon aria-hidden=\"true\">view_agenda</mat-icon>{{ tx('editor.devices.stack', 'Stack widgets') }}</button></div>\n <p class=\"hint\">{{ tx('editor.devices.stackHelp', 'Use full width and natural height, in reading order. This replaces positions and width limits only for this device; other layouts stay unchanged.') }}</p>\n @if (stackedDevices.has(device)) { <p class=\"hint\" role=\"status\">{{ tx('editor.devices.stacked', 'Single-column layout prepared. Save to apply; Reset undoes the changes.') }}</p> }\n <div class=\"grid\">\n <mat-form-field appearance=\"outline\"><mat-label>{{ tx('editor.devices.columns', 'Columns') }}</mat-label><input matInput type=\"number\" min=\"1\" [formControl]=\"deviceForms[device].controls.columns\" /></mat-form-field>\n <mat-form-field class=\"page-inset-field\" appearance=\"outline\"><mat-label>{{ tx('editor.layout.paddingInline', 'Page side inset') }}</mat-label><input matInput [formControl]=\"deviceForms[device].controls.paddingInline\" placeholder=\"16px\" /></mat-form-field><mat-form-field appearance=\"outline\"><mat-label>{{ tx('editor.devices.gap', 'Gap') }}</mat-label><input matInput [formControl]=\"deviceForms[device].controls.gap\" /></mat-form-field>\n <mat-form-field appearance=\"outline\"><mat-label>{{ tx('editor.layout.autoRows', 'Auto rows') }}</mat-label><mat-select [formControl]=\"deviceForms[device].controls.autoRows\"><mat-option value=\"\">{{ tx('editor.devices.orientationDefault', 'Default') }}</mat-option><mat-option value=\"fixed\">{{ tx('editor.layout.autoRowsFixed', 'Fixed height') }}</mat-option><mat-option value=\"content\">{{ tx('editor.layout.autoRowsContent', 'Fit content') }}</mat-option></mat-select></mat-form-field>\n </div>\n <details><summary>{{ tx('editor.devices.advanced', 'Advanced overrides') }}</summary><div class=\"grid\">\n <mat-form-field appearance=\"outline\"><mat-label>{{ tx('editor.layout.rowUnit', 'Row unit') }}</mat-label><input matInput [formControl]=\"deviceForms[device].controls.rowUnit\" /></mat-form-field>\n <mat-form-field appearance=\"outline\" class=\"wide\"><mat-label>{{ tx('editor.devices.groupingOverridesJson', 'Grouping overrides (JSON)') }}</mat-label><textarea matInput rows=\"4\" [formControl]=\"deviceForms[device].controls.groupingOverrides\"></textarea></mat-form-field>\n <mat-form-field appearance=\"outline\" class=\"wide\"><mat-label>{{ tx('editor.devices.widgetOverridesJson', 'Widget overrides (JSON)') }}</mat-label><textarea matInput rows=\"4\" [formControl]=\"deviceForms[device].controls.widgetOverrides\"></textarea><mat-hint>{{ tx('editor.devices.widgetOverridesHelp', 'Supported per-widget properties on this device: className, span, order, and hidden. Does not override internal widget definition or inputs.') }}</mat-hint></mat-form-field>\n </div></details>\n @if (!stackedDevices.has(device)) { <div class=\"hint\">{{ tx('editor.preview.deviceCanvasHint', 'Existing canvas item overrides are preserved.') }}</div> }\n </div>\n }\n }\n </div>\n </mat-tab>\n <mat-tab [label]=\"tx('editor.tabs.context', 'Context')\"><mat-form-field appearance=\"outline\" class=\"wide\"><mat-label>{{ tx('editor.context.json', 'Context (JSON)') }}</mat-label><textarea matInput rows=\"12\" [formControl]=\"contextControl\"></textarea></mat-form-field></mat-tab>\n <mat-tab [label]=\"tx('editor.tabs.state', 'Page State')\">\n <div class=\"panel\">\n <mat-form-field appearance=\"outline\" class=\"wide\">\n <mat-label>{{ tx('editor.state.stateDefinitionJson', 'Page state (values, schema, derived \u2014 JSON)') }}</mat-label>\n <textarea matInput rows=\"10\" [formControl]=\"stateControl\" data-testid=\"page-state-json\"></textarea>\n </mat-form-field>\n\n <section class=\"panel\" data-testid=\"page-datasources-guided\">\n <div class=\"head\">\n <strong>{{ tx('editor.state.dataSourcesTitle', 'Data Sources') }}</strong>\n <div class=\"studio-actions\">\n @if (dataSourceNodes.controls.length) {\n <button\n mat-button\n type=\"button\"\n data-testid=\"page-state-sync-from-datasources\"\n (click)=\"syncStateValuesFromDataSources()\"\n >\n <mat-icon>sync</mat-icon>{{ tx('editor.state.syncFromDataSources', 'Sync state paths') }}\n </button>\n }\n <button mat-stroked-button type=\"button\" data-testid=\"page-datasources-add\" (click)=\"addDataSourceNode()\">\n <mat-icon>add</mat-icon>{{ tx('editor.state.addDataSource', 'Add data source') }}\n </button>\n </div>\n </div>\n <p class=\"hint\">{{ tx('editor.state.dataSourcesCopy', 'Bind HTTP or resource endpoints directly into page state paths with reactive parameters.') }}</p>\n @if (!dataSourceNodes.controls.length) {\n <p class=\"hint\" data-testid=\"page-datasources-empty\">{{ tx('editor.state.emptyDataSources', 'No declarative data sources configured.') }}</p>\n }\n @for (ds of dataSourceNodes.controls; track $index) {\n <div class=\"card\" [formGroup]=\"ds\" [attr.data-testid]=\"'page-datasource-card-' + $index\">\n <div class=\"head\">\n <span>{{ dataSourceLabel($index) }}</span>\n <button\n praxisIconButton=\"delete\"\n size=\"compact\"\n type=\"button\"\n [attr.data-testid]=\"'page-datasource-remove-' + $index\"\n [attr.aria-label]=\"tx('editor.state.removeDataSourceAria', 'Remove data source')\"\n (click)=\"removeDataSourceNode($index)\"\n ></button>\n </div>\n <div class=\"grid\">\n <mat-form-field appearance=\"outline\">\n <mat-label>{{ tx('editor.state.dataSourceId', 'ID') }}</mat-label>\n <input matInput formControlName=\"id\" [attr.data-testid]=\"'page-datasource-id-' + $index\" />\n </mat-form-field>\n <mat-form-field appearance=\"outline\">\n <mat-label>{{ tx('editor.state.dataSourceKind', 'Kind') }}</mat-label>\n <mat-select formControlName=\"kind\" [attr.data-testid]=\"'page-datasource-kind-' + $index\">\n <mat-option value=\"\">{{ tx('editor.common.default', 'Default') }}</mat-option>\n <mat-option value=\"remote-resource\">remote-resource</mat-option>\n <mat-option value=\"stats-query\">stats-query</mat-option>\n <mat-option value=\"raw-http\">raw-http</mat-option>\n </mat-select>\n </mat-form-field>\n <praxis-resource-quick-connect\n formControlName=\"resourcePath\"\n [intent]=\"ds.controls.kind.value === 'stats-query' ? 'stats' : (ds.controls.kind.value === 'raw-http' ? 'any' : 'collection')\"\n [endpointKey]=\"resolveEndpointKey(ds.controls.endpointKey.value)\"\n [label]=\"tx('editor.state.resourcePath', 'Resource path')\"\n [attr.data-testid]=\"'page-datasource-resourcePath-' + $index\"\n />\n <mat-form-field appearance=\"outline\">\n <mat-label>{{ tx('editor.state.endpointKey', 'Endpoint key') }}</mat-label>\n <input matInput formControlName=\"endpointKey\" [attr.data-testid]=\"'page-datasource-endpointKey-' + $index\" />\n </mat-form-field>\n <mat-form-field appearance=\"outline\">\n <mat-label>{{ tx('editor.state.method', 'HTTP method') }}</mat-label>\n <mat-select formControlName=\"method\" [attr.data-testid]=\"'page-datasource-method-' + $index\">\n <mat-option value=\"\">{{ tx('editor.common.auto', 'Auto') }}</mat-option>\n <mat-option value=\"GET\">GET</mat-option>\n <mat-option value=\"POST\">POST</mat-option>\n </mat-select>\n </mat-form-field>\n <mat-form-field appearance=\"outline\">\n <mat-label>{{ tx('editor.state.targetStatePath', 'Target state path') }}</mat-label>\n <input\n matInput\n formControlName=\"targetStatePath\"\n [attr.data-testid]=\"'page-datasource-targetStatePath-' + $index\"\n (blur)=\"syncStateValuesFromDataSources()\"\n />\n </mat-form-field>\n <mat-form-field appearance=\"outline\">\n <mat-label>{{ tx('editor.state.errorPolicy', 'Error policy') }}</mat-label>\n <mat-select formControlName=\"errorPolicy\" [attr.data-testid]=\"'page-datasource-errorPolicy-' + $index\">\n <mat-option value=\"\">{{ tx('editor.common.default', 'Default') }}</mat-option>\n <mat-option value=\"propagate\">propagate</mat-option>\n <mat-option value=\"silent\">silent</mat-option>\n <mat-option value=\"fallback\">fallback</mat-option>\n </mat-select>\n </mat-form-field>\n <mat-form-field appearance=\"outline\">\n <mat-label>{{ tx('editor.state.refreshIntervalMs', 'Refresh interval (ms)') }}</mat-label>\n <input matInput type=\"number\" min=\"0\" formControlName=\"refreshIntervalMs\" [attr.data-testid]=\"'page-datasource-refreshIntervalMs-' + $index\" />\n </mat-form-field>\n <mat-form-field appearance=\"outline\">\n <mat-label>{{ tx('editor.state.autoFetch', 'Auto fetch') }}</mat-label>\n <mat-select formControlName=\"autoFetch\" [attr.data-testid]=\"'page-datasource-autoFetch-' + $index\">\n <mat-option value=\"\">{{ tx('editor.common.default', 'Default') }}</mat-option>\n <mat-option value=\"true\">true</mat-option>\n <mat-option value=\"false\">false</mat-option>\n </mat-select>\n </mat-form-field>\n <mat-form-field appearance=\"outline\" class=\"wide\">\n <mat-label>{{ tx('editor.state.description', 'Description') }}</mat-label>\n <input matInput formControlName=\"description\" [attr.data-testid]=\"'page-datasource-description-' + $index\" />\n </mat-form-field>\n <div class=\"wide guided-presets-bar\" [attr.data-testid]=\"'page-datasource-guided-presets-' + $index\">\n <span class=\"hint\">{{ tx('editor.state.guidedPresets', 'Guided query & transform templates:') }}</span>\n <div class=\"studio-actions\">\n <button mat-stroked-button type=\"button\" [attr.data-testid]=\"'page-datasource-preset-groupby-' + $index\" (click)=\"applyGuidedDataSourceQuery($index, { mode: 'group-by', groupByField: 'ativo', metricField: 'id', metricOp: 'count' }); applyGuidedDataSourceTransform($index, { kind: 'group-by-map', totalField: 'total', mappingsText: 'true:active, false:inactive', ratioTargetField: 'activeRatePct', ratioNumeratorField: 'active', ratioDenominatorField: 'total', ratioScale: 100, ratioDecimals: 1 })\">\n {{ tx('editor.state.presetGroupByKpi', 'Group-by + Total + Ratio (%)') }}\n </button>\n <button mat-stroked-button type=\"button\" [attr.data-testid]=\"'page-datasource-preset-weighted-' + $index\" (click)=\"applyGuidedDataSourceTransform($index, { kind: 'group-by-map', totalField: 'total', weightedAverageField: 'weightedAvg', weightedAverageDecimals: 2, mappingsText: '1:low, 5:high' })\">\n {{ tx('editor.state.presetWeightedAvg', 'Weighted average') }}\n </button>\n <button mat-stroked-button type=\"button\" [attr.data-testid]=\"'page-datasource-preset-timeseries-' + $index\" (click)=\"applyGuidedDataSourceQuery($index, { mode: 'timeseries', groupByField: 'createdAt', period: 'month', metricField: 'id', metricOp: 'count' }); applyGuidedDataSourceTransform($index, { kind: 'timeseries-last', mappingsText: 'count:latestCount, avg:latestAvg' })\">\n {{ tx('editor.state.presetTimeseriesLast', 'Timeseries latest point') }}\n </button>\n <button mat-stroked-button type=\"button\" [attr.data-testid]=\"'page-datasource-preset-path-' + $index\" (click)=\"applyGuidedDataSourceTransform($index, { kind: 'path', path: 'totalElements' })\">\n {{ tx('editor.state.presetPathExtract', 'Extract path (totalElements)') }}\n </button>\n </div>\n </div>\n <mat-form-field appearance=\"outline\" class=\"wide\">\n <mat-label>{{ tx('editor.state.queryJson', 'Query (JSON)') }}</mat-label>\n <textarea matInput rows=\"3\" formControlName=\"queryJson\" [attr.data-testid]=\"'page-datasource-queryJson-' + $index\"></textarea>\n </mat-form-field>\n <mat-form-field appearance=\"outline\" class=\"wide\">\n <mat-label>{{ tx('editor.state.transformJson', 'Transform (JSON)') }}</mat-label>\n <textarea matInput rows=\"3\" formControlName=\"transformJson\" [attr.data-testid]=\"'page-datasource-transformJson-' + $index\"></textarea>\n </mat-form-field>\n <mat-form-field appearance=\"outline\" class=\"wide\">\n <mat-label>{{ tx('editor.state.fallbackJson', 'Fallback value (JSON)') }}</mat-label>\n <textarea matInput rows=\"2\" formControlName=\"fallbackJson\" [attr.data-testid]=\"'page-datasource-fallbackJson-' + $index\"></textarea>\n </mat-form-field>\n </div>\n @let preview = getDataSourcePreview($index);\n <div class=\"datasource-preview-box\" [attr.data-testid]=\"'page-datasource-preview-' + $index\">\n <div class=\"head\">\n <strong>{{ tx('editor.state.previewTitle', 'Transform & State Preview') }}</strong>\n <span class=\"previous-height-chip\">{{ preview.sourceKind === 'live' ? tx('editor.state.previewLive', 'Live response') : tx('editor.state.previewSample', 'Simulated sample') }}</span>\n </div>\n @if (preview.status === 'error') {\n <p class=\"limits-error\" role=\"alert\" [attr.data-testid]=\"'page-datasource-preview-error-' + $index\">{{ preview.error }}</p>\n } @else {\n <pre class=\"datasource-preview-json\" [attr.data-testid]=\"'page-datasource-preview-json-' + $index\">{{ preview.formattedJson }}</pre>\n @if (preview.tokens.length) {\n <div class=\"studio-actions\" [attr.data-testid]=\"'page-datasource-preview-tokens-' + $index\">\n <span class=\"hint\">{{ tx('editor.state.availableTokens', 'Click a token to prepare widget binding:') }}</span>\n @for (token of preview.tokens; track token) {\n <button mat-button type=\"button\" (click)=\"binderTokenControl.setValue(token)\"><code>{{ token }}</code></button>\n }\n </div>\n }\n }\n </div>\n </div>\n }\n </section>\n\n <section class=\"card\" data-testid=\"page-derived-measures-guided\">\n <div class=\"head\">\n <strong>{{ tx('editor.state.derivedMeasuresTitle', 'Guided Derived Measures') }}</strong>\n </div>\n <p class=\"hint\">{{ tx('editor.state.derivedMeasuresCopy', 'Create percentages, ratios, weighted averages, or formatted measures from page state paths without writing raw JsonLogic.') }}</p>\n <div class=\"grid\">\n <mat-form-field appearance=\"outline\">\n <mat-label>{{ tx('editor.state.derivedTargetPath', 'Measure key') }}</mat-label>\n <input matInput [formControl]=\"derivedPathControl\" placeholder=\"activeRatePct\" data-testid=\"derived-target-path\" />\n </mat-form-field>\n <mat-form-field appearance=\"outline\">\n <mat-label>{{ tx('editor.state.derivedKind', 'Calculation') }}</mat-label>\n <mat-select [formControl]=\"derivedKindControl\" data-testid=\"derived-kind\">\n <mat-option value=\"ratio-percent\">{{ tx('editor.state.derivedRatio', 'Ratio / Percentage') }}</mat-option>\n <mat-option value=\"weighted-average\">{{ tx('editor.state.derivedWeighted', 'Weighted average') }}</mat-option>\n <mat-option value=\"format-value\">{{ tx('editor.state.derivedFormat', 'Formatted value') }}</mat-option>\n <mat-option value=\"template\">{{ tx('editor.state.derivedTemplate', 'State reference') }}</mat-option>\n </mat-select>\n </mat-form-field>\n <mat-form-field appearance=\"outline\">\n <mat-label>{{ tx('editor.state.derivedNumerator', 'Numerator / Source path') }}</mat-label>\n <input matInput [formControl]=\"derivedNumeratorControl\" placeholder=\"kpis.active\" data-testid=\"derived-numerator\" />\n </mat-form-field>\n <mat-form-field appearance=\"outline\">\n <mat-label>{{ tx('editor.state.derivedDenominator', 'Denominator path') }}</mat-label>\n <input matInput [formControl]=\"derivedDenominatorControl\" placeholder=\"kpis.total\" data-testid=\"derived-denominator\" />\n </mat-form-field>\n <mat-form-field appearance=\"outline\">\n <mat-label>{{ tx('editor.state.derivedFormatKind', 'Format') }}</mat-label>\n <mat-select [formControl]=\"derivedFormatControl\" data-testid=\"derived-format\">\n <mat-option value=\"percent\">percent (%)</mat-option>\n <mat-option value=\"number\">number</mat-option>\n <mat-option value=\"integer\">integer</mat-option>\n <mat-option value=\"currency\">currency (R$)</mat-option>\n <mat-option value=\"boolean\">boolean</mat-option>\n </mat-select>\n </mat-form-field>\n </div>\n <div class=\"studio-actions\">\n <button mat-stroked-button type=\"button\" data-testid=\"derived-add-btn\" (click)=\"addGuidedDerivedMeasure()\">\n <mat-icon aria-hidden=\"true\">functions</mat-icon>{{ tx('editor.state.addDerivedAction', 'Add measure to page state') }}\n </button>\n </div>\n @let derivedPreview = getDerivedStatePreview();\n @if (derivedPreview.entries.length || derivedPreview.diagnostics.length) {\n <div class=\"datasource-preview-box\" data-testid=\"page-derived-preview\">\n @for (diag of derivedPreview.diagnostics; track diag) {\n <p class=\"limits-error\" role=\"alert\">{{ diag }}</p>\n }\n @if (derivedPreview.entries.length) {\n <div class=\"studio-actions\">\n @for (entry of derivedPreview.entries; track entry.key) {\n <button mat-button type=\"button\" (click)=\"binderTokenControl.setValue(entry.token)\">\n <strong>{{ entry.key }}</strong>: {{ entry.formattedValue }} <code>({{ entry.token }})</code>\n </button>\n }\n </div>\n }\n </div>\n }\n </section>\n\n <section class=\"card\" data-testid=\"page-state-component-binder\">\n <div class=\"head\">\n <strong>{{ tx('editor.state.binderTitle', 'Connect State or Measure to Widget') }}</strong>\n </div>\n <p class=\"hint\">{{ tx('editor.state.binderCopy', 'Bind any state path or derived measure directly to a widget input in the draft.') }}</p>\n <div class=\"grid\">\n <mat-form-field appearance=\"outline\">\n <mat-label>{{ tx('editor.state.binderToken', 'State token') }}</mat-label>\n <input matInput [formControl]=\"binderTokenControl\" placeholder=\"{{ '{{state.kpis.total}}' }}\" data-testid=\"binder-token\" />\n </mat-form-field>\n <mat-form-field appearance=\"outline\">\n <mat-label>{{ tx('editor.state.binderWidget', 'Target widget') }}</mat-label>\n <mat-select [formControl]=\"binderWidgetControl\" data-testid=\"binder-widget\" panelClass=\"praxis-binder-widget-select-panel\">\n @if (selectedBinderWidget(); as selectedWidget) {\n <mat-select-trigger>\n <span class=\"binder-widget-trigger\">\n <mat-icon aria-hidden=\"true\" class=\"binder-widget-trigger-icon\">{{ selectedWidget.icon }}</mat-icon>\n <span class=\"binder-widget-trigger-text\">\n <strong>{{ selectedWidget.title }}</strong>\n @if (selectedWidget.description) {\n <small> \u00B7 {{ selectedWidget.description }}</small>\n }\n </span>\n </span>\n </mat-select-trigger>\n }\n @for (w of bindablePageWidgets(); track w.key) {\n <mat-option [value]=\"w.key\" [attr.data-widget-key]=\"w.key\" class=\"binder-widget-option\">\n <span class=\"binder-widget-option-row\">\n <mat-icon aria-hidden=\"true\" class=\"binder-widget-option-icon\">{{ w.icon }}</mat-icon>\n <span class=\"binder-widget-option-copy\">\n <strong class=\"binder-widget-option-title\">{{ w.title }}</strong>\n @if (w.description) {\n <small class=\"binder-widget-option-desc\">{{ w.description }}</small>\n }\n </span>\n <span class=\"binder-widget-option-sr-key\" aria-hidden=\"true\">{{ w.key }}</span>\n </span>\n </mat-option>\n }\n </mat-select>\n </mat-form-field>\n <mat-form-field appearance=\"outline\">\n <mat-label>{{ tx('editor.state.binderInputPath', 'Widget input path') }}</mat-label>\n <input matInput [formControl]=\"binderInputPathControl\" placeholder=\"value\" data-testid=\"binder-input-path\" />\n </mat-form-field>\n </div>\n @if (availableStateBindingTokens().length) {\n <div class=\"binder-input-suggestions\" data-testid=\"binder-token-suggestions\">\n <span class=\"hint\">{{ tx('editor.state.binderTokenSuggestions', 'Available tokens:') }}</span>\n @for (availableToken of availableStateBindingTokens(); track availableToken) {\n <button\n type=\"button\"\n class=\"binder-input-suggestion-chip\"\n [class.active]=\"binderTokenControl.value === availableToken\"\n [attr.data-testid]=\"'binder-token-suggestion-' + availableToken\"\n (click)=\"selectBinderTokenSuggestion(availableToken)\"\n >\n <code>{{ availableToken }}</code>\n </button>\n }\n </div>\n }\n <div class=\"binder-input-suggestions\" data-testid=\"binder-pipe-suggestions\">\n <span class=\"hint\">{{ tx('editor.state.binderPipeSuggestions', 'Formatadores CSP-safe (pipes):') }}</span>\n @for (pipeSegment of binderDeclarativePipes; track pipeSegment) {\n <button\n type=\"button\"\n class=\"binder-input-suggestion-chip\"\n [attr.data-testid]=\"'binder-pipe-chip-' + pipeSegment\"\n (click)=\"appendBinderTokenPipe(pipeSegment)\"\n >\n <code>{{ pipeSegment }}</code>\n </button>\n }\n </div>\n @if (binderTokenPipeError(); as pipeErr) {\n <p class=\"studio-status binder-unbound-warning\" role=\"alert\" data-testid=\"binder-pipe-error\">{{ pipeErr }}</p>\n } @else if (binderTokenLivePreview(); as livePreviewVal) {\n <p class=\"hint\" data-testid=\"binder-live-preview\">\n {{ tx('editor.state.binderLivePreview', 'Preview simulado:') }} <strong>{{ livePreviewVal }}</strong>\n </p>\n }\n @if (selectedBinderWidgetInputSuggestions().length) {\n <div class=\"binder-input-suggestions\" data-testid=\"binder-input-suggestions\">\n <span class=\"hint\">{{ tx('editor.state.binderInputSuggestions', 'Suggested paths:') }}</span>\n @for (suggestedPath of selectedBinderWidgetInputSuggestions(); track suggestedPath) {\n <button\n type=\"button\"\n class=\"binder-input-suggestion-chip\"\n [class.active]=\"binderInputPathControl.value === suggestedPath\"\n [attr.data-testid]=\"'binder-input-suggestion-' + suggestedPath\"\n (click)=\"selectBinderInputPathSuggestion(suggestedPath)\"\n >\n <code>{{ suggestedPath }}</code>\n </button>\n }\n </div>\n }\n <div class=\"studio-actions\">\n <button mat-stroked-button type=\"button\" data-testid=\"binder-bind-btn\" (click)=\"bindStateTokenToWidget()\">\n <mat-icon aria-hidden=\"true\">link</mat-icon>{{ tx('editor.state.bindAction', 'Bind token to widget in draft') }}\n </button>\n <button mat-stroked-button type=\"button\" data-testid=\"binder-auto-bind-btn\" (click)=\"autoBindWidgetStatePlaceholders()\">\n <mat-icon aria-hidden=\"true\">auto_fix_high</mat-icon>{{ tx('editor.state.autoBindAction', 'Auto-bind ${...} widget placeholders') }}\n </button>\n </div>\n @if (binderMessage()) {\n <p class=\"studio-status\" role=\"status\" data-testid=\"binder-status-message\">{{ binderMessage() }}</p>\n }\n @if (invalidWidgetStateBindingPipes().length) {\n <div class=\"binder-unbound-warning\" role=\"alert\" data-testid=\"binder-invalid-pipes-warning\">\n <mat-icon aria-hidden=\"true\">error_outline</mat-icon>\n <div class=\"binder-unbound-warning__body\">\n <span>{{ tx('editor.state.invalidWidgetPipesWarning', 'Formatadores (pipes) inv\u00E1lidos detectados:') }}</span>\n <div class=\"binder-unbound-warning__chips\">\n @for (invalidBinding of invalidWidgetStateBindingPipes(); track invalidBinding.widgetKey + ':' + invalidBinding.inputPath) {\n <button\n type=\"button\"\n class=\"binder-unbound-chip\"\n [attr.data-testid]=\"'binder-invalid-pipe-chip-' + invalidBinding.widgetKey + '-' + invalidBinding.inputPath\"\n (click)=\"loadStateBindingIntoForm(invalidBinding)\"\n >\n <strong>{{ invalidBinding.widgetTitle }}</strong>.<code>{{ invalidBinding.inputPath }}</code> (<code>{{ invalidBinding.expression }}</code>)\n </button>\n }\n </div>\n </div>\n </div>\n }\n @if (unboundWidgetStatePlaceholders().length; as unboundCount) {\n <div class=\"binder-unbound-warning\" role=\"status\" data-testid=\"binder-unbound-placeholders-warning\">\n <mat-icon aria-hidden=\"true\">warning_amber</mat-icon>\n <div class=\"binder-unbound-warning__body\">\n <span>{{ tx('editor.state.unboundPlaceholdersWarning', 'Placeholders sem v\u00EDnculo detectados:') }}</span>\n <div class=\"binder-unbound-warning__chips\">\n @for (item of unboundWidgetStatePlaceholders(); track item.widgetKey + ':' + item.placeholder) {\n <button\n type=\"button\"\n class=\"binder-unbound-chip\"\n [attr.data-testid]=\"'binder-unbound-chip-' + item.widgetKey + '-' + item.placeholder\"\n [attr.title]=\"tx('editor.state.selectUnboundPlaceholderHint', 'Clique para preencher widget e caminho no formul\u00E1rio')\"\n (click)=\"selectUnboundPlaceholder(item)\"\n >\n <strong>{{ item.widgetTitle }}</strong> (<code>{{ '${' + item.placeholder + '}' }}</code>)\n </button>\n }\n </div>\n </div>\n </div>\n }\n @if (currentWidgetStateBindings().length) {\n <ul class=\"blocked-widgets-list binder-active-list\" data-testid=\"active-widget-state-bindings\">\n @for (binding of currentWidgetStateBindings(); track binding.widgetKey + ':' + binding.inputPath) {\n @let previewVal = resolveStateTokenPreview(binding.token);\n <li class=\"binder-active-item\">\n <mat-icon aria-hidden=\"true\" class=\"binder-active-icon\">{{ widgetIconForKey(binding.widgetKey) }}</mat-icon>\n <button\n type=\"button\"\n class=\"binder-active-copy binder-active-select-btn\"\n [attr.data-testid]=\"'binder-select-' + binding.widgetKey + '-' + binding.inputPath\"\n [attr.title]=\"tx('editor.state.editBindingHint', 'Click to load binding into form')\"\n (click)=\"loadStateBindingIntoForm(binding)\"\n >\n <strong>{{ binding.widgetTitle }}</strong>.<code>{{ binding.inputPath }}</code> \u2190 <code>{{ binding.token }}</code>\n @if (previewVal !== null) {\n <small class=\"binder-preview-badge\" [attr.data-testid]=\"'binder-preview-' + binding.widgetKey + '-' + binding.inputPath\">= {{ previewVal }}</small>\n }\n </button>\n <button mat-icon-button type=\"button\" [attr.data-testid]=\"'binder-unbind-' + binding.widgetKey + '-' + binding.inputPath\"\n [attr.aria-label]=\"tx('editor.state.unbindAction', 'Remove binding')\"\n (click)=\"unbindStateTokenFromWidget(binding.widgetKey, binding.inputPath)\">\n <mat-icon aria-hidden=\"true\">link_off</mat-icon>\n </button>\n </li>\n }\n </ul>\n }\n </section>\n\n <mat-form-field appearance=\"outline\" class=\"wide\">\n <mat-label>{{ tx('editor.state.dataSourcesJson', 'page.dataSources (JSON)') }}</mat-label>\n <textarea matInput rows=\"8\" [formControl]=\"dataSourcesControl\" [placeholder]=\"tx('editor.hints.dataSourcesExample', '')\" data-testid=\"page-datasources-json\"></textarea>\n </mat-form-field>\n </div>\n </mat-tab>\n <mat-tab [label]=\"tx('editor.limits.tab', 'Widget limits')\">\n <section class=\"limits-panel\" data-testid=\"canvas-limits-editor\">\n @if (workspaceTab() === 3 && activeTab() === 'limits' && canvasLimits.targets.length) {\n <div class=\"selection-identity\" tabindex=\"-1\" data-testid=\"canvas-limits-identity\">\n <mat-icon aria-hidden=\"true\">{{ limitsTargetIcon(limitsTargetControl.value) }}</mat-icon>\n <strong>{{ limitsTargetLabel(limitsTargetControl.value) }}</strong>\n </div>\n }\n\n <p class=\"hint\" id=\"canvas-limits-help\">{{ tx('editor.limits.help', 'Limits use grid columns and rows, not pixels. Leave blank for defaults, or to inherit the base limits on a device.') }}</p>\n @if (canvasLimits.targets.length) {\n <mat-form-field appearance=\"outline\" subscriptSizing=\"dynamic\">\n <mat-label>{{ tx('editor.limits.target', 'Widget and layout') }}</mat-label>\n <mat-select [formControl]=\"limitsTargetControl\" data-testid=\"canvas-limits-target\">\n <mat-select-trigger>\n <span class=\"binder-widget-trigger\">\n <mat-icon aria-hidden=\"true\" class=\"binder-widget-trigger-icon\">{{ limitsTargetIcon(limitsTargetControl.value) }}</mat-icon>\n <span class=\"binder-widget-trigger-text\">{{ limitsTargetLabel(limitsTargetControl.value) }}</span>\n </span>\n </mat-select-trigger>\n @for (target of canvasLimits.targets; track target.scope + ':' + target.key; let index = $index) {\n <mat-option [value]=\"index\">\n <mat-icon aria-hidden=\"true\">{{ limitsTargetIcon(index) }}</mat-icon>\n <span>{{ limitsTargetLabel(index) }}</span>\n </mat-option>\n }\n </mat-select>\n </mat-form-field>\n <p class=\"hint\">{{ limitsGeometryLabel() }}</p>\n @if (canvasLimits.form.controls[limitsTargetControl.value]; as limitsForm) {\n <div class=\"limits-fields\" aria-describedby=\"canvas-limits-help\">\n <mat-form-field appearance=\"outline\" subscriptSizing=\"dynamic\">\n <mat-label>{{ tx('editor.limits.minColSpan', 'Minimum width (columns)') }}</mat-label>\n <input matInput [errorStateMatcher]=\"limitsErrorMatcher\" type=\"number\" min=\"1\" step=\"1\" [formControl]=\"limitsForm.controls.minColSpan\" data-testid=\"canvas-limit-minColSpan\">\n <mat-error>{{ limitFieldError(limitsForm.controls.minColSpan) }}</mat-error>\n </mat-form-field>\n <mat-form-field appearance=\"outline\" subscriptSizing=\"dynamic\">\n <mat-label>{{ tx('editor.limits.maxColSpan', 'Maximum width (columns)') }}</mat-label>\n <input matInput [errorStateMatcher]=\"limitsErrorMatcher\" type=\"number\" min=\"1\" step=\"1\" [formControl]=\"limitsForm.controls.maxColSpan\" data-testid=\"canvas-limit-maxColSpan\">\n <mat-error>{{ limitFieldError(limitsForm.controls.maxColSpan) }}</mat-error>\n </mat-form-field>\n <mat-form-field appearance=\"outline\" subscriptSizing=\"dynamic\">\n <mat-label>{{ tx('editor.limits.minRowSpan', 'Minimum height (rows)') }}</mat-label>\n <input matInput [errorStateMatcher]=\"limitsErrorMatcher\" type=\"number\" min=\"1\" step=\"1\" [formControl]=\"limitsForm.controls.minRowSpan\" data-testid=\"canvas-limit-minRowSpan\">\n <mat-error>{{ limitFieldError(limitsForm.controls.minRowSpan) }}</mat-error>\n </mat-form-field>\n <mat-form-field appearance=\"outline\" subscriptSizing=\"dynamic\">\n <mat-label>{{ tx('editor.limits.maxRowSpan', 'Maximum height (rows)') }}</mat-label>\n <input matInput [errorStateMatcher]=\"limitsErrorMatcher\" type=\"number\" min=\"1\" step=\"1\" [formControl]=\"limitsForm.controls.maxRowSpan\" data-testid=\"canvas-limit-maxRowSpan\">\n <mat-error>{{ limitFieldError(limitsForm.controls.maxRowSpan) }}</mat-error>\n </mat-form-field>\n </div>\n @if (limitsUseContentHeight()) {\n <p class=\"limits-notice\"><mat-icon aria-hidden=\"true\">height</mat-icon><span>{{ tx('editor.limits.autoHeight', 'Choose natural height or an adjustable height with internal scrolling.') }}</span></p>\n <mat-button-toggle-group class=\"height-modes\" [formControl]=\"limitsForm.controls.heightMode\" [attr.aria-label]=\"tx('editor.height.mode', 'Widget height')\" data-testid=\"canvas-height-mode\">\n <mat-button-toggle value=\"inherit\">{{ tx('editor.height.inherit', 'Default') }}</mat-button-toggle>\n <mat-button-toggle value=\"auto\">{{ tx('editor.height.auto', 'Automatic') }}</mat-button-toggle>\n <mat-button-toggle value=\"fixed\">{{ tx('editor.height.fixed', 'Adjustable') }}</mat-button-toggle>\n </mat-button-toggle-group>\n @if (limitsForm.controls.heightMode.value === 'fixed') {\n <div class=\"limits-fields\">\n <mat-form-field appearance=\"outline\" subscriptSizing=\"dynamic\">\n <mat-label>{{ tx('editor.height.value', 'Height (px)') }}</mat-label>\n <input matInput type=\"number\" min=\"160\" step=\"1\" [errorStateMatcher]=\"limitsErrorMatcher\" [formControl]=\"limitsForm.controls.heightPx\" data-testid=\"canvas-height-px\">\n <mat-error>{{ limitFieldError(limitsForm.controls.heightPx) }}</mat-error>\n </mat-form-field>\n <mat-form-field appearance=\"outline\" subscriptSizing=\"dynamic\">\n <mat-label>{{ tx('editor.height.top', 'Top inset (px)') }}</mat-label>\n <input matInput type=\"number\" min=\"0\" step=\"1\" [errorStateMatcher]=\"limitsErrorMatcher\" [formControl]=\"limitsForm.controls.offsetTopPx\" data-testid=\"canvas-height-top\">\n <mat-error>{{ limitFieldError(limitsForm.controls.offsetTopPx) }}</mat-error>\n </mat-form-field>\n </div>\n }\n <div class=\"limits-fields\">\n <mat-form-field appearance=\"outline\" subscriptSizing=\"dynamic\">\n <mat-label>{{ tx('editor.height.min', 'Minimum height (px)') }}</mat-label>\n <input matInput type=\"number\" min=\"160\" step=\"1\" [errorStateMatcher]=\"limitsErrorMatcher\" [formControl]=\"limitsForm.controls.minHeightPx\" data-testid=\"canvas-limit-minHeightPx\">\n <mat-error>{{ limitFieldError(limitsForm.controls.minHeightPx) }}</mat-error>\n </mat-form-field>\n <mat-form-field appearance=\"outline\" subscriptSizing=\"dynamic\">\n <mat-label>{{ tx('editor.height.max', 'Maximum height (px)') }}</mat-label>\n <input matInput type=\"number\" min=\"160\" step=\"1\" [errorStateMatcher]=\"limitsErrorMatcher\" [formControl]=\"limitsForm.controls.maxHeightPx\" data-testid=\"canvas-limit-maxHeightPx\">\n <mat-error>{{ limitFieldError(limitsForm.controls.maxHeightPx) }}</mat-error>\n </mat-form-field>\n </div>\n }\n }\n @if (limitsSummaryError) { <p class=\"limits-error\" role=\"alert\">{{ limitsSummaryError }}</p> }\n } @else {\n <p>{{ tx('editor.limits.empty', 'Add widgets to the canvas to configure their limits.') }}</p>\n }\n </section>\n </mat-tab>\n </mat-tab-group></div>\n </mat-tab>\n </mat-tab-group>\n <details class=\"summary-details\">\n <summary>{{ tx('editor.summaryAria', 'Configuration summary') }}</summary>\n <div class=\"summary\">\n @if (!isHostedInSettingsPanel) {\n <span>{{ validationStateLabel }}</span>\n <span>{{ dirtyStateLabel }}</span>\n }\n <span>{{ selectedLayoutPresetLabel }}</span>\n <span>{{ selectedThemePresetLabel }}</span>\n <span>{{ canvasSummaryLabel }}</span>\n </div>\n </details>\n </div>\n", styles: [".page-inset-field{grid-column:1/-1;min-width:0}:host{display:block;min-width:0;max-width:100%}.height-modes{width:fit-content;max-width:100%;flex-wrap:wrap;margin-bottom:16px}.editor,.panel{display:grid;gap:16px;min-width:0;max-width:100%;color:var(--md-sys-color-on-surface, currentColor)}mat-tab-group,mat-form-field{min-width:0;max-width:100%}.head,.summary{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.summary{color:var(--md-sys-color-on-surface-variant, currentColor)}.selection-identity{display:flex;align-items:flex-start;gap:8px;padding-block:8px;background:var(--md-sys-color-surface-container-low, var(--md-sys-color-surface));overflow-wrap:anywhere}.selection-identity mat-icon{flex-shrink:0}:host ::ng-deep .editor-tabs>.mat-mdc-tab-header .mdc-tab{min-width:0;padding-inline:12px}:host ::ng-deep .editor-tabs>.mat-mdc-tab-header .mdc-tab__text-label{max-width:128px;white-space:normal;overflow-wrap:anywhere;text-align:center;letter-spacing:normal;line-height:1.25}.grid{display:grid;gap:12px;grid-template-columns:repeat(auto-fit,minmax(min(220px,100%),1fr))}@container (max-width: 600px){.grid{grid-template-columns:minmax(0,1fr)}.head,.summary{align-items:stretch}.head>button{width:100%}}@media(max-width:600px){.grid{grid-template-columns:minmax(0,1fr)}.head,.summary{align-items:stretch}.head>button{width:100%}}.card{display:grid;gap:12px;padding:16px;border:1px solid var(--md-sys-color-outline-variant, color-mix(in srgb, currentColor 18%, transparent));border-radius:8px;background:var(--md-sys-color-surface-container-low, var(--md-sys-color-surface-container, transparent));color:var(--md-sys-color-on-surface, currentColor)}.limits-panel{display:grid;gap:8px;min-width:0}.limits-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:4px 16px}.limits-fields mat-form-field{min-width:0}.limits-notice{display:flex;gap:8px;align-items:flex-start;color:var(--md-sys-color-on-surface-variant, currentColor)}.limits-notice mat-icon{flex-shrink:0}.limits-error{color:var(--md-sys-color-error, #b3261e)}.limits-blocking-banner{border-color:var(--md-sys-color-error, #b3261e);gap:8px}.blocked-widgets-list{margin:0;padding-inline-start:20px;display:grid;gap:4px}.previous-heights-summary{display:flex;flex-wrap:wrap;gap:8px;align-items:center;font:var(--mat-sys-body-small, inherit);color:var(--md-sys-color-on-surface-variant, currentColor)}.previous-height-chip{padding:2px 8px;border-radius:999px;background:var(--md-sys-color-surface-container-highest, rgba(128, 128, 128, .14))}.wide{grid-column:1/-1}.hint{color:var(--md-sys-color-on-surface-variant, currentColor);font-size:12px}.eyebrow{color:var(--md-sys-color-primary, currentColor);font-size:11px;font-weight:700;letter-spacing:0;text-transform:uppercase}:host ::ng-deep .mat-mdc-tab-body-content{padding-top:12px;box-sizing:border-box}:host{container-type:inline-size}.studio-panel{display:grid;gap:var(--p-space-4, 16px);padding-block:var(--p-space-5, 20px);min-width:0}.studio-heading h2{font-size:var(--p-font-size-lg, 20px);line-height:1.25;margin:var(--p-space-2, 8px) 0;font-weight:600}.studio-heading p{margin:0;color:var(--md-sys-color-on-surface-variant);line-height:1.5}.studio-panel h3{font-size:var(--p-font-size-md, 16px);margin:0}.studio-panel>button{justify-self:start}.studio-gallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--p-space-3, 12px)}.studio-choice{display:flex;flex-direction:column;gap:var(--p-space-2, 8px);min-width:0;padding:var(--p-space-3, 12px);text-align:start;border:1px solid var(--md-sys-color-outline-variant);border-radius:var(--p-radius-lg, 12px);background:var(--md-sys-color-surface);color:var(--md-sys-color-on-surface);font:inherit;cursor:pointer;transition:border-color var(--md-sys-motion-duration-short2, .1s),background-color var(--md-sys-motion-duration-short2, .1s)}.studio-choice:hover:not(:disabled){border-color:var(--md-sys-color-primary);background:var(--md-sys-color-surface-container-low)}.studio-choice.selected{border-color:var(--md-sys-color-primary);box-shadow:inset 0 0 0 1px var(--md-sys-color-primary);background:var(--md-sys-color-surface-container-low)}.studio-choice:focus-visible,.studio-panel summary:focus-visible{outline:3px solid var(--md-sys-color-primary);outline-offset:3px}.studio-choice:disabled{opacity:var(--p-disabled-opacity, .5);cursor:not-allowed}.choice-title{display:flex;align-items:center;justify-content:space-between;gap:var(--p-space-2, 8px);width:100%;font-weight:600;line-height:1.35}.choice-title mat-icon{color:var(--md-sys-color-primary);flex-shrink:0;font-size:20px;height:20px;width:20px}.choice-description{font-size:var(--p-font-size-sm, 13px);line-height:1.5;color:var(--md-sys-color-on-surface-variant)}.choice-meta{font-size:var(--p-font-size-xs, 12px);color:var(--md-sys-color-on-surface-variant);margin-top:auto;padding-top:var(--p-space-1, 4px)}.theme-sample{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));padding:var(--p-space-3, 12px);border-radius:var(--p-radius-md, 8px);min-height:128px;align-self:stretch;margin-bottom:var(--p-space-1, 4px)}.sample-metric,.sample-chart{background:var(--sample-surface);border-radius:var(--sample-radius);box-shadow:var(--sample-shadow);padding:var(--p-space-2, 8px)}.sample-metric b{display:block;font-size:var(--p-font-size-md, 16px)}.sample-metric i{display:block;height:3px;width:55%;margin-top:var(--p-space-1, 4px);background:var(--sample-accent)}.sample-chart{grid-column:1/-1;display:flex;height:40px;align-items:flex-end;gap:var(--p-space-2, 8px)}.sample-chart i{flex:1;background:var(--sample-accent);height:50%;border-radius:var(--p-radius-xs, 2px)}.sample-chart i:nth-child(2){height:85%}.sample-chart i:nth-child(3){height:65%}.sample-chart i:nth-child(4){height:100%}.sample-chart i:nth-child(5){height:75%}.shell-options,.arrangement-rules{border-top:1px solid var(--md-sys-color-outline-variant);padding-top:var(--p-space-3, 12px)}.studio-panel summary{cursor:pointer;font-weight:500;line-height:1.5;padding-block:var(--p-space-2, 8px)}.shell-gallery{margin-top:var(--p-space-4, 16px)}.shell-sample{display:block;align-self:stretch;border:1px solid;overflow:hidden;margin:var(--p-space-2, 8px)}.shell-sample>span{display:flex;gap:var(--p-space-2, 8px);align-items:center;padding:var(--p-space-2, 8px);border-bottom:1px solid transparent}.shell-sample i{height:4px;width:60%;background:var(--md-sys-color-on-surface-variant);opacity:.4}.shell-sample>span:last-child{min-height:30px;flex-direction:column;align-items:flex-start}.shell-sample>span:last-child i:last-child{width:40%}.selection-line{margin:0;font-size:var(--p-font-size-sm, 13px);color:var(--md-sys-color-on-surface-variant)}.studio-actions{display:flex;flex-wrap:wrap;align-items:center;gap:var(--p-space-2, 8px)}.distribution-sample{display:grid;grid-template-rows:repeat(2,1fr);gap:var(--p-space-1, 4px);align-self:stretch;height:76px;padding:var(--p-space-2, 8px);background:var(--md-sys-color-surface-container);border-radius:var(--p-radius-md, 8px)}.distribution-sample i{display:grid;place-items:center;background:var(--md-sys-color-secondary-container);color:var(--md-sys-color-on-secondary-container);border-radius:var(--p-radius-sm, 4px);font-size:var(--p-font-size-xs, 12px);font-style:normal}.distribution-sample i:nth-child(n+4){opacity:.65}.selected .distribution-sample i{background:var(--md-sys-color-primary-container);color:var(--md-sys-color-on-primary-container)}.arrangement-review{display:grid;gap:var(--p-space-3, 12px);padding-block:var(--p-space-4, 16px);border-top:2px solid var(--md-sys-color-primary)}.review-heading{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:var(--p-space-2, 8px)}.review-heading>span{font-size:var(--p-font-size-sm, 13px);color:var(--md-sys-color-primary)}.canvas-comparison{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--p-space-3, 12px)}.canvas-comparison figure{margin:0;min-width:0}.canvas-comparison figcaption{font-weight:500;margin-bottom:var(--p-space-2, 8px)}.canvas-map{display:grid;gap:2px;height:220px;padding:var(--p-space-2, 8px);border:1px solid var(--md-sys-color-outline-variant);background:var(--md-sys-color-surface-container-low);border-radius:var(--p-radius-md, 8px)}.canvas-map span{display:grid;place-items:center;min-height:0;min-width:0;overflow:hidden;font-size:var(--p-font-size-xs, 12px);color:var(--md-sys-color-on-secondary-container);background:var(--md-sys-color-secondary-container);border-radius:var(--p-radius-xs, 2px)}.canvas-map .changed{background:var(--md-sys-color-primary-container);color:var(--md-sys-color-on-primary-container)}.widget-changes{padding-inline-start:var(--p-space-5, 20px);margin:0}.widget-changes li{padding-block:var(--p-space-2, 8px);overflow-wrap:anywhere}.widget-changes span{display:block;font-size:var(--p-font-size-sm, 13px);color:var(--md-sys-color-on-surface-variant)}.studio-status{border-inline-start:3px solid var(--md-sys-color-primary);background:var(--md-sys-color-surface-container-low);padding:var(--p-space-3, 12px);margin:0;line-height:1.5}@container (max-width:420px){.studio-gallery{grid-template-columns:minmax(0,1fr)}.canvas-map{height:180px}}@media(prefers-reduced-motion:reduce){.studio-choice{transition:none}}.arrangement-feedback:empty{display:none}.arrangement-feedback:focus{outline:none}.arrangement-feedback:focus-visible{outline:2px solid var(--md-sys-color-primary);outline-offset:3px}@container (min-width:620px){.arrangement-gallery{grid-template-columns:repeat(3,minmax(0,1fr))}}:host ::ng-deep .studio-tabs>.mat-mdc-tab-header{position:sticky;top:0;z-index:var(--praxis-layer-sticky-local, 100);background:var(--md-sys-color-surface-container-low, var(--md-sys-color-surface))}:host ::ng-deep .studio-tabs>.mat-mdc-tab-header .mdc-tab{flex:1 1 0;padding-inline:var(--p-space-1, 4px)}.arrangement-feedback{scroll-margin-block-start:var(--p-space-16, 64px)}.filter-owner-banner{border-color:var(--md-sys-color-tertiary, var(--md-sys-color-primary))}.filter-owner-item{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px}.quick-geometry-rows{display:grid;gap:8px}.quick-geometry-row{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px;padding-block:4px;border-bottom:1px solid var(--md-sys-color-outline-variant, rgba(128, 128, 128, .2))}.quick-geometry-label{display:inline-flex;align-items:center;gap:6px;min-width:0}.quick-geometry-label mat-icon{font-size:18px;width:18px;height:18px;flex-shrink:0;color:var(--md-sys-color-primary, currentColor)}.binder-widget-trigger{display:inline-flex;align-items:center;gap:8px;max-width:100%;min-width:0}.binder-widget-trigger-icon{font-size:18px;width:18px;height:18px;flex-shrink:0;color:var(--md-sys-color-primary, currentColor)}.binder-widget-trigger-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}.binder-widget-trigger-text small{color:var(--md-sys-color-on-surface-variant, currentColor);font-weight:400}.binder-widget-option-row{position:relative;display:flex;align-items:flex-start;gap:10px;padding-block:4px;min-width:0}.binder-widget-option-icon{font-size:20px;width:20px;height:20px;margin-top:2px;flex-shrink:0;color:var(--md-sys-color-primary, currentColor)}.binder-widget-option-copy{display:flex;flex-direction:column;gap:2px;min-width:0;line-height:1.3}.binder-widget-option-title{font-weight:600;color:var(--md-sys-color-on-surface, currentColor);overflow-wrap:anywhere}.binder-widget-option-desc{font-size:12px;color:var(--md-sys-color-on-surface-variant, currentColor);overflow-wrap:anywhere}.binder-widget-option-sr-key{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;opacity:0;pointer-events:none}.binder-input-suggestions{display:flex;flex-wrap:wrap;align-items:center;gap:6px}.binder-input-suggestion-chip{display:inline-flex;align-items:center;padding:2px 8px;border-radius:999px;border:1px solid var(--md-sys-color-outline-variant, rgba(128, 128, 128, .3));background:var(--md-sys-color-surface, transparent);color:var(--md-sys-color-on-surface, currentColor);font-size:12px;cursor:pointer;transition:border-color .1s,background-color .1s}.binder-input-suggestion-chip:hover{border-color:var(--md-sys-color-primary, currentColor);background:var(--md-sys-color-surface-container-low, rgba(128, 128, 128, .08))}.binder-input-suggestion-chip.active{border-color:var(--md-sys-color-primary, currentColor);background:var(--md-sys-color-primary-container, rgba(128, 128, 128, .16));color:var(--md-sys-color-on-primary-container, currentColor)}.binder-active-list{list-style:none;padding-inline-start:0;gap:6px}.binder-active-item{display:flex;align-items:center;gap:8px;padding:4px 8px;border-radius:6px;background:var(--md-sys-color-surface, rgba(255, 255, 255, .03))}.binder-active-icon{font-size:18px;width:18px;height:18px;flex-shrink:0;color:var(--md-sys-color-primary, currentColor)}.binder-active-copy{flex:1 1 auto;min-width:0;overflow-wrap:anywhere}.binder-active-select-btn{appearance:none;border:none;background:transparent;color:inherit;font:inherit;text-align:start;padding:2px 4px;border-radius:4px;cursor:pointer}.binder-active-select-btn:hover{background:var(--md-sys-color-surface-container-low, rgba(128, 128, 128, .08))}.binder-active-select-btn:focus-visible{outline:2px solid var(--md-sys-color-primary, currentColor);outline-offset:2px}.binder-preview-badge{display:inline-flex;align-items:center;margin-inline-start:6px;padding:1px 6px;border-radius:999px;font-size:11px;font-weight:600;color:var(--md-sys-color-on-secondary-container, #1d192b);background:var(--md-sys-color-secondary-container, rgba(103, 80, 164, .14))}.binder-unbound-warning{display:flex;align-items:flex-start;gap:8px;padding:8px 10px;border-radius:6px;font-size:12px;border:1px solid var(--md-sys-color-tertiary, rgba(180, 110, 0, .35));background:color-mix(in srgb,var(--md-sys-color-tertiary-container, #ffdea6) 45%,transparent);color:var(--md-sys-color-on-surface, inherit)}.binder-unbound-warning__body{display:grid;gap:6px}.binder-unbound-warning__chips{display:flex;flex-wrap:wrap;gap:6px}.binder-unbound-chip{display:inline-flex;align-items:center;gap:4px;padding:2px 8px;border-radius:999px;border:1px solid var(--md-sys-color-outline-variant, rgba(128, 128, 128, .35));background:var(--md-sys-color-surface, rgba(255, 255, 255, .65));color:inherit;font:inherit;font-size:11px;cursor:pointer}.binder-unbound-chip:hover{border-color:var(--md-sys-color-primary, currentColor)}.binder-unbound-chip:focus-visible{outline:2px solid var(--md-sys-color-primary, currentColor);outline-offset:2px}.guided-presets-bar{display:grid;gap:6px}.datasource-preview-box{display:grid;gap:8px;padding:12px;border-radius:6px;background:var(--md-sys-color-surface-container, rgba(128, 128, 128, .08))}.datasource-preview-json{margin:0;padding:8px;border-radius:4px;font-size:12px;overflow-x:auto;background:var(--md-sys-color-surface, rgba(0, 0, 0, .04))}.composer-rich-field-option{display:flex;flex-direction:column;gap:2px;padding:2px 0;line-height:1.3;min-width:0}.composer-rich-field-option__header{display:flex;align-items:center;flex-wrap:wrap;gap:6px;min-width:0}.composer-rich-field-option__label{font-weight:500;color:var(--md-sys-color-on-surface, currentColor);overflow:hidden;text-overflow:ellipsis}.composer-rich-field-option__code{font-family:var(--mat-sys-mono-font, monospace);font-size:11px;padding:1px 6px;border-radius:999px;background:var(--md-sys-color-surface-container-highest, rgba(128, 128, 128, .14));color:var(--md-sys-color-on-surface-variant, currentColor)}.composer-rich-field-option__badge{font-size:10px;font-weight:600;text-transform:uppercase;letter-spacing:.03em;padding:1px 6px;border-radius:999px;background:color-mix(in srgb,var(--md-sys-color-primary, #4f46e5) 14%,transparent);color:var(--md-sys-color-primary, currentColor)}.composer-rich-field-option__desc{font-size:11px;color:var(--md-sys-color-on-surface-variant, currentColor);white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}\n"], dependencies: [{ kind: "component", type: PagePresetComparisonComponent, selector: "praxis-page-preset-comparison", inputs: ["expanded", "layoutId", "themeId", "layoutPresetOptions", "canvas"], outputs: ["choose"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1$1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1$1.NumberValueAccessor, selector: "input[type=number][formControlName],input[type=number][formControl],input[type=number][ngModel]" }, { kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],[formArray],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1$1.MinValidator, selector: "input[type=number][min][formControlName],input[type=number][min][formControl],input[type=number][min][ngModel]", inputs: ["min"] }, { kind: "directive", type: i1$1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "directive", type: i1$1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1$1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "ngmodule", type: MatAutocompleteModule }, { kind: "component", type: i2$3.MatAutocomplete, selector: "mat-autocomplete", inputs: ["aria-label", "aria-labelledby", "displayWith", "autoActiveFirstOption", "autoSelectActiveOption", "requireSelection", "panelWidth", "disableRipple", "class", "hideSingleSelectionIndicator"], outputs: ["optionSelected", "opened", "closed", "optionActivated"], exportAs: ["matAutocomplete"] }, { kind: "component", type: i3$2.MatOption, selector: "mat-option", inputs: ["value", "id", "disabled"], outputs: ["onSelectionChange"], exportAs: ["matOption"] }, { kind: "directive", type: i2$3.MatAutocompleteTrigger, selector: "input[matAutocomplete], textarea[matAutocomplete]", inputs: ["matAutocomplete", "matAutocompletePosition", "matAutocompleteConnectedTo", "autocomplete", "matAutocompleteDisabled"], exportAs: ["matAutocompleteTrigger"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i2.MatButton, selector: " button[matButton], a[matButton], button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button], a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button] ", inputs: ["matButton"], exportAs: ["matButton", "matAnchor"] }, { kind: "component", type: i2.MatIconButton, selector: "button[mat-icon-button], a[mat-icon-button], button[matIconButton], a[matIconButton]", exportAs: ["matButton", "matAnchor"] }, { kind: "ngmodule", type: MatButtonToggleModule }, { kind: "directive", type: i4.MatButtonToggleGroup, selector: "mat-button-toggle-group", inputs: ["appearance", "name", "vertical", "value", "multiple", "disabled", "disabledInteractive", "hideSingleSelectionIndicator", "hideMultipleSelectionIndicator"], outputs: ["valueChange", "change"], exportAs: ["matButtonToggleGroup"] }, { kind: "component", type: i4.MatButtonToggle, selector: "mat-button-toggle", inputs: ["aria-label", "aria-labelledby", "id", "name", "value", "tabIndex", "disableRipple", "appearance", "checked", "disabled", "disabledInteractive"], outputs: ["change"], exportAs: ["matButtonToggle"] }, { kind: "ngmodule", type: MatFormFieldModule }, { kind: "component", type: i3$1.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i3$1.MatLabel, selector: "mat-label" }, { kind: "directive", type: i3$1.MatHint, selector: "mat-hint", inputs: ["align", "id"] }, { kind: "directive", type: i3$1.MatError, selector: "mat-error, [matError]", inputs: ["id"] }, { kind: "directive", type: i3$1.MatSuffix, selector: "[matSuffix], [matIconSuffix], [matTextSuffix]", inputs: ["matTextSuffix"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i2$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatInputModule }, { kind: "directive", type: i4$1.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly", "disabledInteractive"], exportAs: ["matInput"] }, { kind: "ngmodule", type: MatSelectModule }, { kind: "component", type: i3$2.MatSelect, selector: "mat-select", inputs: ["aria-describedby", "panelClass", "disabled", "disableRipple", "tabIndex", "hideSingleSelectionIndicator", "placeholder", "required", "multiple", "disableOptionCentering", "compareWith", "value", "aria-label", "aria-labelledby", "errorStateMatcher", "typeaheadDebounceInterval", "sortComparator", "id", "panelWidth", "canSelectNullableOptions"], outputs: ["openedChange", "opened", "closed", "selectionChange", "valueChange"], exportAs: ["matSelect"] }, { kind: "directive", type: i3$2.MatSelectTrigger, selector: "mat-select-trigger" }, { kind: "ngmodule", type: MatTabsModule }, { kind: "directive", type: i9.MatTabContent, selector: "[matTabContent]" }, { kind: "component", type: i9.MatTab, selector: "mat-tab", inputs: ["disabled", "label", "aria-label", "aria-labelledby", "labelClass", "bodyClass", "id"], exportAs: ["matTab"] }, { kind: "component", type: i9.MatTabGroup, selector: "mat-tab-group", inputs: ["color", "fitInkBarToContent", "mat-stretch-tabs", "mat-align-tabs", "dynamicHeight", "selectedIndex", "headerPosition", "animationDuration", "contentTabIndex", "disablePagination", "disableRipple", "preserveContent", "backgroundColor", "aria-label", "aria-labelledby"], outputs: ["selectedIndexChange", "focusChange", "animationDone", "selectedTabChange"], exportAs: ["matTabGroup"] }, { kind: "ngmodule", type: MatTooltipModule }, { kind: "directive", type: i3.MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipPosition", "matTooltipPositionAtOrigin", "matTooltipDisabled", "matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }, { kind: "component", type: PraxisIconButtonComponent, selector: "button[praxisIconButton]", inputs: ["praxisIconButton", "size", "appearance", "presentation", "pressed", "busy"] }, { kind: "component", type: ResourceQuickConnectComponent, selector: "praxis-resource-quick-connect", inputs: ["resourcePath", "endpointKey", "apiUrlEntry", "intent", "resources", "label", "placeholder", "hint", "disabled"], outputs: ["resourcePathChange", "resourceSelected"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
19076
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.14", type: DynamicPageConfigEditorComponent, isStandalone: true, selector: "praxis-dynamic-page-config-editor", inputs: { page: "page", layout: "layout", presets: "presets", pagePreset: "pagePreset" }, outputs: { pageChange: "pageChange" }, host: { listeners: { "window:resize": "refreshRenderedValidation()" } }, providers: [providePraxisPageBuilderI18n()], viewQueries: [{ propertyName: "arrangementFeedback", first: true, predicate: ["arrangementFeedback"], descendants: true }], ngImport: i0, template: "<div class=\"editor\">\n @if (!isHostedInSettingsPanel) { <div class=\"head\">\n <div>{{ tx('editor.title', 'Page settings') }}</div>\n <button mat-stroked-button type=\"button\" (click)=\"reset()\">{{ tx('editor.reload', 'Reload') }}</button>\n </div> }\n\n @if (nonLimitError) { <p class=\"limits-error\" role=\"alert\">{{ nonLimitError }}</p> }\n @if (limitsError() || previousAdjustableHeights().length) {\n <section class=\"card limits-blocking-banner\" role=\"region\" [attr.aria-label]=\"tx('editor.limits.blockedBannerTitle', 'Height geometry requires review in Widget limits')\" data-testid=\"preset-geometry-blocking-banner\">\n @if (limitsError()) {\n <div class=\"head\">\n <strong>{{ tx('editor.limits.blockedBannerTitle', 'Height geometry requires review in Widget limits') }}</strong>\n </div>\n <p class=\"hint\">{{ tx('editor.limits.blockedBannerHelp', 'One or more widgets use an adjustable pixel height that exceeds the current usable area or requires review before applying the page or template:') }}</p>\n <ul class=\"blocked-widgets-list\">\n @for (item of blockedGeometryWidgets; track item.scope + ':' + item.key) {\n <li>\n <strong>{{ item.title }}</strong>\n @if (item.title !== item.key && !item.title.endsWith('(' + item.key + ')')) { <code>({{ item.key }})</code> }\n <span> \u00B7 {{ item.scopeLabel }}</span>\n @if (item.heightPx !== null) {\n <span> \u00B7 {{ tx('editor.height.fixed', 'Adjustable') }}: <strong>{{ item.heightPx }}px</strong></span>\n }\n </li>\n }\n </ul>\n <p class=\"limits-error\" role=\"alert\">{{ limitsError() }}</p>\n <div class=\"head\">\n <button mat-stroked-button type=\"button\" data-testid=\"goto-blocked-widget-limits\" (click)=\"navigateToBlockedLimit()\">\n <mat-icon aria-hidden=\"true\">tune</mat-icon>{{ tx('editor.limits.gotoLimitsAction', 'Go to Adjustments \u2192 Widget limits') }}\n </button>\n <button mat-flat-button type=\"button\" data-testid=\"switch-blocked-widgets-auto-height\" (click)=\"switchBlockedWidgetsToAutoHeight()\">\n <mat-icon aria-hidden=\"true\">height</mat-icon>{{ tx('editor.limits.switchToAutoHeightAction', 'Switch affected widgets to Automatic height') }}\n </button>\n </div>\n }\n @if (previousAdjustableHeights().length) {\n <div class=\"previous-heights-summary\" data-testid=\"previous-adjustable-heights-summary\">\n <span>{{ tx('editor.limits.previousHeightsSummary', 'Previous adjustable heights preserved for reference:') }}</span>\n @for (prev of previousAdjustableHeights(); track prev.scope + ':' + prev.key) {\n <span class=\"previous-height-chip\">{{ prev.title }} ({{ prev.scopeLabel }}): <strong>{{ prev.heightPx }}px</strong></span>\n }\n </div>\n }\n </section>\n }\n <mat-tab-group class=\"editor-tabs studio-tabs\" [mat-stretch-tabs]=\"false\" [selectedIndex]=\"workspaceTab()\" (selectedIndexChange)=\"workspaceTab.set($event)\">\n <mat-tab [label]=\"tx('studio.visualTab', 'Visual templates')\"><ng-template matTabContent>\n <section class=\"studio-panel\" data-testid=\"studio-visual\">\n <header class=\"studio-heading\"><span class=\"eyebrow\">{{ tx('studio.visualEyebrow', 'Appearance') }}</span><h2>{{ tx('studio.visualTitle', 'Give the page a visual language') }}</h2><p>{{ tx('studio.visualHelp', 'Choose surfaces, density and chart styling together. Individual widget overrides still take precedence.') }}</p></header>\n <button mat-stroked-button type=\"button\" [attr.aria-pressed]=\"!themePresetControl.value\" (click)=\"themePresetControl.setValue('')\">{{ tx('editor.layout.layoutDefault', 'Layout default') }}</button>\n <p class=\"selection-line\">{{ tx('presets.effectiveTheme', 'Effective page theme') }}: <strong>{{ selectedThemePresetEntry?.label || themePresetControl.value || globalThemePresetEntry?.label || recommendedThemePresetEntry?.label || tx('presets.hostTheme', 'Host theme') }}@if (!themePresetControl.value && globalThemePresetEntry) { ({{ tx('editor.fallback.global', 'global') }}) }</strong></p>\n <div class=\"studio-gallery\">\n @for (theme of themePresetEntries; track theme.id) {\n <button type=\"button\" class=\"studio-choice\" [class.selected]=\"themePresetControl.value === theme.id\" [attr.aria-pressed]=\"themePresetControl.value === theme.id\" [attr.data-theme-preset]=\"theme.id\" (click)=\"themePresetControl.setValue(theme.id)\">\n <span class=\"theme-sample\" aria-hidden=\"true\" [style.background]=\"themeTokens(theme.id)['--pdx-page-bg']\" [style.--sample-accent]=\"themeTokens(theme.id)['--pdx-page-accent']\" [style.--sample-surface]=\"themeTokens(theme.id)['--pdx-page-surface']\" [style.--sample-radius]=\"themeTokens(theme.id)['--pdx-page-card-radius']\" [style.--sample-shadow]=\"themeTokens(theme.id)['--pdx-page-card-shadow']\" [style.gap]=\"themeTokens(theme.id)['--pdx-page-gap']\">\n <span class=\"sample-metric\"><b>128</b><i></i></span><span class=\"sample-metric\"><b>86%</b><i></i></span><span class=\"sample-chart\"><i></i><i></i><i></i><i></i><i></i></span>\n </span>\n <span class=\"choice-title\">{{ theme.label }}@if (themePresetControl.value === theme.id) {<mat-icon aria-hidden=\"true\">check_circle</mat-icon>}</span>\n <span class=\"choice-description\">{{ tx('studio.theme.' + theme.id, theme.label) }}</span>\n <span class=\"choice-meta\">{{ tx('studio.density.' + theme.density, theme.density) }} \u00B7 {{ shellName(theme.shellPreset) }}</span>\n </button>\n }\n </div>\n <p class=\"hint\">{{ tx('studio.samplesHelp', 'Illustrative samples using the preset tokens. Apply to see the result with your content.') }}</p>\n <details class=\"shell-options\"><summary>{{ tx('studio.shellTitle', 'Customize widget surfaces') }} \u00B7 {{ shellPresetEntries.length }}</summary>\n <p>{{ tx('studio.shellHelp', 'Override the page theme\u2019s default widget surface. Per-widget appearance settings keep their priority.') }}</p>\n <button mat-stroked-button type=\"button\" [attr.aria-pressed]=\"!shellPresetControl.value\" (click)=\"shellPresetControl.setValue('')\">{{ tx('editor.layout.inheritShell', 'Inherit appearance') }}</button>\n <div class=\"studio-gallery shell-gallery\">@for (shell of shellPresetEntries; track shell.id) {\n <button type=\"button\" class=\"studio-choice\" [class.selected]=\"shellPresetControl.value === shell.id\" [attr.aria-pressed]=\"shellPresetControl.value === shell.id\" (click)=\"shellPresetControl.setValue(shell.id)\">\n <span class=\"shell-sample\" aria-hidden=\"true\" [style.background]=\"shell.appearance.card?.background\" [style.border-color]=\"shell.appearance.card?.borderColor\" [style.border-radius]=\"shell.appearance.card?.borderRadius\" [style.box-shadow]=\"shell.appearance.card?.shadow\"><span [style.background]=\"shell.appearance.header?.background\" [style.border-color]=\"shell.appearance.header?.borderColor\"><mat-icon>analytics</mat-icon><i></i></span><span [style.background]=\"shell.appearance.body?.background\"><i></i><i></i></span></span>\n <span class=\"choice-title\">{{ shellPresetLabel(shell) }}@if (shellPresetControl.value === shell.id) {<mat-icon aria-hidden=\"true\">check_circle</mat-icon>}</span><span class=\"choice-description\">{{ shellDescription(shell) }}</span>\n </button>\n }</div>\n </details>\n </section>\n </ng-template></mat-tab>\n <mat-tab [label]=\"tx('studio.layoutTab', 'Layout templates')\"><ng-template matTabContent>\n <section class=\"studio-panel\" data-testid=\"studio-layout\">\n <header class=\"studio-heading\"><span class=\"eyebrow\">{{ tx('studio.layoutEyebrow', 'Composition model') }}</span><h2>{{ tx('studio.layoutTitle', 'Choose the structure for your use case') }}</h2><p>{{ tx('studio.layoutHelp', 'Compare the roles and default theme of each model. To redistribute the widgets already on this canvas, open Arrange.') }}</p></header>\n @if (duplicateFilterOwners().length) {\n <section class=\"card filter-owner-banner\" role=\"region\" [attr.aria-label]=\"tx('studio.filterOwnerBannerTitle', 'Duplicate filter region detected')\" data-testid=\"duplicate-filter-owner-banner\">\n <div class=\"head\">\n <strong>{{ tx('studio.filterOwnerBannerTitle', 'Single filter region recommendation') }}</strong>\n </div>\n <p class=\"hint\">{{ tx('studio.filterOwnerBannerHelp', 'A table has both its integrated filter bar and an external filter link active. Choose a single query owner to avoid competing filter regions:') }}</p>\n @for (item of duplicateFilterOwners(); track item.tableKey) {\n <div class=\"filter-owner-item\" [attr.data-testid]=\"'duplicate-filter-owner-' + item.tableKey\">\n <span><strong>{{ item.tableTitle }}</strong> <code>({{ item.tableKey }})</code> \u2190 {{ item.externalSourceLabels.join(', ') }}</span>\n <div class=\"studio-actions\">\n <button mat-stroked-button type=\"button\" [attr.data-testid]=\"'consolidate-filter-table-toolbar-' + item.tableKey\" (click)=\"consolidateFilterOwnership(item.tableKey, 'keep-table-toolbar')\">\n {{ tx('studio.keepTableToolbarFilter', 'Use integrated table filter') }}\n </button>\n <button mat-stroked-button type=\"button\" [attr.data-testid]=\"'consolidate-filter-external-link-' + item.tableKey\" (click)=\"consolidateFilterOwnership(item.tableKey, 'keep-external-link')\">\n {{ tx('studio.keepExternalFilterLink', 'Use external filter bar') }}\n </button>\n </div>\n </div>\n }\n </section>\n }\n <details class=\"card composer-card\" data-testid=\"collection-screen-composer\">\n <summary>{{ tx('studio.composer.title', 'Guided collection screen composer (5-minute flow)') }}</summary>\n <p class=\"hint\">{{ tx('studio.composer.help', 'Assemble a complete collection screen with header, KPI indicators, single filter region, primary collection, and optional detail surface in the draft.') }}</p>\n <div class=\"grid\">\n <praxis-resource-quick-connect\n [formControl]=\"composerResourcePathControl\"\n intent=\"collection\"\n [label]=\"tx('studio.composer.resourcePath', 'Resource path')\"\n (resourceSelected)=\"onComposerResourceSelected($event)\"\n data-testid=\"composer-resource-path\"\n />\n <mat-form-field appearance=\"outline\">\n <mat-label>{{ tx('studio.composer.screenTitle', 'Screen title') }}</mat-label>\n <input matInput [formControl]=\"composerTitleControl\" data-testid=\"composer-title\" />\n </mat-form-field>\n <mat-form-field appearance=\"outline\">\n <mat-label>{{ tx('studio.composer.groupField', 'KPI group-by field') }}</mat-label>\n <input\n matInput\n [formControl]=\"composerGroupFieldControl\"\n [matAutocomplete]=\"composerGroupFieldPicker\"\n data-testid=\"composer-group-field\"\n />\n <mat-autocomplete\n #composerGroupFieldPicker=\"matAutocomplete\"\n (optionSelected)=\"composerGroupFieldControl.markAsPristine()\"\n >\n @for (field of filteredComposerGroupFieldOptions(); track field.name) {\n <mat-option [value]=\"field.name\" [attr.data-testid]=\"'composer-group-field-option-' + field.name\">\n <div class=\"composer-rich-field-option\">\n <div class=\"composer-rich-field-option__header\">\n <span class=\"composer-rich-field-option__label\">{{ field.label || field.name }}</span>\n @if (field.label && field.label !== field.name) {\n <code class=\"composer-rich-field-option__code\">{{ field.name }}</code>\n }\n @if (getComposerFieldTypeBadge(field); as badge) {\n <span class=\"composer-rich-field-option__badge\">{{ badge }}</span>\n }\n </div>\n @if (getComposerFieldDescription(field); as desc) {\n <span class=\"composer-rich-field-option__desc\">{{ desc }}</span>\n }\n </div>\n </mat-option>\n }\n </mat-autocomplete>\n @if (composerSelectedResource()?.capabilities?.stats === false) {\n <mat-hint data-testid=\"composer-stats-unsupported-hint\">{{ tx('studio.composer.statsUnsupportedHint', 'This resource does not publish stats/group-by aggregation; summary indicators were disabled automatically.') }}</mat-hint>\n } @else {\n <mat-hint>{{ tx('studio.composer.groupFieldHint', 'Choose the boolean or categorical field used in summary indicators.') }}</mat-hint>\n }\n </mat-form-field>\n <mat-form-field appearance=\"outline\">\n <mat-label>{{ tx('studio.composer.filterMode', 'Query filter owner') }}</mat-label>\n <mat-select [formControl]=\"composerFilterModeControl\" data-testid=\"composer-filter-mode\">\n <mat-option value=\"table-integrated\">{{ tx('studio.composer.filterIntegrated', 'Integrated table toolbar') }}</mat-option>\n <mat-option value=\"external-filter-bar\">{{ tx('studio.composer.filterExternal', 'Dedicated filter bar widget') }}</mat-option>\n </mat-select>\n </mat-form-field>\n <mat-form-field appearance=\"outline\">\n <mat-label>{{ tx('studio.composer.collectionKind', 'Primary collection') }}</mat-label>\n <mat-select [formControl]=\"composerCollectionKindControl\" data-testid=\"composer-collection-kind\">\n <mat-option value=\"table\">praxis-Table</mat-option>\n <mat-option value=\"list\">praxis-List</mat-option>\n </mat-select>\n </mat-form-field>\n <mat-form-field appearance=\"outline\">\n <mat-label>{{ tx('studio.composer.detailSurface', 'Secondary detail surface') }}</mat-label>\n <mat-select [formControl]=\"composerDetailSurfaceControl\" data-testid=\"composer-detail-surface\">\n <mat-option value=\"drawer\">Drawer</mat-option>\n <mat-option value=\"modal\">Modal</mat-option>\n <mat-option value=\"none\">{{ tx('studio.composer.noSurface', 'None') }}</mat-option>\n </mat-select>\n </mat-form-field>\n </div>\n <div class=\"studio-actions\">\n <button mat-flat-button type=\"button\" data-testid=\"composer-generate-btn\" (click)=\"composeCollectionScreen()\">\n <mat-icon aria-hidden=\"true\">auto_awesome</mat-icon>{{ tx('studio.composer.generate', 'Generate collection screen in draft') }}\n </button>\n </div>\n @if (composerMessage()) {\n <p class=\"studio-status\" role=\"status\" data-testid=\"composer-status-message\">{{ composerMessage() }}</p>\n }\n </details>\n <div class=\"studio-actions\"><button mat-stroked-button type=\"button\" [attr.aria-pressed]=\"!layoutPresetControl.value\" (click)=\"layoutPresetControl.setValue('')\">{{ tx('studio.inheritLayout', 'Use inherited model') }}</button><button mat-button type=\"button\" (click)=\"workspaceTab.set(2)\">{{ tx('studio.goArrange', 'Arrange existing widgets') }}<mat-icon iconPositionEnd>arrow_forward</mat-icon></button></div>\n @if (!layoutPresetControl.value && selectedLayoutPresetEntry) {\n <p class=\"selection-line\">{{ tx('presets.inheritedLayout', 'Inherited organization') }}: <strong>{{ tx('presets.layout.' + selectedLayoutPresetEntry.id, selectedLayoutPresetEntry.label) }}@if (!layoutPresetOptions?.presetFamily && globalPageDefaults?.layoutPreset) { ({{ tx('editor.fallback.global', 'global') }}) }</strong></p>\n }\n <praxis-page-preset-comparison [expanded]=\"true\" [layoutId]=\"layoutPresetControl.value || globalPageDefaults?.layoutPreset || ''\" [layoutPresetOptions]=\"layoutPresetOptions\" [themeId]=\"themePresetControl.value || globalPageDefaults?.themePreset || ''\" [canvas]=\"true\" (choose)=\"layoutPresetControl.setValue($event)\" />\n </section>\n </ng-template></mat-tab>\n <mat-tab [label]=\"tx('studio.arrangeTab', 'Arrange')\"><ng-template matTabContent>\n <section class=\"studio-panel\" data-testid=\"canvas-arrangement\">\n <header class=\"studio-heading\"><span class=\"eyebrow\">{{ tx('studio.arrangeEyebrow', 'Existing widgets') }} \u00B7 {{ canvasColumnsControl.value }} {{ tx('editor.layout.cols', 'Columns') }}</span><h2>{{ tx('studio.arrangeTitle', 'Find the right balance of space') }}</h2><p>{{ tx('studio.arrangeHelp', 'Choose a distribution, compare the real positions, then use it in the draft. Widgets keep their reading order and content.') }}</p></header>\n <div #arrangementFeedback tabindex=\"-1\" class=\"arrangement-feedback\">\n @if (arrangementPreview(); as preview) {\n <section class=\"arrangement-review\" aria-live=\"polite\" data-testid=\"arrangement-preview\">\n <div class=\"review-heading\"><h3>{{ tx('studio.reviewTitle', 'Compare before using') }}</h3><span>{{ preview.keys.length }} {{ tx('studio.changedWidgets', 'widgets change') }}</span></div>\n <div class=\"canvas-comparison\">\n @for (side of ['before', 'after']; track side) {\n <figure><figcaption>{{ side === 'before' ? tx('studio.before', 'Before') : tx('studio.after', 'After') }}</figcaption>\n <div class=\"canvas-map\" [style.grid-template-columns]=\"'repeat(' + preview.canvas.columns + ', minmax(0, 1fr))'\" [style.grid-template-rows]=\"'repeat(' + previewRowCount(preview.before, preview.canvas) + ', minmax(0, 1fr))'\" role=\"img\" [attr.aria-label]=\"side === 'before' ? tx('studio.before', 'Before') : tx('studio.after', 'After')\">\n @for (item of previewItems(side === 'before' ? preview.before : preview.canvas); track item.key) {\n <span [style.grid-column]=\"item.col + ' / span ' + item.colSpan\" [style.grid-row]=\"item.row + ' / span ' + item.rowSpan\" [class.changed]=\"preview.keys.includes(item.key)\" [matTooltip]=\"item.label\">{{ item.number }}</span>\n }\n </div>\n </figure>\n }\n </div>\n <p class=\"hint\">{{ tx('studio.mapHelp', 'Numbered map of your widgets. Positions and spans are to scale; content height is evaluated on the page.') }}</p>\n <details><summary>{{ tx('studio.widgetDetails', 'Widget positions and sizes') }}</summary><ol class=\"widget-changes\">@for (item of previewItems(preview.canvas); track item.key) {<li><strong>{{ item.label }}</strong><span>{{ tx('studio.before', 'Before') }}: {{ tx('editor.arrange.position', 'Column / row') }} {{ preview.before.items[item.key].col }} / {{ preview.before.items[item.key].row }} \u00B7 {{ tx('studio.gridSize', 'Size in columns \u00D7 rows') }} {{ preview.before.items[item.key].colSpan }} \u00D7 {{ preview.before.items[item.key].rowSpan }}</span><span>{{ tx('studio.after', 'After') }}: {{ tx('editor.arrange.position', 'Column / row') }} {{ item.col }} / {{ item.row }} \u00B7 {{ tx('studio.gridSize', 'Size in columns \u00D7 rows') }} {{ item.colSpan }} \u00D7 {{ item.rowSpan }}</span></li>}</ol></details>\n <button mat-flat-button type=\"button\" data-testid=\"arrangement-use\" (click)=\"useArrangement()\">{{ tx('editor.arrange.use', 'Use arrangement in draft') }}<mat-icon iconPositionEnd>arrow_forward</mat-icon></button>\n </section>\n }\n @if (arrangementMessage()) {<p class=\"studio-status\" role=\"status\">{{ arrangementMessage() }}</p>}\n @if (arrangementUndoAvailable()) {<button mat-stroked-button type=\"button\" data-testid=\"arrangement-undo\" (click)=\"undoArrangement()\"><mat-icon>undo</mat-icon>{{ tx('editor.arrange.undo', 'Undo arrangement') }}</button>}\n </div>\n <div class=\"studio-gallery arrangement-gallery\">\n @for (choice of arrangementChoices; track choice.id) {\n <button type=\"button\" class=\"studio-choice\" [class.selected]=\"arrangementSelection() === choice.id\" [attr.aria-pressed]=\"arrangementSelection() === choice.id\" [disabled]=\"!hasCanvasWidgets || !arrangementFits(choice.id)\" [attr.data-testid]=\"'arrange-' + choice.id\" (click)=\"prepareArrangement(choice.id)\">\n <span class=\"distribution-sample\" aria-hidden=\"true\" [style.grid-template-columns]=\"(arrangementFits(choice.id) ? arrangementWidths(choice.id) : choice.weights).join('fr ') + 'fr'\">@for (weight of choice.weights; track $index) {<i>{{ arrangementWidths(choice.id)[$index] }}</i>}@for (weight of choice.weights; track $index) {<i></i>}</span>\n <span class=\"choice-title\">{{ tx('editor.arrange.' + choice.id, choice.id) }}@if (arrangementSelection() === choice.id) {<mat-icon aria-hidden=\"true\">check_circle</mat-icon>}</span>\n <span class=\"choice-description\">{{ tx('studio.arrange.' + choice.id, choice.id) }}</span>\n <span class=\"choice-meta\">{{ arrangementFits(choice.id) ? arrangementWidths(choice.id).join(' + ') : tx('studio.moreColumns', 'Needs more grid columns') }}</span>\n </button>\n }\n </div>\n @if (hasCanvasWidgets) {\n <details class=\"card quick-geometry-card\" data-testid=\"quick-widget-geometry-list\">\n <summary>{{ tx('studio.quickGeometryTitle', 'Quick widget spans (columns \u00D7 rows)') }}</summary>\n <div class=\"quick-geometry-rows\">\n @for (w of quickCanvasWidgets(); track w.key) {\n <div class=\"quick-geometry-row\" [attr.data-testid]=\"'quick-geometry-row-' + w.key\">\n <span class=\"quick-geometry-label\"><mat-icon aria-hidden=\"true\">{{ w.icon }}</mat-icon><strong>{{ w.label }}</strong> <small>({{ w.colSpan }}\u00D7{{ w.rowSpan }})</small></span>\n <div class=\"studio-actions\">\n @for (span of [3, 4, 6, 12]; track span) {\n <button mat-stroked-button type=\"button\" [attr.data-testid]=\"'quick-colspan-' + w.key + '-' + span\" (click)=\"setWidgetCanvasSpan(w.key, span)\">{{ span }}c</button>\n }\n @for (rSpan of [1, 2, 4]; track rSpan) {\n <button mat-button type=\"button\" [attr.data-testid]=\"'quick-rowspan-' + w.key + '-' + rSpan\" (click)=\"setWidgetCanvasSpan(w.key, w.colSpan, rSpan)\">{{ rSpan }}r</button>\n }\n </div>\n </div>\n }\n </div>\n </details>\n }\n @if (!hasCanvasWidgets) {<p role=\"status\">{{ tx('editor.limits.empty', 'Add widgets to the canvas to configure their limits.') }}</p>}\n <details class=\"arrangement-rules\"><summary>{{ tx('studio.rules', 'Scope, devices and locked widgets') }}</summary><p>{{ tx('editor.arrange.help', 'Base canvas, in current reading order. Inheriting devices follow the base; explicit device positions are preserved. Locked positions stay in place.') }}</p><button mat-button type=\"button\" (click)=\"onSelectedTabIndexChange(5)\">{{ tx('studio.goLimits', 'Review widget limits') }}</button></details>\n </section>\n </ng-template></mat-tab>\n <mat-tab [label]=\"tx('studio.settingsTab', 'Adjustments')\">\n <div class=\"studio-panel\"><mat-tab-group class=\"editor-tabs\" [mat-stretch-tabs]=\"false\" [selectedIndex]=\"selectedTabIndex\" (selectedIndexChange)=\"selectDetailTab($event)\">\n <mat-tab [label]=\"tx('editor.tabs.layout', 'Layout')\"><div class=\"grid\"><mat-form-field appearance=\"outline\"><mat-label>{{ tx('editor.layout.cols', 'Columns') }}</mat-label><input matInput type=\"number\" min=\"1\" [formControl]=\"canvasColumnsControl\" /></mat-form-field><mat-form-field appearance=\"outline\"><mat-label>{{ tx('editor.layout.rowUnit', 'Row unit') }}</mat-label><input matInput [formControl]=\"canvasRowUnitControl\" /></mat-form-field><mat-form-field appearance=\"outline\"><mat-label>{{ tx('editor.layout.gap', 'Gap') }}</mat-label><input matInput [formControl]=\"canvasGapControl\" /></mat-form-field><mat-form-field class=\"page-inset-field\" appearance=\"outline\" floatLabel=\"always\"><mat-label>{{ tx('editor.layout.paddingInline', 'Page side inset') }}</mat-label><input matInput [formControl]=\"paddingInlineControl\" [placeholder]=\"globalPageDefaults?.paddingInline ? globalPageDefaults?.paddingInline + ' (' + tx('editor.fallback.global', 'global') + ')' : '24px'\" /><button praxisIconButton=\"help_outline\" size=\"dense\" matSuffix type=\"button\" [matTooltip]=\"tx('editor.hints.paddingInline', 'Shared space beside all page widgets. Use a CSS length or theme token; 0px removes it. Leave empty to inherit the host theme.')\" [attr.aria-label]=\"tx('editor.layout.paddingInline', 'Page side inset')\"></button></mat-form-field><mat-form-field appearance=\"outline\"><mat-label>{{ tx('editor.layout.autoRows', 'Auto rows') }}</mat-label><mat-select [formControl]=\"canvasAutoRowsControl\"><mat-option value=\"fixed\">{{ tx('editor.layout.autoRowsFixed', 'Fixed height') }}</mat-option><mat-option value=\"content\">{{ tx('editor.layout.autoRowsContent', 'Fit content') }}</mat-option></mat-select></mat-form-field></div></mat-tab>\n <mat-tab [label]=\"tx('editor.tabs.grouping', 'Grouping')\"><div class=\"panel\">\n <p class=\"hint\" data-testid=\"canvas-grouping-notice\">{{ tx('editor.grouping.canvasNotice', 'Canvas positions control this page. Groups below are preserved for flow layouts and do not arrange widgets in the canvas. Use the widget move and resize controls to place them side by side.') }}</p><div class=\"head\"><span>{{ tx('editor.grouping.title', 'Grouping') }}</span><button mat-stroked-button type=\"button\" (click)=\"addGroupingNode()\"><mat-icon>add</mat-icon>{{ tx('editor.grouping.add', 'Add group') }}</button></div>@for (group of groupingNodes.controls; track $index) {<div class=\"card\" [formGroup]=\"group\"><div class=\"head\"><span>{{ groupLabel($index) }}</span><button praxisIconButton=\"delete\" size=\"compact\" type=\"button\" [attr.aria-label]=\"tx('editor.grouping.removeAria', 'Remove group')\" (click)=\"removeGroupingNode($index)\"></button></div><div class=\"grid\"><mat-form-field appearance=\"outline\"><mat-label>{{ tx('editor.grouping.kind', 'Kind') }}</mat-label><mat-select formControlName=\"kind\"><mat-option value=\"section\">section</mat-option><mat-option value=\"tabs\">tabs</mat-option><mat-option value=\"hero\">hero</mat-option><mat-option value=\"rail\">rail</mat-option></mat-select></mat-form-field><mat-form-field appearance=\"outline\"><mat-label>{{ tx('editor.grouping.id', 'Id') }}</mat-label><input matInput formControlName=\"id\" /></mat-form-field><mat-form-field appearance=\"outline\"><mat-label>{{ tx('editor.grouping.label', 'Label') }}</mat-label><input matInput formControlName=\"label\" /></mat-form-field>@if (group.controls.kind.value === 'section') {<mat-form-field appearance=\"outline\"><mat-label>{{ tx('editor.grouping.layout', 'Layout') }}</mat-label><mat-select formControlName=\"layout\"><mat-option value=\"\">{{ tx('editor.grouping.layoutDefault', 'Default') }}</mat-option><mat-option value=\"stack\">stack</mat-option><mat-option value=\"grid\">grid</mat-option><mat-option value=\"row\">row</mat-option></mat-select></mat-form-field>}@if (group.controls.kind.value === 'hero') {<mat-form-field appearance=\"outline\"><mat-label>{{ tx('editor.grouping.emphasis', 'Emphasis') }}</mat-label><mat-select formControlName=\"emphasis\"><mat-option value=\"\">{{ tx('editor.grouping.layoutDefault', 'Default') }}</mat-option><mat-option value=\"high\">high</mat-option><mat-option value=\"medium\">medium</mat-option></mat-select></mat-form-field>}@if (group.controls.kind.value === 'rail') {<mat-form-field appearance=\"outline\"><mat-label>{{ tx('editor.grouping.side', 'Side') }}</mat-label><mat-select formControlName=\"side\"><mat-option value=\"left\">left</mat-option><mat-option value=\"right\">right</mat-option></mat-select></mat-form-field>}@if (group.controls.kind.value === 'tabs') {<mat-form-field appearance=\"outline\" class=\"wide\"><mat-label>{{ tx('editor.grouping.tabsJson', 'Tabs (JSON)') }}</mat-label><textarea matInput rows=\"4\" formControlName=\"tabsJson\"></textarea></mat-form-field>} @else {@if (bindablePageWidgets().length > 0) {<mat-form-field appearance=\"outline\" class=\"wide\"><mat-label>{{ tx('editor.grouping.widgets', 'Widgets in group') }}</mat-label><mat-select multiple [value]=\"groupingSelectedWidgetKeys($index)\" (selectionChange)=\"onGroupingWidgetSelectionChange($index, $event.value)\" [attr.data-testid]=\"'grouping-widget-select-' + $index\" panelClass=\"praxis-binder-widget-select-panel\"><mat-select-trigger><span class=\"binder-widget-trigger\"><mat-icon aria-hidden=\"true\" class=\"binder-widget-trigger-icon\">{{ groupingSelectedWidgetIcon($index) }}</mat-icon><span class=\"binder-widget-trigger-text\">{{ groupingSelectedWidgetsLabel($index) }}</span></span></mat-select-trigger>@for (w of bindablePageWidgets(); track w.key) {<mat-option [value]=\"w.key\" [attr.data-widget-key]=\"w.key\" class=\"binder-widget-option\"><span class=\"binder-widget-option-row\"><mat-icon class=\"binder-widget-option-icon\" aria-hidden=\"true\">{{ w.icon }}</mat-icon><span class=\"binder-widget-option-copy\"><strong class=\"binder-widget-option-title\">{{ w.title }}</strong>@if (w.description) {<small class=\"binder-widget-option-desc\">{{ w.description }}</small>}</span><span class=\"binder-widget-option-sr-key\" aria-hidden=\"true\">{{ w.key }}</span></span></mat-option>}</mat-select></mat-form-field>}<mat-form-field appearance=\"outline\" class=\"wide\"><mat-label>{{ tx('editor.grouping.widgetKeysCsv', 'Widget keys (comma-separated)') }}</mat-label><input matInput formControlName=\"widgetKeysCsv\" /></mat-form-field>}</div></div>}</div></mat-tab>\n <mat-tab [label]=\"tx('editor.tabs.devices', 'Device Layouts')\">\n <div class=\"panel\">\n <mat-button-toggle-group [value]=\"activeDevice()\" (change)=\"activeDevice.set($event.value)\" [attr.aria-label]=\"tx('editor.devices.target', 'Device to configure')\">\n @for (device of deviceKeys; track device) {\n <mat-button-toggle [value]=\"device\">{{ deviceLabels[device] }}</mat-button-toggle>\n }\n </mat-button-toggle-group>\n @for (device of deviceKeys; track device) {\n @if (activeDevice() === device) {\n <div class=\"card\">\n <div class=\"head\"><strong>{{ deviceLabels[device] }}</strong><button mat-stroked-button type=\"button\" [attr.data-testid]=\"'stack-device-' + device\" [disabled]=\"!hasCanvasWidgets\" (click)=\"stackDevice(device)\"><mat-icon aria-hidden=\"true\">view_agenda</mat-icon>{{ tx('editor.devices.stack', 'Stack widgets') }}</button></div>\n <p class=\"hint\">{{ tx('editor.devices.stackHelp', 'Use full width and natural height, in reading order. This replaces positions and width limits only for this device; other layouts stay unchanged.') }}</p>\n @if (stackedDevices.has(device)) { <p class=\"hint\" role=\"status\">{{ tx('editor.devices.stacked', 'Single-column layout prepared. Save to apply; Reset undoes the changes.') }}</p> }\n <div class=\"grid\">\n <mat-form-field appearance=\"outline\"><mat-label>{{ tx('editor.devices.columns', 'Columns') }}</mat-label><input matInput type=\"number\" min=\"1\" [formControl]=\"deviceForms[device].controls.columns\" /></mat-form-field>\n <mat-form-field class=\"page-inset-field\" appearance=\"outline\"><mat-label>{{ tx('editor.layout.paddingInline', 'Page side inset') }}</mat-label><input matInput [formControl]=\"deviceForms[device].controls.paddingInline\" placeholder=\"16px\" /></mat-form-field><mat-form-field appearance=\"outline\"><mat-label>{{ tx('editor.devices.gap', 'Gap') }}</mat-label><input matInput [formControl]=\"deviceForms[device].controls.gap\" /></mat-form-field>\n <mat-form-field appearance=\"outline\"><mat-label>{{ tx('editor.layout.autoRows', 'Auto rows') }}</mat-label><mat-select [formControl]=\"deviceForms[device].controls.autoRows\"><mat-option value=\"\">{{ tx('editor.devices.orientationDefault', 'Default') }}</mat-option><mat-option value=\"fixed\">{{ tx('editor.layout.autoRowsFixed', 'Fixed height') }}</mat-option><mat-option value=\"content\">{{ tx('editor.layout.autoRowsContent', 'Fit content') }}</mat-option></mat-select></mat-form-field>\n </div>\n <details><summary>{{ tx('editor.devices.advanced', 'Advanced overrides') }}</summary><div class=\"grid\">\n <mat-form-field appearance=\"outline\"><mat-label>{{ tx('editor.layout.rowUnit', 'Row unit') }}</mat-label><input matInput [formControl]=\"deviceForms[device].controls.rowUnit\" /></mat-form-field>\n <mat-form-field appearance=\"outline\" class=\"wide\"><mat-label>{{ tx('editor.devices.groupingOverridesJson', 'Grouping overrides (JSON)') }}</mat-label><textarea matInput rows=\"4\" [formControl]=\"deviceForms[device].controls.groupingOverrides\"></textarea></mat-form-field>\n <mat-form-field appearance=\"outline\" class=\"wide\"><mat-label>{{ tx('editor.devices.widgetOverridesJson', 'Widget overrides (JSON)') }}</mat-label><textarea matInput rows=\"4\" [formControl]=\"deviceForms[device].controls.widgetOverrides\"></textarea><mat-hint>{{ tx('editor.devices.widgetOverridesHelp', 'Supported per-widget properties on this device: className, span, order, and hidden. Does not override internal widget definition or inputs.') }}</mat-hint></mat-form-field>\n </div></details>\n @if (!stackedDevices.has(device)) { <div class=\"hint\">{{ tx('editor.preview.deviceCanvasHint', 'Existing canvas item overrides are preserved.') }}</div> }\n </div>\n }\n }\n </div>\n </mat-tab>\n <mat-tab [label]=\"tx('editor.tabs.context', 'Context')\"><mat-form-field appearance=\"outline\" class=\"wide\"><mat-label>{{ tx('editor.context.json', 'Context (JSON)') }}</mat-label><textarea matInput rows=\"12\" [formControl]=\"contextControl\"></textarea></mat-form-field></mat-tab>\n <mat-tab [label]=\"tx('editor.tabs.state', 'Page State')\">\n <div class=\"panel\">\n <mat-form-field appearance=\"outline\" class=\"wide\">\n <mat-label>{{ tx('editor.state.stateDefinitionJson', 'Page state (values, schema, derived \u2014 JSON)') }}</mat-label>\n <textarea matInput rows=\"10\" [formControl]=\"stateControl\" data-testid=\"page-state-json\"></textarea>\n </mat-form-field>\n\n <section class=\"panel\" data-testid=\"page-datasources-guided\">\n <div class=\"head\">\n <strong>{{ tx('editor.state.dataSourcesTitle', 'Data Sources') }}</strong>\n <div class=\"studio-actions\">\n @if (dataSourceNodes.controls.length) {\n <button\n mat-button\n type=\"button\"\n data-testid=\"page-state-sync-from-datasources\"\n (click)=\"syncStateValuesFromDataSources()\"\n >\n <mat-icon>sync</mat-icon>{{ tx('editor.state.syncFromDataSources', 'Sync state paths') }}\n </button>\n }\n <button mat-stroked-button type=\"button\" data-testid=\"page-datasources-add\" (click)=\"addDataSourceNode()\">\n <mat-icon>add</mat-icon>{{ tx('editor.state.addDataSource', 'Add data source') }}\n </button>\n </div>\n </div>\n <p class=\"hint\">{{ tx('editor.state.dataSourcesCopy', 'Bind HTTP or resource endpoints directly into page state paths with reactive parameters.') }}</p>\n @if (!dataSourceNodes.controls.length) {\n <p class=\"hint\" data-testid=\"page-datasources-empty\">{{ tx('editor.state.emptyDataSources', 'No declarative data sources configured.') }}</p>\n }\n @for (ds of dataSourceNodes.controls; track $index) {\n <div class=\"card\" [formGroup]=\"ds\" [attr.data-testid]=\"'page-datasource-card-' + $index\">\n <div class=\"head\">\n <span>{{ dataSourceLabel($index) }}</span>\n <button\n praxisIconButton=\"delete\"\n size=\"compact\"\n type=\"button\"\n [attr.data-testid]=\"'page-datasource-remove-' + $index\"\n [attr.aria-label]=\"tx('editor.state.removeDataSourceAria', 'Remove data source')\"\n (click)=\"removeDataSourceNode($index)\"\n ></button>\n </div>\n <div class=\"grid\">\n <mat-form-field appearance=\"outline\">\n <mat-label>{{ tx('editor.state.dataSourceId', 'ID') }}</mat-label>\n <input matInput formControlName=\"id\" [attr.data-testid]=\"'page-datasource-id-' + $index\" />\n </mat-form-field>\n <mat-form-field appearance=\"outline\">\n <mat-label>{{ tx('editor.state.dataSourceKind', 'Kind') }}</mat-label>\n <mat-select formControlName=\"kind\" [attr.data-testid]=\"'page-datasource-kind-' + $index\">\n <mat-option value=\"\">{{ tx('editor.common.default', 'Default') }}</mat-option>\n <mat-option value=\"remote-resource\">remote-resource</mat-option>\n <mat-option value=\"stats-query\">stats-query</mat-option>\n <mat-option value=\"raw-http\">raw-http</mat-option>\n </mat-select>\n </mat-form-field>\n <praxis-resource-quick-connect\n formControlName=\"resourcePath\"\n [intent]=\"ds.controls.kind.value === 'stats-query' ? 'stats' : (ds.controls.kind.value === 'raw-http' ? 'any' : 'collection')\"\n [endpointKey]=\"resolveEndpointKey(ds.controls.endpointKey.value)\"\n [label]=\"tx('editor.state.resourcePath', 'Resource path')\"\n [attr.data-testid]=\"'page-datasource-resourcePath-' + $index\"\n />\n <mat-form-field appearance=\"outline\">\n <mat-label>{{ tx('editor.state.endpointKey', 'Endpoint key') }}</mat-label>\n <input matInput formControlName=\"endpointKey\" [attr.data-testid]=\"'page-datasource-endpointKey-' + $index\" />\n </mat-form-field>\n <mat-form-field appearance=\"outline\">\n <mat-label>{{ tx('editor.state.method', 'HTTP method') }}</mat-label>\n <mat-select formControlName=\"method\" [attr.data-testid]=\"'page-datasource-method-' + $index\">\n <mat-option value=\"\">{{ tx('editor.common.auto', 'Auto') }}</mat-option>\n <mat-option value=\"GET\">GET</mat-option>\n <mat-option value=\"POST\">POST</mat-option>\n </mat-select>\n </mat-form-field>\n <mat-form-field appearance=\"outline\">\n <mat-label>{{ tx('editor.state.targetStatePath', 'Target state path') }}</mat-label>\n <input\n matInput\n formControlName=\"targetStatePath\"\n [attr.data-testid]=\"'page-datasource-targetStatePath-' + $index\"\n (blur)=\"syncStateValuesFromDataSources()\"\n />\n </mat-form-field>\n <mat-form-field appearance=\"outline\">\n <mat-label>{{ tx('editor.state.errorPolicy', 'Error policy') }}</mat-label>\n <mat-select formControlName=\"errorPolicy\" [attr.data-testid]=\"'page-datasource-errorPolicy-' + $index\">\n <mat-option value=\"\">{{ tx('editor.common.default', 'Default') }}</mat-option>\n <mat-option value=\"propagate\">propagate</mat-option>\n <mat-option value=\"silent\">silent</mat-option>\n <mat-option value=\"fallback\">fallback</mat-option>\n </mat-select>\n </mat-form-field>\n <mat-form-field appearance=\"outline\">\n <mat-label>{{ tx('editor.state.refreshIntervalMs', 'Refresh interval (ms)') }}</mat-label>\n <input matInput type=\"number\" min=\"0\" formControlName=\"refreshIntervalMs\" [attr.data-testid]=\"'page-datasource-refreshIntervalMs-' + $index\" />\n </mat-form-field>\n <mat-form-field appearance=\"outline\">\n <mat-label>{{ tx('editor.state.autoFetch', 'Auto fetch') }}</mat-label>\n <mat-select formControlName=\"autoFetch\" [attr.data-testid]=\"'page-datasource-autoFetch-' + $index\">\n <mat-option value=\"\">{{ tx('editor.common.default', 'Default') }}</mat-option>\n <mat-option value=\"true\">true</mat-option>\n <mat-option value=\"false\">false</mat-option>\n </mat-select>\n </mat-form-field>\n <mat-form-field appearance=\"outline\" class=\"wide\">\n <mat-label>{{ tx('editor.state.description', 'Description') }}</mat-label>\n <input matInput formControlName=\"description\" [attr.data-testid]=\"'page-datasource-description-' + $index\" />\n </mat-form-field>\n <div class=\"wide guided-presets-bar\" [attr.data-testid]=\"'page-datasource-guided-presets-' + $index\">\n <span class=\"hint\">{{ tx('editor.state.guidedPresets', 'Guided query & transform templates:') }}</span>\n <div class=\"studio-actions\">\n <button mat-stroked-button type=\"button\" [attr.data-testid]=\"'page-datasource-preset-groupby-' + $index\" (click)=\"applyGuidedDataSourceQuery($index, { mode: 'group-by', groupByField: 'ativo', metricField: 'id', metricOp: 'count' }); applyGuidedDataSourceTransform($index, { kind: 'group-by-map', totalField: 'total', mappingsText: 'true:active, false:inactive', ratioTargetField: 'activeRatePct', ratioNumeratorField: 'active', ratioDenominatorField: 'total', ratioScale: 100, ratioDecimals: 1 })\">\n {{ tx('editor.state.presetGroupByKpi', 'Group-by + Total + Ratio (%)') }}\n </button>\n <button mat-stroked-button type=\"button\" [attr.data-testid]=\"'page-datasource-preset-weighted-' + $index\" (click)=\"applyGuidedDataSourceTransform($index, { kind: 'group-by-map', totalField: 'total', weightedAverageField: 'weightedAvg', weightedAverageDecimals: 2, mappingsText: '1:low, 5:high' })\">\n {{ tx('editor.state.presetWeightedAvg', 'Weighted average') }}\n </button>\n <button mat-stroked-button type=\"button\" [attr.data-testid]=\"'page-datasource-preset-timeseries-' + $index\" (click)=\"applyGuidedDataSourceQuery($index, { mode: 'timeseries', groupByField: 'createdAt', period: 'month', metricField: 'id', metricOp: 'count' }); applyGuidedDataSourceTransform($index, { kind: 'timeseries-last', mappingsText: 'count:latestCount, avg:latestAvg' })\">\n {{ tx('editor.state.presetTimeseriesLast', 'Timeseries latest point') }}\n </button>\n <button mat-stroked-button type=\"button\" [attr.data-testid]=\"'page-datasource-preset-path-' + $index\" (click)=\"applyGuidedDataSourceTransform($index, { kind: 'path', path: 'totalElements' })\">\n {{ tx('editor.state.presetPathExtract', 'Extract path (totalElements)') }}\n </button>\n </div>\n </div>\n <mat-form-field appearance=\"outline\" class=\"wide\">\n <mat-label>{{ tx('editor.state.queryJson', 'Query (JSON)') }}</mat-label>\n <textarea matInput rows=\"3\" formControlName=\"queryJson\" [attr.data-testid]=\"'page-datasource-queryJson-' + $index\"></textarea>\n </mat-form-field>\n <mat-form-field appearance=\"outline\" class=\"wide\">\n <mat-label>{{ tx('editor.state.transformJson', 'Transform (JSON)') }}</mat-label>\n <textarea matInput rows=\"3\" formControlName=\"transformJson\" [attr.data-testid]=\"'page-datasource-transformJson-' + $index\"></textarea>\n </mat-form-field>\n <mat-form-field appearance=\"outline\" class=\"wide\">\n <mat-label>{{ tx('editor.state.fallbackJson', 'Fallback value (JSON)') }}</mat-label>\n <textarea matInput rows=\"2\" formControlName=\"fallbackJson\" [attr.data-testid]=\"'page-datasource-fallbackJson-' + $index\"></textarea>\n </mat-form-field>\n </div>\n @let preview = getDataSourcePreview($index);\n <div class=\"datasource-preview-box\" [attr.data-testid]=\"'page-datasource-preview-' + $index\">\n <div class=\"head\">\n <strong>{{ tx('editor.state.previewTitle', 'Transform & State Preview') }}</strong>\n <span class=\"previous-height-chip\">{{ preview.sourceKind === 'live' ? tx('editor.state.previewLive', 'Live response') : tx('editor.state.previewSample', 'Simulated sample') }}</span>\n </div>\n @if (preview.status === 'error') {\n <p class=\"limits-error\" role=\"alert\" [attr.data-testid]=\"'page-datasource-preview-error-' + $index\">{{ preview.error }}</p>\n } @else {\n <pre class=\"datasource-preview-json\" [attr.data-testid]=\"'page-datasource-preview-json-' + $index\">{{ preview.formattedJson }}</pre>\n @if (preview.tokens.length) {\n <div class=\"studio-actions\" [attr.data-testid]=\"'page-datasource-preview-tokens-' + $index\">\n <span class=\"hint\">{{ tx('editor.state.availableTokens', 'Click a token to prepare widget binding:') }}</span>\n @for (token of preview.tokens; track token) {\n <button mat-button type=\"button\" (click)=\"binderTokenControl.setValue(token)\"><code>{{ token }}</code></button>\n }\n </div>\n }\n }\n </div>\n </div>\n }\n </section>\n\n <section class=\"card\" data-testid=\"page-derived-measures-guided\">\n <div class=\"head\">\n <strong>{{ tx('editor.state.derivedMeasuresTitle', 'Guided Derived Measures') }}</strong>\n </div>\n <p class=\"hint\">{{ tx('editor.state.derivedMeasuresCopy', 'Create percentages, ratios, weighted averages, or formatted measures from page state paths without writing raw JsonLogic.') }}</p>\n <div class=\"grid\">\n <mat-form-field appearance=\"outline\">\n <mat-label>{{ tx('editor.state.derivedTargetPath', 'Measure key') }}</mat-label>\n <input matInput [formControl]=\"derivedPathControl\" placeholder=\"activeRatePct\" data-testid=\"derived-target-path\" />\n </mat-form-field>\n <mat-form-field appearance=\"outline\">\n <mat-label>{{ tx('editor.state.derivedKind', 'Calculation') }}</mat-label>\n <mat-select [formControl]=\"derivedKindControl\" data-testid=\"derived-kind\">\n <mat-option value=\"ratio-percent\">{{ tx('editor.state.derivedRatio', 'Ratio / Percentage') }}</mat-option>\n <mat-option value=\"weighted-average\">{{ tx('editor.state.derivedWeighted', 'Weighted average') }}</mat-option>\n <mat-option value=\"format-value\">{{ tx('editor.state.derivedFormat', 'Formatted value') }}</mat-option>\n <mat-option value=\"template\">{{ tx('editor.state.derivedTemplate', 'State reference') }}</mat-option>\n </mat-select>\n </mat-form-field>\n <mat-form-field appearance=\"outline\">\n <mat-label>{{ tx('editor.state.derivedNumerator', 'Numerator / Source path') }}</mat-label>\n <input matInput [formControl]=\"derivedNumeratorControl\" placeholder=\"kpis.active\" data-testid=\"derived-numerator\" />\n </mat-form-field>\n <mat-form-field appearance=\"outline\">\n <mat-label>{{ tx('editor.state.derivedDenominator', 'Denominator path') }}</mat-label>\n <input matInput [formControl]=\"derivedDenominatorControl\" placeholder=\"kpis.total\" data-testid=\"derived-denominator\" />\n </mat-form-field>\n <mat-form-field appearance=\"outline\">\n <mat-label>{{ tx('editor.state.derivedFormatKind', 'Format') }}</mat-label>\n <mat-select [formControl]=\"derivedFormatControl\" data-testid=\"derived-format\">\n <mat-option value=\"percent\">percent (%)</mat-option>\n <mat-option value=\"number\">number</mat-option>\n <mat-option value=\"integer\">integer</mat-option>\n <mat-option value=\"currency\">currency (R$)</mat-option>\n <mat-option value=\"boolean\">boolean</mat-option>\n </mat-select>\n </mat-form-field>\n </div>\n <div class=\"studio-actions\">\n <button mat-stroked-button type=\"button\" data-testid=\"derived-add-btn\" (click)=\"addGuidedDerivedMeasure()\">\n <mat-icon aria-hidden=\"true\">functions</mat-icon>{{ tx('editor.state.addDerivedAction', 'Add measure to page state') }}\n </button>\n </div>\n @let derivedPreview = getDerivedStatePreview();\n @if (derivedPreview.entries.length || derivedPreview.diagnostics.length) {\n <div class=\"datasource-preview-box\" data-testid=\"page-derived-preview\">\n @for (diag of derivedPreview.diagnostics; track diag) {\n <p class=\"limits-error\" role=\"alert\">{{ diag }}</p>\n }\n @if (derivedPreview.entries.length) {\n <div class=\"studio-actions\">\n @for (entry of derivedPreview.entries; track entry.key) {\n <button mat-button type=\"button\" (click)=\"binderTokenControl.setValue(entry.token)\">\n <strong>{{ entry.key }}</strong>: {{ entry.formattedValue }} <code>({{ entry.token }})</code>\n </button>\n }\n </div>\n }\n </div>\n }\n </section>\n\n <section class=\"card\" data-testid=\"page-state-component-binder\">\n <div class=\"head\">\n <strong>{{ tx('editor.state.binderTitle', 'Connect State or Measure to Widget') }}</strong>\n </div>\n <p class=\"hint\">{{ tx('editor.state.binderCopy', 'Bind any state path or derived measure directly to a widget input in the draft.') }}</p>\n <div class=\"grid\">\n <mat-form-field appearance=\"outline\">\n <mat-label>{{ tx('editor.state.binderToken', 'State token') }}</mat-label>\n <input matInput [formControl]=\"binderTokenControl\" placeholder=\"{{ '{{state.kpis.total}}' }}\" data-testid=\"binder-token\" />\n </mat-form-field>\n <mat-form-field appearance=\"outline\">\n <mat-label>{{ tx('editor.state.binderWidget', 'Target widget') }}</mat-label>\n <mat-select [formControl]=\"binderWidgetControl\" data-testid=\"binder-widget\" panelClass=\"praxis-binder-widget-select-panel\">\n @if (selectedBinderWidget(); as selectedWidget) {\n <mat-select-trigger>\n <span class=\"binder-widget-trigger\">\n <mat-icon aria-hidden=\"true\" class=\"binder-widget-trigger-icon\">{{ selectedWidget.icon }}</mat-icon>\n <span class=\"binder-widget-trigger-text\">\n <strong>{{ selectedWidget.title }}</strong>\n @if (selectedWidget.description) {\n <small> \u00B7 {{ selectedWidget.description }}</small>\n }\n </span>\n </span>\n </mat-select-trigger>\n }\n @for (w of bindablePageWidgets(); track w.key) {\n <mat-option [value]=\"w.key\" [attr.data-widget-key]=\"w.key\" class=\"binder-widget-option\">\n <span class=\"binder-widget-option-row\">\n <mat-icon aria-hidden=\"true\" class=\"binder-widget-option-icon\">{{ w.icon }}</mat-icon>\n <span class=\"binder-widget-option-copy\">\n <strong class=\"binder-widget-option-title\">{{ w.title }}</strong>\n @if (w.description) {\n <small class=\"binder-widget-option-desc\">{{ w.description }}</small>\n }\n </span>\n <span class=\"binder-widget-option-sr-key\" aria-hidden=\"true\">{{ w.key }}</span>\n </span>\n </mat-option>\n }\n </mat-select>\n </mat-form-field>\n <mat-form-field appearance=\"outline\">\n <mat-label>{{ tx('editor.state.binderInputPath', 'Widget input path') }}</mat-label>\n <input matInput [formControl]=\"binderInputPathControl\" placeholder=\"value\" data-testid=\"binder-input-path\" />\n </mat-form-field>\n </div>\n @if (availableStateBindingTokens().length) {\n <div class=\"binder-input-suggestions\" data-testid=\"binder-token-suggestions\">\n <span class=\"hint\">{{ tx('editor.state.binderTokenSuggestions', 'Available tokens:') }}</span>\n @for (availableToken of availableStateBindingTokens(); track availableToken) {\n <button\n type=\"button\"\n class=\"binder-input-suggestion-chip\"\n [class.active]=\"binderTokenControl.value === availableToken\"\n [attr.data-testid]=\"'binder-token-suggestion-' + availableToken\"\n (click)=\"selectBinderTokenSuggestion(availableToken)\"\n >\n <code>{{ availableToken }}</code>\n </button>\n }\n </div>\n }\n <div class=\"binder-input-suggestions\" data-testid=\"binder-pipe-suggestions\">\n <span class=\"hint\">{{ tx('editor.state.binderPipeSuggestions', 'Formatadores CSP-safe (pipes):') }}</span>\n @for (pipeSegment of binderDeclarativePipes; track pipeSegment) {\n <button\n type=\"button\"\n class=\"binder-input-suggestion-chip\"\n [attr.data-testid]=\"'binder-pipe-chip-' + pipeSegment\"\n (click)=\"appendBinderTokenPipe(pipeSegment)\"\n >\n <code>{{ pipeSegment }}</code>\n </button>\n }\n </div>\n @if (binderTokenPipeError(); as pipeErr) {\n <p class=\"studio-status binder-unbound-warning\" role=\"alert\" data-testid=\"binder-pipe-error\">{{ pipeErr }}</p>\n } @else if (binderTokenLivePreview(); as livePreviewVal) {\n <p class=\"hint\" data-testid=\"binder-live-preview\">\n {{ tx('editor.state.binderLivePreview', 'Preview simulado:') }} <strong>{{ livePreviewVal }}</strong>\n </p>\n }\n @if (selectedBinderWidgetInputSuggestions().length) {\n <div class=\"binder-input-suggestions\" data-testid=\"binder-input-suggestions\">\n <span class=\"hint\">{{ tx('editor.state.binderInputSuggestions', 'Suggested paths:') }}</span>\n @for (suggestedPath of selectedBinderWidgetInputSuggestions(); track suggestedPath) {\n <button\n type=\"button\"\n class=\"binder-input-suggestion-chip\"\n [class.active]=\"binderInputPathControl.value === suggestedPath\"\n [attr.data-testid]=\"'binder-input-suggestion-' + suggestedPath\"\n (click)=\"selectBinderInputPathSuggestion(suggestedPath)\"\n >\n <code>{{ suggestedPath }}</code>\n </button>\n }\n </div>\n }\n <div class=\"studio-actions\">\n <button mat-stroked-button type=\"button\" data-testid=\"binder-bind-btn\" (click)=\"bindStateTokenToWidget()\">\n <mat-icon aria-hidden=\"true\">link</mat-icon>{{ tx('editor.state.bindAction', 'Bind token to widget in draft') }}\n </button>\n <button mat-stroked-button type=\"button\" data-testid=\"binder-auto-bind-btn\" (click)=\"autoBindWidgetStatePlaceholders()\">\n <mat-icon aria-hidden=\"true\">auto_fix_high</mat-icon>{{ tx('editor.state.autoBindAction', 'Auto-bind ${...} widget placeholders') }}\n </button>\n </div>\n @if (binderMessage()) {\n <p class=\"studio-status\" role=\"status\" data-testid=\"binder-status-message\">{{ binderMessage() }}</p>\n }\n @if (invalidWidgetStateBindingPipes().length) {\n <div class=\"binder-unbound-warning\" role=\"alert\" data-testid=\"binder-invalid-pipes-warning\">\n <mat-icon aria-hidden=\"true\">error_outline</mat-icon>\n <div class=\"binder-unbound-warning__body\">\n <span>{{ tx('editor.state.invalidWidgetPipesWarning', 'Formatadores (pipes) inv\u00E1lidos detectados:') }}</span>\n <div class=\"binder-unbound-warning__chips\">\n @for (invalidBinding of invalidWidgetStateBindingPipes(); track invalidBinding.widgetKey + ':' + invalidBinding.inputPath) {\n <button\n type=\"button\"\n class=\"binder-unbound-chip\"\n [attr.data-testid]=\"'binder-invalid-pipe-chip-' + invalidBinding.widgetKey + '-' + invalidBinding.inputPath\"\n (click)=\"loadStateBindingIntoForm(invalidBinding)\"\n >\n <strong>{{ invalidBinding.widgetTitle }}</strong>.<code>{{ invalidBinding.inputPath }}</code> (<code>{{ invalidBinding.expression }}</code>)\n </button>\n }\n </div>\n </div>\n </div>\n }\n @if (unboundWidgetStatePlaceholders().length; as unboundCount) {\n <div class=\"binder-unbound-warning\" role=\"status\" data-testid=\"binder-unbound-placeholders-warning\">\n <mat-icon aria-hidden=\"true\">warning_amber</mat-icon>\n <div class=\"binder-unbound-warning__body\">\n <span>{{ tx('editor.state.unboundPlaceholdersWarning', 'Placeholders sem v\u00EDnculo detectados:') }}</span>\n <div class=\"binder-unbound-warning__chips\">\n @for (item of unboundWidgetStatePlaceholders(); track item.widgetKey + ':' + item.placeholder) {\n <button\n type=\"button\"\n class=\"binder-unbound-chip\"\n [attr.data-testid]=\"'binder-unbound-chip-' + item.widgetKey + '-' + item.placeholder\"\n [attr.title]=\"tx('editor.state.selectUnboundPlaceholderHint', 'Clique para preencher widget e caminho no formul\u00E1rio')\"\n (click)=\"selectUnboundPlaceholder(item)\"\n >\n <strong>{{ item.widgetTitle }}</strong> (<code>{{ '${' + item.placeholder + '}' }}</code>)\n </button>\n }\n </div>\n </div>\n </div>\n }\n @if (currentWidgetStateBindings().length) {\n <ul class=\"blocked-widgets-list binder-active-list\" data-testid=\"active-widget-state-bindings\">\n @for (binding of currentWidgetStateBindings(); track binding.widgetKey + ':' + binding.inputPath) {\n @let previewVal = resolveStateTokenPreview(binding.token);\n <li class=\"binder-active-item\">\n <mat-icon aria-hidden=\"true\" class=\"binder-active-icon\">{{ widgetIconForKey(binding.widgetKey) }}</mat-icon>\n <button\n type=\"button\"\n class=\"binder-active-copy binder-active-select-btn\"\n [attr.data-testid]=\"'binder-select-' + binding.widgetKey + '-' + binding.inputPath\"\n [attr.title]=\"tx('editor.state.editBindingHint', 'Click to load binding into form')\"\n (click)=\"loadStateBindingIntoForm(binding)\"\n >\n <strong>{{ binding.widgetTitle }}</strong>.<code>{{ binding.inputPath }}</code> \u2190 <code>{{ binding.token }}</code>\n @if (previewVal !== null) {\n <small class=\"binder-preview-badge\" [attr.data-testid]=\"'binder-preview-' + binding.widgetKey + '-' + binding.inputPath\">= {{ previewVal }}</small>\n }\n </button>\n <button mat-icon-button type=\"button\" [attr.data-testid]=\"'binder-unbind-' + binding.widgetKey + '-' + binding.inputPath\"\n [attr.aria-label]=\"tx('editor.state.unbindAction', 'Remove binding')\"\n (click)=\"unbindStateTokenFromWidget(binding.widgetKey, binding.inputPath)\">\n <mat-icon aria-hidden=\"true\">link_off</mat-icon>\n </button>\n </li>\n }\n </ul>\n }\n </section>\n\n <mat-form-field appearance=\"outline\" class=\"wide\">\n <mat-label>{{ tx('editor.state.dataSourcesJson', 'page.dataSources (JSON)') }}</mat-label>\n <textarea matInput rows=\"8\" [formControl]=\"dataSourcesControl\" [placeholder]=\"tx('editor.hints.dataSourcesExample', '')\" data-testid=\"page-datasources-json\"></textarea>\n </mat-form-field>\n </div>\n </mat-tab>\n <mat-tab [label]=\"tx('editor.limits.tab', 'Widget limits')\">\n <section class=\"limits-panel\" data-testid=\"canvas-limits-editor\">\n @if (workspaceTab() === 3 && activeTab() === 'limits' && canvasLimits.targets.length) {\n <div class=\"selection-identity\" tabindex=\"-1\" data-testid=\"canvas-limits-identity\">\n <mat-icon aria-hidden=\"true\">{{ limitsTargetIcon(limitsTargetControl.value) }}</mat-icon>\n <strong>{{ limitsTargetLabel(limitsTargetControl.value) }}</strong>\n </div>\n }\n\n <p class=\"hint\" id=\"canvas-limits-help\">{{ tx('editor.limits.help', 'Limits use grid columns and rows, not pixels. Leave blank for defaults, or to inherit the base limits on a device.') }}</p>\n @if (canvasLimits.targets.length) {\n <mat-form-field appearance=\"outline\" subscriptSizing=\"dynamic\">\n <mat-label>{{ tx('editor.limits.target', 'Widget and layout') }}</mat-label>\n <mat-select [formControl]=\"limitsTargetControl\" data-testid=\"canvas-limits-target\">\n <mat-select-trigger>\n <span class=\"binder-widget-trigger\">\n <mat-icon aria-hidden=\"true\" class=\"binder-widget-trigger-icon\">{{ limitsTargetIcon(limitsTargetControl.value) }}</mat-icon>\n <span class=\"binder-widget-trigger-text\">{{ limitsTargetLabel(limitsTargetControl.value) }}</span>\n </span>\n </mat-select-trigger>\n @for (target of canvasLimits.targets; track target.scope + ':' + target.key; let index = $index) {\n <mat-option [value]=\"index\">\n <mat-icon aria-hidden=\"true\">{{ limitsTargetIcon(index) }}</mat-icon>\n <span>{{ limitsTargetLabel(index) }}</span>\n </mat-option>\n }\n </mat-select>\n </mat-form-field>\n <p class=\"hint\">{{ limitsGeometryLabel() }}</p>\n @if (canvasLimits.form.controls[limitsTargetControl.value]; as limitsForm) {\n <div class=\"limits-fields\" aria-describedby=\"canvas-limits-help\">\n <mat-form-field appearance=\"outline\" subscriptSizing=\"dynamic\">\n <mat-label>{{ tx('editor.limits.minColSpan', 'Minimum width (columns)') }}</mat-label>\n <input matInput [errorStateMatcher]=\"limitsErrorMatcher\" type=\"number\" min=\"1\" step=\"1\" [formControl]=\"limitsForm.controls.minColSpan\" data-testid=\"canvas-limit-minColSpan\">\n <mat-error>{{ limitFieldError(limitsForm.controls.minColSpan) }}</mat-error>\n </mat-form-field>\n <mat-form-field appearance=\"outline\" subscriptSizing=\"dynamic\">\n <mat-label>{{ tx('editor.limits.maxColSpan', 'Maximum width (columns)') }}</mat-label>\n <input matInput [errorStateMatcher]=\"limitsErrorMatcher\" type=\"number\" min=\"1\" step=\"1\" [formControl]=\"limitsForm.controls.maxColSpan\" data-testid=\"canvas-limit-maxColSpan\">\n <mat-error>{{ limitFieldError(limitsForm.controls.maxColSpan) }}</mat-error>\n </mat-form-field>\n <mat-form-field appearance=\"outline\" subscriptSizing=\"dynamic\">\n <mat-label>{{ tx('editor.limits.minRowSpan', 'Minimum height (rows)') }}</mat-label>\n <input matInput [errorStateMatcher]=\"limitsErrorMatcher\" type=\"number\" min=\"1\" step=\"1\" [formControl]=\"limitsForm.controls.minRowSpan\" data-testid=\"canvas-limit-minRowSpan\">\n <mat-error>{{ limitFieldError(limitsForm.controls.minRowSpan) }}</mat-error>\n </mat-form-field>\n <mat-form-field appearance=\"outline\" subscriptSizing=\"dynamic\">\n <mat-label>{{ tx('editor.limits.maxRowSpan', 'Maximum height (rows)') }}</mat-label>\n <input matInput [errorStateMatcher]=\"limitsErrorMatcher\" type=\"number\" min=\"1\" step=\"1\" [formControl]=\"limitsForm.controls.maxRowSpan\" data-testid=\"canvas-limit-maxRowSpan\">\n <mat-error>{{ limitFieldError(limitsForm.controls.maxRowSpan) }}</mat-error>\n </mat-form-field>\n </div>\n @if (limitsUseContentHeight()) {\n <p class=\"limits-notice\"><mat-icon aria-hidden=\"true\">height</mat-icon><span>{{ tx('editor.limits.autoHeight', 'Choose natural height or an adjustable height with internal scrolling.') }}</span></p>\n <mat-button-toggle-group class=\"height-modes\" [formControl]=\"limitsForm.controls.heightMode\" [attr.aria-label]=\"tx('editor.height.mode', 'Widget height')\" data-testid=\"canvas-height-mode\">\n <mat-button-toggle value=\"inherit\">{{ tx('editor.height.inherit', 'Default') }}</mat-button-toggle>\n <mat-button-toggle value=\"auto\">{{ tx('editor.height.auto', 'Automatic') }}</mat-button-toggle>\n <mat-button-toggle value=\"fixed\">{{ tx('editor.height.fixed', 'Adjustable') }}</mat-button-toggle>\n </mat-button-toggle-group>\n @if (limitsForm.controls.heightMode.value === 'fixed') {\n <div class=\"limits-fields\">\n <mat-form-field appearance=\"outline\" subscriptSizing=\"dynamic\">\n <mat-label>{{ tx('editor.height.value', 'Height (px)') }}</mat-label>\n <input matInput type=\"number\" min=\"160\" step=\"1\" [errorStateMatcher]=\"limitsErrorMatcher\" [formControl]=\"limitsForm.controls.heightPx\" data-testid=\"canvas-height-px\">\n <mat-error>{{ limitFieldError(limitsForm.controls.heightPx) }}</mat-error>\n </mat-form-field>\n <mat-form-field appearance=\"outline\" subscriptSizing=\"dynamic\">\n <mat-label>{{ tx('editor.height.top', 'Top inset (px)') }}</mat-label>\n <input matInput type=\"number\" min=\"0\" step=\"1\" [errorStateMatcher]=\"limitsErrorMatcher\" [formControl]=\"limitsForm.controls.offsetTopPx\" data-testid=\"canvas-height-top\">\n <mat-error>{{ limitFieldError(limitsForm.controls.offsetTopPx) }}</mat-error>\n </mat-form-field>\n </div>\n }\n <div class=\"limits-fields\">\n <mat-form-field appearance=\"outline\" subscriptSizing=\"dynamic\">\n <mat-label>{{ tx('editor.height.min', 'Minimum height (px)') }}</mat-label>\n <input matInput type=\"number\" min=\"160\" step=\"1\" [errorStateMatcher]=\"limitsErrorMatcher\" [formControl]=\"limitsForm.controls.minHeightPx\" data-testid=\"canvas-limit-minHeightPx\">\n <mat-error>{{ limitFieldError(limitsForm.controls.minHeightPx) }}</mat-error>\n </mat-form-field>\n <mat-form-field appearance=\"outline\" subscriptSizing=\"dynamic\">\n <mat-label>{{ tx('editor.height.max', 'Maximum height (px)') }}</mat-label>\n <input matInput type=\"number\" min=\"160\" step=\"1\" [errorStateMatcher]=\"limitsErrorMatcher\" [formControl]=\"limitsForm.controls.maxHeightPx\" data-testid=\"canvas-limit-maxHeightPx\">\n <mat-error>{{ limitFieldError(limitsForm.controls.maxHeightPx) }}</mat-error>\n </mat-form-field>\n </div>\n }\n }\n @if (limitsSummaryError) { <p class=\"limits-error\" role=\"alert\">{{ limitsSummaryError }}</p> }\n } @else {\n <p>{{ tx('editor.limits.empty', 'Add widgets to the canvas to configure their limits.') }}</p>\n }\n </section>\n </mat-tab>\n </mat-tab-group></div>\n </mat-tab>\n </mat-tab-group>\n <details class=\"summary-details\">\n <summary>{{ tx('editor.summaryAria', 'Configuration summary') }}</summary>\n <div class=\"summary\">\n @if (!isHostedInSettingsPanel) {\n <span>{{ validationStateLabel }}</span>\n <span>{{ dirtyStateLabel }}</span>\n }\n <span>{{ selectedLayoutPresetLabel }}</span>\n <span>{{ selectedThemePresetLabel }}</span>\n <span>{{ canvasSummaryLabel }}</span>\n </div>\n </details>\n </div>\n", styles: [".page-inset-field{grid-column:1/-1;min-width:0}:host{display:block;min-width:0;max-width:100%}.height-modes{width:fit-content;max-width:100%;flex-wrap:wrap;margin-bottom:16px}.editor,.panel{display:grid;gap:16px;min-width:0;max-width:100%;color:var(--md-sys-color-on-surface, currentColor)}mat-tab-group,mat-form-field{min-width:0;max-width:100%}.head,.summary{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.summary{color:var(--md-sys-color-on-surface-variant, currentColor)}.selection-identity{display:flex;align-items:flex-start;gap:8px;padding-block:8px;background:var(--md-sys-color-surface-container-low, var(--md-sys-color-surface));overflow-wrap:anywhere}.selection-identity mat-icon{flex-shrink:0}:host ::ng-deep .editor-tabs>.mat-mdc-tab-header .mdc-tab{min-width:0;padding-inline:12px}:host ::ng-deep .editor-tabs>.mat-mdc-tab-header .mdc-tab__text-label{max-width:128px;white-space:normal;overflow-wrap:anywhere;text-align:center;letter-spacing:normal;line-height:1.25}.grid{display:grid;gap:12px;grid-template-columns:repeat(auto-fit,minmax(min(220px,100%),1fr))}@container (max-width: 600px){.grid{grid-template-columns:minmax(0,1fr)}.head,.summary{align-items:stretch}.head>button{width:100%}}@media(max-width:600px){.grid{grid-template-columns:minmax(0,1fr)}.head,.summary{align-items:stretch}.head>button{width:100%}}.card{display:grid;gap:12px;padding:16px;border:1px solid var(--md-sys-color-outline-variant, color-mix(in srgb, currentColor 18%, transparent));border-radius:8px;background:var(--md-sys-color-surface-container-low, var(--md-sys-color-surface-container, transparent));color:var(--md-sys-color-on-surface, currentColor)}.limits-panel{display:grid;gap:8px;min-width:0}.limits-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:4px 16px}.limits-fields mat-form-field{min-width:0}.limits-notice{display:flex;gap:8px;align-items:flex-start;color:var(--md-sys-color-on-surface-variant, currentColor)}.limits-notice mat-icon{flex-shrink:0}.limits-error{color:var(--md-sys-color-error, #b3261e)}.limits-blocking-banner{border-color:var(--md-sys-color-error, #b3261e);gap:8px}.blocked-widgets-list{margin:0;padding-inline-start:20px;display:grid;gap:4px}.previous-heights-summary{display:flex;flex-wrap:wrap;gap:8px;align-items:center;font:var(--mat-sys-body-small, inherit);color:var(--md-sys-color-on-surface-variant, currentColor)}.previous-height-chip{padding:2px 8px;border-radius:999px;background:var(--md-sys-color-surface-container-highest, rgba(128, 128, 128, .14))}.wide{grid-column:1/-1}.hint{color:var(--md-sys-color-on-surface-variant, currentColor);font-size:12px}.eyebrow{color:var(--md-sys-color-primary, currentColor);font-size:11px;font-weight:700;letter-spacing:0;text-transform:uppercase}:host ::ng-deep .mat-mdc-tab-body-content{padding-top:12px;box-sizing:border-box}:host{container-type:inline-size}.studio-panel{display:grid;gap:var(--p-space-4, 16px);padding-block:var(--p-space-5, 20px);min-width:0}.studio-heading h2{font-size:var(--p-font-size-lg, 20px);line-height:1.25;margin:var(--p-space-2, 8px) 0;font-weight:600}.studio-heading p{margin:0;color:var(--md-sys-color-on-surface-variant);line-height:1.5}.studio-panel h3{font-size:var(--p-font-size-md, 16px);margin:0}.studio-panel>button{justify-self:start}.studio-gallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--p-space-3, 12px)}.studio-choice{display:flex;flex-direction:column;gap:var(--p-space-2, 8px);min-width:0;padding:var(--p-space-3, 12px);text-align:start;border:1px solid var(--md-sys-color-outline-variant);border-radius:var(--p-radius-lg, 12px);background:var(--md-sys-color-surface);color:var(--md-sys-color-on-surface);font:inherit;cursor:pointer;transition:border-color var(--md-sys-motion-duration-short2, .1s),background-color var(--md-sys-motion-duration-short2, .1s)}.studio-choice:hover:not(:disabled){border-color:var(--md-sys-color-primary);background:var(--md-sys-color-surface-container-low)}.studio-choice.selected{border-color:var(--md-sys-color-primary);box-shadow:inset 0 0 0 1px var(--md-sys-color-primary);background:var(--md-sys-color-surface-container-low)}.studio-choice:focus-visible,.studio-panel summary:focus-visible{outline:3px solid var(--md-sys-color-primary);outline-offset:3px}.studio-choice:disabled{opacity:var(--p-disabled-opacity, .5);cursor:not-allowed}.choice-title{display:flex;align-items:center;justify-content:space-between;gap:var(--p-space-2, 8px);width:100%;font-weight:600;line-height:1.35}.choice-title mat-icon{color:var(--md-sys-color-primary);flex-shrink:0;font-size:20px;height:20px;width:20px}.choice-description{font-size:var(--p-font-size-sm, 13px);line-height:1.5;color:var(--md-sys-color-on-surface-variant)}.choice-meta{font-size:var(--p-font-size-xs, 12px);color:var(--md-sys-color-on-surface-variant);margin-top:auto;padding-top:var(--p-space-1, 4px)}.theme-sample{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));padding:var(--p-space-3, 12px);border-radius:var(--p-radius-md, 8px);min-height:128px;align-self:stretch;margin-bottom:var(--p-space-1, 4px)}.sample-metric,.sample-chart{background:var(--sample-surface);border-radius:var(--sample-radius);box-shadow:var(--sample-shadow);padding:var(--p-space-2, 8px)}.sample-metric b{display:block;font-size:var(--p-font-size-md, 16px)}.sample-metric i{display:block;height:3px;width:55%;margin-top:var(--p-space-1, 4px);background:var(--sample-accent)}.sample-chart{grid-column:1/-1;display:flex;height:40px;align-items:flex-end;gap:var(--p-space-2, 8px)}.sample-chart i{flex:1;background:var(--sample-accent);height:50%;border-radius:var(--p-radius-xs, 2px)}.sample-chart i:nth-child(2){height:85%}.sample-chart i:nth-child(3){height:65%}.sample-chart i:nth-child(4){height:100%}.sample-chart i:nth-child(5){height:75%}.shell-options,.arrangement-rules{border-top:1px solid var(--md-sys-color-outline-variant);padding-top:var(--p-space-3, 12px)}.studio-panel summary{cursor:pointer;font-weight:500;line-height:1.5;padding-block:var(--p-space-2, 8px)}.shell-gallery{margin-top:var(--p-space-4, 16px)}.shell-sample{display:block;align-self:stretch;border:1px solid;overflow:hidden;margin:var(--p-space-2, 8px)}.shell-sample>span{display:flex;gap:var(--p-space-2, 8px);align-items:center;padding:var(--p-space-2, 8px);border-bottom:1px solid transparent}.shell-sample i{height:4px;width:60%;background:var(--md-sys-color-on-surface-variant);opacity:.4}.shell-sample>span:last-child{min-height:30px;flex-direction:column;align-items:flex-start}.shell-sample>span:last-child i:last-child{width:40%}.selection-line{margin:0;font-size:var(--p-font-size-sm, 13px);color:var(--md-sys-color-on-surface-variant)}.studio-actions{display:flex;flex-wrap:wrap;align-items:center;gap:var(--p-space-2, 8px)}.distribution-sample{display:grid;grid-template-rows:repeat(2,1fr);gap:var(--p-space-1, 4px);align-self:stretch;height:76px;padding:var(--p-space-2, 8px);background:var(--md-sys-color-surface-container);border-radius:var(--p-radius-md, 8px)}.distribution-sample i{display:grid;place-items:center;background:var(--md-sys-color-secondary-container);color:var(--md-sys-color-on-secondary-container);border-radius:var(--p-radius-sm, 4px);font-size:var(--p-font-size-xs, 12px);font-style:normal}.distribution-sample i:nth-child(n+4){opacity:.65}.selected .distribution-sample i{background:var(--md-sys-color-primary-container);color:var(--md-sys-color-on-primary-container)}.arrangement-review{display:grid;gap:var(--p-space-3, 12px);padding-block:var(--p-space-4, 16px);border-top:2px solid var(--md-sys-color-primary)}.review-heading{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:var(--p-space-2, 8px)}.review-heading>span{font-size:var(--p-font-size-sm, 13px);color:var(--md-sys-color-primary)}.canvas-comparison{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--p-space-3, 12px)}.canvas-comparison figure{margin:0;min-width:0}.canvas-comparison figcaption{font-weight:500;margin-bottom:var(--p-space-2, 8px)}.canvas-map{display:grid;gap:2px;height:220px;padding:var(--p-space-2, 8px);border:1px solid var(--md-sys-color-outline-variant);background:var(--md-sys-color-surface-container-low);border-radius:var(--p-radius-md, 8px)}.canvas-map span{display:grid;place-items:center;min-height:0;min-width:0;overflow:hidden;font-size:var(--p-font-size-xs, 12px);color:var(--md-sys-color-on-secondary-container);background:var(--md-sys-color-secondary-container);border-radius:var(--p-radius-xs, 2px)}.canvas-map .changed{background:var(--md-sys-color-primary-container);color:var(--md-sys-color-on-primary-container)}.widget-changes{padding-inline-start:var(--p-space-5, 20px);margin:0}.widget-changes li{padding-block:var(--p-space-2, 8px);overflow-wrap:anywhere}.widget-changes span{display:block;font-size:var(--p-font-size-sm, 13px);color:var(--md-sys-color-on-surface-variant)}.studio-status{border-inline-start:3px solid var(--md-sys-color-primary);background:var(--md-sys-color-surface-container-low);padding:var(--p-space-3, 12px);margin:0;line-height:1.5}@container (max-width:420px){.studio-gallery{grid-template-columns:minmax(0,1fr)}.canvas-map{height:180px}}@media(prefers-reduced-motion:reduce){.studio-choice{transition:none}}.arrangement-feedback:empty{display:none}.arrangement-feedback:focus{outline:none}.arrangement-feedback:focus-visible{outline:2px solid var(--md-sys-color-primary);outline-offset:3px}@container (min-width:620px){.arrangement-gallery{grid-template-columns:repeat(3,minmax(0,1fr))}}:host ::ng-deep .studio-tabs>.mat-mdc-tab-header{position:sticky;top:0;z-index:var(--praxis-layer-sticky-local, 100);background:var(--md-sys-color-surface-container-low, var(--md-sys-color-surface))}:host ::ng-deep .studio-tabs>.mat-mdc-tab-header .mdc-tab{flex:1 1 0;padding-inline:var(--p-space-1, 4px)}.arrangement-feedback{scroll-margin-block-start:var(--p-space-16, 64px)}.filter-owner-banner{border-color:var(--md-sys-color-tertiary, var(--md-sys-color-primary))}.filter-owner-item{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px}.quick-geometry-rows{display:grid;gap:8px}.quick-geometry-row{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px;padding-block:4px;border-bottom:1px solid var(--md-sys-color-outline-variant, rgba(128, 128, 128, .2))}.quick-geometry-label{display:inline-flex;align-items:center;gap:6px;min-width:0}.quick-geometry-label mat-icon{font-size:18px;width:18px;height:18px;flex-shrink:0;color:var(--md-sys-color-primary, currentColor)}.binder-widget-trigger{display:inline-flex;align-items:center;gap:8px;max-width:100%;min-width:0}.binder-widget-trigger-icon{font-size:18px;width:18px;height:18px;flex-shrink:0;color:var(--md-sys-color-primary, currentColor)}.binder-widget-trigger-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}.binder-widget-trigger-text small{color:var(--md-sys-color-on-surface-variant, currentColor);font-weight:400}.binder-widget-option-row{position:relative;display:flex;align-items:flex-start;gap:10px;padding-block:4px;min-width:0}.binder-widget-option-icon{font-size:20px;width:20px;height:20px;margin-top:2px;flex-shrink:0;color:var(--md-sys-color-primary, currentColor)}.binder-widget-option-copy{display:flex;flex-direction:column;gap:2px;min-width:0;line-height:1.3}.binder-widget-option-title{font-weight:600;color:var(--md-sys-color-on-surface, currentColor);overflow-wrap:anywhere}.binder-widget-option-desc{font-size:12px;color:var(--md-sys-color-on-surface-variant, currentColor);overflow-wrap:anywhere}.binder-widget-option-sr-key{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;opacity:0;pointer-events:none}.binder-input-suggestions{display:flex;flex-wrap:wrap;align-items:center;gap:6px}.binder-input-suggestion-chip{display:inline-flex;align-items:center;padding:2px 8px;border-radius:999px;border:1px solid var(--md-sys-color-outline-variant, rgba(128, 128, 128, .3));background:var(--md-sys-color-surface, transparent);color:var(--md-sys-color-on-surface, currentColor);font-size:12px;cursor:pointer;transition:border-color .1s,background-color .1s}.binder-input-suggestion-chip:hover{border-color:var(--md-sys-color-primary, currentColor);background:var(--md-sys-color-surface-container-low, rgba(128, 128, 128, .08))}.binder-input-suggestion-chip.active{border-color:var(--md-sys-color-primary, currentColor);background:var(--md-sys-color-primary-container, rgba(128, 128, 128, .16));color:var(--md-sys-color-on-primary-container, currentColor)}.binder-active-list{list-style:none;padding-inline-start:0;gap:6px}.binder-active-item{display:flex;align-items:center;gap:8px;padding:4px 8px;border-radius:6px;background:var(--md-sys-color-surface, rgba(255, 255, 255, .03))}.binder-active-icon{font-size:18px;width:18px;height:18px;flex-shrink:0;color:var(--md-sys-color-primary, currentColor)}.binder-active-copy{flex:1 1 auto;min-width:0;overflow-wrap:anywhere}.binder-active-select-btn{appearance:none;border:none;background:transparent;color:inherit;font:inherit;text-align:start;padding:2px 4px;border-radius:4px;cursor:pointer}.binder-active-select-btn:hover{background:var(--md-sys-color-surface-container-low, rgba(128, 128, 128, .08))}.binder-active-select-btn:focus-visible{outline:2px solid var(--md-sys-color-primary, currentColor);outline-offset:2px}.binder-preview-badge{display:inline-flex;align-items:center;margin-inline-start:6px;padding:1px 6px;border-radius:999px;font-size:11px;font-weight:600;color:var(--md-sys-color-on-secondary-container, #1d192b);background:var(--md-sys-color-secondary-container, rgba(103, 80, 164, .14))}.binder-unbound-warning{display:flex;align-items:flex-start;gap:8px;padding:8px 10px;border-radius:6px;font-size:12px;border:1px solid var(--md-sys-color-tertiary, rgba(180, 110, 0, .35));background:color-mix(in srgb,var(--md-sys-color-tertiary-container, #ffdea6) 45%,transparent);color:var(--md-sys-color-on-surface, inherit)}.binder-unbound-warning__body{display:grid;gap:6px}.binder-unbound-warning__chips{display:flex;flex-wrap:wrap;gap:6px}.binder-unbound-chip{display:inline-flex;align-items:center;gap:4px;padding:2px 8px;border-radius:999px;border:1px solid var(--md-sys-color-outline-variant, rgba(128, 128, 128, .35));background:var(--md-sys-color-surface, rgba(255, 255, 255, .65));color:inherit;font:inherit;font-size:11px;cursor:pointer}.binder-unbound-chip:hover{border-color:var(--md-sys-color-primary, currentColor)}.binder-unbound-chip:focus-visible{outline:2px solid var(--md-sys-color-primary, currentColor);outline-offset:2px}.guided-presets-bar{display:grid;gap:6px}.datasource-preview-box{display:grid;gap:8px;padding:12px;border-radius:6px;background:var(--md-sys-color-surface-container, rgba(128, 128, 128, .08))}.datasource-preview-json{margin:0;padding:8px;border-radius:4px;font-size:12px;overflow-x:auto;background:var(--md-sys-color-surface, rgba(0, 0, 0, .04))}.composer-rich-field-option{display:flex;flex-direction:column;gap:2px;padding:2px 0;line-height:1.3;min-width:0}.composer-rich-field-option__header{display:flex;align-items:center;flex-wrap:wrap;gap:6px;min-width:0}.composer-rich-field-option__label{font-weight:500;color:var(--md-sys-color-on-surface, currentColor);overflow:hidden;text-overflow:ellipsis}.composer-rich-field-option__code{font-family:var(--mat-sys-mono-font, monospace);font-size:11px;padding:1px 6px;border-radius:999px;background:var(--md-sys-color-surface-container-highest, rgba(128, 128, 128, .14));color:var(--md-sys-color-on-surface-variant, currentColor)}.composer-rich-field-option__badge{font-size:10px;font-weight:600;text-transform:uppercase;letter-spacing:.03em;padding:1px 6px;border-radius:999px;background:color-mix(in srgb,var(--md-sys-color-primary, #4f46e5) 14%,transparent);color:var(--md-sys-color-primary, currentColor)}.composer-rich-field-option__desc{font-size:11px;color:var(--md-sys-color-on-surface-variant, currentColor);white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}\n"], dependencies: [{ kind: "component", type: PagePresetComparisonComponent, selector: "praxis-page-preset-comparison", inputs: ["expanded", "layoutId", "themeId", "layoutPresetOptions", "canvas"], outputs: ["choose"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1$1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1$1.NumberValueAccessor, selector: "input[type=number][formControlName],input[type=number][formControl],input[type=number][ngModel]" }, { kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],[formArray],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1$1.MinValidator, selector: "input[type=number][min][formControlName],input[type=number][min][formControl],input[type=number][min][ngModel]", inputs: ["min"] }, { kind: "directive", type: i1$1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "directive", type: i1$1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1$1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "ngmodule", type: MatAutocompleteModule }, { kind: "component", type: i2$3.MatAutocomplete, selector: "mat-autocomplete", inputs: ["aria-label", "aria-labelledby", "displayWith", "autoActiveFirstOption", "autoSelectActiveOption", "requireSelection", "panelWidth", "disableRipple", "class", "hideSingleSelectionIndicator"], outputs: ["optionSelected", "opened", "closed", "optionActivated"], exportAs: ["matAutocomplete"] }, { kind: "component", type: i3$1.MatOption, selector: "mat-option", inputs: ["value", "id", "disabled"], outputs: ["onSelectionChange"], exportAs: ["matOption"] }, { kind: "directive", type: i2$3.MatAutocompleteTrigger, selector: "input[matAutocomplete], textarea[matAutocomplete]", inputs: ["matAutocomplete", "matAutocompletePosition", "matAutocompleteConnectedTo", "autocomplete", "matAutocompleteDisabled"], exportAs: ["matAutocompleteTrigger"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i2.MatButton, selector: " button[matButton], a[matButton], button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button], a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button] ", inputs: ["matButton"], exportAs: ["matButton", "matAnchor"] }, { kind: "component", type: i2.MatIconButton, selector: "button[mat-icon-button], a[mat-icon-button], button[matIconButton], a[matIconButton]", exportAs: ["matButton", "matAnchor"] }, { kind: "ngmodule", type: MatButtonToggleModule }, { kind: "directive", type: i4.MatButtonToggleGroup, selector: "mat-button-toggle-group", inputs: ["appearance", "name", "vertical", "value", "multiple", "disabled", "disabledInteractive", "hideSingleSelectionIndicator", "hideMultipleSelectionIndicator"], outputs: ["valueChange", "change"], exportAs: ["matButtonToggleGroup"] }, { kind: "component", type: i4.MatButtonToggle, selector: "mat-button-toggle", inputs: ["aria-label", "aria-labelledby", "id", "name", "value", "tabIndex", "disableRipple", "appearance", "checked", "disabled", "disabledInteractive"], outputs: ["change"], exportAs: ["matButtonToggle"] }, { kind: "ngmodule", type: MatFormFieldModule }, { kind: "component", type: i5$1.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i5$1.MatLabel, selector: "mat-label" }, { kind: "directive", type: i5$1.MatHint, selector: "mat-hint", inputs: ["align", "id"] }, { kind: "directive", type: i5$1.MatError, selector: "mat-error, [matError]", inputs: ["id"] }, { kind: "directive", type: i5$1.MatSuffix, selector: "[matSuffix], [matIconSuffix], [matTextSuffix]", inputs: ["matTextSuffix"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i2$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatInputModule }, { kind: "directive", type: i9.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly", "disabledInteractive"], exportAs: ["matInput"] }, { kind: "ngmodule", type: MatSelectModule }, { kind: "component", type: i3$1.MatSelect, selector: "mat-select", inputs: ["aria-describedby", "panelClass", "disabled", "disableRipple", "tabIndex", "hideSingleSelectionIndicator", "placeholder", "required", "multiple", "disableOptionCentering", "compareWith", "value", "aria-label", "aria-labelledby", "errorStateMatcher", "typeaheadDebounceInterval", "sortComparator", "id", "panelWidth", "canSelectNullableOptions"], outputs: ["openedChange", "opened", "closed", "selectionChange", "valueChange"], exportAs: ["matSelect"] }, { kind: "directive", type: i3$1.MatSelectTrigger, selector: "mat-select-trigger" }, { kind: "ngmodule", type: MatTabsModule }, { kind: "directive", type: i9$1.MatTabContent, selector: "[matTabContent]" }, { kind: "component", type: i9$1.MatTab, selector: "mat-tab", inputs: ["disabled", "label", "aria-label", "aria-labelledby", "labelClass", "bodyClass", "id"], exportAs: ["matTab"] }, { kind: "component", type: i9$1.MatTabGroup, selector: "mat-tab-group", inputs: ["color", "fitInkBarToContent", "mat-stretch-tabs", "mat-align-tabs", "dynamicHeight", "selectedIndex", "headerPosition", "animationDuration", "contentTabIndex", "disablePagination", "disableRipple", "preserveContent", "backgroundColor", "aria-label", "aria-labelledby"], outputs: ["selectedIndexChange", "focusChange", "animationDone", "selectedTabChange"], exportAs: ["matTabGroup"] }, { kind: "ngmodule", type: MatTooltipModule }, { kind: "directive", type: i3.MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipPosition", "matTooltipPositionAtOrigin", "matTooltipDisabled", "matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }, { kind: "component", type: PraxisIconButtonComponent, selector: "button[praxisIconButton]", inputs: ["praxisIconButton", "size", "appearance", "presentation", "pressed", "busy"] }, { kind: "component", type: ResourceQuickConnectComponent, selector: "praxis-resource-quick-connect", inputs: ["resourcePath", "endpointKey", "apiUrlEntry", "intent", "resources", "label", "placeholder", "hint", "disabled"], outputs: ["resourcePathChange", "resourceSelected"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
18839
19077
|
}
|
|
18840
19078
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImport: i0, type: DynamicPageConfigEditorComponent, decorators: [{
|
|
18841
19079
|
type: Component,
|
|
@@ -20796,7 +21034,7 @@ class PageConfigEditorComponent {
|
|
|
20796
21034
|
</div>
|
|
20797
21035
|
}
|
|
20798
21036
|
</div>
|
|
20799
|
-
`, isInline: true, styles: [".page-inset-field{grid-column:1 / -1;min-width:0}.page-config{display:grid;gap:12px;padding:16px;background:var(--md-sys-color-surface-container-lowest, var(--md-sys-color-surface));border:1px solid var(--md-sys-color-outline-variant);border-radius:12px}.page-head{display:flex;align-items:flex-start;gap:12px}.page-head__copy{display:grid;gap:4px}.page-title{font-weight:600;font-size:18px;line-height:1.2}.page-subtitle{max-width:72ch;color:var(--md-sys-color-on-surface-variant);font-size:13px;line-height:1.45}.spacer{flex:1}.page-summary{display:flex;flex-wrap:wrap;gap:8px}.page-tabs{border-radius:16px;overflow:hidden;background:color-mix(in srgb,var(--md-sys-color-surface-container-low) 78%,transparent);border:1px solid color-mix(in srgb,var(--md-sys-color-outline-variant) 82%,transparent)}.page-tabs ::ng-deep .mdc-tab{min-width:120px}.page-tabs ::ng-deep .mdc-tab__text-label{font-size:13px;font-weight:600}.page-tab-panel{display:grid;gap:12px;padding:16px 4px 4px}.page-chip{display:inline-flex;align-items:center;gap:8px;min-height:36px;padding:0 12px;border-radius:999px;border:1px solid color-mix(in srgb,var(--md-sys-color-outline-variant) 88%,transparent);background:color-mix(in srgb,var(--md-sys-color-surface-container-low) 82%,transparent);color:var(--md-sys-color-on-surface-variant);font-size:12px;font-weight:500}.page-chip mat-icon{width:18px;height:18px;font-size:18px}.page-chip--accent{border-color:color-mix(in srgb,var(--md-sys-color-primary) 35%,var(--md-sys-color-outline-variant));color:var(--md-sys-color-primary);background:color-mix(in srgb,var(--md-sys-color-primary-container) 30%,transparent)}.page-chip--warning{border-color:color-mix(in srgb,var(--md-sys-color-error) 35%,var(--md-sys-color-outline-variant));color:var(--md-sys-color-error);background:color-mix(in srgb,var(--md-sys-color-error-container) 35%,transparent)}.page-identity{display:grid;gap:4px;padding:12px 14px;border-radius:12px;border:1px solid color-mix(in srgb,var(--md-sys-color-outline-variant) 82%,transparent);background:color-mix(in srgb,var(--md-sys-color-surface-container-low) 70%,transparent);font-size:13px;color:var(--md-sys-color-on-surface-variant)}.page-section{font-weight:600;margin-top:8px}.page-section-help{margin-top:-4px;color:var(--md-sys-color-on-surface-variant);font-size:13px;line-height:1.45}.grid-form{display:grid;gap:12px;grid-template-columns:repeat(auto-fit,minmax(180px,1fr))}.state-grid{display:grid;gap:16px}.state-values,.state-group{padding:14px;border:1px solid var(--md-sys-color-outline-variant);border-radius:14px;background:linear-gradient(180deg,color-mix(in srgb,var(--md-sys-color-surface-container-low) 92%,transparent),transparent),var(--md-sys-color-surface-container-lowest, var(--md-sys-color-surface))}.state-group{display:grid;gap:12px}.state-group-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.state-group-title{font-weight:600}.state-group-help{color:var(--md-sys-color-on-surface-variant);font-size:13px}.state-list{display:grid;gap:12px}.state-card{display:grid;gap:12px;padding:12px;border-radius:12px;border:1px solid color-mix(in srgb,var(--md-sys-color-outline-variant) 80%,transparent);background:color-mix(in srgb,var(--md-sys-color-surface-container) 84%,transparent)}.state-card-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.state-card-title{font-weight:600}.state-card-grid{display:grid;gap:12px;grid-template-columns:repeat(auto-fit,minmax(180px,1fr))}.span-2{grid-column:span 2}.span-3{grid-column:1 / -1}.state-empty{color:var(--md-sys-color-on-surface-variant);font-size:13px}.state-operator-hint{display:flex;align-items:center;gap:8px;min-height:48px;padding:0 12px;border-radius:12px;color:var(--md-sys-color-on-surface-variant);background:color-mix(in srgb,var(--md-sys-color-secondary-container) 35%,transparent)}.state-operator-hint mat-icon{color:var(--md-sys-color-secondary)}.page-actions{display:flex;justify-content:flex-end}.page-error{color:var(--md-sys-color-error);font-size:13px}.page-config .mat-mdc-form-field{width:100%;--mdc-outlined-text-field-container-height: 48px;--mdc-outlined-text-field-outline-color: var(--md-sys-color-outline-variant);--mdc-outlined-text-field-hover-outline-color: var(--md-sys-color-outline);--mdc-outlined-text-field-focus-outline-color: var(--md-sys-color-primary);--mdc-outlined-text-field-error-outline-color: var(--md-sys-color-error);--mdc-outlined-text-field-error-focus-outline-color: var(--md-sys-color-error);--mdc-outlined-text-field-error-hover-outline-color: var(--md-sys-color-error);--mdc-outlined-text-field-label-text-color: var(--md-sys-color-on-surface-variant);--mdc-outlined-text-field-input-text-color: var(--md-sys-color-on-surface);--mdc-outlined-text-field-supporting-text-color: var(--md-sys-color-on-surface-variant)}.help-icon-button{margin-right:-4px}.mat-mdc-form-field-icon-suffix{align-self:center}@media(max-width:720px){.span-2,.span-3{grid-column:auto}.page-head{flex-direction:column}.state-group-head{align-items:stretch;flex-direction:column}}\n"], dependencies: [{ kind: "component", type: PagePresetComparisonComponent, selector: "praxis-page-preset-comparison", inputs: ["expanded", "layoutId", "themeId", "layoutPresetOptions", "canvas"], outputs: ["choose"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1$1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1$1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1$1.NumberValueAccessor, selector: "input[type=number][formControlName],input[type=number][formControl],input[type=number][ngModel]" }, { kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],[formArray],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1$1.MinValidator, selector: "input[type=number][min][formControlName],input[type=number][min][formControl],input[type=number][min][ngModel]", inputs: ["min"] }, { kind: "directive", type: i1$1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "directive", type: i1$1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1$1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i2.MatButton, selector: " button[matButton], a[matButton], button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button], a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button] ", inputs: ["matButton"], exportAs: ["matButton", "matAnchor"] }, { kind: "ngmodule", type: MatFormFieldModule }, { kind: "component", type: i3$1.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i3$1.MatLabel, selector: "mat-label" }, { kind: "directive", type: i3$1.MatSuffix, selector: "[matSuffix], [matIconSuffix], [matTextSuffix]", inputs: ["matTextSuffix"] }, { kind: "ngmodule", type: MatInputModule }, { kind: "directive", type: i4$1.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly", "disabledInteractive"], exportAs: ["matInput"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i2$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatSelectModule }, { kind: "component", type: i3$2.MatSelect, selector: "mat-select", inputs: ["aria-describedby", "panelClass", "disabled", "disableRipple", "tabIndex", "hideSingleSelectionIndicator", "placeholder", "required", "multiple", "disableOptionCentering", "compareWith", "value", "aria-label", "aria-labelledby", "errorStateMatcher", "typeaheadDebounceInterval", "sortComparator", "id", "panelWidth", "canSelectNullableOptions"], outputs: ["openedChange", "opened", "closed", "selectionChange", "valueChange"], exportAs: ["matSelect"] }, { kind: "component", type: i3$2.MatOption, selector: "mat-option", inputs: ["value", "id", "disabled"], outputs: ["onSelectionChange"], exportAs: ["matOption"] }, { kind: "ngmodule", type: MatTabsModule }, { kind: "component", type: i9.MatTab, selector: "mat-tab", inputs: ["disabled", "label", "aria-label", "aria-labelledby", "labelClass", "bodyClass", "id"], exportAs: ["matTab"] }, { kind: "component", type: i9.MatTabGroup, selector: "mat-tab-group", inputs: ["color", "fitInkBarToContent", "mat-stretch-tabs", "mat-align-tabs", "dynamicHeight", "selectedIndex", "headerPosition", "animationDuration", "contentTabIndex", "disablePagination", "disableRipple", "preserveContent", "backgroundColor", "aria-label", "aria-labelledby"], outputs: ["selectedIndexChange", "focusChange", "animationDone", "selectedTabChange"], exportAs: ["matTabGroup"] }, { kind: "ngmodule", type: MatTooltipModule }, { kind: "directive", type: i3.MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipPosition", "matTooltipPositionAtOrigin", "matTooltipDisabled", "matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }, { kind: "component", type: PraxisIconButtonComponent, selector: "button[praxisIconButton]", inputs: ["praxisIconButton", "size", "appearance", "presentation", "pressed", "busy"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
21037
|
+
`, isInline: true, styles: [".page-inset-field{grid-column:1 / -1;min-width:0}.page-config{display:grid;gap:12px;padding:16px;background:var(--md-sys-color-surface-container-lowest, var(--md-sys-color-surface));border:1px solid var(--md-sys-color-outline-variant);border-radius:12px}.page-head{display:flex;align-items:flex-start;gap:12px}.page-head__copy{display:grid;gap:4px}.page-title{font-weight:600;font-size:18px;line-height:1.2}.page-subtitle{max-width:72ch;color:var(--md-sys-color-on-surface-variant);font-size:13px;line-height:1.45}.spacer{flex:1}.page-summary{display:flex;flex-wrap:wrap;gap:8px}.page-tabs{border-radius:16px;overflow:hidden;background:color-mix(in srgb,var(--md-sys-color-surface-container-low) 78%,transparent);border:1px solid color-mix(in srgb,var(--md-sys-color-outline-variant) 82%,transparent)}.page-tabs ::ng-deep .mdc-tab{min-width:120px}.page-tabs ::ng-deep .mdc-tab__text-label{font-size:13px;font-weight:600}.page-tab-panel{display:grid;gap:12px;padding:16px 4px 4px}.page-chip{display:inline-flex;align-items:center;gap:8px;min-height:36px;padding:0 12px;border-radius:999px;border:1px solid color-mix(in srgb,var(--md-sys-color-outline-variant) 88%,transparent);background:color-mix(in srgb,var(--md-sys-color-surface-container-low) 82%,transparent);color:var(--md-sys-color-on-surface-variant);font-size:12px;font-weight:500}.page-chip mat-icon{width:18px;height:18px;font-size:18px}.page-chip--accent{border-color:color-mix(in srgb,var(--md-sys-color-primary) 35%,var(--md-sys-color-outline-variant));color:var(--md-sys-color-primary);background:color-mix(in srgb,var(--md-sys-color-primary-container) 30%,transparent)}.page-chip--warning{border-color:color-mix(in srgb,var(--md-sys-color-error) 35%,var(--md-sys-color-outline-variant));color:var(--md-sys-color-error);background:color-mix(in srgb,var(--md-sys-color-error-container) 35%,transparent)}.page-identity{display:grid;gap:4px;padding:12px 14px;border-radius:12px;border:1px solid color-mix(in srgb,var(--md-sys-color-outline-variant) 82%,transparent);background:color-mix(in srgb,var(--md-sys-color-surface-container-low) 70%,transparent);font-size:13px;color:var(--md-sys-color-on-surface-variant)}.page-section{font-weight:600;margin-top:8px}.page-section-help{margin-top:-4px;color:var(--md-sys-color-on-surface-variant);font-size:13px;line-height:1.45}.grid-form{display:grid;gap:12px;grid-template-columns:repeat(auto-fit,minmax(180px,1fr))}.state-grid{display:grid;gap:16px}.state-values,.state-group{padding:14px;border:1px solid var(--md-sys-color-outline-variant);border-radius:14px;background:linear-gradient(180deg,color-mix(in srgb,var(--md-sys-color-surface-container-low) 92%,transparent),transparent),var(--md-sys-color-surface-container-lowest, var(--md-sys-color-surface))}.state-group{display:grid;gap:12px}.state-group-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.state-group-title{font-weight:600}.state-group-help{color:var(--md-sys-color-on-surface-variant);font-size:13px}.state-list{display:grid;gap:12px}.state-card{display:grid;gap:12px;padding:12px;border-radius:12px;border:1px solid color-mix(in srgb,var(--md-sys-color-outline-variant) 80%,transparent);background:color-mix(in srgb,var(--md-sys-color-surface-container) 84%,transparent)}.state-card-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.state-card-title{font-weight:600}.state-card-grid{display:grid;gap:12px;grid-template-columns:repeat(auto-fit,minmax(180px,1fr))}.span-2{grid-column:span 2}.span-3{grid-column:1 / -1}.state-empty{color:var(--md-sys-color-on-surface-variant);font-size:13px}.state-operator-hint{display:flex;align-items:center;gap:8px;min-height:48px;padding:0 12px;border-radius:12px;color:var(--md-sys-color-on-surface-variant);background:color-mix(in srgb,var(--md-sys-color-secondary-container) 35%,transparent)}.state-operator-hint mat-icon{color:var(--md-sys-color-secondary)}.page-actions{display:flex;justify-content:flex-end}.page-error{color:var(--md-sys-color-error);font-size:13px}.page-config .mat-mdc-form-field{width:100%;--mdc-outlined-text-field-container-height: 48px;--mdc-outlined-text-field-outline-color: var(--md-sys-color-outline-variant);--mdc-outlined-text-field-hover-outline-color: var(--md-sys-color-outline);--mdc-outlined-text-field-focus-outline-color: var(--md-sys-color-primary);--mdc-outlined-text-field-error-outline-color: var(--md-sys-color-error);--mdc-outlined-text-field-error-focus-outline-color: var(--md-sys-color-error);--mdc-outlined-text-field-error-hover-outline-color: var(--md-sys-color-error);--mdc-outlined-text-field-label-text-color: var(--md-sys-color-on-surface-variant);--mdc-outlined-text-field-input-text-color: var(--md-sys-color-on-surface);--mdc-outlined-text-field-supporting-text-color: var(--md-sys-color-on-surface-variant)}.help-icon-button{margin-right:-4px}.mat-mdc-form-field-icon-suffix{align-self:center}@media(max-width:720px){.span-2,.span-3{grid-column:auto}.page-head{flex-direction:column}.state-group-head{align-items:stretch;flex-direction:column}}\n"], dependencies: [{ kind: "component", type: PagePresetComparisonComponent, selector: "praxis-page-preset-comparison", inputs: ["expanded", "layoutId", "themeId", "layoutPresetOptions", "canvas"], outputs: ["choose"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1$1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1$1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1$1.NumberValueAccessor, selector: "input[type=number][formControlName],input[type=number][formControl],input[type=number][ngModel]" }, { kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],[formArray],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1$1.MinValidator, selector: "input[type=number][min][formControlName],input[type=number][min][formControl],input[type=number][min][ngModel]", inputs: ["min"] }, { kind: "directive", type: i1$1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "directive", type: i1$1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1$1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i2.MatButton, selector: " button[matButton], a[matButton], button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button], a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button] ", inputs: ["matButton"], exportAs: ["matButton", "matAnchor"] }, { kind: "ngmodule", type: MatFormFieldModule }, { kind: "component", type: i5$1.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i5$1.MatLabel, selector: "mat-label" }, { kind: "directive", type: i5$1.MatSuffix, selector: "[matSuffix], [matIconSuffix], [matTextSuffix]", inputs: ["matTextSuffix"] }, { kind: "ngmodule", type: MatInputModule }, { kind: "directive", type: i9.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly", "disabledInteractive"], exportAs: ["matInput"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i2$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatSelectModule }, { kind: "component", type: i3$1.MatSelect, selector: "mat-select", inputs: ["aria-describedby", "panelClass", "disabled", "disableRipple", "tabIndex", "hideSingleSelectionIndicator", "placeholder", "required", "multiple", "disableOptionCentering", "compareWith", "value", "aria-label", "aria-labelledby", "errorStateMatcher", "typeaheadDebounceInterval", "sortComparator", "id", "panelWidth", "canSelectNullableOptions"], outputs: ["openedChange", "opened", "closed", "selectionChange", "valueChange"], exportAs: ["matSelect"] }, { kind: "component", type: i3$1.MatOption, selector: "mat-option", inputs: ["value", "id", "disabled"], outputs: ["onSelectionChange"], exportAs: ["matOption"] }, { kind: "ngmodule", type: MatTabsModule }, { kind: "component", type: i9$1.MatTab, selector: "mat-tab", inputs: ["disabled", "label", "aria-label", "aria-labelledby", "labelClass", "bodyClass", "id"], exportAs: ["matTab"] }, { kind: "component", type: i9$1.MatTabGroup, selector: "mat-tab-group", inputs: ["color", "fitInkBarToContent", "mat-stretch-tabs", "mat-align-tabs", "dynamicHeight", "selectedIndex", "headerPosition", "animationDuration", "contentTabIndex", "disablePagination", "disableRipple", "preserveContent", "backgroundColor", "aria-label", "aria-labelledby"], outputs: ["selectedIndexChange", "focusChange", "animationDone", "selectedTabChange"], exportAs: ["matTabGroup"] }, { kind: "ngmodule", type: MatTooltipModule }, { kind: "directive", type: i3.MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipPosition", "matTooltipPositionAtOrigin", "matTooltipDisabled", "matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }, { kind: "component", type: PraxisIconButtonComponent, selector: "button[praxisIconButton]", inputs: ["praxisIconButton", "size", "appearance", "presentation", "pressed", "busy"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
20800
21038
|
}
|
|
20801
21039
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImport: i0, type: PageConfigEditorComponent, decorators: [{
|
|
20802
21040
|
type: Component,
|
|
@@ -22999,6 +23237,9 @@ const PRAXIS_PAGE_BUILDER_AUTHORING_MANIFEST = {
|
|
|
22999
23237
|
'Child widget definition.inputs edits delegate to the child manifest or ComponentDocMeta.configEditor.',
|
|
23000
23238
|
'Agentic preview preflights UiCompositionPlan against the target registry and applies the attested WidgetPageDefinition; persistence rebuilds patch.page from that page while the surrounding envelope remains diagnostics/audit data.',
|
|
23001
23239
|
'Save uses pageIdentity and ETag policy from praxis-config-starter; pageIdentity is not persisted inside WidgetPageDefinition.',
|
|
23240
|
+
'Hosts switching tenants, users or scopes isolate Core runtime auto-persistence and agentic authoring session identity through persistenceOwnerKey, resetting unsaved local/preview state cleanly on owner transitions.',
|
|
23241
|
+
'Per-widget WidgetInstanceAuthoringPolicy (removable, duplicable, lockShellKind) and ComponentDocMeta.paletteVisibility (global, explicit-only, hidden) remain authoritative across visual edits, palette insertion and agentic applies.',
|
|
23242
|
+
'Hosts deriving standalone or closed governed snapshots capture prepared runtime pages non-destructively with capturePreparedPageSnapshot() and inspect profile compatibility via projectWidgetPageToClosedAuthoringResult().',
|
|
23002
23243
|
'Settings panel apply/save/reset/reopen must preserve page settings and widget shell config without hidden normalization drift.',
|
|
23003
23244
|
'Widget inputs and inputs.context may reference page.state.values and page.state.derived using {{state.<path> | pipe}} or ${state.<path> | pipe} with CSP-safe declarative pipes (default/coalesce, round, number, percent, currency, uppercase, lowercase); the Page State Binder detects unbound state tokens across widget inputs and *Expr properties for one-click binding.',
|
|
23004
23245
|
],
|
|
@@ -31427,6 +31668,7 @@ class DynamicPageBuilderComponent {
|
|
|
31427
31668
|
customizationMode = inject(PraxisCustomizationModeService, { optional: true });
|
|
31428
31669
|
destroyRef = inject(DestroyRef);
|
|
31429
31670
|
contextSwitchGuard = inject(PraxisContextSwitchGuard, { optional: true });
|
|
31671
|
+
logger = inject(LoggerService, { optional: true });
|
|
31430
31672
|
runtime;
|
|
31431
31673
|
page;
|
|
31432
31674
|
context = null;
|
|
@@ -31440,6 +31682,11 @@ class DynamicPageBuilderComponent {
|
|
|
31440
31682
|
governanceToolbarTitle;
|
|
31441
31683
|
pageIdentity;
|
|
31442
31684
|
componentInstanceId;
|
|
31685
|
+
/**
|
|
31686
|
+
* Optional host-defined persistence owner key (e.g. realm/org/user/writeScope)
|
|
31687
|
+
* forwarded to `<praxis-dynamic-page>` to trigger reload without host `@for` teardown.
|
|
31688
|
+
*/
|
|
31689
|
+
persistenceOwnerKey;
|
|
31443
31690
|
reconcilePersistedPage;
|
|
31444
31691
|
preparePageForPersistence;
|
|
31445
31692
|
siblingGridGeometrySync;
|
|
@@ -31447,6 +31694,7 @@ class DynamicPageBuilderComponent {
|
|
|
31447
31694
|
pageEditorComponent = DynamicPageConfigEditorComponent;
|
|
31448
31695
|
componentPaletteAllowedWidgetIds = null;
|
|
31449
31696
|
componentPaletteAllowedWidgetTags = null;
|
|
31697
|
+
componentPaletteExcludedWidgetTags = null;
|
|
31450
31698
|
componentPaletteAllowedPresetIds = null;
|
|
31451
31699
|
enableAgenticAuthoring = false;
|
|
31452
31700
|
/**
|
|
@@ -31607,6 +31855,8 @@ class DynamicPageBuilderComponent {
|
|
|
31607
31855
|
agenticAuthoringTurnInactivityTimeoutMs = AGENTIC_AUTHORING_TURN_INACTIVITY_TIMEOUT_MS;
|
|
31608
31856
|
sharedRuleHandoffRevision = 0;
|
|
31609
31857
|
agenticAuthoringPanelLayoutTouched = false;
|
|
31858
|
+
lastRuntimeAutoPersist = null;
|
|
31859
|
+
warnedImplicitAgenticAutoPersistBlock = false;
|
|
31610
31860
|
observabilityMetricsSubscription;
|
|
31611
31861
|
constructor(dialog, settingsPanel) {
|
|
31612
31862
|
this.dialog = dialog;
|
|
@@ -31672,7 +31922,7 @@ class DynamicPageBuilderComponent {
|
|
|
31672
31922
|
this.persistedUiCompositionAuthoringSource.set(null);
|
|
31673
31923
|
this.agenticAuthoringLastEtag.set(null);
|
|
31674
31924
|
}
|
|
31675
|
-
else if ((changes['page'] || changes['pageIdentity'] || changes['componentInstanceId']) && !this.authoringDocument) {
|
|
31925
|
+
else if ((changes['page'] || changes['pageIdentity'] || changes['componentInstanceId'] || changes['persistenceOwnerKey']) && !this.authoringDocument) {
|
|
31676
31926
|
const parsed = this.parsePage(this.page) || { widgets: [] };
|
|
31677
31927
|
this.currentPage.set(parsed);
|
|
31678
31928
|
this.lastRuntimePageSnapshot = this.clonePagePreservingInputs(parsed);
|
|
@@ -31691,6 +31941,7 @@ class DynamicPageBuilderComponent {
|
|
|
31691
31941
|
}
|
|
31692
31942
|
const pageIdentityChange = changes['pageIdentity'];
|
|
31693
31943
|
const componentInstanceChange = changes['componentInstanceId'];
|
|
31944
|
+
const persistenceOwnerKeyChange = changes['persistenceOwnerKey'];
|
|
31694
31945
|
const agenticComponentIdChange = changes['agenticAuthoringComponentId'];
|
|
31695
31946
|
const agenticScopeChange = changes['agenticAuthoringScope'];
|
|
31696
31947
|
const authoringDocumentOwnerChanged = authoringDocumentChange
|
|
@@ -31703,7 +31954,10 @@ class DynamicPageBuilderComponent {
|
|
|
31703
31954
|
!== this.pageIdentityFingerprint(pageIdentityChange.currentValue)) || authoringDocumentOwnerChanged || (componentInstanceChange
|
|
31704
31955
|
&& !componentInstanceChange.isFirstChange()
|
|
31705
31956
|
&& `${componentInstanceChange.previousValue ?? ''}`.trim()
|
|
31706
|
-
!== `${componentInstanceChange.currentValue ?? ''}`.trim()) || (
|
|
31957
|
+
!== `${componentInstanceChange.currentValue ?? ''}`.trim()) || (persistenceOwnerKeyChange
|
|
31958
|
+
&& !persistenceOwnerKeyChange.isFirstChange()
|
|
31959
|
+
&& `${persistenceOwnerKeyChange.previousValue ?? ''}`.trim()
|
|
31960
|
+
!== `${persistenceOwnerKeyChange.currentValue ?? ''}`.trim()) || (agenticComponentIdChange
|
|
31707
31961
|
&& !agenticComponentIdChange.isFirstChange()
|
|
31708
31962
|
&& `${agenticComponentIdChange.previousValue ?? ''}`.trim()
|
|
31709
31963
|
!== `${agenticComponentIdChange.currentValue ?? ''}`.trim()) || (agenticScopeChange
|
|
@@ -31717,7 +31971,7 @@ class DynamicPageBuilderComponent {
|
|
|
31717
31971
|
}
|
|
31718
31972
|
this.governancePersistence.set({ status: 'idle', customized: false });
|
|
31719
31973
|
this.hasLocalAuthoringChanges.set(false);
|
|
31720
|
-
this.resetAgenticAuthoringSessionState(this.resolveAgenticAuthoringSessionId(pageIdentityChange?.previousValue ?? this.pageIdentity, componentInstanceChange?.previousValue ?? this.componentInstanceId));
|
|
31974
|
+
this.resetAgenticAuthoringSessionState(this.resolveAgenticAuthoringSessionId(pageIdentityChange?.previousValue ?? this.pageIdentity, componentInstanceChange?.previousValue ?? this.componentInstanceId, persistenceOwnerKeyChange?.previousValue ?? this.persistenceOwnerKey));
|
|
31721
31975
|
}
|
|
31722
31976
|
else if (changes['pageLifecycleResetRevision'] && !changes['pageLifecycleResetRevision'].isFirstChange()) {
|
|
31723
31977
|
this.hasLocalAuthoringChanges.set(false);
|
|
@@ -31732,6 +31986,28 @@ class DynamicPageBuilderComponent {
|
|
|
31732
31986
|
this.agenticAuthoringLastEtag.set(null);
|
|
31733
31987
|
this.invalidateAgenticTerminalAuthorization();
|
|
31734
31988
|
}
|
|
31989
|
+
const nextRuntimeAutoPersist = this.runtimeAutoPersist();
|
|
31990
|
+
if (this.lastRuntimeAutoPersist === true && !nextRuntimeAutoPersist) {
|
|
31991
|
+
this.hasLocalAuthoringChanges.set(false);
|
|
31992
|
+
this.lastPreparedPersistenceBaseline = null;
|
|
31993
|
+
this.governancePersistence.set({ status: 'idle', customized: false });
|
|
31994
|
+
if (!this.authoringDocument && !changes['page']) {
|
|
31995
|
+
const parsed = this.parsePage(this.page) || { widgets: [] };
|
|
31996
|
+
this.currentPage.set(parsed);
|
|
31997
|
+
this.lastRuntimePageSnapshot = this.clonePagePreservingInputs(parsed);
|
|
31998
|
+
}
|
|
31999
|
+
}
|
|
32000
|
+
this.lastRuntimeAutoPersist = nextRuntimeAutoPersist;
|
|
32001
|
+
if (isDevMode()
|
|
32002
|
+
&& !this.warnedImplicitAgenticAutoPersistBlock
|
|
32003
|
+
&& this.autoPersist
|
|
32004
|
+
&& this.enableAgenticAuthoring
|
|
32005
|
+
&& !this.allowAutoPersistWithAgentic
|
|
32006
|
+
&& !this.autoPersistPolicy
|
|
32007
|
+
&& !this.authoringDocument) {
|
|
32008
|
+
this.warnedImplicitAgenticAutoPersistBlock = true;
|
|
32009
|
+
this.logger?.warn('[praxis-page-builder] autoPersist is suppressed while enableAgenticAuthoring is enabled without allowAutoPersistWithAgentic or autoPersistPolicy. Set [allowAutoPersistWithAgentic]="true" or [autoPersistPolicy]="\'independent\'" to keep runtime auto-persistence active.');
|
|
32010
|
+
}
|
|
31735
32011
|
this.syncShellPageGovernance();
|
|
31736
32012
|
}
|
|
31737
32013
|
ngOnDestroy() {
|
|
@@ -31772,7 +32048,13 @@ class DynamicPageBuilderComponent {
|
|
|
31772
32048
|
return this.isCustomizationEnabled() && !this.previewMode();
|
|
31773
32049
|
}
|
|
31774
32050
|
canInsertWidgets() {
|
|
31775
|
-
return this.showSettings()
|
|
32051
|
+
return (this.showSettings()
|
|
32052
|
+
&& this.isAuthoringCapabilityEnabled('insertWidgets')
|
|
32053
|
+
&& !this.isCustomWidgetInsertionBlockedByIntegrityPolicy());
|
|
32054
|
+
}
|
|
32055
|
+
isCustomWidgetInsertionBlockedByIntegrityPolicy() {
|
|
32056
|
+
return (this.integrityPolicy?.enabled !== false &&
|
|
32057
|
+
this.integrityPolicy?.allowCustomWidgets === false);
|
|
31776
32058
|
}
|
|
31777
32059
|
canOpenPageSettings() {
|
|
31778
32060
|
return this.showSettings()
|
|
@@ -32071,17 +32353,41 @@ class DynamicPageBuilderComponent {
|
|
|
32071
32353
|
return this.tx('connections.toggle', 'Edit connections');
|
|
32072
32354
|
}
|
|
32073
32355
|
onAddComponent() {
|
|
32074
|
-
if (!this.isAuthoringCapabilityEnabled('insertWidgets'))
|
|
32356
|
+
if (!this.isAuthoringCapabilityEnabled('insertWidgets') || this.isCustomWidgetInsertionBlockedByIntegrityPolicy())
|
|
32075
32357
|
return;
|
|
32076
32358
|
const canvas = this.currentPage()?.canvas;
|
|
32359
|
+
const explicitAllowedIds = (this.componentPaletteAllowedWidgetIds ?? [])
|
|
32360
|
+
.map((id) => `${id ?? ''}`.trim())
|
|
32361
|
+
.filter(Boolean);
|
|
32362
|
+
const policyAllowedIds = this.integrityPolicy?.enabled !== false &&
|
|
32363
|
+
this.integrityPolicy?.allowCustomWidgets !== false &&
|
|
32364
|
+
Array.isArray(this.integrityPolicy?.allowedWidgetIds)
|
|
32365
|
+
? this.integrityPolicy.allowedWidgetIds
|
|
32366
|
+
.map((id) => `${id ?? ''}`.trim())
|
|
32367
|
+
.filter(Boolean)
|
|
32368
|
+
: [];
|
|
32369
|
+
let effectiveAllowedWidgetIds;
|
|
32370
|
+
if (explicitAllowedIds.length > 0 && policyAllowedIds.length > 0) {
|
|
32371
|
+
const policySet = new Set(policyAllowedIds.map((id) => id.toLowerCase()));
|
|
32372
|
+
effectiveAllowedWidgetIds = explicitAllowedIds.filter((id) => policySet.has(id.toLowerCase()));
|
|
32373
|
+
}
|
|
32374
|
+
else if (explicitAllowedIds.length > 0) {
|
|
32375
|
+
effectiveAllowedWidgetIds = explicitAllowedIds;
|
|
32376
|
+
}
|
|
32377
|
+
const intersectionEmpty = explicitAllowedIds.length > 0 &&
|
|
32378
|
+
policyAllowedIds.length > 0 &&
|
|
32379
|
+
(effectiveAllowedWidgetIds?.length ?? 0) === 0;
|
|
32077
32380
|
const ref = this.dialog.open(ComponentPaletteDialogComponent, {
|
|
32078
32381
|
width: '780px',
|
|
32079
32382
|
maxWidth: '94vw',
|
|
32080
32383
|
data: {
|
|
32081
32384
|
title: this.tx('connections.palette.insertComponent', 'Insert component'),
|
|
32082
|
-
allowedWidgetIds:
|
|
32385
|
+
allowedWidgetIds: effectiveAllowedWidgetIds,
|
|
32386
|
+
policyAllowedWidgetIds: policyAllowedIds.length > 0 ? policyAllowedIds : undefined,
|
|
32083
32387
|
allowedWidgetTags: this.componentPaletteAllowedWidgetTags || undefined,
|
|
32388
|
+
excludedWidgetTags: this.componentPaletteExcludedWidgetTags || undefined,
|
|
32084
32389
|
allowedPresetIds: this.componentPaletteAllowedPresetIds || undefined,
|
|
32390
|
+
...(intersectionEmpty ? { predicate: () => false } : {}),
|
|
32085
32391
|
canvasColumns: Math.max(1, canvas?.columns || 12),
|
|
32086
32392
|
existingCanvasItems: Object.values(canvas?.items || {}),
|
|
32087
32393
|
onInsert: (selection) => this.addWidget(selection),
|
|
@@ -32093,8 +32399,26 @@ class DynamicPageBuilderComponent {
|
|
|
32093
32399
|
this.addWidget(selection);
|
|
32094
32400
|
});
|
|
32095
32401
|
}
|
|
32402
|
+
isPaletteSelectionAllowed(selection) {
|
|
32403
|
+
if (this.isCustomWidgetInsertionBlockedByIntegrityPolicy()) {
|
|
32404
|
+
return false;
|
|
32405
|
+
}
|
|
32406
|
+
const componentId = typeof selection === 'string'
|
|
32407
|
+
? selection.trim()
|
|
32408
|
+
: typeof selection?.componentId === 'string'
|
|
32409
|
+
? selection.componentId.trim()
|
|
32410
|
+
: '';
|
|
32411
|
+
if (!componentId) {
|
|
32412
|
+
return false;
|
|
32413
|
+
}
|
|
32414
|
+
const inputs = typeof selection === 'string' ? {} : (selection.inputs ?? {});
|
|
32415
|
+
return this.isWidgetAllowedForCandidateInsertion({
|
|
32416
|
+
key: '__candidate__',
|
|
32417
|
+
definition: { id: componentId, inputs },
|
|
32418
|
+
});
|
|
32419
|
+
}
|
|
32096
32420
|
addWidget(selection) {
|
|
32097
|
-
if (!this.isAuthoringCapabilityEnabled('insertWidgets'))
|
|
32421
|
+
if (!this.isAuthoringCapabilityEnabled('insertWidgets') || !this.isPaletteSelectionAllowed(selection))
|
|
32098
32422
|
return;
|
|
32099
32423
|
const next = this.clonePage(this.currentPage());
|
|
32100
32424
|
const key = this.appendWidgetToDraft(next, selection, false);
|
|
@@ -32108,9 +32432,12 @@ class DynamicPageBuilderComponent {
|
|
|
32108
32432
|
addWidgets(selections) {
|
|
32109
32433
|
if (!this.isAuthoringCapabilityEnabled('insertWidgets') || !selections?.length)
|
|
32110
32434
|
return [];
|
|
32435
|
+
const allowedSelections = selections.filter((selection) => this.isPaletteSelectionAllowed(selection));
|
|
32436
|
+
if (!allowedSelections.length)
|
|
32437
|
+
return [];
|
|
32111
32438
|
const next = this.clonePage(this.currentPage());
|
|
32112
32439
|
const keys = [];
|
|
32113
|
-
for (const selection of
|
|
32440
|
+
for (const selection of allowedSelections) {
|
|
32114
32441
|
keys.push(this.appendWidgetToDraft(next, selection, true));
|
|
32115
32442
|
}
|
|
32116
32443
|
this.lastRuntimePageSnapshot = this.clonePagePreservingInputs(next);
|
|
@@ -32251,6 +32578,24 @@ class DynamicPageBuilderComponent {
|
|
|
32251
32578
|
}
|
|
32252
32579
|
this.pageSaveRequested.emit(this.clonePage(prepared));
|
|
32253
32580
|
}
|
|
32581
|
+
/**
|
|
32582
|
+
* Produces a persistence-normalized snapshot of `currentPage()` (including
|
|
32583
|
+
* `siblingGridGeometrySync` and `preparePageForPersistence`) without emitting save
|
|
32584
|
+
* events or mutating dirty/baseline tracking — suitable for Save-As workflows.
|
|
32585
|
+
*/
|
|
32586
|
+
capturePreparedPageSnapshot() {
|
|
32587
|
+
const previousBaseline = this.lastPreparedPersistenceBaseline;
|
|
32588
|
+
try {
|
|
32589
|
+
const snapshot = this.clonePage(this.currentPage());
|
|
32590
|
+
const prepared = this.resolvedPreparePageForPersistence
|
|
32591
|
+
? this.resolvedPreparePageForPersistence(snapshot)
|
|
32592
|
+
: snapshot;
|
|
32593
|
+
return this.clonePage(prepared);
|
|
32594
|
+
}
|
|
32595
|
+
finally {
|
|
32596
|
+
this.lastPreparedPersistenceBaseline = previousBaseline;
|
|
32597
|
+
}
|
|
32598
|
+
}
|
|
32254
32599
|
canSaveCurrentPage() {
|
|
32255
32600
|
const canAutoCommitLocalPreview = this.agenticAuthoringLocalApplyOnly
|
|
32256
32601
|
&& this.hasPendingAgenticPreview()
|
|
@@ -32267,7 +32612,7 @@ class DynamicPageBuilderComponent {
|
|
|
32267
32612
|
applyConfigFromAdapter(config) {
|
|
32268
32613
|
if (!config.page)
|
|
32269
32614
|
return;
|
|
32270
|
-
const cloned = this.clonePage(config.page);
|
|
32615
|
+
const cloned = this.clonePage(this.enforcePageAuthoringPolicyOnCandidate(this.clonePage(config.page)));
|
|
32271
32616
|
this.lastRuntimePageSnapshot = this.clonePagePreservingInputs(cloned);
|
|
32272
32617
|
this.currentPage.set(cloned);
|
|
32273
32618
|
this.pageChange.emit(cloned);
|
|
@@ -32652,9 +32997,11 @@ class DynamicPageBuilderComponent {
|
|
|
32652
32997
|
return;
|
|
32653
32998
|
if (!this.agenticAuthoringOpen() && !this.hasAgenticAuthoringSession())
|
|
32654
32999
|
return;
|
|
33000
|
+
const ownerKey = typeof this.persistenceOwnerKey === 'string' ? this.persistenceOwnerKey.trim() : '';
|
|
33001
|
+
const baseOwner = this.componentInstanceId || this.pageIdentity?.routePath || 'page-builder';
|
|
32655
33002
|
this.assistantSessions.upsertSession({
|
|
32656
33003
|
id: this.resolveAgenticAuthoringSessionId(),
|
|
32657
|
-
ownerId:
|
|
33004
|
+
ownerId: ownerKey ? `${baseOwner}:${ownerKey}` : baseOwner,
|
|
32658
33005
|
ownerType: 'page-builder',
|
|
32659
33006
|
title: this.agenticAuthoringHeaderTitle(),
|
|
32660
33007
|
summary: this.agenticAuthoringDockSummary(),
|
|
@@ -32666,10 +33013,12 @@ class DynamicPageBuilderComponent {
|
|
|
32666
33013
|
icon: this.agenticAuthoringDockIcon(),
|
|
32667
33014
|
});
|
|
32668
33015
|
}
|
|
32669
|
-
resolveAgenticAuthoringSessionId(pageIdentity = this.pageIdentity, componentInstanceId = this.componentInstanceId) {
|
|
33016
|
+
resolveAgenticAuthoringSessionId(pageIdentity = this.pageIdentity, componentInstanceId = this.componentInstanceId, persistenceOwnerKey = this.persistenceOwnerKey) {
|
|
32670
33017
|
const route = pageIdentity?.routePath?.trim();
|
|
32671
33018
|
const component = componentInstanceId?.trim();
|
|
32672
|
-
|
|
33019
|
+
const owner = typeof persistenceOwnerKey === 'string' ? persistenceOwnerKey.trim() : '';
|
|
33020
|
+
const base = `page-builder:${component || route || 'default'}`;
|
|
33021
|
+
return owner ? `${base}:${owner}` : base;
|
|
32673
33022
|
}
|
|
32674
33023
|
pageIdentityFingerprint(pageIdentity) {
|
|
32675
33024
|
if (!pageIdentity) {
|
|
@@ -33641,7 +33990,7 @@ class DynamicPageBuilderComponent {
|
|
|
33641
33990
|
const basePage = (this.currentPage().widgets?.length ?? 0) === 0 && previewPage
|
|
33642
33991
|
? previewPage
|
|
33643
33992
|
: this.currentPage();
|
|
33644
|
-
const committedPage = this.clonePage(basePage);
|
|
33993
|
+
const committedPage = this.clonePage(this.enforcePageAuthoringPolicyOnCandidate(this.clonePage(basePage)));
|
|
33645
33994
|
const componentId = this.resolveAgenticComponentId() || 'local-page';
|
|
33646
33995
|
const localResult = {
|
|
33647
33996
|
applied: true,
|
|
@@ -35295,7 +35644,196 @@ class DynamicPageBuilderComponent {
|
|
|
35295
35644
|
return value;
|
|
35296
35645
|
}
|
|
35297
35646
|
resolvePreviewCompiledFormPatch(preview) {
|
|
35298
|
-
|
|
35647
|
+
const compiled = preview.compiledFormPatch;
|
|
35648
|
+
const previewPage = compiled?.patch?.page;
|
|
35649
|
+
if (!previewPage) {
|
|
35650
|
+
return compiled;
|
|
35651
|
+
}
|
|
35652
|
+
const candidate = previewPage;
|
|
35653
|
+
const guarded = this.enforcePageAuthoringPolicyOnCandidate(candidate);
|
|
35654
|
+
if (guarded === candidate) {
|
|
35655
|
+
return compiled;
|
|
35656
|
+
}
|
|
35657
|
+
const { composition: guardedComposition, ...guardedRest } = guarded;
|
|
35658
|
+
const patchedPage = {
|
|
35659
|
+
...guardedRest,
|
|
35660
|
+
...(guardedComposition
|
|
35661
|
+
? {
|
|
35662
|
+
composition: {
|
|
35663
|
+
...guardedComposition,
|
|
35664
|
+
links: guardedComposition.links ?? [],
|
|
35665
|
+
},
|
|
35666
|
+
}
|
|
35667
|
+
: {}),
|
|
35668
|
+
};
|
|
35669
|
+
return {
|
|
35670
|
+
...compiled,
|
|
35671
|
+
patch: {
|
|
35672
|
+
...compiled.patch,
|
|
35673
|
+
page: patchedPage,
|
|
35674
|
+
},
|
|
35675
|
+
};
|
|
35676
|
+
}
|
|
35677
|
+
enforcePageAuthoringPolicyOnCandidate(candidate) {
|
|
35678
|
+
const baseline = (this.authoringDocument?.payload ? this.clonePage(this.authoringDocument.payload) : undefined)
|
|
35679
|
+
?? this.parsePage(this.page)
|
|
35680
|
+
?? this.currentPage();
|
|
35681
|
+
const baselineWidgets = baseline?.widgets ?? [];
|
|
35682
|
+
const baselineByKey = new Map(baselineWidgets.map((widget) => [widget.key, widget]));
|
|
35683
|
+
const seenKeys = new Set();
|
|
35684
|
+
const blockedInsertedKeys = new Set();
|
|
35685
|
+
const guardedWidgets = [];
|
|
35686
|
+
let mutated = false;
|
|
35687
|
+
for (const widget of candidate.widgets ?? []) {
|
|
35688
|
+
const key = typeof widget?.key === 'string' ? widget.key.trim() : '';
|
|
35689
|
+
if (!key || seenKeys.has(key)) {
|
|
35690
|
+
mutated = true;
|
|
35691
|
+
continue;
|
|
35692
|
+
}
|
|
35693
|
+
const baselineWidget = baselineByKey.get(key);
|
|
35694
|
+
if (!baselineWidget) {
|
|
35695
|
+
if (!this.isWidgetAllowedForCandidateInsertion(widget)) {
|
|
35696
|
+
blockedInsertedKeys.add(key);
|
|
35697
|
+
mutated = true;
|
|
35698
|
+
continue;
|
|
35699
|
+
}
|
|
35700
|
+
seenKeys.add(key);
|
|
35701
|
+
guardedWidgets.push(widget);
|
|
35702
|
+
continue;
|
|
35703
|
+
}
|
|
35704
|
+
seenKeys.add(key);
|
|
35705
|
+
const baselinePolicy = baselineWidget.authoringPolicy;
|
|
35706
|
+
let widgetMutated = false;
|
|
35707
|
+
if (baselinePolicy) {
|
|
35708
|
+
const currentPolicy = widget.authoringPolicy;
|
|
35709
|
+
if (!currentPolicy
|
|
35710
|
+
|| currentPolicy.removable !== baselinePolicy.removable
|
|
35711
|
+
|| currentPolicy.duplicable !== baselinePolicy.duplicable
|
|
35712
|
+
|| currentPolicy.lockShellKind !== baselinePolicy.lockShellKind) {
|
|
35713
|
+
widgetMutated = true;
|
|
35714
|
+
}
|
|
35715
|
+
}
|
|
35716
|
+
if (baselinePolicy?.lockShellKind) {
|
|
35717
|
+
for (const field of ['kind', 'showHeader']) {
|
|
35718
|
+
const baseHas = Boolean(baselineWidget.shell && Object.prototype.hasOwnProperty.call(baselineWidget.shell, field));
|
|
35719
|
+
const curHas = Boolean(widget.shell && Object.prototype.hasOwnProperty.call(widget.shell, field));
|
|
35720
|
+
if (baseHas !== curHas || (baseHas && widget.shell?.[field] !== baselineWidget.shell?.[field])) {
|
|
35721
|
+
widgetMutated = true;
|
|
35722
|
+
}
|
|
35723
|
+
}
|
|
35724
|
+
}
|
|
35725
|
+
if (!widgetMutated) {
|
|
35726
|
+
guardedWidgets.push(widget);
|
|
35727
|
+
continue;
|
|
35728
|
+
}
|
|
35729
|
+
mutated = true;
|
|
35730
|
+
const nextWidget = { ...widget };
|
|
35731
|
+
if (baselinePolicy) {
|
|
35732
|
+
nextWidget.authoringPolicy = this.cloneValue(baselinePolicy);
|
|
35733
|
+
}
|
|
35734
|
+
if (baselinePolicy?.lockShellKind) {
|
|
35735
|
+
const nextShell = nextWidget.shell ? { ...nextWidget.shell } : {};
|
|
35736
|
+
for (const field of ['kind', 'showHeader']) {
|
|
35737
|
+
delete nextShell[field];
|
|
35738
|
+
if (baselineWidget.shell && Object.prototype.hasOwnProperty.call(baselineWidget.shell, field)) {
|
|
35739
|
+
Object.assign(nextShell, { [field]: baselineWidget.shell[field] });
|
|
35740
|
+
}
|
|
35741
|
+
}
|
|
35742
|
+
if (Object.keys(nextShell).length > 0) {
|
|
35743
|
+
nextWidget.shell = nextShell;
|
|
35744
|
+
}
|
|
35745
|
+
else {
|
|
35746
|
+
delete nextWidget.shell;
|
|
35747
|
+
}
|
|
35748
|
+
}
|
|
35749
|
+
guardedWidgets.push(nextWidget);
|
|
35750
|
+
}
|
|
35751
|
+
let nextCanvas = candidate.canvas;
|
|
35752
|
+
if (blockedInsertedKeys.size > 0 && nextCanvas?.items) {
|
|
35753
|
+
const filteredItems = {};
|
|
35754
|
+
for (const [itemKey, itemValue] of Object.entries(nextCanvas.items)) {
|
|
35755
|
+
if (!blockedInsertedKeys.has(itemKey)) {
|
|
35756
|
+
filteredItems[itemKey] = itemValue;
|
|
35757
|
+
}
|
|
35758
|
+
}
|
|
35759
|
+
nextCanvas = { ...nextCanvas, items: filteredItems };
|
|
35760
|
+
}
|
|
35761
|
+
for (const baselineWidget of baselineWidgets) {
|
|
35762
|
+
if (baselineWidget?.key &&
|
|
35763
|
+
baselineWidget.authoringPolicy?.removable === false &&
|
|
35764
|
+
!seenKeys.has(baselineWidget.key)) {
|
|
35765
|
+
mutated = true;
|
|
35766
|
+
seenKeys.add(baselineWidget.key);
|
|
35767
|
+
guardedWidgets.push(this.clonePagePreservingInputs({ widgets: [baselineWidget] }).widgets[0]);
|
|
35768
|
+
const baselineItem = baseline?.canvas?.items?.[baselineWidget.key];
|
|
35769
|
+
if (baselineItem && nextCanvas?.items && !nextCanvas.items[baselineWidget.key]) {
|
|
35770
|
+
nextCanvas = {
|
|
35771
|
+
...nextCanvas,
|
|
35772
|
+
items: {
|
|
35773
|
+
...nextCanvas.items,
|
|
35774
|
+
[baselineWidget.key]: this.cloneValue(baselineItem),
|
|
35775
|
+
},
|
|
35776
|
+
};
|
|
35777
|
+
}
|
|
35778
|
+
}
|
|
35779
|
+
}
|
|
35780
|
+
if (!mutated) {
|
|
35781
|
+
return candidate;
|
|
35782
|
+
}
|
|
35783
|
+
return {
|
|
35784
|
+
...candidate,
|
|
35785
|
+
widgets: guardedWidgets,
|
|
35786
|
+
...(nextCanvas ? { canvas: nextCanvas } : {}),
|
|
35787
|
+
};
|
|
35788
|
+
}
|
|
35789
|
+
isWidgetAllowedForCandidateInsertion(widget) {
|
|
35790
|
+
const componentId = typeof widget?.definition?.id === 'string' ? widget.definition.id.trim() : '';
|
|
35791
|
+
if (!componentId) {
|
|
35792
|
+
return true;
|
|
35793
|
+
}
|
|
35794
|
+
const normalizedId = componentId.toLowerCase();
|
|
35795
|
+
const meta = this.componentMetadata.get(componentId);
|
|
35796
|
+
const visibility = meta?.paletteVisibility ?? 'global';
|
|
35797
|
+
if (visibility === 'hidden') {
|
|
35798
|
+
return false;
|
|
35799
|
+
}
|
|
35800
|
+
const excludedTags = new Set((this.componentPaletteExcludedWidgetTags ?? []).map((tag) => `${tag ?? ''}`.trim().toLowerCase()).filter(Boolean));
|
|
35801
|
+
if (excludedTags.size > 0 && meta?.tags?.some((tag) => excludedTags.has(tag.toLowerCase()))) {
|
|
35802
|
+
return false;
|
|
35803
|
+
}
|
|
35804
|
+
const explicitAllowIds = new Set((this.componentPaletteAllowedWidgetIds ?? []).map((id) => `${id ?? ''}`.trim().toLowerCase()).filter(Boolean));
|
|
35805
|
+
const explicitAllowTags = new Set((this.componentPaletteAllowedWidgetTags ?? []).map((tag) => `${tag ?? ''}`.trim().toLowerCase()).filter(Boolean));
|
|
35806
|
+
if (visibility === 'explicit-only') {
|
|
35807
|
+
const explicitIdMatch = explicitAllowIds.has(normalizedId);
|
|
35808
|
+
const explicitTagMatch = Boolean(meta?.tags?.some((tag) => explicitAllowTags.has(tag.toLowerCase())));
|
|
35809
|
+
if (!explicitIdMatch && !explicitTagMatch) {
|
|
35810
|
+
return false;
|
|
35811
|
+
}
|
|
35812
|
+
}
|
|
35813
|
+
if (explicitAllowIds.size > 0 && !explicitAllowIds.has(normalizedId)) {
|
|
35814
|
+
return false;
|
|
35815
|
+
}
|
|
35816
|
+
if (explicitAllowTags.size > 0 && !meta?.tags?.some((tag) => explicitAllowTags.has(tag.toLowerCase()))) {
|
|
35817
|
+
return false;
|
|
35818
|
+
}
|
|
35819
|
+
if (this.integrityPolicy?.enabled !== false &&
|
|
35820
|
+
Array.isArray(this.integrityPolicy?.allowedWidgetIds) &&
|
|
35821
|
+
this.integrityPolicy.allowedWidgetIds.length > 0) {
|
|
35822
|
+
const policyAllowed = new Set(this.integrityPolicy.allowedWidgetIds.map((id) => `${id ?? ''}`.trim().toLowerCase()).filter(Boolean));
|
|
35823
|
+
if (policyAllowed.size > 0 && !policyAllowed.has(normalizedId)) {
|
|
35824
|
+
return false;
|
|
35825
|
+
}
|
|
35826
|
+
}
|
|
35827
|
+
if (this.integrityPolicy?.enabled !== false &&
|
|
35828
|
+
this.integrityPolicy?.allowCustomWidgets === false) {
|
|
35829
|
+
return false;
|
|
35830
|
+
}
|
|
35831
|
+
if (this.integrityPolicy?.enabled !== false &&
|
|
35832
|
+
this.integrityPolicy?.requireRegisteredWidgetIds === true &&
|
|
35833
|
+
!meta) {
|
|
35834
|
+
return false;
|
|
35835
|
+
}
|
|
35836
|
+
return true;
|
|
35299
35837
|
}
|
|
35300
35838
|
focusCanvasWidget(widgetKey) {
|
|
35301
35839
|
if (!widgetKey)
|
|
@@ -35860,7 +36398,7 @@ class DynamicPageBuilderComponent {
|
|
|
35860
36398
|
return resolvePraxisPageBuilderText(this.i18n, key, fallback);
|
|
35861
36399
|
}
|
|
35862
36400
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.14", ngImport: i0, type: DynamicPageBuilderComponent, deps: [{ token: i1.MatDialog }, { token: SETTINGS_PANEL_BRIDGE, optional: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
35863
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.14", type: DynamicPageBuilderComponent, isStandalone: true, selector: "praxis-dynamic-page-builder", inputs: { page: "page", context: "context", strictValidation: "strictValidation", autoPersist: "autoPersist", enableCustomization: "enableCustomization", authoringCapabilities: "authoringCapabilities", showSettingsButton: "showSettingsButton", showGovernanceToolbar: "showGovernanceToolbar", governanceToolbarTitle: "governanceToolbarTitle", pageIdentity: "pageIdentity", componentInstanceId: "componentInstanceId", reconcilePersistedPage: "reconcilePersistedPage", preparePageForPersistence: "preparePageForPersistence", siblingGridGeometrySync: "siblingGridGeometrySync", integrityPolicy: "integrityPolicy", pageEditorComponent: "pageEditorComponent", componentPaletteAllowedWidgetIds: "componentPaletteAllowedWidgetIds", componentPaletteAllowedWidgetTags: "componentPaletteAllowedWidgetTags", componentPaletteAllowedPresetIds: "componentPaletteAllowedPresetIds", enableAgenticAuthoring: "enableAgenticAuthoring", allowAutoPersistWithAgentic: "allowAutoPersistWithAgentic", autoPersistPolicy: "autoPersistPolicy", agenticAuthoringProvider: "agenticAuthoringProvider", agenticAuthoringModel: "agenticAuthoringModel", agenticAuthoringApiKey: "agenticAuthoringApiKey", agenticAuthoringComponentId: "agenticAuthoringComponentId", agenticAuthoringScope: "agenticAuthoringScope", agenticAuthoringEtag: "agenticAuthoringEtag", agenticAuthoringIncludeLlmDiagnostics: "agenticAuthoringIncludeLlmDiagnostics", agenticAuthoringEnableStreaming: "agenticAuthoringEnableStreaming", agenticAuthoringLocalApplyOnly: "agenticAuthoringLocalApplyOnly", agenticAuthoringVoiceInputMode: "agenticAuthoringVoiceInputMode", agenticAuthoringContextHints: "agenticAuthoringContextHints", authoringDocument: "authoringDocument", showPageLifecycleActions: "showPageLifecycleActions", canDeleteSavedPage: "canDeleteSavedPage", pageLifecycleBusy: "pageLifecycleBusy", pageLifecycleResetRevision: "pageLifecycleResetRevision" }, outputs: { persistenceChange: "persistenceChange", pageChange: "pageChange", pageAuthoringChange: "pageAuthoringChange", widgetEvent: "widgetEvent", pageSaveRequested: "pageSaveRequested", agenticAuthoringApplied: "agenticAuthoringApplied", agenticAuthoringSharedRuleHandoff: "agenticAuthoringSharedRuleHandoff", pageRestart: "pageRestart", savedPageDeleteRequested: "savedPageDeleteRequested", customizationChange: "customizationChange" }, providers: [
|
|
36401
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.14", type: DynamicPageBuilderComponent, isStandalone: true, selector: "praxis-dynamic-page-builder", inputs: { page: "page", context: "context", strictValidation: "strictValidation", autoPersist: "autoPersist", enableCustomization: "enableCustomization", authoringCapabilities: "authoringCapabilities", showSettingsButton: "showSettingsButton", showGovernanceToolbar: "showGovernanceToolbar", governanceToolbarTitle: "governanceToolbarTitle", pageIdentity: "pageIdentity", componentInstanceId: "componentInstanceId", persistenceOwnerKey: "persistenceOwnerKey", reconcilePersistedPage: "reconcilePersistedPage", preparePageForPersistence: "preparePageForPersistence", siblingGridGeometrySync: "siblingGridGeometrySync", integrityPolicy: "integrityPolicy", pageEditorComponent: "pageEditorComponent", componentPaletteAllowedWidgetIds: "componentPaletteAllowedWidgetIds", componentPaletteAllowedWidgetTags: "componentPaletteAllowedWidgetTags", componentPaletteExcludedWidgetTags: "componentPaletteExcludedWidgetTags", componentPaletteAllowedPresetIds: "componentPaletteAllowedPresetIds", enableAgenticAuthoring: "enableAgenticAuthoring", allowAutoPersistWithAgentic: "allowAutoPersistWithAgentic", autoPersistPolicy: "autoPersistPolicy", agenticAuthoringProvider: "agenticAuthoringProvider", agenticAuthoringModel: "agenticAuthoringModel", agenticAuthoringApiKey: "agenticAuthoringApiKey", agenticAuthoringComponentId: "agenticAuthoringComponentId", agenticAuthoringScope: "agenticAuthoringScope", agenticAuthoringEtag: "agenticAuthoringEtag", agenticAuthoringIncludeLlmDiagnostics: "agenticAuthoringIncludeLlmDiagnostics", agenticAuthoringEnableStreaming: "agenticAuthoringEnableStreaming", agenticAuthoringLocalApplyOnly: "agenticAuthoringLocalApplyOnly", agenticAuthoringVoiceInputMode: "agenticAuthoringVoiceInputMode", agenticAuthoringContextHints: "agenticAuthoringContextHints", authoringDocument: "authoringDocument", showPageLifecycleActions: "showPageLifecycleActions", canDeleteSavedPage: "canDeleteSavedPage", pageLifecycleBusy: "pageLifecycleBusy", pageLifecycleResetRevision: "pageLifecycleResetRevision" }, outputs: { persistenceChange: "persistenceChange", pageChange: "pageChange", pageAuthoringChange: "pageAuthoringChange", widgetEvent: "widgetEvent", pageSaveRequested: "pageSaveRequested", agenticAuthoringApplied: "agenticAuthoringApplied", agenticAuthoringSharedRuleHandoff: "agenticAuthoringSharedRuleHandoff", pageRestart: "pageRestart", savedPageDeleteRequested: "savedPageDeleteRequested", customizationChange: "customizationChange" }, providers: [
|
|
35864
36402
|
providePraxisPageBuilderI18n(),
|
|
35865
36403
|
{ provide: DYNAMIC_PAGE_SHELL_EDITOR, useValue: WidgetShellEditorComponent },
|
|
35866
36404
|
], viewQueries: [{ propertyName: "runtime", first: true, predicate: ["runtime"], descendants: true }], usesOnChanges: true, ngImport: i0, template: `
|
|
@@ -35967,6 +36505,7 @@ class DynamicPageBuilderComponent {
|
|
|
35967
36505
|
[showPageSettingsButton]="false"
|
|
35968
36506
|
[pageIdentity]="pageIdentity"
|
|
35969
36507
|
[componentInstanceId]="componentInstanceId"
|
|
36508
|
+
[persistenceOwnerKey]="persistenceOwnerKey"
|
|
35970
36509
|
[reconcilePersistedPage]="reconcilePersistedPage"
|
|
35971
36510
|
[preparePageForPersistence]="resolvedPreparePageForPersistence"
|
|
35972
36511
|
[integrityPolicy]="integrityPolicy"
|
|
@@ -36464,7 +37003,7 @@ class DynamicPageBuilderComponent {
|
|
|
36464
37003
|
}
|
|
36465
37004
|
</praxis-floating-toolbar>
|
|
36466
37005
|
</div>
|
|
36467
|
-
`, isInline: true, styles: [":host{display:block;position:relative;min-height:var(--pdx-page-builder-min-height, 420px)}.builder-shell{display:block;position:relative;min-height:inherit;height:100%;box-sizing:border-box}.builder-shell--bottom-toolbar{padding-block-end:calc(80px + env(safe-area-inset-bottom,0px))}.builder-shell:has(.pdx-shell.fullscreen) praxis-floating-toolbar{display:none}.builder-governance-toolbar{display:flex;justify-content:space-between;align-items:center;padding:10px 18px;margin-bottom:16px;border-radius:14px;background:var(--surface-gradient, color-mix(in srgb, var(--md-sys-color-surface-container, #1e293b) 95%, transparent));border:1px solid var(--border, color-mix(in srgb, var(--md-sys-color-outline-variant, #334155) 60%, transparent));gap:16px;flex-wrap:wrap}.builder-governance-brand{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.builder-governance-status-indicator{display:inline-flex;align-items:center;gap:8px;padding:3px 10px;border-radius:9999px;background:color-mix(in srgb,var(--ready, #22c55e) 12%,transparent);border:1px solid color-mix(in srgb,var(--ready, #22c55e) 28%,transparent)}.builder-governance-dot-pulse{width:7px;height:7px;border-radius:50%;background:var(--ready, #22c55e);box-shadow:0 0 8px var(--ready, #22c55e);animation:builderGovernancePulse 2s infinite cubic-bezier(.4,0,.6,1)}.builder-governance-title{font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--ready, #22c55e)}.builder-governance-badge{display:inline-flex;align-items:center;gap:6px;padding:4px 10px;border-radius:8px;background:color-mix(in srgb,var(--primary, #3b82f6) 12%,transparent);border:1px solid color-mix(in srgb,var(--primary, #3b82f6) 24%,transparent);font-size:11px;font-weight:600;color:var(--primary, #3b82f6)}.builder-governance-badge .material-symbols-outlined{font-size:14px}.builder-governance-persistence{display:inline-flex;align-items:center;gap:6px;padding:3px 10px;border-radius:9999px;font-size:11px;font-weight:600;letter-spacing:.02em;border:1px solid transparent;transition:all .2s ease}.builder-governance-persistence.governed{background:color-mix(in srgb,var(--muted, #64748b) 15%,transparent);border-color:color-mix(in srgb,var(--border, #334155) 80%,transparent);color:var(--muted-foreground, #94a3b8)}.builder-governance-persistence.customized{background:color-mix(in srgb,var(--primary, #3b82f6) 14%,transparent);border-color:color-mix(in srgb,var(--primary, #3b82f6) 35%,transparent);color:var(--primary, #3b82f6)}.builder-governance-persistence .builder-governance-saved-time{opacity:.75;font-weight:400}.builder-governance-actions{display:flex;align-items:center;gap:10px;margin-left:auto}.builder-governance-btn{display:inline-flex;align-items:center;gap:6px;padding:7px 13px;border-radius:9px;font-size:12px;font-weight:600;cursor:pointer;border:1px solid var(--border, #334155);background:var(--surface, #1e293b);color:var(--foreground, #f8fafc);transition:all .15s ease}.builder-governance-btn:hover:not(:disabled){border-color:var(--primary, #3b82f6);background:color-mix(in srgb,var(--primary, #3b82f6) 10%,var(--surface, #1e293b))}.builder-governance-btn:disabled{opacity:.5;cursor:not-allowed}.builder-governance-btn--reset{border-color:color-mix(in srgb,var(--warning, #eab308) 40%,transparent);color:var(--warning, #eab308)}.builder-governance-btn--reset:hover:not(:disabled){border-color:var(--warning, #eab308);background:color-mix(in srgb,var(--warning, #eab308) 12%,transparent)}.builder-governance-btn .material-symbols-outlined,.builder-governance-toggle-btn .material-symbols-outlined{font-size:16px}.builder-governance-toggle-btn{display:inline-flex;align-items:center;gap:7px;padding:7px 15px;border-radius:9px;font-size:12px;font-weight:600;cursor:pointer;border:1px solid var(--border, #334155);background:var(--surface, #1e293b);color:var(--foreground, #f8fafc);transition:all .2s cubic-bezier(.16,1,.3,1)}.builder-governance-toggle-btn:hover:not(:disabled){border-color:var(--primary, #3b82f6);transform:translateY(-1px);box-shadow:0 4px 12px color-mix(in srgb,var(--primary, #3b82f6) 20%,transparent)}.builder-governance-toggle-btn.active{background:linear-gradient(135deg,var(--primary, #3b82f6),color-mix(in srgb,var(--primary, #3b82f6) 80%,black));border-color:var(--primary, #3b82f6);color:#fff;box-shadow:0 0 16px color-mix(in srgb,var(--primary, #3b82f6) 35%,transparent)}.builder-governance-toggle-btn:disabled{opacity:.5;cursor:not-allowed}@keyframes builderGovernancePulse{0%,to{opacity:1;transform:scale(1)}50%{opacity:.4;transform:scale(.85)}}.builder-authoring-lineage-alert{display:grid;grid-template-columns:auto minmax(0,1fr);gap:10px;margin:0 0 14px;padding:12px 14px;border:1px solid var(--md-sys-color-error, #b3261e);border-radius:10px;background:var(--md-sys-color-error-container, #f9dedc);color:var(--md-sys-color-on-error-container, #410e0b)}.builder-authoring-lineage-alert strong{display:block}.builder-authoring-lineage-alert p{margin:4px 0 0}.builder-authoring-lineage-alert ul{margin:8px 0 0;padding-inline-start:20px}@media(forced-colors:active){.builder-authoring-lineage-alert{border:2px solid CanvasText;background:Canvas;color:CanvasText}}.agentic-diagnostics-panel{position:absolute;z-index:21;right:16px;width:min(520px,calc(100% - 32px));max-height:min(440px,calc(100% - 32px));overflow:auto;padding:12px;border:1px solid rgba(107,114,128,.28);border-radius:8px;background:#fffffff5;color:#111827;box-shadow:0 14px 36px #0000003d}.agentic-diagnostics-panel--collapsed{width:min(280px,calc(100% - 32px));max-height:58px;overflow:hidden;padding:10px 12px;pointer-events:auto}.agentic-diagnostics-panel__header{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:13px;font-weight:700}.agentic-diagnostics-panel__header-actions{display:flex;align-items:center;gap:8px}.agentic-diagnostics-panel__badge{padding:2px 6px;border:1px solid rgba(107,114,128,.28);border-radius:8px;font-size:11px;font-weight:600;color:#4b5563}.agentic-diagnostics-panel__toggle,.shared-rule-cockpit__toggle{appearance:none;border:1px solid color-mix(in srgb,var(--md-sys-color-primary) 18%,transparent);border-radius:999px;background:color-mix(in srgb,var(--md-sys-color-surface-container-lowest) 84%,transparent);color:var(--md-sys-color-primary);cursor:pointer;font-size:11px;font-weight:700;line-height:1;padding:6px 9px;white-space:nowrap}.agentic-diagnostics-panel__description{margin:8px 0 10px;color:#4b5563;font-size:12px;line-height:1.4}.agentic-diagnostics-panel pre{margin:0;white-space:pre-wrap;overflow-wrap:anywhere;font-size:11px;line-height:1.45;color:#1f2937}.agentic-diagnostics-panel__health{display:grid;gap:8px;margin-bottom:12px}.agentic-diagnostics-panel__health h3,.agentic-diagnostics-panel__health p{margin:0}.agentic-diagnostics-panel__health h3{font-size:13px}.agentic-diagnostics-panel__health p{color:#4b5563;font-size:11px}.agentic-diagnostics-panel__metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin:0}.agentic-diagnostics-panel__metrics div{padding:8px;border-radius:8px;background:#f3f4f6}.agentic-diagnostics-panel__metrics dt{color:#4b5563;font-size:10px}.agentic-diagnostics-panel__metrics dd{margin:3px 0 0;font-size:14px;font-weight:700}.agentic-diagnostics-panel__health-table{width:100%;border-collapse:collapse;font-size:10px}.agentic-diagnostics-panel__health-table caption{margin-bottom:4px;text-align:left;font-weight:700}.agentic-diagnostics-panel__health-table th,.agentic-diagnostics-panel__health-table td{padding:5px 4px;border-bottom:1px solid #e5e7eb;text-align:left}.agentic-diagnostics-panel__raw summary{margin-bottom:8px;cursor:pointer;font-size:11px;font-weight:700}@media(max-width:520px){.agentic-diagnostics-panel__metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}praxis-ai-assistant-shell{position:fixed;inset:0;z-index:140;pointer-events:none}@media(min-width:1100px){.builder-shell--agentic-review-rail{box-sizing:border-box;padding-right:464px}.builder-shell--agentic-review-rail praxis-floating-toolbar{--pdx-floating-toolbar-right: 468px;transform:translate(-456px);transition:transform .18s ease}}.builder-shell__agentic-toggle{position:relative}.builder-shell__agentic-toggle--open,.builder-shell__agentic-toggle--minimized{outline:2px solid rgba(96,165,250,.52);outline-offset:2px}.builder-shell__agentic-toggle--minimized:after{content:\"\";position:absolute;top:6px;right:6px;width:8px;height:8px;border:2px solid var(--md-sys-color-surface, #111827);border-radius:999px;background:#34d399}.builder-shell__connections-toggle--open{outline:2px solid color-mix(in srgb,var(--md-sys-color-primary, #6750a4) 52%,transparent);outline-offset:2px}.builder-shell__connections-toggle{position:relative}.builder-shell__connections-toggle--recommended:not(.builder-shell__connections-toggle--open){outline:2px solid rgba(34,211,238,.48);outline-offset:2px}.builder-shell__connections-toggle-badge{position:absolute;top:5px;right:5px;width:9px;height:9px;border:2px solid var(--md-sys-color-surface, #111827);border-radius:999px;background:#22d3ee;box-shadow:0 0 0 3px #22d3ee2e}.shared-rule-cockpit{position:absolute;z-index:120;left:16px;bottom:88px;width:min(720px,calc(100% - 32px));max-height:min(560px,calc(100vh - 140px));padding:14px;border:1px solid color-mix(in srgb,var(--md-sys-color-primary) 24%,transparent);border-radius:12px;background:linear-gradient(135deg,color-mix(in srgb,var(--md-sys-color-primary-container) 24%,var(--md-sys-color-surface-container-high) 76%),color-mix(in srgb,var(--md-sys-color-tertiary-container) 18%,var(--md-sys-color-surface-container) 82%));color:var(--md-sys-color-on-surface);box-shadow:0 18px 46px color-mix(in srgb,var(--md-sys-color-shadow, #000) 24%,transparent);overflow:auto;overscroll-behavior:contain}.shared-rule-cockpit--collapsed{width:min(360px,calc(100% - 32px));max-height:72px;overflow:hidden;padding:10px 12px}.shared-rule-cockpit__header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.shared-rule-cockpit__header-actions{display:flex;align-items:center;gap:8px}.shared-rule-cockpit__header div{display:grid;gap:2px}.shared-rule-cockpit__header strong{font-size:14px;line-height:1.2}.shared-rule-cockpit__header span{color:var(--md-sys-color-on-surface-variant);font-size:12px;overflow-wrap:anywhere}.shared-rule-cockpit__badge{flex:0 0 auto;max-width:220px;padding:3px 8px;border:1px solid color-mix(in srgb,var(--md-sys-color-primary) 20%,transparent);border-radius:999px;background:color-mix(in srgb,var(--md-sys-color-surface-container-lowest) 74%,transparent);color:var(--md-sys-color-primary);font-size:11px;font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.shared-rule-cockpit__description,.shared-rule-cockpit__status,.shared-rule-cockpit__error{margin:10px 0 0;color:var(--md-sys-color-on-surface-variant);font-size:12px;line-height:1.45}.shared-rule-cockpit__status,.builder-governance-persistence.busy>span:first-child{font-weight:550;color:var(--pdx-text-shimmer-base, var(--md-sys-color-on-surface-variant))}@supports ((-webkit-background-clip: text) or (background-clip: text)){.shared-rule-cockpit__status,.builder-governance-persistence.busy>span:first-child{background-image:var( --pdx-text-shimmer-gradient, linear-gradient( 105deg, color-mix(in oklab, var(--md-sys-color-on-surface-variant, #64748b) 82%, var(--md-sys-color-on-surface, #0f172a) 18%) 0%, color-mix(in oklab, var(--md-sys-color-on-surface-variant, #64748b) 82%, var(--md-sys-color-on-surface, #0f172a) 18%) 26%, color-mix(in oklab, var(--md-sys-color-tertiary, #6366f1) 74%, #a855f7 26%) 40%, var(--pdx-text-shimmer-peak, var(--md-sys-color-on-surface, #ffffff)) 50%, color-mix(in oklab, var(--md-sys-color-primary, #006a6a) 74%, #ec4899 26%) 60%, color-mix(in oklab, var(--md-sys-color-on-surface-variant, #64748b) 82%, var(--md-sys-color-on-surface, #0f172a) 18%) 74%, color-mix(in oklab, var(--md-sys-color-on-surface-variant, #64748b) 82%, var(--md-sys-color-on-surface, #0f172a) 18%) 100% ) );background-size:300% 100%;background-position:100% 50%;background-repeat:no-repeat;-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;color:transparent;animation:sharedRuleCockpitTextShimmer var(--pdx-text-shimmer-duration, 2.6s) linear infinite;will-change:background-position}}@media(prefers-reduced-motion:reduce),(forced-colors:active),print{.shared-rule-cockpit__status,.builder-governance-persistence.busy>span:first-child{animation:none!important;background-image:none!important;-webkit-text-fill-color:currentColor!important;color:var(--md-sys-color-primary)!important;will-change:auto}}@media(forced-colors:active){.shared-rule-cockpit__status,.builder-governance-persistence.busy>span:first-child{color:CanvasText!important;-webkit-text-fill-color:CanvasText!important}}@keyframes sharedRuleCockpitTextShimmer{0%{background-position:100% 50%}to{background-position:0% 50%}}.shared-rule-cockpit__error{color:var(--md-sys-color-error);font-weight:600}.shared-rule-cockpit__actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.shared-rule-cockpit__facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:12px 0 0}.shared-rule-cockpit__facts div{min-width:0;padding:8px;border-radius:10px;background:color-mix(in srgb,var(--md-sys-color-surface-container-lowest) 72%,transparent)}.shared-rule-cockpit__facts dt{color:var(--md-sys-color-on-surface-variant);font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.04em}.shared-rule-cockpit__facts dd{margin:4px 0 0;color:var(--md-sys-color-on-surface);font-size:12px;overflow-wrap:anywhere}.shared-rule-cockpit__enforcement-matrix{display:grid;gap:10px;margin-top:12px;padding:10px;border:1px solid color-mix(in srgb,var(--md-sys-color-primary) 14%,transparent);border-radius:12px;background:color-mix(in srgb,var(--md-sys-color-surface-container-lowest) 58%,transparent)}.shared-rule-cockpit__matrix-header{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.shared-rule-cockpit__matrix-header div{display:grid;gap:2px}.shared-rule-cockpit__matrix-header strong{color:var(--md-sys-color-on-surface);font-size:12px}.shared-rule-cockpit__matrix-header span,.shared-rule-cockpit__matrix-source{color:var(--md-sys-color-on-surface-variant);font-size:11px;line-height:1.35;overflow-wrap:anywhere}.shared-rule-cockpit__matrix-badge{flex:0 0 auto;padding:3px 8px;border-radius:999px;background:#16a34a1f;color:#166534;font-weight:800;white-space:nowrap}.shared-rule-cockpit__projection-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.shared-rule-cockpit__projection{display:grid;gap:3px;min-width:0;padding:9px;border:1px solid color-mix(in srgb,var(--md-sys-color-outline-variant) 52%,transparent);border-radius:11px;background:color-mix(in srgb,var(--md-sys-color-surface-container-low) 82%,transparent)}.shared-rule-cockpit__projection[data-status=ready]{border-color:color-mix(in srgb,var(--md-sys-color-tertiary) 24%,transparent);background:color-mix(in srgb,var(--md-sys-color-tertiary-container) 32%,var(--md-sys-color-surface-container-low) 68%)}.shared-rule-cockpit__projection span{color:var(--md-sys-color-primary);font-size:10px;font-weight:800;letter-spacing:.04em;text-transform:uppercase;overflow-wrap:anywhere}.shared-rule-cockpit__projection strong{color:var(--md-sys-color-on-surface);font-size:12px}.shared-rule-cockpit__projection small,.shared-rule-cockpit__projection em{color:var(--md-sys-color-on-surface-variant);font-size:11px;font-style:normal;overflow-wrap:anywhere}.shared-rule-cockpit__matrix-source{margin:0}.shared-rule-cockpit__timeline{display:grid;gap:8px;max-height:190px;margin:12px 0 0;padding:0;overflow:auto;list-style:none}.shared-rule-cockpit__timeline-item{display:grid;grid-template-columns:auto minmax(0,1fr);gap:10px;padding:10px;border:1px solid color-mix(in srgb,var(--md-sys-color-primary) 12%,transparent);border-radius:12px;background:color-mix(in srgb,var(--md-sys-color-surface-container-lowest) 76%,transparent)}.shared-rule-cockpit__timeline-icon{display:grid;width:24px;height:24px;place-items:center;border-radius:999px;background:#1e40af1a;color:var(--md-sys-color-primary);font-family:Material Icons;font-size:16px;line-height:1}.shared-rule-cockpit__timeline-item strong{color:var(--md-sys-color-on-surface);font-size:12px;line-height:1.35}.shared-rule-cockpit__timeline-item p,.shared-rule-cockpit__timeline-item small,.shared-rule-cockpit__timeline-item time,.shared-rule-cockpit__timeline-empty{display:block;margin:3px 0 0;color:var(--md-sys-color-on-surface-variant);font-size:11px;line-height:1.35;overflow-wrap:anywhere}.shared-rule-cockpit__timeline-badge{display:inline-flex;margin-left:6px;padding:2px 6px;border-radius:999px;background:color-mix(in srgb,var(--md-sys-color-secondary-container) 42%,transparent);color:var(--md-sys-color-on-secondary-container);font-size:10px;font-weight:700}.shared-rule-cockpit__timeline-empty{padding:10px;border-radius:12px;background:color-mix(in srgb,var(--md-sys-color-surface-container-lowest) 64%,transparent)}@media(max-width:720px){.shared-rule-cockpit{bottom:72px;max-height:calc(100vh - 112px)}.shared-rule-cockpit__facts,.shared-rule-cockpit__projection-grid{grid-template-columns:1fr}}@media(min-width:1121px)and (min-height:760px){.builder-shell--agentic-review-rail praxis-ai-assistant-shell ::ng-deep .praxis-ai-assistant-shell{min-height:calc(100vh - 120px)}}\n"], dependencies: [{ kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i2.MatButton, selector: " button[matButton], a[matButton], button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button], a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button] ", inputs: ["matButton"], exportAs: ["matButton", "matAnchor"] }, { kind: "component", type: i2.MatMiniFabButton, selector: "button[mat-mini-fab], a[mat-mini-fab], button[matMiniFab], a[matMiniFab]", exportAs: ["matButton", "matAnchor"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i2$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatTooltipModule }, { kind: "directive", type: i3.MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipPosition", "matTooltipPositionAtOrigin", "matTooltipDisabled", "matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }, { kind: "directive", type: PraxisIconDirective, selector: "mat-icon[praxisIcon]", inputs: ["praxisIcon"] }, { kind: "component", type: DynamicWidgetPageComponent, selector: "praxis-dynamic-page", inputs: ["page", "context", "strictValidation", "enableCustomization", "authoringCapabilities", "showPageSettingsButton", "shellEditorComponent", "pageEditorComponent", "autoPersist", "pauseAutoPersist", "pageIdentity", "componentInstanceId", "showWidgetAssistantButton", "blockMutations", "reconcilePersistedPage", "preparePageForPersistence", "integrityPolicy"], outputs: ["pageChange", "persistenceChange", "pageAuthoringChange", "widgetEvent", "widgetSelectionChange", "widgetAssistantRequested", "widgetDiagnosticsChange"] }, { kind: "component", type: FloatingToolbarComponent, selector: "praxis-floating-toolbar", inputs: ["visible", "canUndo", "canRedo", "showSave", "showPreview", "showAdd", "showSettings", "editingEnabled", "previewActive", "connectionMode", "modeLabel", "addLabel", "saveLabel", "undoLabel", "redoLabel", "settingsLabel", "previewLabel", "exitPreviewLabel"], outputs: ["add", "undo", "redo", "settings", "preview", "save"] }, { kind: "component", type: ConnectionEditorComponent, selector: "praxis-connection-editor", inputs: ["open", "page"], outputs: ["pageChange", "focusWidget", "openPageSettings", "close"] }, { kind: "component", type: PraxisAiAssistantShellComponent, selector: "praxis-ai-assistant-shell", inputs: ["labels", "mode", "state", "contextItems", "attachments", "messages", "quickReplies", "recommendedIntents", "prompt", "statusText", "errorText", "testIdPrefix", "panelTestId", "submitTestId", "applyTestId", "primaryAction", "secondaryActions", "governanceActions", "busy", "canSubmit", "canApply", "preview", "submitOnEnter", "showAttachAction", "enablePastedAttachments", "enableFileAttachments", "attachmentAccept", "attachmentMultiple", "voiceInputMode", "voiceLanguage", "draggable", "resizable", "minWidth", "minHeight", "margin", "layout"], outputs: ["promptChange", "submitPrompt", "apply", "retryTurn", "cancelTurn", "shellAction", "close", "attach", "attachmentsPasted", "attachmentsSelected", "removeAttachment", "messageAction", "editMessage", "resendMessage", "quickReply", "recommendedIntent", "blockAction", "layoutChange"] }] });
|
|
37006
|
+
`, isInline: true, styles: [":host{display:block;position:relative;min-height:var(--pdx-page-builder-min-height, 420px)}.builder-shell{display:block;position:relative;min-height:inherit;height:100%;box-sizing:border-box}.builder-shell--bottom-toolbar{padding-block-end:calc(80px + env(safe-area-inset-bottom,0px))}.builder-shell:has(.pdx-shell.fullscreen) praxis-floating-toolbar{display:none}.builder-governance-toolbar{display:flex;justify-content:space-between;align-items:center;padding:10px 18px;margin-bottom:16px;border-radius:14px;background:var(--surface-gradient, color-mix(in srgb, var(--md-sys-color-surface-container, #1e293b) 95%, transparent));border:1px solid var(--border, color-mix(in srgb, var(--md-sys-color-outline-variant, #334155) 60%, transparent));gap:16px;flex-wrap:wrap}.builder-governance-brand{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.builder-governance-status-indicator{display:inline-flex;align-items:center;gap:8px;padding:3px 10px;border-radius:9999px;background:color-mix(in srgb,var(--ready, #22c55e) 12%,transparent);border:1px solid color-mix(in srgb,var(--ready, #22c55e) 28%,transparent)}.builder-governance-dot-pulse{width:7px;height:7px;border-radius:50%;background:var(--ready, #22c55e);box-shadow:0 0 8px var(--ready, #22c55e);animation:builderGovernancePulse 2s infinite cubic-bezier(.4,0,.6,1)}.builder-governance-title{font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--ready, #22c55e)}.builder-governance-badge{display:inline-flex;align-items:center;gap:6px;padding:4px 10px;border-radius:8px;background:color-mix(in srgb,var(--primary, #3b82f6) 12%,transparent);border:1px solid color-mix(in srgb,var(--primary, #3b82f6) 24%,transparent);font-size:11px;font-weight:600;color:var(--primary, #3b82f6)}.builder-governance-badge .material-symbols-outlined{font-size:14px}.builder-governance-persistence{display:inline-flex;align-items:center;gap:6px;padding:3px 10px;border-radius:9999px;font-size:11px;font-weight:600;letter-spacing:.02em;border:1px solid transparent;transition:all .2s ease}.builder-governance-persistence.governed{background:color-mix(in srgb,var(--muted, #64748b) 15%,transparent);border-color:color-mix(in srgb,var(--border, #334155) 80%,transparent);color:var(--muted-foreground, #94a3b8)}.builder-governance-persistence.customized{background:color-mix(in srgb,var(--primary, #3b82f6) 14%,transparent);border-color:color-mix(in srgb,var(--primary, #3b82f6) 35%,transparent);color:var(--primary, #3b82f6)}.builder-governance-persistence .builder-governance-saved-time{opacity:.75;font-weight:400}.builder-governance-actions{display:flex;align-items:center;gap:10px;margin-left:auto}.builder-governance-btn{display:inline-flex;align-items:center;gap:6px;padding:7px 13px;border-radius:9px;font-size:12px;font-weight:600;cursor:pointer;border:1px solid var(--border, #334155);background:var(--surface, #1e293b);color:var(--foreground, #f8fafc);transition:all .15s ease}.builder-governance-btn:hover:not(:disabled){border-color:var(--primary, #3b82f6);background:color-mix(in srgb,var(--primary, #3b82f6) 10%,var(--surface, #1e293b))}.builder-governance-btn:disabled{opacity:.5;cursor:not-allowed}.builder-governance-btn--reset{border-color:color-mix(in srgb,var(--warning, #eab308) 40%,transparent);color:var(--warning, #eab308)}.builder-governance-btn--reset:hover:not(:disabled){border-color:var(--warning, #eab308);background:color-mix(in srgb,var(--warning, #eab308) 12%,transparent)}.builder-governance-btn .material-symbols-outlined,.builder-governance-toggle-btn .material-symbols-outlined{font-size:16px}.builder-governance-toggle-btn{display:inline-flex;align-items:center;gap:7px;padding:7px 15px;border-radius:9px;font-size:12px;font-weight:600;cursor:pointer;border:1px solid var(--border, #334155);background:var(--surface, #1e293b);color:var(--foreground, #f8fafc);transition:all .2s cubic-bezier(.16,1,.3,1)}.builder-governance-toggle-btn:hover:not(:disabled){border-color:var(--primary, #3b82f6);transform:translateY(-1px);box-shadow:0 4px 12px color-mix(in srgb,var(--primary, #3b82f6) 20%,transparent)}.builder-governance-toggle-btn.active{background:linear-gradient(135deg,var(--primary, #3b82f6),color-mix(in srgb,var(--primary, #3b82f6) 80%,black));border-color:var(--primary, #3b82f6);color:#fff;box-shadow:0 0 16px color-mix(in srgb,var(--primary, #3b82f6) 35%,transparent)}.builder-governance-toggle-btn:disabled{opacity:.5;cursor:not-allowed}@keyframes builderGovernancePulse{0%,to{opacity:1;transform:scale(1)}50%{opacity:.4;transform:scale(.85)}}.builder-authoring-lineage-alert{display:grid;grid-template-columns:auto minmax(0,1fr);gap:10px;margin:0 0 14px;padding:12px 14px;border:1px solid var(--md-sys-color-error, #b3261e);border-radius:10px;background:var(--md-sys-color-error-container, #f9dedc);color:var(--md-sys-color-on-error-container, #410e0b)}.builder-authoring-lineage-alert strong{display:block}.builder-authoring-lineage-alert p{margin:4px 0 0}.builder-authoring-lineage-alert ul{margin:8px 0 0;padding-inline-start:20px}@media(forced-colors:active){.builder-authoring-lineage-alert{border:2px solid CanvasText;background:Canvas;color:CanvasText}}.agentic-diagnostics-panel{position:absolute;z-index:21;right:16px;width:min(520px,calc(100% - 32px));max-height:min(440px,calc(100% - 32px));overflow:auto;padding:12px;border:1px solid rgba(107,114,128,.28);border-radius:8px;background:#fffffff5;color:#111827;box-shadow:0 14px 36px #0000003d}.agentic-diagnostics-panel--collapsed{width:min(280px,calc(100% - 32px));max-height:58px;overflow:hidden;padding:10px 12px;pointer-events:auto}.agentic-diagnostics-panel__header{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:13px;font-weight:700}.agentic-diagnostics-panel__header-actions{display:flex;align-items:center;gap:8px}.agentic-diagnostics-panel__badge{padding:2px 6px;border:1px solid rgba(107,114,128,.28);border-radius:8px;font-size:11px;font-weight:600;color:#4b5563}.agentic-diagnostics-panel__toggle,.shared-rule-cockpit__toggle{appearance:none;border:1px solid color-mix(in srgb,var(--md-sys-color-primary) 18%,transparent);border-radius:999px;background:color-mix(in srgb,var(--md-sys-color-surface-container-lowest) 84%,transparent);color:var(--md-sys-color-primary);cursor:pointer;font-size:11px;font-weight:700;line-height:1;padding:6px 9px;white-space:nowrap}.agentic-diagnostics-panel__description{margin:8px 0 10px;color:#4b5563;font-size:12px;line-height:1.4}.agentic-diagnostics-panel pre{margin:0;white-space:pre-wrap;overflow-wrap:anywhere;font-size:11px;line-height:1.45;color:#1f2937}.agentic-diagnostics-panel__health{display:grid;gap:8px;margin-bottom:12px}.agentic-diagnostics-panel__health h3,.agentic-diagnostics-panel__health p{margin:0}.agentic-diagnostics-panel__health h3{font-size:13px}.agentic-diagnostics-panel__health p{color:#4b5563;font-size:11px}.agentic-diagnostics-panel__metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin:0}.agentic-diagnostics-panel__metrics div{padding:8px;border-radius:8px;background:#f3f4f6}.agentic-diagnostics-panel__metrics dt{color:#4b5563;font-size:10px}.agentic-diagnostics-panel__metrics dd{margin:3px 0 0;font-size:14px;font-weight:700}.agentic-diagnostics-panel__health-table{width:100%;border-collapse:collapse;font-size:10px}.agentic-diagnostics-panel__health-table caption{margin-bottom:4px;text-align:left;font-weight:700}.agentic-diagnostics-panel__health-table th,.agentic-diagnostics-panel__health-table td{padding:5px 4px;border-bottom:1px solid #e5e7eb;text-align:left}.agentic-diagnostics-panel__raw summary{margin-bottom:8px;cursor:pointer;font-size:11px;font-weight:700}@media(max-width:520px){.agentic-diagnostics-panel__metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}praxis-ai-assistant-shell{position:fixed;inset:0;z-index:140;pointer-events:none}@media(min-width:1100px){.builder-shell--agentic-review-rail{box-sizing:border-box;padding-right:464px}.builder-shell--agentic-review-rail praxis-floating-toolbar{--pdx-floating-toolbar-right: 468px;transform:translate(-456px);transition:transform .18s ease}}.builder-shell__agentic-toggle{position:relative}.builder-shell__agentic-toggle--open,.builder-shell__agentic-toggle--minimized{outline:2px solid rgba(96,165,250,.52);outline-offset:2px}.builder-shell__agentic-toggle--minimized:after{content:\"\";position:absolute;top:6px;right:6px;width:8px;height:8px;border:2px solid var(--md-sys-color-surface, #111827);border-radius:999px;background:#34d399}.builder-shell__connections-toggle--open{outline:2px solid color-mix(in srgb,var(--md-sys-color-primary, #6750a4) 52%,transparent);outline-offset:2px}.builder-shell__connections-toggle{position:relative}.builder-shell__connections-toggle--recommended:not(.builder-shell__connections-toggle--open){outline:2px solid rgba(34,211,238,.48);outline-offset:2px}.builder-shell__connections-toggle-badge{position:absolute;top:5px;right:5px;width:9px;height:9px;border:2px solid var(--md-sys-color-surface, #111827);border-radius:999px;background:#22d3ee;box-shadow:0 0 0 3px #22d3ee2e}.shared-rule-cockpit{position:absolute;z-index:120;left:16px;bottom:88px;width:min(720px,calc(100% - 32px));max-height:min(560px,calc(100vh - 140px));padding:14px;border:1px solid color-mix(in srgb,var(--md-sys-color-primary) 24%,transparent);border-radius:12px;background:linear-gradient(135deg,color-mix(in srgb,var(--md-sys-color-primary-container) 24%,var(--md-sys-color-surface-container-high) 76%),color-mix(in srgb,var(--md-sys-color-tertiary-container) 18%,var(--md-sys-color-surface-container) 82%));color:var(--md-sys-color-on-surface);box-shadow:0 18px 46px color-mix(in srgb,var(--md-sys-color-shadow, #000) 24%,transparent);overflow:auto;overscroll-behavior:contain}.shared-rule-cockpit--collapsed{width:min(360px,calc(100% - 32px));max-height:72px;overflow:hidden;padding:10px 12px}.shared-rule-cockpit__header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.shared-rule-cockpit__header-actions{display:flex;align-items:center;gap:8px}.shared-rule-cockpit__header div{display:grid;gap:2px}.shared-rule-cockpit__header strong{font-size:14px;line-height:1.2}.shared-rule-cockpit__header span{color:var(--md-sys-color-on-surface-variant);font-size:12px;overflow-wrap:anywhere}.shared-rule-cockpit__badge{flex:0 0 auto;max-width:220px;padding:3px 8px;border:1px solid color-mix(in srgb,var(--md-sys-color-primary) 20%,transparent);border-radius:999px;background:color-mix(in srgb,var(--md-sys-color-surface-container-lowest) 74%,transparent);color:var(--md-sys-color-primary);font-size:11px;font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.shared-rule-cockpit__description,.shared-rule-cockpit__status,.shared-rule-cockpit__error{margin:10px 0 0;color:var(--md-sys-color-on-surface-variant);font-size:12px;line-height:1.45}.shared-rule-cockpit__status,.builder-governance-persistence.busy>span:first-child{font-weight:550;color:var(--pdx-text-shimmer-base, var(--md-sys-color-on-surface-variant))}@supports ((-webkit-background-clip: text) or (background-clip: text)){.shared-rule-cockpit__status,.builder-governance-persistence.busy>span:first-child{background-image:var( --pdx-text-shimmer-gradient, linear-gradient( 105deg, color-mix(in oklab, var(--md-sys-color-on-surface-variant, #64748b) 82%, var(--md-sys-color-on-surface, #0f172a) 18%) 0%, color-mix(in oklab, var(--md-sys-color-on-surface-variant, #64748b) 82%, var(--md-sys-color-on-surface, #0f172a) 18%) 26%, color-mix(in oklab, var(--md-sys-color-tertiary, #6366f1) 74%, #a855f7 26%) 40%, var(--pdx-text-shimmer-peak, var(--md-sys-color-on-surface, #ffffff)) 50%, color-mix(in oklab, var(--md-sys-color-primary, #006a6a) 74%, #ec4899 26%) 60%, color-mix(in oklab, var(--md-sys-color-on-surface-variant, #64748b) 82%, var(--md-sys-color-on-surface, #0f172a) 18%) 74%, color-mix(in oklab, var(--md-sys-color-on-surface-variant, #64748b) 82%, var(--md-sys-color-on-surface, #0f172a) 18%) 100% ) );background-size:300% 100%;background-position:100% 50%;background-repeat:no-repeat;-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;color:transparent;animation:sharedRuleCockpitTextShimmer var(--pdx-text-shimmer-duration, 2.6s) linear infinite;will-change:background-position}}@media(prefers-reduced-motion:reduce),(forced-colors:active),print{.shared-rule-cockpit__status,.builder-governance-persistence.busy>span:first-child{animation:none!important;background-image:none!important;-webkit-text-fill-color:currentColor!important;color:var(--md-sys-color-primary)!important;will-change:auto}}@media(forced-colors:active){.shared-rule-cockpit__status,.builder-governance-persistence.busy>span:first-child{color:CanvasText!important;-webkit-text-fill-color:CanvasText!important}}@keyframes sharedRuleCockpitTextShimmer{0%{background-position:100% 50%}to{background-position:0% 50%}}.shared-rule-cockpit__error{color:var(--md-sys-color-error);font-weight:600}.shared-rule-cockpit__actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.shared-rule-cockpit__facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:12px 0 0}.shared-rule-cockpit__facts div{min-width:0;padding:8px;border-radius:10px;background:color-mix(in srgb,var(--md-sys-color-surface-container-lowest) 72%,transparent)}.shared-rule-cockpit__facts dt{color:var(--md-sys-color-on-surface-variant);font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.04em}.shared-rule-cockpit__facts dd{margin:4px 0 0;color:var(--md-sys-color-on-surface);font-size:12px;overflow-wrap:anywhere}.shared-rule-cockpit__enforcement-matrix{display:grid;gap:10px;margin-top:12px;padding:10px;border:1px solid color-mix(in srgb,var(--md-sys-color-primary) 14%,transparent);border-radius:12px;background:color-mix(in srgb,var(--md-sys-color-surface-container-lowest) 58%,transparent)}.shared-rule-cockpit__matrix-header{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.shared-rule-cockpit__matrix-header div{display:grid;gap:2px}.shared-rule-cockpit__matrix-header strong{color:var(--md-sys-color-on-surface);font-size:12px}.shared-rule-cockpit__matrix-header span,.shared-rule-cockpit__matrix-source{color:var(--md-sys-color-on-surface-variant);font-size:11px;line-height:1.35;overflow-wrap:anywhere}.shared-rule-cockpit__matrix-badge{flex:0 0 auto;padding:3px 8px;border-radius:999px;background:#16a34a1f;color:#166534;font-weight:800;white-space:nowrap}.shared-rule-cockpit__projection-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.shared-rule-cockpit__projection{display:grid;gap:3px;min-width:0;padding:9px;border:1px solid color-mix(in srgb,var(--md-sys-color-outline-variant) 52%,transparent);border-radius:11px;background:color-mix(in srgb,var(--md-sys-color-surface-container-low) 82%,transparent)}.shared-rule-cockpit__projection[data-status=ready]{border-color:color-mix(in srgb,var(--md-sys-color-tertiary) 24%,transparent);background:color-mix(in srgb,var(--md-sys-color-tertiary-container) 32%,var(--md-sys-color-surface-container-low) 68%)}.shared-rule-cockpit__projection span{color:var(--md-sys-color-primary);font-size:10px;font-weight:800;letter-spacing:.04em;text-transform:uppercase;overflow-wrap:anywhere}.shared-rule-cockpit__projection strong{color:var(--md-sys-color-on-surface);font-size:12px}.shared-rule-cockpit__projection small,.shared-rule-cockpit__projection em{color:var(--md-sys-color-on-surface-variant);font-size:11px;font-style:normal;overflow-wrap:anywhere}.shared-rule-cockpit__matrix-source{margin:0}.shared-rule-cockpit__timeline{display:grid;gap:8px;max-height:190px;margin:12px 0 0;padding:0;overflow:auto;list-style:none}.shared-rule-cockpit__timeline-item{display:grid;grid-template-columns:auto minmax(0,1fr);gap:10px;padding:10px;border:1px solid color-mix(in srgb,var(--md-sys-color-primary) 12%,transparent);border-radius:12px;background:color-mix(in srgb,var(--md-sys-color-surface-container-lowest) 76%,transparent)}.shared-rule-cockpit__timeline-icon{display:grid;width:24px;height:24px;place-items:center;border-radius:999px;background:#1e40af1a;color:var(--md-sys-color-primary);font-family:Material Icons;font-size:16px;line-height:1}.shared-rule-cockpit__timeline-item strong{color:var(--md-sys-color-on-surface);font-size:12px;line-height:1.35}.shared-rule-cockpit__timeline-item p,.shared-rule-cockpit__timeline-item small,.shared-rule-cockpit__timeline-item time,.shared-rule-cockpit__timeline-empty{display:block;margin:3px 0 0;color:var(--md-sys-color-on-surface-variant);font-size:11px;line-height:1.35;overflow-wrap:anywhere}.shared-rule-cockpit__timeline-badge{display:inline-flex;margin-left:6px;padding:2px 6px;border-radius:999px;background:color-mix(in srgb,var(--md-sys-color-secondary-container) 42%,transparent);color:var(--md-sys-color-on-secondary-container);font-size:10px;font-weight:700}.shared-rule-cockpit__timeline-empty{padding:10px;border-radius:12px;background:color-mix(in srgb,var(--md-sys-color-surface-container-lowest) 64%,transparent)}@media(max-width:720px){.shared-rule-cockpit{bottom:72px;max-height:calc(100vh - 112px)}.shared-rule-cockpit__facts,.shared-rule-cockpit__projection-grid{grid-template-columns:1fr}}@media(min-width:1121px)and (min-height:760px){.builder-shell--agentic-review-rail praxis-ai-assistant-shell ::ng-deep .praxis-ai-assistant-shell{min-height:calc(100vh - 120px)}}\n"], dependencies: [{ kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i2.MatButton, selector: " button[matButton], a[matButton], button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button], a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button] ", inputs: ["matButton"], exportAs: ["matButton", "matAnchor"] }, { kind: "component", type: i2.MatMiniFabButton, selector: "button[mat-mini-fab], a[mat-mini-fab], button[matMiniFab], a[matMiniFab]", exportAs: ["matButton", "matAnchor"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i2$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatTooltipModule }, { kind: "directive", type: i3.MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipPosition", "matTooltipPositionAtOrigin", "matTooltipDisabled", "matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }, { kind: "directive", type: PraxisIconDirective, selector: "mat-icon[praxisIcon]", inputs: ["praxisIcon"] }, { kind: "component", type: DynamicWidgetPageComponent, selector: "praxis-dynamic-page", inputs: ["page", "context", "strictValidation", "enableCustomization", "authoringCapabilities", "showPageSettingsButton", "shellEditorComponent", "pageEditorComponent", "autoPersist", "pauseAutoPersist", "pageIdentity", "componentInstanceId", "persistenceOwnerKey", "showWidgetAssistantButton", "blockMutations", "reconcilePersistedPage", "preparePageForPersistence", "integrityPolicy"], outputs: ["pageChange", "persistenceChange", "pageAuthoringChange", "widgetEvent", "widgetSelectionChange", "widgetAssistantRequested", "widgetDiagnosticsChange"] }, { kind: "component", type: FloatingToolbarComponent, selector: "praxis-floating-toolbar", inputs: ["visible", "canUndo", "canRedo", "showSave", "showPreview", "showAdd", "showSettings", "editingEnabled", "previewActive", "connectionMode", "modeLabel", "addLabel", "saveLabel", "undoLabel", "redoLabel", "settingsLabel", "previewLabel", "exitPreviewLabel"], outputs: ["add", "undo", "redo", "settings", "preview", "save"] }, { kind: "component", type: ConnectionEditorComponent, selector: "praxis-connection-editor", inputs: ["open", "page"], outputs: ["pageChange", "focusWidget", "openPageSettings", "close"] }, { kind: "component", type: PraxisAiAssistantShellComponent, selector: "praxis-ai-assistant-shell", inputs: ["labels", "mode", "state", "contextItems", "attachments", "messages", "quickReplies", "recommendedIntents", "prompt", "statusText", "errorText", "testIdPrefix", "panelTestId", "submitTestId", "applyTestId", "primaryAction", "secondaryActions", "governanceActions", "busy", "canSubmit", "canApply", "preview", "submitOnEnter", "showAttachAction", "enablePastedAttachments", "enableFileAttachments", "attachmentAccept", "attachmentMultiple", "voiceInputMode", "voiceLanguage", "draggable", "resizable", "minWidth", "minHeight", "margin", "layout"], outputs: ["promptChange", "submitPrompt", "apply", "retryTurn", "cancelTurn", "shellAction", "close", "attach", "attachmentsPasted", "attachmentsSelected", "removeAttachment", "messageAction", "editMessage", "resendMessage", "quickReply", "recommendedIntent", "blockAction", "layoutChange"] }] });
|
|
36468
37007
|
}
|
|
36469
37008
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImport: i0, type: DynamicPageBuilderComponent, decorators: [{
|
|
36470
37009
|
type: Component,
|
|
@@ -36584,6 +37123,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
|
|
|
36584
37123
|
[showPageSettingsButton]="false"
|
|
36585
37124
|
[pageIdentity]="pageIdentity"
|
|
36586
37125
|
[componentInstanceId]="componentInstanceId"
|
|
37126
|
+
[persistenceOwnerKey]="persistenceOwnerKey"
|
|
36587
37127
|
[reconcilePersistedPage]="reconcilePersistedPage"
|
|
36588
37128
|
[preparePageForPersistence]="resolvedPreparePageForPersistence"
|
|
36589
37129
|
[integrityPolicy]="integrityPolicy"
|
|
@@ -37112,6 +37652,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
|
|
|
37112
37652
|
type: Input
|
|
37113
37653
|
}], componentInstanceId: [{
|
|
37114
37654
|
type: Input
|
|
37655
|
+
}], persistenceOwnerKey: [{
|
|
37656
|
+
type: Input
|
|
37115
37657
|
}], reconcilePersistedPage: [{
|
|
37116
37658
|
type: Input
|
|
37117
37659
|
}], preparePageForPersistence: [{
|
|
@@ -37126,6 +37668,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
|
|
|
37126
37668
|
type: Input
|
|
37127
37669
|
}], componentPaletteAllowedWidgetTags: [{
|
|
37128
37670
|
type: Input
|
|
37671
|
+
}], componentPaletteExcludedWidgetTags: [{
|
|
37672
|
+
type: Input
|
|
37129
37673
|
}], componentPaletteAllowedPresetIds: [{
|
|
37130
37674
|
type: Input
|
|
37131
37675
|
}], enableAgenticAuthoring: [{
|
|
@@ -37194,8 +37738,20 @@ const PRAXIS_PAGE_BUILDER_COMPONENT_METADATA = {
|
|
|
37194
37738
|
tags: ['widget', 'page-builder', 'configurable'],
|
|
37195
37739
|
lib: '@praxisui/page-builder',
|
|
37196
37740
|
inputs: [
|
|
37741
|
+
{ name: 'page', type: 'WidgetPageDefinition | string', description: 'Declarative page definition rendered by praxis-dynamic-page.' },
|
|
37742
|
+
{ name: 'authoringDocument', type: 'ConfigDocument<WidgetPageDefinition> | null', description: 'Persisted governed document payload, ETag and attested authoring source; takes precedence over page.' },
|
|
37743
|
+
{ name: 'pageIdentity', type: 'PageIdentity | null', description: 'Canonical persistence identity (app, tenant, user, route) for governed config storage.' },
|
|
37744
|
+
{ name: 'componentInstanceId', type: 'string', description: 'Stable component instance identifier on the host page.' },
|
|
37745
|
+
{ name: 'persistenceOwnerKey', type: 'string | null', description: 'Opaque scope/owner isolation key forwarded to Core runtime persistence and agentic authoring sessions.' },
|
|
37197
37746
|
{ name: 'autoPersist', type: 'boolean', description: 'Opt-in Core persistence for manual pages; defaults to false. Disabled for authoringDocument and agentic authoring unless overridden by autoPersistPolicy.' },
|
|
37747
|
+
{ name: 'allowAutoPersistWithAgentic', type: 'boolean', description: 'Allows Core runtime auto-persistence to stay active alongside enableAgenticAuthoring while automatically pausing during active unapplied previews.' },
|
|
37198
37748
|
{ name: 'autoPersistPolicy', type: "'independent' | 'suspend-when-agentic' | 'disabled' | null", description: 'Explicit policy decoupling Core runtime auto-persistence from agentic authoring.' },
|
|
37749
|
+
{ name: 'enableAgenticAuthoring', type: 'boolean', description: 'Enables the built-in agentic authoring assistant shell and preview/apply workflow.' },
|
|
37750
|
+
{ name: 'agenticAuthoringScope', type: "'user' | 'tenant'", description: 'Target persistence scope used by agentic authoring apply/persistence requests.' },
|
|
37751
|
+
{ name: 'agenticAuthoringComponentId', type: 'string', description: 'Optional componentId override sent by agentic authoring turns.' },
|
|
37752
|
+
{ name: 'authoringCapabilities', type: 'PageBuilderAuthoringCapabilities | null', description: 'Host-only capability grant limiting visible authoring operations without mutating WidgetPageDefinition.' },
|
|
37753
|
+
{ name: 'componentPaletteAllowedWidgetIds', type: 'string[] | null', description: 'Restricts palette insertion and authoring candidates to the listed widget ids.' },
|
|
37754
|
+
{ name: 'componentPaletteExcludedWidgetTags', type: 'string[] | null', description: 'Excludes widgets carrying any listed metadata tag from palette insertion and authoring candidates.' },
|
|
37199
37755
|
{ name: 'siblingGridGeometrySync', type: 'boolean | SiblingGridGeometrySyncPolicy | null', description: 'Declaratively aligns sibling tab grid coordinates during persistence preparation.' },
|
|
37200
37756
|
{ name: 'integrityPolicy', type: 'PageIntegrityPolicy | null', description: 'Fail-closed load/save structural reconciliation policy enforcing links, presets, grouping, and conservative context merging.' },
|
|
37201
37757
|
],
|
|
@@ -37328,6 +37884,7 @@ class PraxisPageSaveAsComponent {
|
|
|
37328
37884
|
initialTitle = input('', ...(ngDevMode ? [{ debugName: "initialTitle" }] : /* istanbul ignore next */ []));
|
|
37329
37885
|
initialMenuLabel = input('', ...(ngDevMode ? [{ debugName: "initialMenuLabel" }] : /* istanbul ignore next */ []));
|
|
37330
37886
|
initialIcon = input('web', ...(ngDevMode ? [{ debugName: "initialIcon" }] : /* istanbul ignore next */ []));
|
|
37887
|
+
menuSuggestions = input([], ...(ngDevMode ? [{ debugName: "menuSuggestions" }] : /* istanbul ignore next */ []));
|
|
37331
37888
|
titleMaxLength = input(160, ...(ngDevMode ? [{ debugName: "titleMaxLength" }] : /* istanbul ignore next */ []));
|
|
37332
37889
|
menuMaxLength = input(160, ...(ngDevMode ? [{ debugName: "menuMaxLength" }] : /* istanbul ignore next */ []));
|
|
37333
37890
|
saveRequested = output();
|
|
@@ -37335,18 +37892,78 @@ class PraxisPageSaveAsComponent {
|
|
|
37335
37892
|
saveFailed = output();
|
|
37336
37893
|
busy = signal(false, ...(ngDevMode ? [{ debugName: "busy" }] : /* istanbul ignore next */ []));
|
|
37337
37894
|
choosingIcon = signal(false, ...(ngDevMode ? [{ debugName: "choosingIcon" }] : /* istanbul ignore next */ []));
|
|
37895
|
+
menuAutocompleteOpen = signal(false, ...(ngDevMode ? [{ debugName: "menuAutocompleteOpen" }] : /* istanbul ignore next */ []));
|
|
37338
37896
|
result = signal(null, ...(ngDevMode ? [{ debugName: "result" }] : /* istanbul ignore next */ []));
|
|
37339
37897
|
error = signal(false, ...(ngDevMode ? [{ debugName: "error" }] : /* istanbul ignore next */ []));
|
|
37340
37898
|
iconError = signal(false, ...(ngDevMode ? [{ debugName: "iconError" }] : /* istanbul ignore next */ []));
|
|
37341
37899
|
title = new FormControl('', { nonNullable: true, validators: [Validators.required, Validators.pattern(/\S/), Validators.maxLength(160)] });
|
|
37342
37900
|
menu = new FormControl('', { nonNullable: true, validators: [Validators.required, Validators.pattern(/\S/), Validators.maxLength(160)] });
|
|
37343
37901
|
icon = signal('web', ...(ngDevMode ? [{ debugName: "icon" }] : /* istanbul ignore next */ []));
|
|
37902
|
+
titleDraft = signal('', ...(ngDevMode ? [{ debugName: "titleDraft" }] : /* istanbul ignore next */ []));
|
|
37903
|
+
menuDraft = signal('', ...(ngDevMode ? [{ debugName: "menuDraft" }] : /* istanbul ignore next */ []));
|
|
37904
|
+
previewTitle = computed(() => this.titleDraft().trim() || this.text('previewTitleFallback'), ...(ngDevMode ? [{ debugName: "previewTitle" }] : /* istanbul ignore next */ []));
|
|
37905
|
+
previewMenu = computed(() => this.menuDraft().trim() || this.text('previewMenuFallback'), ...(ngDevMode ? [{ debugName: "previewMenu" }] : /* istanbul ignore next */ []));
|
|
37906
|
+
iconDisplayLabel = computed(() => resolveIconPickerLabel(this.icon(), this.i18n.getLocale?.()), ...(ngDevMode ? [{ debugName: "iconDisplayLabel" }] : /* istanbul ignore next */ []));
|
|
37907
|
+
iconButtonAriaLabel = computed(() => `${this.text('icon')}: ${this.iconDisplayLabel()}`, ...(ngDevMode ? [{ debugName: "iconButtonAriaLabel" }] : /* istanbul ignore next */ []));
|
|
37908
|
+
iconButtonTooltip = computed(() => `${this.text('icon')} · ${this.iconDisplayLabel()}`, ...(ngDevMode ? [{ debugName: "iconButtonTooltip" }] : /* istanbul ignore next */ []));
|
|
37909
|
+
isTitleNearLimit = computed(() => this.titleMaxLength() > 0 && this.titleDraft().length >= Math.ceil(this.titleMaxLength() * 0.9), ...(ngDevMode ? [{ debugName: "isTitleNearLimit" }] : /* istanbul ignore next */ []));
|
|
37910
|
+
isMenuNearLimit = computed(() => this.menuMaxLength() > 0 && this.menuDraft().length >= Math.ceil(this.menuMaxLength() * 0.9), ...(ngDevMode ? [{ debugName: "isMenuNearLimit" }] : /* istanbul ignore next */ []));
|
|
37911
|
+
normalizedMenuSuggestions = computed(() => {
|
|
37912
|
+
const maxLen = this.limit(this.menuMaxLength());
|
|
37913
|
+
const seen = new Set();
|
|
37914
|
+
const out = [];
|
|
37915
|
+
for (const raw of this.menuSuggestions()) {
|
|
37916
|
+
const label = String(raw ?? '').trim();
|
|
37917
|
+
if (!label)
|
|
37918
|
+
continue;
|
|
37919
|
+
if (maxLen > 0 && label.length > maxLen)
|
|
37920
|
+
continue;
|
|
37921
|
+
const key = this.normalizeMenuLookup(label);
|
|
37922
|
+
if (seen.has(key))
|
|
37923
|
+
continue;
|
|
37924
|
+
seen.add(key);
|
|
37925
|
+
out.push(label);
|
|
37926
|
+
}
|
|
37927
|
+
return out;
|
|
37928
|
+
}, ...(ngDevMode ? [{ debugName: "normalizedMenuSuggestions" }] : /* istanbul ignore next */ []));
|
|
37929
|
+
hasExactMenuSuggestionMatch = computed(() => {
|
|
37930
|
+
const key = this.normalizeMenuLookup(this.menuDraft());
|
|
37931
|
+
if (!key)
|
|
37932
|
+
return false;
|
|
37933
|
+
return this.normalizedMenuSuggestions().some((item) => this.normalizeMenuLookup(item) === key);
|
|
37934
|
+
}, ...(ngDevMode ? [{ debugName: "hasExactMenuSuggestionMatch" }] : /* istanbul ignore next */ []));
|
|
37935
|
+
filteredMenuSuggestions = computed(() => {
|
|
37936
|
+
const all = this.normalizedMenuSuggestions();
|
|
37937
|
+
const key = this.normalizeMenuLookup(this.menuDraft());
|
|
37938
|
+
if (!key || this.hasExactMenuSuggestionMatch())
|
|
37939
|
+
return all;
|
|
37940
|
+
return all.filter((item) => this.normalizeMenuLookup(item).includes(key));
|
|
37941
|
+
}, ...(ngDevMode ? [{ debugName: "filteredMenuSuggestions" }] : /* istanbul ignore next */ []));
|
|
37942
|
+
createNewMenuOption = computed(() => {
|
|
37943
|
+
if (this.normalizedMenuSuggestions().length === 0)
|
|
37944
|
+
return null;
|
|
37945
|
+
const trimmed = this.menuDraft().trim();
|
|
37946
|
+
if (!trimmed || this.hasExactMenuSuggestionMatch())
|
|
37947
|
+
return null;
|
|
37948
|
+
const maxLen = this.limit(this.menuMaxLength());
|
|
37949
|
+
if (maxLen > 0 && trimmed.length > maxLen)
|
|
37950
|
+
return null;
|
|
37951
|
+
return trimmed;
|
|
37952
|
+
}, ...(ngDevMode ? [{ debugName: "createNewMenuOption" }] : /* istanbul ignore next */ []));
|
|
37953
|
+
menuHintText = computed(() => this.text(this.normalizedMenuSuggestions().length > 0 ? 'menuHintWithSuggestions' : 'menuHint'), ...(ngDevMode ? [{ debugName: "menuHintText" }] : /* istanbul ignore next */ []));
|
|
37344
37954
|
i18n = inject(PraxisI18nService);
|
|
37345
37955
|
picker = inject(IconPickerService);
|
|
37956
|
+
destroyRef = inject(DestroyRef);
|
|
37346
37957
|
generation = 0;
|
|
37347
37958
|
attempt;
|
|
37348
37959
|
destroyed = false;
|
|
37349
37960
|
constructor() {
|
|
37961
|
+
this.title.valueChanges.pipe(takeUntilDestroyed()).subscribe((val) => {
|
|
37962
|
+
this.titleDraft.set(val);
|
|
37963
|
+
});
|
|
37964
|
+
this.menu.valueChanges.pipe(takeUntilDestroyed()).subscribe((val) => {
|
|
37965
|
+
this.menuDraft.set(val);
|
|
37966
|
+
});
|
|
37350
37967
|
effect(() => {
|
|
37351
37968
|
this.contextKey();
|
|
37352
37969
|
this.adapter();
|
|
@@ -37363,12 +37980,21 @@ class PraxisPageSaveAsComponent {
|
|
|
37363
37980
|
this.title.setValue(title);
|
|
37364
37981
|
this.menu.setValue(menu);
|
|
37365
37982
|
this.icon.set(icon);
|
|
37983
|
+
this.titleDraft.set(title);
|
|
37984
|
+
this.menuDraft.set(menu);
|
|
37366
37985
|
});
|
|
37367
|
-
|
|
37986
|
+
this.destroyRef.onDestroy(() => { this.destroyed = true; ++this.generation; });
|
|
37987
|
+
}
|
|
37988
|
+
text(key, params) { return resolvePraxisPageBuilderText(this.i18n, `saveAs.${key}`, key, params); }
|
|
37989
|
+
isCurrentMenuSuggestion(suggestion) {
|
|
37990
|
+
return this.normalizeMenuLookup(suggestion) === this.normalizeMenuLookup(this.menuDraft());
|
|
37368
37991
|
}
|
|
37369
|
-
text(key) { return resolvePraxisPageBuilderText(this.i18n, `saveAs.${key}`, key); }
|
|
37370
37992
|
destination() { return { label: this.menu.value.trim(), icon: this.icon() }; }
|
|
37371
37993
|
clearResult() { this.result.set(null); }
|
|
37994
|
+
onFormSubmit(event) {
|
|
37995
|
+
event.preventDefault();
|
|
37996
|
+
this.requestSave();
|
|
37997
|
+
}
|
|
37372
37998
|
requestSave() {
|
|
37373
37999
|
this.title.markAsTouched();
|
|
37374
38000
|
this.menu.markAsTouched();
|
|
@@ -37382,7 +38008,17 @@ class PraxisPageSaveAsComponent {
|
|
|
37382
38008
|
const context = this.contextKey(), adapter = this.adapter();
|
|
37383
38009
|
this.choosingIcon.set(true);
|
|
37384
38010
|
try {
|
|
37385
|
-
const selected = await this.picker.openDialog({
|
|
38011
|
+
const selected = await this.picker.openDialog({
|
|
38012
|
+
value: this.icon(),
|
|
38013
|
+
recommendedIcons: Array.from(new Set(GOVERNED_PAGE_DEFAULT_ALLOWED_ICONS.map((ic) => ic.toLowerCase()).filter((ic) => this.validIcon(ic)))),
|
|
38014
|
+
title: this.text('iconDialogTitle'),
|
|
38015
|
+
subtitle: this.text('iconDialogSubtitle'),
|
|
38016
|
+
previewTitle: this.title.value.trim() || this.text('previewTitleFallback'),
|
|
38017
|
+
previewSubtitle: this.menu.value.trim() || this.text('previewMenuFallback'),
|
|
38018
|
+
allowFamilySelection: false,
|
|
38019
|
+
allowClear: false,
|
|
38020
|
+
allowCustomName: true,
|
|
38021
|
+
});
|
|
37386
38022
|
if (!this.current(generation, context, adapter) || selected === undefined)
|
|
37387
38023
|
return;
|
|
37388
38024
|
// The menu profile accepts Material names, not URLs or family-prefixed tokens.
|
|
@@ -37443,6 +38079,9 @@ class PraxisPageSaveAsComponent {
|
|
|
37443
38079
|
return !this.destroyed && generation === this.generation && context === this.contextKey() && adapter === this.adapter();
|
|
37444
38080
|
}
|
|
37445
38081
|
limit(value) { return Number.isInteger(value) && value > 0 && value <= 160 ? value : 0; }
|
|
38082
|
+
normalizeMenuLookup(value) {
|
|
38083
|
+
return String(value ?? '').normalize('NFD').replace(/[\u0300-\u036f]/g, '').toLowerCase().trim();
|
|
38084
|
+
}
|
|
37446
38085
|
validIcon(value) { return /^[a-z][a-z0-9_]{0,63}$/.test(value); }
|
|
37447
38086
|
localRoute(value) {
|
|
37448
38087
|
if (typeof value !== 'string' || !value.startsWith('/') || value.startsWith('//') || /[\\\s\u0000-\u001f\u007f]/.test(value))
|
|
@@ -37455,12 +38094,23 @@ class PraxisPageSaveAsComponent {
|
|
|
37455
38094
|
}
|
|
37456
38095
|
}
|
|
37457
38096
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.14", ngImport: i0, type: PraxisPageSaveAsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
37458
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.14", type: PraxisPageSaveAsComponent, isStandalone: true, selector: "praxis-page-save-as", inputs: { adapter: { classPropertyName: "adapter", publicName: "adapter", isSignal: true, isRequired: true, transformFunction: null }, contextKey: { classPropertyName: "contextKey", publicName: "contextKey", isSignal: true, isRequired: true, transformFunction: null }, canSave: { classPropertyName: "canSave", publicName: "canSave", isSignal: true, isRequired: false, transformFunction: null }, initialTitle: { classPropertyName: "initialTitle", publicName: "initialTitle", isSignal: true, isRequired: false, transformFunction: null }, initialMenuLabel: { classPropertyName: "initialMenuLabel", publicName: "initialMenuLabel", isSignal: true, isRequired: false, transformFunction: null }, initialIcon: { classPropertyName: "initialIcon", publicName: "initialIcon", isSignal: true, isRequired: false, transformFunction: null }, titleMaxLength: { classPropertyName: "titleMaxLength", publicName: "titleMaxLength", isSignal: true, isRequired: false, transformFunction: null }, menuMaxLength: { classPropertyName: "menuMaxLength", publicName: "menuMaxLength", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { saveRequested: "saveRequested", saved: "saved", saveFailed: "saveFailed" }, providers: [providePraxisPageBuilderI18n()], ngImport: i0, template: "<div class=\"save-as\" [attr.aria-busy]=\"busy() || choosingIcon()\">\n <mat-form-field appearance=\"outline\"><mat-label>{{ text('title') }}</mat-label>\n <input matInput data-testid=\"page-save-as-title\" [formControl]=\"title\" [maxlength]=\"titleMaxLength()\" />\n <mat-error>{{ text('invalidName') }}</mat-error>\n </mat-form-field>\n <mat-form-field appearance=\"outline\"><mat-label>{{ text('menu') }}</mat-label>\n <input matInput data-testid=\"page-save-as-menu\" [formControl]=\"menu\" [maxlength]=\"menuMaxLength()\" />\n <mat-hint>{{ text('menuHint') }}</mat-hint>\n <mat-error>{{ text('invalidName') }}</mat-error>\n </mat-form-field>\n <button mat-stroked-button type=\"button\" data-testid=\"page-save-as-icon\" [attr.data-icon]=\"icon()\" [disabled]=\"busy() || choosingIcon()\" (click)=\"chooseIcon()\"><mat-icon aria-hidden=\"true\">{{ icon() }}</mat-icon>{{ text('icon') }}</button>\n <button mat-flat-button type=\"button\" data-testid=\"page-save-as-submit\" [disabled]=\"busy() || choosingIcon() || !canSave() || title.invalid || menu.invalid\" (click)=\"requestSave()\">{{ text(busy() ? 'saving' : 'save') }}</button>\n</div>\n@if (iconError()) { <p role=\"alert\">{{ text('invalidIcon') }}</p> }\n@if (error()) { <p role=\"alert\">{{ text('failed') }}</p> }\n@if (result(); as confirmed) {\n <div class=\"save-result\" role=\"status\"><span>{{ text('saved') }}</span><a mat-button data-testid=\"page-save-as-link\" [routerLink]=\"confirmed.routePath\">{{ text('open') }}</a><code>{{ confirmed.routePath }}</code></div>\n}\n", styles: [":host{display:block;min-width:0}.save-as{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:8px 10px;align-items:start}mat-form-field{width:100%;min-width:0}:host ::ng-deep .save-as .mat-mdc-form-field-subscript-wrapper{display:none}:host ::ng-deep .save-as .mat-mdc-text-field-wrapper{padding-top:0;padding-bottom:0}:host ::ng-deep .save-as .mat-mdc-form-field-infix{min-height:40px;padding-top:8px;padding-bottom:8px}button{margin-top:0;min-height:36px;height:36px;padding:0 12px;border-radius:10px;font-weight:600;letter-spacing:.01em}p[role=alert]{color:var(--mat-sys-error);margin:6px 0 0;font-size:.78rem}.save-result{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;margin-top:8px;padding:8px 12px;border-radius:10px;background:color-mix(in srgb,var(--praxis-success, var(--mat-sys-primary, #10b981)) 12%,transparent);border:1px solid color-mix(in srgb,var(--praxis-success, var(--mat-sys-primary, #10b981)) 32%,transparent);color:var(--mat-sys-on-surface, inherit);font-size:.78rem;font-weight:600}code{overflow-wrap:anywhere;font-size:12px}@media(max-width:700px){.save-as{grid-template-columns:minmax(0,1fr);gap:6px}}\n"], dependencies: [{ kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1$1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.MaxLengthValidator, selector: "[maxlength][formControlName],[maxlength][formControl],[maxlength][ngModel]", inputs: ["maxlength"] }, { kind: "directive", type: i1$1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "directive", type: RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i2.MatButton, selector: " button[matButton], a[matButton], button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button], a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button] ", inputs: ["matButton"], exportAs: ["matButton", "matAnchor"] }, { kind: "ngmodule", type: MatFormFieldModule }, { kind: "component", type: i3$1.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i3$1.MatLabel, selector: "mat-label" }, { kind: "directive", type: i3$1.MatHint, selector: "mat-hint", inputs: ["align", "id"] }, { kind: "directive", type: i3$1.MatError, selector: "mat-error, [matError]", inputs: ["id"] }, { kind: "ngmodule", type: MatInputModule }, { kind: "directive", type: i4$1.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly", "disabledInteractive"], exportAs: ["matInput"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i2$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatDialogModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
38097
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.14", type: PraxisPageSaveAsComponent, isStandalone: true, selector: "praxis-page-save-as", inputs: { adapter: { classPropertyName: "adapter", publicName: "adapter", isSignal: true, isRequired: true, transformFunction: null }, contextKey: { classPropertyName: "contextKey", publicName: "contextKey", isSignal: true, isRequired: true, transformFunction: null }, canSave: { classPropertyName: "canSave", publicName: "canSave", isSignal: true, isRequired: false, transformFunction: null }, initialTitle: { classPropertyName: "initialTitle", publicName: "initialTitle", isSignal: true, isRequired: false, transformFunction: null }, initialMenuLabel: { classPropertyName: "initialMenuLabel", publicName: "initialMenuLabel", isSignal: true, isRequired: false, transformFunction: null }, initialIcon: { classPropertyName: "initialIcon", publicName: "initialIcon", isSignal: true, isRequired: false, transformFunction: null }, menuSuggestions: { classPropertyName: "menuSuggestions", publicName: "menuSuggestions", isSignal: true, isRequired: false, transformFunction: null }, titleMaxLength: { classPropertyName: "titleMaxLength", publicName: "titleMaxLength", isSignal: true, isRequired: false, transformFunction: null }, menuMaxLength: { classPropertyName: "menuMaxLength", publicName: "menuMaxLength", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { saveRequested: "saveRequested", saved: "saved", saveFailed: "saveFailed" }, providers: [providePraxisPageBuilderI18n()], ngImport: i0, template: "<form class=\"save-as\" [attr.aria-busy]=\"busy() || choosingIcon()\" (submit)=\"onFormSubmit($event)\" novalidate>\n <div class=\"save-as__fields\">\n <div class=\"save-as__identity-pair\">\n <button\n type=\"button\"\n class=\"save-as__icon-trigger\"\n data-testid=\"page-save-as-icon\"\n [attr.data-icon]=\"icon()\"\n [attr.aria-label]=\"iconButtonAriaLabel()\"\n [matTooltip]=\"iconButtonTooltip()\"\n [disabled]=\"busy() || choosingIcon()\"\n (click)=\"chooseIcon()\"\n >\n <span class=\"save-as__icon-medallion\" aria-hidden=\"true\">\n <mat-icon [praxisIcon]=\"icon()\">{{ icon() }}</mat-icon>\n </span>\n <span class=\"save-as__icon-copy\">\n <span class=\"save-as__icon-eyebrow\">{{ text('iconLabel') }}</span>\n <span class=\"save-as__icon-action\">\n <span>{{ text('iconChange') }}</span>\n <mat-icon class=\"save-as__icon-chevron\" aria-hidden=\"true\">expand_more</mat-icon>\n </span>\n </span>\n </button>\n\n <mat-form-field appearance=\"outline\" subscriptSizing=\"dynamic\" class=\"save-as__title-field\">\n <mat-label>{{ text('title') }}</mat-label>\n <input\n matInput\n data-testid=\"page-save-as-title\"\n [formControl]=\"title\"\n [maxlength]=\"titleMaxLength()\"\n [placeholder]=\"text('titlePlaceholder')\"\n />\n <span matTextSuffix class=\"save-as__counter\" [class.is-near-limit]=\"isTitleNearLimit()\" aria-hidden=\"true\">\n {{ titleDraft().length }}/{{ titleMaxLength() }}\n </span>\n <mat-error>{{ text('invalidName') }}</mat-error>\n </mat-form-field>\n </div>\n\n <mat-form-field appearance=\"outline\" subscriptSizing=\"dynamic\" class=\"save-as__menu-field\">\n <mat-label>{{ text('menu') }}</mat-label>\n <mat-icon matPrefix class=\"save-as__field-prefix\" aria-hidden=\"true\">folder_open</mat-icon>\n <input\n matInput\n data-testid=\"page-save-as-menu\"\n [formControl]=\"menu\"\n [maxlength]=\"menuMaxLength()\"\n [placeholder]=\"text('menuPlaceholder')\"\n [matAutocomplete]=\"menuAuto\"\n [matAutocompleteDisabled]=\"normalizedMenuSuggestions().length === 0\"\n />\n <mat-autocomplete\n #menuAuto=\"matAutocomplete\"\n [autoActiveFirstOption]=\"false\"\n [hideSingleSelectionIndicator]=\"true\"\n [aria-label]=\"text('menu')\"\n (opened)=\"menuAutocompleteOpen.set(true)\"\n (closed)=\"menuAutocompleteOpen.set(false)\"\n >\n @for (suggestion of filteredMenuSuggestions(); track suggestion) {\n <mat-option [value]=\"suggestion\" data-testid=\"page-save-as-menu-option\">\n <span class=\"save-as__menu-option-row\">\n <mat-icon class=\"save-as__menu-option-icon\" aria-hidden=\"true\">folder_open</mat-icon>\n <span class=\"save-as__menu-option-label\">{{ suggestion }}</span>\n @if (isCurrentMenuSuggestion(suggestion)) {\n <mat-icon class=\"save-as__menu-option-check\" aria-hidden=\"true\">check</mat-icon>\n }\n </span>\n </mat-option>\n }\n @if (createNewMenuOption(); as newMenu) {\n <mat-option [value]=\"newMenu\" data-testid=\"page-save-as-menu-create-option\">\n <span class=\"save-as__menu-option-row save-as__menu-option-row--create\">\n <mat-icon class=\"save-as__menu-option-icon\" aria-hidden=\"true\">create_new_folder</mat-icon>\n <span class=\"save-as__menu-option-label\">{{ text('menuCreateOption', { name: newMenu }) }}</span>\n </span>\n </mat-option>\n }\n </mat-autocomplete>\n <span matTextSuffix class=\"save-as__menu-suffix\" aria-hidden=\"true\">\n <span class=\"save-as__counter\" [class.is-near-limit]=\"isMenuNearLimit()\">\n {{ menuDraft().length }}/{{ menuMaxLength() }}\n </span>\n @if (normalizedMenuSuggestions().length > 0) {\n <mat-icon class=\"save-as__menu-chevron\" [class.is-open]=\"menuAutocompleteOpen()\">expand_more</mat-icon>\n }\n </span>\n <mat-hint>{{ menuHintText() }}</mat-hint>\n <mat-error>{{ text('invalidName') }}</mat-error>\n </mat-form-field>\n </div>\n\n <div class=\"save-as__footer\">\n <div class=\"save-as__preview\" data-testid=\"page-save-as-preview\">\n <span class=\"save-as__preview-label\">{{ text('previewLabel') }}</span>\n <div class=\"save-as__preview-trail\">\n <span class=\"save-as__preview-group\">\n <mat-icon aria-hidden=\"true\">folder_open</mat-icon>\n <span>{{ previewMenu() }}</span>\n </span>\n <mat-icon class=\"save-as__preview-sep\" aria-hidden=\"true\">chevron_right</mat-icon>\n <span class=\"save-as__preview-item\">\n <span class=\"save-as__preview-badge\" aria-hidden=\"true\">\n <mat-icon [praxisIcon]=\"icon()\">{{ icon() }}</mat-icon>\n </span>\n <strong class=\"save-as__preview-title\">{{ previewTitle() }}</strong>\n </span>\n </div>\n </div>\n\n <button\n mat-flat-button\n color=\"primary\"\n type=\"submit\"\n class=\"save-as__submit\"\n data-testid=\"page-save-as-submit\"\n [disabled]=\"busy() || choosingIcon() || !canSave() || title.invalid || menu.invalid\"\n >\n <mat-icon [class.is-spinning]=\"busy()\" aria-hidden=\"true\">{{ busy() ? 'sync' : 'bookmark_add' }}</mat-icon>\n <span>{{ text(busy() ? 'saving' : 'save') }}</span>\n </button>\n </div>\n</form>\n\n@if (iconError()) {\n <p class=\"save-as__alert\" role=\"alert\">\n <mat-icon aria-hidden=\"true\">error_outline</mat-icon>\n <span>{{ text('invalidIcon') }}</span>\n </p>\n}\n@if (error()) {\n <p class=\"save-as__alert\" role=\"alert\">\n <mat-icon aria-hidden=\"true\">error_outline</mat-icon>\n <span>{{ text('failed') }}</span>\n </p>\n}\n@if (result(); as confirmed) {\n <div class=\"save-result\" role=\"status\">\n <mat-icon class=\"save-result__icon\" aria-hidden=\"true\">check_circle</mat-icon>\n <span class=\"save-result__text\">{{ text('saved') }}</span>\n <code>{{ confirmed.routePath }}</code>\n <a mat-stroked-button class=\"save-result__link\" data-testid=\"page-save-as-link\" [routerLink]=\"confirmed.routePath\">\n <mat-icon aria-hidden=\"true\">open_in_new</mat-icon>\n <span>{{ text('open') }}</span>\n </a>\n </div>\n}\n", styles: [":host{display:block;min-width:0}.save-as{display:flex;flex-direction:column;gap:12px}.save-as__fields{display:flex;flex-wrap:wrap;align-items:flex-start;gap:12px}.save-as__identity-pair{flex:1.35 1 320px;min-width:0;display:grid;grid-template-columns:auto minmax(0,1fr);gap:10px;align-items:start}.save-as__menu-field{flex:1 1 240px;min-width:0}mat-form-field{width:100%;min-width:0}.save-as__icon-trigger{appearance:none;height:56px;min-width:112px;padding:0 10px 0 8px;border-radius:var(--radius-md, 10px);border:1px solid color-mix(in srgb,var(--md-sys-color-outline, var(--md-sys-color-outline-variant)) 85%,transparent);background:var(--md-sys-color-surface);color:var(--md-sys-color-on-surface);font-family:inherit;display:inline-flex;align-items:center;gap:9px;cursor:pointer;text-align:left;transition:border-color .15s ease,background-color .15s ease,box-shadow .15s ease}.save-as__icon-trigger:hover:not(:disabled){border-color:var(--md-sys-color-primary);background:color-mix(in srgb,var(--md-sys-color-primary-container) 28%,var(--md-sys-color-surface))}.save-as__icon-trigger:focus-visible{outline:2px solid var(--md-sys-color-primary);outline-offset:2px}.save-as__icon-trigger:disabled{opacity:.55;cursor:not-allowed}.save-as__icon-medallion{width:36px;height:36px;border-radius:9px;flex-shrink:0;display:grid;place-items:center;background:color-mix(in srgb,var(--md-sys-color-primary-container) 74%,var(--md-sys-color-surface));border:1px solid color-mix(in srgb,var(--md-sys-color-primary) 26%,transparent);color:var(--md-sys-color-primary)}.save-as__icon-medallion mat-icon{width:20px;height:20px;font-size:20px}.save-as__icon-copy{display:flex;flex-direction:column;gap:1px;min-width:0}.save-as__icon-eyebrow{font-size:.67rem;font-weight:600;line-height:1.15;color:var(--md-sys-color-on-surface-variant)}.save-as__icon-action{display:inline-flex;align-items:center;gap:2px;font-size:.78rem;font-weight:600;line-height:1.2;color:var(--md-sys-color-on-surface)}.save-as__icon-chevron{width:15px;height:15px;font-size:15px;color:var(--md-sys-color-on-surface-variant)}.save-as__field-prefix{margin-inline-end:6px;color:var(--md-sys-color-on-surface-variant);font-size:19px;width:19px;height:19px}.save-as__counter{font-size:.7rem;font-weight:500;font-variant-numeric:tabular-nums;color:var(--md-sys-color-on-surface-variant);padding-inline-start:6px}.save-as__counter.is-near-limit{color:var(--md-sys-color-error);font-weight:600}.save-as__footer{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px 14px;padding-top:10px;border-top:1px solid color-mix(in srgb,var(--md-sys-color-outline-variant) 62%,transparent)}.save-as__preview{display:flex;align-items:center;flex-wrap:wrap;gap:6px 10px;min-width:0;flex:1 1 260px;padding:6px 11px;border-radius:10px;background:color-mix(in srgb,var(--md-sys-color-surface-container-low) 78%,var(--md-sys-color-surface));border:1px solid color-mix(in srgb,var(--md-sys-color-outline-variant) 65%,transparent)}.save-as__preview-label{font-size:.69rem;font-weight:600;letter-spacing:.02em;color:var(--md-sys-color-on-surface-variant);white-space:nowrap}.save-as__preview-trail{display:flex;align-items:center;flex:1 1 auto;flex-wrap:wrap;gap:4px 6px;min-width:0}.save-as__preview-group{display:inline-flex;align-items:center;gap:4px;font-size:.75rem;font-weight:500;color:var(--md-sys-color-on-surface-variant);min-width:0;max-width:42ch}.save-as__preview-group span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.save-as__preview-group mat-icon{width:15px;height:15px;font-size:15px;flex-shrink:0}.save-as__preview-sep{width:15px;height:15px;font-size:15px;color:var(--md-sys-color-on-surface-variant);opacity:.7;flex-shrink:0}.save-as__preview-item{display:inline-flex;align-items:center;gap:6px;min-width:0;flex:0 1 auto}.save-as__preview-badge{width:22px;height:22px;border-radius:6px;flex-shrink:0;display:grid;place-items:center;background:color-mix(in srgb,var(--md-sys-color-primary-container) 78%,var(--md-sys-color-surface));color:var(--md-sys-color-primary)}.save-as__preview-badge mat-icon{width:14px;height:14px;font-size:14px}.save-as__preview-title{font-size:.77rem;font-weight:700;color:var(--md-sys-color-on-surface);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0;max-width:52ch}.save-as__submit{min-height:40px;height:40px;padding:0 18px;border-radius:10px;font-weight:600;letter-spacing:.01em;flex-shrink:0;display:inline-flex;align-items:center;gap:6px}.save-as__submit mat-icon{width:18px;height:18px;font-size:18px}.save-as__submit mat-icon.is-spinning{animation:saveAsSpin 1s linear infinite}@keyframes saveAsSpin{to{transform:rotate(360deg)}}.save-as__alert{display:flex;align-items:center;gap:8px;margin:10px 0 0;padding:8px 12px;border-radius:10px;background:color-mix(in srgb,var(--md-sys-color-error-container) 68%,var(--md-sys-color-surface));border:1px solid color-mix(in srgb,var(--md-sys-color-error) 34%,transparent);color:var(--md-sys-color-on-error-container, var(--md-sys-color-error));font-size:.78rem;font-weight:500}.save-as__alert mat-icon{width:17px;height:17px;font-size:17px;flex-shrink:0}.save-result{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;margin-top:10px;padding:9px 12px;border-radius:10px;background:color-mix(in srgb,var(--praxis-success, var(--md-sys-color-primary)) 11%,var(--md-sys-color-surface));border:1px solid color-mix(in srgb,var(--praxis-success, var(--md-sys-color-primary)) 32%,transparent);color:var(--md-sys-color-on-surface);font-size:.78rem;font-weight:600}.save-result__icon{width:18px;height:18px;font-size:18px;color:var(--praxis-success, var(--md-sys-color-primary));flex-shrink:0}.save-result__link{margin-left:auto;min-height:32px;height:32px;border-radius:8px}.save-result__link mat-icon{width:16px;height:16px;font-size:16px}code{padding:2px 7px;border-radius:6px;background:var(--md-sys-color-surface-container-high);overflow-wrap:anywhere;font-size:.74rem;font-weight:600}.save-as__menu-suffix{display:inline-flex;align-items:center;gap:2px}.save-as__menu-chevron{width:18px;height:18px;font-size:18px;color:var(--md-sys-color-on-surface-variant);transition:transform .16s ease,color .16s ease}.save-as__menu-chevron.is-open{transform:rotate(180deg);color:var(--md-sys-color-primary)}.save-as__menu-option-row{display:inline-flex;align-items:center;gap:8px;width:100%;min-width:0}.save-as__menu-option-icon{width:18px;height:18px;font-size:18px;flex-shrink:0;color:var(--md-sys-color-on-surface-variant)}.save-as__menu-option-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.save-as__menu-option-check{margin-left:auto;width:16px;height:16px;font-size:16px;flex-shrink:0;color:var(--md-sys-color-primary)}.save-as__menu-option-row--create{color:var(--md-sys-color-primary);font-weight:600}.save-as__menu-option-row--create .save-as__menu-option-icon{color:var(--md-sys-color-primary)}@media(max-width:520px){.save-as__identity-pair{flex-basis:100%;grid-template-columns:minmax(0,1fr)}.save-as__icon-trigger{width:100%;height:50px}.save-as__icon-copy{flex:1;flex-direction:row;align-items:center;justify-content:space-between;gap:8px}.save-as__icon-eyebrow{font-size:.74rem}.save-as__preview-group,.save-as__preview-title{max-width:100%}.save-as__submit{width:100%;justify-content:center}}@media(prefers-reduced-motion:reduce){.save-as__icon-trigger,.save-as__menu-chevron{transition:none}.save-as__submit mat-icon.is-spinning{animation:none}}\n"], dependencies: [{ kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1$1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1$1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],[formArray],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1$1.MaxLengthValidator, selector: "[maxlength][formControlName],[maxlength][formControl],[maxlength][ngModel]", inputs: ["maxlength"] }, { kind: "directive", type: i1$1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "directive", type: RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "ngmodule", type: MatAutocompleteModule }, { kind: "component", type: i2$3.MatAutocomplete, selector: "mat-autocomplete", inputs: ["aria-label", "aria-labelledby", "displayWith", "autoActiveFirstOption", "autoSelectActiveOption", "requireSelection", "panelWidth", "disableRipple", "class", "hideSingleSelectionIndicator"], outputs: ["optionSelected", "opened", "closed", "optionActivated"], exportAs: ["matAutocomplete"] }, { kind: "component", type: i3$1.MatOption, selector: "mat-option", inputs: ["value", "id", "disabled"], outputs: ["onSelectionChange"], exportAs: ["matOption"] }, { kind: "directive", type: i2$3.MatAutocompleteTrigger, selector: "input[matAutocomplete], textarea[matAutocomplete]", inputs: ["matAutocomplete", "matAutocompletePosition", "matAutocompleteConnectedTo", "autocomplete", "matAutocompleteDisabled"], exportAs: ["matAutocompleteTrigger"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i2.MatButton, selector: " button[matButton], a[matButton], button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button], a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button] ", inputs: ["matButton"], exportAs: ["matButton", "matAnchor"] }, { kind: "ngmodule", type: MatFormFieldModule }, { kind: "component", type: i5$1.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i5$1.MatLabel, selector: "mat-label" }, { kind: "directive", type: i5$1.MatHint, selector: "mat-hint", inputs: ["align", "id"] }, { kind: "directive", type: i5$1.MatError, selector: "mat-error, [matError]", inputs: ["id"] }, { kind: "directive", type: i5$1.MatPrefix, selector: "[matPrefix], [matIconPrefix], [matTextPrefix]", inputs: ["matTextPrefix"] }, { kind: "directive", type: i5$1.MatSuffix, selector: "[matSuffix], [matIconSuffix], [matTextSuffix]", inputs: ["matTextSuffix"] }, { kind: "ngmodule", type: MatInputModule }, { kind: "directive", type: i9.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly", "disabledInteractive"], exportAs: ["matInput"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i2$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatDialogModule }, { kind: "ngmodule", type: MatTooltipModule }, { kind: "directive", type: i3.MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipPosition", "matTooltipPositionAtOrigin", "matTooltipDisabled", "matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }, { kind: "directive", type: PraxisIconDirective, selector: "mat-icon[praxisIcon]", inputs: ["praxisIcon"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
37459
38098
|
}
|
|
37460
38099
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImport: i0, type: PraxisPageSaveAsComponent, decorators: [{
|
|
37461
38100
|
type: Component,
|
|
37462
|
-
args: [{ selector: 'praxis-page-save-as', imports: [
|
|
37463
|
-
|
|
38101
|
+
args: [{ selector: 'praxis-page-save-as', imports: [
|
|
38102
|
+
ReactiveFormsModule,
|
|
38103
|
+
RouterLink,
|
|
38104
|
+
MatAutocompleteModule,
|
|
38105
|
+
MatButtonModule,
|
|
38106
|
+
MatFormFieldModule,
|
|
38107
|
+
MatInputModule,
|
|
38108
|
+
MatIconModule,
|
|
38109
|
+
MatDialogModule,
|
|
38110
|
+
MatTooltipModule,
|
|
38111
|
+
PraxisIconDirective,
|
|
38112
|
+
], providers: [providePraxisPageBuilderI18n()], changeDetection: ChangeDetectionStrategy.OnPush, template: "<form class=\"save-as\" [attr.aria-busy]=\"busy() || choosingIcon()\" (submit)=\"onFormSubmit($event)\" novalidate>\n <div class=\"save-as__fields\">\n <div class=\"save-as__identity-pair\">\n <button\n type=\"button\"\n class=\"save-as__icon-trigger\"\n data-testid=\"page-save-as-icon\"\n [attr.data-icon]=\"icon()\"\n [attr.aria-label]=\"iconButtonAriaLabel()\"\n [matTooltip]=\"iconButtonTooltip()\"\n [disabled]=\"busy() || choosingIcon()\"\n (click)=\"chooseIcon()\"\n >\n <span class=\"save-as__icon-medallion\" aria-hidden=\"true\">\n <mat-icon [praxisIcon]=\"icon()\">{{ icon() }}</mat-icon>\n </span>\n <span class=\"save-as__icon-copy\">\n <span class=\"save-as__icon-eyebrow\">{{ text('iconLabel') }}</span>\n <span class=\"save-as__icon-action\">\n <span>{{ text('iconChange') }}</span>\n <mat-icon class=\"save-as__icon-chevron\" aria-hidden=\"true\">expand_more</mat-icon>\n </span>\n </span>\n </button>\n\n <mat-form-field appearance=\"outline\" subscriptSizing=\"dynamic\" class=\"save-as__title-field\">\n <mat-label>{{ text('title') }}</mat-label>\n <input\n matInput\n data-testid=\"page-save-as-title\"\n [formControl]=\"title\"\n [maxlength]=\"titleMaxLength()\"\n [placeholder]=\"text('titlePlaceholder')\"\n />\n <span matTextSuffix class=\"save-as__counter\" [class.is-near-limit]=\"isTitleNearLimit()\" aria-hidden=\"true\">\n {{ titleDraft().length }}/{{ titleMaxLength() }}\n </span>\n <mat-error>{{ text('invalidName') }}</mat-error>\n </mat-form-field>\n </div>\n\n <mat-form-field appearance=\"outline\" subscriptSizing=\"dynamic\" class=\"save-as__menu-field\">\n <mat-label>{{ text('menu') }}</mat-label>\n <mat-icon matPrefix class=\"save-as__field-prefix\" aria-hidden=\"true\">folder_open</mat-icon>\n <input\n matInput\n data-testid=\"page-save-as-menu\"\n [formControl]=\"menu\"\n [maxlength]=\"menuMaxLength()\"\n [placeholder]=\"text('menuPlaceholder')\"\n [matAutocomplete]=\"menuAuto\"\n [matAutocompleteDisabled]=\"normalizedMenuSuggestions().length === 0\"\n />\n <mat-autocomplete\n #menuAuto=\"matAutocomplete\"\n [autoActiveFirstOption]=\"false\"\n [hideSingleSelectionIndicator]=\"true\"\n [aria-label]=\"text('menu')\"\n (opened)=\"menuAutocompleteOpen.set(true)\"\n (closed)=\"menuAutocompleteOpen.set(false)\"\n >\n @for (suggestion of filteredMenuSuggestions(); track suggestion) {\n <mat-option [value]=\"suggestion\" data-testid=\"page-save-as-menu-option\">\n <span class=\"save-as__menu-option-row\">\n <mat-icon class=\"save-as__menu-option-icon\" aria-hidden=\"true\">folder_open</mat-icon>\n <span class=\"save-as__menu-option-label\">{{ suggestion }}</span>\n @if (isCurrentMenuSuggestion(suggestion)) {\n <mat-icon class=\"save-as__menu-option-check\" aria-hidden=\"true\">check</mat-icon>\n }\n </span>\n </mat-option>\n }\n @if (createNewMenuOption(); as newMenu) {\n <mat-option [value]=\"newMenu\" data-testid=\"page-save-as-menu-create-option\">\n <span class=\"save-as__menu-option-row save-as__menu-option-row--create\">\n <mat-icon class=\"save-as__menu-option-icon\" aria-hidden=\"true\">create_new_folder</mat-icon>\n <span class=\"save-as__menu-option-label\">{{ text('menuCreateOption', { name: newMenu }) }}</span>\n </span>\n </mat-option>\n }\n </mat-autocomplete>\n <span matTextSuffix class=\"save-as__menu-suffix\" aria-hidden=\"true\">\n <span class=\"save-as__counter\" [class.is-near-limit]=\"isMenuNearLimit()\">\n {{ menuDraft().length }}/{{ menuMaxLength() }}\n </span>\n @if (normalizedMenuSuggestions().length > 0) {\n <mat-icon class=\"save-as__menu-chevron\" [class.is-open]=\"menuAutocompleteOpen()\">expand_more</mat-icon>\n }\n </span>\n <mat-hint>{{ menuHintText() }}</mat-hint>\n <mat-error>{{ text('invalidName') }}</mat-error>\n </mat-form-field>\n </div>\n\n <div class=\"save-as__footer\">\n <div class=\"save-as__preview\" data-testid=\"page-save-as-preview\">\n <span class=\"save-as__preview-label\">{{ text('previewLabel') }}</span>\n <div class=\"save-as__preview-trail\">\n <span class=\"save-as__preview-group\">\n <mat-icon aria-hidden=\"true\">folder_open</mat-icon>\n <span>{{ previewMenu() }}</span>\n </span>\n <mat-icon class=\"save-as__preview-sep\" aria-hidden=\"true\">chevron_right</mat-icon>\n <span class=\"save-as__preview-item\">\n <span class=\"save-as__preview-badge\" aria-hidden=\"true\">\n <mat-icon [praxisIcon]=\"icon()\">{{ icon() }}</mat-icon>\n </span>\n <strong class=\"save-as__preview-title\">{{ previewTitle() }}</strong>\n </span>\n </div>\n </div>\n\n <button\n mat-flat-button\n color=\"primary\"\n type=\"submit\"\n class=\"save-as__submit\"\n data-testid=\"page-save-as-submit\"\n [disabled]=\"busy() || choosingIcon() || !canSave() || title.invalid || menu.invalid\"\n >\n <mat-icon [class.is-spinning]=\"busy()\" aria-hidden=\"true\">{{ busy() ? 'sync' : 'bookmark_add' }}</mat-icon>\n <span>{{ text(busy() ? 'saving' : 'save') }}</span>\n </button>\n </div>\n</form>\n\n@if (iconError()) {\n <p class=\"save-as__alert\" role=\"alert\">\n <mat-icon aria-hidden=\"true\">error_outline</mat-icon>\n <span>{{ text('invalidIcon') }}</span>\n </p>\n}\n@if (error()) {\n <p class=\"save-as__alert\" role=\"alert\">\n <mat-icon aria-hidden=\"true\">error_outline</mat-icon>\n <span>{{ text('failed') }}</span>\n </p>\n}\n@if (result(); as confirmed) {\n <div class=\"save-result\" role=\"status\">\n <mat-icon class=\"save-result__icon\" aria-hidden=\"true\">check_circle</mat-icon>\n <span class=\"save-result__text\">{{ text('saved') }}</span>\n <code>{{ confirmed.routePath }}</code>\n <a mat-stroked-button class=\"save-result__link\" data-testid=\"page-save-as-link\" [routerLink]=\"confirmed.routePath\">\n <mat-icon aria-hidden=\"true\">open_in_new</mat-icon>\n <span>{{ text('open') }}</span>\n </a>\n </div>\n}\n", styles: [":host{display:block;min-width:0}.save-as{display:flex;flex-direction:column;gap:12px}.save-as__fields{display:flex;flex-wrap:wrap;align-items:flex-start;gap:12px}.save-as__identity-pair{flex:1.35 1 320px;min-width:0;display:grid;grid-template-columns:auto minmax(0,1fr);gap:10px;align-items:start}.save-as__menu-field{flex:1 1 240px;min-width:0}mat-form-field{width:100%;min-width:0}.save-as__icon-trigger{appearance:none;height:56px;min-width:112px;padding:0 10px 0 8px;border-radius:var(--radius-md, 10px);border:1px solid color-mix(in srgb,var(--md-sys-color-outline, var(--md-sys-color-outline-variant)) 85%,transparent);background:var(--md-sys-color-surface);color:var(--md-sys-color-on-surface);font-family:inherit;display:inline-flex;align-items:center;gap:9px;cursor:pointer;text-align:left;transition:border-color .15s ease,background-color .15s ease,box-shadow .15s ease}.save-as__icon-trigger:hover:not(:disabled){border-color:var(--md-sys-color-primary);background:color-mix(in srgb,var(--md-sys-color-primary-container) 28%,var(--md-sys-color-surface))}.save-as__icon-trigger:focus-visible{outline:2px solid var(--md-sys-color-primary);outline-offset:2px}.save-as__icon-trigger:disabled{opacity:.55;cursor:not-allowed}.save-as__icon-medallion{width:36px;height:36px;border-radius:9px;flex-shrink:0;display:grid;place-items:center;background:color-mix(in srgb,var(--md-sys-color-primary-container) 74%,var(--md-sys-color-surface));border:1px solid color-mix(in srgb,var(--md-sys-color-primary) 26%,transparent);color:var(--md-sys-color-primary)}.save-as__icon-medallion mat-icon{width:20px;height:20px;font-size:20px}.save-as__icon-copy{display:flex;flex-direction:column;gap:1px;min-width:0}.save-as__icon-eyebrow{font-size:.67rem;font-weight:600;line-height:1.15;color:var(--md-sys-color-on-surface-variant)}.save-as__icon-action{display:inline-flex;align-items:center;gap:2px;font-size:.78rem;font-weight:600;line-height:1.2;color:var(--md-sys-color-on-surface)}.save-as__icon-chevron{width:15px;height:15px;font-size:15px;color:var(--md-sys-color-on-surface-variant)}.save-as__field-prefix{margin-inline-end:6px;color:var(--md-sys-color-on-surface-variant);font-size:19px;width:19px;height:19px}.save-as__counter{font-size:.7rem;font-weight:500;font-variant-numeric:tabular-nums;color:var(--md-sys-color-on-surface-variant);padding-inline-start:6px}.save-as__counter.is-near-limit{color:var(--md-sys-color-error);font-weight:600}.save-as__footer{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px 14px;padding-top:10px;border-top:1px solid color-mix(in srgb,var(--md-sys-color-outline-variant) 62%,transparent)}.save-as__preview{display:flex;align-items:center;flex-wrap:wrap;gap:6px 10px;min-width:0;flex:1 1 260px;padding:6px 11px;border-radius:10px;background:color-mix(in srgb,var(--md-sys-color-surface-container-low) 78%,var(--md-sys-color-surface));border:1px solid color-mix(in srgb,var(--md-sys-color-outline-variant) 65%,transparent)}.save-as__preview-label{font-size:.69rem;font-weight:600;letter-spacing:.02em;color:var(--md-sys-color-on-surface-variant);white-space:nowrap}.save-as__preview-trail{display:flex;align-items:center;flex:1 1 auto;flex-wrap:wrap;gap:4px 6px;min-width:0}.save-as__preview-group{display:inline-flex;align-items:center;gap:4px;font-size:.75rem;font-weight:500;color:var(--md-sys-color-on-surface-variant);min-width:0;max-width:42ch}.save-as__preview-group span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.save-as__preview-group mat-icon{width:15px;height:15px;font-size:15px;flex-shrink:0}.save-as__preview-sep{width:15px;height:15px;font-size:15px;color:var(--md-sys-color-on-surface-variant);opacity:.7;flex-shrink:0}.save-as__preview-item{display:inline-flex;align-items:center;gap:6px;min-width:0;flex:0 1 auto}.save-as__preview-badge{width:22px;height:22px;border-radius:6px;flex-shrink:0;display:grid;place-items:center;background:color-mix(in srgb,var(--md-sys-color-primary-container) 78%,var(--md-sys-color-surface));color:var(--md-sys-color-primary)}.save-as__preview-badge mat-icon{width:14px;height:14px;font-size:14px}.save-as__preview-title{font-size:.77rem;font-weight:700;color:var(--md-sys-color-on-surface);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0;max-width:52ch}.save-as__submit{min-height:40px;height:40px;padding:0 18px;border-radius:10px;font-weight:600;letter-spacing:.01em;flex-shrink:0;display:inline-flex;align-items:center;gap:6px}.save-as__submit mat-icon{width:18px;height:18px;font-size:18px}.save-as__submit mat-icon.is-spinning{animation:saveAsSpin 1s linear infinite}@keyframes saveAsSpin{to{transform:rotate(360deg)}}.save-as__alert{display:flex;align-items:center;gap:8px;margin:10px 0 0;padding:8px 12px;border-radius:10px;background:color-mix(in srgb,var(--md-sys-color-error-container) 68%,var(--md-sys-color-surface));border:1px solid color-mix(in srgb,var(--md-sys-color-error) 34%,transparent);color:var(--md-sys-color-on-error-container, var(--md-sys-color-error));font-size:.78rem;font-weight:500}.save-as__alert mat-icon{width:17px;height:17px;font-size:17px;flex-shrink:0}.save-result{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;margin-top:10px;padding:9px 12px;border-radius:10px;background:color-mix(in srgb,var(--praxis-success, var(--md-sys-color-primary)) 11%,var(--md-sys-color-surface));border:1px solid color-mix(in srgb,var(--praxis-success, var(--md-sys-color-primary)) 32%,transparent);color:var(--md-sys-color-on-surface);font-size:.78rem;font-weight:600}.save-result__icon{width:18px;height:18px;font-size:18px;color:var(--praxis-success, var(--md-sys-color-primary));flex-shrink:0}.save-result__link{margin-left:auto;min-height:32px;height:32px;border-radius:8px}.save-result__link mat-icon{width:16px;height:16px;font-size:16px}code{padding:2px 7px;border-radius:6px;background:var(--md-sys-color-surface-container-high);overflow-wrap:anywhere;font-size:.74rem;font-weight:600}.save-as__menu-suffix{display:inline-flex;align-items:center;gap:2px}.save-as__menu-chevron{width:18px;height:18px;font-size:18px;color:var(--md-sys-color-on-surface-variant);transition:transform .16s ease,color .16s ease}.save-as__menu-chevron.is-open{transform:rotate(180deg);color:var(--md-sys-color-primary)}.save-as__menu-option-row{display:inline-flex;align-items:center;gap:8px;width:100%;min-width:0}.save-as__menu-option-icon{width:18px;height:18px;font-size:18px;flex-shrink:0;color:var(--md-sys-color-on-surface-variant)}.save-as__menu-option-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.save-as__menu-option-check{margin-left:auto;width:16px;height:16px;font-size:16px;flex-shrink:0;color:var(--md-sys-color-primary)}.save-as__menu-option-row--create{color:var(--md-sys-color-primary);font-weight:600}.save-as__menu-option-row--create .save-as__menu-option-icon{color:var(--md-sys-color-primary)}@media(max-width:520px){.save-as__identity-pair{flex-basis:100%;grid-template-columns:minmax(0,1fr)}.save-as__icon-trigger{width:100%;height:50px}.save-as__icon-copy{flex:1;flex-direction:row;align-items:center;justify-content:space-between;gap:8px}.save-as__icon-eyebrow{font-size:.74rem}.save-as__preview-group,.save-as__preview-title{max-width:100%}.save-as__submit{width:100%;justify-content:center}}@media(prefers-reduced-motion:reduce){.save-as__icon-trigger,.save-as__menu-chevron{transition:none}.save-as__submit mat-icon.is-spinning{animation:none}}\n"] }]
|
|
38113
|
+
}], ctorParameters: () => [], propDecorators: { adapter: [{ type: i0.Input, args: [{ isSignal: true, alias: "adapter", required: true }] }], contextKey: [{ type: i0.Input, args: [{ isSignal: true, alias: "contextKey", required: true }] }], canSave: [{ type: i0.Input, args: [{ isSignal: true, alias: "canSave", required: false }] }], initialTitle: [{ type: i0.Input, args: [{ isSignal: true, alias: "initialTitle", required: false }] }], initialMenuLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "initialMenuLabel", required: false }] }], initialIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "initialIcon", required: false }] }], menuSuggestions: [{ type: i0.Input, args: [{ isSignal: true, alias: "menuSuggestions", required: false }] }], titleMaxLength: [{ type: i0.Input, args: [{ isSignal: true, alias: "titleMaxLength", required: false }] }], menuMaxLength: [{ type: i0.Input, args: [{ isSignal: true, alias: "menuMaxLength", required: false }] }], saveRequested: [{ type: i0.Output, args: ["saveRequested"] }], saved: [{ type: i0.Output, args: ["saved"] }], saveFailed: [{ type: i0.Output, args: ["saveFailed"] }] } });
|
|
37464
38114
|
|
|
37465
38115
|
/** Copies the current local authoring snapshot. Allocation/provenance belongs to the destination adapter. */
|
|
37466
38116
|
class PraxisPageCopyActionComponent {
|
|
@@ -38094,6 +38744,184 @@ class GovernedPageNavigationController {
|
|
|
38094
38744
|
}
|
|
38095
38745
|
}
|
|
38096
38746
|
|
|
38747
|
+
const FULL_GOVERNANCE_TRIAD = (runtimeIdProp) => Object.freeze({
|
|
38748
|
+
runtimeIdProp,
|
|
38749
|
+
componentInstanceId: true,
|
|
38750
|
+
configPersistenceStrategy: true,
|
|
38751
|
+
enableCustomization: true,
|
|
38752
|
+
});
|
|
38753
|
+
const PARTIAL_ID_INSTANCE_CUSTOMIZATION = (runtimeIdProp) => Object.freeze({
|
|
38754
|
+
runtimeIdProp,
|
|
38755
|
+
componentInstanceId: true,
|
|
38756
|
+
configPersistenceStrategy: false,
|
|
38757
|
+
enableCustomization: true,
|
|
38758
|
+
});
|
|
38759
|
+
const CORE_INSTANCE_ID_ONLY = Object.freeze({
|
|
38760
|
+
runtimeIdProp: 'instanceId',
|
|
38761
|
+
componentInstanceId: false,
|
|
38762
|
+
configPersistenceStrategy: false,
|
|
38763
|
+
enableCustomization: false,
|
|
38764
|
+
});
|
|
38765
|
+
const NO_GOVERNANCE_INPUTS = Object.freeze({
|
|
38766
|
+
componentInstanceId: false,
|
|
38767
|
+
configPersistenceStrategy: false,
|
|
38768
|
+
enableCustomization: false,
|
|
38769
|
+
});
|
|
38770
|
+
const NO_GOVERNANCE_STRIP_LEGACY_ID = (legacyIdProp) => Object.freeze({
|
|
38771
|
+
componentInstanceId: false,
|
|
38772
|
+
configPersistenceStrategy: false,
|
|
38773
|
+
enableCustomization: false,
|
|
38774
|
+
stripLegacySyntheticIdProps: Object.freeze([legacyIdProp]),
|
|
38775
|
+
});
|
|
38776
|
+
/** Canonical table mapping lowercased widget definition IDs to their declared governance/runtime input capabilities. */
|
|
38777
|
+
const GOVERNED_WIDGET_RUNTIME_INPUT_CAPABILITIES = Object.freeze({
|
|
38778
|
+
// Full triad + *Id (10)
|
|
38779
|
+
'praxis-dynamic-form': FULL_GOVERNANCE_TRIAD('formId'),
|
|
38780
|
+
'praxis-table': FULL_GOVERNANCE_TRIAD('tableId'),
|
|
38781
|
+
'praxis-list': FULL_GOVERNANCE_TRIAD('listId'),
|
|
38782
|
+
'praxis-tabs': FULL_GOVERNANCE_TRIAD('tabsId'),
|
|
38783
|
+
'praxis-expansion': FULL_GOVERNANCE_TRIAD('expansionId'),
|
|
38784
|
+
'praxis-organogram': FULL_GOVERNANCE_TRIAD('organogramId'),
|
|
38785
|
+
'praxis-relationship-graph': FULL_GOVERNANCE_TRIAD('graphId'),
|
|
38786
|
+
'praxis-progression-ladder': FULL_GOVERNANCE_TRIAD('ladderId'),
|
|
38787
|
+
'praxis-crud': FULL_GOVERNANCE_TRIAD('crudId'),
|
|
38788
|
+
'praxis-timeline-lanes': FULL_GOVERNANCE_TRIAD('timelineId'),
|
|
38789
|
+
// Partial (*Id + componentInstanceId + enableCustomization, NO configPersistenceStrategy) (3)
|
|
38790
|
+
'praxis-stepper': PARTIAL_ID_INSTANCE_CUSTOMIZATION('stepperId'),
|
|
38791
|
+
'praxis-filter': PARTIAL_ID_INSTANCE_CUSTOMIZATION('filterId'),
|
|
38792
|
+
'praxis-files-upload': PARTIAL_ID_INSTANCE_CUSTOMIZATION('filesUploadId'),
|
|
38793
|
+
// Persistence + customization ONLY (1)
|
|
38794
|
+
'praxis-related-resource-outlet': Object.freeze({
|
|
38795
|
+
componentInstanceId: false,
|
|
38796
|
+
configPersistenceStrategy: true,
|
|
38797
|
+
enableCustomization: true,
|
|
38798
|
+
stripLegacySyntheticIdProps: Object.freeze(['outletId']),
|
|
38799
|
+
}),
|
|
38800
|
+
// Customization ONLY (2)
|
|
38801
|
+
'praxis-chart': Object.freeze({
|
|
38802
|
+
componentInstanceId: false,
|
|
38803
|
+
configPersistenceStrategy: false,
|
|
38804
|
+
enableCustomization: true,
|
|
38805
|
+
stripLegacySyntheticIdProps: Object.freeze(['chartId']),
|
|
38806
|
+
}),
|
|
38807
|
+
'praxis-analytics-presentation': Object.freeze({
|
|
38808
|
+
componentInstanceId: false,
|
|
38809
|
+
configPersistenceStrategy: false,
|
|
38810
|
+
enableCustomization: true,
|
|
38811
|
+
stripLegacySyntheticIdProps: Object.freeze(['analyticsId']),
|
|
38812
|
+
}),
|
|
38813
|
+
// Core content widgets (instanceId ONLY) (5)
|
|
38814
|
+
'widget:hero-banner': CORE_INSTANCE_ID_ONLY,
|
|
38815
|
+
'widget:footer-links': CORE_INSTANCE_ID_ONLY,
|
|
38816
|
+
'widget:legal-notice': CORE_INSTANCE_ID_ONLY,
|
|
38817
|
+
'widget:rich-text-block': CORE_INSTANCE_ID_ONLY,
|
|
38818
|
+
'form:user-context-summary': CORE_INSTANCE_ID_ONLY,
|
|
38819
|
+
// Declarative widgets with ZERO synthetic governance inputs declared (13)
|
|
38820
|
+
'praxis-rich-content': NO_GOVERNANCE_INPUTS,
|
|
38821
|
+
'pdx-cron-builder': NO_GOVERNANCE_STRIP_LEGACY_ID('cronBuilderId'),
|
|
38822
|
+
'praxis-manual-form': NO_GOVERNANCE_INPUTS,
|
|
38823
|
+
'praxis-editorial-form-runtime': NO_GOVERNANCE_INPUTS,
|
|
38824
|
+
'praxis-visual-builder': NO_GOVERNANCE_INPUTS,
|
|
38825
|
+
'praxis-table-rule-builder': NO_GOVERNANCE_INPUTS,
|
|
38826
|
+
'praxis-micro-visualization': NO_GOVERNANCE_INPUTS,
|
|
38827
|
+
'praxis-calculation-waterfall': NO_GOVERNANCE_STRIP_LEGACY_ID('waterfallId'),
|
|
38828
|
+
'praxis-quota-gauge': NO_GOVERNANCE_STRIP_LEGACY_ID('gaugeId'),
|
|
38829
|
+
'praxis-lifecycle-timeline': NO_GOVERNANCE_STRIP_LEGACY_ID('timelineId'),
|
|
38830
|
+
'praxis-roster-matrix': NO_GOVERNANCE_STRIP_LEGACY_ID('matrixId'),
|
|
38831
|
+
'praxis-kpi-strip': NO_GOVERNANCE_INPUTS,
|
|
38832
|
+
'praxis-kpi-card': NO_GOVERNANCE_INPUTS,
|
|
38833
|
+
// Container widgets (defensive for nested sanitization) (2)
|
|
38834
|
+
'praxis-dynamic-page': Object.freeze({
|
|
38835
|
+
componentInstanceId: true,
|
|
38836
|
+
configPersistenceStrategy: false,
|
|
38837
|
+
enableCustomization: true,
|
|
38838
|
+
}),
|
|
38839
|
+
'praxis-page-builder': Object.freeze({
|
|
38840
|
+
componentInstanceId: true,
|
|
38841
|
+
configPersistenceStrategy: false,
|
|
38842
|
+
enableCustomization: false,
|
|
38843
|
+
}),
|
|
38844
|
+
});
|
|
38845
|
+
/**
|
|
38846
|
+
* Looks up the declared governance/runtime input capabilities for `widgetDefinitionId`.
|
|
38847
|
+
* Returns `null` for unregistered or custom host widget IDs.
|
|
38848
|
+
*/
|
|
38849
|
+
function getGovernedWidgetRuntimeInputCapabilities(widgetDefinitionId) {
|
|
38850
|
+
const normalizedId = String(widgetDefinitionId ?? '')
|
|
38851
|
+
.trim()
|
|
38852
|
+
.toLowerCase();
|
|
38853
|
+
if (!normalizedId) {
|
|
38854
|
+
return null;
|
|
38855
|
+
}
|
|
38856
|
+
return GOVERNED_WIDGET_RUNTIME_INPUT_CAPABILITIES[normalizedId] ?? null;
|
|
38857
|
+
}
|
|
38858
|
+
/**
|
|
38859
|
+
* Applies governance locks (`configPersistenceStrategy`, `enableCustomization`) and optional
|
|
38860
|
+
* deterministic preview runtime IDs strictly according to the widget's declared capabilities,
|
|
38861
|
+
* removing undeclared or legacy synthetic governance keys on built-in widgets.
|
|
38862
|
+
*/
|
|
38863
|
+
function applyGovernedRuntimeInputs(widgetDefinitionId, baseInputs, options) {
|
|
38864
|
+
const next = { ...baseInputs };
|
|
38865
|
+
const caps = getGovernedWidgetRuntimeInputCapabilities(widgetDefinitionId);
|
|
38866
|
+
if (caps !== null) {
|
|
38867
|
+
if (options.runtimeId) {
|
|
38868
|
+
if (caps.runtimeIdProp) {
|
|
38869
|
+
next[caps.runtimeIdProp] = options.runtimeId;
|
|
38870
|
+
}
|
|
38871
|
+
if (caps.componentInstanceId) {
|
|
38872
|
+
next['componentInstanceId'] = options.runtimeId;
|
|
38873
|
+
}
|
|
38874
|
+
else {
|
|
38875
|
+
delete next['componentInstanceId'];
|
|
38876
|
+
}
|
|
38877
|
+
}
|
|
38878
|
+
else if (options.lockForGovernance && !caps.componentInstanceId) {
|
|
38879
|
+
delete next['componentInstanceId'];
|
|
38880
|
+
}
|
|
38881
|
+
if (options.lockForGovernance && caps.stripLegacySyntheticIdProps?.length) {
|
|
38882
|
+
for (const legacyKey of caps.stripLegacySyntheticIdProps) {
|
|
38883
|
+
delete next[legacyKey];
|
|
38884
|
+
}
|
|
38885
|
+
}
|
|
38886
|
+
if (caps.configPersistenceStrategy) {
|
|
38887
|
+
if (options.lockForGovernance) {
|
|
38888
|
+
next['configPersistenceStrategy'] = 'volatile';
|
|
38889
|
+
}
|
|
38890
|
+
else if (!options.preservePersistenceStrategy &&
|
|
38891
|
+
next['configPersistenceStrategy'] !== 'input-first') {
|
|
38892
|
+
next['configPersistenceStrategy'] = 'volatile';
|
|
38893
|
+
}
|
|
38894
|
+
}
|
|
38895
|
+
else {
|
|
38896
|
+
delete next['configPersistenceStrategy'];
|
|
38897
|
+
}
|
|
38898
|
+
if (caps.enableCustomization) {
|
|
38899
|
+
if (options.lockForGovernance) {
|
|
38900
|
+
next['enableCustomization'] = false;
|
|
38901
|
+
}
|
|
38902
|
+
}
|
|
38903
|
+
else {
|
|
38904
|
+
delete next['enableCustomization'];
|
|
38905
|
+
}
|
|
38906
|
+
return next;
|
|
38907
|
+
}
|
|
38908
|
+
// Unknown or host-custom widget: never inject undeclared inputs, but lock if already present.
|
|
38909
|
+
if (options.lockForGovernance) {
|
|
38910
|
+
if ('configPersistenceStrategy' in next) {
|
|
38911
|
+
next['configPersistenceStrategy'] = 'volatile';
|
|
38912
|
+
}
|
|
38913
|
+
if ('enableCustomization' in next) {
|
|
38914
|
+
next['enableCustomization'] = false;
|
|
38915
|
+
}
|
|
38916
|
+
}
|
|
38917
|
+
else if (!options.preservePersistenceStrategy &&
|
|
38918
|
+
'configPersistenceStrategy' in next &&
|
|
38919
|
+
next['configPersistenceStrategy'] !== 'input-first') {
|
|
38920
|
+
next['configPersistenceStrategy'] = 'volatile';
|
|
38921
|
+
}
|
|
38922
|
+
return next;
|
|
38923
|
+
}
|
|
38924
|
+
|
|
38097
38925
|
function buildDeclarativeWidgetValidator(widgetDefinitionId, requiredAnyOf, codePrefix) {
|
|
38098
38926
|
return (widget) => {
|
|
38099
38927
|
if (widget.definition.id !== widgetDefinitionId) {
|
|
@@ -38106,12 +38934,12 @@ function buildDeclarativeWidgetValidator(widgetDefinitionId, requiredAnyOf, code
|
|
|
38106
38934
|
catch {
|
|
38107
38935
|
return [{ code: `${codePrefix}.page.json.invalid`, path: '/definition/inputs' }];
|
|
38108
38936
|
}
|
|
38109
|
-
if (!isPlainRecord$
|
|
38937
|
+
if (!isPlainRecord$3(inputs)) {
|
|
38110
38938
|
return [{ code: `${codePrefix}.page.inputs.invalid`, path: '/definition/inputs' }];
|
|
38111
38939
|
}
|
|
38112
38940
|
const hasPayload = requiredAnyOf.some(key => {
|
|
38113
38941
|
const entry = inputs[key];
|
|
38114
|
-
return (isPlainRecord$
|
|
38942
|
+
return (isPlainRecord$3(entry) ||
|
|
38115
38943
|
Array.isArray(entry) ||
|
|
38116
38944
|
(typeof entry === 'string' && entry.trim().length > 0) ||
|
|
38117
38945
|
(typeof entry === 'number' && Number.isFinite(entry)));
|
|
@@ -38127,7 +38955,7 @@ function buildDeclarativeWidgetValidator(widgetDefinitionId, requiredAnyOf, code
|
|
|
38127
38955
|
return [];
|
|
38128
38956
|
};
|
|
38129
38957
|
}
|
|
38130
|
-
function buildDeclarativePreviewAdapter(widgetDefinitionId, validate
|
|
38958
|
+
function buildDeclarativePreviewAdapter(widgetDefinitionId, validate) {
|
|
38131
38959
|
return {
|
|
38132
38960
|
widgetDefinitionId,
|
|
38133
38961
|
certifiedForInteractivePreview: true,
|
|
@@ -38135,13 +38963,10 @@ function buildDeclarativePreviewAdapter(widgetDefinitionId, validate, runtimeIdP
|
|
|
38135
38963
|
materializePreviewInputs: (widget, pageId) => {
|
|
38136
38964
|
const runtimeId = derivePageChildRuntimeId(pageId, widget.key);
|
|
38137
38965
|
const cloned = cloneBoundedUiLayoutJsonDocument(widget.definition.inputs ?? {});
|
|
38138
|
-
return {
|
|
38139
|
-
|
|
38140
|
-
|
|
38141
|
-
|
|
38142
|
-
configPersistenceStrategy: 'volatile',
|
|
38143
|
-
enableCustomization: false,
|
|
38144
|
-
};
|
|
38966
|
+
return applyGovernedRuntimeInputs(widgetDefinitionId, cloned, {
|
|
38967
|
+
runtimeId,
|
|
38968
|
+
lockForGovernance: true,
|
|
38969
|
+
});
|
|
38145
38970
|
},
|
|
38146
38971
|
};
|
|
38147
38972
|
}
|
|
@@ -38175,10 +39000,14 @@ const validateQuotaGaugePageWidget = buildDeclarativeWidgetValidator('praxis-quo
|
|
|
38175
39000
|
const validateLifecycleTimelinePageWidget = buildDeclarativeWidgetValidator('praxis-lifecycle-timeline', ['document', 'config', 'events', 'stages', 'milestones', 'items'], 'lifecycleTimeline');
|
|
38176
39001
|
const validateRosterMatrixPageWidget = buildDeclarativeWidgetValidator('praxis-roster-matrix', ['document', 'config', 'matrix', 'rows', 'entries', 'items'], 'rosterMatrix');
|
|
38177
39002
|
const validateTimelineLanesPageWidget = buildDeclarativeWidgetValidator('praxis-timeline-lanes', ['config', 'items', 'lanes', 'resourcePath'], 'timelineLanes');
|
|
39003
|
+
const validateKpiStripPageWidget = buildDeclarativeWidgetValidator('praxis-kpi-strip', ['config'], 'kpiStrip');
|
|
39004
|
+
const validateKpiCardPageWidget = buildDeclarativeWidgetValidator('praxis-kpi-card', ['config'], 'kpiCard');
|
|
38178
39005
|
const DEFAULT_GOVERNED_PAGE_CHILD_VALIDATORS = Object.freeze({
|
|
38179
39006
|
'praxis-dynamic-form': validateDynamicFormPageWidget,
|
|
38180
39007
|
'praxis-table': validateTablePageWidget,
|
|
38181
39008
|
'praxis-chart': validateChartPageWidget,
|
|
39009
|
+
'praxis-kpi-strip': validateKpiStripPageWidget,
|
|
39010
|
+
'praxis-kpi-card': validateKpiCardPageWidget,
|
|
38182
39011
|
'praxis-list': validateListPageWidget,
|
|
38183
39012
|
'praxis-rich-content': validateRichContentPageWidget,
|
|
38184
39013
|
'praxis-tabs': validateTabsPageWidget,
|
|
@@ -38212,21 +39041,21 @@ const DEFAULT_GOVERNED_PAGE_CHILD_VALIDATORS = Object.freeze({
|
|
|
38212
39041
|
const DEFAULT_GOVERNED_PAGE_PREVIEW_ADAPTERS = Object.freeze({
|
|
38213
39042
|
'praxis-dynamic-form': DYNAMIC_FORM_GOVERNED_PAGE_PREVIEW_ADAPTER,
|
|
38214
39043
|
'praxis-table': TABLE_GOVERNED_PAGE_PREVIEW_ADAPTER,
|
|
38215
|
-
'praxis-chart': buildDeclarativePreviewAdapter('praxis-chart', validateChartPageWidget
|
|
38216
|
-
'praxis-list': buildDeclarativePreviewAdapter('praxis-list', validateListPageWidget
|
|
39044
|
+
'praxis-chart': buildDeclarativePreviewAdapter('praxis-chart', validateChartPageWidget),
|
|
39045
|
+
'praxis-list': buildDeclarativePreviewAdapter('praxis-list', validateListPageWidget),
|
|
38217
39046
|
'praxis-rich-content': buildDeclarativePreviewAdapter('praxis-rich-content', validateRichContentPageWidget),
|
|
38218
|
-
'praxis-tabs': buildDeclarativePreviewAdapter('praxis-tabs', validateTabsPageWidget
|
|
38219
|
-
'praxis-stepper': buildDeclarativePreviewAdapter('praxis-stepper', validateStepperPageWidget
|
|
38220
|
-
'praxis-expansion': buildDeclarativePreviewAdapter('praxis-expansion', validateExpansionPageWidget
|
|
38221
|
-
'praxis-organogram': buildDeclarativePreviewAdapter('praxis-organogram', validateOrganogramPageWidget
|
|
38222
|
-
'praxis-relationship-graph': buildDeclarativePreviewAdapter('praxis-relationship-graph', validateRelationshipGraphPageWidget
|
|
38223
|
-
'praxis-progression-ladder': buildDeclarativePreviewAdapter('praxis-progression-ladder', validateProgressionLadderPageWidget
|
|
38224
|
-
'praxis-crud': buildDeclarativePreviewAdapter('praxis-crud', validateCrudPageWidget
|
|
38225
|
-
'praxis-filter': buildDeclarativePreviewAdapter('praxis-filter', validateFilterPageWidget
|
|
38226
|
-
'praxis-analytics-presentation': buildDeclarativePreviewAdapter('praxis-analytics-presentation', validateAnalyticsPresentationPageWidget
|
|
38227
|
-
'praxis-files-upload': buildDeclarativePreviewAdapter('praxis-files-upload', validateFilesUploadPageWidget
|
|
38228
|
-
'praxis-related-resource-outlet': buildDeclarativePreviewAdapter('praxis-related-resource-outlet', validateRelatedResourceOutletPageWidget
|
|
38229
|
-
'pdx-cron-builder': buildDeclarativePreviewAdapter('pdx-cron-builder', validateCronBuilderPageWidget
|
|
39047
|
+
'praxis-tabs': buildDeclarativePreviewAdapter('praxis-tabs', validateTabsPageWidget),
|
|
39048
|
+
'praxis-stepper': buildDeclarativePreviewAdapter('praxis-stepper', validateStepperPageWidget),
|
|
39049
|
+
'praxis-expansion': buildDeclarativePreviewAdapter('praxis-expansion', validateExpansionPageWidget),
|
|
39050
|
+
'praxis-organogram': buildDeclarativePreviewAdapter('praxis-organogram', validateOrganogramPageWidget),
|
|
39051
|
+
'praxis-relationship-graph': buildDeclarativePreviewAdapter('praxis-relationship-graph', validateRelationshipGraphPageWidget),
|
|
39052
|
+
'praxis-progression-ladder': buildDeclarativePreviewAdapter('praxis-progression-ladder', validateProgressionLadderPageWidget),
|
|
39053
|
+
'praxis-crud': buildDeclarativePreviewAdapter('praxis-crud', validateCrudPageWidget),
|
|
39054
|
+
'praxis-filter': buildDeclarativePreviewAdapter('praxis-filter', validateFilterPageWidget),
|
|
39055
|
+
'praxis-analytics-presentation': buildDeclarativePreviewAdapter('praxis-analytics-presentation', validateAnalyticsPresentationPageWidget),
|
|
39056
|
+
'praxis-files-upload': buildDeclarativePreviewAdapter('praxis-files-upload', validateFilesUploadPageWidget),
|
|
39057
|
+
'praxis-related-resource-outlet': buildDeclarativePreviewAdapter('praxis-related-resource-outlet', validateRelatedResourceOutletPageWidget),
|
|
39058
|
+
'pdx-cron-builder': buildDeclarativePreviewAdapter('pdx-cron-builder', validateCronBuilderPageWidget),
|
|
38230
39059
|
'praxis-manual-form': buildDeclarativePreviewAdapter('praxis-manual-form', validateManualFormPageWidget),
|
|
38231
39060
|
'praxis-editorial-form-runtime': buildDeclarativePreviewAdapter('praxis-editorial-form-runtime', validateEditorialFormRuntimePageWidget),
|
|
38232
39061
|
'praxis-visual-builder': buildDeclarativePreviewAdapter('praxis-visual-builder', validateVisualBuilderPageWidget),
|
|
@@ -38237,18 +39066,20 @@ const DEFAULT_GOVERNED_PAGE_PREVIEW_ADAPTERS = Object.freeze({
|
|
|
38237
39066
|
'widget:legal-notice': buildDeclarativePreviewAdapter('widget:legal-notice', validateLegalNoticePageWidget),
|
|
38238
39067
|
'widget:rich-text-block': buildDeclarativePreviewAdapter('widget:rich-text-block', validateRichTextBlockPageWidget),
|
|
38239
39068
|
'form:user-context-summary': buildDeclarativePreviewAdapter('form:user-context-summary', validateUserContextSummaryPageWidget),
|
|
38240
|
-
'praxis-calculation-waterfall': buildDeclarativePreviewAdapter('praxis-calculation-waterfall', validateCalculationWaterfallPageWidget
|
|
38241
|
-
'praxis-quota-gauge': buildDeclarativePreviewAdapter('praxis-quota-gauge', validateQuotaGaugePageWidget
|
|
38242
|
-
'praxis-lifecycle-timeline': buildDeclarativePreviewAdapter('praxis-lifecycle-timeline', validateLifecycleTimelinePageWidget
|
|
38243
|
-
'praxis-roster-matrix': buildDeclarativePreviewAdapter('praxis-roster-matrix', validateRosterMatrixPageWidget
|
|
38244
|
-
'praxis-timeline-lanes': buildDeclarativePreviewAdapter('praxis-timeline-lanes', validateTimelineLanesPageWidget
|
|
39069
|
+
'praxis-calculation-waterfall': buildDeclarativePreviewAdapter('praxis-calculation-waterfall', validateCalculationWaterfallPageWidget),
|
|
39070
|
+
'praxis-quota-gauge': buildDeclarativePreviewAdapter('praxis-quota-gauge', validateQuotaGaugePageWidget),
|
|
39071
|
+
'praxis-lifecycle-timeline': buildDeclarativePreviewAdapter('praxis-lifecycle-timeline', validateLifecycleTimelinePageWidget),
|
|
39072
|
+
'praxis-roster-matrix': buildDeclarativePreviewAdapter('praxis-roster-matrix', validateRosterMatrixPageWidget),
|
|
39073
|
+
'praxis-timeline-lanes': buildDeclarativePreviewAdapter('praxis-timeline-lanes', validateTimelineLanesPageWidget),
|
|
39074
|
+
'praxis-kpi-strip': buildDeclarativePreviewAdapter('praxis-kpi-strip', validateKpiStripPageWidget),
|
|
39075
|
+
'praxis-kpi-card': buildDeclarativePreviewAdapter('praxis-kpi-card', validateKpiCardPageWidget),
|
|
38245
39076
|
});
|
|
38246
39077
|
const CANONICAL_UUID_PATTERN = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/;
|
|
38247
|
-
function isPlainRecord$
|
|
39078
|
+
function isPlainRecord$3(value) {
|
|
38248
39079
|
return value !== null && typeof value === 'object' && !Array.isArray(value);
|
|
38249
39080
|
}
|
|
38250
39081
|
function parseLegacySourceReference(value) {
|
|
38251
|
-
if (!isPlainRecord$
|
|
39082
|
+
if (!isPlainRecord$3(value) || typeof value['kind'] !== 'string') {
|
|
38252
39083
|
return null;
|
|
38253
39084
|
}
|
|
38254
39085
|
if (value['kind'] === 'registered-native') {
|
|
@@ -38282,23 +39113,23 @@ function parseLegacySourceReference(value) {
|
|
|
38282
39113
|
return null;
|
|
38283
39114
|
}
|
|
38284
39115
|
function normalizeLegacyCandidateDocument(rawPayload) {
|
|
38285
|
-
if (!isPlainRecord$
|
|
39116
|
+
if (!isPlainRecord$3(rawPayload)) {
|
|
38286
39117
|
return rawPayload;
|
|
38287
39118
|
}
|
|
38288
|
-
if (isPlainRecord$
|
|
39119
|
+
if (isPlainRecord$3(rawPayload['document'])) {
|
|
38289
39120
|
return normalizeLegacyCandidateDocument(rawPayload['document']);
|
|
38290
39121
|
}
|
|
38291
39122
|
if (rawPayload['schemaVersion'] !== undefined || rawPayload['kind'] !== undefined) {
|
|
38292
39123
|
return rawPayload;
|
|
38293
39124
|
}
|
|
38294
|
-
if (isPlainRecord$
|
|
39125
|
+
if (isPlainRecord$3(rawPayload['config'])) {
|
|
38295
39126
|
return {
|
|
38296
39127
|
kind: 'praxis.dynamic-page.editor',
|
|
38297
39128
|
version: 1,
|
|
38298
39129
|
config: rawPayload['config'],
|
|
38299
39130
|
};
|
|
38300
39131
|
}
|
|
38301
|
-
const presentation = isPlainRecord$
|
|
39132
|
+
const presentation = isPlainRecord$3(rawPayload['presentation'])
|
|
38302
39133
|
? rawPayload['presentation']
|
|
38303
39134
|
: {
|
|
38304
39135
|
title: typeof rawPayload['title'] === 'string' ? rawPayload['title'] : '',
|
|
@@ -38310,7 +39141,7 @@ function normalizeLegacyCandidateDocument(rawPayload) {
|
|
|
38310
39141
|
const navigation = Array.isArray(rawPayload['navigation'])
|
|
38311
39142
|
? rawPayload['navigation']
|
|
38312
39143
|
: [];
|
|
38313
|
-
const definition = isPlainRecord$
|
|
39144
|
+
const definition = isPlainRecord$3(rawPayload['definition'])
|
|
38314
39145
|
? rawPayload['definition']
|
|
38315
39146
|
: Object.fromEntries(Object.entries(rawPayload).filter(([key]) => key !== 'presentation' &&
|
|
38316
39147
|
key !== 'navigation' &&
|
|
@@ -38356,7 +39187,7 @@ function inspectLegacyPublishedPagePayload(request, childValidators = DEFAULT_GO
|
|
|
38356
39187
|
path: '/pageId',
|
|
38357
39188
|
});
|
|
38358
39189
|
}
|
|
38359
|
-
const rawRecord = isPlainRecord$
|
|
39190
|
+
const rawRecord = isPlainRecord$3(request.rawPayload) ? request.rawPayload : null;
|
|
38360
39191
|
const resolvedSource = parseLegacySourceReference(request.source) ??
|
|
38361
39192
|
parseLegacySourceReference(rawRecord?.['source']);
|
|
38362
39193
|
if (!resolvedSource) {
|
|
@@ -38377,7 +39208,7 @@ function inspectLegacyPublishedPagePayload(request, childValidators = DEFAULT_GO
|
|
|
38377
39208
|
: [];
|
|
38378
39209
|
const childSourceMap = new Map();
|
|
38379
39210
|
rawChildSources.forEach((entry, index) => {
|
|
38380
|
-
if (!isPlainRecord$
|
|
39211
|
+
if (!isPlainRecord$3(entry)) {
|
|
38381
39212
|
diagnostics.push({
|
|
38382
39213
|
code: 'LEGACY_WIDGET_SOURCE_INVALID',
|
|
38383
39214
|
path: `/childSources/${index}`,
|
|
@@ -39463,6 +40294,910 @@ class GovernedPageWorkflowController {
|
|
|
39463
40294
|
}
|
|
39464
40295
|
}
|
|
39465
40296
|
|
|
40297
|
+
const UUID_RE = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/;
|
|
40298
|
+
const LENGTH_RE = /^(0|[0-9]+(px|rem))$/;
|
|
40299
|
+
const ICON_RE = /^[a-z][a-z0-9_]{0,79}$/;
|
|
40300
|
+
const TEXT_CONTROL_RE = /[\u0000-\u001f\u007f\u2028\u2029]/;
|
|
40301
|
+
const VALID_BREAKPOINTS = new Set(['sm', 'md', 'lg', 'xl']);
|
|
40302
|
+
const VALID_ORIENTATIONS = new Set(['vertical', 'columns']);
|
|
40303
|
+
const VALID_AUTO_ROWS = new Set(['fixed', 'content']);
|
|
40304
|
+
const VALID_COLLISION_POLICIES = new Set(['block', 'swap', 'push-down']);
|
|
40305
|
+
const VALID_SHELL_KINDS = new Set(['dashboard-card', 'none']);
|
|
40306
|
+
const ADMITTED_WIDGET_ID_SET = new Set(GOVERNED_PAGE_ADMITTED_WIDGET_IDS);
|
|
40307
|
+
const ALLOWED_INPUTS_BY_WIDGET_ID = {
|
|
40308
|
+
'praxis-dynamic-form': [
|
|
40309
|
+
'config',
|
|
40310
|
+
'mode',
|
|
40311
|
+
'emptyState',
|
|
40312
|
+
'presentationModeGlobal',
|
|
40313
|
+
'backConfig',
|
|
40314
|
+
'presentation',
|
|
40315
|
+
'notifyIfOutdated',
|
|
40316
|
+
'snoozeMs',
|
|
40317
|
+
'autoOpenSettingsOnOutdated',
|
|
40318
|
+
],
|
|
40319
|
+
'praxis-table': ['config', 'resourcePath', 'horizontalScroll'],
|
|
40320
|
+
'praxis-chart': [
|
|
40321
|
+
'config',
|
|
40322
|
+
'chartDocument',
|
|
40323
|
+
'resourceKey',
|
|
40324
|
+
'resourcePath',
|
|
40325
|
+
'projectionKey',
|
|
40326
|
+
'queryContext',
|
|
40327
|
+
],
|
|
40328
|
+
'praxis-kpi-strip': ['config', 'queryContext', 'density'],
|
|
40329
|
+
'praxis-kpi-card': ['config', 'queryContext', 'density'],
|
|
40330
|
+
'praxis-list': ['config', 'resourcePath', 'queryContext'],
|
|
40331
|
+
'praxis-rich-content': ['config', 'document', 'presetId', 'context'],
|
|
40332
|
+
'praxis-tabs': ['config', 'tabs', 'selectedIndex', 'mode'],
|
|
40333
|
+
'praxis-stepper': ['config', 'steps', 'linear', 'orientation'],
|
|
40334
|
+
'praxis-expansion': ['config', 'panels', 'multi'],
|
|
40335
|
+
'praxis-organogram': [
|
|
40336
|
+
'config',
|
|
40337
|
+
'nodes',
|
|
40338
|
+
'resourcePath',
|
|
40339
|
+
'queryContext',
|
|
40340
|
+
'topology',
|
|
40341
|
+
'hierarchyType',
|
|
40342
|
+
'includeExtinct',
|
|
40343
|
+
'selectedSubtreeRoot',
|
|
40344
|
+
'rootScopeLabel',
|
|
40345
|
+
'synthesizePolymorphicNodes',
|
|
40346
|
+
],
|
|
40347
|
+
'praxis-relationship-graph': [
|
|
40348
|
+
'config',
|
|
40349
|
+
'dataset',
|
|
40350
|
+
'nodes',
|
|
40351
|
+
'edges',
|
|
40352
|
+
'links',
|
|
40353
|
+
'resourcePath',
|
|
40354
|
+
'queryContext',
|
|
40355
|
+
'algorithm',
|
|
40356
|
+
'orientation',
|
|
40357
|
+
'anchorNodeId',
|
|
40358
|
+
'maxDepth',
|
|
40359
|
+
'nodeShape',
|
|
40360
|
+
'expandDepth',
|
|
40361
|
+
'pathHighlight',
|
|
40362
|
+
],
|
|
40363
|
+
'praxis-progression-ladder': [
|
|
40364
|
+
'document',
|
|
40365
|
+
'variant',
|
|
40366
|
+
'showVariantSwitcher',
|
|
40367
|
+
'showFinancialDetails',
|
|
40368
|
+
'showIntersticeRunway',
|
|
40369
|
+
'showBridgeBanner',
|
|
40370
|
+
'selectedStepId',
|
|
40371
|
+
],
|
|
40372
|
+
'praxis-timeline-lanes': [
|
|
40373
|
+
'config',
|
|
40374
|
+
'items',
|
|
40375
|
+
'lanes',
|
|
40376
|
+
'milestones',
|
|
40377
|
+
'referenceBands',
|
|
40378
|
+
'resourcePath',
|
|
40379
|
+
'queryContext',
|
|
40380
|
+
'scale',
|
|
40381
|
+
'viewMode',
|
|
40382
|
+
'referenceDate',
|
|
40383
|
+
'selectedItemId',
|
|
40384
|
+
],
|
|
40385
|
+
'praxis-analytics-presentation': [
|
|
40386
|
+
'analytics',
|
|
40387
|
+
'projectionId',
|
|
40388
|
+
'resourcePath',
|
|
40389
|
+
'filterOperation',
|
|
40390
|
+
'schemaType',
|
|
40391
|
+
'coerceCrossFilters',
|
|
40392
|
+
'availableFamilies',
|
|
40393
|
+
'preferredFamily',
|
|
40394
|
+
'queryContext',
|
|
40395
|
+
'title',
|
|
40396
|
+
'subtitle',
|
|
40397
|
+
'height',
|
|
40398
|
+
'motion',
|
|
40399
|
+
'surfaceMode',
|
|
40400
|
+
'controlsPlacement',
|
|
40401
|
+
'controlsDisplay',
|
|
40402
|
+
'chartDocumentOverrides',
|
|
40403
|
+
],
|
|
40404
|
+
};
|
|
40405
|
+
const VALID_ANALYTICS_FAMILIES = new Set(['chart', 'analytic-table', 'kpi', 'summary-list']);
|
|
40406
|
+
const VALID_FILTER_OPERATIONS = new Set(['get', 'post', 'put', 'patch', 'delete']);
|
|
40407
|
+
const VALID_SCHEMA_TYPES = new Set(['request', 'response']);
|
|
40408
|
+
const VALID_SURFACE_MODES = new Set(['auto', 'standalone', 'embedded']);
|
|
40409
|
+
const VALID_CONTROLS_PLACEMENT = new Set(['auto', 'shell-header', 'inline']);
|
|
40410
|
+
const VALID_CONTROLS_DISPLAY = new Set(['auto', 'icon-label', 'icon-only', 'menu']);
|
|
40411
|
+
const VALID_HORIZONTAL_SCROLL = new Set(['auto', 'wrap', 'none']);
|
|
40412
|
+
const VALID_ORGANOGRAM_TOPOLOGIES = new Set([
|
|
40413
|
+
'orthogonal-compact',
|
|
40414
|
+
'pillars',
|
|
40415
|
+
'curved-hub',
|
|
40416
|
+
'radial-360',
|
|
40417
|
+
]);
|
|
40418
|
+
const VALID_LADDER_VARIANTS = new Set(['staircase', 'pillars', 'matrix-2d', 'ribbon-compact']);
|
|
40419
|
+
const VALID_GRAPH_ALGORITHMS = new Set(['layered-dag', 'ego-radial', 'force-spring']);
|
|
40420
|
+
const VALID_GRAPH_NODE_SHAPES = new Set(['circle', 'card', 'pill', 'diamond']);
|
|
40421
|
+
const VALID_TIMELINE_SCALES = new Set(['decade', 'year', 'quarter', 'month', 'week']);
|
|
40422
|
+
const VALID_TIMELINE_VIEW_MODES = new Set(['timeline', 'table', 'split']);
|
|
40423
|
+
const VALID_FORM_MODES = new Set(['create', 'edit', 'view', 'presentation', 'dossier']);
|
|
40424
|
+
const VALID_NOTIFY_MODES = new Set(['inline', 'snackbar', 'both', 'none']);
|
|
40425
|
+
function isPlainRecord$2(value) {
|
|
40426
|
+
return value !== null && typeof value === 'object' && !Array.isArray(value);
|
|
40427
|
+
}
|
|
40428
|
+
function fnv1a32(input, seed) {
|
|
40429
|
+
let hash = seed >>> 0;
|
|
40430
|
+
for (let i = 0; i < input.length; i += 1) {
|
|
40431
|
+
hash ^= input.charCodeAt(i);
|
|
40432
|
+
hash = Math.imul(hash, 0x01000193) >>> 0;
|
|
40433
|
+
}
|
|
40434
|
+
return hash >>> 0;
|
|
40435
|
+
}
|
|
40436
|
+
/**
|
|
40437
|
+
* Deterministically maps an arbitrary widget or link identifier to a canonical lowercase UUID,
|
|
40438
|
+
* preserving valid unique UUIDs verbatim and avoiding collisions via the provided `used` set.
|
|
40439
|
+
*/
|
|
40440
|
+
function deterministicClosedPageUuid(seed, used = new Set()) {
|
|
40441
|
+
const normalized = seed.trim().toLowerCase();
|
|
40442
|
+
if (normalized.length === 36 && UUID_RE.test(normalized) && !used.has(normalized)) {
|
|
40443
|
+
used.add(normalized);
|
|
40444
|
+
return normalized;
|
|
40445
|
+
}
|
|
40446
|
+
let attempt = 0;
|
|
40447
|
+
while (true) {
|
|
40448
|
+
const salted = attempt === 0 ? seed : `${seed}::${attempt}`;
|
|
40449
|
+
const p1 = fnv1a32(`a:${salted}`, 0x811c9dc5).toString(16).padStart(8, '0');
|
|
40450
|
+
const h2 = fnv1a32(`b:${salted}`, 0x9e3779b9);
|
|
40451
|
+
const p2 = ((h2 >>> 16) & 0xffff).toString(16).padStart(4, '0');
|
|
40452
|
+
const p3 = (0x4000 | (h2 & 0x0fff)).toString(16).padStart(4, '0');
|
|
40453
|
+
const h3 = fnv1a32(`c:${salted}`, 0x85ebca6b);
|
|
40454
|
+
const p4 = (0x8000 | (h3 & 0x3fff)).toString(16).padStart(4, '0');
|
|
40455
|
+
const p5a = ((h3 >>> 16) & 0xffff).toString(16).padStart(4, '0');
|
|
40456
|
+
const p5b = fnv1a32(`d:${salted}`, 0xc2b2ae35).toString(16).padStart(8, '0');
|
|
40457
|
+
const candidate = `${p1}-${p2}-${p3}-${p4}-${p5a}${p5b}`;
|
|
40458
|
+
if (!used.has(candidate)) {
|
|
40459
|
+
used.add(candidate);
|
|
40460
|
+
return candidate;
|
|
40461
|
+
}
|
|
40462
|
+
attempt += 1;
|
|
40463
|
+
}
|
|
40464
|
+
}
|
|
40465
|
+
function stripUndefinedAndInvalidJson(value, stripNulls) {
|
|
40466
|
+
if (value === undefined) {
|
|
40467
|
+
return undefined;
|
|
40468
|
+
}
|
|
40469
|
+
if (value === null) {
|
|
40470
|
+
return stripNulls ? undefined : null;
|
|
40471
|
+
}
|
|
40472
|
+
if (typeof value === 'number') {
|
|
40473
|
+
return Number.isFinite(value) ? value : undefined;
|
|
40474
|
+
}
|
|
40475
|
+
if (typeof value === 'string' || typeof value === 'boolean') {
|
|
40476
|
+
return value;
|
|
40477
|
+
}
|
|
40478
|
+
if (Array.isArray(value)) {
|
|
40479
|
+
const items = [];
|
|
40480
|
+
for (const entry of value) {
|
|
40481
|
+
const cleaned = stripUndefinedAndInvalidJson(entry, stripNulls);
|
|
40482
|
+
if (cleaned !== undefined) {
|
|
40483
|
+
items.push(cleaned);
|
|
40484
|
+
}
|
|
40485
|
+
}
|
|
40486
|
+
return items;
|
|
40487
|
+
}
|
|
40488
|
+
if (isPlainRecord$2(value)) {
|
|
40489
|
+
const out = {};
|
|
40490
|
+
for (const [k, v] of Object.entries(value)) {
|
|
40491
|
+
const cleaned = stripUndefinedAndInvalidJson(v, stripNulls);
|
|
40492
|
+
if (cleaned !== undefined) {
|
|
40493
|
+
out[k] = cleaned;
|
|
40494
|
+
}
|
|
40495
|
+
}
|
|
40496
|
+
return out;
|
|
40497
|
+
}
|
|
40498
|
+
return undefined;
|
|
40499
|
+
}
|
|
40500
|
+
function normalizeClosedTableConfig(rawConfig, lockForGovernance) {
|
|
40501
|
+
if (!isPlainRecord$2(rawConfig)) {
|
|
40502
|
+
return null;
|
|
40503
|
+
}
|
|
40504
|
+
const cleaned = stripUndefinedAndInvalidJson(rawConfig, true);
|
|
40505
|
+
if (!isPlainRecord$2(cleaned)) {
|
|
40506
|
+
return null;
|
|
40507
|
+
}
|
|
40508
|
+
const existingProjection = isPlainRecord$2(cleaned['columnProjection'])
|
|
40509
|
+
? cleaned['columnProjection']
|
|
40510
|
+
: {};
|
|
40511
|
+
const nextProjection = {
|
|
40512
|
+
...existingProjection,
|
|
40513
|
+
source: 'schema',
|
|
40514
|
+
};
|
|
40515
|
+
delete nextProjection['columns'];
|
|
40516
|
+
const existingBehavior = isPlainRecord$2(cleaned['behavior']) ? cleaned['behavior'] : undefined;
|
|
40517
|
+
return {
|
|
40518
|
+
...cleaned,
|
|
40519
|
+
columns: [],
|
|
40520
|
+
columnProjection: nextProjection,
|
|
40521
|
+
...(lockForGovernance
|
|
40522
|
+
? {
|
|
40523
|
+
behavior: {
|
|
40524
|
+
...(existingBehavior ?? {}),
|
|
40525
|
+
configPersistenceStrategy: 'volatile',
|
|
40526
|
+
},
|
|
40527
|
+
}
|
|
40528
|
+
: {}),
|
|
40529
|
+
};
|
|
40530
|
+
}
|
|
40531
|
+
function hasUsableClosedPayload(widgetId, inputs) {
|
|
40532
|
+
switch (widgetId) {
|
|
40533
|
+
case 'praxis-dynamic-form':
|
|
40534
|
+
case 'praxis-kpi-strip':
|
|
40535
|
+
case 'praxis-kpi-card':
|
|
40536
|
+
case 'praxis-list':
|
|
40537
|
+
case 'praxis-table':
|
|
40538
|
+
return isPlainRecord$2(inputs['config']);
|
|
40539
|
+
case 'praxis-chart':
|
|
40540
|
+
return isPlainRecord$2(inputs['config']) || isPlainRecord$2(inputs['chartDocument']);
|
|
40541
|
+
case 'praxis-analytics-presentation':
|
|
40542
|
+
return (isPlainRecord$2(inputs['analytics']) ||
|
|
40543
|
+
(typeof inputs['resourcePath'] === 'string' && inputs['resourcePath'].trim().length > 0));
|
|
40544
|
+
case 'praxis-progression-ladder':
|
|
40545
|
+
return isPlainRecord$2(inputs['document']);
|
|
40546
|
+
case 'praxis-rich-content':
|
|
40547
|
+
return isPlainRecord$2(inputs['config']) || isPlainRecord$2(inputs['document']);
|
|
40548
|
+
case 'praxis-tabs':
|
|
40549
|
+
return isPlainRecord$2(inputs['config']) || Array.isArray(inputs['tabs']);
|
|
40550
|
+
case 'praxis-stepper':
|
|
40551
|
+
return isPlainRecord$2(inputs['config']) || Array.isArray(inputs['steps']);
|
|
40552
|
+
case 'praxis-expansion':
|
|
40553
|
+
return isPlainRecord$2(inputs['config']) || Array.isArray(inputs['panels']);
|
|
40554
|
+
case 'praxis-organogram':
|
|
40555
|
+
return (isPlainRecord$2(inputs['config']) ||
|
|
40556
|
+
Array.isArray(inputs['nodes']) ||
|
|
40557
|
+
(typeof inputs['resourcePath'] === 'string' && inputs['resourcePath'].trim().length > 0));
|
|
40558
|
+
case 'praxis-relationship-graph':
|
|
40559
|
+
return (isPlainRecord$2(inputs['config']) ||
|
|
40560
|
+
isPlainRecord$2(inputs['dataset']) ||
|
|
40561
|
+
Array.isArray(inputs['nodes']) ||
|
|
40562
|
+
(typeof inputs['resourcePath'] === 'string' && inputs['resourcePath'].trim().length > 0));
|
|
40563
|
+
case 'praxis-timeline-lanes':
|
|
40564
|
+
return (isPlainRecord$2(inputs['config']) ||
|
|
40565
|
+
Array.isArray(inputs['items']) ||
|
|
40566
|
+
Array.isArray(inputs['lanes']) ||
|
|
40567
|
+
(typeof inputs['resourcePath'] === 'string' && inputs['resourcePath'].trim().length > 0));
|
|
40568
|
+
default:
|
|
40569
|
+
return false;
|
|
40570
|
+
}
|
|
40571
|
+
}
|
|
40572
|
+
function sanitizeWidgetInputsForClosedProfile(widgetId, rawInputs, lockForGovernance) {
|
|
40573
|
+
const allowedKeys = ALLOWED_INPUTS_BY_WIDGET_ID[widgetId];
|
|
40574
|
+
if (!allowedKeys) {
|
|
40575
|
+
return null;
|
|
40576
|
+
}
|
|
40577
|
+
const source = isPlainRecord$2(rawInputs) ? rawInputs : {};
|
|
40578
|
+
const nextInputs = {};
|
|
40579
|
+
for (const key of allowedKeys) {
|
|
40580
|
+
if (!Object.prototype.hasOwnProperty.call(source, key)) {
|
|
40581
|
+
continue;
|
|
40582
|
+
}
|
|
40583
|
+
const rawValue = source[key];
|
|
40584
|
+
if (rawValue === undefined) {
|
|
40585
|
+
continue;
|
|
40586
|
+
}
|
|
40587
|
+
if (key === 'config' && widgetId === 'praxis-table') {
|
|
40588
|
+
const normalizedTableConfig = normalizeClosedTableConfig(rawValue, lockForGovernance);
|
|
40589
|
+
if (normalizedTableConfig) {
|
|
40590
|
+
nextInputs['config'] = normalizedTableConfig;
|
|
40591
|
+
}
|
|
40592
|
+
continue;
|
|
40593
|
+
}
|
|
40594
|
+
const cleaned = stripUndefinedAndInvalidJson(rawValue, false);
|
|
40595
|
+
if (cleaned === undefined) {
|
|
40596
|
+
continue;
|
|
40597
|
+
}
|
|
40598
|
+
switch (key) {
|
|
40599
|
+
case 'config':
|
|
40600
|
+
case 'chartDocument':
|
|
40601
|
+
case 'document':
|
|
40602
|
+
case 'dataset':
|
|
40603
|
+
case 'backConfig':
|
|
40604
|
+
case 'motion':
|
|
40605
|
+
if (isPlainRecord$2(cleaned)) {
|
|
40606
|
+
nextInputs[key] = cleaned;
|
|
40607
|
+
}
|
|
40608
|
+
break;
|
|
40609
|
+
case 'analytics':
|
|
40610
|
+
case 'chartDocumentOverrides':
|
|
40611
|
+
case 'queryContext':
|
|
40612
|
+
case 'context':
|
|
40613
|
+
case 'pathHighlight':
|
|
40614
|
+
case 'emptyState':
|
|
40615
|
+
case 'presentation':
|
|
40616
|
+
if (cleaned === null) {
|
|
40617
|
+
if (widgetId !== 'praxis-analytics-presentation') {
|
|
40618
|
+
nextInputs[key] = null;
|
|
40619
|
+
}
|
|
40620
|
+
}
|
|
40621
|
+
else if (isPlainRecord$2(cleaned)) {
|
|
40622
|
+
nextInputs[key] = cleaned;
|
|
40623
|
+
}
|
|
40624
|
+
break;
|
|
40625
|
+
case 'tabs':
|
|
40626
|
+
case 'steps':
|
|
40627
|
+
case 'panels':
|
|
40628
|
+
case 'nodes':
|
|
40629
|
+
case 'items':
|
|
40630
|
+
case 'lanes':
|
|
40631
|
+
case 'milestones':
|
|
40632
|
+
case 'referenceBands':
|
|
40633
|
+
case 'edges':
|
|
40634
|
+
case 'links':
|
|
40635
|
+
if (Array.isArray(cleaned)) {
|
|
40636
|
+
nextInputs[key] = cleaned;
|
|
40637
|
+
}
|
|
40638
|
+
break;
|
|
40639
|
+
case 'resourcePath':
|
|
40640
|
+
if (cleaned === null || (typeof cleaned === 'string' && [...cleaned].length <= 1024)) {
|
|
40641
|
+
nextInputs[key] = cleaned;
|
|
40642
|
+
}
|
|
40643
|
+
break;
|
|
40644
|
+
case 'resourceKey':
|
|
40645
|
+
case 'projectionKey':
|
|
40646
|
+
case 'projectionId':
|
|
40647
|
+
case 'presetId':
|
|
40648
|
+
case 'selectedSubtreeRoot':
|
|
40649
|
+
case 'selectedStepId':
|
|
40650
|
+
case 'referenceDate':
|
|
40651
|
+
case 'selectedItemId':
|
|
40652
|
+
case 'anchorNodeId':
|
|
40653
|
+
if (cleaned === null) {
|
|
40654
|
+
nextInputs[key] = null;
|
|
40655
|
+
}
|
|
40656
|
+
else if (typeof cleaned === 'string' && cleaned.trim().length > 0 && [...cleaned.trim()].length <= 255) {
|
|
40657
|
+
nextInputs[key] = cleaned.trim();
|
|
40658
|
+
}
|
|
40659
|
+
break;
|
|
40660
|
+
case 'rootScopeLabel':
|
|
40661
|
+
if (typeof cleaned === 'string' && cleaned.trim().length > 0 && [...cleaned.trim()].length <= 255) {
|
|
40662
|
+
nextInputs[key] = cleaned.trim();
|
|
40663
|
+
}
|
|
40664
|
+
break;
|
|
40665
|
+
case 'title':
|
|
40666
|
+
case 'subtitle':
|
|
40667
|
+
if (cleaned === null) {
|
|
40668
|
+
if (widgetId !== 'praxis-analytics-presentation') {
|
|
40669
|
+
nextInputs[key] = null;
|
|
40670
|
+
}
|
|
40671
|
+
}
|
|
40672
|
+
else if (isPlainRecord$2(cleaned)) {
|
|
40673
|
+
nextInputs[key] = cleaned;
|
|
40674
|
+
}
|
|
40675
|
+
else if (typeof cleaned === 'string' && [...cleaned].length <= 255) {
|
|
40676
|
+
nextInputs[key] = cleaned;
|
|
40677
|
+
}
|
|
40678
|
+
break;
|
|
40679
|
+
case 'height':
|
|
40680
|
+
if (cleaned === null) {
|
|
40681
|
+
if (widgetId !== 'praxis-analytics-presentation') {
|
|
40682
|
+
nextInputs[key] = null;
|
|
40683
|
+
}
|
|
40684
|
+
}
|
|
40685
|
+
else if ((typeof cleaned === 'number' && Number.isFinite(cleaned) && cleaned > 0) ||
|
|
40686
|
+
(typeof cleaned === 'string' && cleaned.trim().length > 0 && [...cleaned.trim()].length <= 64)) {
|
|
40687
|
+
nextInputs[key] = typeof cleaned === 'string' ? cleaned.trim() : cleaned;
|
|
40688
|
+
}
|
|
40689
|
+
break;
|
|
40690
|
+
case 'filterOperation':
|
|
40691
|
+
if (typeof cleaned === 'string' && VALID_FILTER_OPERATIONS.has(cleaned)) {
|
|
40692
|
+
nextInputs[key] = cleaned;
|
|
40693
|
+
}
|
|
40694
|
+
break;
|
|
40695
|
+
case 'schemaType':
|
|
40696
|
+
if (typeof cleaned === 'string' && VALID_SCHEMA_TYPES.has(cleaned)) {
|
|
40697
|
+
nextInputs[key] = cleaned;
|
|
40698
|
+
}
|
|
40699
|
+
break;
|
|
40700
|
+
case 'availableFamilies':
|
|
40701
|
+
if (Array.isArray(cleaned)) {
|
|
40702
|
+
const valid = cleaned.filter((entry) => typeof entry === 'string' && VALID_ANALYTICS_FAMILIES.has(entry));
|
|
40703
|
+
if (valid.length > 0) {
|
|
40704
|
+
nextInputs[key] = valid;
|
|
40705
|
+
}
|
|
40706
|
+
}
|
|
40707
|
+
break;
|
|
40708
|
+
case 'preferredFamily':
|
|
40709
|
+
if (cleaned === null) {
|
|
40710
|
+
if (widgetId !== 'praxis-analytics-presentation') {
|
|
40711
|
+
nextInputs[key] = null;
|
|
40712
|
+
}
|
|
40713
|
+
}
|
|
40714
|
+
else if (typeof cleaned === 'string' && VALID_ANALYTICS_FAMILIES.has(cleaned)) {
|
|
40715
|
+
nextInputs[key] = cleaned;
|
|
40716
|
+
}
|
|
40717
|
+
break;
|
|
40718
|
+
case 'surfaceMode':
|
|
40719
|
+
if (typeof cleaned === 'string' && VALID_SURFACE_MODES.has(cleaned)) {
|
|
40720
|
+
nextInputs[key] = cleaned;
|
|
40721
|
+
}
|
|
40722
|
+
break;
|
|
40723
|
+
case 'controlsPlacement':
|
|
40724
|
+
if (typeof cleaned === 'string' && VALID_CONTROLS_PLACEMENT.has(cleaned)) {
|
|
40725
|
+
nextInputs[key] = cleaned;
|
|
40726
|
+
}
|
|
40727
|
+
break;
|
|
40728
|
+
case 'controlsDisplay':
|
|
40729
|
+
if (typeof cleaned === 'string' && VALID_CONTROLS_DISPLAY.has(cleaned)) {
|
|
40730
|
+
nextInputs[key] = cleaned;
|
|
40731
|
+
}
|
|
40732
|
+
break;
|
|
40733
|
+
case 'horizontalScroll':
|
|
40734
|
+
if (typeof cleaned === 'string' && VALID_HORIZONTAL_SCROLL.has(cleaned)) {
|
|
40735
|
+
nextInputs[key] = cleaned;
|
|
40736
|
+
}
|
|
40737
|
+
break;
|
|
40738
|
+
case 'density':
|
|
40739
|
+
if (cleaned === 'comfortable' || cleaned === 'compact') {
|
|
40740
|
+
nextInputs[key] = cleaned;
|
|
40741
|
+
}
|
|
40742
|
+
break;
|
|
40743
|
+
case 'topology':
|
|
40744
|
+
if (typeof cleaned === 'string' && VALID_ORGANOGRAM_TOPOLOGIES.has(cleaned)) {
|
|
40745
|
+
nextInputs[key] = cleaned;
|
|
40746
|
+
}
|
|
40747
|
+
break;
|
|
40748
|
+
case 'hierarchyType':
|
|
40749
|
+
if (typeof cleaned === 'number' && Number.isInteger(cleaned) && cleaned >= 0 && cleaned <= 4) {
|
|
40750
|
+
nextInputs[key] = cleaned;
|
|
40751
|
+
}
|
|
40752
|
+
break;
|
|
40753
|
+
case 'selectedIndex':
|
|
40754
|
+
if (typeof cleaned === 'number' && Number.isInteger(cleaned) && cleaned >= 0) {
|
|
40755
|
+
nextInputs[key] = cleaned;
|
|
40756
|
+
}
|
|
40757
|
+
break;
|
|
40758
|
+
case 'maxDepth':
|
|
40759
|
+
case 'expandDepth':
|
|
40760
|
+
if (cleaned === null ||
|
|
40761
|
+
(typeof cleaned === 'number' && Number.isInteger(cleaned) && cleaned >= 1 && cleaned <= 20)) {
|
|
40762
|
+
nextInputs[key] = cleaned;
|
|
40763
|
+
}
|
|
40764
|
+
break;
|
|
40765
|
+
case 'linear':
|
|
40766
|
+
case 'multi':
|
|
40767
|
+
case 'includeExtinct':
|
|
40768
|
+
case 'synthesizePolymorphicNodes':
|
|
40769
|
+
case 'showVariantSwitcher':
|
|
40770
|
+
case 'coerceCrossFilters':
|
|
40771
|
+
case 'autoOpenSettingsOnOutdated':
|
|
40772
|
+
if (typeof cleaned === 'boolean') {
|
|
40773
|
+
nextInputs[key] = cleaned;
|
|
40774
|
+
}
|
|
40775
|
+
break;
|
|
40776
|
+
case 'showFinancialDetails':
|
|
40777
|
+
case 'showIntersticeRunway':
|
|
40778
|
+
case 'showBridgeBanner':
|
|
40779
|
+
case 'presentationModeGlobal':
|
|
40780
|
+
if (cleaned === null || typeof cleaned === 'boolean') {
|
|
40781
|
+
nextInputs[key] = cleaned;
|
|
40782
|
+
}
|
|
40783
|
+
break;
|
|
40784
|
+
case 'variant':
|
|
40785
|
+
if (cleaned === null || (typeof cleaned === 'string' && VALID_LADDER_VARIANTS.has(cleaned))) {
|
|
40786
|
+
nextInputs[key] = cleaned;
|
|
40787
|
+
}
|
|
40788
|
+
break;
|
|
40789
|
+
case 'algorithm':
|
|
40790
|
+
if (cleaned === null || (typeof cleaned === 'string' && VALID_GRAPH_ALGORITHMS.has(cleaned))) {
|
|
40791
|
+
nextInputs[key] = cleaned;
|
|
40792
|
+
}
|
|
40793
|
+
break;
|
|
40794
|
+
case 'nodeShape':
|
|
40795
|
+
if (cleaned === null || (typeof cleaned === 'string' && VALID_GRAPH_NODE_SHAPES.has(cleaned))) {
|
|
40796
|
+
nextInputs[key] = cleaned;
|
|
40797
|
+
}
|
|
40798
|
+
break;
|
|
40799
|
+
case 'scale':
|
|
40800
|
+
if (cleaned === null || (typeof cleaned === 'string' && VALID_TIMELINE_SCALES.has(cleaned))) {
|
|
40801
|
+
nextInputs[key] = cleaned;
|
|
40802
|
+
}
|
|
40803
|
+
break;
|
|
40804
|
+
case 'viewMode':
|
|
40805
|
+
if (cleaned === null || (typeof cleaned === 'string' && VALID_TIMELINE_VIEW_MODES.has(cleaned))) {
|
|
40806
|
+
nextInputs[key] = cleaned;
|
|
40807
|
+
}
|
|
40808
|
+
break;
|
|
40809
|
+
case 'orientation':
|
|
40810
|
+
if (widgetId === 'praxis-relationship-graph') {
|
|
40811
|
+
if (cleaned === null || cleaned === 'LR' || cleaned === 'TB') {
|
|
40812
|
+
nextInputs[key] = cleaned;
|
|
40813
|
+
}
|
|
40814
|
+
}
|
|
40815
|
+
else if (cleaned === 'horizontal' || cleaned === 'vertical') {
|
|
40816
|
+
nextInputs[key] = cleaned;
|
|
40817
|
+
}
|
|
40818
|
+
break;
|
|
40819
|
+
case 'mode':
|
|
40820
|
+
if (widgetId === 'praxis-tabs') {
|
|
40821
|
+
if (cleaned === 'group' || cleaned === 'nav') {
|
|
40822
|
+
nextInputs[key] = cleaned;
|
|
40823
|
+
}
|
|
40824
|
+
}
|
|
40825
|
+
else if (typeof cleaned === 'string' && VALID_FORM_MODES.has(cleaned)) {
|
|
40826
|
+
nextInputs[key] = cleaned;
|
|
40827
|
+
}
|
|
40828
|
+
break;
|
|
40829
|
+
case 'notifyIfOutdated':
|
|
40830
|
+
if (typeof cleaned === 'string' && VALID_NOTIFY_MODES.has(cleaned)) {
|
|
40831
|
+
nextInputs[key] = cleaned;
|
|
40832
|
+
}
|
|
40833
|
+
break;
|
|
40834
|
+
case 'snoozeMs':
|
|
40835
|
+
if (typeof cleaned === 'number' && Number.isInteger(cleaned) && cleaned >= 0) {
|
|
40836
|
+
nextInputs[key] = cleaned;
|
|
40837
|
+
}
|
|
40838
|
+
break;
|
|
40839
|
+
}
|
|
40840
|
+
}
|
|
40841
|
+
return hasUsableClosedPayload(widgetId, nextInputs) ? nextInputs : null;
|
|
40842
|
+
}
|
|
40843
|
+
function projectClosedLayout(rawLayout) {
|
|
40844
|
+
if (!isPlainRecord$2(rawLayout)) {
|
|
40845
|
+
return undefined;
|
|
40846
|
+
}
|
|
40847
|
+
const next = {};
|
|
40848
|
+
if (typeof rawLayout['orientation'] === 'string' && VALID_ORIENTATIONS.has(rawLayout['orientation'])) {
|
|
40849
|
+
next['orientation'] = rawLayout['orientation'];
|
|
40850
|
+
}
|
|
40851
|
+
if (typeof rawLayout['columns'] === 'number' &&
|
|
40852
|
+
Number.isInteger(rawLayout['columns']) &&
|
|
40853
|
+
rawLayout['columns'] >= 1 &&
|
|
40854
|
+
rawLayout['columns'] <= 24) {
|
|
40855
|
+
next['columns'] = rawLayout['columns'];
|
|
40856
|
+
}
|
|
40857
|
+
if (typeof rawLayout['gap'] === 'string' && LENGTH_RE.test(rawLayout['gap'])) {
|
|
40858
|
+
next['gap'] = rawLayout['gap'];
|
|
40859
|
+
}
|
|
40860
|
+
if (typeof rawLayout['paddingInline'] === 'string' && LENGTH_RE.test(rawLayout['paddingInline'])) {
|
|
40861
|
+
next['paddingInline'] = rawLayout['paddingInline'];
|
|
40862
|
+
}
|
|
40863
|
+
if (isPlainRecord$2(rawLayout['breakpoints'])) {
|
|
40864
|
+
const bp = {};
|
|
40865
|
+
for (const [k, v] of Object.entries(rawLayout['breakpoints'])) {
|
|
40866
|
+
if (VALID_BREAKPOINTS.has(k) && typeof v === 'number' && Number.isInteger(v) && v >= 1 && v <= 24) {
|
|
40867
|
+
bp[k] = v;
|
|
40868
|
+
}
|
|
40869
|
+
}
|
|
40870
|
+
if (Object.keys(bp).length > 0) {
|
|
40871
|
+
next['breakpoints'] = bp;
|
|
40872
|
+
}
|
|
40873
|
+
}
|
|
40874
|
+
return Object.keys(next).length > 0 ? next : undefined;
|
|
40875
|
+
}
|
|
40876
|
+
const SAFE_SHELL_KEYS = new Set(['kind', 'title', 'subtitle', 'icon', 'showHeader']);
|
|
40877
|
+
const UNSUPPORTED_SHELL_OVERRIDE_KEYS = [
|
|
40878
|
+
'preset',
|
|
40879
|
+
'appearance',
|
|
40880
|
+
'actions',
|
|
40881
|
+
'tabs',
|
|
40882
|
+
'windowActions',
|
|
40883
|
+
'avatar',
|
|
40884
|
+
'stickyHeader',
|
|
40885
|
+
'bodyLayout',
|
|
40886
|
+
'collapsed',
|
|
40887
|
+
'expanded',
|
|
40888
|
+
'fullscreen',
|
|
40889
|
+
];
|
|
40890
|
+
function clampClosedInt(value, min, max, fallback) {
|
|
40891
|
+
if (typeof value !== 'number' || !Number.isFinite(value)) {
|
|
40892
|
+
return fallback;
|
|
40893
|
+
}
|
|
40894
|
+
const rounded = Math.trunc(value);
|
|
40895
|
+
return Math.min(max, Math.max(min, rounded));
|
|
40896
|
+
}
|
|
40897
|
+
function extractClosedPlainText(value, maxLen) {
|
|
40898
|
+
let raw;
|
|
40899
|
+
if (typeof value === 'string') {
|
|
40900
|
+
raw = value;
|
|
40901
|
+
}
|
|
40902
|
+
else if (isPlainRecord$2(value)) {
|
|
40903
|
+
if (typeof value['text'] === 'string') {
|
|
40904
|
+
raw = value['text'];
|
|
40905
|
+
}
|
|
40906
|
+
else if (typeof value['default'] === 'string') {
|
|
40907
|
+
raw = value['default'];
|
|
40908
|
+
}
|
|
40909
|
+
else if (typeof value['key'] === 'string' && typeof value['fallback'] === 'string') {
|
|
40910
|
+
raw = value['fallback'];
|
|
40911
|
+
}
|
|
40912
|
+
}
|
|
40913
|
+
if (!raw) {
|
|
40914
|
+
return undefined;
|
|
40915
|
+
}
|
|
40916
|
+
const cleaned = raw.replace(new RegExp(TEXT_CONTROL_RE.source, 'g'), ' ').trim();
|
|
40917
|
+
if (!cleaned) {
|
|
40918
|
+
return undefined;
|
|
40919
|
+
}
|
|
40920
|
+
const clamped = [...cleaned].slice(0, maxLen).join('').trim();
|
|
40921
|
+
return clamped.length > 0 ? clamped : undefined;
|
|
40922
|
+
}
|
|
40923
|
+
function normalizeClosedShellIcon(rawIcon) {
|
|
40924
|
+
if (typeof rawIcon !== 'string') {
|
|
40925
|
+
return undefined;
|
|
40926
|
+
}
|
|
40927
|
+
const trimmed = rawIcon.trim();
|
|
40928
|
+
if (!trimmed) {
|
|
40929
|
+
return undefined;
|
|
40930
|
+
}
|
|
40931
|
+
const normalized = trimmed
|
|
40932
|
+
.toLowerCase()
|
|
40933
|
+
.replace(/[^a-z0-9_]+/g, '_')
|
|
40934
|
+
.replace(/^_+|_+$/g, '');
|
|
40935
|
+
return ICON_RE.test(normalized) ? normalized : undefined;
|
|
40936
|
+
}
|
|
40937
|
+
function hasUnsupportedShellValue(val) {
|
|
40938
|
+
if (val === undefined || val === null || val === '' || val === false) {
|
|
40939
|
+
return false;
|
|
40940
|
+
}
|
|
40941
|
+
if (Array.isArray(val)) {
|
|
40942
|
+
return val.length > 0;
|
|
40943
|
+
}
|
|
40944
|
+
if (isPlainRecord$2(val)) {
|
|
40945
|
+
return Object.keys(val).length > 0;
|
|
40946
|
+
}
|
|
40947
|
+
return true;
|
|
40948
|
+
}
|
|
40949
|
+
function projectClosedShell(rawShell) {
|
|
40950
|
+
if (!isPlainRecord$2(rawShell)) {
|
|
40951
|
+
return { strippedUnsupported: false };
|
|
40952
|
+
}
|
|
40953
|
+
const projected = {};
|
|
40954
|
+
let strippedUnsupported = false;
|
|
40955
|
+
if (typeof rawShell['kind'] === 'string' && VALID_SHELL_KINDS.has(rawShell['kind'])) {
|
|
40956
|
+
projected['kind'] = rawShell['kind'];
|
|
40957
|
+
}
|
|
40958
|
+
const title = extractClosedPlainText(rawShell['title'], 160);
|
|
40959
|
+
if (title !== undefined) {
|
|
40960
|
+
projected['title'] = title;
|
|
40961
|
+
}
|
|
40962
|
+
const subtitle = extractClosedPlainText(rawShell['subtitle'], 255);
|
|
40963
|
+
if (subtitle !== undefined) {
|
|
40964
|
+
projected['subtitle'] = subtitle;
|
|
40965
|
+
}
|
|
40966
|
+
const icon = normalizeClosedShellIcon(rawShell['icon']);
|
|
40967
|
+
if (icon !== undefined) {
|
|
40968
|
+
projected['icon'] = icon;
|
|
40969
|
+
}
|
|
40970
|
+
if (typeof rawShell['showHeader'] === 'boolean') {
|
|
40971
|
+
projected['showHeader'] = rawShell['showHeader'];
|
|
40972
|
+
}
|
|
40973
|
+
for (const key of UNSUPPORTED_SHELL_OVERRIDE_KEYS) {
|
|
40974
|
+
if (hasUnsupportedShellValue(rawShell[key])) {
|
|
40975
|
+
strippedUnsupported = true;
|
|
40976
|
+
break;
|
|
40977
|
+
}
|
|
40978
|
+
}
|
|
40979
|
+
if (!strippedUnsupported) {
|
|
40980
|
+
for (const [key, val] of Object.entries(rawShell)) {
|
|
40981
|
+
if (!SAFE_SHELL_KEYS.has(key) && hasUnsupportedShellValue(val)) {
|
|
40982
|
+
strippedUnsupported = true;
|
|
40983
|
+
break;
|
|
40984
|
+
}
|
|
40985
|
+
}
|
|
40986
|
+
}
|
|
40987
|
+
return {
|
|
40988
|
+
shell: Object.keys(projected).length > 0 ? projected : undefined,
|
|
40989
|
+
strippedUnsupported,
|
|
40990
|
+
};
|
|
40991
|
+
}
|
|
40992
|
+
function projectClosedCanvas(rawCanvas, widgetKeyMap) {
|
|
40993
|
+
if (!isPlainRecord$2(rawCanvas)) {
|
|
40994
|
+
return { droppedCanvas: false };
|
|
40995
|
+
}
|
|
40996
|
+
const rawItems = rawCanvas['items'];
|
|
40997
|
+
if (!isPlainRecord$2(rawItems)) {
|
|
40998
|
+
return { droppedCanvas: false };
|
|
40999
|
+
}
|
|
41000
|
+
const rawEntries = Object.entries(rawItems);
|
|
41001
|
+
if (rawEntries.length === 0) {
|
|
41002
|
+
return { droppedCanvas: false };
|
|
41003
|
+
}
|
|
41004
|
+
if (rawCanvas['mode'] !== 'grid') {
|
|
41005
|
+
return { droppedCanvas: true };
|
|
41006
|
+
}
|
|
41007
|
+
const columns = clampClosedInt(rawCanvas['columns'], 1, 24, 12);
|
|
41008
|
+
const projectedItems = {};
|
|
41009
|
+
for (const [rawKey, rawItem] of rawEntries) {
|
|
41010
|
+
const mappedKey = widgetKeyMap.get(rawKey.trim());
|
|
41011
|
+
if (!mappedKey || !isPlainRecord$2(rawItem)) {
|
|
41012
|
+
continue;
|
|
41013
|
+
}
|
|
41014
|
+
const colSpan = clampClosedInt(rawItem['colSpan'], 1, columns, columns);
|
|
41015
|
+
const col = clampClosedInt(rawItem['col'], 1, Math.max(1, columns - colSpan + 1), 1);
|
|
41016
|
+
const row = clampClosedInt(rawItem['row'], 1, 2000, 1);
|
|
41017
|
+
const rowSpan = clampClosedInt(rawItem['rowSpan'], 1, 200, 1);
|
|
41018
|
+
const zIndex = typeof rawItem['zIndex'] === 'number' && Number.isFinite(rawItem['zIndex'])
|
|
41019
|
+
? clampClosedInt(rawItem['zIndex'], 0, 1000, 0)
|
|
41020
|
+
: undefined;
|
|
41021
|
+
projectedItems[mappedKey] = {
|
|
41022
|
+
...(typeof rawItem['widgetKey'] === 'string' ? { widgetKey: mappedKey } : {}),
|
|
41023
|
+
col,
|
|
41024
|
+
row,
|
|
41025
|
+
colSpan,
|
|
41026
|
+
rowSpan,
|
|
41027
|
+
...(zIndex !== undefined ? { zIndex } : {}),
|
|
41028
|
+
};
|
|
41029
|
+
}
|
|
41030
|
+
if (Object.keys(projectedItems).length === 0) {
|
|
41031
|
+
return { droppedCanvas: true };
|
|
41032
|
+
}
|
|
41033
|
+
const canvas = {
|
|
41034
|
+
mode: 'grid',
|
|
41035
|
+
columns,
|
|
41036
|
+
...(typeof rawCanvas['rowUnit'] === 'string' && LENGTH_RE.test(rawCanvas['rowUnit'])
|
|
41037
|
+
? { rowUnit: rawCanvas['rowUnit'] }
|
|
41038
|
+
: {}),
|
|
41039
|
+
...(typeof rawCanvas['gap'] === 'string' && LENGTH_RE.test(rawCanvas['gap'])
|
|
41040
|
+
? { gap: rawCanvas['gap'] }
|
|
41041
|
+
: {}),
|
|
41042
|
+
...(typeof rawCanvas['autoRows'] === 'string' && VALID_AUTO_ROWS.has(rawCanvas['autoRows'])
|
|
41043
|
+
? { autoRows: rawCanvas['autoRows'] }
|
|
41044
|
+
: {}),
|
|
41045
|
+
...(typeof rawCanvas['collisionPolicy'] === 'string' &&
|
|
41046
|
+
VALID_COLLISION_POLICIES.has(rawCanvas['collisionPolicy'])
|
|
41047
|
+
? { collisionPolicy: rawCanvas['collisionPolicy'] }
|
|
41048
|
+
: {}),
|
|
41049
|
+
items: projectedItems,
|
|
41050
|
+
};
|
|
41051
|
+
return { canvas, droppedCanvas: false };
|
|
41052
|
+
}
|
|
41053
|
+
/**
|
|
41054
|
+
* Projects a runtime/standalone `WidgetPageDefinition` onto `@praxisui/core`'s strict closed
|
|
41055
|
+
* `PageAuthoringDocument['config']['definition']` profile and reports dropped widgets and
|
|
41056
|
+
* stripped shell/canvas extensions without mutating the source page definition.
|
|
41057
|
+
*/
|
|
41058
|
+
function projectWidgetPageToClosedAuthoringResult(page, options = {}) {
|
|
41059
|
+
const lockForGovernance = options.lockForGovernance ?? true;
|
|
41060
|
+
const usedWidgetUuids = new Set();
|
|
41061
|
+
const widgetKeyMap = new Map();
|
|
41062
|
+
const projectedWidgets = [];
|
|
41063
|
+
const droppedWidgets = [];
|
|
41064
|
+
const droppedShellKeys = [];
|
|
41065
|
+
for (const rawWidget of page?.widgets ?? []) {
|
|
41066
|
+
const rawKey = typeof rawWidget?.key === 'string' ? rawWidget.key.trim() : '';
|
|
41067
|
+
const widgetId = typeof rawWidget?.definition?.id === 'string' ? rawWidget.definition.id.trim() : '';
|
|
41068
|
+
if (!rawKey || !widgetId) {
|
|
41069
|
+
droppedWidgets.push({
|
|
41070
|
+
key: rawKey,
|
|
41071
|
+
widgetId,
|
|
41072
|
+
reason: 'missing-identity',
|
|
41073
|
+
});
|
|
41074
|
+
continue;
|
|
41075
|
+
}
|
|
41076
|
+
if (!ADMITTED_WIDGET_ID_SET.has(widgetId)) {
|
|
41077
|
+
droppedWidgets.push({
|
|
41078
|
+
key: rawKey,
|
|
41079
|
+
widgetId,
|
|
41080
|
+
reason: 'unadmitted-widget-id',
|
|
41081
|
+
});
|
|
41082
|
+
continue;
|
|
41083
|
+
}
|
|
41084
|
+
const closedInputs = sanitizeWidgetInputsForClosedProfile(widgetId, rawWidget.definition?.inputs, lockForGovernance);
|
|
41085
|
+
if (!closedInputs) {
|
|
41086
|
+
droppedWidgets.push({
|
|
41087
|
+
key: rawKey,
|
|
41088
|
+
widgetId,
|
|
41089
|
+
reason: 'invalid-inputs',
|
|
41090
|
+
});
|
|
41091
|
+
continue;
|
|
41092
|
+
}
|
|
41093
|
+
const shellProjection = projectClosedShell(rawWidget?.shell);
|
|
41094
|
+
if (shellProjection.strippedUnsupported) {
|
|
41095
|
+
droppedShellKeys.push(rawKey);
|
|
41096
|
+
}
|
|
41097
|
+
const uuidKey = deterministicClosedPageUuid(rawKey, usedWidgetUuids);
|
|
41098
|
+
widgetKeyMap.set(rawKey, uuidKey);
|
|
41099
|
+
projectedWidgets.push({
|
|
41100
|
+
key: uuidKey,
|
|
41101
|
+
...(shellProjection.shell ? { shell: shellProjection.shell } : {}),
|
|
41102
|
+
definition: {
|
|
41103
|
+
id: widgetId,
|
|
41104
|
+
inputs: closedInputs,
|
|
41105
|
+
},
|
|
41106
|
+
});
|
|
41107
|
+
}
|
|
41108
|
+
const closedLayout = projectClosedLayout(page?.layout);
|
|
41109
|
+
const canvasProjection = projectClosedCanvas(page?.canvas, widgetKeyMap);
|
|
41110
|
+
const droppedCanvas = canvasProjection.droppedCanvas;
|
|
41111
|
+
const usedLinkUuids = new Set();
|
|
41112
|
+
const closedLinks = [];
|
|
41113
|
+
for (const link of page?.composition?.links ?? []) {
|
|
41114
|
+
if (!link || link.intent !== 'event-propagation') {
|
|
41115
|
+
continue;
|
|
41116
|
+
}
|
|
41117
|
+
const from = link.from;
|
|
41118
|
+
const to = link.to;
|
|
41119
|
+
if (!from ||
|
|
41120
|
+
!to ||
|
|
41121
|
+
from.kind !== 'component-port' ||
|
|
41122
|
+
to.kind !== 'component-port' ||
|
|
41123
|
+
from.ref?.direction !== 'output' ||
|
|
41124
|
+
to.ref?.direction !== 'input') {
|
|
41125
|
+
continue;
|
|
41126
|
+
}
|
|
41127
|
+
const fromKey = typeof from.ref?.widget === 'string' ? from.ref.widget.trim() : '';
|
|
41128
|
+
const toKey = typeof to.ref?.widget === 'string' ? to.ref.widget.trim() : '';
|
|
41129
|
+
const fromPort = typeof from.ref?.port === 'string' ? from.ref.port.trim() : '';
|
|
41130
|
+
const toPort = typeof to.ref?.port === 'string' ? to.ref.port.trim() : '';
|
|
41131
|
+
const mappedFrom = widgetKeyMap.get(fromKey);
|
|
41132
|
+
const mappedTo = widgetKeyMap.get(toKey);
|
|
41133
|
+
if (!mappedFrom || !mappedTo || !fromPort || !toPort || fromPort.length > 255 || toPort.length > 255) {
|
|
41134
|
+
continue;
|
|
41135
|
+
}
|
|
41136
|
+
const rawLinkId = typeof link.id === 'string' ? link.id.trim() : `${fromKey}:${fromPort}->${toKey}:${toPort}`;
|
|
41137
|
+
closedLinks.push({
|
|
41138
|
+
id: deterministicClosedPageUuid(rawLinkId, usedLinkUuids),
|
|
41139
|
+
intent: 'event-propagation',
|
|
41140
|
+
from: {
|
|
41141
|
+
kind: 'component-port',
|
|
41142
|
+
ref: {
|
|
41143
|
+
widget: mappedFrom,
|
|
41144
|
+
port: fromPort,
|
|
41145
|
+
direction: 'output',
|
|
41146
|
+
},
|
|
41147
|
+
},
|
|
41148
|
+
to: {
|
|
41149
|
+
kind: 'component-port',
|
|
41150
|
+
ref: {
|
|
41151
|
+
widget: mappedTo,
|
|
41152
|
+
port: toPort,
|
|
41153
|
+
direction: 'input',
|
|
41154
|
+
},
|
|
41155
|
+
},
|
|
41156
|
+
});
|
|
41157
|
+
}
|
|
41158
|
+
const warnings = [];
|
|
41159
|
+
if (droppedWidgets.length > 0) {
|
|
41160
|
+
const details = droppedWidgets
|
|
41161
|
+
.map((item) => `${item.key || '(unnamed)'} (${item.widgetId || 'unknown'}: ${item.reason})`)
|
|
41162
|
+
.join(', ');
|
|
41163
|
+
warnings.push(`Omitted ${droppedWidgets.length} widget(s) incompatible with the closed governed profile: ${details}.`);
|
|
41164
|
+
}
|
|
41165
|
+
if (droppedCanvas) {
|
|
41166
|
+
warnings.push('Non-grid or unmappable canvas coordinates are normalized to declarative flow layout under the closed governed profile.');
|
|
41167
|
+
}
|
|
41168
|
+
if (droppedShellKeys.length > 0) {
|
|
41169
|
+
warnings.push(`Custom shell visual/action overrides on ${droppedShellKeys.length} widget(s) (${droppedShellKeys.join(', ')}) are omitted in the closed governed profile.`);
|
|
41170
|
+
}
|
|
41171
|
+
return {
|
|
41172
|
+
definition: {
|
|
41173
|
+
widgets: projectedWidgets,
|
|
41174
|
+
...(closedLayout ? { layout: closedLayout } : {}),
|
|
41175
|
+
...(canvasProjection.canvas ? { canvas: canvasProjection.canvas } : {}),
|
|
41176
|
+
...(closedLinks.length > 0
|
|
41177
|
+
? {
|
|
41178
|
+
composition: {
|
|
41179
|
+
version: '1.0.0',
|
|
41180
|
+
links: closedLinks,
|
|
41181
|
+
},
|
|
41182
|
+
}
|
|
41183
|
+
: {}),
|
|
41184
|
+
},
|
|
41185
|
+
droppedWidgets,
|
|
41186
|
+
droppedCanvas,
|
|
41187
|
+
droppedShellKeys,
|
|
41188
|
+
warnings,
|
|
41189
|
+
};
|
|
41190
|
+
}
|
|
41191
|
+
/**
|
|
41192
|
+
* Projects a runtime/standalone `WidgetPageDefinition` onto `@praxisui/core`'s strict closed
|
|
41193
|
+
* `PageAuthoringDocument['config']['definition']` profile (`decodePageAuthoringDocument`,
|
|
41194
|
+
* `validatePageAuthoringDocument`, and `materializeGovernedPagePreview`) without mutating the
|
|
41195
|
+
* source page definition.
|
|
41196
|
+
*/
|
|
41197
|
+
function projectWidgetPageToClosedAuthoringDefinition(page, options = {}) {
|
|
41198
|
+
return projectWidgetPageToClosedAuthoringResult(page, options).definition;
|
|
41199
|
+
}
|
|
41200
|
+
|
|
39466
41201
|
const TRANSIENT_STATE_KEYS = [
|
|
39467
41202
|
'values',
|
|
39468
41203
|
'selectionDigest',
|
|
@@ -39722,26 +41457,23 @@ function sanitizeWidget(widget, rowClickConnectedKeys, options, seenWidgets = ne
|
|
|
39722
41457
|
delete inputs['chartDocumentOverrides'];
|
|
39723
41458
|
}
|
|
39724
41459
|
}
|
|
39725
|
-
if (options.lockForGovernance) {
|
|
39726
|
-
inputs['configPersistenceStrategy'] = 'volatile';
|
|
39727
|
-
inputs['enableCustomization'] = false;
|
|
39728
|
-
}
|
|
39729
|
-
else if (!options.preservePersistenceStrategy && inputs['configPersistenceStrategy'] !== 'input-first') {
|
|
39730
|
-
inputs['configPersistenceStrategy'] = 'volatile';
|
|
39731
|
-
}
|
|
39732
41460
|
const widgetId = String(widget.definition?.id ?? '').trim().toLowerCase();
|
|
41461
|
+
const governedInputs = applyGovernedRuntimeInputs(widgetId, inputs, {
|
|
41462
|
+
lockForGovernance: options.lockForGovernance,
|
|
41463
|
+
preservePersistenceStrategy: options.preservePersistenceStrategy,
|
|
41464
|
+
});
|
|
39733
41465
|
if (widgetId === 'praxis-table') {
|
|
39734
|
-
sanitizeTableInputs(
|
|
41466
|
+
sanitizeTableInputs(governedInputs, rowClickConnectedKeys.has(widget.key), {
|
|
39735
41467
|
ensureTableSchemaProjection: options.ensureTableSchemaProjection,
|
|
39736
41468
|
lockForGovernance: options.lockForGovernance,
|
|
39737
41469
|
});
|
|
39738
41470
|
}
|
|
39739
|
-
sanitizeNestedWidgetContainers(
|
|
41471
|
+
sanitizeNestedWidgetContainers(governedInputs, rowClickConnectedKeys, options, seenWidgets);
|
|
39740
41472
|
return {
|
|
39741
41473
|
...widget,
|
|
39742
41474
|
definition: {
|
|
39743
41475
|
...widget.definition,
|
|
39744
|
-
inputs,
|
|
41476
|
+
inputs: governedInputs,
|
|
39745
41477
|
},
|
|
39746
41478
|
};
|
|
39747
41479
|
}
|
|
@@ -39957,10 +41689,76 @@ class ResourceWidgetScaffolderService {
|
|
|
39957
41689
|
scaffoldKpiBandWidgets(spec) {
|
|
39958
41690
|
const path = normalizeResourcePath(spec.resourcePath);
|
|
39959
41691
|
const slug = slugifyKey(spec.widgetKeyPrefix ?? path);
|
|
39960
|
-
const
|
|
41692
|
+
const groupByField = spec.statsGroupByField ?? this.inferCategoricalField(spec.fields) ?? 'status';
|
|
41693
|
+
const config = {
|
|
41694
|
+
schemaVersion: 1,
|
|
41695
|
+
columns: 'auto',
|
|
41696
|
+
density: 'comfortable',
|
|
41697
|
+
cards: [
|
|
41698
|
+
{
|
|
41699
|
+
schemaVersion: 1,
|
|
41700
|
+
id: `${slug}-total`,
|
|
41701
|
+
presentation: {
|
|
41702
|
+
label: spec.statsLabel ?? spec.title,
|
|
41703
|
+
icon: spec.icon ?? 'analytics',
|
|
41704
|
+
tone: 'primary',
|
|
41705
|
+
format: 'integer',
|
|
41706
|
+
polarity: 'neutral',
|
|
41707
|
+
},
|
|
41708
|
+
source: {
|
|
41709
|
+
kind: 'stats-query',
|
|
41710
|
+
resourcePath: path,
|
|
41711
|
+
operation: 'group-by',
|
|
41712
|
+
request: {
|
|
41713
|
+
field: groupByField,
|
|
41714
|
+
metric: { operation: 'COUNT', alias: 'total' },
|
|
41715
|
+
},
|
|
41716
|
+
},
|
|
41717
|
+
derivation: {
|
|
41718
|
+
kind: 'scalar',
|
|
41719
|
+
metricAlias: 'total',
|
|
41720
|
+
aggregation: 'total',
|
|
41721
|
+
},
|
|
41722
|
+
visualization: {
|
|
41723
|
+
kind: 'none',
|
|
41724
|
+
},
|
|
41725
|
+
},
|
|
41726
|
+
{
|
|
41727
|
+
schemaVersion: 1,
|
|
41728
|
+
id: `${slug}-composition`,
|
|
41729
|
+
presentation: {
|
|
41730
|
+
label: `${spec.title} · ${groupByField}`,
|
|
41731
|
+
icon: 'donut_small',
|
|
41732
|
+
tone: 'info',
|
|
41733
|
+
format: 'integer',
|
|
41734
|
+
polarity: 'neutral',
|
|
41735
|
+
},
|
|
41736
|
+
source: {
|
|
41737
|
+
kind: 'stats-query',
|
|
41738
|
+
resourcePath: path,
|
|
41739
|
+
operation: 'group-by',
|
|
41740
|
+
request: {
|
|
41741
|
+
field: groupByField,
|
|
41742
|
+
metric: { operation: 'COUNT', alias: 'total' },
|
|
41743
|
+
},
|
|
41744
|
+
},
|
|
41745
|
+
derivation: {
|
|
41746
|
+
kind: 'composition',
|
|
41747
|
+
metricAlias: 'total',
|
|
41748
|
+
maxVisible: 4,
|
|
41749
|
+
unmatchedPolicy: 'group-as-other',
|
|
41750
|
+
headlineMode: 'total',
|
|
41751
|
+
},
|
|
41752
|
+
visualization: {
|
|
41753
|
+
kind: 'stackedBar',
|
|
41754
|
+
showLegend: true,
|
|
41755
|
+
},
|
|
41756
|
+
},
|
|
41757
|
+
],
|
|
41758
|
+
};
|
|
39961
41759
|
return [
|
|
39962
41760
|
{
|
|
39963
|
-
key: `${slug}-kpi-
|
|
41761
|
+
key: `${slug}-kpi-strip`,
|
|
39964
41762
|
shell: {
|
|
39965
41763
|
kind: 'dashboard-card',
|
|
39966
41764
|
title: spec.title,
|
|
@@ -39968,18 +41766,10 @@ class ResourceWidgetScaffolderService {
|
|
|
39968
41766
|
showHeader: true,
|
|
39969
41767
|
},
|
|
39970
41768
|
definition: {
|
|
39971
|
-
id: 'praxis-
|
|
41769
|
+
id: 'praxis-kpi-strip',
|
|
39972
41770
|
inputs: {
|
|
39973
|
-
|
|
39974
|
-
|
|
39975
|
-
kind: 'radial',
|
|
39976
|
-
surface: 'card-summary',
|
|
39977
|
-
title: spec.title,
|
|
39978
|
-
value: fieldCount > 0 ? Math.min(100, fieldCount * 10) : 100,
|
|
39979
|
-
total: 100,
|
|
39980
|
-
tone: 'info',
|
|
39981
|
-
fallbackText: spec.title,
|
|
39982
|
-
},
|
|
41771
|
+
scopeKey: `${slug}-kpis`,
|
|
41772
|
+
config,
|
|
39983
41773
|
},
|
|
39984
41774
|
},
|
|
39985
41775
|
},
|
|
@@ -41671,7 +43461,7 @@ class PraxisGovernedPagesConsoleComponent {
|
|
|
41671
43461
|
</section>
|
|
41672
43462
|
}
|
|
41673
43463
|
</section>
|
|
41674
|
-
`, isInline: true, styles: [".praxis-gov-console{display:flex;flex-direction:column;gap:14px}.praxis-gov-console__header{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;padding:14px 18px;border-radius:14px;background:var(--card);border:1px solid var(--border)}.praxis-gov-console__identity h1{margin:0;font-size:1.15rem;font-weight:700;color:var(--foreground)}.praxis-gov-console__identity p{margin:4px 0 0;font-size:.8rem;color:var(--muted-foreground)}.praxis-gov-console__actions,.praxis-gov-workflow-bar{display:flex;flex-wrap:wrap;gap:8px}.praxis-gov-btn{display:inline-flex;align-items:center;gap:6px;height:34px;padding:0 12px;border-radius:9px;border:1px solid var(--border);background:var(--secondary);color:var(--foreground);font-size:.78rem;font-weight:600;cursor:pointer}.praxis-gov-btn .material-symbols-outlined{font-size:17px}.praxis-gov-btn--primary{background:var(--primary);color:var(--primary-foreground, #ffffff);border-color:var(--primary)}.praxis-gov-catalog,.praxis-gov-preview{display:flex;flex-direction:column;gap:10px;padding:14px 18px;border-radius:14px;background:var(--card);border:1px solid var(--border)}.praxis-gov-section-head{display:flex;align-items:center;justify-content:space-between;gap:8px}.praxis-gov-section-head h2{margin:0;font-size:.96rem;font-weight:700;color:var(--foreground)}.praxis-gov-preview-notice,.praxis-gov-empty{margin:2px 0 0;font-size:.78rem;color:var(--muted-foreground)}.praxis-gov-count,.praxis-gov-badge{padding:2px 8px;border-radius:999px;font-size:.7rem;font-weight:700;background:var(--secondary);border:1px solid var(--border)}.praxis-gov-pills{display:flex;flex-wrap:wrap;gap:8px}.praxis-gov-pill{display:inline-flex;align-items:center;border-radius:10px;border:1px solid var(--border);background:var(--background)}.praxis-gov-pill__link{display:inline-flex;align-items:center;gap:7px;padding:7px 11px;color:var(--foreground);text-decoration:none;font-size:.8rem;font-weight:600}.praxis-gov-pill__edit{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;border:0;border-left:1px solid var(--border);background:transparent;color:var(--muted-foreground);cursor:pointer}.praxis-gov-error{margin:0;padding:10px 14px;border-radius:10px;border:1px solid color-mix(in oklab,var(--destructive, #dc2626) 45%,var(--border));background:color-mix(in oklab,var(--destructive, #dc2626) 10%,var(--card));color:var(--foreground);font-size:.8rem}\n"], dependencies: [{ kind: "directive", type: RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "component", type: DynamicWidgetPageComponent, selector: "praxis-dynamic-page", inputs: ["page", "context", "strictValidation", "enableCustomization", "authoringCapabilities", "showPageSettingsButton", "shellEditorComponent", "pageEditorComponent", "autoPersist", "pauseAutoPersist", "pageIdentity", "componentInstanceId", "showWidgetAssistantButton", "blockMutations", "reconcilePersistedPage", "preparePageForPersistence", "integrityPolicy"], outputs: ["pageChange", "persistenceChange", "pageAuthoringChange", "widgetEvent", "widgetSelectionChange", "widgetAssistantRequested", "widgetDiagnosticsChange"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
43464
|
+
`, isInline: true, styles: [".praxis-gov-console{display:flex;flex-direction:column;gap:14px}.praxis-gov-console__header{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;padding:14px 18px;border-radius:14px;background:var(--card);border:1px solid var(--border)}.praxis-gov-console__identity h1{margin:0;font-size:1.15rem;font-weight:700;color:var(--foreground)}.praxis-gov-console__identity p{margin:4px 0 0;font-size:.8rem;color:var(--muted-foreground)}.praxis-gov-console__actions,.praxis-gov-workflow-bar{display:flex;flex-wrap:wrap;gap:8px}.praxis-gov-btn{display:inline-flex;align-items:center;gap:6px;height:34px;padding:0 12px;border-radius:9px;border:1px solid var(--border);background:var(--secondary);color:var(--foreground);font-size:.78rem;font-weight:600;cursor:pointer}.praxis-gov-btn .material-symbols-outlined{font-size:17px}.praxis-gov-btn--primary{background:var(--primary);color:var(--primary-foreground, #ffffff);border-color:var(--primary)}.praxis-gov-catalog,.praxis-gov-preview{display:flex;flex-direction:column;gap:10px;padding:14px 18px;border-radius:14px;background:var(--card);border:1px solid var(--border)}.praxis-gov-section-head{display:flex;align-items:center;justify-content:space-between;gap:8px}.praxis-gov-section-head h2{margin:0;font-size:.96rem;font-weight:700;color:var(--foreground)}.praxis-gov-preview-notice,.praxis-gov-empty{margin:2px 0 0;font-size:.78rem;color:var(--muted-foreground)}.praxis-gov-count,.praxis-gov-badge{padding:2px 8px;border-radius:999px;font-size:.7rem;font-weight:700;background:var(--secondary);border:1px solid var(--border)}.praxis-gov-pills{display:flex;flex-wrap:wrap;gap:8px}.praxis-gov-pill{display:inline-flex;align-items:center;border-radius:10px;border:1px solid var(--border);background:var(--background)}.praxis-gov-pill__link{display:inline-flex;align-items:center;gap:7px;padding:7px 11px;color:var(--foreground);text-decoration:none;font-size:.8rem;font-weight:600}.praxis-gov-pill__edit{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;border:0;border-left:1px solid var(--border);background:transparent;color:var(--muted-foreground);cursor:pointer}.praxis-gov-error{margin:0;padding:10px 14px;border-radius:10px;border:1px solid color-mix(in oklab,var(--destructive, #dc2626) 45%,var(--border));background:color-mix(in oklab,var(--destructive, #dc2626) 10%,var(--card));color:var(--foreground);font-size:.8rem}\n"], dependencies: [{ kind: "directive", type: RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "component", type: DynamicWidgetPageComponent, selector: "praxis-dynamic-page", inputs: ["page", "context", "strictValidation", "enableCustomization", "authoringCapabilities", "showPageSettingsButton", "shellEditorComponent", "pageEditorComponent", "autoPersist", "pauseAutoPersist", "pageIdentity", "componentInstanceId", "persistenceOwnerKey", "showWidgetAssistantButton", "blockMutations", "reconcilePersistedPage", "preparePageForPersistence", "integrityPolicy"], outputs: ["pageChange", "persistenceChange", "pageAuthoringChange", "widgetEvent", "widgetSelectionChange", "widgetAssistantRequested", "widgetDiagnosticsChange"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
41675
43465
|
}
|
|
41676
43466
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImport: i0, type: PraxisGovernedPagesConsoleComponent, decorators: [{
|
|
41677
43467
|
type: Component,
|
|
@@ -42014,7 +43804,7 @@ class PraxisPublishedPageHostComponent {
|
|
|
42014
43804
|
/>
|
|
42015
43805
|
}
|
|
42016
43806
|
</section>
|
|
42017
|
-
`, isInline: true, styles: [".praxis-pub-host{display:flex;flex-direction:column;gap:12px}.praxis-pub-host__header{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;border-radius:14px;background:var(--card);border:1px solid var(--border)}.praxis-pub-host__title{display:flex;align-items:center;gap:10px}.praxis-pub-host__title h1{margin:0;font-size:1.08rem;font-weight:700;color:var(--foreground)}.praxis-pub-host__title p{margin:2px 0 0;font-size:.78rem;color:var(--muted-foreground)}.praxis-pub-host__badge{padding:2px 9px;border-radius:999px;font-size:.7rem;font-weight:600;background:var(--secondary);border:1px solid var(--border)}.praxis-pub-host__state{display:flex;align-items:center;gap:10px;padding:16px;border-radius:12px;background:var(--card);border:1px solid var(--border);font-size:.85rem}.praxis-pub-host__retry-btn{margin-left:auto;height:32px;padding:0 12px;border-radius:8px;border:1px solid var(--border);background:var(--secondary);color:var(--foreground);font-weight:600;cursor:pointer}\n"], dependencies: [{ kind: "component", type: DynamicWidgetPageComponent, selector: "praxis-dynamic-page", inputs: ["page", "context", "strictValidation", "enableCustomization", "authoringCapabilities", "showPageSettingsButton", "shellEditorComponent", "pageEditorComponent", "autoPersist", "pauseAutoPersist", "pageIdentity", "componentInstanceId", "showWidgetAssistantButton", "blockMutations", "reconcilePersistedPage", "preparePageForPersistence", "integrityPolicy"], outputs: ["pageChange", "persistenceChange", "pageAuthoringChange", "widgetEvent", "widgetSelectionChange", "widgetAssistantRequested", "widgetDiagnosticsChange"] }, { kind: "component", type: PraxisPageCopyActionComponent, selector: "praxis-page-copy-action", inputs: ["page", "canCopy"], outputs: ["copyRequested"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
43807
|
+
`, isInline: true, styles: [".praxis-pub-host{display:flex;flex-direction:column;gap:12px}.praxis-pub-host__header{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;border-radius:14px;background:var(--card);border:1px solid var(--border)}.praxis-pub-host__title{display:flex;align-items:center;gap:10px}.praxis-pub-host__title h1{margin:0;font-size:1.08rem;font-weight:700;color:var(--foreground)}.praxis-pub-host__title p{margin:2px 0 0;font-size:.78rem;color:var(--muted-foreground)}.praxis-pub-host__badge{padding:2px 9px;border-radius:999px;font-size:.7rem;font-weight:600;background:var(--secondary);border:1px solid var(--border)}.praxis-pub-host__state{display:flex;align-items:center;gap:10px;padding:16px;border-radius:12px;background:var(--card);border:1px solid var(--border);font-size:.85rem}.praxis-pub-host__retry-btn{margin-left:auto;height:32px;padding:0 12px;border-radius:8px;border:1px solid var(--border);background:var(--secondary);color:var(--foreground);font-weight:600;cursor:pointer}\n"], dependencies: [{ kind: "component", type: DynamicWidgetPageComponent, selector: "praxis-dynamic-page", inputs: ["page", "context", "strictValidation", "enableCustomization", "authoringCapabilities", "showPageSettingsButton", "shellEditorComponent", "pageEditorComponent", "autoPersist", "pauseAutoPersist", "pageIdentity", "componentInstanceId", "persistenceOwnerKey", "showWidgetAssistantButton", "blockMutations", "reconcilePersistedPage", "preparePageForPersistence", "integrityPolicy"], outputs: ["pageChange", "persistenceChange", "pageAuthoringChange", "widgetEvent", "widgetSelectionChange", "widgetAssistantRequested", "widgetDiagnosticsChange"] }, { kind: "component", type: PraxisPageCopyActionComponent, selector: "praxis-page-copy-action", inputs: ["page", "canCopy"], outputs: ["copyRequested"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
42018
43808
|
}
|
|
42019
43809
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImport: i0, type: PraxisPublishedPageHostComponent, decorators: [{
|
|
42020
43810
|
type: Component,
|
|
@@ -42114,11 +43904,40 @@ class PraxisPersonalLaboratoryPageComponent {
|
|
|
42114
43904
|
initialTitle = input(undefined, ...(ngDevMode ? [{ debugName: "initialTitle" }] : /* istanbul ignore next */ []));
|
|
42115
43905
|
initialMenuLabel = input(undefined, ...(ngDevMode ? [{ debugName: "initialMenuLabel" }] : /* istanbul ignore next */ []));
|
|
42116
43906
|
initialIcon = input(undefined, ...(ngDevMode ? [{ debugName: "initialIcon" }] : /* istanbul ignore next */ []));
|
|
43907
|
+
menuSuggestions = input([], ...(ngDevMode ? [{ debugName: "menuSuggestions" }] : /* istanbul ignore next */ []));
|
|
42117
43908
|
selectedPageId = model(null, ...(ngDevMode ? [{ debugName: "selectedPageId" }] : /* istanbul ignore next */ []));
|
|
42118
43909
|
workingPage = signal(createBlankLabPageDefinition(), ...(ngDevMode ? [{ debugName: "workingPage" }] : /* istanbul ignore next */ []));
|
|
42119
43910
|
activeTitle = signal('', ...(ngDevMode ? [{ debugName: "activeTitle" }] : /* istanbul ignore next */ []));
|
|
43911
|
+
activeMenuLabel = signal(undefined, ...(ngDevMode ? [{ debugName: "activeMenuLabel" }] : /* istanbul ignore next */ []));
|
|
43912
|
+
activeIcon = signal(undefined, ...(ngDevMode ? [{ debugName: "activeIcon" }] : /* istanbul ignore next */ []));
|
|
42120
43913
|
scaffoldPanelOpen = signal(false, ...(ngDevMode ? [{ debugName: "scaffoldPanelOpen" }] : /* istanbul ignore next */ []));
|
|
42121
43914
|
scaffolding = signal(false, ...(ngDevMode ? [{ debugName: "scaffolding" }] : /* istanbul ignore next */ []));
|
|
43915
|
+
resolvedMenuSuggestions = computed(() => {
|
|
43916
|
+
const seen = new Set();
|
|
43917
|
+
const out = [];
|
|
43918
|
+
const push = (raw) => {
|
|
43919
|
+
const label = String(raw ?? '').trim();
|
|
43920
|
+
if (!label) {
|
|
43921
|
+
return;
|
|
43922
|
+
}
|
|
43923
|
+
const key = label
|
|
43924
|
+
.normalize('NFD')
|
|
43925
|
+
.replace(/[\u0300-\u036f]/g, '')
|
|
43926
|
+
.toLowerCase();
|
|
43927
|
+
if (seen.has(key)) {
|
|
43928
|
+
return;
|
|
43929
|
+
}
|
|
43930
|
+
seen.add(key);
|
|
43931
|
+
out.push(label);
|
|
43932
|
+
};
|
|
43933
|
+
for (const suggestion of this.menuSuggestions()) {
|
|
43934
|
+
push(suggestion);
|
|
43935
|
+
}
|
|
43936
|
+
for (const entry of this.savedPages()) {
|
|
43937
|
+
push(entry.menuGroup);
|
|
43938
|
+
}
|
|
43939
|
+
return out;
|
|
43940
|
+
}, ...(ngDevMode ? [{ debugName: "resolvedMenuSuggestions" }] : /* istanbul ignore next */ []));
|
|
42122
43941
|
scaffoldResourcePath = '';
|
|
42123
43942
|
scaffoldTitle = '';
|
|
42124
43943
|
pageChanged = output();
|
|
@@ -42150,6 +43969,18 @@ class PraxisPersonalLaboratoryPageComponent {
|
|
|
42150
43969
|
this.activeTitle.set(title);
|
|
42151
43970
|
}
|
|
42152
43971
|
});
|
|
43972
|
+
effect(() => {
|
|
43973
|
+
const menuLabel = this.initialMenuLabel();
|
|
43974
|
+
if (menuLabel !== undefined) {
|
|
43975
|
+
this.activeMenuLabel.set(menuLabel);
|
|
43976
|
+
}
|
|
43977
|
+
});
|
|
43978
|
+
effect(() => {
|
|
43979
|
+
const icon = this.initialIcon();
|
|
43980
|
+
if (icon !== undefined) {
|
|
43981
|
+
this.activeIcon.set(icon);
|
|
43982
|
+
}
|
|
43983
|
+
});
|
|
42153
43984
|
}
|
|
42154
43985
|
get saveAsComponent() {
|
|
42155
43986
|
return this.saveAsRef;
|
|
@@ -42160,6 +43991,8 @@ class PraxisPersonalLaboratoryPageComponent {
|
|
|
42160
43991
|
newBlankPage() {
|
|
42161
43992
|
this.selectedPageId.set(null);
|
|
42162
43993
|
this.activeTitle.set('');
|
|
43994
|
+
this.activeMenuLabel.set(this.initialMenuLabel());
|
|
43995
|
+
this.activeIcon.set(this.initialIcon());
|
|
42163
43996
|
const blank = createBlankLabPageDefinition();
|
|
42164
43997
|
this.workingPage.set(blank);
|
|
42165
43998
|
this.pageChanged.emit(blank);
|
|
@@ -42167,6 +44000,8 @@ class PraxisPersonalLaboratoryPageComponent {
|
|
|
42167
44000
|
loadSavedPage(entry) {
|
|
42168
44001
|
this.selectedPageId.set(entry.id);
|
|
42169
44002
|
this.activeTitle.set(entry.title);
|
|
44003
|
+
this.activeMenuLabel.set(entry.menuGroup?.trim() || this.initialMenuLabel());
|
|
44004
|
+
this.activeIcon.set(entry.icon?.trim() || this.initialIcon());
|
|
42170
44005
|
const clean = sanitizeWidgetPageDefinition(entry.page, { lockForGovernance: false });
|
|
42171
44006
|
this.workingPage.set(clean);
|
|
42172
44007
|
this.pageChanged.emit(clean);
|
|
@@ -42202,7 +44037,7 @@ class PraxisPersonalLaboratoryPageComponent {
|
|
|
42202
44037
|
await this.saveAsRef.save(clean);
|
|
42203
44038
|
}
|
|
42204
44039
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.14", ngImport: i0, type: PraxisPersonalLaboratoryPageComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
42205
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.14", type: PraxisPersonalLaboratoryPageComponent, isStandalone: true, selector: "praxis-personal-laboratory-page", inputs: { savedPages: { classPropertyName: "savedPages", publicName: "savedPages", isSignal: true, isRequired: false, transformFunction: null }, saveAsAdapter: { classPropertyName: "saveAsAdapter", publicName: "saveAsAdapter", isSignal: true, isRequired: false, transformFunction: null }, saveContextKey: { classPropertyName: "saveContextKey", publicName: "saveContextKey", isSignal: true, isRequired: false, transformFunction: null }, authoringCapabilities: { classPropertyName: "authoringCapabilities", publicName: "authoringCapabilities", isSignal: true, isRequired: false, transformFunction: null }, allowedWidgetIds: { classPropertyName: "allowedWidgetIds", publicName: "allowedWidgetIds", isSignal: true, isRequired: false, transformFunction: null }, initialPage: { classPropertyName: "initialPage", publicName: "initialPage", isSignal: true, isRequired: false, transformFunction: null }, initialTitle: { classPropertyName: "initialTitle", publicName: "initialTitle", isSignal: true, isRequired: false, transformFunction: null }, initialMenuLabel: { classPropertyName: "initialMenuLabel", publicName: "initialMenuLabel", isSignal: true, isRequired: false, transformFunction: null }, initialIcon: { classPropertyName: "initialIcon", publicName: "initialIcon", isSignal: true, isRequired: false, transformFunction: null }, selectedPageId: { classPropertyName: "selectedPageId", publicName: "selectedPageId", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { selectedPageId: "selectedPageIdChange", pageChanged: "pageChanged", saved: "saved", deleteRequested: "deleteRequested" }, viewQueries: [{ propertyName: "saveAsRef", first: true, predicate: PraxisPageSaveAsComponent, descendants: true }], ngImport: i0, template: `
|
|
44040
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.14", type: PraxisPersonalLaboratoryPageComponent, isStandalone: true, selector: "praxis-personal-laboratory-page", inputs: { savedPages: { classPropertyName: "savedPages", publicName: "savedPages", isSignal: true, isRequired: false, transformFunction: null }, saveAsAdapter: { classPropertyName: "saveAsAdapter", publicName: "saveAsAdapter", isSignal: true, isRequired: false, transformFunction: null }, saveContextKey: { classPropertyName: "saveContextKey", publicName: "saveContextKey", isSignal: true, isRequired: false, transformFunction: null }, authoringCapabilities: { classPropertyName: "authoringCapabilities", publicName: "authoringCapabilities", isSignal: true, isRequired: false, transformFunction: null }, allowedWidgetIds: { classPropertyName: "allowedWidgetIds", publicName: "allowedWidgetIds", isSignal: true, isRequired: false, transformFunction: null }, initialPage: { classPropertyName: "initialPage", publicName: "initialPage", isSignal: true, isRequired: false, transformFunction: null }, initialTitle: { classPropertyName: "initialTitle", publicName: "initialTitle", isSignal: true, isRequired: false, transformFunction: null }, initialMenuLabel: { classPropertyName: "initialMenuLabel", publicName: "initialMenuLabel", isSignal: true, isRequired: false, transformFunction: null }, initialIcon: { classPropertyName: "initialIcon", publicName: "initialIcon", isSignal: true, isRequired: false, transformFunction: null }, menuSuggestions: { classPropertyName: "menuSuggestions", publicName: "menuSuggestions", isSignal: true, isRequired: false, transformFunction: null }, selectedPageId: { classPropertyName: "selectedPageId", publicName: "selectedPageId", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { selectedPageId: "selectedPageIdChange", pageChanged: "pageChanged", saved: "saved", deleteRequested: "deleteRequested" }, viewQueries: [{ propertyName: "saveAsRef", first: true, predicate: PraxisPageSaveAsComponent, descendants: true }], ngImport: i0, template: `
|
|
42206
44041
|
<section
|
|
42207
44042
|
class="praxis-lab-page"
|
|
42208
44043
|
role="region"
|
|
@@ -42321,8 +44156,9 @@ class PraxisPersonalLaboratoryPageComponent {
|
|
|
42321
44156
|
[contextKey]="saveContextKey()"
|
|
42322
44157
|
[canSave]="workingPage().widgets.length > 0"
|
|
42323
44158
|
[initialTitle]="activeTitle()"
|
|
42324
|
-
[initialMenuLabel]="
|
|
42325
|
-
[initialIcon]="
|
|
44159
|
+
[initialMenuLabel]="activeMenuLabel() ?? activeTitle()"
|
|
44160
|
+
[initialIcon]="activeIcon() ?? 'web'"
|
|
44161
|
+
[menuSuggestions]="resolvedMenuSuggestions()"
|
|
42326
44162
|
(saveRequested)="handleSaveAsRequest()"
|
|
42327
44163
|
(saved)="saved.emit($event)"
|
|
42328
44164
|
/>
|
|
@@ -42339,7 +44175,7 @@ class PraxisPersonalLaboratoryPageComponent {
|
|
|
42339
44175
|
(pageChange)="onBuilderPageChange($event)"
|
|
42340
44176
|
/>
|
|
42341
44177
|
</section>
|
|
42342
|
-
`, isInline: true, styles: [".praxis-lab-page{display:flex;flex-direction:column;gap:12px}.praxis-lab-page__header,.praxis-lab-scaffold-form,.praxis-lab-saved,.praxis-lab-save-as{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px 14px;padding:12px 16px;border-radius:14px;background:var(--card);border:1px solid var(--border)}.praxis-lab-page__header h1{margin:0;font-size:1.12rem;font-weight:700;color:var(--foreground)}.praxis-lab-page__header p{margin:2px 0 0;font-size:.78rem;color:var(--muted-foreground)}.praxis-lab-page__actions{display:flex;flex-wrap:wrap;gap:8px}.praxis-lab-btn{display:inline-flex;align-items:center;gap:6px;height:34px;padding:0 12px;border-radius:9px;border:1px solid var(--border);background:var(--secondary);color:var(--foreground);font-size:.78rem;font-weight:600;cursor:pointer}.praxis-lab-btn .material-symbols-outlined{font-size:17px}.praxis-lab-btn--primary{background:var(--primary);color:var(--primary-foreground, #ffffff);border-color:var(--primary)}.praxis-lab-field{display:flex;flex-direction:column;gap:4px;min-width:220px}.praxis-lab-field span{font-size:.72rem;font-weight:600;color:var(--muted-foreground)}.praxis-lab-field input{height:34px;padding:0 10px;border-radius:8px;border:1px solid var(--border);background:var(--background);color:var(--foreground);font-size:.8rem}.praxis-lab-saved{flex-direction:column;align-items:stretch}.praxis-lab-saved__title{font-size:.78rem;font-weight:700;color:var(--muted-foreground)}.praxis-lab-saved__items{display:flex;flex-wrap:wrap;gap:8px}.praxis-lab-saved__pill{display:inline-flex;align-items:center;border-radius:10px;border:1px solid var(--border);background:var(--background)}.praxis-lab-saved__select{display:inline-flex;align-items:center;gap:6px;padding:6px 10px;border:0;background:transparent;color:var(--foreground);font-size:.78rem;font-weight:600;cursor:pointer}.praxis-lab-saved__select.is-active{color:var(--primary)}.praxis-lab-saved__icon-link,.praxis-lab-saved__icon-btn{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;border:0;border-left:1px solid var(--border);background:transparent;color:var(--muted-foreground);cursor:pointer;text-decoration:none}.praxis-lab-empty{margin:0;padding:8px 12px;font-size:.78rem;color:var(--muted-foreground)}\n"], dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1$1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1$1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],[formArray],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i1$1.NgForm, selector: "form:not([ngNoForm]):not([formGroup]):not([formArray]),ng-form,[ngForm]", inputs: ["ngFormOptions"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "component", type: DynamicPageBuilderComponent, selector: "praxis-dynamic-page-builder", inputs: ["page", "context", "strictValidation", "autoPersist", "enableCustomization", "authoringCapabilities", "showSettingsButton", "showGovernanceToolbar", "governanceToolbarTitle", "pageIdentity", "componentInstanceId", "reconcilePersistedPage", "preparePageForPersistence", "siblingGridGeometrySync", "integrityPolicy", "pageEditorComponent", "componentPaletteAllowedWidgetIds", "componentPaletteAllowedWidgetTags", "componentPaletteAllowedPresetIds", "enableAgenticAuthoring", "allowAutoPersistWithAgentic", "autoPersistPolicy", "agenticAuthoringProvider", "agenticAuthoringModel", "agenticAuthoringApiKey", "agenticAuthoringComponentId", "agenticAuthoringScope", "agenticAuthoringEtag", "agenticAuthoringIncludeLlmDiagnostics", "agenticAuthoringEnableStreaming", "agenticAuthoringLocalApplyOnly", "agenticAuthoringVoiceInputMode", "agenticAuthoringContextHints", "authoringDocument", "showPageLifecycleActions", "canDeleteSavedPage", "pageLifecycleBusy", "pageLifecycleResetRevision"], outputs: ["persistenceChange", "pageChange", "pageAuthoringChange", "widgetEvent", "pageSaveRequested", "agenticAuthoringApplied", "agenticAuthoringSharedRuleHandoff", "pageRestart", "savedPageDeleteRequested", "customizationChange"] }, { kind: "component", type: PraxisPageSaveAsComponent, selector: "praxis-page-save-as", inputs: ["adapter", "contextKey", "canSave", "initialTitle", "initialMenuLabel", "initialIcon", "titleMaxLength", "menuMaxLength"], outputs: ["saveRequested", "saved", "saveFailed"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
44178
|
+
`, isInline: true, styles: [".praxis-lab-page{display:flex;flex-direction:column;gap:12px}.praxis-lab-page__header,.praxis-lab-scaffold-form,.praxis-lab-saved,.praxis-lab-save-as{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px 14px;padding:12px 16px;border-radius:14px;background:var(--card);border:1px solid var(--border)}.praxis-lab-save-as>praxis-page-save-as{flex:1 1 100%;width:100%}.praxis-lab-page__header h1{margin:0;font-size:1.12rem;font-weight:700;color:var(--foreground)}.praxis-lab-page__header p{margin:2px 0 0;font-size:.78rem;color:var(--muted-foreground)}.praxis-lab-page__actions{display:flex;flex-wrap:wrap;gap:8px}.praxis-lab-btn{display:inline-flex;align-items:center;gap:6px;height:34px;padding:0 12px;border-radius:9px;border:1px solid var(--border);background:var(--secondary);color:var(--foreground);font-size:.78rem;font-weight:600;cursor:pointer}.praxis-lab-btn .material-symbols-outlined{font-size:17px}.praxis-lab-btn--primary{background:var(--primary);color:var(--primary-foreground, #ffffff);border-color:var(--primary)}.praxis-lab-field{display:flex;flex-direction:column;gap:4px;min-width:220px}.praxis-lab-field span{font-size:.72rem;font-weight:600;color:var(--muted-foreground)}.praxis-lab-field input{height:34px;padding:0 10px;border-radius:8px;border:1px solid var(--border);background:var(--background);color:var(--foreground);font-size:.8rem}.praxis-lab-saved{flex-direction:column;align-items:stretch}.praxis-lab-saved__title{font-size:.78rem;font-weight:700;color:var(--muted-foreground)}.praxis-lab-saved__items{display:flex;flex-wrap:wrap;gap:8px}.praxis-lab-saved__pill{display:inline-flex;align-items:center;border-radius:10px;border:1px solid var(--border);background:var(--background)}.praxis-lab-saved__select{display:inline-flex;align-items:center;gap:6px;padding:6px 10px;border:0;background:transparent;color:var(--foreground);font-size:.78rem;font-weight:600;cursor:pointer}.praxis-lab-saved__select.is-active{color:var(--primary)}.praxis-lab-saved__icon-link,.praxis-lab-saved__icon-btn{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;border:0;border-left:1px solid var(--border);background:transparent;color:var(--muted-foreground);cursor:pointer;text-decoration:none}.praxis-lab-empty{margin:0;padding:8px 12px;font-size:.78rem;color:var(--muted-foreground)}\n"], dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1$1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1$1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],[formArray],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i1$1.NgForm, selector: "form:not([ngNoForm]):not([formGroup]):not([formArray]),ng-form,[ngForm]", inputs: ["ngFormOptions"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "component", type: DynamicPageBuilderComponent, selector: "praxis-dynamic-page-builder", inputs: ["page", "context", "strictValidation", "autoPersist", "enableCustomization", "authoringCapabilities", "showSettingsButton", "showGovernanceToolbar", "governanceToolbarTitle", "pageIdentity", "componentInstanceId", "persistenceOwnerKey", "reconcilePersistedPage", "preparePageForPersistence", "siblingGridGeometrySync", "integrityPolicy", "pageEditorComponent", "componentPaletteAllowedWidgetIds", "componentPaletteAllowedWidgetTags", "componentPaletteExcludedWidgetTags", "componentPaletteAllowedPresetIds", "enableAgenticAuthoring", "allowAutoPersistWithAgentic", "autoPersistPolicy", "agenticAuthoringProvider", "agenticAuthoringModel", "agenticAuthoringApiKey", "agenticAuthoringComponentId", "agenticAuthoringScope", "agenticAuthoringEtag", "agenticAuthoringIncludeLlmDiagnostics", "agenticAuthoringEnableStreaming", "agenticAuthoringLocalApplyOnly", "agenticAuthoringVoiceInputMode", "agenticAuthoringContextHints", "authoringDocument", "showPageLifecycleActions", "canDeleteSavedPage", "pageLifecycleBusy", "pageLifecycleResetRevision"], outputs: ["persistenceChange", "pageChange", "pageAuthoringChange", "widgetEvent", "pageSaveRequested", "agenticAuthoringApplied", "agenticAuthoringSharedRuleHandoff", "pageRestart", "savedPageDeleteRequested", "customizationChange"] }, { kind: "component", type: PraxisPageSaveAsComponent, selector: "praxis-page-save-as", inputs: ["adapter", "contextKey", "canSave", "initialTitle", "initialMenuLabel", "initialIcon", "menuSuggestions", "titleMaxLength", "menuMaxLength"], outputs: ["saveRequested", "saved", "saveFailed"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
42343
44179
|
}
|
|
42344
44180
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImport: i0, type: PraxisPersonalLaboratoryPageComponent, decorators: [{
|
|
42345
44181
|
type: Component,
|
|
@@ -42462,8 +44298,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
|
|
|
42462
44298
|
[contextKey]="saveContextKey()"
|
|
42463
44299
|
[canSave]="workingPage().widgets.length > 0"
|
|
42464
44300
|
[initialTitle]="activeTitle()"
|
|
42465
|
-
[initialMenuLabel]="
|
|
42466
|
-
[initialIcon]="
|
|
44301
|
+
[initialMenuLabel]="activeMenuLabel() ?? activeTitle()"
|
|
44302
|
+
[initialIcon]="activeIcon() ?? 'web'"
|
|
44303
|
+
[menuSuggestions]="resolvedMenuSuggestions()"
|
|
42467
44304
|
(saveRequested)="handleSaveAsRequest()"
|
|
42468
44305
|
(saved)="saved.emit($event)"
|
|
42469
44306
|
/>
|
|
@@ -42480,11 +44317,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
|
|
|
42480
44317
|
(pageChange)="onBuilderPageChange($event)"
|
|
42481
44318
|
/>
|
|
42482
44319
|
</section>
|
|
42483
|
-
`, changeDetection: ChangeDetectionStrategy.OnPush, styles: [".praxis-lab-page{display:flex;flex-direction:column;gap:12px}.praxis-lab-page__header,.praxis-lab-scaffold-form,.praxis-lab-saved,.praxis-lab-save-as{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px 14px;padding:12px 16px;border-radius:14px;background:var(--card);border:1px solid var(--border)}.praxis-lab-page__header h1{margin:0;font-size:1.12rem;font-weight:700;color:var(--foreground)}.praxis-lab-page__header p{margin:2px 0 0;font-size:.78rem;color:var(--muted-foreground)}.praxis-lab-page__actions{display:flex;flex-wrap:wrap;gap:8px}.praxis-lab-btn{display:inline-flex;align-items:center;gap:6px;height:34px;padding:0 12px;border-radius:9px;border:1px solid var(--border);background:var(--secondary);color:var(--foreground);font-size:.78rem;font-weight:600;cursor:pointer}.praxis-lab-btn .material-symbols-outlined{font-size:17px}.praxis-lab-btn--primary{background:var(--primary);color:var(--primary-foreground, #ffffff);border-color:var(--primary)}.praxis-lab-field{display:flex;flex-direction:column;gap:4px;min-width:220px}.praxis-lab-field span{font-size:.72rem;font-weight:600;color:var(--muted-foreground)}.praxis-lab-field input{height:34px;padding:0 10px;border-radius:8px;border:1px solid var(--border);background:var(--background);color:var(--foreground);font-size:.8rem}.praxis-lab-saved{flex-direction:column;align-items:stretch}.praxis-lab-saved__title{font-size:.78rem;font-weight:700;color:var(--muted-foreground)}.praxis-lab-saved__items{display:flex;flex-wrap:wrap;gap:8px}.praxis-lab-saved__pill{display:inline-flex;align-items:center;border-radius:10px;border:1px solid var(--border);background:var(--background)}.praxis-lab-saved__select{display:inline-flex;align-items:center;gap:6px;padding:6px 10px;border:0;background:transparent;color:var(--foreground);font-size:.78rem;font-weight:600;cursor:pointer}.praxis-lab-saved__select.is-active{color:var(--primary)}.praxis-lab-saved__icon-link,.praxis-lab-saved__icon-btn{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;border:0;border-left:1px solid var(--border);background:transparent;color:var(--muted-foreground);cursor:pointer;text-decoration:none}.praxis-lab-empty{margin:0;padding:8px 12px;font-size:.78rem;color:var(--muted-foreground)}\n"] }]
|
|
44320
|
+
`, changeDetection: ChangeDetectionStrategy.OnPush, styles: [".praxis-lab-page{display:flex;flex-direction:column;gap:12px}.praxis-lab-page__header,.praxis-lab-scaffold-form,.praxis-lab-saved,.praxis-lab-save-as{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px 14px;padding:12px 16px;border-radius:14px;background:var(--card);border:1px solid var(--border)}.praxis-lab-save-as>praxis-page-save-as{flex:1 1 100%;width:100%}.praxis-lab-page__header h1{margin:0;font-size:1.12rem;font-weight:700;color:var(--foreground)}.praxis-lab-page__header p{margin:2px 0 0;font-size:.78rem;color:var(--muted-foreground)}.praxis-lab-page__actions{display:flex;flex-wrap:wrap;gap:8px}.praxis-lab-btn{display:inline-flex;align-items:center;gap:6px;height:34px;padding:0 12px;border-radius:9px;border:1px solid var(--border);background:var(--secondary);color:var(--foreground);font-size:.78rem;font-weight:600;cursor:pointer}.praxis-lab-btn .material-symbols-outlined{font-size:17px}.praxis-lab-btn--primary{background:var(--primary);color:var(--primary-foreground, #ffffff);border-color:var(--primary)}.praxis-lab-field{display:flex;flex-direction:column;gap:4px;min-width:220px}.praxis-lab-field span{font-size:.72rem;font-weight:600;color:var(--muted-foreground)}.praxis-lab-field input{height:34px;padding:0 10px;border-radius:8px;border:1px solid var(--border);background:var(--background);color:var(--foreground);font-size:.8rem}.praxis-lab-saved{flex-direction:column;align-items:stretch}.praxis-lab-saved__title{font-size:.78rem;font-weight:700;color:var(--muted-foreground)}.praxis-lab-saved__items{display:flex;flex-wrap:wrap;gap:8px}.praxis-lab-saved__pill{display:inline-flex;align-items:center;border-radius:10px;border:1px solid var(--border);background:var(--background)}.praxis-lab-saved__select{display:inline-flex;align-items:center;gap:6px;padding:6px 10px;border:0;background:transparent;color:var(--foreground);font-size:.78rem;font-weight:600;cursor:pointer}.praxis-lab-saved__select.is-active{color:var(--primary)}.praxis-lab-saved__icon-link,.praxis-lab-saved__icon-btn{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;border:0;border-left:1px solid var(--border);background:transparent;color:var(--muted-foreground);cursor:pointer;text-decoration:none}.praxis-lab-empty{margin:0;padding:8px 12px;font-size:.78rem;color:var(--muted-foreground)}\n"] }]
|
|
42484
44321
|
}], ctorParameters: () => [], propDecorators: { saveAsRef: [{
|
|
42485
44322
|
type: ViewChild,
|
|
42486
44323
|
args: [PraxisPageSaveAsComponent]
|
|
42487
|
-
}], savedPages: [{ type: i0.Input, args: [{ isSignal: true, alias: "savedPages", required: false }] }], saveAsAdapter: [{ type: i0.Input, args: [{ isSignal: true, alias: "saveAsAdapter", required: false }] }], saveContextKey: [{ type: i0.Input, args: [{ isSignal: true, alias: "saveContextKey", required: false }] }], authoringCapabilities: [{ type: i0.Input, args: [{ isSignal: true, alias: "authoringCapabilities", required: false }] }], allowedWidgetIds: [{ type: i0.Input, args: [{ isSignal: true, alias: "allowedWidgetIds", required: false }] }], initialPage: [{ type: i0.Input, args: [{ isSignal: true, alias: "initialPage", required: false }] }], initialTitle: [{ type: i0.Input, args: [{ isSignal: true, alias: "initialTitle", required: false }] }], initialMenuLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "initialMenuLabel", required: false }] }], initialIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "initialIcon", required: false }] }], selectedPageId: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectedPageId", required: false }] }, { type: i0.Output, args: ["selectedPageIdChange"] }], pageChanged: [{ type: i0.Output, args: ["pageChanged"] }], saved: [{ type: i0.Output, args: ["saved"] }], deleteRequested: [{ type: i0.Output, args: ["deleteRequested"] }] } });
|
|
44324
|
+
}], savedPages: [{ type: i0.Input, args: [{ isSignal: true, alias: "savedPages", required: false }] }], saveAsAdapter: [{ type: i0.Input, args: [{ isSignal: true, alias: "saveAsAdapter", required: false }] }], saveContextKey: [{ type: i0.Input, args: [{ isSignal: true, alias: "saveContextKey", required: false }] }], authoringCapabilities: [{ type: i0.Input, args: [{ isSignal: true, alias: "authoringCapabilities", required: false }] }], allowedWidgetIds: [{ type: i0.Input, args: [{ isSignal: true, alias: "allowedWidgetIds", required: false }] }], initialPage: [{ type: i0.Input, args: [{ isSignal: true, alias: "initialPage", required: false }] }], initialTitle: [{ type: i0.Input, args: [{ isSignal: true, alias: "initialTitle", required: false }] }], initialMenuLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "initialMenuLabel", required: false }] }], initialIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "initialIcon", required: false }] }], menuSuggestions: [{ type: i0.Input, args: [{ isSignal: true, alias: "menuSuggestions", required: false }] }], selectedPageId: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectedPageId", required: false }] }, { type: i0.Output, args: ["selectedPageIdChange"] }], pageChanged: [{ type: i0.Output, args: ["pageChanged"] }], saved: [{ type: i0.Output, args: ["saved"] }], deleteRequested: [{ type: i0.Output, args: ["deleteRequested"] }] } });
|
|
42488
44325
|
|
|
42489
44326
|
function createEmptyStudioDefinition() {
|
|
42490
44327
|
return {
|
|
@@ -42712,7 +44549,7 @@ class PraxisWorkspaceStudioPageComponent {
|
|
|
42712
44549
|
(agenticAuthoringApplied)="agenticApplied.emit($event)"
|
|
42713
44550
|
/>
|
|
42714
44551
|
</section>
|
|
42715
|
-
`, isInline: true, styles: [".praxis-studio-page{display:flex;flex-direction:column;gap:12px}.praxis-studio-header,.praxis-studio-presets,.praxis-studio-scaffolder{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px 14px;padding:12px 16px;border-radius:14px;background:var(--card);border:1px solid var(--border)}.praxis-studio-presets{flex-direction:column;align-items:stretch}.praxis-studio-header h1{margin:0;font-size:1.12rem;font-weight:700;color:var(--foreground)}.praxis-studio-header p{margin:2px 0 0;font-size:.78rem;color:var(--muted-foreground)}.praxis-studio-section-label{font-size:.76rem;font-weight:700;color:var(--muted-foreground)}.praxis-studio-preset-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:8px}.praxis-studio-preset-card{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:10px;border:1px solid var(--border);background:var(--background);color:var(--foreground);text-align:left;cursor:pointer}.praxis-studio-preset-card.is-selected{border-color:var(--primary);background:color-mix(in oklab,var(--primary) 10%,var(--card))}.praxis-studio-preset-card__copy{display:flex;flex-direction:column;gap:2px;flex:1 1 auto;min-width:0}.praxis-studio-preset-card__copy strong{font-size:.8rem}.praxis-studio-preset-card__copy small{font-size:.71rem;color:var(--muted-foreground)}.praxis-studio-preset-card__badge{padding:2px 7px;border-radius:999px;font-size:.68rem;font-weight:700;background:var(--secondary);border:1px solid var(--border)}.praxis-studio-input{flex:1 1 220px;height:34px;padding:0 10px;border-radius:8px;border:1px solid var(--border);background:var(--background);color:var(--foreground);font-size:.8rem}.praxis-studio-mode-group{display:flex;flex-wrap:wrap;gap:6px}.praxis-studio-mode-btn,.praxis-studio-btn{display:inline-flex;align-items:center;gap:6px;height:34px;padding:0 11px;border-radius:9px;border:1px solid var(--border);background:var(--secondary);color:var(--foreground);font-size:.76rem;font-weight:600;cursor:pointer}:is(.praxis-studio-mode-btn,.praxis-studio-btn).is-active{border-color:var(--primary);color:var(--primary)}.praxis-studio-btn--primary{background:var(--primary);border-color:var(--primary);color:var(--primary-foreground, #ffffff)}\n"], dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1$1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1$1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],[formArray],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i1$1.NgForm, selector: "form:not([ngNoForm]):not([formGroup]):not([formArray]),ng-form,[ngForm]", inputs: ["ngFormOptions"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "component", type: DynamicPageBuilderComponent, selector: "praxis-dynamic-page-builder", inputs: ["page", "context", "strictValidation", "autoPersist", "enableCustomization", "authoringCapabilities", "showSettingsButton", "showGovernanceToolbar", "governanceToolbarTitle", "pageIdentity", "componentInstanceId", "reconcilePersistedPage", "preparePageForPersistence", "siblingGridGeometrySync", "integrityPolicy", "pageEditorComponent", "componentPaletteAllowedWidgetIds", "componentPaletteAllowedWidgetTags", "componentPaletteAllowedPresetIds", "enableAgenticAuthoring", "allowAutoPersistWithAgentic", "autoPersistPolicy", "agenticAuthoringProvider", "agenticAuthoringModel", "agenticAuthoringApiKey", "agenticAuthoringComponentId", "agenticAuthoringScope", "agenticAuthoringEtag", "agenticAuthoringIncludeLlmDiagnostics", "agenticAuthoringEnableStreaming", "agenticAuthoringLocalApplyOnly", "agenticAuthoringVoiceInputMode", "agenticAuthoringContextHints", "authoringDocument", "showPageLifecycleActions", "canDeleteSavedPage", "pageLifecycleBusy", "pageLifecycleResetRevision"], outputs: ["persistenceChange", "pageChange", "pageAuthoringChange", "widgetEvent", "pageSaveRequested", "agenticAuthoringApplied", "agenticAuthoringSharedRuleHandoff", "pageRestart", "savedPageDeleteRequested", "customizationChange"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
44552
|
+
`, isInline: true, styles: [".praxis-studio-page{display:flex;flex-direction:column;gap:12px}.praxis-studio-header,.praxis-studio-presets,.praxis-studio-scaffolder{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px 14px;padding:12px 16px;border-radius:14px;background:var(--card);border:1px solid var(--border)}.praxis-studio-presets{flex-direction:column;align-items:stretch}.praxis-studio-header h1{margin:0;font-size:1.12rem;font-weight:700;color:var(--foreground)}.praxis-studio-header p{margin:2px 0 0;font-size:.78rem;color:var(--muted-foreground)}.praxis-studio-section-label{font-size:.76rem;font-weight:700;color:var(--muted-foreground)}.praxis-studio-preset-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:8px}.praxis-studio-preset-card{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:10px;border:1px solid var(--border);background:var(--background);color:var(--foreground);text-align:left;cursor:pointer}.praxis-studio-preset-card.is-selected{border-color:var(--primary);background:color-mix(in oklab,var(--primary) 10%,var(--card))}.praxis-studio-preset-card__copy{display:flex;flex-direction:column;gap:2px;flex:1 1 auto;min-width:0}.praxis-studio-preset-card__copy strong{font-size:.8rem}.praxis-studio-preset-card__copy small{font-size:.71rem;color:var(--muted-foreground)}.praxis-studio-preset-card__badge{padding:2px 7px;border-radius:999px;font-size:.68rem;font-weight:700;background:var(--secondary);border:1px solid var(--border)}.praxis-studio-input{flex:1 1 220px;height:34px;padding:0 10px;border-radius:8px;border:1px solid var(--border);background:var(--background);color:var(--foreground);font-size:.8rem}.praxis-studio-mode-group{display:flex;flex-wrap:wrap;gap:6px}.praxis-studio-mode-btn,.praxis-studio-btn{display:inline-flex;align-items:center;gap:6px;height:34px;padding:0 11px;border-radius:9px;border:1px solid var(--border);background:var(--secondary);color:var(--foreground);font-size:.76rem;font-weight:600;cursor:pointer}:is(.praxis-studio-mode-btn,.praxis-studio-btn).is-active{border-color:var(--primary);color:var(--primary)}.praxis-studio-btn--primary{background:var(--primary);border-color:var(--primary);color:var(--primary-foreground, #ffffff)}\n"], dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1$1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1$1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],[formArray],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i1$1.NgForm, selector: "form:not([ngNoForm]):not([formGroup]):not([formArray]),ng-form,[ngForm]", inputs: ["ngFormOptions"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "component", type: DynamicPageBuilderComponent, selector: "praxis-dynamic-page-builder", inputs: ["page", "context", "strictValidation", "autoPersist", "enableCustomization", "authoringCapabilities", "showSettingsButton", "showGovernanceToolbar", "governanceToolbarTitle", "pageIdentity", "componentInstanceId", "persistenceOwnerKey", "reconcilePersistedPage", "preparePageForPersistence", "siblingGridGeometrySync", "integrityPolicy", "pageEditorComponent", "componentPaletteAllowedWidgetIds", "componentPaletteAllowedWidgetTags", "componentPaletteExcludedWidgetTags", "componentPaletteAllowedPresetIds", "enableAgenticAuthoring", "allowAutoPersistWithAgentic", "autoPersistPolicy", "agenticAuthoringProvider", "agenticAuthoringModel", "agenticAuthoringApiKey", "agenticAuthoringComponentId", "agenticAuthoringScope", "agenticAuthoringEtag", "agenticAuthoringIncludeLlmDiagnostics", "agenticAuthoringEnableStreaming", "agenticAuthoringLocalApplyOnly", "agenticAuthoringVoiceInputMode", "agenticAuthoringContextHints", "authoringDocument", "showPageLifecycleActions", "canDeleteSavedPage", "pageLifecycleBusy", "pageLifecycleResetRevision"], outputs: ["persistenceChange", "pageChange", "pageAuthoringChange", "widgetEvent", "pageSaveRequested", "agenticAuthoringApplied", "agenticAuthoringSharedRuleHandoff", "pageRestart", "savedPageDeleteRequested", "customizationChange"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
42716
44553
|
}
|
|
42717
44554
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImport: i0, type: PraxisWorkspaceStudioPageComponent, decorators: [{
|
|
42718
44555
|
type: Component,
|
|
@@ -44113,4 +45950,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
|
|
|
44113
45950
|
* Generated bundle index. Do not edit.
|
|
44114
45951
|
*/
|
|
44115
45952
|
|
|
44116
|
-
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 };
|
|
45953
|
+
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, GOVERNED_WIDGET_RUNTIME_INPUT_CAPABILITIES, 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, applyGovernedRuntimeInputs, clearWidgetAiCatalogs, compileUiCompositionPlan, createCorporateGovernedPagePersistenceAdapter, createLocalPageSaveAsAdapter, createSiblingGridGeometryPrepareHook, deriveGovernedPageCapabilities, deterministicClosedPageUuid, getGovernedWidgetRuntimeInputCapabilities, getPageAiCatalog, getWidgetAiCapabilities, inspectLegacyPublishedPagePayload, isComponentDocMeta, preflightUiCompositionPlan, preflightUiCompositionPlanResources, projectWidgetPageToClosedAuthoringDefinition, projectWidgetPageToClosedAuthoringResult, providePageBuilderWidgetAiCatalogs, providePraxisAllWidgetMetadata, providePraxisPageBuilderMetadata, providePraxisPageBuilderWidgets, registerWidgetAiCatalog, registerWidgetAiCatalogs, resolveUiCompositionPlanTemplate, resolveWorkspaceText, sanitizeWidgetPageDefinition, syncSiblingGridGeometry, validateChartPageWidget, validateExpansionPageWidget, validateListPageWidget, validateRichContentPageWidget, validateStepperPageWidget, validateTabsPageWidget, validateUiCompositionPlan, verifyUiCompositionAuthoringSource };
|