@praxisui/settings-panel 10.0.0-rc.6 → 10.0.0-rc.60

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -15,9 +15,9 @@ import * as i4$1 from '@angular/material/tooltip';
15
15
  import { MatTooltipModule } from '@angular/material/tooltip';
16
16
  import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
17
17
  import { filter, switchMap, debounceTime, distinctUntilChanged } from 'rxjs/operators';
18
- import { isObservable, firstValueFrom, of, from, Subject, ReplaySubject, take, takeUntil, BehaviorSubject } from 'rxjs';
18
+ import { firstValueFrom, isObservable, of, from, Subject, ReplaySubject, take, takeUntil, BehaviorSubject } from 'rxjs';
19
19
  import * as i1$2 from '@praxisui/core';
20
- import { providePraxisI18n, PraxisI18nService, PraxisIconButtonComponent, PraxisIconDirective, SETTINGS_PANEL_DATA as SETTINGS_PANEL_DATA$1, PraxisLayerScaleStyleService, SETTINGS_PANEL_BRIDGE, SURFACE_DRAWER_BRIDGE, SURFACE_DRAWER_CONTENT_DATA, SURFACE_DRAWER_REF, GlobalConfigService, FieldControlType, IconPickerService, LoggerService, ComponentMetadataRegistry } from '@praxisui/core';
20
+ import { providePraxisI18n, PraxisI18nService, ApiConfigStorage, ASYNC_CONFIG_STORAGE, PraxisIconButtonComponent, PraxisIconDirective, SETTINGS_PANEL_DATA as SETTINGS_PANEL_DATA$1, PraxisLayerScaleStyleService, SETTINGS_PANEL_BRIDGE, SURFACE_DRAWER_BRIDGE, SURFACE_DRAWER_CONTENT_DATA, SURFACE_DRAWER_REF, GlobalConfigService, FieldControlType, IconPickerService, LoggerService, ComponentMetadataRegistry } from '@praxisui/core';
21
21
  import { ConfirmDialogComponent } from '@praxisui/dynamic-fields';
22
22
  import * as i1$1 from '@angular/cdk/overlay';
23
23
  import { ComponentPortal } from '@angular/cdk/portal';
@@ -35,6 +35,8 @@ const PRAXIS_SETTINGS_PANEL_GLOBAL_CONFIG_EDITOR_PT_BR = {
35
35
  'Cache & Persistence': 'Cache & Persistência',
36
36
  Table: 'Tabela',
37
37
  Dialog: 'Dialog',
38
+ 'Dynamic Pages': 'Páginas Dinâmicas',
39
+ 'Global presets for layout, theme, widget shell and canvas grid': 'Presets globais de layout, tema, moldura de widgets e grade de canvas',
38
40
  'Settings saved': 'Configurações salvas',
39
41
  'Save failed.': 'Falha ao salvar configurações.',
40
42
  'Global settings': 'Configurações globais',
@@ -220,6 +222,8 @@ const PRAXIS_SETTINGS_PANEL_GLOBAL_CONFIG_EDITOR_PT_BR = {
220
222
  'Toolbar visível': 'Toolbar visível',
221
223
  'Cache & Persistência': 'Cache & Persistence',
222
224
  Tabela: 'Table',
225
+ 'Páginas Dinâmicas': 'Páginas Dinâmicas',
226
+ 'Definido pela página (sem preset forçado)': 'Definido pela página (sem preset forçado)',
223
227
  Salvar: 'Save',
224
228
  Cancelar: 'Cancel',
225
229
  Redefinir: 'Reset',
@@ -230,6 +234,8 @@ const PRAXIS_SETTINGS_PANEL_GLOBAL_CONFIG_EDITOR_EN_US = {
230
234
  'Cache & Persistence': 'Cache & Persistence',
231
235
  Table: 'Table',
232
236
  Dialog: 'Dialog',
237
+ 'Dynamic Pages': 'Dynamic Pages',
238
+ 'Global presets for layout, theme, widget shell and canvas grid': 'Global presets for layout, theme, widget shell and canvas grid',
233
239
  'Settings saved': 'Settings saved',
234
240
  'Save failed.': 'Save failed.',
235
241
  'Global settings': 'Global settings',
@@ -415,6 +421,8 @@ const PRAXIS_SETTINGS_PANEL_GLOBAL_CONFIG_EDITOR_EN_US = {
415
421
  'Toolbar visível': 'Toolbar visible',
416
422
  'Cache & Persistência': 'Cache & Persistence',
417
423
  Tabela: 'Table',
424
+ 'Páginas Dinâmicas': 'Dynamic Pages',
425
+ 'Definido pela página (sem preset forçado)': 'Page-defined (no forced preset)',
418
426
  Salvar: 'Save',
419
427
  Cancelar: 'Cancel',
420
428
  Redefinir: 'Reset',
@@ -450,6 +458,22 @@ const PRAXIS_SETTINGS_PANEL_EN_US = {
450
458
  Back: 'Back',
451
459
  Apply: 'Apply',
452
460
  'Save & Close': 'Save & Close',
461
+ 'Context navigation': 'Context navigation',
462
+ 'Previous item': 'Previous item',
463
+ 'Next item': 'Next item',
464
+ 'Editing target': 'Editing target',
465
+ 'Editing modes': 'Editing modes',
466
+ 'Resize panel': 'Resize panel',
467
+ 'Scope: Personal': 'Scope: Personal',
468
+ 'Scope: Tenant': 'Scope: Organization (Tenant)',
469
+ 'Switch to tenant scope': 'Switch to tenant scope',
470
+ 'Switch to personal scope': 'Switch to personal scope',
471
+ 'Reset to tenant baseline': 'Reset to tenant baseline',
472
+ 'Dismiss error': 'Dismiss error',
473
+ 'Save failed: sensitive criteria cannot be shared at tenant scope.': 'Sensitive criteria cannot be published to shared tenant scope. Remove restricted criteria or save at your personal scope.',
474
+ 'Save failed: configuration was modified by another user. Reload and try again.': 'Revision conflict detected (ETag): the configuration changed concurrently. Reload before retrying.',
475
+ 'Save failed: you do not have permission to publish at this scope.': 'Insufficient permissions to publish changes at this configuration scope.',
476
+ 'Save failed: unable to persist configuration.': 'Unable to persist the configuration. Please try again shortly.',
453
477
  };
454
478
 
455
479
  const PRAXIS_SETTINGS_PANEL_PT_BR = {
@@ -482,6 +506,22 @@ const PRAXIS_SETTINGS_PANEL_PT_BR = {
482
506
  Back: 'Voltar',
483
507
  Apply: 'Aplicar',
484
508
  'Save & Close': 'Salvar e fechar',
509
+ 'Context navigation': 'Navegação contextual',
510
+ 'Previous item': 'Item anterior',
511
+ 'Next item': 'Próximo item',
512
+ 'Editing target': 'Item em edição',
513
+ 'Editing modes': 'Modos de edição',
514
+ 'Resize panel': 'Redimensionar painel',
515
+ 'Scope: Personal': 'Escopo: Pessoal',
516
+ 'Scope: Tenant': 'Escopo: Organização (Tenant)',
517
+ 'Switch to tenant scope': 'Publicar para organização (Tenant)',
518
+ 'Switch to personal scope': 'Salvar apenas no meu perfil',
519
+ 'Reset to tenant baseline': 'Restaurar padrão da organização',
520
+ 'Dismiss error': 'Dispensar aviso',
521
+ 'Save failed: sensitive criteria cannot be shared at tenant scope.': 'Critérios sensíveis não podem ser publicados no escopo compartilhado da organização (Tenant). Remova os critérios restritos ou salve no seu escopo pessoal.',
522
+ 'Save failed: configuration was modified by another user. Reload and try again.': 'Conflito de revisão (ETag): outra alteração foi salva antes. Recarregue a configuração e tente novamente.',
523
+ 'Save failed: you do not have permission to publish at this scope.': 'Sem permissão para publicar alterações neste escopo de configuração.',
524
+ 'Save failed: unable to persist configuration.': 'Não foi possível salvar a configuração. Tente novamente em instantes.',
485
525
  };
486
526
 
487
527
  const PRAXIS_SETTINGS_PANEL_I18N_NAMESPACE = 'praxis-settings-panel';
@@ -543,6 +583,12 @@ function parsePixelWidth(value) {
543
583
  return Number.isFinite(parsed) ? parsed : null;
544
584
  }
545
585
 
586
+ function isScopeErrorAwareStorage(candidate) {
587
+ if (!candidate || typeof candidate !== 'object')
588
+ return false;
589
+ const record = candidate;
590
+ return 'writeScope' in record || 'saveError$' in record;
591
+ }
546
592
  const DEFAULT_DIAGNOSTICS = {
547
593
  showStatusMessage: true,
548
594
  showDisabledReason: true,
@@ -564,6 +610,10 @@ class SettingsPanelComponent {
564
610
  expanded = false;
565
611
  interactionActive = true;
566
612
  previewTarget;
613
+ contextNavigation;
614
+ configStorageKey;
615
+ showWriteScope = true;
616
+ canSwitchWriteScope = true;
567
617
  previewing = false;
568
618
  previewElement = null;
569
619
  previewScroll = [];
@@ -598,6 +648,16 @@ class SettingsPanelComponent {
598
648
  collapsedWidthBeforeExpand = null;
599
649
  destroyRef = inject(DestroyRef);
600
650
  i18n = inject(PraxisI18nService);
651
+ directApiStorage = inject(ApiConfigStorage, { optional: true });
652
+ asyncConfigStorage = inject(ASYNC_CONFIG_STORAGE, {
653
+ optional: true,
654
+ });
655
+ scopeErrorStorage = this.asyncConfigStorage
656
+ ? isScopeErrorAwareStorage(this.asyncConfigStorage)
657
+ ? this.asyncConfigStorage
658
+ : null
659
+ : this.directApiStorage;
660
+ storageSaveError = signal(null, ...(ngDevMode ? [{ debugName: "storageSaveError" }] : /* istanbul ignore next */ []));
601
661
  applyActionLabel = this.actionLabel('Apply');
602
662
  saveActionLabel = this.actionLabel('Save & Close');
603
663
  contentHost;
@@ -607,10 +667,114 @@ class SettingsPanelComponent {
607
667
  this.elementRef = elementRef;
608
668
  this.overlayContainer = overlayContainer;
609
669
  this.destroyRef.onDestroy(() => this.restorePreviewPage());
670
+ this.scopeErrorStorage?.saveError$
671
+ ?.pipe(takeUntilDestroyed(this.destroyRef))
672
+ .subscribe((err) => {
673
+ this.storageSaveError.set(err ?? null);
674
+ this.cdr.markForCheck();
675
+ });
610
676
  }
611
677
  get canInspectPreview() {
612
678
  return !!this.previewTarget && this.interactionActive && this.isValid && !this.isBusy;
613
679
  }
680
+ get hasContextNavigation() {
681
+ const nav = this.contextNavigation;
682
+ return !!(nav && ((nav.targets && nav.targets.length > 0) || (nav.modes && nav.modes.length > 0)));
683
+ }
684
+ get activeTargetIndex() {
685
+ const targets = this.contextNavigation?.targets;
686
+ const activeId = this.contextNavigation?.activeTargetId;
687
+ if (!targets?.length || !activeId)
688
+ return -1;
689
+ return targets.findIndex((target) => target.id === activeId);
690
+ }
691
+ get canSelectPreviousTarget() {
692
+ return this.interactionActive && !this.isBusy && this.activeTargetIndex > 0;
693
+ }
694
+ get canSelectNextTarget() {
695
+ const targets = this.contextNavigation?.targets;
696
+ const idx = this.activeTargetIndex;
697
+ return this.interactionActive && !this.isBusy && !!targets && idx >= 0 && idx < targets.length - 1;
698
+ }
699
+ selectPreviousTarget() {
700
+ const targets = this.contextNavigation?.targets;
701
+ const idx = this.activeTargetIndex;
702
+ if (!targets || idx <= 0)
703
+ return;
704
+ this.selectContextTarget(targets[idx - 1].id);
705
+ }
706
+ selectNextTarget() {
707
+ const targets = this.contextNavigation?.targets;
708
+ const idx = this.activeTargetIndex;
709
+ if (!targets || idx < 0 || idx >= targets.length - 1)
710
+ return;
711
+ this.selectContextTarget(targets[idx + 1].id);
712
+ }
713
+ selectContextTarget(targetId, selectElement) {
714
+ const nav = this.contextNavigation;
715
+ if (!nav?.onSelectTarget ||
716
+ !targetId ||
717
+ targetId === nav.activeTargetId ||
718
+ this.isBusy ||
719
+ !this.interactionActive ||
720
+ !this.isValid) {
721
+ if (selectElement && nav?.activeTargetId) {
722
+ selectElement.value = nav.activeTargetId;
723
+ }
724
+ this.cdr.markForCheck();
725
+ return;
726
+ }
727
+ if (this.canApply) {
728
+ this.onApply();
729
+ if (!this.isValid || this.isBusy) {
730
+ if (selectElement && nav.activeTargetId) {
731
+ selectElement.value = nav.activeTargetId;
732
+ }
733
+ this.cdr.markForCheck();
734
+ return;
735
+ }
736
+ if (this.hasAppliedChanges) {
737
+ this.isDirty = false;
738
+ }
739
+ }
740
+ nav.onSelectTarget(targetId);
741
+ if (selectElement &&
742
+ this.contextNavigation?.activeTargetId &&
743
+ selectElement.value !== this.contextNavigation.activeTargetId) {
744
+ selectElement.value = this.contextNavigation.activeTargetId;
745
+ }
746
+ this.cdr.markForCheck();
747
+ }
748
+ selectContextMode(modeId) {
749
+ const nav = this.contextNavigation;
750
+ if (!nav?.onSelectMode || !modeId || modeId === nav.activeModeId || this.isBusy || !this.interactionActive) {
751
+ return;
752
+ }
753
+ const mode = nav.modes?.find((item) => item.id === modeId);
754
+ if (mode?.disabled) {
755
+ return;
756
+ }
757
+ const currentMode = nav.modes?.find((item) => item.id === nav.activeModeId);
758
+ const sharesEditorGroup = Boolean(mode?.editorGroup && currentMode?.editorGroup && mode.editorGroup === currentMode.editorGroup);
759
+ if (!sharesEditorGroup) {
760
+ if (!this.isValid) {
761
+ this.cdr.markForCheck();
762
+ return;
763
+ }
764
+ if (this.canApply) {
765
+ this.onApply();
766
+ if (!this.isValid || this.isBusy) {
767
+ this.cdr.markForCheck();
768
+ return;
769
+ }
770
+ if (this.hasAppliedChanges) {
771
+ this.isDirty = false;
772
+ }
773
+ }
774
+ }
775
+ nav.onSelectMode(modeId);
776
+ this.cdr.markForCheck();
777
+ }
614
778
  showPreview() {
615
779
  if (!this.canInspectPreview)
616
780
  return;
@@ -756,6 +920,91 @@ class SettingsPanelComponent {
756
920
  }
757
921
  return this.tx('No changes');
758
922
  }
923
+ get activeWriteScope() {
924
+ const scopeSource = this.scopeErrorStorage?.writeScope;
925
+ if (!scopeSource)
926
+ return null;
927
+ return typeof scopeSource === 'function' ? scopeSource() : scopeSource;
928
+ }
929
+ get showWriteScopeControls() {
930
+ return this.showWriteScope && this.activeWriteScope !== null;
931
+ }
932
+ get canToggleWriteScope() {
933
+ return (this.canSwitchWriteScope &&
934
+ this.interactionActive &&
935
+ !this.isBusy &&
936
+ typeof this.scopeErrorStorage?.setWriteScope === 'function');
937
+ }
938
+ get canResetPersonalOverride() {
939
+ return (this.activeWriteScope === 'user' &&
940
+ Boolean(this.configStorageKey) &&
941
+ !this.isBusy &&
942
+ typeof this.scopeErrorStorage?.deletePersonalOverrideAndReloadTenantBaseline === 'function');
943
+ }
944
+ get writeScopeLabel() {
945
+ return this.activeWriteScope === 'tenant'
946
+ ? this.tx('Scope: Tenant')
947
+ : this.tx('Scope: Personal');
948
+ }
949
+ get writeScopeToggleLabel() {
950
+ return this.activeWriteScope === 'tenant'
951
+ ? this.tx('Switch to personal scope')
952
+ : this.tx('Switch to tenant scope');
953
+ }
954
+ get formattedSaveErrorMessage() {
955
+ const err = this.storageSaveError();
956
+ if (!err)
957
+ return '';
958
+ if (err.errorCode === 'SHARED_CONFIG_SENSITIVE_CRITERIA_DENIED' || err.status === 422) {
959
+ return this.tx('Save failed: sensitive criteria cannot be shared at tenant scope.');
960
+ }
961
+ if (err.status === 409 || err.status === 412) {
962
+ return this.tx('Save failed: configuration was modified by another user. Reload and try again.');
963
+ }
964
+ if (err.status === 403) {
965
+ return this.tx('Save failed: you do not have permission to publish at this scope.');
966
+ }
967
+ return this.tx('Save failed: unable to persist configuration.');
968
+ }
969
+ toggleWriteScope() {
970
+ if (!this.canToggleWriteScope)
971
+ return;
972
+ if (typeof this.scopeErrorStorage?.toggleWriteScope === 'function') {
973
+ this.scopeErrorStorage.toggleWriteScope();
974
+ }
975
+ else {
976
+ const next = this.activeWriteScope === 'tenant' ? 'user' : 'tenant';
977
+ this.scopeErrorStorage?.setWriteScope?.(next);
978
+ }
979
+ this.scopeErrorStorage?.clearSaveError?.();
980
+ this.cdr.markForCheck();
981
+ }
982
+ switchToPersonalScopeFromError() {
983
+ this.scopeErrorStorage?.setWriteScope?.('user');
984
+ this.dismissSaveError();
985
+ }
986
+ dismissSaveError() {
987
+ this.scopeErrorStorage?.clearSaveError?.();
988
+ this.storageSaveError.set(null);
989
+ this.cdr.markForCheck();
990
+ }
991
+ resetPersonalOverrideToTenant() {
992
+ const key = this.configStorageKey;
993
+ const fn = this.scopeErrorStorage?.deletePersonalOverrideAndReloadTenantBaseline;
994
+ if (!key || typeof fn !== 'function' || this.isBusy)
995
+ return;
996
+ this.isBusy = true;
997
+ this.dismissSaveError();
998
+ firstValueFrom(fn.call(this.scopeErrorStorage, key))
999
+ .then(() => {
1000
+ this.contentRef?.instance?.reset?.();
1001
+ })
1002
+ .catch(() => { })
1003
+ .finally(() => {
1004
+ this.isBusy = false;
1005
+ this.cdr.markForCheck();
1006
+ });
1007
+ }
759
1008
  tx(text, params) {
760
1009
  const translated = this.i18n.t(text, params, text, PRAXIS_SETTINGS_PANEL_I18N_NAMESPACE);
761
1010
  return translated?.trim() ? translated : text;
@@ -873,6 +1122,7 @@ class SettingsPanelComponent {
873
1122
  onSave() {
874
1123
  if (!this.canSave)
875
1124
  return;
1125
+ this.dismissSaveError();
876
1126
  const instance = this.contentRef?.instance;
877
1127
  const result = instance?.onSave?.();
878
1128
  if (isObservable(result)) {
@@ -1148,7 +1398,7 @@ class SettingsPanelComponent {
1148
1398
  .afterClosed();
1149
1399
  }
1150
1400
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.14", ngImport: i0, type: SettingsPanelComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i1.MatDialog }, { token: i0.ElementRef }, { token: i1$1.OverlayContainer }], target: i0.ɵɵFactoryTarget.Component });
1151
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.14", type: SettingsPanelComponent, isStandalone: true, selector: "praxis-settings-panel", host: { listeners: { "document:keydown": "handleKeydown($event)", "document:pointermove": "onDocumentPointerMove($event)", "document:pointerup": "onDocumentPointerEnd($event)", "document:pointercancel": "onDocumentPointerEnd($event)" } }, providers: [providePraxisSettingsPanelI18n()], viewQueries: [{ propertyName: "focusTrap", first: true, predicate: CdkTrapFocus, descendants: true }, { propertyName: "contentHost", first: true, predicate: ["contentHost"], descendants: true, read: ViewContainerRef, static: true }], ngImport: i0, template: "<div\n class=\"settings-panel\"\n data-testid=\"settings-panel-root\"\n [class.expanded]=\"expanded\"\n [class.settings-panel--preview]=\"previewing\"\n [class.is-resizable]=\"showResizeHandle\"\n [ngStyle]=\"panelInlineStyles\"\n role=\"dialog\"\n [attr.aria-modal]=\"interactionActive ? 'true' : null\"\n [attr.aria-hidden]=\"interactionActive ? null : 'true'\"\n [attr.inert]=\"interactionActive ? null : ''\"\n [attr.aria-labelledby]=\"previewing ? titleId + '-preview' : titleId\"\n [cdkTrapFocus]=\"interactionActive\"\n [cdkTrapFocusAutoCapture]=\"true\"\n >\n @if (showResizeHandle && !previewing) {\n <div\n class=\"settings-panel__resize-handle\"\n role=\"separator\"\n tabindex=\"0\"\n aria-orientation=\"vertical\"\n [attr.aria-label]=\"resizeHandleLabel\"\n (pointerdown)=\"onResizeHandlePointerDown($event)\"\n (keydown)=\"onResizeHandleKeydown($event)\"\n ></div>\n }\n @if (previewing) {\n <section class=\"settings-panel-preview-bar\" data-testid=\"settings-panel-preview-bar\">\n <div><strong [id]=\"titleId + '-preview'\">{{ tx('Page preview') }}</strong><p>{{ tx('Inspect the result. Return to keep editing; nothing is saved here.') }}</p></div>\n <button mat-flat-button type=\"button\" data-testid=\"settings-panel-return\" (click)=\"returnFromPreview()\">{{ tx('Back to settings') }}</button>\n </section>\n }\n <header class=\"settings-panel-header\" [hidden]=\"previewing\">\n <h2 class=\"settings-panel-title\" [id]=\"titleId\">\n @if (titleIcon) {\n <mat-icon class=\"title-icon\" [praxisIcon]=\"titleIcon\"></mat-icon>\n }\n <span>{{ title }}</span>\n </h2>\n <span class=\"spacer\"></span>\n @if (previewTarget) {\n <button mat-stroked-button type=\"button\" data-testid=\"settings-panel-preview\" [disabled]=\"!canInspectPreview\" (click)=\"showPreview()\">\n <mat-icon aria-hidden=\"true\" [praxisIcon]=\"'visibility'\"></mat-icon>{{ tx('View result') }}\n </button>\n }\n <button\n [praxisIconButton]=\"expanded ? 'close_fullscreen' : 'open_in_full'\"\n size=\"compact\"\n type=\"button\"\n data-testid=\"settings-panel-toggle-expand\"\n [attr.aria-label]=\"expanded ? tx('Collapse panel') : tx('Expand panel')\"\n [attr.aria-expanded]=\"expanded\"\n [matTooltip]=\"expanded ? tx('Collapse panel') : tx('Expand panel')\"\n (click)=\"toggleExpand()\"\n ></button>\n <button\n praxisIconButton=\"close\"\n size=\"compact\"\n type=\"button\"\n data-testid=\"settings-panel-close-icon\"\n [attr.aria-label]=\"tx('Close')\"\n [matTooltip]=\"tx('Close')\"\n (click)=\"onCancel()\"\n ></button>\n </header>\n @if (showStatusMessage && !previewing) {\n <div\n class=\"settings-panel-status\"\n [attr.data-status]=\"statusTone\"\n role=\"status\"\n aria-live=\"polite\"\n >\n <mat-icon\n aria-hidden=\"true\"\n [praxisIcon]=\"\n statusTone === 'dirty' || statusTone === 'invalid'\n ? 'warning'\n : statusTone === 'saved'\n ? 'check_circle'\n : statusTone === 'busy'\n ? 'autorenew'\n : 'info'\n \"\n ></mat-icon>\n <span>{{ statusMessage }}</span>\n </div>\n }\n <div class=\"settings-panel-body\" [hidden]=\"previewing\">\n <ng-template #contentHost></ng-template>\n </div>\n <footer class=\"settings-panel-footer\" [hidden]=\"previewing\">\n <button\n mat-button\n type=\"button\"\n data-testid=\"settings-panel-reset\"\n (mousedown)=\"$event.stopPropagation()\"\n (click)=\"$event.stopPropagation(); onReset()\"\n [disabled]=\"isBusy\"\n >\n <mat-icon aria-hidden=\"true\" [praxisIcon]=\"'restart_alt'\"></mat-icon>\n <span>{{ tx('Reset') }}</span>\n </button>\n <span class=\"spacer\"></span>\n <button\n mat-button\n type=\"button\"\n data-testid=\"settings-panel-cancel\"\n (mousedown)=\"$event.stopPropagation()\"\n (click)=\"$event.stopPropagation(); onCancel()\"\n [disabled]=\"isBusy\"\n >\n <mat-icon aria-hidden=\"true\" [praxisIcon]=\"'close'\"></mat-icon>\n <span>{{ tx('Cancel') }}</span>\n </button>\n <button\n mat-stroked-button\n type=\"button\"\n data-testid=\"settings-panel-apply\"\n (mousedown)=\"$event.stopPropagation()\"\n (click)=\"$event.stopPropagation(); onApply()\"\n [disabled]=\"!canApply\"\n [matTooltip]=\"applySaveDisabledReason\"\n [matTooltipDisabled]=\"canApply || !diagnostics.showDisabledReason\"\n [attr.aria-busy]=\"isBusy\"\n [attr.aria-label]=\"applyActionLabel || 'Apply'\"\n >\n @if (showBusyIndicator) {\n <mat-progress-spinner\n mode=\"indeterminate\"\n diameter=\"20\"\n ></mat-progress-spinner>\n }\n @if (!showBusyIndicator) {\n <mat-icon aria-hidden=\"true\" [praxisIcon]=\"'done'\"></mat-icon>\n <span class=\"settings-panel-action-label settings-panel-action-label--apply\">{{ applyActionLabel }}</span>\n }\n </button>\n <button\n mat-flat-button\n color=\"primary\"\n type=\"button\"\n data-testid=\"settings-panel-save\"\n (mousedown)=\"$event.stopPropagation()\"\n (click)=\"$event.stopPropagation(); onSave()\"\n [disabled]=\"!canSave\"\n [matTooltip]=\"applySaveDisabledReason\"\n [matTooltipDisabled]=\"canSave || !diagnostics.showDisabledReason\"\n [attr.aria-busy]=\"isBusy\"\n [attr.aria-label]=\"saveActionLabel || 'Save & Close'\"\n >\n @if (showBusyIndicator) {\n <mat-progress-spinner\n mode=\"indeterminate\"\n diameter=\"20\"\n ></mat-progress-spinner>\n }\n @if (!showBusyIndicator) {\n <mat-icon aria-hidden=\"true\" [praxisIcon]=\"'save'\"></mat-icon>\n <span class=\"settings-panel-action-label settings-panel-action-label--save\">{{ saveActionLabel }}</span>\n }\n </button>\n </footer>\n</div>\n", styles: ["@charset \"UTF-8\";praxis-settings-panel{display:block;height:100%;width:100%;min-width:0;flex:1 1 auto;box-sizing:border-box}praxis-settings-panel .settings-panel{position:relative;container:settings-panel-shell/inline-size;--pfx-settings-panel-surface-container: var( --md-sys-color-surface-container, #ffffff );--pfx-settings-panel-surface-container-high: var( --md-sys-color-surface-container-high, #f7f7f7 );--pfx-settings-panel-surface-container-low: var( --md-sys-color-surface-container-low, #f2f4f7 );--pfx-settings-panel-surface: var(--md-sys-color-surface, #ffffff);--pfx-settings-panel-on-surface: var(--md-sys-color-on-surface, #111827);--pfx-settings-panel-on-surface-variant: var( --md-sys-color-on-surface-variant, rgba(17, 24, 39, .72) );--pfx-settings-panel-outline: var( --md-sys-color-outline, rgba(15, 23, 42, .24) );--pfx-settings-panel-outline-variant: var( --md-sys-color-outline-variant, rgba(15, 23, 42, .12) );--pfx-settings-panel-primary: var(--md-sys-color-primary, #2563eb);--pfx-settings-panel-primary-container: var( --md-sys-color-primary-container, rgba(37, 99, 235, .14) );--pfx-settings-panel-on-primary-container: var( --md-sys-color-on-primary-container, #0f172a );--pfx-settings-panel-secondary: var( --md-sys-color-secondary, var(--pfx-settings-panel-primary) );--pfx-settings-panel-error: var(--md-sys-color-error, #b3261e);--pfx-settings-panel-error-container: var( --md-sys-color-error-container, rgba(179, 38, 30, .14) );display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto 1fr auto;grid-template-areas:\"header\" \"status\" \"body\" \"footer\";height:100%;background:var(--pfx-settings-panel-surface-container);color:var(--pfx-settings-panel-on-surface);border-left:1px solid var(--pfx-settings-panel-outline-variant);width:100%;max-width:100%;min-width:0;box-sizing:border-box;box-shadow:var(--pfx-settings-panel-elevation, var(--md-sys-elevation-level2, 0 8px 24px rgba(0, 0, 0, .16)));overflow:hidden}praxis-settings-panel .settings-panel__resize-handle{position:absolute;inset:0 auto 0 0;width:12px;cursor:col-resize;touch-action:none;z-index:3;outline:none}praxis-settings-panel .settings-panel__resize-handle:before{content:\"\";position:absolute;inset:0 auto 0 4px;width:2px;background:transparent;transition:background-color var(--pfx-side-panel-motion-duration, .16s) ease,opacity var(--pfx-side-panel-motion-duration, .16s) ease;opacity:0}praxis-settings-panel .settings-panel.is-resizable:hover .settings-panel__resize-handle:before,praxis-settings-panel .settings-panel__resize-handle:focus-visible:before{opacity:1;background:var(--pfx-settings-panel-outline)}praxis-settings-panel .settings-panel-header{grid-area:header;display:flex;align-items:center;gap:var(--pfx-settings-panel-header-gap, 8px);padding:12px var(--pfx-settings-panel-header-padding-x, 20px);min-height:var(--pfx-settings-panel-header-height, 64px);border-bottom:1px solid var(--pfx-settings-panel-outline-variant);background:var(--pfx-settings-panel-surface-container-high);box-shadow:var(--pfx-settings-panel-header-shadow, var(--md-sys-elevation-level1, 0 2px 6px rgba(0, 0, 0, .08)));flex-shrink:0;min-width:0;max-width:100%}praxis-settings-panel .settings-panel-header .spacer{flex:1 1 auto;min-width:0}praxis-settings-panel .settings-panel-status{grid-area:status;display:flex;align-items:center;gap:8px;min-height:36px;padding:6px var(--pfx-settings-panel-status-padding-x, 20px);border-bottom:1px solid var(--pfx-settings-panel-outline-variant);background:var(--pfx-settings-panel-surface-container-high);color:var(--pfx-settings-panel-on-surface);font-size:.85rem;font-weight:500;min-width:0;max-width:100%}praxis-settings-panel .settings-panel-status mat-icon{width:18px;height:18px;font-size:18px}praxis-settings-panel .settings-panel-status[data-status=dirty],praxis-settings-panel .settings-panel-status[data-status=invalid]{color:var(--pfx-settings-panel-error);background:color-mix(in srgb,var(--pfx-settings-panel-error-container) 30%,var(--pfx-settings-panel-surface-container-high))}praxis-settings-panel .settings-panel-status[data-status=saved]{color:var(--pfx-settings-panel-primary);background:color-mix(in srgb,var(--pfx-settings-panel-primary-container) 28%,var(--pfx-settings-panel-surface-container-high))}praxis-settings-panel .settings-panel-body{grid-area:body;overflow-y:auto;overflow-x:hidden;scroll-padding-top:var(--pfx-settings-panel-scroll-padding-start, 16px);scroll-padding-bottom:var(--pfx-settings-panel-scroll-padding-end, 88px);min-height:0;padding:var(--pfx-settings-panel-body-padding, 8px 16px 24px);background:var(--pfx-settings-panel-surface);display:flex;flex-direction:column;min-width:0;max-width:100%}praxis-settings-panel .settings-panel-body>*{min-width:0;max-width:100%}praxis-settings-panel .settings-panel-content{display:block;min-width:0;max-width:100%}praxis-settings-panel .settings-panel-content>*{min-width:0;max-width:100%;box-sizing:border-box}praxis-settings-panel .settings-panel-footer{grid-area:footer;border-top:1px solid var(--pfx-settings-panel-outline-variant);background:var(--pfx-settings-panel-surface-container-high);box-shadow:var(--pfx-settings-panel-footer-shadow, var(--md-sys-elevation-level1, 0 -2px 6px rgba(0, 0, 0, .08)));display:flex;align-items:center;flex-wrap:wrap;padding:var(--pfx-settings-panel-footer-padding, 12px 20px);column-gap:var(--pfx-settings-panel-footer-gap, 12px);row-gap:8px;flex-shrink:0;min-width:0;max-width:100%}praxis-settings-panel .spacer{flex:1}praxis-settings-panel .settings-panel-title{display:inline-flex;align-items:center;flex:1 1 auto;gap:var(--pfx-settings-panel-title-gap, 8px);font-weight:700;line-height:1.2;letter-spacing:.2px;margin:0;min-width:0;overflow:visible;white-space:normal}praxis-settings-panel .settings-panel-title span{min-width:0;overflow:visible;white-space:normal}praxis-settings-panel .settings-panel-title mat-icon{color:var(--pfx-settings-panel-primary)}praxis-settings-panel .settings-panel-title .title-icon{width:20px;height:20px;font-size:20px}praxis-settings-panel .settings-panel-footer button{display:inline-flex;align-items:center}praxis-settings-panel .settings-panel-footer button .mat-icon{flex:0 0 20px;font-size:20px;width:20px;height:20px;line-height:1;display:inline-flex;align-items:center;justify-content:center;overflow:hidden}praxis-settings-panel .settings-panel-footer .mat-button-wrapper{display:inline-flex;align-items:center;gap:var(--pfx-settings-panel-button-gap, 8px)}praxis-settings-panel .settings-panel-footer .mat-progress-spinner{margin-right:8px}praxis-settings-panel .settings-panel-footer .mat-flat-button[color=primary]{font-weight:600}praxis-settings-panel .settings-panel-footer .mdc-button__label{display:inline-flex;align-items:center;gap:var(--pfx-settings-panel-button-gap, 8px);line-height:1}praxis-settings-panel .settings-panel-footer .mdc-button__label>span{display:inline-flex;align-items:center;line-height:1}praxis-settings-panel .settings-panel-footer .mdc-button__label .mat-icon{display:inline-flex;align-items:center;justify-content:center;line-height:1}@container settings-panel-shell (max-width: 520px){praxis-settings-panel .settings-panel-footer{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:stretch;padding:10px 12px;column-gap:8px}praxis-settings-panel .settings-panel-footer .spacer{display:none}praxis-settings-panel .settings-panel-footer button{justify-content:center;width:100%;min-width:0;min-height:44px;height:auto;padding:8px}praxis-settings-panel .settings-panel-action-label{white-space:normal;overflow-wrap:anywhere;text-align:center}praxis-settings-panel .settings-panel-footer .mdc-button__label{min-width:0;max-width:100%}praxis-settings-panel .settings-panel-footer .mdc-button__label>span{min-width:0;line-height:1.25}}@container settings-panel-shell (max-width: 280px){praxis-settings-panel .settings-panel-footer{grid-template-columns:minmax(0,1fr)}}praxis-settings-panel .settings-panel .mat-divider{background-color:var(--pfx-settings-panel-outline-variant)!important}praxis-settings-panel .settings-panel .mat-expansion-panel{background:var(--pfx-settings-panel-surface-container)!important;border:1px solid var(--pfx-settings-panel-outline-variant);border-radius:var(--md-sys-shape-corner-medium, 12px);box-shadow:var(--md-sys-elevation-level1, 0 2px 8px rgba(0, 0, 0, .08));color:var(--pfx-settings-panel-on-surface)}praxis-settings-panel .settings-panel .mat-expansion-panel-header{background:var(--pfx-settings-panel-surface-container)!important;color:var(--pfx-settings-panel-on-surface)}praxis-settings-panel .settings-panel .mat-expansion-panel-header .mat-content{color:var(--pfx-settings-panel-on-surface);flex-wrap:wrap;gap:4px 12px;min-width:0;overflow:visible}praxis-settings-panel .settings-panel .mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:hover{background:color-mix(in srgb,var(--pfx-settings-panel-surface-container-high) 84%,var(--pfx-settings-panel-primary) 16%)}praxis-settings-panel .settings-panel .mat-expansion-panel.mat-expanded>.mat-expansion-panel-header{background:var(--pfx-settings-panel-surface-container-high)!important}praxis-settings-panel .settings-panel .mat-expansion-panel-header mat-icon,praxis-settings-panel .settings-panel .mat-expansion-panel-header .mat-icon{color:var(--pfx-settings-panel-on-surface)!important}praxis-settings-panel .settings-panel .mat-expansion-panel-header .mat-expansion-panel-header-title,praxis-settings-panel .settings-panel .mat-expansion-panel-header .mat-expansion-panel-header-description{color:var(--pfx-settings-panel-on-surface);min-width:0;overflow:visible;white-space:normal}praxis-settings-panel .settings-panel .mat-expansion-panel-header .mat-expansion-panel-header-description{color:var(--pfx-settings-panel-on-surface-variant);flex-wrap:wrap;gap:8px}praxis-settings-panel .settings-panel .mat-expansion-panel-header .mat-expansion-panel-header-title>*,praxis-settings-panel .settings-panel .mat-expansion-panel-header .mat-expansion-panel-header-description>*{color:inherit}praxis-settings-panel .settings-panel .mat-expansion-panel-header .mat-expansion-panel-header-title small,praxis-settings-panel .settings-panel .mat-expansion-panel-header .mat-expansion-panel-header-description small{color:var(--pfx-settings-panel-on-surface-variant)}praxis-settings-panel .settings-panel .mat-expansion-panel-header .mat-expansion-indicator,praxis-settings-panel .settings-panel .mat-expansion-panel-header .mat-expansion-indicator:after{color:var(--pfx-settings-panel-on-surface-variant);border-color:var(--pfx-settings-panel-on-surface-variant)}praxis-settings-panel .settings-panel .mat-expansion-panel .mat-action-row{border-top-color:var(--pfx-settings-panel-outline-variant);background:var(--pfx-settings-panel-surface-container-low)}praxis-settings-panel .settings-panel .mat-accordion,praxis-settings-panel .settings-panel .mat-accordion .mat-expansion-panel-spacing{background:transparent!important}praxis-settings-panel .settings-panel .mat-expansion-panel-content,praxis-settings-panel .settings-panel .mat-expansion-panel-content-wrapper,praxis-settings-panel .settings-panel .mat-expansion-panel-body{background:var(--pfx-settings-panel-surface-container)!important;color:var(--pfx-settings-panel-on-surface)}praxis-settings-panel .settings-panel .mat-expansion-panel .mat-expansion-panel-body{padding:8px}praxis-settings-panel .settings-panel .mat-expansion-panel .mat-expansion-panel-body>*{color:inherit}praxis-settings-panel .settings-panel .mat-mdc-tab-group .mat-mdc-tab-header{border-bottom:1px solid var(--pfx-settings-panel-outline-variant);background:var(--pfx-settings-panel-surface-container-low)}praxis-settings-panel .settings-panel .mat-mdc-tab-group .mdc-tab{min-width:0}praxis-settings-panel .settings-panel .mat-mdc-tab-group .mdc-tab .mdc-tab__text-label{color:var(--pfx-settings-panel-on-surface-variant)}praxis-settings-panel .settings-panel .mat-mdc-tab-group .mdc-tab:hover .mdc-tab__text-label,praxis-settings-panel .settings-panel .mat-mdc-tab-group .mdc-tab:focus .mdc-tab__text-label{color:var(--pfx-settings-panel-on-surface)}praxis-settings-panel .settings-panel .mat-mdc-tab-group .mdc-tab.mdc-tab--active .mdc-tab__text-label{color:var(--pfx-settings-panel-on-surface)}praxis-settings-panel .settings-panel .mat-mdc-tab-group .mat-mdc-tab-header-pagination{color:var(--pfx-settings-panel-on-surface-variant)}praxis-settings-panel .settings-panel .mat-mdc-tab-group .mat-mdc-tab-header-pagination-chevron{border-color:var(--pfx-settings-panel-on-surface-variant)}praxis-settings-panel .settings-panel .mat-mdc-tab-group .mat-mdc-tab-header-pagination:not(.mat-mdc-tab-header-pagination-disabled):hover{background:color-mix(in srgb,var(--pfx-settings-panel-surface-container-high) 84%,var(--pfx-settings-panel-primary) 16%)}praxis-settings-panel .settings-panel .mat-mdc-tab-group .mdc-tab-indicator__content--underline{border-color:var(--pfx-settings-panel-primary)}praxis-settings-panel .settings-panel .mat-mdc-card{background:var(--pfx-settings-panel-surface-container-low);border:1px solid var(--pfx-settings-panel-outline-variant);color:var(--pfx-settings-panel-on-surface);box-shadow:var(--md-sys-elevation-level1, 0 2px 8px rgba(0, 0, 0, .08))}praxis-settings-panel .settings-panel .mat-mdc-card-subtitle,praxis-settings-panel .settings-panel .mat-mdc-card-content{color:var(--pfx-settings-panel-on-surface-variant)}praxis-settings-panel .settings-panel .mat-mdc-card-title{color:var(--pfx-settings-panel-on-surface)}praxis-settings-panel .settings-panel .mat-mdc-form-field{width:100%;--mdc-filled-text-field-container-color: var( --pfx-settings-panel-surface-container );--mdc-filled-text-field-hover-container-color: var( --pfx-settings-panel-surface-container-high );--mdc-filled-text-field-focus-container-color: var( --pfx-settings-panel-surface-container-high );--mdc-filled-text-field-active-indicator-color: var( --pfx-settings-panel-outline-variant );--mdc-filled-text-field-hover-active-indicator-color: var( --pfx-settings-panel-secondary );--mdc-filled-text-field-focus-active-indicator-color: var( --pfx-settings-panel-primary );--mdc-filled-text-field-label-text-color: var( --pfx-settings-panel-on-surface-variant );--mdc-filled-text-field-focus-label-text-color: var( --pfx-settings-panel-primary );--mdc-filled-text-field-input-text-color: var( --pfx-settings-panel-on-surface );--mdc-filled-text-field-caret-color: var(--pfx-settings-panel-primary);--mdc-outlined-text-field-outline-color: var( --pfx-settings-panel-outline-variant );--mdc-outlined-text-field-hover-outline-color: var( --pfx-settings-panel-secondary );--mdc-outlined-text-field-focus-outline-color: var( --pfx-settings-panel-primary );--mdc-outlined-text-field-label-text-color: var( --pfx-settings-panel-on-surface-variant );--mdc-outlined-text-field-focus-label-text-color: var( --pfx-settings-panel-primary );--mdc-outlined-text-field-input-text-color: var( --pfx-settings-panel-on-surface );--mdc-outlined-text-field-caret-color: var(--pfx-settings-panel-primary);--mat-form-field-focus-select-arrow-color: var( --pfx-settings-panel-primary );--mat-form-field-enabled-select-arrow-color: var( --pfx-settings-panel-on-surface-variant )}praxis-settings-panel .settings-panel .mdc-text-field--filled{background-color:var(--pfx-settings-panel-surface-container)!important;border-radius:var(--md-sys-shape-corner-small, 8px) var(--md-sys-shape-corner-small, 8px) 0 0}praxis-settings-panel .settings-panel .mat-mdc-text-field-wrapper,praxis-settings-panel .settings-panel .mat-mdc-form-field-flex,praxis-settings-panel .settings-panel .mat-mdc-form-field-infix,praxis-settings-panel .settings-panel .mat-mdc-form-field-focus-overlay{background:var(--pfx-settings-panel-surface-container)!important;color:var(--pfx-settings-panel-on-surface)}praxis-settings-panel .settings-panel .mat-mdc-form-field-focus-overlay{opacity:0}praxis-settings-panel .settings-panel .mdc-text-field--filled .mdc-text-field__input,praxis-settings-panel .settings-panel .mdc-text-field--filled .mdc-floating-label,praxis-settings-panel .settings-panel .mat-mdc-select-value,praxis-settings-panel .settings-panel .mat-mdc-select-arrow,praxis-settings-panel .settings-panel .mat-mdc-form-field .mat-mdc-floating-label{color:var(--pfx-settings-panel-on-surface-variant)!important}praxis-settings-panel .settings-panel .mdc-text-field--filled.mdc-text-field--focused .mdc-floating-label,praxis-settings-panel .settings-panel .mdc-text-field--filled .mdc-text-field__input{color:var(--pfx-settings-panel-on-surface)!important}praxis-settings-panel .settings-panel .mat-mdc-form-field input,praxis-settings-panel .settings-panel .mat-mdc-form-field textarea,praxis-settings-panel .settings-panel .mat-mdc-form-field .mdc-text-field__input{color:var(--pfx-settings-panel-on-surface)!important}praxis-settings-panel .settings-panel .mat-mdc-form-field-subscript-wrapper,praxis-settings-panel .settings-panel .mat-mdc-form-field-hint-wrapper,praxis-settings-panel .settings-panel .mat-mdc-form-field-error-wrapper,praxis-settings-panel .settings-panel .mat-mdc-hint{color:var(--pfx-settings-panel-on-surface-variant)}praxis-settings-panel .settings-panel .mat-button-toggle-group{border-color:var(--pfx-settings-panel-outline-variant);background:var(--pfx-settings-panel-surface-container-low)}praxis-settings-panel .settings-panel .mat-button-toggle{background:var(--pfx-settings-panel-surface-container-low);color:var(--pfx-settings-panel-on-surface-variant)}praxis-settings-panel .settings-panel .mat-button-toggle+.mat-button-toggle{border-left-color:var(--pfx-settings-panel-outline-variant)}praxis-settings-panel .settings-panel .mat-button-toggle-checked{background:var(--pfx-settings-panel-primary-container)!important;color:var(--pfx-settings-panel-on-primary-container)!important}praxis-settings-panel .settings-panel .mat-button-toggle .mat-icon,praxis-settings-panel .settings-panel .mat-button-toggle-checked .mat-icon{color:inherit}praxis-settings-panel .settings-panel .mat-mdc-slide-toggle .mdc-label{color:var(--pfx-settings-panel-on-surface)}.settings-panel{grid-template-columns:minmax(0,1fr);min-width:0;max-width:100%}.settings-panel-body{overflow-x:hidden;min-width:0}.settings-panel-body>*{min-width:0;max-width:100%}.praxis-settings-panel-backdrop{background:var(--pfx-backdrop, rgba(8, 15, 26, .42));backdrop-filter:blur(var(--pfx-backdrop-blur, 6px)) saturate(110%);-webkit-backdrop-filter:blur(var(--pfx-backdrop-blur, 6px)) saturate(110%)}.praxis-settings-panel-pane{position:fixed!important;top:0!important;right:0!important;display:flex!important;align-items:stretch!important;height:100vh!important;max-width:100vw!important;max-height:100vh!important;z-index:var(--praxis-layer-settings-panel, 1220)!important;transition:width var(--pfx-side-panel-motion-duration-enter, .3s) var(--pfx-side-panel-motion-easing-enter, ease)}.praxis-settings-panel-pane .settings-panel{pointer-events:auto}@media(prefers-reduced-motion:reduce){.praxis-settings-panel-pane{transition:none}}.praxis-settings-panel-pane.praxis-settings-panel-pane--preview{top:auto!important;bottom:12px!important;right:12px!important;height:auto!important;width:min(560px,100vw - 24px)!important;min-width:0!important;transition:none}.praxis-settings-panel-backdrop.praxis-settings-panel-backdrop--preview{background:transparent;backdrop-filter:none;-webkit-backdrop-filter:none}.praxis-settings-preview-target{outline:2px solid var(--md-sys-color-primary);outline-offset:3px}praxis-settings-panel .settings-panel [hidden]{display:none!important}praxis-settings-panel .settings-panel--preview{height:auto;min-height:0;grid-template-rows:auto;border-radius:16px}praxis-settings-panel .settings-panel-preview-bar{display:flex;align-items:center;gap:16px;padding:16px;color:var(--pfx-settings-panel-on-surface)}praxis-settings-panel .settings-panel-preview-bar p{margin:4px 0 0;color:var(--pfx-settings-panel-on-surface-variant);font-size:.875rem}praxis-settings-panel .settings-panel-preview-bar button{flex-shrink:0}@container settings-panel-shell (max-width: 599px){praxis-settings-panel .settings-panel-header:not([hidden]){display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:start}praxis-settings-panel .settings-panel-header .spacer{display:none}praxis-settings-panel .settings-panel-header .settings-panel-title{grid-column:1;grid-row:1;overflow-wrap:anywhere}praxis-settings-panel .settings-panel-header [data-testid=settings-panel-toggle-expand]{grid-column:2;grid-row:1}praxis-settings-panel .settings-panel-header [data-testid=settings-panel-close-icon]{grid-column:3;grid-row:1}praxis-settings-panel .settings-panel-header [data-testid=settings-panel-preview]{grid-column:1/-1;grid-row:2;justify-self:start;max-width:100%}praxis-settings-panel .settings-panel-preview-bar{flex-direction:column;align-items:stretch;gap:8px}}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i4.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: MatIconModule }, { kind: "component", type: i3.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: PraxisIconButtonComponent, selector: "button[praxisIconButton]", inputs: ["praxisIconButton", "size", "appearance", "presentation", "pressed", "busy"] }, { kind: "directive", type: PraxisIconDirective, selector: "mat-icon[praxisIcon]", inputs: ["praxisIcon"] }, { kind: "ngmodule", type: MatTooltipModule }, { kind: "directive", type: i4$1.MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipPosition", "matTooltipPositionAtOrigin", "matTooltipDisabled", "matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }, { kind: "directive", type: CdkTrapFocus, selector: "[cdkTrapFocus]", inputs: ["cdkTrapFocus", "cdkTrapFocusAutoCapture"], exportAs: ["cdkTrapFocus"] }, { kind: "ngmodule", type: MatProgressSpinnerModule }, { kind: "component", type: i7.MatProgressSpinner, selector: "mat-progress-spinner, mat-spinner", inputs: ["color", "mode", "value", "diameter", "strokeWidth"], exportAs: ["matProgressSpinner"] }, { kind: "ngmodule", type: MatDialogModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
1401
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.14", type: SettingsPanelComponent, isStandalone: true, selector: "praxis-settings-panel", host: { listeners: { "document:keydown": "handleKeydown($event)", "document:pointermove": "onDocumentPointerMove($event)", "document:pointerup": "onDocumentPointerEnd($event)", "document:pointercancel": "onDocumentPointerEnd($event)" } }, providers: [providePraxisSettingsPanelI18n()], viewQueries: [{ propertyName: "focusTrap", first: true, predicate: CdkTrapFocus, descendants: true }, { propertyName: "contentHost", first: true, predicate: ["contentHost"], descendants: true, read: ViewContainerRef, static: true }], ngImport: i0, template: "<div\n class=\"settings-panel\"\n data-testid=\"settings-panel-root\"\n [class.expanded]=\"expanded\"\n [class.settings-panel--preview]=\"previewing\"\n [class.is-resizable]=\"showResizeHandle\"\n [ngStyle]=\"panelInlineStyles\"\n role=\"dialog\"\n [attr.aria-modal]=\"interactionActive ? 'true' : null\"\n [attr.aria-hidden]=\"interactionActive ? null : 'true'\"\n [attr.inert]=\"interactionActive ? null : ''\"\n [attr.aria-labelledby]=\"previewing ? titleId + '-preview' : titleId\"\n [cdkTrapFocus]=\"interactionActive\"\n [cdkTrapFocusAutoCapture]=\"true\"\n >\n @if (showResizeHandle && !previewing) {\n <div\n class=\"settings-panel__resize-handle\"\n role=\"separator\"\n tabindex=\"0\"\n aria-orientation=\"vertical\"\n [attr.aria-label]=\"resizeHandleLabel\"\n (pointerdown)=\"onResizeHandlePointerDown($event)\"\n (keydown)=\"onResizeHandleKeydown($event)\"\n ></div>\n }\n @if (previewing) {\n <section class=\"settings-panel-preview-bar\" data-testid=\"settings-panel-preview-bar\">\n <div><strong [id]=\"titleId + '-preview'\">{{ tx('Page preview') }}</strong><p>{{ tx('Inspect the result. Return to keep editing; nothing is saved here.') }}</p></div>\n <button mat-flat-button type=\"button\" data-testid=\"settings-panel-return\" (click)=\"returnFromPreview()\">{{ tx('Back to settings') }}</button>\n </section>\n }\n <header class=\"settings-panel-header\" [hidden]=\"previewing\">\n <h2 class=\"settings-panel-title\" [id]=\"titleId\">\n @if (titleIcon) {\n <mat-icon class=\"title-icon\" [praxisIcon]=\"titleIcon\"></mat-icon>\n }\n <span>{{ title }}</span>\n </h2>\n <span class=\"spacer\"></span>\n @if (previewTarget) {\n <button mat-stroked-button type=\"button\" data-testid=\"settings-panel-preview\" [disabled]=\"!canInspectPreview\" (click)=\"showPreview()\">\n <mat-icon aria-hidden=\"true\" [praxisIcon]=\"'visibility'\"></mat-icon>{{ tx('View result') }}\n </button>\n }\n <button\n [praxisIconButton]=\"expanded ? 'close_fullscreen' : 'open_in_full'\"\n size=\"compact\"\n type=\"button\"\n data-testid=\"settings-panel-toggle-expand\"\n [attr.aria-label]=\"expanded ? tx('Collapse panel') : tx('Expand panel')\"\n [attr.aria-expanded]=\"expanded\"\n [matTooltip]=\"expanded ? tx('Collapse panel') : tx('Expand panel')\"\n (click)=\"toggleExpand()\"\n ></button>\n <button\n praxisIconButton=\"close\"\n size=\"compact\"\n type=\"button\"\n data-testid=\"settings-panel-close-icon\"\n [attr.aria-label]=\"tx('Close')\"\n [matTooltip]=\"tx('Close')\"\n (click)=\"onCancel()\"\n ></button>\n </header>\n @if (hasContextNavigation && !previewing) {\n <nav\n class=\"settings-panel-context-nav\"\n data-testid=\"settings-panel-context-nav\"\n [attr.aria-label]=\"tx('Context navigation')\"\n >\n @if (contextNavigation?.targets?.length) {\n <div class=\"settings-panel-context-nav__targets\">\n <button\n praxisIconButton=\"chevron_left\"\n size=\"compact\"\n type=\"button\"\n data-testid=\"settings-panel-prev-target\"\n [disabled]=\"!canSelectPreviousTarget\"\n [attr.aria-label]=\"tx('Previous item')\"\n [matTooltip]=\"tx('Previous item')\"\n (click)=\"selectPreviousTarget()\"\n ></button>\n <select\n #targetSelect\n class=\"settings-panel-context-nav__target-select\"\n data-testid=\"settings-panel-target-select\"\n [disabled]=\"isBusy || !interactionActive\"\n [attr.aria-label]=\"tx('Editing target')\"\n [value]=\"contextNavigation?.activeTargetId || ''\"\n (change)=\"selectContextTarget(targetSelect.value, targetSelect)\"\n >\n @for (target of contextNavigation?.targets || []; track target.id) {\n <option [value]=\"target.id\" [selected]=\"target.id === contextNavigation?.activeTargetId\">\n {{ target.label }}\n </option>\n }\n </select>\n <button\n praxisIconButton=\"chevron_right\"\n size=\"compact\"\n type=\"button\"\n data-testid=\"settings-panel-next-target\"\n [disabled]=\"!canSelectNextTarget\"\n [attr.aria-label]=\"tx('Next item')\"\n [matTooltip]=\"tx('Next item')\"\n (click)=\"selectNextTarget()\"\n ></button>\n </div>\n }\n @if (contextNavigation?.modes?.length) {\n <div\n class=\"settings-panel-context-nav__modes\"\n role=\"group\"\n [attr.aria-label]=\"tx('Editing modes')\"\n >\n @for (mode of contextNavigation?.modes || []; track mode.id) {\n <button\n type=\"button\"\n class=\"settings-panel-context-nav__mode-btn\"\n [class.is-active]=\"mode.id === contextNavigation?.activeModeId\"\n [disabled]=\"mode.disabled || isBusy || !interactionActive\"\n [attr.aria-pressed]=\"mode.id === contextNavigation?.activeModeId\"\n [attr.title]=\"mode.label\"\n [attr.data-testid]=\"'settings-panel-mode-' + mode.id\"\n (click)=\"selectContextMode(mode.id)\"\n >\n {{ mode.label }}\n </button>\n }\n </div>\n }\n </nav>\n }\n @if (showStatusMessage && !previewing) {\n <div\n class=\"settings-panel-status\"\n [attr.data-status]=\"statusTone\"\n role=\"status\"\n aria-live=\"polite\"\n >\n <mat-icon\n aria-hidden=\"true\"\n [praxisIcon]=\"\n statusTone === 'dirty' || statusTone === 'invalid'\n ? 'warning'\n : statusTone === 'saved'\n ? 'check_circle'\n : statusTone === 'busy'\n ? 'autorenew'\n : 'info'\n \"\n ></mat-icon>\n <span>{{ statusMessage }}</span>\n @if (showWriteScopeControls) {\n <span class=\"spacer\"></span>\n <span\n class=\"settings-panel-scope\"\n [attr.data-scope]=\"activeWriteScope\"\n data-testid=\"settings-panel-write-scope\"\n >\n <span class=\"settings-panel-scope__label\">{{ writeScopeLabel }}</span>\n @if (canToggleWriteScope) {\n <button\n mat-stroked-button\n type=\"button\"\n class=\"settings-panel-scope__toggle\"\n data-testid=\"settings-panel-scope-toggle\"\n [matTooltip]=\"writeScopeToggleLabel\"\n (click)=\"toggleWriteScope()\"\n >\n {{ writeScopeToggleLabel }}\n </button>\n }\n @if (canResetPersonalOverride) {\n <button\n mat-button\n type=\"button\"\n class=\"settings-panel-scope__reset\"\n data-testid=\"settings-panel-reset-personal-override\"\n (click)=\"resetPersonalOverrideToTenant()\"\n >\n {{ tx('Reset to tenant baseline') }}\n </button>\n }\n </span>\n }\n </div>\n }\n @if (storageSaveError(); as saveErr) {\n <div\n class=\"settings-panel-save-error\"\n role=\"alert\"\n aria-live=\"assertive\"\n data-testid=\"settings-panel-save-error\"\n [attr.data-error-code]=\"saveErr.errorCode || saveErr.status || 'save-error'\"\n >\n <mat-icon aria-hidden=\"true\" [praxisIcon]=\"'error_outline'\"></mat-icon>\n <div class=\"settings-panel-save-error__content\">\n <p class=\"settings-panel-save-error__message\">{{ formattedSaveErrorMessage }}</p>\n @if (saveErr.detail) {\n <p class=\"settings-panel-save-error__detail\">{{ saveErr.detail }}</p>\n }\n @if ((saveErr.errorCode === 'SHARED_CONFIG_SENSITIVE_CRITERIA_DENIED' || saveErr.status === 422) && activeWriteScope === 'tenant') {\n <button\n mat-stroked-button\n type=\"button\"\n class=\"settings-panel-save-error__action\"\n data-testid=\"settings-panel-switch-personal\"\n (click)=\"switchToPersonalScopeFromError()\"\n >\n {{ tx('Switch to personal scope') }}\n </button>\n }\n </div>\n <button\n praxisIconButton=\"close\"\n size=\"compact\"\n type=\"button\"\n data-testid=\"settings-panel-save-error-dismiss\"\n [attr.aria-label]=\"tx('Dismiss error')\"\n (click)=\"dismissSaveError()\"\n ></button>\n </div>\n }\n <div class=\"settings-panel-body\" [hidden]=\"previewing\">\n <ng-template #contentHost></ng-template>\n </div>\n <footer class=\"settings-panel-footer\" [hidden]=\"previewing\">\n <button\n mat-button\n type=\"button\"\n data-testid=\"settings-panel-reset\"\n (mousedown)=\"$event.stopPropagation()\"\n (click)=\"$event.stopPropagation(); onReset()\"\n [disabled]=\"isBusy\"\n >\n <mat-icon aria-hidden=\"true\" [praxisIcon]=\"'restart_alt'\"></mat-icon>\n <span>{{ tx('Reset') }}</span>\n </button>\n <span class=\"spacer\"></span>\n <button\n mat-button\n type=\"button\"\n data-testid=\"settings-panel-cancel\"\n (mousedown)=\"$event.stopPropagation()\"\n (click)=\"$event.stopPropagation(); onCancel()\"\n [disabled]=\"isBusy\"\n >\n <mat-icon aria-hidden=\"true\" [praxisIcon]=\"'close'\"></mat-icon>\n <span>{{ tx('Cancel') }}</span>\n </button>\n <button\n mat-stroked-button\n type=\"button\"\n data-testid=\"settings-panel-apply\"\n (mousedown)=\"$event.stopPropagation()\"\n (click)=\"$event.stopPropagation(); onApply()\"\n [disabled]=\"!canApply\"\n [matTooltip]=\"applySaveDisabledReason\"\n [matTooltipDisabled]=\"canApply || !diagnostics.showDisabledReason\"\n [attr.aria-busy]=\"isBusy\"\n [attr.aria-label]=\"applyActionLabel || 'Apply'\"\n >\n @if (showBusyIndicator) {\n <mat-progress-spinner\n mode=\"indeterminate\"\n diameter=\"20\"\n ></mat-progress-spinner>\n }\n @if (!showBusyIndicator) {\n <mat-icon aria-hidden=\"true\" [praxisIcon]=\"'done'\"></mat-icon>\n <span class=\"settings-panel-action-label settings-panel-action-label--apply\">{{ applyActionLabel }}</span>\n }\n </button>\n <button\n mat-flat-button\n color=\"primary\"\n type=\"button\"\n data-testid=\"settings-panel-save\"\n (mousedown)=\"$event.stopPropagation()\"\n (click)=\"$event.stopPropagation(); onSave()\"\n [disabled]=\"!canSave\"\n [matTooltip]=\"applySaveDisabledReason\"\n [matTooltipDisabled]=\"canSave || !diagnostics.showDisabledReason\"\n [attr.aria-busy]=\"isBusy\"\n [attr.aria-label]=\"saveActionLabel || 'Save & Close'\"\n >\n @if (showBusyIndicator) {\n <mat-progress-spinner\n mode=\"indeterminate\"\n diameter=\"20\"\n ></mat-progress-spinner>\n }\n @if (!showBusyIndicator) {\n <mat-icon aria-hidden=\"true\" [praxisIcon]=\"'save'\"></mat-icon>\n <span class=\"settings-panel-action-label settings-panel-action-label--save\">{{ saveActionLabel }}</span>\n }\n </button>\n </footer>\n</div>\n", styles: ["@charset \"UTF-8\";praxis-settings-panel{display:block;height:100%;width:100%;min-width:0;flex:1 1 auto;box-sizing:border-box}praxis-settings-panel .settings-panel{position:relative;container:settings-panel-shell/inline-size;--pfx-settings-panel-surface-container: var( --md-sys-color-surface-container, #ffffff );--pfx-settings-panel-surface-container-high: var( --md-sys-color-surface-container-high, #f7f7f7 );--pfx-settings-panel-surface-container-low: var( --md-sys-color-surface-container-low, #f2f4f7 );--pfx-settings-panel-surface: var(--md-sys-color-surface, #ffffff);--pfx-settings-panel-on-surface: var(--md-sys-color-on-surface, #111827);--pfx-settings-panel-on-surface-variant: var( --md-sys-color-on-surface-variant, rgba(17, 24, 39, .72) );--pfx-settings-panel-outline: var( --md-sys-color-outline, rgba(15, 23, 42, .24) );--pfx-settings-panel-outline-variant: var( --md-sys-color-outline-variant, rgba(15, 23, 42, .12) );--pfx-settings-panel-primary: var(--md-sys-color-primary, #2563eb);--pfx-settings-panel-primary-container: var( --md-sys-color-primary-container, rgba(37, 99, 235, .14) );--pfx-settings-panel-on-primary-container: var( --md-sys-color-on-primary-container, #0f172a );--pfx-settings-panel-secondary: var( --md-sys-color-secondary, var(--pfx-settings-panel-primary) );--pfx-settings-panel-error: var(--md-sys-color-error, #b3261e);--pfx-settings-panel-error-container: var( --md-sys-color-error-container, rgba(179, 38, 30, .14) );--pfx-settings-panel-alert-bg: color-mix( in srgb, var(--pfx-settings-panel-error-container) 78%, var(--pfx-settings-panel-surface) );--pfx-settings-panel-alert-fg: var(--pfx-settings-panel-error);--pfx-settings-panel-scope-bg: var(--pfx-settings-panel-surface);--pfx-settings-panel-scope-fg: var(--pfx-settings-panel-on-surface-variant);--pfx-settings-panel-border-radius: 0px;--mat-divider-color: var(--pfx-settings-panel-outline-variant);--mat-expansion-container-background-color: var( --pfx-settings-panel-surface-container );--mat-expansion-container-text-color: var(--pfx-settings-panel-on-surface);--mat-expansion-header-text-color: var(--pfx-settings-panel-on-surface);--mat-expansion-header-description-color: var( --pfx-settings-panel-on-surface-variant );--mat-expansion-header-indicator-color: var( --pfx-settings-panel-on-surface-variant );--mat-button-toggle-selected-state-background-color: var( --pfx-settings-panel-primary-container );--mat-button-toggle-selected-state-text-color: var( --pfx-settings-panel-on-primary-container );display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto auto auto 1fr auto;grid-template-areas:\"header\" \"context-nav\" \"status\" \"alert\" \"body\" \"footer\";min-width:0;height:100%;max-width:var(--pfx-settings-panel-max-width, 100%);background:var(--pfx-settings-panel-surface-container);color:var(--pfx-settings-panel-on-surface);border-left:1px solid var(--pfx-settings-panel-outline-variant);border-radius:var(--pfx-settings-panel-border-radius, 0px);width:var(--pfx-settings-panel-width, 100%);box-sizing:border-box;box-shadow:var(--pfx-settings-panel-elevation, var(--md-sys-elevation-level2, 0 8px 24px rgba(0, 0, 0, .16)));overflow:hidden}praxis-settings-panel .settings-panel__resize-handle{position:absolute;inset:0 auto 0 0;width:12px;cursor:col-resize;touch-action:none;z-index:3;outline:none}praxis-settings-panel .settings-panel__resize-handle:before{content:\"\";position:absolute;inset:0 auto 0 4px;width:2px;background:transparent;transition:background-color var(--pfx-side-panel-motion-duration, .16s) ease,opacity var(--pfx-side-panel-motion-duration, .16s) ease;opacity:0}praxis-settings-panel .settings-panel.is-resizable:hover .settings-panel__resize-handle:before,praxis-settings-panel .settings-panel__resize-handle:focus-visible:before{opacity:1;background:var(--pfx-settings-panel-outline)}praxis-settings-panel .settings-panel-header{grid-area:header;display:flex;align-items:center;gap:var(--pfx-settings-panel-header-gap, 8px);padding:12px var(--pfx-settings-panel-header-padding-x, 20px);min-height:var(--pfx-settings-panel-header-height, 64px);border-bottom:1px solid var(--pfx-settings-panel-outline-variant);background:var(--pfx-settings-panel-surface-container-high);box-shadow:var(--pfx-settings-panel-header-shadow, var(--md-sys-elevation-level1, 0 2px 6px rgba(0, 0, 0, .08)));flex-shrink:0;min-width:0;max-width:100%}praxis-settings-panel .settings-panel-header .spacer{flex:1 1 auto;min-width:0}praxis-settings-panel .settings-panel-context-nav{grid-area:context-nav;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px 12px;padding:8px var(--pfx-settings-panel-header-padding-x, 20px);border-bottom:1px solid var(--pfx-settings-panel-outline-variant);background:var(--pfx-settings-panel-surface-container-low);min-width:0;max-width:100%}praxis-settings-panel .settings-panel-context-nav__targets{display:flex;align-items:center;gap:4px;min-width:0;flex:1 1 200px}praxis-settings-panel .settings-panel-context-nav__target-select{flex:1 1 auto;min-width:0;min-height:34px;padding:4px 10px;border-radius:8px;border:1px solid var(--pfx-settings-panel-outline-variant);background:var(--pfx-settings-panel-surface);color:var(--pfx-settings-panel-on-surface);font:inherit;font-size:.84rem;font-weight:600}praxis-settings-panel .settings-panel-context-nav__modes{display:inline-flex;align-items:center;flex-wrap:wrap;gap:4px;padding:2px;max-width:100%;border-radius:999px;border:1px solid var(--pfx-settings-panel-outline-variant);background:var(--pfx-settings-panel-surface)}praxis-settings-panel .settings-panel-context-nav__mode-btn{appearance:none;border:none;background:transparent;color:var(--pfx-settings-panel-on-surface-variant);font:inherit;font-size:.78rem;font-weight:600;padding:5px 12px;border-radius:999px;white-space:nowrap;flex-shrink:0;cursor:pointer;transition:background-color .14s ease,color .14s ease}praxis-settings-panel .settings-panel-context-nav__mode-btn.is-active{background:var(--pfx-settings-panel-primary-container);color:var(--pfx-settings-panel-on-primary-container)}praxis-settings-panel .settings-panel-context-nav__mode-btn:disabled{opacity:.42;cursor:not-allowed}praxis-settings-panel .settings-panel-status{grid-area:status;display:flex;align-items:center;gap:8px;min-height:36px;padding:6px var(--pfx-settings-panel-status-padding-x, 20px);border-bottom:1px solid var(--pfx-settings-panel-outline-variant);background:var(--pfx-settings-panel-surface-container-high);color:var(--pfx-settings-panel-on-surface);font-size:.85rem;font-weight:500;min-width:0;max-width:100%}praxis-settings-panel .settings-panel-status mat-icon{width:18px;height:18px;font-size:18px}praxis-settings-panel .settings-panel-status[data-status=dirty],praxis-settings-panel .settings-panel-status[data-status=invalid]{color:var(--pfx-settings-panel-error);background:color-mix(in srgb,var(--pfx-settings-panel-error-container) 30%,var(--pfx-settings-panel-surface-container-high))}praxis-settings-panel .settings-panel-status[data-status=saved]{color:var(--pfx-settings-panel-primary);background:color-mix(in srgb,var(--pfx-settings-panel-primary-container) 28%,var(--pfx-settings-panel-surface-container-high))}praxis-settings-panel .settings-panel-scope{display:inline-flex;align-items:center;flex-wrap:wrap;gap:6px;padding:2px 8px;border-radius:999px;border:1px solid var(--pfx-settings-panel-outline-variant);background:var(--pfx-settings-panel-scope-bg);color:var(--pfx-settings-panel-scope-fg);font-size:.75rem;font-weight:600}praxis-settings-panel .settings-panel-scope[data-scope=tenant]{border-color:color-mix(in srgb,var(--pfx-settings-panel-primary) 42%,var(--pfx-settings-panel-outline-variant));background:var(--pfx-settings-panel-primary-container);color:var(--pfx-settings-panel-on-primary-container)}praxis-settings-panel .settings-panel-scope__toggle,praxis-settings-panel .settings-panel-scope__reset{height:24px;line-height:22px;font-size:.72rem;padding:0 8px}praxis-settings-panel .settings-panel-save-error{grid-area:alert;display:flex;align-items:flex-start;gap:10px;padding:10px var(--pfx-settings-panel-status-padding-x, 20px);background:var(--pfx-settings-panel-alert-bg);color:var(--pfx-settings-panel-alert-fg);border-bottom:1px solid color-mix(in srgb,var(--pfx-settings-panel-error) 32%,var(--pfx-settings-panel-outline-variant));font-size:.82rem}praxis-settings-panel .settings-panel-save-error__content{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;gap:4px}praxis-settings-panel .settings-panel-save-error__message{margin:0;font-weight:600;line-height:1.35}praxis-settings-panel .settings-panel-save-error__detail{margin:0;font-size:.78rem;color:var(--pfx-settings-panel-on-surface-variant)}praxis-settings-panel .settings-panel-save-error__action{align-self:flex-start;margin-top:2px}praxis-settings-panel .settings-panel-body{grid-area:body;overflow-y:auto;overflow-x:hidden;scroll-padding-top:var(--pfx-settings-panel-scroll-padding-start, 16px);scroll-padding-bottom:var(--pfx-settings-panel-scroll-padding-end, 88px);min-height:0;padding:var(--pfx-settings-panel-body-padding, 8px 16px 24px);background:var(--pfx-settings-panel-surface);display:flex;flex-direction:column;min-width:0;max-width:100%}praxis-settings-panel .settings-panel-body>*{min-width:0;max-width:100%}praxis-settings-panel .settings-panel-content{display:block;min-width:0;max-width:100%}praxis-settings-panel .settings-panel-content>*{min-width:0;max-width:100%;box-sizing:border-box}praxis-settings-panel .settings-panel-footer{grid-area:footer;border-top:1px solid var(--pfx-settings-panel-outline-variant);background:var(--pfx-settings-panel-surface-container-high);box-shadow:var(--pfx-settings-panel-footer-shadow, var(--md-sys-elevation-level1, 0 -2px 6px rgba(0, 0, 0, .08)));display:flex;align-items:center;flex-wrap:wrap;padding:var(--pfx-settings-panel-footer-padding, 12px 20px);column-gap:var(--pfx-settings-panel-footer-gap, 12px);row-gap:8px;flex-shrink:0;min-width:0;max-width:100%}praxis-settings-panel .spacer{flex:1}praxis-settings-panel .settings-panel-title{display:inline-flex;align-items:center;flex:1 1 auto;gap:var(--pfx-settings-panel-title-gap, 8px);font-weight:700;line-height:1.2;letter-spacing:.2px;margin:0;min-width:0;overflow:visible;white-space:normal}praxis-settings-panel .settings-panel-title span{min-width:0;overflow:visible;white-space:normal}praxis-settings-panel .settings-panel-title mat-icon{color:var(--pfx-settings-panel-primary)}praxis-settings-panel .settings-panel-title .title-icon{width:20px;height:20px;font-size:20px}praxis-settings-panel .settings-panel-footer button{display:inline-flex;align-items:center}praxis-settings-panel .settings-panel-footer button .mat-icon{flex:0 0 20px;font-size:20px;width:20px;height:20px;line-height:1;display:inline-flex;align-items:center;justify-content:center;overflow:hidden}praxis-settings-panel .settings-panel-footer .mat-button-wrapper{display:inline-flex;align-items:center;gap:var(--pfx-settings-panel-button-gap, 8px)}praxis-settings-panel .settings-panel-footer .mat-progress-spinner{margin-right:8px}praxis-settings-panel .settings-panel-footer .mat-flat-button[color=primary]{font-weight:600}praxis-settings-panel .settings-panel-footer .mdc-button__label{display:inline-flex;align-items:center;gap:var(--pfx-settings-panel-button-gap, 8px);line-height:1}praxis-settings-panel .settings-panel-footer .mdc-button__label>span{display:inline-flex;align-items:center;line-height:1}praxis-settings-panel .settings-panel-footer .mdc-button__label .mat-icon{display:inline-flex;align-items:center;justify-content:center;line-height:1}@container settings-panel-shell (max-width: 520px){praxis-settings-panel .settings-panel-footer{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:stretch;padding:10px 12px;column-gap:8px}praxis-settings-panel .settings-panel-footer .spacer{display:none}praxis-settings-panel .settings-panel-footer button{justify-content:center;width:100%;min-width:0;min-height:44px;height:auto;padding:8px}praxis-settings-panel .settings-panel-action-label{white-space:normal;overflow-wrap:anywhere;text-align:center}praxis-settings-panel .settings-panel-footer .mdc-button__label{min-width:0;max-width:100%}praxis-settings-panel .settings-panel-footer .mdc-button__label>span{min-width:0;line-height:1.25}}@container settings-panel-shell (max-width: 280px){praxis-settings-panel .settings-panel-footer{grid-template-columns:minmax(0,1fr)}}praxis-settings-panel .settings-panel .mat-divider{background-color:var(--pfx-settings-panel-outline-variant)}praxis-settings-panel .settings-panel .mat-expansion-panel{background:var(--pfx-settings-panel-surface-container);border:1px solid var(--pfx-settings-panel-outline-variant);border-radius:var(--md-sys-shape-corner-medium, 12px);box-shadow:var(--md-sys-elevation-level1, 0 2px 8px rgba(0, 0, 0, .08));color:var(--pfx-settings-panel-on-surface)}praxis-settings-panel .settings-panel .mat-expansion-panel-header{background:var(--pfx-settings-panel-surface-container);color:var(--pfx-settings-panel-on-surface)}praxis-settings-panel .settings-panel .mat-expansion-panel-header .mat-content{color:var(--pfx-settings-panel-on-surface);flex-wrap:wrap;gap:4px 12px;min-width:0;overflow:visible}praxis-settings-panel .settings-panel .mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:hover{background:color-mix(in srgb,var(--pfx-settings-panel-surface-container-high) 84%,var(--pfx-settings-panel-primary) 16%)}praxis-settings-panel .settings-panel .mat-expansion-panel.mat-expanded>.mat-expansion-panel-header{background:var(--pfx-settings-panel-surface-container-high)}praxis-settings-panel .settings-panel .mat-expansion-panel-header mat-icon,praxis-settings-panel .settings-panel .mat-expansion-panel-header .mat-icon{color:var(--pfx-settings-panel-on-surface)}praxis-settings-panel .settings-panel .mat-expansion-panel-header .mat-expansion-panel-header-title,praxis-settings-panel .settings-panel .mat-expansion-panel-header .mat-expansion-panel-header-description{color:var(--pfx-settings-panel-on-surface);min-width:0;overflow:visible;white-space:normal}praxis-settings-panel .settings-panel .mat-expansion-panel-header .mat-expansion-panel-header-description{color:var(--pfx-settings-panel-on-surface-variant);flex-wrap:wrap;gap:8px}praxis-settings-panel .settings-panel .mat-expansion-panel-header .mat-expansion-panel-header-title>*,praxis-settings-panel .settings-panel .mat-expansion-panel-header .mat-expansion-panel-header-description>*{color:inherit}praxis-settings-panel .settings-panel .mat-expansion-panel-header .mat-expansion-panel-header-title small,praxis-settings-panel .settings-panel .mat-expansion-panel-header .mat-expansion-panel-header-description small{color:var(--pfx-settings-panel-on-surface-variant)}praxis-settings-panel .settings-panel .mat-expansion-panel-header .mat-expansion-indicator,praxis-settings-panel .settings-panel .mat-expansion-panel-header .mat-expansion-indicator:after{color:var(--pfx-settings-panel-on-surface-variant);border-color:var(--pfx-settings-panel-on-surface-variant)}praxis-settings-panel .settings-panel .mat-expansion-panel .mat-action-row{border-top-color:var(--pfx-settings-panel-outline-variant);background:var(--pfx-settings-panel-surface-container-low)}praxis-settings-panel .settings-panel .mat-accordion,praxis-settings-panel .settings-panel .mat-accordion .mat-expansion-panel-spacing{background:transparent}praxis-settings-panel .settings-panel .mat-expansion-panel-content,praxis-settings-panel .settings-panel .mat-expansion-panel-content-wrapper,praxis-settings-panel .settings-panel .mat-expansion-panel-body{background:var(--pfx-settings-panel-surface-container);color:var(--pfx-settings-panel-on-surface)}praxis-settings-panel .settings-panel .mat-expansion-panel .mat-expansion-panel-body{padding:8px}praxis-settings-panel .settings-panel .mat-expansion-panel .mat-expansion-panel-body>*{color:inherit}praxis-settings-panel .settings-panel .mat-mdc-tab-group .mat-mdc-tab-header{border-bottom:1px solid var(--pfx-settings-panel-outline-variant);background:var(--pfx-settings-panel-surface-container-low)}praxis-settings-panel .settings-panel .mat-mdc-tab-group .mdc-tab{min-width:0}praxis-settings-panel .settings-panel .mat-mdc-tab-group .mdc-tab .mdc-tab__text-label{color:var(--pfx-settings-panel-on-surface-variant)}praxis-settings-panel .settings-panel .mat-mdc-tab-group .mdc-tab:hover .mdc-tab__text-label,praxis-settings-panel .settings-panel .mat-mdc-tab-group .mdc-tab:focus .mdc-tab__text-label{color:var(--pfx-settings-panel-on-surface)}praxis-settings-panel .settings-panel .mat-mdc-tab-group .mdc-tab.mdc-tab--active .mdc-tab__text-label{color:var(--pfx-settings-panel-on-surface)}praxis-settings-panel .settings-panel .mat-mdc-tab-group .mat-mdc-tab-header-pagination{color:var(--pfx-settings-panel-on-surface-variant)}praxis-settings-panel .settings-panel .mat-mdc-tab-group .mat-mdc-tab-header-pagination-chevron{border-color:var(--pfx-settings-panel-on-surface-variant)}praxis-settings-panel .settings-panel .mat-mdc-tab-group .mat-mdc-tab-header-pagination:not(.mat-mdc-tab-header-pagination-disabled):hover{background:color-mix(in srgb,var(--pfx-settings-panel-surface-container-high) 84%,var(--pfx-settings-panel-primary) 16%)}praxis-settings-panel .settings-panel .mat-mdc-tab-group .mdc-tab-indicator__content--underline{border-color:var(--pfx-settings-panel-primary)}praxis-settings-panel .settings-panel .mat-mdc-card{background:var(--pfx-settings-panel-surface-container-low);border:1px solid var(--pfx-settings-panel-outline-variant);color:var(--pfx-settings-panel-on-surface);box-shadow:var(--md-sys-elevation-level1, 0 2px 8px rgba(0, 0, 0, .08))}praxis-settings-panel .settings-panel .mat-mdc-card-subtitle{color:var(--pfx-settings-panel-on-surface-variant)}praxis-settings-panel .settings-panel .mat-mdc-card-title,praxis-settings-panel .settings-panel .mat-mdc-card-content{color:var(--pfx-settings-panel-on-surface)}praxis-settings-panel .settings-panel .mat-mdc-form-field{width:100%;align-self:start;--mdc-filled-text-field-container-color: var( --pfx-settings-panel-surface-container );--mdc-filled-text-field-hover-container-color: var( --pfx-settings-panel-surface-container-high );--mdc-filled-text-field-focus-container-color: var( --pfx-settings-panel-surface-container-high );--mdc-filled-text-field-active-indicator-color: var( --pfx-settings-panel-outline-variant );--mdc-filled-text-field-hover-active-indicator-color: var( --pfx-settings-panel-secondary );--mdc-filled-text-field-focus-active-indicator-color: var( --pfx-settings-panel-primary );--mdc-filled-text-field-label-text-color: var( --pfx-settings-panel-on-surface-variant );--mdc-filled-text-field-focus-label-text-color: var( --pfx-settings-panel-primary );--mdc-filled-text-field-input-text-color: var( --pfx-settings-panel-on-surface );--mdc-filled-text-field-caret-color: var(--pfx-settings-panel-primary);--mdc-outlined-text-field-outline-color: var( --pfx-settings-panel-outline-variant );--mdc-outlined-text-field-hover-outline-color: var( --pfx-settings-panel-secondary );--mdc-outlined-text-field-focus-outline-color: var( --pfx-settings-panel-primary );--mdc-outlined-text-field-label-text-color: var( --pfx-settings-panel-on-surface-variant );--mdc-outlined-text-field-focus-label-text-color: var( --pfx-settings-panel-primary );--mdc-outlined-text-field-input-text-color: var( --pfx-settings-panel-on-surface );--mdc-outlined-text-field-caret-color: var(--pfx-settings-panel-primary);--mat-form-field-focus-select-arrow-color: var( --pfx-settings-panel-primary );--mat-form-field-enabled-select-arrow-color: var( --pfx-settings-panel-on-surface-variant )}praxis-settings-panel .settings-panel .mat-mdc-form-field .mat-mdc-text-field-wrapper.mdc-text-field--filled,praxis-settings-panel .settings-panel .mat-mdc-form-field .mdc-text-field--filled{background-color:var(--pfx-settings-panel-surface-container);border-radius:var(--md-sys-shape-corner-small, 8px) var(--md-sys-shape-corner-small, 8px) 0 0}praxis-settings-panel .settings-panel .mat-mdc-form-field .mdc-text-field--filled .mat-mdc-form-field-flex,praxis-settings-panel .settings-panel .mat-mdc-form-field .mdc-text-field--filled .mat-mdc-form-field-infix,praxis-settings-panel .settings-panel .mat-mdc-form-field .mdc-text-field--filled .mat-mdc-form-field-focus-overlay{background:var(--pfx-settings-panel-surface-container);color:var(--pfx-settings-panel-on-surface)}praxis-settings-panel .settings-panel .mat-mdc-form-field .mat-mdc-text-field-wrapper.mdc-text-field--outlined,praxis-settings-panel .settings-panel .mat-mdc-form-field .mdc-text-field--outlined,praxis-settings-panel .settings-panel .mat-mdc-form-field .mdc-text-field--outlined .mat-mdc-form-field-flex,praxis-settings-panel .settings-panel .mat-mdc-form-field .mdc-text-field--outlined .mat-mdc-form-field-infix{background:transparent;background-color:transparent;color:var(--pfx-settings-panel-on-surface)}praxis-settings-panel .settings-panel .mat-mdc-form-field-focus-overlay{opacity:0}praxis-settings-panel .settings-panel .mat-mdc-form-field .mdc-text-field--filled .mdc-floating-label,praxis-settings-panel .settings-panel .mat-mdc-form-field .mat-mdc-select-placeholder,praxis-settings-panel .settings-panel .mat-mdc-form-field .mat-mdc-select-arrow,praxis-settings-panel .settings-panel .mat-mdc-form-field .mat-mdc-floating-label{color:var(--pfx-settings-panel-on-surface-variant)}praxis-settings-panel .settings-panel .mat-mdc-form-field .mat-mdc-select-value,praxis-settings-panel .settings-panel .mat-mdc-form-field .mat-mdc-select-value-text,praxis-settings-panel .settings-panel .mat-mdc-form-field .mdc-text-field--filled .mdc-text-field__input,praxis-settings-panel .settings-panel .mat-mdc-form-field input,praxis-settings-panel .settings-panel .mat-mdc-form-field textarea,praxis-settings-panel .settings-panel .mat-mdc-form-field .mdc-text-field__input{color:var(--pfx-settings-panel-on-surface)}praxis-settings-panel .settings-panel .mat-mdc-form-field .mdc-text-field--focused:not(.mdc-text-field--invalid) .mat-mdc-floating-label,praxis-settings-panel .settings-panel .mat-mdc-form-field .mdc-text-field--filled.mdc-text-field--focused .mdc-floating-label{color:var(--pfx-settings-panel-primary)}praxis-settings-panel .settings-panel .mat-mdc-form-field .mdc-text-field--invalid .mat-mdc-floating-label{color:var(--pfx-settings-panel-error)}praxis-settings-panel .settings-panel .mat-mdc-form-field-subscript-wrapper{position:relative;box-sizing:border-box}praxis-settings-panel .settings-panel .mat-mdc-form-field .mat-mdc-form-field-hint-wrapper,praxis-settings-panel .settings-panel .mat-mdc-form-field .mat-mdc-form-field-error-wrapper{position:relative;top:auto;left:auto;right:auto;padding-top:4px;line-height:1.35}praxis-settings-panel .settings-panel .mat-mdc-form-field-bottom-align:before{display:none}praxis-settings-panel .settings-panel .mat-mdc-form-field-subscript-wrapper,praxis-settings-panel .settings-panel .mat-mdc-form-field-hint-wrapper,praxis-settings-panel .settings-panel .mat-mdc-form-field-error-wrapper,praxis-settings-panel .settings-panel .mat-mdc-hint{color:var(--pfx-settings-panel-on-surface-variant)}praxis-settings-panel .settings-panel .mat-button-toggle-group{border-color:var(--pfx-settings-panel-outline-variant);background:var(--pfx-settings-panel-surface-container-low)}praxis-settings-panel .settings-panel .mat-button-toggle{background:var(--pfx-settings-panel-surface-container-low);color:var(--pfx-settings-panel-on-surface-variant)}praxis-settings-panel .settings-panel .mat-button-toggle+.mat-button-toggle{border-left-color:var(--pfx-settings-panel-outline-variant)}praxis-settings-panel .settings-panel .mat-button-toggle-group .mat-button-toggle-checked{background:var(--pfx-settings-panel-primary-container);color:var(--pfx-settings-panel-on-primary-container)}praxis-settings-panel .settings-panel .mat-button-toggle .mat-icon,praxis-settings-panel .settings-panel .mat-button-toggle-checked .mat-icon{color:inherit}praxis-settings-panel .settings-panel .mat-mdc-slide-toggle .mdc-label{color:var(--pfx-settings-panel-on-surface)}praxis-settings-panel .settings-panel .pfx-editor-section{box-sizing:border-box;width:100%;min-width:0;padding:16px;border-radius:16px;border:1px solid var(--pfx-settings-panel-outline-variant);background:var(--pfx-settings-panel-surface-container-low)}praxis-settings-panel .settings-panel .pfx-editor-subgroup{display:grid;gap:12px;padding-top:14px;border-top:1px solid color-mix(in srgb,var(--pfx-settings-panel-outline-variant) 70%,transparent)}praxis-settings-panel .settings-panel .pfx-editor-subgroup:first-child{padding-top:0;border-top:0}praxis-settings-panel .settings-panel .pfx-editor-grid-12{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:12px;min-width:0}praxis-settings-panel .settings-panel .pfx-editor-toggle-cluster{display:flex;flex-wrap:wrap;align-items:center;gap:12px 20px}.settings-panel{grid-template-columns:minmax(0,1fr);min-width:0;max-width:100%}.settings-panel-body{overflow-x:hidden;min-width:0}.settings-panel-body>*{min-width:0;max-width:100%}.praxis-settings-panel-backdrop{background:var(--pfx-settings-panel-backdrop, var(--pfx-backdrop, rgba(8, 15, 26, .42)));backdrop-filter:blur(var(--pfx-settings-panel-backdrop-blur, var(--pfx-backdrop-blur, 6px))) saturate(110%);-webkit-backdrop-filter:blur(var(--pfx-settings-panel-backdrop-blur, var(--pfx-backdrop-blur, 6px))) saturate(110%)}:is(.cdk-overlay-pane.praxis-settings-panel-pane,.praxis-settings-panel-pane){position:fixed;top:0;right:0;display:flex;align-items:stretch;height:100vh;max-width:var(--pfx-settings-panel-pane-max-width, 100vw);max-height:100vh;z-index:var(--pfx-settings-panel-z-index, var(--praxis-layer-settings-panel, 1220));transition:width var(--pfx-side-panel-motion-duration-enter, .3s) var(--pfx-side-panel-motion-easing-enter, ease)}.praxis-settings-panel-pane .settings-panel{pointer-events:auto}@media(prefers-reduced-motion:reduce){.praxis-settings-panel-pane{transition:none}}:is(.cdk-overlay-pane.praxis-settings-panel-pane.praxis-settings-panel-pane--preview,.praxis-settings-panel-pane.praxis-settings-panel-pane--preview){top:auto;bottom:12px;right:12px;height:auto;width:min(560px,100vw - 24px);min-width:0;transition:none}.praxis-settings-panel-backdrop.praxis-settings-panel-backdrop--preview{background:transparent;backdrop-filter:none;-webkit-backdrop-filter:none}.praxis-settings-preview-target{outline:2px solid var(--md-sys-color-primary);outline-offset:3px}praxis-settings-panel .settings-panel [hidden]{display:none}praxis-settings-panel .settings-panel .settings-panel-header[hidden],praxis-settings-panel .settings-panel .settings-panel-body[hidden],praxis-settings-panel .settings-panel .settings-panel-footer[hidden]{display:none}praxis-settings-panel .settings-panel--preview{height:auto;min-height:0;grid-template-rows:auto;border-radius:16px}praxis-settings-panel .settings-panel-preview-bar{display:flex;align-items:center;gap:16px;padding:16px;color:var(--pfx-settings-panel-on-surface)}praxis-settings-panel .settings-panel-preview-bar p{margin:4px 0 0;color:var(--pfx-settings-panel-on-surface-variant);font-size:.875rem}praxis-settings-panel .settings-panel-preview-bar button{flex-shrink:0}@container settings-panel-shell (max-width: 599px){praxis-settings-panel .settings-panel-header:not([hidden]){display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:start}praxis-settings-panel .settings-panel-header .spacer{display:none}praxis-settings-panel .settings-panel-header .settings-panel-title{grid-column:1;grid-row:1;overflow-wrap:anywhere}praxis-settings-panel .settings-panel-header [data-testid=settings-panel-toggle-expand]{grid-column:2;grid-row:1}praxis-settings-panel .settings-panel-header [data-testid=settings-panel-close-icon]{grid-column:3;grid-row:1}praxis-settings-panel .settings-panel-header [data-testid=settings-panel-preview]{grid-column:1/-1;grid-row:2;justify-self:start;max-width:100%}praxis-settings-panel .settings-panel-preview-bar{flex-direction:column;align-items:stretch;gap:8px}}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i4.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: MatIconModule }, { kind: "component", type: i3.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: PraxisIconButtonComponent, selector: "button[praxisIconButton]", inputs: ["praxisIconButton", "size", "appearance", "presentation", "pressed", "busy"] }, { kind: "directive", type: PraxisIconDirective, selector: "mat-icon[praxisIcon]", inputs: ["praxisIcon"] }, { kind: "ngmodule", type: MatTooltipModule }, { kind: "directive", type: i4$1.MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipPosition", "matTooltipPositionAtOrigin", "matTooltipDisabled", "matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }, { kind: "directive", type: CdkTrapFocus, selector: "[cdkTrapFocus]", inputs: ["cdkTrapFocus", "cdkTrapFocusAutoCapture"], exportAs: ["cdkTrapFocus"] }, { kind: "ngmodule", type: MatProgressSpinnerModule }, { kind: "component", type: i7.MatProgressSpinner, selector: "mat-progress-spinner, mat-spinner", inputs: ["color", "mode", "value", "diameter", "strokeWidth"], exportAs: ["matProgressSpinner"] }, { kind: "ngmodule", type: MatDialogModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
1152
1402
  }
1153
1403
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImport: i0, type: SettingsPanelComponent, decorators: [{
1154
1404
  type: Component,
@@ -1163,7 +1413,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
1163
1413
  CdkTrapFocus,
1164
1414
  MatProgressSpinnerModule,
1165
1415
  MatDialogModule,
1166
- ], changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, providers: [providePraxisSettingsPanelI18n()], template: "<div\n class=\"settings-panel\"\n data-testid=\"settings-panel-root\"\n [class.expanded]=\"expanded\"\n [class.settings-panel--preview]=\"previewing\"\n [class.is-resizable]=\"showResizeHandle\"\n [ngStyle]=\"panelInlineStyles\"\n role=\"dialog\"\n [attr.aria-modal]=\"interactionActive ? 'true' : null\"\n [attr.aria-hidden]=\"interactionActive ? null : 'true'\"\n [attr.inert]=\"interactionActive ? null : ''\"\n [attr.aria-labelledby]=\"previewing ? titleId + '-preview' : titleId\"\n [cdkTrapFocus]=\"interactionActive\"\n [cdkTrapFocusAutoCapture]=\"true\"\n >\n @if (showResizeHandle && !previewing) {\n <div\n class=\"settings-panel__resize-handle\"\n role=\"separator\"\n tabindex=\"0\"\n aria-orientation=\"vertical\"\n [attr.aria-label]=\"resizeHandleLabel\"\n (pointerdown)=\"onResizeHandlePointerDown($event)\"\n (keydown)=\"onResizeHandleKeydown($event)\"\n ></div>\n }\n @if (previewing) {\n <section class=\"settings-panel-preview-bar\" data-testid=\"settings-panel-preview-bar\">\n <div><strong [id]=\"titleId + '-preview'\">{{ tx('Page preview') }}</strong><p>{{ tx('Inspect the result. Return to keep editing; nothing is saved here.') }}</p></div>\n <button mat-flat-button type=\"button\" data-testid=\"settings-panel-return\" (click)=\"returnFromPreview()\">{{ tx('Back to settings') }}</button>\n </section>\n }\n <header class=\"settings-panel-header\" [hidden]=\"previewing\">\n <h2 class=\"settings-panel-title\" [id]=\"titleId\">\n @if (titleIcon) {\n <mat-icon class=\"title-icon\" [praxisIcon]=\"titleIcon\"></mat-icon>\n }\n <span>{{ title }}</span>\n </h2>\n <span class=\"spacer\"></span>\n @if (previewTarget) {\n <button mat-stroked-button type=\"button\" data-testid=\"settings-panel-preview\" [disabled]=\"!canInspectPreview\" (click)=\"showPreview()\">\n <mat-icon aria-hidden=\"true\" [praxisIcon]=\"'visibility'\"></mat-icon>{{ tx('View result') }}\n </button>\n }\n <button\n [praxisIconButton]=\"expanded ? 'close_fullscreen' : 'open_in_full'\"\n size=\"compact\"\n type=\"button\"\n data-testid=\"settings-panel-toggle-expand\"\n [attr.aria-label]=\"expanded ? tx('Collapse panel') : tx('Expand panel')\"\n [attr.aria-expanded]=\"expanded\"\n [matTooltip]=\"expanded ? tx('Collapse panel') : tx('Expand panel')\"\n (click)=\"toggleExpand()\"\n ></button>\n <button\n praxisIconButton=\"close\"\n size=\"compact\"\n type=\"button\"\n data-testid=\"settings-panel-close-icon\"\n [attr.aria-label]=\"tx('Close')\"\n [matTooltip]=\"tx('Close')\"\n (click)=\"onCancel()\"\n ></button>\n </header>\n @if (showStatusMessage && !previewing) {\n <div\n class=\"settings-panel-status\"\n [attr.data-status]=\"statusTone\"\n role=\"status\"\n aria-live=\"polite\"\n >\n <mat-icon\n aria-hidden=\"true\"\n [praxisIcon]=\"\n statusTone === 'dirty' || statusTone === 'invalid'\n ? 'warning'\n : statusTone === 'saved'\n ? 'check_circle'\n : statusTone === 'busy'\n ? 'autorenew'\n : 'info'\n \"\n ></mat-icon>\n <span>{{ statusMessage }}</span>\n </div>\n }\n <div class=\"settings-panel-body\" [hidden]=\"previewing\">\n <ng-template #contentHost></ng-template>\n </div>\n <footer class=\"settings-panel-footer\" [hidden]=\"previewing\">\n <button\n mat-button\n type=\"button\"\n data-testid=\"settings-panel-reset\"\n (mousedown)=\"$event.stopPropagation()\"\n (click)=\"$event.stopPropagation(); onReset()\"\n [disabled]=\"isBusy\"\n >\n <mat-icon aria-hidden=\"true\" [praxisIcon]=\"'restart_alt'\"></mat-icon>\n <span>{{ tx('Reset') }}</span>\n </button>\n <span class=\"spacer\"></span>\n <button\n mat-button\n type=\"button\"\n data-testid=\"settings-panel-cancel\"\n (mousedown)=\"$event.stopPropagation()\"\n (click)=\"$event.stopPropagation(); onCancel()\"\n [disabled]=\"isBusy\"\n >\n <mat-icon aria-hidden=\"true\" [praxisIcon]=\"'close'\"></mat-icon>\n <span>{{ tx('Cancel') }}</span>\n </button>\n <button\n mat-stroked-button\n type=\"button\"\n data-testid=\"settings-panel-apply\"\n (mousedown)=\"$event.stopPropagation()\"\n (click)=\"$event.stopPropagation(); onApply()\"\n [disabled]=\"!canApply\"\n [matTooltip]=\"applySaveDisabledReason\"\n [matTooltipDisabled]=\"canApply || !diagnostics.showDisabledReason\"\n [attr.aria-busy]=\"isBusy\"\n [attr.aria-label]=\"applyActionLabel || 'Apply'\"\n >\n @if (showBusyIndicator) {\n <mat-progress-spinner\n mode=\"indeterminate\"\n diameter=\"20\"\n ></mat-progress-spinner>\n }\n @if (!showBusyIndicator) {\n <mat-icon aria-hidden=\"true\" [praxisIcon]=\"'done'\"></mat-icon>\n <span class=\"settings-panel-action-label settings-panel-action-label--apply\">{{ applyActionLabel }}</span>\n }\n </button>\n <button\n mat-flat-button\n color=\"primary\"\n type=\"button\"\n data-testid=\"settings-panel-save\"\n (mousedown)=\"$event.stopPropagation()\"\n (click)=\"$event.stopPropagation(); onSave()\"\n [disabled]=\"!canSave\"\n [matTooltip]=\"applySaveDisabledReason\"\n [matTooltipDisabled]=\"canSave || !diagnostics.showDisabledReason\"\n [attr.aria-busy]=\"isBusy\"\n [attr.aria-label]=\"saveActionLabel || 'Save & Close'\"\n >\n @if (showBusyIndicator) {\n <mat-progress-spinner\n mode=\"indeterminate\"\n diameter=\"20\"\n ></mat-progress-spinner>\n }\n @if (!showBusyIndicator) {\n <mat-icon aria-hidden=\"true\" [praxisIcon]=\"'save'\"></mat-icon>\n <span class=\"settings-panel-action-label settings-panel-action-label--save\">{{ saveActionLabel }}</span>\n }\n </button>\n </footer>\n</div>\n", styles: ["@charset \"UTF-8\";praxis-settings-panel{display:block;height:100%;width:100%;min-width:0;flex:1 1 auto;box-sizing:border-box}praxis-settings-panel .settings-panel{position:relative;container:settings-panel-shell/inline-size;--pfx-settings-panel-surface-container: var( --md-sys-color-surface-container, #ffffff );--pfx-settings-panel-surface-container-high: var( --md-sys-color-surface-container-high, #f7f7f7 );--pfx-settings-panel-surface-container-low: var( --md-sys-color-surface-container-low, #f2f4f7 );--pfx-settings-panel-surface: var(--md-sys-color-surface, #ffffff);--pfx-settings-panel-on-surface: var(--md-sys-color-on-surface, #111827);--pfx-settings-panel-on-surface-variant: var( --md-sys-color-on-surface-variant, rgba(17, 24, 39, .72) );--pfx-settings-panel-outline: var( --md-sys-color-outline, rgba(15, 23, 42, .24) );--pfx-settings-panel-outline-variant: var( --md-sys-color-outline-variant, rgba(15, 23, 42, .12) );--pfx-settings-panel-primary: var(--md-sys-color-primary, #2563eb);--pfx-settings-panel-primary-container: var( --md-sys-color-primary-container, rgba(37, 99, 235, .14) );--pfx-settings-panel-on-primary-container: var( --md-sys-color-on-primary-container, #0f172a );--pfx-settings-panel-secondary: var( --md-sys-color-secondary, var(--pfx-settings-panel-primary) );--pfx-settings-panel-error: var(--md-sys-color-error, #b3261e);--pfx-settings-panel-error-container: var( --md-sys-color-error-container, rgba(179, 38, 30, .14) );display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto 1fr auto;grid-template-areas:\"header\" \"status\" \"body\" \"footer\";height:100%;background:var(--pfx-settings-panel-surface-container);color:var(--pfx-settings-panel-on-surface);border-left:1px solid var(--pfx-settings-panel-outline-variant);width:100%;max-width:100%;min-width:0;box-sizing:border-box;box-shadow:var(--pfx-settings-panel-elevation, var(--md-sys-elevation-level2, 0 8px 24px rgba(0, 0, 0, .16)));overflow:hidden}praxis-settings-panel .settings-panel__resize-handle{position:absolute;inset:0 auto 0 0;width:12px;cursor:col-resize;touch-action:none;z-index:3;outline:none}praxis-settings-panel .settings-panel__resize-handle:before{content:\"\";position:absolute;inset:0 auto 0 4px;width:2px;background:transparent;transition:background-color var(--pfx-side-panel-motion-duration, .16s) ease,opacity var(--pfx-side-panel-motion-duration, .16s) ease;opacity:0}praxis-settings-panel .settings-panel.is-resizable:hover .settings-panel__resize-handle:before,praxis-settings-panel .settings-panel__resize-handle:focus-visible:before{opacity:1;background:var(--pfx-settings-panel-outline)}praxis-settings-panel .settings-panel-header{grid-area:header;display:flex;align-items:center;gap:var(--pfx-settings-panel-header-gap, 8px);padding:12px var(--pfx-settings-panel-header-padding-x, 20px);min-height:var(--pfx-settings-panel-header-height, 64px);border-bottom:1px solid var(--pfx-settings-panel-outline-variant);background:var(--pfx-settings-panel-surface-container-high);box-shadow:var(--pfx-settings-panel-header-shadow, var(--md-sys-elevation-level1, 0 2px 6px rgba(0, 0, 0, .08)));flex-shrink:0;min-width:0;max-width:100%}praxis-settings-panel .settings-panel-header .spacer{flex:1 1 auto;min-width:0}praxis-settings-panel .settings-panel-status{grid-area:status;display:flex;align-items:center;gap:8px;min-height:36px;padding:6px var(--pfx-settings-panel-status-padding-x, 20px);border-bottom:1px solid var(--pfx-settings-panel-outline-variant);background:var(--pfx-settings-panel-surface-container-high);color:var(--pfx-settings-panel-on-surface);font-size:.85rem;font-weight:500;min-width:0;max-width:100%}praxis-settings-panel .settings-panel-status mat-icon{width:18px;height:18px;font-size:18px}praxis-settings-panel .settings-panel-status[data-status=dirty],praxis-settings-panel .settings-panel-status[data-status=invalid]{color:var(--pfx-settings-panel-error);background:color-mix(in srgb,var(--pfx-settings-panel-error-container) 30%,var(--pfx-settings-panel-surface-container-high))}praxis-settings-panel .settings-panel-status[data-status=saved]{color:var(--pfx-settings-panel-primary);background:color-mix(in srgb,var(--pfx-settings-panel-primary-container) 28%,var(--pfx-settings-panel-surface-container-high))}praxis-settings-panel .settings-panel-body{grid-area:body;overflow-y:auto;overflow-x:hidden;scroll-padding-top:var(--pfx-settings-panel-scroll-padding-start, 16px);scroll-padding-bottom:var(--pfx-settings-panel-scroll-padding-end, 88px);min-height:0;padding:var(--pfx-settings-panel-body-padding, 8px 16px 24px);background:var(--pfx-settings-panel-surface);display:flex;flex-direction:column;min-width:0;max-width:100%}praxis-settings-panel .settings-panel-body>*{min-width:0;max-width:100%}praxis-settings-panel .settings-panel-content{display:block;min-width:0;max-width:100%}praxis-settings-panel .settings-panel-content>*{min-width:0;max-width:100%;box-sizing:border-box}praxis-settings-panel .settings-panel-footer{grid-area:footer;border-top:1px solid var(--pfx-settings-panel-outline-variant);background:var(--pfx-settings-panel-surface-container-high);box-shadow:var(--pfx-settings-panel-footer-shadow, var(--md-sys-elevation-level1, 0 -2px 6px rgba(0, 0, 0, .08)));display:flex;align-items:center;flex-wrap:wrap;padding:var(--pfx-settings-panel-footer-padding, 12px 20px);column-gap:var(--pfx-settings-panel-footer-gap, 12px);row-gap:8px;flex-shrink:0;min-width:0;max-width:100%}praxis-settings-panel .spacer{flex:1}praxis-settings-panel .settings-panel-title{display:inline-flex;align-items:center;flex:1 1 auto;gap:var(--pfx-settings-panel-title-gap, 8px);font-weight:700;line-height:1.2;letter-spacing:.2px;margin:0;min-width:0;overflow:visible;white-space:normal}praxis-settings-panel .settings-panel-title span{min-width:0;overflow:visible;white-space:normal}praxis-settings-panel .settings-panel-title mat-icon{color:var(--pfx-settings-panel-primary)}praxis-settings-panel .settings-panel-title .title-icon{width:20px;height:20px;font-size:20px}praxis-settings-panel .settings-panel-footer button{display:inline-flex;align-items:center}praxis-settings-panel .settings-panel-footer button .mat-icon{flex:0 0 20px;font-size:20px;width:20px;height:20px;line-height:1;display:inline-flex;align-items:center;justify-content:center;overflow:hidden}praxis-settings-panel .settings-panel-footer .mat-button-wrapper{display:inline-flex;align-items:center;gap:var(--pfx-settings-panel-button-gap, 8px)}praxis-settings-panel .settings-panel-footer .mat-progress-spinner{margin-right:8px}praxis-settings-panel .settings-panel-footer .mat-flat-button[color=primary]{font-weight:600}praxis-settings-panel .settings-panel-footer .mdc-button__label{display:inline-flex;align-items:center;gap:var(--pfx-settings-panel-button-gap, 8px);line-height:1}praxis-settings-panel .settings-panel-footer .mdc-button__label>span{display:inline-flex;align-items:center;line-height:1}praxis-settings-panel .settings-panel-footer .mdc-button__label .mat-icon{display:inline-flex;align-items:center;justify-content:center;line-height:1}@container settings-panel-shell (max-width: 520px){praxis-settings-panel .settings-panel-footer{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:stretch;padding:10px 12px;column-gap:8px}praxis-settings-panel .settings-panel-footer .spacer{display:none}praxis-settings-panel .settings-panel-footer button{justify-content:center;width:100%;min-width:0;min-height:44px;height:auto;padding:8px}praxis-settings-panel .settings-panel-action-label{white-space:normal;overflow-wrap:anywhere;text-align:center}praxis-settings-panel .settings-panel-footer .mdc-button__label{min-width:0;max-width:100%}praxis-settings-panel .settings-panel-footer .mdc-button__label>span{min-width:0;line-height:1.25}}@container settings-panel-shell (max-width: 280px){praxis-settings-panel .settings-panel-footer{grid-template-columns:minmax(0,1fr)}}praxis-settings-panel .settings-panel .mat-divider{background-color:var(--pfx-settings-panel-outline-variant)!important}praxis-settings-panel .settings-panel .mat-expansion-panel{background:var(--pfx-settings-panel-surface-container)!important;border:1px solid var(--pfx-settings-panel-outline-variant);border-radius:var(--md-sys-shape-corner-medium, 12px);box-shadow:var(--md-sys-elevation-level1, 0 2px 8px rgba(0, 0, 0, .08));color:var(--pfx-settings-panel-on-surface)}praxis-settings-panel .settings-panel .mat-expansion-panel-header{background:var(--pfx-settings-panel-surface-container)!important;color:var(--pfx-settings-panel-on-surface)}praxis-settings-panel .settings-panel .mat-expansion-panel-header .mat-content{color:var(--pfx-settings-panel-on-surface);flex-wrap:wrap;gap:4px 12px;min-width:0;overflow:visible}praxis-settings-panel .settings-panel .mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:hover{background:color-mix(in srgb,var(--pfx-settings-panel-surface-container-high) 84%,var(--pfx-settings-panel-primary) 16%)}praxis-settings-panel .settings-panel .mat-expansion-panel.mat-expanded>.mat-expansion-panel-header{background:var(--pfx-settings-panel-surface-container-high)!important}praxis-settings-panel .settings-panel .mat-expansion-panel-header mat-icon,praxis-settings-panel .settings-panel .mat-expansion-panel-header .mat-icon{color:var(--pfx-settings-panel-on-surface)!important}praxis-settings-panel .settings-panel .mat-expansion-panel-header .mat-expansion-panel-header-title,praxis-settings-panel .settings-panel .mat-expansion-panel-header .mat-expansion-panel-header-description{color:var(--pfx-settings-panel-on-surface);min-width:0;overflow:visible;white-space:normal}praxis-settings-panel .settings-panel .mat-expansion-panel-header .mat-expansion-panel-header-description{color:var(--pfx-settings-panel-on-surface-variant);flex-wrap:wrap;gap:8px}praxis-settings-panel .settings-panel .mat-expansion-panel-header .mat-expansion-panel-header-title>*,praxis-settings-panel .settings-panel .mat-expansion-panel-header .mat-expansion-panel-header-description>*{color:inherit}praxis-settings-panel .settings-panel .mat-expansion-panel-header .mat-expansion-panel-header-title small,praxis-settings-panel .settings-panel .mat-expansion-panel-header .mat-expansion-panel-header-description small{color:var(--pfx-settings-panel-on-surface-variant)}praxis-settings-panel .settings-panel .mat-expansion-panel-header .mat-expansion-indicator,praxis-settings-panel .settings-panel .mat-expansion-panel-header .mat-expansion-indicator:after{color:var(--pfx-settings-panel-on-surface-variant);border-color:var(--pfx-settings-panel-on-surface-variant)}praxis-settings-panel .settings-panel .mat-expansion-panel .mat-action-row{border-top-color:var(--pfx-settings-panel-outline-variant);background:var(--pfx-settings-panel-surface-container-low)}praxis-settings-panel .settings-panel .mat-accordion,praxis-settings-panel .settings-panel .mat-accordion .mat-expansion-panel-spacing{background:transparent!important}praxis-settings-panel .settings-panel .mat-expansion-panel-content,praxis-settings-panel .settings-panel .mat-expansion-panel-content-wrapper,praxis-settings-panel .settings-panel .mat-expansion-panel-body{background:var(--pfx-settings-panel-surface-container)!important;color:var(--pfx-settings-panel-on-surface)}praxis-settings-panel .settings-panel .mat-expansion-panel .mat-expansion-panel-body{padding:8px}praxis-settings-panel .settings-panel .mat-expansion-panel .mat-expansion-panel-body>*{color:inherit}praxis-settings-panel .settings-panel .mat-mdc-tab-group .mat-mdc-tab-header{border-bottom:1px solid var(--pfx-settings-panel-outline-variant);background:var(--pfx-settings-panel-surface-container-low)}praxis-settings-panel .settings-panel .mat-mdc-tab-group .mdc-tab{min-width:0}praxis-settings-panel .settings-panel .mat-mdc-tab-group .mdc-tab .mdc-tab__text-label{color:var(--pfx-settings-panel-on-surface-variant)}praxis-settings-panel .settings-panel .mat-mdc-tab-group .mdc-tab:hover .mdc-tab__text-label,praxis-settings-panel .settings-panel .mat-mdc-tab-group .mdc-tab:focus .mdc-tab__text-label{color:var(--pfx-settings-panel-on-surface)}praxis-settings-panel .settings-panel .mat-mdc-tab-group .mdc-tab.mdc-tab--active .mdc-tab__text-label{color:var(--pfx-settings-panel-on-surface)}praxis-settings-panel .settings-panel .mat-mdc-tab-group .mat-mdc-tab-header-pagination{color:var(--pfx-settings-panel-on-surface-variant)}praxis-settings-panel .settings-panel .mat-mdc-tab-group .mat-mdc-tab-header-pagination-chevron{border-color:var(--pfx-settings-panel-on-surface-variant)}praxis-settings-panel .settings-panel .mat-mdc-tab-group .mat-mdc-tab-header-pagination:not(.mat-mdc-tab-header-pagination-disabled):hover{background:color-mix(in srgb,var(--pfx-settings-panel-surface-container-high) 84%,var(--pfx-settings-panel-primary) 16%)}praxis-settings-panel .settings-panel .mat-mdc-tab-group .mdc-tab-indicator__content--underline{border-color:var(--pfx-settings-panel-primary)}praxis-settings-panel .settings-panel .mat-mdc-card{background:var(--pfx-settings-panel-surface-container-low);border:1px solid var(--pfx-settings-panel-outline-variant);color:var(--pfx-settings-panel-on-surface);box-shadow:var(--md-sys-elevation-level1, 0 2px 8px rgba(0, 0, 0, .08))}praxis-settings-panel .settings-panel .mat-mdc-card-subtitle,praxis-settings-panel .settings-panel .mat-mdc-card-content{color:var(--pfx-settings-panel-on-surface-variant)}praxis-settings-panel .settings-panel .mat-mdc-card-title{color:var(--pfx-settings-panel-on-surface)}praxis-settings-panel .settings-panel .mat-mdc-form-field{width:100%;--mdc-filled-text-field-container-color: var( --pfx-settings-panel-surface-container );--mdc-filled-text-field-hover-container-color: var( --pfx-settings-panel-surface-container-high );--mdc-filled-text-field-focus-container-color: var( --pfx-settings-panel-surface-container-high );--mdc-filled-text-field-active-indicator-color: var( --pfx-settings-panel-outline-variant );--mdc-filled-text-field-hover-active-indicator-color: var( --pfx-settings-panel-secondary );--mdc-filled-text-field-focus-active-indicator-color: var( --pfx-settings-panel-primary );--mdc-filled-text-field-label-text-color: var( --pfx-settings-panel-on-surface-variant );--mdc-filled-text-field-focus-label-text-color: var( --pfx-settings-panel-primary );--mdc-filled-text-field-input-text-color: var( --pfx-settings-panel-on-surface );--mdc-filled-text-field-caret-color: var(--pfx-settings-panel-primary);--mdc-outlined-text-field-outline-color: var( --pfx-settings-panel-outline-variant );--mdc-outlined-text-field-hover-outline-color: var( --pfx-settings-panel-secondary );--mdc-outlined-text-field-focus-outline-color: var( --pfx-settings-panel-primary );--mdc-outlined-text-field-label-text-color: var( --pfx-settings-panel-on-surface-variant );--mdc-outlined-text-field-focus-label-text-color: var( --pfx-settings-panel-primary );--mdc-outlined-text-field-input-text-color: var( --pfx-settings-panel-on-surface );--mdc-outlined-text-field-caret-color: var(--pfx-settings-panel-primary);--mat-form-field-focus-select-arrow-color: var( --pfx-settings-panel-primary );--mat-form-field-enabled-select-arrow-color: var( --pfx-settings-panel-on-surface-variant )}praxis-settings-panel .settings-panel .mdc-text-field--filled{background-color:var(--pfx-settings-panel-surface-container)!important;border-radius:var(--md-sys-shape-corner-small, 8px) var(--md-sys-shape-corner-small, 8px) 0 0}praxis-settings-panel .settings-panel .mat-mdc-text-field-wrapper,praxis-settings-panel .settings-panel .mat-mdc-form-field-flex,praxis-settings-panel .settings-panel .mat-mdc-form-field-infix,praxis-settings-panel .settings-panel .mat-mdc-form-field-focus-overlay{background:var(--pfx-settings-panel-surface-container)!important;color:var(--pfx-settings-panel-on-surface)}praxis-settings-panel .settings-panel .mat-mdc-form-field-focus-overlay{opacity:0}praxis-settings-panel .settings-panel .mdc-text-field--filled .mdc-text-field__input,praxis-settings-panel .settings-panel .mdc-text-field--filled .mdc-floating-label,praxis-settings-panel .settings-panel .mat-mdc-select-value,praxis-settings-panel .settings-panel .mat-mdc-select-arrow,praxis-settings-panel .settings-panel .mat-mdc-form-field .mat-mdc-floating-label{color:var(--pfx-settings-panel-on-surface-variant)!important}praxis-settings-panel .settings-panel .mdc-text-field--filled.mdc-text-field--focused .mdc-floating-label,praxis-settings-panel .settings-panel .mdc-text-field--filled .mdc-text-field__input{color:var(--pfx-settings-panel-on-surface)!important}praxis-settings-panel .settings-panel .mat-mdc-form-field input,praxis-settings-panel .settings-panel .mat-mdc-form-field textarea,praxis-settings-panel .settings-panel .mat-mdc-form-field .mdc-text-field__input{color:var(--pfx-settings-panel-on-surface)!important}praxis-settings-panel .settings-panel .mat-mdc-form-field-subscript-wrapper,praxis-settings-panel .settings-panel .mat-mdc-form-field-hint-wrapper,praxis-settings-panel .settings-panel .mat-mdc-form-field-error-wrapper,praxis-settings-panel .settings-panel .mat-mdc-hint{color:var(--pfx-settings-panel-on-surface-variant)}praxis-settings-panel .settings-panel .mat-button-toggle-group{border-color:var(--pfx-settings-panel-outline-variant);background:var(--pfx-settings-panel-surface-container-low)}praxis-settings-panel .settings-panel .mat-button-toggle{background:var(--pfx-settings-panel-surface-container-low);color:var(--pfx-settings-panel-on-surface-variant)}praxis-settings-panel .settings-panel .mat-button-toggle+.mat-button-toggle{border-left-color:var(--pfx-settings-panel-outline-variant)}praxis-settings-panel .settings-panel .mat-button-toggle-checked{background:var(--pfx-settings-panel-primary-container)!important;color:var(--pfx-settings-panel-on-primary-container)!important}praxis-settings-panel .settings-panel .mat-button-toggle .mat-icon,praxis-settings-panel .settings-panel .mat-button-toggle-checked .mat-icon{color:inherit}praxis-settings-panel .settings-panel .mat-mdc-slide-toggle .mdc-label{color:var(--pfx-settings-panel-on-surface)}.settings-panel{grid-template-columns:minmax(0,1fr);min-width:0;max-width:100%}.settings-panel-body{overflow-x:hidden;min-width:0}.settings-panel-body>*{min-width:0;max-width:100%}.praxis-settings-panel-backdrop{background:var(--pfx-backdrop, rgba(8, 15, 26, .42));backdrop-filter:blur(var(--pfx-backdrop-blur, 6px)) saturate(110%);-webkit-backdrop-filter:blur(var(--pfx-backdrop-blur, 6px)) saturate(110%)}.praxis-settings-panel-pane{position:fixed!important;top:0!important;right:0!important;display:flex!important;align-items:stretch!important;height:100vh!important;max-width:100vw!important;max-height:100vh!important;z-index:var(--praxis-layer-settings-panel, 1220)!important;transition:width var(--pfx-side-panel-motion-duration-enter, .3s) var(--pfx-side-panel-motion-easing-enter, ease)}.praxis-settings-panel-pane .settings-panel{pointer-events:auto}@media(prefers-reduced-motion:reduce){.praxis-settings-panel-pane{transition:none}}.praxis-settings-panel-pane.praxis-settings-panel-pane--preview{top:auto!important;bottom:12px!important;right:12px!important;height:auto!important;width:min(560px,100vw - 24px)!important;min-width:0!important;transition:none}.praxis-settings-panel-backdrop.praxis-settings-panel-backdrop--preview{background:transparent;backdrop-filter:none;-webkit-backdrop-filter:none}.praxis-settings-preview-target{outline:2px solid var(--md-sys-color-primary);outline-offset:3px}praxis-settings-panel .settings-panel [hidden]{display:none!important}praxis-settings-panel .settings-panel--preview{height:auto;min-height:0;grid-template-rows:auto;border-radius:16px}praxis-settings-panel .settings-panel-preview-bar{display:flex;align-items:center;gap:16px;padding:16px;color:var(--pfx-settings-panel-on-surface)}praxis-settings-panel .settings-panel-preview-bar p{margin:4px 0 0;color:var(--pfx-settings-panel-on-surface-variant);font-size:.875rem}praxis-settings-panel .settings-panel-preview-bar button{flex-shrink:0}@container settings-panel-shell (max-width: 599px){praxis-settings-panel .settings-panel-header:not([hidden]){display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:start}praxis-settings-panel .settings-panel-header .spacer{display:none}praxis-settings-panel .settings-panel-header .settings-panel-title{grid-column:1;grid-row:1;overflow-wrap:anywhere}praxis-settings-panel .settings-panel-header [data-testid=settings-panel-toggle-expand]{grid-column:2;grid-row:1}praxis-settings-panel .settings-panel-header [data-testid=settings-panel-close-icon]{grid-column:3;grid-row:1}praxis-settings-panel .settings-panel-header [data-testid=settings-panel-preview]{grid-column:1/-1;grid-row:2;justify-self:start;max-width:100%}praxis-settings-panel .settings-panel-preview-bar{flex-direction:column;align-items:stretch;gap:8px}}\n"] }]
1416
+ ], changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, providers: [providePraxisSettingsPanelI18n()], template: "<div\n class=\"settings-panel\"\n data-testid=\"settings-panel-root\"\n [class.expanded]=\"expanded\"\n [class.settings-panel--preview]=\"previewing\"\n [class.is-resizable]=\"showResizeHandle\"\n [ngStyle]=\"panelInlineStyles\"\n role=\"dialog\"\n [attr.aria-modal]=\"interactionActive ? 'true' : null\"\n [attr.aria-hidden]=\"interactionActive ? null : 'true'\"\n [attr.inert]=\"interactionActive ? null : ''\"\n [attr.aria-labelledby]=\"previewing ? titleId + '-preview' : titleId\"\n [cdkTrapFocus]=\"interactionActive\"\n [cdkTrapFocusAutoCapture]=\"true\"\n >\n @if (showResizeHandle && !previewing) {\n <div\n class=\"settings-panel__resize-handle\"\n role=\"separator\"\n tabindex=\"0\"\n aria-orientation=\"vertical\"\n [attr.aria-label]=\"resizeHandleLabel\"\n (pointerdown)=\"onResizeHandlePointerDown($event)\"\n (keydown)=\"onResizeHandleKeydown($event)\"\n ></div>\n }\n @if (previewing) {\n <section class=\"settings-panel-preview-bar\" data-testid=\"settings-panel-preview-bar\">\n <div><strong [id]=\"titleId + '-preview'\">{{ tx('Page preview') }}</strong><p>{{ tx('Inspect the result. Return to keep editing; nothing is saved here.') }}</p></div>\n <button mat-flat-button type=\"button\" data-testid=\"settings-panel-return\" (click)=\"returnFromPreview()\">{{ tx('Back to settings') }}</button>\n </section>\n }\n <header class=\"settings-panel-header\" [hidden]=\"previewing\">\n <h2 class=\"settings-panel-title\" [id]=\"titleId\">\n @if (titleIcon) {\n <mat-icon class=\"title-icon\" [praxisIcon]=\"titleIcon\"></mat-icon>\n }\n <span>{{ title }}</span>\n </h2>\n <span class=\"spacer\"></span>\n @if (previewTarget) {\n <button mat-stroked-button type=\"button\" data-testid=\"settings-panel-preview\" [disabled]=\"!canInspectPreview\" (click)=\"showPreview()\">\n <mat-icon aria-hidden=\"true\" [praxisIcon]=\"'visibility'\"></mat-icon>{{ tx('View result') }}\n </button>\n }\n <button\n [praxisIconButton]=\"expanded ? 'close_fullscreen' : 'open_in_full'\"\n size=\"compact\"\n type=\"button\"\n data-testid=\"settings-panel-toggle-expand\"\n [attr.aria-label]=\"expanded ? tx('Collapse panel') : tx('Expand panel')\"\n [attr.aria-expanded]=\"expanded\"\n [matTooltip]=\"expanded ? tx('Collapse panel') : tx('Expand panel')\"\n (click)=\"toggleExpand()\"\n ></button>\n <button\n praxisIconButton=\"close\"\n size=\"compact\"\n type=\"button\"\n data-testid=\"settings-panel-close-icon\"\n [attr.aria-label]=\"tx('Close')\"\n [matTooltip]=\"tx('Close')\"\n (click)=\"onCancel()\"\n ></button>\n </header>\n @if (hasContextNavigation && !previewing) {\n <nav\n class=\"settings-panel-context-nav\"\n data-testid=\"settings-panel-context-nav\"\n [attr.aria-label]=\"tx('Context navigation')\"\n >\n @if (contextNavigation?.targets?.length) {\n <div class=\"settings-panel-context-nav__targets\">\n <button\n praxisIconButton=\"chevron_left\"\n size=\"compact\"\n type=\"button\"\n data-testid=\"settings-panel-prev-target\"\n [disabled]=\"!canSelectPreviousTarget\"\n [attr.aria-label]=\"tx('Previous item')\"\n [matTooltip]=\"tx('Previous item')\"\n (click)=\"selectPreviousTarget()\"\n ></button>\n <select\n #targetSelect\n class=\"settings-panel-context-nav__target-select\"\n data-testid=\"settings-panel-target-select\"\n [disabled]=\"isBusy || !interactionActive\"\n [attr.aria-label]=\"tx('Editing target')\"\n [value]=\"contextNavigation?.activeTargetId || ''\"\n (change)=\"selectContextTarget(targetSelect.value, targetSelect)\"\n >\n @for (target of contextNavigation?.targets || []; track target.id) {\n <option [value]=\"target.id\" [selected]=\"target.id === contextNavigation?.activeTargetId\">\n {{ target.label }}\n </option>\n }\n </select>\n <button\n praxisIconButton=\"chevron_right\"\n size=\"compact\"\n type=\"button\"\n data-testid=\"settings-panel-next-target\"\n [disabled]=\"!canSelectNextTarget\"\n [attr.aria-label]=\"tx('Next item')\"\n [matTooltip]=\"tx('Next item')\"\n (click)=\"selectNextTarget()\"\n ></button>\n </div>\n }\n @if (contextNavigation?.modes?.length) {\n <div\n class=\"settings-panel-context-nav__modes\"\n role=\"group\"\n [attr.aria-label]=\"tx('Editing modes')\"\n >\n @for (mode of contextNavigation?.modes || []; track mode.id) {\n <button\n type=\"button\"\n class=\"settings-panel-context-nav__mode-btn\"\n [class.is-active]=\"mode.id === contextNavigation?.activeModeId\"\n [disabled]=\"mode.disabled || isBusy || !interactionActive\"\n [attr.aria-pressed]=\"mode.id === contextNavigation?.activeModeId\"\n [attr.title]=\"mode.label\"\n [attr.data-testid]=\"'settings-panel-mode-' + mode.id\"\n (click)=\"selectContextMode(mode.id)\"\n >\n {{ mode.label }}\n </button>\n }\n </div>\n }\n </nav>\n }\n @if (showStatusMessage && !previewing) {\n <div\n class=\"settings-panel-status\"\n [attr.data-status]=\"statusTone\"\n role=\"status\"\n aria-live=\"polite\"\n >\n <mat-icon\n aria-hidden=\"true\"\n [praxisIcon]=\"\n statusTone === 'dirty' || statusTone === 'invalid'\n ? 'warning'\n : statusTone === 'saved'\n ? 'check_circle'\n : statusTone === 'busy'\n ? 'autorenew'\n : 'info'\n \"\n ></mat-icon>\n <span>{{ statusMessage }}</span>\n @if (showWriteScopeControls) {\n <span class=\"spacer\"></span>\n <span\n class=\"settings-panel-scope\"\n [attr.data-scope]=\"activeWriteScope\"\n data-testid=\"settings-panel-write-scope\"\n >\n <span class=\"settings-panel-scope__label\">{{ writeScopeLabel }}</span>\n @if (canToggleWriteScope) {\n <button\n mat-stroked-button\n type=\"button\"\n class=\"settings-panel-scope__toggle\"\n data-testid=\"settings-panel-scope-toggle\"\n [matTooltip]=\"writeScopeToggleLabel\"\n (click)=\"toggleWriteScope()\"\n >\n {{ writeScopeToggleLabel }}\n </button>\n }\n @if (canResetPersonalOverride) {\n <button\n mat-button\n type=\"button\"\n class=\"settings-panel-scope__reset\"\n data-testid=\"settings-panel-reset-personal-override\"\n (click)=\"resetPersonalOverrideToTenant()\"\n >\n {{ tx('Reset to tenant baseline') }}\n </button>\n }\n </span>\n }\n </div>\n }\n @if (storageSaveError(); as saveErr) {\n <div\n class=\"settings-panel-save-error\"\n role=\"alert\"\n aria-live=\"assertive\"\n data-testid=\"settings-panel-save-error\"\n [attr.data-error-code]=\"saveErr.errorCode || saveErr.status || 'save-error'\"\n >\n <mat-icon aria-hidden=\"true\" [praxisIcon]=\"'error_outline'\"></mat-icon>\n <div class=\"settings-panel-save-error__content\">\n <p class=\"settings-panel-save-error__message\">{{ formattedSaveErrorMessage }}</p>\n @if (saveErr.detail) {\n <p class=\"settings-panel-save-error__detail\">{{ saveErr.detail }}</p>\n }\n @if ((saveErr.errorCode === 'SHARED_CONFIG_SENSITIVE_CRITERIA_DENIED' || saveErr.status === 422) && activeWriteScope === 'tenant') {\n <button\n mat-stroked-button\n type=\"button\"\n class=\"settings-panel-save-error__action\"\n data-testid=\"settings-panel-switch-personal\"\n (click)=\"switchToPersonalScopeFromError()\"\n >\n {{ tx('Switch to personal scope') }}\n </button>\n }\n </div>\n <button\n praxisIconButton=\"close\"\n size=\"compact\"\n type=\"button\"\n data-testid=\"settings-panel-save-error-dismiss\"\n [attr.aria-label]=\"tx('Dismiss error')\"\n (click)=\"dismissSaveError()\"\n ></button>\n </div>\n }\n <div class=\"settings-panel-body\" [hidden]=\"previewing\">\n <ng-template #contentHost></ng-template>\n </div>\n <footer class=\"settings-panel-footer\" [hidden]=\"previewing\">\n <button\n mat-button\n type=\"button\"\n data-testid=\"settings-panel-reset\"\n (mousedown)=\"$event.stopPropagation()\"\n (click)=\"$event.stopPropagation(); onReset()\"\n [disabled]=\"isBusy\"\n >\n <mat-icon aria-hidden=\"true\" [praxisIcon]=\"'restart_alt'\"></mat-icon>\n <span>{{ tx('Reset') }}</span>\n </button>\n <span class=\"spacer\"></span>\n <button\n mat-button\n type=\"button\"\n data-testid=\"settings-panel-cancel\"\n (mousedown)=\"$event.stopPropagation()\"\n (click)=\"$event.stopPropagation(); onCancel()\"\n [disabled]=\"isBusy\"\n >\n <mat-icon aria-hidden=\"true\" [praxisIcon]=\"'close'\"></mat-icon>\n <span>{{ tx('Cancel') }}</span>\n </button>\n <button\n mat-stroked-button\n type=\"button\"\n data-testid=\"settings-panel-apply\"\n (mousedown)=\"$event.stopPropagation()\"\n (click)=\"$event.stopPropagation(); onApply()\"\n [disabled]=\"!canApply\"\n [matTooltip]=\"applySaveDisabledReason\"\n [matTooltipDisabled]=\"canApply || !diagnostics.showDisabledReason\"\n [attr.aria-busy]=\"isBusy\"\n [attr.aria-label]=\"applyActionLabel || 'Apply'\"\n >\n @if (showBusyIndicator) {\n <mat-progress-spinner\n mode=\"indeterminate\"\n diameter=\"20\"\n ></mat-progress-spinner>\n }\n @if (!showBusyIndicator) {\n <mat-icon aria-hidden=\"true\" [praxisIcon]=\"'done'\"></mat-icon>\n <span class=\"settings-panel-action-label settings-panel-action-label--apply\">{{ applyActionLabel }}</span>\n }\n </button>\n <button\n mat-flat-button\n color=\"primary\"\n type=\"button\"\n data-testid=\"settings-panel-save\"\n (mousedown)=\"$event.stopPropagation()\"\n (click)=\"$event.stopPropagation(); onSave()\"\n [disabled]=\"!canSave\"\n [matTooltip]=\"applySaveDisabledReason\"\n [matTooltipDisabled]=\"canSave || !diagnostics.showDisabledReason\"\n [attr.aria-busy]=\"isBusy\"\n [attr.aria-label]=\"saveActionLabel || 'Save & Close'\"\n >\n @if (showBusyIndicator) {\n <mat-progress-spinner\n mode=\"indeterminate\"\n diameter=\"20\"\n ></mat-progress-spinner>\n }\n @if (!showBusyIndicator) {\n <mat-icon aria-hidden=\"true\" [praxisIcon]=\"'save'\"></mat-icon>\n <span class=\"settings-panel-action-label settings-panel-action-label--save\">{{ saveActionLabel }}</span>\n }\n </button>\n </footer>\n</div>\n", styles: ["@charset \"UTF-8\";praxis-settings-panel{display:block;height:100%;width:100%;min-width:0;flex:1 1 auto;box-sizing:border-box}praxis-settings-panel .settings-panel{position:relative;container:settings-panel-shell/inline-size;--pfx-settings-panel-surface-container: var( --md-sys-color-surface-container, #ffffff );--pfx-settings-panel-surface-container-high: var( --md-sys-color-surface-container-high, #f7f7f7 );--pfx-settings-panel-surface-container-low: var( --md-sys-color-surface-container-low, #f2f4f7 );--pfx-settings-panel-surface: var(--md-sys-color-surface, #ffffff);--pfx-settings-panel-on-surface: var(--md-sys-color-on-surface, #111827);--pfx-settings-panel-on-surface-variant: var( --md-sys-color-on-surface-variant, rgba(17, 24, 39, .72) );--pfx-settings-panel-outline: var( --md-sys-color-outline, rgba(15, 23, 42, .24) );--pfx-settings-panel-outline-variant: var( --md-sys-color-outline-variant, rgba(15, 23, 42, .12) );--pfx-settings-panel-primary: var(--md-sys-color-primary, #2563eb);--pfx-settings-panel-primary-container: var( --md-sys-color-primary-container, rgba(37, 99, 235, .14) );--pfx-settings-panel-on-primary-container: var( --md-sys-color-on-primary-container, #0f172a );--pfx-settings-panel-secondary: var( --md-sys-color-secondary, var(--pfx-settings-panel-primary) );--pfx-settings-panel-error: var(--md-sys-color-error, #b3261e);--pfx-settings-panel-error-container: var( --md-sys-color-error-container, rgba(179, 38, 30, .14) );--pfx-settings-panel-alert-bg: color-mix( in srgb, var(--pfx-settings-panel-error-container) 78%, var(--pfx-settings-panel-surface) );--pfx-settings-panel-alert-fg: var(--pfx-settings-panel-error);--pfx-settings-panel-scope-bg: var(--pfx-settings-panel-surface);--pfx-settings-panel-scope-fg: var(--pfx-settings-panel-on-surface-variant);--pfx-settings-panel-border-radius: 0px;--mat-divider-color: var(--pfx-settings-panel-outline-variant);--mat-expansion-container-background-color: var( --pfx-settings-panel-surface-container );--mat-expansion-container-text-color: var(--pfx-settings-panel-on-surface);--mat-expansion-header-text-color: var(--pfx-settings-panel-on-surface);--mat-expansion-header-description-color: var( --pfx-settings-panel-on-surface-variant );--mat-expansion-header-indicator-color: var( --pfx-settings-panel-on-surface-variant );--mat-button-toggle-selected-state-background-color: var( --pfx-settings-panel-primary-container );--mat-button-toggle-selected-state-text-color: var( --pfx-settings-panel-on-primary-container );display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto auto auto 1fr auto;grid-template-areas:\"header\" \"context-nav\" \"status\" \"alert\" \"body\" \"footer\";min-width:0;height:100%;max-width:var(--pfx-settings-panel-max-width, 100%);background:var(--pfx-settings-panel-surface-container);color:var(--pfx-settings-panel-on-surface);border-left:1px solid var(--pfx-settings-panel-outline-variant);border-radius:var(--pfx-settings-panel-border-radius, 0px);width:var(--pfx-settings-panel-width, 100%);box-sizing:border-box;box-shadow:var(--pfx-settings-panel-elevation, var(--md-sys-elevation-level2, 0 8px 24px rgba(0, 0, 0, .16)));overflow:hidden}praxis-settings-panel .settings-panel__resize-handle{position:absolute;inset:0 auto 0 0;width:12px;cursor:col-resize;touch-action:none;z-index:3;outline:none}praxis-settings-panel .settings-panel__resize-handle:before{content:\"\";position:absolute;inset:0 auto 0 4px;width:2px;background:transparent;transition:background-color var(--pfx-side-panel-motion-duration, .16s) ease,opacity var(--pfx-side-panel-motion-duration, .16s) ease;opacity:0}praxis-settings-panel .settings-panel.is-resizable:hover .settings-panel__resize-handle:before,praxis-settings-panel .settings-panel__resize-handle:focus-visible:before{opacity:1;background:var(--pfx-settings-panel-outline)}praxis-settings-panel .settings-panel-header{grid-area:header;display:flex;align-items:center;gap:var(--pfx-settings-panel-header-gap, 8px);padding:12px var(--pfx-settings-panel-header-padding-x, 20px);min-height:var(--pfx-settings-panel-header-height, 64px);border-bottom:1px solid var(--pfx-settings-panel-outline-variant);background:var(--pfx-settings-panel-surface-container-high);box-shadow:var(--pfx-settings-panel-header-shadow, var(--md-sys-elevation-level1, 0 2px 6px rgba(0, 0, 0, .08)));flex-shrink:0;min-width:0;max-width:100%}praxis-settings-panel .settings-panel-header .spacer{flex:1 1 auto;min-width:0}praxis-settings-panel .settings-panel-context-nav{grid-area:context-nav;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px 12px;padding:8px var(--pfx-settings-panel-header-padding-x, 20px);border-bottom:1px solid var(--pfx-settings-panel-outline-variant);background:var(--pfx-settings-panel-surface-container-low);min-width:0;max-width:100%}praxis-settings-panel .settings-panel-context-nav__targets{display:flex;align-items:center;gap:4px;min-width:0;flex:1 1 200px}praxis-settings-panel .settings-panel-context-nav__target-select{flex:1 1 auto;min-width:0;min-height:34px;padding:4px 10px;border-radius:8px;border:1px solid var(--pfx-settings-panel-outline-variant);background:var(--pfx-settings-panel-surface);color:var(--pfx-settings-panel-on-surface);font:inherit;font-size:.84rem;font-weight:600}praxis-settings-panel .settings-panel-context-nav__modes{display:inline-flex;align-items:center;flex-wrap:wrap;gap:4px;padding:2px;max-width:100%;border-radius:999px;border:1px solid var(--pfx-settings-panel-outline-variant);background:var(--pfx-settings-panel-surface)}praxis-settings-panel .settings-panel-context-nav__mode-btn{appearance:none;border:none;background:transparent;color:var(--pfx-settings-panel-on-surface-variant);font:inherit;font-size:.78rem;font-weight:600;padding:5px 12px;border-radius:999px;white-space:nowrap;flex-shrink:0;cursor:pointer;transition:background-color .14s ease,color .14s ease}praxis-settings-panel .settings-panel-context-nav__mode-btn.is-active{background:var(--pfx-settings-panel-primary-container);color:var(--pfx-settings-panel-on-primary-container)}praxis-settings-panel .settings-panel-context-nav__mode-btn:disabled{opacity:.42;cursor:not-allowed}praxis-settings-panel .settings-panel-status{grid-area:status;display:flex;align-items:center;gap:8px;min-height:36px;padding:6px var(--pfx-settings-panel-status-padding-x, 20px);border-bottom:1px solid var(--pfx-settings-panel-outline-variant);background:var(--pfx-settings-panel-surface-container-high);color:var(--pfx-settings-panel-on-surface);font-size:.85rem;font-weight:500;min-width:0;max-width:100%}praxis-settings-panel .settings-panel-status mat-icon{width:18px;height:18px;font-size:18px}praxis-settings-panel .settings-panel-status[data-status=dirty],praxis-settings-panel .settings-panel-status[data-status=invalid]{color:var(--pfx-settings-panel-error);background:color-mix(in srgb,var(--pfx-settings-panel-error-container) 30%,var(--pfx-settings-panel-surface-container-high))}praxis-settings-panel .settings-panel-status[data-status=saved]{color:var(--pfx-settings-panel-primary);background:color-mix(in srgb,var(--pfx-settings-panel-primary-container) 28%,var(--pfx-settings-panel-surface-container-high))}praxis-settings-panel .settings-panel-scope{display:inline-flex;align-items:center;flex-wrap:wrap;gap:6px;padding:2px 8px;border-radius:999px;border:1px solid var(--pfx-settings-panel-outline-variant);background:var(--pfx-settings-panel-scope-bg);color:var(--pfx-settings-panel-scope-fg);font-size:.75rem;font-weight:600}praxis-settings-panel .settings-panel-scope[data-scope=tenant]{border-color:color-mix(in srgb,var(--pfx-settings-panel-primary) 42%,var(--pfx-settings-panel-outline-variant));background:var(--pfx-settings-panel-primary-container);color:var(--pfx-settings-panel-on-primary-container)}praxis-settings-panel .settings-panel-scope__toggle,praxis-settings-panel .settings-panel-scope__reset{height:24px;line-height:22px;font-size:.72rem;padding:0 8px}praxis-settings-panel .settings-panel-save-error{grid-area:alert;display:flex;align-items:flex-start;gap:10px;padding:10px var(--pfx-settings-panel-status-padding-x, 20px);background:var(--pfx-settings-panel-alert-bg);color:var(--pfx-settings-panel-alert-fg);border-bottom:1px solid color-mix(in srgb,var(--pfx-settings-panel-error) 32%,var(--pfx-settings-panel-outline-variant));font-size:.82rem}praxis-settings-panel .settings-panel-save-error__content{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;gap:4px}praxis-settings-panel .settings-panel-save-error__message{margin:0;font-weight:600;line-height:1.35}praxis-settings-panel .settings-panel-save-error__detail{margin:0;font-size:.78rem;color:var(--pfx-settings-panel-on-surface-variant)}praxis-settings-panel .settings-panel-save-error__action{align-self:flex-start;margin-top:2px}praxis-settings-panel .settings-panel-body{grid-area:body;overflow-y:auto;overflow-x:hidden;scroll-padding-top:var(--pfx-settings-panel-scroll-padding-start, 16px);scroll-padding-bottom:var(--pfx-settings-panel-scroll-padding-end, 88px);min-height:0;padding:var(--pfx-settings-panel-body-padding, 8px 16px 24px);background:var(--pfx-settings-panel-surface);display:flex;flex-direction:column;min-width:0;max-width:100%}praxis-settings-panel .settings-panel-body>*{min-width:0;max-width:100%}praxis-settings-panel .settings-panel-content{display:block;min-width:0;max-width:100%}praxis-settings-panel .settings-panel-content>*{min-width:0;max-width:100%;box-sizing:border-box}praxis-settings-panel .settings-panel-footer{grid-area:footer;border-top:1px solid var(--pfx-settings-panel-outline-variant);background:var(--pfx-settings-panel-surface-container-high);box-shadow:var(--pfx-settings-panel-footer-shadow, var(--md-sys-elevation-level1, 0 -2px 6px rgba(0, 0, 0, .08)));display:flex;align-items:center;flex-wrap:wrap;padding:var(--pfx-settings-panel-footer-padding, 12px 20px);column-gap:var(--pfx-settings-panel-footer-gap, 12px);row-gap:8px;flex-shrink:0;min-width:0;max-width:100%}praxis-settings-panel .spacer{flex:1}praxis-settings-panel .settings-panel-title{display:inline-flex;align-items:center;flex:1 1 auto;gap:var(--pfx-settings-panel-title-gap, 8px);font-weight:700;line-height:1.2;letter-spacing:.2px;margin:0;min-width:0;overflow:visible;white-space:normal}praxis-settings-panel .settings-panel-title span{min-width:0;overflow:visible;white-space:normal}praxis-settings-panel .settings-panel-title mat-icon{color:var(--pfx-settings-panel-primary)}praxis-settings-panel .settings-panel-title .title-icon{width:20px;height:20px;font-size:20px}praxis-settings-panel .settings-panel-footer button{display:inline-flex;align-items:center}praxis-settings-panel .settings-panel-footer button .mat-icon{flex:0 0 20px;font-size:20px;width:20px;height:20px;line-height:1;display:inline-flex;align-items:center;justify-content:center;overflow:hidden}praxis-settings-panel .settings-panel-footer .mat-button-wrapper{display:inline-flex;align-items:center;gap:var(--pfx-settings-panel-button-gap, 8px)}praxis-settings-panel .settings-panel-footer .mat-progress-spinner{margin-right:8px}praxis-settings-panel .settings-panel-footer .mat-flat-button[color=primary]{font-weight:600}praxis-settings-panel .settings-panel-footer .mdc-button__label{display:inline-flex;align-items:center;gap:var(--pfx-settings-panel-button-gap, 8px);line-height:1}praxis-settings-panel .settings-panel-footer .mdc-button__label>span{display:inline-flex;align-items:center;line-height:1}praxis-settings-panel .settings-panel-footer .mdc-button__label .mat-icon{display:inline-flex;align-items:center;justify-content:center;line-height:1}@container settings-panel-shell (max-width: 520px){praxis-settings-panel .settings-panel-footer{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:stretch;padding:10px 12px;column-gap:8px}praxis-settings-panel .settings-panel-footer .spacer{display:none}praxis-settings-panel .settings-panel-footer button{justify-content:center;width:100%;min-width:0;min-height:44px;height:auto;padding:8px}praxis-settings-panel .settings-panel-action-label{white-space:normal;overflow-wrap:anywhere;text-align:center}praxis-settings-panel .settings-panel-footer .mdc-button__label{min-width:0;max-width:100%}praxis-settings-panel .settings-panel-footer .mdc-button__label>span{min-width:0;line-height:1.25}}@container settings-panel-shell (max-width: 280px){praxis-settings-panel .settings-panel-footer{grid-template-columns:minmax(0,1fr)}}praxis-settings-panel .settings-panel .mat-divider{background-color:var(--pfx-settings-panel-outline-variant)}praxis-settings-panel .settings-panel .mat-expansion-panel{background:var(--pfx-settings-panel-surface-container);border:1px solid var(--pfx-settings-panel-outline-variant);border-radius:var(--md-sys-shape-corner-medium, 12px);box-shadow:var(--md-sys-elevation-level1, 0 2px 8px rgba(0, 0, 0, .08));color:var(--pfx-settings-panel-on-surface)}praxis-settings-panel .settings-panel .mat-expansion-panel-header{background:var(--pfx-settings-panel-surface-container);color:var(--pfx-settings-panel-on-surface)}praxis-settings-panel .settings-panel .mat-expansion-panel-header .mat-content{color:var(--pfx-settings-panel-on-surface);flex-wrap:wrap;gap:4px 12px;min-width:0;overflow:visible}praxis-settings-panel .settings-panel .mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:hover{background:color-mix(in srgb,var(--pfx-settings-panel-surface-container-high) 84%,var(--pfx-settings-panel-primary) 16%)}praxis-settings-panel .settings-panel .mat-expansion-panel.mat-expanded>.mat-expansion-panel-header{background:var(--pfx-settings-panel-surface-container-high)}praxis-settings-panel .settings-panel .mat-expansion-panel-header mat-icon,praxis-settings-panel .settings-panel .mat-expansion-panel-header .mat-icon{color:var(--pfx-settings-panel-on-surface)}praxis-settings-panel .settings-panel .mat-expansion-panel-header .mat-expansion-panel-header-title,praxis-settings-panel .settings-panel .mat-expansion-panel-header .mat-expansion-panel-header-description{color:var(--pfx-settings-panel-on-surface);min-width:0;overflow:visible;white-space:normal}praxis-settings-panel .settings-panel .mat-expansion-panel-header .mat-expansion-panel-header-description{color:var(--pfx-settings-panel-on-surface-variant);flex-wrap:wrap;gap:8px}praxis-settings-panel .settings-panel .mat-expansion-panel-header .mat-expansion-panel-header-title>*,praxis-settings-panel .settings-panel .mat-expansion-panel-header .mat-expansion-panel-header-description>*{color:inherit}praxis-settings-panel .settings-panel .mat-expansion-panel-header .mat-expansion-panel-header-title small,praxis-settings-panel .settings-panel .mat-expansion-panel-header .mat-expansion-panel-header-description small{color:var(--pfx-settings-panel-on-surface-variant)}praxis-settings-panel .settings-panel .mat-expansion-panel-header .mat-expansion-indicator,praxis-settings-panel .settings-panel .mat-expansion-panel-header .mat-expansion-indicator:after{color:var(--pfx-settings-panel-on-surface-variant);border-color:var(--pfx-settings-panel-on-surface-variant)}praxis-settings-panel .settings-panel .mat-expansion-panel .mat-action-row{border-top-color:var(--pfx-settings-panel-outline-variant);background:var(--pfx-settings-panel-surface-container-low)}praxis-settings-panel .settings-panel .mat-accordion,praxis-settings-panel .settings-panel .mat-accordion .mat-expansion-panel-spacing{background:transparent}praxis-settings-panel .settings-panel .mat-expansion-panel-content,praxis-settings-panel .settings-panel .mat-expansion-panel-content-wrapper,praxis-settings-panel .settings-panel .mat-expansion-panel-body{background:var(--pfx-settings-panel-surface-container);color:var(--pfx-settings-panel-on-surface)}praxis-settings-panel .settings-panel .mat-expansion-panel .mat-expansion-panel-body{padding:8px}praxis-settings-panel .settings-panel .mat-expansion-panel .mat-expansion-panel-body>*{color:inherit}praxis-settings-panel .settings-panel .mat-mdc-tab-group .mat-mdc-tab-header{border-bottom:1px solid var(--pfx-settings-panel-outline-variant);background:var(--pfx-settings-panel-surface-container-low)}praxis-settings-panel .settings-panel .mat-mdc-tab-group .mdc-tab{min-width:0}praxis-settings-panel .settings-panel .mat-mdc-tab-group .mdc-tab .mdc-tab__text-label{color:var(--pfx-settings-panel-on-surface-variant)}praxis-settings-panel .settings-panel .mat-mdc-tab-group .mdc-tab:hover .mdc-tab__text-label,praxis-settings-panel .settings-panel .mat-mdc-tab-group .mdc-tab:focus .mdc-tab__text-label{color:var(--pfx-settings-panel-on-surface)}praxis-settings-panel .settings-panel .mat-mdc-tab-group .mdc-tab.mdc-tab--active .mdc-tab__text-label{color:var(--pfx-settings-panel-on-surface)}praxis-settings-panel .settings-panel .mat-mdc-tab-group .mat-mdc-tab-header-pagination{color:var(--pfx-settings-panel-on-surface-variant)}praxis-settings-panel .settings-panel .mat-mdc-tab-group .mat-mdc-tab-header-pagination-chevron{border-color:var(--pfx-settings-panel-on-surface-variant)}praxis-settings-panel .settings-panel .mat-mdc-tab-group .mat-mdc-tab-header-pagination:not(.mat-mdc-tab-header-pagination-disabled):hover{background:color-mix(in srgb,var(--pfx-settings-panel-surface-container-high) 84%,var(--pfx-settings-panel-primary) 16%)}praxis-settings-panel .settings-panel .mat-mdc-tab-group .mdc-tab-indicator__content--underline{border-color:var(--pfx-settings-panel-primary)}praxis-settings-panel .settings-panel .mat-mdc-card{background:var(--pfx-settings-panel-surface-container-low);border:1px solid var(--pfx-settings-panel-outline-variant);color:var(--pfx-settings-panel-on-surface);box-shadow:var(--md-sys-elevation-level1, 0 2px 8px rgba(0, 0, 0, .08))}praxis-settings-panel .settings-panel .mat-mdc-card-subtitle{color:var(--pfx-settings-panel-on-surface-variant)}praxis-settings-panel .settings-panel .mat-mdc-card-title,praxis-settings-panel .settings-panel .mat-mdc-card-content{color:var(--pfx-settings-panel-on-surface)}praxis-settings-panel .settings-panel .mat-mdc-form-field{width:100%;align-self:start;--mdc-filled-text-field-container-color: var( --pfx-settings-panel-surface-container );--mdc-filled-text-field-hover-container-color: var( --pfx-settings-panel-surface-container-high );--mdc-filled-text-field-focus-container-color: var( --pfx-settings-panel-surface-container-high );--mdc-filled-text-field-active-indicator-color: var( --pfx-settings-panel-outline-variant );--mdc-filled-text-field-hover-active-indicator-color: var( --pfx-settings-panel-secondary );--mdc-filled-text-field-focus-active-indicator-color: var( --pfx-settings-panel-primary );--mdc-filled-text-field-label-text-color: var( --pfx-settings-panel-on-surface-variant );--mdc-filled-text-field-focus-label-text-color: var( --pfx-settings-panel-primary );--mdc-filled-text-field-input-text-color: var( --pfx-settings-panel-on-surface );--mdc-filled-text-field-caret-color: var(--pfx-settings-panel-primary);--mdc-outlined-text-field-outline-color: var( --pfx-settings-panel-outline-variant );--mdc-outlined-text-field-hover-outline-color: var( --pfx-settings-panel-secondary );--mdc-outlined-text-field-focus-outline-color: var( --pfx-settings-panel-primary );--mdc-outlined-text-field-label-text-color: var( --pfx-settings-panel-on-surface-variant );--mdc-outlined-text-field-focus-label-text-color: var( --pfx-settings-panel-primary );--mdc-outlined-text-field-input-text-color: var( --pfx-settings-panel-on-surface );--mdc-outlined-text-field-caret-color: var(--pfx-settings-panel-primary);--mat-form-field-focus-select-arrow-color: var( --pfx-settings-panel-primary );--mat-form-field-enabled-select-arrow-color: var( --pfx-settings-panel-on-surface-variant )}praxis-settings-panel .settings-panel .mat-mdc-form-field .mat-mdc-text-field-wrapper.mdc-text-field--filled,praxis-settings-panel .settings-panel .mat-mdc-form-field .mdc-text-field--filled{background-color:var(--pfx-settings-panel-surface-container);border-radius:var(--md-sys-shape-corner-small, 8px) var(--md-sys-shape-corner-small, 8px) 0 0}praxis-settings-panel .settings-panel .mat-mdc-form-field .mdc-text-field--filled .mat-mdc-form-field-flex,praxis-settings-panel .settings-panel .mat-mdc-form-field .mdc-text-field--filled .mat-mdc-form-field-infix,praxis-settings-panel .settings-panel .mat-mdc-form-field .mdc-text-field--filled .mat-mdc-form-field-focus-overlay{background:var(--pfx-settings-panel-surface-container);color:var(--pfx-settings-panel-on-surface)}praxis-settings-panel .settings-panel .mat-mdc-form-field .mat-mdc-text-field-wrapper.mdc-text-field--outlined,praxis-settings-panel .settings-panel .mat-mdc-form-field .mdc-text-field--outlined,praxis-settings-panel .settings-panel .mat-mdc-form-field .mdc-text-field--outlined .mat-mdc-form-field-flex,praxis-settings-panel .settings-panel .mat-mdc-form-field .mdc-text-field--outlined .mat-mdc-form-field-infix{background:transparent;background-color:transparent;color:var(--pfx-settings-panel-on-surface)}praxis-settings-panel .settings-panel .mat-mdc-form-field-focus-overlay{opacity:0}praxis-settings-panel .settings-panel .mat-mdc-form-field .mdc-text-field--filled .mdc-floating-label,praxis-settings-panel .settings-panel .mat-mdc-form-field .mat-mdc-select-placeholder,praxis-settings-panel .settings-panel .mat-mdc-form-field .mat-mdc-select-arrow,praxis-settings-panel .settings-panel .mat-mdc-form-field .mat-mdc-floating-label{color:var(--pfx-settings-panel-on-surface-variant)}praxis-settings-panel .settings-panel .mat-mdc-form-field .mat-mdc-select-value,praxis-settings-panel .settings-panel .mat-mdc-form-field .mat-mdc-select-value-text,praxis-settings-panel .settings-panel .mat-mdc-form-field .mdc-text-field--filled .mdc-text-field__input,praxis-settings-panel .settings-panel .mat-mdc-form-field input,praxis-settings-panel .settings-panel .mat-mdc-form-field textarea,praxis-settings-panel .settings-panel .mat-mdc-form-field .mdc-text-field__input{color:var(--pfx-settings-panel-on-surface)}praxis-settings-panel .settings-panel .mat-mdc-form-field .mdc-text-field--focused:not(.mdc-text-field--invalid) .mat-mdc-floating-label,praxis-settings-panel .settings-panel .mat-mdc-form-field .mdc-text-field--filled.mdc-text-field--focused .mdc-floating-label{color:var(--pfx-settings-panel-primary)}praxis-settings-panel .settings-panel .mat-mdc-form-field .mdc-text-field--invalid .mat-mdc-floating-label{color:var(--pfx-settings-panel-error)}praxis-settings-panel .settings-panel .mat-mdc-form-field-subscript-wrapper{position:relative;box-sizing:border-box}praxis-settings-panel .settings-panel .mat-mdc-form-field .mat-mdc-form-field-hint-wrapper,praxis-settings-panel .settings-panel .mat-mdc-form-field .mat-mdc-form-field-error-wrapper{position:relative;top:auto;left:auto;right:auto;padding-top:4px;line-height:1.35}praxis-settings-panel .settings-panel .mat-mdc-form-field-bottom-align:before{display:none}praxis-settings-panel .settings-panel .mat-mdc-form-field-subscript-wrapper,praxis-settings-panel .settings-panel .mat-mdc-form-field-hint-wrapper,praxis-settings-panel .settings-panel .mat-mdc-form-field-error-wrapper,praxis-settings-panel .settings-panel .mat-mdc-hint{color:var(--pfx-settings-panel-on-surface-variant)}praxis-settings-panel .settings-panel .mat-button-toggle-group{border-color:var(--pfx-settings-panel-outline-variant);background:var(--pfx-settings-panel-surface-container-low)}praxis-settings-panel .settings-panel .mat-button-toggle{background:var(--pfx-settings-panel-surface-container-low);color:var(--pfx-settings-panel-on-surface-variant)}praxis-settings-panel .settings-panel .mat-button-toggle+.mat-button-toggle{border-left-color:var(--pfx-settings-panel-outline-variant)}praxis-settings-panel .settings-panel .mat-button-toggle-group .mat-button-toggle-checked{background:var(--pfx-settings-panel-primary-container);color:var(--pfx-settings-panel-on-primary-container)}praxis-settings-panel .settings-panel .mat-button-toggle .mat-icon,praxis-settings-panel .settings-panel .mat-button-toggle-checked .mat-icon{color:inherit}praxis-settings-panel .settings-panel .mat-mdc-slide-toggle .mdc-label{color:var(--pfx-settings-panel-on-surface)}praxis-settings-panel .settings-panel .pfx-editor-section{box-sizing:border-box;width:100%;min-width:0;padding:16px;border-radius:16px;border:1px solid var(--pfx-settings-panel-outline-variant);background:var(--pfx-settings-panel-surface-container-low)}praxis-settings-panel .settings-panel .pfx-editor-subgroup{display:grid;gap:12px;padding-top:14px;border-top:1px solid color-mix(in srgb,var(--pfx-settings-panel-outline-variant) 70%,transparent)}praxis-settings-panel .settings-panel .pfx-editor-subgroup:first-child{padding-top:0;border-top:0}praxis-settings-panel .settings-panel .pfx-editor-grid-12{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:12px;min-width:0}praxis-settings-panel .settings-panel .pfx-editor-toggle-cluster{display:flex;flex-wrap:wrap;align-items:center;gap:12px 20px}.settings-panel{grid-template-columns:minmax(0,1fr);min-width:0;max-width:100%}.settings-panel-body{overflow-x:hidden;min-width:0}.settings-panel-body>*{min-width:0;max-width:100%}.praxis-settings-panel-backdrop{background:var(--pfx-settings-panel-backdrop, var(--pfx-backdrop, rgba(8, 15, 26, .42)));backdrop-filter:blur(var(--pfx-settings-panel-backdrop-blur, var(--pfx-backdrop-blur, 6px))) saturate(110%);-webkit-backdrop-filter:blur(var(--pfx-settings-panel-backdrop-blur, var(--pfx-backdrop-blur, 6px))) saturate(110%)}:is(.cdk-overlay-pane.praxis-settings-panel-pane,.praxis-settings-panel-pane){position:fixed;top:0;right:0;display:flex;align-items:stretch;height:100vh;max-width:var(--pfx-settings-panel-pane-max-width, 100vw);max-height:100vh;z-index:var(--pfx-settings-panel-z-index, var(--praxis-layer-settings-panel, 1220));transition:width var(--pfx-side-panel-motion-duration-enter, .3s) var(--pfx-side-panel-motion-easing-enter, ease)}.praxis-settings-panel-pane .settings-panel{pointer-events:auto}@media(prefers-reduced-motion:reduce){.praxis-settings-panel-pane{transition:none}}:is(.cdk-overlay-pane.praxis-settings-panel-pane.praxis-settings-panel-pane--preview,.praxis-settings-panel-pane.praxis-settings-panel-pane--preview){top:auto;bottom:12px;right:12px;height:auto;width:min(560px,100vw - 24px);min-width:0;transition:none}.praxis-settings-panel-backdrop.praxis-settings-panel-backdrop--preview{background:transparent;backdrop-filter:none;-webkit-backdrop-filter:none}.praxis-settings-preview-target{outline:2px solid var(--md-sys-color-primary);outline-offset:3px}praxis-settings-panel .settings-panel [hidden]{display:none}praxis-settings-panel .settings-panel .settings-panel-header[hidden],praxis-settings-panel .settings-panel .settings-panel-body[hidden],praxis-settings-panel .settings-panel .settings-panel-footer[hidden]{display:none}praxis-settings-panel .settings-panel--preview{height:auto;min-height:0;grid-template-rows:auto;border-radius:16px}praxis-settings-panel .settings-panel-preview-bar{display:flex;align-items:center;gap:16px;padding:16px;color:var(--pfx-settings-panel-on-surface)}praxis-settings-panel .settings-panel-preview-bar p{margin:4px 0 0;color:var(--pfx-settings-panel-on-surface-variant);font-size:.875rem}praxis-settings-panel .settings-panel-preview-bar button{flex-shrink:0}@container settings-panel-shell (max-width: 599px){praxis-settings-panel .settings-panel-header:not([hidden]){display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:start}praxis-settings-panel .settings-panel-header .spacer{display:none}praxis-settings-panel .settings-panel-header .settings-panel-title{grid-column:1;grid-row:1;overflow-wrap:anywhere}praxis-settings-panel .settings-panel-header [data-testid=settings-panel-toggle-expand]{grid-column:2;grid-row:1}praxis-settings-panel .settings-panel-header [data-testid=settings-panel-close-icon]{grid-column:3;grid-row:1}praxis-settings-panel .settings-panel-header [data-testid=settings-panel-preview]{grid-column:1/-1;grid-row:2;justify-self:start;max-width:100%}praxis-settings-panel .settings-panel-preview-bar{flex-direction:column;align-items:stretch;gap:8px}}\n"] }]
1167
1417
  }], ctorParameters: () => [{ type: i0.ChangeDetectorRef }, { type: i1.MatDialog }, { type: i0.ElementRef }, { type: i1$1.OverlayContainer }], propDecorators: { focusTrap: [{
1168
1418
  type: ViewChild,
1169
1419
  args: [CdkTrapFocus]
@@ -2002,7 +2252,15 @@ class SettingsPanelService {
2002
2252
  expanded: config.expanded || false,
2003
2253
  });
2004
2254
  panelRef.instance.configureDiagnostics(config.diagnostics);
2255
+ panelRef.instance.configStorageKey = config.configStorageKey;
2256
+ if (config.showWriteScope !== undefined) {
2257
+ panelRef.instance.showWriteScope = config.showWriteScope;
2258
+ }
2259
+ if (config.canSwitchWriteScope !== undefined) {
2260
+ panelRef.instance.canSwitchWriteScope = config.canSwitchWriteScope;
2261
+ }
2005
2262
  panelRef.instance.previewTarget = config.previewTarget;
2263
+ panelRef.instance.contextNavigation = config.contextNavigation;
2006
2264
  this.currentPanelInstance = panelRef.instance;
2007
2265
  this.currentScope = scope;
2008
2266
  this.currentContentParentInjector = contentParentInjector;
@@ -2086,6 +2344,7 @@ function providePraxisSettingsPanelBridge() {
2086
2344
  title: opts.title,
2087
2345
  titleIcon: opts.titleIcon,
2088
2346
  previewTarget: opts.previewTarget,
2347
+ contextNavigation: opts.contextNavigation,
2089
2348
  content: {
2090
2349
  component: opts.content.component,
2091
2350
  inputs: (opts.content.inputs || undefined),
@@ -2158,6 +2417,10 @@ class SurfaceDrawerComponent {
2158
2417
  }
2159
2418
  setTitle(title) {
2160
2419
  this.title = title;
2420
+ const active = this.frames[this.frames.length - 1];
2421
+ if (active) {
2422
+ active.definition = { ...active.definition, title };
2423
+ }
2161
2424
  this.cdr.markForCheck();
2162
2425
  }
2163
2426
  ngOnDestroy() {
@@ -2180,16 +2443,12 @@ class SurfaceDrawerComponent {
2180
2443
  initializeFrame(definition, injector, inputs) {
2181
2444
  this.destroyAllFrames();
2182
2445
  const frame = this.createFrame(definition, injector, inputs);
2183
- this.frames = [frame];
2184
- this.applyFrameHeader(frame);
2185
2446
  return frame.componentRef;
2186
2447
  }
2187
2448
  pushFrame(definition, injector, inputs) {
2188
2449
  this.captureActiveFrameState(definition.returnFocusTo);
2189
2450
  this.detachActiveView();
2190
2451
  const frame = this.createFrame(definition, injector, inputs);
2191
- this.frames.push(frame);
2192
- this.applyFrameHeader(frame);
2193
2452
  this.focusNavigationControl();
2194
2453
  return frame.componentRef;
2195
2454
  }
@@ -2199,8 +2458,6 @@ class SurfaceDrawerComponent {
2199
2458
  }
2200
2459
  this.removeActiveFrame();
2201
2460
  const frame = this.createFrame(definition, injector, inputs);
2202
- this.frames.push(frame);
2203
- this.applyFrameHeader(frame);
2204
2461
  this.focusNavigationControl();
2205
2462
  return frame.componentRef;
2206
2463
  }
@@ -2247,16 +2504,21 @@ class SurfaceDrawerComponent {
2247
2504
  }
2248
2505
  createFrame(definition, injector, inputs) {
2249
2506
  const componentRef = this.contentHost.createComponent(definition.content.component, { injector });
2250
- this.applyInputs(componentRef, inputs);
2251
- this.contentRef = componentRef;
2252
- this.cdr.markForCheck();
2253
- return {
2507
+ const frame = {
2254
2508
  definition,
2255
2509
  componentRef,
2256
2510
  scrollTop: 0,
2257
2511
  restoreFocusTo: null,
2258
2512
  canLeave: definition.canLeave ?? null,
2259
2513
  };
2514
+ // Hosted lifecycle hooks register their guard and header overrides through the active frame ref.
2515
+ // Make that frame current and apply its default header before the first detectChanges runs those hooks.
2516
+ this.frames.push(frame);
2517
+ this.contentRef = componentRef;
2518
+ this.applyFrameHeader(frame);
2519
+ this.applyInputs(componentRef, inputs);
2520
+ this.cdr.markForCheck();
2521
+ return frame;
2260
2522
  }
2261
2523
  captureActiveFrameState(returnFocusTo) {
2262
2524
  const active = this.frames[this.frames.length - 1];
@@ -2322,7 +2584,7 @@ class SurfaceDrawerComponent {
2322
2584
  const supportedInputs = this.resolveSupportedInputs(componentRef);
2323
2585
  const canUseSetInput = typeof componentRef.setInput === 'function';
2324
2586
  for (const [key, value] of Object.entries(inputs)) {
2325
- if (!canUseSetInput && supportedInputs && !supportedInputs.has(key)) {
2587
+ if (supportedInputs && !supportedInputs.has(key)) {
2326
2588
  continue;
2327
2589
  }
2328
2590
  try {
@@ -2346,7 +2608,7 @@ class SurfaceDrawerComponent {
2346
2608
  return new Set(Object.keys(declaredInputs));
2347
2609
  }
2348
2610
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.14", ngImport: i0, type: SurfaceDrawerComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i1$2.PraxisI18nService }], target: i0.ɵɵFactoryTarget.Component });
2349
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.14", type: SurfaceDrawerComponent, isStandalone: true, selector: "praxis-surface-drawer", viewQueries: [{ propertyName: "contentHost", first: true, predicate: ["contentHost"], descendants: true, read: ViewContainerRef, static: true }, { propertyName: "body", first: true, predicate: ["body"], descendants: true, read: ElementRef }, { propertyName: "backButton", first: true, predicate: ["backButton"], descendants: true, read: ElementRef }], ngImport: i0, template: "<div\n class=\"pfx-surface-drawer\"\n [class.has-header]=\"hasHeader\"\n [class.width-narrow]=\"widthClass === 'width-narrow'\"\n [class.width-default]=\"widthClass === 'width-default'\"\n [class.width-wide]=\"widthClass === 'width-wide'\"\n [class.width-full]=\"widthClass === 'width-full'\"\n [class.use-host-width]=\"useHostWidth\"\n [ngClass]=\"hostClasses\"\n [ngStyle]=\"hostCssVars\"\n role=\"dialog\"\n aria-modal=\"true\"\n [attr.aria-labelledby]=\"hasHeader ? titleId : null\"\n [attr.aria-describedby]=\"subtitle ? subtitleId : null\"\n cdkTrapFocus\n cdkTrapFocusAutoCapture\n>\n @if (hasHeader) {\n <header class=\"pfx-surface-drawer__header\">\n @if (canGoBack) {\n <button\n #backButton\n praxisIconButton=\"arrow_back\"\n size=\"compact\"\n type=\"button\"\n class=\"pfx-surface-drawer__back\"\n [attr.aria-label]=\"backLabel\"\n [matTooltip]=\"backLabel\"\n (click)=\"onBack?.()\"\n ></button>\n }\n <div class=\"pfx-surface-drawer__title-block\">\n @if (titleIcon) {\n <mat-icon class=\"pfx-surface-drawer__title-icon\" [praxisIcon]=\"titleIcon\"></mat-icon>\n }\n <div class=\"pfx-surface-drawer__copy\">\n @if (title) {\n <h2 class=\"pfx-surface-drawer__title\" [id]=\"titleId\">{{ title }}</h2>\n }\n @if (subtitle) {\n <p class=\"pfx-surface-drawer__subtitle\" [id]=\"subtitleId\">{{ subtitle }}</p>\n }\n </div>\n </div>\n <button\n praxisIconButton=\"close\"\n size=\"compact\"\n type=\"button\"\n class=\"pfx-surface-drawer__close\"\n [attr.aria-label]=\"closeLabel\"\n [matTooltip]=\"closeLabel\"\n (click)=\"onClose?.()\"\n ></button>\n </header>\n }\n\n <section #body class=\"pfx-surface-drawer__body\">\n <ng-template #contentHost></ng-template>\n </section>\n</div>\n", styles: [":host{display:block;height:100%;width:100%;min-width:0;flex:1 1 auto}.pfx-surface-drawer{display:grid;grid-template-rows:auto 1fr;height:100%;min-width:0;max-width:100%;overflow:hidden;background:var(--md-sys-color-surface-container, #fff);color:var(--md-sys-color-on-surface, #111);border-left:1px solid var(--md-sys-color-outline-variant, rgba(0, 0, 0, .12));border-radius:var(--pfx-side-panel-border-radius, 0);box-shadow:var(--pfx-side-panel-elevation, var(--md-sys-elevation-level2, 0 8px 24px rgba(0, 0, 0, .16)));width:var(--pfx-side-panel-width, 720px);transition:width var(--pfx-side-panel-motion-duration-enter, .22s) var(--pfx-side-panel-motion-easing-enter, cubic-bezier(.2, 0, 0, 1)),box-shadow var(--pfx-side-panel-motion-duration-enter, .22s) var(--pfx-side-panel-motion-easing-enter, cubic-bezier(.2, 0, 0, 1))}.pfx-surface-drawer.use-host-width{width:100%;max-width:100%}.pfx-surface-drawer.width-narrow{width:var(--pfx-side-panel-width, 420px)}.pfx-surface-drawer.width-default{width:var(--pfx-side-panel-width, 720px)}.pfx-surface-drawer.width-wide{width:var(--pfx-side-panel-width, 960px)}.pfx-surface-drawer.width-full{width:min(100vw,var(--pfx-side-panel-max-width, 100vw))}.pfx-surface-drawer__header{display:flex;align-items:flex-start;gap:var(--pfx-side-panel-header-gap, 12px);min-height:var(--pfx-side-panel-header-height, 64px);padding:var(--pfx-side-panel-header-padding-y, 16px) var(--pfx-side-panel-header-padding-x, 20px);box-sizing:border-box;border-bottom:1px solid var(--md-sys-color-outline-variant, rgba(0, 0, 0, .12));background:var(--md-sys-color-surface-container-high, #f7f7f7)}.pfx-surface-drawer__title-block{display:flex;align-items:flex-start;gap:12px;min-width:0;flex:1 1 auto}.pfx-surface-drawer__title-icon{flex:0 0 auto;display:grid;place-items:center;width:36px;height:36px;margin-top:1px;border-radius:10px;background:var(--md-sys-color-primary-container, rgba(47, 78, 178, .12));color:var(--md-sys-color-primary, currentColor)}.pfx-surface-drawer__copy{min-width:0}.pfx-surface-drawer__title,.pfx-surface-drawer__subtitle{margin:0}.pfx-surface-drawer__title{font-size:1.125rem;font-weight:650;line-height:1.35}.pfx-surface-drawer__subtitle{margin-top:6px;color:var(--md-sys-color-on-surface-variant, rgba(0, 0, 0, .64));font-size:.875rem;line-height:1.45;text-wrap:pretty}.pfx-surface-drawer__close{flex:0 0 auto}.pfx-surface-drawer__back{flex:0 0 auto;margin-top:1px}.pfx-surface-drawer__body{min-height:0;overflow:auto;padding:var(--pfx-side-panel-body-padding, 16px);background:var(--md-sys-color-surface, #fff)}@media(prefers-reduced-motion:reduce){.pfx-surface-drawer{transition:none}}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i3.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatTooltipModule }, { kind: "directive", type: i4$1.MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipPosition", "matTooltipPositionAtOrigin", "matTooltipDisabled", "matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }, { kind: "directive", type: CdkTrapFocus, selector: "[cdkTrapFocus]", inputs: ["cdkTrapFocus", "cdkTrapFocusAutoCapture"], exportAs: ["cdkTrapFocus"] }, { 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 });
2611
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.14", type: SurfaceDrawerComponent, isStandalone: true, selector: "praxis-surface-drawer", viewQueries: [{ propertyName: "contentHost", first: true, predicate: ["contentHost"], descendants: true, read: ViewContainerRef, static: true }, { propertyName: "body", first: true, predicate: ["body"], descendants: true, read: ElementRef }, { propertyName: "backButton", first: true, predicate: ["backButton"], descendants: true, read: ElementRef }], ngImport: i0, template: "<div\n class=\"pfx-surface-drawer\"\n [class.has-header]=\"hasHeader\"\n [class.width-narrow]=\"widthClass === 'width-narrow'\"\n [class.width-default]=\"widthClass === 'width-default'\"\n [class.width-wide]=\"widthClass === 'width-wide'\"\n [class.width-full]=\"widthClass === 'width-full'\"\n [class.use-host-width]=\"useHostWidth\"\n [ngClass]=\"hostClasses\"\n [ngStyle]=\"hostCssVars\"\n role=\"dialog\"\n aria-modal=\"true\"\n [attr.aria-labelledby]=\"hasHeader ? titleId : null\"\n [attr.aria-describedby]=\"subtitle ? subtitleId : null\"\n cdkTrapFocus\n cdkTrapFocusAutoCapture\n>\n @if (hasHeader) {\n <header class=\"pfx-surface-drawer__header\">\n @if (canGoBack) {\n <button\n #backButton\n praxisIconButton=\"arrow_back\"\n size=\"compact\"\n type=\"button\"\n class=\"pfx-surface-drawer__back\"\n [attr.aria-label]=\"backLabel\"\n [matTooltip]=\"backLabel\"\n (click)=\"onBack?.()\"\n ></button>\n }\n <div class=\"pfx-surface-drawer__title-block\">\n @if (titleIcon) {\n <mat-icon class=\"pfx-surface-drawer__title-icon\" [praxisIcon]=\"titleIcon\"></mat-icon>\n }\n <div class=\"pfx-surface-drawer__copy\">\n @if (title) {\n <h2 class=\"pfx-surface-drawer__title\" [id]=\"titleId\" tabindex=\"-1\" cdkFocusInitial>{{ title }}</h2>\n }\n @if (subtitle) {\n <p class=\"pfx-surface-drawer__subtitle\" [id]=\"subtitleId\">{{ subtitle }}</p>\n }\n </div>\n </div>\n <button\n praxisIconButton=\"close\"\n size=\"compact\"\n type=\"button\"\n class=\"pfx-surface-drawer__close\"\n [attr.aria-label]=\"closeLabel\"\n [matTooltip]=\"closeLabel\"\n (click)=\"onClose?.()\"\n ></button>\n </header>\n }\n\n <section #body class=\"pfx-surface-drawer__body\">\n <ng-template #contentHost></ng-template>\n </section>\n</div>\n", styles: [":host{display:block;height:100%;width:100%;min-width:0;flex:1 1 auto}.pfx-surface-drawer{display:grid;grid-template-rows:auto 1fr;height:100%;min-width:0;max-width:100%;overflow:hidden;background:var(--md-sys-color-surface-container, var(--mat-sys-surface-container));color:var(--md-sys-color-on-surface, var(--mat-sys-on-surface));border-left:1px solid var(--md-sys-color-outline-variant, var(--mat-sys-outline-variant));border-radius:var(--pfx-side-panel-border-radius, 0);box-shadow:var(--pfx-side-panel-elevation, var(--md-sys-elevation-level2, 0 8px 24px rgba(0, 0, 0, .16)));width:var(--pfx-side-panel-width, 720px);transition:width var(--pfx-side-panel-motion-duration-enter, .22s) var(--pfx-side-panel-motion-easing-enter, cubic-bezier(.2, 0, 0, 1)),box-shadow var(--pfx-side-panel-motion-duration-enter, .22s) var(--pfx-side-panel-motion-easing-enter, cubic-bezier(.2, 0, 0, 1))}.pfx-surface-drawer.use-host-width{width:100%;max-width:100%}.pfx-surface-drawer.width-narrow{width:var(--pfx-side-panel-width, 420px)}.pfx-surface-drawer.width-default{width:var(--pfx-side-panel-width, 720px)}.pfx-surface-drawer.width-wide{width:var(--pfx-side-panel-width, 960px)}.pfx-surface-drawer.width-full{width:min(100vw,var(--pfx-side-panel-max-width, 100vw))}.pfx-surface-drawer__header{display:flex;align-items:flex-start;gap:var(--pfx-side-panel-header-gap, 12px);min-height:var(--pfx-side-panel-header-height, 64px);padding:var(--pfx-side-panel-header-padding-y, 16px) var(--pfx-side-panel-header-padding-x, 20px);box-sizing:border-box;border-bottom:1px solid var(--md-sys-color-outline-variant, var(--mat-sys-outline-variant));background:var(--md-sys-color-surface-container-high, var(--mat-sys-surface-container-high))}.pfx-surface-drawer__title-block{display:flex;align-items:flex-start;gap:12px;min-width:0;flex:1 1 auto}.pfx-surface-drawer__title-icon{flex:0 0 auto;display:grid;place-items:center;width:36px;height:36px;margin-top:1px;border-radius:10px;background:var(--md-sys-color-primary-container, var(--mat-sys-primary-container, rgba(47, 78, 178, .12)));color:var(--md-sys-color-primary, var(--mat-sys-primary, currentColor))}.pfx-surface-drawer__copy{min-width:0}.pfx-surface-drawer__title,.pfx-surface-drawer__subtitle{margin:0}.pfx-surface-drawer__title{font-size:1.125rem;font-weight:var(--mat-sys-title-medium-weight, 500);line-height:1.35}.pfx-surface-drawer__title:focus{outline:none}.pfx-surface-drawer__subtitle{margin-top:6px;color:var(--md-sys-color-on-surface-variant, var(--mat-sys-on-surface-variant));font-size:.875rem;line-height:1.45;text-wrap:pretty}.pfx-surface-drawer__close,.pfx-surface-drawer__back{flex:0 0 auto;--praxis-icon-button-surface-size: 36px;--praxis-icon-button-icon-size: 18px;--praxis-icon-button-radius: 10px;--praxis-icon-button-focus-radius: 10px;color:var(--md-sys-color-on-surface-variant, var(--mat-sys-on-surface-variant))}.pfx-surface-drawer__close{margin-inline-end:-4px;--praxis-icon-button-bg: color-mix( in srgb, var(--md-sys-color-on-surface, var(--mat-sys-on-surface)) 4.5%, transparent );--praxis-icon-button-border: 1px solid color-mix( in srgb, var(--md-sys-color-outline-variant, var(--mat-sys-outline-variant)) 48%, transparent )}.pfx-surface-drawer__close:hover:not(:disabled){color:var(--md-sys-color-on-surface, var(--mat-sys-on-surface));--praxis-icon-button-hover-bg: color-mix( in srgb, var(--md-sys-color-on-surface, var(--mat-sys-on-surface)) 11%, transparent );--praxis-icon-button-hover-border-color: color-mix( in srgb, var(--md-sys-color-outline, var(--mat-sys-outline)) 48%, transparent )}.pfx-surface-drawer__close:active:not(:disabled){--praxis-icon-button-active-bg: color-mix( in srgb, var(--md-sys-color-on-surface, var(--mat-sys-on-surface)) 16%, transparent )}.pfx-surface-drawer__back{margin-top:1px;--praxis-icon-button-bg: transparent;--praxis-icon-button-border: 1px solid transparent}.pfx-surface-drawer__back:hover:not(:disabled){color:var(--md-sys-color-primary, var(--mat-sys-primary));--praxis-icon-button-hover-bg: color-mix( in srgb, var(--md-sys-color-primary, var(--mat-sys-primary)) 12%, transparent );--praxis-icon-button-hover-border-color: color-mix( in srgb, var(--md-sys-color-primary, var(--mat-sys-primary)) 30%, transparent )}.pfx-surface-drawer__body{min-height:0;overflow:auto;overscroll-behavior:contain;padding:var(--pfx-side-panel-body-padding, 16px);background:var(--md-sys-color-surface, var(--mat-sys-surface))}@media(min-width:640px){.pfx-surface-drawer:not(.width-full){border-radius:var(--pfx-side-panel-border-radius, 16px 0 0 16px)}}@media(prefers-reduced-motion:reduce){.pfx-surface-drawer{transition:none}}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i3.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatTooltipModule }, { kind: "directive", type: i4$1.MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipPosition", "matTooltipPositionAtOrigin", "matTooltipDisabled", "matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }, { kind: "directive", type: CdkTrapFocus, selector: "[cdkTrapFocus]", inputs: ["cdkTrapFocus", "cdkTrapFocusAutoCapture"], exportAs: ["cdkTrapFocus"] }, { 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 });
2350
2612
  }
2351
2613
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImport: i0, type: SurfaceDrawerComponent, decorators: [{
2352
2614
  type: Component,
@@ -2359,7 +2621,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
2359
2621
  CdkTrapFocus,
2360
2622
  PraxisIconButtonComponent,
2361
2623
  PraxisIconDirective,
2362
- ], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div\n class=\"pfx-surface-drawer\"\n [class.has-header]=\"hasHeader\"\n [class.width-narrow]=\"widthClass === 'width-narrow'\"\n [class.width-default]=\"widthClass === 'width-default'\"\n [class.width-wide]=\"widthClass === 'width-wide'\"\n [class.width-full]=\"widthClass === 'width-full'\"\n [class.use-host-width]=\"useHostWidth\"\n [ngClass]=\"hostClasses\"\n [ngStyle]=\"hostCssVars\"\n role=\"dialog\"\n aria-modal=\"true\"\n [attr.aria-labelledby]=\"hasHeader ? titleId : null\"\n [attr.aria-describedby]=\"subtitle ? subtitleId : null\"\n cdkTrapFocus\n cdkTrapFocusAutoCapture\n>\n @if (hasHeader) {\n <header class=\"pfx-surface-drawer__header\">\n @if (canGoBack) {\n <button\n #backButton\n praxisIconButton=\"arrow_back\"\n size=\"compact\"\n type=\"button\"\n class=\"pfx-surface-drawer__back\"\n [attr.aria-label]=\"backLabel\"\n [matTooltip]=\"backLabel\"\n (click)=\"onBack?.()\"\n ></button>\n }\n <div class=\"pfx-surface-drawer__title-block\">\n @if (titleIcon) {\n <mat-icon class=\"pfx-surface-drawer__title-icon\" [praxisIcon]=\"titleIcon\"></mat-icon>\n }\n <div class=\"pfx-surface-drawer__copy\">\n @if (title) {\n <h2 class=\"pfx-surface-drawer__title\" [id]=\"titleId\">{{ title }}</h2>\n }\n @if (subtitle) {\n <p class=\"pfx-surface-drawer__subtitle\" [id]=\"subtitleId\">{{ subtitle }}</p>\n }\n </div>\n </div>\n <button\n praxisIconButton=\"close\"\n size=\"compact\"\n type=\"button\"\n class=\"pfx-surface-drawer__close\"\n [attr.aria-label]=\"closeLabel\"\n [matTooltip]=\"closeLabel\"\n (click)=\"onClose?.()\"\n ></button>\n </header>\n }\n\n <section #body class=\"pfx-surface-drawer__body\">\n <ng-template #contentHost></ng-template>\n </section>\n</div>\n", styles: [":host{display:block;height:100%;width:100%;min-width:0;flex:1 1 auto}.pfx-surface-drawer{display:grid;grid-template-rows:auto 1fr;height:100%;min-width:0;max-width:100%;overflow:hidden;background:var(--md-sys-color-surface-container, #fff);color:var(--md-sys-color-on-surface, #111);border-left:1px solid var(--md-sys-color-outline-variant, rgba(0, 0, 0, .12));border-radius:var(--pfx-side-panel-border-radius, 0);box-shadow:var(--pfx-side-panel-elevation, var(--md-sys-elevation-level2, 0 8px 24px rgba(0, 0, 0, .16)));width:var(--pfx-side-panel-width, 720px);transition:width var(--pfx-side-panel-motion-duration-enter, .22s) var(--pfx-side-panel-motion-easing-enter, cubic-bezier(.2, 0, 0, 1)),box-shadow var(--pfx-side-panel-motion-duration-enter, .22s) var(--pfx-side-panel-motion-easing-enter, cubic-bezier(.2, 0, 0, 1))}.pfx-surface-drawer.use-host-width{width:100%;max-width:100%}.pfx-surface-drawer.width-narrow{width:var(--pfx-side-panel-width, 420px)}.pfx-surface-drawer.width-default{width:var(--pfx-side-panel-width, 720px)}.pfx-surface-drawer.width-wide{width:var(--pfx-side-panel-width, 960px)}.pfx-surface-drawer.width-full{width:min(100vw,var(--pfx-side-panel-max-width, 100vw))}.pfx-surface-drawer__header{display:flex;align-items:flex-start;gap:var(--pfx-side-panel-header-gap, 12px);min-height:var(--pfx-side-panel-header-height, 64px);padding:var(--pfx-side-panel-header-padding-y, 16px) var(--pfx-side-panel-header-padding-x, 20px);box-sizing:border-box;border-bottom:1px solid var(--md-sys-color-outline-variant, rgba(0, 0, 0, .12));background:var(--md-sys-color-surface-container-high, #f7f7f7)}.pfx-surface-drawer__title-block{display:flex;align-items:flex-start;gap:12px;min-width:0;flex:1 1 auto}.pfx-surface-drawer__title-icon{flex:0 0 auto;display:grid;place-items:center;width:36px;height:36px;margin-top:1px;border-radius:10px;background:var(--md-sys-color-primary-container, rgba(47, 78, 178, .12));color:var(--md-sys-color-primary, currentColor)}.pfx-surface-drawer__copy{min-width:0}.pfx-surface-drawer__title,.pfx-surface-drawer__subtitle{margin:0}.pfx-surface-drawer__title{font-size:1.125rem;font-weight:650;line-height:1.35}.pfx-surface-drawer__subtitle{margin-top:6px;color:var(--md-sys-color-on-surface-variant, rgba(0, 0, 0, .64));font-size:.875rem;line-height:1.45;text-wrap:pretty}.pfx-surface-drawer__close{flex:0 0 auto}.pfx-surface-drawer__back{flex:0 0 auto;margin-top:1px}.pfx-surface-drawer__body{min-height:0;overflow:auto;padding:var(--pfx-side-panel-body-padding, 16px);background:var(--md-sys-color-surface, #fff)}@media(prefers-reduced-motion:reduce){.pfx-surface-drawer{transition:none}}\n"] }]
2624
+ ], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div\n class=\"pfx-surface-drawer\"\n [class.has-header]=\"hasHeader\"\n [class.width-narrow]=\"widthClass === 'width-narrow'\"\n [class.width-default]=\"widthClass === 'width-default'\"\n [class.width-wide]=\"widthClass === 'width-wide'\"\n [class.width-full]=\"widthClass === 'width-full'\"\n [class.use-host-width]=\"useHostWidth\"\n [ngClass]=\"hostClasses\"\n [ngStyle]=\"hostCssVars\"\n role=\"dialog\"\n aria-modal=\"true\"\n [attr.aria-labelledby]=\"hasHeader ? titleId : null\"\n [attr.aria-describedby]=\"subtitle ? subtitleId : null\"\n cdkTrapFocus\n cdkTrapFocusAutoCapture\n>\n @if (hasHeader) {\n <header class=\"pfx-surface-drawer__header\">\n @if (canGoBack) {\n <button\n #backButton\n praxisIconButton=\"arrow_back\"\n size=\"compact\"\n type=\"button\"\n class=\"pfx-surface-drawer__back\"\n [attr.aria-label]=\"backLabel\"\n [matTooltip]=\"backLabel\"\n (click)=\"onBack?.()\"\n ></button>\n }\n <div class=\"pfx-surface-drawer__title-block\">\n @if (titleIcon) {\n <mat-icon class=\"pfx-surface-drawer__title-icon\" [praxisIcon]=\"titleIcon\"></mat-icon>\n }\n <div class=\"pfx-surface-drawer__copy\">\n @if (title) {\n <h2 class=\"pfx-surface-drawer__title\" [id]=\"titleId\" tabindex=\"-1\" cdkFocusInitial>{{ title }}</h2>\n }\n @if (subtitle) {\n <p class=\"pfx-surface-drawer__subtitle\" [id]=\"subtitleId\">{{ subtitle }}</p>\n }\n </div>\n </div>\n <button\n praxisIconButton=\"close\"\n size=\"compact\"\n type=\"button\"\n class=\"pfx-surface-drawer__close\"\n [attr.aria-label]=\"closeLabel\"\n [matTooltip]=\"closeLabel\"\n (click)=\"onClose?.()\"\n ></button>\n </header>\n }\n\n <section #body class=\"pfx-surface-drawer__body\">\n <ng-template #contentHost></ng-template>\n </section>\n</div>\n", styles: [":host{display:block;height:100%;width:100%;min-width:0;flex:1 1 auto}.pfx-surface-drawer{display:grid;grid-template-rows:auto 1fr;height:100%;min-width:0;max-width:100%;overflow:hidden;background:var(--md-sys-color-surface-container, var(--mat-sys-surface-container));color:var(--md-sys-color-on-surface, var(--mat-sys-on-surface));border-left:1px solid var(--md-sys-color-outline-variant, var(--mat-sys-outline-variant));border-radius:var(--pfx-side-panel-border-radius, 0);box-shadow:var(--pfx-side-panel-elevation, var(--md-sys-elevation-level2, 0 8px 24px rgba(0, 0, 0, .16)));width:var(--pfx-side-panel-width, 720px);transition:width var(--pfx-side-panel-motion-duration-enter, .22s) var(--pfx-side-panel-motion-easing-enter, cubic-bezier(.2, 0, 0, 1)),box-shadow var(--pfx-side-panel-motion-duration-enter, .22s) var(--pfx-side-panel-motion-easing-enter, cubic-bezier(.2, 0, 0, 1))}.pfx-surface-drawer.use-host-width{width:100%;max-width:100%}.pfx-surface-drawer.width-narrow{width:var(--pfx-side-panel-width, 420px)}.pfx-surface-drawer.width-default{width:var(--pfx-side-panel-width, 720px)}.pfx-surface-drawer.width-wide{width:var(--pfx-side-panel-width, 960px)}.pfx-surface-drawer.width-full{width:min(100vw,var(--pfx-side-panel-max-width, 100vw))}.pfx-surface-drawer__header{display:flex;align-items:flex-start;gap:var(--pfx-side-panel-header-gap, 12px);min-height:var(--pfx-side-panel-header-height, 64px);padding:var(--pfx-side-panel-header-padding-y, 16px) var(--pfx-side-panel-header-padding-x, 20px);box-sizing:border-box;border-bottom:1px solid var(--md-sys-color-outline-variant, var(--mat-sys-outline-variant));background:var(--md-sys-color-surface-container-high, var(--mat-sys-surface-container-high))}.pfx-surface-drawer__title-block{display:flex;align-items:flex-start;gap:12px;min-width:0;flex:1 1 auto}.pfx-surface-drawer__title-icon{flex:0 0 auto;display:grid;place-items:center;width:36px;height:36px;margin-top:1px;border-radius:10px;background:var(--md-sys-color-primary-container, var(--mat-sys-primary-container, rgba(47, 78, 178, .12)));color:var(--md-sys-color-primary, var(--mat-sys-primary, currentColor))}.pfx-surface-drawer__copy{min-width:0}.pfx-surface-drawer__title,.pfx-surface-drawer__subtitle{margin:0}.pfx-surface-drawer__title{font-size:1.125rem;font-weight:var(--mat-sys-title-medium-weight, 500);line-height:1.35}.pfx-surface-drawer__title:focus{outline:none}.pfx-surface-drawer__subtitle{margin-top:6px;color:var(--md-sys-color-on-surface-variant, var(--mat-sys-on-surface-variant));font-size:.875rem;line-height:1.45;text-wrap:pretty}.pfx-surface-drawer__close,.pfx-surface-drawer__back{flex:0 0 auto;--praxis-icon-button-surface-size: 36px;--praxis-icon-button-icon-size: 18px;--praxis-icon-button-radius: 10px;--praxis-icon-button-focus-radius: 10px;color:var(--md-sys-color-on-surface-variant, var(--mat-sys-on-surface-variant))}.pfx-surface-drawer__close{margin-inline-end:-4px;--praxis-icon-button-bg: color-mix( in srgb, var(--md-sys-color-on-surface, var(--mat-sys-on-surface)) 4.5%, transparent );--praxis-icon-button-border: 1px solid color-mix( in srgb, var(--md-sys-color-outline-variant, var(--mat-sys-outline-variant)) 48%, transparent )}.pfx-surface-drawer__close:hover:not(:disabled){color:var(--md-sys-color-on-surface, var(--mat-sys-on-surface));--praxis-icon-button-hover-bg: color-mix( in srgb, var(--md-sys-color-on-surface, var(--mat-sys-on-surface)) 11%, transparent );--praxis-icon-button-hover-border-color: color-mix( in srgb, var(--md-sys-color-outline, var(--mat-sys-outline)) 48%, transparent )}.pfx-surface-drawer__close:active:not(:disabled){--praxis-icon-button-active-bg: color-mix( in srgb, var(--md-sys-color-on-surface, var(--mat-sys-on-surface)) 16%, transparent )}.pfx-surface-drawer__back{margin-top:1px;--praxis-icon-button-bg: transparent;--praxis-icon-button-border: 1px solid transparent}.pfx-surface-drawer__back:hover:not(:disabled){color:var(--md-sys-color-primary, var(--mat-sys-primary));--praxis-icon-button-hover-bg: color-mix( in srgb, var(--md-sys-color-primary, var(--mat-sys-primary)) 12%, transparent );--praxis-icon-button-hover-border-color: color-mix( in srgb, var(--md-sys-color-primary, var(--mat-sys-primary)) 30%, transparent )}.pfx-surface-drawer__body{min-height:0;overflow:auto;overscroll-behavior:contain;padding:var(--pfx-side-panel-body-padding, 16px);background:var(--md-sys-color-surface, var(--mat-sys-surface))}@media(min-width:640px){.pfx-surface-drawer:not(.width-full){border-radius:var(--pfx-side-panel-border-radius, 16px 0 0 16px)}}@media(prefers-reduced-motion:reduce){.pfx-surface-drawer{transition:none}}\n"] }]
2363
2625
  }], ctorParameters: () => [{ type: i0.ChangeDetectorRef }, { type: i1$2.PraxisI18nService }], propDecorators: { contentHost: [{
2364
2626
  type: ViewChild,
2365
2627
  args: ['contentHost', { read: ViewContainerRef, static: true }]
@@ -2441,6 +2703,8 @@ function providePraxisSurfaceDrawerBridge() {
2441
2703
  let panel = null;
2442
2704
  let activeRef = null;
2443
2705
  const frameRefs = [];
2706
+ let navigatingBack = false;
2707
+ let closingSession = false;
2444
2708
  const createContent = (frame, mode, runtimeRef) => {
2445
2709
  if (!panel)
2446
2710
  return null;
@@ -2477,16 +2741,44 @@ function providePraxisSurfaceDrawerBridge() {
2477
2741
  runtime.__closeFrame?.(result);
2478
2742
  };
2479
2743
  const navigateBack = async (result) => {
2480
- const leaving = frameRefs[frameRefs.length - 1];
2481
- const moved = await panel?.backFrame() ?? false;
2482
- if (!moved)
2744
+ if (navigatingBack || closingSession)
2483
2745
  return false;
2484
- if (leaving) {
2485
- frameRefs.pop();
2486
- closeFrameRef(leaving, result ?? { type: 'back' });
2746
+ navigatingBack = true;
2747
+ try {
2748
+ const leaving = frameRefs[frameRefs.length - 1];
2749
+ const moved = await panel?.backFrame() ?? false;
2750
+ if (!moved)
2751
+ return false;
2752
+ if (leaving) {
2753
+ frameRefs.pop();
2754
+ closeFrameRef(leaving, result ?? { type: 'back' });
2755
+ }
2756
+ publishNavigationState();
2757
+ return true;
2758
+ }
2759
+ finally {
2760
+ navigatingBack = false;
2761
+ }
2762
+ };
2763
+ const requestSessionClose = async (reason, ref) => {
2764
+ if (closingSession || navigatingBack)
2765
+ return;
2766
+ closingSession = true;
2767
+ try {
2768
+ if (await panel?.canCloseSession())
2769
+ ref.close({ type: reason });
2770
+ }
2771
+ finally {
2772
+ closingSession = false;
2773
+ }
2774
+ };
2775
+ const requestDismiss = async (reason, ref) => {
2776
+ // Dismiss the current step, preserving the live parent collection.
2777
+ if (panel?.canGoBack) {
2778
+ await navigateBack({ type: reason });
2779
+ return;
2487
2780
  }
2488
- publishNavigationState();
2489
- return true;
2781
+ await requestSessionClose(reason, ref);
2490
2782
  };
2491
2783
  const createFrameRef = (frameId) => {
2492
2784
  const closedSubject = new Subject();
@@ -2623,10 +2915,7 @@ function providePraxisSurfaceDrawerBridge() {
2623
2915
  opts.minWidth ||
2624
2916
  opts.maxWidth);
2625
2917
  panelRef.instance.onClose = () => {
2626
- void panelRef.instance.canCloseSession().then((allowed) => {
2627
- if (allowed)
2628
- ref.close({ type: 'close' });
2629
- });
2918
+ void requestDismiss('close', ref);
2630
2919
  };
2631
2920
  panelRef.instance.onBack = () => { void activeRef?.back?.(); };
2632
2921
  ref.bindTitleUpdater((title) => panelRef.instance.setTitle(title));
@@ -2646,22 +2935,14 @@ function providePraxisSurfaceDrawerBridge() {
2646
2935
  panelRef.changeDetectorRef.detectChanges();
2647
2936
  },
2648
2937
  createCloser: (ref) => (reason = 'close') => {
2649
- void panel?.canCloseSession().then((allowed) => {
2650
- if (allowed)
2651
- ref.close({ type: reason });
2652
- });
2938
+ // Scope replacement closes the session, not just its current step.
2939
+ void requestSessionClose(reason, ref);
2653
2940
  },
2654
2941
  onBackdrop: (ref) => {
2655
- void panel?.canCloseSession().then((allowed) => {
2656
- if (allowed)
2657
- ref.close({ type: 'backdrop' });
2658
- });
2942
+ void requestDismiss('backdrop', ref);
2659
2943
  },
2660
2944
  onEsc: (ref) => {
2661
- void panel?.canCloseSession().then((allowed) => {
2662
- if (allowed)
2663
- ref.close({ type: 'esc' });
2664
- });
2945
+ void requestDismiss('esc', ref);
2665
2946
  },
2666
2947
  });
2667
2948
  result.closed$.subscribe(() => {
@@ -2721,6 +3002,7 @@ class GlobalConfigAdminService {
2721
3002
  dynamicFields: this.global.getDynamicFields(),
2722
3003
  table: this.global.getTable(),
2723
3004
  dialog: this.global.getDialog(),
3005
+ pages: this.global.getPages(),
2724
3006
  ai: this.global.get('ai'),
2725
3007
  cache: this.global.get('cache'),
2726
3008
  };
@@ -3305,6 +3587,96 @@ function buildGlobalConfigFormConfig(translate = (text) => text) {
3305
3587
  { name: safeName('dialog.variants.error.actions'), label: tx('Variant error - actions (JSON array)'), controlType: FieldControlType.TEXTAREA, dataAttributes: { globalPath: 'dialog.variants.error.actions', monospace: true } },
3306
3588
  { name: safeName('dialog.variants.error.styles'), label: tx('Variant error - styles (JSON)'), controlType: FieldControlType.TEXTAREA, dataAttributes: { globalPath: 'dialog.variants.error.styles', monospace: true }, hint: tx('Example JSON: {"containerColor":"var(--md-sys-color-surface)","containerBorderColor":"var(--md-sys-color-outline-variant)","backdropColor":"var(--md-sys-color-scrim)","actionButtonRadius":"8px"}') },
3307
3589
  { name: safeName('dialog.variants.error.animation'), label: tx('Variant error - animation (JSON/boolean)'), controlType: FieldControlType.TEXTAREA, dataAttributes: { globalPath: 'dialog.variants.error.animation', monospace: true } },
3590
+ // Dynamic Pages - Defaults
3591
+ {
3592
+ name: safeName('pages.defaults.layoutPreset'),
3593
+ label: tx('Preset de layout padrão'),
3594
+ controlType: FieldControlType.SELECT,
3595
+ selectOptions: [
3596
+ { text: tx('Definido pela página (sem preset forçado)'), value: '' },
3597
+ { text: tx('KPI + Tabela Operacional (kpi-plus-table)'), value: 'kpi-plus-table' },
3598
+ { text: tx('Visão Analítica (analytics-overview)'), value: 'analytics-overview' },
3599
+ { text: tx('Master-Detail Dashboard (master-detail-dashboard)'), value: 'master-detail-dashboard' },
3600
+ { text: tx('Monitoramento Operacional (ops-monitoring)'), value: 'ops-monitoring' },
3601
+ ],
3602
+ hint: tx('Preset estrutural aplicado quando a página não define layoutPreset próprio.'),
3603
+ dataAttributes: { globalPath: 'pages.defaults.layoutPreset' },
3604
+ },
3605
+ {
3606
+ name: safeName('pages.defaults.themePreset'),
3607
+ label: tx('Preset de tema padrão da página'),
3608
+ controlType: FieldControlType.SELECT,
3609
+ selectOptions: [
3610
+ { text: tx('Workspace Equilibrado (workspace-balanced)'), value: 'workspace-balanced' },
3611
+ { text: tx('Analítico Calmo (analytics-calm)'), value: 'analytics-calm' },
3612
+ { text: tx('Monitoramento Operacional (ops-monitoring)'), value: 'ops-monitoring' },
3613
+ { text: tx('Centro de Comando Executivo (executive-command-center)'), value: 'executive-command-center' },
3614
+ ],
3615
+ hint: tx('Define densidade, superfície e atmosfera padrão das páginas dinâmicas.'),
3616
+ dataAttributes: { globalPath: 'pages.defaults.themePreset' },
3617
+ },
3618
+ {
3619
+ name: safeName('pages.defaults.shellPreset'),
3620
+ label: tx('Preset padrão de moldura (Widget Shell)'),
3621
+ controlType: FieldControlType.SELECT,
3622
+ selectOptions: [
3623
+ { text: tx('Card Integrado (integrated-card)'), value: 'integrated-card' },
3624
+ { text: tx('Card com Contorno (outlined-card)'), value: 'outlined-card' },
3625
+ { text: tx('Card Elevado (elevated-card)'), value: 'elevated-card' },
3626
+ { text: tx('Card Tonal (tonal-card)'), value: 'tonal-card' },
3627
+ { text: tx('Card Seccionado (sectioned-card)'), value: 'sectioned-card' },
3628
+ { text: tx('Sem Moldura (frameless)'), value: 'frameless' },
3629
+ { text: tx('Painel de Dados (data-panel)'), value: 'data-panel' },
3630
+ { text: tx('Painel de Gráfico (chart-panel)'), value: 'chart-panel' },
3631
+ { text: tx('Painel de Métrica (metric-panel)'), value: 'metric-panel' },
3632
+ { text: tx('Card Executivo (executive-card)'), value: 'executive-card' },
3633
+ { text: tx('Barra de Filtro (filter-bar)'), value: 'filter-bar' },
3634
+ { text: tx('Vidro Escuro (dark-glass)'), value: 'dark-glass' },
3635
+ { text: tx('Vidro Claro (glass-light)'), value: 'glass-light' },
3636
+ { text: tx('Neutro Claro (light-neutral)'), value: 'light-neutral' },
3637
+ { text: tx('Grafite (graphite)'), value: 'graphite' },
3638
+ ],
3639
+ hint: tx('Usado quando nem o widget nem o tema da página definem um preset de shell.'),
3640
+ dataAttributes: { globalPath: 'pages.defaults.shellPreset' },
3641
+ },
3642
+ {
3643
+ name: safeName('pages.defaults.columns'),
3644
+ label: tx('Colunas padrão da grade'),
3645
+ controlType: FieldControlType.INPUT,
3646
+ numericFormat: 'integer',
3647
+ min: 1,
3648
+ max: 12,
3649
+ numericStep: 1,
3650
+ hint: tx('Quantidade padrão de colunas em layouts colunares ou canvas (1 a 12).'),
3651
+ dataAttributes: { globalPath: 'pages.defaults.columns' },
3652
+ },
3653
+ {
3654
+ name: safeName('pages.defaults.gap'),
3655
+ label: tx('Espaçamento padrão entre widgets (gap)'),
3656
+ controlType: FieldControlType.INPUT,
3657
+ placeholder: '16px',
3658
+ hint: tx('Ex.: 12px, 16px, 20px, 1.25rem.'),
3659
+ dataAttributes: { globalPath: 'pages.defaults.gap' },
3660
+ },
3661
+ {
3662
+ name: safeName('pages.defaults.paddingInline'),
3663
+ label: tx('Recuo horizontal padrão (paddingInline)'),
3664
+ controlType: FieldControlType.INPUT,
3665
+ placeholder: '0px',
3666
+ hint: tx('Ex.: 0px, 16px, 24px.'),
3667
+ dataAttributes: { globalPath: 'pages.defaults.paddingInline' },
3668
+ },
3669
+ {
3670
+ name: safeName('pages.defaults.autoRows'),
3671
+ label: tx('Modo padrão de altura de linhas no Canvas'),
3672
+ controlType: FieldControlType.SELECT,
3673
+ selectOptions: [
3674
+ { text: tx('Adaptado ao conteúdo (content)'), value: 'content' },
3675
+ { text: tx('Altura de linha fixa (fixed)'), value: 'fixed' },
3676
+ ],
3677
+ hint: tx('Controla se os blocos no canvas crescem conforme o conteúdo ou seguem rowUnit fixo.'),
3678
+ dataAttributes: { globalPath: 'pages.defaults.autoRows' },
3679
+ },
3308
3680
  ];
3309
3681
  const cfg = {
3310
3682
  sections: [
@@ -3592,6 +3964,34 @@ function buildGlobalConfigFormConfig(translate = (text) => text) {
3592
3964
  },
3593
3965
  ],
3594
3966
  },
3967
+ {
3968
+ id: 'dynamic-pages',
3969
+ title: tx('Dynamic Pages'),
3970
+ rows: [
3971
+ {
3972
+ id: 'pages-row-presets',
3973
+ columns: [
3974
+ {
3975
+ id: 'pages-col-presets-1',
3976
+ fields: [
3977
+ safeName('pages.defaults.layoutPreset'),
3978
+ safeName('pages.defaults.themePreset'),
3979
+ safeName('pages.defaults.shellPreset'),
3980
+ ],
3981
+ },
3982
+ {
3983
+ id: 'pages-col-presets-2',
3984
+ fields: [
3985
+ safeName('pages.defaults.columns'),
3986
+ safeName('pages.defaults.gap'),
3987
+ safeName('pages.defaults.paddingInline'),
3988
+ safeName('pages.defaults.autoRows'),
3989
+ ],
3990
+ },
3991
+ ],
3992
+ },
3993
+ ],
3994
+ },
3595
3995
  ],
3596
3996
  actions: {
3597
3997
  placement: 'afterSections',
@@ -3640,7 +4040,7 @@ class GlobalConfigEditorComponent {
3640
4040
  currentValues = {};
3641
4041
  pathMap = {};
3642
4042
  bootstrappedSections = new Set();
3643
- allSections = ['crud', 'dynamic-fields', 'cache', 'table', 'dialog', 'ai-credentials', 'ai-model', 'ai-embedding'];
4043
+ allSections = ['crud', 'dynamic-fields', 'cache', 'table', 'dialog', 'dynamic-pages', 'ai-credentials', 'ai-model', 'ai-embedding'];
3644
4044
  // SettingsPanel integration signals
3645
4045
  isDirty$ = new BehaviorSubject(false);
3646
4046
  isValid$ = new BehaviorSubject(true);
@@ -3650,6 +4050,7 @@ class GlobalConfigEditorComponent {
3650
4050
  hostCache;
3651
4051
  hostTable;
3652
4052
  hostDialog;
4053
+ hostPages;
3653
4054
  hostAiCredentials;
3654
4055
  hostAiModel;
3655
4056
  hostAiEmbedding;
@@ -3664,7 +4065,10 @@ class GlobalConfigEditorComponent {
3664
4065
  component: 'GlobalConfigEditorComponent',
3665
4066
  };
3666
4067
  providedDynamicFormCtor = inject(GLOBAL_CONFIG_DYNAMIC_FORM_COMPONENT, { optional: true });
3667
- dynamicFormCtor = this.providedDynamicFormCtor ?? null;
4068
+ componentMetadata = inject(ComponentMetadataRegistry, { optional: true });
4069
+ dynamicFormCtor = this.providedDynamicFormCtor ??
4070
+ this.componentMetadata?.get('praxis-dynamic-form')?.component ??
4071
+ null;
3668
4072
  loggedMissingDynamicForm = false;
3669
4073
  // Guardar instância do form da seção 'dialog' para atualizar controles diretamente
3670
4074
  dialogFormInst = null;
@@ -3712,11 +4116,16 @@ class GlobalConfigEditorComponent {
3712
4116
  this.snack = snack;
3713
4117
  }
3714
4118
  async ngOnInit() {
4119
+ await this.refreshStoredConfigState();
4120
+ if (this.destroyRef.destroyed)
4121
+ return;
3715
4122
  const cfg = this.admin.getEffectiveConfig();
3716
4123
  const flat = this.flatten(cfg);
3717
4124
  this.formConfig = buildGlobalConfigFormConfig(this.tx.bind(this));
3718
4125
  this.applyConfigSnapshot(flat, { resetForms: false });
3719
4126
  await this.loadProviderCatalog();
4127
+ if (this.destroyRef.destroyed)
4128
+ return;
3720
4129
  this.applyProviderOptions();
3721
4130
  this.applyEmbeddingProviderOptions();
3722
4131
  const providerSafe = this.safeName('ai.provider');
@@ -3734,10 +4143,9 @@ class GlobalConfigEditorComponent {
3734
4143
  this.syncEmbeddingDefaults(false);
3735
4144
  this.ensureEmbeddingModelDefaults(false);
3736
4145
  this.ensureEmbeddingDimensionsDefaults(false);
3737
- await this.refreshStoredConfigState();
3738
4146
  // Monitor API Key changes to auto-fetch
3739
4147
  this.apiKeyChanged$.pipe(debounceTime(1500), // Wait for typing to stop
3740
- distinctUntilChanged((prev, curr) => prev.apiKey === curr.apiKey && prev.provider === curr.provider), filter(({ apiKey, provider }) => this.canAutoRefreshModels(provider, apiKey))).subscribe(() => {
4148
+ distinctUntilChanged((prev, curr) => prev.apiKey === curr.apiKey && prev.provider === curr.provider), filter(({ apiKey, provider }) => this.canAutoRefreshModels(provider, apiKey)), takeUntilDestroyed(this.destroyRef)).subscribe(() => {
3741
4149
  this.refreshModels();
3742
4150
  });
3743
4151
  if (this.hasApiKey && this.selectedProvider?.supportsModels !== false) {
@@ -3780,7 +4188,11 @@ class GlobalConfigEditorComponent {
3780
4188
  }
3781
4189
  }
3782
4190
  if (this.hasApiKey) {
3783
- setTimeout(() => this.ensureAiModelForm(), 0);
4191
+ setTimeout(() => {
4192
+ if (!this.destroyRef.destroyed) {
4193
+ this.ensureAiModelForm();
4194
+ }
4195
+ }, 0);
3784
4196
  }
3785
4197
  else {
3786
4198
  if (this.aiModelFormRef) {
@@ -3824,9 +4236,17 @@ class GlobalConfigEditorComponent {
3824
4236
  }
3825
4237
  }
3826
4238
  const fms = (this.formConfig.fieldMetadata || []).filter((f) => names.has(f.name));
3827
- return { sections: [sec], fieldMetadata: fms };
4239
+ const framelessSection = { ...sec, title: '' };
4240
+ return {
4241
+ sections: [framelessSection],
4242
+ fieldMetadata: fms,
4243
+ actions: this.formConfig.actions,
4244
+ };
3828
4245
  }
3829
4246
  bootstrapDynamicForms() {
4247
+ if (this.destroyRef.destroyed) {
4248
+ return;
4249
+ }
3830
4250
  if (!this.dynamicFormCtor) {
3831
4251
  if (!this.loggedMissingDynamicForm) {
3832
4252
  this.logger.warnOnce('[GlobalConfigEditor] Dynamic form component was not provided. Set GLOBAL_CONFIG_DYNAMIC_FORM_COMPONENT to enable form rendering.', this.buildLogOptions({ token: 'GLOBAL_CONFIG_DYNAMIC_FORM_COMPONENT' }, { dedupeKey: 'global-config-editor:missing-dynamic-form' }));
@@ -3840,10 +4260,15 @@ class GlobalConfigEditorComponent {
3840
4260
  { id: 'cache', host: this.hostCache, cfg: this.buildSectionConfig('cache') },
3841
4261
  { id: 'table', host: this.hostTable, cfg: this.buildSectionConfig('table') },
3842
4262
  { id: 'dialog', host: this.hostDialog, cfg: this.buildSectionConfig('dialog') },
4263
+ { id: 'dynamic-pages', host: this.hostPages, cfg: this.buildSectionConfig('dynamic-pages') },
3843
4264
  { id: 'ai-credentials', host: this.hostAiCredentials, cfg: this.buildSectionConfig('ai-credentials') },
3844
4265
  { id: 'ai-embedding', host: this.hostAiEmbedding, cfg: this.buildSectionConfig('ai-embedding') },
3845
4266
  ];
3846
4267
  for (const g of groups) {
4268
+ if (this.destroyRef.destroyed) {
4269
+ return;
4270
+ }
4271
+ let ref = null;
3847
4272
  try {
3848
4273
  if (!g.host) {
3849
4274
  this.logger.warnOnce('[GlobalConfigEditor] Missing host for section', this.buildLogOptions({ sectionId: g.id }, {
@@ -3856,7 +4281,7 @@ class GlobalConfigEditorComponent {
3856
4281
  context: { actionId: `section.${g.id}` },
3857
4282
  throttleKey: 'global-config-editor:create-form-section',
3858
4283
  }));
3859
- const ref = g.host.createComponent(this.dynamicFormCtor);
4284
+ ref = g.host.createComponent(this.dynamicFormCtor);
3860
4285
  ref.setInput('config', g.cfg);
3861
4286
  ref.setInput('mode', 'edit');
3862
4287
  // Não habilitar o modo de edição de layout (canvas) - queremos apenas edição de valores
@@ -3884,7 +4309,10 @@ class GlobalConfigEditorComponent {
3884
4309
  }
3885
4310
  catch { }
3886
4311
  if (inst?.valueChange?.subscribe) {
3887
- inst.valueChange.subscribe((ev) => this.onValueChange(g.id, ev));
4312
+ const stream = typeof inst.valueChange.pipe === 'function'
4313
+ ? inst.valueChange.pipe(takeUntilDestroyed(this.destroyRef))
4314
+ : inst.valueChange;
4315
+ stream.subscribe((ev) => this.onValueChange(g.id, ev));
3888
4316
  }
3889
4317
  this.componentRefs.set(g.id, ref);
3890
4318
  if (g.id === 'dialog') {
@@ -3894,12 +4322,27 @@ class GlobalConfigEditorComponent {
3894
4322
  if (g.id === 'ai-embedding') {
3895
4323
  this.aiEmbeddingFormRef = ref;
3896
4324
  }
4325
+ if (this.destroyRef.destroyed) {
4326
+ try {
4327
+ ref.destroy();
4328
+ }
4329
+ catch { }
4330
+ this.componentRefs.delete(g.id);
4331
+ return;
4332
+ }
4333
+ const createdRef = ref;
3897
4334
  this.destroyRef.onDestroy(() => { try {
3898
- ref.destroy();
4335
+ createdRef.destroy();
3899
4336
  }
3900
4337
  catch { } });
3901
4338
  }
3902
4339
  catch (err) {
4340
+ if (ref) {
4341
+ try {
4342
+ ref.destroy();
4343
+ }
4344
+ catch { }
4345
+ }
3903
4346
  this.logger.error('[GlobalConfigEditor] Failed to create form section', this.buildLogOptions({ sectionId: g.id, error: err }, { context: { actionId: `section.${g.id}.create` } }));
3904
4347
  }
3905
4348
  }
@@ -4224,17 +4667,18 @@ class GlobalConfigEditorComponent {
4224
4667
  this.syncEmbeddingDefaults();
4225
4668
  }
4226
4669
  createAiModelForm() {
4227
- if (!this.dynamicFormCtor || !this.hostAiModel)
4670
+ if (this.destroyRef.destroyed || !this.dynamicFormCtor || !this.hostAiModel)
4228
4671
  return;
4229
4672
  const cfg = this.buildSectionConfig('ai-model');
4230
4673
  if (!cfg.sections?.length)
4231
4674
  return;
4675
+ let ref = null;
4232
4676
  try {
4233
4677
  // Apply pending options to metadata before creating
4234
4678
  if (this.pendingModelOptions.length) {
4235
4679
  this.setModelFieldOptions(this.pendingModelOptions);
4236
4680
  }
4237
- const ref = this.hostAiModel.createComponent(this.dynamicFormCtor);
4681
+ ref = this.hostAiModel.createComponent(this.dynamicFormCtor);
4238
4682
  ref.setInput('config', cfg);
4239
4683
  ref.setInput('mode', 'edit');
4240
4684
  ref.setInput('enableCustomization', false);
@@ -4260,17 +4704,34 @@ class GlobalConfigEditorComponent {
4260
4704
  }
4261
4705
  catch { }
4262
4706
  if (inst?.valueChange?.subscribe) {
4263
- inst.valueChange.subscribe((ev) => this.onValueChange('ai-model', ev));
4707
+ const stream = typeof inst.valueChange.pipe === 'function'
4708
+ ? inst.valueChange.pipe(takeUntilDestroyed(this.destroyRef))
4709
+ : inst.valueChange;
4710
+ stream.subscribe((ev) => this.onValueChange('ai-model', ev));
4711
+ }
4712
+ if (this.destroyRef.destroyed) {
4713
+ try {
4714
+ ref.destroy();
4715
+ }
4716
+ catch { }
4717
+ return;
4264
4718
  }
4265
4719
  this.componentRefs.set('ai-model', ref);
4266
4720
  this.aiModelFormRef = ref;
4267
4721
  this.updateModelDetails(this.currentValues[this.safeName('ai.model')] || '');
4722
+ const createdRef = ref;
4268
4723
  this.destroyRef.onDestroy(() => { try {
4269
- ref.destroy();
4724
+ createdRef.destroy();
4270
4725
  }
4271
4726
  catch { } });
4272
4727
  }
4273
4728
  catch (err) {
4729
+ if (ref) {
4730
+ try {
4731
+ ref.destroy();
4732
+ }
4733
+ catch { }
4734
+ }
4274
4735
  this.logger.error('[GlobalConfigEditor] Failed to create AI model form', this.buildLogOptions({ error: err }, { context: { actionId: 'section.ai-model.create' } }));
4275
4736
  }
4276
4737
  }
@@ -4308,15 +4769,23 @@ class GlobalConfigEditorComponent {
4308
4769
  }
4309
4770
  // SettingsPanel expects these methods
4310
4771
  reset() {
4311
- const flat = {};
4312
- for (const safe of Object.keys(this.initialValues))
4313
- flat[safe] = this.initialValues[safe];
4314
- for (const fm of this.formConfig.fieldMetadata || []) {
4315
- const v = flat[fm.name];
4772
+ const resetValues = {};
4773
+ for (const safe of Object.keys(this.pathMap)) {
4774
+ if (safe in this.initialValues) {
4775
+ resetValues[safe] = this.initialValues[safe];
4776
+ }
4777
+ else {
4778
+ resetValues[safe] = null;
4779
+ }
4780
+ }
4781
+ for (const fm of this.formConfig?.fieldMetadata || []) {
4782
+ const v = this.initialValues[fm.name];
4316
4783
  fm.defaultValue = v;
4317
4784
  }
4318
4785
  this.currentValues = { ...this.initialValues };
4786
+ this.patchFormsWithValues(resetValues);
4319
4787
  this.isDirty$.next(false);
4788
+ this.cdr.detectChanges();
4320
4789
  }
4321
4790
  getSettingsValue() {
4322
4791
  const flat = this.buildChangedValues();
@@ -4324,7 +4793,8 @@ class GlobalConfigEditorComponent {
4324
4793
  }
4325
4794
  async onSave() {
4326
4795
  const partial = this.getSettingsValue();
4327
- const validationMessage = this.validateCompactTableAppearancePayload(partial);
4796
+ const validationMessage = this.validateCompactTableAppearancePayload(partial) ||
4797
+ this.validatePagesDefaultsPayload(partial);
4328
4798
  if (validationMessage) {
4329
4799
  try {
4330
4800
  this.snack.open(validationMessage, undefined, { duration: 5000 });
@@ -4338,6 +4808,8 @@ class GlobalConfigEditorComponent {
4338
4808
  // Update baseline after save
4339
4809
  this.initialValues = { ...this.currentValues };
4340
4810
  this.isDirty$.next(false);
4811
+ await this.refreshStoredConfigState();
4812
+ this.cdr.detectChanges();
4341
4813
  try {
4342
4814
  this.snack.open(this.tx('Settings saved'), undefined, { duration: 2000 });
4343
4815
  }
@@ -4528,8 +5000,26 @@ class GlobalConfigEditorComponent {
4528
5000
  return this.tx('Save failed.');
4529
5001
  }
4530
5002
  normalizeFieldValue(path, value) {
5003
+ if (path === 'pages.defaults.columns') {
5004
+ if (typeof value === 'number' && Number.isFinite(value)) {
5005
+ return Math.max(1, Math.min(12, Math.round(value)));
5006
+ }
5007
+ if (typeof value === 'string') {
5008
+ const trimmed = value.trim();
5009
+ if (!trimmed)
5010
+ return null;
5011
+ const parsed = Number(trimmed);
5012
+ return Number.isFinite(parsed)
5013
+ ? Math.max(1, Math.min(12, Math.round(parsed)))
5014
+ : value;
5015
+ }
5016
+ return value;
5017
+ }
4531
5018
  if (typeof value !== 'string')
4532
5019
  return value;
5020
+ if (path === 'pages.defaults.gap' || path === 'pages.defaults.paddingInline') {
5021
+ return value.trim();
5022
+ }
4533
5023
  if (!TABLE_COMPACT_SPACING_PATHS.has(path) && !TABLE_COMPACT_FONT_SIZE_PATHS.has(path)) {
4534
5024
  return value;
4535
5025
  }
@@ -4577,6 +5067,36 @@ class GlobalConfigEditorComponent {
4577
5067
  }
4578
5068
  return null;
4579
5069
  }
5070
+ validatePagesDefaultsPayload(partial) {
5071
+ const defaults = partial?.pages?.defaults;
5072
+ if (!defaults || typeof defaults !== 'object')
5073
+ return null;
5074
+ const checks = [
5075
+ {
5076
+ path: 'pages.defaults.gap',
5077
+ label: 'pages.defaults.gap',
5078
+ value: defaults.gap,
5079
+ example: '16px',
5080
+ },
5081
+ {
5082
+ path: 'pages.defaults.paddingInline',
5083
+ label: 'pages.defaults.paddingInline',
5084
+ value: defaults.paddingInline,
5085
+ example: '0px',
5086
+ },
5087
+ ];
5088
+ for (const check of checks) {
5089
+ if (typeof check.value !== 'string')
5090
+ continue;
5091
+ const normalized = this.normalizeFieldValue(check.path, check.value);
5092
+ if (!normalized)
5093
+ continue;
5094
+ if (!TABLE_COMPACT_SPACING_REGEX.test(normalized)) {
5095
+ return `Invalid value in ${check.label}. Use a valid CSS measure, such as ${check.example}.`;
5096
+ }
5097
+ }
5098
+ return null;
5099
+ }
4580
5100
  getVariantIcon(key) {
4581
5101
  const safe = this.safeName(`dialog.variants.${key}.icon`);
4582
5102
  return this.currentValues[safe];
@@ -4676,7 +5196,7 @@ class GlobalConfigEditorComponent {
4676
5196
  return true;
4677
5197
  }
4678
5198
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.14", ngImport: i0, type: GlobalConfigEditorComponent, deps: [{ token: GlobalConfigAdminService }, { token: i2$1.MatSnackBar }], target: i0.ɵɵFactoryTarget.Component });
4679
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.14", type: GlobalConfigEditorComponent, isStandalone: true, selector: "praxis-global-config-editor", viewQueries: [{ propertyName: "hostCrud", first: true, predicate: ["hostCrud"], descendants: true, read: ViewContainerRef, static: true }, { propertyName: "hostFields", first: true, predicate: ["hostFields"], descendants: true, read: ViewContainerRef, static: true }, { propertyName: "hostCache", first: true, predicate: ["hostCache"], descendants: true, read: ViewContainerRef, static: true }, { propertyName: "hostTable", first: true, predicate: ["hostTable"], descendants: true, read: ViewContainerRef, static: true }, { propertyName: "hostDialog", first: true, predicate: ["hostDialog"], descendants: true, read: ViewContainerRef, static: true }, { propertyName: "hostAiCredentials", first: true, predicate: ["hostAiCredentials"], descendants: true, read: ViewContainerRef, static: true }, { propertyName: "hostAiModel", first: true, predicate: ["hostAiModel"], descendants: true, read: ViewContainerRef }, { propertyName: "hostAiEmbedding", first: true, predicate: ["hostAiEmbedding"], descendants: true, read: ViewContainerRef, static: true }], ngImport: i0, template: `
5199
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.14", type: GlobalConfigEditorComponent, isStandalone: true, selector: "praxis-global-config-editor", viewQueries: [{ propertyName: "hostCrud", first: true, predicate: ["hostCrud"], descendants: true, read: ViewContainerRef, static: true }, { propertyName: "hostFields", first: true, predicate: ["hostFields"], descendants: true, read: ViewContainerRef, static: true }, { propertyName: "hostCache", first: true, predicate: ["hostCache"], descendants: true, read: ViewContainerRef, static: true }, { propertyName: "hostTable", first: true, predicate: ["hostTable"], descendants: true, read: ViewContainerRef, static: true }, { propertyName: "hostDialog", first: true, predicate: ["hostDialog"], descendants: true, read: ViewContainerRef, static: true }, { propertyName: "hostPages", first: true, predicate: ["hostPages"], descendants: true, read: ViewContainerRef, static: true }, { propertyName: "hostAiCredentials", first: true, predicate: ["hostAiCredentials"], descendants: true, read: ViewContainerRef, static: true }, { propertyName: "hostAiModel", first: true, predicate: ["hostAiModel"], descendants: true, read: ViewContainerRef }, { propertyName: "hostAiEmbedding", first: true, predicate: ["hostAiEmbedding"], descendants: true, read: ViewContainerRef, static: true }], ngImport: i0, template: `
4680
5200
  <mat-accordion multi>
4681
5201
  <mat-expansion-panel>
4682
5202
  <mat-expansion-panel-header>
@@ -4974,8 +5494,18 @@ class GlobalConfigEditorComponent {
4974
5494
  <div class="dlg-icon-helpers__hint">{{ tx('The text field above remains editable. These buttons only help with selection/clear preview.') }}</div>
4975
5495
  </div>
4976
5496
  </mat-expansion-panel>
5497
+ <mat-expansion-panel>
5498
+ <mat-expansion-panel-header>
5499
+ <mat-panel-title>
5500
+ <mat-icon class="panel-icon">dashboard_customize</mat-icon>
5501
+ {{ tx('Dynamic Pages') }}
5502
+ </mat-panel-title>
5503
+ <mat-panel-description>{{ tx('Global presets for layout, theme, widget shell and canvas grid') }}</mat-panel-description>
5504
+ </mat-expansion-panel-header>
5505
+ <ng-template #hostPages></ng-template>
5506
+ </mat-expansion-panel>
4977
5507
  </mat-accordion>
4978
- `, isInline: true, styles: [".dlg-icon-helpers{margin:12px 16px 4px;padding:12px;border:1px dashed var(--md-sys-color-outline-variant);border-radius:var(--md-sys-shape-corner-small, 8px)}.dlg-icon-helpers__head{font-weight:600;margin-bottom:8px;opacity:.8}.dlg-icon-helpers__row{display:flex;align-items:center;gap:12px;padding:6px 0}.dlg-icon-helpers__label{text-transform:capitalize;width:96px;opacity:.8}.dlg-icon-helpers__preview{width:24px;height:24px}.dlg-icon-helpers__value{font-family:monospace;font-size:12px;opacity:.8}.dlg-icon-helpers__hint{margin-top:8px;font-size:12px;opacity:.7}.panel-icon{margin-right:12px;color:var(--md-sys-color-primary)}.ai-config-container{padding:16px;display:flex;flex-direction:column;gap:24px}.ai-config-source{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;border-radius:var(--md-sys-shape-corner-medium, 10px);border:1px dashed var(--md-sys-color-outline-variant);background:var(--md-sys-color-surface-container-low);font-size:12px;color:var(--md-sys-color-on-surface-variant);flex-wrap:wrap}.ai-config-source__meta{display:inline-flex;align-items:center;gap:8px}.ai-action-btn--clear{background:var(--md-sys-color-error-container);color:var(--md-sys-color-on-error-container);--mdc-outlined-button-container-color: var(--md-sys-color-error-container);--mdc-outlined-button-label-text-color: var(--md-sys-color-on-error-container);--mdc-outlined-button-outline-color: var(--md-sys-color-error);--mat-mdc-button-persistent-ripple-color: var(--md-sys-color-on-error-container);--mat-mdc-button-ripple-color: var(--md-sys-color-on-error-container)}.ai-action-btn--clear:hover{background:var(--md-sys-color-error-container)}.ai-group-title{display:flex;align-items:center;gap:8px;font-weight:500;font-size:14px;color:var(--md-sys-color-primary);margin-bottom:12px;border-bottom:1px solid var(--md-sys-color-outline-variant);padding-bottom:4px}.ai-group-title mat-icon{font-size:20px;width:20px;height:20px}.ai-group ::ng-deep .form-actions,.ai-group ::ng-deep button[type=submit]{display:none!important}.ai-credentials-row{display:flex;align-items:flex-start;gap:16px;flex-wrap:wrap}.ai-group-header{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.ai-provider-summary{display:flex;align-items:center;gap:12px;padding:8px 12px;border-radius:var(--md-sys-shape-corner-medium, 10px);background:var(--md-sys-color-surface-variant);border:1px solid var(--md-sys-color-outline-variant);margin:8px 0 4px;flex-wrap:wrap}.ai-provider-icon{width:32px;height:32px;border-radius:var(--md-sys-shape-corner-small, 8px);border:1px solid var(--md-sys-color-outline-variant);display:flex;align-items:center;justify-content:center;background:var(--md-sys-color-surface);color:var(--md-sys-color-primary);flex:0 0 auto}.provider-svg{width:18px;height:18px}.ai-provider-meta{display:flex;flex-direction:column;gap:2px;min-width:200px;flex:1 1 auto}.ai-provider-name{font-weight:600;font-size:13px}.ai-provider-desc{font-size:12px;opacity:.75}.ai-provider-key{display:inline-flex;align-items:center;gap:6px;padding:4px 10px;border-radius:999px;border:1px solid var(--md-sys-color-outline-variant);background:var(--md-sys-color-surface-container-lowest);color:var(--md-sys-color-on-surface-variant);font-size:11px;font-weight:600;letter-spacing:.2px;box-shadow:var(--md-sys-elevation-level1, 0 1px 2px rgba(0,0,0,.2))}.ai-provider-key mat-icon{width:16px;height:16px;font-size:16px}.ai-provider-key.is-present{background:var(--md-sys-color-primary-container);color:var(--md-sys-color-on-primary-container);border-color:var(--md-sys-color-primary)}.ai-provider-key.is-saved{background:var(--md-sys-color-secondary-container);color:var(--md-sys-color-on-secondary-container);border-color:var(--md-sys-color-secondary)}.ai-provider-key.is-missing{background:var(--md-sys-color-surface-container-low);color:var(--md-sys-color-on-surface-variant);border-style:dashed;opacity:.9}.ai-provider-key.is-unlocked{background:var(--md-sys-color-tertiary-container);color:var(--md-sys-color-on-tertiary-container);border-color:var(--md-sys-color-tertiary)}.ai-action-btn{display:inline-flex;align-items:center;gap:8px;height:40px;padding:0 14px;min-width:168px;border-radius:var(--md-sys-shape-corner-medium, 12px);white-space:nowrap;background:var(--md-sys-color-secondary-container);color:var(--md-sys-color-on-secondary-container);border-color:var(--md-sys-color-outline-variant);box-shadow:var(--md-sys-elevation-level1, 0 1px 2px rgba(0,0,0,.2));transition:background-color .15s ease,box-shadow .15s ease,transform .06s ease;--mdc-outlined-button-container-color: var(--md-sys-color-secondary-container);--mdc-outlined-button-label-text-color: var(--md-sys-color-on-secondary-container);--mdc-outlined-button-outline-color: var(--md-sys-color-outline-variant);--mat-mdc-button-persistent-ripple-color: var(--md-sys-color-on-secondary-container);--mat-mdc-button-ripple-color: var(--md-sys-color-on-secondary-container)}.ai-action-btn .mat-button-wrapper,.ai-action-btn .mdc-button__label{display:inline-flex;align-items:center;gap:8px;line-height:1;height:100%}.ai-action-btn .mat-icon{width:18px;height:18px;font-size:18px;line-height:18px}.ai-action-btn .ai-action-label{display:inline-flex;align-items:center;line-height:1}.ai-action-btn .mat-progress-spinner,.ai-action-btn .btn-spinner{display:inline-flex;align-items:center;justify-content:center;vertical-align:middle}.ai-action-btn:hover{background:var(--md-sys-color-secondary-container);box-shadow:var(--md-sys-elevation-level2, 0 2px 6px rgba(0,0,0,.25))}.ai-action-btn:active{transform:translateY(1px)}.ai-action-btn:focus-visible{outline:2px solid var(--md-sys-color-primary);outline-offset:2px}.ai-action-btn.is-success{background:var(--md-sys-color-tertiary-container);color:var(--md-sys-color-on-tertiary-container);border-color:var(--md-sys-color-tertiary);--mdc-outlined-button-container-color: var(--md-sys-color-tertiary-container);--mdc-outlined-button-label-text-color: var(--md-sys-color-on-tertiary-container);--mdc-outlined-button-outline-color: var(--md-sys-color-tertiary);--mat-mdc-button-persistent-ripple-color: var(--md-sys-color-on-tertiary-container);--mat-mdc-button-ripple-color: var(--md-sys-color-on-tertiary-container)}.ai-action-btn.is-success:hover{background:var(--md-sys-color-tertiary-container)}.ai-action-btn:disabled{background:var(--md-sys-color-surface-container-low);color:var(--md-sys-color-on-surface-variant);border-color:var(--md-sys-color-outline-variant);box-shadow:none;opacity:.7}.ai-form-inline{flex:1;min-width:300px}.ai-credentials-row button{margin-top:4px;height:40px}.btn-spinner{margin-right:8px}.ai-feedback{margin-top:8px;display:flex;align-items:center;gap:8px;padding:8px 12px;background:var(--md-sys-color-error-container);color:var(--md-sys-color-on-error-container);border-radius:var(--md-sys-shape-corner-extra-small, 4px);font-size:13px}.ai-feedback--warn{background:var(--md-sys-color-tertiary-container);color:var(--md-sys-color-on-tertiary-container)}.disabled-group{opacity:.6;pointer-events:none}.ai-model-content{display:flex;flex-direction:column;gap:8px}.ai-model-controls{display:flex;align-items:flex-start;gap:8px}.ai-model-controls ::ng-deep praxis-dynamic-form{flex:1}.ai-model-details{font-size:12px;color:var(--md-sys-color-on-surface-variant);margin-left:4px}.ai-subtext{font-size:12px;color:var(--md-sys-color-on-surface-variant)}.ai-header-actions{display:inline-flex;align-items:center;gap:8px;flex-wrap:wrap}.ai-placeholder{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:24px;background:var(--md-sys-color-surface-container-low);border-radius:var(--md-sys-shape-corner-small, 8px);color:var(--md-sys-color-outline);gap:8px;text-align:center;font-size:13px}.spin{animation:spin 1s linear infinite}@keyframes spin{to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}\n"], dependencies: [{ kind: "ngmodule", type: MatSnackBarModule }, { kind: "ngmodule", type: MatExpansionModule }, { kind: "directive", type: i3$1.MatAccordion, selector: "mat-accordion", inputs: ["hideToggle", "displayMode", "togglePosition"], exportAs: ["matAccordion"] }, { kind: "component", type: i3$1.MatExpansionPanel, selector: "mat-expansion-panel", inputs: ["hideToggle", "togglePosition"], outputs: ["afterExpand", "afterCollapse"], exportAs: ["matExpansionPanel"] }, { kind: "component", type: i3$1.MatExpansionPanelHeader, selector: "mat-expansion-panel-header", inputs: ["expandedHeight", "collapsedHeight", "tabIndex"] }, { kind: "directive", type: i3$1.MatExpansionPanelTitle, selector: "mat-panel-title" }, { kind: "directive", type: i3$1.MatExpansionPanelDescription, selector: "mat-panel-description" }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i3.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i4.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: MatTooltipModule }, { kind: "directive", type: i4$1.MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipPosition", "matTooltipPositionAtOrigin", "matTooltipDisabled", "matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }, { kind: "ngmodule", type: MatProgressSpinnerModule }, { kind: "component", type: i7.MatProgressSpinner, selector: "mat-progress-spinner, mat-spinner", inputs: ["color", "mode", "value", "diameter", "strokeWidth"], exportAs: ["matProgressSpinner"] }, { kind: "ngmodule", type: MatChipsModule }, { kind: "component", type: i8.MatChipOption, selector: "mat-basic-chip-option, [mat-basic-chip-option], mat-chip-option, [mat-chip-option]", inputs: ["selectable", "selected"], outputs: ["selectionChange"] }, { kind: "component", type: PraxisIconButtonComponent, selector: "button[praxisIconButton]", inputs: ["praxisIconButton", "size", "appearance", "presentation", "pressed", "busy"] }, { kind: "directive", type: PraxisIconDirective, selector: "mat-icon[praxisIcon]", inputs: ["praxisIcon"] }] });
5508
+ `, isInline: true, styles: [".dlg-icon-helpers{margin:12px 16px 4px;padding:12px;border:1px dashed var(--md-sys-color-outline-variant);border-radius:var(--md-sys-shape-corner-small, 8px)}.dlg-icon-helpers__head{font-weight:600;margin-bottom:8px;opacity:.8}.dlg-icon-helpers__row{display:flex;align-items:center;gap:12px;padding:6px 0}.dlg-icon-helpers__label{text-transform:capitalize;width:96px;opacity:.8}.dlg-icon-helpers__preview{width:24px;height:24px}.dlg-icon-helpers__value{font-family:monospace;font-size:12px;opacity:.8}.dlg-icon-helpers__hint{margin-top:8px;font-size:12px;opacity:.7}.panel-icon{margin-right:12px;color:var(--md-sys-color-primary);flex-shrink:0}:host ::ng-deep .mat-expansion-panel-header{height:auto!important;min-height:54px;padding-block:10px}:host ::ng-deep .mat-expansion-panel-header-title,:host ::ng-deep .mat-expansion-panel-header-description{line-height:1.35}:host ::ng-deep .mat-expansion-panel-body .form-section{border:none;background:transparent;box-shadow:none;padding:4px 0 0}@media(max-width:560px){:host ::ng-deep .mat-expansion-panel-header .mat-content{flex-direction:column;align-items:flex-start;gap:4px}:host ::ng-deep .mat-expansion-panel-header-title,:host ::ng-deep .mat-expansion-panel-header-description{margin-right:0}}.ai-config-container{padding:16px;display:flex;flex-direction:column;gap:24px}.ai-config-source{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;border-radius:var(--md-sys-shape-corner-medium, 10px);border:1px dashed var(--md-sys-color-outline-variant);background:var(--md-sys-color-surface-container-low);font-size:12px;color:var(--md-sys-color-on-surface-variant);flex-wrap:wrap}.ai-config-source__meta{display:inline-flex;align-items:center;gap:8px}.ai-action-btn--clear{background:var(--md-sys-color-error-container);color:var(--md-sys-color-on-error-container);--mdc-outlined-button-container-color: var(--md-sys-color-error-container);--mdc-outlined-button-label-text-color: var(--md-sys-color-on-error-container);--mdc-outlined-button-outline-color: var(--md-sys-color-error);--mat-mdc-button-persistent-ripple-color: var(--md-sys-color-on-error-container);--mat-mdc-button-ripple-color: var(--md-sys-color-on-error-container)}.ai-action-btn--clear:hover{background:var(--md-sys-color-error-container)}.ai-group-title{display:flex;align-items:center;gap:8px;font-weight:500;font-size:14px;color:var(--md-sys-color-primary);margin-bottom:12px;border-bottom:1px solid var(--md-sys-color-outline-variant);padding-bottom:4px}.ai-group-title mat-icon{font-size:20px;width:20px;height:20px}.ai-group ::ng-deep .form-actions,.ai-group ::ng-deep button[type=submit]{display:none!important}.ai-credentials-row{display:flex;align-items:flex-start;gap:16px;flex-wrap:wrap}.ai-group-header{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.ai-provider-summary{display:flex;align-items:center;gap:12px;padding:8px 12px;border-radius:var(--md-sys-shape-corner-medium, 10px);background:var(--md-sys-color-surface-variant);border:1px solid var(--md-sys-color-outline-variant);margin:8px 0 4px;flex-wrap:wrap}.ai-provider-icon{width:32px;height:32px;border-radius:var(--md-sys-shape-corner-small, 8px);border:1px solid var(--md-sys-color-outline-variant);display:flex;align-items:center;justify-content:center;background:var(--md-sys-color-surface);color:var(--md-sys-color-primary);flex:0 0 auto}.provider-svg{width:18px;height:18px}.ai-provider-meta{display:flex;flex-direction:column;gap:2px;min-width:200px;flex:1 1 auto}.ai-provider-name{font-weight:600;font-size:13px}.ai-provider-desc{font-size:12px;opacity:.75}.ai-provider-key{display:inline-flex;align-items:center;gap:6px;padding:4px 10px;border-radius:999px;border:1px solid var(--md-sys-color-outline-variant);background:var(--md-sys-color-surface-container-lowest);color:var(--md-sys-color-on-surface-variant);font-size:11px;font-weight:600;letter-spacing:.2px;box-shadow:var(--md-sys-elevation-level1, 0 1px 2px rgba(0,0,0,.2))}.ai-provider-key mat-icon{width:16px;height:16px;font-size:16px}.ai-provider-key.is-present{background:var(--md-sys-color-primary-container);color:var(--md-sys-color-on-primary-container);border-color:var(--md-sys-color-primary)}.ai-provider-key.is-saved{background:var(--md-sys-color-secondary-container);color:var(--md-sys-color-on-secondary-container);border-color:var(--md-sys-color-secondary)}.ai-provider-key.is-missing{background:var(--md-sys-color-surface-container-low);color:var(--md-sys-color-on-surface-variant);border-style:dashed;opacity:.9}.ai-provider-key.is-unlocked{background:var(--md-sys-color-tertiary-container);color:var(--md-sys-color-on-tertiary-container);border-color:var(--md-sys-color-tertiary)}.ai-action-btn{display:inline-flex;align-items:center;gap:8px;height:40px;padding:0 14px;min-width:168px;border-radius:var(--md-sys-shape-corner-medium, 12px);white-space:nowrap;background:var(--md-sys-color-secondary-container);color:var(--md-sys-color-on-secondary-container);border-color:var(--md-sys-color-outline-variant);box-shadow:var(--md-sys-elevation-level1, 0 1px 2px rgba(0,0,0,.2));transition:background-color .15s ease,box-shadow .15s ease,transform .06s ease;--mdc-outlined-button-container-color: var(--md-sys-color-secondary-container);--mdc-outlined-button-label-text-color: var(--md-sys-color-on-secondary-container);--mdc-outlined-button-outline-color: var(--md-sys-color-outline-variant);--mat-mdc-button-persistent-ripple-color: var(--md-sys-color-on-secondary-container);--mat-mdc-button-ripple-color: var(--md-sys-color-on-secondary-container)}.ai-action-btn .mat-button-wrapper,.ai-action-btn .mdc-button__label{display:inline-flex;align-items:center;gap:8px;line-height:1;height:100%}.ai-action-btn .mat-icon{width:18px;height:18px;font-size:18px;line-height:18px}.ai-action-btn .ai-action-label{display:inline-flex;align-items:center;line-height:1}.ai-action-btn .mat-progress-spinner,.ai-action-btn .btn-spinner{display:inline-flex;align-items:center;justify-content:center;vertical-align:middle}.ai-action-btn:hover{background:var(--md-sys-color-secondary-container);box-shadow:var(--md-sys-elevation-level2, 0 2px 6px rgba(0,0,0,.25))}.ai-action-btn:active{transform:translateY(1px)}.ai-action-btn:focus-visible{outline:2px solid var(--md-sys-color-primary);outline-offset:2px}.ai-action-btn.is-success{background:var(--md-sys-color-tertiary-container);color:var(--md-sys-color-on-tertiary-container);border-color:var(--md-sys-color-tertiary);--mdc-outlined-button-container-color: var(--md-sys-color-tertiary-container);--mdc-outlined-button-label-text-color: var(--md-sys-color-on-tertiary-container);--mdc-outlined-button-outline-color: var(--md-sys-color-tertiary);--mat-mdc-button-persistent-ripple-color: var(--md-sys-color-on-tertiary-container);--mat-mdc-button-ripple-color: var(--md-sys-color-on-tertiary-container)}.ai-action-btn.is-success:hover{background:var(--md-sys-color-tertiary-container)}.ai-action-btn:disabled{background:var(--md-sys-color-surface-container-low);color:var(--md-sys-color-on-surface-variant);border-color:var(--md-sys-color-outline-variant);box-shadow:none;opacity:.7}.ai-form-inline{flex:1;min-width:300px}.ai-credentials-row button{margin-top:4px;height:40px}.btn-spinner{margin-right:8px}.ai-feedback{margin-top:8px;display:flex;align-items:center;gap:8px;padding:8px 12px;background:var(--md-sys-color-error-container);color:var(--md-sys-color-on-error-container);border-radius:var(--md-sys-shape-corner-extra-small, 4px);font-size:13px}.ai-feedback--warn{background:var(--md-sys-color-tertiary-container);color:var(--md-sys-color-on-tertiary-container)}.disabled-group{opacity:.6;pointer-events:none}.ai-model-content{display:flex;flex-direction:column;gap:8px}.ai-model-controls{display:flex;align-items:flex-start;gap:8px}.ai-model-controls ::ng-deep praxis-dynamic-form{flex:1}.ai-model-details{font-size:12px;color:var(--md-sys-color-on-surface-variant);margin-left:4px}.ai-subtext{font-size:12px;color:var(--md-sys-color-on-surface-variant)}.ai-header-actions{display:inline-flex;align-items:center;gap:8px;flex-wrap:wrap}.ai-placeholder{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:24px;background:var(--md-sys-color-surface-container-low);border-radius:var(--md-sys-shape-corner-small, 8px);color:var(--md-sys-color-outline);gap:8px;text-align:center;font-size:13px}.spin{animation:spin 1s linear infinite}@keyframes spin{to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}\n"], dependencies: [{ kind: "ngmodule", type: MatSnackBarModule }, { kind: "ngmodule", type: MatExpansionModule }, { kind: "directive", type: i3$1.MatAccordion, selector: "mat-accordion", inputs: ["hideToggle", "displayMode", "togglePosition"], exportAs: ["matAccordion"] }, { kind: "component", type: i3$1.MatExpansionPanel, selector: "mat-expansion-panel", inputs: ["hideToggle", "togglePosition"], outputs: ["afterExpand", "afterCollapse"], exportAs: ["matExpansionPanel"] }, { kind: "component", type: i3$1.MatExpansionPanelHeader, selector: "mat-expansion-panel-header", inputs: ["expandedHeight", "collapsedHeight", "tabIndex"] }, { kind: "directive", type: i3$1.MatExpansionPanelTitle, selector: "mat-panel-title" }, { kind: "directive", type: i3$1.MatExpansionPanelDescription, selector: "mat-panel-description" }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i3.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i4.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: MatTooltipModule }, { kind: "directive", type: i4$1.MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipPosition", "matTooltipPositionAtOrigin", "matTooltipDisabled", "matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }, { kind: "ngmodule", type: MatProgressSpinnerModule }, { kind: "component", type: i7.MatProgressSpinner, selector: "mat-progress-spinner, mat-spinner", inputs: ["color", "mode", "value", "diameter", "strokeWidth"], exportAs: ["matProgressSpinner"] }, { kind: "ngmodule", type: MatChipsModule }, { kind: "component", type: i8.MatChipOption, selector: "mat-basic-chip-option, [mat-basic-chip-option], mat-chip-option, [mat-chip-option]", inputs: ["selectable", "selected"], outputs: ["selectionChange"] }, { kind: "component", type: PraxisIconButtonComponent, selector: "button[praxisIconButton]", inputs: ["praxisIconButton", "size", "appearance", "presentation", "pressed", "busy"] }, { kind: "directive", type: PraxisIconDirective, selector: "mat-icon[praxisIcon]", inputs: ["praxisIcon"] }] });
4979
5509
  }
4980
5510
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImport: i0, type: GlobalConfigEditorComponent, decorators: [{
4981
5511
  type: Component,
@@ -5277,8 +5807,18 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
5277
5807
  <div class="dlg-icon-helpers__hint">{{ tx('The text field above remains editable. These buttons only help with selection/clear preview.') }}</div>
5278
5808
  </div>
5279
5809
  </mat-expansion-panel>
5810
+ <mat-expansion-panel>
5811
+ <mat-expansion-panel-header>
5812
+ <mat-panel-title>
5813
+ <mat-icon class="panel-icon">dashboard_customize</mat-icon>
5814
+ {{ tx('Dynamic Pages') }}
5815
+ </mat-panel-title>
5816
+ <mat-panel-description>{{ tx('Global presets for layout, theme, widget shell and canvas grid') }}</mat-panel-description>
5817
+ </mat-expansion-panel-header>
5818
+ <ng-template #hostPages></ng-template>
5819
+ </mat-expansion-panel>
5280
5820
  </mat-accordion>
5281
- `, styles: [".dlg-icon-helpers{margin:12px 16px 4px;padding:12px;border:1px dashed var(--md-sys-color-outline-variant);border-radius:var(--md-sys-shape-corner-small, 8px)}.dlg-icon-helpers__head{font-weight:600;margin-bottom:8px;opacity:.8}.dlg-icon-helpers__row{display:flex;align-items:center;gap:12px;padding:6px 0}.dlg-icon-helpers__label{text-transform:capitalize;width:96px;opacity:.8}.dlg-icon-helpers__preview{width:24px;height:24px}.dlg-icon-helpers__value{font-family:monospace;font-size:12px;opacity:.8}.dlg-icon-helpers__hint{margin-top:8px;font-size:12px;opacity:.7}.panel-icon{margin-right:12px;color:var(--md-sys-color-primary)}.ai-config-container{padding:16px;display:flex;flex-direction:column;gap:24px}.ai-config-source{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;border-radius:var(--md-sys-shape-corner-medium, 10px);border:1px dashed var(--md-sys-color-outline-variant);background:var(--md-sys-color-surface-container-low);font-size:12px;color:var(--md-sys-color-on-surface-variant);flex-wrap:wrap}.ai-config-source__meta{display:inline-flex;align-items:center;gap:8px}.ai-action-btn--clear{background:var(--md-sys-color-error-container);color:var(--md-sys-color-on-error-container);--mdc-outlined-button-container-color: var(--md-sys-color-error-container);--mdc-outlined-button-label-text-color: var(--md-sys-color-on-error-container);--mdc-outlined-button-outline-color: var(--md-sys-color-error);--mat-mdc-button-persistent-ripple-color: var(--md-sys-color-on-error-container);--mat-mdc-button-ripple-color: var(--md-sys-color-on-error-container)}.ai-action-btn--clear:hover{background:var(--md-sys-color-error-container)}.ai-group-title{display:flex;align-items:center;gap:8px;font-weight:500;font-size:14px;color:var(--md-sys-color-primary);margin-bottom:12px;border-bottom:1px solid var(--md-sys-color-outline-variant);padding-bottom:4px}.ai-group-title mat-icon{font-size:20px;width:20px;height:20px}.ai-group ::ng-deep .form-actions,.ai-group ::ng-deep button[type=submit]{display:none!important}.ai-credentials-row{display:flex;align-items:flex-start;gap:16px;flex-wrap:wrap}.ai-group-header{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.ai-provider-summary{display:flex;align-items:center;gap:12px;padding:8px 12px;border-radius:var(--md-sys-shape-corner-medium, 10px);background:var(--md-sys-color-surface-variant);border:1px solid var(--md-sys-color-outline-variant);margin:8px 0 4px;flex-wrap:wrap}.ai-provider-icon{width:32px;height:32px;border-radius:var(--md-sys-shape-corner-small, 8px);border:1px solid var(--md-sys-color-outline-variant);display:flex;align-items:center;justify-content:center;background:var(--md-sys-color-surface);color:var(--md-sys-color-primary);flex:0 0 auto}.provider-svg{width:18px;height:18px}.ai-provider-meta{display:flex;flex-direction:column;gap:2px;min-width:200px;flex:1 1 auto}.ai-provider-name{font-weight:600;font-size:13px}.ai-provider-desc{font-size:12px;opacity:.75}.ai-provider-key{display:inline-flex;align-items:center;gap:6px;padding:4px 10px;border-radius:999px;border:1px solid var(--md-sys-color-outline-variant);background:var(--md-sys-color-surface-container-lowest);color:var(--md-sys-color-on-surface-variant);font-size:11px;font-weight:600;letter-spacing:.2px;box-shadow:var(--md-sys-elevation-level1, 0 1px 2px rgba(0,0,0,.2))}.ai-provider-key mat-icon{width:16px;height:16px;font-size:16px}.ai-provider-key.is-present{background:var(--md-sys-color-primary-container);color:var(--md-sys-color-on-primary-container);border-color:var(--md-sys-color-primary)}.ai-provider-key.is-saved{background:var(--md-sys-color-secondary-container);color:var(--md-sys-color-on-secondary-container);border-color:var(--md-sys-color-secondary)}.ai-provider-key.is-missing{background:var(--md-sys-color-surface-container-low);color:var(--md-sys-color-on-surface-variant);border-style:dashed;opacity:.9}.ai-provider-key.is-unlocked{background:var(--md-sys-color-tertiary-container);color:var(--md-sys-color-on-tertiary-container);border-color:var(--md-sys-color-tertiary)}.ai-action-btn{display:inline-flex;align-items:center;gap:8px;height:40px;padding:0 14px;min-width:168px;border-radius:var(--md-sys-shape-corner-medium, 12px);white-space:nowrap;background:var(--md-sys-color-secondary-container);color:var(--md-sys-color-on-secondary-container);border-color:var(--md-sys-color-outline-variant);box-shadow:var(--md-sys-elevation-level1, 0 1px 2px rgba(0,0,0,.2));transition:background-color .15s ease,box-shadow .15s ease,transform .06s ease;--mdc-outlined-button-container-color: var(--md-sys-color-secondary-container);--mdc-outlined-button-label-text-color: var(--md-sys-color-on-secondary-container);--mdc-outlined-button-outline-color: var(--md-sys-color-outline-variant);--mat-mdc-button-persistent-ripple-color: var(--md-sys-color-on-secondary-container);--mat-mdc-button-ripple-color: var(--md-sys-color-on-secondary-container)}.ai-action-btn .mat-button-wrapper,.ai-action-btn .mdc-button__label{display:inline-flex;align-items:center;gap:8px;line-height:1;height:100%}.ai-action-btn .mat-icon{width:18px;height:18px;font-size:18px;line-height:18px}.ai-action-btn .ai-action-label{display:inline-flex;align-items:center;line-height:1}.ai-action-btn .mat-progress-spinner,.ai-action-btn .btn-spinner{display:inline-flex;align-items:center;justify-content:center;vertical-align:middle}.ai-action-btn:hover{background:var(--md-sys-color-secondary-container);box-shadow:var(--md-sys-elevation-level2, 0 2px 6px rgba(0,0,0,.25))}.ai-action-btn:active{transform:translateY(1px)}.ai-action-btn:focus-visible{outline:2px solid var(--md-sys-color-primary);outline-offset:2px}.ai-action-btn.is-success{background:var(--md-sys-color-tertiary-container);color:var(--md-sys-color-on-tertiary-container);border-color:var(--md-sys-color-tertiary);--mdc-outlined-button-container-color: var(--md-sys-color-tertiary-container);--mdc-outlined-button-label-text-color: var(--md-sys-color-on-tertiary-container);--mdc-outlined-button-outline-color: var(--md-sys-color-tertiary);--mat-mdc-button-persistent-ripple-color: var(--md-sys-color-on-tertiary-container);--mat-mdc-button-ripple-color: var(--md-sys-color-on-tertiary-container)}.ai-action-btn.is-success:hover{background:var(--md-sys-color-tertiary-container)}.ai-action-btn:disabled{background:var(--md-sys-color-surface-container-low);color:var(--md-sys-color-on-surface-variant);border-color:var(--md-sys-color-outline-variant);box-shadow:none;opacity:.7}.ai-form-inline{flex:1;min-width:300px}.ai-credentials-row button{margin-top:4px;height:40px}.btn-spinner{margin-right:8px}.ai-feedback{margin-top:8px;display:flex;align-items:center;gap:8px;padding:8px 12px;background:var(--md-sys-color-error-container);color:var(--md-sys-color-on-error-container);border-radius:var(--md-sys-shape-corner-extra-small, 4px);font-size:13px}.ai-feedback--warn{background:var(--md-sys-color-tertiary-container);color:var(--md-sys-color-on-tertiary-container)}.disabled-group{opacity:.6;pointer-events:none}.ai-model-content{display:flex;flex-direction:column;gap:8px}.ai-model-controls{display:flex;align-items:flex-start;gap:8px}.ai-model-controls ::ng-deep praxis-dynamic-form{flex:1}.ai-model-details{font-size:12px;color:var(--md-sys-color-on-surface-variant);margin-left:4px}.ai-subtext{font-size:12px;color:var(--md-sys-color-on-surface-variant)}.ai-header-actions{display:inline-flex;align-items:center;gap:8px;flex-wrap:wrap}.ai-placeholder{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:24px;background:var(--md-sys-color-surface-container-low);border-radius:var(--md-sys-shape-corner-small, 8px);color:var(--md-sys-color-outline);gap:8px;text-align:center;font-size:13px}.spin{animation:spin 1s linear infinite}@keyframes spin{to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}\n"] }]
5821
+ `, styles: [".dlg-icon-helpers{margin:12px 16px 4px;padding:12px;border:1px dashed var(--md-sys-color-outline-variant);border-radius:var(--md-sys-shape-corner-small, 8px)}.dlg-icon-helpers__head{font-weight:600;margin-bottom:8px;opacity:.8}.dlg-icon-helpers__row{display:flex;align-items:center;gap:12px;padding:6px 0}.dlg-icon-helpers__label{text-transform:capitalize;width:96px;opacity:.8}.dlg-icon-helpers__preview{width:24px;height:24px}.dlg-icon-helpers__value{font-family:monospace;font-size:12px;opacity:.8}.dlg-icon-helpers__hint{margin-top:8px;font-size:12px;opacity:.7}.panel-icon{margin-right:12px;color:var(--md-sys-color-primary);flex-shrink:0}:host ::ng-deep .mat-expansion-panel-header{height:auto!important;min-height:54px;padding-block:10px}:host ::ng-deep .mat-expansion-panel-header-title,:host ::ng-deep .mat-expansion-panel-header-description{line-height:1.35}:host ::ng-deep .mat-expansion-panel-body .form-section{border:none;background:transparent;box-shadow:none;padding:4px 0 0}@media(max-width:560px){:host ::ng-deep .mat-expansion-panel-header .mat-content{flex-direction:column;align-items:flex-start;gap:4px}:host ::ng-deep .mat-expansion-panel-header-title,:host ::ng-deep .mat-expansion-panel-header-description{margin-right:0}}.ai-config-container{padding:16px;display:flex;flex-direction:column;gap:24px}.ai-config-source{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;border-radius:var(--md-sys-shape-corner-medium, 10px);border:1px dashed var(--md-sys-color-outline-variant);background:var(--md-sys-color-surface-container-low);font-size:12px;color:var(--md-sys-color-on-surface-variant);flex-wrap:wrap}.ai-config-source__meta{display:inline-flex;align-items:center;gap:8px}.ai-action-btn--clear{background:var(--md-sys-color-error-container);color:var(--md-sys-color-on-error-container);--mdc-outlined-button-container-color: var(--md-sys-color-error-container);--mdc-outlined-button-label-text-color: var(--md-sys-color-on-error-container);--mdc-outlined-button-outline-color: var(--md-sys-color-error);--mat-mdc-button-persistent-ripple-color: var(--md-sys-color-on-error-container);--mat-mdc-button-ripple-color: var(--md-sys-color-on-error-container)}.ai-action-btn--clear:hover{background:var(--md-sys-color-error-container)}.ai-group-title{display:flex;align-items:center;gap:8px;font-weight:500;font-size:14px;color:var(--md-sys-color-primary);margin-bottom:12px;border-bottom:1px solid var(--md-sys-color-outline-variant);padding-bottom:4px}.ai-group-title mat-icon{font-size:20px;width:20px;height:20px}.ai-group ::ng-deep .form-actions,.ai-group ::ng-deep button[type=submit]{display:none!important}.ai-credentials-row{display:flex;align-items:flex-start;gap:16px;flex-wrap:wrap}.ai-group-header{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.ai-provider-summary{display:flex;align-items:center;gap:12px;padding:8px 12px;border-radius:var(--md-sys-shape-corner-medium, 10px);background:var(--md-sys-color-surface-variant);border:1px solid var(--md-sys-color-outline-variant);margin:8px 0 4px;flex-wrap:wrap}.ai-provider-icon{width:32px;height:32px;border-radius:var(--md-sys-shape-corner-small, 8px);border:1px solid var(--md-sys-color-outline-variant);display:flex;align-items:center;justify-content:center;background:var(--md-sys-color-surface);color:var(--md-sys-color-primary);flex:0 0 auto}.provider-svg{width:18px;height:18px}.ai-provider-meta{display:flex;flex-direction:column;gap:2px;min-width:200px;flex:1 1 auto}.ai-provider-name{font-weight:600;font-size:13px}.ai-provider-desc{font-size:12px;opacity:.75}.ai-provider-key{display:inline-flex;align-items:center;gap:6px;padding:4px 10px;border-radius:999px;border:1px solid var(--md-sys-color-outline-variant);background:var(--md-sys-color-surface-container-lowest);color:var(--md-sys-color-on-surface-variant);font-size:11px;font-weight:600;letter-spacing:.2px;box-shadow:var(--md-sys-elevation-level1, 0 1px 2px rgba(0,0,0,.2))}.ai-provider-key mat-icon{width:16px;height:16px;font-size:16px}.ai-provider-key.is-present{background:var(--md-sys-color-primary-container);color:var(--md-sys-color-on-primary-container);border-color:var(--md-sys-color-primary)}.ai-provider-key.is-saved{background:var(--md-sys-color-secondary-container);color:var(--md-sys-color-on-secondary-container);border-color:var(--md-sys-color-secondary)}.ai-provider-key.is-missing{background:var(--md-sys-color-surface-container-low);color:var(--md-sys-color-on-surface-variant);border-style:dashed;opacity:.9}.ai-provider-key.is-unlocked{background:var(--md-sys-color-tertiary-container);color:var(--md-sys-color-on-tertiary-container);border-color:var(--md-sys-color-tertiary)}.ai-action-btn{display:inline-flex;align-items:center;gap:8px;height:40px;padding:0 14px;min-width:168px;border-radius:var(--md-sys-shape-corner-medium, 12px);white-space:nowrap;background:var(--md-sys-color-secondary-container);color:var(--md-sys-color-on-secondary-container);border-color:var(--md-sys-color-outline-variant);box-shadow:var(--md-sys-elevation-level1, 0 1px 2px rgba(0,0,0,.2));transition:background-color .15s ease,box-shadow .15s ease,transform .06s ease;--mdc-outlined-button-container-color: var(--md-sys-color-secondary-container);--mdc-outlined-button-label-text-color: var(--md-sys-color-on-secondary-container);--mdc-outlined-button-outline-color: var(--md-sys-color-outline-variant);--mat-mdc-button-persistent-ripple-color: var(--md-sys-color-on-secondary-container);--mat-mdc-button-ripple-color: var(--md-sys-color-on-secondary-container)}.ai-action-btn .mat-button-wrapper,.ai-action-btn .mdc-button__label{display:inline-flex;align-items:center;gap:8px;line-height:1;height:100%}.ai-action-btn .mat-icon{width:18px;height:18px;font-size:18px;line-height:18px}.ai-action-btn .ai-action-label{display:inline-flex;align-items:center;line-height:1}.ai-action-btn .mat-progress-spinner,.ai-action-btn .btn-spinner{display:inline-flex;align-items:center;justify-content:center;vertical-align:middle}.ai-action-btn:hover{background:var(--md-sys-color-secondary-container);box-shadow:var(--md-sys-elevation-level2, 0 2px 6px rgba(0,0,0,.25))}.ai-action-btn:active{transform:translateY(1px)}.ai-action-btn:focus-visible{outline:2px solid var(--md-sys-color-primary);outline-offset:2px}.ai-action-btn.is-success{background:var(--md-sys-color-tertiary-container);color:var(--md-sys-color-on-tertiary-container);border-color:var(--md-sys-color-tertiary);--mdc-outlined-button-container-color: var(--md-sys-color-tertiary-container);--mdc-outlined-button-label-text-color: var(--md-sys-color-on-tertiary-container);--mdc-outlined-button-outline-color: var(--md-sys-color-tertiary);--mat-mdc-button-persistent-ripple-color: var(--md-sys-color-on-tertiary-container);--mat-mdc-button-ripple-color: var(--md-sys-color-on-tertiary-container)}.ai-action-btn.is-success:hover{background:var(--md-sys-color-tertiary-container)}.ai-action-btn:disabled{background:var(--md-sys-color-surface-container-low);color:var(--md-sys-color-on-surface-variant);border-color:var(--md-sys-color-outline-variant);box-shadow:none;opacity:.7}.ai-form-inline{flex:1;min-width:300px}.ai-credentials-row button{margin-top:4px;height:40px}.btn-spinner{margin-right:8px}.ai-feedback{margin-top:8px;display:flex;align-items:center;gap:8px;padding:8px 12px;background:var(--md-sys-color-error-container);color:var(--md-sys-color-on-error-container);border-radius:var(--md-sys-shape-corner-extra-small, 4px);font-size:13px}.ai-feedback--warn{background:var(--md-sys-color-tertiary-container);color:var(--md-sys-color-on-tertiary-container)}.disabled-group{opacity:.6;pointer-events:none}.ai-model-content{display:flex;flex-direction:column;gap:8px}.ai-model-controls{display:flex;align-items:flex-start;gap:8px}.ai-model-controls ::ng-deep praxis-dynamic-form{flex:1}.ai-model-details{font-size:12px;color:var(--md-sys-color-on-surface-variant);margin-left:4px}.ai-subtext{font-size:12px;color:var(--md-sys-color-on-surface-variant)}.ai-header-actions{display:inline-flex;align-items:center;gap:8px;flex-wrap:wrap}.ai-placeholder{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:24px;background:var(--md-sys-color-surface-container-low);border-radius:var(--md-sys-shape-corner-small, 8px);color:var(--md-sys-color-outline);gap:8px;text-align:center;font-size:13px}.spin{animation:spin 1s linear infinite}@keyframes spin{to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}\n"] }]
5282
5822
  }], ctorParameters: () => [{ type: GlobalConfigAdminService }, { type: i2$1.MatSnackBar }], propDecorators: { hostCrud: [{
5283
5823
  type: ViewChild,
5284
5824
  args: ['hostCrud', { read: ViewContainerRef, static: true }]
@@ -5294,6 +5834,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
5294
5834
  }], hostDialog: [{
5295
5835
  type: ViewChild,
5296
5836
  args: ['hostDialog', { read: ViewContainerRef, static: true }]
5837
+ }], hostPages: [{
5838
+ type: ViewChild,
5839
+ args: ['hostPages', { read: ViewContainerRef, static: true }]
5297
5840
  }], hostAiCredentials: [{
5298
5841
  type: ViewChild,
5299
5842
  args: ['hostAiCredentials', { read: ViewContainerRef, static: true }]
@@ -5311,10 +5854,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
5311
5854
  * openGlobalConfigEditor(settings);
5312
5855
  */
5313
5856
  function openGlobalConfigEditor(settings, opts) {
5314
- settings.open({
5857
+ return settings.open({
5315
5858
  id: opts?.id ?? 'global-config',
5316
5859
  title: opts?.title,
5317
5860
  titleIcon: opts?.titleIcon ?? 'tune',
5861
+ owner: opts?.owner,
5318
5862
  content: { component: GlobalConfigEditorComponent, inputs: {} },
5319
5863
  });
5320
5864
  }
@@ -5362,6 +5906,31 @@ const SETTINGS_PANEL_AI_CAPABILITIES = {
5362
5906
  ],
5363
5907
  };
5364
5908
 
5909
+ const settingsPanelConfigRootResolutionSpec = {
5910
+ strategy: 'root-path',
5911
+ paths: ['config', ''],
5912
+ allowIndex: false,
5913
+ };
5914
+ const settingsPanelSizeResolutionSpec = {
5915
+ strategy: 'root-path',
5916
+ paths: ['config', 'runtime.size'],
5917
+ allowIndex: false,
5918
+ };
5919
+ const settingsPanelProviderBehaviorResolutionSpec = {
5920
+ strategy: 'root-path',
5921
+ paths: ['provider', 'ref'],
5922
+ allowIndex: false,
5923
+ };
5924
+ const settingsPanelEditorHostResolutionSpec = {
5925
+ strategy: 'root-path',
5926
+ paths: ['config.content', 'content'],
5927
+ allowIndex: false,
5928
+ };
5929
+ const settingsPanelDiagnosticsResolutionSpec = {
5930
+ strategy: 'root-path',
5931
+ paths: ['config.diagnostics', 'panel'],
5932
+ allowIndex: false,
5933
+ };
5365
5934
  const panelSizeSchema = {
5366
5935
  type: 'object',
5367
5936
  minProperties: 1,
@@ -5421,14 +5990,14 @@ const PRAXIS_SETTINGS_PANEL_AUTHORING_MANIFEST = {
5421
5990
  { name: 'provider', type: 'SettingsValueProvider', description: 'Editor protocol for dirty, valid, busy, getSettingsValue, onSave, reset and close hooks.' },
5422
5991
  ],
5423
5992
  editableTargets: [
5424
- { kind: 'panelShell', resolver: 'settings-panel-config-root', description: 'Top-level shell identity and title fields owned by SettingsPanelConfig.' },
5425
- { kind: 'openMode', resolver: 'settings-panel-open-mode', description: 'Initial expanded state, replacement mediation and close behavior for an authoring panel.' },
5426
- { kind: 'panelSize', resolver: 'settings-panel-size-and-resize', description: 'Width, min/max width, resize enablement and persisted size key.' },
5427
- { kind: 'applyBehavior', resolver: 'settings-value-provider-apply-contract', description: 'Apply availability and payload emission through getSettingsValue().' },
5428
- { kind: 'saveBehavior', resolver: 'settings-value-provider-save-contract', description: 'Save availability, onSave fallback and close-after-save behavior.' },
5429
- { kind: 'resetBehavior', resolver: 'settings-value-provider-reset-contract', description: 'Reset confirmation, provider reset hook and reset event emission.' },
5430
- { kind: 'editorHost', resolver: 'settings-panel-editor-host', description: 'Hosted editor component and serializable input envelope.' },
5431
- { kind: 'diagnostics', resolver: 'settings-panel-state-diagnostics', description: 'Dirty, valid, busy, disabled reason and status message visibility.' },
5993
+ { kind: 'panelShell', resolver: 'settings-panel-config-root', resolutionSpec: settingsPanelConfigRootResolutionSpec, description: 'Top-level shell identity and title fields owned by SettingsPanelConfig.' },
5994
+ { kind: 'openMode', resolver: 'settings-panel-open-mode', resolutionSpec: settingsPanelConfigRootResolutionSpec, description: 'Initial expanded state, replacement mediation and close behavior for an authoring panel.' },
5995
+ { kind: 'panelSize', resolver: 'settings-panel-size-and-resize', resolutionSpec: settingsPanelSizeResolutionSpec, description: 'Width, min/max width, resize enablement and persisted size key.' },
5996
+ { kind: 'applyBehavior', resolver: 'settings-value-provider-apply-contract', resolutionSpec: settingsPanelProviderBehaviorResolutionSpec, description: 'Apply availability and payload emission through getSettingsValue().' },
5997
+ { kind: 'saveBehavior', resolver: 'settings-value-provider-save-contract', resolutionSpec: settingsPanelProviderBehaviorResolutionSpec, description: 'Save availability, onSave fallback and close-after-save behavior.' },
5998
+ { kind: 'resetBehavior', resolver: 'settings-value-provider-reset-contract', resolutionSpec: settingsPanelProviderBehaviorResolutionSpec, description: 'Reset confirmation, provider reset hook and reset event emission.' },
5999
+ { kind: 'editorHost', resolver: 'settings-panel-editor-host', resolutionSpec: settingsPanelEditorHostResolutionSpec, description: 'Hosted editor component and serializable input envelope.' },
6000
+ { kind: 'diagnostics', resolver: 'settings-panel-state-diagnostics', resolutionSpec: settingsPanelDiagnosticsResolutionSpec, description: 'Dirty, valid, busy, disabled reason and status message visibility.' },
5432
6001
  ],
5433
6002
  operations: [
5434
6003
  {
@@ -5436,7 +6005,7 @@ const PRAXIS_SETTINGS_PANEL_AUTHORING_MANIFEST = {
5436
6005
  title: 'Configure panel shell identity',
5437
6006
  scope: 'global',
5438
6007
  targetKind: 'panelShell',
5439
- target: { kind: 'panelShell', resolver: 'settings-panel-config-root', ambiguityPolicy: 'fail', required: true },
6008
+ target: { kind: 'panelShell', resolver: 'settings-panel-config-root', resolutionSpec: settingsPanelConfigRootResolutionSpec, ambiguityPolicy: 'fail', required: true },
5440
6009
  inputSchema: panelShellSchema,
5441
6010
  effects: [{ kind: 'merge-object', path: 'config' }],
5442
6011
  validators: ['panel-id-stable', 'title-i18n-compatible', 'settings-panel-round-trip'],
@@ -5451,7 +6020,7 @@ const PRAXIS_SETTINGS_PANEL_AUTHORING_MANIFEST = {
5451
6020
  title: 'Set panel open mode',
5452
6021
  scope: 'global',
5453
6022
  targetKind: 'openMode',
5454
- target: { kind: 'openMode', resolver: 'settings-panel-open-mode', ambiguityPolicy: 'fail', required: false },
6023
+ target: { kind: 'openMode', resolver: 'settings-panel-open-mode', resolutionSpec: settingsPanelConfigRootResolutionSpec, ambiguityPolicy: 'fail', required: false },
5455
6024
  inputSchema: {
5456
6025
  type: 'object',
5457
6026
  minProperties: 1,
@@ -5473,7 +6042,7 @@ const PRAXIS_SETTINGS_PANEL_AUTHORING_MANIFEST = {
5473
6042
  title: 'Set panel size and resize policy',
5474
6043
  scope: 'layout',
5475
6044
  targetKind: 'panelSize',
5476
- target: { kind: 'panelSize', resolver: 'settings-panel-size-and-resize', ambiguityPolicy: 'fail', required: false },
6045
+ target: { kind: 'panelSize', resolver: 'settings-panel-size-and-resize', resolutionSpec: settingsPanelSizeResolutionSpec, ambiguityPolicy: 'fail', required: false },
5477
6046
  inputSchema: panelSizeSchema,
5478
6047
  effects: [{ kind: 'compile-domain-patch', handler: 'settings-panel-size-set', handlerContract: {
5479
6048
  reads: ['SettingsPanelConfig', 'SettingsPanelRef.sizeChanged$', 'persistSizeKey'],
@@ -5495,7 +6064,7 @@ const PRAXIS_SETTINGS_PANEL_AUTHORING_MANIFEST = {
5495
6064
  title: 'Set apply behavior',
5496
6065
  scope: 'interaction',
5497
6066
  targetKind: 'applyBehavior',
5498
- target: { kind: 'applyBehavior', resolver: 'settings-value-provider-apply-contract', ambiguityPolicy: 'fail', required: false },
6067
+ target: { kind: 'applyBehavior', resolver: 'settings-value-provider-apply-contract', resolutionSpec: settingsPanelProviderBehaviorResolutionSpec, ambiguityPolicy: 'fail', required: false },
5499
6068
  inputSchema: behaviorSchema,
5500
6069
  effects: [{ kind: 'compile-domain-patch', handler: 'settings-panel-apply-behavior-set', handlerContract: {
5501
6070
  reads: ['SettingsValueProvider.isDirty$', 'SettingsValueProvider.isValid$', 'SettingsValueProvider.isBusy$', 'SettingsValueProvider.getSettingsValue'],
@@ -5517,7 +6086,7 @@ const PRAXIS_SETTINGS_PANEL_AUTHORING_MANIFEST = {
5517
6086
  title: 'Set save behavior',
5518
6087
  scope: 'interaction',
5519
6088
  targetKind: 'saveBehavior',
5520
- target: { kind: 'saveBehavior', resolver: 'settings-value-provider-save-contract', ambiguityPolicy: 'fail', required: false },
6089
+ target: { kind: 'saveBehavior', resolver: 'settings-value-provider-save-contract', resolutionSpec: settingsPanelProviderBehaviorResolutionSpec, ambiguityPolicy: 'fail', required: false },
5521
6090
  inputSchema: behaviorSchema,
5522
6091
  effects: [{ kind: 'compile-domain-patch', handler: 'settings-panel-save-behavior-set', handlerContract: {
5523
6092
  reads: ['SettingsValueProvider.onSave', 'SettingsValueProvider.getSettingsValue', 'SettingsValueProvider.isDirty$', 'SettingsValueProvider.isValid$', 'SettingsValueProvider.isBusy$'],
@@ -5539,7 +6108,7 @@ const PRAXIS_SETTINGS_PANEL_AUTHORING_MANIFEST = {
5539
6108
  title: 'Set reset behavior',
5540
6109
  scope: 'interaction',
5541
6110
  targetKind: 'resetBehavior',
5542
- target: { kind: 'resetBehavior', resolver: 'settings-value-provider-reset-contract', ambiguityPolicy: 'fail', required: false },
6111
+ target: { kind: 'resetBehavior', resolver: 'settings-value-provider-reset-contract', resolutionSpec: settingsPanelProviderBehaviorResolutionSpec, ambiguityPolicy: 'fail', required: false },
5543
6112
  inputSchema: {
5544
6113
  type: 'object',
5545
6114
  minProperties: 1,
@@ -5570,7 +6139,7 @@ const PRAXIS_SETTINGS_PANEL_AUTHORING_MANIFEST = {
5570
6139
  title: 'Configure hosted editor',
5571
6140
  scope: 'templating',
5572
6141
  targetKind: 'editorHost',
5573
- target: { kind: 'editorHost', resolver: 'settings-panel-editor-host', ambiguityPolicy: 'fail', required: true },
6142
+ target: { kind: 'editorHost', resolver: 'settings-panel-editor-host', resolutionSpec: settingsPanelEditorHostResolutionSpec, ambiguityPolicy: 'fail', required: true },
5574
6143
  inputSchema: editorHostSchema,
5575
6144
  effects: [{ kind: 'compile-domain-patch', handler: 'settings-panel-editor-host-configure', handlerContract: {
5576
6145
  reads: ['ComponentMetadataRegistry', 'SettingsPanelConfig.content', 'SettingsValueProvider', 'component.authoringManifest'],
@@ -5592,7 +6161,7 @@ const PRAXIS_SETTINGS_PANEL_AUTHORING_MANIFEST = {
5592
6161
  title: 'Set panel diagnostics visibility',
5593
6162
  scope: 'interaction',
5594
6163
  targetKind: 'diagnostics',
5595
- target: { kind: 'diagnostics', resolver: 'settings-panel-state-diagnostics', ambiguityPolicy: 'fail', required: false },
6164
+ target: { kind: 'diagnostics', resolver: 'settings-panel-state-diagnostics', resolutionSpec: settingsPanelDiagnosticsResolutionSpec, ambiguityPolicy: 'fail', required: false },
5596
6165
  inputSchema: {
5597
6166
  type: 'object',
5598
6167
  minProperties: 1,